3 lines
316 KiB
JavaScript
3 lines
316 KiB
JavaScript
/*! For license information please see main.e5880f00.js.LICENSE.txt */
|
|
(()=>{var e={888:(e,t,n)=>{"use strict";var r=n(47);function a(){}function i(){}i.resetWarningCache=a,e.exports=function(){function e(e,t,n,a,i,o){if(o!==r){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:a};return n.PropTypes=n,n}},7:(e,t,n)=>{e.exports=n(888)()},47:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},848:function(e){e.exports=function(){"use strict";var e=3.1415926,t={PI:e,PIx2:2*e,PI_2:e/2,PI_180:e/180,N180_PI:180/e,Infinity:-999,isInfinity:function(e){return e===this.Infinity||e===1/0},randomAToB:function(e,t,n){return 2<arguments.length&&void 0!==n&&n?Math.floor(Math.random()*(t-e))+e:e+Math.random()*(t-e)},randomFloating:function(e,t,n){return this.randomAToB(e-t,e+t,n)},randomColor:function(){return"#"+("00000"+(16777216*Math.random()<<0).toString(16)).slice(-6)},randomZone:function(){},floor:function(e,t){return t=1<arguments.length&&void 0!==t?t:4,t=Math.pow(10,t),Math.floor(e*t)/t},degreeTransform:function(t){return t*e/180},toColor16:function(e){return"#"+e.toString(16)}},n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},a=function(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e};function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,t);return void 0!==r?"value"in r?r.value:void 0!==(r=r.get)?r.call(n):void 0:null!==(e=Object.getPrototypeOf(e))?o(e,t,n):void 0}var l=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},s=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},u=(a(c,[{key:"getValue",value:function(e){return e=0<arguments.length&&void 0!==e&&e,this.isArray?S.getRandFromArray(this.a):this.center?t.randomFloating(this.a,this.b,e):t.randomAToB(this.a,this.b,e)}}],[{key:"setSpanValue",value:function(e,t,n){return e instanceof c?e:void 0===t?new c(e):void 0===n?new c(e,t):new c(e,t,n)}},{key:"getSpanValue",value:function(e){return e instanceof c?e.getValue():e}}]),c);function c(e,t,n){r(this,c),S.isArray(e)?(this.isArray=!0,this.a=e):(this.isArray=!1,this.a=S.initValue(e,1),this.b=S.initValue(t,this.a),this.center=S.initValue(n,!1))}var f=function(e){--e;for(var t=1;t<32;t<<=1)e|=e>>t;return e+1},d=function(e,t){return[1,0,0,0,1,0,e,t,1]},h=function(e){var t=Math.cos(e);return[t,-(e=Math.sin(e)),0,e,t,0,0,0,1]},p=function(e,t){return[e,0,0,0,t,0,0,0,1]},m=function(e,t){var n=e[0],r=e[1],a=e[2],i=e[3],o=e[4],l=e[5],s=e[6],u=e[7],c=e[8],f=t[0],d=t[1],h=t[2],p=t[3],m=t[4],v=t[5],g=t[6];return[n*f+r*p+a*g,n*d+r*m+a*(e=t[7]),n*h+r*v+a*(t=t[8]),i*f+o*p+l*g,i*d+o*m+l*e,i*h+o*v+l*t,s*f+u*p+c*g,s*d+u*m+c*e,s*h+u*v+c*t]},v={createCanvas:function(e,t,n,r){var a=3<arguments.length&&void 0!==r?r:"absolute";return(r=document.createElement("canvas")).id=e,r.width=t,r.height=n,r.style.opacity=0,r.style.position=a,this.transform(r,-500,-500,0,0),r},createDiv:function(e,t,n){var r=document.createElement("div");return r.id=e,r.style.position="absolute",this.resize(r,t,n),r},resize:function(e,t,n){e.style.width=t+"px",e.style.height=n+"px",e.style.marginLeft=-t/2+"px",e.style.marginTop=-n/2+"px"},transform:function(e,t,n,r,a){e.style.willChange="transform";var i="translate("+t+"px, "+n+"px) scale("+r+") rotate("+a+"deg)";this.css3(e,"transform",i)},transform3d:function(e,t,n,r,a){e.style.willChange="transform",a="translate3d("+t+"px, "+n+"px, 0) scale("+r+") rotate("+a+"deg)",this.css3(e,"backfaceVisibility","hidden"),this.css3(e,"transform",a)},css3:function(e,t,n){var r=t.charAt(0).toUpperCase()+t.substr(1);e.style["Webkit"+r]=n,e.style["Moz"+r]=n,e.style["O"+r]=n,e.style["ms"+r]=n,e.style[""+t]=n}},g={},y={},b=0,w=function(e,t,n){return e.drawImage(t,n.x,n.y),t=e.getImageData(n.x,n.y,n.width,n.height),e.clearRect(n.x,n.y,n.width,n.height),t},k=function(e,t,n){var r="string"==typeof e?e:e.src;g[r]?t(g[r],n):((e=new Image).onload=function(e){g[r]=e.target,t(g[r],n)},e.src=r)},x=function(e,t,n){var r,a,i=e.src;return y[i]||(r=f(e.width),a=f(e.height),(a=v.createCanvas("proton_canvas_cache_"+ ++b,r,a)).getContext("2d").drawImage(e,0,0,e.width,e.height),y[i]=a),t&&t(y[i],n),y[i]},S={initValue:function(e,t){return null!=e?e:t},isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},emptyArray:function(e){e&&(e.length=0)},toArray:function(e){return this.isArray(e)?e:[e]},getRandFromArray:function(e){return e?e[Math.floor(e.length*Math.random())]:null},emptyObject:function(e,t){var n,r=1<arguments.length&&void 0!==t?t:null;for(n in e)r&&-1<r.indexOf(n)||delete e[n]},classApply:function(e,t){return new((t=1<arguments.length&&void 0!==t?t:null)?e.bind.apply(e,[null].concat(t)):e)},setVectorVal:function(e,t){(t=1<arguments.length&&void 0!==t?t:null)&&(this.hasProp(t,"x")&&(e.p.x=t.x),this.hasProp(t,"y")&&(e.p.y=t.y),this.hasProp(t,"vx")&&(e.v.x=t.vx),this.hasProp(t,"vy")&&(e.v.y=t.vy),this.hasProp(t,"ax")&&(e.a.x=t.ax),this.hasProp(t,"ay")&&(e.a.y=t.ay),this.hasProp(t,"p")&&e.p.copy(t.p),this.hasProp(t,"v")&&e.v.copy(t.v),this.hasProp(t,"a")&&e.a.copy(t.a),this.hasProp(t,"position")&&e.p.copy(t.position),this.hasProp(t,"velocity")&&e.v.copy(t.velocity),this.hasProp(t,"accelerate")&&e.a.copy(t.accelerate))},hasProp:function(e,t){return!!e&&void 0!==e[t]},setProp:function(e,t){for(var n in t)e.hasOwnProperty(n)&&(e[n]=u.getSpanValue(t[n]));return e},getImageData:function(e,t,n){return w(e,t,n)},destroyAll:function(e,t){for(var n=1<arguments.length&&void 0!==t?t:null,r=e.length;r--;){try{e[r].destroy(n)}catch(e){}delete e[r]}e.length=0},assign:function(e,t){if("function"==typeof Object.assign)return Object.assign(e,t);for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}},P={},_={_index:0,_cache:{},id:function(e){return void 0!==P[e]&&null!==P[e]||(P[e]=0),e+"_"+P[e]++},getId:function(e){var t=this.getIdFromCache(e);return t||(t="PUID_"+this._index++,this._cache[t]=e,t)},getIdFromCache:function(e){var t,n=void 0;for(n in this._cache){if((t=this._cache[n])===e)return n;if(this.isBody(t,e)&&t.src===e.src)return n}return null},isBody:function(e,t){return"object"===(void 0===e?"undefined":n(e))&&"object"===(void 0===t?"undefined":n(t))&&e.isInner&&t.isInner},getTarget:function(e){return this._cache[e]}},E=(a(C,[{key:"get",value:function(e,t,n){var r=void 0;return n=n||e.__puid||_.getId(e),(r=this.cache[n]&&0<this.cache[n].length?this.cache[n].pop():this.createOrClone(e,t)).__puid=e.__puid||n,r}},{key:"expire",value:function(e){return this.getCache(e.__puid).push(e)}},{key:"createOrClone",value:function(e,t){return this.total++,this.create?this.create(e,t):"function"==typeof e?S.classApply(e,t):e.clone()}},{key:"getCount",value:function(){var e,t=0;for(e in this.cache)t+=this.cache[e].length;return t++}},{key:"destroy",value:function(){for(var e in this.cache)this.cache[e].length=0,delete this.cache[e]}},{key:"getCache",value:function(e){return e=0<arguments.length&&void 0!==e?e:"default",this.cache[e]||(this.cache[e]=[]),this.cache[e]}}]),C);function C(e){r(this,C),this.total=0,this.cache={}}var R=(a(O,[{key:"update",value:function(e,t){this.add(e,t);var n=this.getEmitter();switch(e=this.getRenderer(),t="",this.type){case 2:t+="emitter:"+this.proton.emitters.length+"<br>",n&&(t+="em speed:"+n.emitSpeed+"<br>"),n&&(t+="pos:"+this.getEmitterPos(n));break;case 3:n&&(t+="initializes:"+n.initializes.length+"<br>"),n&&(t+='<span style="display:inline-block;">'+this.concatArr(n.initializes)+"</span><br>"),n&&(t+="behaviours:"+n.behaviours.length+"<br>"),n&&(t+='<span style="display:inline-block;">'+this.concatArr(n.behaviours)+"</span><br>");break;case 4:e&&(t+=e.name+"<br>"),e&&(t+="body:"+this.getCreatedNumber(e)+"<br>");break;default:t+="particles:"+this.proton.getCount()+"<br>",t+="pool:"+this.proton.pool.getCount()+"<br>",t+="total:"+this.proton.pool.total}this.container.innerHTML=t}},{key:"add",value:function(e,t){var n=this;if(!this.container){this.type=1,this.container=document.createElement("div"),this.container.style.cssText=["position:absolute;bottom:0px;left:0;cursor:pointer;","opacity:0.9;z-index:10000;padding:10px;font-size:12px;font-family:Helvetica,Arial,sans-serif;","width:120px;height:50px;background-color:#002;color:#0ff;"].join(""),this.container.addEventListener("click",(function(e){n.type++,4<n.type&&(n.type=1)}),!1);var r=void 0,a=void 0;switch(e){case 2:r="#201",a="#f08";break;case 3:r="#020",a="#0f0";break;default:r="#002",a="#0ff"}this.container.style["background-color"]=r,this.container.style.color=a}this.container.parentNode||(t=t||this.body||document.body).appendChild(this.container)}},{key:"getEmitter",value:function(){return this.proton.emitters[this.emitterIndex]}},{key:"getRenderer",value:function(){return this.proton.renderers[this.rendererIndex]}},{key:"concatArr",value:function(e){var t="";if(!e||!e.length)return t;for(var n=0;n<e.length;n++)t+=(e[n].name||"").substr(0,1)+".";return t}},{key:"getCreatedNumber",value:function(e){return e.pool.total||e.cpool&&e.cpool.total||0}},{key:"getEmitterPos",value:function(e){return Math.round(e.p.x)+","+Math.round(e.p.y)}}]),O);function O(e){r(this,O),this.proton=e,this.container=null,this.type=1,this.emitterIndex=0,this.rendererIndex=0}var z=(a(T,[{key:"addEventListener",value:function(e,t){return this._listeners?this.removeEventListener(e,t):this._listeners={},this._listeners[e]||(this._listeners[e]=[]),this._listeners[e].push(t),t}},{key:"removeEventListener",value:function(e,t){if(this._listeners&&this._listeners[e])for(var n=this._listeners[e],r=n.length,a=0;a<r;a++)if(n[a]===t){1===r?delete this._listeners[e]:n.splice(a,1);break}}},{key:"removeAllEventListeners",value:function(e){e?this._listeners&&delete this._listeners[e]:this._listeners=null}},{key:"dispatchEvent",value:function(e,t){var n=!1,r=this._listeners;if(e&&r){var a=r[e];if(!a)return n;for(var i=void 0,o=a.length;o--;)i=a[o],n=n||i(t)}return!!n}},{key:"hasEventListener",value:function(e){var t=this._listeners;return!(!t||!t[e])}}],[{key:"bind",value:function(e){e.prototype.dispatchEvent=T.prototype.dispatchEvent,e.prototype.hasEventListener=T.prototype.hasEventListener,e.prototype.addEventListener=T.prototype.addEventListener,e.prototype.removeEventListener=T.prototype.removeEventListener,e.prototype.removeAllEventListeners=T.prototype.removeAllEventListeners}}]),T);function T(){r(this,T),this._listeners=null}var A=(a(I,[{key:"calculate",value:function(e,t,n){this.eulerIntegrate(e,t,n)}},{key:"eulerIntegrate",value:function(e,t,n){e.sleep||(e.old.p.copy(e.p),e.old.v.copy(e.v),e.a.multiplyScalar(1/e.mass),e.v.add(e.a.multiplyScalar(t)),e.p.add(e.old.v.multiplyScalar(t)),n&&e.v.multiplyScalar(n),e.a.clear())}}]),I);function I(e){r(this,I),this.type=e}var M=(a(N,[{key:"addRenderer",value:function(e){e.init(this),this.renderers.push(e)}},{key:"removeRenderer",value:function(e){var t=this.renderers.indexOf(e);this.renderers.splice(t,1),e.remove(this)}},{key:"addEmitter",value:function(e){this.emitters.push(e),(e.parent=this).dispatchEvent(N.EMITTER_ADDED,e)}},{key:"removeEmitter",value:function(e){var t=this.emitters.indexOf(e);this.emitters.splice(t,1),e.parent=null,this.dispatchEvent(N.EMITTER_REMOVED,e)}},{key:"update",value:function(){"auto"===this._fps?(this.dispatchEvent(N.PROTON_UPDATE),N.USE_CLOCK?(this.then||(this.then=(new Date).getTime()),this.now=(new Date).getTime(),this.elapsed=.001*(this.now-this.then),this.amendChangeTabsBug(),0<this.elapsed&&this.emittersUpdate(this.elapsed),this.then=this.now):this.emittersUpdate(N.DEFAULT_INTERVAL),this.dispatchEvent(N.PROTON_UPDATE_AFTER)):(this.then||(this.then=(new Date).getTime()),this.now=(new Date).getTime(),this.elapsed=.001*(this.now-this.then),this.elapsed>this._interval&&(this.dispatchEvent(N.PROTON_UPDATE),this.emittersUpdate(this._interval),this.then=this.now-this.elapsed%this._interval*1e3,this.dispatchEvent(N.PROTON_UPDATE_AFTER)))}},{key:"emittersUpdate",value:function(e){for(var t=this.emitters.length;t--;)this.emitters[t].update(e)}},{key:"amendChangeTabsBug",value:function(){N.amendChangeTabsBug&&.5<this.elapsed&&(this.then=(new Date).getTime(),this.elapsed=0)}},{key:"getCount",value:function(){for(var e=0,t=this.emitters.length;t--;)e+=this.emitters[t].particles.length;return e}},{key:"getAllParticles",value:function(){for(var e=[],t=this.emitters.length;t--;)e=e.concat(this.emitters[t].particles);return e}},{key:"destroyAllEmitters",value:function(){S.destroyAll(this.emitters)}},{key:"destroy",value:function(e){function t(){n.time=0,n.then=0,n.pool.destroy(),S.destroyAll(n.emitters),S.destroyAll(n.renderers,n.getAllParticles())}var n=this;0<arguments.length&&void 0!==e&&e?setTimeout(t,200):t()}},{key:"fps",set:function(e){this._fps=e,this._interval="auto"===e?N.DEFAULT_INTERVAL:t.floor(1/e,7)},get:function(){return this._fps}}]),N);function N(e){r(this,N),this.emitters=[],this.renderers=[],this.time=0,this.now=0,this.then=0,this.elapsed=0,this.stats=new R(this),this.pool=new E(80),this.integrationType=S.initValue(e,N.EULER),this.integrator=new A(this.integrationType),this._fps="auto",this._interval=N.DEFAULT_INTERVAL}M.USE_CLOCK=!1,M.MEASURE=100,M.EULER="euler",M.RK2="runge-kutta2",M.PARTICLE_CREATED="PARTICLE_CREATED",M.PARTICLE_UPDATE="PARTICLE_UPDATE",M.PARTICLE_SLEEP="PARTICLE_SLEEP",M.PARTICLE_DEAD="PARTICLE_DEAD",M.EMITTER_ADDED="EMITTER_ADDED",M.EMITTER_REMOVED="EMITTER_REMOVED",M.PROTON_UPDATE="PROTON_UPDATE",M.PROTON_UPDATE_AFTER="PROTON_UPDATE_AFTER",M.DEFAULT_INTERVAL=.0167,M.amendChangeTabsBug=!0,z.bind(M);var L=(a(D,[{key:"reset",value:function(){this.r=255,this.g=255,this.b=255}}]),D);function D(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:255,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:255,n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:255;r(this,D),this.r=e,this.g=t,this.b=n}var F={easeLinear:function(e){return e},easeInQuad:function(e){return Math.pow(e,2)},easeOutQuad:function(e){return-(Math.pow(e-1,2)-1)},easeInOutQuad:function(e){return(e/=.5)<1?.5*Math.pow(e,2):-.5*((e-=2)*e-2)},easeInCubic:function(e){return Math.pow(e,3)},easeOutCubic:function(e){return Math.pow(e-1,3)+1},easeInOutCubic:function(e){return(e/=.5)<1?.5*Math.pow(e,3):.5*(Math.pow(e-2,3)+2)},easeInQuart:function(e){return Math.pow(e,4)},easeOutQuart:function(e){return-(Math.pow(e-1,4)-1)},easeInOutQuart:function(e){return(e/=.5)<1?.5*Math.pow(e,4):-.5*((e-=2)*Math.pow(e,3)-2)},easeInSine:function(e){return 1-Math.cos(e*t.PI_2)},easeOutSine:function(e){return Math.sin(e*t.PI_2)},easeInOutSine:function(e){return-.5*(Math.cos(Math.PI*e)-1)},easeInExpo:function(e){return 0===e?0:Math.pow(2,10*(e-1))},easeOutExpo:function(e){return 1===e?1:1-Math.pow(2,-10*e)},easeInOutExpo:function(e){return 0===e?0:1===e?1:(e/=.5)<1?.5*Math.pow(2,10*(e-1)):.5*(2-Math.pow(2,-10*--e))},easeInCirc:function(e){return-(Math.sqrt(1-e*e)-1)},easeOutCirc:function(e){return Math.sqrt(1-Math.pow(e-1,2))},easeInOutCirc:function(e){return(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},easeInBack:function(e){return e*e*(2.70158*e-1.70158)},easeOutBack:function(e){return--e*e*(2.70158*e+1.70158)+1},easeInOutBack:function(e){var t=1.70158;return(e/=.5)<1?e*e*((1+(t*=1.525))*e-t)*.5:.5*((e-=2)*e*((1+(t*=1.525))*e+t)+2)},getEasing:function(e){return"function"==typeof e?e:this[e]||this.easeLinear}},B=(a(j,[{key:"set",value:function(e,t){return this.x=e,this.y=t,this}},{key:"setX",value:function(e){return this.x=e,this}},{key:"setY",value:function(e){return this.y=e,this}},{key:"getGradient",value:function(){return 0!==this.x?Math.atan2(this.y,this.x):0<this.y?t.PI_2:this.y<0?-t.PI_2:void 0}},{key:"copy",value:function(e){return this.x=e.x,this.y=e.y,this}},{key:"add",value:function(e,t){return void 0!==t?this.addVectors(e,t):(this.x+=e.x,this.y+=e.y,this)}},{key:"addXY",value:function(e,t){return this.x+=e,this.y+=t,this}},{key:"addVectors",value:function(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this}},{key:"sub",value:function(e,t){return void 0!==t?this.subVectors(e,t):(this.x-=e.x,this.y-=e.y,this)}},{key:"subVectors",value:function(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this}},{key:"divideScalar",value:function(e){return 0!==e?(this.x/=e,this.y/=e):this.set(0,0),this}},{key:"multiplyScalar",value:function(e){return this.x*=e,this.y*=e,this}},{key:"negate",value:function(){return this.multiplyScalar(-1)}},{key:"dot",value:function(e){return this.x*e.x+this.y*e.y}},{key:"lengthSq",value:function(){return this.x*this.x+this.y*this.y}},{key:"length",value:function(){return Math.sqrt(this.x*this.x+this.y*this.y)}},{key:"normalize",value:function(){return this.divideScalar(this.length())}},{key:"distanceTo",value:function(e){return Math.sqrt(this.distanceToSquared(e))}},{key:"rotate",value:function(e){var t=this.x,n=this.y;return this.x=t*Math.cos(e)+n*Math.sin(e),this.y=-t*Math.sin(e)+n*Math.cos(e),this}},{key:"distanceToSquared",value:function(e){var t=this.x-e.x;return t*t+(e=this.y-e.y)*e}},{key:"lerp",value:function(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this}},{key:"equals",value:function(e){return e.x===this.x&&e.y===this.y}},{key:"clear",value:function(){return this.x=0,this.y=0,this}},{key:"clone",value:function(){return new j(this.x,this.y)}}]),j);function j(e,t){r(this,j),this.x=e||0,this.y=t||0}var U=(a(V,[{key:"getDirection",value:function(){return Math.atan2(this.v.x,-this.v.y)*t.N180_PI}},{key:"reset",value:function(){return this.life=1/0,this.age=0,this.dead=!1,this.sleep=!1,this.body=null,this.sprite=null,this.parent=null,this.energy=1,this.mass=1,this.radius=10,this.alpha=1,this.scale=1,this.rotation=0,this.color=null,this.p.set(0,0),this.v.set(0,0),this.a.set(0,0),this.old.p.set(0,0),this.old.v.set(0,0),this.old.a.set(0,0),this.easing=F.easeLinear,this.rgb.reset(),S.emptyObject(this.data),this.removeAllBehaviours(),this}},{key:"update",value:function(e,t){this.sleep||(this.age+=e,this.applyBehaviours(e,t)),this.age<this.life?(t=this.easing(this.age/this.life),this.energy=Math.max(1-t,0)):this.destroy()}},{key:"applyBehaviours",value:function(e,t){var n=this.behaviours.length,r=void 0;for(r=0;r<n;r++)this.behaviours[r]&&this.behaviours[r].applyBehaviour(this,e,t)}},{key:"addBehaviour",value:function(e){this.behaviours.push(e),e.hasOwnProperty("parents")&&e.parents.push(this),e.initialize(this)}},{key:"addBehaviours",value:function(e){var t=e.length,n=void 0;for(n=0;n<t;n++)this.addBehaviour(e[n])}},{key:"removeBehaviour",value:function(e){-1<(e=this.behaviours.indexOf(e))&&(this.behaviours.splice(e,1).parents=null)}},{key:"removeAllBehaviours",value:function(){S.emptyArray(this.behaviours)}},{key:"destroy",value:function(){this.removeAllBehaviours(),this.energy=0,this.dead=!0,this.parent=null}}]),V);function V(e){r(this,V),this.id="",this.old={},this.data={},this.behaviours=[],this.p=[],this.v=[],this.a=[],this.rgb={},this.name="Particle",this.id=_.id(this.name),this.old={},this.data={},this.behaviours=[],this.p=new B,this.v=new B,this.a=new B,this.old.p=new B,this.old.v=new B,this.old.a=new B,this.rgb=new L,this.reset(),e&&S.setProp(this,e)}var H={hexToRgb:function(e){return e="#"===e.charAt(0)?e.substring(1,7):e,{r:parseInt(e.substring(0,2),16),g:parseInt(e.substring(2,4),16),b:parseInt(e.substring(4,6),16)}},rgbToHex:function(e){return"rgb("+e.r+", "+e.g+", "+e.b+")"},getHex16FromParticle:function(e){return 65536*Number(e.rgb.r)+256*Number(e.rgb.g)+Number(e.rgb.b)}},W=(a(Y,[{key:"set",value:function(e,t){return this.r=e,this.tha=t,this}},{key:"setR",value:function(e){return this.r=e,this}},{key:"setTha",value:function(e){return this.tha=e,this}},{key:"copy",value:function(e){return this.r=e.r,this.tha=e.tha,this}},{key:"toVector",value:function(){return new B(this.getX(),this.getY())}},{key:"getX",value:function(){return this.r*Math.sin(this.tha)}},{key:"getY",value:function(){return-this.r*Math.cos(this.tha)}},{key:"normalize",value:function(){return this.r=1,this}},{key:"equals",value:function(e){return e.r===this.r&&e.tha===this.tha}},{key:"clear",value:function(){return this.r=0,this.tha=0,this}},{key:"clone",value:function(){return new Y(this.r,this.tha)}}]),Y);function Y(e,t){r(this,Y),this.r=Math.abs(e)||0,this.tha=t||0}var $={create:function(e){var t=new Float32Array(9);return e&&this.set(e,t),t},set:function(e,t){for(var n=0;n<9;n++)t[n]=e[n];return t},multiply:function(e,t,n){var r=e[0],a=e[1],i=e[2],o=e[3],l=e[4],s=e[6],u=e[7],c=t[0],f=t[1],d=t[2],h=t[3],p=t[4];return e=t[6],t=t[7],n[0]=c*r+f*o,n[1]=c*a+f*l,n[2]=i*d,n[3]=h*r+p*o,n[4]=h*a+p*l,n[6]=e*r+t*o+s,n[7]=e*a+t*l+u,n},inverse:function(e,t){var n=e[0],r=e[1],a=e[3],i=e[4],o=e[6],l=e[7],s=-a;return e=l*a-i*o,a=1/(n*i+r*s),t[0]=i*a,t[1]=-r*a,t[3]=s*a,t[4]=n*a,t[6]=e*a,t[7]=(-l*n+r*o)*a,t},multiplyVec2:function(e,t,n){var r=t[0];return t=t[1],n[0]=r*e[0]+t*e[3]+e[6],n[1]=r*e[1]+t*e[4]+e[7],n}},q=(l(Q,u),a(Q,[{key:"getValue",value:function(){var e=S.getRandFromArray(this._arr);return"random"===e||"Random"===e?t.randomColor():e}}],[{key:"createArraySpan",value:function(e){return e?e instanceof Q?e:new Q(e):null}}]),Q);function Q(e){r(this,Q);var t=s(this,(Q.__proto__||Object.getPrototypeOf(Q)).call(this));return t._arr=S.toArray(e),t}var Z=(a(X,[{key:"contains",value:function(e,t){return e<=this.right&&e>=this.x&&t<=this.bottom&&t>=this.y}}]),X);function X(e,t,n,a){r(this,X),this.x=e,this.y=t,this.width=n,this.height=a,this.bottom=this.y+this.height,this.right=this.x+this.width}var G=(a(K,[{key:"init",value:function(){this.startTime=0,this.nextTime=this.timePan.getValue()}},{key:"getValue",value:function(e){return this.startTime+=e,this.startTime>=this.nextTime?(this.startTime=0,this.nextTime=this.timePan.getValue(),1===this.numPan.b?.5<this.numPan.getValue(!1)?1:0:this.numPan.getValue(!0)):0}}]),K);function K(e,t){r(this,K),this.numPan=u.setSpanValue(S.initValue(e,1)),this.timePan=u.setSpanValue(S.initValue(t,1)),this.startTime=0,this.nextTime=0,this.init()}var J=(a(ee,[{key:"reset",value:function(){}},{key:"init",value:function(e,t){t?this.initialize(t):this.initialize(e)}},{key:"initialize",value:function(){}}]),ee);function ee(){r(this,ee)}var te=(l(ne,J),a(ne,[{key:"initialize",value:function(e){this.lifePan.a===1/0?e.life=1/0:e.life=this.lifePan.getValue()}}]),ne);function ne(e,t,n){r(this,ne);var a=s(this,(ne.__proto__||Object.getPrototypeOf(ne)).call(this));return a.lifePan=u.setSpanValue(e,t,n),a.name="Life",a}var re=(a(ae,[{key:"getPosition",value:function(){}},{key:"crossing",value:function(){}}]),ae);function ae(){r(this,ae),this.vector=new B(0,0),this.random=0,this.crossType="dead",this.alert=!0}var ie=(l(oe,re),a(oe,[{key:"getPosition",value:function(){return this.vector.x=this.x,this.vector.y=this.y,this.vector}},{key:"crossing",value:function(){this.alert&&(console.error("Sorry, PointZone does not support crossing method!"),this.alert=!1)}}]),oe);function oe(e,t){r(this,oe);var n=s(this,(oe.__proto__||Object.getPrototypeOf(oe)).call(this));return n.x=e,n.y=t,n}var le=(l(se,J),a(se,[{key:"reset",value:function(e){this.zone=S.initValue(e,new ie)}},{key:"initialize",value:function(e){this.zone.getPosition(),e.p.x=this.zone.vector.x,e.p.y=this.zone.vector.y}}]),se);function se(e){r(this,se);var t=s(this,(se.__proto__||Object.getPrototypeOf(se)).call(this));return t.zone=S.initValue(e,new ie),t.name="Position",t}var ue=(l(ce,J),a(ce,[{key:"reset",value:function(e,t,n){this.rPan=u.setSpanValue(e),this.thaPan=u.setSpanValue(t),this.type=S.initValue(n,"vector")}},{key:"normalizeVelocity",value:function(e){return e*M.MEASURE}},{key:"initialize",value:function(e){var n;"p"===this.type||"P"===this.type||"polar"===this.type?(n=new W(this.normalizeVelocity(this.rPan.getValue()),this.thaPan.getValue()*t.PI_180),e.v.x=n.getX(),e.v.y=n.getY()):(e.v.x=this.normalizeVelocity(this.rPan.getValue()),e.v.y=this.normalizeVelocity(this.thaPan.getValue()))}}]),ce);function ce(e,t,n){r(this,ce);var a=s(this,(ce.__proto__||Object.getPrototypeOf(ce)).call(this));return a.rPan=u.setSpanValue(e),a.thaPan=u.setSpanValue(t),a.type=S.initValue(n,"vector"),a.name="Velocity",a}var fe=(l(de,J),a(de,[{key:"initialize",value:function(e){e.mass=this.massPan.getValue()}}]),de);function de(e,t,n){r(this,de);var a=s(this,(de.__proto__||Object.getPrototypeOf(de)).call(this));return a.massPan=u.setSpanValue(e,t,n),a.name="Mass",a}var he=(l(pe,J),a(pe,[{key:"reset",value:function(e,t,n){this.radius=u.setSpanValue(e,t,n)}},{key:"initialize",value:function(e){e.radius=this.radius.getValue(),e.data.oldRadius=e.radius}}]),pe);function pe(e,t,n){r(this,pe);var a=s(this,(pe.__proto__||Object.getPrototypeOf(pe)).call(this));return a.radius=u.setSpanValue(e,t,n),a.name="Radius",a}var me=(l(ve,J),a(ve,[{key:"initialize",value:function(e){var t=this.image.getValue();e.body="string"==typeof t?{width:this.w,height:this.h,src:t,isInner:!0,inner:!0}:t}},{key:"setSpanValue",value:function(e){return e instanceof q?e:new q(e)}}]),ve);function ve(e,t,n){r(this,ve);var a=s(this,(ve.__proto__||Object.getPrototypeOf(ve)).call(this));return a.image=a.setSpanValue(e),a.w=S.initValue(t,20),a.h=S.initValue(n,a.w),a.name="Body",a}var ge=(a(ye,[{key:"reset",value:function(e,t){this.life=S.initValue(e,1/0),this.easing=F.getEasing(t)}},{key:"normalizeForce",value:function(e){return e.multiplyScalar(M.MEASURE)}},{key:"normalizeValue",value:function(e){return e*M.MEASURE}},{key:"initialize",value:function(){}},{key:"calculate",value:function(e,t){this.age+=t,this.age>=this.life||this.dead?(this.energy=0,this.dead=!0,this.destroy()):(e=this.easing(e.age/e.life),this.energy=Math.max(1-e,0))}},{key:"destroy",value:function(){for(var e=this.parents.length;e--;)this.parents[e].removeBehaviour(this);this.parents.length=0}}]),ye);function ye(e,t){r(this,ye),this.life=S.initValue(e,1/0),this.easing=F.getEasing(t),this.age=0,this.energy=1,this.dead=!1,this.parents=[],this.id="Behaviour_"+ye.id++,this.name="Behaviour"}ge.id=0;var be=(l(we,ge),a(we,[{key:"reset",value:function(e,t,n,r){this.force=this.normalizeForce(new B(e,t)),n&&o(we.prototype.__proto__||Object.getPrototypeOf(we.prototype),"reset",this).call(this,n,r)}},{key:"applyBehaviour",value:function(e,t,n){this.calculate(e,t,n),e.a.add(this.force)}}]),we);function we(e,t,n,a){return r(this,we),(a=s(this,(we.__proto__||Object.getPrototypeOf(we)).call(this,n,a))).force=a.normalizeForce(new B(e,t)),a.name="Force",a}var ke=(l(xe,ge),a(xe,[{key:"reset",value:function(e,t,n,r,a){this.targetPosition=S.initValue(e,new B),this.radius=S.initValue(n,1e3),this.force=S.initValue(this.normalizeValue(t),100),this.radiusSq=this.radius*this.radius,this.attractionForce=new B,this.lengthSq=0,r&&o(xe.prototype.__proto__||Object.getPrototypeOf(xe.prototype),"reset",this).call(this,r,a)}},{key:"applyBehaviour",value:function(e,t,n){this.calculate(e,t,n),this.attractionForce.copy(this.targetPosition),this.attractionForce.sub(e.p),this.lengthSq=this.attractionForce.lengthSq(),4e-5<this.lengthSq&&this.lengthSq<this.radiusSq&&(this.attractionForce.normalize(),this.attractionForce.multiplyScalar(1-this.lengthSq/this.radiusSq),this.attractionForce.multiplyScalar(this.force),e.a.add(this.attractionForce))}}]),xe);function xe(e,t,n,a,i){return r(this,xe),(i=s(this,(xe.__proto__||Object.getPrototypeOf(xe)).call(this,a,i))).targetPosition=S.initValue(e,new B),i.radius=S.initValue(n,1e3),i.force=S.initValue(i.normalizeValue(t),100),i.radiusSq=i.radius*i.radius,i.attractionForce=new B,i.lengthSq=0,i.name="Attraction",i}var Se=(l(Pe,ge),a(Pe,[{key:"reset",value:function(e,t,n,r,a){this.panFoce=new B(e,t),this.panFoce=this.normalizeForce(this.panFoce),this.delay=n,r&&o(Pe.prototype.__proto__||Object.getPrototypeOf(Pe.prototype),"reset",this).call(this,r,a)}},{key:"initialize",value:function(e){e.data.time=0}},{key:"applyBehaviour",value:function(e,n,r){this.calculate(e,n,r),e.data.time+=n,e.data.time>=this.delay&&(e.a.addXY(t.randomAToB(-this.panFoce.x,this.panFoce.x),t.randomAToB(-this.panFoce.y,this.panFoce.y)),e.data.time=0)}}]),Pe);function Pe(e,t,n,a,i){return r(this,Pe),(i=s(this,(Pe.__proto__||Object.getPrototypeOf(Pe)).call(this,a,i))).reset(e,t,n),i.time=0,i.name="RandomDrift",i}var _e=(l(Ee,be),a(Ee,[{key:"reset",value:function(e,t,n){o(Ee.prototype.__proto__||Object.getPrototypeOf(Ee.prototype),"reset",this).call(this,0,e,t,n)}}]),Ee);function Ee(e,t,n){return r(this,Ee),(n=s(this,(Ee.__proto__||Object.getPrototypeOf(Ee)).call(this,0,e,t,n))).name="Gravity",n}var Ce=(l(Re,ge),a(Re,[{key:"reset",value:function(e,t,n,r,a){this.emitter=S.initValue(e,null),this.mass=S.initValue(t,!0),this.callback=S.initValue(n,null),this.collisionPool=[],this.delta=new B,r&&o(Re.prototype.__proto__||Object.getPrototypeOf(Re.prototype),"reset",this).call(this,r,a)}},{key:"applyBehaviour",value:function(e,t,n){var r,a,i,o,l,s,u=(this.emitter?this.emitter.particles:this.pool).slice(n),c=u.length,f=void 0,d=void 0;for(d=0;d<c;d++)(f=u[d])!==e&&(this.delta.copy(f.p),this.delta.sub(e.p),(r=this.delta.lengthSq())<=(s=e.radius+f.radius)*s&&(a=s-Math.sqrt(r),a+=.5,i=e.mass+f.mass,o=this.mass?f.mass/i:.5,l=this.mass?e.mass/i:.5,e.p.add(this.delta.clone().normalize().multiplyScalar(a*-o)),f.p.add(this.delta.normalize().multiplyScalar(a*l)),this.callback&&this.callback(e,f)))}}]),Re);function Re(e,t,n,a,i){return r(this,Re),(i=s(this,(Re.__proto__||Object.getPrototypeOf(Re)).call(this,a,i))).reset(e,t,n),i.name="Collision",i}var Oe=(l(ze,ge),a(ze,[{key:"reset",value:function(e,t,n,r){this.zone=e,this.zone.crossType=S.initValue(t,"dead"),n&&o(ze.prototype.__proto__||Object.getPrototypeOf(ze.prototype),"reset",this).call(this,n,r)}},{key:"applyBehaviour",value:function(e,t,n){this.calculate(e,t,n),this.zone.crossing(e)}}]),ze);function ze(e,t,n,a){return r(this,ze),(a=s(this,(ze.__proto__||Object.getPrototypeOf(ze)).call(this,n,a))).reset(e,t),a.name="CrossZone",a}var Te=(l(Ae,ge),a(Ae,[{key:"reset",value:function(e,t,n,r){this.same=null==t,this.a=u.setSpanValue(S.initValue(e,1)),this.b=u.setSpanValue(t),n&&o(Ae.prototype.__proto__||Object.getPrototypeOf(Ae.prototype),"reset",this).call(this,n,r)}},{key:"initialize",value:function(e){e.data.alphaA=this.a.getValue(),this.same?e.data.alphaB=e.data.alphaA:e.data.alphaB=this.b.getValue()}},{key:"applyBehaviour",value:function(e,t,n){this.calculate(e,t,n),e.alpha=e.data.alphaB+(e.data.alphaA-e.data.alphaB)*this.energy,e.alpha<.001&&(e.alpha=0)}}]),Ae);function Ae(e,t,n,a){return r(this,Ae),(a=s(this,(Ae.__proto__||Object.getPrototypeOf(Ae)).call(this,n,a))).reset(e,t),a.name="Alpha",a}var Ie=(l(Me,ge),a(Me,[{key:"reset",value:function(e,t,n,r){this.same=null==t,this.a=u.setSpanValue(S.initValue(e,1)),this.b=u.setSpanValue(t),n&&o(Me.prototype.__proto__||Object.getPrototypeOf(Me.prototype),"reset",this).call(this,n,r)}},{key:"initialize",value:function(e){e.data.scaleA=this.a.getValue(),e.data.oldRadius=e.radius,e.data.scaleB=this.same?e.data.scaleA:this.b.getValue()}},{key:"applyBehaviour",value:function(e,t,n){this.calculate(e,t,n),e.scale=e.data.scaleB+(e.data.scaleA-e.data.scaleB)*this.energy,e.scale<1e-4&&(e.scale=0),e.radius=e.data.oldRadius*e.scale}}]),Me);function Me(e,t,n,a){return r(this,Me),(a=s(this,(Me.__proto__||Object.getPrototypeOf(Me)).call(this,n,a))).reset(e,t),a.name="Scale",a}var Ne=(l(Le,ge),a(Le,[{key:"reset",value:function(e,t,n,r,a){this.same=null==t,this.a=u.setSpanValue(S.initValue(e,"Velocity")),this.b=u.setSpanValue(S.initValue(t,0)),this.style=S.initValue(n,"to"),r&&o(Le.prototype.__proto__||Object.getPrototypeOf(Le.prototype),"reset",this).call(this,r,a)}},{key:"initialize",value:function(e){e.rotation=this.a.getValue(),e.data.rotationA=this.a.getValue(),this.same||(e.data.rotationB=this.b.getValue())}},{key:"applyBehaviour",value:function(e,t,n){this.calculate(e,t,n),this.same?"V"!==this.a.a&&"Velocity"!==this.a.a&&"v"!==this.a.a||(e.rotation=e.getDirection()):"to"===this.style||"TO"===this.style||"_"===this.style?e.rotation+=e.data.rotationB+(e.data.rotationA-e.data.rotationB)*this.energy:e.rotation+=e.data.rotationB}}]),Le);function Le(e,t,n,a,i){return r(this,Le),(i=s(this,(Le.__proto__||Object.getPrototypeOf(Le)).call(this,a,i))).reset(e,t,n),i.name="Rotate",i}var De=(l(Fe,ge),a(Fe,[{key:"reset",value:function(e,t,n,r){this.a=q.createArraySpan(e),this.b=q.createArraySpan(t),n&&o(Fe.prototype.__proto__||Object.getPrototypeOf(Fe.prototype),"reset",this).call(this,n,r)}},{key:"initialize",value:function(e){e.color=this.a.getValue(),e.data.colorA=H.hexToRgb(e.color),this.b&&(e.data.colorB=H.hexToRgb(this.b.getValue()))}},{key:"applyBehaviour",value:function(e,t,n){this.b?(this.calculate(e,t,n),e.rgb.r=e.data.colorB.r+(e.data.colorA.r-e.data.colorB.r)*this.energy,e.rgb.g=e.data.colorB.g+(e.data.colorA.g-e.data.colorB.g)*this.energy,e.rgb.b=e.data.colorB.b+(e.data.colorA.b-e.data.colorB.b)*this.energy,e.rgb.r=Math.floor(e.rgb.r),e.rgb.g=Math.floor(e.rgb.g),e.rgb.b=Math.floor(e.rgb.b)):(e.rgb.r=e.data.colorA.r,e.rgb.g=e.data.colorA.g,e.rgb.b=e.data.colorA.b)}}]),Fe);function Fe(e,t,n,a){return r(this,Fe),(a=s(this,(Fe.__proto__||Object.getPrototypeOf(Fe)).call(this,n,a))).reset(e,t),a.name="Color",a}var Be="changing",je=(l(Ue,ge),a(Ue,[{key:"setAngleAndForce",value:function(e,n){this.force=Be,this.angle=t.PI/2,"right"===e?this.angle=t.PI/2:"left"===e?this.angle=-t.PI/2:"random"===e?this.angle="random":e instanceof u?(this.angle="span",this.span=e):e&&(this.angle=e),"changing"===String(n).toLowerCase()||"chang"===String(n).toLowerCase()||"auto"===String(n).toLowerCase()?this.force=Be:n&&(this.force=n)}},{key:"reset",value:function(e,n,r,a){this.angle=t.PI/2,this.setAngleAndForce(e,n),r&&o(Ue.prototype.__proto__||Object.getPrototypeOf(Ue.prototype),"reset",this).call(this,r,a)}},{key:"initialize",value:function(e){"random"===this.angle?e.data.cangle=t.randomAToB(-t.PI,t.PI):"span"===this.angle&&(e.data.cangle=this.span.getValue()),e.data.cyclone=new B(0,0)}},{key:"applyBehaviour",value:function(e,t,n){this.calculate(e,t,n),t=void 0,n=e.v.getGradient(),"random"===this.angle||"span"===this.angle?n+=e.data.cangle:n+=this.angle,t=this.force===Be?e.v.length()/100:this.force,e.data.cyclone.x=t*Math.cos(n),e.data.cyclone.y=t*Math.sin(n),e.data.cyclone=this.normalizeForce(e.data.cyclone),e.a.add(e.data.cyclone)}}]),Ue);function Ue(e,t,n,a){return r(this,Ue),(a=s(this,(Ue.__proto__||Object.getPrototypeOf(Ue)).call(this,n,a))).setAngleAndForce(e,t),a.name="Cyclone",a}var Ve=(l(He,ke),a(He,[{key:"reset",value:function(e,t,n,r,a){o(He.prototype.__proto__||Object.getPrototypeOf(He.prototype),"reset",this).call(this,e,t,n,r,a),this.force*=-1}}]),He);function He(e,t,n,a,i){return r(this,He),(i=s(this,(He.__proto__||Object.getPrototypeOf(He)).call(this,e,t,n,a,i))).force*=-1,i.name="Repulsion",i}var We=(l(Ye,ge),a(Ye,[{key:"reset",value:function(e,t,n,r){this.distanceVec=new B,this.centerPoint=S.initValue(e,new B),this.force=S.initValue(this.normalizeValue(t),100),n&&o(Ye.prototype.__proto__||Object.getPrototypeOf(Ye.prototype),"reset",this).call(this,n,r)}},{key:"initialize",value:function(){}},{key:"applyBehaviour",value:function(e,t){this.distanceVec.set(this.centerPoint.x-e.p.x,this.centerPoint.y-e.p.y);var n,r=this.distanceVec.lengthSq();0!==r&&(n=this.distanceVec.length(),n=this.force*t/(r*n),e.v.x+=n*this.distanceVec.x,e.v.y+=n*this.distanceVec.y)}}]),Ye);function Ye(e,t,n,a){return r(this,Ye),(a=s(this,(Ye.__proto__||Object.getPrototypeOf(Ye)).call(this,n,a))).distanceVec=new B,a.centerPoint=S.initValue(e,new B),a.force=S.initValue(a.normalizeValue(t),100),a.name="GravityWell",a}var $e={initialize:function(e,t,n){var r=n.length,a=void 0;for(a=0;a<r;a++)n[a]instanceof J?n[a].init(e,t):this.init(e,t,n[a]);this.bindEmitter(e,t)},init:function(e,t,n){S.setProp(t,n),S.setVectorVal(t,n)},bindEmitter:function(e,n){e.bindEmitter&&(n.p.add(e.p),n.v.add(e.v),n.a.add(e.a),n.v.rotate(t.degreeTransform(e.rotation)))}},qe=(l(Qe,U),a(Qe,[{key:"emit",value:function(e,t){this.stoped=!1,this.emitTime=0,this.totalTime=S.initValue(e,1/0),!0===t||"life"===t||"destroy"===t?this.life="once"===e?1:this.totalTime:isNaN(t)||(this.life=t),this.rate.init()}},{key:"stop",value:function(){this.totalTime=-1,this.emitTime=0,this.stoped=!0}},{key:"preEmit",value:function(e){var t=this.stoped,n=this.emitTime,r=this.totalTime;for(this.stoped=!1,this.emitTime=0,this.totalTime=e,this.rate.init();.0167<e;)e-=.0167,this.update(.0167);this.stoped=t,this.emitTime=n+Math.max(e,0),this.totalTime=r}},{key:"removeAllParticles",value:function(){for(var e=this.particles.length;e--;)this.particles[e].dead=!0}},{key:"addSelfInitialize",value:function(e){e.init?e.init(this):this.initAll()}},{key:"addInitialize",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];for(var r=t.length;r--;)this.initializes.push(t[r])}},{key:"removeInitialize",value:function(e){-1<(e=this.initializes.indexOf(e))&&this.initializes.splice(e,1)}},{key:"removeAllInitializers",value:function(){S.emptyArray(this.initializes)}},{key:"addBehaviour",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];for(var r=arguments.length;r--;){var a=t[r];this.behaviours.push(a),a.parents&&a.parents.push(this)}}},{key:"removeBehaviour",value:function(e){var t=this.behaviours.indexOf(e);return this.behaviours.splice(t,1),e.parents&&(t=e.parents.indexOf(e),e.parents.splice(t,1)),t}},{key:"removeAllBehaviours",value:function(){S.emptyArray(this.behaviours)}},{key:"update",value:function(e){this.age+=e,(this.age>=this.life||this.dead)&&this.destroy(),this.emitting(e),this.integrate(e)}},{key:"integrate",value:function(e){if(this.parent){var t=1-this.damping;this.parent.integrator.calculate(this,e,t);var n=void 0,r=void 0;for(n=this.particles.length-1;0<=n;n--)(r=this.particles[n]).update(e,n),this.parent.integrator.calculate(r,e,t),this.dispatch("PARTICLE_UPDATE",r),r.dead&&(this.dispatch("PARTICLE_DEAD",r),this.parent.pool.expire(r),this.particles.splice(n,1))}}},{key:"dispatch",value:function(e,t){this.parent&&this.parent.dispatchEvent(e,t),this.bindEvent&&this.dispatchEvent(e,t)}},{key:"emitting",value:function(e){if("once"===this.totalTime){var t=void 0,n=this.rate.getValue(99999);for(0<n&&(this.emitSpeed=n),t=0;t<n;t++)this.createParticle();this.totalTime="none"}else if(this.emitTime+=e,this.emitTime<this.totalTime){var r=this.rate.getValue(e),a=void 0;for(0<r&&(this.emitSpeed=r),a=0;a<r;a++)this.createParticle()}}},{key:"createParticle",value:function(e,t){var n=this.parent.pool.get(U);return this.setupParticle(n,e,t),this.dispatch("PARTICLE_CREATED",n),n}},{key:"setupParticle",value:function(e,t,n){var r=this.initializes,a=this.behaviours;t&&(r=S.toArray(t)),n&&(a=S.toArray(n)),e.reset(),$e.initialize(this,e,r),e.addBehaviours(a),(e.parent=this).particles.push(e)}},{key:"remove",value:function(){this.stop(),S.destroyAll(this.particles)}},{key:"destroy",value:function(){this.dead=!0,this.remove(),this.removeAllInitializers(),this.removeAllBehaviours(),this.parent&&this.parent.removeEmitter(this)}}]),Qe);function Qe(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return r(this,Qe),(e=s(this,(Qe.__proto__||Object.getPrototypeOf(Qe)).call(this,e))).particles=[],e.behaviours=[],e.initializes=[],e.emitTime=0,e.emitSpeed=0,e.totalTime=-1,e.damping=.006,e.bindEmitter=!0,e.rate=new G(1,.1),e.name="Emitter",e.id=_.id(e.name),e}z.bind(qe);var Ze=(l(Xe,qe),a(Xe,[{key:"addSelfBehaviour",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=void 0,a=t.length;for(r=0;r<a;r++){var i=t[r];this.selfBehaviours.push(i),i.initialize(this)}}},{key:"removeSelfBehaviour",value:function(e){-1<(e=this.selfBehaviours.indexOf(e))&&this.selfBehaviours.splice(e,1)}},{key:"update",value:function(e){if(o(Xe.prototype.__proto__||Object.getPrototypeOf(Xe.prototype),"update",this).call(this,e),!this.sleep){var t=this.selfBehaviours.length,n=void 0;for(n=0;n<t;n++)this.selfBehaviours[n].applyBehaviour(this,e,n)}}}]),Xe);function Xe(e){return r(this,Xe),(e=s(this,(Xe.__proto__||Object.getPrototypeOf(Xe)).call(this,e))).selfBehaviours=[],e}var Ge=(l(Ke,qe),a(Ke,[{key:"initEventHandler",value:function(){var e=this;this.mousemoveHandler=function(t){return e.mousemove.call(e,t)},this.mousedownHandler=function(t){return e.mousedown.call(e,t)},this.mouseupHandler=function(t){return e.mouseup.call(e,t)},this.mouseTarget.addEventListener("mousemove",this.mousemoveHandler,!1)}},{key:"emit",value:function(){this._allowEmitting=!0}},{key:"stop",value:function(){this._allowEmitting=!1}},{key:"mousemove",value:function(e){e.layerX||0===e.layerX?(this.p.x+=(e.layerX-this.p.x)*this.ease,this.p.y+=(e.layerY-this.p.y)*this.ease):!e.offsetX&&0!==e.offsetX||(this.p.x+=(e.offsetX-this.p.x)*this.ease,this.p.y+=(e.offsetY-this.p.y)*this.ease),this._allowEmitting&&o(Ke.prototype.__proto__||Object.getPrototypeOf(Ke.prototype),"emit",this).call(this,"once")}},{key:"destroy",value:function(){o(Ke.prototype.__proto__||Object.getPrototypeOf(Ke.prototype),"destroy",this).call(this),this.mouseTarget.removeEventListener("mousemove",this.mousemoveHandler,!1)}}]),Ke);function Ke(e,t,n){return r(this,Ke),(n=s(this,(Ke.__proto__||Object.getPrototypeOf(Ke)).call(this,n))).mouseTarget=S.initValue(e,window),n.ease=S.initValue(t,.7),n._allowEmitting=!1,n.initEventHandler(),n}var Je=(a(et,[{key:"setStroke",value:function(e,t){e=0<arguments.length&&void 0!==e?e:"#000000",t=1<arguments.length&&void 0!==t?t:1,this.stroke={color:e,thinkness:t}}},{key:"initHandler",value:function(){var e=this;this._protonUpdateHandler=function(){e.onProtonUpdate.call(e)},this._protonUpdateAfterHandler=function(){e.onProtonUpdateAfter.call(e)},this._emitterAddedHandler=function(t){e.onEmitterAdded.call(e,t)},this._emitterRemovedHandler=function(t){e.onEmitterRemoved.call(e,t)},this._particleCreatedHandler=function(t){e.onParticleCreated.call(e,t)},this._particleUpdateHandler=function(t){e.onParticleUpdate.call(e,t)},this._particleDeadHandler=function(t){e.onParticleDead.call(e,t)}}},{key:"init",value:function(e){(this.parent=e).addEventListener("PROTON_UPDATE",this._protonUpdateHandler),e.addEventListener("PROTON_UPDATE_AFTER",this._protonUpdateAfterHandler),e.addEventListener("EMITTER_ADDED",this._emitterAddedHandler),e.addEventListener("EMITTER_REMOVED",this._emitterRemovedHandler),e.addEventListener("PARTICLE_CREATED",this._particleCreatedHandler),e.addEventListener("PARTICLE_UPDATE",this._particleUpdateHandler),e.addEventListener("PARTICLE_DEAD",this._particleDeadHandler)}},{key:"resize",value:function(){}},{key:"destroy",value:function(){this.remove()}},{key:"remove",value:function(){this.parent.removeEventListener("PROTON_UPDATE",this._protonUpdateHandler),this.parent.removeEventListener("PROTON_UPDATE_AFTER",this._protonUpdateAfterHandler),this.parent.removeEventListener("EMITTER_ADDED",this._emitterAddedHandler),this.parent.removeEventListener("EMITTER_REMOVED",this._emitterRemovedHandler),this.parent.removeEventListener("PARTICLE_CREATED",this._particleCreatedHandler),this.parent.removeEventListener("PARTICLE_UPDATE",this._particleUpdateHandler),this.parent.removeEventListener("PARTICLE_DEAD",this._particleDeadHandler),this.parent=null}},{key:"onProtonUpdate",value:function(){}},{key:"onProtonUpdateAfter",value:function(){}},{key:"onEmitterAdded",value:function(){}},{key:"onEmitterRemoved",value:function(){}},{key:"onParticleCreated",value:function(){}},{key:"onParticleUpdate",value:function(){}},{key:"onParticleDead",value:function(){}}]),et);function et(e,t){r(this,et),this.pool=new E,this.element=e,this.stroke=t,this.circleConf={isCircle:!0},this.initHandler(),this.name="BaseRenderer"}var tt=(l(nt,Je),a(nt,[{key:"resize",value:function(e,t){this.element.width=e,this.element.height=t}},{key:"onProtonUpdate",value:function(){this.context.clearRect(0,0,this.element.width,this.element.height)}},{key:"onParticleCreated",value:function(e){e.body?k(e.body,this.addImg2Body,e):e.color=e.color||"#ff0000"}},{key:"onParticleUpdate",value:function(e){e.body?e.body instanceof Image&&this.drawImage(e):this.drawCircle(e)}},{key:"onParticleDead",value:function(e){e.body=null}},{key:"addImg2Body",value:function(e,t){t.body=e}},{key:"drawImage",value:function(e){var n,r=e.body.width*e.scale|0,a=e.body.height*e.scale|0,i=e.p.x-r/2,o=e.p.y-a/2;e.color?(e.data.buffer||(e.data.buffer=this.createBuffer(e.body)),(n=e.data.buffer.getContext("2d")).clearRect(0,0,e.data.buffer.width,e.data.buffer.height),n.globalAlpha=e.alpha,n.drawImage(e.body,0,0),n.globalCompositeOperation="source-atop",n.fillStyle=H.rgbToHex(e.rgb),n.fillRect(0,0,e.data.buffer.width,e.data.buffer.height),n.globalCompositeOperation="source-over",n.globalAlpha=1,this.context.drawImage(e.data.buffer,0,0,e.data.buffer.width,e.data.buffer.height,i,o,r,a)):(this.context.save(),this.context.globalAlpha=e.alpha,this.context.translate(e.p.x,e.p.y),this.context.rotate(t.degreeTransform(e.rotation)),this.context.translate(-e.p.x,-e.p.y),this.context.drawImage(e.body,0,0,e.body.width,e.body.height,i,o,r,a),this.context.globalAlpha=1,this.context.restore())}},{key:"drawCircle",value:function(e){e.rgb?this.context.fillStyle="rgba("+e.rgb.r+","+e.rgb.g+","+e.rgb.b+","+e.alpha+")":this.context.fillStyle=e.color,this.context.beginPath(),this.context.arc(e.p.x,e.p.y,e.radius,0,2*Math.PI,!0),this.stroke&&(this.context.strokeStyle=this.stroke.color,this.context.lineWidth=this.stroke.thinkness,this.context.stroke()),this.context.closePath(),this.context.fill()}},{key:"createBuffer",value:function(e){if(e instanceof Image){var t=e.width+"_"+e.height,n=this.bufferCache[t];return n||((n=document.createElement("canvas")).width=e.width,n.height=e.height,this.bufferCache[t]=n),n}}}]),nt);function nt(e){return r(this,nt),(e=s(this,(nt.__proto__||Object.getPrototypeOf(nt)).call(this,e))).stroke=null,e.context=e.element.getContext("2d"),e.bufferCache={},e.name="CanvasRenderer",e}var rt=(l(at,Je),a(at,[{key:"onParticleCreated",value:function(e){e.body?k(e.body,this.addImg2Body,e):(e.body=this.pool.get(this.circleConf,e),this.element.appendChild(e.body))}},{key:"onParticleUpdate",value:function(e){this.bodyReady(e)&&(this.transform3d?v.transform3d(e.body,e.p.x,e.p.y,e.scale,e.rotation):v.transform(e.body,e.p.x,e.p.y,e.scale,e.rotation),e.body.style.opacity=e.alpha,e.body.isCircle&&(e.body.style.backgroundColor=e.color||"#ff0000"))}},{key:"onParticleDead",value:function(e){this.bodyReady(e)&&(this.element.removeChild(e.body),this.pool.expire(e.body),e.body=null)}},{key:"bodyReady",value:function(e){return"object"===n(e.body)&&e.body&&!e.body.isInner}},{key:"addImg2Body",value:function(e,t){t.dead||(t.body=this.pool.get(e,t),v.resize(t.body,e.width,e.height),this.element.appendChild(t.body))}},{key:"createBody",value:function(e,t){return e.isCircle?this.createCircle(t):this.createSprite(e,t)}},{key:"createCircle",value:function(e){var t=v.createDiv(e.id+"_dom",2*e.radius,2*e.radius);return t.style.borderRadius=e.radius+"px",this.stroke&&(t.style.borderColor=this.stroke.color,t.style.borderWidth=this.stroke.thinkness+"px"),t.isCircle=!0,t}},{key:"createSprite",value:function(e,t){var n="string"==typeof e?e:e.src;return(e=v.createDiv(t.id+"_dom",e.width,e.height)).style.backgroundImage="url("+n+")",e}}]),at);function at(e){r(this,at);var t=s(this,(at.__proto__||Object.getPrototypeOf(at)).call(this,e));return t.stroke=null,t.pool.create=function(e,n){return t.createBody(e,n)},t.addImg2Body=t.addImg2Body.bind(t),t.transform3d=!1,t.name="DomRenderer",t}var it=(l(ot,Je),a(ot,[{key:"onParticleCreated",value:function(e){e.body?this.createSprite(e):this.createCircle(e),this.element.addChild(e.body)}},{key:"onParticleUpdate",value:function(e){e.body&&(e.body.x=e.p.x,e.body.y=e.p.y,e.body.alpha=e.alpha,e.body.scaleX=e.body.scaleY=e.scale,e.body.rotation=e.rotation)}},{key:"onParticleDead",value:function(e){e.body&&(e.body.parent&&e.body.parent.removeChild(e.body),this.pool.expire(e.body),e.body=null),e.graphics&&this.pool.expire(e.graphics)}},{key:"createSprite",value:function(e){e.body=this.pool.get(e.body),e.body.parent||e.body.image&&(e.body.regX=e.body.image.width/2,e.body.regY=e.body.image.height/2)}},{key:"createCircle",value:function(e){var t=this.pool.get(createjs.Graphics);this.stroke&&(this.stroke instanceof String?t.beginStroke(this.stroke):t.beginStroke("#000000")),t.beginFill(e.color||"#ff0000").drawCircle(0,0,e.radius);var n=this.pool.get(createjs.Shape,[t]);e.body=n,e.graphics=t}}]),ot);function ot(e,t){return r(this,ot),(e=s(this,(ot.__proto__||Object.getPrototypeOf(ot)).call(this,e))).stroke=t,e.name="EaselRenderer",e}var lt=(l(st,Je),a(st,[{key:"resize",value:function(e,t){this.element.width=e,this.element.height=t}},{key:"createImageData",value:function(e){this.rectangle=e||new Z(0,0,this.element.width,this.element.height),this.imageData=this.context.createImageData(this.rectangle.width,this.rectangle.height),this.context.putImageData(this.imageData,this.rectangle.x,this.rectangle.y)}},{key:"onProtonUpdate",value:function(){this.context.clearRect(this.rectangle.x,this.rectangle.y,this.rectangle.width,this.rectangle.height),this.imageData=this.context.getImageData(this.rectangle.x,this.rectangle.y,this.rectangle.width,this.rectangle.height)}},{key:"onProtonUpdateAfter",value:function(){this.context.putImageData(this.imageData,this.rectangle.x,this.rectangle.y)}},{key:"onParticleCreated",value:function(){}},{key:"onParticleUpdate",value:function(e){this.imageData&&this.setPixel(this.imageData,Math.floor(e.p.x-this.rectangle.x),Math.floor(e.p.y-this.rectangle.y),e)}},{key:"setPixel",value:function(e,t,n,r){var a=r.rgb;t<0||t>this.element.width||n<0||n>this.elementwidth||(t=4*((n>>0)*e.width+(t>>0)),e.data[t]=a.r,e.data[1+t]=a.g,e.data[2+t]=a.b,e.data[3+t]=255*r.alpha)}},{key:"onParticleDead",value:function(){}}]),st);function st(e,t){return r(this,st),(e=s(this,(st.__proto__||Object.getPrototypeOf(st)).call(this,e))).context=e.element.getContext("2d"),e.imageData=null,e.rectangle=null,e.rectangle=t,e.createImageData(t),e.name="PixelRenderer",e}var ut=void 0,ct=(l(ft,Je),a(ft,[{key:"setPIXI",value:function(e){try{ut=e||{Sprite:{}},this.createFromImage=ut.Sprite.from||ut.Sprite.fromImage}catch(e){}}},{key:"onProtonUpdate",value:function(){}},{key:"onParticleCreated",value:function(e){e.body?e.body=this.pool.get(e.body,e):e.body=this.pool.get(this.circleConf,e),this.blendMode&&(e.body.blendMode=this.blendMode),this.element.addChild(e.body)}},{key:"onParticleUpdate",value:function(e){this.transform(e,e.body),!0!==this.setColor&&!0!==this.color||(e.body.tint=H.getHex16FromParticle(e))}},{key:"onParticleDead",value:function(e){this.element.removeChild(e.body),this.pool.expire(e.body),e.body=null}},{key:"destroy",value:function(e){o(ft.prototype.__proto__||Object.getPrototypeOf(ft.prototype),"destroy",this).call(this),this.pool.destroy();for(var t=e.length;t--;){var n=e[t];n.body&&this.element.removeChild(n.body)}}},{key:"transform",value:function(e,n){n.x=e.p.x,n.y=e.p.y,n.alpha=e.alpha,n.scale.x=e.scale,n.scale.y=e.scale,n.rotation=e.rotation*t.PI_180}},{key:"createBody",value:function(e,t){return e.isCircle?this.createCircle(t):this.createSprite(e)}},{key:"createSprite",value:function(e){return(e=e.isInner?this.createFromImage(e.src):new ut.Sprite(e)).anchor.x=.5,e.anchor.y=.5,e}},{key:"createCircle",value:function(e){var t,n=new ut.Graphics;return this.stroke&&(t=this.stroke instanceof String?this.stroke:0,n.beginStroke(t)),n.beginFill(e.color||36077),n.drawCircle(0,0,e.radius),n.endFill(),n}}]),ft);function ft(e,t){r(this,ft);var n=s(this,(ft.__proto__||Object.getPrototypeOf(ft)).call(this,e));return n.stroke=t,n.color=!1,n.setColor=!1,n.blendMode=null,n.pool.create=function(e,t){return n.createBody(e,t)},n.setPIXI(window.PIXI),n.name="PixiRenderer",n}var dt=(a(ht,[{key:"set",value:function(e,t){0===t?$.set(e,this.mats[0]):$.multiply(this.mats[t-1],e,this.mats[t]),this.size=Math.max(this.size,t+1)}},{key:"push",value:function(e){0===this.size?$.set(e,this.mats[0]):$.multiply(this.mats[this.size-1],e,this.mats[this.size]),this.size++}},{key:"pop",value:function(){0<this.size&&this.size--}},{key:"top",value:function(){return this.mats[this.size-1]}}]),ht);function ht(){r(this,ht),this.mats=[];for(var e=this.size=0;e<20;e++)this.mats.push($.create([0,0,0,0,0,0,0,0,0]))}function pt(e){return r(this,pt),(e=s(this,(pt.__proto__||Object.getPrototypeOf(pt)).call(this,e))).gl=e.element.getContext("experimental-webgl",{antialias:!0,stencil:!1,depth:!1}),e.gl||alert("Sorry your browser do not suppest WebGL!"),e.initVar(),e.setMaxRadius(),e.initShaders(),e.initBuffers(),e.gl.blendEquation(e.gl.FUNC_ADD),e.gl.blendFunc(e.gl.SRC_ALPHA,e.gl.ONE_MINUS_SRC_ALPHA),e.gl.enable(e.gl.BLEND),e.addImg2Body=e.addImg2Body.bind(e),e.name="WebGLRenderer",e}function mt(e){return r(this,mt),(e=s(this,(mt.__proto__||Object.getPrototypeOf(mt)).call(this,e))).name="CustomRenderer",e}l(pt,Je),a(pt,[{key:"init",value:function(e){o(pt.prototype.__proto__||Object.getPrototypeOf(pt.prototype),"init",this).call(this,e),this.resize(this.element.width,this.element.height)}},{key:"resize",value:function(e,t){this.umat[4]=-2,this.umat[7]=1,this.smat[0]=1/e,this.smat[4]=1/t,this.mstack.set(this.umat,0),this.mstack.set(this.smat,1),this.gl.viewport(0,0,e,t),this.element.width=e,this.element.height=t}},{key:"setMaxRadius",value:function(e){this.circleCanvasURL=this.createCircle(e)}},{key:"getVertexShader",value:function(){return["uniform vec2 viewport;","attribute vec2 aVertexPosition;","attribute vec2 aTextureCoord;","uniform mat3 tMat;","varying vec2 vTextureCoord;","varying float alpha;","void main() {","vec3 v = tMat * vec3(aVertexPosition, 1.0);","gl_Position = vec4(v.x, v.y, 0, 1);","vTextureCoord = aTextureCoord;","alpha = tMat[0][2];","}"].join("\n")}},{key:"getFragmentShader",value:function(){return["precision mediump float;","varying vec2 vTextureCoord;","varying float alpha;","uniform sampler2D uSampler;","uniform vec4 color;","uniform bool useTexture;","uniform vec3 uColor;","void main() {","vec4 textureColor = texture2D(uSampler, vTextureCoord);","gl_FragColor = textureColor * vec4(uColor, 1.0);","gl_FragColor.w *= alpha;","}"].join("\n")}},{key:"initVar",value:function(){this.mstack=new dt,this.umat=$.create([2,0,1,0,-2,0,-1,1,1]),this.smat=$.create([.01,0,1,0,.01,0,0,0,1]),this.texturebuffers={}}},{key:"blendEquation",value:function(e){this.gl.blendEquation(this.gl[e])}},{key:"blendFunc",value:function(e,t){this.gl.blendFunc(this.gl[e],this.gl[t])}},{key:"getShader",value:function(e,t,n){return n=n?e.createShader(e.FRAGMENT_SHADER):e.createShader(e.VERTEX_SHADER),e.shaderSource(n,t),e.compileShader(n),e.getShaderParameter(n,e.COMPILE_STATUS)?n:(alert(e.getShaderInfoLog(n)),null)}},{key:"initShaders",value:function(){var e=this.getShader(this.gl,this.getFragmentShader(),!0),t=this.getShader(this.gl,this.getVertexShader(),!1);this.sprogram=this.gl.createProgram(),this.gl.attachShader(this.sprogram,t),this.gl.attachShader(this.sprogram,e),this.gl.linkProgram(this.sprogram),this.gl.getProgramParameter(this.sprogram,this.gl.LINK_STATUS)||alert("Could not initialise shaders"),this.gl.useProgram(this.sprogram),this.sprogram.vpa=this.gl.getAttribLocation(this.sprogram,"aVertexPosition"),this.sprogram.tca=this.gl.getAttribLocation(this.sprogram,"aTextureCoord"),this.gl.enableVertexAttribArray(this.sprogram.tca),this.gl.enableVertexAttribArray(this.sprogram.vpa),this.sprogram.tMatUniform=this.gl.getUniformLocation(this.sprogram,"tMat"),this.sprogram.samplerUniform=this.gl.getUniformLocation(this.sprogram,"uSampler"),this.sprogram.useTex=this.gl.getUniformLocation(this.sprogram,"useTexture"),this.sprogram.color=this.gl.getUniformLocation(this.sprogram,"uColor"),this.gl.uniform1i(this.sprogram.useTex,1)}},{key:"initBuffers",value:function(){var e;this.unitIBuffer=this.gl.createBuffer(),this.gl.bindBuffer(this.gl.ELEMENT_ARRAY_BUFFER,this.unitIBuffer),this.gl.bufferData(this.gl.ELEMENT_ARRAY_BUFFER,new Uint16Array([0,3,1,0,2,3]),this.gl.STATIC_DRAW);var t=void 0,n=[];for(t=0;t<100;t++)n.push(t);for(e=new Uint16Array(n),this.unitI33=this.gl.createBuffer(),this.gl.bindBuffer(this.gl.ELEMENT_ARRAY_BUFFER,this.unitI33),this.gl.bufferData(this.gl.ELEMENT_ARRAY_BUFFER,e,this.gl.STATIC_DRAW),n=[],t=0;t<100;t++)n.push(t,t+1,t+2);e=new Uint16Array(n),this.stripBuffer=this.gl.createBuffer(),this.gl.bindBuffer(this.gl.ELEMENT_ARRAY_BUFFER,this.stripBuffer),this.gl.bufferData(this.gl.ELEMENT_ARRAY_BUFFER,e,this.gl.STATIC_DRAW)}},{key:"createCircle",value:function(e){this.circleCanvasRadius=f(S.initValue(e,32));var t=v.createCanvas("circle_canvas",2*this.circleCanvasRadius,2*this.circleCanvasRadius);return(e=t.getContext("2d")).beginPath(),e.arc(this.circleCanvasRadius,this.circleCanvasRadius,this.circleCanvasRadius,0,2*Math.PI,!0),e.closePath(),e.fillStyle="#FFF",e.fill(),t.toDataURL()}},{key:"drawImg2Canvas",value:function(e){var t=e.body.width,n=e.body.height,r=f(e.body.width),a=f(e.body.height),i=e.body.width/r,o=e.body.height/a;this.texturebuffers[e.data.src]||(this.texturebuffers[e.data.src]=[this.gl.createTexture(),this.gl.createBuffer(),this.gl.createBuffer()]),e.data.texture=this.texturebuffers[e.data.src][0],e.data.vcBuffer=this.texturebuffers[e.data.src][1],e.data.tcBuffer=this.texturebuffers[e.data.src][2],this.gl.bindBuffer(this.gl.ARRAY_BUFFER,e.data.tcBuffer),this.gl.bufferData(this.gl.ARRAY_BUFFER,new Float32Array([0,0,i,0,0,o,o,o]),this.gl.STATIC_DRAW),this.gl.bindBuffer(this.gl.ARRAY_BUFFER,e.data.vcBuffer),this.gl.bufferData(this.gl.ARRAY_BUFFER,new Float32Array([0,0,t,0,0,n,t,n]),this.gl.STATIC_DRAW),a=e.data.canvas.getContext("2d").getImageData(0,0,r,a),this.gl.bindTexture(this.gl.TEXTURE_2D,e.data.texture),this.gl.texImage2D(this.gl.TEXTURE_2D,0,this.gl.RGBA,this.gl.RGBA,this.gl.UNSIGNED_BYTE,a),this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_MAG_FILTER,this.gl.LINEAR),this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_MIN_FILTER,this.gl.LINEAR_MIPMAP_NEAREST),this.gl.generateMipmap(this.gl.TEXTURE_2D),e.data.textureLoaded=!0,e.data.textureWidth=t,e.data.textureHeight=n}},{key:"onProtonUpdate",value:function(){}},{key:"onParticleCreated",value:function(e){e.data.textureLoaded=!1,e.data.tmat=$.create(),e.data.tmat[8]=1,e.data.imat=$.create(),e.data.imat[8]=1,e.body?k(e.body,this.addImg2Body,e):(k(this.circleCanvasURL,this.addImg2Body,e),e.data.oldScale=e.radius/this.circleCanvasRadius)}},{key:"addImg2Body",value:function(e,t){t.dead||(t.body=e,t.data.src=e.src,t.data.canvas=x(e),t.data.oldScale=1,this.drawImg2Canvas(t))}},{key:"onParticleUpdate",value:function(e){e.data.textureLoaded&&(this.updateMatrix(e),this.gl.uniform3f(this.sprogram.color,e.rgb.r/255,e.rgb.g/255,e.rgb.b/255),this.gl.uniformMatrix3fv(this.sprogram.tMatUniform,!1,this.mstack.top()),this.gl.bindBuffer(this.gl.ARRAY_BUFFER,e.data.vcBuffer),this.gl.vertexAttribPointer(this.sprogram.vpa,2,this.gl.FLOAT,!1,0,0),this.gl.bindBuffer(this.gl.ARRAY_BUFFER,e.data.tcBuffer),this.gl.vertexAttribPointer(this.sprogram.tca,2,this.gl.FLOAT,!1,0,0),this.gl.bindTexture(this.gl.TEXTURE_2D,e.data.texture),this.gl.uniform1i(this.sprogram.samplerUniform,0),this.gl.bindBuffer(this.gl.ELEMENT_ARRAY_BUFFER,this.unitIBuffer),this.gl.drawElements(this.gl.TRIANGLES,6,this.gl.UNSIGNED_SHORT,0),this.mstack.pop())}},{key:"onParticleDead",value:function(){}},{key:"updateMatrix",value:function(e){var n=d(-e.data.textureWidth/2,-e.data.textureHeight/2),r=d(e.p.x,e.p.y),a=e.rotation*t.PI_180,i=h(a);a=e.scale*e.data.oldScale,a=p(a,a),a=m(n,a),a=m(a,i),a=m(a,r),$.inverse(a,e.data.imat),a[2]=e.alpha,this.mstack.push(a)}}]),z=pt,l(mt,Je),Je=mt;var vt=(l(gt,re),a(gt,[{key:"getPosition",value:function(){return this.random=Math.random(),this.vector.x=this.x1+this.random*this.length*Math.cos(this.gradient),this.vector.y=this.y1+this.random*this.length*Math.sin(this.gradient),this.vector}},{key:"getDirection",value:function(e,t){var n=this.dy,r=-this.dx;return 0<(n*e+r*t+this.dot)*(0==r?1:r)}},{key:"getDistance",value:function(e,t){return(this.dy*e+-this.dx*t+this.dot)/Math.sqrt(this.xxyy)}},{key:"getSymmetric",value:function(e){var t=e.getGradient(),n=2*(this.getGradient()-t),r=e.x;return t=e.y,e.x=r*Math.cos(n)-t*Math.sin(n),e.y=r*Math.sin(n)+t*Math.cos(n),e}},{key:"getGradient",value:function(){return Math.atan2(this.dy,this.dx)}},{key:"rangeOut",value:function(e){if(Math.abs(this.getGradient())<=t.PI/4){if(e.p.x<=this.maxx&&e.p.x>=this.minx)return!0}else if(e.p.y<=this.maxy&&e.p.y>=this.miny)return!0;return!1}},{key:"getLength",value:function(){return Math.sqrt(this.dx*this.dx+this.dy*this.dy)}},{key:"crossing",value:function(e){"dead"===this.crossType?">"===this.direction||"R"===this.direction||"right"===this.direction||"down"===this.direction?this.rangeOut(e)&&this.getDirection(e.p.x,e.p.y)&&(e.dead=!0):this.rangeOut(e)&&(this.getDirection(e.p.x,e.p.y)||(e.dead=!0)):"bound"===this.crossType?this.rangeOut(e)&&this.getDistance(e.p.x,e.p.y)<=e.radius&&(0===this.dx?e.v.x*=-1:0===this.dy?e.v.y*=-1:this.getSymmetric(e.v)):"cross"===this.crossType&&this.alert&&(console.error("Sorry, LineZone does not support cross method!"),this.alert=!1)}}]),gt);function gt(e,t,n,a,i){r(this,gt);var o=s(this,(gt.__proto__||Object.getPrototypeOf(gt)).call(this));return 0<=n-e?(o.x1=e,o.y1=t,o.x2=n,o.y2=a):(o.x1=n,o.y1=a,o.x2=e,o.y2=t),o.dx=o.x2-o.x1,o.dy=o.y2-o.y1,o.minx=Math.min(o.x1,o.x2),o.miny=Math.min(o.y1,o.y2),o.maxx=Math.max(o.x1,o.x2),o.maxy=Math.max(o.y1,o.y2),o.dot=o.x2*o.y1-o.x1*o.y2,o.xxyy=o.dx*o.dx+o.dy*o.dy,o.gradient=o.getGradient(),o.length=o.getLength(),o.direction=S.initValue(i,">"),o}var yt=(l(bt,re),a(bt,[{key:"getPosition",value:function(){return this.angle=t.PIx2*Math.random(),this.randomRadius=Math.random()*this.radius,this.vector.x=this.x+this.randomRadius*Math.cos(this.angle),this.vector.y=this.y+this.randomRadius*Math.sin(this.angle),this.vector}},{key:"setCenter",value:function(e,t){this.center.x=e,this.center.y=t}},{key:"crossing",value:function(e){var t=e.p.distanceTo(this.center);"dead"===this.crossType?t-e.radius>this.radius&&(e.dead=!0):"bound"===this.crossType?t+e.radius>=this.radius&&this.getSymmetric(e):"cross"===this.crossType&&this.alert&&(console.error("Sorry, CircleZone does not support cross method!"),this.alert=!1)}},{key:"getSymmetric",value:function(e){var t=e.v.getGradient(),n=2*(this.getGradient(e)-t),r=e.v.x;t=e.v.y,e.v.x=r*Math.cos(n)-t*Math.sin(n),e.v.y=r*Math.sin(n)+t*Math.cos(n)}},{key:"getGradient",value:function(e){return-t.PI_2+Math.atan2(e.p.y-this.center.y,e.p.x-this.center.x)}}]),bt);function bt(e,t,n){r(this,bt);var a=s(this,(bt.__proto__||Object.getPrototypeOf(bt)).call(this));return a.x=e,a.y=t,a.radius=n,a.angle=0,a.center={x:e,y:t},a}var wt=(l(kt,re),a(kt,[{key:"getPosition",value:function(){return this.vector.x=this.x+Math.random()*this.width,this.vector.y=this.y+Math.random()*this.height,this.vector}},{key:"crossing",value:function(e){"dead"===this.crossType?((e.p.x+e.radius<this.x||e.p.x-e.radius>this.x+this.width)&&(e.dead=!0),(e.p.y+e.radius<this.y||e.p.y-e.radius>this.y+this.height)&&(e.dead=!0)):"bound"===this.crossType?(e.p.x-e.radius<this.x?(e.p.x=this.x+e.radius,e.v.x*=-1):e.p.x+e.radius>this.x+this.width&&(e.p.x=this.x+this.width-e.radius,e.v.x*=-1),e.p.y-e.radius<this.y?(e.p.y=this.y+e.radius,e.v.y*=-1):e.p.y+e.radius>this.y+this.height&&(e.p.y=this.y+this.height-e.radius,e.v.y*=-1)):"cross"===this.crossType&&(e.p.x+e.radius<this.x&&e.v.x<=0?e.p.x=this.x+this.width+e.radius:e.p.x-e.radius>this.x+this.width&&0<=e.v.x&&(e.p.x=this.x-e.radius),e.p.y+e.radius<this.y&&e.v.y<=0?e.p.y=this.y+this.height+e.radius:e.p.y-e.radius>this.y+this.height&&0<=e.v.y&&(e.p.y=this.y-e.radius))}}]),kt);function kt(e,t,n,a){r(this,kt);var i=s(this,(kt.__proto__||Object.getPrototypeOf(kt)).call(this));return i.x=e,i.y=t,i.width=n,i.height=a,i}function xt(e,t,n,a){r(this,xt);var i=s(this,(xt.__proto__||Object.getPrototypeOf(xt)).call(this));return i.reset(e,t,n,a),i}return l(xt,re),a(xt,[{key:"reset",value:function(e,t,n,r){this.imageData=e,this.x=S.initValue(t,0),this.y=S.initValue(n,0),this.d=S.initValue(r,2),this.vectors=[],this.setVectors()}},{key:"setVectors",value:function(){var e=void 0,t=void 0,n=this.imageData.width,r=this.imageData.height;for(e=0;e<n;e+=this.d)for(t=0;t<r;t+=this.d){var a=4*((t>>0)*n+(e>>0));0<this.imageData.data[3+a]&&this.vectors.push({x:e+this.x,y:t+this.y})}return this.vector}},{key:"getBound",value:function(e,t){return e=4*((t>>0)*this.imageData.width+(e>>0)),0<this.imageData.data[3+e]}},{key:"getPosition",value:function(){var e=S.getRandFromArray(this.vectors);return this.vector.copy(e)}},{key:"getColor",value:function(e,t){return e-=this.x,e=4*(((t-=this.y)>>0)*this.imageData.width+(e>>0)),{r:this.imageData.data[e],g:this.imageData.data[1+e],b:this.imageData.data[2+e],a:this.imageData.data[3+e]}}},{key:"crossing",value:function(e){"dead"===this.crossType?this.getBound(e.p.x-this.x,e.p.y-this.y)?e.dead=!0:e.dead=!1:"bound"===this.crossType&&(this.getBound(e.p.x-this.x,e.p.y-this.y)||e.v.negate())}}]),l=xt,a={addEventListener:function(e,t){e.addEventListener("PROTON_UPDATE_AFTER",(function(){return t()}))},getStyle:function(e){return"rgba("+(e=H.hexToRgb(0<arguments.length&&void 0!==e?e:"#ff0000")).r+", "+e.g+", "+e.b+", 0.5)"},drawZone:function(e,t,n,r){var a=t.getContext("2d"),i=this.getStyle();this.addEventListener(e,(function(){r&&a.clearRect(0,0,t.width,t.height),n instanceof ie?(a.beginPath(),a.fillStyle=i,a.arc(n.x,n.y,10,0,2*Math.PI,!0),a.fill(),a.closePath()):n instanceof vt?(a.beginPath(),a.strokeStyle=i,a.moveTo(n.x1,n.y1),a.lineTo(n.x2,n.y2),a.stroke(),a.closePath()):n instanceof wt?(a.beginPath(),a.strokeStyle=i,a.drawRect(n.x,n.y,n.width,n.height),a.stroke(),a.closePath()):n instanceof yt&&(a.beginPath(),a.strokeStyle=i,a.arc(n.x,n.y,n.radius,0,2*Math.PI,!0),a.stroke(),a.closePath())}))},drawEmitter:function(e,t,n,r){var a=t.getContext("2d"),i=this.getStyle();this.addEventListener(e,(function(){r&&a.clearRect(0,0,t.width,t.height),a.beginPath(),a.fillStyle=i,a.arc(n.p.x,n.p.y,10,0,2*Math.PI,!0),a.fill(),a.closePath()}))}},M.Particle=U,M.Pool=E,M.Util=S,M.ColorUtil=H,M.MathUtil=t,M.Vector2D=M.Vector=B,M.Polar2D=M.Polar=W,M.ArraySpan=q,M.Rectangle=Z,M.Rate=G,M.ease=F,M.Span=u,M.Mat3=$,M.getSpan=function(e,t,n){return new u(e,t,n)},M.createArraySpan=q.createArraySpan,M.Initialize=M.Init=J,M.Life=M.L=te,M.Position=M.P=le,M.Velocity=M.V=ue,M.Mass=M.M=fe,M.Radius=M.R=he,M.Body=M.B=me,M.Behaviour=ge,M.Force=M.F=be,M.Attraction=M.A=ke,M.RandomDrift=M.RD=Se,M.Gravity=M.G=_e,M.Collision=Ce,M.CrossZone=Oe,M.Alpha=Te,M.Scale=M.S=Ie,M.Rotate=Ne,M.Color=De,M.Repulsion=Ve,M.Cyclone=je,M.GravityWell=We,M.Emitter=qe,M.BehaviourEmitter=Ze,M.FollowEmitter=Ge,M.Zone=re,M.LineZone=vt,M.CircleZone=yt,M.PointZone=ie,M.RectZone=wt,M.ImageZone=l,M.CanvasRenderer=tt,M.DomRenderer=rt,M.EaselRenderer=it,M.PixiRenderer=ct,M.PixelRenderer=lt,M.WebGLRenderer=M.WebGlRenderer=z,M.CustomRenderer=Je,M.Debug=a,S.assign(M,F),M}()},222:function(e){e.exports=function(){"use strict";return function(){for(var e=["ms","moz","webkit","o"],t=0;t<e.length&&!window.requestAnimationFrame;++t)window.requestAnimationFrame=window[e[t]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[e[t]+"CancelAnimationFrame"]||window[e[t]+"CancelRequestAnimationFrame"]}(),{timer:0,state:"stop",animations:[],add:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:60,n={callback:e,fps:t,n:60/t,param:arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i:0};return this.animations.push(n),this.animations.length>=1&&this.start(),this},getIndex:function(e){for(var t=0;t<this.animations.length;t++)if(this.animations[t].callback===e)return t;return-1},remove:function(e){if(!(this.getIndex(e)<0))return this.deleteMap(e),0===this.animations.length&&this.stop(),this},deleteMap:function(e){var t=this.getIndex(e),n=this.animations[t];for(var r in n)delete n[r];this.animations.splice(t,1)},start:function(){if("start"!==this.state)return this.state="start",this.tick(),this},stop:function(){if("stop"!==this.state)return this.state="stop",cancelAnimationFrame(this.timer),this},tick:function(){var e=this;this.timer=requestAnimationFrame((function(){e.tick()}));for(var t=0;t<this.animations.length;t++){var n=this.animations[t],r=n.callback,a=n.param;n.i++,n.i>=n.n&&(r(a),n.i=0)}}}}()},463:(e,t,n)=>{"use strict";var r=n(791),a=n(296);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var o=new Set,l={};function s(e,t){u(e,t),u(e+"Capture",t)}function u(e,t){for(l[e]=t,e=0;e<t.length;e++)o.add(t[e])}var c=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),f=Object.prototype.hasOwnProperty,d=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,h={},p={};function m(e,t,n,r,a,i,o){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=a,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var v={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){v[e]=new m(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];v[t]=new m(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){v[e]=new m(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){v[e]=new m(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){v[e]=new m(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){v[e]=new m(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){v[e]=new m(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){v[e]=new m(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){v[e]=new m(e,5,!1,e.toLowerCase(),null,!1,!1)}));var g=/[\-:]([a-z])/g;function y(e){return e[1].toUpperCase()}function b(e,t,n,r){var a=v.hasOwnProperty(t)?v[t]:null;(null!==a?0!==a.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null===t||"undefined"===typeof t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,a,r)&&(n=null),r||null===a?function(e){return!!f.call(p,e)||!f.call(h,e)&&(d.test(e)?p[e]=!0:(h[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):a.mustUseProperty?e[a.propertyName]=null===n?3!==a.type&&"":n:(t=a.attributeName,r=a.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(a=a.type)||4===a&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(g,y);v[t]=new m(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(g,y);v[t]=new m(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(g,y);v[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){v[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)})),v.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){v[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,k=Symbol.for("react.element"),x=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),P=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),E=Symbol.for("react.provider"),C=Symbol.for("react.context"),R=Symbol.for("react.forward_ref"),O=Symbol.for("react.suspense"),z=Symbol.for("react.suspense_list"),T=Symbol.for("react.memo"),A=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var I=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var M=Symbol.iterator;function N(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=M&&e[M]||e["@@iterator"])?e:null}var L,D=Object.assign;function F(e){if(void 0===L)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);L=t&&t[1]||""}return"\n"+L+e}var B=!1;function j(e,t){if(!e||B)return"";B=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&"string"===typeof u.stack){for(var a=u.stack.split("\n"),i=r.stack.split("\n"),o=a.length-1,l=i.length-1;1<=o&&0<=l&&a[o]!==i[l];)l--;for(;1<=o&&0<=l;o--,l--)if(a[o]!==i[l]){if(1!==o||1!==l)do{if(o--,0>--l||a[o]!==i[l]){var s="\n"+a[o].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}}while(1<=o&&0<=l);break}}}finally{B=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?F(e):""}function U(e){switch(e.tag){case 5:return F(e.type);case 16:return F("Lazy");case 13:return F("Suspense");case 19:return F("SuspenseList");case 0:case 2:case 15:return e=j(e.type,!1);case 11:return e=j(e.type.render,!1);case 1:return e=j(e.type,!0);default:return""}}function V(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case S:return"Fragment";case x:return"Portal";case _:return"Profiler";case P:return"StrictMode";case O:return"Suspense";case z:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case C:return(e.displayName||"Context")+".Consumer";case E:return(e._context.displayName||"Context")+".Provider";case R:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case T:return null!==(t=e.displayName||null)?t:V(e.type)||"Memo";case A:t=e._payload,e=e._init;try{return V(e(t))}catch(n){}}return null}function H(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return V(t);case 8:return t===P?"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("function"===typeof t)return t.displayName||t.name||null;if("string"===typeof t)return t}return null}function W(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function Y(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function $(e){e._valueTracker||(e._valueTracker=function(e){var t=Y(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var a=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function q(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Y(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Q(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Z(e,t){var n=t.checked;return D({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function X(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=W(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function G(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function K(e,t){G(e,t);var n=W(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,W(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function J(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&Q(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var a=0;a<n.length;a++)t["$"+n[a]]=!0;for(n=0;n<e.length;n++)a=t.hasOwnProperty("$"+e[n].value),e[n].selected!==a&&(e[n].selected=a),a&&r&&(e[n].defaultSelected=!0)}else{for(n=""+W(n),t=null,a=0;a<e.length;a++){if(e[a].value===n)return e[a].selected=!0,void(r&&(e[a].defaultSelected=!0));null!==t||e[a].disabled||(t=e[a])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(i(91));return D({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ae(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(i(92));if(te(n)){if(1<n.length)throw Error(i(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:W(n)}}function ie(e,t){var n=W(t.value),r=W(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function oe(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function le(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function se(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?le(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ue,ce,fe=(ce=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ue=ue||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ue.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ce(e,t)}))}:ce);function de(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var he={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},pe=["Webkit","ms","Moz","O"];function me(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||he.hasOwnProperty(e)&&he[e]?(""+t).trim():t+"px"}function ve(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),a=me(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,a):e[n]=a}}Object.keys(he).forEach((function(e){pe.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),he[t]=he[e]}))}));var ge=D({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ye(e,t){if(t){if(ge[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(i(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(i(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(i(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(i(62))}}function be(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var we=null;function ke(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var xe=null,Se=null,Pe=null;function _e(e){if(e=ba(e)){if("function"!==typeof xe)throw Error(i(280));var t=e.stateNode;t&&(t=ka(t),xe(e.stateNode,e.type,t))}}function Ee(e){Se?Pe?Pe.push(e):Pe=[e]:Se=e}function Ce(){if(Se){var e=Se,t=Pe;if(Pe=Se=null,_e(e),t)for(e=0;e<t.length;e++)_e(t[e])}}function Re(e,t){return e(t)}function Oe(){}var ze=!1;function Te(e,t,n){if(ze)return e(t,n);ze=!0;try{return Re(e,t,n)}finally{ze=!1,(null!==Se||null!==Pe)&&(Oe(),Ce())}}function Ae(e,t){var n=e.stateNode;if(null===n)return null;var r=ka(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(i(231,t,typeof n));return n}var Ie=!1;if(c)try{var Me={};Object.defineProperty(Me,"passive",{get:function(){Ie=!0}}),window.addEventListener("test",Me,Me),window.removeEventListener("test",Me,Me)}catch(ce){Ie=!1}function Ne(e,t,n,r,a,i,o,l,s){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var Le=!1,De=null,Fe=!1,Be=null,je={onError:function(e){Le=!0,De=e}};function Ue(e,t,n,r,a,i,o,l,s){Le=!1,De=null,Ne.apply(je,arguments)}function Ve(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function He(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function We(e){if(Ve(e)!==e)throw Error(i(188))}function Ye(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ve(e)))throw Error(i(188));return t!==e?null:e}for(var n=e,r=t;;){var a=n.return;if(null===a)break;var o=a.alternate;if(null===o){if(null!==(r=a.return)){n=r;continue}break}if(a.child===o.child){for(o=a.child;o;){if(o===n)return We(a),e;if(o===r)return We(a),t;o=o.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=o;else{for(var l=!1,s=a.child;s;){if(s===n){l=!0,n=a,r=o;break}if(s===r){l=!0,r=a,n=o;break}s=s.sibling}if(!l){for(s=o.child;s;){if(s===n){l=!0,n=o,r=a;break}if(s===r){l=!0,r=o,n=a;break}s=s.sibling}if(!l)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(3!==n.tag)throw Error(i(188));return n.stateNode.current===n?e:t}(e))?$e(e):null}function $e(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=$e(e);if(null!==t)return t;e=e.sibling}return null}var qe=a.unstable_scheduleCallback,Qe=a.unstable_cancelCallback,Ze=a.unstable_shouldYield,Xe=a.unstable_requestPaint,Ge=a.unstable_now,Ke=a.unstable_getCurrentPriorityLevel,Je=a.unstable_ImmediatePriority,et=a.unstable_UserBlockingPriority,tt=a.unstable_NormalPriority,nt=a.unstable_LowPriority,rt=a.unstable_IdlePriority,at=null,it=null;var ot=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(lt(e)/st|0)|0},lt=Math.log,st=Math.LN2;var ut=64,ct=4194304;function ft(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function dt(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,a=e.suspendedLanes,i=e.pingedLanes,o=268435455&n;if(0!==o){var l=o&~a;0!==l?r=ft(l):0!==(i&=o)&&(r=ft(i))}else 0!==(o=n&~a)?r=ft(o):0!==i&&(r=ft(i));if(0===r)return 0;if(0!==t&&t!==r&&0===(t&a)&&((a=r&-r)>=(i=t&-t)||16===a&&0!==(4194240&i)))return t;if(0!==(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)a=1<<(n=31-ot(t)),r|=e[n],t&=~a;return r}function ht(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function pt(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function mt(){var e=ut;return 0===(4194240&(ut<<=1))&&(ut=64),e}function vt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function gt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-ot(t)]=n}function yt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-ot(n),a=1<<r;a&t|e[r]&t&&(e[r]|=t),n&=~a}}var bt=0;function wt(e){return 1<(e&=-e)?4<e?0!==(268435455&e)?16:536870912:4:1}var kt,xt,St,Pt,_t,Et=!1,Ct=[],Rt=null,Ot=null,zt=null,Tt=new Map,At=new Map,It=[],Mt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Nt(e,t){switch(e){case"focusin":case"focusout":Rt=null;break;case"dragenter":case"dragleave":Ot=null;break;case"mouseover":case"mouseout":zt=null;break;case"pointerover":case"pointerout":Tt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":At.delete(t.pointerId)}}function Lt(e,t,n,r,a,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[a]},null!==t&&(null!==(t=ba(t))&&xt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==a&&-1===t.indexOf(a)&&t.push(a),e)}function Dt(e){var t=ya(e.target);if(null!==t){var n=Ve(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=He(n)))return e.blockedOn=t,void _t(e.priority,(function(){St(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Ft(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Zt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=ba(n))&&xt(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);we=r,n.target.dispatchEvent(r),we=null,t.shift()}return!0}function Bt(e,t,n){Ft(e)&&n.delete(t)}function jt(){Et=!1,null!==Rt&&Ft(Rt)&&(Rt=null),null!==Ot&&Ft(Ot)&&(Ot=null),null!==zt&&Ft(zt)&&(zt=null),Tt.forEach(Bt),At.forEach(Bt)}function Ut(e,t){e.blockedOn===t&&(e.blockedOn=null,Et||(Et=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,jt)))}function Vt(e){function t(t){return Ut(t,e)}if(0<Ct.length){Ut(Ct[0],e);for(var n=1;n<Ct.length;n++){var r=Ct[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Rt&&Ut(Rt,e),null!==Ot&&Ut(Ot,e),null!==zt&&Ut(zt,e),Tt.forEach(t),At.forEach(t),n=0;n<It.length;n++)(r=It[n]).blockedOn===e&&(r.blockedOn=null);for(;0<It.length&&null===(n=It[0]).blockedOn;)Dt(n),null===n.blockedOn&&It.shift()}var Ht=w.ReactCurrentBatchConfig,Wt=!0;function Yt(e,t,n,r){var a=bt,i=Ht.transition;Ht.transition=null;try{bt=1,qt(e,t,n,r)}finally{bt=a,Ht.transition=i}}function $t(e,t,n,r){var a=bt,i=Ht.transition;Ht.transition=null;try{bt=4,qt(e,t,n,r)}finally{bt=a,Ht.transition=i}}function qt(e,t,n,r){if(Wt){var a=Zt(e,t,n,r);if(null===a)Wr(e,t,r,Qt,n),Nt(e,r);else if(function(e,t,n,r,a){switch(t){case"focusin":return Rt=Lt(Rt,e,t,n,r,a),!0;case"dragenter":return Ot=Lt(Ot,e,t,n,r,a),!0;case"mouseover":return zt=Lt(zt,e,t,n,r,a),!0;case"pointerover":var i=a.pointerId;return Tt.set(i,Lt(Tt.get(i)||null,e,t,n,r,a)),!0;case"gotpointercapture":return i=a.pointerId,At.set(i,Lt(At.get(i)||null,e,t,n,r,a)),!0}return!1}(a,e,t,n,r))r.stopPropagation();else if(Nt(e,r),4&t&&-1<Mt.indexOf(e)){for(;null!==a;){var i=ba(a);if(null!==i&&kt(i),null===(i=Zt(e,t,n,r))&&Wr(e,t,r,Qt,n),i===a)break;a=i}null!==a&&r.stopPropagation()}else Wr(e,t,r,null,n)}}var Qt=null;function Zt(e,t,n,r){if(Qt=null,null!==(e=ya(e=ke(r))))if(null===(t=Ve(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=He(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Qt=e,null}function Xt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Ke()){case Je:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Gt=null,Kt=null,Jt=null;function en(){if(Jt)return Jt;var e,t,n=Kt,r=n.length,a="value"in Gt?Gt.value:Gt.textContent,i=a.length;for(e=0;e<r&&n[e]===a[e];e++);var o=r-e;for(t=1;t<=o&&n[r-t]===a[i-t];t++);return Jt=a.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function an(e){function t(t,n,r,a,i){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=a,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(a):a[o]);return this.isDefaultPrevented=(null!=a.defaultPrevented?a.defaultPrevented:!1===a.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return D(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var on,ln,sn,un={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cn=an(un),fn=D({},un,{view:0,detail:0}),dn=an(fn),hn=D({},fn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:_n,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==sn&&(sn&&"mousemove"===e.type?(on=e.screenX-sn.screenX,ln=e.screenY-sn.screenY):ln=on=0,sn=e),on)},movementY:function(e){return"movementY"in e?e.movementY:ln}}),pn=an(hn),mn=an(D({},hn,{dataTransfer:0})),vn=an(D({},fn,{relatedTarget:0})),gn=an(D({},un,{animationName:0,elapsedTime:0,pseudoElement:0})),yn=D({},un,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bn=an(yn),wn=an(D({},un,{data:0})),kn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},xn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Sn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Pn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Sn[e])&&!!t[e]}function _n(){return Pn}var En=D({},fn,{key:function(e){if(e.key){var t=kn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?xn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:_n,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Cn=an(En),Rn=an(D({},hn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),On=an(D({},fn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:_n})),zn=an(D({},un,{propertyName:0,elapsedTime:0,pseudoElement:0})),Tn=D({},hn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),An=an(Tn),In=[9,13,27,32],Mn=c&&"CompositionEvent"in window,Nn=null;c&&"documentMode"in document&&(Nn=document.documentMode);var Ln=c&&"TextEvent"in window&&!Nn,Dn=c&&(!Mn||Nn&&8<Nn&&11>=Nn),Fn=String.fromCharCode(32),Bn=!1;function jn(e,t){switch(e){case"keyup":return-1!==In.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Un(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var Vn=!1;var Hn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Wn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Hn[e.type]:"textarea"===t}function Yn(e,t,n,r){Ee(r),0<(t=$r(t,"onChange")).length&&(n=new cn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var $n=null,qn=null;function Qn(e){Fr(e,0)}function Zn(e){if(q(wa(e)))return e}function Xn(e,t){if("change"===e)return t}var Gn=!1;if(c){var Kn;if(c){var Jn="oninput"in document;if(!Jn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Jn="function"===typeof er.oninput}Kn=Jn}else Kn=!1;Gn=Kn&&(!document.documentMode||9<document.documentMode)}function tr(){$n&&($n.detachEvent("onpropertychange",nr),qn=$n=null)}function nr(e){if("value"===e.propertyName&&Zn(qn)){var t=[];Yn(t,qn,e,ke(e)),Te(Qn,t)}}function rr(e,t,n){"focusin"===e?(tr(),qn=n,($n=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function ar(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Zn(qn)}function ir(e,t){if("click"===e)return Zn(t)}function or(e,t){if("input"===e||"change"===e)return Zn(t)}var lr="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t};function sr(e,t){if(lr(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var a=n[r];if(!f.call(t,a)||!lr(e[a],t[a]))return!1}return!0}function ur(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cr(e,t){var n,r=ur(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=ur(r)}}function fr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?fr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function dr(){for(var e=window,t=Q();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=Q((e=t.contentWindow).document)}return t}function hr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function pr(e){var t=dr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&fr(n.ownerDocument.documentElement,n)){if(null!==r&&hr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var a=n.textContent.length,i=Math.min(r.start,a);r=void 0===r.end?i:Math.min(r.end,a),!e.extend&&i>r&&(a=r,r=i,i=a),a=cr(n,i);var o=cr(n,r);a&&o&&(1!==e.rangeCount||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&((t=t.createRange()).setStart(a.node,a.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"===typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var mr=c&&"documentMode"in document&&11>=document.documentMode,vr=null,gr=null,yr=null,br=!1;function wr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;br||null==vr||vr!==Q(r)||("selectionStart"in(r=vr)&&hr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},yr&&sr(yr,r)||(yr=r,0<(r=$r(gr,"onSelect")).length&&(t=new cn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=vr)))}function kr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var xr={animationend:kr("Animation","AnimationEnd"),animationiteration:kr("Animation","AnimationIteration"),animationstart:kr("Animation","AnimationStart"),transitionend:kr("Transition","TransitionEnd")},Sr={},Pr={};function _r(e){if(Sr[e])return Sr[e];if(!xr[e])return e;var t,n=xr[e];for(t in n)if(n.hasOwnProperty(t)&&t in Pr)return Sr[e]=n[t];return e}c&&(Pr=document.createElement("div").style,"AnimationEvent"in window||(delete xr.animationend.animation,delete xr.animationiteration.animation,delete xr.animationstart.animation),"TransitionEvent"in window||delete xr.transitionend.transition);var Er=_r("animationend"),Cr=_r("animationiteration"),Rr=_r("animationstart"),Or=_r("transitionend"),zr=new Map,Tr="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Ar(e,t){zr.set(e,t),s(t,[e])}for(var Ir=0;Ir<Tr.length;Ir++){var Mr=Tr[Ir];Ar(Mr.toLowerCase(),"on"+(Mr[0].toUpperCase()+Mr.slice(1)))}Ar(Er,"onAnimationEnd"),Ar(Cr,"onAnimationIteration"),Ar(Rr,"onAnimationStart"),Ar("dblclick","onDoubleClick"),Ar("focusin","onFocus"),Ar("focusout","onBlur"),Ar(Or,"onTransitionEnd"),u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),s("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),s("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),s("onBeforeInput",["compositionend","keypress","textInput","paste"]),s("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Nr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Lr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Nr));function Dr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,a,o,l,s,u){if(Ue.apply(this,arguments),Le){if(!Le)throw Error(i(198));var c=De;Le=!1,De=null,Fe||(Fe=!0,Be=c)}}(r,t,void 0,e),e.currentTarget=null}function Fr(e,t){t=0!==(4&t);for(var n=0;n<e.length;n++){var r=e[n],a=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var o=r.length-1;0<=o;o--){var l=r[o],s=l.instance,u=l.currentTarget;if(l=l.listener,s!==i&&a.isPropagationStopped())break e;Dr(a,l,u),i=s}else for(o=0;o<r.length;o++){if(s=(l=r[o]).instance,u=l.currentTarget,l=l.listener,s!==i&&a.isPropagationStopped())break e;Dr(a,l,u),i=s}}}if(Fe)throw e=Be,Fe=!1,Be=null,e}function Br(e,t){var n=t[ma];void 0===n&&(n=t[ma]=new Set);var r=e+"__bubble";n.has(r)||(Hr(t,e,2,!1),n.add(r))}function jr(e,t,n){var r=0;t&&(r|=4),Hr(n,e,r,t)}var Ur="_reactListening"+Math.random().toString(36).slice(2);function Vr(e){if(!e[Ur]){e[Ur]=!0,o.forEach((function(t){"selectionchange"!==t&&(Lr.has(t)||jr(t,!1,e),jr(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Ur]||(t[Ur]=!0,jr("selectionchange",!1,t))}}function Hr(e,t,n,r){switch(Xt(t)){case 1:var a=Yt;break;case 4:a=$t;break;default:a=qt}n=a.bind(null,t,n,e),a=void 0,!Ie||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(a=!0),r?void 0!==a?e.addEventListener(t,n,{capture:!0,passive:a}):e.addEventListener(t,n,!0):void 0!==a?e.addEventListener(t,n,{passive:a}):e.addEventListener(t,n,!1)}function Wr(e,t,n,r,a){var i=r;if(0===(1&t)&&0===(2&t)&&null!==r)e:for(;;){if(null===r)return;var o=r.tag;if(3===o||4===o){var l=r.stateNode.containerInfo;if(l===a||8===l.nodeType&&l.parentNode===a)break;if(4===o)for(o=r.return;null!==o;){var s=o.tag;if((3===s||4===s)&&((s=o.stateNode.containerInfo)===a||8===s.nodeType&&s.parentNode===a))return;o=o.return}for(;null!==l;){if(null===(o=ya(l)))return;if(5===(s=o.tag)||6===s){r=i=o;continue e}l=l.parentNode}}r=r.return}Te((function(){var r=i,a=ke(n),o=[];e:{var l=zr.get(e);if(void 0!==l){var s=cn,u=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":s=Cn;break;case"focusin":u="focus",s=vn;break;case"focusout":u="blur",s=vn;break;case"beforeblur":case"afterblur":s=vn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":s=pn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":s=mn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":s=On;break;case Er:case Cr:case Rr:s=gn;break;case Or:s=zn;break;case"scroll":s=dn;break;case"wheel":s=An;break;case"copy":case"cut":case"paste":s=bn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":s=Rn}var c=0!==(4&t),f=!c&&"scroll"===e,d=c?null!==l?l+"Capture":null:l;c=[];for(var h,p=r;null!==p;){var m=(h=p).stateNode;if(5===h.tag&&null!==m&&(h=m,null!==d&&(null!=(m=Ae(p,d))&&c.push(Yr(p,m,h)))),f)break;p=p.return}0<c.length&&(l=new s(l,u,null,n,a),o.push({event:l,listeners:c}))}}if(0===(7&t)){if(s="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||n===we||!(u=n.relatedTarget||n.fromElement)||!ya(u)&&!u[pa])&&(s||l)&&(l=a.window===a?a:(l=a.ownerDocument)?l.defaultView||l.parentWindow:window,s?(s=r,null!==(u=(u=n.relatedTarget||n.toElement)?ya(u):null)&&(u!==(f=Ve(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(s=null,u=r),s!==u)){if(c=pn,m="onMouseLeave",d="onMouseEnter",p="mouse","pointerout"!==e&&"pointerover"!==e||(c=Rn,m="onPointerLeave",d="onPointerEnter",p="pointer"),f=null==s?l:wa(s),h=null==u?l:wa(u),(l=new c(m,p+"leave",s,n,a)).target=f,l.relatedTarget=h,m=null,ya(a)===r&&((c=new c(d,p+"enter",u,n,a)).target=h,c.relatedTarget=f,m=c),f=m,s&&u)e:{for(d=u,p=0,h=c=s;h;h=qr(h))p++;for(h=0,m=d;m;m=qr(m))h++;for(;0<p-h;)c=qr(c),p--;for(;0<h-p;)d=qr(d),h--;for(;p--;){if(c===d||null!==d&&c===d.alternate)break e;c=qr(c),d=qr(d)}c=null}else c=null;null!==s&&Qr(o,l,s,c,!1),null!==u&&null!==f&&Qr(o,f,u,c,!0)}if("select"===(s=(l=r?wa(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===s&&"file"===l.type)var v=Xn;else if(Wn(l))if(Gn)v=or;else{v=ar;var g=rr}else(s=l.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===l.type||"radio"===l.type)&&(v=ir);switch(v&&(v=v(e,r))?Yn(o,v,n,a):(g&&g(e,l,r),"focusout"===e&&(g=l._wrapperState)&&g.controlled&&"number"===l.type&&ee(l,"number",l.value)),g=r?wa(r):window,e){case"focusin":(Wn(g)||"true"===g.contentEditable)&&(vr=g,gr=r,yr=null);break;case"focusout":yr=gr=vr=null;break;case"mousedown":br=!0;break;case"contextmenu":case"mouseup":case"dragend":br=!1,wr(o,n,a);break;case"selectionchange":if(mr)break;case"keydown":case"keyup":wr(o,n,a)}var y;if(Mn)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Vn?jn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Dn&&"ko"!==n.locale&&(Vn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Vn&&(y=en()):(Kt="value"in(Gt=a)?Gt.value:Gt.textContent,Vn=!0)),0<(g=$r(r,b)).length&&(b=new wn(b,e,null,n,a),o.push({event:b,listeners:g}),y?b.data=y:null!==(y=Un(n))&&(b.data=y))),(y=Ln?function(e,t){switch(e){case"compositionend":return Un(t);case"keypress":return 32!==t.which?null:(Bn=!0,Fn);case"textInput":return(e=t.data)===Fn&&Bn?null:e;default:return null}}(e,n):function(e,t){if(Vn)return"compositionend"===e||!Mn&&jn(e,t)?(e=en(),Jt=Kt=Gt=null,Vn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Dn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=$r(r,"onBeforeInput")).length&&(a=new wn("onBeforeInput","beforeinput",null,n,a),o.push({event:a,listeners:r}),a.data=y))}Fr(o,t)}))}function Yr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function $r(e,t){for(var n=t+"Capture",r=[];null!==e;){var a=e,i=a.stateNode;5===a.tag&&null!==i&&(a=i,null!=(i=Ae(e,n))&&r.unshift(Yr(e,i,a)),null!=(i=Ae(e,t))&&r.push(Yr(e,i,a))),e=e.return}return r}function qr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Qr(e,t,n,r,a){for(var i=t._reactName,o=[];null!==n&&n!==r;){var l=n,s=l.alternate,u=l.stateNode;if(null!==s&&s===r)break;5===l.tag&&null!==u&&(l=u,a?null!=(s=Ae(n,i))&&o.unshift(Yr(n,s,l)):a||null!=(s=Ae(n,i))&&o.push(Yr(n,s,l))),n=n.return}0!==o.length&&e.push({event:t,listeners:o})}var Zr=/\r\n?/g,Xr=/\u0000|\uFFFD/g;function Gr(e){return("string"===typeof e?e:""+e).replace(Zr,"\n").replace(Xr,"")}function Kr(e,t,n){if(t=Gr(t),Gr(e)!==t&&n)throw Error(i(425))}function Jr(){}var ea=null,ta=null;function na(e,t){return"textarea"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ra="function"===typeof setTimeout?setTimeout:void 0,aa="function"===typeof clearTimeout?clearTimeout:void 0,ia="function"===typeof Promise?Promise:void 0,oa="function"===typeof queueMicrotask?queueMicrotask:"undefined"!==typeof ia?function(e){return ia.resolve(null).then(e).catch(la)}:ra;function la(e){setTimeout((function(){throw e}))}function sa(e,t){var n=t,r=0;do{var a=n.nextSibling;if(e.removeChild(n),a&&8===a.nodeType)if("/$"===(n=a.data)){if(0===r)return e.removeChild(a),void Vt(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=a}while(n);Vt(t)}function ua(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function ca(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var fa=Math.random().toString(36).slice(2),da="__reactFiber$"+fa,ha="__reactProps$"+fa,pa="__reactContainer$"+fa,ma="__reactEvents$"+fa,va="__reactListeners$"+fa,ga="__reactHandles$"+fa;function ya(e){var t=e[da];if(t)return t;for(var n=e.parentNode;n;){if(t=n[pa]||n[da]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=ca(e);null!==e;){if(n=e[da])return n;e=ca(e)}return t}n=(e=n).parentNode}return null}function ba(e){return!(e=e[da]||e[pa])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function wa(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(i(33))}function ka(e){return e[ha]||null}var xa=[],Sa=-1;function Pa(e){return{current:e}}function _a(e){0>Sa||(e.current=xa[Sa],xa[Sa]=null,Sa--)}function Ea(e,t){Sa++,xa[Sa]=e.current,e.current=t}var Ca={},Ra=Pa(Ca),Oa=Pa(!1),za=Ca;function Ta(e,t){var n=e.type.contextTypes;if(!n)return Ca;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var a,i={};for(a in n)i[a]=t[a];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Aa(e){return null!==(e=e.childContextTypes)&&void 0!==e}function Ia(){_a(Oa),_a(Ra)}function Ma(e,t,n){if(Ra.current!==Ca)throw Error(i(168));Ea(Ra,t),Ea(Oa,n)}function Na(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var a in r=r.getChildContext())if(!(a in t))throw Error(i(108,H(e)||"Unknown",a));return D({},n,r)}function La(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ca,za=Ra.current,Ea(Ra,e),Ea(Oa,Oa.current),!0}function Da(e,t,n){var r=e.stateNode;if(!r)throw Error(i(169));n?(e=Na(e,t,za),r.__reactInternalMemoizedMergedChildContext=e,_a(Oa),_a(Ra),Ea(Ra,e)):_a(Oa),Ea(Oa,n)}var Fa=null,Ba=!1,ja=!1;function Ua(e){null===Fa?Fa=[e]:Fa.push(e)}function Va(){if(!ja&&null!==Fa){ja=!0;var e=0,t=bt;try{var n=Fa;for(bt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Fa=null,Ba=!1}catch(a){throw null!==Fa&&(Fa=Fa.slice(e+1)),qe(Je,Va),a}finally{bt=t,ja=!1}}return null}var Ha=[],Wa=0,Ya=null,$a=0,qa=[],Qa=0,Za=null,Xa=1,Ga="";function Ka(e,t){Ha[Wa++]=$a,Ha[Wa++]=Ya,Ya=e,$a=t}function Ja(e,t,n){qa[Qa++]=Xa,qa[Qa++]=Ga,qa[Qa++]=Za,Za=e;var r=Xa;e=Ga;var a=32-ot(r)-1;r&=~(1<<a),n+=1;var i=32-ot(t)+a;if(30<i){var o=a-a%5;i=(r&(1<<o)-1).toString(32),r>>=o,a-=o,Xa=1<<32-ot(t)+a|n<<a|r,Ga=i+e}else Xa=1<<i|n<<a|r,Ga=e}function ei(e){null!==e.return&&(Ka(e,1),Ja(e,1,0))}function ti(e){for(;e===Ya;)Ya=Ha[--Wa],Ha[Wa]=null,$a=Ha[--Wa],Ha[Wa]=null;for(;e===Za;)Za=qa[--Qa],qa[Qa]=null,Ga=qa[--Qa],qa[Qa]=null,Xa=qa[--Qa],qa[Qa]=null}var ni=null,ri=null,ai=!1,ii=null;function oi(e,t){var n=Au(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function li(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,ni=e,ri=ua(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ni=e,ri=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Za?{id:Xa,overflow:Ga}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Au(18,null,null,0)).stateNode=t,n.return=e,e.child=n,ni=e,ri=null,!0);default:return!1}}function si(e){return 0!==(1&e.mode)&&0===(128&e.flags)}function ui(e){if(ai){var t=ri;if(t){var n=t;if(!li(e,t)){if(si(e))throw Error(i(418));t=ua(n.nextSibling);var r=ni;t&&li(e,t)?oi(r,n):(e.flags=-4097&e.flags|2,ai=!1,ni=e)}}else{if(si(e))throw Error(i(418));e.flags=-4097&e.flags|2,ai=!1,ni=e}}}function ci(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ni=e}function fi(e){if(e!==ni)return!1;if(!ai)return ci(e),ai=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!na(e.type,e.memoizedProps)),t&&(t=ri)){if(si(e))throw di(),Error(i(418));for(;t;)oi(e,t),t=ua(t.nextSibling)}if(ci(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(i(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){ri=ua(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}ri=null}}else ri=ni?ua(e.stateNode.nextSibling):null;return!0}function di(){for(var e=ri;e;)e=ua(e.nextSibling)}function hi(){ri=ni=null,ai=!1}function pi(e){null===ii?ii=[e]:ii.push(e)}var mi=w.ReactCurrentBatchConfig;function vi(e,t){if(e&&e.defaultProps){for(var n in t=D({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var gi=Pa(null),yi=null,bi=null,wi=null;function ki(){wi=bi=yi=null}function xi(e){var t=gi.current;_a(gi),e._currentValue=t}function Si(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Pi(e,t){yi=e,wi=bi=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(wl=!0),e.firstContext=null)}function _i(e){var t=e._currentValue;if(wi!==e)if(e={context:e,memoizedValue:t,next:null},null===bi){if(null===yi)throw Error(i(308));bi=e,yi.dependencies={lanes:0,firstContext:e}}else bi=bi.next=e;return t}var Ei=null;function Ci(e){null===Ei?Ei=[e]:Ei.push(e)}function Ri(e,t,n,r){var a=t.interleaved;return null===a?(n.next=n,Ci(t)):(n.next=a.next,a.next=n),t.interleaved=n,Oi(e,r)}function Oi(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var zi=!1;function Ti(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ai(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ii(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Mi(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!==(2&Os)){var a=r.pending;return null===a?t.next=t:(t.next=a.next,a.next=t),r.pending=t,Oi(e,n)}return null===(a=r.interleaved)?(t.next=t,Ci(r)):(t.next=a.next,a.next=t),r.interleaved=t,Oi(e,n)}function Ni(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!==(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}function Li(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var a=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?a=i=o:i=i.next=o,n=n.next}while(null!==n);null===i?a=i=t:i=i.next=t}else a=i=t;return n={baseState:r.baseState,firstBaseUpdate:a,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Di(e,t,n,r){var a=e.updateQueue;zi=!1;var i=a.firstBaseUpdate,o=a.lastBaseUpdate,l=a.shared.pending;if(null!==l){a.shared.pending=null;var s=l,u=s.next;s.next=null,null===o?i=u:o.next=u,o=s;var c=e.alternate;null!==c&&((l=(c=c.updateQueue).lastBaseUpdate)!==o&&(null===l?c.firstBaseUpdate=u:l.next=u,c.lastBaseUpdate=s))}if(null!==i){var f=a.baseState;for(o=0,c=u=s=null,l=i;;){var d=l.lane,h=l.eventTime;if((r&d)===d){null!==c&&(c=c.next={eventTime:h,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var p=e,m=l;switch(d=t,h=n,m.tag){case 1:if("function"===typeof(p=m.payload)){f=p.call(h,f,d);break e}f=p;break e;case 3:p.flags=-65537&p.flags|128;case 0:if(null===(d="function"===typeof(p=m.payload)?p.call(h,f,d):p)||void 0===d)break e;f=D({},f,d);break e;case 2:zi=!0}}null!==l.callback&&0!==l.lane&&(e.flags|=64,null===(d=a.effects)?a.effects=[l]:d.push(l))}else h={eventTime:h,lane:d,tag:l.tag,payload:l.payload,callback:l.callback,next:null},null===c?(u=c=h,s=f):c=c.next=h,o|=d;if(null===(l=l.next)){if(null===(l=a.shared.pending))break;l=(d=l).next,d.next=null,a.lastBaseUpdate=d,a.shared.pending=null}}if(null===c&&(s=f),a.baseState=s,a.firstBaseUpdate=u,a.lastBaseUpdate=c,null!==(t=a.shared.interleaved)){a=t;do{o|=a.lane,a=a.next}while(a!==t)}else null===i&&(a.shared.lanes=0);Ds|=o,e.lanes=o,e.memoizedState=f}}function Fi(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],a=r.callback;if(null!==a){if(r.callback=null,r=n,"function"!==typeof a)throw Error(i(191,a));a.call(r)}}}var Bi=(new r.Component).refs;function ji(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:D({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var Ui={isMounted:function(e){return!!(e=e._reactInternals)&&Ve(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=tu(),a=nu(e),i=Ii(r,a);i.payload=t,void 0!==n&&null!==n&&(i.callback=n),null!==(t=Mi(e,i,a))&&(ru(t,e,a,r),Ni(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=tu(),a=nu(e),i=Ii(r,a);i.tag=1,i.payload=t,void 0!==n&&null!==n&&(i.callback=n),null!==(t=Mi(e,i,a))&&(ru(t,e,a,r),Ni(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=tu(),r=nu(e),a=Ii(n,r);a.tag=2,void 0!==t&&null!==t&&(a.callback=t),null!==(t=Mi(e,a,r))&&(ru(t,e,r,n),Ni(t,e,r))}};function Vi(e,t,n,r,a,i,o){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,o):!t.prototype||!t.prototype.isPureReactComponent||(!sr(n,r)||!sr(a,i))}function Hi(e,t,n){var r=!1,a=Ca,i=t.contextType;return"object"===typeof i&&null!==i?i=_i(i):(a=Aa(t)?za:Ra.current,i=(r=null!==(r=t.contextTypes)&&void 0!==r)?Ta(e,a):Ca),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Ui,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=a,e.__reactInternalMemoizedMaskedChildContext=i),t}function Wi(e,t,n,r){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Ui.enqueueReplaceState(t,t.state,null)}function Yi(e,t,n,r){var a=e.stateNode;a.props=n,a.state=e.memoizedState,a.refs=Bi,Ti(e);var i=t.contextType;"object"===typeof i&&null!==i?a.context=_i(i):(i=Aa(t)?za:Ra.current,a.context=Ta(e,i)),a.state=e.memoizedState,"function"===typeof(i=t.getDerivedStateFromProps)&&(ji(e,t,i,n),a.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof a.getSnapshotBeforeUpdate||"function"!==typeof a.UNSAFE_componentWillMount&&"function"!==typeof a.componentWillMount||(t=a.state,"function"===typeof a.componentWillMount&&a.componentWillMount(),"function"===typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount(),t!==a.state&&Ui.enqueueReplaceState(a,a.state,null),Di(e,n,a,r),a.state=e.memoizedState),"function"===typeof a.componentDidMount&&(e.flags|=4194308)}function $i(e,t,n){if(null!==(e=n.ref)&&"function"!==typeof e&&"object"!==typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(i(309));var r=n.stateNode}if(!r)throw Error(i(147,e));var a=r,o=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===o?t.ref:(t=function(e){var t=a.refs;t===Bi&&(t=a.refs={}),null===e?delete t[o]:t[o]=e},t._stringRef=o,t)}if("string"!==typeof e)throw Error(i(284));if(!n._owner)throw Error(i(290,e))}return e}function qi(e,t){throw e=Object.prototype.toString.call(t),Error(i(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Qi(e){return(0,e._init)(e._payload)}function Zi(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function a(e,t){return(e=Mu(e,t)).index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function l(t){return e&&null===t.alternate&&(t.flags|=2),t}function s(e,t,n,r){return null===t||6!==t.tag?((t=Fu(n,e.mode,r)).return=e,t):((t=a(t,n)).return=e,t)}function u(e,t,n,r){var i=n.type;return i===S?f(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===i||"object"===typeof i&&null!==i&&i.$$typeof===A&&Qi(i)===t.type)?((r=a(t,n.props)).ref=$i(e,t,n),r.return=e,r):((r=Nu(n.type,n.key,n.props,null,e.mode,r)).ref=$i(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Bu(n,e.mode,r)).return=e,t):((t=a(t,n.children||[])).return=e,t)}function f(e,t,n,r,i){return null===t||7!==t.tag?((t=Lu(n,e.mode,r,i)).return=e,t):((t=a(t,n)).return=e,t)}function d(e,t,n){if("string"===typeof t&&""!==t||"number"===typeof t)return(t=Fu(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case k:return(n=Nu(t.type,t.key,t.props,null,e.mode,n)).ref=$i(e,null,t),n.return=e,n;case x:return(t=Bu(t,e.mode,n)).return=e,t;case A:return d(e,(0,t._init)(t._payload),n)}if(te(t)||N(t))return(t=Lu(t,e.mode,n,null)).return=e,t;qi(e,t)}return null}function h(e,t,n,r){var a=null!==t?t.key:null;if("string"===typeof n&&""!==n||"number"===typeof n)return null!==a?null:s(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case k:return n.key===a?u(e,t,n,r):null;case x:return n.key===a?c(e,t,n,r):null;case A:return h(e,t,(a=n._init)(n._payload),r)}if(te(n)||N(n))return null!==a?null:f(e,t,n,r,null);qi(e,n)}return null}function p(e,t,n,r,a){if("string"===typeof r&&""!==r||"number"===typeof r)return s(t,e=e.get(n)||null,""+r,a);if("object"===typeof r&&null!==r){switch(r.$$typeof){case k:return u(t,e=e.get(null===r.key?n:r.key)||null,r,a);case x:return c(t,e=e.get(null===r.key?n:r.key)||null,r,a);case A:return p(e,t,n,(0,r._init)(r._payload),a)}if(te(r)||N(r))return f(t,e=e.get(n)||null,r,a,null);qi(t,r)}return null}function m(a,i,l,s){for(var u=null,c=null,f=i,m=i=0,v=null;null!==f&&m<l.length;m++){f.index>m?(v=f,f=null):v=f.sibling;var g=h(a,f,l[m],s);if(null===g){null===f&&(f=v);break}e&&f&&null===g.alternate&&t(a,f),i=o(g,i,m),null===c?u=g:c.sibling=g,c=g,f=v}if(m===l.length)return n(a,f),ai&&Ka(a,m),u;if(null===f){for(;m<l.length;m++)null!==(f=d(a,l[m],s))&&(i=o(f,i,m),null===c?u=f:c.sibling=f,c=f);return ai&&Ka(a,m),u}for(f=r(a,f);m<l.length;m++)null!==(v=p(f,a,m,l[m],s))&&(e&&null!==v.alternate&&f.delete(null===v.key?m:v.key),i=o(v,i,m),null===c?u=v:c.sibling=v,c=v);return e&&f.forEach((function(e){return t(a,e)})),ai&&Ka(a,m),u}function v(a,l,s,u){var c=N(s);if("function"!==typeof c)throw Error(i(150));if(null==(s=c.call(s)))throw Error(i(151));for(var f=c=null,m=l,v=l=0,g=null,y=s.next();null!==m&&!y.done;v++,y=s.next()){m.index>v?(g=m,m=null):g=m.sibling;var b=h(a,m,y.value,u);if(null===b){null===m&&(m=g);break}e&&m&&null===b.alternate&&t(a,m),l=o(b,l,v),null===f?c=b:f.sibling=b,f=b,m=g}if(y.done)return n(a,m),ai&&Ka(a,v),c;if(null===m){for(;!y.done;v++,y=s.next())null!==(y=d(a,y.value,u))&&(l=o(y,l,v),null===f?c=y:f.sibling=y,f=y);return ai&&Ka(a,v),c}for(m=r(a,m);!y.done;v++,y=s.next())null!==(y=p(m,a,v,y.value,u))&&(e&&null!==y.alternate&&m.delete(null===y.key?v:y.key),l=o(y,l,v),null===f?c=y:f.sibling=y,f=y);return e&&m.forEach((function(e){return t(a,e)})),ai&&Ka(a,v),c}return function e(r,i,o,s){if("object"===typeof o&&null!==o&&o.type===S&&null===o.key&&(o=o.props.children),"object"===typeof o&&null!==o){switch(o.$$typeof){case k:e:{for(var u=o.key,c=i;null!==c;){if(c.key===u){if((u=o.type)===S){if(7===c.tag){n(r,c.sibling),(i=a(c,o.props.children)).return=r,r=i;break e}}else if(c.elementType===u||"object"===typeof u&&null!==u&&u.$$typeof===A&&Qi(u)===c.type){n(r,c.sibling),(i=a(c,o.props)).ref=$i(r,c,o),i.return=r,r=i;break e}n(r,c);break}t(r,c),c=c.sibling}o.type===S?((i=Lu(o.props.children,r.mode,s,o.key)).return=r,r=i):((s=Nu(o.type,o.key,o.props,null,r.mode,s)).ref=$i(r,i,o),s.return=r,r=s)}return l(r);case x:e:{for(c=o.key;null!==i;){if(i.key===c){if(4===i.tag&&i.stateNode.containerInfo===o.containerInfo&&i.stateNode.implementation===o.implementation){n(r,i.sibling),(i=a(i,o.children||[])).return=r,r=i;break e}n(r,i);break}t(r,i),i=i.sibling}(i=Bu(o,r.mode,s)).return=r,r=i}return l(r);case A:return e(r,i,(c=o._init)(o._payload),s)}if(te(o))return m(r,i,o,s);if(N(o))return v(r,i,o,s);qi(r,o)}return"string"===typeof o&&""!==o||"number"===typeof o?(o=""+o,null!==i&&6===i.tag?(n(r,i.sibling),(i=a(i,o)).return=r,r=i):(n(r,i),(i=Fu(o,r.mode,s)).return=r,r=i),l(r)):n(r,i)}}var Xi=Zi(!0),Gi=Zi(!1),Ki={},Ji=Pa(Ki),eo=Pa(Ki),to=Pa(Ki);function no(e){if(e===Ki)throw Error(i(174));return e}function ro(e,t){switch(Ea(to,t),Ea(eo,e),Ea(Ji,Ki),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:se(null,"");break;default:t=se(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}_a(Ji),Ea(Ji,t)}function ao(){_a(Ji),_a(eo),_a(to)}function io(e){no(to.current);var t=no(Ji.current),n=se(t,e.type);t!==n&&(Ea(eo,e),Ea(Ji,n))}function oo(e){eo.current===e&&(_a(Ji),_a(eo))}var lo=Pa(0);function so(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var uo=[];function co(){for(var e=0;e<uo.length;e++)uo[e]._workInProgressVersionPrimary=null;uo.length=0}var fo=w.ReactCurrentDispatcher,ho=w.ReactCurrentBatchConfig,po=0,mo=null,vo=null,go=null,yo=!1,bo=!1,wo=0,ko=0;function xo(){throw Error(i(321))}function So(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!lr(e[n],t[n]))return!1;return!0}function Po(e,t,n,r,a,o){if(po=o,mo=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,fo.current=null===e||null===e.memoizedState?ll:sl,e=n(r,a),bo){o=0;do{if(bo=!1,wo=0,25<=o)throw Error(i(301));o+=1,go=vo=null,t.updateQueue=null,fo.current=ul,e=n(r,a)}while(bo)}if(fo.current=ol,t=null!==vo&&null!==vo.next,po=0,go=vo=mo=null,yo=!1,t)throw Error(i(300));return e}function _o(){var e=0!==wo;return wo=0,e}function Eo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===go?mo.memoizedState=go=e:go=go.next=e,go}function Co(){if(null===vo){var e=mo.alternate;e=null!==e?e.memoizedState:null}else e=vo.next;var t=null===go?mo.memoizedState:go.next;if(null!==t)go=t,vo=e;else{if(null===e)throw Error(i(310));e={memoizedState:(vo=e).memoizedState,baseState:vo.baseState,baseQueue:vo.baseQueue,queue:vo.queue,next:null},null===go?mo.memoizedState=go=e:go=go.next=e}return go}function Ro(e,t){return"function"===typeof t?t(e):t}function Oo(e){var t=Co(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=vo,a=r.baseQueue,o=n.pending;if(null!==o){if(null!==a){var l=a.next;a.next=o.next,o.next=l}r.baseQueue=a=o,n.pending=null}if(null!==a){o=a.next,r=r.baseState;var s=l=null,u=null,c=o;do{var f=c.lane;if((po&f)===f)null!==u&&(u=u.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var d={lane:f,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===u?(s=u=d,l=r):u=u.next=d,mo.lanes|=f,Ds|=f}c=c.next}while(null!==c&&c!==o);null===u?l=r:u.next=s,lr(r,t.memoizedState)||(wl=!0),t.memoizedState=r,t.baseState=l,t.baseQueue=u,n.lastRenderedState=r}if(null!==(e=n.interleaved)){a=e;do{o=a.lane,mo.lanes|=o,Ds|=o,a=a.next}while(a!==e)}else null===a&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function zo(e){var t=Co(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,o=t.memoizedState;if(null!==a){n.pending=null;var l=a=a.next;do{o=e(o,l.action),l=l.next}while(l!==a);lr(o,t.memoizedState)||(wl=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function To(){}function Ao(e,t){var n=mo,r=Co(),a=t(),o=!lr(r.memoizedState,a);if(o&&(r.memoizedState=a,wl=!0),r=r.queue,Wo(No.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||null!==go&&1&go.memoizedState.tag){if(n.flags|=2048,Bo(9,Mo.bind(null,n,r,a,t),void 0,null),null===zs)throw Error(i(349));0!==(30&po)||Io(n,t,a)}return a}function Io(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=mo.updateQueue)?(t={lastEffect:null,stores:null},mo.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Mo(e,t,n,r){t.value=n,t.getSnapshot=r,Lo(t)&&Do(e)}function No(e,t,n){return n((function(){Lo(t)&&Do(e)}))}function Lo(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!lr(e,n)}catch(r){return!0}}function Do(e){var t=Oi(e,1);null!==t&&ru(t,e,1,-1)}function Fo(e){var t=Eo();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ro,lastRenderedState:e},t.queue=e,e=e.dispatch=nl.bind(null,mo,e),[t.memoizedState,e]}function Bo(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=mo.updateQueue)?(t={lastEffect:null,stores:null},mo.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function jo(){return Co().memoizedState}function Uo(e,t,n,r){var a=Eo();mo.flags|=e,a.memoizedState=Bo(1|t,n,void 0,void 0===r?null:r)}function Vo(e,t,n,r){var a=Co();r=void 0===r?null:r;var i=void 0;if(null!==vo){var o=vo.memoizedState;if(i=o.destroy,null!==r&&So(r,o.deps))return void(a.memoizedState=Bo(t,n,i,r))}mo.flags|=e,a.memoizedState=Bo(1|t,n,i,r)}function Ho(e,t){return Uo(8390656,8,e,t)}function Wo(e,t){return Vo(2048,8,e,t)}function Yo(e,t){return Vo(4,2,e,t)}function $o(e,t){return Vo(4,4,e,t)}function qo(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Qo(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Vo(4,4,qo.bind(null,t,e),n)}function Zo(){}function Xo(e,t){var n=Co();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&So(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Go(e,t){var n=Co();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&So(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ko(e,t,n){return 0===(21&po)?(e.baseState&&(e.baseState=!1,wl=!0),e.memoizedState=n):(lr(n,t)||(n=mt(),mo.lanes|=n,Ds|=n,e.baseState=!0),t)}function Jo(e,t){var n=bt;bt=0!==n&&4>n?n:4,e(!0);var r=ho.transition;ho.transition={};try{e(!1),t()}finally{bt=n,ho.transition=r}}function el(){return Co().memoizedState}function tl(e,t,n){var r=nu(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},rl(e))al(t,n);else if(null!==(n=Ri(e,t,n,r))){ru(n,e,r,tu()),il(n,t,r)}}function nl(e,t,n){var r=nu(e),a={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(rl(e))al(t,a);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var o=t.lastRenderedState,l=i(o,n);if(a.hasEagerState=!0,a.eagerState=l,lr(l,o)){var s=t.interleaved;return null===s?(a.next=a,Ci(t)):(a.next=s.next,s.next=a),void(t.interleaved=a)}}catch(u){}null!==(n=Ri(e,t,a,r))&&(ru(n,e,r,a=tu()),il(n,t,r))}}function rl(e){var t=e.alternate;return e===mo||null!==t&&t===mo}function al(e,t){bo=yo=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function il(e,t,n){if(0!==(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}var ol={readContext:_i,useCallback:xo,useContext:xo,useEffect:xo,useImperativeHandle:xo,useInsertionEffect:xo,useLayoutEffect:xo,useMemo:xo,useReducer:xo,useRef:xo,useState:xo,useDebugValue:xo,useDeferredValue:xo,useTransition:xo,useMutableSource:xo,useSyncExternalStore:xo,useId:xo,unstable_isNewReconciler:!1},ll={readContext:_i,useCallback:function(e,t){return Eo().memoizedState=[e,void 0===t?null:t],e},useContext:_i,useEffect:Ho,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Uo(4194308,4,qo.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Uo(4194308,4,e,t)},useInsertionEffect:function(e,t){return Uo(4,2,e,t)},useMemo:function(e,t){var n=Eo();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Eo();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=tl.bind(null,mo,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Eo().memoizedState=e},useState:Fo,useDebugValue:Zo,useDeferredValue:function(e){return Eo().memoizedState=e},useTransition:function(){var e=Fo(!1),t=e[0];return e=Jo.bind(null,e[1]),Eo().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=mo,a=Eo();if(ai){if(void 0===n)throw Error(i(407));n=n()}else{if(n=t(),null===zs)throw Error(i(349));0!==(30&po)||Io(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,Ho(No.bind(null,r,o,e),[e]),r.flags|=2048,Bo(9,Mo.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Eo(),t=zs.identifierPrefix;if(ai){var n=Ga;t=":"+t+"R"+(n=(Xa&~(1<<32-ot(Xa)-1)).toString(32)+n),0<(n=wo++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=ko++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},sl={readContext:_i,useCallback:Xo,useContext:_i,useEffect:Wo,useImperativeHandle:Qo,useInsertionEffect:Yo,useLayoutEffect:$o,useMemo:Go,useReducer:Oo,useRef:jo,useState:function(){return Oo(Ro)},useDebugValue:Zo,useDeferredValue:function(e){return Ko(Co(),vo.memoizedState,e)},useTransition:function(){return[Oo(Ro)[0],Co().memoizedState]},useMutableSource:To,useSyncExternalStore:Ao,useId:el,unstable_isNewReconciler:!1},ul={readContext:_i,useCallback:Xo,useContext:_i,useEffect:Wo,useImperativeHandle:Qo,useInsertionEffect:Yo,useLayoutEffect:$o,useMemo:Go,useReducer:zo,useRef:jo,useState:function(){return zo(Ro)},useDebugValue:Zo,useDeferredValue:function(e){var t=Co();return null===vo?t.memoizedState=e:Ko(t,vo.memoizedState,e)},useTransition:function(){return[zo(Ro)[0],Co().memoizedState]},useMutableSource:To,useSyncExternalStore:Ao,useId:el,unstable_isNewReconciler:!1};function cl(e,t){try{var n="",r=t;do{n+=U(r),r=r.return}while(r);var a=n}catch(i){a="\nError generating stack: "+i.message+"\n"+i.stack}return{value:e,source:t,stack:a,digest:null}}function fl(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function dl(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}var hl="function"===typeof WeakMap?WeakMap:Map;function pl(e,t,n){(n=Ii(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ys||(Ys=!0,$s=r),dl(0,t)},n}function ml(e,t,n){(n=Ii(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var a=t.value;n.payload=function(){return r(a)},n.callback=function(){dl(0,t)}}var i=e.stateNode;return null!==i&&"function"===typeof i.componentDidCatch&&(n.callback=function(){dl(0,t),"function"!==typeof r&&(null===qs?qs=new Set([this]):qs.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function vl(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new hl;var a=new Set;r.set(t,a)}else void 0===(a=r.get(t))&&(a=new Set,r.set(t,a));a.has(n)||(a.add(n),e=Eu.bind(null,e,t,n),t.then(e,e))}function gl(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function yl(e,t,n,r,a){return 0===(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Ii(-1,1)).tag=2,Mi(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=a,e)}var bl=w.ReactCurrentOwner,wl=!1;function kl(e,t,n,r){t.child=null===e?Gi(t,null,n,r):Xi(t,e.child,n,r)}function xl(e,t,n,r,a){n=n.render;var i=t.ref;return Pi(t,a),r=Po(e,t,n,r,i,a),n=_o(),null===e||wl?(ai&&n&&ei(t),t.flags|=1,kl(e,t,r,a),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,Yl(e,t,a))}function Sl(e,t,n,r,a){if(null===e){var i=n.type;return"function"!==typeof i||Iu(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Nu(n.type,null,r,t,t.mode,a)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,Pl(e,t,i,r,a))}if(i=e.child,0===(e.lanes&a)){var o=i.memoizedProps;if((n=null!==(n=n.compare)?n:sr)(o,r)&&e.ref===t.ref)return Yl(e,t,a)}return t.flags|=1,(e=Mu(i,r)).ref=t.ref,e.return=t,t.child=e}function Pl(e,t,n,r,a){if(null!==e){var i=e.memoizedProps;if(sr(i,r)&&e.ref===t.ref){if(wl=!1,t.pendingProps=r=i,0===(e.lanes&a))return t.lanes=e.lanes,Yl(e,t,a);0!==(131072&e.flags)&&(wl=!0)}}return Cl(e,t,n,r,a)}function _l(e,t,n){var r=t.pendingProps,a=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0===(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ea(Ms,Is),Is|=n;else{if(0===(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ea(Ms,Is),Is|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,Ea(Ms,Is),Is|=r}else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,Ea(Ms,Is),Is|=r;return kl(e,t,a,n),t.child}function El(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Cl(e,t,n,r,a){var i=Aa(n)?za:Ra.current;return i=Ta(t,i),Pi(t,a),n=Po(e,t,n,r,i,a),r=_o(),null===e||wl?(ai&&r&&ei(t),t.flags|=1,kl(e,t,n,a),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,Yl(e,t,a))}function Rl(e,t,n,r,a){if(Aa(n)){var i=!0;La(t)}else i=!1;if(Pi(t,a),null===t.stateNode)Wl(e,t),Hi(t,n,r),Yi(t,n,r,a),r=!0;else if(null===e){var o=t.stateNode,l=t.memoizedProps;o.props=l;var s=o.context,u=n.contextType;"object"===typeof u&&null!==u?u=_i(u):u=Ta(t,u=Aa(n)?za:Ra.current);var c=n.getDerivedStateFromProps,f="function"===typeof c||"function"===typeof o.getSnapshotBeforeUpdate;f||"function"!==typeof o.UNSAFE_componentWillReceiveProps&&"function"!==typeof o.componentWillReceiveProps||(l!==r||s!==u)&&Wi(t,o,r,u),zi=!1;var d=t.memoizedState;o.state=d,Di(t,r,o,a),s=t.memoizedState,l!==r||d!==s||Oa.current||zi?("function"===typeof c&&(ji(t,n,c,r),s=t.memoizedState),(l=zi||Vi(t,n,l,r,d,s,u))?(f||"function"!==typeof o.UNSAFE_componentWillMount&&"function"!==typeof o.componentWillMount||("function"===typeof o.componentWillMount&&o.componentWillMount(),"function"===typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount()),"function"===typeof o.componentDidMount&&(t.flags|=4194308)):("function"===typeof o.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),o.props=r,o.state=s,o.context=u,r=l):("function"===typeof o.componentDidMount&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,Ai(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:vi(t.type,l),o.props=u,f=t.pendingProps,d=o.context,"object"===typeof(s=n.contextType)&&null!==s?s=_i(s):s=Ta(t,s=Aa(n)?za:Ra.current);var h=n.getDerivedStateFromProps;(c="function"===typeof h||"function"===typeof o.getSnapshotBeforeUpdate)||"function"!==typeof o.UNSAFE_componentWillReceiveProps&&"function"!==typeof o.componentWillReceiveProps||(l!==f||d!==s)&&Wi(t,o,r,s),zi=!1,d=t.memoizedState,o.state=d,Di(t,r,o,a);var p=t.memoizedState;l!==f||d!==p||Oa.current||zi?("function"===typeof h&&(ji(t,n,h,r),p=t.memoizedState),(u=zi||Vi(t,n,u,r,d,p,s)||!1)?(c||"function"!==typeof o.UNSAFE_componentWillUpdate&&"function"!==typeof o.componentWillUpdate||("function"===typeof o.componentWillUpdate&&o.componentWillUpdate(r,p,s),"function"===typeof o.UNSAFE_componentWillUpdate&&o.UNSAFE_componentWillUpdate(r,p,s)),"function"===typeof o.componentDidUpdate&&(t.flags|=4),"function"===typeof o.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!==typeof o.componentDidUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!==typeof o.getSnapshotBeforeUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),o.props=r,o.state=p,o.context=s,r=u):("function"!==typeof o.componentDidUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!==typeof o.getSnapshotBeforeUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return Ol(e,t,n,r,i,a)}function Ol(e,t,n,r,a,i){El(e,t);var o=0!==(128&t.flags);if(!r&&!o)return a&&Da(t,n,!1),Yl(e,t,i);r=t.stateNode,bl.current=t;var l=o&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&o?(t.child=Xi(t,e.child,null,i),t.child=Xi(t,null,l,i)):kl(e,t,l,i),t.memoizedState=r.state,a&&Da(t,n,!0),t.child}function zl(e){var t=e.stateNode;t.pendingContext?Ma(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Ma(0,t.context,!1),ro(e,t.containerInfo)}function Tl(e,t,n,r,a){return hi(),pi(a),t.flags|=256,kl(e,t,n,r),t.child}var Al,Il,Ml,Nl,Ll={dehydrated:null,treeContext:null,retryLane:0};function Dl(e){return{baseLanes:e,cachePool:null,transitions:null}}function Fl(e,t,n){var r,a=t.pendingProps,o=lo.current,l=!1,s=0!==(128&t.flags);if((r=s)||(r=(null===e||null!==e.memoizedState)&&0!==(2&o)),r?(l=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(o|=1),Ea(lo,1&o),null===e)return ui(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0===(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(s=a.children,e=a.fallback,l?(a=t.mode,l=t.child,s={mode:"hidden",children:s},0===(1&a)&&null!==l?(l.childLanes=0,l.pendingProps=s):l=Du(s,a,0,null),e=Lu(e,a,n,null),l.return=t,e.return=t,l.sibling=e,t.child=l,t.child.memoizedState=Dl(n),t.memoizedState=Ll,e):Bl(t,s));if(null!==(o=e.memoizedState)&&null!==(r=o.dehydrated))return function(e,t,n,r,a,o,l){if(n)return 256&t.flags?(t.flags&=-257,jl(e,t,l,r=fl(Error(i(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(o=r.fallback,a=t.mode,r=Du({mode:"visible",children:r.children},a,0,null),(o=Lu(o,a,l,null)).flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,0!==(1&t.mode)&&Xi(t,e.child,null,l),t.child.memoizedState=Dl(l),t.memoizedState=Ll,o);if(0===(1&t.mode))return jl(e,t,l,null);if("$!"===a.data){if(r=a.nextSibling&&a.nextSibling.dataset)var s=r.dgst;return r=s,jl(e,t,l,r=fl(o=Error(i(419)),r,void 0))}if(s=0!==(l&e.childLanes),wl||s){if(null!==(r=zs)){switch(l&-l){case 4:a=2;break;case 16:a=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:a=32;break;case 536870912:a=268435456;break;default:a=0}0!==(a=0!==(a&(r.suspendedLanes|l))?0:a)&&a!==o.retryLane&&(o.retryLane=a,Oi(e,a),ru(r,e,a,-1))}return vu(),jl(e,t,l,r=fl(Error(i(421))))}return"$?"===a.data?(t.flags|=128,t.child=e.child,t=Ru.bind(null,e),a._reactRetry=t,null):(e=o.treeContext,ri=ua(a.nextSibling),ni=t,ai=!0,ii=null,null!==e&&(qa[Qa++]=Xa,qa[Qa++]=Ga,qa[Qa++]=Za,Xa=e.id,Ga=e.overflow,Za=t),t=Bl(t,r.children),t.flags|=4096,t)}(e,t,s,a,r,o,n);if(l){l=a.fallback,s=t.mode,r=(o=e.child).sibling;var u={mode:"hidden",children:a.children};return 0===(1&s)&&t.child!==o?((a=t.child).childLanes=0,a.pendingProps=u,t.deletions=null):(a=Mu(o,u)).subtreeFlags=14680064&o.subtreeFlags,null!==r?l=Mu(r,l):(l=Lu(l,s,n,null)).flags|=2,l.return=t,a.return=t,a.sibling=l,t.child=a,a=l,l=t.child,s=null===(s=e.child.memoizedState)?Dl(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},l.memoizedState=s,l.childLanes=e.childLanes&~n,t.memoizedState=Ll,a}return e=(l=e.child).sibling,a=Mu(l,{mode:"visible",children:a.children}),0===(1&t.mode)&&(a.lanes=n),a.return=t,a.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=a,t.memoizedState=null,a}function Bl(e,t){return(t=Du({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function jl(e,t,n,r){return null!==r&&pi(r),Xi(t,e.child,null,n),(e=Bl(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Ul(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Si(e.return,t,n)}function Vl(e,t,n,r,a){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:a}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=a)}function Hl(e,t,n){var r=t.pendingProps,a=r.revealOrder,i=r.tail;if(kl(e,t,r.children,n),0!==(2&(r=lo.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!==(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Ul(e,n,t);else if(19===e.tag)Ul(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Ea(lo,r),0===(1&t.mode))t.memoizedState=null;else switch(a){case"forwards":for(n=t.child,a=null;null!==n;)null!==(e=n.alternate)&&null===so(e)&&(a=n),n=n.sibling;null===(n=a)?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),Vl(t,!1,a,n,i);break;case"backwards":for(n=null,a=t.child,t.child=null;null!==a;){if(null!==(e=a.alternate)&&null===so(e)){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}Vl(t,!0,n,null,i);break;case"together":Vl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Wl(e,t){0===(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Yl(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Ds|=t.lanes,0===(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(i(153));if(null!==t.child){for(n=Mu(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Mu(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function $l(e,t){if(!ai)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ql(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var a=e.child;null!==a;)n|=a.lanes|a.childLanes,r|=14680064&a.subtreeFlags,r|=14680064&a.flags,a.return=e,a=a.sibling;else for(a=e.child;null!==a;)n|=a.lanes|a.childLanes,r|=a.subtreeFlags,r|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Ql(e,t,n){var r=t.pendingProps;switch(ti(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ql(t),null;case 1:case 17:return Aa(t.type)&&Ia(),ql(t),null;case 3:return r=t.stateNode,ao(),_a(Oa),_a(Ra),co(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(fi(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0===(256&t.flags)||(t.flags|=1024,null!==ii&&(lu(ii),ii=null))),Il(e,t),ql(t),null;case 5:oo(t);var a=no(to.current);if(n=t.type,null!==e&&null!=t.stateNode)Ml(e,t,n,r,a),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(i(166));return ql(t),null}if(e=no(Ji.current),fi(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[da]=t,r[ha]=o,e=0!==(1&t.mode),n){case"dialog":Br("cancel",r),Br("close",r);break;case"iframe":case"object":case"embed":Br("load",r);break;case"video":case"audio":for(a=0;a<Nr.length;a++)Br(Nr[a],r);break;case"source":Br("error",r);break;case"img":case"image":case"link":Br("error",r),Br("load",r);break;case"details":Br("toggle",r);break;case"input":X(r,o),Br("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},Br("invalid",r);break;case"textarea":ae(r,o),Br("invalid",r)}for(var s in ye(n,o),a=null,o)if(o.hasOwnProperty(s)){var u=o[s];"children"===s?"string"===typeof u?r.textContent!==u&&(!0!==o.suppressHydrationWarning&&Kr(r.textContent,u,e),a=["children",u]):"number"===typeof u&&r.textContent!==""+u&&(!0!==o.suppressHydrationWarning&&Kr(r.textContent,u,e),a=["children",""+u]):l.hasOwnProperty(s)&&null!=u&&"onScroll"===s&&Br("scroll",r)}switch(n){case"input":$(r),J(r,o,!0);break;case"textarea":$(r),oe(r);break;case"select":case"option":break;default:"function"===typeof o.onClick&&(r.onclick=Jr)}r=a,t.updateQueue=r,null!==r&&(t.flags|=4)}else{s=9===a.nodeType?a:a.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=le(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=s.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),"select"===n&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[da]=t,e[ha]=r,Al(e,t,!1,!1),t.stateNode=e;e:{switch(s=be(n,r),n){case"dialog":Br("cancel",e),Br("close",e),a=r;break;case"iframe":case"object":case"embed":Br("load",e),a=r;break;case"video":case"audio":for(a=0;a<Nr.length;a++)Br(Nr[a],e);a=r;break;case"source":Br("error",e),a=r;break;case"img":case"image":case"link":Br("error",e),Br("load",e),a=r;break;case"details":Br("toggle",e),a=r;break;case"input":X(e,r),a=Z(e,r),Br("invalid",e);break;case"option":default:a=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},a=D({},r,{value:void 0}),Br("invalid",e);break;case"textarea":ae(e,r),a=re(e,r),Br("invalid",e)}for(o in ye(n,a),u=a)if(u.hasOwnProperty(o)){var c=u[o];"style"===o?ve(e,c):"dangerouslySetInnerHTML"===o?null!=(c=c?c.__html:void 0)&&fe(e,c):"children"===o?"string"===typeof c?("textarea"!==n||""!==c)&&de(e,c):"number"===typeof c&&de(e,""+c):"suppressContentEditableWarning"!==o&&"suppressHydrationWarning"!==o&&"autoFocus"!==o&&(l.hasOwnProperty(o)?null!=c&&"onScroll"===o&&Br("scroll",e):null!=c&&b(e,o,c,s))}switch(n){case"input":$(e),J(e,r,!1);break;case"textarea":$(e),oe(e);break;case"option":null!=r.value&&e.setAttribute("value",""+W(r.value));break;case"select":e.multiple=!!r.multiple,null!=(o=r.value)?ne(e,!!r.multiple,o,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"===typeof a.onClick&&(e.onclick=Jr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return ql(t),null;case 6:if(e&&null!=t.stateNode)Nl(e,t,e.memoizedProps,r);else{if("string"!==typeof r&&null===t.stateNode)throw Error(i(166));if(n=no(to.current),no(Ji.current),fi(t)){if(r=t.stateNode,n=t.memoizedProps,r[da]=t,(o=r.nodeValue!==n)&&null!==(e=ni))switch(e.tag){case 3:Kr(r.nodeValue,n,0!==(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Kr(r.nodeValue,n,0!==(1&e.mode))}o&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[da]=t,t.stateNode=r}return ql(t),null;case 13:if(_a(lo),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ai&&null!==ri&&0!==(1&t.mode)&&0===(128&t.flags))di(),hi(),t.flags|=98560,o=!1;else if(o=fi(t),null!==r&&null!==r.dehydrated){if(null===e){if(!o)throw Error(i(318));if(!(o=null!==(o=t.memoizedState)?o.dehydrated:null))throw Error(i(317));o[da]=t}else hi(),0===(128&t.flags)&&(t.memoizedState=null),t.flags|=4;ql(t),o=!1}else null!==ii&&(lu(ii),ii=null),o=!0;if(!o)return 65536&t.flags?t:null}return 0!==(128&t.flags)?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!==(1&t.mode)&&(null===e||0!==(1&lo.current)?0===Ns&&(Ns=3):vu())),null!==t.updateQueue&&(t.flags|=4),ql(t),null);case 4:return ao(),Il(e,t),null===e&&Vr(t.stateNode.containerInfo),ql(t),null;case 10:return xi(t.type._context),ql(t),null;case 19:if(_a(lo),null===(o=t.memoizedState))return ql(t),null;if(r=0!==(128&t.flags),null===(s=o.rendering))if(r)$l(o,!1);else{if(0!==Ns||null!==e&&0!==(128&e.flags))for(e=t.child;null!==e;){if(null!==(s=so(e))){for(t.flags|=128,$l(o,!1),null!==(r=s.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(o=n).flags&=14680066,null===(s=o.alternate)?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=s.childLanes,o.lanes=s.lanes,o.child=s.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=s.memoizedProps,o.memoizedState=s.memoizedState,o.updateQueue=s.updateQueue,o.type=s.type,e=s.dependencies,o.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Ea(lo,1&lo.current|2),t.child}e=e.sibling}null!==o.tail&&Ge()>Hs&&(t.flags|=128,r=!0,$l(o,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=so(s))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),$l(o,!0),null===o.tail&&"hidden"===o.tailMode&&!s.alternate&&!ai)return ql(t),null}else 2*Ge()-o.renderingStartTime>Hs&&1073741824!==n&&(t.flags|=128,r=!0,$l(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(null!==(n=o.last)?n.sibling=s:t.child=s,o.last=s)}return null!==o.tail?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Ge(),t.sibling=null,n=lo.current,Ea(lo,r?1&n|2:1&n),t):(ql(t),null);case 22:case 23:return du(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!==(1&t.mode)?0!==(1073741824&Is)&&(ql(t),6&t.subtreeFlags&&(t.flags|=8192)):ql(t),null;case 24:case 25:return null}throw Error(i(156,t.tag))}function Zl(e,t){switch(ti(t),t.tag){case 1:return Aa(t.type)&&Ia(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return ao(),_a(Oa),_a(Ra),co(),0!==(65536&(e=t.flags))&&0===(128&e)?(t.flags=-65537&e|128,t):null;case 5:return oo(t),null;case 13:if(_a(lo),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(i(340));hi()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return _a(lo),null;case 4:return ao(),null;case 10:return xi(t.type._context),null;case 22:case 23:return du(),null;default:return null}}Al=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Il=function(){},Ml=function(e,t,n,r){var a=e.memoizedProps;if(a!==r){e=t.stateNode,no(Ji.current);var i,o=null;switch(n){case"input":a=Z(e,a),r=Z(e,r),o=[];break;case"select":a=D({},a,{value:void 0}),r=D({},r,{value:void 0}),o=[];break;case"textarea":a=re(e,a),r=re(e,r),o=[];break;default:"function"!==typeof a.onClick&&"function"===typeof r.onClick&&(e.onclick=Jr)}for(c in ye(n,r),n=null,a)if(!r.hasOwnProperty(c)&&a.hasOwnProperty(c)&&null!=a[c])if("style"===c){var s=a[c];for(i in s)s.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(l.hasOwnProperty(c)?o||(o=[]):(o=o||[]).push(c,null));for(c in r){var u=r[c];if(s=null!=a?a[c]:void 0,r.hasOwnProperty(c)&&u!==s&&(null!=u||null!=s))if("style"===c)if(s){for(i in s)!s.hasOwnProperty(i)||u&&u.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in u)u.hasOwnProperty(i)&&s[i]!==u[i]&&(n||(n={}),n[i]=u[i])}else n||(o||(o=[]),o.push(c,n)),n=u;else"dangerouslySetInnerHTML"===c?(u=u?u.__html:void 0,s=s?s.__html:void 0,null!=u&&s!==u&&(o=o||[]).push(c,u)):"children"===c?"string"!==typeof u&&"number"!==typeof u||(o=o||[]).push(c,""+u):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(l.hasOwnProperty(c)?(null!=u&&"onScroll"===c&&Br("scroll",e),o||s===u||(o=[])):(o=o||[]).push(c,u))}n&&(o=o||[]).push("style",n);var c=o;(t.updateQueue=c)&&(t.flags|=4)}},Nl=function(e,t,n,r){n!==r&&(t.flags|=4)};var Xl=!1,Gl=!1,Kl="function"===typeof WeakSet?WeakSet:Set,Jl=null;function es(e,t){var n=e.ref;if(null!==n)if("function"===typeof n)try{n(null)}catch(r){_u(e,t,r)}else n.current=null}function ts(e,t,n){try{n()}catch(r){_u(e,t,r)}}var ns=!1;function rs(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var a=r=r.next;do{if((a.tag&e)===e){var i=a.destroy;a.destroy=void 0,void 0!==i&&ts(t,n,i)}a=a.next}while(a!==r)}}function as(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function is(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"===typeof t?t(e):t.current=e}}function os(e){var t=e.alternate;null!==t&&(e.alternate=null,os(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[da],delete t[ha],delete t[ma],delete t[va],delete t[ga])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function ls(e){return 5===e.tag||3===e.tag||4===e.tag}function ss(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||ls(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function us(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=Jr));else if(4!==r&&null!==(e=e.child))for(us(e,t,n),e=e.sibling;null!==e;)us(e,t,n),e=e.sibling}function cs(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(cs(e,t,n),e=e.sibling;null!==e;)cs(e,t,n),e=e.sibling}var fs=null,ds=!1;function hs(e,t,n){for(n=n.child;null!==n;)ps(e,t,n),n=n.sibling}function ps(e,t,n){if(it&&"function"===typeof it.onCommitFiberUnmount)try{it.onCommitFiberUnmount(at,n)}catch(l){}switch(n.tag){case 5:Gl||es(n,t);case 6:var r=fs,a=ds;fs=null,hs(e,t,n),ds=a,null!==(fs=r)&&(ds?(e=fs,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):fs.removeChild(n.stateNode));break;case 18:null!==fs&&(ds?(e=fs,n=n.stateNode,8===e.nodeType?sa(e.parentNode,n):1===e.nodeType&&sa(e,n),Vt(e)):sa(fs,n.stateNode));break;case 4:r=fs,a=ds,fs=n.stateNode.containerInfo,ds=!0,hs(e,t,n),fs=r,ds=a;break;case 0:case 11:case 14:case 15:if(!Gl&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){a=r=r.next;do{var i=a,o=i.destroy;i=i.tag,void 0!==o&&(0!==(2&i)||0!==(4&i))&&ts(n,t,o),a=a.next}while(a!==r)}hs(e,t,n);break;case 1:if(!Gl&&(es(n,t),"function"===typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){_u(n,t,l)}hs(e,t,n);break;case 21:hs(e,t,n);break;case 22:1&n.mode?(Gl=(r=Gl)||null!==n.memoizedState,hs(e,t,n),Gl=r):hs(e,t,n);break;default:hs(e,t,n)}}function ms(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Kl),t.forEach((function(t){var r=Ou.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function vs(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var a=n[r];try{var o=e,l=t,s=l;e:for(;null!==s;){switch(s.tag){case 5:fs=s.stateNode,ds=!1;break e;case 3:case 4:fs=s.stateNode.containerInfo,ds=!0;break e}s=s.return}if(null===fs)throw Error(i(160));ps(o,l,a),fs=null,ds=!1;var u=a.alternate;null!==u&&(u.return=null),a.return=null}catch(c){_u(a,t,c)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)gs(t,e),t=t.sibling}function gs(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(vs(t,e),ys(e),4&r){try{rs(3,e,e.return),as(3,e)}catch(v){_u(e,e.return,v)}try{rs(5,e,e.return)}catch(v){_u(e,e.return,v)}}break;case 1:vs(t,e),ys(e),512&r&&null!==n&&es(n,n.return);break;case 5:if(vs(t,e),ys(e),512&r&&null!==n&&es(n,n.return),32&e.flags){var a=e.stateNode;try{de(a,"")}catch(v){_u(e,e.return,v)}}if(4&r&&null!=(a=e.stateNode)){var o=e.memoizedProps,l=null!==n?n.memoizedProps:o,s=e.type,u=e.updateQueue;if(e.updateQueue=null,null!==u)try{"input"===s&&"radio"===o.type&&null!=o.name&&G(a,o),be(s,l);var c=be(s,o);for(l=0;l<u.length;l+=2){var f=u[l],d=u[l+1];"style"===f?ve(a,d):"dangerouslySetInnerHTML"===f?fe(a,d):"children"===f?de(a,d):b(a,f,d,c)}switch(s){case"input":K(a,o);break;case"textarea":ie(a,o);break;case"select":var h=a._wrapperState.wasMultiple;a._wrapperState.wasMultiple=!!o.multiple;var p=o.value;null!=p?ne(a,!!o.multiple,p,!1):h!==!!o.multiple&&(null!=o.defaultValue?ne(a,!!o.multiple,o.defaultValue,!0):ne(a,!!o.multiple,o.multiple?[]:"",!1))}a[ha]=o}catch(v){_u(e,e.return,v)}}break;case 6:if(vs(t,e),ys(e),4&r){if(null===e.stateNode)throw Error(i(162));a=e.stateNode,o=e.memoizedProps;try{a.nodeValue=o}catch(v){_u(e,e.return,v)}}break;case 3:if(vs(t,e),ys(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Vt(t.containerInfo)}catch(v){_u(e,e.return,v)}break;case 4:default:vs(t,e),ys(e);break;case 13:vs(t,e),ys(e),8192&(a=e.child).flags&&(o=null!==a.memoizedState,a.stateNode.isHidden=o,!o||null!==a.alternate&&null!==a.alternate.memoizedState||(Vs=Ge())),4&r&&ms(e);break;case 22:if(f=null!==n&&null!==n.memoizedState,1&e.mode?(Gl=(c=Gl)||f,vs(t,e),Gl=c):vs(t,e),ys(e),8192&r){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!f&&0!==(1&e.mode))for(Jl=e,f=e.child;null!==f;){for(d=Jl=f;null!==Jl;){switch(p=(h=Jl).child,h.tag){case 0:case 11:case 14:case 15:rs(4,h,h.return);break;case 1:es(h,h.return);var m=h.stateNode;if("function"===typeof m.componentWillUnmount){r=h,n=h.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(v){_u(r,n,v)}}break;case 5:es(h,h.return);break;case 22:if(null!==h.memoizedState){xs(d);continue}}null!==p?(p.return=h,Jl=p):xs(d)}f=f.sibling}e:for(f=null,d=e;;){if(5===d.tag){if(null===f){f=d;try{a=d.stateNode,c?"function"===typeof(o=a.style).setProperty?o.setProperty("display","none","important"):o.display="none":(s=d.stateNode,l=void 0!==(u=d.memoizedProps.style)&&null!==u&&u.hasOwnProperty("display")?u.display:null,s.style.display=me("display",l))}catch(v){_u(e,e.return,v)}}}else if(6===d.tag){if(null===f)try{d.stateNode.nodeValue=c?"":d.memoizedProps}catch(v){_u(e,e.return,v)}}else if((22!==d.tag&&23!==d.tag||null===d.memoizedState||d===e)&&null!==d.child){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;null===d.sibling;){if(null===d.return||d.return===e)break e;f===d&&(f=null),d=d.return}f===d&&(f=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:vs(t,e),ys(e),4&r&&ms(e);case 21:}}function ys(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(ls(n)){var r=n;break e}n=n.return}throw Error(i(160))}switch(r.tag){case 5:var a=r.stateNode;32&r.flags&&(de(a,""),r.flags&=-33),cs(e,ss(e),a);break;case 3:case 4:var o=r.stateNode.containerInfo;us(e,ss(e),o);break;default:throw Error(i(161))}}catch(l){_u(e,e.return,l)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function bs(e,t,n){Jl=e,ws(e,t,n)}function ws(e,t,n){for(var r=0!==(1&e.mode);null!==Jl;){var a=Jl,i=a.child;if(22===a.tag&&r){var o=null!==a.memoizedState||Xl;if(!o){var l=a.alternate,s=null!==l&&null!==l.memoizedState||Gl;l=Xl;var u=Gl;if(Xl=o,(Gl=s)&&!u)for(Jl=a;null!==Jl;)s=(o=Jl).child,22===o.tag&&null!==o.memoizedState?Ss(a):null!==s?(s.return=o,Jl=s):Ss(a);for(;null!==i;)Jl=i,ws(i,t,n),i=i.sibling;Jl=a,Xl=l,Gl=u}ks(e)}else 0!==(8772&a.subtreeFlags)&&null!==i?(i.return=a,Jl=i):ks(e)}}function ks(e){for(;null!==Jl;){var t=Jl;if(0!==(8772&t.flags)){var n=t.alternate;try{if(0!==(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Gl||as(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Gl)if(null===n)r.componentDidMount();else{var a=t.elementType===t.type?n.memoizedProps:vi(t.type,n.memoizedProps);r.componentDidUpdate(a,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;null!==o&&Fi(t,o,r);break;case 3:var l=t.updateQueue;if(null!==l){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Fi(t,l,n)}break;case 5:var s=t.stateNode;if(null===n&&4&t.flags){n=s;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();break;case"img":u.src&&(n.src=u.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var f=c.memoizedState;if(null!==f){var d=f.dehydrated;null!==d&&Vt(d)}}}break;default:throw Error(i(163))}Gl||512&t.flags&&is(t)}catch(h){_u(t,t.return,h)}}if(t===e){Jl=null;break}if(null!==(n=t.sibling)){n.return=t.return,Jl=n;break}Jl=t.return}}function xs(e){for(;null!==Jl;){var t=Jl;if(t===e){Jl=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Jl=n;break}Jl=t.return}}function Ss(e){for(;null!==Jl;){var t=Jl;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{as(4,t)}catch(s){_u(t,n,s)}break;case 1:var r=t.stateNode;if("function"===typeof r.componentDidMount){var a=t.return;try{r.componentDidMount()}catch(s){_u(t,a,s)}}var i=t.return;try{is(t)}catch(s){_u(t,i,s)}break;case 5:var o=t.return;try{is(t)}catch(s){_u(t,o,s)}}}catch(s){_u(t,t.return,s)}if(t===e){Jl=null;break}var l=t.sibling;if(null!==l){l.return=t.return,Jl=l;break}Jl=t.return}}var Ps,_s=Math.ceil,Es=w.ReactCurrentDispatcher,Cs=w.ReactCurrentOwner,Rs=w.ReactCurrentBatchConfig,Os=0,zs=null,Ts=null,As=0,Is=0,Ms=Pa(0),Ns=0,Ls=null,Ds=0,Fs=0,Bs=0,js=null,Us=null,Vs=0,Hs=1/0,Ws=null,Ys=!1,$s=null,qs=null,Qs=!1,Zs=null,Xs=0,Gs=0,Ks=null,Js=-1,eu=0;function tu(){return 0!==(6&Os)?Ge():-1!==Js?Js:Js=Ge()}function nu(e){return 0===(1&e.mode)?1:0!==(2&Os)&&0!==As?As&-As:null!==mi.transition?(0===eu&&(eu=mt()),eu):0!==(e=bt)?e:e=void 0===(e=window.event)?16:Xt(e.type)}function ru(e,t,n,r){if(50<Gs)throw Gs=0,Ks=null,Error(i(185));gt(e,n,r),0!==(2&Os)&&e===zs||(e===zs&&(0===(2&Os)&&(Fs|=n),4===Ns&&su(e,As)),au(e,r),1===n&&0===Os&&0===(1&t.mode)&&(Hs=Ge()+500,Ba&&Va()))}function au(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,a=e.expirationTimes,i=e.pendingLanes;0<i;){var o=31-ot(i),l=1<<o,s=a[o];-1===s?0!==(l&n)&&0===(l&r)||(a[o]=ht(l,t)):s<=t&&(e.expiredLanes|=l),i&=~l}}(e,t);var r=dt(e,e===zs?As:0);if(0===r)null!==n&&Qe(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Qe(n),1===t)0===e.tag?function(e){Ba=!0,Ua(e)}(uu.bind(null,e)):Ua(uu.bind(null,e)),oa((function(){0===(6&Os)&&Va()})),n=null;else{switch(wt(r)){case 1:n=Je;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=zu(n,iu.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function iu(e,t){if(Js=-1,eu=0,0!==(6&Os))throw Error(i(327));var n=e.callbackNode;if(Su()&&e.callbackNode!==n)return null;var r=dt(e,e===zs?As:0);if(0===r)return null;if(0!==(30&r)||0!==(r&e.expiredLanes)||t)t=gu(e,r);else{t=r;var a=Os;Os|=2;var o=mu();for(zs===e&&As===t||(Ws=null,Hs=Ge()+500,hu(e,t));;)try{bu();break}catch(s){pu(e,s)}ki(),Es.current=o,Os=a,null!==Ts?t=0:(zs=null,As=0,t=Ns)}if(0!==t){if(2===t&&(0!==(a=pt(e))&&(r=a,t=ou(e,a))),1===t)throw n=Ls,hu(e,0),su(e,r),au(e,Ge()),n;if(6===t)su(e,r);else{if(a=e.current.alternate,0===(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var a=n[r],i=a.getSnapshot;a=a.value;try{if(!lr(i(),a))return!1}catch(l){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(a)&&(2===(t=gu(e,r))&&(0!==(o=pt(e))&&(r=o,t=ou(e,o))),1===t))throw n=Ls,hu(e,0),su(e,r),au(e,Ge()),n;switch(e.finishedWork=a,e.finishedLanes=r,t){case 0:case 1:throw Error(i(345));case 2:case 5:xu(e,Us,Ws);break;case 3:if(su(e,r),(130023424&r)===r&&10<(t=Vs+500-Ge())){if(0!==dt(e,0))break;if(((a=e.suspendedLanes)&r)!==r){tu(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=ra(xu.bind(null,e,Us,Ws),t);break}xu(e,Us,Ws);break;case 4:if(su(e,r),(4194240&r)===r)break;for(t=e.eventTimes,a=-1;0<r;){var l=31-ot(r);o=1<<l,(l=t[l])>a&&(a=l),r&=~o}if(r=a,10<(r=(120>(r=Ge()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*_s(r/1960))-r)){e.timeoutHandle=ra(xu.bind(null,e,Us,Ws),r);break}xu(e,Us,Ws);break;default:throw Error(i(329))}}}return au(e,Ge()),e.callbackNode===n?iu.bind(null,e):null}function ou(e,t){var n=js;return e.current.memoizedState.isDehydrated&&(hu(e,t).flags|=256),2!==(e=gu(e,t))&&(t=Us,Us=n,null!==t&&lu(t)),e}function lu(e){null===Us?Us=e:Us.push.apply(Us,e)}function su(e,t){for(t&=~Bs,t&=~Fs,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-ot(t),r=1<<n;e[n]=-1,t&=~r}}function uu(e){if(0!==(6&Os))throw Error(i(327));Su();var t=dt(e,0);if(0===(1&t))return au(e,Ge()),null;var n=gu(e,t);if(0!==e.tag&&2===n){var r=pt(e);0!==r&&(t=r,n=ou(e,r))}if(1===n)throw n=Ls,hu(e,0),su(e,t),au(e,Ge()),n;if(6===n)throw Error(i(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,xu(e,Us,Ws),au(e,Ge()),null}function cu(e,t){var n=Os;Os|=1;try{return e(t)}finally{0===(Os=n)&&(Hs=Ge()+500,Ba&&Va())}}function fu(e){null!==Zs&&0===Zs.tag&&0===(6&Os)&&Su();var t=Os;Os|=1;var n=Rs.transition,r=bt;try{if(Rs.transition=null,bt=1,e)return e()}finally{bt=r,Rs.transition=n,0===(6&(Os=t))&&Va()}}function du(){Is=Ms.current,_a(Ms)}function hu(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,aa(n)),null!==Ts)for(n=Ts.return;null!==n;){var r=n;switch(ti(r),r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&Ia();break;case 3:ao(),_a(Oa),_a(Ra),co();break;case 5:oo(r);break;case 4:ao();break;case 13:case 19:_a(lo);break;case 10:xi(r.type._context);break;case 22:case 23:du()}n=n.return}if(zs=e,Ts=e=Mu(e.current,null),As=Is=t,Ns=0,Ls=null,Bs=Fs=Ds=0,Us=js=null,null!==Ei){for(t=0;t<Ei.length;t++)if(null!==(r=(n=Ei[t]).interleaved)){n.interleaved=null;var a=r.next,i=n.pending;if(null!==i){var o=i.next;i.next=a,r.next=o}n.pending=r}Ei=null}return e}function pu(e,t){for(;;){var n=Ts;try{if(ki(),fo.current=ol,yo){for(var r=mo.memoizedState;null!==r;){var a=r.queue;null!==a&&(a.pending=null),r=r.next}yo=!1}if(po=0,go=vo=mo=null,bo=!1,wo=0,Cs.current=null,null===n||null===n.return){Ns=1,Ls=t,Ts=null;break}e:{var o=e,l=n.return,s=n,u=t;if(t=As,s.flags|=32768,null!==u&&"object"===typeof u&&"function"===typeof u.then){var c=u,f=s,d=f.tag;if(0===(1&f.mode)&&(0===d||11===d||15===d)){var h=f.alternate;h?(f.updateQueue=h.updateQueue,f.memoizedState=h.memoizedState,f.lanes=h.lanes):(f.updateQueue=null,f.memoizedState=null)}var p=gl(l);if(null!==p){p.flags&=-257,yl(p,l,s,0,t),1&p.mode&&vl(o,c,t),u=c;var m=(t=p).updateQueue;if(null===m){var v=new Set;v.add(u),t.updateQueue=v}else m.add(u);break e}if(0===(1&t)){vl(o,c,t),vu();break e}u=Error(i(426))}else if(ai&&1&s.mode){var g=gl(l);if(null!==g){0===(65536&g.flags)&&(g.flags|=256),yl(g,l,s,0,t),pi(cl(u,s));break e}}o=u=cl(u,s),4!==Ns&&(Ns=2),null===js?js=[o]:js.push(o),o=l;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t,Li(o,pl(0,u,t));break e;case 1:s=u;var y=o.type,b=o.stateNode;if(0===(128&o.flags)&&("function"===typeof y.getDerivedStateFromError||null!==b&&"function"===typeof b.componentDidCatch&&(null===qs||!qs.has(b)))){o.flags|=65536,t&=-t,o.lanes|=t,Li(o,ml(o,s,t));break e}}o=o.return}while(null!==o)}ku(n)}catch(w){t=w,Ts===n&&null!==n&&(Ts=n=n.return);continue}break}}function mu(){var e=Es.current;return Es.current=ol,null===e?ol:e}function vu(){0!==Ns&&3!==Ns&&2!==Ns||(Ns=4),null===zs||0===(268435455&Ds)&&0===(268435455&Fs)||su(zs,As)}function gu(e,t){var n=Os;Os|=2;var r=mu();for(zs===e&&As===t||(Ws=null,hu(e,t));;)try{yu();break}catch(a){pu(e,a)}if(ki(),Os=n,Es.current=r,null!==Ts)throw Error(i(261));return zs=null,As=0,Ns}function yu(){for(;null!==Ts;)wu(Ts)}function bu(){for(;null!==Ts&&!Ze();)wu(Ts)}function wu(e){var t=Ps(e.alternate,e,Is);e.memoizedProps=e.pendingProps,null===t?ku(e):Ts=t,Cs.current=null}function ku(e){var t=e;do{var n=t.alternate;if(e=t.return,0===(32768&t.flags)){if(null!==(n=Ql(n,t,Is)))return void(Ts=n)}else{if(null!==(n=Zl(n,t)))return n.flags&=32767,void(Ts=n);if(null===e)return Ns=6,void(Ts=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Ts=t);Ts=t=e}while(null!==t);0===Ns&&(Ns=5)}function xu(e,t,n){var r=bt,a=Rs.transition;try{Rs.transition=null,bt=1,function(e,t,n,r){do{Su()}while(null!==Zs);if(0!==(6&Os))throw Error(i(327));n=e.finishedWork;var a=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(i(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var a=31-ot(n),i=1<<a;t[a]=0,r[a]=-1,e[a]=-1,n&=~i}}(e,o),e===zs&&(Ts=zs=null,As=0),0===(2064&n.subtreeFlags)&&0===(2064&n.flags)||Qs||(Qs=!0,zu(tt,(function(){return Su(),null}))),o=0!==(15990&n.flags),0!==(15990&n.subtreeFlags)||o){o=Rs.transition,Rs.transition=null;var l=bt;bt=1;var s=Os;Os|=4,Cs.current=null,function(e,t){if(ea=Wt,hr(e=dr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var a=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch(k){n=null;break e}var l=0,s=-1,u=-1,c=0,f=0,d=e,h=null;t:for(;;){for(var p;d!==n||0!==a&&3!==d.nodeType||(s=l+a),d!==o||0!==r&&3!==d.nodeType||(u=l+r),3===d.nodeType&&(l+=d.nodeValue.length),null!==(p=d.firstChild);)h=d,d=p;for(;;){if(d===e)break t;if(h===n&&++c===a&&(s=l),h===o&&++f===r&&(u=l),null!==(p=d.nextSibling))break;h=(d=h).parentNode}d=p}n=-1===s||-1===u?null:{start:s,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(ta={focusedElem:e,selectionRange:n},Wt=!1,Jl=t;null!==Jl;)if(e=(t=Jl).child,0!==(1028&t.subtreeFlags)&&null!==e)e.return=t,Jl=e;else for(;null!==Jl;){t=Jl;try{var m=t.alternate;if(0!==(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var v=m.memoizedProps,g=m.memoizedState,y=t.stateNode,b=y.getSnapshotBeforeUpdate(t.elementType===t.type?v:vi(t.type,v),g);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var w=t.stateNode.containerInfo;1===w.nodeType?w.textContent="":9===w.nodeType&&w.documentElement&&w.removeChild(w.documentElement);break;default:throw Error(i(163))}}catch(k){_u(t,t.return,k)}if(null!==(e=t.sibling)){e.return=t.return,Jl=e;break}Jl=t.return}m=ns,ns=!1}(e,n),gs(n,e),pr(ta),Wt=!!ea,ta=ea=null,e.current=n,bs(n,e,a),Xe(),Os=s,bt=l,Rs.transition=o}else e.current=n;if(Qs&&(Qs=!1,Zs=e,Xs=a),o=e.pendingLanes,0===o&&(qs=null),function(e){if(it&&"function"===typeof it.onCommitFiberRoot)try{it.onCommitFiberRoot(at,e,void 0,128===(128&e.current.flags))}catch(t){}}(n.stateNode),au(e,Ge()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)a=t[n],r(a.value,{componentStack:a.stack,digest:a.digest});if(Ys)throw Ys=!1,e=$s,$s=null,e;0!==(1&Xs)&&0!==e.tag&&Su(),o=e.pendingLanes,0!==(1&o)?e===Ks?Gs++:(Gs=0,Ks=e):Gs=0,Va()}(e,t,n,r)}finally{Rs.transition=a,bt=r}return null}function Su(){if(null!==Zs){var e=wt(Xs),t=Rs.transition,n=bt;try{if(Rs.transition=null,bt=16>e?16:e,null===Zs)var r=!1;else{if(e=Zs,Zs=null,Xs=0,0!==(6&Os))throw Error(i(331));var a=Os;for(Os|=4,Jl=e.current;null!==Jl;){var o=Jl,l=o.child;if(0!==(16&Jl.flags)){var s=o.deletions;if(null!==s){for(var u=0;u<s.length;u++){var c=s[u];for(Jl=c;null!==Jl;){var f=Jl;switch(f.tag){case 0:case 11:case 15:rs(8,f,o)}var d=f.child;if(null!==d)d.return=f,Jl=d;else for(;null!==Jl;){var h=(f=Jl).sibling,p=f.return;if(os(f),f===c){Jl=null;break}if(null!==h){h.return=p,Jl=h;break}Jl=p}}}var m=o.alternate;if(null!==m){var v=m.child;if(null!==v){m.child=null;do{var g=v.sibling;v.sibling=null,v=g}while(null!==v)}}Jl=o}}if(0!==(2064&o.subtreeFlags)&&null!==l)l.return=o,Jl=l;else e:for(;null!==Jl;){if(0!==(2048&(o=Jl).flags))switch(o.tag){case 0:case 11:case 15:rs(9,o,o.return)}var y=o.sibling;if(null!==y){y.return=o.return,Jl=y;break e}Jl=o.return}}var b=e.current;for(Jl=b;null!==Jl;){var w=(l=Jl).child;if(0!==(2064&l.subtreeFlags)&&null!==w)w.return=l,Jl=w;else e:for(l=b;null!==Jl;){if(0!==(2048&(s=Jl).flags))try{switch(s.tag){case 0:case 11:case 15:as(9,s)}}catch(x){_u(s,s.return,x)}if(s===l){Jl=null;break e}var k=s.sibling;if(null!==k){k.return=s.return,Jl=k;break e}Jl=s.return}}if(Os=a,Va(),it&&"function"===typeof it.onPostCommitFiberRoot)try{it.onPostCommitFiberRoot(at,e)}catch(x){}r=!0}return r}finally{bt=n,Rs.transition=t}}return!1}function Pu(e,t,n){e=Mi(e,t=pl(0,t=cl(n,t),1),1),t=tu(),null!==e&&(gt(e,1,t),au(e,t))}function _u(e,t,n){if(3===e.tag)Pu(e,e,n);else for(;null!==t;){if(3===t.tag){Pu(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"===typeof t.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===qs||!qs.has(r))){t=Mi(t,e=ml(t,e=cl(n,e),1),1),e=tu(),null!==t&&(gt(t,1,e),au(t,e));break}}t=t.return}}function Eu(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=tu(),e.pingedLanes|=e.suspendedLanes&n,zs===e&&(As&n)===n&&(4===Ns||3===Ns&&(130023424&As)===As&&500>Ge()-Vs?hu(e,0):Bs|=n),au(e,t)}function Cu(e,t){0===t&&(0===(1&e.mode)?t=1:(t=ct,0===(130023424&(ct<<=1))&&(ct=4194304)));var n=tu();null!==(e=Oi(e,t))&&(gt(e,t,n),au(e,n))}function Ru(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Cu(e,n)}function Ou(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,a=e.memoizedState;null!==a&&(n=a.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(i(314))}null!==r&&r.delete(t),Cu(e,n)}function zu(e,t){return qe(e,t)}function Tu(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Au(e,t,n,r){return new Tu(e,t,n,r)}function Iu(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Mu(e,t){var n=e.alternate;return null===n?((n=Au(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Nu(e,t,n,r,a,o){var l=2;if(r=e,"function"===typeof e)Iu(e)&&(l=1);else if("string"===typeof e)l=5;else e:switch(e){case S:return Lu(n.children,a,o,t);case P:l=8,a|=8;break;case _:return(e=Au(12,n,t,2|a)).elementType=_,e.lanes=o,e;case O:return(e=Au(13,n,t,a)).elementType=O,e.lanes=o,e;case z:return(e=Au(19,n,t,a)).elementType=z,e.lanes=o,e;case I:return Du(n,a,o,t);default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case E:l=10;break e;case C:l=9;break e;case R:l=11;break e;case T:l=14;break e;case A:l=16,r=null;break e}throw Error(i(130,null==e?e:typeof e,""))}return(t=Au(l,n,t,a)).elementType=e,t.type=r,t.lanes=o,t}function Lu(e,t,n,r){return(e=Au(7,e,r,t)).lanes=n,e}function Du(e,t,n,r){return(e=Au(22,e,r,t)).elementType=I,e.lanes=n,e.stateNode={isHidden:!1},e}function Fu(e,t,n){return(e=Au(6,e,null,t)).lanes=n,e}function Bu(e,t,n){return(t=Au(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function ju(e,t,n,r,a){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=vt(0),this.expirationTimes=vt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=vt(0),this.identifierPrefix=r,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function Uu(e,t,n,r,a,i,o,l,s){return e=new ju(e,t,n,l,s),1===t?(t=1,!0===i&&(t|=8)):t=0,i=Au(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ti(i),e}function Vu(e){if(!e)return Ca;e:{if(Ve(e=e._reactInternals)!==e||1!==e.tag)throw Error(i(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Aa(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(i(171))}if(1===e.tag){var n=e.type;if(Aa(n))return Na(e,n,t)}return t}function Hu(e,t,n,r,a,i,o,l,s){return(e=Uu(n,r,!0,e,0,i,0,l,s)).context=Vu(null),n=e.current,(i=Ii(r=tu(),a=nu(n))).callback=void 0!==t&&null!==t?t:null,Mi(n,i,a),e.current.lanes=a,gt(e,a,r),au(e,r),e}function Wu(e,t,n,r){var a=t.current,i=tu(),o=nu(a);return n=Vu(n),null===t.context?t.context=n:t.pendingContext=n,(t=Ii(i,o)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Mi(a,t,o))&&(ru(e,a,o,i),Ni(e,a,o)),o}function Yu(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function $u(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function qu(e,t){$u(e,t),(e=e.alternate)&&$u(e,t)}Ps=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Oa.current)wl=!0;else{if(0===(e.lanes&n)&&0===(128&t.flags))return wl=!1,function(e,t,n){switch(t.tag){case 3:zl(t),hi();break;case 5:io(t);break;case 1:Aa(t.type)&&La(t);break;case 4:ro(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,a=t.memoizedProps.value;Ea(gi,r._currentValue),r._currentValue=a;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Ea(lo,1&lo.current),t.flags|=128,null):0!==(n&t.child.childLanes)?Fl(e,t,n):(Ea(lo,1&lo.current),null!==(e=Yl(e,t,n))?e.sibling:null);Ea(lo,1&lo.current);break;case 19:if(r=0!==(n&t.childLanes),0!==(128&e.flags)){if(r)return Hl(e,t,n);t.flags|=128}if(null!==(a=t.memoizedState)&&(a.rendering=null,a.tail=null,a.lastEffect=null),Ea(lo,lo.current),r)break;return null;case 22:case 23:return t.lanes=0,_l(e,t,n)}return Yl(e,t,n)}(e,t,n);wl=0!==(131072&e.flags)}else wl=!1,ai&&0!==(1048576&t.flags)&&Ja(t,$a,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Wl(e,t),e=t.pendingProps;var a=Ta(t,Ra.current);Pi(t,n),a=Po(null,t,r,e,a,n);var o=_o();return t.flags|=1,"object"===typeof a&&null!==a&&"function"===typeof a.render&&void 0===a.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Aa(r)?(o=!0,La(t)):o=!1,t.memoizedState=null!==a.state&&void 0!==a.state?a.state:null,Ti(t),a.updater=Ui,t.stateNode=a,a._reactInternals=t,Yi(t,r,e,n),t=Ol(null,t,r,!0,o,n)):(t.tag=0,ai&&o&&ei(t),kl(null,t,a,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Wl(e,t),e=t.pendingProps,r=(a=r._init)(r._payload),t.type=r,a=t.tag=function(e){if("function"===typeof e)return Iu(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===R)return 11;if(e===T)return 14}return 2}(r),e=vi(r,e),a){case 0:t=Cl(null,t,r,e,n);break e;case 1:t=Rl(null,t,r,e,n);break e;case 11:t=xl(null,t,r,e,n);break e;case 14:t=Sl(null,t,r,vi(r.type,e),n);break e}throw Error(i(306,r,""))}return t;case 0:return r=t.type,a=t.pendingProps,Cl(e,t,r,a=t.elementType===r?a:vi(r,a),n);case 1:return r=t.type,a=t.pendingProps,Rl(e,t,r,a=t.elementType===r?a:vi(r,a),n);case 3:e:{if(zl(t),null===e)throw Error(i(387));r=t.pendingProps,a=(o=t.memoizedState).element,Ai(e,t),Di(t,r,null,n);var l=t.memoizedState;if(r=l.element,o.isDehydrated){if(o={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=o,t.memoizedState=o,256&t.flags){t=Tl(e,t,r,n,a=cl(Error(i(423)),t));break e}if(r!==a){t=Tl(e,t,r,n,a=cl(Error(i(424)),t));break e}for(ri=ua(t.stateNode.containerInfo.firstChild),ni=t,ai=!0,ii=null,n=Gi(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(hi(),r===a){t=Yl(e,t,n);break e}kl(e,t,r,n)}t=t.child}return t;case 5:return io(t),null===e&&ui(t),r=t.type,a=t.pendingProps,o=null!==e?e.memoizedProps:null,l=a.children,na(r,a)?l=null:null!==o&&na(r,o)&&(t.flags|=32),El(e,t),kl(e,t,l,n),t.child;case 6:return null===e&&ui(t),null;case 13:return Fl(e,t,n);case 4:return ro(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Xi(t,null,r,n):kl(e,t,r,n),t.child;case 11:return r=t.type,a=t.pendingProps,xl(e,t,r,a=t.elementType===r?a:vi(r,a),n);case 7:return kl(e,t,t.pendingProps,n),t.child;case 8:case 12:return kl(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,a=t.pendingProps,o=t.memoizedProps,l=a.value,Ea(gi,r._currentValue),r._currentValue=l,null!==o)if(lr(o.value,l)){if(o.children===a.children&&!Oa.current){t=Yl(e,t,n);break e}}else for(null!==(o=t.child)&&(o.return=t);null!==o;){var s=o.dependencies;if(null!==s){l=o.child;for(var u=s.firstContext;null!==u;){if(u.context===r){if(1===o.tag){(u=Ii(-1,n&-n)).tag=2;var c=o.updateQueue;if(null!==c){var f=(c=c.shared).pending;null===f?u.next=u:(u.next=f.next,f.next=u),c.pending=u}}o.lanes|=n,null!==(u=o.alternate)&&(u.lanes|=n),Si(o.return,n,t),s.lanes|=n;break}u=u.next}}else if(10===o.tag)l=o.type===t.type?null:o.child;else if(18===o.tag){if(null===(l=o.return))throw Error(i(341));l.lanes|=n,null!==(s=l.alternate)&&(s.lanes|=n),Si(l,n,t),l=o.sibling}else l=o.child;if(null!==l)l.return=o;else for(l=o;null!==l;){if(l===t){l=null;break}if(null!==(o=l.sibling)){o.return=l.return,l=o;break}l=l.return}o=l}kl(e,t,a.children,n),t=t.child}return t;case 9:return a=t.type,r=t.pendingProps.children,Pi(t,n),r=r(a=_i(a)),t.flags|=1,kl(e,t,r,n),t.child;case 14:return a=vi(r=t.type,t.pendingProps),Sl(e,t,r,a=vi(r.type,a),n);case 15:return Pl(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:vi(r,a),Wl(e,t),t.tag=1,Aa(r)?(e=!0,La(t)):e=!1,Pi(t,n),Hi(t,r,a),Yi(t,r,a,n),Ol(null,t,r,!0,e,n);case 19:return Hl(e,t,n);case 22:return _l(e,t,n)}throw Error(i(156,t.tag))};var Qu="function"===typeof reportError?reportError:function(e){console.error(e)};function Zu(e){this._internalRoot=e}function Xu(e){this._internalRoot=e}function Gu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Ku(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Ju(){}function ec(e,t,n,r,a){var i=n._reactRootContainer;if(i){var o=i;if("function"===typeof a){var l=a;a=function(){var e=Yu(o);l.call(e)}}Wu(t,o,e,a)}else o=function(e,t,n,r,a){if(a){if("function"===typeof r){var i=r;r=function(){var e=Yu(o);i.call(e)}}var o=Hu(t,r,e,0,null,!1,0,"",Ju);return e._reactRootContainer=o,e[pa]=o.current,Vr(8===e.nodeType?e.parentNode:e),fu(),o}for(;a=e.lastChild;)e.removeChild(a);if("function"===typeof r){var l=r;r=function(){var e=Yu(s);l.call(e)}}var s=Uu(e,0,!1,null,0,!1,0,"",Ju);return e._reactRootContainer=s,e[pa]=s.current,Vr(8===e.nodeType?e.parentNode:e),fu((function(){Wu(t,s,n,r)})),s}(n,t,e,a,r);return Yu(o)}Xu.prototype.render=Zu.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(i(409));Wu(e,t,null,null)},Xu.prototype.unmount=Zu.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;fu((function(){Wu(null,e,null,null)})),t[pa]=null}},Xu.prototype.unstable_scheduleHydration=function(e){if(e){var t=Pt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<It.length&&0!==t&&t<It[n].priority;n++);It.splice(n,0,e),0===n&&Dt(e)}},kt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ft(t.pendingLanes);0!==n&&(yt(t,1|n),au(t,Ge()),0===(6&Os)&&(Hs=Ge()+500,Va()))}break;case 13:fu((function(){var t=Oi(e,1);if(null!==t){var n=tu();ru(t,e,1,n)}})),qu(e,1)}},xt=function(e){if(13===e.tag){var t=Oi(e,134217728);if(null!==t)ru(t,e,134217728,tu());qu(e,134217728)}},St=function(e){if(13===e.tag){var t=nu(e),n=Oi(e,t);if(null!==n)ru(n,e,t,tu());qu(e,t)}},Pt=function(){return bt},_t=function(e,t){var n=bt;try{return bt=e,t()}finally{bt=n}},xe=function(e,t,n){switch(t){case"input":if(K(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=ka(r);if(!a)throw Error(i(90));q(r),K(r,a)}}}break;case"textarea":ie(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Re=cu,Oe=fu;var tc={usingClientEntryPoint:!1,Events:[ba,wa,ka,Ee,Ce,cu]},nc={findFiberByHostInstance:ya,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},rc={bundleType:nc.bundleType,version:nc.version,rendererPackageName:nc.rendererPackageName,rendererConfig:nc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ye(e))?null:e.stateNode},findFiberByHostInstance:nc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var ac=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ac.isDisabled&&ac.supportsFiber)try{at=ac.inject(rc),it=ac}catch(ce){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tc,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Gu(t))throw Error(i(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:x,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Gu(e))throw Error(i(299));var n=!1,r="",a=Qu;return null!==t&&void 0!==t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(a=t.onRecoverableError)),t=Uu(e,1,!1,null,0,n,0,r,a),e[pa]=t.current,Vr(8===e.nodeType?e.parentNode:e),new Zu(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"===typeof e.render)throw Error(i(188));throw e=Object.keys(e).join(","),Error(i(268,e))}return e=null===(e=Ye(t))?null:e.stateNode},t.flushSync=function(e){return fu(e)},t.hydrate=function(e,t,n){if(!Ku(t))throw Error(i(200));return ec(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Gu(e))throw Error(i(405));var r=null!=n&&n.hydratedSources||null,a=!1,o="",l=Qu;if(null!==n&&void 0!==n&&(!0===n.unstable_strictMode&&(a=!0),void 0!==n.identifierPrefix&&(o=n.identifierPrefix),void 0!==n.onRecoverableError&&(l=n.onRecoverableError)),t=Hu(t,null,e,1,null!=n?n:null,a,0,o,l),e[pa]=t.current,Vr(e),r)for(e=0;e<r.length;e++)a=(a=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,a]:t.mutableSourceEagerHydrationData.push(n,a);return new Xu(t)},t.render=function(e,t,n){if(!Ku(t))throw Error(i(200));return ec(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Ku(e))throw Error(i(40));return!!e._reactRootContainer&&(fu((function(){ec(null,null,e,!1,(function(){e._reactRootContainer=null,e[pa]=null}))})),!0)},t.unstable_batchedUpdates=cu,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Ku(n))throw Error(i(200));if(null==e||void 0===e._reactInternals)throw Error(i(38));return ec(e,t,n,!1,r)},t.version="18.2.0-next-9e3b772b8-20220608"},250:(e,t,n)=>{"use strict";var r=n(164);t.createRoot=r.createRoot,t.hydrateRoot=r.hydrateRoot},164:(e,t,n)=>{"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(463)},374:(e,t,n)=>{"use strict";var r=n(791),a=Symbol.for("react.element"),i=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,l=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,n){var r,i={},u=null,c=null;for(r in void 0!==n&&(u=""+n),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(c=t.ref),t)o.call(t,r)&&!s.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:a,type:e,key:u,ref:c,props:i,_owner:l.current}}t.jsx=u,t.jsxs=u},117:(e,t)=>{"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),s=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),h=Symbol.iterator;var p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,v={};function g(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||p}function y(){}function b(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||p}g.prototype.isReactComponent={},g.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},g.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=g.prototype;var w=b.prototype=new y;w.constructor=b,m(w,g.prototype),w.isPureReactComponent=!0;var k=Array.isArray,x=Object.prototype.hasOwnProperty,S={current:null},P={key:!0,ref:!0,__self:!0,__source:!0};function _(e,t,r){var a,i={},o=null,l=null;if(null!=t)for(a in void 0!==t.ref&&(l=t.ref),void 0!==t.key&&(o=""+t.key),t)x.call(t,a)&&!P.hasOwnProperty(a)&&(i[a]=t[a]);var s=arguments.length-2;if(1===s)i.children=r;else if(1<s){for(var u=Array(s),c=0;c<s;c++)u[c]=arguments[c+2];i.children=u}if(e&&e.defaultProps)for(a in s=e.defaultProps)void 0===i[a]&&(i[a]=s[a]);return{$$typeof:n,type:e,key:o,ref:l,props:i,_owner:S.current}}function E(e){return"object"===typeof e&&null!==e&&e.$$typeof===n}var C=/\/+/g;function R(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function O(e,t,a,i,o){var l=typeof e;"undefined"!==l&&"boolean"!==l||(e=null);var s=!1;if(null===e)s=!0;else switch(l){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case n:case r:s=!0}}if(s)return o=o(s=e),e=""===i?"."+R(s,0):i,k(o)?(a="",null!=e&&(a=e.replace(C,"$&/")+"/"),O(o,t,a,"",(function(e){return e}))):null!=o&&(E(o)&&(o=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(o,a+(!o.key||s&&s.key===o.key?"":(""+o.key).replace(C,"$&/")+"/")+e)),t.push(o)),1;if(s=0,i=""===i?".":i+":",k(e))for(var u=0;u<e.length;u++){var c=i+R(l=e[u],u);s+=O(l,t,a,c,o)}else if(c=function(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=h&&e[h]||e["@@iterator"])?e:null}(e),"function"===typeof c)for(e=c.call(e),u=0;!(l=e.next()).done;)s+=O(l=l.value,t,a,c=i+R(l,u++),o);else if("object"===l)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function z(e,t,n){if(null==e)return e;var r=[],a=0;return O(e,r,"","",(function(e){return t.call(n,e,a++)})),r}function T(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var A={current:null},I={transition:null},M={ReactCurrentDispatcher:A,ReactCurrentBatchConfig:I,ReactCurrentOwner:S};t.Children={map:z,forEach:function(e,t,n){z(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return z(e,(function(){t++})),t},toArray:function(e){return z(e,(function(e){return e}))||[]},only:function(e){if(!E(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=g,t.Fragment=a,t.Profiler=o,t.PureComponent=b,t.StrictMode=i,t.Suspense=c,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=M,t.cloneElement=function(e,t,r){if(null===e||void 0===e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var a=m({},e.props),i=e.key,o=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(o=t.ref,l=S.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(u in t)x.call(t,u)&&!P.hasOwnProperty(u)&&(a[u]=void 0===t[u]&&void 0!==s?s[u]:t[u])}var u=arguments.length-2;if(1===u)a.children=r;else if(1<u){s=Array(u);for(var c=0;c<u;c++)s[c]=arguments[c+2];a.children=s}return{$$typeof:n,type:e.type,key:i,ref:o,props:a,_owner:l}},t.createContext=function(e){return(e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:l,_context:e},e.Consumer=e},t.createElement=_,t.createFactory=function(e){var t=_.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:u,render:e}},t.isValidElement=E,t.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:T}},t.memo=function(e,t){return{$$typeof:f,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=I.transition;I.transition={};try{e()}finally{I.transition=t}},t.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},t.useCallback=function(e,t){return A.current.useCallback(e,t)},t.useContext=function(e){return A.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return A.current.useDeferredValue(e)},t.useEffect=function(e,t){return A.current.useEffect(e,t)},t.useId=function(){return A.current.useId()},t.useImperativeHandle=function(e,t,n){return A.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return A.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return A.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return A.current.useMemo(e,t)},t.useReducer=function(e,t,n){return A.current.useReducer(e,t,n)},t.useRef=function(e){return A.current.useRef(e)},t.useState=function(e){return A.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return A.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return A.current.useTransition()},t.version="18.2.0"},791:(e,t,n)=>{"use strict";e.exports=n(117)},184:(e,t,n)=>{"use strict";e.exports=n(374)},813:(e,t)=>{"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,a=e[r];if(!(0<i(a,t)))break e;e[r]=t,e[n]=a,n=r}}function r(e){return 0===e.length?null:e[0]}function a(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,a=e.length,o=a>>>1;r<o;){var l=2*(r+1)-1,s=e[l],u=l+1,c=e[u];if(0>i(s,n))u<a&&0>i(c,s)?(e[r]=c,e[u]=n,r=u):(e[r]=s,e[l]=n,r=l);else{if(!(u<a&&0>i(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"===typeof performance&&"function"===typeof performance.now){var o=performance;t.unstable_now=function(){return o.now()}}else{var l=Date,s=l.now();t.unstable_now=function(){return l.now()-s}}var u=[],c=[],f=1,d=null,h=3,p=!1,m=!1,v=!1,g="function"===typeof setTimeout?setTimeout:null,y="function"===typeof clearTimeout?clearTimeout:null,b="undefined"!==typeof setImmediate?setImmediate:null;function w(e){for(var t=r(c);null!==t;){if(null===t.callback)a(c);else{if(!(t.startTime<=e))break;a(c),t.sortIndex=t.expirationTime,n(u,t)}t=r(c)}}function k(e){if(v=!1,w(e),!m)if(null!==r(u))m=!0,I(x);else{var t=r(c);null!==t&&M(k,t.startTime-e)}}function x(e,n){m=!1,v&&(v=!1,y(E),E=-1),p=!0;var i=h;try{for(w(n),d=r(u);null!==d&&(!(d.expirationTime>n)||e&&!O());){var o=d.callback;if("function"===typeof o){d.callback=null,h=d.priorityLevel;var l=o(d.expirationTime<=n);n=t.unstable_now(),"function"===typeof l?d.callback=l:d===r(u)&&a(u),w(n)}else a(u);d=r(u)}if(null!==d)var s=!0;else{var f=r(c);null!==f&&M(k,f.startTime-n),s=!1}return s}finally{d=null,h=i,p=!1}}"undefined"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var S,P=!1,_=null,E=-1,C=5,R=-1;function O(){return!(t.unstable_now()-R<C)}function z(){if(null!==_){var e=t.unstable_now();R=e;var n=!0;try{n=_(!0,e)}finally{n?S():(P=!1,_=null)}}else P=!1}if("function"===typeof b)S=function(){b(z)};else if("undefined"!==typeof MessageChannel){var T=new MessageChannel,A=T.port2;T.port1.onmessage=z,S=function(){A.postMessage(null)}}else S=function(){g(z,0)};function I(e){_=e,P||(P=!0,S())}function M(e,n){E=g((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){m||p||(m=!0,I(x))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):C=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return h},t.unstable_getFirstCallbackNode=function(){return r(u)},t.unstable_next=function(e){switch(h){case 1:case 2:case 3:var t=3;break;default:t=h}var n=h;h=t;try{return e()}finally{h=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=h;h=e;try{return t()}finally{h=n}},t.unstable_scheduleCallback=function(e,a,i){var o=t.unstable_now();switch("object"===typeof i&&null!==i?i="number"===typeof(i=i.delay)&&0<i?o+i:o:i=o,e){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return e={id:f++,callback:a,priorityLevel:e,startTime:i,expirationTime:l=i+l,sortIndex:-1},i>o?(e.sortIndex=i,n(c,e),null===r(u)&&e===r(c)&&(v?(y(E),E=-1):v=!0,M(k,i-o))):(e.sortIndex=l,n(u,e),m||p||(m=!0,I(x))),e},t.unstable_shouldYield=O,t.unstable_wrapCallback=function(e){var t=h;return function(){var n=h;h=t;try{return e.apply(this,arguments)}finally{h=n}}}},296:(e,t,n)=>{"use strict";e.exports=n(813)}},t={};function n(r){var a=t[r];if(void 0!==a)return a.exports;var i=t[r]={exports:{}};return e[r].call(i.exports,i,i.exports,n),i.exports}n.m=e,n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.f={},n.e=e=>Promise.all(Object.keys(n.f).reduce(((t,r)=>(n.f[r](e,t),t)),[])),n.u=e=>"static/js/"+e+".9c5e822e.chunk.js",n.miniCssF=e=>{},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={},t="dummy:";n.l=(r,a,i,o)=>{if(e[r])e[r].push(a);else{var l,s;if(void 0!==i)for(var u=document.getElementsByTagName("script"),c=0;c<u.length;c++){var f=u[c];if(f.getAttribute("src")==r||f.getAttribute("data-webpack")==t+i){l=f;break}}l||(s=!0,(l=document.createElement("script")).charset="utf-8",l.timeout=120,n.nc&&l.setAttribute("nonce",n.nc),l.setAttribute("data-webpack",t+i),l.src=r),e[r]=[a];var d=(t,n)=>{l.onerror=l.onload=null,clearTimeout(h);var a=e[r];if(delete e[r],l.parentNode&&l.parentNode.removeChild(l),a&&a.forEach((e=>e(n))),t)return t(n)},h=setTimeout(d.bind(null,void 0,{type:"timeout",target:l}),12e4);l.onerror=d.bind(null,l.onerror),l.onload=d.bind(null,l.onload),s&&document.head.appendChild(l)}}})(),n.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.p="/",(()=>{var e={179:0};n.f.j=(t,r)=>{var a=n.o(e,t)?e[t]:void 0;if(0!==a)if(a)r.push(a[2]);else{var i=new Promise(((n,r)=>a=e[t]=[n,r]));r.push(a[2]=i);var o=n.p+n.u(t),l=new Error;n.l(o,(r=>{if(n.o(e,t)&&(0!==(a=e[t])&&(e[t]=void 0),a)){var i=r&&("load"===r.type?"missing":r.type),o=r&&r.target&&r.target.src;l.message="Loading chunk "+t+" failed.\n("+i+": "+o+")",l.name="ChunkLoadError",l.type=i,l.request=o,a[1](l)}}),"chunk-"+t,t)}};var t=(t,r)=>{var a,i,o=r[0],l=r[1],s=r[2],u=0;if(o.some((t=>0!==e[t]))){for(a in l)n.o(l,a)&&(n.m[a]=l[a]);if(s)s(n)}for(t&&t(r);u<o.length;u++)i=o[u],n.o(e,i)&&e[i]&&e[i][0](),e[i]=0},r=self.webpackChunkdummy=self.webpackChunkdummy||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})(),(()=>{"use strict";var e=n(791),t=n(250),r=n(222),a=n.n(r),i=n(848),o=n.n(i),l="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},f=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t},d=function(){function e(){s(this,e),this.list=[]}return u(e,[{key:"set",value:function(e,t){this.list.push({probability:e,target:t,a:0,b:1}),this.calculation()}},{key:"calculation",value:function(){for(var e=0,t=0;t<this.list.length;t++)e+=this.list[t].probability;for(var n=0;n<this.list.length;n++){var r=this.list[n],a=r.probability/e;r.a=0===n?0:this.list[n-1].b,r.b=r.a+a}}},{key:"getResult",value:function(){for(var e=Math.random(),t=0;t<this.list.length;t++){var n=this.list[t];if(e<=n.b&&e>n.a)return n.target}return this.list[0].target}}]),e}(),h=function(t){function n(t){s(this,n);var r=f(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,t));return r._iid=0,r._oid=0,r.size={width:0,height:0},r.canvasRef=e.createRef(),r}return c(n,t),u(n,[{key:"componentDidMount",value:function(){var e=this;this._oid=setTimeout((function(){e.initCanvas(),e.resize=e.resize.bind(e),window.addEventListener("resize",e.resize)}),100);var t=this.getCanvas();this.props.onCanvasDidMount&&this.props.onCanvasDidMount(t)}},{key:"initCanvas",value:function(){var e=this.getCanvas();this.props.globalCompositeOperation&&(e.getContext("2d").globalCompositeOperation=this.props.globalCompositeOperation);var t=this.setCanvasSize(e),n=t.width,r=t.height;this.heartbeatDetectionCanvasSize(e),this.props.onCanvasInited(e,n,r)}},{key:"getCanvas",value:function(){return this.canvasRef.current}},{key:"heartbeatDetectionCanvasSize",value:function(e){var t=this;this._iid=setInterval((function(){if(t.canvasRef.current&&t.canvasRef.current.clientHeight!==t.size.height){var n=t.setCanvasSize(e),r=n.width,a=n.height;t.props.onResize&&t.props.onResize(r,a)}}),100)}},{key:"componentWillUnmount",value:function(){try{window.removeEventListener("resize",this.resize),clearInterval(this._iid),clearTimeout(this._oid)}catch(e){}}},{key:"resize",value:function(){var e=this.getCanvas(),t=this.setCanvasSize(e),n=t.width,r=t.height;this.props.onResize&&this.props.onResize(n,r)}},{key:"setCanvasSize",value:function(e){var t=this.canvasRef.current.clientWidth,n=this.canvasRef.current.clientHeight;return this.size.width=t,this.size.height=n,e.width=t,e.height=n,{width:t,height:n}}},{key:"handleWaypointEnter",value:function(){a().start()}},{key:"handleWaypointLeave",value:function(){a().stop()}},{key:"getStyle",value:function(){var e=this.props.bg,t={width:"100%",height:"100%"};return!0===e?t=Object.assign(t,{position:"absolute",zIndex:-1,top:0,left:0}):e&&"object"===("undefined"===typeof e?"undefined":l(e))&&(t=Object.assign(t,e)),t}},{key:"handleMouseDown",value:function(e){this.props.onMouseDown&&this.props.onMouseDown(e)}},{key:"render",value:function(){return e.createElement("canvas",{className:"particles-bg-canvas-self",ref:this.canvasRef,onMouseDown:this.handleMouseDown.bind(this),style:this.getStyle()})}}]),n}(e.Component);function p(e,t){var n=void 0;return e?"rgba("+(n=function(e){var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)}:{}}(e)).r+","+n.g+","+n.b+", "+t+")":null}var m=function(t){function n(e){s(this,n);var t=f(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e));return t.renderProton=t.renderProton.bind(t),t}return c(n,t),u(n,[{key:"onCanvasInited",value:function(e,t,n){this.createProton(e,t,n),this.createMiniEmitter(e),a().add(this.renderProton)}},{key:"componentWillUnmount",value:function(){try{a().remove(this.renderProton),this.proton.destroy()}catch(e){}}},{key:"onResize",value:function(){}},{key:"createProton",value:function(e,t,n){var r=this,a=e.getContext("2d");this.proton=new(o());var i=new(o().Emitter);i.rate=new(o().Rate)(this.props.num?new(o().Span)(this.props.num):new(o().Span)(4,9),new(o().Span)(.8,1.3)),i.addInitialize(new(o().Mass)(1)),i.addInitialize(new(o().Radius)(1,50)),i.addInitialize(new(o().Life)(5,6)),i.addInitialize(new(o().Velocity)(new(o().Span)(5,8),new(o().Span)(30,70),"polar")),i.addBehaviour(new(o().Alpha)(1,0)),i.addBehaviour(new(o().Color)(["#36aaf3","#fd769c","#94ff22","#ffa545","#ffffff"])),i.addBehaviour(new(o().Scale)(.7,1)),i.addBehaviour(new(o().Gravity)(3)),i.addBehaviour(new(o().Collision)(i)),i.addBehaviour(this.customDeadBehaviour(e)),i.addBehaviour(new(o().CrossZone)(new(o().RectZone)(0,0,e.width,e.height),"bound")),i.p.x=Math.min(500,Math.max(e.width/2-400,50)),i.p.y=e.height/2+50,i.emit(),this.proton.addEmitter(i);var l=new(o().CanvasRenderer)(e);l.onProtonUpdate=function(){a.fillStyle=p(r.props.color,.2)||"rgba(255, 255, 255, 0.2)",a.fillRect(0,0,e.width,e.height)},this.proton.addRenderer(l)}},{key:"customDeadBehaviour",value:function(e){var t=this;return{initialize:function(e){},applyBehaviour:function(n){n.p.y+n.radius>=e.height&&n.radius>9&&(t.miniEmitteing(n),n.dead=!0)}}}},{key:"createMiniEmitter",value:function(e){var t=new(o().Emitter);t.rate=new(o().Rate)(new(o().Span)(3,6),new(o().Span)(1,2)),t.addInitialize(new(o().Mass)(1)),t.radiusInitialize=new(o().Radius),t.addInitialize(t.radiusInitialize),t.addInitialize(new(o().Life)(.5,1)),t.addInitialize(new(o().V)(new(o().Span)(1.5,3),new(o().Span)(0,70,!0),"polar")),t.colorBehaviour=new(o().Color)("#ffffff"),t.addBehaviour(new(o().Alpha)(1,0)),t.addBehaviour(t.colorBehaviour),t.addBehaviour(new(o().Gravity)(4)),t.addBehaviour(new(o().Collision)(t)),t.addBehaviour(new(o().CrossZone)(new(o().RectZone)(0,0,e.width,e.height),"bound")),this.proton.addEmitter(t),this.miniEmitter=t}},{key:"miniEmitteing",value:function(e){var t=this.miniEmitter;t.radiusInitialize.reset(.05*e.radius,.2*e.radius),t.colorBehaviour.reset(e.color),t.p.x=e.p.x,t.p.y=e.p.y,t.emit("once")}},{key:"renderProton",value:function(){this.proton&&this.proton.update()}},{key:"render",value:function(){return e.createElement(h,{bg:this.props.bg,globalCompositeOperation:"darker",onCanvasInited:this.onCanvasInited.bind(this),onResize:this.onResize.bind(this)})}}]),n}(e.Component),v=function(t){function n(e){s(this,n);var t=f(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e));return t.colors=["#529B88","#CDD180","#FFFA32","#FB6255","#FB4A53","#FF4E50","#F9D423"],t.renderProton=t.renderProton.bind(t),t}return c(n,t),u(n,[{key:"componentWillUnmount",value:function(){try{a().remove(this.renderProton),this.proton.destroy()}catch(e){}}},{key:"onCanvasInited",value:function(e,t,n){this.createProton(e,t,n),a().add(this.renderProton)}},{key:"onResize",value:function(){}},{key:"createProton",value:function(e,t,n){this.proton=new(o());var r=new(o().Emitter);r.rate=new(o().Rate)(this.props.num?new(o().Span)(this.props.num):new(o().Span)(5,8),new(o().Span)(.1,.25)),r.addInitialize(new(o().Mass)(1)),r.addInitialize(new(o().Radius)(20,200)),r.addInitialize(new(o().Life)(2,4)),r.addInitialize(new(o().Position)(new(o().RectZone)(0,0,t,n))),r.addBehaviour(new(o().Alpha)(0,1,1/0,o().easeOutCubic)),r.addBehaviour(new(o().Scale)(1,0,1/0,o().easeOutCubic)),r.addBehaviour(new(o().Color)(this.colors,"random")),r.emit(),this.proton.addEmitter(r);var a=new(o().CanvasRenderer)(e);this.proton.addRenderer(a)}},{key:"renderProton",value:function(){this.proton&&this.proton.update()}},{key:"render",value:function(){return e.createElement(h,{bg:this.props.bg,globalCompositeOperation:"darker",onCanvasInited:this.onCanvasInited.bind(this),onResize:this.onResize.bind(this)})}}]),n}(e.Component),g=function(t){function n(e){s(this,n);var t=f(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e));return t.colors=["#529B88","#CDD180","#FFFA32","#FB6255","#FB4A53","#FF4E50","#F9D423"],t.renderProton=t.renderProton.bind(t),t}return c(n,t),u(n,[{key:"componentWillUnmount",value:function(){try{a().remove(this.renderProton),this.proton.destroy()}catch(e){}}},{key:"onCanvasInited",value:function(e,t,n){this.createProton(e,t,n),a().add(this.renderProton)}},{key:"onResize",value:function(e,t){this.crossZoneBehaviour.zone.width=e,this.crossZoneBehaviour.zone.height=t,this.proton.renderers[0].resize(e,t)}},{key:"getProp",value:function(e,t){var n=(this.props.config||{})[e]||t;return Array.isArray(n)?new(o().Span)(n[0],n[1]):n}},{key:"getArrProp",value:function(e,t){var n=(this.props.config||{})[e]||t;return n?Array.isArray(n)?n:[n,n]:null}},{key:"createProton",value:function(e,t,n){var r=this.getProp("num",[5,8]),a=this.getProp("rps",[.1,.2]),i=this.getProp("mass",1),s=this.getProp("radius",[10,30]),u=this.getProp("life",[2,3]),c=this.getProp("body"),f=this.getProp("position"),d=this.getProp("v",[2,3]),h=this.getProp("tha",[-15,15]),p=this.getArrProp("alpha"),m=this.getArrProp("scale"),v=this.getArrProp("color"),g=this.getProp("cross","dead"),y=this.getProp("random"),b=this.getArrProp("rotate"),w=this.getProp("g"),k=this.getArrProp("f"),x=this.getProp("emitter");this.proton=new(o());var S=void 0;(S="follow"===x?new(o().FollowEmitter):new(o().Emitter)).rate=new(o().Rate)(r,a),S.addInitialize(new(o().Mass)(i)),S.addInitialize(new(o().Radius)(s)),S.addInitialize(new(o().Life)(u)),S.addInitialize(new(o().Velocity)(d,h,"polar")),c&&S.addInitialize(new(o().Body)(c));var P=void 0;"all"===f||"screen"===f?P=new(o().Position)(new(o().RectZone)(0,0,e.width,e.height)):"object"===("undefined"===typeof f?"undefined":l(f))?P=new(o().Position)(new(o().RectZone)(f.x,f.y,f.width,f.height)):(S.p.x=e.width/2,S.p.y=e.height/2),S.addInitialize(P);var _=p?new(o().Alpha)(p[0],p[1]):new(o().Alpha)(0,1),E=m?new(o().Scale)(m[0],m[1]):new(o().Scale)(1,.2),C=v?new(o().Color)(v[0],v[1]):new(o().Color)(this.colors);S.addBehaviour(_),S.addBehaviour(E),c||S.addBehaviour(C),b&&(!0===b[0]||"rotate"===b[0]?S.addBehaviour(new(o().Rotate)):S.addBehaviour(new(o().Rotate)(b[0],b[1])));var R=new(o().RectZone)(0,0,e.width,e.height),O=new(o().CrossZone)(R,g);S.addBehaviour(O),y&&S.addBehaviour(new(o().RandomDrift)(y,y,.05)),w&&S.addBehaviour(new(o().G)(w)),k&&S.addBehaviour(new(o().F)(k[0],k[1])),S.emit(),this.proton.addEmitter(S);var z=this.createRenderer(e);this.proton.addRenderer(z),this.emitter=S,this.crossZoneBehaviour=O}},{key:"createRenderer",value:function(e){var t=e.width,n=e.height,r=e.getContext("2d"),a=new(o().CanvasRenderer)(e),i=this.getProp("onUpdate");i&&(a.onProtonUpdate=function(){i(r,t,n)});var l=this.getProp("onParticleCreated");l&&(a.onParticleCreated=function(e){l(r,e)});var s=this.getProp("onParticleUpdate");return s&&(a.onParticleUpdate=function(e){s(r,e)}),a}},{key:"renderProton",value:function(){this.proton&&this.proton.update()}},{key:"handleMouseDown",value:function(e){var t=this.getProp("onMouseDown");t&&t(e)}},{key:"render",value:function(){var t=this.props.globalCompositeOperation||this.props.operation||"source-over";return e.createElement(h,{bg:this.props.bg,onMouseDown:this.handleMouseDown.bind(this),globalCompositeOperation:t,onCanvasInited:this.onCanvasInited.bind(this),onResize:this.onResize.bind(this)})}}]),n}(e.Component),y=function(t){function n(e){s(this,n);var t=f(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e));return t.renderProton=t.renderProton.bind(t),t}return c(n,t),u(n,[{key:"onCanvasDidMount",value:function(e){this.props.color&&(e.style.backgroundColor=this.props.color)}},{key:"componentWillUnmount",value:function(){try{a().remove(this.renderProton),this.proton.destroy()}catch(e){}}},{key:"onCanvasInited",value:function(e,t,n){this.createProton(e,t,n),a().add(this.renderProton)}},{key:"onResize",value:function(e,t){this.crossZoneBehaviour.zone.width=e,this.crossZoneBehaviour.zone.height=t,this.proton.renderers[0].resize(e,t)}},{key:"createProton",value:function(e,t,n){this.proton=new(o());var r=new(o().Emitter);r.damping=.008,r.rate=new(o().Rate)(this.props.num?this.props.num:250),r.addInitialize(new(o().Mass)(1)),r.addInitialize(new(o().Radius)(4)),r.addInitialize(new(o().Velocity)(new(o().Span)(1.5),new(o().Span)(0,360),"polar"));var a={x:t/2,y:n/2},i=new(o().Attraction)(a,0,0),l=new(o().CrossZone)(new(o().RectZone)(0,0,e.width,e.height),"cross");r.addBehaviour(new(o().Color)("random")),r.addBehaviour(i,l),r.addBehaviour(new(o().RandomDrift)(10,10,.05)),r.p.x=e.width/2,r.p.y=e.height/2,r.emit("once"),this.proton.addEmitter(r),this.proton.addRenderer(this.createRenderer(e)),this.crossZoneBehaviour=l}},{key:"createRenderer",value:function(e){var t=this,n=e.getContext("2d"),r=new(o().CanvasRenderer)(e);return r.onProtonUpdate=function(){n.fillStyle=p(t.props.color,.02)||"rgba(0, 0, 0, 0.02)",n.fillRect(0,0,e.width,e.height)},r.onParticleUpdate=function(e){n.beginPath(),n.strokeStyle=e.color,n.lineWidth=1,n.moveTo(e.old.p.x,e.old.p.y),n.lineTo(e.p.x,e.p.y),n.closePath(),n.stroke()},r}},{key:"renderProton",value:function(){this.proton&&this.proton.update()}},{key:"render",value:function(){return e.createElement(h,{bg:this.props.bg,globalCompositeOperation:"darker",onCanvasDidMount:this.onCanvasDidMount.bind(this),onCanvasInited:this.onCanvasInited.bind(this),onResize:this.onResize.bind(this)})}}]),n}(e.Component),b=function(t){function n(e){s(this,n);var t=f(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e));return t.hue=0,t.index=0,t.colorTemplate="hsla(hue,80%,50%, 0.75)",t.renderProton=t.renderProton.bind(t),t}return c(n,t),u(n,[{key:"onCanvasDidMount",value:function(e){this.props.color&&(e.style.backgroundColor=this.props.color)}},{key:"onCanvasInited",value:function(e,t,n){this.canvas=e,this.createProton(e,t,n),a().add(this.renderProton)}},{key:"onResize",value:function(e,t){this.crossZoneBehaviour.zone.width=e,this.crossZoneBehaviour.zone.height=t,this.proton.renderers[0].resize(e,t)}},{key:"createProton",value:function(e,t,n){this.proton=new(o());var r=new(o().Emitter);r.damping=.008,r.rate=new(o().Rate)(this.props.num?this.props.num:150),r.addInitialize(new(o().Mass)(1)),r.addInitialize(new(o().Radius)(8)),r.addInitialize(new(o().V)(new(o().Span)(.1,.5),new(o().Span)(0,360),"polar")),r.addInitialize(new(o().Position)(new(o().CircleZone)(e.width/2,e.height/2,100)));var a=new(o().CrossZone)(new(o().RectZone)(0,0,e.width,e.height),"cross");r.addBehaviour(a),this.repulsion=new(o().Repulsion)({x:e.width/2,y:e.height/2-100},3,300),this.attraction=new(o().Attraction)({x:e.width/2,y:e.height/2},3,200),r.addBehaviour(this.attraction,this.repulsion),r.addBehaviour(new(o().Color)("random")),r.addBehaviour(new(o().RandomDrift)(20,15,.15)),r.emit("once"),this.proton.addEmitter(r),this.proton.addRenderer(this.createRenderer(e)),this.crossZoneBehaviour=a}},{key:"createRenderer",value:function(e){var t=this,n=e.getContext("2d"),r=new(o().CanvasRenderer)(e);return r.onProtonUpdate=function(){t.hue+=1,n.fillStyle=p(t.props.color,.02)||"rgba(0, 0, 0, 0.02)",n.fillRect(0,0,e.width,e.height)},r.onParticleCreated=function(e){e.data.begin=o().MathUtil.randomAToB(1,120),e.data.tha=o().MathUtil.randomAToB(0,2*Math.PI)},r.onParticleUpdate=function(e){var r=e.data.begin+t.hue;e.color=t.colorTemplate.replace("hue",r%360);var a=.25*e.radius*Math.cos(e.data.tha+=.01)+.75*e.radius;n.beginPath(),n.fillStyle=e.color,n.arc(e.p.x,e.p.y,a,0,2*Math.PI,!0),n.closePath(),n.fill()},r}},{key:"componentWillUnmount",value:function(){try{a().remove(this.renderProton),this.proton.destroy()}catch(e){}}},{key:"renderProton",value:function(){var e=this.canvas;this.proton.update(),this.index%200===0&&(this.attraction.targetPosition.x=Math.random()*e.width,this.attraction.targetPosition.y=Math.random()*e.height,this.repulsion.targetPosition.x=Math.random()*e.width,this.repulsion.targetPosition.y=Math.random()*e.height),this.index++}},{key:"render",value:function(){return e.createElement(h,{bg:this.props.bg,onCanvasDidMount:this.onCanvasDidMount.bind(this),onCanvasInited:this.onCanvasInited.bind(this),onResize:this.onResize.bind(this)})}}]),n}(e.Component),w=function(t){function n(e){s(this,n);var t=f(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e));return t.colors=["#fad390","#81ecec","#ffffff","#badc58","#f9ca24","#FEA47F"],t.renderProton=t.renderProton.bind(t),t}return c(n,t),u(n,[{key:"componentWillUnmount",value:function(){try{a().remove(this.renderProton),this.proton.destroy()}catch(e){}}},{key:"onCanvasDidMount",value:function(e){}},{key:"onCanvasInited",value:function(e,t,n){this.createProton(e,t,n),a().add(this.renderProton)}},{key:"onResize",value:function(e,t){this.crossZoneBehaviour.zone.width=e+300,this.crossZoneBehaviour.zone.height=t+300,this.proton.renderers[0].resize(e,t)}},{key:"createProton",value:function(e,t,n){this.proton=new(o());var r=new(o().Emitter);r.rate=new(o().Rate)(this.props.num?this.props.num:50),r.damping=0,r.addInitialize(new(o().Mass)(1)),r.addInitialize(new(o().Radius)(4,70)),r.addInitialize(new(o().Velocity)(new(o().Span)(2,10),new(o().Span)(0),"polar")),r.addInitialize(new(o().Position)(new(o().LineZone)(0,e.height,e.width,e.height)));var a=new(o().CrossZone)(new(o().RectZone)(-150,-150,e.width+300,e.height+300),"cross");r.addBehaviour(a),r.addBehaviour(new(o().Alpha)(o().getSpan(.1,.55))),r.addBehaviour(new(o().Color)(this.colors)),r.emit("once"),this.proton.addEmitter(r);var i=this.createRenderer(e);this.proton.addRenderer(i),this.crossZoneBehaviour=a,r.preEmit(2)}},{key:"createRenderer",value:function(e){var t=e.getContext("2d"),n=new(o().CustomRenderer);return n.onProtonUpdate=function(){t.clearRect(0,0,e.width,e.height)},n.onParticleCreated=function(e){var t=e.radius||60,n=o().MathUtil.randomAToB(100,200,"int");e.data.w=t,e.data.h=n},n.onParticleUpdate=function(e){var n=e.data.w,r=e.data.h;t.save(),t.globalAlpha=e.alpha,t.fillStyle=e.color,t.translate(e.p.x,e.p.y),t.rotate(o().MathUtil.degreeTransform(e.rotation)),t.translate(-e.p.x,-e.p.y),t.beginPath(),t.rect(e.p.x-n/2,e.p.y-r/2,n,r),t.closePath(),t.fill(),t.globalAlpha=1,t.restore()},n}},{key:"renderProton",value:function(){this.proton&&this.proton.update()}},{key:"render",value:function(){return e.createElement(h,{bg:this.props.bg,globalCompositeOperation:"lighter",onCanvasDidMount:this.onCanvasDidMount.bind(this),onCanvasInited:this.onCanvasInited.bind(this),onResize:this.onResize.bind(this)})}}]),n}(e.Component),k=function(t){function n(e){s(this,n);var t=f(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e));return t.renderProton=t.renderProton.bind(t),t}return c(n,t),u(n,[{key:"onCanvasInited",value:function(e,t,n){this.createProton(e,t,n),a().add(this.renderProton)}},{key:"componentWillUnmount",value:function(){try{a().remove(this.renderProton),this.proton.destroy()}catch(e){}}},{key:"onResize",value:function(e,t){this.crossZoneBehaviour.zone.width=e,this.crossZoneBehaviour.zone.height=t,this.proton.renderers[0].resize(e,t)}},{key:"createProton",value:function(e,t,n){this.proton=new(o());var r=new(o().Emitter);r.rate=new(o().Rate)(this.props.num?new(o().Span)(this.props.num):new(o().Span)(100),new(o().Span)(.05,.2)),r.addInitialize(new(o().Mass)(1)),r.addInitialize(new(o().Radius)(1,4)),r.addInitialize(new(o().Life)(1/0));var a=new(o().Position)(new(o().RectZone)(0,0,t,n));r.addInitialize(a),r.addInitialize(new(o().Velocity)(new(o().Span)(.3,.6),new(o().Span)(0,360),"polar")),r.addBehaviour(new(o().Alpha)(o().getSpan(.2,.9))),r.addBehaviour(new(o().Color)(this.props.color||"#333")),this.crossZoneBehaviour=new(o().CrossZone)(new(o().RectZone)(0,0,t,n),"cross"),r.addBehaviour(this.crossZoneBehaviour),r.emit("once"),r.damping=0,this.proton.addEmitter(r),this.proton.addRenderer(this.createRenderer(e,r))}},{key:"createRenderer",value:function(e,t){var n=this,r=e.getContext("2d"),a=new(o().CanvasRenderer)(e);return a.onProtonUpdateAfter=function(){for(var e=t.particles,a=0;a<e.length;a++)for(var i=a+1;i<e.length;i++){var o=e[a],l=e[i],s=o.p.distanceTo(l.p);if(s<140){var u=.5*(1-s/140);r.strokeStyle=p(n.props.color,u)||"rgba(3, 3, 3, "+u+")",r.beginPath(),r.moveTo(o.p.x,o.p.y),r.lineTo(l.p.x,l.p.y),r.closePath(),r.stroke()}}},a}},{key:"renderProton",value:function(){this.proton&&this.proton.update()}},{key:"render",value:function(){return e.createElement(h,{bg:this.props.bg,globalCompositeOperation:"darker",onCanvasInited:this.onCanvasInited.bind(this),onResize:this.onResize.bind(this)})}}]),n}(e.Component),x=function(t){function n(e){s(this,n);var t=f(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e));return t.colors=["#74b9ff","#e84393","#6c5ce7","#00b894","#fdcb6e","#006266","#1B1464"],t.renderProton=t.renderProton.bind(t),t}return c(n,t),u(n,[{key:"componentWillUnmount",value:function(){try{a().remove(this.renderProton),this.proton.destroy()}catch(e){}}},{key:"onCanvasInited",value:function(e,t,n){this.createProton(e,t,n),a().add(this.renderProton)}},{key:"onResize",value:function(e,t){this.crossZoneBehaviour.zone.width=e,this.crossZoneBehaviour.zone.height=t,this.proton.renderers[0].resize(e,t)}},{key:"createProton",value:function(e,t,n){this.proton=new(o());var r=new(o().Emitter);r.rate=new(o().Rate)(this.props.num||20),r.damping=.008,r.addInitialize(new(o().Mass)(1)),r.addInitialize(new(o().Radius)(30,600)),r.addInitialize(new(o().Velocity)(new(o().Span)(.5),new(o().Span)(0,360),"polar")),r.addInitialize(new(o().Position)(new(o().RectZone)(0,0,e.width,e.height)));var a=new(o().CrossZone)(new(o().RectZone)(0,0,e.width,e.height),"cross");r.addBehaviour(a),r.addBehaviour(new(o().Alpha)(o().getSpan(.35,.55))),r.addBehaviour(new(o().Color)(this.getColor())),r.addBehaviour(new(o().RandomDrift)(50,50,.5)),r.emit("once"),this.proton.addEmitter(r);var i=new(o().CanvasRenderer)(e);this.proton.addRenderer(i),this.crossZoneBehaviour=a}},{key:"getColor",value:function(){var e=this.colors;return this.props.color&&(e=Array.isArray(this.props.color)?this.props.color:[this.props.color]),e}},{key:"renderProton",value:function(){this.proton&&this.proton.update()}},{key:"render",value:function(){return e.createElement(h,{bg:this.props.bg,globalCompositeOperation:"darken",onCanvasInited:this.onCanvasInited.bind(this),onResize:this.onResize.bind(this)})}}]),n}(e.Component),S=function(t){function n(e){s(this,n);var t=f(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e));return t.renderProton=t.renderProton.bind(t),t}return c(n,t),u(n,[{key:"onCanvasDidMount",value:function(e){}},{key:"onCanvasInited",value:function(e,t,n){this.createProton(e,t,n),this.renderProton()}},{key:"onResize",value:function(e,t){this.crossZoneBehaviour.zone.width=e,this.crossZoneBehaviour.zone.height=t,this.proton.renderers[0].resize(e,t)}},{key:"createProton",value:function(e,t,n){this.proton=new(o());var r=new(o().Emitter);r.damping=.008,r.rate=new(o().Rate)(this.props.num?this.props.num:50),r.addInitialize(new(o().Mass)(1)),r.addInitialize(new(o().Radius)(5,9)),r.addInitialize(new(o().Velocity)(new(o().Span)(1.5),new(o().Span)(0,360),"polar")),r.addInitialize(new(o().Position)(new(o().RectZone)(0,0,t,n)));var a={x:t/2,y:n/2},i=new(o().Attraction)(a,0,0),l=new(o().CrossZone)(new(o().RectZone)(0,0,e.width,e.height),"bound");r.addBehaviour(new(o().Color)(this.props.color||"#bbb")),r.addBehaviour(i,l),r.addBehaviour(new(o().RandomDrift)(15,15,.05)),r.emit("once"),this.proton.addEmitter(r),this.proton.addRenderer(this.createRenderer(e)),this.crossZoneBehaviour=l}},{key:"createRenderer",value:function(e){var t=e.getContext("2d"),n=new(o().CanvasRenderer)(e);n.onProtonUpdate=function(){t.clearRect(0,0,e.width,e.height)},n.onParticleCreated=function(e){e.data.points=[],e.data.index=0},n.onParticleUpdate=function(e){i(e),e.data.index%8===0&&r(e),a(e),e.data.index++};var r=function(e){e.data.points.unshift(e.p.y),e.data.points.unshift(e.p.x),e.data.points.length>10&&(e.data.points.pop(),e.data.points.pop())},a=function(e){t.fillStyle=e.color,t.beginPath(),t.arc(e.p.x,e.p.y,e.radius,0,2*Math.PI,!0),t.closePath(),t.fill()},i=function(e){t.beginPath(),t.strokeStyle=e.color,t.moveTo(e.p.x,e.p.y);for(var n=e.data.points.length,r=0;r<n;r+=2){var a=e.data.points[r],i=e.data.points[r+1];t.lineWidth=l(r,n),t.lineTo(a,i),t.stroke()}},l=function(e,t){if(t<=2)return 1;var n=5/(2/t-1),r=n*((e+2)/t)+(1-n);return r>>=0};return n}},{key:"renderProton",value:function(){var e=this;a().add((function(){e.proton.update()}))}},{key:"render",value:function(){return e.createElement(h,{bg:this.props.bg,globalCompositeOperation:"darker",onCanvasDidMount:this.onCanvasDidMount.bind(this),onCanvasInited:this.onCanvasInited.bind(this),onResize:this.onResize.bind(this)})}}]),n}(e.Component),P=["#f6b93b","#18dcff","#cd84f1","#ED4C67","#ffffff","#b71540","#32ff7e","#ff3838"],_=function(t){function n(e){s(this,n);var t=f(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e));return t.renderProton=t.renderProton.bind(t),t}return c(n,t),u(n,[{key:"onCanvasInited",value:function(e,t,n){this.createProton(e),this.createEmitter({canvas:e,x:t/2,y:n/2,mainEmitter:!0,zone:"bound"}),a().add(this.renderProton)}},{key:"componentWillUnmount",value:function(){try{a().remove(this.renderProton),this.proton.destroy()}catch(e){}}},{key:"onResize",value:function(){}},{key:"createProton",value:function(e){this.proton=new(o());var t=this.createRenderer(e);this.proton.addRenderer(t)}},{key:"createRenderer",value:function(e){var t=e.getContext("2d"),n=new(o().CustomRenderer);n.onProtonUpdate=function(){t.clearRect(0,0,e.width,e.height)},n.onParticleCreated=function(e){e.data.count=o().MathUtil.randomAToB(3,10,!0)},n.onParticleUpdate=function(e){t.save(),t.globalAlpha=e.alpha,t.fillStyle=e.color,t.translate(e.p.x,e.p.y),t.rotate(o().MathUtil.degreeTransform(e.rotation)),t.translate(-e.p.x,-e.p.y),t.beginPath(),r(e,e.data.count),t.closePath(),t.fill(),t.globalAlpha=1,t.restore()},n.onParticleDead=function(e){};var r=function(e,n){if(n>=7)t.arc(e.p.x,e.p.y,e.radius,0,2*Math.PI,!0);else for(var r=e.radius,a=0;a<=n;a++){var i=e.p.x+r*Math.cos(Math.PI/180*360/n*a),o=e.p.y+r*Math.sin(Math.PI/180*360/n*a);0===a?t.moveTo(i,o):t.lineTo(i,o)}};return n}},{key:"createEmitter",value:function(e){var t=e.mainEmitter,n=e.canvas,r=e.x,a=e.y,i=e.radius,l=e.color,s=void 0===l?P:l,u=e.zone,c=void 0===u?"dead":u,f=e.once,d=void 0===f?"all":f,h=e.alpha,p=void 0===h?.85:h,m=e.gravity,v=void 0===m?3.5:m,g=this.proton.pool.get(o().Emitter);if(!g.completed){g.rate=new(o().Rate)(this.props.num?new(o().Span)(this.props.num):new(o().Span)(4,9),new(o().Span)(1.6,2.2));var y=t?new(o().Radius)(10,110):new(o().Radius)(3,i);g.addInitialize(new(o().Mass)(1)),g.addInitialize(y),g.addInitialize(new(o().Life)(3,6)),g.addInitialize(new(o().Velocity)(new(o().Span)(4,6),new(o().Span)(-90,90),"polar")),g.addBehaviour(new(o().Alpha)(p,.2)),g.addBehaviour(new(o().Color)(s)),g.addBehaviour(new(o().Scale)(1,.3)),g.addBehaviour(new(o().Rotate)),g.addBehaviour(new(o().Gravity)(v)),g.addBehaviour(this.customDeadBehaviour(n)),g.addBehaviour(new(o().CrossZone)(new(o().RectZone)(0,0,n.width,n.height),c))}g.p.x=r,g.p.y=a,"once"===d?g.emit("once"):g.emit(),this.proton.addEmitter(g)}},{key:"expireEmitter",value:function(e){var t=this;setTimeout((function(){e.completed=!0,t.proton.pool.expire(e),t.proton.removeEmitter(e)}),500)}},{key:"customDeadBehaviour",value:function(e){var t=this;return{initialize:function(e){e.data=e.data||{},e.data.oldRadius=e.radius,e.data.emitterCount=0},applyBehaviour:function(n){n.radius<5||n.data.emitterCount>=2||n.radius<=1/3*n.data.oldRadius&&(n.data.emitterCount++,t.createEmitter({canvas:e,x:n.p.x,y:n.p.y,radius:.5*n.radius,alpha:.5,gravity:5,color:n.color,once:"once"}))}}}},{key:"renderProton",value:function(){this.proton&&this.proton.update()}},{key:"render",value:function(){return e.createElement(h,{bg:this.props.bg,globalCompositeOperation:"darker",onCanvasInited:this.onCanvasInited.bind(this),onResize:this.onResize.bind(this)})}}]),n}(e.Component),E=function(t){function n(e){s(this,n);var t=f(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e));return t.colors=["#529B88","#CDD180","#FFFA32","#FB6255","#FB4A53","#FF4E50","#F9D423"],t.renderProton=t.renderProton.bind(t),t}return c(n,t),u(n,[{key:"componentWillUnmount",value:function(){try{a().remove(this.renderProton),this.proton.destroy()}catch(e){}}},{key:"onCanvasInited",value:function(e,t,n){this.createProton(e,t,n),a().add(this.renderProton)}},{key:"onResize",value:function(){}},{key:"createProton",value:function(e,t,n){this.proton=new(o());var r=new(o().Emitter);r.rate=new(o().Rate)(this.props.num?new(o().Span)(this.props.num):new(o().Span)(4,8),new(o().Span)(.1,.25)),r.addInitialize(new(o().Mass)(1)),r.addInitialize(new(o().Radius)(20,200)),r.addInitialize(new(o().Life)(2,4)),r.addInitialize(new(o().Velocity)(new(o().Span)(4,7),new(o().Span)(0,360),"polar")),r.addInitialize(new(o().Position)(new(o().CircleZone)(t/2,n/2,100))),r.addBehaviour(new(o().Alpha)(1,0)),r.addBehaviour(new(o().Scale)(.2,1)),r.addBehaviour(this.createCustomBehaviour()),r.addBehaviour(new(o().Color)(this.colors,"random")),r.emit(),this.proton.addEmitter(r);var a=new(o().CanvasRenderer)(e);this.proton.addRenderer(a)}},{key:"createCustomBehaviour",value:function(){return{initialize:function(e){e.f=new(o().Vector2D)(0,0)},applyBehaviour:function(e){var t=e.v.length()/1e3,n=e.v.getGradient();n+=1.57,e.f.x=1e3*t*Math.cos(n),e.f.y=1e3*t*Math.sin(n),e.a.add(e.f)}}}},{key:"renderProton",value:function(){this.proton&&this.proton.update()}},{key:"render",value:function(){return e.createElement(h,{bg:this.props.bg,globalCompositeOperation:"xor",onCanvasInited:this.onCanvasInited.bind(this),onResize:this.onResize.bind(this)})}}]),n}(e.Component),C=function(t){function n(e){return s(this,n),f(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e))}return c(n,t),u(n,[{key:"getRandom",value:function(){var t=this.props,n=t.num,r=t.bg,a=t.color;return this.random||(this.random=new d,this.random.set(.25,e.createElement(v,{num:n,bg:r,color:a})),this.random.set(.2,e.createElement(m,{num:n,bg:r,color:a})),this.random.set(.2,e.createElement(y,{num:n,bg:r,color:a})),this.random.set(.16,e.createElement(b,{num:n,bg:r,color:a})),this.random.set(.18,e.createElement(x,{num:n,bg:r,color:a})),this.random.set(.04,e.createElement(k,{num:n,bg:r,color:a})),this.random.set(.1,e.createElement(_,{num:n,bg:r,color:a})),this.random.set(.08,e.createElement(w,{num:n,bg:r,color:a})),this.random.set(.18,e.createElement(S,{num:n,bg:r,color:a})),this.random.set(.15,e.createElement(E,{num:n,bg:r,color:a}))),this.random.getResult()}},{key:"getBgParticles",value:function(){var t=this.props,n=t.type,r=t.num,a=t.bg,i=t.color,o=t.config,l=void 0;switch(String(n).toLowerCase()){case"color":default:l=e.createElement(v,{num:r,bg:a,color:i});break;case"ball":l=e.createElement(m,{num:r,bg:a,color:i});break;case"lines":l=e.createElement(y,{num:r,bg:a,color:i});break;case"thick":l=e.createElement(b,{num:r,bg:a,color:i});break;case"circle":l=e.createElement(x,{num:r,bg:a,color:i});break;case"cobweb":l=e.createElement(k,{num:r,bg:a,color:i});break;case"polygon":l=e.createElement(_,{num:r,bg:a,color:i});break;case"square":l=e.createElement(w,{num:r,bg:a,color:i});break;case"tadpole":l=e.createElement(S,{num:r,bg:a,color:i});break;case"fountain":l=e.createElement(E,{num:r,bg:a,color:i});break;case"custom":l=e.createElement(g,{bg:a,config:o});break;case"random":l=this.getRandom(r)}return l}},{key:"render",value:function(){var t=this.getBgParticles();return e.createElement(e.Fragment,null,t)}}]),n}(e.Component);const R=C;var O=n(184),z=Object.defineProperty,T=Object.defineProperties,A=Object.getOwnPropertyDescriptors,I=Object.getOwnPropertySymbols,M=Object.prototype.hasOwnProperty,N=Object.prototype.propertyIsEnumerable,L=(e,t,n)=>t in e?z(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,D=(e,t)=>{for(var n in t||(t={}))M.call(t,n)&&L(e,n,t[n]);if(I)for(var n of I(t))N.call(t,n)&&L(e,n,t[n]);return e},F=(e,t)=>T(e,A(t)),B=class extends e.Component{constructor(t){super(t),this.ref=e.createRef(),this.state={style:{}};this.width=null,this.height=null,this.left=null,this.top=null,this.transitionTimeout=null,this.updateCall=null,this.element=null,this.settings=Object.assign({},{reverse:!1,max:35,perspective:1e3,easing:"cubic-bezier(.03,.98,.52,.99)",scale:"1.1",speed:"1000",transition:!0,axis:null,reset:!0},this.props.options),this.reverse=this.settings.reverse?-1:1,this.onMouseEnter=this.onMouseEnter.bind(this,this.props.onMouseEnter),this.onMouseMove=this.onMouseMove.bind(this,this.props.onMouseMove),this.onMouseLeave=this.onMouseLeave.bind(this,this.props.onMouseLeave)}componentDidMount(){this.element=this.ref.current,setTimeout((()=>{this.element.parentElement.querySelector(":hover")===this.element&&this.onMouseEnter()}),0)}componentWillUnmount(){clearTimeout(this.transitionTimeout),cancelAnimationFrame(this.updateCall)}onMouseEnter(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:()=>{},t=arguments.length>1?arguments[1]:void 0;return this.updateElementPosition(),this.setState(Object.assign({},this.state,{style:F(D({},this.state.style),{willChange:"transform"})})),this.setTransition(),e(t)}reset(){window.requestAnimationFrame((()=>{this.setState(Object.assign({},this.state,{style:F(D({},this.state.style),{transform:"perspective(".concat(this.settings.perspective,"px) rotateX(0deg) rotateY(0deg) scale3d(1, 1, 1)")})}))}))}onMouseMove(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:()=>{},t=arguments.length>1?arguments[1]:void 0;return t.persist(),null!==this.updateCall&&window.cancelAnimationFrame(this.updateCall),this.event=t,this.updateCall=requestAnimationFrame(this.update.bind(this,t)),e(t)}setTransition(){clearTimeout(this.transitionTimeout),this.setState(Object.assign({},this.state,{style:F(D({},this.state.style),{transition:"".concat(this.settings.speed,"ms ").concat(this.settings.easing)})})),this.transitionTimeout=setTimeout((()=>{this.setState(Object.assign({},this.state,{style:F(D({},this.state.style),{transition:""})}))}),this.settings.speed)}onMouseLeave(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:()=>{},t=arguments.length>1?arguments[1]:void 0;return this.setTransition(),this.settings.reset&&this.reset(),e(t)}getValues(e){const t=(e.nativeEvent.clientX-this.left)/this.width,n=(e.nativeEvent.clientY-this.top)/this.height,r=Math.min(Math.max(t,0),1),a=Math.min(Math.max(n,0),1);return{tiltX:(this.reverse*(this.settings.max/2-r*this.settings.max)).toFixed(2),tiltY:(this.reverse*(a*this.settings.max-this.settings.max/2)).toFixed(2),percentageX:100*r,percentageY:100*a}}updateElementPosition(){const e=this.element.getBoundingClientRect();this.width=this.element.offsetWidth,this.height=this.element.offsetHeight,this.left=e.left,this.top=e.top}update(e){const t=this.getValues(e);this.setState(Object.assign({},this.state,{style:F(D({},this.state.style),{transform:"perspective(".concat(this.settings.perspective,"px) rotateX(").concat("x"===this.settings.axis?0:t.tiltY,"deg) rotateY(").concat("y"===this.settings.axis?0:t.tiltX,"deg) scale3d(").concat(this.settings.scale,", ").concat(this.settings.scale,", ").concat(this.settings.scale,")")})})),this.updateCall=null}render(){const e=Object.assign({},this.props.style,this.state.style);return(0,O.jsx)("div",{style:e,ref:this.ref,className:this.props.className,onMouseEnter:this.onMouseEnter,onMouseMove:this.onMouseMove,onMouseLeave:this.onMouseLeave,children:this.props.children})}};const j=n.p+"static/media/img.8d314c6eb13d123018f3.png",U=()=>(0,O.jsx)("div",{className:"pa2 ma4 mt0",children:(0,O.jsx)(B,{className:"br2 shadow-2",style:{height:80,width:80},children:(0,O.jsx)("div",{className:"",children:(0,O.jsx)("img",{alt:"img",src:j})})})}),V=e=>{let{onInputChange:t,onButtonSubmit:n}=e;return(0,O.jsxs)("div",{children:[(0,O.jsx)("p",{className:"f3",children:"Faces Will be Detected Here"}),(0,O.jsx)("div",{className:"center",children:(0,O.jsxs)("div",{className:"pa4 br3 shadow-5",children:[(0,O.jsx)("input",{placeholder:"Paste image link",className:"f4 pa2 w-70 center",type:"text",onChange:t}),(0,O.jsx)("button",{className:"ma4 pointer button",onClick:n,children:"Detect"})]})})]})},H=e=>{let{imageUrl:t,box:n}=e;return(0,O.jsx)("div",{className:"center ma",children:(0,O.jsxs)("div",{className:"absolute mt2 mb2",children:[(0,O.jsx)("img",{id:"inputimage",alt:"",src:t,width:"500px",height:"auto"}),(0,O.jsx)("div",{className:"bounding-box",style:{top:n.topRow,bottom:n.bottomRow,left:n.leftCol,right:n.rightCol}})]})})};function W(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?W(Object(n),!0).forEach((function(t){Q(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):W(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function $(e){return $="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$(e)}function q(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Q(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Z(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,a,i=[],o=!0,l=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(s){l=!0,a=s}finally{try{o||null==n.return||n.return()}finally{if(l)throw a}}return i}(e,t)||G(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function X(e){return function(e){if(Array.isArray(e))return K(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||G(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function G(e,t){if(e){if("string"===typeof e)return K(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?K(e,t):void 0}}function K(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var J=function(){},ee={},te={},ne=null,re={mark:J,measure:J};try{"undefined"!==typeof window&&(ee=window),"undefined"!==typeof document&&(te=document),"undefined"!==typeof MutationObserver&&(ne=MutationObserver),"undefined"!==typeof performance&&(re=performance)}catch(Or){}var ae,ie,oe,le,se,ue=(ee.navigator||{}).userAgent,ce=void 0===ue?"":ue,fe=ee,de=te,he=ne,pe=re,me=(fe.document,!!de.documentElement&&!!de.head&&"function"===typeof de.addEventListener&&"function"===typeof de.createElement),ve=~ce.indexOf("MSIE")||~ce.indexOf("Trident/"),ge="___FONT_AWESOME___",ye=16,be="fa",we="svg-inline--fa",ke="data-fa-i2svg",xe="data-fa-pseudo-element",Se="data-fa-pseudo-element-pending",Pe="data-prefix",_e="data-icon",Ee="fontawesome-i2svg",Ce="async",Re=["HTML","HEAD","STYLE","SCRIPT"],Oe=function(){try{return!0}catch(Or){return!1}}(),ze="classic",Te="sharp",Ae=[ze,Te];function Ie(e){return new Proxy(e,{get:function(e,t){return t in e?e[t]:e[ze]}})}var Me=Ie((Q(ae={},ze,{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"}),Q(ae,Te,{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"}),ae)),Ne=Ie((Q(ie={},ze,{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab",kit:"fak"}),Q(ie,Te,{solid:"fass",regular:"fasr",light:"fasl",thin:"fast"}),ie)),Le=Ie((Q(oe={},ze,{fab:"fa-brands",fad:"fa-duotone",fak:"fa-kit",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"}),Q(oe,Te,{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"}),oe)),De=Ie((Q(le={},ze,{"fa-brands":"fab","fa-duotone":"fad","fa-kit":"fak","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"}),Q(le,Te,{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"}),le)),Fe=/fa(s|r|l|t|d|b|k|ss|sr|sl|st)?[\-\ ]/,Be="fa-layers-text",je=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp|Kit)?.*/i,Ue=Ie((Q(se={},ze,{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"}),Q(se,Te,{900:"fass",400:"fasr",300:"fasl",100:"fast"}),se)),Ve=[1,2,3,4,5,6,7,8,9,10],He=Ve.concat([11,12,13,14,15,16,17,18,19,20]),We=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],Ye={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},$e=new Set;Object.keys(Ne[ze]).map($e.add.bind($e)),Object.keys(Ne[Te]).map($e.add.bind($e));var qe=[].concat(Ae,X($e),["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",Ye.GROUP,Ye.SWAP_OPACITY,Ye.PRIMARY,Ye.SECONDARY]).concat(Ve.map((function(e){return"".concat(e,"x")}))).concat(He.map((function(e){return"w-".concat(e)}))),Qe=fe.FontAwesomeConfig||{};if(de&&"function"===typeof de.querySelector){[["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"]].forEach((function(e){var t=Z(e,2),n=t[0],r=t[1],a=function(e){return""===e||"false"!==e&&("true"===e||e)}(function(e){var t=de.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}(n));void 0!==a&&null!==a&&(Qe[r]=a)}))}var Ze={styleDefault:"solid",familyDefault:"classic",cssPrefix:be,replacementClass:we,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};Qe.familyPrefix&&(Qe.cssPrefix=Qe.familyPrefix);var Xe=Y(Y({},Ze),Qe);Xe.autoReplaceSvg||(Xe.observeMutations=!1);var Ge={};Object.keys(Ze).forEach((function(e){Object.defineProperty(Ge,e,{enumerable:!0,set:function(t){Xe[e]=t,Ke.forEach((function(e){return e(Ge)}))},get:function(){return Xe[e]}})})),Object.defineProperty(Ge,"familyPrefix",{enumerable:!0,set:function(e){Xe.cssPrefix=e,Ke.forEach((function(e){return e(Ge)}))},get:function(){return Xe.cssPrefix}}),fe.FontAwesomeConfig=Ge;var Ke=[];var Je=ye,et={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};var tt="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function nt(){for(var e=12,t="";e-- >0;)t+=tt[62*Math.random()|0];return t}function rt(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function at(e){return e.classList?rt(e.classList):(e.getAttribute("class")||"").split(" ").filter((function(e){return e}))}function it(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function ot(e){return Object.keys(e||{}).reduce((function(t,n){return t+"".concat(n,": ").concat(e[n].trim(),";")}),"")}function lt(e){return e.size!==et.size||e.x!==et.x||e.y!==et.y||e.rotate!==et.rotate||e.flipX||e.flipY}var st=':root, :host {\n --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid";\n --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular";\n --fa-font-light: normal 300 1em/1 "Font Awesome 6 Light";\n --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Thin";\n --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";\n --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-light: normal 300 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-thin: normal 100 1em/1 "Font Awesome 6 Sharp";\n --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";\n}\n\nsvg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {\n overflow: visible;\n box-sizing: content-box;\n}\n\n.svg-inline--fa {\n display: var(--fa-display, inline-block);\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-2xs {\n vertical-align: 0.1em;\n}\n.svg-inline--fa.fa-xs {\n vertical-align: 0em;\n}\n.svg-inline--fa.fa-sm {\n vertical-align: -0.0714285705em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.2em;\n}\n.svg-inline--fa.fa-xl {\n vertical-align: -0.25em;\n}\n.svg-inline--fa.fa-2xl {\n vertical-align: -0.3125em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-li {\n width: var(--fa-li-width, 2em);\n top: 0.25em;\n}\n.svg-inline--fa.fa-fw {\n width: var(--fa-fw-width, 1.25em);\n}\n\n.fa-layers svg.svg-inline--fa {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.fa-layers-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: var(--fa-counter-background-color, #ff253a);\n border-radius: var(--fa-counter-border-radius, 1em);\n box-sizing: border-box;\n color: var(--fa-inverse, #fff);\n line-height: var(--fa-counter-line-height, 1);\n max-width: var(--fa-counter-max-width, 5em);\n min-width: var(--fa-counter-min-width, 1.5em);\n overflow: hidden;\n padding: var(--fa-counter-padding, 0.25em 0.5em);\n right: var(--fa-right, 0);\n text-overflow: ellipsis;\n top: var(--fa-top, 0);\n -webkit-transform: scale(var(--fa-counter-scale, 0.25));\n transform: scale(var(--fa-counter-scale, 0.25));\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: var(--fa-bottom, 0);\n right: var(--fa-right, 0);\n top: auto;\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: bottom right;\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: var(--fa-bottom, 0);\n left: var(--fa-left, 0);\n right: auto;\n top: auto;\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: bottom left;\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n top: var(--fa-top, 0);\n right: var(--fa-right, 0);\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: var(--fa-left, 0);\n right: auto;\n top: var(--fa-top, 0);\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: top left;\n transform-origin: top left;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-2xs {\n font-size: 0.625em;\n line-height: 0.1em;\n vertical-align: 0.225em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n line-height: 0.0833333337em;\n vertical-align: 0.125em;\n}\n\n.fa-sm {\n font-size: 0.875em;\n line-height: 0.0714285718em;\n vertical-align: 0.0535714295em;\n}\n\n.fa-lg {\n font-size: 1.25em;\n line-height: 0.05em;\n vertical-align: -0.075em;\n}\n\n.fa-xl {\n font-size: 1.5em;\n line-height: 0.0416666682em;\n vertical-align: -0.125em;\n}\n\n.fa-2xl {\n font-size: 2em;\n line-height: 0.03125em;\n vertical-align: -0.1875em;\n}\n\n.fa-fw {\n text-align: center;\n width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-left: var(--fa-li-margin, 2.5em);\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: calc(var(--fa-li-width, 2em) * -1);\n position: absolute;\n text-align: center;\n width: var(--fa-li-width, 2em);\n line-height: inherit;\n}\n\n.fa-border {\n border-color: var(--fa-border-color, #eee);\n border-radius: var(--fa-border-radius, 0.1em);\n border-style: var(--fa-border-style, solid);\n border-width: var(--fa-border-width, 0.08em);\n padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);\n}\n\n.fa-pull-left {\n float: left;\n margin-right: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-pull-right {\n float: right;\n margin-left: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-beat {\n -webkit-animation-name: fa-beat;\n animation-name: fa-beat;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-bounce {\n -webkit-animation-name: fa-bounce;\n animation-name: fa-bounce;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n}\n\n.fa-fade {\n -webkit-animation-name: fa-fade;\n animation-name: fa-fade;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-beat-fade {\n -webkit-animation-name: fa-beat-fade;\n animation-name: fa-beat-fade;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-flip {\n -webkit-animation-name: fa-flip;\n animation-name: fa-flip;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-shake {\n -webkit-animation-name: fa-shake;\n animation-name: fa-shake;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin {\n -webkit-animation-name: fa-spin;\n animation-name: fa-spin;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 2s);\n animation-duration: var(--fa-animation-duration, 2s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin-reverse {\n --fa-animation-direction: reverse;\n}\n\n.fa-pulse,\n.fa-spin-pulse {\n -webkit-animation-name: fa-spin;\n animation-name: fa-spin;\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, steps(8));\n animation-timing-function: var(--fa-animation-timing, steps(8));\n}\n\n@media (prefers-reduced-motion: reduce) {\n .fa-beat,\n.fa-bounce,\n.fa-fade,\n.fa-beat-fade,\n.fa-flip,\n.fa-pulse,\n.fa-shake,\n.fa-spin,\n.fa-spin-pulse {\n -webkit-animation-delay: -1ms;\n animation-delay: -1ms;\n -webkit-animation-duration: 1ms;\n animation-duration: 1ms;\n -webkit-animation-iteration-count: 1;\n animation-iteration-count: 1;\n -webkit-transition-delay: 0s;\n transition-delay: 0s;\n -webkit-transition-duration: 0s;\n transition-duration: 0s;\n }\n}\n@-webkit-keyframes fa-beat {\n 0%, 90% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 45% {\n -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@keyframes fa-beat {\n 0%, 90% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 45% {\n -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@-webkit-keyframes fa-bounce {\n 0% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n}\n@keyframes fa-bounce {\n 0% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n}\n@-webkit-keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@-webkit-keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@-webkit-keyframes fa-flip {\n 50% {\n -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@keyframes fa-flip {\n 50% {\n -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@-webkit-keyframes fa-shake {\n 0% {\n -webkit-transform: rotate(-15deg);\n transform: rotate(-15deg);\n }\n 4% {\n -webkit-transform: rotate(15deg);\n transform: rotate(15deg);\n }\n 8%, 24% {\n -webkit-transform: rotate(-18deg);\n transform: rotate(-18deg);\n }\n 12%, 28% {\n -webkit-transform: rotate(18deg);\n transform: rotate(18deg);\n }\n 16% {\n -webkit-transform: rotate(-22deg);\n transform: rotate(-22deg);\n }\n 20% {\n -webkit-transform: rotate(22deg);\n transform: rotate(22deg);\n }\n 32% {\n -webkit-transform: rotate(-12deg);\n transform: rotate(-12deg);\n }\n 36% {\n -webkit-transform: rotate(12deg);\n transform: rotate(12deg);\n }\n 40%, 100% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n}\n@keyframes fa-shake {\n 0% {\n -webkit-transform: rotate(-15deg);\n transform: rotate(-15deg);\n }\n 4% {\n -webkit-transform: rotate(15deg);\n transform: rotate(15deg);\n }\n 8%, 24% {\n -webkit-transform: rotate(-18deg);\n transform: rotate(-18deg);\n }\n 12%, 28% {\n -webkit-transform: rotate(18deg);\n transform: rotate(18deg);\n }\n 16% {\n -webkit-transform: rotate(-22deg);\n transform: rotate(-22deg);\n }\n 20% {\n -webkit-transform: rotate(22deg);\n transform: rotate(22deg);\n }\n 32% {\n -webkit-transform: rotate(-12deg);\n transform: rotate(-12deg);\n }\n 36% {\n -webkit-transform: rotate(12deg);\n transform: rotate(12deg);\n }\n 40%, 100% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n}\n@-webkit-keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n@keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n -webkit-transform: rotate(90deg);\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n -webkit-transform: rotate(180deg);\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n -webkit-transform: rotate(270deg);\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n -webkit-transform: scale(-1, 1);\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n -webkit-transform: scale(1, -1);\n transform: scale(1, -1);\n}\n\n.fa-flip-both,\n.fa-flip-horizontal.fa-flip-vertical {\n -webkit-transform: scale(-1, -1);\n transform: scale(-1, -1);\n}\n\n.fa-rotate-by {\n -webkit-transform: rotate(var(--fa-rotate-angle, none));\n transform: rotate(var(--fa-rotate-angle, none));\n}\n\n.fa-stack {\n display: inline-block;\n vertical-align: middle;\n height: 2em;\n position: relative;\n width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n z-index: var(--fa-stack-z-index, auto);\n}\n\n.svg-inline--fa.fa-stack-1x {\n height: 1em;\n width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n height: 2em;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: var(--fa-inverse, #fff);\n}\n\n.sr-only,\n.fa-sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.sr-only-focusable:not(:focus),\n.fa-sr-only-focusable:not(:focus) {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black;\n}\n\n.fad.fa-inverse,\n.fa-duotone.fa-inverse {\n color: var(--fa-inverse, #fff);\n}';function ut(){var e=be,t=we,n=Ge.cssPrefix,r=Ge.replacementClass,a=st;if(n!==e||r!==t){var i=new RegExp("\\.".concat(e,"\\-"),"g"),o=new RegExp("\\--".concat(e,"\\-"),"g"),l=new RegExp("\\.".concat(t),"g");a=a.replace(i,".".concat(n,"-")).replace(o,"--".concat(n,"-")).replace(l,".".concat(r))}return a}var ct=!1;function ft(){Ge.autoAddCss&&!ct&&(!function(e){if(e&&me){var t=de.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var n=de.head.childNodes,r=null,a=n.length-1;a>-1;a--){var i=n[a],o=(i.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(o)>-1&&(r=i)}de.head.insertBefore(t,r)}}(ut()),ct=!0)}var dt={mixout:function(){return{dom:{css:ut,insertCss:ft}}},hooks:function(){return{beforeDOMElementCreation:function(){ft()},beforeI2svg:function(){ft()}}}},ht=fe||{};ht[ge]||(ht[ge]={}),ht[ge].styles||(ht[ge].styles={}),ht[ge].hooks||(ht[ge].hooks={}),ht[ge].shims||(ht[ge].shims=[]);var pt=ht[ge],mt=[],vt=!1;function gt(e){var t=e.tag,n=e.attributes,r=void 0===n?{}:n,a=e.children,i=void 0===a?[]:a;return"string"===typeof e?it(e):"<".concat(t," ").concat(function(e){return Object.keys(e||{}).reduce((function(t,n){return t+"".concat(n,'="').concat(it(e[n]),'" ')}),"").trim()}(r),">").concat(i.map(gt).join(""),"</").concat(t,">")}function yt(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}me&&((vt=(de.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(de.readyState))||de.addEventListener("DOMContentLoaded",(function e(){de.removeEventListener("DOMContentLoaded",e),vt=1,mt.map((function(e){return e()}))})));var bt=function(e,t,n,r){var a,i,o,l=Object.keys(e),s=l.length,u=void 0!==r?function(e,t){return function(n,r,a,i){return e.call(t,n,r,a,i)}}(t,r):t;for(void 0===n?(a=1,o=e[l[0]]):(a=0,o=n);a<s;a++)o=u(o,e[i=l[a]],i,e);return o};function wt(e){var t=function(e){for(var t=[],n=0,r=e.length;n<r;){var a=e.charCodeAt(n++);if(a>=55296&&a<=56319&&n<r){var i=e.charCodeAt(n++);56320==(64512&i)?t.push(((1023&a)<<10)+(1023&i)+65536):(t.push(a),n--)}else t.push(a)}return t}(e);return 1===t.length?t[0].toString(16):null}function kt(e){return Object.keys(e).reduce((function(t,n){var r=e[n];return!!r.icon?t[r.iconName]=r.icon:t[n]=r,t}),{})}function xt(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).skipHooks,r=void 0!==n&&n,a=kt(t);"function"!==typeof pt.hooks.addPack||r?pt.styles[e]=Y(Y({},pt.styles[e]||{}),a):pt.hooks.addPack(e,kt(t)),"fas"===e&&xt("fa",t)}var St,Pt,_t,Et=pt.styles,Ct=pt.shims,Rt=(Q(St={},ze,Object.values(Le[ze])),Q(St,Te,Object.values(Le[Te])),St),Ot=null,zt={},Tt={},At={},It={},Mt={},Nt=(Q(Pt={},ze,Object.keys(Me[ze])),Q(Pt,Te,Object.keys(Me[Te])),Pt);function Lt(e,t){var n,r=t.split("-"),a=r[0],i=r.slice(1).join("-");return a!==e||""===i||(n=i,~qe.indexOf(n))?null:i}var Dt,Ft=function(){var e=function(e){return bt(Et,(function(t,n,r){return t[r]=bt(n,e,{}),t}),{})};zt=e((function(e,t,n){(t[3]&&(e[t[3]]=n),t[2])&&t[2].filter((function(e){return"number"===typeof e})).forEach((function(t){e[t.toString(16)]=n}));return e})),Tt=e((function(e,t,n){(e[n]=n,t[2])&&t[2].filter((function(e){return"string"===typeof e})).forEach((function(t){e[t]=n}));return e})),Mt=e((function(e,t,n){var r=t[2];return e[n]=n,r.forEach((function(t){e[t]=n})),e}));var t="far"in Et||Ge.autoFetchSvg,n=bt(Ct,(function(e,n){var r=n[0],a=n[1],i=n[2];return"far"!==a||t||(a="fas"),"string"===typeof r&&(e.names[r]={prefix:a,iconName:i}),"number"===typeof r&&(e.unicodes[r.toString(16)]={prefix:a,iconName:i}),e}),{names:{},unicodes:{}});At=n.names,It=n.unicodes,Ot=Wt(Ge.styleDefault,{family:Ge.familyDefault})};function Bt(e,t){return(zt[e]||{})[t]}function jt(e,t){return(Mt[e]||{})[t]}function Ut(e){return At[e]||{prefix:null,iconName:null}}function Vt(){return Ot}Dt=function(e){Ot=Wt(e.styleDefault,{family:Ge.familyDefault})},Ke.push(Dt),Ft();var Ht=function(){return{prefix:null,iconName:null,rest:[]}};function Wt(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).family,n=void 0===t?ze:t,r=Me[n][e],a=Ne[n][e]||Ne[n][r],i=e in pt.styles?e:null;return a||i||null}var Yt=(Q(_t={},ze,Object.keys(Le[ze])),Q(_t,Te,Object.keys(Le[Te])),_t);function $t(e){var t,n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).skipLookups,r=void 0!==n&&n,a=(Q(t={},ze,"".concat(Ge.cssPrefix,"-").concat(ze)),Q(t,Te,"".concat(Ge.cssPrefix,"-").concat(Te)),t),i=null,o=ze;(e.includes(a[ze])||e.some((function(e){return Yt[ze].includes(e)})))&&(o=ze),(e.includes(a[Te])||e.some((function(e){return Yt[Te].includes(e)})))&&(o=Te);var l=e.reduce((function(e,t){var n=Lt(Ge.cssPrefix,t);if(Et[t]?(t=Rt[o].includes(t)?De[o][t]:t,i=t,e.prefix=t):Nt[o].indexOf(t)>-1?(i=t,e.prefix=Wt(t,{family:o})):n?e.iconName=n:t!==Ge.replacementClass&&t!==a[ze]&&t!==a[Te]&&e.rest.push(t),!r&&e.prefix&&e.iconName){var l="fa"===i?Ut(e.iconName):{},s=jt(e.prefix,e.iconName);l.prefix&&(i=null),e.iconName=l.iconName||s||e.iconName,e.prefix=l.prefix||e.prefix,"far"!==e.prefix||Et.far||!Et.fas||Ge.autoFetchSvg||(e.prefix="fas")}return e}),Ht());return(e.includes("fa-brands")||e.includes("fab"))&&(l.prefix="fab"),(e.includes("fa-duotone")||e.includes("fad"))&&(l.prefix="fad"),l.prefix||o!==Te||!Et.fass&&!Ge.autoFetchSvg||(l.prefix="fass",l.iconName=jt(l.prefix,l.iconName)||l.iconName),"fa"!==l.prefix&&"fa"!==i||(l.prefix=Vt()||"fas"),l}var qt=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.definitions={}}var t,n,r;return t=e,n=[{key:"add",value:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var a=n.reduce(this._pullDefinitions,{});Object.keys(a).forEach((function(t){e.definitions[t]=Y(Y({},e.definitions[t]||{}),a[t]),xt(t,a[t]);var n=Le[ze][t];n&&xt(n,a[t]),Ft()}))}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(e,t){var n=t.prefix&&t.iconName&&t.icon?{0:t}:t;return Object.keys(n).map((function(t){var r=n[t],a=r.prefix,i=r.iconName,o=r.icon,l=o[2];e[a]||(e[a]={}),l.length>0&&l.forEach((function(t){"string"===typeof t&&(e[a][t]=o)})),e[a][i]=o})),e}}],n&&q(t.prototype,n),r&&q(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),Qt=[],Zt={},Xt={},Gt=Object.keys(Xt);function Kt(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),a=2;a<n;a++)r[a-2]=arguments[a];return(Zt[e]||[]).forEach((function(e){t=e.apply(null,[t].concat(r))})),t}function Jt(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];(Zt[e]||[]).forEach((function(e){e.apply(null,n)}))}function en(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);return Xt[e]?Xt[e].apply(null,t):void 0}function tn(e){"fa"===e.prefix&&(e.prefix="fas");var t=e.iconName,n=e.prefix||Vt();if(t)return t=jt(n,t)||t,yt(nn.definitions,n,t)||yt(pt.styles,n,t)}var nn=new qt,rn={i2svg:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return me?(Jt("beforeI2svg",e),en("pseudoElements2svg",e),en("i2svg",e)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.autoReplaceSvgRoot;!1===Ge.autoReplaceSvg&&(Ge.autoReplaceSvg=!0),Ge.observeMutations=!0,e=function(){ln({autoReplaceSvgRoot:n}),Jt("watch",t)},me&&(vt?setTimeout(e,0):mt.push(e))}},an={icon:function(e){if(null===e)return null;if("object"===$(e)&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:jt(e.prefix,e.iconName)||e.iconName};if(Array.isArray(e)&&2===e.length){var t=0===e[1].indexOf("fa-")?e[1].slice(3):e[1],n=Wt(e[0]);return{prefix:n,iconName:jt(n,t)||t}}if("string"===typeof e&&(e.indexOf("".concat(Ge.cssPrefix,"-"))>-1||e.match(Fe))){var r=$t(e.split(" "),{skipLookups:!0});return{prefix:r.prefix||Vt(),iconName:jt(r.prefix,r.iconName)||r.iconName}}if("string"===typeof e){var a=Vt();return{prefix:a,iconName:jt(a,e)||e}}}},on={noAuto:function(){Ge.autoReplaceSvg=!1,Ge.observeMutations=!1,Jt("noAuto")},config:Ge,dom:rn,parse:an,library:nn,findIconDefinition:tn,toHtml:gt},ln=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).autoReplaceSvgRoot,t=void 0===e?de:e;(Object.keys(pt.styles).length>0||Ge.autoFetchSvg)&&me&&Ge.autoReplaceSvg&&on.dom.i2svg({node:t})};function sn(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map((function(e){return gt(e)}))}}),Object.defineProperty(e,"node",{get:function(){if(me){var t=de.createElement("div");return t.innerHTML=e.html,t.children}}}),e}function un(e){var t=e.icons,n=t.main,r=t.mask,a=e.prefix,i=e.iconName,o=e.transform,l=e.symbol,s=e.title,u=e.maskId,c=e.titleId,f=e.extra,d=e.watchable,h=void 0!==d&&d,p=r.found?r:n,m=p.width,v=p.height,g="fak"===a,y=[Ge.replacementClass,i?"".concat(Ge.cssPrefix,"-").concat(i):""].filter((function(e){return-1===f.classes.indexOf(e)})).filter((function(e){return""!==e||!!e})).concat(f.classes).join(" "),b={children:[],attributes:Y(Y({},f.attributes),{},{"data-prefix":a,"data-icon":i,class:y,role:f.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(m," ").concat(v)})},w=g&&!~f.classes.indexOf("fa-fw")?{width:"".concat(m/v*16*.0625,"em")}:{};h&&(b.attributes[ke]=""),s&&(b.children.push({tag:"title",attributes:{id:b.attributes["aria-labelledby"]||"title-".concat(c||nt())},children:[s]}),delete b.attributes.title);var k=Y(Y({},b),{},{prefix:a,iconName:i,main:n,mask:r,maskId:u,transform:o,symbol:l,styles:Y(Y({},w),f.styles)}),x=r.found&&n.found?en("generateAbstractMask",k)||{children:[],attributes:{}}:en("generateAbstractIcon",k)||{children:[],attributes:{}},S=x.children,P=x.attributes;return k.children=S,k.attributes=P,l?function(e){var t=e.prefix,n=e.iconName,r=e.children,a=e.attributes,i=e.symbol,o=!0===i?"".concat(t,"-").concat(Ge.cssPrefix,"-").concat(n):i;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:Y(Y({},a),{},{id:o}),children:r}]}]}(k):function(e){var t=e.children,n=e.main,r=e.mask,a=e.attributes,i=e.styles,o=e.transform;if(lt(o)&&n.found&&!r.found){var l={x:n.width/n.height/2,y:.5};a.style=ot(Y(Y({},i),{},{"transform-origin":"".concat(l.x+o.x/16,"em ").concat(l.y+o.y/16,"em")}))}return[{tag:"svg",attributes:a,children:t}]}(k)}function cn(e){var t=e.content,n=e.width,r=e.height,a=e.transform,i=e.title,o=e.extra,l=e.watchable,s=void 0!==l&&l,u=Y(Y(Y({},o.attributes),i?{title:i}:{}),{},{class:o.classes.join(" ")});s&&(u[ke]="");var c=Y({},o.styles);lt(a)&&(c.transform=function(e){var t=e.transform,n=e.width,r=void 0===n?ye:n,a=e.height,i=void 0===a?ye:a,o=e.startCentered,l=void 0!==o&&o,s="";return s+=l&&ve?"translate(".concat(t.x/Je-r/2,"em, ").concat(t.y/Je-i/2,"em) "):l?"translate(calc(-50% + ".concat(t.x/Je,"em), calc(-50% + ").concat(t.y/Je,"em)) "):"translate(".concat(t.x/Je,"em, ").concat(t.y/Je,"em) "),s+="scale(".concat(t.size/Je*(t.flipX?-1:1),", ").concat(t.size/Je*(t.flipY?-1:1),") "),s+"rotate(".concat(t.rotate,"deg) ")}({transform:a,startCentered:!0,width:n,height:r}),c["-webkit-transform"]=c.transform);var f=ot(c);f.length>0&&(u.style=f);var d=[];return d.push({tag:"span",attributes:u,children:[t]}),i&&d.push({tag:"span",attributes:{class:"sr-only"},children:[i]}),d}var fn=pt.styles;function dn(e){var t=e[0],n=e[1],r=Z(e.slice(4),1)[0];return{found:!0,width:t,height:n,icon:Array.isArray(r)?{tag:"g",attributes:{class:"".concat(Ge.cssPrefix,"-").concat(Ye.GROUP)},children:[{tag:"path",attributes:{class:"".concat(Ge.cssPrefix,"-").concat(Ye.SECONDARY),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(Ge.cssPrefix,"-").concat(Ye.PRIMARY),fill:"currentColor",d:r[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:r}}}}var hn={found:!1,width:512,height:512};function pn(e,t){var n=t;return"fa"===t&&null!==Ge.styleDefault&&(t=Vt()),new Promise((function(r,a){en("missingIconAbstract");if("fa"===n){var i=Ut(e)||{};e=i.iconName||e,t=i.prefix||t}if(e&&t&&fn[t]&&fn[t][e])return r(dn(fn[t][e]));!function(e,t){Oe||Ge.showMissingIcons||!e||console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}(e,t),r(Y(Y({},hn),{},{icon:Ge.showMissingIcons&&e&&en("missingIconAbstract")||{}}))}))}var mn=function(){},vn=Ge.measurePerformance&&pe&&pe.mark&&pe.measure?pe:{mark:mn,measure:mn},gn='FA "6.5.1"',yn=function(e){vn.mark("".concat(gn," ").concat(e," ends")),vn.measure("".concat(gn," ").concat(e),"".concat(gn," ").concat(e," begins"),"".concat(gn," ").concat(e," ends"))},bn={begin:function(e){return vn.mark("".concat(gn," ").concat(e," begins")),function(){return yn(e)}},end:yn},wn=function(){};function kn(e){return"string"===typeof(e.getAttribute?e.getAttribute(ke):null)}function xn(e){return de.createElementNS("http://www.w3.org/2000/svg",e)}function Sn(e){return de.createElement(e)}function Pn(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).ceFn,n=void 0===t?"svg"===e.tag?xn:Sn:t;if("string"===typeof e)return de.createTextNode(e);var r=n(e.tag);return Object.keys(e.attributes||[]).forEach((function(t){r.setAttribute(t,e.attributes[t])})),(e.children||[]).forEach((function(e){r.appendChild(Pn(e,{ceFn:n}))})),r}var _n={replace:function(e){var t=e[0];if(t.parentNode)if(e[1].forEach((function(e){t.parentNode.insertBefore(Pn(e),t)})),null===t.getAttribute(ke)&&Ge.keepOriginalSource){var n=de.createComment(function(e){var t=" ".concat(e.outerHTML," ");return"".concat(t,"Font Awesome fontawesome.com ")}(t));t.parentNode.replaceChild(n,t)}else t.remove()},nest:function(e){var t=e[0],n=e[1];if(~at(t).indexOf(Ge.replacementClass))return _n.replace(e);var r=new RegExp("".concat(Ge.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){var a=n[0].attributes.class.split(" ").reduce((function(e,t){return t===Ge.replacementClass||t.match(r)?e.toSvg.push(t):e.toNode.push(t),e}),{toNode:[],toSvg:[]});n[0].attributes.class=a.toSvg.join(" "),0===a.toNode.length?t.removeAttribute("class"):t.setAttribute("class",a.toNode.join(" "))}var i=n.map((function(e){return gt(e)})).join("\n");t.setAttribute(ke,""),t.innerHTML=i}};function En(e){e()}function Cn(e,t){var n="function"===typeof t?t:wn;if(0===e.length)n();else{var r=En;Ge.mutateApproach===Ce&&(r=fe.requestAnimationFrame||En),r((function(){var t=!0===Ge.autoReplaceSvg?_n.replace:_n[Ge.autoReplaceSvg]||_n.replace,r=bn.begin("mutate");e.map(t),r(),n()}))}}var Rn=!1;function On(){Rn=!0}function zn(){Rn=!1}var Tn=null;function An(e){if(he&&Ge.observeMutations){var t=e.treeCallback,n=void 0===t?wn:t,r=e.nodeCallback,a=void 0===r?wn:r,i=e.pseudoElementsCallback,o=void 0===i?wn:i,l=e.observeMutationsRoot,s=void 0===l?de:l;Tn=new he((function(e){if(!Rn){var t=Vt();rt(e).forEach((function(e){if("childList"===e.type&&e.addedNodes.length>0&&!kn(e.addedNodes[0])&&(Ge.searchPseudoElements&&o(e.target),n(e.target)),"attributes"===e.type&&e.target.parentNode&&Ge.searchPseudoElements&&o(e.target.parentNode),"attributes"===e.type&&kn(e.target)&&~We.indexOf(e.attributeName))if("class"===e.attributeName&&function(e){var t=e.getAttribute?e.getAttribute(Pe):null,n=e.getAttribute?e.getAttribute(_e):null;return t&&n}(e.target)){var r=$t(at(e.target)),i=r.prefix,l=r.iconName;e.target.setAttribute(Pe,i||t),l&&e.target.setAttribute(_e,l)}else(s=e.target)&&s.classList&&s.classList.contains&&s.classList.contains(Ge.replacementClass)&&a(e.target);var s}))}})),me&&Tn.observe(s,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function In(e){var t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=void 0!==e.innerText?e.innerText.trim():"",a=$t(at(e));return a.prefix||(a.prefix=Vt()),t&&n&&(a.prefix=t,a.iconName=n),a.iconName&&a.prefix||(a.prefix&&r.length>0&&(a.iconName=function(e,t){return(Tt[e]||{})[t]}(a.prefix,e.innerText)||Bt(a.prefix,wt(e.innerText))),!a.iconName&&Ge.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(a.iconName=e.firstChild.data)),a}function Mn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0},n=In(e),r=n.iconName,a=n.prefix,i=n.rest,o=function(e){var t=rt(e.attributes).reduce((function(e,t){return"class"!==e.name&&"style"!==e.name&&(e[t.name]=t.value),e}),{}),n=e.getAttribute("title"),r=e.getAttribute("data-fa-title-id");return Ge.autoA11y&&(n?t["aria-labelledby"]="".concat(Ge.replacementClass,"-title-").concat(r||nt()):(t["aria-hidden"]="true",t.focusable="false")),t}(e),l=Kt("parseNodeAttributes",{},e),s=t.styleParser?function(e){var t=e.getAttribute("style"),n=[];return t&&(n=t.split(";").reduce((function(e,t){var n=t.split(":"),r=n[0],a=n.slice(1);return r&&a.length>0&&(e[r]=a.join(":").trim()),e}),{})),n}(e):[];return Y({iconName:r,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:a,transform:et,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:i,styles:s,attributes:o}},l)}var Nn=pt.styles;function Ln(e){var t="nest"===Ge.autoReplaceSvg?Mn(e,{styleParser:!1}):Mn(e);return~t.extra.classes.indexOf(Be)?en("generateLayersText",e,t):en("generateSvgReplacementMutation",e,t)}var Dn=new Set;function Fn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!me)return Promise.resolve();var n=de.documentElement.classList,r=function(e){return n.add("".concat(Ee,"-").concat(e))},a=function(e){return n.remove("".concat(Ee,"-").concat(e))},i=Ge.autoFetchSvg?Dn:Ae.map((function(e){return"fa-".concat(e)})).concat(Object.keys(Nn));i.includes("fa")||i.push("fa");var o=[".".concat(Be,":not([").concat(ke,"])")].concat(i.map((function(e){return".".concat(e,":not([").concat(ke,"])")}))).join(", ");if(0===o.length)return Promise.resolve();var l=[];try{l=rt(e.querySelectorAll(o))}catch(Or){}if(!(l.length>0))return Promise.resolve();r("pending"),a("complete");var s=bn.begin("onTree"),u=l.reduce((function(e,t){try{var n=Ln(t);n&&e.push(n)}catch(Or){Oe||"MissingIcon"===Or.name&&console.error(Or)}return e}),[]);return new Promise((function(e,n){Promise.all(u).then((function(n){Cn(n,(function(){r("active"),r("complete"),a("pending"),"function"===typeof t&&t(),s(),e()}))})).catch((function(e){s(),n(e)}))}))}function Bn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;Ln(e).then((function(e){e&&Cn([e],t)}))}Ae.map((function(e){Dn.add("fa-".concat(e))})),Object.keys(Me[ze]).map(Dn.add.bind(Dn)),Object.keys(Me[Te]).map(Dn.add.bind(Dn)),Dn=X(Dn);var jn=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.transform,r=void 0===n?et:n,a=t.symbol,i=void 0!==a&&a,o=t.mask,l=void 0===o?null:o,s=t.maskId,u=void 0===s?null:s,c=t.title,f=void 0===c?null:c,d=t.titleId,h=void 0===d?null:d,p=t.classes,m=void 0===p?[]:p,v=t.attributes,g=void 0===v?{}:v,y=t.styles,b=void 0===y?{}:y;if(e){var w=e.prefix,k=e.iconName,x=e.icon;return sn(Y({type:"icon"},e),(function(){return Jt("beforeDOMElementCreation",{iconDefinition:e,params:t}),Ge.autoA11y&&(f?g["aria-labelledby"]="".concat(Ge.replacementClass,"-title-").concat(h||nt()):(g["aria-hidden"]="true",g.focusable="false")),un({icons:{main:dn(x),mask:l?dn(l.icon):{found:!1,width:null,height:null,icon:{}}},prefix:w,iconName:k,transform:Y(Y({},et),r),symbol:i,title:f,maskId:u,titleId:h,extra:{attributes:g,styles:b,classes:m}})}))}},Un={mixout:function(){return{icon:(e=jn,function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=(t||{}).icon?t:tn(t||{}),a=n.mask;return a&&(a=(a||{}).icon?a:tn(a||{})),e(r,Y(Y({},n),{},{mask:a}))})};var e},hooks:function(){return{mutationObserverCallbacks:function(e){return e.treeCallback=Fn,e.nodeCallback=Bn,e}}},provides:function(e){e.i2svg=function(e){var t=e.node,n=void 0===t?de:t,r=e.callback;return Fn(n,void 0===r?function(){}:r)},e.generateSvgReplacementMutation=function(e,t){var n=t.iconName,r=t.title,a=t.titleId,i=t.prefix,o=t.transform,l=t.symbol,s=t.mask,u=t.maskId,c=t.extra;return new Promise((function(t,f){Promise.all([pn(n,i),s.iconName?pn(s.iconName,s.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then((function(s){var f=Z(s,2),d=f[0],h=f[1];t([e,un({icons:{main:d,mask:h},prefix:i,iconName:n,transform:o,symbol:l,maskId:u,title:r,titleId:a,extra:c,watchable:!0})])})).catch(f)}))},e.generateAbstractIcon=function(e){var t,n=e.children,r=e.attributes,a=e.main,i=e.transform,o=ot(e.styles);return o.length>0&&(r.style=o),lt(i)&&(t=en("generateAbstractTransformGrouping",{main:a,transform:i,containerWidth:a.width,iconWidth:a.width})),n.push(t||a.icon),{children:n,attributes:r}}}},Vn={mixout:function(){return{layer:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.classes,r=void 0===n?[]:n;return sn({type:"layer"},(function(){Jt("beforeDOMElementCreation",{assembler:e,params:t});var n=[];return e((function(e){Array.isArray(e)?e.map((function(e){n=n.concat(e.abstract)})):n=n.concat(e.abstract)})),[{tag:"span",attributes:{class:["".concat(Ge.cssPrefix,"-layers")].concat(X(r)).join(" ")},children:n}]}))}}}},Hn={mixout:function(){return{counter:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.title,r=void 0===n?null:n,a=t.classes,i=void 0===a?[]:a,o=t.attributes,l=void 0===o?{}:o,s=t.styles,u=void 0===s?{}:s;return sn({type:"counter",content:e},(function(){return Jt("beforeDOMElementCreation",{content:e,params:t}),function(e){var t=e.content,n=e.title,r=e.extra,a=Y(Y(Y({},r.attributes),n?{title:n}:{}),{},{class:r.classes.join(" ")}),i=ot(r.styles);i.length>0&&(a.style=i);var o=[];return o.push({tag:"span",attributes:a,children:[t]}),n&&o.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),o}({content:e.toString(),title:r,extra:{attributes:l,styles:u,classes:["".concat(Ge.cssPrefix,"-layers-counter")].concat(X(i))}})}))}}}},Wn={mixout:function(){return{text:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.transform,r=void 0===n?et:n,a=t.title,i=void 0===a?null:a,o=t.classes,l=void 0===o?[]:o,s=t.attributes,u=void 0===s?{}:s,c=t.styles,f=void 0===c?{}:c;return sn({type:"text",content:e},(function(){return Jt("beforeDOMElementCreation",{content:e,params:t}),cn({content:e,transform:Y(Y({},et),r),title:i,extra:{attributes:u,styles:f,classes:["".concat(Ge.cssPrefix,"-layers-text")].concat(X(l))}})}))}}},provides:function(e){e.generateLayersText=function(e,t){var n=t.title,r=t.transform,a=t.extra,i=null,o=null;if(ve){var l=parseInt(getComputedStyle(e).fontSize,10),s=e.getBoundingClientRect();i=s.width/l,o=s.height/l}return Ge.autoA11y&&!n&&(a.attributes["aria-hidden"]="true"),Promise.resolve([e,cn({content:e.innerHTML,width:i,height:o,transform:r,title:n,extra:a,watchable:!0})])}}},Yn=new RegExp('"',"ug"),$n=[1105920,1112319];function qn(e,t){var n="".concat(Se).concat(t.replace(":","-"));return new Promise((function(r,a){if(null!==e.getAttribute(n))return r();var i=rt(e.children).filter((function(e){return e.getAttribute(xe)===t}))[0],o=fe.getComputedStyle(e,t),l=o.getPropertyValue("font-family").match(je),s=o.getPropertyValue("font-weight"),u=o.getPropertyValue("content");if(i&&!l)return e.removeChild(i),r();if(l&&"none"!==u&&""!==u){var c=o.getPropertyValue("content"),f=~["Sharp"].indexOf(l[2])?Te:ze,d=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(l[2])?Ne[f][l[2].toLowerCase()]:Ue[f][s],h=function(e){var t=e.replace(Yn,""),n=function(e,t){var n,r=e.length,a=e.charCodeAt(t);return a>=55296&&a<=56319&&r>t+1&&(n=e.charCodeAt(t+1))>=56320&&n<=57343?1024*(a-55296)+n-56320+65536:a}(t,0),r=n>=$n[0]&&n<=$n[1],a=2===t.length&&t[0]===t[1];return{value:wt(a?t[0]:t),isSecondary:r||a}}(c),p=h.value,m=h.isSecondary,v=l[0].startsWith("FontAwesome"),g=Bt(d,p),y=g;if(v){var b=function(e){var t=It[e],n=Bt("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}(p);b.iconName&&b.prefix&&(g=b.iconName,d=b.prefix)}if(!g||m||i&&i.getAttribute(Pe)===d&&i.getAttribute(_e)===y)r();else{e.setAttribute(n,y),i&&e.removeChild(i);var w={iconName:null,title:null,titleId:null,prefix:null,transform:et,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}},k=w.extra;k.attributes[xe]=t,pn(g,d).then((function(a){var i=un(Y(Y({},w),{},{icons:{main:a,mask:Ht()},prefix:d,iconName:y,extra:k,watchable:!0})),o=de.createElementNS("http://www.w3.org/2000/svg","svg");"::before"===t?e.insertBefore(o,e.firstChild):e.appendChild(o),o.outerHTML=i.map((function(e){return gt(e)})).join("\n"),e.removeAttribute(n),r()})).catch(a)}}else r()}))}function Qn(e){return Promise.all([qn(e,"::before"),qn(e,"::after")])}function Zn(e){return e.parentNode!==document.head&&!~Re.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(xe)&&(!e.parentNode||"svg"!==e.parentNode.tagName)}function Xn(e){if(me)return new Promise((function(t,n){var r=rt(e.querySelectorAll("*")).filter(Zn).map(Qn),a=bn.begin("searchPseudoElements");On(),Promise.all(r).then((function(){a(),zn(),t()})).catch((function(){a(),zn(),n()}))}))}var Gn=!1,Kn=function(e){return e.toLowerCase().split(" ").reduce((function(e,t){var n=t.toLowerCase().split("-"),r=n[0],a=n.slice(1).join("-");if(r&&"h"===a)return e.flipX=!0,e;if(r&&"v"===a)return e.flipY=!0,e;if(a=parseFloat(a),isNaN(a))return e;switch(r){case"grow":e.size=e.size+a;break;case"shrink":e.size=e.size-a;break;case"left":e.x=e.x-a;break;case"right":e.x=e.x+a;break;case"up":e.y=e.y-a;break;case"down":e.y=e.y+a;break;case"rotate":e.rotate=e.rotate+a}return e}),{size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0})},Jn={mixout:function(){return{parse:{transform:function(e){return Kn(e)}}}},hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute("data-fa-transform");return n&&(e.transform=Kn(n)),e}}},provides:function(e){e.generateAbstractTransformGrouping=function(e){var t=e.main,n=e.transform,r=e.containerWidth,a=e.iconWidth,i={transform:"translate(".concat(r/2," 256)")},o="translate(".concat(32*n.x,", ").concat(32*n.y,") "),l="scale(".concat(n.size/16*(n.flipX?-1:1),", ").concat(n.size/16*(n.flipY?-1:1),") "),s="rotate(".concat(n.rotate," 0 0)"),u={outer:i,inner:{transform:"".concat(o," ").concat(l," ").concat(s)},path:{transform:"translate(".concat(a/2*-1," -256)")}};return{tag:"g",attributes:Y({},u.outer),children:[{tag:"g",attributes:Y({},u.inner),children:[{tag:t.icon.tag,children:t.icon.children,attributes:Y(Y({},t.icon.attributes),u.path)}]}]}}}},er={x:0,y:0,width:"100%",height:"100%"};function tr(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}var nr={hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute("data-fa-mask"),r=n?$t(n.split(" ").map((function(e){return e.trim()}))):Ht();return r.prefix||(r.prefix=Vt()),e.mask=r,e.maskId=t.getAttribute("data-fa-mask-id"),e}}},provides:function(e){e.generateAbstractMask=function(e){var t,n=e.children,r=e.attributes,a=e.main,i=e.mask,o=e.maskId,l=e.transform,s=a.width,u=a.icon,c=i.width,f=i.icon,d=function(e){var t=e.transform,n=e.containerWidth,r=e.iconWidth,a={transform:"translate(".concat(n/2," 256)")},i="translate(".concat(32*t.x,", ").concat(32*t.y,") "),o="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),l="rotate(".concat(t.rotate," 0 0)");return{outer:a,inner:{transform:"".concat(i," ").concat(o," ").concat(l)},path:{transform:"translate(".concat(r/2*-1," -256)")}}}({transform:l,containerWidth:c,iconWidth:s}),h={tag:"rect",attributes:Y(Y({},er),{},{fill:"white"})},p=u.children?{children:u.children.map(tr)}:{},m={tag:"g",attributes:Y({},d.inner),children:[tr(Y({tag:u.tag,attributes:Y(Y({},u.attributes),d.path)},p))]},v={tag:"g",attributes:Y({},d.outer),children:[m]},g="mask-".concat(o||nt()),y="clip-".concat(o||nt()),b={tag:"mask",attributes:Y(Y({},er),{},{id:g,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[h,v]},w={tag:"defs",children:[{tag:"clipPath",attributes:{id:y},children:(t=f,"g"===t.tag?t.children:[t])},b]};return n.push(w,{tag:"rect",attributes:Y({fill:"currentColor","clip-path":"url(#".concat(y,")"),mask:"url(#".concat(g,")")},er)}),{children:n,attributes:r}}}},rr={provides:function(e){var t=!1;fe.matchMedia&&(t=fe.matchMedia("(prefers-reduced-motion: reduce)").matches),e.missingIconAbstract=function(){var e=[],n={fill:"currentColor"},r={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};e.push({tag:"path",attributes:Y(Y({},n),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var a=Y(Y({},r),{},{attributeName:"opacity"}),i={tag:"circle",attributes:Y(Y({},n),{},{cx:"256",cy:"364",r:"28"}),children:[]};return t||i.children.push({tag:"animate",attributes:Y(Y({},r),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:Y(Y({},a),{},{values:"1;0;1;1;0;1;"})}),e.push(i),e.push({tag:"path",attributes:Y(Y({},n),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:t?[]:[{tag:"animate",attributes:Y(Y({},a),{},{values:"1;0;0;0;0;1;"})}]}),t||e.push({tag:"path",attributes:Y(Y({},n),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:Y(Y({},a),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:e}}}};!function(e,t){var n=t.mixoutsTo;Qt=e,Zt={},Object.keys(Xt).forEach((function(e){-1===Gt.indexOf(e)&&delete Xt[e]})),Qt.forEach((function(e){var t=e.mixout?e.mixout():{};if(Object.keys(t).forEach((function(e){"function"===typeof t[e]&&(n[e]=t[e]),"object"===$(t[e])&&Object.keys(t[e]).forEach((function(r){n[e]||(n[e]={}),n[e][r]=t[e][r]}))})),e.hooks){var r=e.hooks();Object.keys(r).forEach((function(e){Zt[e]||(Zt[e]=[]),Zt[e].push(r[e])}))}e.provides&&e.provides(Xt)}))}([dt,Un,Vn,Hn,Wn,{hooks:function(){return{mutationObserverCallbacks:function(e){return e.pseudoElementsCallback=Xn,e}}},provides:function(e){e.pseudoElements2svg=function(e){var t=e.node,n=void 0===t?de:t;Ge.searchPseudoElements&&Xn(n)}}},{mixout:function(){return{dom:{unwatch:function(){On(),Gn=!0}}}},hooks:function(){return{bootstrap:function(){An(Kt("mutationObserverCallbacks",{}))},noAuto:function(){Tn&&Tn.disconnect()},watch:function(e){var t=e.observeMutationsRoot;Gn?zn():An(Kt("mutationObserverCallbacks",{observeMutationsRoot:t}))}}}},Jn,nr,rr,{hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute("data-fa-symbol"),r=null!==n&&(""===n||n);return e.symbol=r,e}}}}],{mixoutsTo:on});var ar=on.parse,ir=on.icon,or=n(7),lr=n.n(or);function sr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ur(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sr(Object(n),!0).forEach((function(t){fr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function cr(e){return cr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},cr(e)}function fr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dr(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function hr(e){return function(e){if(Array.isArray(e))return pr(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"===typeof e)return pr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return pr(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function pr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function mr(e){return t=e,(t-=0)===t?e:(e=e.replace(/[\-_\s]+(.)?/g,(function(e,t){return t?t.toUpperCase():""}))).substr(0,1).toLowerCase()+e.substr(1);var t}var vr=["style"];var gr=!1;try{gr=!0}catch(Or){}function yr(e){return e&&"object"===cr(e)&&e.prefix&&e.iconName&&e.icon?e:ar.icon?ar.icon(e):null===e?null:e&&"object"===cr(e)&&e.prefix&&e.iconName?e:Array.isArray(e)&&2===e.length?{prefix:e[0],iconName:e[1]}:"string"===typeof e?{prefix:"fas",iconName:e}:void 0}function br(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?fr({},e,t):{}}var wr=e.forwardRef((function(e,t){var n=e.icon,r=e.mask,a=e.symbol,i=e.className,o=e.title,l=e.titleId,s=e.maskId,u=yr(n),c=br("classes",[].concat(hr(function(e){var t,n=e.beat,r=e.fade,a=e.beatFade,i=e.bounce,o=e.shake,l=e.flash,s=e.spin,u=e.spinPulse,c=e.spinReverse,f=e.pulse,d=e.fixedWidth,h=e.inverse,p=e.border,m=e.listItem,v=e.flip,g=e.size,y=e.rotation,b=e.pull,w=(fr(t={"fa-beat":n,"fa-fade":r,"fa-beat-fade":a,"fa-bounce":i,"fa-shake":o,"fa-flash":l,"fa-spin":s,"fa-spin-reverse":c,"fa-spin-pulse":u,"fa-pulse":f,"fa-fw":d,"fa-inverse":h,"fa-border":p,"fa-li":m,"fa-flip":!0===v,"fa-flip-horizontal":"horizontal"===v||"both"===v,"fa-flip-vertical":"vertical"===v||"both"===v},"fa-".concat(g),"undefined"!==typeof g&&null!==g),fr(t,"fa-rotate-".concat(y),"undefined"!==typeof y&&null!==y&&0!==y),fr(t,"fa-pull-".concat(b),"undefined"!==typeof b&&null!==b),fr(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys(w).map((function(e){return w[e]?e:null})).filter((function(e){return e}))}(e)),hr(i.split(" ")))),f=br("transform","string"===typeof e.transform?ar.transform(e.transform):e.transform),d=br("mask",yr(r)),h=ir(u,ur(ur(ur(ur({},c),f),d),{},{symbol:a,title:o,titleId:l,maskId:s}));if(!h)return function(){var e;!gr&&console&&"function"===typeof console.error&&(e=console).error.apply(e,arguments)}("Could not find icon",u),null;var p=h.abstract,m={ref:t};return Object.keys(e).forEach((function(t){wr.defaultProps.hasOwnProperty(t)||(m[t]=e[t])})),kr(p[0],m)}));wr.displayName="FontAwesomeIcon",wr.propTypes={beat:lr().bool,border:lr().bool,beatFade:lr().bool,bounce:lr().bool,className:lr().string,fade:lr().bool,flash:lr().bool,mask:lr().oneOfType([lr().object,lr().array,lr().string]),maskId:lr().string,fixedWidth:lr().bool,inverse:lr().bool,flip:lr().oneOf([!0,!1,"horizontal","vertical","both"]),icon:lr().oneOfType([lr().object,lr().array,lr().string]),listItem:lr().bool,pull:lr().oneOf(["right","left"]),pulse:lr().bool,rotation:lr().oneOf([0,90,180,270]),shake:lr().bool,size:lr().oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:lr().bool,spinPulse:lr().bool,spinReverse:lr().bool,symbol:lr().oneOfType([lr().bool,lr().string]),title:lr().string,titleId:lr().string,transform:lr().oneOfType([lr().string,lr().object]),swapOpacity:lr().bool},wr.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 kr=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"===typeof n)return n;var a=(n.children||[]).map((function(n){return e(t,n)})),i=Object.keys(n.attributes||{}).reduce((function(e,t){var r=n.attributes[t];switch(t){case"class":e.attrs.className=r,delete n.attributes.class;break;case"style":e.attrs.style=r.split(";").map((function(e){return e.trim()})).filter((function(e){return e})).reduce((function(e,t){var n,r=t.indexOf(":"),a=mr(t.slice(0,r)),i=t.slice(r+1).trim();return a.startsWith("webkit")?e[(n=a,n.charAt(0).toUpperCase()+n.slice(1))]=i:e[a]=i,e}),{});break;default:0===t.indexOf("aria-")||0===t.indexOf("data-")?e.attrs[t.toLowerCase()]=r:e.attrs[mr(t)]=r}return e}),{attrs:{}}),o=r.style,l=void 0===o?{}:o,s=dr(r,vr);return i.attrs.style=ur(ur({},i.attrs.style),l),t.apply(void 0,[n.tag,ur(ur({},i.attrs),s)].concat(hr(a)))}.bind(null,e.createElement),xr={prefix:"fab",iconName:"linkedin",icon:[448,512,[],"f08c","M416 32H31.9C14.3 32 0 46.5 0 64.3v383.4C0 465.5 14.3 480 31.9 480H416c17.6 0 32-14.5 32-32.3V64.3c0-17.8-14.4-32.3-32-32.3zM135.4 416H69V202.2h66.5V416zm-33.2-243c-21.3 0-38.5-17.3-38.5-38.5S80.9 96 102.2 96c21.2 0 38.5 17.3 38.5 38.5 0 21.3-17.2 38.5-38.5 38.5zm282.1 243h-66.4V312c0-24.8-.5-56.7-34.5-56.7-34.6 0-39.9 27-39.9 54.9V416h-66.4V202.2h63.7v29.2h.9c8.9-16.8 30.6-34.5 62.9-34.5 67.2 0 79.7 44.3 79.7 101.9V416z"]},Sr={prefix:"fab",iconName:"instagram",icon:[448,512,[],"f16d","M224.1 141c-63.6 0-114.9 51.3-114.9 114.9s51.3 114.9 114.9 114.9S339 319.5 339 255.9 287.7 141 224.1 141zm0 189.6c-41.1 0-74.7-33.5-74.7-74.7s33.5-74.7 74.7-74.7 74.7 33.5 74.7 74.7-33.6 74.7-74.7 74.7zm146.4-194.3c0 14.9-12 26.8-26.8 26.8-14.9 0-26.8-12-26.8-26.8s12-26.8 26.8-26.8 26.8 12 26.8 26.8zm76.1 27.2c-1.7-35.9-9.9-67.7-36.2-93.9-26.2-26.2-58-34.4-93.9-36.2-37-2.1-147.9-2.1-184.9 0-35.8 1.7-67.6 9.9-93.9 36.1s-34.4 58-36.2 93.9c-2.1 37-2.1 147.9 0 184.9 1.7 35.9 9.9 67.7 36.2 93.9s58 34.4 93.9 36.2c37 2.1 147.9 2.1 184.9 0 35.9-1.7 67.7-9.9 93.9-36.2 26.2-26.2 34.4-58 36.2-93.9 2.1-37 2.1-147.8 0-184.8zM398.8 388c-7.8 19.6-22.9 34.7-42.6 42.6-29.5 11.7-99.5 9-132.1 9s-102.7 2.6-132.1-9c-19.6-7.8-34.7-22.9-42.6-42.6-11.7-29.5-9-99.5-9-132.1s-2.6-102.7 9-132.1c7.8-19.6 22.9-34.7 42.6-42.6 29.5-11.7 99.5-9 132.1-9s102.7-2.6 132.1 9c19.6 7.8 34.7 22.9 42.6 42.6 11.7 29.5 9 99.5 9 132.1s2.7 102.7-9 132.1z"]},Pr={prefix:"fab",iconName:"github",icon:[496,512,[],"f09b","M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3.3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5.3-6.2 2.3zm44.2-1.7c-2.9.7-4.9 2.6-4.6 4.9.3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3.7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3.3 2.9 2.3 3.9 1.6 1 3.6.7 4.3-.7.7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3.7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3.7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z"]};function _r(){return(0,O.jsxs)("div",{className:"social-container",children:[(0,O.jsx)("p",{className:"white"}),(0,O.jsx)("a",{href:"https://github.com/TanmayMachkar",className:"github social",children:(0,O.jsx)(wr,{icon:Pr,size:"2x"})}),(0,O.jsx)("a",{href:"https://www.linkedin.com/in/tanmay-machkar-9369a0299",className:"linkedin social",children:(0,O.jsx)(wr,{icon:xr,size:"2x"})}),(0,O.jsx)("a",{href:"https://www.instagram.com/_tanaana_02/",className:"instagram social",children:(0,O.jsx)(wr,{icon:Sr,size:"2x"})})]})}class Er extends e.Component{constructor(){super(),this.calculateFaceLocation=e=>{const t=e.outputs[0].data.regions[0].region_info.bounding_box,n=document.getElementById("inputimage"),r=Number(n.width),a=Number(n.height);return{leftCol:t.left_col*r,topRow:t.top_row*a,rightCol:r-t.right_col*r,bottomRow:a-t.bottom_row*a}},this.displayFaceBox=e=>{console.log(e),this.setState({box:e})},this.onInputChange=e=>{this.setState({input:e.target.value})},this.onButtonSubmit=()=>{this.setState({imageUrl:this.state.input}),fetch("https://api.clarifai.com/v2/models/face-detection/outputs",(e=>{const t=e;return{method:"POST",headers:{Accept:"application/json",Authorization:"Key 9a79ac5267f54073853713833271f89d"},body:JSON.stringify({user_app_id:{user_id:"tanmaymachkar",app_id:"test"},inputs:[{data:{image:{url:t}}}]})}})(this.state.input)).then((e=>e.json())).then((e=>this.displayFaceBox(this.calculateFaceLocation(e)))).catch((e=>console.log(e)))},this.state={input:"",imageUrl:"",box:{}}}render(){return(0,O.jsxs)("div",{className:"App",children:[(0,O.jsx)(U,{}),(0,O.jsx)(V,{onInputChange:this.onInputChange,onButtonSubmit:this.onButtonSubmit}),(0,O.jsx)(H,{box:this.state.box,imageUrl:this.state.imageUrl}),(0,O.jsx)(_r,{}),(0,O.jsx)(R,{type:"circle",bg:!0})]})}}const Cr=Er,Rr=e=>{e&&e instanceof Function&&n.e(787).then(n.bind(n,787)).then((t=>{let{getCLS:n,getFID:r,getFCP:a,getLCP:i,getTTFB:o}=t;n(e),r(e),a(e),i(e),o(e)}))};t.createRoot(document.getElementById("root")).render((0,O.jsx)(e.StrictMode,{children:(0,O.jsx)(Cr,{})})),Rr()})()})();
|
|
//# sourceMappingURL=main.e5880f00.js.map
|