(self.webpackChunkapp=self.webpackChunkapp||[]).push([[2315],{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 a=[],l=[];function i(){n.clear(),t.clear(),a=[],l=[]}function u(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 c(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,a=-1;e&&++a>1]=e[n],o=1+(n<<1)}for(var l=n-1>>1;n>0&&t.score>1)e[n]=e[l];e[n]=t}return n.add=function(n){var t=r;e[r++]=n;for(var o=t-1>>1;t>0&&n.score>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?(f(e)||(e=v.getPreparedSearch(e)),r?(f(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],a=n&&n.threshold||p&&p.threshold||-9007199254740991,l=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,h=0,g=r.length;if(n&&n.keys)for(var m=n.scoreFn||u,x=n.keys,w=x.length,b=g-1;b>=0;--b){for(var _=r[b],y=new Array(w),k=w-1;k>=0;--k)(E=c(_,T=x[k]))?(f(E)||(E=v.getPrepared(E)),y[k]=i(e,E,t)):y[k]=null;y.obj=_;var C=m(y);null!==C&&(Cd.peek().score&&d.replaceTop(y))))}else if(n&&n.key){var T=n.key;for(b=g-1;b>=0;--b)(E=c(_=r[b],T))&&(f(E)||(E=v.getPrepared(E)),null!==(I=i(e,E,t))&&(I.scored.peek().score&&d.replaceTop(I)))))}else for(b=g-1;b>=0;--b){var E,I;(E=r[b])&&(f(E)||(E=v.getPrepared(E)),null!==(I=i(e,E,t))&&(I.scored.peek().score&&d.replaceTop(I)))))}if(0===s)return o;var N=new Array(s);for(b=s-1;b>=0;--b)N[b]=d.poll();return N.total=s+h,N},goAsync:function(r,n,t){var a=!1,l=new Promise((function(l,i){if("farzher"==r)return l([{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6],obj:n?n[0]:null}]);if(!r)return l(o);var d=(r=v.prepareSearch(r))[0],h=s(),g=n.length-1,m=t&&t.threshold||p&&p.threshold||-9007199254740991,x=t&&t.limit||p&&p.limit||9007199254740991,w=(t&&void 0!==t.allowTypo?t.allowTypo:!p||void 0===p.allowTypo||p.allowTypo)?v.algorithm:v.algorithmNoTypo,b=0,_=0;function y(){if(a)return i("canceled");var s=Date.now();if(t&&t.keys)for(var p=t.scoreFn||u,k=t.keys,C=k.length;g>=0;--g){if(g%1e3==0&&Date.now()-s>=10)return void(e?setImmediate(y):setTimeout(y));for(var T=n[g],E=new Array(C),I=C-1;I>=0;--I)(j=c(T,B=k[I]))?(f(j)||(j=v.getPrepared(j)),E[I]=w(r,j,d)):E[I]=null;E.obj=T;var N=p(E);null!==N&&(Nh.peek().score&&h.replaceTop(E))))}else if(t&&t.key)for(var B=t.key;g>=0;--g){if(g%1e3==0&&Date.now()-s>=10)return void(e?setImmediate(y):setTimeout(y));(j=c(T=n[g],B))&&(f(j)||(j=v.getPrepared(j)),null!==(M=w(r,j,d))&&(M.scoreh.peek().score&&h.replaceTop(M)))))}else for(;g>=0;--g){if(g%1e3==0&&Date.now()-s>=10)return void(e?setImmediate(y):setTimeout(y));var j,M;(j=n[g])&&(f(j)||(j=v.getPrepared(j)),null!==(M=w(r,j,d))&&(M.scoreh.peek().score&&h.replaceTop(M)))))}if(0===b)return l(o);for(var L=new Array(b),z=b-1;z>=0;--z)L[z]=h.poll();L.total=b+_,l(L)}e?setImmediate(y):y()}));return l.cancel=function(){a=!0},l},highlight:function(e,r,n){if("function"==typeof r)return v.highlightCallback(e,r);if(null===e)return null;void 0===r&&(r=""),void 0===n&&(n="");for(var t="",o=0,a=!1,l=e.target,i=l.length,u=e.indexes,c=0;c999)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,u=0,c=0,f=0,s=0;;){if(n===t[c]){if(a[s++]=c,++u===o)break;n=e[0===f?u:f===u?u+1:f===u-1?u-1:u]}if(++c>=i)for(;;){if(u<=1)return null;if(0===f){if(n===e[--u])continue;f=u}else{if(1===f)return null;if((n=e[1+(u=--f)])===e[u])continue}c=a[(s=u)-1]+1;break}}u=0;var d=0,p=!1,h=0,g=r._nextBeginningIndexes;null===g&&(g=r._nextBeginningIndexes=v.prepareNextBeginningIndexes(r.target));var m=c=0===a[0]?0:g[a[0]-1];if(c!==i)for(;;)if(c>=i){if(u<=0){if(++d>o-2)break;if(e[d]===e[d+1])continue;c=m;continue}--u,c=g[l[--h]]}else if(e[0===d?u:d===u?u+1:d===u-1?u-1:u]===t[c]){if(l[h++]=c,++u===o){p=!0;break}++c}else c=g[c];if(p)var x=l,w=h;else x=a,w=s;for(var b=0,_=-1,y=0;y=0;--y)r.indexes[y]=x[y];return r},algorithmNoTypo:function(e,r,n){for(var t=r._targetLowerCodes,o=e.length,i=t.length,u=0,c=0,f=0;;){if(n===t[c]){if(a[f++]=c,++u===o)break;n=e[u]}if(++c>=i)return null}u=0;var s=!1,d=0,p=r._nextBeginningIndexes;if(null===p&&(p=r._nextBeginningIndexes=v.prepareNextBeginningIndexes(r.target)),(c=0===a[0]?0:p[a[0]-1])!==i)for(;;)if(c>=i){if(u<=0)break;--u,c=p[l[--d]]}else if(e[u]===t[c]){if(l[d++]=c,++u===o){s=!0;break}++c}else c=p[c];if(s)var h=l,g=d;else h=a,g=f;for(var m=0,x=-1,w=0;w=0;--w)r.indexes[w]=h[w];return r},prepareLowerCodes:function(e){for(var r=e.length,n=[],t=e.toLowerCase(),o=0;o=65&&i<=90,c=u||i>=97&&i<=122||i>=48&&i<=57,f=u&&!o||!a||!c;o=u,a=c,f&&(n[t++]=l)}return n},prepareNextBeginningIndexes:function(e){for(var r=e.length,n=v.prepareBeginningIndexes(e),t=[],o=n[0],a=0,l=0;ll?t[l]=o:(o=n[++a],t[l]=void 0===o?r:o);return t},cleanup:i,new:r};return v}()})?n.apply(r,[]):n)||(e.exports=t)},55651:function(e,r,n){"use strict";n.d(r,{Jz:function(){return I}});var t=n(67294);function o(){return(o=Object.assign||function(e){for(var r=1;r=0||(o[n]=e[n]);return o}function l(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:e0:e.buttons>0)&&d.current?p(f(d.current,e,h.current)):n(!1)},r=function(){return n(!1)};function n(n){var t=g.current,o=c(d.current),a=n?o.addEventListener:o.removeEventListener;a(t?"touchmove":"mousemove",e),a(t?"touchend":"mouseup",r)}return[function(e){var r=e.nativeEvent,t=d.current;if(t&&(s(r),!function(e,r){return r&&!u(e)}(r,g.current)&&t)){if(u(r)){g.current=!0;var o=r.changedTouches||[];o.length&&(h.current=o[0].identifier)}t.focus(),p(f(t,r,h.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]),x=m[0],w=m[1],b=m[2];return(0,t.useEffect)((function(){return b}),[b]),t.createElement("div",o({},i,{onTouchStart:x,onMouseDown:x,className:"react-colorful__interactive",ref:d,onKeyDown:w,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,a=void 0===o?.5:o,l=p(["react-colorful__pointer",e.className]);return t.createElement("div",{className:l,style:{top:100*a+"%",left:100*n+"%"}},t.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:r}}))},h=function(e,r,n){return void 0===r&&(r=0),void 0===n&&(n=Math.pow(10,r)),Math.round(n*e)/n},g=(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}}),m=function(e){var r=e.s,n=e.v,t=e.a,o=(200-r)*n/100;return{h:h(e.h),s:h(o>0&&o<200?r*n/100/(o<=100?o:200-o)*100:0),l:h(o/2),a:h(t,2)}},x=function(e){var r=m(e);return"hsl("+r.h+", "+r.s+"%, "+r.l+"%)"},w=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":h(r),"aria-valuemax":"360","aria-valuemin":"0"},t.createElement(v,{className:"react-colorful__hue-pointer",left:r/360,color:x({h:r,s:100,v:100,a:1})})))})),b=t.memo((function(e){var r=e.hsva,n=e.onChange,o={backgroundColor:x({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 "+h(r.s)+"%, Brightness "+h(r.v)+"%"},t.createElement(v,{className:"react-colorful__saturation-pointer",top:1-r.v/100,left:r.s/100,color:x(r)})))})),_=function(e,r){if(e===r)return!0;for(var n in e)if(e[n]!==r[n])return!1;return!0};function y(e,r,n){var o=l(n),a=(0,t.useState)((function(){return e.toHsva(r)})),i=a[0],u=a[1],c=(0,t.useRef)({color:r,hsva:i});(0,t.useEffect)((function(){if(!e.equal(r,c.current.color)){var n=e.toHsva(r);c.current={hsva:n,color:r},u(n)}}),[r,e]),(0,t.useEffect)((function(){var r;_(i,c.current.hsva)||e.equal(r=e.fromHsva(i),c.current.color)||(c.current={hsva:i,color:r},o(r))}),[i,e,o]);var f=(0,t.useCallback)((function(e){u((function(r){return Object.assign({},r,e)}))}),[]);return[i,f]}var k="undefined"!=typeof window?t.useLayoutEffect:t.useEffect,C=new Map,T=function(e){var r,l=e.className,i=e.colorModel,u=e.color,c=void 0===u?i.defaultColor:u,f=e.onChange,s=a(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&&!C.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,\')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}',C.set(e,t);var o=n.nc;o&&t.setAttribute("nonce",o),e.head.appendChild(t)}}),[]);var v=y(i,c,f),h=v[0],g=v[1],m=p(["react-colorful",l]);return t.createElement("div",o({},s,{ref:d,className:m}),t.createElement(b,{hsva:h,onChange:g}),t.createElement(w,{hue:h.h,onChange:g,className:"react-colorful__last-control"}))},E={defaultColor:{h:0,s:0,l:0},toHsva:function(e){return g({h:e.h,s:e.s,l:e.l,a:1})},fromHsva:function(e){return{h:(r=m(e)).h,s:r.s,l:r.l};var r},equal:_},I=function(e){return t.createElement(T,o({},e,{colorModel:E}))}}}]); //# sourceMappingURL=2315.3ae228dfa188e50d3416.js.map