@openremote/or-gauge 1.3.3 → 1.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  /*! For license information please see index.bundle.js.LICENSE.txt */
2
- !function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n(require("ORModel"),require("ORCore"),require("ORTranslate"),require("ORIcon")):"function"==typeof define&&define.amd?define(["ORModel","ORCore","ORTranslate","ORIcon"],n):"object"==typeof exports?exports.ORGauge=n(require("ORModel"),require("ORCore"),require("ORTranslate"),require("ORIcon")):t.ORGauge=n(t.ORModel,t.ORCore,t.ORTranslate,t.ORIcon)}(self,((t,n,e,r)=>(()=>{var i={68:function(t,n,e){var r;(function(){var i,o,u,s,a,l,c,h,f,p,d,v,g=[].slice,_={}.hasOwnProperty,y=function(t,n){for(var e in n)_.call(n,e)&&(t[e]=n[e]);function r(){this.constructor=t}return r.prototype=n.prototype,t.prototype=new r,t.__super__=n.prototype,t},m=[].indexOf||function(t){for(var n=0,e=this.length;n<e;n++)if(n in this&&this[n]===t)return n;return-1};!function(){var t,n,e,r,i,o,u;for(e=0,i=(u=["ms","moz","webkit","o"]).length;e<i&&(o=u[e],!window.requestAnimationFrame);e++)window.requestAnimationFrame=window[o+"RequestAnimationFrame"],window.cancelAnimationFrame=window[o+"CancelAnimationFrame"]||window[o+"CancelRequestAnimationFrame"];t=null,r=0,n={},requestAnimationFrame?window.cancelAnimationFrame||(t=window.requestAnimationFrame,window.requestAnimationFrame=function(e,i){var o;return o=++r,t((function(){if(!n[o])return e()}),i),o},window.cancelAnimationFrame=function(t){return n[t]=!0}):(window.requestAnimationFrame=function(t,n){var e,r,i,o;return e=(new Date).getTime(),o=Math.max(0,16-(e-i)),r=window.setTimeout((function(){return t(e+o)}),o),i=e+o,r},window.cancelAnimationFrame=function(t){return clearTimeout(t)})}(),v=function(t){var n,e;for(t-=3600*(n=Math.floor(t/3600))+60*(e=Math.floor((t-3600*n)/60)),t+="",e+="";e.length<2;)e="0"+e;for(;t.length<2;)t="0"+t;return(n=n?n+":":"")+e+":"+t},p=function(){var t,n,e;return e=(n=1<=arguments.length?g.call(arguments,0):[])[0],t=n[1],h(e.toFixed(t))},d=function(t,n){var e,r,i;for(e in r={},t)_.call(t,e)&&(i=t[e],r[e]=i);for(e in n)_.call(n,e)&&(i=n[e],r[e]=i);return r},h=function(t){var n,e,r,i;for(r=(e=(t+="").split("."))[0],i="",e.length>1&&(i="."+e[1]),n=/(\d+)(\d{3})/;n.test(r);)r=r.replace(n,"$1,$2");return r+i},f=function(t){return"#"===t.charAt(0)?t.substring(1,7):t},o=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return y(n,t),n.prototype.displayScale=1,n.prototype.forceUpdate=!0,n.prototype.setTextField=function(t,n){return this.textField=t instanceof l?t:new l(t,n)},n.prototype.setMinValue=function(t,n){var e,r,i,o,u;if(this.minValue=t,null==n&&(n=!0),n){for(this.displayedValue=this.minValue,u=[],r=0,i=(o=this.gp||[]).length;r<i;r++)e=o[r],u.push(e.displayedValue=this.minValue);return u}},n.prototype.setOptions=function(t){return null==t&&(t=null),this.options=d(this.options,t),this.textField&&(this.textField.el.style.fontSize=t.fontSize+"px"),this.options.angle>.5&&(this.options.angle=.5),this.configDisplayScale(),this},n.prototype.configDisplayScale=function(){var t,n,e,r,i;return r=this.displayScale,!1===this.options.highDpiSupport?delete this.displayScale:(n=window.devicePixelRatio||1,t=this.ctx.webkitBackingStorePixelRatio||this.ctx.mozBackingStorePixelRatio||this.ctx.msBackingStorePixelRatio||this.ctx.oBackingStorePixelRatio||this.ctx.backingStorePixelRatio||1,this.displayScale=n/t),this.displayScale!==r&&(i=this.canvas.G__width||this.canvas.width,e=this.canvas.G__height||this.canvas.height,this.canvas.width=i*this.displayScale,this.canvas.height=e*this.displayScale,this.canvas.style.width=i+"px",this.canvas.style.height=e+"px",this.canvas.G__width=i,this.canvas.G__height=e),this},n.prototype.parseValue=function(t){return t=parseFloat(t)||Number(t),isFinite(t)?t:0},n}(c=function(){function t(t,n){null==t&&(t=!0),this.clear=null==n||n,t&&AnimationUpdater.add(this)}return t.prototype.animationSpeed=32,t.prototype.update=function(t){var n;return null==t&&(t=!1),!(!t&&this.displayedValue===this.value||(this.ctx&&this.clear&&this.ctx.clearRect(0,0,this.canvas.width,this.canvas.height),n=this.value-this.displayedValue,Math.abs(n/this.animationSpeed)<=.001?this.displayedValue=this.value:this.displayedValue=this.displayedValue+n/this.animationSpeed,this.render(),0))},t}()),l=function(){function t(t,n){this.el=t,this.fractionDigits=n}return t.prototype.render=function(t){return this.el.innerHTML=p(t.displayedValue,this.fractionDigits)},t}(),function(t){function n(t,e){if(this.elem=t,this.text=null!=e&&e,n.__super__.constructor.call(this),void 0===this.elem)throw new Error("The element isn't defined.");this.value=1*this.elem.innerHTML,this.text&&(this.value=0)}y(n,t),n.prototype.displayedValue=0,n.prototype.value=0,n.prototype.setVal=function(t){return this.value=1*t},n.prototype.render=function(){var t;return t=this.text?v(this.displayedValue.toFixed(0)):h(p(this.displayedValue)),this.elem.innerHTML=t}}(c),a=function(t){function n(t){if(this.gauge=t,void 0===this.gauge)throw new Error("The element isn't defined.");this.ctx=this.gauge.ctx,this.canvas=this.gauge.canvas,n.__super__.constructor.call(this,!1,!1),this.setOptions()}return y(n,t),n.prototype.displayedValue=0,n.prototype.value=0,n.prototype.options={strokeWidth:.035,length:.1,color:"#000000",iconPath:null,iconScale:1,iconAngle:0},n.prototype.img=null,n.prototype.setOptions=function(t){if(null==t&&(t=null),this.options=d(this.options,t),this.length=2*this.gauge.radius*this.gauge.options.radiusScale*this.options.length,this.strokeWidth=this.canvas.height*this.options.strokeWidth,this.maxValue=this.gauge.maxValue,this.minValue=this.gauge.minValue,this.animationSpeed=this.gauge.animationSpeed,this.options.angle=this.gauge.options.angle,this.options.iconPath)return this.img=new Image,this.img.src=this.options.iconPath},n.prototype.render=function(){var t,n,e,r,i,o,u,s,a;if(t=this.gauge.getAngle.call(this,this.displayedValue),s=Math.round(this.length*Math.cos(t)),a=Math.round(this.length*Math.sin(t)),o=Math.round(this.strokeWidth*Math.cos(t-Math.PI/2)),u=Math.round(this.strokeWidth*Math.sin(t-Math.PI/2)),n=Math.round(this.strokeWidth*Math.cos(t+Math.PI/2)),e=Math.round(this.strokeWidth*Math.sin(t+Math.PI/2)),this.ctx.beginPath(),this.ctx.fillStyle=this.options.color,this.ctx.arc(0,0,this.strokeWidth,0,2*Math.PI,!1),this.ctx.fill(),this.ctx.beginPath(),this.ctx.moveTo(o,u),this.ctx.lineTo(s,a),this.ctx.lineTo(n,e),this.ctx.fill(),this.img)return r=Math.round(this.img.width*this.options.iconScale),i=Math.round(this.img.height*this.options.iconScale),this.ctx.save(),this.ctx.translate(s,a),this.ctx.rotate(t+Math.PI/180*(90+this.options.iconAngle)),this.ctx.drawImage(this.img,-r/2,-i/2,r,i),this.ctx.restore()},n}(c),function(){function t(t){this.elem=t}t.prototype.updateValues=function(t){return this.value=t[0],this.maxValue=t[1],this.avgValue=t[2],this.render()},t.prototype.render=function(){var t,n;return this.textField&&this.textField.text(p(this.value)),0===this.maxValue&&(this.maxValue=2*this.avgValue),n=this.value/this.maxValue*100,t=this.avgValue/this.maxValue*100,$(".bar-value",this.elem).css({width:n+"%"}),$(".typical-value",this.elem).css({width:t+"%"})}}(),s=function(t){function n(t){var e,r;this.canvas=t,n.__super__.constructor.call(this),this.percentColors=null,"undefined"!=typeof G_vmlCanvasManager&&(this.canvas=window.G_vmlCanvasManager.initElement(this.canvas)),this.ctx=this.canvas.getContext("2d"),e=this.canvas.clientHeight,r=this.canvas.clientWidth,this.canvas.height=e,this.canvas.width=r,this.gp=[new a(this)],this.setOptions()}return y(n,t),n.prototype.elem=null,n.prototype.value=[20],n.prototype.maxValue=80,n.prototype.minValue=0,n.prototype.displayedAngle=0,n.prototype.displayedValue=0,n.prototype.lineWidth=40,n.prototype.paddingTop=.1,n.prototype.paddingBottom=.1,n.prototype.percentColors=null,n.prototype.options={colorStart:"#6fadcf",colorStop:void 0,gradientType:0,strokeColor:"#e0e0e0",pointer:{length:.8,strokeWidth:.035,iconScale:1},angle:.15,lineWidth:.44,radiusScale:1,fontSize:40,limitMax:!1,limitMin:!1},n.prototype.setOptions=function(t){var e,r,i,o,u;for(null==t&&(t=null),n.__super__.setOptions.call(this,t),this.configPercentColors(),this.extraPadding=0,this.options.angle<0&&(o=Math.PI*(1+this.options.angle),this.extraPadding=Math.sin(o)),this.availableHeight=this.canvas.height*(1-this.paddingTop-this.paddingBottom),this.lineWidth=this.availableHeight*this.options.lineWidth,this.radius=(this.availableHeight-this.lineWidth/2)/(1+this.extraPadding),this.ctx.clearRect(0,0,this.canvas.width,this.canvas.height),r=0,i=(u=this.gp).length;r<i;r++)(e=u[r]).setOptions(this.options.pointer),e.render();return this.render(),this},n.prototype.configPercentColors=function(){var t,n,e,r,i,o,u;if(this.percentColors=null,void 0!==this.options.percentColors){for(this.percentColors=new Array,o=[],e=r=0,i=this.options.percentColors.length-1;0<=i?r<=i:r>=i;e=0<=i?++r:--r)u=parseInt(f(this.options.percentColors[e][1]).substring(0,2),16),n=parseInt(f(this.options.percentColors[e][1]).substring(2,4),16),t=parseInt(f(this.options.percentColors[e][1]).substring(4,6),16),o.push(this.percentColors[e]={pct:this.options.percentColors[e][0],color:{r:u,g:n,b:t}});return o}},n.prototype.set=function(t){var n,e,r,i,o,u,s,l,c;for(t instanceof Array||(t=[t]),e=r=0,s=t.length-1;0<=s?r<=s:r>=s;e=0<=s?++r:--r)t[e]=this.parseValue(t[e]);if(t.length>this.gp.length)for(e=i=0,l=t.length-this.gp.length;0<=l?i<l:i>l;e=0<=l?++i:--i)(n=new a(this)).setOptions(this.options.pointer),this.gp.push(n);else t.length<this.gp.length&&(this.gp=this.gp.slice(this.gp.length-t.length));for(e=0,u=0,o=t.length;u<o;u++)(c=t[u])>this.maxValue?this.options.limitMax?c=this.maxValue:this.maxValue=c+1:c<this.minValue&&(this.options.limitMin?c=this.minValue:this.minValue=c-1),this.gp[e].value=c,this.gp[e++].setOptions({minValue:this.minValue,maxValue:this.maxValue,angle:this.options.angle});return this.value=Math.max(Math.min(t[t.length-1],this.maxValue),this.minValue),AnimationUpdater.add(this),AnimationUpdater.run(this.forceUpdate),this.forceUpdate=!1},n.prototype.getAngle=function(t){return(1+this.options.angle)*Math.PI+(t-this.minValue)/(this.maxValue-this.minValue)*(1-2*this.options.angle)*Math.PI},n.prototype.getColorForPercentage=function(t,n){var e,r,i,o,u,s,a;if(0===t)e=this.percentColors[0].color;else for(e=this.percentColors[this.percentColors.length-1].color,i=o=0,s=this.percentColors.length-1;0<=s?o<=s:o>=s;i=0<=s?++o:--o)if(t<=this.percentColors[i].pct){!0===n?(a=this.percentColors[i-1]||this.percentColors[0],r=this.percentColors[i],u=(t-a.pct)/(r.pct-a.pct),e={r:Math.floor(a.color.r*(1-u)+r.color.r*u),g:Math.floor(a.color.g*(1-u)+r.color.g*u),b:Math.floor(a.color.b*(1-u)+r.color.b*u)}):e=this.percentColors[i].color;break}return"rgb("+[e.r,e.g,e.b].join(",")+")"},n.prototype.getColorForValue=function(t,n){var e;return e=(t-this.minValue)/(this.maxValue-this.minValue),this.getColorForPercentage(e,n)},n.prototype.renderStaticLabels=function(t,n,e,r){var i,o,u,s,a,l,c,h,f,d;for(this.ctx.save(),this.ctx.translate(n,e),l=/\d+\.?\d?/,a=(i=t.font||"10px Times").match(l)[0],h=i.slice(a.length),o=parseFloat(a)*this.displayScale,this.ctx.font=o+h,this.ctx.fillStyle=t.color||"#000000",this.ctx.textBaseline="bottom",this.ctx.textAlign="center",u=0,s=(c=t.labels).length;u<s;u++)void 0!==(d=c[u]).label?(!this.options.limitMin||d>=this.minValue)&&(!this.options.limitMax||d<=this.maxValue)&&(a=(i=d.font||t.font).match(l)[0],h=i.slice(a.length),o=parseFloat(a)*this.displayScale,this.ctx.font=o+h,f=this.getAngle(d.label)-3*Math.PI/2,this.ctx.rotate(f),this.ctx.fillText(p(d.label,t.fractionDigits),0,-r-this.lineWidth/2),this.ctx.rotate(-f)):(!this.options.limitMin||d>=this.minValue)&&(!this.options.limitMax||d<=this.maxValue)&&(f=this.getAngle(d)-3*Math.PI/2,this.ctx.rotate(f),this.ctx.fillText(p(d,t.fractionDigits),0,-r-this.lineWidth/2),this.ctx.rotate(-f));return this.ctx.restore()},n.prototype.renderTicks=function(t,n,e,r){var i,o,u,s,a,l,c,h,f,p,d,v,g,_,y,m,x,b,w,A;if(t!=={}){for(l=t.divisions||0,b=t.subDivisions||0,u=t.divColor||"#fff",_=t.subColor||"#fff",s=t.divLength||.7,m=t.subLength||.2,f=parseFloat(this.maxValue)-parseFloat(this.minValue),p=parseFloat(f)/parseFloat(t.divisions),y=parseFloat(p)/parseFloat(t.subDivisions),i=parseFloat(this.minValue),o=0+y,a=(h=f/400)*(t.divWidth||1),x=h*(t.subWidth||1),v=[],w=c=0,d=l+1;c<d;w=c+=1)this.ctx.lineWidth=this.lineWidth*s,g=this.lineWidth/2*(1-s),A=this.radius*this.options.radiusScale+g,this.ctx.strokeStyle=u,this.ctx.beginPath(),this.ctx.arc(0,0,A,this.getAngle(i-a),this.getAngle(i+a),!1),this.ctx.stroke(),o=i+y,i+=p,w!==t.divisions&&b>0?v.push(function(){var t,n,e;for(e=[],t=0,n=b-1;t<n;t+=1)this.ctx.lineWidth=this.lineWidth*m,g=this.lineWidth/2*(1-m),A=this.radius*this.options.radiusScale+g,this.ctx.strokeStyle=_,this.ctx.beginPath(),this.ctx.arc(0,0,A,this.getAngle(o-x),this.getAngle(o+x),!1),this.ctx.stroke(),e.push(o+=y);return e}.call(this)):v.push(void 0);return v}},n.prototype.render=function(){var t,n,e,r,i,o,u,s,a,l,c,h,f,p,d,v;if(d=this.canvas.width/2,e=this.canvas.height*this.paddingTop+this.availableHeight-(this.radius+this.lineWidth/2)*this.extraPadding,t=this.getAngle(this.displayedValue),this.textField&&this.textField.render(this),this.ctx.lineCap="butt",l=this.radius*this.options.radiusScale,this.options.staticLabels&&this.renderStaticLabels(this.options.staticLabels,d,e,l),this.options.staticZones)for(this.ctx.save(),this.ctx.translate(d,e),this.ctx.lineWidth=this.lineWidth,r=0,o=(c=this.options.staticZones).length;r<o;r++)a=(v=c[r]).min,this.options.limitMin&&a<this.minValue&&(a=this.minValue),s=v.max,this.options.limitMax&&s>this.maxValue&&(s=this.maxValue),p=this.radius*this.options.radiusScale,v.height&&(this.ctx.lineWidth=this.lineWidth*v.height,f=this.lineWidth/2*(v.offset||1-v.height),p=this.radius*this.options.radiusScale+f),this.ctx.strokeStyle=v.strokeStyle,this.ctx.beginPath(),this.ctx.arc(0,0,p,this.getAngle(a),this.getAngle(s),!1),this.ctx.stroke();else void 0!==this.options.customFillStyle?n=this.options.customFillStyle(this):null!==this.percentColors?n=this.getColorForValue(this.displayedValue,this.options.generateGradient):void 0!==this.options.colorStop?((n=0===this.options.gradientType?this.ctx.createRadialGradient(d,e,9,d,e,70):this.ctx.createLinearGradient(0,0,d,0)).addColorStop(0,this.options.colorStart),n.addColorStop(1,this.options.colorStop)):n=this.options.colorStart,this.ctx.strokeStyle=n,this.ctx.beginPath(),this.ctx.arc(d,e,l,(1+this.options.angle)*Math.PI,t,!1),this.ctx.lineWidth=this.lineWidth,this.ctx.stroke(),this.ctx.strokeStyle=this.options.strokeColor,this.ctx.beginPath(),this.ctx.arc(d,e,l,t,(2-this.options.angle)*Math.PI,!1),this.ctx.stroke(),this.ctx.save(),this.ctx.translate(d,e);for(this.options.renderTicks&&this.renderTicks(this.options.renderTicks,d,e,l),this.ctx.restore(),this.ctx.translate(d,e),i=0,u=(h=this.gp).length;i<u;i++)h[i].update(!0);return this.ctx.translate(-d,-e)},n}(o),i=function(t){function n(t){this.canvas=t,n.__super__.constructor.call(this),"undefined"!=typeof G_vmlCanvasManager&&(this.canvas=window.G_vmlCanvasManager.initElement(this.canvas)),this.ctx=this.canvas.getContext("2d"),this.setOptions(),this.render()}return y(n,t),n.prototype.lineWidth=15,n.prototype.displayedValue=0,n.prototype.value=33,n.prototype.maxValue=80,n.prototype.minValue=0,n.prototype.options={lineWidth:.1,colorStart:"#6f6ea0",colorStop:"#c0c0db",strokeColor:"#eeeeee",shadowColor:"#d5d5d5",angle:.35,radiusScale:1},n.prototype.getAngle=function(t){return(1-this.options.angle)*Math.PI+(t-this.minValue)/(this.maxValue-this.minValue)*(2+this.options.angle-(1-this.options.angle))*Math.PI},n.prototype.setOptions=function(t){return null==t&&(t=null),n.__super__.setOptions.call(this,t),this.lineWidth=this.canvas.height*this.options.lineWidth,this.radius=this.options.radiusScale*(this.canvas.height/2-this.lineWidth/2),this},n.prototype.set=function(t){return this.value=this.parseValue(t),this.value>this.maxValue?this.options.limitMax?this.value=this.maxValue:this.maxValue=this.value:this.value<this.minValue&&(this.options.limitMin?this.value=this.minValue:this.minValue=this.value),AnimationUpdater.add(this),AnimationUpdater.run(this.forceUpdate),this.forceUpdate=!1},n.prototype.render=function(){var t,n,e,r;return t=this.getAngle(this.displayedValue),r=this.canvas.width/2,e=this.canvas.height/2,this.textField&&this.textField.render(this),(n=this.ctx.createRadialGradient(r,e,39,r,e,70)).addColorStop(0,this.options.colorStart),n.addColorStop(1,this.options.colorStop),this.radius,this.lineWidth,this.radius,this.lineWidth,this.ctx.strokeStyle=this.options.strokeColor,this.ctx.beginPath(),this.ctx.arc(r,e,this.radius,(1-this.options.angle)*Math.PI,(2+this.options.angle)*Math.PI,!1),this.ctx.lineWidth=this.lineWidth,this.ctx.lineCap="round",this.ctx.stroke(),this.ctx.strokeStyle=n,this.ctx.beginPath(),this.ctx.arc(r,e,this.radius,(1-this.options.angle)*Math.PI,t,!1),this.ctx.stroke()},n}(o),u=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return y(n,t),n.prototype.strokeGradient=function(t,n,e,r){var i;return(i=this.ctx.createRadialGradient(t,n,e,t,n,r)).addColorStop(0,this.options.shadowColor),i.addColorStop(.12,this.options._orgStrokeColor),i.addColorStop(.88,this.options._orgStrokeColor),i.addColorStop(1,this.options.shadowColor),i},n.prototype.setOptions=function(t){var e,r,i,o;return null==t&&(t=null),n.__super__.setOptions.call(this,t),o=this.canvas.width/2,e=this.canvas.height/2,r=this.radius-this.lineWidth/2,i=this.radius+this.lineWidth/2,this.options._orgStrokeColor=this.options.strokeColor,this.options.strokeColor=this.strokeGradient(o,e,r,i),this},n}(i),window.AnimationUpdater={elements:[],animId:null,addAll:function(t){var n,e,r,i;for(i=[],e=0,r=t.length;e<r;e++)n=t[e],i.push(AnimationUpdater.elements.push(n));return i},add:function(t){if(m.call(AnimationUpdater.elements,t)<0)return AnimationUpdater.elements.push(t)},run:function(t){var n,e,r,i,o,u,s;if(null==t&&(t=!1),isFinite(parseFloat(t))||!0===t){for(n=!0,s=[],r=e=0,o=(u=AnimationUpdater.elements).length;e<o;r=++e)u[r].update(!0===t)?n=!1:s.push(r);for(i=s.length-1;i>=0;i+=-1)r=s[i],AnimationUpdater.elements.splice(r,1);return AnimationUpdater.animId=n?null:requestAnimationFrame(AnimationUpdater.run)}if(!1===t)return!0===AnimationUpdater.animId&&cancelAnimationFrame(AnimationUpdater.animId),AnimationUpdater.animId=requestAnimationFrame(AnimationUpdater.run)}},"function"==typeof window.define&&null!=window.define.amd?void 0===(r=function(){return{Gauge:s,Donut:u,BaseDonut:i,TextRenderer:l}}.call(n,e,n,t))||(t.exports=r):null!=t.exports?t.exports={Gauge:s,Donut:u,BaseDonut:i,TextRenderer:l}:(window.Gauge=s,window.Donut=u,window.BaseDonut=i,window.TextRenderer=l)}).call(this)},944:function(t,n,e){var r;t=e.nmd(t),function(){var i,o="Expected a function",u="__lodash_hash_undefined__",s="__lodash_placeholder__",a=32,l=128,c=1/0,h=9007199254740991,f=NaN,p=4294967295,d=[["ary",l],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",a],["partialRight",64],["rearg",256]],v="[object Arguments]",g="[object Array]",_="[object Boolean]",y="[object Date]",m="[object Error]",x="[object Function]",b="[object GeneratorFunction]",w="[object Map]",A="[object Number]",$="[object Object]",S="[object Promise]",C="[object RegExp]",E="[object Set]",k="[object String]",O="[object Symbol]",R="[object WeakMap]",M="[object ArrayBuffer]",j="[object DataView]",P="[object Float32Array]",V="[object Float64Array]",U="[object Int8Array]",I="[object Int16Array]",T="[object Int32Array]",z="[object Uint8Array]",W="[object Uint8ClampedArray]",F="[object Uint16Array]",L="[object Uint32Array]",D=/\b__p \+= '';/g,N=/\b(__p \+=) '' \+/g,B=/(__e\(.*?\)|\b__t\)) \+\n'';/g,H=/&(?:amp|lt|gt|quot|#39);/g,q=/[&<>"']/g,G=RegExp(H.source),Z=RegExp(q.source),K=/<%-([\s\S]+?)%>/g,J=/<%([\s\S]+?)%>/g,Y=/<%=([\s\S]+?)%>/g,Q=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,X=/^\w*$/,tt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,nt=/[\\^$.*+?()[\]{}|]/g,et=RegExp(nt.source),rt=/^\s+/,it=/\s/,ot=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ut=/\{\n\/\* \[wrapped with (.+)\] \*/,st=/,? & /,at=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,lt=/[()=,{}\[\]\/\s]/,ct=/\\(\\)?/g,ht=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ft=/\w*$/,pt=/^[-+]0x[0-9a-f]+$/i,dt=/^0b[01]+$/i,vt=/^\[object .+?Constructor\]$/,gt=/^0o[0-7]+$/i,_t=/^(?:0|[1-9]\d*)$/,yt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,mt=/($^)/,xt=/['\n\r\u2028\u2029\\]/g,bt="\\ud800-\\udfff",wt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",At="\\u2700-\\u27bf",$t="a-z\\xdf-\\xf6\\xf8-\\xff",St="A-Z\\xc0-\\xd6\\xd8-\\xde",Ct="\\ufe0e\\ufe0f",Et="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",kt="["+bt+"]",Ot="["+Et+"]",Rt="["+wt+"]",Mt="\\d+",jt="["+At+"]",Pt="["+$t+"]",Vt="[^"+bt+Et+Mt+At+$t+St+"]",Ut="\\ud83c[\\udffb-\\udfff]",It="[^"+bt+"]",Tt="(?:\\ud83c[\\udde6-\\uddff]){2}",zt="[\\ud800-\\udbff][\\udc00-\\udfff]",Wt="["+St+"]",Ft="\\u200d",Lt="(?:"+Pt+"|"+Vt+")",Dt="(?:"+Wt+"|"+Vt+")",Nt="(?:['’](?:d|ll|m|re|s|t|ve))?",Bt="(?:['’](?:D|LL|M|RE|S|T|VE))?",Ht="(?:"+Rt+"|"+Ut+")?",qt="["+Ct+"]?",Gt=qt+Ht+"(?:"+Ft+"(?:"+[It,Tt,zt].join("|")+")"+qt+Ht+")*",Zt="(?:"+[jt,Tt,zt].join("|")+")"+Gt,Kt="(?:"+[It+Rt+"?",Rt,Tt,zt,kt].join("|")+")",Jt=RegExp("['’]","g"),Yt=RegExp(Rt,"g"),Qt=RegExp(Ut+"(?="+Ut+")|"+Kt+Gt,"g"),Xt=RegExp([Wt+"?"+Pt+"+"+Nt+"(?="+[Ot,Wt,"$"].join("|")+")",Dt+"+"+Bt+"(?="+[Ot,Wt+Lt,"$"].join("|")+")",Wt+"?"+Lt+"+"+Nt,Wt+"+"+Bt,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Mt,Zt].join("|"),"g"),tn=RegExp("["+Ft+bt+wt+Ct+"]"),nn=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,en=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],rn=-1,on={};on[P]=on[V]=on[U]=on[I]=on[T]=on[z]=on[W]=on[F]=on[L]=!0,on[v]=on[g]=on[M]=on[_]=on[j]=on[y]=on[m]=on[x]=on[w]=on[A]=on[$]=on[C]=on[E]=on[k]=on[R]=!1;var un={};un[v]=un[g]=un[M]=un[j]=un[_]=un[y]=un[P]=un[V]=un[U]=un[I]=un[T]=un[w]=un[A]=un[$]=un[C]=un[E]=un[k]=un[O]=un[z]=un[W]=un[F]=un[L]=!0,un[m]=un[x]=un[R]=!1;var sn={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},an=parseFloat,ln=parseInt,cn="object"==typeof e.g&&e.g&&e.g.Object===Object&&e.g,hn="object"==typeof self&&self&&self.Object===Object&&self,fn=cn||hn||Function("return this")(),pn=n&&!n.nodeType&&n,dn=pn&&t&&!t.nodeType&&t,vn=dn&&dn.exports===pn,gn=vn&&cn.process,_n=function(){try{return dn&&dn.require&&dn.require("util").types||gn&&gn.binding&&gn.binding("util")}catch(t){}}(),yn=_n&&_n.isArrayBuffer,mn=_n&&_n.isDate,xn=_n&&_n.isMap,bn=_n&&_n.isRegExp,wn=_n&&_n.isSet,An=_n&&_n.isTypedArray;function $n(t,n,e){switch(e.length){case 0:return t.call(n);case 1:return t.call(n,e[0]);case 2:return t.call(n,e[0],e[1]);case 3:return t.call(n,e[0],e[1],e[2])}return t.apply(n,e)}function Sn(t,n,e,r){for(var i=-1,o=null==t?0:t.length;++i<o;){var u=t[i];n(r,u,e(u),t)}return r}function Cn(t,n){for(var e=-1,r=null==t?0:t.length;++e<r&&!1!==n(t[e],e,t););return t}function En(t,n){for(var e=null==t?0:t.length;e--&&!1!==n(t[e],e,t););return t}function kn(t,n){for(var e=-1,r=null==t?0:t.length;++e<r;)if(!n(t[e],e,t))return!1;return!0}function On(t,n){for(var e=-1,r=null==t?0:t.length,i=0,o=[];++e<r;){var u=t[e];n(u,e,t)&&(o[i++]=u)}return o}function Rn(t,n){return!(null==t||!t.length)&&Fn(t,n,0)>-1}function Mn(t,n,e){for(var r=-1,i=null==t?0:t.length;++r<i;)if(e(n,t[r]))return!0;return!1}function jn(t,n){for(var e=-1,r=null==t?0:t.length,i=Array(r);++e<r;)i[e]=n(t[e],e,t);return i}function Pn(t,n){for(var e=-1,r=n.length,i=t.length;++e<r;)t[i+e]=n[e];return t}function Vn(t,n,e,r){var i=-1,o=null==t?0:t.length;for(r&&o&&(e=t[++i]);++i<o;)e=n(e,t[i],i,t);return e}function Un(t,n,e,r){var i=null==t?0:t.length;for(r&&i&&(e=t[--i]);i--;)e=n(e,t[i],i,t);return e}function In(t,n){for(var e=-1,r=null==t?0:t.length;++e<r;)if(n(t[e],e,t))return!0;return!1}var Tn=Bn("length");function zn(t,n,e){var r;return e(t,(function(t,e,i){if(n(t,e,i))return r=e,!1})),r}function Wn(t,n,e,r){for(var i=t.length,o=e+(r?1:-1);r?o--:++o<i;)if(n(t[o],o,t))return o;return-1}function Fn(t,n,e){return n==n?function(t,n,e){for(var r=e-1,i=t.length;++r<i;)if(t[r]===n)return r;return-1}(t,n,e):Wn(t,Dn,e)}function Ln(t,n,e,r){for(var i=e-1,o=t.length;++i<o;)if(r(t[i],n))return i;return-1}function Dn(t){return t!=t}function Nn(t,n){var e=null==t?0:t.length;return e?Gn(t,n)/e:f}function Bn(t){return function(n){return null==n?i:n[t]}}function Hn(t){return function(n){return null==t?i:t[n]}}function qn(t,n,e,r,i){return i(t,(function(t,i,o){e=r?(r=!1,t):n(e,t,i,o)})),e}function Gn(t,n){for(var e,r=-1,o=t.length;++r<o;){var u=n(t[r]);u!==i&&(e=e===i?u:e+u)}return e}function Zn(t,n){for(var e=-1,r=Array(t);++e<t;)r[e]=n(e);return r}function Kn(t){return t?t.slice(0,fe(t)+1).replace(rt,""):t}function Jn(t){return function(n){return t(n)}}function Yn(t,n){return jn(n,(function(n){return t[n]}))}function Qn(t,n){return t.has(n)}function Xn(t,n){for(var e=-1,r=t.length;++e<r&&Fn(n,t[e],0)>-1;);return e}function te(t,n){for(var e=t.length;e--&&Fn(n,t[e],0)>-1;);return e}var ne=Hn({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),ee=Hn({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function re(t){return"\\"+sn[t]}function ie(t){return tn.test(t)}function oe(t){var n=-1,e=Array(t.size);return t.forEach((function(t,r){e[++n]=[r,t]})),e}function ue(t,n){return function(e){return t(n(e))}}function se(t,n){for(var e=-1,r=t.length,i=0,o=[];++e<r;){var u=t[e];u!==n&&u!==s||(t[e]=s,o[i++]=e)}return o}function ae(t){var n=-1,e=Array(t.size);return t.forEach((function(t){e[++n]=t})),e}function le(t){var n=-1,e=Array(t.size);return t.forEach((function(t){e[++n]=[t,t]})),e}function ce(t){return ie(t)?function(t){for(var n=Qt.lastIndex=0;Qt.test(t);)++n;return n}(t):Tn(t)}function he(t){return ie(t)?function(t){return t.match(Qt)||[]}(t):function(t){return t.split("")}(t)}function fe(t){for(var n=t.length;n--&&it.test(t.charAt(n)););return n}var pe=Hn({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),de=function t(n){var e,r=(n=null==n?fn:de.defaults(fn.Object(),n,de.pick(fn,en))).Array,it=n.Date,bt=n.Error,wt=n.Function,At=n.Math,$t=n.Object,St=n.RegExp,Ct=n.String,Et=n.TypeError,kt=r.prototype,Ot=wt.prototype,Rt=$t.prototype,Mt=n["__core-js_shared__"],jt=Ot.toString,Pt=Rt.hasOwnProperty,Vt=0,Ut=(e=/[^.]+$/.exec(Mt&&Mt.keys&&Mt.keys.IE_PROTO||""))?"Symbol(src)_1."+e:"",It=Rt.toString,Tt=jt.call($t),zt=fn._,Wt=St("^"+jt.call(Pt).replace(nt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ft=vn?n.Buffer:i,Lt=n.Symbol,Dt=n.Uint8Array,Nt=Ft?Ft.allocUnsafe:i,Bt=ue($t.getPrototypeOf,$t),Ht=$t.create,qt=Rt.propertyIsEnumerable,Gt=kt.splice,Zt=Lt?Lt.isConcatSpreadable:i,Kt=Lt?Lt.iterator:i,Qt=Lt?Lt.toStringTag:i,tn=function(){try{var t=ao($t,"defineProperty");return t({},"",{}),t}catch(t){}}(),sn=n.clearTimeout!==fn.clearTimeout&&n.clearTimeout,cn=it&&it.now!==fn.Date.now&&it.now,hn=n.setTimeout!==fn.setTimeout&&n.setTimeout,pn=At.ceil,dn=At.floor,gn=$t.getOwnPropertySymbols,_n=Ft?Ft.isBuffer:i,Tn=n.isFinite,Hn=kt.join,ve=ue($t.keys,$t),ge=At.max,_e=At.min,ye=it.now,me=n.parseInt,xe=At.random,be=kt.reverse,we=ao(n,"DataView"),Ae=ao(n,"Map"),$e=ao(n,"Promise"),Se=ao(n,"Set"),Ce=ao(n,"WeakMap"),Ee=ao($t,"create"),ke=Ce&&new Ce,Oe={},Re=To(we),Me=To(Ae),je=To($e),Pe=To(Se),Ve=To(Ce),Ue=Lt?Lt.prototype:i,Ie=Ue?Ue.valueOf:i,Te=Ue?Ue.toString:i;function ze(t){if(ts(t)&&!Nu(t)&&!(t instanceof De)){if(t instanceof Le)return t;if(Pt.call(t,"__wrapped__"))return zo(t)}return new Le(t)}var We=function(){function t(){}return function(n){if(!Xu(n))return{};if(Ht)return Ht(n);t.prototype=n;var e=new t;return t.prototype=i,e}}();function Fe(){}function Le(t,n){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!n,this.__index__=0,this.__values__=i}function De(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=p,this.__views__=[]}function Ne(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n<e;){var r=t[n];this.set(r[0],r[1])}}function Be(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n<e;){var r=t[n];this.set(r[0],r[1])}}function He(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n<e;){var r=t[n];this.set(r[0],r[1])}}function qe(t){var n=-1,e=null==t?0:t.length;for(this.__data__=new He;++n<e;)this.add(t[n])}function Ge(t){var n=this.__data__=new Be(t);this.size=n.size}function Ze(t,n){var e=Nu(t),r=!e&&Du(t),i=!e&&!r&&Gu(t),o=!e&&!r&&!i&&as(t),u=e||r||i||o,s=u?Zn(t.length,Ct):[],a=s.length;for(var l in t)!n&&!Pt.call(t,l)||u&&("length"==l||i&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||go(l,a))||s.push(l);return s}function Ke(t){var n=t.length;return n?t[Hr(0,n-1)]:i}function Je(t,n){return jo(Ci(t),or(n,0,t.length))}function Ye(t){return jo(Ci(t))}function Qe(t,n,e){(e!==i&&!Wu(t[n],e)||e===i&&!(n in t))&&rr(t,n,e)}function Xe(t,n,e){var r=t[n];Pt.call(t,n)&&Wu(r,e)&&(e!==i||n in t)||rr(t,n,e)}function tr(t,n){for(var e=t.length;e--;)if(Wu(t[e][0],n))return e;return-1}function nr(t,n,e,r){return cr(t,(function(t,i,o){n(r,t,e(t),o)})),r}function er(t,n){return t&&Ei(n,Rs(n),t)}function rr(t,n,e){"__proto__"==n&&tn?tn(t,n,{configurable:!0,enumerable:!0,value:e,writable:!0}):t[n]=e}function ir(t,n){for(var e=-1,o=n.length,u=r(o),s=null==t;++e<o;)u[e]=s?i:Ss(t,n[e]);return u}function or(t,n,e){return t==t&&(e!==i&&(t=t<=e?t:e),n!==i&&(t=t>=n?t:n)),t}function ur(t,n,e,r,o,u){var s,a=1&n,l=2&n,c=4&n;if(e&&(s=o?e(t,r,o,u):e(t)),s!==i)return s;if(!Xu(t))return t;var h=Nu(t);if(h){if(s=function(t){var n=t.length,e=new t.constructor(n);return n&&"string"==typeof t[0]&&Pt.call(t,"index")&&(e.index=t.index,e.input=t.input),e}(t),!a)return Ci(t,s)}else{var f=ho(t),p=f==x||f==b;if(Gu(t))return xi(t,a);if(f==$||f==v||p&&!o){if(s=l||p?{}:po(t),!a)return l?function(t,n){return Ei(t,co(t),n)}(t,function(t,n){return t&&Ei(n,Ms(n),t)}(s,t)):function(t,n){return Ei(t,lo(t),n)}(t,er(s,t))}else{if(!un[f])return o?t:{};s=function(t,n,e){var r,i=t.constructor;switch(n){case M:return bi(t);case _:case y:return new i(+t);case j:return function(t,n){var e=n?bi(t.buffer):t.buffer;return new t.constructor(e,t.byteOffset,t.byteLength)}(t,e);case P:case V:case U:case I:case T:case z:case W:case F:case L:return wi(t,e);case w:return new i;case A:case k:return new i(t);case C:return function(t){var n=new t.constructor(t.source,ft.exec(t));return n.lastIndex=t.lastIndex,n}(t);case E:return new i;case O:return r=t,Ie?$t(Ie.call(r)):{}}}(t,f,a)}}u||(u=new Ge);var d=u.get(t);if(d)return d;u.set(t,s),os(t)?t.forEach((function(r){s.add(ur(r,n,e,r,t,u))})):ns(t)&&t.forEach((function(r,i){s.set(i,ur(r,n,e,i,t,u))}));var g=h?i:(c?l?no:to:l?Ms:Rs)(t);return Cn(g||t,(function(r,i){g&&(r=t[i=r]),Xe(s,i,ur(r,n,e,i,t,u))})),s}function sr(t,n,e){var r=e.length;if(null==t)return!r;for(t=$t(t);r--;){var o=e[r],u=n[o],s=t[o];if(s===i&&!(o in t)||!u(s))return!1}return!0}function ar(t,n,e){if("function"!=typeof t)throw new Et(o);return ko((function(){t.apply(i,e)}),n)}function lr(t,n,e,r){var i=-1,o=Rn,u=!0,s=t.length,a=[],l=n.length;if(!s)return a;e&&(n=jn(n,Jn(e))),r?(o=Mn,u=!1):n.length>=200&&(o=Qn,u=!1,n=new qe(n));t:for(;++i<s;){var c=t[i],h=null==e?c:e(c);if(c=r||0!==c?c:0,u&&h==h){for(var f=l;f--;)if(n[f]===h)continue t;a.push(c)}else o(n,h,r)||a.push(c)}return a}ze.templateSettings={escape:K,evaluate:J,interpolate:Y,variable:"",imports:{_:ze}},ze.prototype=Fe.prototype,ze.prototype.constructor=ze,Le.prototype=We(Fe.prototype),Le.prototype.constructor=Le,De.prototype=We(Fe.prototype),De.prototype.constructor=De,Ne.prototype.clear=function(){this.__data__=Ee?Ee(null):{},this.size=0},Ne.prototype.delete=function(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n},Ne.prototype.get=function(t){var n=this.__data__;if(Ee){var e=n[t];return e===u?i:e}return Pt.call(n,t)?n[t]:i},Ne.prototype.has=function(t){var n=this.__data__;return Ee?n[t]!==i:Pt.call(n,t)},Ne.prototype.set=function(t,n){var e=this.__data__;return this.size+=this.has(t)?0:1,e[t]=Ee&&n===i?u:n,this},Be.prototype.clear=function(){this.__data__=[],this.size=0},Be.prototype.delete=function(t){var n=this.__data__,e=tr(n,t);return!(e<0||(e==n.length-1?n.pop():Gt.call(n,e,1),--this.size,0))},Be.prototype.get=function(t){var n=this.__data__,e=tr(n,t);return e<0?i:n[e][1]},Be.prototype.has=function(t){return tr(this.__data__,t)>-1},Be.prototype.set=function(t,n){var e=this.__data__,r=tr(e,t);return r<0?(++this.size,e.push([t,n])):e[r][1]=n,this},He.prototype.clear=function(){this.size=0,this.__data__={hash:new Ne,map:new(Ae||Be),string:new Ne}},He.prototype.delete=function(t){var n=uo(this,t).delete(t);return this.size-=n?1:0,n},He.prototype.get=function(t){return uo(this,t).get(t)},He.prototype.has=function(t){return uo(this,t).has(t)},He.prototype.set=function(t,n){var e=uo(this,t),r=e.size;return e.set(t,n),this.size+=e.size==r?0:1,this},qe.prototype.add=qe.prototype.push=function(t){return this.__data__.set(t,u),this},qe.prototype.has=function(t){return this.__data__.has(t)},Ge.prototype.clear=function(){this.__data__=new Be,this.size=0},Ge.prototype.delete=function(t){var n=this.__data__,e=n.delete(t);return this.size=n.size,e},Ge.prototype.get=function(t){return this.__data__.get(t)},Ge.prototype.has=function(t){return this.__data__.has(t)},Ge.prototype.set=function(t,n){var e=this.__data__;if(e instanceof Be){var r=e.__data__;if(!Ae||r.length<199)return r.push([t,n]),this.size=++e.size,this;e=this.__data__=new He(r)}return e.set(t,n),this.size=e.size,this};var cr=Ri(yr),hr=Ri(mr,!0);function fr(t,n){var e=!0;return cr(t,(function(t,r,i){return e=!!n(t,r,i)})),e}function pr(t,n,e){for(var r=-1,o=t.length;++r<o;){var u=t[r],s=n(u);if(null!=s&&(a===i?s==s&&!ss(s):e(s,a)))var a=s,l=u}return l}function dr(t,n){var e=[];return cr(t,(function(t,r,i){n(t,r,i)&&e.push(t)})),e}function vr(t,n,e,r,i){var o=-1,u=t.length;for(e||(e=vo),i||(i=[]);++o<u;){var s=t[o];n>0&&e(s)?n>1?vr(s,n-1,e,r,i):Pn(i,s):r||(i[i.length]=s)}return i}var gr=Mi(),_r=Mi(!0);function yr(t,n){return t&&gr(t,n,Rs)}function mr(t,n){return t&&_r(t,n,Rs)}function xr(t,n){return On(n,(function(n){return Ju(t[n])}))}function br(t,n){for(var e=0,r=(n=gi(n,t)).length;null!=t&&e<r;)t=t[Io(n[e++])];return e&&e==r?t:i}function wr(t,n,e){var r=n(t);return Nu(t)?r:Pn(r,e(t))}function Ar(t){return null==t?t===i?"[object Undefined]":"[object Null]":Qt&&Qt in $t(t)?function(t){var n=Pt.call(t,Qt),e=t[Qt];try{t[Qt]=i;var r=!0}catch(t){}var o=It.call(t);return r&&(n?t[Qt]=e:delete t[Qt]),o}(t):function(t){return It.call(t)}(t)}function $r(t,n){return t>n}function Sr(t,n){return null!=t&&Pt.call(t,n)}function Cr(t,n){return null!=t&&n in $t(t)}function Er(t,n,e){for(var o=e?Mn:Rn,u=t[0].length,s=t.length,a=s,l=r(s),c=1/0,h=[];a--;){var f=t[a];a&&n&&(f=jn(f,Jn(n))),c=_e(f.length,c),l[a]=!e&&(n||u>=120&&f.length>=120)?new qe(a&&f):i}f=t[0];var p=-1,d=l[0];t:for(;++p<u&&h.length<c;){var v=f[p],g=n?n(v):v;if(v=e||0!==v?v:0,!(d?Qn(d,g):o(h,g,e))){for(a=s;--a;){var _=l[a];if(!(_?Qn(_,g):o(t[a],g,e)))continue t}d&&d.push(g),h.push(v)}}return h}function kr(t,n,e){var r=null==(t=So(t,n=gi(n,t)))?t:t[Io(Ko(n))];return null==r?i:$n(r,t,e)}function Or(t){return ts(t)&&Ar(t)==v}function Rr(t,n,e,r,o){return t===n||(null==t||null==n||!ts(t)&&!ts(n)?t!=t&&n!=n:function(t,n,e,r,o,u){var s=Nu(t),a=Nu(n),l=s?g:ho(t),c=a?g:ho(n),h=(l=l==v?$:l)==$,f=(c=c==v?$:c)==$,p=l==c;if(p&&Gu(t)){if(!Gu(n))return!1;s=!0,h=!1}if(p&&!h)return u||(u=new Ge),s||as(t)?Qi(t,n,e,r,o,u):function(t,n,e,r,i,o,u){switch(e){case j:if(t.byteLength!=n.byteLength||t.byteOffset!=n.byteOffset)return!1;t=t.buffer,n=n.buffer;case M:return!(t.byteLength!=n.byteLength||!o(new Dt(t),new Dt(n)));case _:case y:case A:return Wu(+t,+n);case m:return t.name==n.name&&t.message==n.message;case C:case k:return t==n+"";case w:var s=oe;case E:var a=1&r;if(s||(s=ae),t.size!=n.size&&!a)return!1;var l=u.get(t);if(l)return l==n;r|=2,u.set(t,n);var c=Qi(s(t),s(n),r,i,o,u);return u.delete(t),c;case O:if(Ie)return Ie.call(t)==Ie.call(n)}return!1}(t,n,l,e,r,o,u);if(!(1&e)){var d=h&&Pt.call(t,"__wrapped__"),x=f&&Pt.call(n,"__wrapped__");if(d||x){var b=d?t.value():t,S=x?n.value():n;return u||(u=new Ge),o(b,S,e,r,u)}}return!!p&&(u||(u=new Ge),function(t,n,e,r,o,u){var s=1&e,a=to(t),l=a.length;if(l!=to(n).length&&!s)return!1;for(var c=l;c--;){var h=a[c];if(!(s?h in n:Pt.call(n,h)))return!1}var f=u.get(t),p=u.get(n);if(f&&p)return f==n&&p==t;var d=!0;u.set(t,n),u.set(n,t);for(var v=s;++c<l;){var g=t[h=a[c]],_=n[h];if(r)var y=s?r(_,g,h,n,t,u):r(g,_,h,t,n,u);if(!(y===i?g===_||o(g,_,e,r,u):y)){d=!1;break}v||(v="constructor"==h)}if(d&&!v){var m=t.constructor,x=n.constructor;m==x||!("constructor"in t)||!("constructor"in n)||"function"==typeof m&&m instanceof m&&"function"==typeof x&&x instanceof x||(d=!1)}return u.delete(t),u.delete(n),d}(t,n,e,r,o,u))}(t,n,e,r,Rr,o))}function Mr(t,n,e,r){var o=e.length,u=o,s=!r;if(null==t)return!u;for(t=$t(t);o--;){var a=e[o];if(s&&a[2]?a[1]!==t[a[0]]:!(a[0]in t))return!1}for(;++o<u;){var l=(a=e[o])[0],c=t[l],h=a[1];if(s&&a[2]){if(c===i&&!(l in t))return!1}else{var f=new Ge;if(r)var p=r(c,h,l,t,n,f);if(!(p===i?Rr(h,c,3,r,f):p))return!1}}return!0}function jr(t){return!(!Xu(t)||(n=t,Ut&&Ut in n))&&(Ju(t)?Wt:vt).test(To(t));var n}function Pr(t){return"function"==typeof t?t:null==t?ea:"object"==typeof t?Nu(t)?zr(t[0],t[1]):Tr(t):ha(t)}function Vr(t){if(!bo(t))return ve(t);var n=[];for(var e in $t(t))Pt.call(t,e)&&"constructor"!=e&&n.push(e);return n}function Ur(t,n){return t<n}function Ir(t,n){var e=-1,i=Hu(t)?r(t.length):[];return cr(t,(function(t,r,o){i[++e]=n(t,r,o)})),i}function Tr(t){var n=so(t);return 1==n.length&&n[0][2]?Ao(n[0][0],n[0][1]):function(e){return e===t||Mr(e,t,n)}}function zr(t,n){return yo(t)&&wo(n)?Ao(Io(t),n):function(e){var r=Ss(e,t);return r===i&&r===n?Cs(e,t):Rr(n,r,3)}}function Wr(t,n,e,r,o){t!==n&&gr(n,(function(u,s){if(o||(o=new Ge),Xu(u))!function(t,n,e,r,o,u,s){var a=Co(t,e),l=Co(n,e),c=s.get(l);if(c)Qe(t,e,c);else{var h=u?u(a,l,e+"",t,n,s):i,f=h===i;if(f){var p=Nu(l),d=!p&&Gu(l),v=!p&&!d&&as(l);h=l,p||d||v?Nu(a)?h=a:qu(a)?h=Ci(a):d?(f=!1,h=xi(l,!0)):v?(f=!1,h=wi(l,!0)):h=[]:rs(l)||Du(l)?(h=a,Du(a)?h=gs(a):Xu(a)&&!Ju(a)||(h=po(l))):f=!1}f&&(s.set(l,h),o(h,l,r,u,s),s.delete(l)),Qe(t,e,h)}}(t,n,s,e,Wr,r,o);else{var a=r?r(Co(t,s),u,s+"",t,n,o):i;a===i&&(a=u),Qe(t,s,a)}}),Ms)}function Fr(t,n){var e=t.length;if(e)return go(n+=n<0?e:0,e)?t[n]:i}function Lr(t,n,e){n=n.length?jn(n,(function(t){return Nu(t)?function(n){return br(n,1===t.length?t[0]:t)}:t})):[ea];var r=-1;n=jn(n,Jn(oo()));var i=Ir(t,(function(t,e,i){var o=jn(n,(function(n){return n(t)}));return{criteria:o,index:++r,value:t}}));return function(t,n){var r=t.length;for(t.sort((function(t,n){return function(t,n,e){for(var r=-1,i=t.criteria,o=n.criteria,u=i.length,s=e.length;++r<u;){var a=Ai(i[r],o[r]);if(a)return r>=s?a:a*("desc"==e[r]?-1:1)}return t.index-n.index}(t,n,e)}));r--;)t[r]=t[r].value;return t}(i)}function Dr(t,n,e){for(var r=-1,i=n.length,o={};++r<i;){var u=n[r],s=br(t,u);e(s,u)&&Jr(o,gi(u,t),s)}return o}function Nr(t,n,e,r){var i=r?Ln:Fn,o=-1,u=n.length,s=t;for(t===n&&(n=Ci(n)),e&&(s=jn(t,Jn(e)));++o<u;)for(var a=0,l=n[o],c=e?e(l):l;(a=i(s,c,a,r))>-1;)s!==t&&Gt.call(s,a,1),Gt.call(t,a,1);return t}function Br(t,n){for(var e=t?n.length:0,r=e-1;e--;){var i=n[e];if(e==r||i!==o){var o=i;go(i)?Gt.call(t,i,1):ai(t,i)}}return t}function Hr(t,n){return t+dn(xe()*(n-t+1))}function qr(t,n){var e="";if(!t||n<1||n>h)return e;do{n%2&&(e+=t),(n=dn(n/2))&&(t+=t)}while(n);return e}function Gr(t,n){return Oo($o(t,n,ea),t+"")}function Zr(t){return Ke(Ws(t))}function Kr(t,n){var e=Ws(t);return jo(e,or(n,0,e.length))}function Jr(t,n,e,r){if(!Xu(t))return t;for(var o=-1,u=(n=gi(n,t)).length,s=u-1,a=t;null!=a&&++o<u;){var l=Io(n[o]),c=e;if("__proto__"===l||"constructor"===l||"prototype"===l)return t;if(o!=s){var h=a[l];(c=r?r(h,l,a):i)===i&&(c=Xu(h)?h:go(n[o+1])?[]:{})}Xe(a,l,c),a=a[l]}return t}var Yr=ke?function(t,n){return ke.set(t,n),t}:ea,Qr=tn?function(t,n){return tn(t,"toString",{configurable:!0,enumerable:!1,value:Xs(n),writable:!0})}:ea;function Xr(t){return jo(Ws(t))}function ti(t,n,e){var i=-1,o=t.length;n<0&&(n=-n>o?0:o+n),(e=e>o?o:e)<0&&(e+=o),o=n>e?0:e-n>>>0,n>>>=0;for(var u=r(o);++i<o;)u[i]=t[i+n];return u}function ni(t,n){var e;return cr(t,(function(t,r,i){return!(e=n(t,r,i))})),!!e}function ei(t,n,e){var r=0,i=null==t?r:t.length;if("number"==typeof n&&n==n&&i<=2147483647){for(;r<i;){var o=r+i>>>1,u=t[o];null!==u&&!ss(u)&&(e?u<=n:u<n)?r=o+1:i=o}return i}return ri(t,n,ea,e)}function ri(t,n,e,r){var o=0,u=null==t?0:t.length;if(0===u)return 0;for(var s=(n=e(n))!=n,a=null===n,l=ss(n),c=n===i;o<u;){var h=dn((o+u)/2),f=e(t[h]),p=f!==i,d=null===f,v=f==f,g=ss(f);if(s)var _=r||v;else _=c?v&&(r||p):a?v&&p&&(r||!d):l?v&&p&&!d&&(r||!g):!d&&!g&&(r?f<=n:f<n);_?o=h+1:u=h}return _e(u,4294967294)}function ii(t,n){for(var e=-1,r=t.length,i=0,o=[];++e<r;){var u=t[e],s=n?n(u):u;if(!e||!Wu(s,a)){var a=s;o[i++]=0===u?0:u}}return o}function oi(t){return"number"==typeof t?t:ss(t)?f:+t}function ui(t){if("string"==typeof t)return t;if(Nu(t))return jn(t,ui)+"";if(ss(t))return Te?Te.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}function si(t,n,e){var r=-1,i=Rn,o=t.length,u=!0,s=[],a=s;if(e)u=!1,i=Mn;else if(o>=200){var l=n?null:qi(t);if(l)return ae(l);u=!1,i=Qn,a=new qe}else a=n?[]:s;t:for(;++r<o;){var c=t[r],h=n?n(c):c;if(c=e||0!==c?c:0,u&&h==h){for(var f=a.length;f--;)if(a[f]===h)continue t;n&&a.push(h),s.push(c)}else i(a,h,e)||(a!==s&&a.push(h),s.push(c))}return s}function ai(t,n){return null==(t=So(t,n=gi(n,t)))||delete t[Io(Ko(n))]}function li(t,n,e,r){return Jr(t,n,e(br(t,n)),r)}function ci(t,n,e,r){for(var i=t.length,o=r?i:-1;(r?o--:++o<i)&&n(t[o],o,t););return e?ti(t,r?0:o,r?o+1:i):ti(t,r?o+1:0,r?i:o)}function hi(t,n){var e=t;return e instanceof De&&(e=e.value()),Vn(n,(function(t,n){return n.func.apply(n.thisArg,Pn([t],n.args))}),e)}function fi(t,n,e){var i=t.length;if(i<2)return i?si(t[0]):[];for(var o=-1,u=r(i);++o<i;)for(var s=t[o],a=-1;++a<i;)a!=o&&(u[o]=lr(u[o]||s,t[a],n,e));return si(vr(u,1),n,e)}function pi(t,n,e){for(var r=-1,o=t.length,u=n.length,s={};++r<o;){var a=r<u?n[r]:i;e(s,t[r],a)}return s}function di(t){return qu(t)?t:[]}function vi(t){return"function"==typeof t?t:ea}function gi(t,n){return Nu(t)?t:yo(t,n)?[t]:Uo(_s(t))}var _i=Gr;function yi(t,n,e){var r=t.length;return e=e===i?r:e,!n&&e>=r?t:ti(t,n,e)}var mi=sn||function(t){return fn.clearTimeout(t)};function xi(t,n){if(n)return t.slice();var e=t.length,r=Nt?Nt(e):new t.constructor(e);return t.copy(r),r}function bi(t){var n=new t.constructor(t.byteLength);return new Dt(n).set(new Dt(t)),n}function wi(t,n){var e=n?bi(t.buffer):t.buffer;return new t.constructor(e,t.byteOffset,t.length)}function Ai(t,n){if(t!==n){var e=t!==i,r=null===t,o=t==t,u=ss(t),s=n!==i,a=null===n,l=n==n,c=ss(n);if(!a&&!c&&!u&&t>n||u&&s&&l&&!a&&!c||r&&s&&l||!e&&l||!o)return 1;if(!r&&!u&&!c&&t<n||c&&e&&o&&!r&&!u||a&&e&&o||!s&&o||!l)return-1}return 0}function $i(t,n,e,i){for(var o=-1,u=t.length,s=e.length,a=-1,l=n.length,c=ge(u-s,0),h=r(l+c),f=!i;++a<l;)h[a]=n[a];for(;++o<s;)(f||o<u)&&(h[e[o]]=t[o]);for(;c--;)h[a++]=t[o++];return h}function Si(t,n,e,i){for(var o=-1,u=t.length,s=-1,a=e.length,l=-1,c=n.length,h=ge(u-a,0),f=r(h+c),p=!i;++o<h;)f[o]=t[o];for(var d=o;++l<c;)f[d+l]=n[l];for(;++s<a;)(p||o<u)&&(f[d+e[s]]=t[o++]);return f}function Ci(t,n){var e=-1,i=t.length;for(n||(n=r(i));++e<i;)n[e]=t[e];return n}function Ei(t,n,e,r){var o=!e;e||(e={});for(var u=-1,s=n.length;++u<s;){var a=n[u],l=r?r(e[a],t[a],a,e,t):i;l===i&&(l=t[a]),o?rr(e,a,l):Xe(e,a,l)}return e}function ki(t,n){return function(e,r){var i=Nu(e)?Sn:nr,o=n?n():{};return i(e,t,oo(r,2),o)}}function Oi(t){return Gr((function(n,e){var r=-1,o=e.length,u=o>1?e[o-1]:i,s=o>2?e[2]:i;for(u=t.length>3&&"function"==typeof u?(o--,u):i,s&&_o(e[0],e[1],s)&&(u=o<3?i:u,o=1),n=$t(n);++r<o;){var a=e[r];a&&t(n,a,r,u)}return n}))}function Ri(t,n){return function(e,r){if(null==e)return e;if(!Hu(e))return t(e,r);for(var i=e.length,o=n?i:-1,u=$t(e);(n?o--:++o<i)&&!1!==r(u[o],o,u););return e}}function Mi(t){return function(n,e,r){for(var i=-1,o=$t(n),u=r(n),s=u.length;s--;){var a=u[t?s:++i];if(!1===e(o[a],a,o))break}return n}}function ji(t){return function(n){var e=ie(n=_s(n))?he(n):i,r=e?e[0]:n.charAt(0),o=e?yi(e,1).join(""):n.slice(1);return r[t]()+o}}function Pi(t){return function(n){return Vn(Js(Ds(n).replace(Jt,"")),t,"")}}function Vi(t){return function(){var n=arguments;switch(n.length){case 0:return new t;case 1:return new t(n[0]);case 2:return new t(n[0],n[1]);case 3:return new t(n[0],n[1],n[2]);case 4:return new t(n[0],n[1],n[2],n[3]);case 5:return new t(n[0],n[1],n[2],n[3],n[4]);case 6:return new t(n[0],n[1],n[2],n[3],n[4],n[5]);case 7:return new t(n[0],n[1],n[2],n[3],n[4],n[5],n[6])}var e=We(t.prototype),r=t.apply(e,n);return Xu(r)?r:e}}function Ui(t){return function(n,e,r){var o=$t(n);if(!Hu(n)){var u=oo(e,3);n=Rs(n),e=function(t){return u(o[t],t,o)}}var s=t(n,e,r);return s>-1?o[u?n[s]:s]:i}}function Ii(t){return Xi((function(n){var e=n.length,r=e,u=Le.prototype.thru;for(t&&n.reverse();r--;){var s=n[r];if("function"!=typeof s)throw new Et(o);if(u&&!a&&"wrapper"==ro(s))var a=new Le([],!0)}for(r=a?r:e;++r<e;){var l=ro(s=n[r]),c="wrapper"==l?eo(s):i;a=c&&mo(c[0])&&424==c[1]&&!c[4].length&&1==c[9]?a[ro(c[0])].apply(a,c[3]):1==s.length&&mo(s)?a[l]():a.thru(s)}return function(){var t=arguments,r=t[0];if(a&&1==t.length&&Nu(r))return a.plant(r).value();for(var i=0,o=e?n[i].apply(this,t):r;++i<e;)o=n[i].call(this,o);return o}}))}function Ti(t,n,e,o,u,s,a,c,h,f){var p=n&l,d=1&n,v=2&n,g=24&n,_=512&n,y=v?i:Vi(t);return function l(){for(var m=arguments.length,x=r(m),b=m;b--;)x[b]=arguments[b];if(g)var w=io(l),A=function(t,n){for(var e=t.length,r=0;e--;)t[e]===n&&++r;return r}(x,w);if(o&&(x=$i(x,o,u,g)),s&&(x=Si(x,s,a,g)),m-=A,g&&m<f){var $=se(x,w);return Bi(t,n,Ti,l.placeholder,e,x,$,c,h,f-m)}var S=d?e:this,C=v?S[t]:t;return m=x.length,c?x=function(t,n){for(var e=t.length,r=_e(n.length,e),o=Ci(t);r--;){var u=n[r];t[r]=go(u,e)?o[u]:i}return t}(x,c):_&&m>1&&x.reverse(),p&&h<m&&(x.length=h),this&&this!==fn&&this instanceof l&&(C=y||Vi(C)),C.apply(S,x)}}function zi(t,n){return function(e,r){return function(t,n,e,r){return yr(t,(function(t,i,o){n(r,e(t),i,o)})),r}(e,t,n(r),{})}}function Wi(t,n){return function(e,r){var o;if(e===i&&r===i)return n;if(e!==i&&(o=e),r!==i){if(o===i)return r;"string"==typeof e||"string"==typeof r?(e=ui(e),r=ui(r)):(e=oi(e),r=oi(r)),o=t(e,r)}return o}}function Fi(t){return Xi((function(n){return n=jn(n,Jn(oo())),Gr((function(e){var r=this;return t(n,(function(t){return $n(t,r,e)}))}))}))}function Li(t,n){var e=(n=n===i?" ":ui(n)).length;if(e<2)return e?qr(n,t):n;var r=qr(n,pn(t/ce(n)));return ie(n)?yi(he(r),0,t).join(""):r.slice(0,t)}function Di(t){return function(n,e,o){return o&&"number"!=typeof o&&_o(n,e,o)&&(e=o=i),n=fs(n),e===i?(e=n,n=0):e=fs(e),function(t,n,e,i){for(var o=-1,u=ge(pn((n-t)/(e||1)),0),s=r(u);u--;)s[i?u:++o]=t,t+=e;return s}(n,e,o=o===i?n<e?1:-1:fs(o),t)}}function Ni(t){return function(n,e){return"string"==typeof n&&"string"==typeof e||(n=vs(n),e=vs(e)),t(n,e)}}function Bi(t,n,e,r,o,u,s,l,c,h){var f=8&n;n|=f?a:64,4&(n&=~(f?64:a))||(n&=-4);var p=[t,n,o,f?u:i,f?s:i,f?i:u,f?i:s,l,c,h],d=e.apply(i,p);return mo(t)&&Eo(d,p),d.placeholder=r,Ro(d,t,n)}function Hi(t){var n=At[t];return function(t,e){if(t=vs(t),(e=null==e?0:_e(ps(e),292))&&Tn(t)){var r=(_s(t)+"e").split("e");return+((r=(_s(n(r[0]+"e"+(+r[1]+e)))+"e").split("e"))[0]+"e"+(+r[1]-e))}return n(t)}}var qi=Se&&1/ae(new Se([,-0]))[1]==c?function(t){return new Se(t)}:sa;function Gi(t){return function(n){var e=ho(n);return e==w?oe(n):e==E?le(n):function(t,n){return jn(n,(function(n){return[n,t[n]]}))}(n,t(n))}}function Zi(t,n,e,u,c,h,f,p){var d=2&n;if(!d&&"function"!=typeof t)throw new Et(o);var v=u?u.length:0;if(v||(n&=-97,u=c=i),f=f===i?f:ge(ps(f),0),p=p===i?p:ps(p),v-=c?c.length:0,64&n){var g=u,_=c;u=c=i}var y=d?i:eo(t),m=[t,n,e,u,c,g,_,h,f,p];if(y&&function(t,n){var e=t[1],r=n[1],i=e|r,o=i<131,u=r==l&&8==e||r==l&&256==e&&t[7].length<=n[8]||384==r&&n[7].length<=n[8]&&8==e;if(!o&&!u)return t;1&r&&(t[2]=n[2],i|=1&e?0:4);var a=n[3];if(a){var c=t[3];t[3]=c?$i(c,a,n[4]):a,t[4]=c?se(t[3],s):n[4]}(a=n[5])&&(c=t[5],t[5]=c?Si(c,a,n[6]):a,t[6]=c?se(t[5],s):n[6]),(a=n[7])&&(t[7]=a),r&l&&(t[8]=null==t[8]?n[8]:_e(t[8],n[8])),null==t[9]&&(t[9]=n[9]),t[0]=n[0],t[1]=i}(m,y),t=m[0],n=m[1],e=m[2],u=m[3],c=m[4],!(p=m[9]=m[9]===i?d?0:t.length:ge(m[9]-v,0))&&24&n&&(n&=-25),n&&1!=n)x=8==n||16==n?function(t,n,e){var o=Vi(t);return function u(){for(var s=arguments.length,a=r(s),l=s,c=io(u);l--;)a[l]=arguments[l];var h=s<3&&a[0]!==c&&a[s-1]!==c?[]:se(a,c);return(s-=h.length)<e?Bi(t,n,Ti,u.placeholder,i,a,h,i,i,e-s):$n(this&&this!==fn&&this instanceof u?o:t,this,a)}}(t,n,p):n!=a&&33!=n||c.length?Ti.apply(i,m):function(t,n,e,i){var o=1&n,u=Vi(t);return function n(){for(var s=-1,a=arguments.length,l=-1,c=i.length,h=r(c+a),f=this&&this!==fn&&this instanceof n?u:t;++l<c;)h[l]=i[l];for(;a--;)h[l++]=arguments[++s];return $n(f,o?e:this,h)}}(t,n,e,u);else var x=function(t,n,e){var r=1&n,i=Vi(t);return function n(){return(this&&this!==fn&&this instanceof n?i:t).apply(r?e:this,arguments)}}(t,n,e);return Ro((y?Yr:Eo)(x,m),t,n)}function Ki(t,n,e,r){return t===i||Wu(t,Rt[e])&&!Pt.call(r,e)?n:t}function Ji(t,n,e,r,o,u){return Xu(t)&&Xu(n)&&(u.set(n,t),Wr(t,n,i,Ji,u),u.delete(n)),t}function Yi(t){return rs(t)?i:t}function Qi(t,n,e,r,o,u){var s=1&e,a=t.length,l=n.length;if(a!=l&&!(s&&l>a))return!1;var c=u.get(t),h=u.get(n);if(c&&h)return c==n&&h==t;var f=-1,p=!0,d=2&e?new qe:i;for(u.set(t,n),u.set(n,t);++f<a;){var v=t[f],g=n[f];if(r)var _=s?r(g,v,f,n,t,u):r(v,g,f,t,n,u);if(_!==i){if(_)continue;p=!1;break}if(d){if(!In(n,(function(t,n){if(!Qn(d,n)&&(v===t||o(v,t,e,r,u)))return d.push(n)}))){p=!1;break}}else if(v!==g&&!o(v,g,e,r,u)){p=!1;break}}return u.delete(t),u.delete(n),p}function Xi(t){return Oo($o(t,i,Bo),t+"")}function to(t){return wr(t,Rs,lo)}function no(t){return wr(t,Ms,co)}var eo=ke?function(t){return ke.get(t)}:sa;function ro(t){for(var n=t.name+"",e=Oe[n],r=Pt.call(Oe,n)?e.length:0;r--;){var i=e[r],o=i.func;if(null==o||o==t)return i.name}return n}function io(t){return(Pt.call(ze,"placeholder")?ze:t).placeholder}function oo(){var t=ze.iteratee||ra;return t=t===ra?Pr:t,arguments.length?t(arguments[0],arguments[1]):t}function uo(t,n){var e,r,i=t.__data__;return("string"==(r=typeof(e=n))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==e:null===e)?i["string"==typeof n?"string":"hash"]:i.map}function so(t){for(var n=Rs(t),e=n.length;e--;){var r=n[e],i=t[r];n[e]=[r,i,wo(i)]}return n}function ao(t,n){var e=function(t,n){return null==t?i:t[n]}(t,n);return jr(e)?e:i}var lo=gn?function(t){return null==t?[]:(t=$t(t),On(gn(t),(function(n){return qt.call(t,n)})))}:da,co=gn?function(t){for(var n=[];t;)Pn(n,lo(t)),t=Bt(t);return n}:da,ho=Ar;function fo(t,n,e){for(var r=-1,i=(n=gi(n,t)).length,o=!1;++r<i;){var u=Io(n[r]);if(!(o=null!=t&&e(t,u)))break;t=t[u]}return o||++r!=i?o:!!(i=null==t?0:t.length)&&Qu(i)&&go(u,i)&&(Nu(t)||Du(t))}function po(t){return"function"!=typeof t.constructor||bo(t)?{}:We(Bt(t))}function vo(t){return Nu(t)||Du(t)||!!(Zt&&t&&t[Zt])}function go(t,n){var e=typeof t;return!!(n=null==n?h:n)&&("number"==e||"symbol"!=e&&_t.test(t))&&t>-1&&t%1==0&&t<n}function _o(t,n,e){if(!Xu(e))return!1;var r=typeof n;return!!("number"==r?Hu(e)&&go(n,e.length):"string"==r&&n in e)&&Wu(e[n],t)}function yo(t,n){if(Nu(t))return!1;var e=typeof t;return!("number"!=e&&"symbol"!=e&&"boolean"!=e&&null!=t&&!ss(t))||X.test(t)||!Q.test(t)||null!=n&&t in $t(n)}function mo(t){var n=ro(t),e=ze[n];if("function"!=typeof e||!(n in De.prototype))return!1;if(t===e)return!0;var r=eo(e);return!!r&&t===r[0]}(we&&ho(new we(new ArrayBuffer(1)))!=j||Ae&&ho(new Ae)!=w||$e&&ho($e.resolve())!=S||Se&&ho(new Se)!=E||Ce&&ho(new Ce)!=R)&&(ho=function(t){var n=Ar(t),e=n==$?t.constructor:i,r=e?To(e):"";if(r)switch(r){case Re:return j;case Me:return w;case je:return S;case Pe:return E;case Ve:return R}return n});var xo=Mt?Ju:va;function bo(t){var n=t&&t.constructor;return t===("function"==typeof n&&n.prototype||Rt)}function wo(t){return t==t&&!Xu(t)}function Ao(t,n){return function(e){return null!=e&&e[t]===n&&(n!==i||t in $t(e))}}function $o(t,n,e){return n=ge(n===i?t.length-1:n,0),function(){for(var i=arguments,o=-1,u=ge(i.length-n,0),s=r(u);++o<u;)s[o]=i[n+o];o=-1;for(var a=r(n+1);++o<n;)a[o]=i[o];return a[n]=e(s),$n(t,this,a)}}function So(t,n){return n.length<2?t:br(t,ti(n,0,-1))}function Co(t,n){if(("constructor"!==n||"function"!=typeof t[n])&&"__proto__"!=n)return t[n]}var Eo=Mo(Yr),ko=hn||function(t,n){return fn.setTimeout(t,n)},Oo=Mo(Qr);function Ro(t,n,e){var r=n+"";return Oo(t,function(t,n){var e=n.length;if(!e)return t;var r=e-1;return n[r]=(e>1?"& ":"")+n[r],n=n.join(e>2?", ":" "),t.replace(ot,"{\n/* [wrapped with "+n+"] */\n")}(r,function(t,n){return Cn(d,(function(e){var r="_."+e[0];n&e[1]&&!Rn(t,r)&&t.push(r)})),t.sort()}(function(t){var n=t.match(ut);return n?n[1].split(st):[]}(r),e)))}function Mo(t){var n=0,e=0;return function(){var r=ye(),o=16-(r-e);if(e=r,o>0){if(++n>=800)return arguments[0]}else n=0;return t.apply(i,arguments)}}function jo(t,n){var e=-1,r=t.length,o=r-1;for(n=n===i?r:n;++e<n;){var u=Hr(e,o),s=t[u];t[u]=t[e],t[e]=s}return t.length=n,t}var Po,Vo,Uo=(Po=Pu((function(t){var n=[];return 46===t.charCodeAt(0)&&n.push(""),t.replace(tt,(function(t,e,r,i){n.push(r?i.replace(ct,"$1"):e||t)})),n}),(function(t){return 500===Vo.size&&Vo.clear(),t})),Vo=Po.cache,Po);function Io(t){if("string"==typeof t||ss(t))return t;var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}function To(t){if(null!=t){try{return jt.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function zo(t){if(t instanceof De)return t.clone();var n=new Le(t.__wrapped__,t.__chain__);return n.__actions__=Ci(t.__actions__),n.__index__=t.__index__,n.__values__=t.__values__,n}var Wo=Gr((function(t,n){return qu(t)?lr(t,vr(n,1,qu,!0)):[]})),Fo=Gr((function(t,n){var e=Ko(n);return qu(e)&&(e=i),qu(t)?lr(t,vr(n,1,qu,!0),oo(e,2)):[]})),Lo=Gr((function(t,n){var e=Ko(n);return qu(e)&&(e=i),qu(t)?lr(t,vr(n,1,qu,!0),i,e):[]}));function Do(t,n,e){var r=null==t?0:t.length;if(!r)return-1;var i=null==e?0:ps(e);return i<0&&(i=ge(r+i,0)),Wn(t,oo(n,3),i)}function No(t,n,e){var r=null==t?0:t.length;if(!r)return-1;var o=r-1;return e!==i&&(o=ps(e),o=e<0?ge(r+o,0):_e(o,r-1)),Wn(t,oo(n,3),o,!0)}function Bo(t){return null!=t&&t.length?vr(t,1):[]}function Ho(t){return t&&t.length?t[0]:i}var qo=Gr((function(t){var n=jn(t,di);return n.length&&n[0]===t[0]?Er(n):[]})),Go=Gr((function(t){var n=Ko(t),e=jn(t,di);return n===Ko(e)?n=i:e.pop(),e.length&&e[0]===t[0]?Er(e,oo(n,2)):[]})),Zo=Gr((function(t){var n=Ko(t),e=jn(t,di);return(n="function"==typeof n?n:i)&&e.pop(),e.length&&e[0]===t[0]?Er(e,i,n):[]}));function Ko(t){var n=null==t?0:t.length;return n?t[n-1]:i}var Jo=Gr(Yo);function Yo(t,n){return t&&t.length&&n&&n.length?Nr(t,n):t}var Qo=Xi((function(t,n){var e=null==t?0:t.length,r=ir(t,n);return Br(t,jn(n,(function(t){return go(t,e)?+t:t})).sort(Ai)),r}));function Xo(t){return null==t?t:be.call(t)}var tu=Gr((function(t){return si(vr(t,1,qu,!0))})),nu=Gr((function(t){var n=Ko(t);return qu(n)&&(n=i),si(vr(t,1,qu,!0),oo(n,2))})),eu=Gr((function(t){var n=Ko(t);return n="function"==typeof n?n:i,si(vr(t,1,qu,!0),i,n)}));function ru(t){if(!t||!t.length)return[];var n=0;return t=On(t,(function(t){if(qu(t))return n=ge(t.length,n),!0})),Zn(n,(function(n){return jn(t,Bn(n))}))}function iu(t,n){if(!t||!t.length)return[];var e=ru(t);return null==n?e:jn(e,(function(t){return $n(n,i,t)}))}var ou=Gr((function(t,n){return qu(t)?lr(t,n):[]})),uu=Gr((function(t){return fi(On(t,qu))})),su=Gr((function(t){var n=Ko(t);return qu(n)&&(n=i),fi(On(t,qu),oo(n,2))})),au=Gr((function(t){var n=Ko(t);return n="function"==typeof n?n:i,fi(On(t,qu),i,n)})),lu=Gr(ru),cu=Gr((function(t){var n=t.length,e=n>1?t[n-1]:i;return e="function"==typeof e?(t.pop(),e):i,iu(t,e)}));function hu(t){var n=ze(t);return n.__chain__=!0,n}function fu(t,n){return n(t)}var pu=Xi((function(t){var n=t.length,e=n?t[0]:0,r=this.__wrapped__,o=function(n){return ir(n,t)};return!(n>1||this.__actions__.length)&&r instanceof De&&go(e)?((r=r.slice(e,+e+(n?1:0))).__actions__.push({func:fu,args:[o],thisArg:i}),new Le(r,this.__chain__).thru((function(t){return n&&!t.length&&t.push(i),t}))):this.thru(o)})),du=ki((function(t,n,e){Pt.call(t,e)?++t[e]:rr(t,e,1)})),vu=Ui(Do),gu=Ui(No);function _u(t,n){return(Nu(t)?Cn:cr)(t,oo(n,3))}function yu(t,n){return(Nu(t)?En:hr)(t,oo(n,3))}var mu=ki((function(t,n,e){Pt.call(t,e)?t[e].push(n):rr(t,e,[n])})),xu=Gr((function(t,n,e){var i=-1,o="function"==typeof n,u=Hu(t)?r(t.length):[];return cr(t,(function(t){u[++i]=o?$n(n,t,e):kr(t,n,e)})),u})),bu=ki((function(t,n,e){rr(t,e,n)}));function wu(t,n){return(Nu(t)?jn:Ir)(t,oo(n,3))}var Au=ki((function(t,n,e){t[e?0:1].push(n)}),(function(){return[[],[]]})),$u=Gr((function(t,n){if(null==t)return[];var e=n.length;return e>1&&_o(t,n[0],n[1])?n=[]:e>2&&_o(n[0],n[1],n[2])&&(n=[n[0]]),Lr(t,vr(n,1),[])})),Su=cn||function(){return fn.Date.now()};function Cu(t,n,e){return n=e?i:n,n=t&&null==n?t.length:n,Zi(t,l,i,i,i,i,n)}function Eu(t,n){var e;if("function"!=typeof n)throw new Et(o);return t=ps(t),function(){return--t>0&&(e=n.apply(this,arguments)),t<=1&&(n=i),e}}var ku=Gr((function(t,n,e){var r=1;if(e.length){var i=se(e,io(ku));r|=a}return Zi(t,r,n,e,i)})),Ou=Gr((function(t,n,e){var r=3;if(e.length){var i=se(e,io(Ou));r|=a}return Zi(n,r,t,e,i)}));function Ru(t,n,e){var r,u,s,a,l,c,h=0,f=!1,p=!1,d=!0;if("function"!=typeof t)throw new Et(o);function v(n){var e=r,o=u;return r=u=i,h=n,a=t.apply(o,e)}function g(t){var e=t-c;return c===i||e>=n||e<0||p&&t-h>=s}function _(){var t=Su();if(g(t))return y(t);l=ko(_,function(t){var e=n-(t-c);return p?_e(e,s-(t-h)):e}(t))}function y(t){return l=i,d&&r?v(t):(r=u=i,a)}function m(){var t=Su(),e=g(t);if(r=arguments,u=this,c=t,e){if(l===i)return function(t){return h=t,l=ko(_,n),f?v(t):a}(c);if(p)return mi(l),l=ko(_,n),v(c)}return l===i&&(l=ko(_,n)),a}return n=vs(n)||0,Xu(e)&&(f=!!e.leading,s=(p="maxWait"in e)?ge(vs(e.maxWait)||0,n):s,d="trailing"in e?!!e.trailing:d),m.cancel=function(){l!==i&&mi(l),h=0,r=c=u=l=i},m.flush=function(){return l===i?a:y(Su())},m}var Mu=Gr((function(t,n){return ar(t,1,n)})),ju=Gr((function(t,n,e){return ar(t,vs(n)||0,e)}));function Pu(t,n){if("function"!=typeof t||null!=n&&"function"!=typeof n)throw new Et(o);var e=function(){var r=arguments,i=n?n.apply(this,r):r[0],o=e.cache;if(o.has(i))return o.get(i);var u=t.apply(this,r);return e.cache=o.set(i,u)||o,u};return e.cache=new(Pu.Cache||He),e}function Vu(t){if("function"!=typeof t)throw new Et(o);return function(){var n=arguments;switch(n.length){case 0:return!t.call(this);case 1:return!t.call(this,n[0]);case 2:return!t.call(this,n[0],n[1]);case 3:return!t.call(this,n[0],n[1],n[2])}return!t.apply(this,n)}}Pu.Cache=He;var Uu=_i((function(t,n){var e=(n=1==n.length&&Nu(n[0])?jn(n[0],Jn(oo())):jn(vr(n,1),Jn(oo()))).length;return Gr((function(r){for(var i=-1,o=_e(r.length,e);++i<o;)r[i]=n[i].call(this,r[i]);return $n(t,this,r)}))})),Iu=Gr((function(t,n){var e=se(n,io(Iu));return Zi(t,a,i,n,e)})),Tu=Gr((function(t,n){var e=se(n,io(Tu));return Zi(t,64,i,n,e)})),zu=Xi((function(t,n){return Zi(t,256,i,i,i,n)}));function Wu(t,n){return t===n||t!=t&&n!=n}var Fu=Ni($r),Lu=Ni((function(t,n){return t>=n})),Du=Or(function(){return arguments}())?Or:function(t){return ts(t)&&Pt.call(t,"callee")&&!qt.call(t,"callee")},Nu=r.isArray,Bu=yn?Jn(yn):function(t){return ts(t)&&Ar(t)==M};function Hu(t){return null!=t&&Qu(t.length)&&!Ju(t)}function qu(t){return ts(t)&&Hu(t)}var Gu=_n||va,Zu=mn?Jn(mn):function(t){return ts(t)&&Ar(t)==y};function Ku(t){if(!ts(t))return!1;var n=Ar(t);return n==m||"[object DOMException]"==n||"string"==typeof t.message&&"string"==typeof t.name&&!rs(t)}function Ju(t){if(!Xu(t))return!1;var n=Ar(t);return n==x||n==b||"[object AsyncFunction]"==n||"[object Proxy]"==n}function Yu(t){return"number"==typeof t&&t==ps(t)}function Qu(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=h}function Xu(t){var n=typeof t;return null!=t&&("object"==n||"function"==n)}function ts(t){return null!=t&&"object"==typeof t}var ns=xn?Jn(xn):function(t){return ts(t)&&ho(t)==w};function es(t){return"number"==typeof t||ts(t)&&Ar(t)==A}function rs(t){if(!ts(t)||Ar(t)!=$)return!1;var n=Bt(t);if(null===n)return!0;var e=Pt.call(n,"constructor")&&n.constructor;return"function"==typeof e&&e instanceof e&&jt.call(e)==Tt}var is=bn?Jn(bn):function(t){return ts(t)&&Ar(t)==C},os=wn?Jn(wn):function(t){return ts(t)&&ho(t)==E};function us(t){return"string"==typeof t||!Nu(t)&&ts(t)&&Ar(t)==k}function ss(t){return"symbol"==typeof t||ts(t)&&Ar(t)==O}var as=An?Jn(An):function(t){return ts(t)&&Qu(t.length)&&!!on[Ar(t)]},ls=Ni(Ur),cs=Ni((function(t,n){return t<=n}));function hs(t){if(!t)return[];if(Hu(t))return us(t)?he(t):Ci(t);if(Kt&&t[Kt])return function(t){for(var n,e=[];!(n=t.next()).done;)e.push(n.value);return e}(t[Kt]());var n=ho(t);return(n==w?oe:n==E?ae:Ws)(t)}function fs(t){return t?(t=vs(t))===c||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function ps(t){var n=fs(t),e=n%1;return n==n?e?n-e:n:0}function ds(t){return t?or(ps(t),0,p):0}function vs(t){if("number"==typeof t)return t;if(ss(t))return f;if(Xu(t)){var n="function"==typeof t.valueOf?t.valueOf():t;t=Xu(n)?n+"":n}if("string"!=typeof t)return 0===t?t:+t;t=Kn(t);var e=dt.test(t);return e||gt.test(t)?ln(t.slice(2),e?2:8):pt.test(t)?f:+t}function gs(t){return Ei(t,Ms(t))}function _s(t){return null==t?"":ui(t)}var ys=Oi((function(t,n){if(bo(n)||Hu(n))Ei(n,Rs(n),t);else for(var e in n)Pt.call(n,e)&&Xe(t,e,n[e])})),ms=Oi((function(t,n){Ei(n,Ms(n),t)})),xs=Oi((function(t,n,e,r){Ei(n,Ms(n),t,r)})),bs=Oi((function(t,n,e,r){Ei(n,Rs(n),t,r)})),ws=Xi(ir),As=Gr((function(t,n){t=$t(t);var e=-1,r=n.length,o=r>2?n[2]:i;for(o&&_o(n[0],n[1],o)&&(r=1);++e<r;)for(var u=n[e],s=Ms(u),a=-1,l=s.length;++a<l;){var c=s[a],h=t[c];(h===i||Wu(h,Rt[c])&&!Pt.call(t,c))&&(t[c]=u[c])}return t})),$s=Gr((function(t){return t.push(i,Ji),$n(Ps,i,t)}));function Ss(t,n,e){var r=null==t?i:br(t,n);return r===i?e:r}function Cs(t,n){return null!=t&&fo(t,n,Cr)}var Es=zi((function(t,n,e){null!=n&&"function"!=typeof n.toString&&(n=It.call(n)),t[n]=e}),Xs(ea)),ks=zi((function(t,n,e){null!=n&&"function"!=typeof n.toString&&(n=It.call(n)),Pt.call(t,n)?t[n].push(e):t[n]=[e]}),oo),Os=Gr(kr);function Rs(t){return Hu(t)?Ze(t):Vr(t)}function Ms(t){return Hu(t)?Ze(t,!0):function(t){if(!Xu(t))return function(t){var n=[];if(null!=t)for(var e in $t(t))n.push(e);return n}(t);var n=bo(t),e=[];for(var r in t)("constructor"!=r||!n&&Pt.call(t,r))&&e.push(r);return e}(t)}var js=Oi((function(t,n,e){Wr(t,n,e)})),Ps=Oi((function(t,n,e,r){Wr(t,n,e,r)})),Vs=Xi((function(t,n){var e={};if(null==t)return e;var r=!1;n=jn(n,(function(n){return n=gi(n,t),r||(r=n.length>1),n})),Ei(t,no(t),e),r&&(e=ur(e,7,Yi));for(var i=n.length;i--;)ai(e,n[i]);return e})),Us=Xi((function(t,n){return null==t?{}:function(t,n){return Dr(t,n,(function(n,e){return Cs(t,e)}))}(t,n)}));function Is(t,n){if(null==t)return{};var e=jn(no(t),(function(t){return[t]}));return n=oo(n),Dr(t,e,(function(t,e){return n(t,e[0])}))}var Ts=Gi(Rs),zs=Gi(Ms);function Ws(t){return null==t?[]:Yn(t,Rs(t))}var Fs=Pi((function(t,n,e){return n=n.toLowerCase(),t+(e?Ls(n):n)}));function Ls(t){return Ks(_s(t).toLowerCase())}function Ds(t){return(t=_s(t))&&t.replace(yt,ne).replace(Yt,"")}var Ns=Pi((function(t,n,e){return t+(e?"-":"")+n.toLowerCase()})),Bs=Pi((function(t,n,e){return t+(e?" ":"")+n.toLowerCase()})),Hs=ji("toLowerCase"),qs=Pi((function(t,n,e){return t+(e?"_":"")+n.toLowerCase()})),Gs=Pi((function(t,n,e){return t+(e?" ":"")+Ks(n)})),Zs=Pi((function(t,n,e){return t+(e?" ":"")+n.toUpperCase()})),Ks=ji("toUpperCase");function Js(t,n,e){return t=_s(t),(n=e?i:n)===i?function(t){return nn.test(t)}(t)?function(t){return t.match(Xt)||[]}(t):function(t){return t.match(at)||[]}(t):t.match(n)||[]}var Ys=Gr((function(t,n){try{return $n(t,i,n)}catch(t){return Ku(t)?t:new bt(t)}})),Qs=Xi((function(t,n){return Cn(n,(function(n){n=Io(n),rr(t,n,ku(t[n],t))})),t}));function Xs(t){return function(){return t}}var ta=Ii(),na=Ii(!0);function ea(t){return t}function ra(t){return Pr("function"==typeof t?t:ur(t,1))}var ia=Gr((function(t,n){return function(e){return kr(e,t,n)}})),oa=Gr((function(t,n){return function(e){return kr(t,e,n)}}));function ua(t,n,e){var r=Rs(n),i=xr(n,r);null!=e||Xu(n)&&(i.length||!r.length)||(e=n,n=t,t=this,i=xr(n,Rs(n)));var o=!(Xu(e)&&"chain"in e&&!e.chain),u=Ju(t);return Cn(i,(function(e){var r=n[e];t[e]=r,u&&(t.prototype[e]=function(){var n=this.__chain__;if(o||n){var e=t(this.__wrapped__);return(e.__actions__=Ci(this.__actions__)).push({func:r,args:arguments,thisArg:t}),e.__chain__=n,e}return r.apply(t,Pn([this.value()],arguments))})})),t}function sa(){}var aa=Fi(jn),la=Fi(kn),ca=Fi(In);function ha(t){return yo(t)?Bn(Io(t)):function(t){return function(n){return br(n,t)}}(t)}var fa=Di(),pa=Di(!0);function da(){return[]}function va(){return!1}var ga,_a=Wi((function(t,n){return t+n}),0),ya=Hi("ceil"),ma=Wi((function(t,n){return t/n}),1),xa=Hi("floor"),ba=Wi((function(t,n){return t*n}),1),wa=Hi("round"),Aa=Wi((function(t,n){return t-n}),0);return ze.after=function(t,n){if("function"!=typeof n)throw new Et(o);return t=ps(t),function(){if(--t<1)return n.apply(this,arguments)}},ze.ary=Cu,ze.assign=ys,ze.assignIn=ms,ze.assignInWith=xs,ze.assignWith=bs,ze.at=ws,ze.before=Eu,ze.bind=ku,ze.bindAll=Qs,ze.bindKey=Ou,ze.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return Nu(t)?t:[t]},ze.chain=hu,ze.chunk=function(t,n,e){n=(e?_o(t,n,e):n===i)?1:ge(ps(n),0);var o=null==t?0:t.length;if(!o||n<1)return[];for(var u=0,s=0,a=r(pn(o/n));u<o;)a[s++]=ti(t,u,u+=n);return a},ze.compact=function(t){for(var n=-1,e=null==t?0:t.length,r=0,i=[];++n<e;){var o=t[n];o&&(i[r++]=o)}return i},ze.concat=function(){var t=arguments.length;if(!t)return[];for(var n=r(t-1),e=arguments[0],i=t;i--;)n[i-1]=arguments[i];return Pn(Nu(e)?Ci(e):[e],vr(n,1))},ze.cond=function(t){var n=null==t?0:t.length,e=oo();return t=n?jn(t,(function(t){if("function"!=typeof t[1])throw new Et(o);return[e(t[0]),t[1]]})):[],Gr((function(e){for(var r=-1;++r<n;){var i=t[r];if($n(i[0],this,e))return $n(i[1],this,e)}}))},ze.conforms=function(t){return function(t){var n=Rs(t);return function(e){return sr(e,t,n)}}(ur(t,1))},ze.constant=Xs,ze.countBy=du,ze.create=function(t,n){var e=We(t);return null==n?e:er(e,n)},ze.curry=function t(n,e,r){var o=Zi(n,8,i,i,i,i,i,e=r?i:e);return o.placeholder=t.placeholder,o},ze.curryRight=function t(n,e,r){var o=Zi(n,16,i,i,i,i,i,e=r?i:e);return o.placeholder=t.placeholder,o},ze.debounce=Ru,ze.defaults=As,ze.defaultsDeep=$s,ze.defer=Mu,ze.delay=ju,ze.difference=Wo,ze.differenceBy=Fo,ze.differenceWith=Lo,ze.drop=function(t,n,e){var r=null==t?0:t.length;return r?ti(t,(n=e||n===i?1:ps(n))<0?0:n,r):[]},ze.dropRight=function(t,n,e){var r=null==t?0:t.length;return r?ti(t,0,(n=r-(n=e||n===i?1:ps(n)))<0?0:n):[]},ze.dropRightWhile=function(t,n){return t&&t.length?ci(t,oo(n,3),!0,!0):[]},ze.dropWhile=function(t,n){return t&&t.length?ci(t,oo(n,3),!0):[]},ze.fill=function(t,n,e,r){var o=null==t?0:t.length;return o?(e&&"number"!=typeof e&&_o(t,n,e)&&(e=0,r=o),function(t,n,e,r){var o=t.length;for((e=ps(e))<0&&(e=-e>o?0:o+e),(r=r===i||r>o?o:ps(r))<0&&(r+=o),r=e>r?0:ds(r);e<r;)t[e++]=n;return t}(t,n,e,r)):[]},ze.filter=function(t,n){return(Nu(t)?On:dr)(t,oo(n,3))},ze.flatMap=function(t,n){return vr(wu(t,n),1)},ze.flatMapDeep=function(t,n){return vr(wu(t,n),c)},ze.flatMapDepth=function(t,n,e){return e=e===i?1:ps(e),vr(wu(t,n),e)},ze.flatten=Bo,ze.flattenDeep=function(t){return null!=t&&t.length?vr(t,c):[]},ze.flattenDepth=function(t,n){return null!=t&&t.length?vr(t,n=n===i?1:ps(n)):[]},ze.flip=function(t){return Zi(t,512)},ze.flow=ta,ze.flowRight=na,ze.fromPairs=function(t){for(var n=-1,e=null==t?0:t.length,r={};++n<e;){var i=t[n];r[i[0]]=i[1]}return r},ze.functions=function(t){return null==t?[]:xr(t,Rs(t))},ze.functionsIn=function(t){return null==t?[]:xr(t,Ms(t))},ze.groupBy=mu,ze.initial=function(t){return null!=t&&t.length?ti(t,0,-1):[]},ze.intersection=qo,ze.intersectionBy=Go,ze.intersectionWith=Zo,ze.invert=Es,ze.invertBy=ks,ze.invokeMap=xu,ze.iteratee=ra,ze.keyBy=bu,ze.keys=Rs,ze.keysIn=Ms,ze.map=wu,ze.mapKeys=function(t,n){var e={};return n=oo(n,3),yr(t,(function(t,r,i){rr(e,n(t,r,i),t)})),e},ze.mapValues=function(t,n){var e={};return n=oo(n,3),yr(t,(function(t,r,i){rr(e,r,n(t,r,i))})),e},ze.matches=function(t){return Tr(ur(t,1))},ze.matchesProperty=function(t,n){return zr(t,ur(n,1))},ze.memoize=Pu,ze.merge=js,ze.mergeWith=Ps,ze.method=ia,ze.methodOf=oa,ze.mixin=ua,ze.negate=Vu,ze.nthArg=function(t){return t=ps(t),Gr((function(n){return Fr(n,t)}))},ze.omit=Vs,ze.omitBy=function(t,n){return Is(t,Vu(oo(n)))},ze.once=function(t){return Eu(2,t)},ze.orderBy=function(t,n,e,r){return null==t?[]:(Nu(n)||(n=null==n?[]:[n]),Nu(e=r?i:e)||(e=null==e?[]:[e]),Lr(t,n,e))},ze.over=aa,ze.overArgs=Uu,ze.overEvery=la,ze.overSome=ca,ze.partial=Iu,ze.partialRight=Tu,ze.partition=Au,ze.pick=Us,ze.pickBy=Is,ze.property=ha,ze.propertyOf=function(t){return function(n){return null==t?i:br(t,n)}},ze.pull=Jo,ze.pullAll=Yo,ze.pullAllBy=function(t,n,e){return t&&t.length&&n&&n.length?Nr(t,n,oo(e,2)):t},ze.pullAllWith=function(t,n,e){return t&&t.length&&n&&n.length?Nr(t,n,i,e):t},ze.pullAt=Qo,ze.range=fa,ze.rangeRight=pa,ze.rearg=zu,ze.reject=function(t,n){return(Nu(t)?On:dr)(t,Vu(oo(n,3)))},ze.remove=function(t,n){var e=[];if(!t||!t.length)return e;var r=-1,i=[],o=t.length;for(n=oo(n,3);++r<o;){var u=t[r];n(u,r,t)&&(e.push(u),i.push(r))}return Br(t,i),e},ze.rest=function(t,n){if("function"!=typeof t)throw new Et(o);return Gr(t,n=n===i?n:ps(n))},ze.reverse=Xo,ze.sampleSize=function(t,n,e){return n=(e?_o(t,n,e):n===i)?1:ps(n),(Nu(t)?Je:Kr)(t,n)},ze.set=function(t,n,e){return null==t?t:Jr(t,n,e)},ze.setWith=function(t,n,e,r){return r="function"==typeof r?r:i,null==t?t:Jr(t,n,e,r)},ze.shuffle=function(t){return(Nu(t)?Ye:Xr)(t)},ze.slice=function(t,n,e){var r=null==t?0:t.length;return r?(e&&"number"!=typeof e&&_o(t,n,e)?(n=0,e=r):(n=null==n?0:ps(n),e=e===i?r:ps(e)),ti(t,n,e)):[]},ze.sortBy=$u,ze.sortedUniq=function(t){return t&&t.length?ii(t):[]},ze.sortedUniqBy=function(t,n){return t&&t.length?ii(t,oo(n,2)):[]},ze.split=function(t,n,e){return e&&"number"!=typeof e&&_o(t,n,e)&&(n=e=i),(e=e===i?p:e>>>0)?(t=_s(t))&&("string"==typeof n||null!=n&&!is(n))&&!(n=ui(n))&&ie(t)?yi(he(t),0,e):t.split(n,e):[]},ze.spread=function(t,n){if("function"!=typeof t)throw new Et(o);return n=null==n?0:ge(ps(n),0),Gr((function(e){var r=e[n],i=yi(e,0,n);return r&&Pn(i,r),$n(t,this,i)}))},ze.tail=function(t){var n=null==t?0:t.length;return n?ti(t,1,n):[]},ze.take=function(t,n,e){return t&&t.length?ti(t,0,(n=e||n===i?1:ps(n))<0?0:n):[]},ze.takeRight=function(t,n,e){var r=null==t?0:t.length;return r?ti(t,(n=r-(n=e||n===i?1:ps(n)))<0?0:n,r):[]},ze.takeRightWhile=function(t,n){return t&&t.length?ci(t,oo(n,3),!1,!0):[]},ze.takeWhile=function(t,n){return t&&t.length?ci(t,oo(n,3)):[]},ze.tap=function(t,n){return n(t),t},ze.throttle=function(t,n,e){var r=!0,i=!0;if("function"!=typeof t)throw new Et(o);return Xu(e)&&(r="leading"in e?!!e.leading:r,i="trailing"in e?!!e.trailing:i),Ru(t,n,{leading:r,maxWait:n,trailing:i})},ze.thru=fu,ze.toArray=hs,ze.toPairs=Ts,ze.toPairsIn=zs,ze.toPath=function(t){return Nu(t)?jn(t,Io):ss(t)?[t]:Ci(Uo(_s(t)))},ze.toPlainObject=gs,ze.transform=function(t,n,e){var r=Nu(t),i=r||Gu(t)||as(t);if(n=oo(n,4),null==e){var o=t&&t.constructor;e=i?r?new o:[]:Xu(t)&&Ju(o)?We(Bt(t)):{}}return(i?Cn:yr)(t,(function(t,r,i){return n(e,t,r,i)})),e},ze.unary=function(t){return Cu(t,1)},ze.union=tu,ze.unionBy=nu,ze.unionWith=eu,ze.uniq=function(t){return t&&t.length?si(t):[]},ze.uniqBy=function(t,n){return t&&t.length?si(t,oo(n,2)):[]},ze.uniqWith=function(t,n){return n="function"==typeof n?n:i,t&&t.length?si(t,i,n):[]},ze.unset=function(t,n){return null==t||ai(t,n)},ze.unzip=ru,ze.unzipWith=iu,ze.update=function(t,n,e){return null==t?t:li(t,n,vi(e))},ze.updateWith=function(t,n,e,r){return r="function"==typeof r?r:i,null==t?t:li(t,n,vi(e),r)},ze.values=Ws,ze.valuesIn=function(t){return null==t?[]:Yn(t,Ms(t))},ze.without=ou,ze.words=Js,ze.wrap=function(t,n){return Iu(vi(n),t)},ze.xor=uu,ze.xorBy=su,ze.xorWith=au,ze.zip=lu,ze.zipObject=function(t,n){return pi(t||[],n||[],Xe)},ze.zipObjectDeep=function(t,n){return pi(t||[],n||[],Jr)},ze.zipWith=cu,ze.entries=Ts,ze.entriesIn=zs,ze.extend=ms,ze.extendWith=xs,ua(ze,ze),ze.add=_a,ze.attempt=Ys,ze.camelCase=Fs,ze.capitalize=Ls,ze.ceil=ya,ze.clamp=function(t,n,e){return e===i&&(e=n,n=i),e!==i&&(e=(e=vs(e))==e?e:0),n!==i&&(n=(n=vs(n))==n?n:0),or(vs(t),n,e)},ze.clone=function(t){return ur(t,4)},ze.cloneDeep=function(t){return ur(t,5)},ze.cloneDeepWith=function(t,n){return ur(t,5,n="function"==typeof n?n:i)},ze.cloneWith=function(t,n){return ur(t,4,n="function"==typeof n?n:i)},ze.conformsTo=function(t,n){return null==n||sr(t,n,Rs(n))},ze.deburr=Ds,ze.defaultTo=function(t,n){return null==t||t!=t?n:t},ze.divide=ma,ze.endsWith=function(t,n,e){t=_s(t),n=ui(n);var r=t.length,o=e=e===i?r:or(ps(e),0,r);return(e-=n.length)>=0&&t.slice(e,o)==n},ze.eq=Wu,ze.escape=function(t){return(t=_s(t))&&Z.test(t)?t.replace(q,ee):t},ze.escapeRegExp=function(t){return(t=_s(t))&&et.test(t)?t.replace(nt,"\\$&"):t},ze.every=function(t,n,e){var r=Nu(t)?kn:fr;return e&&_o(t,n,e)&&(n=i),r(t,oo(n,3))},ze.find=vu,ze.findIndex=Do,ze.findKey=function(t,n){return zn(t,oo(n,3),yr)},ze.findLast=gu,ze.findLastIndex=No,ze.findLastKey=function(t,n){return zn(t,oo(n,3),mr)},ze.floor=xa,ze.forEach=_u,ze.forEachRight=yu,ze.forIn=function(t,n){return null==t?t:gr(t,oo(n,3),Ms)},ze.forInRight=function(t,n){return null==t?t:_r(t,oo(n,3),Ms)},ze.forOwn=function(t,n){return t&&yr(t,oo(n,3))},ze.forOwnRight=function(t,n){return t&&mr(t,oo(n,3))},ze.get=Ss,ze.gt=Fu,ze.gte=Lu,ze.has=function(t,n){return null!=t&&fo(t,n,Sr)},ze.hasIn=Cs,ze.head=Ho,ze.identity=ea,ze.includes=function(t,n,e,r){t=Hu(t)?t:Ws(t),e=e&&!r?ps(e):0;var i=t.length;return e<0&&(e=ge(i+e,0)),us(t)?e<=i&&t.indexOf(n,e)>-1:!!i&&Fn(t,n,e)>-1},ze.indexOf=function(t,n,e){var r=null==t?0:t.length;if(!r)return-1;var i=null==e?0:ps(e);return i<0&&(i=ge(r+i,0)),Fn(t,n,i)},ze.inRange=function(t,n,e){return n=fs(n),e===i?(e=n,n=0):e=fs(e),function(t,n,e){return t>=_e(n,e)&&t<ge(n,e)}(t=vs(t),n,e)},ze.invoke=Os,ze.isArguments=Du,ze.isArray=Nu,ze.isArrayBuffer=Bu,ze.isArrayLike=Hu,ze.isArrayLikeObject=qu,ze.isBoolean=function(t){return!0===t||!1===t||ts(t)&&Ar(t)==_},ze.isBuffer=Gu,ze.isDate=Zu,ze.isElement=function(t){return ts(t)&&1===t.nodeType&&!rs(t)},ze.isEmpty=function(t){if(null==t)return!0;if(Hu(t)&&(Nu(t)||"string"==typeof t||"function"==typeof t.splice||Gu(t)||as(t)||Du(t)))return!t.length;var n=ho(t);if(n==w||n==E)return!t.size;if(bo(t))return!Vr(t).length;for(var e in t)if(Pt.call(t,e))return!1;return!0},ze.isEqual=function(t,n){return Rr(t,n)},ze.isEqualWith=function(t,n,e){var r=(e="function"==typeof e?e:i)?e(t,n):i;return r===i?Rr(t,n,i,e):!!r},ze.isError=Ku,ze.isFinite=function(t){return"number"==typeof t&&Tn(t)},ze.isFunction=Ju,ze.isInteger=Yu,ze.isLength=Qu,ze.isMap=ns,ze.isMatch=function(t,n){return t===n||Mr(t,n,so(n))},ze.isMatchWith=function(t,n,e){return e="function"==typeof e?e:i,Mr(t,n,so(n),e)},ze.isNaN=function(t){return es(t)&&t!=+t},ze.isNative=function(t){if(xo(t))throw new bt("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return jr(t)},ze.isNil=function(t){return null==t},ze.isNull=function(t){return null===t},ze.isNumber=es,ze.isObject=Xu,ze.isObjectLike=ts,ze.isPlainObject=rs,ze.isRegExp=is,ze.isSafeInteger=function(t){return Yu(t)&&t>=-9007199254740991&&t<=h},ze.isSet=os,ze.isString=us,ze.isSymbol=ss,ze.isTypedArray=as,ze.isUndefined=function(t){return t===i},ze.isWeakMap=function(t){return ts(t)&&ho(t)==R},ze.isWeakSet=function(t){return ts(t)&&"[object WeakSet]"==Ar(t)},ze.join=function(t,n){return null==t?"":Hn.call(t,n)},ze.kebabCase=Ns,ze.last=Ko,ze.lastIndexOf=function(t,n,e){var r=null==t?0:t.length;if(!r)return-1;var o=r;return e!==i&&(o=(o=ps(e))<0?ge(r+o,0):_e(o,r-1)),n==n?function(t,n,e){for(var r=e+1;r--;)if(t[r]===n)return r;return r}(t,n,o):Wn(t,Dn,o,!0)},ze.lowerCase=Bs,ze.lowerFirst=Hs,ze.lt=ls,ze.lte=cs,ze.max=function(t){return t&&t.length?pr(t,ea,$r):i},ze.maxBy=function(t,n){return t&&t.length?pr(t,oo(n,2),$r):i},ze.mean=function(t){return Nn(t,ea)},ze.meanBy=function(t,n){return Nn(t,oo(n,2))},ze.min=function(t){return t&&t.length?pr(t,ea,Ur):i},ze.minBy=function(t,n){return t&&t.length?pr(t,oo(n,2),Ur):i},ze.stubArray=da,ze.stubFalse=va,ze.stubObject=function(){return{}},ze.stubString=function(){return""},ze.stubTrue=function(){return!0},ze.multiply=ba,ze.nth=function(t,n){return t&&t.length?Fr(t,ps(n)):i},ze.noConflict=function(){return fn._===this&&(fn._=zt),this},ze.noop=sa,ze.now=Su,ze.pad=function(t,n,e){t=_s(t);var r=(n=ps(n))?ce(t):0;if(!n||r>=n)return t;var i=(n-r)/2;return Li(dn(i),e)+t+Li(pn(i),e)},ze.padEnd=function(t,n,e){t=_s(t);var r=(n=ps(n))?ce(t):0;return n&&r<n?t+Li(n-r,e):t},ze.padStart=function(t,n,e){t=_s(t);var r=(n=ps(n))?ce(t):0;return n&&r<n?Li(n-r,e)+t:t},ze.parseInt=function(t,n,e){return e||null==n?n=0:n&&(n=+n),me(_s(t).replace(rt,""),n||0)},ze.random=function(t,n,e){if(e&&"boolean"!=typeof e&&_o(t,n,e)&&(n=e=i),e===i&&("boolean"==typeof n?(e=n,n=i):"boolean"==typeof t&&(e=t,t=i)),t===i&&n===i?(t=0,n=1):(t=fs(t),n===i?(n=t,t=0):n=fs(n)),t>n){var r=t;t=n,n=r}if(e||t%1||n%1){var o=xe();return _e(t+o*(n-t+an("1e-"+((o+"").length-1))),n)}return Hr(t,n)},ze.reduce=function(t,n,e){var r=Nu(t)?Vn:qn,i=arguments.length<3;return r(t,oo(n,4),e,i,cr)},ze.reduceRight=function(t,n,e){var r=Nu(t)?Un:qn,i=arguments.length<3;return r(t,oo(n,4),e,i,hr)},ze.repeat=function(t,n,e){return n=(e?_o(t,n,e):n===i)?1:ps(n),qr(_s(t),n)},ze.replace=function(){var t=arguments,n=_s(t[0]);return t.length<3?n:n.replace(t[1],t[2])},ze.result=function(t,n,e){var r=-1,o=(n=gi(n,t)).length;for(o||(o=1,t=i);++r<o;){var u=null==t?i:t[Io(n[r])];u===i&&(r=o,u=e),t=Ju(u)?u.call(t):u}return t},ze.round=wa,ze.runInContext=t,ze.sample=function(t){return(Nu(t)?Ke:Zr)(t)},ze.size=function(t){if(null==t)return 0;if(Hu(t))return us(t)?ce(t):t.length;var n=ho(t);return n==w||n==E?t.size:Vr(t).length},ze.snakeCase=qs,ze.some=function(t,n,e){var r=Nu(t)?In:ni;return e&&_o(t,n,e)&&(n=i),r(t,oo(n,3))},ze.sortedIndex=function(t,n){return ei(t,n)},ze.sortedIndexBy=function(t,n,e){return ri(t,n,oo(e,2))},ze.sortedIndexOf=function(t,n){var e=null==t?0:t.length;if(e){var r=ei(t,n);if(r<e&&Wu(t[r],n))return r}return-1},ze.sortedLastIndex=function(t,n){return ei(t,n,!0)},ze.sortedLastIndexBy=function(t,n,e){return ri(t,n,oo(e,2),!0)},ze.sortedLastIndexOf=function(t,n){if(null!=t&&t.length){var e=ei(t,n,!0)-1;if(Wu(t[e],n))return e}return-1},ze.startCase=Gs,ze.startsWith=function(t,n,e){return t=_s(t),e=null==e?0:or(ps(e),0,t.length),n=ui(n),t.slice(e,e+n.length)==n},ze.subtract=Aa,ze.sum=function(t){return t&&t.length?Gn(t,ea):0},ze.sumBy=function(t,n){return t&&t.length?Gn(t,oo(n,2)):0},ze.template=function(t,n,e){var r=ze.templateSettings;e&&_o(t,n,e)&&(n=i),t=_s(t),n=xs({},n,r,Ki);var o,u,s=xs({},n.imports,r.imports,Ki),a=Rs(s),l=Yn(s,a),c=0,h=n.interpolate||mt,f="__p += '",p=St((n.escape||mt).source+"|"+h.source+"|"+(h===Y?ht:mt).source+"|"+(n.evaluate||mt).source+"|$","g"),d="//# sourceURL="+(Pt.call(n,"sourceURL")?(n.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++rn+"]")+"\n";t.replace(p,(function(n,e,r,i,s,a){return r||(r=i),f+=t.slice(c,a).replace(xt,re),e&&(o=!0,f+="' +\n__e("+e+") +\n'"),s&&(u=!0,f+="';\n"+s+";\n__p += '"),r&&(f+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),c=a+n.length,n})),f+="';\n";var v=Pt.call(n,"variable")&&n.variable;if(v){if(lt.test(v))throw new bt("Invalid `variable` option passed into `_.template`")}else f="with (obj) {\n"+f+"\n}\n";f=(u?f.replace(D,""):f).replace(N,"$1").replace(B,"$1;"),f="function("+(v||"obj")+") {\n"+(v?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(u?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var g=Ys((function(){return wt(a,d+"return "+f).apply(i,l)}));if(g.source=f,Ku(g))throw g;return g},ze.times=function(t,n){if((t=ps(t))<1||t>h)return[];var e=p,r=_e(t,p);n=oo(n),t-=p;for(var i=Zn(r,n);++e<t;)n(e);return i},ze.toFinite=fs,ze.toInteger=ps,ze.toLength=ds,ze.toLower=function(t){return _s(t).toLowerCase()},ze.toNumber=vs,ze.toSafeInteger=function(t){return t?or(ps(t),-9007199254740991,h):0===t?t:0},ze.toString=_s,ze.toUpper=function(t){return _s(t).toUpperCase()},ze.trim=function(t,n,e){if((t=_s(t))&&(e||n===i))return Kn(t);if(!t||!(n=ui(n)))return t;var r=he(t),o=he(n);return yi(r,Xn(r,o),te(r,o)+1).join("")},ze.trimEnd=function(t,n,e){if((t=_s(t))&&(e||n===i))return t.slice(0,fe(t)+1);if(!t||!(n=ui(n)))return t;var r=he(t);return yi(r,0,te(r,he(n))+1).join("")},ze.trimStart=function(t,n,e){if((t=_s(t))&&(e||n===i))return t.replace(rt,"");if(!t||!(n=ui(n)))return t;var r=he(t);return yi(r,Xn(r,he(n))).join("")},ze.truncate=function(t,n){var e=30,r="...";if(Xu(n)){var o="separator"in n?n.separator:o;e="length"in n?ps(n.length):e,r="omission"in n?ui(n.omission):r}var u=(t=_s(t)).length;if(ie(t)){var s=he(t);u=s.length}if(e>=u)return t;var a=e-ce(r);if(a<1)return r;var l=s?yi(s,0,a).join(""):t.slice(0,a);if(o===i)return l+r;if(s&&(a+=l.length-a),is(o)){if(t.slice(a).search(o)){var c,h=l;for(o.global||(o=St(o.source,_s(ft.exec(o))+"g")),o.lastIndex=0;c=o.exec(h);)var f=c.index;l=l.slice(0,f===i?a:f)}}else if(t.indexOf(ui(o),a)!=a){var p=l.lastIndexOf(o);p>-1&&(l=l.slice(0,p))}return l+r},ze.unescape=function(t){return(t=_s(t))&&G.test(t)?t.replace(H,pe):t},ze.uniqueId=function(t){var n=++Vt;return _s(t)+n},ze.upperCase=Zs,ze.upperFirst=Ks,ze.each=_u,ze.eachRight=yu,ze.first=Ho,ua(ze,(ga={},yr(ze,(function(t,n){Pt.call(ze.prototype,n)||(ga[n]=t)})),ga),{chain:!1}),ze.VERSION="4.17.21",Cn(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){ze[t].placeholder=ze})),Cn(["drop","take"],(function(t,n){De.prototype[t]=function(e){e=e===i?1:ge(ps(e),0);var r=this.__filtered__&&!n?new De(this):this.clone();return r.__filtered__?r.__takeCount__=_e(e,r.__takeCount__):r.__views__.push({size:_e(e,p),type:t+(r.__dir__<0?"Right":"")}),r},De.prototype[t+"Right"]=function(n){return this.reverse()[t](n).reverse()}})),Cn(["filter","map","takeWhile"],(function(t,n){var e=n+1,r=1==e||3==e;De.prototype[t]=function(t){var n=this.clone();return n.__iteratees__.push({iteratee:oo(t,3),type:e}),n.__filtered__=n.__filtered__||r,n}})),Cn(["head","last"],(function(t,n){var e="take"+(n?"Right":"");De.prototype[t]=function(){return this[e](1).value()[0]}})),Cn(["initial","tail"],(function(t,n){var e="drop"+(n?"":"Right");De.prototype[t]=function(){return this.__filtered__?new De(this):this[e](1)}})),De.prototype.compact=function(){return this.filter(ea)},De.prototype.find=function(t){return this.filter(t).head()},De.prototype.findLast=function(t){return this.reverse().find(t)},De.prototype.invokeMap=Gr((function(t,n){return"function"==typeof t?new De(this):this.map((function(e){return kr(e,t,n)}))})),De.prototype.reject=function(t){return this.filter(Vu(oo(t)))},De.prototype.slice=function(t,n){t=ps(t);var e=this;return e.__filtered__&&(t>0||n<0)?new De(e):(t<0?e=e.takeRight(-t):t&&(e=e.drop(t)),n!==i&&(e=(n=ps(n))<0?e.dropRight(-n):e.take(n-t)),e)},De.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},De.prototype.toArray=function(){return this.take(p)},yr(De.prototype,(function(t,n){var e=/^(?:filter|find|map|reject)|While$/.test(n),r=/^(?:head|last)$/.test(n),o=ze[r?"take"+("last"==n?"Right":""):n],u=r||/^find/.test(n);o&&(ze.prototype[n]=function(){var n=this.__wrapped__,s=r?[1]:arguments,a=n instanceof De,l=s[0],c=a||Nu(n),h=function(t){var n=o.apply(ze,Pn([t],s));return r&&f?n[0]:n};c&&e&&"function"==typeof l&&1!=l.length&&(a=c=!1);var f=this.__chain__,p=!!this.__actions__.length,d=u&&!f,v=a&&!p;if(!u&&c){n=v?n:new De(this);var g=t.apply(n,s);return g.__actions__.push({func:fu,args:[h],thisArg:i}),new Le(g,f)}return d&&v?t.apply(this,s):(g=this.thru(h),d?r?g.value()[0]:g.value():g)})})),Cn(["pop","push","shift","sort","splice","unshift"],(function(t){var n=kt[t],e=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);ze.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var i=this.value();return n.apply(Nu(i)?i:[],t)}return this[e]((function(e){return n.apply(Nu(e)?e:[],t)}))}})),yr(De.prototype,(function(t,n){var e=ze[n];if(e){var r=e.name+"";Pt.call(Oe,r)||(Oe[r]=[]),Oe[r].push({name:n,func:e})}})),Oe[Ti(i,2).name]=[{name:"wrapper",func:i}],De.prototype.clone=function(){var t=new De(this.__wrapped__);return t.__actions__=Ci(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Ci(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Ci(this.__views__),t},De.prototype.reverse=function(){if(this.__filtered__){var t=new De(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},De.prototype.value=function(){var t=this.__wrapped__.value(),n=this.__dir__,e=Nu(t),r=n<0,i=e?t.length:0,o=function(t,n,e){for(var r=-1,i=e.length;++r<i;){var o=e[r],u=o.size;switch(o.type){case"drop":t+=u;break;case"dropRight":n-=u;break;case"take":n=_e(n,t+u);break;case"takeRight":t=ge(t,n-u)}}return{start:t,end:n}}(0,i,this.__views__),u=o.start,s=o.end,a=s-u,l=r?s:u-1,c=this.__iteratees__,h=c.length,f=0,p=_e(a,this.__takeCount__);if(!e||!r&&i==a&&p==a)return hi(t,this.__actions__);var d=[];t:for(;a--&&f<p;){for(var v=-1,g=t[l+=n];++v<h;){var _=c[v],y=_.iteratee,m=_.type,x=y(g);if(2==m)g=x;else if(!x){if(1==m)continue t;break t}}d[f++]=g}return d},ze.prototype.at=pu,ze.prototype.chain=function(){return hu(this)},ze.prototype.commit=function(){return new Le(this.value(),this.__chain__)},ze.prototype.next=function(){this.__values__===i&&(this.__values__=hs(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?i:this.__values__[this.__index__++]}},ze.prototype.plant=function(t){for(var n,e=this;e instanceof Fe;){var r=zo(e);r.__index__=0,r.__values__=i,n?o.__wrapped__=r:n=r;var o=r;e=e.__wrapped__}return o.__wrapped__=t,n},ze.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof De){var n=t;return this.__actions__.length&&(n=new De(this)),(n=n.reverse()).__actions__.push({func:fu,args:[Xo],thisArg:i}),new Le(n,this.__chain__)}return this.thru(Xo)},ze.prototype.toJSON=ze.prototype.valueOf=ze.prototype.value=function(){return hi(this.__wrapped__,this.__actions__)},ze.prototype.first=ze.prototype.head,Kt&&(ze.prototype[Kt]=function(){return this}),ze}();fn._=de,(r=function(){return de}.call(n,e,n,t))===i||(t.exports=r)}.call(this)},154:t=>{"use strict";t.exports=n},488:t=>{"use strict";t.exports=r},472:n=>{"use strict";n.exports=t},848:t=>{"use strict";t.exports=e}},o={};function u(t){var n=o[t];if(void 0!==n)return n.exports;var e=o[t]={id:t,loaded:!1,exports:{}};return i[t].call(e.exports,e,e.exports,u),e.loaded=!0,e.exports}u.n=t=>{var n=t&&t.__esModule?()=>t.default:()=>t;return u.d(n,{a:n}),n},u.d=(t,n)=>{for(var e in n)u.o(n,e)&&!u.o(t,e)&&Object.defineProperty(t,e,{enumerable:!0,get:n[e]})},u.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),u.o=(t,n)=>Object.prototype.hasOwnProperty.call(t,n),u.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},u.nmd=t=>(t.paths=[],t.children||(t.children=[]),t);var s={};return(()=>{"use strict";u.r(s),u.d(s,{OrGauge:()=>wt});const t=window,n=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,e=Symbol(),r=new WeakMap;class i{constructor(t,n,r){if(this._$cssResult$=!0,r!==e)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=n}get styleSheet(){let t=this.o;const e=this.t;if(n&&void 0===t){const n=void 0!==e&&1===e.length;n&&(t=r.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),n&&r.set(e,t))}return t}toString(){return this.cssText}}const o=n?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let n="";for(const e of t.cssRules)n+=e.cssText;return(t=>new i("string"==typeof t?t:t+"",void 0,e))(n)})(t):t;var a;const l=window,c=l.trustedTypes,h=c?c.emptyScript:"",f=l.reactiveElementPolyfillSupport,p={toAttribute(t,n){switch(n){case Boolean:t=t?h:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,n){let e=t;switch(n){case Boolean:e=null!==t;break;case Number:e=null===t?null:Number(t);break;case Object:case Array:try{e=JSON.parse(t)}catch(t){e=null}}return e}},d=(t,n)=>n!==t&&(n==n||t==t),v={attribute:!0,type:String,converter:p,reflect:!1,hasChanged:d},g="finalized";class _ extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(t){var n;this.finalize(),(null!==(n=this.h)&&void 0!==n?n:this.h=[]).push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((n,e)=>{const r=this._$Ep(e,n);void 0!==r&&(this._$Ev.set(r,e),t.push(r))})),t}static createProperty(t,n=v){if(n.state&&(n.attribute=!1),this.finalize(),this.elementProperties.set(t,n),!n.noAccessor&&!this.prototype.hasOwnProperty(t)){const e="symbol"==typeof t?Symbol():"__"+t,r=this.getPropertyDescriptor(t,e,n);void 0!==r&&Object.defineProperty(this.prototype,t,r)}}static getPropertyDescriptor(t,n,e){return{get(){return this[n]},set(r){const i=this[t];this[n]=r,this.requestUpdate(t,i,e)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||v}static finalize(){if(this.hasOwnProperty(g))return!1;this[g]=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),void 0!==t.h&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,n=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const e of n)this.createProperty(e,t[e])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const n=[];if(Array.isArray(t)){const e=new Set(t.flat(1/0).reverse());for(const t of e)n.unshift(o(t))}else void 0!==t&&n.push(o(t));return n}static _$Ep(t,n){const e=n.attribute;return!1===e?void 0:"string"==typeof e?e:"string"==typeof t?t.toLowerCase():void 0}_$Eu(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var n,e;(null!==(n=this._$ES)&&void 0!==n?n:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(e=t.hostConnected)||void 0===e||e.call(t))}removeController(t){var n;null===(n=this._$ES)||void 0===n||n.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,n)=>{this.hasOwnProperty(n)&&(this._$Ei.set(n,this[n]),delete this[n])}))}createRenderRoot(){var e;const r=null!==(e=this.shadowRoot)&&void 0!==e?e:this.attachShadow(this.constructor.shadowRootOptions);return((e,r)=>{n?e.adoptedStyleSheets=r.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):r.forEach((n=>{const r=document.createElement("style"),i=t.litNonce;void 0!==i&&r.setAttribute("nonce",i),r.textContent=n.cssText,e.appendChild(r)}))})(r,this.constructor.elementStyles),r}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var n;return null===(n=t.hostConnected)||void 0===n?void 0:n.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var n;return null===(n=t.hostDisconnected)||void 0===n?void 0:n.call(t)}))}attributeChangedCallback(t,n,e){this._$AK(t,e)}_$EO(t,n,e=v){var r;const i=this.constructor._$Ep(t,e);if(void 0!==i&&!0===e.reflect){const o=(void 0!==(null===(r=e.converter)||void 0===r?void 0:r.toAttribute)?e.converter:p).toAttribute(n,e.type);this._$El=t,null==o?this.removeAttribute(i):this.setAttribute(i,o),this._$El=null}}_$AK(t,n){var e;const r=this.constructor,i=r._$Ev.get(t);if(void 0!==i&&this._$El!==i){const t=r.getPropertyOptions(i),o="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(e=t.converter)||void 0===e?void 0:e.fromAttribute)?t.converter:p;this._$El=i,this[i]=o.fromAttribute(n,t.type),this._$El=null}}requestUpdate(t,n,e){let r=!0;void 0!==t&&(((e=e||this.constructor.getPropertyOptions(t)).hasChanged||d)(this[t],n)?(this._$AL.has(t)||this._$AL.set(t,n),!0===e.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,e))):r=!1),!this.isUpdatePending&&r&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((t,n)=>this[n]=t)),this._$Ei=void 0);let n=!1;const e=this._$AL;try{n=this.shouldUpdate(e),n?(this.willUpdate(e),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var n;return null===(n=t.hostUpdate)||void 0===n?void 0:n.call(t)})),this.update(e)):this._$Ek()}catch(t){throw n=!1,this._$Ek(),t}n&&this._$AE(e)}willUpdate(t){}_$AE(t){var n;null===(n=this._$ES)||void 0===n||n.forEach((t=>{var n;return null===(n=t.hostUpdated)||void 0===n?void 0:n.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,n)=>this._$EO(n,this[n],t))),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}}var y;_[g]=!0,_.elementProperties=new Map,_.elementStyles=[],_.shadowRootOptions={mode:"open"},null==f||f({ReactiveElement:_}),(null!==(a=l.reactiveElementVersions)&&void 0!==a?a:l.reactiveElementVersions=[]).push("1.6.3");const m=window,x=m.trustedTypes,b=x?x.createPolicy("lit-html",{createHTML:t=>t}):void 0,w="$lit$",A=`lit$${(Math.random()+"").slice(9)}$`,$="?"+A,S=`<${$}>`,C=document,E=()=>C.createComment(""),k=t=>null===t||"object"!=typeof t&&"function"!=typeof t,O=Array.isArray,R="[ \t\n\f\r]",M=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,j=/-->/g,P=/>/g,V=RegExp(`>|${R}(?:([^\\s"'>=/]+)(${R}*=${R}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),U=/'/g,I=/"/g,T=/^(?:script|style|textarea|title)$/i,z=t=>(n,...e)=>({_$litType$:t,strings:n,values:e}),W=z(1),F=(z(2),Symbol.for("lit-noChange")),L=Symbol.for("lit-nothing"),D=new WeakMap,N=C.createTreeWalker(C,129,null,!1);function B(t,n){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==b?b.createHTML(n):n}const H=(t,n)=>{const e=t.length-1,r=[];let i,o=2===n?"<svg>":"",u=M;for(let n=0;n<e;n++){const e=t[n];let s,a,l=-1,c=0;for(;c<e.length&&(u.lastIndex=c,a=u.exec(e),null!==a);)c=u.lastIndex,u===M?"!--"===a[1]?u=j:void 0!==a[1]?u=P:void 0!==a[2]?(T.test(a[2])&&(i=RegExp("</"+a[2],"g")),u=V):void 0!==a[3]&&(u=V):u===V?">"===a[0]?(u=null!=i?i:M,l=-1):void 0===a[1]?l=-2:(l=u.lastIndex-a[2].length,s=a[1],u=void 0===a[3]?V:'"'===a[3]?I:U):u===I||u===U?u=V:u===j||u===P?u=M:(u=V,i=void 0);const h=u===V&&t[n+1].startsWith("/>")?" ":"";o+=u===M?e+S:l>=0?(r.push(s),e.slice(0,l)+w+e.slice(l)+A+h):e+A+(-2===l?(r.push(void 0),n):h)}return[B(t,o+(t[e]||"<?>")+(2===n?"</svg>":"")),r]};class q{constructor({strings:t,_$litType$:n},e){let r;this.parts=[];let i=0,o=0;const u=t.length-1,s=this.parts,[a,l]=H(t,n);if(this.el=q.createElement(a,e),N.currentNode=this.el.content,2===n){const t=this.el.content,n=t.firstChild;n.remove(),t.append(...n.childNodes)}for(;null!==(r=N.nextNode())&&s.length<u;){if(1===r.nodeType){if(r.hasAttributes()){const t=[];for(const n of r.getAttributeNames())if(n.endsWith(w)||n.startsWith(A)){const e=l[o++];if(t.push(n),void 0!==e){const t=r.getAttribute(e.toLowerCase()+w).split(A),n=/([.?@])?(.*)/.exec(e);s.push({type:1,index:i,name:n[2],strings:t,ctor:"."===n[1]?Y:"?"===n[1]?X:"@"===n[1]?tt:J})}else s.push({type:6,index:i})}for(const n of t)r.removeAttribute(n)}if(T.test(r.tagName)){const t=r.textContent.split(A),n=t.length-1;if(n>0){r.textContent=x?x.emptyScript:"";for(let e=0;e<n;e++)r.append(t[e],E()),N.nextNode(),s.push({type:2,index:++i});r.append(t[n],E())}}}else if(8===r.nodeType)if(r.data===$)s.push({type:2,index:i});else{let t=-1;for(;-1!==(t=r.data.indexOf(A,t+1));)s.push({type:7,index:i}),t+=A.length-1}i++}}static createElement(t,n){const e=C.createElement("template");return e.innerHTML=t,e}}function G(t,n,e=t,r){var i,o,u,s;if(n===F)return n;let a=void 0!==r?null===(i=e._$Co)||void 0===i?void 0:i[r]:e._$Cl;const l=k(n)?void 0:n._$litDirective$;return(null==a?void 0:a.constructor)!==l&&(null===(o=null==a?void 0:a._$AO)||void 0===o||o.call(a,!1),void 0===l?a=void 0:(a=new l(t),a._$AT(t,e,r)),void 0!==r?(null!==(u=(s=e)._$Co)&&void 0!==u?u:s._$Co=[])[r]=a:e._$Cl=a),void 0!==a&&(n=G(t,a._$AS(t,n.values),a,r)),n}class Z{constructor(t,n){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=n}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var n;const{el:{content:e},parts:r}=this._$AD,i=(null!==(n=null==t?void 0:t.creationScope)&&void 0!==n?n:C).importNode(e,!0);N.currentNode=i;let o=N.nextNode(),u=0,s=0,a=r[0];for(;void 0!==a;){if(u===a.index){let n;2===a.type?n=new K(o,o.nextSibling,this,t):1===a.type?n=new a.ctor(o,a.name,a.strings,this,t):6===a.type&&(n=new nt(o,this,t)),this._$AV.push(n),a=r[++s]}u!==(null==a?void 0:a.index)&&(o=N.nextNode(),u++)}return N.currentNode=C,i}v(t){let n=0;for(const e of this._$AV)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,n),n+=e.strings.length-2):e._$AI(t[n])),n++}}class K{constructor(t,n,e,r){var i;this.type=2,this._$AH=L,this._$AN=void 0,this._$AA=t,this._$AB=n,this._$AM=e,this.options=r,this._$Cp=null===(i=null==r?void 0:r.isConnected)||void 0===i||i}get _$AU(){var t,n;return null!==(n=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==n?n:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const n=this._$AM;return void 0!==n&&11===(null==t?void 0:t.nodeType)&&(t=n.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,n=this){t=G(this,t,n),k(t)?t===L||null==t||""===t?(this._$AH!==L&&this._$AR(),this._$AH=L):t!==this._$AH&&t!==F&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>O(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==L&&k(this._$AH)?this._$AA.nextSibling.data=t:this.$(C.createTextNode(t)),this._$AH=t}g(t){var n;const{values:e,_$litType$:r}=t,i="number"==typeof r?this._$AC(t):(void 0===r.el&&(r.el=q.createElement(B(r.h,r.h[0]),this.options)),r);if((null===(n=this._$AH)||void 0===n?void 0:n._$AD)===i)this._$AH.v(e);else{const t=new Z(i,this),n=t.u(this.options);t.v(e),this.$(n),this._$AH=t}}_$AC(t){let n=D.get(t.strings);return void 0===n&&D.set(t.strings,n=new q(t)),n}T(t){O(this._$AH)||(this._$AH=[],this._$AR());const n=this._$AH;let e,r=0;for(const i of t)r===n.length?n.push(e=new K(this.k(E()),this.k(E()),this,this.options)):e=n[r],e._$AI(i),r++;r<n.length&&(this._$AR(e&&e._$AB.nextSibling,r),n.length=r)}_$AR(t=this._$AA.nextSibling,n){var e;for(null===(e=this._$AP)||void 0===e||e.call(this,!1,!0,n);t&&t!==this._$AB;){const n=t.nextSibling;t.remove(),t=n}}setConnected(t){var n;void 0===this._$AM&&(this._$Cp=t,null===(n=this._$AP)||void 0===n||n.call(this,t))}}class J{constructor(t,n,e,r,i){this.type=1,this._$AH=L,this._$AN=void 0,this.element=t,this.name=n,this._$AM=r,this.options=i,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=L}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,n=this,e,r){const i=this.strings;let o=!1;if(void 0===i)t=G(this,t,n,0),o=!k(t)||t!==this._$AH&&t!==F,o&&(this._$AH=t);else{const r=t;let u,s;for(t=i[0],u=0;u<i.length-1;u++)s=G(this,r[e+u],n,u),s===F&&(s=this._$AH[u]),o||(o=!k(s)||s!==this._$AH[u]),s===L?t=L:t!==L&&(t+=(null!=s?s:"")+i[u+1]),this._$AH[u]=s}o&&!r&&this.j(t)}j(t){t===L?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class Y extends J{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===L?void 0:t}}const Q=x?x.emptyScript:"";class X extends J{constructor(){super(...arguments),this.type=4}j(t){t&&t!==L?this.element.setAttribute(this.name,Q):this.element.removeAttribute(this.name)}}class tt extends J{constructor(t,n,e,r,i){super(t,n,e,r,i),this.type=5}_$AI(t,n=this){var e;if((t=null!==(e=G(this,t,n,0))&&void 0!==e?e:L)===F)return;const r=this._$AH,i=t===L&&r!==L||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,o=t!==L&&(r===L||i);i&&this.element.removeEventListener(this.name,this,r),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var n,e;"function"==typeof this._$AH?this._$AH.call(null!==(e=null===(n=this.options)||void 0===n?void 0:n.host)&&void 0!==e?e:this.element,t):this._$AH.handleEvent(t)}}class nt{constructor(t,n,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=n,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(t){G(this,t)}}const et=m.litHtmlPolyfillSupport;var rt,it;null==et||et(q,K),(null!==(y=m.litHtmlVersions)&&void 0!==y?y:m.litHtmlVersions=[]).push("2.8.0");class ot extends _{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,n;const e=super.createRenderRoot();return null!==(t=(n=this.renderOptions).renderBefore)&&void 0!==t||(n.renderBefore=e.firstChild),e}update(t){const n=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,n,e)=>{var r,i;const o=null!==(r=null==e?void 0:e.renderBefore)&&void 0!==r?r:n;let u=o._$litPart$;if(void 0===u){const t=null!==(i=null==e?void 0:e.renderBefore)&&void 0!==i?i:null;o._$litPart$=u=new K(n.insertBefore(E(),t),t,void 0,null!=e?e:{})}return u._$AI(t),u})(n,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return F}}ot.finalized=!0,ot._$litElement$=!0,null===(rt=globalThis.litElementHydrateSupport)||void 0===rt||rt.call(globalThis,{LitElement:ot});const ut=globalThis.litElementPolyfillSupport;null==ut||ut({LitElement:ot}),(null!==(it=globalThis.litElementVersions)&&void 0!==it?it:globalThis.litElementVersions=[]).push("3.3.3");const st=(t,n)=>"method"===n.kind&&n.descriptor&&!("value"in n.descriptor)?{...n,finisher(e){e.createProperty(n.key,t)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:n.key,initializer(){"function"==typeof n.initializer&&(this[n.key]=n.initializer.call(this))},finisher(e){e.createProperty(n.key,t)}},at=(t,n,e)=>{n.constructor.createProperty(e,t)};function lt(t){return(n,e)=>void 0!==e?at(t,n,e):st(t,n)}function ct(t){return lt({...t,state:!0})}function ht(t,n){return(({finisher:t,descriptor:n})=>(e,r)=>{var i;if(void 0===r){const r=null!==(i=e.originalKey)&&void 0!==i?i:e.key,o=null!=n?{kind:"method",placement:"prototype",key:r,descriptor:n(e.key)}:{...e,key:r};return null!=t&&(o.finisher=function(n){t(n,r)}),o}{const i=e.constructor;void 0!==n&&Object.defineProperty(e,r,n(r)),null==t||t(i,r)}})({descriptor:e=>{const r={get(){var n,e;return null!==(e=null===(n=this.renderRoot)||void 0===n?void 0:n.querySelector(t))&&void 0!==e?e:null},enumerable:!0,configurable:!0};if(n){const n="symbol"==typeof e?Symbol():"__"+e;r.get=function(){var e,r;return void 0===this[n]&&(this[n]=null!==(r=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelector(t))&&void 0!==r?r:null),this[n]}}return r}})}var ft;null===(ft=window.HTMLSlotElement)||void 0===ft||ft.prototype.assignedElements;var pt=u(472),dt=u(68),vt=u(154),gt=u.n(vt),_t=u(848),yt=u(944),mt=u(488),xt=function(t,n,e,r){var i,o=arguments.length,u=o<3?n:null===r?r=Object.getOwnPropertyDescriptor(n,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)u=Reflect.decorate(t,n,e,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(u=(o<3?i(u):o>3?i(n,e,u):i(n,e))||u);return o>3&&u&&Object.defineProperty(n,e,u),u};const bt=((t,...n)=>{const r=1===t.length?t[0]:n.reduce(((n,e,r)=>n+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(e)+t[r+1]),t[0]);return new i(r,t,e)})`
2
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("ORModel"),require("ORCore"),require("ORTranslate"),require("ORIcon")):"function"==typeof define&&define.amd?define(["ORModel","ORCore","ORTranslate","ORIcon"],e):"object"==typeof exports?exports.ORGauge=e(require("ORModel"),require("ORCore"),require("ORTranslate"),require("ORIcon")):t.ORGauge=e(t.ORModel,t.ORCore,t.ORTranslate,t.ORIcon)}(self,((t,e,n,r)=>(()=>{var i={68:function(t,e,n){var r;(function(){var i,o,s,u,a,l,c,h,f,p,d,v,g=[].slice,_={}.hasOwnProperty,y=function(t,e){for(var n in e)_.call(e,n)&&(t[n]=e[n]);function r(){this.constructor=t}return r.prototype=e.prototype,t.prototype=new r,t.__super__=e.prototype,t},m=[].indexOf||function(t){for(var e=0,n=this.length;e<n;e++)if(e in this&&this[e]===t)return e;return-1};!function(){var t,e,n,r,i,o,s;for(n=0,i=(s=["ms","moz","webkit","o"]).length;n<i&&(o=s[n],!window.requestAnimationFrame);n++)window.requestAnimationFrame=window[o+"RequestAnimationFrame"],window.cancelAnimationFrame=window[o+"CancelAnimationFrame"]||window[o+"CancelRequestAnimationFrame"];t=null,r=0,e={},requestAnimationFrame?window.cancelAnimationFrame||(t=window.requestAnimationFrame,window.requestAnimationFrame=function(n,i){var o;return o=++r,t((function(){if(!e[o])return n()}),i),o},window.cancelAnimationFrame=function(t){return e[t]=!0}):(window.requestAnimationFrame=function(t,e){var n,r,i,o;return n=(new Date).getTime(),o=Math.max(0,16-(n-i)),r=window.setTimeout((function(){return t(n+o)}),o),i=n+o,r},window.cancelAnimationFrame=function(t){return clearTimeout(t)})}(),v=function(t){var e,n;for(t-=3600*(e=Math.floor(t/3600))+60*(n=Math.floor((t-3600*e)/60)),t+="",n+="";n.length<2;)n="0"+n;for(;t.length<2;)t="0"+t;return(e=e?e+":":"")+n+":"+t},p=function(){var t,e,n;return n=(e=1<=arguments.length?g.call(arguments,0):[])[0],t=e[1],h(n.toFixed(t))},d=function(t,e){var n,r,i;for(n in r={},t)_.call(t,n)&&(i=t[n],r[n]=i);for(n in e)_.call(e,n)&&(i=e[n],r[n]=i);return r},h=function(t){var e,n,r,i;for(r=(n=(t+="").split("."))[0],i="",n.length>1&&(i="."+n[1]),e=/(\d+)(\d{3})/;e.test(r);)r=r.replace(e,"$1,$2");return r+i},f=function(t){return"#"===t.charAt(0)?t.substring(1,7):t},o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return y(e,t),e.prototype.displayScale=1,e.prototype.forceUpdate=!0,e.prototype.setTextField=function(t,e){return this.textField=t instanceof l?t:new l(t,e)},e.prototype.setMinValue=function(t,e){var n,r,i,o,s;if(this.minValue=t,null==e&&(e=!0),e){for(this.displayedValue=this.minValue,s=[],r=0,i=(o=this.gp||[]).length;r<i;r++)n=o[r],s.push(n.displayedValue=this.minValue);return s}},e.prototype.setOptions=function(t){return null==t&&(t=null),this.options=d(this.options,t),this.textField&&(this.textField.el.style.fontSize=t.fontSize+"px"),this.options.angle>.5&&(this.options.angle=.5),this.configDisplayScale(),this},e.prototype.configDisplayScale=function(){var t,e,n,r,i;return r=this.displayScale,!1===this.options.highDpiSupport?delete this.displayScale:(e=window.devicePixelRatio||1,t=this.ctx.webkitBackingStorePixelRatio||this.ctx.mozBackingStorePixelRatio||this.ctx.msBackingStorePixelRatio||this.ctx.oBackingStorePixelRatio||this.ctx.backingStorePixelRatio||1,this.displayScale=e/t),this.displayScale!==r&&(i=this.canvas.G__width||this.canvas.width,n=this.canvas.G__height||this.canvas.height,this.canvas.width=i*this.displayScale,this.canvas.height=n*this.displayScale,this.canvas.style.width=i+"px",this.canvas.style.height=n+"px",this.canvas.G__width=i,this.canvas.G__height=n),this},e.prototype.parseValue=function(t){return t=parseFloat(t)||Number(t),isFinite(t)?t:0},e}(c=function(){function t(t,e){null==t&&(t=!0),this.clear=null==e||e,t&&AnimationUpdater.add(this)}return t.prototype.animationSpeed=32,t.prototype.update=function(t){var e;return null==t&&(t=!1),!(!t&&this.displayedValue===this.value||(this.ctx&&this.clear&&this.ctx.clearRect(0,0,this.canvas.width,this.canvas.height),e=this.value-this.displayedValue,Math.abs(e/this.animationSpeed)<=.001?this.displayedValue=this.value:this.displayedValue=this.displayedValue+e/this.animationSpeed,this.render(),0))},t}()),l=function(){function t(t,e){this.el=t,this.fractionDigits=e}return t.prototype.render=function(t){return this.el.innerHTML=p(t.displayedValue,this.fractionDigits)},t}(),function(t){function e(t,n){if(this.elem=t,this.text=null!=n&&n,e.__super__.constructor.call(this),void 0===this.elem)throw new Error("The element isn't defined.");this.value=1*this.elem.innerHTML,this.text&&(this.value=0)}y(e,t),e.prototype.displayedValue=0,e.prototype.value=0,e.prototype.setVal=function(t){return this.value=1*t},e.prototype.render=function(){var t;return t=this.text?v(this.displayedValue.toFixed(0)):h(p(this.displayedValue)),this.elem.innerHTML=t}}(c),a=function(t){function e(t){if(this.gauge=t,void 0===this.gauge)throw new Error("The element isn't defined.");this.ctx=this.gauge.ctx,this.canvas=this.gauge.canvas,e.__super__.constructor.call(this,!1,!1),this.setOptions()}return y(e,t),e.prototype.displayedValue=0,e.prototype.value=0,e.prototype.options={strokeWidth:.035,length:.1,color:"#000000",iconPath:null,iconScale:1,iconAngle:0},e.prototype.img=null,e.prototype.setOptions=function(t){if(null==t&&(t=null),this.options=d(this.options,t),this.length=2*this.gauge.radius*this.gauge.options.radiusScale*this.options.length,this.strokeWidth=this.canvas.height*this.options.strokeWidth,this.maxValue=this.gauge.maxValue,this.minValue=this.gauge.minValue,this.animationSpeed=this.gauge.animationSpeed,this.options.angle=this.gauge.options.angle,this.options.iconPath)return this.img=new Image,this.img.src=this.options.iconPath},e.prototype.render=function(){var t,e,n,r,i,o,s,u,a;if(t=this.gauge.getAngle.call(this,this.displayedValue),u=Math.round(this.length*Math.cos(t)),a=Math.round(this.length*Math.sin(t)),o=Math.round(this.strokeWidth*Math.cos(t-Math.PI/2)),s=Math.round(this.strokeWidth*Math.sin(t-Math.PI/2)),e=Math.round(this.strokeWidth*Math.cos(t+Math.PI/2)),n=Math.round(this.strokeWidth*Math.sin(t+Math.PI/2)),this.ctx.beginPath(),this.ctx.fillStyle=this.options.color,this.ctx.arc(0,0,this.strokeWidth,0,2*Math.PI,!1),this.ctx.fill(),this.ctx.beginPath(),this.ctx.moveTo(o,s),this.ctx.lineTo(u,a),this.ctx.lineTo(e,n),this.ctx.fill(),this.img)return r=Math.round(this.img.width*this.options.iconScale),i=Math.round(this.img.height*this.options.iconScale),this.ctx.save(),this.ctx.translate(u,a),this.ctx.rotate(t+Math.PI/180*(90+this.options.iconAngle)),this.ctx.drawImage(this.img,-r/2,-i/2,r,i),this.ctx.restore()},e}(c),function(){function t(t){this.elem=t}t.prototype.updateValues=function(t){return this.value=t[0],this.maxValue=t[1],this.avgValue=t[2],this.render()},t.prototype.render=function(){var t,e;return this.textField&&this.textField.text(p(this.value)),0===this.maxValue&&(this.maxValue=2*this.avgValue),e=this.value/this.maxValue*100,t=this.avgValue/this.maxValue*100,$(".bar-value",this.elem).css({width:e+"%"}),$(".typical-value",this.elem).css({width:t+"%"})}}(),u=function(t){function e(t){var n,r;this.canvas=t,e.__super__.constructor.call(this),this.percentColors=null,"undefined"!=typeof G_vmlCanvasManager&&(this.canvas=window.G_vmlCanvasManager.initElement(this.canvas)),this.ctx=this.canvas.getContext("2d"),n=this.canvas.clientHeight,r=this.canvas.clientWidth,this.canvas.height=n,this.canvas.width=r,this.gp=[new a(this)],this.setOptions()}return y(e,t),e.prototype.elem=null,e.prototype.value=[20],e.prototype.maxValue=80,e.prototype.minValue=0,e.prototype.displayedAngle=0,e.prototype.displayedValue=0,e.prototype.lineWidth=40,e.prototype.paddingTop=.1,e.prototype.paddingBottom=.1,e.prototype.percentColors=null,e.prototype.options={colorStart:"#6fadcf",colorStop:void 0,gradientType:0,strokeColor:"#e0e0e0",pointer:{length:.8,strokeWidth:.035,iconScale:1},angle:.15,lineWidth:.44,radiusScale:1,fontSize:40,limitMax:!1,limitMin:!1},e.prototype.setOptions=function(t){var n,r,i,o,s;for(null==t&&(t=null),e.__super__.setOptions.call(this,t),this.configPercentColors(),this.extraPadding=0,this.options.angle<0&&(o=Math.PI*(1+this.options.angle),this.extraPadding=Math.sin(o)),this.availableHeight=this.canvas.height*(1-this.paddingTop-this.paddingBottom),this.lineWidth=this.availableHeight*this.options.lineWidth,this.radius=(this.availableHeight-this.lineWidth/2)/(1+this.extraPadding),this.ctx.clearRect(0,0,this.canvas.width,this.canvas.height),r=0,i=(s=this.gp).length;r<i;r++)(n=s[r]).setOptions(this.options.pointer),n.render();return this.render(),this},e.prototype.configPercentColors=function(){var t,e,n,r,i,o,s;if(this.percentColors=null,void 0!==this.options.percentColors){for(this.percentColors=new Array,o=[],n=r=0,i=this.options.percentColors.length-1;0<=i?r<=i:r>=i;n=0<=i?++r:--r)s=parseInt(f(this.options.percentColors[n][1]).substring(0,2),16),e=parseInt(f(this.options.percentColors[n][1]).substring(2,4),16),t=parseInt(f(this.options.percentColors[n][1]).substring(4,6),16),o.push(this.percentColors[n]={pct:this.options.percentColors[n][0],color:{r:s,g:e,b:t}});return o}},e.prototype.set=function(t){var e,n,r,i,o,s,u,l,c;for(t instanceof Array||(t=[t]),n=r=0,u=t.length-1;0<=u?r<=u:r>=u;n=0<=u?++r:--r)t[n]=this.parseValue(t[n]);if(t.length>this.gp.length)for(n=i=0,l=t.length-this.gp.length;0<=l?i<l:i>l;n=0<=l?++i:--i)(e=new a(this)).setOptions(this.options.pointer),this.gp.push(e);else t.length<this.gp.length&&(this.gp=this.gp.slice(this.gp.length-t.length));for(n=0,s=0,o=t.length;s<o;s++)(c=t[s])>this.maxValue?this.options.limitMax?c=this.maxValue:this.maxValue=c+1:c<this.minValue&&(this.options.limitMin?c=this.minValue:this.minValue=c-1),this.gp[n].value=c,this.gp[n++].setOptions({minValue:this.minValue,maxValue:this.maxValue,angle:this.options.angle});return this.value=Math.max(Math.min(t[t.length-1],this.maxValue),this.minValue),AnimationUpdater.add(this),AnimationUpdater.run(this.forceUpdate),this.forceUpdate=!1},e.prototype.getAngle=function(t){return(1+this.options.angle)*Math.PI+(t-this.minValue)/(this.maxValue-this.minValue)*(1-2*this.options.angle)*Math.PI},e.prototype.getColorForPercentage=function(t,e){var n,r,i,o,s,u,a;if(0===t)n=this.percentColors[0].color;else for(n=this.percentColors[this.percentColors.length-1].color,i=o=0,u=this.percentColors.length-1;0<=u?o<=u:o>=u;i=0<=u?++o:--o)if(t<=this.percentColors[i].pct){!0===e?(a=this.percentColors[i-1]||this.percentColors[0],r=this.percentColors[i],s=(t-a.pct)/(r.pct-a.pct),n={r:Math.floor(a.color.r*(1-s)+r.color.r*s),g:Math.floor(a.color.g*(1-s)+r.color.g*s),b:Math.floor(a.color.b*(1-s)+r.color.b*s)}):n=this.percentColors[i].color;break}return"rgb("+[n.r,n.g,n.b].join(",")+")"},e.prototype.getColorForValue=function(t,e){var n;return n=(t-this.minValue)/(this.maxValue-this.minValue),this.getColorForPercentage(n,e)},e.prototype.renderStaticLabels=function(t,e,n,r){var i,o,s,u,a,l,c,h,f,d;for(this.ctx.save(),this.ctx.translate(e,n),l=/\d+\.?\d?/,a=(i=t.font||"10px Times").match(l)[0],h=i.slice(a.length),o=parseFloat(a)*this.displayScale,this.ctx.font=o+h,this.ctx.fillStyle=t.color||"#000000",this.ctx.textBaseline="bottom",this.ctx.textAlign="center",s=0,u=(c=t.labels).length;s<u;s++)void 0!==(d=c[s]).label?(!this.options.limitMin||d>=this.minValue)&&(!this.options.limitMax||d<=this.maxValue)&&(a=(i=d.font||t.font).match(l)[0],h=i.slice(a.length),o=parseFloat(a)*this.displayScale,this.ctx.font=o+h,f=this.getAngle(d.label)-3*Math.PI/2,this.ctx.rotate(f),this.ctx.fillText(p(d.label,t.fractionDigits),0,-r-this.lineWidth/2),this.ctx.rotate(-f)):(!this.options.limitMin||d>=this.minValue)&&(!this.options.limitMax||d<=this.maxValue)&&(f=this.getAngle(d)-3*Math.PI/2,this.ctx.rotate(f),this.ctx.fillText(p(d,t.fractionDigits),0,-r-this.lineWidth/2),this.ctx.rotate(-f));return this.ctx.restore()},e.prototype.renderTicks=function(t,e,n,r){var i,o,s,u,a,l,c,h,f,p,d,v,g,_,y,m,b,x,w,A;if(t!=={}){for(l=t.divisions||0,x=t.subDivisions||0,s=t.divColor||"#fff",_=t.subColor||"#fff",u=t.divLength||.7,m=t.subLength||.2,f=parseFloat(this.maxValue)-parseFloat(this.minValue),p=parseFloat(f)/parseFloat(t.divisions),y=parseFloat(p)/parseFloat(t.subDivisions),i=parseFloat(this.minValue),o=0+y,a=(h=f/400)*(t.divWidth||1),b=h*(t.subWidth||1),v=[],w=c=0,d=l+1;c<d;w=c+=1)this.ctx.lineWidth=this.lineWidth*u,g=this.lineWidth/2*(1-u),A=this.radius*this.options.radiusScale+g,this.ctx.strokeStyle=s,this.ctx.beginPath(),this.ctx.arc(0,0,A,this.getAngle(i-a),this.getAngle(i+a),!1),this.ctx.stroke(),o=i+y,i+=p,w!==t.divisions&&x>0?v.push(function(){var t,e,n;for(n=[],t=0,e=x-1;t<e;t+=1)this.ctx.lineWidth=this.lineWidth*m,g=this.lineWidth/2*(1-m),A=this.radius*this.options.radiusScale+g,this.ctx.strokeStyle=_,this.ctx.beginPath(),this.ctx.arc(0,0,A,this.getAngle(o-b),this.getAngle(o+b),!1),this.ctx.stroke(),n.push(o+=y);return n}.call(this)):v.push(void 0);return v}},e.prototype.render=function(){var t,e,n,r,i,o,s,u,a,l,c,h,f,p,d,v;if(d=this.canvas.width/2,n=this.canvas.height*this.paddingTop+this.availableHeight-(this.radius+this.lineWidth/2)*this.extraPadding,t=this.getAngle(this.displayedValue),this.textField&&this.textField.render(this),this.ctx.lineCap="butt",l=this.radius*this.options.radiusScale,this.options.staticLabels&&this.renderStaticLabels(this.options.staticLabels,d,n,l),this.options.staticZones)for(this.ctx.save(),this.ctx.translate(d,n),this.ctx.lineWidth=this.lineWidth,r=0,o=(c=this.options.staticZones).length;r<o;r++)a=(v=c[r]).min,this.options.limitMin&&a<this.minValue&&(a=this.minValue),u=v.max,this.options.limitMax&&u>this.maxValue&&(u=this.maxValue),p=this.radius*this.options.radiusScale,v.height&&(this.ctx.lineWidth=this.lineWidth*v.height,f=this.lineWidth/2*(v.offset||1-v.height),p=this.radius*this.options.radiusScale+f),this.ctx.strokeStyle=v.strokeStyle,this.ctx.beginPath(),this.ctx.arc(0,0,p,this.getAngle(a),this.getAngle(u),!1),this.ctx.stroke();else void 0!==this.options.customFillStyle?e=this.options.customFillStyle(this):null!==this.percentColors?e=this.getColorForValue(this.displayedValue,this.options.generateGradient):void 0!==this.options.colorStop?((e=0===this.options.gradientType?this.ctx.createRadialGradient(d,n,9,d,n,70):this.ctx.createLinearGradient(0,0,d,0)).addColorStop(0,this.options.colorStart),e.addColorStop(1,this.options.colorStop)):e=this.options.colorStart,this.ctx.strokeStyle=e,this.ctx.beginPath(),this.ctx.arc(d,n,l,(1+this.options.angle)*Math.PI,t,!1),this.ctx.lineWidth=this.lineWidth,this.ctx.stroke(),this.ctx.strokeStyle=this.options.strokeColor,this.ctx.beginPath(),this.ctx.arc(d,n,l,t,(2-this.options.angle)*Math.PI,!1),this.ctx.stroke(),this.ctx.save(),this.ctx.translate(d,n);for(this.options.renderTicks&&this.renderTicks(this.options.renderTicks,d,n,l),this.ctx.restore(),this.ctx.translate(d,n),i=0,s=(h=this.gp).length;i<s;i++)h[i].update(!0);return this.ctx.translate(-d,-n)},e}(o),i=function(t){function e(t){this.canvas=t,e.__super__.constructor.call(this),"undefined"!=typeof G_vmlCanvasManager&&(this.canvas=window.G_vmlCanvasManager.initElement(this.canvas)),this.ctx=this.canvas.getContext("2d"),this.setOptions(),this.render()}return y(e,t),e.prototype.lineWidth=15,e.prototype.displayedValue=0,e.prototype.value=33,e.prototype.maxValue=80,e.prototype.minValue=0,e.prototype.options={lineWidth:.1,colorStart:"#6f6ea0",colorStop:"#c0c0db",strokeColor:"#eeeeee",shadowColor:"#d5d5d5",angle:.35,radiusScale:1},e.prototype.getAngle=function(t){return(1-this.options.angle)*Math.PI+(t-this.minValue)/(this.maxValue-this.minValue)*(2+this.options.angle-(1-this.options.angle))*Math.PI},e.prototype.setOptions=function(t){return null==t&&(t=null),e.__super__.setOptions.call(this,t),this.lineWidth=this.canvas.height*this.options.lineWidth,this.radius=this.options.radiusScale*(this.canvas.height/2-this.lineWidth/2),this},e.prototype.set=function(t){return this.value=this.parseValue(t),this.value>this.maxValue?this.options.limitMax?this.value=this.maxValue:this.maxValue=this.value:this.value<this.minValue&&(this.options.limitMin?this.value=this.minValue:this.minValue=this.value),AnimationUpdater.add(this),AnimationUpdater.run(this.forceUpdate),this.forceUpdate=!1},e.prototype.render=function(){var t,e,n,r;return t=this.getAngle(this.displayedValue),r=this.canvas.width/2,n=this.canvas.height/2,this.textField&&this.textField.render(this),(e=this.ctx.createRadialGradient(r,n,39,r,n,70)).addColorStop(0,this.options.colorStart),e.addColorStop(1,this.options.colorStop),this.radius,this.lineWidth,this.radius,this.lineWidth,this.ctx.strokeStyle=this.options.strokeColor,this.ctx.beginPath(),this.ctx.arc(r,n,this.radius,(1-this.options.angle)*Math.PI,(2+this.options.angle)*Math.PI,!1),this.ctx.lineWidth=this.lineWidth,this.ctx.lineCap="round",this.ctx.stroke(),this.ctx.strokeStyle=e,this.ctx.beginPath(),this.ctx.arc(r,n,this.radius,(1-this.options.angle)*Math.PI,t,!1),this.ctx.stroke()},e}(o),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return y(e,t),e.prototype.strokeGradient=function(t,e,n,r){var i;return(i=this.ctx.createRadialGradient(t,e,n,t,e,r)).addColorStop(0,this.options.shadowColor),i.addColorStop(.12,this.options._orgStrokeColor),i.addColorStop(.88,this.options._orgStrokeColor),i.addColorStop(1,this.options.shadowColor),i},e.prototype.setOptions=function(t){var n,r,i,o;return null==t&&(t=null),e.__super__.setOptions.call(this,t),o=this.canvas.width/2,n=this.canvas.height/2,r=this.radius-this.lineWidth/2,i=this.radius+this.lineWidth/2,this.options._orgStrokeColor=this.options.strokeColor,this.options.strokeColor=this.strokeGradient(o,n,r,i),this},e}(i),window.AnimationUpdater={elements:[],animId:null,addAll:function(t){var e,n,r,i;for(i=[],n=0,r=t.length;n<r;n++)e=t[n],i.push(AnimationUpdater.elements.push(e));return i},add:function(t){if(m.call(AnimationUpdater.elements,t)<0)return AnimationUpdater.elements.push(t)},run:function(t){var e,n,r,i,o,s,u;if(null==t&&(t=!1),isFinite(parseFloat(t))||!0===t){for(e=!0,u=[],r=n=0,o=(s=AnimationUpdater.elements).length;n<o;r=++n)s[r].update(!0===t)?e=!1:u.push(r);for(i=u.length-1;i>=0;i+=-1)r=u[i],AnimationUpdater.elements.splice(r,1);return AnimationUpdater.animId=e?null:requestAnimationFrame(AnimationUpdater.run)}if(!1===t)return!0===AnimationUpdater.animId&&cancelAnimationFrame(AnimationUpdater.animId),AnimationUpdater.animId=requestAnimationFrame(AnimationUpdater.run)}},"function"==typeof window.define&&null!=window.define.amd?void 0===(r=function(){return{Gauge:u,Donut:s,BaseDonut:i,TextRenderer:l}}.call(e,n,e,t))||(t.exports=r):null!=t.exports?t.exports={Gauge:u,Donut:s,BaseDonut:i,TextRenderer:l}:(window.Gauge=u,window.Donut=s,window.BaseDonut=i,window.TextRenderer=l)}).call(this)},944:function(t,e,n){var r;t=n.nmd(t),function(){var i,o="Expected a function",s="__lodash_hash_undefined__",u="__lodash_placeholder__",a=32,l=128,c=1/0,h=9007199254740991,f=NaN,p=4294967295,d=[["ary",l],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",a],["partialRight",64],["rearg",256]],v="[object Arguments]",g="[object Array]",_="[object Boolean]",y="[object Date]",m="[object Error]",b="[object Function]",x="[object GeneratorFunction]",w="[object Map]",A="[object Number]",$="[object Object]",S="[object Promise]",E="[object RegExp]",C="[object Set]",O="[object String]",k="[object Symbol]",R="[object WeakMap]",P="[object ArrayBuffer]",U="[object DataView]",M="[object Float32Array]",j="[object Float64Array]",V="[object Int8Array]",T="[object Int16Array]",z="[object Int32Array]",I="[object Uint8Array]",W="[object Uint8ClampedArray]",L="[object Uint16Array]",N="[object Uint32Array]",F=/\b__p \+= '';/g,D=/\b(__p \+=) '' \+/g,B=/(__e\(.*?\)|\b__t\)) \+\n'';/g,H=/&(?:amp|lt|gt|quot|#39);/g,q=/[&<>"']/g,G=RegExp(H.source),Z=RegExp(q.source),K=/<%-([\s\S]+?)%>/g,J=/<%([\s\S]+?)%>/g,Y=/<%=([\s\S]+?)%>/g,Q=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,X=/^\w*$/,tt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,et=/[\\^$.*+?()[\]{}|]/g,nt=RegExp(et.source),rt=/^\s+/,it=/\s/,ot=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,st=/\{\n\/\* \[wrapped with (.+)\] \*/,ut=/,? & /,at=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,lt=/[()=,{}\[\]\/\s]/,ct=/\\(\\)?/g,ht=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ft=/\w*$/,pt=/^[-+]0x[0-9a-f]+$/i,dt=/^0b[01]+$/i,vt=/^\[object .+?Constructor\]$/,gt=/^0o[0-7]+$/i,_t=/^(?:0|[1-9]\d*)$/,yt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,mt=/($^)/,bt=/['\n\r\u2028\u2029\\]/g,xt="\\ud800-\\udfff",wt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",At="\\u2700-\\u27bf",$t="a-z\\xdf-\\xf6\\xf8-\\xff",St="A-Z\\xc0-\\xd6\\xd8-\\xde",Et="\\ufe0e\\ufe0f",Ct="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ot="["+xt+"]",kt="["+Ct+"]",Rt="["+wt+"]",Pt="\\d+",Ut="["+At+"]",Mt="["+$t+"]",jt="[^"+xt+Ct+Pt+At+$t+St+"]",Vt="\\ud83c[\\udffb-\\udfff]",Tt="[^"+xt+"]",zt="(?:\\ud83c[\\udde6-\\uddff]){2}",It="[\\ud800-\\udbff][\\udc00-\\udfff]",Wt="["+St+"]",Lt="\\u200d",Nt="(?:"+Mt+"|"+jt+")",Ft="(?:"+Wt+"|"+jt+")",Dt="(?:['’](?:d|ll|m|re|s|t|ve))?",Bt="(?:['’](?:D|LL|M|RE|S|T|VE))?",Ht="(?:"+Rt+"|"+Vt+")?",qt="["+Et+"]?",Gt=qt+Ht+"(?:"+Lt+"(?:"+[Tt,zt,It].join("|")+")"+qt+Ht+")*",Zt="(?:"+[Ut,zt,It].join("|")+")"+Gt,Kt="(?:"+[Tt+Rt+"?",Rt,zt,It,Ot].join("|")+")",Jt=RegExp("['’]","g"),Yt=RegExp(Rt,"g"),Qt=RegExp(Vt+"(?="+Vt+")|"+Kt+Gt,"g"),Xt=RegExp([Wt+"?"+Mt+"+"+Dt+"(?="+[kt,Wt,"$"].join("|")+")",Ft+"+"+Bt+"(?="+[kt,Wt+Nt,"$"].join("|")+")",Wt+"?"+Nt+"+"+Dt,Wt+"+"+Bt,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Pt,Zt].join("|"),"g"),te=RegExp("["+Lt+xt+wt+Et+"]"),ee=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ne=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],re=-1,ie={};ie[M]=ie[j]=ie[V]=ie[T]=ie[z]=ie[I]=ie[W]=ie[L]=ie[N]=!0,ie[v]=ie[g]=ie[P]=ie[_]=ie[U]=ie[y]=ie[m]=ie[b]=ie[w]=ie[A]=ie[$]=ie[E]=ie[C]=ie[O]=ie[R]=!1;var oe={};oe[v]=oe[g]=oe[P]=oe[U]=oe[_]=oe[y]=oe[M]=oe[j]=oe[V]=oe[T]=oe[z]=oe[w]=oe[A]=oe[$]=oe[E]=oe[C]=oe[O]=oe[k]=oe[I]=oe[W]=oe[L]=oe[N]=!0,oe[m]=oe[b]=oe[R]=!1;var se={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ue=parseFloat,ae=parseInt,le="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,ce="object"==typeof self&&self&&self.Object===Object&&self,he=le||ce||Function("return this")(),fe=e&&!e.nodeType&&e,pe=fe&&t&&!t.nodeType&&t,de=pe&&pe.exports===fe,ve=de&&le.process,ge=function(){try{return pe&&pe.require&&pe.require("util").types||ve&&ve.binding&&ve.binding("util")}catch(t){}}(),_e=ge&&ge.isArrayBuffer,ye=ge&&ge.isDate,me=ge&&ge.isMap,be=ge&&ge.isRegExp,xe=ge&&ge.isSet,we=ge&&ge.isTypedArray;function Ae(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function $e(t,e,n,r){for(var i=-1,o=null==t?0:t.length;++i<o;){var s=t[i];e(r,s,n(s),t)}return r}function Se(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}function Ee(t,e){for(var n=null==t?0:t.length;n--&&!1!==e(t[n],n,t););return t}function Ce(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(!e(t[n],n,t))return!1;return!0}function Oe(t,e){for(var n=-1,r=null==t?0:t.length,i=0,o=[];++n<r;){var s=t[n];e(s,n,t)&&(o[i++]=s)}return o}function ke(t,e){return!(null==t||!t.length)&&We(t,e,0)>-1}function Re(t,e,n){for(var r=-1,i=null==t?0:t.length;++r<i;)if(n(e,t[r]))return!0;return!1}function Pe(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}function Ue(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}function Me(t,e,n,r){var i=-1,o=null==t?0:t.length;for(r&&o&&(n=t[++i]);++i<o;)n=e(n,t[i],i,t);return n}function je(t,e,n,r){var i=null==t?0:t.length;for(r&&i&&(n=t[--i]);i--;)n=e(n,t[i],i,t);return n}function Ve(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}var Te=De("length");function ze(t,e,n){var r;return n(t,(function(t,n,i){if(e(t,n,i))return r=n,!1})),r}function Ie(t,e,n,r){for(var i=t.length,o=n+(r?1:-1);r?o--:++o<i;)if(e(t[o],o,t))return o;return-1}function We(t,e,n){return e==e?function(t,e,n){for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1}(t,e,n):Ie(t,Ne,n)}function Le(t,e,n,r){for(var i=n-1,o=t.length;++i<o;)if(r(t[i],e))return i;return-1}function Ne(t){return t!=t}function Fe(t,e){var n=null==t?0:t.length;return n?qe(t,e)/n:f}function De(t){return function(e){return null==e?i:e[t]}}function Be(t){return function(e){return null==t?i:t[e]}}function He(t,e,n,r,i){return i(t,(function(t,i,o){n=r?(r=!1,t):e(n,t,i,o)})),n}function qe(t,e){for(var n,r=-1,o=t.length;++r<o;){var s=e(t[r]);s!==i&&(n=n===i?s:n+s)}return n}function Ge(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}function Ze(t){return t?t.slice(0,fn(t)+1).replace(rt,""):t}function Ke(t){return function(e){return t(e)}}function Je(t,e){return Pe(e,(function(e){return t[e]}))}function Ye(t,e){return t.has(e)}function Qe(t,e){for(var n=-1,r=t.length;++n<r&&We(e,t[n],0)>-1;);return n}function Xe(t,e){for(var n=t.length;n--&&We(e,t[n],0)>-1;);return n}var tn=Be({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),en=Be({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function nn(t){return"\\"+se[t]}function rn(t){return te.test(t)}function on(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}function sn(t,e){return function(n){return t(e(n))}}function un(t,e){for(var n=-1,r=t.length,i=0,o=[];++n<r;){var s=t[n];s!==e&&s!==u||(t[n]=u,o[i++]=n)}return o}function an(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}function ln(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=[t,t]})),n}function cn(t){return rn(t)?function(t){for(var e=Qt.lastIndex=0;Qt.test(t);)++e;return e}(t):Te(t)}function hn(t){return rn(t)?function(t){return t.match(Qt)||[]}(t):function(t){return t.split("")}(t)}function fn(t){for(var e=t.length;e--&&it.test(t.charAt(e)););return e}var pn=Be({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),dn=function t(e){var n,r=(e=null==e?he:dn.defaults(he.Object(),e,dn.pick(he,ne))).Array,it=e.Date,xt=e.Error,wt=e.Function,At=e.Math,$t=e.Object,St=e.RegExp,Et=e.String,Ct=e.TypeError,Ot=r.prototype,kt=wt.prototype,Rt=$t.prototype,Pt=e["__core-js_shared__"],Ut=kt.toString,Mt=Rt.hasOwnProperty,jt=0,Vt=(n=/[^.]+$/.exec(Pt&&Pt.keys&&Pt.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Tt=Rt.toString,zt=Ut.call($t),It=he._,Wt=St("^"+Ut.call(Mt).replace(et,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Lt=de?e.Buffer:i,Nt=e.Symbol,Ft=e.Uint8Array,Dt=Lt?Lt.allocUnsafe:i,Bt=sn($t.getPrototypeOf,$t),Ht=$t.create,qt=Rt.propertyIsEnumerable,Gt=Ot.splice,Zt=Nt?Nt.isConcatSpreadable:i,Kt=Nt?Nt.iterator:i,Qt=Nt?Nt.toStringTag:i,te=function(){try{var t=ao($t,"defineProperty");return t({},"",{}),t}catch(t){}}(),se=e.clearTimeout!==he.clearTimeout&&e.clearTimeout,le=it&&it.now!==he.Date.now&&it.now,ce=e.setTimeout!==he.setTimeout&&e.setTimeout,fe=At.ceil,pe=At.floor,ve=$t.getOwnPropertySymbols,ge=Lt?Lt.isBuffer:i,Te=e.isFinite,Be=Ot.join,vn=sn($t.keys,$t),gn=At.max,_n=At.min,yn=it.now,mn=e.parseInt,bn=At.random,xn=Ot.reverse,wn=ao(e,"DataView"),An=ao(e,"Map"),$n=ao(e,"Promise"),Sn=ao(e,"Set"),En=ao(e,"WeakMap"),Cn=ao($t,"create"),On=En&&new En,kn={},Rn=zo(wn),Pn=zo(An),Un=zo($n),Mn=zo(Sn),jn=zo(En),Vn=Nt?Nt.prototype:i,Tn=Vn?Vn.valueOf:i,zn=Vn?Vn.toString:i;function In(t){if(tu(t)&&!Ds(t)&&!(t instanceof Fn)){if(t instanceof Nn)return t;if(Mt.call(t,"__wrapped__"))return Io(t)}return new Nn(t)}var Wn=function(){function t(){}return function(e){if(!Xs(e))return{};if(Ht)return Ht(e);t.prototype=e;var n=new t;return t.prototype=i,n}}();function Ln(){}function Nn(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=i}function Fn(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=p,this.__views__=[]}function Dn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Bn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Hn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function qn(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Hn;++e<n;)this.add(t[e])}function Gn(t){var e=this.__data__=new Bn(t);this.size=e.size}function Zn(t,e){var n=Ds(t),r=!n&&Fs(t),i=!n&&!r&&Gs(t),o=!n&&!r&&!i&&au(t),s=n||r||i||o,u=s?Ge(t.length,Et):[],a=u.length;for(var l in t)!e&&!Mt.call(t,l)||s&&("length"==l||i&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||go(l,a))||u.push(l);return u}function Kn(t){var e=t.length;return e?t[Hr(0,e-1)]:i}function Jn(t,e){return Uo(Ei(t),or(e,0,t.length))}function Yn(t){return Uo(Ei(t))}function Qn(t,e,n){(n!==i&&!Ws(t[e],n)||n===i&&!(e in t))&&rr(t,e,n)}function Xn(t,e,n){var r=t[e];Mt.call(t,e)&&Ws(r,n)&&(n!==i||e in t)||rr(t,e,n)}function tr(t,e){for(var n=t.length;n--;)if(Ws(t[n][0],e))return n;return-1}function er(t,e,n,r){return cr(t,(function(t,i,o){e(r,t,n(t),o)})),r}function nr(t,e){return t&&Ci(e,Ru(e),t)}function rr(t,e,n){"__proto__"==e&&te?te(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function ir(t,e){for(var n=-1,o=e.length,s=r(o),u=null==t;++n<o;)s[n]=u?i:Su(t,e[n]);return s}function or(t,e,n){return t==t&&(n!==i&&(t=t<=n?t:n),e!==i&&(t=t>=e?t:e)),t}function sr(t,e,n,r,o,s){var u,a=1&e,l=2&e,c=4&e;if(n&&(u=o?n(t,r,o,s):n(t)),u!==i)return u;if(!Xs(t))return t;var h=Ds(t);if(h){if(u=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&Mt.call(t,"index")&&(n.index=t.index,n.input=t.input),n}(t),!a)return Ei(t,u)}else{var f=ho(t),p=f==b||f==x;if(Gs(t))return bi(t,a);if(f==$||f==v||p&&!o){if(u=l||p?{}:po(t),!a)return l?function(t,e){return Ci(t,co(t),e)}(t,function(t,e){return t&&Ci(e,Pu(e),t)}(u,t)):function(t,e){return Ci(t,lo(t),e)}(t,nr(u,t))}else{if(!oe[f])return o?t:{};u=function(t,e,n){var r,i=t.constructor;switch(e){case P:return xi(t);case _:case y:return new i(+t);case U:return function(t,e){var n=e?xi(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(t,n);case M:case j:case V:case T:case z:case I:case W:case L:case N:return wi(t,n);case w:return new i;case A:case O:return new i(t);case E:return function(t){var e=new t.constructor(t.source,ft.exec(t));return e.lastIndex=t.lastIndex,e}(t);case C:return new i;case k:return r=t,Tn?$t(Tn.call(r)):{}}}(t,f,a)}}s||(s=new Gn);var d=s.get(t);if(d)return d;s.set(t,u),ou(t)?t.forEach((function(r){u.add(sr(r,e,n,r,t,s))})):eu(t)&&t.forEach((function(r,i){u.set(i,sr(r,e,n,i,t,s))}));var g=h?i:(c?l?eo:to:l?Pu:Ru)(t);return Se(g||t,(function(r,i){g&&(r=t[i=r]),Xn(u,i,sr(r,e,n,i,t,s))})),u}function ur(t,e,n){var r=n.length;if(null==t)return!r;for(t=$t(t);r--;){var o=n[r],s=e[o],u=t[o];if(u===i&&!(o in t)||!s(u))return!1}return!0}function ar(t,e,n){if("function"!=typeof t)throw new Ct(o);return Oo((function(){t.apply(i,n)}),e)}function lr(t,e,n,r){var i=-1,o=ke,s=!0,u=t.length,a=[],l=e.length;if(!u)return a;n&&(e=Pe(e,Ke(n))),r?(o=Re,s=!1):e.length>=200&&(o=Ye,s=!1,e=new qn(e));t:for(;++i<u;){var c=t[i],h=null==n?c:n(c);if(c=r||0!==c?c:0,s&&h==h){for(var f=l;f--;)if(e[f]===h)continue t;a.push(c)}else o(e,h,r)||a.push(c)}return a}In.templateSettings={escape:K,evaluate:J,interpolate:Y,variable:"",imports:{_:In}},In.prototype=Ln.prototype,In.prototype.constructor=In,Nn.prototype=Wn(Ln.prototype),Nn.prototype.constructor=Nn,Fn.prototype=Wn(Ln.prototype),Fn.prototype.constructor=Fn,Dn.prototype.clear=function(){this.__data__=Cn?Cn(null):{},this.size=0},Dn.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},Dn.prototype.get=function(t){var e=this.__data__;if(Cn){var n=e[t];return n===s?i:n}return Mt.call(e,t)?e[t]:i},Dn.prototype.has=function(t){var e=this.__data__;return Cn?e[t]!==i:Mt.call(e,t)},Dn.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Cn&&e===i?s:e,this},Bn.prototype.clear=function(){this.__data__=[],this.size=0},Bn.prototype.delete=function(t){var e=this.__data__,n=tr(e,t);return!(n<0||(n==e.length-1?e.pop():Gt.call(e,n,1),--this.size,0))},Bn.prototype.get=function(t){var e=this.__data__,n=tr(e,t);return n<0?i:e[n][1]},Bn.prototype.has=function(t){return tr(this.__data__,t)>-1},Bn.prototype.set=function(t,e){var n=this.__data__,r=tr(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this},Hn.prototype.clear=function(){this.size=0,this.__data__={hash:new Dn,map:new(An||Bn),string:new Dn}},Hn.prototype.delete=function(t){var e=so(this,t).delete(t);return this.size-=e?1:0,e},Hn.prototype.get=function(t){return so(this,t).get(t)},Hn.prototype.has=function(t){return so(this,t).has(t)},Hn.prototype.set=function(t,e){var n=so(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this},qn.prototype.add=qn.prototype.push=function(t){return this.__data__.set(t,s),this},qn.prototype.has=function(t){return this.__data__.has(t)},Gn.prototype.clear=function(){this.__data__=new Bn,this.size=0},Gn.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},Gn.prototype.get=function(t){return this.__data__.get(t)},Gn.prototype.has=function(t){return this.__data__.has(t)},Gn.prototype.set=function(t,e){var n=this.__data__;if(n instanceof Bn){var r=n.__data__;if(!An||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Hn(r)}return n.set(t,e),this.size=n.size,this};var cr=Ri(yr),hr=Ri(mr,!0);function fr(t,e){var n=!0;return cr(t,(function(t,r,i){return n=!!e(t,r,i)})),n}function pr(t,e,n){for(var r=-1,o=t.length;++r<o;){var s=t[r],u=e(s);if(null!=u&&(a===i?u==u&&!uu(u):n(u,a)))var a=u,l=s}return l}function dr(t,e){var n=[];return cr(t,(function(t,r,i){e(t,r,i)&&n.push(t)})),n}function vr(t,e,n,r,i){var o=-1,s=t.length;for(n||(n=vo),i||(i=[]);++o<s;){var u=t[o];e>0&&n(u)?e>1?vr(u,e-1,n,r,i):Ue(i,u):r||(i[i.length]=u)}return i}var gr=Pi(),_r=Pi(!0);function yr(t,e){return t&&gr(t,e,Ru)}function mr(t,e){return t&&_r(t,e,Ru)}function br(t,e){return Oe(e,(function(e){return Js(t[e])}))}function xr(t,e){for(var n=0,r=(e=gi(e,t)).length;null!=t&&n<r;)t=t[To(e[n++])];return n&&n==r?t:i}function wr(t,e,n){var r=e(t);return Ds(t)?r:Ue(r,n(t))}function Ar(t){return null==t?t===i?"[object Undefined]":"[object Null]":Qt&&Qt in $t(t)?function(t){var e=Mt.call(t,Qt),n=t[Qt];try{t[Qt]=i;var r=!0}catch(t){}var o=Tt.call(t);return r&&(e?t[Qt]=n:delete t[Qt]),o}(t):function(t){return Tt.call(t)}(t)}function $r(t,e){return t>e}function Sr(t,e){return null!=t&&Mt.call(t,e)}function Er(t,e){return null!=t&&e in $t(t)}function Cr(t,e,n){for(var o=n?Re:ke,s=t[0].length,u=t.length,a=u,l=r(u),c=1/0,h=[];a--;){var f=t[a];a&&e&&(f=Pe(f,Ke(e))),c=_n(f.length,c),l[a]=!n&&(e||s>=120&&f.length>=120)?new qn(a&&f):i}f=t[0];var p=-1,d=l[0];t:for(;++p<s&&h.length<c;){var v=f[p],g=e?e(v):v;if(v=n||0!==v?v:0,!(d?Ye(d,g):o(h,g,n))){for(a=u;--a;){var _=l[a];if(!(_?Ye(_,g):o(t[a],g,n)))continue t}d&&d.push(g),h.push(v)}}return h}function Or(t,e,n){var r=null==(t=So(t,e=gi(e,t)))?t:t[To(Ko(e))];return null==r?i:Ae(r,t,n)}function kr(t){return tu(t)&&Ar(t)==v}function Rr(t,e,n,r,o){return t===e||(null==t||null==e||!tu(t)&&!tu(e)?t!=t&&e!=e:function(t,e,n,r,o,s){var u=Ds(t),a=Ds(e),l=u?g:ho(t),c=a?g:ho(e),h=(l=l==v?$:l)==$,f=(c=c==v?$:c)==$,p=l==c;if(p&&Gs(t)){if(!Gs(e))return!1;u=!0,h=!1}if(p&&!h)return s||(s=new Gn),u||au(t)?Qi(t,e,n,r,o,s):function(t,e,n,r,i,o,s){switch(n){case U:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case P:return!(t.byteLength!=e.byteLength||!o(new Ft(t),new Ft(e)));case _:case y:case A:return Ws(+t,+e);case m:return t.name==e.name&&t.message==e.message;case E:case O:return t==e+"";case w:var u=on;case C:var a=1&r;if(u||(u=an),t.size!=e.size&&!a)return!1;var l=s.get(t);if(l)return l==e;r|=2,s.set(t,e);var c=Qi(u(t),u(e),r,i,o,s);return s.delete(t),c;case k:if(Tn)return Tn.call(t)==Tn.call(e)}return!1}(t,e,l,n,r,o,s);if(!(1&n)){var d=h&&Mt.call(t,"__wrapped__"),b=f&&Mt.call(e,"__wrapped__");if(d||b){var x=d?t.value():t,S=b?e.value():e;return s||(s=new Gn),o(x,S,n,r,s)}}return!!p&&(s||(s=new Gn),function(t,e,n,r,o,s){var u=1&n,a=to(t),l=a.length;if(l!=to(e).length&&!u)return!1;for(var c=l;c--;){var h=a[c];if(!(u?h in e:Mt.call(e,h)))return!1}var f=s.get(t),p=s.get(e);if(f&&p)return f==e&&p==t;var d=!0;s.set(t,e),s.set(e,t);for(var v=u;++c<l;){var g=t[h=a[c]],_=e[h];if(r)var y=u?r(_,g,h,e,t,s):r(g,_,h,t,e,s);if(!(y===i?g===_||o(g,_,n,r,s):y)){d=!1;break}v||(v="constructor"==h)}if(d&&!v){var m=t.constructor,b=e.constructor;m==b||!("constructor"in t)||!("constructor"in e)||"function"==typeof m&&m instanceof m&&"function"==typeof b&&b instanceof b||(d=!1)}return s.delete(t),s.delete(e),d}(t,e,n,r,o,s))}(t,e,n,r,Rr,o))}function Pr(t,e,n,r){var o=n.length,s=o,u=!r;if(null==t)return!s;for(t=$t(t);o--;){var a=n[o];if(u&&a[2]?a[1]!==t[a[0]]:!(a[0]in t))return!1}for(;++o<s;){var l=(a=n[o])[0],c=t[l],h=a[1];if(u&&a[2]){if(c===i&&!(l in t))return!1}else{var f=new Gn;if(r)var p=r(c,h,l,t,e,f);if(!(p===i?Rr(h,c,3,r,f):p))return!1}}return!0}function Ur(t){return!(!Xs(t)||(e=t,Vt&&Vt in e))&&(Js(t)?Wt:vt).test(zo(t));var e}function Mr(t){return"function"==typeof t?t:null==t?na:"object"==typeof t?Ds(t)?Ir(t[0],t[1]):zr(t):ha(t)}function jr(t){if(!xo(t))return vn(t);var e=[];for(var n in $t(t))Mt.call(t,n)&&"constructor"!=n&&e.push(n);return e}function Vr(t,e){return t<e}function Tr(t,e){var n=-1,i=Hs(t)?r(t.length):[];return cr(t,(function(t,r,o){i[++n]=e(t,r,o)})),i}function zr(t){var e=uo(t);return 1==e.length&&e[0][2]?Ao(e[0][0],e[0][1]):function(n){return n===t||Pr(n,t,e)}}function Ir(t,e){return yo(t)&&wo(e)?Ao(To(t),e):function(n){var r=Su(n,t);return r===i&&r===e?Eu(n,t):Rr(e,r,3)}}function Wr(t,e,n,r,o){t!==e&&gr(e,(function(s,u){if(o||(o=new Gn),Xs(s))!function(t,e,n,r,o,s,u){var a=Eo(t,n),l=Eo(e,n),c=u.get(l);if(c)Qn(t,n,c);else{var h=s?s(a,l,n+"",t,e,u):i,f=h===i;if(f){var p=Ds(l),d=!p&&Gs(l),v=!p&&!d&&au(l);h=l,p||d||v?Ds(a)?h=a:qs(a)?h=Ei(a):d?(f=!1,h=bi(l,!0)):v?(f=!1,h=wi(l,!0)):h=[]:ru(l)||Fs(l)?(h=a,Fs(a)?h=gu(a):Xs(a)&&!Js(a)||(h=po(l))):f=!1}f&&(u.set(l,h),o(h,l,r,s,u),u.delete(l)),Qn(t,n,h)}}(t,e,u,n,Wr,r,o);else{var a=r?r(Eo(t,u),s,u+"",t,e,o):i;a===i&&(a=s),Qn(t,u,a)}}),Pu)}function Lr(t,e){var n=t.length;if(n)return go(e+=e<0?n:0,n)?t[e]:i}function Nr(t,e,n){e=e.length?Pe(e,(function(t){return Ds(t)?function(e){return xr(e,1===t.length?t[0]:t)}:t})):[na];var r=-1;e=Pe(e,Ke(oo()));var i=Tr(t,(function(t,n,i){var o=Pe(e,(function(e){return e(t)}));return{criteria:o,index:++r,value:t}}));return function(t,e){var r=t.length;for(t.sort((function(t,e){return function(t,e,n){for(var r=-1,i=t.criteria,o=e.criteria,s=i.length,u=n.length;++r<s;){var a=Ai(i[r],o[r]);if(a)return r>=u?a:a*("desc"==n[r]?-1:1)}return t.index-e.index}(t,e,n)}));r--;)t[r]=t[r].value;return t}(i)}function Fr(t,e,n){for(var r=-1,i=e.length,o={};++r<i;){var s=e[r],u=xr(t,s);n(u,s)&&Jr(o,gi(s,t),u)}return o}function Dr(t,e,n,r){var i=r?Le:We,o=-1,s=e.length,u=t;for(t===e&&(e=Ei(e)),n&&(u=Pe(t,Ke(n)));++o<s;)for(var a=0,l=e[o],c=n?n(l):l;(a=i(u,c,a,r))>-1;)u!==t&&Gt.call(u,a,1),Gt.call(t,a,1);return t}function Br(t,e){for(var n=t?e.length:0,r=n-1;n--;){var i=e[n];if(n==r||i!==o){var o=i;go(i)?Gt.call(t,i,1):ai(t,i)}}return t}function Hr(t,e){return t+pe(bn()*(e-t+1))}function qr(t,e){var n="";if(!t||e<1||e>h)return n;do{e%2&&(n+=t),(e=pe(e/2))&&(t+=t)}while(e);return n}function Gr(t,e){return ko($o(t,e,na),t+"")}function Zr(t){return Kn(Wu(t))}function Kr(t,e){var n=Wu(t);return Uo(n,or(e,0,n.length))}function Jr(t,e,n,r){if(!Xs(t))return t;for(var o=-1,s=(e=gi(e,t)).length,u=s-1,a=t;null!=a&&++o<s;){var l=To(e[o]),c=n;if("__proto__"===l||"constructor"===l||"prototype"===l)return t;if(o!=u){var h=a[l];(c=r?r(h,l,a):i)===i&&(c=Xs(h)?h:go(e[o+1])?[]:{})}Xn(a,l,c),a=a[l]}return t}var Yr=On?function(t,e){return On.set(t,e),t}:na,Qr=te?function(t,e){return te(t,"toString",{configurable:!0,enumerable:!1,value:Xu(e),writable:!0})}:na;function Xr(t){return Uo(Wu(t))}function ti(t,e,n){var i=-1,o=t.length;e<0&&(e=-e>o?0:o+e),(n=n>o?o:n)<0&&(n+=o),o=e>n?0:n-e>>>0,e>>>=0;for(var s=r(o);++i<o;)s[i]=t[i+e];return s}function ei(t,e){var n;return cr(t,(function(t,r,i){return!(n=e(t,r,i))})),!!n}function ni(t,e,n){var r=0,i=null==t?r:t.length;if("number"==typeof e&&e==e&&i<=2147483647){for(;r<i;){var o=r+i>>>1,s=t[o];null!==s&&!uu(s)&&(n?s<=e:s<e)?r=o+1:i=o}return i}return ri(t,e,na,n)}function ri(t,e,n,r){var o=0,s=null==t?0:t.length;if(0===s)return 0;for(var u=(e=n(e))!=e,a=null===e,l=uu(e),c=e===i;o<s;){var h=pe((o+s)/2),f=n(t[h]),p=f!==i,d=null===f,v=f==f,g=uu(f);if(u)var _=r||v;else _=c?v&&(r||p):a?v&&p&&(r||!d):l?v&&p&&!d&&(r||!g):!d&&!g&&(r?f<=e:f<e);_?o=h+1:s=h}return _n(s,4294967294)}function ii(t,e){for(var n=-1,r=t.length,i=0,o=[];++n<r;){var s=t[n],u=e?e(s):s;if(!n||!Ws(u,a)){var a=u;o[i++]=0===s?0:s}}return o}function oi(t){return"number"==typeof t?t:uu(t)?f:+t}function si(t){if("string"==typeof t)return t;if(Ds(t))return Pe(t,si)+"";if(uu(t))return zn?zn.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function ui(t,e,n){var r=-1,i=ke,o=t.length,s=!0,u=[],a=u;if(n)s=!1,i=Re;else if(o>=200){var l=e?null:qi(t);if(l)return an(l);s=!1,i=Ye,a=new qn}else a=e?[]:u;t:for(;++r<o;){var c=t[r],h=e?e(c):c;if(c=n||0!==c?c:0,s&&h==h){for(var f=a.length;f--;)if(a[f]===h)continue t;e&&a.push(h),u.push(c)}else i(a,h,n)||(a!==u&&a.push(h),u.push(c))}return u}function ai(t,e){return null==(t=So(t,e=gi(e,t)))||delete t[To(Ko(e))]}function li(t,e,n,r){return Jr(t,e,n(xr(t,e)),r)}function ci(t,e,n,r){for(var i=t.length,o=r?i:-1;(r?o--:++o<i)&&e(t[o],o,t););return n?ti(t,r?0:o,r?o+1:i):ti(t,r?o+1:0,r?i:o)}function hi(t,e){var n=t;return n instanceof Fn&&(n=n.value()),Me(e,(function(t,e){return e.func.apply(e.thisArg,Ue([t],e.args))}),n)}function fi(t,e,n){var i=t.length;if(i<2)return i?ui(t[0]):[];for(var o=-1,s=r(i);++o<i;)for(var u=t[o],a=-1;++a<i;)a!=o&&(s[o]=lr(s[o]||u,t[a],e,n));return ui(vr(s,1),e,n)}function pi(t,e,n){for(var r=-1,o=t.length,s=e.length,u={};++r<o;){var a=r<s?e[r]:i;n(u,t[r],a)}return u}function di(t){return qs(t)?t:[]}function vi(t){return"function"==typeof t?t:na}function gi(t,e){return Ds(t)?t:yo(t,e)?[t]:Vo(_u(t))}var _i=Gr;function yi(t,e,n){var r=t.length;return n=n===i?r:n,!e&&n>=r?t:ti(t,e,n)}var mi=se||function(t){return he.clearTimeout(t)};function bi(t,e){if(e)return t.slice();var n=t.length,r=Dt?Dt(n):new t.constructor(n);return t.copy(r),r}function xi(t){var e=new t.constructor(t.byteLength);return new Ft(e).set(new Ft(t)),e}function wi(t,e){var n=e?xi(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function Ai(t,e){if(t!==e){var n=t!==i,r=null===t,o=t==t,s=uu(t),u=e!==i,a=null===e,l=e==e,c=uu(e);if(!a&&!c&&!s&&t>e||s&&u&&l&&!a&&!c||r&&u&&l||!n&&l||!o)return 1;if(!r&&!s&&!c&&t<e||c&&n&&o&&!r&&!s||a&&n&&o||!u&&o||!l)return-1}return 0}function $i(t,e,n,i){for(var o=-1,s=t.length,u=n.length,a=-1,l=e.length,c=gn(s-u,0),h=r(l+c),f=!i;++a<l;)h[a]=e[a];for(;++o<u;)(f||o<s)&&(h[n[o]]=t[o]);for(;c--;)h[a++]=t[o++];return h}function Si(t,e,n,i){for(var o=-1,s=t.length,u=-1,a=n.length,l=-1,c=e.length,h=gn(s-a,0),f=r(h+c),p=!i;++o<h;)f[o]=t[o];for(var d=o;++l<c;)f[d+l]=e[l];for(;++u<a;)(p||o<s)&&(f[d+n[u]]=t[o++]);return f}function Ei(t,e){var n=-1,i=t.length;for(e||(e=r(i));++n<i;)e[n]=t[n];return e}function Ci(t,e,n,r){var o=!n;n||(n={});for(var s=-1,u=e.length;++s<u;){var a=e[s],l=r?r(n[a],t[a],a,n,t):i;l===i&&(l=t[a]),o?rr(n,a,l):Xn(n,a,l)}return n}function Oi(t,e){return function(n,r){var i=Ds(n)?$e:er,o=e?e():{};return i(n,t,oo(r,2),o)}}function ki(t){return Gr((function(e,n){var r=-1,o=n.length,s=o>1?n[o-1]:i,u=o>2?n[2]:i;for(s=t.length>3&&"function"==typeof s?(o--,s):i,u&&_o(n[0],n[1],u)&&(s=o<3?i:s,o=1),e=$t(e);++r<o;){var a=n[r];a&&t(e,a,r,s)}return e}))}function Ri(t,e){return function(n,r){if(null==n)return n;if(!Hs(n))return t(n,r);for(var i=n.length,o=e?i:-1,s=$t(n);(e?o--:++o<i)&&!1!==r(s[o],o,s););return n}}function Pi(t){return function(e,n,r){for(var i=-1,o=$t(e),s=r(e),u=s.length;u--;){var a=s[t?u:++i];if(!1===n(o[a],a,o))break}return e}}function Ui(t){return function(e){var n=rn(e=_u(e))?hn(e):i,r=n?n[0]:e.charAt(0),o=n?yi(n,1).join(""):e.slice(1);return r[t]()+o}}function Mi(t){return function(e){return Me(Ju(Fu(e).replace(Jt,"")),t,"")}}function ji(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var n=Wn(t.prototype),r=t.apply(n,e);return Xs(r)?r:n}}function Vi(t){return function(e,n,r){var o=$t(e);if(!Hs(e)){var s=oo(n,3);e=Ru(e),n=function(t){return s(o[t],t,o)}}var u=t(e,n,r);return u>-1?o[s?e[u]:u]:i}}function Ti(t){return Xi((function(e){var n=e.length,r=n,s=Nn.prototype.thru;for(t&&e.reverse();r--;){var u=e[r];if("function"!=typeof u)throw new Ct(o);if(s&&!a&&"wrapper"==ro(u))var a=new Nn([],!0)}for(r=a?r:n;++r<n;){var l=ro(u=e[r]),c="wrapper"==l?no(u):i;a=c&&mo(c[0])&&424==c[1]&&!c[4].length&&1==c[9]?a[ro(c[0])].apply(a,c[3]):1==u.length&&mo(u)?a[l]():a.thru(u)}return function(){var t=arguments,r=t[0];if(a&&1==t.length&&Ds(r))return a.plant(r).value();for(var i=0,o=n?e[i].apply(this,t):r;++i<n;)o=e[i].call(this,o);return o}}))}function zi(t,e,n,o,s,u,a,c,h,f){var p=e&l,d=1&e,v=2&e,g=24&e,_=512&e,y=v?i:ji(t);return function l(){for(var m=arguments.length,b=r(m),x=m;x--;)b[x]=arguments[x];if(g)var w=io(l),A=function(t,e){for(var n=t.length,r=0;n--;)t[n]===e&&++r;return r}(b,w);if(o&&(b=$i(b,o,s,g)),u&&(b=Si(b,u,a,g)),m-=A,g&&m<f){var $=un(b,w);return Bi(t,e,zi,l.placeholder,n,b,$,c,h,f-m)}var S=d?n:this,E=v?S[t]:t;return m=b.length,c?b=function(t,e){for(var n=t.length,r=_n(e.length,n),o=Ei(t);r--;){var s=e[r];t[r]=go(s,n)?o[s]:i}return t}(b,c):_&&m>1&&b.reverse(),p&&h<m&&(b.length=h),this&&this!==he&&this instanceof l&&(E=y||ji(E)),E.apply(S,b)}}function Ii(t,e){return function(n,r){return function(t,e,n,r){return yr(t,(function(t,i,o){e(r,n(t),i,o)})),r}(n,t,e(r),{})}}function Wi(t,e){return function(n,r){var o;if(n===i&&r===i)return e;if(n!==i&&(o=n),r!==i){if(o===i)return r;"string"==typeof n||"string"==typeof r?(n=si(n),r=si(r)):(n=oi(n),r=oi(r)),o=t(n,r)}return o}}function Li(t){return Xi((function(e){return e=Pe(e,Ke(oo())),Gr((function(n){var r=this;return t(e,(function(t){return Ae(t,r,n)}))}))}))}function Ni(t,e){var n=(e=e===i?" ":si(e)).length;if(n<2)return n?qr(e,t):e;var r=qr(e,fe(t/cn(e)));return rn(e)?yi(hn(r),0,t).join(""):r.slice(0,t)}function Fi(t){return function(e,n,o){return o&&"number"!=typeof o&&_o(e,n,o)&&(n=o=i),e=fu(e),n===i?(n=e,e=0):n=fu(n),function(t,e,n,i){for(var o=-1,s=gn(fe((e-t)/(n||1)),0),u=r(s);s--;)u[i?s:++o]=t,t+=n;return u}(e,n,o=o===i?e<n?1:-1:fu(o),t)}}function Di(t){return function(e,n){return"string"==typeof e&&"string"==typeof n||(e=vu(e),n=vu(n)),t(e,n)}}function Bi(t,e,n,r,o,s,u,l,c,h){var f=8&e;e|=f?a:64,4&(e&=~(f?64:a))||(e&=-4);var p=[t,e,o,f?s:i,f?u:i,f?i:s,f?i:u,l,c,h],d=n.apply(i,p);return mo(t)&&Co(d,p),d.placeholder=r,Ro(d,t,e)}function Hi(t){var e=At[t];return function(t,n){if(t=vu(t),(n=null==n?0:_n(pu(n),292))&&Te(t)){var r=(_u(t)+"e").split("e");return+((r=(_u(e(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return e(t)}}var qi=Sn&&1/an(new Sn([,-0]))[1]==c?function(t){return new Sn(t)}:ua;function Gi(t){return function(e){var n=ho(e);return n==w?on(e):n==C?ln(e):function(t,e){return Pe(e,(function(e){return[e,t[e]]}))}(e,t(e))}}function Zi(t,e,n,s,c,h,f,p){var d=2&e;if(!d&&"function"!=typeof t)throw new Ct(o);var v=s?s.length:0;if(v||(e&=-97,s=c=i),f=f===i?f:gn(pu(f),0),p=p===i?p:pu(p),v-=c?c.length:0,64&e){var g=s,_=c;s=c=i}var y=d?i:no(t),m=[t,e,n,s,c,g,_,h,f,p];if(y&&function(t,e){var n=t[1],r=e[1],i=n|r,o=i<131,s=r==l&&8==n||r==l&&256==n&&t[7].length<=e[8]||384==r&&e[7].length<=e[8]&&8==n;if(!o&&!s)return t;1&r&&(t[2]=e[2],i|=1&n?0:4);var a=e[3];if(a){var c=t[3];t[3]=c?$i(c,a,e[4]):a,t[4]=c?un(t[3],u):e[4]}(a=e[5])&&(c=t[5],t[5]=c?Si(c,a,e[6]):a,t[6]=c?un(t[5],u):e[6]),(a=e[7])&&(t[7]=a),r&l&&(t[8]=null==t[8]?e[8]:_n(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=i}(m,y),t=m[0],e=m[1],n=m[2],s=m[3],c=m[4],!(p=m[9]=m[9]===i?d?0:t.length:gn(m[9]-v,0))&&24&e&&(e&=-25),e&&1!=e)b=8==e||16==e?function(t,e,n){var o=ji(t);return function s(){for(var u=arguments.length,a=r(u),l=u,c=io(s);l--;)a[l]=arguments[l];var h=u<3&&a[0]!==c&&a[u-1]!==c?[]:un(a,c);return(u-=h.length)<n?Bi(t,e,zi,s.placeholder,i,a,h,i,i,n-u):Ae(this&&this!==he&&this instanceof s?o:t,this,a)}}(t,e,p):e!=a&&33!=e||c.length?zi.apply(i,m):function(t,e,n,i){var o=1&e,s=ji(t);return function e(){for(var u=-1,a=arguments.length,l=-1,c=i.length,h=r(c+a),f=this&&this!==he&&this instanceof e?s:t;++l<c;)h[l]=i[l];for(;a--;)h[l++]=arguments[++u];return Ae(f,o?n:this,h)}}(t,e,n,s);else var b=function(t,e,n){var r=1&e,i=ji(t);return function e(){return(this&&this!==he&&this instanceof e?i:t).apply(r?n:this,arguments)}}(t,e,n);return Ro((y?Yr:Co)(b,m),t,e)}function Ki(t,e,n,r){return t===i||Ws(t,Rt[n])&&!Mt.call(r,n)?e:t}function Ji(t,e,n,r,o,s){return Xs(t)&&Xs(e)&&(s.set(e,t),Wr(t,e,i,Ji,s),s.delete(e)),t}function Yi(t){return ru(t)?i:t}function Qi(t,e,n,r,o,s){var u=1&n,a=t.length,l=e.length;if(a!=l&&!(u&&l>a))return!1;var c=s.get(t),h=s.get(e);if(c&&h)return c==e&&h==t;var f=-1,p=!0,d=2&n?new qn:i;for(s.set(t,e),s.set(e,t);++f<a;){var v=t[f],g=e[f];if(r)var _=u?r(g,v,f,e,t,s):r(v,g,f,t,e,s);if(_!==i){if(_)continue;p=!1;break}if(d){if(!Ve(e,(function(t,e){if(!Ye(d,e)&&(v===t||o(v,t,n,r,s)))return d.push(e)}))){p=!1;break}}else if(v!==g&&!o(v,g,n,r,s)){p=!1;break}}return s.delete(t),s.delete(e),p}function Xi(t){return ko($o(t,i,Bo),t+"")}function to(t){return wr(t,Ru,lo)}function eo(t){return wr(t,Pu,co)}var no=On?function(t){return On.get(t)}:ua;function ro(t){for(var e=t.name+"",n=kn[e],r=Mt.call(kn,e)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==t)return i.name}return e}function io(t){return(Mt.call(In,"placeholder")?In:t).placeholder}function oo(){var t=In.iteratee||ra;return t=t===ra?Mr:t,arguments.length?t(arguments[0],arguments[1]):t}function so(t,e){var n,r,i=t.__data__;return("string"==(r=typeof(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof e?"string":"hash"]:i.map}function uo(t){for(var e=Ru(t),n=e.length;n--;){var r=e[n],i=t[r];e[n]=[r,i,wo(i)]}return e}function ao(t,e){var n=function(t,e){return null==t?i:t[e]}(t,e);return Ur(n)?n:i}var lo=ve?function(t){return null==t?[]:(t=$t(t),Oe(ve(t),(function(e){return qt.call(t,e)})))}:da,co=ve?function(t){for(var e=[];t;)Ue(e,lo(t)),t=Bt(t);return e}:da,ho=Ar;function fo(t,e,n){for(var r=-1,i=(e=gi(e,t)).length,o=!1;++r<i;){var s=To(e[r]);if(!(o=null!=t&&n(t,s)))break;t=t[s]}return o||++r!=i?o:!!(i=null==t?0:t.length)&&Qs(i)&&go(s,i)&&(Ds(t)||Fs(t))}function po(t){return"function"!=typeof t.constructor||xo(t)?{}:Wn(Bt(t))}function vo(t){return Ds(t)||Fs(t)||!!(Zt&&t&&t[Zt])}function go(t,e){var n=typeof t;return!!(e=null==e?h:e)&&("number"==n||"symbol"!=n&&_t.test(t))&&t>-1&&t%1==0&&t<e}function _o(t,e,n){if(!Xs(n))return!1;var r=typeof e;return!!("number"==r?Hs(n)&&go(e,n.length):"string"==r&&e in n)&&Ws(n[e],t)}function yo(t,e){if(Ds(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!uu(t))||X.test(t)||!Q.test(t)||null!=e&&t in $t(e)}function mo(t){var e=ro(t),n=In[e];if("function"!=typeof n||!(e in Fn.prototype))return!1;if(t===n)return!0;var r=no(n);return!!r&&t===r[0]}(wn&&ho(new wn(new ArrayBuffer(1)))!=U||An&&ho(new An)!=w||$n&&ho($n.resolve())!=S||Sn&&ho(new Sn)!=C||En&&ho(new En)!=R)&&(ho=function(t){var e=Ar(t),n=e==$?t.constructor:i,r=n?zo(n):"";if(r)switch(r){case Rn:return U;case Pn:return w;case Un:return S;case Mn:return C;case jn:return R}return e});var bo=Pt?Js:va;function xo(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Rt)}function wo(t){return t==t&&!Xs(t)}function Ao(t,e){return function(n){return null!=n&&n[t]===e&&(e!==i||t in $t(n))}}function $o(t,e,n){return e=gn(e===i?t.length-1:e,0),function(){for(var i=arguments,o=-1,s=gn(i.length-e,0),u=r(s);++o<s;)u[o]=i[e+o];o=-1;for(var a=r(e+1);++o<e;)a[o]=i[o];return a[e]=n(u),Ae(t,this,a)}}function So(t,e){return e.length<2?t:xr(t,ti(e,0,-1))}function Eo(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}var Co=Po(Yr),Oo=ce||function(t,e){return he.setTimeout(t,e)},ko=Po(Qr);function Ro(t,e,n){var r=e+"";return ko(t,function(t,e){var n=e.length;if(!n)return t;var r=n-1;return e[r]=(n>1?"& ":"")+e[r],e=e.join(n>2?", ":" "),t.replace(ot,"{\n/* [wrapped with "+e+"] */\n")}(r,function(t,e){return Se(d,(function(n){var r="_."+n[0];e&n[1]&&!ke(t,r)&&t.push(r)})),t.sort()}(function(t){var e=t.match(st);return e?e[1].split(ut):[]}(r),n)))}function Po(t){var e=0,n=0;return function(){var r=yn(),o=16-(r-n);if(n=r,o>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(i,arguments)}}function Uo(t,e){var n=-1,r=t.length,o=r-1;for(e=e===i?r:e;++n<e;){var s=Hr(n,o),u=t[s];t[s]=t[n],t[n]=u}return t.length=e,t}var Mo,jo,Vo=(Mo=Ms((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(tt,(function(t,n,r,i){e.push(r?i.replace(ct,"$1"):n||t)})),e}),(function(t){return 500===jo.size&&jo.clear(),t})),jo=Mo.cache,Mo);function To(t){if("string"==typeof t||uu(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function zo(t){if(null!=t){try{return Ut.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function Io(t){if(t instanceof Fn)return t.clone();var e=new Nn(t.__wrapped__,t.__chain__);return e.__actions__=Ei(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}var Wo=Gr((function(t,e){return qs(t)?lr(t,vr(e,1,qs,!0)):[]})),Lo=Gr((function(t,e){var n=Ko(e);return qs(n)&&(n=i),qs(t)?lr(t,vr(e,1,qs,!0),oo(n,2)):[]})),No=Gr((function(t,e){var n=Ko(e);return qs(n)&&(n=i),qs(t)?lr(t,vr(e,1,qs,!0),i,n):[]}));function Fo(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:pu(n);return i<0&&(i=gn(r+i,0)),Ie(t,oo(e,3),i)}function Do(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var o=r-1;return n!==i&&(o=pu(n),o=n<0?gn(r+o,0):_n(o,r-1)),Ie(t,oo(e,3),o,!0)}function Bo(t){return null!=t&&t.length?vr(t,1):[]}function Ho(t){return t&&t.length?t[0]:i}var qo=Gr((function(t){var e=Pe(t,di);return e.length&&e[0]===t[0]?Cr(e):[]})),Go=Gr((function(t){var e=Ko(t),n=Pe(t,di);return e===Ko(n)?e=i:n.pop(),n.length&&n[0]===t[0]?Cr(n,oo(e,2)):[]})),Zo=Gr((function(t){var e=Ko(t),n=Pe(t,di);return(e="function"==typeof e?e:i)&&n.pop(),n.length&&n[0]===t[0]?Cr(n,i,e):[]}));function Ko(t){var e=null==t?0:t.length;return e?t[e-1]:i}var Jo=Gr(Yo);function Yo(t,e){return t&&t.length&&e&&e.length?Dr(t,e):t}var Qo=Xi((function(t,e){var n=null==t?0:t.length,r=ir(t,e);return Br(t,Pe(e,(function(t){return go(t,n)?+t:t})).sort(Ai)),r}));function Xo(t){return null==t?t:xn.call(t)}var ts=Gr((function(t){return ui(vr(t,1,qs,!0))})),es=Gr((function(t){var e=Ko(t);return qs(e)&&(e=i),ui(vr(t,1,qs,!0),oo(e,2))})),ns=Gr((function(t){var e=Ko(t);return e="function"==typeof e?e:i,ui(vr(t,1,qs,!0),i,e)}));function rs(t){if(!t||!t.length)return[];var e=0;return t=Oe(t,(function(t){if(qs(t))return e=gn(t.length,e),!0})),Ge(e,(function(e){return Pe(t,De(e))}))}function is(t,e){if(!t||!t.length)return[];var n=rs(t);return null==e?n:Pe(n,(function(t){return Ae(e,i,t)}))}var os=Gr((function(t,e){return qs(t)?lr(t,e):[]})),ss=Gr((function(t){return fi(Oe(t,qs))})),us=Gr((function(t){var e=Ko(t);return qs(e)&&(e=i),fi(Oe(t,qs),oo(e,2))})),as=Gr((function(t){var e=Ko(t);return e="function"==typeof e?e:i,fi(Oe(t,qs),i,e)})),ls=Gr(rs),cs=Gr((function(t){var e=t.length,n=e>1?t[e-1]:i;return n="function"==typeof n?(t.pop(),n):i,is(t,n)}));function hs(t){var e=In(t);return e.__chain__=!0,e}function fs(t,e){return e(t)}var ps=Xi((function(t){var e=t.length,n=e?t[0]:0,r=this.__wrapped__,o=function(e){return ir(e,t)};return!(e>1||this.__actions__.length)&&r instanceof Fn&&go(n)?((r=r.slice(n,+n+(e?1:0))).__actions__.push({func:fs,args:[o],thisArg:i}),new Nn(r,this.__chain__).thru((function(t){return e&&!t.length&&t.push(i),t}))):this.thru(o)})),ds=Oi((function(t,e,n){Mt.call(t,n)?++t[n]:rr(t,n,1)})),vs=Vi(Fo),gs=Vi(Do);function _s(t,e){return(Ds(t)?Se:cr)(t,oo(e,3))}function ys(t,e){return(Ds(t)?Ee:hr)(t,oo(e,3))}var ms=Oi((function(t,e,n){Mt.call(t,n)?t[n].push(e):rr(t,n,[e])})),bs=Gr((function(t,e,n){var i=-1,o="function"==typeof e,s=Hs(t)?r(t.length):[];return cr(t,(function(t){s[++i]=o?Ae(e,t,n):Or(t,e,n)})),s})),xs=Oi((function(t,e,n){rr(t,n,e)}));function ws(t,e){return(Ds(t)?Pe:Tr)(t,oo(e,3))}var As=Oi((function(t,e,n){t[n?0:1].push(e)}),(function(){return[[],[]]})),$s=Gr((function(t,e){if(null==t)return[];var n=e.length;return n>1&&_o(t,e[0],e[1])?e=[]:n>2&&_o(e[0],e[1],e[2])&&(e=[e[0]]),Nr(t,vr(e,1),[])})),Ss=le||function(){return he.Date.now()};function Es(t,e,n){return e=n?i:e,e=t&&null==e?t.length:e,Zi(t,l,i,i,i,i,e)}function Cs(t,e){var n;if("function"!=typeof e)throw new Ct(o);return t=pu(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=i),n}}var Os=Gr((function(t,e,n){var r=1;if(n.length){var i=un(n,io(Os));r|=a}return Zi(t,r,e,n,i)})),ks=Gr((function(t,e,n){var r=3;if(n.length){var i=un(n,io(ks));r|=a}return Zi(e,r,t,n,i)}));function Rs(t,e,n){var r,s,u,a,l,c,h=0,f=!1,p=!1,d=!0;if("function"!=typeof t)throw new Ct(o);function v(e){var n=r,o=s;return r=s=i,h=e,a=t.apply(o,n)}function g(t){var n=t-c;return c===i||n>=e||n<0||p&&t-h>=u}function _(){var t=Ss();if(g(t))return y(t);l=Oo(_,function(t){var n=e-(t-c);return p?_n(n,u-(t-h)):n}(t))}function y(t){return l=i,d&&r?v(t):(r=s=i,a)}function m(){var t=Ss(),n=g(t);if(r=arguments,s=this,c=t,n){if(l===i)return function(t){return h=t,l=Oo(_,e),f?v(t):a}(c);if(p)return mi(l),l=Oo(_,e),v(c)}return l===i&&(l=Oo(_,e)),a}return e=vu(e)||0,Xs(n)&&(f=!!n.leading,u=(p="maxWait"in n)?gn(vu(n.maxWait)||0,e):u,d="trailing"in n?!!n.trailing:d),m.cancel=function(){l!==i&&mi(l),h=0,r=c=s=l=i},m.flush=function(){return l===i?a:y(Ss())},m}var Ps=Gr((function(t,e){return ar(t,1,e)})),Us=Gr((function(t,e,n){return ar(t,vu(e)||0,n)}));function Ms(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new Ct(o);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var s=t.apply(this,r);return n.cache=o.set(i,s)||o,s};return n.cache=new(Ms.Cache||Hn),n}function js(t){if("function"!=typeof t)throw new Ct(o);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}Ms.Cache=Hn;var Vs=_i((function(t,e){var n=(e=1==e.length&&Ds(e[0])?Pe(e[0],Ke(oo())):Pe(vr(e,1),Ke(oo()))).length;return Gr((function(r){for(var i=-1,o=_n(r.length,n);++i<o;)r[i]=e[i].call(this,r[i]);return Ae(t,this,r)}))})),Ts=Gr((function(t,e){var n=un(e,io(Ts));return Zi(t,a,i,e,n)})),zs=Gr((function(t,e){var n=un(e,io(zs));return Zi(t,64,i,e,n)})),Is=Xi((function(t,e){return Zi(t,256,i,i,i,e)}));function Ws(t,e){return t===e||t!=t&&e!=e}var Ls=Di($r),Ns=Di((function(t,e){return t>=e})),Fs=kr(function(){return arguments}())?kr:function(t){return tu(t)&&Mt.call(t,"callee")&&!qt.call(t,"callee")},Ds=r.isArray,Bs=_e?Ke(_e):function(t){return tu(t)&&Ar(t)==P};function Hs(t){return null!=t&&Qs(t.length)&&!Js(t)}function qs(t){return tu(t)&&Hs(t)}var Gs=ge||va,Zs=ye?Ke(ye):function(t){return tu(t)&&Ar(t)==y};function Ks(t){if(!tu(t))return!1;var e=Ar(t);return e==m||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!ru(t)}function Js(t){if(!Xs(t))return!1;var e=Ar(t);return e==b||e==x||"[object AsyncFunction]"==e||"[object Proxy]"==e}function Ys(t){return"number"==typeof t&&t==pu(t)}function Qs(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=h}function Xs(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function tu(t){return null!=t&&"object"==typeof t}var eu=me?Ke(me):function(t){return tu(t)&&ho(t)==w};function nu(t){return"number"==typeof t||tu(t)&&Ar(t)==A}function ru(t){if(!tu(t)||Ar(t)!=$)return!1;var e=Bt(t);if(null===e)return!0;var n=Mt.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Ut.call(n)==zt}var iu=be?Ke(be):function(t){return tu(t)&&Ar(t)==E},ou=xe?Ke(xe):function(t){return tu(t)&&ho(t)==C};function su(t){return"string"==typeof t||!Ds(t)&&tu(t)&&Ar(t)==O}function uu(t){return"symbol"==typeof t||tu(t)&&Ar(t)==k}var au=we?Ke(we):function(t){return tu(t)&&Qs(t.length)&&!!ie[Ar(t)]},lu=Di(Vr),cu=Di((function(t,e){return t<=e}));function hu(t){if(!t)return[];if(Hs(t))return su(t)?hn(t):Ei(t);if(Kt&&t[Kt])return function(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}(t[Kt]());var e=ho(t);return(e==w?on:e==C?an:Wu)(t)}function fu(t){return t?(t=vu(t))===c||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function pu(t){var e=fu(t),n=e%1;return e==e?n?e-n:e:0}function du(t){return t?or(pu(t),0,p):0}function vu(t){if("number"==typeof t)return t;if(uu(t))return f;if(Xs(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Xs(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=Ze(t);var n=dt.test(t);return n||gt.test(t)?ae(t.slice(2),n?2:8):pt.test(t)?f:+t}function gu(t){return Ci(t,Pu(t))}function _u(t){return null==t?"":si(t)}var yu=ki((function(t,e){if(xo(e)||Hs(e))Ci(e,Ru(e),t);else for(var n in e)Mt.call(e,n)&&Xn(t,n,e[n])})),mu=ki((function(t,e){Ci(e,Pu(e),t)})),bu=ki((function(t,e,n,r){Ci(e,Pu(e),t,r)})),xu=ki((function(t,e,n,r){Ci(e,Ru(e),t,r)})),wu=Xi(ir),Au=Gr((function(t,e){t=$t(t);var n=-1,r=e.length,o=r>2?e[2]:i;for(o&&_o(e[0],e[1],o)&&(r=1);++n<r;)for(var s=e[n],u=Pu(s),a=-1,l=u.length;++a<l;){var c=u[a],h=t[c];(h===i||Ws(h,Rt[c])&&!Mt.call(t,c))&&(t[c]=s[c])}return t})),$u=Gr((function(t){return t.push(i,Ji),Ae(Mu,i,t)}));function Su(t,e,n){var r=null==t?i:xr(t,e);return r===i?n:r}function Eu(t,e){return null!=t&&fo(t,e,Er)}var Cu=Ii((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=Tt.call(e)),t[e]=n}),Xu(na)),Ou=Ii((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=Tt.call(e)),Mt.call(t,e)?t[e].push(n):t[e]=[n]}),oo),ku=Gr(Or);function Ru(t){return Hs(t)?Zn(t):jr(t)}function Pu(t){return Hs(t)?Zn(t,!0):function(t){if(!Xs(t))return function(t){var e=[];if(null!=t)for(var n in $t(t))e.push(n);return e}(t);var e=xo(t),n=[];for(var r in t)("constructor"!=r||!e&&Mt.call(t,r))&&n.push(r);return n}(t)}var Uu=ki((function(t,e,n){Wr(t,e,n)})),Mu=ki((function(t,e,n,r){Wr(t,e,n,r)})),ju=Xi((function(t,e){var n={};if(null==t)return n;var r=!1;e=Pe(e,(function(e){return e=gi(e,t),r||(r=e.length>1),e})),Ci(t,eo(t),n),r&&(n=sr(n,7,Yi));for(var i=e.length;i--;)ai(n,e[i]);return n})),Vu=Xi((function(t,e){return null==t?{}:function(t,e){return Fr(t,e,(function(e,n){return Eu(t,n)}))}(t,e)}));function Tu(t,e){if(null==t)return{};var n=Pe(eo(t),(function(t){return[t]}));return e=oo(e),Fr(t,n,(function(t,n){return e(t,n[0])}))}var zu=Gi(Ru),Iu=Gi(Pu);function Wu(t){return null==t?[]:Je(t,Ru(t))}var Lu=Mi((function(t,e,n){return e=e.toLowerCase(),t+(n?Nu(e):e)}));function Nu(t){return Ku(_u(t).toLowerCase())}function Fu(t){return(t=_u(t))&&t.replace(yt,tn).replace(Yt,"")}var Du=Mi((function(t,e,n){return t+(n?"-":"")+e.toLowerCase()})),Bu=Mi((function(t,e,n){return t+(n?" ":"")+e.toLowerCase()})),Hu=Ui("toLowerCase"),qu=Mi((function(t,e,n){return t+(n?"_":"")+e.toLowerCase()})),Gu=Mi((function(t,e,n){return t+(n?" ":"")+Ku(e)})),Zu=Mi((function(t,e,n){return t+(n?" ":"")+e.toUpperCase()})),Ku=Ui("toUpperCase");function Ju(t,e,n){return t=_u(t),(e=n?i:e)===i?function(t){return ee.test(t)}(t)?function(t){return t.match(Xt)||[]}(t):function(t){return t.match(at)||[]}(t):t.match(e)||[]}var Yu=Gr((function(t,e){try{return Ae(t,i,e)}catch(t){return Ks(t)?t:new xt(t)}})),Qu=Xi((function(t,e){return Se(e,(function(e){e=To(e),rr(t,e,Os(t[e],t))})),t}));function Xu(t){return function(){return t}}var ta=Ti(),ea=Ti(!0);function na(t){return t}function ra(t){return Mr("function"==typeof t?t:sr(t,1))}var ia=Gr((function(t,e){return function(n){return Or(n,t,e)}})),oa=Gr((function(t,e){return function(n){return Or(t,n,e)}}));function sa(t,e,n){var r=Ru(e),i=br(e,r);null!=n||Xs(e)&&(i.length||!r.length)||(n=e,e=t,t=this,i=br(e,Ru(e)));var o=!(Xs(n)&&"chain"in n&&!n.chain),s=Js(t);return Se(i,(function(n){var r=e[n];t[n]=r,s&&(t.prototype[n]=function(){var e=this.__chain__;if(o||e){var n=t(this.__wrapped__);return(n.__actions__=Ei(this.__actions__)).push({func:r,args:arguments,thisArg:t}),n.__chain__=e,n}return r.apply(t,Ue([this.value()],arguments))})})),t}function ua(){}var aa=Li(Pe),la=Li(Ce),ca=Li(Ve);function ha(t){return yo(t)?De(To(t)):function(t){return function(e){return xr(e,t)}}(t)}var fa=Fi(),pa=Fi(!0);function da(){return[]}function va(){return!1}var ga,_a=Wi((function(t,e){return t+e}),0),ya=Hi("ceil"),ma=Wi((function(t,e){return t/e}),1),ba=Hi("floor"),xa=Wi((function(t,e){return t*e}),1),wa=Hi("round"),Aa=Wi((function(t,e){return t-e}),0);return In.after=function(t,e){if("function"!=typeof e)throw new Ct(o);return t=pu(t),function(){if(--t<1)return e.apply(this,arguments)}},In.ary=Es,In.assign=yu,In.assignIn=mu,In.assignInWith=bu,In.assignWith=xu,In.at=wu,In.before=Cs,In.bind=Os,In.bindAll=Qu,In.bindKey=ks,In.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return Ds(t)?t:[t]},In.chain=hs,In.chunk=function(t,e,n){e=(n?_o(t,e,n):e===i)?1:gn(pu(e),0);var o=null==t?0:t.length;if(!o||e<1)return[];for(var s=0,u=0,a=r(fe(o/e));s<o;)a[u++]=ti(t,s,s+=e);return a},In.compact=function(t){for(var e=-1,n=null==t?0:t.length,r=0,i=[];++e<n;){var o=t[e];o&&(i[r++]=o)}return i},In.concat=function(){var t=arguments.length;if(!t)return[];for(var e=r(t-1),n=arguments[0],i=t;i--;)e[i-1]=arguments[i];return Ue(Ds(n)?Ei(n):[n],vr(e,1))},In.cond=function(t){var e=null==t?0:t.length,n=oo();return t=e?Pe(t,(function(t){if("function"!=typeof t[1])throw new Ct(o);return[n(t[0]),t[1]]})):[],Gr((function(n){for(var r=-1;++r<e;){var i=t[r];if(Ae(i[0],this,n))return Ae(i[1],this,n)}}))},In.conforms=function(t){return function(t){var e=Ru(t);return function(n){return ur(n,t,e)}}(sr(t,1))},In.constant=Xu,In.countBy=ds,In.create=function(t,e){var n=Wn(t);return null==e?n:nr(n,e)},In.curry=function t(e,n,r){var o=Zi(e,8,i,i,i,i,i,n=r?i:n);return o.placeholder=t.placeholder,o},In.curryRight=function t(e,n,r){var o=Zi(e,16,i,i,i,i,i,n=r?i:n);return o.placeholder=t.placeholder,o},In.debounce=Rs,In.defaults=Au,In.defaultsDeep=$u,In.defer=Ps,In.delay=Us,In.difference=Wo,In.differenceBy=Lo,In.differenceWith=No,In.drop=function(t,e,n){var r=null==t?0:t.length;return r?ti(t,(e=n||e===i?1:pu(e))<0?0:e,r):[]},In.dropRight=function(t,e,n){var r=null==t?0:t.length;return r?ti(t,0,(e=r-(e=n||e===i?1:pu(e)))<0?0:e):[]},In.dropRightWhile=function(t,e){return t&&t.length?ci(t,oo(e,3),!0,!0):[]},In.dropWhile=function(t,e){return t&&t.length?ci(t,oo(e,3),!0):[]},In.fill=function(t,e,n,r){var o=null==t?0:t.length;return o?(n&&"number"!=typeof n&&_o(t,e,n)&&(n=0,r=o),function(t,e,n,r){var o=t.length;for((n=pu(n))<0&&(n=-n>o?0:o+n),(r=r===i||r>o?o:pu(r))<0&&(r+=o),r=n>r?0:du(r);n<r;)t[n++]=e;return t}(t,e,n,r)):[]},In.filter=function(t,e){return(Ds(t)?Oe:dr)(t,oo(e,3))},In.flatMap=function(t,e){return vr(ws(t,e),1)},In.flatMapDeep=function(t,e){return vr(ws(t,e),c)},In.flatMapDepth=function(t,e,n){return n=n===i?1:pu(n),vr(ws(t,e),n)},In.flatten=Bo,In.flattenDeep=function(t){return null!=t&&t.length?vr(t,c):[]},In.flattenDepth=function(t,e){return null!=t&&t.length?vr(t,e=e===i?1:pu(e)):[]},In.flip=function(t){return Zi(t,512)},In.flow=ta,In.flowRight=ea,In.fromPairs=function(t){for(var e=-1,n=null==t?0:t.length,r={};++e<n;){var i=t[e];r[i[0]]=i[1]}return r},In.functions=function(t){return null==t?[]:br(t,Ru(t))},In.functionsIn=function(t){return null==t?[]:br(t,Pu(t))},In.groupBy=ms,In.initial=function(t){return null!=t&&t.length?ti(t,0,-1):[]},In.intersection=qo,In.intersectionBy=Go,In.intersectionWith=Zo,In.invert=Cu,In.invertBy=Ou,In.invokeMap=bs,In.iteratee=ra,In.keyBy=xs,In.keys=Ru,In.keysIn=Pu,In.map=ws,In.mapKeys=function(t,e){var n={};return e=oo(e,3),yr(t,(function(t,r,i){rr(n,e(t,r,i),t)})),n},In.mapValues=function(t,e){var n={};return e=oo(e,3),yr(t,(function(t,r,i){rr(n,r,e(t,r,i))})),n},In.matches=function(t){return zr(sr(t,1))},In.matchesProperty=function(t,e){return Ir(t,sr(e,1))},In.memoize=Ms,In.merge=Uu,In.mergeWith=Mu,In.method=ia,In.methodOf=oa,In.mixin=sa,In.negate=js,In.nthArg=function(t){return t=pu(t),Gr((function(e){return Lr(e,t)}))},In.omit=ju,In.omitBy=function(t,e){return Tu(t,js(oo(e)))},In.once=function(t){return Cs(2,t)},In.orderBy=function(t,e,n,r){return null==t?[]:(Ds(e)||(e=null==e?[]:[e]),Ds(n=r?i:n)||(n=null==n?[]:[n]),Nr(t,e,n))},In.over=aa,In.overArgs=Vs,In.overEvery=la,In.overSome=ca,In.partial=Ts,In.partialRight=zs,In.partition=As,In.pick=Vu,In.pickBy=Tu,In.property=ha,In.propertyOf=function(t){return function(e){return null==t?i:xr(t,e)}},In.pull=Jo,In.pullAll=Yo,In.pullAllBy=function(t,e,n){return t&&t.length&&e&&e.length?Dr(t,e,oo(n,2)):t},In.pullAllWith=function(t,e,n){return t&&t.length&&e&&e.length?Dr(t,e,i,n):t},In.pullAt=Qo,In.range=fa,In.rangeRight=pa,In.rearg=Is,In.reject=function(t,e){return(Ds(t)?Oe:dr)(t,js(oo(e,3)))},In.remove=function(t,e){var n=[];if(!t||!t.length)return n;var r=-1,i=[],o=t.length;for(e=oo(e,3);++r<o;){var s=t[r];e(s,r,t)&&(n.push(s),i.push(r))}return Br(t,i),n},In.rest=function(t,e){if("function"!=typeof t)throw new Ct(o);return Gr(t,e=e===i?e:pu(e))},In.reverse=Xo,In.sampleSize=function(t,e,n){return e=(n?_o(t,e,n):e===i)?1:pu(e),(Ds(t)?Jn:Kr)(t,e)},In.set=function(t,e,n){return null==t?t:Jr(t,e,n)},In.setWith=function(t,e,n,r){return r="function"==typeof r?r:i,null==t?t:Jr(t,e,n,r)},In.shuffle=function(t){return(Ds(t)?Yn:Xr)(t)},In.slice=function(t,e,n){var r=null==t?0:t.length;return r?(n&&"number"!=typeof n&&_o(t,e,n)?(e=0,n=r):(e=null==e?0:pu(e),n=n===i?r:pu(n)),ti(t,e,n)):[]},In.sortBy=$s,In.sortedUniq=function(t){return t&&t.length?ii(t):[]},In.sortedUniqBy=function(t,e){return t&&t.length?ii(t,oo(e,2)):[]},In.split=function(t,e,n){return n&&"number"!=typeof n&&_o(t,e,n)&&(e=n=i),(n=n===i?p:n>>>0)?(t=_u(t))&&("string"==typeof e||null!=e&&!iu(e))&&!(e=si(e))&&rn(t)?yi(hn(t),0,n):t.split(e,n):[]},In.spread=function(t,e){if("function"!=typeof t)throw new Ct(o);return e=null==e?0:gn(pu(e),0),Gr((function(n){var r=n[e],i=yi(n,0,e);return r&&Ue(i,r),Ae(t,this,i)}))},In.tail=function(t){var e=null==t?0:t.length;return e?ti(t,1,e):[]},In.take=function(t,e,n){return t&&t.length?ti(t,0,(e=n||e===i?1:pu(e))<0?0:e):[]},In.takeRight=function(t,e,n){var r=null==t?0:t.length;return r?ti(t,(e=r-(e=n||e===i?1:pu(e)))<0?0:e,r):[]},In.takeRightWhile=function(t,e){return t&&t.length?ci(t,oo(e,3),!1,!0):[]},In.takeWhile=function(t,e){return t&&t.length?ci(t,oo(e,3)):[]},In.tap=function(t,e){return e(t),t},In.throttle=function(t,e,n){var r=!0,i=!0;if("function"!=typeof t)throw new Ct(o);return Xs(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Rs(t,e,{leading:r,maxWait:e,trailing:i})},In.thru=fs,In.toArray=hu,In.toPairs=zu,In.toPairsIn=Iu,In.toPath=function(t){return Ds(t)?Pe(t,To):uu(t)?[t]:Ei(Vo(_u(t)))},In.toPlainObject=gu,In.transform=function(t,e,n){var r=Ds(t),i=r||Gs(t)||au(t);if(e=oo(e,4),null==n){var o=t&&t.constructor;n=i?r?new o:[]:Xs(t)&&Js(o)?Wn(Bt(t)):{}}return(i?Se:yr)(t,(function(t,r,i){return e(n,t,r,i)})),n},In.unary=function(t){return Es(t,1)},In.union=ts,In.unionBy=es,In.unionWith=ns,In.uniq=function(t){return t&&t.length?ui(t):[]},In.uniqBy=function(t,e){return t&&t.length?ui(t,oo(e,2)):[]},In.uniqWith=function(t,e){return e="function"==typeof e?e:i,t&&t.length?ui(t,i,e):[]},In.unset=function(t,e){return null==t||ai(t,e)},In.unzip=rs,In.unzipWith=is,In.update=function(t,e,n){return null==t?t:li(t,e,vi(n))},In.updateWith=function(t,e,n,r){return r="function"==typeof r?r:i,null==t?t:li(t,e,vi(n),r)},In.values=Wu,In.valuesIn=function(t){return null==t?[]:Je(t,Pu(t))},In.without=os,In.words=Ju,In.wrap=function(t,e){return Ts(vi(e),t)},In.xor=ss,In.xorBy=us,In.xorWith=as,In.zip=ls,In.zipObject=function(t,e){return pi(t||[],e||[],Xn)},In.zipObjectDeep=function(t,e){return pi(t||[],e||[],Jr)},In.zipWith=cs,In.entries=zu,In.entriesIn=Iu,In.extend=mu,In.extendWith=bu,sa(In,In),In.add=_a,In.attempt=Yu,In.camelCase=Lu,In.capitalize=Nu,In.ceil=ya,In.clamp=function(t,e,n){return n===i&&(n=e,e=i),n!==i&&(n=(n=vu(n))==n?n:0),e!==i&&(e=(e=vu(e))==e?e:0),or(vu(t),e,n)},In.clone=function(t){return sr(t,4)},In.cloneDeep=function(t){return sr(t,5)},In.cloneDeepWith=function(t,e){return sr(t,5,e="function"==typeof e?e:i)},In.cloneWith=function(t,e){return sr(t,4,e="function"==typeof e?e:i)},In.conformsTo=function(t,e){return null==e||ur(t,e,Ru(e))},In.deburr=Fu,In.defaultTo=function(t,e){return null==t||t!=t?e:t},In.divide=ma,In.endsWith=function(t,e,n){t=_u(t),e=si(e);var r=t.length,o=n=n===i?r:or(pu(n),0,r);return(n-=e.length)>=0&&t.slice(n,o)==e},In.eq=Ws,In.escape=function(t){return(t=_u(t))&&Z.test(t)?t.replace(q,en):t},In.escapeRegExp=function(t){return(t=_u(t))&&nt.test(t)?t.replace(et,"\\$&"):t},In.every=function(t,e,n){var r=Ds(t)?Ce:fr;return n&&_o(t,e,n)&&(e=i),r(t,oo(e,3))},In.find=vs,In.findIndex=Fo,In.findKey=function(t,e){return ze(t,oo(e,3),yr)},In.findLast=gs,In.findLastIndex=Do,In.findLastKey=function(t,e){return ze(t,oo(e,3),mr)},In.floor=ba,In.forEach=_s,In.forEachRight=ys,In.forIn=function(t,e){return null==t?t:gr(t,oo(e,3),Pu)},In.forInRight=function(t,e){return null==t?t:_r(t,oo(e,3),Pu)},In.forOwn=function(t,e){return t&&yr(t,oo(e,3))},In.forOwnRight=function(t,e){return t&&mr(t,oo(e,3))},In.get=Su,In.gt=Ls,In.gte=Ns,In.has=function(t,e){return null!=t&&fo(t,e,Sr)},In.hasIn=Eu,In.head=Ho,In.identity=na,In.includes=function(t,e,n,r){t=Hs(t)?t:Wu(t),n=n&&!r?pu(n):0;var i=t.length;return n<0&&(n=gn(i+n,0)),su(t)?n<=i&&t.indexOf(e,n)>-1:!!i&&We(t,e,n)>-1},In.indexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:pu(n);return i<0&&(i=gn(r+i,0)),We(t,e,i)},In.inRange=function(t,e,n){return e=fu(e),n===i?(n=e,e=0):n=fu(n),function(t,e,n){return t>=_n(e,n)&&t<gn(e,n)}(t=vu(t),e,n)},In.invoke=ku,In.isArguments=Fs,In.isArray=Ds,In.isArrayBuffer=Bs,In.isArrayLike=Hs,In.isArrayLikeObject=qs,In.isBoolean=function(t){return!0===t||!1===t||tu(t)&&Ar(t)==_},In.isBuffer=Gs,In.isDate=Zs,In.isElement=function(t){return tu(t)&&1===t.nodeType&&!ru(t)},In.isEmpty=function(t){if(null==t)return!0;if(Hs(t)&&(Ds(t)||"string"==typeof t||"function"==typeof t.splice||Gs(t)||au(t)||Fs(t)))return!t.length;var e=ho(t);if(e==w||e==C)return!t.size;if(xo(t))return!jr(t).length;for(var n in t)if(Mt.call(t,n))return!1;return!0},In.isEqual=function(t,e){return Rr(t,e)},In.isEqualWith=function(t,e,n){var r=(n="function"==typeof n?n:i)?n(t,e):i;return r===i?Rr(t,e,i,n):!!r},In.isError=Ks,In.isFinite=function(t){return"number"==typeof t&&Te(t)},In.isFunction=Js,In.isInteger=Ys,In.isLength=Qs,In.isMap=eu,In.isMatch=function(t,e){return t===e||Pr(t,e,uo(e))},In.isMatchWith=function(t,e,n){return n="function"==typeof n?n:i,Pr(t,e,uo(e),n)},In.isNaN=function(t){return nu(t)&&t!=+t},In.isNative=function(t){if(bo(t))throw new xt("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Ur(t)},In.isNil=function(t){return null==t},In.isNull=function(t){return null===t},In.isNumber=nu,In.isObject=Xs,In.isObjectLike=tu,In.isPlainObject=ru,In.isRegExp=iu,In.isSafeInteger=function(t){return Ys(t)&&t>=-9007199254740991&&t<=h},In.isSet=ou,In.isString=su,In.isSymbol=uu,In.isTypedArray=au,In.isUndefined=function(t){return t===i},In.isWeakMap=function(t){return tu(t)&&ho(t)==R},In.isWeakSet=function(t){return tu(t)&&"[object WeakSet]"==Ar(t)},In.join=function(t,e){return null==t?"":Be.call(t,e)},In.kebabCase=Du,In.last=Ko,In.lastIndexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var o=r;return n!==i&&(o=(o=pu(n))<0?gn(r+o,0):_n(o,r-1)),e==e?function(t,e,n){for(var r=n+1;r--;)if(t[r]===e)return r;return r}(t,e,o):Ie(t,Ne,o,!0)},In.lowerCase=Bu,In.lowerFirst=Hu,In.lt=lu,In.lte=cu,In.max=function(t){return t&&t.length?pr(t,na,$r):i},In.maxBy=function(t,e){return t&&t.length?pr(t,oo(e,2),$r):i},In.mean=function(t){return Fe(t,na)},In.meanBy=function(t,e){return Fe(t,oo(e,2))},In.min=function(t){return t&&t.length?pr(t,na,Vr):i},In.minBy=function(t,e){return t&&t.length?pr(t,oo(e,2),Vr):i},In.stubArray=da,In.stubFalse=va,In.stubObject=function(){return{}},In.stubString=function(){return""},In.stubTrue=function(){return!0},In.multiply=xa,In.nth=function(t,e){return t&&t.length?Lr(t,pu(e)):i},In.noConflict=function(){return he._===this&&(he._=It),this},In.noop=ua,In.now=Ss,In.pad=function(t,e,n){t=_u(t);var r=(e=pu(e))?cn(t):0;if(!e||r>=e)return t;var i=(e-r)/2;return Ni(pe(i),n)+t+Ni(fe(i),n)},In.padEnd=function(t,e,n){t=_u(t);var r=(e=pu(e))?cn(t):0;return e&&r<e?t+Ni(e-r,n):t},In.padStart=function(t,e,n){t=_u(t);var r=(e=pu(e))?cn(t):0;return e&&r<e?Ni(e-r,n)+t:t},In.parseInt=function(t,e,n){return n||null==e?e=0:e&&(e=+e),mn(_u(t).replace(rt,""),e||0)},In.random=function(t,e,n){if(n&&"boolean"!=typeof n&&_o(t,e,n)&&(e=n=i),n===i&&("boolean"==typeof e?(n=e,e=i):"boolean"==typeof t&&(n=t,t=i)),t===i&&e===i?(t=0,e=1):(t=fu(t),e===i?(e=t,t=0):e=fu(e)),t>e){var r=t;t=e,e=r}if(n||t%1||e%1){var o=bn();return _n(t+o*(e-t+ue("1e-"+((o+"").length-1))),e)}return Hr(t,e)},In.reduce=function(t,e,n){var r=Ds(t)?Me:He,i=arguments.length<3;return r(t,oo(e,4),n,i,cr)},In.reduceRight=function(t,e,n){var r=Ds(t)?je:He,i=arguments.length<3;return r(t,oo(e,4),n,i,hr)},In.repeat=function(t,e,n){return e=(n?_o(t,e,n):e===i)?1:pu(e),qr(_u(t),e)},In.replace=function(){var t=arguments,e=_u(t[0]);return t.length<3?e:e.replace(t[1],t[2])},In.result=function(t,e,n){var r=-1,o=(e=gi(e,t)).length;for(o||(o=1,t=i);++r<o;){var s=null==t?i:t[To(e[r])];s===i&&(r=o,s=n),t=Js(s)?s.call(t):s}return t},In.round=wa,In.runInContext=t,In.sample=function(t){return(Ds(t)?Kn:Zr)(t)},In.size=function(t){if(null==t)return 0;if(Hs(t))return su(t)?cn(t):t.length;var e=ho(t);return e==w||e==C?t.size:jr(t).length},In.snakeCase=qu,In.some=function(t,e,n){var r=Ds(t)?Ve:ei;return n&&_o(t,e,n)&&(e=i),r(t,oo(e,3))},In.sortedIndex=function(t,e){return ni(t,e)},In.sortedIndexBy=function(t,e,n){return ri(t,e,oo(n,2))},In.sortedIndexOf=function(t,e){var n=null==t?0:t.length;if(n){var r=ni(t,e);if(r<n&&Ws(t[r],e))return r}return-1},In.sortedLastIndex=function(t,e){return ni(t,e,!0)},In.sortedLastIndexBy=function(t,e,n){return ri(t,e,oo(n,2),!0)},In.sortedLastIndexOf=function(t,e){if(null!=t&&t.length){var n=ni(t,e,!0)-1;if(Ws(t[n],e))return n}return-1},In.startCase=Gu,In.startsWith=function(t,e,n){return t=_u(t),n=null==n?0:or(pu(n),0,t.length),e=si(e),t.slice(n,n+e.length)==e},In.subtract=Aa,In.sum=function(t){return t&&t.length?qe(t,na):0},In.sumBy=function(t,e){return t&&t.length?qe(t,oo(e,2)):0},In.template=function(t,e,n){var r=In.templateSettings;n&&_o(t,e,n)&&(e=i),t=_u(t),e=bu({},e,r,Ki);var o,s,u=bu({},e.imports,r.imports,Ki),a=Ru(u),l=Je(u,a),c=0,h=e.interpolate||mt,f="__p += '",p=St((e.escape||mt).source+"|"+h.source+"|"+(h===Y?ht:mt).source+"|"+(e.evaluate||mt).source+"|$","g"),d="//# sourceURL="+(Mt.call(e,"sourceURL")?(e.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++re+"]")+"\n";t.replace(p,(function(e,n,r,i,u,a){return r||(r=i),f+=t.slice(c,a).replace(bt,nn),n&&(o=!0,f+="' +\n__e("+n+") +\n'"),u&&(s=!0,f+="';\n"+u+";\n__p += '"),r&&(f+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),c=a+e.length,e})),f+="';\n";var v=Mt.call(e,"variable")&&e.variable;if(v){if(lt.test(v))throw new xt("Invalid `variable` option passed into `_.template`")}else f="with (obj) {\n"+f+"\n}\n";f=(s?f.replace(F,""):f).replace(D,"$1").replace(B,"$1;"),f="function("+(v||"obj")+") {\n"+(v?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(s?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var g=Yu((function(){return wt(a,d+"return "+f).apply(i,l)}));if(g.source=f,Ks(g))throw g;return g},In.times=function(t,e){if((t=pu(t))<1||t>h)return[];var n=p,r=_n(t,p);e=oo(e),t-=p;for(var i=Ge(r,e);++n<t;)e(n);return i},In.toFinite=fu,In.toInteger=pu,In.toLength=du,In.toLower=function(t){return _u(t).toLowerCase()},In.toNumber=vu,In.toSafeInteger=function(t){return t?or(pu(t),-9007199254740991,h):0===t?t:0},In.toString=_u,In.toUpper=function(t){return _u(t).toUpperCase()},In.trim=function(t,e,n){if((t=_u(t))&&(n||e===i))return Ze(t);if(!t||!(e=si(e)))return t;var r=hn(t),o=hn(e);return yi(r,Qe(r,o),Xe(r,o)+1).join("")},In.trimEnd=function(t,e,n){if((t=_u(t))&&(n||e===i))return t.slice(0,fn(t)+1);if(!t||!(e=si(e)))return t;var r=hn(t);return yi(r,0,Xe(r,hn(e))+1).join("")},In.trimStart=function(t,e,n){if((t=_u(t))&&(n||e===i))return t.replace(rt,"");if(!t||!(e=si(e)))return t;var r=hn(t);return yi(r,Qe(r,hn(e))).join("")},In.truncate=function(t,e){var n=30,r="...";if(Xs(e)){var o="separator"in e?e.separator:o;n="length"in e?pu(e.length):n,r="omission"in e?si(e.omission):r}var s=(t=_u(t)).length;if(rn(t)){var u=hn(t);s=u.length}if(n>=s)return t;var a=n-cn(r);if(a<1)return r;var l=u?yi(u,0,a).join(""):t.slice(0,a);if(o===i)return l+r;if(u&&(a+=l.length-a),iu(o)){if(t.slice(a).search(o)){var c,h=l;for(o.global||(o=St(o.source,_u(ft.exec(o))+"g")),o.lastIndex=0;c=o.exec(h);)var f=c.index;l=l.slice(0,f===i?a:f)}}else if(t.indexOf(si(o),a)!=a){var p=l.lastIndexOf(o);p>-1&&(l=l.slice(0,p))}return l+r},In.unescape=function(t){return(t=_u(t))&&G.test(t)?t.replace(H,pn):t},In.uniqueId=function(t){var e=++jt;return _u(t)+e},In.upperCase=Zu,In.upperFirst=Ku,In.each=_s,In.eachRight=ys,In.first=Ho,sa(In,(ga={},yr(In,(function(t,e){Mt.call(In.prototype,e)||(ga[e]=t)})),ga),{chain:!1}),In.VERSION="4.17.21",Se(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){In[t].placeholder=In})),Se(["drop","take"],(function(t,e){Fn.prototype[t]=function(n){n=n===i?1:gn(pu(n),0);var r=this.__filtered__&&!e?new Fn(this):this.clone();return r.__filtered__?r.__takeCount__=_n(n,r.__takeCount__):r.__views__.push({size:_n(n,p),type:t+(r.__dir__<0?"Right":"")}),r},Fn.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}})),Se(["filter","map","takeWhile"],(function(t,e){var n=e+1,r=1==n||3==n;Fn.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:oo(t,3),type:n}),e.__filtered__=e.__filtered__||r,e}})),Se(["head","last"],(function(t,e){var n="take"+(e?"Right":"");Fn.prototype[t]=function(){return this[n](1).value()[0]}})),Se(["initial","tail"],(function(t,e){var n="drop"+(e?"":"Right");Fn.prototype[t]=function(){return this.__filtered__?new Fn(this):this[n](1)}})),Fn.prototype.compact=function(){return this.filter(na)},Fn.prototype.find=function(t){return this.filter(t).head()},Fn.prototype.findLast=function(t){return this.reverse().find(t)},Fn.prototype.invokeMap=Gr((function(t,e){return"function"==typeof t?new Fn(this):this.map((function(n){return Or(n,t,e)}))})),Fn.prototype.reject=function(t){return this.filter(js(oo(t)))},Fn.prototype.slice=function(t,e){t=pu(t);var n=this;return n.__filtered__&&(t>0||e<0)?new Fn(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),e!==i&&(n=(e=pu(e))<0?n.dropRight(-e):n.take(e-t)),n)},Fn.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Fn.prototype.toArray=function(){return this.take(p)},yr(Fn.prototype,(function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),r=/^(?:head|last)$/.test(e),o=In[r?"take"+("last"==e?"Right":""):e],s=r||/^find/.test(e);o&&(In.prototype[e]=function(){var e=this.__wrapped__,u=r?[1]:arguments,a=e instanceof Fn,l=u[0],c=a||Ds(e),h=function(t){var e=o.apply(In,Ue([t],u));return r&&f?e[0]:e};c&&n&&"function"==typeof l&&1!=l.length&&(a=c=!1);var f=this.__chain__,p=!!this.__actions__.length,d=s&&!f,v=a&&!p;if(!s&&c){e=v?e:new Fn(this);var g=t.apply(e,u);return g.__actions__.push({func:fs,args:[h],thisArg:i}),new Nn(g,f)}return d&&v?t.apply(this,u):(g=this.thru(h),d?r?g.value()[0]:g.value():g)})})),Se(["pop","push","shift","sort","splice","unshift"],(function(t){var e=Ot[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);In.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var i=this.value();return e.apply(Ds(i)?i:[],t)}return this[n]((function(n){return e.apply(Ds(n)?n:[],t)}))}})),yr(Fn.prototype,(function(t,e){var n=In[e];if(n){var r=n.name+"";Mt.call(kn,r)||(kn[r]=[]),kn[r].push({name:e,func:n})}})),kn[zi(i,2).name]=[{name:"wrapper",func:i}],Fn.prototype.clone=function(){var t=new Fn(this.__wrapped__);return t.__actions__=Ei(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Ei(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Ei(this.__views__),t},Fn.prototype.reverse=function(){if(this.__filtered__){var t=new Fn(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},Fn.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,n=Ds(t),r=e<0,i=n?t.length:0,o=function(t,e,n){for(var r=-1,i=n.length;++r<i;){var o=n[r],s=o.size;switch(o.type){case"drop":t+=s;break;case"dropRight":e-=s;break;case"take":e=_n(e,t+s);break;case"takeRight":t=gn(t,e-s)}}return{start:t,end:e}}(0,i,this.__views__),s=o.start,u=o.end,a=u-s,l=r?u:s-1,c=this.__iteratees__,h=c.length,f=0,p=_n(a,this.__takeCount__);if(!n||!r&&i==a&&p==a)return hi(t,this.__actions__);var d=[];t:for(;a--&&f<p;){for(var v=-1,g=t[l+=e];++v<h;){var _=c[v],y=_.iteratee,m=_.type,b=y(g);if(2==m)g=b;else if(!b){if(1==m)continue t;break t}}d[f++]=g}return d},In.prototype.at=ps,In.prototype.chain=function(){return hs(this)},In.prototype.commit=function(){return new Nn(this.value(),this.__chain__)},In.prototype.next=function(){this.__values__===i&&(this.__values__=hu(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?i:this.__values__[this.__index__++]}},In.prototype.plant=function(t){for(var e,n=this;n instanceof Ln;){var r=Io(n);r.__index__=0,r.__values__=i,e?o.__wrapped__=r:e=r;var o=r;n=n.__wrapped__}return o.__wrapped__=t,e},In.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof Fn){var e=t;return this.__actions__.length&&(e=new Fn(this)),(e=e.reverse()).__actions__.push({func:fs,args:[Xo],thisArg:i}),new Nn(e,this.__chain__)}return this.thru(Xo)},In.prototype.toJSON=In.prototype.valueOf=In.prototype.value=function(){return hi(this.__wrapped__,this.__actions__)},In.prototype.first=In.prototype.head,Kt&&(In.prototype[Kt]=function(){return this}),In}();he._=dn,(r=function(){return dn}.call(e,n,e,t))===i||(t.exports=r)}.call(this)},154:t=>{"use strict";t.exports=e},488:t=>{"use strict";t.exports=r},472:e=>{"use strict";e.exports=t},848:t=>{"use strict";t.exports=n}},o={};function s(t){var e=o[t];if(void 0!==e)return e.exports;var n=o[t]={id:t,loaded:!1,exports:{}};return i[t].call(n.exports,n,n.exports,s),n.loaded=!0,n.exports}s.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return s.d(e,{a:e}),e},s.d=(t,e)=>{for(var n in e)s.o(e,n)&&!s.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),s.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),s.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},s.nmd=t=>(t.paths=[],t.children||(t.children=[]),t);var u={};return(()=>{"use strict";s.r(u),s.d(u,{OrGauge:()=>It});const t=window,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,n=Symbol(),r=new WeakMap;class i{constructor(t,e,r){if(this._$cssResult$=!0,r!==n)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const n=this.t;if(e&&void 0===t){const e=void 0!==n&&1===n.length;e&&(t=r.get(n)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&r.set(n,t))}return t}toString(){return this.cssText}}const o=e?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const n of t.cssRules)e+=n.cssText;return(t=>new i("string"==typeof t?t:t+"",void 0,n))(e)})(t):t;var a;const l=window,c=l.trustedTypes,h=c?c.emptyScript:"",f=l.reactiveElementPolyfillSupport,p={toAttribute(t,e){switch(e){case Boolean:t=t?h:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let n=t;switch(e){case Boolean:n=null!==t;break;case Number:n=null===t?null:Number(t);break;case Object:case Array:try{n=JSON.parse(t)}catch(t){n=null}}return n}},d=(t,e)=>e!==t&&(e==e||t==t),v={attribute:!0,type:String,converter:p,reflect:!1,hasChanged:d},g="finalized";class _ extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(t){var e;this.finalize(),(null!==(e=this.h)&&void 0!==e?e:this.h=[]).push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,n)=>{const r=this._$Ep(n,e);void 0!==r&&(this._$Ev.set(r,n),t.push(r))})),t}static createProperty(t,e=v){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const n="symbol"==typeof t?Symbol():"__"+t,r=this.getPropertyDescriptor(t,n,e);void 0!==r&&Object.defineProperty(this.prototype,t,r)}}static getPropertyDescriptor(t,e,n){return{get(){return this[e]},set(r){const i=this[t];this[e]=r,this.requestUpdate(t,i,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||v}static finalize(){if(this.hasOwnProperty(g))return!1;this[g]=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),void 0!==t.h&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const n of e)this.createProperty(n,t[n])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const n=new Set(t.flat(1/0).reverse());for(const t of n)e.unshift(o(t))}else void 0!==t&&e.push(o(t));return e}static _$Ep(t,e){const n=e.attribute;return!1===n?void 0:"string"==typeof n?n:"string"==typeof t?t.toLowerCase():void 0}_$Eu(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,n;(null!==(e=this._$ES)&&void 0!==e?e:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(n=t.hostConnected)||void 0===n||n.call(t))}removeController(t){var e;null===(e=this._$ES)||void 0===e||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])}))}createRenderRoot(){var n;const r=null!==(n=this.shadowRoot)&&void 0!==n?n:this.attachShadow(this.constructor.shadowRootOptions);return((n,r)=>{e?n.adoptedStyleSheets=r.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):r.forEach((e=>{const r=document.createElement("style"),i=t.litNonce;void 0!==i&&r.setAttribute("nonce",i),r.textContent=e.cssText,n.appendChild(r)}))})(r,this.constructor.elementStyles),r}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,n){this._$AK(t,n)}_$EO(t,e,n=v){var r;const i=this.constructor._$Ep(t,n);if(void 0!==i&&!0===n.reflect){const o=(void 0!==(null===(r=n.converter)||void 0===r?void 0:r.toAttribute)?n.converter:p).toAttribute(e,n.type);this._$El=t,null==o?this.removeAttribute(i):this.setAttribute(i,o),this._$El=null}}_$AK(t,e){var n;const r=this.constructor,i=r._$Ev.get(t);if(void 0!==i&&this._$El!==i){const t=r.getPropertyOptions(i),o="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(n=t.converter)||void 0===n?void 0:n.fromAttribute)?t.converter:p;this._$El=i,this[i]=o.fromAttribute(e,t.type),this._$El=null}}requestUpdate(t,e,n){let r=!0;void 0!==t&&(((n=n||this.constructor.getPropertyOptions(t)).hasChanged||d)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===n.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,n))):r=!1),!this.isUpdatePending&&r&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((t,e)=>this[e]=t)),this._$Ei=void 0);let e=!1;const n=this._$AL;try{e=this.shouldUpdate(n),e?(this.willUpdate(n),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)})),this.update(n)):this._$Ek()}catch(t){throw e=!1,this._$Ek(),t}e&&this._$AE(n)}willUpdate(t){}_$AE(t){var e;null===(e=this._$ES)||void 0===e||e.forEach((t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,e)=>this._$EO(e,this[e],t))),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}}var y;_[g]=!0,_.elementProperties=new Map,_.elementStyles=[],_.shadowRootOptions={mode:"open"},null==f||f({ReactiveElement:_}),(null!==(a=l.reactiveElementVersions)&&void 0!==a?a:l.reactiveElementVersions=[]).push("1.6.3");const m=window,b=m.trustedTypes,x=b?b.createPolicy("lit-html",{createHTML:t=>t}):void 0,w="$lit$",A=`lit$${(Math.random()+"").slice(9)}$`,$="?"+A,S=`<${$}>`,E=document,C=()=>E.createComment(""),O=t=>null===t||"object"!=typeof t&&"function"!=typeof t,k=Array.isArray,R="[ \t\n\f\r]",P=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,U=/-->/g,M=/>/g,j=RegExp(`>|${R}(?:([^\\s"'>=/]+)(${R}*=${R}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),V=/'/g,T=/"/g,z=/^(?:script|style|textarea|title)$/i,I=t=>(e,...n)=>({_$litType$:t,strings:e,values:n}),W=I(1),L=(I(2),Symbol.for("lit-noChange")),N=Symbol.for("lit-nothing"),F=new WeakMap,D=E.createTreeWalker(E,129,null,!1);function B(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==x?x.createHTML(e):e}const H=(t,e)=>{const n=t.length-1,r=[];let i,o=2===e?"<svg>":"",s=P;for(let e=0;e<n;e++){const n=t[e];let u,a,l=-1,c=0;for(;c<n.length&&(s.lastIndex=c,a=s.exec(n),null!==a);)c=s.lastIndex,s===P?"!--"===a[1]?s=U:void 0!==a[1]?s=M:void 0!==a[2]?(z.test(a[2])&&(i=RegExp("</"+a[2],"g")),s=j):void 0!==a[3]&&(s=j):s===j?">"===a[0]?(s=null!=i?i:P,l=-1):void 0===a[1]?l=-2:(l=s.lastIndex-a[2].length,u=a[1],s=void 0===a[3]?j:'"'===a[3]?T:V):s===T||s===V?s=j:s===U||s===M?s=P:(s=j,i=void 0);const h=s===j&&t[e+1].startsWith("/>")?" ":"";o+=s===P?n+S:l>=0?(r.push(u),n.slice(0,l)+w+n.slice(l)+A+h):n+A+(-2===l?(r.push(void 0),e):h)}return[B(t,o+(t[n]||"<?>")+(2===e?"</svg>":"")),r]};class q{constructor({strings:t,_$litType$:e},n){let r;this.parts=[];let i=0,o=0;const s=t.length-1,u=this.parts,[a,l]=H(t,e);if(this.el=q.createElement(a,n),D.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(r=D.nextNode())&&u.length<s;){if(1===r.nodeType){if(r.hasAttributes()){const t=[];for(const e of r.getAttributeNames())if(e.endsWith(w)||e.startsWith(A)){const n=l[o++];if(t.push(e),void 0!==n){const t=r.getAttribute(n.toLowerCase()+w).split(A),e=/([.?@])?(.*)/.exec(n);u.push({type:1,index:i,name:e[2],strings:t,ctor:"."===e[1]?Y:"?"===e[1]?X:"@"===e[1]?tt:J})}else u.push({type:6,index:i})}for(const e of t)r.removeAttribute(e)}if(z.test(r.tagName)){const t=r.textContent.split(A),e=t.length-1;if(e>0){r.textContent=b?b.emptyScript:"";for(let n=0;n<e;n++)r.append(t[n],C()),D.nextNode(),u.push({type:2,index:++i});r.append(t[e],C())}}}else if(8===r.nodeType)if(r.data===$)u.push({type:2,index:i});else{let t=-1;for(;-1!==(t=r.data.indexOf(A,t+1));)u.push({type:7,index:i}),t+=A.length-1}i++}}static createElement(t,e){const n=E.createElement("template");return n.innerHTML=t,n}}function G(t,e,n=t,r){var i,o,s,u;if(e===L)return e;let a=void 0!==r?null===(i=n._$Co)||void 0===i?void 0:i[r]:n._$Cl;const l=O(e)?void 0:e._$litDirective$;return(null==a?void 0:a.constructor)!==l&&(null===(o=null==a?void 0:a._$AO)||void 0===o||o.call(a,!1),void 0===l?a=void 0:(a=new l(t),a._$AT(t,n,r)),void 0!==r?(null!==(s=(u=n)._$Co)&&void 0!==s?s:u._$Co=[])[r]=a:n._$Cl=a),void 0!==a&&(e=G(t,a._$AS(t,e.values),a,r)),e}class Z{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;const{el:{content:n},parts:r}=this._$AD,i=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:E).importNode(n,!0);D.currentNode=i;let o=D.nextNode(),s=0,u=0,a=r[0];for(;void 0!==a;){if(s===a.index){let e;2===a.type?e=new K(o,o.nextSibling,this,t):1===a.type?e=new a.ctor(o,a.name,a.strings,this,t):6===a.type&&(e=new et(o,this,t)),this._$AV.push(e),a=r[++u]}s!==(null==a?void 0:a.index)&&(o=D.nextNode(),s++)}return D.currentNode=E,i}v(t){let e=0;for(const n of this._$AV)void 0!==n&&(void 0!==n.strings?(n._$AI(t,n,e),e+=n.strings.length-2):n._$AI(t[e])),e++}}class K{constructor(t,e,n,r){var i;this.type=2,this._$AH=N,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=n,this.options=r,this._$Cp=null===(i=null==r?void 0:r.isConnected)||void 0===i||i}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===(null==t?void 0:t.nodeType)&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=G(this,t,e),O(t)?t===N||null==t||""===t?(this._$AH!==N&&this._$AR(),this._$AH=N):t!==this._$AH&&t!==L&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>k(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==N&&O(this._$AH)?this._$AA.nextSibling.data=t:this.$(E.createTextNode(t)),this._$AH=t}g(t){var e;const{values:n,_$litType$:r}=t,i="number"==typeof r?this._$AC(t):(void 0===r.el&&(r.el=q.createElement(B(r.h,r.h[0]),this.options)),r);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===i)this._$AH.v(n);else{const t=new Z(i,this),e=t.u(this.options);t.v(n),this.$(e),this._$AH=t}}_$AC(t){let e=F.get(t.strings);return void 0===e&&F.set(t.strings,e=new q(t)),e}T(t){k(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let n,r=0;for(const i of t)r===e.length?e.push(n=new K(this.k(C()),this.k(C()),this,this.options)):n=e[r],n._$AI(i),r++;r<e.length&&(this._$AR(n&&n._$AB.nextSibling,r),e.length=r)}_$AR(t=this._$AA.nextSibling,e){var n;for(null===(n=this._$AP)||void 0===n||n.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cp=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class J{constructor(t,e,n,r,i){this.type=1,this._$AH=N,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=i,n.length>2||""!==n[0]||""!==n[1]?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=N}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,n,r){const i=this.strings;let o=!1;if(void 0===i)t=G(this,t,e,0),o=!O(t)||t!==this._$AH&&t!==L,o&&(this._$AH=t);else{const r=t;let s,u;for(t=i[0],s=0;s<i.length-1;s++)u=G(this,r[n+s],e,s),u===L&&(u=this._$AH[s]),o||(o=!O(u)||u!==this._$AH[s]),u===N?t=N:t!==N&&(t+=(null!=u?u:"")+i[s+1]),this._$AH[s]=u}o&&!r&&this.j(t)}j(t){t===N?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class Y extends J{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===N?void 0:t}}const Q=b?b.emptyScript:"";class X extends J{constructor(){super(...arguments),this.type=4}j(t){t&&t!==N?this.element.setAttribute(this.name,Q):this.element.removeAttribute(this.name)}}class tt extends J{constructor(t,e,n,r,i){super(t,e,n,r,i),this.type=5}_$AI(t,e=this){var n;if((t=null!==(n=G(this,t,e,0))&&void 0!==n?n:N)===L)return;const r=this._$AH,i=t===N&&r!==N||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,o=t!==N&&(r===N||i);i&&this.element.removeEventListener(this.name,this,r),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,n;"function"==typeof this._$AH?this._$AH.call(null!==(n=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==n?n:this.element,t):this._$AH.handleEvent(t)}}class et{constructor(t,e,n){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(t){G(this,t)}}const nt=m.litHtmlPolyfillSupport;null==nt||nt(q,K),(null!==(y=m.litHtmlVersions)&&void 0!==y?y:m.litHtmlVersions=[]).push("2.8.0");const rt=window,it=rt.ShadowRoot&&(void 0===rt.ShadyCSS||rt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ot=Symbol(),st=new WeakMap;class ut{constructor(t,e,n){if(this._$cssResult$=!0,n!==ot)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(it&&void 0===t){const n=void 0!==e&&1===e.length;n&&(t=st.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),n&&st.set(e,t))}return t}toString(){return this.cssText}}const at=it?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const n of t.cssRules)e+=n.cssText;return(t=>new ut("string"==typeof t?t:t+"",void 0,ot))(e)})(t):t;var lt;const ct=window,ht=ct.trustedTypes,ft=ht?ht.emptyScript:"",pt=ct.reactiveElementPolyfillSupport,dt={toAttribute(t,e){switch(e){case Boolean:t=t?ft:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let n=t;switch(e){case Boolean:n=null!==t;break;case Number:n=null===t?null:Number(t);break;case Object:case Array:try{n=JSON.parse(t)}catch(t){n=null}}return n}},vt=(t,e)=>e!==t&&(e==e||t==t),gt={attribute:!0,type:String,converter:dt,reflect:!1,hasChanged:vt},_t="finalized";class yt extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(t){var e;this.finalize(),(null!==(e=this.h)&&void 0!==e?e:this.h=[]).push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,n)=>{const r=this._$Ep(n,e);void 0!==r&&(this._$Ev.set(r,n),t.push(r))})),t}static createProperty(t,e=gt){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const n="symbol"==typeof t?Symbol():"__"+t,r=this.getPropertyDescriptor(t,n,e);void 0!==r&&Object.defineProperty(this.prototype,t,r)}}static getPropertyDescriptor(t,e,n){return{get(){return this[e]},set(r){const i=this[t];this[e]=r,this.requestUpdate(t,i,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||gt}static finalize(){if(this.hasOwnProperty(_t))return!1;this[_t]=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),void 0!==t.h&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const n of e)this.createProperty(n,t[n])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const n=new Set(t.flat(1/0).reverse());for(const t of n)e.unshift(at(t))}else void 0!==t&&e.push(at(t));return e}static _$Ep(t,e){const n=e.attribute;return!1===n?void 0:"string"==typeof n?n:"string"==typeof t?t.toLowerCase():void 0}_$Eu(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,n;(null!==(e=this._$ES)&&void 0!==e?e:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(n=t.hostConnected)||void 0===n||n.call(t))}removeController(t){var e;null===(e=this._$ES)||void 0===e||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])}))}createRenderRoot(){var t;const e=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return((t,e)=>{it?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const n=document.createElement("style"),r=rt.litNonce;void 0!==r&&n.setAttribute("nonce",r),n.textContent=e.cssText,t.appendChild(n)}))})(e,this.constructor.elementStyles),e}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,n){this._$AK(t,n)}_$EO(t,e,n=gt){var r;const i=this.constructor._$Ep(t,n);if(void 0!==i&&!0===n.reflect){const o=(void 0!==(null===(r=n.converter)||void 0===r?void 0:r.toAttribute)?n.converter:dt).toAttribute(e,n.type);this._$El=t,null==o?this.removeAttribute(i):this.setAttribute(i,o),this._$El=null}}_$AK(t,e){var n;const r=this.constructor,i=r._$Ev.get(t);if(void 0!==i&&this._$El!==i){const t=r.getPropertyOptions(i),o="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(n=t.converter)||void 0===n?void 0:n.fromAttribute)?t.converter:dt;this._$El=i,this[i]=o.fromAttribute(e,t.type),this._$El=null}}requestUpdate(t,e,n){let r=!0;void 0!==t&&(((n=n||this.constructor.getPropertyOptions(t)).hasChanged||vt)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===n.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,n))):r=!1),!this.isUpdatePending&&r&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((t,e)=>this[e]=t)),this._$Ei=void 0);let e=!1;const n=this._$AL;try{e=this.shouldUpdate(n),e?(this.willUpdate(n),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)})),this.update(n)):this._$Ek()}catch(t){throw e=!1,this._$Ek(),t}e&&this._$AE(n)}willUpdate(t){}_$AE(t){var e;null===(e=this._$ES)||void 0===e||e.forEach((t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,e)=>this._$EO(e,this[e],t))),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}}var mt,bt;yt[_t]=!0,yt.elementProperties=new Map,yt.elementStyles=[],yt.shadowRootOptions={mode:"open"},null==pt||pt({ReactiveElement:yt}),(null!==(lt=ct.reactiveElementVersions)&&void 0!==lt?lt:ct.reactiveElementVersions=[]).push("1.6.3");class xt extends yt{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const n=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=n.firstChild),n}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,n)=>{var r,i;const o=null!==(r=null==n?void 0:n.renderBefore)&&void 0!==r?r:e;let s=o._$litPart$;if(void 0===s){const t=null!==(i=null==n?void 0:n.renderBefore)&&void 0!==i?i:null;o._$litPart$=s=new K(e.insertBefore(C(),t),t,void 0,null!=n?n:{})}return s._$AI(t),s})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return L}}xt.finalized=!0,xt._$litElement$=!0,null===(mt=globalThis.litElementHydrateSupport)||void 0===mt||mt.call(globalThis,{LitElement:xt});const wt=globalThis.litElementPolyfillSupport;null==wt||wt({LitElement:xt}),(null!==(bt=globalThis.litElementVersions)&&void 0!==bt?bt:globalThis.litElementVersions=[]).push("3.3.3");const At=(t,e)=>"method"===e.kind&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(n){n.createProperty(e.key,t)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){"function"==typeof e.initializer&&(this[e.key]=e.initializer.call(this))},finisher(n){n.createProperty(e.key,t)}},$t=(t,e,n)=>{e.constructor.createProperty(n,t)};function St(t){return(e,n)=>void 0!==n?$t(t,e,n):At(t,e)}function Et(t){return St({...t,state:!0})}function Ct(t,e){return(({finisher:t,descriptor:e})=>(n,r)=>{var i;if(void 0===r){const r=null!==(i=n.originalKey)&&void 0!==i?i:n.key,o=null!=e?{kind:"method",placement:"prototype",key:r,descriptor:e(n.key)}:{...n,key:r};return null!=t&&(o.finisher=function(e){t(e,r)}),o}{const i=n.constructor;void 0!==e&&Object.defineProperty(n,r,e(r)),null==t||t(i,r)}})({descriptor:n=>{const r={get(){var e,n;return null!==(n=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelector(t))&&void 0!==n?n:null},enumerable:!0,configurable:!0};if(e){const e="symbol"==typeof n?Symbol():"__"+n;r.get=function(){var n,r;return void 0===this[e]&&(this[e]=null!==(r=null===(n=this.renderRoot)||void 0===n?void 0:n.querySelector(t))&&void 0!==r?r:null),this[e]}}return r}})}var Ot;null===(Ot=window.HTMLSlotElement)||void 0===Ot||Ot.prototype.assignedElements;var kt=s(472),Rt=s(68),Pt=s(154),Ut=s.n(Pt),Mt=s(848),jt=s(944),Vt=s(488),Tt=function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var u=t.length-1;u>=0;u--)(i=t[u])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s};const zt=((t,...e)=>{const n=1===t.length?t[0]:e.reduce(((e,n,r)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+t[r+1]),t[0]);return new ut(n,t,ot)})`
3
3
  :host {
4
4
  display: flex;
5
5
  align-items: center;
@@ -72,24 +72,24 @@
72
72
  .main-number.unknown, .main-number-unit.unknown {
73
73
  font-size: unset;
74
74
  }
75
- `;let wt=class extends ot{static get styles(){return[bt]}constructor(){super(),this.decimals=0,this.loading=!1,this.config||(this.config=this.getDefaultConfig()),this.updateComplete.then((()=>{this.resizeObserver=new ResizeObserver((0,yt.debounce)((t=>{const n=t[0].contentRect;this.gaugeSize={width:n.width,height:n.height},this.updateComplete.then((()=>{this.setupGauge()}))}),200)),this.resizeObserver.observe(this._wrapperElem)}))}willUpdate(t){if(t.has("assetAttribute")){const t=this.assetAttribute[1],n=pt.AssetModelUtil.getAttributeDescriptor(t.name,this.asset.type);this.unit=vt.Util.resolveUnits(vt.Util.getAttributeUnits(t,n,this.asset.type)),this.value=null!=t.value?t.value:NaN}}updated(t){var n,e,r,i;t.has("value")&&(null===(n=this.gauge)||void 0===n||n.set(null!=this.value?this.value:NaN)),t.has("attrRef")&&(this.attrRef?this.loadData(this.attrRef):(this.assetAttribute=void 0,this.value=void 0)),t.has("min")&&null!=this.min&&this.gauge&&(this.gauge.setMinValue(this.min),this.gauge.set(null!=this.value?this.value:NaN)),t.has("max")&&null!=this.max&&this.gauge&&(this.gauge.maxValue=this.max,this.gauge.set(null!=this.value?this.value:NaN)),t.has("thresholds")&&this.thresholds&&(this.config.options.staticZones=[],this.thresholds.sort(((t,n)=>t[0]<n[0]?-1:1)).forEach(((t,n)=>{var e,r,i;const o=t[0],u=this.thresholds[n+1]?this.thresholds[n+1][0]:this.max,s={strokeStyle:t[1],min:this.min&&o&&this.min>o?this.min:this.max&&o&&this.max<o?this.max:o,max:this.max&&u&&this.max<u?this.max:this.min&&u&&this.min>u?this.min:u};null===(i=null===(r=null===(e=this.config)||void 0===e?void 0:e.options)||void 0===r?void 0:r.staticZones)||void 0===i||i.push(s)})),this.min&&(null===(r=null===(e=this.config)||void 0===e?void 0:e.options)||void 0===r?void 0:r.staticZones)&&(this.config.options.staticZones[0].min=this.min),this.gauge&&this.gauge.setOptions(null===(i=this.config)||void 0===i?void 0:i.options))}setupGauge(){var t;this.gauge=new dt.Gauge(this._gaugeElem),this.gauge.setOptions(null===(t=this.config)||void 0===t?void 0:t.options),this.gauge.maxValue=this.max?this.max:100,this.gauge.setMinValue(this.min?this.min:0),this.gauge.animationSpeed=1,this.gauge.set(null!=this.value?this.value:NaN),null==this.value&&this.attrRef&&this.loadData(this.attrRef)}getGaugeWidth(t,n=!0){if(!t)return"unset";const e=t.width,r=1.5*(n?t.height-this._detailsElem.clientHeight:t.height);return Math.min(e,r)+"px"}shouldShowLabel(t){return t.width>70&&t.height>100}getLabelSize(t){return t<120?"s":t<240?"m":t<320?"l":"xl"}render(){const t=null!=this.value?+this.value.toFixed(this.decimals):NaN,n=!this.gaugeSize||this.shouldShowLabel(this.gaugeSize),e=n&&this.gaugeSize?this.getLabelSize(this.gaugeSize.width):"unknown",r=this.getGaugeWidth(this.gaugeSize,n);return W`
75
+ `;let It=class extends xt{static get styles(){return[zt]}constructor(){super(),this.decimals=0,this.loading=!1,this.config||(this.config=this.getDefaultConfig()),this.updateComplete.then((()=>{this.resizeObserver=new ResizeObserver((0,jt.debounce)((t=>{const e=t[0].contentRect;this.gaugeSize={width:e.width,height:e.height},this.updateComplete.then((()=>{this.setupGauge()}))}),200)),this.resizeObserver.observe(this._wrapperElem)}))}willUpdate(t){if(t.has("assetAttribute")){const t=this.assetAttribute[1],e=kt.AssetModelUtil.getAttributeDescriptor(t.name,this.asset.type);this.unit=Pt.Util.resolveUnits(Pt.Util.getAttributeUnits(t,e,this.asset.type)),this.value=null!=t.value?t.value:NaN}}updated(t){var e,n,r,i;t.has("value")&&(null===(e=this.gauge)||void 0===e||e.set(null!=this.value?this.value:NaN)),t.has("attrRef")&&(this.attrRef?this.loadData(this.attrRef):(this.assetAttribute=void 0,this.value=void 0)),t.has("min")&&null!=this.min&&this.gauge&&(this.gauge.setMinValue(this.min),this.gauge.set(null!=this.value?this.value:NaN)),t.has("max")&&null!=this.max&&this.gauge&&(this.gauge.maxValue=this.max,this.gauge.set(null!=this.value?this.value:NaN)),t.has("thresholds")&&this.thresholds&&(this.config.options.staticZones=[],this.thresholds.sort(((t,e)=>t[0]<e[0]?-1:1)).forEach(((t,e)=>{var n,r,i;const o=t[0],s=this.thresholds[e+1]?this.thresholds[e+1][0]:this.max,u={strokeStyle:t[1],min:this.min&&o&&this.min>o?this.min:this.max&&o&&this.max<o?this.max:o,max:this.max&&s&&this.max<s?this.max:this.min&&s&&this.min>s?this.min:s};null===(i=null===(r=null===(n=this.config)||void 0===n?void 0:n.options)||void 0===r?void 0:r.staticZones)||void 0===i||i.push(u)})),this.min&&(null===(r=null===(n=this.config)||void 0===n?void 0:n.options)||void 0===r?void 0:r.staticZones)&&(this.config.options.staticZones[0].min=this.min),this.gauge&&this.gauge.setOptions(null===(i=this.config)||void 0===i?void 0:i.options))}setupGauge(){var t;this.gauge=new Rt.Gauge(this._gaugeElem),this.gauge.setOptions(null===(t=this.config)||void 0===t?void 0:t.options),this.gauge.maxValue=this.max?this.max:100,this.gauge.setMinValue(this.min?this.min:0),this.gauge.animationSpeed=1,this.gauge.set(null!=this.value?this.value:NaN),null==this.value&&this.attrRef&&this.loadData(this.attrRef)}getGaugeWidth(t,e=!0){if(!t)return"unset";const n=t.width,r=1.5*(e?t.height-this._detailsElem.clientHeight:t.height);return Math.min(n,r)+"px"}shouldShowLabel(t){return t.width>70&&t.height>100}getLabelSize(t){return t<120?"s":t<240?"m":t<320?"l":"xl"}render(){const t=null!=this.value?+this.value.toFixed(this.decimals):NaN,e=!this.gaugeSize||this.shouldShowLabel(this.gaugeSize),n=e&&this.gaugeSize?this.getLabelSize(this.gaugeSize.width):"unknown",r=this.getGaugeWidth(this.gaugeSize,e);return W`
76
76
  <div style="position: relative; height: 100%; width: 100%;">
77
77
  <div id="chart-wrapper" style="display: ${this.loading?"none":"flex"};">
78
78
  <div id="chart-container" style="flex: 0 0 0; width: ${r};">
79
79
  <canvas id="chart"></canvas>
80
80
  </div>
81
81
  <div id="details-container">
82
- ${n?W`
82
+ ${e?W`
83
83
  <div class="mainvalue-wrapper">
84
- <span class="main-number-icon">${this.asset?(0,mt.getAssetDescriptorIconTemplate)(pt.AssetModelUtil.getAssetDescriptor(this.asset.type)):""}</span>
85
- <span class="main-number ${e}">${t}</span>
86
- <span class="main-number-unit ${e}">${this.unit?this.unit:""}</span>
84
+ <span class="main-number-icon">${this.asset?(0,Vt.getAssetDescriptorIconTemplate)(kt.AssetModelUtil.getAssetDescriptor(this.asset.type)):""}</span>
85
+ <span class="main-number ${n}">${t}</span>
86
+ <span class="main-number-unit ${n}">${this.unit?this.unit:""}</span>
87
87
  </div>
88
88
  `:void 0}
89
89
  </div>
90
90
  </div>
91
91
  </div>
92
92
  ${this.loading?W`
93
- <span>${_t.i18next.t("loading")}</span>
93
+ <span>${Mt.i18next.t("loading")}</span>
94
94
  `:void 0}
95
- `}loadData(t){return function(t,n,e,r){return new(e||(e=Promise))((function(i,o){function u(t){try{a(r.next(t))}catch(t){o(t)}}function s(t){try{a(r.throw(t))}catch(t){o(t)}}function a(t){var n;t.done?i(t.value):(n=t.value,n instanceof e?n:new e((function(t){t(n)}))).then(u,s)}a((r=r.apply(t,n||[])).next())}))}(this,void 0,void 0,(function*(){const n=(yield gt().rest.api.AssetResource.queryAssets({ids:[t.id]})).data,e=[t].map((t=>{const e=n.findIndex((n=>n.id===t.id)),r=e>=0?n[e]:void 0;return r&&r.attributes?[e,r.attributes[t.name]]:void 0})).filter((t=>!!t));this.asset=n[0],this.assetAttribute=e[0]}))}getDefaultConfig(){return{attributeRef:void 0,options:{angle:0,lineWidth:.4,radiusScale:1,pointer:{length:.5,strokeWidth:.035,color:"#000000"},staticZones:[],limitMax:!0,limitMin:!0,colorStart:"#000000",colorStop:"#707070",strokeColor:"#ABCDEF",generateGradient:!1,highDpiSupport:!0}}}};var At;xt([lt({type:Object})],wt.prototype,"attrRef",void 0),xt([lt({type:Object})],wt.prototype,"asset",void 0),xt([lt({type:Object})],wt.prototype,"assetAttribute",void 0),xt([lt()],wt.prototype,"value",void 0),xt([lt()],wt.prototype,"decimals",void 0),xt([lt()],wt.prototype,"unit",void 0),xt([lt()],wt.prototype,"min",void 0),xt([lt()],wt.prototype,"max",void 0),xt([lt()],wt.prototype,"thresholds",void 0),xt([lt()],wt.prototype,"config",void 0),xt([lt({type:String})],wt.prototype,"realm",void 0),xt([ct()],wt.prototype,"loading",void 0),xt([ct()],wt.prototype,"gauge",void 0),xt([ct()],wt.prototype,"gaugeSize",void 0),xt([ht("#chart")],wt.prototype,"_gaugeElem",void 0),xt([ht("#chart-wrapper")],wt.prototype,"_wrapperElem",void 0),xt([ht("#details-container")],wt.prototype,"_detailsElem",void 0),wt=xt([(At="or-gauge",t=>"function"==typeof t?((t,n)=>(customElements.define(t,n),n))(At,t):((t,n)=>{const{kind:e,elements:r}=n;return{kind:e,elements:r,finisher(n){customElements.define(t,n)}}})(At,t))],wt)})(),s})()));
95
+ `}loadData(t){return function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{a(r.next(t))}catch(t){o(t)}}function u(t){try{a(r.throw(t))}catch(t){o(t)}}function a(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,u)}a((r=r.apply(t,e||[])).next())}))}(this,void 0,void 0,(function*(){const e=(yield Ut().rest.api.AssetResource.queryAssets({ids:[t.id]})).data,n=[t].map((t=>{const n=e.findIndex((e=>e.id===t.id)),r=n>=0?e[n]:void 0;return r&&r.attributes?[n,r.attributes[t.name]]:void 0})).filter((t=>!!t));this.asset=e[0],this.assetAttribute=n[0]}))}getDefaultConfig(){return{attributeRef:void 0,options:{angle:0,lineWidth:.4,radiusScale:1,pointer:{length:.5,strokeWidth:.035,color:"#000000"},staticZones:[],limitMax:!0,limitMin:!0,colorStart:"#000000",colorStop:"#707070",strokeColor:"#ABCDEF",generateGradient:!1,highDpiSupport:!0}}}};var Wt;Tt([St({type:Object})],It.prototype,"attrRef",void 0),Tt([St({type:Object})],It.prototype,"asset",void 0),Tt([St({type:Object})],It.prototype,"assetAttribute",void 0),Tt([St()],It.prototype,"value",void 0),Tt([St()],It.prototype,"decimals",void 0),Tt([St()],It.prototype,"unit",void 0),Tt([St()],It.prototype,"min",void 0),Tt([St()],It.prototype,"max",void 0),Tt([St()],It.prototype,"thresholds",void 0),Tt([St()],It.prototype,"config",void 0),Tt([St({type:String})],It.prototype,"realm",void 0),Tt([Et()],It.prototype,"loading",void 0),Tt([Et()],It.prototype,"gauge",void 0),Tt([Et()],It.prototype,"gaugeSize",void 0),Tt([Ct("#chart")],It.prototype,"_gaugeElem",void 0),Tt([Ct("#chart-wrapper")],It.prototype,"_wrapperElem",void 0),Tt([Ct("#details-container")],It.prototype,"_detailsElem",void 0),It=Tt([(Wt="or-gauge",t=>"function"==typeof t?((t,e)=>(customElements.define(t,e),e))(Wt,t):((t,e)=>{const{kind:n,elements:r}=e;return{kind:n,elements:r,finisher(e){customElements.define(t,e)}}})(Wt,t))],It)})(),u})()));