1
2
|
(self.webpackChunkapp=self.webpackChunkapp||[]).push([[8780],{87360:function(e,r){var n,t;void 0===(t="function"==typeof(n=function(){var e="undefined"==typeof window,r="function"==typeof Map?Map:function(){var e=Object.create(null);this.get=function(r){return e[r]},this.set=function(r,n){return e[r]=n,this},this.clear=function(){e=Object.create(null)}},n=new r,t=new r,o=[];o.total=0;var u=[],a=[];function i(){n.clear(),t.clear(),u=[],a=[]}function f(e){for(var r=-9007199254740991,n=e.length-1;n>=0;--n){var t=e[n];if(null!==t){var o=t.score;o>r&&(r=o)}}return-9007199254740991===r?null:r}function l(e,r){var n=e[r];if(void 0!==n)return n;var t=r;Array.isArray(r)||(t=r.split("."));for(var o=t.length,u=-1;e&&++u<o;)e=e[t[u]];return e}function c(e){return"object"==typeof e}var s=function(){var e=[],r=0,n={};function t(){for(var n=0,t=e[n],o=1;o<r;){var u=o+1;n=o,u<r&&e[u].score<e[o].score&&(n=u),e[n-1>>1]=e[n],o=1+(n<<1)}for(var a=n-1>>1;n>0&&t.score<e[a].score;a=(n=a)-1>>1)e[n]=e[a];e[n]=t}return n.add=function(n){var t=r;e[r++]=n;for(var o=t-1>>1;t>0&&n.score<e[o].score;o=(t=o)-1>>1)e[t]=e[o];e[t]=n},n.poll=function(){if(0!==r){var n=e[0];return e[0]=e[--r],t(),n}},n.peek=function(n){if(0!==r)return e[0]},n.replaceTop=function(r){e[0]=r,t()},n},d=s();return function r(p){var v={single:function(e,r,n){return"farzher"==e?{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6]}:e?(c(e)||(e=v.getPreparedSearch(e)),r?(c(r)||(r=v.getPrepared(r)),((n&&void 0!==n.allowTypo?n.allowTypo:!p||void 0===p.allowTypo||p.allowTypo)?v.algorithm:v.algorithmNoTypo)(e,r,e[0])):null):null},go:function(e,r,n){if("farzher"==e)return[{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6],obj:r?r[0]:null}];if(!e)return o;var t=(e=v.prepareSearch(e))[0],u=n&&n.threshold||p&&p.threshold||-9007199254740991,a=n&&n.limit||p&&p.limit||9007199254740991,i=(n&&void 0!==n.allowTypo?n.allowTypo:!p||void 0===p.allowTypo||p.allowTypo)?v.algorithm:v.algorithmNoTypo,s=0,g=0,h=r.length;if(n&&n.keys)for(var x=n.scoreFn||f,m=n.keys,b=m.length,w=h-1;w>=0;--w){for(var y=r[w],_=new Array(b),k=b-1;k>=0;--k)(T=l(y,C=m[k]))?(c(T)||(T=v.getPrepared(T)),_[k]=i(e,T,t)):_[k]=null;_.obj=y;var E=x(_);null!==E&&(E<u||(_.score=E,s<a?(d.add(_),++s):(++g,E>d.peek().score&&d.replaceTop(_))))}else if(n&&n.key){var C=n.key;for(w=h-1;w>=0;--w)(T=l(y=r[w],C))&&(c(T)||(T=v.getPrepared(T)),null!==(A=i(e,T,t))&&(A.score<u||(A={target:A.target,_targetLowerCodes:null,_nextBeginningIndexes:null,score:A.score,indexes:A.indexes,obj:y},s<a?(d.add(A),++s):(++g,A.score>d.peek().score&&d.replaceTop(A)))))}else for(w=h-1;w>=0;--w){var T,A;(T=r[w])&&(c(T)||(T=v.getPrepared(T)),null!==(A=i(e,T,t))&&(A.score<u||(s<a?(d.add(A),++s):(++g,A.score>d.peek().score&&d.replaceTop(A)))))}if(0===s)return o;var I=new Array(s);for(w=s-1;w>=0;--w)I[w]=d.poll();return I.total=s+g,I},goAsync:function(r,n,t){var u=!1,a=new Promise((function(a,i){if("farzher"==r)return a([{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6],obj:n?n[0]:null}]);if(!r)return a(o);var d=(r=v.prepareSearch(r))[0],g=s(),h=n.length-1,x=t&&t.threshold||p&&p.threshold||-9007199254740991,m=t&&t.limit||p&&p.limit||9007199254740991,b=(t&&void 0!==t.allowTypo?t.allowTypo:!p||void 0===p.allowTypo||p.allowTypo)?v.algorithm:v.algorithmNoTypo,w=0,y=0;function _(){if(u)return i("canceled");var s=Date.now();if(t&&t.keys)for(var p=t.scoreFn||f,k=t.keys,E=k.length;h>=0;--h){if(h%1e3==0&&Date.now()-s>=10)return void(e?setImmediate(_):setTimeout(_));for(var C=n[h],T=new Array(E),A=E-1;A>=0;--A)(N=l(C,j=k[A]))?(c(N)||(N=v.getPrepared(N)),T[A]=b(r,N,d)):T[A]=null;T.obj=C;var I=p(T);null!==I&&(I<x||(T.score=I,w<m?(g.add(T),++w):(++y,I>g.peek().score&&g.replaceTop(T))))}else if(t&&t.key)for(var j=t.key;h>=0;--h){if(h%1e3==0&&Date.now()-s>=10)return void(e?setImmediate(_):setTimeout(_));(N=l(C=n[h],j))&&(c(N)||(N=v.getPrepared(N)),null!==(z=b(r,N,d))&&(z.score<x||(z={target:z.target,_targetLowerCodes:null,_nextBeginningIndexes:null,score:z.score,indexes:z.indexes,obj:C},w<m?(g.add(z),++w):(++y,z.score>g.peek().score&&g.replaceTop(z)))))}else for(;h>=0;--h){if(h%1e3==0&&Date.now()-s>=10)return void(e?setImmediate(_):setTimeout(_));var N,z;(N=n[h])&&(c(N)||(N=v.getPrepared(N)),null!==(z=b(r,N,d))&&(z.score<x||(w<m?(g.add(z),++w):(++y,z.score>g.peek().score&&g.replaceTop(z)))))}if(0===w)return a(o);for(var L=new Array(w),M=w-1;M>=0;--M)L[M]=g.poll();L.total=w+y,a(L)}e?setImmediate(_):_()}));return a.cancel=function(){u=!0},a},highlight:function(e,r,n){if("function"==typeof r)return v.highlightCallback(e,r);if(null===e)return null;void 0===r&&(r="<b>"),void 0===n&&(n="</b>");for(var t="",o=0,u=!1,a=e.target,i=a.length,f=e.indexes,l=0;l<i;++l){var c=a[l];if(f[o]===l){if(u||(u=!0,t+=r),++o===f.length){t+=c+n+a.substr(l+1);break}}else u&&(u=!1,t+=n);t+=c}return t},highlightCallback:function(e,r){if(null===e)return null;for(var n=e.target,t=n.length,o=e.indexes,u="",a=0,i=0,f=!1,l=(e=[],0);l<t;++l){var c=n[l];if(o[i]===l){if(++i,f||(f=!0,e.push(u),u=""),i===o.length){u+=c,e.push(r(u,a++)),u="",e.push(n.substr(l+1));break}}else f&&(f=!1,e.push(r(u,a++)),u="");u+=c}return e},prepare:function(e){return e?{target:e,_targetLowerCodes:v.prepareLowerCodes(e),_nextBeginningIndexes:null,score:null,indexes:null,obj:null}:{target:"",_targetLowerCodes:[0],_nextBeginningIndexes:null,score:null,indexes:null,obj:null}},prepareSlow:function(e){return e?{target:e,_targetLowerCodes:v.prepareLowerCodes(e),_nextBeginningIndexes:v.prepareNextBeginningIndexes(e),score:null,indexes:null,obj:null}:{target:"",_targetLowerCodes:[0],_nextBeginningIndexes:null,score:null,indexes:null,obj:null}},prepareSearch:function(e){return e||(e=""),v.prepareLowerCodes(e)},getPrepared:function(e){if(e.length>999)return v.prepare(e);var r=n.get(e);return void 0!==r||(r=v.prepare(e),n.set(e,r)),r},getPreparedSearch:function(e){if(e.length>999)return v.prepareSearch(e);var r=t.get(e);return void 0!==r||(r=v.prepareSearch(e),t.set(e,r)),r},algorithm:function(e,r,n){for(var t=r._targetLowerCodes,o=e.length,i=t.length,f=0,l=0,c=0,s=0;;){if(n===t[l]){if(u[s++]=l,++f===o)break;n=e[0===c?f:c===f?f+1:c===f-1?f-1:f]}if(++l>=i)for(;;){if(f<=1)return null;if(0===c){if(n===e[--f])continue;c=f}else{if(1===c)return null;if((n=e[1+(f=--c)])===e[f])continue}l=u[(s=f)-1]+1;break}}f=0;var d=0,p=!1,g=0,h=r._nextBeginningIndexes;null===h&&(h=r._nextBeginningIndexes=v.prepareNextBeginningIndexes(r.target));var x=l=0===u[0]?0:h[u[0]-1];if(l!==i)for(;;)if(l>=i){if(f<=0){if(++d>o-2)break;if(e[d]===e[d+1])continue;l=x;continue}--f,l=h[a[--g]]}else if(e[0===d?f:d===f?f+1:d===f-1?f-1:f]===t[l]){if(a[g++]=l,++f===o){p=!0;break}++l}else l=h[l];if(p)var m=a,b=g;else m=u,b=s;for(var w=0,y=-1,_=0;_<o;++_)y!==(l=m[_])-1&&(w-=l),y=l;for(p?0!==d&&(w+=-20):(w*=1e3,0!==c&&(w+=-20)),w-=i-o,r.score=w,r.indexes=new Array(b),_=b-1;_>=0;--_)r.indexes[_]=m[_];return r},algorithmNoTypo:function(e,r,n){for(var t=r._targetLowerCodes,o=e.length,i=t.length,f=0,l=0,c=0;;){if(n===t[l]){if(u[c++]=l,++f===o)break;n=e[f]}if(++l>=i)return null}f=0;var s=!1,d=0,p=r._nextBeginningIndexes;if(null===p&&(p=r._nextBeginningIndexes=v.prepareNextBeginningIndexes(r.target)),(l=0===u[0]?0:p[u[0]-1])!==i)for(;;)if(l>=i){if(f<=0)break;--f,l=p[a[--d]]}else if(e[f]===t[l]){if(a[d++]=l,++f===o){s=!0;break}++l}else l=p[l];if(s)var g=a,h=d;else g=u,h=c;for(var x=0,m=-1,b=0;b<o;++b)m!==(l=g[b])-1&&(x-=l),m=l;for(s||(x*=1e3),x-=i-o,r.score=x,r.indexes=new Array(h),b=h-1;b>=0;--b)r.indexes[b]=g[b];return r},prepareLowerCodes:function(e){for(var r=e.length,n=[],t=e.toLowerCase(),o=0;o<r;++o)n[o]=t.charCodeAt(o);return n},prepareBeginningIndexes:function(e){for(var r=e.length,n=[],t=0,o=!1,u=!1,a=0;a<r;++a){var i=e.charCodeAt(a),f=i>=65&&i<=90,l=f||i>=97&&i<=122||i>=48&&i<=57,c=f&&!o||!u||!l;o=f,u=l,c&&(n[t++]=a)}return n},prepareNextBeginningIndexes:function(e){for(var r=e.length,n=v.prepareBeginningIndexes(e),t=[],o=n[0],u=0,a=0;a<r;++a)o>a?t[a]=o:(o=n[++u],t[a]=void 0===o?r:o);return t},cleanup:i,new:r};return v}()})?n.apply(r,[]):n)||(e.exports=t)},47443:function(e,r,n){var t=n(42118);e.exports=function(e,r){return!(null==e||!e.length)&&t(e,r,0)>-1}},1196:function(e){e.exports=function(e,r,n){for(var t=-1,o=null==e?0:e.length;++t<o;)if(n(r,e[t]))return!0;return!1}},62663:function(e){e.exports=function(e,r,n,t){var o=-1,u=null==e?0:e.length;for(t&&u&&(n=e[++o]);++o<u;)n=r(n,e[o],o,e);return n}},44286:function(e){e.exports=function(e){return e.split("")}},49029:function(e){var r=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;e.exports=function(e){return e.match(r)||[]}},20731:function(e,r,n){var t=n(88668),o=n(47443),u=n(1196),a=n(29932),i=n(7518),f=n(74757);e.exports=function(e,r,n,l){var c=-1,s=o,d=!0,p=e.length,v=[],g=r.length;if(!p)return v;n&&(r=a(r,i(n))),l?(s=u,d=!1):r.length>=200&&(s=f,d=!1,r=new t(r));e:for(;++c<p;){var h=e[c],x=null==n?h:n(h);if(h=l||0!==h?h:0,d&&x==x){for(var m=g;m--;)if(r[m]===x)continue e;v.push(h)}else s(r,x,l)||v.push(h)}return v}},42118:function(e,r,n){var t=n(41848),o=n(62722),u=n(42351);e.exports=function(e,r,n){return r==r?u(e,r,n):t(e,o,n)}},62722:function(e){e.exports=function(e){return e!=e}},69199:function(e,r,n){var t=n(89881),o=n(98612);e.exports=function(e,r){var n=-1,u=o(e)?Array(e.length):[];return t(e,(function(e,t,o){u[++n]=r(e,t,o)})),u}},18674:function(e){e.exports=function(e){return function(r){return null==e?void 0:e[r]}}},5976:function(e,r,n){var t=n(6557),o=n(45357),u=n(30061);e.exports=function(e,r){return u(o(e,r,t),e+"")}},14259:function(e){e.exports=function(e,r,n){var t=-1,o=e.length;r<0&&(r=-r>o?0:o+r),(n=n>o?o:n)<0&&(n+=o),o=r>n?0:n-r>>>0,r>>>=0;for(var u=Array(o);++t<o;)u[t]=e[t+r];return u}},40180:function(e,r,n){var t=n(14259);e.exports=function(e,r,n){var o=e.length;return n=void 0===n?o:n,!r&&n>=o?e:t(e,r,n)}},98805:function(e,r,n){var t=n(40180),o=n(62689),u=n(83140),a=n(79833);e.exports=function(e){return function(r){r=a(r);var n=o(r)?u(r):void 0,i=n?n[0]:r.charAt(0),f=n?t(n,1).join(""):r.slice(1);return i[e]()+f}}},35393:function(e,r,n){var t=n(62663),o=n(53816),u=n(58748),a=RegExp("['’]","g");e.exports=function(e){return function(r){return t(u(o(r).replace(a,"")),e,"")}}},69389:function(e,r,n){var t=n(18674)({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"});e.exports=t},62689:function(e){var r=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return r.test(e)}},93157:function(e){var r=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;e.exports=function(e){return r.test(e)}},42351:function(e){e.exports=function(e,r,n){for(var t=n-1,o=e.length;++t<o;)if(e[t]===r)return t;return-1}},83140:function(e,r,n){var t=n(44286),o=n(62689),u=n(676);e.exports=function(e){return o(e)?u(e):t(e)}},676:function(e){var r="\\ud800-\\udfff",n="["+r+"]",t="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",o="\\ud83c[\\udffb-\\udfff]",u="[^"+r+"]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",i="[\\ud800-\\udbff][\\udc00-\\udfff]",f="(?:"+t+"|"+o+")?",l="[\\ufe0e\\ufe0f]?",c=l+f+"(?:\\u200d(?:"+[u,a,i].join("|")+")"+l+f+")*",s="(?:"+[u+t+"?",t,a,i,n].join("|")+")",d=RegExp(o+"(?="+o+")|"+s+c,"g");e.exports=function(e){return e.match(d)||[]}},2757:function(e){var r="\\ud800-\\udfff",n="\\u2700-\\u27bf",t="a-z\\xdf-\\xf6\\xf8-\\xff",o="A-Z\\xc0-\\xd6\\xd8-\\xde",u="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\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",a="["+u+"]",i="\\d+",f="["+n+"]",l="["+t+"]",c="[^"+r+u+i+n+t+o+"]",s="(?:\\ud83c[\\udde6-\\uddff]){2}",d="[\\ud800-\\udbff][\\udc00-\\udfff]",p="["+o+"]",v="(?:"+l+"|"+c+")",g="(?:"+p+"|"+c+")",h="(?:['’](?:d|ll|m|re|s|t|ve))?",x="(?:['’](?:D|LL|M|RE|S|T|VE))?",m="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",b="[\\ufe0e\\ufe0f]?",w=b+m+"(?:\\u200d(?:"+["[^"+r+"]",s,d].join("|")+")"+b+m+")*",y="(?:"+[f,s,d].join("|")+")"+w,_=RegExp([p+"?"+l+"+"+h+"(?="+[a,p,"$"].join("|")+")",g+"+"+x+"(?="+[a,p+v,"$"].join("|")+")",p+"?"+v+"+"+h,p+"+"+x,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",i,y].join("|"),"g");e.exports=function(e){return e.match(_)||[]}},53816:function(e,r,n){var t=n(69389),o=n(79833),u=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,a=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");e.exports=function(e){return(e=o(e))&&e.replace(u,t).replace(a,"")}},91966:function(e,r,n){var t=n(20731),o=n(21078),u=n(5976),a=n(29246),i=u((function(e,r){return a(e)?t(e,o(r,1,a,!0)):[]}));e.exports=i},29246:function(e,r,n){var t=n(98612),o=n(37005);e.exports=function(e){return o(e)&&t(e)}},35161:function(e,r,n){var t=n(29932),o=n(67206),u=n(69199),a=n(1469);e.exports=function(e,r){return(a(e)?t:u)(e,o(r,3))}},18029:function(e,r,n){var t=n(35393),o=n(11700),u=t((function(e,r,n){return e+(n?" ":"")+o(r)}));e.exports=u},11700:function(e,r,n){var t=n(98805)("toUpperCase");e.exports=t},82569:function(e,r,n){var t=n(20731),o=n(5976),u=n(29246),a=o((function(e,r){return u(e)?t(e,r):[]}));e.exports=a},58748:function(e,r,n){var t=n(49029),o=n(93157),u=n(79833),a=n(2757);e.exports=function(e,r,n){return e=u(e),void 0===(r=n?void 0:r)?o(e)?a(e):t(e):e.match(r)||[]}},28042:function(e,r,n){"use strict";n.d(r,{Z:function(){return u}});const t=e=>e.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">");class o extends Error{constructor(e){super("Missing a value for "+(e?`the placeholder: ${e}`:"a placeholder"),e),this.name="MissingValueError",this.key=e}}function u(e,r,{ignoreMissing:n=!1,transform:u=(({value:e})=>e)}={}){if("string"!=typeof e)throw new TypeError(`Expected a \`string\` in the first argument, got \`${typeof e}\``);if("object"!=typeof r)throw new TypeError(`Expected an \`object\` or \`Array\` in the second argument, got \`${typeof r}\``);const a=(e,t)=>{let a=r;for(const e of t.split("."))a=a?a[e]:void 0;const i=u({value:a,key:t});if(void 0===i){if(n)return e;throw new o(t)}return String(i)},i=/{{(\d+|[a-z$_][\w\-$]*?(?:\.[\w\-$]*?)*?)}}/gi;var f;return i.test(e)&&(e=e.replace(i,(f=a,(...e)=>function(e,...r){if("string"==typeof e)return t(e);let n=e[0];for(const[o,u]of r.entries())n=n+t(String(u))+e[o+1];return n}(f(...e))))),e.replace(/{(\d+|[a-z$_][\w\-$]*?(?:\.[\w\-$]*?)*?)}/gi,a)}},55651:function(e,r,n){"use strict";n.d(r,{Jz:function(){return A}});var t=n(67294);function o(){return(o=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])}return e}).apply(this,arguments)}function u(e,r){if(null==e)return{};var n,t,o={},u=Object.keys(e);for(t=0;t<u.length;t++)r.indexOf(n=u[t])>=0||(o[n]=e[n]);return o}function a(e){var r=(0,t.useRef)(e),n=(0,t.useRef)((function(e){r.current&&r.current(e)}));return r.current=e,n.current}var i=function(e,r,n){return void 0===r&&(r=0),void 0===n&&(n=1),e>n?n:e<r?r:e},f=function(e){return"touches"in e},l=function(e){return e&&e.ownerDocument.defaultView||self},c=function(e,r,n){var t=e.getBoundingClientRect(),o=f(r)?function(e,r){for(var n=0;n<e.length;n++)if(e[n].identifier===r)return e[n];return e[0]}(r.touches,n):r;return{left:i((o.pageX-(t.left+l(e).pageXOffset))/t.width),top:i((o.pageY-(t.top+l(e).pageYOffset))/t.height)}},s=function(e){!f(e)&&e.preventDefault()},d=t.memo((function(e){var r=e.onMove,n=e.onKey,i=u(e,["onMove","onKey"]),d=(0,t.useRef)(null),p=a(r),v=a(n),g=(0,t.useRef)(null),h=(0,t.useRef)(!1),x=(0,t.useMemo)((function(){var e=function(e){s(e),(f(e)?e.touches.length>0:e.buttons>0)&&d.current?p(c(d.current,e,g.current)):n(!1)},r=function(){return n(!1)};function n(n){var t=h.current,o=l(d.current),u=n?o.addEventListener:o.removeEventListener;u(t?"touchmove":"mousemove",e),u(t?"touchend":"mouseup",r)}return[function(e){var r=e.nativeEvent,t=d.current;if(t&&(s(r),!function(e,r){return r&&!f(e)}(r,h.current)&&t)){if(f(r)){h.current=!0;var o=r.changedTouches||[];o.length&&(g.current=o[0].identifier)}t.focus(),p(c(t,r,g.current)),n(!0)}},function(e){var r=e.which||e.keyCode;r<37||r>40||(e.preventDefault(),v({left:39===r?.05:37===r?-.05:0,top:40===r?.05:38===r?-.05:0}))},n]}),[v,p]),m=x[0],b=x[1],w=x[2];return(0,t.useEffect)((function(){return w}),[w]),t.createElement("div",o({},i,{onTouchStart:m,onMouseDown:m,className:"react-colorful__interactive",ref:d,onKeyDown:b,tabIndex:0,role:"slider"}))})),p=function(e){return e.filter(Boolean).join(" ")},v=function(e){var r=e.color,n=e.left,o=e.top,u=void 0===o?.5:o,a=p(["react-colorful__pointer",e.className]);return t.createElement("div",{className:a,style:{top:100*u+"%",left:100*n+"%"}},t.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:r}}))},g=function(e,r,n){return void 0===r&&(r=0),void 0===n&&(n=Math.pow(10,r)),Math.round(n*e)/n},h=(Math.PI,function(e){var r=e.s,n=e.l;return{h:e.h,s:(r*=(n<50?n:100-n)/100)>0?2*r/(n+r)*100:0,v:n+r,a:e.a}}),x=function(e){var r=e.s,n=e.v,t=e.a,o=(200-r)*n/100;return{h:g(e.h),s:g(o>0&&o<200?r*n/100/(o<=100?o:200-o)*100:0),l:g(o/2),a:g(t,2)}},m=function(e){var r=x(e);return"hsl("+r.h+", "+r.s+"%, "+r.l+"%)"},b=t.memo((function(e){var r=e.hue,n=e.onChange,o=p(["react-colorful__hue",e.className]);return t.createElement("div",{className:o},t.createElement(d,{onMove:function(e){n({h:360*e.left})},onKey:function(e){n({h:i(r+360*e.left,0,360)})},"aria-label":"Hue","aria-valuenow":g(r),"aria-valuemax":"360","aria-valuemin":"0"},t.createElement(v,{className:"react-colorful__hue-pointer",left:r/360,color:m({h:r,s:100,v:100,a:1})})))})),w=t.memo((function(e){var r=e.hsva,n=e.onChange,o={backgroundColor:m({h:r.h,s:100,v:100,a:1})};return t.createElement("div",{className:"react-colorful__saturation",style:o},t.createElement(d,{onMove:function(e){n({s:100*e.left,v:100-100*e.top})},onKey:function(e){n({s:i(r.s+100*e.left,0,100),v:i(r.v-100*e.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+g(r.s)+"%, Brightness "+g(r.v)+"%"},t.createElement(v,{className:"react-colorful__saturation-pointer",top:1-r.v/100,left:r.s/100,color:m(r)})))})),y=function(e,r){if(e===r)return!0;for(var n in e)if(e[n]!==r[n])return!1;return!0};function _(e,r,n){var o=a(n),u=(0,t.useState)((function(){return e.toHsva(r)})),i=u[0],f=u[1],l=(0,t.useRef)({color:r,hsva:i});(0,t.useEffect)((function(){if(!e.equal(r,l.current.color)){var n=e.toHsva(r);l.current={hsva:n,color:r},f(n)}}),[r,e]),(0,t.useEffect)((function(){var r;y(i,l.current.hsva)||e.equal(r=e.fromHsva(i),l.current.color)||(l.current={hsva:i,color:r},o(r))}),[i,e,o]);var c=(0,t.useCallback)((function(e){f((function(r){return Object.assign({},r,e)}))}),[]);return[i,c]}var k="undefined"!=typeof window?t.useLayoutEffect:t.useEffect,E=new Map,C=function(e){var r,a=e.className,i=e.colorModel,f=e.color,l=void 0===f?i.defaultColor:f,c=e.onChange,s=u(e,["className","colorModel","color","onChange"]),d=(0,t.useRef)(null);r=d,k((function(){var e=r.current?r.current.ownerDocument:document;if(void 0!==e&&!E.has(e)){var t=e.createElement("style");t.innerHTML='.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url(\'data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><path d="M8 0h8v8H8zM0 8h8v8H0z"/></svg>\')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}',E.set(e,t);var o=n.nc;o&&t.setAttribute("nonce",o),e.head.appendChild(t)}}),[]);var v=_(i,l,c),g=v[0],h=v[1],x=p(["react-colorful",a]);return t.createElement("div",o({},s,{ref:d,className:x}),t.createElement(w,{hsva:g,onChange:h}),t.createElement(b,{hue:g.h,onChange:h,className:"react-colorful__last-control"}))},T={defaultColor:{h:0,s:0,l:0},toHsva:function(e){return h({h:e.h,s:e.s,l:e.l,a:1})},fromHsva:function(e){return{h:(r=x(e)).h,s:r.s,l:r.l};var r},equal:y},A=function(e){return t.createElement(C,o({},e,{colorModel:T}))}}}]);
//# sourceMappingURL=8780.1aea7fe8c12a4e07599d.js.map
|