Add progress display

This commit is contained in:
Terncode committed 2024-07-28 23:02:58 +02:00
1 parent cad3ec6fd7
commit 81cc47efd0
8 files changed
+269 -128

No files matched your search

+121 -90
View File
@@ -1,7 +1,7 @@
// ==UserScript==
// @name Pixel canvas overlay
// @namespace http://tampermonkey.net/
// @version 2024-07-29
// @version 2024-07-30
// @description Scripts renders pixelated overlays over the tile map!
// @author 0xa663, Terncode
// @match https://pixelcanvas.io/*
@@ -9,35 +9,78 @@
// @grant none
// ==/UserScript==
(()=>{var HL=Object.create;var rl=Object.defineProperty;var gL=Object.getOwnPropertyDescriptor;var VL=Object.getOwnPropertyNames;var ML=Object.getPrototypeOf,CL=Object.prototype.hasOwnProperty;var J1=(e,c)=>()=>(c||e((c={exports:{}}).exports,c),c.exports);var LL=(e,c,r,n)=>{if(c&&typeof c=="object"||typeof c=="function")for(let i of VL(c))!CL.call(e,i)&&i!==r&&rl(e,i,{get:()=>c[i],enumerable:!(n=gL(c,i))||n.enumerable});return e};var N2=(e,c,r)=>(r=e!=null?HL(ML(e)):{},LL(c||!e||!e.__esModule?rl(r,"default",{value:e,enumerable:!0}):r,e));var Z8=J1((b0,J8)=>{(function(){var e,c="4.17.21",r=200,n="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",i="Expected a function",s="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",u=500,p="__lodash_placeholder__",h=1,z=2,M=4,L=1,S=2,P=1,R=2,W=4,g=8,H=16,C=32,b=64,O=128,U=256,B=512,Z=30,A="...",N=800,E=16,T=1,j=2,K=3,Y=1/0,q=9007199254740991,t2=17976931348623157e292,s2=NaN,i2=4294967295,M2=i2-1,L2=i2>>>1,K2=[["ary",O],["bind",P],["bindKey",R],["curry",g],["curryRight",H],["flip",B],["partial",C],["partialRight",b],["rearg",U]],r1="[object Arguments]",y1="[object Array]",t3="[object AsyncFunction]",H1="[object Boolean]",g1="[object Date]",e4="[object DOMException]",Q2="[object Error]",X1="[object Function]",D3="[object GeneratorFunction]",I2="[object Map]",b6="[object Number]",Nr="[object Null]",F3="[object Object]",me="[object Promise]",k6="[object Proxy]",A6="[object RegExp]",O1="[object Set]",m4="[object String]",v0="[object Symbol]",P8="[object Undefined]",c4="[object WeakMap]",br="[object WeakSet]",E6="[object ArrayBuffer]",B4="[object DataView]",_8="[object Float32Array]",T8="[object Float64Array]",R8="[object Int8Array]",kr="[object Int16Array]",Ar="[object Int32Array]",Er="[object Uint8Array]",Pr="[object Uint8ClampedArray]",_r="[object Uint16Array]",Tr="[object Uint32Array]",Fv=/\b__p \+= '';/g,Bv=/\b(__p \+=) '' \+/g,Iv=/(__e\(.*?\)|\b__t\)) \+\n'';/g,wi=/&(?:amp|lt|gt|quot|#39);/g,Si=/[&<>"']/g,Uv=RegExp(wi.source),Wv=RegExp(Si.source),Gv=/<%-([\s\S]+?)%>/g,qv=/<%([\s\S]+?)%>/g,Ni=/<%=([\s\S]+?)%>/g,jv=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Xv=/^\w*$/,Yv=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Rr=/[\\^$.*+?()[\]{}|]/g,Kv=RegExp(Rr.source),Or=/^\s+/,Qv=/\s/,$v=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Jv=/\{\n\/\* \[wrapped with (.+)\] \*/,Zv=/,? & /,ed=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,cd=/[()=,{}\[\]\/\s]/,rd=/\\(\\)?/g,ad=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,bi=/\w*$/,nd=/^[-+]0x[0-9a-f]+$/i,td=/^0b[01]+$/i,id=/^\[object .+?Constructor\]$/,sd=/^0o[0-7]+$/i,od=/^(?:0|[1-9]\d*)$/,ld=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,he=/($^)/,fd=/['\n\r\u2028\u2029\\]/g,ve="\\ud800-\\udfff",ud="\\u0300-\\u036f",pd="\\ufe20-\\ufe2f",md="\\u20d0-\\u20ff",ki=ud+pd+md,Ai="\\u2700-\\u27bf",Ei="a-z\\xdf-\\xf6\\xf8-\\xff",hd="\\xac\\xb1\\xd7\\xf7",vd="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",dd="\\u2000-\\u206f",zd=" \\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",Pi="A-Z\\xc0-\\xd6\\xd8-\\xde",_i="\\ufe0e\\ufe0f",Ti=hd+vd+dd+zd,Dr="['\u2019]",Hd="["+ve+"]",Ri="["+Ti+"]",de="["+ki+"]",Oi="\\d+",gd="["+Ai+"]",Di="["+Ei+"]",Fi="[^"+ve+Ti+Oi+Ai+Ei+Pi+"]",Fr="\\ud83c[\\udffb-\\udfff]",Vd="(?:"+de+"|"+Fr+")",Bi="[^"+ve+"]",Br="(?:\\ud83c[\\udde6-\\uddff]){2}",Ir="[\\ud800-\\udbff][\\udc00-\\udfff]",d0="["+Pi+"]",Ii="\\u200d",Ui="(?:"+Di+"|"+Fi+")",Md="(?:"+d0+"|"+Fi+")",Wi="(?:"+Dr+"(?:d|ll|m|re|s|t|ve))?",Gi="(?:"+Dr+"(?:D|LL|M|RE|S|T|VE))?",qi=Vd+"?",ji="["+_i+"]?",Cd="(?:"+Ii+"(?:"+[Bi,Br,Ir].join("|")+")"+ji+qi+")*",Ld="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",xd="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Xi=ji+qi+Cd,yd="(?:"+[gd,Br,Ir].join("|")+")"+Xi,wd="(?:"+[Bi+de+"?",de,Br,Ir,Hd].join("|")+")",Sd=RegExp(Dr,"g"),Nd=RegExp(de,"g"),Ur=RegExp(Fr+"(?="+Fr+")|"+wd+Xi,"g"),bd=RegExp([d0+"?"+Di+"+"+Wi+"(?="+[Ri,d0,"$"].join("|")+")",Md+"+"+Gi+"(?="+[Ri,d0+Ui,"$"].join("|")+")",d0+"?"+Ui+"+"+Wi,d0+"+"+Gi,xd,Ld,Oi,yd].join("|"),"g"),kd=RegExp("["+Ii+ve+ki+_i+"]"),Ad=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ed=["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"],Pd=-1,T2={};T2[_8]=T2[T8]=T2[R8]=T2[kr]=T2[Ar]=T2[Er]=T2[Pr]=T2[_r]=T2[Tr]=!0,T2[r1]=T2[y1]=T2[E6]=T2[H1]=T2[B4]=T2[g1]=T2[Q2]=T2[X1]=T2[I2]=T2[b6]=T2[F3]=T2[A6]=T2[O1]=T2[m4]=T2[c4]=!1;var E2={};E2[r1]=E2[y1]=E2[E6]=E2[B4]=E2[H1]=E2[g1]=E2[_8]=E2[T8]=E2[R8]=E2[kr]=E2[Ar]=E2[I2]=E2[b6]=E2[F3]=E2[A6]=E2[O1]=E2[m4]=E2[v0]=E2[Er]=E2[Pr]=E2[_r]=E2[Tr]=!0,E2[Q2]=E2[X1]=E2[c4Line truncated
(()=>{var ML=Object.create;var al=Object.defineProperty;var CL=Object.getOwnPropertyDescriptor;var LL=Object.getOwnPropertyNames;var xL=Object.getPrototypeOf,yL=Object.prototype.hasOwnProperty;var Z1=(e,c)=>()=>(c||e((c={exports:{}}).exports,c),c.exports);var wL=(e,c,r,n)=>{if(c&&typeof c=="object"||typeof c=="function")for(let i of LL(c))!yL.call(e,i)&&i!==r&&al(e,i,{get:()=>c[i],enumerable:!(n=CL(c,i))||n.enumerable});return e};var N2=(e,c,r)=>(r=e!=null?ML(xL(e)):{},wL(c||!e||!e.__esModule?al(r,"default",{value:e,enumerable:!0}):r,e));var Z8=Z1((A0,J8)=>{(function(){var e,c="4.17.21",r=200,n="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",i="Expected a function",s="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",u=500,p="__lodash_placeholder__",h=1,z=2,V=4,L=1,S=2,P=1,T=2,W=4,g=8,H=16,C=32,b=64,D=128,U=256,B=512,Z=30,A="...",N=800,E=16,R=1,j=2,K=3,Y=1/0,q=9007199254740991,t2=17976931348623157e292,o2=NaN,i2=4294967295,M2=i2-1,L2=i2>>>1,K2=[["ary",D],["bind",P],["bindKey",T],["curry",g],["curryRight",H],["flip",B],["partial",C],["partialRight",b],["rearg",U]],r1="[object Arguments]",w1="[object Array]",i3="[object AsyncFunction]",H1="[object Boolean]",g1="[object Date]",e4="[object DOMException]",Q2="[object Error]",Y1="[object Function]",O3="[object GeneratorFunction]",I2="[object Map]",A6="[object Number]",br="[object Null]",F3="[object Object]",he="[object Promise]",E6="[object Proxy]",P6="[object RegExp]",O1="[object Set]",h4="[object String]",z0="[object Symbol]",P8="[object Undefined]",c4="[object WeakMap]",kr="[object WeakSet]",_6="[object ArrayBuffer]",I4="[object DataView]",_8="[object Float32Array]",T8="[object Float64Array]",R8="[object Int8Array]",Ar="[object Int16Array]",Er="[object Int32Array]",Pr="[object Uint8Array]",_r="[object Uint8ClampedArray]",Tr="[object Uint16Array]",Rr="[object Uint32Array]",Ud=/\b__p \+= '';/g,Wd=/\b(__p \+=) '' \+/g,Gd=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Si=/&(?:amp|lt|gt|quot|#39);/g,Ni=/[&<>"']/g,qd=RegExp(Si.source),jd=RegExp(Ni.source),Xd=/<%-([\s\S]+?)%>/g,Yd=/<%([\s\S]+?)%>/g,bi=/<%=([\s\S]+?)%>/g,Kd=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Qd=/^\w*$/,$d=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Dr=/[\\^$.*+?()[\]{}|]/g,Jd=RegExp(Dr.source),Or=/^\s+/,Zd=/\s/,ev=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,cv=/\{\n\/\* \[wrapped with (.+)\] \*/,rv=/,? & /,av=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,nv=/[()=,{}\[\]\/\s]/,tv=/\\(\\)?/g,iv=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ki=/\w*$/,sv=/^[-+]0x[0-9a-f]+$/i,ov=/^0b[01]+$/i,lv=/^\[object .+?Constructor\]$/,fv=/^0o[0-7]+$/i,uv=/^(?:0|[1-9]\d*)$/,pv=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,de=/($^)/,mv=/['\n\r\u2028\u2029\\]/g,ve="\\ud800-\\udfff",hv="\\u0300-\\u036f",dv="\\ufe20-\\ufe2f",vv="\\u20d0-\\u20ff",Ai=hv+dv+vv,Ei="\\u2700-\\u27bf",Pi="a-z\\xdf-\\xf6\\xf8-\\xff",zv="\\xac\\xb1\\xd7\\xf7",Hv="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",gv="\\u2000-\\u206f",Vv=" \\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",_i="A-Z\\xc0-\\xd6\\xd8-\\xde",Ti="\\ufe0e\\ufe0f",Ri=zv+Hv+gv+Vv,Fr="['\u2019]",Mv="["+ve+"]",Di="["+Ri+"]",ze="["+Ai+"]",Oi="\\d+",Cv="["+Ei+"]",Fi="["+Pi+"]",Bi="[^"+ve+Ri+Oi+Ei+Pi+_i+"]",Br="\\ud83c[\\udffb-\\udfff]",Lv="(?:"+ze+"|"+Br+")",Ii="[^"+ve+"]",Ir="(?:\\ud83c[\\udde6-\\uddff]){2}",Ur="[\\ud800-\\udbff][\\udc00-\\udfff]",H0="["+_i+"]",Ui="\\u200d",Wi="(?:"+Fi+"|"+Bi+")",xv="(?:"+H0+"|"+Bi+")",Gi="(?:"+Fr+"(?:d|ll|m|re|s|t|ve))?",qi="(?:"+Fr+"(?:D|LL|M|RE|S|T|VE))?",ji=Lv+"?",Xi="["+Ti+"]?",yv="(?:"+Ui+"(?:"+[Ii,Ir,Ur].join("|")+")"+Xi+ji+")*",wv="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Sv="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Yi=Xi+ji+yv,Nv="(?:"+[Cv,Ir,Ur].join("|")+")"+Yi,bv="(?:"+[Ii+ze+"?",ze,Ir,Ur,Mv].join("|")+")",kv=RegExp(Fr,"g"),Av=RegExp(ze,"g"),Wr=RegExp(Br+"(?="+Br+")|"+bv+Yi,"g"),Ev=RegExp([H0+"?"+Fi+"+"+Gi+"(?="+[Di,H0,"$"].join("|")+")",xv+"+"+qi+"(?="+[Di,H0+Wi,"$"].join("|")+")",H0+"?"+Wi+"+"+Gi,H0+"+"+qi,Sv,wv,Oi,Nv].join("|"),"g"),Pv=RegExp("["+Ui+ve+Ai+Ti+"]"),_v=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Tv=["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"],Rv=-1,T2={};T2[_8]=T2[T8]=T2[R8]=T2[Ar]=T2[Er]=T2[Pr]=T2[_r]=T2[Tr]=T2[Rr]=!0,T2[r1]=T2[w1]=T2[_6]=T2[H1]=T2[I4]=T2[g1]=T2[Q2]=T2[Y1]=T2[I2]=T2[A6]=T2[F3]=T2[P6]=T2[O1]=T2[h4]=T2[c4]=!1;var E2={};E2[r1]=E2[w1]=E2[_6]=E2[I4]=E2[H1]=E2[g1]=E2[_8]=E2[T8]=E2[R8]=E2[Ar]=E2[Er]=E2[I2]=E2[A6]=E2[F3]=E2[P6]=E2[O1]=E2[h4]=E2[z0]=E2[Pr]=E2[_r]=E2[Tr]=E2[Rr]=!0,E2[Q2]=E2[Y1]=E2[c4Line truncated
/* [wrapped with `+t+`] */
`)}function QH(a){return l2(a)||I6(a)||!!(ds&&a&&a[ds])}function g4(a,t){var o=typeof a;return t=t??q,!!t&&(o=="number"||o!="symbol"&&od.test(a))&&a>-1&&a%1==0&&a<t}function F1(a,t,o){if(!q2(o))return!1;var f=typeof t;return(f=="number"?K1(o)&&g4(t,o.length):f=="string"&&t in o)?U3(o[t],a):!1}function ba(a,t){if(l2(a))return!1;var o=typeof a;return o=="number"||o=="symbol"||o=="boolean"||a==null||l3(a)?!0:Xv.test(a)||!jv.test(a)||t!=null&&a in b2(t)}function $H(a){var t=typeof a;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?a!=="__proto__":a===null}function ka(a){var t=qe(a),o=v[t];if(typeof o!="function"||!(t in z2.prototype))return!1;if(a===o)return!0;var f=wa(o);return!!f&&a===f[0]}function JH(a){return!!ps&&ps in a}var ZH=Me?V4:Xa;function K8(a){var t=a&&a.constructor,o=typeof t=="function"&&t.prototype||V0;return a===o}function po(a){return a===a&&!q2(a)}function mo(a,t){return function(o){return o==null?!1:o[a]===t&&(t!==e||a in b2(o))}}function eg(a){var t=$e(a,function(f){return o.size===u&&o.clear(),f}),o=t.cache;return t}function cg(a,t){var o=a[1],f=t[1],m=o|f,d=m<(P|R|O),V=f==O&&o==g||f==O&&o==U&&a[7].length<=t[8]||f==(O|U)&&t[7].length<=t[8]&&o==g;if(!(d||V))return a;f&P&&(a[2]=t[2],m|=o&P?0:W);var x=t[3];if(x){var w=a[3];a[3]=w?Ks(w,x,t[4]):x,a[4]=w?W4(a[3],p):t[4]}return x=t[5],x&&(w=a[5],a[5]=w?Qs(w,x,t[6]):x,a[6]=w?W4(a[5],p):t[6]),x=t[7],x&&(a[7]=x),f&O&&(a[8]=a[8]==null?t[8]:w1(a[8],t[8])),a[9]==null&&(a[9]=t[9]),a[0]=t[0],a[1]=m,a}function rg(a){var t=[];if(a!=null)for(var o in b2(a))t.push(o);return t}function ag(a){return Le.call(a)}function ho(a,t,o){return t=l1(t===e?a.length-1:t,0),function(){for(var f=arguments,m=-1,d=l1(f.length-t,0),V=k(d);++m<d;)V[m]=f[t+m];m=-1;for(var x=k(t+1);++m<t;)x[m]=f[m];return x[t]=o(V),i3(a,this,x)}}function vo(a,t){return t.length<2?a:D6(a,y3(t,0,-1))}function ng(a,t){for(var o=a.length,f=w1(t.length,o),m=Y1(a);f--;){var d=t[f];a[f]=g4(d,o)?m[d]:e}return a}function Aa(a,t){if(!(t==="constructor"&&typeof a[t]=="function")&&t!="__proto__")return a[t]}var zo=go(Fs),Q8=gz||function(a,t){return h1.setTimeout(a,t)},Ea=go(SH);function Ho(a,t,o){var f=t+"";return Ea(a,KH(f,tg(jH(f),o)))}function go(a){var t=0,o=0;return function(){var f=Lz(),m=E-(f-o);if(o=f,m>0){if(++t>=N)return arguments[0]}else t=0;return a.apply(e,arguments)}}function Xe(a,t){var o=-1,f=a.length,m=f-1;for(t=t===e?f:t;++o<t;){var d=ha(o,m),V=a[d];a[d]=a[o],a[o]=V}return a.length=t,a}var Vo=eg(function(a){var t=[];return a.charCodeAt(0)===46&&t.push(""),a.replace(Yv,function(o,f,m,d){t.push(m?d.replace(rd,"$1"):f||o)}),t});function n4(a){if(typeof a=="string"||l3(a))return a;var t=a+"";return t=="0"&&1/a==-Y?"-0":t}function B6(a){if(a!=null){try{return Ce.call(a)}catch{}try{return a+""}catch{}}return""}function tg(a,t){return M3(K2,function(o){var f="_."+o[0];t&o[1]&&!ze(a,f)&&a.push(f)}),a.sort()}function Mo(a){if(a instanceof z2)return a.clone();var t=new L3(a.__wrapped__,a.__chain__);return t.__actions__=Y1(a.__actions__),t.__index__=a.__index__,t.__values__=a.__values__,t}function ig(a,t,o){(o?F1(a,t,o):t===e)?t=1:t=l1(p2(t),0);var f=a==null?0:a.length;if(!f||t<1)return[];for(var m=0,d=0,V=k(be(f/t));m<f;)V[d++]=y3(a,m,m+=t);return V}function sg(a){for(var t=-1,o=a==null?0:a.length,f=0,m=[];++t<o;){var d=a[t];d&&(m[f++]=d)}return m}function og(){var a=arguments.length;if(!a)return[];for(var t=k(a-1),o=arguments[0],f=a;f--;)t[f-1]=arguments[f];return U4(l2(o)?Y1(o):[o],V1(t,1))}var lg=h2(function(a,t){return a1(a)?G8(a,V1(t,1,a1,!0)):[]}),fg=h2(function(a,t){var o=w3(t);return a1(o)&&(o=e),a1(a)?G8(a,V1(t,1,a1,!0),r2(o,2)):[]}),ug=h2(function(a,t){var o=w3(t);return a1(o)&&(o=e),a1(a)?G8(a,V1(t,1,a1,!0),e,o):[]});function pg(a,t,o){var f=a==null?0:a.length;return f?(t=o||t===e?1:p2(t),y3(a,t<0?0:t,f)):[]}function mg(a,t,o){var f=a==null?0:a.length;return f?(t=o||t===e?1:p2(t),t=f-t,y3(a,0,t<0?0:t)):[]}function hg(a,t){return a&&a.length?Fe(a,r2(t,3),!0,!0):[]}function vg(a,t){return a&&a.length?Fe(a,r2(t,3),!0):[]}function dg(a,t,o,f){var m=a==null?0:a.length;return m?(o&&typeof o!="number"&&F1(a,t,o)&&(o=0,f=m),oH(a,t,o,f)):[]}function Co(a,t,o){var f=a==null?0:a.length;if(!f)return-1;var m=o==null?0:p2(o);return m<0&&(m=l1(f+m,0)),He(a,r2(t,3),m)}function Lo(a,t,o){var f=a==null?0:a.length;if(!f)return-1;var m=f-1;return o!==e&&(m=p2(o),m=o<0?l1(f+m,0):w1(m,f-1)),He(a,r2(t,3),m,!0)}function xo(a){var t=a==null?0:a.length;return t?V1(a,1):[]}function zg(a){var t=a==null?0:a.length;return t?V1(a,Y):[]}function Hg(a,t){var o=a==null?0:a.length;return o?(t=t===e?1:p2(t),V1(a,t)):[]}function gg(a){for(var t=-1,o=a==null?0:a.length,f={};++t<o;){var m=a[t];f[m[0]]=m[1]}return f}function yo(a){return a&&a.length?a[0]:e}function Vg(a,t,o){var f=a==null?0:a.length;if(!f)return-1;var m=o==null?0:p2(o);return m<0&&(m=l1(f+m,0)),z0(a,t,m)}function Mg(a){var t=a==null?0:a.length;return t?y3(a,0,-1):[]}var Cg=h2(function(a){var t=U2(a,ga);return t.length&&t[0]===a[0]?la(t):[]}),Lg=h2(fu Line truncated
`;a.replace(X,function(n2,d2,g2,f3,B1,u3){return g2||(g2=f3),I+=a.slice(D,u3).replace(fd,Zd),d2&&(x=!0,I+=`' +
__e(`+d2+`) +
'`),B1&&(w=!0,I+=`';
`+B1+`;
`)}function ZH(a){return f2(a)||W6(a)||!!(zs&&a&&a[zs])}function V4(a,t){var o=typeof a;return t=t??q,!!t&&(o=="number"||o!="symbol"&&uv.test(a))&&a>-1&&a%1==0&&a<t}function B1(a,t,o){if(!q2(o))return!1;var f=typeof t;return(f=="number"?Q1(o)&&V4(t,o.length):f=="string"&&t in o)?U3(o[t],a):!1}function ka(a,t){if(f2(a))return!1;var o=typeof a;return o=="number"||o=="symbol"||o=="boolean"||a==null||f3(a)?!0:Qd.test(a)||!Kd.test(a)||t!=null&&a in b2(t)}function eg(a){var t=typeof a;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?a!=="__proto__":a===null}function Aa(a){var t=je(a),o=d[t];if(typeof o!="function"||!(t in z2.prototype))return!1;if(a===o)return!0;var f=Sa(o);return!!f&&a===f[0]}function cg(a){return!!ms&&ms in a}var rg=Ce?M4:Ya;function K8(a){var t=a&&a.constructor,o=typeof t=="function"&&t.prototype||C0;return a===o}function mo(a){return a===a&&!q2(a)}function ho(a,t){return function(o){return o==null?!1:o[a]===t&&(t!==e||a in b2(o))}}function ag(a){var t=Je(a,function(f){return o.size===u&&o.clear(),f}),o=t.cache;return t}function ng(a,t){var o=a[1],f=t[1],m=o|f,v=m<(P|T|D),M=f==D&&o==g||f==D&&o==U&&a[7].length<=t[8]||f==(D|U)&&t[7].length<=t[8]&&o==g;if(!(v||M))return a;f&P&&(a[2]=t[2],m|=o&P?0:W);var x=t[3];if(x){var w=a[3];a[3]=w?Qs(w,x,t[4]):x,a[4]=w?G4(a[3],p):t[4]}return x=t[5],x&&(w=a[5],a[5]=w?$s(w,x,t[6]):x,a[6]=w?G4(a[5],p):t[6]),x=t[7],x&&(a[7]=x),f&D&&(a[8]=a[8]==null?t[8]:S1(a[8],t[8])),a[9]==null&&(a[9]=t[9]),a[0]=t[0],a[1]=m,a}function tg(a){var t=[];if(a!=null)for(var o in b2(a))t.push(o);return t}function ig(a){return xe.call(a)}function vo(a,t,o){return t=l1(t===e?a.length-1:t,0),function(){for(var f=arguments,m=-1,v=l1(f.length-t,0),M=k(v);++m<v;)M[m]=f[t+m];m=-1;for(var x=k(t+1);++m<t;)x[m]=f[m];return x[t]=o(M),s3(a,this,x)}}function zo(a,t){return t.length<2?a:B6(a,w3(t,0,-1))}function sg(a,t){for(var o=a.length,f=S1(t.length,o),m=K1(a);f--;){var v=t[f];a[f]=V4(v,o)?m[v]:e}return a}function Ea(a,t){if(!(t==="constructor"&&typeof a[t]=="function")&&t!="__proto__")return a[t]}var Ho=Vo(Bs),Q8=Cz||function(a,t){return h1.setTimeout(a,t)},Pa=Vo(kH);function go(a,t,o){var f=t+"";return Pa(a,JH(f,og(KH(f),o)))}function Vo(a){var t=0,o=0;return function(){var f=wz(),m=E-(f-o);if(o=f,m>0){if(++t>=N)return arguments[0]}else t=0;return a.apply(e,arguments)}}function Ye(a,t){var o=-1,f=a.length,m=f-1;for(t=t===e?f:t;++o<t;){var v=da(o,m),M=a[v];a[v]=a[o],a[o]=M}return a.length=t,a}var Mo=ag(function(a){var t=[];return a.charCodeAt(0)===46&&t.push(""),a.replace($d,function(o,f,m,v){t.push(m?v.replace(tv,"$1"):f||o)}),t});function n4(a){if(typeof a=="string"||f3(a))return a;var t=a+"";return t=="0"&&1/a==-Y?"-0":t}function U6(a){if(a!=null){try{return Le.call(a)}catch{}try{return a+""}catch{}}return""}function og(a,t){return C3(K2,function(o){var f="_."+o[0];t&o[1]&&!He(a,f)&&a.push(f)}),a.sort()}function Co(a){if(a instanceof z2)return a.clone();var t=new x3(a.__wrapped__,a.__chain__);return t.__actions__=K1(a.__actions__),t.__index__=a.__index__,t.__values__=a.__values__,t}function lg(a,t,o){(o?B1(a,t,o):t===e)?t=1:t=l1(p2(t),0);var f=a==null?0:a.length;if(!f||t<1)return[];for(var m=0,v=0,M=k(ke(f/t));m<f;)M[v++]=w3(a,m,m+=t);return M}function fg(a){for(var t=-1,o=a==null?0:a.length,f=0,m=[];++t<o;){var v=a[t];v&&(m[f++]=v)}return m}function ug(){var a=arguments.length;if(!a)return[];for(var t=k(a-1),o=arguments[0],f=a;f--;)t[f-1]=arguments[f];return W4(f2(o)?K1(o):[o],V1(t,1))}var pg=h2(function(a,t){return a1(a)?G8(a,V1(t,1,a1,!0)):[]}),mg=h2(function(a,t){var o=S3(t);return a1(o)&&(o=e),a1(a)?G8(a,V1(t,1,a1,!0),r2(o,2)):[]}),hg=h2(function(a,t){var o=S3(t);return a1(o)&&(o=e),a1(a)?G8(a,V1(t,1,a1,!0),e,o):[]});function dg(a,t,o){var f=a==null?0:a.length;return f?(t=o||t===e?1:p2(t),w3(a,t<0?0:t,f)):[]}function vg(a,t,o){var f=a==null?0:a.length;return f?(t=o||t===e?1:p2(t),t=f-t,w3(a,0,t<0?0:t)):[]}function zg(a,t){return a&&a.length?Be(a,r2(t,3),!0,!0):[]}function Hg(a,t){return a&&a.length?Be(a,r2(t,3),!0):[]}function gg(a,t,o,f){var m=a==null?0:a.length;return m?(o&&typeof o!="number"&&B1(a,t,o)&&(o=0,f=m),uH(a,t,o,f)):[]}function Lo(a,t,o){var f=a==null?0:a.length;if(!f)return-1;var m=o==null?0:p2(o);return m<0&&(m=l1(f+m,0)),ge(a,r2(t,3),m)}function xo(a,t,o){var f=a==null?0:a.length;if(!f)return-1;var m=f-1;return o!==e&&(m=p2(o),m=o<0?l1(f+m,0):S1(m,f-1)),ge(a,r2(t,3),m,!0)}function yo(a){var t=a==null?0:a.length;return t?V1(a,1):[]}function Vg(a){var t=a==null?0:a.length;return t?V1(a,Y):[]}function Mg(a,t){var o=a==null?0:a.length;return o?(t=t===e?1:p2(t),V1(a,t)):[]}function Cg(a){for(var t=-1,o=a==null?0:a.length,f={};++t<o;){var m=a[t];f[m[0]]=m[1]}return f}function wo(a){return a&&a.length?a[0]:e}function Lg(a,t,o){var f=a==null?0:a.length;if(!f)return-1;var m=o==null?0:p2(o);return m<0&&(m=l1(f+m,0)),g0(a,t,m)}function xg(a){var t=a==null?0:a.length;return t?w3(a,0,-1):[]}var yg=h2(function(a){var t=U2(a,Va);return t.length&&t[0]===a[0]?fa(t):[]}),wg=h2(fu Line truncated
`;a.replace(X,function(n2,v2,g2,u3,I1,p3){return g2||(g2=u3),I+=a.slice(O,p3).replace(mv,rz),v2&&(x=!0,I+=`' +
__e(`+v2+`) +
'`),I1&&(w=!0,I+=`';
`+I1+`;
__p += '`),g2&&(I+=`' +
((__t = (`+g2+`)) == null ? '' : __t) +
'`),D=u3+n2.length,n2}),I+=`';
'`),O=p3+n2.length,n2}),I+=`';
`;var a2=w2.call(t,"variable")&&t.variable;if(!a2)I=`with (obj) {
`+I+`
}
`;else if(cd.test(a2))throw new o2(s);I=(w?I.replace(Fv,""):I).replace(Bv,"$1").replace(Iv,"$1;"),I="function("+(a2||"obj")+`) {
`;else if(nv.test(a2))throw new l2(s);I=(w?I.replace(Ud,""):I).replace(Wd,"$1").replace(Gd,"$1;"),I="function("+(a2||"obj")+`) {
`+(a2?"":`obj || (obj = {});
`)+"var __t, __p = ''"+(x?", __e = _.escape":"")+(w?`, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
`:`;
`)+I+`return __p
}`;var m2=Zo(function(){return x2(d,e2+"return "+I).apply(e,V)});if(m2.source=I,Oa(m2))throw m2;return m2}function yC(a){return y2(a).toLowerCase()}function wC(a){return y2(a).toUpperCase()}function SC(a,t,o){if(a=y2(a),a&&(o||t===e))return ss(a);if(!a||!(t=o3(t)))return a;var f=B3(a),m=B3(t),d=os(f,m),V=ls(f,m)+1;return K4(f,d,V).join("")}function NC(a,t,o){if(a=y2(a),a&&(o||t===e))return a.slice(0,us(a)+1);if(!a||!(t=o3(t)))return a;var f=B3(a),m=ls(f,B3(t))+1;return K4(f,0,m).join("")}function bC(a,t,o){if(a=y2(a),a&&(o||t===e))return a.replace(Or,"");if(!a||!(t=o3(t)))return a;var f=B3(a),m=os(f,B3(t));return K4(f,m).join("")}function kC(a,t){var o=Z,f=A;if(q2(t)){var m="separator"in t?t.separator:m;o="length"in t?p2(t.length):o,f="omission"in t?o3(t.omission):f}a=y2(a);var d=a.length;if(H0(a)){var V=B3(a);d=V.length}if(o>=d)return a;var x=o-g0(f);if(x<1)return f;var w=V?K4(V,0,x).join(""):a.slice(0,x);if(m===e)return w+f;if(V&&(x+=w.length-x),Da(m)){if(a.slice(x).search(m)){var D,F=w;for(m.global||(m=ea(m.source,y2(bi.exec(m))+"g")),m.lastIndex=0;D=m.exec(F);)var I=D.index;w=w.slice(0,I===e?x:I)}}else if(a.indexOf(o3(m),x)!=x){var X=w.lastIndexOf(m);X>-1&&(w=w.slice(0,X))}return w+f}function AC(a){return a=y2(a),a&&Uv.test(a)?a.replace(wi,iz):a}var EC=y0(function(a,t,o){return a+(o?" ":"")+t.toUpperCase()}),Ia=Zs("toUpperCase");function Jo(a,t,o){return a=y2(a),t=o?e:t,t===e?cz(a)?lz(a):jd(a):a.match(t)||[]}var Zo=h2(function(a,t){try{return i3(a,e,t)}catch(o){return Oa(o)?o:new o2(o)}}),PC=H4(function(a,t){return M3(t,function(o){o=n4(o),d4(a,o,Ta(a[o],a))}),a});function _C(a){var t=a==null?0:a.length,o=r2();return a=t?U2(a,function(f){if(typeof f[1]!="function")throw new C3(i);return[o(f[0]),f[1]]}):[],h2(function(f){for(var m=-1;++m<t;){var d=a[m];if(i3(d[0],this,f))return i3(d[1],this,f)}})}function TC(a){return iH(x3(a,h))}function Ua(a){return function(){return a}}function RC(a,t){return a==null||a!==a?t:a}var OC=co(),DC=co(!0);function $1(a){return a}function Wa(a){return As(typeof a=="function"?a:x3(a,h))}function FC(a){return Ps(x3(a,h))}function BC(a,t){return _s(a,x3(t,h))}var IC=h2(function(a,t){return function(o){return q8(o,a,t)}}),UC=h2(function(a,t){return function(o){return q8(a,o,t)}});function Ga(a,t,o){var f=v1(t),m=Re(t,f);o==null&&!(q2(t)&&(m.length||!f.length))&&(o=t,t=a,a=this,m=Re(t,v1(t)));var d=!(q2(o)&&"chain"in o)||!!o.chain,V=V4(a);return M3(m,function(x){var w=t[x];a[x]=w,V&&(a.prototype[x]=function(){var D=this.__chain__;if(d||D){var F=a(this.__wrapped__),I=F.__actions__=Y1(this.__actions__);return I.push({func:w,args:arguments,thisArg:a}),F.__chain__=D,F}return w.apply(a,U4([this.value()],arguments))})}),a}function WC(){return h1._===this&&(h1._=vz),this}function qa(){}function GC(a){return a=p2(a),h2(function(t){return Ts(t,a)})}var qC=Ca(U2),jC=Ca(rs),XC=Ca(Xr);function el(a){return ba(a)?Yr(n4(a)):LH(a)}function YC(a){return function(t){return a==null?e:D6(a,t)}}var KC=ao(),QC=ao(!0);function ja(){return[]}function Xa(){return!1}function $C(){return{}}function JC(){return""}function ZC(){return!0}function eL(a,t){if(a=p2(a),a<1||a>q)return[];var o=i2,f=w1(a,i2);t=r2(t),a-=i2;for(var m=$r(f,t);++o<a;)t(o);return m}function cL(a){return l2(a)?U2(a,n4):l3(a)?[a]:Y1(Vo(y2(a)))}function rL(a){var t=++mz;return y2(a)+t}var aL=Ue(function(a,t){return a+t},0),nL=La("ceil"),tL=Ue(function(a,t){return a/t},1),iL=La("floor");function sL(a){return a&&a.length?Te(a,$1,oa):e}function oL(a,t){return a&&a.length?Te(a,r2(t,2),oa):e}function lL(a){return ts(a,$1)}function fL(a,t){return ts(a,r2(t,2))}function uL(a){return a&&a.length?Te(a,$1,pa):e}function pL(a,t){return a&&a.length?Te(a,r2(t,2),pa):e}var mL=Ue(function(a,t){return a*t},1),hL=La("round"),vL=Ue(function(a,t){return a-t},0);function dL(a){return a&&a.length?Qr(a,$1):0}function zL(a,t){return a&&a.length?Qr(a,r2(t,2)):0}return v.after=FV,v.ary=Ao,v.assign=wM,v.assignIn=qo,v.assignInWith=c7,v.assignWith=SM,v.at=NM,v.before=Eo,v.bind=Ta,v.bindAll=PC,v.bindKey=Po,v.castArray=$V,v.chain=No,v.chunk=ig,v.compact=sg,v.concat=og,v.cond=_C,v.conforms=TC,v.constant=Ua,v.countBy=dV,v.create=bM,v.curry=_o,v.curryRight=To,v.debounce=Ro,v.defaults=kM,v.defaultsDeep=AM,v.defer=BV,v.delay=IV,v.difference=lg,v.differenceBy=fg,v.differenceWith=ug,v.drop=pg,v.dropRight=mg,v.dropRightWhile=hg,v.dropWhile=vg,v.fill=dg,v.filter=HV,v.flatMap=MV,v.flatMapDeep=CV,v.flatMapDepth=LV,v.flatten=xo,v.flattenDeep=zg,v.flattenDepth=Hg,v.flip=UV,v.flow=OC,v.flowRight=DC,v.fromPairs=gg,v.functions=DM,v.functionsIn=FM,v.groupBy=xV,v.initial=Mg,v.intersection=Cg,v.intersectionBy=Lg,v.intersectionWith=xg,v.invert=IM,v.invertBy=UM,v.invokeMap=wV,v.iteratee=Wa,v.keyBy=SV,v.keys=v1,v.keysIn=Q1,v.map=Ke,v.mapKeys=GM,v.mapValues=qM,v.matches=FC,v.matchesProperty=BC,v.memoize=$e,v.merge=jM,v.mergeWith=jo,v.method=IC,v.methodOf=UC,v.mixin=Ga,v.negate=Je,v.nthArg=GC,v.omit=XM,v.omitBy=YM,v.once=WV,v.orderBy=NV,v.over=qC,v.overArgs=GV,v.overEvery=jC,v.overSome=XC,v Line truncated
`+h9+e}var v9=!1;function d9(e,c){if(!e||v9)return"";v9=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(c)if(c=function(){throw Error()},Object.defineProperty(c.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(c,[])}catch(h){var n=h}Reflect.construct(e,[],c)}else{try{c.call()}catch(h){n=h}e.call(c.prototype)}else{try{throw Error()}catch(h){n=h}e()}}catch(h){if(h&&n&&typeof h.stack=="string"){for(var i=h.stack.split(`
}`;var m2=el(function(){return x2(v,e2+"return "+I).apply(e,M)});if(m2.source=I,Oa(m2))throw m2;return m2}function NC(a){return y2(a).toLowerCase()}function bC(a){return y2(a).toUpperCase()}function kC(a,t,o){if(a=y2(a),a&&(o||t===e))return os(a);if(!a||!(t=l3(t)))return a;var f=B3(a),m=B3(t),v=ls(f,m),M=fs(f,m)+1;return Q4(f,v,M).join("")}function AC(a,t,o){if(a=y2(a),a&&(o||t===e))return a.slice(0,ps(a)+1);if(!a||!(t=l3(t)))return a;var f=B3(a),m=fs(f,B3(t))+1;return Q4(f,0,m).join("")}function EC(a,t,o){if(a=y2(a),a&&(o||t===e))return a.replace(Or,"");if(!a||!(t=l3(t)))return a;var f=B3(a),m=ls(f,B3(t));return Q4(f,m).join("")}function PC(a,t){var o=Z,f=A;if(q2(t)){var m="separator"in t?t.separator:m;o="length"in t?p2(t.length):o,f="omission"in t?l3(t.omission):f}a=y2(a);var v=a.length;if(V0(a)){var M=B3(a);v=M.length}if(o>=v)return a;var x=o-M0(f);if(x<1)return f;var w=M?Q4(M,0,x).join(""):a.slice(0,x);if(m===e)return w+f;if(M&&(x+=w.length-x),Fa(m)){if(a.slice(x).search(m)){var O,F=w;for(m.global||(m=ca(m.source,y2(ki.exec(m))+"g")),m.lastIndex=0;O=m.exec(F);)var I=O.index;w=w.slice(0,I===e?x:I)}}else if(a.indexOf(l3(m),x)!=x){var X=w.lastIndexOf(m);X>-1&&(w=w.slice(0,X))}return w+f}function _C(a){return a=y2(a),a&&qd.test(a)?a.replace(Si,lz):a}var TC=S0(function(a,t,o){return a+(o?" ":"")+t.toUpperCase()}),Ua=eo("toUpperCase");function Zo(a,t,o){return a=y2(a),t=o?e:t,t===e?nz(a)?pz(a):Kv(a):a.match(t)||[]}var el=h2(function(a,t){try{return s3(a,e,t)}catch(o){return Oa(o)?o:new l2(o)}}),RC=g4(function(a,t){return C3(t,function(o){o=n4(o),z4(a,o,Ra(a[o],a))}),a});function DC(a){var t=a==null?0:a.length,o=r2();return a=t?U2(a,function(f){if(typeof f[1]!="function")throw new L3(i);return[o(f[0]),f[1]]}):[],h2(function(f){for(var m=-1;++m<t;){var v=a[m];if(s3(v[0],this,f))return s3(v[1],this,f)}})}function OC(a){return lH(y3(a,h))}function Wa(a){return function(){return a}}function FC(a,t){return a==null||a!==a?t:a}var BC=ro(),IC=ro(!0);function J1(a){return a}function Ga(a){return Es(typeof a=="function"?a:y3(a,h))}function UC(a){return _s(y3(a,h))}function WC(a,t){return Ts(a,y3(t,h))}var GC=h2(function(a,t){return function(o){return q8(o,a,t)}}),qC=h2(function(a,t){return function(o){return q8(a,o,t)}});function qa(a,t,o){var f=d1(t),m=De(t,f);o==null&&!(q2(t)&&(m.length||!f.length))&&(o=t,t=a,a=this,m=De(t,d1(t)));var v=!(q2(o)&&"chain"in o)||!!o.chain,M=M4(a);return C3(m,function(x){var w=t[x];a[x]=w,M&&(a.prototype[x]=function(){var O=this.__chain__;if(v||O){var F=a(this.__wrapped__),I=F.__actions__=K1(this.__actions__);return I.push({func:w,args:arguments,thisArg:a}),F.__chain__=O,F}return w.apply(a,W4([this.value()],arguments))})}),a}function jC(){return h1._===this&&(h1._=Hz),this}function ja(){}function XC(a){return a=p2(a),h2(function(t){return Rs(t,a)})}var YC=La(U2),KC=La(as),QC=La(Yr);function cl(a){return ka(a)?Kr(n4(a)):wH(a)}function $C(a){return function(t){return a==null?e:B6(a,t)}}var JC=no(),ZC=no(!0);function Xa(){return[]}function Ya(){return!1}function eL(){return{}}function cL(){return""}function rL(){return!0}function aL(a,t){if(a=p2(a),a<1||a>q)return[];var o=i2,f=S1(a,i2);t=r2(t),a-=i2;for(var m=Jr(f,t);++o<a;)t(o);return m}function nL(a){return f2(a)?U2(a,n4):f3(a)?[a]:K1(Mo(y2(a)))}function tL(a){var t=++vz;return y2(a)+t}var iL=We(function(a,t){return a+t},0),sL=xa("ceil"),oL=We(function(a,t){return a/t},1),lL=xa("floor");function fL(a){return a&&a.length?Re(a,J1,la):e}function uL(a,t){return a&&a.length?Re(a,r2(t,2),la):e}function pL(a){return is(a,J1)}function mL(a,t){return is(a,r2(t,2))}function hL(a){return a&&a.length?Re(a,J1,ma):e}function dL(a,t){return a&&a.length?Re(a,r2(t,2),ma):e}var vL=We(function(a,t){return a*t},1),zL=xa("round"),HL=We(function(a,t){return a-t},0);function gL(a){return a&&a.length?$r(a,J1):0}function VL(a,t){return a&&a.length?$r(a,r2(t,2)):0}return d.after=UV,d.ary=Eo,d.assign=bM,d.assignIn=jo,d.assignInWith=r7,d.assignWith=kM,d.at=AM,d.before=Po,d.bind=Ra,d.bindAll=RC,d.bindKey=_o,d.castArray=eM,d.chain=bo,d.chunk=lg,d.compact=fg,d.concat=ug,d.cond=DC,d.conforms=OC,d.constant=Wa,d.countBy=gV,d.create=EM,d.curry=To,d.curryRight=Ro,d.debounce=Do,d.defaults=PM,d.defaultsDeep=_M,d.defer=WV,d.delay=GV,d.difference=pg,d.differenceBy=mg,d.differenceWith=hg,d.drop=dg,d.dropRight=vg,d.dropRightWhile=zg,d.dropWhile=Hg,d.fill=gg,d.filter=MV,d.flatMap=xV,d.flatMapDeep=yV,d.flatMapDepth=wV,d.flatten=yo,d.flattenDeep=Vg,d.flattenDepth=Mg,d.flip=qV,d.flow=BC,d.flowRight=IC,d.fromPairs=Cg,d.functions=IM,d.functionsIn=UM,d.groupBy=SV,d.initial=xg,d.intersection=yg,d.intersectionBy=wg,d.intersectionWith=Sg,d.invert=GM,d.invertBy=qM,d.invokeMap=bV,d.iteratee=Ga,d.keyBy=kV,d.keys=d1,d.keysIn=$1,d.map=Qe,d.mapKeys=XM,d.mapValues=YM,d.matches=UC,d.matchesProperty=WC,d.memoize=Je,d.merge=KM,d.mergeWith=Xo,d.method=GC,d.methodOf=qC,d.mixin=qa,d.negate=Ze,d.nthArg=XC,d.omit=QM,d.omitBy=$M,d.once=jV,d.orderBy=AV,d.over=YC,d.overArgs=XV,d.overEvery=KC,d.overSome=QC,d Line truncated
`+En+e}var Pn=!1;function _n(e,c){if(!e||Pn)return"";Pn=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(c)if(c=function(){throw Error()},Object.defineProperty(c.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(c,[])}catch(h){var n=h}Reflect.construct(e,[],c)}else{try{c.call()}catch(h){n=h}e.call(c.prototype)}else{try{throw Error()}catch(h){n=h}e()}}catch(h){if(h&&n&&typeof h.stack=="string"){for(var i=h.stack.split(`
`),s=n.stack.split(`
`),l=i.length-1,u=s.length-1;1<=l&&0<=u&&i[l]!==s[u];)u--;for(;1<=l&&0<=u;l--,u--)if(i[l]!==s[u]){if(l!==1||u!==1)do if(l--,u--,0>u||i[l]!==s[u]){var p=`
`+i[l].replace(" at new "," at ");return e.displayName&&p.includes("<anonymous>")&&(p=p.replace("<anonymous>",e.displayName)),p}while(1<=l&&0<=u);break}}}finally{v9=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?E5(e):""}function Lw(e){switch(e.tag){case 5:return E5(e.type);case 16:return E5("Lazy");case 13:return E5("Suspense");case 19:return E5("SuspenseList");case 0:case 2:case 15:return e=d9(e.type,!1),e;case 11:return e=d9(e.type.render,!1),e;case 1:return e=d9(e.type,!0),e;default:return""}}function B9(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case n8:return"Fragment";case a8:return"Portal";case O9:return"Profiler";case At:return"StrictMode";case D9:return"Suspense";case F9:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case mm:return(e.displayName||"Context")+".Consumer";case pm:return(e._context.displayName||"Context")+".Provider";case Et:var c=e.render;return e=e.displayName,e||(e=c.displayName||c.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Pt:return c=e.displayName||null,c!==null?c:B9(e.type)||"Memo";case o6:c=e._payload,e=e._init;try{return B9(e(c))}catch{}}return null}function xw(e){var c=e.type;switch(e.tag){case 24:return"Cache";case 9:return(c.displayName||"Context")+".Consumer";case 10:return(c._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=c.render,e=e.displayName||e.name||"",c.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return c;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return B9(c);case 8:return c===At?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof c=="function")return c.displayName||c.name||null;if(typeof c=="string")return c}return null}function C6(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function vm(e){var c=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(c==="checkbox"||c==="radio")}function yw(e){var c=vm(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,c),n=""+e[c];if(!e.hasOwnProperty(c)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var i=r.get,s=r.set;return Object.defineProperty(e,c,{configurable:!0,get:function(){return i.call(this)},set:function(l){n=""+l,s.call(this,l)}}),Object.defineProperty(e,c,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(l){n=""+l},stopTracking:function(){e._valueTracker=null,delete e[c]}}}}function cc(e){e._valueTracker||(e._valueTracker=yw(e))}function dm(e){if(!e)return!1;var c=e._valueTracker;if(!c)return!0;var r=c.getValue(),n="";return e&&(n=vm(e)?e.checked?"true":"false":e.value),e=n,e!==r?(c.setValue(e),!0):!1}function bc(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function I9(e,c){var r=c.checked;return Y2({},c,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function sp(e,c){var r=c.defaultValue==null?"":c.defaultValue,n=c.checked!=null?c.checked:c.defaultChecked;r=C6(c.value!=null?c.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:c.type==="checkbox"||c.type==="radio"?c.checked!=null:c.value!=null}}function zm(e,c){c=c.checked,c!=null&&kt(e,"checked",c,!1)}function U9(e,c){zm(e,c);var r=C6(c.value),n=c.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}c.hasOwnProperty("value")?W9(e,c.type,r):c.hasOwnProperty("defaultValue")&&W9(e,c.type,C6(c.defaultValue)),c.checked==null&&c.defaultChecked!=null&&(e.defaultChecked=!!c.defaultChecked)}function op(e,c,r){if(c.hasOwnProperty("value")||c.hasOwnProperty("defaultValue")){var n=c.type;if(!(n!=="submit"&&n!=="reset"||c.value!==void 0&&c.value!==null))return;c=""+e._wrapperState.initialValue,r||c===e.value||(e.value=c),e.defaultValue=c}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function W9(e,c,r){(c!=="number"||bc(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var P5=Array.isArray;function v8(e,c,r,n){if(e=e.options,c){c={};for(var i=0;i<r.length;i++)c["$"+r[i]]=!0;for(r=0;r<e.length;r++)i=c.hasOwnProperty("$"+e[r].value),e[r].selected!==i&&(e[r].selected=i),i&&n&&(e[r].defaultSelected=!0)}else{for(r=""+C6(r),c=null,i=0;i<e.length;i++){if(e[i].value===r){e[i].selected=!0,n&&(e[i].defaultSelected=!0);return}c!==null||e[i].disabled||(c=e[i])}c!==null&&(c.selected=!0)}}function G9(e,c){if(c.dan Line truncated
`).replace(PS,"")}function mc(e,c,r){if(c=Ep(c),Ep(e)!==c&&r)throw Error(G(425))}function Oc(){}var at=null,nt=null;function tt(e,c){return e==="textarea"||e==="noscript"||typeof c.children=="string"||typeof c.children=="number"||typeof c.dangerouslySetInnerHTML=="object"&&c.dangerouslySetInnerHTML!==null&&c.dangerouslySetInnerHTML.__html!=null}var it=typeof setTimeout=="function"?setTimeout:void 0,_S=typeof clearTimeout=="function"?clearTimeout:void 0,Pp=typeof Promise=="function"?Promise:void 0,TS=typeof queueMicrotask=="function"?queueMicrotask:typeof Pp<"u"?function(e){return Pp.resolve(null).then(e).catch(RS)}:it;function RS(e){setTimeout(function(){throw e})}function w9(e,c){var r=c,n=0;do{var i=r.nextSibling;if(e.removeChild(r),i&&i.nodeType===8)if(r=i.data,r==="/$"){if(n===0){e.removeChild(i),Q5(c);return}n--}else r!=="$"&&r!=="$?"&&r!=="$!"||n++;r=i}while(r);Q5(c)}function z6(e){for(;e!=null;e=e.nextSibling){var c=e.nodeType;if(c===1||c===3)break;if(c===8){if(c=e.data,c==="$"||c==="$!"||c==="$?")break;if(c==="/$")return null}}return e}function _p(e){e=e.previousSibling;for(var c=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"){if(c===0)return e;c--}else r==="/$"&&c++}e=e.previousSibling}return null}var b8=Math.random().toString(36).slice(2),f4="__reactFiber$"+b8,ce="__reactProps$"+b8,R4="__reactContainer$"+b8,st="__reactEvents$"+b8,OS="__reactListeners$"+b8,DS="__reactHandles$"+b8;function r0(e){var c=e[f4];if(c)return c;for(var r=e.parentNode;r;){if(c=r[R4]||r[f4]){if(r=c.alternate,c.child!==null||r!==null&&r.child!==null)for(e=_p(e);e!==null;){if(r=e[f4])return r;e=_p(e)}return c}e=r,r=e.parentNode}return null}function fe(e){return e=e[f4]||e[R4],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function o8(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(G(33))}function ar(e){return e[ce]||null}var ot=[],l8=-1;function y6(e){return{current:e}}function B2(e){0>l8||(e.current=ot[l8],ot[l8]=null,l8--)}function _2(e,c){l8++,ot[l8]=e.current,e.current=c}var L6={},_1=y6(L6),c3=y6(!1),s0=L6;function C8(e,c){var r=e.type.contextTypes;if(!r)return L6;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===c)return n.__reactInternalMemoizedMaskedChildContext;var i={},s;for(s in r)i[s]=c[s];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=c,e.__reactInternalMemoizedMaskedChildContext=i),i}function r3(e){return e=e.childContextTypes,e!=null}function Dc(){B2(c3),B2(_1)}function Tp(e,c,r){if(_1.current!==L6)throw Error(G(168));_2(_1,c),_2(c3,r)}function th(e,c,r){var n=e.stateNode;if(c=c.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var i in n)if(!(i in c))throw Error(G(108,xw(e)||"Unknown",i));return Y2({},r,n)}function Fc(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||L6,s0=_1.current,_2(_1,e),_2(c3,c3.current),!0}function Rp(e,c,r){var n=e.stateNode;if(!n)throw Error(G(169));r?(e=th(e,c,s0),n.__reactInternalMemoizedMergedChildContext=e,B2(c3),B2(_1),_2(_1,e)):B2(c3),_2(c3,r)}var A4=null,nr=!1,S9=!1;function ih(e){A4===null?A4=[e]:A4.push(e)}function FS(e){nr=!0,ih(e)}function w6(){if(!S9&&A4!==null){S9=!0;var e=0,c=S2;try{var r=A4;for(S2=1;e<r.length;e++){var n=r[e];do n=n(!0);while(n!==null)}A4=null,nr=!1}catch(i){throw A4!==null&&(A4=A4.slice(e+1)),Am(Tt,w6),i}finally{S2=c,S9=!1}}return null}var f8=[],u8=0,Bc=null,Ic=0,A3=[],E3=0,o0=null,E4=1,P4="";function e0(e,c){f8[u8++]=Ic,f8[u8++]=Bc,Bc=e,Ic=c}function sh(e,c,r){A3[E3++]=E4,A3[E3++]=P4,A3[E3++]=o0,o0=e;var n=E4;e=P4;var i=32-$3(n)-1;n&=~(1<<i),r+=1;var s=32-$3(c)+i;if(30<s){var l=i-i%5;s=(n&(1<<l)-1).toString(32),n>>=l,i-=l,E4=1<<32-$3(c)+i|r<<i|n,P4=s+e}else E4=1<<s|r<<i|n,P4=e}function Gt(e){e.return!==null&&(e0(e,1),sh(e,1,0))}function qt(e){for(;e===Bc;)Bc=f8[--u8],f8[u8]=null,Ic=f8[--u8],f8[u8]=null;for(;e===o0;)o0=A3[--E3],A3[E3]=null,P4=A3[--E3],A3[E3]=null,E4=A3[--E3],A3[E3]=null}var v3=null,h3=null,W2=!1,Q3=null;function oh(e,c){var r=P3(5,null,null,0);r.elementType="DELETED",r.stateNode=c,r.return=e,c=e.deletions,c===null?(e.deletions=[r],e.flags|=16):c.push(r)}function Op(e,c){switch(e.tag){case 5:var r=e.type;return c=c.nodeType!==1||r.toLowerCase()!==c.nodeName.toLowerCase()?null:c,c!==null?(e.stateNode=c,v3=e,h3=z6(c.firstChild),!0):!1;case 6:return c=e.pendingProps===""||c.nodeType!==3?null:c,c!==null?(e.stateNode=c,v3=e,h3=null,!0):!1;case 13:return c=c.nodeType!==8?null:c,c!==null?(r=o0!==null?{id:E4,overflow:P4}:null,e.memoizedState={dehydrated:c,treeContext:r,retryLane:1073741824},r=P3(18,null,null,0),r.stateNode=c,r.return=e,e.child=r,v3=e,h3=null,!0):!1;default:return!1}}function lt(e){return(e.mode&1)!==0&&(e.flags&128)===0}function ft(e){if(W2){var c=h3;if(c){var r=c;if(!Op(e,c)){if(lt(e))throw Error(G(418));c=z6(r.nextSibling);var n=v3;c&&Op(e,c)?oh(n,r):(e.flags=e.flags&-4097|2,W2=!1,v3=e)}}else{if(lt(e))throw Error(G(418));e.flags=e.flags&-4097|2,W2=!1,v3=e}}}function Dp(e){for(e=e Line truncated
`+i[l].replace(" at new "," at ");return e.displayName&&p.includes("<anonymous>")&&(p=p.replace("<anonymous>",e.displayName)),p}while(1<=l&&0<=u);break}}}finally{Pn=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?g5(e):""}function Ax(e){switch(e.tag){case 5:return g5(e.type);case 16:return g5("Lazy");case 13:return g5("Suspense");case 19:return g5("SuspenseList");case 0:case 2:case 15:return e=_n(e.type,!1),e;case 11:return e=_n(e.type.render,!1),e;case 1:return e=_n(e.type,!0),e;default:return""}}function nt(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case q0:return"Fragment";case G0:return"Portal";case ct:return"Profiler";case Kt:return"StrictMode";case rt:return"Suspense";case at:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Pu:return(e.displayName||"Context")+".Consumer";case Eu:return(e._context.displayName||"Context")+".Provider";case Qt:var c=e.render;return e=e.displayName,e||(e=c.displayName||c.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case $t:return c=e.displayName||null,c!==null?c:nt(e.type)||"Memo";case a6:c=e._payload,e=e._init;try{return nt(e(c))}catch{}}return null}function Ex(e){var c=e.type;switch(e.tag){case 24:return"Cache";case 9:return(c.displayName||"Context")+".Consumer";case 10:return(c._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=c.render,e=e.displayName||e.name||"",c.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return c;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return nt(c);case 8:return c===Kt?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof c=="function")return c.displayName||c.name||null;if(typeof c=="string")return c}return null}function z6(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Tu(e){var c=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(c==="checkbox"||c==="radio")}function Px(e){var c=Tu(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,c),n=""+e[c];if(!e.hasOwnProperty(c)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var i=r.get,s=r.set;return Object.defineProperty(e,c,{configurable:!0,get:function(){return i.call(this)},set:function(l){n=""+l,s.call(this,l)}}),Object.defineProperty(e,c,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(l){n=""+l},stopTracking:function(){e._valueTracker=null,delete e[c]}}}}function N7(e){e._valueTracker||(e._valueTracker=Px(e))}function Ru(e){if(!e)return!1;var c=e._valueTracker;if(!c)return!0;var r=c.getValue(),n="";return e&&(n=Tu(e)?e.checked?"true":"false":e.value),e=n,e!==r?(c.setValue(e),!0):!1}function rc(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function tt(e,c){var r=c.checked;return Y2({},c,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function Sf(e,c){var r=c.defaultValue==null?"":c.defaultValue,n=c.checked!=null?c.checked:c.defaultChecked;r=z6(c.value!=null?c.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:c.type==="checkbox"||c.type==="radio"?c.checked!=null:c.value!=null}}function Du(e,c){c=c.checked,c!=null&&Yt(e,"checked",c,!1)}function it(e,c){Du(e,c);var r=z6(c.value),n=c.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}c.hasOwnProperty("value")?st(e,c.type,r):c.hasOwnProperty("defaultValue")&&st(e,c.type,z6(c.defaultValue)),c.checked==null&&c.defaultChecked!=null&&(e.defaultChecked=!!c.defaultChecked)}function Nf(e,c,r){if(c.hasOwnProperty("value")||c.hasOwnProperty("defaultValue")){var n=c.type;if(!(n!=="submit"&&n!=="reset"||c.value!==void 0&&c.value!==null))return;c=""+e._wrapperState.initialValue,r||c===e.value||(e.value=c),e.defaultValue=c}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function st(e,c,r){(c!=="number"||rc(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var V5=Array.isArray;function r8(e,c,r,n){if(e=e.options,c){c={};for(var i=0;i<r.length;i++)c["$"+r[i]]=!0;for(r=0;r<e.length;r++)i=c.hasOwnProperty("$"+e[r].value),e[r].selected!==i&&(e[r].selected=i),i&&n&&(e[r].defaultSelected=!0)}else{for(r=""+z6(r),c=null,i=0;i<e.length;i++){if(e[i].value===r){e[i].selected=!0,n&&(e[i].defaultSelected=!0);return}c!==null||e[i].disabled||(c=e[i])}c!==null&&(c.selected=!0)}}function ot(e,c){if(c.dan Line truncated
`).replace(Iy,"")}function B7(e,c,r){if(c=Jf(c),Jf(e)!==c&&r)throw Error(G(425))}function fc(){}var Mt=null,Ct=null;function Lt(e,c){return e==="textarea"||e==="noscript"||typeof c.children=="string"||typeof c.children=="number"||typeof c.dangerouslySetInnerHTML=="object"&&c.dangerouslySetInnerHTML!==null&&c.dangerouslySetInnerHTML.__html!=null}var xt=typeof setTimeout=="function"?setTimeout:void 0,Uy=typeof clearTimeout=="function"?clearTimeout:void 0,Zf=typeof Promise=="function"?Promise:void 0,Wy=typeof queueMicrotask=="function"?queueMicrotask:typeof Zf<"u"?function(e){return Zf.resolve(null).then(e).catch(Gy)}:xt;function Gy(e){setTimeout(function(){throw e})}function Gn(e,c){var r=c,n=0;do{var i=r.nextSibling;if(e.removeChild(r),i&&i.nodeType===8)if(r=i.data,r==="/$"){if(n===0){e.removeChild(i),D5(c);return}n--}else r!=="$"&&r!=="$?"&&r!=="$!"||n++;r=i}while(r);D5(c)}function p6(e){for(;e!=null;e=e.nextSibling){var c=e.nodeType;if(c===1||c===3)break;if(c===8){if(c=e.data,c==="$"||c==="$!"||c==="$?")break;if(c==="/$")return null}}return e}function eu(e){e=e.previousSibling;for(var c=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"){if(c===0)return e;c--}else r==="/$"&&c++}e=e.previousSibling}return null}var v8=Math.random().toString(36).slice(2),l4="__reactFiber$"+v8,U5="__reactProps$"+v8,P4="__reactContainer$"+v8,yt="__reactEvents$"+v8,qy="__reactListeners$"+v8,jy="__reactHandles$"+v8;function $6(e){var c=e[l4];if(c)return c;for(var r=e.parentNode;r;){if(c=r[P4]||r[l4]){if(r=c.alternate,c.child!==null||r!==null&&r.child!==null)for(e=eu(e);e!==null;){if(r=e[l4])return r;e=eu(e)}return c}e=r,r=e.parentNode}return null}function $5(e){return e=e[l4]||e[P4],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function K0(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(G(33))}function kc(e){return e[U5]||null}var wt=[],Q0=-1;function V6(e){return{current:e}}function D2(e){0>Q0||(e.current=wt[Q0],wt[Q0]=null,Q0--)}function _2(e,c){Q0++,wt[Q0]=e.current,e.current=c}var H6={},_1=V6(H6),r3=V6(!1),r0=H6;function l8(e,c){var r=e.type.contextTypes;if(!r)return H6;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===c)return n.__reactInternalMemoizedMaskedChildContext;var i={},s;for(s in r)i[s]=c[s];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=c,e.__reactInternalMemoizedMaskedChildContext=i),i}function a3(e){return e=e.childContextTypes,e!=null}function uc(){D2(r3),D2(_1)}function cu(e,c,r){if(_1.current!==H6)throw Error(G(168));_2(_1,c),_2(r3,r)}function yp(e,c,r){var n=e.stateNode;if(c=c.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var i in n)if(!(i in c))throw Error(G(108,Ex(e)||"Unknown",i));return Y2({},r,n)}function pc(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||H6,r0=_1.current,_2(_1,e),_2(r3,r3.current),!0}function ru(e,c,r){var n=e.stateNode;if(!n)throw Error(G(169));r?(e=yp(e,c,r0),n.__reactInternalMemoizedMergedChildContext=e,D2(r3),D2(_1),_2(_1,e)):D2(r3),_2(r3,r)}var N4=null,Ac=!1,qn=!1;function wp(e){N4===null?N4=[e]:N4.push(e)}function Xy(e){Ac=!0,wp(e)}function M6(){if(!qn&&N4!==null){qn=!0;var e=0,c=S2;try{var r=N4;for(S2=1;e<r.length;e++){var n=r[e];do n=n(!0);while(n!==null)}N4=null,Ac=!1}catch(i){throw N4!==null&&(N4=N4.slice(e+1)),$u(Zt,M6),i}finally{S2=c,qn=!1}}return null}var $0=[],J0=0,mc=null,hc=0,E3=[],P3=0,a0=null,b4=1,k4="";function K6(e,c){$0[J0++]=hc,$0[J0++]=mc,mc=e,hc=c}function Sp(e,c,r){E3[P3++]=b4,E3[P3++]=k4,E3[P3++]=a0,a0=e;var n=b4;e=k4;var i=32-Q3(n)-1;n&=~(1<<i),r+=1;var s=32-Q3(c)+i;if(30<s){var l=i-i%5;s=(n&(1<<l)-1).toString(32),n>>=l,i-=l,b4=1<<32-Q3(c)+i|r<<i|n,k4=s+e}else b4=1<<s|r<<i|n,k4=e}function o9(e){e.return!==null&&(K6(e,1),Sp(e,1,0))}function l9(e){for(;e===mc;)mc=$0[--J0],$0[J0]=null,hc=$0[--J0],$0[J0]=null;for(;e===a0;)a0=E3[--P3],E3[P3]=null,k4=E3[--P3],E3[P3]=null,b4=E3[--P3],E3[P3]=null}var d3=null,h3=null,W2=!1,K3=null;function Np(e,c){var r=_3(5,null,null,0);r.elementType="DELETED",r.stateNode=c,r.return=e,c=e.deletions,c===null?(e.deletions=[r],e.flags|=16):c.push(r)}function au(e,c){switch(e.tag){case 5:var r=e.type;return c=c.nodeType!==1||r.toLowerCase()!==c.nodeName.toLowerCase()?null:c,c!==null?(e.stateNode=c,d3=e,h3=p6(c.firstChild),!0):!1;case 6:return c=e.pendingProps===""||c.nodeType!==3?null:c,c!==null?(e.stateNode=c,d3=e,h3=null,!0):!1;case 13:return c=c.nodeType!==8?null:c,c!==null?(r=a0!==null?{id:b4,overflow:k4}:null,e.memoizedState={dehydrated:c,treeContext:r,retryLane:1073741824},r=_3(18,null,null,0),r.stateNode=c,r.return=e,e.child=r,d3=e,h3=null,!0):!1;default:return!1}}function St(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Nt(e){if(W2){var c=h3;if(c){var r=c;if(!au(e,c)){if(St(e))throw Error(G(418));c=p6(r.nextSibling);var n=d3;c&&au(e,c)?Np(n,r):(e.flags=e.flags&-4097|2,W2=!1,d3=e)}}else{if(St(e))throw Error(G(418));e.flags=e.flags&-4097|2,W2=!1,d3=e}}}function nu(e){for(e=e Line truncated
Error generating stack: `+s.message+`
`+s.stack}return{value:e,source:c,stack:i,digest:null}}function E9(e,c,r){return{value:e,source:null,stack:r??null,digest:c??null}}function ht(e,c){try{console.error(c.value)}catch(r){setTimeout(function(){throw r})}}var YS=typeof WeakMap=="function"?WeakMap:Map;function Rh(e,c,r){r=_4(-1,r),r.tag=3,r.payload={element:null};var n=c.value;return r.callback=function(){Kc||(Kc=!0,xt=n),ht(e,c)},r}function Oh(e,c,r){r=_4(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var i=c.value;r.payload=function(){return n(i)},r.callback=function(){ht(e,c)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(r.callback=function(){ht(e,c),typeof n!="function"&&(g6===null?g6=new Set([this]):g6.add(this));var l=c.stack;this.componentDidCatch(c.value,{componentStack:l!==null?l:""})}),r}function jp(e,c,r){var n=e.pingCache;if(n===null){n=e.pingCache=new YS;var i=new Set;n.set(c,i)}else i=n.get(c),i===void 0&&(i=new Set,n.set(c,i));i.has(r)||(i.add(r),e=oN.bind(null,e,c,r),c.then(e,e))}function Xp(e){do{var c;if((c=e.tag===13)&&(c=e.memoizedState,c=c!==null?c.dehydrated!==null:!0),c)return e;e=e.return}while(e!==null);return null}function Yp(e,c,r,n,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===c?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(c=_4(-1,1),c.tag=2,H6(r,c,1))),r.lanes|=1),e)}var KS=F4.ReactCurrentOwner,e3=!1;function G1(e,c,r,n){c.child=e===null?vh(c,null,r,n):x8(c,e.child,r,n)}function Kp(e,c,r,n,i){r=r.render;var s=c.ref;return g8(c,i),n=ri(e,c,r,n,s,i),r=ai(),e!==null&&!e3?(c.updateQueue=e.updateQueue,c.flags&=-2053,e.lanes&=~i,D4(e,c,i)):(W2&&r&&Gt(c),c.flags|=1,G1(e,c,n,i),c.child)}function Qp(e,c,r,n,i){if(e===null){var s=r.type;return typeof s=="function"&&!mi(s)&&s.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(c.tag=15,c.type=s,Dh(e,c,s,n,i)):(e=Nc(r.type,null,n,c,c.mode,i),e.ref=c.ref,e.return=c,c.child=e)}if(s=e.child,!(e.lanes&i)){var l=s.memoizedProps;if(r=r.compare,r=r!==null?r:J5,r(l,n)&&e.ref===c.ref)return D4(e,c,i)}return c.flags|=1,e=M6(s,n),e.ref=c.ref,e.return=c,c.child=e}function Dh(e,c,r,n,i){if(e!==null){var s=e.memoizedProps;if(J5(s,n)&&e.ref===c.ref)if(e3=!1,c.pendingProps=n=s,(e.lanes&i)!==0)e.flags&131072&&(e3=!0);else return c.lanes=e.lanes,D4(e,c,i)}return vt(e,c,r,n,i)}function Fh(e,c,r){var n=c.pendingProps,i=n.children,s=e!==null?e.memoizedState:null;if(n.mode==="hidden")if(!(c.mode&1))c.memoizedState={baseLanes:0,cachePool:null,transitions:null},_2(h8,m3),m3|=r;else{if(!(r&1073741824))return e=s!==null?s.baseLanes|r:r,c.lanes=c.childLanes=1073741824,c.memoizedState={baseLanes:e,cachePool:null,transitions:null},c.updateQueue=null,_2(h8,m3),m3|=e,null;c.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=s!==null?s.baseLanes:r,_2(h8,m3),m3|=n}else s!==null?(n=s.baseLanes|r,c.memoizedState=null):n=r,_2(h8,m3),m3|=n;return G1(e,c,i,r),c.child}function Bh(e,c){var r=c.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(c.flags|=512,c.flags|=2097152)}function vt(e,c,r,n,i){var s=r3(r)?s0:_1.current;return s=C8(c,s),g8(c,i),r=ri(e,c,r,n,s,i),n=ai(),e!==null&&!e3?(c.updateQueue=e.updateQueue,c.flags&=-2053,e.lanes&=~i,D4(e,c,i)):(W2&&n&&Gt(c),c.flags|=1,G1(e,c,r,i),c.child)}function $p(e,c,r,n,i){if(r3(r)){var s=!0;Fc(c)}else s=!1;if(g8(c,i),c.stateNode===null)yc(e,c),mh(c,r,n),mt(c,r,n,i),n=!0;else if(e===null){var l=c.stateNode,u=c.memoizedProps;l.props=u;var p=l.context,h=r.contextType;typeof h=="object"&&h!==null?h=T3(h):(h=r3(r)?s0:_1.current,h=C8(c,h));var z=r.getDerivedStateFromProps,M=typeof z=="function"||typeof l.getSnapshotBeforeUpdate=="function";M||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(u!==n||p!==h)&&Up(c,l,n,h),l6=!1;var L=c.memoizedState;l.state=L,Gc(c,n,l,i),p=c.memoizedState,u!==n||L!==p||c3.current||l6?(typeof z=="function"&&(pt(c,r,z,n),p=c.memoizedState),(u=l6||Ip(c,r,u,n,L,p,h))?(M||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount()),typeof l.componentDidMount=="function"&&(c.flags|=4194308)):(typeof l.componentDidMount=="function"&&(c.flags|=4194308),c.memoizedProps=n,c.memoizedState=p),l.props=n,l.state=p,l.context=h,n=u):(typeof l.componentDidMount=="function"&&(c.flags|=4194308),n=!1)}else{l=c.stateNode,uh(e,c),u=c.memoizedProps,h=c.type===c.elementType?u:Y3(c.type,u),l.props=h,M=c.pendingProps,L=l.context,p=r.contextType,typeof p=="object"&&p!==null?p=T3(p):(p=r3(r)?s0:_1.current,p=C8(c,p));var S=r.getDerivedStateFromProps;(z=typeof S=="function"||typeof l.getSnapshotBeforeUpdate=="function")||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(u!==M||L!==p)&&Up(c,l,n,p),l6=!1,L=c.memoizedState,l.state=L,Gc(c,n,l,i);var P=c.memoizedS Line truncated
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function KL(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Dl=function(){},Ln={},ff={},uf=null,pf={mark:Dl,measure:Dl};try{typeof window<"u"&&(Ln=window),typeof document<"u"&&(ff=document),typeof MutationObserver<"u"&&(uf=MutationObserver),typeof performance<"u"&&(pf=performance)}catch{}var QL=Ln.navigator||{},Fl=QL.userAgent,Bl=Fl===void 0?"":Fl,Z4=Ln,D2=ff,Il=uf,p7=pf,vb=!!Z4.document,w4=!!D2.documentElement&&!!D2.head&&typeof D2.addEventListener=="function"&&typeof D2.createElement=="function",mf=~Bl.indexOf("MSIE")||~Bl.indexOf("Trident/"),m7,h7,v7,d7,z7,L4="___FONT_AWESOME___",pn=16,hf="fa",vf="svg-inline--fa",q6="data-fa-i2svg",mn="data-fa-pseudo-element",$L="data-fa-pseudo-element-pending",xn="data-prefix",yn="data-icon",Ul="fontawesome-i2svg",JL="async",ZL=["HTML","HEAD","STYLE","SCRIPT"],df=function(){try{return!0}catch{return!1}}(),O2="classic",J2="sharp",wn=[O2,J2];function p5(e){return new Proxy(e,{get:function(r,n){return n in r?r[n]:r[O2]}})}var i5=p5((m7={},u1(m7,O2,{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fad:"duotone","fa-duotone":"duotone",fab:"brands","fa-brands":"brands",fak:"kit",fakd:"kit","fa-kit":"kit","fa-kit-duotone":"kit"}),u1(m7,J2,{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"}),m7)),s5=p5((h7={},u1(h7,O2,{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab",kit:"fak"}),u1(h7,J2,{solid:"fass",regular:"fasr",light:"fasl",thin:"fast"}),h7)),o5=p5((v7={},u1(v7,O2,{fab:"fa-brands",fad:"fa-duotone",fak:"fa-kit",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"}),u1(v7,J2,{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"}),v7)),ex=p5((d7={},u1(d7,O2,{"fa-brands":"fab","fa-duotone":"fad","fa-kit":"fak","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"}),u1(d7,J2,{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"}),d7)),cx=/fa(s|r|l|t|d|b|k|ss|sr|sl|st)?[\-\ ]/,zf="fa-layers-text",rx=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp|Kit)?.*/i,ax=p5((z7={},u1(z7,O2,{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"}),u1(z7,J2,{900:"fass",400:"fasr",300:"fasl",100:"fast"}),z7)),Hf=[1,2,3,4,5,6,7,8,9,10],nx=Hf.concat([11,12,13,14,15,16,17,18,19,20]),tx=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],W6={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},l5=new Set;Object.keys(s5[O2]).map(l5.add.bind(l5));Object.keys(s5[J2]).map(l5.add.bind(l5));var ix=[].concat(wn,u5(l5),["2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",W6.GROUP,W6.SWAP_OPACITY,W6.PRIMARY,W6.SECONDARY]).concat(Hf.map(function(e){return"".concat(e,"x")})).concat(nx.map(function(e){return"w-".concat(e)})),n5=Z4.FontAwesomeConfig||{};function sx(e){var c=D2.querySelector("script["+e+"]");if(c)return c.getAttribute(e)}function ox(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}D2&&typeof D2.querySelector=="function"&&(Wl=[["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-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]],Wl.forEach(function(e){var c=Cn(e,2),r=c[0],n=c[1],i=ox(sx(r));i!=null&&(n5[n]=i)}));var Wl,gf={styleDefault:"solid",familyDefault:"classic",cssPrefix:hf,replacementClass:vf,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};n5.familyPrefix&&(n5.cssPrefix=n5.familyPrefix);var I0=$($({},gf),n5);I0.autoReplaceSvg||(I0.observeMutations=!1);var c2={};Object.keys(gf).forEach(function(e){Object.defineProperty(c2,e,{enumerable:!0,set:function(r){I0[e]=r,t5.forEach(function(n){return n(c2)})},get:function(){return I0[e]}})});Object.defineProperty(c2,"familyPrefix",{enumerable:!0,set:function(c){I0.cssPrefix=c,t5.forEach(function(r){return r(c2)})},get:function(){return I0.cssPrefix}});Z4.FontAwesomeConfig=c2;var t5=[];function lx(e){return t5.push(e),function(){t5.splice(t5.indexOf(e),1)}}var J4=pn,t4={size:1 Line truncated
`+s.stack}return{value:e,source:c,stack:i,digest:null}}function Qn(e,c,r){return{value:e,source:null,stack:r??null,digest:c??null}}function Et(e,c){try{console.error(c.value)}catch(r){setTimeout(function(){throw r})}}var rw=typeof WeakMap=="function"?WeakMap:Map;function rm(e,c,r){r=A4(-1,r),r.tag=3,r.payload={element:null};var n=c.value;return r.callback=function(){Cc||(Cc=!0,Ut=n),Et(e,c)},r}function am(e,c,r){r=A4(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var i=c.value;r.payload=function(){return n(i)},r.callback=function(){Et(e,c)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(r.callback=function(){Et(e,c),typeof n!="function"&&(h6===null?h6=new Set([this]):h6.add(this));var l=c.stack;this.componentDidCatch(c.value,{componentStack:l!==null?l:""})}),r}function pu(e,c,r){var n=e.pingCache;if(n===null){n=e.pingCache=new rw;var i=new Set;n.set(c,i)}else i=n.get(c),i===void 0&&(i=new Set,n.set(c,i));i.has(r)||(i.add(r),e=vw.bind(null,e,c,r),c.then(e,e))}function mu(e){do{var c;if((c=e.tag===13)&&(c=e.memoizedState,c=c!==null?c.dehydrated!==null:!0),c)return e;e=e.return}while(e!==null);return null}function hu(e,c,r,n,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===c?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(c=A4(-1,1),c.tag=2,m6(r,c,1))),r.lanes|=1),e)}var aw=R4.ReactCurrentOwner,c3=!1;function G1(e,c,r,n){c.child=e===null?Tp(c,null,r,n):u8(c,e.child,r,n)}function du(e,c,r,n,i){r=r.render;var s=c.ref;return i8(c,i),n=V9(e,c,r,n,s,i),r=M9(),e!==null&&!c3?(c.updateQueue=e.updateQueue,c.flags&=-2053,e.lanes&=~i,T4(e,c,i)):(W2&&r&&o9(c),c.flags|=1,G1(e,c,n,i),c.child)}function vu(e,c,r,n,i){if(e===null){var s=r.type;return typeof s=="function"&&!A9(s)&&s.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(c.tag=15,c.type=s,nm(e,c,s,n,i)):(e=cc(r.type,null,n,c,c.mode,i),e.ref=c.ref,e.return=c,c.child=e)}if(s=e.child,!(e.lanes&i)){var l=s.memoizedProps;if(r=r.compare,r=r!==null?r:F5,r(l,n)&&e.ref===c.ref)return T4(e,c,i)}return c.flags|=1,e=v6(s,n),e.ref=c.ref,e.return=c,c.child=e}function nm(e,c,r,n,i){if(e!==null){var s=e.memoizedProps;if(F5(s,n)&&e.ref===c.ref)if(c3=!1,c.pendingProps=n=s,(e.lanes&i)!==0)e.flags&131072&&(c3=!0);else return c.lanes=e.lanes,T4(e,c,i)}return Pt(e,c,r,n,i)}function tm(e,c,r){var n=c.pendingProps,i=n.children,s=e!==null?e.memoizedState:null;if(n.mode==="hidden")if(!(c.mode&1))c.memoizedState={baseLanes:0,cachePool:null,transitions:null},_2(c8,m3),m3|=r;else{if(!(r&1073741824))return e=s!==null?s.baseLanes|r:r,c.lanes=c.childLanes=1073741824,c.memoizedState={baseLanes:e,cachePool:null,transitions:null},c.updateQueue=null,_2(c8,m3),m3|=e,null;c.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=s!==null?s.baseLanes:r,_2(c8,m3),m3|=n}else s!==null?(n=s.baseLanes|r,c.memoizedState=null):n=r,_2(c8,m3),m3|=n;return G1(e,c,i,r),c.child}function im(e,c){var r=c.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(c.flags|=512,c.flags|=2097152)}function Pt(e,c,r,n,i){var s=a3(r)?r0:_1.current;return s=l8(c,s),i8(c,i),r=V9(e,c,r,n,s,i),n=M9(),e!==null&&!c3?(c.updateQueue=e.updateQueue,c.flags&=-2053,e.lanes&=~i,T4(e,c,i)):(W2&&n&&o9(c),c.flags|=1,G1(e,c,r,i),c.child)}function zu(e,c,r,n,i){if(a3(r)){var s=!0;pc(c)}else s=!1;if(i8(c,i),c.stateNode===null)J7(e,c),Pp(c,r,n),At(c,r,n,i),n=!0;else if(e===null){var l=c.stateNode,u=c.memoizedProps;l.props=u;var p=l.context,h=r.contextType;typeof h=="object"&&h!==null?h=R3(h):(h=a3(r)?r0:_1.current,h=l8(c,h));var z=r.getDerivedStateFromProps,V=typeof z=="function"||typeof l.getSnapshotBeforeUpdate=="function";V||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(u!==n||p!==h)&&ou(c,l,n,h),n6=!1;var L=c.memoizedState;l.state=L,zc(c,n,l,i),p=c.memoizedState,u!==n||L!==p||r3.current||n6?(typeof z=="function"&&(kt(c,r,z,n),p=c.memoizedState),(u=n6||su(c,r,u,n,L,p,h))?(V||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount()),typeof l.componentDidMount=="function"&&(c.flags|=4194308)):(typeof l.componentDidMount=="function"&&(c.flags|=4194308),c.memoizedProps=n,c.memoizedState=p),l.props=n,l.state=p,l.context=h,n=u):(typeof l.componentDidMount=="function"&&(c.flags|=4194308),n=!1)}else{l=c.stateNode,Ap(e,c),u=c.memoizedProps,h=c.type===c.elementType?u:X3(c.type,u),l.props=h,V=c.pendingProps,L=l.context,p=r.contextType,typeof p=="object"&&p!==null?p=R3(p):(p=a3(r)?r0:_1.current,p=l8(c,p));var S=r.getDerivedStateFromProps;(z=typeof S=="function"||typeof l.getSnapshotBeforeUpdate=="function")||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(u!==V||L!==p)&&ou(c,l,n,p),n6=!1,L=c.memoizedState,l.state=L,zc(c,n,l,i);var P=c.memoizedS Line truncated
`,gn=typeof window<"u"&&"HTMLElement"in window,GL=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==""?process.env.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&process.env.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&process.env.SC_DISABLE_SPEEDY!==void 0&&process.env.SC_DISABLE_SPEEDY!==""&&process.env.SC_DISABLE_SPEEDY!=="false"&&process.env.SC_DISABLE_SPEEDY);var M7=Object.freeze([]),B0=Object.freeze({});function qL(e,c,r){return r===void 0&&(r=B0),e.theme!==r.theme&&e.theme||c||r.theme}var Ql=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),jL=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,XL=/(^-|-$)/g;function Fl(e){return e.replace(jL,"-").replace(XL,"")}var YL=/(a)(d)/gi,h7=52,Bl=function(e){return String.fromCharCode(e+(e>25?39:97))};function pn(e){var c,r="";for(c=Math.abs(e);c>h7;c=c/h7|0)r=Bl(c%h7)+r;return(Bl(c%h7)+r).replace(YL,"$1-$2")}var ln,$l=5381,O0=function(e,c){for(var r=c.length;r;)e=33*e^c.charCodeAt(--r);return e},Jl=function(e){return O0($l,e)};function KL(e){return pn(Jl(e)>>>0)}function QL(e){return e.displayName||e.name||"Component"}function fn(e){return typeof e=="string"&&!0}var Zl=typeof Symbol=="function"&&Symbol.for,ef=Zl?Symbol.for("react.memo"):60115,$L=Zl?Symbol.for("react.forward_ref"):60112,JL={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},ZL={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},cf={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},ex=((ln={})[$L]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},ln[ef]=cf,ln);function Il(e){return("type"in(c=e)&&c.type.$$typeof)===ef?cf:"$$typeof"in e?ex[e.$$typeof]:JL;var c}var cx=Object.defineProperty,rx=Object.getOwnPropertyNames,Ul=Object.getOwnPropertySymbols,ax=Object.getOwnPropertyDescriptor,nx=Object.getPrototypeOf,Wl=Object.prototype;function rf(e,c,r){if(typeof c!="string"){if(Wl){var n=nx(c);n&&n!==Wl&&rf(e,n,r)}var i=rx(c);Ul&&(i=i.concat(Ul(c)));for(var s=Il(e),l=Il(c),u=0;u<i.length;++u){var p=i[u];if(!(p in ZL||r&&r[p]||l&&p in l||s&&p in s)){var h=ax(c,p);try{cx(e,p,h)}catch{}}}}return e}function I0(e){return typeof e=="function"}function Vn(e){return typeof e=="object"&&"styledComponentId"in e}function X6(e,c){return e&&c?"".concat(e," ").concat(c):e||c||""}function g7(e,c){if(e.length===0)return"";for(var r=e[0],n=1;n<e.length;n++)r+=c?c+e[n]:e[n];return r}function i5(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function mn(e,c,r){if(r===void 0&&(r=!1),!r&&!i5(e)&&!Array.isArray(e))return c;if(Array.isArray(c))for(var n=0;n<c.length;n++)e[n]=mn(e[n],c[n]);else if(i5(c))for(var n in c)e[n]=mn(e[n],c[n]);return e}function Mn(e,c){Object.defineProperty(e,"toString",{value:c})}function y4(e){for(var c=[],r=1;r<arguments.length;r++)c[r-1]=arguments[r];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(c.length>0?" Args: ".concat(c.join(", ")):""))}var tx=function(){function e(c){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=c}return e.prototype.indexOfGroup=function(c){for(var r=0,n=0;n<c;n++)r+=this.groupSizes[n];return r},e.prototype.insertRules=function(c,r){if(c>=this.groupSizes.length){for(var n=this.groupSizes,i=n.length,s=i;c>=s;)if((s<<=1)<0)throw y4(16,"".concat(c));this.groupSizes=new Uint32Array(s),this.groupSizes.set(n),this.length=s;for(var l=i;l<s;l++)this.groupSizes[l]=0}for(var u=this.indexOfGroup(c+1),p=(l=0,r.length);l<p;l++)this.tag.insertRule(u,r[l])&&(this.groupSizes[c]++,u++)},e.prototype.clearGroup=function(c){if(c<this.length){var r=this.groupSizes[c],n=thLine truncated
min-width: 250px;
min-height: 50px;
max-width: fit-content;
max-height: fit-content;
margin: 15px auto 15px auto;
padding: 10px;
pointer-events: all;
touch-action: auto;
background-color: rgba(255, 255, 255, 0.75);
color: rgb(10, 10, 10);
border-radius: 12px;
border: 2px solid black;
`,O9=s2.p`
white-space: pre-warp;
`,F9=s2.div`
display: flex;
`,Nw=s2.input`
margin: 2px;
padding: 5px;
outline: none !important;
background-color: rgba(255, 255, 255, 0.75);
color: rgb(10, 10, 10);
border-radius: 12px;
border: 2px solid black;
`,z8=s2.button`
background-color: rgba(255, 255, 255, 0.75);
color: rgb(10, 10, 10);
border-radius: 12px;
border: 2px solid black;
width: 100%;
border-radius: none;
margin: 2px;
padding: 2px;
outline: none !important;
&:hover {
background-color: rgba(158, 158, 158, 0.75);
}
transition: background-color 250ms;
`,x1=class e{static _ref;static active;static root;static alert(c,r){return new Promise(n=>{e.clear();let i=()=>{n(),this.active=void 0,this.clear()};this.active=i,e.renderContent(G2.default.createElement("div",null,G2.default.createElement("h5",null,r||`${location.host} says`),G2.default.createElement(O9,null,c),G2.default.createElement(z8,{onClick:()=>i()},"OK")))})}static async confirm(c,r){return new Promise(n=>{e.clear();let i=s=>{n(s),this.active=void 0,this.clear()};this.active=()=>i(!1),e.renderContent(G2.default.createElement("div",null,G2.default.createElement("h5",null,r||`${location.host} says`),G2.default.createElement(O9,null,c),G2.default.createElement(F9,null,G2.default.createElement(z8,{onClick:()=>i(!0)},"OK"),G2.default.createElement(z8,{onClick:()=>i(!1)},"Cancel"))))})}static async prompt(c,r,n){return new Promise(i=>{e.clear();let s=u=>{i(u),this.active=void 0,this.clear()};this.active=()=>s("");let l=(0,G2.createRef)();e.renderContent(G2.default.createElement("div",null,G2.default.createElement("h5",null,n||`${location.host} says`),G2.default.createElement(O9,null,c),G2.default.createElement(Nw,{ref:l,type:"text"}),G2.default.createElement(F9,null,G2.default.createElement(z8,{onClick:()=>s(l.current&&l.current.value)},"OK"),G2.default.createElement(z8,{onClick:()=>s(null)},"Cancel")))),l.current&&(l.current.focus(),l.current.value=r||"",l.current.addEventListener("keyup",u=>{u.key.toLowerCase()==="enter"&&l.current&&s(l.current.value)}))})}static custom(c,r){return new Promise(n=>{e.clear();let i=()=>{this.active=void 0,n(),this.clear()};this.active=()=>i(),e.renderContent(G2.default.createElement("div",null,c,G2.default.createElement(F9,null,r?r.map((s,l)=>G2.default.createElement(z8,{key:l,onClick:async u=>{let p=s.click(u),h;p instanceof Promise?h=await p:h=p,h||(this.active=void 0,this.clear(),n())}},s.content)):null)))})}static close(){this.clear()}static clear(){this.root&&(this.root.unmount(),this.root=void 0);let c=e.ref.style;c.pointerEvents="none",c.touchAction="none",c.backgroundColor="rgba(0, 0, 0, 0)",this.active&&this.active(),this.active=void 0}static renderContent(c){let r=e.createBase(c);this.root=(0,_m.createRoot)(e.ref),this.root.render(r);let n=e.ref.style;n.pointerEvents="all",n.touchAction="auto",n.backgroundColor="rgba(0, 0, 0, 0.5)"}static createBase(c){return G2.default.createElement(Sw,null,c)}static get ref(){if(e._ref)return e._ref;let c=document.createElement("div");document.body.appendChild(c),e._ref=c;let r=c.style;return r.position="fixed",r.zIndex=`${Number.MAX_SAFE_INTEGER}`,r.width="100%",r.height="100%",r.pointerEvents="none",r.touchAction="none",r.backgroundColor="rgba(0, 0, 0, 0)",r.transition="background-color 1s",r.overflowY="auto",r.overflowX="hidden",c}};var Rm=N2(f1());function bw(){return new Promise(e=>{let c=document.createElement("div"),r=document.createElement("div"),n=c.style;n.position="fixed",n.zIndex="100000",n.left=n.top="0",n.width=`${window.innerWidth}px`,n.height=`${window.innerHeight}px`,document.body.appendChild(c),n.backgroundColor="rgba(0, 0, 0, 0.50)";let i=r.style;i.position="fixed",i.zIndex="100001",i.width="5px",i.height="5px",i.border="2px solid white";let s,l=(W,g,H,C)=>{s={x:W,y:g,xOff:H,yOff:C}},u=W=>{l(W.clientX,W.clientY,W.offsetX,W.offsetY)},p=W=>{let g=W.touches[W.touches.length-1],H=W.target,{x:C,y:b,width:D,height:U}=H.getBoundingClientRect(),B=(g.clientX-C)/D*H.offsetWidth,Z=(g.clientY-b)/U*H.offsetHeight;l(g.clientX,g.clientY,B,Z)},h=(W,g)=>{if(!s)return{x:W,y:g,width:0,height:0};let H=Math.min(W,s.x),C=Math.max(W,s.x),b=Math.min(g,s.y),D=Math.max(g,s.y),U=C-H,B=D-b;return{x:Math.floor(H),y:Math.floor(b),width:Math.ceil(U),height:Math.ceil(B)}},z=(W,g)=>{if(!s)return;document.body.contains(r)||document.body.appendChild(r);let H=h(W,g),C=r.style;C.width=`${H.width}px`,C.height=`${H.height}px`,C.left=`${H.x}px`,C.top=`${H.y}px`},V=W=>{if(!s||!(W instanceof MouseEvent))return;let{clientX:g,clientY:H}=W;z(g,H)},L=W=>{if(!s||!(W instanceof TouchEvent)||!W.isTrusted)return;let g=W.touches[0];if(i.borderWidth="6px",g){let{clientX:H,clientY:C}=g;z(H,C)}},S=(W,g)=>{if(s){let H=h(W,g);s=void 0,window.removeEventListener("mousedown",T),window.removeEventListener("touchend",P),window.removeEventListener("mousedown",u),window.removeEventListener("touchstart",p),window.removeEventListener("mouseup",V),window.removeEventListener("touchmove",L),document.body.removeChild(c),document.body.contains(r)&&document.body.removeChild(r),e(H)}},P=W=>{let g=W.touches[0]||W.changedTouches[0];if(g){let{clientX:H,clientY:C}=g;S(H,C)}},T=W=>{S(W.clientX,W.clientY)};window.addEventListener("mouseup",T),window.addEventListener("touchend",P),window.addEventListener("mousedown",u),window.addEventListener("touchstart",p),window.addEventListener("mousemove",V),window.addEventListener("touchmove",L)})}async function B9(e,c,r,n,i=0){let s=H8();s.width=r/Math.pow(2,i),s.height=n/Math.pow(2,i);let l=s.getContext("2d"),u=Math.floor(e%O2),p=Math.floor Line truncated
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Uw(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var lh=function(){},li={},_h={},Th=null,Rh={mark:lh,measure:lh};try{typeof window<"u"&&(li=window),typeof document<"u"&&(_h=document),typeof MutationObserver<"u"&&(Th=MutationObserver),typeof performance<"u"&&(Rh=performance)}catch{}var Ww=li.navigator||{},fh=Ww.userAgent,uh=fh===void 0?"":fh,x6=li,B2=_h,ph=Th,Yc=Rh,Mk=!!x6.document,B4=!!B2.documentElement&&!!B2.head&&typeof B2.addEventListener=="function"&&typeof B2.createElement=="function",Dh=~uh.indexOf("MSIE")||~uh.indexOf("Trident/"),Kc,Qc,$c,Jc,Zc,D4="___FONT_AWESOME___",J9=16,Oh="fa",Fh="svg-inline--fa",m0="data-fa-i2svg",Z9="data-fa-pseudo-element",Gw="data-fa-pseudo-element-pending",fi="data-prefix",ui="data-icon",mh="fontawesome-i2svg",qw="async",jw=["HTML","HEAD","STYLE","SCRIPT"],Bh=function(){try{return!0}catch{return!1}}(),F2="classic",c1="sharp",pi=[F2,c1];function ue(e){return new Proxy(e,{get:function(r,n){return n in r?r[n]:r[F2]}})}var te=ue((Kc={},m1(Kc,F2,{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fad:"duotone","fa-duotone":"duotone",fab:"brands","fa-brands":"brands",fak:"kit",fakd:"kit","fa-kit":"kit","fa-kit-duotone":"kit"}),m1(Kc,c1,{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"}),Kc)),ie=ue((Qc={},m1(Qc,F2,{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab",kit:"fak"}),m1(Qc,c1,{solid:"fass",regular:"fasr",light:"fasl",thin:"fast"}),Qc)),se=ue(($c={},m1($c,F2,{fab:"fa-brands",fad:"fa-duotone",fak:"fa-kit",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"}),m1($c,c1,{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"}),$c)),Xw=ue((Jc={},m1(Jc,F2,{"fa-brands":"fab","fa-duotone":"fad","fa-kit":"fak","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"}),m1(Jc,c1,{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"}),Jc)),Yw=/fa(s|r|l|t|d|b|k|ss|sr|sl|st)?[\-\ ]/,Ih="fa-layers-text",Kw=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp|Kit)?.*/i,Qw=ue((Zc={},m1(Zc,F2,{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"}),m1(Zc,c1,{900:"fass",400:"fasr",300:"fasl",100:"fast"}),Zc)),Uh=[1,2,3,4,5,6,7,8,9,10],$w=Uh.concat([11,12,13,14,15,16,17,18,19,20]),Jw=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],u0={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},oe=new Set;Object.keys(ie[F2]).map(oe.add.bind(oe));Object.keys(ie[c1]).map(oe.add.bind(oe));var Zw=[].concat(pi,fe(oe),["2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",u0.GROUP,u0.SWAP_OPACITY,u0.PRIMARY,u0.SECONDARY]).concat(Uh.map(function(e){return"".concat(e,"x")})).concat($w.map(function(e){return"w-".concat(e)})),ae=x6.FontAwesomeConfig||{};function eS(e){var c=B2.querySelector("script["+e+"]");if(c)return c.getAttribute(e)}function cS(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}B2&&typeof B2.querySelector=="function"&&(hh=[["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-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]],hh.forEach(function(e){var c=oi(e,2),r=c[0],n=c[1],i=cS(eS(r));i!=null&&(ae[n]=i)}));var hh,Wh={styleDefault:"solid",familyDefault:"classic",cssPrefix:Oh,replacementClass:Fh,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};ae.familyPrefix&&(ae.cssPrefix=ae.familyPrefix);var w8=$($({},Wh),ae);w8.autoReplaceSvg||(w8.observeMutations=!1);var c2={};Object.keys(Wh).forEach(function(e){Object.defineProperty(c2,e,{enumerable:!0,set:function(r){w8[e]=r,ne.forEach(function(n){return n(c2)})},get:function(){return w8[e]}})});Object.defineProperty(c2,"familyPrefix",{enumerable:!0,set:function(c){w8.cssPrefix=c,ne.forEach(function(r){return r(c2)})},get:function(){return w8.cssPrefix}});x6.FontAwesomeConfig=c2;var ne=[];function rS(e){return ne.push(e),function(){ne.splice(ne.indexOf(e),1)}}var L6=J9,m4={size:1 Line truncated
--fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid";
--fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular";
--fa-font-light: normal 300 1em/1 "Font Awesome 6 Light";
@@ -794,17 +837,16 @@ svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {
.fad.fa-inverse,
.fa-duotone.fa-inverse {
color: var(--fa-inverse, #fff);
}`;function Mf(){var e=hf,c=vf,r=c2.cssPrefix,n=c2.replacementClass,i=vx;if(r!==e||n!==c){var s=new RegExp("\\.".concat(e,"\\-"),"g"),l=new RegExp("\\--".concat(e,"\\-"),"g"),u=new RegExp("\\.".concat(c),"g");i=i.replace(s,".".concat(r,"-")).replace(l,"--".concat(r,"-")).replace(u,".".concat(n))}return i}var Gl=!1;function sn(){c2.autoAddCss&&!Gl&&(fx(Mf()),Gl=!0)}var dx={mixout:function(){return{dom:{css:Mf,insertCss:sn}}},hooks:function(){return{beforeDOMElementCreation:function(){sn()},beforeI2svg:function(){sn()}}}},x4=Z4||{};x4[L4]||(x4[L4]={});x4[L4].styles||(x4[L4].styles={});x4[L4].hooks||(x4[L4].hooks={});x4[L4].shims||(x4[L4].shims=[]);var G3=x4[L4],Cf=[],zx=function e(){D2.removeEventListener("DOMContentLoaded",e),x7=1,Cf.map(function(c){return c()})},x7=!1;w4&&(x7=(D2.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(D2.readyState),x7||D2.addEventListener("DOMContentLoaded",zx));function Hx(e){w4&&(x7?setTimeout(e,0):Cf.push(e))}function m5(e){var c=e.tag,r=e.attributes,n=r===void 0?{}:r,i=e.children,s=i===void 0?[]:i;return typeof e=="string"?Vf(e):"<".concat(c," ").concat(px(n),">").concat(s.map(m5).join(""),"</").concat(c,">")}function ql(e,c,r){if(e&&e[c]&&e[c][r])return{prefix:c,iconName:r,icon:e[c][r]}}var gx=function(c,r){return function(n,i,s,l){return c.call(r,n,i,s,l)}},on=function(c,r,n,i){var s=Object.keys(c),l=s.length,u=i!==void 0?gx(r,i):r,p,h,z;for(n===void 0?(p=1,z=c[s[0]]):(p=0,z=n);p<l;p++)h=s[p],z=u(z,c[h],h,c);return z};function Vx(e){for(var c=[],r=0,n=e.length;r<n;){var i=e.charCodeAt(r++);if(i>=55296&&i<=56319&&r<n){var s=e.charCodeAt(r++);(s&64512)==56320?c.push(((i&1023)<<10)+(s&1023)+65536):(c.push(i),r--)}else c.push(i)}return c}function hn(e){var c=Vx(e);return c.length===1?c[0].toString(16):null}function Mx(e,c){var r=e.length,n=e.charCodeAt(c),i;return n>=55296&&n<=56319&&r>c+1&&(i=e.charCodeAt(c+1),i>=56320&&i<=57343)?(n-55296)*1024+i-56320+65536:n}function jl(e){return Object.keys(e).reduce(function(c,r){var n=e[r],i=!!n.icon;return i?c[n.iconName]=n.icon:c[r]=n,c},{})}function vn(e,c){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=r.skipHooks,i=n===void 0?!1:n,s=jl(c);typeof G3.hooks.addPack=="function"&&!i?G3.hooks.addPack(e,jl(c)):G3.styles[e]=$($({},G3.styles[e]||{}),s),e==="fas"&&vn("fa",c)}var H7,g7,V7,D0=G3.styles,Cx=G3.shims,Lx=(H7={},u1(H7,O2,Object.values(o5[O2])),u1(H7,J2,Object.values(o5[J2])),H7),bn=null,Lf={},xf={},yf={},wf={},Sf={},xx=(g7={},u1(g7,O2,Object.keys(i5[O2])),u1(g7,J2,Object.keys(i5[J2])),g7);function yx(e){return~ix.indexOf(e)}function wx(e,c){var r=c.split("-"),n=r[0],i=r.slice(1).join("-");return n===e&&i!==""&&!yx(i)?i:null}var Nf=function(){var c=function(s){return on(D0,function(l,u,p){return l[p]=on(u,s,{}),l},{})};Lf=c(function(i,s,l){if(s[3]&&(i[s[3]]=l),s[2]){var u=s[2].filter(function(p){return typeof p=="number"});u.forEach(function(p){i[p.toString(16)]=l})}return i}),xf=c(function(i,s,l){if(i[l]=l,s[2]){var u=s[2].filter(function(p){return typeof p=="string"});u.forEach(function(p){i[p]=l})}return i}),Sf=c(function(i,s,l){var u=s[2];return i[l]=l,u.forEach(function(p){i[p]=l}),i});var r="far"in D0||c2.autoFetchSvg,n=on(Cx,function(i,s){var l=s[0],u=s[1],p=s[2];return u==="far"&&!r&&(u="fas"),typeof l=="string"&&(i.names[l]={prefix:u,iconName:p}),typeof l=="number"&&(i.unicodes[l.toString(16)]={prefix:u,iconName:p}),i},{names:{},unicodes:{}});yf=n.names,wf=n.unicodes,bn=S7(c2.styleDefault,{family:c2.familyDefault})};lx(function(e){bn=S7(e.styleDefault,{family:c2.familyDefault})});Nf();function kn(e,c){return(Lf[e]||{})[c]}function Sx(e,c){return(xf[e]||{})[c]}function G6(e,c){return(Sf[e]||{})[c]}function bf(e){return yf[e]||{prefix:null,iconName:null}}function Nx(e){var c=wf[e],r=kn("fas",e);return c||(r?{prefix:"fas",iconName:r}:null)||{prefix:null,iconName:null}}function e6(){return bn}var An=function(){return{prefix:null,iconName:null,rest:[]}};function S7(e){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=c.family,n=r===void 0?O2:r,i=i5[n][e],s=s5[n][e]||s5[n][i],l=e in G3.styles?e:null;return s||l||null}var Xl=(V7={},u1(V7,O2,Object.keys(o5[O2])),u1(V7,J2,Object.keys(o5[J2])),V7);function N7(e){var c,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.skipLookups,i=n===void 0?!1:n,s=(c={},u1(c,O2,"".concat(c2.cssPrefix,"-").concat(O2)),u1(c,J2,"".concat(c2.cssPrefix,"-").concat(J2)),c),l=null,u=O2;(e.includes(s[O2])||e.some(function(h){return Xl[O2].includes(h)}))&&(u=O2),(e.includes(s[J2])||e.some(function(h){return Xl[J2].includes(h)}))&&(u=J2);var p=e.reduce(function(h,z){var M=wx(c2.cssPrefix,z);if(D0[z]?(z=Lx[u].includes(z)?ex[u][z]:z,l=z,h.prefix=z):xx[u].indexOf(z)>-1?(l=z,h.prefix=S7(z,{family:u})):M?h.iconName=M:z!==c2.replacementClass&&z!==s[O2]&&z!==s[J2]&&h.rest.push(z),!i&&h.prefix&&h.iconName){var L=l==="fa"?bf(h.iconName):{},S=G6(h.prefix,h.iconName);L.prefix&&(l=null),h.iconName=L.iconName||S||h.iconName,h.prefix=L.prefix||h.prefix,h.prefix===" Line truncated
`);r.setAttribute(q6,""),r.innerHTML=l}};function Jl(e){e()}function Pf(e,c){var r=typeof c=="function"?c:M7;if(e.length===0)r();else{var n=Jl;c2.mutateApproach===JL&&(n=Z4.requestAnimationFrame||Jl),n(function(){var i=Gx(),s=Pn.begin("mutate");e.map(i),s(),r()})}}var _n=!1;function _f(){_n=!0}function Mn(){_n=!1}var y7=null;function Zl(e){if(Il&&c2.observeMutations){var c=e.treeCallback,r=c===void 0?M7:c,n=e.nodeCallback,i=n===void 0?M7:n,s=e.pseudoElementsCallback,l=s===void 0?M7:s,u=e.observeMutationsRoot,p=u===void 0?D2:u;y7=new Il(function(h){if(!_n){var z=e6();U0(h).forEach(function(M){if(M.type==="childList"&&M.addedNodes.length>0&&!$l(M.addedNodes[0])&&(c2.searchPseudoElements&&l(M.target),r(M.target)),M.type==="attributes"&&M.target.parentNode&&c2.searchPseudoElements&&l(M.target.parentNode),M.type==="attributes"&&$l(M.target)&&~tx.indexOf(M.attributeName))if(M.attributeName==="class"&&Ux(M.target)){var L=N7(Sn(M.target)),S=L.prefix,P=L.iconName;M.target.setAttribute(xn,S||z),P&&M.target.setAttribute(yn,P)}else Wx(M.target)&&i(M.target)})}}),w4&&y7.observe(p,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function Yx(){y7&&y7.disconnect()}function Kx(e){var c=e.getAttribute("style"),r=[];return c&&(r=c.split(";").reduce(function(n,i){var s=i.split(":"),l=s[0],u=s.slice(1);return l&&u.length>0&&(n[l]=u.join(":").trim()),n},{})),r}function Qx(e){var c=e.getAttribute("data-prefix"),r=e.getAttribute("data-icon"),n=e.innerText!==void 0?e.innerText.trim():"",i=N7(Sn(e));return i.prefix||(i.prefix=e6()),c&&r&&(i.prefix=c,i.iconName=r),i.iconName&&i.prefix||(i.prefix&&n.length>0&&(i.iconName=Sx(i.prefix,e.innerText)||kn(i.prefix,hn(e.innerText))),!i.iconName&&c2.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(i.iconName=e.firstChild.data)),i}function $x(e){var c=U0(e.attributes).reduce(function(i,s){return i.name!=="class"&&i.name!=="style"&&(i[s.name]=s.value),i},{}),r=e.getAttribute("title"),n=e.getAttribute("data-fa-title-id");return c2.autoA11y&&(r?c["aria-labelledby"]="".concat(c2.replacementClass,"-title-").concat(n||f5()):(c["aria-hidden"]="true",c.focusable="false")),c}function Jx(){return{iconName:null,title:null,titleId:null,prefix:null,transform:t4,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function ef(e){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},r=Qx(e),n=r.iconName,i=r.prefix,s=r.rest,l=$x(e),u=dn("parseNodeAttributes",{},e),p=c.styleParser?Kx(e):[];return $({iconName:n,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:i,transform:t4,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:s,styles:p,attributes:l}},u)}var Zx=G3.styles;function Tf(e){var c=c2.autoReplaceSvg==="nest"?ef(e,{styleParser:!1}):ef(e);return~c.extra.classes.indexOf(zf)?y4("generateLayersText",e,c):y4("generateSvgReplacementMutation",e,c)}var c6=new Set;wn.map(function(e){c6.add("fa-".concat(e))});Object.keys(i5[O2]).map(c6.add.bind(c6));Object.keys(i5[J2]).map(c6.add.bind(c6));c6=u5(c6);function cf(e){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!w4)return Promise.resolve();var r=D2.documentElement.classList,n=function(M){return r.add("".concat(Ul,"-").concat(M))},i=function(M){return r.remove("".concat(Ul,"-").concat(M))},s=c2.autoFetchSvg?c6:wn.map(function(z){return"fa-".concat(z)}).concat(Object.keys(Zx));s.includes("fa")||s.push("fa");var l=[".".concat(zf,":not([").concat(q6,"])")].concat(s.map(function(z){return".".concat(z,":not([").concat(q6,"])")})).join(", ");if(l.length===0)return Promise.resolve();var u=[];try{u=U0(e.querySelectorAll(l))}catch{}if(u.length>0)n("pending"),i("complete");else return Promise.resolve();var p=Pn.begin("onTree"),h=u.reduce(function(z,M){try{var L=Tf(M);L&&z.push(L)}catch(S){df||S.name==="MissingIcon"&&console.error(S)}return z},[]);return new Promise(function(z,M){Promise.all(h).then(function(L){Pf(L,function(){n("active"),n("complete"),i("pending"),typeof c=="function"&&c(),p(),z()})}).catch(function(L){p(),M(L)})})}function ey(e){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;Tf(e).then(function(r){r&&Pf([r],c)})}function cy(e){return function(c){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=(c||{}).icon?c:zn(c||{}),i=r.mask;return i&&(i=(i||{}).icon?i:zn(i||{})),e(n,$($({},r),{},{mask:i}))}}var ry=function(c){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.transform,i=n===void 0?t4:n,s=r.symbol,l=s===void 0?!1:s,u=r.mask,p=u===void 0?null:u,h=r.maskId,z=h===void 0?null:h,M=r.title,L=M===void 0?null:M,S=r.titleId,P=S===void 0?null:S,R=r.classes,W=R===void 0?[]:R,g=r.attributes,H=g===void 0?{}:g,C=r.styles,b=C===void 0?{}:C;if(c){var O=c.prefix,U=c.iconName,B=c.icon;return b7($({type:"icon"},c),function(){return j6("beforeDOMElementCreation",{iconDefinition:c,params:r}),c2.autoA11y&&(L?H["aria-labelledby"]="".concat( Line truncated
`),e.removeAttribute(r),n()}).catch(i)}else n()}else n()})}function ly(e){return Promise.all([af(e,"::before"),af(e,"::after")])}function fy(e){return e.parentNode!==document.head&&!~ZL.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(mn)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function nf(e){if(w4)return new Promise(function(c,r){var n=U0(e.querySelectorAll("*")).filter(fy).map(ly),i=Pn.begin("searchPseudoElements");_f(),Promise.all(n).then(function(){i(),Mn(),c()}).catch(function(){i(),Mn(),r()})})}var uy={hooks:function(){return{mutationObserverCallbacks:function(r){return r.pseudoElementsCallback=nf,r}}},provides:function(c){c.pseudoElements2svg=function(r){var n=r.node,i=n===void 0?D2:n;c2.searchPseudoElements&&nf(i)}}},tf=!1,py={mixout:function(){return{dom:{unwatch:function(){_f(),tf=!0}}}},hooks:function(){return{bootstrap:function(){Zl(dn("mutationObserverCallbacks",{}))},noAuto:function(){Yx()},watch:function(r){var n=r.observeMutationsRoot;tf?Mn():Zl(dn("mutationObserverCallbacks",{observeMutationsRoot:n}))}}}},sf=function(c){var r={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return c.toLowerCase().split(" ").reduce(function(n,i){var s=i.toLowerCase().split("-"),l=s[0],u=s.slice(1).join("-");if(l&&u==="h")return n.flipX=!0,n;if(l&&u==="v")return n.flipY=!0,n;if(u=parseFloat(u),isNaN(u))return n;switch(l){case"grow":n.size=n.size+u;break;case"shrink":n.size=n.size-u;break;case"left":n.x=n.x-u;break;case"right":n.x=n.x+u;break;case"up":n.y=n.y-u;break;case"down":n.y=n.y+u;break;case"rotate":n.rotate=n.rotate+u;break}return n},r)},my={mixout:function(){return{parse:{transform:function(r){return sf(r)}}}},hooks:function(){return{parseNodeAttributes:function(r,n){var i=n.getAttribute("data-fa-transform");return i&&(r.transform=sf(i)),r}}},provides:function(c){c.generateAbstractTransformGrouping=function(r){var n=r.main,i=r.transform,s=r.containerWidth,l=r.iconWidth,u={transform:"translate(".concat(s/2," 256)")},p="translate(".concat(i.x*32,", ").concat(i.y*32,") "),h="scale(".concat(i.size/16*(i.flipX?-1:1),", ").concat(i.size/16*(i.flipY?-1:1),") "),z="rotate(".concat(i.rotate," 0 0)"),M={transform:"".concat(p," ").concat(h," ").concat(z)},L={transform:"translate(".concat(l/2*-1," -256)")},S={outer:u,inner:M,path:L};return{tag:"g",attributes:$({},S.outer),children:[{tag:"g",attributes:$({},S.inner),children:[{tag:n.icon.tag,children:n.icon.children,attributes:$($({},n.icon.attributes),S.path)}]}]}}}},fn={x:0,y:0,width:"100%",height:"100%"};function of(e){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.attributes&&(e.attributes.fill||c)&&(e.attributes.fill="black"),e}function hy(e){return e.tag==="g"?e.children:[e]}var vy={hooks:function(){return{parseNodeAttributes:function(r,n){var i=n.getAttribute("data-fa-mask"),s=i?N7(i.split(" ").map(function(l){return l.trim()})):An();return s.prefix||(s.prefix=e6()),r.mask=s,r.maskId=n.getAttribute("data-fa-mask-id"),r}}},provides:function(c){c.generateAbstractMask=function(r){var n=r.children,i=r.attributes,s=r.main,l=r.mask,u=r.maskId,p=r.transform,h=s.width,z=s.icon,M=l.width,L=l.icon,S=mx({transform:p,containerWidth:M,iconWidth:h}),P={tag:"rect",attributes:$($({},fn),{},{fill:"white"})},R=z.children?{children:z.children.map(of)}:{},W={tag:"g",attributes:$({},S.inner),children:[of($({tag:z.tag,attributes:$($({},z.attributes),S.path)},R))]},g={tag:"g",attributes:$({},S.outer),children:[W]},H="mask-".concat(u||f5()),C="clip-".concat(u||f5()),b={tag:"mask",attributes:$($({},fn),{},{id:H,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[P,g]},O={tag:"defs",children:[{tag:"clipPath",attributes:{id:C},children:hy(L)},b]};return n.push(O,{tag:"rect",attributes:$({fill:"currentColor","clip-path":"url(#".concat(C,")"),mask:"url(#".concat(H,")")},fn)}),{children:n,attributes:i}}}},dy={provides:function(c){var r=!1;Z4.matchMedia&&(r=Z4.matchMedia("(prefers-reduced-motion: reduce)").matches),c.missingIconAbstract=function(){var n=[],i={fill:"currentColor"},s={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};n.push({tag:"path",attributes:$($({},i),{},{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,6 Line truncated
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Sy(e){var c,r=e.beat,n=e.fade,i=e.beatFade,s=e.bounce,l=e.shake,u=e.flash,p=e.spin,h=e.spinPulse,z=e.spinReverse,M=e.pulse,L=e.fixedWidth,S=e.inverse,P=e.border,R=e.listItem,W=e.flip,g=e.size,H=e.rotation,C=e.pull,b=(c={"fa-beat":r,"fa-fade":n,"fa-beat-fade":i,"fa-bounce":s,"fa-shake":l,"fa-flash":u,"fa-spin":p,"fa-spin-reverse":z,"fa-spin-pulse":h,"fa-pulse":M,"fa-fw":L,"fa-inverse":S,"fa-border":P,"fa-li":R,"fa-flip":W===!0,"fa-flip-horizontal":W==="horizontal"||W==="both","fa-flip-vertical":W==="vertical"||W==="both"},W0(c,"fa-".concat(g),typeof g<"u"&&g!==null),W0(c,"fa-rotate-".concat(H),typeof H<"u"&&H!==null&&H!==0),W0(c,"fa-pull-".concat(C),typeof C<"u"&&C!==null),W0(c,"fa-swap-opacity",e.swapOpacity),c);return Object.keys(b).map(function(O){return b[O]?O:null}).filter(function(O){return O})}function Ny(e){return e=e-0,e===e}function Xf(e){return Ny(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,function(c,r){return r?r.toUpperCase():""}),e.substr(0,1).toLowerCase()+e.substr(1))}var by=["style"];function ky(e){return e.charAt(0).toUpperCase()+e.slice(1)}function Ay(e){return e.split(";").map(function(c){return c.trim()}).filter(function(c){return c}).reduce(function(c,r){var n=r.indexOf(":"),i=Xf(r.slice(0,n)),s=r.slice(n+1).trim();return i.startsWith("webkit")?c[ky(i)]=s:c[i]=s,c},{})}function Yf(e,c){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(typeof c=="string")return c;var n=(c.children||[]).map(function(p){return Yf(e,p)}),i=Object.keys(c.attributes||{}).reduce(function(p,h){var z=c.attributes[h];switch(h){case"class":p.attrs.className=z,delete c.attributes.class;break;case"style":p.attrs.style=Ay(z);break;default:h.indexOf("aria-")===0||h.indexOf("data-")===0?p.attrs[h.toLowerCase()]=z:p.attrs[Xf(h)]=z}return p},{attrs:{}}),s=r.style,l=s===void 0?{}:s,u=Cy(r,by);return i.attrs.style=r6(r6({},i.attrs.style),l),e.apply(void 0,[c.tag,r6(r6({},i.attrs),u)].concat(Rn(n)))}var Kf=!1;try{Kf=!0}catch{}function Ey(){if(!Kf&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function jf(e){if(e&&A7(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(k7.icon)return k7.icon(e);if(e===null)return null;if(e&&A7(e)==="object"&&e.prefix&&e.iconName)return e;if(Array.isArray(e)&&e.length===2)return{prefix:e[0],iconName:e[1]};if(typeof e=="string")return{prefix:"fas",iconName:e}}function Tn(e,c){return Array.isArray(c)&&c.length>0||!Array.isArray(c)&&c?W0({},e,c):{}}var N1=Dn.default.forwardRef(function(e,c){var r=e.icon,n=e.mask,i=e.symbol,s=e.className,l=e.title,u=e.titleId,p=e.maskId,h=jf(r),z=Tn("classes",[].concat(Rn(Sy(e)),Rn(s.split(" ")))),M=Tn("transform",typeof e.transform=="string"?k7.transform(e.transform):e.transform),L=Tn("mask",jf(n)),S=Rf(h,r6(r6(r6(r6({},z),M),L),{},{symbol:i,title:l,titleId:u,maskId:p}));if(!S)return Ey("Could not find icon",h),null;var P=S.abstract,R={ref:c};return Object.keys(e).forEach(function(W){N1.defaultProps.hasOwnProperty(W)||(R[W]=e[W])}),Py(P[0],R)});N1.displayName="FontAwesomeIcon";N1.propTypes={beat:v2.default.bool,border:v2.default.bool,beatFade:v2.default.bool,bounce:v2.default.bool,className:v2.default.string,fade:v2.default.bool,flash:v2.default.bool,mask:v2.default.oneOfType([v2.default.object,v2.default.array,v2.default.string]),maskId:v2.default.string,fixedWidth:v2.default.bool,inverse:v2.default.bool,flip:v2.default.oneOf([!0,!1,"horizontal","vertical","both"]),icon:v2.default.oneOfType([v2.default.object,v2.default.array,v2.default.string]),listItem:v2.default.bool,pull:v2.default.oneOf(["right","left"]),pulse:v2.default.bool,rotation:v2.default.oneOf([0,90,180,270]),shake:v2.default.bool,size:v2.default.oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:v2.default.bool,spinPulse:v2.default.bool,spinReverse:v2.default.bool,symbol:v2.default.oneOfType([v2.default.bool,v2.default.string]),title:v2.default.string,titleId:v2.default.string,transform:v2.default.oneOfType([v2.default.string,v2.default.object]),swapOpacity:v2.default.bool};N1.defaultProps={border:!1,className:"",mask:null,maskId:null,fixedWidth:!1,inverse:!1,flip:!1,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:null,transform:null,swapOpacity:!1};var Py=Yf.bind(null,Dn.default.createElement);var g3=N2(f1());var b1=function(){return b1=Object.assign||function(c){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(c[s]=r[s])}return c},b1.apply(this,arguments)};function h5(e,c,r){if(r||arguments.length===2)for(var n=0,i=c.length,s;n<i;n++)(s||!(n in c))&&(s||(s=Array.prototype.slice.call(c,0,n)),s[n]=c[n]);return e.concat(s||Array.prototype.slice.call(c))}var e1=N2(f1()),Nu=N2($f());var k2="-ms-",X6="-moz-",C2="-webkit-" Line truncated
`,e9=typeof window<"u"&&"HTMLElement"in window,Ry=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==""?process.env.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&process.env.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&process.env.SC_DISABLE_SPEEDY!==void 0&&process.env.SC_DISABLE_SPEEDY!==""&&process.env.SC_DISABLE_SPEEDY!=="false"&&process.env.SC_DISABLE_SPEEDY);var X7=Object.freeze([]),$0=Object.freeze({});function Oy(e,c,r){return r===void 0&&(r=$0),e.theme!==r.theme&&e.theme||c||r.theme}var ku=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),Dy=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Fy=/(^-|-$)/g;function gu(e){return e.replace(Dy,"-").replace(Fy,"")}var By=/(a)(d)/gi,B7=52,Vu=function(e){return String.fromCharCode(e+(e>25?39:97))};function Xn(e){var c,r="";for(c=Math.abs(e);c>B7;c=c/B7|0)r=Vu(c%B7)+r;return(Vu(c%B7)+r).replace(By,"$1-$2")}var Gn,Au=5381,K0=function(e,c){for(var r=c.length;r;)e=33*e^c.charCodeAt(--r);return e},Eu=function(e){return K0(Au,e)};function Iy(e){return Xn(Eu(e)>>>0)}function Uy(e){return e.displayName||e.name||"Component"}function qn(e){return typeof e=="string"&&!0}var Pu=typeof Symbol=="function"&&Symbol.for,_u=Pu?Symbol.for("react.memo"):60115,Wy=Pu?Symbol.for("react.forward_ref"):60112,Gy={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},qy={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Tu={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},jy=((Gn={})[Wy]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Gn[_u]=Tu,Gn);function Mu(e){return("type"in(c=e)&&c.type.$$typeof)===_u?Tu:"$$typeof"in e?jy[e.$$typeof]:Gy;var c}var Xy=Object.defineProperty,Yy=Object.getOwnPropertyNames,Cu=Object.getOwnPropertySymbols,Ky=Object.getOwnPropertyDescriptor,Qy=Object.getPrototypeOf,Lu=Object.prototype;function Ru(e,c,r){if(typeof c!="string"){if(Lu){var n=Qy(c);n&&n!==Lu&&Ru(e,n,r)}var i=Yy(c);Cu&&(i=i.concat(Cu(c)));for(var s=Mu(e),l=Mu(c),u=0;u<i.length;++u){var p=i[u];if(!(p in qy||r&&r[p]||l&&p in l||s&&p in s)){var h=Ky(c,p);try{Xy(e,p,h)}catch{}}}}return e}function J0(e){return typeof e=="function"}function c9(e){return typeof e=="object"&&"styledComponentId"in e}function Q6(e,c){return e&&c?"".concat(e," ").concat(c):e||c||""}function q7(e,c){if(e.length===0)return"";for(var r=e[0],n=1;n<e.length;n++)r+=c?c+e[n]:e[n];return r}function g5(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Yn(e,c,r){if(r===void 0&&(r=!1),!r&&!g5(e)&&!Array.isArray(e))return c;if(Array.isArray(c))for(var n=0;n<c.length;n++)e[n]=Yn(e[n],c[n]);else if(g5(c))for(var n in c)e[n]=Yn(e[n],c[n]);return e}function r9(e,c){Object.defineProperty(e,"toString",{value:c})}function N4(e){for(var c=[],r=1;r<arguments.length;r++)c[r-1]=arguments[r];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(c.length>0?" Args: ".concat(c.join(", ")):""))}var $y=function(){function e(c){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=c}return e.prototype.indexOfGroup=function(c){for(var r=0,n=0;n<c;n++)r+=this.groupSizes[n];return r},e.prototype.insertRules=function(c,r){if(c>=this.groupSizes.length){for(var n=this.groupSizes,i=n.length,s=i;c>=s;)if((s<<=1)<0)throw N4(16,"".concat(c));this.groupSizes=new Uint32Array(s),this.groupSizes.set(n),this.length=s;for(var l=i;l<s;l++)this.groupSizes[l]=0}for(var u=this.indexOfGroup(c+1),p=(l=0,r.length);l<p;l++)this.tag.insertRule(u,r[l])&&(this.groupSizes[c]++,u++)},e.prototype.clearGroup=function(c){if(c<this.length){var r=this.groupSizes[c],n=thLine truncated
}`;function qh(){var e=Oh,c=Fh,r=c2.cssPrefix,n=c2.replacementClass,i=oS;if(r!==e||n!==c){var s=new RegExp("\\.".concat(e,"\\-"),"g"),l=new RegExp("\\--".concat(e,"\\-"),"g"),u=new RegExp("\\.".concat(c),"g");i=i.replace(s,".".concat(r,"-")).replace(l,"--".concat(r,"-")).replace(u,".".concat(n))}return i}var dh=!1;function X9(){c2.autoAddCss&&!dh&&(aS(qh()),dh=!0)}var lS={mixout:function(){return{dom:{css:qh,insertCss:X9}}},hooks:function(){return{beforeDOMElementCreation:function(){X9()},beforeI2svg:function(){X9()}}}},O4=x6||{};O4[D4]||(O4[D4]={});O4[D4].styles||(O4[D4].styles={});O4[D4].hooks||(O4[D4].hooks={});O4[D4].shims||(O4[D4].shims=[]);var Z3=O4[D4],jh=[],fS=function e(){B2.removeEventListener("DOMContentLoaded",e),ir=1,jh.map(function(c){return c()})},ir=!1;B4&&(ir=(B2.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(B2.readyState),ir||B2.addEventListener("DOMContentLoaded",fS));function uS(e){B4&&(ir?setTimeout(e,0):jh.push(e))}function pe(e){var c=e.tag,r=e.attributes,n=r===void 0?{}:r,i=e.children,s=i===void 0?[]:i;return typeof e=="string"?Gh(e):"<".concat(c," ").concat(tS(n),">").concat(s.map(pe).join(""),"</").concat(c,">")}function vh(e,c,r){if(e&&e[c]&&e[c][r])return{prefix:c,iconName:r,icon:e[c][r]}}var pS=function(c,r){return function(n,i,s,l){return c.call(r,n,i,s,l)}},Y9=function(c,r,n,i){var s=Object.keys(c),l=s.length,u=i!==void 0?pS(r,i):r,p,h,z;for(n===void 0?(p=1,z=c[s[0]]):(p=0,z=n);p<l;p++)h=s[p],z=u(z,c[h],h,c);return z};function mS(e){for(var c=[],r=0,n=e.length;r<n;){var i=e.charCodeAt(r++);if(i>=55296&&i<=56319&&r<n){var s=e.charCodeAt(r++);(s&64512)==56320?c.push(((i&1023)<<10)+(s&1023)+65536):(c.push(i),r--)}else c.push(i)}return c}function ei(e){var c=mS(e);return c.length===1?c[0].toString(16):null}function hS(e,c){var r=e.length,n=e.charCodeAt(c),i;return n>=55296&&n<=56319&&r>c+1&&(i=e.charCodeAt(c+1),i>=56320&&i<=57343)?(n-55296)*1024+i-56320+65536:n}function zh(e){return Object.keys(e).reduce(function(c,r){var n=e[r],i=!!n.icon;return i?c[n.iconName]=n.icon:c[r]=n,c},{})}function ci(e,c){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=r.skipHooks,i=n===void 0?!1:n,s=zh(c);typeof Z3.hooks.addPack=="function"&&!i?Z3.hooks.addPack(e,zh(c)):Z3.styles[e]=$($({},Z3.styles[e]||{}),s),e==="fas"&&ci("fa",c)}var er,cr,rr,L8=Z3.styles,dS=Z3.shims,vS=(er={},m1(er,F2,Object.values(se[F2])),m1(er,c1,Object.values(se[c1])),er),di=null,Xh={},Yh={},Kh={},Qh={},$h={},zS=(cr={},m1(cr,F2,Object.keys(te[F2])),m1(cr,c1,Object.keys(te[c1])),cr);function HS(e){return~Zw.indexOf(e)}function gS(e,c){var r=c.split("-"),n=r[0],i=r.slice(1).join("-");return n===e&&i!==""&&!HS(i)?i:null}var Jh=function(){var c=function(s){return Y9(L8,function(l,u,p){return l[p]=Y9(u,s,{}),l},{})};Xh=c(function(i,s,l){if(s[3]&&(i[s[3]]=l),s[2]){var u=s[2].filter(function(p){return typeof p=="number"});u.forEach(function(p){i[p.toString(16)]=l})}return i}),Yh=c(function(i,s,l){if(i[l]=l,s[2]){var u=s[2].filter(function(p){return typeof p=="string"});u.forEach(function(p){i[p]=l})}return i}),$h=c(function(i,s,l){var u=s[2];return i[l]=l,u.forEach(function(p){i[p]=l}),i});var r="far"in L8||c2.autoFetchSvg,n=Y9(dS,function(i,s){var l=s[0],u=s[1],p=s[2];return u==="far"&&!r&&(u="fas"),typeof l=="string"&&(i.names[l]={prefix:u,iconName:p}),typeof l=="number"&&(i.unicodes[l.toString(16)]={prefix:u,iconName:p}),i},{names:{},unicodes:{}});Kh=n.names,Qh=n.unicodes,di=lr(c2.styleDefault,{family:c2.familyDefault})};rS(function(e){di=lr(e.styleDefault,{family:c2.familyDefault})});Jh();function vi(e,c){return(Xh[e]||{})[c]}function VS(e,c){return(Yh[e]||{})[c]}function p0(e,c){return($h[e]||{})[c]}function Zh(e){return Kh[e]||{prefix:null,iconName:null}}function MS(e){var c=Qh[e],r=vi("fas",e);return c||(r?{prefix:"fas",iconName:r}:null)||{prefix:null,iconName:null}}function y6(){return di}var zi=function(){return{prefix:null,iconName:null,rest:[]}};function lr(e){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=c.family,n=r===void 0?F2:r,i=te[n][e],s=ie[n][e]||ie[n][i],l=e in Z3.styles?e:null;return s||l||null}var Hh=(rr={},m1(rr,F2,Object.keys(se[F2])),m1(rr,c1,Object.keys(se[c1])),rr);function fr(e){var c,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.skipLookups,i=n===void 0?!1:n,s=(c={},m1(c,F2,"".concat(c2.cssPrefix,"-").concat(F2)),m1(c,c1,"".concat(c2.cssPrefix,"-").concat(c1)),c),l=null,u=F2;(e.includes(s[F2])||e.some(function(h){return Hh[F2].includes(h)}))&&(u=F2),(e.includes(s[c1])||e.some(function(h){return Hh[c1].includes(h)}))&&(u=c1);var p=e.reduce(function(h,z){var V=gS(c2.cssPrefix,z);if(L8[z]?(z=vS[u].includes(z)?Xw[u][z]:z,l=z,h.prefix=z):zS[u].indexOf(z)>-1?(l=z,h.prefix=lr(z,{family:u})):V?h.iconName=V:z!==c2.replacementClass&&z!==s[F2]&&z!==s[c1]&&h.rest.push(z),!i&&h.prefix&&h.iconName){var L=l==="fa"?Zh(h.iconName):{},S=p0(h.prefix,h.iconName);L.prefix&&(l=null),h.iconName=L.iconName||S||h.iconName,h.prefix=L.prefix||h.prefix,h.prefix===" Line truncated
`);r.setAttribute(m0,""),r.innerHTML=l}};function Lh(e){e()}function ad(e,c){var r=typeof c=="function"?c:ar;if(e.length===0)r();else{var n=Lh;c2.mutateApproach===qw&&(n=x6.requestAnimationFrame||Lh),n(function(){var i=DS(),s=gi.begin("mutate");e.map(i),s(),r()})}}var Vi=!1;function nd(){Vi=!0}function si(){Vi=!1}var sr=null;function xh(e){if(ph&&c2.observeMutations){var c=e.treeCallback,r=c===void 0?ar:c,n=e.nodeCallback,i=n===void 0?ar:n,s=e.pseudoElementsCallback,l=s===void 0?ar:s,u=e.observeMutationsRoot,p=u===void 0?B2:u;sr=new ph(function(h){if(!Vi){var z=y6();S8(h).forEach(function(V){if(V.type==="childList"&&V.addedNodes.length>0&&!Ch(V.addedNodes[0])&&(c2.searchPseudoElements&&l(V.target),r(V.target)),V.type==="attributes"&&V.target.parentNode&&c2.searchPseudoElements&&l(V.target.parentNode),V.type==="attributes"&&Ch(V.target)&&~Jw.indexOf(V.attributeName))if(V.attributeName==="class"&&TS(V.target)){var L=fr(mi(V.target)),S=L.prefix,P=L.iconName;V.target.setAttribute(fi,S||z),P&&V.target.setAttribute(ui,P)}else RS(V.target)&&i(V.target)})}}),B4&&sr.observe(p,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function IS(){sr&&sr.disconnect()}function US(e){var c=e.getAttribute("style"),r=[];return c&&(r=c.split(";").reduce(function(n,i){var s=i.split(":"),l=s[0],u=s.slice(1);return l&&u.length>0&&(n[l]=u.join(":").trim()),n},{})),r}function WS(e){var c=e.getAttribute("data-prefix"),r=e.getAttribute("data-icon"),n=e.innerText!==void 0?e.innerText.trim():"",i=fr(mi(e));return i.prefix||(i.prefix=y6()),c&&r&&(i.prefix=c,i.iconName=r),i.iconName&&i.prefix||(i.prefix&&n.length>0&&(i.iconName=VS(i.prefix,e.innerText)||vi(i.prefix,ei(e.innerText))),!i.iconName&&c2.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(i.iconName=e.firstChild.data)),i}function GS(e){var c=S8(e.attributes).reduce(function(i,s){return i.name!=="class"&&i.name!=="style"&&(i[s.name]=s.value),i},{}),r=e.getAttribute("title"),n=e.getAttribute("data-fa-title-id");return c2.autoA11y&&(r?c["aria-labelledby"]="".concat(c2.replacementClass,"-title-").concat(n||le()):(c["aria-hidden"]="true",c.focusable="false")),c}function qS(){return{iconName:null,title:null,titleId:null,prefix:null,transform:m4,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function yh(e){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},r=WS(e),n=r.iconName,i=r.prefix,s=r.rest,l=GS(e),u=ri("parseNodeAttributes",{},e),p=c.styleParser?US(e):[];return $({iconName:n,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:i,transform:m4,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:s,styles:p,attributes:l}},u)}var jS=Z3.styles;function td(e){var c=c2.autoReplaceSvg==="nest"?yh(e,{styleParser:!1}):yh(e);return~c.extra.classes.indexOf(Ih)?F4("generateLayersText",e,c):F4("generateSvgReplacementMutation",e,c)}var w6=new Set;pi.map(function(e){w6.add("fa-".concat(e))});Object.keys(te[F2]).map(w6.add.bind(w6));Object.keys(te[c1]).map(w6.add.bind(w6));w6=fe(w6);function wh(e){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!B4)return Promise.resolve();var r=B2.documentElement.classList,n=function(V){return r.add("".concat(mh,"-").concat(V))},i=function(V){return r.remove("".concat(mh,"-").concat(V))},s=c2.autoFetchSvg?w6:pi.map(function(z){return"fa-".concat(z)}).concat(Object.keys(jS));s.includes("fa")||s.push("fa");var l=[".".concat(Ih,":not([").concat(m0,"])")].concat(s.map(function(z){return".".concat(z,":not([").concat(m0,"])")})).join(", ");if(l.length===0)return Promise.resolve();var u=[];try{u=S8(e.querySelectorAll(l))}catch{}if(u.length>0)n("pending"),i("complete");else return Promise.resolve();var p=gi.begin("onTree"),h=u.reduce(function(z,V){try{var L=td(V);L&&z.push(L)}catch(S){Bh||S.name==="MissingIcon"&&console.error(S)}return z},[]);return new Promise(function(z,V){Promise.all(h).then(function(L){ad(L,function(){n("active"),n("complete"),i("pending"),typeof c=="function"&&c(),p(),z()})}).catch(function(L){p(),V(L)})})}function XS(e){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;td(e).then(function(r){r&&ad([r],c)})}function YS(e){return function(c){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=(c||{}).icon?c:ai(c||{}),i=r.mask;return i&&(i=(i||{}).icon?i:ai(i||{})),e(n,$($({},r),{},{mask:i}))}}var KS=function(c){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.transform,i=n===void 0?m4:n,s=r.symbol,l=s===void 0?!1:s,u=r.mask,p=u===void 0?null:u,h=r.maskId,z=h===void 0?null:h,V=r.title,L=V===void 0?null:V,S=r.titleId,P=S===void 0?null:S,T=r.classes,W=T===void 0?[]:T,g=r.attributes,H=g===void 0?{}:g,C=r.styles,b=C===void 0?{}:C;if(c){var D=c.prefix,U=c.iconName,B=c.icon;return ur($({type:"icon"},c),function(){return h0("beforeDOMElementCreation",{iconDefinition:c,params:r}),c2.autoA11y&&(L?H["aria-labelledby"]="".concat( Line truncated
`),e.removeAttribute(r),n()}).catch(i)}else n()}else n()})}function rN(e){return Promise.all([Nh(e,"::before"),Nh(e,"::after")])}function aN(e){return e.parentNode!==document.head&&!~jw.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(Z9)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function bh(e){if(B4)return new Promise(function(c,r){var n=S8(e.querySelectorAll("*")).filter(aN).map(rN),i=gi.begin("searchPseudoElements");nd(),Promise.all(n).then(function(){i(),si(),c()}).catch(function(){i(),si(),r()})})}var nN={hooks:function(){return{mutationObserverCallbacks:function(r){return r.pseudoElementsCallback=bh,r}}},provides:function(c){c.pseudoElements2svg=function(r){var n=r.node,i=n===void 0?B2:n;c2.searchPseudoElements&&bh(i)}}},kh=!1,tN={mixout:function(){return{dom:{unwatch:function(){nd(),kh=!0}}}},hooks:function(){return{bootstrap:function(){xh(ri("mutationObserverCallbacks",{}))},noAuto:function(){IS()},watch:function(r){var n=r.observeMutationsRoot;kh?si():xh(ri("mutationObserverCallbacks",{observeMutationsRoot:n}))}}}},Ah=function(c){var r={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return c.toLowerCase().split(" ").reduce(function(n,i){var s=i.toLowerCase().split("-"),l=s[0],u=s.slice(1).join("-");if(l&&u==="h")return n.flipX=!0,n;if(l&&u==="v")return n.flipY=!0,n;if(u=parseFloat(u),isNaN(u))return n;switch(l){case"grow":n.size=n.size+u;break;case"shrink":n.size=n.size-u;break;case"left":n.x=n.x-u;break;case"right":n.x=n.x+u;break;case"up":n.y=n.y-u;break;case"down":n.y=n.y+u;break;case"rotate":n.rotate=n.rotate+u;break}return n},r)},iN={mixout:function(){return{parse:{transform:function(r){return Ah(r)}}}},hooks:function(){return{parseNodeAttributes:function(r,n){var i=n.getAttribute("data-fa-transform");return i&&(r.transform=Ah(i)),r}}},provides:function(c){c.generateAbstractTransformGrouping=function(r){var n=r.main,i=r.transform,s=r.containerWidth,l=r.iconWidth,u={transform:"translate(".concat(s/2," 256)")},p="translate(".concat(i.x*32,", ").concat(i.y*32,") "),h="scale(".concat(i.size/16*(i.flipX?-1:1),", ").concat(i.size/16*(i.flipY?-1:1),") "),z="rotate(".concat(i.rotate," 0 0)"),V={transform:"".concat(p," ").concat(h," ").concat(z)},L={transform:"translate(".concat(l/2*-1," -256)")},S={outer:u,inner:V,path:L};return{tag:"g",attributes:$({},S.outer),children:[{tag:"g",attributes:$({},S.inner),children:[{tag:n.icon.tag,children:n.icon.children,attributes:$($({},n.icon.attributes),S.path)}]}]}}}},Q9={x:0,y:0,width:"100%",height:"100%"};function Eh(e){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.attributes&&(e.attributes.fill||c)&&(e.attributes.fill="black"),e}function sN(e){return e.tag==="g"?e.children:[e]}var oN={hooks:function(){return{parseNodeAttributes:function(r,n){var i=n.getAttribute("data-fa-mask"),s=i?fr(i.split(" ").map(function(l){return l.trim()})):zi();return s.prefix||(s.prefix=y6()),r.mask=s,r.maskId=n.getAttribute("data-fa-mask-id"),r}}},provides:function(c){c.generateAbstractMask=function(r){var n=r.children,i=r.attributes,s=r.main,l=r.mask,u=r.maskId,p=r.transform,h=s.width,z=s.icon,V=l.width,L=l.icon,S=iS({transform:p,containerWidth:V,iconWidth:h}),P={tag:"rect",attributes:$($({},Q9),{},{fill:"white"})},T=z.children?{children:z.children.map(Eh)}:{},W={tag:"g",attributes:$({},S.inner),children:[Eh($({tag:z.tag,attributes:$($({},z.attributes),S.path)},T))]},g={tag:"g",attributes:$({},S.outer),children:[W]},H="mask-".concat(u||le()),C="clip-".concat(u||le()),b={tag:"mask",attributes:$($({},Q9),{},{id:H,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[P,g]},D={tag:"defs",children:[{tag:"clipPath",attributes:{id:C},children:sN(L)},b]};return n.push(D,{tag:"rect",attributes:$({fill:"currentColor","clip-path":"url(#".concat(C,")"),mask:"url(#".concat(H,")")},Q9)}),{children:n,attributes:i}}}},lN={provides:function(c){var r=!1;x6.matchMedia&&(r=x6.matchMedia("(prefers-reduced-motion: reduce)").matches),c.missingIconAbstract=function(){var n=[],i={fill:"currentColor"},s={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};n.push({tag:"path",attributes:$($({},i),{},{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,6 Line truncated
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function VN(e){var c,r=e.beat,n=e.fade,i=e.beatFade,s=e.bounce,l=e.shake,u=e.flash,p=e.spin,h=e.spinPulse,z=e.spinReverse,V=e.pulse,L=e.fixedWidth,S=e.inverse,P=e.border,T=e.listItem,W=e.flip,g=e.size,H=e.rotation,C=e.pull,b=(c={"fa-beat":r,"fa-fade":n,"fa-beat-fade":i,"fa-bounce":s,"fa-shake":l,"fa-flash":u,"fa-spin":p,"fa-spin-reverse":z,"fa-spin-pulse":h,"fa-pulse":V,"fa-fw":L,"fa-inverse":S,"fa-border":P,"fa-li":T,"fa-flip":W===!0,"fa-flip-horizontal":W==="horizontal"||W==="both","fa-flip-vertical":W==="vertical"||W==="both"},N8(c,"fa-".concat(g),typeof g<"u"&&g!==null),N8(c,"fa-rotate-".concat(H),typeof H<"u"&&H!==null&&H!==0),N8(c,"fa-pull-".concat(C),typeof C<"u"&&C!==null),N8(c,"fa-swap-opacity",e.swapOpacity),c);return Object.keys(b).map(function(D){return b[D]?D:null}).filter(function(D){return D})}function MN(e){return e=e-0,e===e}function zd(e){return MN(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,function(c,r){return r?r.toUpperCase():""}),e.substr(0,1).toLowerCase()+e.substr(1))}var CN=["style"];function LN(e){return e.charAt(0).toUpperCase()+e.slice(1)}function xN(e){return e.split(";").map(function(c){return c.trim()}).filter(function(c){return c}).reduce(function(c,r){var n=r.indexOf(":"),i=zd(r.slice(0,n)),s=r.slice(n+1).trim();return i.startsWith("webkit")?c[LN(i)]=s:c[i]=s,c},{})}function Hd(e,c){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(typeof c=="string")return c;var n=(c.children||[]).map(function(p){return Hd(e,p)}),i=Object.keys(c.attributes||{}).reduce(function(p,h){var z=c.attributes[h];switch(h){case"class":p.attrs.className=z,delete c.attributes.class;break;case"style":p.attrs.style=xN(z);break;default:h.indexOf("aria-")===0||h.indexOf("data-")===0?p.attrs[h.toLowerCase()]=z:p.attrs[zd(h)]=z}return p},{attrs:{}}),s=r.style,l=s===void 0?{}:s,u=dN(r,CN);return i.attrs.style=S6(S6({},i.attrs.style),l),e.apply(void 0,[c.tag,S6(S6({},i.attrs),u)].concat(Ci(n)))}var gd=!1;try{gd=!0}catch{}function yN(){if(!gd&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function vd(e){if(e&&mr(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(pr.icon)return pr.icon(e);if(e===null)return null;if(e&&mr(e)==="object"&&e.prefix&&e.iconName)return e;if(Array.isArray(e)&&e.length===2)return{prefix:e[0],iconName:e[1]};if(typeof e=="string")return{prefix:"fas",iconName:e}}function Mi(e,c){return Array.isArray(c)&&c.length>0||!Array.isArray(c)&&c?N8({},e,c):{}}var y1=xi.default.forwardRef(function(e,c){var r=e.icon,n=e.mask,i=e.symbol,s=e.className,l=e.title,u=e.titleId,p=e.maskId,h=vd(r),z=Mi("classes",[].concat(Ci(VN(e)),Ci(s.split(" ")))),V=Mi("transform",typeof e.transform=="string"?pr.transform(e.transform):e.transform),L=Mi("mask",vd(n)),S=id(h,S6(S6(S6(S6({},z),V),L),{},{symbol:i,title:l,titleId:u,maskId:p}));if(!S)return yN("Could not find icon",h),null;var P=S.abstract,T={ref:c};return Object.keys(e).forEach(function(W){y1.defaultProps.hasOwnProperty(W)||(T[W]=e[W])}),wN(P[0],T)});y1.displayName="FontAwesomeIcon";y1.propTypes={beat:d2.default.bool,border:d2.default.bool,beatFade:d2.default.bool,bounce:d2.default.bool,className:d2.default.string,fade:d2.default.bool,flash:d2.default.bool,mask:d2.default.oneOfType([d2.default.object,d2.default.array,d2.default.string]),maskId:d2.default.string,fixedWidth:d2.default.bool,inverse:d2.default.bool,flip:d2.default.oneOf([!0,!1,"horizontal","vertical","both"]),icon:d2.default.oneOfType([d2.default.object,d2.default.array,d2.default.string]),listItem:d2.default.bool,pull:d2.default.oneOf(["right","left"]),pulse:d2.default.bool,rotation:d2.default.oneOf([0,90,180,270]),shake:d2.default.bool,size:d2.default.oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:d2.default.bool,spinPulse:d2.default.bool,spinReverse:d2.default.bool,symbol:d2.default.oneOfType([d2.default.bool,d2.default.string]),title:d2.default.string,titleId:d2.default.string,transform:d2.default.oneOfType([d2.default.string,d2.default.object]),swapOpacity:d2.default.bool};y1.defaultProps={border:!1,className:"",mask:null,maskId:null,fixedWidth:!1,inverse:!1,flip:!1,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:null,transform:null,swapOpacity:!1};var wN=Hd.bind(null,xi.default.createElement);var V3=N2(f1());var hr="#a8a8a8",N6=s2.div`
display: flex;
flex-direction: row;
`,Mk=u2.div`
`,Bk=s2.div`
display: flex;
flex-direction: column;
`,W1=u2.button`
`,X1=s2.button`
border: 1px solid white;
font-size: 10pt;
@@ -837,72 +879,30 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
cursor: not-allowed;
}
transition: background-color 250ms;
`,Ck=u2.div`
`,Ik=s2.div`
background-color: rgba(255, 255, 255, 0.75);
color: rgb(10, 10, 10);
border: 2px solid black;
border-radius: 12px;
`,Z0=u2.div`
`,b8=s2.div`
border: 2px solid black;
border-radius: 12px;
margin: 5px;
padding: 5px;
width: auto;
`,J6=u2.input`
`,d0=s2.input`
background-color: rgba(255, 255, 255, 0.75);
color: rgb(10, 10, 10);
border: 2px solid black;
border-radius: 12px;
padding: 2px;
`;var gr=N2(f1());var O3=N2(f1());var n9=N2(f1()),qu=N2(f1()),e8=class extends n9.default.Component{ref=(0,qu.createRef)();componentDidMount(){this.update()}componentDidUpdate(c){(c.canvas!==this.props.canvas||c.width!==this.props.width||c.height!==this.props.height)&&this.update()}update(){let c=this.ref.current,r=c.width=this.props.width||this.props.canvas.width,n=c.height=this.props.height||this.props.canvas.height;c.style.width=`${r}px`,c.style.height=`${n}px`,c.getContext("2d").drawImage(this.props.canvas,0,0,r,n)}render(){return n9.default.createElement("canvas",{ref:this.ref})}};var A2=N2(f1());var G2=N2(f1());var hv=N2(gi()),gN=u2.div`
min-width: 250px;
min-height: 50px;
max-width: fit-content;
max-height: fit-content;
margin: 15px auto 15px auto;
padding: 10px;
pointer-events: all;
touch-action: auto;
background-color: rgba(255, 255, 255, 0.75);
color: rgb(10, 10, 10);
border-radius: 12px;
border: 2px solid black;
`,Vi=u2.p`
white-space: pre-warp;
`,Mi=u2.div`
display: flex;
`,VN=u2.input`
margin: 2px;
padding: 5px;
outline: none !important;
background-color: rgba(255, 255, 255, 0.75);
color: rgb(10, 10, 10);
border-radius: 12px;
border: 2px solid black;
`,k8=u2.button`
background-color: rgba(255, 255, 255, 0.75);
color: rgb(10, 10, 10);
border-radius: 12px;
border: 2px solid black;
width: 100%;
border-radius: none;
margin: 2px;
padding: 2px;
outline: none !important;
&:hover {
background-color: rgba(158, 158, 158, 0.75);
}
transition: background-color 250ms;
`,x1=class e{static _ref;static active;static root;static alert(c,r){return new Promise(n=>{e.clear();let i=()=>{n(),this.active=void 0,this.clear()};this.active=i,e.renderContent(G2.default.createElement("div",null,G2.default.createElement("h5",null,r||`${location.host} says`),G2.default.createElement(Vi,null,c),G2.default.createElement(k8,{onClick:()=>i()},"OK")))})}static async confirm(c,r){return new Promise(n=>{e.clear();let i=s=>{n(s),this.active=void 0,this.clear()};this.active=()=>i(!1),e.renderContent(G2.default.createElement("div",null,G2.default.createElement("h5",null,r||`${location.host} says`),G2.default.createElement(Vi,null,c),G2.default.createElement(Mi,null,G2.default.createElement(k8,{onClick:()=>i(!0)},"OK"),G2.default.createElement(k8,{onClick:()=>i(!1)},"Cancel"))))})}static async prompt(c,r,n){return new Promise(i=>{e.clear();let s=u=>{i(u),this.active=void 0,this.clear()};this.active=()=>s("");let l=(0,G2.createRef)();e.renderContent(G2.default.createElement("div",null,G2.default.createElement("h5",null,n||`${location.host} says`),G2.default.createElement(Vi,null,c),G2.default.createElement(VN,{ref:l,type:"text"}),G2.default.createElement(Mi,null,G2.default.createElement(k8,{onClick:()=>s(l.current&&l.current.value)},"OK"),G2.default.createElement(k8,{onClick:()=>s(null)},"Cancel")))),l.current&&(l.current.focus(),l.current.value=r||"",l.current.addEventListener("keyup",u=>{u.key.toLowerCase()==="enter"&&l.current&&s(l.current.value)}))})}static custom(c,r){return new Promise(n=>{e.clear();let i=()=>{this.active=void 0,n(),this.clear()};this.active=()=>i(),e.renderContent(G2.default.createElement("div",null,c,G2.default.createElement(Mi,null,r?r.map((s,l)=>G2.default.createElement(k8,{key:l,onClick:async u=>{let p=s.click(u),h;p instanceof Promise?h=await p:h=p,h||(this.active=void 0,this.clear(),n())}},s.content)):null)))})}static close(){this.clear()}static clear(){this.root&&(this.root.unmount(),this.root=void 0);let c=e.ref.style;c.pointerEvents="none",c.touchAction="none",c.backgroundColor="rgba(0, 0, 0, 0)",this.active&&this.active(),this.active=void 0}static renderContent(c){let r=e.createBase(c);this.root=(0,hv.createRoot)(e.ref),this.root.render(r);let n=e.ref.style;n.pointerEvents="all",n.touchAction="auto",n.backgroundColor="rgba(0, 0, 0, 0.5)"}static createBase(c){return G2.default.createElement(gN,null,c)}static get ref(){if(e._ref)return e._ref;let c=document.createElement("div");document.body.appendChild(c),e._ref=c;let r=c.style;return r.position="fixed",r.zIndex=`${Number.MAX_SAFE_INTEGER}`,r.width="100%",r.height="100%",r.pointerEvents="none",r.touchAction="none",r.backgroundColor="rgba(0, 0, 0, 0)",r.transition="background-color 1s",r.overflowY="auto",r.overflowX="hidden",c}};var zv=N2(dv());var vr=class{input=document.createElement("input");constructor(){this.input.type="file"}allowMultiple(c){this.input.multiple=c}setAcceptType(c){c?this.input.accept=c.map(r=>`.${r}`).join(", "):this.input.accept=""}show(){return new Promise((c,r)=>{let n=["mousemove","touchend"],i=()=>{s(),r(new Error("Not selected"))},s=()=>{n.forEach(u=>window.removeEventListener(u,i))},l=setTimeout(()=>{n.forEach(u=>window.addEventListener(u,()=>i))},100);this.input.addEventListener("change",()=>{clearTimeout(l),s(),this.input.files?c(this.input.files):r(new Error("Missing file"))}),this.input.click()})}};var dr=["muraljson","json"];var MN=25,Hv=u2.div`
`;var Vr=N2(f1());var T1=N2(f1());var yi=N2(f1()),Vd=N2(f1()),k8=class extends yi.default.Component{ref=(0,Vd.createRef)();componentDidMount(){this.update()}componentDidUpdate(c){(c.canvas!==this.props.canvas||c.width!==this.props.width||c.height!==this.props.height)&&this.update()}update(){let c=this.ref.current,r=c.width=this.props.width||this.props.canvas.width,n=c.height=this.props.height||this.props.canvas.height;c.style.width=`${r}px`,c.style.height=`${n}px`,c.getContext("2d").drawImage(this.props.canvas,0,0,r,n)}render(){return yi.default.createElement("canvas",{ref:this.ref})}};var A2=N2(f1());var Ld=N2(Cd());var vr=class{input=document.createElement("input");constructor(){this.input.type="file"}allowMultiple(c){this.input.multiple=c}setAcceptType(c){c?this.input.accept=c.map(r=>`.${r}`).join(", "):this.input.accept=""}show(){return new Promise((c,r)=>{let n=["mousemove","touchend"],i=()=>{s(),r(new Error("Not selected"))},s=()=>{n.forEach(u=>window.removeEventListener(u,i))},l=setTimeout(()=>{n.forEach(u=>window.addEventListener(u,()=>i))},100);this.input.addEventListener("change",()=>{clearTimeout(l),s(),this.input.files?c(this.input.files):r(new Error("Missing file"))}),this.input.click()})}};var zr=["muraljson","json"];var SN=25,xd=s2.div`
width: 100%;
//max-width: fit-content;
display: flex;
flex-direction: row;
flex-wrap: wrap;
`,CN=u2.div`
`,NN=s2.div`
display: flex;
flex-direction: column;
flex-wrap: wrap;
@@ -912,18 +912,49 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
padding: 2px;
text-align: center;
align-items: center;
`,gv=["FloydSteinberg","FalseFloydSteinberg","Stucki","Atkinson","Jarvis","Burkes","Sierra","TwoSierra","SierraLite"],LN=["Flat",...gv];async function Vv(e,c,r){let n=await EN();if(n){if(n.type==="mural")return n.data;{let i=n.data,s=await yN(i,r),l=await new Promise((u,p)=>{e.setOverlayModify({pixels:s,muralObj:{name:i.alt,x:Math.floor(c.ux-E0(s)/2),y:Math.floor(c.uy-A0(s)/2)},cb:(h,z,M,L)=>{L?u({name:h,pixels:s,x:z,y:M}):p(new Error("Canceled by user"))}})});return Ja(l),l}}}function xN(e){return new Promise(c=>{x1.custom(A2.default.createElement("div",null,A2.default.createElement("h4",null,"Dither results"),A2.default.createElement("div",null,"Pick a result that fits best in your situation"),A2.default.createElement(Hv,null,e.map((r,n)=>A2.default.createElement("div",{key:n},A2.default.createElement(CN,{style:{flexDirection:"column"},onClick:()=>{x1.close(),c(r)}},Cv(r.type),A2.default.createElement(Z0,null,A2.default.createElement(e8,{canvas:r.canvas}))))))),[{content:"Cancel",click:()=>{}}]).finally(()=>c(null))})}async function yN(e,c){let r=await wN(e),n=await SN(e,r,c),i;if(Array.isArray(n)?i=await xN(n):i=n,!i)throw new Error("User did not pick anything");let s=n7(i.canvas);return xv(s,c),Za(s,c.palette)}async function wN(e){let c=e.width,r=e.height,n="show-all",i=!1,s=!1;if(await new Promise((l,u)=>{x1.custom(A2.default.createElement("div",null,A2.default.createElement("h4",null,"Image import"),A2.default.createElement("div",null,A2.default.createElement("small",null,e.alt)),A2.default.createElement("div",{style:{whiteSpace:"pre-wrap"}},"You are importing image with size ",e.width,"x",e.height,".",`
`,"Do you want to preform any image manipulations?")),[{click:()=>{i=!1,l()},content:"Resize"},{click:()=>{i=!0,l()},content:"Import as it is"},{click:()=>{s=!0,l()},content:"Cancel"}]).then(()=>{u(new Error("User input has been interrupted"))})}),s)throw new Error("Operation canceled by user");if(i||await new Promise((l,u)=>{x1.custom(A2.default.createElement("div",null,A2.default.createElement("h4",null,"Image import"),A2.default.createElement("div",null,A2.default.createElement("small",null,e.alt)),A2.default.createElement("div",null,A2.default.createElement("strong",null,"Original size: ",e.width,"x",e.height)),A2.default.createElement(J6,{type:"number",min:1,onChange:p=>{R0(p,h=>{c=h})}}),"x",A2.default.createElement(J6,{type:"number",min:1,onChange:p=>{R0(p,h=>{r=h})}})),[{content:"Confirm",click:()=>{l()}},{content:"Cancel",click:()=>{s=!0,l()}}]).then(()=>u(new Error("User input has been interrupted")))}),s)throw new Error("Operation canceled by user");if(await new Promise((l,u)=>{x1.custom(A2.default.createElement("div",null,A2.default.createElement("h4",null,"Dither Settings"),A2.default.createElement("div",null,"Pickup dither algorithm"),A2.default.createElement(Hv,null,LN.map((p,h)=>A2.default.createElement(W1,{key:h,onClick:()=>{n=p,x1.close(),l()}},Cv(p))))),[{content:"Show all",click:()=>{n="show-all",l()}},{content:"Cancel",click:()=>{s=!0,l()}}]).then(()=>u(new Error("User input has been interrupted")))}),s)throw new Error("Operation canceled by user");return{height:r,width:c,noShrinking:i,quantizerSetting:n}}async function SN(e,c,r){c.noShrinking||(e=await ol(e,c.width,c.height));let n=ll(e);return c.quantizerSetting==="show-all"?bN(n,r):zr(n,c.quantizerSetting,r)}function Mv(e,c){let r=new zv.default(NN(c));return r.sample(e),r}function NN(e){return{palette:e.palette.map(c=>[c.r,c.g,c.b]),minHueCols:0,dithSerp:!1}}function bN(e,c){let r=[zr(e,"Flat",c)],n=Mv(e,c);for(let i of gv){let s=Lv(e,n,i),l=zr(s,"Flat",c);l.type=i,r.push(l)}return r}function zr(e,c,r){if(c==="Flat"){let n=n7(e);xv(n,r);let i=AN(n),s=Za(n,r.palette);return{type:"Flat",canvas:i,indices:s}}else{let n=Mv(e,r),i=Lv(e,n,c),s=zr(i,"Flat",r);return s.type=c,s}}function Cv(e){let c=e.split(""),r="";for(let n=0;n<c.length;n++){let i=c[n];i&&(n!==0&&i===i.toUpperCase()?(r+=" ",r+=i.toLowerCase()):r+=i)}return r}function Lv(e,c,r){let n=document.createElement("canvas");n.width=e.width,n.height=e.height;let i=n.getContext("2d"),s=n7(e),l=c.reduce(e,1,r);if(s.data.length!==l.length)throw new Error("Got unexpected data from regQuant");for(let u=0;u<s.data.length;u+=4)s.data[u+3]>MN&&(s.data[u+0]=l[u+0]??0,s.data[u+1]=l[u+1]??0,s.data[u+2]=l[u+2]??0,s.data[u+3]=255);return i.putImageData(s,0,0),n}function xv(e,c){for(let r=0;r<e.data.length;r+=4){let n=e.data[r+0]??0,i=e.data[r+1]??0,s=e.data[r+2]??0,l=e.data[r+3]??0,u=Qa(n,i,s),p=kN(u,c),h=c.palette[p];if(!h)throw new Error(`Unknown color index ${p}`);e.data[r+0]=h.r,e.data[r+1]=h.g,e.data[r+2]=h.b,e.data[r+3]=l}}function kN(e,c){let r=[];for(let s of c.palette){let l=U6(e.r,s.r),u=U6(e.g,s.g),p=U6(e.b,s.b);r.push(l+u+p)}let n=Math.min(...r);return r.indexOf(n)}function AN(e){let c=document.createElement("canvas"),r=c.getContext("2d");return c.width=e.width,c.height=e.height,r.putImageData(e,0,0),c}async function EN(){let e=new vr;e.setAcceptType(["png","jpg","jpeg",...dr]);let r=(await e.show())[0];if(!r)throw new Error("Empty file");let n=$a(r.name),i=n.text;if(dr.includes(n.ex)){let s=await tl(r),l=JSON.parse(s);return l.name||(l.name=await x1.prompt("Missing name for this mural. Please enter it manually",i)||""),Ja(l),{type:"mural",data:l}}else{let s=await il(r);return{type:"image",data:await sl(`${n.text}.${n.ex}`,s)}}}var yv=N2(xi());var PN=u2.div`
`,yd=["FloydSteinberg","FalseFloydSteinberg","Stucki","Atkinson","Jarvis","Burkes","Sierra","TwoSierra","SierraLite"],bN=["Flat",...yd];async function wd(e,c,r){let n=await ON();if(n){if(n.type==="mural")return n.data;{let i=n.data,s=await AN(i,r),l=await new Promise((u,p)=>{e.setOverlayModify({pixels:s,muralObj:{name:i.alt,x:Math.floor(c.ux-M8(s)/2),y:Math.floor(c.uy-V8(s)/2)},cb:(h,z,V,L)=>{L?u({name:h,pixels:s,x:z,y:V}):p(new Error("Canceled by user"))}})});return G9(l),l}}}function kN(e){return new Promise(c=>{x1.custom(A2.default.createElement("div",null,A2.default.createElement("h4",null,"Dither results"),A2.default.createElement("div",null,"Pick a result that fits best in your situation"),A2.default.createElement(xd,null,e.map((r,n)=>A2.default.createElement("div",{key:n},A2.default.createElement(NN,{style:{flexDirection:"column"},onClick:()=>{x1.close(),c(r)}},Nd(r.type),A2.default.createElement(b8,null,A2.default.createElement(k8,{canvas:r.canvas}))))))),[{content:"Cancel",click:()=>{}}]).finally(()=>c(null))})}async function AN(e,c){let r=await EN(e),n=await PN(e,r,c),i;if(Array.isArray(n)?i=await kN(n):i=n,!i)throw new Error("User did not pick anything");let s=Gc(i.canvas);return kd(s,c),q9(s,c.palette)}async function EN(e){let c=e.width,r=e.height,n="show-all",i=!1,s=!1;if(await new Promise((l,u)=>{x1.custom(A2.default.createElement("div",null,A2.default.createElement("h4",null,"Image import"),A2.default.createElement("div",null,A2.default.createElement("small",null,e.alt)),A2.default.createElement("div",{style:{whiteSpace:"pre-wrap"}},"You are importing image with size ",e.width,"x",e.height,".",`
`,"Do you want to preform any image manipulations?")),[{click:()=>{i=!1,l()},content:"Resize"},{click:()=>{i=!0,l()},content:"Import as it is"},{click:()=>{s=!0,l()},content:"Cancel"}]).then(()=>{u(new Error("User input has been interrupted"))})}),s)throw new Error("Operation canceled by user");if(i||await new Promise((l,u)=>{x1.custom(A2.default.createElement("div",null,A2.default.createElement("h4",null,"Image import"),A2.default.createElement("div",null,A2.default.createElement("small",null,e.alt)),A2.default.createElement("div",null,A2.default.createElement("strong",null,"Original size: ",e.width,"x",e.height)),A2.default.createElement(d0,{type:"number",min:1,onChange:p=>{C8(p,h=>{c=h})}}),"x",A2.default.createElement(d0,{type:"number",min:1,onChange:p=>{C8(p,h=>{r=h})}})),[{content:"Confirm",click:()=>{l()}},{content:"Cancel",click:()=>{s=!0,l()}}]).then(()=>u(new Error("User input has been interrupted")))}),s)throw new Error("Operation canceled by user");if(await new Promise((l,u)=>{x1.custom(A2.default.createElement("div",null,A2.default.createElement("h4",null,"Dither Settings"),A2.default.createElement("div",null,"Pickup dither algorithm"),A2.default.createElement(xd,null,bN.map((p,h)=>A2.default.createElement(X1,{key:h,onClick:()=>{n=p,x1.close(),l()}},Nd(p))))),[{content:"Show all",click:()=>{n="show-all",l()}},{content:"Cancel",click:()=>{s=!0,l()}}]).then(()=>u(new Error("User input has been interrupted")))}),s)throw new Error("Operation canceled by user");return{height:r,width:c,noShrinking:i,quantizerSetting:n}}async function PN(e,c,r){c.noShrinking||(e=await Gm(e,c.width,c.height));let n=jm(e);return c.quantizerSetting==="show-all"?TN(n,r):Hr(n,c.quantizerSetting,r)}function Sd(e,c){let r=new Ld.default(_N(c));return r.sample(e),r}function _N(e){return{palette:e.palette.map(c=>[c.r,c.g,c.b]),minHueCols:0,dithSerp:!1}}function TN(e,c){let r=[Hr(e,"Flat",c)],n=Sd(e,c);for(let i of yd){let s=bd(e,n,i),l=Hr(s,"Flat",c);l.type=i,r.push(l)}return r}function Hr(e,c,r){if(c==="Flat"){let n=Gc(e);kd(n,r);let i=DN(n),s=q9(n,r.palette);return{type:"Flat",canvas:i,indices:s}}else{let n=Sd(e,r),i=bd(e,n,c),s=Hr(i,"Flat",r);return s.type=c,s}}function Nd(e){let c=e.split(""),r="";for(let n=0;n<c.length;n++){let i=c[n];i&&(n!==0&&i===i.toUpperCase()?(r+=" ",r+=i.toLowerCase()):r+=i)}return r}function bd(e,c,r){let n=document.createElement("canvas");n.width=e.width,n.height=e.height;let i=n.getContext("2d"),s=Gc(e),l=c.reduce(e,1,r);if(s.data.length!==l.length)throw new Error("Got unexpected data from regQuant");for(let u=0;u<s.data.length;u+=4)s.data[u+3]>SN&&(s.data[u+0]=l[u+0]??0,s.data[u+1]=l[u+1]??0,s.data[u+2]=l[u+2]??0,s.data[u+3]=255);return i.putImageData(s,0,0),n}function kd(e,c){for(let r=0;r<e.data.length;r+=4){let n=e.data[r+0]??0,i=e.data[r+1]??0,s=e.data[r+2]??0,l=e.data[r+3]??0,u=Uc(n,i,s),p=RN(u,c),h=c.palette[p];if(!h)throw new Error(`Unknown color index ${p}`);e.data[r+0]=h.r,e.data[r+1]=h.g,e.data[r+2]=h.b,e.data[r+3]=l}}function RN(e,c){let r=[];for(let s of c.palette){let l=p4(e.r,s.r),u=p4(e.g,s.g),p=p4(e.b,s.b);r.push(l+u+p)}let n=Math.min(...r);return r.indexOf(n)}function DN(e){let c=document.createElement("canvas"),r=c.getContext("2d");return c.width=e.width,c.height=e.height,r.putImageData(e,0,0),c}async function ON(){let e=new vr;e.setAcceptType(["png","jpg","jpeg",...zr]);let r=(await e.show())[0];if(!r)throw new Error("Empty file");let n=W9(r.name),i=n.text;if(zr.includes(n.ex)){let s=await Im(r),l=JSON.parse(s);return l.name||(l.name=await x1.prompt("Missing name for this mural. Please enter it manually",i)||""),G9(l),{type:"mural",data:l}}else{let s=await Um(r);return{type:"image",data:await Wm(`${n.text}.${n.ex}`,s)}}}var Ad=N2($a());var FN=s2.div`
margin: 2px;
margin-left: 6px;
`,_N=u2.h5`
`,BN=s2.h5`
font-weight: bolder;
margin-right: 4px;
`,TN=u2.div`
`,IN=s2.div`
font-size: 10pt;
display: flex;
flex-direction: row;
`,Hr=class extends O3.default.Component{MAX_SIZE=100;constructor(c){super(c),this.state={height:this.MAX_SIZE,width:this.MAX_SIZE,overlay:!1}}componentDidMount(){this.updateSize()}componentDidUpdate(c){this.props.mural.ref!==c.mural.ref&&this.updateSize()}updateSize=()=>{let c=this.props.mural.ref.width,r=this.props.mural.ref.height,n=c,i=r;c>r?c>this.MAX_SIZE&&(i=this.MAX_SIZE*(r/c),n=this.MAX_SIZE):r>this.MAX_SIZE&&(n=this.MAX_SIZE*(c/r),i=this.MAX_SIZE),this.setState({height:i,width:n})};renderInfoLine(c,r){return O3.default.createElement(TN,null,O3.default.createElement(_N,null,c,":"),O3.default.createElement("span",null," ",r))}btn(c,r,n,i){return O3.default.createElement(W1,{style:{borderColor:i?Y7:""},onClick:()=>n()},c," ",O3.default.createElement(N1,{icon:r})," ")}get s(){return this.props.store}onLoad=c=>{let r=c.target;"tagName"in r&&(["button","svg","path"].includes(r.tagName.toLowerCase())||this.s.select(this.props.selected?void 0:this.props.mural))};onModify=async()=>{let c=this.props.mural;this.props.store.setOverlayModify({pixels:this.props.mural.pixels,cb:(r,n,i,s)=>{s&&(c.name=r,c.x=n,c.y=i,this.props.store.updateMural(c))},muralObj:{name:this.props.mural.name,x:this.props.mural.x,y:this.props.mural.y}})};onExport=()=>{let c={name:this.props.mural.name,x:this.props.mural.x,y:this.props.mural.y,pixels:this.props.mural.pixels},r=new Blob([JSON.stringify(c)],{type:"application/json;charset=utf-8"});(0,yv.default)(r,`${c.name}.${dr[0]}`)};onDelete=async()=>{await x1.confirm(`Are you sure you want to remove "${this.props.mural.name}"`)&&this.s.remove(this.props.mural)};onEnter=()=>{this.props.store.addPhantomOverlay(this.props.mural)};onLeave=()=>{this.props.store.removePhantomOverlay()};onGoto=()=>{let c=_0(this.props.mural),r=P0(this.props.mural),n=this.props.mural.x+Math.round(c/2),i=this.props.mural.y+Math.round(r/2),s=`${origin}/@${n},${i},${this.props.cords.uScale}`;location.href=s};onPreview=()=>{this.props.store.hasOverlay(this.props.mural)?this.props.store.removeOverlay(this.props.mural):this.props.store.addOverlay(this.props.mural)};render(){return O3.default.createElement(Z0,{onClick:this.onLoad,style:{border:this.props.selected?"3px solid black":"3px dotted black",cursor:"pointer"},onMouseEnter:this.onEnter,onMouseLeave:this.onLeave},O3.default.createElement($6,null,O3.default.createElement(e8,{canvas:this.props.mural.ref,height:this.state.height,width:this.state.width}),O3.default.createElement(PN,{style:{flex:"1"}},this.renderInfoLine("Name",this.props.mural.name),this.renderInfoLine("PixelCount",t7(this.props.mural.pixelCount)),this.renderInfoLine("x",this.props.mural.x.toString()),this.renderInfoLine("y",this.props.mural.y.toString()),this.renderInfoLine("size",`${_0(this.props.mural)}x${P0(this.props.mural)}`))),O3.default.createElement($6,null,this.btn("Preview",yl,this.onPreview,this.props.store.hasOverlay(this.props.mural)),this.btn("Modify",Ll,this.onModify),this.btn("Export",El,this.onExport),this.btn("Delete",Nl,this.onDelete),this.btn("Goto",Sl,this.onGoto)))}};var ON=u2.div`
`,UN=s2.strong`
margin-right: 2px;
`,WN=s2.button`
border: 1px solid white;
font-size: 50pt;
width: 22px;
background-color: rgba(255, 255, 255, 0.75);
color: rgb(10, 10, 10);
border-radius: 12px;
border: 2px solid black;
margin: 1px;
margin-left: 3px;
display: flex;
padding: 3px;
outline: none !important;
text-decoration: none;
&:hover {
background-color: rgba(158, 158, 158, 0.75);
}
&:visited {
text-decoration: none;
}
&:disabled {
color: gray;
border-color: gray;
cursor: not-allowed;
}
transition: background-color 250ms;
`,gr=class extends T1.default.Component{MAX_SIZE=100;constructor(c){super(c),this.state={height:this.MAX_SIZE,width:this.MAX_SIZE,overlay:!1}}componentDidMount(){this.updateSize()}componentDidUpdate(c){this.props.mural.ref!==c.mural.ref&&(this.updateSize(),typeof this.state.progress=="function"&&(this.state.progress(),this.setState({progress:void 0})))}updateSize=()=>{let c=this.props.mural.ref.width,r=this.props.mural.ref.height,n=c,i=r;c>r?c>this.MAX_SIZE&&(i=this.MAX_SIZE*(r/c),n=this.MAX_SIZE):r>this.MAX_SIZE&&(n=this.MAX_SIZE*(c/r),i=this.MAX_SIZE),this.setState({height:i,width:n})};renderInfoLine(c,r){return T1.default.createElement(IN,null,T1.default.createElement(BN,null,c,":"),T1.default.createElement("span",null,r))}btn(c,r,n,i){return T1.default.createElement(X1,{style:{borderColor:i?hr:""},onClick:()=>n()},c," ",T1.default.createElement(y1,{icon:r})," ")}get s(){return this.props.store}onLoad=c=>{let r=c.target;"tagName"in r&&(["button","svg","path"].includes(r.tagName.toLowerCase())||this.s.select(this.props.selected?void 0:this.props.mural))};onModify=async()=>{let c=this.props.mural;this.props.store.setOverlayModify({pixels:this.props.mural.pixels,cb:(r,n,i,s)=>{s&&(c.name=r,c.x=n,c.y=i,this.props.store.updateMural(c))},muralObj:{name:this.props.mural.name,x:this.props.mural.x,y:this.props.mural.y}})};onExport=()=>{let c={name:this.props.mural.name,x:this.props.mural.x,y:this.props.mural.y,pixels:this.props.mural.pixels},r=new Blob([JSON.stringify(c)],{type:"application/json;charset=utf-8"});(0,Ad.default)(r,`${c.name}.${zr[0]}`)};onDelete=async()=>{await x1.confirm(`Are you sure you want to remove "${this.props.mural.name}"`)&&this.s.remove(this.props.mural)};onEnter=()=>{this.props.store.addPhantomOverlay(this.props.mural)};onLeave=()=>{this.props.store.removePhantomOverlay()};onGoto=()=>{let c=f0(this.props.mural),r=l0(this.props.mural),n=this.props.mural.x+Math.round(c/2),i=this.props.mural.y+Math.round(r/2),s=`${origin}/@${n},${i},${this.props.cords.uScale}`;location.href=s};onPreview=()=>{this.props.store.hasOverlay(this.props.mural)?this.props.store.removeOverlay(this.props.mural):this.props.store.addOverlay(this.props.mural)};updateProgress=async()=>{let c=!1,r=()=>{c=!0};this.setState({progress:r});let n=await qm(this.props.mural,this.props.palette.palette);c||this.setState({progress:n})};renderProgress(){if(typeof this.state.progress=="function")return"Loading...";let c=T1.default.createElement(WN,{onClick:this.updateProgress},T1.default.createElement(y1,{icon:Km}));if(this.state.progress&&this.state.progress.total!==0){let{total:r,bad:n,good:i}=this.state.progress;return T1.default.createElement(N6,null,T1.default.createElement(UN,null,Math.floor(i/r*100),"%")," ",n>0?ce(n):"",c)}else return c}render(){return T1.default.createElement(b8,{onClick:this.onLoad,style:{border:this.props.selected?"3px solid black":"3px dotted black",cursor:"pointer"},onMouseEnter:this.onEnter,onMouseLeave:this.onLeave},T1.default.createElement(N6,null,T1.default.createElement(k8,{canvas:this.props.mural.ref,height:this.state.height,width:this.state.width}),T1.default.createElement(FN,{style:{flex:"1"}},this.renderInfoLine("Name",this.props.mural.name),this.renderInfoLine("Pixel count",ce(this.props.mural.pixelCount)),this.renderInfoLine("X",this.props.mural.x.toString()),this.renderInfoLine("Y",this.props.mural.y.toString()),this.renderInfoLine("Size",`${f0(this.props.mural)}x${l0(this.props.mural)}`),this.renderInfoLine("Progress",this.renderProgress()))),T1.default.createElement(N6,null,this.btn("Preview",Qm,this.onPreview,this.props.store.hasOverlay(this.props.mural)),this.btn("Modify",Xm,this.onModify),this.btn("Export",ah,this.onExport),this.btn("Delete",Zm,this.onDelete),this.btn("Goto",Jm,this.onGoto)))}};var qN=s2.div`
overflow: auto;
max-height: 250pt;
min-width: 200pt;
@@ -945,11 +976,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
border-radius: 12px;
border: 2px solid transparent;
}
`,Vr=class extends gr.default.Component{constructor(c){super(c),this.state={murals:[]}}componentDidMount(){this.props.store.on(7,this.update),this.update()}componentWillUnmount(){this.props.store.off(7,this.update)}update=()=>{this.setState({murals:this.props.store.murals,selected:this.props.store.selected})};render(){return gr.default.createElement(ON,null," ",this.state.murals.map((c,r)=>gr.default.createElement(Hr,{key:r,mural:c,cords:this.props.cords,store:this.props.store,selected:c===this.state.selected?.m})))}};var wv=N2(xi());var Sv=N2(f1());function DN(){return new Promise(e=>{let c=document.createElement("div"),r=document.createElement("div"),n=c.style;n.position="fixed",n.zIndex="100000",n.left=n.top="0",n.width=`${window.innerWidth}px`,n.height=`${window.innerHeight}px`,document.body.appendChild(c),n.backgroundColor="rgba(0, 0, 0, 0.50)";let i=r.style;i.position="fixed",i.zIndex="100001",i.width="5px",i.height="5px",i.border="2px solid white";let s,l=(W,g,H,C)=>{s={x:W,y:g,xOff:H,yOff:C}},u=W=>{l(W.clientX,W.clientY,W.offsetX,W.offsetY)},p=W=>{let g=W.touches[W.touches.length-1],H=W.target,{x:C,y:b,width:O,height:U}=H.getBoundingClientRect(),B=(g.clientX-C)/O*H.offsetWidth,Z=(g.clientY-b)/U*H.offsetHeight;l(g.clientX,g.clientY,B,Z)},h=(W,g)=>{if(!s)return{x:W,y:g,width:0,height:0};let H=Math.min(W,s.x),C=Math.max(W,s.x),b=Math.min(g,s.y),O=Math.max(g,s.y),U=C-H,B=O-b;return{x:Math.floor(H),y:Math.floor(b),width:Math.ceil(U),height:Math.ceil(B)}},z=(W,g)=>{if(!s)return;document.body.contains(r)||document.body.appendChild(r);let H=h(W,g),C=r.style;C.width=`${H.width}px`,C.height=`${H.height}px`,C.left=`${H.x}px`,C.top=`${H.y}px`},M=W=>{if(!s||!(W instanceof MouseEvent))return;let{clientX:g,clientY:H}=W;z(g,H)},L=W=>{if(!s||!(W instanceof TouchEvent)||!W.isTrusted)return;let g=W.touches[0];if(i.borderWidth="6px",g){let{clientX:H,clientY:C}=g;z(H,C)}},S=(W,g)=>{if(s){let H=h(W,g);s=void 0,window.removeEventListener("mousedown",R),window.removeEventListener("touchend",P),window.removeEventListener("mousedown",u),window.removeEventListener("touchstart",p),window.removeEventListener("mouseup",M),window.removeEventListener("touchmove",L),document.body.removeChild(c),document.body.contains(r)&&document.body.removeChild(r),e(H)}},P=W=>{let g=W.touches[0]||W.changedTouches[0];if(g){let{clientX:H,clientY:C}=g;S(H,C)}},R=W=>{S(W.clientX,W.clientY)};window.addEventListener("mouseup",R),window.addEventListener("touchend",P),window.addEventListener("mousedown",u),window.addEventListener("touchstart",p),window.addEventListener("mousemove",M),window.addEventListener("touchmove",L)})}async function Nv(e){let c=await DN(),r=e.uScale,n=e.screenToGrid(c.x,c.y),i=e.screenToGrid(c.x+c.width,c.height+c.y);if(!n||!i)return;let s=T0();s.width=c.width/Math.pow(2,r),s.height=c.height/Math.pow(2,r);let l=s.getContext("2d"),u=Math.floor(n.x%R2),p=Math.floor(n.y%R2),h=[];for(let z=0;z<c.width+R2;z+=R2)for(let M=0;M<c.height+R2;M+=R2){let L=new Promise((S,P)=>{fl(n.x+z,n.y+M).then(R=>{let W=n.x>0?-u:-(R2+u)%R2,g=n.y>0?-p:-(R2+p)%R2;l.drawImage(R,z+W,M+g),S()}).catch(P)});h.push(L)}try{await Promise.all(h);let z=s.toDataURL();x1.custom(Sv.default.createElement("img",{style:{border:"1px solid black"},src:z}),[{content:"Download",click:()=>{s.toBlob(M=>{let L=Math.floor(n.x+c.width/2),S=Math.floor(n.x+c.height/2);M&&(0,wv.default)(M,`${L}:${S}:${new Date().toLocaleDateString()}.png`)})}},{content:"Cancel",click:()=>{}}])}catch{x1.alert("Something went wrong while trying to capture screenshot")}}var FN=u2.div`
`,Mr=class extends Vr.default.Component{constructor(c){super(c),this.state={murals:[]}}componentDidMount(){this.props.store.on(7,this.update),this.update()}componentWillUnmount(){this.props.store.off(7,this.update)}update=()=>{this.setState({murals:this.props.store.murals,selected:this.props.store.selected})};render(){return Vr.default.createElement(qN,null," ",this.state.murals.map((c,r)=>Vr.default.createElement(gr,{key:r,mural:c,cords:this.props.cords,palette:this.props.palette,store:this.props.store,selected:c===this.state.selected?.m})))}};var jN=s2.div`
`,BN=u2.div`
`,XN=s2.div`
margin: 2px 4px;
`,IN=u2.input`
`,YN=s2.input`
&[type="range"] {
-webkit-appearance: none;
appearance: none;
@@ -996,7 +1027,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
border-radius: 12px;
}
`,Mr=class extends g3.default.Component{constructor(c){super(c),this.state={takingCanvasShot:!1,canvasShotAvailable:!0}}componentDidMount(){this.props.cords.on(1,this.checkIsScreenShotAvailable)}componentWillUnmount(){this.props.cords.off(1,this.checkIsScreenShotAvailable)}checkIsScreenShotAvailable=()=>{this.setState({canvasShotAvailable:this.props.cords.uScale>=0})};import=async()=>{try{let c=await Vv(this.props.store,this.props.cords,this.props.palette);c&&this.props.store.add(c)}catch(c){console.error(c),x1.alert(c.name)}};inputElement=c=>{let r=parseInt(c.target.value);this.props.onOpacityChange(r)};screenshot=async()=>{this.props.cords.uScale<0,this.setState({takingCanvasShot:!0}),await Nv(this.props.cords),this.setState({takingCanvasShot:!1})};render(){return g3.default.createElement(FN,null,g3.default.createElement($6,null,g3.default.createElement(W1,{onClick:this.screenshot,disabled:this.state.takingCanvasShot||!this.state.canvasShotAvailable,title:"screenshot"},g3.default.createElement(N1,{icon:bl})),g3.default.createElement(W1,{onClick:this.import,title:"Import"},g3.default.createElement(N1,{icon:Pl})),g3.default.createElement(IN,{type:"range",min:0,max:100,value:this.props.opacity,onInput:this.inputElement}),g3.default.createElement(BN,null,this.props.opacity,"%"),g3.default.createElement(W1,{onClick:()=>this.props.onCollapsedChanged(!this.props.collapsed)},g3.default.createElement(N1,{icon:this.props.collapsed?Al:xl}))),this.props.collapsed?null:g3.default.createElement(Vr,{store:this.props.store,cords:this.props.cords}))}};var S6=N2(f1());var pe=N2(Z8()),UN=u2.div`
`,Cr=class extends V3.default.Component{constructor(c){super(c),this.state={takingCanvasShot:!1,canvasShotAvailable:!0}}componentDidMount(){this.props.cords.on(1,this.checkIsScreenShotAvailable)}componentWillUnmount(){this.props.cords.off(1,this.checkIsScreenShotAvailable)}checkIsScreenShotAvailable=()=>{this.setState({canvasShotAvailable:this.props.cords.uScale>=0})};import=async()=>{try{let c=await wd(this.props.store,this.props.cords,this.props.palette);c&&this.props.store.add(c)}catch(c){console.error(c),x1.alert(c.name)}};inputElement=c=>{let r=parseInt(c.target.value);this.props.onOpacityChange(r)};screenshot=async()=>{this.props.cords.uScale<0,this.setState({takingCanvasShot:!0}),await Dm(this.props.cords),this.setState({takingCanvasShot:!1})};render(){return V3.default.createElement(jN,null,V3.default.createElement(N6,null,V3.default.createElement(X1,{onClick:this.screenshot,disabled:this.state.takingCanvasShot||!this.state.canvasShotAvailable,title:"screenshot"},V3.default.createElement(y1,{icon:eh})),V3.default.createElement(X1,{onClick:this.import,title:"Import"},V3.default.createElement(y1,{icon:nh})),V3.default.createElement(YN,{type:"range",min:0,max:100,value:this.props.opacity,onInput:this.inputElement}),V3.default.createElement(XN,null,this.props.opacity,"%"),V3.default.createElement(X1,{onClick:()=>this.props.onCollapsedChanged(!this.props.collapsed)},V3.default.createElement(y1,{icon:this.props.collapsed?rh:Ym}))),this.props.collapsed?null:V3.default.createElement(Mr,{store:this.props.store,palette:this.props.palette,cords:this.props.cords}))}};var b6=N2(f1());var me=N2(Z8()),KN=s2.div`
position: fixed;
padding-top: 20px;
padding: 5px;
@@ -1005,16 +1036,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
color: rgb(10, 10, 10);
border-radius: 12px;
border: 2px solid black;
`,WN=u2.div`
`,QN=s2.div`
border: 1px black dotted;
cursor: grab;
user-select: none;
border-radius: 12px;
padding: 4px;
`,h0=class extends S6.default.Component{ref=(0,S6.createRef)();dragRef=(0,S6.createRef)();moving;destroyed=!1;constructor(c){super(c),this.state={x:-window.innerWidth,y:-window.innerHeight,moving:!1}}componentDidMount(){window.addEventListener("mousemove",this.onMouseMove),window.addEventListener("mouseup",this.onMouseUp),window.addEventListener("resize",this.fixBounds),window.addEventListener("touchmove",this.onTouchMove),window.addEventListener("touchend",this.onMouseUp),this.props.storage.getItem(this.storageKey).then(c=>{!this.destroyed&&c?(this.setState({x:c.x,y:c.y}),setTimeout(()=>{this.fixBounds()},1e3)):this.setState({x:0,y:0})})}componentWillUnmount(){window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("mouseup",this.onMouseUp),window.removeEventListener("resize",this.fixBounds),window.removeEventListener("touchmove",this.onTouchMove),window.removeEventListener("touchend",this.onMouseUp),this.destroyed=!1}onTouchMove=c=>{if(this.moving&&!(!(c instanceof TouchEvent)||!c.isTrusted))for(let r=0;r<c.touches.length;r++){let n=c.touches[r],{clientX:i,clientY:s}=n;this.handleMoveLogic(i,s)}};setMoving=(c,r,n,i)=>{this.moving={x:c,y:r,xOff:n,yOff:i}};onMouseMove=c=>{if(!this.moving||!(c instanceof MouseEvent)||c.ctrlKey||c.altKey||c.metaKey)return;let{clientX:r,clientY:n}=c;this.handleMoveLogic(r,n)};onMouseUp=()=>{this.moving=void 0,this.setState({moving:!1})};fixBounds=()=>{let c=this.ref.current?.getBoundingClientRect();if(c){let r=this.state.x,n=this.state.y;c.left<0&&(r=0),c.right>window.innerWidth&&(r=window.innerWidth-c.width),c.top<0&&(n=0),c.bottom>window.innerHeight&&(n=window.innerHeight-c.height),(this.state.x!==r||this.state.y!==n)&&this.setState({x:r,y:n})}};savePoint=(0,pe.debounce)(c=>{this.props.storage.setItem(this.storageKey,c)},100);handleMoveLogic(c,r){let n=this.ref.current?.getBoundingClientRect();if(n&&this.moving){let i=c-this.moving.xOff,s=r-this.moving.yOff,l=(0,pe.clamp)(i,0,window.innerWidth-n.width),u=(0,pe.clamp)(s,0,window.innerHeight-n.height),p={x:l,y:u};this.savePoint(p),this.setState(p)}}onMouseDown=c=>{this.setMoving(c.clientX,c.clientY,c.nativeEvent.offsetX,c.nativeEvent.offsetY),this.setState({moving:!0})};onTouchStart=c=>{let r=c.nativeEvent.touches[c.nativeEvent.touches.length-1],n=c.target,{x:i,y:s,width:l,height:u}=n.getBoundingClientRect(),p=(r.clientX-i)/l*n.offsetWidth,h=(r.clientY-s)/u*n.offsetHeight;this.setMoving(r.clientX,r.clientY,p,h),this.setState({moving:!0})};get storageKey(){return`__storage__${this.props.storageKey}`}render(){return S6.default.createElement(UN,{ref:this.ref,style:{left:`${this.state.x}px`,top:`${this.state.y}px`}},S6.default.createElement(WN,{ref:this.dragRef,style:{cursor:this.state.moving?"grabbing":""},onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart}," ",S6.default.createElement("h2",null,this.props.title)," "),this.props.children)}};var T1=N2(f1());var Av=N2(Z8()),GN=u2.div`
`,v0=class extends b6.default.Component{ref=(0,b6.createRef)();dragRef=(0,b6.createRef)();moving;destroyed=!1;constructor(c){super(c),this.state={x:-window.innerWidth,y:-window.innerHeight,moving:!1}}componentDidMount(){window.addEventListener("mousemove",this.onMouseMove),window.addEventListener("mouseup",this.onMouseUp),window.addEventListener("resize",this.fixBounds),window.addEventListener("touchmove",this.onTouchMove),window.addEventListener("touchend",this.onMouseUp),this.props.storage.getItem(this.storageKey).then(c=>{!this.destroyed&&c?(this.setState({x:c.x,y:c.y}),setTimeout(()=>{this.fixBounds()},1e3)):this.setState({x:0,y:0})})}componentWillUnmount(){window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("mouseup",this.onMouseUp),window.removeEventListener("resize",this.fixBounds),window.removeEventListener("touchmove",this.onTouchMove),window.removeEventListener("touchend",this.onMouseUp),this.destroyed=!1}onTouchMove=c=>{if(this.moving&&!(!(c instanceof TouchEvent)||!c.isTrusted))for(let r=0;r<c.touches.length;r++){let n=c.touches[r],{clientX:i,clientY:s}=n;this.handleMoveLogic(i,s)}};setMoving=(c,r,n,i)=>{this.moving={x:c,y:r,xOff:n,yOff:i}};onMouseMove=c=>{if(!this.moving||!(c instanceof MouseEvent)||c.ctrlKey||c.altKey||c.metaKey)return;let{clientX:r,clientY:n}=c;this.handleMoveLogic(r,n)};onMouseUp=()=>{this.moving=void 0,this.setState({moving:!1})};fixBounds=()=>{let c=this.ref.current?.getBoundingClientRect();if(c){let r=this.state.x,n=this.state.y;c.left<0&&(r=0),c.right>window.innerWidth&&(r=window.innerWidth-c.width),c.top<0&&(n=0),c.bottom>window.innerHeight&&(n=window.innerHeight-c.height),(this.state.x!==r||this.state.y!==n)&&this.setState({x:r,y:n})}};savePoint=(0,me.debounce)(c=>{this.props.storage.setItem(this.storageKey,c)},100);handleMoveLogic(c,r){let n=this.ref.current?.getBoundingClientRect();if(n&&this.moving){let i=c-this.moving.xOff,s=r-this.moving.yOff,l=(0,me.clamp)(i,0,window.innerWidth-n.width),u=(0,me.clamp)(s,0,window.innerHeight-n.height),p={x:l,y:u};this.savePoint(p),this.setState(p)}}onMouseDown=c=>{this.setMoving(c.clientX,c.clientY,c.nativeEvent.offsetX,c.nativeEvent.offsetY),this.setState({moving:!0})};onTouchStart=c=>{let r=c.nativeEvent.touches[c.nativeEvent.touches.length-1],n=c.target,{x:i,y:s,width:l,height:u}=n.getBoundingClientRect(),p=(r.clientX-i)/l*n.offsetWidth,h=(r.clientY-s)/u*n.offsetHeight;this.setMoving(r.clientX,r.clientY,p,h),this.setState({moving:!0})};get storageKey(){return`__storage__${this.props.storageKey}`}render(){return b6.default.createElement(KN,{ref:this.ref,style:{left:`${this.state.x}px`,top:`${this.state.y}px`}},b6.default.createElement(QN,{ref:this.dragRef,style:{cursor:this.state.moving?"grabbing":""},onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart}," ",b6.default.createElement("h2",null,this.props.title)," "),this.props.children)}};var R1=N2(f1());var _d=N2(Z8()),$N=s2.div`
display: flex;
flex-direction: row;
`,kv=u2.div`
`,Pd=s2.div`
width: 25px;
height: 25px;
margin: 2px;
@@ -1022,24 +1053,24 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
border-radius: 12px;
text-align: center;
font-weight: bolder;
`,qN=u2.span`
`,JN=s2.span`
width: 25px;
text-align: center;
margin: auto;
`,jN=u2.canvas`
`,ZN=s2.canvas`
border-radius: 12px;
border: 2px solid black;
`,Cr=class extends T1.default.Component{ref=T1.default.createRef();cache=new Map;transparentGrid=["#c5c5c540","#8d8d8d40"];highlighColor="#00000040";lastColor=-1;storageKey="_minimap_settings";destroyed=!1;constructor(c){super(c),this.state={size:16,color:-1,colorAssistant:!1}}componentDidUpdate(c,r){c.selected.m.ref!==this.props.selected.m.ref?(this.cache.clear(),this.draw()):r.size!==this.state.size&&this.draw()}click(c){c>=0&&c<this.props.palette.palette.length&&(this.props.palette.buttons[c].classList.contains("outline-2")||this.state.colorAssistant&&this.props.palette.buttons[c].click())}componentDidMount(){this.props.cords.on(0,this.update),this.props.cords.on(0,this.onCords),this.props.storage.getItem(this.storageKey).then(c=>{c&&!this.destroyed&&this.setState({colorAssistant:c.colorAssistant,size:c.size})}),this.draw()}componentWillUnmount(){this.destroyed=!0,this.props.cords.off(0,this.update),this.props.cords.off(0,this.onCords)}saveSettings(){this.props.storage.setItem(this.storageKey,{colorAssistant:this.state.colorAssistant,size:this.state.size})}onCords=(c,r)=>{let n=this.props.store;if(n.selected&&n.selected.m.x<c&&n.selected.m.y<r&&n.selected.w+n.selected.m.x>c&&n.selected.h+n.selected.m.y>r){let i=c-n.selected.m.x,s=r-n.selected.m.y,l=n.selected.m.pixels[s][i];this.lastColor!==l&&(this.lastColor=l,this.click(l))}};drawGrid(c,r,n,i){for(let s=0;s<i;s+=r)for(let l=0;l<n;l+=r){let u=Math.floor(s/r)%2===0,p=Math.floor(l/r)%2===0,h=u&&p||!u&&!p;c.fillStyle=h?this.transparentGrid[0]:this.transparentGrid[1],c.fillRect(l,s,r,r)}}update=()=>{let c=this.props.selected.m,r=this.props.cords.x-c.x,n=this.props.cords.y-c.y;if(c.pixels[n]!==void 0&&c.pixels[n][r]!==void 0){let i=c.pixels[n][r];this.setState({color:i}),this.draw();return}this.setState({color:-1}),this.draw()};getCachedImage(c){let r=this.cache.get(c);if(r)return r;let n=this.props.selected,i=T0();return en(i,n.m.pixels,this.props.palette.hex,c),this.cache.set(c,i),i}draw=()=>{let c=this.ref.current,r=c.getContext("2d"),n=c.width=200,i=c.height=200,s=n/2,l=i/2;r.clearRect(0,0,n,i);let u=this.state.size;this.drawGrid(r,u*4,n,i);let p=1*u/2,h=(this.props.selected.m.x-this.props.cords.x)*u+Math.ceil(s-p),z=(this.props.selected.m.y-this.props.cords.y)*u+Math.ceil(l-p),M=this.getCachedImage(u);if(r.drawImage(M,h,z,M.width,M.height),u!=1){r.fillStyle=this.highlighColor;let L=i/2,S=i/2;r.fillRect(0,0,n,L-p),r.fillRect(0,L+p,n,L-p),r.fillRect(0,L-p,S-p,p*2),r.fillRect(S+p,L-p,S-p,p*2)}};up=()=>{this.setState({size:this.clamp(this.state.size*2)})};down=()=>{this.setState({size:this.clamp(this.state.size/2)})};setSize(c){this.setState({size:c})}clamp(c){return(0,Av.clamp)(c,1,32)}renderColor(){return this.state.color!==-1?T1.default.createElement(kv,{style:{backgroundColor:this.props.palette.hex[this.state.color]}}):T1.default.createElement(kv,null," / ")}toggleColorAssistant=()=>{this.setState({colorAssistant:!this.state.colorAssistant})};render(){return T1.default.createElement("div",null,T1.default.createElement(GN,null,T1.default.createElement(W1,{onClick:this.up},T1.default.createElement(N1,{icon:_l})),T1.default.createElement(qN,null,this.state.size),T1.default.createElement(W1,{onClick:this.down},T1.default.createElement(N1,{icon:Tl})),T1.default.createElement("span",{style:{flex:1}},T1.default.createElement(W1,{title:"Color assistant",style:{borderColor:this.state.colorAssistant?Y7:""},onClick:()=>this.toggleColorAssistant()},"Assist",T1.default.createElement(N1,{icon:kl})," ")),this.renderColor()),T1.default.createElement(jN,{ref:this.ref}))}};var N6=N2(f1());var R1=N2(f1());var Lr=class extends R1.default.Component{render(){return R1.default.createElement(Z0,null,R1.default.createElement("div",null,R1.default.createElement("span",null,"Name")," ",R1.default.createElement(J6,{type:"text",value:this.props.name,onChange:c=>this.props.onName(c.target.value)})),R1.default.createElement("div",null,R1.default.createElement("span",null,"X")," ",R1.default.createElement(J6,{type:"number",value:this.props.x,onChange:c=>R0(c,this.props.onX)})),R1.default.createElement("div",null,R1.default.createElement("span",null,"Y")," ",R1.default.createElement(J6,{type:"number",value:this.props.y,onChange:c=>R0(c,this.props.onY)})),R1.default.createElement($6,null,R1.default.createElement(W1,{onClick:()=>this.props.onConfirm(),style:{flex:1}},"Confirm"),R1.default.createElement(W1,{onClick:()=>this.props.onCancel(),style:{flex:1}},"Cancel")),R1.default.createElement("small",null,"Overlay does not work on scale -1. To fix that zoom in."))}};var XN=u2.canvas`
`,Lr=class extends R1.default.Component{ref=R1.default.createRef();cache=new Map;transparentGrid=["#c5c5c540","#8d8d8d40"];highlighColor="#00000040";lastColor=-1;storageKey="_minimap_settings";destroyed=!1;constructor(c){super(c),this.state={size:16,color:-1,colorAssistant:!1}}componentDidUpdate(c,r){c.selected.m.ref!==this.props.selected.m.ref?(this.cache.clear(),this.draw()):r.size!==this.state.size&&this.draw()}click(c){c>=0&&c<this.props.palette.palette.length&&(this.props.palette.buttons[c].classList.contains("outline-2")||this.state.colorAssistant&&this.props.palette.buttons[c].click())}componentDidMount(){this.props.cords.on(0,this.update),this.props.cords.on(0,this.onCords),this.props.storage.getItem(this.storageKey).then(c=>{c&&!this.destroyed&&this.setState({colorAssistant:c.colorAssistant,size:c.size})}),this.draw()}componentWillUnmount(){this.destroyed=!0,this.props.cords.off(0,this.update),this.props.cords.off(0,this.onCords)}saveSettings(){this.props.storage.setItem(this.storageKey,{colorAssistant:this.state.colorAssistant,size:this.state.size})}onCords=(c,r)=>{let n=this.props.store;if(n.selected&&n.selected.m.x<c&&n.selected.m.y<r&&n.selected.w+n.selected.m.x>c&&n.selected.h+n.selected.m.y>r){let i=c-n.selected.m.x,s=r-n.selected.m.y,l=n.selected.m.pixels[s][i];this.lastColor!==l&&(this.lastColor=l,this.click(l))}};drawGrid(c,r,n,i){for(let s=0;s<i;s+=r)for(let l=0;l<n;l+=r){let u=Math.floor(s/r)%2===0,p=Math.floor(l/r)%2===0,h=u&&p||!u&&!p;c.fillStyle=h?this.transparentGrid[0]:this.transparentGrid[1],c.fillRect(l,s,r,r)}}update=()=>{let c=this.props.selected.m,r=this.props.cords.x-c.x,n=this.props.cords.y-c.y;if(c.pixels[n]!==void 0&&c.pixels[n][r]!==void 0){let i=c.pixels[n][r];this.setState({color:i}),this.draw();return}this.setState({color:-1}),this.draw()};getCachedImage(c){let r=this.cache.get(c);if(r)return r;let n=this.props.selected,i=H8();return j9(i,n.m.pixels,this.props.palette.hex,c),this.cache.set(c,i),i}draw=()=>{let c=this.ref.current,r=c.getContext("2d"),n=c.width=200,i=c.height=200,s=n/2,l=i/2;r.clearRect(0,0,n,i);let u=this.state.size;this.drawGrid(r,u*4,n,i);let p=1*u/2,h=(this.props.selected.m.x-this.props.cords.x)*u+Math.ceil(s-p),z=(this.props.selected.m.y-this.props.cords.y)*u+Math.ceil(l-p),V=this.getCachedImage(u);if(r.drawImage(V,h,z,V.width,V.height),u!=1){r.fillStyle=this.highlighColor;let L=i/2,S=i/2;r.fillRect(0,0,n,L-p),r.fillRect(0,L+p,n,L-p),r.fillRect(0,L-p,S-p,p*2),r.fillRect(S+p,L-p,S-p,p*2)}};up=()=>{this.setState({size:this.clamp(this.state.size*2)})};down=()=>{this.setState({size:this.clamp(this.state.size/2)})};setSize(c){this.setState({size:c})}clamp(c){return(0,_d.clamp)(c,1,32)}renderColor(){return this.state.color!==-1?R1.default.createElement(Pd,{style:{backgroundColor:this.props.palette.hex[this.state.color]}}):R1.default.createElement(Pd,null," / ")}toggleColorAssistant=()=>{this.setState({colorAssistant:!this.state.colorAssistant})};render(){return R1.default.createElement("div",null,R1.default.createElement($N,null,R1.default.createElement(X1,{onClick:this.up},R1.default.createElement(y1,{icon:th})),R1.default.createElement(JN,null,this.state.size),R1.default.createElement(X1,{onClick:this.down},R1.default.createElement(y1,{icon:ih})),R1.default.createElement("span",{style:{flex:1}},R1.default.createElement(X1,{title:"Color assistant",style:{borderColor:this.state.colorAssistant?hr:""},onClick:()=>this.toggleColorAssistant()},"Assist",R1.default.createElement(y1,{icon:ch})," ")),this.renderColor()),R1.default.createElement(ZN,{ref:this.ref}))}};var k6=N2(f1());var D1=N2(f1());var xr=class extends D1.default.Component{render(){return D1.default.createElement(b8,null,D1.default.createElement("div",null,D1.default.createElement("span",null,"Name")," ",D1.default.createElement(d0,{type:"text",value:this.props.name,onChange:c=>this.props.onName(c.target.value)})),D1.default.createElement("div",null,D1.default.createElement("span",null,"X")," ",D1.default.createElement(d0,{type:"number",value:this.props.x,onChange:c=>C8(c,this.props.onX)})),D1.default.createElement("div",null,D1.default.createElement("span",null,"Y")," ",D1.default.createElement(d0,{type:"number",value:this.props.y,onChange:c=>C8(c,this.props.onY)})),D1.default.createElement(N6,null,D1.default.createElement(X1,{onClick:()=>this.props.onConfirm(),style:{flex:1}},"Confirm"),D1.default.createElement(X1,{onClick:()=>this.props.onCancel(),style:{flex:1}},"Cancel")),D1.default.createElement("small",null,"Overlay does not work on scale -1. To fix that zoom in."))}};var eb=s2.canvas`
position: fixed;
z-index: 1;
pointer-events: none;
`,A8=class extends N6.default.Component{ref=N6.default.createRef();_refImage;constructor(c){super(c),this.state={x:0,y:0,name:""}}componentDidMount(){this.draw(),this.props.cords.on(1,this.draw),window.addEventListener("mousemove",this.draw),this.props.muralObj&&this.setState({name:this.props.muralObj.name||"",x:this.props.muralObj.x??0,y:this.props.muralObj.y??0})}componentWillUnmount(){this.props.cords.off(1,this.draw),window.removeEventListener("mousemove",this.draw)}componentDidUpdate(c,r){c.mural!==this.props.mural&&(this._refImage=void 0,this.setState({x:0,y:0})),(r.x!==this.state.x||r.y!==this.state.y)&&this.draw()}isPixels(c){return Array.isArray(c)}get pixels(){return this.isPixels(this.props.mural)?this.props.mural:this.props.mural.pixels}get x(){return this.isPixels(this.props.mural)?this.state.x:this.props.mural.x}get y(){return this.isPixels(this.props.mural)?this.state.y:this.props.mural.y}get refImg(){return!Array.isArray(this.props.mural)&&"ref"in this.props.mural?this.props.mural.ref:this._refImage?this._refImage:(this._refImage=c5(this.pixels,this.props.palette.hex).canvas,this._refImage)}draw=()=>{let c=this.ref.current,r=Math.pow(2,this.props.cords.uScale),n=this.props.cords.gridToScreen(this.x,this.y);if(!n){c.getContext("2d").clearRect(0,0,c.width,c.height);return}let{x:i,y:s}=n,l=E0(this.pixels)*r,u=A0(this.pixels)*r;(l!==c.width||u!==c.height)&&(c.width=l,c.height=u,c.style.width=`${l}px`,c.style.height=`${u}px`);let p=c.getContext("2d");p.imageSmoothingEnabled=!1,c.style.left=`${i}px`,c.style.top=`${s}px`,p.drawImage(this.refImg,0,0,c.width,c.height)};get style(){return{left:this.state.x,top:this.state.y,opacity:this.props.opacity/100}}renderModifyWindow(){if(this.props.onChange){let c={...this.state};return N6.default.createElement(h0,{storage:this.props.storage,storageKey:"overlay-set",title:"Position editor"},N6.default.createElement(Lr,{name:this.state.name,x:this.state.x,y:this.state.y,onX:r=>this.setState({x:r}),onY:r=>this.setState({y:r}),onName:r=>this.setState({name:r}),onCancel:()=>{this.setState(c),this.props.onChange(c.name,c.x,c.y,!1)},onConfirm:()=>{this.props.onChange(this.state.name,this.state.x,this.state.y,!0)}}))}return null}render(){return N6.default.createElement(N6.default.Fragment,null,N6.default.createElement(XN,{ref:this.ref,style:this.style}),this.renderModifyWindow())}};var _v=N2(Z8());var Ev="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAAAXNSR0IArs4c6QAAGi9JREFUeF7tnQmYFMXZx3/dM7PLIhAUjRLvL58ao0ST6CdRMcCgGIOaaNCARFGDERWJSVATL9TECxPjESFoTIKoEOIBCgjsLmsABVERNBgv8ASvKHLvznT397zVM7M9d83sXM7O+zw+6k51ddVb/6566z0NatSpOWB06tnXJk8NAJ0cBDUA1ADQyTnQyadf2wFqAOjkHOjk06/tADUAdHIOdPLp13aAGgA6OQc6+fRrO0ANAJ2cA518+mXdAfpDFx8cbcDRDiy2YHELbO/ka1LS6ZcNAEH4tQGjHdgDlE3CAV534D4HHlsIr5aUE530ZWUBgCw+8LvIwieyXoDQBvzBhpkLYVknXZuSTLvkABgAB5iwEqjXmKGA4R4DHmmEeRrta01y5EDJARCEG3B3AEVGr6/gO2II4YUPwbZN6YbvGLDAgUea4M+JjYKwq8gRuP8sFnmiCT7MkRedsnlJASBCnx9ec2DPKLf9I67B1/dE2LoRa9VTWHPvwfnvurRAAF524AEbbheBcRCc4sDdwJc9soQ8fw/Q3ATTO+XKak66pAAIwqXATdGzX77+umtnxQ/VcbBfasFaOA379eczAUEJjAZcAuyapmHGnUOTR1XdrNQAWAX0iX393xuF7/s/S7d2CgD2stlYSx/PBASdOYgsEbdzVPWq5jA5Hebl0F36pkE4D5gUk/wbulN/7Uzo2iNL/w7OJ+uwnrwXa2VLJjkB/6m/wF71VMadw4D3HJhqw99rV033/l0SGgTzHDgu+jJf/2H4f/SLNDfBVENyYOsmrJZpKQVGY4/9qbv8QaVOcN57TbXLsHPIC1qB2w1o7sw3jJIA4Fg4zoYnvatdN34mxs675we+rRtpvXRg3LMxYTL218jO8dR0FwiZbxhTHViS6oaR3wC/OE+VBABB9+omR4AiX98hyILluwFZCx8k/PAfYlxOKUx610BuGLIjLHsi4w0jetW04O+dRSVddAAMgCNMeMa72oGLJ2Huf1jen0nbNSfFLaT/hPPwnRDDV/p+HUeBwGp5SB0TaaXPTqSSLjoAEhU/5n7fRgCAkd+rZTsPT702ae1ElyByhcgCWUmumm88jzXnnmxXzahKumoFxvxWISuH3Qap1L6BURMwDxmg2UNys9DtP8uwaAYCMN8Jo9S/s5PnhpH+qindVK1KuqgAGATnOHBvnOJn/My8v361oNs2Yi2VbXxahvPccFXM3/upq2XMSi4Q7Gdn66ikZziuhjFJJZ31NRXYoKgACMJfgZHRefvPuBrfd04qDBv0znOMXrvjO+L7+AYMg4bu2d+dp0o6e8eV2aKoABgEKxw4NDr1ussewNjzgMJyInqei+p4VUv6vht64Dvku/i+N0rtDlkpAjB72RPZ5ITXgYe/qIqlYgPgTgcuame2nNHfUl+j+Y3+Wdcgtwa657mhrqHmEUO05QRRSSvbRCaAuYqlL5wPQ1EBEITTgYdSXfjdM3qU5hmdGxRE6WMtfCjbeY5vwHClPtYlsVKKtTKbShqY3A9Gjwdbt+9ytSsqAGRSQbgduDjtBBu64x8wTP+MzoVTAoSVLWlNzIHzbs1vJ9ID2DMOTGyG+3MZcqnbFh0AERCc7kDQgFGZgOA7pL/+GZ0jp0KTfxW3hWfVHmr2L3qJLD4MNOWr8tQcQ0ealQQA0QGKVtCAHxgg+25duoHL1U3/jNabfuu4AXH2gGTbgV4/6VqJfCAqavv1F5Ka1ACQwBJREBkw0oBTgf3SMVWUOQIEvbt8+gVM0h6KKfq6WXrXwhxwITKCqKkTqQaANEwUFzETxgIjDDg4Ha9jAuMh/fNatCTbgSiIjv8p+Pw5LG+Wpp+up/XqZKVTJS++zKikR0AmFgZBXINkRzi2kAKjXOFEfeyluvGPYews4QgFIMfG+egd2q7/UVJn26HHTmBFf3gcthbgjQXtomIAEJ3VIBhsw6mZBMZcBLhE24HvkAH4R03oGBO3bcZ+4wXs157D/s9SnM8+hO1bdPoUJ8eJG2DK8xDSeaDYbSoOANEJe+SEJIFRV4ATk2/bTcPjv/5rZ+lpAhM472z+DKtpKvZry3He/Q/YHb7iLzVgYhjmt8AHxV7otMdruV6s+96BcJnhehK7lIMAJ2Zjr1uYaB/l7p8L2S8vJjzrLpx1b+TyWK5tH3Vglu3GRhb1RYkDq9gdIDrQIMz3ygW6zh+pJPLA2D9rqn/Bem4e1vz7cNa9metiuu27dHWNyI4NjvwHEBJtcVa614C7G2FF1pYFaFDRAIgIhuJJHKP6CQu1bgLiMib38ii1O43Gc82aMxl26h27atprVhJ++Dact19Oz966Lq787NiYu++HsffXMXrtgbFjNDzBUb8527Yo2cDZvhnaWpW8wOcf42zdBHZMNkz3nhVyRDS6AS5Fo0oHgKhRR0RnL/oA15cwC23bROvVJ2VX/HjamYcf7y7SyoWpOw/UYfTcDaNbT4wD+2IecDjmvt+AcMiVB3w+COiEO6JkCFEY2WtXYq9oyjgZA5aJSrkJ/p5t2v Line truncated
`,A8=class extends k6.default.Component{ref=k6.default.createRef();_refImage;constructor(c){super(c),this.state={x:0,y:0,name:""}}componentDidMount(){this.draw(),this.props.cords.on(1,this.draw),window.addEventListener("mousemove",this.draw),this.props.muralObj&&this.setState({name:this.props.muralObj.name||"",x:this.props.muralObj.x??0,y:this.props.muralObj.y??0})}componentWillUnmount(){this.props.cords.off(1,this.draw),window.removeEventListener("mousemove",this.draw)}componentDidUpdate(c,r){c.mural!==this.props.mural&&(this._refImage=void 0,this.setState({x:0,y:0})),(r.x!==this.state.x||r.y!==this.state.y)&&this.draw()}isPixels(c){return Array.isArray(c)}get pixels(){return this.isPixels(this.props.mural)?this.props.mural:this.props.mural.pixels}get x(){return this.isPixels(this.props.mural)?this.state.x:this.props.mural.x}get y(){return this.isPixels(this.props.mural)?this.state.y:this.props.mural.y}get refImg(){return!Array.isArray(this.props.mural)&&"ref"in this.props.mural?this.props.mural.ref:this._refImage?this._refImage:(this._refImage=ee(this.pixels,this.props.palette.hex).canvas,this._refImage)}draw=()=>{let c=this.ref.current,r=Math.pow(2,this.props.cords.uScale),n=this.props.cords.gridToScreen(this.x,this.y);if(!n){c.getContext("2d").clearRect(0,0,c.width,c.height);return}let{x:i,y:s}=n,l=M8(this.pixels)*r,u=V8(this.pixels)*r;(l!==c.width||u!==c.height)&&(c.width=l,c.height=u,c.style.width=`${l}px`,c.style.height=`${u}px`);let p=c.getContext("2d");p.imageSmoothingEnabled=!1,c.style.left=`${i}px`,c.style.top=`${s}px`,p.drawImage(this.refImg,0,0,c.width,c.height)};get style(){return{left:this.state.x,top:this.state.y,opacity:this.props.opacity/100}}renderModifyWindow(){if(this.props.onChange){let c={...this.state};return k6.default.createElement(v0,{storage:this.props.storage,storageKey:"overlay-set",title:"Position editor"},k6.default.createElement(xr,{name:this.state.name,x:this.state.x,y:this.state.y,onX:r=>this.setState({x:r}),onY:r=>this.setState({y:r}),onName:r=>this.setState({name:r}),onCancel:()=>{this.setState(c),this.props.onChange(c.name,c.x,c.y,!1)},onConfirm:()=>{this.props.onChange(this.state.name,this.state.x,this.state.y,!0)}}))}return null}render(){return k6.default.createElement(k6.default.Fragment,null,k6.default.createElement(eb,{ref:this.ref,style:this.style}),this.renderModifyWindow())}};var Dd=N2(Z8());var Td="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAAAXNSR0IArs4c6QAAGi9JREFUeF7tnQmYFMXZx3/dM7PLIhAUjRLvL58ao0ST6CdRMcCgGIOaaNCARFGDERWJSVATL9TECxPjESFoTIKoEOIBCgjsLmsABVERNBgv8ASvKHLvznT397zVM7M9d83sXM7O+zw+6k51ddVb/6566z0NatSpOWB06tnXJk8NAJ0cBDUA1ADQyTnQyadf2wFqAOjkHOjk06/tADUAdHIOdPLp13aAGgA6OQc6+fRrO0ANAJ2cA518+mXdAfpDFx8cbcDRDiy2YHELbO/ka1LS6ZcNAEH4tQGjHdgDlE3CAV534D4HHlsIr5aUE530ZWUBgCw+8LvIwieyXoDQBvzBhpkLYVknXZuSTLvkABgAB5iwEqjXmKGA4R4DHmmEeRrta01y5EDJARCEG3B3AEVGr6/gO2II4YUPwbZN6YbvGLDAgUea4M+JjYKwq8gRuP8sFnmiCT7MkRedsnlJASBCnx9ec2DPKLf9I67B1/dE2LoRa9VTWHPvwfnvurRAAF524AEbbheBcRCc4sDdwJc9soQ8fw/Q3ATTO+XKak66pAAIwqXATdGzX77+umtnxQ/VcbBfasFaOA379eczAUEJjAZcAuyapmHGnUOTR1XdrNQAWAX0iX393xuF7/s/S7d2CgD2stlYSx/PBASdOYgsEbdzVPWq5jA5Hebl0F36pkE4D5gUk/wbulN/7Uzo2iNL/w7OJ+uwnrwXa2VLJjkB/6m/wF71VMadw4D3HJhqw99rV033/l0SGgTzHDgu+jJf/2H4f/SLNDfBVENyYOsmrJZpKQVGY4/9qbv8QaVOcN57TbXLsHPIC1qB2w1o7sw3jJIA4Fg4zoYnvatdN34mxs675we+rRtpvXRg3LMxYTL218jO8dR0FwiZbxhTHViS6oaR3wC/OE+VBABB9+omR4AiX98hyILluwFZCx8k/PAfYlxOKUx610BuGLIjLHsi4w0jetW04O+dRSVddAAMgCNMeMa72oGLJ2Huf1jen0nbNSfFLaT/hPPwnRDDV/p+HUeBwGp5SB0TaaXPTqSSLjoAEhU/5n7fRgCAkd+rZTsPT702ae1ElyByhcgCWUmumm88jzXnnmxXzahKumoFxvxWISuH3Qap1L6BURMwDxmg2UNys9DtP8uwaAYCMN8Jo9S/s5PnhpH+qindVK1KuqgAGATnOHBvnOJn/My8v361oNs2Yi2VbXxahvPccFXM3/upq2XMSi4Q7Gdn66ikZziuhjFJJZ31NRXYoKgACMJfgZHRefvPuBrfd04qDBv0znOMXrvjO+L7+AYMg4bu2d+dp0o6e8eV2aKoABgEKxw4NDr1ussewNjzgMJyInqei+p4VUv6vht64Dvku/i+N0rtDlkpAjB72RPZ5ITXgYe/qIqlYgPgTgcuame2nNHfUl+j+Y3+Wdcgtwa657mhrqHmEUO05QRRSSvbRCaAuYqlL5wPQ1EBEITTgYdSXfjdM3qU5hmdGxRE6WMtfCjbeY5vwHClPtYlsVKKtTKbShqY3A9Gjwdbt+9ytSsqAGRSQbgduDjtBBu64x8wTP+MzoVTAoSVLWlNzIHzbs1vJ9ID2DMOTGyG+3MZcqnbFh0AERCc7kDQgFGZgOA7pL/+GZ0jp0KTfxW3hWfVHmr2L3qJLD4MNOWr8tQcQ0ealQQA0QGKVtCAHxgg+25duoHL1U3/jNabfuu4AXH2gGTbgV4/6VqJfCAqavv1F5Ka1ACQwBJREBkw0oBTgf3SMVWUOQIEvbt8+gVM0h6KKfq6WXrXwhxwITKCqKkTqQaANEwUFzETxgIjDDg4Ha9jAuMh/fNatCTbgSiIjv8p+Pw5LG+Wpp+up/XqZKVTJS++zKikR0AmFgZBXINkRzi2kAKjXOFEfeyluvGPYews4QgFIMfG+egd2q7/UVJn26HHTmBFf3gcthbgjQXtomIAEJ3VIBhsw6mZBMZcBLhE24HvkAH4R03oGBO3bcZ+4wXs157D/s9SnM8+hO1bdPoUJ8eJG2DK8xDSeaDYbSoOANEJe+SEJIFRV4ATk2/bTcPjv/5rZ+lpAhM472z+DKtpKvZry3He/Q/YHb7iLzVgYhjmt8AHxV7otMdruV6s+96BcJnhehK7lIMAJ2Zjr1uYaB/l7p8L2S8vJjzrLpx1b+TyWK5tH3Vglu3GRhb1RYkDq9gdIDrQIMz3ygW6zh+pJPLA2D9rqn/Bem4e1vz7cNa9metiuu27dHWNyI4NjvwHEBJtcVa614C7G2FF1pYFaFDRAIgIhuJJHKP6CQu1bgLiMib38ii1O43Gc82aMxl26h27atprVhJ++Dact19Oz966Lq787NiYu++HsffXMXrtgbFjNDzBUb8527Yo2cDZvhnaWpW8wOcf42zdBHZMNkz3nhVyRDS6AS5Fo0oHgKhRR0RnL/oA15cwC23bROvVJ2VX/HjamYcf7y7SyoWpOw/UYfTcDaNbT4wD+2IecDjmvt+AcMiVB3w+COiEO6JkCFEY2WtXYq9oyjgZA5aJSrkJ/p5t2v Line truncated
width: 25px;
margin-right: 5px;
display: inline;
pointer-events: none;
touch-action: none;
`,xr=class extends n3.default.Component{STORAGE_KEY="__OPACITY_SETTINGS";destroyed=!1;constructor(c){super(c),this.state={overlays:[],phantomOverlay:-1,opacity:50,collapsed:!1}}componentDidMount(){this.props.store.on(7,this.update),this.update(),this.props.storage.getItem(this.STORAGE_KEY).then(c=>{c!==null&&!this.destroyed&&this.setState(c)})}componentWillUnmount(){this.destroyed=!0,this.actualSave({collapsed:this.state.collapsed,opacity:this.state.opacity})}actualSave(c){return this.props.storage.setItem(this.STORAGE_KEY,c)}save=(0,_v.debounce)(c=>{this.actualSave({collapsed:this.state.collapsed,opacity:c})},1e3);opacityChange=c=>{this.setState({opacity:c}),this.save(c)};update=()=>{this.setState({selected:this.props.store.selected,overlays:this.props.store.overlays,overlayModify:this.props.store.overlayModify})};renderMap(){return this.state.selected?n3.default.createElement(h0,{title:"Minimap",storage:this.props.storage,storageKey:"minimap"},n3.default.createElement(Cr,{cords:this.props.cords,palette:this.props.palette,selected:this.state.selected,storage:this.props.storage,store:this.props.store})):null}title(){return n3.default.createElement("span",{title:"Terncode's fork"},n3.default.createElement(YN,{src:Ev,alt:"TC-Logo"}),n3.default.createElement("span",null,"Overlay"))}render(){return n3.default.createElement(n3.default.Fragment,null,n3.default.createElement(h0,{title:this.title(),storage:this.props.storage,storageKey:"main"},n3.default.createElement(Mr,{onOpacityChange:this.opacityChange,cords:this.props.cords,store:this.props.store,storage:this.props.storage,palette:this.props.palette,opacity:this.state.opacity,collapsed:this.state.collapsed,onCollapsedChanged:c=>{this.setState({collapsed:c}),this.actualSave({opacity:this.state.opacity,collapsed:c})}})),this.renderMap(),this.state.overlays.map((c,r)=>n3.default.createElement(A8,{key:r,storage:this.props.storage,opacity:this.state.opacity,cords:this.props.cords,palette:this.props.palette,mural:this.props.store.murals[c]})),this.props.store.murals[this.state.phantomOverlay]?n3.default.createElement(A8,{storage:this.props.storage,opacity:50,cords:this.props.cords,palette:this.props.palette,mural:this.props.store.murals[this.state.phantomOverlay]}):null,this.state.overlayModify?n3.default.createElement(A8,{muralObj:this.state.overlayModify.muralObj,opacity:this.state.opacity,storage:this.props.storage,cords:this.props.cords,palette:this.props.palette,mural:this.props.store.overlayModify.pixels,onChange:(c,r,n,i)=>{this.state.overlayModify.cb(c,r,n,i)}}):null)}};var Rv=N2(gi());var E8=N2(f1());var KN=u2.div`
`,yr=class extends t3.default.Component{STORAGE_KEY="__OPACITY_SETTINGS";destroyed=!1;constructor(c){super(c),this.state={overlays:[],phantomOverlay:-1,opacity:50,collapsed:!1}}componentDidMount(){this.props.store.on(7,this.update),this.update(),this.props.storage.getItem(this.STORAGE_KEY).then(c=>{c!==null&&!this.destroyed&&this.setState(c)})}componentWillUnmount(){this.destroyed=!0,this.actualSave({collapsed:this.state.collapsed,opacity:this.state.opacity})}actualSave(c){return this.props.storage.setItem(this.STORAGE_KEY,c)}save=(0,Dd.debounce)(c=>{this.actualSave({collapsed:this.state.collapsed,opacity:c})},1e3);opacityChange=c=>{this.setState({opacity:c}),this.save(c)};update=()=>{this.setState({selected:this.props.store.selected,overlays:this.props.store.overlays,overlayModify:this.props.store.overlayModify})};renderMap(){return this.state.selected?t3.default.createElement(v0,{title:"Minimap",storage:this.props.storage,storageKey:"minimap"},t3.default.createElement(Lr,{cords:this.props.cords,palette:this.props.palette,selected:this.state.selected,storage:this.props.storage,store:this.props.store})):null}title(){return t3.default.createElement("span",{title:"Terncode's fork"},t3.default.createElement(cb,{src:Td,alt:"TC-Logo"}),t3.default.createElement("span",null,"Overlay"))}render(){return t3.default.createElement(t3.default.Fragment,null,t3.default.createElement(v0,{title:this.title(),storage:this.props.storage,storageKey:"main"},t3.default.createElement(Cr,{onOpacityChange:this.opacityChange,cords:this.props.cords,store:this.props.store,storage:this.props.storage,palette:this.props.palette,opacity:this.state.opacity,collapsed:this.state.collapsed,onCollapsedChanged:c=>{this.setState({collapsed:c}),this.actualSave({opacity:this.state.opacity,collapsed:c})}})),this.renderMap(),this.state.overlays.map((c,r)=>t3.default.createElement(A8,{key:r,storage:this.props.storage,opacity:this.state.opacity,cords:this.props.cords,palette:this.props.palette,mural:this.props.store.murals[c]})),this.props.store.murals[this.state.phantomOverlay]?t3.default.createElement(A8,{storage:this.props.storage,opacity:50,cords:this.props.cords,palette:this.props.palette,mural:this.props.store.murals[this.state.phantomOverlay]}):null,this.state.overlayModify?t3.default.createElement(A8,{muralObj:this.state.overlayModify.muralObj,opacity:this.state.opacity,storage:this.props.storage,cords:this.props.cords,palette:this.props.palette,mural:this.props.store.overlayModify.pixels,onChange:(c,r,n,i)=>{this.state.overlayModify.cb(c,r,n,i)}}):null)}};var Fd=N2(D9());var E8=N2(f1());var rb=s2.div`
position: fixed;
display: flex;
z-index: 10;
@@ -1052,12 +1083,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
margin: 5px auto;
padding: 5px;
height: 40px;
`,QN=u2.span`
`,ab=s2.span`
margin-left: 5px;
`,$N=u2.span`
`,nb=s2.span`
margin: 2px 5px;
width: 19px;
`,yr=class extends E8.default.Component{constructor(c){super(c),this.state={count:0,width:window.innerWidth}}componentDidMount(){this.props.pixelCount.count.then(c=>{typeof c=="number"&&this.updateCount(c)}),this.props.pixelCount.on(this.updateCount),window.addEventListener("resize",this.onResize)}componentWillUnmount(){this.props.pixelCount.on(this.updateCount),window.removeEventListener("resize",this.onResize)}updateCount=c=>{this.setState({count:c})};onResize=()=>{this.setState({width:window.innerWidth})};render(){return this.state.count?E8.default.createElement(KN,{width:this.state.width},E8.default.createElement(QN,null,t7(this.state.count)),E8.default.createElement($N,null,E8.default.createElement(N1,{icon:wl}))):null}};function Ov(e,c,r,n,i){let s=[Tv(yi.default.createElement(yr,{pixelCount:i})),Tv(yi.default.createElement(xr,{cords:r,store:e,storage:c,palette:n}))];return()=>s.map(l=>l())}function Tv(e){let c=document.createElement("div");return(0,Rv.createRoot)(c).render(e),document.body.appendChild(c),()=>{c.parentElement?.removeChild(c)}}var wr=class{constructor(c){this.chrome=c}getItem(c){if(this.chrome)return new Promise(r=>{chrome.storage.local.get(c,n=>{n&&n[c]?r(JSON.parse(n[c])):r(null)})});{let r=localStorage.getItem(c);return Promise.resolve(r&&JSON.parse(r))}}async setItem(c,r){return this.chrome?new Promise(n=>{chrome.storage.local.set({[c]:JSON.stringify(r)},n)}):(localStorage.setItem(c,JSON.stringify(r)),Promise.resolve())}deleteItem(c){return this.chrome?new Promise(r=>{chrome.storage.local.remove(c,r)}):(localStorage.removeItem(c),Promise.resolve())}};var Sr=class e{constructor(c){this.storage=c;let r=document.createElement("script");r.addEventListener("load",()=>{document.body.removeChild(r)},{once:!0}),r.addEventListener("error",n=>{console.error(n)}),r.textContent=Pv,document.body.appendChild(r),document.addEventListener("__pixelsPlaced",n=>{typeof n.detail=="number"&&(this.storage.setItem(this.storageKey,n.detail),this.emitter.emit(0,n.detail))})}emitter=new $4;static instance;storageKey="__pixelsPlaced";static create(c){return this.instance||(this.instance=new e(c)),this.instance}on(c){this.emitter.on(0,c)}off(c){this.emitter.off(0,c)}get count(){return this.storage.getItem(this.storageKey)}};async function Dv(){let e=new s7;for(;!e.init();)await a7();let c=new wr(!1),r=Sr.create(c),n=new u7(c,e);await n.load();let i=new i7;await i.init(),Ov(n,c,i,e,r),console.log("%cOverlay by 0xa663","color: red; font-size: 15px; font-weight: bold; text-shadow: 2px 2px 4px #000000;"),console.log("%cTerncode's fork","color: #4a94cc; font-size: 10px; font-weight: bold; text-shadow: 1px 1px 0px #000000, -1px 1px 0px #000000, 1px -1px 0px #000000, -1px -1px 0px #000000;")}document.readyState==="complete"?Dv():window.addEventListener("load",Dv);})();
`,wr=class extends E8.default.Component{constructor(c){super(c),this.state={count:0,width:window.innerWidth}}componentDidMount(){this.props.pixelCount.count.then(c=>{typeof c=="number"&&this.updateCount(c)}),this.props.pixelCount.on(this.updateCount),window.addEventListener("resize",this.onResize)}componentWillUnmount(){this.props.pixelCount.on(this.updateCount),window.removeEventListener("resize",this.onResize)}updateCount=c=>{this.setState({count:c})};onResize=()=>{this.setState({width:window.innerWidth})};render(){return this.state.count?E8.default.createElement(rb,{width:this.state.width},E8.default.createElement(ab,null,ce(this.state.count)),E8.default.createElement(nb,null,E8.default.createElement(y1,{icon:$m}))):null}};function Bd(e,c,r,n,i){let s=[Od(wi.default.createElement(wr,{pixelCount:i})),Od(wi.default.createElement(yr,{cords:r,store:e,storage:c,palette:n}))];return()=>s.map(l=>l())}function Od(e){let c=document.createElement("div");return(0,Fd.createRoot)(c).render(e),document.body.appendChild(c),()=>{c.parentElement?.removeChild(c)}}var Sr=class{constructor(c){this.chrome=c}getItem(c){if(this.chrome)return new Promise(r=>{chrome.storage.local.get(c,n=>{n&&n[c]?r(JSON.parse(n[c])):r(null)})});{let r=localStorage.getItem(c);return Promise.resolve(r&&JSON.parse(r))}}async setItem(c,r){return this.chrome?new Promise(n=>{chrome.storage.local.set({[c]:JSON.stringify(r)},n)}):(localStorage.setItem(c,JSON.stringify(r)),Promise.resolve())}deleteItem(c){return this.chrome?new Promise(r=>{chrome.storage.local.remove(c,r)}):(localStorage.removeItem(c),Promise.resolve())}};var Nr=class e{constructor(c){this.storage=c;let r=document.createElement("script");r.addEventListener("load",()=>{document.body.removeChild(r)},{once:!0}),r.addEventListener("error",n=>{console.error(n)}),r.textContent=Rd,document.body.appendChild(r),document.addEventListener("__pixelsPlaced",n=>{typeof n.detail=="number"&&(this.storage.setItem(this.storageKey,n.detail),this.emitter.emit(0,n.detail))})}emitter=new C6;static instance;storageKey="__pixelsPlaced";static create(c){return this.instance||(this.instance=new e(c)),this.instance}on(c){this.emitter.on(0,c)}off(c){this.emitter.off(0,c)}get count(){return this.storage.getItem(this.storageKey)}};async function Id(){let e=new jc;for(;!e.init();)await Wc();let c=new Sr(!1),r=Nr.create(c),n=new Xc(c,e);await n.load();let i=new qc;await i.init(),Bd(n,c,i,e,r),console.log("%cOverlay by 0xa663","color: red; font-size: 15px; font-weight: bold; text-shadow: 2px 2px 4px #000000;"),console.log("%cTerncode's fork","color: #4a94cc; font-size: 10px; font-weight: bold; text-shadow: 1px 1px 0px #000000, -1px 1px 0px #000000, 1px -1px 0px #000000, -1px -1px 0px #000000;")}document.readyState==="complete"?Id():window.addEventListener("load",Id);})();
/*! Bundled license information:
lodash/lodash.js:
+1 -1
View File
@@ -138,7 +138,7 @@ export class Menu extends React.Component<Props, State> {
<PercentageDiv>{this.props.opacity}%</PercentageDiv>
<Btn onClick={() => this.props.onCollapsedChanged(!this.props.collapsed)}><FontAwesomeIcon icon={ this.props.collapsed ? faCaretDown : faCaretUp } /></Btn>
</Flex>
{this.props.collapsed ? null : <MuralList store={this.props.store} cords={this.props.cords}/> }
{this.props.collapsed ? null : <MuralList store={this.props.store} palette={this.props.palette} cords={this.props.cords}/> }
</Container>;
}
+4 -2
View File
@@ -4,6 +4,7 @@ import { Store, StoreEvents } from "../../lib/store";
import { MuralView } from "./muralView";
import styled from "styled-components";
import { Coordinates } from "../../lib/coordinates";
import { Palette } from "../../lib/palette";
const ScrollContainer = styled.div`
overflow: auto;
@@ -32,11 +33,12 @@ const ScrollContainer = styled.div`
interface Props {
store: Store;
cords: Coordinates;
palette: Palette;
}
interface State {
murals: MuralEx[];
selected?: SelectedMural
selected?: SelectedMural;
}
export class MuralList extends React.Component<Props, State> {
@@ -61,7 +63,7 @@ export class MuralList extends React.Component<Props, State> {
};
render() {
return <ScrollContainer> {this.state.murals.map((m,i) => {
return <MuralView key={i} mural={m} cords={this.props.cords} store={this.props.store} selected={m === this.state.selected?.m} />;
return <MuralView key={i} mural={m} cords={this.props.cords} palette={this.props.palette} store={this.props.store} selected={m === this.state.selected?.m} />;
})}</ScrollContainer>;
}
}
+77 -10
View File
@@ -1,16 +1,17 @@
import React from "react";
import { Store } from "../../lib/store";
import { Mural, MuralEx } from "../../interfaces";
import { Mural, MuralEx, MuralStatus } from "../../interfaces";
import styled from "styled-components";
import { Border, Btn, Flex, SELECTED_COLOR } from "../styles";
import { CanvasToCanvasJSX } from "./canvasToCanvasJSX";
import { formatNumber, getMuralHeight, getMuralWidth } from "../../lib/utils";
import { IconDefinition, faDownload, faLayerGroup, faLocation, faPenToSquare, faTrash } from "@fortawesome/free-solid-svg-icons";
import { formatNumber, getMuralHeight, getMuralWidth, getPixelStatusMural } from "../../lib/utils";
import { IconDefinition, faDownload, faLayerGroup, faLocation, faPenToSquare, faRefresh, faTrash } from "@fortawesome/free-solid-svg-icons";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { Coordinates } from "../../lib/coordinates";
import { TEXT_FORMATS } from "../importMural";
import saveAs from "file-saver";
import { Popup } from "./Popup";
import { Palette } from "../../lib/palette";
const Margin = styled.div`
margin: 2px;
@@ -27,11 +28,46 @@ const Line = styled.div`
display: flex;
flex-direction: row;
`;
const Strong = styled.strong`
margin-right: 2px;
`;
export const BtnSmall = styled.button`
border: 1px solid white;
font-size: 50pt;
width: 22px;
background-color: rgba(255, 255, 255, 0.75);
color: rgb(10, 10, 10);
border-radius: 12px;
border: 2px solid black;
margin: 1px;
margin-left: 3px;
display: flex;
padding: 3px;
outline: none !important;
text-decoration: none;
&:hover {
background-color: rgba(158, 158, 158, 0.75);
}
&:visited {
text-decoration: none;
}
&:disabled {
color: gray;
border-color: gray;
cursor: not-allowed;
}
transition: background-color 250ms;
`;
interface Props {
mural: MuralEx;
selected: boolean;
store: Store;
palette: Palette;
cords: Coordinates;
}
@@ -39,6 +75,7 @@ interface State {
width: number;
height: number;
overlay: boolean;
progress?: MuralStatus | (() => void /* loading */);
}
@@ -59,6 +96,10 @@ export class MuralView extends React.Component<Props, State> {
componentDidUpdate ( prevProps: Readonly<Props> ) {
if (this.props.mural.ref !== prevProps.mural.ref) {
this.updateSize();
if (typeof this.state.progress === "function") {
typeof this.state.progress();
this.setState({progress: undefined});
}
}
}
@@ -83,8 +124,8 @@ export class MuralView extends React.Component<Props, State> {
height, width
});
};
renderInfoLine(title: string, description: string) {
return <Line><H5>{title}:</H5><span> {description}</span></Line>;
renderInfoLine(title: string, description: string | React.JSX.Element) {
return <Line><H5>{title}:</H5><span>{description}</span></Line>;
}
btn(context: string, icon: IconDefinition, onClick: () => void, selected?: boolean) {
@@ -196,16 +237,42 @@ export class MuralView extends React.Component<Props, State> {
}
};
updateProgress = async () => {
let canceled = false;
const cancelFn = () => {
canceled = true;
};
this.setState({progress: cancelFn});
const data = await getPixelStatusMural(this.props.mural, this.props.palette.palette);
if (!canceled) {
this.setState({progress: data});
}
};
renderProgress() {
if (typeof this.state.progress === "function") {
return "Loading...";
}
const ref = <BtnSmall onClick={this.updateProgress}><FontAwesomeIcon icon={faRefresh} /></BtnSmall>;
if (this.state.progress && this.state.progress.total !== 0) {
const { total, bad, good } = this.state.progress;
return <Flex><Strong>{Math.floor(good / total * 100)}%</Strong> {bad > 0 ? formatNumber(bad) : ""}{ref}</Flex>;
} else {
return ref;
}
}
render() {
return <Border onClick={this.onLoad} style={{ border: this.props.selected ? "3px solid black" : "3px dotted black", cursor: "pointer" }} onMouseEnter={this.onEnter} onMouseLeave={this.onLeave}>
<Flex>
<CanvasToCanvasJSX canvas={this.props.mural.ref} height={this.state.height} width={this.state.width}/>
<Margin style={{flex: "1"}}>
{this.renderInfoLine("Name", this.props.mural.name)}
{this.renderInfoLine("PixelCount", formatNumber(this.props.mural.pixelCount))}
{this.renderInfoLine("x", this.props.mural.x.toString() )}
{this.renderInfoLine("y", this.props.mural.y.toString() )}
{this.renderInfoLine("size", `${getMuralWidth(this.props.mural)}x${getMuralHeight(this.props.mural)}`)}
{this.renderInfoLine("Pixel count", formatNumber(this.props.mural.pixelCount))}
{this.renderInfoLine("X", this.props.mural.x.toString() )}
{this.renderInfoLine("Y", this.props.mural.y.toString() )}
{this.renderInfoLine("Size", `${getMuralWidth(this.props.mural)}x${getMuralHeight(this.props.mural)}`)}
{this.renderInfoLine("Progress", this.renderProgress())}
</Margin>
</Flex>
<Flex>
@@ -217,4 +284,4 @@ export class MuralView extends React.Component<Props, State> {
</Flex>
</Border>;
}
}
}
+6
View File
@@ -11,6 +11,12 @@ export interface Mural {
y: number;
}
export interface MuralStatus {
total: number;
good: number;
bad: number;
}
export interface LoadUnload {
load: () => Promise<void> | void;
unload: () => Promise<void> | void;
+27 -22
View File
@@ -141,37 +141,42 @@ export function getSelectionArea() {
});
}
export async function fetchCombineTiledImage(x: number, y: number, width: number, height: number, uScale = 0) {
const canvas = createCanvas();
canvas.width = width / Math.pow(2, uScale);
canvas.height = height / Math.pow(2, uScale);
const ctx = canvas.getContext("2d")!;
const offX = Math.floor((x % (CHUNK_SIZE)));
const offY = Math.floor((y % (CHUNK_SIZE)));
const awaiters: Promise<void>[] = [];
for (let xx = 0; xx < width + CHUNK_SIZE; xx += CHUNK_SIZE) {
for (let yy = 0; yy < height + CHUNK_SIZE; yy += CHUNK_SIZE) {
const promise = new Promise<void>((resolve, reject) => {
fetchTile(x + xx, y + yy).then(image => {
const offXX = x > 0 ? -offX : (-(CHUNK_SIZE + (offX)) % CHUNK_SIZE);
const offYY = y > 0 ? -offY : (-(CHUNK_SIZE + (offY)) % CHUNK_SIZE);
ctx.drawImage(image, xx + offXX, yy + offYY);
resolve();
}).catch(reject);
});
awaiters.push(promise);
}
}
await Promise.all(awaiters);
return canvas;
}
export async function takeCanvasShot(coordinates: Coordinates) {
const rect = await getSelectionArea();
const s = coordinates.uScale;
const cords = coordinates.screenToGrid(rect.x, rect.y);
const cordsEnd = coordinates.screenToGrid(rect.x + rect.width, rect.height + rect.y);
if (!cords || !cordsEnd) {
return; // unavailable
}
const canvas = createCanvas();
canvas.width = rect.width / Math.pow(2, s);
canvas.height = rect.height / Math.pow(2, s);
const ctx = canvas.getContext("2d")!;
const offX = Math.floor((cords.x % (CHUNK_SIZE)));
const offY = Math.floor((cords.y % (CHUNK_SIZE)));
const awaiters: Promise<void>[] = [];
for (let x = 0; x < rect.width + CHUNK_SIZE; x += CHUNK_SIZE) {
for (let y = 0; y < rect.height + CHUNK_SIZE; y += CHUNK_SIZE) {
const promise = new Promise<void>((resolve, reject) => {
fetchTile(cords.x + x, cords.y + y).then(image => {
const offXX = cords.x > 0 ? -offX : (-(CHUNK_SIZE + (offX)) % CHUNK_SIZE);
const offYY = cords.y > 0 ? -offY : (-(CHUNK_SIZE + (offY)) % CHUNK_SIZE);
ctx.drawImage(image, x + offXX, y + offYY);
resolve();
}).catch(reject);
});
awaiters.push(promise);
}
}
try {
await Promise.all(awaiters);
const canvas = await fetchCombineTiledImage(cords.x, cords.y, rect.height, rect.width, coordinates.uScale);
const url = canvas.toDataURL();
Popup.custom(<img style={{border: "1px solid black"}} src={url} />, [{
content: "Download",
+1 -2
View File
@@ -1,7 +1,6 @@
import { BasicEventEmitter, Listener } from "./eventEmitter";
import { LoadUnload, Mural, MuralEx, SelectedMural } from "./interfaces";
import { LoadUnload, Mural, MuralEx, SelectedMural } from "../interfaces";
import { Palette } from "./palette";
import { Storage } from "./storage";
import { canvasFromMural, getMuralHeight, getMuralWidth, pushUnique, removeItem } from "./utils";
+32 -1
View File
@@ -1,5 +1,6 @@
import { clone, isInteger } from "lodash";
import { Mural, RGB } from "../interfaces";
import { Mural, MuralStatus, RGB } from "../interfaces";
import { fetchCombineTiledImage } from "./canvashot";
export const CHUNK_SIZE = 512;
@@ -222,6 +223,36 @@ export function flatQuantizeImageData(imageData: ImageData, palette: RGB[]) {
}
}
export async function getPixelStatusMural(mural: Mural, palette: RGB[]): Promise<MuralStatus> {
const width = getMuralWidth(mural);
const height = getMuralHeight(mural);
const tile = await fetchCombineTiledImage(mural.x, mural.y, width, height);
const imageData = tile.getContext("2d")?.getImageData(0, 0, width, height);
const buffer = mural.pixels.flat();
let total = 0;
let bad = 0;
let good = 0;
if (imageData) {
for (let i = 0, j = 0; i < imageData.data.length; i += 4, j++) {
if (buffer[j] >= 0) {
const r = imageData.data[i + 0];
const g = imageData.data[i + 1];
const b = imageData.data[i + 2];
const obj = rgb(r, g, b);
total++;
if (findClosestIndexColor(obj, palette) === buffer[j]) {
good++;
} else {
bad++;
}
}
}
}
return { total, good, bad };
}
export function imageDataToPaletteIndices(imageData: ImageData, palette: RGB[]) {
const { height, width } = imageData;
const pixels: number[][] = [];