@kangtae49/just-layout 0.0.17 → 0.0.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +5190 -7482
- package/dist/index.umd.js +24 -25
- package/package.json +5 -5
package/dist/index.umd.js
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
(function(he,A){typeof exports=="object"&&typeof module<"u"?A(exports,require("react"),require("inversify"),require("mobx"),require("inversify-react"),require("react/jsx-runtime"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","inversify","mobx","inversify-react","react/jsx-runtime","react-dom"],A):(he=typeof globalThis<"u"?globalThis:he||self,A(he.JustLayout={},he.React,he.inversify,he.mobx,he.inversifyReact,he.jsxRuntime,he.ReactDOM))})(this,(function(he,A,oi,mr,Tg,$,yr){"use strict";function Pu(i){return JSON.stringify(Na(i))}function Na(i){return Array.isArray(i)?i.map(Na):i&&typeof i=="object"?Object.fromEntries(Object.entries(i).sort((n,r)=>n[0].localeCompare(r[0])).map(([n,r])=>[n,Na(r)])):i}const Wt={JustLayoutService:Symbol.for("JustLayoutService"),JustLayoutStore:Symbol.for("JustLayoutStore"),JustLayoutStoreCacheMap:Symbol.for("JustLayoutStoreCacheMap"),JustLayoutFactory:Symbol.for("JustLayoutFactory")};var nn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function br(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var Sr={exports:{}};var xg=Sr.exports,Lu;function Ig(){return Lu||(Lu=1,(function(i,n){(function(){var r,o="4.17.23",s=200,l="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",f="Expected a function",d="Invalid `variable` option passed into `_.template`",p="__lodash_hash_undefined__",m=500,S="__lodash_placeholder__",w=1,O=2,y=4,E=1,_=2,I=1,C=2,F=4,U=8,V=16,B=32,ue=64,N=128,L=256,j=512,ee=30,Y="...",ae=800,X=16,We=1,Je=2,Ve=3,Ot=1/0,He=9007199254740991,gs=17976931348623157e292,Dt=NaN,rt=4294967295,Ri=rt-1,Wi=rt>>>1,Mr=[["ary",N],["bind",I],["bindKey",C],["curry",U],["curryRight",V],["flip",j],["partial",B],["partialRight",ue],["rearg",L]],qt="[object Arguments]",En="[object Array]",kr="[object AsyncFunction]",Tn="[object Boolean]",sn="[object Date]",Fr="[object DOMException]",Xn="[object Error]",Kn="[object Function]",Bi="[object GeneratorFunction]",De="[object Map]",un="[object Number]",$i="[object Null]",it="[object Object]",ze="[object Promise]",Zn="[object Proxy]",Ae="[object RegExp]",Xe="[object Set]",ln="[object String]",Be="[object Symbol]",ps="[object Undefined]",xn="[object WeakMap]",vs="[object WeakSet]",In="[object ArrayBuffer]",je="[object DataView]",Qn="[object Float32Array]",Rr="[object Float64Array]",On="[object Int8Array]",Dn="[object Int16Array]",Wr="[object Int32Array]",Br="[object Uint8Array]",er="[object Uint8ClampedArray]",$r="[object Uint16Array]",Ur="[object Uint32Array]",Ui=/\b__p \+= '';/g,ce=/\b(__p \+=) '' \+/g,Le=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ke=/&(?:amp|lt|gt|quot|#39);/g,at=/[&<>"']/g,xe=RegExp(Ke.source),tr=RegExp(at.source),ms=/<%-([\s\S]+?)%>/g,ys=/<%([\s\S]+?)%>/g,An=/<%=([\s\S]+?)%>/g,bs=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ss=/^\w*$/,Hi=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Hr=/[\\^$.*+?()[\]{}|]/g,ws=RegExp(Hr.source),Gt=/^\s+/,zr=/\s/,jr=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,nr=/\{\n\/\* \[wrapped with (.+)\] \*/,Q1=/,? & /,eS=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,tS=/[()=,{}\[\]\/\s]/,nS=/\\(\\)?/g,rS=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Zc=/\w*$/,iS=/^[-+]0x[0-9a-f]+$/i,aS=/^0b[01]+$/i,oS=/^\[object .+?Constructor\]$/,sS=/^0o[0-7]+$/i,uS=/^(?:0|[1-9]\d*)$/,lS=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,zi=/($^)/,fS=/['\n\r\u2028\u2029\\]/g,ji="\\ud800-\\udfff",cS="\\u0300-\\u036f",dS="\\ufe20-\\ufe2f",hS="\\u20d0-\\u20ff",Qc=cS+dS+hS,ed="\\u2700-\\u27bf",td="a-z\\xdf-\\xf6\\xf8-\\xff",gS="\\xac\\xb1\\xd7\\xf7",pS="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",vS="\\u2000-\\u206f",mS=" \\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",nd="A-Z\\xc0-\\xd6\\xd8-\\xde",rd="\\ufe0e\\ufe0f",id=gS+pS+vS+mS,_s="['’]",yS="["+ji+"]",ad="["+id+"]",qi="["+Qc+"]",od="\\d+",bS="["+ed+"]",sd="["+td+"]",ud="[^"+ji+id+od+ed+td+nd+"]",Es="\\ud83c[\\udffb-\\udfff]",SS="(?:"+qi+"|"+Es+")",ld="[^"+ji+"]",Ts="(?:\\ud83c[\\udde6-\\uddff]){2}",xs="[\\ud800-\\udbff][\\udc00-\\udfff]",rr="["+nd+"]",fd="\\u200d",cd="(?:"+sd+"|"+ud+")",wS="(?:"+rr+"|"+ud+")",dd="(?:"+_s+"(?:d|ll|m|re|s|t|ve))?",hd="(?:"+_s+"(?:D|LL|M|RE|S|T|VE))?",gd=SS+"?",pd="["+rd+"]?",_S="(?:"+fd+"(?:"+[ld,Ts,xs].join("|")+")"+pd+gd+")*",ES="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",TS="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",vd=pd+gd+_S,xS="(?:"+[bS,Ts,xs].join("|")+")"+vd,IS="(?:"+[ld+qi+"?",qi,Ts,xs,yS].join("|")+")",OS=RegExp(_s,"g"),DS=RegExp(qi,"g"),Is=RegExp(Es+"(?="+Es+")|"+IS+vd,"g"),AS=RegExp([rr+"?"+sd+"+"+dd+"(?="+[ad,rr,"$"].join("|")+")",wS+"+"+hd+"(?="+[ad,rr+cd,"$"].join("|")+")",rr+"?"+cd+"+"+dd,rr+"+"+hd,TS,ES,od,xS].join("|"),"g"),CS=RegExp("["+fd+ji+Qc+rd+"]"),NS=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,PS=["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"],LS=-1,we={};we[Qn]=we[Rr]=we[On]=we[Dn]=we[Wr]=we[Br]=we[er]=we[$r]=we[Ur]=!0,we[qt]=we[En]=we[In]=we[Tn]=we[je]=we[sn]=we[Xn]=we[Kn]=we[De]=we[un]=we[it]=we[Ae]=we[Xe]=we[ln]=we[xn]=!1;var be={};be[qt]=be[En]=be[In]=be[je]=be[Tn]=be[sn]=be[Qn]=be[Rr]=be[On]=be[Dn]=be[Wr]=be[De]=be[un]=be[it]=be[Ae]=be[Xe]=be[ln]=be[Be]=be[Br]=be[er]=be[$r]=be[Ur]=!0,be[Xn]=be[Kn]=be[xn]=!1;var MS={À:"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"},kS={"&":"&","<":"<",">":">",'"':""","'":"'"},FS={"&":"&","<":"<",">":">",""":'"',"'":"'"},RS={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},WS=parseFloat,BS=parseInt,md=typeof nn=="object"&&nn&&nn.Object===Object&&nn,$S=typeof self=="object"&&self&&self.Object===Object&&self,Fe=md||$S||Function("return this")(),Os=n&&!n.nodeType&&n,Cn=Os&&!0&&i&&!i.nodeType&&i,yd=Cn&&Cn.exports===Os,Ds=yd&&md.process,pt=(function(){try{var T=Cn&&Cn.require&&Cn.require("util").types;return T||Ds&&Ds.binding&&Ds.binding("util")}catch{}})(),bd=pt&&pt.isArrayBuffer,Sd=pt&&pt.isDate,wd=pt&&pt.isMap,_d=pt&&pt.isRegExp,Ed=pt&&pt.isSet,Td=pt&&pt.isTypedArray;function ot(T,P,D){switch(D.length){case 0:return T.call(P);case 1:return T.call(P,D[0]);case 2:return T.call(P,D[0],D[1]);case 3:return T.call(P,D[0],D[1],D[2])}return T.apply(P,D)}function US(T,P,D,z){for(var Q=-1,pe=T==null?0:T.length;++Q<pe;){var Ne=T[Q];P(z,Ne,D(Ne),T)}return z}function vt(T,P){for(var D=-1,z=T==null?0:T.length;++D<z&&P(T[D],D,T)!==!1;);return T}function HS(T,P){for(var D=T==null?0:T.length;D--&&P(T[D],D,T)!==!1;);return T}function xd(T,P){for(var D=-1,z=T==null?0:T.length;++D<z;)if(!P(T[D],D,T))return!1;return!0}function fn(T,P){for(var D=-1,z=T==null?0:T.length,Q=0,pe=[];++D<z;){var Ne=T[D];P(Ne,D,T)&&(pe[Q++]=Ne)}return pe}function Gi(T,P){var D=T==null?0:T.length;return!!D&&ir(T,P,0)>-1}function As(T,P,D){for(var z=-1,Q=T==null?0:T.length;++z<Q;)if(D(P,T[z]))return!0;return!1}function _e(T,P){for(var D=-1,z=T==null?0:T.length,Q=Array(z);++D<z;)Q[D]=P(T[D],D,T);return Q}function cn(T,P){for(var D=-1,z=P.length,Q=T.length;++D<z;)T[Q+D]=P[D];return T}function Cs(T,P,D,z){var Q=-1,pe=T==null?0:T.length;for(z&&pe&&(D=T[++Q]);++Q<pe;)D=P(D,T[Q],Q,T);return D}function zS(T,P,D,z){var Q=T==null?0:T.length;for(z&&Q&&(D=T[--Q]);Q--;)D=P(D,T[Q],Q,T);return D}function Ns(T,P){for(var D=-1,z=T==null?0:T.length;++D<z;)if(P(T[D],D,T))return!0;return!1}var jS=Ps("length");function qS(T){return T.split("")}function GS(T){return T.match(eS)||[]}function Id(T,P,D){var z;return D(T,function(Q,pe,Ne){if(P(Q,pe,Ne))return z=pe,!1}),z}function Yi(T,P,D,z){for(var Q=T.length,pe=D+(z?1:-1);z?pe--:++pe<Q;)if(P(T[pe],pe,T))return pe;return-1}function ir(T,P,D){return P===P?iw(T,P,D):Yi(T,Od,D)}function YS(T,P,D,z){for(var Q=D-1,pe=T.length;++Q<pe;)if(z(T[Q],P))return Q;return-1}function Od(T){return T!==T}function Dd(T,P){var D=T==null?0:T.length;return D?Ms(T,P)/D:Dt}function Ps(T){return function(P){return P==null?r:P[T]}}function Ls(T){return function(P){return T==null?r:T[P]}}function Ad(T,P,D,z,Q){return Q(T,function(pe,Ne,ye){D=z?(z=!1,pe):P(D,pe,Ne,ye)}),D}function JS(T,P){var D=T.length;for(T.sort(P);D--;)T[D]=T[D].value;return T}function Ms(T,P){for(var D,z=-1,Q=T.length;++z<Q;){var pe=P(T[z]);pe!==r&&(D=D===r?pe:D+pe)}return D}function ks(T,P){for(var D=-1,z=Array(T);++D<T;)z[D]=P(D);return z}function VS(T,P){return _e(P,function(D){return[D,T[D]]})}function Cd(T){return T&&T.slice(0,Md(T)+1).replace(Gt,"")}function st(T){return function(P){return T(P)}}function Fs(T,P){return _e(P,function(D){return T[D]})}function qr(T,P){return T.has(P)}function Nd(T,P){for(var D=-1,z=T.length;++D<z&&ir(P,T[D],0)>-1;);return D}function Pd(T,P){for(var D=T.length;D--&&ir(P,T[D],0)>-1;);return D}function XS(T,P){for(var D=T.length,z=0;D--;)T[D]===P&&++z;return z}var KS=Ls(MS),ZS=Ls(kS);function QS(T){return"\\"+RS[T]}function ew(T,P){return T==null?r:T[P]}function ar(T){return CS.test(T)}function tw(T){return NS.test(T)}function nw(T){for(var P,D=[];!(P=T.next()).done;)D.push(P.value);return D}function Rs(T){var P=-1,D=Array(T.size);return T.forEach(function(z,Q){D[++P]=[Q,z]}),D}function Ld(T,P){return function(D){return T(P(D))}}function dn(T,P){for(var D=-1,z=T.length,Q=0,pe=[];++D<z;){var Ne=T[D];(Ne===P||Ne===S)&&(T[D]=S,pe[Q++]=D)}return pe}function Ji(T){var P=-1,D=Array(T.size);return T.forEach(function(z){D[++P]=z}),D}function rw(T){var P=-1,D=Array(T.size);return T.forEach(function(z){D[++P]=[z,z]}),D}function iw(T,P,D){for(var z=D-1,Q=T.length;++z<Q;)if(T[z]===P)return z;return-1}function aw(T,P,D){for(var z=D+1;z--;)if(T[z]===P)return z;return z}function or(T){return ar(T)?sw(T):jS(T)}function At(T){return ar(T)?uw(T):qS(T)}function Md(T){for(var P=T.length;P--&&zr.test(T.charAt(P)););return P}var ow=Ls(FS);function sw(T){for(var P=Is.lastIndex=0;Is.test(T);)++P;return P}function uw(T){return T.match(Is)||[]}function lw(T){return T.match(AS)||[]}var fw=(function T(P){P=P==null?Fe:sr.defaults(Fe.Object(),P,sr.pick(Fe,PS));var D=P.Array,z=P.Date,Q=P.Error,pe=P.Function,Ne=P.Math,ye=P.Object,Ws=P.RegExp,cw=P.String,mt=P.TypeError,Vi=D.prototype,dw=pe.prototype,ur=ye.prototype,Xi=P["__core-js_shared__"],Ki=dw.toString,ve=ur.hasOwnProperty,hw=0,kd=(function(){var e=/[^.]+$/.exec(Xi&&Xi.keys&&Xi.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})(),Zi=ur.toString,gw=Ki.call(ye),pw=Fe._,vw=Ws("^"+Ki.call(ve).replace(Hr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Qi=yd?P.Buffer:r,hn=P.Symbol,ea=P.Uint8Array,Fd=Qi?Qi.allocUnsafe:r,ta=Ld(ye.getPrototypeOf,ye),Rd=ye.create,Wd=ur.propertyIsEnumerable,na=Vi.splice,Bd=hn?hn.isConcatSpreadable:r,Gr=hn?hn.iterator:r,Nn=hn?hn.toStringTag:r,ra=(function(){try{var e=Fn(ye,"defineProperty");return e({},"",{}),e}catch{}})(),mw=P.clearTimeout!==Fe.clearTimeout&&P.clearTimeout,yw=z&&z.now!==Fe.Date.now&&z.now,bw=P.setTimeout!==Fe.setTimeout&&P.setTimeout,ia=Ne.ceil,aa=Ne.floor,Bs=ye.getOwnPropertySymbols,Sw=Qi?Qi.isBuffer:r,$d=P.isFinite,ww=Vi.join,_w=Ld(ye.keys,ye),Pe=Ne.max,$e=Ne.min,Ew=z.now,Tw=P.parseInt,Ud=Ne.random,xw=Vi.reverse,$s=Fn(P,"DataView"),Yr=Fn(P,"Map"),Us=Fn(P,"Promise"),lr=Fn(P,"Set"),Jr=Fn(P,"WeakMap"),Vr=Fn(ye,"create"),oa=Jr&&new Jr,fr={},Iw=Rn($s),Ow=Rn(Yr),Dw=Rn(Us),Aw=Rn(lr),Cw=Rn(Jr),sa=hn?hn.prototype:r,Xr=sa?sa.valueOf:r,Hd=sa?sa.toString:r;function h(e){if(Te(e)&&!te(e)&&!(e instanceof fe)){if(e instanceof yt)return e;if(ve.call(e,"__wrapped__"))return zh(e)}return new yt(e)}var cr=(function(){function e(){}return function(t){if(!Ee(t))return{};if(Rd)return Rd(t);e.prototype=t;var a=new e;return e.prototype=r,a}})();function ua(){}function yt(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=r}h.templateSettings={escape:ms,evaluate:ys,interpolate:An,variable:"",imports:{_:h}},h.prototype=ua.prototype,h.prototype.constructor=h,yt.prototype=cr(ua.prototype),yt.prototype.constructor=yt;function fe(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=rt,this.__views__=[]}function Nw(){var e=new fe(this.__wrapped__);return e.__actions__=Ze(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Ze(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Ze(this.__views__),e}function Pw(){if(this.__filtered__){var e=new fe(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function Lw(){var e=this.__wrapped__.value(),t=this.__dir__,a=te(e),u=t<0,c=a?e.length:0,g=q_(0,c,this.__views__),v=g.start,b=g.end,x=b-v,M=u?b:v-1,k=this.__iteratees__,R=k.length,H=0,q=$e(x,this.__takeCount__);if(!a||!u&&c==x&&q==x)return dh(e,this.__actions__);var K=[];e:for(;x--&&H<q;){M+=t;for(var oe=-1,Z=e[M];++oe<R;){var le=k[oe],de=le.iteratee,ft=le.type,Ye=de(Z);if(ft==Je)Z=Ye;else if(!Ye){if(ft==We)continue e;break e}}K[H++]=Z}return K}fe.prototype=cr(ua.prototype),fe.prototype.constructor=fe;function Pn(e){var t=-1,a=e==null?0:e.length;for(this.clear();++t<a;){var u=e[t];this.set(u[0],u[1])}}function Mw(){this.__data__=Vr?Vr(null):{},this.size=0}function kw(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function Fw(e){var t=this.__data__;if(Vr){var a=t[e];return a===p?r:a}return ve.call(t,e)?t[e]:r}function Rw(e){var t=this.__data__;return Vr?t[e]!==r:ve.call(t,e)}function Ww(e,t){var a=this.__data__;return this.size+=this.has(e)?0:1,a[e]=Vr&&t===r?p:t,this}Pn.prototype.clear=Mw,Pn.prototype.delete=kw,Pn.prototype.get=Fw,Pn.prototype.has=Rw,Pn.prototype.set=Ww;function Yt(e){var t=-1,a=e==null?0:e.length;for(this.clear();++t<a;){var u=e[t];this.set(u[0],u[1])}}function Bw(){this.__data__=[],this.size=0}function $w(e){var t=this.__data__,a=la(t,e);if(a<0)return!1;var u=t.length-1;return a==u?t.pop():na.call(t,a,1),--this.size,!0}function Uw(e){var t=this.__data__,a=la(t,e);return a<0?r:t[a][1]}function Hw(e){return la(this.__data__,e)>-1}function zw(e,t){var a=this.__data__,u=la(a,e);return u<0?(++this.size,a.push([e,t])):a[u][1]=t,this}Yt.prototype.clear=Bw,Yt.prototype.delete=$w,Yt.prototype.get=Uw,Yt.prototype.has=Hw,Yt.prototype.set=zw;function Jt(e){var t=-1,a=e==null?0:e.length;for(this.clear();++t<a;){var u=e[t];this.set(u[0],u[1])}}function jw(){this.size=0,this.__data__={hash:new Pn,map:new(Yr||Yt),string:new Pn}}function qw(e){var t=wa(this,e).delete(e);return this.size-=t?1:0,t}function Gw(e){return wa(this,e).get(e)}function Yw(e){return wa(this,e).has(e)}function Jw(e,t){var a=wa(this,e),u=a.size;return a.set(e,t),this.size+=a.size==u?0:1,this}Jt.prototype.clear=jw,Jt.prototype.delete=qw,Jt.prototype.get=Gw,Jt.prototype.has=Yw,Jt.prototype.set=Jw;function Ln(e){var t=-1,a=e==null?0:e.length;for(this.__data__=new Jt;++t<a;)this.add(e[t])}function Vw(e){return this.__data__.set(e,p),this}function Xw(e){return this.__data__.has(e)}Ln.prototype.add=Ln.prototype.push=Vw,Ln.prototype.has=Xw;function Ct(e){var t=this.__data__=new Yt(e);this.size=t.size}function Kw(){this.__data__=new Yt,this.size=0}function Zw(e){var t=this.__data__,a=t.delete(e);return this.size=t.size,a}function Qw(e){return this.__data__.get(e)}function e_(e){return this.__data__.has(e)}function t_(e,t){var a=this.__data__;if(a instanceof Yt){var u=a.__data__;if(!Yr||u.length<s-1)return u.push([e,t]),this.size=++a.size,this;a=this.__data__=new Jt(u)}return a.set(e,t),this.size=a.size,this}Ct.prototype.clear=Kw,Ct.prototype.delete=Zw,Ct.prototype.get=Qw,Ct.prototype.has=e_,Ct.prototype.set=t_;function zd(e,t){var a=te(e),u=!a&&Wn(e),c=!a&&!u&&yn(e),g=!a&&!u&&!c&&pr(e),v=a||u||c||g,b=v?ks(e.length,cw):[],x=b.length;for(var M in e)(t||ve.call(e,M))&&!(v&&(M=="length"||c&&(M=="offset"||M=="parent")||g&&(M=="buffer"||M=="byteLength"||M=="byteOffset")||Zt(M,x)))&&b.push(M);return b}function jd(e){var t=e.length;return t?e[Zs(0,t-1)]:r}function n_(e,t){return _a(Ze(e),Mn(t,0,e.length))}function r_(e){return _a(Ze(e))}function Hs(e,t,a){(a!==r&&!Nt(e[t],a)||a===r&&!(t in e))&&Vt(e,t,a)}function Kr(e,t,a){var u=e[t];(!(ve.call(e,t)&&Nt(u,a))||a===r&&!(t in e))&&Vt(e,t,a)}function la(e,t){for(var a=e.length;a--;)if(Nt(e[a][0],t))return a;return-1}function i_(e,t,a,u){return gn(e,function(c,g,v){t(u,c,a(c),v)}),u}function qd(e,t){return e&&Ft(t,Me(t),e)}function a_(e,t){return e&&Ft(t,et(t),e)}function Vt(e,t,a){t=="__proto__"&&ra?ra(e,t,{configurable:!0,enumerable:!0,value:a,writable:!0}):e[t]=a}function zs(e,t){for(var a=-1,u=t.length,c=D(u),g=e==null;++a<u;)c[a]=g?r:Eu(e,t[a]);return c}function Mn(e,t,a){return e===e&&(a!==r&&(e=e<=a?e:a),t!==r&&(e=e>=t?e:t)),e}function bt(e,t,a,u,c,g){var v,b=t&w,x=t&O,M=t&y;if(a&&(v=c?a(e,u,c,g):a(e)),v!==r)return v;if(!Ee(e))return e;var k=te(e);if(k){if(v=Y_(e),!b)return Ze(e,v)}else{var R=Ue(e),H=R==Kn||R==Bi;if(yn(e))return ph(e,b);if(R==it||R==qt||H&&!c){if(v=x||H?{}:Mh(e),!b)return x?F_(e,a_(v,e)):k_(e,qd(v,e))}else{if(!be[R])return c?e:{};v=J_(e,R,b)}}g||(g=new Ct);var q=g.get(e);if(q)return q;g.set(e,v),lg(e)?e.forEach(function(Z){v.add(bt(Z,t,a,Z,e,g))}):sg(e)&&e.forEach(function(Z,le){v.set(le,bt(Z,t,a,le,e,g))});var K=M?x?lu:uu:x?et:Me,oe=k?r:K(e);return vt(oe||e,function(Z,le){oe&&(le=Z,Z=e[le]),Kr(v,le,bt(Z,t,a,le,e,g))}),v}function o_(e){var t=Me(e);return function(a){return Gd(a,e,t)}}function Gd(e,t,a){var u=a.length;if(e==null)return!u;for(e=ye(e);u--;){var c=a[u],g=t[c],v=e[c];if(v===r&&!(c in e)||!g(v))return!1}return!0}function Yd(e,t,a){if(typeof e!="function")throw new mt(f);return ii(function(){e.apply(r,a)},t)}function Zr(e,t,a,u){var c=-1,g=Gi,v=!0,b=e.length,x=[],M=t.length;if(!b)return x;a&&(t=_e(t,st(a))),u?(g=As,v=!1):t.length>=s&&(g=qr,v=!1,t=new Ln(t));e:for(;++c<b;){var k=e[c],R=a==null?k:a(k);if(k=u||k!==0?k:0,v&&R===R){for(var H=M;H--;)if(t[H]===R)continue e;x.push(k)}else g(t,R,u)||x.push(k)}return x}var gn=Sh(kt),Jd=Sh(qs,!0);function s_(e,t){var a=!0;return gn(e,function(u,c,g){return a=!!t(u,c,g),a}),a}function fa(e,t,a){for(var u=-1,c=e.length;++u<c;){var g=e[u],v=t(g);if(v!=null&&(b===r?v===v&&!lt(v):a(v,b)))var b=v,x=g}return x}function u_(e,t,a,u){var c=e.length;for(a=ie(a),a<0&&(a=-a>c?0:c+a),u=u===r||u>c?c:ie(u),u<0&&(u+=c),u=a>u?0:cg(u);a<u;)e[a++]=t;return e}function Vd(e,t){var a=[];return gn(e,function(u,c,g){t(u,c,g)&&a.push(u)}),a}function Re(e,t,a,u,c){var g=-1,v=e.length;for(a||(a=X_),c||(c=[]);++g<v;){var b=e[g];t>0&&a(b)?t>1?Re(b,t-1,a,u,c):cn(c,b):u||(c[c.length]=b)}return c}var js=wh(),Xd=wh(!0);function kt(e,t){return e&&js(e,t,Me)}function qs(e,t){return e&&Xd(e,t,Me)}function ca(e,t){return fn(t,function(a){return Qt(e[a])})}function kn(e,t){t=vn(t,e);for(var a=0,u=t.length;e!=null&&a<u;)e=e[Rt(t[a++])];return a&&a==u?e:r}function Kd(e,t,a){var u=t(e);return te(e)?u:cn(u,a(e))}function qe(e){return e==null?e===r?ps:$i:Nn&&Nn in ye(e)?j_(e):rE(e)}function Gs(e,t){return e>t}function l_(e,t){return e!=null&&ve.call(e,t)}function f_(e,t){return e!=null&&t in ye(e)}function c_(e,t,a){return e>=$e(t,a)&&e<Pe(t,a)}function Ys(e,t,a){for(var u=a?As:Gi,c=e[0].length,g=e.length,v=g,b=D(g),x=1/0,M=[];v--;){var k=e[v];v&&t&&(k=_e(k,st(t))),x=$e(k.length,x),b[v]=!a&&(t||c>=120&&k.length>=120)?new Ln(v&&k):r}k=e[0];var R=-1,H=b[0];e:for(;++R<c&&M.length<x;){var q=k[R],K=t?t(q):q;if(q=a||q!==0?q:0,!(H?qr(H,K):u(M,K,a))){for(v=g;--v;){var oe=b[v];if(!(oe?qr(oe,K):u(e[v],K,a)))continue e}H&&H.push(K),M.push(q)}}return M}function d_(e,t,a,u){return kt(e,function(c,g,v){t(u,a(c),g,v)}),u}function Qr(e,t,a){t=vn(t,e),e=Wh(e,t);var u=e==null?e:e[Rt(wt(t))];return u==null?r:ot(u,e,a)}function Zd(e){return Te(e)&&qe(e)==qt}function h_(e){return Te(e)&&qe(e)==In}function g_(e){return Te(e)&&qe(e)==sn}function ei(e,t,a,u,c){return e===t?!0:e==null||t==null||!Te(e)&&!Te(t)?e!==e&&t!==t:p_(e,t,a,u,ei,c)}function p_(e,t,a,u,c,g){var v=te(e),b=te(t),x=v?En:Ue(e),M=b?En:Ue(t);x=x==qt?it:x,M=M==qt?it:M;var k=x==it,R=M==it,H=x==M;if(H&&yn(e)){if(!yn(t))return!1;v=!0,k=!1}if(H&&!k)return g||(g=new Ct),v||pr(e)?Nh(e,t,a,u,c,g):H_(e,t,x,a,u,c,g);if(!(a&E)){var q=k&&ve.call(e,"__wrapped__"),K=R&&ve.call(t,"__wrapped__");if(q||K){var oe=q?e.value():e,Z=K?t.value():t;return g||(g=new Ct),c(oe,Z,a,u,g)}}return H?(g||(g=new Ct),z_(e,t,a,u,c,g)):!1}function v_(e){return Te(e)&&Ue(e)==De}function Js(e,t,a,u){var c=a.length,g=c,v=!u;if(e==null)return!g;for(e=ye(e);c--;){var b=a[c];if(v&&b[2]?b[1]!==e[b[0]]:!(b[0]in e))return!1}for(;++c<g;){b=a[c];var x=b[0],M=e[x],k=b[1];if(v&&b[2]){if(M===r&&!(x in e))return!1}else{var R=new Ct;if(u)var H=u(M,k,x,e,t,R);if(!(H===r?ei(k,M,E|_,u,R):H))return!1}}return!0}function Qd(e){if(!Ee(e)||Z_(e))return!1;var t=Qt(e)?vw:oS;return t.test(Rn(e))}function m_(e){return Te(e)&&qe(e)==Ae}function y_(e){return Te(e)&&Ue(e)==Xe}function b_(e){return Te(e)&&Da(e.length)&&!!we[qe(e)]}function eh(e){return typeof e=="function"?e:e==null?tt:typeof e=="object"?te(e)?rh(e[0],e[1]):nh(e):_g(e)}function Vs(e){if(!ri(e))return _w(e);var t=[];for(var a in ye(e))ve.call(e,a)&&a!="constructor"&&t.push(a);return t}function S_(e){if(!Ee(e))return nE(e);var t=ri(e),a=[];for(var u in e)u=="constructor"&&(t||!ve.call(e,u))||a.push(u);return a}function Xs(e,t){return e<t}function th(e,t){var a=-1,u=Qe(e)?D(e.length):[];return gn(e,function(c,g,v){u[++a]=t(c,g,v)}),u}function nh(e){var t=cu(e);return t.length==1&&t[0][2]?Fh(t[0][0],t[0][1]):function(a){return a===e||Js(a,e,t)}}function rh(e,t){return hu(e)&&kh(t)?Fh(Rt(e),t):function(a){var u=Eu(a,e);return u===r&&u===t?Tu(a,e):ei(t,u,E|_)}}function da(e,t,a,u,c){e!==t&&js(t,function(g,v){if(c||(c=new Ct),Ee(g))w_(e,t,v,a,da,u,c);else{var b=u?u(pu(e,v),g,v+"",e,t,c):r;b===r&&(b=g),Hs(e,v,b)}},et)}function w_(e,t,a,u,c,g,v){var b=pu(e,a),x=pu(t,a),M=v.get(x);if(M){Hs(e,a,M);return}var k=g?g(b,x,a+"",e,t,v):r,R=k===r;if(R){var H=te(x),q=!H&&yn(x),K=!H&&!q&&pr(x);k=x,H||q||K?te(b)?k=b:Ie(b)?k=Ze(b):q?(R=!1,k=ph(x,!0)):K?(R=!1,k=vh(x,!0)):k=[]:ai(x)||Wn(x)?(k=b,Wn(b)?k=dg(b):(!Ee(b)||Qt(b))&&(k=Mh(x))):R=!1}R&&(v.set(x,k),c(k,x,u,g,v),v.delete(x)),Hs(e,a,k)}function ih(e,t){var a=e.length;if(a)return t+=t<0?a:0,Zt(t,a)?e[t]:r}function ah(e,t,a){t.length?t=_e(t,function(g){return te(g)?function(v){return kn(v,g.length===1?g[0]:g)}:g}):t=[tt];var u=-1;t=_e(t,st(J()));var c=th(e,function(g,v,b){var x=_e(t,function(M){return M(g)});return{criteria:x,index:++u,value:g}});return JS(c,function(g,v){return M_(g,v,a)})}function __(e,t){return oh(e,t,function(a,u){return Tu(e,u)})}function oh(e,t,a){for(var u=-1,c=t.length,g={};++u<c;){var v=t[u],b=kn(e,v);a(b,v)&&ti(g,vn(v,e),b)}return g}function E_(e){return function(t){return kn(t,e)}}function Ks(e,t,a,u){var c=u?YS:ir,g=-1,v=t.length,b=e;for(e===t&&(t=Ze(t)),a&&(b=_e(e,st(a)));++g<v;)for(var x=0,M=t[g],k=a?a(M):M;(x=c(b,k,x,u))>-1;)b!==e&&na.call(b,x,1),na.call(e,x,1);return e}function sh(e,t){for(var a=e?t.length:0,u=a-1;a--;){var c=t[a];if(a==u||c!==g){var g=c;Zt(c)?na.call(e,c,1):tu(e,c)}}return e}function Zs(e,t){return e+aa(Ud()*(t-e+1))}function T_(e,t,a,u){for(var c=-1,g=Pe(ia((t-e)/(a||1)),0),v=D(g);g--;)v[u?g:++c]=e,e+=a;return v}function Qs(e,t){var a="";if(!e||t<1||t>He)return a;do t%2&&(a+=e),t=aa(t/2),t&&(e+=e);while(t);return a}function se(e,t){return vu(Rh(e,t,tt),e+"")}function x_(e){return jd(vr(e))}function I_(e,t){var a=vr(e);return _a(a,Mn(t,0,a.length))}function ti(e,t,a,u){if(!Ee(e))return e;t=vn(t,e);for(var c=-1,g=t.length,v=g-1,b=e;b!=null&&++c<g;){var x=Rt(t[c]),M=a;if(x==="__proto__"||x==="constructor"||x==="prototype")return e;if(c!=v){var k=b[x];M=u?u(k,x,b):r,M===r&&(M=Ee(k)?k:Zt(t[c+1])?[]:{})}Kr(b,x,M),b=b[x]}return e}var uh=oa?function(e,t){return oa.set(e,t),e}:tt,O_=ra?function(e,t){return ra(e,"toString",{configurable:!0,enumerable:!1,value:Iu(t),writable:!0})}:tt;function D_(e){return _a(vr(e))}function St(e,t,a){var u=-1,c=e.length;t<0&&(t=-t>c?0:c+t),a=a>c?c:a,a<0&&(a+=c),c=t>a?0:a-t>>>0,t>>>=0;for(var g=D(c);++u<c;)g[u]=e[u+t];return g}function A_(e,t){var a;return gn(e,function(u,c,g){return a=t(u,c,g),!a}),!!a}function ha(e,t,a){var u=0,c=e==null?u:e.length;if(typeof t=="number"&&t===t&&c<=Wi){for(;u<c;){var g=u+c>>>1,v=e[g];v!==null&&!lt(v)&&(a?v<=t:v<t)?u=g+1:c=g}return c}return eu(e,t,tt,a)}function eu(e,t,a,u){var c=0,g=e==null?0:e.length;if(g===0)return 0;t=a(t);for(var v=t!==t,b=t===null,x=lt(t),M=t===r;c<g;){var k=aa((c+g)/2),R=a(e[k]),H=R!==r,q=R===null,K=R===R,oe=lt(R);if(v)var Z=u||K;else M?Z=K&&(u||H):b?Z=K&&H&&(u||!q):x?Z=K&&H&&!q&&(u||!oe):q||oe?Z=!1:Z=u?R<=t:R<t;Z?c=k+1:g=k}return $e(g,Ri)}function lh(e,t){for(var a=-1,u=e.length,c=0,g=[];++a<u;){var v=e[a],b=t?t(v):v;if(!a||!Nt(b,x)){var x=b;g[c++]=v===0?0:v}}return g}function fh(e){return typeof e=="number"?e:lt(e)?Dt:+e}function ut(e){if(typeof e=="string")return e;if(te(e))return _e(e,ut)+"";if(lt(e))return Hd?Hd.call(e):"";var t=e+"";return t=="0"&&1/e==-Ot?"-0":t}function pn(e,t,a){var u=-1,c=Gi,g=e.length,v=!0,b=[],x=b;if(a)v=!1,c=As;else if(g>=s){var M=t?null:$_(e);if(M)return Ji(M);v=!1,c=qr,x=new Ln}else x=t?[]:b;e:for(;++u<g;){var k=e[u],R=t?t(k):k;if(k=a||k!==0?k:0,v&&R===R){for(var H=x.length;H--;)if(x[H]===R)continue e;t&&x.push(R),b.push(k)}else c(x,R,a)||(x!==b&&x.push(R),b.push(k))}return b}function tu(e,t){t=vn(t,e);var a=-1,u=t.length;if(!u)return!0;for(var c=e==null||typeof e!="object"&&typeof e!="function";++a<u;){var g=t[a];if(typeof g=="string"){if(g==="__proto__"&&!ve.call(e,"__proto__"))return!1;if(g==="constructor"&&a+1<u&&typeof t[a+1]=="string"&&t[a+1]==="prototype"){if(c&&a===0)continue;return!1}}}var v=Wh(e,t);return v==null||delete v[Rt(wt(t))]}function ch(e,t,a,u){return ti(e,t,a(kn(e,t)),u)}function ga(e,t,a,u){for(var c=e.length,g=u?c:-1;(u?g--:++g<c)&&t(e[g],g,e););return a?St(e,u?0:g,u?g+1:c):St(e,u?g+1:0,u?c:g)}function dh(e,t){var a=e;return a instanceof fe&&(a=a.value()),Cs(t,function(u,c){return c.func.apply(c.thisArg,cn([u],c.args))},a)}function nu(e,t,a){var u=e.length;if(u<2)return u?pn(e[0]):[];for(var c=-1,g=D(u);++c<u;)for(var v=e[c],b=-1;++b<u;)b!=c&&(g[c]=Zr(g[c]||v,e[b],t,a));return pn(Re(g,1),t,a)}function hh(e,t,a){for(var u=-1,c=e.length,g=t.length,v={};++u<c;){var b=u<g?t[u]:r;a(v,e[u],b)}return v}function ru(e){return Ie(e)?e:[]}function iu(e){return typeof e=="function"?e:tt}function vn(e,t){return te(e)?e:hu(e,t)?[e]:Hh(me(e))}var C_=se;function mn(e,t,a){var u=e.length;return a=a===r?u:a,!t&&a>=u?e:St(e,t,a)}var gh=mw||function(e){return Fe.clearTimeout(e)};function ph(e,t){if(t)return e.slice();var a=e.length,u=Fd?Fd(a):new e.constructor(a);return e.copy(u),u}function au(e){var t=new e.constructor(e.byteLength);return new ea(t).set(new ea(e)),t}function N_(e,t){var a=t?au(e.buffer):e.buffer;return new e.constructor(a,e.byteOffset,e.byteLength)}function P_(e){var t=new e.constructor(e.source,Zc.exec(e));return t.lastIndex=e.lastIndex,t}function L_(e){return Xr?ye(Xr.call(e)):{}}function vh(e,t){var a=t?au(e.buffer):e.buffer;return new e.constructor(a,e.byteOffset,e.length)}function mh(e,t){if(e!==t){var a=e!==r,u=e===null,c=e===e,g=lt(e),v=t!==r,b=t===null,x=t===t,M=lt(t);if(!b&&!M&&!g&&e>t||g&&v&&x&&!b&&!M||u&&v&&x||!a&&x||!c)return 1;if(!u&&!g&&!M&&e<t||M&&a&&c&&!u&&!g||b&&a&&c||!v&&c||!x)return-1}return 0}function M_(e,t,a){for(var u=-1,c=e.criteria,g=t.criteria,v=c.length,b=a.length;++u<v;){var x=mh(c[u],g[u]);if(x){if(u>=b)return x;var M=a[u];return x*(M=="desc"?-1:1)}}return e.index-t.index}function yh(e,t,a,u){for(var c=-1,g=e.length,v=a.length,b=-1,x=t.length,M=Pe(g-v,0),k=D(x+M),R=!u;++b<x;)k[b]=t[b];for(;++c<v;)(R||c<g)&&(k[a[c]]=e[c]);for(;M--;)k[b++]=e[c++];return k}function bh(e,t,a,u){for(var c=-1,g=e.length,v=-1,b=a.length,x=-1,M=t.length,k=Pe(g-b,0),R=D(k+M),H=!u;++c<k;)R[c]=e[c];for(var q=c;++x<M;)R[q+x]=t[x];for(;++v<b;)(H||c<g)&&(R[q+a[v]]=e[c++]);return R}function Ze(e,t){var a=-1,u=e.length;for(t||(t=D(u));++a<u;)t[a]=e[a];return t}function Ft(e,t,a,u){var c=!a;a||(a={});for(var g=-1,v=t.length;++g<v;){var b=t[g],x=u?u(a[b],e[b],b,a,e):r;x===r&&(x=e[b]),c?Vt(a,b,x):Kr(a,b,x)}return a}function k_(e,t){return Ft(e,du(e),t)}function F_(e,t){return Ft(e,Ph(e),t)}function pa(e,t){return function(a,u){var c=te(a)?US:i_,g=t?t():{};return c(a,e,J(u,2),g)}}function dr(e){return se(function(t,a){var u=-1,c=a.length,g=c>1?a[c-1]:r,v=c>2?a[2]:r;for(g=e.length>3&&typeof g=="function"?(c--,g):r,v&&Ge(a[0],a[1],v)&&(g=c<3?r:g,c=1),t=ye(t);++u<c;){var b=a[u];b&&e(t,b,u,g)}return t})}function Sh(e,t){return function(a,u){if(a==null)return a;if(!Qe(a))return e(a,u);for(var c=a.length,g=t?c:-1,v=ye(a);(t?g--:++g<c)&&u(v[g],g,v)!==!1;);return a}}function wh(e){return function(t,a,u){for(var c=-1,g=ye(t),v=u(t),b=v.length;b--;){var x=v[e?b:++c];if(a(g[x],x,g)===!1)break}return t}}function R_(e,t,a){var u=t&I,c=ni(e);function g(){var v=this&&this!==Fe&&this instanceof g?c:e;return v.apply(u?a:this,arguments)}return g}function _h(e){return function(t){t=me(t);var a=ar(t)?At(t):r,u=a?a[0]:t.charAt(0),c=a?mn(a,1).join(""):t.slice(1);return u[e]()+c}}function hr(e){return function(t){return Cs(Sg(bg(t).replace(OS,"")),e,"")}}function ni(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var a=cr(e.prototype),u=e.apply(a,t);return Ee(u)?u:a}}function W_(e,t,a){var u=ni(e);function c(){for(var g=arguments.length,v=D(g),b=g,x=gr(c);b--;)v[b]=arguments[b];var M=g<3&&v[0]!==x&&v[g-1]!==x?[]:dn(v,x);if(g-=M.length,g<a)return Oh(e,t,va,c.placeholder,r,v,M,r,r,a-g);var k=this&&this!==Fe&&this instanceof c?u:e;return ot(k,this,v)}return c}function Eh(e){return function(t,a,u){var c=ye(t);if(!Qe(t)){var g=J(a,3);t=Me(t),a=function(b){return g(c[b],b,c)}}var v=e(t,a,u);return v>-1?c[g?t[v]:v]:r}}function Th(e){return Kt(function(t){var a=t.length,u=a,c=yt.prototype.thru;for(e&&t.reverse();u--;){var g=t[u];if(typeof g!="function")throw new mt(f);if(c&&!v&&Sa(g)=="wrapper")var v=new yt([],!0)}for(u=v?u:a;++u<a;){g=t[u];var b=Sa(g),x=b=="wrapper"?fu(g):r;x&&gu(x[0])&&x[1]==(N|U|B|L)&&!x[4].length&&x[9]==1?v=v[Sa(x[0])].apply(v,x[3]):v=g.length==1&&gu(g)?v[b]():v.thru(g)}return function(){var M=arguments,k=M[0];if(v&&M.length==1&&te(k))return v.plant(k).value();for(var R=0,H=a?t[R].apply(this,M):k;++R<a;)H=t[R].call(this,H);return H}})}function va(e,t,a,u,c,g,v,b,x,M){var k=t&N,R=t&I,H=t&C,q=t&(U|V),K=t&j,oe=H?r:ni(e);function Z(){for(var le=arguments.length,de=D(le),ft=le;ft--;)de[ft]=arguments[ft];if(q)var Ye=gr(Z),ct=XS(de,Ye);if(u&&(de=yh(de,u,c,q)),g&&(de=bh(de,g,v,q)),le-=ct,q&&le<M){var Oe=dn(de,Ye);return Oh(e,t,va,Z.placeholder,a,de,Oe,b,x,M-le)}var Pt=R?a:this,tn=H?Pt[e]:e;return le=de.length,b?de=iE(de,b):K&&le>1&&de.reverse(),k&&x<le&&(de.length=x),this&&this!==Fe&&this instanceof Z&&(tn=oe||ni(tn)),tn.apply(Pt,de)}return Z}function xh(e,t){return function(a,u){return d_(a,e,t(u),{})}}function ma(e,t){return function(a,u){var c;if(a===r&&u===r)return t;if(a!==r&&(c=a),u!==r){if(c===r)return u;typeof a=="string"||typeof u=="string"?(a=ut(a),u=ut(u)):(a=fh(a),u=fh(u)),c=e(a,u)}return c}}function ou(e){return Kt(function(t){return t=_e(t,st(J())),se(function(a){var u=this;return e(t,function(c){return ot(c,u,a)})})})}function ya(e,t){t=t===r?" ":ut(t);var a=t.length;if(a<2)return a?Qs(t,e):t;var u=Qs(t,ia(e/or(t)));return ar(t)?mn(At(u),0,e).join(""):u.slice(0,e)}function B_(e,t,a,u){var c=t&I,g=ni(e);function v(){for(var b=-1,x=arguments.length,M=-1,k=u.length,R=D(k+x),H=this&&this!==Fe&&this instanceof v?g:e;++M<k;)R[M]=u[M];for(;x--;)R[M++]=arguments[++b];return ot(H,c?a:this,R)}return v}function Ih(e){return function(t,a,u){return u&&typeof u!="number"&&Ge(t,a,u)&&(a=u=r),t=en(t),a===r?(a=t,t=0):a=en(a),u=u===r?t<a?1:-1:en(u),T_(t,a,u,e)}}function ba(e){return function(t,a){return typeof t=="string"&&typeof a=="string"||(t=_t(t),a=_t(a)),e(t,a)}}function Oh(e,t,a,u,c,g,v,b,x,M){var k=t&U,R=k?v:r,H=k?r:v,q=k?g:r,K=k?r:g;t|=k?B:ue,t&=~(k?ue:B),t&F||(t&=-4);var oe=[e,t,c,q,R,K,H,b,x,M],Z=a.apply(r,oe);return gu(e)&&Bh(Z,oe),Z.placeholder=u,$h(Z,e,t)}function su(e){var t=Ne[e];return function(a,u){if(a=_t(a),u=u==null?0:$e(ie(u),292),u&&$d(a)){var c=(me(a)+"e").split("e"),g=t(c[0]+"e"+(+c[1]+u));return c=(me(g)+"e").split("e"),+(c[0]+"e"+(+c[1]-u))}return t(a)}}var $_=lr&&1/Ji(new lr([,-0]))[1]==Ot?function(e){return new lr(e)}:Au;function Dh(e){return function(t){var a=Ue(t);return a==De?Rs(t):a==Xe?rw(t):VS(t,e(t))}}function Xt(e,t,a,u,c,g,v,b){var x=t&C;if(!x&&typeof e!="function")throw new mt(f);var M=u?u.length:0;if(M||(t&=-97,u=c=r),v=v===r?v:Pe(ie(v),0),b=b===r?b:ie(b),M-=c?c.length:0,t&ue){var k=u,R=c;u=c=r}var H=x?r:fu(e),q=[e,t,a,u,c,k,R,g,v,b];if(H&&tE(q,H),e=q[0],t=q[1],a=q[2],u=q[3],c=q[4],b=q[9]=q[9]===r?x?0:e.length:Pe(q[9]-M,0),!b&&t&(U|V)&&(t&=-25),!t||t==I)var K=R_(e,t,a);else t==U||t==V?K=W_(e,t,b):(t==B||t==(I|B))&&!c.length?K=B_(e,t,a,u):K=va.apply(r,q);var oe=H?uh:Bh;return $h(oe(K,q),e,t)}function Ah(e,t,a,u){return e===r||Nt(e,ur[a])&&!ve.call(u,a)?t:e}function Ch(e,t,a,u,c,g){return Ee(e)&&Ee(t)&&(g.set(t,e),da(e,t,r,Ch,g),g.delete(t)),e}function U_(e){return ai(e)?r:e}function Nh(e,t,a,u,c,g){var v=a&E,b=e.length,x=t.length;if(b!=x&&!(v&&x>b))return!1;var M=g.get(e),k=g.get(t);if(M&&k)return M==t&&k==e;var R=-1,H=!0,q=a&_?new Ln:r;for(g.set(e,t),g.set(t,e);++R<b;){var K=e[R],oe=t[R];if(u)var Z=v?u(oe,K,R,t,e,g):u(K,oe,R,e,t,g);if(Z!==r){if(Z)continue;H=!1;break}if(q){if(!Ns(t,function(le,de){if(!qr(q,de)&&(K===le||c(K,le,a,u,g)))return q.push(de)})){H=!1;break}}else if(!(K===oe||c(K,oe,a,u,g))){H=!1;break}}return g.delete(e),g.delete(t),H}function H_(e,t,a,u,c,g,v){switch(a){case je:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case In:return!(e.byteLength!=t.byteLength||!g(new ea(e),new ea(t)));case Tn:case sn:case un:return Nt(+e,+t);case Xn:return e.name==t.name&&e.message==t.message;case Ae:case ln:return e==t+"";case De:var b=Rs;case Xe:var x=u&E;if(b||(b=Ji),e.size!=t.size&&!x)return!1;var M=v.get(e);if(M)return M==t;u|=_,v.set(e,t);var k=Nh(b(e),b(t),u,c,g,v);return v.delete(e),k;case Be:if(Xr)return Xr.call(e)==Xr.call(t)}return!1}function z_(e,t,a,u,c,g){var v=a&E,b=uu(e),x=b.length,M=uu(t),k=M.length;if(x!=k&&!v)return!1;for(var R=x;R--;){var H=b[R];if(!(v?H in t:ve.call(t,H)))return!1}var q=g.get(e),K=g.get(t);if(q&&K)return q==t&&K==e;var oe=!0;g.set(e,t),g.set(t,e);for(var Z=v;++R<x;){H=b[R];var le=e[H],de=t[H];if(u)var ft=v?u(de,le,H,t,e,g):u(le,de,H,e,t,g);if(!(ft===r?le===de||c(le,de,a,u,g):ft)){oe=!1;break}Z||(Z=H=="constructor")}if(oe&&!Z){var Ye=e.constructor,ct=t.constructor;Ye!=ct&&"constructor"in e&&"constructor"in t&&!(typeof Ye=="function"&&Ye instanceof Ye&&typeof ct=="function"&&ct instanceof ct)&&(oe=!1)}return g.delete(e),g.delete(t),oe}function Kt(e){return vu(Rh(e,r,Gh),e+"")}function uu(e){return Kd(e,Me,du)}function lu(e){return Kd(e,et,Ph)}var fu=oa?function(e){return oa.get(e)}:Au;function Sa(e){for(var t=e.name+"",a=fr[t],u=ve.call(fr,t)?a.length:0;u--;){var c=a[u],g=c.func;if(g==null||g==e)return c.name}return t}function gr(e){var t=ve.call(h,"placeholder")?h:e;return t.placeholder}function J(){var e=h.iteratee||Ou;return e=e===Ou?eh:e,arguments.length?e(arguments[0],arguments[1]):e}function wa(e,t){var a=e.__data__;return K_(t)?a[typeof t=="string"?"string":"hash"]:a.map}function cu(e){for(var t=Me(e),a=t.length;a--;){var u=t[a],c=e[u];t[a]=[u,c,kh(c)]}return t}function Fn(e,t){var a=ew(e,t);return Qd(a)?a:r}function j_(e){var t=ve.call(e,Nn),a=e[Nn];try{e[Nn]=r;var u=!0}catch{}var c=Zi.call(e);return u&&(t?e[Nn]=a:delete e[Nn]),c}var du=Bs?function(e){return e==null?[]:(e=ye(e),fn(Bs(e),function(t){return Wd.call(e,t)}))}:Cu,Ph=Bs?function(e){for(var t=[];e;)cn(t,du(e)),e=ta(e);return t}:Cu,Ue=qe;($s&&Ue(new $s(new ArrayBuffer(1)))!=je||Yr&&Ue(new Yr)!=De||Us&&Ue(Us.resolve())!=ze||lr&&Ue(new lr)!=Xe||Jr&&Ue(new Jr)!=xn)&&(Ue=function(e){var t=qe(e),a=t==it?e.constructor:r,u=a?Rn(a):"";if(u)switch(u){case Iw:return je;case Ow:return De;case Dw:return ze;case Aw:return Xe;case Cw:return xn}return t});function q_(e,t,a){for(var u=-1,c=a.length;++u<c;){var g=a[u],v=g.size;switch(g.type){case"drop":e+=v;break;case"dropRight":t-=v;break;case"take":t=$e(t,e+v);break;case"takeRight":e=Pe(e,t-v);break}}return{start:e,end:t}}function G_(e){var t=e.match(nr);return t?t[1].split(Q1):[]}function Lh(e,t,a){t=vn(t,e);for(var u=-1,c=t.length,g=!1;++u<c;){var v=Rt(t[u]);if(!(g=e!=null&&a(e,v)))break;e=e[v]}return g||++u!=c?g:(c=e==null?0:e.length,!!c&&Da(c)&&Zt(v,c)&&(te(e)||Wn(e)))}function Y_(e){var t=e.length,a=new e.constructor(t);return t&&typeof e[0]=="string"&&ve.call(e,"index")&&(a.index=e.index,a.input=e.input),a}function Mh(e){return typeof e.constructor=="function"&&!ri(e)?cr(ta(e)):{}}function J_(e,t,a){var u=e.constructor;switch(t){case In:return au(e);case Tn:case sn:return new u(+e);case je:return N_(e,a);case Qn:case Rr:case On:case Dn:case Wr:case Br:case er:case $r:case Ur:return vh(e,a);case De:return new u;case un:case ln:return new u(e);case Ae:return P_(e);case Xe:return new u;case Be:return L_(e)}}function V_(e,t){var a=t.length;if(!a)return e;var u=a-1;return t[u]=(a>1?"& ":"")+t[u],t=t.join(a>2?", ":" "),e.replace(jr,`{
|
|
1
|
+
(function(ce,k){typeof exports=="object"&&typeof module<"u"?k(exports,require("react"),require("inversify"),require("mobx"),require("inversify-react"),require("react/jsx-runtime"),require("react-dnd"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","inversify","mobx","inversify-react","react/jsx-runtime","react-dnd","react-dom"],k):(ce=typeof globalThis<"u"?globalThis:ce||self,k(ce.JustLayout={},ce.React,ce.inversify,ce.mobx,ce.inversifyReact,ce.jsxRuntime,ce.ReactDnd,ce.ReactDOM))})(this,(function(ce,k,Vr,lr,ph,$,Zr,cr){"use strict";function eu(a){return JSON.stringify(ma(a))}function ma(a){return Array.isArray(a)?a.map(ma):a&&typeof a=="object"?Object.fromEntries(Object.entries(a).sort((i,n)=>i[0].localeCompare(n[0])).map(([i,n])=>[i,ma(n)])):a}const kt={JustLayoutService:Symbol.for("JustLayoutService"),JustLayoutStore:Symbol.for("JustLayoutStore"),JustLayoutStoreCacheMap:Symbol.for("JustLayoutStoreCacheMap"),JustLayoutFactory:Symbol.for("JustLayoutFactory")};var Qt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Qr(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var dr={exports:{}};var vh=dr.exports,tu;function gh(){return tu||(tu=1,(function(a,i){(function(){var n,o="4.17.23",u=200,f="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",c="Expected a function",p="Invalid `variable` option passed into `_.template`",g="__lodash_hash_undefined__",y=500,_="__lodash_placeholder__",w=1,O=2,x=4,E=1,A=2,T=1,L=2,W=4,U=8,Z=16,R=32,de=64,C=128,P=256,q=512,ee=30,J="...",ie=800,K=16,We=1,Je=2,Ye=3,Et=1/0,ze=9007199254740991,Do=17976931348623157e292,At=NaN,nt=4294967295,xi=nt-1,Ei=nt>>>1,Ar=[["ary",C],["bind",T],["bindKey",L],["curry",U],["curryRight",Z],["flip",q],["partial",R],["partialRight",de],["rearg",P]],Ut="[object Arguments]",bn="[object Array]",Tr="[object AsyncFunction]",_n="[object Boolean]",rn="[object Date]",Ir="[object DOMException]",Hn="[object Error]",qn="[object Function]",Ai="[object GeneratorFunction]",Ie="[object Map]",an="[object Number]",Ti="[object Null]",rt="[object Object]",Ue="[object Promise]",jn="[object Proxy]",Oe="[object RegExp]",Ke="[object Set]",on="[object String]",Be="[object Symbol]",Wo="[object Undefined]",wn="[object WeakMap]",Bo="[object WeakSet]",Sn="[object ArrayBuffer]",He="[object DataView]",Gn="[object Float32Array]",Or="[object Float64Array]",xn="[object Int8Array]",En="[object Int16Array]",Cr="[object Int32Array]",Nr="[object Uint8Array]",Jn="[object Uint8ClampedArray]",Lr="[object Uint16Array]",Pr="[object Uint32Array]",Ii=/\b__p \+= '';/g,fe=/\b(__p \+=) '' \+/g,Pe=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Xe=/&(?:amp|lt|gt|quot|#39);/g,it=/[&<>"']/g,Ee=RegExp(Xe.source),Yn=RegExp(it.source),Ro=/<%-([\s\S]+?)%>/g,$o=/<%([\s\S]+?)%>/g,An=/<%=([\s\S]+?)%>/g,zo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Uo=/^\w*$/,Oi=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Fr=/[\\^$.*+?()[\]{}|]/g,Ho=RegExp(Fr.source),Ht=/^\s+/,Mr=/\s/,kr=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Kn=/\{\n\/\* \[wrapped with (.+)\] \*/,N0=/,? & /,L0=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,P0=/[()=,{}\[\]\/\s]/,F0=/\\(\\)?/g,M0=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ul=/\w*$/,k0=/^[-+]0x[0-9a-f]+$/i,D0=/^0b[01]+$/i,W0=/^\[object .+?Constructor\]$/,B0=/^0o[0-7]+$/i,R0=/^(?:0|[1-9]\d*)$/,$0=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ci=/($^)/,z0=/['\n\r\u2028\u2029\\]/g,Ni="\\ud800-\\udfff",U0="\\u0300-\\u036f",H0="\\ufe20-\\ufe2f",q0="\\u20d0-\\u20ff",Hl=U0+H0+q0,ql="\\u2700-\\u27bf",jl="a-z\\xdf-\\xf6\\xf8-\\xff",j0="\\xac\\xb1\\xd7\\xf7",G0="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",J0="\\u2000-\\u206f",Y0=" \\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",Gl="A-Z\\xc0-\\xd6\\xd8-\\xde",Jl="\\ufe0e\\ufe0f",Yl=j0+G0+J0+Y0,qo="['’]",K0="["+Ni+"]",Kl="["+Yl+"]",Li="["+Hl+"]",Xl="\\d+",X0="["+ql+"]",Vl="["+jl+"]",Zl="[^"+Ni+Yl+Xl+ql+jl+Gl+"]",jo="\\ud83c[\\udffb-\\udfff]",V0="(?:"+Li+"|"+jo+")",Ql="[^"+Ni+"]",Go="(?:\\ud83c[\\udde6-\\uddff]){2}",Jo="[\\ud800-\\udbff][\\udc00-\\udfff]",Xn="["+Gl+"]",ec="\\u200d",tc="(?:"+Vl+"|"+Zl+")",Z0="(?:"+Xn+"|"+Zl+")",nc="(?:"+qo+"(?:d|ll|m|re|s|t|ve))?",rc="(?:"+qo+"(?:D|LL|M|RE|S|T|VE))?",ic=V0+"?",ac="["+Jl+"]?",Q0="(?:"+ec+"(?:"+[Ql,Go,Jo].join("|")+")"+ac+ic+")*",ey="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ty="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",oc=ac+ic+Q0,ny="(?:"+[X0,Go,Jo].join("|")+")"+oc,ry="(?:"+[Ql+Li+"?",Li,Go,Jo,K0].join("|")+")",iy=RegExp(qo,"g"),ay=RegExp(Li,"g"),Yo=RegExp(jo+"(?="+jo+")|"+ry+oc,"g"),oy=RegExp([Xn+"?"+Vl+"+"+nc+"(?="+[Kl,Xn,"$"].join("|")+")",Z0+"+"+rc+"(?="+[Kl,Xn+tc,"$"].join("|")+")",Xn+"?"+tc+"+"+nc,Xn+"+"+rc,ty,ey,Xl,ny].join("|"),"g"),sy=RegExp("["+ec+Ni+Hl+Jl+"]"),uy=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,fy=["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"],ly=-1,_e={};_e[Gn]=_e[Or]=_e[xn]=_e[En]=_e[Cr]=_e[Nr]=_e[Jn]=_e[Lr]=_e[Pr]=!0,_e[Ut]=_e[bn]=_e[Sn]=_e[_n]=_e[He]=_e[rn]=_e[Hn]=_e[qn]=_e[Ie]=_e[an]=_e[rt]=_e[Oe]=_e[Ke]=_e[on]=_e[wn]=!1;var ye={};ye[Ut]=ye[bn]=ye[Sn]=ye[He]=ye[_n]=ye[rn]=ye[Gn]=ye[Or]=ye[xn]=ye[En]=ye[Cr]=ye[Ie]=ye[an]=ye[rt]=ye[Oe]=ye[Ke]=ye[on]=ye[Be]=ye[Nr]=ye[Jn]=ye[Lr]=ye[Pr]=!0,ye[Hn]=ye[qn]=ye[wn]=!1;var cy={À:"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"},dy={"&":"&","<":"<",">":">",'"':""","'":"'"},hy={"&":"&","<":"<",">":">",""":'"',"'":"'"},py={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},vy=parseFloat,gy=parseInt,sc=typeof Qt=="object"&&Qt&&Qt.Object===Object&&Qt,my=typeof self=="object"&&self&&self.Object===Object&&self,ke=sc||my||Function("return this")(),Ko=i&&!i.nodeType&&i,Tn=Ko&&!0&&a&&!a.nodeType&&a,uc=Tn&&Tn.exports===Ko,Xo=uc&&sc.process,dt=(function(){try{var b=Tn&&Tn.require&&Tn.require("util").types;return b||Xo&&Xo.binding&&Xo.binding("util")}catch{}})(),fc=dt&&dt.isArrayBuffer,lc=dt&&dt.isDate,cc=dt&&dt.isMap,dc=dt&&dt.isRegExp,hc=dt&&dt.isSet,pc=dt&&dt.isTypedArray;function at(b,N,I){switch(I.length){case 0:return b.call(N);case 1:return b.call(N,I[0]);case 2:return b.call(N,I[0],I[1]);case 3:return b.call(N,I[0],I[1],I[2])}return b.apply(N,I)}function yy(b,N,I,H){for(var Q=-1,pe=b==null?0:b.length;++Q<pe;){var Ne=b[Q];N(H,Ne,I(Ne),b)}return H}function ht(b,N){for(var I=-1,H=b==null?0:b.length;++I<H&&N(b[I],I,b)!==!1;);return b}function by(b,N){for(var I=b==null?0:b.length;I--&&N(b[I],I,b)!==!1;);return b}function vc(b,N){for(var I=-1,H=b==null?0:b.length;++I<H;)if(!N(b[I],I,b))return!1;return!0}function sn(b,N){for(var I=-1,H=b==null?0:b.length,Q=0,pe=[];++I<H;){var Ne=b[I];N(Ne,I,b)&&(pe[Q++]=Ne)}return pe}function Pi(b,N){var I=b==null?0:b.length;return!!I&&Vn(b,N,0)>-1}function Vo(b,N,I){for(var H=-1,Q=b==null?0:b.length;++H<Q;)if(I(N,b[H]))return!0;return!1}function we(b,N){for(var I=-1,H=b==null?0:b.length,Q=Array(H);++I<H;)Q[I]=N(b[I],I,b);return Q}function un(b,N){for(var I=-1,H=N.length,Q=b.length;++I<H;)b[Q+I]=N[I];return b}function Zo(b,N,I,H){var Q=-1,pe=b==null?0:b.length;for(H&&pe&&(I=b[++Q]);++Q<pe;)I=N(I,b[Q],Q,b);return I}function _y(b,N,I,H){var Q=b==null?0:b.length;for(H&&Q&&(I=b[--Q]);Q--;)I=N(I,b[Q],Q,b);return I}function Qo(b,N){for(var I=-1,H=b==null?0:b.length;++I<H;)if(N(b[I],I,b))return!0;return!1}var wy=es("length");function Sy(b){return b.split("")}function xy(b){return b.match(L0)||[]}function gc(b,N,I){var H;return I(b,function(Q,pe,Ne){if(N(Q,pe,Ne))return H=pe,!1}),H}function Fi(b,N,I,H){for(var Q=b.length,pe=I+(H?1:-1);H?pe--:++pe<Q;)if(N(b[pe],pe,b))return pe;return-1}function Vn(b,N,I){return N===N?ky(b,N,I):Fi(b,mc,I)}function Ey(b,N,I,H){for(var Q=I-1,pe=b.length;++Q<pe;)if(H(b[Q],N))return Q;return-1}function mc(b){return b!==b}function yc(b,N){var I=b==null?0:b.length;return I?ns(b,N)/I:At}function es(b){return function(N){return N==null?n:N[b]}}function ts(b){return function(N){return b==null?n:b[N]}}function bc(b,N,I,H,Q){return Q(b,function(pe,Ne,me){I=H?(H=!1,pe):N(I,pe,Ne,me)}),I}function Ay(b,N){var I=b.length;for(b.sort(N);I--;)b[I]=b[I].value;return b}function ns(b,N){for(var I,H=-1,Q=b.length;++H<Q;){var pe=N(b[H]);pe!==n&&(I=I===n?pe:I+pe)}return I}function rs(b,N){for(var I=-1,H=Array(b);++I<b;)H[I]=N(I);return H}function Ty(b,N){return we(N,function(I){return[I,b[I]]})}function _c(b){return b&&b.slice(0,Ec(b)+1).replace(Ht,"")}function ot(b){return function(N){return b(N)}}function is(b,N){return we(N,function(I){return b[I]})}function Dr(b,N){return b.has(N)}function wc(b,N){for(var I=-1,H=b.length;++I<H&&Vn(N,b[I],0)>-1;);return I}function Sc(b,N){for(var I=b.length;I--&&Vn(N,b[I],0)>-1;);return I}function Iy(b,N){for(var I=b.length,H=0;I--;)b[I]===N&&++H;return H}var Oy=ts(cy),Cy=ts(dy);function Ny(b){return"\\"+py[b]}function Ly(b,N){return b==null?n:b[N]}function Zn(b){return sy.test(b)}function Py(b){return uy.test(b)}function Fy(b){for(var N,I=[];!(N=b.next()).done;)I.push(N.value);return I}function as(b){var N=-1,I=Array(b.size);return b.forEach(function(H,Q){I[++N]=[Q,H]}),I}function xc(b,N){return function(I){return b(N(I))}}function fn(b,N){for(var I=-1,H=b.length,Q=0,pe=[];++I<H;){var Ne=b[I];(Ne===N||Ne===_)&&(b[I]=_,pe[Q++]=I)}return pe}function Mi(b){var N=-1,I=Array(b.size);return b.forEach(function(H){I[++N]=H}),I}function My(b){var N=-1,I=Array(b.size);return b.forEach(function(H){I[++N]=[H,H]}),I}function ky(b,N,I){for(var H=I-1,Q=b.length;++H<Q;)if(b[H]===N)return H;return-1}function Dy(b,N,I){for(var H=I+1;H--;)if(b[H]===N)return H;return H}function Qn(b){return Zn(b)?By(b):wy(b)}function Tt(b){return Zn(b)?Ry(b):Sy(b)}function Ec(b){for(var N=b.length;N--&&Mr.test(b.charAt(N)););return N}var Wy=ts(hy);function By(b){for(var N=Yo.lastIndex=0;Yo.test(b);)++N;return N}function Ry(b){return b.match(Yo)||[]}function $y(b){return b.match(oy)||[]}var zy=(function b(N){N=N==null?ke:er.defaults(ke.Object(),N,er.pick(ke,fy));var I=N.Array,H=N.Date,Q=N.Error,pe=N.Function,Ne=N.Math,me=N.Object,os=N.RegExp,Uy=N.String,pt=N.TypeError,ki=I.prototype,Hy=pe.prototype,tr=me.prototype,Di=N["__core-js_shared__"],Wi=Hy.toString,ve=tr.hasOwnProperty,qy=0,Ac=(function(){var e=/[^.]+$/.exec(Di&&Di.keys&&Di.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})(),Bi=tr.toString,jy=Wi.call(me),Gy=ke._,Jy=os("^"+Wi.call(ve).replace(Fr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ri=uc?N.Buffer:n,ln=N.Symbol,$i=N.Uint8Array,Tc=Ri?Ri.allocUnsafe:n,zi=xc(me.getPrototypeOf,me),Ic=me.create,Oc=tr.propertyIsEnumerable,Ui=ki.splice,Cc=ln?ln.isConcatSpreadable:n,Wr=ln?ln.iterator:n,In=ln?ln.toStringTag:n,Hi=(function(){try{var e=Pn(me,"defineProperty");return e({},"",{}),e}catch{}})(),Yy=N.clearTimeout!==ke.clearTimeout&&N.clearTimeout,Ky=H&&H.now!==ke.Date.now&&H.now,Xy=N.setTimeout!==ke.setTimeout&&N.setTimeout,qi=Ne.ceil,ji=Ne.floor,ss=me.getOwnPropertySymbols,Vy=Ri?Ri.isBuffer:n,Nc=N.isFinite,Zy=ki.join,Qy=xc(me.keys,me),Le=Ne.max,Re=Ne.min,e1=H.now,t1=N.parseInt,Lc=Ne.random,n1=ki.reverse,us=Pn(N,"DataView"),Br=Pn(N,"Map"),fs=Pn(N,"Promise"),nr=Pn(N,"Set"),Rr=Pn(N,"WeakMap"),$r=Pn(me,"create"),Gi=Rr&&new Rr,rr={},r1=Fn(us),i1=Fn(Br),a1=Fn(fs),o1=Fn(nr),s1=Fn(Rr),Ji=ln?ln.prototype:n,zr=Ji?Ji.valueOf:n,Pc=Ji?Ji.toString:n;function d(e){if(xe(e)&&!te(e)&&!(e instanceof ue)){if(e instanceof vt)return e;if(ve.call(e,"__wrapped__"))return Fd(e)}return new vt(e)}var ir=(function(){function e(){}return function(t){if(!Se(t))return{};if(Ic)return Ic(t);e.prototype=t;var r=new e;return e.prototype=n,r}})();function Yi(){}function vt(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}d.templateSettings={escape:Ro,evaluate:$o,interpolate:An,variable:"",imports:{_:d}},d.prototype=Yi.prototype,d.prototype.constructor=d,vt.prototype=ir(Yi.prototype),vt.prototype.constructor=vt;function ue(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=nt,this.__views__=[]}function u1(){var e=new ue(this.__wrapped__);return e.__actions__=Ve(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Ve(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Ve(this.__views__),e}function f1(){if(this.__filtered__){var e=new ue(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function l1(){var e=this.__wrapped__.value(),t=this.__dir__,r=te(e),s=t<0,l=r?e.length:0,h=Sb(0,l,this.__views__),v=h.start,m=h.end,S=m-v,F=s?m:v-1,M=this.__iteratees__,D=M.length,z=0,j=Re(S,this.__takeCount__);if(!r||!s&&l==S&&j==S)return nd(e,this.__actions__);var X=[];e:for(;S--&&z<j;){F+=t;for(var ae=-1,V=e[F];++ae<D;){var se=M[ae],le=se.iteratee,ft=se.type,Ge=le(V);if(ft==Je)V=Ge;else if(!Ge){if(ft==We)continue e;break e}}X[z++]=V}return X}ue.prototype=ir(Yi.prototype),ue.prototype.constructor=ue;function On(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var s=e[t];this.set(s[0],s[1])}}function c1(){this.__data__=$r?$r(null):{},this.size=0}function d1(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function h1(e){var t=this.__data__;if($r){var r=t[e];return r===g?n:r}return ve.call(t,e)?t[e]:n}function p1(e){var t=this.__data__;return $r?t[e]!==n:ve.call(t,e)}function v1(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=$r&&t===n?g:t,this}On.prototype.clear=c1,On.prototype.delete=d1,On.prototype.get=h1,On.prototype.has=p1,On.prototype.set=v1;function qt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var s=e[t];this.set(s[0],s[1])}}function g1(){this.__data__=[],this.size=0}function m1(e){var t=this.__data__,r=Ki(t,e);if(r<0)return!1;var s=t.length-1;return r==s?t.pop():Ui.call(t,r,1),--this.size,!0}function y1(e){var t=this.__data__,r=Ki(t,e);return r<0?n:t[r][1]}function b1(e){return Ki(this.__data__,e)>-1}function _1(e,t){var r=this.__data__,s=Ki(r,e);return s<0?(++this.size,r.push([e,t])):r[s][1]=t,this}qt.prototype.clear=g1,qt.prototype.delete=m1,qt.prototype.get=y1,qt.prototype.has=b1,qt.prototype.set=_1;function jt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var s=e[t];this.set(s[0],s[1])}}function w1(){this.size=0,this.__data__={hash:new On,map:new(Br||qt),string:new On}}function S1(e){var t=sa(this,e).delete(e);return this.size-=t?1:0,t}function x1(e){return sa(this,e).get(e)}function E1(e){return sa(this,e).has(e)}function A1(e,t){var r=sa(this,e),s=r.size;return r.set(e,t),this.size+=r.size==s?0:1,this}jt.prototype.clear=w1,jt.prototype.delete=S1,jt.prototype.get=x1,jt.prototype.has=E1,jt.prototype.set=A1;function Cn(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new jt;++t<r;)this.add(e[t])}function T1(e){return this.__data__.set(e,g),this}function I1(e){return this.__data__.has(e)}Cn.prototype.add=Cn.prototype.push=T1,Cn.prototype.has=I1;function It(e){var t=this.__data__=new qt(e);this.size=t.size}function O1(){this.__data__=new qt,this.size=0}function C1(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function N1(e){return this.__data__.get(e)}function L1(e){return this.__data__.has(e)}function P1(e,t){var r=this.__data__;if(r instanceof qt){var s=r.__data__;if(!Br||s.length<u-1)return s.push([e,t]),this.size=++r.size,this;r=this.__data__=new jt(s)}return r.set(e,t),this.size=r.size,this}It.prototype.clear=O1,It.prototype.delete=C1,It.prototype.get=N1,It.prototype.has=L1,It.prototype.set=P1;function Fc(e,t){var r=te(e),s=!r&&Mn(e),l=!r&&!s&&vn(e),h=!r&&!s&&!l&&ur(e),v=r||s||l||h,m=v?rs(e.length,Uy):[],S=m.length;for(var F in e)(t||ve.call(e,F))&&!(v&&(F=="length"||l&&(F=="offset"||F=="parent")||h&&(F=="buffer"||F=="byteLength"||F=="byteOffset")||Kt(F,S)))&&m.push(F);return m}function Mc(e){var t=e.length;return t?e[_s(0,t-1)]:n}function F1(e,t){return ua(Ve(e),Nn(t,0,e.length))}function M1(e){return ua(Ve(e))}function ls(e,t,r){(r!==n&&!Ot(e[t],r)||r===n&&!(t in e))&&Gt(e,t,r)}function Ur(e,t,r){var s=e[t];(!(ve.call(e,t)&&Ot(s,r))||r===n&&!(t in e))&&Gt(e,t,r)}function Ki(e,t){for(var r=e.length;r--;)if(Ot(e[r][0],t))return r;return-1}function k1(e,t,r,s){return cn(e,function(l,h,v){t(s,l,r(l),v)}),s}function kc(e,t){return e&&Ft(t,Fe(t),e)}function D1(e,t){return e&&Ft(t,Qe(t),e)}function Gt(e,t,r){t=="__proto__"&&Hi?Hi(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function cs(e,t){for(var r=-1,s=t.length,l=I(s),h=e==null;++r<s;)l[r]=h?n:js(e,t[r]);return l}function Nn(e,t,r){return e===e&&(r!==n&&(e=e<=r?e:r),t!==n&&(e=e>=t?e:t)),e}function gt(e,t,r,s,l,h){var v,m=t&w,S=t&O,F=t&x;if(r&&(v=l?r(e,s,l,h):r(e)),v!==n)return v;if(!Se(e))return e;var M=te(e);if(M){if(v=Eb(e),!m)return Ve(e,v)}else{var D=$e(e),z=D==qn||D==Ai;if(vn(e))return ad(e,m);if(D==rt||D==Ut||z&&!l){if(v=S||z?{}:Ed(e),!m)return S?hb(e,D1(v,e)):db(e,kc(v,e))}else{if(!ye[D])return l?e:{};v=Ab(e,D,m)}}h||(h=new It);var j=h.get(e);if(j)return j;h.set(e,v),Qd(e)?e.forEach(function(V){v.add(gt(V,t,r,V,e,h))}):Vd(e)&&e.forEach(function(V,se){v.set(se,gt(V,t,r,se,e,h))});var X=F?S?Ls:Ns:S?Qe:Fe,ae=M?n:X(e);return ht(ae||e,function(V,se){ae&&(se=V,V=e[se]),Ur(v,se,gt(V,t,r,se,e,h))}),v}function W1(e){var t=Fe(e);return function(r){return Dc(r,e,t)}}function Dc(e,t,r){var s=r.length;if(e==null)return!s;for(e=me(e);s--;){var l=r[s],h=t[l],v=e[l];if(v===n&&!(l in e)||!h(v))return!1}return!0}function Wc(e,t,r){if(typeof e!="function")throw new pt(c);return Kr(function(){e.apply(n,r)},t)}function Hr(e,t,r,s){var l=-1,h=Pi,v=!0,m=e.length,S=[],F=t.length;if(!m)return S;r&&(t=we(t,ot(r))),s?(h=Vo,v=!1):t.length>=u&&(h=Dr,v=!1,t=new Cn(t));e:for(;++l<m;){var M=e[l],D=r==null?M:r(M);if(M=s||M!==0?M:0,v&&D===D){for(var z=F;z--;)if(t[z]===D)continue e;S.push(M)}else h(t,D,s)||S.push(M)}return S}var cn=ld(Pt),Bc=ld(hs,!0);function B1(e,t){var r=!0;return cn(e,function(s,l,h){return r=!!t(s,l,h),r}),r}function Xi(e,t,r){for(var s=-1,l=e.length;++s<l;){var h=e[s],v=t(h);if(v!=null&&(m===n?v===v&&!ut(v):r(v,m)))var m=v,S=h}return S}function R1(e,t,r,s){var l=e.length;for(r=re(r),r<0&&(r=-r>l?0:l+r),s=s===n||s>l?l:re(s),s<0&&(s+=l),s=r>s?0:th(s);r<s;)e[r++]=t;return e}function Rc(e,t){var r=[];return cn(e,function(s,l,h){t(s,l,h)&&r.push(s)}),r}function De(e,t,r,s,l){var h=-1,v=e.length;for(r||(r=Ib),l||(l=[]);++h<v;){var m=e[h];t>0&&r(m)?t>1?De(m,t-1,r,s,l):un(l,m):s||(l[l.length]=m)}return l}var ds=cd(),$c=cd(!0);function Pt(e,t){return e&&ds(e,t,Fe)}function hs(e,t){return e&&$c(e,t,Fe)}function Vi(e,t){return sn(t,function(r){return Xt(e[r])})}function Ln(e,t){t=hn(t,e);for(var r=0,s=t.length;e!=null&&r<s;)e=e[Mt(t[r++])];return r&&r==s?e:n}function zc(e,t,r){var s=t(e);return te(e)?s:un(s,r(e))}function qe(e){return e==null?e===n?Wo:Ti:In&&In in me(e)?wb(e):Mb(e)}function ps(e,t){return e>t}function $1(e,t){return e!=null&&ve.call(e,t)}function z1(e,t){return e!=null&&t in me(e)}function U1(e,t,r){return e>=Re(t,r)&&e<Le(t,r)}function vs(e,t,r){for(var s=r?Vo:Pi,l=e[0].length,h=e.length,v=h,m=I(h),S=1/0,F=[];v--;){var M=e[v];v&&t&&(M=we(M,ot(t))),S=Re(M.length,S),m[v]=!r&&(t||l>=120&&M.length>=120)?new Cn(v&&M):n}M=e[0];var D=-1,z=m[0];e:for(;++D<l&&F.length<S;){var j=M[D],X=t?t(j):j;if(j=r||j!==0?j:0,!(z?Dr(z,X):s(F,X,r))){for(v=h;--v;){var ae=m[v];if(!(ae?Dr(ae,X):s(e[v],X,r)))continue e}z&&z.push(X),F.push(j)}}return F}function H1(e,t,r,s){return Pt(e,function(l,h,v){t(s,r(l),h,v)}),s}function qr(e,t,r){t=hn(t,e),e=Od(e,t);var s=e==null?e:e[Mt(yt(t))];return s==null?n:at(s,e,r)}function Uc(e){return xe(e)&&qe(e)==Ut}function q1(e){return xe(e)&&qe(e)==Sn}function j1(e){return xe(e)&&qe(e)==rn}function jr(e,t,r,s,l){return e===t?!0:e==null||t==null||!xe(e)&&!xe(t)?e!==e&&t!==t:G1(e,t,r,s,jr,l)}function G1(e,t,r,s,l,h){var v=te(e),m=te(t),S=v?bn:$e(e),F=m?bn:$e(t);S=S==Ut?rt:S,F=F==Ut?rt:F;var M=S==rt,D=F==rt,z=S==F;if(z&&vn(e)){if(!vn(t))return!1;v=!0,M=!1}if(z&&!M)return h||(h=new It),v||ur(e)?wd(e,t,r,s,l,h):bb(e,t,S,r,s,l,h);if(!(r&E)){var j=M&&ve.call(e,"__wrapped__"),X=D&&ve.call(t,"__wrapped__");if(j||X){var ae=j?e.value():e,V=X?t.value():t;return h||(h=new It),l(ae,V,r,s,h)}}return z?(h||(h=new It),_b(e,t,r,s,l,h)):!1}function J1(e){return xe(e)&&$e(e)==Ie}function gs(e,t,r,s){var l=r.length,h=l,v=!s;if(e==null)return!h;for(e=me(e);l--;){var m=r[l];if(v&&m[2]?m[1]!==e[m[0]]:!(m[0]in e))return!1}for(;++l<h;){m=r[l];var S=m[0],F=e[S],M=m[1];if(v&&m[2]){if(F===n&&!(S in e))return!1}else{var D=new It;if(s)var z=s(F,M,S,e,t,D);if(!(z===n?jr(M,F,E|A,s,D):z))return!1}}return!0}function Hc(e){if(!Se(e)||Cb(e))return!1;var t=Xt(e)?Jy:W0;return t.test(Fn(e))}function Y1(e){return xe(e)&&qe(e)==Oe}function K1(e){return xe(e)&&$e(e)==Ke}function X1(e){return xe(e)&&pa(e.length)&&!!_e[qe(e)]}function qc(e){return typeof e=="function"?e:e==null?et:typeof e=="object"?te(e)?Jc(e[0],e[1]):Gc(e):dh(e)}function ms(e){if(!Yr(e))return Qy(e);var t=[];for(var r in me(e))ve.call(e,r)&&r!="constructor"&&t.push(r);return t}function V1(e){if(!Se(e))return Fb(e);var t=Yr(e),r=[];for(var s in e)s=="constructor"&&(t||!ve.call(e,s))||r.push(s);return r}function ys(e,t){return e<t}function jc(e,t){var r=-1,s=Ze(e)?I(e.length):[];return cn(e,function(l,h,v){s[++r]=t(l,h,v)}),s}function Gc(e){var t=Fs(e);return t.length==1&&t[0][2]?Td(t[0][0],t[0][1]):function(r){return r===e||gs(r,e,t)}}function Jc(e,t){return ks(e)&&Ad(t)?Td(Mt(e),t):function(r){var s=js(r,e);return s===n&&s===t?Gs(r,e):jr(t,s,E|A)}}function Zi(e,t,r,s,l){e!==t&&ds(t,function(h,v){if(l||(l=new It),Se(h))Z1(e,t,v,r,Zi,s,l);else{var m=s?s(Ws(e,v),h,v+"",e,t,l):n;m===n&&(m=h),ls(e,v,m)}},Qe)}function Z1(e,t,r,s,l,h,v){var m=Ws(e,r),S=Ws(t,r),F=v.get(S);if(F){ls(e,r,F);return}var M=h?h(m,S,r+"",e,t,v):n,D=M===n;if(D){var z=te(S),j=!z&&vn(S),X=!z&&!j&&ur(S);M=S,z||j||X?te(m)?M=m:Ae(m)?M=Ve(m):j?(D=!1,M=ad(S,!0)):X?(D=!1,M=od(S,!0)):M=[]:Xr(S)||Mn(S)?(M=m,Mn(m)?M=nh(m):(!Se(m)||Xt(m))&&(M=Ed(S))):D=!1}D&&(v.set(S,M),l(M,S,s,h,v),v.delete(S)),ls(e,r,M)}function Yc(e,t){var r=e.length;if(r)return t+=t<0?r:0,Kt(t,r)?e[t]:n}function Kc(e,t,r){t.length?t=we(t,function(h){return te(h)?function(v){return Ln(v,h.length===1?h[0]:h)}:h}):t=[et];var s=-1;t=we(t,ot(Y()));var l=jc(e,function(h,v,m){var S=we(t,function(F){return F(h)});return{criteria:S,index:++s,value:h}});return Ay(l,function(h,v){return cb(h,v,r)})}function Q1(e,t){return Xc(e,t,function(r,s){return Gs(e,s)})}function Xc(e,t,r){for(var s=-1,l=t.length,h={};++s<l;){var v=t[s],m=Ln(e,v);r(m,v)&&Gr(h,hn(v,e),m)}return h}function eb(e){return function(t){return Ln(t,e)}}function bs(e,t,r,s){var l=s?Ey:Vn,h=-1,v=t.length,m=e;for(e===t&&(t=Ve(t)),r&&(m=we(e,ot(r)));++h<v;)for(var S=0,F=t[h],M=r?r(F):F;(S=l(m,M,S,s))>-1;)m!==e&&Ui.call(m,S,1),Ui.call(e,S,1);return e}function Vc(e,t){for(var r=e?t.length:0,s=r-1;r--;){var l=t[r];if(r==s||l!==h){var h=l;Kt(l)?Ui.call(e,l,1):xs(e,l)}}return e}function _s(e,t){return e+ji(Lc()*(t-e+1))}function tb(e,t,r,s){for(var l=-1,h=Le(qi((t-e)/(r||1)),0),v=I(h);h--;)v[s?h:++l]=e,e+=r;return v}function ws(e,t){var r="";if(!e||t<1||t>ze)return r;do t%2&&(r+=e),t=ji(t/2),t&&(e+=e);while(t);return r}function oe(e,t){return Bs(Id(e,t,et),e+"")}function nb(e){return Mc(fr(e))}function rb(e,t){var r=fr(e);return ua(r,Nn(t,0,r.length))}function Gr(e,t,r,s){if(!Se(e))return e;t=hn(t,e);for(var l=-1,h=t.length,v=h-1,m=e;m!=null&&++l<h;){var S=Mt(t[l]),F=r;if(S==="__proto__"||S==="constructor"||S==="prototype")return e;if(l!=v){var M=m[S];F=s?s(M,S,m):n,F===n&&(F=Se(M)?M:Kt(t[l+1])?[]:{})}Ur(m,S,F),m=m[S]}return e}var Zc=Gi?function(e,t){return Gi.set(e,t),e}:et,ib=Hi?function(e,t){return Hi(e,"toString",{configurable:!0,enumerable:!1,value:Ys(t),writable:!0})}:et;function ab(e){return ua(fr(e))}function mt(e,t,r){var s=-1,l=e.length;t<0&&(t=-t>l?0:l+t),r=r>l?l:r,r<0&&(r+=l),l=t>r?0:r-t>>>0,t>>>=0;for(var h=I(l);++s<l;)h[s]=e[s+t];return h}function ob(e,t){var r;return cn(e,function(s,l,h){return r=t(s,l,h),!r}),!!r}function Qi(e,t,r){var s=0,l=e==null?s:e.length;if(typeof t=="number"&&t===t&&l<=Ei){for(;s<l;){var h=s+l>>>1,v=e[h];v!==null&&!ut(v)&&(r?v<=t:v<t)?s=h+1:l=h}return l}return Ss(e,t,et,r)}function Ss(e,t,r,s){var l=0,h=e==null?0:e.length;if(h===0)return 0;t=r(t);for(var v=t!==t,m=t===null,S=ut(t),F=t===n;l<h;){var M=ji((l+h)/2),D=r(e[M]),z=D!==n,j=D===null,X=D===D,ae=ut(D);if(v)var V=s||X;else F?V=X&&(s||z):m?V=X&&z&&(s||!j):S?V=X&&z&&!j&&(s||!ae):j||ae?V=!1:V=s?D<=t:D<t;V?l=M+1:h=M}return Re(h,xi)}function Qc(e,t){for(var r=-1,s=e.length,l=0,h=[];++r<s;){var v=e[r],m=t?t(v):v;if(!r||!Ot(m,S)){var S=m;h[l++]=v===0?0:v}}return h}function ed(e){return typeof e=="number"?e:ut(e)?At:+e}function st(e){if(typeof e=="string")return e;if(te(e))return we(e,st)+"";if(ut(e))return Pc?Pc.call(e):"";var t=e+"";return t=="0"&&1/e==-Et?"-0":t}function dn(e,t,r){var s=-1,l=Pi,h=e.length,v=!0,m=[],S=m;if(r)v=!1,l=Vo;else if(h>=u){var F=t?null:mb(e);if(F)return Mi(F);v=!1,l=Dr,S=new Cn}else S=t?[]:m;e:for(;++s<h;){var M=e[s],D=t?t(M):M;if(M=r||M!==0?M:0,v&&D===D){for(var z=S.length;z--;)if(S[z]===D)continue e;t&&S.push(D),m.push(M)}else l(S,D,r)||(S!==m&&S.push(D),m.push(M))}return m}function xs(e,t){t=hn(t,e);var r=-1,s=t.length;if(!s)return!0;for(var l=e==null||typeof e!="object"&&typeof e!="function";++r<s;){var h=t[r];if(typeof h=="string"){if(h==="__proto__"&&!ve.call(e,"__proto__"))return!1;if(h==="constructor"&&r+1<s&&typeof t[r+1]=="string"&&t[r+1]==="prototype"){if(l&&r===0)continue;return!1}}}var v=Od(e,t);return v==null||delete v[Mt(yt(t))]}function td(e,t,r,s){return Gr(e,t,r(Ln(e,t)),s)}function ea(e,t,r,s){for(var l=e.length,h=s?l:-1;(s?h--:++h<l)&&t(e[h],h,e););return r?mt(e,s?0:h,s?h+1:l):mt(e,s?h+1:0,s?l:h)}function nd(e,t){var r=e;return r instanceof ue&&(r=r.value()),Zo(t,function(s,l){return l.func.apply(l.thisArg,un([s],l.args))},r)}function Es(e,t,r){var s=e.length;if(s<2)return s?dn(e[0]):[];for(var l=-1,h=I(s);++l<s;)for(var v=e[l],m=-1;++m<s;)m!=l&&(h[l]=Hr(h[l]||v,e[m],t,r));return dn(De(h,1),t,r)}function rd(e,t,r){for(var s=-1,l=e.length,h=t.length,v={};++s<l;){var m=s<h?t[s]:n;r(v,e[s],m)}return v}function As(e){return Ae(e)?e:[]}function Ts(e){return typeof e=="function"?e:et}function hn(e,t){return te(e)?e:ks(e,t)?[e]:Pd(ge(e))}var sb=oe;function pn(e,t,r){var s=e.length;return r=r===n?s:r,!t&&r>=s?e:mt(e,t,r)}var id=Yy||function(e){return ke.clearTimeout(e)};function ad(e,t){if(t)return e.slice();var r=e.length,s=Tc?Tc(r):new e.constructor(r);return e.copy(s),s}function Is(e){var t=new e.constructor(e.byteLength);return new $i(t).set(new $i(e)),t}function ub(e,t){var r=t?Is(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}function fb(e){var t=new e.constructor(e.source,Ul.exec(e));return t.lastIndex=e.lastIndex,t}function lb(e){return zr?me(zr.call(e)):{}}function od(e,t){var r=t?Is(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function sd(e,t){if(e!==t){var r=e!==n,s=e===null,l=e===e,h=ut(e),v=t!==n,m=t===null,S=t===t,F=ut(t);if(!m&&!F&&!h&&e>t||h&&v&&S&&!m&&!F||s&&v&&S||!r&&S||!l)return 1;if(!s&&!h&&!F&&e<t||F&&r&&l&&!s&&!h||m&&r&&l||!v&&l||!S)return-1}return 0}function cb(e,t,r){for(var s=-1,l=e.criteria,h=t.criteria,v=l.length,m=r.length;++s<v;){var S=sd(l[s],h[s]);if(S){if(s>=m)return S;var F=r[s];return S*(F=="desc"?-1:1)}}return e.index-t.index}function ud(e,t,r,s){for(var l=-1,h=e.length,v=r.length,m=-1,S=t.length,F=Le(h-v,0),M=I(S+F),D=!s;++m<S;)M[m]=t[m];for(;++l<v;)(D||l<h)&&(M[r[l]]=e[l]);for(;F--;)M[m++]=e[l++];return M}function fd(e,t,r,s){for(var l=-1,h=e.length,v=-1,m=r.length,S=-1,F=t.length,M=Le(h-m,0),D=I(M+F),z=!s;++l<M;)D[l]=e[l];for(var j=l;++S<F;)D[j+S]=t[S];for(;++v<m;)(z||l<h)&&(D[j+r[v]]=e[l++]);return D}function Ve(e,t){var r=-1,s=e.length;for(t||(t=I(s));++r<s;)t[r]=e[r];return t}function Ft(e,t,r,s){var l=!r;r||(r={});for(var h=-1,v=t.length;++h<v;){var m=t[h],S=s?s(r[m],e[m],m,r,e):n;S===n&&(S=e[m]),l?Gt(r,m,S):Ur(r,m,S)}return r}function db(e,t){return Ft(e,Ms(e),t)}function hb(e,t){return Ft(e,Sd(e),t)}function ta(e,t){return function(r,s){var l=te(r)?yy:k1,h=t?t():{};return l(r,e,Y(s,2),h)}}function ar(e){return oe(function(t,r){var s=-1,l=r.length,h=l>1?r[l-1]:n,v=l>2?r[2]:n;for(h=e.length>3&&typeof h=="function"?(l--,h):n,v&&je(r[0],r[1],v)&&(h=l<3?n:h,l=1),t=me(t);++s<l;){var m=r[s];m&&e(t,m,s,h)}return t})}function ld(e,t){return function(r,s){if(r==null)return r;if(!Ze(r))return e(r,s);for(var l=r.length,h=t?l:-1,v=me(r);(t?h--:++h<l)&&s(v[h],h,v)!==!1;);return r}}function cd(e){return function(t,r,s){for(var l=-1,h=me(t),v=s(t),m=v.length;m--;){var S=v[e?m:++l];if(r(h[S],S,h)===!1)break}return t}}function pb(e,t,r){var s=t&T,l=Jr(e);function h(){var v=this&&this!==ke&&this instanceof h?l:e;return v.apply(s?r:this,arguments)}return h}function dd(e){return function(t){t=ge(t);var r=Zn(t)?Tt(t):n,s=r?r[0]:t.charAt(0),l=r?pn(r,1).join(""):t.slice(1);return s[e]()+l}}function or(e){return function(t){return Zo(lh(fh(t).replace(iy,"")),e,"")}}function Jr(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=ir(e.prototype),s=e.apply(r,t);return Se(s)?s:r}}function vb(e,t,r){var s=Jr(e);function l(){for(var h=arguments.length,v=I(h),m=h,S=sr(l);m--;)v[m]=arguments[m];var F=h<3&&v[0]!==S&&v[h-1]!==S?[]:fn(v,S);if(h-=F.length,h<r)return md(e,t,na,l.placeholder,n,v,F,n,n,r-h);var M=this&&this!==ke&&this instanceof l?s:e;return at(M,this,v)}return l}function hd(e){return function(t,r,s){var l=me(t);if(!Ze(t)){var h=Y(r,3);t=Fe(t),r=function(m){return h(l[m],m,l)}}var v=e(t,r,s);return v>-1?l[h?t[v]:v]:n}}function pd(e){return Yt(function(t){var r=t.length,s=r,l=vt.prototype.thru;for(e&&t.reverse();s--;){var h=t[s];if(typeof h!="function")throw new pt(c);if(l&&!v&&oa(h)=="wrapper")var v=new vt([],!0)}for(s=v?s:r;++s<r;){h=t[s];var m=oa(h),S=m=="wrapper"?Ps(h):n;S&&Ds(S[0])&&S[1]==(C|U|R|P)&&!S[4].length&&S[9]==1?v=v[oa(S[0])].apply(v,S[3]):v=h.length==1&&Ds(h)?v[m]():v.thru(h)}return function(){var F=arguments,M=F[0];if(v&&F.length==1&&te(M))return v.plant(M).value();for(var D=0,z=r?t[D].apply(this,F):M;++D<r;)z=t[D].call(this,z);return z}})}function na(e,t,r,s,l,h,v,m,S,F){var M=t&C,D=t&T,z=t&L,j=t&(U|Z),X=t&q,ae=z?n:Jr(e);function V(){for(var se=arguments.length,le=I(se),ft=se;ft--;)le[ft]=arguments[ft];if(j)var Ge=sr(V),lt=Iy(le,Ge);if(s&&(le=ud(le,s,l,j)),h&&(le=fd(le,h,v,j)),se-=lt,j&&se<F){var Te=fn(le,Ge);return md(e,t,na,V.placeholder,r,le,Te,m,S,F-se)}var Ct=D?r:this,Zt=z?Ct[e]:e;return se=le.length,m?le=kb(le,m):X&&se>1&&le.reverse(),M&&S<se&&(le.length=S),this&&this!==ke&&this instanceof V&&(Zt=ae||Jr(Zt)),Zt.apply(Ct,le)}return V}function vd(e,t){return function(r,s){return H1(r,e,t(s),{})}}function ra(e,t){return function(r,s){var l;if(r===n&&s===n)return t;if(r!==n&&(l=r),s!==n){if(l===n)return s;typeof r=="string"||typeof s=="string"?(r=st(r),s=st(s)):(r=ed(r),s=ed(s)),l=e(r,s)}return l}}function Os(e){return Yt(function(t){return t=we(t,ot(Y())),oe(function(r){var s=this;return e(t,function(l){return at(l,s,r)})})})}function ia(e,t){t=t===n?" ":st(t);var r=t.length;if(r<2)return r?ws(t,e):t;var s=ws(t,qi(e/Qn(t)));return Zn(t)?pn(Tt(s),0,e).join(""):s.slice(0,e)}function gb(e,t,r,s){var l=t&T,h=Jr(e);function v(){for(var m=-1,S=arguments.length,F=-1,M=s.length,D=I(M+S),z=this&&this!==ke&&this instanceof v?h:e;++F<M;)D[F]=s[F];for(;S--;)D[F++]=arguments[++m];return at(z,l?r:this,D)}return v}function gd(e){return function(t,r,s){return s&&typeof s!="number"&&je(t,r,s)&&(r=s=n),t=Vt(t),r===n?(r=t,t=0):r=Vt(r),s=s===n?t<r?1:-1:Vt(s),tb(t,r,s,e)}}function aa(e){return function(t,r){return typeof t=="string"&&typeof r=="string"||(t=bt(t),r=bt(r)),e(t,r)}}function md(e,t,r,s,l,h,v,m,S,F){var M=t&U,D=M?v:n,z=M?n:v,j=M?h:n,X=M?n:h;t|=M?R:de,t&=~(M?de:R),t&W||(t&=-4);var ae=[e,t,l,j,D,X,z,m,S,F],V=r.apply(n,ae);return Ds(e)&&Cd(V,ae),V.placeholder=s,Nd(V,e,t)}function Cs(e){var t=Ne[e];return function(r,s){if(r=bt(r),s=s==null?0:Re(re(s),292),s&&Nc(r)){var l=(ge(r)+"e").split("e"),h=t(l[0]+"e"+(+l[1]+s));return l=(ge(h)+"e").split("e"),+(l[0]+"e"+(+l[1]-s))}return t(r)}}var mb=nr&&1/Mi(new nr([,-0]))[1]==Et?function(e){return new nr(e)}:Vs;function yd(e){return function(t){var r=$e(t);return r==Ie?as(t):r==Ke?My(t):Ty(t,e(t))}}function Jt(e,t,r,s,l,h,v,m){var S=t&L;if(!S&&typeof e!="function")throw new pt(c);var F=s?s.length:0;if(F||(t&=-97,s=l=n),v=v===n?v:Le(re(v),0),m=m===n?m:re(m),F-=l?l.length:0,t&de){var M=s,D=l;s=l=n}var z=S?n:Ps(e),j=[e,t,r,s,l,M,D,h,v,m];if(z&&Pb(j,z),e=j[0],t=j[1],r=j[2],s=j[3],l=j[4],m=j[9]=j[9]===n?S?0:e.length:Le(j[9]-F,0),!m&&t&(U|Z)&&(t&=-25),!t||t==T)var X=pb(e,t,r);else t==U||t==Z?X=vb(e,t,m):(t==R||t==(T|R))&&!l.length?X=gb(e,t,r,s):X=na.apply(n,j);var ae=z?Zc:Cd;return Nd(ae(X,j),e,t)}function bd(e,t,r,s){return e===n||Ot(e,tr[r])&&!ve.call(s,r)?t:e}function _d(e,t,r,s,l,h){return Se(e)&&Se(t)&&(h.set(t,e),Zi(e,t,n,_d,h),h.delete(t)),e}function yb(e){return Xr(e)?n:e}function wd(e,t,r,s,l,h){var v=r&E,m=e.length,S=t.length;if(m!=S&&!(v&&S>m))return!1;var F=h.get(e),M=h.get(t);if(F&&M)return F==t&&M==e;var D=-1,z=!0,j=r&A?new Cn:n;for(h.set(e,t),h.set(t,e);++D<m;){var X=e[D],ae=t[D];if(s)var V=v?s(ae,X,D,t,e,h):s(X,ae,D,e,t,h);if(V!==n){if(V)continue;z=!1;break}if(j){if(!Qo(t,function(se,le){if(!Dr(j,le)&&(X===se||l(X,se,r,s,h)))return j.push(le)})){z=!1;break}}else if(!(X===ae||l(X,ae,r,s,h))){z=!1;break}}return h.delete(e),h.delete(t),z}function bb(e,t,r,s,l,h,v){switch(r){case He:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Sn:return!(e.byteLength!=t.byteLength||!h(new $i(e),new $i(t)));case _n:case rn:case an:return Ot(+e,+t);case Hn:return e.name==t.name&&e.message==t.message;case Oe:case on:return e==t+"";case Ie:var m=as;case Ke:var S=s&E;if(m||(m=Mi),e.size!=t.size&&!S)return!1;var F=v.get(e);if(F)return F==t;s|=A,v.set(e,t);var M=wd(m(e),m(t),s,l,h,v);return v.delete(e),M;case Be:if(zr)return zr.call(e)==zr.call(t)}return!1}function _b(e,t,r,s,l,h){var v=r&E,m=Ns(e),S=m.length,F=Ns(t),M=F.length;if(S!=M&&!v)return!1;for(var D=S;D--;){var z=m[D];if(!(v?z in t:ve.call(t,z)))return!1}var j=h.get(e),X=h.get(t);if(j&&X)return j==t&&X==e;var ae=!0;h.set(e,t),h.set(t,e);for(var V=v;++D<S;){z=m[D];var se=e[z],le=t[z];if(s)var ft=v?s(le,se,z,t,e,h):s(se,le,z,e,t,h);if(!(ft===n?se===le||l(se,le,r,s,h):ft)){ae=!1;break}V||(V=z=="constructor")}if(ae&&!V){var Ge=e.constructor,lt=t.constructor;Ge!=lt&&"constructor"in e&&"constructor"in t&&!(typeof Ge=="function"&&Ge instanceof Ge&&typeof lt=="function"&< instanceof lt)&&(ae=!1)}return h.delete(e),h.delete(t),ae}function Yt(e){return Bs(Id(e,n,Dd),e+"")}function Ns(e){return zc(e,Fe,Ms)}function Ls(e){return zc(e,Qe,Sd)}var Ps=Gi?function(e){return Gi.get(e)}:Vs;function oa(e){for(var t=e.name+"",r=rr[t],s=ve.call(rr,t)?r.length:0;s--;){var l=r[s],h=l.func;if(h==null||h==e)return l.name}return t}function sr(e){var t=ve.call(d,"placeholder")?d:e;return t.placeholder}function Y(){var e=d.iteratee||Ks;return e=e===Ks?qc:e,arguments.length?e(arguments[0],arguments[1]):e}function sa(e,t){var r=e.__data__;return Ob(t)?r[typeof t=="string"?"string":"hash"]:r.map}function Fs(e){for(var t=Fe(e),r=t.length;r--;){var s=t[r],l=e[s];t[r]=[s,l,Ad(l)]}return t}function Pn(e,t){var r=Ly(e,t);return Hc(r)?r:n}function wb(e){var t=ve.call(e,In),r=e[In];try{e[In]=n;var s=!0}catch{}var l=Bi.call(e);return s&&(t?e[In]=r:delete e[In]),l}var Ms=ss?function(e){return e==null?[]:(e=me(e),sn(ss(e),function(t){return Oc.call(e,t)}))}:Zs,Sd=ss?function(e){for(var t=[];e;)un(t,Ms(e)),e=zi(e);return t}:Zs,$e=qe;(us&&$e(new us(new ArrayBuffer(1)))!=He||Br&&$e(new Br)!=Ie||fs&&$e(fs.resolve())!=Ue||nr&&$e(new nr)!=Ke||Rr&&$e(new Rr)!=wn)&&($e=function(e){var t=qe(e),r=t==rt?e.constructor:n,s=r?Fn(r):"";if(s)switch(s){case r1:return He;case i1:return Ie;case a1:return Ue;case o1:return Ke;case s1:return wn}return t});function Sb(e,t,r){for(var s=-1,l=r.length;++s<l;){var h=r[s],v=h.size;switch(h.type){case"drop":e+=v;break;case"dropRight":t-=v;break;case"take":t=Re(t,e+v);break;case"takeRight":e=Le(e,t-v);break}}return{start:e,end:t}}function xb(e){var t=e.match(Kn);return t?t[1].split(N0):[]}function xd(e,t,r){t=hn(t,e);for(var s=-1,l=t.length,h=!1;++s<l;){var v=Mt(t[s]);if(!(h=e!=null&&r(e,v)))break;e=e[v]}return h||++s!=l?h:(l=e==null?0:e.length,!!l&&pa(l)&&Kt(v,l)&&(te(e)||Mn(e)))}function Eb(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&ve.call(e,"index")&&(r.index=e.index,r.input=e.input),r}function Ed(e){return typeof e.constructor=="function"&&!Yr(e)?ir(zi(e)):{}}function Ab(e,t,r){var s=e.constructor;switch(t){case Sn:return Is(e);case _n:case rn:return new s(+e);case He:return ub(e,r);case Gn:case Or:case xn:case En:case Cr:case Nr:case Jn:case Lr:case Pr:return od(e,r);case Ie:return new s;case an:case on:return new s(e);case Oe:return fb(e);case Ke:return new s;case Be:return lb(e)}}function Tb(e,t){var r=t.length;if(!r)return e;var s=r-1;return t[s]=(r>1?"& ":"")+t[s],t=t.join(r>2?", ":" "),e.replace(kr,`{
|
|
2
2
|
/* [wrapped with `+t+`] */
|
|
3
|
-
`)}function X_(e){return te(e)||Wn(e)||!!(Bd&&e&&e[Bd])}function Zt(e,t){var a=typeof e;return t=t??He,!!t&&(a=="number"||a!="symbol"&&uS.test(e))&&e>-1&&e%1==0&&e<t}function Ge(e,t,a){if(!Ee(a))return!1;var u=typeof t;return(u=="number"?Qe(a)&&Zt(t,a.length):u=="string"&&t in a)?Nt(a[t],e):!1}function hu(e,t){if(te(e))return!1;var a=typeof e;return a=="number"||a=="symbol"||a=="boolean"||e==null||lt(e)?!0:Ss.test(e)||!bs.test(e)||t!=null&&e in ye(t)}function K_(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function gu(e){var t=Sa(e),a=h[t];if(typeof a!="function"||!(t in fe.prototype))return!1;if(e===a)return!0;var u=fu(a);return!!u&&e===u[0]}function Z_(e){return!!kd&&kd in e}var Q_=Xi?Qt:Nu;function ri(e){var t=e&&e.constructor,a=typeof t=="function"&&t.prototype||ur;return e===a}function kh(e){return e===e&&!Ee(e)}function Fh(e,t){return function(a){return a==null?!1:a[e]===t&&(t!==r||e in ye(a))}}function eE(e){var t=Ia(e,function(u){return a.size===m&&a.clear(),u}),a=t.cache;return t}function tE(e,t){var a=e[1],u=t[1],c=a|u,g=c<(I|C|N),v=u==N&&a==U||u==N&&a==L&&e[7].length<=t[8]||u==(N|L)&&t[7].length<=t[8]&&a==U;if(!(g||v))return e;u&I&&(e[2]=t[2],c|=a&I?0:F);var b=t[3];if(b){var x=e[3];e[3]=x?yh(x,b,t[4]):b,e[4]=x?dn(e[3],S):t[4]}return b=t[5],b&&(x=e[5],e[5]=x?bh(x,b,t[6]):b,e[6]=x?dn(e[5],S):t[6]),b=t[7],b&&(e[7]=b),u&N&&(e[8]=e[8]==null?t[8]:$e(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=c,e}function nE(e){var t=[];if(e!=null)for(var a in ye(e))t.push(a);return t}function rE(e){return Zi.call(e)}function Rh(e,t,a){return t=Pe(t===r?e.length-1:t,0),function(){for(var u=arguments,c=-1,g=Pe(u.length-t,0),v=D(g);++c<g;)v[c]=u[t+c];c=-1;for(var b=D(t+1);++c<t;)b[c]=u[c];return b[t]=a(v),ot(e,this,b)}}function Wh(e,t){return t.length<2?e:kn(e,St(t,0,-1))}function iE(e,t){for(var a=e.length,u=$e(t.length,a),c=Ze(e);u--;){var g=t[u];e[u]=Zt(g,a)?c[g]:r}return e}function pu(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var Bh=Uh(uh),ii=bw||function(e,t){return Fe.setTimeout(e,t)},vu=Uh(O_);function $h(e,t,a){var u=t+"";return vu(e,V_(u,aE(G_(u),a)))}function Uh(e){var t=0,a=0;return function(){var u=Ew(),c=X-(u-a);if(a=u,c>0){if(++t>=ae)return arguments[0]}else t=0;return e.apply(r,arguments)}}function _a(e,t){var a=-1,u=e.length,c=u-1;for(t=t===r?u:t;++a<t;){var g=Zs(a,c),v=e[g];e[g]=e[a],e[a]=v}return e.length=t,e}var Hh=eE(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Hi,function(a,u,c,g){t.push(c?g.replace(nS,"$1"):u||a)}),t});function Rt(e){if(typeof e=="string"||lt(e))return e;var t=e+"";return t=="0"&&1/e==-Ot?"-0":t}function Rn(e){if(e!=null){try{return Ki.call(e)}catch{}try{return e+""}catch{}}return""}function aE(e,t){return vt(Mr,function(a){var u="_."+a[0];t&a[1]&&!Gi(e,u)&&e.push(u)}),e.sort()}function zh(e){if(e instanceof fe)return e.clone();var t=new yt(e.__wrapped__,e.__chain__);return t.__actions__=Ze(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function oE(e,t,a){(a?Ge(e,t,a):t===r)?t=1:t=Pe(ie(t),0);var u=e==null?0:e.length;if(!u||t<1)return[];for(var c=0,g=0,v=D(ia(u/t));c<u;)v[g++]=St(e,c,c+=t);return v}function sE(e){for(var t=-1,a=e==null?0:e.length,u=0,c=[];++t<a;){var g=e[t];g&&(c[u++]=g)}return c}function uE(){var e=arguments.length;if(!e)return[];for(var t=D(e-1),a=arguments[0],u=e;u--;)t[u-1]=arguments[u];return cn(te(a)?Ze(a):[a],Re(t,1))}var lE=se(function(e,t){return Ie(e)?Zr(e,Re(t,1,Ie,!0)):[]}),fE=se(function(e,t){var a=wt(t);return Ie(a)&&(a=r),Ie(e)?Zr(e,Re(t,1,Ie,!0),J(a,2)):[]}),cE=se(function(e,t){var a=wt(t);return Ie(a)&&(a=r),Ie(e)?Zr(e,Re(t,1,Ie,!0),r,a):[]});function dE(e,t,a){var u=e==null?0:e.length;return u?(t=a||t===r?1:ie(t),St(e,t<0?0:t,u)):[]}function hE(e,t,a){var u=e==null?0:e.length;return u?(t=a||t===r?1:ie(t),t=u-t,St(e,0,t<0?0:t)):[]}function gE(e,t){return e&&e.length?ga(e,J(t,3),!0,!0):[]}function pE(e,t){return e&&e.length?ga(e,J(t,3),!0):[]}function vE(e,t,a,u){var c=e==null?0:e.length;return c?(a&&typeof a!="number"&&Ge(e,t,a)&&(a=0,u=c),u_(e,t,a,u)):[]}function jh(e,t,a){var u=e==null?0:e.length;if(!u)return-1;var c=a==null?0:ie(a);return c<0&&(c=Pe(u+c,0)),Yi(e,J(t,3),c)}function qh(e,t,a){var u=e==null?0:e.length;if(!u)return-1;var c=u-1;return a!==r&&(c=ie(a),c=a<0?Pe(u+c,0):$e(c,u-1)),Yi(e,J(t,3),c,!0)}function Gh(e){var t=e==null?0:e.length;return t?Re(e,1):[]}function mE(e){var t=e==null?0:e.length;return t?Re(e,Ot):[]}function yE(e,t){var a=e==null?0:e.length;return a?(t=t===r?1:ie(t),Re(e,t)):[]}function bE(e){for(var t=-1,a=e==null?0:e.length,u={};++t<a;){var c=e[t];u[c[0]]=c[1]}return u}function Yh(e){return e&&e.length?e[0]:r}function SE(e,t,a){var u=e==null?0:e.length;if(!u)return-1;var c=a==null?0:ie(a);return c<0&&(c=Pe(u+c,0)),ir(e,t,c)}function wE(e){var t=e==null?0:e.length;return t?St(e,0,-1):[]}var _E=se(function(e){var t=_e(e,ru);return t.length&&t[0]===e[0]?Ys(t):[]}),EE=se(function(e){var t=wt(e),a=_e(e,ru);return t===wt(a)?t=r:a.pop(),a.length&&a[0]===e[0]?Ys(a,J(t,2)):[]}),TE=se(function(e){var t=wt(e),a=_e(e,ru);return t=typeof t=="function"?t:r,t&&a.pop(),a.length&&a[0]===e[0]?Ys(a,r,t):[]});function xE(e,t){return e==null?"":ww.call(e,t)}function wt(e){var t=e==null?0:e.length;return t?e[t-1]:r}function IE(e,t,a){var u=e==null?0:e.length;if(!u)return-1;var c=u;return a!==r&&(c=ie(a),c=c<0?Pe(u+c,0):$e(c,u-1)),t===t?aw(e,t,c):Yi(e,Od,c,!0)}function OE(e,t){return e&&e.length?ih(e,ie(t)):r}var DE=se(Jh);function Jh(e,t){return e&&e.length&&t&&t.length?Ks(e,t):e}function AE(e,t,a){return e&&e.length&&t&&t.length?Ks(e,t,J(a,2)):e}function CE(e,t,a){return e&&e.length&&t&&t.length?Ks(e,t,r,a):e}var NE=Kt(function(e,t){var a=e==null?0:e.length,u=zs(e,t);return sh(e,_e(t,function(c){return Zt(c,a)?+c:c}).sort(mh)),u});function PE(e,t){var a=[];if(!(e&&e.length))return a;var u=-1,c=[],g=e.length;for(t=J(t,3);++u<g;){var v=e[u];t(v,u,e)&&(a.push(v),c.push(u))}return sh(e,c),a}function mu(e){return e==null?e:xw.call(e)}function LE(e,t,a){var u=e==null?0:e.length;return u?(a&&typeof a!="number"&&Ge(e,t,a)?(t=0,a=u):(t=t==null?0:ie(t),a=a===r?u:ie(a)),St(e,t,a)):[]}function ME(e,t){return ha(e,t)}function kE(e,t,a){return eu(e,t,J(a,2))}function FE(e,t){var a=e==null?0:e.length;if(a){var u=ha(e,t);if(u<a&&Nt(e[u],t))return u}return-1}function RE(e,t){return ha(e,t,!0)}function WE(e,t,a){return eu(e,t,J(a,2),!0)}function BE(e,t){var a=e==null?0:e.length;if(a){var u=ha(e,t,!0)-1;if(Nt(e[u],t))return u}return-1}function $E(e){return e&&e.length?lh(e):[]}function UE(e,t){return e&&e.length?lh(e,J(t,2)):[]}function HE(e){var t=e==null?0:e.length;return t?St(e,1,t):[]}function zE(e,t,a){return e&&e.length?(t=a||t===r?1:ie(t),St(e,0,t<0?0:t)):[]}function jE(e,t,a){var u=e==null?0:e.length;return u?(t=a||t===r?1:ie(t),t=u-t,St(e,t<0?0:t,u)):[]}function qE(e,t){return e&&e.length?ga(e,J(t,3),!1,!0):[]}function GE(e,t){return e&&e.length?ga(e,J(t,3)):[]}var YE=se(function(e){return pn(Re(e,1,Ie,!0))}),JE=se(function(e){var t=wt(e);return Ie(t)&&(t=r),pn(Re(e,1,Ie,!0),J(t,2))}),VE=se(function(e){var t=wt(e);return t=typeof t=="function"?t:r,pn(Re(e,1,Ie,!0),r,t)});function XE(e){return e&&e.length?pn(e):[]}function KE(e,t){return e&&e.length?pn(e,J(t,2)):[]}function ZE(e,t){return t=typeof t=="function"?t:r,e&&e.length?pn(e,r,t):[]}function yu(e){if(!(e&&e.length))return[];var t=0;return e=fn(e,function(a){if(Ie(a))return t=Pe(a.length,t),!0}),ks(t,function(a){return _e(e,Ps(a))})}function Vh(e,t){if(!(e&&e.length))return[];var a=yu(e);return t==null?a:_e(a,function(u){return ot(t,r,u)})}var QE=se(function(e,t){return Ie(e)?Zr(e,t):[]}),eT=se(function(e){return nu(fn(e,Ie))}),tT=se(function(e){var t=wt(e);return Ie(t)&&(t=r),nu(fn(e,Ie),J(t,2))}),nT=se(function(e){var t=wt(e);return t=typeof t=="function"?t:r,nu(fn(e,Ie),r,t)}),rT=se(yu);function iT(e,t){return hh(e||[],t||[],Kr)}function aT(e,t){return hh(e||[],t||[],ti)}var oT=se(function(e){var t=e.length,a=t>1?e[t-1]:r;return a=typeof a=="function"?(e.pop(),a):r,Vh(e,a)});function Xh(e){var t=h(e);return t.__chain__=!0,t}function sT(e,t){return t(e),e}function Ea(e,t){return t(e)}var uT=Kt(function(e){var t=e.length,a=t?e[0]:0,u=this.__wrapped__,c=function(g){return zs(g,e)};return t>1||this.__actions__.length||!(u instanceof fe)||!Zt(a)?this.thru(c):(u=u.slice(a,+a+(t?1:0)),u.__actions__.push({func:Ea,args:[c],thisArg:r}),new yt(u,this.__chain__).thru(function(g){return t&&!g.length&&g.push(r),g}))});function lT(){return Xh(this)}function fT(){return new yt(this.value(),this.__chain__)}function cT(){this.__values__===r&&(this.__values__=fg(this.value()));var e=this.__index__>=this.__values__.length,t=e?r:this.__values__[this.__index__++];return{done:e,value:t}}function dT(){return this}function hT(e){for(var t,a=this;a instanceof ua;){var u=zh(a);u.__index__=0,u.__values__=r,t?c.__wrapped__=u:t=u;var c=u;a=a.__wrapped__}return c.__wrapped__=e,t}function gT(){var e=this.__wrapped__;if(e instanceof fe){var t=e;return this.__actions__.length&&(t=new fe(this)),t=t.reverse(),t.__actions__.push({func:Ea,args:[mu],thisArg:r}),new yt(t,this.__chain__)}return this.thru(mu)}function pT(){return dh(this.__wrapped__,this.__actions__)}var vT=pa(function(e,t,a){ve.call(e,a)?++e[a]:Vt(e,a,1)});function mT(e,t,a){var u=te(e)?xd:s_;return a&&Ge(e,t,a)&&(t=r),u(e,J(t,3))}function yT(e,t){var a=te(e)?fn:Vd;return a(e,J(t,3))}var bT=Eh(jh),ST=Eh(qh);function wT(e,t){return Re(Ta(e,t),1)}function _T(e,t){return Re(Ta(e,t),Ot)}function ET(e,t,a){return a=a===r?1:ie(a),Re(Ta(e,t),a)}function Kh(e,t){var a=te(e)?vt:gn;return a(e,J(t,3))}function Zh(e,t){var a=te(e)?HS:Jd;return a(e,J(t,3))}var TT=pa(function(e,t,a){ve.call(e,a)?e[a].push(t):Vt(e,a,[t])});function xT(e,t,a,u){e=Qe(e)?e:vr(e),a=a&&!u?ie(a):0;var c=e.length;return a<0&&(a=Pe(c+a,0)),Aa(e)?a<=c&&e.indexOf(t,a)>-1:!!c&&ir(e,t,a)>-1}var IT=se(function(e,t,a){var u=-1,c=typeof t=="function",g=Qe(e)?D(e.length):[];return gn(e,function(v){g[++u]=c?ot(t,v,a):Qr(v,t,a)}),g}),OT=pa(function(e,t,a){Vt(e,a,t)});function Ta(e,t){var a=te(e)?_e:th;return a(e,J(t,3))}function DT(e,t,a,u){return e==null?[]:(te(t)||(t=t==null?[]:[t]),a=u?r:a,te(a)||(a=a==null?[]:[a]),ah(e,t,a))}var AT=pa(function(e,t,a){e[a?0:1].push(t)},function(){return[[],[]]});function CT(e,t,a){var u=te(e)?Cs:Ad,c=arguments.length<3;return u(e,J(t,4),a,c,gn)}function NT(e,t,a){var u=te(e)?zS:Ad,c=arguments.length<3;return u(e,J(t,4),a,c,Jd)}function PT(e,t){var a=te(e)?fn:Vd;return a(e,Oa(J(t,3)))}function LT(e){var t=te(e)?jd:x_;return t(e)}function MT(e,t,a){(a?Ge(e,t,a):t===r)?t=1:t=ie(t);var u=te(e)?n_:I_;return u(e,t)}function kT(e){var t=te(e)?r_:D_;return t(e)}function FT(e){if(e==null)return 0;if(Qe(e))return Aa(e)?or(e):e.length;var t=Ue(e);return t==De||t==Xe?e.size:Vs(e).length}function RT(e,t,a){var u=te(e)?Ns:A_;return a&&Ge(e,t,a)&&(t=r),u(e,J(t,3))}var WT=se(function(e,t){if(e==null)return[];var a=t.length;return a>1&&Ge(e,t[0],t[1])?t=[]:a>2&&Ge(t[0],t[1],t[2])&&(t=[t[0]]),ah(e,Re(t,1),[])}),xa=yw||function(){return Fe.Date.now()};function BT(e,t){if(typeof t!="function")throw new mt(f);return e=ie(e),function(){if(--e<1)return t.apply(this,arguments)}}function Qh(e,t,a){return t=a?r:t,t=e&&t==null?e.length:t,Xt(e,N,r,r,r,r,t)}function eg(e,t){var a;if(typeof t!="function")throw new mt(f);return e=ie(e),function(){return--e>0&&(a=t.apply(this,arguments)),e<=1&&(t=r),a}}var bu=se(function(e,t,a){var u=I;if(a.length){var c=dn(a,gr(bu));u|=B}return Xt(e,u,t,a,c)}),tg=se(function(e,t,a){var u=I|C;if(a.length){var c=dn(a,gr(tg));u|=B}return Xt(t,u,e,a,c)});function ng(e,t,a){t=a?r:t;var u=Xt(e,U,r,r,r,r,r,t);return u.placeholder=ng.placeholder,u}function rg(e,t,a){t=a?r:t;var u=Xt(e,V,r,r,r,r,r,t);return u.placeholder=rg.placeholder,u}function ig(e,t,a){var u,c,g,v,b,x,M=0,k=!1,R=!1,H=!0;if(typeof e!="function")throw new mt(f);t=_t(t)||0,Ee(a)&&(k=!!a.leading,R="maxWait"in a,g=R?Pe(_t(a.maxWait)||0,t):g,H="trailing"in a?!!a.trailing:H);function q(Oe){var Pt=u,tn=c;return u=c=r,M=Oe,v=e.apply(tn,Pt),v}function K(Oe){return M=Oe,b=ii(le,t),k?q(Oe):v}function oe(Oe){var Pt=Oe-x,tn=Oe-M,Eg=t-Pt;return R?$e(Eg,g-tn):Eg}function Z(Oe){var Pt=Oe-x,tn=Oe-M;return x===r||Pt>=t||Pt<0||R&&tn>=g}function le(){var Oe=xa();if(Z(Oe))return de(Oe);b=ii(le,oe(Oe))}function de(Oe){return b=r,H&&u?q(Oe):(u=c=r,v)}function ft(){b!==r&&gh(b),M=0,u=x=c=b=r}function Ye(){return b===r?v:de(xa())}function ct(){var Oe=xa(),Pt=Z(Oe);if(u=arguments,c=this,x=Oe,Pt){if(b===r)return K(x);if(R)return gh(b),b=ii(le,t),q(x)}return b===r&&(b=ii(le,t)),v}return ct.cancel=ft,ct.flush=Ye,ct}var $T=se(function(e,t){return Yd(e,1,t)}),UT=se(function(e,t,a){return Yd(e,_t(t)||0,a)});function HT(e){return Xt(e,j)}function Ia(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new mt(f);var a=function(){var u=arguments,c=t?t.apply(this,u):u[0],g=a.cache;if(g.has(c))return g.get(c);var v=e.apply(this,u);return a.cache=g.set(c,v)||g,v};return a.cache=new(Ia.Cache||Jt),a}Ia.Cache=Jt;function Oa(e){if(typeof e!="function")throw new mt(f);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function zT(e){return eg(2,e)}var jT=C_(function(e,t){t=t.length==1&&te(t[0])?_e(t[0],st(J())):_e(Re(t,1),st(J()));var a=t.length;return se(function(u){for(var c=-1,g=$e(u.length,a);++c<g;)u[c]=t[c].call(this,u[c]);return ot(e,this,u)})}),Su=se(function(e,t){var a=dn(t,gr(Su));return Xt(e,B,r,t,a)}),ag=se(function(e,t){var a=dn(t,gr(ag));return Xt(e,ue,r,t,a)}),qT=Kt(function(e,t){return Xt(e,L,r,r,r,t)});function GT(e,t){if(typeof e!="function")throw new mt(f);return t=t===r?t:ie(t),se(e,t)}function YT(e,t){if(typeof e!="function")throw new mt(f);return t=t==null?0:Pe(ie(t),0),se(function(a){var u=a[t],c=mn(a,0,t);return u&&cn(c,u),ot(e,this,c)})}function JT(e,t,a){var u=!0,c=!0;if(typeof e!="function")throw new mt(f);return Ee(a)&&(u="leading"in a?!!a.leading:u,c="trailing"in a?!!a.trailing:c),ig(e,t,{leading:u,maxWait:t,trailing:c})}function VT(e){return Qh(e,1)}function XT(e,t){return Su(iu(t),e)}function KT(){if(!arguments.length)return[];var e=arguments[0];return te(e)?e:[e]}function ZT(e){return bt(e,y)}function QT(e,t){return t=typeof t=="function"?t:r,bt(e,y,t)}function ex(e){return bt(e,w|y)}function tx(e,t){return t=typeof t=="function"?t:r,bt(e,w|y,t)}function nx(e,t){return t==null||Gd(e,t,Me(t))}function Nt(e,t){return e===t||e!==e&&t!==t}var rx=ba(Gs),ix=ba(function(e,t){return e>=t}),Wn=Zd((function(){return arguments})())?Zd:function(e){return Te(e)&&ve.call(e,"callee")&&!Wd.call(e,"callee")},te=D.isArray,ax=bd?st(bd):h_;function Qe(e){return e!=null&&Da(e.length)&&!Qt(e)}function Ie(e){return Te(e)&&Qe(e)}function ox(e){return e===!0||e===!1||Te(e)&&qe(e)==Tn}var yn=Sw||Nu,sx=Sd?st(Sd):g_;function ux(e){return Te(e)&&e.nodeType===1&&!ai(e)}function lx(e){if(e==null)return!0;if(Qe(e)&&(te(e)||typeof e=="string"||typeof e.splice=="function"||yn(e)||pr(e)||Wn(e)))return!e.length;var t=Ue(e);if(t==De||t==Xe)return!e.size;if(ri(e))return!Vs(e).length;for(var a in e)if(ve.call(e,a))return!1;return!0}function fx(e,t){return ei(e,t)}function cx(e,t,a){a=typeof a=="function"?a:r;var u=a?a(e,t):r;return u===r?ei(e,t,r,a):!!u}function wu(e){if(!Te(e))return!1;var t=qe(e);return t==Xn||t==Fr||typeof e.message=="string"&&typeof e.name=="string"&&!ai(e)}function dx(e){return typeof e=="number"&&$d(e)}function Qt(e){if(!Ee(e))return!1;var t=qe(e);return t==Kn||t==Bi||t==kr||t==Zn}function og(e){return typeof e=="number"&&e==ie(e)}function Da(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=He}function Ee(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function Te(e){return e!=null&&typeof e=="object"}var sg=wd?st(wd):v_;function hx(e,t){return e===t||Js(e,t,cu(t))}function gx(e,t,a){return a=typeof a=="function"?a:r,Js(e,t,cu(t),a)}function px(e){return ug(e)&&e!=+e}function vx(e){if(Q_(e))throw new Q(l);return Qd(e)}function mx(e){return e===null}function yx(e){return e==null}function ug(e){return typeof e=="number"||Te(e)&&qe(e)==un}function ai(e){if(!Te(e)||qe(e)!=it)return!1;var t=ta(e);if(t===null)return!0;var a=ve.call(t,"constructor")&&t.constructor;return typeof a=="function"&&a instanceof a&&Ki.call(a)==gw}var _u=_d?st(_d):m_;function bx(e){return og(e)&&e>=-He&&e<=He}var lg=Ed?st(Ed):y_;function Aa(e){return typeof e=="string"||!te(e)&&Te(e)&&qe(e)==ln}function lt(e){return typeof e=="symbol"||Te(e)&&qe(e)==Be}var pr=Td?st(Td):b_;function Sx(e){return e===r}function wx(e){return Te(e)&&Ue(e)==xn}function _x(e){return Te(e)&&qe(e)==vs}var Ex=ba(Xs),Tx=ba(function(e,t){return e<=t});function fg(e){if(!e)return[];if(Qe(e))return Aa(e)?At(e):Ze(e);if(Gr&&e[Gr])return nw(e[Gr]());var t=Ue(e),a=t==De?Rs:t==Xe?Ji:vr;return a(e)}function en(e){if(!e)return e===0?e:0;if(e=_t(e),e===Ot||e===-Ot){var t=e<0?-1:1;return t*gs}return e===e?e:0}function ie(e){var t=en(e),a=t%1;return t===t?a?t-a:t:0}function cg(e){return e?Mn(ie(e),0,rt):0}function _t(e){if(typeof e=="number")return e;if(lt(e))return Dt;if(Ee(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Ee(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Cd(e);var a=aS.test(e);return a||sS.test(e)?BS(e.slice(2),a?2:8):iS.test(e)?Dt:+e}function dg(e){return Ft(e,et(e))}function xx(e){return e?Mn(ie(e),-He,He):e===0?e:0}function me(e){return e==null?"":ut(e)}var Ix=dr(function(e,t){if(ri(t)||Qe(t)){Ft(t,Me(t),e);return}for(var a in t)ve.call(t,a)&&Kr(e,a,t[a])}),hg=dr(function(e,t){Ft(t,et(t),e)}),Ca=dr(function(e,t,a,u){Ft(t,et(t),e,u)}),Ox=dr(function(e,t,a,u){Ft(t,Me(t),e,u)}),Dx=Kt(zs);function Ax(e,t){var a=cr(e);return t==null?a:qd(a,t)}var Cx=se(function(e,t){e=ye(e);var a=-1,u=t.length,c=u>2?t[2]:r;for(c&&Ge(t[0],t[1],c)&&(u=1);++a<u;)for(var g=t[a],v=et(g),b=-1,x=v.length;++b<x;){var M=v[b],k=e[M];(k===r||Nt(k,ur[M])&&!ve.call(e,M))&&(e[M]=g[M])}return e}),Nx=se(function(e){return e.push(r,Ch),ot(gg,r,e)});function Px(e,t){return Id(e,J(t,3),kt)}function Lx(e,t){return Id(e,J(t,3),qs)}function Mx(e,t){return e==null?e:js(e,J(t,3),et)}function kx(e,t){return e==null?e:Xd(e,J(t,3),et)}function Fx(e,t){return e&&kt(e,J(t,3))}function Rx(e,t){return e&&qs(e,J(t,3))}function Wx(e){return e==null?[]:ca(e,Me(e))}function Bx(e){return e==null?[]:ca(e,et(e))}function Eu(e,t,a){var u=e==null?r:kn(e,t);return u===r?a:u}function $x(e,t){return e!=null&&Lh(e,t,l_)}function Tu(e,t){return e!=null&&Lh(e,t,f_)}var Ux=xh(function(e,t,a){t!=null&&typeof t.toString!="function"&&(t=Zi.call(t)),e[t]=a},Iu(tt)),Hx=xh(function(e,t,a){t!=null&&typeof t.toString!="function"&&(t=Zi.call(t)),ve.call(e,t)?e[t].push(a):e[t]=[a]},J),zx=se(Qr);function Me(e){return Qe(e)?zd(e):Vs(e)}function et(e){return Qe(e)?zd(e,!0):S_(e)}function jx(e,t){var a={};return t=J(t,3),kt(e,function(u,c,g){Vt(a,t(u,c,g),u)}),a}function qx(e,t){var a={};return t=J(t,3),kt(e,function(u,c,g){Vt(a,c,t(u,c,g))}),a}var Gx=dr(function(e,t,a){da(e,t,a)}),gg=dr(function(e,t,a,u){da(e,t,a,u)}),Yx=Kt(function(e,t){var a={};if(e==null)return a;var u=!1;t=_e(t,function(g){return g=vn(g,e),u||(u=g.length>1),g}),Ft(e,lu(e),a),u&&(a=bt(a,w|O|y,U_));for(var c=t.length;c--;)tu(a,t[c]);return a});function Jx(e,t){return pg(e,Oa(J(t)))}var Vx=Kt(function(e,t){return e==null?{}:__(e,t)});function pg(e,t){if(e==null)return{};var a=_e(lu(e),function(u){return[u]});return t=J(t),oh(e,a,function(u,c){return t(u,c[0])})}function Xx(e,t,a){t=vn(t,e);var u=-1,c=t.length;for(c||(c=1,e=r);++u<c;){var g=e==null?r:e[Rt(t[u])];g===r&&(u=c,g=a),e=Qt(g)?g.call(e):g}return e}function Kx(e,t,a){return e==null?e:ti(e,t,a)}function Zx(e,t,a,u){return u=typeof u=="function"?u:r,e==null?e:ti(e,t,a,u)}var vg=Dh(Me),mg=Dh(et);function Qx(e,t,a){var u=te(e),c=u||yn(e)||pr(e);if(t=J(t,4),a==null){var g=e&&e.constructor;c?a=u?new g:[]:Ee(e)?a=Qt(g)?cr(ta(e)):{}:a={}}return(c?vt:kt)(e,function(v,b,x){return t(a,v,b,x)}),a}function eI(e,t){return e==null?!0:tu(e,t)}function tI(e,t,a){return e==null?e:ch(e,t,iu(a))}function nI(e,t,a,u){return u=typeof u=="function"?u:r,e==null?e:ch(e,t,iu(a),u)}function vr(e){return e==null?[]:Fs(e,Me(e))}function rI(e){return e==null?[]:Fs(e,et(e))}function iI(e,t,a){return a===r&&(a=t,t=r),a!==r&&(a=_t(a),a=a===a?a:0),t!==r&&(t=_t(t),t=t===t?t:0),Mn(_t(e),t,a)}function aI(e,t,a){return t=en(t),a===r?(a=t,t=0):a=en(a),e=_t(e),c_(e,t,a)}function oI(e,t,a){if(a&&typeof a!="boolean"&&Ge(e,t,a)&&(t=a=r),a===r&&(typeof t=="boolean"?(a=t,t=r):typeof e=="boolean"&&(a=e,e=r)),e===r&&t===r?(e=0,t=1):(e=en(e),t===r?(t=e,e=0):t=en(t)),e>t){var u=e;e=t,t=u}if(a||e%1||t%1){var c=Ud();return $e(e+c*(t-e+WS("1e-"+((c+"").length-1))),t)}return Zs(e,t)}var sI=hr(function(e,t,a){return t=t.toLowerCase(),e+(a?yg(t):t)});function yg(e){return xu(me(e).toLowerCase())}function bg(e){return e=me(e),e&&e.replace(lS,KS).replace(DS,"")}function uI(e,t,a){e=me(e),t=ut(t);var u=e.length;a=a===r?u:Mn(ie(a),0,u);var c=a;return a-=t.length,a>=0&&e.slice(a,c)==t}function lI(e){return e=me(e),e&&tr.test(e)?e.replace(at,ZS):e}function fI(e){return e=me(e),e&&ws.test(e)?e.replace(Hr,"\\$&"):e}var cI=hr(function(e,t,a){return e+(a?"-":"")+t.toLowerCase()}),dI=hr(function(e,t,a){return e+(a?" ":"")+t.toLowerCase()}),hI=_h("toLowerCase");function gI(e,t,a){e=me(e),t=ie(t);var u=t?or(e):0;if(!t||u>=t)return e;var c=(t-u)/2;return ya(aa(c),a)+e+ya(ia(c),a)}function pI(e,t,a){e=me(e),t=ie(t);var u=t?or(e):0;return t&&u<t?e+ya(t-u,a):e}function vI(e,t,a){e=me(e),t=ie(t);var u=t?or(e):0;return t&&u<t?ya(t-u,a)+e:e}function mI(e,t,a){return a||t==null?t=0:t&&(t=+t),Tw(me(e).replace(Gt,""),t||0)}function yI(e,t,a){return(a?Ge(e,t,a):t===r)?t=1:t=ie(t),Qs(me(e),t)}function bI(){var e=arguments,t=me(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var SI=hr(function(e,t,a){return e+(a?"_":"")+t.toLowerCase()});function wI(e,t,a){return a&&typeof a!="number"&&Ge(e,t,a)&&(t=a=r),a=a===r?rt:a>>>0,a?(e=me(e),e&&(typeof t=="string"||t!=null&&!_u(t))&&(t=ut(t),!t&&ar(e))?mn(At(e),0,a):e.split(t,a)):[]}var _I=hr(function(e,t,a){return e+(a?" ":"")+xu(t)});function EI(e,t,a){return e=me(e),a=a==null?0:Mn(ie(a),0,e.length),t=ut(t),e.slice(a,a+t.length)==t}function TI(e,t,a){var u=h.templateSettings;a&&Ge(e,t,a)&&(t=r),e=me(e),t=Ca({},t,u,Ah);var c=Ca({},t.imports,u.imports,Ah),g=Me(c),v=Fs(c,g),b,x,M=0,k=t.interpolate||zi,R="__p += '",H=Ws((t.escape||zi).source+"|"+k.source+"|"+(k===An?rS:zi).source+"|"+(t.evaluate||zi).source+"|$","g"),q="//# sourceURL="+(ve.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++LS+"]")+`
|
|
4
|
-
`;e.replace(
|
|
5
|
-
__e(`+
|
|
6
|
-
'`),
|
|
7
|
-
`+
|
|
8
|
-
__p += '`),
|
|
9
|
-
((__t = (`+
|
|
10
|
-
'`),
|
|
11
|
-
`;var
|
|
12
|
-
`+
|
|
13
|
-
}
|
|
14
|
-
`;else if(
|
|
15
|
-
`+(
|
|
16
|
-
`)+"var __t, __p = ''"+(
|
|
3
|
+
`)}function Ib(e){return te(e)||Mn(e)||!!(Cc&&e&&e[Cc])}function Kt(e,t){var r=typeof e;return t=t??ze,!!t&&(r=="number"||r!="symbol"&&R0.test(e))&&e>-1&&e%1==0&&e<t}function je(e,t,r){if(!Se(r))return!1;var s=typeof t;return(s=="number"?Ze(r)&&Kt(t,r.length):s=="string"&&t in r)?Ot(r[t],e):!1}function ks(e,t){if(te(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||ut(e)?!0:Uo.test(e)||!zo.test(e)||t!=null&&e in me(t)}function Ob(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Ds(e){var t=oa(e),r=d[t];if(typeof r!="function"||!(t in ue.prototype))return!1;if(e===r)return!0;var s=Ps(r);return!!s&&e===s[0]}function Cb(e){return!!Ac&&Ac in e}var Nb=Di?Xt:Qs;function Yr(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||tr;return e===r}function Ad(e){return e===e&&!Se(e)}function Td(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==n||e in me(r))}}function Lb(e){var t=da(e,function(s){return r.size===y&&r.clear(),s}),r=t.cache;return t}function Pb(e,t){var r=e[1],s=t[1],l=r|s,h=l<(T|L|C),v=s==C&&r==U||s==C&&r==P&&e[7].length<=t[8]||s==(C|P)&&t[7].length<=t[8]&&r==U;if(!(h||v))return e;s&T&&(e[2]=t[2],l|=r&T?0:W);var m=t[3];if(m){var S=e[3];e[3]=S?ud(S,m,t[4]):m,e[4]=S?fn(e[3],_):t[4]}return m=t[5],m&&(S=e[5],e[5]=S?fd(S,m,t[6]):m,e[6]=S?fn(e[5],_):t[6]),m=t[7],m&&(e[7]=m),s&C&&(e[8]=e[8]==null?t[8]:Re(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=l,e}function Fb(e){var t=[];if(e!=null)for(var r in me(e))t.push(r);return t}function Mb(e){return Bi.call(e)}function Id(e,t,r){return t=Le(t===n?e.length-1:t,0),function(){for(var s=arguments,l=-1,h=Le(s.length-t,0),v=I(h);++l<h;)v[l]=s[t+l];l=-1;for(var m=I(t+1);++l<t;)m[l]=s[l];return m[t]=r(v),at(e,this,m)}}function Od(e,t){return t.length<2?e:Ln(e,mt(t,0,-1))}function kb(e,t){for(var r=e.length,s=Re(t.length,r),l=Ve(e);s--;){var h=t[s];e[s]=Kt(h,r)?l[h]:n}return e}function Ws(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var Cd=Ld(Zc),Kr=Xy||function(e,t){return ke.setTimeout(e,t)},Bs=Ld(ib);function Nd(e,t,r){var s=t+"";return Bs(e,Tb(s,Db(xb(s),r)))}function Ld(e){var t=0,r=0;return function(){var s=e1(),l=K-(s-r);if(r=s,l>0){if(++t>=ie)return arguments[0]}else t=0;return e.apply(n,arguments)}}function ua(e,t){var r=-1,s=e.length,l=s-1;for(t=t===n?s:t;++r<t;){var h=_s(r,l),v=e[h];e[h]=e[r],e[r]=v}return e.length=t,e}var Pd=Lb(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Oi,function(r,s,l,h){t.push(l?h.replace(F0,"$1"):s||r)}),t});function Mt(e){if(typeof e=="string"||ut(e))return e;var t=e+"";return t=="0"&&1/e==-Et?"-0":t}function Fn(e){if(e!=null){try{return Wi.call(e)}catch{}try{return e+""}catch{}}return""}function Db(e,t){return ht(Ar,function(r){var s="_."+r[0];t&r[1]&&!Pi(e,s)&&e.push(s)}),e.sort()}function Fd(e){if(e instanceof ue)return e.clone();var t=new vt(e.__wrapped__,e.__chain__);return t.__actions__=Ve(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function Wb(e,t,r){(r?je(e,t,r):t===n)?t=1:t=Le(re(t),0);var s=e==null?0:e.length;if(!s||t<1)return[];for(var l=0,h=0,v=I(qi(s/t));l<s;)v[h++]=mt(e,l,l+=t);return v}function Bb(e){for(var t=-1,r=e==null?0:e.length,s=0,l=[];++t<r;){var h=e[t];h&&(l[s++]=h)}return l}function Rb(){var e=arguments.length;if(!e)return[];for(var t=I(e-1),r=arguments[0],s=e;s--;)t[s-1]=arguments[s];return un(te(r)?Ve(r):[r],De(t,1))}var $b=oe(function(e,t){return Ae(e)?Hr(e,De(t,1,Ae,!0)):[]}),zb=oe(function(e,t){var r=yt(t);return Ae(r)&&(r=n),Ae(e)?Hr(e,De(t,1,Ae,!0),Y(r,2)):[]}),Ub=oe(function(e,t){var r=yt(t);return Ae(r)&&(r=n),Ae(e)?Hr(e,De(t,1,Ae,!0),n,r):[]});function Hb(e,t,r){var s=e==null?0:e.length;return s?(t=r||t===n?1:re(t),mt(e,t<0?0:t,s)):[]}function qb(e,t,r){var s=e==null?0:e.length;return s?(t=r||t===n?1:re(t),t=s-t,mt(e,0,t<0?0:t)):[]}function jb(e,t){return e&&e.length?ea(e,Y(t,3),!0,!0):[]}function Gb(e,t){return e&&e.length?ea(e,Y(t,3),!0):[]}function Jb(e,t,r,s){var l=e==null?0:e.length;return l?(r&&typeof r!="number"&&je(e,t,r)&&(r=0,s=l),R1(e,t,r,s)):[]}function Md(e,t,r){var s=e==null?0:e.length;if(!s)return-1;var l=r==null?0:re(r);return l<0&&(l=Le(s+l,0)),Fi(e,Y(t,3),l)}function kd(e,t,r){var s=e==null?0:e.length;if(!s)return-1;var l=s-1;return r!==n&&(l=re(r),l=r<0?Le(s+l,0):Re(l,s-1)),Fi(e,Y(t,3),l,!0)}function Dd(e){var t=e==null?0:e.length;return t?De(e,1):[]}function Yb(e){var t=e==null?0:e.length;return t?De(e,Et):[]}function Kb(e,t){var r=e==null?0:e.length;return r?(t=t===n?1:re(t),De(e,t)):[]}function Xb(e){for(var t=-1,r=e==null?0:e.length,s={};++t<r;){var l=e[t];s[l[0]]=l[1]}return s}function Wd(e){return e&&e.length?e[0]:n}function Vb(e,t,r){var s=e==null?0:e.length;if(!s)return-1;var l=r==null?0:re(r);return l<0&&(l=Le(s+l,0)),Vn(e,t,l)}function Zb(e){var t=e==null?0:e.length;return t?mt(e,0,-1):[]}var Qb=oe(function(e){var t=we(e,As);return t.length&&t[0]===e[0]?vs(t):[]}),e_=oe(function(e){var t=yt(e),r=we(e,As);return t===yt(r)?t=n:r.pop(),r.length&&r[0]===e[0]?vs(r,Y(t,2)):[]}),t_=oe(function(e){var t=yt(e),r=we(e,As);return t=typeof t=="function"?t:n,t&&r.pop(),r.length&&r[0]===e[0]?vs(r,n,t):[]});function n_(e,t){return e==null?"":Zy.call(e,t)}function yt(e){var t=e==null?0:e.length;return t?e[t-1]:n}function r_(e,t,r){var s=e==null?0:e.length;if(!s)return-1;var l=s;return r!==n&&(l=re(r),l=l<0?Le(s+l,0):Re(l,s-1)),t===t?Dy(e,t,l):Fi(e,mc,l,!0)}function i_(e,t){return e&&e.length?Yc(e,re(t)):n}var a_=oe(Bd);function Bd(e,t){return e&&e.length&&t&&t.length?bs(e,t):e}function o_(e,t,r){return e&&e.length&&t&&t.length?bs(e,t,Y(r,2)):e}function s_(e,t,r){return e&&e.length&&t&&t.length?bs(e,t,n,r):e}var u_=Yt(function(e,t){var r=e==null?0:e.length,s=cs(e,t);return Vc(e,we(t,function(l){return Kt(l,r)?+l:l}).sort(sd)),s});function f_(e,t){var r=[];if(!(e&&e.length))return r;var s=-1,l=[],h=e.length;for(t=Y(t,3);++s<h;){var v=e[s];t(v,s,e)&&(r.push(v),l.push(s))}return Vc(e,l),r}function Rs(e){return e==null?e:n1.call(e)}function l_(e,t,r){var s=e==null?0:e.length;return s?(r&&typeof r!="number"&&je(e,t,r)?(t=0,r=s):(t=t==null?0:re(t),r=r===n?s:re(r)),mt(e,t,r)):[]}function c_(e,t){return Qi(e,t)}function d_(e,t,r){return Ss(e,t,Y(r,2))}function h_(e,t){var r=e==null?0:e.length;if(r){var s=Qi(e,t);if(s<r&&Ot(e[s],t))return s}return-1}function p_(e,t){return Qi(e,t,!0)}function v_(e,t,r){return Ss(e,t,Y(r,2),!0)}function g_(e,t){var r=e==null?0:e.length;if(r){var s=Qi(e,t,!0)-1;if(Ot(e[s],t))return s}return-1}function m_(e){return e&&e.length?Qc(e):[]}function y_(e,t){return e&&e.length?Qc(e,Y(t,2)):[]}function b_(e){var t=e==null?0:e.length;return t?mt(e,1,t):[]}function __(e,t,r){return e&&e.length?(t=r||t===n?1:re(t),mt(e,0,t<0?0:t)):[]}function w_(e,t,r){var s=e==null?0:e.length;return s?(t=r||t===n?1:re(t),t=s-t,mt(e,t<0?0:t,s)):[]}function S_(e,t){return e&&e.length?ea(e,Y(t,3),!1,!0):[]}function x_(e,t){return e&&e.length?ea(e,Y(t,3)):[]}var E_=oe(function(e){return dn(De(e,1,Ae,!0))}),A_=oe(function(e){var t=yt(e);return Ae(t)&&(t=n),dn(De(e,1,Ae,!0),Y(t,2))}),T_=oe(function(e){var t=yt(e);return t=typeof t=="function"?t:n,dn(De(e,1,Ae,!0),n,t)});function I_(e){return e&&e.length?dn(e):[]}function O_(e,t){return e&&e.length?dn(e,Y(t,2)):[]}function C_(e,t){return t=typeof t=="function"?t:n,e&&e.length?dn(e,n,t):[]}function $s(e){if(!(e&&e.length))return[];var t=0;return e=sn(e,function(r){if(Ae(r))return t=Le(r.length,t),!0}),rs(t,function(r){return we(e,es(r))})}function Rd(e,t){if(!(e&&e.length))return[];var r=$s(e);return t==null?r:we(r,function(s){return at(t,n,s)})}var N_=oe(function(e,t){return Ae(e)?Hr(e,t):[]}),L_=oe(function(e){return Es(sn(e,Ae))}),P_=oe(function(e){var t=yt(e);return Ae(t)&&(t=n),Es(sn(e,Ae),Y(t,2))}),F_=oe(function(e){var t=yt(e);return t=typeof t=="function"?t:n,Es(sn(e,Ae),n,t)}),M_=oe($s);function k_(e,t){return rd(e||[],t||[],Ur)}function D_(e,t){return rd(e||[],t||[],Gr)}var W_=oe(function(e){var t=e.length,r=t>1?e[t-1]:n;return r=typeof r=="function"?(e.pop(),r):n,Rd(e,r)});function $d(e){var t=d(e);return t.__chain__=!0,t}function B_(e,t){return t(e),e}function fa(e,t){return t(e)}var R_=Yt(function(e){var t=e.length,r=t?e[0]:0,s=this.__wrapped__,l=function(h){return cs(h,e)};return t>1||this.__actions__.length||!(s instanceof ue)||!Kt(r)?this.thru(l):(s=s.slice(r,+r+(t?1:0)),s.__actions__.push({func:fa,args:[l],thisArg:n}),new vt(s,this.__chain__).thru(function(h){return t&&!h.length&&h.push(n),h}))});function $_(){return $d(this)}function z_(){return new vt(this.value(),this.__chain__)}function U_(){this.__values__===n&&(this.__values__=eh(this.value()));var e=this.__index__>=this.__values__.length,t=e?n:this.__values__[this.__index__++];return{done:e,value:t}}function H_(){return this}function q_(e){for(var t,r=this;r instanceof Yi;){var s=Fd(r);s.__index__=0,s.__values__=n,t?l.__wrapped__=s:t=s;var l=s;r=r.__wrapped__}return l.__wrapped__=e,t}function j_(){var e=this.__wrapped__;if(e instanceof ue){var t=e;return this.__actions__.length&&(t=new ue(this)),t=t.reverse(),t.__actions__.push({func:fa,args:[Rs],thisArg:n}),new vt(t,this.__chain__)}return this.thru(Rs)}function G_(){return nd(this.__wrapped__,this.__actions__)}var J_=ta(function(e,t,r){ve.call(e,r)?++e[r]:Gt(e,r,1)});function Y_(e,t,r){var s=te(e)?vc:B1;return r&&je(e,t,r)&&(t=n),s(e,Y(t,3))}function K_(e,t){var r=te(e)?sn:Rc;return r(e,Y(t,3))}var X_=hd(Md),V_=hd(kd);function Z_(e,t){return De(la(e,t),1)}function Q_(e,t){return De(la(e,t),Et)}function ew(e,t,r){return r=r===n?1:re(r),De(la(e,t),r)}function zd(e,t){var r=te(e)?ht:cn;return r(e,Y(t,3))}function Ud(e,t){var r=te(e)?by:Bc;return r(e,Y(t,3))}var tw=ta(function(e,t,r){ve.call(e,r)?e[r].push(t):Gt(e,r,[t])});function nw(e,t,r,s){e=Ze(e)?e:fr(e),r=r&&!s?re(r):0;var l=e.length;return r<0&&(r=Le(l+r,0)),va(e)?r<=l&&e.indexOf(t,r)>-1:!!l&&Vn(e,t,r)>-1}var rw=oe(function(e,t,r){var s=-1,l=typeof t=="function",h=Ze(e)?I(e.length):[];return cn(e,function(v){h[++s]=l?at(t,v,r):qr(v,t,r)}),h}),iw=ta(function(e,t,r){Gt(e,r,t)});function la(e,t){var r=te(e)?we:jc;return r(e,Y(t,3))}function aw(e,t,r,s){return e==null?[]:(te(t)||(t=t==null?[]:[t]),r=s?n:r,te(r)||(r=r==null?[]:[r]),Kc(e,t,r))}var ow=ta(function(e,t,r){e[r?0:1].push(t)},function(){return[[],[]]});function sw(e,t,r){var s=te(e)?Zo:bc,l=arguments.length<3;return s(e,Y(t,4),r,l,cn)}function uw(e,t,r){var s=te(e)?_y:bc,l=arguments.length<3;return s(e,Y(t,4),r,l,Bc)}function fw(e,t){var r=te(e)?sn:Rc;return r(e,ha(Y(t,3)))}function lw(e){var t=te(e)?Mc:nb;return t(e)}function cw(e,t,r){(r?je(e,t,r):t===n)?t=1:t=re(t);var s=te(e)?F1:rb;return s(e,t)}function dw(e){var t=te(e)?M1:ab;return t(e)}function hw(e){if(e==null)return 0;if(Ze(e))return va(e)?Qn(e):e.length;var t=$e(e);return t==Ie||t==Ke?e.size:ms(e).length}function pw(e,t,r){var s=te(e)?Qo:ob;return r&&je(e,t,r)&&(t=n),s(e,Y(t,3))}var vw=oe(function(e,t){if(e==null)return[];var r=t.length;return r>1&&je(e,t[0],t[1])?t=[]:r>2&&je(t[0],t[1],t[2])&&(t=[t[0]]),Kc(e,De(t,1),[])}),ca=Ky||function(){return ke.Date.now()};function gw(e,t){if(typeof t!="function")throw new pt(c);return e=re(e),function(){if(--e<1)return t.apply(this,arguments)}}function Hd(e,t,r){return t=r?n:t,t=e&&t==null?e.length:t,Jt(e,C,n,n,n,n,t)}function qd(e,t){var r;if(typeof t!="function")throw new pt(c);return e=re(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=n),r}}var zs=oe(function(e,t,r){var s=T;if(r.length){var l=fn(r,sr(zs));s|=R}return Jt(e,s,t,r,l)}),jd=oe(function(e,t,r){var s=T|L;if(r.length){var l=fn(r,sr(jd));s|=R}return Jt(t,s,e,r,l)});function Gd(e,t,r){t=r?n:t;var s=Jt(e,U,n,n,n,n,n,t);return s.placeholder=Gd.placeholder,s}function Jd(e,t,r){t=r?n:t;var s=Jt(e,Z,n,n,n,n,n,t);return s.placeholder=Jd.placeholder,s}function Yd(e,t,r){var s,l,h,v,m,S,F=0,M=!1,D=!1,z=!0;if(typeof e!="function")throw new pt(c);t=bt(t)||0,Se(r)&&(M=!!r.leading,D="maxWait"in r,h=D?Le(bt(r.maxWait)||0,t):h,z="trailing"in r?!!r.trailing:z);function j(Te){var Ct=s,Zt=l;return s=l=n,F=Te,v=e.apply(Zt,Ct),v}function X(Te){return F=Te,m=Kr(se,t),M?j(Te):v}function ae(Te){var Ct=Te-S,Zt=Te-F,hh=t-Ct;return D?Re(hh,h-Zt):hh}function V(Te){var Ct=Te-S,Zt=Te-F;return S===n||Ct>=t||Ct<0||D&&Zt>=h}function se(){var Te=ca();if(V(Te))return le(Te);m=Kr(se,ae(Te))}function le(Te){return m=n,z&&s?j(Te):(s=l=n,v)}function ft(){m!==n&&id(m),F=0,s=S=l=m=n}function Ge(){return m===n?v:le(ca())}function lt(){var Te=ca(),Ct=V(Te);if(s=arguments,l=this,S=Te,Ct){if(m===n)return X(S);if(D)return id(m),m=Kr(se,t),j(S)}return m===n&&(m=Kr(se,t)),v}return lt.cancel=ft,lt.flush=Ge,lt}var mw=oe(function(e,t){return Wc(e,1,t)}),yw=oe(function(e,t,r){return Wc(e,bt(t)||0,r)});function bw(e){return Jt(e,q)}function da(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new pt(c);var r=function(){var s=arguments,l=t?t.apply(this,s):s[0],h=r.cache;if(h.has(l))return h.get(l);var v=e.apply(this,s);return r.cache=h.set(l,v)||h,v};return r.cache=new(da.Cache||jt),r}da.Cache=jt;function ha(e){if(typeof e!="function")throw new pt(c);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function _w(e){return qd(2,e)}var ww=sb(function(e,t){t=t.length==1&&te(t[0])?we(t[0],ot(Y())):we(De(t,1),ot(Y()));var r=t.length;return oe(function(s){for(var l=-1,h=Re(s.length,r);++l<h;)s[l]=t[l].call(this,s[l]);return at(e,this,s)})}),Us=oe(function(e,t){var r=fn(t,sr(Us));return Jt(e,R,n,t,r)}),Kd=oe(function(e,t){var r=fn(t,sr(Kd));return Jt(e,de,n,t,r)}),Sw=Yt(function(e,t){return Jt(e,P,n,n,n,t)});function xw(e,t){if(typeof e!="function")throw new pt(c);return t=t===n?t:re(t),oe(e,t)}function Ew(e,t){if(typeof e!="function")throw new pt(c);return t=t==null?0:Le(re(t),0),oe(function(r){var s=r[t],l=pn(r,0,t);return s&&un(l,s),at(e,this,l)})}function Aw(e,t,r){var s=!0,l=!0;if(typeof e!="function")throw new pt(c);return Se(r)&&(s="leading"in r?!!r.leading:s,l="trailing"in r?!!r.trailing:l),Yd(e,t,{leading:s,maxWait:t,trailing:l})}function Tw(e){return Hd(e,1)}function Iw(e,t){return Us(Ts(t),e)}function Ow(){if(!arguments.length)return[];var e=arguments[0];return te(e)?e:[e]}function Cw(e){return gt(e,x)}function Nw(e,t){return t=typeof t=="function"?t:n,gt(e,x,t)}function Lw(e){return gt(e,w|x)}function Pw(e,t){return t=typeof t=="function"?t:n,gt(e,w|x,t)}function Fw(e,t){return t==null||Dc(e,t,Fe(t))}function Ot(e,t){return e===t||e!==e&&t!==t}var Mw=aa(ps),kw=aa(function(e,t){return e>=t}),Mn=Uc((function(){return arguments})())?Uc:function(e){return xe(e)&&ve.call(e,"callee")&&!Oc.call(e,"callee")},te=I.isArray,Dw=fc?ot(fc):q1;function Ze(e){return e!=null&&pa(e.length)&&!Xt(e)}function Ae(e){return xe(e)&&Ze(e)}function Ww(e){return e===!0||e===!1||xe(e)&&qe(e)==_n}var vn=Vy||Qs,Bw=lc?ot(lc):j1;function Rw(e){return xe(e)&&e.nodeType===1&&!Xr(e)}function $w(e){if(e==null)return!0;if(Ze(e)&&(te(e)||typeof e=="string"||typeof e.splice=="function"||vn(e)||ur(e)||Mn(e)))return!e.length;var t=$e(e);if(t==Ie||t==Ke)return!e.size;if(Yr(e))return!ms(e).length;for(var r in e)if(ve.call(e,r))return!1;return!0}function zw(e,t){return jr(e,t)}function Uw(e,t,r){r=typeof r=="function"?r:n;var s=r?r(e,t):n;return s===n?jr(e,t,n,r):!!s}function Hs(e){if(!xe(e))return!1;var t=qe(e);return t==Hn||t==Ir||typeof e.message=="string"&&typeof e.name=="string"&&!Xr(e)}function Hw(e){return typeof e=="number"&&Nc(e)}function Xt(e){if(!Se(e))return!1;var t=qe(e);return t==qn||t==Ai||t==Tr||t==jn}function Xd(e){return typeof e=="number"&&e==re(e)}function pa(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=ze}function Se(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function xe(e){return e!=null&&typeof e=="object"}var Vd=cc?ot(cc):J1;function qw(e,t){return e===t||gs(e,t,Fs(t))}function jw(e,t,r){return r=typeof r=="function"?r:n,gs(e,t,Fs(t),r)}function Gw(e){return Zd(e)&&e!=+e}function Jw(e){if(Nb(e))throw new Q(f);return Hc(e)}function Yw(e){return e===null}function Kw(e){return e==null}function Zd(e){return typeof e=="number"||xe(e)&&qe(e)==an}function Xr(e){if(!xe(e)||qe(e)!=rt)return!1;var t=zi(e);if(t===null)return!0;var r=ve.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&Wi.call(r)==jy}var qs=dc?ot(dc):Y1;function Xw(e){return Xd(e)&&e>=-ze&&e<=ze}var Qd=hc?ot(hc):K1;function va(e){return typeof e=="string"||!te(e)&&xe(e)&&qe(e)==on}function ut(e){return typeof e=="symbol"||xe(e)&&qe(e)==Be}var ur=pc?ot(pc):X1;function Vw(e){return e===n}function Zw(e){return xe(e)&&$e(e)==wn}function Qw(e){return xe(e)&&qe(e)==Bo}var eS=aa(ys),tS=aa(function(e,t){return e<=t});function eh(e){if(!e)return[];if(Ze(e))return va(e)?Tt(e):Ve(e);if(Wr&&e[Wr])return Fy(e[Wr]());var t=$e(e),r=t==Ie?as:t==Ke?Mi:fr;return r(e)}function Vt(e){if(!e)return e===0?e:0;if(e=bt(e),e===Et||e===-Et){var t=e<0?-1:1;return t*Do}return e===e?e:0}function re(e){var t=Vt(e),r=t%1;return t===t?r?t-r:t:0}function th(e){return e?Nn(re(e),0,nt):0}function bt(e){if(typeof e=="number")return e;if(ut(e))return At;if(Se(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Se(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=_c(e);var r=D0.test(e);return r||B0.test(e)?gy(e.slice(2),r?2:8):k0.test(e)?At:+e}function nh(e){return Ft(e,Qe(e))}function nS(e){return e?Nn(re(e),-ze,ze):e===0?e:0}function ge(e){return e==null?"":st(e)}var rS=ar(function(e,t){if(Yr(t)||Ze(t)){Ft(t,Fe(t),e);return}for(var r in t)ve.call(t,r)&&Ur(e,r,t[r])}),rh=ar(function(e,t){Ft(t,Qe(t),e)}),ga=ar(function(e,t,r,s){Ft(t,Qe(t),e,s)}),iS=ar(function(e,t,r,s){Ft(t,Fe(t),e,s)}),aS=Yt(cs);function oS(e,t){var r=ir(e);return t==null?r:kc(r,t)}var sS=oe(function(e,t){e=me(e);var r=-1,s=t.length,l=s>2?t[2]:n;for(l&&je(t[0],t[1],l)&&(s=1);++r<s;)for(var h=t[r],v=Qe(h),m=-1,S=v.length;++m<S;){var F=v[m],M=e[F];(M===n||Ot(M,tr[F])&&!ve.call(e,F))&&(e[F]=h[F])}return e}),uS=oe(function(e){return e.push(n,_d),at(ih,n,e)});function fS(e,t){return gc(e,Y(t,3),Pt)}function lS(e,t){return gc(e,Y(t,3),hs)}function cS(e,t){return e==null?e:ds(e,Y(t,3),Qe)}function dS(e,t){return e==null?e:$c(e,Y(t,3),Qe)}function hS(e,t){return e&&Pt(e,Y(t,3))}function pS(e,t){return e&&hs(e,Y(t,3))}function vS(e){return e==null?[]:Vi(e,Fe(e))}function gS(e){return e==null?[]:Vi(e,Qe(e))}function js(e,t,r){var s=e==null?n:Ln(e,t);return s===n?r:s}function mS(e,t){return e!=null&&xd(e,t,$1)}function Gs(e,t){return e!=null&&xd(e,t,z1)}var yS=vd(function(e,t,r){t!=null&&typeof t.toString!="function"&&(t=Bi.call(t)),e[t]=r},Ys(et)),bS=vd(function(e,t,r){t!=null&&typeof t.toString!="function"&&(t=Bi.call(t)),ve.call(e,t)?e[t].push(r):e[t]=[r]},Y),_S=oe(qr);function Fe(e){return Ze(e)?Fc(e):ms(e)}function Qe(e){return Ze(e)?Fc(e,!0):V1(e)}function wS(e,t){var r={};return t=Y(t,3),Pt(e,function(s,l,h){Gt(r,t(s,l,h),s)}),r}function SS(e,t){var r={};return t=Y(t,3),Pt(e,function(s,l,h){Gt(r,l,t(s,l,h))}),r}var xS=ar(function(e,t,r){Zi(e,t,r)}),ih=ar(function(e,t,r,s){Zi(e,t,r,s)}),ES=Yt(function(e,t){var r={};if(e==null)return r;var s=!1;t=we(t,function(h){return h=hn(h,e),s||(s=h.length>1),h}),Ft(e,Ls(e),r),s&&(r=gt(r,w|O|x,yb));for(var l=t.length;l--;)xs(r,t[l]);return r});function AS(e,t){return ah(e,ha(Y(t)))}var TS=Yt(function(e,t){return e==null?{}:Q1(e,t)});function ah(e,t){if(e==null)return{};var r=we(Ls(e),function(s){return[s]});return t=Y(t),Xc(e,r,function(s,l){return t(s,l[0])})}function IS(e,t,r){t=hn(t,e);var s=-1,l=t.length;for(l||(l=1,e=n);++s<l;){var h=e==null?n:e[Mt(t[s])];h===n&&(s=l,h=r),e=Xt(h)?h.call(e):h}return e}function OS(e,t,r){return e==null?e:Gr(e,t,r)}function CS(e,t,r,s){return s=typeof s=="function"?s:n,e==null?e:Gr(e,t,r,s)}var oh=yd(Fe),sh=yd(Qe);function NS(e,t,r){var s=te(e),l=s||vn(e)||ur(e);if(t=Y(t,4),r==null){var h=e&&e.constructor;l?r=s?new h:[]:Se(e)?r=Xt(h)?ir(zi(e)):{}:r={}}return(l?ht:Pt)(e,function(v,m,S){return t(r,v,m,S)}),r}function LS(e,t){return e==null?!0:xs(e,t)}function PS(e,t,r){return e==null?e:td(e,t,Ts(r))}function FS(e,t,r,s){return s=typeof s=="function"?s:n,e==null?e:td(e,t,Ts(r),s)}function fr(e){return e==null?[]:is(e,Fe(e))}function MS(e){return e==null?[]:is(e,Qe(e))}function kS(e,t,r){return r===n&&(r=t,t=n),r!==n&&(r=bt(r),r=r===r?r:0),t!==n&&(t=bt(t),t=t===t?t:0),Nn(bt(e),t,r)}function DS(e,t,r){return t=Vt(t),r===n?(r=t,t=0):r=Vt(r),e=bt(e),U1(e,t,r)}function WS(e,t,r){if(r&&typeof r!="boolean"&&je(e,t,r)&&(t=r=n),r===n&&(typeof t=="boolean"?(r=t,t=n):typeof e=="boolean"&&(r=e,e=n)),e===n&&t===n?(e=0,t=1):(e=Vt(e),t===n?(t=e,e=0):t=Vt(t)),e>t){var s=e;e=t,t=s}if(r||e%1||t%1){var l=Lc();return Re(e+l*(t-e+vy("1e-"+((l+"").length-1))),t)}return _s(e,t)}var BS=or(function(e,t,r){return t=t.toLowerCase(),e+(r?uh(t):t)});function uh(e){return Js(ge(e).toLowerCase())}function fh(e){return e=ge(e),e&&e.replace($0,Oy).replace(ay,"")}function RS(e,t,r){e=ge(e),t=st(t);var s=e.length;r=r===n?s:Nn(re(r),0,s);var l=r;return r-=t.length,r>=0&&e.slice(r,l)==t}function $S(e){return e=ge(e),e&&Yn.test(e)?e.replace(it,Cy):e}function zS(e){return e=ge(e),e&&Ho.test(e)?e.replace(Fr,"\\$&"):e}var US=or(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()}),HS=or(function(e,t,r){return e+(r?" ":"")+t.toLowerCase()}),qS=dd("toLowerCase");function jS(e,t,r){e=ge(e),t=re(t);var s=t?Qn(e):0;if(!t||s>=t)return e;var l=(t-s)/2;return ia(ji(l),r)+e+ia(qi(l),r)}function GS(e,t,r){e=ge(e),t=re(t);var s=t?Qn(e):0;return t&&s<t?e+ia(t-s,r):e}function JS(e,t,r){e=ge(e),t=re(t);var s=t?Qn(e):0;return t&&s<t?ia(t-s,r)+e:e}function YS(e,t,r){return r||t==null?t=0:t&&(t=+t),t1(ge(e).replace(Ht,""),t||0)}function KS(e,t,r){return(r?je(e,t,r):t===n)?t=1:t=re(t),ws(ge(e),t)}function XS(){var e=arguments,t=ge(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var VS=or(function(e,t,r){return e+(r?"_":"")+t.toLowerCase()});function ZS(e,t,r){return r&&typeof r!="number"&&je(e,t,r)&&(t=r=n),r=r===n?nt:r>>>0,r?(e=ge(e),e&&(typeof t=="string"||t!=null&&!qs(t))&&(t=st(t),!t&&Zn(e))?pn(Tt(e),0,r):e.split(t,r)):[]}var QS=or(function(e,t,r){return e+(r?" ":"")+Js(t)});function ex(e,t,r){return e=ge(e),r=r==null?0:Nn(re(r),0,e.length),t=st(t),e.slice(r,r+t.length)==t}function tx(e,t,r){var s=d.templateSettings;r&&je(e,t,r)&&(t=n),e=ge(e),t=ga({},t,s,bd);var l=ga({},t.imports,s.imports,bd),h=Fe(l),v=is(l,h),m,S,F=0,M=t.interpolate||Ci,D="__p += '",z=os((t.escape||Ci).source+"|"+M.source+"|"+(M===An?M0:Ci).source+"|"+(t.evaluate||Ci).source+"|$","g"),j="//# sourceURL="+(ve.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ly+"]")+`
|
|
4
|
+
`;e.replace(z,function(V,se,le,ft,Ge,lt){return le||(le=ft),D+=e.slice(F,lt).replace(z0,Ny),se&&(m=!0,D+=`' +
|
|
5
|
+
__e(`+se+`) +
|
|
6
|
+
'`),Ge&&(S=!0,D+=`';
|
|
7
|
+
`+Ge+`;
|
|
8
|
+
__p += '`),le&&(D+=`' +
|
|
9
|
+
((__t = (`+le+`)) == null ? '' : __t) +
|
|
10
|
+
'`),F=lt+V.length,V}),D+=`';
|
|
11
|
+
`;var X=ve.call(t,"variable")&&t.variable;if(!X)D=`with (obj) {
|
|
12
|
+
`+D+`
|
|
13
|
+
}
|
|
14
|
+
`;else if(P0.test(X))throw new Q(p);D=(S?D.replace(Ii,""):D).replace(fe,"$1").replace(Pe,"$1;"),D="function("+(X||"obj")+`) {
|
|
15
|
+
`+(X?"":`obj || (obj = {});
|
|
16
|
+
`)+"var __t, __p = ''"+(m?", __e = _.escape":"")+(S?`, __j = Array.prototype.join;
|
|
17
17
|
function print() { __p += __j.call(arguments, '') }
|
|
18
18
|
`:`;
|
|
19
|
-
`)+
|
|
20
|
-
}`;var oe=wg(function(){return pe(g,q+"return "+R).apply(r,v)});if(oe.source=R,wu(oe))throw oe;return oe}function xI(e){return me(e).toLowerCase()}function II(e){return me(e).toUpperCase()}function OI(e,t,a){if(e=me(e),e&&(a||t===r))return Cd(e);if(!e||!(t=ut(t)))return e;var u=At(e),c=At(t),g=Nd(u,c),v=Pd(u,c)+1;return mn(u,g,v).join("")}function DI(e,t,a){if(e=me(e),e&&(a||t===r))return e.slice(0,Md(e)+1);if(!e||!(t=ut(t)))return e;var u=At(e),c=Pd(u,At(t))+1;return mn(u,0,c).join("")}function AI(e,t,a){if(e=me(e),e&&(a||t===r))return e.replace(Gt,"");if(!e||!(t=ut(t)))return e;var u=At(e),c=Nd(u,At(t));return mn(u,c).join("")}function CI(e,t){var a=ee,u=Y;if(Ee(t)){var c="separator"in t?t.separator:c;a="length"in t?ie(t.length):a,u="omission"in t?ut(t.omission):u}e=me(e);var g=e.length;if(ar(e)){var v=At(e);g=v.length}if(a>=g)return e;var b=a-or(u);if(b<1)return u;var x=v?mn(v,0,b).join(""):e.slice(0,b);if(c===r)return x+u;if(v&&(b+=x.length-b),_u(c)){if(e.slice(b).search(c)){var M,k=x;for(c.global||(c=Ws(c.source,me(Zc.exec(c))+"g")),c.lastIndex=0;M=c.exec(k);)var R=M.index;x=x.slice(0,R===r?b:R)}}else if(e.indexOf(ut(c),b)!=b){var H=x.lastIndexOf(c);H>-1&&(x=x.slice(0,H))}return x+u}function NI(e){return e=me(e),e&&xe.test(e)?e.replace(Ke,ow):e}var PI=hr(function(e,t,a){return e+(a?" ":"")+t.toUpperCase()}),xu=_h("toUpperCase");function Sg(e,t,a){return e=me(e),t=a?r:t,t===r?tw(e)?lw(e):GS(e):e.match(t)||[]}var wg=se(function(e,t){try{return ot(e,r,t)}catch(a){return wu(a)?a:new Q(a)}}),LI=Kt(function(e,t){return vt(t,function(a){a=Rt(a),Vt(e,a,bu(e[a],e))}),e});function MI(e){var t=e==null?0:e.length,a=J();return e=t?_e(e,function(u){if(typeof u[1]!="function")throw new mt(f);return[a(u[0]),u[1]]}):[],se(function(u){for(var c=-1;++c<t;){var g=e[c];if(ot(g[0],this,u))return ot(g[1],this,u)}})}function kI(e){return o_(bt(e,w))}function Iu(e){return function(){return e}}function FI(e,t){return e==null||e!==e?t:e}var RI=Th(),WI=Th(!0);function tt(e){return e}function Ou(e){return eh(typeof e=="function"?e:bt(e,w))}function BI(e){return nh(bt(e,w))}function $I(e,t){return rh(e,bt(t,w))}var UI=se(function(e,t){return function(a){return Qr(a,e,t)}}),HI=se(function(e,t){return function(a){return Qr(e,a,t)}});function Du(e,t,a){var u=Me(t),c=ca(t,u);a==null&&!(Ee(t)&&(c.length||!u.length))&&(a=t,t=e,e=this,c=ca(t,Me(t)));var g=!(Ee(a)&&"chain"in a)||!!a.chain,v=Qt(e);return vt(c,function(b){var x=t[b];e[b]=x,v&&(e.prototype[b]=function(){var M=this.__chain__;if(g||M){var k=e(this.__wrapped__),R=k.__actions__=Ze(this.__actions__);return R.push({func:x,args:arguments,thisArg:e}),k.__chain__=M,k}return x.apply(e,cn([this.value()],arguments))})}),e}function zI(){return Fe._===this&&(Fe._=pw),this}function Au(){}function jI(e){return e=ie(e),se(function(t){return ih(t,e)})}var qI=ou(_e),GI=ou(xd),YI=ou(Ns);function _g(e){return hu(e)?Ps(Rt(e)):E_(e)}function JI(e){return function(t){return e==null?r:kn(e,t)}}var VI=Ih(),XI=Ih(!0);function Cu(){return[]}function Nu(){return!1}function KI(){return{}}function ZI(){return""}function QI(){return!0}function eO(e,t){if(e=ie(e),e<1||e>He)return[];var a=rt,u=$e(e,rt);t=J(t),e-=rt;for(var c=ks(u,t);++a<e;)t(a);return c}function tO(e){return te(e)?_e(e,Rt):lt(e)?[e]:Ze(Hh(me(e)))}function nO(e){var t=++hw;return me(e)+t}var rO=ma(function(e,t){return e+t},0),iO=su("ceil"),aO=ma(function(e,t){return e/t},1),oO=su("floor");function sO(e){return e&&e.length?fa(e,tt,Gs):r}function uO(e,t){return e&&e.length?fa(e,J(t,2),Gs):r}function lO(e){return Dd(e,tt)}function fO(e,t){return Dd(e,J(t,2))}function cO(e){return e&&e.length?fa(e,tt,Xs):r}function dO(e,t){return e&&e.length?fa(e,J(t,2),Xs):r}var hO=ma(function(e,t){return e*t},1),gO=su("round"),pO=ma(function(e,t){return e-t},0);function vO(e){return e&&e.length?Ms(e,tt):0}function mO(e,t){return e&&e.length?Ms(e,J(t,2)):0}return h.after=BT,h.ary=Qh,h.assign=Ix,h.assignIn=hg,h.assignInWith=Ca,h.assignWith=Ox,h.at=Dx,h.before=eg,h.bind=bu,h.bindAll=LI,h.bindKey=tg,h.castArray=KT,h.chain=Xh,h.chunk=oE,h.compact=sE,h.concat=uE,h.cond=MI,h.conforms=kI,h.constant=Iu,h.countBy=vT,h.create=Ax,h.curry=ng,h.curryRight=rg,h.debounce=ig,h.defaults=Cx,h.defaultsDeep=Nx,h.defer=$T,h.delay=UT,h.difference=lE,h.differenceBy=fE,h.differenceWith=cE,h.drop=dE,h.dropRight=hE,h.dropRightWhile=gE,h.dropWhile=pE,h.fill=vE,h.filter=yT,h.flatMap=wT,h.flatMapDeep=_T,h.flatMapDepth=ET,h.flatten=Gh,h.flattenDeep=mE,h.flattenDepth=yE,h.flip=HT,h.flow=RI,h.flowRight=WI,h.fromPairs=bE,h.functions=Wx,h.functionsIn=Bx,h.groupBy=TT,h.initial=wE,h.intersection=_E,h.intersectionBy=EE,h.intersectionWith=TE,h.invert=Ux,h.invertBy=Hx,h.invokeMap=IT,h.iteratee=Ou,h.keyBy=OT,h.keys=Me,h.keysIn=et,h.map=Ta,h.mapKeys=jx,h.mapValues=qx,h.matches=BI,h.matchesProperty=$I,h.memoize=Ia,h.merge=Gx,h.mergeWith=gg,h.method=UI,h.methodOf=HI,h.mixin=Du,h.negate=Oa,h.nthArg=jI,h.omit=Yx,h.omitBy=Jx,h.once=zT,h.orderBy=DT,h.over=qI,h.overArgs=jT,h.overEvery=GI,h.overSome=YI,h.partial=Su,h.partialRight=ag,h.partition=AT,h.pick=Vx,h.pickBy=pg,h.property=_g,h.propertyOf=JI,h.pull=DE,h.pullAll=Jh,h.pullAllBy=AE,h.pullAllWith=CE,h.pullAt=NE,h.range=VI,h.rangeRight=XI,h.rearg=qT,h.reject=PT,h.remove=PE,h.rest=GT,h.reverse=mu,h.sampleSize=MT,h.set=Kx,h.setWith=Zx,h.shuffle=kT,h.slice=LE,h.sortBy=WT,h.sortedUniq=$E,h.sortedUniqBy=UE,h.split=wI,h.spread=YT,h.tail=HE,h.take=zE,h.takeRight=jE,h.takeRightWhile=qE,h.takeWhile=GE,h.tap=sT,h.throttle=JT,h.thru=Ea,h.toArray=fg,h.toPairs=vg,h.toPairsIn=mg,h.toPath=tO,h.toPlainObject=dg,h.transform=Qx,h.unary=VT,h.union=YE,h.unionBy=JE,h.unionWith=VE,h.uniq=XE,h.uniqBy=KE,h.uniqWith=ZE,h.unset=eI,h.unzip=yu,h.unzipWith=Vh,h.update=tI,h.updateWith=nI,h.values=vr,h.valuesIn=rI,h.without=QE,h.words=Sg,h.wrap=XT,h.xor=eT,h.xorBy=tT,h.xorWith=nT,h.zip=rT,h.zipObject=iT,h.zipObjectDeep=aT,h.zipWith=oT,h.entries=vg,h.entriesIn=mg,h.extend=hg,h.extendWith=Ca,Du(h,h),h.add=rO,h.attempt=wg,h.camelCase=sI,h.capitalize=yg,h.ceil=iO,h.clamp=iI,h.clone=ZT,h.cloneDeep=ex,h.cloneDeepWith=tx,h.cloneWith=QT,h.conformsTo=nx,h.deburr=bg,h.defaultTo=FI,h.divide=aO,h.endsWith=uI,h.eq=Nt,h.escape=lI,h.escapeRegExp=fI,h.every=mT,h.find=bT,h.findIndex=jh,h.findKey=Px,h.findLast=ST,h.findLastIndex=qh,h.findLastKey=Lx,h.floor=oO,h.forEach=Kh,h.forEachRight=Zh,h.forIn=Mx,h.forInRight=kx,h.forOwn=Fx,h.forOwnRight=Rx,h.get=Eu,h.gt=rx,h.gte=ix,h.has=$x,h.hasIn=Tu,h.head=Yh,h.identity=tt,h.includes=xT,h.indexOf=SE,h.inRange=aI,h.invoke=zx,h.isArguments=Wn,h.isArray=te,h.isArrayBuffer=ax,h.isArrayLike=Qe,h.isArrayLikeObject=Ie,h.isBoolean=ox,h.isBuffer=yn,h.isDate=sx,h.isElement=ux,h.isEmpty=lx,h.isEqual=fx,h.isEqualWith=cx,h.isError=wu,h.isFinite=dx,h.isFunction=Qt,h.isInteger=og,h.isLength=Da,h.isMap=sg,h.isMatch=hx,h.isMatchWith=gx,h.isNaN=px,h.isNative=vx,h.isNil=yx,h.isNull=mx,h.isNumber=ug,h.isObject=Ee,h.isObjectLike=Te,h.isPlainObject=ai,h.isRegExp=_u,h.isSafeInteger=bx,h.isSet=lg,h.isString=Aa,h.isSymbol=lt,h.isTypedArray=pr,h.isUndefined=Sx,h.isWeakMap=wx,h.isWeakSet=_x,h.join=xE,h.kebabCase=cI,h.last=wt,h.lastIndexOf=IE,h.lowerCase=dI,h.lowerFirst=hI,h.lt=Ex,h.lte=Tx,h.max=sO,h.maxBy=uO,h.mean=lO,h.meanBy=fO,h.min=cO,h.minBy=dO,h.stubArray=Cu,h.stubFalse=Nu,h.stubObject=KI,h.stubString=ZI,h.stubTrue=QI,h.multiply=hO,h.nth=OE,h.noConflict=zI,h.noop=Au,h.now=xa,h.pad=gI,h.padEnd=pI,h.padStart=vI,h.parseInt=mI,h.random=oI,h.reduce=CT,h.reduceRight=NT,h.repeat=yI,h.replace=bI,h.result=Xx,h.round=gO,h.runInContext=T,h.sample=LT,h.size=FT,h.snakeCase=SI,h.some=RT,h.sortedIndex=ME,h.sortedIndexBy=kE,h.sortedIndexOf=FE,h.sortedLastIndex=RE,h.sortedLastIndexBy=WE,h.sortedLastIndexOf=BE,h.startCase=_I,h.startsWith=EI,h.subtract=pO,h.sum=vO,h.sumBy=mO,h.template=TI,h.times=eO,h.toFinite=en,h.toInteger=ie,h.toLength=cg,h.toLower=xI,h.toNumber=_t,h.toSafeInteger=xx,h.toString=me,h.toUpper=II,h.trim=OI,h.trimEnd=DI,h.trimStart=AI,h.truncate=CI,h.unescape=NI,h.uniqueId=nO,h.upperCase=PI,h.upperFirst=xu,h.each=Kh,h.eachRight=Zh,h.first=Yh,Du(h,(function(){var e={};return kt(h,function(t,a){ve.call(h.prototype,a)||(e[a]=t)}),e})(),{chain:!1}),h.VERSION=o,vt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){h[e].placeholder=h}),vt(["drop","take"],function(e,t){fe.prototype[e]=function(a){a=a===r?1:Pe(ie(a),0);var u=this.__filtered__&&!t?new fe(this):this.clone();return u.__filtered__?u.__takeCount__=$e(a,u.__takeCount__):u.__views__.push({size:$e(a,rt),type:e+(u.__dir__<0?"Right":"")}),u},fe.prototype[e+"Right"]=function(a){return this.reverse()[e](a).reverse()}}),vt(["filter","map","takeWhile"],function(e,t){var a=t+1,u=a==We||a==Ve;fe.prototype[e]=function(c){var g=this.clone();return g.__iteratees__.push({iteratee:J(c,3),type:a}),g.__filtered__=g.__filtered__||u,g}}),vt(["head","last"],function(e,t){var a="take"+(t?"Right":"");fe.prototype[e]=function(){return this[a](1).value()[0]}}),vt(["initial","tail"],function(e,t){var a="drop"+(t?"":"Right");fe.prototype[e]=function(){return this.__filtered__?new fe(this):this[a](1)}}),fe.prototype.compact=function(){return this.filter(tt)},fe.prototype.find=function(e){return this.filter(e).head()},fe.prototype.findLast=function(e){return this.reverse().find(e)},fe.prototype.invokeMap=se(function(e,t){return typeof e=="function"?new fe(this):this.map(function(a){return Qr(a,e,t)})}),fe.prototype.reject=function(e){return this.filter(Oa(J(e)))},fe.prototype.slice=function(e,t){e=ie(e);var a=this;return a.__filtered__&&(e>0||t<0)?new fe(a):(e<0?a=a.takeRight(-e):e&&(a=a.drop(e)),t!==r&&(t=ie(t),a=t<0?a.dropRight(-t):a.take(t-e)),a)},fe.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},fe.prototype.toArray=function(){return this.take(rt)},kt(fe.prototype,function(e,t){var a=/^(?:filter|find|map|reject)|While$/.test(t),u=/^(?:head|last)$/.test(t),c=h[u?"take"+(t=="last"?"Right":""):t],g=u||/^find/.test(t);c&&(h.prototype[t]=function(){var v=this.__wrapped__,b=u?[1]:arguments,x=v instanceof fe,M=b[0],k=x||te(v),R=function(le){var de=c.apply(h,cn([le],b));return u&&H?de[0]:de};k&&a&&typeof M=="function"&&M.length!=1&&(x=k=!1);var H=this.__chain__,q=!!this.__actions__.length,K=g&&!H,oe=x&&!q;if(!g&&k){v=oe?v:new fe(this);var Z=e.apply(v,b);return Z.__actions__.push({func:Ea,args:[R],thisArg:r}),new yt(Z,H)}return K&&oe?e.apply(this,b):(Z=this.thru(R),K?u?Z.value()[0]:Z.value():Z)})}),vt(["pop","push","shift","sort","splice","unshift"],function(e){var t=Vi[e],a=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",u=/^(?:pop|shift)$/.test(e);h.prototype[e]=function(){var c=arguments;if(u&&!this.__chain__){var g=this.value();return t.apply(te(g)?g:[],c)}return this[a](function(v){return t.apply(te(v)?v:[],c)})}}),kt(fe.prototype,function(e,t){var a=h[t];if(a){var u=a.name+"";ve.call(fr,u)||(fr[u]=[]),fr[u].push({name:t,func:a})}}),fr[va(r,C).name]=[{name:"wrapper",func:r}],fe.prototype.clone=Nw,fe.prototype.reverse=Pw,fe.prototype.value=Lw,h.prototype.at=uT,h.prototype.chain=lT,h.prototype.commit=fT,h.prototype.next=cT,h.prototype.plant=hT,h.prototype.reverse=gT,h.prototype.toJSON=h.prototype.valueOf=h.prototype.value=pT,h.prototype.first=h.prototype.head,Gr&&(h.prototype[Gr]=dT),h}),sr=fw();Cn?((Cn.exports=sr)._=sr,Os._=sr):Fe._=sr}).call(xg)})(Sr,Sr.exports)),Sr.exports}var Bn=Ig();class ge{static toString(n){const r=Pu(n);if(r==null)throw new Error("buildWinId: stringify error");return r}static getParamString(n,r){return n.params?.[r]?.toString()}static getParam(n,r){return n.params?.[r]}static isEquals(n,r){return Bn.isEqual(n,r)}static indexOf(n,r){return n.map(ge.toString).indexOf(ge.toString(r))}static includes(n,r){return n.map(ge.toString).includes(ge.toString(r))}static withoutDup(n){const{params:r,viewId:o,title:s}=n;return{params:r,viewId:o,title:s}}static replaceDup(n){const{params:r,viewId:o,title:s}=n;return{params:r,viewId:o,title:s,dupId:`${new Date().getTime()}`}}}var si={exports:{}},Mu;function Og(){return Mu||(Mu=1,(function(i,n){Object.defineProperty(n,"__esModule",{value:!0});function r(N){return typeof N=="object"&&!("toString"in N)?Object.prototype.toString.call(N).slice(8,-1):N}var o=typeof process=="object"&&process.env.NODE_ENV==="production";function s(N,L){if(!N)throw o?new Error("Invariant failed"):new Error(L())}n.invariant=s;var l=Object.prototype.hasOwnProperty,f=Array.prototype.splice,d=Object.prototype.toString;function p(N){return d.call(N).slice(8,-1)}var m=Object.assign||(function(N,L){return S(L).forEach(function(j){l.call(L,j)&&(N[j]=L[j])}),N}),S=typeof Object.getOwnPropertySymbols=="function"?function(N){return Object.keys(N).concat(Object.getOwnPropertySymbols(N))}:function(N){return Object.keys(N)};function w(N){return Array.isArray(N)?m(N.constructor(N.length),N):p(N)==="Map"?new Map(N):p(N)==="Set"?new Set(N):N&&typeof N=="object"?m(Object.create(Object.getPrototypeOf(N)),N):N}var O=(function(){function N(){this.commands=m({},y),this.update=this.update.bind(this),this.update.extend=this.extend=this.extend.bind(this),this.update.isEquals=function(L,j){return L===j},this.update.newContext=function(){return new N().update}}return Object.defineProperty(N.prototype,"isEquals",{get:function(){return this.update.isEquals},set:function(L){this.update.isEquals=L},enumerable:!0,configurable:!0}),N.prototype.extend=function(L,j){this.commands[L]=j},N.prototype.update=function(L,j){var ee=this,Y=typeof j=="function"?{$apply:j}:j;Array.isArray(L)&&Array.isArray(Y)||s(!Array.isArray(Y),function(){return"update(): You provided an invalid spec to update(). The spec may not contain an array except as the value of $set, $push, $unshift, $splice or any custom command allowing an array value."}),s(typeof Y=="object"&&Y!==null,function(){return"update(): You provided an invalid spec to update(). The spec and every included key path must be plain objects containing one of the "+("following commands: "+Object.keys(ee.commands).join(", ")+".")});var ae=L;return S(Y).forEach(function(X){if(l.call(ee.commands,X)){var We=L===ae;ae=ee.commands[X](Y[X],ae,Y,L),We&&ee.isEquals(ae,L)&&(ae=L)}else{var Je=p(L)==="Map"?ee.update(L.get(X),Y[X]):ee.update(L[X],Y[X]),Ve=p(ae)==="Map"?ae.get(X):ae[X];(!ee.isEquals(Je,Ve)||typeof Je>"u"&&!l.call(L,X))&&(ae===L&&(ae=w(L)),p(ae)==="Map"?ae.set(X,Je):ae[X]=Je)}}),ae},N})();n.Context=O;var y={$push:function(N,L,j){return _(L,j,"$push"),N.length?L.concat(N):L},$unshift:function(N,L,j){return _(L,j,"$unshift"),N.length?N.concat(L):L},$splice:function(N,L,j,ee){return C(L,j),N.forEach(function(Y){F(Y),L===ee&&Y.length&&(L=w(ee)),f.apply(L,Y)}),L},$set:function(N,L,j){return V(j),N},$toggle:function(N,L){I(N,"$toggle");var j=N.length?w(L):L;return N.forEach(function(ee){j[ee]=!L[ee]}),j},$unset:function(N,L,j,ee){return I(N,"$unset"),N.forEach(function(Y){Object.hasOwnProperty.call(L,Y)&&(L===ee&&(L=w(ee)),delete L[Y])}),L},$add:function(N,L,j,ee){return ue(L,"$add"),I(N,"$add"),p(L)==="Map"?N.forEach(function(Y){var ae=Y[0],X=Y[1];L===ee&&L.get(ae)!==X&&(L=w(ee)),L.set(ae,X)}):N.forEach(function(Y){L===ee&&!L.has(Y)&&(L=w(ee)),L.add(Y)}),L},$remove:function(N,L,j,ee){return ue(L,"$remove"),I(N,"$remove"),N.forEach(function(Y){L===ee&&L.has(Y)&&(L=w(ee)),L.delete(Y)}),L},$merge:function(N,L,j,ee){return B(L,N),S(N).forEach(function(Y){N[Y]!==L[Y]&&(L===ee&&(L=w(ee)),L[Y]=N[Y])}),L},$apply:function(N,L){return U(N),N(L)}},E=new O;n.isEquals=E.update.isEquals,n.extend=E.extend,n.default=E.update,n.default.default=i.exports=m(n.default,n);function _(N,L,j){s(Array.isArray(N),function(){return"update(): expected target of "+r(j)+" to be an array; got "+r(N)+"."}),I(L[j],j)}function I(N,L){s(Array.isArray(N),function(){return"update(): expected spec of "+r(L)+" to be an array; got "+r(N)+". Did you forget to wrap your parameter in an array?"})}function C(N,L){s(Array.isArray(N),function(){return"Expected $splice target to be an array; got "+r(N)}),F(L.$splice)}function F(N){s(Array.isArray(N),function(){return"update(): expected spec of $splice to be an array of arrays; got "+r(N)+". Did you forget to wrap your parameters in an array?"})}function U(N){s(typeof N=="function",function(){return"update(): expected spec of $apply to be a function; got "+r(N)+"."})}function V(N){s(Object.keys(N).length===1,function(){return"Cannot have more than one key in an object with $set"})}function B(N,L){s(L&&typeof L=="object",function(){return"update(): $merge expects a spec of type 'object'; got "+r(L)}),s(N&&typeof N=="object",function(){return"update(): $merge expects a target of type 'object'; got "+r(N)})}function ue(N,L){var j=p(N);s(j==="Map"||j==="Set",function(){return"update(): "+r(L)+" expects a target of type Set or Map; got "+r(j)})}})(si,si.exports)),si.exports}var Dg=Og();const Ag=br(Dg);var Cg=Object.getOwnPropertyDescriptor,Ng=(i,n,r,o)=>{for(var s=o>1?void 0:o?Cg(n,r):n,l=i.length-1,f;l>=0;l--)(f=i[l])&&(s=f(s)||s);return s};he.JustLayoutService=class{insertWinIdToStack=(n,r)=>{if(n==null)return n;const o=this.getNodeByBranch(n,r.branch);if(o.type!=="stack")return n;const l=o.tabs,f=r.index>=0?Bn.clamp(r.index,0,l.length):l.length;return this.updateNodeOfBranch(n,r.branch,{$set:{...o,type:"stack",tabs:[...l.slice(0,f),r.justId,...l.slice(f)],active:r.justId}})};insertWinIdToSplit=(n,r)=>{if(n==null)return n;const o=this.getNodeByBranch(n,r.branch),s=r.pos==="first"?"second":"first";return this.updateNodeOfBranch(n,r.branch,{$set:{type:"split-percentage",direction:r.direction,[s]:{...o,name:void 0},[r.pos]:{type:"stack",tabs:[r.justId],active:r.justId,name:void 0},size:r.size??50,dndAccept:o.dndAccept,name:o.name,hideTitle:o.hideTitle}})};removeWinId=(n,r)=>{if(n==null)return null;const o=this.getNodeByWinId(n,r);if(o?.type!=="stack")return n;const s=o.active?ge.indexOf(o.tabs,o.active):0,l=o.tabs.filter(d=>!ge.isEquals(d,r));let f;return o.active!==null&&ge.includes(l,o.active)?f=o.active:f=l.length>0&&o.active!==null?l[Bn.clamp(s-1,0,l.length-1)]:null,this.updateNodeOfWinId(n,r,{$set:{...o,tabs:l,active:f}})};removeAllTabs=(n,r)=>{if(n==null)return null;const o=this.getNodeByBranch(n,r);return o==null||o.type!=="stack"?n:this.updateNodeOfBranch(n,r,{$set:{...o,tabs:[],active:null}})};activeWinId=(n,r)=>{if(n==null)return null;const o=this.getNodeByWinId(n,r);return o==null?n:this.updateNodeOfWinId(n,r,{$set:{...o,active:r}})};getActiveWinIds=n=>{const r=(o,s)=>{if(o===null)return s;if(o.type==="stack")return o.active!==null?[...s,o.active]:s;{const l=r(o.first,s);return r(o.second,l)}};return r(n,[])};removeEmpty=n=>{if(n==null)return n;const r=this.findEmptyBranch(n,null,[]);if(r===null)return n;if(r.length===0)return null;const o=r[r.length-1],s=r.slice(0,-1),l=o==="first"?"second":"first",f=this.getNodeByBranch(n,s),d=this.getNodeByBranch(n,[...s,l]);return this.updateNodeOfBranch(n,s,{$set:{...d,dndAccept:f.dndAccept,name:f.name,hideTitle:f.hideTitle}})};findEmptyBranch=(n,r,o)=>{if(n===null)return null;if(n.type==="stack"){const s=r!=null&&r.type!="stack"&&(!!r.first.name||!!r.second.name);if(n.tabs.length===0&&!s)return o}else{const s=this.findEmptyBranch(n.first,n,[...o,"first"]);if(s!=null)return s;const l=this.findEmptyBranch(n.second,n,[...o,"second"]);if(l!=null)return l}return null};moveWinIdToStack=(n,r)=>{const o=this.removeWinId(n,r.justId);return this.insertWinIdToStack(o,r)};moveWinIdToSplit=(n,r)=>{const o=this.removeWinId(n,r.justId);return this.insertWinIdToSplit(o,r)};getBranch=(n,r,o)=>{if(n===null)return null;if(n.type==="stack")return ge.includes(n.tabs,r)?o:null;{const s=this.getBranch(n.first,r,[...o,"first"]);if(s!=null)return s;const l=this.getBranch(n.second,r,[...o,"second"]);return l??null}};getBranchByWinId=(n,r)=>this.getBranch(n,r,[]);getNodeInfoByNodeName=(n,r,o)=>{if(n===null)return null;if(n.name==r)return{node:n,branch:[...o]};if(n.type!="stack"){const s=this.getNodeInfoByNodeName(n.first,r,[...o,"first"]);if(s!=null)return s;const l=this.getNodeInfoByNodeName(n.second,r,[...o,"second"]);if(l!=null)return l}return null};getTabNodeInfoByNodeName=(n,r,o)=>{if(n===null)return null;const s=this.getNodeInfoByNodeName(n,r,o);if(s==null)return null;if(s.node.type==="stack")return s;{const l=this.getTabNodeInfo(s.node,[]);if(l!=null)return{node:l.node,branch:[...s.branch,...l.branch]}}return null};getNodeByWinId=(n,r)=>{if(n===null)return null;if(n.type==="stack")return ge.includes(n.tabs,r)?(console.log("includes ok:",n.tabs,r),n):(console.log("includes nok:",n.tabs,r),null);{const o=this.getNodeByWinId(n.first,r);if(o!=null)return o;const s=this.getNodeByWinId(n.second,r);return s??null}};getTabBranch=(n,r)=>{if(n===null)return null;if(n.type==="stack")return r;{let o;n.type==="split-pixels"?o=n.primary==="first"?"second":"first":o=n.direction==="row"?"second":"first";const s=this.getTabBranch(n[o],[...r,o]);if(s!=null)return s}return null};getTabNodeInfo=(n,r)=>{if(n===null)return null;if(n.type==="stack")return{node:n,branch:r};{let o;n.type==="split-pixels"?o=n.primary==="first"?"second":"first":o=n.direction==="row"?"second":"first";const s=this.getTabNodeInfo(n[o],[...r,o]);if(s!=null)return s}return null};addTabWin=(n,r,o,s)=>{if(n===null)return null;const l=this.getNodeByBranch(n,r);if(l.type!=="stack")return n;const f=s<0?l.tabs.length:Bn.clamp(s,0,l.tabs.length);return this.updateNodeOfBranch(n,r,{$merge:{tabs:[...l.tabs.slice(0,f),o,...l.tabs.slice(f)],active:o}})};queryWinIdsByViewId=(n,r,o)=>{if(n===null)return o;if(n.type==="stack")return[...o,...n.tabs.filter(s=>s.viewId===r)];{const s=this.queryWinIdsByViewId(n.first,r,o);return this.queryWinIdsByViewId(n.second,r,[...o,...s])}};queryDupWinIdsByWinId=(n,r,o)=>{if(n===null)return o;if(n.type==="stack"){const s=ge.withoutDup(r),l=n.tabs.filter(f=>{const d=ge.withoutDup(f);return ge.isEquals(s,d)});return[...o,...l]}else{const s=this.queryDupWinIdsByWinId(n.first,r,o);return this.queryDupWinIdsByWinId(n.second,r,[...o,...s])}};queryWinIdsByStack=(n,r)=>{if(n===null)return[];const o=this.getNodeByBranch(n,r);return o.type!=="stack"?[]:o.tabs};getNodeByBranch=(n,r)=>r.reduce((o,s)=>o?.[s],n);updateNodeOfBranch=(n,r,o)=>{const s=this.buildSpecFromUpdateSpec(r,o);return this.updateNode(n,s)};updateNodeOfWinId=(n,r,o)=>{const s=this.getBranchByWinId(n,r);if(s==null)return n;const l=this.buildSpecFromUpdateSpec(s,o);return this.updateNode(n,l)};hasWinId=(n,r)=>this.getNodeByWinId(n,r)!=null;updateNode=(n,r)=>n==null?null:Ag(n,r);buildSpecFromUpdateSpec=(n,r)=>n.length>0?Bn.set({},n,r):r;getNodeAtBranch=(n,r)=>r.length>0?Bn.get(n,r,null):n;getBranchRightTop=n=>{if(n==null)return[];let r=n;const o=[];for(;r.type!=="stack";)r.direction==="row"?(o.push("second"),r=r.second):r.direction==="column"&&(o.push("first"),r=r.first);return o};updateSplitSize=(n,r,o)=>{const s=this.buildSpecFromUpdateSpec(r,{$merge:{size:o}});return this.updateNode(n,s)}},he.JustLayoutService=Ng([oi.injectable()],he.JustLayoutService);var Pg=Object.getOwnPropertyDescriptor,Lg=(i,n,r,o)=>{for(var s=o>1?void 0:o?Pg(n,r):n,l=i.length-1,f;l>=0;l--)(f=i[l])&&(s=f(s)||s);return s},Mg=(i,n)=>(r,o)=>n(r,o,i);he.JustLayoutStore=class{service;layout=null;lastActiveId=null;lastActiveTm=new Date().getTime();fullScreenLayout=null;fullScreenHideTitle=!1;tabTitleMap=new Map;tabTitleTooltipMap=new Map;constructor(n){this.service=n,mr.makeAutoObservable(this,{service:!1},{autoBind:!0})}setLayout=n=>{this.layout=n};setTabTitle=(n,r)=>{this.tabTitleMap.set(ge.toString(n),r)};getTabTitle=n=>this.tabTitleMap.get(ge.toString(n));setTabTitleTooltip=(n,r)=>{this.tabTitleTooltipMap.set(ge.toString(n),r)};getTabTitleTooltip=n=>this.tabTitleTooltipMap.get(ge.toString(n));setFullScreenLayoutByBranch=n=>{n===null?this.fullScreenLayout=null:this.fullScreenLayout=this.service.getNodeAtBranch(this.layout,n)};setFullScreenHideTitle=n=>{this.fullScreenHideTitle=n};addTab=n=>{const r=this.service.getTabBranch(this.layout,[]);r!=null&&(this.service.hasWinId(this.layout,n.justId)?this.layout=this.service.activeWinId(this.layout,n.justId):this.layout=this.service.addTabWin(this.layout,r,n.justId,-1),this.lastActiveId=n.justId,this.lastActiveTm=new Date().getTime())};addTabByNodeName=n=>{const r=this.service.getTabNodeInfoByNodeName(this.layout,n.nodeName,[]);r!=null&&(this.service.hasWinId(this.layout,n.justId)?this.layout=this.service.activeWinId(this.layout,n.justId):this.layout=this.service.addTabWin(this.layout,r.branch,n.justId,-1),this.lastActiveId=n.justId,this.lastActiveTm=new Date().getTime())};queryWinIdsByViewId=n=>this.service.queryWinIdsByViewId(this.layout??null,n,[]);cloneTab=n=>{const r=this.service.getBranchByWinId(this.layout,n.justId);if(r==null)return;const o=this.service.getNodeAtBranch(this.layout,r);let s=0;o?.type==="stack"&&o.active!=null&&(s=ge.indexOf(o.tabs,n.justId)+1),this.layout=this.service.addTabWin(this.layout,r,n.cloneJustId,s),this.lastActiveId=n.cloneJustId,this.lastActiveTm=new Date().getTime()};removeWin=n=>{this.layout=this.service.removeEmpty(this.service.removeWinId(this.layout,n.justId))};removeAllTabs=n=>{this.layout=this.service.removeEmpty(this.service.removeAllTabs(this.layout,n.branch))};activeWin=n=>{this.layout=this.service.activeWinId(this.layout,n.justId),this.lastActiveId=n.justId,this.lastActiveTm=new Date().getTime()};activePrevWin=()=>{const n=this.lastActiveId;if(n==null)return;const r=this.service.getNodeByWinId(this.layout,n);if(r?.type!=="stack"||r.tabs.length===0)return;const s=(ge.indexOf(r.tabs,n)-1+r.tabs.length)%r.tabs.length,l=r.tabs[s];this.activeWin({justId:l})};activeNextWin=()=>{const n=this.lastActiveId;if(n==null)return;const r=this.service.getNodeByWinId(this.layout,n);if(r?.type!=="stack"||r.tabs.length===0)return;const s=(ge.indexOf(r.tabs,n)+1)%r.tabs.length,l=r.tabs[s];this.activeWin({justId:l})};updateResize=n=>{this.layout=this.service.updateSplitSize(this.layout,n.branch,n.size)};moveWin=n=>{n.pos==="stack"?this.layout=this.service.removeEmpty(this.service.moveWinIdToStack(this.layout,n)):this.layout=this.service.removeEmpty(this.service.moveWinIdToSplit(this.layout,n)),this.lastActiveId=n.justId,this.lastActiveTm=new Date().getTime()};toggleSideMenu=()=>{if(this.layout===null||this.layout.type!=="split-pixels")return;const n=this.layout.size<=0?this.layout.primaryDefaultSize:0;this.updateResize({branch:[],size:n})};toggleWin=({nodeName:n})=>{const r=this.layout,o=this.service.getNodeInfoByNodeName(r,n,[]);if(o==null||o.node.type!=="split-pixels")return;const s=o.node.primaryHide!==!0,l=!s||o.node.size<10?o.node.primaryDefaultSize:0,f=this.service.buildSpecFromUpdateSpec(o.branch,{$merge:{size:l,primaryHide:s}}),d=this.service.updateNode(r,f);d!=null&&this.setLayout(d)};showWin=({nodeName:n,show:r})=>{const o=this.layout,s=this.service.getNodeInfoByNodeName(o,n,[]);if(s!=null&&s.node.type==="split-pixels"&&r===(s.node.size===0)){const l=r?s.node.primaryDefaultSize:0,f=this.service.buildSpecFromUpdateSpec(s.branch,{$merge:{size:l}}),d=this.service.updateNode(o,f);if(d==null)return;this.setLayout(d)}};getSizeByNodeName=({nodeName:n})=>{const r=this.layout,o=this.service.getNodeInfoByNodeName(r,n,[]);if(o!=null)return o.node.type==="split-pixels"||o.node.type==="split-percentage"?o.node.size:null};getBranchByJustId=({justId:n})=>{const r=this.layout;return this.service.getBranchByWinId(r,n)};isPrimaryHide=({nodeName:n})=>{const r=this.layout,o=this.service.getNodeInfoByNodeName(r,n,[]);if(o!=null)return o.node.type==="split-pixels"?o.node.primaryHide:null};openWin=({justId:n})=>{this.service.hasWinId(this.layout??null,n)?this.activeWin({justId:n}):this.addTab({justId:n})};openWinByNodeName=({justId:n,nodeName:r})=>{this.service.hasWinId(this.layout??null,n)?(console.log("hasWinId",n),this.activeWin({justId:n})):(console.log("addTabByNodeName",n),this.addTabByNodeName({justId:n,nodeName:r}))};getWinIds=({viewId:n})=>this.service.queryWinIdsByViewId(this.layout??null,n,[]);getDupWinIds=({justId:n})=>this.service.queryDupWinIdsByWinId(this.layout??null,n,[]);getWinIdsByBranch=({branch:n})=>this.service.queryWinIdsByStack(this.layout??null,n);getNodeAtBranch=({branch:n})=>this.service.getNodeAtBranch(this.layout??null,n);openWinMenu=({justId:n,nodeName:r})=>{const o=n.viewId,s=this.getWinIds({viewId:o});if(s.length===0)console.log("openWinMenu1",s,n),this.openWinByNodeName({justId:n,nodeName:r});else{const l=s.toSorted((f,d)=>(f.dupId??"")<=(d.dupId??"")?-1:1).at(-1);l&&(console.log("openWinMenu2",s,l),this.openWinByNodeName({justId:l,nodeName:r}))}};fullScreenWin=async(n,r,o=!1)=>{r?this.setLayout(null):(this.setFullScreenLayoutByBranch(n),this.setFullScreenHideTitle(o))}},he.JustLayoutStore=Lg([oi.injectable(),Mg(0,oi.inject(Wt.JustLayoutService))],he.JustLayoutStore);const kg=new oi.ContainerModule(({bind:i})=>{i(Wt.JustLayoutService).to(he.JustLayoutService).inSingletonScope(),i(Wt.JustLayoutStore).to(he.JustLayoutStore).inTransientScope(),i(Wt.JustLayoutStoreCacheMap).toConstantValue(new Map),i(Wt.JustLayoutFactory).toFactory(n=>{const r=n.get(Wt.JustLayoutStoreCacheMap);return o=>{if(!r.has(o)){const s=n.get(Wt.JustLayoutStore);r.set(o,s)}return r.get(o)}})}),Lt=i=>{const n=Tg.useInjection(Wt.JustLayoutFactory),[r]=A.useState(()=>n(i));return r},ku=A.createContext({dragDropManager:void 0});function dt(i){return"Minified Redux error #"+i+"; visit https://redux.js.org/Errors?code="+i+" for the full message or use the non-minified dev environment for full errors. "}var Fu=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})(),Ru=function(){return Math.random().toString(36).substring(7).split("").join(".")},Wu={INIT:"@@redux/INIT"+Ru(),REPLACE:"@@redux/REPLACE"+Ru()};function Fg(i){if(typeof i!="object"||i===null)return!1;for(var n=i;Object.getPrototypeOf(n)!==null;)n=Object.getPrototypeOf(n);return Object.getPrototypeOf(i)===n}function Rg(i){if(i===void 0)return"undefined";if(i===null)return"null";var n=typeof i;switch(n){case"boolean":case"string":case"number":case"symbol":case"function":return n}if(Array.isArray(i))return"array";if($g(i))return"date";if(Bg(i))return"error";var r=Wg(i);switch(r){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return r}return n.slice(8,-1).toLowerCase().replace(/\s/g,"")}function Wg(i){return typeof i.constructor=="function"?i.constructor.name:null}function Bg(i){return i instanceof Error||typeof i.message=="string"&&i.constructor&&typeof i.constructor.stackTraceLimit=="number"}function $g(i){return i instanceof Date?!0:typeof i.toDateString=="function"&&typeof i.getDate=="function"&&typeof i.setDate=="function"}function $n(i){var n=typeof i;return process.env.NODE_ENV!=="production"&&(n=Rg(i)),n}function Bu(i,n,r){var o;if(typeof n=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?dt(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof n=="function"&&typeof r>"u"&&(r=n,n=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(process.env.NODE_ENV==="production"?dt(1):"Expected the enhancer to be a function. Instead, received: '"+$n(r)+"'");return r(Bu)(i,n)}if(typeof i!="function")throw new Error(process.env.NODE_ENV==="production"?dt(2):"Expected the root reducer to be a function. Instead, received: '"+$n(i)+"'");var s=i,l=n,f=[],d=f,p=!1;function m(){d===f&&(d=f.slice())}function S(){if(p)throw new Error(process.env.NODE_ENV==="production"?dt(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return l}function w(_){if(typeof _!="function")throw new Error(process.env.NODE_ENV==="production"?dt(4):"Expected the listener to be a function. Instead, received: '"+$n(_)+"'");if(p)throw new Error(process.env.NODE_ENV==="production"?dt(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");var I=!0;return m(),d.push(_),function(){if(I){if(p)throw new Error(process.env.NODE_ENV==="production"?dt(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");I=!1,m();var F=d.indexOf(_);d.splice(F,1),f=null}}}function O(_){if(!Fg(_))throw new Error(process.env.NODE_ENV==="production"?dt(7):"Actions must be plain objects. Instead, the actual type was: '"+$n(_)+"'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.");if(typeof _.type>"u")throw new Error(process.env.NODE_ENV==="production"?dt(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(p)throw new Error(process.env.NODE_ENV==="production"?dt(9):"Reducers may not dispatch actions.");try{p=!0,l=s(l,_)}finally{p=!1}for(var I=f=d,C=0;C<I.length;C++){var F=I[C];F()}return _}function y(_){if(typeof _!="function")throw new Error(process.env.NODE_ENV==="production"?dt(10):"Expected the nextReducer to be a function. Instead, received: '"+$n(_));s=_,O({type:Wu.REPLACE})}function E(){var _,I=w;return _={subscribe:function(F){if(typeof F!="object"||F===null)throw new Error(process.env.NODE_ENV==="production"?dt(11):"Expected the observer to be an object. Instead, received: '"+$n(F)+"'");function U(){F.next&&F.next(S())}U();var V=I(U);return{unsubscribe:V}}},_[Fu]=function(){return this},_}return O({type:Wu.INIT}),o={dispatch:O,subscribe:w,getState:S,replaceReducer:y},o[Fu]=E,o}function ne(i,n,...r){if(Ug()&&n===void 0)throw new Error("invariant requires an error message argument");if(!i){let o;if(n===void 0)o=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{let s=0;o=new Error(n.replace(/%s/g,function(){return r[s++]})),o.name="Invariant Violation"}throw o.framesToPop=1,o}}function Ug(){return typeof process<"u"&&process.env.NODE_ENV==="production"}function Hg(i,n,r){return n.split(".").reduce((o,s)=>o&&o[s]?o[s]:r||null,i)}function zg(i,n){return i.filter(r=>r!==n)}function $u(i){return typeof i=="object"}function jg(i,n){const r=new Map,o=l=>{r.set(l,r.has(l)?r.get(l)+1:1)};i.forEach(o),n.forEach(o);const s=[];return r.forEach((l,f)=>{l===1&&s.push(f)}),s}function qg(i,n){return i.filter(r=>n.indexOf(r)>-1)}const Pa="dnd-core/INIT_COORDS",ui="dnd-core/BEGIN_DRAG",La="dnd-core/PUBLISH_DRAG_SOURCE",li="dnd-core/HOVER",fi="dnd-core/DROP",ci="dnd-core/END_DRAG";function Uu(i,n){return{type:Pa,payload:{sourceClientOffset:n||null,clientOffset:i||null}}}const Gg={type:Pa,payload:{clientOffset:null,sourceClientOffset:null}};function Yg(i){return function(r=[],o={publishSource:!0}){const{publishSource:s=!0,clientOffset:l,getSourceClientOffset:f}=o,d=i.getMonitor(),p=i.getRegistry();i.dispatch(Uu(l)),Jg(r,d,p);const m=Kg(r,d);if(m==null){i.dispatch(Gg);return}let S=null;if(l){if(!f)throw new Error("getSourceClientOffset must be defined");Vg(f),S=f(m)}i.dispatch(Uu(l,S));const O=p.getSource(m).beginDrag(d,m);if(O==null)return;Xg(O),p.pinSource(m);const y=p.getSourceType(m);return{type:ui,payload:{itemType:y,item:O,sourceId:m,clientOffset:l||null,sourceClientOffset:S||null,isSourcePublic:!!s}}}}function Jg(i,n,r){ne(!n.isDragging(),"Cannot call beginDrag while dragging."),i.forEach(function(o){ne(r.getSource(o),"Expected sourceIds to be registered.")})}function Vg(i){ne(typeof i=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function Xg(i){ne($u(i),"Item must be an object.")}function Kg(i,n){let r=null;for(let o=i.length-1;o>=0;o--)if(n.canDragSource(i[o])){r=i[o];break}return r}function Zg(i,n,r){return n in i?Object.defineProperty(i,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):i[n]=r,i}function Qg(i){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{},o=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(r).filter(function(s){return Object.getOwnPropertyDescriptor(r,s).enumerable}))),o.forEach(function(s){Zg(i,s,r[s])})}return i}function ep(i){return function(r={}){const o=i.getMonitor(),s=i.getRegistry();tp(o),ip(o).forEach((f,d)=>{const p=np(f,d,s,o),m={type:fi,payload:{dropResult:Qg({},r,p)}};i.dispatch(m)})}}function tp(i){ne(i.isDragging(),"Cannot call drop while not dragging."),ne(!i.didDrop(),"Cannot call drop twice during one drag operation.")}function np(i,n,r,o){const s=r.getTarget(i);let l=s?s.drop(o,i):void 0;return rp(l),typeof l>"u"&&(l=n===0?{}:o.getDropResult()),l}function rp(i){ne(typeof i>"u"||$u(i),"Drop result must either be an object or undefined.")}function ip(i){const n=i.getTargetIds().filter(i.canDropOnTarget,i);return n.reverse(),n}function ap(i){return function(){const r=i.getMonitor(),o=i.getRegistry();op(r);const s=r.getSourceId();return s!=null&&(o.getSource(s,!0).endDrag(r,s),o.unpinSource()),{type:ci}}}function op(i){ne(i.isDragging(),"Cannot call endDrag while not dragging.")}function Ma(i,n){return n===null?i===null:Array.isArray(i)?i.some(r=>r===n):i===n}function sp(i){return function(r,{clientOffset:o}={}){up(r);const s=r.slice(0),l=i.getMonitor(),f=i.getRegistry(),d=l.getItemType();return fp(s,f,d),lp(s,l,f),cp(s,l,f),{type:li,payload:{targetIds:s,clientOffset:o||null}}}}function up(i){ne(Array.isArray(i),"Expected targetIds to be an array.")}function lp(i,n,r){ne(n.isDragging(),"Cannot call hover while not dragging."),ne(!n.didDrop(),"Cannot call hover after drop.");for(let o=0;o<i.length;o++){const s=i[o];ne(i.lastIndexOf(s)===o,"Expected targetIds to be unique in the passed array.");const l=r.getTarget(s);ne(l,"Expected targetIds to be registered.")}}function fp(i,n,r){for(let o=i.length-1;o>=0;o--){const s=i[o],l=n.getTargetType(s);Ma(l,r)||i.splice(o,1)}}function cp(i,n,r){i.forEach(function(o){r.getTarget(o).hover(n,o)})}function dp(i){return function(){if(i.getMonitor().isDragging())return{type:La}}}function hp(i){return{beginDrag:Yg(i),publishDragSource:dp(i),hover:sp(i),drop:ep(i),endDrag:ap(i)}}class gp{receiveBackend(n){this.backend=n}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const n=this,{dispatch:r}=this.store;function o(l){return(...f)=>{const d=l.apply(n,f);typeof d<"u"&&r(d)}}const s=hp(this);return Object.keys(s).reduce((l,f)=>{const d=s[f];return l[f]=o(d),l},{})}dispatch(n){this.store.dispatch(n)}constructor(n,r){this.isSetUp=!1,this.handleRefCountChange=()=>{const o=this.store.getState().refCount>0;this.backend&&(o&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!o&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=n,this.monitor=r,n.subscribe(this.handleRefCountChange)}}function pp(i,n){return{x:i.x+n.x,y:i.y+n.y}}function Hu(i,n){return{x:i.x-n.x,y:i.y-n.y}}function vp(i){const{clientOffset:n,initialClientOffset:r,initialSourceClientOffset:o}=i;return!n||!r||!o?null:Hu(pp(n,o),r)}function mp(i){const{clientOffset:n,initialClientOffset:r}=i;return!n||!r?null:Hu(n,r)}const wr=[],ka=[];wr.__IS_NONE__=!0,ka.__IS_ALL__=!0;function yp(i,n){return i===wr?!1:i===ka||typeof n>"u"?!0:qg(n,i).length>0}class bp{subscribeToStateChange(n,r={}){const{handlerIds:o}=r;ne(typeof n=="function","listener must be a function."),ne(typeof o>"u"||Array.isArray(o),"handlerIds, when specified, must be an array of strings.");let s=this.store.getState().stateId;const l=()=>{const f=this.store.getState(),d=f.stateId;try{d===s||d===s+1&&!yp(f.dirtyHandlerIds,o)||n()}finally{s=d}};return this.store.subscribe(l)}subscribeToOffsetChange(n){ne(typeof n=="function","listener must be a function.");let r=this.store.getState().dragOffset;const o=()=>{const s=this.store.getState().dragOffset;s!==r&&(r=s,n())};return this.store.subscribe(o)}canDragSource(n){if(!n)return!1;const r=this.registry.getSource(n);return ne(r,`Expected to find a valid source. sourceId=${n}`),this.isDragging()?!1:r.canDrag(this,n)}canDropOnTarget(n){if(!n)return!1;const r=this.registry.getTarget(n);if(ne(r,`Expected to find a valid target. targetId=${n}`),!this.isDragging()||this.didDrop())return!1;const o=this.registry.getTargetType(n),s=this.getItemType();return Ma(o,s)&&r.canDrop(this,n)}isDragging(){return!!this.getItemType()}isDraggingSource(n){if(!n)return!1;const r=this.registry.getSource(n,!0);if(ne(r,`Expected to find a valid source. sourceId=${n}`),!this.isDragging()||!this.isSourcePublic())return!1;const o=this.registry.getSourceType(n),s=this.getItemType();return o!==s?!1:r.isDragging(this,n)}isOverTarget(n,r={shallow:!1}){if(!n)return!1;const{shallow:o}=r;if(!this.isDragging())return!1;const s=this.registry.getTargetType(n),l=this.getItemType();if(l&&!Ma(s,l))return!1;const f=this.getTargetIds();if(!f.length)return!1;const d=f.indexOf(n);return o?d===f.length-1:d>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return!!this.store.getState().dragOperation.isSourcePublic}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return vp(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return mp(this.store.getState().dragOffset)}constructor(n,r){this.store=n,this.registry=r}}const zu=typeof global<"u"?global:self,ju=zu.MutationObserver||zu.WebKitMutationObserver;function qu(i){return function(){const r=setTimeout(s,0),o=setInterval(s,50);function s(){clearTimeout(r),clearInterval(o),i()}}}function Sp(i){let n=1;const r=new ju(i),o=document.createTextNode("");return r.observe(o,{characterData:!0}),function(){n=-n,o.data=n}}const wp=typeof ju=="function"?Sp:qu;class _p{enqueueTask(n){const{queue:r,requestFlush:o}=this;r.length||(o(),this.flushing=!0),r[r.length]=n}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:n}=this;for(;this.index<n.length;){const r=this.index;if(this.index++,n[r].call(),this.index>this.capacity){for(let o=0,s=n.length-this.index;o<s;o++)n[o]=n[o+this.index];n.length-=this.index,this.index=0}}n.length=0,this.index=0,this.flushing=!1},this.registerPendingError=n=>{this.pendingErrors.push(n),this.requestErrorThrow()},this.requestFlush=wp(this.flush),this.requestErrorThrow=qu(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}class Ep{call(){try{this.task&&this.task()}catch(n){this.onError(n)}finally{this.task=null,this.release(this)}}constructor(n,r){this.onError=n,this.release=r,this.task=null}}class Tp{create(n){const r=this.freeTasks,o=r.length?r.pop():new Ep(this.onError,s=>r[r.length]=s);return o.task=n,o}constructor(n){this.onError=n,this.freeTasks=[]}}const Gu=new _p,xp=new Tp(Gu.registerPendingError);function Ip(i){Gu.enqueueTask(xp.create(i))}const Fa="dnd-core/ADD_SOURCE",Ra="dnd-core/ADD_TARGET",Wa="dnd-core/REMOVE_SOURCE",di="dnd-core/REMOVE_TARGET";function Op(i){return{type:Fa,payload:{sourceId:i}}}function Dp(i){return{type:Ra,payload:{targetId:i}}}function Ap(i){return{type:Wa,payload:{sourceId:i}}}function Cp(i){return{type:di,payload:{targetId:i}}}function Np(i){ne(typeof i.canDrag=="function","Expected canDrag to be a function."),ne(typeof i.beginDrag=="function","Expected beginDrag to be a function."),ne(typeof i.endDrag=="function","Expected endDrag to be a function.")}function Pp(i){ne(typeof i.canDrop=="function","Expected canDrop to be a function."),ne(typeof i.hover=="function","Expected hover to be a function."),ne(typeof i.drop=="function","Expected beginDrag to be a function.")}function Ba(i,n){if(n&&Array.isArray(i)){i.forEach(r=>Ba(r,!1));return}ne(typeof i=="string"||typeof i=="symbol",n?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}var ht;(function(i){i.SOURCE="SOURCE",i.TARGET="TARGET"})(ht||(ht={}));let Lp=0;function Mp(){return Lp++}function kp(i){const n=Mp().toString();switch(i){case ht.SOURCE:return`S${n}`;case ht.TARGET:return`T${n}`;default:throw new Error(`Unknown Handler Role: ${i}`)}}function Yu(i){switch(i[0]){case"S":return ht.SOURCE;case"T":return ht.TARGET;default:throw new Error(`Cannot parse handler ID: ${i}`)}}function Ju(i,n){const r=i.entries();let o=!1;do{const{done:s,value:[,l]}=r.next();if(l===n)return!0;o=!!s}while(!o);return!1}class Fp{addSource(n,r){Ba(n),Np(r);const o=this.addHandler(ht.SOURCE,n,r);return this.store.dispatch(Op(o)),o}addTarget(n,r){Ba(n,!0),Pp(r);const o=this.addHandler(ht.TARGET,n,r);return this.store.dispatch(Dp(o)),o}containsHandler(n){return Ju(this.dragSources,n)||Ju(this.dropTargets,n)}getSource(n,r=!1){return ne(this.isSourceId(n),"Expected a valid source ID."),r&&n===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(n)}getTarget(n){return ne(this.isTargetId(n),"Expected a valid target ID."),this.dropTargets.get(n)}getSourceType(n){return ne(this.isSourceId(n),"Expected a valid source ID."),this.types.get(n)}getTargetType(n){return ne(this.isTargetId(n),"Expected a valid target ID."),this.types.get(n)}isSourceId(n){return Yu(n)===ht.SOURCE}isTargetId(n){return Yu(n)===ht.TARGET}removeSource(n){ne(this.getSource(n),"Expected an existing source."),this.store.dispatch(Ap(n)),Ip(()=>{this.dragSources.delete(n),this.types.delete(n)})}removeTarget(n){ne(this.getTarget(n),"Expected an existing target."),this.store.dispatch(Cp(n)),this.dropTargets.delete(n),this.types.delete(n)}pinSource(n){const r=this.getSource(n);ne(r,"Expected an existing source."),this.pinnedSourceId=n,this.pinnedSource=r}unpinSource(){ne(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(n,r,o){const s=kp(n);return this.types.set(s,r),n===ht.SOURCE?this.dragSources.set(s,o):n===ht.TARGET&&this.dropTargets.set(s,o),s}constructor(n){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=n}}const Rp=(i,n)=>i===n;function Wp(i,n){return!i&&!n?!0:!i||!n?!1:i.x===n.x&&i.y===n.y}function Bp(i,n,r=Rp){if(i.length!==n.length)return!1;for(let o=0;o<i.length;++o)if(!r(i[o],n[o]))return!1;return!0}function $p(i=wr,n){switch(n.type){case li:break;case Fa:case Ra:case di:case Wa:return wr;case ui:case La:case ci:case fi:default:return ka}const{targetIds:r=[],prevTargetIds:o=[]}=n.payload,s=jg(r,o);if(!(s.length>0||!Bp(r,o)))return wr;const f=o[o.length-1],d=r[r.length-1];return f!==d&&(f&&s.push(f),d&&s.push(d)),s}function Up(i,n,r){return n in i?Object.defineProperty(i,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):i[n]=r,i}function Hp(i){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{},o=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(r).filter(function(s){return Object.getOwnPropertyDescriptor(r,s).enumerable}))),o.forEach(function(s){Up(i,s,r[s])})}return i}const Vu={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function zp(i=Vu,n){const{payload:r}=n;switch(n.type){case Pa:case ui:return{initialSourceClientOffset:r.sourceClientOffset,initialClientOffset:r.clientOffset,clientOffset:r.clientOffset};case li:return Wp(i.clientOffset,r.clientOffset)?i:Hp({},i,{clientOffset:r.clientOffset});case ci:case fi:return Vu;default:return i}}function jp(i,n,r){return n in i?Object.defineProperty(i,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):i[n]=r,i}function Un(i){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{},o=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(r).filter(function(s){return Object.getOwnPropertyDescriptor(r,s).enumerable}))),o.forEach(function(s){jp(i,s,r[s])})}return i}const qp={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function Gp(i=qp,n){const{payload:r}=n;switch(n.type){case ui:return Un({},i,{itemType:r.itemType,item:r.item,sourceId:r.sourceId,isSourcePublic:r.isSourcePublic,dropResult:null,didDrop:!1});case La:return Un({},i,{isSourcePublic:!0});case li:return Un({},i,{targetIds:r.targetIds});case di:return i.targetIds.indexOf(r.targetId)===-1?i:Un({},i,{targetIds:zg(i.targetIds,r.targetId)});case fi:return Un({},i,{dropResult:r.dropResult,didDrop:!0,targetIds:[]});case ci:return Un({},i,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return i}}function Yp(i=0,n){switch(n.type){case Fa:case Ra:return i+1;case Wa:case di:return i-1;default:return i}}function Jp(i=0){return i+1}function Vp(i,n,r){return n in i?Object.defineProperty(i,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):i[n]=r,i}function Xp(i){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{},o=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(r).filter(function(s){return Object.getOwnPropertyDescriptor(r,s).enumerable}))),o.forEach(function(s){Vp(i,s,r[s])})}return i}function Kp(i={},n){return{dirtyHandlerIds:$p(i.dirtyHandlerIds,{type:n.type,payload:Xp({},n.payload,{prevTargetIds:Hg(i,"dragOperation.targetIds",[])})}),dragOffset:zp(i.dragOffset,n),refCount:Yp(i.refCount,n),dragOperation:Gp(i.dragOperation,n),stateId:Jp(i.stateId)}}function Zp(i,n=void 0,r={},o=!1){const s=Qp(o),l=new bp(s,new Fp(s)),f=new gp(s,l),d=i(f,n,r);return f.receiveBackend(d),f}function Qp(i){const n=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__;return Bu(Kp,i&&n&&n({name:"dnd-core",instanceId:"dnd-core"}))}function ev(i,n){if(i==null)return{};var r=tv(i,n),o,s;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(i);for(s=0;s<l.length;s++)o=l[s],!(n.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(i,o)&&(r[o]=i[o])}return r}function tv(i,n){if(i==null)return{};var r={},o=Object.keys(i),s,l;for(l=0;l<o.length;l++)s=o[l],!(n.indexOf(s)>=0)&&(r[s]=i[s]);return r}let Xu=0;const hi=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var nv=A.memo(function(n){var{children:r}=n,o=ev(n,["children"]);const[s,l]=rv(o);return A.useEffect(()=>{if(l){const f=Ku();return++Xu,()=>{--Xu===0&&(f[hi]=null)}}},[]),$.jsx(ku.Provider,{value:s,children:r})});function rv(i){if("manager"in i)return[{dragDropManager:i.manager},!1];const n=iv(i.backend,i.context,i.options,i.debugMode),r=!i.context;return[n,r]}function iv(i,n=Ku(),r,o){const s=n;return s[hi]||(s[hi]={dragDropManager:Zp(i,n,r,o)}),s[hi]}function Ku(){return typeof global<"u"?global:window}var $a,Zu;function av(){return Zu||(Zu=1,$a=function i(n,r){if(n===r)return!0;if(n&&r&&typeof n=="object"&&typeof r=="object"){if(n.constructor!==r.constructor)return!1;var o,s,l;if(Array.isArray(n)){if(o=n.length,o!=r.length)return!1;for(s=o;s--!==0;)if(!i(n[s],r[s]))return!1;return!0}if(n.constructor===RegExp)return n.source===r.source&&n.flags===r.flags;if(n.valueOf!==Object.prototype.valueOf)return n.valueOf()===r.valueOf();if(n.toString!==Object.prototype.toString)return n.toString()===r.toString();if(l=Object.keys(n),o=l.length,o!==Object.keys(r).length)return!1;for(s=o;s--!==0;)if(!Object.prototype.hasOwnProperty.call(r,l[s]))return!1;for(s=o;s--!==0;){var f=l[s];if(!i(n[f],r[f]))return!1}return!0}return n!==n&&r!==r}),$a}var ov=av();const sv=br(ov),bn=typeof window<"u"?A.useLayoutEffect:A.useEffect;function uv(i,n,r){const[o,s]=A.useState(()=>n(i)),l=A.useCallback(()=>{const f=n(i);sv(o,f)||(s(f),r&&r())},[o,i,r]);return bn(l),[o,l]}function lv(i,n,r){const[o,s]=uv(i,n,r);return bn(function(){const f=i.getHandlerId();if(f!=null)return i.subscribeToStateChange(s,{handlerIds:[f]})},[i,s]),o}function Qu(i,n,r){return lv(n,i||(()=>({})),()=>r.reconnect())}function el(i,n){const r=[...n||[]];return n==null&&typeof i!="function"&&r.push(i),A.useMemo(()=>typeof i=="function"?i():i,r)}function fv(i){return A.useMemo(()=>i.hooks.dragSource(),[i])}function cv(i){return A.useMemo(()=>i.hooks.dragPreview(),[i])}let Ua=!1,Ha=!1;class dv{receiveHandlerId(n){this.sourceId=n}getHandlerId(){return this.sourceId}canDrag(){ne(!Ua,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return Ua=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{Ua=!1}}isDragging(){if(!this.sourceId)return!1;ne(!Ha,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return Ha=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{Ha=!1}}subscribeToStateChange(n,r){return this.internalMonitor.subscribeToStateChange(n,r)}isDraggingSource(n){return this.internalMonitor.isDraggingSource(n)}isOverTarget(n,r){return this.internalMonitor.isOverTarget(n,r)}getTargetIds(){return this.internalMonitor.getTargetIds()}isSourcePublic(){return this.internalMonitor.isSourcePublic()}getSourceId(){return this.internalMonitor.getSourceId()}subscribeToOffsetChange(n){return this.internalMonitor.subscribeToOffsetChange(n)}canDragSource(n){return this.internalMonitor.canDragSource(n)}canDropOnTarget(n){return this.internalMonitor.canDropOnTarget(n)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(n){this.sourceId=null,this.internalMonitor=n.getMonitor()}}let za=!1;class hv{receiveHandlerId(n){this.targetId=n}getHandlerId(){return this.targetId}subscribeToStateChange(n,r){return this.internalMonitor.subscribeToStateChange(n,r)}canDrop(){if(!this.targetId)return!1;ne(!za,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return za=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{za=!1}}isOver(n){return this.targetId?this.internalMonitor.isOverTarget(this.targetId,n):!1}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(n){this.targetId=null,this.internalMonitor=n.getMonitor()}}function gv(i,n,r){const o=r.getRegistry(),s=o.addTarget(i,n);return[s,()=>o.removeTarget(s)]}function pv(i,n,r){const o=r.getRegistry(),s=o.addSource(i,n);return[s,()=>o.removeSource(s)]}function ja(i,n,r,o){let s;if(s!==void 0)return!!s;if(i===n)return!0;if(typeof i!="object"||!i||typeof n!="object"||!n)return!1;const l=Object.keys(i),f=Object.keys(n);if(l.length!==f.length)return!1;const d=Object.prototype.hasOwnProperty.bind(n);for(let p=0;p<l.length;p++){const m=l[p];if(!d(m))return!1;const S=i[m],w=n[m];if(s=void 0,s===!1||s===void 0&&S!==w)return!1}return!0}function qa(i){return i!==null&&typeof i=="object"&&Object.prototype.hasOwnProperty.call(i,"current")}function vv(i){if(typeof i.type=="string")return;const n=i.type.displayName||i.type.name||"the component";throw new Error(`Only native element nodes can now be passed to React DnD connectors.You can either wrap ${n} into a <div>, or turn it into a drag source or a drop target itself.`)}function mv(i){return(n=null,r=null)=>{if(!A.isValidElement(n)){const l=n;return i(l,r),l}const o=n;return vv(o),yv(o,r?l=>i(l,r):i)}}function tl(i){const n={};return Object.keys(i).forEach(r=>{const o=i[r];if(r.endsWith("Ref"))n[r]=i[r];else{const s=mv(o);n[r]=()=>s}}),n}function nl(i,n){typeof i=="function"?i(n):i.current=n}function yv(i,n){const r=i.ref;return ne(typeof r!="string","Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),r?A.cloneElement(i,{ref:o=>{nl(r,o),nl(n,o)}}):A.cloneElement(i,{ref:n})}class bv{receiveHandlerId(n){this.handlerId!==n&&(this.handlerId=n,this.reconnect())}get connectTarget(){return this.dragSource}get dragSourceOptions(){return this.dragSourceOptionsInternal}set dragSourceOptions(n){this.dragSourceOptionsInternal=n}get dragPreviewOptions(){return this.dragPreviewOptionsInternal}set dragPreviewOptions(n){this.dragPreviewOptionsInternal=n}reconnect(){const n=this.reconnectDragSource();this.reconnectDragPreview(n)}reconnectDragSource(){const n=this.dragSource,r=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return r&&this.disconnectDragSource(),this.handlerId?n?(r&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=n,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,n,this.dragSourceOptions)),r):(this.lastConnectedDragSource=n,r):r}reconnectDragPreview(n=!1){const r=this.dragPreview,o=n||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();if(o&&this.disconnectDragPreview(),!!this.handlerId){if(!r){this.lastConnectedDragPreview=r;return}o&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=r,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,r,this.dragPreviewOptions))}}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didConnectedDragSourceChange(){return this.lastConnectedDragSource!==this.dragSource}didConnectedDragPreviewChange(){return this.lastConnectedDragPreview!==this.dragPreview}didDragSourceOptionsChange(){return!ja(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!ja(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}disconnectDragSource(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}disconnectDragPreview(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}get dragSource(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}get dragPreview(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}clearDragSource(){this.dragSourceNode=null,this.dragSourceRef=null}clearDragPreview(){this.dragPreviewNode=null,this.dragPreviewRef=null}constructor(n){this.hooks=tl({dragSource:(r,o)=>{this.clearDragSource(),this.dragSourceOptions=o||null,qa(r)?this.dragSourceRef=r:this.dragSourceNode=r,this.reconnectDragSource()},dragPreview:(r,o)=>{this.clearDragPreview(),this.dragPreviewOptions=o||null,qa(r)?this.dragPreviewRef=r:this.dragPreviewNode=r,this.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=n}}class Sv{get connectTarget(){return this.dropTarget}reconnect(){const n=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();n&&this.disconnectDropTarget();const r=this.dropTarget;if(this.handlerId){if(!r){this.lastConnectedDropTarget=r;return}n&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=r,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,r,this.dropTargetOptions))}}receiveHandlerId(n){n!==this.handlerId&&(this.handlerId=n,this.reconnect())}get dropTargetOptions(){return this.dropTargetOptionsInternal}set dropTargetOptions(n){this.dropTargetOptionsInternal=n}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didDropTargetChange(){return this.lastConnectedDropTarget!==this.dropTarget}didOptionsChange(){return!ja(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}disconnectDropTarget(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}get dropTarget(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}clearDropTarget(){this.dropTargetRef=null,this.dropTargetNode=null}constructor(n){this.hooks=tl({dropTarget:(r,o)=>{this.clearDropTarget(),this.dropTargetOptions=o,qa(r)?this.dropTargetRef=r:this.dropTargetNode=r,this.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=n}}function Hn(){const{dragDropManager:i}=A.useContext(ku);return ne(i!=null,"Expected drag drop context"),i}function wv(i,n){const r=Hn(),o=A.useMemo(()=>new bv(r.getBackend()),[r]);return bn(()=>(o.dragSourceOptions=i||null,o.reconnect(),()=>o.disconnectDragSource()),[o,i]),bn(()=>(o.dragPreviewOptions=n||null,o.reconnect(),()=>o.disconnectDragPreview()),[o,n]),o}function _v(){const i=Hn();return A.useMemo(()=>new dv(i),[i])}class Ev{beginDrag(){const n=this.spec,r=this.monitor;let o=null;return typeof n.item=="object"?o=n.item:typeof n.item=="function"?o=n.item(r):o={},o??null}canDrag(){const n=this.spec,r=this.monitor;return typeof n.canDrag=="boolean"?n.canDrag:typeof n.canDrag=="function"?n.canDrag(r):!0}isDragging(n,r){const o=this.spec,s=this.monitor,{isDragging:l}=o;return l?l(s):r===n.getSourceId()}endDrag(){const n=this.spec,r=this.monitor,o=this.connector,{end:s}=n;s&&s(r.getItem(),r),o.reconnect()}constructor(n,r,o){this.spec=n,this.monitor=r,this.connector=o}}function Tv(i,n,r){const o=A.useMemo(()=>new Ev(i,n,r),[n,r]);return A.useEffect(()=>{o.spec=i},[i]),o}function xv(i){return A.useMemo(()=>{const n=i.type;return ne(n!=null,"spec.type must be defined"),n},[i])}function Iv(i,n,r){const o=Hn(),s=Tv(i,n,r),l=xv(i);bn(function(){if(l!=null){const[d,p]=pv(l,s,o);return n.receiveHandlerId(d),r.receiveHandlerId(d),p}},[o,n,r,s,l])}function Ov(i,n){const r=el(i,n);ne(!r.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");const o=_v(),s=wv(r.options,r.previewOptions);return Iv(r,o,s),[Qu(r.collect,o,s),fv(s),cv(s)]}function Dv(i){return A.useMemo(()=>i.hooks.dropTarget(),[i])}function Av(i){const n=Hn(),r=A.useMemo(()=>new Sv(n.getBackend()),[n]);return bn(()=>(r.dropTargetOptions=i||null,r.reconnect(),()=>r.disconnectDropTarget()),[i]),r}function Cv(){const i=Hn();return A.useMemo(()=>new hv(i),[i])}function Nv(i){const{accept:n}=i;return A.useMemo(()=>(ne(i.accept!=null,"accept must be defined"),Array.isArray(n)?n:[n]),[n])}class Pv{canDrop(){const n=this.spec,r=this.monitor;return n.canDrop?n.canDrop(r.getItem(),r):!0}hover(){const n=this.spec,r=this.monitor;n.hover&&n.hover(r.getItem(),r)}drop(){const n=this.spec,r=this.monitor;if(n.drop)return n.drop(r.getItem(),r)}constructor(n,r){this.spec=n,this.monitor=r}}function Lv(i,n){const r=A.useMemo(()=>new Pv(i,n),[n]);return A.useEffect(()=>{r.spec=i},[i]),r}function Mv(i,n,r){const o=Hn(),s=Lv(i,n),l=Nv(i);bn(function(){const[d,p]=gv(l,s,o);return n.receiveHandlerId(d),r.receiveHandlerId(d),p},[o,n,s,r,l.map(f=>f.toString()).join("|")])}function Ga(i,n){const r=el(i,n),o=Cv(),s=Av(r.options);return Mv(r,o,s),[Qu(r.collect,o,s),Dv(s)]}var Ya={exports:{}};var rl;function kv(){return rl||(rl=1,(function(i){(function(){var n={}.hasOwnProperty;function r(){for(var l="",f=0;f<arguments.length;f++){var d=arguments[f];d&&(l=s(l,o(d)))}return l}function o(l){if(typeof l=="string"||typeof l=="number")return l;if(typeof l!="object")return"";if(Array.isArray(l))return r.apply(null,l);if(l.toString!==Object.prototype.toString&&!l.toString.toString().includes("[native code]"))return l.toString();var f="";for(var d in l)n.call(l,d)&&l[d]&&(f=s(f,d));return f}function s(l,f){return f?l?l+" "+f:l+f:l}i.exports?(r.default=r,i.exports=r):window.classNames=r})()})(Ya)),Ya.exports}var Fv=kv();const Et=br(Fv),il=i=>!!i&&i[0]==="o",al=yr.unstable_batchedUpdates,_r=(i,n)=>i===!0||!!(i&&i[n]),gt=(i,n)=>typeof i=="function"?i(n):i,Rv="_szhsinMenu",Wv=i=>i[Rv],gi=(i,n)=>(n&&Object.keys(n).forEach(r=>{const o=i[r],s=n[r];typeof s=="function"&&o?i[r]=(...l)=>{s(...l),o(...l)}:i[r]=s}),i),Bv=i=>{if(typeof i!="string")return{top:0,right:0,bottom:0,left:0};const n=i.trim().split(/\s+/,4).map(parseFloat),r=isNaN(n[0])?0:n[0],o=isNaN(n[1])?r:n[1];return{top:r,right:o,bottom:isNaN(n[2])?r:n[2],left:isNaN(n[3])?o:n[3]}},Ja=i=>{for(;i;){if(i=i.parentNode,!i||i===document.body||!i.parentNode)return;const{overflow:n,overflowX:r,overflowY:o}=getComputedStyle(i);if(/auto|scroll|overlay|hidden/.test(n+o+r))return i}};function ol(i,n){return{"aria-disabled":i||void 0,tabIndex:n?0:-1}}function sl(i,n){for(let r=0;r<i.length;r++)if(i[r]===n)return r;return-1}const pi=({block:i,element:n,modifiers:r,className:o})=>A.useMemo(()=>{const s=n?`${i}__${n}`:i;let l=s;r&&Object.keys(r).forEach(d=>{const p=r[d];p&&(l+=` ${s}--${p===!0?d:`${d}-${p}`}`)});let f=typeof o=="function"?o(r):o;return typeof f=="string"&&(f=f.trim(),f&&(l+=` ${f}`)),l},[i,n,r,o]),$v="szh-menu-container",vi="szh-menu",Uv="arrow",Hv="item",ul=A.createContext(),ll=A.createContext({}),fl=A.createContext({}),cl=A.createContext({}),zv=A.createContext({}),Va=A.createContext({}),Tt=Object.freeze({ENTER:"Enter",ESC:"Escape",SPACE:" ",HOME:"Home",END:"End",LEFT:"ArrowLeft",RIGHT:"ArrowRight",UP:"ArrowUp",DOWN:"ArrowDown"}),Ce=Object.freeze({RESET:0,SET:1,UNSET:2,INCREASE:3,DECREASE:4,FIRST:5,LAST:6,SET_INDEX:7}),Er=Object.freeze({CLICK:"click",CANCEL:"cancel",BLUR:"blur",SCROLL:"scroll"}),Tr=Object.freeze({FIRST:"first",LAST:"last"}),jv=Object.freeze({entering:"opening",entered:"open",exiting:"closing",exited:"closed"}),dl="absolute",qv="none",Gv="menuitem",Xa={preventScroll:!0},Yv=({className:i,containerRef:n,containerProps:r,children:o,isOpen:s,theming:l,transition:f,onClose:d})=>{const p=_r(f,"item"),m=({key:w})=>{w===Tt.ESC&>(d,{key:w,reason:Er.CANCEL})},S=w=>{s&&!w.currentTarget.contains(w.relatedTarget)&>(d,{reason:Er.BLUR})};return $.jsx("div",{...gi({onKeyDown:m,onBlur:S},r),className:pi({block:$v,modifiers:A.useMemo(()=>({theme:l,itemTransition:p}),[l,p]),className:i}),style:{position:"absolute",...r?.style},ref:n,children:o})},Jv=()=>{let i,n=0;return{toggle:r=>{r?n++:n--,n=Math.max(n,0)},on:(r,o,s)=>{n?i||(i=setTimeout(()=>{i=0,o()},r)):s?.()},off:()=>{i&&(clearTimeout(i),i=0)}}},Vv=i=>{const[n,r]=A.useState(),s=A.useRef({items:[],hoverIndex:-1,sorted:!1}).current,l=A.useCallback((d,p)=>{const{items:m}=s;if(!d)s.items=[];else if(p)m.push(d);else{const S=m.indexOf(d);S>-1&&(m.splice(S,1),d.contains(document.activeElement)&&(i.current.focus(Xa),r()))}s.hoverIndex=-1,s.sorted=!1},[s,i]),f=A.useCallback((d,p,m)=>{const{items:S,hoverIndex:w}=s,O=()=>{if(s.sorted)return;const _=i.current.querySelectorAll(".szh-menu__item");S.sort((I,C)=>sl(_,I)-sl(_,C)),s.sorted=!0};let y=-1,E;switch(d){case Ce.RESET:break;case Ce.SET:E=p;break;case Ce.UNSET:E=_=>_===p?void 0:_;break;case Ce.FIRST:O(),y=0,E=S[y];break;case Ce.LAST:O(),y=S.length-1,E=S[y];break;case Ce.SET_INDEX:O(),y=m,E=S[y];break;case Ce.INCREASE:O(),y=w,y<0&&(y=S.indexOf(p)),y++,y>=S.length&&(y=0),E=S[y];break;case Ce.DECREASE:O(),y=w,y<0&&(y=S.indexOf(p)),y--,y<0&&(y=S.length-1),E=S[y];break;default:if(process.env.NODE_ENV!=="production")throw new Error(`[React-Menu] Unknown hover action type: ${d}`)}E||(y=-1),r(E),s.hoverIndex=y},[i,s]);return{hoverItem:n,dispatch:f,updateItems:l}},hl=(i,n)=>Math.round(i)===n?i:n,Xv=i=>{const n=i.getBoundingClientRect();return n.width=hl(n.width,i.offsetWidth),n.height=hl(n.height,i.offsetHeight),n},Kv=(i,n,r,o)=>{const s=Xv(n),l=i.getBoundingClientRect(),f=r===window?{left:0,top:0,right:document.documentElement.clientWidth,bottom:window.innerHeight}:r.getBoundingClientRect(),d=Bv(o),p=E=>E+l.left-f.left-d.left,m=E=>E+l.left+s.width-f.right+d.right,S=E=>E+l.top-f.top-d.top,w=E=>E+l.top+s.height-f.bottom+d.bottom;return{menuRect:s,containerRect:l,getLeftOverflow:p,getRightOverflow:m,getTopOverflow:S,getBottomOverflow:w,confineHorizontally:E=>{let _=p(E);if(_<0)E-=_;else{const I=m(E);I>0&&(E-=I,_=p(E),_<0&&(E-=_))}return E},confineVertically:E=>{let _=S(E);if(_<0)E-=_;else{const I=w(E);I>0&&(E-=I,_=S(E),_<0&&(E-=_))}return E}}},Zv=({arrowRef:i,menuY:n,anchorRect:r,containerRect:o,menuRect:s})=>{let l=r.top-o.top-n+r.height/2;const f=i.current.offsetHeight*1.25;return l=Math.max(f,l),l=Math.min(l,s.height-f),l},Qv=({anchorRect:i,containerRect:n,menuRect:r,placeLeftorRightY:o,placeLeftX:s,placeRightX:l,getLeftOverflow:f,getRightOverflow:d,confineHorizontally:p,confineVertically:m,arrowRef:S,arrow:w,direction:O,position:y})=>{let E=O,_=o;y!=="initial"&&(_=m(_),y==="anchor"&&(_=Math.min(_,i.bottom-n.top),_=Math.max(_,i.top-n.top-r.height)));let I,C,F;return E==="left"?(I=s,y!=="initial"&&(C=f(I),C<0&&(F=d(l),(F<=0||-C>F)&&(I=l,E="right")))):(I=l,y!=="initial"&&(F=d(I),F>0&&(C=f(s),(C>=0||-C<F)&&(I=s,E="left")))),y==="auto"&&(I=p(I)),{arrowY:w?Zv({menuY:_,arrowRef:S,anchorRect:i,containerRect:n,menuRect:r}):void 0,x:I,y:_,computedDirection:E}},em=({arrowRef:i,menuX:n,anchorRect:r,containerRect:o,menuRect:s})=>{let l=r.left-o.left-n+r.width/2;const f=i.current.offsetWidth*1.25;return l=Math.max(f,l),l=Math.min(l,s.width-f),l},tm=({anchorRect:i,containerRect:n,menuRect:r,placeToporBottomX:o,placeTopY:s,placeBottomY:l,getTopOverflow:f,getBottomOverflow:d,confineHorizontally:p,confineVertically:m,arrowRef:S,arrow:w,direction:O,position:y})=>{let E=O==="top"?"top":"bottom",_=o;y!=="initial"&&(_=p(_),y==="anchor"&&(_=Math.min(_,i.right-n.left),_=Math.max(_,i.left-n.left-r.width)));let I,C,F;return E==="top"?(I=s,y!=="initial"&&(C=f(I),C<0&&(F=d(l),(F<=0||-C>F)&&(I=l,E="bottom")))):(I=l,y!=="initial"&&(F=d(I),F>0&&(C=f(s),(C>=0||-C<F)&&(I=s,E="top")))),y==="auto"&&(I=m(I)),{arrowX:w?em({menuX:_,arrowRef:S,anchorRect:i,containerRect:n,menuRect:r}):void 0,x:_,y:I,computedDirection:E}},nm=({arrow:i,align:n,direction:r,gap:o,shift:s,position:l,anchorRect:f,arrowRef:d,positionHelpers:p})=>{const{menuRect:m,containerRect:S}=p,w=r==="left"||r==="right";let O=w?o:s,y=w?s:o;if(i){const B=d.current;w?O+=B.offsetWidth:y+=B.offsetHeight}const E=f.left-S.left-m.width-O,_=f.right-S.left+O,I=f.top-S.top-m.height-y,C=f.bottom-S.top+y;let F,U;n==="end"?(F=f.right-S.left-m.width,U=f.bottom-S.top-m.height):n==="center"?(F=f.left-S.left-(m.width-f.width)/2,U=f.top-S.top-(m.height-f.height)/2):(F=f.left-S.left,U=f.top-S.top),F+=O,U+=y;const V={...p,anchorRect:f,placeLeftX:E,placeRightX:_,placeLeftorRightY:U,placeTopY:I,placeBottomY:C,placeToporBottomX:F,arrowRef:d,arrow:i,direction:r,position:l};switch(r){case"left":case"right":return Qv(V);default:return tm(V)}},mi=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?A.useLayoutEffect:A.useEffect;function gl(i,n){typeof i=="function"?i(n):i.current=n}const Ka=(i,n)=>A.useMemo(()=>i?n?r=>{gl(i,r),gl(n,r)}:i:n,[i,n]),pl=-9999,rm=({ariaLabel:i,menuClassName:n,menuStyle:r,arrow:o,arrowProps:s={},anchorPoint:l,anchorRef:f,containerRef:d,containerProps:p,externalRef:m,parentScrollingRef:S,align:w="start",direction:O="bottom",position:y="auto",overflow:E="visible",setDownOverflow:_,repositionFlag:I,captureFocus:C=!0,state:F,endTransition:U,isDisabled:V,menuItemFocus:B,gap:ue=0,shift:N=0,children:L,onClose:j,focusProps:ee,...Y})=>{const[ae,X]=A.useState({x:pl,y:pl}),[We,Je]=A.useState({}),[Ve,Ot]=A.useState(),[He,gs]=A.useState(O),[Dt]=A.useState(Jv),[rt,Ri]=A.useReducer(ce=>ce+1,1),{transition:Wi,boundingBoxRef:Mr,boundingBoxPadding:qt,rootMenuRef:En,rootAnchorRef:kr,scrollNodesRef:Tn,reposition:sn,viewScroll:Fr,submenuCloseDelay:Xn}=A.useContext(Va),{submenuCtx:Kn,reposSubmenu:Bi=I}=A.useContext(fl),De=A.useRef(),un=A.useRef(),$i=A.useRef(!1),{hoverItem:it,dispatch:ze,updateItems:Zn}=Vv(De),Ae=il(F),Xe=_r(Wi,"open"),ln=_r(Wi,"close"),Be=Tn.current,ps=ce=>{switch(ce.key){case Tt.HOME:ze(Ce.FIRST);break;case Tt.END:ze(Ce.LAST);break;case Tt.UP:ze(Ce.DECREASE,it);break;case Tt.DOWN:ze(Ce.INCREASE,it);break;case Tt.SPACE:ce.target&&ce.target.className.indexOf(vi)!==-1&&ce.preventDefault();return;default:return}ce.preventDefault(),ce.stopPropagation()},xn=()=>{F==="closing"&&Ot(),gt(U)},vs=ce=>{ce.stopPropagation(),Dt.on(Xn,()=>{ze(Ce.RESET),De.current.focus(Xa)})},In=ce=>{ce.target===ce.currentTarget&&Dt.off()},je=A.useCallback(ce=>{const Le=De.current,Ke=d.current;if(!Le||!Ke)return;const at=f?f.current?.getBoundingClientRect():l?{left:l.x,right:l.x,top:l.y,bottom:l.y,width:0,height:0}:null;if(!at){process.env.NODE_ENV!=="production"&&console.warn("[React-Menu] Menu might not be positioned properly as one of the anchorRef or anchorPoint prop should be provided. If `anchorRef` is provided, the anchor must be mounted before menu is open.");return}Be.menu||(Be.menu=(Mr?Mr.current:Ja(En.current))||window);const xe=Kv(Ke,Le,Be.menu,qt);let{arrowX:tr,arrowY:ms,x:ys,y:An,computedDirection:bs}=nm({arrow:o,align:w,direction:O,gap:ue,shift:N,position:y,anchorRect:at,arrowRef:un,positionHelpers:xe});const{menuRect:Ss}=xe,Hi=Ss.height;if(!ce&&E!=="visible"){const{getTopOverflow:Hr,getBottomOverflow:ws}=xe;let Gt,zr;const jr=ws(An);if(jr>0)Gt=Hi-jr,zr=jr;else{const nr=Hr(An);nr<0&&(Gt=Hi+nr,zr=0-nr,Gt>=0&&(An-=nr))}Gt>=0&&Ot({height:Gt,overflowAmt:zr})}o&&Je({x:tr,y:ms}),X({x:ys,y:An}),gs(bs)},[o,w,qt,O,ue,N,y,E,l,f,d,Mr,En,Be]);mi(()=>{Ae&&(je(),$i.current&&Ri()),$i.current=Ae},[Ae,je,Bi]),mi(()=>{Ve&&!_&&(De.current.scrollTop=0)},[Ve,_]),mi(()=>Zn,[Zn]),A.useEffect(()=>{let{menu:ce}=Be;if(!Ae||!ce)return;if(ce=ce.addEventListener?ce:window,!Be.anchors){Be.anchors=[];let xe=Ja(kr&&kr.current);for(;xe&&xe!==ce;)Be.anchors.push(xe),xe=Ja(xe)}let Le=Fr;if(Be.anchors.length&&Le==="initial"&&(Le="auto"),Le==="initial")return;const Ke=()=>{Le==="auto"?al(()=>je(!0)):gt(j,{reason:Er.SCROLL})},at=Be.anchors.concat(Fr!=="initial"?ce:[]);return at.forEach(xe=>xe.addEventListener("scroll",Ke)),()=>at.forEach(xe=>xe.removeEventListener("scroll",Ke))},[kr,Be,Ae,j,Fr,je]);const Qn=!!Ve&&Ve.overflowAmt>0;A.useEffect(()=>{if(Qn||!Ae||!S)return;const ce=()=>al(je),Le=S.current;return Le.addEventListener("scroll",ce),()=>Le.removeEventListener("scroll",ce)},[Ae,Qn,S,je]),A.useEffect(()=>{if(!Ae||typeof ResizeObserver!="function"||sn==="initial")return;const ce=[],Le=new ResizeObserver(xe=>xe.forEach(({target:tr})=>{ce.indexOf(tr)<0?ce.push(tr):yr.flushSync(()=>{je(),Ri()})})),Ke={box:"border-box"};Le.observe(De.current,Ke);const at=f?.current;return at&&Le.observe(at,Ke),()=>Le.disconnect()},[Ae,sn,f,je]),A.useEffect(()=>{if(!Ae){ze(Ce.RESET),ln||Ot();return}const{position:ce,alwaysUpdate:Le}=B||{},Ke=()=>{ce===Tr.FIRST?ze(Ce.FIRST):ce===Tr.LAST?ze(Ce.LAST):ce>=-1&&ze(Ce.SET_INDEX,void 0,ce)};if(Le)Ke();else if(C){const at=setTimeout(()=>{const xe=De.current;xe&&!xe.contains(document.activeElement)&&(xe.focus(Xa),Ke())},Xe?170:100);return()=>clearTimeout(at)}},[Ae,Xe,ln,C,B,ze]);const Rr=A.useMemo(()=>({isParentOpen:Ae,submenuCtx:Dt,dispatch:ze,updateItems:Zn}),[Ae,Dt,ze,Zn]);let On,Dn;Ve&&(_?Dn=Ve.overflowAmt:On=Ve.height);const Wr=A.useMemo(()=>({reposSubmenu:rt,submenuCtx:Dt,overflow:E,overflowAmt:Dn,parentMenuRef:De,parentDir:He}),[rt,Dt,E,Dn,He]),Br=On>=0?{maxHeight:On,overflow:E}:void 0,er=A.useMemo(()=>({state:F,align:w,dir:He}),[F,w,He]),$r=A.useMemo(()=>({dir:He}),[He]),Ur=pi({block:vi,element:Uv,modifiers:$r,className:s.className}),Ui=$.jsxs("ul",{role:"menu","aria-label":i,...ol(V),...gi({onPointerEnter:Kn?.off,onPointerMove:vs,onPointerLeave:In,onKeyDown:ps,onAnimationEnd:xn},Y),ref:Ka(m,De),className:pi({block:vi,modifiers:er,className:n}),style:{...r,...Br,margin:0,display:F==="closed"?"none":void 0,position:dl,left:ae.x,top:ae.y},children:[o&&$.jsx("li",{"aria-hidden":!0,...s,className:Ur,style:{display:"block",position:dl,left:We.x,top:We.y,...s.style},ref:un}),$.jsx(fl.Provider,{value:Wr,children:$.jsx(ll.Provider,{value:Rr,children:$.jsx(ul.Provider,{value:it,children:gt(L,er)})})})]});return p?$.jsx(Yv,{...p,isOpen:Ae,children:Ui}):Ui},vl=A.forwardRef(function({"aria-label":n,className:r,containerProps:o,initialMounted:s,unmountOnClose:l,transition:f,transitionTimeout:d,boundingBoxRef:p,boundingBoxPadding:m,reposition:S="auto",submenuOpenDelay:w=300,submenuCloseDelay:O=150,viewScroll:y="initial",portal:E,theming:_,onItemClick:I,...C},F){const U=A.useRef(null),V=A.useRef({}),{anchorRef:B,state:ue,onClose:N}=C,L=A.useMemo(()=>({initialMounted:s,unmountOnClose:l,transition:f,transitionTimeout:d,boundingBoxRef:p,boundingBoxPadding:m,rootMenuRef:U,rootAnchorRef:B,scrollNodesRef:V,reposition:S,viewScroll:y,submenuOpenDelay:w,submenuCloseDelay:O}),[s,l,f,d,B,p,m,S,y,w,O]),j=A.useMemo(()=>({handleClick(Y,ae){Y.stopPropagation||gt(I,Y);let X=Y.keepOpen;X===void 0&&(X=ae&&Y.key===Tt.SPACE),X||gt(N,{value:Y.value,key:Y.key,reason:Er.CLICK})},handleClose(Y){gt(N,{key:Y,reason:Er.CLICK})}}),[I,N]);if(!ue)return null;const ee=$.jsx(Va.Provider,{value:L,children:$.jsx(cl.Provider,{value:j,children:$.jsx(rm,{...C,ariaLabel:n||"Menu",externalRef:F,containerRef:U,containerProps:{className:r,containerRef:U,containerProps:o,theming:_,transition:f,onClose:N}})})});return E===!0&&typeof document<"u"?yr.createPortal(ee,document.body):E?E.target?yr.createPortal(ee,E.target):E.stablePosition?null:ee:ee}),Za=0,Qa=1,yi=2,bi=3,Si=4,im=5,ml=6,am=["preEnter","entering","entered","preExit","exiting","exited","unmounted"],yl=i=>({_s:i,status:am[i],isEnter:i<bi,isMounted:i!==ml,isResolved:i===yi||i>Si}),eo=i=>i?ml:im,om=(i,n)=>{switch(i){case Qa:case Za:return yi;case Si:case bi:return eo(n)}},sm=i=>typeof i=="object"?[i.enter,i.exit]:[i,i],to=setTimeout,um=(i,n)=>to(()=>{isNaN(document.body.offsetTop)||i(n+1)},0),bl=(i,n,r,o,s)=>{clearTimeout(o.current);const l=yl(i);n(l),r.current=l,s&&s({current:l})},lm=({enter:i=!0,exit:n=!0,preEnter:r,preExit:o,timeout:s,initialEntered:l,mountOnEnter:f,unmountOnExit:d,onStateChange:p}={})=>{const[m,S]=A.useState(()=>yl(l?yi:eo(f))),w=A.useRef(m),O=A.useRef(0),[y,E]=sm(s),_=A.useCallback(()=>{const I=om(w.current._s,d);I&&bl(I,S,w,O,p)},[p,d]);return[m,A.useCallback(I=>{const C=U=>{switch(bl(U,S,w,O,p),U){case Qa:y>=0&&(O.current=to(_,y));break;case Si:E>=0&&(O.current=to(_,E));break;case Za:case bi:O.current=um(C,U);break}},F=w.current.isEnter;typeof I!="boolean"&&(I=!F),I?!F&&C(i?r?Za:Qa:yi):F&&C(n?o?bi:Si:eo(d))},[_,p,i,n,r,o,y,E,d]),_]},no=({initialOpen:i,initialMounted:n,unmountOnClose:r,transition:o,transitionTimeout:s=500,onMenuChange:l}={})=>{const f=_r(o,"open"),d=_r(o,"close"),[{status:p},m,S]=lm({initialEntered:i,mountOnEnter:!n,unmountOnExit:r,timeout:s,enter:f,exit:d,onStateChange:A.useCallback(({current:{isEnter:w,isResolved:O}})=>{!l||w&&f&&O||!w&&d&&O||l({open:w})},[l,f,d])});return[{state:jv[p],endTransition:S},m]},fm=i=>{const[n,r]=no(i),[o,s]=A.useState(),l=(f,d)=>{s({position:f,alwaysUpdate:d}),r(!0)};return[{menuItemFocus:o,...n},r,l]},cm=(i,n)=>{if(process.env.NODE_ENV!=="production"&&typeof n!="function")throw new Error("[React-Menu] useClick/useHover requires a function in the second parameter.");const[r]=A.useState({});return{onMouseDown:()=>{r.v=i&&i!=="closed"},onClick:o=>r.v?r.v=!1:n(!0,o)}},dm=parseInt(A.version)<19,Sl=A.forwardRef(function({"aria-label":n,captureFocus:r,initialOpen:o,menuButton:s,instanceRef:l,onMenuChange:f,...d},p){const[m,S,w]=fm({...d,onMenuChange:f}),{state:O}=m,y=il(O),E=A.useRef(null),_=cm(O,(B,ue)=>w(ue.detail?void 0:Tr.FIRST)),I=A.useCallback(B=>{S(!1),B.key&&E.current.focus()},[S]),C=B=>{switch(B.key){case Tt.UP:w(Tr.LAST);break;case Tt.DOWN:w(Tr.FIRST);break;default:return}B.preventDefault()},F=gt(s,{open:y});if(!F||!F.type)throw new Error("Menu requires a menuButton prop.");const U={...gi({onKeyDown:C,..._},F.props),ref:Ka(dm?F.ref:F.props.ref,E)};Wv(F.type)==="MenuButton"&&(U.isOpen=y);const V=A.cloneElement(F,U);return A.useImperativeHandle(l,()=>({openMenu:w,closeMenu:()=>S(!1)})),$.jsxs(A.Fragment,{children:[V,$.jsx(vl,{...d,...m,"aria-label":n||(typeof F.props.children=="string"?F.props.children:"Menu"),anchorRef:E,ref:p,onClose:I})]})}),hm=(i,n)=>{const r=A.memo(n),o=A.forwardRef((s,l)=>{const f=A.useRef(null);return $.jsx(r,{...s,itemRef:f,externalRef:l,isHovering:A.useContext(ul)===f.current})});return o.displayName=`WithHovering(${i})`,o},gm=i=>{const[n,r]=A.useState(!1);return A.useEffect(()=>{!i&&r(!1)},[i]),[n,()=>!n&&r(!0),()=>r(!1)]},pm=(i,n,r)=>{mi(()=>{if(process.env.NODE_ENV!=="production"&&!r)throw new Error(`[React-Menu] This menu item or submenu should be rendered under a menu: ${n.current.outerHTML}`);if(i)return;const o=n.current;return r(o,!0),()=>{r(o)}},[i,n,r])},vm=(i,n,r,o)=>{const[s,l,f]=gm(r),{submenuCloseDelay:d}=A.useContext(Va),{isParentOpen:p,submenuCtx:m,dispatch:S,updateItems:w}=A.useContext(ll),O=()=>{!r&&!o&&S(Ce.SET,i.current)},y=()=>{!o&&S(Ce.UNSET,i.current)},E=C=>{r&&!C.currentTarget.contains(C.relatedTarget)&&y()},_=C=>{o||(C.stopPropagation(),l(),m.on(d,O,O))},I=(C,F)=>{f(),m.off(),!F&&y()};return pm(o,i,w),A.useEffect(()=>{r&&p&&n.current&&n.current.focus()},[n,r,p]),{mouseOver:s,setHover:O,onBlur:E,onPointerMove:_,onPointerLeave:I}},wi=hm("MenuItem",function({className:n,value:r,href:o,type:s,checked:l,disabled:f,children:d,onClick:p,isHovering:m,itemRef:S,externalRef:w,...O}){const y=!!f,{mouseOver:E,setHover:_,...I}=vm(S,S,m,y),C=A.useContext(cl),F=A.useContext(zv),U=s==="radio",V=s==="checkbox",B=!!o&&!y&&!U&&!V,ue=U?F.value===r:V?!!l:!1,N=ae=>{if(y){ae.stopPropagation(),ae.preventDefault();return}const X={value:r,syntheticEvent:ae};ae.key!==void 0&&(X.key=ae.key),V&&(X.checked=!ue),U&&(X.name=F.name),gt(p,X),U&>(F.onRadioChange,X),C.handleClick(X,V||U)},L=ae=>{if(m)switch(ae.key){case Tt.ENTER:ae.preventDefault();case Tt.SPACE:B?S.current.click():N(ae)}},j=A.useMemo(()=>({type:s,disabled:y,hover:E||m,checked:ue,anchor:B}),[s,y,E,m,ue,B]),ee=gi({...I,onPointerDown:_,onKeyDown:L,onClick:N},O),Y={role:U?"menuitemradio":V?"menuitemcheckbox":Gv,"aria-checked":U||V?ue:void 0,...ol(y,m),...ee,ref:Ka(w,S),className:pi({block:vi,element:Hv,modifiers:j,className:n}),children:A.useMemo(()=>gt(d,j),[d,j])};return B?$.jsx("li",{role:qv,children:$.jsx("a",{href:o,...Y})}):$.jsx("li",{...Y})});if(!A.useState)throw new Error("mobx-react-lite requires React with Hooks support");if(!mr.makeObservable)throw new Error("mobx-react-lite@3 requires mobx at least version 6 to be available");function mm(i){i()}function ym(i){i||(i=mm,process.env.NODE_ENV!=="production"&&console.warn("[MobX] Failed to get unstable_batched updates from react-dom / react-native")),mr.configure({reactionScheduler:i})}function bm(i){return mr.getDependencyTree(i)}var Sm=1e4,wm=1e4,_m=(function(){function i(n){var r=this;Object.defineProperty(this,"finalize",{enumerable:!0,configurable:!0,writable:!0,value:n}),Object.defineProperty(this,"registrations",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),Object.defineProperty(this,"sweepTimeout",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sweep",{enumerable:!0,configurable:!0,writable:!0,value:function(o){o===void 0&&(o=Sm),clearTimeout(r.sweepTimeout),r.sweepTimeout=void 0;var s=Date.now();r.registrations.forEach(function(l,f){s-l.registeredAt>=o&&(r.finalize(l.value),r.registrations.delete(f))}),r.registrations.size>0&&r.scheduleSweep()}}),Object.defineProperty(this,"finalizeAllImmediately",{enumerable:!0,configurable:!0,writable:!0,value:function(){r.sweep(0)}})}return Object.defineProperty(i.prototype,"register",{enumerable:!1,configurable:!0,writable:!0,value:function(n,r,o){this.registrations.set(o,{value:r,registeredAt:Date.now()}),this.scheduleSweep()}}),Object.defineProperty(i.prototype,"unregister",{enumerable:!1,configurable:!0,writable:!0,value:function(n){this.registrations.delete(n)}}),Object.defineProperty(i.prototype,"scheduleSweep",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.sweepTimeout===void 0&&(this.sweepTimeout=setTimeout(this.sweep,wm))}}),i})(),Em=typeof FinalizationRegistry<"u"?FinalizationRegistry:_m,ro=new Em(function(i){var n;(n=i.reaction)===null||n===void 0||n.dispose(),i.reaction=null}),_i={exports:{}},io={};var wl;function Tm(){if(wl)return io;wl=1;var i=A;function n(w,O){return w===O&&(w!==0||1/w===1/O)||w!==w&&O!==O}var r=typeof Object.is=="function"?Object.is:n,o=i.useState,s=i.useEffect,l=i.useLayoutEffect,f=i.useDebugValue;function d(w,O){var y=O(),E=o({inst:{value:y,getSnapshot:O}}),_=E[0].inst,I=E[1];return l(function(){_.value=y,_.getSnapshot=O,p(_)&&I({inst:_})},[w,y,O]),s(function(){return p(_)&&I({inst:_}),w(function(){p(_)&&I({inst:_})})},[w]),f(y),y}function p(w){var O=w.getSnapshot;w=w.value;try{var y=O();return!r(w,y)}catch{return!0}}function m(w,O){return O()}var S=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?m:d;return io.useSyncExternalStore=i.useSyncExternalStore!==void 0?i.useSyncExternalStore:S,io}var ao={};var _l;function xm(){return _l||(_l=1,process.env.NODE_ENV!=="production"&&(function(){function i(y,E){return y===E&&(y!==0||1/y===1/E)||y!==y&&E!==E}function n(y,E){S||s.startTransition===void 0||(S=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var _=E();if(!w){var I=E();l(_,I)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),w=!0)}I=f({inst:{value:_,getSnapshot:E}});var C=I[0].inst,F=I[1];return p(function(){C.value=_,C.getSnapshot=E,r(C)&&F({inst:C})},[y,_,E]),d(function(){return r(C)&&F({inst:C}),y(function(){r(C)&&F({inst:C})})},[y]),m(_),_}function r(y){var E=y.getSnapshot;y=y.value;try{var _=E();return!l(y,_)}catch{return!0}}function o(y,E){return E()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var s=A,l=typeof Object.is=="function"?Object.is:i,f=s.useState,d=s.useEffect,p=s.useLayoutEffect,m=s.useDebugValue,S=!1,w=!1,O=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?o:n;ao.useSyncExternalStore=s.useSyncExternalStore!==void 0?s.useSyncExternalStore:O,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),ao}var El;function Im(){return El||(El=1,process.env.NODE_ENV==="production"?_i.exports=Tm():_i.exports=xm()),_i.exports}var Om=Im();function Tl(i){i.reaction=new mr.Reaction("observer".concat(i.name),function(){var n;i.stateVersion=Symbol(),(n=i.onStoreChange)===null||n===void 0||n.call(i)})}function Dm(i,n){n===void 0&&(n="observed");var r=A.useRef(null);if(!r.current){var o={reaction:null,onStoreChange:null,stateVersion:Symbol(),name:n,subscribe:function(d){return ro.unregister(o),o.onStoreChange=d,o.reaction||(Tl(o),o.stateVersion=Symbol()),function(){var p;o.onStoreChange=null,(p=o.reaction)===null||p===void 0||p.dispose(),o.reaction=null}},getSnapshot:function(){return o.stateVersion}};r.current=o}var s=r.current;s.reaction||(Tl(s),ro.register(r,s,s)),A.useDebugValue(s.reaction,bm),Om.useSyncExternalStore(s.subscribe,s.getSnapshot,s.getSnapshot);var l,f;if(s.reaction.track(function(){try{l=i()}catch(d){f=d}}),f)throw f;return l}var oo,so,Am=!0,xl=!0,Il=typeof Symbol=="function"&&Symbol.for,Cm=(so=(oo=Object.getOwnPropertyDescriptor(function(){},"name"))===null||oo===void 0?void 0:oo.configurable)!==null&&so!==void 0?so:!1,Ol=Il?Symbol.for("react.forward_ref"):typeof A.forwardRef=="function"&&A.forwardRef(function(i){return null}).$$typeof,Dl=Il?Symbol.for("react.memo"):typeof A.memo=="function"&&A.memo(function(i){return null}).$$typeof;function Bt(i,n){var r;if(process.env.NODE_ENV,Dl&&i.$$typeof===Dl)throw new Error("[mobx-react-lite] You are trying to use `observer` on a function component wrapped in either another `observer` or `React.memo`. The observer already applies 'React.memo' for you.");var o=(r=void 0)!==null&&r!==void 0?r:!1,s=i,l=i.displayName||i.name;if(Ol&&i.$$typeof===Ol&&(o=!0,s=i.render,typeof s!="function"))throw new Error("[mobx-react-lite] `render` property of ForwardRef was not a function");var f=function(d,p){return Dm(function(){return s(d,p)},l)};return f.displayName=i.displayName,Cm&&Object.defineProperty(f,"name",{value:i.name,writable:!0,configurable:!0}),i.contextTypes&&(f.contextTypes=i.contextTypes,process.env.NODE_ENV!=="production"&&xl&&(xl=!1,console.warn("[mobx-react-lite] Support for Legacy Context in function components will be removed in the next major release."))),o&&(f=A.forwardRef(f)),f=A.memo(f),Pm(i,f),process.env.NODE_ENV!=="production"&&Object.defineProperty(f,"contextTypes",{set:function(){var d,p;throw new Error("[mobx-react-lite] `".concat(this.displayName||((d=this.type)===null||d===void 0?void 0:d.displayName)||((p=this.type)===null||p===void 0?void 0:p.name)||"Component",".contextTypes` must be set before applying `observer`."))}}),f}var Nm={$$typeof:!0,render:!0,compare:!0,type:!0,displayName:!0};function Pm(i,n){Object.keys(i).forEach(function(r){Nm[r]||Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(i,r))})}process.env.NODE_ENV;var uo;ym(yr.unstable_batchedUpdates),uo=ro.finalizeAllImmediately;function lo(i,n){(n==null||n>i.length)&&(n=i.length);for(var r=0,o=Array(n);r<n;r++)o[r]=i[r];return o}function Lm(i){if(Array.isArray(i))return i}function Mm(i){if(Array.isArray(i))return lo(i)}function km(i,n){if(!(i instanceof n))throw new TypeError("Cannot call a class as a function")}function Fm(i,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(i,Cl(o.key),o)}}function Rm(i,n,r){return n&&Fm(i.prototype,n),Object.defineProperty(i,"prototype",{writable:!1}),i}function Ei(i,n){var r=typeof Symbol<"u"&&i[Symbol.iterator]||i["@@iterator"];if(!r){if(Array.isArray(i)||(r=fo(i))||n){r&&(i=r);var o=0,s=function(){};return{s,n:function(){return o>=i.length?{done:!0}:{done:!1,value:i[o++]}},e:function(p){throw p},f:s}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
21
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var
|
|
22
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
23
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Al(i,n){var r=Object.keys(i);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(i);n&&(o=o.filter(function(s){return Object.getOwnPropertyDescriptor(i,s).enumerable})),r.push.apply(r,o)}return r}function W(i){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?Al(Object(r),!0).forEach(function(o){re(i,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(r)):Al(Object(r)).forEach(function(o){Object.defineProperty(i,o,Object.getOwnPropertyDescriptor(r,o))})}return i}function Ti(i,n){return Lm(i)||Bm(i,n)||fo(i,n)||$m()}function xt(i){return Mm(i)||Wm(i)||fo(i)||Um()}function Hm(i,n){if(typeof i!="object"||!i)return i;var r=i[Symbol.toPrimitive];if(r!==void 0){var o=r.call(i,n);if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(i)}function Cl(i){var n=Hm(i,"string");return typeof n=="symbol"?n:n+""}function xi(i){"@babel/helpers - typeof";return xi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},xi(i)}function fo(i,n){if(i){if(typeof i=="string")return lo(i,n);var r={}.toString.call(i).slice(8,-1);return r==="Object"&&i.constructor&&(r=i.constructor.name),r==="Map"||r==="Set"?Array.from(i):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?lo(i,n):void 0}}var Nl=function(){},co={},Pl={},Ll=null,Ml={mark:Nl,measure:Nl};try{typeof window<"u"&&(co=window),typeof document<"u"&&(Pl=document),typeof MutationObserver<"u"&&(Ll=MutationObserver),typeof performance<"u"&&(Ml=performance)}catch{}var zm=co.navigator||{},kl=zm.userAgent,Fl=kl===void 0?"":kl,rn=co,Se=Pl,Rl=Ll,Ii=Ml;rn.document;var $t=!!Se.documentElement&&!!Se.head&&typeof Se.addEventListener=="function"&&typeof Se.createElement=="function",Wl=~Fl.indexOf("MSIE")||~Fl.indexOf("Trident/"),ho,jm=/fa(k|kd|s|r|l|t|d|dr|dl|dt|b|slr|slpr|wsb|tl|ns|nds|es|jr|jfr|jdr|usb|ufsb|udsb|cr|ss|sr|sl|st|sds|sdr|sdl|sdt)?[\-\ ]/,qm=/Font ?Awesome ?([567 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit|Notdog Duo|Notdog|Chisel|Etch|Thumbprint|Jelly Fill|Jelly Duo|Jelly|Utility|Utility Fill|Utility Duo|Slab Press|Slab|Whiteboard)?.*/i,Bl={classic:{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fab:"brands","fa-brands":"brands"},duotone:{fa:"solid",fad:"solid","fa-solid":"solid","fa-duotone":"solid",fadr:"regular","fa-regular":"regular",fadl:"light","fa-light":"light",fadt:"thin","fa-thin":"thin"},sharp:{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"},"sharp-duotone":{fa:"solid",fasds:"solid","fa-solid":"solid",fasdr:"regular","fa-regular":"regular",fasdl:"light","fa-light":"light",fasdt:"thin","fa-thin":"thin"},slab:{"fa-regular":"regular",faslr:"regular"},"slab-press":{"fa-regular":"regular",faslpr:"regular"},thumbprint:{"fa-light":"light",fatl:"light"},whiteboard:{"fa-semibold":"semibold",fawsb:"semibold"},notdog:{"fa-solid":"solid",fans:"solid"},"notdog-duo":{"fa-solid":"solid",fands:"solid"},etch:{"fa-solid":"solid",faes:"solid"},jelly:{"fa-regular":"regular",fajr:"regular"},"jelly-fill":{"fa-regular":"regular",fajfr:"regular"},"jelly-duo":{"fa-regular":"regular",fajdr:"regular"},chisel:{"fa-regular":"regular",facr:"regular"},utility:{"fa-semibold":"semibold",fausb:"semibold"},"utility-duo":{"fa-semibold":"semibold",faudsb:"semibold"},"utility-fill":{"fa-semibold":"semibold",faufsb:"semibold"}},Gm={GROUP:"duotone-group",PRIMARY:"primary",SECONDARY:"secondary"},$l=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone","fa-thumbprint","fa-whiteboard","fa-notdog","fa-notdog-duo","fa-chisel","fa-etch","fa-jelly","fa-jelly-fill","fa-jelly-duo","fa-slab","fa-slab-press","fa-utility","fa-utility-duo","fa-utility-fill"],ke="classic",xr="duotone",Ul="sharp",Hl="sharp-duotone",zl="chisel",jl="etch",ql="jelly",Gl="jelly-duo",Yl="jelly-fill",Jl="notdog",Vl="notdog-duo",Xl="slab",Kl="slab-press",Zl="thumbprint",Ql="utility",ef="utility-duo",tf="utility-fill",nf="whiteboard",Ym="Classic",Jm="Duotone",Vm="Sharp",Xm="Sharp Duotone",Km="Chisel",Zm="Etch",Qm="Jelly",ey="Jelly Duo",ty="Jelly Fill",ny="Notdog",ry="Notdog Duo",iy="Slab",ay="Slab Press",oy="Thumbprint",sy="Utility",uy="Utility Duo",ly="Utility Fill",fy="Whiteboard",rf=[ke,xr,Ul,Hl,zl,jl,ql,Gl,Yl,Jl,Vl,Xl,Kl,Zl,Ql,ef,tf,nf];ho={},re(re(re(re(re(re(re(re(re(re(ho,ke,Ym),xr,Jm),Ul,Vm),Hl,Xm),zl,Km),jl,Zm),ql,Qm),Gl,ey),Yl,ty),Jl,ny),re(re(re(re(re(re(re(re(ho,Vl,ry),Xl,iy),Kl,ay),Zl,oy),Ql,sy),ef,uy),tf,ly),nf,fy);var cy={classic:{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},duotone:{900:"fad",400:"fadr",300:"fadl",100:"fadt"},sharp:{900:"fass",400:"fasr",300:"fasl",100:"fast"},"sharp-duotone":{900:"fasds",400:"fasdr",300:"fasdl",100:"fasdt"},slab:{400:"faslr"},"slab-press":{400:"faslpr"},whiteboard:{600:"fawsb"},thumbprint:{300:"fatl"},notdog:{900:"fans"},"notdog-duo":{900:"fands"},etch:{900:"faes"},chisel:{400:"facr"},jelly:{400:"fajr"},"jelly-fill":{400:"fajfr"},"jelly-duo":{400:"fajdr"},utility:{600:"fausb"},"utility-duo":{600:"faudsb"},"utility-fill":{600:"faufsb"}},dy={"Font Awesome 7 Free":{900:"fas",400:"far"},"Font Awesome 7 Pro":{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},"Font Awesome 7 Brands":{400:"fab",normal:"fab"},"Font Awesome 7 Duotone":{900:"fad",400:"fadr",normal:"fadr",300:"fadl",100:"fadt"},"Font Awesome 7 Sharp":{900:"fass",400:"fasr",normal:"fasr",300:"fasl",100:"fast"},"Font Awesome 7 Sharp Duotone":{900:"fasds",400:"fasdr",normal:"fasdr",300:"fasdl",100:"fasdt"},"Font Awesome 7 Jelly":{400:"fajr",normal:"fajr"},"Font Awesome 7 Jelly Fill":{400:"fajfr",normal:"fajfr"},"Font Awesome 7 Jelly Duo":{400:"fajdr",normal:"fajdr"},"Font Awesome 7 Slab":{400:"faslr",normal:"faslr"},"Font Awesome 7 Slab Press":{400:"faslpr",normal:"faslpr"},"Font Awesome 7 Thumbprint":{300:"fatl",normal:"fatl"},"Font Awesome 7 Notdog":{900:"fans",normal:"fans"},"Font Awesome 7 Notdog Duo":{900:"fands",normal:"fands"},"Font Awesome 7 Etch":{900:"faes",normal:"faes"},"Font Awesome 7 Chisel":{400:"facr",normal:"facr"},"Font Awesome 7 Whiteboard":{600:"fawsb",normal:"fawsb"},"Font Awesome 7 Utility":{600:"fausb",normal:"fausb"},"Font Awesome 7 Utility Duo":{600:"faudsb",normal:"faudsb"},"Font Awesome 7 Utility Fill":{600:"faufsb",normal:"faufsb"}},hy=new Map([["classic",{defaultShortPrefixId:"fas",defaultStyleId:"solid",styleIds:["solid","regular","light","thin","brands"],futureStyleIds:[],defaultFontWeight:900}],["duotone",{defaultShortPrefixId:"fad",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["sharp",{defaultShortPrefixId:"fass",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["sharp-duotone",{defaultShortPrefixId:"fasds",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["chisel",{defaultShortPrefixId:"facr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["etch",{defaultShortPrefixId:"faes",defaultStyleId:"solid",styleIds:["solid"],futureStyleIds:[],defaultFontWeight:900}],["jelly",{defaultShortPrefixId:"fajr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["jelly-duo",{defaultShortPrefixId:"fajdr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["jelly-fill",{defaultShortPrefixId:"fajfr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["notdog",{defaultShortPrefixId:"fans",defaultStyleId:"solid",styleIds:["solid"],futureStyleIds:[],defaultFontWeight:900}],["notdog-duo",{defaultShortPrefixId:"fands",defaultStyleId:"solid",styleIds:["solid"],futureStyleIds:[],defaultFontWeight:900}],["slab",{defaultShortPrefixId:"faslr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["slab-press",{defaultShortPrefixId:"faslpr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["thumbprint",{defaultShortPrefixId:"fatl",defaultStyleId:"light",styleIds:["light"],futureStyleIds:[],defaultFontWeight:300}],["utility",{defaultShortPrefixId:"fausb",defaultStyleId:"semibold",styleIds:["semibold"],futureStyleIds:[],defaultFontWeight:600}],["utility-duo",{defaultShortPrefixId:"faudsb",defaultStyleId:"semibold",styleIds:["semibold"],futureStyleIds:[],defaultFontWeight:600}],["utility-fill",{defaultShortPrefixId:"faufsb",defaultStyleId:"semibold",styleIds:["semibold"],futureStyleIds:[],defaultFontWeight:600}],["whiteboard",{defaultShortPrefixId:"fawsb",defaultStyleId:"semibold",styleIds:["semibold"],futureStyleIds:[],defaultFontWeight:600}]]),gy={chisel:{regular:"facr"},classic:{brands:"fab",light:"fal",regular:"far",solid:"fas",thin:"fat"},duotone:{light:"fadl",regular:"fadr",solid:"fad",thin:"fadt"},etch:{solid:"faes"},jelly:{regular:"fajr"},"jelly-duo":{regular:"fajdr"},"jelly-fill":{regular:"fajfr"},notdog:{solid:"fans"},"notdog-duo":{solid:"fands"},sharp:{light:"fasl",regular:"fasr",solid:"fass",thin:"fast"},"sharp-duotone":{light:"fasdl",regular:"fasdr",solid:"fasds",thin:"fasdt"},slab:{regular:"faslr"},"slab-press":{regular:"faslpr"},thumbprint:{light:"fatl"},utility:{semibold:"fausb"},"utility-duo":{semibold:"faudsb"},"utility-fill":{semibold:"faufsb"},whiteboard:{semibold:"fawsb"}},af=["fak","fa-kit","fakd","fa-kit-duotone"],of={kit:{fak:"kit","fa-kit":"kit"},"kit-duotone":{fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"}},py=["kit"],vy="kit",my="kit-duotone",yy="Kit",by="Kit Duotone";re(re({},vy,yy),my,by);var Sy={kit:{"fa-kit":"fak"}},wy={"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}},_y={kit:{fak:"fa-kit"}},sf={kit:{kit:"fak"},"kit-duotone":{"kit-duotone":"fakd"}},go,Oi={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},Ey=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone","fa-thumbprint","fa-whiteboard","fa-notdog","fa-notdog-duo","fa-chisel","fa-etch","fa-jelly","fa-jelly-fill","fa-jelly-duo","fa-slab","fa-slab-press","fa-utility","fa-utility-duo","fa-utility-fill"],Ty="classic",xy="duotone",Iy="sharp",Oy="sharp-duotone",Dy="chisel",Ay="etch",Cy="jelly",Ny="jelly-duo",Py="jelly-fill",Ly="notdog",My="notdog-duo",ky="slab",Fy="slab-press",Ry="thumbprint",Wy="utility",By="utility-duo",$y="utility-fill",Uy="whiteboard",Hy="Classic",zy="Duotone",jy="Sharp",qy="Sharp Duotone",Gy="Chisel",Yy="Etch",Jy="Jelly",Vy="Jelly Duo",Xy="Jelly Fill",Ky="Notdog",Zy="Notdog Duo",Qy="Slab",e0="Slab Press",t0="Thumbprint",n0="Utility",r0="Utility Duo",i0="Utility Fill",a0="Whiteboard";go={},re(re(re(re(re(re(re(re(re(re(go,Ty,Hy),xy,zy),Iy,jy),Oy,qy),Dy,Gy),Ay,Yy),Cy,Jy),Ny,Vy),Py,Xy),Ly,Ky),re(re(re(re(re(re(re(re(go,My,Zy),ky,Qy),Fy,e0),Ry,t0),Wy,n0),By,r0),$y,i0),Uy,a0);var o0="kit",s0="kit-duotone",u0="Kit",l0="Kit Duotone";re(re({},o0,u0),s0,l0);var f0={classic:{"fa-brands":"fab","fa-duotone":"fad","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},duotone:{"fa-regular":"fadr","fa-light":"fadl","fa-thin":"fadt"},sharp:{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"},"sharp-duotone":{"fa-solid":"fasds","fa-regular":"fasdr","fa-light":"fasdl","fa-thin":"fasdt"},slab:{"fa-regular":"faslr"},"slab-press":{"fa-regular":"faslpr"},whiteboard:{"fa-semibold":"fawsb"},thumbprint:{"fa-light":"fatl"},notdog:{"fa-solid":"fans"},"notdog-duo":{"fa-solid":"fands"},etch:{"fa-solid":"faes"},jelly:{"fa-regular":"fajr"},"jelly-fill":{"fa-regular":"fajfr"},"jelly-duo":{"fa-regular":"fajdr"},chisel:{"fa-regular":"facr"},utility:{"fa-semibold":"fausb"},"utility-duo":{"fa-semibold":"faudsb"},"utility-fill":{"fa-semibold":"faufsb"}},c0={classic:["fas","far","fal","fat","fad"],duotone:["fadr","fadl","fadt"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds","fasdr","fasdl","fasdt"],slab:["faslr"],"slab-press":["faslpr"],whiteboard:["fawsb"],thumbprint:["fatl"],notdog:["fans"],"notdog-duo":["fands"],etch:["faes"],jelly:["fajr"],"jelly-fill":["fajfr"],"jelly-duo":["fajdr"],chisel:["facr"],utility:["fausb"],"utility-duo":["faudsb"],"utility-fill":["faufsb"]},po={classic:{fab:"fa-brands",fad:"fa-duotone",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},duotone:{fadr:"fa-regular",fadl:"fa-light",fadt:"fa-thin"},sharp:{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"},"sharp-duotone":{fasds:"fa-solid",fasdr:"fa-regular",fasdl:"fa-light",fasdt:"fa-thin"},slab:{faslr:"fa-regular"},"slab-press":{faslpr:"fa-regular"},whiteboard:{fawsb:"fa-semibold"},thumbprint:{fatl:"fa-light"},notdog:{fans:"fa-solid"},"notdog-duo":{fands:"fa-solid"},etch:{faes:"fa-solid"},jelly:{fajr:"fa-regular"},"jelly-fill":{fajfr:"fa-regular"},"jelly-duo":{fajdr:"fa-regular"},chisel:{facr:"fa-regular"},utility:{fausb:"fa-semibold"},"utility-duo":{faudsb:"fa-semibold"},"utility-fill":{faufsb:"fa-semibold"}},d0=["fa-solid","fa-regular","fa-light","fa-thin","fa-duotone","fa-brands","fa-semibold"],uf=["fa","fas","far","fal","fat","fad","fadr","fadl","fadt","fab","fass","fasr","fasl","fast","fasds","fasdr","fasdl","fasdt","faslr","faslpr","fawsb","fatl","fans","fands","faes","fajr","fajfr","fajdr","facr","fausb","faudsb","faufsb"].concat(Ey,d0),h0=["solid","regular","light","thin","duotone","brands","semibold"],lf=[1,2,3,4,5,6,7,8,9,10],g0=lf.concat([11,12,13,14,15,16,17,18,19,20]),p0=["aw","fw","pull-left","pull-right"],v0=[].concat(xt(Object.keys(c0)),h0,p0,["2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","inverse","layers","layers-bottom-left","layers-bottom-right","layers-counter","layers-text","layers-top-left","layers-top-right","li","pull-end","pull-start","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul","width-auto","width-fixed",Oi.GROUP,Oi.SWAP_OPACITY,Oi.PRIMARY,Oi.SECONDARY]).concat(lf.map(function(i){return"".concat(i,"x")})).concat(g0.map(function(i){return"w-".concat(i)})),m0={"Font Awesome 5 Free":{900:"fas",400:"far"},"Font Awesome 5 Pro":{900:"fas",400:"far",normal:"far",300:"fal"},"Font Awesome 5 Brands":{400:"fab",normal:"fab"},"Font Awesome 5 Duotone":{900:"fad"}},Ut="___FONT_AWESOME___",vo=16,ff="fa",cf="svg-inline--fa",Sn="data-fa-i2svg",mo="data-fa-pseudo-element",y0="data-fa-pseudo-element-pending",yo="data-prefix",bo="data-icon",df="fontawesome-i2svg",b0="async",S0=["HTML","HEAD","STYLE","SCRIPT"],hf=["::before","::after",":before",":after"],gf=(function(){try{return process.env.NODE_ENV==="production"}catch{return!1}})();function Ir(i){return new Proxy(i,{get:function(r,o){return o in r?r[o]:r[ke]}})}var pf=W({},Bl);pf[ke]=W(W(W(W({},{"fa-duotone":"duotone"}),Bl[ke]),of.kit),of["kit-duotone"]);var w0=Ir(pf),So=W({},gy);So[ke]=W(W(W(W({},{duotone:"fad"}),So[ke]),sf.kit),sf["kit-duotone"]);var vf=Ir(So),wo=W({},po);wo[ke]=W(W({},wo[ke]),_y.kit);var _o=Ir(wo),Eo=W({},f0);Eo[ke]=W(W({},Eo[ke]),Sy.kit),Ir(Eo);var _0=jm,mf="fa-layers-text",E0=qm,T0=W({},cy);Ir(T0);var x0=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],To=Gm,I0=[].concat(xt(py),xt(v0)),Or=rn.FontAwesomeConfig||{};function O0(i){var n=Se.querySelector("script["+i+"]");if(n)return n.getAttribute(i)}function D0(i){return i===""?!0:i==="false"?!1:i==="true"?!0:i}if(Se&&typeof Se.querySelector=="function"){var A0=[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-search-pseudo-elements","searchPseudoElements"],["data-search-pseudo-elements-warnings","searchPseudoElementsWarnings"],["data-search-pseudo-elements-full-scan","searchPseudoElementsFullScan"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]];A0.forEach(function(i){var n=Ti(i,2),r=n[0],o=n[1],s=D0(O0(r));s!=null&&(Or[o]=s)})}var yf={styleDefault:"solid",familyDefault:ke,cssPrefix:ff,replacementClass:cf,autoReplaceSvg:!0,autoAddCss:!0,searchPseudoElements:!1,searchPseudoElementsWarnings:!0,searchPseudoElementsFullScan:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};Or.familyPrefix&&(Or.cssPrefix=Or.familyPrefix);var zn=W(W({},yf),Or);zn.autoReplaceSvg||(zn.observeMutations=!1);var G={};Object.keys(yf).forEach(function(i){Object.defineProperty(G,i,{enumerable:!0,set:function(r){zn[i]=r,Dr.forEach(function(o){return o(G)})},get:function(){return zn[i]}})}),Object.defineProperty(G,"familyPrefix",{enumerable:!0,set:function(n){zn.cssPrefix=n,Dr.forEach(function(r){return r(G)})},get:function(){return zn.cssPrefix}}),rn.FontAwesomeConfig=G;var Dr=[];function C0(i){return Dr.push(i),function(){Dr.splice(Dr.indexOf(i),1)}}var jn=vo,Mt={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function N0(i){if(!(!i||!$t)){var n=Se.createElement("style");n.setAttribute("type","text/css"),n.innerHTML=i;for(var r=Se.head.childNodes,o=null,s=r.length-1;s>-1;s--){var l=r[s],f=(l.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(f)>-1&&(o=l)}return Se.head.insertBefore(n,o),i}}var P0="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function bf(){for(var i=12,n="";i-- >0;)n+=P0[Math.random()*62|0];return n}function qn(i){for(var n=[],r=(i||[]).length>>>0;r--;)n[r]=i[r];return n}function xo(i){return i.classList?qn(i.classList):(i.getAttribute("class")||"").split(" ").filter(function(n){return n})}function Sf(i){return"".concat(i).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function L0(i){return Object.keys(i||{}).reduce(function(n,r){return n+"".concat(r,'="').concat(Sf(i[r]),'" ')},"").trim()}function Di(i){return Object.keys(i||{}).reduce(function(n,r){return n+"".concat(r,": ").concat(i[r].trim(),";")},"")}function Io(i){return i.size!==Mt.size||i.x!==Mt.x||i.y!==Mt.y||i.rotate!==Mt.rotate||i.flipX||i.flipY}function M0(i){var n=i.transform,r=i.containerWidth,o=i.iconWidth,s={transform:"translate(".concat(r/2," 256)")},l="translate(".concat(n.x*32,", ").concat(n.y*32,") "),f="scale(".concat(n.size/16*(n.flipX?-1:1),", ").concat(n.size/16*(n.flipY?-1:1),") "),d="rotate(".concat(n.rotate," 0 0)"),p={transform:"".concat(l," ").concat(f," ").concat(d)},m={transform:"translate(".concat(o/2*-1," -256)")};return{outer:s,inner:p,path:m}}function k0(i){var n=i.transform,r=i.width,o=r===void 0?vo:r,s=i.height,l=s===void 0?vo:s,f="";return Wl?f+="translate(".concat(n.x/jn-o/2,"em, ").concat(n.y/jn-l/2,"em) "):f+="translate(calc(-50% + ".concat(n.x/jn,"em), calc(-50% + ").concat(n.y/jn,"em)) "),f+="scale(".concat(n.size/jn*(n.flipX?-1:1),", ").concat(n.size/jn*(n.flipY?-1:1),") "),f+="rotate(".concat(n.rotate,"deg) "),f}var F0=`:root, :host {
|
|
19
|
+
`)+D+`return __p
|
|
20
|
+
}`;var ae=ch(function(){return pe(h,j+"return "+D).apply(n,v)});if(ae.source=D,Hs(ae))throw ae;return ae}function nx(e){return ge(e).toLowerCase()}function rx(e){return ge(e).toUpperCase()}function ix(e,t,r){if(e=ge(e),e&&(r||t===n))return _c(e);if(!e||!(t=st(t)))return e;var s=Tt(e),l=Tt(t),h=wc(s,l),v=Sc(s,l)+1;return pn(s,h,v).join("")}function ax(e,t,r){if(e=ge(e),e&&(r||t===n))return e.slice(0,Ec(e)+1);if(!e||!(t=st(t)))return e;var s=Tt(e),l=Sc(s,Tt(t))+1;return pn(s,0,l).join("")}function ox(e,t,r){if(e=ge(e),e&&(r||t===n))return e.replace(Ht,"");if(!e||!(t=st(t)))return e;var s=Tt(e),l=wc(s,Tt(t));return pn(s,l).join("")}function sx(e,t){var r=ee,s=J;if(Se(t)){var l="separator"in t?t.separator:l;r="length"in t?re(t.length):r,s="omission"in t?st(t.omission):s}e=ge(e);var h=e.length;if(Zn(e)){var v=Tt(e);h=v.length}if(r>=h)return e;var m=r-Qn(s);if(m<1)return s;var S=v?pn(v,0,m).join(""):e.slice(0,m);if(l===n)return S+s;if(v&&(m+=S.length-m),qs(l)){if(e.slice(m).search(l)){var F,M=S;for(l.global||(l=os(l.source,ge(Ul.exec(l))+"g")),l.lastIndex=0;F=l.exec(M);)var D=F.index;S=S.slice(0,D===n?m:D)}}else if(e.indexOf(st(l),m)!=m){var z=S.lastIndexOf(l);z>-1&&(S=S.slice(0,z))}return S+s}function ux(e){return e=ge(e),e&&Ee.test(e)?e.replace(Xe,Wy):e}var fx=or(function(e,t,r){return e+(r?" ":"")+t.toUpperCase()}),Js=dd("toUpperCase");function lh(e,t,r){return e=ge(e),t=r?n:t,t===n?Py(e)?$y(e):xy(e):e.match(t)||[]}var ch=oe(function(e,t){try{return at(e,n,t)}catch(r){return Hs(r)?r:new Q(r)}}),lx=Yt(function(e,t){return ht(t,function(r){r=Mt(r),Gt(e,r,zs(e[r],e))}),e});function cx(e){var t=e==null?0:e.length,r=Y();return e=t?we(e,function(s){if(typeof s[1]!="function")throw new pt(c);return[r(s[0]),s[1]]}):[],oe(function(s){for(var l=-1;++l<t;){var h=e[l];if(at(h[0],this,s))return at(h[1],this,s)}})}function dx(e){return W1(gt(e,w))}function Ys(e){return function(){return e}}function hx(e,t){return e==null||e!==e?t:e}var px=pd(),vx=pd(!0);function et(e){return e}function Ks(e){return qc(typeof e=="function"?e:gt(e,w))}function gx(e){return Gc(gt(e,w))}function mx(e,t){return Jc(e,gt(t,w))}var yx=oe(function(e,t){return function(r){return qr(r,e,t)}}),bx=oe(function(e,t){return function(r){return qr(e,r,t)}});function Xs(e,t,r){var s=Fe(t),l=Vi(t,s);r==null&&!(Se(t)&&(l.length||!s.length))&&(r=t,t=e,e=this,l=Vi(t,Fe(t)));var h=!(Se(r)&&"chain"in r)||!!r.chain,v=Xt(e);return ht(l,function(m){var S=t[m];e[m]=S,v&&(e.prototype[m]=function(){var F=this.__chain__;if(h||F){var M=e(this.__wrapped__),D=M.__actions__=Ve(this.__actions__);return D.push({func:S,args:arguments,thisArg:e}),M.__chain__=F,M}return S.apply(e,un([this.value()],arguments))})}),e}function _x(){return ke._===this&&(ke._=Gy),this}function Vs(){}function wx(e){return e=re(e),oe(function(t){return Yc(t,e)})}var Sx=Os(we),xx=Os(vc),Ex=Os(Qo);function dh(e){return ks(e)?es(Mt(e)):eb(e)}function Ax(e){return function(t){return e==null?n:Ln(e,t)}}var Tx=gd(),Ix=gd(!0);function Zs(){return[]}function Qs(){return!1}function Ox(){return{}}function Cx(){return""}function Nx(){return!0}function Lx(e,t){if(e=re(e),e<1||e>ze)return[];var r=nt,s=Re(e,nt);t=Y(t),e-=nt;for(var l=rs(s,t);++r<e;)t(r);return l}function Px(e){return te(e)?we(e,Mt):ut(e)?[e]:Ve(Pd(ge(e)))}function Fx(e){var t=++qy;return ge(e)+t}var Mx=ra(function(e,t){return e+t},0),kx=Cs("ceil"),Dx=ra(function(e,t){return e/t},1),Wx=Cs("floor");function Bx(e){return e&&e.length?Xi(e,et,ps):n}function Rx(e,t){return e&&e.length?Xi(e,Y(t,2),ps):n}function $x(e){return yc(e,et)}function zx(e,t){return yc(e,Y(t,2))}function Ux(e){return e&&e.length?Xi(e,et,ys):n}function Hx(e,t){return e&&e.length?Xi(e,Y(t,2),ys):n}var qx=ra(function(e,t){return e*t},1),jx=Cs("round"),Gx=ra(function(e,t){return e-t},0);function Jx(e){return e&&e.length?ns(e,et):0}function Yx(e,t){return e&&e.length?ns(e,Y(t,2)):0}return d.after=gw,d.ary=Hd,d.assign=rS,d.assignIn=rh,d.assignInWith=ga,d.assignWith=iS,d.at=aS,d.before=qd,d.bind=zs,d.bindAll=lx,d.bindKey=jd,d.castArray=Ow,d.chain=$d,d.chunk=Wb,d.compact=Bb,d.concat=Rb,d.cond=cx,d.conforms=dx,d.constant=Ys,d.countBy=J_,d.create=oS,d.curry=Gd,d.curryRight=Jd,d.debounce=Yd,d.defaults=sS,d.defaultsDeep=uS,d.defer=mw,d.delay=yw,d.difference=$b,d.differenceBy=zb,d.differenceWith=Ub,d.drop=Hb,d.dropRight=qb,d.dropRightWhile=jb,d.dropWhile=Gb,d.fill=Jb,d.filter=K_,d.flatMap=Z_,d.flatMapDeep=Q_,d.flatMapDepth=ew,d.flatten=Dd,d.flattenDeep=Yb,d.flattenDepth=Kb,d.flip=bw,d.flow=px,d.flowRight=vx,d.fromPairs=Xb,d.functions=vS,d.functionsIn=gS,d.groupBy=tw,d.initial=Zb,d.intersection=Qb,d.intersectionBy=e_,d.intersectionWith=t_,d.invert=yS,d.invertBy=bS,d.invokeMap=rw,d.iteratee=Ks,d.keyBy=iw,d.keys=Fe,d.keysIn=Qe,d.map=la,d.mapKeys=wS,d.mapValues=SS,d.matches=gx,d.matchesProperty=mx,d.memoize=da,d.merge=xS,d.mergeWith=ih,d.method=yx,d.methodOf=bx,d.mixin=Xs,d.negate=ha,d.nthArg=wx,d.omit=ES,d.omitBy=AS,d.once=_w,d.orderBy=aw,d.over=Sx,d.overArgs=ww,d.overEvery=xx,d.overSome=Ex,d.partial=Us,d.partialRight=Kd,d.partition=ow,d.pick=TS,d.pickBy=ah,d.property=dh,d.propertyOf=Ax,d.pull=a_,d.pullAll=Bd,d.pullAllBy=o_,d.pullAllWith=s_,d.pullAt=u_,d.range=Tx,d.rangeRight=Ix,d.rearg=Sw,d.reject=fw,d.remove=f_,d.rest=xw,d.reverse=Rs,d.sampleSize=cw,d.set=OS,d.setWith=CS,d.shuffle=dw,d.slice=l_,d.sortBy=vw,d.sortedUniq=m_,d.sortedUniqBy=y_,d.split=ZS,d.spread=Ew,d.tail=b_,d.take=__,d.takeRight=w_,d.takeRightWhile=S_,d.takeWhile=x_,d.tap=B_,d.throttle=Aw,d.thru=fa,d.toArray=eh,d.toPairs=oh,d.toPairsIn=sh,d.toPath=Px,d.toPlainObject=nh,d.transform=NS,d.unary=Tw,d.union=E_,d.unionBy=A_,d.unionWith=T_,d.uniq=I_,d.uniqBy=O_,d.uniqWith=C_,d.unset=LS,d.unzip=$s,d.unzipWith=Rd,d.update=PS,d.updateWith=FS,d.values=fr,d.valuesIn=MS,d.without=N_,d.words=lh,d.wrap=Iw,d.xor=L_,d.xorBy=P_,d.xorWith=F_,d.zip=M_,d.zipObject=k_,d.zipObjectDeep=D_,d.zipWith=W_,d.entries=oh,d.entriesIn=sh,d.extend=rh,d.extendWith=ga,Xs(d,d),d.add=Mx,d.attempt=ch,d.camelCase=BS,d.capitalize=uh,d.ceil=kx,d.clamp=kS,d.clone=Cw,d.cloneDeep=Lw,d.cloneDeepWith=Pw,d.cloneWith=Nw,d.conformsTo=Fw,d.deburr=fh,d.defaultTo=hx,d.divide=Dx,d.endsWith=RS,d.eq=Ot,d.escape=$S,d.escapeRegExp=zS,d.every=Y_,d.find=X_,d.findIndex=Md,d.findKey=fS,d.findLast=V_,d.findLastIndex=kd,d.findLastKey=lS,d.floor=Wx,d.forEach=zd,d.forEachRight=Ud,d.forIn=cS,d.forInRight=dS,d.forOwn=hS,d.forOwnRight=pS,d.get=js,d.gt=Mw,d.gte=kw,d.has=mS,d.hasIn=Gs,d.head=Wd,d.identity=et,d.includes=nw,d.indexOf=Vb,d.inRange=DS,d.invoke=_S,d.isArguments=Mn,d.isArray=te,d.isArrayBuffer=Dw,d.isArrayLike=Ze,d.isArrayLikeObject=Ae,d.isBoolean=Ww,d.isBuffer=vn,d.isDate=Bw,d.isElement=Rw,d.isEmpty=$w,d.isEqual=zw,d.isEqualWith=Uw,d.isError=Hs,d.isFinite=Hw,d.isFunction=Xt,d.isInteger=Xd,d.isLength=pa,d.isMap=Vd,d.isMatch=qw,d.isMatchWith=jw,d.isNaN=Gw,d.isNative=Jw,d.isNil=Kw,d.isNull=Yw,d.isNumber=Zd,d.isObject=Se,d.isObjectLike=xe,d.isPlainObject=Xr,d.isRegExp=qs,d.isSafeInteger=Xw,d.isSet=Qd,d.isString=va,d.isSymbol=ut,d.isTypedArray=ur,d.isUndefined=Vw,d.isWeakMap=Zw,d.isWeakSet=Qw,d.join=n_,d.kebabCase=US,d.last=yt,d.lastIndexOf=r_,d.lowerCase=HS,d.lowerFirst=qS,d.lt=eS,d.lte=tS,d.max=Bx,d.maxBy=Rx,d.mean=$x,d.meanBy=zx,d.min=Ux,d.minBy=Hx,d.stubArray=Zs,d.stubFalse=Qs,d.stubObject=Ox,d.stubString=Cx,d.stubTrue=Nx,d.multiply=qx,d.nth=i_,d.noConflict=_x,d.noop=Vs,d.now=ca,d.pad=jS,d.padEnd=GS,d.padStart=JS,d.parseInt=YS,d.random=WS,d.reduce=sw,d.reduceRight=uw,d.repeat=KS,d.replace=XS,d.result=IS,d.round=jx,d.runInContext=b,d.sample=lw,d.size=hw,d.snakeCase=VS,d.some=pw,d.sortedIndex=c_,d.sortedIndexBy=d_,d.sortedIndexOf=h_,d.sortedLastIndex=p_,d.sortedLastIndexBy=v_,d.sortedLastIndexOf=g_,d.startCase=QS,d.startsWith=ex,d.subtract=Gx,d.sum=Jx,d.sumBy=Yx,d.template=tx,d.times=Lx,d.toFinite=Vt,d.toInteger=re,d.toLength=th,d.toLower=nx,d.toNumber=bt,d.toSafeInteger=nS,d.toString=ge,d.toUpper=rx,d.trim=ix,d.trimEnd=ax,d.trimStart=ox,d.truncate=sx,d.unescape=ux,d.uniqueId=Fx,d.upperCase=fx,d.upperFirst=Js,d.each=zd,d.eachRight=Ud,d.first=Wd,Xs(d,(function(){var e={};return Pt(d,function(t,r){ve.call(d.prototype,r)||(e[r]=t)}),e})(),{chain:!1}),d.VERSION=o,ht(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){d[e].placeholder=d}),ht(["drop","take"],function(e,t){ue.prototype[e]=function(r){r=r===n?1:Le(re(r),0);var s=this.__filtered__&&!t?new ue(this):this.clone();return s.__filtered__?s.__takeCount__=Re(r,s.__takeCount__):s.__views__.push({size:Re(r,nt),type:e+(s.__dir__<0?"Right":"")}),s},ue.prototype[e+"Right"]=function(r){return this.reverse()[e](r).reverse()}}),ht(["filter","map","takeWhile"],function(e,t){var r=t+1,s=r==We||r==Ye;ue.prototype[e]=function(l){var h=this.clone();return h.__iteratees__.push({iteratee:Y(l,3),type:r}),h.__filtered__=h.__filtered__||s,h}}),ht(["head","last"],function(e,t){var r="take"+(t?"Right":"");ue.prototype[e]=function(){return this[r](1).value()[0]}}),ht(["initial","tail"],function(e,t){var r="drop"+(t?"":"Right");ue.prototype[e]=function(){return this.__filtered__?new ue(this):this[r](1)}}),ue.prototype.compact=function(){return this.filter(et)},ue.prototype.find=function(e){return this.filter(e).head()},ue.prototype.findLast=function(e){return this.reverse().find(e)},ue.prototype.invokeMap=oe(function(e,t){return typeof e=="function"?new ue(this):this.map(function(r){return qr(r,e,t)})}),ue.prototype.reject=function(e){return this.filter(ha(Y(e)))},ue.prototype.slice=function(e,t){e=re(e);var r=this;return r.__filtered__&&(e>0||t<0)?new ue(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==n&&(t=re(t),r=t<0?r.dropRight(-t):r.take(t-e)),r)},ue.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},ue.prototype.toArray=function(){return this.take(nt)},Pt(ue.prototype,function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),s=/^(?:head|last)$/.test(t),l=d[s?"take"+(t=="last"?"Right":""):t],h=s||/^find/.test(t);l&&(d.prototype[t]=function(){var v=this.__wrapped__,m=s?[1]:arguments,S=v instanceof ue,F=m[0],M=S||te(v),D=function(se){var le=l.apply(d,un([se],m));return s&&z?le[0]:le};M&&r&&typeof F=="function"&&F.length!=1&&(S=M=!1);var z=this.__chain__,j=!!this.__actions__.length,X=h&&!z,ae=S&&!j;if(!h&&M){v=ae?v:new ue(this);var V=e.apply(v,m);return V.__actions__.push({func:fa,args:[D],thisArg:n}),new vt(V,z)}return X&&ae?e.apply(this,m):(V=this.thru(D),X?s?V.value()[0]:V.value():V)})}),ht(["pop","push","shift","sort","splice","unshift"],function(e){var t=ki[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",s=/^(?:pop|shift)$/.test(e);d.prototype[e]=function(){var l=arguments;if(s&&!this.__chain__){var h=this.value();return t.apply(te(h)?h:[],l)}return this[r](function(v){return t.apply(te(v)?v:[],l)})}}),Pt(ue.prototype,function(e,t){var r=d[t];if(r){var s=r.name+"";ve.call(rr,s)||(rr[s]=[]),rr[s].push({name:t,func:r})}}),rr[na(n,L).name]=[{name:"wrapper",func:n}],ue.prototype.clone=u1,ue.prototype.reverse=f1,ue.prototype.value=l1,d.prototype.at=R_,d.prototype.chain=$_,d.prototype.commit=z_,d.prototype.next=U_,d.prototype.plant=q_,d.prototype.reverse=j_,d.prototype.toJSON=d.prototype.valueOf=d.prototype.value=G_,d.prototype.first=d.prototype.head,Wr&&(d.prototype[Wr]=H_),d}),er=zy();Tn?((Tn.exports=er)._=er,Ko._=er):ke._=er}).call(vh)})(dr,dr.exports)),dr.exports}var kn=gh();class he{static toString(i){const n=eu(i);if(n==null)throw new Error("buildWinId: stringify error");return n}static getParamString(i,n){return i.params?.[n]?.toString()}static getParam(i,n){return i.params?.[n]}static isEquals(i,n){return kn.isEqual(i,n)}static indexOf(i,n){return i.map(he.toString).indexOf(he.toString(n))}static includes(i,n){return i.map(he.toString).includes(he.toString(n))}static withoutDup(i){const{params:n,viewId:o,title:u}=i;return{params:n,viewId:o,title:u}}static replaceDup(i){const{params:n,viewId:o,title:u}=i;return{params:n,viewId:o,title:u,dupId:`${new Date().getTime()}`}}}var ei={exports:{}},nu;function mh(){return nu||(nu=1,(function(a,i){Object.defineProperty(i,"__esModule",{value:!0});function n(C){return typeof C=="object"&&!("toString"in C)?Object.prototype.toString.call(C).slice(8,-1):C}var o=typeof process=="object"&&process.env.NODE_ENV==="production";function u(C,P){if(!C)throw o?new Error("Invariant failed"):new Error(P())}i.invariant=u;var f=Object.prototype.hasOwnProperty,c=Array.prototype.splice,p=Object.prototype.toString;function g(C){return p.call(C).slice(8,-1)}var y=Object.assign||(function(C,P){return _(P).forEach(function(q){f.call(P,q)&&(C[q]=P[q])}),C}),_=typeof Object.getOwnPropertySymbols=="function"?function(C){return Object.keys(C).concat(Object.getOwnPropertySymbols(C))}:function(C){return Object.keys(C)};function w(C){return Array.isArray(C)?y(C.constructor(C.length),C):g(C)==="Map"?new Map(C):g(C)==="Set"?new Set(C):C&&typeof C=="object"?y(Object.create(Object.getPrototypeOf(C)),C):C}var O=(function(){function C(){this.commands=y({},x),this.update=this.update.bind(this),this.update.extend=this.extend=this.extend.bind(this),this.update.isEquals=function(P,q){return P===q},this.update.newContext=function(){return new C().update}}return Object.defineProperty(C.prototype,"isEquals",{get:function(){return this.update.isEquals},set:function(P){this.update.isEquals=P},enumerable:!0,configurable:!0}),C.prototype.extend=function(P,q){this.commands[P]=q},C.prototype.update=function(P,q){var ee=this,J=typeof q=="function"?{$apply:q}:q;Array.isArray(P)&&Array.isArray(J)||u(!Array.isArray(J),function(){return"update(): You provided an invalid spec to update(). The spec may not contain an array except as the value of $set, $push, $unshift, $splice or any custom command allowing an array value."}),u(typeof J=="object"&&J!==null,function(){return"update(): You provided an invalid spec to update(). The spec and every included key path must be plain objects containing one of the "+("following commands: "+Object.keys(ee.commands).join(", ")+".")});var ie=P;return _(J).forEach(function(K){if(f.call(ee.commands,K)){var We=P===ie;ie=ee.commands[K](J[K],ie,J,P),We&&ee.isEquals(ie,P)&&(ie=P)}else{var Je=g(P)==="Map"?ee.update(P.get(K),J[K]):ee.update(P[K],J[K]),Ye=g(ie)==="Map"?ie.get(K):ie[K];(!ee.isEquals(Je,Ye)||typeof Je>"u"&&!f.call(P,K))&&(ie===P&&(ie=w(P)),g(ie)==="Map"?ie.set(K,Je):ie[K]=Je)}}),ie},C})();i.Context=O;var x={$push:function(C,P,q){return A(P,q,"$push"),C.length?P.concat(C):P},$unshift:function(C,P,q){return A(P,q,"$unshift"),C.length?C.concat(P):P},$splice:function(C,P,q,ee){return L(P,q),C.forEach(function(J){W(J),P===ee&&J.length&&(P=w(ee)),c.apply(P,J)}),P},$set:function(C,P,q){return Z(q),C},$toggle:function(C,P){T(C,"$toggle");var q=C.length?w(P):P;return C.forEach(function(ee){q[ee]=!P[ee]}),q},$unset:function(C,P,q,ee){return T(C,"$unset"),C.forEach(function(J){Object.hasOwnProperty.call(P,J)&&(P===ee&&(P=w(ee)),delete P[J])}),P},$add:function(C,P,q,ee){return de(P,"$add"),T(C,"$add"),g(P)==="Map"?C.forEach(function(J){var ie=J[0],K=J[1];P===ee&&P.get(ie)!==K&&(P=w(ee)),P.set(ie,K)}):C.forEach(function(J){P===ee&&!P.has(J)&&(P=w(ee)),P.add(J)}),P},$remove:function(C,P,q,ee){return de(P,"$remove"),T(C,"$remove"),C.forEach(function(J){P===ee&&P.has(J)&&(P=w(ee)),P.delete(J)}),P},$merge:function(C,P,q,ee){return R(P,C),_(C).forEach(function(J){C[J]!==P[J]&&(P===ee&&(P=w(ee)),P[J]=C[J])}),P},$apply:function(C,P){return U(C),C(P)}},E=new O;i.isEquals=E.update.isEquals,i.extend=E.extend,i.default=E.update,i.default.default=a.exports=y(i.default,i);function A(C,P,q){u(Array.isArray(C),function(){return"update(): expected target of "+n(q)+" to be an array; got "+n(C)+"."}),T(P[q],q)}function T(C,P){u(Array.isArray(C),function(){return"update(): expected spec of "+n(P)+" to be an array; got "+n(C)+". Did you forget to wrap your parameter in an array?"})}function L(C,P){u(Array.isArray(C),function(){return"Expected $splice target to be an array; got "+n(C)}),W(P.$splice)}function W(C){u(Array.isArray(C),function(){return"update(): expected spec of $splice to be an array of arrays; got "+n(C)+". Did you forget to wrap your parameters in an array?"})}function U(C){u(typeof C=="function",function(){return"update(): expected spec of $apply to be a function; got "+n(C)+"."})}function Z(C){u(Object.keys(C).length===1,function(){return"Cannot have more than one key in an object with $set"})}function R(C,P){u(P&&typeof P=="object",function(){return"update(): $merge expects a spec of type 'object'; got "+n(P)}),u(C&&typeof C=="object",function(){return"update(): $merge expects a target of type 'object'; got "+n(C)})}function de(C,P){var q=g(C);u(q==="Map"||q==="Set",function(){return"update(): "+n(P)+" expects a target of type Set or Map; got "+n(q)})}})(ei,ei.exports)),ei.exports}var yh=mh();const bh=Qr(yh);var _h=Object.getOwnPropertyDescriptor,wh=(a,i,n,o)=>{for(var u=o>1?void 0:o?_h(i,n):i,f=a.length-1,c;f>=0;f--)(c=a[f])&&(u=c(u)||u);return u};ce.JustLayoutService=class{insertWinIdToStack=(i,n)=>{if(i==null)return i;const o=this.getNodeByBranch(i,n.branch);if(o.type!=="stack")return i;const f=o.tabs,c=n.index>=0?kn.clamp(n.index,0,f.length):f.length;return this.updateNodeOfBranch(i,n.branch,{$set:{...o,type:"stack",tabs:[...f.slice(0,c),n.justId,...f.slice(c)],active:n.justId}})};insertWinIdToSplit=(i,n)=>{if(i==null)return i;const o=this.getNodeByBranch(i,n.branch),u=n.pos==="first"?"second":"first";return this.updateNodeOfBranch(i,n.branch,{$set:{type:"split-percentage",direction:n.direction,[u]:{...o,name:void 0},[n.pos]:{type:"stack",tabs:[n.justId],active:n.justId,name:void 0},size:n.size??50,dndAccept:o.dndAccept,name:o.name,hideTitle:o.hideTitle}})};removeWinId=(i,n)=>{if(i==null)return null;const o=this.getNodeByWinId(i,n);if(o?.type!=="stack")return i;const u=o.active?he.indexOf(o.tabs,o.active):0,f=o.tabs.filter(p=>!he.isEquals(p,n));let c;return o.active!==null&&he.includes(f,o.active)?c=o.active:c=f.length>0&&o.active!==null?f[kn.clamp(u-1,0,f.length-1)]:null,this.updateNodeOfWinId(i,n,{$set:{...o,tabs:f,active:c}})};removeAllTabs=(i,n)=>{if(i==null)return null;const o=this.getNodeByBranch(i,n);return o==null||o.type!=="stack"?i:this.updateNodeOfBranch(i,n,{$set:{...o,tabs:[],active:null}})};activeWinId=(i,n)=>{if(i==null)return null;const o=this.getNodeByWinId(i,n);return o==null?i:this.updateNodeOfWinId(i,n,{$set:{...o,active:n}})};getActiveWinIds=i=>{const n=(o,u)=>{if(o===null)return u;if(o.type==="stack")return o.active!==null?[...u,o.active]:u;{const f=n(o.first,u);return n(o.second,f)}};return n(i,[])};removeEmpty=i=>{if(i==null)return i;const n=this.findEmptyBranch(i,null,[]);if(n===null)return i;if(n.length===0)return null;const o=n[n.length-1],u=n.slice(0,-1),f=o==="first"?"second":"first",c=this.getNodeByBranch(i,u),p=this.getNodeByBranch(i,[...u,f]);return this.updateNodeOfBranch(i,u,{$set:{...p,dndAccept:c.dndAccept,name:c.name,hideTitle:c.hideTitle}})};findEmptyBranch=(i,n,o)=>{if(i===null)return null;if(i.type==="stack"){const u=n!=null&&n.type!="stack"&&(!!n.first.name||!!n.second.name);if(i.tabs.length===0&&!u)return o}else{const u=this.findEmptyBranch(i.first,i,[...o,"first"]);if(u!=null)return u;const f=this.findEmptyBranch(i.second,i,[...o,"second"]);if(f!=null)return f}return null};moveWinIdToStack=(i,n)=>{const o=this.removeWinId(i,n.justId);return this.insertWinIdToStack(o,n)};moveWinIdToSplit=(i,n)=>{const o=this.removeWinId(i,n.justId);return this.insertWinIdToSplit(o,n)};getBranch=(i,n,o)=>{if(i===null)return null;if(i.type==="stack")return he.includes(i.tabs,n)?o:null;{const u=this.getBranch(i.first,n,[...o,"first"]);if(u!=null)return u;const f=this.getBranch(i.second,n,[...o,"second"]);return f??null}};getBranchByWinId=(i,n)=>this.getBranch(i,n,[]);getNodeInfoByNodeName=(i,n,o)=>{if(i===null)return null;if(i.name==n)return{node:i,branch:[...o]};if(i.type!="stack"){const u=this.getNodeInfoByNodeName(i.first,n,[...o,"first"]);if(u!=null)return u;const f=this.getNodeInfoByNodeName(i.second,n,[...o,"second"]);if(f!=null)return f}return null};getTabNodeInfoByNodeName=(i,n,o)=>{if(i===null)return null;const u=this.getNodeInfoByNodeName(i,n,o);if(u==null)return null;if(u.node.type==="stack")return u;{const f=this.getTabNodeInfo(u.node,[]);if(f!=null)return{node:f.node,branch:[...u.branch,...f.branch]}}return null};getNodeByWinId=(i,n)=>{if(i===null)return null;if(i.type==="stack")return he.includes(i.tabs,n)?(console.log("includes ok:",i.tabs,n),i):(console.log("includes nok:",i.tabs,n),null);{const o=this.getNodeByWinId(i.first,n);if(o!=null)return o;const u=this.getNodeByWinId(i.second,n);return u??null}};getTabBranch=(i,n)=>{if(i===null)return null;if(i.type==="stack")return n;{let o;i.type==="split-pixels"?o=i.primary==="first"?"second":"first":o=i.direction==="row"?"second":"first";const u=this.getTabBranch(i[o],[...n,o]);if(u!=null)return u}return null};getTabNodeInfo=(i,n)=>{if(i===null)return null;if(i.type==="stack")return{node:i,branch:n};{let o;i.type==="split-pixels"?o=i.primary==="first"?"second":"first":o=i.direction==="row"?"second":"first";const u=this.getTabNodeInfo(i[o],[...n,o]);if(u!=null)return u}return null};addTabWin=(i,n,o,u)=>{if(i===null)return null;const f=this.getNodeByBranch(i,n);if(f.type!=="stack")return i;const c=u<0?f.tabs.length:kn.clamp(u,0,f.tabs.length);return this.updateNodeOfBranch(i,n,{$merge:{tabs:[...f.tabs.slice(0,c),o,...f.tabs.slice(c)],active:o}})};queryWinIdsByViewId=(i,n,o)=>{if(i===null)return o;if(i.type==="stack")return[...o,...i.tabs.filter(u=>u.viewId===n)];{const u=this.queryWinIdsByViewId(i.first,n,o);return this.queryWinIdsByViewId(i.second,n,[...o,...u])}};queryDupWinIdsByWinId=(i,n,o)=>{if(i===null)return o;if(i.type==="stack"){const u=he.withoutDup(n),f=i.tabs.filter(c=>{const p=he.withoutDup(c);return he.isEquals(u,p)});return[...o,...f]}else{const u=this.queryDupWinIdsByWinId(i.first,n,o);return this.queryDupWinIdsByWinId(i.second,n,[...o,...u])}};queryWinIdsByStack=(i,n)=>{if(i===null)return[];const o=this.getNodeByBranch(i,n);return o.type!=="stack"?[]:o.tabs};getNodeByBranch=(i,n)=>n.reduce((o,u)=>o?.[u],i);updateNodeOfBranch=(i,n,o)=>{const u=this.buildSpecFromUpdateSpec(n,o);return this.updateNode(i,u)};updateNodeOfWinId=(i,n,o)=>{const u=this.getBranchByWinId(i,n);if(u==null)return i;const f=this.buildSpecFromUpdateSpec(u,o);return this.updateNode(i,f)};hasWinId=(i,n)=>this.getNodeByWinId(i,n)!=null;updateNode=(i,n)=>i==null?null:bh(i,n);buildSpecFromUpdateSpec=(i,n)=>i.length>0?kn.set({},i,n):n;getNodeAtBranch=(i,n)=>n.length>0?kn.get(i,n,null):i;getBranchRightTop=i=>{if(i==null)return[];let n=i;const o=[];for(;n.type!=="stack";)n.direction==="row"?(o.push("second"),n=n.second):n.direction==="column"&&(o.push("first"),n=n.first);return o};updateSplitSize=(i,n,o)=>{const u=this.buildSpecFromUpdateSpec(n,{$merge:{size:o}});return this.updateNode(i,u)}},ce.JustLayoutService=wh([Vr.injectable()],ce.JustLayoutService);var Sh=Object.getOwnPropertyDescriptor,xh=(a,i,n,o)=>{for(var u=o>1?void 0:o?Sh(i,n):i,f=a.length-1,c;f>=0;f--)(c=a[f])&&(u=c(u)||u);return u},Eh=(a,i)=>(n,o)=>i(n,o,a);ce.JustLayoutStore=class{service;layout=null;lastActiveId=null;lastActiveTm=new Date().getTime();fullScreenLayout=null;fullScreenHideTitle=!1;tabTitleMap=new Map;tabTitleTooltipMap=new Map;constructor(i){this.service=i,lr.makeAutoObservable(this,{service:!1},{autoBind:!0})}setLayout=i=>{this.layout=i};setTabTitle=(i,n)=>{this.tabTitleMap.set(he.toString(i),n)};getTabTitle=i=>this.tabTitleMap.get(he.toString(i));setTabTitleTooltip=(i,n)=>{this.tabTitleTooltipMap.set(he.toString(i),n)};getTabTitleTooltip=i=>this.tabTitleTooltipMap.get(he.toString(i));setFullScreenLayoutByBranch=i=>{i===null?this.fullScreenLayout=null:this.fullScreenLayout=this.service.getNodeAtBranch(this.layout,i)};setFullScreenHideTitle=i=>{this.fullScreenHideTitle=i};addTab=i=>{const n=this.service.getTabBranch(this.layout,[]);n!=null&&(this.service.hasWinId(this.layout,i.justId)?this.layout=this.service.activeWinId(this.layout,i.justId):this.layout=this.service.addTabWin(this.layout,n,i.justId,-1),this.lastActiveId=i.justId,this.lastActiveTm=new Date().getTime())};addTabByNodeName=i=>{const n=this.service.getTabNodeInfoByNodeName(this.layout,i.nodeName,[]);n!=null&&(this.service.hasWinId(this.layout,i.justId)?this.layout=this.service.activeWinId(this.layout,i.justId):this.layout=this.service.addTabWin(this.layout,n.branch,i.justId,-1),this.lastActiveId=i.justId,this.lastActiveTm=new Date().getTime())};queryWinIdsByViewId=i=>this.service.queryWinIdsByViewId(this.layout??null,i,[]);cloneTab=i=>{const n=this.service.getBranchByWinId(this.layout,i.justId);if(n==null)return;const o=this.service.getNodeAtBranch(this.layout,n);let u=0;o?.type==="stack"&&o.active!=null&&(u=he.indexOf(o.tabs,i.justId)+1),this.layout=this.service.addTabWin(this.layout,n,i.cloneJustId,u),this.lastActiveId=i.cloneJustId,this.lastActiveTm=new Date().getTime()};removeWin=i=>{this.layout=this.service.removeEmpty(this.service.removeWinId(this.layout,i.justId))};removeAllTabs=i=>{this.layout=this.service.removeEmpty(this.service.removeAllTabs(this.layout,i.branch))};activeWin=i=>{this.layout=this.service.activeWinId(this.layout,i.justId),this.lastActiveId=i.justId,this.lastActiveTm=new Date().getTime()};activePrevWin=()=>{const i=this.lastActiveId;if(i==null)return;const n=this.service.getNodeByWinId(this.layout,i);if(n?.type!=="stack"||n.tabs.length===0)return;const u=(he.indexOf(n.tabs,i)-1+n.tabs.length)%n.tabs.length,f=n.tabs[u];this.activeWin({justId:f})};activeNextWin=()=>{const i=this.lastActiveId;if(i==null)return;const n=this.service.getNodeByWinId(this.layout,i);if(n?.type!=="stack"||n.tabs.length===0)return;const u=(he.indexOf(n.tabs,i)+1)%n.tabs.length,f=n.tabs[u];this.activeWin({justId:f})};updateResize=i=>{this.layout=this.service.updateSplitSize(this.layout,i.branch,i.size)};moveWin=i=>{i.pos==="stack"?this.layout=this.service.removeEmpty(this.service.moveWinIdToStack(this.layout,i)):this.layout=this.service.removeEmpty(this.service.moveWinIdToSplit(this.layout,i)),this.lastActiveId=i.justId,this.lastActiveTm=new Date().getTime()};toggleSideMenu=()=>{if(this.layout===null||this.layout.type!=="split-pixels")return;const i=this.layout.size<=0?this.layout.primaryDefaultSize:0;this.updateResize({branch:[],size:i})};toggleWin=({nodeName:i})=>{const n=this.layout,o=this.service.getNodeInfoByNodeName(n,i,[]);if(o==null||o.node.type!=="split-pixels")return;const u=o.node.primaryHide!==!0,f=!u||o.node.size<10?o.node.primaryDefaultSize:0,c=this.service.buildSpecFromUpdateSpec(o.branch,{$merge:{size:f,primaryHide:u}}),p=this.service.updateNode(n,c);p!=null&&this.setLayout(p)};showWin=({nodeName:i,show:n})=>{const o=this.layout,u=this.service.getNodeInfoByNodeName(o,i,[]);if(u!=null&&u.node.type==="split-pixels"&&n===(u.node.size===0)){const f=n?u.node.primaryDefaultSize:0,c=this.service.buildSpecFromUpdateSpec(u.branch,{$merge:{size:f}}),p=this.service.updateNode(o,c);if(p==null)return;this.setLayout(p)}};getSizeByNodeName=({nodeName:i})=>{const n=this.layout,o=this.service.getNodeInfoByNodeName(n,i,[]);if(o!=null)return o.node.type==="split-pixels"||o.node.type==="split-percentage"?o.node.size:null};getBranchByJustId=({justId:i})=>{const n=this.layout;return this.service.getBranchByWinId(n,i)};isPrimaryHide=({nodeName:i})=>{const n=this.layout,o=this.service.getNodeInfoByNodeName(n,i,[]);if(o!=null)return o.node.type==="split-pixels"?o.node.primaryHide:null};openWin=({justId:i})=>{this.service.hasWinId(this.layout??null,i)?this.activeWin({justId:i}):this.addTab({justId:i})};openWinByNodeName=({justId:i,nodeName:n})=>{this.service.hasWinId(this.layout??null,i)?(console.log("hasWinId",i),this.activeWin({justId:i})):(console.log("addTabByNodeName",i),this.addTabByNodeName({justId:i,nodeName:n}))};getWinIds=({viewId:i})=>this.service.queryWinIdsByViewId(this.layout??null,i,[]);getDupWinIds=({justId:i})=>this.service.queryDupWinIdsByWinId(this.layout??null,i,[]);getWinIdsByBranch=({branch:i})=>this.service.queryWinIdsByStack(this.layout??null,i);getNodeAtBranch=({branch:i})=>this.service.getNodeAtBranch(this.layout??null,i);openWinMenu=({justId:i,nodeName:n})=>{const o=i.viewId,u=this.getWinIds({viewId:o});if(u.length===0)console.log("openWinMenu1",u,i),this.openWinByNodeName({justId:i,nodeName:n});else{const f=u.toSorted((c,p)=>(c.dupId??"")<=(p.dupId??"")?-1:1).at(-1);f&&(console.log("openWinMenu2",u,f),this.openWinByNodeName({justId:f,nodeName:n}))}};fullScreenWin=async(i,n,o=!1)=>{n?this.setLayout(null):(this.setFullScreenLayoutByBranch(i),this.setFullScreenHideTitle(o))}},ce.JustLayoutStore=xh([Vr.injectable(),Eh(0,Vr.inject(kt.JustLayoutService))],ce.JustLayoutStore);const Ah=new Vr.ContainerModule(({bind:a})=>{a(kt.JustLayoutService).to(ce.JustLayoutService).inSingletonScope(),a(kt.JustLayoutStore).to(ce.JustLayoutStore).inTransientScope(),a(kt.JustLayoutStoreCacheMap).toConstantValue(new Map),a(kt.JustLayoutFactory).toFactory(i=>{const n=i.get(kt.JustLayoutStoreCacheMap);return o=>{if(!n.has(o)){const u=i.get(kt.JustLayoutStore);n.set(o,u)}return n.get(o)}})}),Nt=a=>{const i=ph.useInjection(kt.JustLayoutFactory),[n]=k.useState(()=>i(a));return n};var ya={exports:{}};var ru;function Th(){return ru||(ru=1,(function(a){(function(){var i={}.hasOwnProperty;function n(){for(var f="",c=0;c<arguments.length;c++){var p=arguments[c];p&&(f=u(f,o(p)))}return f}function o(f){if(typeof f=="string"||typeof f=="number")return f;if(typeof f!="object")return"";if(Array.isArray(f))return n.apply(null,f);if(f.toString!==Object.prototype.toString&&!f.toString.toString().includes("[native code]"))return f.toString();var c="";for(var p in f)i.call(f,p)&&f[p]&&(c=u(c,p));return c}function u(f,c){return c?f?f+" "+c:f+c:f}a.exports?(n.default=n,a.exports=n):window.classNames=n})()})(ya)),ya.exports}var Ih=Th();const _t=Qr(Ih),iu=a=>!!a&&a[0]==="o",au=cr.unstable_batchedUpdates,hr=(a,i)=>a===!0||!!(a&&a[i]),ct=(a,i)=>typeof a=="function"?a(i):a,Oh="_szhsinMenu",Ch=a=>a[Oh],ti=(a,i)=>(i&&Object.keys(i).forEach(n=>{const o=a[n],u=i[n];typeof u=="function"&&o?a[n]=(...f)=>{u(...f),o(...f)}:a[n]=u}),a),Nh=a=>{if(typeof a!="string")return{top:0,right:0,bottom:0,left:0};const i=a.trim().split(/\s+/,4).map(parseFloat),n=isNaN(i[0])?0:i[0],o=isNaN(i[1])?n:i[1];return{top:n,right:o,bottom:isNaN(i[2])?n:i[2],left:isNaN(i[3])?o:i[3]}},ba=a=>{for(;a;){if(a=a.parentNode,!a||a===document.body||!a.parentNode)return;const{overflow:i,overflowX:n,overflowY:o}=getComputedStyle(a);if(/auto|scroll|overlay|hidden/.test(i+o+n))return a}};function ou(a,i){return{"aria-disabled":a||void 0,tabIndex:i?0:-1}}function su(a,i){for(let n=0;n<a.length;n++)if(a[n]===i)return n;return-1}const ni=({block:a,element:i,modifiers:n,className:o})=>k.useMemo(()=>{const u=i?`${a}__${i}`:a;let f=u;n&&Object.keys(n).forEach(p=>{const g=n[p];g&&(f+=` ${u}--${g===!0?p:`${p}-${g}`}`)});let c=typeof o=="function"?o(n):o;return typeof c=="string"&&(c=c.trim(),c&&(f+=` ${c}`)),f},[a,i,n,o]),Lh="szh-menu-container",ri="szh-menu",Ph="arrow",Fh="item",uu=k.createContext(),fu=k.createContext({}),lu=k.createContext({}),cu=k.createContext({}),Mh=k.createContext({}),_a=k.createContext({}),wt=Object.freeze({ENTER:"Enter",ESC:"Escape",SPACE:" ",HOME:"Home",END:"End",LEFT:"ArrowLeft",RIGHT:"ArrowRight",UP:"ArrowUp",DOWN:"ArrowDown"}),Ce=Object.freeze({RESET:0,SET:1,UNSET:2,INCREASE:3,DECREASE:4,FIRST:5,LAST:6,SET_INDEX:7}),pr=Object.freeze({CLICK:"click",CANCEL:"cancel",BLUR:"blur",SCROLL:"scroll"}),vr=Object.freeze({FIRST:"first",LAST:"last"}),kh=Object.freeze({entering:"opening",entered:"open",exiting:"closing",exited:"closed"}),du="absolute",Dh="none",Wh="menuitem",wa={preventScroll:!0},Bh=({className:a,containerRef:i,containerProps:n,children:o,isOpen:u,theming:f,transition:c,onClose:p})=>{const g=hr(c,"item"),y=({key:w})=>{w===wt.ESC&&ct(p,{key:w,reason:pr.CANCEL})},_=w=>{u&&!w.currentTarget.contains(w.relatedTarget)&&ct(p,{reason:pr.BLUR})};return $.jsx("div",{...ti({onKeyDown:y,onBlur:_},n),className:ni({block:Lh,modifiers:k.useMemo(()=>({theme:f,itemTransition:g}),[f,g]),className:a}),style:{position:"absolute",...n?.style},ref:i,children:o})},Rh=()=>{let a,i=0;return{toggle:n=>{n?i++:i--,i=Math.max(i,0)},on:(n,o,u)=>{i?a||(a=setTimeout(()=>{a=0,o()},n)):u?.()},off:()=>{a&&(clearTimeout(a),a=0)}}},$h=a=>{const[i,n]=k.useState(),u=k.useRef({items:[],hoverIndex:-1,sorted:!1}).current,f=k.useCallback((p,g)=>{const{items:y}=u;if(!p)u.items=[];else if(g)y.push(p);else{const _=y.indexOf(p);_>-1&&(y.splice(_,1),p.contains(document.activeElement)&&(a.current.focus(wa),n()))}u.hoverIndex=-1,u.sorted=!1},[u,a]),c=k.useCallback((p,g,y)=>{const{items:_,hoverIndex:w}=u,O=()=>{if(u.sorted)return;const A=a.current.querySelectorAll(".szh-menu__item");_.sort((T,L)=>su(A,T)-su(A,L)),u.sorted=!0};let x=-1,E;switch(p){case Ce.RESET:break;case Ce.SET:E=g;break;case Ce.UNSET:E=A=>A===g?void 0:A;break;case Ce.FIRST:O(),x=0,E=_[x];break;case Ce.LAST:O(),x=_.length-1,E=_[x];break;case Ce.SET_INDEX:O(),x=y,E=_[x];break;case Ce.INCREASE:O(),x=w,x<0&&(x=_.indexOf(g)),x++,x>=_.length&&(x=0),E=_[x];break;case Ce.DECREASE:O(),x=w,x<0&&(x=_.indexOf(g)),x--,x<0&&(x=_.length-1),E=_[x];break;default:if(process.env.NODE_ENV!=="production")throw new Error(`[React-Menu] Unknown hover action type: ${p}`)}E||(x=-1),n(E),u.hoverIndex=x},[a,u]);return{hoverItem:i,dispatch:c,updateItems:f}},hu=(a,i)=>Math.round(a)===i?a:i,zh=a=>{const i=a.getBoundingClientRect();return i.width=hu(i.width,a.offsetWidth),i.height=hu(i.height,a.offsetHeight),i},Uh=(a,i,n,o)=>{const u=zh(i),f=a.getBoundingClientRect(),c=n===window?{left:0,top:0,right:document.documentElement.clientWidth,bottom:window.innerHeight}:n.getBoundingClientRect(),p=Nh(o),g=E=>E+f.left-c.left-p.left,y=E=>E+f.left+u.width-c.right+p.right,_=E=>E+f.top-c.top-p.top,w=E=>E+f.top+u.height-c.bottom+p.bottom;return{menuRect:u,containerRect:f,getLeftOverflow:g,getRightOverflow:y,getTopOverflow:_,getBottomOverflow:w,confineHorizontally:E=>{let A=g(E);if(A<0)E-=A;else{const T=y(E);T>0&&(E-=T,A=g(E),A<0&&(E-=A))}return E},confineVertically:E=>{let A=_(E);if(A<0)E-=A;else{const T=w(E);T>0&&(E-=T,A=_(E),A<0&&(E-=A))}return E}}},Hh=({arrowRef:a,menuY:i,anchorRect:n,containerRect:o,menuRect:u})=>{let f=n.top-o.top-i+n.height/2;const c=a.current.offsetHeight*1.25;return f=Math.max(c,f),f=Math.min(f,u.height-c),f},qh=({anchorRect:a,containerRect:i,menuRect:n,placeLeftorRightY:o,placeLeftX:u,placeRightX:f,getLeftOverflow:c,getRightOverflow:p,confineHorizontally:g,confineVertically:y,arrowRef:_,arrow:w,direction:O,position:x})=>{let E=O,A=o;x!=="initial"&&(A=y(A),x==="anchor"&&(A=Math.min(A,a.bottom-i.top),A=Math.max(A,a.top-i.top-n.height)));let T,L,W;return E==="left"?(T=u,x!=="initial"&&(L=c(T),L<0&&(W=p(f),(W<=0||-L>W)&&(T=f,E="right")))):(T=f,x!=="initial"&&(W=p(T),W>0&&(L=c(u),(L>=0||-L<W)&&(T=u,E="left")))),x==="auto"&&(T=g(T)),{arrowY:w?Hh({menuY:A,arrowRef:_,anchorRect:a,containerRect:i,menuRect:n}):void 0,x:T,y:A,computedDirection:E}},jh=({arrowRef:a,menuX:i,anchorRect:n,containerRect:o,menuRect:u})=>{let f=n.left-o.left-i+n.width/2;const c=a.current.offsetWidth*1.25;return f=Math.max(c,f),f=Math.min(f,u.width-c),f},Gh=({anchorRect:a,containerRect:i,menuRect:n,placeToporBottomX:o,placeTopY:u,placeBottomY:f,getTopOverflow:c,getBottomOverflow:p,confineHorizontally:g,confineVertically:y,arrowRef:_,arrow:w,direction:O,position:x})=>{let E=O==="top"?"top":"bottom",A=o;x!=="initial"&&(A=g(A),x==="anchor"&&(A=Math.min(A,a.right-i.left),A=Math.max(A,a.left-i.left-n.width)));let T,L,W;return E==="top"?(T=u,x!=="initial"&&(L=c(T),L<0&&(W=p(f),(W<=0||-L>W)&&(T=f,E="bottom")))):(T=f,x!=="initial"&&(W=p(T),W>0&&(L=c(u),(L>=0||-L<W)&&(T=u,E="top")))),x==="auto"&&(T=y(T)),{arrowX:w?jh({menuX:A,arrowRef:_,anchorRect:a,containerRect:i,menuRect:n}):void 0,x:A,y:T,computedDirection:E}},Jh=({arrow:a,align:i,direction:n,gap:o,shift:u,position:f,anchorRect:c,arrowRef:p,positionHelpers:g})=>{const{menuRect:y,containerRect:_}=g,w=n==="left"||n==="right";let O=w?o:u,x=w?u:o;if(a){const R=p.current;w?O+=R.offsetWidth:x+=R.offsetHeight}const E=c.left-_.left-y.width-O,A=c.right-_.left+O,T=c.top-_.top-y.height-x,L=c.bottom-_.top+x;let W,U;i==="end"?(W=c.right-_.left-y.width,U=c.bottom-_.top-y.height):i==="center"?(W=c.left-_.left-(y.width-c.width)/2,U=c.top-_.top-(y.height-c.height)/2):(W=c.left-_.left,U=c.top-_.top),W+=O,U+=x;const Z={...g,anchorRect:c,placeLeftX:E,placeRightX:A,placeLeftorRightY:U,placeTopY:T,placeBottomY:L,placeToporBottomX:W,arrowRef:p,arrow:a,direction:n,position:f};switch(n){case"left":case"right":return qh(Z);default:return Gh(Z)}},ii=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?k.useLayoutEffect:k.useEffect;function pu(a,i){typeof a=="function"?a(i):a.current=i}const Sa=(a,i)=>k.useMemo(()=>a?i?n=>{pu(a,n),pu(i,n)}:a:i,[a,i]),vu=-9999,Yh=({ariaLabel:a,menuClassName:i,menuStyle:n,arrow:o,arrowProps:u={},anchorPoint:f,anchorRef:c,containerRef:p,containerProps:g,externalRef:y,parentScrollingRef:_,align:w="start",direction:O="bottom",position:x="auto",overflow:E="visible",setDownOverflow:A,repositionFlag:T,captureFocus:L=!0,state:W,endTransition:U,isDisabled:Z,menuItemFocus:R,gap:de=0,shift:C=0,children:P,onClose:q,focusProps:ee,...J})=>{const[ie,K]=k.useState({x:vu,y:vu}),[We,Je]=k.useState({}),[Ye,Et]=k.useState(),[ze,Do]=k.useState(O),[At]=k.useState(Rh),[nt,xi]=k.useReducer(fe=>fe+1,1),{transition:Ei,boundingBoxRef:Ar,boundingBoxPadding:Ut,rootMenuRef:bn,rootAnchorRef:Tr,scrollNodesRef:_n,reposition:rn,viewScroll:Ir,submenuCloseDelay:Hn}=k.useContext(_a),{submenuCtx:qn,reposSubmenu:Ai=T}=k.useContext(lu),Ie=k.useRef(),an=k.useRef(),Ti=k.useRef(!1),{hoverItem:rt,dispatch:Ue,updateItems:jn}=$h(Ie),Oe=iu(W),Ke=hr(Ei,"open"),on=hr(Ei,"close"),Be=_n.current,Wo=fe=>{switch(fe.key){case wt.HOME:Ue(Ce.FIRST);break;case wt.END:Ue(Ce.LAST);break;case wt.UP:Ue(Ce.DECREASE,rt);break;case wt.DOWN:Ue(Ce.INCREASE,rt);break;case wt.SPACE:fe.target&&fe.target.className.indexOf(ri)!==-1&&fe.preventDefault();return;default:return}fe.preventDefault(),fe.stopPropagation()},wn=()=>{W==="closing"&&Et(),ct(U)},Bo=fe=>{fe.stopPropagation(),At.on(Hn,()=>{Ue(Ce.RESET),Ie.current.focus(wa)})},Sn=fe=>{fe.target===fe.currentTarget&&At.off()},He=k.useCallback(fe=>{const Pe=Ie.current,Xe=p.current;if(!Pe||!Xe)return;const it=c?c.current?.getBoundingClientRect():f?{left:f.x,right:f.x,top:f.y,bottom:f.y,width:0,height:0}:null;if(!it){process.env.NODE_ENV!=="production"&&console.warn("[React-Menu] Menu might not be positioned properly as one of the anchorRef or anchorPoint prop should be provided. If `anchorRef` is provided, the anchor must be mounted before menu is open.");return}Be.menu||(Be.menu=(Ar?Ar.current:ba(bn.current))||window);const Ee=Uh(Xe,Pe,Be.menu,Ut);let{arrowX:Yn,arrowY:Ro,x:$o,y:An,computedDirection:zo}=Jh({arrow:o,align:w,direction:O,gap:de,shift:C,position:x,anchorRect:it,arrowRef:an,positionHelpers:Ee});const{menuRect:Uo}=Ee,Oi=Uo.height;if(!fe&&E!=="visible"){const{getTopOverflow:Fr,getBottomOverflow:Ho}=Ee;let Ht,Mr;const kr=Ho(An);if(kr>0)Ht=Oi-kr,Mr=kr;else{const Kn=Fr(An);Kn<0&&(Ht=Oi+Kn,Mr=0-Kn,Ht>=0&&(An-=Kn))}Ht>=0&&Et({height:Ht,overflowAmt:Mr})}o&&Je({x:Yn,y:Ro}),K({x:$o,y:An}),Do(zo)},[o,w,Ut,O,de,C,x,E,f,c,p,Ar,bn,Be]);ii(()=>{Oe&&(He(),Ti.current&&xi()),Ti.current=Oe},[Oe,He,Ai]),ii(()=>{Ye&&!A&&(Ie.current.scrollTop=0)},[Ye,A]),ii(()=>jn,[jn]),k.useEffect(()=>{let{menu:fe}=Be;if(!Oe||!fe)return;if(fe=fe.addEventListener?fe:window,!Be.anchors){Be.anchors=[];let Ee=ba(Tr&&Tr.current);for(;Ee&&Ee!==fe;)Be.anchors.push(Ee),Ee=ba(Ee)}let Pe=Ir;if(Be.anchors.length&&Pe==="initial"&&(Pe="auto"),Pe==="initial")return;const Xe=()=>{Pe==="auto"?au(()=>He(!0)):ct(q,{reason:pr.SCROLL})},it=Be.anchors.concat(Ir!=="initial"?fe:[]);return it.forEach(Ee=>Ee.addEventListener("scroll",Xe)),()=>it.forEach(Ee=>Ee.removeEventListener("scroll",Xe))},[Tr,Be,Oe,q,Ir,He]);const Gn=!!Ye&&Ye.overflowAmt>0;k.useEffect(()=>{if(Gn||!Oe||!_)return;const fe=()=>au(He),Pe=_.current;return Pe.addEventListener("scroll",fe),()=>Pe.removeEventListener("scroll",fe)},[Oe,Gn,_,He]),k.useEffect(()=>{if(!Oe||typeof ResizeObserver!="function"||rn==="initial")return;const fe=[],Pe=new ResizeObserver(Ee=>Ee.forEach(({target:Yn})=>{fe.indexOf(Yn)<0?fe.push(Yn):cr.flushSync(()=>{He(),xi()})})),Xe={box:"border-box"};Pe.observe(Ie.current,Xe);const it=c?.current;return it&&Pe.observe(it,Xe),()=>Pe.disconnect()},[Oe,rn,c,He]),k.useEffect(()=>{if(!Oe){Ue(Ce.RESET),on||Et();return}const{position:fe,alwaysUpdate:Pe}=R||{},Xe=()=>{fe===vr.FIRST?Ue(Ce.FIRST):fe===vr.LAST?Ue(Ce.LAST):fe>=-1&&Ue(Ce.SET_INDEX,void 0,fe)};if(Pe)Xe();else if(L){const it=setTimeout(()=>{const Ee=Ie.current;Ee&&!Ee.contains(document.activeElement)&&(Ee.focus(wa),Xe())},Ke?170:100);return()=>clearTimeout(it)}},[Oe,Ke,on,L,R,Ue]);const Or=k.useMemo(()=>({isParentOpen:Oe,submenuCtx:At,dispatch:Ue,updateItems:jn}),[Oe,At,Ue,jn]);let xn,En;Ye&&(A?En=Ye.overflowAmt:xn=Ye.height);const Cr=k.useMemo(()=>({reposSubmenu:nt,submenuCtx:At,overflow:E,overflowAmt:En,parentMenuRef:Ie,parentDir:ze}),[nt,At,E,En,ze]),Nr=xn>=0?{maxHeight:xn,overflow:E}:void 0,Jn=k.useMemo(()=>({state:W,align:w,dir:ze}),[W,w,ze]),Lr=k.useMemo(()=>({dir:ze}),[ze]),Pr=ni({block:ri,element:Ph,modifiers:Lr,className:u.className}),Ii=$.jsxs("ul",{role:"menu","aria-label":a,...ou(Z),...ti({onPointerEnter:qn?.off,onPointerMove:Bo,onPointerLeave:Sn,onKeyDown:Wo,onAnimationEnd:wn},J),ref:Sa(y,Ie),className:ni({block:ri,modifiers:Jn,className:i}),style:{...n,...Nr,margin:0,display:W==="closed"?"none":void 0,position:du,left:ie.x,top:ie.y},children:[o&&$.jsx("li",{"aria-hidden":!0,...u,className:Pr,style:{display:"block",position:du,left:We.x,top:We.y,...u.style},ref:an}),$.jsx(lu.Provider,{value:Cr,children:$.jsx(fu.Provider,{value:Or,children:$.jsx(uu.Provider,{value:rt,children:ct(P,Jn)})})})]});return g?$.jsx(Bh,{...g,isOpen:Oe,children:Ii}):Ii},gu=k.forwardRef(function({"aria-label":i,className:n,containerProps:o,initialMounted:u,unmountOnClose:f,transition:c,transitionTimeout:p,boundingBoxRef:g,boundingBoxPadding:y,reposition:_="auto",submenuOpenDelay:w=300,submenuCloseDelay:O=150,viewScroll:x="initial",portal:E,theming:A,onItemClick:T,...L},W){const U=k.useRef(null),Z=k.useRef({}),{anchorRef:R,state:de,onClose:C}=L,P=k.useMemo(()=>({initialMounted:u,unmountOnClose:f,transition:c,transitionTimeout:p,boundingBoxRef:g,boundingBoxPadding:y,rootMenuRef:U,rootAnchorRef:R,scrollNodesRef:Z,reposition:_,viewScroll:x,submenuOpenDelay:w,submenuCloseDelay:O}),[u,f,c,p,R,g,y,_,x,w,O]),q=k.useMemo(()=>({handleClick(J,ie){J.stopPropagation||ct(T,J);let K=J.keepOpen;K===void 0&&(K=ie&&J.key===wt.SPACE),K||ct(C,{value:J.value,key:J.key,reason:pr.CLICK})},handleClose(J){ct(C,{key:J,reason:pr.CLICK})}}),[T,C]);if(!de)return null;const ee=$.jsx(_a.Provider,{value:P,children:$.jsx(cu.Provider,{value:q,children:$.jsx(Yh,{...L,ariaLabel:i||"Menu",externalRef:W,containerRef:U,containerProps:{className:n,containerRef:U,containerProps:o,theming:A,transition:c,onClose:C}})})});return E===!0&&typeof document<"u"?cr.createPortal(ee,document.body):E?E.target?cr.createPortal(ee,E.target):E.stablePosition?null:ee:ee}),xa=0,Ea=1,ai=2,oi=3,si=4,Kh=5,mu=6,Xh=["preEnter","entering","entered","preExit","exiting","exited","unmounted"],yu=a=>({_s:a,status:Xh[a],isEnter:a<oi,isMounted:a!==mu,isResolved:a===ai||a>si}),Aa=a=>a?mu:Kh,Vh=(a,i)=>{switch(a){case Ea:case xa:return ai;case si:case oi:return Aa(i)}},Zh=a=>typeof a=="object"?[a.enter,a.exit]:[a,a],Ta=setTimeout,Qh=(a,i)=>Ta(()=>{isNaN(document.body.offsetTop)||a(i+1)},0),bu=(a,i,n,o,u)=>{clearTimeout(o.current);const f=yu(a);i(f),n.current=f,u&&u({current:f})},ep=({enter:a=!0,exit:i=!0,preEnter:n,preExit:o,timeout:u,initialEntered:f,mountOnEnter:c,unmountOnExit:p,onStateChange:g}={})=>{const[y,_]=k.useState(()=>yu(f?ai:Aa(c))),w=k.useRef(y),O=k.useRef(0),[x,E]=Zh(u),A=k.useCallback(()=>{const T=Vh(w.current._s,p);T&&bu(T,_,w,O,g)},[g,p]);return[y,k.useCallback(T=>{const L=U=>{switch(bu(U,_,w,O,g),U){case Ea:x>=0&&(O.current=Ta(A,x));break;case si:E>=0&&(O.current=Ta(A,E));break;case xa:case oi:O.current=Qh(L,U);break}},W=w.current.isEnter;typeof T!="boolean"&&(T=!W),T?!W&&L(a?n?xa:Ea:ai):W&&L(i?o?oi:si:Aa(p))},[A,g,a,i,n,o,x,E,p]),A]},Ia=({initialOpen:a,initialMounted:i,unmountOnClose:n,transition:o,transitionTimeout:u=500,onMenuChange:f}={})=>{const c=hr(o,"open"),p=hr(o,"close"),[{status:g},y,_]=ep({initialEntered:a,mountOnEnter:!i,unmountOnExit:n,timeout:u,enter:c,exit:p,onStateChange:k.useCallback(({current:{isEnter:w,isResolved:O}})=>{!f||w&&c&&O||!w&&p&&O||f({open:w})},[f,c,p])});return[{state:kh[g],endTransition:_},y]},tp=a=>{const[i,n]=Ia(a),[o,u]=k.useState(),f=(c,p)=>{u({position:c,alwaysUpdate:p}),n(!0)};return[{menuItemFocus:o,...i},n,f]},np=(a,i)=>{if(process.env.NODE_ENV!=="production"&&typeof i!="function")throw new Error("[React-Menu] useClick/useHover requires a function in the second parameter.");const[n]=k.useState({});return{onMouseDown:()=>{n.v=a&&a!=="closed"},onClick:o=>n.v?n.v=!1:i(!0,o)}},rp=parseInt(k.version)<19,_u=k.forwardRef(function({"aria-label":i,captureFocus:n,initialOpen:o,menuButton:u,instanceRef:f,onMenuChange:c,...p},g){const[y,_,w]=tp({...p,onMenuChange:c}),{state:O}=y,x=iu(O),E=k.useRef(null),A=np(O,(R,de)=>w(de.detail?void 0:vr.FIRST)),T=k.useCallback(R=>{_(!1),R.key&&E.current.focus()},[_]),L=R=>{switch(R.key){case wt.UP:w(vr.LAST);break;case wt.DOWN:w(vr.FIRST);break;default:return}R.preventDefault()},W=ct(u,{open:x});if(!W||!W.type)throw new Error("Menu requires a menuButton prop.");const U={...ti({onKeyDown:L,...A},W.props),ref:Sa(rp?W.ref:W.props.ref,E)};Ch(W.type)==="MenuButton"&&(U.isOpen=x);const Z=k.cloneElement(W,U);return k.useImperativeHandle(f,()=>({openMenu:w,closeMenu:()=>_(!1)})),$.jsxs(k.Fragment,{children:[Z,$.jsx(gu,{...p,...y,"aria-label":i||(typeof W.props.children=="string"?W.props.children:"Menu"),anchorRef:E,ref:g,onClose:T})]})}),ip=(a,i)=>{const n=k.memo(i),o=k.forwardRef((u,f)=>{const c=k.useRef(null);return $.jsx(n,{...u,itemRef:c,externalRef:f,isHovering:k.useContext(uu)===c.current})});return o.displayName=`WithHovering(${a})`,o},ap=a=>{const[i,n]=k.useState(!1);return k.useEffect(()=>{!a&&n(!1)},[a]),[i,()=>!i&&n(!0),()=>n(!1)]},op=(a,i,n)=>{ii(()=>{if(process.env.NODE_ENV!=="production"&&!n)throw new Error(`[React-Menu] This menu item or submenu should be rendered under a menu: ${i.current.outerHTML}`);if(a)return;const o=i.current;return n(o,!0),()=>{n(o)}},[a,i,n])},sp=(a,i,n,o)=>{const[u,f,c]=ap(n),{submenuCloseDelay:p}=k.useContext(_a),{isParentOpen:g,submenuCtx:y,dispatch:_,updateItems:w}=k.useContext(fu),O=()=>{!n&&!o&&_(Ce.SET,a.current)},x=()=>{!o&&_(Ce.UNSET,a.current)},E=L=>{n&&!L.currentTarget.contains(L.relatedTarget)&&x()},A=L=>{o||(L.stopPropagation(),f(),y.on(p,O,O))},T=(L,W)=>{c(),y.off(),!W&&x()};return op(o,a,w),k.useEffect(()=>{n&&g&&i.current&&i.current.focus()},[i,n,g]),{mouseOver:u,setHover:O,onBlur:E,onPointerMove:A,onPointerLeave:T}},ui=ip("MenuItem",function({className:i,value:n,href:o,type:u,checked:f,disabled:c,children:p,onClick:g,isHovering:y,itemRef:_,externalRef:w,...O}){const x=!!c,{mouseOver:E,setHover:A,...T}=sp(_,_,y,x),L=k.useContext(cu),W=k.useContext(Mh),U=u==="radio",Z=u==="checkbox",R=!!o&&!x&&!U&&!Z,de=U?W.value===n:Z?!!f:!1,C=ie=>{if(x){ie.stopPropagation(),ie.preventDefault();return}const K={value:n,syntheticEvent:ie};ie.key!==void 0&&(K.key=ie.key),Z&&(K.checked=!de),U&&(K.name=W.name),ct(g,K),U&&ct(W.onRadioChange,K),L.handleClick(K,Z||U)},P=ie=>{if(y)switch(ie.key){case wt.ENTER:ie.preventDefault();case wt.SPACE:R?_.current.click():C(ie)}},q=k.useMemo(()=>({type:u,disabled:x,hover:E||y,checked:de,anchor:R}),[u,x,E,y,de,R]),ee=ti({...T,onPointerDown:A,onKeyDown:P,onClick:C},O),J={role:U?"menuitemradio":Z?"menuitemcheckbox":Wh,"aria-checked":U||Z?de:void 0,...ou(x,y),...ee,ref:Sa(w,_),className:ni({block:ri,element:Fh,modifiers:q,className:i}),children:k.useMemo(()=>ct(p,q),[p,q])};return R?$.jsx("li",{role:Dh,children:$.jsx("a",{href:o,...J})}):$.jsx("li",{...J})});if(!k.useState)throw new Error("mobx-react-lite requires React with Hooks support");if(!lr.makeObservable)throw new Error("mobx-react-lite@3 requires mobx at least version 6 to be available");function up(a){a()}function fp(a){a||(a=up,process.env.NODE_ENV!=="production"&&console.warn("[MobX] Failed to get unstable_batched updates from react-dom / react-native")),lr.configure({reactionScheduler:a})}function lp(a){return lr.getDependencyTree(a)}var cp=1e4,dp=1e4,hp=(function(){function a(i){var n=this;Object.defineProperty(this,"finalize",{enumerable:!0,configurable:!0,writable:!0,value:i}),Object.defineProperty(this,"registrations",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),Object.defineProperty(this,"sweepTimeout",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sweep",{enumerable:!0,configurable:!0,writable:!0,value:function(o){o===void 0&&(o=cp),clearTimeout(n.sweepTimeout),n.sweepTimeout=void 0;var u=Date.now();n.registrations.forEach(function(f,c){u-f.registeredAt>=o&&(n.finalize(f.value),n.registrations.delete(c))}),n.registrations.size>0&&n.scheduleSweep()}}),Object.defineProperty(this,"finalizeAllImmediately",{enumerable:!0,configurable:!0,writable:!0,value:function(){n.sweep(0)}})}return Object.defineProperty(a.prototype,"register",{enumerable:!1,configurable:!0,writable:!0,value:function(i,n,o){this.registrations.set(o,{value:n,registeredAt:Date.now()}),this.scheduleSweep()}}),Object.defineProperty(a.prototype,"unregister",{enumerable:!1,configurable:!0,writable:!0,value:function(i){this.registrations.delete(i)}}),Object.defineProperty(a.prototype,"scheduleSweep",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.sweepTimeout===void 0&&(this.sweepTimeout=setTimeout(this.sweep,dp))}}),a})(),pp=typeof FinalizationRegistry<"u"?FinalizationRegistry:hp,Oa=new pp(function(a){var i;(i=a.reaction)===null||i===void 0||i.dispose(),a.reaction=null}),fi={exports:{}},Ca={};var wu;function vp(){if(wu)return Ca;wu=1;var a=k;function i(w,O){return w===O&&(w!==0||1/w===1/O)||w!==w&&O!==O}var n=typeof Object.is=="function"?Object.is:i,o=a.useState,u=a.useEffect,f=a.useLayoutEffect,c=a.useDebugValue;function p(w,O){var x=O(),E=o({inst:{value:x,getSnapshot:O}}),A=E[0].inst,T=E[1];return f(function(){A.value=x,A.getSnapshot=O,g(A)&&T({inst:A})},[w,x,O]),u(function(){return g(A)&&T({inst:A}),w(function(){g(A)&&T({inst:A})})},[w]),c(x),x}function g(w){var O=w.getSnapshot;w=w.value;try{var x=O();return!n(w,x)}catch{return!0}}function y(w,O){return O()}var _=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?y:p;return Ca.useSyncExternalStore=a.useSyncExternalStore!==void 0?a.useSyncExternalStore:_,Ca}var Na={};var Su;function gp(){return Su||(Su=1,process.env.NODE_ENV!=="production"&&(function(){function a(x,E){return x===E&&(x!==0||1/x===1/E)||x!==x&&E!==E}function i(x,E){_||u.startTransition===void 0||(_=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var A=E();if(!w){var T=E();f(A,T)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),w=!0)}T=c({inst:{value:A,getSnapshot:E}});var L=T[0].inst,W=T[1];return g(function(){L.value=A,L.getSnapshot=E,n(L)&&W({inst:L})},[x,A,E]),p(function(){return n(L)&&W({inst:L}),x(function(){n(L)&&W({inst:L})})},[x]),y(A),A}function n(x){var E=x.getSnapshot;x=x.value;try{var A=E();return!f(x,A)}catch{return!0}}function o(x,E){return E()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var u=k,f=typeof Object.is=="function"?Object.is:a,c=u.useState,p=u.useEffect,g=u.useLayoutEffect,y=u.useDebugValue,_=!1,w=!1,O=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?o:i;Na.useSyncExternalStore=u.useSyncExternalStore!==void 0?u.useSyncExternalStore:O,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),Na}var xu;function mp(){return xu||(xu=1,process.env.NODE_ENV==="production"?fi.exports=vp():fi.exports=gp()),fi.exports}var yp=mp();function Eu(a){a.reaction=new lr.Reaction("observer".concat(a.name),function(){var i;a.stateVersion=Symbol(),(i=a.onStoreChange)===null||i===void 0||i.call(a)})}function bp(a,i){i===void 0&&(i="observed");var n=k.useRef(null);if(!n.current){var o={reaction:null,onStoreChange:null,stateVersion:Symbol(),name:i,subscribe:function(p){return Oa.unregister(o),o.onStoreChange=p,o.reaction||(Eu(o),o.stateVersion=Symbol()),function(){var g;o.onStoreChange=null,(g=o.reaction)===null||g===void 0||g.dispose(),o.reaction=null}},getSnapshot:function(){return o.stateVersion}};n.current=o}var u=n.current;u.reaction||(Eu(u),Oa.register(n,u,u)),k.useDebugValue(u.reaction,lp),yp.useSyncExternalStore(u.subscribe,u.getSnapshot,u.getSnapshot);var f,c;if(u.reaction.track(function(){try{f=a()}catch(p){c=p}}),c)throw c;return f}var La,Pa,_p=!0,Au=!0,Tu=typeof Symbol=="function"&&Symbol.for,wp=(Pa=(La=Object.getOwnPropertyDescriptor(function(){},"name"))===null||La===void 0?void 0:La.configurable)!==null&&Pa!==void 0?Pa:!1,Iu=Tu?Symbol.for("react.forward_ref"):typeof k.forwardRef=="function"&&k.forwardRef(function(a){return null}).$$typeof,Ou=Tu?Symbol.for("react.memo"):typeof k.memo=="function"&&k.memo(function(a){return null}).$$typeof;function Dt(a,i){var n;if(process.env.NODE_ENV,Ou&&a.$$typeof===Ou)throw new Error("[mobx-react-lite] You are trying to use `observer` on a function component wrapped in either another `observer` or `React.memo`. The observer already applies 'React.memo' for you.");var o=(n=void 0)!==null&&n!==void 0?n:!1,u=a,f=a.displayName||a.name;if(Iu&&a.$$typeof===Iu&&(o=!0,u=a.render,typeof u!="function"))throw new Error("[mobx-react-lite] `render` property of ForwardRef was not a function");var c=function(p,g){return bp(function(){return u(p,g)},f)};return c.displayName=a.displayName,wp&&Object.defineProperty(c,"name",{value:a.name,writable:!0,configurable:!0}),a.contextTypes&&(c.contextTypes=a.contextTypes,process.env.NODE_ENV!=="production"&&Au&&(Au=!1,console.warn("[mobx-react-lite] Support for Legacy Context in function components will be removed in the next major release."))),o&&(c=k.forwardRef(c)),c=k.memo(c),xp(a,c),process.env.NODE_ENV!=="production"&&Object.defineProperty(c,"contextTypes",{set:function(){var p,g;throw new Error("[mobx-react-lite] `".concat(this.displayName||((p=this.type)===null||p===void 0?void 0:p.displayName)||((g=this.type)===null||g===void 0?void 0:g.name)||"Component",".contextTypes` must be set before applying `observer`."))}}),c}var Sp={$$typeof:!0,render:!0,compare:!0,type:!0,displayName:!0};function xp(a,i){Object.keys(a).forEach(function(n){Sp[n]||Object.defineProperty(i,n,Object.getOwnPropertyDescriptor(a,n))})}process.env.NODE_ENV;var Fa;fp(cr.unstable_batchedUpdates),Fa=Oa.finalizeAllImmediately;function Ma(a,i){(i==null||i>a.length)&&(i=a.length);for(var n=0,o=Array(i);n<i;n++)o[n]=a[n];return o}function Ep(a){if(Array.isArray(a))return a}function Ap(a){if(Array.isArray(a))return Ma(a)}function Tp(a,i){if(!(a instanceof i))throw new TypeError("Cannot call a class as a function")}function Ip(a,i){for(var n=0;n<i.length;n++){var o=i[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(a,Nu(o.key),o)}}function Op(a,i,n){return i&&Ip(a.prototype,i),Object.defineProperty(a,"prototype",{writable:!1}),a}function li(a,i){var n=typeof Symbol<"u"&&a[Symbol.iterator]||a["@@iterator"];if(!n){if(Array.isArray(a)||(n=ka(a))||i){n&&(a=n);var o=0,u=function(){};return{s:u,n:function(){return o>=a.length?{done:!0}:{done:!1,value:a[o++]}},e:function(g){throw g},f:u}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
21
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var f,c=!0,p=!1;return{s:function(){n=n.call(a)},n:function(){var g=n.next();return c=g.done,g},e:function(g){p=!0,f=g},f:function(){try{c||n.return==null||n.return()}finally{if(p)throw f}}}}function ne(a,i,n){return(i=Nu(i))in a?Object.defineProperty(a,i,{value:n,enumerable:!0,configurable:!0,writable:!0}):a[i]=n,a}function Cp(a){if(typeof Symbol<"u"&&a[Symbol.iterator]!=null||a["@@iterator"]!=null)return Array.from(a)}function Np(a,i){var n=a==null?null:typeof Symbol<"u"&&a[Symbol.iterator]||a["@@iterator"];if(n!=null){var o,u,f,c,p=[],g=!0,y=!1;try{if(f=(n=n.call(a)).next,i===0){if(Object(n)!==n)return;g=!1}else for(;!(g=(o=f.call(n)).done)&&(p.push(o.value),p.length!==i);g=!0);}catch(_){y=!0,u=_}finally{try{if(!g&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(y)throw u}}return p}}function Lp(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
22
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Pp(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
23
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Cu(a,i){var n=Object.keys(a);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(a);i&&(o=o.filter(function(u){return Object.getOwnPropertyDescriptor(a,u).enumerable})),n.push.apply(n,o)}return n}function B(a){for(var i=1;i<arguments.length;i++){var n=arguments[i]!=null?arguments[i]:{};i%2?Cu(Object(n),!0).forEach(function(o){ne(a,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(n)):Cu(Object(n)).forEach(function(o){Object.defineProperty(a,o,Object.getOwnPropertyDescriptor(n,o))})}return a}function ci(a,i){return Ep(a)||Np(a,i)||ka(a,i)||Lp()}function St(a){return Ap(a)||Cp(a)||ka(a)||Pp()}function Fp(a,i){if(typeof a!="object"||!a)return a;var n=a[Symbol.toPrimitive];if(n!==void 0){var o=n.call(a,i);if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(a)}function Nu(a){var i=Fp(a,"string");return typeof i=="symbol"?i:i+""}function di(a){"@babel/helpers - typeof";return di=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},di(a)}function ka(a,i){if(a){if(typeof a=="string")return Ma(a,i);var n={}.toString.call(a).slice(8,-1);return n==="Object"&&a.constructor&&(n=a.constructor.name),n==="Map"||n==="Set"?Array.from(a):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ma(a,i):void 0}}var Lu=function(){},Da={},Pu={},Fu=null,Mu={mark:Lu,measure:Lu};try{typeof window<"u"&&(Da=window),typeof document<"u"&&(Pu=document),typeof MutationObserver<"u"&&(Fu=MutationObserver),typeof performance<"u"&&(Mu=performance)}catch{}var Mp=Da.navigator||{},ku=Mp.userAgent,Du=ku===void 0?"":ku,en=Da,be=Pu,Wu=Fu,hi=Mu;en.document;var Wt=!!be.documentElement&&!!be.head&&typeof be.addEventListener=="function"&&typeof be.createElement=="function",Bu=~Du.indexOf("MSIE")||~Du.indexOf("Trident/"),Wa,kp=/fa(k|kd|s|r|l|t|d|dr|dl|dt|b|slr|slpr|wsb|tl|ns|nds|es|jr|jfr|jdr|usb|ufsb|udsb|cr|ss|sr|sl|st|sds|sdr|sdl|sdt)?[\-\ ]/,Dp=/Font ?Awesome ?([567 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit|Notdog Duo|Notdog|Chisel|Etch|Thumbprint|Jelly Fill|Jelly Duo|Jelly|Utility|Utility Fill|Utility Duo|Slab Press|Slab|Whiteboard)?.*/i,Ru={classic:{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fab:"brands","fa-brands":"brands"},duotone:{fa:"solid",fad:"solid","fa-solid":"solid","fa-duotone":"solid",fadr:"regular","fa-regular":"regular",fadl:"light","fa-light":"light",fadt:"thin","fa-thin":"thin"},sharp:{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"},"sharp-duotone":{fa:"solid",fasds:"solid","fa-solid":"solid",fasdr:"regular","fa-regular":"regular",fasdl:"light","fa-light":"light",fasdt:"thin","fa-thin":"thin"},slab:{"fa-regular":"regular",faslr:"regular"},"slab-press":{"fa-regular":"regular",faslpr:"regular"},thumbprint:{"fa-light":"light",fatl:"light"},whiteboard:{"fa-semibold":"semibold",fawsb:"semibold"},notdog:{"fa-solid":"solid",fans:"solid"},"notdog-duo":{"fa-solid":"solid",fands:"solid"},etch:{"fa-solid":"solid",faes:"solid"},jelly:{"fa-regular":"regular",fajr:"regular"},"jelly-fill":{"fa-regular":"regular",fajfr:"regular"},"jelly-duo":{"fa-regular":"regular",fajdr:"regular"},chisel:{"fa-regular":"regular",facr:"regular"},utility:{"fa-semibold":"semibold",fausb:"semibold"},"utility-duo":{"fa-semibold":"semibold",faudsb:"semibold"},"utility-fill":{"fa-semibold":"semibold",faufsb:"semibold"}},Wp={GROUP:"duotone-group",PRIMARY:"primary",SECONDARY:"secondary"},$u=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone","fa-thumbprint","fa-whiteboard","fa-notdog","fa-notdog-duo","fa-chisel","fa-etch","fa-jelly","fa-jelly-fill","fa-jelly-duo","fa-slab","fa-slab-press","fa-utility","fa-utility-duo","fa-utility-fill"],Me="classic",gr="duotone",zu="sharp",Uu="sharp-duotone",Hu="chisel",qu="etch",ju="jelly",Gu="jelly-duo",Ju="jelly-fill",Yu="notdog",Ku="notdog-duo",Xu="slab",Vu="slab-press",Zu="thumbprint",Qu="utility",ef="utility-duo",tf="utility-fill",nf="whiteboard",Bp="Classic",Rp="Duotone",$p="Sharp",zp="Sharp Duotone",Up="Chisel",Hp="Etch",qp="Jelly",jp="Jelly Duo",Gp="Jelly Fill",Jp="Notdog",Yp="Notdog Duo",Kp="Slab",Xp="Slab Press",Vp="Thumbprint",Zp="Utility",Qp="Utility Duo",ev="Utility Fill",tv="Whiteboard",rf=[Me,gr,zu,Uu,Hu,qu,ju,Gu,Ju,Yu,Ku,Xu,Vu,Zu,Qu,ef,tf,nf];Wa={},ne(ne(ne(ne(ne(ne(ne(ne(ne(ne(Wa,Me,Bp),gr,Rp),zu,$p),Uu,zp),Hu,Up),qu,Hp),ju,qp),Gu,jp),Ju,Gp),Yu,Jp),ne(ne(ne(ne(ne(ne(ne(ne(Wa,Ku,Yp),Xu,Kp),Vu,Xp),Zu,Vp),Qu,Zp),ef,Qp),tf,ev),nf,tv);var nv={classic:{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},duotone:{900:"fad",400:"fadr",300:"fadl",100:"fadt"},sharp:{900:"fass",400:"fasr",300:"fasl",100:"fast"},"sharp-duotone":{900:"fasds",400:"fasdr",300:"fasdl",100:"fasdt"},slab:{400:"faslr"},"slab-press":{400:"faslpr"},whiteboard:{600:"fawsb"},thumbprint:{300:"fatl"},notdog:{900:"fans"},"notdog-duo":{900:"fands"},etch:{900:"faes"},chisel:{400:"facr"},jelly:{400:"fajr"},"jelly-fill":{400:"fajfr"},"jelly-duo":{400:"fajdr"},utility:{600:"fausb"},"utility-duo":{600:"faudsb"},"utility-fill":{600:"faufsb"}},rv={"Font Awesome 7 Free":{900:"fas",400:"far"},"Font Awesome 7 Pro":{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},"Font Awesome 7 Brands":{400:"fab",normal:"fab"},"Font Awesome 7 Duotone":{900:"fad",400:"fadr",normal:"fadr",300:"fadl",100:"fadt"},"Font Awesome 7 Sharp":{900:"fass",400:"fasr",normal:"fasr",300:"fasl",100:"fast"},"Font Awesome 7 Sharp Duotone":{900:"fasds",400:"fasdr",normal:"fasdr",300:"fasdl",100:"fasdt"},"Font Awesome 7 Jelly":{400:"fajr",normal:"fajr"},"Font Awesome 7 Jelly Fill":{400:"fajfr",normal:"fajfr"},"Font Awesome 7 Jelly Duo":{400:"fajdr",normal:"fajdr"},"Font Awesome 7 Slab":{400:"faslr",normal:"faslr"},"Font Awesome 7 Slab Press":{400:"faslpr",normal:"faslpr"},"Font Awesome 7 Thumbprint":{300:"fatl",normal:"fatl"},"Font Awesome 7 Notdog":{900:"fans",normal:"fans"},"Font Awesome 7 Notdog Duo":{900:"fands",normal:"fands"},"Font Awesome 7 Etch":{900:"faes",normal:"faes"},"Font Awesome 7 Chisel":{400:"facr",normal:"facr"},"Font Awesome 7 Whiteboard":{600:"fawsb",normal:"fawsb"},"Font Awesome 7 Utility":{600:"fausb",normal:"fausb"},"Font Awesome 7 Utility Duo":{600:"faudsb",normal:"faudsb"},"Font Awesome 7 Utility Fill":{600:"faufsb",normal:"faufsb"}},iv=new Map([["classic",{defaultShortPrefixId:"fas",defaultStyleId:"solid",styleIds:["solid","regular","light","thin","brands"],futureStyleIds:[],defaultFontWeight:900}],["duotone",{defaultShortPrefixId:"fad",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["sharp",{defaultShortPrefixId:"fass",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["sharp-duotone",{defaultShortPrefixId:"fasds",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["chisel",{defaultShortPrefixId:"facr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["etch",{defaultShortPrefixId:"faes",defaultStyleId:"solid",styleIds:["solid"],futureStyleIds:[],defaultFontWeight:900}],["jelly",{defaultShortPrefixId:"fajr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["jelly-duo",{defaultShortPrefixId:"fajdr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["jelly-fill",{defaultShortPrefixId:"fajfr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["notdog",{defaultShortPrefixId:"fans",defaultStyleId:"solid",styleIds:["solid"],futureStyleIds:[],defaultFontWeight:900}],["notdog-duo",{defaultShortPrefixId:"fands",defaultStyleId:"solid",styleIds:["solid"],futureStyleIds:[],defaultFontWeight:900}],["slab",{defaultShortPrefixId:"faslr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["slab-press",{defaultShortPrefixId:"faslpr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["thumbprint",{defaultShortPrefixId:"fatl",defaultStyleId:"light",styleIds:["light"],futureStyleIds:[],defaultFontWeight:300}],["utility",{defaultShortPrefixId:"fausb",defaultStyleId:"semibold",styleIds:["semibold"],futureStyleIds:[],defaultFontWeight:600}],["utility-duo",{defaultShortPrefixId:"faudsb",defaultStyleId:"semibold",styleIds:["semibold"],futureStyleIds:[],defaultFontWeight:600}],["utility-fill",{defaultShortPrefixId:"faufsb",defaultStyleId:"semibold",styleIds:["semibold"],futureStyleIds:[],defaultFontWeight:600}],["whiteboard",{defaultShortPrefixId:"fawsb",defaultStyleId:"semibold",styleIds:["semibold"],futureStyleIds:[],defaultFontWeight:600}]]),av={chisel:{regular:"facr"},classic:{brands:"fab",light:"fal",regular:"far",solid:"fas",thin:"fat"},duotone:{light:"fadl",regular:"fadr",solid:"fad",thin:"fadt"},etch:{solid:"faes"},jelly:{regular:"fajr"},"jelly-duo":{regular:"fajdr"},"jelly-fill":{regular:"fajfr"},notdog:{solid:"fans"},"notdog-duo":{solid:"fands"},sharp:{light:"fasl",regular:"fasr",solid:"fass",thin:"fast"},"sharp-duotone":{light:"fasdl",regular:"fasdr",solid:"fasds",thin:"fasdt"},slab:{regular:"faslr"},"slab-press":{regular:"faslpr"},thumbprint:{light:"fatl"},utility:{semibold:"fausb"},"utility-duo":{semibold:"faudsb"},"utility-fill":{semibold:"faufsb"},whiteboard:{semibold:"fawsb"}},af=["fak","fa-kit","fakd","fa-kit-duotone"],of={kit:{fak:"kit","fa-kit":"kit"},"kit-duotone":{fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"}},ov=["kit"],sv="kit",uv="kit-duotone",fv="Kit",lv="Kit Duotone";ne(ne({},sv,fv),uv,lv);var cv={kit:{"fa-kit":"fak"}},dv={"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}},hv={kit:{fak:"fa-kit"}},sf={kit:{kit:"fak"},"kit-duotone":{"kit-duotone":"fakd"}},Ba,pi={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},pv=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone","fa-thumbprint","fa-whiteboard","fa-notdog","fa-notdog-duo","fa-chisel","fa-etch","fa-jelly","fa-jelly-fill","fa-jelly-duo","fa-slab","fa-slab-press","fa-utility","fa-utility-duo","fa-utility-fill"],vv="classic",gv="duotone",mv="sharp",yv="sharp-duotone",bv="chisel",_v="etch",wv="jelly",Sv="jelly-duo",xv="jelly-fill",Ev="notdog",Av="notdog-duo",Tv="slab",Iv="slab-press",Ov="thumbprint",Cv="utility",Nv="utility-duo",Lv="utility-fill",Pv="whiteboard",Fv="Classic",Mv="Duotone",kv="Sharp",Dv="Sharp Duotone",Wv="Chisel",Bv="Etch",Rv="Jelly",$v="Jelly Duo",zv="Jelly Fill",Uv="Notdog",Hv="Notdog Duo",qv="Slab",jv="Slab Press",Gv="Thumbprint",Jv="Utility",Yv="Utility Duo",Kv="Utility Fill",Xv="Whiteboard";Ba={},ne(ne(ne(ne(ne(ne(ne(ne(ne(ne(Ba,vv,Fv),gv,Mv),mv,kv),yv,Dv),bv,Wv),_v,Bv),wv,Rv),Sv,$v),xv,zv),Ev,Uv),ne(ne(ne(ne(ne(ne(ne(ne(Ba,Av,Hv),Tv,qv),Iv,jv),Ov,Gv),Cv,Jv),Nv,Yv),Lv,Kv),Pv,Xv);var Vv="kit",Zv="kit-duotone",Qv="Kit",eg="Kit Duotone";ne(ne({},Vv,Qv),Zv,eg);var tg={classic:{"fa-brands":"fab","fa-duotone":"fad","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},duotone:{"fa-regular":"fadr","fa-light":"fadl","fa-thin":"fadt"},sharp:{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"},"sharp-duotone":{"fa-solid":"fasds","fa-regular":"fasdr","fa-light":"fasdl","fa-thin":"fasdt"},slab:{"fa-regular":"faslr"},"slab-press":{"fa-regular":"faslpr"},whiteboard:{"fa-semibold":"fawsb"},thumbprint:{"fa-light":"fatl"},notdog:{"fa-solid":"fans"},"notdog-duo":{"fa-solid":"fands"},etch:{"fa-solid":"faes"},jelly:{"fa-regular":"fajr"},"jelly-fill":{"fa-regular":"fajfr"},"jelly-duo":{"fa-regular":"fajdr"},chisel:{"fa-regular":"facr"},utility:{"fa-semibold":"fausb"},"utility-duo":{"fa-semibold":"faudsb"},"utility-fill":{"fa-semibold":"faufsb"}},ng={classic:["fas","far","fal","fat","fad"],duotone:["fadr","fadl","fadt"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds","fasdr","fasdl","fasdt"],slab:["faslr"],"slab-press":["faslpr"],whiteboard:["fawsb"],thumbprint:["fatl"],notdog:["fans"],"notdog-duo":["fands"],etch:["faes"],jelly:["fajr"],"jelly-fill":["fajfr"],"jelly-duo":["fajdr"],chisel:["facr"],utility:["fausb"],"utility-duo":["faudsb"],"utility-fill":["faufsb"]},Ra={classic:{fab:"fa-brands",fad:"fa-duotone",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},duotone:{fadr:"fa-regular",fadl:"fa-light",fadt:"fa-thin"},sharp:{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"},"sharp-duotone":{fasds:"fa-solid",fasdr:"fa-regular",fasdl:"fa-light",fasdt:"fa-thin"},slab:{faslr:"fa-regular"},"slab-press":{faslpr:"fa-regular"},whiteboard:{fawsb:"fa-semibold"},thumbprint:{fatl:"fa-light"},notdog:{fans:"fa-solid"},"notdog-duo":{fands:"fa-solid"},etch:{faes:"fa-solid"},jelly:{fajr:"fa-regular"},"jelly-fill":{fajfr:"fa-regular"},"jelly-duo":{fajdr:"fa-regular"},chisel:{facr:"fa-regular"},utility:{fausb:"fa-semibold"},"utility-duo":{faudsb:"fa-semibold"},"utility-fill":{faufsb:"fa-semibold"}},rg=["fa-solid","fa-regular","fa-light","fa-thin","fa-duotone","fa-brands","fa-semibold"],uf=["fa","fas","far","fal","fat","fad","fadr","fadl","fadt","fab","fass","fasr","fasl","fast","fasds","fasdr","fasdl","fasdt","faslr","faslpr","fawsb","fatl","fans","fands","faes","fajr","fajfr","fajdr","facr","fausb","faudsb","faufsb"].concat(pv,rg),ig=["solid","regular","light","thin","duotone","brands","semibold"],ff=[1,2,3,4,5,6,7,8,9,10],ag=ff.concat([11,12,13,14,15,16,17,18,19,20]),og=["aw","fw","pull-left","pull-right"],sg=[].concat(St(Object.keys(ng)),ig,og,["2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","inverse","layers","layers-bottom-left","layers-bottom-right","layers-counter","layers-text","layers-top-left","layers-top-right","li","pull-end","pull-start","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul","width-auto","width-fixed",pi.GROUP,pi.SWAP_OPACITY,pi.PRIMARY,pi.SECONDARY]).concat(ff.map(function(a){return"".concat(a,"x")})).concat(ag.map(function(a){return"w-".concat(a)})),ug={"Font Awesome 5 Free":{900:"fas",400:"far"},"Font Awesome 5 Pro":{900:"fas",400:"far",normal:"far",300:"fal"},"Font Awesome 5 Brands":{400:"fab",normal:"fab"},"Font Awesome 5 Duotone":{900:"fad"}},Bt="___FONT_AWESOME___",$a=16,lf="fa",cf="svg-inline--fa",gn="data-fa-i2svg",za="data-fa-pseudo-element",fg="data-fa-pseudo-element-pending",Ua="data-prefix",Ha="data-icon",df="fontawesome-i2svg",lg="async",cg=["HTML","HEAD","STYLE","SCRIPT"],hf=["::before","::after",":before",":after"],pf=(function(){try{return process.env.NODE_ENV==="production"}catch{return!1}})();function mr(a){return new Proxy(a,{get:function(n,o){return o in n?n[o]:n[Me]}})}var vf=B({},Ru);vf[Me]=B(B(B(B({},{"fa-duotone":"duotone"}),Ru[Me]),of.kit),of["kit-duotone"]);var dg=mr(vf),qa=B({},av);qa[Me]=B(B(B(B({},{duotone:"fad"}),qa[Me]),sf.kit),sf["kit-duotone"]);var gf=mr(qa),ja=B({},Ra);ja[Me]=B(B({},ja[Me]),hv.kit);var Ga=mr(ja),Ja=B({},tg);Ja[Me]=B(B({},Ja[Me]),cv.kit),mr(Ja);var hg=kp,mf="fa-layers-text",pg=Dp,vg=B({},nv);mr(vg);var gg=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],Ya=Wp,mg=[].concat(St(ov),St(sg)),yr=en.FontAwesomeConfig||{};function yg(a){var i=be.querySelector("script["+a+"]");if(i)return i.getAttribute(a)}function bg(a){return a===""?!0:a==="false"?!1:a==="true"?!0:a}if(be&&typeof be.querySelector=="function"){var _g=[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-search-pseudo-elements","searchPseudoElements"],["data-search-pseudo-elements-warnings","searchPseudoElementsWarnings"],["data-search-pseudo-elements-full-scan","searchPseudoElementsFullScan"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]];_g.forEach(function(a){var i=ci(a,2),n=i[0],o=i[1],u=bg(yg(n));u!=null&&(yr[o]=u)})}var yf={styleDefault:"solid",familyDefault:Me,cssPrefix:lf,replacementClass:cf,autoReplaceSvg:!0,autoAddCss:!0,searchPseudoElements:!1,searchPseudoElementsWarnings:!0,searchPseudoElementsFullScan:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};yr.familyPrefix&&(yr.cssPrefix=yr.familyPrefix);var Dn=B(B({},yf),yr);Dn.autoReplaceSvg||(Dn.observeMutations=!1);var G={};Object.keys(yf).forEach(function(a){Object.defineProperty(G,a,{enumerable:!0,set:function(n){Dn[a]=n,br.forEach(function(o){return o(G)})},get:function(){return Dn[a]}})}),Object.defineProperty(G,"familyPrefix",{enumerable:!0,set:function(i){Dn.cssPrefix=i,br.forEach(function(n){return n(G)})},get:function(){return Dn.cssPrefix}}),en.FontAwesomeConfig=G;var br=[];function wg(a){return br.push(a),function(){br.splice(br.indexOf(a),1)}}var Wn=$a,Lt={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function Sg(a){if(!(!a||!Wt)){var i=be.createElement("style");i.setAttribute("type","text/css"),i.innerHTML=a;for(var n=be.head.childNodes,o=null,u=n.length-1;u>-1;u--){var f=n[u],c=(f.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(c)>-1&&(o=f)}return be.head.insertBefore(i,o),a}}var xg="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function bf(){for(var a=12,i="";a-- >0;)i+=xg[Math.random()*62|0];return i}function Bn(a){for(var i=[],n=(a||[]).length>>>0;n--;)i[n]=a[n];return i}function Ka(a){return a.classList?Bn(a.classList):(a.getAttribute("class")||"").split(" ").filter(function(i){return i})}function _f(a){return"".concat(a).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function Eg(a){return Object.keys(a||{}).reduce(function(i,n){return i+"".concat(n,'="').concat(_f(a[n]),'" ')},"").trim()}function vi(a){return Object.keys(a||{}).reduce(function(i,n){return i+"".concat(n,": ").concat(a[n].trim(),";")},"")}function Xa(a){return a.size!==Lt.size||a.x!==Lt.x||a.y!==Lt.y||a.rotate!==Lt.rotate||a.flipX||a.flipY}function Ag(a){var i=a.transform,n=a.containerWidth,o=a.iconWidth,u={transform:"translate(".concat(n/2," 256)")},f="translate(".concat(i.x*32,", ").concat(i.y*32,") "),c="scale(".concat(i.size/16*(i.flipX?-1:1),", ").concat(i.size/16*(i.flipY?-1:1),") "),p="rotate(".concat(i.rotate," 0 0)"),g={transform:"".concat(f," ").concat(c," ").concat(p)},y={transform:"translate(".concat(o/2*-1," -256)")};return{outer:u,inner:g,path:y}}function Tg(a){var i=a.transform,n=a.width,o=n===void 0?$a:n,u=a.height,f=u===void 0?$a:u,c="";return Bu?c+="translate(".concat(i.x/Wn-o/2,"em, ").concat(i.y/Wn-f/2,"em) "):c+="translate(calc(-50% + ".concat(i.x/Wn,"em), calc(-50% + ").concat(i.y/Wn,"em)) "),c+="scale(".concat(i.size/Wn*(i.flipX?-1:1),", ").concat(i.size/Wn*(i.flipY?-1:1),") "),c+="rotate(".concat(i.rotate,"deg) "),c}var Ig=`:root, :host {
|
|
24
24
|
--fa-font-solid: normal 900 1em/1 "Font Awesome 7 Free";
|
|
25
25
|
--fa-font-regular: normal 400 1em/1 "Font Awesome 7 Free";
|
|
26
26
|
--fa-font-light: normal 300 1em/1 "Font Awesome 7 Pro";
|
|
@@ -570,8 +570,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
570
570
|
margin: auto;
|
|
571
571
|
position: absolute;
|
|
572
572
|
z-index: var(--fa-stack-z-index, auto);
|
|
573
|
-
}`;function wf(){var i=ff,n=cf,r=G.cssPrefix,o=G.replacementClass,s=F0;if(r!==i||o!==n){var l=new RegExp("\\.".concat(i,"\\-"),"g"),f=new RegExp("\\--".concat(i,"\\-"),"g"),d=new RegExp("\\.".concat(n),"g");s=s.replace(l,".".concat(r,"-")).replace(f,"--".concat(r,"-")).replace(d,".".concat(o))}return s}var _f=!1;function Oo(){G.autoAddCss&&!_f&&(N0(wf()),_f=!0)}var R0={mixout:function(){return{dom:{css:wf,insertCss:Oo}}},hooks:function(){return{beforeDOMElementCreation:function(){Oo()},beforeI2svg:function(){Oo()}}}},Ht=rn||{};Ht[Ut]||(Ht[Ut]={}),Ht[Ut].styles||(Ht[Ut].styles={}),Ht[Ut].hooks||(Ht[Ut].hooks={}),Ht[Ut].shims||(Ht[Ut].shims=[]);var It=Ht[Ut],Ef=[],Tf=function(){Se.removeEventListener("DOMContentLoaded",Tf),Ai=1,Ef.map(function(n){return n()})},Ai=!1;$t&&(Ai=(Se.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Se.readyState),Ai||Se.addEventListener("DOMContentLoaded",Tf));function W0(i){$t&&(Ai?setTimeout(i,0):Ef.push(i))}function Ar(i){var n=i.tag,r=i.attributes,o=r===void 0?{}:r,s=i.children,l=s===void 0?[]:s;return typeof i=="string"?Sf(i):"<".concat(n," ").concat(L0(o),">").concat(l.map(Ar).join(""),"</").concat(n,">")}function xf(i,n,r){if(i&&i[n]&&i[n][r])return{prefix:n,iconName:r,icon:i[n][r]}}var Do=function(n,r,o,s){var l=Object.keys(n),f=l.length,d=r,p,m,S;for(o===void 0?(p=1,S=n[l[0]]):(p=0,S=o);p<f;p++)m=l[p],S=d(S,n[m],m,n);return S};function If(i){return xt(i).length!==1?null:i.codePointAt(0).toString(16)}function Of(i){return Object.keys(i).reduce(function(n,r){var o=i[r],s=!!o.icon;return s?n[o.iconName]=o.icon:n[r]=o,n},{})}function Ao(i,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=r.skipHooks,s=o===void 0?!1:o,l=Of(n);typeof It.hooks.addPack=="function"&&!s?It.hooks.addPack(i,Of(n)):It.styles[i]=W(W({},It.styles[i]||{}),l),i==="fas"&&Ao("fa",n)}var Cr=It.styles,B0=It.shims,Df=Object.keys(_o),$0=Df.reduce(function(i,n){return i[n]=Object.keys(_o[n]),i},{}),Co=null,Af={},Cf={},Nf={},Pf={},Lf={};function U0(i){return~I0.indexOf(i)}function H0(i,n){var r=n.split("-"),o=r[0],s=r.slice(1).join("-");return o===i&&s!==""&&!U0(s)?s:null}var Mf=function(){var n=function(l){return Do(Cr,function(f,d,p){return f[p]=Do(d,l,{}),f},{})};Af=n(function(s,l,f){if(l[3]&&(s[l[3]]=f),l[2]){var d=l[2].filter(function(p){return typeof p=="number"});d.forEach(function(p){s[p.toString(16)]=f})}return s}),Cf=n(function(s,l,f){if(s[f]=f,l[2]){var d=l[2].filter(function(p){return typeof p=="string"});d.forEach(function(p){s[p]=f})}return s}),Lf=n(function(s,l,f){var d=l[2];return s[f]=f,d.forEach(function(p){s[p]=f}),s});var r="far"in Cr||G.autoFetchSvg,o=Do(B0,function(s,l){var f=l[0],d=l[1],p=l[2];return d==="far"&&!r&&(d="fas"),typeof f=="string"&&(s.names[f]={prefix:d,iconName:p}),typeof f=="number"&&(s.unicodes[f.toString(16)]={prefix:d,iconName:p}),s},{names:{},unicodes:{}});Nf=o.names,Pf=o.unicodes,Co=Ci(G.styleDefault,{family:G.familyDefault})};C0(function(i){Co=Ci(i.styleDefault,{family:G.familyDefault})}),Mf();function No(i,n){return(Af[i]||{})[n]}function z0(i,n){return(Cf[i]||{})[n]}function wn(i,n){return(Lf[i]||{})[n]}function kf(i){return Nf[i]||{prefix:null,iconName:null}}function j0(i){var n=Pf[i],r=No("fas",i);return n||(r?{prefix:"fas",iconName:r}:null)||{prefix:null,iconName:null}}function an(){return Co}var Ff=function(){return{prefix:null,iconName:null,rest:[]}};function q0(i){var n=ke,r=Df.reduce(function(o,s){return o[s]="".concat(G.cssPrefix,"-").concat(s),o},{});return rf.forEach(function(o){(i.includes(r[o])||i.some(function(s){return $0[o].includes(s)}))&&(n=o)}),n}function Ci(i){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.family,o=r===void 0?ke:r,s=w0[o][i];if(o===xr&&!i)return"fad";var l=vf[o][i]||vf[o][s],f=i in It.styles?i:null,d=l||f||null;return d}function G0(i){var n=[],r=null;return i.forEach(function(o){var s=H0(G.cssPrefix,o);s?r=s:o&&n.push(o)}),{iconName:r,rest:n}}function Rf(i){return i.sort().filter(function(n,r,o){return o.indexOf(n)===r})}var Wf=uf.concat(af);function Ni(i){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.skipLookups,o=r===void 0?!1:r,s=null,l=Rf(i.filter(function(y){return Wf.includes(y)})),f=Rf(i.filter(function(y){return!Wf.includes(y)})),d=l.filter(function(y){return s=y,!$l.includes(y)}),p=Ti(d,1),m=p[0],S=m===void 0?null:m,w=q0(l),O=W(W({},G0(f)),{},{prefix:Ci(S,{family:w})});return W(W(W({},O),X0({values:i,family:w,styles:Cr,config:G,canonical:O,givenPrefix:s})),Y0(o,s,O))}function Y0(i,n,r){var o=r.prefix,s=r.iconName;if(i||!o||!s)return{prefix:o,iconName:s};var l=n==="fa"?kf(s):{},f=wn(o,s);return s=l.iconName||f||s,o=l.prefix||o,o==="far"&&!Cr.far&&Cr.fas&&!G.autoFetchSvg&&(o="fas"),{prefix:o,iconName:s}}var J0=rf.filter(function(i){return i!==ke||i!==xr}),V0=Object.keys(po).filter(function(i){return i!==ke}).map(function(i){return Object.keys(po[i])}).flat();function X0(i){var n=i.values,r=i.family,o=i.canonical,s=i.givenPrefix,l=s===void 0?"":s,f=i.styles,d=f===void 0?{}:f,p=i.config,m=p===void 0?{}:p,S=r===xr,w=n.includes("fa-duotone")||n.includes("fad"),O=m.familyDefault==="duotone",y=o.prefix==="fad"||o.prefix==="fa-duotone";if(!S&&(w||O||y)&&(o.prefix="fad"),(n.includes("fa-brands")||n.includes("fab"))&&(o.prefix="fab"),!o.prefix&&J0.includes(r)){var E=Object.keys(d).find(function(I){return V0.includes(I)});if(E||m.autoFetchSvg){var _=hy.get(r).defaultShortPrefixId;o.prefix=_,o.iconName=wn(o.prefix,o.iconName)||o.iconName}}return(o.prefix==="fa"||l==="fa")&&(o.prefix=an()||"fas"),o}var K0=(function(){function i(){km(this,i),this.definitions={}}return Rm(i,[{key:"add",value:function(){for(var r=this,o=arguments.length,s=new Array(o),l=0;l<o;l++)s[l]=arguments[l];var f=s.reduce(this._pullDefinitions,{});Object.keys(f).forEach(function(d){r.definitions[d]=W(W({},r.definitions[d]||{}),f[d]),Ao(d,f[d]);var p=_o[ke][d];p&&Ao(p,f[d]),Mf()})}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(r,o){var s=o.prefix&&o.iconName&&o.icon?{0:o}:o;return Object.keys(s).map(function(l){var f=s[l],d=f.prefix,p=f.iconName,m=f.icon,S=m[2];r[d]||(r[d]={}),S.length>0&&S.forEach(function(w){typeof w=="string"&&(r[d][w]=m)}),r[d][p]=m}),r}}])})(),Bf=[],Gn={},Yn={},Z0=Object.keys(Yn);function Q0(i,n){var r=n.mixoutsTo;return Bf=i,Gn={},Object.keys(Yn).forEach(function(o){Z0.indexOf(o)===-1&&delete Yn[o]}),Bf.forEach(function(o){var s=o.mixout?o.mixout():{};if(Object.keys(s).forEach(function(f){typeof s[f]=="function"&&(r[f]=s[f]),xi(s[f])==="object"&&Object.keys(s[f]).forEach(function(d){r[f]||(r[f]={}),r[f][d]=s[f][d]})}),o.hooks){var l=o.hooks();Object.keys(l).forEach(function(f){Gn[f]||(Gn[f]=[]),Gn[f].push(l[f])})}o.provides&&o.provides(Yn)}),r}function Po(i,n){for(var r=arguments.length,o=new Array(r>2?r-2:0),s=2;s<r;s++)o[s-2]=arguments[s];var l=Gn[i]||[];return l.forEach(function(f){n=f.apply(null,[n].concat(o))}),n}function _n(i){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];var s=Gn[i]||[];s.forEach(function(l){l.apply(null,r)})}function on(){var i=arguments[0],n=Array.prototype.slice.call(arguments,1);return Yn[i]?Yn[i].apply(null,n):void 0}function Lo(i){i.prefix==="fa"&&(i.prefix="fas");var n=i.iconName,r=i.prefix||an();if(n)return n=wn(r,n)||n,xf($f.definitions,r,n)||xf(It.styles,r,n)}var $f=new K0,eb=function(){G.autoReplaceSvg=!1,G.observeMutations=!1,_n("noAuto")},tb={i2svg:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return $t?(_n("beforeI2svg",n),on("pseudoElements2svg",n),on("i2svg",n)):Promise.reject(new Error("Operation requires a DOM of some kind."))},watch:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=n.autoReplaceSvgRoot;G.autoReplaceSvg===!1&&(G.autoReplaceSvg=!0),G.observeMutations=!0,W0(function(){rb({autoReplaceSvgRoot:r}),_n("watch",n)})}},nb={icon:function(n){if(n===null)return null;if(xi(n)==="object"&&n.prefix&&n.iconName)return{prefix:n.prefix,iconName:wn(n.prefix,n.iconName)||n.iconName};if(Array.isArray(n)&&n.length===2){var r=n[1].indexOf("fa-")===0?n[1].slice(3):n[1],o=Ci(n[0]);return{prefix:o,iconName:wn(o,r)||r}}if(typeof n=="string"&&(n.indexOf("".concat(G.cssPrefix,"-"))>-1||n.match(_0))){var s=Ni(n.split(" "),{skipLookups:!0});return{prefix:s.prefix||an(),iconName:wn(s.prefix,s.iconName)||s.iconName}}if(typeof n=="string"){var l=an();return{prefix:l,iconName:wn(l,n)||n}}}},nt={noAuto:eb,config:G,dom:tb,parse:nb,library:$f,findIconDefinition:Lo,toHtml:Ar},rb=function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=n.autoReplaceSvgRoot,o=r===void 0?Se:r;(Object.keys(It.styles).length>0||G.autoFetchSvg)&&$t&&G.autoReplaceSvg&&nt.dom.i2svg({node:o})};function Pi(i,n){return Object.defineProperty(i,"abstract",{get:n}),Object.defineProperty(i,"html",{get:function(){return i.abstract.map(function(o){return Ar(o)})}}),Object.defineProperty(i,"node",{get:function(){if($t){var o=Se.createElement("div");return o.innerHTML=i.html,o.children}}}),i}function ib(i){var n=i.children,r=i.main,o=i.mask,s=i.attributes,l=i.styles,f=i.transform;if(Io(f)&&r.found&&!o.found){var d=r.width,p=r.height,m={x:d/p/2,y:.5};s.style=Di(W(W({},l),{},{"transform-origin":"".concat(m.x+f.x/16,"em ").concat(m.y+f.y/16,"em")}))}return[{tag:"svg",attributes:s,children:n}]}function ab(i){var n=i.prefix,r=i.iconName,o=i.children,s=i.attributes,l=i.symbol,f=l===!0?"".concat(n,"-").concat(G.cssPrefix,"-").concat(r):l;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:W(W({},s),{},{id:f}),children:o}]}]}function ob(i){var n=["aria-label","aria-labelledby","title","role"];return n.some(function(r){return r in i})}function Mo(i){var n=i.icons,r=n.main,o=n.mask,s=i.prefix,l=i.iconName,f=i.transform,d=i.symbol,p=i.maskId,m=i.extra,S=i.watchable,w=S===void 0?!1:S,O=o.found?o:r,y=O.width,E=O.height,_=[G.replacementClass,l?"".concat(G.cssPrefix,"-").concat(l):""].filter(function(B){return m.classes.indexOf(B)===-1}).filter(function(B){return B!==""||!!B}).concat(m.classes).join(" "),I={children:[],attributes:W(W({},m.attributes),{},{"data-prefix":s,"data-icon":l,class:_,role:m.attributes.role||"img",viewBox:"0 0 ".concat(y," ").concat(E)})};!ob(m.attributes)&&!m.attributes["aria-hidden"]&&(I.attributes["aria-hidden"]="true"),w&&(I.attributes[Sn]="");var C=W(W({},I),{},{prefix:s,iconName:l,main:r,mask:o,maskId:p,transform:f,symbol:d,styles:W({},m.styles)}),F=o.found&&r.found?on("generateAbstractMask",C)||{children:[],attributes:{}}:on("generateAbstractIcon",C)||{children:[],attributes:{}},U=F.children,V=F.attributes;return C.children=U,C.attributes=V,d?ab(C):ib(C)}function Uf(i){var n=i.content,r=i.width,o=i.height,s=i.transform,l=i.extra,f=i.watchable,d=f===void 0?!1:f,p=W(W({},l.attributes),{},{class:l.classes.join(" ")});d&&(p[Sn]="");var m=W({},l.styles);Io(s)&&(m.transform=k0({transform:s,width:r,height:o}),m["-webkit-transform"]=m.transform);var S=Di(m);S.length>0&&(p.style=S);var w=[];return w.push({tag:"span",attributes:p,children:[n]}),w}function sb(i){var n=i.content,r=i.extra,o=W(W({},r.attributes),{},{class:r.classes.join(" ")}),s=Di(r.styles);s.length>0&&(o.style=s);var l=[];return l.push({tag:"span",attributes:o,children:[n]}),l}var ko=It.styles;function Fo(i){var n=i[0],r=i[1],o=i.slice(4),s=Ti(o,1),l=s[0],f=null;return Array.isArray(l)?f={tag:"g",attributes:{class:"".concat(G.cssPrefix,"-").concat(To.GROUP)},children:[{tag:"path",attributes:{class:"".concat(G.cssPrefix,"-").concat(To.SECONDARY),fill:"currentColor",d:l[0]}},{tag:"path",attributes:{class:"".concat(G.cssPrefix,"-").concat(To.PRIMARY),fill:"currentColor",d:l[1]}}]}:f={tag:"path",attributes:{fill:"currentColor",d:l}},{found:!0,width:n,height:r,icon:f}}var ub={found:!1,width:512,height:512};function lb(i,n){!gf&&!G.showMissingIcons&&i&&console.error('Icon with name "'.concat(i,'" and prefix "').concat(n,'" is missing.'))}function Ro(i,n){var r=n;return n==="fa"&&G.styleDefault!==null&&(n=an()),new Promise(function(o,s){if(r==="fa"){var l=kf(i)||{};i=l.iconName||i,n=l.prefix||n}if(i&&n&&ko[n]&&ko[n][i]){var f=ko[n][i];return o(Fo(f))}lb(i,n),o(W(W({},ub),{},{icon:G.showMissingIcons&&i?on("missingIconAbstract")||{}:{}}))})}var Hf=function(){},Wo=G.measurePerformance&&Ii&&Ii.mark&&Ii.measure?Ii:{mark:Hf,measure:Hf},Nr='FA "7.1.0"',fb=function(n){return Wo.mark("".concat(Nr," ").concat(n," begins")),function(){return zf(n)}},zf=function(n){Wo.mark("".concat(Nr," ").concat(n," ends")),Wo.measure("".concat(Nr," ").concat(n),"".concat(Nr," ").concat(n," begins"),"".concat(Nr," ").concat(n," ends"))},Bo={begin:fb,end:zf},Li=function(){};function jf(i){var n=i.getAttribute?i.getAttribute(Sn):null;return typeof n=="string"}function cb(i){var n=i.getAttribute?i.getAttribute(yo):null,r=i.getAttribute?i.getAttribute(bo):null;return n&&r}function db(i){return i&&i.classList&&i.classList.contains&&i.classList.contains(G.replacementClass)}function hb(){if(G.autoReplaceSvg===!0)return Mi.replace;var i=Mi[G.autoReplaceSvg];return i||Mi.replace}function gb(i){return Se.createElementNS("http://www.w3.org/2000/svg",i)}function pb(i){return Se.createElement(i)}function qf(i){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.ceFn,o=r===void 0?i.tag==="svg"?gb:pb:r;if(typeof i=="string")return Se.createTextNode(i);var s=o(i.tag);Object.keys(i.attributes||[]).forEach(function(f){s.setAttribute(f,i.attributes[f])});var l=i.children||[];return l.forEach(function(f){s.appendChild(qf(f,{ceFn:o}))}),s}function vb(i){var n=" ".concat(i.outerHTML," ");return n="".concat(n,"Font Awesome fontawesome.com "),n}var Mi={replace:function(n){var r=n[0];if(r.parentNode)if(n[1].forEach(function(s){r.parentNode.insertBefore(qf(s),r)}),r.getAttribute(Sn)===null&&G.keepOriginalSource){var o=Se.createComment(vb(r));r.parentNode.replaceChild(o,r)}else r.remove()},nest:function(n){var r=n[0],o=n[1];if(~xo(r).indexOf(G.replacementClass))return Mi.replace(n);var s=new RegExp("".concat(G.cssPrefix,"-.*"));if(delete o[0].attributes.id,o[0].attributes.class){var l=o[0].attributes.class.split(" ").reduce(function(d,p){return p===G.replacementClass||p.match(s)?d.toSvg.push(p):d.toNode.push(p),d},{toNode:[],toSvg:[]});o[0].attributes.class=l.toSvg.join(" "),l.toNode.length===0?r.removeAttribute("class"):r.setAttribute("class",l.toNode.join(" "))}var f=o.map(function(d){return Ar(d)}).join(`
|
|
574
|
-
`);
|
|
575
|
-
`),
|
|
576
|
-
If it declares any Font Awesome CSS pseudo-elements, they will not be rendered as SVG icons. Add crossorigin="anonymous" to the <link>, enable searchPseudoElementsFullScan for slower but more thorough DOM parsing, or suppress this warning by setting searchPseudoElementsWarnings to false.`))}}}catch(_){s.e(_)}finally{s.f()}if(!o.size)return;var E=Array.from(o).join(", ");try{r=i.querySelectorAll(E)}catch{}}return new Promise(function(_,I){var C=qn(r).filter(Fb).map(kb),F=Bo.begin("searchPseudoElements");Jf(),Promise.all(C).then(function(){F(),Uo(),_()}).catch(function(){F(),Uo(),I()})})}}var Bb={hooks:function(){return{mutationObserverCallbacks:function(r){return r.pseudoElementsCallback=rc,r}}},provides:function(n){n.pseudoElements2svg=function(r){var o=r.node,s=o===void 0?Se:o;G.searchPseudoElements&&rc(s)}}},ic=!1,$b={mixout:function(){return{dom:{unwatch:function(){Jf(),ic=!0}}}},hooks:function(){return{bootstrap:function(){Vf(Po("mutationObserverCallbacks",{}))},noAuto:function(){mb()},watch:function(r){var o=r.observeMutationsRoot;ic?Uo():Vf(Po("mutationObserverCallbacks",{observeMutationsRoot:o}))}}}},ac=function(n){var r={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return n.toLowerCase().split(" ").reduce(function(o,s){var l=s.toLowerCase().split("-"),f=l[0],d=l.slice(1).join("-");if(f&&d==="h")return o.flipX=!0,o;if(f&&d==="v")return o.flipY=!0,o;if(d=parseFloat(d),isNaN(d))return o;switch(f){case"grow":o.size=o.size+d;break;case"shrink":o.size=o.size-d;break;case"left":o.x=o.x-d;break;case"right":o.x=o.x+d;break;case"up":o.y=o.y-d;break;case"down":o.y=o.y+d;break;case"rotate":o.rotate=o.rotate+d;break}return o},r)},Ub={mixout:function(){return{parse:{transform:function(r){return ac(r)}}}},hooks:function(){return{parseNodeAttributes:function(r,o){var s=o.getAttribute("data-fa-transform");return s&&(r.transform=ac(s)),r}}},provides:function(n){n.generateAbstractTransformGrouping=function(r){var o=r.main,s=r.transform,l=r.containerWidth,f=r.iconWidth,d={transform:"translate(".concat(l/2," 256)")},p="translate(".concat(s.x*32,", ").concat(s.y*32,") "),m="scale(".concat(s.size/16*(s.flipX?-1:1),", ").concat(s.size/16*(s.flipY?-1:1),") "),S="rotate(".concat(s.rotate," 0 0)"),w={transform:"".concat(p," ").concat(m," ").concat(S)},O={transform:"translate(".concat(f/2*-1," -256)")},y={outer:d,inner:w,path:O};return{tag:"g",attributes:W({},y.outer),children:[{tag:"g",attributes:W({},y.inner),children:[{tag:o.icon.tag,children:o.icon.children,attributes:W(W({},o.icon.attributes),y.path)}]}]}}}},zo={x:0,y:0,width:"100%",height:"100%"};function oc(i){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return i.attributes&&(i.attributes.fill||n)&&(i.attributes.fill="black"),i}function Hb(i){return i.tag==="g"?i.children:[i]}var zb={hooks:function(){return{parseNodeAttributes:function(r,o){var s=o.getAttribute("data-fa-mask"),l=s?Ni(s.split(" ").map(function(f){return f.trim()})):Ff();return l.prefix||(l.prefix=an()),r.mask=l,r.maskId=o.getAttribute("data-fa-mask-id"),r}}},provides:function(n){n.generateAbstractMask=function(r){var o=r.children,s=r.attributes,l=r.main,f=r.mask,d=r.maskId,p=r.transform,m=l.width,S=l.icon,w=f.width,O=f.icon,y=M0({transform:p,containerWidth:w,iconWidth:m}),E={tag:"rect",attributes:W(W({},zo),{},{fill:"white"})},_=S.children?{children:S.children.map(oc)}:{},I={tag:"g",attributes:W({},y.inner),children:[oc(W({tag:S.tag,attributes:W(W({},S.attributes),y.path)},_))]},C={tag:"g",attributes:W({},y.outer),children:[I]},F="mask-".concat(d||bf()),U="clip-".concat(d||bf()),V={tag:"mask",attributes:W(W({},zo),{},{id:F,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[E,C]},B={tag:"defs",children:[{tag:"clipPath",attributes:{id:U},children:Hb(O)},V]};return o.push(B,{tag:"rect",attributes:W({fill:"currentColor","clip-path":"url(#".concat(U,")"),mask:"url(#".concat(F,")")},zo)}),{children:o,attributes:s}}}},jb={provides:function(n){var r=!1;rn.matchMedia&&(r=rn.matchMedia("(prefers-reduced-motion: reduce)").matches),n.missingIconAbstract=function(){var o=[],s={fill:"currentColor"},l={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};o.push({tag:"path",attributes:W(W({},s),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var f=W(W({},l),{},{attributeName:"opacity"}),d={tag:"circle",attributes:W(W({},s),{},{cx:"256",cy:"364",r:"28"}),children:[]};return r||d.children.push({tag:"animate",attributes:W(W({},l),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:W(W({},f),{},{values:"1;0;1;1;0;1;"})}),o.push(d),o.push({tag:"path",attributes:W(W({},s),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:r?[]:[{tag:"animate",attributes:W(W({},f),{},{values:"1;0;0;0;0;1;"})}]}),r||o.push({tag:"path",attributes:W(W({},s),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:W(W({},f),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:o}}}},qb={hooks:function(){return{parseNodeAttributes:function(r,o){var s=o.getAttribute("data-fa-symbol"),l=s===null?!1:s===""?!0:s;return r.symbol=l,r}}}},Gb=[R0,Ob,Db,Ab,Cb,Bb,$b,Ub,zb,jb,qb];Q0(Gb,{mixoutsTo:nt}),nt.noAuto;var Pr=nt.config;nt.library,nt.dom;var sc=nt.parse;nt.findIconDefinition,nt.toHtml;var Yb=nt.icon;nt.layer,nt.text,nt.counter;function Jb(i){return i=i-0,i===i}function uc(i){return Jb(i)?i:(i=i.replace(/[_-]+(.)?/g,(n,r)=>r?r.toUpperCase():""),i.charAt(0).toLowerCase()+i.slice(1))}function Vb(i){return i.charAt(0).toUpperCase()+i.slice(1)}var Jn=new Map,Xb=1e3;function Kb(i){if(Jn.has(i))return Jn.get(i);const n={};let r=0;const o=i.length;for(;r<o;){const s=i.indexOf(";",r),l=s===-1?o:s,f=i.slice(r,l).trim();if(f){const d=f.indexOf(":");if(d>0){const p=f.slice(0,d).trim(),m=f.slice(d+1).trim();if(p&&m){const S=uc(p);n[S.startsWith("webkit")?Vb(S):S]=m}}}r=l+1}if(Jn.size===Xb){const s=Jn.keys().next().value;s&&Jn.delete(s)}return Jn.set(i,n),n}function lc(i,n,r={}){if(typeof n=="string")return n;const o=(n.children||[]).map(S=>lc(i,S)),s=n.attributes||{},l={};for(const[S,w]of Object.entries(s))switch(!0){case S==="class":{l.className=w;break}case S==="style":{l.style=Kb(String(w));break}case S.startsWith("aria-"):case S.startsWith("data-"):{l[S.toLowerCase()]=w;break}default:l[uc(S)]=w}const{style:f,role:d,"aria-label":p,...m}=r;return f&&(l.style=l.style?{...l.style,...f}:f),d&&(l.role=d),p&&(l["aria-label"]=p,l["aria-hidden"]="false"),i(n.tag,{...m,...l},...o)}var Zb=lc.bind(null,A.createElement),fc=(i,n)=>{const r=A.useId();return i||(n?r:void 0)},Qb=class{constructor(i="react-fontawesome"){this.enabled=!1;let n=!1;try{n=typeof process<"u"&&process.env.NODE_ENV==="development"}catch{}this.scope=i,this.enabled=n}log(...i){this.enabled&&console.log(`[${this.scope}]`,...i)}warn(...i){this.enabled&&console.warn(`[${this.scope}]`,...i)}error(...i){this.enabled&&console.error(`[${this.scope}]`,...i)}};typeof process<"u"&&process.env.FA_VERSION;var e1="searchPseudoElementsFullScan"in Pr?"7.0.0":"6.0.0",t1=Number.parseInt(e1)>=7,Lr="fa",zt={beat:"fa-beat",fade:"fa-fade",beatFade:"fa-beat-fade",bounce:"fa-bounce",shake:"fa-shake",spin:"fa-spin",spinPulse:"fa-spin-pulse",spinReverse:"fa-spin-reverse",pulse:"fa-pulse"},n1={left:"fa-pull-left",right:"fa-pull-right"},r1={90:"fa-rotate-90",180:"fa-rotate-180",270:"fa-rotate-270"},i1={"2xs":"fa-2xs",xs:"fa-xs",sm:"fa-sm",lg:"fa-lg",xl:"fa-xl","2xl":"fa-2xl","1x":"fa-1x","2x":"fa-2x","3x":"fa-3x","4x":"fa-4x","5x":"fa-5x","6x":"fa-6x","7x":"fa-7x","8x":"fa-8x","9x":"fa-9x","10x":"fa-10x"},jt={border:"fa-border",fixedWidth:"fa-fw",flip:"fa-flip",flipHorizontal:"fa-flip-horizontal",flipVertical:"fa-flip-vertical",inverse:"fa-inverse",rotateBy:"fa-rotate-by",swapOpacity:"fa-swap-opacity",widthAuto:"fa-width-auto"};function a1(i){const n=Pr.cssPrefix||Pr.familyPrefix||Lr;return n===Lr?i:i.replace(new RegExp(String.raw`(?<=^|\s)${Lr}-`,"g"),`${n}-`)}function o1(i){const{beat:n,fade:r,beatFade:o,bounce:s,shake:l,spin:f,spinPulse:d,spinReverse:p,pulse:m,fixedWidth:S,inverse:w,border:O,flip:y,size:E,rotation:_,pull:I,swapOpacity:C,rotateBy:F,widthAuto:U,className:V}=i,B=[];return V&&B.push(...V.split(" ")),n&&B.push(zt.beat),r&&B.push(zt.fade),o&&B.push(zt.beatFade),s&&B.push(zt.bounce),l&&B.push(zt.shake),f&&B.push(zt.spin),p&&B.push(zt.spinReverse),d&&B.push(zt.spinPulse),m&&B.push(zt.pulse),S&&B.push(jt.fixedWidth),w&&B.push(jt.inverse),O&&B.push(jt.border),y===!0&&B.push(jt.flip),(y==="horizontal"||y==="both")&&B.push(jt.flipHorizontal),(y==="vertical"||y==="both")&&B.push(jt.flipVertical),E!=null&&B.push(i1[E]),_!=null&&_!==0&&B.push(r1[_]),I!=null&&B.push(n1[I]),C&&B.push(jt.swapOpacity),t1?(F&&B.push(jt.rotateBy),U&&B.push(jt.widthAuto),(Pr.cssPrefix||Pr.familyPrefix||Lr)===Lr?B:B.map(a1)):B}var s1=i=>typeof i=="object"&&"icon"in i&&!!i.icon;function cc(i){if(i)return s1(i)?i:sc.icon(i)}function u1(i){return Object.keys(i)}var dc=new Qb("FontAwesomeIcon"),hc={border:!1,className:"",mask:void 0,maskId:void 0,fixedWidth:!1,inverse:!1,flip:!1,icon:void 0,listItem:!1,pull:void 0,pulse:!1,rotation:void 0,rotateBy:!1,size:void 0,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:void 0,transform:void 0,swapOpacity:!1,widthAuto:!1},l1=new Set(Object.keys(hc)),Vn=A.forwardRef((i,n)=>{const r={...hc,...i},{icon:o,mask:s,symbol:l,title:f,titleId:d,maskId:p,transform:m}=r,S=fc(p,!!s),w=fc(d,!!f),O=cc(o);if(!O)return dc.error("Icon lookup is undefined",o),null;const y=o1(r),E=typeof m=="string"?sc.transform(m):m,_=cc(s),I=Yb(O,{...y.length>0&&{classes:y},...E&&{transform:E},..._&&{mask:_},symbol:l,title:f,titleId:w,maskId:S});if(!I)return dc.error("Could not find icon",O),null;const{abstract:C}=I,F={ref:n};for(const U of u1(r))l1.has(U)||(F[U]=r[U]);return Zb(C[0],F)});Vn.displayName="FontAwesomeIcon";var f1={prefix:"fas",iconName:"expand",icon:[448,512,[],"f065","M32 32C14.3 32 0 46.3 0 64l0 96c0 17.7 14.3 32 32 32s32-14.3 32-32l0-64 64 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L32 32zM64 352c0-17.7-14.3-32-32-32S0 334.3 0 352l0 96c0 17.7 14.3 32 32 32l96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-64 0 0-64zM320 32c-17.7 0-32 14.3-32 32s14.3 32 32 32l64 0 0 64c0 17.7 14.3 32 32 32s32-14.3 32-32l0-96c0-17.7-14.3-32-32-32l-96 0zM448 352c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 64-64 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l96 0c17.7 0 32-14.3 32-32l0-96z"]},c1={prefix:"fas",iconName:"ellipsis-vertical",icon:[128,512,["ellipsis-v"],"f142","M64 144a56 56 0 1 1 0-112 56 56 0 1 1 0 112zm0 224c30.9 0 56 25.1 56 56s-25.1 56-56 56-56-25.1-56-56 25.1-56 56-56zm56-112c0 30.9-25.1 56-56 56s-56-25.1-56-56 25.1-56 56-56 56 25.1 56 56z"]},gc={prefix:"fas",iconName:"circle-xmark",icon:[512,512,[61532,"times-circle","xmark-circle"],"f057","M256 512a256 256 0 1 0 0-512 256 256 0 1 0 0 512zM167 167c9.4-9.4 24.6-9.4 33.9 0l55 55 55-55c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-55 55 55 55c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-55-55-55 55c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l55-55-55-55c-9.4-9.4-9.4-24.6 0-33.9z"]},d1={prefix:"fas",iconName:"angle-down",icon:[384,512,[8964],"f107","M169.4 374.6c12.5 12.5 32.8 12.5 45.3 0l160-160c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 306.7 54.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l160 160z"]};function h1({layoutId:i,justId:n,winInfo:r}){console.log("TabTitle justId",n);const[o,s]=no(),[l]=A.useState({x:0,y:0}),f=Lt(i),d=f.getTabTitleTooltip(n),p=S=>{f.removeWin({justId:S})},m=(S,w)=>{f.activeWin({justId:w})};return $.jsxs($.Fragment,{children:[$.jsx("div",{className:"just-icon",onClick:S=>m(S,n),title:d,children:r.getTabIcon(n,i)}),$.jsx("div",{className:"just-title",onClick:S=>m(S,n),title:d,children:f.getTabTitle(n)??n.title}),$.jsx("div",{className:"just-icon just-close",onClick:()=>p(n),children:$.jsx(Vn,{icon:gc})}),$.jsx(vl,{state:o.state,endTransition:o.endTransition,anchorPoint:l,onClose:()=>s(!1),children:$.jsxs(wi,{onClick:()=>p(n),children:[$.jsx("div",{className:"just-icon"}),$.jsx("div",{className:"just-title",children:"Close"}),$.jsx("div",{className:"just-icon"})]})})]})}const pc=Bt(h1);function g1(i){const{layoutId:n,isFullScreenView:r,dndAccept:o,winInfo:s,justBranch:l,justId:f,justStack:d,rect:p}=i,m=A.useRef(null),[,S]=no(),[,w]=A.useState({x:0,y:0}),O=Lt(n),[{isDragging:y},E]=Ov({type:f.viewId,item:{justBranch:l,justId:f,index:-1},collect:C=>({isDragging:C.isDragging()})}),[,_]=Ga({accept:o,collect(C){return{handlerId:C.getHandlerId()}},hover(C,F){if(!m.current||f===C.justId)return;const U=m.current.getBoundingClientRect(),V=F.getClientOffset(),B=(U.right-U.left)/2,ue=V.x-U.left,N=C.justId,L=f,j=d.tabs.filter(Y=>!ge.isEquals(Y,N));let ee=ge.indexOf(j,L);ue>B&&(ee+=1),C.pos="stack",C.index=ee}});A.useEffect(()=>{if(ge.isEquals(f,O.lastActiveId??null)){if(m.current==null||p==null)return;const C=m.current.getBoundingClientRect();(p.left>C.left||p.right<C.right)&&m.current.scrollIntoView({behavior:"auto",block:"center",inline:"center"})}},[O.lastActiveTm]),A.useLayoutEffect(()=>{m.current&&E(_(m))},[_,E]);const I=A.useCallback(C=>{C.preventDefault(),w({x:C.clientX,y:C.clientY}),S(!0)},[S]);return $.jsx("div",{className:Et("just-draggable-title","just-title-menus",{dragging:y,"just-active":ge.isEquals(d.active,f),"last-active":ge.isEquals(O.lastActiveId,f)}),ref:m,onContextMenu:I,children:s.getTabTitle?s.getTabTitle({justId:f,layoutId:n,justBranch:l,isFullScreenView:r,winInfo:s}):$.jsx(pc,{justId:f,layoutId:n,justBranch:l,isFullScreenView:r,winInfo:s})})}const vc=Bt(g1);function mc(i){let n=null;return()=>(n==null&&(n=i()),n)}function p1(i,n){return i.filter(r=>r!==n)}function v1(i,n){const r=new Set,o=l=>r.add(l);i.forEach(o),n.forEach(o);const s=[];return r.forEach(l=>s.push(l)),s}class m1{enter(n){const r=this.entered.length,o=s=>this.isNodeInDocument(s)&&(!s.contains||s.contains(n));return this.entered=v1(this.entered.filter(o),[n]),r===0&&this.entered.length>0}leave(n){const r=this.entered.length;return this.entered=p1(this.entered.filter(this.isNodeInDocument),n),r>0&&this.entered.length===0}reset(){this.entered=[]}constructor(n){this.entered=[],this.isNodeInDocument=n}}class y1{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach(n=>{Object.defineProperty(this.item,n,{configurable:!0,enumerable:!0,get(){return console.warn(`Browser doesn't allow reading "${n}" until the drop event.`),null}})})}loadDataTransfer(n){if(n){const r={};Object.keys(this.config.exposeProperties).forEach(o=>{const s=this.config.exposeProperties[o];s!=null&&(r[o]={value:s(n,this.config.matchesTypes),configurable:!0,enumerable:!0})}),Object.defineProperties(this.item,r)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(n,r){return r===n.getSourceId()}endDrag(){}constructor(n){this.config=n,this.item={},this.initializeExposedProperties()}}const yc="__NATIVE_FILE__",bc="__NATIVE_URL__",Sc="__NATIVE_TEXT__",wc="__NATIVE_HTML__",_c=Object.freeze(Object.defineProperty({__proto__:null,FILE:yc,HTML:wc,TEXT:Sc,URL:bc},Symbol.toStringTag,{value:"Module"}));function jo(i,n,r){const o=n.reduce((s,l)=>s||i.getData(l),"");return o??r}const qo={[yc]:{exposeProperties:{files:i=>Array.prototype.slice.call(i.files),items:i=>i.items,dataTransfer:i=>i},matchesTypes:["Files"]},[wc]:{exposeProperties:{html:(i,n)=>jo(i,n,""),dataTransfer:i=>i},matchesTypes:["Html","text/html"]},[bc]:{exposeProperties:{urls:(i,n)=>jo(i,n,"").split(`
|
|
577
|
-
`),dataTransfer:i=>i},matchesTypes:["Url","text/uri-list"]},[Sc]:{exposeProperties:{text:(i,n)=>jo(i,n,""),dataTransfer:i=>i},matchesTypes:["Text","text/plain"]}};function b1(i,n){const r=qo[i];if(!r)throw new Error(`native type ${i} has no configuration`);const o=new y1(r);return o.loadDataTransfer(n),o}function Go(i){if(!i)return null;const n=Array.prototype.slice.call(i.types||[]);return Object.keys(qo).filter(r=>{const o=qo[r];return o?.matchesTypes?o.matchesTypes.some(s=>n.indexOf(s)>-1):!1})[0]||null}const S1=mc(()=>/firefox/i.test(navigator.userAgent)),Ec=mc(()=>!!window.safari);class Tc{interpolate(n){const{xs:r,ys:o,c1s:s,c2s:l,c3s:f}=this;let d=r.length-1;if(n===r[d])return o[d];let p=0,m=f.length-1,S;for(;p<=m;){S=Math.floor(.5*(p+m));const y=r[S];if(y<n)p=S+1;else if(y>n)m=S-1;else return o[S]}d=Math.max(0,m);const w=n-r[d],O=w*w;return o[d]+s[d]*w+l[d]*O+f[d]*w*O}constructor(n,r){const{length:o}=n,s=[];for(let y=0;y<o;y++)s.push(y);s.sort((y,E)=>n[y]<n[E]?-1:1);const l=[],f=[];let d,p;for(let y=0;y<o-1;y++)d=n[y+1]-n[y],p=r[y+1]-r[y],l.push(d),f.push(p/d);const m=[f[0]];for(let y=0;y<l.length-1;y++){const E=f[y],_=f[y+1];if(E*_<=0)m.push(0);else{d=l[y];const I=l[y+1],C=d+I;m.push(3*C/((C+I)/E+(C+d)/_))}}m.push(f[f.length-1]);const S=[],w=[];let O;for(let y=0;y<m.length-1;y++){O=f[y];const E=m[y],_=1/l[y],I=E+m[y+1]-O-O;S.push((O-E-I)*_),w.push(I*_*_)}this.xs=n,this.ys=r,this.c1s=m,this.c2s=S,this.c3s=w}}const w1=1;function xc(i){const n=i.nodeType===w1?i:i.parentElement;if(!n)return null;const{top:r,left:o}=n.getBoundingClientRect();return{x:o,y:r}}function Fi(i){return{x:i.clientX,y:i.clientY}}function _1(i){var n;return i.nodeName==="IMG"&&(S1()||!(!((n=document.documentElement)===null||n===void 0)&&n.contains(i)))}function E1(i,n,r,o){let s=i?n.width:r,l=i?n.height:o;return Ec()&&i&&(l/=window.devicePixelRatio,s/=window.devicePixelRatio),{dragPreviewWidth:s,dragPreviewHeight:l}}function T1(i,n,r,o,s){const l=_1(n),d=xc(l?i:n),p={x:r.x-d.x,y:r.y-d.y},{offsetWidth:m,offsetHeight:S}=i,{anchorX:w,anchorY:O}=o,{dragPreviewWidth:y,dragPreviewHeight:E}=E1(l,n,m,S),_=()=>{let ue=new Tc([0,.5,1],[p.y,p.y/S*E,p.y+E-S]).interpolate(O);return Ec()&&l&&(ue+=(window.devicePixelRatio-1)*E),ue},I=()=>new Tc([0,.5,1],[p.x,p.x/m*y,p.x+y-m]).interpolate(w),{offsetX:C,offsetY:F}=s,U=C===0||C,V=F===0||F;return{x:U?C:I(),y:V?F:_()}}class x1{get window(){if(this.globalContext)return this.globalContext;if(typeof window<"u")return window}get document(){var n;return!((n=this.globalContext)===null||n===void 0)&&n.document?this.globalContext.document:this.window?this.window.document:void 0}get rootElement(){var n;return((n=this.optionsArgs)===null||n===void 0?void 0:n.rootElement)||this.window}constructor(n,r){this.ownerDocument=null,this.globalContext=n,this.optionsArgs=r}}function I1(i,n,r){return n in i?Object.defineProperty(i,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):i[n]=r,i}function Ic(i){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{},o=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(r).filter(function(s){return Object.getOwnPropertyDescriptor(r,s).enumerable}))),o.forEach(function(s){I1(i,s,r[s])})}return i}class O1{profile(){var n,r;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:((n=this.dragStartSourceIds)===null||n===void 0?void 0:n.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:((r=this.dragOverTargetIds)===null||r===void 0?void 0:r.length)||0}}get window(){return this.options.window}get document(){return this.options.document}get rootElement(){return this.options.rootElement}setup(){const n=this.rootElement;if(n!==void 0){if(n.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");n.__isReactDndBackendSetUp=!0,this.addEventListeners(n)}}teardown(){const n=this.rootElement;if(n!==void 0&&(n.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId)){var r;(r=this.window)===null||r===void 0||r.cancelAnimationFrame(this.asyncEndDragFrameId)}}connectDragPreview(n,r,o){return this.sourcePreviewNodeOptions.set(n,o),this.sourcePreviewNodes.set(n,r),()=>{this.sourcePreviewNodes.delete(n),this.sourcePreviewNodeOptions.delete(n)}}connectDragSource(n,r,o){this.sourceNodes.set(n,r),this.sourceNodeOptions.set(n,o);const s=f=>this.handleDragStart(f,n),l=f=>this.handleSelectStart(f);return r.setAttribute("draggable","true"),r.addEventListener("dragstart",s),r.addEventListener("selectstart",l),()=>{this.sourceNodes.delete(n),this.sourceNodeOptions.delete(n),r.removeEventListener("dragstart",s),r.removeEventListener("selectstart",l),r.setAttribute("draggable","false")}}connectDropTarget(n,r){const o=f=>this.handleDragEnter(f,n),s=f=>this.handleDragOver(f,n),l=f=>this.handleDrop(f,n);return r.addEventListener("dragenter",o),r.addEventListener("dragover",s),r.addEventListener("drop",l),()=>{r.removeEventListener("dragenter",o),r.removeEventListener("dragover",s),r.removeEventListener("drop",l)}}addEventListeners(n){n.addEventListener&&(n.addEventListener("dragstart",this.handleTopDragStart),n.addEventListener("dragstart",this.handleTopDragStartCapture,!0),n.addEventListener("dragend",this.handleTopDragEndCapture,!0),n.addEventListener("dragenter",this.handleTopDragEnter),n.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),n.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),n.addEventListener("dragover",this.handleTopDragOver),n.addEventListener("dragover",this.handleTopDragOverCapture,!0),n.addEventListener("drop",this.handleTopDrop),n.addEventListener("drop",this.handleTopDropCapture,!0))}removeEventListeners(n){n.removeEventListener&&(n.removeEventListener("dragstart",this.handleTopDragStart),n.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),n.removeEventListener("dragend",this.handleTopDragEndCapture,!0),n.removeEventListener("dragenter",this.handleTopDragEnter),n.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),n.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),n.removeEventListener("dragover",this.handleTopDragOver),n.removeEventListener("dragover",this.handleTopDragOverCapture,!0),n.removeEventListener("drop",this.handleTopDrop),n.removeEventListener("drop",this.handleTopDropCapture,!0))}getCurrentSourceNodeOptions(){const n=this.monitor.getSourceId(),r=this.sourceNodeOptions.get(n);return Ic({dropEffect:this.altKeyPressed?"copy":"move"},r||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const n=this.monitor.getSourceId(),r=this.sourcePreviewNodeOptions.get(n);return Ic({anchorX:.5,anchorY:.5,captureDraggingState:!1},r||{})}isDraggingNativeItem(){const n=this.monitor.getItemType();return Object.keys(_c).some(r=>_c[r]===n)}beginDragNativeItem(n,r){this.clearCurrentDragSourceNode(),this.currentNativeSource=b1(n,r),this.currentNativeHandle=this.registry.addSource(n,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(n){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=n;const r=1e3;this.mouseMoveTimeoutTimer=setTimeout(()=>{var o;return(o=this.rootElement)===null||o===void 0?void 0:o.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)},r)}clearCurrentDragSourceNode(){if(this.currentDragSourceNode){if(this.currentDragSourceNode=null,this.rootElement){var n;(n=this.window)===null||n===void 0||n.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)}return this.mouseMoveTimeoutTimer=null,!0}return!1}handleDragStart(n,r){n.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(r))}handleDragEnter(n,r){this.dragEnterTargetIds.unshift(r)}handleDragOver(n,r){this.dragOverTargetIds===null&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(r)}handleDrop(n,r){this.dropTargetIds.unshift(r)}constructor(n,r,o){this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.lastClientOffset=null,this.hoverRafId=null,this.getSourceClientOffset=s=>{const l=this.sourceNodes.get(s);return l&&xc(l)||null},this.endDragNativeItem=()=>{this.isDraggingNativeItem()&&(this.actions.endDrag(),this.currentNativeHandle&&this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)},this.isNodeInDocument=s=>!!(s&&this.document&&this.document.body&&this.document.body.contains(s)),this.endDragIfSourceWasRemovedFromDOM=()=>{const s=this.currentDragSourceNode;s==null||this.isNodeInDocument(s)||(this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover())},this.scheduleHover=s=>{this.hoverRafId===null&&typeof requestAnimationFrame<"u"&&(this.hoverRafId=requestAnimationFrame(()=>{this.monitor.isDragging()&&this.actions.hover(s||[],{clientOffset:this.lastClientOffset}),this.hoverRafId=null}))},this.cancelHover=()=>{this.hoverRafId!==null&&typeof cancelAnimationFrame<"u"&&(cancelAnimationFrame(this.hoverRafId),this.hoverRafId=null)},this.handleTopDragStartCapture=()=>{this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]},this.handleTopDragStart=s=>{if(s.defaultPrevented)return;const{dragStartSourceIds:l}=this;this.dragStartSourceIds=null;const f=Fi(s);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(l||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:f});const{dataTransfer:d}=s,p=Go(d);if(this.monitor.isDragging()){if(d&&typeof d.setDragImage=="function"){const S=this.monitor.getSourceId(),w=this.sourceNodes.get(S),O=this.sourcePreviewNodes.get(S)||w;if(O){const{anchorX:y,anchorY:E,offsetX:_,offsetY:I}=this.getCurrentSourcePreviewNodeOptions(),U=T1(w,O,f,{anchorX:y,anchorY:E},{offsetX:_,offsetY:I});d.setDragImage(O,U.x,U.y)}}try{d?.setData("application/json",{})}catch{}this.setCurrentDragSourceNode(s.target);const{captureDraggingState:m}=this.getCurrentSourcePreviewNodeOptions();m?this.actions.publishDragSource():setTimeout(()=>this.actions.publishDragSource(),0)}else if(p)this.beginDragNativeItem(p);else{if(d&&!d.types&&(s.target&&!s.target.hasAttribute||!s.target.hasAttribute("draggable")))return;s.preventDefault()}},this.handleTopDragEndCapture=()=>{this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleTopDragEnterCapture=s=>{if(this.dragEnterTargetIds=[],this.isDraggingNativeItem()){var l;(l=this.currentNativeSource)===null||l===void 0||l.loadDataTransfer(s.dataTransfer)}if(!this.enterLeaveCounter.enter(s.target)||this.monitor.isDragging())return;const{dataTransfer:d}=s,p=Go(d);p&&this.beginDragNativeItem(p,d)},this.handleTopDragEnter=s=>{const{dragEnterTargetIds:l}=this;if(this.dragEnterTargetIds=[],!this.monitor.isDragging())return;this.altKeyPressed=s.altKey,l.length>0&&this.actions.hover(l,{clientOffset:Fi(s)}),l.some(d=>this.monitor.canDropOnTarget(d))&&(s.preventDefault(),s.dataTransfer&&(s.dataTransfer.dropEffect=this.getCurrentDropEffect()))},this.handleTopDragOverCapture=s=>{if(this.dragOverTargetIds=[],this.isDraggingNativeItem()){var l;(l=this.currentNativeSource)===null||l===void 0||l.loadDataTransfer(s.dataTransfer)}},this.handleTopDragOver=s=>{const{dragOverTargetIds:l}=this;if(this.dragOverTargetIds=[],!this.monitor.isDragging()){s.preventDefault(),s.dataTransfer&&(s.dataTransfer.dropEffect="none");return}this.altKeyPressed=s.altKey,this.lastClientOffset=Fi(s),this.scheduleHover(l),(l||[]).some(d=>this.monitor.canDropOnTarget(d))?(s.preventDefault(),s.dataTransfer&&(s.dataTransfer.dropEffect=this.getCurrentDropEffect())):this.isDraggingNativeItem()?s.preventDefault():(s.preventDefault(),s.dataTransfer&&(s.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=s=>{this.isDraggingNativeItem()&&s.preventDefault(),this.enterLeaveCounter.leave(s.target)&&(this.isDraggingNativeItem()&&setTimeout(()=>this.endDragNativeItem(),0),this.cancelHover())},this.handleTopDropCapture=s=>{if(this.dropTargetIds=[],this.isDraggingNativeItem()){var l;s.preventDefault(),(l=this.currentNativeSource)===null||l===void 0||l.loadDataTransfer(s.dataTransfer)}else Go(s.dataTransfer)&&s.preventDefault();this.enterLeaveCounter.reset()},this.handleTopDrop=s=>{const{dropTargetIds:l}=this;this.dropTargetIds=[],this.actions.hover(l,{clientOffset:Fi(s)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleSelectStart=s=>{const l=s.target;typeof l.dragDrop=="function"&&(l.tagName==="INPUT"||l.tagName==="SELECT"||l.tagName==="TEXTAREA"||l.isContentEditable||(s.preventDefault(),l.dragDrop()))},this.options=new x1(r,o),this.actions=n.getActions(),this.monitor=n.getMonitor(),this.registry=n.getRegistry(),this.enterLeaveCounter=new m1(this.isNodeInDocument)}}const D1=function(n,r,o){return new O1(n,r,o)};function A1({layoutId:i,justBranch:n,isFullScreenView:r}){const o=Lt(i),s=()=>{console.log("closeAllTabs justBranch",n),o.removeAllTabs({branch:n})},l=async(f=!1)=>{r?o.setLayout(null):(o.setFullScreenLayoutByBranch(n),o.setFullScreenHideTitle(f))};return $.jsxs($.Fragment,{children:[$.jsxs(wi,{className:"just-menu-item",onClick:()=>s(),children:[$.jsx("div",{className:"just-icon"}),$.jsx("div",{className:"just-title",children:"Close All"}),$.jsx("div",{className:"just-icon"})]}),$.jsxs(wi,{className:"just-menu-item",onClick:()=>l(!0),children:[$.jsx("div",{className:"just-icon",children:$.jsx(Vn,{icon:f1})}),$.jsx("div",{className:"just-title",children:r?"F11":"Full"}),$.jsx("div",{className:"just-icon"})]})]})}const Oc=Bt(A1);function C1({layoutId:i,isFullScreenView:n,dndAccept:r,justBranch:o,justStack:s,getWinInfo:l,getTabMenu:f}){const d=A.useRef(null),[p,m]=A.useState(null),S=Lt(i),w=I=>{S.removeWin({justId:I})},O=I=>{S.activeWin({justId:I})},y=(I,C)=>{S.moveWin({pos:"stack",justId:C.justId,branch:o,index:C.index??-1})},[{isOver:E},_]=Ga(()=>({accept:r,collect:I=>({isOver:I.isOver()}),drop(I,C){y(C.getItemType(),C.getItem())},hover(I,C){d.current&&(I.index=-1)}}),[s]);return A.useLayoutEffect(()=>{d.current&&_(d)},[_]),A.useEffect(()=>{if(d.current===null)return;function I(){if(d.current===null)return;const F=d.current.getBoundingClientRect()??null;m(F)}I();const C=new ResizeObserver(I);return C.observe(d.current),window.addEventListener("scroll",I,!0),()=>{C.disconnect(),window.removeEventListener("scroll",I,!0)}},[]),$.jsxs("div",{className:Et("just-win-title"),tabIndex:1,children:[$.jsx("div",{className:Et("just-title-list",{"is-over":E}),ref:d,children:s.tabs.map(I=>$.jsx(vc,{layoutId:i,isFullScreenView:n,dndAccept:r,rect:p,justId:I,justBranch:o,justStack:s,winInfo:l(I)},[...o,ge.toString(I)].join(",")))}),$.jsxs("div",{className:"just-title-menus",children:[$.jsx(Sl,{menuButton:$.jsx("div",{className:"just-title-menu",children:$.jsx(Vn,{icon:d1})}),children:s.tabs.map(I=>$.jsxs(wi,{className:Et("just-menu-item",{active:ge.isEquals(s.active,I)}),children:[$.jsx("div",{className:"just-icon",onClick:()=>O(I),children:l(I).getTabIcon(I,i)}),$.jsx("div",{className:"just-title",onClick:()=>O(I),children:S.getTabTitle(I)??I.title}),$.jsx("div",{className:"just-icon just-close",onClick:C=>{C.stopPropagation(),w(I)},children:$.jsx(Vn,{icon:gc})})]},ge.toString(I)))}),$.jsx(Sl,{menuButton:$.jsx("div",{className:"just-title-menu",children:$.jsx(Vn,{icon:c1})}),children:f?f(i,o,s,n):$.jsx(Oc,{layoutId:i,justBranch:o,justStack:s,isFullScreenView:n})})]})]})}const Dc=Bt(C1);function N1(i){const n=A.useRef(null),{layoutId:r,dndAccept:o,getWinInfo:s,justBranch:l,justStack:f}=i,[d,p]=A.useState(null),m=Lt(r),S=(y,E)=>{E.pos&&(E.pos==="stack"?m.moveWin({pos:E.pos,justId:E.justId,branch:l,index:E.index??-1}):m.moveWin({pos:E.pos,justId:E.justId,branch:l,direction:E.direction??"row"}))},[{isOver:w},O]=Ga(()=>({accept:o,collect:y=>({isOver:y.isOver()}),drop(y,E){n.current&&S(E.getItemType(),E.getItem())},hover(y,E){if(!n.current)return;const _=n.current.getBoundingClientRect(),I=E.getClientOffset(),C=(_.right-_.left)/2,F=(_.bottom-_.top)/2,U=I.x-_.left,V=I.y-_.top,B=U-C,ue=V-F,N=Math.abs(B*100/C),L=Math.abs(ue*100/F);if(N<60&&L<60){y.pos="stack";const j={top:_.top,left:_.left,width:_.width,height:_.height};p(j)}else{const j=N>L?"row":"column",Y=Math.sign(j==="row"?B:ue)>0?"second":"first";y.direction=j,y.pos=Y;const ae={top:Y==="second"&&j==="column"?_.top+_.height/2:_.top,left:Y==="second"&&j==="row"?_.left+_.width/2:_.left,width:j==="row"?_.width/2:_.width,height:j==="column"?_.height/2:_.height};p(ae)}}}),[f]);return A.useLayoutEffect(()=>{n.current&&O(n)},[O]),$.jsxs("div",{className:Et("just-win-body",{isOver:w,"last-active":ge.isEquals(f.active,m.lastActiveId)}),ref:n,children:[f.tabs.map(y=>$.jsx(A.Activity,{mode:ge.isEquals(f.active,y)?"visible":"hidden",children:s(y).getView(y,r)},ge.toString(y))),w&&d!=null&&$.jsx("div",{className:"just-overlay",style:{top:d.top,left:d.left,width:`${d.width}px`,height:`${d.height}px`}})]})}const Ac=Bt(N1);function P1({layoutId:i,isFullScreenView:n,hideTitle:r,dndAccept:o,justBranch:s,justStack:l,getWinInfo:f,getTabMenu:d}){const p=Lt(i),m=p.fullScreenHideTitle,S=r!==!0,w=()=>{l.active&&p.activeWin({justId:l.active})};return $.jsxs("div",{className:"just-win",onFocusCapture:w,tabIndex:1,children:[S&&!m&&$.jsx(Dc,{layoutId:i,isFullScreenView:n,dndAccept:o,justBranch:s,justStack:l,getWinInfo:f,getTabMenu:d}),$.jsx(Ac,{layoutId:i,dndAccept:o,justBranch:s,justStack:l,getWinInfo:f})]})}const Cc=Bt(P1);var Yo,Nc;function Jo(){if(Nc)return Yo;Nc=1;function i(n){var r=typeof n;return n!=null&&(r=="object"||r=="function")}return Yo=i,Yo}var Vo,Pc;function L1(){if(Pc)return Vo;Pc=1;var i=typeof nn=="object"&&nn&&nn.Object===Object&&nn;return Vo=i,Vo}var Xo,Lc;function Mc(){if(Lc)return Xo;Lc=1;var i=L1(),n=typeof self=="object"&&self&&self.Object===Object&&self,r=i||n||Function("return this")();return Xo=r,Xo}var Ko,kc;function M1(){if(kc)return Ko;kc=1;var i=Mc(),n=function(){return i.Date.now()};return Ko=n,Ko}var Zo,Fc;function k1(){if(Fc)return Zo;Fc=1;var i=/\s/;function n(r){for(var o=r.length;o--&&i.test(r.charAt(o)););return o}return Zo=n,Zo}var Qo,Rc;function F1(){if(Rc)return Qo;Rc=1;var i=k1(),n=/^\s+/;function r(o){return o&&o.slice(0,i(o)+1).replace(n,"")}return Qo=r,Qo}var es,Wc;function Bc(){if(Wc)return es;Wc=1;var i=Mc(),n=i.Symbol;return es=n,es}var ts,$c;function R1(){if($c)return ts;$c=1;var i=Bc(),n=Object.prototype,r=n.hasOwnProperty,o=n.toString,s=i?i.toStringTag:void 0;function l(f){var d=r.call(f,s),p=f[s];try{f[s]=void 0;var m=!0}catch{}var S=o.call(f);return m&&(d?f[s]=p:delete f[s]),S}return ts=l,ts}var ns,Uc;function W1(){if(Uc)return ns;Uc=1;var i=Object.prototype,n=i.toString;function r(o){return n.call(o)}return ns=r,ns}var rs,Hc;function B1(){if(Hc)return rs;Hc=1;var i=Bc(),n=R1(),r=W1(),o="[object Null]",s="[object Undefined]",l=i?i.toStringTag:void 0;function f(d){return d==null?d===void 0?s:o:l&&l in Object(d)?n(d):r(d)}return rs=f,rs}var is,zc;function $1(){if(zc)return is;zc=1;function i(n){return n!=null&&typeof n=="object"}return is=i,is}var as,jc;function U1(){if(jc)return as;jc=1;var i=B1(),n=$1(),r="[object Symbol]";function o(s){return typeof s=="symbol"||n(s)&&i(s)==r}return as=o,as}var os,qc;function Gc(){if(qc)return os;qc=1;var i=F1(),n=Jo(),r=U1(),o=NaN,s=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,f=/^0o[0-7]+$/i,d=parseInt;function p(m){if(typeof m=="number")return m;if(r(m))return o;if(n(m)){var S=typeof m.valueOf=="function"?m.valueOf():m;m=n(S)?S+"":S}if(typeof m!="string")return m===0?m:+m;m=i(m);var w=l.test(m);return w||f.test(m)?d(m.slice(2),w?2:8):s.test(m)?o:+m}return os=p,os}var ss,Yc;function H1(){if(Yc)return ss;Yc=1;var i=Jo(),n=M1(),r=Gc(),o="Expected a function",s=Math.max,l=Math.min;function f(d,p,m){var S,w,O,y,E,_,I=0,C=!1,F=!1,U=!0;if(typeof d!="function")throw new TypeError(o);p=r(p)||0,i(m)&&(C=!!m.leading,F="maxWait"in m,O=F?s(r(m.maxWait)||0,p):O,U="trailing"in m?!!m.trailing:U);function V(X){var We=S,Je=w;return S=w=void 0,I=X,y=d.apply(Je,We),y}function B(X){return I=X,E=setTimeout(L,p),C?V(X):y}function ue(X){var We=X-_,Je=X-I,Ve=p-We;return F?l(Ve,O-Je):Ve}function N(X){var We=X-_,Je=X-I;return _===void 0||We>=p||We<0||F&&Je>=O}function L(){var X=n();if(N(X))return j(X);E=setTimeout(L,ue(X))}function j(X){return E=void 0,U&&S?V(X):(S=w=void 0,y)}function ee(){E!==void 0&&clearTimeout(E),I=0,S=_=w=E=void 0}function Y(){return E===void 0?y:j(n())}function ae(){var X=n(),We=N(X);if(S=arguments,w=this,_=X,We){if(E===void 0)return B(_);if(F)return clearTimeout(E),E=setTimeout(L,p),V(_)}return E===void 0&&(E=setTimeout(L,p)),y}return ae.cancel=ee,ae.flush=Y,ae}return ss=f,ss}var us,Jc;function z1(){if(Jc)return us;Jc=1;var i=H1(),n=Jo(),r="Expected a function";function o(s,l,f){var d=!0,p=!0;if(typeof s!="function")throw new TypeError(r);return n(f)&&(d="leading"in f?!!f.leading:d,p="trailing"in f?!!f.trailing:p),i(s,l,{leading:d,maxWait:l,trailing:p})}return us=o,us}var j1=z1();const q1=br(j1);var ls,Vc;function G1(){if(Vc)return ls;Vc=1;function i(n,r,o){return n===n&&(o!==void 0&&(n=n<=o?n:o),r!==void 0&&(n=n>=r?n:r)),n}return ls=i,ls}var fs,Xc;function Y1(){if(Xc)return fs;Xc=1;var i=G1(),n=Gc();function r(o,s,l){return l===void 0&&(l=s,s=void 0),l!==void 0&&(l=n(l),l=l===l?l:0),s!==void 0&&(s=n(s),s=s===s?s:0),i(n(o),s,l)}return fs=r,fs}var J1=Y1();const cs=br(J1),V1=1e3/30;function X1({node:i,containerRef:n,onChange:r,onRelease:o}){const s=A.useRef(null),[l,f]=A.useState(!1),d=()=>{l||(s.current.ownerDocument.addEventListener("mousemove",w,!0),s.current.ownerDocument.addEventListener("mouseup",S,!0),f(!0))},p=()=>{s.current&&(s.current.ownerDocument.removeEventListener("mousemove",w,!0),s.current.ownerDocument.removeEventListener("mouseup",S,!0),f(!1))},m=E=>{E.button===0&&(E.preventDefault(),d())},S=E=>{if(p(),n==null)return;const _=O(E,i,n);_!==null&&o(_)},w=E=>{E.preventDefault(),n!=null&&y(E,i,n)},O=(E,_,I)=>{if(I.current==null)return null;const C=I.current.getBoundingClientRect(),F=_.direction==="row"?E.clientX:E.clientY,U=_.direction==="row"?C.left:C.top,V=_.direction==="row"?C.width:C.height,B=cs(F-U,0,V),ue=cs(V-B,0,V),N=cs(B*100/V,0,100);return _.type==="split-percentage"?{type:_.type,size:N}:_.type==="split-pixels"?_.primary==="first"?{type:"split-pixels",primary:"first",size:B}:{type:"split-pixels",primary:"second",size:ue}:null},y=q1((E,_,I)=>{if(I.current==null)return null;const C=O(E,_,I);C!==null&&r(C)},V1);return A.useEffect(()=>{}),$.jsx("div",{ref:s,className:Et("just-splitter"),onMouseDown:m})}const Kc=Bt(X1);function ds({layoutId:i,isFullScreenView:n,hideTitle:r,dndAccept:o,node:s,justBranch:l,getWinInfo:f,getTabMenu:d}){const p=A.useRef(null),m=Lt(i),S=({size:O})=>{m.updateResize({branch:l,size:O})},w=(O,y)=>O.type==="split-percentage"&&y==="first"?{flexBasis:`calc(${O.size}% - 3px)`,[O.direction==="row"?"minWidth":"minHeight"]:`${O.minSize??0}%`}:O.type==="split-pixels"&&y===O.primary?{flexBasis:`${O.size}px`,[O.direction==="row"?"minWidth":"minHeight"]:`${O.minSize??0}px`}:{};return $.jsxs("div",{ref:p,className:Et("just-node"),children:[s?.type==="stack"&&$.jsx(Cc,{hideTitle:s.hideTitle??r,layoutId:i,isFullScreenView:n,dndAccept:s.dndAccept??o,justStack:s,justBranch:l,getWinInfo:f,getTabMenu:d}),(s?.type==="split-percentage"||s?.type==="split-pixels")&&$.jsxs("div",{className:Et(s.type,{"just-column":s.direction==="column","just-row":s.direction==="row"}),children:[$.jsx(A.Activity,{mode:s.type==="split-pixels"&&s.primary==="first"&&s.primaryHide===!0?"hidden":"visible",children:$.jsx("div",{className:Et("just-first",{"just-primary":s.type==="split-percentage"||s.type==="split-pixels"&&s.primary==="first","just-secondary":!(s.type==="split-percentage"||s.type==="split-pixels"&&s.primary==="first")}),style:w(s,"first"),children:$.jsx(ds,{layoutId:i,isFullScreenView:n,hideTitle:s.hideTitle??r,dndAccept:s.dndAccept??o,node:s.first,justBranch:[...l,"first"],getWinInfo:f,getTabMenu:d})})}),!(s.type==="split-pixels"&&(s.noSplitter===!0||s.primaryHide===!0))&&$.jsx(Kc,{layoutId:i,node:s,justBranch:l,containerRef:p,onChange:S,onRelease:S}),$.jsx(A.Activity,{mode:s.type==="split-pixels"&&s.primary==="second"&&s.primaryHide===!0?"hidden":"visible",children:$.jsx("div",{className:Et("just-second",{"just-primary":!(s.type==="split-percentage"||s.type==="split-pixels"&&s.primary==="first"),"just-secondary":s.type==="split-percentage"||s.type==="split-pixels"&&s.primary==="first"}),style:w(s,"second"),children:$.jsx(ds,{layoutId:i,isFullScreenView:n,hideTitle:s.hideTitle??r,dndAccept:s.dndAccept??o,node:s.second,justBranch:[...l,"second"],getWinInfo:f,getTabMenu:d})})})]},`JustNode-${l.join(",")}`)]})}const hs=Bt(ds);function K1({layoutId:i,getWinInfo:n,getTabMenu:r,initialValue:o}){const s=`${i}_FULLSCREEN`,l=Lt(i),f=Lt(s);return A.useEffect(()=>{f.layout===null&&(l.setFullScreenLayoutByBranch(null),l.setFullScreenHideTitle(!1))},[f.layout]),A.useEffect(()=>{l.setLayout(o),l.setFullScreenLayoutByBranch(null),f.setLayout(null)},[]),A.useEffect(()=>{const d=()=>{},p=async m=>{m.key==="Escape"?(console.log("esc"),l.setFullScreenLayoutByBranch(null)):m.key==="F11"&&(console.log("F11"),l.fullScreenLayout!==null&&l.setFullScreenLayoutByBranch(null)),m.altKey&&(m.key==="ArrowRight"?f.layout!==null?f.activeNextWin():l.activeNextWin():m.key==="ArrowLeft"&&(f.layout!==null?f.activePrevWin():l.activePrevWin()))};return window.addEventListener("keydown",p),document.addEventListener("fullscreenchange",d),()=>{window.removeEventListener("keydown",p),document.removeEventListener("fullscreenchange",d)}},[]),A.useEffect(()=>{console.log("useEffect justLayoutStore.fullScreenLayout",l.fullScreenLayout),f.setLayout(l.fullScreenLayout),l.lastActiveId&&f.activeWin({justId:l.lastActiveId})},[l.fullScreenLayout]),A.useEffect(()=>{f.setFullScreenHideTitle(l.fullScreenHideTitle)},[l.fullScreenHideTitle]),$.jsx(nv,{backend:D1,children:$.jsxs("div",{className:Et("just-layout"),children:[l.fullScreenLayout===null&&$.jsx(hs,{layoutId:i,isFullScreenView:!1,hideTitle:l.layout?.hideTitle,dndAccept:l.layout?.dndAccept??[],node:l.layout,justBranch:[],getWinInfo:n,getTabMenu:r}),l.fullScreenLayout!==null&&$.jsx(hs,{layoutId:s,isFullScreenView:!0,hideTitle:l.layout?.hideTitle,dndAccept:l.layout?.dndAccept??[],node:f.layout,justBranch:[],getWinInfo:n,getTabMenu:r})]})})}const Z1=Bt(K1);he.JUST_LAYOUT_TYPES=Wt,he.JustDraggableTitle=vc,he.JustLayoutView=Z1,he.JustNodeView=hs,he.JustSplitter=Kc,he.JustTabMenu=Oc,he.JustTabTitle=pc,he.JustUtil=ge,he.JustWinBodyView=Ac,he.JustWinTitleView=Dc,he.JustWinView=Cc,he.justLayoutModule=kg,he.stableStringify=Pu,he.useJustLayoutStore=Lt,Object.defineProperty(he,Symbol.toStringTag,{value:"Module"})}));
|
|
573
|
+
}`;function wf(){var a=lf,i=cf,n=G.cssPrefix,o=G.replacementClass,u=Ig;if(n!==a||o!==i){var f=new RegExp("\\.".concat(a,"\\-"),"g"),c=new RegExp("\\--".concat(a,"\\-"),"g"),p=new RegExp("\\.".concat(i),"g");u=u.replace(f,".".concat(n,"-")).replace(c,"--".concat(n,"-")).replace(p,".".concat(o))}return u}var Sf=!1;function Va(){G.autoAddCss&&!Sf&&(Sg(wf()),Sf=!0)}var Og={mixout:function(){return{dom:{css:wf,insertCss:Va}}},hooks:function(){return{beforeDOMElementCreation:function(){Va()},beforeI2svg:function(){Va()}}}},Rt=en||{};Rt[Bt]||(Rt[Bt]={}),Rt[Bt].styles||(Rt[Bt].styles={}),Rt[Bt].hooks||(Rt[Bt].hooks={}),Rt[Bt].shims||(Rt[Bt].shims=[]);var xt=Rt[Bt],xf=[],Ef=function(){be.removeEventListener("DOMContentLoaded",Ef),gi=1,xf.map(function(i){return i()})},gi=!1;Wt&&(gi=(be.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(be.readyState),gi||be.addEventListener("DOMContentLoaded",Ef));function Cg(a){Wt&&(gi?setTimeout(a,0):xf.push(a))}function _r(a){var i=a.tag,n=a.attributes,o=n===void 0?{}:n,u=a.children,f=u===void 0?[]:u;return typeof a=="string"?_f(a):"<".concat(i," ").concat(Eg(o),">").concat(f.map(_r).join(""),"</").concat(i,">")}function Af(a,i,n){if(a&&a[i]&&a[i][n])return{prefix:i,iconName:n,icon:a[i][n]}}var Za=function(i,n,o,u){var f=Object.keys(i),c=f.length,p=n,g,y,_;for(o===void 0?(g=1,_=i[f[0]]):(g=0,_=o);g<c;g++)y=f[g],_=p(_,i[y],y,i);return _};function Tf(a){return St(a).length!==1?null:a.codePointAt(0).toString(16)}function If(a){return Object.keys(a).reduce(function(i,n){var o=a[n],u=!!o.icon;return u?i[o.iconName]=o.icon:i[n]=o,i},{})}function Qa(a,i){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=n.skipHooks,u=o===void 0?!1:o,f=If(i);typeof xt.hooks.addPack=="function"&&!u?xt.hooks.addPack(a,If(i)):xt.styles[a]=B(B({},xt.styles[a]||{}),f),a==="fas"&&Qa("fa",i)}var wr=xt.styles,Ng=xt.shims,Of=Object.keys(Ga),Lg=Of.reduce(function(a,i){return a[i]=Object.keys(Ga[i]),a},{}),eo=null,Cf={},Nf={},Lf={},Pf={},Ff={};function Pg(a){return~mg.indexOf(a)}function Fg(a,i){var n=i.split("-"),o=n[0],u=n.slice(1).join("-");return o===a&&u!==""&&!Pg(u)?u:null}var Mf=function(){var i=function(f){return Za(wr,function(c,p,g){return c[g]=Za(p,f,{}),c},{})};Cf=i(function(u,f,c){if(f[3]&&(u[f[3]]=c),f[2]){var p=f[2].filter(function(g){return typeof g=="number"});p.forEach(function(g){u[g.toString(16)]=c})}return u}),Nf=i(function(u,f,c){if(u[c]=c,f[2]){var p=f[2].filter(function(g){return typeof g=="string"});p.forEach(function(g){u[g]=c})}return u}),Ff=i(function(u,f,c){var p=f[2];return u[c]=c,p.forEach(function(g){u[g]=c}),u});var n="far"in wr||G.autoFetchSvg,o=Za(Ng,function(u,f){var c=f[0],p=f[1],g=f[2];return p==="far"&&!n&&(p="fas"),typeof c=="string"&&(u.names[c]={prefix:p,iconName:g}),typeof c=="number"&&(u.unicodes[c.toString(16)]={prefix:p,iconName:g}),u},{names:{},unicodes:{}});Lf=o.names,Pf=o.unicodes,eo=mi(G.styleDefault,{family:G.familyDefault})};wg(function(a){eo=mi(a.styleDefault,{family:G.familyDefault})}),Mf();function to(a,i){return(Cf[a]||{})[i]}function Mg(a,i){return(Nf[a]||{})[i]}function mn(a,i){return(Ff[a]||{})[i]}function kf(a){return Lf[a]||{prefix:null,iconName:null}}function kg(a){var i=Pf[a],n=to("fas",a);return i||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function tn(){return eo}var Df=function(){return{prefix:null,iconName:null,rest:[]}};function Dg(a){var i=Me,n=Of.reduce(function(o,u){return o[u]="".concat(G.cssPrefix,"-").concat(u),o},{});return rf.forEach(function(o){(a.includes(n[o])||a.some(function(u){return Lg[o].includes(u)}))&&(i=o)}),i}function mi(a){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=i.family,o=n===void 0?Me:n,u=dg[o][a];if(o===gr&&!a)return"fad";var f=gf[o][a]||gf[o][u],c=a in xt.styles?a:null,p=f||c||null;return p}function Wg(a){var i=[],n=null;return a.forEach(function(o){var u=Fg(G.cssPrefix,o);u?n=u:o&&i.push(o)}),{iconName:n,rest:i}}function Wf(a){return a.sort().filter(function(i,n,o){return o.indexOf(i)===n})}var Bf=uf.concat(af);function yi(a){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=i.skipLookups,o=n===void 0?!1:n,u=null,f=Wf(a.filter(function(x){return Bf.includes(x)})),c=Wf(a.filter(function(x){return!Bf.includes(x)})),p=f.filter(function(x){return u=x,!$u.includes(x)}),g=ci(p,1),y=g[0],_=y===void 0?null:y,w=Dg(f),O=B(B({},Wg(c)),{},{prefix:mi(_,{family:w})});return B(B(B({},O),zg({values:a,family:w,styles:wr,config:G,canonical:O,givenPrefix:u})),Bg(o,u,O))}function Bg(a,i,n){var o=n.prefix,u=n.iconName;if(a||!o||!u)return{prefix:o,iconName:u};var f=i==="fa"?kf(u):{},c=mn(o,u);return u=f.iconName||c||u,o=f.prefix||o,o==="far"&&!wr.far&&wr.fas&&!G.autoFetchSvg&&(o="fas"),{prefix:o,iconName:u}}var Rg=rf.filter(function(a){return a!==Me||a!==gr}),$g=Object.keys(Ra).filter(function(a){return a!==Me}).map(function(a){return Object.keys(Ra[a])}).flat();function zg(a){var i=a.values,n=a.family,o=a.canonical,u=a.givenPrefix,f=u===void 0?"":u,c=a.styles,p=c===void 0?{}:c,g=a.config,y=g===void 0?{}:g,_=n===gr,w=i.includes("fa-duotone")||i.includes("fad"),O=y.familyDefault==="duotone",x=o.prefix==="fad"||o.prefix==="fa-duotone";if(!_&&(w||O||x)&&(o.prefix="fad"),(i.includes("fa-brands")||i.includes("fab"))&&(o.prefix="fab"),!o.prefix&&Rg.includes(n)){var E=Object.keys(p).find(function(T){return $g.includes(T)});if(E||y.autoFetchSvg){var A=iv.get(n).defaultShortPrefixId;o.prefix=A,o.iconName=mn(o.prefix,o.iconName)||o.iconName}}return(o.prefix==="fa"||f==="fa")&&(o.prefix=tn()||"fas"),o}var Ug=(function(){function a(){Tp(this,a),this.definitions={}}return Op(a,[{key:"add",value:function(){for(var n=this,o=arguments.length,u=new Array(o),f=0;f<o;f++)u[f]=arguments[f];var c=u.reduce(this._pullDefinitions,{});Object.keys(c).forEach(function(p){n.definitions[p]=B(B({},n.definitions[p]||{}),c[p]),Qa(p,c[p]);var g=Ga[Me][p];g&&Qa(g,c[p]),Mf()})}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(n,o){var u=o.prefix&&o.iconName&&o.icon?{0:o}:o;return Object.keys(u).map(function(f){var c=u[f],p=c.prefix,g=c.iconName,y=c.icon,_=y[2];n[p]||(n[p]={}),_.length>0&&_.forEach(function(w){typeof w=="string"&&(n[p][w]=y)}),n[p][g]=y}),n}}])})(),Rf=[],Rn={},$n={},Hg=Object.keys($n);function qg(a,i){var n=i.mixoutsTo;return Rf=a,Rn={},Object.keys($n).forEach(function(o){Hg.indexOf(o)===-1&&delete $n[o]}),Rf.forEach(function(o){var u=o.mixout?o.mixout():{};if(Object.keys(u).forEach(function(c){typeof u[c]=="function"&&(n[c]=u[c]),di(u[c])==="object"&&Object.keys(u[c]).forEach(function(p){n[c]||(n[c]={}),n[c][p]=u[c][p]})}),o.hooks){var f=o.hooks();Object.keys(f).forEach(function(c){Rn[c]||(Rn[c]=[]),Rn[c].push(f[c])})}o.provides&&o.provides($n)}),n}function no(a,i){for(var n=arguments.length,o=new Array(n>2?n-2:0),u=2;u<n;u++)o[u-2]=arguments[u];var f=Rn[a]||[];return f.forEach(function(c){i=c.apply(null,[i].concat(o))}),i}function yn(a){for(var i=arguments.length,n=new Array(i>1?i-1:0),o=1;o<i;o++)n[o-1]=arguments[o];var u=Rn[a]||[];u.forEach(function(f){f.apply(null,n)})}function nn(){var a=arguments[0],i=Array.prototype.slice.call(arguments,1);return $n[a]?$n[a].apply(null,i):void 0}function ro(a){a.prefix==="fa"&&(a.prefix="fas");var i=a.iconName,n=a.prefix||tn();if(i)return i=mn(n,i)||i,Af($f.definitions,n,i)||Af(xt.styles,n,i)}var $f=new Ug,jg=function(){G.autoReplaceSvg=!1,G.observeMutations=!1,yn("noAuto")},Gg={i2svg:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Wt?(yn("beforeI2svg",i),nn("pseudoElements2svg",i),nn("i2svg",i)):Promise.reject(new Error("Operation requires a DOM of some kind."))},watch:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=i.autoReplaceSvgRoot;G.autoReplaceSvg===!1&&(G.autoReplaceSvg=!0),G.observeMutations=!0,Cg(function(){Yg({autoReplaceSvgRoot:n}),yn("watch",i)})}},Jg={icon:function(i){if(i===null)return null;if(di(i)==="object"&&i.prefix&&i.iconName)return{prefix:i.prefix,iconName:mn(i.prefix,i.iconName)||i.iconName};if(Array.isArray(i)&&i.length===2){var n=i[1].indexOf("fa-")===0?i[1].slice(3):i[1],o=mi(i[0]);return{prefix:o,iconName:mn(o,n)||n}}if(typeof i=="string"&&(i.indexOf("".concat(G.cssPrefix,"-"))>-1||i.match(hg))){var u=yi(i.split(" "),{skipLookups:!0});return{prefix:u.prefix||tn(),iconName:mn(u.prefix,u.iconName)||u.iconName}}if(typeof i=="string"){var f=tn();return{prefix:f,iconName:mn(f,i)||i}}}},tt={noAuto:jg,config:G,dom:Gg,parse:Jg,library:$f,findIconDefinition:ro,toHtml:_r},Yg=function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=i.autoReplaceSvgRoot,o=n===void 0?be:n;(Object.keys(xt.styles).length>0||G.autoFetchSvg)&&Wt&&G.autoReplaceSvg&&tt.dom.i2svg({node:o})};function bi(a,i){return Object.defineProperty(a,"abstract",{get:i}),Object.defineProperty(a,"html",{get:function(){return a.abstract.map(function(o){return _r(o)})}}),Object.defineProperty(a,"node",{get:function(){if(Wt){var o=be.createElement("div");return o.innerHTML=a.html,o.children}}}),a}function Kg(a){var i=a.children,n=a.main,o=a.mask,u=a.attributes,f=a.styles,c=a.transform;if(Xa(c)&&n.found&&!o.found){var p=n.width,g=n.height,y={x:p/g/2,y:.5};u.style=vi(B(B({},f),{},{"transform-origin":"".concat(y.x+c.x/16,"em ").concat(y.y+c.y/16,"em")}))}return[{tag:"svg",attributes:u,children:i}]}function Xg(a){var i=a.prefix,n=a.iconName,o=a.children,u=a.attributes,f=a.symbol,c=f===!0?"".concat(i,"-").concat(G.cssPrefix,"-").concat(n):f;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:B(B({},u),{},{id:c}),children:o}]}]}function Vg(a){var i=["aria-label","aria-labelledby","title","role"];return i.some(function(n){return n in a})}function io(a){var i=a.icons,n=i.main,o=i.mask,u=a.prefix,f=a.iconName,c=a.transform,p=a.symbol,g=a.maskId,y=a.extra,_=a.watchable,w=_===void 0?!1:_,O=o.found?o:n,x=O.width,E=O.height,A=[G.replacementClass,f?"".concat(G.cssPrefix,"-").concat(f):""].filter(function(R){return y.classes.indexOf(R)===-1}).filter(function(R){return R!==""||!!R}).concat(y.classes).join(" "),T={children:[],attributes:B(B({},y.attributes),{},{"data-prefix":u,"data-icon":f,class:A,role:y.attributes.role||"img",viewBox:"0 0 ".concat(x," ").concat(E)})};!Vg(y.attributes)&&!y.attributes["aria-hidden"]&&(T.attributes["aria-hidden"]="true"),w&&(T.attributes[gn]="");var L=B(B({},T),{},{prefix:u,iconName:f,main:n,mask:o,maskId:g,transform:c,symbol:p,styles:B({},y.styles)}),W=o.found&&n.found?nn("generateAbstractMask",L)||{children:[],attributes:{}}:nn("generateAbstractIcon",L)||{children:[],attributes:{}},U=W.children,Z=W.attributes;return L.children=U,L.attributes=Z,p?Xg(L):Kg(L)}function zf(a){var i=a.content,n=a.width,o=a.height,u=a.transform,f=a.extra,c=a.watchable,p=c===void 0?!1:c,g=B(B({},f.attributes),{},{class:f.classes.join(" ")});p&&(g[gn]="");var y=B({},f.styles);Xa(u)&&(y.transform=Tg({transform:u,width:n,height:o}),y["-webkit-transform"]=y.transform);var _=vi(y);_.length>0&&(g.style=_);var w=[];return w.push({tag:"span",attributes:g,children:[i]}),w}function Zg(a){var i=a.content,n=a.extra,o=B(B({},n.attributes),{},{class:n.classes.join(" ")}),u=vi(n.styles);u.length>0&&(o.style=u);var f=[];return f.push({tag:"span",attributes:o,children:[i]}),f}var ao=xt.styles;function oo(a){var i=a[0],n=a[1],o=a.slice(4),u=ci(o,1),f=u[0],c=null;return Array.isArray(f)?c={tag:"g",attributes:{class:"".concat(G.cssPrefix,"-").concat(Ya.GROUP)},children:[{tag:"path",attributes:{class:"".concat(G.cssPrefix,"-").concat(Ya.SECONDARY),fill:"currentColor",d:f[0]}},{tag:"path",attributes:{class:"".concat(G.cssPrefix,"-").concat(Ya.PRIMARY),fill:"currentColor",d:f[1]}}]}:c={tag:"path",attributes:{fill:"currentColor",d:f}},{found:!0,width:i,height:n,icon:c}}var Qg={found:!1,width:512,height:512};function em(a,i){!pf&&!G.showMissingIcons&&a&&console.error('Icon with name "'.concat(a,'" and prefix "').concat(i,'" is missing.'))}function so(a,i){var n=i;return i==="fa"&&G.styleDefault!==null&&(i=tn()),new Promise(function(o,u){if(n==="fa"){var f=kf(a)||{};a=f.iconName||a,i=f.prefix||i}if(a&&i&&ao[i]&&ao[i][a]){var c=ao[i][a];return o(oo(c))}em(a,i),o(B(B({},Qg),{},{icon:G.showMissingIcons&&a?nn("missingIconAbstract")||{}:{}}))})}var Uf=function(){},uo=G.measurePerformance&&hi&&hi.mark&&hi.measure?hi:{mark:Uf,measure:Uf},Sr='FA "7.1.0"',tm=function(i){return uo.mark("".concat(Sr," ").concat(i," begins")),function(){return Hf(i)}},Hf=function(i){uo.mark("".concat(Sr," ").concat(i," ends")),uo.measure("".concat(Sr," ").concat(i),"".concat(Sr," ").concat(i," begins"),"".concat(Sr," ").concat(i," ends"))},fo={begin:tm,end:Hf},_i=function(){};function qf(a){var i=a.getAttribute?a.getAttribute(gn):null;return typeof i=="string"}function nm(a){var i=a.getAttribute?a.getAttribute(Ua):null,n=a.getAttribute?a.getAttribute(Ha):null;return i&&n}function rm(a){return a&&a.classList&&a.classList.contains&&a.classList.contains(G.replacementClass)}function im(){if(G.autoReplaceSvg===!0)return wi.replace;var a=wi[G.autoReplaceSvg];return a||wi.replace}function am(a){return be.createElementNS("http://www.w3.org/2000/svg",a)}function om(a){return be.createElement(a)}function jf(a){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=i.ceFn,o=n===void 0?a.tag==="svg"?am:om:n;if(typeof a=="string")return be.createTextNode(a);var u=o(a.tag);Object.keys(a.attributes||[]).forEach(function(c){u.setAttribute(c,a.attributes[c])});var f=a.children||[];return f.forEach(function(c){u.appendChild(jf(c,{ceFn:o}))}),u}function sm(a){var i=" ".concat(a.outerHTML," ");return i="".concat(i,"Font Awesome fontawesome.com "),i}var wi={replace:function(i){var n=i[0];if(n.parentNode)if(i[1].forEach(function(u){n.parentNode.insertBefore(jf(u),n)}),n.getAttribute(gn)===null&&G.keepOriginalSource){var o=be.createComment(sm(n));n.parentNode.replaceChild(o,n)}else n.remove()},nest:function(i){var n=i[0],o=i[1];if(~Ka(n).indexOf(G.replacementClass))return wi.replace(i);var u=new RegExp("".concat(G.cssPrefix,"-.*"));if(delete o[0].attributes.id,o[0].attributes.class){var f=o[0].attributes.class.split(" ").reduce(function(p,g){return g===G.replacementClass||g.match(u)?p.toSvg.push(g):p.toNode.push(g),p},{toNode:[],toSvg:[]});o[0].attributes.class=f.toSvg.join(" "),f.toNode.length===0?n.removeAttribute("class"):n.setAttribute("class",f.toNode.join(" "))}var c=o.map(function(p){return _r(p)}).join(`
|
|
574
|
+
`);n.setAttribute(gn,""),n.innerHTML=c}};function Gf(a){a()}function Jf(a,i){var n=typeof i=="function"?i:_i;if(a.length===0)n();else{var o=Gf;G.mutateApproach===lg&&(o=en.requestAnimationFrame||Gf),o(function(){var u=im(),f=fo.begin("mutate");a.map(u),f(),n()})}}var lo=!1;function Yf(){lo=!0}function co(){lo=!1}var Si=null;function Kf(a){if(Wu&&G.observeMutations){var i=a.treeCallback,n=i===void 0?_i:i,o=a.nodeCallback,u=o===void 0?_i:o,f=a.pseudoElementsCallback,c=f===void 0?_i:f,p=a.observeMutationsRoot,g=p===void 0?be:p;Si=new Wu(function(y){if(!lo){var _=tn();Bn(y).forEach(function(w){if(w.type==="childList"&&w.addedNodes.length>0&&!qf(w.addedNodes[0])&&(G.searchPseudoElements&&c(w.target),n(w.target)),w.type==="attributes"&&w.target.parentNode&&G.searchPseudoElements&&c([w.target],!0),w.type==="attributes"&&qf(w.target)&&~gg.indexOf(w.attributeName))if(w.attributeName==="class"&&nm(w.target)){var O=yi(Ka(w.target)),x=O.prefix,E=O.iconName;w.target.setAttribute(Ua,x||_),E&&w.target.setAttribute(Ha,E)}else rm(w.target)&&u(w.target)})}}),Wt&&Si.observe(g,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function um(){Si&&Si.disconnect()}function fm(a){var i=a.getAttribute("style"),n=[];return i&&(n=i.split(";").reduce(function(o,u){var f=u.split(":"),c=f[0],p=f.slice(1);return c&&p.length>0&&(o[c]=p.join(":").trim()),o},{})),n}function lm(a){var i=a.getAttribute("data-prefix"),n=a.getAttribute("data-icon"),o=a.innerText!==void 0?a.innerText.trim():"",u=yi(Ka(a));return u.prefix||(u.prefix=tn()),i&&n&&(u.prefix=i,u.iconName=n),u.iconName&&u.prefix||(u.prefix&&o.length>0&&(u.iconName=Mg(u.prefix,a.innerText)||to(u.prefix,Tf(a.innerText))),!u.iconName&&G.autoFetchSvg&&a.firstChild&&a.firstChild.nodeType===Node.TEXT_NODE&&(u.iconName=a.firstChild.data)),u}function cm(a){var i=Bn(a.attributes).reduce(function(n,o){return n.name!=="class"&&n.name!=="style"&&(n[o.name]=o.value),n},{});return i}function dm(){return{iconName:null,prefix:null,transform:Lt,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function Xf(a){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},n=lm(a),o=n.iconName,u=n.prefix,f=n.rest,c=cm(a),p=no("parseNodeAttributes",{},a),g=i.styleParser?fm(a):[];return B({iconName:o,prefix:u,transform:Lt,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:f,styles:g,attributes:c}},p)}var hm=xt.styles;function Vf(a){var i=G.autoReplaceSvg==="nest"?Xf(a,{styleParser:!1}):Xf(a);return~i.extra.classes.indexOf(mf)?nn("generateLayersText",a,i):nn("generateSvgReplacementMutation",a,i)}function pm(){return[].concat(St(af),St(uf))}function Zf(a){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!Wt)return Promise.resolve();var n=be.documentElement.classList,o=function(w){return n.add("".concat(df,"-").concat(w))},u=function(w){return n.remove("".concat(df,"-").concat(w))},f=G.autoFetchSvg?pm():$u.concat(Object.keys(hm));f.includes("fa")||f.push("fa");var c=[".".concat(mf,":not([").concat(gn,"])")].concat(f.map(function(_){return".".concat(_,":not([").concat(gn,"])")})).join(", ");if(c.length===0)return Promise.resolve();var p=[];try{p=Bn(a.querySelectorAll(c))}catch{}if(p.length>0)o("pending"),u("complete");else return Promise.resolve();var g=fo.begin("onTree"),y=p.reduce(function(_,w){try{var O=Vf(w);O&&_.push(O)}catch(x){pf||x.name==="MissingIcon"&&console.error(x)}return _},[]);return new Promise(function(_,w){Promise.all(y).then(function(O){Jf(O,function(){o("active"),o("complete"),u("pending"),typeof i=="function"&&i(),g(),_()})}).catch(function(O){g(),w(O)})})}function vm(a){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;Vf(a).then(function(n){n&&Jf([n],i)})}function gm(a){return function(i){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=(i||{}).icon?i:ro(i||{}),u=n.mask;return u&&(u=(u||{}).icon?u:ro(u||{})),a(o,B(B({},n),{},{mask:u}))}}var mm=function(i){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=n.transform,u=o===void 0?Lt:o,f=n.symbol,c=f===void 0?!1:f,p=n.mask,g=p===void 0?null:p,y=n.maskId,_=y===void 0?null:y,w=n.classes,O=w===void 0?[]:w,x=n.attributes,E=x===void 0?{}:x,A=n.styles,T=A===void 0?{}:A;if(i){var L=i.prefix,W=i.iconName,U=i.icon;return bi(B({type:"icon"},i),function(){return yn("beforeDOMElementCreation",{iconDefinition:i,params:n}),io({icons:{main:oo(U),mask:g?oo(g.icon):{found:!1,width:null,height:null,icon:{}}},prefix:L,iconName:W,transform:B(B({},Lt),u),symbol:c,maskId:_,extra:{attributes:E,styles:T,classes:O}})})}},ym={mixout:function(){return{icon:gm(mm)}},hooks:function(){return{mutationObserverCallbacks:function(n){return n.treeCallback=Zf,n.nodeCallback=vm,n}}},provides:function(i){i.i2svg=function(n){var o=n.node,u=o===void 0?be:o,f=n.callback,c=f===void 0?function(){}:f;return Zf(u,c)},i.generateSvgReplacementMutation=function(n,o){var u=o.iconName,f=o.prefix,c=o.transform,p=o.symbol,g=o.mask,y=o.maskId,_=o.extra;return new Promise(function(w,O){Promise.all([so(u,f),g.iconName?so(g.iconName,g.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(x){var E=ci(x,2),A=E[0],T=E[1];w([n,io({icons:{main:A,mask:T},prefix:f,iconName:u,transform:c,symbol:p,maskId:y,extra:_,watchable:!0})])}).catch(O)})},i.generateAbstractIcon=function(n){var o=n.children,u=n.attributes,f=n.main,c=n.transform,p=n.styles,g=vi(p);g.length>0&&(u.style=g);var y;return Xa(c)&&(y=nn("generateAbstractTransformGrouping",{main:f,transform:c,containerWidth:f.width,iconWidth:f.width})),o.push(y||f.icon),{children:o,attributes:u}}}},bm={mixout:function(){return{layer:function(n){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u=o.classes,f=u===void 0?[]:u;return bi({type:"layer"},function(){yn("beforeDOMElementCreation",{assembler:n,params:o});var c=[];return n(function(p){Array.isArray(p)?p.map(function(g){c=c.concat(g.abstract)}):c=c.concat(p.abstract)}),[{tag:"span",attributes:{class:["".concat(G.cssPrefix,"-layers")].concat(St(f)).join(" ")},children:c}]})}}}},_m={mixout:function(){return{counter:function(n){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};o.title;var u=o.classes,f=u===void 0?[]:u,c=o.attributes,p=c===void 0?{}:c,g=o.styles,y=g===void 0?{}:g;return bi({type:"counter",content:n},function(){return yn("beforeDOMElementCreation",{content:n,params:o}),Zg({content:n.toString(),extra:{attributes:p,styles:y,classes:["".concat(G.cssPrefix,"-layers-counter")].concat(St(f))}})})}}}},wm={mixout:function(){return{text:function(n){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u=o.transform,f=u===void 0?Lt:u,c=o.classes,p=c===void 0?[]:c,g=o.attributes,y=g===void 0?{}:g,_=o.styles,w=_===void 0?{}:_;return bi({type:"text",content:n},function(){return yn("beforeDOMElementCreation",{content:n,params:o}),zf({content:n,transform:B(B({},Lt),f),extra:{attributes:y,styles:w,classes:["".concat(G.cssPrefix,"-layers-text")].concat(St(p))}})})}}},provides:function(i){i.generateLayersText=function(n,o){var u=o.transform,f=o.extra,c=null,p=null;if(Bu){var g=parseInt(getComputedStyle(n).fontSize,10),y=n.getBoundingClientRect();c=y.width/g,p=y.height/g}return Promise.resolve([n,zf({content:n.innerHTML,width:c,height:p,transform:u,extra:f,watchable:!0})])}}},Qf=new RegExp('"',"ug"),el=[1105920,1112319],tl=B(B(B(B({},{FontAwesome:{normal:"fas",400:"fas"}}),rv),ug),dv),ho=Object.keys(tl).reduce(function(a,i){return a[i.toLowerCase()]=tl[i],a},{}),Sm=Object.keys(ho).reduce(function(a,i){var n=ho[i];return a[i]=n[900]||St(Object.entries(n))[0][1],a},{});function xm(a){var i=a.replace(Qf,"");return Tf(St(i)[0]||"")}function Em(a){var i=a.getPropertyValue("font-feature-settings").includes("ss01"),n=a.getPropertyValue("content"),o=n.replace(Qf,""),u=o.codePointAt(0),f=u>=el[0]&&u<=el[1],c=o.length===2?o[0]===o[1]:!1;return f||c||i}function Am(a,i){var n=a.replace(/^['"]|['"]$/g,"").toLowerCase(),o=parseInt(i),u=isNaN(o)?"normal":o;return(ho[n]||{})[u]||Sm[n]}function nl(a,i){var n="".concat(fg).concat(i.replace(":","-"));return new Promise(function(o,u){if(a.getAttribute(n)!==null)return o();var f=Bn(a.children),c=f.filter(function(de){return de.getAttribute(za)===i})[0],p=en.getComputedStyle(a,i),g=p.getPropertyValue("font-family"),y=g.match(pg),_=p.getPropertyValue("font-weight"),w=p.getPropertyValue("content");if(c&&!y)return a.removeChild(c),o();if(y&&w!=="none"&&w!==""){var O=p.getPropertyValue("content"),x=Am(g,_),E=xm(O),A=y[0].startsWith("FontAwesome"),T=Em(p),L=to(x,E),W=L;if(A){var U=kg(E);U.iconName&&U.prefix&&(L=U.iconName,x=U.prefix)}if(L&&!T&&(!c||c.getAttribute(Ua)!==x||c.getAttribute(Ha)!==W)){a.setAttribute(n,W),c&&a.removeChild(c);var Z=dm(),R=Z.extra;R.attributes[za]=i,so(L,x).then(function(de){var C=io(B(B({},Z),{},{icons:{main:de,mask:Df()},prefix:x,iconName:W,extra:R,watchable:!0})),P=be.createElementNS("http://www.w3.org/2000/svg","svg");i==="::before"?a.insertBefore(P,a.firstChild):a.appendChild(P),P.outerHTML=C.map(function(q){return _r(q)}).join(`
|
|
575
|
+
`),a.removeAttribute(n),o()}).catch(u)}else o()}else o()})}function Tm(a){return Promise.all([nl(a,"::before"),nl(a,"::after")])}function Im(a){return a.parentNode!==document.head&&!~cg.indexOf(a.tagName.toUpperCase())&&!a.getAttribute(za)&&(!a.parentNode||a.parentNode.tagName!=="svg")}var Om=function(i){return!!i&&hf.some(function(n){return i.includes(n)})},Cm=function(i){if(!i)return[];var n=new Set,o=i.split(/,(?![^()]*\))/).map(function(g){return g.trim()});o=o.flatMap(function(g){return g.includes("(")?g:g.split(",").map(function(y){return y.trim()})});var u=li(o),f;try{for(u.s();!(f=u.n()).done;){var c=f.value;if(Om(c)){var p=hf.reduce(function(g,y){return g.replace(y,"")},c);p!==""&&p!=="*"&&n.add(p)}}}catch(g){u.e(g)}finally{u.f()}return n};function rl(a){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(Wt){var n;if(i)n=a;else if(G.searchPseudoElementsFullScan)n=a.querySelectorAll("*");else{var o=new Set,u=li(document.styleSheets),f;try{for(u.s();!(f=u.n()).done;){var c=f.value;try{var p=li(c.cssRules),g;try{for(p.s();!(g=p.n()).done;){var y=g.value,_=Cm(y.selectorText),w=li(_),O;try{for(w.s();!(O=w.n()).done;){var x=O.value;o.add(x)}}catch(A){w.e(A)}finally{w.f()}}}catch(A){p.e(A)}finally{p.f()}}catch(A){G.searchPseudoElementsWarnings&&console.warn("Font Awesome: cannot parse stylesheet: ".concat(c.href," (").concat(A.message,`)
|
|
576
|
+
If it declares any Font Awesome CSS pseudo-elements, they will not be rendered as SVG icons. Add crossorigin="anonymous" to the <link>, enable searchPseudoElementsFullScan for slower but more thorough DOM parsing, or suppress this warning by setting searchPseudoElementsWarnings to false.`))}}}catch(A){u.e(A)}finally{u.f()}if(!o.size)return;var E=Array.from(o).join(", ");try{n=a.querySelectorAll(E)}catch{}}return new Promise(function(A,T){var L=Bn(n).filter(Im).map(Tm),W=fo.begin("searchPseudoElements");Yf(),Promise.all(L).then(function(){W(),co(),A()}).catch(function(){W(),co(),T()})})}}var Nm={hooks:function(){return{mutationObserverCallbacks:function(n){return n.pseudoElementsCallback=rl,n}}},provides:function(i){i.pseudoElements2svg=function(n){var o=n.node,u=o===void 0?be:o;G.searchPseudoElements&&rl(u)}}},il=!1,Lm={mixout:function(){return{dom:{unwatch:function(){Yf(),il=!0}}}},hooks:function(){return{bootstrap:function(){Kf(no("mutationObserverCallbacks",{}))},noAuto:function(){um()},watch:function(n){var o=n.observeMutationsRoot;il?co():Kf(no("mutationObserverCallbacks",{observeMutationsRoot:o}))}}}},al=function(i){var n={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return i.toLowerCase().split(" ").reduce(function(o,u){var f=u.toLowerCase().split("-"),c=f[0],p=f.slice(1).join("-");if(c&&p==="h")return o.flipX=!0,o;if(c&&p==="v")return o.flipY=!0,o;if(p=parseFloat(p),isNaN(p))return o;switch(c){case"grow":o.size=o.size+p;break;case"shrink":o.size=o.size-p;break;case"left":o.x=o.x-p;break;case"right":o.x=o.x+p;break;case"up":o.y=o.y-p;break;case"down":o.y=o.y+p;break;case"rotate":o.rotate=o.rotate+p;break}return o},n)},Pm={mixout:function(){return{parse:{transform:function(n){return al(n)}}}},hooks:function(){return{parseNodeAttributes:function(n,o){var u=o.getAttribute("data-fa-transform");return u&&(n.transform=al(u)),n}}},provides:function(i){i.generateAbstractTransformGrouping=function(n){var o=n.main,u=n.transform,f=n.containerWidth,c=n.iconWidth,p={transform:"translate(".concat(f/2," 256)")},g="translate(".concat(u.x*32,", ").concat(u.y*32,") "),y="scale(".concat(u.size/16*(u.flipX?-1:1),", ").concat(u.size/16*(u.flipY?-1:1),") "),_="rotate(".concat(u.rotate," 0 0)"),w={transform:"".concat(g," ").concat(y," ").concat(_)},O={transform:"translate(".concat(c/2*-1," -256)")},x={outer:p,inner:w,path:O};return{tag:"g",attributes:B({},x.outer),children:[{tag:"g",attributes:B({},x.inner),children:[{tag:o.icon.tag,children:o.icon.children,attributes:B(B({},o.icon.attributes),x.path)}]}]}}}},po={x:0,y:0,width:"100%",height:"100%"};function ol(a){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return a.attributes&&(a.attributes.fill||i)&&(a.attributes.fill="black"),a}function Fm(a){return a.tag==="g"?a.children:[a]}var Mm={hooks:function(){return{parseNodeAttributes:function(n,o){var u=o.getAttribute("data-fa-mask"),f=u?yi(u.split(" ").map(function(c){return c.trim()})):Df();return f.prefix||(f.prefix=tn()),n.mask=f,n.maskId=o.getAttribute("data-fa-mask-id"),n}}},provides:function(i){i.generateAbstractMask=function(n){var o=n.children,u=n.attributes,f=n.main,c=n.mask,p=n.maskId,g=n.transform,y=f.width,_=f.icon,w=c.width,O=c.icon,x=Ag({transform:g,containerWidth:w,iconWidth:y}),E={tag:"rect",attributes:B(B({},po),{},{fill:"white"})},A=_.children?{children:_.children.map(ol)}:{},T={tag:"g",attributes:B({},x.inner),children:[ol(B({tag:_.tag,attributes:B(B({},_.attributes),x.path)},A))]},L={tag:"g",attributes:B({},x.outer),children:[T]},W="mask-".concat(p||bf()),U="clip-".concat(p||bf()),Z={tag:"mask",attributes:B(B({},po),{},{id:W,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[E,L]},R={tag:"defs",children:[{tag:"clipPath",attributes:{id:U},children:Fm(O)},Z]};return o.push(R,{tag:"rect",attributes:B({fill:"currentColor","clip-path":"url(#".concat(U,")"),mask:"url(#".concat(W,")")},po)}),{children:o,attributes:u}}}},km={provides:function(i){var n=!1;en.matchMedia&&(n=en.matchMedia("(prefers-reduced-motion: reduce)").matches),i.missingIconAbstract=function(){var o=[],u={fill:"currentColor"},f={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};o.push({tag:"path",attributes:B(B({},u),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var c=B(B({},f),{},{attributeName:"opacity"}),p={tag:"circle",attributes:B(B({},u),{},{cx:"256",cy:"364",r:"28"}),children:[]};return n||p.children.push({tag:"animate",attributes:B(B({},f),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:B(B({},c),{},{values:"1;0;1;1;0;1;"})}),o.push(p),o.push({tag:"path",attributes:B(B({},u),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:n?[]:[{tag:"animate",attributes:B(B({},c),{},{values:"1;0;0;0;0;1;"})}]}),n||o.push({tag:"path",attributes:B(B({},u),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:B(B({},c),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:o}}}},Dm={hooks:function(){return{parseNodeAttributes:function(n,o){var u=o.getAttribute("data-fa-symbol"),f=u===null?!1:u===""?!0:u;return n.symbol=f,n}}}},Wm=[Og,ym,bm,_m,wm,Nm,Lm,Pm,Mm,km,Dm];qg(Wm,{mixoutsTo:tt}),tt.noAuto;var xr=tt.config;tt.library,tt.dom;var sl=tt.parse;tt.findIconDefinition,tt.toHtml;var Bm=tt.icon;tt.layer,tt.text,tt.counter;function Rm(a){return a=a-0,a===a}function ul(a){return Rm(a)?a:(a=a.replace(/[_-]+(.)?/g,(i,n)=>n?n.toUpperCase():""),a.charAt(0).toLowerCase()+a.slice(1))}function $m(a){return a.charAt(0).toUpperCase()+a.slice(1)}var zn=new Map,zm=1e3;function Um(a){if(zn.has(a))return zn.get(a);const i={};let n=0;const o=a.length;for(;n<o;){const u=a.indexOf(";",n),f=u===-1?o:u,c=a.slice(n,f).trim();if(c){const p=c.indexOf(":");if(p>0){const g=c.slice(0,p).trim(),y=c.slice(p+1).trim();if(g&&y){const _=ul(g);i[_.startsWith("webkit")?$m(_):_]=y}}}n=f+1}if(zn.size===zm){const u=zn.keys().next().value;u&&zn.delete(u)}return zn.set(a,i),i}function fl(a,i,n={}){if(typeof i=="string")return i;const o=(i.children||[]).map(_=>fl(a,_)),u=i.attributes||{},f={};for(const[_,w]of Object.entries(u))switch(!0){case _==="class":{f.className=w;break}case _==="style":{f.style=Um(String(w));break}case _.startsWith("aria-"):case _.startsWith("data-"):{f[_.toLowerCase()]=w;break}default:f[ul(_)]=w}const{style:c,role:p,"aria-label":g,...y}=n;return c&&(f.style=f.style?{...f.style,...c}:c),p&&(f.role=p),g&&(f["aria-label"]=g,f["aria-hidden"]="false"),a(i.tag,{...y,...f},...o)}var Hm=fl.bind(null,k.createElement),ll=(a,i)=>{const n=k.useId();return a||(i?n:void 0)},qm=class{constructor(a="react-fontawesome"){this.enabled=!1;let i=!1;try{i=typeof process<"u"&&process.env.NODE_ENV==="development"}catch{}this.scope=a,this.enabled=i}log(...a){this.enabled&&console.log(`[${this.scope}]`,...a)}warn(...a){this.enabled&&console.warn(`[${this.scope}]`,...a)}error(...a){this.enabled&&console.error(`[${this.scope}]`,...a)}};typeof process<"u"&&process.env.FA_VERSION;var jm="searchPseudoElementsFullScan"in xr?"7.0.0":"6.0.0",Gm=Number.parseInt(jm)>=7,Er="fa",$t={beat:"fa-beat",fade:"fa-fade",beatFade:"fa-beat-fade",bounce:"fa-bounce",shake:"fa-shake",spin:"fa-spin",spinPulse:"fa-spin-pulse",spinReverse:"fa-spin-reverse",pulse:"fa-pulse"},Jm={left:"fa-pull-left",right:"fa-pull-right"},Ym={90:"fa-rotate-90",180:"fa-rotate-180",270:"fa-rotate-270"},Km={"2xs":"fa-2xs",xs:"fa-xs",sm:"fa-sm",lg:"fa-lg",xl:"fa-xl","2xl":"fa-2xl","1x":"fa-1x","2x":"fa-2x","3x":"fa-3x","4x":"fa-4x","5x":"fa-5x","6x":"fa-6x","7x":"fa-7x","8x":"fa-8x","9x":"fa-9x","10x":"fa-10x"},zt={border:"fa-border",fixedWidth:"fa-fw",flip:"fa-flip",flipHorizontal:"fa-flip-horizontal",flipVertical:"fa-flip-vertical",inverse:"fa-inverse",rotateBy:"fa-rotate-by",swapOpacity:"fa-swap-opacity",widthAuto:"fa-width-auto"};function Xm(a){const i=xr.cssPrefix||xr.familyPrefix||Er;return i===Er?a:a.replace(new RegExp(String.raw`(?<=^|\s)${Er}-`,"g"),`${i}-`)}function Vm(a){const{beat:i,fade:n,beatFade:o,bounce:u,shake:f,spin:c,spinPulse:p,spinReverse:g,pulse:y,fixedWidth:_,inverse:w,border:O,flip:x,size:E,rotation:A,pull:T,swapOpacity:L,rotateBy:W,widthAuto:U,className:Z}=a,R=[];return Z&&R.push(...Z.split(" ")),i&&R.push($t.beat),n&&R.push($t.fade),o&&R.push($t.beatFade),u&&R.push($t.bounce),f&&R.push($t.shake),c&&R.push($t.spin),g&&R.push($t.spinReverse),p&&R.push($t.spinPulse),y&&R.push($t.pulse),_&&R.push(zt.fixedWidth),w&&R.push(zt.inverse),O&&R.push(zt.border),x===!0&&R.push(zt.flip),(x==="horizontal"||x==="both")&&R.push(zt.flipHorizontal),(x==="vertical"||x==="both")&&R.push(zt.flipVertical),E!=null&&R.push(Km[E]),A!=null&&A!==0&&R.push(Ym[A]),T!=null&&R.push(Jm[T]),L&&R.push(zt.swapOpacity),Gm?(W&&R.push(zt.rotateBy),U&&R.push(zt.widthAuto),(xr.cssPrefix||xr.familyPrefix||Er)===Er?R:R.map(Xm)):R}var Zm=a=>typeof a=="object"&&"icon"in a&&!!a.icon;function cl(a){if(a)return Zm(a)?a:sl.icon(a)}function Qm(a){return Object.keys(a)}var dl=new qm("FontAwesomeIcon"),hl={border:!1,className:"",mask:void 0,maskId:void 0,fixedWidth:!1,inverse:!1,flip:!1,icon:void 0,listItem:!1,pull:void 0,pulse:!1,rotation:void 0,rotateBy:!1,size:void 0,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:void 0,transform:void 0,swapOpacity:!1,widthAuto:!1},e0=new Set(Object.keys(hl)),Un=k.forwardRef((a,i)=>{const n={...hl,...a},{icon:o,mask:u,symbol:f,title:c,titleId:p,maskId:g,transform:y}=n,_=ll(g,!!u),w=ll(p,!!c),O=cl(o);if(!O)return dl.error("Icon lookup is undefined",o),null;const x=Vm(n),E=typeof y=="string"?sl.transform(y):y,A=cl(u),T=Bm(O,{...x.length>0&&{classes:x},...E&&{transform:E},...A&&{mask:A},symbol:f,title:c,titleId:w,maskId:_});if(!T)return dl.error("Could not find icon",O),null;const{abstract:L}=T,W={ref:i};for(const U of Qm(n))e0.has(U)||(W[U]=n[U]);return Hm(L[0],W)});Un.displayName="FontAwesomeIcon";var t0={prefix:"fas",iconName:"expand",icon:[448,512,[],"f065","M32 32C14.3 32 0 46.3 0 64l0 96c0 17.7 14.3 32 32 32s32-14.3 32-32l0-64 64 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L32 32zM64 352c0-17.7-14.3-32-32-32S0 334.3 0 352l0 96c0 17.7 14.3 32 32 32l96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-64 0 0-64zM320 32c-17.7 0-32 14.3-32 32s14.3 32 32 32l64 0 0 64c0 17.7 14.3 32 32 32s32-14.3 32-32l0-96c0-17.7-14.3-32-32-32l-96 0zM448 352c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 64-64 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l96 0c17.7 0 32-14.3 32-32l0-96z"]},n0={prefix:"fas",iconName:"ellipsis-vertical",icon:[128,512,["ellipsis-v"],"f142","M64 144a56 56 0 1 1 0-112 56 56 0 1 1 0 112zm0 224c30.9 0 56 25.1 56 56s-25.1 56-56 56-56-25.1-56-56 25.1-56 56-56zm56-112c0 30.9-25.1 56-56 56s-56-25.1-56-56 25.1-56 56-56 56 25.1 56 56z"]},pl={prefix:"fas",iconName:"circle-xmark",icon:[512,512,[61532,"times-circle","xmark-circle"],"f057","M256 512a256 256 0 1 0 0-512 256 256 0 1 0 0 512zM167 167c9.4-9.4 24.6-9.4 33.9 0l55 55 55-55c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-55 55 55 55c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-55-55-55 55c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l55-55-55-55c-9.4-9.4-9.4-24.6 0-33.9z"]},r0={prefix:"fas",iconName:"angle-down",icon:[384,512,[8964],"f107","M169.4 374.6c12.5 12.5 32.8 12.5 45.3 0l160-160c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 306.7 54.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l160 160z"]};function i0({layoutId:a,justId:i,winInfo:n}){console.log("TabTitle justId",i);const[o,u]=Ia(),[f]=k.useState({x:0,y:0}),c=Nt(a),p=c.getTabTitleTooltip(i),g=_=>{c.removeWin({justId:_})},y=(_,w)=>{c.activeWin({justId:w})};return $.jsxs($.Fragment,{children:[$.jsx("div",{className:"just-icon",onClick:_=>y(_,i),title:p,children:n.getTabIcon(i,a)}),$.jsx("div",{className:"just-title",onClick:_=>y(_,i),title:p,children:c.getTabTitle(i)??i.title}),$.jsx("div",{className:"just-icon just-close",onClick:()=>g(i),children:$.jsx(Un,{icon:pl})}),$.jsx(gu,{state:o.state,endTransition:o.endTransition,anchorPoint:f,onClose:()=>u(!1),children:$.jsxs(ui,{onClick:()=>g(i),children:[$.jsx("div",{className:"just-icon"}),$.jsx("div",{className:"just-title",children:"Close"}),$.jsx("div",{className:"just-icon"})]})})]})}const vl=Dt(i0);function a0(a){const{layoutId:i,isFullScreenView:n,dndAccept:o,winInfo:u,justBranch:f,justId:c,justStack:p,rect:g}=a,y=k.useRef(null),[,_]=Ia(),[,w]=k.useState({x:0,y:0}),O=Nt(i),[{isDragging:x},E]=Zr.useDrag({type:c.viewId,item:{justBranch:f,justId:c,index:-1},collect:L=>({isDragging:L.isDragging()})}),[,A]=Zr.useDrop({accept:o,collect(L){return{handlerId:L.getHandlerId()}},hover(L,W){if(!y.current||c===L.justId)return;const U=y.current.getBoundingClientRect(),Z=W.getClientOffset(),R=(U.right-U.left)/2,de=Z.x-U.left,C=L.justId,P=c,q=p.tabs.filter(J=>!he.isEquals(J,C));let ee=he.indexOf(q,P);de>R&&(ee+=1),L.pos="stack",L.index=ee}});k.useEffect(()=>{if(he.isEquals(c,O.lastActiveId??null)){if(y.current==null||g==null)return;const L=y.current.getBoundingClientRect();(g.left>L.left||g.right<L.right)&&y.current.scrollIntoView({behavior:"auto",block:"center",inline:"center"})}},[O.lastActiveTm]),k.useLayoutEffect(()=>{y.current&&E(A(y))},[A,E]);const T=k.useCallback(L=>{L.preventDefault(),w({x:L.clientX,y:L.clientY}),_(!0)},[_]);return $.jsx("div",{className:_t("just-draggable-title","just-title-menus",{dragging:x,"just-active":he.isEquals(p.active,c),"last-active":he.isEquals(O.lastActiveId,c)}),ref:y,onContextMenu:T,children:u.getTabTitle?u.getTabTitle({justId:c,layoutId:i,justBranch:f,isFullScreenView:n,winInfo:u}):$.jsx(vl,{justId:c,layoutId:i,justBranch:f,isFullScreenView:n,winInfo:u})})}const gl=Dt(a0);function o0({layoutId:a,justBranch:i,isFullScreenView:n}){const o=Nt(a),u=()=>{console.log("closeAllTabs justBranch",i),o.removeAllTabs({branch:i})},f=async(c=!1)=>{n?o.setLayout(null):(o.setFullScreenLayoutByBranch(i),o.setFullScreenHideTitle(c))};return $.jsxs($.Fragment,{children:[$.jsxs(ui,{className:"just-menu-item",onClick:()=>u(),children:[$.jsx("div",{className:"just-icon"}),$.jsx("div",{className:"just-title",children:"Close All"}),$.jsx("div",{className:"just-icon"})]}),$.jsxs(ui,{className:"just-menu-item",onClick:()=>f(!0),children:[$.jsx("div",{className:"just-icon",children:$.jsx(Un,{icon:t0})}),$.jsx("div",{className:"just-title",children:n?"F11":"Full"}),$.jsx("div",{className:"just-icon"})]})]})}const ml=Dt(o0);function s0({layoutId:a,isFullScreenView:i,dndAccept:n,justBranch:o,justStack:u,getWinInfo:f,getTabMenu:c}){const p=k.useRef(null),[g,y]=k.useState(null),_=Nt(a),w=T=>{_.removeWin({justId:T})},O=T=>{_.activeWin({justId:T})},x=(T,L)=>{_.moveWin({pos:"stack",justId:L.justId,branch:o,index:L.index??-1})},[{isOver:E},A]=Zr.useDrop(()=>({accept:n,collect:T=>({isOver:T.isOver()}),drop(T,L){x(L.getItemType(),L.getItem())},hover(T,L){p.current&&(T.index=-1)}}),[u]);return k.useLayoutEffect(()=>{p.current&&A(p)},[A]),k.useEffect(()=>{if(p.current===null)return;function T(){if(p.current===null)return;const W=p.current.getBoundingClientRect()??null;y(W)}T();const L=new ResizeObserver(T);return L.observe(p.current),window.addEventListener("scroll",T,!0),()=>{L.disconnect(),window.removeEventListener("scroll",T,!0)}},[]),$.jsxs("div",{className:_t("just-win-title"),tabIndex:1,children:[$.jsx("div",{className:_t("just-title-list",{"is-over":E}),ref:p,children:u.tabs.map(T=>$.jsx(gl,{layoutId:a,isFullScreenView:i,dndAccept:n,rect:g,justId:T,justBranch:o,justStack:u,winInfo:f(T)},[...o,he.toString(T)].join(",")))}),$.jsxs("div",{className:"just-title-menus",children:[$.jsx(_u,{menuButton:$.jsx("div",{className:"just-title-menu",children:$.jsx(Un,{icon:r0})}),children:u.tabs.map(T=>$.jsxs(ui,{className:_t("just-menu-item",{active:he.isEquals(u.active,T)}),children:[$.jsx("div",{className:"just-icon",onClick:()=>O(T),children:f(T).getTabIcon(T,a)}),$.jsx("div",{className:"just-title",onClick:()=>O(T),children:_.getTabTitle(T)??T.title}),$.jsx("div",{className:"just-icon just-close",onClick:L=>{L.stopPropagation(),w(T)},children:$.jsx(Un,{icon:pl})})]},he.toString(T)))}),$.jsx(_u,{menuButton:$.jsx("div",{className:"just-title-menu",children:$.jsx(Un,{icon:n0})}),children:c?c(a,o,u,i):$.jsx(ml,{layoutId:a,justBranch:o,justStack:u,isFullScreenView:i})})]})]})}const yl=Dt(s0);function u0(a){const i=k.useRef(null),{layoutId:n,dndAccept:o,getWinInfo:u,justBranch:f,justStack:c}=a,[p,g]=k.useState(null),y=Nt(n),_=(x,E)=>{E.pos&&(E.pos==="stack"?y.moveWin({pos:E.pos,justId:E.justId,branch:f,index:E.index??-1}):y.moveWin({pos:E.pos,justId:E.justId,branch:f,direction:E.direction??"row"}))},[{isOver:w},O]=Zr.useDrop(()=>({accept:o,collect:x=>({isOver:x.isOver()}),drop(x,E){i.current&&_(E.getItemType(),E.getItem())},hover(x,E){if(!i.current)return;const A=i.current.getBoundingClientRect(),T=E.getClientOffset(),L=(A.right-A.left)/2,W=(A.bottom-A.top)/2,U=T.x-A.left,Z=T.y-A.top,R=U-L,de=Z-W,C=Math.abs(R*100/L),P=Math.abs(de*100/W);if(C<60&&P<60){x.pos="stack";const q={top:A.top,left:A.left,width:A.width,height:A.height};g(q)}else{const q=C>P?"row":"column",J=Math.sign(q==="row"?R:de)>0?"second":"first";x.direction=q,x.pos=J;const ie={top:J==="second"&&q==="column"?A.top+A.height/2:A.top,left:J==="second"&&q==="row"?A.left+A.width/2:A.left,width:q==="row"?A.width/2:A.width,height:q==="column"?A.height/2:A.height};g(ie)}}}),[c]);return k.useLayoutEffect(()=>{i.current&&O(i)},[O]),$.jsxs("div",{className:_t("just-win-body",{isOver:w,"last-active":he.isEquals(c.active,y.lastActiveId)}),ref:i,children:[c.tabs.map(x=>$.jsx(k.Activity,{mode:he.isEquals(c.active,x)?"visible":"hidden",children:u(x).getView(x,n)},he.toString(x))),w&&p!=null&&$.jsx("div",{className:"just-overlay",style:{top:p.top,left:p.left,width:`${p.width}px`,height:`${p.height}px`}})]})}const bl=Dt(u0);function f0({layoutId:a,isFullScreenView:i,hideTitle:n,dndAccept:o,justBranch:u,justStack:f,getWinInfo:c,getTabMenu:p}){const g=Nt(a),y=g.fullScreenHideTitle,_=n!==!0,w=()=>{f.active&&g.activeWin({justId:f.active})};return $.jsxs("div",{className:"just-win",onFocusCapture:w,tabIndex:1,children:[_&&!y&&$.jsx(yl,{layoutId:a,isFullScreenView:i,dndAccept:o,justBranch:u,justStack:f,getWinInfo:c,getTabMenu:p}),$.jsx(bl,{layoutId:a,dndAccept:o,justBranch:u,justStack:f,getWinInfo:c})]})}const _l=Dt(f0);var vo,wl;function go(){if(wl)return vo;wl=1;function a(i){var n=typeof i;return i!=null&&(n=="object"||n=="function")}return vo=a,vo}var mo,Sl;function l0(){if(Sl)return mo;Sl=1;var a=typeof Qt=="object"&&Qt&&Qt.Object===Object&&Qt;return mo=a,mo}var yo,xl;function El(){if(xl)return yo;xl=1;var a=l0(),i=typeof self=="object"&&self&&self.Object===Object&&self,n=a||i||Function("return this")();return yo=n,yo}var bo,Al;function c0(){if(Al)return bo;Al=1;var a=El(),i=function(){return a.Date.now()};return bo=i,bo}var _o,Tl;function d0(){if(Tl)return _o;Tl=1;var a=/\s/;function i(n){for(var o=n.length;o--&&a.test(n.charAt(o)););return o}return _o=i,_o}var wo,Il;function h0(){if(Il)return wo;Il=1;var a=d0(),i=/^\s+/;function n(o){return o&&o.slice(0,a(o)+1).replace(i,"")}return wo=n,wo}var So,Ol;function Cl(){if(Ol)return So;Ol=1;var a=El(),i=a.Symbol;return So=i,So}var xo,Nl;function p0(){if(Nl)return xo;Nl=1;var a=Cl(),i=Object.prototype,n=i.hasOwnProperty,o=i.toString,u=a?a.toStringTag:void 0;function f(c){var p=n.call(c,u),g=c[u];try{c[u]=void 0;var y=!0}catch{}var _=o.call(c);return y&&(p?c[u]=g:delete c[u]),_}return xo=f,xo}var Eo,Ll;function v0(){if(Ll)return Eo;Ll=1;var a=Object.prototype,i=a.toString;function n(o){return i.call(o)}return Eo=n,Eo}var Ao,Pl;function g0(){if(Pl)return Ao;Pl=1;var a=Cl(),i=p0(),n=v0(),o="[object Null]",u="[object Undefined]",f=a?a.toStringTag:void 0;function c(p){return p==null?p===void 0?u:o:f&&f in Object(p)?i(p):n(p)}return Ao=c,Ao}var To,Fl;function m0(){if(Fl)return To;Fl=1;function a(i){return i!=null&&typeof i=="object"}return To=a,To}var Io,Ml;function y0(){if(Ml)return Io;Ml=1;var a=g0(),i=m0(),n="[object Symbol]";function o(u){return typeof u=="symbol"||i(u)&&a(u)==n}return Io=o,Io}var Oo,kl;function Dl(){if(kl)return Oo;kl=1;var a=h0(),i=go(),n=y0(),o=NaN,u=/^[-+]0x[0-9a-f]+$/i,f=/^0b[01]+$/i,c=/^0o[0-7]+$/i,p=parseInt;function g(y){if(typeof y=="number")return y;if(n(y))return o;if(i(y)){var _=typeof y.valueOf=="function"?y.valueOf():y;y=i(_)?_+"":_}if(typeof y!="string")return y===0?y:+y;y=a(y);var w=f.test(y);return w||c.test(y)?p(y.slice(2),w?2:8):u.test(y)?o:+y}return Oo=g,Oo}var Co,Wl;function b0(){if(Wl)return Co;Wl=1;var a=go(),i=c0(),n=Dl(),o="Expected a function",u=Math.max,f=Math.min;function c(p,g,y){var _,w,O,x,E,A,T=0,L=!1,W=!1,U=!0;if(typeof p!="function")throw new TypeError(o);g=n(g)||0,a(y)&&(L=!!y.leading,W="maxWait"in y,O=W?u(n(y.maxWait)||0,g):O,U="trailing"in y?!!y.trailing:U);function Z(K){var We=_,Je=w;return _=w=void 0,T=K,x=p.apply(Je,We),x}function R(K){return T=K,E=setTimeout(P,g),L?Z(K):x}function de(K){var We=K-A,Je=K-T,Ye=g-We;return W?f(Ye,O-Je):Ye}function C(K){var We=K-A,Je=K-T;return A===void 0||We>=g||We<0||W&&Je>=O}function P(){var K=i();if(C(K))return q(K);E=setTimeout(P,de(K))}function q(K){return E=void 0,U&&_?Z(K):(_=w=void 0,x)}function ee(){E!==void 0&&clearTimeout(E),T=0,_=A=w=E=void 0}function J(){return E===void 0?x:q(i())}function ie(){var K=i(),We=C(K);if(_=arguments,w=this,A=K,We){if(E===void 0)return R(A);if(W)return clearTimeout(E),E=setTimeout(P,g),Z(A)}return E===void 0&&(E=setTimeout(P,g)),x}return ie.cancel=ee,ie.flush=J,ie}return Co=c,Co}var No,Bl;function _0(){if(Bl)return No;Bl=1;var a=b0(),i=go(),n="Expected a function";function o(u,f,c){var p=!0,g=!0;if(typeof u!="function")throw new TypeError(n);return i(c)&&(p="leading"in c?!!c.leading:p,g="trailing"in c?!!c.trailing:g),a(u,f,{leading:p,maxWait:f,trailing:g})}return No=o,No}var w0=_0();const S0=Qr(w0);var Lo,Rl;function x0(){if(Rl)return Lo;Rl=1;function a(i,n,o){return i===i&&(o!==void 0&&(i=i<=o?i:o),n!==void 0&&(i=i>=n?i:n)),i}return Lo=a,Lo}var Po,$l;function E0(){if($l)return Po;$l=1;var a=x0(),i=Dl();function n(o,u,f){return f===void 0&&(f=u,u=void 0),f!==void 0&&(f=i(f),f=f===f?f:0),u!==void 0&&(u=i(u),u=u===u?u:0),a(i(o),u,f)}return Po=n,Po}var A0=E0();const Fo=Qr(A0),T0=1e3/30;function I0({node:a,containerRef:i,onChange:n,onRelease:o}){const u=k.useRef(null),[f,c]=k.useState(!1),p=()=>{f||(u.current.ownerDocument.addEventListener("mousemove",w,!0),u.current.ownerDocument.addEventListener("mouseup",_,!0),c(!0))},g=()=>{u.current&&(u.current.ownerDocument.removeEventListener("mousemove",w,!0),u.current.ownerDocument.removeEventListener("mouseup",_,!0),c(!1))},y=E=>{E.button===0&&(E.preventDefault(),p())},_=E=>{if(g(),i==null)return;const A=O(E,a,i);A!==null&&o(A)},w=E=>{E.preventDefault(),i!=null&&x(E,a,i)},O=(E,A,T)=>{if(T.current==null)return null;const L=T.current.getBoundingClientRect(),W=A.direction==="row"?E.clientX:E.clientY,U=A.direction==="row"?L.left:L.top,Z=A.direction==="row"?L.width:L.height,R=Fo(W-U,0,Z),de=Fo(Z-R,0,Z),C=Fo(R*100/Z,0,100);return A.type==="split-percentage"?{type:A.type,size:C}:A.type==="split-pixels"?A.primary==="first"?{type:"split-pixels",primary:"first",size:R}:{type:"split-pixels",primary:"second",size:de}:null},x=S0((E,A,T)=>{if(T.current==null)return null;const L=O(E,A,T);L!==null&&n(L)},T0);return k.useEffect(()=>{}),$.jsx("div",{ref:u,className:_t("just-splitter"),onMouseDown:y})}const zl=Dt(I0);function Mo({layoutId:a,isFullScreenView:i,hideTitle:n,dndAccept:o,node:u,justBranch:f,getWinInfo:c,getTabMenu:p}){const g=k.useRef(null),y=Nt(a),_=({size:O})=>{y.updateResize({branch:f,size:O})},w=(O,x)=>O.type==="split-percentage"&&x==="first"?{flexBasis:`calc(${O.size}% - 3px)`,[O.direction==="row"?"minWidth":"minHeight"]:`${O.minSize??0}%`}:O.type==="split-pixels"&&x===O.primary?{flexBasis:`${O.size}px`,[O.direction==="row"?"minWidth":"minHeight"]:`${O.minSize??0}px`}:{};return $.jsxs("div",{ref:g,className:_t("just-node"),children:[u?.type==="stack"&&$.jsx(_l,{hideTitle:u.hideTitle??n,layoutId:a,isFullScreenView:i,dndAccept:u.dndAccept??o,justStack:u,justBranch:f,getWinInfo:c,getTabMenu:p}),(u?.type==="split-percentage"||u?.type==="split-pixels")&&$.jsxs("div",{className:_t(u.type,{"just-column":u.direction==="column","just-row":u.direction==="row"}),children:[$.jsx(k.Activity,{mode:u.type==="split-pixels"&&u.primary==="first"&&u.primaryHide===!0?"hidden":"visible",children:$.jsx("div",{className:_t("just-first",{"just-primary":u.type==="split-percentage"||u.type==="split-pixels"&&u.primary==="first","just-secondary":!(u.type==="split-percentage"||u.type==="split-pixels"&&u.primary==="first")}),style:w(u,"first"),children:$.jsx(Mo,{layoutId:a,isFullScreenView:i,hideTitle:u.hideTitle??n,dndAccept:u.dndAccept??o,node:u.first,justBranch:[...f,"first"],getWinInfo:c,getTabMenu:p})})}),!(u.type==="split-pixels"&&(u.noSplitter===!0||u.primaryHide===!0))&&$.jsx(zl,{layoutId:a,node:u,justBranch:f,containerRef:g,onChange:_,onRelease:_}),$.jsx(k.Activity,{mode:u.type==="split-pixels"&&u.primary==="second"&&u.primaryHide===!0?"hidden":"visible",children:$.jsx("div",{className:_t("just-second",{"just-primary":!(u.type==="split-percentage"||u.type==="split-pixels"&&u.primary==="first"),"just-secondary":u.type==="split-percentage"||u.type==="split-pixels"&&u.primary==="first"}),style:w(u,"second"),children:$.jsx(Mo,{layoutId:a,isFullScreenView:i,hideTitle:u.hideTitle??n,dndAccept:u.dndAccept??o,node:u.second,justBranch:[...f,"second"],getWinInfo:c,getTabMenu:p})})})]},`JustNode-${f.join(",")}`)]})}const ko=Dt(Mo);function O0({layoutId:a,getWinInfo:i,getTabMenu:n,initialValue:o}){const u=`${a}_FULLSCREEN`,f=Nt(a),c=Nt(u);return k.useEffect(()=>{c.layout===null&&(f.setFullScreenLayoutByBranch(null),f.setFullScreenHideTitle(!1))},[c.layout]),k.useEffect(()=>{f.setLayout(o),f.setFullScreenLayoutByBranch(null),c.setLayout(null)},[]),k.useEffect(()=>{const p=()=>{},g=async y=>{y.key==="Escape"?(console.log("esc"),f.setFullScreenLayoutByBranch(null)):y.key==="F11"&&(console.log("F11"),f.fullScreenLayout!==null&&f.setFullScreenLayoutByBranch(null)),y.altKey&&(y.key==="ArrowRight"?c.layout!==null?c.activeNextWin():f.activeNextWin():y.key==="ArrowLeft"&&(c.layout!==null?c.activePrevWin():f.activePrevWin()))};return window.addEventListener("keydown",g),document.addEventListener("fullscreenchange",p),()=>{window.removeEventListener("keydown",g),document.removeEventListener("fullscreenchange",p)}},[]),k.useEffect(()=>{console.log("useEffect justLayoutStore.fullScreenLayout",f.fullScreenLayout),c.setLayout(f.fullScreenLayout),f.lastActiveId&&c.activeWin({justId:f.lastActiveId})},[f.fullScreenLayout]),k.useEffect(()=>{c.setFullScreenHideTitle(f.fullScreenHideTitle)},[f.fullScreenHideTitle]),$.jsxs("div",{className:_t("just-layout"),children:[f.fullScreenLayout===null&&$.jsx(ko,{layoutId:a,isFullScreenView:!1,hideTitle:f.layout?.hideTitle,dndAccept:f.layout?.dndAccept??[],node:f.layout,justBranch:[],getWinInfo:i,getTabMenu:n}),f.fullScreenLayout!==null&&$.jsx(ko,{layoutId:u,isFullScreenView:!0,hideTitle:f.layout?.hideTitle,dndAccept:f.layout?.dndAccept??[],node:c.layout,justBranch:[],getWinInfo:i,getTabMenu:n})]})}const C0=Dt(O0);ce.JUST_LAYOUT_TYPES=kt,ce.JustDraggableTitle=gl,ce.JustLayoutView=C0,ce.JustNodeView=ko,ce.JustSplitter=zl,ce.JustTabMenu=ml,ce.JustTabTitle=vl,ce.JustUtil=he,ce.JustWinBodyView=bl,ce.JustWinTitleView=yl,ce.JustWinView=_l,ce.justLayoutModule=Ah,ce.stableStringify=eu,ce.useJustLayoutStore=Nt,Object.defineProperty(ce,Symbol.toStringTag,{value:"Module"})}));
|