diff --git a/build/bundle.js b/build/bundle.js index 04524ec..2a510b9 100644 --- a/build/bundle.js +++ b/build/bundle.js @@ -1,2 +1,2 @@ /*! For license information please see bundle.js.LICENSE.txt */ -var MinervaStory;(()=>{var __webpack_modules__={6086:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>Eoe});var r={};n.r(r),n.d(r,{JsonPatchError:()=>ti,_areEquals:()=>hi,applyOperation:()=>ai,applyPatch:()=>si,applyReducer:()=>li,deepClone:()=>ni,getValueByPointer:()=>oi,validate:()=>ui,validator:()=>ci});var i={};n.r(i),n.d(i,{compare:()=>bi,generate:()=>vi,observe:()=>gi,unobserve:()=>mi});var o={};n.r(o),n.d(o,{aggregate:()=>zf,bin:()=>Rf,collect:()=>Hf,compare:()=>Uf,countpattern:()=>Wf,cross:()=>Vf,density:()=>Yf,dotbin:()=>ep,expression:()=>tp,extent:()=>rp,facet:()=>op,field:()=>ap,filter:()=>lp,flatten:()=>cp,fold:()=>up,formula:()=>hp,generate:()=>dp,impute:()=>mp,joinaggregate:()=>gp,kde:()=>vp,key:()=>yp,load:()=>xp,lookup:()=>_p,multiextent:()=>kp,multivalues:()=>Cp,params:()=>Dp,pivot:()=>Ap,prefacet:()=>Tp,project:()=>Mp,proxy:()=>Op,quantile:()=>Fp,relay:()=>Pp,sample:()=>Np,sequence:()=>Ip,sieve:()=>Bp,subflow:()=>ip,timeunit:()=>jp,tupleindex:()=>zp,values:()=>Rp,window:()=>Wp});var a={};n.r(a),n.d(a,{interpolate:()=>cv,interpolateArray:()=>tv,interpolateBasis:()=>Ug,interpolateBasisClosed:()=>qg,interpolateCubehelix:()=>hw,interpolateCubehelixLong:()=>dw,interpolateDate:()=>rv,interpolateDiscrete:()=>vx,interpolateHcl:()=>Zx,interpolateHclLong:()=>Kx,interpolateHsl:()=>Tx,interpolateHslLong:()=>Mx,interpolateHue:()=>yx,interpolateLab:()=>Yx,interpolateNumber:()=>iv,interpolateNumberArray:()=>Qg,interpolateObject:()=>ov,interpolateRgb:()=>Yg,interpolateRgbBasis:()=>Zg,interpolateRgbBasisClosed:()=>Kg,interpolateRound:()=>uv,interpolateString:()=>lv,interpolateTransformCss:()=>Ex,interpolateTransformSvg:()=>Cx,interpolateZoom:()=>Dx,piecewise:()=>fx,quantize:()=>fw});var s={};n.r(s),n.d(s,{bound:()=>AD,identifier:()=>OD,mark:()=>FD,overlap:()=>PD,render:()=>RD,viewlayout:()=>sA});var l={};n.r(l),n.d(l,{axisticks:()=>EA,datajoin:()=>CA,encode:()=>DA,legendentries:()=>AA,linkpath:()=>PA,pie:()=>LA,scale:()=>$A,sortitems:()=>WA,stack:()=>JA});var c={};n.r(c),n.d(c,{contour:()=>CN,geojson:()=>AN,geopath:()=>TN,geopoint:()=>MN,geoshape:()=>ON,graticule:()=>FN,heatmap:()=>PN,isocontour:()=>mN,kde2d:()=>_N,projection:()=>IN});var u={};n.r(u),n.d(u,{force:()=>aI});var h={};n.r(h),n.d(h,{nest:()=>aB,pack:()=>dB,partition:()=>pB,stratify:()=>mB,tree:()=>yB,treelinks:()=>bB,treemap:()=>_B});var d={};n.r(d),n.d(d,{label:()=>qB});var f={};n.r(f),n.d(f,{loess:()=>VB,regression:()=>XB});var p={};n.r(p),n.d(p,{voronoi:()=>vj});var m={};n.r(m),n.d(m,{wordcloud:()=>Oj});var g={};n.r(g),n.d(g,{crossfilter:()=>Uj,resolvefilter:()=>qj});var v={};n.r(v),n.d(v,{Bounds:()=>Ck,CanvasHandler:()=>tS,CanvasRenderer:()=>aS,DATE:()=>js,DAY:()=>Ls,DAYOFYEAR:()=>zs,Dataflow:()=>ld,Debug:()=>Hi,Error:()=>zi,EventStream:()=>Xh,Gradient:()=>F_,GroupItem:()=>Dk,HOURS:()=>Rs,Handler:()=>jC,Info:()=>$i,Item:()=>Sk,MILLISECONDS:()=>Us,MINUTES:()=>$s,MONTH:()=>Is,Marks:()=>wC,MultiPulse:()=>id,None:()=>Li,Operator:()=>Wh,Parameters:()=>Hh,Pulse:()=>ed,QUARTER:()=>Ns,RenderType:()=>GS,Renderer:()=>zC,ResourceLoader:()=>Ak,SECONDS:()=>Hs,SVGHandler:()=>lS,SVGRenderer:()=>FS,SVGStringRenderer:()=>VS,Scenegraph:()=>TC,TIME_UNITS:()=>qs,Transform:()=>ud,View:()=>OU,WEEK:()=>Bs,Warn:()=>Ri,YEAR:()=>Ps,accessor:()=>_i,accessorFields:()=>Ei,accessorName:()=>ki,array:()=>go,ascending:()=>xo,bandwidthNRD:()=>Cd,bin:()=>Sd,bootstrapCI:()=>Td,boundClip:()=>tD,boundContext:()=>Yk,boundItem:()=>_C,boundMark:()=>EC,boundStroke:()=>Ok,changeset:()=>Rh,clampRange:()=>vo,codegenExpression:()=>ez,compare:()=>bo,constant:()=>Eo,cumulativeLogNormal:()=>qd,cumulativeNormal:()=>Ld,cumulativeUniform:()=>Jd,dayofyear:()=>Zs,debounce:()=>Co,defaultLocale:()=>Ku,definition:()=>dd,densityLogNormal:()=>Ud,densityNormal:()=>jd,densityUniform:()=>Yd,domChild:()=>PC,domClear:()=>NC,domCreate:()=>OC,domFind:()=>FC,dotbin:()=>Md,error:()=>Ai,expressionFunction:()=>vH,extend:()=>So,extent:()=>Do,extentIndex:()=>Ao,falsy:()=>Bi,fastmap:()=>Fo,field:()=>Mi,flush:()=>Po,font:()=>fC,fontFamily:()=>dC,fontSize:()=>sC,format:()=>_h,formatLocale:()=>qu,formats:()=>kh,hasOwnProperty:()=>Mo,id:()=>Oi,identity:()=>Fi,inferType:()=>mh,inferTypes:()=>gh,ingest:()=>Nh,inherits:()=>No,inrange:()=>Io,interpolate:()=>r_,interpolateColors:()=>e_,interpolateRange:()=>Qw,intersect:()=>JS,intersectBoxLine:()=>aE,intersectPath:()=>nE,intersectPoint:()=>rE,intersectRule:()=>oE,isArray:()=>qi,isBoolean:()=>Bo,isDate:()=>jo,isFunction:()=>yo,isIterable:()=>Lo,isNumber:()=>zo,isObject:()=>Wi,isRegExp:()=>Ro,isString:()=>$o,isTuple:()=>Oh,key:()=>Ho,lerp:()=>Uo,lineHeight:()=>lC,loader:()=>Sh,locale:()=>Zu,logger:()=>Ui,lruCache:()=>qo,markup:()=>CS,merge:()=>Wo,mergeConfig:()=>Gi,multiLineOffset:()=>uC,one:()=>Ni,pad:()=>Go,panLinear:()=>io,panLog:()=>oo,panPow:()=>ao,panSymlog:()=>so,parse:()=>yG,parseExpression:()=>ZL,parseSelector:()=>RU,pathCurves:()=>N_,pathEqual:()=>rD,pathParse:()=>j_,pathRectangle:()=>sk,pathRender:()=>X_,pathSymbols:()=>K_,pathTrail:()=>lk,peek:()=>Ji,point:()=>BC,projection:()=>kP,quantileLogNormal:()=>Wd,quantileNormal:()=>zd,quantileUniform:()=>Zd,quantiles:()=>kd,quantizeInterpolator:()=>t_,quarter:()=>po,quartiles:()=>Ed,random:()=>Dd,randomInteger:()=>Fd,randomKDE:()=>$d,randomLCG:()=>Od,randomLogNormal:()=>Vd,randomMixture:()=>Gd,randomNormal:()=>Rd,randomUniform:()=>Kd,read:()=>Ch,regressionExp:()=>af,regressionLinear:()=>rf,regressionLoess:()=>hf,regressionLog:()=>of,regressionPoly:()=>cf,regressionPow:()=>sf,regressionQuad:()=>lf,renderModule:()=>YS,repeat:()=>Vo,resetDefaultLocale:()=>Qu,resetSVGClipId:()=>kk,resetSVGDefIds:()=>iD,responseType:()=>Eh,runtimeContext:()=>DH,sampleCurve:()=>mf,sampleLogNormal:()=>Hd,sampleNormal:()=>Bd,sampleUniform:()=>Xd,scale:()=>Uw,sceneEqual:()=>nD,sceneFromJSON:()=>DC,scenePickVisit:()=>vE,sceneToJSON:()=>SC,sceneVisit:()=>gE,sceneZOrder:()=>mE,scheme:()=>s_,serializeXML:()=>SS,setRandom:()=>Ad,span:()=>Xo,splitAccessPath:()=>Ti,stringValue:()=>Yo,textMetrics:()=>tC,timeBin:()=>Bl,timeFloor:()=>fl,timeFormatLocale:()=>Yu,timeInterval:()=>bl,timeOffset:()=>_l,timeSequence:()=>Cl,timeUnitSpecifier:()=>Xs,timeUnits:()=>Vs,toBoolean:()=>Jo,toDate:()=>Ko,toNumber:()=>Zi,toSet:()=>ea,toString:()=>Qo,transform:()=>fd,transforms:()=>hd,truncate:()=>ta,truthy:()=>Ii,tupleid:()=>Fh,typeParsers:()=>dh,utcFloor:()=>gl,utcInterval:()=>xl,utcOffset:()=>kl,utcSequence:()=>Sl,utcdayofyear:()=>rl,utcquarter:()=>mo,utcweek:()=>il,version:()=>bG,visitArray:()=>na,week:()=>Ks,writeConfig:()=>Xi,zero:()=>Pi,zoomLinear:()=>co,zoomLog:()=>uo,zoomPow:()=>ho,zoomSymlog:()=>fo});var y={};n.r(y),n.d(y,{accessPathDepth:()=>HX,accessPathWithDatum:()=>BX,compile:()=>L9,contains:()=>gX,deepEqual:()=>cX,deleteNestedProperty:()=>NX,duplicate:()=>uX,entries:()=>MX,every:()=>yX,fieldIntersection:()=>SX,flatAccessWithDatum:()=>jX,getFirstDefined:()=>UX,hasIntersection:()=>EX,hash:()=>pX,internalField:()=>GX,isBoolean:()=>OX,isEmpty:()=>DX,isEqual:()=>_X,isInternalField:()=>XX,isNullOrFalse:()=>mX,isNumeric:()=>JX,keys:()=>AX,logicalExpr:()=>PX,mergeDeep:()=>bX,normalize:()=>y3,normalizeAngle:()=>YX,omit:()=>dX,pick:()=>hX,prefixGenerator:()=>CX,removePathFromField:()=>$X,replaceAll:()=>RX,replacePathInField:()=>zX,resetIdCounter:()=>VX,setEqual:()=>kX,some:()=>vX,stringify:()=>fX,titleCase:()=>IX,unique:()=>wX,uniqueId:()=>WX,vals:()=>TX,varName:()=>FX,version:()=>z9});var b={};n.r(b),n.d(b,{dark:()=>H9,excel:()=>q9,fivethirtyeight:()=>Y9,ggplot2:()=>Z9,googlecharts:()=>yee,latimes:()=>ree,quartz:()=>aee,urbaninstitute:()=>pee,version:()=>bee,vox:()=>lee});class x{constructor(e){this.subject=e,this.eventListeners=[],this.events={testEvent:"testEvent",osdClickEvent:"osdClickEvent"}}bind(e,t){for(const n of e.split(" ")){this.eventListeners.push({eventName:n,eventFunction:t});const e=e=>t(e.detail,e);this.subject.addEventListener(n,e,!1)}}getListeners(){return this.eventListeners}trigger(e,t){this.subject.dispatchEvent(new CustomEvent(e,{detail:t}))}}const w=function(e){return e.replace(/^\s+|\s+$/g,"")},_=function(e){e=e.map((function(e){return e["\ufeffString"]&&(e.String=e["\ufeffString"]),e}));const t=new Map;e.filter((e=>e.Alias)).forEach((function(e){e.Alias.split(",").forEach((function(n){t.set(w(n),w(e.String))}))}));const n=new Map;return e.filter((e=>e.Link)).forEach((function(e){if(e.Alias){const t=e.Alias.split(",").map(w),r=t.reduce(((n,r)=>{const i=r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),o=RegExp("^"+i+"$","gi");if(w(e.String).match(o))return n.concat([r]);for(var a in t){var s=t[a];if(s.match(o)&&s!=r&&!n.includes(s))return n.concat([r])}return n}),[]);t.filter((e=>!r.includes(e))).forEach((function(t){n.set(t,w(e.Link))}))}n.set(w(e.String),w(e.Link))})),[n,t]};var k=n(8738),E=n.n(k);const C=function(e,t,n){var r;return{copy:function(i){!function(e){(r=t.createElement("textArea")).value=e,t.body.appendChild(r)}(i),function(){var i,o;n.userAgent.match(/ipad|iphone/i)?((i=t.createRange()).selectNodeContents(r),(o=e.getSelection()).removeAllRanges(),o.addRange(i),r.setSelectionRange(0,999999)):r.select()}(),t.execCommand("copy"),t.body.removeChild(r)}}}(window,document,navigator);function S(e,t){return et?1:e>=t?0:NaN}var D=function(e){var t;return 1===e.length&&(t=e,e=function(e,n){return S(t(e),n)}),{left:function(t,n,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r>>1;e(t[o],n)<0?r=o+1:i=o}return r},right:function(t,n,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r>>1;e(t[o],n)>0?i=o:r=o+1}return r}}}(S);D.right,D.left;var A=Array.prototype;function T(e){for(var t,n,r,i=e.length,o=-1,a=0;++o=0;)for(t=(r=e[i]).length;--t>=0;)n[--a]=r[t];return n}function M(){}function O(e){return null==e?M:function(){return this.querySelector(e)}}function F(){return[]}function P(e){return null==e?F:function(){return this.querySelectorAll(e)}}function N(e){return function(){return this.matches(e)}}function I(e){return new Array(e.length)}function B(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}function j(e,t,n,r,i,o){for(var a,s=0,l=t.length,c=o.length;st?1:e>=t?0:NaN}A.slice,A.map,Math.sqrt(50),Math.sqrt(10),Math.sqrt(2),Array.prototype.slice,B.prototype={constructor:B,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};var R="http://www.w3.org/1999/xhtml";const H={svg:"http://www.w3.org/2000/svg",xhtml:R,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function U(e){var t=e+="",n=t.indexOf(":");return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),H.hasOwnProperty(t)?{space:H[t],local:e}:e}function q(e){return function(){this.removeAttribute(e)}}function W(e){return function(){this.removeAttributeNS(e.space,e.local)}}function V(e,t){return function(){this.setAttribute(e,t)}}function G(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function X(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}}function Y(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function J(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function Z(e){return function(){this.style.removeProperty(e)}}function K(e,t,n){return function(){this.style.setProperty(e,t,n)}}function Q(e,t,n){return function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function ee(e,t){return e.style.getPropertyValue(t)||J(e).getComputedStyle(e,null).getPropertyValue(t)}function te(e){return function(){delete this[e]}}function ne(e,t){return function(){this[e]=t}}function re(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}function ie(e){return e.trim().split(/^|\s+/)}function oe(e){return e.classList||new ae(e)}function ae(e){this._node=e,this._names=ie(e.getAttribute("class")||"")}function se(e,t){for(var n=oe(e),r=-1,i=t.length;++r=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};var De={},Ae=null;function Te(e,t,n){return e=Me(e,t,n),function(t){var n=t.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||e.call(this,t)}}function Me(e,t,n){return function(r){var i=Ae;Ae=r;try{e.call(this,this.__data__,t,n)}finally{Ae=i}}}function Oe(e){return e.trim().split(/^|\s+/).map((function(e){var t="",n=e.indexOf(".");return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}}))}function Fe(e){return function(){var t=this.__on;if(t){for(var n,r=0,i=-1,o=t.length;r=w&&(w=x+1);!(b=v[w])&&++w=0;)(r=i[o])&&(a&&4^r.compareDocumentPosition(a)&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=z);for(var n=this._groups,r=n.length,i=new Array(r),o=0;o1?this.each((null==t?Z:"function"==typeof t?Q:K)(e,t,null==n?"":n)):ee(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?te:"function"==typeof t?re:ne)(e,t)):this.node()[e]},classed:function(e,t){var n=ie(e+"");if(arguments.length<2){for(var r=oe(this.node()),i=-1,o=n.length;++i=0&&(n=e.slice(r+1),e=e.slice(0,r)),e&&!t.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:n}}))}function We(e,t){for(var n,r=0,i=e.length;r0)for(var n,r,i=new Array(n),o=0;o=0&&t._call.call(null,e),t=t._next;--Je}()}finally{Je=0,function(){for(var e,t,n=Xe,r=1/0;n;)n._call?(r>n._time&&(r=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:Xe=t);Ye=e,ut(r)}(),et=0}}function ct(){var e=nt.now(),t=e-Qe;t>1e3&&(tt-=t,Qe=e)}function ut(e){Je||(Ze&&(Ze=clearTimeout(Ze)),e-et>24?(e<1/0&&(Ze=setTimeout(lt,e-nt.now()-tt)),Ke&&(Ke=clearInterval(Ke))):(Ke||(Qe=nt.now(),Ke=setInterval(ct,1e3)),Je=1,rt(lt)))}function ht(e,t,n){var r=new at;return t=null==t?0:+t,r.restart((function(n){r.stop(),e(n+t)}),t,n),r}at.prototype=st.prototype={constructor:at,restart:function(e,t,n){if("function"!=typeof e)throw new TypeError("callback is not a function");n=(null==n?it():+n)+(null==t?0:+t),this._next||Ye===this||(Ye?Ye._next=this:Xe=this,Ye=this),this._call=e,this._time=n,ut()},stop:function(){this._call&&(this._call=null,this._time=1/0,ut())}};var dt=Ge("start","end","cancel","interrupt"),ft=[];function pt(e,t,n,r,i,o){var a=e.__transition;if(a){if(n in a)return}else e.__transition={};!function(e,t,n){var r,i=e.__transition;function o(l){var c,u,h,d;if(1!==n.state)return s();for(c in i)if((d=i[c]).name===n.name){if(3===d.state)return ht(o);4===d.state?(d.state=6,d.timer.stop(),d.on.call("interrupt",e,e.__data__,d.index,d.group),delete i[c]):+c0)throw new Error("too late; already scheduled");return n}function gt(e,t){var n=vt(e,t);if(n.state>3)throw new Error("too late; already running");return n}function vt(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function yt(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var bt,xt,wt,_t,kt=180/Math.PI,Et={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Ct(e,t,n,r,i,o){var a,s,l;return(a=Math.sqrt(e*e+t*t))&&(e/=a,t/=a),(l=e*n+t*r)&&(n-=e*l,r-=t*l),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,l/=s),e*r180?t+=360:t-e>180&&(e+=360),o.push({i:n.push(i(n)+"rotate(",null,r)-2,x:yt(e,t)})):t&&n.push(i(n)+"rotate("+t+r)}(o.rotate,a.rotate,s,l),function(e,t,n,o){e!==t?o.push({i:n.push(i(n)+"skewX(",null,r)-2,x:yt(e,t)}):t&&n.push(i(n)+"skewX("+t+r)}(o.skewX,a.skewX,s,l),function(e,t,n,r,o,a){if(e!==n||t!==r){var s=o.push(i(o)+"scale(",null,",",null,")");a.push({i:s-4,x:yt(e,n)},{i:s-2,x:yt(t,r)})}else 1===n&&1===r||o.push(i(o)+"scale("+n+","+r+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,s,l),o=a=null,function(e){for(var t,n=-1,r=l.length;++n>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Kt(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Kt(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=$t.exec(e))?new tn(t[1],t[2],t[3],1):(t=Ht.exec(e))?new tn(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Ut.exec(e))?Kt(t[1],t[2],t[3],t[4]):(t=qt.exec(e))?Kt(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Wt.exec(e))?an(t[1],t[2]/100,t[3]/100,1):(t=Vt.exec(e))?an(t[1],t[2]/100,t[3]/100,t[4]):Gt.hasOwnProperty(e)?Zt(Gt[e]):"transparent"===e?new tn(NaN,NaN,NaN,0):null}function Zt(e){return new tn(e>>16&255,e>>8&255,255&e,1)}function Kt(e,t,n,r){return r<=0&&(e=t=n=NaN),new tn(e,t,n,r)}function Qt(e){return e instanceof Nt||(e=Jt(e)),e?new tn((e=e.rgb()).r,e.g,e.b,e.opacity):new tn}function en(e,t,n,r){return 1===arguments.length?Qt(e):new tn(e,t,n,null==r?1:r)}function tn(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function nn(){return"#"+on(this.r)+on(this.g)+on(this.b)}function rn(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}function on(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function an(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new cn(e,t,n,r)}function sn(e){if(e instanceof cn)return new cn(e.h,e.s,e.l,e.opacity);if(e instanceof Nt||(e=Jt(e)),!e)return new cn;if(e instanceof cn)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,l=(o+i)/2;return s?(a=t===o?(n-r)/s+6*(n0&&l<1?0:a,new cn(a,s,l,e.opacity)}function ln(e,t,n,r){return 1===arguments.length?sn(e):new cn(e,t,n,null==r?1:r)}function cn(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function un(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}function hn(e,t,n,r,i){var o=e*e,a=o*e;return((1-3*e+3*o-a)*t+(4-6*o+3*a)*n+(1+3*e+3*o-3*a)*r+a*i)/6}function dn(e){return function(){return e}}function fn(e,t){return function(n){return e+n*t}}function pn(e,t){var n=t-e;return n?fn(e,n):dn(isNaN(e)?t:e)}Ft(Nt,Jt,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:Xt,formatHex:Xt,formatHsl:function(){return sn(this).formatHsl()},formatRgb:Yt,toString:Yt}),Ft(tn,en,Pt(Nt,{brighter:function(e){return e=null==e?Bt:Math.pow(Bt,e),new tn(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?It:Math.pow(It,e),new tn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:nn,formatHex:nn,formatRgb:rn,toString:rn})),Ft(cn,ln,Pt(Nt,{brighter:function(e){return e=null==e?Bt:Math.pow(Bt,e),new cn(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?It:Math.pow(It,e),new cn(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new tn(un(e>=240?e-240:e+120,i,r),un(e,i,r),un(e<120?e+240:e-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}));const mn=function e(t){var n=function(e){return 1==(e=+e)?pn:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):dn(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=en(e)).r,(t=en(t)).r),i=n(e.g,t.g),o=n(e.b,t.b),a=pn(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=o(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);function gn(e){return function(t){var n,r,i=t.length,o=new Array(i),a=new Array(i),s=new Array(i);for(n=0;n=1?(n=1,t-1):Math.floor(n*t),i=e[r],o=e[r+1],a=r>0?e[r-1]:2*i-o,s=ro&&(i=t.slice(o,i),s[a]?s[a]+=i:s[++a]=i),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,l.push({i:a,x:yt(n,r)})),o=yn.lastIndex;return o=0&&(e=e.slice(0,t)),!e||"start"===e}))}(t)?mt:gt;return function(){var a=o(this,e),s=a.on;s!==r&&(i=(r=s).copy()).on(t,n),a.on=i}}var jn=Re.prototype.constructor;function Ln(e){return function(){this.style.removeProperty(e)}}function zn(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function Rn(e,t,n){var r,i;function o(){var o=t.apply(this,arguments);return o!==i&&(r=(i=o)&&zn(e,o,n)),r}return o._value=t,o}function $n(e){return function(t){this.textContent=e.call(this,t)}}function Hn(e){var t,n;function r(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&$n(r)),t}return r._value=e,r}var Un=0;function qn(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function Wn(){return++Un}var Vn=Re.prototype;qn.prototype=function(e){return Re().transition(e)}.prototype={constructor:qn,select:function(e){var t=this._name,n=this._id;"function"!=typeof e&&(e=O(e));for(var r=this._groups,i=r.length,o=new Array(i),a=0;a2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?"interrupt":"cancel",e,e.__data__,n.index,n.group),delete o[i]):a=!1;a&&delete e.__transition}}(this,e)}))},Re.prototype.transition=function(e){var t,n;e instanceof qn?(t=e._id,e=e._name):(t=Wn(),(n=Gn).time=it(),e=null==e?null:e+"");for(var r=this._groups,i=r.length,o=0;o1);return e+n*o*Math.sqrt(-2*Math.log(i)/i)}}return n.source=e,n}(tr),rr=(function e(t){function n(){var e=nr.source(t).apply(this,arguments);return function(){return Math.exp(e())}}return n.source=e,n}(tr),function e(t){function n(e){return function(){for(var n=0,r=0;r0)){if(o/=d,d<0){if(o0){if(o>h)return;o>u&&(u=o)}if(o=r-l,d||!(o<0)){if(o/=d,d<0){if(o>h)return;o>u&&(u=o)}else if(d>0){if(o0)){if(o/=f,f<0){if(o0){if(o>h)return;o>u&&(u=o)}if(o=i-c,f||!(o<0)){if(o/=f,f<0){if(o>h)return;o>u&&(u=o)}else if(f>0){if(o0||h<1)||(u>0&&(e[0]=[l+u*d,c+u*f]),h<1&&(e[1]=[l+h*d,c+h*f]),!0)}}}}}function gr(e,t,n,r,i){var o=e[1];if(o)return!0;var a,s,l=e[0],c=e.left,u=e.right,h=c[0],d=c[1],f=u[0],p=u[1],m=(h+f)/2,g=(d+p)/2;if(p===d){if(m=r)return;if(h>f){if(l){if(l[1]>=i)return}else l=[m,n];o=[m,i]}else{if(l){if(l[1]1)if(h>f){if(l){if(l[1]>=i)return}else l=[(n-s)/a,n];o=[(i-s)/a,i]}else{if(l){if(l[1]=r)return}else l=[t,a*t+s];o=[r,a*r+s]}else{if(l){if(l[0]=-Lr)){var f=l*l+c*c,p=u*u+h*h,m=(h*f-c*p)/d,g=(l*p-u*f)/d,v=wr.pop()||new _r;v.arc=e,v.site=i,v.x=m+a,v.y=(v.cy=g+s)+Math.sqrt(m*m+g*g),e.circle=v;for(var y=null,b=Ir._;b;)if(v.yjr)s=s.L;else{if(!((i=o-Fr(s,a))>jr)){r>-jr?(t=s.P,n=s):i>-jr?(t=s,n=s.N):t=n=s;break}if(!s.R){t=s;break}s=s.R}!function(e){Nr[e.index]={site:e,halfedges:[]}}(e);var l=Dr(e);if(Pr.insert(t,l),t||n){if(t===n)return Er(t),n=Dr(t.site),Pr.insert(l,n),l.edge=n.edge=dr(t.site,l.site),kr(t),void kr(n);if(n){Er(t),Er(n);var c=t.site,u=c[0],h=c[1],d=e[0]-u,f=e[1]-h,p=n.site,m=p[0]-u,g=p[1]-h,v=2*(d*g-f*m),y=d*d+f*f,b=m*m+g*g,x=[(g*y-f*b)/v+u,(d*b-m*y)/v+h];pr(n.edge,c,p,x),l.edge=dr(c,e,null,x),n.edge=dr(e,p,null,x),kr(t),kr(n)}else l.edge=dr(t.site,l.site)}}function Or(e,t){var n=e.site,r=n[0],i=n[1],o=i-t;if(!o)return r;var a=e.P;if(!a)return-1/0;var s=(n=a.site)[0],l=n[1],c=l-t;if(!c)return s;var u=s-r,h=1/o-1/c,d=u/c;return h?(-d+Math.sqrt(d*d-2*h*(u*u/(-2*c)-l+c/2+i-o/2)))/h+r:(r+s)/2}function Fr(e,t){var n=e.N;if(n)return Or(n,t);var r=e.site;return r[1]===t?r[0]:1/0}var Pr,Nr,Ir,Br,jr=1e-6,Lr=1e-12;function zr(e,t,n){return(e[0]-n[0])*(t[1]-e[1])-(e[0]-t[0])*(n[1]-e[1])}function Rr(e,t){return t[1]-e[1]||t[0]-e[0]}function $r(e,t){var n,r,i,o=e.sort(Rr).pop();for(Br=[],Nr=new Array(e.length),Pr=new hr,Ir=new hr;;)if(i=xr,o&&(!i||o[1]jr||Math.abs(i[0][1]-i[1][1])>jr)||delete Br[o]}(a,s,l,c),function(e,t,n,r){var i,o,a,s,l,c,u,h,d,f,p,m,g=Nr.length,v=!0;for(i=0;ijr||Math.abs(m-d)>jr)&&(l.splice(s,0,Br.push(fr(a,f,Math.abs(p-e)jr?[e,Math.abs(h-e)jr?[Math.abs(d-r)jr?[n,Math.abs(h-n)jr?[Math.abs(d-t)=s)return null;var l=e-i.site[0],c=t-i.site[1],u=l*l+c*c;do{i=o.cells[r=a],a=null,i.halfedges.forEach((function(n){var r=o.edges[n],s=r.left;if(s!==i.site&&s||(s=r.right)){var l=e-s[0],c=t-s[1],h=l*l+c*c;h=48&&t<=57))return!1;n++}return!0}function Jr(e){return-1===e.indexOf("/")&&-1===e.indexOf("~")?e:e.replace(/~/g,"~0").replace(/\//g,"~1")}function Zr(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function Kr(e){if(void 0===e)return!0;if(e)if(Array.isArray(e)){for(var t=0,n=e.length;t0&&"constructor"==s[c-1]))throw new TypeError("JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if(n&&void 0===h&&(void 0===l[d]?h=s.slice(0,c).join("/"):c==u-1&&(h=t.path),void 0!==h&&f(t,0,e,h)),c++,Array.isArray(l)){if("-"===d)d=l.length;else{if(n&&!Yr(d))throw new ti("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",o,t,e);Yr(d)&&(d=~~d)}if(c>=u){if(n&&"add"===t.op&&d>l.length)throw new ti("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",o,t,e);if(!1===(a=ii[t.op].call(t,l,d,e)).test)throw new ti("Test operation failed","TEST_OPERATION_FAILED",o,t,e);return a}}else if(c>=u){if(!1===(a=ri[t.op].call(t,l,d,e)).test)throw new ti("Test operation failed","TEST_OPERATION_FAILED",o,t,e);return a}if(l=l[d],n&&c0)throw new ti('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",t,e,n);if(("move"===e.op||"copy"===e.op)&&"string"!=typeof e.from)throw new ti("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",t,e,n);if(("add"===e.op||"replace"===e.op||"test"===e.op)&&void 0===e.value)throw new ti("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",t,e,n);if(("add"===e.op||"replace"===e.op||"test"===e.op)&&Kr(e.value))throw new ti("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",t,e,n);if(n)if("add"==e.op){var i=e.path.split("/").length,o=r.split("/").length;if(i!==o+1&&i!==o)throw new ti("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",t,e,n)}else if("replace"===e.op||"remove"===e.op||"_get"===e.op){if(e.path!==r)throw new ti("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",t,e,n)}else if("move"===e.op||"copy"===e.op){var a=ui([{op:"_get",path:e.from,value:void 0}],n);if(a&&"OPERATION_PATH_UNRESOLVABLE"===a.name)throw new ti("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",t,e,n)}}function ui(e,t,n){try{if(!Array.isArray(e))throw new ti("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(t)si(Xr(t),Xr(e),n||!0);else{n=n||ci;for(var r=0;r0&&(e.patches=[],e.callback&&e.callback(r)),r}function yi(e,t,n,r,i){if(t!==e){"function"==typeof t.toJSON&&(t=t.toJSON());for(var o=Gr(t),a=Gr(e),s=!1,l=a.length-1;l>=0;l--){var c=e[h=a[l]];if(!Vr(t,h)||void 0===t[h]&&void 0!==c&&!1===Array.isArray(t))Array.isArray(e)===Array.isArray(t)?(i&&n.push({op:"test",path:r+"/"+Jr(h),value:Xr(c)}),n.push({op:"remove",path:r+"/"+Jr(h)}),s=!0):(i&&n.push({op:"test",path:r,value:e}),n.push({op:"replace",path:r,value:t}));else{var u=t[h];"object"==typeof c&&null!=c&&"object"==typeof u&&null!=u&&Array.isArray(c)===Array.isArray(u)?yi(c,u,n,r+"/"+Jr(h),i):c!==u&&(i&&n.push({op:"test",path:r+"/"+Jr(h),value:Xr(c)}),n.push({op:"replace",path:r+"/"+Jr(h),value:Xr(u)}))}}if(s||o.length!=a.length)for(l=0;lfunction(t){return t[e]},Di=e=>{const t=e.length;return function(n){for(let r=0;rr&&c(),s=r=i+1):"]"===o&&(s||Ai("Access path missing open bracket: "+e),s>0&&c(),s=0,r=i+1):i>r?c():r=i+1}return s&&Ai("Access path missing closing bracket: "+e),a&&Ai("Access path missing closing quote: "+e),i>r&&(i++,c()),t}function Mi(e,t,n){const r=Ti(e);return e=1===r.length?r[0]:e,_i((n&&n.get||Ci)(r),[e],t||e)}const Oi=Mi("id"),Fi=_i((e=>e),[],"identity"),Pi=_i((()=>0),[],"zero"),Ni=_i((()=>1),[],"one"),Ii=_i((()=>!0),[],"true"),Bi=_i((()=>!1),[],"false");function ji(e,t,n){const r=[t].concat([].slice.call(n));console[e].apply(console,r)}const Li=0,zi=1,Ri=2,$i=3,Hi=4;function Ui(e,t,n=ji){let r=e||Li;return{level(e){return arguments.length?(r=+e,this):r},error(){return r>=zi&&n(t||"error","ERROR",arguments),this},warn(){return r>=Ri&&n(t||"warn","WARN",arguments),this},info(){return r>=$i&&n(t||"log","INFO",arguments),this},debug(){return r>=Hi&&n(t||"log","DEBUG",arguments),this}}}var qi=Array.isArray;function Wi(e){return e===Object(e)}const Vi=e=>"__proto__"!==e;function Gi(...e){return e.reduce(((e,t)=>{for(const n in t)if("signals"===n)e.signals=Yi(e.signals,t.signals);else{const r="legend"===n?{layout:1}:"style"===n||null;Xi(e,n,t[n],r)}return e}),{})}function Xi(e,t,n,r){if(!Vi(t))return;let i,o;if(Wi(n)&&!qi(n))for(i in o=Wi(e[t])?e[t]:e[t]={},n)r&&(!0===r||r[i])?Xi(o,i,n[i]):Vi(i)&&(o[i]=n[i]);else e[t]=n}function Yi(e,t){if(null==e)return t;const n={},r=[];function i(e){n[e.name]||(n[e.name]=1,r.push(e))}return t.forEach(i),e.forEach(i),r}function Ji(e){return e[e.length-1]}function Zi(e){return null==e||""===e?null:+e}const Ki=e=>t=>e*Math.exp(t),Qi=e=>t=>Math.log(e*t),eo=e=>t=>Math.sign(t)*Math.log1p(Math.abs(t/e)),to=e=>t=>Math.sign(t)*Math.expm1(Math.abs(t))*e,no=e=>t=>t<0?-Math.pow(-t,e):Math.pow(t,e);function ro(e,t,n,r){const i=n(e[0]),o=n(Ji(e)),a=(o-i)*t;return[r(i-a),r(o-a)]}function io(e,t){return ro(e,t,Zi,Fi)}function oo(e,t){var n=Math.sign(e[0]);return ro(e,t,Qi(n),Ki(n))}function ao(e,t,n){return ro(e,t,no(n),no(1/n))}function so(e,t,n){return ro(e,t,eo(n),to(n))}function lo(e,t,n,r,i){const o=r(e[0]),a=r(Ji(e)),s=null!=t?r(t):(o+a)/2;return[i(s+(o-s)*n),i(s+(a-s)*n)]}function co(e,t,n){return lo(e,t,n,Zi,Fi)}function uo(e,t,n){const r=Math.sign(e[0]);return lo(e,t,n,Qi(r),Ki(r))}function ho(e,t,n,r){return lo(e,t,n,no(r),no(1/r))}function fo(e,t,n,r){return lo(e,t,n,eo(r),to(r))}function po(e){return 1+~~(new Date(e).getMonth()/3)}function mo(e){return 1+~~(new Date(e).getUTCMonth()/3)}function go(e){return null!=e?qi(e)?e:[e]:[]}function vo(e,t,n){let r,i=e[0],o=e[1];return o=n-t?[t,n]:[i=Math.min(Math.max(i,t),n-r),i+r]}function yo(e){return"function"==typeof e}function bo(e,t,n){n=n||{},t=go(t)||[];const r=[],i=[],o={},a=n.comparator||wo;return go(e).forEach(((e,a)=>{null!=e&&(r.push("descending"===t[a]?-1:1),i.push(e=yo(e)?e:Mi(e,null,n)),(Ei(e)||[]).forEach((e=>o[e]=1)))})),0===i.length?null:_i(a(i,r),Object.keys(o))}const xo=(e,t)=>(et||null==t)&&null!=e?1:(t=t instanceof Date?+t:t,(e=e instanceof Date?+e:e)!==e&&t==t?-1:t!=t&&e==e?1:0),wo=(e,t)=>1===e.length?_o(e[0],t[0]):ko(e,t,e.length),_o=(e,t)=>function(n,r){return xo(e(n),e(r))*t},ko=(e,t,n)=>(t.push(0),function(r,i){let o,a=0,s=-1;for(;0===a&&++se}function Co(e,t){let n;return r=>{n&&clearTimeout(n),n=setTimeout((()=>(t(r),n=null)),e)}}function So(e){for(let t,n,r=1,i=arguments.length;ro&&(o=r))}else{for(r=t(e[a]);ao&&(o=r))}return[i,o]}function Ao(e,t){const n=e.length;let r,i,o,a,s,l=-1;if(null==t){for(;++l=i){r=o=i;break}if(l===n)return[-1,-1];for(a=s=l;++li&&(r=i,a=l),o=i){r=o=i;break}if(l===n)return[-1,-1];for(a=s=l;++li&&(r=i,a=l),or(e)?n[e]:void 0,set(e,t){return r(e)||(++i.size,n[e]===Oo&&--i.empty),n[e]=t,this},delete(e){return r(e)&&(--i.size,++i.empty,n[e]=Oo),this},clear(){i.size=i.empty=0,i.object=n={}},test(e){return arguments.length?(t=e,i):t},clean(){const e={};let r=0;for(const i in n){const o=n[i];o===Oo||t&&t(o)||(e[i]=o,++r)}i.size=r,i.empty=0,i.object=n=e}};return e&&Object.keys(e).forEach((t=>{i.set(t,e[t])})),i}function Po(e,t,n,r,i,o){if(!n&&0!==n)return o;const a=+n;let s,l=e[0],c=Ji(e);ca&&(i=o,o=a,a=i),r=void 0===r||r,((n=void 0===n||n)?o<=e:oe.replace(/\\(.)/g,"$1"))):go(e));const r=e&&e.length,i=n&&n.get||Ci,o=e=>i(t?[e]:Ti(e));let a;if(r)if(1===r){const t=o(e[0]);a=function(e){return""+t(e)}}else{const t=e.map(o);a=function(e){let n=""+t[0](e),i=0;for(;++i{t={},n={},r=0},o=(i,o)=>(++r>e&&(n=t,t={},r=1),t[i]=o);return i(),{clear:i,has:e=>Mo(t,e)||Mo(n,e),get:e=>Mo(t,e)?t[e]:Mo(n,e)?o(e,n[e]):void 0,set:(e,n)=>Mo(t,e)?t[e]=n:o(e,n)}}function Wo(e,t,n,r){const i=t.length,o=n.length;if(!o)return t;if(!i)return n;const a=r||new t.constructor(i+o);let s=0,l=0,c=0;for(;s0?n[l++]:t[s++];for(;s=0;)n+=e;return n}function Go(e,t,n,r){const i=n||" ",o=e+"",a=t-o.length;return a<=0?o:"left"===r?Vo(i,a)+o:"center"===r?Vo(i,~~(a/2))+o+Vo(i,Math.ceil(a/2)):o+Vo(i,a)}function Xo(e){return e&&Ji(e)-e[0]||0}function Yo(e){return qi(e)?"["+e.map(Yo)+"]":Wi(e)||$o(e)?JSON.stringify(e).replace("\u2028","\\u2028").replace("\u2029","\\u2029"):e}function Jo(e){return null==e||""===e?null:!(!e||"false"===e||"0"===e||!e)}const Zo=e=>zo(e)||jo(e)?e:Date.parse(e);function Ko(e,t){return t=t||Zo,null==e||""===e?null:t(e)}function Qo(e){return null==e||""===e?null:e+""}function ea(e){const t={},n=e.length;for(let r=0;r=o?l=!0:10===(r=e.charCodeAt(a++))?c=!0:13===r&&(c=!0,10===e.charCodeAt(a)&&++a),e.slice(i+1,t-1).replace(/""/g,'"')}for(;a9999?"+"+sa(e,6):sa(e,4)}(n.getUTCFullYear())+"-"+sa(n.getUTCMonth()+1,2)+"-"+sa(n.getUTCDate(),2)+(a?"T"+sa(r,2)+":"+sa(i,2)+":"+sa(o,2)+"."+sa(a,3)+"Z":o?"T"+sa(r,2)+":"+sa(i,2)+":"+sa(o,2)+"Z":i||r?"T"+sa(r,2)+":"+sa(i,2)+"Z":"")):t.test(e+="")?'"'+e.replace(/"/g,'""')+'"':e;var n,r,i,o,a}return{parse:function(e,t){var n,i,o=r(e,(function(e,r){if(n)return n(e,r-1);i=e,n=t?function(e,t){var n=oa(e);return function(r,i){return t(n(r),i,e)}}(e,t):oa(e)}));return o.columns=i||[],o},parseRows:r,format:function(t,n){return null==n&&(n=aa(t)),[n.map(a).join(e)].concat(i(t,n)).join("\n")},formatBody:function(e,t){return null==t&&(t=aa(e)),i(e,t).join("\n")},formatRows:function(e){return e.map(o).join("\n")},formatRow:o,formatValue:a}}function ca(e){return e}function ua(e,t){return"string"==typeof t&&(t=e.objects[t]),"GeometryCollection"===t.type?{type:"FeatureCollection",features:t.geometries.map((function(t){return ha(e,t)}))}:ha(e,t)}function ha(e,t){var n=t.id,r=t.bbox,i=null==t.properties?{}:t.properties,o=da(e,t);return null==n&&null==r?{type:"Feature",properties:i,geometry:o}:null==r?{type:"Feature",id:n,properties:i,geometry:o}:{type:"Feature",id:n,bbox:r,properties:i,geometry:o}}function da(e,t){var n=function(e){if(null==e)return ca;var t,n,r=e.scale[0],i=e.scale[1],o=e.translate[0],a=e.translate[1];return function(e,s){s||(t=n=0);var l=2,c=e.length,u=new Array(c);for(u[0]=(t+=e[0])*r+o,u[1]=(n+=e[1])*i+a;l1)r=ga(0,t,n);else for(i=0,r=new Array(o=e.arcs.length);i=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function _a(e){if(!(t=wa.exec(e)))throw new Error("invalid format: "+e);var t;return new ka({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function ka(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function Ea(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function Ca(e){return(e=Ea(Math.abs(e)))?e[1]:NaN}function Sa(e,t){var n=Ea(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}_a.prototype=ka.prototype,ka.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};const Da={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>Sa(100*e,t),r:Sa,s:function(e,t){var n=Ea(e,t);if(!n)return e+"";var r=n[0],i=n[1],o=i-(va=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+Ea(e,Math.max(0,t+o-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function Aa(e){return e}var Ta,Ma,Oa,Fa=Array.prototype.map,Pa=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Na(e){var t,n,r=void 0===e.grouping||void 0===e.thousands?Aa:(t=Fa.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var i=e.length,o=[],a=0,s=t[0],l=0;i>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),o.push(e.substring(i-=s,i+s)),!((l+=s+1)>r));)s=t[a=(a+1)%t.length];return o.reverse().join(n)}),i=void 0===e.currency?"":e.currency[0]+"",o=void 0===e.currency?"":e.currency[1]+"",a=void 0===e.decimal?".":e.decimal+"",s=void 0===e.numerals?Aa:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(Fa.call(e.numerals,String)),l=void 0===e.percent?"%":e.percent+"",c=void 0===e.minus?"−":e.minus+"",u=void 0===e.nan?"NaN":e.nan+"";function h(e){var t=(e=_a(e)).fill,n=e.align,h=e.sign,d=e.symbol,f=e.zero,p=e.width,m=e.comma,g=e.precision,v=e.trim,y=e.type;"n"===y?(m=!0,y="g"):Da[y]||(void 0===g&&(g=12),v=!0,y="g"),(f||"0"===t&&"="===n)&&(f=!0,t="0",n="=");var b="$"===d?i:"#"===d&&/[boxX]/.test(y)?"0"+y.toLowerCase():"",x="$"===d?o:/[%p]/.test(y)?l:"",w=Da[y],_=/[defgprs%]/.test(y);function k(e){var i,o,l,d=b,k=x;if("c"===y)k=w(e)+k,e="";else{var E=(e=+e)<0||1/e<0;if(e=isNaN(e)?u:w(Math.abs(e),g),v&&(e=function(e){e:for(var t,n=e.length,r=1,i=-1;r0&&(i=0)}return i>0?e.slice(0,i)+e.slice(t+1):e}(e)),E&&0==+e&&"+"!==h&&(E=!1),d=(E?"("===h?h:c:"-"===h||"("===h?"":h)+d,k=("s"===y?Pa[8+va/3]:"")+k+(E&&"("===h?")":""),_)for(i=-1,o=e.length;++i(l=e.charCodeAt(i))||l>57){k=(46===l?a+e.slice(i+1):e.slice(i))+k,e=e.slice(0,i);break}}m&&!f&&(e=r(e,1/0));var C=d.length+e.length+k.length,S=C>1)+d+e+k+S.slice(C);break;default:e=S+d+e+k}return s(e)}return g=void 0===g?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),k.toString=function(){return e+""},k}return{format:h,formatPrefix:function(e,t){var n=h(((e=_a(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(Ca(t)/3))),i=Math.pow(10,-r),o=Pa[8+r/3];return function(e){return n(i*e)+o}}}}Ta=Na({thousands:",",grouping:[3],currency:["$",""]}),Ma=Ta.format,Oa=Ta.formatPrefix;var Ia=new Date,Ba=new Date;function ja(e,t,n,r){function i(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return i.floor=function(t){return e(t=new Date(+t)),t},i.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},i.round=function(e){var t=i(e),n=i.ceil(e);return e-t0))return s;do{s.push(a=new Date(+n)),t(n,o),e(n)}while(a=t)for(;e(t),!n(t);)t.setTime(t-1)}),(function(e,r){if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}))},n&&(i.count=function(t,r){return Ia.setTime(+t),Ba.setTime(+r),e(Ia),e(Ba),Math.floor(n(Ia,Ba))},i.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?i.filter(r?function(t){return r(t)%e==0}:function(t){return i.count(0,t)%e==0}):i:null}),i}const La=1e3,za=6e4,Ra=36e5,$a=864e5,Ha=6048e5;var Ua=ja((e=>e.setHours(0,0,0,0)),((e,t)=>e.setDate(e.getDate()+t)),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*za)/$a),(e=>e.getDate()-1));const qa=Ua;function Wa(e){return ja((function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+7*t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*za)/Ha}))}Ua.range;var Va=Wa(0),Ga=Wa(1),Xa=Wa(2),Ya=Wa(3),Ja=Wa(4),Za=Wa(5),Ka=Wa(6),Qa=(Va.range,Ga.range,Xa.range,Ya.range,Ja.range,Za.range,Ka.range,ja((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/$a}),(function(e){return e.getUTCDate()-1})));const es=Qa;function ts(e){return ja((function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+7*t)}),(function(e,t){return(t-e)/Ha}))}Qa.range;var ns=ts(0),rs=ts(1),is=ts(2),os=ts(3),as=ts(4),ss=ts(5),ls=ts(6),cs=(ns.range,rs.range,is.range,os.range,as.range,ss.range,ls.range,ja((function(e){e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,t){e.setFullYear(e.getFullYear()+t)}),(function(e,t){return t.getFullYear()-e.getFullYear()}),(function(e){return e.getFullYear()})));cs.every=function(e){return isFinite(e=Math.floor(e))&&e>0?ja((function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n*e)})):null};const us=cs;cs.range;var hs=ja((function(e){e.setDate(1),e.setHours(0,0,0,0)}),(function(e,t){e.setMonth(e.getMonth()+t)}),(function(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())}),(function(e){return e.getMonth()}));const ds=hs;hs.range;var fs=ja((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*La-e.getMinutes()*za)}),(function(e,t){e.setTime(+e+t*Ra)}),(function(e,t){return(t-e)/Ra}),(function(e){return e.getHours()}));const ps=fs;fs.range;var ms=ja((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*La)}),(function(e,t){e.setTime(+e+t*za)}),(function(e,t){return(t-e)/za}),(function(e){return e.getMinutes()}));const gs=ms;ms.range;var vs=ja((function(e){e.setTime(e-e.getMilliseconds())}),(function(e,t){e.setTime(+e+t*La)}),(function(e,t){return(t-e)/La}),(function(e){return e.getUTCSeconds()}));const ys=vs;vs.range;var bs=ja((function(){}),(function(e,t){e.setTime(+e+t)}),(function(e,t){return t-e}));bs.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?ja((function(t){t.setTime(Math.floor(t/e)*e)}),(function(t,n){t.setTime(+t+n*e)}),(function(t,n){return(n-t)/e})):bs:null};const xs=bs;bs.range;var ws=ja((function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)}),(function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()}),(function(e){return e.getUTCFullYear()}));ws.every=function(e){return isFinite(e=Math.floor(e))&&e>0?ja((function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null};const _s=ws;ws.range;var ks=ja((function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCMonth(e.getUTCMonth()+t)}),(function(e,t){return t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())}),(function(e){return e.getUTCMonth()}));const Es=ks;ks.range;var Cs=ja((function(e){e.setUTCMinutes(0,0,0)}),(function(e,t){e.setTime(+e+t*Ra)}),(function(e,t){return(t-e)/Ra}),(function(e){return e.getUTCHours()}));const Ss=Cs;Cs.range;var Ds=ja((function(e){e.setUTCSeconds(0,0)}),(function(e,t){e.setTime(+e+t*za)}),(function(e,t){return(t-e)/za}),(function(e){return e.getUTCMinutes()}));const As=Ds;Ds.range;var Ts=Math.sqrt(50),Ms=Math.sqrt(10),Os=Math.sqrt(2);function Fs(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=Ts?i*=10:o>=Ms?i*=5:o>=Os&&(i*=2),t(e[t]=1+n,e)),{});function Vs(e){const t=go(e).slice(),n={};return t.length||Ai("Missing time unit."),t.forEach((e=>{Mo(Ws,e)?n[e]=1:Ai("Invalid time unit: ".concat(e,"."))})),(n[Bs]||n[Ls]?1:0)+(n[Ns]||n[Is]||n[js]?1:0)+(n[zs]?1:0)>1&&Ai("Incompatible time units: ".concat(e)),t.sort(((e,t)=>Ws[e]-Ws[t])),t}const Gs={[Ps]:"%Y ",[Ns]:"Q%q ",[Is]:"%b ",[js]:"%d ",[Bs]:"W%U ",[Ls]:"%a ",[zs]:"%j ",[Rs]:"%H:00",[$s]:"00:%M",[Hs]:":%S",[Us]:".%L",["".concat(Ps,"-").concat(Is)]:"%Y-%m ",["".concat(Ps,"-").concat(Is,"-").concat(js)]:"%Y-%m-%d ",["".concat(Rs,"-").concat($s)]:"%H:%M"};function Xs(e,t){const n=So({},Gs,t),r=Vs(e),i=r.length;let o,a,s="",l=0;for(l=0;ll;--o)if(a=r.slice(l,o).join("-"),null!=n[a]){s+=n[a],l=o;break}return s.trim()}const Ys=new Date;function Js(e){return Ys.setFullYear(e),Ys.setMonth(0),Ys.setDate(1),Ys.setHours(0,0,0,0),Ys}function Zs(e){return Qs(new Date(e))}function Ks(e){return el(new Date(e))}function Qs(e){return qa.count(Js(e.getFullYear())-1,e)}function el(e){return Va.count(Js(e.getFullYear())-1,e)}function tl(e){return Js(e).getDay()}function nl(e,t,n,r,i,o,a){if(0<=e&&e<100){const s=new Date(-1,t,n,r,i,o,a);return s.setFullYear(e),s}return new Date(e,t,n,r,i,o,a)}function rl(e){return ol(new Date(e))}function il(e){return al(new Date(e))}function ol(e){const t=Date.UTC(e.getUTCFullYear(),0,1);return es.count(t-1,e)}function al(e){const t=Date.UTC(e.getUTCFullYear(),0,1);return ns.count(t-1,e)}function sl(e){return Ys.setTime(Date.UTC(e,0,1)),Ys.getUTCDay()}function ll(e,t,n,r,i,o,a){if(0<=e&&e<100){const e=new Date(Date.UTC(-1,t,n,r,i,o,a));return e.setUTCFullYear(n.y),e}return new Date(Date.UTC(e,t,n,r,i,o,a))}function cl(e,t,n,r,i){const o=t||1,a=Ji(e),s=(e,t,i)=>function(e,t,n,r){const i=n<=1?e:r?(t,i)=>r+n*Math.floor((e(t,i)-r)/n):(t,r)=>n*Math.floor(e(t,r)/n);return t?(e,n)=>t(i(e,n),n):i}(n[i=i||e],r[i],e===a&&o,t),l=new Date,c=ea(e),u=c[Ps]?s(Ps):Eo(2012),h=c[Is]?s(Is):c[Ns]?s(Ns):Pi,d=c[Bs]&&c[Ls]?s(Ls,1,Bs+Ls):c[Bs]?s(Bs,1):c[Ls]?s(Ls,1):c[js]?s(js,1):c[zs]?s(zs,1):Ni,f=c[Rs]?s(Rs):Pi,p=c[$s]?s($s):Pi,m=c[Hs]?s(Hs):Pi,g=c[Us]?s(Us):Pi;return function(e){l.setTime(+e);const t=u(l);return i(t,h(l),d(l,t),f(l),p(l),m(l),g(l))}}function ul(e,t,n){return t+7*e-(n+6)%7}const hl={[Ps]:e=>e.getFullYear(),[Ns]:e=>Math.floor(e.getMonth()/3),[Is]:e=>e.getMonth(),[js]:e=>e.getDate(),[Rs]:e=>e.getHours(),[$s]:e=>e.getMinutes(),[Hs]:e=>e.getSeconds(),[Us]:e=>e.getMilliseconds(),[zs]:e=>Qs(e),[Bs]:e=>el(e),[Bs+Ls]:(e,t)=>ul(el(e),e.getDay(),tl(t)),[Ls]:(e,t)=>ul(1,e.getDay(),tl(t))},dl={[Ns]:e=>3*e,[Bs]:(e,t)=>ul(e,0,tl(t))};function fl(e,t){return cl(e,t||1,hl,dl,nl)}const pl={[Ps]:e=>e.getUTCFullYear(),[Ns]:e=>Math.floor(e.getUTCMonth()/3),[Is]:e=>e.getUTCMonth(),[js]:e=>e.getUTCDate(),[Rs]:e=>e.getUTCHours(),[$s]:e=>e.getUTCMinutes(),[Hs]:e=>e.getUTCSeconds(),[Us]:e=>e.getUTCMilliseconds(),[zs]:e=>ol(e),[Bs]:e=>al(e),[Ls]:(e,t)=>ul(1,e.getUTCDay(),sl(t)),[Bs+Ls]:(e,t)=>ul(al(e),e.getUTCDay(),sl(t))},ml={[Ns]:e=>3*e,[Bs]:(e,t)=>ul(e,0,sl(t))};function gl(e,t){return cl(e,t||1,pl,ml,ll)}const vl={[Ps]:us,[Ns]:ds.every(3),[Is]:ds,[Bs]:Va,[js]:qa,[Ls]:qa,[zs]:qa,[Rs]:ps,[$s]:gs,[Hs]:ys,[Us]:xs},yl={[Ps]:_s,[Ns]:Es.every(3),[Is]:Es,[Bs]:ns,[js]:es,[Ls]:es,[zs]:es,[Rs]:Ss,[$s]:As,[Hs]:ys,[Us]:xs};function bl(e){return vl[e]}function xl(e){return yl[e]}function wl(e,t,n){return e?e.offset(t,n):void 0}function _l(e,t,n){return wl(bl(e),t,n)}function kl(e,t,n){return wl(xl(e),t,n)}function El(e,t,n,r){return e?e.range(t,n,r):void 0}function Cl(e,t,n,r){return El(bl(e),t,n,r)}function Sl(e,t,n,r){return El(xl(e),t,n,r)}const Dl=31536e6,Al=[Ps,Is,js,Rs,$s,Hs,Us],Tl=Al.slice(0,-1),Ml=Tl.slice(0,-1),Ol=Ml.slice(0,-1),Fl=Ol.slice(0,-1),Pl=[Ps,Is],Nl=[Ps],Il=[[Tl,1,1e3],[Tl,5,5e3],[Tl,15,15e3],[Tl,30,3e4],[Ml,1,6e4],[Ml,5,3e5],[Ml,15,9e5],[Ml,30,18e5],[Ol,1,36e5],[Ol,3,108e5],[Ol,6,216e5],[Ol,12,432e5],[Fl,1,864e5],[[Ps,Bs],1,6048e5],[Pl,1,2592e6],[Pl,3,7776e6],[Nl,1,Dl]];function Bl(e){const t=e.extent,n=e.maxbins||40,r=Math.abs(Xo(t))/n;let i,o,a=function(e){let t=e,n=e;function r(e,t,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;n(e[o],t)<0?r=o+1:i=o}return r}return 1===e.length&&(t=(t,n)=>e(t)-n,n=function(e){return(t,n)=>function(e,t){return et?1:e>=t?0:NaN}(e(t),n)}(e)),{left:r,center:function(e,n,i,o){null==i&&(i=0),null==o&&(o=e.length);const a=r(e,n,i,o-1);return a>i&&t(e[a-1],n)>-t(e[a],n)?a-1:a},right:function(e,t,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;n(e[o],t)>0?i=o:r=o+1}return r}}}((e=>e[2])).right(Il,r);return a===Il.length?(i=Nl,o=Fs(t[0]/Dl,t[1]/Dl,n)):a?(a=Il[r/Il[a-1][2]0))return s;do{s.push(a=new Date(+n)),t(n,o),e(n)}while(a=t)for(;e(t),!n(t);)t.setTime(t-1)}),(function(e,r){if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}))},n&&(i.count=function(t,r){return jl.setTime(+t),Ll.setTime(+r),e(jl),e(Ll),Math.floor(n(jl,Ll))},i.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?i.filter(r?function(t){return r(t)%e==0}:function(t){return i.count(0,t)%e==0}):i:null}),i}var Rl=864e5,$l=6048e5;function Hl(e){return zl((function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+7*t)}),(function(e,t){return(t-e)/$l}))}var Ul=Hl(0),ql=Hl(1),Wl=Hl(2),Vl=Hl(3),Gl=Hl(4),Xl=Hl(5),Yl=Hl(6),Jl=(Ul.range,ql.range,Wl.range,Vl.range,Gl.range,Xl.range,Yl.range,zl((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/Rl}),(function(e){return e.getUTCDate()-1})));const Zl=Jl;function Kl(e){return zl((function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+7*t)}),(function(e,t){return(t-e-6e4*(t.getTimezoneOffset()-e.getTimezoneOffset()))/$l}))}Jl.range;var Ql=Kl(0),ec=Kl(1),tc=Kl(2),nc=Kl(3),rc=Kl(4),ic=Kl(5),oc=Kl(6),ac=(Ql.range,ec.range,tc.range,nc.range,rc.range,ic.range,oc.range,zl((function(e){e.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+t)}),(function(e,t){return(t-e-6e4*(t.getTimezoneOffset()-e.getTimezoneOffset()))/Rl}),(function(e){return e.getDate()-1})));const sc=ac;ac.range;var lc=zl((function(e){e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,t){e.setFullYear(e.getFullYear()+t)}),(function(e,t){return t.getFullYear()-e.getFullYear()}),(function(e){return e.getFullYear()}));lc.every=function(e){return isFinite(e=Math.floor(e))&&e>0?zl((function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n*e)})):null};const cc=lc;lc.range;var uc=zl((function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)}),(function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()}),(function(e){return e.getUTCFullYear()}));uc.every=function(e){return isFinite(e=Math.floor(e))&&e>0?zl((function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null};const hc=uc;function dc(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function fc(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function pc(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function mc(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,o=e.days,a=e.shortDays,s=e.months,l=e.shortMonths,c=Dc(i),u=Ac(i),h=Dc(o),d=Ac(o),f=Dc(a),p=Ac(a),m=Dc(s),g=Ac(s),v=Dc(l),y=Ac(l),b={a:function(e){return a[e.getDay()]},A:function(e){return o[e.getDay()]},b:function(e){return l[e.getMonth()]},B:function(e){return s[e.getMonth()]},c:null,d:Yc,e:Yc,f:eu,g:hu,G:fu,H:Jc,I:Zc,j:Kc,L:Qc,m:tu,M:nu,p:function(e){return i[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:Bu,s:ju,S:ru,u:iu,U:ou,V:su,w:lu,W:cu,x:null,X:null,y:uu,Y:du,Z:pu,"%":Iu},x={a:function(e){return a[e.getUTCDay()]},A:function(e){return o[e.getUTCDay()]},b:function(e){return l[e.getUTCMonth()]},B:function(e){return s[e.getUTCMonth()]},c:null,d:mu,e:mu,f:xu,g:Ou,G:Pu,H:gu,I:vu,j:yu,L:bu,m:wu,M:_u,p:function(e){return i[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:Bu,s:ju,S:ku,u:Eu,U:Cu,V:Du,w:Au,W:Tu,x:null,X:null,y:Mu,Y:Fu,Z:Nu,"%":Iu},w={a:function(e,t,n){var r=f.exec(t.slice(n));return r?(e.w=p.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(e,t,n){var r=h.exec(t.slice(n));return r?(e.w=d.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(e,t,n){var r=v.exec(t.slice(n));return r?(e.m=y.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(e,t,n){var r=m.exec(t.slice(n));return r?(e.m=g.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(e,n,r){return E(e,t,n,r)},d:zc,e:zc,f:Wc,g:Ic,G:Nc,H:$c,I:$c,j:Rc,L:qc,m:Lc,M:Hc,p:function(e,t,n){var r=c.exec(t.slice(n));return r?(e.p=u.get(r[0].toLowerCase()),n+r[0].length):-1},q:jc,Q:Gc,s:Xc,S:Uc,u:Mc,U:Oc,V:Fc,w:Tc,W:Pc,x:function(e,t,r){return E(e,n,t,r)},X:function(e,t,n){return E(e,r,t,n)},y:Ic,Y:Nc,Z:Bc,"%":Vc};function _(e,t){return function(n){var r,i,o,a=[],s=-1,l=0,c=e.length;for(n instanceof Date||(n=new Date(+n));++s53)return null;"w"in o||(o.w=1),"Z"in o?(i=(r=fc(pc(o.y,0,1))).getUTCDay(),r=i>4||0===i?ql.ceil(r):ql(r),r=Zl.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(i=(r=dc(pc(o.y,0,1))).getDay(),r=i>4||0===i?ec.ceil(r):ec(r),r=sc.offset(r,7*(o.V-1)),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?fc(pc(o.y,0,1)).getUTCDay():dc(pc(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,fc(o)):dc(o)}}function E(e,t,n,r){for(var i,o,a=0,s=t.length,l=n.length;a=l)return-1;if(37===(i=t.charCodeAt(a++))){if(i=t.charAt(a++),!(o=w[i in wc?t.charAt(a++):i])||(r=o(e,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return b.x=_(n,b),b.X=_(r,b),b.c=_(t,b),x.x=_(n,x),x.X=_(r,x),x.c=_(t,x),{format:function(e){var t=_(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=k(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=_(e+="",x);return t.toString=function(){return e},t},utcParse:function(e){var t=k(e+="",!0);return t.toString=function(){return e},t}}}uc.range;var gc,vc,yc,bc,xc,wc={"-":"",_:" ",0:"0"},_c=/^\s*\d+/,kc=/^%/,Ec=/[\\^$*+?|[\]().{}]/g;function Cc(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",o=i.length;return r+(o[e.toLowerCase(),t])))}function Tc(e,t,n){var r=_c.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Mc(e,t,n){var r=_c.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Oc(e,t,n){var r=_c.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function Fc(e,t,n){var r=_c.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Pc(e,t,n){var r=_c.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function Nc(e,t,n){var r=_c.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function Ic(e,t,n){var r=_c.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Bc(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function jc(e,t,n){var r=_c.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function Lc(e,t,n){var r=_c.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function zc(e,t,n){var r=_c.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Rc(e,t,n){var r=_c.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function $c(e,t,n){var r=_c.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Hc(e,t,n){var r=_c.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Uc(e,t,n){var r=_c.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function qc(e,t,n){var r=_c.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Wc(e,t,n){var r=_c.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Vc(e,t,n){var r=kc.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Gc(e,t,n){var r=_c.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Xc(e,t,n){var r=_c.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function Yc(e,t){return Cc(e.getDate(),t,2)}function Jc(e,t){return Cc(e.getHours(),t,2)}function Zc(e,t){return Cc(e.getHours()%12||12,t,2)}function Kc(e,t){return Cc(1+sc.count(cc(e),e),t,3)}function Qc(e,t){return Cc(e.getMilliseconds(),t,3)}function eu(e,t){return Qc(e,t)+"000"}function tu(e,t){return Cc(e.getMonth()+1,t,2)}function nu(e,t){return Cc(e.getMinutes(),t,2)}function ru(e,t){return Cc(e.getSeconds(),t,2)}function iu(e){var t=e.getDay();return 0===t?7:t}function ou(e,t){return Cc(Ql.count(cc(e)-1,e),t,2)}function au(e){var t=e.getDay();return t>=4||0===t?rc(e):rc.ceil(e)}function su(e,t){return e=au(e),Cc(rc.count(cc(e),e)+(4===cc(e).getDay()),t,2)}function lu(e){return e.getDay()}function cu(e,t){return Cc(ec.count(cc(e)-1,e),t,2)}function uu(e,t){return Cc(e.getFullYear()%100,t,2)}function hu(e,t){return Cc((e=au(e)).getFullYear()%100,t,2)}function du(e,t){return Cc(e.getFullYear()%1e4,t,4)}function fu(e,t){var n=e.getDay();return Cc((e=n>=4||0===n?rc(e):rc.ceil(e)).getFullYear()%1e4,t,4)}function pu(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Cc(t/60|0,"0",2)+Cc(t%60,"0",2)}function mu(e,t){return Cc(e.getUTCDate(),t,2)}function gu(e,t){return Cc(e.getUTCHours(),t,2)}function vu(e,t){return Cc(e.getUTCHours()%12||12,t,2)}function yu(e,t){return Cc(1+Zl.count(hc(e),e),t,3)}function bu(e,t){return Cc(e.getUTCMilliseconds(),t,3)}function xu(e,t){return bu(e,t)+"000"}function wu(e,t){return Cc(e.getUTCMonth()+1,t,2)}function _u(e,t){return Cc(e.getUTCMinutes(),t,2)}function ku(e,t){return Cc(e.getUTCSeconds(),t,2)}function Eu(e){var t=e.getUTCDay();return 0===t?7:t}function Cu(e,t){return Cc(Ul.count(hc(e)-1,e),t,2)}function Su(e){var t=e.getUTCDay();return t>=4||0===t?Gl(e):Gl.ceil(e)}function Du(e,t){return e=Su(e),Cc(Gl.count(hc(e),e)+(4===hc(e).getUTCDay()),t,2)}function Au(e){return e.getUTCDay()}function Tu(e,t){return Cc(ql.count(hc(e)-1,e),t,2)}function Mu(e,t){return Cc(e.getUTCFullYear()%100,t,2)}function Ou(e,t){return Cc((e=Su(e)).getUTCFullYear()%100,t,2)}function Fu(e,t){return Cc(e.getUTCFullYear()%1e4,t,4)}function Pu(e,t){var n=e.getUTCDay();return Cc((e=n>=4||0===n?Gl(e):Gl.ceil(e)).getUTCFullYear()%1e4,t,4)}function Nu(){return"+0000"}function Iu(){return"%"}function Bu(e){return+e}function ju(e){return Math.floor(+e/1e3)}function Lu(e){const t={};return n=>t[n]||(t[n]=e(n))}function zu(e){const t=Lu(e.format),n=e.formatPrefix;return{format:t,formatPrefix:n,formatFloat(e){const n=_a(e||",");if(null==n.precision){switch(n.precision=12,n.type){case"%":n.precision-=2;break;case"e":n.precision-=1}return function(e,t){return n=>{const r=e(n),i=r.indexOf(t);if(i<0)return r;let o=function(e,t){let n,r=e.lastIndexOf("e");if(r>0)return r;for(r=e.length;--r>t;)if(n=e.charCodeAt(r),n>=48&&n<=57)return r+1}(r,i);const a=oi;)if("0"!==r[o]){++o;break}return r.slice(0,o)+a}}(t(n),t(".1f")(1)[1])}return t(n)},formatSpan(e,r,i,o){o=_a(null==o?",f":o);const a=function(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=ya?i*=10:o>=ba?i*=5:o>=xa&&(i*=2),t(r(e)$o(e)?t(e):Wu(t,bl,e),utcFormat:e=>$o(e)?n(e):Wu(n,xl,e),timeParse:Lu(e.parse),utcParse:Lu(e.utcParse)}}function Gu(){return $u=Vu({format:vc,parse:yc,utcFormat:bc,utcParse:xc})}function Xu(e){return Vu(mc(e))}function Yu(e){return arguments.length?$u=Xu(e):$u}gc=mc({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}),vc=gc.format,yc=gc.parse,bc=gc.utcFormat,xc=gc.utcParse,Hu(),Gu();const Ju=(e,t)=>So({},e,t);function Zu(e,t){const n=e?Uu(e):qu(),r=t?Xu(t):Yu();return Ju(n,r)}function Ku(e,t){const n=arguments.length;return n&&2!==n&&Ai("defaultLocale expects either zero or two arguments."),n?Ju(qu(e),Yu(t)):Ju(qu(),Yu())}function Qu(){return Hu(),Gu(),Ku()}var eh=n(8764).Buffer;const th=/^(data:|([A-Za-z]+:)?\/\/)/,nh=/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp|file|data):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i,rh=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g,ih="file://";async function oh(e,t){const n=await this.sanitize(e,t),r=n.href;return n.localFile?this.file(r):this.http(r,t)}async function ah(e,t){t=So({},this.options,t);const n=this.fileAccess,r={href:null};let i,o,a;const s=nh.test(e.replace(rh,""));null!=e&&"string"==typeof e&&s||Ai("Sanitize failure, invalid URI: "+Yo(e));const l=th.test(e);return(a=t.baseURL)&&!l&&(e.startsWith("/")||a.endsWith("/")||(e="/"+e),e=a+e),o=(i=e.startsWith(ih))||"file"===t.mode||"http"!==t.mode&&!l&&n,i?e=e.slice(ih.length):e.startsWith("//")&&("file"===t.defaultProtocol?(e=e.slice(2),o=!0):e=(t.defaultProtocol||"http")+":"+e),Object.defineProperty(r,"localFile",{value:!!o}),r.href=e,t.target&&(r.target=t.target+""),t.rel&&(r.rel=t.rel+""),"image"===t.context&&t.crossOrigin&&(r.crossOrigin=t.crossOrigin+""),r}function sh(e){return e?t=>new Promise(((n,r)=>{e.readFile(t,((e,t)=>{e?r(e):n(t)}))})):lh}async function lh(){Ai("No file system access.")}function ch(e){return e?async function(t,n){const r=So({},this.options.http,n),i=n&&n.response,o=await e(t,r);return o.ok?yo(o[i])?o[i]():o.text():Ai(o.status+""+o.statusText)}:uh}async function uh(){Ai("No HTTP fetch method available.")}const hh=e=>!(Number.isNaN(+e)||e instanceof Date),dh={boolean:Jo,integer:Zi,number:Zi,date:Ko,string:Qo,unknown:Fi},fh=[e=>"true"===e||"false"===e||!0===e||!1===e,e=>hh(e)&&Number.isInteger(+e),hh,e=>!Number.isNaN(Date.parse(e))],ph=["boolean","integer","number","date"];function mh(e,t){if(!e||!e.length)return"unknown";const n=e.length,r=fh.length,i=fh.map(((e,t)=>t+1));for(let a,s,l=0,c=0;l0===e?t:e),0)-1]}function gh(e,t){return t.reduce(((t,n)=>(t[n]=mh(e,n),t)),{})}function vh(e){const t=function(t,n){const r={delimiter:e};return yh(t,n?So(n,r):r)};return t.responseType="text",t}function yh(e,t){return t.header&&(e=t.header.map(Yo).join(t.delimiter)+"\n"+e),la(t.delimiter).parse(e+"")}function bh(e,t){const n=t&&t.property?Mi(t.property):Fi;return!Wi(e)||(r=e,"function"==typeof eh&&yo(eh.isBuffer)&&eh.isBuffer(r))?n(JSON.parse(e)):function(e,t){return!qi(e)&&Lo(e)&&(e=[...e]),t&&t.copy?JSON.parse(JSON.stringify(e)):e}(n(e),t);var r}yh.responseType="text",bh.responseType="json";const xh={interior:(e,t)=>e!==t,exterior:(e,t)=>e===t};function wh(e,t){let n,r,i,o;return e=bh(e,t),t&&t.feature?(n=ua,i=t.feature):t&&t.mesh?(n=pa,i=t.mesh,o=xh[t.filter]):Ai("Missing TopoJSON feature or mesh parameter."),r=(r=e.objects[i])?n(e,r,o):Ai("Invalid TopoJSON object: "+i),r&&r.features||[r]}wh.responseType="json";const _h={dsv:yh,csv:vh(","),tsv:vh("\t"),json:bh,topojson:wh};function kh(e,t){return arguments.length>1?(_h[e]=t,this):Mo(_h,e)?_h[e]:null}function Eh(e){const t=kh(e);return t&&t.responseType||"text"}function Ch(e,t,n,r){const i=kh((t=t||{}).type||"json");return i||Ai("Unknown data format type: "+t.type),e=i(e,t),t.parse&&function(e,t,n,r){if(!e.length)return;const i=Yu();n=n||i.timeParse,r=r||i.utcParse;let o,a,s,l,c,u,h=e.columns||Object.keys(e[0]);"auto"===t&&(t=gh(e,h)),h=Object.keys(t);const d=h.map((e=>{const i=t[e];let o,a;if(i&&(i.startsWith("date:")||i.startsWith("utc:")))return o=i.split(/:(.+)?/,2),a=o[1],("'"===a[0]&&"'"===a[a.length-1]||'"'===a[0]&&'"'===a[a.length-1])&&(a=a.slice(1,-1)),("utc"===o[0]?r:n)(a);if(!dh[i])throw Error("Illegal format pattern: "+e+":"+i);return dh[i]}));for(s=0,c=e.length,u=h.length;s({options:t||{},sanitize:ah,load:oh,fileAccess:!1,file:sh(null),http:ch(e)})}("undefined"!=typeof fetch&&fetch);function Dh(e){const t=e||Fi,n=[],r={};return n.add=e=>{const i=t(e);return r[i]||(r[i]=1,n.push(e)),n},n.remove=e=>{const i=t(e);if(r[i]){r[i]=0;const t=n.indexOf(e);t>=0&&n.splice(t,1)}return n},n}async function Ah(e,t){try{await t(e)}catch(t){e.error(t)}}const Th=Symbol("vega_id");let Mh=1;function Oh(e){return!(!e||!Fh(e))}function Fh(e){return e[Th]}function Ph(e,t){return e[Th]=t,e}function Nh(e){const t=e===Object(e)?e:{data:e};return Fh(t)?t:Ph(t,Mh++)}function Ih(e){return Bh(e,Nh({}))}function Bh(e,t){for(const n in e)t[n]=e[n];return t}function jh(e,t){return Ph(t,Fh(e))}function Lh(e,t){return e?t?(n,r)=>e(n,r)||Fh(t(n))-Fh(t(r)):(t,n)=>e(t,n)||Fh(t)-Fh(n):null}function zh(e){return e&&e.constructor===Rh}function Rh(){const e=[],t=[],n=[],r=[],i=[];let o=null,a=!1;return{constructor:Rh,insert(t){const n=go(t),r=n.length;for(let t=0;t{p(e)&&(c[Fh(e)]=-1)}));for(h=0,d=e.length;h0&&(v(m,p,f.value),s.modifies(p));for(h=0,d=i.length;h{p(e)&&c[Fh(e)]>0&&v(e,f.field,f.value)})),s.modifies(f.field);if(a)s.mod=t.length||r.length?l.filter((e=>c[Fh(e)]>0)):l.slice();else for(g in u)s.mod.push(u[g]);return(o||null==o&&(t.length||r.length))&&s.clean(!0),s}}}const $h="_:mod:_";function Hh(){Object.defineProperty(this,$h,{writable:!0,value:{}})}Hh.prototype={set(e,t,n,r){const i=this,o=i[e],a=i[$h];return null!=t&&t>=0?(o[t]!==n||r)&&(o[t]=n,a[t+":"+e]=-1,a[e]=-1):(o!==n||r)&&(i[e]=n,a[e]=qi(n)?1+n.length:-1),i},modified(e,t){const n=this[$h];if(!arguments.length){for(const e in n)if(n[e])return!0;return!1}if(qi(e)){for(let t=0;t=0?t+1{a instanceof Wh?(a!==this&&(t&&a.targets().add(this),o.push(a)),i.push({op:a,name:e,index:n})):r.set(e,n,a)};for(a in e)if(s=e[a],"pulse"===a)go(s).forEach((e=>{e instanceof Wh?e!==this&&(e.targets().add(this),o.push(e)):Ai("Pulse parameters must be operator instances.")})),this.source=s;else if(qi(s))for(r.set(a,-1,Array(l=s.length)),c=0;c{const n=Date.now();return n-t>e?(t=n,1):0}))},debounce(e){const t=Yh();return this.targets().add(Yh(null,null,Co(e,(e=>{const n=e.dataflow;t.receive(e),n&&n.run&&n.run()})))),t},between(e,t){let n=!1;return e.targets().add(Yh(null,null,(()=>n=!0))),t.targets().add(Yh(null,null,(()=>n=!1))),this.filter((()=>n))},detach(){this._filter=Ii,this._targets=null}};const Jh={skip:!0};function Zh(e,t,n,r,i,o){const a=So({},o,Jh);let s,l;yo(n)||(n=Eo(n)),void 0===r?s=t=>e.touch(n(t)):yo(r)?(l=new Wh(null,r,i,!1),s=t=>{l.evaluate(t);const r=n(t),i=l.value;zh(i)?e.pulse(r,i,o):e.update(r,i,a)}):s=t=>e.update(n(t),r,a),t.apply(s)}function Kh(e,t,n,r,i,o){if(void 0===r)t.targets().add(n);else{const a=o||{},s=new Wh(null,function(e,t){return t=yo(t)?t:Eo(t),e?function(n,r){const i=t(n,r);return e.skip()||(e.skip(i!==this.value).value=i),i}:t}(n,r),i,!1);s.modified(a.force),s.rank=t.rank,t.targets().add(s),n&&(s.skip(!0),s.value=n.value,s.targets().add(n),e.connect(n,[s]))}}const Qh={};function ed(e,t,n){this.dataflow=e,this.stamp=null==t?-1:t,this.add=[],this.rem=[],this.mod=[],this.fields=null,this.encode=n||null}function td(e,t){const n=[];return na(e,t,(e=>n.push(e))),n}function nd(e,t){const n={};return e.visit(t,(e=>{n[Fh(e)]=1})),e=>n[Fh(e)]?null:e}function rd(e,t){return e?(n,r)=>e(n,r)&&t(n,r):t}function id(e,t,n,r){const i=this,o=n.length;let a=0;this.dataflow=e,this.stamp=t,this.fields=null,this.encode=r||null,this.pulses=n;for(let e=0;et[e]=!0)):t[e]=!0,this},modified(e,t){const n=this.fields;return!(!t&&!this.mod.length||!n)&&(arguments.length?qi(e)?e.some((e=>n[e])):n[e]:!!n)},filter(e,t){const n=this;return 1&e&&(n.addF=rd(n.addF,t)),2&e&&(n.remF=rd(n.remF,t)),4&e&&(n.modF=rd(n.modF,t)),16&e&&(n.srcF=rd(n.srcF,t)),n},materialize(e){const t=this;return 1&(e=e||7)&&t.addF&&(t.add=td(t.add,t.addF),t.addF=null),2&e&&t.remF&&(t.rem=td(t.rem,t.remF),t.remF=null),4&e&&t.modF&&(t.mod=td(t.mod,t.modF),t.modF=null),16&e&&t.srcF&&(t.source=t.source.filter(t.srcF),t.srcF=null),t},visit(e,t){const n=this,r=t;if(16&e)return na(n.source,n.srcF,r),n;1&e&&na(n.add,n.addF,r),2&e&&na(n.rem,n.remF,r),4&e&&na(n.mod,n.modF,r);const i=n.source;if(8&e&&i){const e=n.add.length+n.mod.length;e===i.length||na(i,e?nd(n,5):n.srcF,r)}return n}},No(id,ed,{fork(e){const t=new ed(this.dataflow).init(this,e&this.NO_FIELDS);return void 0!==e&&(e&t.ADD&&this.visit(t.ADD,(e=>t.add.push(e))),e&t.REM&&this.visit(t.REM,(e=>t.rem.push(e))),e&t.MOD&&this.visit(t.MOD,(e=>t.mod.push(e)))),t},changed(e){return this.changes&e},modified(e){const t=this,n=t.fields;return n&&t.changes&t.MOD?qi(e)?e.some((e=>n[e])):n[e]:0},filter(){Ai("MultiPulse does not support filtering.")},materialize(){Ai("MultiPulse does not support materialization.")},visit(e,t){const n=this,r=n.pulses,i=r.length;let o=0;if(e&n.SOURCE)for(;ot&&(o=n-1>>1,i=e[o],r(a,i)<0);)e[n]=i,n=o;return e[n]=a}function ld(){this.logger(Ui()),this.logLevel(zi),this._clock=0,this._rank=0,this._locale=Ku();try{this._loader=Sh()}catch(e){}this._touched=Dh(Oi),this._input={},this._pulse=null,this._heap=function(e){let t=[];return{clear:()=>t=[],size:()=>t.length,peek:()=>t[0],push:n=>(t.push(n),sd(t,0,t.length-1,e)),pop:()=>{const n=t.pop();let r;return t.length?(r=t[0],t[0]=n,function(e,t,n){const r=t,i=e.length,o=e[t];let a,s=1+(t<<1);for(;s=0&&(s=a),e[t]=e[s],s=1+((t=s)<<1);e[t]=o,sd(e,r,t,n)}(t,0,e)):r=n,r}}}(((e,t)=>e.qrank-t.qrank)),this._postrun=[]}function cd(e){return function(){return this._log[e].apply(this,arguments)}}function ud(e,t){Wh.call(this,e,null,t)}ld.prototype={stamp(){return this._clock},loader(e){return arguments.length?(this._loader=e,this):this._loader},locale(e){return arguments.length?(this._locale=e,this):this._locale},logger(e){return arguments.length?(this._log=e,this):this._log},error:cd("error"),warn:cd("warn"),info:cd("info"),debug:cd("debug"),logLevel:cd("level"),cleanThreshold:1e4,add:function(e,t,n,r){let i,o=1;return e instanceof Wh?i=e:e&&e.prototype instanceof Wh?i=new e:yo(e)?i=new Wh(null,e):(o=0,i=new Wh(e,t)),this.rank(i),o&&(r=n,n=t),n&&this.connect(i,i.parameters(n,r)),this.touch(i),i},connect:function(e,t){const n=e.rank,r=t.length;for(let i=0;i=0;)t.push(n=r[i]),n===e&&Ai("Cycle detected in dataflow graph.")},pulse:function(e,t,n){this.touch(e,n||ad);const r=new ed(this,this._clock+(this._pulse?0:1)),i=e.pulse&&e.pulse.source||[];return r.target=e,this._input[e.id]=t.pulse(r,i),this},touch:function(e,t){const n=t||ad;return this._pulse?this._enqueue(e):this._touched.add(e),n.skip&&e.skip(!0),this},update:function(e,t,n){const r=n||ad;return(e.set(t)||r.force)&&this.touch(e,r),this},changeset:Rh,ingest:function(e,t,n){return t=this.parse(t,n),this.pulse(e,this.changeset().insert(t))},parse:function(e,t){const n=this.locale();return Ch(e,t,n.timeParse,n.utcParse)},preload:async function(e,t,n){const r=this,i=r._pending||function(e){let t;const n=new Promise((e=>t=e));return n.requests=0,n.done=()=>{0==--n.requests&&(e._pending=null,t(e))},e._pending=n}(r);i.requests+=1;const o=await r.request(t,n);return r.pulse(e,r.changeset().remove(Ii).insert(o.data||[])),i.done(),o},request:async function(e,t){const n=this;let r,i=0;try{r=await n.loader().load(e,{context:"dataflow",response:Eh(t&&t.type)});try{r=n.parse(r,t)}catch(t){i=-2,n.warn("Data ingestion failed",e,t)}}catch(t){i=-1,n.warn("Loading failed",e,t)}return{data:r,status:i}},events:function(e,t,n,r){const i=this,o=Yh(n,r),a=function(e){e.dataflow=i;try{o.receive(e)}catch(e){i.error(e)}finally{i.run()}};let s;s="string"==typeof e&&"undefined"!=typeof document?document.querySelectorAll(e):go(e);const l=s.length;for(let e=0;er._enqueue(e,!0))),r._touched=Dh(Oi);let a,s,l,c=0;try{for(;r._heap.size()>0;)a=r._heap.pop(),a.rank===a.qrank?(s=a.run(r._getPulse(a,e)),s.then?s=await s:s.async&&(i.push(s.async),s=Qh),s!==Qh&&a._targets&&a._targets.forEach((e=>r._enqueue(e))),++c):r._enqueue(a,!0)}catch(e){r._heap.clear(),l=e}if(r._input={},r._pulse=null,r.debug(`Pulse ${o}: ${c} operators`),l&&(r._postrun=[],r.error(l)),r._postrun.length){const e=r._postrun.sort(((e,t)=>t.priority-e.priority));r._postrun=[];for(let t=0;tr.runAsync(null,(()=>{e.forEach((e=>{try{e(r)}catch(e){r.error(e)}}))})))),r},run:function(e,t,n){return this._pulse?od(this):(this.evaluate(e,t,n),this)},runAsync:async function(e,t,n){for(;this._running;)await this._running;const r=()=>this._running=null;return(this._running=this.evaluate(e,t,n)).then(r,r),this._running},runAfter:function(e,t,n){if(this._pulse||t)this._postrun.push({priority:n||0,callback:e});else try{e(this)}catch(e){this.error(e)}},_enqueue:function(e,t){const n=e.stampe.pulse)),t):this._input[e.id]||function(e,t){return t&&t.stamp===e.stamp?t:(e=e.fork(),t&&t!==Qh&&(e.source=t.source),e)}(this._pulse,n&&n.pulse)}},No(ud,Wh,{run(e){if(e.stampthis.pulse=e)):t!==e.StopPropagation&&(this.pulse=t),t},evaluate(e){const t=this.marshall(e.stamp),n=this.transform(t,e);return t.clear(),n},transform(){}});const hd={};function dd(e){const t=fd(e);return t&&t.Definition||null}function fd(e){return e=e&&e.toLowerCase(),Mo(hd,e)?hd[e]:null}function pd(e,t){return et?1:e>=t?0:NaN}function md(e,t){let n;if(void 0===t)for(const t of e)null!=t&&(n=t)&&(n=t);else{let r=-1;for(let i of e)null!=(i=t(i,++r,e))&&(n=i)&&(n=i)}return n}function gd(e,t){let n;if(void 0===t)for(const t of e)null!=t&&(n>t||void 0===n&&t>=t)&&(n=t);else{let r=-1;for(let i of e)null!=(i=t(i,++r,e))&&(n>i||void 0===n&&i>=i)&&(n=i)}return n}function vd(e,t,n=0,r=e.length-1,i=pd){for(;r>n;){if(r-n>600){const o=r-n+1,a=t-n+1,s=Math.log(o),l=.5*Math.exp(2*s/3),c=.5*Math.sqrt(s*l*(o-l)/o)*(a-o/2<0?-1:1);vd(e,t,Math.max(n,Math.floor(t-a*l/o+c)),Math.min(r,Math.floor(t+(o-a)*l/o+c)),i)}const o=e[t];let a=n,s=r;for(yd(e,n,t),i(e[r],o)>0&&yd(e,n,r);a0;)--s}0===i(e[n],o)?yd(e,n,s):(++s,yd(e,s,r)),s<=t&&(n=s+1),t<=s&&(r=s-1)}return e}function yd(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function bd(e){return null===e?NaN:+e}function xd(e,t,n){if(e=Float64Array.from(function*(e,t){if(void 0===t)for(let t of e)null!=t&&(t=+t)>=t&&(yield t);else{let n=-1;for(let r of e)null!=(r=t(r,++n,e))&&(r=+r)>=r&&(yield r)}}(e,n)),r=e.length){if((t=+t)<=0||r<2)return gd(e);if(t>=1)return md(e);var r,i=(r-1)*t,o=Math.floor(i),a=md(vd(e,o).subarray(0,o+1));return a+(gd(e.subarray(o+1))-a)*(i-o)}}function wd(e,t){return xd(e,.5,t)}function*_d(e,t){if(null==t)for(let t of e)null!=t&&""!==t&&(t=+t)>=t&&(yield t);else{let n=-1;for(let r of e)r=t(r,++n,e),null!=r&&""!==r&&(r=+r)>=r&&(yield r)}}function kd(e,t,n){const r=Float64Array.from(_d(e,n));return r.sort(pd),t.map((e=>function(e,t,n=bd){if(r=e.length){if((t=+t)<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,i=(r-1)*t,o=Math.floor(i),a=+n(e[o],o,e);return a+(+n(e[o+1],o+1,e)-a)*(i-o)}}(r,e)))}function Ed(e,t){return kd(e,[.25,.5,.75],t)}function Cd(e,t){const n=e.length,r=function(e,t){const n=function(e,t){let n,r=0,i=0,o=0;if(void 0===t)for(let t of e)null!=t&&(t=+t)>=t&&(n=t-i,i+=n/++r,o+=n*(t-i));else{let a=-1;for(let s of e)null!=(s=t(s,++a,e))&&(s=+s)>=s&&(n=s-i,i+=n/++r,o+=n*(s-i))}if(r>1)return o/(r-1)}(e,t);return n?Math.sqrt(n):n}(e,t),i=Ed(e,t),o=(i[2]-i[0])/1.34;return 1.06*(Math.min(r,o)||r||Math.abs(i[0])||1)*Math.pow(n,-.2)}function Sd(e){const t=e.maxbins||20,n=e.base||10,r=Math.log(n),i=e.divide||[5,2];let o,a,s,l,c,u,h=e.extent[0],d=e.extent[1];const f=e.span||d-h||Math.abs(h)||1;if(e.step)o=e.step;else if(e.steps){for(l=f/t,c=0,u=e.steps.length;ct;)o*=n;for(c=0,u=i.length;c=s&&f/l<=t&&(o=l)}l=Math.log(o);const p=l>=0?0:1+~~(-l/r),m=Math.pow(n,-p-1);return(e.nice||void 0===e.nice)&&(l=Math.floor(h/o+m)*o,h=he);const i=e.length,o=new Float64Array(i);let a,s=0,l=1,c=r(e[0]),u=c,h=c+t;for(;l=h){for(u=(c+u)/2;s>1);ia;)e[i--]=e[o]}o=a,a=r}return e}(o,t+t/4):o}function Od(e){return function(){return(e=(1103515245*e+12345)%2147483647)/2147483647}}function Fd(e,t){let n,r,i;null==t&&(t=e,e=0);const o={min(e){return arguments.length?(n=e||0,i=r-n,o):n},max(e){return arguments.length?(r=e||0,i=r-n,o):r},sample:()=>n+Math.floor(i*Dd()),pdf:e=>e===Math.floor(e)&&e>=n&&e=r?1:(t-n+1)/i},icdf:e=>e>=0&&e<=1?n-1+Math.floor(e*i):NaN};return o.min(e).max(t)}const Pd=Math.sqrt(2*Math.PI),Nd=Math.SQRT2;let Id=NaN;function Bd(e,t){e=e||0,t=null==t?1:t;let n,r,i=0,o=0;if(Id==Id)i=Id,Id=NaN;else{do{i=2*Dd()-1,o=2*Dd()-1,n=i*i+o*o}while(0===n||n>1);r=Math.sqrt(-2*Math.log(n)/n),i*=r,Id=o*r}return e+i*t}function jd(e,t,n){const r=(e-(t||0))/(n=null==n?1:n);return Math.exp(-.5*r*r)/(n*Pd)}function Ld(e,t,n){const r=(e-(t=t||0))/(n=null==n?1:n),i=Math.abs(r);let o;if(i>37)o=0;else{const e=Math.exp(-i*i/2);let t;i<7.07106781186547?(t=.0352624965998911*i+.700383064443688,t=t*i+6.37396220353165,t=t*i+33.912866078383,t=t*i+112.079291497871,t=t*i+221.213596169931,t=t*i+220.206867912376,o=e*t,t=.0883883476483184*i+1.75566716318264,t=t*i+16.064177579207,t=t*i+86.7807322029461,t=t*i+296.564248779674,t=t*i+637.333633378831,t=t*i+793.826512519948,t=t*i+440.413735824752,o/=t):(t=i+.65,t=i+4/t,t=i+3/t,t=i+2/t,t=i+1/t,o=e/t/2.506628274631)}return r>0?1-o:o}function zd(e,t,n){return e<0||e>1?NaN:(t||0)+(null==n?1:n)*Nd*function(e){let t,n=-Math.log((1-e)*(1+e));return n<6.25?(n-=3.125,t=-364441206401782e-35,t=t*n-16850591381820166e-35,t=128584807152564e-32+t*n,t=11157877678025181e-33+t*n,t=t*n-1333171662854621e-31,t=20972767875968562e-33+t*n,t=6637638134358324e-30+t*n,t=t*n-4054566272975207e-29,t=t*n-8151934197605472e-29,t=26335093153082323e-28+t*n,t=t*n-12975133253453532e-27,t=t*n-5415412054294628e-26,t=1.0512122733215323e-9+t*n,t=t*n-4.112633980346984e-9,t=t*n-2.9070369957882005e-8,t=4.2347877827932404e-7+t*n,t=t*n-13654692000834679e-22,t=t*n-13882523362786469e-21,t=.00018673420803405714+t*n,t=t*n-.000740702534166267,t=t*n-.006033670871430149,t=.24015818242558962+t*n,t=1.6536545626831027+t*n):n<16?(n=Math.sqrt(n)-3.25,t=2.2137376921775787e-9,t=9.075656193888539e-8+t*n,t=t*n-2.7517406297064545e-7,t=1.8239629214389228e-8+t*n,t=15027403968909828e-22+t*n,t=t*n-4013867526981546e-21,t=29234449089955446e-22+t*n,t=12475304481671779e-21+t*n,t=t*n-47318229009055734e-21,t=6828485145957318e-20+t*n,t=24031110387097894e-21+t*n,t=t*n-.0003550375203628475,t=.0009532893797373805+t*n,t=t*n-.0016882755560235047,t=.002491442096107851+t*n,t=t*n-.003751208507569241,t=.005370914553590064+t*n,t=1.0052589676941592+t*n,t=3.0838856104922208+t*n):Number.isFinite(n)?(n=Math.sqrt(n)-5,t=-27109920616438573e-27,t=t*n-2.555641816996525e-10,t=1.5076572693500548e-9+t*n,t=t*n-3.789465440126737e-9,t=7.61570120807834e-9+t*n,t=t*n-1.496002662714924e-8,t=2.914795345090108e-8+t*n,t=t*n-6.771199775845234e-8,t=2.2900482228026655e-7+t*n,t=t*n-9.9298272942317e-7,t=4526062597223154e-21+t*n,t=t*n-1968177810553167e-20,t=7599527703001776e-20+t*n,t=t*n-.00021503011930044477,t=t*n-.00013871931833623122,t=1.0103004648645344+t*n,t=4.849906401408584+t*n):t=1/0,t*e}(2*e-1)}function Rd(e,t){let n,r;const i={mean(e){return arguments.length?(n=e||0,i):n},stdev(e){return arguments.length?(r=null==e?1:e,i):r},sample:()=>Bd(n,r),pdf:e=>jd(e,n,r),cdf:e=>Ld(e,n,r),icdf:e=>zd(e,n,r)};return i.mean(e).stdev(t)}function $d(e,t){const n=Rd();let r=0;const i={data(n){return arguments.length?(e=n,r=n?n.length:0,i.bandwidth(t)):e},bandwidth(n){return arguments.length?(!(t=n)&&e&&(t=Cd(e)),i):t},sample:()=>e[~~(Dd()*r)]+t*n.sample(),pdf(i){let o=0,a=0;for(;aHd(n,r),pdf:e=>Ud(e,n,r),cdf:e=>qd(e,n,r),icdf:e=>Wd(e,n,r)};return i.mean(e).stdev(t)}function Gd(e,t){let n,r=0;const i={weights(e){return arguments.length?(n=function(e){const t=[];let n,i=0;for(n=0;n=t&&e<=n?1/(n-t):0}function Jd(e,t,n){return null==n&&(n=null==t?1:t,t=0),en?1:(e-t)/(n-t)}function Zd(e,t,n){return null==n&&(n=null==t?1:t,t=0),e>=0&&e<=1?t+e*(n-t):NaN}function Kd(e,t){let n,r;const i={min(e){return arguments.length?(n=e||0,i):n},max(e){return arguments.length?(r=null==e?1:e,i):r},sample:()=>Xd(n,r),pdf:e=>Yd(e,n,r),cdf:e=>Jd(e,n,r),icdf:e=>Zd(e,n,r)};return null==t&&(t=null==e?1:e,e=0),i.min(e).max(t)}function Qd(e,t,n,r){const i=r-e*e,o=Math.abs(i)<1e-24?0:(n-e*t)/i;return[t-o*e,o]}function ef(e,t,n,r){e=e.filter((e=>{let r=t(e),i=n(e);return null!=r&&(r=+r)>=r&&null!=i&&(i=+i)>=i})),r&&e.sort(((e,n)=>t(e)-t(n)));const i=e.length,o=new Float64Array(i),a=new Float64Array(i);let s,l,c,u=0,h=0,d=0;for(c of e)o[u]=s=+t(c),a[u]=l=+n(c),++u,h+=(s-h)/u,d+=(l-d)/u;for(u=0;u=i&&null!=o&&(o=+o)>=o&&r(i,o,++a)}function nf(e,t,n,r,i){let o=0,a=0;return tf(e,t,n,((e,t)=>{const n=t-i(e),s=t-r;o+=n*n,a+=s*s})),1-o/a}function rf(e,t,n){let r=0,i=0,o=0,a=0,s=0;tf(e,t,n,((e,t)=>{++s,r+=(e-r)/s,i+=(t-i)/s,o+=(e*t-o)/s,a+=(e*e-a)/s}));const l=Qd(r,i,o,a),c=e=>l[0]+l[1]*e;return{coef:l,predict:c,rSquared:nf(e,t,n,i,c)}}function of(e,t,n){let r=0,i=0,o=0,a=0,s=0;tf(e,t,n,((e,t)=>{++s,e=Math.log(e),r+=(e-r)/s,i+=(t-i)/s,o+=(e*t-o)/s,a+=(e*e-a)/s}));const l=Qd(r,i,o,a),c=e=>l[0]+l[1]*Math.log(e);return{coef:l,predict:c,rSquared:nf(e,t,n,i,c)}}function af(e,t,n){const[r,i,o,a]=ef(e,t,n);let s,l,c,u=0,h=0,d=0,f=0,p=0;tf(e,t,n,((e,t)=>{s=r[p++],l=Math.log(t),c=s*t,u+=(t*l-u)/p,h+=(c-h)/p,d+=(c*l-d)/p,f+=(s*c-f)/p}));const[m,g]=Qd(h/a,u/a,d/a,f/a),v=e=>Math.exp(m+g*(e-o));return{coef:[Math.exp(m-g*o),g],predict:v,rSquared:nf(e,t,n,a,v)}}function sf(e,t,n){let r=0,i=0,o=0,a=0,s=0,l=0;tf(e,t,n,((e,t)=>{const n=Math.log(e),c=Math.log(t);++l,r+=(n-r)/l,i+=(c-i)/l,o+=(n*c-o)/l,a+=(n*n-a)/l,s+=(t-s)/l}));const c=Qd(r,i,o,a),u=e=>c[0]*Math.pow(e,c[1]);return c[0]=Math.exp(c[0]),{coef:c,predict:u,rSquared:nf(e,t,n,s,u)}}function lf(e,t,n){const[r,i,o,a]=ef(e,t,n),s=r.length;let l,c,u,h,d=0,f=0,p=0,m=0,g=0;for(l=0;lb*(e-=o)*e+x*e+w+a;return{coef:[w-x*o+b*o*o+a,x-2*b*o,b],predict:_,rSquared:nf(e,t,n,a,_)}}function cf(e,t,n,r){if(1===r)return rf(e,t,n);if(2===r)return lf(e,t,n);const[i,o,a,s]=ef(e,t,n),l=i.length,c=[],u=[],h=r+1;let d,f,p,m,g;for(d=0;dMath.abs(e[r][a])&&(a=i);for(o=r;o=r;o--)e[o][i]-=e[o][r]*e[r][i]/e[r][r]}for(i=t-1;i>=0;--i){for(s=0,o=i+1;o{e-=a;let t=s+v[0]+v[1]*e+v[2]*e*e;for(d=3;d=0;--o)for(s=t[o],l=1,i[o]+=s,a=1;a<=o;++a)l*=(o+1-a)/a,i[o-a]+=s*Math.pow(n,a)*l;return i[0]+=r,i}function hf(e,t,n,r){const[i,o,a,s]=ef(e,t,n,!0),l=i.length,c=Math.max(2,~~(r*l)),u=new Float64Array(l),h=new Float64Array(l),d=new Float64Array(l).fill(1);for(let e=-1;++e<=2;){const t=[0,c-1];for(let e=0;ei[a]-n?r:a;let l=0,c=0,f=0,p=0,m=0;const g=1/Math.abs(i[s]-n||1);for(let e=r;e<=a;++e){const t=i[e],r=o[e],a=df(Math.abs(n-t)*g)*d[e],s=t*a;l+=a,c+=s,f+=r*a,p+=r*s,m+=t*s}const[v,y]=Qd(c/l,f/l,p/l,m/l);u[e]=v+y*n,h[e]=Math.abs(o[e]-u[e]),ff(i,e+1,t)}if(2===e)break;const n=wd(h);if(Math.abs(n)<1e-12)break;for(let e,t,r=0;r=1?1e-12:(t=1-e*e)*t}return function(e,t,n,r){const i=e.length,o=[];let a,s=0,l=0,c=[];for(;s=e.length))for(;t>i&&e[o]-r<=r-e[i];)n[0]=++i,n[1]=o,++o}const pf=.5*Math.PI/180;function mf(e,t,n,r){n=n||25,r=Math.max(n,r||200);const i=t=>[t,e(t)],o=t[0],a=t[1],s=a-o,l=s/r,c=[i(o)],u=[];if(n===r){for(let e=1;e0;)u.push(i(o+e/n*s));let h=c[0],d=u[u.length-1];const f=1/s,p=function(e,t){let n=e,r=e;const i=t.length;for(let e=0;er&&(r=i)}return 1/(r-n)}(h[1],u);for(;d;){const e=i((h[0]+d[0])/2);e[0]-h[0]>=l&&gf(h,e,d,f,p)>pf?u.push(e):(h=d,c.push(d),u.pop()),d=u[u.length-1]}return c}function gf(e,t,n,r,i){const o=Math.atan2(i*(n[1]-e[1]),r*(n[0]-e[0])),a=Math.atan2(i*(t[1]-e[1]),r*(t[0]-e[0]));return Math.abs(o-a)}function vf(e,t){let n;if(void 0===t)for(const t of e)null!=t&&(n=t)&&(n=t);else{let r=-1;for(let i of e)null!=(i=t(i,++r,e))&&(n=i)&&(n=i)}return n}function yf(e,t){let n;if(void 0===t)for(const t of e)null!=t&&(n>t||void 0===n&&t>=t)&&(n=t);else{let r=-1;for(let i of e)null!=(i=t(i,++r,e))&&(n>i||void 0===n&&i>=i)&&(n=i)}return n}function bf(e,t){return et?1:e>=t?0:NaN}function xf(e,t,n=0,r=e.length-1,i=bf){for(;r>n;){if(r-n>600){const o=r-n+1,a=t-n+1,s=Math.log(o),l=.5*Math.exp(2*s/3),c=.5*Math.sqrt(s*l*(o-l)/o)*(a-o/2<0?-1:1);xf(e,t,Math.max(n,Math.floor(t-a*l/o+c)),Math.min(r,Math.floor(t+(o-a)*l/o+c)),i)}const o=e[t];let a=n,s=r;for(wf(e,n,t),i(e[r],o)>0&&wf(e,n,r);a0;)--s}0===i(e[n],o)?wf(e,n,s):(++s,wf(e,s,r)),s<=t&&(n=s+1),t<=s&&(r=s-1)}return e}function wf(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function _f(e,t,n){if(e=Float64Array.from(function*(e,t){if(void 0===t)for(let t of e)null!=t&&(t=+t)>=t&&(yield t);else{let n=-1;for(let r of e)null!=(r=t(r,++n,e))&&(r=+r)>=r&&(yield r)}}(e,n)),r=e.length){if((t=+t)<=0||r<2)return yf(e);if(t>=1)return vf(e);var r,i=(r-1)*t,o=Math.floor(i),a=vf(xf(e,o).subarray(0,o+1));return a+(yf(e.subarray(o+1))-a)*(i-o)}}function kf(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((t-e)/n)),o=new Array(i);++r{const n=t.length;let r=1,i=String(t[0](e));for(;r{},Df={init:Sf,add:Sf,rem:Sf,idx:0},Af={values:{init:e=>e.cell.store=!0,value:e=>e.cell.data.values(),idx:-1},count:{value:e=>e.cell.num},__count__:{value:e=>e.missing+e.valid},missing:{value:e=>e.missing},valid:{value:e=>e.valid},sum:{init:e=>e.sum=0,value:e=>e.sum,add:(e,t)=>e.sum+=+t,rem:(e,t)=>e.sum-=t},product:{init:e=>e.product=1,value:e=>e.valid?e.product:void 0,add:(e,t)=>e.product*=t,rem:(e,t)=>e.product/=t},mean:{init:e=>e.mean=0,value:e=>e.valid?e.mean:void 0,add:(e,t)=>(e.mean_d=t-e.mean,e.mean+=e.mean_d/e.valid),rem:(e,t)=>(e.mean_d=t-e.mean,e.mean-=e.valid?e.mean_d/e.valid:e.mean)},average:{value:e=>e.valid?e.mean:void 0,req:["mean"],idx:1},variance:{init:e=>e.dev=0,value:e=>e.valid>1?e.dev/(e.valid-1):void 0,add:(e,t)=>e.dev+=e.mean_d*(t-e.mean),rem:(e,t)=>e.dev-=e.mean_d*(t-e.mean),req:["mean"],idx:1},variancep:{value:e=>e.valid>1?e.dev/e.valid:void 0,req:["variance"],idx:2},stdev:{value:e=>e.valid>1?Math.sqrt(e.dev/(e.valid-1)):void 0,req:["variance"],idx:2},stdevp:{value:e=>e.valid>1?Math.sqrt(e.dev/e.valid):void 0,req:["variance"],idx:2},stderr:{value:e=>e.valid>1?Math.sqrt(e.dev/(e.valid*(e.valid-1))):void 0,req:["variance"],idx:2},distinct:{value:e=>e.cell.data.distinct(e.get),req:["values"],idx:3},ci0:{value:e=>e.cell.data.ci0(e.get),req:["values"],idx:3},ci1:{value:e=>e.cell.data.ci1(e.get),req:["values"],idx:3},median:{value:e=>e.cell.data.q2(e.get),req:["values"],idx:3},q1:{value:e=>e.cell.data.q1(e.get),req:["values"],idx:3},q3:{value:e=>e.cell.data.q3(e.get),req:["values"],idx:3},min:{init:e=>e.min=void 0,value:e=>e.min=Number.isNaN(e.min)?e.cell.data.min(e.get):e.min,add:(e,t)=>{(t{t<=e.min&&(e.min=NaN)},req:["values"],idx:4},max:{init:e=>e.max=void 0,value:e=>e.max=Number.isNaN(e.max)?e.cell.data.max(e.get):e.max,add:(e,t)=>{(t>e.max||void 0===e.max)&&(e.max=t)},rem:(e,t)=>{t>=e.max&&(e.max=NaN)},req:["values"],idx:4},argmin:{init:e=>e.argmin=void 0,value:e=>e.argmin||e.cell.data.argmin(e.get),add:(e,t,n)=>{t{t<=e.min&&(e.argmin=void 0)},req:["min","values"],idx:3},argmax:{init:e=>e.argmax=void 0,value:e=>e.argmax||e.cell.data.argmax(e.get),add:(e,t,n)=>{t>e.max&&(e.argmax=n)},rem:(e,t)=>{t>=e.max&&(e.argmax=void 0)},req:["max","values"],idx:3}},Tf=Object.keys(Af);function Mf(e,t){return Af[e](t)}function Of(e,t){return e.idx-t.idx}function Ff(){this.valid=0,this.missing=0,this._ops.forEach((e=>e.init(this)))}function Pf(e,t){null!=e&&""!==e?e==e&&(++this.valid,this._ops.forEach((n=>n.add(this,e,t)))):++this.missing}function Nf(e,t){null!=e&&""!==e?e==e&&(--this.valid,this._ops.forEach((n=>n.rem(this,e,t)))):--this.missing}function If(e){return this._out.forEach((t=>e[t.out]=t.value(this))),e}function Bf(e,t){const n=t||Fi,r=function(e){const t={};e.forEach((e=>t[e.name]=e));const n=e=>{e.req&&e.req.forEach((e=>{t[e]||n(t[e]=Af[e]())}))};return e.forEach(n),Object.values(t).sort(Of)}(e),i=e.slice().sort(Of);function o(e){this._ops=r,this._out=i,this.cell=e,this.init()}return o.prototype.init=Ff,o.prototype.add=Pf,o.prototype.rem=Nf,o.prototype.set=If,o.prototype.get=n,o.fields=e.map((e=>e.out)),o}function jf(e){this._key=e?Mi(e):Fh,this.reset()}Tf.forEach((e=>{Af[e]=function(e,t){return n=>So({name:e,out:n||e},Df,t)}(e,Af[e])}));const Lf=jf.prototype;function zf(e){ud.call(this,null,e),this._adds=[],this._mods=[],this._alen=0,this._mlen=0,this._drop=!0,this._cross=!1,this._dims=[],this._dnames=[],this._measures=[],this._countOnly=!1,this._counts=null,this._prev=null,this._inputs=null,this._outputs=null}function Rf(e){ud.call(this,null,e)}function $f(e,t,n){const r=e;let i=t||[],o=n||[],a={},s=0;return{add:e=>o.push(e),remove:e=>a[r(e)]=++s,size:()=>i.length,data:(e,t)=>(s&&(i=i.filter((e=>!a[r(e)])),a={},s=0),t&&e&&i.sort(e),o.length&&(i=e?Wo(e,i,o.sort(e)):i.concat(o),o=[]),i)}}function Hf(e){ud.call(this,[],e)}function Uf(e){Wh.call(this,null,qf,e)}function qf(e){return this.value&&!e.modified()?this.value:bo(e.fields,e.orders)}function Wf(e){ud.call(this,null,e)}function Vf(e){ud.call(this,null,e)}Lf.reset=function(){this._add=[],this._rem=[],this._ext=null,this._get=null,this._q=null},Lf.add=function(e){this._add.push(e)},Lf.rem=function(e){this._rem.push(e)},Lf.values=function(){if(this._get=null,0===this._rem.length)return this._add;const e=this._add,t=this._rem,n=this._key,r=e.length,i=t.length,o=Array(r-i),a={};let s,l,c;for(s=0;s=0;)r=e(t[i])+"",Mo(n,r)||(n[r]=1,++o);return o},Lf.extent=function(e){if(this._get!==e||!this._ext){const t=this.values(),n=Ao(t,e);this._ext=[t[n[0]],t[n[1]]],this._get=e}return this._ext},Lf.argmin=function(e){return this.extent(e)[0]||{}},Lf.argmax=function(e){return this.extent(e)[1]||{}},Lf.min=function(e){const t=this.extent(e)[0];return null!=t?e(t):void 0},Lf.max=function(e){const t=this.extent(e)[1];return null!=t?e(t):void 0},Lf.quartile=function(e){return this._get===e&&this._q||(this._q=Ed(this.values(),e),this._get=e),this._q},Lf.q1=function(e){return this.quartile(e)[0]},Lf.q2=function(e){return this.quartile(e)[1]},Lf.q3=function(e){return this.quartile(e)[2]},Lf.ci=function(e){return this._get===e&&this._ci||(this._ci=Td(this.values(),1e3,.05,e),this._get=e),this._ci},Lf.ci0=function(e){return this.ci(e)[0]},Lf.ci1=function(e){return this.ci(e)[1]},zf.Definition={type:"Aggregate",metadata:{generates:!0,changes:!0},params:[{name:"groupby",type:"field",array:!0},{name:"ops",type:"enum",array:!0,values:Tf},{name:"fields",type:"field",null:!0,array:!0},{name:"as",type:"string",null:!0,array:!0},{name:"drop",type:"boolean",default:!0},{name:"cross",type:"boolean",default:!1},{name:"key",type:"field"}]},No(zf,ud,{transform(e,t){const n=this,r=t.fork(t.NO_SOURCE|t.NO_FIELDS),i=e.modified();return n.stamp=r.stamp,n.value&&(i||t.modified(n._inputs,!0))?(n._prev=n.value,n.value=i?n.init(e):{},t.visit(t.SOURCE,(e=>n.add(e)))):(n.value=n.value||n.init(e),t.visit(t.REM,(e=>n.rem(e))),t.visit(t.ADD,(e=>n.add(e)))),r.modifies(n._outputs),n._drop=!1!==e.drop,e.cross&&n._dims.length>1&&(n._drop=!1,n.cross()),t.clean()&&n._drop&&r.clean(!0).runAfter((()=>this.clean())),n.changes(r)},cross(){const e=this,t=e.value,n=e._dnames,r=n.map((()=>({}))),i=n.length;function o(e){let t,o,a,s;for(t in e)for(a=e[t].tuple,o=0;o{const t=ki(e);return i(e),n.push(t),t})),this.cellkey=e.key?e.key:Ef(this._dims),this._countOnly=!0,this._counts=[],this._measures=[];const o=e.fields||[null],a=e.ops||["count"],s=e.as||[],l=o.length,c={};let u,h,d,f,p,m;for(l!==a.length&&Ai("Unmatched number of fields and aggregate ops."),m=0;mBf(e,e.field))),{}},cellkey:Ef(),cell(e,t){let n=this.value[e];return n?0===n.num&&this._drop&&n.stamp{const t=r(e);e[s]=t,e[l]=null==t?null:i+o*(1+(t-i)/o)}:e=>e[s]=r(e)),t.modifies(n?a:s)},_bins(e){if(this.value&&!e.modified())return this.value;const t=e.field,n=Sd(e),r=n.step;let i,o,a=n.start,s=a+Math.ceil((n.stop-a)/r)*r;null!=(i=e.anchor)&&(o=i-(a+r*Math.floor((i-a)/r)),a+=o,s+=o);const l=function(e){let n=Zi(t(e));return null==n?null:ns?1/0:(n=Math.max(a,Math.min(n,s-r)),a+r*Math.floor(1e-14+(n-a)/r))};return l.start=a,l.stop=n.stop,l.step=r,this.value=_i(l,Ei(t),e.name||"bin_"+ki(t))}}),Hf.Definition={type:"Collect",metadata:{source:!0},params:[{name:"sort",type:"compare"}]},No(Hf,ud,{transform(e,t){const n=t.fork(t.ALL),r=$f(Fh,this.value,n.materialize(n.ADD).add),i=e.sort,o=t.changed()||i&&(e.modified("sort")||t.modified(i.fields));return n.visit(n.REM,r.remove),this.modified(o),this.value=n.source=r.data(Lh(i),o),t.source&&t.source.root&&(this.value.root=t.source.root),n}}),No(Uf,Wh),Wf.Definition={type:"CountPattern",metadata:{generates:!0,changes:!0},params:[{name:"field",type:"field",required:!0},{name:"case",type:"enum",values:["upper","lower","mixed"],default:"mixed"},{name:"pattern",type:"string",default:'[\\w"]+'},{name:"stopwords",type:"string",default:""},{name:"as",type:"string",array:!0,length:2,default:["text","count"]}]},No(Wf,ud,{transform(e,t){const n=t=>n=>{for(var r,i=function(e,t,n){switch(t){case"upper":e=e.toUpperCase();break;case"lower":e=e.toLowerCase()}return e.match(n)}(s(n),e.case,o)||[],l=0,c=i.length;li[e]=1+(i[e]||0))),u=n((e=>i[e]-=1));return r?t.visit(t.SOURCE,c):(t.visit(t.ADD,c),t.visit(t.REM,u)),this._finish(t,l)},_parameterCheck(e,t){let n=!1;return!e.modified("stopwords")&&this._stop||(this._stop=new RegExp("^"+(e.stopwords||"")+"$","i"),n=!0),!e.modified("pattern")&&this._match||(this._match=new RegExp(e.pattern||"[\\w']+","g"),n=!0),(e.modified("field")||t.modified(e.field.fields))&&(n=!0),n&&(this._counts={}),n},_finish(e,t){const n=this._counts,r=this._tuples||(this._tuples={}),i=t[0],o=t[1],a=e.fork(e.NO_SOURCE|e.NO_FIELDS);let s,l,c;for(s in n)l=r[s],c=n[s]||0,!l&&c?(r[s]=l=Nh({}),l[i]=s,l[o]=c,a.add.push(l)):0===c?(l&&a.rem.push(l),n[s]=null,r[s]=null):l[o]!==c&&(l[o]=c,a.mod.push(l));return a.modifies(t)}}),Vf.Definition={type:"Cross",metadata:{generates:!0},params:[{name:"filter",type:"expr"},{name:"as",type:"string",array:!0,length:2,default:["a","b"]}]},No(Vf,ud,{transform(e,t){const n=t.fork(t.NO_SOURCE),r=e.as||["a","b"],i=r[0],o=r[1],a=!this.value||t.changed(t.ADD_REM)||e.modified("as")||e.modified("filter");let s=this.value;return a?(s&&(n.rem=s),s=t.materialize(t.SOURCE).source,n.add=this.value=function(e,t,n,r){for(var i,o,a=[],s={},l=e.length,c=0;cXf(e,t)))):"function"==typeof r[n]&&r[n](e[n]);return r}function Yf(e){ud.call(this,null,e)}const Jf=[{key:{function:"normal"},params:[{name:"mean",type:"number",default:0},{name:"stdev",type:"number",default:1}]},{key:{function:"lognormal"},params:[{name:"mean",type:"number",default:0},{name:"stdev",type:"number",default:1}]},{key:{function:"uniform"},params:[{name:"min",type:"number",default:0},{name:"max",type:"number",default:1}]},{key:{function:"kde"},params:[{name:"field",type:"field",required:!0},{name:"from",type:"data"},{name:"bandwidth",type:"number",default:0}]}],Zf={key:{function:"mixture"},params:[{name:"distributions",type:"param",array:!0,params:Jf},{name:"weights",type:"number",array:!0}]};function Kf(e,t){return e?e.map(((e,n)=>t[n]||ki(e))):null}function Qf(e,t,n){const r=[],i=e=>e(l);let o,a,s,l,c,u;if(null==t)r.push(e.map(n));else for(o={},a=0,s=e.length;at(n,e)),Ei(t),ki(t))}function rp(e){ud.call(this,[void 0,void 0],e)}function ip(e,t){Wh.call(this,e),this.parent=t,this.count=0}function op(e){ud.call(this,{},e),this._keys=Fo();const t=this._targets=[];t.active=0,t.forEach=e=>{for(let n=0,r=t.active;nMi(e))):Mi(e.name,e.as)}function lp(e){ud.call(this,Fo(),e)}function cp(e){ud.call(this,[],e)}function up(e){ud.call(this,[],e)}function hp(e){ud.call(this,null,e)}function dp(e){ud.call(this,[],e)}Yf.Definition={type:"Density",metadata:{generates:!0},params:[{name:"extent",type:"number",array:!0,length:2},{name:"steps",type:"number"},{name:"minsteps",type:"number",default:25},{name:"maxsteps",type:"number",default:200},{name:"method",type:"string",default:"pdf",values:["pdf","cdf"]},{name:"distribution",type:"param",params:Jf.concat(Zf)},{name:"as",type:"string",array:!0,default:["value","density"]}]},No(Yf,ud,{transform(e,t){const n=t.fork(t.NO_SOURCE|t.NO_FIELDS);if(!this.value||t.changed()||e.modified()){const r=Xf(e.distribution,function(e){return()=>e.materialize(e.SOURCE).source}(t)),i=e.steps||e.minsteps||25,o=e.steps||e.maxsteps||200;let a=e.method||"pdf";"pdf"!==a&&"cdf"!==a&&Ai("Invalid density method: "+a),e.extent||r.data||Ai("Missing density extent parameter."),a=r[a];const s=e.as||["value","density"],l=mf(a,e.extent||Do(r.data()),i,o).map((e=>{const t={};return t[s[0]]=e[0],t[s[1]]=e[1],Nh(t)}));this.value&&(n.rem=this.value),this.value=n.add=n.source=l}return n}}),ep.Definition={type:"DotBin",metadata:{modifies:!0},params:[{name:"field",type:"field",required:!0},{name:"groupby",type:"field",array:!0},{name:"step",type:"number"},{name:"smooth",type:"boolean",default:!1},{name:"as",type:"string",default:"bin"}]},No(ep,ud,{transform(e,t){if(this.value&&!e.modified()&&!t.changed())return t;const n=t.materialize(t.SOURCE).source,r=Qf(t.source,e.groupby,Fi),i=e.smooth||!1,o=e.field,a=e.step||((e,t)=>Xo(Do(e,t))/30)(n,o),s=Lh(((e,t)=>o(e)-o(t))),l=e.as||"bin",c=r.length;let u,h=1/0,d=-1/0,f=0;for(;fd&&(d=t),e[++u][l]=t}return this.value={start:h,stop:d,step:a},t.reflow(!0).modifies(l)}}),No(tp,Wh),rp.Definition={type:"Extent",metadata:{},params:[{name:"field",type:"field",required:!0}]},No(rp,ud,{transform(e,t){const n=this.value,r=e.field,i=t.changed()||t.modified(r.fields)||e.modified("field");let o=n[0],a=n[1];if((i||null==o)&&(o=1/0,a=-1/0),t.visit(i?t.SOURCE:t.ADD,(e=>{const t=Zi(r(e));null!=t&&(ta&&(a=t))})),!Number.isFinite(o)||!Number.isFinite(a)){let e=ki(r);e&&(e=` for field "${e}"`),t.dataflow.warn(`Infinite extent${e}: [${o}, ${a}]`),o=a=void 0}this.value=[o,a]}}),No(ip,Wh,{connect(e){return this.detachSubflow=e.detachSubflow,this.targets().add(e),e.source=this},add(e){this.count+=1,this.value.add.push(e)},rem(e){this.count-=1,this.value.rem.push(e)},mod(e){this.value.mod.push(e)},init(e){this.value.init(e,e.NO_SOURCE)},evaluate(){return this.value}}),No(op,ud,{activate(e){this._targets[this._targets.active++]=e},subflow(e,t,n,r){const i=this.value;let o,a,s=Mo(i,e)&&i[e];return s?s.value.stampe&&e.count>0));this.initTargets(e)}},initTargets(e){const t=this._targets,n=t.length,r=e?e.length:0;let i=0;for(;ithis.subflow(e,i,t);return this._group=e.group||{},this.initTargets(),t.visit(t.REM,(e=>{const t=Fh(e),n=o.get(t);void 0!==n&&(o.delete(t),s(n).rem(e))})),t.visit(t.ADD,(e=>{const t=r(e);o.set(Fh(e),t),s(t).add(e)})),a||t.modified(r.fields)?t.visit(t.MOD,(e=>{const t=Fh(e),n=o.get(t),i=r(e);n===i?s(i).mod(e):(o.set(t,i),s(n).rem(e),s(i).add(e))})):t.changed(t.MOD)&&t.visit(t.MOD,(e=>{s(o.get(Fh(e))).mod(e)})),a&&t.visit(t.REFLOW,(e=>{const t=Fh(e),n=o.get(t),i=r(e);n!==i&&(o.set(t,i),s(n).rem(e),s(i).add(e))})),t.clean()?n.runAfter((()=>{this.clean(),o.clean()})):o.empty>n.cleanThreshold&&n.runAfter(o.clean),t}}),No(ap,Wh),lp.Definition={type:"Filter",metadata:{changes:!0},params:[{name:"expr",type:"expr",required:!0}]},No(lp,ud,{transform(e,t){const n=t.dataflow,r=this.value,i=t.fork(),o=i.add,a=i.rem,s=i.mod,l=e.expr;let c=!0;function u(t){const n=Fh(t),i=l(t,e),u=r.get(n);i&&u?(r.delete(n),o.push(t)):i||u?c&&i&&!u&&s.push(t):(r.set(n,1),a.push(t))}return t.visit(t.REM,(e=>{const t=Fh(e);r.has(t)?r.delete(t):a.push(e)})),t.visit(t.ADD,(t=>{l(t,e)?o.push(t):r.set(Fh(t),1)})),t.visit(t.MOD,u),e.modified()&&(c=!1,t.visit(t.REFLOW,u)),r.empty>n.cleanThreshold&&n.runAfter(r.clean),i}}),cp.Definition={type:"Flatten",metadata:{generates:!0},params:[{name:"fields",type:"field",array:!0,required:!0},{name:"index",type:"string"},{name:"as",type:"string",array:!0}]},No(cp,ud,{transform(e,t){const n=t.fork(t.NO_SOURCE),r=e.fields,i=Kf(r,e.as||[]),o=e.index||null,a=i.length;return n.rem=this.value,t.visit(t.SOURCE,(e=>{const t=r.map((t=>t(e))),s=t.reduce(((e,t)=>Math.max(e,t.length)),0);let l,c,u,h=0;for(;h{for(let t,o=0;ot[r]=n(t,e)))}}),No(dp,ud,{transform(e,t){const n=t.fork(t.ALL),r=e.generator;let i,o,a,s=this.value,l=e.size-s.length;if(l>0){for(i=[];--l>=0;)i.push(a=Nh(r(e))),s.push(a);n.add=n.add.length?n.materialize(n.ADD).add.concat(i):i}else o=s.slice(0,-l),n.rem=n.rem.length?n.materialize(n.REM).rem.concat(o):o,s=s.slice(-l);return n.source=this.value=s,n}});const fp={value:"value",median:function(e,t){return _f(e,.5,t)},mean:function(e,t){let n=0,r=0;if(void 0===t)for(let t of e)null!=t&&(t=+t)>=t&&(++n,r+=t);else{let i=-1;for(let o of e)null!=(o=t(o,++i,e))&&(o=+o)>=o&&(++n,r+=o)}if(n)return r/n},min:yf,max:vf},pp=[];function mp(e){ud.call(this,[],e)}function gp(e){zf.call(this,e)}function vp(e){ud.call(this,null,e)}function yp(e){Wh.call(this,null,bp,e)}function bp(e){return this.value&&!e.modified()?this.value:Ho(e.fields,e.flat)}function xp(e){ud.call(this,[],e),this._pending=null}function wp(e,t,n){n.forEach(Nh);const r=t.fork(t.NO_FIELDS&t.NO_SOURCE);return r.rem=e.value,e.value=r.source=r.add=n,e._pending=null,r.rem.length&&r.clean(!0),r}function _p(e){ud.call(this,{},e)}function kp(e){Wh.call(this,null,Ep,e)}function Ep(e){if(this.value&&!e.modified())return this.value;const t=e.extents,n=t.length;let r,i,o=1/0,a=-1/0;for(r=0;ra&&(a=i[1]);return[o,a]}function Cp(e){Wh.call(this,null,Sp,e)}function Sp(e){return this.value&&!e.modified()?this.value:e.values.reduce(((e,t)=>e.concat(t)),[])}function Dp(e){ud.call(this,null,e)}function Ap(e){zf.call(this,e)}function Tp(e){op.call(this,e)}function Mp(e){ud.call(this,null,e)}function Op(e){ud.call(this,null,e)}function Fp(e){ud.call(this,null,e)}function Pp(e){ud.call(this,null,e)}function Np(e){ud.call(this,[],e),this.count=0}function Ip(e){ud.call(this,null,e)}function Bp(e){ud.call(this,null,e),this.modified(!0)}function jp(e){ud.call(this,null,e)}mp.Definition={type:"Impute",metadata:{changes:!0},params:[{name:"field",type:"field",required:!0},{name:"key",type:"field",required:!0},{name:"keyvals",array:!0},{name:"groupby",type:"field",array:!0},{name:"method",type:"enum",default:"value",values:["value","mean","median","max","min"]},{name:"value",default:0}]},No(mp,ud,{transform(e,t){var n,r,i,o,a,s,l,c,u,h,d=t.fork(t.ALL),f=function(e){var t,n=e.method||fp.value;if(null!=fp[n])return n===fp.value?(t=void 0!==e.value?e.value:0,()=>t):fp[n];Ai("Unrecognized imputation method: "+n)}(e),p=function(e){const t=e.field;return e=>e?t(e):NaN}(e),m=ki(e.field),g=ki(e.key),v=(e.groupby||[]).map(ki),y=function(e,t,n,r){var i,o,a,s,l,c,u,h,d=e=>e(h),f=[],p=r?r.slice():[],m={},g={};for(p.forEach(((e,t)=>m[e]=t+1)),s=0,u=e.length;sn.add(e)))):(i=n.value=n.value||this.init(e),t.visit(t.REM,(e=>n.rem(e))),t.visit(t.ADD,(e=>n.add(e)))),n.changes(),t.visit(t.SOURCE,(e=>{So(e,i[n.cellkey(e)].tuple)})),t.reflow(r).modifies(this._outputs)},changes(){const e=this._adds,t=this._mods;let n,r;for(n=0,r=this._alen;n{const n=$d(t,a)[s],r=e.counts?t.length:1;mf(n,u||Do(t),h,d).forEach((e=>{const n={};for(let e=0;e(this._pending=go(e.data),e=>e.touch(this))));return{async:t}}return n.request(e.url,e.format).then((e=>wp(this,t,go(e.data))))}}),_p.Definition={type:"Lookup",metadata:{modifies:!0},params:[{name:"index",type:"index",params:[{name:"from",type:"data",required:!0},{name:"key",type:"field",required:!0}]},{name:"values",type:"field",array:!0},{name:"fields",type:"field",array:!0,required:!0},{name:"as",type:"string",array:!0},{name:"default",default:null}]},No(_p,ud,{transform(e,t){const n=e.fields,r=e.index,i=e.values,o=null==e.default?null:e.default,a=e.modified(),s=n.length;let l,c,u,h=a?t.SOURCE:t.ADD,d=t,f=e.as;return i?(c=i.length,s>1&&!f&&Ai('Multi-field lookup requires explicit "as" parameter.'),f&&f.length!==s*c&&Ai('The "as" parameter has too few output field names.'),f=f||i.map(ki),l=function(e){for(var t,a,l=0,u=0;lt.modified(e.fields))),h|=u?t.MOD:0),t.visit(h,l),d.modifies(f)}}),No(kp,Wh),No(Cp,Wh),No(Dp,ud,{transform(e,t){return this.modified(e.modified()),this.value=e,t.fork(t.NO_SOURCE|t.NO_FIELDS)}}),Ap.Definition={type:"Pivot",metadata:{generates:!0,changes:!0},params:[{name:"groupby",type:"field",array:!0},{name:"field",type:"field",required:!0},{name:"value",type:"field",required:!0},{name:"op",type:"enum",values:Tf,default:"sum"},{name:"limit",type:"number",default:0},{name:"key",type:"field"}]},No(Ap,zf,{_transform:zf.prototype.transform,transform(e,t){return this._transform(function(e,t){const n=e.field,r=e.value,i=("count"===e.op?"__count__":e.op)||"sum",o=Ei(n).concat(Ei(r)),a=function(e,t,n){const r={},i=[];return n.visit(n.SOURCE,(t=>{const n=e(t);r[n]||(r[n]=1,i.push(n))})),i.sort(xo),t?i.slice(0,t):i}(n,e.limit||0,t);return t.changed()&&e.set("__pivot__",null,null,!0),{key:e.key,groupby:e.groupby,ops:a.map((()=>i)),fields:a.map((e=>function(e,t,n,r){return _i((r=>t(r)===e?n(r):NaN),r,e+"")}(e,n,r,o))),as:a.map((e=>e+"")),modified:e.modified.bind(e)}}(e,t),t)}}),No(Tp,op,{transform(e,t){const n=e.subflow,r=e.field,i=e=>this.subflow(Fh(e),n,t,e);return(e.modified("field")||r&&t.modified(Ei(r)))&&Ai("PreFacet does not support field modification."),this.initTargets(),r?(t.visit(t.MOD,(e=>{const t=i(e);r(e).forEach((e=>t.mod(e)))})),t.visit(t.ADD,(e=>{const t=i(e);r(e).forEach((e=>t.add(Nh(e))))})),t.visit(t.REM,(e=>{const t=i(e);r(e).forEach((e=>t.rem(e)))}))):(t.visit(t.MOD,(e=>i(e).mod(e))),t.visit(t.ADD,(e=>i(e).add(e))),t.visit(t.REM,(e=>i(e).rem(e)))),t.clean()&&t.runAfter((()=>this.clean())),t}}),Mp.Definition={type:"Project",metadata:{generates:!0,changes:!0},params:[{name:"fields",type:"field",array:!0},{name:"as",type:"string",null:!0,array:!0}]},No(Mp,ud,{transform(e,t){const n=t.fork(t.NO_SOURCE),r=e.fields,i=Kf(e.fields,e.as||[]),o=r?(e,t)=>function(e,t,n,r){for(let i=0,o=n.length;i{const t=Fh(e);n.rem.push(a[t]),a[t]=null})),t.visit(t.ADD,(e=>{const t=o(e,Nh({}));a[Fh(e)]=t,n.add.push(t)})),t.visit(t.MOD,(e=>{n.mod.push(o(e,a[Fh(e)]))})),n}}),No(Op,ud,{transform(e,t){return this.value=e.value,e.modified("value")?t.fork(t.NO_SOURCE|t.NO_FIELDS):t.StopPropagation}}),Fp.Definition={type:"Quantile",metadata:{generates:!0,changes:!0},params:[{name:"groupby",type:"field",array:!0},{name:"field",type:"field",required:!0},{name:"probs",type:"number",array:!0},{name:"step",type:"number",default:.01},{name:"as",type:"string",array:!0,default:["prob","value"]}]},No(Fp,ud,{transform(e,t){const n=t.fork(t.NO_SOURCE|t.NO_FIELDS),r=e.as||["prob","value"];if(this.value&&!e.modified()&&!t.changed())return n.source=this.value,n;const i=Qf(t.materialize(t.SOURCE).source,e.groupby,e.field),o=(e.groupby||[]).map(ki),a=[],s=e.step||.01,l=e.probs||kf(s/2,1-1e-14,s),c=l.length;return i.forEach((e=>{const t=kd(e,l);for(let n=0;n{const t=Fh(e);n.rem.push(r[t]),r[t]=null})),t.visit(t.ADD,(e=>{const t=Ih(e);r[Fh(e)]=t,n.add.push(t)})),t.visit(t.MOD,(e=>{const t=r[Fh(e)];for(const r in e)t[r]=e[r],n.modifies(r);n.mod.push(t)}))),n}}),Np.Definition={type:"Sample",metadata:{},params:[{name:"size",type:"number",default:1e3}]},No(Np,ud,{transform(e,t){const n=t.fork(t.NO_SOURCE),r=e.modified("size"),i=e.size,o=this.value.reduce(((e,t)=>(e[Fh(t)]=1,e)),{});let a=this.value,s=this.count,l=0;function c(e){let t,r;a.length=l&&(t=a[r],o[Fh(t)]&&n.rem.push(t),a[r]=e)),++s}if(t.rem.length&&(t.visit(t.REM,(e=>{const t=Fh(e);o[t]&&(o[t]=-1,n.rem.push(e)),--s})),a=a.filter((e=>-1!==o[Fh(e)]))),(t.rem.length||r)&&a.length{o[Fh(e)]||c(e)})),l=-1),r&&a.length>i){const e=a.length-i;for(let t=0;t{o[Fh(e)]&&n.mod.push(e)})),t.add.length&&t.visit(t.ADD,c),(t.add.length||l<0)&&(n.add=a.filter((e=>!o[Fh(e)]))),this.count=s,this.value=n.source=a,n}}),Ip.Definition={type:"Sequence",metadata:{generates:!0,changes:!0},params:[{name:"start",type:"number",required:!0},{name:"stop",type:"number",required:!0},{name:"step",type:"number",default:1},{name:"as",type:"string",default:"data"}]},No(Ip,ud,{transform(e,t){if(this.value&&!e.modified())return;const n=t.materialize().fork(t.MOD),r=e.as||"data";return n.rem=this.value?t.rem.concat(this.value):t.rem,this.value=kf(e.start,e.stop,e.step||1).map((e=>{const t={};return t[r]=e,Nh(t)})),n.add=t.add.concat(this.value),n}}),No(Bp,ud,{transform(e,t){return this.value=t.source,t.changed()?t.fork(t.NO_SOURCE|t.NO_FIELDS):t.StopPropagation}});const Lp=["unit0","unit1"];function zp(e){ud.call(this,Fo(),e)}function Rp(e){ud.call(this,null,e)}jp.Definition={type:"TimeUnit",metadata:{modifies:!0},params:[{name:"field",type:"field",required:!0},{name:"interval",type:"boolean",default:!0},{name:"units",type:"enum",values:qs,array:!0},{name:"step",type:"number",default:1},{name:"maxbins",type:"number",default:40},{name:"extent",type:"date",array:!0},{name:"timezone",type:"enum",default:"local",values:["local","utc"]},{name:"as",type:"string",array:!0,length:2,default:Lp}]},No(jp,ud,{transform(e,t){const n=e.field,r=!1!==e.interval,i="utc"===e.timezone,o=this._floor(e,t),a=(i?xl:bl)(o.unit).offset,s=e.as||Lp,l=s[0],c=s[1],u=o.step;let h=o.start||1/0,d=o.stop||-1/0,f=t.ADD;return(e.modified()||t.modified(Ei(n)))&&(f=(t=t.reflow(!0)).SOURCE,h=1/0,d=-1/0),t.visit(f,(e=>{const t=n(e);let i,s;null==t?(e[l]=null,r&&(e[c]=null)):(e[l]=i=s=o(t),r&&(e[c]=s=a(i,u)),id&&(d=s))})),o.start=h,o.stop=d,t.modifies(r?s:l)},_floor(e,t){const n="utc"===e.timezone,{units:r,step:i}=e.units?{units:e.units,step:e.step||1}:Bl({extent:e.extent||Do(t.materialize(t.SOURCE).source,e.field),maxbins:e.maxbins}),o=Vs(r),a=this.value||{},s=(n?gl:fl)(o,i);return s.unit=Ji(o),s.units=o,s.step=i,s.start=a.start,s.stop=a.stop,this.value=s}}),No(zp,ud,{transform(e,t){const n=t.dataflow,r=e.field,i=this.value,o=e=>i.set(r(e),e);let a=!0;return e.modified("field")||t.modified(r.fields)?(i.clear(),t.visit(t.SOURCE,o)):t.changed()?(t.visit(t.REM,(e=>i.delete(r(e)))),t.visit(t.ADD,o)):a=!1,this.modified(a),i.empty>n.cleanThreshold&&n.runAfter(i.clean),t.fork()}}),No(Rp,ud,{transform(e,t){(!this.value||e.modified("field")||e.modified("sort")||t.changed()||e.sort&&t.modified(e.sort.fields))&&(this.value=(e.sort?t.source.slice().sort(Lh(e.sort)):t.source).map(e.field))}});const $p={row_number:function(){return{next:e=>e.index+1}},rank:function(){let e;return{init:()=>e=1,next:t=>{const n=t.index,r=t.data;return n&&t.compare(r[n-1],r[n])?e=n+1:e}}},dense_rank:function(){let e;return{init:()=>e=1,next:t=>{const n=t.index,r=t.data;return n&&t.compare(r[n-1],r[n])?++e:e}}},percent_rank:function(){const e=$p.rank(),t=e.next;return{init:e.init,next:e=>(t(e)-1)/(e.data.length-1)}},cume_dist:function(){let e;return{init:()=>e=0,next:t=>{const n=t.data,r=t.compare;let i=t.index;if(e0||Ai("ntile num must be greater than zero.");const n=$p.cume_dist(),r=n.next;return{init:n.init,next:e=>Math.ceil(t*r(e))}},lag:function(e,t){return t=+t||1,{next:n=>{const r=n.index-t;return r>=0?e(n.data[r]):null}}},lead:function(e,t){return t=+t||1,{next:n=>{const r=n.index+t,i=n.data;return re(t.data[t.i0])}},last_value:function(e){return{next:t=>e(t.data[t.i1-1])}},nth_value:function(e,t){return(t=+t)>0||Ai("nth_value nth must be greater than zero."),{next:n=>{const r=n.i0+(t-1);return rt=null,next:n=>{const r=e(n.data[n.index]);return null!=r?t=r:t}}},next_value:function(e){let t,n;return{init:()=>(t=null,n=-1),next:r=>{const i=r.data;return r.index<=n?t:(n=function(e,t,n){for(let r=t.length;ns[e]=1))}d(e.sort),t.forEach(((e,t)=>{const s=n[t],f=ki(s),p=Cf(e,f,i[t]);if(d(s),o.push(p),Mo($p,e))a.push(function(e,t,n,r){const i=$p[e](t,n);return{init:i.init||Pi,update:function(e,t){t[r]=i.next(e)}}}(e,n[t],r[t],p));else{if(null==s&&"count"!==e&&Ai("Null aggregate field specified."),"count"===e)return void c.push(p);h=!1;let t=l[f];t||(t=l[f]=[],t.field=s,u.push(t)),t.push(Mf(e,p))}})),(c.length||u.length)&&(this.cell=function(e,t,n){e=e.map((e=>Bf(e,e.field)));const r={num:0,agg:null,store:!1,count:t};if(!n)for(var i=e.length,o=r.agg=Array(i),a=0;a>>1;n(e[o],t)<0?r=o+1:i=o}return r}return 1===e.length&&(t=(t,n)=>e(t)-n,n=function(e){return(t,n)=>bf(e(t),n)}(e)),{left:r,center:function(e,n,i,o){null==i&&(i=0),null==o&&(o=e.length);const a=r(e,n,i,o-1);return a>i&&t(e[a-1],n)>-t(e[a],n)?a-1:a},right:function(e,t,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;n(e[o],t)>0?i=o:r=o+1}return r}}}(i):null,u={i0:0,i1:0,p0:0,p1:0,index:0,data:s,compare:i||Eo(-1)};t.init();for(let e=0;e0&&!i(o[n],o[n-1])&&(e.i0=t.left(o,o[n])),re.init())),this.cell&&this.cell.init()},qp.update=function(e,t){const n=this.cell,r=this.windows,i=e.data,o=r&&r.length;let a;if(n){for(a=e.p0;athis.group(i(e));let a=this.state;a&&!n||(a=this.state=new Up(e)),n||t.modified(a.inputs)?(this.value={},t.visit(t.SOURCE,(e=>o(e).add(e)))):(t.visit(t.REM,(e=>o(e).remove(e))),t.visit(t.ADD,(e=>o(e).add(e))));for(let t=0,n=this._mlen;t0)for(var r,i=e[0],o=t[0],a=e[n]-i,s=t[n]-o,l=-1;++l<=n;)r=l/n,this._basis.point(this._beta*e[l]+(1-this._beta)*(i+r*a),this._beta*t[l]+(1-this._beta)*(o+r*s));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const tm=function e(t){function n(e){return 1===t?new Jp(e):new em(e,t)}return n.beta=function(t){return e(+t)},n}(.85);function nm(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function rm(e,t){this._context=e,this._k=(1-t)/6}rm.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:nm(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:nm(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const im=function e(t){function n(e){return new rm(e,t)}return n.tension=function(t){return e(+t)},n}(0);function om(e,t){this._context=e,this._k=(1-t)/6}om.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:nm(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const am=function e(t){function n(e){return new om(e,t)}return n.tension=function(t){return e(+t)},n}(0);function sm(e,t){this._context=e,this._k=(1-t)/6}sm.prototype={areaStart:Zp,areaEnd:Zp,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:nm(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const lm=function e(t){function n(e){return new sm(e,t)}return n.tension=function(t){return e(+t)},n}(0);var cm=Math.abs,um=Math.atan2,hm=Math.cos,dm=Math.max,fm=Math.min,pm=Math.sin,mm=Math.sqrt,gm=1e-12,vm=Math.PI,ym=vm/2,bm=2*vm;function xm(e){return e>1?0:e<-1?vm:Math.acos(e)}function wm(e){return e>=1?ym:e<=-1?-ym:Math.asin(e)}function _m(e,t,n){var r=e._x1,i=e._y1,o=e._x2,a=e._y2;if(e._l01_a>gm){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,l=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,i=(i*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>gm){var c=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,u=3*e._l23_a*(e._l23_a+e._l12_a);o=(o*c+e._x1*e._l23_2a-t*e._l12_2a)/u,a=(a*c+e._y1*e._l23_2a-n*e._l12_2a)/u}e._context.bezierCurveTo(r,i,o,a,e._x2,e._y2)}function km(e,t){this._context=e,this._alpha=t}km.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:_m(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Em=function e(t){function n(e){return t?new km(e,t):new rm(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function Cm(e,t){this._context=e,this._alpha=t}Cm.prototype={areaStart:Zp,areaEnd:Zp,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:_m(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Sm=function e(t){function n(e){return t?new Cm(e,t):new sm(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function Dm(e,t){this._context=e,this._alpha=t}Dm.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:_m(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Am=function e(t){function n(e){return t?new Dm(e,t):new om(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function Tm(e){this._context=e}function Mm(e){return new Tm(e)}function Om(e){this._context=e}function Fm(e){return e<0?-1:1}function Pm(e,t,n){var r=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(r||i<0&&-0),a=(n-e._y1)/(i||r<0&&-0),s=(o*i+a*r)/(r+i);return(Fm(o)+Fm(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function Nm(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Im(e,t,n){var r=e._x0,i=e._y0,o=e._x1,a=e._y1,s=(o-r)/3;e._context.bezierCurveTo(r+s,i+s*t,o-s,a-s*n,o,a)}function Bm(e){this._context=e}function jm(e){this._context=new Lm(e)}function Lm(e){this._context=e}function zm(e){this._context=e}function Rm(e){var t,n,r=e.length-1,i=new Array(r),o=new Array(r),a=new Array(r);for(i[0]=0,o[0]=2,a[0]=e[0]+2*e[1],t=1;t=0;--t)i[t]=(a[t]-i[t+1])/o[t];for(o[r-1]=(e[r]+i[r-1])/2,t=0;t=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}};const Hm=Math.PI,Um=2*Hm,qm=1e-6,Wm=Um-qm;function Vm(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function Gm(){return new Vm}Vm.prototype=Gm.prototype={constructor:Vm,moveTo:function(e,t){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(e,t){this._+="L"+(this._x1=+e)+","+(this._y1=+t)},quadraticCurveTo:function(e,t,n,r){this._+="Q"+ +e+","+ +t+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(e,t,n,r,i,o){this._+="C"+ +e+","+ +t+","+ +n+","+ +r+","+(this._x1=+i)+","+(this._y1=+o)},arcTo:function(e,t,n,r,i){e=+e,t=+t,n=+n,r=+r,i=+i;var o=this._x1,a=this._y1,s=n-e,l=r-t,c=o-e,u=a-t,h=c*c+u*u;if(i<0)throw new Error("negative radius: "+i);if(null===this._x1)this._+="M"+(this._x1=e)+","+(this._y1=t);else if(h>qm)if(Math.abs(u*s-l*c)>qm&&i){var d=n-o,f=r-a,p=s*s+l*l,m=d*d+f*f,g=Math.sqrt(p),v=Math.sqrt(h),y=i*Math.tan((Hm-Math.acos((p+h-m)/(2*g*v)))/2),b=y/v,x=y/g;Math.abs(b-1)>qm&&(this._+="L"+(e+b*c)+","+(t+b*u)),this._+="A"+i+","+i+",0,0,"+ +(u*d>c*f)+","+(this._x1=e+x*s)+","+(this._y1=t+x*l)}else this._+="L"+(this._x1=e)+","+(this._y1=t)},arc:function(e,t,n,r,i,o){e=+e,t=+t,o=!!o;var a=(n=+n)*Math.cos(r),s=n*Math.sin(r),l=e+a,c=t+s,u=1^o,h=o?r-i:i-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+l+","+c:(Math.abs(this._x1-l)>qm||Math.abs(this._y1-c)>qm)&&(this._+="L"+l+","+c),n&&(h<0&&(h=h%Um+Um),h>Wm?this._+="A"+n+","+n+",0,1,"+u+","+(e-a)+","+(t-s)+"A"+n+","+n+",0,1,"+u+","+(this._x1=l)+","+(this._y1=c):h>qm&&(this._+="A"+n+","+n+",0,"+ +(h>=Hm)+","+u+","+(this._x1=e+n*Math.cos(i))+","+(this._y1=t+n*Math.sin(i))))},rect:function(e,t,n,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};const Xm=Gm;function Ym(e){return function(){return e}}function Jm(e){return e.innerRadius}function Zm(e){return e.outerRadius}function Km(e){return e.startAngle}function Qm(e){return e.endAngle}function eg(e){return e&&e.padAngle}function tg(e,t,n,r,i,o,a,s){var l=n-e,c=r-t,u=a-i,h=s-o,d=h*l-u*c;if(!(d*dM*M+O*O&&(E=S,C=D),{cx:E,cy:C,x01:-u,y01:-h,x11:E*(i/w-1),y11:C*(i/w-1)}}function rg(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function ig(e){return e[0]}function og(e){return e[1]}function ag(e,t){var n=Ym(!0),r=null,i=Mm,o=null;function a(a){var s,l,c,u=(a=rg(a)).length,h=!1;for(null==r&&(o=i(c=Xm())),s=0;s<=u;++s)!(s=u;--h)s.point(g[h],v[h]);s.lineEnd(),s.areaEnd()}m&&(g[c]=+e(d,c,l),v[c]=+t(d,c,l),s.point(r?+r(d,c,l):g[c],n?+n(d,c,l):v[c]))}if(f)return s=null,f+""||null}function c(){return ag().defined(i).curve(a).context(o)}return e="function"==typeof e?e:void 0===e?ig:Ym(+e),t="function"==typeof t?t:Ym(void 0===t?0:+t),n="function"==typeof n?n:void 0===n?og:Ym(+n),l.x=function(t){return arguments.length?(e="function"==typeof t?t:Ym(+t),r=null,l):e},l.x0=function(t){return arguments.length?(e="function"==typeof t?t:Ym(+t),l):e},l.x1=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:Ym(+e),l):r},l.y=function(e){return arguments.length?(t="function"==typeof e?e:Ym(+e),n=null,l):t},l.y0=function(e){return arguments.length?(t="function"==typeof e?e:Ym(+e),l):t},l.y1=function(e){return arguments.length?(n=null==e?null:"function"==typeof e?e:Ym(+e),l):n},l.lineX0=l.lineY0=function(){return c().x(e).y(t)},l.lineY1=function(){return c().x(e).y(n)},l.lineX1=function(){return c().x(r).y(t)},l.defined=function(e){return arguments.length?(i="function"==typeof e?e:Ym(!!e),l):i},l.curve=function(e){return arguments.length?(a=e,null!=o&&(s=a(o)),l):a},l.context=function(e){return arguments.length?(null==e?o=s=null:s=a(o=e),l):o},l}Array.prototype.slice;const lg={draw:function(e,t){var n=Math.sqrt(t/vm);e.moveTo(n,0),e.arc(0,0,n,0,bm)}};Math.sqrt(1/3);Math.sin(vm/10),Math.sin(7*vm/10);function cg(e,t){if("undefined"!=typeof document&&document.createElement){const n=document.createElement("canvas");if(n&&n.getContext)return n.width=e,n.height=t,n}return null}Math.sin(bm/10),Math.cos(bm/10),Math.sqrt(3),Math.sqrt(3),Math.sqrt(12);const ug=()=>"undefined"!=typeof Image?Image:null;function hg(e,t){return et?1:e>=t?0:NaN}function dg(e){let t=e,n=e;function r(e,t,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;n(e[o],t)<0?r=o+1:i=o}return r}return 1===e.length&&(t=(t,n)=>e(t)-n,n=function(e){return(t,n)=>hg(e(t),n)}(e)),{left:r,center:function(e,n,i,o){null==i&&(i=0),null==o&&(o=e.length);const a=r(e,n,i,o-1);return a>i&&t(e[a-1],n)>-t(e[a],n)?a-1:a},right:function(e,t,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;n(e[o],t)>0?i=o:r=o+1}return r}}}function fg(e){return null===e?NaN:+e}const pg=dg(hg),mg=pg.right,gg=(pg.left,dg(fg).center,mg);function vg(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function yg(e,t){switch(arguments.length){case 0:break;case 1:"function"==typeof e?this.interpolator(e):this.range(e);break;default:this.domain(e),"function"==typeof t?this.interpolator(t):this.range(t)}return this}const bg=Symbol("implicit");function xg(){var e=new Map,t=[],n=[],r=bg;function i(i){var o=i+"",a=e.get(o);if(!a){if(r!==bg)return r;e.set(o,a=t.push(i))}return n[(a-1)%n.length]}return i.domain=function(n){if(!arguments.length)return t.slice();t=[],e=new Map;for(const r of n){const n=r+"";e.has(n)||e.set(n,t.push(r))}return i},i.range=function(e){return arguments.length?(n=Array.from(e),i):n.slice()},i.unknown=function(e){return arguments.length?(r=e,i):r},i.copy=function(){return xg(t,n).unknown(r)},vg.apply(i,arguments),i}var wg=Math.sqrt(50),_g=Math.sqrt(10),kg=Math.sqrt(2);function Eg(e,t,n){var r,i,o,a,s=-1;if(n=+n,(e=+e)==(t=+t)&&n>0)return[e];if((r=t0){let n=Math.round(e/a),r=Math.round(t/a);for(n*at&&--r,o=new Array(i=r-n+1);++st&&--r,o=new Array(i=r-n+1);++s=0?(o>=wg?10:o>=_g?5:o>=kg?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=wg?10:o>=_g?5:o>=kg?2:1)}function Sg(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=wg?i*=10:o>=_g?i*=5:o>=kg&&(i*=2),t=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Tg(e){if(!(t=Ag.exec(e)))throw new Error("invalid format: "+e);var t;return new Mg({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function Mg(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function Og(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function Fg(e){return(e=Og(Math.abs(e)))?e[1]:NaN}function Pg(e,t){var n=Og(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}Tg.prototype=Mg.prototype,Mg.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};const Ng={"%":function(e,t){return(100*e).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return Pg(100*e,t)},r:Pg,s:function(e,t){var n=Og(e,t);if(!n)return e+"";var r=n[0],i=n[1],o=i-(Dg=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+Og(e,Math.max(0,t+o-1))[0]},X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function Ig(e){return e}var Bg,jg,Lg,zg=Array.prototype.map,Rg=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function $g(e,t,n,r){var i,o=Sg(e,t,n);switch((r=Tg(null==r?",f":r)).type){case"s":var a=Math.max(Math.abs(e),Math.abs(t));return null!=r.precision||isNaN(i=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Fg(t)/3)))-Fg(Math.abs(e)))}(o,a))||(r.precision=i),Lg(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Fg(t)-Fg(e))+1}(o,Math.max(Math.abs(e),Math.abs(t))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=function(e){return Math.max(0,-Fg(Math.abs(e)))}(o))||(r.precision=i-2*("%"===r.type))}return jg(r)}function Hg(e,t,n,r,i){var o=e*e,a=o*e;return((1-3*e+3*o-a)*t+(4-6*o+3*a)*n+(1+3*e+3*o-3*a)*r+a*i)/6}function Ug(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),i=e[r],o=e[r+1],a=r>0?e[r-1]:2*i-o,s=r0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),o.push(e.substring(i-=s,i+s)),!((l+=s+1)>r));)s=t[a=(a+1)%t.length];return o.reverse().join(n)}),i=void 0===e.currency?"":e.currency[0]+"",o=void 0===e.currency?"":e.currency[1]+"",a=void 0===e.decimal?".":e.decimal+"",s=void 0===e.numerals?Ig:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(zg.call(e.numerals,String)),l=void 0===e.percent?"%":e.percent+"",c=void 0===e.minus?"-":e.minus+"",u=void 0===e.nan?"NaN":e.nan+"";function h(e){var t=(e=Tg(e)).fill,n=e.align,h=e.sign,d=e.symbol,f=e.zero,p=e.width,m=e.comma,g=e.precision,v=e.trim,y=e.type;"n"===y?(m=!0,y="g"):Ng[y]||(void 0===g&&(g=12),v=!0,y="g"),(f||"0"===t&&"="===n)&&(f=!0,t="0",n="=");var b="$"===d?i:"#"===d&&/[boxX]/.test(y)?"0"+y.toLowerCase():"",x="$"===d?o:/[%p]/.test(y)?l:"",w=Ng[y],_=/[defgprs%]/.test(y);function k(e){var i,o,l,d=b,k=x;if("c"===y)k=w(e)+k,e="";else{var E=(e=+e)<0||1/e<0;if(e=isNaN(e)?u:w(Math.abs(e),g),v&&(e=function(e){e:for(var t,n=e.length,r=1,i=-1;r0&&(i=0)}return i>0?e.slice(0,i)+e.slice(t+1):e}(e)),E&&0==+e&&"+"!==h&&(E=!1),d=(E?"("===h?h:c:"-"===h||"("===h?"":h)+d,k=("s"===y?Rg[8+Dg/3]:"")+k+(E&&"("===h?")":""),_)for(i=-1,o=e.length;++i(l=e.charCodeAt(i))||l>57){k=(46===l?a+e.slice(i+1):e.slice(i))+k,e=e.slice(0,i);break}}m&&!f&&(e=r(e,1/0));var C=d.length+e.length+k.length,S=C>1)+d+e+k+S.slice(C);break;default:e=S+d+e+k}return s(e)}return g=void 0===g?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),k.toString=function(){return e+""},k}return{format:h,formatPrefix:function(e,t){var n=h(((e=Tg(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(Fg(t)/3))),i=Math.pow(10,-r),o=Rg[8+r/3];return function(e){return n(i*e)+o}}}}({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),jg=Bg.format,Lg=Bg.formatPrefix;const Wg=e=>()=>e;function Vg(e,t){return function(n){return e+n*t}}function Gg(e,t){var n=t-e;return n?Vg(e,n>180||n<-180?n-360*Math.round(n/360):n):Wg(isNaN(e)?t:e)}function Xg(e,t){var n=t-e;return n?Vg(e,n):Wg(isNaN(e)?t:e)}const Yg=function e(t){var n=function(e){return 1==(e=+e)?Xg:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):Wg(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=en(e)).r,(t=en(t)).r),i=n(e.g,t.g),o=n(e.b,t.b),a=Xg(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=o(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);function Jg(e){return function(t){var n,r,i=t.length,o=new Array(i),a=new Array(i),s=new Array(i);for(n=0;no&&(i=t.slice(o,i),s[a]?s[a]+=i:s[++a]=i),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,l.push({i:a,x:iv(n,r)})),o=sv.lastIndex;return ot&&(n=e,e=t,t=n),function(n){return Math.max(e,Math.min(t,n))}}(a[0],a[e-1])),r=e>2?gv:mv,i=o=null,h}function h(t){return null==t||isNaN(t=+t)?n:(i||(i=r(a.map(e),s,l)))(e(c(t)))}return h.invert=function(n){return c(t((o||(o=r(s,a.map(e),iv)))(n)))},h.domain=function(e){return arguments.length?(a=Array.from(e,hv),u()):a.slice()},h.range=function(e){return arguments.length?(s=Array.from(e),u()):s.slice()},h.rangeRound=function(e){return s=Array.from(e),l=uv,u()},h.clamp=function(e){return arguments.length?(c=!!e||fv,u()):c!==fv},h.interpolate=function(e){return arguments.length?(l=e,u()):l},h.unknown=function(e){return arguments.length?(n=e,h):n},function(n,r){return e=n,t=r,u()}}function bv(){return yv()(fv,fv)}function xv(e){var t=e.domain;return e.ticks=function(e){var n=t();return Eg(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var r=t();return $g(r[0],r[r.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10);var r,i,o=t(),a=0,s=o.length-1,l=o[a],c=o[s],u=10;for(c0;){if((i=Cg(l,c,n))===r)return o[a]=l,o[s]=c,t(o);if(i>0)l=Math.floor(l/i)*i,c=Math.ceil(c/i)*i;else{if(!(i<0))break;l=Math.ceil(l*i)/i,c=Math.floor(c*i)/i}r=i}return e},e}function wv(e,t){var n,r=0,i=(e=e.slice()).length-1,o=e[r],a=e[i];return a0){for(;d<=f;++d)for(u=1,c=n(d);ul)break;m.push(h)}}else for(;d<=f;++d)for(u=o-1,c=n(d);u>=1;--u)if(!((h=c*u)l)break;m.push(h)}2*m.length0))return s;do{s.push(a=new Date(+n)),t(n,o),e(n)}while(a=t)for(;e(t),!n(t);)t.setTime(t-1)}),(function(e,r){if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}))},n&&(i.count=function(t,r){return Uv.setTime(+t),qv.setTime(+r),e(Uv),e(qv),Math.floor(n(Uv,qv))},i.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?i.filter(r?function(t){return r(t)%e==0}:function(t){return i.count(0,t)%e==0}):i:null}),i}var Vv=Wv((function(){}),(function(e,t){e.setTime(+e+t)}),(function(e,t){return t-e}));Vv.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?Wv((function(t){t.setTime(Math.floor(t/e)*e)}),(function(t,n){t.setTime(+t+n*e)}),(function(t,n){return(n-t)/e})):Vv:null};const Gv=Vv;Vv.range;var Xv=Wv((function(e){e.setTime(e-e.getMilliseconds())}),(function(e,t){e.setTime(+e+t*jv)}),(function(e,t){return(t-e)/jv}),(function(e){return e.getUTCSeconds()}));const Yv=Xv;Xv.range;var Jv=Wv((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*jv)}),(function(e,t){e.setTime(+e+t*Lv)}),(function(e,t){return(t-e)/Lv}),(function(e){return e.getMinutes()}));const Zv=Jv;Jv.range;var Kv=Wv((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*jv-e.getMinutes()*Lv)}),(function(e,t){e.setTime(+e+t*zv)}),(function(e,t){return(t-e)/zv}),(function(e){return e.getHours()}));const Qv=Kv;Kv.range;var ey=Wv((e=>e.setHours(0,0,0,0)),((e,t)=>e.setDate(e.getDate()+t)),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Lv)/Rv),(e=>e.getDate()-1));const ty=ey;function ny(e){return Wv((function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+7*t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Lv)/$v}))}ey.range;var ry=ny(0),iy=ny(1),oy=ny(2),ay=ny(3),sy=ny(4),ly=ny(5),cy=ny(6),uy=(ry.range,iy.range,oy.range,ay.range,sy.range,ly.range,cy.range,Wv((function(e){e.setDate(1),e.setHours(0,0,0,0)}),(function(e,t){e.setMonth(e.getMonth()+t)}),(function(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())}),(function(e){return e.getMonth()})));const hy=uy;uy.range;var dy=Wv((function(e){e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,t){e.setFullYear(e.getFullYear()+t)}),(function(e,t){return t.getFullYear()-e.getFullYear()}),(function(e){return e.getFullYear()}));dy.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Wv((function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n*e)})):null};const fy=dy;dy.range;var py=Wv((function(e){e.setUTCSeconds(0,0)}),(function(e,t){e.setTime(+e+t*Lv)}),(function(e,t){return(t-e)/Lv}),(function(e){return e.getUTCMinutes()}));const my=py;py.range;var gy=Wv((function(e){e.setUTCMinutes(0,0,0)}),(function(e,t){e.setTime(+e+t*zv)}),(function(e,t){return(t-e)/zv}),(function(e){return e.getUTCHours()}));const vy=gy;gy.range;var yy=Wv((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/Rv}),(function(e){return e.getUTCDate()-1}));const by=yy;function xy(e){return Wv((function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+7*t)}),(function(e,t){return(t-e)/$v}))}yy.range;var wy=xy(0),_y=xy(1),ky=xy(2),Ey=xy(3),Cy=xy(4),Sy=xy(5),Dy=xy(6),Ay=(wy.range,_y.range,ky.range,Ey.range,Cy.range,Sy.range,Dy.range,Wv((function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCMonth(e.getUTCMonth()+t)}),(function(e,t){return t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())}),(function(e){return e.getUTCMonth()})));const Ty=Ay;Ay.range;var My=Wv((function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)}),(function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()}),(function(e){return e.getUTCFullYear()}));My.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Wv((function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null};const Oy=My;function Fy(e,t,n,r,i,o){const a=[[Yv,1,jv],[Yv,5,5e3],[Yv,15,15e3],[Yv,30,3e4],[o,1,Lv],[o,5,3e5],[o,15,9e5],[o,30,18e5],[i,1,zv],[i,3,108e5],[i,6,216e5],[i,12,432e5],[r,1,Rv],[r,2,1728e5],[n,1,$v],[t,1,2592e6],[t,3,7776e6],[e,1,Hv]];function s(t,n,r){const i=Math.abs(n-t)/r,o=dg((([,,e])=>e)).right(a,i);if(o===a.length)return e.every(Sg(t/Hv,n/Hv,r));if(0===o)return Gv.every(Math.max(Sg(t,n,r),1));const[s,l]=a[i/a[o-1][2]68?1900:2e3),n+r[0].length):-1}function ib(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function ob(e,t,n){var r=qy.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function ab(e,t,n){var r=qy.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function sb(e,t,n){var r=qy.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function lb(e,t,n){var r=qy.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function cb(e,t,n){var r=qy.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function ub(e,t,n){var r=qy.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function hb(e,t,n){var r=qy.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function db(e,t,n){var r=qy.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function fb(e,t,n){var r=qy.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function pb(e,t,n){var r=Wy.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function mb(e,t,n){var r=qy.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function gb(e,t,n){var r=qy.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function vb(e,t){return Gy(e.getDate(),t,2)}function yb(e,t){return Gy(e.getHours(),t,2)}function bb(e,t){return Gy(e.getHours()%12||12,t,2)}function xb(e,t){return Gy(1+sc.count(cc(e),e),t,3)}function wb(e,t){return Gy(e.getMilliseconds(),t,3)}function _b(e,t){return wb(e,t)+"000"}function kb(e,t){return Gy(e.getMonth()+1,t,2)}function Eb(e,t){return Gy(e.getMinutes(),t,2)}function Cb(e,t){return Gy(e.getSeconds(),t,2)}function Sb(e){var t=e.getDay();return 0===t?7:t}function Db(e,t){return Gy(Ql.count(cc(e)-1,e),t,2)}function Ab(e){var t=e.getDay();return t>=4||0===t?rc(e):rc.ceil(e)}function Tb(e,t){return e=Ab(e),Gy(rc.count(cc(e),e)+(4===cc(e).getDay()),t,2)}function Mb(e){return e.getDay()}function Ob(e,t){return Gy(ec.count(cc(e)-1,e),t,2)}function Fb(e,t){return Gy(e.getFullYear()%100,t,2)}function Pb(e,t){return Gy((e=Ab(e)).getFullYear()%100,t,2)}function Nb(e,t){return Gy(e.getFullYear()%1e4,t,4)}function Ib(e,t){var n=e.getDay();return Gy((e=n>=4||0===n?rc(e):rc.ceil(e)).getFullYear()%1e4,t,4)}function Bb(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Gy(t/60|0,"0",2)+Gy(t%60,"0",2)}function jb(e,t){return Gy(e.getUTCDate(),t,2)}function Lb(e,t){return Gy(e.getUTCHours(),t,2)}function zb(e,t){return Gy(e.getUTCHours()%12||12,t,2)}function Rb(e,t){return Gy(1+Zl.count(hc(e),e),t,3)}function $b(e,t){return Gy(e.getUTCMilliseconds(),t,3)}function Hb(e,t){return $b(e,t)+"000"}function Ub(e,t){return Gy(e.getUTCMonth()+1,t,2)}function qb(e,t){return Gy(e.getUTCMinutes(),t,2)}function Wb(e,t){return Gy(e.getUTCSeconds(),t,2)}function Vb(e){var t=e.getUTCDay();return 0===t?7:t}function Gb(e,t){return Gy(Ul.count(hc(e)-1,e),t,2)}function Xb(e){var t=e.getUTCDay();return t>=4||0===t?Gl(e):Gl.ceil(e)}function Yb(e,t){return e=Xb(e),Gy(Gl.count(hc(e),e)+(4===hc(e).getUTCDay()),t,2)}function Jb(e){return e.getUTCDay()}function Zb(e,t){return Gy(ql.count(hc(e)-1,e),t,2)}function Kb(e,t){return Gy(e.getUTCFullYear()%100,t,2)}function Qb(e,t){return Gy((e=Xb(e)).getUTCFullYear()%100,t,2)}function ex(e,t){return Gy(e.getUTCFullYear()%1e4,t,4)}function tx(e,t){var n=e.getUTCDay();return Gy((e=n>=4||0===n?Gl(e):Gl.ceil(e)).getUTCFullYear()%1e4,t,4)}function nx(){return"+0000"}function rx(){return"%"}function ix(e){return+e}function ox(e){return Math.floor(+e/1e3)}function ax(e){return new Date(e)}function sx(e){return e instanceof Date?+e:+new Date(+e)}function lx(e,t,n,r,i,o,a,s,l,c){var u=bv(),h=u.invert,d=u.domain,f=c(".%L"),p=c(":%S"),m=c("%I:%M"),g=c("%I %p"),v=c("%a %d"),y=c("%b %d"),b=c("%B"),x=c("%Y");function w(e){return(l(e)=1)return+n(e[r-1],r-1,e);var r,i=(r-1)*t,o=Math.floor(i),a=+n(e[o],o,e);return a+(+n(e[o+1],o+1,e)-a)*(i-o)}}function vx(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}function yx(e,t){var n=Gg(+e,+t);return function(e){var t=n(e);return t-360*Math.floor(t/360)}}Ry=function(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,o=e.days,a=e.shortDays,s=e.months,l=e.shortMonths,c=Yy(i),u=Jy(i),h=Yy(o),d=Jy(o),f=Yy(a),p=Jy(a),m=Yy(s),g=Jy(s),v=Yy(l),y=Jy(l),b={a:function(e){return a[e.getDay()]},A:function(e){return o[e.getDay()]},b:function(e){return l[e.getMonth()]},B:function(e){return s[e.getMonth()]},c:null,d:vb,e:vb,f:_b,g:Pb,G:Ib,H:yb,I:bb,j:xb,L:wb,m:kb,M:Eb,p:function(e){return i[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:ix,s:ox,S:Cb,u:Sb,U:Db,V:Tb,w:Mb,W:Ob,x:null,X:null,y:Fb,Y:Nb,Z:Bb,"%":rx},x={a:function(e){return a[e.getUTCDay()]},A:function(e){return o[e.getUTCDay()]},b:function(e){return l[e.getUTCMonth()]},B:function(e){return s[e.getUTCMonth()]},c:null,d:jb,e:jb,f:Hb,g:Qb,G:tx,H:Lb,I:zb,j:Rb,L:$b,m:Ub,M:qb,p:function(e){return i[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:ix,s:ox,S:Wb,u:Vb,U:Gb,V:Yb,w:Jb,W:Zb,x:null,X:null,y:Kb,Y:ex,Z:nx,"%":rx},w={a:function(e,t,n){var r=f.exec(t.slice(n));return r?(e.w=p[r[0].toLowerCase()],n+r[0].length):-1},A:function(e,t,n){var r=h.exec(t.slice(n));return r?(e.w=d[r[0].toLowerCase()],n+r[0].length):-1},b:function(e,t,n){var r=v.exec(t.slice(n));return r?(e.m=y[r[0].toLowerCase()],n+r[0].length):-1},B:function(e,t,n){var r=m.exec(t.slice(n));return r?(e.m=g[r[0].toLowerCase()],n+r[0].length):-1},c:function(e,n,r){return E(e,t,n,r)},d:sb,e:sb,f:fb,g:rb,G:nb,H:cb,I:cb,j:lb,L:db,m:ab,M:ub,p:function(e,t,n){var r=c.exec(t.slice(n));return r?(e.p=u[r[0].toLowerCase()],n+r[0].length):-1},q:ob,Q:mb,s:gb,S:hb,u:Ky,U:Qy,V:eb,w:Zy,W:tb,x:function(e,t,r){return E(e,n,t,r)},X:function(e,t,n){return E(e,r,t,n)},y:rb,Y:nb,Z:ib,"%":pb};function _(e,t){return function(n){var r,i,o,a=[],s=-1,l=0,c=e.length;for(n instanceof Date||(n=new Date(+n));++s53)return null;"w"in o||(o.w=1),"Z"in o?(i=(r=Ly(zy(o.y,0,1))).getUTCDay(),r=i>4||0===i?ql.ceil(r):ql(r),r=Zl.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(i=(r=jy(zy(o.y,0,1))).getDay(),r=i>4||0===i?ec.ceil(r):ec(r),r=sc.offset(r,7*(o.V-1)),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?Ly(zy(o.y,0,1)).getUTCDay():jy(zy(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,Ly(o)):jy(o)}}function E(e,t,n,r){for(var i,o,a=0,s=t.length,l=n.length;a=l)return-1;if(37===(i=t.charCodeAt(a++))){if(i=t.charAt(a++),!(o=w[i in Uy?t.charAt(a++):i])||(r=o(e,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return b.x=_(n,b),b.X=_(r,b),b.c=_(t,b),x.x=_(n,x),x.X=_(r,x),x.c=_(t,x),{format:function(e){var t=_(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=k(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=_(e+="",x);return t.toString=function(){return e},t},utcParse:function(e){var t=k(e+="",!0);return t.toString=function(){return e},t}}}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}),$y=Ry.format,Ry.parse,Hy=Ry.utcFormat,Ry.utcParse;var bx,xx=180/Math.PI,wx={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function _x(e,t,n,r,i,o){var a,s,l;return(a=Math.sqrt(e*e+t*t))&&(e/=a,t/=a),(l=e*n+t*r)&&(n-=e*l,r-=t*l),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,l/=s),e*r180?t+=360:t-e>180&&(e+=360),o.push({i:n.push(i(n)+"rotate(",null,r)-2,x:iv(e,t)})):t&&n.push(i(n)+"rotate("+t+r)}(o.rotate,a.rotate,s,l),function(e,t,n,o){e!==t?o.push({i:n.push(i(n)+"skewX(",null,r)-2,x:iv(e,t)}):t&&n.push(i(n)+"skewX("+t+r)}(o.skewX,a.skewX,s,l),function(e,t,n,r,o,a){if(e!==n||t!==r){var s=o.push(i(o)+"scale(",null,",",null,")");a.push({i:s-4,x:iv(e,n)},{i:s-2,x:iv(t,r)})}else 1===n&&1===r||o.push(i(o)+"scale("+n+","+r+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,s,l),o=a=null,function(e){for(var t,n=-1,r=l.length;++n.008856451679035631?Math.pow(e,1/3):e/jx+Ix}function Hx(e){return e>Bx?e*e*e:jx*(e-Ix)}function Ux(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function qx(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Wx(e){if(e instanceof Gx)return new Gx(e.h,e.c,e.l,e.opacity);if(e instanceof Rx||(e=Lx(e)),0===e.a&&0===e.b)return new Gx(NaN,00?r:1:0}const mw="linear",gw="log",vw="pow",yw="sqrt",bw="symlog",xw="time",ww="utc",_w="sequential",kw="diverging",Ew="quantile",Cw="quantize",Sw="threshold",Dw="ordinal",Aw="point",Tw="band",Mw="bin-ordinal",Ow="continuous",Fw="discrete",Pw="discretizing",Nw="interpolating",Iw="temporal";function Bw(){const e=xg().unknown(void 0),t=e.domain,n=e.range;let r,i,o=[0,1],a=!1,s=0,l=0,c=.5;function u(){const e=t().length,u=o[1]f+r*e));return n(u?p.reverse():p)}return delete e.unknown,e.domain=function(e){return arguments.length?(t(e),u()):t()},e.range=function(e){return arguments.length?(o=[+e[0],+e[1]],u()):o.slice()},e.rangeRound=function(e){return o=[+e[0],+e[1]],a=!0,u()},e.bandwidth=function(){return i},e.step=function(){return r},e.round=function(e){return arguments.length?(a=!!e,u()):a},e.padding=function(e){return arguments.length?(l=Math.max(0,Math.min(1,e)),s=l,u()):s},e.paddingInner=function(e){return arguments.length?(s=Math.max(0,Math.min(1,e)),u()):s},e.paddingOuter=function(e){return arguments.length?(l=Math.max(0,Math.min(1,e)),u()):l},e.align=function(e){return arguments.length?(c=Math.max(0,Math.min(1,e)),u()):c},e.invertRange=function(e){if(null==e[0]||null==e[1])return;const r=o[1]o[1-r])?void 0:(l=Math.max(0,mg(a,h)-1),c=h===d?l:mg(a,d)-1,h-a[l]>i+1e-10&&++l,r&&(u=l,l=s-c,c=s-u),l>c?void 0:t().slice(l,c+1))},e.invert=function(t){const n=e.invertRange([t,t]);return n?n[0]:n},e.copy=function(){return Bw().domain(t()).range(o).round(a).paddingInner(s).paddingOuter(l).align(c)},u()}function jw(e){const t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,e.copy=function(){return jw(t())},e}var Lw=Array.prototype.map;function zw(e){return Lw.call(e,Zi)}const Rw=Array.prototype.slice,$w={};function Hw(e,t,n){const r=function(){const n=t();return n.invertRange||(n.invertRange=n.invert?(r=n,function(e){let t,n=e[0],i=e[1];return i=s&&n[o]<=l&&(c<0&&(c=o),r=o);if(!(c<0))return s=e.invertExtent(n[c]),l=e.invertExtent(n[r]),[void 0===s[0]?s[1]:s[0],void 0===l[1]?l[0]:l[1]]}}(n):void 0),n.type=e,n;var r};return r.metadata=ea(go(n)),r}function Uw(e,t,n){return arguments.length>1?($w[e]=Hw(e,t,n),this):qw(e)?$w[e]:void 0}function qw(e){return Mo($w,e)}function Ww(e,t){const n=$w[e];return n&&n.metadata[t]}function Vw(e){return Ww(e,Ow)}function Gw(e){return Ww(e,Fw)}function Xw(e){return Ww(e,Pw)}function Yw(e){return Ww(e,gw)}function Jw(e){return Ww(e,Nw)}function Zw(e){return Ww(e,Ew)}Uw("identity",(function e(t){var n;function r(e){return null==e||isNaN(e=+e)?n:e}return r.invert=r,r.domain=r.range=function(e){return arguments.length?(t=Array.from(e,hv),r):t.slice()},r.unknown=function(e){return arguments.length?(n=e,r):n},r.copy=function(){return e(t).unknown(n)},t=arguments.length?Array.from(t,hv):[0,1],xv(r)})),Uw(mw,(function e(){var t=bv();return t.copy=function(){return vv(t,e())},vg.apply(t,arguments),xv(t)}),Ow),Uw(gw,(function e(){var t=Av(yv()).domain([1,10]);return t.copy=function(){return vv(t,e()).base(t.base())},vg.apply(t,arguments),t}),[Ow,gw]),Uw(vw,Pv,Ow),Uw(yw,(function(){return Pv.apply(null,arguments).exponent(.5)}),Ow),Uw(bw,(function e(){var t=Bv(yv());return t.copy=function(){return vv(t,e()).constant(t.constant())},vg.apply(t,arguments)}),Ow),Uw(xw,(function(){return vg.apply(lx(Iy,By,fy,hy,ry,ty,Qv,Zv,Yv,$y).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}),[Ow,Iw]),Uw(ww,(function(){return vg.apply(lx(Py,Ny,Oy,Ty,wy,by,vy,my,Yv,Hy).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}),[Ow,Iw]),Uw(_w,hx,[Ow,Nw]),Uw("".concat(_w,"-").concat(mw),hx,[Ow,Nw]),Uw("".concat(_w,"-").concat(gw),(function e(){var t=Av(cx()).domain([1,10]);return t.copy=function(){return ux(t,e()).base(t.base())},yg.apply(t,arguments)}),[Ow,Nw,gw]),Uw("".concat(_w,"-").concat(vw),dx,[Ow,Nw]),Uw("".concat(_w,"-").concat(yw),(function(){return dx.apply(null,arguments).exponent(.5)}),[Ow,Nw]),Uw("".concat(_w,"-").concat(bw),(function e(){var t=Bv(cx());return t.copy=function(){return ux(t,e()).constant(t.constant())},yg.apply(t,arguments)}),[Ow,Nw]),Uw("".concat(kw,"-").concat(mw),(function e(){var t=xv(px()(fv));return t.copy=function(){return ux(t,e())},yg.apply(t,arguments)}),[Ow,Nw]),Uw("".concat(kw,"-").concat(gw),(function e(){var t=Av(px()).domain([.1,1,10]);return t.copy=function(){return ux(t,e()).base(t.base())},yg.apply(t,arguments)}),[Ow,Nw,gw]),Uw("".concat(kw,"-").concat(vw),mx,[Ow,Nw]),Uw("".concat(kw,"-").concat(yw),(function(){return mx.apply(null,arguments).exponent(.5)}),[Ow,Nw]),Uw("".concat(kw,"-").concat(bw),(function e(){var t=Bv(px());return t.copy=function(){return ux(t,e()).constant(t.constant())},yg.apply(t,arguments)}),[Ow,Nw]),Uw(Ew,(function e(){var t,n=[],r=[],i=[];function o(){var e=0,t=Math.max(1,r.length);for(i=new Array(t-1);++e0?i[t-1]:n[0],t=i?[o[i-1],r]:[o[t-1],o[t]]},s.unknown=function(e){return arguments.length?(t=e,s):s},s.thresholds=function(){return o.slice()},s.copy=function(){return e().domain([n,r]).range(a).unknown(t)},vg.apply(xv(s),arguments)}),Pw),Uw(Sw,(function e(){var t,n=[.5],r=[0,1],i=1;function o(e){return null!=e&&e<=e?r[gg(n,e,0,i)]:t}return o.domain=function(e){return arguments.length?(n=Array.from(e),i=Math.min(n.length,r.length-1),o):n.slice()},o.range=function(e){return arguments.length?(r=Array.from(e),i=Math.min(n.length,r.length-1),o):r.slice()},o.invertExtent=function(e){var t=r.indexOf(e);return[n[t-1],n[t]]},o.unknown=function(e){return arguments.length?(t=e,o):t},o.copy=function(){return e().domain(n).range(r).unknown(t)},vg.apply(o,arguments)}),Pw),Uw(Mw,(function e(){let t=[],n=[];function r(e){return null==e||e!=e?void 0:n[(gg(t,e)-1)%n.length]}return r.domain=function(e){return arguments.length?(t=zw(e),r):t.slice()},r.range=function(e){return arguments.length?(n=Rw.call(e),r):n.slice()},r.tickFormat=function(e,n){return $g(t[0],Ji(t),null==e?10:e,n)},r.copy=function(){return e().domain(r.domain()).range(r.range())},r}),[Fw,Pw]),Uw(Dw,xg,Fw),Uw(Tw,Bw,Fw),Uw(Aw,(function(){return jw(Bw().paddingInner(1))}),Fw);const Kw=["clamp","base","constant","exponent"];function Qw(e,t){const n=t[0],r=Ji(t)-n;return function(t){return e(n+t*r)}}function e_(e,t,n){return fx(r_(t||"rgb",n),e)}function t_(e,t){const n=new Array(t),r=t+1;for(let i=0;ie[t]?a[t](e[t]()):0)),a):Eo(.5)}function r_(e,t){const n=a[function(e){return"interpolate"+e.toLowerCase().split("-").map((e=>e[0].toUpperCase()+e.slice(1))).join("")}(e)];return null!=t&&n&&n.gamma?n.gamma(t):n}function i_(e){const t=e.length/6|0,n=new Array(t);for(let r=0;r1?(a_[e]=t,this):a_[e]}o_({category10:"1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf",category20:"1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5",category20b:"393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6",category20c:"3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9",tableau10:"4c78a8f58518e4575672b7b254a24beeca3bb279a2ff9da69d755dbab0ac",tableau20:"4c78a89ecae9f58518ffbf7954a24b88d27ab79a20f2cf5b43989483bcb6e45756ff9d9879706ebab0acd67195fcbfd2b279a2d6a5c99e765fd8b5a5",accent:"7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666",dark2:"1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666",paired:"a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928",pastel1:"fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2",pastel2:"b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc",set1:"e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999",set2:"66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3",set3:"8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"},i_),o_({blues:"cfe1f2bed8eca8cee58fc1de74b2d75ba3cf4592c63181bd206fb2125ca40a4a90",greens:"d3eecdc0e6baabdda594d3917bc77d60ba6c46ab5e329a512089430e7735036429",greys:"e2e2e2d4d4d4c4c4c4b1b1b19d9d9d8888887575756262624d4d4d3535351e1e1e",oranges:"fdd8b3fdc998fdb87bfda55efc9244f87f2cf06b18e4580bd14904b93d029f3303",purples:"e2e1efd4d4e8c4c5e0b4b3d6a3a0cc928ec3827cb97566ae684ea25c3696501f8c",reds:"fdc9b4fcb49afc9e80fc8767fa7051f6573fec3f2fdc2a25c81b1db21218970b13",blueGreen:"d5efedc1e8e0a7ddd18bd2be70c6a958ba9144ad77319c5d2089460e7736036429",bluePurple:"ccddecbad0e4a8c2dd9ab0d4919cc98d85be8b6db28a55a6873c99822287730f71",greenBlue:"d3eecec5e8c3b1e1bb9bd8bb82cec269c2ca51b2cd3c9fc7288abd1675b10b60a1",orangeRed:"fddcaffdcf9bfdc18afdad77fb9562f67d53ee6545e24932d32d1ebf130da70403",purpleBlue:"dbdaebc8cee4b1c3de97b7d87bacd15b9fc93a90c01e7fb70b70ab056199045281",purpleBlueGreen:"dbd8eac8cee4b0c3de93b7d872acd1549fc83892bb1c88a3097f8702736b016353",purpleRed:"dcc9e2d3b3d7ce9eccd186c0da6bb2e14da0e23189d91e6fc61159ab07498f023a",redPurple:"fccfccfcbec0faa9b8f98faff571a5ec539ddb3695c41b8aa908808d0179700174",yellowGreen:"e4f4acd1eca0b9e2949ed68880c97c62bb6e47aa5e3297502083440e723b036034",yellowOrangeBrown:"feeaa1fedd84fecc63feb746fca031f68921eb7215db5e0bc54c05ab3d038f3204",yellowOrangeRed:"fee087fed16ffebd59fea849fd903efc7335f9522bee3423de1b20ca0b22af0225",blueOrange:"134b852f78b35da2cb9dcae1d2e5eff2f0ebfce0bafbbf74e8932fc5690d994a07",brownBlueGreen:"704108a0651ac79548e3c78af3e6c6eef1eac9e9e48ed1c74da79e187a72025147",purpleGreen:"5b1667834792a67fb6c9aed3e6d6e8eff0efd9efd5aedda971bb75368e490e5e29",purpleOrange:"4114696647968f83b7b9b4d6dadbebf3eeeafce0bafbbf74e8932fc5690d994a07",redBlue:"8c0d25bf363adf745ef4ae91fbdbc9f2efeed2e5ef9dcae15da2cb2f78b3134b85",redGrey:"8c0d25bf363adf745ef4ae91fcdccbfaf4f1e2e2e2c0c0c0969696646464343434",yellowGreenBlue:"eff9bddbf1b4bde5b594d5b969c5be45b4c22c9ec02182b82163aa23479c1c3185",redYellowBlue:"a50026d4322cf16e43fcac64fedd90faf8c1dcf1ecabd6e875abd04a74b4313695",redYellowGreen:"a50026d4322cf16e43fcac63fedd8df9f7aed7ee8ea4d86e64bc6122964f006837",pinkYellowGreen:"8e0152c0267edd72adf0b3d6faddedf5f3efe1f2cab6de8780bb474f9125276419",spectral:"9e0142d13c4bf0704afcac63fedd8dfbf8b0e0f3a1a9dda269bda94288b55e4fa2",viridis:"440154470e61481a6c482575472f7d443a834144873d4e8a39568c35608d31688e2d708e2a788e27818e23888e21918d1f988b1fa08822a8842ab07f35b77943bf7154c56866cc5d7ad1518fd744a5db36bcdf27d2e21be9e51afde725",magma:"0000040404130b0924150e3720114b2c11603b0f704a107957157e651a80721f817f24828c29819a2e80a8327db6377ac43c75d1426fde4968e95462f1605df76f5cfa7f5efc8f65fe9f6dfeaf78febf84fece91fddea0fcedaffcfdbf",inferno:"0000040403130c0826170c3b240c4f330a5f420a68500d6c5d126e6b176e781c6d86216b932667a12b62ae305cbb3755c73e4cd24644dd513ae65c30ed6925f3771af8850ffb9506fca50afcb519fac62df6d645f2e661f3f484fcffa4",plasma:"0d088723069033059742039d5002a25d01a66a00a87801a88405a7900da49c179ea72198b12a90ba3488c33d80cb4779d35171da5a69e16462e76e5bed7953f2834cf68f44fa9a3dfca636fdb32ffec029fcce25f9dc24f5ea27f0f921",cividis:"00205100235800265d002961012b65042e670831690d346b11366c16396d1c3c6e213f6e26426e2c456e31476e374a6e3c4d6e42506e47536d4c566d51586e555b6e5a5e6e5e616e62646f66676f6a6a706e6d717270717573727976737c79747f7c75827f758682768985778c8877908b78938e789691789a94789e9778a19b78a59e77a9a177aea575b2a874b6ab73bbaf71c0b26fc5b66dc9b96acebd68d3c065d8c462ddc85fe2cb5ce7cf58ebd355f0d652f3da4ff7de4cfae249fce647",rainbow:"6e40aa883eb1a43db3bf3cafd83fa4ee4395fe4b83ff576eff6659ff7847ff8c38f3a130e2b72fcfcc36bee044aff05b8ff4576ff65b52f6673af27828ea8d1ddfa319d0b81cbecb23abd82f96e03d82e14c6edb5a5dd0664dbf6e40aa",sinebow:"ff4040fc582af47218e78d0bd5a703bfbf00a7d5038de70b72f41858fc2a40ff402afc5818f4720be78d03d5a700bfbf03a7d50b8de71872f42a58fc4040ff582afc7218f48d0be7a703d5bf00bfd503a7e70b8df41872fc2a58ff4040",turbo:"23171b32204a3e2a71453493493eae4b49c54a53d7485ee44569ee4074f53c7ff8378af93295f72e9ff42ba9ef28b3e926bce125c5d925cdcf27d5c629dcbc2de3b232e9a738ee9d3ff39347f68950f9805afc7765fd6e70fe667cfd5e88fc5795fb51a1f84badf545b9f140c5ec3cd0e637dae034e4d931ecd12ef4c92bfac029ffb626ffad24ffa223ff9821ff8d1fff821dff771cfd6c1af76118f05616e84b14df4111d5380fcb2f0dc0260ab61f07ac1805a313029b0f00950c00910b00",browns:"eedbbdecca96e9b97ae4a865dc9856d18954c7784cc0673fb85536ad44339f3632",tealBlues:"bce4d89dd3d181c3cb65b3c245a2b9368fae347da0306a932c5985",teals:"bbdfdfa2d4d58ac9c975bcbb61b0af4da5a43799982b8b8c1e7f7f127273006667",warmGreys:"dcd4d0cec5c1c0b8b4b3aaa7a59c9998908c8b827f7e7673726866665c5a59504e",goldGreen:"f4d166d5ca60b6c35c98bb597cb25760a6564b9c533f8f4f33834a257740146c36",goldOrange:"f4d166f8be5cf8aa4cf5983bf3852aef701be2621fd65322c54923b142239e3a26",goldRed:"f4d166f6be59f9aa51fc964ef6834bee734ae56249db5247cf4244c43141b71d3e",lightGreyRed:"efe9e6e1dad7d5cbc8c8bdb9bbaea9cd967ddc7b43e15f19df4011dc000b",lightGreyTeal:"e4eaead6dcddc8ced2b7c2c7a6b4bc64b0bf22a6c32295c11f85be1876bc",lightMulti:"e0f1f2c4e9d0b0de9fd0e181f6e072f6c053f3993ef77440ef4a3c",lightOrange:"f2e7daf7d5baf9c499fab184fa9c73f68967ef7860e8645bde515bd43d5b",lightTealBlue:"e3e9e0c0dccf9aceca7abfc859afc0389fb9328dad2f7ca0276b95255988",darkBlue:"3232322d46681a5c930074af008cbf05a7ce25c0dd38daed50f3faffffff",darkGold:"3c3c3c584b37725e348c7631ae8b2bcfa424ecc31ef9de30fff184ffffff",darkGreen:"3a3a3a215748006f4d048942489e4276b340a6c63dd2d836ffeb2cffffaa",darkMulti:"3737371f5287197d8c29a86995ce3fffe800ffffff",darkRed:"3434347036339e3c38cc4037e75d1eec8620eeab29f0ce32ffeb2c"},(e=>e_(i_(e))));const l_="symbol",c_=e=>qi(e)?e.map((e=>String(e))):String(e),u_=(e,t)=>e[1]-t[1],h_=(e,t)=>t[1]-e[1];function d_(e,t,n){let r;return zo(t)&&(e.bins&&(t=Math.max(t,e.bins.length)),null!=n&&(t=Math.min(t,Math.floor(Xo(e.domain())/n||1)))),Wi(t)&&(r=t.step,t=t.interval),$o(t)&&(t=e.type===xw?bl(t):e.type==ww?xl(t):Ai("Only time and utc scales accept interval strings."),r&&(t=t.every(r))),t}function f_(e,t,n){let r=e.range(),i=r[0],o=Ji(r),a=u_;if(i>o&&(r=o,o=i,i=r,a=h_),i=Math.floor(i),o=Math.ceil(o),t=t.map((t=>[t,e(t)])).filter((e=>i<=e[1]&&e[1]<=o)).sort(a).map((e=>e[0])),n>0&&t.length>1){const e=[t[0],Ji(t)];for(;t.length>n&&t.length>=3;)t=t.filter(((e,t)=>!(t%2)));t.length<3&&(t=e)}return t}function p_(e,t){return e.bins?f_(e,e.bins):e.ticks?e.ticks(t):e.domain()}function m_(e,t,n,r,i,o){const a=t.type;let s=c_;if(a===xw||i===xw)s=e.timeFormat(r);else if(a===ww||i===ww)s=e.utcFormat(r);else if(Yw(a)){const i=e.formatFloat(r);if(o||t.bins)s=i;else{const e=g_(t,n,!1);s=t=>e(t)?i(t):""}}else if(t.tickFormat){const i=t.domain();s=e.formatSpan(i[0],i[i.length-1],n,r)}else r&&(s=e.format(r));return s}function g_(e,t,n){const r=p_(e,t),i=e.base(),o=Math.log(i),a=Math.max(1,i*t/r.length),s=e=>{let t=e/Math.pow(i,Math.round(Math.log(e)/o));return t*i1?r[1]-r[0]:r[0];for(o=1;ov_[e.type]||e.bins)(t)?w_(s):"discrete"===r?k_(s):E_(s)}const w_=e=>(t,n,r)=>{const i=__(r[n+1],__(r.max,1/0)),o=C_(t,e),a=C_(i,e);return o&&a?o+" – "+a:a?"< "+a:"≥ "+o},__=(e,t)=>null!=e?e:t,k_=e=>(t,n)=>n?e(t):null,E_=e=>t=>e(t),C_=(e,t)=>Number.isFinite(e)?t(e):null;function S_(e,t,n){n=n||{};const r=Math.max(3,n.maxlen||7),i=function(e,t,n,r){const i=r||t.type;return $o(n)&&function(e){return Ww(e,Iw)}(i)&&(n=n.replace(/%a/g,"%A").replace(/%b/g,"%B")),n||i!==xw?n||i!==ww?x_(e,t,5,null,n,r,!0):e.utcFormat("%A, %d %B %Y, %X UTC"):e.timeFormat("%A, %d %B %Y, %X")}(e,t,n.format,n.formatType);if(Xw(t.type)){const e=b_(t).slice(1).map(i),n=e.length;return"".concat(n," boundar").concat(1===n?"y":"ies",": ").concat(e.join(", "))}if(Gw(t.type)){const e=t.domain(),n=e.length,o=n>r?e.slice(0,r-2).map(i).join(", ")+", ending with "+e.slice(-1).map(i):e.map(i).join(", ");return"".concat(n," value").concat(1===n?"":"s",": ").concat(o)}{const e=t.domain();return"values from ".concat(i(e[0])," to ").concat(i(Ji(e)))}}let D_=0;const A_="p_";function T_(e){return e&&e.gradient}function M_(e,t,n){const r=e.gradient;let i=e.id,o="radial"===r?A_:"";return i||(i=e.id="gradient_"+D_++,"radial"===r?(e.x1=O_(e.x1,.5),e.y1=O_(e.y1,.5),e.r1=O_(e.r1,0),e.x2=O_(e.x2,.5),e.y2=O_(e.y2,.5),e.r2=O_(e.r2,.5),o=A_):(e.x1=O_(e.x1,0),e.y1=O_(e.y1,0),e.x2=O_(e.x2,1),e.y2=O_(e.y2,0))),t[i]=e,"url("+(n||"")+"#"+o+i+")"}function O_(e,t){return null!=e?e:t}function F_(e,t){var n,r=[];return n={gradient:"linear",x1:e?e[0]:0,y1:e?e[1]:0,x2:t?t[0]:1,y2:t?t[1]:0,stops:r,stop:function(e,t){return r.push({offset:e,color:t}),n}}}const P_={basis:{curve:function(e){return new Jp(e)}},"basis-closed":{curve:function(e){return new Kp(e)}},"basis-open":{curve:function(e){return new Qp(e)}},bundle:{curve:tm,tension:"beta",value:.85},cardinal:{curve:im,tension:"tension",value:0},"cardinal-open":{curve:am,tension:"tension",value:0},"cardinal-closed":{curve:lm,tension:"tension",value:0},"catmull-rom":{curve:Em,tension:"alpha",value:.5},"catmull-rom-closed":{curve:Sm,tension:"alpha",value:.5},"catmull-rom-open":{curve:Am,tension:"alpha",value:.5},linear:{curve:Mm},"linear-closed":{curve:function(e){return new Om(e)}},monotone:{horizontal:function(e){return new jm(e)},vertical:function(e){return new Bm(e)}},natural:{curve:function(e){return new zm(e)}},step:{curve:function(e){return new $m(e,.5)}},"step-after":{curve:function(e){return new $m(e,1)}},"step-before":{curve:function(e){return new $m(e,0)}}};function N_(e,t,n){var r=Mo(P_,e)&&P_[e],i=null;return r&&(i=r.curve||r[t||"vertical"],r.tension&&null!=n&&(i=i[r.tension](n))),i}const I_={m:2,l:2,h:1,v:1,c:6,s:4,q:4,t:2,a:7},B_=[/([MLHVCSQTAZmlhvcsqtaz])/g,/###/,/(\.\d+)(\.\d)/g,/(\d)([-+])/g,/\s|,|###/];function j_(e){const t=[];let n,r,i,o,a,s,l,c,u,h;const d=e.slice().replace(B_[0],"###$1").split(B_[1]).slice(1);for(l=0,u=d.length;ls){const e=i.length;for(c=1,t.push([a].concat(i.slice(c,c+=s))),a="M"===a?"L":"m"===a?"l":a;c1&&(m=Math.sqrt(m),n*=m,r*=m);const g=d/n,v=h/n,y=-h/r,b=d/r,x=g*s+v*l,w=y*s+b*l,_=g*e+v*t,k=y*e+b*t;let E=1/((_-x)*(_-x)+(k-w)*(k-w))-.25;E<0&&(E=0);let C=Math.sqrt(E);o==i&&(C=-C);const S=.5*(x+_)-C*(k-w),D=.5*(w+k)+C*(_-x),A=Math.atan2(w-D,x-S);let T=Math.atan2(k-D,_-S)-A;T<0&&1===o?T+=R_:T>0&&0===o&&(T-=R_);const M=Math.ceil(Math.abs(T/(z_+.001))),O=[];for(let e=0;e+e}function ak(e,t,n){return Math.max(t,Math.min(e,n))}function sk(){var e=tk,t=nk,n=rk,r=ik,i=ok(0),o=i,a=i,s=i,l=null;function c(c,u,h){var d,f=null!=u?u:+e.call(this,c),p=null!=h?h:+t.call(this,c),m=+n.call(this,c),g=+r.call(this,c),v=Math.min(m,g)/2,y=ak(+i.call(this,c),0,v),b=ak(+o.call(this,c),0,v),x=ak(+a.call(this,c),0,v),w=ak(+s.call(this,c),0,v);if(l||(l=d=Xm()),y<=0&&b<=0&&x<=0&&w<=0)l.rect(f,p,m,g);else{var _=f+m,k=p+g;l.moveTo(f+y,p),l.lineTo(_-b,p),l.bezierCurveTo(_-ek*b,p,_,p+ek*b,_,p+b),l.lineTo(_,k-w),l.bezierCurveTo(_,k-ek*w,_-ek*w,k,_-w,k),l.lineTo(f+x,k),l.bezierCurveTo(f+ek*x,k,f,k-ek*x,f,k-x),l.lineTo(f,p+y),l.bezierCurveTo(f,p+ek*y,f+ek*y,p,f+y,p),l.closePath()}if(d)return l=null,d+""||null}return c.x=function(t){return arguments.length?(e=ok(t),c):e},c.y=function(e){return arguments.length?(t=ok(e),c):t},c.width=function(e){return arguments.length?(n=ok(e),c):n},c.height=function(e){return arguments.length?(r=ok(e),c):r},c.cornerRadius=function(e,t,n,r){return arguments.length?(i=ok(e),o=null!=t?ok(t):i,s=null!=n?ok(n):i,a=null!=r?ok(r):o,c):i},c.context=function(e){return arguments.length?(l=null==e?null:e,c):l},c}function lk(){var e,t,n,r,i,o,a,s,l=null;function c(e,t,n){const r=n/2;if(i){var c=a-t,u=e-o;if(c||u){var h=Math.sqrt(c*c+u*u),d=(c/=h)*s,f=(u/=h)*s,p=Math.atan2(u,c);l.moveTo(o-d,a-f),l.lineTo(e-c*r,t-u*r),l.arc(e,t,r,p-Math.PI,p),l.lineTo(o+d,a+f),l.arc(o,a,s,p,p+Math.PI)}else l.arc(e,t,r,0,R_);l.closePath()}else i=1;o=e,a=t,s=r}function u(o){var a,s,u,h=o.length,d=!1;for(null==l&&(l=u=Xm()),a=0;a<=h;++a)!(ae.x||0,hk=e=>e.y||0,dk=e=>!(!1===e.defined),fk=function(){var e=Jm,t=Zm,n=Ym(0),r=null,i=Km,o=Qm,a=eg,s=null;function l(){var l,c,u=+e.apply(this,arguments),h=+t.apply(this,arguments),d=i.apply(this,arguments)-ym,f=o.apply(this,arguments)-ym,p=cm(f-d),m=f>d;if(s||(s=l=Xm()),hgm)if(p>bm-gm)s.moveTo(h*hm(d),h*pm(d)),s.arc(0,0,h,d,f,!m),u>gm&&(s.moveTo(u*hm(f),u*pm(f)),s.arc(0,0,u,f,d,m));else{var g,v,y=d,b=f,x=d,w=f,_=p,k=p,E=a.apply(this,arguments)/2,C=E>gm&&(r?+r.apply(this,arguments):mm(u*u+h*h)),S=fm(cm(h-u)/2,+n.apply(this,arguments)),D=S,A=S;if(C>gm){var T=wm(C/u*pm(E)),M=wm(C/h*pm(E));(_-=2*T)>gm?(x+=T*=m?1:-1,w-=T):(_=0,x=w=(d+f)/2),(k-=2*M)>gm?(y+=M*=m?1:-1,b-=M):(k=0,y=b=(d+f)/2)}var O=h*hm(y),F=h*pm(y),P=u*hm(w),N=u*pm(w);if(S>gm){var I,B=h*hm(b),j=h*pm(b),L=u*hm(x),z=u*pm(x);if(pgm?A>gm?(g=ng(L,z,O,F,h,A,m),v=ng(B,j,P,N,h,A,m),s.moveTo(g.cx+g.x01,g.cy+g.y01),Agm&&_>gm?D>gm?(g=ng(P,N,B,j,u,-D,m),v=ng(O,F,L,z,u,-D,m),s.lineTo(g.cx+g.x01,g.cy+g.y01),De.startAngle||0)).endAngle((e=>e.endAngle||0)).padAngle((e=>e.padAngle||0)).innerRadius((e=>e.innerRadius||0)).outerRadius((e=>e.outerRadius||0)).cornerRadius((e=>e.cornerRadius||0)),pk=sg().x(uk).y1(hk).y0((e=>(e.y||0)+(e.height||0))).defined(dk),mk=sg().y(hk).x1(uk).x0((e=>(e.x||0)+(e.width||0))).defined(dk),gk=ag().x(uk).y(hk).defined(dk),vk=sk().x(uk).y(hk).width((e=>e.width||0)).height((e=>e.height||0)).cornerRadius((e=>ck(e.cornerRadiusTopLeft,e.cornerRadius)||0),(e=>ck(e.cornerRadiusTopRight,e.cornerRadius)||0),(e=>ck(e.cornerRadiusBottomRight,e.cornerRadius)||0),(e=>ck(e.cornerRadiusBottomLeft,e.cornerRadius)||0)),yk=function(e,t){var n=null;function r(){var r;if(n||(n=r=Xm()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),r)return n=null,r+""||null}return e="function"==typeof e?e:Ym(e||lg),t="function"==typeof t?t:Ym(void 0===t?64:+t),r.type=function(t){return arguments.length?(e="function"==typeof t?t:Ym(t),r):e},r.size=function(e){return arguments.length?(t="function"==typeof e?e:Ym(+e),r):t},r.context=function(e){return arguments.length?(n=null==e?null:e,r):n},r}().type((e=>K_(e.shape||"circle"))).size((e=>ck(e.size,64))),bk=lk().x(uk).y(hk).defined(dk).size((e=>e.size||1));function xk(e){return e.cornerRadius||e.cornerRadiusTopLeft||e.cornerRadiusTopRight||e.cornerRadiusBottomRight||e.cornerRadiusBottomLeft}function wk(e,t,n,r){return vk.context(e)(t,n,r)}var _k=1;function kk(){_k=1}function Ek(e,t,n){var r=t.clip,i=e._defs,o=t.clip_id||(t.clip_id="clip"+_k++),a=i.clipping[o]||(i.clipping[o]={id:o});return yo(r)?a.path=r(null):xk(n)?a.path=wk(null,n,0,0):(a.width=n.width||0,a.height=n.height||0),"url(#"+o+")"}function Ck(e){this.clear(),e&&this.union(e)}function Sk(e){this.mark=e,this.bounds=this.bounds||new Ck}function Dk(e){Sk.call(this,e),this.items=this.items||[]}function Ak(e){this._pending=0,this._loader=e||Sh()}function Tk(e){e._pending+=1}function Mk(e){e._pending-=1}function Ok(e,t,n){if(t.stroke&&0!==t.opacity&&0!==t.strokeOpacity){const r=null!=t.strokeWidth?+t.strokeWidth:1;e.expand(r+(n?function(e,t){return e.strokeJoin&&"miter"!==e.strokeJoin?0:t}(t,r):0))}return e}Ck.prototype={clone(){return new Ck(this)},clear(){return this.x1=+Number.MAX_VALUE,this.y1=+Number.MAX_VALUE,this.x2=-Number.MAX_VALUE,this.y2=-Number.MAX_VALUE,this},empty(){return this.x1===+Number.MAX_VALUE&&this.y1===+Number.MAX_VALUE&&this.x2===-Number.MAX_VALUE&&this.y2===-Number.MAX_VALUE},equals(e){return this.x1===e.x1&&this.y1===e.y1&&this.x2===e.x2&&this.y2===e.y2},set(e,t,n,r){return nthis.x2&&(this.x2=e),t>this.y2&&(this.y2=t),this},expand(e){return this.x1-=e,this.y1-=e,this.x2+=e,this.y2+=e,this},round(){return this.x1=Math.floor(this.x1),this.y1=Math.floor(this.y1),this.x2=Math.ceil(this.x2),this.y2=Math.ceil(this.y2),this},scale(e){return this.x1*=e,this.y1*=e,this.x2*=e,this.y2*=e,this},translate(e,t){return this.x1+=e,this.x2+=e,this.y1+=t,this.y2+=t,this},rotate(e,t,n){const r=this.rotatedPoints(e,t,n);return this.clear().add(r[0],r[1]).add(r[2],r[3]).add(r[4],r[5]).add(r[6],r[7])},rotatedPoints(e,t,n){var{x1:r,y1:i,x2:o,y2:a}=this,s=Math.cos(e),l=Math.sin(e),c=t-t*s+n*l,u=n-t*l-n*s;return[s*r-l*i+c,l*r+s*i+u,s*r-l*a+c,l*r+s*a+u,s*o-l*i+c,l*o+s*i+u,s*o-l*a+c,l*o+s*a+u]},union(e){return e.x1this.x2&&(this.x2=e.x2),e.y2>this.y2&&(this.y2=e.y2),this},intersect(e){return e.x1>this.x1&&(this.x1=e.x1),e.y1>this.y1&&(this.y1=e.y1),e.x2=e.x2&&this.y1<=e.y1&&this.y2>=e.y2},alignsWith(e){return e&&(this.x1==e.x1||this.x2==e.x2||this.y1==e.y1||this.y2==e.y2)},intersects(e){return e&&!(this.x2e.x2||this.y2e.y2)},contains(e,t){return!(ethis.x2||tthis.y2)},width(){return this.x2-this.x1},height(){return this.y2-this.y1}},No(Dk,Sk),Ak.prototype={pending(){return this._pending},sanitizeURL(e){const t=this;return Tk(t),t._loader.sanitize(e,{context:"href"}).then((e=>(Mk(t),e))).catch((()=>(Mk(t),null)))},loadImage(e){const t=this,n=ug();return Tk(t),t._loader.sanitize(e,{context:"image"}).then((e=>{const r=e.href;if(!r||!n)throw{url:r};const i=new n,o=Mo(e,"crossOrigin")?e.crossOrigin:"anonymous";return null!=o&&(i.crossOrigin=o),i.onload=()=>Mk(t),i.onerror=()=>Mk(t),i.src=r,i})).catch((e=>(Mk(t),{complete:!1,width:0,height:0,src:e&&e.url||""})))},ready(){const e=this;return new Promise((t=>{!function n(r){e.pending()?setTimeout((()=>{n(!0)}),10):t(r)}(!1)}))}};const Fk=R_-1e-8;let Pk,Nk,Ik,Bk,jk,Lk,zk,Rk;const $k=(e,t)=>Pk.add(e,t),Hk=(e,t)=>$k(Nk=e,Ik=t),Uk=e=>$k(e,Pk.y1),qk=e=>$k(Pk.x1,e),Wk=(e,t)=>jk*e+zk*t,Vk=(e,t)=>Lk*e+Rk*t,Gk=(e,t)=>$k(Wk(e,t),Vk(e,t)),Xk=(e,t)=>Hk(Wk(e,t),Vk(e,t));function Yk(e,t){return Pk=e,t?(Bk=t*L_,jk=Rk=Math.cos(Bk),Lk=Math.sin(Bk),zk=-Lk):(jk=Rk=1,Bk=Lk=zk=0),Jk}const Jk={beginPath(){},closePath(){},moveTo:Xk,lineTo:Xk,rect(e,t,n,r){Bk?(Gk(e+n,t),Gk(e+n,t+r),Gk(e,t+r),Xk(e,t)):($k(e+n,t+r),Hk(e,t))},quadraticCurveTo(e,t,n,r){const i=Wk(e,t),o=Vk(e,t),a=Wk(n,r),s=Vk(n,r);Zk(Nk,i,a,Uk),Zk(Ik,o,s,qk),Hk(a,s)},bezierCurveTo(e,t,n,r,i,o){const a=Wk(e,t),s=Vk(e,t),l=Wk(n,r),c=Vk(n,r),u=Wk(i,o),h=Vk(i,o);Kk(Nk,a,l,u,Uk),Kk(Ik,s,c,h,qk),Hk(u,h)},arc(e,t,n,r,i,o){if(r+=Bk,i+=Bk,Nk=n*Math.cos(i)+e,Ik=n*Math.sin(i)+t,Math.abs(i-r)>Fk)$k(e-n,t-n),$k(e+n,t+n);else{const a=r=>$k(n*Math.cos(r)+e,n*Math.sin(r)+t);let s,l;if(a(r),a(i),i!==r)if((r%=R_)<0&&(r+=R_),(i%=R_)<0&&(i+=R_),ii;++l,s-=z_)a(s);else for(s=r-r%z_+z_,l=0;l<4&&s1e-14?(l=a*a+s*o,l>=0&&(l=Math.sqrt(l),c=(-a+l)/o,u=(-a-l)/o)):c=.5*s/a,0g)return!1;f>m&&(m=f)}else if(h>0){if(f0&&(e.globalAlpha=n,e.fillStyle=uE(e,t,t.fill),!0)}var dE=[];function fE(e,t,n){var r=null!=(r=t.strokeWidth)?r:1;return!(r<=0)&&(n*=null==t.strokeOpacity?1:t.strokeOpacity)>0&&(e.globalAlpha=n,e.strokeStyle=uE(e,t,t.stroke),e.lineWidth=r,e.lineCap=t.strokeCap||"butt",e.lineJoin=t.strokeJoin||"miter",e.miterLimit=t.strokeMiterLimit||10,e.setLineDash&&(e.setLineDash(t.strokeDash||dE),e.lineDashOffset=t.strokeDashOffset||0),!0)}function pE(e,t){return e.zindex-t.zindex||e.index-t.index}function mE(e){if(!e.zdirty)return e.zitems;var t,n,r,i=e.items,o=[];for(n=0,r=i.length;n=0;)if(n=t(i[r]))return n;if(i===o)for(r=(i=e.items).length;--r>=0;)if(!i[r].zindex&&(n=t(i[r])))return n;return null}function yE(e){return function(t,n,r){gE(n,(n=>{r&&!r.intersects(n.bounds)||bE(e,t,n,n)}))}}function bE(e,t,n,r){var i=null==n.opacity?1:n.opacity;0!==i&&(e(t,r)||(sE(t,n),n.fill&&hE(t,n,i)&&t.fill(),n.stroke&&fE(t,n,i)&&t.stroke()))}function xE(e){return e=e||Ii,function(t,n,r,i,o,a){return r*=t.pixelRatio,i*=t.pixelRatio,vE(n,(n=>{const s=n.bounds;if((!s||s.contains(o,a))&&s)return e(t,n,r,i,o,a)?n:void 0}))}}function wE(e,t){return function(n,r,i,o){var a,s,l=Array.isArray(r)?r[0]:r,c=null==t?l.fill:t,u=l.stroke&&n.isPointInStroke;return u&&(a=l.strokeWidth,s=l.strokeCap,n.lineWidth=null!=a?a:1,n.lineCap=null!=s?s:"butt"),!e(n,r)&&(c&&n.isPointInPath(i,o)||u&&n.isPointInStroke(i,o))}}function _E(e){return xE(wE(e))}function kE(e,t){return"translate("+e+","+t+")"}function EE(e){return"rotate("+e+")"}function CE(e){return kE(e.x||0,e.y||0)}function SE(e,t,n){function r(e,n){var r=n.x||0,i=n.y||0,o=n.angle||0;e.translate(r,i),o&&e.rotate(o*=L_),e.beginPath(),t(e,n),o&&e.rotate(-o),e.translate(-r,-i)}return{type:e,tag:"path",nested:!1,attr:function(e,n){e("transform",function(e){return kE(e.x||0,e.y||0)+(e.angle?" "+EE(e.angle):"")}(n)),e("d",t(null,n))},bound:function(e,n){return t(Yk(e,n.angle),n),Ok(e,n).translate(n.x||0,n.y||0)},draw:yE(r),pick:_E(r),isect:n||nE(r)}}var DE=SE("arc",(function(e,t){return fk.context(e)(t)}));function AE(e,t,n){function r(e,n){e.beginPath(),t(e,n)}const i=wE(r);return{type:e,tag:"path",nested:!0,attr:function(e,n){var r=n.mark.items;r.length&&e("d",t(null,r))},bound:function(e,n){var r=n.items;return 0===r.length?e:(t(Yk(e),r),Ok(e,r[0]))},draw:(o=r,function(e,t,n){!t.items.length||n&&!n.intersects(t.bounds)||bE(o,e,t.items[0],t.items)}),pick:function(e,t,n,r,o,a){var s=t.items,l=t.bounds;return!s||!s.length||l&&!l.contains(o,a)?null:(n*=e.pixelRatio,r*=e.pixelRatio,i(e,s,n,r)?s[0]:null)},isect:rE,tip:n};var o}var TE=AE("area",(function(e,t){const n=t[0],r=n.interpolate||"linear";return("horizontal"===n.orient?mk:pk).curve(N_(r,n.orient,n.tension)).context(e)(t)}),(function(e,t){for(var n,r,i="horizontal"===e[0].orient?t[1]:t[0],o="horizontal"===e[0].orient?"y":"x",a=e.length,s=1/0;--a>=0;)!1!==e[a].defined&&(r=Math.abs(e[a][o]-i)).5&&t<1.5?.5-Math.abs(t-1):0}function FE(e,t){const n=OE(t);e("d",wk(null,t,n,n))}function PE(e,t,n,r){const i=OE(t);e.beginPath(),wk(e,t,(n||0)+i,(r||0)+i)}const NE=wE(PE),IE=wE(PE,!1),BE=wE(PE,!0);var jE={type:"group",tag:"g",nested:!1,attr:function(e,t){e("transform",CE(t))},bound:function(e,t){if(!t.clip&&t.items){const n=t.items,r=n.length;for(let t=0;t{const r=t.x||0,i=t.y||0,o=t.strokeForeground,a=null==t.opacity?1:t.opacity;(t.stroke||t.fill)&&a&&(PE(e,t,r,i),sE(e,t),t.fill&&hE(e,t,a)&&e.fill(),t.stroke&&!o&&fE(e,t,a)&&e.stroke()),e.save(),e.translate(r,i),t.clip&&ME(e,t),n&&n.translate(-r,-i),gE(t,(t=>{this.draw(e,t,n)})),n&&n.translate(r,i),e.restore(),o&&t.stroke&&a&&(PE(e,t,r,i),sE(e,t),fE(e,t,a)&&e.stroke())}))},pick:function(e,t,n,r,i,o){if(t.bounds&&!t.bounds.contains(i,o)||!t.items)return null;const a=n*e.pixelRatio,s=r*e.pixelRatio;return vE(t,(l=>{let c,u,h;const d=l.bounds;if(d&&!d.contains(i,o))return;u=l.x||0,h=l.y||0;const f=u+(l.width||0),p=h+(l.height||0),m=l.clip;if(m&&(if||op))return;if(e.save(),e.translate(u,h),u=i-u,h=o-h,m&&xk(l)&&!BE(e,l,a,s))return e.restore(),null;const g=l.strokeForeground,v=!1!==t.interactive;return v&&g&&l.stroke&&IE(e,l,a,s)?(e.restore(),l):(c=vE(l,(e=>function(e,t,n){return(!1!==e.interactive||"group"===e.marktype)&&e.bounds&&e.bounds.contains(t,n)}(e,u,h)?this.pick(e,n,r,u,h):null)),!c&&v&&(l.fill||!g&&l.stroke)&&NE(e,l,a,s)&&(c=l),e.restore(),c||null)}))},isect:iE,content:function(e,t,n){e("clip-path",t.clip?Ek(n,t,t):null)},background:function(e,t){e("class","background"),e("aria-hidden",!0),FE(e,t)},foreground:function(e,t){e("class","foreground"),e("aria-hidden",!0),t.strokeForeground?FE(e,t):e("d","")}},LE={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",version:"1.1"};function zE(e,t){var n=e.image;return(!n||e.url&&e.url!==n.url)&&(n={complete:!1,width:0,height:0},t.loadImage(e.url).then((t=>{e.image=t,e.image.url=e.url}))),n}function RE(e,t){return null!=e.width?e.width:t&&t.width?!1!==e.aspect&&e.height?e.height*t.width/t.height:t.width:0}function $E(e,t){return null!=e.height?e.height:t&&t.height?!1!==e.aspect&&e.width?e.width*t.height/t.width:t.height:0}function HE(e,t){return"center"===e?t/2:"right"===e?t:0}function UE(e,t){return"middle"===e?t/2:"bottom"===e?t:0}var qE={type:"image",tag:"image",nested:!1,attr:function(e,t,n){const r=zE(t,n),i=RE(t,r),o=$E(t,r),a=(t.x||0)-HE(t.align,i),s=(t.y||0)-UE(t.baseline,o);e("href",!r.src&&r.toDataURL?r.toDataURL():r.src||"",LE["xmlns:xlink"],"xlink:href"),e("transform",kE(a,s)),e("width",i),e("height",o),e("preserveAspectRatio",!1===t.aspect?"none":"xMidYMid")},bound:function(e,t){const n=t.image,r=RE(t,n),i=$E(t,n),o=(t.x||0)-HE(t.align,r),a=(t.y||0)-UE(t.baseline,i);return e.set(o,a,o+r,a+i)},draw:function(e,t,n){gE(t,(t=>{if(n&&!n.intersects(t.bounds))return;const r=zE(t,this);let i=RE(t,r),o=$E(t,r);if(0===i||0===o)return;let a,s,l,c,u=(t.x||0)-HE(t.align,i),h=(t.y||0)-UE(t.baseline,o);!1!==t.aspect&&(s=r.width/r.height,l=t.width/t.height,s==s&&l==l&&s!==l&&(l=0;)if(!1!==e[o].defined&&(n=e[o].x-t[0])*n+(r=e[o].y-t[1])*r{if(!n||n.intersects(t.bounds)){var r=null==t.opacity?1:t.opacity;r&&JE(e,t,r)&&(sE(e,t),e.stroke())}}))},pick:xE((function(e,t,n,r){return!!e.isPointInStroke&&JE(e,t,1)&&e.isPointInStroke(n,r)})),isect:oE},KE=SE("shape",(function(e,t){return(t.mark.shape||t.shape).context(e)(t)})),QE=SE("symbol",(function(e,t){return yk.context(e)(t)}),rE);const eC=qo();var tC={height:sC,measureWidth:oC,estimateWidth:rC,width:rC,canvas:nC};function nC(e){tC.width=e&&eE?oC:rC}function rC(e,t){return iC(hC(e,t),sC(e))}function iC(e,t){return~~(.8*e.length*t)}function oC(e,t){return sC(e)<=0||!(t=hC(e,t))?0:aC(t,fC(e))}function aC(e,t){const n=`(${t}) ${e}`;let r=eC.get(n);return void 0===r&&(eE.font=t,r=eE.measureText(e).width,eC.set(n,r)),r}function sC(e){return null!=e.fontSize?+e.fontSize||0:11}function lC(e){return null!=e.lineHeight?e.lineHeight:sC(e)+2}function cC(e){return t=e.lineBreak&&e.text&&!qi(e.text)?e.text.split(e.lineBreak):e.text,qi(t)?t.length>1?t:t[0]:t;var t}function uC(e){const t=cC(e);return(qi(t)?t.length-1:0)*lC(e)}function hC(e,t){const n=null==t?"":(t+"").trim();return e.limit>0&&n.length?function(e,t){var n=+e.limit,r=function(e){if(tC.width===oC){const t=fC(e);return e=>aC(e,t)}{const t=sC(e);return e=>iC(e,t)}}(e);if(r(t)>>1,r(t.slice(i))>n?s=i+1:l=i;return o+t.slice(s)}for(;s>>1),r(t.slice(0,i))Math.max(e,tC.width(t,n))),0)):r=tC.width(t,h),"center"===o?c-=r/2:"right"===o&&(c-=r),e.set(c+=s,u+=l,c+r,u+i),t.angle&&!n)e.rotate(t.angle*L_,s,l);else if(2===n)return e.rotatedPoints(t.angle*L_,s,l);return e}var bC={type:"text",tag:"text",nested:!1,attr:function(e,t){var n,r=t.dx||0,i=(t.dy||0)+pC(t),o=vC(t),a=o.x1,s=o.y1,l=t.angle||0;e("text-anchor",mC[t.align]||"start"),l?(n=kE(a,s)+" "+EE(l),(r||i)&&(n+=" "+kE(r,i))):n=kE(a+r,s+i),e("transform",n)},bound:yC,draw:function(e,t,n){gE(t,(t=>{var r,i,o,a,s,l,c,u=null==t.opacity?1:t.opacity;if(!(n&&!n.intersects(t.bounds)||0===u||t.fontSize<=0||null==t.text||0===t.text.length)){if(e.font=fC(t),e.textAlign=t.align||"left",i=(r=vC(t)).x1,o=r.y1,t.angle&&(e.save(),e.translate(i,o),e.rotate(t.angle*L_),i=o=0),i+=t.dx||0,o+=(t.dy||0)+pC(t),l=cC(t),sE(e,t),qi(l))for(s=lC(t),a=0;a=0;)if(!1!==e[i].defined&&(n=e[i].x-t[0])*n+(r=e[i].y-t[1])*r<(n=e[i].size||1)*n)return e[i];return null})),wC={arc:DE,area:TE,group:jE,image:qE,line:WE,path:GE,rect:YE,rule:ZE,shape:KE,symbol:QE,text:bC,trail:xC};function _C(e,t,n){var r=wC[e.mark.marktype],i=t||r.bound;return r.nested&&(e=e.mark),i(e.bounds||(e.bounds=new Ck),e,n)}var kC={mark:null};function EC(e,t,n){var r,i,o,a,s=wC[e.marktype],l=s.bound,c=e.items,u=c&&c.length;if(s.nested)return u?o=c[0]:(kC.mark=e,o=kC),a=_C(o,l,n),t&&t.union(a)||a;if(t=t||e.bounds&&e.bounds.clear()||new Ck,u)for(r=0,i=c.length;rt;)e.removeChild(n[--r]);return e}function IC(e){return"mark-"+e.marktype+(e.role?" role-"+e.role:"")+(e.name?" "+e.name:"")}function BC(e,t){const n=t.getBoundingClientRect();return[e.clientX-n.left-(t.clientLeft||0),e.clientY-n.top-(t.clientTop||0)]}function jC(e,t){this._active=null,this._handlers={},this._loader=e||Sh(),this._tooltip=t||LC}function LC(e,t,n,r){e.element().setAttribute("title",r||"")}function zC(e){this._el=null,this._bgcolor=null,this._loader=new Ak(e)}TC.prototype={toJSON(e){return SC(this.root,e||0)},mark(e,t,n){const r=MC(e,t=t||this.root.items[0]);return t.items[n]=r,r.zindex&&(r.group.zdirty=!0),r}},jC.prototype={initialize(e,t,n){return this._el=e,this._obj=n||null,this.origin(t)},element(){return this._el},canvas(){return this._el&&this._el.firstChild},origin(e){return arguments.length?(this._origin=e||[0,0],this):this._origin.slice()},scene(e){return arguments.length?(this._scene=e,this):this._scene},on(){},off(){},_handlerIndex(e,t,n){for(let r=e?e.length:0;--r>=0;)if(e[r].type===t&&(!n||e[r].handler===n))return r;return-1},handlers(e){const t=this._handlers,n=[];if(e)n.push(...t[this.eventName(e)]);else for(const e in t)n.push(...t[e]);return n},eventName(e){const t=e.indexOf(".");return t<0?e:e.slice(0,t)},handleHref(e,t,n){this._loader.sanitize(n,{context:"href"}).then((t=>{const n=new MouseEvent(e.type,e),r=OC(null,"a");for(const e in t)r.setAttribute(e,t[e]);r.dispatchEvent(n)})).catch((()=>{}))},handleTooltip(e,t,n){if(t&&null!=t.tooltip){t=function(e,t,n,r){var i,o,a=e&&e.mark;if(a&&(i=wC[a.marktype]).tip){for((o=BC(t,n))[0]-=r[0],o[1]-=r[1];e=e.mark.group;)o[0]-=e.x||0,o[1]-=e.y||0;e=i.tip(a.items,o)}return e}(t,e,this.canvas(),this._origin);const r=n&&t&&t.tooltip||null;this._tooltip.call(this._obj,this,e,t,r)}},getItemBoundingClientRect(e){const t=this.canvas();if(!t)return;const n=t.getBoundingClientRect(),r=this._origin,i=e.bounds,o=i.width(),a=i.height();let s=i.x1+r[0]+n.left,l=i.y1+r[1]+n.top;for(;e.mark&&(e=e.mark.group);)s+=e.x||0,l+=e.y||0;return{x:s,y:l,width:o,height:a,left:s,top:l,right:s+o,bottom:l+a}}},zC.prototype={initialize(e,t,n,r,i){return this._el=e,this.resize(t,n,r,i)},element(){return this._el},canvas(){return this._el&&this._el.firstChild},background(e){return 0===arguments.length?this._bgcolor:(this._bgcolor=e,this)},resize(e,t,n,r){return this._width=e,this._height=t,this._origin=n||[0,0],this._scale=r||1,this},dirty(){},render(e){const t=this;return t._call=function(){t._render(e)},t._call(),t._call=null,t},_render(){},renderAsync(e){const t=this.render(e);return this._ready?this._ready.then((()=>t)):Promise.resolve(t)},_load(e,t){var n=this,r=n._loader[e](t);if(!n._ready){const e=n._call;n._ready=n._loader.ready().then((t=>{t&&e(),n._ready=null}))}return r},sanitizeURL(e){return this._load("sanitizeURL",e)},loadImage(e){return this._load("loadImage",e)}};const RC="dragenter",$C="dragleave",HC="dragover",UC="mousedown",qC="mousemove",WC="mouseout",VC="mouseover",GC="click",XC="mousewheel",YC="touchstart",JC="touchmove",ZC="touchend",KC=qC,QC=WC,eS=GC;function tS(e,t){jC.call(this,e,t),this._down=null,this._touch=null,this._first=!0,this._events={}}function nS(e,t){(e=>e===YC||e===JC||e===ZC?[YC,JC,ZC]:[e])(t).forEach((t=>function(e,t){const n=e.canvas();n&&!e._events[t]&&(e._events[t]=1,n.addEventListener(t,e[t]?n=>e[t](n):n=>e.fire(t,n)))}(e,t)))}function rS(e,t,n){return function(r){const i=this._active,o=this.pickEvent(r);o===i||(i&&i.exit||this.fire(n,r),this._active=o,this.fire(t,r)),this.fire(e,r)}}function iS(e){return function(t){this.fire(e,t),this._active=null}}No(tS,jC,{initialize(e,t,n){return this._canvas=e&&FC(e,"canvas"),[GC,UC,qC,WC,$C].forEach((e=>nS(this,e))),jC.prototype.initialize.call(this,e,t,n)},canvas(){return this._canvas},context(){return this._canvas.getContext("2d")},events:["keydown","keypress","keyup",RC,$C,HC,UC,"mouseup",qC,WC,VC,GC,"dblclick","wheel",XC,YC,JC,ZC],DOMMouseScroll(e){this.fire(XC,e)},mousemove:rS(qC,VC,WC),dragover:rS(HC,RC,$C),mouseout:iS(WC),dragleave:iS($C),mousedown(e){this._down=this._active,this.fire(UC,e)},click(e){this._down===this._active&&(this.fire(GC,e),this._down=null)},touchstart(e){this._touch=this.pickEvent(e.changedTouches[0]),this._first&&(this._active=this._touch,this._first=!1),this.fire(YC,e,!0)},touchmove(e){this.fire(JC,e,!0)},touchend(e){this.fire(ZC,e,!0),this._touch=null},fire(e,t,n){const r=n?this._touch:this._active,i=this._handlers[e];if(t.vegaType=e,e===eS&&r&&r.href?this.handleHref(t,r,r.href):e!==KC&&e!==QC||this.handleTooltip(t,r,e!==QC),i)for(let e=0,n=i.length;e=0&&r.splice(i,1),this},pickEvent(e){const t=BC(e,this._canvas),n=this._origin;return this.pick(this._scene,t[0],t[1],t[0]-n[0],t[1]-n[1])},pick(e,t,n,r,i){const o=this.context();return wC[e.marktype].pick.call(this,o,e,t,n,r,i)}});var oS="undefined"!=typeof window&&window.devicePixelRatio||1;function aS(e){zC.call(this,e),this._options={},this._redraw=!1,this._dirty=new Ck,this._tempb=new Ck}const sS=zC.prototype;function lS(e,t){jC.call(this,e,t);const n=this;n._hrefHandler=cS(n,((e,t)=>{t&&t.href&&n.handleHref(e,t,t.href)})),n._tooltipHandler=cS(n,((e,t)=>{n.handleTooltip(e,t,e.type!==QC)}))}No(aS,zC,{initialize(e,t,n,r,i,o){return this._options=o||{},this._canvas=this._options.externalContext?null:cg(1,1,this._options.type),e&&this._canvas&&(NC(e,0).appendChild(this._canvas),this._canvas.setAttribute("class","marks")),sS.initialize.call(this,e,t,n,r,i)},resize(e,t,n,r){if(sS.resize.call(this,e,t,n,r),this._canvas)!function(e,t,n,r,i,o){const a="undefined"!=typeof HTMLElement&&e instanceof HTMLElement&&null!=e.parentNode,s=e.getContext("2d"),l=a?oS:i;e.width=t*l,e.height=n*l;for(const e in o)s[e]=o[e];a&&1!==l&&(e.style.width=t+"px",e.style.height=n+"px"),s.pixelRatio=l,s.setTransform(l,0,0,l,l*r[0],l*r[1])}(this._canvas,this._width,this._height,this._origin,this._scale,this._options.context);else{const e=this._options.externalContext;e||Ai("CanvasRenderer is missing a valid canvas or context"),e.scale(this._scale,this._scale),e.translate(this._origin[0],this._origin[1])}return this._redraw=!0,this},canvas(){return this._canvas},context(){return this._options.externalContext||(this._canvas?this._canvas.getContext("2d"):null)},dirty(e){const t=this._tempb.clear().union(e.bounds);let n=e.mark.group;for(;n;)t.translate(n.x||0,n.y||0),n=n.mark.group;this._dirty.union(t)},_render(e){const t=this.context(),n=this._origin,r=this._width,i=this._height,o=this._dirty,a=((e,t,n)=>(new Ck).set(0,0,t,n).translate(-e[0],-e[1]))(n,r,i);t.save();const s=this._redraw||o.empty()?(this._redraw=!1,a.expand(1)):function(e,t,n){return t.expand(1).round(),e.pixelRatio%1&&t.scale(e.pixelRatio).round().scale(1/e.pixelRatio),t.translate(-n[0]%1,-n[1]%1),e.beginPath(),e.rect(t.x1,t.y1,t.width(),t.height()),e.clip(),t}(t,a.intersect(o),n);return this.clear(-n[0],-n[1],r,i),this.draw(t,e,s),t.restore(),o.clear(),this},draw(e,t,n){const r=wC[t.marktype];t.clip&&function(e,t){var n=t.clip;e.save(),yo(n)?(e.beginPath(),n(e),e.clip()):ME(e,t.group)}(e,t),r.draw.call(this,e,t,n),t.clip&&e.restore()},clear(e,t,n,r){const i=this._options,o=this.context();"pdf"===i.type||i.externalContext||o.clearRect(e,t,n,r),null!=this._bgcolor&&(o.fillStyle=this._bgcolor,o.fillRect(e,t,n,r))}});const cS=(e,t)=>n=>{let r=n.target.__data__;r=Array.isArray(r)?r[0]:r,n.vegaType=n.type,t.call(e._obj,n,r)};No(lS,jC,{initialize(e,t,n){let r=this._svg;return r&&(r.removeEventListener(eS,this._hrefHandler),r.removeEventListener(KC,this._tooltipHandler),r.removeEventListener(QC,this._tooltipHandler)),this._svg=r=e&&FC(e,"svg"),r&&(r.addEventListener(eS,this._hrefHandler),r.addEventListener(KC,this._tooltipHandler),r.addEventListener(QC,this._tooltipHandler)),jC.prototype.initialize.call(this,e,t,n)},canvas(){return this._svg},on(e,t){const n=this.eventName(e),r=this._handlers;if(this._handlerIndex(r[n],e,t)<0){const i={type:e,handler:t,listener:cS(this,t)};(r[n]||(r[n]=[])).push(i),this._svg&&this._svg.addEventListener(n,i.listener)}return this},off(e,t){const n=this.eventName(e),r=this._handlers[n],i=this._handlerIndex(r,e,t);return i>=0&&(this._svg&&this._svg.removeEventListener(n,r[i].listener),r.splice(i,1)),this}});const uS="aria-hidden",hS="aria-label",dS="role",fS="aria-roledescription",pS="graphics-object",mS="graphics-symbol",gS=(e,t,n)=>({[dS]:e,[fS]:t,[hS]:n||void 0}),vS=ea(["axis-domain","axis-grid","axis-label","axis-tick","axis-title","legend-band","legend-entry","legend-gradient","legend-label","legend-title","legend-symbol","title"]),yS={axis:{desc:"axis",caption:function(e){const t=e.datum,n=e.orient,r=t.title?kS(e):null,i=e.context,o=i.scales[t.scale].value,a=i.dataflow.locale(),s=o.type;return("left"===n||"right"===n?"Y":"X")+"-axis"+(r?` titled '${r}'`:"")+` for a ${Gw(s)?"discrete":s} scale`+` with ${S_(a,o,e)}`}},legend:{desc:"legend",caption:function(e){const t=e.datum,n=t.title?kS(e):null,r=`${t.type||""} legend`.trim(),i=t.scales,o=Object.keys(i),a=e.context,s=a.scales[i[o[0]]].value,l=a.dataflow.locale();return((c=r).length?c[0].toUpperCase()+c.slice(1):c)+(n?` titled '${n}'`:"")+` for ${function(e){return(e=e.map((e=>e+("fill"===e||"stroke"===e?" color":"")))).length<2?e[0]:e.slice(0,-1).join(", ")+" and "+Ji(e)}(o)}`+` with ${S_(l,s,e)}`;var c}},"title-text":{desc:"title",caption:e=>`Title text '${_S(e)}'`},"title-subtitle":{desc:"subtitle",caption:e=>`Subtitle text '${_S(e)}'`}},bS={ariaRole:dS,ariaRoleDescription:fS,description:hS};function xS(e,t){const n=!1===t.aria;if(e(uS,n||void 0),n||null==t.description)for(const t in bS)e(bS[t],void 0);else{const n=t.mark.marktype;e(hS,t.description),e(dS,t.ariaRole||("group"===n?pS:mS)),e(fS,t.ariaRoleDescription||`${n} mark`)}}function wS(e){return!1===e.aria?{[uS]:!0}:vS[e.role]?null:yS[e.role]?function(e,t){try{const n=e.items[0],r=t.caption||(()=>"");return gS(t.role||mS,t.desc,n.description||r(n))}catch(e){return null}}(e,yS[e.role]):function(e){const t=e.marktype,n="group"===t||"text"===t||e.items.some((e=>null!=e.description&&!1!==e.aria));return gS(n?pS:mS,`${t} mark container`,e.description)}(e)}function _S(e){return go(e.text).join(" ")}function kS(e){try{return go(Ji(e.items).items[0].text).join(" ")}catch(e){return null}}const ES=e=>(e+"").replace(/&/g,"&").replace(//g,">");function CS(){let e="",t="",n="";const r=[],i=()=>t=n="",o=(e,n)=>{var r;return null!=n&&(t+=` ${e}="${r=n,ES(r).replace(/"/g,""").replace(/\t/g," ").replace(/\n/g," ").replace(/\r/g," ")}"`),a},a={open(s,...l){(o=>{t&&(e+=`${t}>${n}`,i()),r.push(o)})(s),t="<"+s;for(const e of l)for(const t in e)o(t,e[t]);return a},close(){const o=r.pop();return e+=t?t+(n?`>${n}`:"/>"):``,i(),a},attr:o,text:e=>(n+=ES(e),a),toString:()=>e};return a}const SS=e=>DS(CS(),e)+"";function DS(e,t){if(e.open(t.tagName),t.hasAttributes()){const n=t.attributes,r=n.length;for(let t=0;t1&&e.previousSibling!=t}(a,n))&&t.insertBefore(a,n?n.nextSibling:t.firstChild),a}No(FS,zC,{initialize(e,t,n,r,i){return this._defs={},this._clearDefs(),e&&(this._svg=PC(e,0,"svg",OS),this._svg.setAttributeNS(MS,"xmlns",OS),this._svg.setAttributeNS(MS,"xmlns:xlink",LE["xmlns:xlink"]),this._svg.setAttribute("version",LE.version),this._svg.setAttribute("class","marks"),NC(e,1),this._root=PC(this._svg,0,"g",OS),US(this._root,TS),NC(this._svg,1)),this.background(this._bgcolor),PS.initialize.call(this,e,t,n,r,i)},background(e){return arguments.length&&this._svg&&this._svg.style.setProperty("background-color",e),PS.background.apply(this,arguments)},resize(e,t,n,r){return PS.resize.call(this,e,t,n,r),this._svg&&(US(this._svg,{width:this._width*this._scale,height:this._height*this._scale,viewBox:`0 0 ${this._width} ${this._height}`}),this._root.setAttribute("transform",`translate(${this._origin})`)),this._dirty=[],this},canvas(){return this._svg},svg(){const e=this._svg,t=this._bgcolor;if(!e)return null;let n;t&&(e.removeAttribute("style"),n=PC(e,0,"rect",OS),US(n,{width:this._width,height:this._height,fill:t}));const r=SS(e);return t&&(e.removeChild(n),this._svg.style.setProperty("background-color",t)),r},_render(e){return this._dirtyCheck()&&(this._dirtyAll&&this._clearDefs(),this.mark(this._root,e),NC(this._root,1)),this.defs(),this._dirty=[],++this._dirtyID,this},dirty(e){e.dirty!==this._dirtyID&&(e.dirty=this._dirtyID,this._dirty.push(e))},isDirty(e){return this._dirtyAll||!e._svg||e.dirty===this._dirtyID},_dirtyCheck(){this._dirtyAll=!0;const e=this._dirty;if(!e.length||!this._dirtyID)return!0;const t=++this._dirtyID;let n,r,i,o,a,s,l;for(a=0,s=e.length;a{e.dirty=t}))),r.zdirty||(n.exit?(o.nested&&r.items.length?(l=r.items[0],l._svg&&this._update(o,l._svg,l)):n._svg&&(l=n._svg.parentNode,l&&l.removeChild(n._svg)),n._svg=null):(n=o.nested?r.items[0]:n,n._update!==t&&(n._svg&&n._svg.ownerSVGElement?this._update(o,n._svg,n):(this._dirtyAll=!1,NS(n,t)),n._update=t)));return!this._dirtyAll},mark(e,t,n){if(!this.isDirty(t))return t._svg;const r=this._svg,i=wC[t.marktype],o=!1===t.interactive?"none":null,a="g"===i.tag;let s=null,l=0;const c=jS(t,e,n,"g",r);c.setAttribute("class",IC(t));const u=wS(t);for(const e in u)qS(c,e,u[e]);a||qS(c,"pointer-events",o),qS(c,"clip-path",t.clip?Ek(this,t,t.group):null);const h=e=>{const t=this.isDirty(e),n=jS(e,c,s,i.tag,r);t&&(this._update(i,n,e),a&&function(e,t,n){t=t.lastChild.previousSibling;let r,i=0;gE(n,(n=>{r=e.mark(t,n,r),++i})),NC(t,1+i)}(this,n,e)),s=n,++l};return i.nested?t.items.length&&h(t.items[0]):gE(t,h),NC(c,l),c},_update(e,t,n){LS=t,zS=t.__values__,xS($S,n),e.attr($S,n,this);const r=RS[e.type];r&&r.call(this,e,t,n),LS&&this.style(LS,n)},style(e,t){if(null!=t)for(const n in AS){let r="font"===n?dC(t):t[n];if(r===zS[n])continue;const i=AS[n];null==r?e.removeAttribute(i):(T_(r)&&(r=M_(r,this._defs.gradient,WS())),e.setAttribute(i,r+"")),zS[n]=r}},defs(){const e=this._svg,t=this._defs;let n=t.el,r=0;for(const i in t.gradient)n||(t.el=n=PC(e,1,"defs",OS)),r=IS(n,t.gradient[i],r);for(const i in t.clipping)n||(t.el=n=PC(e,1,"defs",OS)),r=BS(n,t.clipping[i],r);n&&(0===r?(e.removeChild(n),t.el=null):NC(n,r))},_clearDefs(){const e=this._defs;e.gradient={},e.clipping={}}});let LS=null,zS=null;const RS={group(e,t,n){const r=LS=t.childNodes[2];zS=r.__values__,e.foreground($S,n,this),zS=t.__values__,LS=t.childNodes[1],e.content($S,n,this);const i=LS=t.childNodes[0];e.background($S,n,this);const o=!1===n.mark.interactive?"none":null;if(o!==zS.events&&(qS(r,"pointer-events",o),qS(i,"pointer-events",o),zS.events=o),n.strokeForeground&&n.stroke){const e=n.fill;qS(r,"display",null),this.style(i,n),qS(i,"stroke",null),e&&(n.fill=null),zS=r.__values__,this.style(r,n),e&&(n.fill=e),LS=null}else qS(r,"display","none")},image(e,t,n){!1===n.smooth?(HS(t,"image-rendering","optimizeSpeed"),HS(t,"image-rendering","pixelated")):HS(t,"image-rendering",null)},text(e,t,n){const r=cC(n);let i,o,a,s;qi(r)?(o=r.map((e=>hC(n,e))),i=o.join("\n"),i!==zS.text&&(NC(t,0),a=t.ownerDocument,s=lC(n),o.forEach(((e,r)=>{const i=OC(a,"tspan",OS);i.__data__=n,i.textContent=e,r&&(i.setAttribute("x",0),i.setAttribute("dy",s)),t.appendChild(i)})),zS.text=i)):(o=hC(n,r),o!==zS.text&&(t.textContent=o,zS.text=o)),qS(t,"font-family",dC(n)),qS(t,"font-size",sC(n)+"px"),qS(t,"font-style",n.fontStyle),qS(t,"font-variant",n.fontVariant),qS(t,"font-weight",n.fontWeight)}};function $S(e,t,n){t!==zS[e]&&(n?function(e,t,n,r){null!=n?e.setAttributeNS(r,t,n):e.removeAttributeNS(r,t)}(LS,e,t,n):qS(LS,e,t),zS[e]=t)}function HS(e,t,n){n!==zS[t]&&(null==n?e.style.removeProperty(t):e.style.setProperty(t,n+""),zS[t]=n)}function US(e,t){for(const n in t)qS(e,n,t[n])}function qS(e,t,n){null!=n?e.setAttribute(t,n):e.removeAttribute(t)}function WS(){let e;return"undefined"==typeof window?"":(e=window.location).hash?e.href.slice(0,-e.hash.length):e.href}function VS(e){zC.call(this,e),this._text=null,this._defs={gradient:{},clipping:{}}}No(VS,zC,{svg(){return this._text},_render(e){const t=CS();t.open("svg",So({},LE,{class:"marks",width:this._width*this._scale,height:this._height*this._scale,viewBox:`0 0 ${this._width} ${this._height}`}));const n=this._bgcolor;return n&&"transparent"!==n&&"none"!==n&&t.open("rect",{width:this._width,height:this._height,fill:n}).close(),t.open("g",TS,{transform:"translate("+this._origin+")"}),this.mark(t,e),t.close(),this.defs(t),this._text=t.close()+"",this},mark(e,t){const n=wC[t.marktype],r=n.tag,i=[xS,n.attr];e.open("g",{class:IC(t),"clip-path":t.clip?Ek(this,t,t.group):null},wS(t),{"pointer-events":"g"!==r&&!1===t.interactive?"none":null});const o=o=>{const a=this.href(o);if(a&&e.open("a",a),e.open(r,this.attr(t,o,i,"g"!==r?r:null)),"text"===r){const t=cC(o);if(qi(t)){const n={x:0,dy:lC(o)};for(let r=0;rthis.mark(e,t))),e.close(),r&&a?(i&&(o.fill=null),o.stroke=a,e.open("path",this.attr(t,o,n.foreground,"bgrect")).close(),i&&(o.fill=i)):e.open("path",this.attr(t,o,n.foreground,"bgfore")).close()}e.close(),a&&e.close()};return n.nested?t.items&&t.items.length&&o(t.items[0]):gE(t,o),e.close()},href(e){const t=e.href;let n;if(t){if(n=this._hrefs&&this._hrefs[t])return n;this.sanitizeURL(t).then((e=>{e["xlink:href"]=e.href,e.href=null,(this._hrefs||(this._hrefs={}))[t]=e}))}return null},attr(e,t,n,r){const i={},o=(e,t,n,r)=>{i[r||e]=t};return Array.isArray(n)?n.forEach((e=>e(o,t,this))):n(o,t,this),r&&function(e,t,n,r,i){if(null==t)return e;if("bgrect"===r&&!1===n.interactive&&(e["pointer-events"]="none"),"bgfore"===r&&(!1===n.interactive&&(e["pointer-events"]="none"),e.display="none",null!==t.fill))return e;"image"===r&&!1===t.smooth&&(e.style="image-rendering: optimizeSpeed; image-rendering: pixelated;"),"text"===r&&(e["font-family"]=dC(t),e["font-size"]=sC(t)+"px",e["font-style"]=t.fontStyle,e["font-variant"]=t.fontVariant,e["font-weight"]=t.fontWeight);for(const n in AS){let r=t[n];const o=AS[n];("transparent"!==r||"fill"!==o&&"stroke"!==o)&&null!=r&&(T_(r)&&(r=M_(r,i.gradient,"")),e[o]=r)}}(i,t,e,r,this._defs),i},defs(e){const t=this._defs.gradient,n=this._defs.clipping;if(0!==Object.keys(t).length+Object.keys(n).length){e.open("defs");for(const n in t){const r=t[n],i=r.stops;"radial"===r.gradient?(e.open("pattern",{id:A_+n,viewBox:"0,0,1,1",width:"100%",height:"100%",preserveAspectRatio:"xMidYMid slice"}),e.open("rect",{width:"1",height:"1",fill:"url(#"+n+")"}).close(),e.close(),e.open("radialGradient",{id:n,fx:r.x1,fy:r.y1,fr:r.r1,cx:r.x2,cy:r.y2,r:r.r2})):e.open("linearGradient",{id:n,x1:r.x1,x2:r.x2,y1:r.y1,y2:r.y2});for(let t=0;t1?(XS[e]=t,this):XS[e]}function JS(e,t,n){const r=[],i=(new Ck).union(t),o=e.marktype;return o?ZS(e,i,n,r):"group"===o?KS(e,i,n,r):Ai("Intersect scene must be mark node or group item.")}function ZS(e,t,n,r){if(function(e,t,n){return e.bounds&&t.intersects(e.bounds)&&("group"===e.marktype||!1!==e.interactive&&(!n||n(e)))}(e,t,n)){const i=e.items,o=e.marktype,a=i.length;let s=0;if("group"===o)for(;s=0;r--)if(i[r]!=o[r])return!1;for(r=i.length-1;r>=0;r--)if(!nD(e[n=i[r]],t[n],n))return!1;return typeof e==typeof t}(e,t):e==t)}function rD(e,t){return nD(j_(e),j_(t))}function iD(){kk(),D_=0}const oD="top",aD="left",sD="right",lD="bottom",cD="start",uD="middle",hD="end",dD="group",fD="axis",pD="title",mD="legend",gD="row-header",vD="row-footer",yD="row-title",bD="column-header",xD="column-footer",wD="column-title",_D="none",kD="all",ED="each",CD="flush",SD="column",DD="row";function AD(e){ud.call(this,null,e)}function TD(e,t,n){return t(e.bounds.clear(),e,n)}No(AD,ud,{transform(e,t){const n=t.dataflow,r=e.mark,i=r.marktype,o=wC[i],a=o.bound;let s,l=r.bounds;if(o.nested)r.items.length&&n.dirty(r.items[0]),l=TD(r,a),r.items.forEach((e=>{e.bounds.clear().union(l)}));else if(i===dD||e.modified())switch(t.visit(t.MOD,(e=>n.dirty(e))),l.clear(),r.items.forEach((e=>l.union(TD(e,a)))),r.role){case fD:case mD:case pD:t.reflow()}else s=t.changed(t.REM),t.visit(t.ADD,(e=>{l.union(TD(e,a))})),t.visit(t.MOD,(e=>{s=s||l.alignsWith(e.bounds),n.dirty(e),l.union(TD(e,a))})),s&&(l.clear(),r.items.forEach((e=>l.union(e.bounds))));return tD(r),t.modifies("bounds")}});const MD=":vega_identifier:";function OD(e){ud.call(this,0,e)}function FD(e){ud.call(this,null,e)}function PD(e){ud.call(this,null,e)}OD.Definition={type:"Identifier",metadata:{modifies:!0},params:[{name:"as",type:"string",required:!0}]},No(OD,ud,{transform(e,t){const n=(i=t.dataflow)._signals[MD]||(i._signals[MD]=i.add(0)),r=e.as;var i;let o=n.value;return t.visit(t.ADD,(e=>e[r]=e[r]||++o)),n.set(this.value=o),t}}),No(FD,ud,{transform(e,t){let n=this.value;n||(n=t.dataflow.scenegraph().mark(e.markdef,function(e){const t=e.groups,n=e.parent;return t&&1===t.size?t.get(Object.keys(t.object)[0]):t&&n?t.lookup(n):null}(e),e.index),n.group.context=e.context,e.context.group||(e.context.group=n.group),n.source=this.source,n.clip=e.clip,n.interactive=e.interactive,this.value=n);const r=n.marktype===dD?Dk:Sk;return t.visit(t.ADD,(e=>r.call(e,n))),(e.modified("clip")||e.modified("interactive"))&&(n.clip=e.clip,n.interactive=!!e.interactive,n.zdirty=!0,t.reflow()),n.items=t.source,t}});const ND={parity:e=>e.filter(((e,t)=>t%2?e.opacity=0:1)),greedy:(e,t)=>{let n;return e.filter(((e,r)=>r&&ID(n.bounds,e.bounds,t)?e.opacity=0:(n=e,1)))}},ID=(e,t,n)=>n>Math.max(t.x1-e.x2,e.x1-t.x2,t.y1-e.y2,e.y1-t.y2),BD=(e,t)=>{for(var n,r=1,i=e.length,o=e[0].bounds;r{const t=e.bounds;return t.width()>1&&t.height()>1},LD=e=>(e.forEach((e=>e.opacity=1)),e),zD=(e,t)=>e.reflow(t.modified()).modifies("opacity");function RD(e){ud.call(this,null,e)}No(PD,ud,{transform(e,t){const n=ND[e.method]||ND.parity,r=e.separation||0;let i,o,a=t.materialize(t.SOURCE).source;if(!a||!a.length)return;if(!e.method)return e.modified("method")&&(LD(a),t=zD(t,e)),t;if(a=a.filter(jD),!a.length)return;if(e.sort&&(a=a.slice().sort(e.sort)),i=LD(a),t=zD(t,e),i.length>=3&&BD(i,r)){do{i=n(i,r)}while(i.length>=3&&BD(i,r));i.length<3&&!Ji(a).opacity&&(i.length>1&&(Ji(i).opacity=0),Ji(a).opacity=1)}e.boundScale&&e.boundTolerance>=0&&(o=((e,t,n)=>{var r=e.range(),i=new Ck;return t===oD||t===lD?i.set(r[0],-1/0,r[1],1/0):i.set(-1/0,r[0],1/0,r[1]),i.expand(n||1),e=>i.encloses(e.bounds)})(e.boundScale,e.boundOrient,+e.boundTolerance),a.forEach((e=>{o(e)||(e.opacity=0)})));const s=i[0].mark.bounds.clear();return a.forEach((e=>{e.opacity&&s.union(e.bounds)})),t}}),No(RD,ud,{transform(e,t){const n=t.dataflow;if(t.visit(t.ALL,(e=>n.dirty(e))),t.fields&&t.fields.zindex){const e=t.source&&t.source[0];e&&(e.mark.zdirty=!0)}}});const $D=new Ck;function HD(e,t,n){return e[t]===n?0:(e[t]=n,1)}function UD(e){var t=e.items[0].orient;return t===aD||t===sD}function qD(e,t,n,r){var i,o,a=t.items[0],s=a.datum,l=null!=a.translate?a.translate:.5,c=a.orient,u=function(e){let t=+e.grid;return[e.ticks?t++:-1,e.labels?t++:-1,t+ +e.domain]}(s),h=a.range,d=a.offset,f=a.position,p=a.minExtent,m=a.maxExtent,g=s.title&&a.items[u[2]].items[0],v=a.titlePadding,y=a.bounds,b=g&&uC(g),x=0,w=0;switch($D.clear().union(y),y.clear(),(i=u[0])>-1&&y.union(a.items[i].bounds),(i=u[1])>-1&&y.union(a.items[i].bounds),c){case oD:x=f||0,w=-d,o=Math.max(p,Math.min(m,-y.y1)),y.add(0,-o).add(h,0),g&&WD(e,g,o,v,b,0,-1,y);break;case aD:x=-d,w=f||0,o=Math.max(p,Math.min(m,-y.x1)),y.add(-o,0).add(0,h),g&&WD(e,g,o,v,b,1,-1,y);break;case sD:x=n+d,w=f||0,o=Math.max(p,Math.min(m,y.x2)),y.add(0,0).add(o,h),g&&WD(e,g,o,v,b,1,1,y);break;case lD:x=f||0,w=r+d,o=Math.max(p,Math.min(m,y.y2)),y.add(0,0).add(h,o),g&&WD(e,g,o,v,0,0,1,y);break;default:x=a.x,w=a.y}return Ok(y.translate(x,w),a),HD(a,"x",x+l)|HD(a,"y",w+l)&&(a.bounds=$D,e.dirty(a),a.bounds=y,e.dirty(a)),a.mark.bounds.clear().union(y)}function WD(e,t,n,r,i,o,a,s){const l=t.bounds;if(t.auto){const s=a*(n+i+r);let c=0,u=0;e.dirty(t),o?c=(t.x||0)-(t.x=s):u=(t.y||0)-(t.y=s),t.mark.bounds.clear().union(l.translate(-c,-u)),e.dirty(t)}s.union(l)}const VD=(e,t)=>Math.floor(Math.min(e,t)),GD=(e,t)=>Math.ceil(Math.max(e,t));function XD(e){return(new Ck).set(0,0,e.width||0,e.height||0)}function YD(e){const t=e.bounds.clone();return t.empty()?t.set(0,0,0,0):t.translate(-(e.x||0),-(e.y||0))}function JD(e,t,n){const r=Wi(e)?e[t]:e;return null!=r?r:void 0!==n?n:0}function ZD(e){return e<0?Math.ceil(-e):0}function KD(e,t,n){var r,i,o,a,s,l,c,u,h,d,f,p=!n.nodirty,m=n.bounds===CD?XD:YD,g=$D.set(0,0,0,0),v=JD(n.align,SD),y=JD(n.align,DD),b=JD(n.padding,SD),x=JD(n.padding,DD),w=n.columns||t.length,_=w<=0?1:Math.ceil(t.length/w),k=t.length,E=Array(k),C=Array(w),S=0,D=Array(k),A=Array(_),T=0,M=Array(k),O=Array(k),F=Array(k);for(i=0;i1)for(i=0;i0&&(M[i]+=h/2);if(y&&JD(n.center,DD)&&1!==w)for(i=0;i0&&(O[i]+=d/2);for(i=0;ii&&(e.warn("Grid headers exceed limit: "+i),t=t.slice(0,i)),E+=o,m=0,v=t.length;m=0&&null==(x=n[g]);g-=d);s?(w=null==f?x.x:Math.round(x.bounds.x1+f*x.bounds.width()),_=E):(w=E,_=null==f?x.y:Math.round(x.bounds.y1+f*x.bounds.height())),y.union(b.bounds.translate(w-(b.x||0),_-(b.y||0))),b.x=w,b.y=_,e.dirty(b),C=a(C,y[c])}return C}function nA(e,t,n,r,i,o){if(t){e.dirty(t);var a=n,s=n;r?a=Math.round(i.x1+o*i.width()):s=Math.round(i.y1+o*i.height()),t.bounds.translate(a-(t.x||0),s-(t.y||0)),t.mark.bounds.clear().union(t.bounds),t.x=a,t.y=s,e.dirty(t)}}function rA(e,t,n,r,i,o,a){const s=function(e,t){const n=e[t]||{};return(t,r)=>null!=n[t]?n[t]:null!=e[t]?e[t]:r}(n,t),l=function(e,t){let n=-1/0;return e.forEach((e=>{null!=e.offset&&(n=Math.max(n,e.offset))})),n>-1/0?n:t}(e,s("offset",0)),c=s("anchor",cD),u=c===hD?1:c===uD?.5:0,h={align:ED,bounds:s("bounds",CD),columns:"vertical"===s("direction")?1:e.length,padding:s("margin",8),center:s("center"),nodirty:!0};switch(t){case aD:h.anchor={x:Math.floor(r.x1)-l,column:hD,y:u*(a||r.height()+2*r.y1),row:c};break;case sD:h.anchor={x:Math.ceil(r.x2)+l,y:u*(a||r.height()+2*r.y1),row:c};break;case oD:h.anchor={y:Math.floor(i.y1)-l,row:hD,x:u*(o||i.width()+2*i.x1),column:c};break;case lD:h.anchor={y:Math.ceil(i.y2)+l,x:u*(o||i.width()+2*i.x1),column:c};break;case"top-left":h.anchor={x:l,y:l};break;case"top-right":h.anchor={x:o-l,y:l,column:hD};break;case"bottom-left":h.anchor={x:l,y:a-l,row:hD};break;case"bottom-right":h.anchor={x:o-l,y:a-l,column:hD,row:hD}}return h}function iA(e,t){var n,r,i=t.items[0],o=i.datum,a=i.orient,s=i.bounds,l=i.x,c=i.y;return i._bounds?i._bounds.clear().union(s):i._bounds=s.clone(),s.clear(),function(e,t,n){var r=t.padding,i=r-n.x,o=r-n.y;if(t.datum.title){var a=t.items[1].items[0],s=a.anchor,l=t.titlePadding||0,c=r-a.x,u=r-a.y;switch(a.orient){case aD:i+=Math.ceil(a.bounds.width())+l;break;case sD:case lD:break;default:o+=a.bounds.height()+l}switch((i||o)&&aA(e,n,i,o),a.orient){case aD:u+=oA(t,n,a,s,1,1);break;case sD:c+=oA(t,n,a,hD,0,0)+l,u+=oA(t,n,a,s,1,1);break;case lD:c+=oA(t,n,a,s,0,0),u+=oA(t,n,a,hD,-1,0,1)+l;break;default:c+=oA(t,n,a,s,0,0)}(c||u)&&aA(e,a,c,u),(c=Math.round(a.bounds.x1-r))<0&&(aA(e,n,-c,0),aA(e,a,-c,0))}else(i||o)&&aA(e,n,i,o)}(e,i,i.items[0].items[0]),s=function(e,t){return e.items.forEach((e=>t.union(e.bounds))),t.x1=e.padding,t.y1=e.padding,t}(i,s),n=2*i.padding,r=2*i.padding,s.empty()||(n=Math.ceil(s.width()+n),r=Math.ceil(s.height()+r)),"symbol"===o.type&&function(e){const t=e.reduce(((e,t)=>(e[t.column]=Math.max(t.bounds.x2-t.x,e[t.column]||0),e)),{});e.forEach((e=>{e.width=t[e.column],e.height=e.bounds.y2-e.y}))}(i.items[0].items[0].items[0].items),a!==_D&&(i.x=l=0,i.y=c=0),i.width=n,i.height=r,Ok(s.set(l,c,l+n,c+r),i),i.mark.bounds.clear().union(s),i}function oA(e,t,n,r,i,o,a){const s="symbol"!==e.datum.type,l=n.datum.vgrad,c=(!s||!o&&l||a?t:t.items[0]).bounds[i?"y2":"x2"]-e.padding,u=l&&o?c:0,h=l&&o?0:c,d=i<=0?0:uC(n);return Math.round(r===cD?u:r===hD?h-d:.5*(c-d))}function aA(e,t,n,r){t.x+=n,t.y+=r,t.bounds.translate(n,r),t.mark.bounds.translate(n,r),e.dirty(t)}function sA(e){ud.call(this,null,e)}function lA(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((t-e)/n)),o=new Array(i);++r{e.layout&&function(e,t,n){var r,i,o,a,s,l,c,u=function(e){var t,n,r=e.items,i=r.length,o=0;const a={marks:[],rowheaders:[],rowfooters:[],colheaders:[],colfooters:[],rowtitle:null,coltitle:null};for(;o{(o=e.orient||sD)!==_D&&(t[o]||(t[o]=[])).push(e)}));for(const r in t){const i=t[r];KD(e,i,rA(i,r,n.legends,d,f,c,u))}p.forEach((t=>{const r=t.bounds;if(r.equals(t._bounds)||(t.bounds=t._bounds,e.dirty(t),t.bounds=r,e.dirty(t)),n.autosize&&"fit"===n.autosize.type)switch(t.orient){case aD:case sD:h.add(r.x1,0).add(r.x2,0);break;case oD:case lD:h.add(0,r.y1).add(0,r.y2)}else h.union(r)}))}h.union(d).union(f),r&&h.union(function(e,t,n,r,i){var o,a=t.items[0],s=a.frame,l=a.orient,c=a.anchor,u=a.offset,h=a.padding,d=a.items[0].items[0],f=a.items[1]&&a.items[1].items[0],p=l===aD||l===sD?r:n,m=0,g=0,v=0,y=0,b=0;if(s!==dD?l===aD?(m=i.y2,p=i.y1):l===sD?(m=i.y1,p=i.y2):(m=i.x1,p=i.x2):l===aD&&(m=r,p=0),o=c===cD?m:c===hD?p:(m+p)/2,f&&f.text){switch(l){case oD:case lD:b=d.bounds.height()+h;break;case aD:y=d.bounds.width()+h;break;case sD:y=-d.bounds.width()-h}$D.clear().union(f.bounds),$D.translate(y-(f.x||0),b-(f.y||0)),HD(f,"x",y)|HD(f,"y",b)&&(e.dirty(f),f.bounds.clear().union($D),f.mark.bounds.clear().union($D),e.dirty(f)),$D.clear().union(f.bounds)}else $D.clear();switch($D.union(d.bounds),l){case oD:g=o,v=i.y1-$D.height()-u;break;case aD:g=i.x1-$D.width()-u,v=o;break;case sD:g=i.x2+$D.width()+u,v=o;break;case lD:g=o,v=i.y2+u;break;default:g=a.x,v=a.y}return HD(a,"x",g)|HD(a,"y",v)&&($D.translate(g,v),e.dirty(a),a.bounds.clear().union($D),t.bounds.clear().union($D),e.dirty(a)),a.bounds}(e,r,c,u,h)),t.clip&&h.set(0,0,t.width||0,t.height||0),function(e,t,n,r){const i=r.autosize||{},o=i.type;if(e._autosize<1||!o)return;let a=e._width,s=e._height,l=Math.max(0,t.width||0),c=Math.max(0,Math.ceil(-n.x1)),u=Math.max(0,t.height||0),h=Math.max(0,Math.ceil(-n.y1));const d=Math.max(0,Math.ceil(n.x2-l)),f=Math.max(0,Math.ceil(n.y2-u));if("padding"===i.contains){const t=e.padding();a-=t.left+t.right,s-=t.top+t.bottom}o===_D?(c=0,h=0,l=a,u=s):"fit"===o?(l=Math.max(0,a-c-d),u=Math.max(0,s-h-f)):"fit-x"===o?(l=Math.max(0,a-c-d),s=u+h+f):"fit-y"===o?(a=l+c+d,u=Math.max(0,s-h-f)):"pad"===o&&(a=l+c+d,s=u+h+f),e._resizeView(a,s,l,u,[c,h],i.resize)}(e,t,h,n)}(n,t,e)})),function(e){return e&&"legend-entry"!==e.mark.role}(e.mark.group)?t.reflow():t}});const hA=e=>()=>e;function dA(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):hA(isNaN(e)?t:e)}const fA=function e(t){var n=function(e){return 1==(e=+e)?dA:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):hA(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=en(e)).r,(t=en(t)).r),i=n(e.g,t.g),o=n(e.b,t.b),a=dA(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=o(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);function pA(e){return function(t){var n,r,i=t.length,o=new Array(i),a=new Array(i),s=new Array(i);for(n=0;n=1?(n=1,t-1):Math.floor(n*t),i=e[r],o=e[r+1],a=r>0?e[r-1]:2*i-o,s=ro&&(i=t.slice(o,i),s[a]?s[a]+=i:s[++a]=i),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,l.push({i:a,x:vA(n,r)})),o=xA.lastIndex;return oNh({index:t/(l.length-1||1),value:e,label:s(e)}))),e.extra&&i.length&&i.push(Nh({index:-1,extra:{value:i[0].value},label:""})),r.source=i,r.add=i,this.value=i,r}}),No(CA,ud,{transform(e,t){var n=t.dataflow,r=t.fork(t.NO_SOURCE|t.NO_FIELDS),i=e.item||SA,o=e.key||Fh,a=this.value;return qi(r.encode)&&(r.encode=null),a&&(e.modified("key")||t.modified(o))&&Ai("DataJoin does not support modified key function or fields."),a||(t=t.addAll(),this.value=a=function(e){const t=Fo().test((e=>e.exit));return t.lookup=n=>t.get(e(n)),t}(o)),t.visit(t.ADD,(e=>{const t=o(e);let n=a.get(t);n?n.exit?(a.empty--,r.add.push(n)):r.mod.push(n):(n=i(e),a.set(t,n),r.add.push(n)),n.datum=e,n.exit=!1})),t.visit(t.MOD,(e=>{const t=o(e),n=a.get(t);n&&(n.datum=e,r.mod.push(n))})),t.visit(t.REM,(e=>{const t=o(e),n=a.get(t);e!==n.datum||n.exit||(r.rem.push(n),n.exit=!0,++a.empty)})),t.changed(t.ADD_MOD)&&r.modifies("datum"),(t.clean()||e.clean&&a.empty>n.cleanThreshold)&&n.runAfter(a.clean),r}}),No(DA,ud,{transform(e,t){var n=t.fork(t.ADD_REM),r=e.mod||!1,i=e.encoders,o=t.encode;if(qi(o)){if(!n.changed()&&!o.every((e=>i[e])))return t.StopPropagation;o=o[0],n.encode=null}var a="enter"===o,s=i.update||Bi,l=i.enter||Bi,c=i.exit||Bi,u=(o&&!a?i[o]:s)||Bi;if(t.changed(t.ADD)&&(t.visit(t.ADD,(t=>{l(t,e),s(t,e)})),n.modifies(l.output),n.modifies(s.output),u!==Bi&&u!==s&&(t.visit(t.ADD,(t=>{u(t,e)})),n.modifies(u.output))),t.changed(t.REM)&&c!==Bi&&(t.visit(t.REM,(t=>{c(t,e)})),n.modifies(c.output)),a||u!==Bi){const i=t.MOD|(e.modified()?t.REFLOW:0);a?(t.visit(i,(t=>{const i=l(t,e)||r;(u(t,e)||i)&&n.mod.push(t)})),n.mod.length&&n.modifies(l.output)):t.visit(i,(t=>{(u(t,e)||r)&&n.mod.push(t)})),n.mod.length&&n.modifies(u.output)}return n.changed()?n:t.StopPropagation}}),No(AA,ud,{transform(e,t){if(null!=this.value&&!e.modified())return t.StopPropagation;var n,r,i,o,a,s=t.dataflow.locale(),l=t.fork(t.NO_SOURCE|t.NO_FIELDS),c=this.value,u=e.type||l_,h=e.scale,d=+e.limit,f=d_(h,null==e.count?5:e.count,e.minstep),p=!!e.values||u===l_,m=e.format||x_(s,h,f,u,e.formatSpecifier,e.formatType,p),g=e.values||b_(h,f);return c&&(l.rem=c),u===l_?(d&&g.length>d?(t.dataflow.warn("Symbol legend count exceeds limit, filtering items."),c=g.slice(0,d-1),a=!0):c=g,yo(i=e.size)?(e.values||0!==h(c[0])||(c=c.slice(1)),o=c.reduce(((t,n)=>Math.max(t,i(n,e))),0)):i=Eo(o=i||8),c=c.map(((t,n)=>Nh({index:n,label:m(t,n,c),value:t,offset:o,size:i(t,e)}))),a&&(a=g[c.length],c.push(Nh({index:c.length,label:"…".concat(g.length-c.length," entries"),value:a,offset:o,size:i(a,e)})))):"gradient"===u?(n=h.domain(),r=n_(h,n[0],Ji(n)),g.length<3&&!e.values&&n[0]!==Ji(n)&&(g=[n[0],Ji(n)]),c=g.map(((e,t)=>Nh({index:t,label:m(e,t,g),value:e,perc:r(e)})))):(i=g.length-1,r=function(e){const t=e.domain(),n=t.length-1;let r=+t[0],i=+Ji(t),o=i-r;if(e.type===Sw){const e=n?o/n:.1;r-=e,i+=e,o=i-r}return e=>(e-r)/o}(h),c=g.map(((e,t)=>Nh({index:t,label:m(e,t,g),value:e,perc:t?r(e):0,perc2:t===i?1:r(g[t+1])})))),l.source=c,l.add=c,this.value=c,l}});const TA=e=>e.source.x,MA=e=>e.source.y,OA=e=>e.target.x,FA=e=>e.target.y;function PA(e){ud.call(this,{},e)}PA.Definition={type:"LinkPath",metadata:{modifies:!0},params:[{name:"sourceX",type:"field",default:"source.x"},{name:"sourceY",type:"field",default:"source.y"},{name:"targetX",type:"field",default:"target.x"},{name:"targetY",type:"field",default:"target.y"},{name:"orient",type:"enum",default:"vertical",values:["horizontal","vertical","radial"]},{name:"shape",type:"enum",default:"line",values:["line","arc","curve","diagonal","orthogonal"]},{name:"require",type:"signal"},{name:"as",type:"string",default:"path"}]},No(PA,ud,{transform(e,t){var n=e.sourceX||TA,r=e.sourceY||MA,i=e.targetX||OA,o=e.targetY||FA,a=e.as||"path",s=e.orient||"vertical",l=e.shape||"line",c=jA.get(l+"-"+s)||jA.get(l);return c||Ai("LinkPath unsupported type: "+e.shape+(e.orient?"-"+e.orient:"")),t.visit(t.SOURCE,(e=>{e[a]=c(n(e),r(e),i(e),o(e))})),t.reflow(e.modified()).modifies(a)}});const NA=(e,t,n,r)=>"M"+e+","+t+"L"+n+","+r,IA=(e,t,n,r)=>{var i=n-e,o=r-t,a=Math.sqrt(i*i+o*o)/2;return"M"+e+","+t+"A"+a+","+a+" "+180*Math.atan2(o,i)/Math.PI+" 0 1 "+n+","+r},BA=(e,t,n,r)=>{const i=n-e,o=r-t,a=.2*(i+o),s=.2*(o-i);return"M"+e+","+t+"C"+(e+a)+","+(t+s)+" "+(n+s)+","+(r-a)+" "+n+","+r},jA=Fo({line:NA,"line-radial":(e,t,n,r)=>NA(t*Math.cos(e),t*Math.sin(e),r*Math.cos(n),r*Math.sin(n)),arc:IA,"arc-radial":(e,t,n,r)=>IA(t*Math.cos(e),t*Math.sin(e),r*Math.cos(n),r*Math.sin(n)),curve:BA,"curve-radial":(e,t,n,r)=>BA(t*Math.cos(e),t*Math.sin(e),r*Math.cos(n),r*Math.sin(n)),"orthogonal-horizontal":(e,t,n,r)=>"M"+e+","+t+"V"+r+"H"+n,"orthogonal-vertical":(e,t,n,r)=>"M"+e+","+t+"H"+n+"V"+r,"orthogonal-radial":(e,t,n,r)=>{const i=Math.cos(e),o=Math.sin(e),a=Math.cos(n),s=Math.sin(n);return"M"+t*i+","+t*o+"A"+t+","+t+" 0 0,"+((Math.abs(n-e)>Math.PI?n<=e:n>e)?1:0)+" "+t*a+","+t*s+"L"+r*a+","+r*s},"diagonal-horizontal":(e,t,n,r)=>{const i=(e+n)/2;return"M"+e+","+t+"C"+i+","+t+" "+i+","+r+" "+n+","+r},"diagonal-vertical":(e,t,n,r)=>{const i=(t+r)/2;return"M"+e+","+t+"C"+e+","+i+" "+n+","+i+" "+n+","+r},"diagonal-radial":(e,t,n,r)=>{const i=Math.cos(e),o=Math.sin(e),a=Math.cos(n),s=Math.sin(n),l=(t+r)/2;return"M"+t*i+","+t*o+"C"+l*i+","+l*o+" "+l*a+","+l*s+" "+r*a+","+r*s}});function LA(e){ud.call(this,null,e)}function zA(e){return Vw(e)&&e!==_w}LA.Definition={type:"Pie",metadata:{modifies:!0},params:[{name:"field",type:"field"},{name:"startAngle",type:"number",default:0},{name:"endAngle",type:"number",default:6.283185307179586},{name:"sort",type:"boolean",default:!1},{name:"as",type:"string",array:!0,length:2,default:["startAngle","endAngle"]}]},No(LA,ud,{transform(e,t){var n,r,i,o=e.as||["startAngle","endAngle"],a=o[0],s=o[1],l=e.field||Ni,c=e.startAngle||0,u=null!=e.endAngle?e.endAngle:2*Math.PI,h=t.source,d=h.map(l),f=d.length,p=c,m=(u-c)/function(e,t){let n=0;for(let t of e)(t=+t)&&(n+=t);return n}(d),g=lA(f);for(e.sort&&g.sort(((e,t)=>d[e]-d[t])),n=0;ne+(t<0?-1:t>0?1:0)),0))!==t.length&&n.warn("Log scale domain includes zero: "+Yo(t)),t}function UA(e,t,n){return yo(e)&&(t||n)?Qw(e,qA(t||[0,1],n)):e}function qA(e,t){return t?e.slice().reverse():e}function WA(e){ud.call(this,null,e)}No($A,ud,{transform(e,t){var n=t.dataflow,r=this.value,i=function(e){var t,n=e.type,r="";return n===_w?"sequential-linear":(function(e){const t=e.type;return Vw(t)&&t!==xw&&t!==ww&&(e.scheme||e.range&&e.range.length&&e.range.every($o))}(e)&&(r=2===(t=e.rawDomain?e.rawDomain.length:e.domain?e.domain.length+ +(null!=e.domainMid):0)?"sequential-":3===t?"diverging-":""),(r+n||mw).toLowerCase())}(e);for(i in r&&i===r.type||(this.value=r=Uw(i)()),e)if(!RA[i]){if("padding"===i&&zA(r.type))continue;yo(r[i])?r[i](e[i]):n.warn("Unsupported scale property: "+i)}return function(e,t,n){var r=e.type,i=t.round||!1,o=t.range;if(null!=t.rangeStep)o=function(e,t,n){e!==Tw&&e!==Aw&&Ai("Only band and point scales support rangeStep.");var r=(null!=t.paddingOuter?t.paddingOuter:t.padding)||0,i=e===Aw?1:(null!=t.paddingInner?t.paddingInner:t.padding)||0;return[0,t.rangeStep*pw(n,i,r)]}(r,t,n);else if(t.scheme&&(o=function(e,t,n){var r,i=t.schemeExtent;return qi(t.scheme)?r=e_(t.scheme,t.interpolate,t.interpolateGamma):(r=s_(t.scheme.toLowerCase()))||Ai("Unrecognized scheme name: ".concat(t.scheme)),n=e===Sw?n+1:e===Mw?n-1:e===Ew||e===Cw?+t.schemeCount||5:n,Jw(e)?UA(r,i,t.reverse):yo(r)?t_(UA(r,i),n):e===Dw?r:r.slice(0,n)}(r,t,n),yo(o))){if(e.interpolator)return e.interpolator(o);Ai("Scale type ".concat(r," does not support interpolating color schemes."))}if(o&&Jw(r))return e.interpolator(e_(qA(o,t.reverse),t.interpolate,t.interpolateGamma));o&&t.interpolate&&e.interpolate?e.interpolate(r_(t.interpolate,t.interpolateGamma)):yo(e.round)?e.round(i):yo(e.rangeRound)&&e.interpolate(i?cA:kA),o&&e.range(qA(o,t.reverse))}(r,e,function(e,t,n){let r=t.bins;if(r&&!qi(r)){const t=e.domain(),n=t[0],i=Ji(t),o=r.step;let a=null==r.start?n:r.start,s=null==r.stop?i:r.stop;o||Ai("Scale bins parameter missing step property."),ai&&(s=o*Math.floor(i/o)),r=lA(a,s+o/2,o)}return r?e.bins=r:e.bins&&delete e.bins,e.type===Mw&&(r?t.domain||t.domainRaw||(e.domain(r),n=r.length):e.bins=e.domain()),n}(r,e,function(e,t,n){const r=function(e,t,n){return t?(e.domain(HA(e.type,t,n)),t.length):-1}(e,t.domainRaw,n);if(r>-1)return r;var i,o,a=t.domain,s=e.type,l=t.zero||void 0===t.zero&&function(e){const t=e.type;return!e.bins&&(t===mw||t===vw||t===yw)}(e);if(!a)return 0;if(zA(s)&&t.padding&&a[0]!==Ji(a)&&(a=function(e,t,n,r,i,o){var a=Math.abs(Ji(n)-n[0]),s=a/(a-2*r),l=e===gw?uo(t,null,s):e===yw?ho(t,null,s,.5):e===vw?ho(t,null,s,i||1):e===bw?fo(t,null,s,o||1):co(t,null,s);return(t=t.slice())[0]=l[0],t[t.length-1]=l[1],t}(s,a,t.range,t.padding,t.exponent,t.constant)),(l||null!=t.domainMin||null!=t.domainMax||null!=t.domainMid)&&(i=(a=a.slice()).length-1||1,l&&(a[0]>0&&(a[0]=0),a[i]<0&&(a[i]=0)),null!=t.domainMin&&(a[0]=t.domainMin),null!=t.domainMax&&(a[i]=t.domainMax),null!=t.domainMid)){const e=(o=t.domainMid)>a[i]?i+1:oe(l);if(null==t)f.push(e.slice());else for(i={},o=0,a=e.length;od&&(d=h),n&&u.sort(n)}return f.max=d,f}(t.source,e.groupby,c,u),r=0,i=n.length,o=n.max;r=t)&&(n=t);else{let r=-1;for(let i of e)null!=(i=t(i,++r,e))&&(n=i)&&(n=i)}return n}const oT=e=>e;function aT(e,t){e&&lT.hasOwnProperty(e.type)&&lT[e.type](e,t)}var sT={Feature:function(e,t){aT(e.geometry,t)},FeatureCollection:function(e,t){for(var n=e.features,r=-1,i=n.length;++r0){for(o=e[--i];i>0&&(t=o,n=e[--i],o=t+n,r=n-(o-t),!r););i>0&&(r<0&&e[i-1]<0||r>0&&e[i-1]>0)&&(n=2*r,t=o+n,n==t-o&&(o=t))}return o}}var fT=1e-6,pT=Math.PI,mT=pT/2,gT=pT/4,vT=2*pT,yT=180/pT,bT=pT/180,xT=Math.abs,wT=Math.atan,_T=Math.atan2,kT=Math.cos,ET=(Math.ceil,Math.exp),CT=(Math.floor,Math.hypot,Math.log),ST=Math.pow,DT=Math.sin,AT=Math.sign||function(e){return e>0?1:e<0?-1:0},TT=Math.sqrt,MT=Math.tan;function OT(e){return e>1?0:e<-1?pT:Math.acos(e)}function FT(e){return e>1?mT:e<-1?-mT:Math.asin(e)}function PT(){}var NT,IT,BT,jT,LT=new dT,zT=new dT,RT={point:PT,lineStart:PT,lineEnd:PT,polygonStart:function(){RT.lineStart=$T,RT.lineEnd=qT},polygonEnd:function(){RT.lineStart=RT.lineEnd=RT.point=PT,LT.add(xT(zT)),zT=new dT},result:function(){var e=LT/2;return LT=new dT,e}};function $T(){RT.point=HT}function HT(e,t){RT.point=UT,NT=BT=e,IT=jT=t}function UT(e,t){zT.add(jT*e-BT*t),BT=e,jT=t}function qT(){UT(NT,IT)}const WT=RT;var VT=1/0,GT=VT,XT=-VT,YT=XT,JT={point:function(e,t){eXT&&(XT=e),tYT&&(YT=t)},lineStart:PT,lineEnd:PT,polygonStart:PT,polygonEnd:PT,result:function(){var e=[[VT,GT],[XT,YT]];return XT=YT=-(GT=VT=1/0),e}};const ZT=JT;var KT,QT,eM,tM,nM=0,rM=0,iM=0,oM=0,aM=0,sM=0,lM=0,cM=0,uM=0,hM={point:dM,lineStart:fM,lineEnd:gM,polygonStart:function(){hM.lineStart=vM,hM.lineEnd=yM},polygonEnd:function(){hM.point=dM,hM.lineStart=fM,hM.lineEnd=gM},result:function(){var e=uM?[lM/uM,cM/uM]:sM?[oM/sM,aM/sM]:iM?[nM/iM,rM/iM]:[NaN,NaN];return nM=rM=iM=oM=aM=sM=lM=cM=uM=0,e}};function dM(e,t){nM+=e,rM+=t,++iM}function fM(){hM.point=pM}function pM(e,t){hM.point=mM,dM(eM=e,tM=t)}function mM(e,t){var n=e-eM,r=t-tM,i=TT(n*n+r*r);oM+=i*(eM+e)/2,aM+=i*(tM+t)/2,sM+=i,dM(eM=e,tM=t)}function gM(){hM.point=dM}function vM(){hM.point=bM}function yM(){xM(KT,QT)}function bM(e,t){hM.point=xM,dM(KT=eM=e,QT=tM=t)}function xM(e,t){var n=e-eM,r=t-tM,i=TT(n*n+r*r);oM+=i*(eM+e)/2,aM+=i*(tM+t)/2,sM+=i,lM+=(i=tM*e-eM*t)*(eM+e),cM+=i*(tM+t),uM+=3*i,dM(eM=e,tM=t)}const wM=hM;function _M(e){this._context=e}_M.prototype={_radius:4.5,pointRadius:function(e){return this._radius=e,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(e,t){switch(this._point){case 0:this._context.moveTo(e,t),this._point=1;break;case 1:this._context.lineTo(e,t);break;default:this._context.moveTo(e+this._radius,t),this._context.arc(e,t,this._radius,0,vT)}},result:PT};var kM,EM,CM,SM,DM,AM=new dT,TM={point:PT,lineStart:function(){TM.point=MM},lineEnd:function(){kM&&OM(EM,CM),TM.point=PT},polygonStart:function(){kM=!0},polygonEnd:function(){kM=null},result:function(){var e=+AM;return AM=new dT,e}};function MM(e,t){TM.point=OM,EM=SM=e,CM=DM=t}function OM(e,t){SM-=e,DM-=t,AM.add(TT(SM*SM+DM*DM)),SM=e,DM=t}const FM=TM;function PM(){this._string=[]}function NM(e){return"m0,"+e+"a"+e+","+e+" 0 1,1 0,"+-2*e+"a"+e+","+e+" 0 1,1 0,"+2*e+"z"}function IM(e,t){var n,r,i=4.5;function o(e){return e&&("function"==typeof i&&r.pointRadius(+i.apply(this,arguments)),hT(e,n(r))),r.result()}return o.area=function(e){return hT(e,n(WT)),WT.result()},o.measure=function(e){return hT(e,n(FM)),FM.result()},o.bounds=function(e){return hT(e,n(ZT)),ZT.result()},o.centroid=function(e){return hT(e,n(wM)),wM.result()},o.projection=function(t){return arguments.length?(n=null==t?(e=null,oT):(e=t).stream,o):e},o.context=function(e){return arguments.length?(r=null==e?(t=null,new PM):new _M(t=e),"function"!=typeof i&&r.pointRadius(i),o):t},o.pointRadius=function(e){return arguments.length?(i="function"==typeof e?e:(r.pointRadius(+e),+e),o):i},o.projection(e).context(t)}function BM(){var e,t=[];return{point:function(t,n,r){e.push([t,n,r])},lineStart:function(){t.push(e=[])},lineEnd:PT,rejoin:function(){t.length>1&&t.push(t.pop().concat(t.shift()))},result:function(){var n=t;return t=[],e=null,n}}}function jM(e,t){return xT(e[0]-t[0])=0;--o)i.point((u=c[o])[0],u[1]);else r(d.x,d.p.x,-1,i);d=d.p}c=(d=d.o).z,f=!f}while(!d.v);i.lineEnd()}}}function RM(e){if(t=e.length){for(var t,n,r=0,i=e[0];++r=0?1:-1,S=C*E,D=S>pT,A=g*_;if(l.add(_T(A*C*DT(S),v*k+A*kT(S))),a+=D?E+C*vT:E,D^p>=n^x>=n){var T=qM(HM(f),HM(b));GM(T);var M=qM(o,T);GM(M);var O=(D^E>=0?-1:1)*FT(M[2]);(r>O||r===O&&(T[0]||T[1]))&&(s+=D^E>=0?1:-1)}}return(a<-1e-6||a0){for(h||(i.polygonStart(),h=!0),i.lineStart(),e=0;e1&&2&l&&d.push(d.pop().concat(d.shift())),a.push(d.filter(ZM))}return d}}function ZM(e){return e.length>1}function KM(e,t){return((e=e.x)[0]<0?e[1]-mT-fT:mT-e[1])-((t=t.x)[0]<0?t[1]-mT-fT:mT-t[1])}PM.prototype={_radius:4.5,_circle:NM(4.5),pointRadius:function(e){return(e=+e)!==this._radius&&(this._radius=e,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._string.push("Z"),this._point=NaN},point:function(e,t){switch(this._point){case 0:this._string.push("M",e,",",t),this._point=1;break;case 1:this._string.push("L",e,",",t);break;default:null==this._circle&&(this._circle=NM(this._radius)),this._string.push("M",e,",",t,this._circle)}},result:function(){if(this._string.length){var e=this._string.join("");return this._string=[],e}return null}};const QM=JM((function(){return!0}),(function(e){var t,n=NaN,r=NaN,i=NaN;return{lineStart:function(){e.lineStart(),t=1},point:function(o,a){var s=o>0?pT:-pT,l=xT(o-n);xT(l-pT)0?mT:-mT),e.point(i,r),e.lineEnd(),e.lineStart(),e.point(s,r),e.point(o,r),t=0):i!==s&&l>=pT&&(xT(n-i)fT?wT((DT(t)*(o=kT(r))*DT(n)-DT(r)*(i=kT(t))*DT(e))/(i*o*a)):(t+r)/2}(n,r,o,a),e.point(i,r),e.lineEnd(),e.lineStart(),e.point(s,r),t=0),e.point(n=o,r=a),i=s},lineEnd:function(){e.lineEnd(),n=r=NaN},clean:function(){return 2-t}}}),(function(e,t,n,r){var i;if(null==e)i=n*mT,r.point(-pT,i),r.point(0,i),r.point(pT,i),r.point(pT,0),r.point(pT,-i),r.point(0,-i),r.point(-pT,-i),r.point(-pT,0),r.point(-pT,i);else if(xT(e[0]-t[0])>fT){var o=e[0]0,i=xT(t)>fT;function o(e,n){return kT(e)*kT(n)>t}function a(e,n,r){var i=[1,0,0],o=qM(HM(e),HM(n)),a=UM(o,o),s=o[0],l=a-s*s;if(!l)return!r&&e;var c=t*a/l,u=-t*s/l,h=qM(i,o),d=VM(i,c);WM(d,VM(o,u));var f=h,p=UM(d,f),m=UM(f,f),g=p*p-m*(UM(d,d)-1);if(!(g<0)){var v=TT(g),y=VM(f,(-p-v)/m);if(WM(y,d),y=$M(y),!r)return y;var b,x=e[0],w=n[0],_=e[1],k=n[1];w0^y[1]<(xT(y[0]-x)pT^(x<=y[0]&&y[0]<=w)){var S=VM(f,(-p+v)/m);return WM(S,d),[y,$M(S)]}}}function s(t,n){var i=r?e:pT-e,o=0;return t<-i?o|=1:t>i&&(o|=2),n<-i?o|=4:n>i&&(o|=8),o}return JM(o,(function(e){var t,n,l,c,u;return{lineStart:function(){c=l=!1,u=1},point:function(h,d){var f,p=[h,d],m=o(h,d),g=r?m?0:s(h,d):m?s(h+(h<0?pT:-pT),d):0;if(!t&&(c=l=m)&&e.lineStart(),m!==l&&(!(f=a(t,p))||jM(t,f)||jM(p,f))&&(p[2]=1),m!==l)u=0,m?(e.lineStart(),f=a(p,t),e.point(f[0],f[1])):(f=a(t,p),e.point(f[0],f[1],2),e.lineEnd()),t=f;else if(i&&t&&r^m){var v;g&n||!(v=a(p,t,!0))||(u=0,r?(e.lineStart(),e.point(v[0][0],v[0][1]),e.point(v[1][0],v[1][1]),e.lineEnd()):(e.point(v[1][0],v[1][1]),e.lineEnd(),e.lineStart(),e.point(v[0][0],v[0][1],3)))}!m||t&&jM(t,p)||e.point(p[0],p[1]),t=p,l=m,n=g},lineEnd:function(){l&&e.lineEnd(),t=null},clean:function(){return u|(c&&l)<<1}}}),(function(t,r,i,o){!function(e,t,n,r,i,o){if(n){var a=kT(t),s=DT(t),l=r*n;null==i?(i=t+r*vT,o=t-l/2):(i=eO(a,i),o=eO(a,o),(r>0?io)&&(i+=r*vT));for(var c,u=i;r>0?u>o:u0)do{c.point(0===u||3===u?e:n,u>1?r:t)}while((u=(u+s+4)%4)!==h);else c.point(o[0],o[1])}function a(r,i){return xT(r[0]-e)0?0:3:xT(r[0]-n)0?2:1:xT(r[1]-t)0?1:0:i>0?3:2}function s(e,t){return l(e.x,t.x)}function l(e,t){var n=a(e,1),r=a(t,1);return n!==r?n-r:0===n?t[1]-e[1]:1===n?e[0]-t[0]:2===n?e[1]-t[1]:t[0]-e[0]}return function(a){var l,c,u,h,d,f,p,m,g,v,y,b=a,x=BM(),w={point:_,lineStart:function(){w.point=k,c&&c.push(u=[]),v=!0,g=!1,p=m=NaN},lineEnd:function(){l&&(k(h,d),f&&g&&x.rejoin(),l.push(x.result())),w.point=_,g&&b.lineEnd()},polygonStart:function(){b=x,l=[],c=[],y=!0},polygonEnd:function(){var t=function(){for(var t=0,n=0,i=c.length;nr&&(d-o)*(r-a)>(f-a)*(e-o)&&++t:f<=r&&(d-o)*(r-a)<(f-a)*(e-o)&&--t;return t}(),n=y&&t,i=(l=YM(l)).length;(n||i)&&(a.polygonStart(),n&&(a.lineStart(),o(null,null,1,a),a.lineEnd()),i&&zM(l,s,t,o,a),a.polygonEnd()),b=a,l=c=u=null}};function _(e,t){i(e,t)&&b.point(e,t)}function k(o,a){var s=i(o,a);if(c&&u.push([o,a]),v)h=o,d=a,f=s,v=!1,s&&(b.lineStart(),b.point(o,a));else if(s&&g)b.point(o,a);else{var l=[p=Math.max(rO,Math.min(nO,p)),m=Math.max(rO,Math.min(nO,m))],x=[o=Math.max(rO,Math.min(nO,o)),a=Math.max(rO,Math.min(nO,a))];!function(e,t,n,r,i,o){var a,s=e[0],l=e[1],c=0,u=1,h=t[0]-s,d=t[1]-l;if(a=n-s,h||!(a>0)){if(a/=h,h<0){if(a0){if(a>u)return;a>c&&(c=a)}if(a=i-s,h||!(a<0)){if(a/=h,h<0){if(a>u)return;a>c&&(c=a)}else if(h>0){if(a0)){if(a/=d,d<0){if(a0){if(a>u)return;a>c&&(c=a)}if(a=o-l,d||!(a<0)){if(a/=d,d<0){if(a>u)return;a>c&&(c=a)}else if(d>0){if(a0&&(e[0]=s+c*h,e[1]=l+c*d),u<1&&(t[0]=s+u*h,t[1]=l+u*d),!0}}}}}(l,x,e,t,n,r)?s&&(b.lineStart(),b.point(o,a),y=!1):(g||(b.lineStart(),b.point(l[0],l[1])),b.point(x[0],x[1]),s||b.lineEnd(),y=!1)}p=o,m=a,g=s}return w}}function oO(e,t){function n(n,r){return n=e(n,r),t(n[0],n[1])}return e.invert&&t.invert&&(n.invert=function(n,r){return(n=t.invert(n,r))&&e.invert(n[0],n[1])}),n}function aO(e,t){return[xT(e)>pT?e+Math.round(-e/vT)*vT:e,t]}function sO(e,t,n){return(e%=vT)?t||n?oO(cO(e),uO(t,n)):cO(e):t||n?uO(t,n):aO}function lO(e){return function(t,n){return[(t+=e)>pT?t-vT:t<-pT?t+vT:t,n]}}function cO(e){var t=lO(e);return t.invert=lO(-e),t}function uO(e,t){var n=kT(e),r=DT(e),i=kT(t),o=DT(t);function a(e,t){var a=kT(t),s=kT(e)*a,l=DT(e)*a,c=DT(t),u=c*n+s*r;return[_T(l*i-u*o,s*n-c*r),FT(u*i+l*o)]}return a.invert=function(e,t){var a=kT(t),s=kT(e)*a,l=DT(e)*a,c=DT(t),u=c*i-l*o;return[_T(l*i+c*o,s*n+u*r),FT(u*n-s*r)]},a}function hO(e){return function(t){var n=new dO;for(var r in e)n[r]=e[r];return n.stream=t,n}}function dO(){}function fO(e,t,n){var r=e.clipExtent&&e.clipExtent();return e.scale(150).translate([0,0]),null!=r&&e.clipExtent(null),hT(n,e.stream(ZT)),t(ZT.result()),null!=r&&e.clipExtent(r),e}function pO(e,t,n){return fO(e,(function(n){var r=t[1][0]-t[0][0],i=t[1][1]-t[0][1],o=Math.min(r/(n[1][0]-n[0][0]),i/(n[1][1]-n[0][1])),a=+t[0][0]+(r-o*(n[1][0]+n[0][0]))/2,s=+t[0][1]+(i-o*(n[1][1]+n[0][1]))/2;e.scale(150*o).translate([a,s])}),n)}function mO(e,t,n){return pO(e,[[0,0],t],n)}function gO(e,t,n){return fO(e,(function(n){var r=+t,i=r/(n[1][0]-n[0][0]),o=(r-i*(n[1][0]+n[0][0]))/2,a=-i*n[0][1];e.scale(150*i).translate([o,a])}),n)}function vO(e,t,n){return fO(e,(function(n){var r=+t,i=r/(n[1][1]-n[0][1]),o=-i*n[0][0],a=(r-i*(n[1][1]+n[0][1]))/2;e.scale(150*i).translate([o,a])}),n)}aO.invert=aO,dO.prototype={constructor:dO,point:function(e,t){this.stream.point(e,t)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};var yO=kT(30*bT);function bO(e,t){return+t?function(e,t){function n(r,i,o,a,s,l,c,u,h,d,f,p,m,g){var v=c-r,y=u-i,b=v*v+y*y;if(b>4*t&&m--){var x=a+d,w=s+f,_=l+p,k=TT(x*x+w*w+_*_),E=FT(_/=k),C=xT(xT(_)-1)t||xT((v*T+y*M)/b-.5)>.3||a*d+s*f+l*p2?e[2]%360*bT:0,T()):[g*yT,v*yT,y*yT]},D.angle=function(e){return arguments.length?(b=e%360*bT,T()):b*yT},D.reflectX=function(e){return arguments.length?(x=e?-1:1,T()):x<0},D.reflectY=function(e){return arguments.length?(w=e?-1:1,T()):w<0},D.precision=function(e){return arguments.length?(a=bO(s,S=e*e),M()):TT(S)},D.fitExtent=function(e,t){return pO(D,e,t)},D.fitSize=function(e,t){return mO(D,e,t)},D.fitWidth=function(e,t){return gO(D,e,t)},D.fitHeight=function(e,t){return vO(D,e,t)},function(){return t=e.apply(this,arguments),D.invert=t.invert&&A,T()}}function EO(e){var t=0,n=pT/3,r=kO(e),i=r(t,n);return i.parallels=function(e){return arguments.length?r(t=e[0]*bT,n=e[1]*bT):[t*yT,n*yT]},i}function CO(e,t){var n=DT(e),r=(n+DT(t))/2;if(xT(r)2?e[2]*bT:0),t.invert=function(t){return(t=e.invert(t[0]*bT,t[1]*bT))[0]*=yT,t[1]*=yT,t},t}(i.rotate()).invert([0,0]));return l(null==c?[[s[0]-o,s[1]-o],[s[0]+o,s[1]+o]]:e===FO?[[Math.max(s[0]-o,c),t],[Math.min(s[0]+o,n),r]]:[[c,Math.max(s[1]-o,t)],[n,Math.min(s[1]+o,r)]])}return i.scale=function(e){return arguments.length?(a(e),u()):a()},i.translate=function(e){return arguments.length?(s(e),u()):s()},i.center=function(e){return arguments.length?(o(e),u()):o()},i.clipExtent=function(e){return arguments.length?(null==e?c=t=n=r=null:(c=+e[0][0],t=+e[0][1],n=+e[1][0],r=+e[1][1]),u()):null==c?null:[[c,t],[n,r]]},u()}function NO(e){return MT((mT+e)/2)}function IO(e,t){var n=kT(e),r=e===t?DT(e):CT(n/kT(t))/CT(NO(t)/NO(e)),i=n*ST(NO(e),r)/r;if(!r)return FO;function o(e,t){i>0?t<-mT+fT&&(t=-mT+fT):t>mT-fT&&(t=mT-fT);var n=i/ST(NO(t),r);return[n*DT(r*e),i-n*kT(r*e)]}return o.invert=function(e,t){var n=i-t,o=AT(r)*TT(e*e+n*n),a=_T(e,xT(n))*AT(n);return n*r<0&&(a-=pT*AT(e)*AT(n)),[a/r,2*wT(ST(i/o,1/r))-mT]},o}function BO(e,t){return[e,t]}function jO(e,t){var n=kT(e),r=e===t?DT(e):(n-kT(t))/(t-e),i=n/r+e;if(xT(r)1&&t.push(t.pop().concat(t.shift()))},result:function(){var n=t;return t=[],e=null,n}}}UO.invert=function(e,t){for(var n,r=t,i=r*r,o=i*i*i,a=0;a<12&&(o=(i=(r-=n=(r*(LO+zO*i+o*(RO+$O*i))-t)/(LO+3*zO*i+o*(7*RO+9*$O*i)))*r)*i*i,!(xT(n)<1e-12));++a);return[HO*e*(LO+3*zO*i+o*(7*RO+9*$O*i))/kT(r),FT(DT(r)/HO)]},qO.invert=TO(wT),WO.invert=function(e,t){var n,r=t,i=25;do{var o=r*r,a=o*o;r-=n=(r*(1.007226+o*(.015085+a*(.028874*o-.044475-.005916*a)))-t)/(1.007226+o*(.045255+a*(.259866*o-.311325-.005916*11*a)))}while(xT(n)>fT&&--i>0);return[e/(.8707+(o=r*r)*(o*(o*o*o*(.003971-.001529*o)-.013791)-.131979)),r]},VO.invert=TO(FT),GO.invert=TO((function(e){return 2*wT(e)})),XO.invert=function(e,t){return[-t,2*wT(ET(e))-mT]};var ZO=1e-6,KO=Math.PI,QO=KO/2,eF=KO/4,tF=2*KO,nF=180/KO,rF=KO/180,iF=Math.abs,oF=Math.atan,aF=Math.atan2,sF=Math.cos,lF=(Math.ceil,Math.exp,Math.floor,Math.log,Math.pow,Math.sin),cF=Math.sign||function(e){return e>0?1:e<0?-1:0},uF=Math.sqrt;function hF(e){return e>1?QO:e<-1?-QO:Math.asin(e)}function dF(e,t){return iF(e[0]-t[0])=0;--o)i.point((u=c[o])[0],u[1]);else r(d.x,d.p.x,-1,i);d=d.p}c=(d=d.o).z,f=!f}while(!d.v);i.lineEnd()}}}function mF(e){if(t=e.length){for(var t,n,r=0,i=e[0];++r=0?1:-1,C=E*k,S=C>KO,D=m*w;if(SF.add(aF(D*E*lF(C),g*_+D*sF(C))),a+=S?k+E*tF:k,S^f>=n^b>=n){var A=_F(xF(d),xF(y));CF(A);var T=_F(o,A);CF(T);var M=(S^k>=0?-1:1)*hF(T[2]);(r>M||r===M&&(A[0]||A[1]))&&(s+=S^k>=0?1:-1)}}return(a<-1e-6||a0){for(h||(i.polygonStart(),h=!0),i.lineStart(),e=0;e1&&2&l&&d.push(d.pop().concat(d.shift())),a.push(d.filter(TF))}return d}}function TF(e){return e.length>1}function MF(e,t){return((e=e.x)[0]<0?e[1]-QO-ZO:QO-e[1])-((t=t.x)[0]<0?t[1]-QO-ZO:QO-t[1])}const OF=AF((function(){return!0}),(function(e){var t,n=NaN,r=NaN,i=NaN;return{lineStart:function(){e.lineStart(),t=1},point:function(o,a){var s=o>0?KO:-KO,l=iF(o-n);iF(l-KO)0?QO:-QO),e.point(i,r),e.lineEnd(),e.lineStart(),e.point(s,r),e.point(o,r),t=0):i!==s&&l>=KO&&(iF(n-i)ZO?oF((lF(t)*(o=sF(r))*lF(n)-lF(r)*(i=sF(t))*lF(e))/(i*o*a)):(t+r)/2}(n,r,o,a),e.point(i,r),e.lineEnd(),e.lineStart(),e.point(s,r),t=0),e.point(n=o,r=a),i=s},lineEnd:function(){e.lineEnd(),n=r=NaN},clean:function(){return 2-t}}}),(function(e,t,n,r){var i;if(null==e)i=n*QO,r.point(-KO,i),r.point(0,i),r.point(KO,i),r.point(KO,0),r.point(KO,-i),r.point(0,-i),r.point(-KO,-i),r.point(-KO,0),r.point(-KO,i);else if(iF(e[0]-t[0])>ZO){var o=e[0]1?0:n<-1?KO:Math.acos(n);return((-t[2]<0?-r:r)+tF-ZO)%tF}function PF(e){var t=sF(e),n=6*rF,r=t>0,i=iF(t)>ZO;function o(e,n){return sF(e)*sF(n)>t}function a(e,n,r){var i=[1,0,0],o=_F(xF(e),xF(n)),a=wF(o,o),s=o[0],l=a-s*s;if(!l)return!r&&e;var c=t*a/l,u=-t*s/l,h=_F(i,o),d=EF(i,c);kF(d,EF(o,u));var f=h,p=wF(d,f),m=wF(f,f),g=p*p-m*(wF(d,d)-1);if(!(g<0)){var v=uF(g),y=EF(f,(-p-v)/m);if(kF(y,d),y=bF(y),!r)return y;var b,x=e[0],w=n[0],_=e[1],k=n[1];w0^y[1]<(iF(y[0]-x)KO^(x<=y[0]&&y[0]<=w)){var S=EF(f,(-p+v)/m);return kF(S,d),[y,bF(S)]}}}function s(t,n){var i=r?e:KO-e,o=0;return t<-i?o|=1:t>i&&(o|=2),n<-i?o|=4:n>i&&(o|=8),o}return AF(o,(function(e){var t,n,l,c,u;return{lineStart:function(){c=l=!1,u=1},point:function(h,d){var f,p=[h,d],m=o(h,d),g=r?m?0:s(h,d):m?s(h+(h<0?KO:-KO),d):0;if(!t&&(c=l=m)&&e.lineStart(),m!==l&&(!(f=a(t,p))||dF(t,f)||dF(p,f))&&(p[2]=1),m!==l)u=0,m?(e.lineStart(),f=a(p,t),e.point(f[0],f[1])):(f=a(t,p),e.point(f[0],f[1],2),e.lineEnd()),t=f;else if(i&&t&&r^m){var v;g&n||!(v=a(p,t,!0))||(u=0,r?(e.lineStart(),e.point(v[0][0],v[0][1]),e.point(v[1][0],v[1][1]),e.lineEnd()):(e.point(v[1][0],v[1][1]),e.lineEnd(),e.lineStart(),e.point(v[0][0],v[0][1],3)))}!m||t&&dF(t,p)||e.point(p[0],p[1]),t=p,l=m,n=g},lineEnd:function(){l&&e.lineEnd(),t=null},clean:function(){return u|(c&&l)<<1}}}),(function(t,r,i,o){!function(e,t,n,r,i,o){if(n){var a=sF(t),s=lF(t),l=r*n;null==i?(i=t+r*tF,o=t-l/2):(i=FF(a,i),o=FF(a,o),(r>0?io)&&(i+=r*tF));for(var c,u=i;r>0?u>o:u0)do{c.point(0===u||3===u?e:n,u>1?r:t)}while((u=(u+s+4)%4)!==h);else c.point(o[0],o[1])}function a(r,i){return iF(r[0]-e)0?0:3:iF(r[0]-n)0?2:1:iF(r[1]-t)0?1:0:i>0?3:2}function s(e,t){return l(e.x,t.x)}function l(e,t){var n=a(e,1),r=a(t,1);return n!==r?n-r:0===n?t[1]-e[1]:1===n?e[0]-t[0]:2===n?e[1]-t[1]:t[0]-e[0]}return function(a){var l,c,u,h,d,f,p,m,g,v,y,b=a,x=JO(),w={point:_,lineStart:function(){w.point=k,c&&c.push(u=[]),v=!0,g=!1,p=m=NaN},lineEnd:function(){l&&(k(h,d),f&&g&&x.rejoin(),l.push(x.result())),w.point=_,g&&b.lineEnd()},polygonStart:function(){b=x,l=[],c=[],y=!0},polygonEnd:function(){var t=function(){for(var t=0,n=0,i=c.length;nr&&(d-o)*(r-a)>(f-a)*(e-o)&&++t:f<=r&&(d-o)*(r-a)<(f-a)*(e-o)&&--t;return t}(),n=y&&t,i=(l=T(l)).length;(n||i)&&(a.polygonStart(),n&&(a.lineStart(),o(null,null,1,a),a.lineEnd()),i&&pF(l,s,t,o,a),a.polygonEnd()),b=a,l=c=u=null}};function _(e,t){i(e,t)&&b.point(e,t)}function k(o,a){var s=i(o,a);if(c&&u.push([o,a]),v)h=o,d=a,f=s,v=!1,s&&(b.lineStart(),b.point(o,a));else if(s&&g)b.point(o,a);else{var l=[p=Math.max(IF,Math.min(NF,p)),m=Math.max(IF,Math.min(NF,m))],x=[o=Math.max(IF,Math.min(NF,o)),a=Math.max(IF,Math.min(NF,a))];!function(e,t,n,r,i,o){var a,s=e[0],l=e[1],c=0,u=1,h=t[0]-s,d=t[1]-l;if(a=n-s,h||!(a>0)){if(a/=h,h<0){if(a0){if(a>u)return;a>c&&(c=a)}if(a=i-s,h||!(a<0)){if(a/=h,h<0){if(a>u)return;a>c&&(c=a)}else if(h>0){if(a0)){if(a/=d,d<0){if(a0){if(a>u)return;a>c&&(c=a)}if(a=o-l,d||!(a<0)){if(a/=d,d<0){if(a>u)return;a>c&&(c=a)}else if(d>0){if(a0&&(e[0]=s+c*h,e[1]=l+c*d),u<1&&(t[0]=s+u*h,t[1]=l+u*d),!0}}}}}(l,x,e,t,n,r)?s&&(b.lineStart(),b.point(o,a),y=!1):(g||(b.lineStart(),b.point(l[0],l[1])),b.point(x[0],x[1]),s||b.lineEnd(),y=!1)}p=o,m=a,g=s}return w}}function jF(e,t){function n(n,r){return n=e(n,r),t(n[0],n[1])}return e.invert&&t.invert&&(n.invert=function(n,r){return(n=t.invert(n,r))&&e.invert(n[0],n[1])}),n}function LF(e){return e}function zF(e,t){return[iF(e)>KO?e+Math.round(-e/tF)*tF:e,t]}function RF(e){return function(t,n){return[(t+=e)>KO?t-tF:t<-KO?t+tF:t,n]}}function $F(e){var t=RF(e);return t.invert=RF(-e),t}function HF(e,t){var n=sF(e),r=lF(e),i=sF(t),o=lF(t);function a(e,t){var a=sF(t),s=sF(e)*a,l=lF(e)*a,c=lF(t),u=c*n+s*r;return[aF(l*i-u*o,s*n-c*r),hF(u*i+l*o)]}return a.invert=function(e,t){var a=sF(t),s=sF(e)*a,l=lF(e)*a,c=lF(t),u=c*i-l*o;return[aF(l*i+c*o,s*n+u*r),hF(u*n-s*r)]},a}function UF(e){return function(t){var n=new qF;for(var r in e)n[r]=e[r];return n.stream=t,n}}function qF(){}function WF(e,t){e&&GF.hasOwnProperty(e.type)&&GF[e.type](e,t)}zF.invert=zF,qF.prototype={constructor:qF,point:function(e,t){this.stream.point(e,t)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};var VF={Feature:function(e,t){WF(e.geometry,t)},FeatureCollection:function(e,t){for(var n=e.features,r=-1,i=n.length;++rKF&&(KF=e),tQF&&(QF=t)},lineStart:YO,lineEnd:YO,polygonStart:YO,polygonEnd:YO,result:function(){var e=[[JF,ZF],[KF,QF]];return KF=QF=-(ZF=JF=1/0),e}};const tP=eP;function nP(e,t,n){var r=e.clipExtent&&e.clipExtent();return e.scale(150).translate([0,0]),null!=r&&e.clipExtent(null),function(e,t){e&&VF.hasOwnProperty(e.type)?VF[e.type](e,t):WF(e,t)}(n,e.stream(tP)),t(tP.result()),null!=r&&e.clipExtent(r),e}function rP(e,t,n){return nP(e,(function(n){var r=t[1][0]-t[0][0],i=t[1][1]-t[0][1],o=Math.min(r/(n[1][0]-n[0][0]),i/(n[1][1]-n[0][1])),a=+t[0][0]+(r-o*(n[1][0]+n[0][0]))/2,s=+t[0][1]+(i-o*(n[1][1]+n[0][1]))/2;e.scale(150*o).translate([a,s])}),n)}var iP=sF(30*rF);function oP(e,t){return+t?function(e,t){function n(r,i,o,a,s,l,c,u,h,d,f,p,m,g){var v=c-r,y=u-i,b=v*v+y*y;if(b>4*t&&m--){var x=a+d,w=s+f,_=l+p,k=uF(x*x+w*w+_*_),E=hF(_/=k),C=iF(iF(_)-1)t||iF((v*T+y*M)/b-.5)>.3||a*d+s*f+l*p2?e[2]%360*rF:0,T()):[g*nF,v*nF,y*nF]},D.angle=function(e){return arguments.length?(b=e%360*rF,T()):b*nF},D.reflectX=function(e){return arguments.length?(x=e?-1:1,T()):x<0},D.reflectY=function(e){return arguments.length?(w=e?-1:1,T()):w<0},D.precision=function(e){return arguments.length?(a=oP(s,S=e*e),M()):uF(S)},D.fitExtent=function(e,t){return rP(D,e,t)},D.fitSize=function(e,t){return function(e,t,n){return rP(e,[[0,0],t],n)}(D,e,t)},D.fitWidth=function(e,t){return function(e,t,n){return nP(e,(function(n){var r=+t,i=r/(n[1][0]-n[0][0]),o=(r-i*(n[1][0]+n[0][0]))/2,a=-i*n[0][1];e.scale(150*i).translate([o,a])}),n)}(D,e,t)},D.fitHeight=function(e,t){return function(e,t,n){return nP(e,(function(n){var r=+t,i=r/(n[1][1]-n[0][1]),o=-i*n[0][0],a=(r-i*(n[1][1]+n[0][1]))/2;e.scale(150*i).translate([o,a])}),n)}(D,e,t)},function(){return t=e.apply(this,arguments),D.invert=t.invert&&A,T()}}((function(){return e}))()}var uP=Math.abs,hP=(Math.atan,Math.atan2,Math.ceil,Math.cos),dP=(Math.exp,Math.floor,Math.log,Math.max,Math.min,Math.pow,Math.round,Math.sign,Math.sin),fP=(Math.tan,Math.PI),pP=fP/2,mP=(Math.SQRT1_2,vP(2));function gP(e){return e>1?pP:e<-1?-pP:Math.asin(e)}function vP(e){return e>0?Math.sqrt(e):0}function yP(e,t){var n,r=e*dP(t),i=30;do{t-=n=(t+dP(t)-r)/(1+hP(t))}while(uP(n)>1e-6&&--i>0);return t/2}vP(fP);var bP=function(e,t,n){function r(r,i){return[e*r*hP(i=yP(n,i)),t*dP(i)]}return r.invert=function(r,i){return i=gP(i/t),[r/(e*hP(i)),gP((2*i+dP(2*i))/n)]},r}(mP/pP,mP,fP);const xP=IM(),wP=["clipAngle","clipExtent","scale","translate","center","rotate","parallels","precision","reflectX","reflectY","coefficient","distance","fraction","lobes","parallel","radius","ratio","spacing","tilt"];function _P(e,t){return function n(){const r=t();return r.type=e,r.path=IM().projection(r),r.copy=r.copy||function(){const e=n();return wP.forEach((t=>{r[t]&&e[t](r[t]())})),e.path.pointRadius(r.path.pointRadius()),e},r}}function kP(e,t){if(!e||"string"!=typeof e)throw new Error("Projection type must be a name string.");return e=e.toLowerCase(),arguments.length>1?(CP[e]=_P(e,t),this):CP[e]||null}function EP(e){return e&&e.path||xP}const CP={albers:DO,albersusa:function(){var e,t,n,r,i,o,a=DO(),s=SO().rotate([154,0]).center([-2,58.5]).parallels([55,65]),l=SO().rotate([157,0]).center([-3,19.9]).parallels([8,18]),c={point:function(e,t){o=[e,t]}};function u(e){var t=e[0],a=e[1];return o=null,n.point(t,a),o||(r.point(t,a),o)||(i.point(t,a),o)}function h(){return e=t=null,u}return u.invert=function(e){var t=a.scale(),n=a.translate(),r=(e[0]-n[0])/t,i=(e[1]-n[1])/t;return(i>=.12&&i<.234&&r>=-.425&&r<-.214?s:i>=.166&&i<.234&&r>=-.214&&r<-.115?l:a).invert(e)},u.stream=function(n){return e&&t===n?e:(r=[a.stream(t=n),s.stream(n),l.stream(n)],i=r.length,e={point:function(e,t){for(var n=-1;++n2?e[2]+90:90]):[(e=n())[0],e[1],e[2]-90]},n([0,0,90]).scale(159.155)}};for(const e in CP)kP(e,CP[e]);var SP=1e-6,DP=(Math.PI,Math.abs),AP=(Math.atan,Math.atan2,Math.cos,Math.ceil);function TP(e,t,n){var r=rT(e,t-SP,n).concat(t);return function(e){return r.map((function(t){return[e,t]}))}}function MP(e,t,n){var r=rT(e,t-SP,n).concat(t);return function(e){return r.map((function(t){return[t,e]}))}}function OP(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function FP(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function PP(){}Math.exp,Math.floor,Math.hypot,Math.log,Math.pow,Math.sin,Math.sign,Math.sqrt,Math.tan;var NP=.7,IP=1/NP,BP="\\s*([+-]?\\d+)\\s*",jP="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",LP="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",zP=/^#([0-9a-f]{3,8})$/,RP=new RegExp("^rgb\\("+[BP,BP,BP]+"\\)$"),$P=new RegExp("^rgb\\("+[LP,LP,LP]+"\\)$"),HP=new RegExp("^rgba\\("+[BP,BP,BP,jP]+"\\)$"),UP=new RegExp("^rgba\\("+[LP,LP,LP,jP]+"\\)$"),qP=new RegExp("^hsl\\("+[jP,LP,LP]+"\\)$"),WP=new RegExp("^hsla\\("+[jP,LP,LP,jP]+"\\)$"),VP={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function GP(){return this.rgb().formatHex()}function XP(){return this.rgb().formatRgb()}function YP(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=zP.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?JP(t):3===n?new eN(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?ZP(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?ZP(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=RP.exec(e))?new eN(t[1],t[2],t[3],1):(t=$P.exec(e))?new eN(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=HP.exec(e))?ZP(t[1],t[2],t[3],t[4]):(t=UP.exec(e))?ZP(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=qP.exec(e))?iN(t[1],t[2]/100,t[3]/100,1):(t=WP.exec(e))?iN(t[1],t[2]/100,t[3]/100,t[4]):VP.hasOwnProperty(e)?JP(VP[e]):"transparent"===e?new eN(NaN,NaN,NaN,0):null}function JP(e){return new eN(e>>16&255,e>>8&255,255&e,1)}function ZP(e,t,n,r){return r<=0&&(e=t=n=NaN),new eN(e,t,n,r)}function KP(e){return e instanceof PP||(e=YP(e)),e?new eN((e=e.rgb()).r,e.g,e.b,e.opacity):new eN}function QP(e,t,n,r){return 1===arguments.length?KP(e):new eN(e,t,n,null==r?1:r)}function eN(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function tN(){return"#"+rN(this.r)+rN(this.g)+rN(this.b)}function nN(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}function rN(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function iN(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new aN(e,t,n,r)}function oN(e){if(e instanceof aN)return new aN(e.h,e.s,e.l,e.opacity);if(e instanceof PP||(e=YP(e)),!e)return new aN;if(e instanceof aN)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,l=(o+i)/2;return s?(a=t===o?(n-r)/s+6*(n0&&l<1?0:a,new aN(a,s,l,e.opacity)}function aN(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function sN(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}function lN(){}OP(PP,YP,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:GP,formatHex:GP,formatHsl:function(){return oN(this).formatHsl()},formatRgb:XP,toString:XP}),OP(eN,QP,FP(PP,{brighter:function(e){return e=null==e?IP:Math.pow(IP,e),new eN(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?NP:Math.pow(NP,e),new eN(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:tN,formatHex:tN,formatRgb:nN,toString:nN})),OP(aN,(function(e,t,n,r){return 1===arguments.length?oN(e):new aN(e,t,n,null==r?1:r)}),FP(PP,{brighter:function(e){return e=null==e?IP:Math.pow(IP,e),new aN(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?NP:Math.pow(NP,e),new aN(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new eN(sN(e>=240?e-240:e+120,i,r),sN(e,i,r),sN(e<120?e+240:e-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}));const cN=[[],[[[1,1.5],[.5,1]]],[[[1.5,1],[1,1.5]]],[[[1.5,1],[.5,1]]],[[[1,.5],[1.5,1]]],[[[1,1.5],[.5,1]],[[1,.5],[1.5,1]]],[[[1,.5],[1,1.5]]],[[[1,.5],[.5,1]]],[[[.5,1],[1,.5]]],[[[1,1.5],[1,.5]]],[[[.5,1],[1,.5]],[[1.5,1],[1,1.5]]],[[[1.5,1],[1,.5]]],[[[.5,1],[1.5,1]]],[[[1,1.5],[1.5,1]]],[[[.5,1],[1,1.5]]],[]];function uN(){var e=1,t=1,n=a;function r(e,t){return t.map((t=>i(e,t)))}function i(r,i){var a=[],s=[];return function(n,r,i){var a,s,l,c,u,h,d=new Array,f=new Array;for(a=s=-1,c=n[0]>=r,cN[c<<1].forEach(p);++a=r,cN[l|c<<1].forEach(p);for(cN[c<<0].forEach(p);++s=r,u=n[s*e]>=r,cN[c<<1|u<<2].forEach(p);++a=r,h=u,u=n[s*e+a+1]>=r,cN[l|c<<1|u<<2|h<<3].forEach(p);cN[c|u<<3].forEach(p)}for(a=-1,u=n[s*e]>=r,cN[u<<2].forEach(p);++a=r,cN[u<<2|h<<3].forEach(p);function p(e){var t,n,r=[e[0][0]+a,e[0][1]+s],l=[e[1][0]+a,e[1][1]+s],c=o(r),u=o(l);(t=f[c])?(n=d[u])?(delete f[t.end],delete d[n.start],t===n?(t.ring.push(l),i(t.ring)):d[t.start]=f[n.end]={start:t.start,end:n.end,ring:t.ring.concat(n.ring)}):(delete f[t.end],t.ring.push(l),f[t.end=u]=t):(t=d[u])?(n=f[c])?(delete d[t.start],delete f[n.end],t===n?(t.ring.push(l),i(t.ring)):d[n.start]=f[t.end]={start:n.start,end:t.end,ring:n.ring.concat(t.ring)}):(delete d[t.start],t.ring.unshift(r),d[t.start=c]=t):d[c]=f[u]={start:c,end:u,ring:[r,l]}}cN[u<<3].forEach(p)}(r,i,(e=>{n(e,r,i),function(e){for(var t=0,n=e.length,r=e[n-1][1]*e[0][0]-e[n-1][0]*e[0][1];++t0?a.push([e]):s.push(e)})),s.forEach((e=>{for(var t,n=0,r=a.length;n{var o,a=n[0],s=n[1],l=0|a,c=0|s,u=r[c*e+l];a>0&&a0&&s=0&&o>=0||Ai("invalid size"),e=i,t=o,r},r.smooth=function(e){return arguments.length?(n=e?a:lN,r):n===a},r}function hN(e,t){for(var n,r=-1,i=t.length;++rr!=f>r&&n<(d-c)*(r-u)/(f-u)+c&&(i=-i)}return i}function fN(e,t,n){var r,i,o,a;return function(e,t,n){return(t[0]-e[0])*(n[1]-e[1])==(n[0]-e[0])*(t[1]-e[1])}(e,t,n)&&(i=e[r=+(e[0]===t[0])],o=n[r],a=t[r],i<=o&&o<=a||a<=o&&o<=i)}function pN(e,t,n){return function(r){var i=Do(r),o=n?Math.min(i[0],0):i[0],a=i[1],s=a-o,l=t?function(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=eT?i*=10:o>=tT?i*=5:o>=nT&&(i*=2),t=0?e:Cd(t,n);return Math.round((Math.sqrt(4*r*r+1)-1)/2)}function yN(e){return yo(e)?e:Eo(+e)}function bN(){var e=e=>e[0],t=e=>e[1],n=Ni,r=[-1,-1],i=960,o=500,a=2;function s(s,l){const c=vN(r[0],s,e)>>a,u=vN(r[1],s,t)>>a,h=c?c+2:0,d=u?u+2:0,f=2*h+(i>>a),p=2*d+(o>>a),m=new Float32Array(f*p),g=new Float32Array(f*p);let v=m;s.forEach((r=>{const i=h+(+e(r)>>a),o=d+(+t(r)>>a);i>=0&&i=0&&o0&&u>0?(xN(f,p,m,g,c),wN(f,p,g,m,u),xN(f,p,m,g,c),wN(f,p,g,m,u),xN(f,p,m,g,c),wN(f,p,g,m,u)):c>0?(xN(f,p,m,g,c),xN(f,p,g,m,c),xN(f,p,m,g,c),v=g):u>0&&(wN(f,p,m,g,u),wN(f,p,g,m,u),wN(f,p,m,g,u),v=g);const y=l?Math.pow(2,-2*a):1/function(e,t){let n=0;for(let t of e)(t=+t)&&(n+=t);return n}(v);for(let e=0,t=f*p;e>a),y2:d+(o>>a)}}return s.x=function(t){return arguments.length?(e=yN(t),s):e},s.y=function(e){return arguments.length?(t=yN(e),s):t},s.weight=function(e){return arguments.length?(n=yN(e),s):n},s.size=function(e){if(!arguments.length)return[i,o];var t=+e[0],n=+e[1];return t>=0&&n>=0||Ai("invalid size"),i=t,o=n,s},s.cellSize=function(e){return arguments.length?((e=+e)>=1||Ai("invalid cell size"),a=Math.floor(Math.log(e)/Math.LN2),s):1<=i&&(t>=o&&(s-=n[t-o+a*e]),r[t-i+a*e]=s/Math.min(t+1,e-1+o-t,o))}function wN(e,t,n,r,i){const o=1+(i<<1);for(let a=0;a=i&&(s>=o&&(l-=n[a+(s-o)*e]),r[a+(s-i)*e]=l/Math.min(s+1,t-1+o-s,o))}function _N(e){ud.call(this,null,e)}mN.Definition={type:"Isocontour",metadata:{generates:!0},params:[{name:"field",type:"field"},{name:"thresholds",type:"number",array:!0},{name:"levels",type:"number"},{name:"nice",type:"boolean",default:!1},{name:"resolve",type:"enum",values:["shared","independent"],default:"independent"},{name:"zero",type:"boolean",default:!0},{name:"smooth",type:"boolean",default:!0},{name:"scale",type:"number",expr:!0},{name:"translate",type:"number",array:!0,expr:!0},{name:"as",type:"string",null:!0,default:"contour"}]},No(mN,ud,{transform(e,t){if(this.value&&!t.changed()&&!e.modified())return t.StopPropagation;var n=t.fork(t.NO_SOURCE|t.NO_FIELDS),r=t.materialize(t.SOURCE).source,i=e.field||Fi,o=uN().smooth(!1!==e.smooth),a=e.thresholds||function(e,t,n){const r=pN(n.levels||10,n.nice,!1!==n.zero);return"shared"!==n.resolve?r:r(e.map((e=>iT(t(e).values))))}(r,i,e),s=null===e.as?null:e.as||"contour",l=[];return r.forEach((t=>{const n=i(t),r=o.size([n.width,n.height])(n.values,qi(a)?a:a(n.values));!function(e,t,n,r){let i=r.scale||t.scale,o=r.translate||t.translate;if(yo(i)&&(i=i(n,r)),yo(o)&&(o=o(n,r)),(1===i||null==i)&&!o)return;const a=(zo(i)?i:i[0])||1,s=(zo(i)?i:i[1])||1,l=o&&o[0]||0,c=o&&o[1]||0;e.forEach(gN(t,a,s,l,c))}(r,n,t,e),r.forEach((e=>{l.push(Bh(t,Nh(null!=s?{[s]:e}:e)))}))})),this.value&&(n.rem=this.value),this.value=n.source=n.add=l,n}}),_N.Definition={type:"KDE2D",metadata:{generates:!0},params:[{name:"size",type:"number",array:!0,length:2,required:!0},{name:"x",type:"field",required:!0},{name:"y",type:"field",required:!0},{name:"weight",type:"field"},{name:"groupby",type:"field",array:!0},{name:"cellSize",type:"number"},{name:"bandwidth",type:"number",array:!0,length:2},{name:"counts",type:"boolean",default:!1},{name:"as",type:"string",default:"grid"}]};const kN=["x","y","weight","size","cellSize","bandwidth"];function EN(e,t){return kN.forEach((n=>null!=t[n]?e[n](t[n]):0)),e}function CN(e){ud.call(this,null,e)}No(_N,ud,{transform(e,t){if(this.value&&!t.changed()&&!e.modified())return t.StopPropagation;var n,r=t.fork(t.NO_SOURCE|t.NO_FIELDS),i=function(e,t){var n,r,i,o,a,s,l=[],c=e=>e(o);if(null==t)l.push(e);else for(n={},r=0,i=e.length;rNh(function(e,t){for(let n=0;nSP})).map(l)).concat(rT(AP(o/f)*f,i,f).filter((function(e){return DP(e%m)>SP})).map(c))}return v.lines=function(){return y().map((function(e){return{type:"LineString",coordinates:e}}))},v.outline=function(){return{type:"Polygon",coordinates:[u(r).concat(h(a).slice(1),u(n).reverse().slice(1),h(s).reverse().slice(1))]}},v.extent=function(e){return arguments.length?v.extentMajor(e).extentMinor(e):v.extentMinor()},v.extentMajor=function(e){return arguments.length?(r=+e[0][0],n=+e[1][0],s=+e[0][1],a=+e[1][1],r>n&&(e=r,r=n,n=e),s>a&&(e=s,s=a,a=e),v.precision(g)):[[r,s],[n,a]]},v.extentMinor=function(n){return arguments.length?(t=+n[0][0],e=+n[1][0],o=+n[0][1],i=+n[1][1],t>e&&(n=t,t=e,e=n),o>i&&(n=o,o=i,i=n),v.precision(g)):[[t,o],[e,i]]},v.step=function(e){return arguments.length?v.stepMajor(e).stepMinor(e):v.stepMinor()},v.stepMajor=function(e){return arguments.length?(p=+e[0],m=+e[1],v):[p,m]},v.stepMinor=function(e){return arguments.length?(d=+e[0],f=+e[1],v):[d,f]},v.precision=function(d){return arguments.length?(g=+d,l=TP(o,i,90),c=MP(t,e,g),u=TP(s,a,90),h=MP(r,n,g),v):g},v.extentMajor([[-180,-89.999999],[180,89.999999]]).extentMinor([[-180,-80.000001],[180,80.000001]])}()}function PN(e){ud.call(this,null,e)}function NN(e){if(!yo(e))return!1;const t=ea(Ei(e));return t.$x||t.$y||t.$value||t.$max}function IN(e){ud.call(this,null,e),this.modified(!0)}function BN(e,t,n){yo(e[t])&&e[t](n)}function jN(e,t,n,r){if(isNaN(t)||isNaN(n))return e;var i,o,a,s,l,c,u,h,d,f=e._root,p={data:r},m=e._x0,g=e._y0,v=e._x1,y=e._y1;if(!f)return e._root=p,e;for(;f.length;)if((c=t>=(o=(m+v)/2))?m=o:v=o,(u=n>=(a=(g+y)/2))?g=a:y=a,i=f,!(f=f[h=u<<1|c]))return i[h]=p,e;if(s=+e._x.call(null,f.data),l=+e._y.call(null,f.data),t===s&&n===l)return p.next=f,i?i[h]=p:e._root=p,e;do{i=i?i[h]=new Array(4):e._root=new Array(4),(c=t>=(o=(m+v)/2))?m=o:v=o,(u=n>=(a=(g+y)/2))?g=a:y=a}while((h=u<<1|c)==(d=(l>=a)<<1|s>=o));return i[d]=f,i[h]=p,e}function LN(e,t,n,r,i){this.node=e,this.x0=t,this.y0=n,this.x1=r,this.y1=i}function zN(e){return e[0]}function RN(e){return e[1]}function $N(e,t,n){var r=new HN(null==t?zN:t,null==n?RN:n,NaN,NaN,NaN,NaN);return null==e?r:r.addAll(e)}function HN(e,t,n,r,i,o){this._x=e,this._y=t,this._x0=n,this._y0=r,this._x1=i,this._y1=o,this._root=void 0}function UN(e){for(var t={data:e.data},n=t;e=e.next;)n=n.next={data:e.data};return t}AN.Definition={type:"GeoJSON",metadata:{},params:[{name:"fields",type:"field",array:!0,length:2},{name:"geojson",type:"field"}]},No(AN,ud,{transform(e,t){var n,r=this._features,i=this._points,o=e.fields,a=o&&o[0],s=o&&o[1],l=e.geojson||!o&&Fi,c=t.ADD;n=e.modified()||t.changed(t.REM)||t.modified(Ei(l))||a&&t.modified(Ei(a))||s&&t.modified(Ei(s)),this.value&&!n||(c=t.SOURCE,this._features=r=[],this._points=i=[]),l&&t.visit(c,(e=>r.push(l(e)))),a&&s&&(t.visit(c,(e=>{var t=a(e),n=s(e);null!=t&&null!=n&&(t=+t)===t&&(n=+n)===n&&i.push([t,n])})),r=r.concat({type:SN,geometry:{type:"MultiPoint",coordinates:i}})),this.value={type:DN,features:r}}}),TN.Definition={type:"GeoPath",metadata:{modifies:!0},params:[{name:"projection",type:"projection"},{name:"field",type:"field"},{name:"pointRadius",type:"number",expr:!0},{name:"as",type:"string",default:"path"}]},No(TN,ud,{transform(e,t){var n=t.fork(t.ALL),r=this.value,i=e.field||Fi,o=e.as||"path",a=n.SOURCE;!r||e.modified()?(this.value=r=EP(e.projection),n.materialize().reflow()):a=i===Fi||t.modified(i.fields)?n.ADD_MOD:n.ADD;const s=function(e,t){const n=e.pointRadius();return e.context(null),null!=t&&e.pointRadius(t),n}(r,e.pointRadius);return n.visit(a,(e=>e[o]=r(i(e)))),r.pointRadius(s),n.modifies(o)}}),MN.Definition={type:"GeoPoint",metadata:{modifies:!0},params:[{name:"projection",type:"projection",required:!0},{name:"fields",type:"field",array:!0,required:!0,length:2},{name:"as",type:"string",array:!0,length:2,default:["x","y"]}]},No(MN,ud,{transform(e,t){var n,r=e.projection,i=e.fields[0],o=e.fields[1],a=e.as||["x","y"],s=a[0],l=a[1];function c(e){const t=r([i(e),o(e)]);t?(e[s]=t[0],e[l]=t[1]):(e[s]=void 0,e[l]=void 0)}return e.modified()?t=t.materialize().reflow(!0).visit(t.SOURCE,c):(n=t.modified(i.fields)||t.modified(o.fields),t.visit(n?t.ADD_MOD:t.ADD,c)),t.modifies(a)}}),ON.Definition={type:"GeoShape",metadata:{modifies:!0,nomod:!0},params:[{name:"projection",type:"projection"},{name:"field",type:"field",default:"datum"},{name:"pointRadius",type:"number",expr:!0},{name:"as",type:"string",default:"shape"}]},No(ON,ud,{transform(e,t){var n=t.fork(t.ALL),r=this.value,i=e.as||"shape",o=n.ADD;return r&&!e.modified()||(this.value=r=function(e,t,n){const r=null==n?n=>e(t(n)):r=>{var i=e.pointRadius(),o=e.pointRadius(n)(t(r));return e.pointRadius(i),o};return r.context=t=>(e.context(t),r),r}(EP(e.projection),e.field||Mi("datum"),e.pointRadius),n.materialize().reflow(),o=n.SOURCE),n.visit(o,(e=>e[i]=r)),n.modifies(i)}}),FN.Definition={type:"Graticule",metadata:{changes:!0,generates:!0},params:[{name:"extent",type:"array",array:!0,length:2,content:{type:"number",array:!0,length:2}},{name:"extentMajor",type:"array",array:!0,length:2,content:{type:"number",array:!0,length:2}},{name:"extentMinor",type:"array",array:!0,length:2,content:{type:"number",array:!0,length:2}},{name:"step",type:"number",array:!0,length:2},{name:"stepMajor",type:"number",array:!0,length:2,default:[90,360]},{name:"stepMinor",type:"number",array:!0,length:2,default:[10,10]},{name:"precision",type:"number",default:2.5}]},No(FN,ud,{transform(e,t){var n,r=this.value,i=this.generator;if(!r.length||e.modified())for(const t in e)yo(i[t])&&i[t](e[t]);return n=i(),r.length?t.mod.push(jh(r[0],n)):t.add.push(Nh(n)),r[0]=n,t}}),PN.Definition={type:"heatmap",metadata:{modifies:!0},params:[{name:"field",type:"field"},{name:"color",type:"string",expr:!0},{name:"opacity",type:"number",expr:!0},{name:"resolve",type:"enum",values:["shared","independent"],default:"independent"},{name:"as",type:"string",default:"image"}]},No(PN,ud,{transform(e,t){if(!t.changed()&&!e.modified())return t.StopPropagation;var n=t.materialize(t.SOURCE).source,r="shared"===e.resolve,i=e.field||Fi,o=function(e,t){let n;return yo(e)?(n=n=>e(n,t),n.dep=NN(e)):e?n=Eo(e):(n=e=>e.$value/e.$max||0,n.dep=!0),n}(e.opacity,e),a=function(e,t){let n;return yo(e)?(n=n=>QP(e(n,t)),n.dep=NN(e)):n=Eo(QP(e||"#888")),n}(e.color,e),s=e.as||"image",l={$x:0,$y:0,$value:0,$max:r?iT(n.map((e=>iT(i(e).values)))):0};return n.forEach((e=>{const t=i(e),n=So({},e,l);r||(n.$max=iT(t.values||[])),e[s]=function(e,t,n,r){const i=e.width,o=e.height,a=e.x1||0,s=e.y1||0,l=e.x2||i,c=e.y2||o,u=e.values,h=u?e=>u[e]:Pi,d=cg(l-a,c-s),f=d.getContext("2d"),p=f.getImageData(0,0,l-a,c-s),m=p.data;for(let e=s,o=0;e{null!=e[t]&&BN(n,t,e[t])}))):wP.forEach((t=>{e.modified(t)&&BN(n,t,e[t])})),null!=e.pointRadius&&n.path.pointRadius(e.pointRadius),e.fit&&function(e,t){const n=function(e){return 1===(e=go(e)).length?e[0]:{type:DN,features:e.reduce(((e,t)=>e.concat(function(e){return e.type===DN?e.features:go(e).filter((e=>null!=e)).map((e=>e.type===SN?e:{type:SN,geometry:e}))}(t))),[])}}(t.fit);t.extent?e.fitExtent(t.extent,n):t.size&&e.fitSize(t.size,n)}(n,e),t.fork(t.NO_SOURCE|t.NO_FIELDS)}});var qN=$N.prototype=HN.prototype;function WN(e){return function(){return e}}function VN(e){return 1e-6*(e()-.5)}function GN(e){return e.x+e.vx}function XN(e){return e.y+e.vy}qN.copy=function(){var e,t,n=new HN(this._x,this._y,this._x0,this._y0,this._x1,this._y1),r=this._root;if(!r)return n;if(!r.length)return n._root=UN(r),n;for(e=[{source:r,target:n._root=new Array(4)}];r=e.pop();)for(var i=0;i<4;++i)(t=r.source[i])&&(t.length?e.push({source:t,target:r.target[i]=new Array(4)}):r.target[i]=UN(t));return n},qN.add=function(e){var t=+this._x.call(null,e),n=+this._y.call(null,e);return jN(this.cover(t,n),t,n,e)},qN.addAll=function(e){var t,n,r,i,o=e.length,a=new Array(o),s=new Array(o),l=1/0,c=1/0,u=-1/0,h=-1/0;for(n=0;nu&&(u=r),ih&&(h=i));if(l>u||c>h)return this;for(this.cover(l,c).cover(u,h),n=0;ne||e>=i||r>t||t>=o;)switch(s=(td||(o=l.y0)>f||(a=l.x1)=v)<<1|e>=g)&&(l=p[p.length-1],p[p.length-1]=p[p.length-1-c],p[p.length-1-c]=l)}else{var y=e-+this._x.call(null,m.data),b=t-+this._y.call(null,m.data),x=y*y+b*b;if(x=(s=(p+g)/2))?p=s:g=s,(u=a>=(l=(m+v)/2))?m=l:v=l,t=f,!(f=f[h=u<<1|c]))return this;if(!f.length)break;(t[h+1&3]||t[h+2&3]||t[h+3&3])&&(n=t,d=h)}for(;f.data!==e;)if(r=f,!(f=f.next))return this;return(i=f.next)&&delete f.next,r?(i?r.next=i:delete r.next,this):t?(i?t[h]=i:delete t[h],(f=t[0]||t[1]||t[2]||t[3])&&f===(t[3]||t[2]||t[1]||t[0])&&!f.length&&(n?n[d]=f:this._root=f),this):(this._root=i,this)},qN.removeAll=function(e){for(var t=0,n=e.length;tc+p||ou+p||al.index){var m=c-s.x-s.vx,g=u-s.y-s.vy,v=m*m+g*g;ve.r&&(e.r=e[t].r)}function l(){if(t){var r,i,o=t.length;for(n=new Array(o),r=0;r=s)){(e.data!==t||e.next)&&(0===h&&(p+=(h=VN(n))*h),0===d&&(p+=(d=VN(n))*d),p[s(e,t,r),e])));for(a=0,i=new Array(c);at(e,n):t)}function hI(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function dI(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=pI)):void 0===t&&(t=fI);for(var n,r,i,o,a,s=new vI(e),l=[s];n=l.pop();)if((i=t(n.data))&&(a=(i=Array.from(i)).length))for(n.children=i,o=a-1;o>=0;--o)l.push(r=i[o]=new vI(i[o])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(gI)}function fI(e){return e.children}function pI(e){return Array.isArray(e)?e[1]:null}function mI(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function gI(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function vI(e){this.data=e,this.depth=this.height=0,this.parent=null}function yI(e,t){var n,r;if(wI(t,e))return[t];for(n=0;n0&&n*n>r*r+i*i}function wI(e,t){for(var n=0;n(a*=a)?(r=(c+a-i)/(2*c),o=Math.sqrt(Math.max(0,a/c-r*r)),n.x=e.x-r*s-o*l,n.y=e.y-r*l+o*s):(r=(c+i-a)/(2*c),o=Math.sqrt(Math.max(0,i/c-r*r)),n.x=t.x+r*s-o*l,n.y=t.y+r*l+o*s)):(n.x=t.x+n.r,n.y=t.y)}function SI(e,t){var n=e.r+t.r-1e-6,r=t.x-e.x,i=t.y-e.y;return n>0&&n*n>r*r+i*i}function DI(e){var t=e._,n=e.next._,r=t.r+n.r,i=(t.x*n.r+n.x*t.r)/r,o=(t.y*n.r+n.y*t.r)/r;return i*i+o*o}function AI(e){this._=e,this.next=null,this.previous=null}function TI(e){if(!(o=(t=e,e="object"==typeof t&&"length"in t?t:Array.from(t)).length))return 0;var t,n,r,i,o,a,s,l,c,u,h,d;if((n=e[0]).x=0,n.y=0,!(o>1))return n.r;if(r=e[1],n.x=-r.r,r.x=n.r,r.y=0,!(o>2))return n.r+r.r;CI(r,n,i=e[2]),n=new AI(n),r=new AI(r),i=new AI(i),n.next=i.previous=r,r.next=n.previous=i,i.next=r.previous=n;e:for(l=3;l(e=(1664525*e+1013904223)%YN)/YN}();function h(){d(),c.call("tick",t),n1?(null==n?s.delete(e):s.set(e,p(n)),t):s.get(e)},find:function(t,n,r){var i,o,a,s,l,c=0,u=e.length;for(null==r?r=1/0:r*=r,c=0;c1?(c.on(e,n),t):c.on(e)}}}(e),r=n.stop,i=n.restart;let o=!1;return n.stopped=()=>o,n.restart=()=>(o=!1,i()),n.stop=()=>(o=!0,r()),sI(n,t,!0).on("end",(()=>o=!0))}(t.source,e),i.on("tick",(n=t.dataflow,r=this,()=>n.touch(r).run())),e.static||(o=!0,i.tick()),t.modifies("index")),a||o||e.modified(iI)||t.changed()&&e.restart)if(i.alpha(Math.max(i.alpha(),e.alpha||1)).alphaDecay(1-Math.pow(i.alphaMin(),1/s)),e.static)for(i.stop();--s>=0;)i.tick();else if(i.stopped()&&i.restart(),!o)return t.StopPropagation;return this.finish(e,t)},finish(e,t){const n=t.dataflow;for(let e,t=this._argops,s=0,l=t.length;s=0;--r)o.push(n[r]);return this},find:function(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r},sum:function(e){return this.eachAfter((function(t){for(var n=+e(t.data)||0,r=t.children,i=r&&r.length;--i>=0;)n+=r[i].value;t.value=n}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),i=null;for(e=n.pop(),t=r.pop();e===t;)i=e,e=n.pop(),t=r.pop();return i}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var i=r.length;e!==n;)r.splice(i,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(n){n!==e&&t.push({source:n.parent,target:n})})),t},copy:function(){return dI(this).eachBefore(mI)},[Symbol.iterator]:function*(){var e,t,n,r,i=this,o=[i];do{for(e=o.reverse(),o=[];i=e.pop();)if(yield i,t=i.children)for(n=0,r=t.length;n0)throw new Error("cycle");return o}return n.id=function(t){return arguments.length?(e=OI(t),n):e},n.parentId=function(e){return arguments.length?(t=OI(e),n):t},n}function WI(e,t){return e.parent===t.parent?1:2}function VI(e){var t=e.children;return t?t[0]:e.t}function GI(e){var t=e.children;return t?t[t.length-1]:e.t}function XI(e,t,n){var r=n/(t.i-e.i);t.c-=r,t.s+=n,e.c+=r,t.z+=n,t.m+=n}function YI(e,t,n){return e.a.parent===t.parent?e.a:n}function JI(e,t){this._=e,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=t}function ZI(e,t){return e.parent===t.parent?1:2}function KI(e,t){return e+t.x}function QI(e,t){return Math.max(e,t.y)}function eB(e,t,n,r,i){for(var o,a=e.children,s=-1,l=a.length,c=e.value&&(i-n)/e.value;++sd&&(d=s),g=u*u*m,(f=Math.max(d/g,g/h))>p){u-=s;break}p=f}v.push(a={value:u,dice:l1?t:1)},n}(tB),iB=function e(t){function n(e,n,r,i,o){if((a=e._squarify)&&a.ratio===t)for(var a,s,l,c,u,h=-1,d=a.length,f=e.value;++h1?t:1)},n}(tB);function oB(e,t,n){const r={};return e.each((e=>{const i=e.data;n(i)&&(r[t(i)]=e)})),e.lookup=r,e}function aB(e){ud.call(this,null,e)}aB.Definition={type:"Nest",metadata:{treesource:!0,changes:!0},params:[{name:"keys",type:"field",array:!0},{name:"generate",type:"boolean"}]};const sB=e=>e.values;function lB(){const e=[],t={entries:e=>r(n(e,0),0),key:n=>(e.push(n),t)};function n(t,r){if(r>=e.length)return t;const i=t.length,o=e[r++],a={},s={};let l,c,u,h=-1;for(;++he.length)return t;const i=[];for(const e in t)i.push({key:e,values:r(t[e],n)});return i}return t}function cB(e){ud.call(this,null,e)}No(aB,ud,{transform(e,t){t.source||Ai("Nest transform requires an upstream data source.");var n=e.generate,r=e.modified(),i=t.clone(),o=this.value;return(!o||r||t.changed())&&(o&&o.each((e=>{e.children&&Oh(e.data)&&i.rem.push(e.data)})),this.value=o=dI({values:go(e.keys).reduce(((e,t)=>(e.key(t),e)),lB()).entries(i.source)},sB),n&&o.each((e=>{e.children&&(e=Nh(e.data),i.add.push(e),i.source.push(e))})),oB(o,Fh,Fh)),i.source.root=o,i}});const uB=(e,t)=>e.parent===t.parent?1:2;No(cB,ud,{transform(e,t){t.source&&t.source.root||Ai(this.constructor.name+" transform requires a backing tree data source.");const n=this.layout(e.method),r=this.fields,i=t.source.root,o=e.as||r;e.field?i.sum(e.field):i.count(),e.sort&&i.sort(Lh(e.sort,(e=>e.data))),function(e,t,n){for(let r,i=0,o=t.length;ifunction(e,t,n){const r=e.data,i=t.length-1;for(let o=0;o=0;--i)s.push(n=t.children[i]=new JI(r[i],i)),n.parent=t;return(a.parent=new JI(null,0)).children=[a],a}(i);if(l.eachAfter(o),l.parent.m=-l.z,l.eachBefore(a),r)i.eachBefore(s);else{var c=i,u=i,h=i;i.eachBefore((function(e){e.xu.x&&(u=e),e.depth>h.depth&&(h=e)}));var d=c===u?1:e(c,u)/2,f=d-c.x,p=t/(u.x+d+f),m=n/(h.depth||1);i.eachBefore((function(e){e.x=(e.x+f)*p,e.y=e.depth*m}))}return i}function o(t){var n=t.children,r=t.parent.children,i=t.i?r[t.i-1]:null;if(n){!function(e){for(var t,n=0,r=0,i=e.children,o=i.length;--o>=0;)(t=i[o]).z+=n,t.m+=n,n+=t.s+(r+=t.c)}(t);var o=(n[0].z+n[n.length-1].z)/2;i?(t.z=i.z+e(t._,i._),t.m=t.z-o):t.z=o}else i&&(t.z=i.z+e(t._,i._));t.parent.A=function(t,n,r){if(n){for(var i,o=t,a=t,s=n,l=o.parent.children[0],c=o.m,u=a.m,h=s.m,d=l.m;s=GI(s),o=VI(o),s&&o;)l=VI(l),(a=GI(a)).a=t,(i=s.z+h-o.z-c+e(s._,o._))>0&&(XI(YI(s,t,r),t,i),c+=i,u+=i),h+=s.m,c+=o.m,d+=l.m,u+=a.m;s&&!GI(a)&&(a.t=s,a.m+=h-u),o&&!VI(l)&&(l.t=o,l.m+=c-d,r=t)}return r}(t,i,t.parent.A||r[0])}function a(e){e._.x=e.z+e.parent.m,e.m+=e.parent.m}function s(e){e.x*=t,e.y=e.depth*n}return i.separation=function(t){return arguments.length?(e=t,i):e},i.size=function(e){return arguments.length?(r=!1,t=+e[0],n=+e[1],i):r?null:[t,n]},i.nodeSize=function(e){return arguments.length?(r=!0,t=+e[0],n=+e[1],i):r?[t,n]:null},i},cluster:function(){var e=ZI,t=1,n=1,r=!1;function i(i){var o,a=0;i.eachAfter((function(t){var n=t.children;n?(t.x=function(e){return e.reduce(KI,0)/e.length}(n),t.y=function(e){return 1+e.reduce(QI,0)}(n)):(t.x=o?a+=e(t,o):0,t.y=0,o=t)}));var s=function(e){for(var t;t=e.children;)e=t[0];return e}(i),l=function(e){for(var t;t=e.children;)e=t[t.length-1];return e}(i),c=s.x-e(s,l)/2,u=l.x+e(l,s)/2;return i.eachAfter(r?function(e){e.x=(e.x-i.x)*t,e.y=(i.y-e.y)*n}:function(e){e.x=(e.x-c)/(u-c)*t,e.y=(1-(i.y?e.y/i.y:1))*n})}return i.separation=function(t){return arguments.length?(e=t,i):e},i.size=function(e){return arguments.length?(r=!1,t=+e[0],n=+e[1],i):r?null:[t,n]},i.nodeSize=function(e){return arguments.length?(r=!0,t=+e[0],n=+e[1],i):r?[t,n]:null},i}},vB=["x","y","depth","children"];function yB(e){cB.call(this,e)}function bB(e){ud.call(this,[],e)}yB.Definition={type:"Tree",metadata:{tree:!0,modifies:!0},params:[{name:"field",type:"field"},{name:"sort",type:"compare"},{name:"method",type:"enum",default:"tidy",values:["tidy","cluster"]},{name:"size",type:"number",array:!0,length:2},{name:"nodeSize",type:"number",array:!0,length:2},{name:"separation",type:"boolean",default:!0},{name:"as",type:"string",array:!0,length:vB.length,default:vB}]},No(yB,cB,{layout(e){const t=e||"tidy";if(Mo(gB,t))return gB[t]();Ai("Unrecognized Tree layout method: "+t)},params:["size","nodeSize"],fields:vB}),bB.Definition={type:"TreeLinks",metadata:{tree:!0,generates:!0,changes:!0},params:[]},No(bB,ud,{transform(e,t){const n=this.value,r=t.source&&t.source.root,i=t.fork(t.NO_SOURCE),o={};return r||Ai("TreeLinks transform requires a tree data source."),t.changed(t.ADD_REM)?(i.rem=n,t.visit(t.SOURCE,(e=>o[Fh(e)]=1)),r.each((e=>{const t=e.data,n=e.parent&&e.parent.data;n&&o[Fh(t)]&&o[Fh(n)]&&i.add.push(Nh({source:n,target:t}))})),this.value=i.add):t.changed(t.MOD)&&(t.visit(t.MOD,(e=>o[Fh(e)]=1)),n.forEach((e=>{(o[Fh(e.source)]||o[Fh(e.target)])&&i.mod.push(e)}))),i}});const xB={binary:function(e,t,n,r,i){var o,a,s=e.children,l=s.length,c=new Array(l+1);for(c[0]=a=o=0;o=n-1){var u=s[t];return u.x0=i,u.y0=o,u.x1=a,void(u.y1=l)}for(var h=c[t],d=r/2+h,f=t+1,p=n-1;f>>1;c[m]l-o){var y=r?(i*v+a*g)/r:a;e(t,f,g,i,o,y,l),e(f,n,v,y,o,a,l)}else{var b=r?(o*v+l*g)/r:l;e(t,f,g,i,o,a,b),e(f,n,v,i,b,a,l)}}(0,l,e.value,t,n,r,i)},dice:zI,slice:eB,slicedice:function(e,t,n,r,i){(1&e.depth?eB:zI)(e,t,n,r,i)},squarify:rB,resquarify:iB},wB=["x0","y0","x1","y1","depth","children"];function _B(e){cB.call(this,e)}function kB(e,t,n,r){const i=e.width,o=e.height,a=n||r,s=cg(i,o).getContext("2d");t.forEach((e=>EB(s,e,a)));const l=new Uint32Array(s.getImageData(0,0,i,o).data.buffer),c=e.bitmap(),u=a&&e.bitmap();let h,d,f,p,m;for(d=0;d{t.items.forEach((t=>EB(e,t.items,n)))})):wC[r].draw(e,{items:n?t.map(CB):t})}function CB(e){const t=Bh(e,{});return t.stroke&&(t.strokeOpacity=1),t.fill&&(t.fillOpacity=.0625,t.stroke="#000",t.strokeOpacity=1,t.strokeWidth=2),t}_B.Definition={type:"Treemap",metadata:{tree:!0,modifies:!0},params:[{name:"field",type:"field"},{name:"sort",type:"compare"},{name:"method",type:"enum",default:"squarify",values:["squarify","resquarify","binary","dice","slice","slicedice"]},{name:"padding",type:"number",default:0},{name:"paddingInner",type:"number",default:0},{name:"paddingOuter",type:"number",default:0},{name:"paddingTop",type:"number",default:0},{name:"paddingRight",type:"number",default:0},{name:"paddingBottom",type:"number",default:0},{name:"paddingLeft",type:"number",default:0},{name:"ratio",type:"number",default:1.618033988749895},{name:"round",type:"boolean",default:!1},{name:"size",type:"number",array:!0,length:2},{name:"as",type:"string",array:!0,length:wB.length,default:wB}]},No(_B,cB,{layout(){const e=function(){var e=rB,t=!1,n=1,r=1,i=[0],o=FI,a=FI,s=FI,l=FI,c=FI;function u(e){return e.x0=e.y0=0,e.x1=n,e.y1=r,e.eachBefore(h),i=[0],t&&e.eachBefore(LI),e}function h(t){var n=i[t.depth],r=t.x0+n,u=t.y0+n,h=t.x1-n,d=t.y1-n;h{const n=e.tile();n.ratio&&e.tile(n.ratio(t))},e.method=t=>{Mo(xB,t)?e.tile(xB[t]):Ai("Unrecognized Treemap layout method: "+t)},e},params:["method","ratio","size","round","padding","paddingInner","paddingOuter","paddingTop","paddingRight","paddingBottom","paddingLeft"],fields:wB});const SB=31,DB=new Uint32Array(33),AB=new Uint32Array(33);AB[0]=0,DB[0]=~AB[0];for(let e=1;e<=32;++e)AB[e]=AB[e-1]<<1|1,DB[e]=~AB[e];function TB(e,t,n,r,i,o){let a=n/2;return e-a<0||e+a>i||t-(a=r/2)<0||t+a>o}function MB(){return!1}function OB(e,t,n,r,i,o,a,s){const l=i*o/(2*r),c=e(t-l),u=e(t+l),h=e(n-(o/=2)),d=e(n+o);return a.outOfBounds(c,h,u,d)||a.getRange(c,h,u,d)||s&&s.getRange(c,h,u,d)}function FB(e,t,n,r,i,o,a,s){const l=i*o/(2*r);let c=e(t-l),u=e(t+l),h=e(n-(o/=2)),d=e(n+o);return c=c>0?c:0,h=h>0?h:0,u=u=m&&(m=p,e.x=d,e.y=f);return d=s/2,f=a/2,l=e.x-d,c=e.x+d,u=e.y-f,h=e.y+f,e.align="center",l<0&&c<=i?e.align="left":0<=l&&i=1;)p=(m+g)/2,s(e,d,f,h,i,p,c,u)?g=p:m=p;if(m>r)return[d,f,m,!0]}}return function(t){const i=t.datum.datum.items[r].items,u=i.length,d=t.datum.fontSize,f=tC.width(t.datum,t.datum.text);let p,m,g,v,y,b,x,w,_,k,E,C,S,D,A,T,M,O=n?d:0,F=!1,P=!1,N=0;for(let r=0;rm&&(M=p,p=m,m=M),g>v&&(M=g,g=v,v=M),_=e(p),E=e(m),k=~~((_+E)/2),C=e(g),D=e(v),S=~~((C+D)/2),x=k;x>=_;--x)for(w=S;w>=C;--w)T=h(x,w,O,f,d),T&&([t.x,t.y,O,F]=T);for(x=k;x<=E;++x)for(w=S;w<=D;++w)T=h(x,w,O,f,d),T&&([t.x,t.y,O,F]=T);F||n||(A=Math.abs(m-p+v-g),y=(p+m)/2,b=(g+v)/2,A>=N&&!l(y,b,f,d,o,a)&&!s(e,y,b,d,f,d,c,null)&&(N=A,t.x=y,t.y=b,P=!0))}return!(!F&&!P||(y=f/2,b=d/2,c.setRange(e(t.x-y),e(t.y-b),e(t.x+y),e(t.y+b)),t.align="center",t.baseline="middle",0))}},floodfill:function(e,t,n,r,i){const o=e.width,a=e.height,[s,l]=PB(i),c=t[0],u=t[1],h=e.bitmap();return function(t){const i=t.datum.datum.items[r].items,d=i.length,f=t.datum.fontSize,p=tC.width(t.datum,t.datum.text),m=[];let g,v,y,b,x,w,_,k,E,C,S,D,A=n?f:0,T=!1,M=!1,O=0;for(let r=0;r=1;)S=(E+C)/2,s(e,x,w,f,p,S,c,u)?C=S:E=S;E>A&&(t.x=x,t.y=w,A=E,T=!0)}}T||n||(D=Math.abs(v-g+b-y),x=(g+v)/2,w=(y+b)/2,D>=O&&!l(x,w,p,f,o,a)&&!s(e,x,w,f,p,f,c,null)&&(O=D,t.x=x,t.y=w,M=!0))}return!(!T&&!M||(x=p/2,w=f/2,c.setRange(e(t.x-x),e(t.y-w),e(t.x+x),e(t.y+w)),t.align="center",t.baseline="middle",0))}}};function $B(e,t,n,r,i,o,a,s,l,c,u){if(!e.length)return e;const h=Math.max(r.length,i.length),d=function(e,t){const n=new Float64Array(t),r=e.length;for(let t=0;t[e.x,e.x,e.x,e.y,e.y,e.y];return e?"line"===e||"area"===e?e=>i(e.datum):"line"===t?e=>{const t=e.datum.items[r].items;return i(t.length?t["start"===n?0:t.length-1]:{x:NaN,y:NaN})}:e=>{const t=e.datum.bounds;return[t.x1,(t.x1+t.x2)/2,t.x2,t.y1,(t.y1+t.y2)/2,t.y2]}:i}(p,m,s,l),y=null===c||c===1/0,b=function(e,t,n){const r=Math.max(1,Math.sqrt(e*t/1e6)),i=~~((e+2*n+r)/r),o=~~((t+2*n+r)/r),a=e=>~~((e+n)/r);return a.invert=e=>e*r-n,a.bitmap=()=>function(e,t){const n=new Uint32Array(~~((e*t+32)/32));function r(e,t){n[e]|=t}function i(e,t){n[e]&=t}return{array:n,get:(t,r)=>{const i=r*e+t;return n[i>>>5]&1<<(i&SB)},set:(t,n)=>{const i=n*e+t;r(i>>>5,1<<(i&SB))},clear:(t,n)=>{const r=n*e+t;i(r>>>5,~(1<<(r&SB)))},getRange:(t,r,i,o)=>{let a,s,l,c,u=o;for(;u>=r;--u)if(a=u*e+t,s=u*e+i,l=a>>>5,c=s>>>5,l===c){if(n[l]&DB[a&SB]&AB[1+(s&SB)])return!0}else{if(n[l]&DB[a&SB])return!0;if(n[c]&AB[1+(s&SB)])return!0;for(let e=l+1;e{let a,s,l,c,u;for(;n<=o;++n)if(a=n*e+t,s=n*e+i,l=a>>>5,c=s>>>5,l===c)r(l,DB[a&SB]&AB[1+(s&SB)]);else for(r(l,DB[a&SB]),r(c,AB[1+(s&SB)]),u=l+1;u{let a,s,l,c,u;for(;n<=o;++n)if(a=n*e+t,s=n*e+r,l=a>>>5,c=s>>>5,l===c)i(l,AB[a&SB]|DB[1+(s&SB)]);else for(i(l,AB[a&SB]),i(c,DB[1+(s&SB)]),u=l+1;un<0||r<0||o>=t||i>=e}}(i,o),a.ratio=r,a.padding=n,a.width=e,a.height=t,a}(t[0],t[1],y?0:c),x=g&&"naive"===u;var w;const _=e.map((e=>({datum:e,opacity:0,x:void 0,y:void 0,align:void 0,baseline:void 0,boundary:v(e)})));let k;if(!x){n&&_.sort(((e,t)=>n(e.datum,t.datum)));let t=!1;for(let e=0;ee.datum))].concat(o)),k=o.length?kB(b,o,t,g):function(e,t){const n=e.bitmap();return(t||[]).forEach((t=>n.set(e(t.boundary[0]),e(t.boundary[3])))),[n,void 0]}(b,a&&_)}const E=g?RB[u](b,k,a,l,y):function(e,t,n,r,i){const o=e.width,a=e.height,s=t[0],l=t[1],c=r.length;return function(t){const u=t.boundary,h=t.datum.fontSize;if(!i&&(u[2]<0||u[5]<0||u[0]>o||u[3]>a))return!1;let d,f,p,m,g,v,y,b,x,w,_,k,E,C,S,D=0;for(let o=0;o>>2&3)-1,p=0===d&&0===f||r[o]<0,m=d&&f?Math.SQRT1_2:1,g=r[o]<0?-1:1,v=u[1+d]+r[o]*d*m,_=u[4+f]+g*h*f/2+r[o]*f*m,b=_-h/2,x=_+h/2,k=e(v),C=e(b),S=e(x),i&&(k=k<0?0:k,C=C<0?0:C,S=S>=e.height?e.height-1:S),!D){if(!LB(k,k,C,S,s,l,v,v,b,x,u,p))continue;D=tC.width(t.datum,t.datum.text)}if(w=v+g*D*d/2,v=w-D/2,y=w+D/2,k=e(v),E=e(y),i&&(k=k<0?0:k,E=E>=e.width?e.width-1:E),LB(k,E,C,S,s,l,v,y,b,x,u,p))return t.x=d?d*g<0?y:v:w,t.y=f?f*g<0?x:b:_,t.align=BB[d*g+1],t.baseline=jB[f*g+1],s.setRange(k,C,E,S),!0}return!1}}(b,k,f,d,y);return _.forEach((e=>e.opacity=+E(e))),_}const HB=["x","y","opacity","align","baseline"],UB=["top-left","left","bottom-left","top","bottom","top-right","right","bottom-right"];function qB(e){ud.call(this,null,e)}function WB(e,t){var n,r,i,o,a,s,l=[],c=function(e){return e(o)};if(null==t)l.push(e);else for(n={},r=0,i=e.length;r{const t=e.datum;t[r[0]]=e.x,t[r[1]]=e.y,t[r[2]]=e.opacity,t[r[3]]=e.align,t[r[4]]=e.baseline})),t.reflow(n).modifies(r)}}),VB.Definition={type:"Loess",metadata:{generates:!0},params:[{name:"x",type:"field",required:!0},{name:"y",type:"field",required:!0},{name:"groupby",type:"field",array:!0},{name:"bandwidth",type:"number",default:.3},{name:"as",type:"string",array:!0}]},No(VB,ud,{transform(e,t){const n=t.fork(t.NO_SOURCE|t.NO_FIELDS);if(!this.value||t.changed()||e.modified()){const r=WB(t.materialize(t.SOURCE).source,e.groupby),i=(e.groupby||[]).map(ki),o=i.length,a=e.as||[ki(e.x),ki(e.y)],s=[];r.forEach((t=>{hf(t,e.x,e.y,e.bandwidth||.3).forEach((e=>{const n={};for(let e=0;e"poly"===e?t:"quad"===e?2:1)(o,a),l=e.as||[ki(e.x),ki(e.y)],c=GB[o],u=[];let h=e.extent;Mo(GB,o)||Ai("Invalid regression method: "+o),null!=h&&"log"===o&&h[0]<=0&&(t.dataflow.warn("Ignoring extent with values <= 0 for log regression."),h=null),r.forEach((n=>{if(n.length<=s)return void t.dataflow.warn("Skipping regression with more parameters than data points.");const r=c(n,e.x,e.y,a);if(e.params)return void u.push(Nh({keys:n.dims,coef:r.coef,rSquared:r.rSquared}));const d=h||Do(n,e.x),f=e=>{const t={};for(let e=0;ef([e,r.predict(e)]))):mf(r.predict,d,25,200).forEach(f)})),this.value&&(n.rem=this.value),this.value=n.add=n.source=u}return n}});const YB=Math.pow(2,-52),JB=new Uint32Array(512);class ZB{static from(e,t=oj,n=aj){const r=e.length,i=new Float64Array(2*r);for(let o=0;o>1;if(t>0&&"number"!=typeof e[0])throw new Error("Expected coords to contain numbers.");this.coords=e;const n=Math.max(2*t-5,0);this._triangles=new Uint32Array(3*n),this._halfedges=new Int32Array(3*n),this._hashSize=Math.ceil(Math.sqrt(t)),this._hullPrev=new Uint32Array(t),this._hullNext=new Uint32Array(t),this._hullTri=new Uint32Array(t),this._hullHash=new Int32Array(this._hashSize).fill(-1),this._ids=new Uint32Array(t),this._dists=new Float64Array(t),this.update()}update(){const{coords:e,_hullPrev:t,_hullNext:n,_hullTri:r,_hullHash:i}=this,o=e.length>>1;let a=1/0,s=1/0,l=-1/0,c=-1/0;for(let t=0;tl&&(l=n),r>c&&(c=r),this._ids[t]=t}const u=(a+l)/2,h=(s+c)/2;let d,f,p,m=1/0;for(let t=0;t0&&(f=t,m=n)}let y=e[2*f],b=e[2*f+1],x=1/0;for(let t=0;tr&&(t[n++]=i,r=this._dists[i])}return this.hull=t.subarray(0,n),this.triangles=new Uint32Array(0),void(this.halfedges=new Uint32Array(0))}if(ej(g,v,y,b,w,_)){const e=f,t=y,n=b;f=p,y=w,b=_,p=e,w=t,_=n}const k=function(e,t,n,r,i,o){const a=n-e,s=r-t,l=i-e,c=o-t,u=a*a+s*s,h=l*l+c*c,d=.5/(a*c-s*l);return{x:e+(c*u-s*h)*d,y:t+(a*h-l*u)*d}}(g,v,y,b,w,_);this._cx=k.x,this._cy=k.y;for(let t=0;t0&&Math.abs(c-o)<=YB&&Math.abs(u-a)<=YB)continue;if(o=c,a=u,l===d||l===f||l===p)continue;let h=0;for(let e=0,t=this._hashKey(c,u);e0?3-n:1+n)/4}(e-this._cx,t-this._cy)*this._hashSize)%this._hashSize}_legalize(e){const{_triangles:t,_halfedges:n,coords:r}=this;let i=0,o=0;for(;;){const a=n[e],s=e-e%3;if(o=s+(e+2)%3,-1===a){if(0===i)break;e=JB[--i];continue}const l=a-a%3,c=s+(e+1)%3,u=l+(a+2)%3,h=t[o],d=t[e],f=t[c],p=t[u];if(tj(r[2*h],r[2*h+1],r[2*d],r[2*d+1],r[2*f],r[2*f+1],r[2*p],r[2*p+1])){t[e]=p,t[a]=h;const r=n[u];if(-1===r){let t=this._hullStart;do{if(this._hullTri[t]===u){this._hullTri[t]=e;break}t=this._hullPrev[t]}while(t!==this._hullStart)}this._link(e,r),this._link(a,n[o]),this._link(o,u);const s=l+(a+1)%3;i=33306690738754716e-32*Math.abs(a+s)?a-s:0}function ej(e,t,n,r,i,o){return(QB(i,o,e,t,n,r)||QB(e,t,n,r,i,o)||QB(n,r,i,o,e,t))<0}function tj(e,t,n,r,i,o,a,s){const l=e-a,c=t-s,u=n-a,h=r-s,d=i-a,f=o-s,p=u*u+h*h,m=d*d+f*f;return l*(h*m-p*f)-c*(u*m-p*d)+(l*l+c*c)*(u*f-h*d)<0}function nj(e,t,n,r,i,o){const a=n-e,s=r-t,l=i-e,c=o-t,u=a*a+s*s,h=l*l+c*c,d=.5/(a*c-s*l),f=(c*u-s*h)*d,p=(a*h-l*u)*d;return f*f+p*p}function rj(e,t,n,r){if(r-n<=20)for(let i=n+1;i<=r;i++){const r=e[i],o=t[r];let a=i-1;for(;a>=n&&t[e[a]]>o;)e[a+1]=e[a--];e[a+1]=r}else{let i=n+1,o=r;ij(e,n+r>>1,i),t[e[n]]>t[e[r]]&&ij(e,n,r),t[e[i]]>t[e[r]]&&ij(e,i,r),t[e[n]]>t[e[i]]&&ij(e,n,i);const a=e[i],s=t[a];for(;;){do{i++}while(t[e[i]]s);if(o=o-n?(rj(e,t,i,r),rj(e,t,n,o-1)):(rj(e,t,n,o-1),rj(e,t,i,r))}}function ij(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function oj(e){return e[0]}function aj(e){return e[1]}const sj=1e-6;class lj{constructor(){this._x0=this._y0=this._x1=this._y1=null,this._=""}moveTo(e,t){this._+=`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")}lineTo(e,t){this._+=`L${this._x1=+e},${this._y1=+t}`}arc(e,t,n){const r=(e=+e)+(n=+n),i=t=+t;if(n<0)throw new Error("negative radius");null===this._x1?this._+=`M${r},${i}`:(Math.abs(this._x1-r)>sj||Math.abs(this._y1-i)>sj)&&(this._+="L"+r+","+i),n&&(this._+=`A${n},${n},0,1,1,${e-n},${t}A${n},${n},0,1,1,${this._x1=r},${this._y1=i}`)}rect(e,t,n,r){this._+=`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${+n}v${+r}h${-n}Z`}value(){return this._||null}}class cj{constructor(){this._=[]}moveTo(e,t){this._.push([e,t])}closePath(){this._.push(this._[0].slice())}lineTo(e,t){this._.push([e,t])}value(){return this._.length?this._:null}}class uj{constructor(e,[t,n,r,i]=[0,0,960,500]){if(!((r=+r)>=(t=+t)&&(i=+i)>=(n=+n)))throw new Error("invalid bounds");this.delaunay=e,this._circumcenters=new Float64Array(2*e.points.length),this.vectors=new Float64Array(2*e.points.length),this.xmax=r,this.xmin=t,this.ymax=i,this.ymin=n,this._init()}update(){return this.delaunay.update(),this._init(),this}_init(){const{delaunay:{points:e,hull:t,triangles:n},vectors:r}=this,i=this.circumcenters=this._circumcenters.subarray(0,n.length/3*2);for(let t,r,o=0,a=0,s=n.length;o1;)i-=2;for(let e=2;e4)for(let e=0;e0){if(t>=this.ymax)return null;(i=(this.ymax-t)/r)0){if(e>=this.xmax)return null;(i=(this.xmax-e)/n)this.xmax?2:0)|(tthis.ymax?8:0)}}const hj=2*Math.PI,dj=Math.pow;function fj(e){return e[0]}function pj(e){return e[1]}function mj(e,t,n){return[e+Math.sin(e+t)*n,t+Math.cos(e-t)*n]}class gj{static from(e,t=fj,n=pj,r){return new gj("length"in e?function(e,t,n,r){const i=e.length,o=new Float64Array(2*i);for(let a=0;a2&&function(e){const{triangles:t,coords:n}=e;for(let e=0;e1e-10)return!1}return!0}(e)){this.collinear=Int32Array.from({length:t.length/2},((e,t)=>t)).sort(((e,n)=>t[2*e]-t[2*n]||t[2*e+1]-t[2*n+1]));const e=this.collinear[0],n=this.collinear[this.collinear.length-1],r=[t[2*e],t[2*e+1],t[2*n],t[2*n+1]],i=1e-8*Math.hypot(r[3]-r[1],r[2]-r[0]);for(let e=0,n=t.length/2;e0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=r[0],this.triangles[1]=r[1],this.triangles[2]=r[1],o[r[0]]=1,2===r.length&&(o[r[1]]=0))}voronoi(e){return new uj(this,e)}*neighbors(e){const{inedges:t,hull:n,_hullIndex:r,halfedges:i,triangles:o,collinear:a}=this;if(a){const t=a.indexOf(e);return t>0&&(yield a[t-1]),void(t=0&&i!==n&&i!==r;)n=i;return i}_step(e,t,n){const{inedges:r,hull:i,_hullIndex:o,halfedges:a,triangles:s,points:l}=this;if(-1===r[e]||!l.length)return(e+1)%(l.length>>1);let c=e,u=dj(t-l[2*e],2)+dj(n-l[2*e+1],2);const h=r[e];let d=h;do{let r=s[d];const h=dj(t-l[2*r],2)+dj(n-l[2*r+1],2);if(h>5<<5,l=~~Math.max(Math.abs(y+b),Math.abs(y-b))}else a=a+31>>5<<5;if(l>f&&(f=l),h+a>=2048&&(h=0,d+=f,f=0),d+l>=wj)break;i.translate((h+(a>>1))/o,(d+(l>>1))/o),t.rotate&&i.rotate(t.rotate*xj),i.fillText(t.text,0,0),t.padding&&(i.lineWidth=2*t.padding,i.strokeText(t.text,0,0)),i.restore(),t.width=a,t.height=l,t.xoff=h,t.yoff=d,t.x1=a>>1,t.y1=l>>1,t.x0=-t.x1,t.y0=-t.y1,t.hasText=!0,h+=a}for(var w=i.getImageData(0,0,2048/o,wj/o).data,_=[];--r>=0;)if((t=n[r]).hasText){for(s=(a=t.width)>>5,l=t.y1-t.y0,c=0;c>5),S=w[2048*(d+u)+(h+c)<<2]?1<<31-c%32:0;_[C]|=S,k|=S}k?E=u:(t.y0++,l--,u--,d++)}t.y1=t.y0+E,t.sprite=_.slice(0,(t.y1-t.y0)*s)}}}function kj(e,t,n){n>>=5;for(var r,i=e.sprite,o=e.width>>5,a=e.x-(o<<4),s=127&a,l=32-s,c=e.y1-e.y0,u=(e.y+e.y0)*n+(a>>5),h=0;h>>s:0))&t[u+d])return!0;u+=n}return!1}function Ej(e,t){var n=e[0],r=e[1];t.x+t.x0r.x&&(r.x=t.x+t.x1),t.y+t.y1>r.y&&(r.y=t.y+t.y1)}function Cj(e,t){return e.x+e.x1>t[0].x&&e.x+e.x0t[0].y&&e.y+e.y0=h));)if(t.x=a+i,t.y=c+o,!(t.x+t.x0<0||t.y+t.y0<0||t.x+t.x1>s[0]||t.y+t.y1>s[1])&&(!n||!kj(t,e,s[0]))&&(!n||Cj(t,n))){for(var m,g=t.sprite,v=t.width>>5,y=s[0]>>5,b=t.x-(v<<4),x=127&b,w=32-x,_=t.y1-t.y0,k=(t.y+t.y0)*y+(b>>5),E=0;E<_;E++){m=0;for(var C=0;C<=v;C++)e[k+C]|=m<>>x:0);k+=y}return t.sprite=null,!0}return!1}return h.layout=function(){for(var l=function(e){e.width=e.height=1;var t=Math.sqrt(e.getContext("2d").getImageData(0,0,1,1).data.length>>2);e.width=2048/t,e.height=wj/t;var n=e.getContext("2d");return n.fillStyle=n.strokeStyle="red",n.textAlign="center",{context:n,ratio:t}}(cg()),h=function(e){for(var t=[],n=-1;++n>5)*s[1]),f=null,p=c.length,m=-1,g=[],v=c.map((s=>({text:e(s),font:t(s),style:r(s),weight:i(s),rotate:o(s),size:~~(n(s)+1e-14),padding:a(s),xoff:0,yoff:0,x1:0,y1:0,x0:0,y0:0,hasText:!1,sprite:null,datum:s}))).sort(((e,t)=>t.size-e.size));++m>1,y.y=s[1]*(u()+.5)>>1,_j(l,y,v,m),y.hasText&&d(h,y,f)&&(g.push(y),f?Ej(f,y):f=[{x:y.x+y.x0,y:y.y+y.y0},{x:y.x+y.x1,y:y.y+y.y1}],y.x-=s[0]>>1,y.y-=s[1]>>1)}return g},h.words=function(e){return arguments.length?(c=e,h):c},h.size=function(e){return arguments.length?(s=[+e[0],+e[1]],h):s},h.font=function(e){return arguments.length?(t=Dj(e),h):t},h.fontStyle=function(e){return arguments.length?(r=Dj(e),h):r},h.fontWeight=function(e){return arguments.length?(i=Dj(e),h):i},h.rotate=function(e){return arguments.length?(o=Dj(e),h):o},h.text=function(t){return arguments.length?(e=Dj(t),h):e},h.spiral=function(e){return arguments.length?(l=Aj[e]||e,h):l},h.fontSize=function(e){return arguments.length?(n=Dj(e),h):n},h.padding=function(e){return arguments.length?(a=Dj(e),h):a},h.random=function(e){return arguments.length?(u=e,h):u},h}(),e)}function Fj(e,t){return et?1:e>=t?0:NaN}function Pj(e){let t=e,n=e;function r(e,t,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;n(e[o],t)<0?r=o+1:i=o}return r}return 1===e.length&&(t=(t,n)=>e(t)-n,n=function(e){return(t,n)=>Fj(e(t),n)}(e)),{left:r,center:function(e,n,i,o){null==i&&(i=0),null==o&&(o=e.length);const a=r(e,n,i,o-1);return a>i&&t(e[a-1],n)>-t(e[a],n)?a-1:a},right:function(e,t,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;n(e[o],t)>0?i=o:r=o+1}return r}}}Oj.Definition={type:"Wordcloud",metadata:{modifies:!0},params:[{name:"size",type:"number",array:!0,length:2},{name:"font",type:"string",expr:!0,default:"sans-serif"},{name:"fontStyle",type:"string",expr:!0,default:"normal"},{name:"fontWeight",type:"string",expr:!0,default:"normal"},{name:"fontSize",type:"number",expr:!0,default:14},{name:"fontSizeRange",type:"number",array:"nullable",default:[10,50]},{name:"rotate",type:"number",expr:!0,default:0},{name:"text",type:"field"},{name:"spiral",type:"string",values:["archimedean","rectangular"]},{name:"padding",type:"number",expr:!0},{name:"as",type:"string",array:!0,length:7,default:Tj}]},No(Oj,ud,{transform(e,t){!e.size||e.size[0]&&e.size[1]||Ai("Wordcloud size dimensions must be non-zero.");const n=e.modified();if(!(n||t.changed(t.ADD_REM)||Mj.some((function(n){const r=e[n];return yo(r)&&t.modified(r.fields)}))))return;const r=t.materialize(t.SOURCE).source,i=this.value,o=e.as||Tj;let a,s=e.fontSize||14;if(yo(s)?a=e.fontSizeRange:s=Eo(s),a){const e=s,t=Uw("sqrt")().domain(Do(r,e)).range(a);s=n=>t(e(n))}r.forEach((e=>{e[o[0]]=NaN,e[o[1]]=NaN,e[o[3]]=0}));const l=i.words(r).text(e.text).size(e.size||[500,500]).padding(e.padding||1).spiral(e.spiral||"archimedean").rotate(e.rotate||0).font(e.font||"sans-serif").fontStyle(e.fontStyle||"normal").fontWeight(e.fontWeight||"normal").fontSize(s).random(Dd).layout(),c=i.size(),u=c[0]>>1,h=c[1]>>1,d=l.length;for(let e,t,n=0;nnew Uint8Array(e),Lj=e=>new Uint16Array(e),zj=e=>new Uint32Array(e);function Rj(e,t,n){const r=(t<257?jj:t<65537?Lj:zj)(e);return n&&r.set(n),r}function $j(e,t,n){const r=1<{const r=e[t],i=e[n];return ri?1:0})),function(e,t){return Array.from(t,(t=>e[t]))}(e,t)}(d,l),a)c=t,u=e,t=Array(a+s),e=zj(a+s),function(e,t,n,r,i,o,a,s,l){let c,u=0,h=0;for(c=0;u0)for(h=0;he,size:()=>n}}function Uj(e){ud.call(this,function(){let e=8,t=[],n=zj(0),r=Rj(0,e),i=Rj(0,e);return{data:()=>t,seen:()=>n=function(e,t,n){return e.length>=t?e:((n=n||new e.constructor(t)).set(e),n)}(n,t.length),add(e){for(let n,r=0,i=t.length,o=e.length;rt.length,curr:()=>r,prev:()=>i,reset:e=>i[e]=r[e],all:()=>e<257?255:e<65537?65535:4294967295,set(e,t){r[e]|=t},clear(e,t){r[e]&=~t},resize(t,n){(t>r.length||n>e)&&(e=Math.max(n,e),r=Rj(t,e,r),i=Rj(t,e))}}}(),e),this._indices=null,this._dims=null}function qj(e){ud.call(this,null,e)}Uj.Definition={type:"CrossFilter",metadata:{},params:[{name:"fields",type:"field",array:!0,required:!0},{name:"query",type:"array",array:!0,required:!0,content:{type:"number",array:!0,length:2}}]},No(Uj,ud,{transform(e,t){return this._dims?e.modified("fields")||e.fields.some((e=>t.modified(e.fields)))?this.reinit(e,t):this.eval(e,t):this.init(e,t)},init(e,t){const n=e.fields,r=e.query,i=this._indices={},o=this._dims=[],a=r.length;let s,l,c=0;for(;c{const e=i.remove(t,n);for(const t in r)r[t].reindex(e)}))},update(e,t,n){const r=this._dims,i=e.query,o=t.stamp,a=r.length;let s,l,c=0;for(n.filters=0,l=0;lf)for(g=f,v=Math.min(h,p);gp)for(g=Math.max(h,p),v=d;gu)for(f=u,p=Math.min(l,h);fh)for(f=Math.max(l,h),p=c;fs[e]&n?null:a[e];return o.filter(o.MOD,c),i&i-1?(o.filter(o.ADD,(e=>{const t=s[e]&n;return!t&&t^l[e]&n?a[e]:null})),o.filter(o.REM,(e=>{const t=s[e]&n;return!t||t^t^l[e]&n?null:a[e]}))):(o.filter(o.ADD,c),o.filter(o.REM,(e=>(s[e]&n)===i?a[e]:null))),o.filter(o.SOURCE,(e=>c(e._index)))}});var Wj=Math.sqrt(50),Vj=Math.sqrt(10),Gj=Math.sqrt(2);const Xj="Literal",Yj="CallExpression";function Jj(e){this.type=e}var Zj,Kj,Qj,eL,tL;Jj.prototype.visit=function(e){let t,n,r;if(e(this))return 1;for(t=function(e){switch(e.type){case"ArrayExpression":return e.elements;case"BinaryExpression":case"LogicalExpression":return[e.left,e.right];case Yj:return[e.callee].concat(e.arguments);case"ConditionalExpression":return[e.test,e.consequent,e.alternate];case"MemberExpression":return[e.object,e.property];case"ObjectExpression":return e.properties;case"Property":return[e.key,e.value];case"UnaryExpression":return[e.argument];default:return[]}}(this),n=0,r=t.length;n",Zj[3]="Identifier",Zj[4]="Keyword",Zj[5]="Null",Zj[6]="Numeric",Zj[7]="Punctuator",Zj[8]="String",Zj[9]="RegularExpression";var nL="Identifier",rL="Unexpected token %0",iL="Invalid regular expression",oL="Invalid regular expression: missing /",aL="Octal literals are not allowed in strict mode.",sL="ILLEGAL",lL="Disabled.",cL=new RegExp("[\\xAA\\xB5\\xBA\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0370-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u037F\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u048A-\\u052F\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05D0-\\u05EA\\u05F0-\\u05F2\\u0620-\\u064A\\u066E\\u066F\\u0671-\\u06D3\\u06D5\\u06E5\\u06E6\\u06EE\\u06EF\\u06FA-\\u06FC\\u06FF\\u0710\\u0712-\\u072F\\u074D-\\u07A5\\u07B1\\u07CA-\\u07EA\\u07F4\\u07F5\\u07FA\\u0800-\\u0815\\u081A\\u0824\\u0828\\u0840-\\u0858\\u08A0-\\u08B2\\u0904-\\u0939\\u093D\\u0950\\u0958-\\u0961\\u0971-\\u0980\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BD\\u09CE\\u09DC\\u09DD\\u09DF-\\u09E1\\u09F0\\u09F1\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A59-\\u0A5C\\u0A5E\\u0A72-\\u0A74\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABD\\u0AD0\\u0AE0\\u0AE1\\u0B05-\\u0B0C\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3D\\u0B5C\\u0B5D\\u0B5F-\\u0B61\\u0B71\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BD0\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C39\\u0C3D\\u0C58\\u0C59\\u0C60\\u0C61\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CBD\\u0CDE\\u0CE0\\u0CE1\\u0CF1\\u0CF2\\u0D05-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D3A\\u0D3D\\u0D4E\\u0D60\\u0D61\\u0D7A-\\u0D7F\\u0D85-\\u0D96\\u0D9A-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0E01-\\u0E30\\u0E32\\u0E33\\u0E40-\\u0E46\\u0E81\\u0E82\\u0E84\\u0E87\\u0E88\\u0E8A\\u0E8D\\u0E94-\\u0E97\\u0E99-\\u0E9F\\u0EA1-\\u0EA3\\u0EA5\\u0EA7\\u0EAA\\u0EAB\\u0EAD-\\u0EB0\\u0EB2\\u0EB3\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EDC-\\u0EDF\\u0F00\\u0F40-\\u0F47\\u0F49-\\u0F6C\\u0F88-\\u0F8C\\u1000-\\u102A\\u103F\\u1050-\\u1055\\u105A-\\u105D\\u1061\\u1065\\u1066\\u106E-\\u1070\\u1075-\\u1081\\u108E\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u1380-\\u138F\\u13A0-\\u13F4\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u16EE-\\u16F8\\u1700-\\u170C\\u170E-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176C\\u176E-\\u1770\\u1780-\\u17B3\\u17D7\\u17DC\\u1820-\\u1877\\u1880-\\u18A8\\u18AA\\u18B0-\\u18F5\\u1900-\\u191E\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19C1-\\u19C7\\u1A00-\\u1A16\\u1A20-\\u1A54\\u1AA7\\u1B05-\\u1B33\\u1B45-\\u1B4B\\u1B83-\\u1BA0\\u1BAE\\u1BAF\\u1BBA-\\u1BE5\\u1C00-\\u1C23\\u1C4D-\\u1C4F\\u1C5A-\\u1C7D\\u1CE9-\\u1CEC\\u1CEE-\\u1CF1\\u1CF5\\u1CF6\\u1D00-\\u1DBF\\u1E00-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2071\\u207F\\u2090-\\u209C\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2160-\\u2188\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2CE4\\u2CEB-\\u2CEE\\u2CF2\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D80-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2E2F\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303C\\u3041-\\u3096\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312D\\u3131-\\u318E\\u31A0-\\u31BA\\u31F0-\\u31FF\\u3400-\\u4DB5\\u4E00-\\u9FCC\\uA000-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA61F\\uA62A\\uA62B\\uA640-\\uA66E\\uA67F-\\uA69D\\uA6A0-\\uA6EF\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA78E\\uA790-\\uA7AD\\uA7B0\\uA7B1\\uA7F7-\\uA801\\uA803-\\uA805\\uA807-\\uA80A\\uA80C-\\uA822\\uA840-\\uA873\\uA882-\\uA8B3\\uA8F2-\\uA8F7\\uA8FB\\uA90A-\\uA925\\uA930-\\uA946\\uA960-\\uA97C\\uA984-\\uA9B2\\uA9CF\\uA9E0-\\uA9E4\\uA9E6-\\uA9EF\\uA9FA-\\uA9FE\\uAA00-\\uAA28\\uAA40-\\uAA42\\uAA44-\\uAA4B\\uAA60-\\uAA76\\uAA7A\\uAA7E-\\uAAAF\\uAAB1\\uAAB5\\uAAB6\\uAAB9-\\uAABD\\uAAC0\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEA\\uAAF2-\\uAAF4\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\\uAB30-\\uAB5A\\uAB5C-\\uAB5F\\uAB64\\uAB65\\uABC0-\\uABE2\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D\\uFB1F-\\uFB28\\uFB2A-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE70-\\uFE74\\uFE76-\\uFEFC\\uFF21-\\uFF3A\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC]"),uL=new RegExp("[\\xAA\\xB5\\xBA\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0300-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u037F\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u0483-\\u0487\\u048A-\\u052F\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u0591-\\u05BD\\u05BF\\u05C1\\u05C2\\u05C4\\u05C5\\u05C7\\u05D0-\\u05EA\\u05F0-\\u05F2\\u0610-\\u061A\\u0620-\\u0669\\u066E-\\u06D3\\u06D5-\\u06DC\\u06DF-\\u06E8\\u06EA-\\u06FC\\u06FF\\u0710-\\u074A\\u074D-\\u07B1\\u07C0-\\u07F5\\u07FA\\u0800-\\u082D\\u0840-\\u085B\\u08A0-\\u08B2\\u08E4-\\u0963\\u0966-\\u096F\\u0971-\\u0983\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BC-\\u09C4\\u09C7\\u09C8\\u09CB-\\u09CE\\u09D7\\u09DC\\u09DD\\u09DF-\\u09E3\\u09E6-\\u09F1\\u0A01-\\u0A03\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A3C\\u0A3E-\\u0A42\\u0A47\\u0A48\\u0A4B-\\u0A4D\\u0A51\\u0A59-\\u0A5C\\u0A5E\\u0A66-\\u0A75\\u0A81-\\u0A83\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABC-\\u0AC5\\u0AC7-\\u0AC9\\u0ACB-\\u0ACD\\u0AD0\\u0AE0-\\u0AE3\\u0AE6-\\u0AEF\\u0B01-\\u0B03\\u0B05-\\u0B0C\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3C-\\u0B44\\u0B47\\u0B48\\u0B4B-\\u0B4D\\u0B56\\u0B57\\u0B5C\\u0B5D\\u0B5F-\\u0B63\\u0B66-\\u0B6F\\u0B71\\u0B82\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BBE-\\u0BC2\\u0BC6-\\u0BC8\\u0BCA-\\u0BCD\\u0BD0\\u0BD7\\u0BE6-\\u0BEF\\u0C00-\\u0C03\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C39\\u0C3D-\\u0C44\\u0C46-\\u0C48\\u0C4A-\\u0C4D\\u0C55\\u0C56\\u0C58\\u0C59\\u0C60-\\u0C63\\u0C66-\\u0C6F\\u0C81-\\u0C83\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CBC-\\u0CC4\\u0CC6-\\u0CC8\\u0CCA-\\u0CCD\\u0CD5\\u0CD6\\u0CDE\\u0CE0-\\u0CE3\\u0CE6-\\u0CEF\\u0CF1\\u0CF2\\u0D01-\\u0D03\\u0D05-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D3A\\u0D3D-\\u0D44\\u0D46-\\u0D48\\u0D4A-\\u0D4E\\u0D57\\u0D60-\\u0D63\\u0D66-\\u0D6F\\u0D7A-\\u0D7F\\u0D82\\u0D83\\u0D85-\\u0D96\\u0D9A-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0DCA\\u0DCF-\\u0DD4\\u0DD6\\u0DD8-\\u0DDF\\u0DE6-\\u0DEF\\u0DF2\\u0DF3\\u0E01-\\u0E3A\\u0E40-\\u0E4E\\u0E50-\\u0E59\\u0E81\\u0E82\\u0E84\\u0E87\\u0E88\\u0E8A\\u0E8D\\u0E94-\\u0E97\\u0E99-\\u0E9F\\u0EA1-\\u0EA3\\u0EA5\\u0EA7\\u0EAA\\u0EAB\\u0EAD-\\u0EB9\\u0EBB-\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EC8-\\u0ECD\\u0ED0-\\u0ED9\\u0EDC-\\u0EDF\\u0F00\\u0F18\\u0F19\\u0F20-\\u0F29\\u0F35\\u0F37\\u0F39\\u0F3E-\\u0F47\\u0F49-\\u0F6C\\u0F71-\\u0F84\\u0F86-\\u0F97\\u0F99-\\u0FBC\\u0FC6\\u1000-\\u1049\\u1050-\\u109D\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u135D-\\u135F\\u1380-\\u138F\\u13A0-\\u13F4\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u16EE-\\u16F8\\u1700-\\u170C\\u170E-\\u1714\\u1720-\\u1734\\u1740-\\u1753\\u1760-\\u176C\\u176E-\\u1770\\u1772\\u1773\\u1780-\\u17D3\\u17D7\\u17DC\\u17DD\\u17E0-\\u17E9\\u180B-\\u180D\\u1810-\\u1819\\u1820-\\u1877\\u1880-\\u18AA\\u18B0-\\u18F5\\u1900-\\u191E\\u1920-\\u192B\\u1930-\\u193B\\u1946-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19B0-\\u19C9\\u19D0-\\u19D9\\u1A00-\\u1A1B\\u1A20-\\u1A5E\\u1A60-\\u1A7C\\u1A7F-\\u1A89\\u1A90-\\u1A99\\u1AA7\\u1AB0-\\u1ABD\\u1B00-\\u1B4B\\u1B50-\\u1B59\\u1B6B-\\u1B73\\u1B80-\\u1BF3\\u1C00-\\u1C37\\u1C40-\\u1C49\\u1C4D-\\u1C7D\\u1CD0-\\u1CD2\\u1CD4-\\u1CF6\\u1CF8\\u1CF9\\u1D00-\\u1DF5\\u1DFC-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u200C\\u200D\\u203F\\u2040\\u2054\\u2071\\u207F\\u2090-\\u209C\\u20D0-\\u20DC\\u20E1\\u20E5-\\u20F0\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2160-\\u2188\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2CE4\\u2CEB-\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D7F-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2DE0-\\u2DFF\\u2E2F\\u3005-\\u3007\\u3021-\\u302F\\u3031-\\u3035\\u3038-\\u303C\\u3041-\\u3096\\u3099\\u309A\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312D\\u3131-\\u318E\\u31A0-\\u31BA\\u31F0-\\u31FF\\u3400-\\u4DB5\\u4E00-\\u9FCC\\uA000-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA62B\\uA640-\\uA66F\\uA674-\\uA67D\\uA67F-\\uA69D\\uA69F-\\uA6F1\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA78E\\uA790-\\uA7AD\\uA7B0\\uA7B1\\uA7F7-\\uA827\\uA840-\\uA873\\uA880-\\uA8C4\\uA8D0-\\uA8D9\\uA8E0-\\uA8F7\\uA8FB\\uA900-\\uA92D\\uA930-\\uA953\\uA960-\\uA97C\\uA980-\\uA9C0\\uA9CF-\\uA9D9\\uA9E0-\\uA9FE\\uAA00-\\uAA36\\uAA40-\\uAA4D\\uAA50-\\uAA59\\uAA60-\\uAA76\\uAA7A-\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEF\\uAAF2-\\uAAF6\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\\uAB30-\\uAB5A\\uAB5C-\\uAB5F\\uAB64\\uAB65\\uABC0-\\uABEA\\uABEC\\uABED\\uABF0-\\uABF9\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D-\\uFB28\\uFB2A-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE00-\\uFE0F\\uFE20-\\uFE2D\\uFE33\\uFE34\\uFE4D-\\uFE4F\\uFE70-\\uFE74\\uFE76-\\uFEFC\\uFF10-\\uFF19\\uFF21-\\uFF3A\\uFF3F\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC]");function hL(e,t){if(!e)throw new Error("ASSERT: "+t)}function dL(e){return e>=48&&e<=57}function fL(e){return"0123456789abcdefABCDEF".indexOf(e)>=0}function pL(e){return"01234567".indexOf(e)>=0}function mL(e){return 32===e||9===e||11===e||12===e||160===e||e>=5760&&[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].indexOf(e)>=0}function gL(e){return 10===e||13===e||8232===e||8233===e}function vL(e){return 36===e||95===e||e>=65&&e<=90||e>=97&&e<=122||92===e||e>=128&&cL.test(String.fromCharCode(e))}function yL(e){return 36===e||95===e||e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||92===e||e>=128&&uL.test(String.fromCharCode(e))}const bL={if:1,in:1,do:1,var:1,for:1,new:1,try:1,let:1,this:1,else:1,case:1,void:1,with:1,enum:1,while:1,break:1,catch:1,throw:1,const:1,yield:1,class:1,super:1,return:1,typeof:1,delete:1,switch:1,export:1,import:1,public:1,static:1,default:1,finally:1,extends:1,package:1,private:1,function:1,continue:1,debugger:1,interface:1,protected:1,instanceof:1,implements:1};function xL(){for(;Qj1114111||"}"!==e)&&IL({},rL,sL),t<=65535?String.fromCharCode(t):(n=55296+(t-65536>>10),r=56320+(t-65536&1023),String.fromCharCode(n,r))}function kL(){var e,t;for(e=Kj.charCodeAt(Qj++),t=String.fromCharCode(e),92===e&&(117!==Kj.charCodeAt(Qj)&&IL({},rL,sL),++Qj,(e=wL("u"))&&"\\"!==e&&vL(e.charCodeAt(0))||IL({},rL,sL),t=e);Qj>>="===(r=Kj.substr(Qj,4))?{type:7,value:r,start:i,end:Qj+=4}:">>>"===(n=r.substr(0,3))||"<<="===n||">>="===n?{type:7,value:n,start:i,end:Qj+=3}:a===(t=n.substr(0,2))[1]&&"+-<>&|".indexOf(a)>=0||"=>"===t?{type:7,value:t,start:i,end:Qj+=2}:("//"===t&&IL({},rL,sL),"<>=!+-*%&|^/".indexOf(a)>=0?{type:7,value:a,start:i,end:++Qj}:void IL({},rL,sL))}function CL(){var e,t,n;if(hL(dL((n=Kj[Qj]).charCodeAt(0))||"."===n,"Numeric literal must start with a decimal digit or a decimal point"),t=Qj,e="","."!==n){if(e=Kj[Qj++],n=Kj[Qj],"0"===e){if("x"===n||"X"===n)return++Qj,function(e){let t="";for(;Qj=eL)return{type:2,start:Qj,end:Qj};const e=Kj.charCodeAt(Qj);return vL(e)?function(){var e,t;return e=Qj,t=92===Kj.charCodeAt(Qj)?kL():function(){var e,t;for(e=Qj++;Qj=0&&Qj(hL(t=0&&IL({},iL,n),{value:n,literal:t}}(),r=function(e,t){let n=e;t.indexOf("u")>=0&&(n=n.replace(/\\u\{([0-9a-fA-F]+)\}/g,((e,t)=>{if(parseInt(t,16)<=1114111)return"x";IL({},iL)})).replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"x"));try{new RegExp(n)}catch(e){IL({},iL)}try{return new RegExp(e,t)}catch(e){return null}}(t.value,n.value),{literal:t.literal+n.literal,value:r,regex:{pattern:t.value,flags:n.value},start:e,end:Qj}}()),AL()):BL(DL())}return n}function qL(){const e=[];if(jL("("),!LL(")"))for(;Qj":case"<=":case">=":case"instanceof":case"in":t=7;break;case"<<":case">>":case">>>":t=8;break;case"+":case"-":t=9;break;case"*":case"/":case"%":t=11}return t}function YL(){var e,t;return e=function(){var e,t,n,r,i,o,a,s,l,c;if(e=tL,l=GL(),0===(i=XL(r=tL)))return l;for(r.prec=i,DL(),t=[e,tL],o=[l,r,a=GL()];(i=XL(tL))>0;){for(;o.length>2&&i<=o[o.length-2].prec;)a=o.pop(),s=o.pop().value,l=o.pop(),t.pop(),n=TL(s,l,a),o.push(n);(r=DL()).prec=i,o.push(r),t.push(tL),n=GL(),o.push(n)}for(n=o[c=o.length-1],t.pop();c>1;)t.pop(),n=TL(o[c-1].value,o[c-2],n),c-=2;return n}(),LL("?")&&(DL(),t=YL(),jL(":"),e=function(e,t,n){const r=new Jj("ConditionalExpression");return r.test=e,r.consequent=t,r.alternate=n,r}(e,t,YL())),e}function JL(){const e=YL();if(LL(","))throw new Error(lL);return e}function ZL(e){Qj=0,eL=(Kj=e).length,tL=null,AL();const t=JL();if(2!==tL.type)throw new Error("Unexpect token after expression.");return t}var KL={NaN:"NaN",E:"Math.E",LN2:"Math.LN2",LN10:"Math.LN10",LOG2E:"Math.LOG2E",LOG10E:"Math.LOG10E",PI:"Math.PI",SQRT1_2:"Math.SQRT1_2",SQRT2:"Math.SQRT2",MIN_VALUE:"Number.MIN_VALUE",MAX_VALUE:"Number.MAX_VALUE"};function QL(e){function t(t,n,r){return i=>function(t,n,r,i){let o=e(n[0]);return r&&(o=r+"("+o+")",0===r.lastIndexOf("new ",0)&&(o="("+o+")")),o+"."+t+(i<0?"":0===i?"()":"("+n.slice(1).map(e).join(",")+")")}(t,i,n,r)}const n="new Date",r="String",i="RegExp";return{isNaN:"Number.isNaN",isFinite:"Number.isFinite",abs:"Math.abs",acos:"Math.acos",asin:"Math.asin",atan:"Math.atan",atan2:"Math.atan2",ceil:"Math.ceil",cos:"Math.cos",exp:"Math.exp",floor:"Math.floor",log:"Math.log",max:"Math.max",min:"Math.min",pow:"Math.pow",random:"Math.random",round:"Math.round",sin:"Math.sin",sqrt:"Math.sqrt",tan:"Math.tan",clamp:function(t){t.length<3&&Ai("Missing arguments to clamp function."),t.length>3&&Ai("Too many arguments to clamp function.");const n=t.map(e);return"Math.max("+n[1]+", Math.min("+n[2]+","+n[0]+"))"},now:"Date.now",utc:"Date.UTC",datetime:n,date:t("getDate",n,0),day:t("getDay",n,0),year:t("getFullYear",n,0),month:t("getMonth",n,0),hours:t("getHours",n,0),minutes:t("getMinutes",n,0),seconds:t("getSeconds",n,0),milliseconds:t("getMilliseconds",n,0),time:t("getTime",n,0),timezoneoffset:t("getTimezoneOffset",n,0),utcdate:t("getUTCDate",n,0),utcday:t("getUTCDay",n,0),utcyear:t("getUTCFullYear",n,0),utcmonth:t("getUTCMonth",n,0),utchours:t("getUTCHours",n,0),utcminutes:t("getUTCMinutes",n,0),utcseconds:t("getUTCSeconds",n,0),utcmilliseconds:t("getUTCMilliseconds",n,0),length:t("length",null,-1),parseFloat:"parseFloat",parseInt:"parseInt",upper:t("toUpperCase",r,0),lower:t("toLowerCase",r,0),substring:t("substring",r),split:t("split",r),trim:t("trim",r,0),regexp:i,test:t("test",i),if:function(t){t.length<3&&Ai("Missing arguments to if function."),t.length>3&&Ai("Too many arguments to if function.");const n=t.map(e);return"("+n[0]+"?"+n[1]+":"+n[2]+")"}}}function ez(e){const t=(e=e||{}).allowed?ea(e.allowed):{},n=e.forbidden?ea(e.forbidden):{},r=e.constants||KL,i=(e.functions||QL)(h),o=e.globalvar,a=e.fieldvar,s=yo(o)?o:e=>`${o}["${e}"]`;let l={},c={},u=0;function h(e){if($o(e))return e;const t=d[e.type];return null==t&&Ai("Unsupported type: "+e.type),t(e)}const d={Literal:e=>e.raw,Identifier:e=>{const i=e.name;return u>0?i:Mo(n,i)?Ai("Illegal identifier: "+i):Mo(r,i)?r[i]:Mo(t,i)?i:(l[i]=1,s(i))},MemberExpression:e=>{const t=!e.computed,n=h(e.object);t&&(u+=1);const r=h(e.property);return n===a&&(c[function(e){const t=e&&e.length-1;return t&&('"'===e[0]&&'"'===e[t]||"'"===e[0]&&"'"===e[t])?e.slice(1,-1):e}(r)]=1),t&&(u-=1),n+(t?"."+r:"["+r+"]")},CallExpression:e=>{"Identifier"!==e.callee.type&&Ai("Illegal callee type: "+e.callee.type);const t=e.callee.name,n=e.arguments,r=Mo(i,t)&&i[t];return r||Ai("Unrecognized function: "+t),yo(r)?r(n):r+"("+n.map(h).join(",")+")"},ArrayExpression:e=>"["+e.elements.map(h).join(",")+"]",BinaryExpression:e=>"("+h(e.left)+" "+e.operator+" "+h(e.right)+")",UnaryExpression:e=>"("+e.operator+h(e.argument)+")",ConditionalExpression:e=>"("+h(e.test)+"?"+h(e.consequent)+":"+h(e.alternate)+")",LogicalExpression:e=>"("+h(e.left)+e.operator+h(e.right)+")",ObjectExpression:e=>"{"+e.properties.map(h).join(",")+"}",Property:e=>{u+=1;const t=h(e.key);return u-=1,t+":"+h(e.value)}};function f(e){const t={code:h(e),globals:Object.keys(l),fields:Object.keys(c)};return l={},c={},t}return f.functions=i,f.constants=r,f}class tz{constructor(){this._partials=new Float64Array(32),this._n=0}add(e){const t=this._partials;let n=0;for(let r=0;r0){for(o=e[--i];i>0&&(t=o,n=e[--i],o=t+n,r=n-(o-t),!r););i>0&&(r<0&&e[i-1]<0||r>0&&e[i-1]>0)&&(n=2*r,t=o+n,n==t-o&&(o=t))}return o}}var nz=1e-6,rz=Math.PI,iz=rz/2,oz=rz/4,az=2*rz,sz=180/rz,lz=rz/180,cz=Math.abs,uz=(Math.atan,Math.atan2),hz=Math.cos,dz=(Math.ceil,Math.exp,Math.floor,Math.hypot),fz=(Math.log,Math.pow,Math.sin),pz=(Math.sign,Math.sqrt);function mz(e){return e>1?iz:e<-1?-iz:Math.asin(e)}function gz(){}function vz(e,t){e&&bz.hasOwnProperty(e.type)&&bz[e.type](e,t)}Math.tan;var yz={Feature:function(e,t){vz(e.geometry,t)},FeatureCollection:function(e,t){for(var n=e.features,r=-1,i=n.length;++r=0?1:-1,i=r*n,o=hz(t=(t*=lz)/2+oz),a=fz(t),s=Dz*a,l=Sz*o+s*hz(i),c=s*r*fz(i);zz.add(uz(c,l)),Cz=e,Sz=o,Dz=a}function Vz(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}var Gz,Xz,Yz,Jz,Zz,Kz,Qz,eR,tR,nR,rR,iR,oR,aR,sR,lR,cR={point:uR,lineStart:dR,lineEnd:fR,polygonStart:function(){cR.point=pR,cR.lineStart=mR,cR.lineEnd=gR,Bz=new tz,$z.polygonStart()},polygonEnd:function(){$z.polygonEnd(),cR.point=uR,cR.lineStart=dR,cR.lineEnd=fR,zz<0?(Az=-(Mz=180),Tz=-(Oz=90)):Bz>nz?Oz=90:Bz<-1e-6&&(Tz=-90),Lz[0]=Az,Lz[1]=Mz},sphere:function(){Az=-(Mz=180),Tz=-(Oz=90)}};function uR(e,t){jz.push(Lz=[Az=e,Mz=e]),tOz&&(Oz=t)}function hR(e,t){var n,r,i=function(e){var t=e[0],n=e[1],r=hz(n);return[r*hz(t),r*fz(t),fz(n)]}([e*lz,t*lz]);if(Iz){var o=Vz(Iz,i),a=Vz([o[1],-o[0],0],o);r=pz((n=a)[0]*n[0]+n[1]*n[1]+n[2]*n[2]),n[0]/=r,n[1]/=r,n[2]/=r,a=function(e){return[uz(e[1],e[0]),mz(e[2])]}(a);var s,l=e-Fz,c=l>0?1:-1,u=a[0]*sz*c,h=cz(l)>180;h^(c*FzOz&&(Oz=s):h^(c*Fz<(u=(u+360)%360-180)&&uOz&&(Oz=t)),h?evR(Az,Mz)&&(Mz=e):vR(e,Mz)>vR(Az,Mz)&&(Az=e):Mz>=Az?(eMz&&(Mz=e)):e>Fz?vR(Az,e)>vR(Az,Mz)&&(Mz=e):vR(e,Mz)>vR(Az,Mz)&&(Az=e)}else jz.push(Lz=[Az=e,Mz=e]);tOz&&(Oz=t),Iz=i,Fz=e}function dR(){cR.point=hR}function fR(){Lz[0]=Az,Lz[1]=Mz,cR.point=uR,Iz=null}function pR(e,t){if(Iz){var n=e-Fz;Bz.add(cz(n)>180?n+(n>0?360:-360):n)}else Pz=e,Nz=t;$z.point(e,t),hR(e,t)}function mR(){$z.lineStart()}function gR(){pR(Pz,Nz),$z.lineEnd(),cz(Bz)>nz&&(Az=-(Mz=180)),Lz[0]=Az,Lz[1]=Mz,Iz=null}function vR(e,t){return(t-=e)<0?t+360:t}function yR(e,t){return e[0]-t[0]}function bR(e,t){return e[0]<=e[1]?e[0]<=t&&t<=e[1]:t>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?ZR(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?ZR(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=RR.exec(e))?new e$(t[1],t[2],t[3],1):(t=$R.exec(e))?new e$(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=HR.exec(e))?ZR(t[1],t[2],t[3],t[4]):(t=UR.exec(e))?ZR(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=qR.exec(e))?i$(t[1],t[2]/100,t[3]/100,1):(t=WR.exec(e))?i$(t[1],t[2]/100,t[3]/100,t[4]):VR.hasOwnProperty(e)?JR(VR[e]):"transparent"===e?new e$(NaN,NaN,NaN,0):null}function JR(e){return new e$(e>>16&255,e>>8&255,255&e,1)}function ZR(e,t,n,r){return r<=0&&(e=t=n=NaN),new e$(e,t,n,r)}function KR(e){return e instanceof PR||(e=YR(e)),e?new e$((e=e.rgb()).r,e.g,e.b,e.opacity):new e$}function QR(e,t,n,r){return 1===arguments.length?KR(e):new e$(e,t,n,null==r?1:r)}function e$(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function t$(){return"#"+r$(this.r)+r$(this.g)+r$(this.b)}function n$(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}function r$(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function i$(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new s$(e,t,n,r)}function o$(e){if(e instanceof s$)return new s$(e.h,e.s,e.l,e.opacity);if(e instanceof PR||(e=YR(e)),!e)return new s$;if(e instanceof s$)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,l=(o+i)/2;return s?(a=t===o?(n-r)/s+6*(n0&&l<1?0:a,new s$(a,s,l,e.opacity)}function a$(e,t,n,r){return 1===arguments.length?o$(e):new s$(e,t,n,null==r?1:r)}function s$(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function l$(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}OR(PR,YR,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:GR,formatHex:GR,formatHsl:function(){return o$(this).formatHsl()},formatRgb:XR,toString:XR}),OR(e$,QR,FR(PR,{brighter:function(e){return e=null==e?IR:Math.pow(IR,e),new e$(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?NR:Math.pow(NR,e),new e$(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:t$,formatHex:t$,formatRgb:n$,toString:n$})),OR(s$,a$,FR(PR,{brighter:function(e){return e=null==e?IR:Math.pow(IR,e),new s$(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?NR:Math.pow(NR,e),new s$(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new e$(l$(e>=240?e-240:e+120,i,r),l$(e,i,r),l$(e<120?e+240:e-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}));const c$=Math.PI/180,u$=180/Math.PI,h$=.96422,d$=.82521,f$=4/29,p$=.12841854934601665;function m$(e){if(e instanceof v$)return new v$(e.l,e.a,e.b,e.opacity);if(e instanceof E$)return C$(e);e instanceof e$||(e=KR(e));var t,n,r=w$(e.r),i=w$(e.g),o=w$(e.b),a=y$((.2225045*r+.7168786*i+.0606169*o)/1);return r===i&&i===o?t=n=a:(t=y$((.4360747*r+.3850649*i+.1430804*o)/h$),n=y$((.0139322*r+.0971045*i+.7141733*o)/d$)),new v$(116*a-16,500*(t-a),200*(a-n),e.opacity)}function g$(e,t,n,r){return 1===arguments.length?m$(e):new v$(e,t,n,null==r?1:r)}function v$(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function y$(e){return e>.008856451679035631?Math.pow(e,1/3):e/p$+f$}function b$(e){return e>.20689655172413793?e*e*e:p$*(e-f$)}function x$(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function w$(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function _$(e){if(e instanceof E$)return new E$(e.h,e.c,e.l,e.opacity);if(e instanceof v$||(e=m$(e)),0===e.a&&0===e.b)return new E$(NaN,0>>1;n(e[o],t)<0?r=o+1:i=o}return r}return 1===e.length&&(t=(t,n)=>e(t)-n,n=function(e){return(t,n)=>function(e,t){return et?1:e>=t?0:NaN}(e(t),n)}(e)),{left:r,center:function(e,n,i,o){null==i&&(i=0),null==o&&(o=e.length);const a=r(e,n,i,o-1);return a>i&&t(e[a-1],n)>-t(e[a],n)?a-1:a},right:function(e,t,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;n(e[o],t)>0?i=o:r=o+1}return r}}}(M$),F$=O$.left,P$=O$.right;var N$={E_union:function(e,t){if(!e.length)return t;for(var n=0,r=t.length;nt.indexOf(e)>=0)):t},R_union:function(e,t){var n=Zi(t[0]),r=Zi(t[1]);return n>r&&(n=t[1],r=t[0]),e.length?(e[0]>n&&(e[0]=n),e[1]r&&(n=t[1],r=t[0]),e.length?rr&&(e[1]=r),e):[n,r]}};function I$(e,t,n,r){t[0].type!==Xj&&Ai("First argument to selection functions must be a string literal.");const i=t[0].value,o=":"+i;(t.length>=2&&Ji(t).value)!==S$||Mo(r,"@unit")||(r["@unit"]=n.getData(i).indataRef(n,"unit")),Mo(r,o)||(r[o]=n.getData(i).tuplesRef())}function B$(e){const t=this.context.data[e];return t?t.values.value:[]}const j$=e=>function(t,n){return this.context.dataflow.locale()[e](n)(t)},L$=j$("format"),z$=j$("timeFormat"),R$=j$("utcFormat"),$$=j$("timeParse"),H$=j$("utcParse"),U$=new Date(2e3,0,1);function q$(e,t,n){return Number.isInteger(e)&&Number.isInteger(t)?(U$.setYear(2e3),U$.setMonth(e),U$.setDate(t),z$.call(this,U$,n)):""}function W$(e,t,n,r){t[0].type!==Xj&&Ai("First argument to data functions must be a string literal.");const i=t[0].value,o=":"+i;if(!Mo(o,r))try{r[o]=n.getData(i).tuplesRef()}catch(e){}}function V$(e,t,n,r){if(t[0].type===Xj)G$(n,r,t[0].value);else for(e in n.scales)G$(n,r,e)}function G$(e,t,n){const r="%"+n;if(!Mo(t,r))try{t[r]=e.scaleRef(n)}catch(e){}}function X$(e,t){let n;return yo(e)?e:$o(e)?(n=t.scales[e])&&n.value:void 0}function Y$(e,t){return function(n,r,i){if(n){const t=X$(n,(i||this).context);return t&&t.path[e](r)}return t(r)}}const J$=Y$("area",(function(e){return Rz=new tz,_z(e,$z),2*Rz})),Z$=Y$("bounds",(function(e){var t,n,r,i,o,a,s;if(Oz=Mz=-(Az=Tz=1/0),jz=[],_z(e,cR),n=jz.length){for(jz.sort(yR),t=1,o=[r=jz[0]];tvR(r[0],r[1])&&(r[1]=i[1]),vR(i[0],r[1])>vR(r[0],r[1])&&(r[0]=i[0])):o.push(r=i);for(a=-1/0,t=0,r=o[n=o.length-1];t<=n;r=i,++t)i=o[t],(s=vR(r[1],i[0]))>a&&(a=s,Az=i[0],Mz=r[1])}return jz=Lz=null,Az===1/0||Tz===1/0?[[NaN,NaN],[NaN,NaN]]:[[Az,Tz],[Mz,Oz]]})),K$=Y$("centroid",(function(e){Gz=Xz=Yz=Jz=Zz=Kz=Qz=eR=0,tR=new tz,nR=new tz,rR=new tz,_z(e,xR);var t=+tR,n=+nR,r=+rR,i=dz(t,n,r);return i<1e-12&&(t=Kz,n=Qz,r=eR,XzrH(e,t)}const oH={};function aH(e){return qi(e)||ArrayBuffer.isView(e)?e:null}function sH(e){return aH(e)||($o(e)?e:null)}const lH=e=>e.data;function cH(e,t){const n=B$.call(t,e);return n.root&&n.root.lookup||{}}const uH=()=>"undefined"!=typeof window&&window||null,hH={random:()=>Dd(),cumulativeNormal:Ld,cumulativeLogNormal:qd,cumulativeUniform:Jd,densityNormal:jd,densityLogNormal:Ud,densityUniform:Yd,quantileNormal:zd,quantileLogNormal:Wd,quantileUniform:Zd,sampleNormal:Bd,sampleLogNormal:Hd,sampleUniform:Xd,isArray:qi,isBoolean:Bo,isDate:jo,isDefined:e=>void 0!==e,isNumber:zo,isObject:Wi,isRegExp:Ro,isString:$o,isTuple:Oh,isValid:e=>null!=e&&e==e,toBoolean:Jo,toDate:Ko,toNumber:Zi,toString:Qo,indexof:function(e,...t){return sH(e).indexOf(...t)},join:function(e,...t){return aH(e).join(...t)},lastindexof:function(e,...t){return sH(e).lastIndexOf(...t)},replace:function(e,t,n){return yo(n)&&Ai("Function argument passed to replace."),String(e).replace(t,n)},reverse:function(e){return aH(e).slice().reverse()},slice:function(e,...t){return sH(e).slice(...t)},flush:Po,lerp:Uo,merge:function(){const e=[].slice.call(arguments);return e.unshift({}),So(...e)},pad:Go,peek:Ji,pluck:function(e,t){const n=oH[t]||(oH[t]=Mi(t));return qi(e)?e.map(n):n(e)},span:Xo,inrange:Io,truncate:ta,rgb:QR,lab:g$,hcl:k$,hsl:a$,luminance:tH,contrast:function(e,t){const n=tH(e),r=tH(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)},sequence:function(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((t-e)/n)),o=new Array(i);++r(!n.length||n.some((t=>e.marktype===t)))&&(!r.length||r.some((t=>e.name===t)))}return t}(t))},clampRange:vo,pinchDistance:function(e){const t=e.touches,n=t[0].clientX-t[1].clientX,r=t[0].clientY-t[1].clientY;return Math.sqrt(n*n+r*r)},pinchAngle:function(e){const t=e.touches;return Math.atan2(t[0].clientY-t[1].clientY,t[0].clientX-t[1].clientX)},screen:function(){const e=uH();return e?e.screen:{}},containerSize:function(){const e=this.context.dataflow,t=e.container&&e.container();return t?[t.clientWidth,t.clientHeight]:[void 0,void 0]},windowSize:function(){const e=uH();return e?[e.innerWidth,e.innerHeight]:[void 0,void 0]},bandspace:function(e,t,n){return pw(e||0,t||0,n||0)},setdata:function(e,t){const n=this.context.dataflow,r=this.context.data[e].input;return n.pulse(r,n.changeset().remove(Ii).insert(t)),1},pathShape:function(e){let t=null;return function(n){return n?X_(n,t=t||j_(e)):e}},panLinear:io,panLog:oo,panPow:ao,panSymlog:so,zoomLinear:co,zoomLog:uo,zoomPow:ho,zoomSymlog:fo,encode:function(e,t,n){if(e){const n=this.context.dataflow,r=e.mark.source;n.pulse(r,n.changeset().encode(e,t))}return void 0!==n?n:e},modify:function(e,t,n,r,i,o){const a=this.context.dataflow,s=this.context.data[e],l=s.input,c=a.stamp();let u,h,d=s.changes;if(!1===a._trigger||!(l.value.length||t||r))return 0;if((!d||d.stamp{s.modified=!0,a.pulse(l,d).run()}),!0,1)),n&&(u=!0===n?Ii:qi(n)||Oh(n)?n:iH(n),d.remove(u)),t&&d.insert(t),r&&(u=iH(r),l.value.some(u)?d.remove(u):d.insert(r)),i)for(h in o)d.modify(i,h,o[h]);return 1}},dH=["view","item","group","xy","x","y"],fH="this.",pH={},mH={forbidden:["_"],allowed:["datum","event","item"],fieldvar:"datum",globalvar:e=>`_[${Yo("$"+e)}]`,functions:function(e){const t=QL(e);dH.forEach((e=>t[e]="event.vega."+e));for(const e in hH)t[e]=fH+e;return So(t,function(e,t,n){t.__bandwidth=e=>e&&e.bandwidth?e.bandwidth():0,n._bandwidth=V$,n._range=V$,n._scale=V$;const r=t=>"_["+(t.type===Xj?Yo("%"+t.value):Yo("%")+"+"+e(t))+"]";return{_bandwidth:e=>`this.__bandwidth(${r(e[0])})`,_range:e=>`${r(e[0])}.range()`,_scale:t=>`${r(t[0])}(${e(t[1])})`}}(e,hH,pH)),t},constants:KL,visitors:pH},gH=ez(mH);function vH(e,t,n){return 1===arguments.length?hH[e]:(hH[e]=t,n&&(pH[e]=n),gH&&(gH.functions[e]=fH+e),this)}function yH(e,t){const n={};let r;try{r=ZL(e=$o(e)?e:Yo(e)+"")}catch(t){Ai("Expression parse error: "+e)}r.visit((e=>{if(e.type!==Yj)return;const r=e.callee.name,i=mH.visitors[r];i&&i(r,e.arguments,t,n)}));const i=gH(r);return i.globals.forEach((e=>{const r="$"+e;!Mo(n,r)&&t.getSignal(e)&&(n[r]=t.signalRef(e))})),{$expr:So({code:i.code},t.options.ast?{ast:r}:null),$fields:i.fields,$params:n}}vH("bandwidth",(function(e,t){const n=X$(e,(t||this).context);return n&&n.bandwidth?n.bandwidth():0}),V$),vH("copy",(function(e,t){const n=X$(e,(t||this).context);return n?n.copy():void 0}),V$),vH("domain",(function(e,t){const n=X$(e,(t||this).context);return n?n.domain():[]}),V$),vH("range",(function(e,t){const n=X$(e,(t||this).context);return n&&n.range?n.range():[]}),V$),vH("invert",(function(e,t,n){const r=X$(e,(n||this).context);return r?qi(t)?(r.invertRange||r.invert)(t):(r.invert||r.invertExtent)(t):void 0}),V$),vH("scale",(function(e,t,n){const r=X$(e,(n||this).context);return r?r(t):void 0}),V$),vH("gradient",(function(e,t,n,r,i){e=X$(e,(i||this).context);const o=F_(t,n);let a=e.domain(),s=a[0],l=Ji(a),c=Fi;return l-s?c=n_(e,s,l):e=(e.interpolator?Uw("sequential")().interpolator(e.interpolator()):Uw("linear")().interpolate(e.interpolate()).range(e.range())).domain([s=0,l=1]),e.ticks&&(a=e.ticks(+r||15),s!==a[0]&&a.unshift(s),l!==Ji(a)&&a.push(l)),a.forEach((t=>o.stop(c(t),e(t)))),o}),V$),vH("geoArea",J$,V$),vH("geoBounds",Z$,V$),vH("geoCentroid",K$,V$),vH("geoShape",(function(e,t,n){const r=X$(e,(n||this).context);return function(e){return r?r.path.context(e)(t):""}}),V$),vH("indata",(function(e,t,n){const r=this.context.data[e]["index:"+t],i=r?r.value.get(n):void 0;return i?i.count:i}),(function(e,t,n,r){t[0].type!==Xj&&Ai("First argument to indata must be a string literal."),t[1].type!==Xj&&Ai("Second argument to indata must be a string literal.");const i=t[0].value,o=t[1].value,a="@"+o;Mo(a,r)||(r[a]=n.getData(i).indataRef(n,o))})),vH("data",B$,W$),vH("treePath",(function(e,t,n){const r=cH(e,this),i=r[t],o=r[n];return i&&o?i.path(o).map(lH):void 0}),W$),vH("treeAncestors",(function(e,t){const n=cH(e,this)[t];return n?n.ancestors().map(lH):void 0}),W$),vH("vlSelectionTest",(function(e,t,n){for(var r,i,o,a,s,l=this.context.data[e],c=l?l.values.value:[],u=l?l[A$]&&l[A$].value:void 0,h=n===S$,d=c.length,f=0;f(e[o[n].field]=t,e)),{}))}return t=t||D$,Object.keys(v).forEach((e=>{v[e]=Object.keys(v[e]).map((t=>v[e][t])).reduce(((n,r)=>void 0===n?r:N$[b[e]+"_"+t](n,r)))})),g=Object.keys(y),n&&g.length&&(v[r?"vlPoint":"vlMulti"]=t===D$?{or:g.reduce(((e,t)=>(e.push(...y[t]),e)),[])}:{and:g.map((e=>({or:y[e]})))}),v}),I$),vH("vlSelectionTuples",(function(e,t){return e.map((e=>So({values:t.fields.map((t=>(t.getter||(t.getter=Mi(t.field)))(e.datum)))},t)))}));const bH=ea(["rule"]),xH=ea(["group","image","rect"]);function wH(e){return(e+"").toLowerCase()}function _H(e,t,n){";"!==n[n.length-1]&&(n="return("+n+");");const r=Function(...t.concat(n));return e&&e.functions?r.bind(e.functions):r}var kH={operator:(e,t)=>_H(e,["_"],t.code),parameter:(e,t)=>_H(e,["datum","_"],t.code),event:(e,t)=>_H(e,["event"],t.code),handler:(e,t)=>_H(e,["_","event"],"var datum=event.item&&event.item.datum;return ".concat(t.code,";")),encode:(e,t)=>{const{marktype:n,channels:r}=t;let i="var o=item,datum=o.datum,m=0,$;";for(const e in r){const t="o["+Yo(e)+"]";i+="$=".concat(r[e].code,";if(").concat(t,"!==$)").concat(t,"=$,m=1;")}return i+=function(e,t){let n="";return bH[t]||(e.x2&&(e.x?(xH[t]&&(n+="if(o.x>o.x2)$=o.x,o.x=o.x2,o.x2=$;"),n+="o.width=o.x2-o.x;"):n+="o.x=o.x2-(o.width||0);"),e.xc&&(n+="o.x=o.xc-(o.width||0)/2;"),e.y2&&(e.y?(xH[t]&&(n+="if(o.y>o.y2)$=o.y,o.y=o.y2,o.y2=$;"),n+="o.height=o.y2-o.y;"):n+="o.y=o.y2-(o.height||0);"),e.yc&&(n+="o.y=o.yc-(o.height||0)/2;")),n}(r,n),i+="return m;",_H(e,["item","_"],i)},codegen:{get(e){const t="[".concat(e.map(Yo).join("]["),"]"),n=Function("_","return _".concat(t,";"));return n.path=t,n},comparator(e,t){let n;const r=Function("a","b","var u, v; return "+e.map(((e,r)=>{const i=t[r];let o,a;return e.path?(o="a".concat(e.path),a="b".concat(e.path)):((n=n||{})["f"+r]=e,o="this.f".concat(r,"(a)"),a="this.f".concat(r,"(b)")),function(e,t,n,r){return"((u = ".concat(e,") < (v = ").concat(t,") || u == null) && v != null ? ").concat(n,"\n : (u > v || v == null) && u != null ? ").concat(r,"\n : ((v = v instanceof Date ? +v : v), (u = u instanceof Date ? +u : u)) !== u && v === v ? ").concat(n,"\n : v !== v && u === u ? ").concat(r," : ")}(o,a,-i,i)})).join("")+"0;");return n?r.bind(n):r}}};function EH(e,t,n){if(!e||!Wi(e))return e;for(let r,i=0,o=CH.length;ie&&e.$tupleid?Fh:e));return t.fn[n]||(t.fn[n]=bo(r,e.$order,t.expr.codegen))}},{key:"$context",parse:function(e,t){return t}},{key:"$subflow",parse:function(e,t){const n=e.$subflow;return function(e,r,i){const o=t.fork().parse(n),a=o.get(n.operators[0].id),s=o.signals.parent;return s&&s.set(i),a.detachSubflow=()=>t.detach(o),a}}},{key:"$tupleid",parse:function(){return Fh}}];const SH={skip:!0};function DH(e,t,n,r){return new AH(e,t,n,r)}function AH(e,t,n,r){this.dataflow=e,this.transforms=t,this.events=e.events.bind(e),this.expr=r||kH,this.signals={},this.scales={},this.nodes={},this.data={},this.fn={},n&&(this.functions=Object.create(n),this.functions.context=this)}function TH(e){this.dataflow=e.dataflow,this.transforms=e.transforms,this.events=e.events,this.expr=e.expr,this.signals=Object.create(e.signals),this.scales=Object.create(e.scales),this.nodes=Object.create(e.nodes),this.data=Object.create(e.data),this.fn=Object.create(e.fn),e.functions&&(this.functions=Object.create(e.functions),this.functions.context=this)}AH.prototype=TH.prototype={fork(){const e=new TH(this);return(this.subcontext||(this.subcontext=[])).push(e),e},detach(e){this.subcontext=this.subcontext.filter((t=>t!==e));const t=Object.keys(e.nodes);for(const n of t)e.nodes[n]._targets=null;for(const n of t)e.nodes[n].detach();e.nodes=null},get(e){return this.nodes[e]},set(e,t){return this.nodes[e]=t},add(e,t){const n=this,r=n.dataflow,i=e.value;if(n.set(e.id,t),function(e){return"collect"===wH(e)}(e.type)&&i&&(i.$ingest?r.ingest(t,i.$ingest,i.$format):i.$request?r.preload(t,i.$request,i.$format):r.pulse(t,r.changeset().insert(i))),e.root&&(n.root=t),e.parent){let i=n.get(e.parent.$ref);i?(r.connect(i,[t]),t.targets().add(i)):(n.unresolved=n.unresolved||[]).push((()=>{i=n.get(e.parent.$ref),r.connect(i,[t]),t.targets().add(i)}))}if(e.signal&&(n.signals[e.signal]=t),e.scale&&(n.scales[e.scale]=t),e.data)for(const r in e.data){const i=n.data[r]||(n.data[r]={});e.data[r].forEach((e=>i[e]=t))}},resolve(){return(this.unresolved||[]).forEach((e=>e())),delete this.unresolved,this},operator(e,t){this.add(e,this.dataflow.add(e.value,t))},transform(e,t){this.add(e,this.dataflow.add(this.transforms[wH(t)]))},stream(e,t){this.set(e.id,t)},update(e,t,n,r,i){this.dataflow.on(t,n,r,i,e.options)},operatorExpression(e){return this.expr.operator(this,e)},parameterExpression(e){return this.expr.parameter(this,e)},eventExpression(e){return this.expr.event(this,e)},handlerExpression(e){return this.expr.handler(this,e)},encodeExpression(e){return this.expr.encode(this,e)},parse:function(e){const t=this,n=e.operators||[];return e.background&&(t.background=e.background),e.eventConfig&&(t.eventConfig=e.eventConfig),e.locale&&(t.locale=e.locale),n.forEach((e=>t.parseOperator(e))),n.forEach((e=>t.parseOperatorParameters(e))),(e.streams||[]).forEach((e=>t.parseStream(e))),(e.updates||[]).forEach((e=>t.parseUpdate(e))),t.resolve()},parseOperator:function(e){const t=this;!function(e){return"operator"===wH(e)}(e.type)&&e.type?t.transform(e,e.type):t.operator(e,e.update?t.operatorExpression(e.update):null)},parseOperatorParameters:function(e){const t=this;if(e.params){const n=t.get(e.id);n||Ai("Invalid operator id: "+e.id),t.dataflow.connect(n,n.parameters(t.parseParameters(e.params),e.react,e.initonly))}},parseParameters:function(e,t){t=t||{};const n=this;for(const r in e){const i=e[r];t[r]=qi(i)?i.map((e=>EH(e,n,t))):EH(i,n,t)}return t},parseStream:function(e){var t,n=this,r=null!=e.filter?n.eventExpression(e.filter):void 0,i=null!=e.stream?n.get(e.stream):void 0;e.source?i=n.events(e.source,e.type,r):e.merge&&(i=(t=e.merge.map((e=>n.get(e))))[0].merge.apply(t[0],t.slice(1))),e.between&&(t=e.between.map((e=>n.get(e))),i=i.between(t[0],t[1])),e.filter&&(i=i.filter(r)),null!=e.throttle&&(i=i.throttle(+e.throttle)),null!=e.debounce&&(i=i.debounce(+e.debounce)),null==i&&Ai("Invalid stream definition: "+JSON.stringify(e)),e.consume&&i.consume(!0),n.stream(e,i)},parseUpdate:function(e){var t,n=this,r=Wi(r=e.source)?r.$ref:r,i=n.get(r),o=e.update,a=void 0;i||Ai("Source not defined: "+e.source),t=e.target&&e.target.$expr?n.eventExpression(e.target.$expr):n.get(e.target),o&&o.$expr&&(o.$params&&(a=n.parseParameters(o.$params)),o=n.handlerExpression(o.$expr)),n.update(e,i,t,o,a)},getState:function(e){var t=this,n={};if(e.signals){var r=n.signals={};Object.keys(t.signals).forEach((n=>{const i=t.signals[n];e.signals(n,i)&&(r[n]=i.value)}))}if(e.data){var i=n.data={};Object.keys(t.data).forEach((n=>{const r=t.data[n];e.data(n,r)&&(i[n]=r.input.value)}))}return t.subcontext&&!1!==e.recurse&&(n.subcontext=t.subcontext.map((t=>t.getState(e)))),n},setState:function(e){var t=this,n=t.dataflow,r=e.data,i=e.signals;Object.keys(i||{}).forEach((e=>{n.update(t.signals[e],i[e],SH)})),Object.keys(r||{}).forEach((e=>{n.pulse(t.data[e].input,n.changeset().remove(Ii).insert(r[e]))})),(e.subcontext||[]).forEach(((e,n)=>{const r=t.subcontext[n];r&&r.setState(e)}))}};var MH,OH,FH=0,PH=0,NH=0,IH=0,BH=0,jH=0,LH="object"==typeof performance&&performance.now?performance:Date,zH="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function RH(){return BH||(zH($H),BH=LH.now()+jH)}function $H(){BH=0}function HH(){this._call=this._time=this._next=null}function UH(){BH=(IH=LH.now())+jH,FH=PH=0;try{!function(){RH(),++FH;for(var e,t=MH;t;)(e=BH-t._time)>=0&&t._call.call(null,e),t=t._next;--FH}()}finally{FH=0,function(){for(var e,t,n=MH,r=1/0;n;)n._call?(r>n._time&&(r=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:MH=t);OH=e,WH(r)}(),BH=0}}function qH(){var e=LH.now(),t=e-IH;t>1e3&&(jH-=t,IH=e)}function WH(e){FH||(PH&&(PH=clearTimeout(PH)),e-BH>24?(e<1/0&&(PH=setTimeout(UH,e-LH.now()-jH)),NH&&(NH=clearInterval(NH))):(NH||(IH=LH.now(),NH=setInterval(qH,1e3)),FH=1,zH(UH)))}function VH(e,t){e&&(null==t?e.removeAttribute("aria-label"):e.setAttribute("aria-label",t))}HH.prototype=function(e,t,n){var r=new HH;return r.restart(e,t,n),r}.prototype={constructor:HH,restart:function(e,t,n){if("function"!=typeof e)throw new TypeError("callback is not a function");n=(null==n?RH():+n)+(null==t?0:+t),this._next||OH===this||(OH?OH._next=this:MH=this,OH=this),this._call=e,this._time=n,WH()},stop:function(){this._call&&(this._call=null,this._time=1/0,WH())}};const GH="default";function XH(e,t){const n=e.globalCursor()?"undefined"!=typeof document&&document.body:e.container();if(n)return null==t?n.style.removeProperty("cursor"):n.style.cursor=t}function YH(e,t){var n=e._runtime.data;return Mo(n,t)||Ai("Unrecognized data set: "+t),n[t]}function JH(e,t){zh(t)||Ai("Second argument to changes must be a changeset.");const n=YH(this,e);return n.modified=!0,this.pulse(n.input,t)}function ZH(e){var t=e.padding();return Math.max(0,e._viewWidth+t.left+t.right)}function KH(e){var t=e.padding();return Math.max(0,e._viewHeight+t.top+t.bottom)}function QH(e){var t=e.padding(),n=e._origin;return[t.left+n[0],t.top+n[1]]}const eU="view",tU={trap:!1};function nU(e,t,n,r){e._eventListeners.push({type:n,sources:go(t),handler:r})}function rU(e,t,n){const r=e._eventConfig&&e._eventConfig[t];return!(!1===r||Wi(r)&&!r[n])||(e.warn(`Blocked ${t} ${n} event listener.`),!1)}function iU(e){return e.item}function oU(e){return e.item.mark.source}function aU(e){return function(t,n){return n.vega.view().changeset().encode(n.item,e)}}function sU(e,t,n){const r=document.createElement(e);for(const e in t)r.setAttribute(e,t[e]);return null!=n&&(r.textContent=n),r}function lU(e,t,n,r){const i=n.event||"input",o=()=>e.update(t.value);r.signal(n.signal,t.value),t.addEventListener(i,o),nU(r,t,i,o),e.set=e=>{t.value=e,t.dispatchEvent(function(e){return"undefined"!=typeof Event?new Event(e):{type:e}}(i))}}function cU(e,t,n,r){const i=r.signal(n.signal),o=sU("div",{class:"vega-bind"}),a="radio"===n.input?o:o.appendChild(sU("label"));a.appendChild(sU("span",{class:"vega-bind-name"},n.name||n.signal)),t.appendChild(o);let s=uU;switch(n.input){case"checkbox":s=hU;break;case"select":s=dU;break;case"radio":s=fU;break;case"range":s=pU}s(e,a,n,i)}function uU(e,t,n,r){const i=sU("input");for(const e in n)"signal"!==e&&"element"!==e&&i.setAttribute("input"===e?"type":e,n[e]);i.setAttribute("name",n.signal),i.value=r,t.appendChild(i),i.addEventListener("input",(()=>e.update(i.value))),e.elements=[i],e.set=e=>i.value=e}function hU(e,t,n,r){const i={type:"checkbox",name:n.signal};r&&(i.checked=!0);const o=sU("input",i);t.appendChild(o),o.addEventListener("change",(()=>e.update(o.checked))),e.elements=[o],e.set=e=>o.checked=!!e||null}function dU(e,t,n,r){const i=sU("select",{name:n.signal}),o=n.labels||[];n.options.forEach(((e,t)=>{const n={value:e};mU(e,r)&&(n.selected=!0),i.appendChild(sU("option",n,(o[t]||e)+""))})),t.appendChild(i),i.addEventListener("change",(()=>{e.update(n.options[i.selectedIndex])})),e.elements=[i],e.set=e=>{for(let t=0,r=n.options.length;t{const s={type:"radio",name:n.signal,value:t};mU(t,r)&&(s.checked=!0);const l=sU("input",s);l.addEventListener("change",(()=>e.update(t)));const c=sU("label",{},(o[a]||t)+"");return c.prepend(l),i.appendChild(c),l})),e.set=t=>{const n=e.elements,r=n.length;for(let e=0;e=Wj?h*=10:d>=Vj?h*=5:d>=Gj&&(h*=2),c{f.textContent=s.value,e.update(+s.value)};s.addEventListener("input",p),s.addEventListener("change",p),e.elements=[s],e.set=e=>{s.value=e,f.textContent=e}}function mU(e,t){return e===t||e+""==t+""}function gU(e,t,n,r,i,o){return(t=t||new r(e.loader())).initialize(n,ZH(e),KH(e),QH(e),i,o).background(e.background())}function vU(e,t){return t?function(){try{t.apply(this,arguments)}catch(t){e.error(t)}}:null}function yU(e,t,n){if("string"==typeof t){if("undefined"==typeof document)return e.error("DOM document instance not found."),null;if(!(t=document.querySelector(t)))return e.error("Signal bind element not found: "+t),null}if(t&&n)try{t.innerHTML=""}catch(n){t=null,e.error(n)}return t}const bU=e=>+e||0;function xU(e){return Wi(e)?{top:bU(e.top),bottom:bU(e.bottom),left:bU(e.left),right:bU(e.right)}:(e=>({top:e,bottom:e,left:e,right:e}))(bU(e))}async function wU(e,t,n,r){const i=YS(t),o=i&&i.headless;return o||Ai("Unrecognized renderer type: "+t),await e.runAsync(),gU(e,null,null,o,n,r).renderAsync(e._scenegraph.root)}var _U="padding",kU={skip:!0};function EU(e,t){var n=e.autosize(),r=e.padding();return t-(n&&n.contains===_U?r.left+r.right:0)}function CU(e,t){var n=e.autosize(),r=e.padding();return t-(n&&n.contains===_U?r.top+r.bottom:0)}function SU(e,t){return t.modified&&qi(t.input.value)&&e.indexOf("_:vega:_")}function DU(e,t){return!("parent"===e||t instanceof hd.proxy)}function AU(e,t,n,r){const i=e.element();i&&i.setAttribute("title",function(e){return null==e?"":qi(e)?TU(e):Wi(e)&&!jo(e)?(t=e,Object.keys(t).map((e=>{const n=t[e];return e+": "+(qi(n)?TU(n):MU(n))})).join("\n")):e+"";var t}(r))}function TU(e){return"["+e.map(MU).join(", ")+"]"}function MU(e){return qi(e)?"[…]":Wi(e)&&!jo(e)?"{…}":e}function OU(e,t){const n=this;if(t=t||{},ld.call(n),t.loader&&n.loader(t.loader),t.logger&&n.logger(t.logger),null!=t.logLevel&&n.logLevel(t.logLevel),t.locale||e.locale){const r=So({},e.locale,t.locale);n.locale(Zu(r.number,r.time))}n._el=null,n._elBind=null,n._renderType=t.renderer||GS.Canvas,n._scenegraph=new TC;const r=n._scenegraph.root;n._renderer=null,n._tooltip=t.tooltip||AU,n._redraw=!0,n._handler=(new tS).scene(r),n._globalCursor=!1,n._preventDefault=!1,n._timers=[],n._eventListeners=[],n._resizeListeners=[],n._eventConfig=function(e){const t=So({defaults:{}},e),n=(e,t)=>{t.forEach((t=>{qi(e[t])&&(e[t]=ea(e[t]))}))};return n(t.defaults,["prevent","allow"]),n(t,["view","window","selector"]),t}(e.eventConfig),n.globalCursor(n._eventConfig.globalCursor);const i=function(e,t,n){return DH(e,hd,hH,n).parse(t)}(n,e,t.expr);n._runtime=i,n._signals=i.signals,n._bind=(e.bindings||[]).map((e=>({state:null,param:So({},e)}))),i.root&&i.root.set(r),r.source=i.data.root.input,n.pulse(i.data.root.input,n.changeset().insert(r.items)),n._width=n.width(),n._height=n.height(),n._viewWidth=EU(n,n._width),n._viewHeight=CU(n,n._height),n._origin=[0,0],n._resize=0,n._autosize=1,function(e){var t=e._signals,n=t.width,r=t.height,i=t.padding;function o(){e._autosize=e._resize=1}e._resizeWidth=e.add(null,(t=>{e._width=t.size,e._viewWidth=EU(e,t.size),o()}),{size:n}),e._resizeHeight=e.add(null,(t=>{e._height=t.size,e._viewHeight=CU(e,t.size),o()}),{size:r});const a=e.add(null,o,{pad:i});e._resizeWidth.rank=n.rank+1,e._resizeHeight.rank=r.rank+1,a.rank=i.rank+1}(n),function(e){e.add(null,(t=>(e._background=t.bg,e._resize=1,t.bg)),{bg:e._signals.background})}(n),function(e){const t=e._signals.cursor||(e._signals.cursor=e.add({user:GH,item:null}));e.on(e.events("view","mousemove"),t,((e,n)=>{const r=t.value,i=r?$o(r)?r:r.user:GH,o=n.item&&n.item.cursor||null;return r&&i===r.user&&o==r.item?r:{user:i,item:o}})),e.add(null,(function(t){let n=t.cursor,r=this.value;return $o(n)||(r=n.item,n=n.user),XH(e,n&&n!==GH?n:r||n),r}),{cursor:t})}(n),n.description(e.description),t.hover&&n.hover(),t.container&&n.initialize(t.container,t.bind)}function FU(e,t){return Mo(e._signals,t)?e._signals[t]:Ai("Unrecognized signal name: "+Yo(t))}function PU(e,t){const n=(e._targets||[]).filter((e=>e._update&&e._update.handler===t));return n.length?n[0]:null}function NU(e,t,n,r){let i=PU(n,r);return i||(i=vU(e,(()=>r(t,n.value))),i.handler=r,e.on(n,null,i)),e}function IU(e,t,n){const r=PU(t,n);return r&&t._targets.remove(r),e}No(OU,ld,{async evaluate(e,t,n){if(await ld.prototype.evaluate.call(this,e,t),this._redraw||this._resize)try{this._renderer&&(this._resize&&(this._resize=0,i=QH(r=this),o=ZH(r),a=KH(r),r._renderer.background(r.background()),r._renderer.resize(o,a,i),r._handler.origin(i),r._resizeListeners.forEach((e=>{try{e(o,a)}catch(e){r.error(e)}}))),await this._renderer.renderAsync(this._scenegraph.root)),this._redraw=!1}catch(e){this.error(e)}var r,i,o,a;return n&&Ah(this,n),this},dirty(e){this._redraw=!0,this._renderer&&this._renderer.dirty(e)},description(e){if(arguments.length){const t=null!=e?e+"":null;return t!==this._desc&&VH(this._el,this._desc=t),this}return this._desc},container(){return this._el},scenegraph(){return this._scenegraph},origin(){return this._origin.slice()},signal(e,t,n){const r=FU(this,e);return 1===arguments.length?r.value:this.update(r,t,n)},width(e){return arguments.length?this.signal("width",e):this.signal("width")},height(e){return arguments.length?this.signal("height",e):this.signal("height")},padding(e){return arguments.length?this.signal("padding",xU(e)):xU(this.signal("padding"))},autosize(e){return arguments.length?this.signal("autosize",e):this.signal("autosize")},background(e){return arguments.length?this.signal("background",e):this.signal("background")},renderer(e){return arguments.length?(YS(e)||Ai("Unrecognized renderer type: "+e),e!==this._renderType&&(this._renderType=e,this._resetRenderer()),this):this._renderType},tooltip(e){return arguments.length?(e!==this._tooltip&&(this._tooltip=e,this._resetRenderer()),this):this._tooltip},loader(e){return arguments.length?(e!==this._loader&&(ld.prototype.loader.call(this,e),this._resetRenderer()),this):this._loader},resize(){return this._autosize=1,this.touch(FU(this,"autosize"))},_resetRenderer(){this._renderer&&(this._renderer=null,this.initialize(this._el,this._elBind))},_resizeView:function(e,t,n,r,i,o){this.runAfter((a=>{let s=0;a._autosize=0,a.width()!==n&&(s=1,a.signal("width",n,kU),a._resizeWidth.skip(!0)),a.height()!==r&&(s=1,a.signal("height",r,kU),a._resizeHeight.skip(!0)),a._viewWidth!==e&&(a._resize=1,a._viewWidth=e),a._viewHeight!==t&&(a._resize=1,a._viewHeight=t),a._origin[0]===i[0]&&a._origin[1]===i[1]||(a._resize=1,a._origin=i),s&&a.run("enter"),o&&a.runAfter((e=>e.resize()))}),!1,1)},addEventListener(e,t,n){let r=t;return n&&!1===n.trap||(r=vU(this,t),r.raw=t),this._handler.on(e,r),this},removeEventListener(e,t){for(var n,r,i=this._handler.handlers(e),o=i.length;--o>=0;)if(r=i[o].type,n=i[o].handler,e===r&&(t===n||t===n.raw)){this._handler.off(r,n);break}return this},addResizeListener(e){const t=this._resizeListeners;return t.indexOf(e)<0&&t.push(e),this},removeResizeListener(e){var t=this._resizeListeners,n=t.indexOf(e);return n>=0&&t.splice(n,1),this},addSignalListener(e,t){return NU(this,e,FU(this,e),t)},removeSignalListener(e,t){return IU(this,FU(this,e),t)},addDataListener(e,t){return NU(this,e,YH(this,e).values,t)},removeDataListener(e,t){return IU(this,YH(this,e).values,t)},globalCursor(e){if(arguments.length){if(this._globalCursor!==!!e){const t=XH(this,null);this._globalCursor=!!e,t&&XH(this,t)}return this}return this._globalCursor},preventDefault(e){return arguments.length?(this._preventDefault=e,this):this._preventDefault},timer:function(e,t){this._timers.push(function(e,t,n){var r=new HH,i=t;return null==t?(r.restart(e,t,n),r):(r._restart=r.restart,r.restart=function(e,t,n){t=+t,n=null==n?RH():+n,r._restart((function o(a){a+=i,r._restart(o,i+=t,n),e(a)}),t,n)},r.restart(e,t,n),r)}((function(t){e({timestamp:Date.now(),elapsed:t})}),t))},events:function(e,t,n){var r,i=this,o=new Xh(n),a=function(n,r){i.runAsync(null,(()=>{e===eU&&function(e,t){var n=e._eventConfig.defaults,r=n.prevent,i=n.allow;return!1!==r&&!0!==i&&(!0===r||!1===i||(r?r[t]:i?!i[t]:e.preventDefault()))}(i,t)&&n.preventDefault(),o.receive(function(e,t,n){var r,i,o=e._renderer,a=o&&o.canvas();return a&&(i=QH(e),(r=BC(t.changedTouches?t.changedTouches[0]:t,a))[0]-=i[0],r[1]-=i[1]),t.dataflow=e,t.item=n,t.vega=function(e,t,n){const r=t?"group"===t.mark.marktype?t:t.mark.group:null;function i(e){var n,i=r;if(e)for(n=t;n;n=n.mark.group)if(n.mark.name===e){i=n;break}return i&&i.mark&&i.mark.interactive?i:{}}function o(e){if(!e)return n;$o(e)&&(e=i(e));const t=n.slice();for(;e;)t[0]-=e.x||0,t[1]-=e.y||0,e=e.mark&&e.mark.group;return t}return{view:Eo(e),item:Eo(t||{}),group:i,xy:o,x:e=>o(e)[0],y:e=>o(e)[1]}}(e,n,r),t}(i,n,r))}))};if("timer"===e)rU(i,"timer",t)&&i.timer(a,t);else if(e===eU)rU(i,"view",t)&&i.addEventListener(t,a,tU);else if("window"===e?rU(i,"window",t)&&"undefined"!=typeof window&&(r=[window]):"undefined"!=typeof document&&rU(i,"selector",t)&&(r=document.querySelectorAll(e)),r){for(var s=0,l=r.length;s=0;)i[e].stop();for(e=o.length;--e>=0;)for(t=(n=o[e]).sources.length;--t>=0;)n.sources[t].removeEventListener(n.type,n.handler);return r&&r.call(this,this._handler,null,null,null),this},hover:function(e,t){return t=[t||"update",(e=[e||"hover"])[0]],this.on(this.events("view","mouseover",iU),oU,aU(e)),this.on(this.events("view","mouseout",iU),oU,aU(t)),this},data:function(e,t){return arguments.length<2?YH(this,e).values.value:JH.call(this,e,Rh().remove(Ii).insert(t))},change:JH,insert:function(e,t){return JH.call(this,e,Rh().insert(t))},remove:function(e,t){return JH.call(this,e,Rh().remove(t))},scale:function(e){var t=this._runtime.scales;return Mo(t,e)||Ai("Unrecognized scale or projection: "+e),t[e].value},initialize:function(e,t){const n=this,r=n._renderType,i=n._eventConfig.bind,o=YS(r);e=n._el=e?yU(n,e,!0):null,function(e){const t=e.container();t&&(t.setAttribute("role","graphics-document"),t.setAttribute("aria-roleDescription","visualization"),VH(t,e.description()))}(n),o||n.error("Unrecognized renderer type: "+r);const a=o.handler||tS,s=e?o.renderer:o.headless;return n._renderer=s?gU(n,n._renderer,e,s):null,n._handler=function(e,t,n,r){const i=new r(e.loader(),vU(e,e.tooltip())).scene(e.scenegraph().root).initialize(n,QH(e),e);return t&&t.handlers().forEach((e=>{i.on(e.type,e.handler)})),i}(n,n._handler,e,a),n._redraw=!0,e&&"none"!==i&&(t=t?n._elBind=yU(n,t,!0):e.appendChild(sU("form",{class:"vega-bindings"})),n._bind.forEach((e=>{e.param.element&&"container"!==i&&(e.element=yU(n,e.param.element,!!e.param.input))})),n._bind.forEach((e=>{!function(e,t,n){if(!t)return;const r=n.param;let i=n.state;i||(i=n.state={elements:null,active:!1,set:null,update:t=>{t!=e.signal(r.signal)&&e.runAsync(null,(()=>{i.source=!0,e.signal(r.signal,t)}))}},r.debounce&&(i.update=Co(r.debounce,i.update))),(null==r.input&&r.element?lU:cU)(i,t,r,e),i.active||(e.on(e._signals[r.signal],null,(()=>{i.source?i.source=!1:i.set(e.signal(r.signal))})),i.active=!0)}(n,e.element||t,e)}))),n},toImageURL:async function(e,t){e!==GS.Canvas&&e!==GS.SVG&&e!==GS.PNG&&Ai("Unrecognized image type: "+e);const n=await wU(this,e,t);return e===GS.SVG?function(e,t){const n=new Blob([e],{type:"image/svg+xml"});return window.URL.createObjectURL(n)}(n.svg()):n.canvas().toDataURL("image/png")},toCanvas:async function(e,t){return(await wU(this,GS.Canvas,e,t)).canvas()},toSVG:async function(e){return(await wU(this,GS.SVG,e)).svg()},getState:function(e){return this._runtime.getState(e||{data:SU,signals:DU,recurse:!0})},setState:function(e){return this.runAsync(null,(t=>{t._trigger=!1,t._runtime.setState(e)}),(e=>{e._trigger=!0})),this}});const BU=/[[\]{}]/,jU={"*":1,arc:1,area:1,group:1,image:1,line:1,path:1,rect:1,rule:1,shape:1,symbol:1,text:1,trail:1};let LU,zU;function RU(e,t,n){return LU=t||"view",zU=n||jU,HU(e.trim()).map(UU)}function $U(e,t,n,r,i){const o=e.length;let a,s=0;for(;t=0?--s:r&&r.indexOf(a)>=0&&++s}return t}function HU(e){const t=[],n=e.length;let r=0,i=0;for(;i"!==(e=e.slice(r+1).trim())[0])throw"Expected '>' after between selector: "+e;n=n.map(UU);const i=UU(e.slice(1).trim());return i.between?{between:n,stream:i}:(i.between=n,i)}(e):function(e){const t={source:LU},n=[];let r,i,o=[0,0],a=0,s=0,l=e.length,c=0;if("}"===e[l-1]){if(c=e.lastIndexOf("{"),!(c>=0))throw"Unmatched right brace: "+e;try{o=function(e){const t=e.split(",");if(!e.length||t.length>2)throw e;return t.map((t=>{const n=+t;if(n!=n)throw e;return n}))}(e.substring(c+1,l-1))}catch(t){throw"Invalid throttle specification: "+e}l=(e=e.slice(0,c).trim()).length,c=0}if(!l)throw e;if("@"===e[0]&&(a=++c),r=$U(e,c,":"),r1?(t.type=n[1],a?t.markname=n[0].slice(1):function(e){return zU[e]}(n[0])?t.marktype=n[0]:t.source=n[0]):t.type=n[0],"!"===t.type.slice(-1)&&(t.consume=!0,t.type=t.type.slice(0,-1)),null!=i&&(t.filter=i),o[0]&&(t.throttle=o[0]),o[1]&&(t.debounce=o[1]),t}(e)}function qU(e){return Wi(e)?e:{type:e||"pad"}}const WU=e=>+e||0;function VU(e){return Wi(e)?e.signal?e:{top:WU(e.top),bottom:WU(e.bottom),left:WU(e.left),right:WU(e.right)}:{top:t=WU(e),bottom:t,left:t,right:t};var t}const GU=e=>Wi(e)&&!qi(e)?So({},e):{value:e};function XU(e,t,n,r){return null!=n?(Wi(n)&&!qi(n)||qi(n)&&n.length&&Wi(n[0])?e.update[t]=n:e[r||"enter"][t]={value:n},1):0}function YU(e,t,n){for(const n in t)XU(e,n,t[n]);for(const t in n)XU(e,t,n[t],"update")}function JU(e,t,n){for(const r in t)n&&Mo(n,r)||(e[r]=So(e[r]||{},t[r]));return e}function ZU(e,t){return t&&(t.enter&&t.enter[e]||t.update&&t.update[e])}const KU="mark",QU="frame",eq="scope",tq="legend-label";function nq(e,t,n){e[t]=n&&n.signal?{signal:n.signal}:{value:n}}const rq=e=>$o(e)?Yo(e):e.signal?`(${e.signal})`:sq(e);function iq(e){if(null!=e.gradient)return function(e){const t=[e.start,e.stop,e.count].map((e=>null==e?null:Yo(e)));for(;t.length&&null==Ji(t);)t.pop();return t.unshift(rq(e.gradient)),`gradient(${t.join(",")})`}(e);let t=e.signal?`(${e.signal})`:e.color?function(e){return e.c?oq("hcl",e.h,e.c,e.l):e.h||e.s?oq("hsl",e.h,e.s,e.l):e.l||e.a?oq("lab",e.l,e.a,e.b):e.r||e.g||e.b?oq("rgb",e.r,e.g,e.b):null}(e.color):null!=e.field?sq(e.field):void 0!==e.value?Yo(e.value):void 0;return null!=e.scale&&(t=function(e,t){const n=rq(e.scale);return null!=e.range?t=`lerp(_range(${n}), ${+e.range})`:(void 0!==t&&(t=`_scale(${n}, ${t})`),e.band&&(t=(t?t+"+":"")+`_bandwidth(${n})`+(1==+e.band?"":"*"+aq(e.band)),e.extra&&(t=`(datum.extra ? _scale(${n}, datum.extra.value) : ${t})`)),null==t&&(t="0")),t}(e,t)),void 0===t&&(t=null),null!=e.exponent&&(t=`pow(${t},${aq(e.exponent)})`),null!=e.mult&&(t+=`*${aq(e.mult)}`),null!=e.offset&&(t+=`+${aq(e.offset)}`),e.round&&(t=`round(${t})`),t}const oq=(e,t,n,r)=>`(${e}(${[t,n,r].map(iq).join(",")})+'')`;function aq(e){return Wi(e)?"("+iq(e)+")":e}function sq(e){return lq(Wi(e)?e:{datum:e})}function lq(e){let t,n,r;if(e.signal)t="datum",r=e.signal;else if(e.group||e.parent){for(n=Math.max(1,e.level||1),t="item";n-- >0;)t+=".mark.group";e.parent?(r=e.parent,t+=".datum"):r=e.group}else e.datum?(t="datum",r=e.datum):Ai("Invalid field reference: "+Yo(e));return e.signal||(r=$o(r)?Ti(r).map(Yo).join("]["):lq(r)),t+"["+r+"]"}function cq(e,t,n,r,i,o){const a={};(o=o||{}).encoders={$encode:a},e=function(e,t,n,r,i){const o={},a={};let s,l,c,u;for(l in l="lineBreak","text"!==t||null==i[l]||ZU(l,e)||nq(o,l,i[l]),("legend"==n||String(n).startsWith("axis"))&&(n=null),u=n===QU?i.group:n===KU?So({},i.mark,i[t]):null,u)c=ZU(l,e)||("fill"===l||"stroke"===l)&&(ZU("fill",e)||ZU("stroke",e)),c||nq(o,l,u[l]);for(l in go(r).forEach((t=>{const n=i.style&&i.style[t];for(const t in n)ZU(t,e)||nq(o,t,n[t])})),e=So({},e),o)u=o[l],u.signal?(s=s||{})[l]=u:a[l]=u;return e.enter=So(a,e.enter),s&&(e.update=So(s,e.update)),e}(e,t,n,r,i.config);for(const n in e)a[n]=uq(e[n],t,o,i);return o}function uq(e,t,n,r){const i={},o={};for(const t in e)null!=e[t]&&(i[t]=hq((a=e[t],qi(a)?function(e){let t="";return e.forEach((e=>{const n=iq(e);t+=e.test?`(${e.test})?${n}:`:n})),":"===Ji(t)&&(t+="null"),t}(a):iq(a)),r,n,o));var a;return{$expr:{marktype:t,channels:i},$fields:Object.keys(o),$output:Object.keys(e)}}function hq(e,t,n,r){const i=yH(e,t);return i.$fields.forEach((e=>r[e]=1)),So(n,i.$params),i.$expr}const dq=["value","update","init","react","bind"];function fq(e,t){Ai(e+' for "outer" push: '+Yo(t))}function pq(e,t){const n=e.name;if("outer"===e.push)t.signals[n]||fq("No prior signal definition",n),dq.forEach((t=>{void 0!==e[t]&&fq("Invalid property ",t)}));else{const r=t.addSignal(n,e.value);!1===e.react&&(r.react=!1),e.bind&&t.addBinding(n,e.bind)}}function mq(e,t,n,r){this.id=-1,this.type=e,this.value=t,this.params=n,r&&(this.parent=r)}function gq(e,t,n,r){return new mq(e,t,n,r)}function vq(e,t){return gq("operator",e,t)}function yq(e){const t={$ref:e.id};return e.id<0&&(e.refs=e.refs||[]).push(t),t}function bq(e,t){return t?{$field:e,$name:t}:{$field:e}}const xq=bq("key");function wq(e,t){return{$compare:e,$order:t}}function _q(e,t){return(e&&e.signal?"$"+e.signal:e||"")+(e&&t?"_":"")+(t&&t.signal?"$"+t.signal:t||"")}const kq="scope",Eq="view";function Cq(e){return e&&e.signal}function Sq(e){if(Cq(e))return!0;if(Wi(e))for(const t in e)if(Sq(e[t]))return!0;return!1}function Dq(e,t){return null!=e?e:t}function Aq(e){return e&&e.signal||e}const Tq="timer";function Mq(e,t){return(e.merge?Oq:e.stream?Fq:e.type?Pq:Ai("Invalid stream specification: "+Yo(e)))(e,t)}function Oq(e,t){const n=Nq({merge:e.merge.map((e=>Mq(e,t)))},e,t);return t.addStream(n).id}function Fq(e,t){const n=Nq({stream:Mq(e.stream,t)},e,t);return t.addStream(n).id}function Pq(e,t){let n;var r;e.type===Tq?(n=t.event(Tq,e.throttle),e={between:e.between,filter:e.filter}):n=t.event((r=e.source)===kq?Eq:r||Eq,e.type);const i=Nq({stream:n},e,t);return 1===Object.keys(i).length?n:t.addStream(i).id}function Nq(e,t,n){let r=t.between;return r&&(2!==r.length&&Ai('Stream "between" parameter must have 2 entries: '+Yo(t)),e.between=[Mq(r[0],n),Mq(r[1],n)]),r=t.filter?[].concat(t.filter):[],(t.marktype||t.markname||t.markrole)&&r.push(function(e,t,n){const r="event.item";return r+(e&&"*"!==e?"&&"+r+".mark.marktype==='"+e+"'":"")+(n?"&&"+r+".mark.role==='"+n+"'":"")+(t?"&&"+r+".mark.name==='"+t+"'":"")}(t.marktype,t.markname,t.markrole)),t.source===kq&&r.push("inScope(event.item)"),r.length&&(e.filter=yH("("+r.join(")&&(")+")",n).$expr),null!=(r=t.throttle)&&(e.throttle=+r),null!=(r=t.debounce)&&(e.debounce=+r),t.consume&&(e.consume=!0),e}const Iq={code:"_.$value",ast:{type:"Identifier",value:"value"}};function Bq(e){return{signal:"["+e.map((e=>e.scale?'scale("'+e.scale+'")':e.signal))+"]"}}const jq=e=>(t,n,r)=>gq(e,n,t||void 0,r),Lq=jq("aggregate"),zq=jq("axisticks"),Rq=jq("bound"),$q=jq("collect"),Hq=jq("compare"),Uq=jq("datajoin"),qq=jq("encode"),Wq=jq("expression"),Vq=jq("facet"),Gq=jq("field"),Xq=jq("key"),Yq=jq("legendentries"),Jq=jq("load"),Zq=jq("mark"),Kq=jq("multiextent"),Qq=jq("multivalues"),eW=jq("overlap"),tW=jq("params"),nW=jq("prefacet"),rW=jq("projection"),iW=jq("proxy"),oW=jq("relay"),aW=jq("render"),sW=jq("scale"),lW=jq("sieve"),cW=jq("sortitems"),uW=jq("viewlayout"),hW=jq("values");let dW=0;const fW={min:"min",max:"max",count:"sum"};function pW(e,t){const n=t.getScale(e.name).params;let r;for(r in n.domain=yW(e.domain,e,t),null!=e.range&&(n.range=SW(e,t,n)),null!=e.interpolate&&function(e,t){t.interpolate=mW(e.type||e),null!=e.gamma&&(t.interpolateGamma=mW(e.gamma))}(e.interpolate,n),null!=e.nice&&(n.nice=Wi(i=e.nice)?{interval:mW(i.interval),step:mW(i.step)}:mW(i)),null!=e.bins&&(n.bins=function(e,t){return e.signal||qi(e)?gW(e,t):t.objectProperty(e)}(e.bins,t)),e)Mo(n,r)||"name"===r||(n[r]=mW(e[r],t));var i}function mW(e,t){return Wi(e)?e.signal?t.signalRef(e.signal):Ai("Unsupported object: "+Yo(e)):e}function gW(e,t){return e.signal?t.signalRef(e.signal):e.map((e=>mW(e,t)))}function vW(e){Ai("Can not find data set: "+Yo(e))}function yW(e,t,n){if(e)return e.signal?n.signalRef(e.signal):(qi(e)?bW:e.fields?wW:xW)(e,t,n);null==t.domainMin&&null==t.domainMax||Ai("No scale domain defined for domainMin/domainMax to override.")}function bW(e,t,n){return e.map((e=>mW(e,n)))}function xW(e,t,n){const r=n.getData(e.data);return r||vW(e.data),Gw(t.type)?r.valuesRef(n,e.field,kW(e.sort,!1)):Zw(t.type)?r.domainRef(n,e.field):r.extentRef(n,e.field)}function wW(e,t,n){const r=e.data,i=e.fields.reduce(((e,t)=>(t=$o(t)?{data:r,field:t}:qi(t)||t.signal?function(e,t){const n="_:vega:_"+dW++,r=$q({});if(qi(e))r.value={$ingest:e};else if(e.signal){const i="setdata("+Yo(n)+","+e.signal+")";r.params.input=t.signalRef(i)}return t.addDataPipeline(n,[r,lW({})]),{data:n,field:"data"}}(t,n):t,e.push(t),e)),[]);return(Gw(t.type)?_W:Zw(t.type)?EW:CW)(e,n,i)}function _W(e,t,n){const r=kW(e.sort,!0);let i,o;const a=n.map((e=>{const n=t.getData(e.data);return n||vW(e.data),n.countsRef(t,e.field,r)})),s={groupby:xq,pulse:a};r&&(i=r.op||"count",o=r.field?_q(i,r.field):"count",s.ops=[fW[i]],s.fields=[t.fieldRef(o)],s.as=[o]),i=t.add(Lq(s));const l=t.add($q({pulse:yq(i)}));return o=t.add(hW({field:xq,sort:t.sortRef(r),pulse:yq(l)})),yq(o)}function kW(e,t){return e&&(e.field||e.op?e.field||"count"===e.op?t&&e.field&&e.op&&!fW[e.op]&&Ai("Multiple domain scales can not be sorted using "+e.op):Ai("No field provided for sort aggregate op: "+e.op):Wi(e)?e.field="key":e={field:"key"}),e}function EW(e,t,n){const r=n.map((e=>{const n=t.getData(e.data);return n||vW(e.data),n.domainRef(t,e.field)}));return yq(t.add(Qq({values:r})))}function CW(e,t,n){const r=n.map((e=>{const n=t.getData(e.data);return n||vW(e.data),n.extentRef(t,e.field)}));return yq(t.add(Kq({extents:r})))}function SW(e,t,n){const r=t.config.range;let i=e.range;if(i.signal)return t.signalRef(i.signal);if($o(i)){if(r&&Mo(r,i))return SW(e=So({},e,{range:r[i]}),t,n);"width"===i?i=[0,{signal:"width"}]:"height"===i?i=Gw(e.type)?[0,{signal:"height"}]:[{signal:"height"},0]:Ai("Unrecognized scale range value: "+Yo(i))}else{if(i.scheme)return n.scheme=qi(i.scheme)?gW(i.scheme,t):mW(i.scheme,t),i.extent&&(n.schemeExtent=gW(i.extent,t)),void(i.count&&(n.schemeCount=mW(i.count,t)));if(i.step)return void(n.rangeStep=mW(i.step,t));if(Gw(e.type)&&!qi(i))return yW(i,e,t);qi(i)||Ai("Unsupported range type: "+Yo(i))}return i.map((e=>(qi(e)?gW:mW)(e,t)))}function DW(e,t,n){return qi(e)?e.map((e=>DW(e,t,n))):Wi(e)?e.signal?n.signalRef(e.signal):"fit"===t?e:Ai("Unsupported parameter object: "+Yo(e)):e}const AW="top",TW="left",MW="right",OW="bottom",FW="label",PW="perc",NW="value",IW="guide-label",BW="guide-title",jW="symbol",LW="gradient",zW="discrete",RW="size",$W=[RW,"shape","fill","stroke","strokeWidth","strokeDash","opacity"],HW={name:1,style:1,interactive:1},UW={value:0},qW={value:1},WW="group",VW="rect",GW="rule",XW="text";function YW(e){return e.type=WW,e.interactive=e.interactive||!1,e}function JW(e,t){const n=(n,r)=>Dq(e[n],Dq(t[n],r));return n.isVertical=n=>"vertical"===Dq(e.direction,t.direction||(n?t.symbolDirection:t.gradientDirection)),n.gradientLength=()=>Dq(e.gradientLength,t.gradientLength||t.gradientWidth),n.gradientThickness=()=>Dq(e.gradientThickness,t.gradientThickness||t.gradientHeight),n.entryColumns=()=>Dq(e.columns,Dq(t.columns,+n.isVertical(!0))),n}function ZW(e,t){const n=t&&(t.update&&t.update[e]||t.enter&&t.enter[e]);return n&&n.signal?n:n?n.value:null}function KW(e,t,n){return`item.anchor === 'start' ? ${e} : item.anchor === 'end' ? ${t} : ${n}`}const QW=KW(Yo(TW),Yo(MW),Yo("center"));function eV(e,t){return t?e?Wi(e)?Object.assign({},e,{offset:eV(e.offset,t)}):{value:e,offset:t}:t:e}function tV(e,t){return t?(e.name=t.name,e.style=t.style||e.style,e.interactive=!!t.interactive,e.encode=JU(e.encode,t,HW)):e.interactive=!1,e}function nV(e,t,n,r){const i=JW(e,n),o=i.isVertical(),a=i.gradientThickness(),s=i.gradientLength();let l,c,u,h,d;o?(c=[0,1],u=[0,0],h=a,d=s):(c=[0,0],u=[1,0],h=s,d=a);const f={enter:l={opacity:UW,x:UW,y:UW,width:GU(h),height:GU(d)},update:So({},l,{opacity:qW,fill:{gradient:t,start:c,stop:u}}),exit:{opacity:UW}};return YU(f,{stroke:i("gradientStrokeColor"),strokeWidth:i("gradientStrokeWidth")},{opacity:i("gradientOpacity")}),tV({type:VW,role:"legend-gradient",encode:f},r)}function rV(e,t,n,r,i){const o=JW(e,n),a=o.isVertical(),s=o.gradientThickness(),l=o.gradientLength();let c,u,h,d,f="";a?(c="y",h="y2",u="x",d="width",f="1-"):(c="x",h="x2",u="y",d="height");const p={opacity:UW,fill:{scale:t,field:NW}};p[c]={signal:f+"datum."+PW,mult:l},p[u]=UW,p[h]={signal:f+"datum.perc2",mult:l},p[d]=GU(s);const m={enter:p,update:So({},p,{opacity:qW}),exit:{opacity:UW}};return YU(m,{stroke:o("gradientStrokeColor"),strokeWidth:o("gradientStrokeWidth")},{opacity:o("gradientOpacity")}),tV({type:VW,role:"legend-band",key:NW,from:i,encode:m},r)}function iV(e,t,n,r){const i=JW(e,t),o=i.isVertical(),a=GU(i.gradientThickness()),s=i.gradientLength();let l,c,u,h,d=i("labelOverlap"),f="";const p={enter:l={opacity:UW},update:c={opacity:qW,text:{field:FW}},exit:{opacity:UW}};return YU(p,{fill:i("labelColor"),fillOpacity:i("labelOpacity"),font:i("labelFont"),fontSize:i("labelFontSize"),fontStyle:i("labelFontStyle"),fontWeight:i("labelFontWeight"),limit:Dq(e.labelLimit,t.gradientLabelLimit)}),o?(l.align={value:"left"},l.baseline=c.baseline={signal:'datum.perc<=0?"bottom":datum.perc>=1?"top":"middle"'},u="y",h="x",f="1-"):(l.align=c.align={signal:'datum.perc<=0?"left":datum.perc>=1?"right":"center"'},l.baseline={value:"top"},u="x",h="y"),l[u]=c[u]={signal:f+"datum."+PW,mult:s},l[h]=c[h]=a,a.offset=Dq(e.labelOffset,t.gradientLabelOffset)||0,d=d?{separation:i("labelSeparation"),method:d,order:"datum.index"}:void 0,tV({type:XW,role:tq,style:IW,key:NW,from:r,encode:p,overlap:d},n)}function oV(e,t,n,r,i){const o=JW(e,t),a=n.entries,s=!(!a||!a.interactive),l=a?a.name:void 0,c=o("clipHeight"),u=o("symbolOffset"),h={data:"value"},d=`(${i}) ? datum.offset : datum.size`,f=c?GU(c):{field:RW},p="datum.index",m=`max(1, ${i})`;let g,v,y,b,x;f.mult=.5,g={enter:v={opacity:UW,x:{signal:d,mult:.5,offset:u},y:f},update:y={opacity:qW,x:v.x,y:v.y},exit:{opacity:UW}};let w=null,_=null;e.fill||(w=t.symbolBaseFillColor,_=t.symbolBaseStrokeColor),YU(g,{fill:o("symbolFillColor",w),shape:o("symbolType"),size:o("symbolSize"),stroke:o("symbolStrokeColor",_),strokeDash:o("symbolDash"),strokeDashOffset:o("symbolDashOffset"),strokeWidth:o("symbolStrokeWidth")},{opacity:o("symbolOpacity")}),$W.forEach((t=>{e[t]&&(y[t]=v[t]={scale:e[t],field:NW})}));const k=tV({type:"symbol",role:"legend-symbol",key:NW,from:h,clip:!!c||void 0,encode:g},n.symbols),E=GU(u);E.offset=o("labelOffset"),g={enter:v={opacity:UW,x:{signal:d,offset:E},y:f},update:y={opacity:qW,text:{field:FW},x:v.x,y:v.y},exit:{opacity:UW}},YU(g,{align:o("labelAlign"),baseline:o("labelBaseline"),fill:o("labelColor"),fillOpacity:o("labelOpacity"),font:o("labelFont"),fontSize:o("labelFontSize"),fontStyle:o("labelFontStyle"),fontWeight:o("labelFontWeight"),limit:o("labelLimit")});const C=tV({type:XW,role:tq,style:IW,key:NW,from:h,encode:g},n.labels);return g={enter:{noBound:{value:!c},width:UW,height:c?GU(c):UW,opacity:UW},exit:{opacity:UW},update:y={opacity:qW,row:{signal:null},column:{signal:null}}},o.isVertical(!0)?(b=`ceil(item.mark.items.length / ${m})`,y.row.signal=`${p}%${b}`,y.column.signal=`floor(${p} / ${b})`,x={field:["row",p]}):(y.row.signal=`floor(${p} / ${m})`,y.column.signal=`${p} % ${m}`,x={field:p}),y.column.signal=`(${i})?${y.column.signal}:${p}`,YW({role:eq,from:r={facet:{data:r,name:"value",groupby:"index"}},encode:JU(g,a,HW),marks:[k,C],name:l,interactive:s,sort:x})}const aV='item.orient === "left"',sV='item.orient === "right"',lV=`(${aV} || ${sV})`,cV=`datum.vgrad && ${lV}`,uV=KW('"top"','"bottom"','"middle"'),hV=`datum.vgrad && ${sV} ? (${KW('"right"','"left"','"center"')}) : (${lV} && !(datum.vgrad && ${aV})) ? "left" : ${QW}`,dV=`item._anchor || (${lV} ? "middle" : "start")`,fV=`${cV} ? (${aV} ? -90 : 90) : 0`,pV=`${lV} ? (datum.vgrad ? (${sV} ? "bottom" : "top") : ${uV}) : "top"`;function mV(e,t){let n;return Wi(e)&&(e.signal?n=e.signal:e.path?n="pathShape("+gV(e.path)+")":e.sphere&&(n="geoShape("+gV(e.sphere)+', {type: "Sphere"})')),n?t.signalRef(n):!!e}function gV(e){return Wi(e)&&e.signal?e.signal:Yo(e)}function vV(e){const t=e.role||"";return t.indexOf("axis")&&t.indexOf("legend")&&t.indexOf("title")?e.type===WW?eq:t||KU:t}function yV(e){return{marktype:e.type,name:e.name||void 0,role:e.role||vV(e),zindex:+e.zindex||void 0,aria:e.aria,description:e.description}}function bV(e,t){return e&&e.signal?t.signalRef(e.signal):!1!==e}function xV(e,t){const n=dd(e.type);n||Ai("Unrecognized transform type: "+Yo(e.type));const r=gq(n.type.toLowerCase(),null,wV(n,e,t));return e.signal&&t.addSignal(e.signal,t.proxy(r)),r.metadata=n.metadata||{},r}function wV(e,t,n){const r={},i=e.params.length;for(let o=0;oEV(e,t,n)))):EV(e,r,n)}(e,t,n):"projection"===r?n.projectionRef(t[e.name]):e.array&&!Cq(i)?i.map((t=>kV(e,t,n))):kV(e,i,n):void(e.required&&Ai("Missing required "+Yo(t.type)+" parameter: "+Yo(e.name)))}function kV(e,t,n){const r=e.type;if(Cq(t))return AV(r)?Ai("Expression references can not be signals."):TV(r)?n.fieldRef(t):MV(r)?n.compareRef(t):n.signalRef(t.signal);{const i=e.expr||TV(r);return i&&CV(t)?n.exprRef(t.expr,t.as):i&&SV(t)?bq(t.field,t.as):AV(r)?yH(t,n):DV(r)?yq(n.getData(t).values):TV(r)?bq(t):MV(r)?n.compareRef(t):t}}function EV(e,t,n){const r=e.params.length;let i;for(let n=0;ne&&e.expr,SV=e=>e&&e.field,DV=e=>"data"===e,AV=e=>"expr"===e,TV=e=>"field"===e,MV=e=>"compare"===e;function OV(e,t){return e.$ref?e:e.data&&e.data.$ref?e.data:yq(t.getData(e.data).output)}function FV(e,t,n,r,i){this.scope=e,this.input=t,this.output=n,this.values=r,this.aggregate=i,this.index={}}function PV(e){return $o(e)?e:null}function NV(e,t,n){const r=_q(n.op,n.field);let i;if(t.ops){for(let e=0,n=t.as.length;enull==e?"null":e)).join(",")+"),0)",t);l.update=c.$expr,l.params=c.$params}function jV(e,t){const n=vV(e),r=e.type===WW,i=e.from&&e.from.facet,o=e.overlap;let a,s,l,c,u,h,d,f=e.layout||n===eq||n===QU;const p=n===KU||f||i,m=function(e,t,n){let r,i,o,a,s;return e?(r=e.facet)&&(t||Ai("Only group marks can be faceted."),null!=r.field?a=s=OV(r,n):(e.data?s=yq(n.getData(e.data).aggregate):(o=xV(So({type:"aggregate",groupby:go(r.groupby)},r.aggregate),n),o.params.key=n.keyRef(r.groupby),o.params.pulse=OV(r,n),a=s=yq(n.add(o))),i=n.keyRef(r.groupby,!0))):a=yq(n.add($q(null,[{}]))),a||(a=OV(e,n)),{key:i,pulse:a,parent:s}}(e.from,r,t);s=t.add(Uq({key:m.key||(e.key?bq(e.key):void 0),pulse:m.pulse,clean:!r}));const g=yq(s);s=l=t.add($q({pulse:g})),s=t.add(Zq({markdef:yV(e),interactive:bV(e.interactive,t),clip:mV(e.clip,t),context:{$context:!0},groups:t.lookup(),parent:t.signals.parent?t.signalRef("parent"):null,index:t.markpath(),pulse:yq(s)}));const v=yq(s);s=c=t.add(qq(cq(e.encode,e.type,n,e.style,t,{mod:!1,pulse:v}))),s.params.parent=t.encode(),e.transform&&e.transform.forEach((e=>{const n=xV(e,t),r=n.metadata;(r.generates||r.changes)&&Ai("Mark transforms should not generate new data."),r.nomod||(c.params.mod=!0),n.params.pulse=yq(s),t.add(s=n)})),e.sort&&(s=t.add(cW({sort:t.compareRef(e.sort),pulse:yq(s)})));const y=yq(s);(i||f)&&(f=t.add(uW({layout:t.objectProperty(e.layout),legends:t.legends,mark:v,pulse:y})),h=yq(f));const b=t.add(Rq({mark:v,pulse:h||y}));d=yq(b),r&&(p&&(a=t.operators,a.pop(),f&&a.pop()),t.pushState(y,h||d,g),i?function(e,t,n){const r=e.from.facet,i=r.name,o=OV(r,t);let a;r.name||Ai("Facet must have a name: "+Yo(r)),r.data||Ai("Facet must reference a data set: "+Yo(r)),r.field?a=t.add(nW({field:t.fieldRef(r.field),pulse:o})):r.groupby?a=t.add(Vq({key:t.keyRef(r.groupby),group:yq(t.proxy(n.parent)),pulse:o})):Ai("Facet must specify groupby or field: "+Yo(r));const s=t.fork(),l=s.add($q()),c=s.add(lW({pulse:yq(l)}));s.addData(i,new FV(s,l,l,c)),s.addSignal("parent",null),a.params.subflow={$subflow:s.parse(e).toRuntime()}}(e,t,m):p?function(e,t,n){const r=t.add(nW({pulse:n.pulse})),i=t.fork();i.add(lW()),i.addSignal("parent",null),r.params.subflow={$subflow:i.parse(e).toRuntime()}}(e,t,m):t.parse(e),t.popState(),p&&(f&&a.push(f),a.push(b))),o&&(d=function(e,t,n){const r=e.method,i=e.bound,o=e.separation,a={separation:Cq(o)?n.signalRef(o.signal):o,method:Cq(r)?n.signalRef(r.signal):r,pulse:t};if(e.order&&(a.sort=n.compareRef({field:e.order})),i){const e=i.tolerance;a.boundTolerance=Cq(e)?n.signalRef(e.signal):+e,a.boundScale=n.scaleRef(i.scale),a.boundOrient=i.orient}return yq(n.add(eW(a)))}(o,d,t));const x=t.add(aW({pulse:d})),w=t.add(lW({pulse:yq(x)},void 0,t.parent()));null!=e.name&&(u=e.name,t.addData(u,new FV(t,l,x,w)),e.on&&e.on.forEach((e=>{(e.insert||e.remove||e.toggle)&&Ai("Marks only support modify triggers."),BV(e,t,u)})))}function LV(e,t,n){const r={enter:{},update:{}};return YU(r,{orient:e("orient"),offset:e("offset"),padding:e("padding"),titlePadding:e("titlePadding"),cornerRadius:e("cornerRadius"),fill:e("fillColor"),stroke:e("strokeColor"),strokeWidth:n.strokeWidth,strokeDash:n.strokeDash,x:e("legendX"),y:e("legendY"),format:t.format,formatType:t.formatType}),r}function zV(e,t,n){return t[e]?`scale("${t[e]}",datum)`:ZW(e,n[0].encode)}function RV(e,t){const n={enter:{},update:{}};return YU(n,{orient:e("orient"),anchor:e("anchor"),align:{signal:QW},angle:{signal:'item.orient==="left"?-90:item.orient==="right"?90:0'},limit:e("limit"),frame:e("frame"),offset:e("offset")||0,padding:e("subtitlePadding")}),JU(n,t,HW)}function $V(e){const t=$q({},e);return t.metadata={source:!0},t}function HV(e,t){return Jq({url:t.url?e.property(t.url):void 0,async:t.async?e.property(t.async):void 0,values:t.values?e.property(t.values):void 0,format:e.objectProperty(t.format)})}FV.fromEntries=function(e,t){const n=t.length,r=t[n-1],i=t[n-2];let o=t[0],a=null,s=1;for(o&&"load"===o.type&&(o=t[1]),e.add(t[0]);se===OW||e===AW,qV=(e,t,n)=>Cq(e)?JV(e.signal,t,n):e===TW||e===AW?t:n,WV=(e,t,n)=>Cq(e)?XV(e.signal,t,n):UV(e)?t:n,VV=(e,t,n)=>Cq(e)?YV(e.signal,t,n):UV(e)?n:t,GV=(e,t,n)=>Cq(e)?ZV(e.signal,t,n):e===AW?{value:t}:{value:n},XV=(e,t,n)=>KV(`${e} === 'top' || ${e} === 'bottom'`,t,n),YV=(e,t,n)=>KV(`${e} !== 'top' && ${e} !== 'bottom'`,t,n),JV=(e,t,n)=>eG(`${e} === 'left' || ${e} === 'top'`,t,n),ZV=(e,t,n)=>eG(`${e} === 'top'`,t,n),KV=(e,t,n)=>(t=null!=t?GU(t):t,n=null!=n?GU(n):n,QV(t)&&QV(n)?{signal:`${e} ? (${t=t?t.signal||Yo(t.value):null}) : (${n=n?n.signal||Yo(n.value):null})`}:[So({test:e},t)].concat(n||[])),QV=e=>null==e||1===Object.keys(e).length,eG=(e,t,n)=>({signal:`${e} ? (${nG(t)}) : (${nG(n)})`}),tG=(e,t,n,r,i)=>({signal:(null!=r?`${e} === 'left' ? (${nG(r)}) : `:"")+(null!=n?`${e} === 'bottom' ? (${nG(n)}) : `:"")+(null!=i?`${e} === 'right' ? (${nG(i)}) : `:"")+(null!=t?`${e} === 'top' ? (${nG(t)}) : `:"")+"(null)"}),nG=e=>Cq(e)?e.signal:null==e?null:Yo(e),rG=(e,t)=>{const n=e.signal;return n&&n.endsWith("(null)")?{signal:n.slice(0,-6)+t.signal}:e};function iG(e,t,n,r){let i;if(t&&Mo(t,e))return t[e];if(Mo(n,e))return n[e];if(e.startsWith("title")){switch(e){case"titleColor":i="fill";break;case"titleFont":case"titleFontSize":case"titleFontWeight":i=e[5].toLowerCase()+e.slice(6)}return r["guide-title"][i]}if(e.startsWith("label")){switch(e){case"labelColor":i="fill";break;case"labelFont":case"labelFontSize":i=e[5].toLowerCase()+e.slice(6)}return r["guide-label"][i]}return null}function oG(e){const t={};for(const n of e)if(n)for(const e in n)t[e]=1;return Object.keys(t)}function aG(e,t){return{scale:e.scale,range:t}}function sG(e,t,n,r,i){return{signal:'flush(range("'+e+'"), scale("'+e+'", datum.value), '+t+","+n+","+r+","+i+")"}}function lG(e,t,n,r,i,o){const a=JW(e,t),s=e.orient,l=e.scale,c=qV(s,-1,1),u=Aq(a("labelFlush")),h=Aq(a("labelFlushOffset")),d=a("labelAlign"),f=a("labelBaseline");let p,m=0===u||!!u;const g=GU(i);g.mult=c,g.offset=GU(a("labelPadding")||0),g.offset.mult=c;const v={scale:l,field:NW,band:.5,offset:eV(o.offset,a("labelOffset"))},y=WV(s,m?sG(l,u,'"left"','"right"','"center"'):{value:"center"},((e,t,n)=>Cq(e)?((e,t,n)=>eG(`${e} === 'right'`,t,n))(e.signal,t,n):e===MW?{value:t}:{value:n})(s,"left","right")),b=WV(s,GV(s,"bottom","top"),m?sG(l,u,'"top"','"bottom"','"middle"'):{value:"middle"}),x=sG(l,u,`-(${h})`,h,0);m=m&&h;const w={opacity:UW,x:WV(s,v,g),y:VV(s,v,g)},_={enter:w,update:p={opacity:qW,text:{field:FW},x:w.x,y:w.y,align:y,baseline:b},exit:{opacity:UW,x:w.x,y:w.y}};YU(_,{dx:!d&&m?WV(s,x):null,dy:!f&&m?VV(s,x):null}),YU(_,{angle:a("labelAngle"),fill:a("labelColor"),fillOpacity:a("labelOpacity"),font:a("labelFont"),fontSize:a("labelFontSize"),fontWeight:a("labelFontWeight"),fontStyle:a("labelFontStyle"),limit:a("labelLimit"),lineHeight:a("labelLineHeight")},{align:d,baseline:f});const k=a("labelBound");let E=a("labelOverlap");return E=E||k?{separation:a("labelSeparation"),method:E,order:"datum.index",bound:k?{scale:l,orient:s,tolerance:k}:null}:void 0,p.align!==y&&(p.align=rG(p.align,y)),p.baseline!==b&&(p.baseline=rG(p.baseline,b)),tV({type:XW,role:"axis-label",style:IW,key:NW,from:r,encode:_,overlap:E},n)}function cG(e,t){const n=function(e,t){var n,r,i,o=t.config,a=o.style,s=o.axis,l="band"===t.scaleType(e.scale)&&o.axisBand,c=e.orient;if(Cq(c)){const e=oG([o.axisX,o.axisY]),t=oG([o.axisTop,o.axisBottom,o.axisLeft,o.axisRight]);for(i of(n={},e))n[i]=WV(c,iG(i,o.axisX,s,a),iG(i,o.axisY,s,a));for(i of(r={},t))r[i]=tG(c.signal,iG(i,o.axisTop,s,a),iG(i,o.axisBottom,s,a),iG(i,o.axisLeft,s,a),iG(i,o.axisRight,s,a))}else n=c===AW||c===OW?o.axisX:o.axisY,r=o["axis"+c[0].toUpperCase()+c.slice(1)];return n||r||l?So({},s,n,r,l):s}(e,t),r=e.encode||{},i=r.axis||{},o=i.name||void 0,a=i.interactive,s=i.style,l=JW(e,n),c=function(e){const t=e("tickBand");let n,r,i=e("tickOffset");return t?t.signal?(n={signal:`(${t.signal}) === 'extent' ? 1 : 0.5`},r={signal:`(${t.signal}) === 'extent'`},Wi(i)||(i={signal:`(${t.signal}) === 'extent' ? 0 : ${i}`})):"extent"===t?(n=1,r=!0,i=0):(n=.5,r=!1):(n=e("bandPosition"),r=e("tickExtra")),{extra:r,band:n,offset:i}}(l),u={scale:e.scale,ticks:!!l("ticks"),labels:!!l("labels"),grid:!!l("grid"),domain:!!l("domain"),title:null!=e.title},h=yq(t.add($q({},[u]))),d=yq(t.add(zq({scale:t.scaleRef(e.scale),extra:t.property(c.extra),count:t.objectProperty(e.tickCount),values:t.objectProperty(e.values),minstep:t.property(e.tickMinStep),formatType:t.property(e.formatType),formatSpecifier:t.property(e.format)}))),f=[];let p;return u.grid&&f.push(function(e,t,n,r,i){const o=JW(e,t),a=e.orient,s=e.gridScale,l=qV(a,1,-1),c=function(e,t){if(1===t);else if(Wi(e)){let n=e=So({},e);for(;null!=n.mult;){if(!Wi(n.mult))return n.mult=Cq(t)?{signal:`(${n.mult}) * (${t.signal})`}:n.mult*t,e;n=n.mult=So({},n.mult)}n.mult=t}else e=Cq(t)?{signal:`(${t.signal}) * (${e||0})`}:t*(e||0);return e}(e.offset,l);let u,h,d;const f={enter:u={opacity:UW},update:d={opacity:qW},exit:h={opacity:UW}};YU(f,{stroke:o("gridColor"),strokeCap:o("gridCap"),strokeDash:o("gridDash"),strokeDashOffset:o("gridDashOffset"),strokeOpacity:o("gridOpacity"),strokeWidth:o("gridWidth")});const p={scale:e.scale,field:NW,band:i.band,extra:i.extra,offset:i.offset,round:o("tickRound")},m=WV(a,{signal:"height"},{signal:"width"}),g=s?{scale:s,range:0,mult:l,offset:c}:{value:0,offset:c},v=s?{scale:s,range:1,mult:l,offset:c}:So(m,{mult:l,offset:c});return u.x=d.x=WV(a,p,g),u.y=d.y=VV(a,p,g),u.x2=d.x2=VV(a,v),u.y2=d.y2=WV(a,v),h.x=WV(a,p),h.y=VV(a,p),tV({type:GW,role:"axis-grid",key:NW,from:r,encode:f},n)}(e,n,r.grid,d,c)),u.ticks&&(p=l("tickSize"),f.push(function(e,t,n,r,i,o){const a=JW(e,t),s=e.orient,l=qV(s,-1,1);let c,u,h;const d={enter:c={opacity:UW},update:h={opacity:qW},exit:u={opacity:UW}};YU(d,{stroke:a("tickColor"),strokeCap:a("tickCap"),strokeDash:a("tickDash"),strokeDashOffset:a("tickDashOffset"),strokeOpacity:a("tickOpacity"),strokeWidth:a("tickWidth")});const f=GU(i);f.mult=l;const p={scale:e.scale,field:NW,band:o.band,extra:o.extra,offset:o.offset,round:a("tickRound")};return h.y=c.y=WV(s,UW,p),h.y2=c.y2=WV(s,f),u.x=WV(s,p),h.x=c.x=VV(s,UW,p),h.x2=c.x2=VV(s,f),u.y=VV(s,p),tV({type:GW,role:"axis-tick",key:NW,from:r,encode:d},n)}(e,n,r.ticks,d,p,c))),u.labels&&(p=u.ticks?p:0,f.push(lG(e,n,r.labels,d,p,c))),u.domain&&f.push(function(e,t,n,r){const i=JW(e,t),o=e.orient;let a,s;const l={enter:a={opacity:UW},update:s={opacity:qW},exit:{opacity:UW}};YU(l,{stroke:i("domainColor"),strokeCap:i("domainCap"),strokeDash:i("domainDash"),strokeDashOffset:i("domainDashOffset"),strokeWidth:i("domainWidth"),strokeOpacity:i("domainOpacity")});const c=aG(e,0),u=aG(e,1);return a.x=s.x=WV(o,c,UW),a.x2=s.x2=WV(o,u),a.y=s.y=VV(o,c,UW),a.y2=s.y2=VV(o,u),tV({type:GW,role:"axis-domain",from:r,encode:l},n)}(e,n,r.domain,h)),u.title&&f.push(function(e,t,n,r){const i=JW(e,t),o=e.orient,a=qV(o,-1,1);let s,l;const c={enter:s={opacity:UW,anchor:GU(i("titleAnchor",null)),align:{signal:QW}},update:l=So({},s,{opacity:qW,text:GU(e.title)}),exit:{opacity:UW}},u={signal:`lerp(range("${e.scale}"), ${KW(0,1,.5)})`};return l.x=WV(o,u),l.y=VV(o,u),s.angle=WV(o,UW,((e,t)=>Cq(e)?{signal:`(${e.signal}) * 90`}:{value:90*e})(a)),s.baseline=WV(o,GV(o,OW,AW),{value:OW}),l.angle=s.angle,l.baseline=s.baseline,YU(c,{fill:i("titleColor"),fillOpacity:i("titleOpacity"),font:i("titleFont"),fontSize:i("titleFontSize"),fontStyle:i("titleFontStyle"),fontWeight:i("titleFontWeight"),limit:i("titleLimit"),lineHeight:i("titleLineHeight")},{align:i("titleAlign"),angle:i("titleAngle"),baseline:i("titleBaseline")}),function(e,t,n,r){const i=(e,t)=>null!=e?(n.update[t]=rG(GU(e),n.update[t]),!1):!ZU(t,r),o=i(e("titleX"),"x"),a=i(e("titleY"),"y");n.enter.auto=a===o?GU(a):WV(t,GU(a),GU(o))}(i,o,c,n),c.update.align=rG(c.update.align,s.align),c.update.angle=rG(c.update.angle,s.angle),c.update.baseline=rG(c.update.baseline,s.baseline),tV({type:XW,role:"axis-title",style:BW,from:r,encode:c},n)}(e,n,r.title,h)),jV(YW({role:"axis",from:h,encode:JU(uG(l,e),i,HW),marks:f,aria:l("aria"),description:l("description"),zindex:l("zindex"),name:o,interactive:a,style:s}),t)}function uG(e,t){const n={enter:{},update:{}};return YU(n,{orient:e("orient"),offset:e("offset")||0,position:Dq(t.position,0),titlePadding:e("titlePadding"),minExtent:e("minExtent"),maxExtent:e("maxExtent"),range:{signal:`abs(span(range("${t.scale}")))`},translate:e("translate"),format:t.format,formatType:t.formatType}),n}function hG(e,t,n){const r=go(e.signals),i=go(e.scales);return n||r.forEach((e=>pq(e,t))),go(e.projections).forEach((e=>function(e,t){const n=t.config.projection||{},r={};for(const n in e)"name"!==n&&(r[n]=DW(e[n],n,t));for(const e in n)null==r[e]&&(r[e]=DW(n[e],e,t));t.addProjection(e.name,r)}(e,t))),i.forEach((e=>function(e,t){const n=e.type||"linear";qw(n)||Ai("Unrecognized scale type: "+Yo(n)),t.addScale(e.name,{type:n,domain:void 0})}(e,t))),go(e.data).forEach((e=>function(e,t){const n=[];e.transform&&e.transform.forEach((e=>{n.push(xV(e,t))})),e.on&&e.on.forEach((n=>{BV(n,t,e.name)})),t.addDataPipeline(e.name,function(e,t,n){const r=[];let i,o,a,s,l,c=null,u=!1,h=!1;for(e.values?Cq(e.values)||Sq(e.format)?(r.push(HV(t,e)),r.push(c=$V())):r.push(c=$V({$ingest:e.values,$format:e.format})):e.url?Sq(e.url)||Sq(e.format)?(r.push(HV(t,e)),r.push(c=$V())):r.push(c=$V({$request:e.url,$format:e.format})):e.source&&(c=i=go(e.source).map((e=>yq(t.getData(e).output))),r.push(null)),o=0,a=n.length;opW(e,t))),(n||r).forEach((e=>function(e,t){const n=t.getSignal(e.name);let r=e.update;e.init&&(r?Ai("Signals can not include both init and update expressions."):(r=e.init,n.initonly=!0)),r&&(r=yH(r,t),n.update=r.$expr,n.params=r.$params),e.on&&e.on.forEach((e=>function(e,t,n){const r=e.encode,i={target:n};let o=e.events,a=e.update,s=[];o||Ai("Signal update missing events specification."),$o(o)&&(o=RU(o,t.isSubscope()?kq:Eq)),o=go(o).filter((e=>e.signal||e.scale?(s.push(e),0):1)),s.length>1&&(s=[Bq(s)]),o.length&&s.push(o.length>1?{merge:o}:o[0]),null!=r&&(a&&Ai("Signal encode and update are mutually exclusive."),a="encode(item(),"+Yo(r)+")"),i.update=$o(a)?yH(a,t):null!=a.expr?yH(a.expr,t):null!=a.value?a.value:null!=a.signal?{$expr:Iq,$params:{$value:t.signalRef(a.signal)}}:Ai("Invalid signal update specification."),e.force&&(i.options={force:!0}),s.forEach((e=>t.addUpdate(So(function(e,t){return{source:e.signal?t.signalRef(e.signal):e.scale?t.scaleRef(e.scale):Mq(e,t)}}(e,t),i))))}(e,t,n.id)))}(e,t))),go(e.axes).forEach((e=>cG(e,t))),go(e.marks).forEach((e=>jV(e,t))),go(e.legends).forEach((e=>function(e,t){const n=t.config.legend,r=e.encode||{},i=JW(e,n),o=r.legend||{},a=o.name||void 0,s=o.interactive,l=o.style,c={};let u,h,d,f=0;$W.forEach((t=>e[t]?(c[t]=e[t],f=f||e[t]):0)),f||Ai("Missing valid scale for legend.");const p=function(e,t){let n=e.type||jW;return e.type||1!==function(e){return $W.reduce(((t,n)=>t+(e[n]?1:0)),0)}(e)||!e.fill&&!e.stroke||(n=Vw(t)?LW:Xw(t)?zW:jW),n!==LW?n:Xw(t)?zW:LW}(e,t.scaleType(f)),m={title:null!=e.title,scales:c,type:p,vgrad:"symbol"!==p&&i.isVertical()},g=yq(t.add($q(null,[m]))),v=yq(t.add(Yq(h={type:p,scale:t.scaleRef(f),count:t.objectProperty(i("tickCount")),limit:t.property(i("symbolLimit")),values:t.objectProperty(e.values),minstep:t.property(e.tickMinStep),formatType:t.property(e.formatType),formatSpecifier:t.property(e.format)})));return p===LW?(d=[nV(e,f,n,r.gradient),iV(e,n,r.labels,v)],h.count=h.count||t.signalRef(`max(2,2*floor((${Aq(i.gradientLength())})/100))`)):p===zW?d=[rV(e,f,n,r.gradient,v),iV(e,n,r.labels,v)]:(u=function(e,t){const n=JW(e,t);return{align:n("gridAlign"),columns:n.entryColumns(),center:{row:!0,column:!1},padding:{row:n("rowPadding"),column:n("columnPadding")}}}(e,n),d=[oV(e,n,r,v,Aq(u.columns))],h.size=function(e,t,n){const r=Aq(zV("size",e,n)),i=Aq(zV("strokeWidth",e,n)),o=Aq(function(e,t,n){return ZW("fontSize",e)||function(e,t,n){const r=t.config.style["guide-label"];return r&&r.fontSize}(0,t)}(n[1].encode,t));return yH(`max(ceil(sqrt(${r})+${i}),${o})`,t)}(e,t,d[0].marks)),d=[YW({role:"legend-entry",from:g,encode:{enter:{x:{value:0},y:{value:0}}},marks:d,layout:u,interactive:s})],m.title&&d.push(function(e,t,n,r){const i=JW(e,t),o={enter:{opacity:UW},update:{opacity:qW,x:{field:{group:"padding"}},y:{field:{group:"padding"}}},exit:{opacity:UW}};return YU(o,{orient:i("titleOrient"),_anchor:i("titleAnchor"),anchor:{signal:dV},angle:{signal:fV},align:{signal:hV},baseline:{signal:pV},text:e.title,fill:i("titleColor"),fillOpacity:i("titleOpacity"),font:i("titleFont"),fontSize:i("titleFontSize"),fontStyle:i("titleFontStyle"),fontWeight:i("titleFontWeight"),limit:i("titleLimit"),lineHeight:i("titleLineHeight")},{align:i("titleAlign"),baseline:i("titleBaseline")}),tV({type:XW,role:"legend-title",style:BW,from:r,encode:o},n)}(e,n,r.title,g)),jV(YW({role:"legend",from:g,encode:JU(LV(i,e,n),o,HW),marks:d,aria:i("aria"),description:i("description"),zindex:i("zindex"),name:a,interactive:s,style:l}),t)}(e,t))),e.title&&function(e,t){const n=JW(e=$o(e)?{text:e}:e,t.config.title),r=e.encode||{},i=r.group||{},o=i.name||void 0,a=i.interactive,s=i.style,l=[],c=yq(t.add($q(null,[{}])));l.push(function(e,t,n,r){const i={value:0},o={enter:{opacity:i},update:{opacity:{value:1}},exit:{opacity:i}};return YU(o,{text:e.text,align:{signal:"item.mark.group.align"},angle:{signal:"item.mark.group.angle"},limit:{signal:"item.mark.group.limit"},baseline:"top",dx:t("dx"),dy:t("dy"),fill:t("color"),font:t("font"),fontSize:t("fontSize"),fontStyle:t("fontStyle"),fontWeight:t("fontWeight"),lineHeight:t("lineHeight")},{align:t("align"),angle:t("angle"),baseline:t("baseline")}),tV({type:XW,role:"title-text",style:"group-title",from:r,encode:o},n)}(e,n,function(e){const t=e.encode;return t&&t.title||So({name:e.name,interactive:e.interactive,style:e.style},t)}(e),c)),e.subtitle&&l.push(function(e,t,n,r){const i={value:0},o={enter:{opacity:i},update:{opacity:{value:1}},exit:{opacity:i}};return YU(o,{text:e.subtitle,align:{signal:"item.mark.group.align"},angle:{signal:"item.mark.group.angle"},limit:{signal:"item.mark.group.limit"},baseline:"top",dx:t("dx"),dy:t("dy"),fill:t("subtitleColor"),font:t("subtitleFont"),fontSize:t("subtitleFontSize"),fontStyle:t("subtitleFontStyle"),fontWeight:t("subtitleFontWeight"),lineHeight:t("subtitleLineHeight")},{align:t("align"),angle:t("angle"),baseline:t("baseline")}),tV({type:XW,role:"title-subtitle",style:"group-subtitle",from:r,encode:o},n)}(e,n,r.subtitle,c)),jV(YW({role:"title",from:c,encode:RV(n,i),marks:l,aria:n("aria"),description:n("description"),zindex:n("zindex"),name:o,interactive:a,style:s}),t)}(e.title,t),t.parseLambdas(),t}function dG(e,t){return t&&t.signal?{name:e,update:t.signal}:{name:e,value:t}}function fG(e,t){this.config=e||{},this.options=t||{},this.bindings=[],this.field={},this.signals={},this.lambdas={},this.scales={},this.events={},this.data={},this.streams=[],this.updates=[],this.operators=[],this.eventConfig=null,this.locale=null,this._id=0,this._subid=0,this._nextsub=[0],this._parent=[],this._encode=[],this._lookup=[],this._markpath=[]}function pG(e){this.config=e.config,this.options=e.options,this.legends=e.legends,this.field=Object.create(e.field),this.signals=Object.create(e.signals),this.lambdas=Object.create(e.lambdas),this.scales=Object.create(e.scales),this.events=Object.create(e.events),this.data=Object.create(e.data),this.streams=[],this.updates=[],this.operators=[],this._id=0,this._subid=++e._nextsub[0],this._nextsub=e._nextsub,this._parent=e._parent.slice(),this._encode=e._encode.slice(),this._lookup=e._lookup.slice(),this._markpath=e._markpath}function mG(e){return(qi(e)?gG:vG)(e)}function gG(e){const t=e.length;let n="[";for(let r=0;r0?",":"")+(Wi(t)?t.signal||mG(t):Yo(t))}return n+"]"}function vG(e){let t,n,r="{",i=0;for(t in e)n=e[t],r+=(++i>1?",":"")+Yo(t)+":"+(Wi(n)?n.signal||mG(n):Yo(n));return r+"}"}function yG(e,t,n){return Wi(e)||Ai("Input Vega specification must be an object."),t=Gi(function(){const e="sans-serif",t="#4c78a8",n="#000",r="#888",i="#ddd";return{description:"Vega visualization",padding:0,autosize:"pad",background:null,events:{defaults:{allow:["wheel"]}},group:null,mark:null,arc:{fill:t},area:{fill:t},image:null,line:{stroke:t,strokeWidth:2},path:{stroke:t},rect:{fill:t},rule:{stroke:n},shape:{stroke:t},symbol:{fill:t,size:64},text:{fill:n,font:e,fontSize:11},trail:{fill:t,size:2},style:{"guide-label":{fill:n,font:e,fontSize:10},"guide-title":{fill:n,font:e,fontSize:11,fontWeight:"bold"},"group-title":{fill:n,font:e,fontSize:13,fontWeight:"bold"},"group-subtitle":{fill:n,font:e,fontSize:12},point:{size:30,strokeWidth:2,shape:"circle"},circle:{size:30,strokeWidth:2},square:{size:30,strokeWidth:2,shape:"square"},cell:{fill:"transparent",stroke:i}},title:{orient:"top",anchor:"middle",offset:4,subtitlePadding:3},axis:{minExtent:0,maxExtent:200,bandPosition:.5,domain:!0,domainWidth:1,domainColor:r,grid:!1,gridWidth:1,gridColor:i,labels:!0,labelAngle:0,labelLimit:180,labelOffset:0,labelPadding:2,ticks:!0,tickColor:r,tickOffset:0,tickRound:!0,tickSize:5,tickWidth:1,titlePadding:4},axisBand:{tickOffset:-.5},projection:{type:"mercator"},legend:{orient:"right",padding:0,gridAlign:"each",columnPadding:10,rowPadding:2,symbolDirection:"vertical",gradientDirection:"vertical",gradientLength:200,gradientThickness:16,gradientStrokeColor:i,gradientStrokeWidth:0,gradientLabelOffset:2,labelAlign:"left",labelBaseline:"middle",labelLimit:160,labelOffset:4,labelOverlap:!0,symbolLimit:30,symbolType:"circle",symbolSize:100,symbolOffset:0,symbolStrokeWidth:1.5,symbolBaseFillColor:"transparent",symbolBaseStrokeColor:r,titleLimit:180,titleOrient:"top",titlePadding:5,layout:{offset:18,direction:"horizontal",left:{direction:"vertical"},right:{direction:"vertical"}}},range:{category:{scheme:"tableau10"},ordinal:{scheme:"blues"},heatmap:{scheme:"yellowgreenblue"},ramp:{scheme:"blues"},diverging:{scheme:"blueorange",extent:[1,0]},symbol:["circle","square","triangle-up","cross","diamond","triangle-right","triangle-down","triangle-left"]}}}(),t,e.config),function(e,t){const n=t.config,r=yq(t.root=t.add(vq())),i=function(e,t){const n=n=>Dq(e[n],t[n]),r=[dG("background",n("background")),dG("autosize",qU(n("autosize"))),dG("padding",VU(n("padding"))),dG("width",n("width")||0),dG("height",n("height")||0)],i=r.reduce(((e,t)=>(e[t.name]=t,e)),{}),o={};return go(e.signals).forEach((e=>{Mo(i,e.name)?e=So(i[e.name],e):r.push(e),o[e.name]=e})),go(t.signals).forEach((e=>{Mo(o,e.name)||Mo(i,e.name)||r.push(e)})),r}(e,n);i.forEach((e=>pq(e,t))),t.description=e.description||n.description,t.eventConfig=n.events,t.legends=t.objectProperty(n.legend&&n.legend.layout),t.locale=n.locale;const o=t.add($q()),a=t.add(qq(cq((e=>JU({enter:{x:{value:0},y:{value:0}},update:{width:{signal:"width"},height:{signal:"height"}}},e))(e.encode),WW,QU,e.style,t,{pulse:yq(o)}))),s=t.add(uW({layout:t.objectProperty(e.layout),legends:t.legends,autosize:t.signalRef("autosize"),mark:r,pulse:yq(a)}));t.operators.pop(),t.pushState(yq(a),yq(s),null),hG(e,t,i),t.operators.push(s);let l=t.add(Rq({mark:r,pulse:yq(s)}));return l=t.add(aW({pulse:yq(l)})),l=t.add(lW({pulse:yq(l)})),t.addData("root",new FV(t,o,o,l)),t}(e,new fG(t,n)).toRuntime()}fG.prototype=pG.prototype={parse(e){return hG(e,this)},fork(){return new pG(this)},isSubscope(){return this._subid>0},toRuntime(){return this.finish(),{description:this.description,operators:this.operators,streams:this.streams,updates:this.updates,bindings:this.bindings,eventConfig:this.eventConfig,locale:this.locale}},id(){return(this._subid?this._subid+":":0)+this._id++},add(e){return this.operators.push(e),e.id=this.id(),e.refs&&(e.refs.forEach((t=>{t.$ref=e.id})),e.refs=null),e},proxy(e){const t=e instanceof mq?yq(e):e;return this.add(iW({value:t}))},addStream(e){return this.streams.push(e),e.id=this.id(),e},addUpdate(e){return this.updates.push(e),e},finish(){let e,t;for(e in this.root&&(this.root.root=!0),this.signals)this.signals[e].signal=e;for(e in this.scales)this.scales[e].scale=e;function n(e,t,n){let r,i;e&&(r=e.data||(e.data={}),i=r[t]||(r[t]=[]),i.push(n))}for(e in this.data){t=this.data[e],n(t.input,e,"input"),n(t.output,e,"output"),n(t.values,e,"values");for(const r in t.index)n(t.index[r],e,"index:"+r)}return this},pushState(e,t,n){this._encode.push(yq(this.add(lW({pulse:e})))),this._parent.push(t),this._lookup.push(n?yq(this.proxy(n)):null),this._markpath.push(-1)},popState(){this._encode.pop(),this._parent.pop(),this._lookup.pop(),this._markpath.pop()},parent(){return Ji(this._parent)},encode(){return Ji(this._encode)},lookup(){return Ji(this._lookup)},markpath(){const e=this._markpath;return++e[e.length-1]},fieldRef(e,t){if($o(e))return bq(e,t);e.signal||Ai("Unsupported field reference: "+Yo(e));const n=e.signal;let r=this.field[n];if(!r){const e={name:this.signalRef(n)};t&&(e.as=t),this.field[n]=r=yq(this.add(Gq(e)))}return r},compareRef(e){let t=!1;const n=e=>Cq(e)?(t=!0,this.signalRef(e.signal)):function(e){return e&&e.expr}(e)?(t=!0,this.exprRef(e.expr)):e,r=go(e.field).map(n),i=go(e.order).map(n);return t?yq(this.add(Hq({fields:r,orders:i}))):wq(r,i)},keyRef(e,t){let n=!1;const r=this.signals;return e=go(e).map((e=>Cq(e)?(n=!0,yq(r[e.signal])):e)),n?yq(this.add(Xq({fields:e,flat:t}))):function(e,t){const n={$key:e};return t&&(n.$flat=!0),n}(e,t)},sortRef(e){if(!e)return e;const t=_q(e.op,e.field),n=e.order||"ascending";return n.signal?yq(this.add(Hq({fields:t,orders:this.signalRef(n.signal)}))):wq(t,n)},event(e,t){const n=e+":"+t;if(!this.events[n]){const r=this.id();this.streams.push({id:r,source:e,type:t}),this.events[n]=r}return this.events[n]},hasOwnSignal(e){return Mo(this.signals,e)},addSignal(e,t){this.hasOwnSignal(e)&&Ai("Duplicate signal name: "+Yo(e));const n=t instanceof mq?t:this.add(vq(t));return this.signals[e]=n},getSignal(e){return this.signals[e]||Ai("Unrecognized signal name: "+Yo(e)),this.signals[e]},signalRef(e){return this.signals[e]?yq(this.signals[e]):(Mo(this.lambdas,e)||(this.lambdas[e]=this.add(vq(null))),yq(this.lambdas[e]))},parseLambdas(){const e=Object.keys(this.lambdas);for(let t=0,n=e.length;te*t,"+":(e,t)=>e+t,"-":(e,t)=>e-t,"/":(e,t)=>e/t,"%":(e,t)=>e%t,">":(e,t)=>e>t,"<":(e,t)=>ee<=t,">=":(e,t)=>e>=t,"==":(e,t)=>e==t,"!=":(e,t)=>e!=t,"===":(e,t)=>e===t,"!==":(e,t)=>e!==t,"&":(e,t)=>e&t,"|":(e,t)=>e|t,"^":(e,t)=>e^t,"<<":(e,t)=>e<>":(e,t)=>e>>t,">>>":(e,t)=>e>>>t},_G={"+":e=>+e,"-":e=>-e,"~":e=>~e,"!":e=>!e};const kG=Array.prototype.slice,EG=(e,t,n)=>{const r=n?n(t[0]):t[0];return r[e].apply(r,kG.call(t,1))};var CG={isNaN:Number.isNaN,isFinite:Number.isFinite,abs:Math.abs,acos:Math.acos,asin:Math.asin,atan:Math.atan,atan2:Math.atan2,ceil:Math.ceil,cos:Math.cos,exp:Math.exp,floor:Math.floor,log:Math.log,max:Math.max,min:Math.min,pow:Math.pow,random:Math.random,round:Math.round,sin:Math.sin,sqrt:Math.sqrt,tan:Math.tan,clamp:(e,t,n)=>Math.max(t,Math.min(n,e)),now:Date.now,utc:Date.UTC,datetime:(e,t,n,r,i,o,a)=>new Date(e,t||0,null!=n?n:1,r||0,i||0,o||0,a||0),date:e=>new Date(e).getDate(),day:e=>new Date(e).getDay(),year:e=>new Date(e).getFullYear(),month:e=>new Date(e).getMonth(),hours:e=>new Date(e).getHours(),minutes:e=>new Date(e).getMinutes(),seconds:e=>new Date(e).getSeconds(),milliseconds:e=>new Date(e).getMilliseconds(),time:e=>new Date(e).getTime(),timezoneoffset:e=>new Date(e).getTimezoneOffset(),utcdate:e=>new Date(e).getUTCDate(),utcday:e=>new Date(e).getUTCDay(),utcyear:e=>new Date(e).getUTCFullYear(),utcmonth:e=>new Date(e).getUTCMonth(),utchours:e=>new Date(e).getUTCHours(),utcminutes:e=>new Date(e).getUTCMinutes(),utcseconds:e=>new Date(e).getUTCSeconds(),utcmilliseconds:e=>new Date(e).getUTCMilliseconds(),length:e=>e.length,join:function(){return EG("join",arguments)},indexof:function(){return EG("indexOf",arguments)},lastindexof:function(){return EG("lastIndexOf",arguments)},slice:function(){return EG("slice",arguments)},reverse:e=>e.slice().reverse(),parseFloat,parseInt,upper:e=>String(e).toUpperCase(),lower:e=>String(e).toLowerCase(),substring:function(){return EG("substring",arguments,String)},split:function(){return EG("split",arguments,String)},replace:function(){return EG("replace",arguments,String)},trim:e=>String(e).trim(),regexp:RegExp,test:(e,t)=>RegExp(e).test(t)};const SG=["view","item","group","xy","x","y"],DG={Literal:(e,t)=>t.value,Identifier:(e,t)=>{const n=t.name;return e.memberDepth>0?n:"datum"===n?e.datum:"event"===n?e.event:"item"===n?e.item:xG[n]||e.params["$"+n]},MemberExpression:(e,t)=>{const n=!t.computed,r=e(t.object);n&&(e.memberDepth+=1);const i=e(t.property);return n&&(e.memberDepth-=1),r[i]},CallExpression:(e,t)=>{const n=t.arguments;let r=t.callee.name;return r.startsWith("_")&&(r=r.slice(1)),"if"===r?e(n[0])?e(n[1]):e(n[2]):(e.fn[r]||CG[r]).apply(e.fn,n.map(e))},ArrayExpression:(e,t)=>t.elements.map(e),BinaryExpression:(e,t)=>wG[t.operator](e(t.left),e(t.right)),UnaryExpression:(e,t)=>_G[t.operator](e(t.argument)),ConditionalExpression:(e,t)=>e(t.test)?e(t.consequent):e(t.alternate),LogicalExpression:(e,t)=>"&&"===t.operator?e(t.left)&&e(t.right):e(t.left)||e(t.right),ObjectExpression:(e,t)=>t.properties.reduce(((t,n)=>{e.memberDepth+=1;const r=e(n.key);return e.memberDepth-=1,t[r]=e(n.value),t}),{})};function AG(e,t,n,r,i,o){const a=e=>DG[e.type](a,e);return a.memberDepth=0,a.fn=Object.create(t),a.params=n,a.datum=r,a.event=i,a.item=o,SG.forEach((e=>a.fn[e]=(...t)=>i.vega[e](...t))),a(e)}var TG={operator(e,t){const n=t.ast,r=e.functions;return e=>AG(n,r,e)},parameter(e,t){const n=t.ast,r=e.functions;return(e,t)=>AG(n,r,t,e)},event(e,t){const n=t.ast,r=e.functions;return e=>AG(n,r,void 0,void 0,e)},handler(e,t){const n=t.ast,r=e.functions;return(e,t)=>{const i=t.item&&t.item.datum;return AG(n,r,e,i,t)}},encode(e,t){const{marktype:n,channels:r}=t,i=e.functions,o="group"===n||"image"===n||"rect"===n;return(e,t)=>{const a=e.datum;let s,l=0;for(const n in r)s=AG(r[n].ast,i,t,a,void 0,e),e[n]!==s&&(e[n]=s,l=1);return"rule"!==n&&function(e,t,n){let r;t.x2&&(t.x?(n&&e.x>e.x2&&(r=e.x,e.x=e.x2,e.x2=r),e.width=e.x2-e.x):e.x=e.x2-(e.width||0)),t.xc&&(e.x=e.xc-(e.width||0)/2),t.y2&&(t.y?(n&&e.y>e.y2&&(r=e.y,e.y=e.y2,e.y2=r),e.height=e.y2-e.y):e.y=e.y2-(e.height||0)),t.yc&&(e.y=e.yc-(e.height||0)/2)}(e,r,o),l}}};function MG(e,t,n){return e.fields=t||[],e.fname=n,e}function OG(e){return 1===e.length?FG(e[0]):PG(e)}const FG=e=>function(t){return t[e]},PG=e=>{const t=e.length;return function(n){for(let r=0;rr&&c(),s=r=i+1):"]"===o&&(s||NG("Access path missing open bracket: "+e),s>0&&c(),s=0,r=i+1):i>r?c():r=i+1}return s&&NG("Access path missing closing bracket: "+e),a&&NG("Access path missing closing quote: "+e),i>r&&(i++,c()),t}!function(e,t,n){const r=IG(e);e=1===r.length?r[0]:e,MG((n&&n.get||OG)(r),[e],t||e)}("id");const BG=MG((e=>e),[],"identity");function jG(e,t,n){const r=[t].concat([].slice.call(n));console[e].apply(console,r)}MG((()=>0),[],"zero"),MG((()=>1),[],"one"),MG((()=>!0),[],"true"),MG((()=>!1),[],"false");var LG=Array.isArray;function zG(e){return e===Object(e)}const RG=e=>"__proto__"!==e;function $G(...e){return e.reduce(((e,t)=>{for(const n in t)if("signals"===n)e.signals=UG(e.signals,t.signals);else{const r="legend"===n?{layout:1}:"style"===n||null;HG(e,n,t[n],r)}return e}),{})}function HG(e,t,n,r){if(!RG(t))return;let i,o;if(zG(n)&&!LG(n))for(i in o=zG(e[t])?e[t]:e[t]={},n)r&&(!0===r||r[i])?HG(o,i,n[i]):RG(i)&&(o[i]=n[i]);else e[t]=n}function UG(e,t){if(null==e)return t;const n={},r=[];function i(e){n[e.name]||(n[e.name]=1,r.push(e))}return t.forEach(i),e.forEach(i),r}function qG(e){return null!=e?LG(e)?e:[e]:[]}const WG=Object.prototype.hasOwnProperty;function VG(e,t){return WG.call(e,t)}function GG(e){return"boolean"==typeof e}function XG(e){return"number"==typeof e}function YG(e){return"string"==typeof e}function JG(e){return LG(e)?"["+e.map(JG)+"]":zG(e)||YG(e)?JSON.stringify(e).replace("\u2028","\\u2028").replace("\u2029","\\u2029"):e}function ZG(e){const t={},n=e.length;for(let r=0;rlX(e,t)))}:iX(e)?{or:e.or.map((e=>lX(e,t)))}:t(e)}const cX=tX(),uX=QG();function hX(e,t){const n={};for(const r of t)VG(e,r)&&(n[r]=e[r]);return n}function dX(e,t){const n=Object.assign({},e);for(const e of t)delete n[e];return n}Set.prototype.toJSON=function(){return`Set(${[...this].map((e=>rX()(e))).join(",")})`};const fX=rX();function pX(e){if(XG(e))return e;const t=YG(e)?e:rX()(e);if(t.length<250)return t;let n=0;for(let e=0;e0===t?e:`[${e}]`)),r=e.map(((t,n)=>e.slice(0,n+1).join("")));for(const e of r)t.add(e)}return t}function SX(e,t){return void 0===e||void 0===t||EX(CX(e),CX(t))}function DX(e){return 0===AX(e).length}const AX=Object.keys,TX=Object.values,MX=Object.entries;function OX(e){return!0===e||!1===e}function FX(e){const t=e.replace(/\W/g,"_");return(e.match(/^\d+/)?"_":"")+t}function PX(e,t){return aX(e)?`!(${PX(e.not,t)})`:oX(e)?`(${e.and.map((e=>PX(e,t))).join(") && (")})`:iX(e)?`(${e.or.map((e=>PX(e,t))).join(") || (")})`:t(e)}function NX(e,t){if(0===t.length)return!0;const n=t.shift();return n in e&&NX(e[n],t)&&delete e[n],DX(e)}function IX(e){return e.charAt(0).toUpperCase()+e.substr(1)}function BX(e,t="datum"){const n=IG(e),r=[];for(let e=1;e<=n.length;e++){const i=`[${n.slice(0,e).map(JG).join("][")}]`;r.push(`${t}${i}`)}return r.join(" && ")}function jX(e,t="datum"){return`${t}[${JG(IG(e).join("."))}]`}function LX(e){return e.replace(/(\[|\]|\.|'|")/g,"\\$1")}function zX(e){return`${IG(e).map(LX).join("\\.")}`}function RX(e,t,n){return e.replace(new RegExp(t.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),"g"),n)}function $X(e){return`${IG(e).join(".")}`}function HX(e){return e?IG(e).length:0}function UX(...e){for(const t of e)if(void 0!==t)return t}let qX=42;function WX(e){const t=++qX;return e?String(e)+t:t}function VX(){qX=42}function GX(e){return XX(e)?e:`__${e}`}function XX(e){return e.startsWith("__")}function YX(e){if(void 0!==e)return(e%360+360)%360}function JX(e){return!!XG(e)||!isNaN(e)&&!isNaN(parseFloat(e))}var ZX=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);iQJ(e[t])?FX(`_${t}_${MX(e[t])}`):FX(`_${t}_${e[t]}`))).join("")}function JJ(e){return!0===e||KJ(e)&&!e.binned}function ZJ(e){return"binned"===e||KJ(e)&&!0===e.binned}function KJ(e){return zG(e)}function QJ(e){return null==e?void 0:e.param}function eZ(e){switch(e){case KX:case QX:case vY:case fY:case pY:case mY:case _Y:case bY:case xY:case wY:case gY:return 6;case kY:return 4;default:return 10}}function tZ(e){return e&&!!e.expr}function nZ(e){const t=AX(e||{}),n={};for(const r of t)n[r]=fZ(e[r]);return n}function rZ(e){const{anchor:t,frame:n,offset:r,orient:i,angle:o,limit:a,color:s,subtitleColor:l,subtitleFont:c,subtitleFontSize:u,subtitleFontStyle:h,subtitleFontWeight:d,subtitleLineHeight:f,subtitlePadding:p}=e,m=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{var r;return e.field.push(O0(n,t)),e.order.push(null!==(r=n.sort)&&void 0!==r?r:"ascending"),e}),{field:[],order:[]})}function EZ(e,t){const n=[...e];return t.forEach((e=>{for(const t of n)if(cX(t,e))return;n.push(e)})),n}function CZ(e,t){return cX(e,t)||!t?e:e?[...qG(e),...qG(t)].join(", "):t}function SZ(e,t){const n=e.value,r=t.value;if(null==n||null===r)return{explicit:e.explicit,value:null};if((iZ(n)||oZ(n))&&(iZ(r)||oZ(r)))return{explicit:e.explicit,value:CZ(n,r)};if(iZ(n)||oZ(n))return{explicit:e.explicit,value:n};if(iZ(r)||oZ(r))return{explicit:e.explicit,value:r};if(!(iZ(n)||oZ(n)||iZ(r)||oZ(r)))return{explicit:e.explicit,value:EZ(n,r)};throw new Error("It should never reach here")}function DZ(e){return`Invalid specification ${fX(e)}. Make sure the specification includes at least one of the following properties: "mark", "layer", "facet", "hconcat", "vconcat", "concat", or "repeat".`}function AZ(e){return("width"==e?"Width":"Height")+' "container" only works for single views and layered views.'}function TZ(e){return`${"width"==e?"Width":"Height"} "container" only works well with autosize "fit" or "fit-${"width"==e?"x":"y"}".`}function MZ(e){return e?`Dropping "fit-${e}" because spec has discrete ${nJ(e)}.`:'Dropping "fit" because spec has discrete size.'}function OZ(e){return`Unknown field for ${e}. Cannot calculate view size.`}function FZ(e){return`Cannot project a selection on encoding channel "${e}", which has no field.`}function PZ(e,t){return`Cannot project a selection on encoding channel "${e}" as it uses an aggregate function ("${t}").`}function NZ(e){return`Selection not supported for ${e} yet.`}function IZ(e){return`The "columns" property cannot be used when "${e}" has nested row/column.`}function BZ(e,t,n){return`An ancestor parsed field "${e}" as ${n} but a child wants to parse the field as ${t}.`}function jZ(e){return`Config.customFormatTypes is not true, thus custom format type and format for channel ${e} are dropped.`}function LZ(e){return`Invalid field type "${e}".`}function zZ(e,t){const{fill:n,stroke:r}=t;return`Dropping color ${e} as the plot also has ${n&&r?"fill and stroke":n?"fill":"stroke"}.`}function RZ(e,t){return`Dropping ${fX(e)} from channel "${t}" since it does not contain any data field, datum, value, or signal.`}function $Z(e,t,n){return`${e} dropped as it is incompatible with "${t}"${n?` when ${n}`:""}.`}function HZ(e){return`${e} encoding should be discrete (ordinal / nominal / binned).`}function UZ(e){return`${e} encoding should be discrete (ordinal / nominal / binned) or use a discretizing scale (e.g. threshold).`}function qZ(e,t){return`Using discrete channel "${e}" to encode "${t}" field can be misleading as it does not encode ${"ordinal"===t?"order":"magnitude"}.`}function WZ(e){return`Using unaggregated domain with raw field has no effect (${fX(e)}).`}function VZ(e){return`Unaggregated domain not applicable for "${e}" since it produces values outside the origin domain of the source data.`}function GZ(e){return`Unaggregated domain is currently unsupported for log scale (${fX(e)}).`}function XZ(e,t,n){return`${n}-scale's "${t}" is dropped as it does not work with ${e} scale.`}function YZ(e){return`The step for "${e}" is dropped because the ${"width"===e?"x":"y"} is continuous.`}const JZ="Domains that should be unioned has conflicting sort properties. Sort will be set to true.";function ZZ(e,t){return`Invalid ${e}: ${fX(t)}.`}function KZ(e){return`1D error band does not support ${e}.`}function QZ(e){return`Channel ${e} is required for "binned" bin.`}const eK=function(e,t){let n=2;return{level(e){return arguments.length?(n=+e,this):n},error(){return n>=1&&jG("error","ERROR",arguments),this},warn(){return n>=2&&jG("warn","WARN",arguments),this},info(){return n>=3&&jG("log","INFO",arguments),this},debug(){return n>=4&&jG("log","DEBUG",arguments),this}}}();let tK=eK;function nK(...e){tK.warn(...e)}function rK(e){if(e&&zG(e))for(const t of hK)if(t in e)return!0;return!1}new WeakMap;const iK=["january","february","march","april","may","june","july","august","september","october","november","december"],oK=iK.map((e=>e.substr(0,3))),aK=["sunday","monday","tuesday","wednesday","thursday","friday","saturday"],sK=aK.map((e=>e.substr(0,3)));function lK(e,t){const n=[];if(t&&void 0!==e.day&&AX(e).length>1&&(nK(function(e){return`Dropping day from datetime ${fX(e)} as day cannot be combined with other units.`}(e)),delete(e=uX(e)).day),void 0!==e.year?n.push(e.year):n.push(2012),void 0!==e.month){const r=t?function(e){if(JX(e)&&(e=+e),XG(e))return e-1;{const t=e.toLowerCase(),n=iK.indexOf(t);if(-1!==n)return n;const r=t.substr(0,3),i=oK.indexOf(r);if(-1!==i)return i;throw new Error(ZZ("month",e))}}(e.month):e.month;n.push(r)}else if(void 0!==e.quarter){const r=t?function(e){if(JX(e)&&(e=+e),XG(e))return e>4&&nK(ZZ("quarter",e)),e-1;throw new Error(ZZ("quarter",e))}(e.quarter):e.quarter;n.push(XG(r)?3*r:`${r}*3`)}else n.push(0);if(void 0!==e.date)n.push(e.date);else if(void 0!==e.day){const r=t?function(e){if(JX(e)&&(e=+e),XG(e))return e%7;{const t=e.toLowerCase(),n=aK.indexOf(t);if(-1!==n)return n;const r=t.substr(0,3),i=sK.indexOf(r);if(-1!==i)return i;throw new Error(ZZ("day",e))}}(e.day):e.day;n.push(XG(r)?r+1:`${r}+1`)}else n.push(1);for(const t of["hours","minutes","seconds","milliseconds"]){const r=e[t];n.push(void 0===r?0:r)}return n}function cK(e){const t=lK(e,!0).join(", ");return e.utc?`utc(${t})`:`datetime(${t})`}const uK={year:1,quarter:1,month:1,week:1,day:1,dayofyear:1,date:1,hours:1,minutes:1,seconds:1,milliseconds:1},hK=AX(uK);function dK(e){return e.startsWith("utc")}const fK={"year-month":"%b %Y ","year-month-date":"%b %d, %Y "};function pK(e){return hK.filter((t=>mK(e,t)))}function mK(e,t){const n=e.indexOf(t);return!(n<0||n>0&&"seconds"===t&&"i"===e.charAt(n-1)||e.length>n+3&&"day"===t&&"o"===e.charAt(n+3)||n>0&&"year"===t&&"f"===e.charAt(n-1))}function gK(e){if(!e)return;const t=pK(e);return`timeUnitSpecifier(${fX(t)}, ${fX(fK)})`}function vK(e){if(!e)return;let t;return YG(e)?t={unit:e}:zG(e)&&(t=Object.assign(Object.assign({},e),e.unit?{unit:e.unit}:{})),dK(t.unit)&&(t.utc=!0,t.unit=function(e){return e.substr(3)}(t.unit)),t}function yK(e){return e&&!!e.field&&void 0!==e.equal}function bK(e){return e&&!!e.field&&void 0!==e.lt}function xK(e){return e&&!!e.field&&void 0!==e.lte}function wK(e){return e&&!!e.field&&void 0!==e.gt}function _K(e){return e&&!!e.field&&void 0!==e.gte}function kK(e){if(null==e?void 0:e.field){if(LG(e.range)&&2===e.range.length)return!0;if(oZ(e.range))return!0}return!1}function EK(e){return e&&!!e.field&&(LG(e.oneOf)||LG(e.in))}function CK(e){return EK(e)||yK(e)||kK(e)||bK(e)||wK(e)||xK(e)||_K(e)}function SK(e,t){return X0(e,{timeUnit:t,wrapTime:!0})}function DK(e,t=!0){var n;const{field:r}=e,i=null===(n=vK(e.timeUnit))||void 0===n?void 0:n.unit,o=i?`time(${function(e,t,{end:n}={end:!1}){const r=BX(t),i=dK(e)?"utc":"";let o;const a={};for(const t of hK)mK(e,t)&&(a[t]="quarter"===(s=t)?`(${i}quarter(${r})-1)`:`${i}${s}(${r})`,o=t);var s;return n&&(a[o]+="+1"),function(e){const t=lK(e,!1).join(", ");return e.utc?`utc(${t})`:`datetime(${t})`}(a)}(i,r)})`:O0(e,{expr:"datum"});if(yK(e))return`${o}===${SK(e.equal,i)}`;if(bK(e))return`${o}<${SK(e.lt,i)}`;if(wK(e))return`${o}>${SK(e.gt,i)}`;if(xK(e))return`${o}<=${SK(e.lte,i)}`;if(_K(e))return`${o}>=${SK(e.gte,i)}`;if(EK(e))return`indexof([${function(e,t){return e.map((e=>SK(e,t)))}(e.oneOf,i).join(",")}], ${o}) !== -1`;if(function(e){return e&&!!e.field&&void 0!==e.valid}(e))return AK(o,e.valid);if(kK(e)){const{range:n}=e,r=oZ(n)?{signal:`${n.signal}[0]`}:n[0],a=oZ(n)?{signal:`${n.signal}[1]`}:n[1];if(null!==r&&null!==a&&t)return"inrange("+o+", ["+SK(r,i)+", "+SK(a,i)+"])";const s=[];return null!==r&&s.push(`${o} >= ${SK(r,i)}`),null!==a&&s.push(`${o} <= ${SK(a,i)}`),s.length>0?s.join(" && "):"true"}throw new Error(`Invalid field predicate: ${fX(e)}`)}function AK(e,t=!0){return t?`isValid(${e}) && isFinite(+${e})`:`!isValid(${e}) || !isFinite(+${e})`}function TK(e){var t;return CK(e)&&e.timeUnit?Object.assign(Object.assign({},e),{timeUnit:null===(t=vK(e.timeUnit))||void 0===t?void 0:t.unit}):e}const MK={quantitative:"quantitative",ordinal:"ordinal",temporal:"temporal",nominal:"nominal",geojson:"geojson"},OK=MK.quantitative,FK=MK.ordinal,PK=MK.temporal,NK=MK.nominal,IK=MK.geojson;AX(MK);const BK="linear",jK="time",LK="utc",zK={linear:"numeric",log:"numeric",pow:"numeric",sqrt:"numeric",symlog:"numeric",identity:"numeric",sequential:"numeric",time:"time",utc:"time",ordinal:"ordinal","bin-ordinal":"bin-ordinal",point:"ordinal-position",band:"ordinal-position",quantile:"discretizing",quantize:"discretizing",threshold:"discretizing"};function RK(e,t){const n=zK[e],r=zK[t];return n===r||"ordinal-position"===n&&"time"===r||"ordinal-position"===r&&"time"===n}AX(zK);const $K={linear:0,log:1,pow:1,sqrt:1,symlog:1,identity:1,sequential:1,time:0,utc:0,point:10,band:11,ordinal:0,"bin-ordinal":0,quantile:0,quantize:0,threshold:0};function HK(e){return $K[e]}const UK=["linear","log","pow","sqrt","symlog","time","utc"],qK=ZG(UK),WK=ZG(["linear","log","pow","sqrt","symlog"]),VK=ZG(["quantile","quantize","threshold"]),GK=ZG(UK.concat(["quantile","quantize","threshold","sequential","identity"])),XK=ZG(["ordinal","bin-ordinal","point","band"]);function YK(e){return e in XK}function JK(e){return e in GK}function ZK(e){return e in qK}function KK(e){return e in VK}function QK(e){return null==e?void 0:e.param}const eQ={type:1,domain:1,domainMax:1,domainMin:1,domainMid:1,align:1,range:1,rangeMax:1,rangeMin:1,scheme:1,bins:1,reverse:1,round:1,clamp:1,nice:1,base:1,exponent:1,constant:1,interpolate:1,zero:1,padding:1,paddingInner:1,paddingOuter:1},{type:tQ,domain:nQ,range:rQ,rangeMax:iQ,rangeMin:oQ,scheme:aQ}=(AX(eQ),eQ),sQ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);iFX(`${"unit"===e?"":`_${e}_`}${r[e]}`))).join(""):(n?"utc":"")+"timeunit"+AX(r).map((e=>FX(`_${e}_${r[e]}`))).join("")}(h),s=(!["range","mid"].includes(t.binSuffix)&&t.binSuffix||"")+(null!==(i=t.suffix)&&void 0!==i?i:""))}a&&(o=o?`${a}_${o}`:a)}return s&&(o=`${o}_${s}`),a&&(o=`${a}_${o}`),t.forAs?$X(o):t.expr?jX(o,t.expr)+l:zX(o)+l}function F0(e){switch(e.type){case"nominal":case"ordinal":case"geojson":return!0;case"quantitative":return y0(e)&&!!e.bin;case"temporal":return!1}throw new Error(LZ(e.type))}const P0=(e,t)=>{switch(t.fieldTitle){case"plain":return e.field;case"functional":return function(e){const{aggregate:t,bin:n,timeUnit:r,field:i}=e;if(UJ(t))return`${i} for argmax(${t.argmax})`;if(HJ(t))return`${i} for argmin(${t.argmin})`;const o=vK(r),a=t||(null==o?void 0:o.unit)||(null==o?void 0:o.maxbins)&&"timeunit"||JJ(n)&&"bin";return a?`${a.toUpperCase()}(${i})`:i}(e);default:return function(e,t){var n;const{field:r,bin:i,timeUnit:o,aggregate:a}=e;if("count"===a)return t.countTitle;if(JJ(i))return`${r} (binned)`;if(o){const e=null===(n=vK(o))||void 0===n?void 0:n.unit;if(e)return`${r} (${pK(e).join("-")})`}else if(a)return UJ(a)?`${r} for max ${a.argmax}`:HJ(a)?`${r} for min ${a.argmin}`:`${IX(a)} of ${r}`;return r}(e,t)}};let N0=P0;function I0(e){N0=e}function B0(e,t,{allowDisabling:n,includeDefault:r=!0}){var i,o;const a=null===(i=j0(e))||void 0===i?void 0:i.title;if(!y0(e))return a;const s=e,l=r?L0(s,t):void 0;return n?UX(a,s.title,l):null!==(o=null!=a?a:s.title)&&void 0!==o?o:l}function j0(e){return D0(e)&&e.axis?e.axis:A0(e)&&e.legend?e.legend:s0(e)&&e.header?e.header:void 0}function L0(e,t){return N0(e,t)}function z0(e){var t;if(T0(e)){const{format:t,formatType:n}=e;return{format:t,formatType:n}}{const n=null!==(t=j0(e))&&void 0!==t?t:{},{format:r,formatType:i}=n;return{format:r,formatType:i}}}function R0(e){return y0(e)?e:g0(e)?e.condition:void 0}function $0(e){return k0(e)?e:v0(e)?e.condition:void 0}function H0(e,t,n,r={}){return YG(e)||XG(e)||GG(e)?(nK(function(e,t,n){return`Channel ${e} is a ${t}. Converted to {value: ${fX(n)}}.`}(t,YG(e)?"string":XG(e)?"number":"boolean",e)),{value:e}):k0(e)?U0(e,t,n,r):v0(e)?Object.assign(Object.assign({},e),{condition:U0(e.condition,t,n,r)}):e}function U0(e,t,n,r){if(T0(e)){const{format:i,formatType:o}=e,a=c0(e,["format","formatType"]);if(UQ(o)&&!n.customFormatTypes)return nK(jZ(t)),U0(a,t,n,r)}else{const i=D0(e)?"axis":A0(e)?"legend":s0(e)?"header":null;if(i&&e[i]){const o=e[i],{format:a,formatType:s}=o,l=c0(o,["format","formatType"]);if(UQ(s)&&!n.customFormatTypes)return nK(jZ(t)),U0(Object.assign(Object.assign({},e),{[i]:l}),t,n,r)}}return y0(e)?q0(e,t,r):function(e){let t=e.type;if(t)return e;const{datum:n}=e;return t=XG(n)?"quantitative":YG(n)?"nominal":rK(n)?"temporal":void 0,Object.assign(Object.assign({},e),{type:t})}(e)}function q0(e,t,{compositeMark:n=!1}={}){const{aggregate:r,timeUnit:i,bin:o,field:a}=e,s=Object.assign({},e);if(n||!r||qJ(r)||UJ(r)||HJ(r)||(nK(function(e){return`Invalid aggregation operator "${e}".`}(r)),delete s.aggregate),i&&(s.timeUnit=vK(i)),a&&(s.field=`${a}`),JJ(o)&&(s.bin=W0(o,t)),ZJ(o)&&!bJ(t)&&nK(function(e){return`Channel ${e} should not be used with "binned" bin.`}(t)),E0(s)){const{type:e}=s,t=function(e){if(e)switch(e=e.toLowerCase()){case"q":case OK:return"quantitative";case"t":case PK:return"temporal";case"o":case FK:return"ordinal";case"n":case NK:return"nominal";case IK:return"geojson"}}(e);e!==t&&(s.type=t),"quantitative"!==e&&VJ(r)&&(nK(function(e,t){return`Invalid field type "${e}" for aggregate: "${t}", using "quantitative" instead.`}(e,r)),s.type="quantitative")}else if(!KY(t)){const e=function(e,t){var n;switch(t){case"latitude":case"longitude":return"quantitative";case"row":case"column":case"facet":case"shape":case"strokeDash":return"nominal";case"order":return"ordinal"}if(h0(e)&&LG(e.sort))return"ordinal";const{aggregate:r,bin:i,timeUnit:o}=e;if(o)return"temporal";if(i||r&&!UJ(r)&&!HJ(r))return"quantitative";if(S0(e)&&(null===(n=e.scale)||void 0===n?void 0:n.type))switch(zK[e.scale.type]){case"numeric":case"discretizing":return"quantitative";case"time":return"temporal"}return"nominal"}(s,t);s.type=e}if(E0(s)){const{compatible:e,warning:n}=function(e,t){const n=e.type;if("geojson"===n&&"shape"!==t)return{compatible:!1,warning:`Channel ${t} should not be used with a geojson data.`};switch(t){case KX:case QX:case eY:return F0(e)?V0:{compatible:!1,warning:HZ(t)};case tY:case nY:case fY:case pY:case mY:case EY:case SY:case DY:case AY:case TY:case MY:case yY:case sY:case oY:case OY:return V0;case uY:case dY:case cY:case hY:return n!==OK?{compatible:!1,warning:`Channel ${t} should be used with a quantitative field only, not ${e.type} field.`}:V0;case bY:case xY:case wY:case _Y:case vY:case lY:case aY:case rY:case iY:return"nominal"!==n||e.sort?V0:{compatible:!1,warning:`Channel ${t} should not be used with an unsorted discrete field.`};case gY:case kY:return F0(e)||function(e){var t;return S0(e)&&KK(null===(t=e.scale)||void 0===t?void 0:t.type)}(e)?V0:{compatible:!1,warning:UZ(t)};case CY:return"nominal"!==e.type||"sort"in e?V0:{compatible:!1,warning:"Channel order is inappropriate for nominal field, which has no inherent order."}}}(s,t)||{};!1===e&&nK(n)}if(h0(s)&&YG(s.sort)){const{sort:e}=s;if(n0(e))return Object.assign(Object.assign({},s),{sort:{encoding:e}});const t=e.substr(1);if("-"===e.charAt(0)&&n0(t))return Object.assign(Object.assign({},s),{sort:{encoding:t,order:"descending"}})}if(s0(s)){const{header:e}=s;if(e){const{orient:t}=e,n=c0(e,["orient"]);if(t)return Object.assign(Object.assign({},s),{header:Object.assign(Object.assign({},n),{labelOrient:e.labelOrient||t,titleOrient:e.titleOrient||t})})}}return s}function W0(e,t){return GG(e)?{maxbins:eZ(t)}:"binned"===e?{binned:!0}:e.maxbins||e.step?e:Object.assign(Object.assign({},e),{maxbins:eZ(t)})}const V0={compatible:!0};function G0(e){const{formatType:t}=z0(e);return"time"===t||!t&&function(e){return e&&("temporal"===e.type||y0(e)&&!!e.timeUnit)}(e)}function X0(e,{timeUnit:t,type:n,wrapTime:r,undefinedIfExprNotRequired:i}){var o;const a=t&&(null===(o=vK(t))||void 0===o?void 0:o.unit);let s,l=a||"temporal"===n;return tZ(e)?s=e.expr:oZ(e)?s=e.signal:rK(e)?(l=!0,s=cK(e)):(YG(e)||XG(e))&&l&&(s=`datetime(${fX(e)})`,function(e){return!!uK[e]}(a)&&(XG(e)&&e<1e4||YG(e)&&isNaN(Date.parse(e)))&&(s=cK({[a]:e}))),s?r&&l?`time(${s})`:s:i?void 0:fX(e)}function Y0(e,t){const{type:n}=e;return t.map((t=>{const r=X0(t,{timeUnit:y0(e)?e.timeUnit:void 0,type:n,undefinedIfExprNotRequired:!0});return void 0!==r?{signal:r}:t}))}function J0(e,t){return JJ(e.bin)?IJ(t)&&["ordinal","nominal"].includes(e.type):(console.warn("Only call this method for binned field defs."),!1)}const Z0={labelAlign:{part:"labels",vgProp:"align"},labelBaseline:{part:"labels",vgProp:"baseline"},labelColor:{part:"labels",vgProp:"fill"},labelFont:{part:"labels",vgProp:"font"},labelFontSize:{part:"labels",vgProp:"fontSize"},labelFontStyle:{part:"labels",vgProp:"fontStyle"},labelFontWeight:{part:"labels",vgProp:"fontWeight"},labelOpacity:{part:"labels",vgProp:"opacity"},labelOffset:null,labelPadding:null,gridColor:{part:"grid",vgProp:"stroke"},gridDash:{part:"grid",vgProp:"strokeDash"},gridDashOffset:{part:"grid",vgProp:"strokeDashOffset"},gridOpacity:{part:"grid",vgProp:"opacity"},gridWidth:{part:"grid",vgProp:"strokeWidth"},tickColor:{part:"ticks",vgProp:"stroke"},tickDash:{part:"ticks",vgProp:"strokeDash"},tickDashOffset:{part:"ticks",vgProp:"strokeDashOffset"},tickOpacity:{part:"ticks",vgProp:"opacity"},tickSize:null,tickWidth:{part:"ticks",vgProp:"strokeWidth"}};function K0(e){return e&&e.condition}const Q0=["domain","grid","labels","ticks","title"],e1={grid:"grid",gridCap:"grid",gridColor:"grid",gridDash:"grid",gridDashOffset:"grid",gridOpacity:"grid",gridScale:"grid",gridWidth:"grid",orient:"main",bandPosition:"both",aria:"main",description:"main",domain:"main",domainCap:"main",domainColor:"main",domainDash:"main",domainDashOffset:"main",domainOpacity:"main",domainWidth:"main",format:"main",formatType:"main",labelAlign:"main",labelAngle:"main",labelBaseline:"main",labelBound:"main",labelColor:"main",labelFlush:"main",labelFlushOffset:"main",labelFont:"main",labelFontSize:"main",labelFontStyle:"main",labelFontWeight:"main",labelLimit:"main",labelLineHeight:"main",labelOffset:"main",labelOpacity:"main",labelOverlap:"main",labelPadding:"main",labels:"main",labelSeparation:"main",maxExtent:"main",minExtent:"main",offset:"both",position:"main",tickCap:"main",tickColor:"main",tickDash:"main",tickDashOffset:"main",tickMinStep:"both",tickOffset:"both",tickOpacity:"main",tickRound:"both",ticks:"main",tickSize:"main",tickWidth:"both",title:"main",titleAlign:"main",titleAnchor:"main",titleAngle:"main",titleBaseline:"main",titleColor:"main",titleFont:"main",titleFontSize:"main",titleFontStyle:"main",titleFontWeight:"main",titleLimit:"main",titleLineHeight:"main",titleOpacity:"main",titlePadding:"main",titleX:"main",titleY:"main",encode:"both",scale:"both",tickBand:"both",tickCount:"both",tickExtra:"both",translate:"both",values:"both",zindex:"both"},t1={orient:1,aria:1,bandPosition:1,description:1,domain:1,domainCap:1,domainColor:1,domainDash:1,domainDashOffset:1,domainOpacity:1,domainWidth:1,format:1,formatType:1,grid:1,gridCap:1,gridColor:1,gridDash:1,gridDashOffset:1,gridOpacity:1,gridWidth:1,labelAlign:1,labelAngle:1,labelBaseline:1,labelBound:1,labelColor:1,labelFlush:1,labelFlushOffset:1,labelFont:1,labelFontSize:1,labelFontStyle:1,labelFontWeight:1,labelLimit:1,labelLineHeight:1,labelOffset:1,labelOpacity:1,labelOverlap:1,labelPadding:1,labels:1,labelSeparation:1,maxExtent:1,minExtent:1,offset:1,position:1,tickBand:1,tickCap:1,tickColor:1,tickCount:1,tickDash:1,tickDashOffset:1,tickExtra:1,tickMinStep:1,tickOffset:1,tickOpacity:1,tickRound:1,ticks:1,tickSize:1,tickWidth:1,title:1,titleAlign:1,titleAnchor:1,titleAngle:1,titleBaseline:1,titleColor:1,titleFont:1,titleFontSize:1,titleFontStyle:1,titleFontWeight:1,titleLimit:1,titleLineHeight:1,titleOpacity:1,titlePadding:1,titleX:1,titleY:1,translate:1,values:1,zindex:1},n1=Object.assign(Object.assign({},t1),{style:1,labelExpr:1,encoding:1});function r1(e){return!!n1[e]}AX(n1);const i1=AX({axis:1,axisBand:1,axisBottom:1,axisDiscrete:1,axisLeft:1,axisPoint:1,axisQuantitative:1,axisRight:1,axisTemporal:1,axisTop:1,axisX:1,axisXBand:1,axisXDiscrete:1,axisXPoint:1,axisXQuantitative:1,axisXTemporal:1,axisY:1,axisYBand:1,axisYDiscrete:1,axisYPoint:1,axisYQuantitative:1,axisYTemporal:1});function o1(e){return"mark"in e}class a1{constructor(e,t){this.name=e,this.run=t}hasMatchingType(e){return!!o1(e)&&function(e){return TQ(e)?e.type:e}(e.mark)===this.name}}function s1(e,t){const n=e&&e[t];return!!n&&(LG(n)?vX(n,(e=>!!e.field)):y0(n)||g0(n))}function l1(e){return vX($Y,(t=>{if(s1(e,t)){const n=e[t];if(LG(n))return vX(n,(e=>!!e.aggregate));{const e=R0(n);return e&&!!e.aggregate}}return!1}))}function c1(e,t){const n=[],r=[],i=[],o=[],a={};return d1(e,((s,l)=>{if(y0(s)){const{field:c,aggregate:u,bin:h,timeUnit:d}=s,f=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{if(!JY(o))return nK(function(e){return`${e}-encoding is dropped as ${e} is not a valid encoding channel.`}(o)),i;const a=e[o];if("angle"!==o||"arc"!==t||e.theta||(nK("Arc marks uses theta channel rather than angle, replacing angle with theta."),o=sY),!function(e,t,n){const r=function(e,t){return function(e){switch(e){case fY:case pY:case mY:case OY:case SY:case DY:case AY:case TY:case CY:case bY:case xY:case wY:case _Y:case eY:case KX:case QX:return BJ;case tY:case nY:case cY:case uY:return LJ;case rY:case iY:case hY:case dY:return{area:"always",bar:"always",image:"always",rect:"always",rule:"always",circle:"binned",point:"binned",square:"binned",tick:"binned",line:"binned",trail:"binned"};case vY:return{point:"always",tick:"always",rule:"always",circle:"always",square:"always",bar:"always",text:"always",line:"always",trail:"always"};case kY:return{line:"always",point:"always",tick:"always",rule:"always",circle:"always",square:"always",bar:"always",geoshape:"always"};case gY:return{point:"always",geoshape:"always"};case EY:return{text:"always"};case yY:return{point:"always",square:"always",text:"always"};case MY:return{image:"always"};case sY:case oY:return{text:"always",arc:"always"};case lY:case aY:return{arc:"always"}}}(e)[t]}(t,n);if(!r)return!1;if("binned"===r){const n=e[t===rY?tY:nY];return!!(y0(n)&&y0(e[t])&&ZJ(n.bin))}return!0}(e,o,t))return nK($Z(o,t)),i;if(o===vY&&"line"===t){const t=R0(e[o]);if(null==t?void 0:t.aggregate)return nK("Line marks cannot encode size with a non-groupby field. You may want to use trail marks instead."),i}if(o===fY&&(n?"fill"in e:"stroke"in e))return nK(zZ("encoding",{fill:"fill"in e,stroke:"stroke"in e})),i;if(o===SY||o===CY&&!LG(a)&&!C0(a)||o===AY&&LG(a))a&&(i[o]=qG(a).reduce(((e,t)=>(y0(t)?e.push(q0(t,o)):nK(RZ(t,o)),e)),[]));else{if(o===AY&&null===a)i[o]=null;else if(!(y0(a)||x0(a)||C0(a)||m0(a)||oZ(a)))return nK(RZ(a,o)),i;i[o]=H0(a,o,r)}return i}),{})}function h1(e,t){const n={};for(const r of AX(e)){const i=H0(e[r],r,t,{compositeMark:!0});n[r]=i}return n}function d1(e,t,n){if(e)for(const r of AX(e)){const i=e[r];if(LG(i))for(const e of i)t.call(n,e,r);else t.call(n,i,r)}}function f1(e,t){return AX(t).reduce(((n,r)=>{switch(r){case tY:case nY:case TY:case OY:case MY:case rY:case iY:case sY:case lY:case oY:case aY:case cY:case uY:case hY:case dY:case EY:case gY:case yY:case AY:return n;case CY:if("line"===e||"trail"===e)return n;case SY:case DY:{const e=t[r];if(LG(e)||y0(e))for(const t of qG(e))t.aggregate||n.push(O0(t,{}));return n}case vY:if("trail"===e)return n;case fY:case pY:case mY:case bY:case xY:case wY:case kY:case _Y:{const e=R0(t[r]);return e&&!e.aggregate&&n.push(O0(e,{})),n}}}),[])}var p1=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{const i=r?` of ${g1(t)}`:"";return{field:e+t.field,type:t.type,title:oZ(n)?{signal:`${n}"${escape(i)}"`}:n+i}})),o=function(e){const t=[];for(const n of AX(e))if(s1(e,n)){const r=qG(e[n]);for(const e of r)y0(e)?t.push(e):g0(e)&&t.push(e.condition)}return t}(n).map(M0);return{tooltip:[...i,...wX(o,pX)]}}function g1(e){const{title:t,field:n}=e;return UX(t,n)}function v1(e,t,n,r,i){const{scale:o,axis:a}=n;return({partName:s,mark:l,positionPrefix:c,endPositionPrefix:u,extraEncoding:h={}})=>{const d=g1(n);return y1(e,s,i,{mark:l,encoding:Object.assign(Object.assign(Object.assign({[t]:Object.assign(Object.assign(Object.assign({field:`${c}_${n.field}`,type:n.type},void 0!==d?{title:d}:{}),void 0!==o?{scale:o}:{}),void 0!==a?{axis:a}:{})},YG(u)?{[`${t}2`]:{field:`${u}_${n.field}`}}:{}),r),h)})}}function y1(e,t,n,r){const{clip:i,color:o,opacity:a}=e,s=e.type;return e[t]||void 0===e[t]&&n[t]?[Object.assign(Object.assign({},r),{mark:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},n[t]),i?{clip:i}:{}),o?{color:o}:{}),a?{opacity:a}:{}),TQ(r.mark)?r.mark:{type:r.mark}),{style:`${s}-${t}`}),GG(e[t])?{}:e[t])})]:[]}function b1(e,t,n){const{encoding:r}=e,i="vertical"===t?"y":"x",o=r[i],a=r[`${i}2`],s=r[`${i}Error`],l=r[`${i}Error2`];return{continuousAxisChannelDef:x1(o,n),continuousAxisChannelDef2:x1(a,n),continuousAxisChannelDefError:x1(s,n),continuousAxisChannelDefError2:x1(l,n),continuousAxis:i}}function x1(e,t){if(null==e?void 0:e.aggregate){const{aggregate:n}=e,r=p1(e,["aggregate"]);return n!==t&&nK(function(e,t){return`Continuous axis should not have customized aggregation function ${e}; ${t} already agregates the axis.`}(n,t)),r}return e}function w1(e,t){const{mark:n,encoding:r}=e,{x:i,y:o}=r;if(TQ(n)&&n.orient)return n.orient;if(w0(i)){if(w0(o)){const e=y0(i)&&i.aggregate,n=y0(o)&&o.aggregate;if(e||n!==t){if(n||e!==t){if(e===t&&n===t)throw new Error("Both x and y cannot have aggregate");return G0(o)&&!G0(i)?"horizontal":"vertical"}return"horizontal"}return"vertical"}return"horizontal"}if(w0(o))return"vertical";throw new Error(`Need a valid continuous axis for ${t}s`)}var _1=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);iv1(c,v,g,e,t.boxplot),A=D(S),T=D(x),M=D(Object.assign(Object.assign({},S),C?{size:C}:{})),O=m1([{fieldPrefix:"min-max"===d?"upper_whisker_":"max_",titlePrefix:"Max"},{fieldPrefix:"upper_box_",titlePrefix:"Q3"},{fieldPrefix:"mid_box_",titlePrefix:"Median"},{fieldPrefix:"lower_box_",titlePrefix:"Q1"},{fieldPrefix:"min-max"===d?"lower_whisker_":"min_",titlePrefix:"Min"}],g,x),F={type:"tick",color:"black",opacity:1,orient:w,invalid:null,aria:!1},P="min-max"===d?O:m1([{fieldPrefix:"upper_whisker_",titlePrefix:"Upper Whisker"},{fieldPrefix:"lower_whisker_",titlePrefix:"Lower Whisker"}],g,x),N=[...A({partName:"rule",mark:{type:"rule",invalid:null,aria:!1},positionPrefix:"lower_whisker",endPositionPrefix:"lower_box",extraEncoding:P}),...A({partName:"rule",mark:{type:"rule",invalid:null,aria:!1},positionPrefix:"upper_box",endPositionPrefix:"upper_whisker",extraEncoding:P}),...A({partName:"ticks",mark:F,positionPrefix:"lower_whisker",extraEncoding:P}),...A({partName:"ticks",mark:F,positionPrefix:"upper_whisker",extraEncoding:P})],I=[..."tukey"!==d?N:[],...T({partName:"box",mark:Object.assign(Object.assign({type:"bar"},h?{size:h}:{}),{orient:_,invalid:null,ariaRoleDescription:"box"}),positionPrefix:"lower_box",endPositionPrefix:"upper_box",extraEncoding:O}),...M({partName:"median",mark:Object.assign(Object.assign(Object.assign({type:"tick",invalid:null},zG(t.boxplot.median)&&t.boxplot.median.color?{color:t.boxplot.median.color}:{}),h?{size:h}:{}),{orient:w,aria:!1}),positionPrefix:"mid_box",extraEncoding:O})];if("min-max"===d)return Object.assign(Object.assign({},l),{transform:(null!==(r=l.transform)&&void 0!==r?r:[]).concat(m),layer:I});const B=`datum["lower_box_${g.field}"]`,j=`datum["upper_box_${g.field}"]`,L=`(${j} - ${B})`,z=`${B} - ${u} * ${L}`,R=`${j} + ${u} * ${L}`,$=`datum["${g.field}"]`,H={joinaggregate:D1(g.field),groupby:y},U={transform:[{filter:`(${z} <= ${$}) && (${$} <= ${R})`},{aggregate:[{op:"min",field:g.field,as:`lower_whisker_${g.field}`},{op:"max",field:g.field,as:`upper_whisker_${g.field}`},{op:"min",field:`lower_box_${g.field}`,as:`lower_box_${g.field}`},{op:"max",field:`upper_box_${g.field}`,as:`upper_box_${g.field}`},...b],groupby:y}],layer:N},{tooltip:q}=S,W=_1(S,["tooltip"]),{scale:V,axis:G}=g,X=g1(g),Y=dX(G,["title"]),J=y1(c,"outliers",t.boxplot,{transform:[{filter:`(${$} < ${z}) || (${$} > ${R})`}],mark:"point",encoding:Object.assign(Object.assign(Object.assign({[v]:Object.assign(Object.assign(Object.assign({field:g.field,type:g.type},void 0!==X?{title:X}:{}),void 0!==V?{scale:V}:{}),DX(Y)?{}:{axis:Y})},W),E?{color:E}:{}),k?{tooltip:k}:{})})[0];let Z;const K=[...f,...p,H];return J?Z={transform:K,layer:[J,U]}:(Z=U,Z.transform.unshift(...K)),Object.assign(Object.assign({},l),{layer:[Z,{transform:m,layer:I}]})}function D1(e){return[{op:"q1",field:e,as:`lower_box_${e}`},{op:"q3",field:e,as:`upper_box_${e}`}]}var A1=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i1?{layer:p}:Object.assign({},p[0]))}function F1(e,t,n){var r;const{mark:i,encoding:o,params:a,projection:s}=e,l=A1(e,["mark","encoding","params","projection"]),c=TQ(i)?i:{type:i};a&&nK(NZ(t));const{orient:u,inputType:h}=function(e,t){const{encoding:n}=e;if(function(e){return(k0(e.x)||k0(e.y))&&!k0(e.x2)&&!k0(e.y2)&&!k0(e.xError)&&!k0(e.xError2)&&!k0(e.yError)&&!k0(e.yError2)}(n))return{orient:w1(e,t),inputType:"raw"};const r=function(e){return k0(e.x2)||k0(e.y2)}(n),i=function(e){return k0(e.xError)||k0(e.xError2)||k0(e.yError)||k0(e.yError2)}(n),o=n.x,a=n.y;if(r){if(i)throw new Error(`${t} cannot be both type aggregated-upper-lower and aggregated-error`);const e=n.x2,r=n.y2;if(k0(e)&&k0(r))throw new Error(`${t} cannot have both x2 and y2`);if(k0(e)){if(w0(o))return{orient:"horizontal",inputType:"aggregated-upper-lower"};throw new Error(`Both x and x2 have to be quantitative in ${t}`)}if(k0(r)){if(w0(a))return{orient:"vertical",inputType:"aggregated-upper-lower"};throw new Error(`Both y and y2 have to be quantitative in ${t}`)}throw new Error("No ranged axis")}{const e=n.xError,r=n.xError2,i=n.yError,s=n.yError2;if(k0(r)&&!k0(e))throw new Error(`${t} cannot have xError2 without xError`);if(k0(s)&&!k0(i))throw new Error(`${t} cannot have yError2 without yError`);if(k0(e)&&k0(i))throw new Error(`${t} cannot have both xError and yError with both are quantiative`);if(k0(e)){if(w0(o))return{orient:"horizontal",inputType:"aggregated-error"};throw new Error("All x, xError, and xError2 (if exist) have to be quantitative")}if(k0(i)){if(w0(a))return{orient:"vertical",inputType:"aggregated-error"};throw new Error("All y, yError, and yError2 (if exist) have to be quantitative")}throw new Error("No ranged axis")}}(e,t),{continuousAxisChannelDef:d,continuousAxisChannelDef2:f,continuousAxisChannelDefError:p,continuousAxisChannelDefError2:m,continuousAxis:g}=b1(e,u,t),{errorBarSpecificAggregate:v,postAggregateCalculates:y,tooltipSummary:b,tooltipTitleWithFieldName:x}=function(e,t,n,r,i,o,a,s){let l=[],c=[];const u=t.field;let h,d=!1;if("raw"===o){const t=e.center?e.center:e.extent?"iqr"===e.extent?"median":"mean":s.errorbar.center,n=e.extent?e.extent:"mean"===t?"stderr":"iqr";if("median"===t!=("iqr"===n)&&nK(function(e,t,n){return`${e} is not usually used with ${t} for ${n}.`}(t,n,a)),"stderr"===n||"stdev"===n)l=[{op:n,field:u,as:`extent_${u}`},{op:t,field:u,as:`center_${u}`}],c=[{calculate:`datum["center_${u}"] + datum["extent_${u}"]`,as:`upper_${u}`},{calculate:`datum["center_${u}"] - datum["extent_${u}"]`,as:`lower_${u}`}],h=[{fieldPrefix:"center_",titlePrefix:IX(t)},{fieldPrefix:"upper_",titlePrefix:P1(t,n,"+")},{fieldPrefix:"lower_",titlePrefix:P1(t,n,"-")}],d=!0;else{let e,t,r;"ci"===n?(e="mean",t="ci0",r="ci1"):(e="median",t="q1",r="q3"),l=[{op:t,field:u,as:`lower_${u}`},{op:r,field:u,as:`upper_${u}`},{op:e,field:u,as:`center_${u}`}],h=[{fieldPrefix:"upper_",titlePrefix:B0({field:u,aggregate:r,type:"quantitative"},s,{allowDisabling:!1})},{fieldPrefix:"lower_",titlePrefix:B0({field:u,aggregate:t,type:"quantitative"},s,{allowDisabling:!1})},{fieldPrefix:"center_",titlePrefix:B0({field:u,aggregate:e,type:"quantitative"},s,{allowDisabling:!1})}]}}else{(e.center||e.extent)&&nK((f=e.center,`${(p=e.extent)?"extent ":""}${p&&f?"and ":""}${f?"center ":""}${p&&f?"are ":"is "}not needed when data are aggregated.`)),"aggregated-upper-lower"===o?(h=[],c=[{calculate:`datum["${n.field}"]`,as:`upper_${u}`},{calculate:`datum["${u}"]`,as:`lower_${u}`}]):"aggregated-error"===o&&(h=[{fieldPrefix:"",titlePrefix:u}],c=[{calculate:`datum["${u}"] + datum["${r.field}"]`,as:`upper_${u}`}],i?c.push({calculate:`datum["${u}"] + datum["${i.field}"]`,as:`lower_${u}`}):c.push({calculate:`datum["${u}"] - datum["${r.field}"]`,as:`lower_${u}`}));for(const e of c)h.push({fieldPrefix:e.as.substring(0,6),titlePrefix:RX(RX(e.calculate,'datum["',""),'"]',"")})}var f,p;return{postAggregateCalculates:c,errorBarSpecificAggregate:l,tooltipSummary:h,tooltipTitleWithFieldName:d}}(c,d,f,p,m,h,t,n),w=o,_=g,k=(w[_],"x"===g?"x2":"y2"),E=(w[k],"x"===g?"xError":"yError"),C=(w[E],"x"===g?"xError2":"yError2"),S=(w[C],A1(w,["symbol"==typeof _?_:_+"","symbol"==typeof k?k:k+"","symbol"==typeof E?E:E+"","symbol"==typeof C?C:C+""])),{bins:D,timeUnits:A,aggregate:T,groupby:M,encoding:O}=c1(S,n),F=[...T,...v],P="raw"!==h?[]:M,N=m1(b,d,O,x);return{transform:[...null!==(r=l.transform)&&void 0!==r?r:[],...D,...A,...0===F.length?[]:[{aggregate:F,groupby:P}],...y],groupby:P,continuousAxisChannelDef:d,continuousAxis:g,encodingWithoutContinuousAxis:O,ticksOrient:"vertical"===u?"horizontal":"vertical",markDef:c,outerSpec:l,tooltipEncoding:N}}function P1(e,t,n){return`${IX(e)} ${n} ${t}`}const N1="errorband",I1=new a1(N1,B1);function B1(e,{config:t}){e=Object.assign(Object.assign({},e),{encoding:h1(e.encoding,t)});const{transform:n,continuousAxisChannelDef:r,continuousAxis:i,encodingWithoutContinuousAxis:o,markDef:a,outerSpec:s,tooltipEncoding:l}=F1(e,N1,t),c=a,u=v1(c,i,r,o,t.errorband),h=void 0!==e.encoding.x&&void 0!==e.encoding.y;let d={type:h?"area":"rect"},f={type:h?"line":"rule"};const p=Object.assign(Object.assign({},c.interpolate?{interpolate:c.interpolate}:{}),c.tension&&c.interpolate?{tension:c.tension}:{});return h?(d=Object.assign(Object.assign(Object.assign({},d),p),{ariaRoleDescription:"errorband"}),f=Object.assign(Object.assign(Object.assign({},f),p),{aria:!1})):c.interpolate?nK(KZ("interpolate")):c.tension&&nK(KZ("tension")),Object.assign(Object.assign({},s),{transform:n,layer:[...u({partName:"band",mark:d,positionPrefix:"lower",endPositionPrefix:"upper",extraEncoding:l}),...u({partName:"borders",mark:f,positionPrefix:"lower",extraEncoding:l}),...u({partName:"borders",mark:f,positionPrefix:"upper",extraEncoding:l})]})}const j1={};function L1(e,t,n){const r=new a1(e,t);j1[e]={normalizer:r,parts:n}}L1(k1,S1,["box","median","outliers","rule","ticks"]),L1(T1,O1,["ticks","rule"]),L1(N1,B1,["band","borders"]);const z1=["gradientHorizontalMaxLength","gradientHorizontalMinLength","gradientVerticalMaxLength","gradientVerticalMinLength","unselectedOpacity"],R1={titleAlign:"align",titleAnchor:"anchor",titleAngle:"angle",titleBaseline:"baseline",titleColor:"color",titleFont:"font",titleFontSize:"fontSize",titleFontStyle:"fontStyle",titleFontWeight:"fontWeight",titleLimit:"limit",titleLineHeight:"lineHeight",titleOrient:"orient",titlePadding:"offset"},$1={labelAlign:"align",labelAnchor:"anchor",labelAngle:"angle",labelBaseline:"baseline",labelColor:"color",labelFont:"font",labelFontSize:"fontSize",labelFontStyle:"fontStyle",labelFontWeight:"fontWeight",labelLimit:"limit",labelLineHeight:"lineHeight",labelOrient:"orient",labelPadding:"offset"},H1=AX(R1),U1=AX($1),q1=AX({header:1,headerRow:1,headerColumn:1,headerFacet:1}),W1=["size","shape","fill","stroke","strokeDash","strokeWidth","opacity"],V1={aria:1,clipHeight:1,columnPadding:1,columns:1,cornerRadius:1,description:1,direction:1,fillColor:1,format:1,formatType:1,gradientLength:1,gradientOpacity:1,gradientStrokeColor:1,gradientStrokeWidth:1,gradientThickness:1,gridAlign:1,labelAlign:1,labelBaseline:1,labelColor:1,labelFont:1,labelFontSize:1,labelFontStyle:1,labelFontWeight:1,labelLimit:1,labelOffset:1,labelOpacity:1,labelOverlap:1,labelPadding:1,labelSeparation:1,legendX:1,legendY:1,offset:1,orient:1,padding:1,rowPadding:1,strokeColor:1,symbolDash:1,symbolDashOffset:1,symbolFillColor:1,symbolLimit:1,symbolOffset:1,symbolOpacity:1,symbolSize:1,symbolStrokeColor:1,symbolStrokeWidth:1,symbolType:1,tickCount:1,tickMinStep:1,title:1,titleAlign:1,titleAnchor:1,titleBaseline:1,titleColor:1,titleFont:1,titleFontSize:1,titleFontStyle:1,titleFontWeight:1,titleLimit:1,titleLineHeight:1,titleOpacity:1,titleOrient:1,titlePadding:1,type:1,values:1,zindex:1},G1=(AX(V1),"_vgsid_"),X1={point:{on:"click",fields:[G1],toggle:"event.shiftKey",resolve:"global",clear:"dblclick"},interval:{on:"[mousedown, window:mouseup] > window:mousemove!",encodings:["x","y"],translate:"[mousedown, window:mouseup] > window:mousemove!",zoom:"wheel!",mark:{fill:"#333",fillOpacity:.125,stroke:"white"},resolve:"global",clear:"dblclick"}};function Y1(e){return!(!e||"legend"!==e&&!e.legend)}function J1(e){return Y1(e)&&zG(e)}function Z1(e){return!!e.select}var K1=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);ithis.mapLayerOrUnit(e,t)))})}mapHConcat(e,t){return Object.assign(Object.assign({},e),{hconcat:e.hconcat.map((e=>this.map(e,t)))})}mapVConcat(e,t){return Object.assign(Object.assign({},e),{vconcat:e.vconcat.map((e=>this.map(e,t)))})}mapConcat(e,t){const{concat:n}=e,r=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);ithis.map(e,t)))})}mapFacet(e,t){return Object.assign(Object.assign({},e),{spec:this.map(e.spec,t)})}mapRepeat(e,t){return Object.assign(Object.assign({},e),{spec:this.map(e.spec,t)})}}const k2={zero:1,center:1,normalize:1},E2=new Set([dQ,pQ,fQ,bQ,vQ,kQ,EQ,gQ,xQ,wQ]),C2=new Set([pQ,fQ,dQ]);function S2(e){return y0(e)&&"quantitative"===b0(e)&&!e.bin}function D2(e,t){var n,r;const i="x"===t?"y":"radius",o=e[t],a=e[i];if(y0(o)&&y0(a))if(S2(o)&&S2(a)){if(o.stack)return t;if(a.stack)return i;const e=y0(o)&&!!o.aggregate;if(e!==(y0(a)&&!!a.aggregate))return e?t:i;{const e=null===(n=o.scale)||void 0===n?void 0:n.type,s=null===(r=a.scale)||void 0===r?void 0:r.type;if(e&&"linear"!==e)return i;if(s&&"linear"!==s)return t}}else{if(S2(o))return t;if(S2(a))return i}else{if(S2(o))return t;if(S2(a))return i}}function A2(e,t,n={}){var r,i;const o=TQ(e)?e.type:e;if(!E2.has(o))return null;const a=D2(t,"x")||D2(t,"theta");if(!a)return null;const s=t[a],l=y0(s)?O0(s,{}):void 0;let c=function(e){switch(e){case"x":return"y";case"y":return"x";case"theta":return"radius";case"radius":return"theta"}}(a),u=t[c],h=y0(u)?O0(u,{}):void 0;h===l&&(h=void 0,u=void 0,c=void 0);const d=gJ.reduce(((e,n)=>{if("tooltip"!==n&&s1(t,n)){const r=t[n];for(const t of qG(r)){const r=R0(t);if(r.aggregate)continue;const i=O0(r,{});i&&i===h||e.push({channel:n,fieldDef:r})}}return e}),[]);let f;if(void 0!==s.stack?f=GG(s.stack)?s.stack?"zero":null:s.stack:C2.has(o)&&(f="zero"),!f||!(f in k2))return null;var p;if(l1(t)&&0===d.length)return null;if((null===(r=null==s?void 0:s.scale)||void 0===r?void 0:r.type)&&(null===(i=null==s?void 0:s.scale)||void 0===i?void 0:i.type)!==BK){if(n.disallowNonLinearStack)return null;nK(function(e){return`Cannot stack non-linear scale (${e}).`}(s.scale.type))}return k0(t[tJ(a)])?(void 0!==s.stack&&nK(`Cannot stack "${p=a}" if there is already "${p}2".`),null):(y0(s)&&s.aggregate&&!gX(GJ,s.aggregate)&&nK(`Stacking is applied even though the aggregate function is non-summative ("${s.aggregate}").`),{groupbyChannel:u?c:void 0,groupbyField:h,fieldChannel:a,impute:null!==s.impute&&SQ(o),stackBy:d,offset:f})}var T2=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i1?r:r.type}function O2(e){for(const t of["line","area","rule","trail"])e[t]&&(e=Object.assign(Object.assign({},e),{[t]:dX(e[t],["point","line"])}));return e}function F2(e,t={},n){return"transparent"===e.point?{opacity:0}:e.point?zG(e.point)?e.point:{}:void 0!==e.point?null:t.point||n.shape?zG(t.point)?t.point:{}:void 0}function P2(e,t={}){return e.line?!0===e.line?{}:e.line:void 0!==e.line?null:t.line?!0===t.line?{}:t.line:void 0}class N2{constructor(){this.name="path-overlay"}hasMatchingType(e,t){if(o1(e)){const{mark:n,encoding:r}=e,i=TQ(n)?n:{type:n};switch(i.type){case"line":case"rule":case"trail":return!!F2(i,t[i.type],r);case"area":return!!F2(i,t[i.type],r)||!!P2(i,t[i.type])}}return!1}run(e,t,n){const{config:r}=t,{params:i,projection:o,mark:a,encoding:s}=e,l=T2(e,["params","projection","mark","encoding"]),c=h1(s,r),u=TQ(a)?a:{type:a},h=F2(u,r[u.type],c),d="area"===u.type&&P2(u,r[u.type]),f=[Object.assign(Object.assign({},i?{params:i}:{}),{mark:M2(Object.assign(Object.assign({},"area"===u.type&&void 0===u.opacity&&void 0===u.fillOpacity?{opacity:.7}:{}),u)),encoding:dX(c,["shape"])})],p=A2(u,c);let m=c;if(p){const{fieldChannel:e,offset:t}=p;m=Object.assign(Object.assign({},c),{[e]:Object.assign(Object.assign({},c[e]),t?{stack:t}:{})})}return d&&f.push(Object.assign(Object.assign({},o?{projection:o}:{}),{mark:Object.assign(Object.assign({type:"line"},hX(u,["clip","interpolate","tension","tooltip"])),d),encoding:m})),h&&f.push(Object.assign(Object.assign({},o?{projection:o}:{}),{mark:Object.assign(Object.assign({type:"point",opacity:1,filled:!0},hX(u,["clip","tooltip"])),h),encoding:m})),n(Object.assign(Object.assign({},l),{layer:f}),Object.assign(Object.assign({},t),{config:O2(r)}))}}function I2(e,t){return t?a0(e)?$2(e,t):L2(e,t):e}function B2(e,t){return t?$2(e,t):e}function j2(e,t,n){const r=t[e];return function(e){return e&&!YG(e)&&"repeat"in e}(r)?r.repeat in n?Object.assign(Object.assign({},t),{[e]:n[r.repeat]}):void nK(function(e){return`Unknown repeated value "${e}".`}(r.repeat)):t}function L2(e,t){if(void 0!==(e=j2("field",e,t))){if(null===e)return null;if(h0(e)&&i0(e.sort)){const n=j2("field",e.sort,t);e=Object.assign(Object.assign({},e),n?{sort:n}:{})}return e}}function z2(e,t){if(y0(e))return L2(e,t);{const n=j2("datum",e,t);return n===e||n.type||(n.type="nominal"),n}}function R2(e,t){if(!k0(e)){if(v0(e)){const n=z2(e.condition,t);if(n)return Object.assign(Object.assign({},e),{condition:n});{const{condition:t}=e;return function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);iR2(e,t))).filter((e=>e));else{const e=R2(i,t);void 0!==e&&(n[r]=e)}}return n}class H2{constructor(){this.name="RuleForRangedLine"}hasMatchingType(e){if(o1(e)){const{encoding:t,mark:n}=e;if("line"===n||TQ(n)&&"line"===n.type)for(const e of ZY){const n=t[QY(e)];if(t[e]&&(y0(n)&&!ZJ(n.bin)||x0(n)))return!0}}return!1}run(e,t,n){const{encoding:r,mark:i}=e;var o,a;return nK((o=!!r.x2,a=!!r.y2,`Line mark is for continuous lines and thus cannot be used with ${o&&a?"x2 and y2":o?"x2":"y2"}. We will use the rule mark (line segments) instead.`)),n(Object.assign(Object.assign({},e),{mark:zG(i)?Object.assign(Object.assign({},i),{type:"rule"}):"rule"}),t)}}var U2=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{if(V2(e))return{filter:m3(e,t)};if(o3(e)&&KJ(e.bin))return Object.assign(Object.assign({},e),{bin:p3(e.bin)});if(X2(e)){const t=e.from,{selection:n}=t,r=h3(t,["selection"]);return n?Object.assign(Object.assign({},e),{from:Object.assign({param:n},r)}):e}return e}));return Object.assign(Object.assign({},r),{transform:e})}return e}function f3(e,t){var n,r;const i=uX(e);if(y0(i)&&KJ(i.bin)&&(i.bin=p3(i.bin)),S0(i)&&(null===(r=null===(n=i.scale)||void 0===n?void 0:n.domain)||void 0===r?void 0:r.selection)){const e=i.scale.domain,{selection:t}=e,n=h3(e,["selection"]);i.scale.domain=Object.assign(Object.assign({},n),t?{param:t}:{})}if(m0(i))if(qi(i.condition))i.condition=i.condition.map((e=>{const{selection:n,param:r,test:i}=e,o=h3(e,["selection","param","test"]);return r?e:Object.assign(Object.assign({},o),{test:m3(e,t)})}));else{const e=f3(i.condition,t),{selection:n,param:r,test:o}=e,a=h3(e,["selection","param","test"]);i.condition=r?i.condition:Object.assign(Object.assign({},a),{test:m3(i.condition,t)})}return i}function p3(e){const t=e.extent;if(null==t?void 0:t.selection){const{selection:n}=t,r=h3(t,["selection"]);return Object.assign(Object.assign({},e),{extent:Object.assign(Object.assign({},r),{param:n})})}return e}function m3(e,t){const n=e=>lX(e,(e=>{var n,r,i;const o={param:e,empty:null===(n=t.emptySelections[e])||void 0===n||n};return null!==(r=(i=t.selectionPredicates)[e])&&void 0!==r||(i[e]=[]),t.selectionPredicates[e].push(o),o}));return e.selection?n(e.selection):lX(e.test||e.filter,(e=>e.selection?n(e.selection):e))}class g3 extends _2{map(e,t){var n;const r=null!==(n=t.selections)&&void 0!==n?n:[];if(e.params&&!o1(e)){const t=[];for(const n of e.params)Z1(n)?r.push(n):t.push(n);e.params=t}return t.selections=r,super.map(e,v3(e,t))}mapUnit(e,t){var n;const r=t.selections;if(!r||!r.length)return e;const i=(null!==(n=t.path)&&void 0!==n?n:[]).concat(e.name),o=[];for(const t of r)if(t.views&&t.views.length)for(const n of t.views)($o(n)&&(n===e.name||i.indexOf(n)>=0)||qi(n)&&n.map((e=>i.indexOf(e))).every(((e,t,n)=>-1!==e&&(0===t||e>n[t-1]))))&&o.push(t);else o.push(t);return o.length&&(e.params=o),e}}for(const e of["mapFacet","mapRepeat","mapHConcat","mapVConcat","mapLayer"]){const t=g3.prototype[e];g3.prototype[e]=function(e,n){return t.call(this,e,v3(e,n))}}function v3(e,t){var n;return e.name?Object.assign(Object.assign({},t),{path:(null!==(n=t.path)&&void 0!==n?n:[]).concat(e.name)}):t}function y3(e,t){void 0===t&&(t=g2(e.config));const n=function(e,t={}){const n={config:t};return w3.map(b3.map(x3.map(e,n),n),n)}(e,t),{width:r,height:i}=e,o=function(e,t,n){let{width:r,height:i}=t;const o=o1(e)||w2(e),a={};o?"container"==r&&"container"==i?(a.type="fit",a.contains="padding"):"container"==r?(a.type="fit-x",a.contains="padding"):"container"==i&&(a.type="fit-y",a.contains="padding"):("container"==r&&(nK(AZ("width")),r=void 0),"container"==i&&(nK(AZ("height")),i=void 0));const s=Object.assign(Object.assign(Object.assign({type:"pad"},a),n?_3(n.autosize):{}),_3(e.autosize));if("fit"!==s.type||o||(nK('Autosize "fit" only works for single views and layered views.'),s.type="pad"),"container"==r&&"fit"!=s.type&&"fit-x"!=s.type&&nK(TZ("width")),"container"==i&&"fit"!=s.type&&"fit-y"!=s.type&&nK(TZ("height")),!cX(s,{type:"pad"}))return s}(n,{width:r,height:i,autosize:e.autosize},t);return Object.assign(Object.assign({},n),o?{autosize:o}:{})}const b3=new class extends _2{constructor(){super(...arguments),this.nonFacetUnitNormalizers=[E1,M1,I1,new N2,new H2]}map(e,t){if(o1(e)){const n=s1(e.encoding,KX),r=s1(e.encoding,QX),i=s1(e.encoding,eY);if(n||r||i)return this.mapFacetedUnit(e,t)}return super.map(e,t)}mapUnit(e,t){const{parentEncoding:n,parentProjection:r}=t,i=B2(e.encoding,t.repeater),o=Object.assign(Object.assign({},e),i?{encoding:i}:{});if(n||r)return this.mapUnitWithParentEncodingOrProjection(o,t);const a=this.mapLayerOrUnit.bind(this);for(const e of this.nonFacetUnitNormalizers)if(e.hasMatchingType(o,t.config))return e.run(o,t,a);return o}mapRepeat(e,t){return function(e){return!LG(e.repeat)&&e.repeat.layer}(e)?this.mapLayerRepeat(e,t):this.mapNonLayerRepeat(e,t)}mapLayerRepeat(e,t){const{repeat:n,spec:r}=e,i=U2(e,["repeat","spec"]),{row:o,column:a,layer:s}=n,{repeater:l={},repeaterPrefix:c=""}=t;return o||a?this.mapRepeat(Object.assign(Object.assign({},e),{repeat:Object.assign(Object.assign({},o?{row:o}:{}),a?{column:a}:{}),spec:{repeat:{layer:s},spec:r}}),t):Object.assign(Object.assign({},i),{layer:s.map((e=>{const n=Object.assign(Object.assign({},l),{layer:e}),i=`${(r.name||"")+c}child__layer_${FX(e)}`,o=this.mapLayerOrUnit(r,Object.assign(Object.assign({},t),{repeater:n,repeaterPrefix:i}));return o.name=i,o}))})}mapNonLayerRepeat(e,t){var n;const{repeat:r,spec:i,data:o}=e,a=U2(e,["repeat","spec","data"]);!LG(r)&&e.columns&&(e=dX(e,["columns"]),nK(IZ("repeat")));const s=[],{repeater:l={},repeaterPrefix:c=""}=t,u=!LG(r)&&r.row||[l?l.row:null],h=!LG(r)&&r.column||[l?l.column:null],d=LG(r)&&r||[l?l.repeat:null];for(const e of d)for(const n of u)for(const o of h){const a={repeat:e,row:n,column:o,layer:l.layer},u=(i.name||"")+c+"child__"+(LG(r)?`${FX(e)}`:(r.row?`row_${FX(n)}`:"")+(r.column?`column_${FX(o)}`:"")),h=this.map(i,Object.assign(Object.assign({},t),{repeater:a,repeaterPrefix:u}));h.name=u,s.push(dX(h,["data"]))}const f=LG(r)?e.columns:r.column?r.column.length:1;return Object.assign(Object.assign({data:null!==(n=i.data)&&void 0!==n?n:o,align:"all"},a),{columns:f,concat:s})}mapFacet(e,t){const{facet:n}=e;return a0(n)&&e.columns&&(e=dX(e,["columns"]),nK(IZ("facet"))),super.mapFacet(e,t)}mapUnitWithParentEncodingOrProjection(e,t){const{encoding:n,projection:r}=e,{parentEncoding:i,parentProjection:o,config:a}=t,s=W2({parentProjection:o,projection:r}),l=q2({parentEncoding:i,encoding:B2(n,t.repeater)});return this.mapUnit(Object.assign(Object.assign(Object.assign({},e),s?{projection:s}:{}),l?{encoding:l}:{}),{config:a})}mapFacetedUnit(e,t){const n=e.encoding,{row:r,column:i,facet:o}=n,a=U2(n,["row","column","facet"]),{mark:s,width:l,projection:c,height:u,view:h,params:d,encoding:f}=e,p=U2(e,["mark","width","projection","height","view","params","encoding"]),{facetMapping:m,layout:g}=this.getFacetMappingAndLayout({row:r,column:i,facet:o},t),v=B2(a,t.repeater);return this.mapFacet(Object.assign(Object.assign(Object.assign({},p),g),{facet:m,spec:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},l?{width:l}:{}),u?{height:u}:{}),h?{view:h}:{}),c?{projection:c}:{}),{mark:s,encoding:v}),d?{params:d}:{})}),t)}getFacetMappingAndLayout(e,t){var n;const{row:r,column:i,facet:o}=e;if(r||i){o&&nK(`Facet encoding dropped as ${(a=[...r?[KX]:[],...i?[QX]:[]]).join(" and ")} ${a.length>1?"are":"is"} also specified.`);const t={},s={};for(const r of[KX,QX]){const i=e[r];if(i){const{align:e,center:o,spacing:a,columns:l}=i,c=U2(i,["align","center","spacing","columns"]);t[r]=c;for(const e of["align","center","spacing"])void 0!==i[e]&&(null!==(n=s[e])&&void 0!==n||(s[e]={}),s[e][r]=i[e])}}return{facetMapping:t,layout:s}}{const{align:e,center:n,spacing:r,columns:i}=o;return{facetMapping:I2(U2(o,["align","center","spacing","columns"]),t.repeater),layout:Object.assign(Object.assign(Object.assign(Object.assign({},e?{align:e}:{}),n?{center:n}:{}),r?{spacing:r}:{}),i?{columns:i}:{})}}var a}mapLayer(e,t){var{parentEncoding:n,parentProjection:r}=t,i=U2(t,["parentEncoding","parentProjection"]);const{encoding:o,projection:a}=e,s=U2(e,["encoding","projection"]),l=Object.assign(Object.assign({},i),{parentEncoding:q2({parentEncoding:n,encoding:o,layer:!0}),parentProjection:W2({parentProjection:r,projection:a})});return super.mapLayer(s,l)}},x3=new class extends _2{map(e,t){var n,r;return null!==(n=t.emptySelections)&&void 0!==n||(t.emptySelections={}),null!==(r=t.selectionPredicates)&&void 0!==r||(t.selectionPredicates={}),e=d3(e,t),super.map(e,t)}mapLayerOrUnit(e,t){if((e=d3(e,t)).encoding){const n={};for(const[r,i]of MX(e.encoding))n[r]=f3(i,t);e=Object.assign(Object.assign({},e),{encoding:n})}return super.mapLayerOrUnit(e,t)}mapUnit(e,t){const n=e,{selection:r}=n,i=h3(n,["selection"]);return r?Object.assign(Object.assign({},i),{params:MX(r).map((([e,n])=>{var r;const i=n,{init:o,bind:a,empty:s}=i,l=h3(i,["init","bind","empty"]);"single"===l.type?(l.type="point",l.toggle=!1):"multi"===l.type&&(l.type="point"),t.emptySelections[e]="none"!==s;for(const n of TX(null!==(r=t.selectionPredicates[e])&&void 0!==r?r:{}))n.empty="none"!==s;return{name:e,value:o,select:l,bind:a}}))}):e}},w3=new g3;function _3(e){return YG(e)?{type:e}:null!=e?e:{}}const k3=["background","padding"];function E3(e,t){const n={};for(const t of k3)e&&void 0!==e[t]&&(n[t]=fZ(e[t]));return t&&(n.params=e.params),n}class C3{constructor(e={},t={}){this.explicit=e,this.implicit=t}clone(){return new C3(uX(this.explicit),uX(this.implicit))}combine(){return Object.assign(Object.assign({},this.explicit),this.implicit)}get(e){return UX(this.explicit[e],this.implicit[e])}getWithExplicit(e){return void 0!==this.explicit[e]?{explicit:!0,value:this.explicit[e]}:void 0!==this.implicit[e]?{explicit:!1,value:this.implicit[e]}:{explicit:!1,value:void 0}}setWithExplicit(e,{value:t,explicit:n}){void 0!==t&&this.set(e,t,n)}set(e,t,n){return delete this[n?"implicit":"explicit"][e],this[n?"explicit":"implicit"][e]=t,this}copyKeyFromSplit(e,{explicit:t,implicit:n}){void 0!==t[e]?this.set(e,t[e],!0):void 0!==n[e]&&this.set(e,n[e],!1)}copyKeyFromObject(e,t){void 0!==t[e]&&this.set(e,t[e],!0)}copyAll(e){for(const t of AX(e.combine())){const n=e.getWithExplicit(t);this.setWithExplicit(t,n)}}}function S3(e){return{explicit:!0,value:e}}function D3(e){return{explicit:!1,value:e}}function A3(e){return(t,n,r,i)=>{const o=e(t.value,n.value);return o>0?t:o<0?n:T3(t,n,r,i)}}function T3(e,t,n,r){return e.explicit&&t.explicit&&nK(function(e,t,n,r){return`Conflicting ${t.toString()} property "${e.toString()}" (${fX(n)} and ${fX(r)}). Using ${fX(n)}.`}(n,r,e.value,t.value)),e}function M3(e,t,n,r,i=T3){return void 0===e||void 0===e.value?t:e.explicit&&!t.explicit?e:t.explicit&&!e.explicit?t:cX(e.value,t.value)?e:i(e,t,n,r)}class O3 extends C3{constructor(e={},t={},n=!1){super(e,t),this.explicit=e,this.implicit=t,this.parseNothing=n}clone(){const e=super.clone();return e.parseNothing=this.parseNothing,e}}function F3(e){return"url"in e}function P3(e){return"values"in e}function N3(e){return"name"in e&&!F3(e)&&!P3(e)&&!I3(e)}function I3(e){return e&&(B3(e)||j3(e)||L3(e))}function B3(e){return"sequence"in e}function j3(e){return"sphere"in e}function L3(e){return"graticule"in e}var z3;!function(e){e[e.Raw=0]="Raw",e[e.Main=1]="Main",e[e.Row=2]="Row",e[e.Column=3]="Column",e[e.Lookup=4]="Lookup"}(z3||(z3={}));const R3=/[[\]{}]/,$3={"*":1,arc:1,area:1,group:1,image:1,line:1,path:1,rect:1,rule:1,shape:1,symbol:1,text:1,trail:1};let H3,U3;function q3(e,t,n){return H3=t||"view",U3=n||$3,V3(e.trim()).map(G3)}function W3(e,t,n,r,i){const o=e.length;let a,s=0;for(;t=0?--s:r&&r.indexOf(a)>=0&&++s}return t}function V3(e){const t=[],n=e.length;let r=0,i=0;for(;i"!==(e=e.slice(r+1).trim())[0])throw"Expected '>' after between selector: "+e;n=n.map(G3);const i=G3(e.slice(1).trim());return i.between?{between:n,stream:i}:(i.between=n,i)}(e):function(e){const t={source:H3},n=[];let r,i,o=[0,0],a=0,s=0,l=e.length,c=0;if("}"===e[l-1]){if(c=e.lastIndexOf("{"),!(c>=0))throw"Unmatched right brace: "+e;try{o=function(e){const t=e.split(",");if(!e.length||t.length>2)throw e;return t.map((t=>{const n=+t;if(n!=n)throw e;return n}))}(e.substring(c+1,l-1))}catch(t){throw"Invalid throttle specification: "+e}l=(e=e.slice(0,c).trim()).length,c=0}if(!l)throw e;if("@"===e[0]&&(a=++c),r=W3(e,c,":"),r1?(t.type=n[1],a?t.markname=n[0].slice(1):function(e){return U3[e]}(n[0])?t.marktype=n[0]:t.source=n[0]):t.type=n[0],"!"===t.type.slice(-1)&&(t.consume=!0,t.type=t.type.slice(0,-1)),null!=i&&(t.filter=i),o[0]&&(t.throttle=o[0]),o[1]&&(t.debounce=o[1]),t}(e)}var X3=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);iY3(e,t,n)));return t?`[${r.join(", ")}]`:r}return rK(e)?n(t?cK(e):function(e){const t=lK(e,!0);return e.utc?+new Date(Date.UTC(...t)):+new Date(...t)}(e)):t?n(fX(e)):e}function J3(e,t){var n;for(const r of TX(null!==(n=e.component.selection)&&void 0!==n?n:{})){const n=r.name;let i=`${n}${a6}, ${"global"===r.resolve?"true":`{unit: ${u6(e)}}`}`;for(const n of c6)n.defined(r)&&(n.signals&&(t=n.signals(e,r,t)),n.modifyExpr&&(i=n.modifyExpr(e,r,i)));t.push({name:n+s6,on:[{events:{signal:r.name+a6},update:`modify(${JG(r.name+o6)}, ${i})`}]})}return K3(t)}function Z3(e,t){var n;for(const r of TX(null!==(n=e.component.selection)&&void 0!==n?n:{}))for(const n of c6)n.defined(r)&&n.marks&&(t=n.marks(e,r,t));return t}function K3(e){return e.map((e=>(e.on&&!e.on.length&&delete e.on,e)))}class Q3{constructor(e,t){this.debugName=t,this._children=[],this._parent=null,e&&(this.parent=e)}clone(){throw new Error("Cannot clone node")}get parent(){return this._parent}set parent(e){this._parent=e,e&&e.addChild(this)}get children(){return this._children}numChildren(){return this._children.length}addChild(e,t){this._children.includes(e)?nK("Attempt to add the same child twice."):void 0!==t?this._children.splice(t,0,e):this._children.push(e)}removeChild(e){const t=this._children.indexOf(e);return this._children.splice(t,1),t}remove(){let e=this._parent.removeChild(this);for(const t of this._children)t._parent=this._parent,this._parent.addChild(t,e++)}insertAsParentOf(e){const t=e.parent;t.removeChild(this),this.parent=t,e.parent=this}swapWithParent(){const e=this._parent,t=e.parent;for(const t of this._children)t.parent=e;this._children=[],e.removeChild(this),e.parent.removeChild(e),this.parent=t,e.parent=this}}class e5 extends Q3{constructor(e,t,n,r){super(e,t),this.type=n,this.refCounts=r,this._source=this._name=t,this.refCounts&&!(this._name in this.refCounts)&&(this.refCounts[this._name]=0)}clone(){const e=new this.constructor;return e.debugName=`clone_${this.debugName}`,e._source=this._source,e._name=`clone_${this._name}`,e.type=this.type,e.refCounts=this.refCounts,e.refCounts[e._name]=0,e}dependentFields(){return new Set}producedFields(){return new Set}hash(){return void 0===this._hash&&(this._hash=`Output ${WX()}`),this._hash}getSource(){return this.refCounts[this._name]++,this._source}isRequired(){return!!this.refCounts[this._name]}setSource(e){this._source=e}}var t5=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{const{field:n,timeUnit:r}=t;if(r){const i=O0(t,{forAs:!0});e[pX({as:i,field:n,timeUnit:r})]={as:i,field:n,timeUnit:r}}return e}),{});return DX(n)?null:new n5(e,n)}static makeFromTransform(e,t){const n=Object.assign({},t),{timeUnit:r}=n,i=t5(n,["timeUnit"]),o=vK(r),a=Object.assign(Object.assign({},i),{timeUnit:o});return new n5(e,{[pX(a)]:a})}merge(e){this.formula=Object.assign({},this.formula);for(const t in e.formula)this.formula[t]||(this.formula[t]=e.formula[t]);for(const t of e.children)e.removeChild(t),t.parent=this;e.remove()}removeFormulas(e){const t={};for(const[n,r]of MX(this.formula))e.has(r.as)||(t[n]=r);this.formula=t}producedFields(){return new Set(TX(this.formula).map((e=>e.as)))}dependentFields(){return new Set(TX(this.formula).map((e=>e.field)))}hash(){return`TimeUnit ${pX(this.formula)}`}assemble(){const e=[];for(const t of TX(this.formula)){const{field:n,as:r,timeUnit:i}=t,o=vK(i),{unit:a,utc:s}=o,l=t5(o,["unit","utc"]);e.push(Object.assign(Object.assign(Object.assign(Object.assign({field:zX(n),type:"timeunit"},a?{units:pK(a)}:{}),s?{timezone:"utc"}:{}),l),{as:[r,`${r}_end`]}))}return e}}const r5="_tuple_fields";class i5{constructor(...e){this.items=e,this.hasChannel={},this.hasField={}}}const o5={defined:()=>!0,parse:(e,t,n)=>{var r;const i=t.name,o=null!==(r=t.project)&&void 0!==r?r:t.project=new i5,a={},s={},l=new Set,c=(e,t)=>{const n="visual"===t?e.channel:e.field;let r=FX(`${i}_${n}`);for(let e=1;l.has(r);e++)r=FX(`${i}_${n}_${e}`);return l.add(r),{[t]:r}},u=t.type,h=e.config.selection[u],d=void 0!==n.value?qG(n.value):null;let{fields:f,encodings:p}=zG(n.select)?n.select:{};if(!f&&!p&&d)for(const e of d)if(zG(e))for(const t of AX(e))YY[t]?(p||(p=[])).push(t):"interval"===u?(nK('Interval selections should be initialized using "x" and/or "y" keys.'),p=h.encodings):(f||(f=[])).push(t);f||p||(p=h.encodings,"fields"in h&&(f=h.fields));for(const t of null!=p?p:[]){const n=e.fieldDef(t);if(n){let r=n.field;if(n.aggregate){nK(PZ(t,n.aggregate));continue}if(!r){nK(FZ(t));continue}if(n.timeUnit){r=e.vgField(t);const i={timeUnit:n.timeUnit,as:r,field:n.field};s[pX(i)]=i}if(!a[r]){let i="E";"interval"===u?JK(e.getScaleComponent(t).get("type"))&&(i="R"):n.bin&&(i="R-RE");const s={field:r,channel:t,type:i};s.signals=Object.assign(Object.assign({},c(s,"data")),c(s,"visual")),o.items.push(a[r]=s),o.hasField[r]=o.hasChannel[t]=a[r]}}else nK(FZ(t))}for(const e of null!=f?f:[]){if(o.hasField[e])continue;const t={type:"E",field:e};t.signals=Object.assign({},c(t,"data")),o.items.push(t),o.hasField[e]=t}d&&(t.init=d.map((e=>o.items.map((t=>zG(e)?void 0!==e[t.channel]?e[t.channel]:e[t.field]:e))))),DX(s)||(o.timeUnit=new n5(null,s))},signals:(e,t,n)=>{const r=t.name+r5;return n.filter((e=>e.name===r)).length>0?n:n.concat({name:r,value:t.project.items.map((e=>{const{signals:t,hasLegend:n}=e,r=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i"interval"===e.type&&"global"===e.resolve&&e.bind&&"scales"===e.bind,parse:(e,t)=>{const n=t.scales=[];for(const r of t.project.items){const i=r.channel;if(!IJ(i))continue;const o=e.getScaleComponent(i),a=o?o.get("type"):void 0;o&&JK(a)?(o.set("selectionExtent",{param:t.name,field:r.field},!0),n.push(r)):nK("Scale bindings are currently only supported for scales with unbinned, continuous domains.")}},topLevelSignals:(e,t,n)=>{const r=t.scales.filter((e=>0===n.filter((t=>t.name===e.signals.data)).length));if(!e.parent||u5(e)||0===r.length)return n;const i=n.filter((e=>e.name===t.name))[0];let o=i.update;if(o.indexOf(l6)>=0)i.update=`{${r.map((e=>`${JG(zX(e.field))}: ${e.signals.data}`)).join(", ")}}`;else{for(const e of r){const t=`${JG(zX(e.field))}: ${e.signals.data}`;o.includes(t)||(o=`${o.substring(0,o.length-1)}, ${t}}`)}i.update=o}return n.concat(r.map((e=>({name:e.signals.data}))))},signals:(e,t,n)=>{if(e.parent&&!u5(e))for(const e of t.scales){const t=n.filter((t=>t.name===e.signals.data))[0];t.push="outer",delete t.value,delete t.update}return n}},l5=s5;function c5(e,t){return`domain(${JG(e.scaleName(t))})`}function u5(e){var t;return e.parent&&U7(e.parent)&&(null!==(t=!e.parent.parent)&&void 0!==t?t:u5(e.parent.parent))}const h5="_brush",d5="_scale_trigger",f5={defined:e=>"interval"===e.type,signals:(e,t,n)=>{const r=t.name,i=r+r5,o=l5.defined(t),a=t.init?t.init[0]:null,s=[],l=[];if(t.translate&&!o){const e=`!event.item || event.item.mark.name !== ${JG(r+h5)}`;m5(t,((t,n)=>{var r,i;const o=qG(null!==(r=(i=n.between[0]).filter)&&void 0!==r?r:i.filter=[]);return o.includes(e)||o.push(e),t}))}t.project.items.forEach(((r,i)=>{const o=r.channel;if(o!==tY&&o!==nY)return void nK("Interval selections only support x and y encoding channels.");const c=a?a[i]:null,u=function(e,t,n,r){const i=n.channel,o=n.signals.visual,a=n.signals.data,s=l5.defined(t),l=JG(e.scaleName(i)),c=e.getScaleComponent(i),u=c?c.get("type"):void 0,h=e=>`scale(${l}, ${e})`,d=e.getSizeSignalRef(i===tY?"width":"height").signal,f=`${i}(unit)`,p=m5(t,((e,t)=>[...e,{events:t.between[0],update:`[${f}, ${f}]`},{events:t,update:`[${o}[0], clamp(${f}, 0, ${d})]`}]));return p.push({events:{signal:t.name+d5},update:JK(u)?`[${h(`${a}[0]`)}, ${h(`${a}[1]`)}]`:"[0, 0]"}),s?[{name:a,on:[]}]:[Object.assign(Object.assign({name:o},r?{init:Y3(r,!0,h)}:{value:[]}),{on:p}),Object.assign(Object.assign({name:a},r?{init:Y3(r)}:{}),{on:[{events:{signal:o},update:`${o}[0] === ${o}[1] ? null : invert(${l}, ${o})`}]})]}(e,t,r,c),h=r.signals.data,d=r.signals.visual,f=JG(e.scaleName(o)),p=JK(e.getScaleComponent(o).get("type"))?"+":"";n.push(...u),s.push(h),l.push({scaleName:e.scaleName(o),expr:`(!isArray(${h}) || (${p}invert(${f}, ${d})[0] === ${p}${h}[0] && ${p}invert(${f}, ${d})[1] === ${p}${h}[1]))`})})),!o&&l.length&&n.push({name:r+d5,value:{},on:[{events:l.map((e=>({scale:e.scaleName}))),update:`${l.map((e=>e.expr)).join(" && ")} ? ${r+d5} : {}`}]});const c=`unit: ${u6(e)}, fields: ${i}, values`;return n.concat(Object.assign(Object.assign({name:r+a6},a?{init:`{${c}: ${Y3(a)}}`}:{}),s.length?{on:[{events:[{signal:s.join(" || ")}],update:`${s.join(" && ")} ? {${c}: [${s}]} : null`}]}:{}))},marks:(e,t,n)=>{const r=t.name,{x:i,y:o}=t.project.hasChannel,a=i&&i.signals.visual,s=o&&o.signals.visual,l=`data(${JG(t.name+o6)})`;if(l5.defined(t)||!i&&!o)return n;const c={x:void 0!==i?{signal:`${a}[0]`}:{value:0},y:void 0!==o?{signal:`${s}[0]`}:{value:0},x2:void 0!==i?{signal:`${a}[1]`}:{field:{group:"width"}},y2:void 0!==o?{signal:`${s}[1]`}:{field:{group:"height"}}};if("global"===t.resolve)for(const t of AX(c))c[t]=[Object.assign({test:`${l}.length && ${l}[0].unit === ${u6(e)}`},c[t]),{value:0}];const u=t.mark,{fill:h,fillOpacity:d,cursor:f}=u,p=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i(e[t]=[{test:[void 0!==i&&`${a}[0] !== ${a}[1]`,void 0!==o&&`${s}[0] !== ${s}[1]`].filter((e=>e)).join(" && "),value:p[t]},{value:null}],e)),{});return[{name:`${r+h5}_bg`,type:"rect",clip:!0,encode:{enter:{fill:{value:h},fillOpacity:{value:d}},update:c}},...n,{name:r+h5,type:"rect",clip:!0,encode:{enter:Object.assign(Object.assign({},f?{cursor:{value:f}}:{}),{fill:{value:"transparent"}}),update:Object.assign(Object.assign({},c),m)}}]}},p5=f5;function m5(e,t){return e.events.reduce(((e,n)=>n.between?t(e,n):(nK(`${n} is not an ordered event stream for interval selections.`),e)),[])}const g5={defined:e=>"point"===e.type,signals:(e,t,n)=>{var r;const i=t.name,o=i+r5,a=t.project,s="(item().isVoronoi ? datum.datum : datum)",l=a.items.map((t=>{const n=e.fieldDef(t.channel);return(null==n?void 0:n.bin)?`[${s}[${JG(e.vgField(t.channel,{}))}], ${s}[${JG(e.vgField(t.channel,{binSuffix:"end"}))}]]`:`${s}[${JG(t.field)}]`})).join(", "),c=`unit: ${u6(e)}, fields: ${o}, values`,u=t.events,h=TX(null!==(r=e.component.selection)&&void 0!==r?r:{}).reduce(((e,t)=>"interval"===t.type?e.concat(t.name+h5):e),[]).map((e=>`indexof(item().mark.name, '${e}') < 0`)).join(" && "),d="datum && item().mark.marktype !== 'group'"+(h?` && ${h}`:"");return n.concat([{name:i+a6,on:u?[{events:u,update:`${d} ? {${c}: [${l}]} : null`,force:!0}]:[]}])}},v5=g5;function y5(e,t,n,r){const i=m0(t)&&t.condition,o=r(t);if(i){const t=qG(i).map((t=>{const n=r(t);if(function(e){return e.param}(t)){const{param:r,empty:i}=t,o=y4(e,{param:r,empty:i});return Object.assign({test:o},n)}{const r=x4(e,t.test);return Object.assign({test:r},n)}}));return{[n]:[...t,...void 0!==o?[o]:[]]}}return void 0!==o?{[n]:o}:{}}function b5(e,t="text"){const n=e.encoding[t];return y5(e,n,t,(t=>x5(t,e.config)))}function x5(e,t,n="datum"){if(e){if(C0(e))return mZ(e.value);if(k0(e)){const{format:r,formatType:i}=z0(e);return WQ({fieldOrDatumDef:e,format:r,formatType:i,expr:n,config:t})}}}function w5(e,t={}){const{encoding:n,markDef:r,config:i,stack:o}=e,a=n.tooltip;if(LG(a))return{tooltip:k5({tooltip:a},o,i,t)};{const s=t.reactiveGeom?"datum.datum":"datum";return y5(e,a,"tooltip",(e=>{const a=x5(e,i,s);if(a)return a;if(null===e)return;let l=bZ("tooltip",r,i);return!0===l&&(l={content:"encoding"}),YG(l)?{value:l}:zG(l)?oZ(l)?l:"encoding"===l.content?k5(n,o,i,t):{signal:s}:void 0}))}}function _5(e,t,n,{reactiveGeom:r}={}){const i={},o=r?"datum.datum":"datum",a=[];function s(r,s){const l=QY(s),c=E0(r)?r:Object.assign(Object.assign({},r),{type:e[l].type}),u=qG(c.title||L0(c,n)).join(", ");let h;if(bJ(s)){const r="x"===s?"x2":"y2",a=R0(e[r]);if(ZJ(c.bin)&&a){const e=O0(c,{expr:o}),t=O0(a,{expr:o}),{format:s,formatType:l}=z0(c);h=QQ(e,t,s,l,n),i[r]=!0}else if(t&&t.fieldChannel===s&&"normalize"===t.offset){const{format:e,formatType:t}=z0(c);h=WQ({fieldOrDatumDef:c,format:e,formatType:t,expr:o,config:n,normalizeStack:!0}).signal}}null!=h||(h=x5(c,n,o).signal),a.push({channel:s,key:u,value:h})}d1(e,((e,t)=>{y0(e)?s(e,t):g0(e)&&s(e.condition,t)}));const l={};for(const{channel:e,key:t,value:n}of a)i[e]||l[t]||(l[t]=n);return l}function k5(e,t,n,{reactiveGeom:r}={}){const i=_5(e,t,n,{reactiveGeom:r}),o=MX(i).map((([e,t])=>`"${e}": ${t}`));return o.length>0?{signal:`{${o.join(", ")}}`}:void 0}function E5(e,t,n={}){const{markDef:r,encoding:i,config:o}=t,{vgChannel:a}=n;let{defaultRef:s,defaultValue:l}=n;void 0===s&&(null!=l||(l=bZ(e,r,o,{vgChannel:a,ignoreVgConfig:!0})),void 0!==l&&(s=mZ(l)));const c=i[e];return y5(t,c,null!=a?a:e,(n=>$Q({channel:e,channelDef:n,markDef:r,config:o,scaleName:t.scaleName(e),scale:t.getScaleComponent(e),stack:null,defaultRef:s})))}function C5(e,t={filled:void 0}){var n,r,i,o;const{markDef:a,encoding:s,config:l}=e,{type:c}=a,u=null!==(n=t.filled)&&void 0!==n?n:bZ("filled",a,l),h=gX(["bar","point","circle","square","geoshape"],c)?"transparent":void 0,d=null!==(i=null!==(r=bZ(!0===u?"color":void 0,a,l,{vgChannel:"fill"}))&&void 0!==r?r:l.mark[!0===u&&"color"])&&void 0!==i?i:h,f=null!==(o=bZ(!1===u?"color":void 0,a,l,{vgChannel:"stroke"}))&&void 0!==o?o:l.mark[!1===u&&"color"],p=u?"fill":"stroke",m=Object.assign(Object.assign({},d?{fill:mZ(d)}:{}),f?{stroke:mZ(f)}:{});return a.color&&(u?a.fill:a.stroke)&&nK(zZ("property",{fill:"fill"in a,stroke:"stroke"in a})),Object.assign(Object.assign(Object.assign(Object.assign({},m),E5("color",e,{vgChannel:p,defaultValue:u?d:f})),E5("fill",e,{defaultValue:s.fill?d:void 0})),E5("stroke",e,{defaultValue:s.stroke?f:void 0}))}function S5(e,t){const n=function(e){switch(e){case tY:return"xOffset";case nY:return"yOffset";case rY:return"x2Offset";case iY:return"y2Offset";case sY:return"thetaOffset";case oY:return"radiusOffset";case lY:return"theta2Offset";case aY:return"radius2Offset"}}(e),r=t[n];if(r)return r}function D5(e,t,{defaultPos:n,vgChannel:r}){const{encoding:i,markDef:o,config:a,stack:s}=t,l=i[e],c=i[tJ(e)],u=t.scaleName(e),h=t.getScaleComponent(e),d=S5(e,o),f=A5({model:t,defaultPos:n,channel:e,scaleName:u,scale:h}),p=!l&&bJ(e)&&(i.latitude||i.longitude)?{field:t.getName(e)}:function(e){const{channel:t,channelDef:n,scaleName:r,stack:i,offset:o,markDef:a}=e;if(k0(n)&&i&&t===i.fieldChannel){if(y0(n)){let e=n.bandPosition;if(void 0!==e||"text"!==a.type||"radius"!==t&&"theta"!==t||(e=.5),void 0!==e)return RQ({scaleName:r,fieldOrDatumDef:n,startSuffix:"start",bandPosition:e,offset:o})}return zQ(n,r,{suffix:"end"},{offset:o})}return IQ(e)}({channel:e,channelDef:l,channel2Def:c,markDef:o,config:a,scaleName:u,scale:h,stack:s,offset:d,defaultRef:f});return p?{[r||e]:p}:void 0}function A5({model:e,defaultPos:t,channel:n,scaleName:r,scale:i}){const{markDef:o,config:a}=e;return()=>{const s=QY(n),l=eJ(n),c=bZ(n,o,a,{vgChannel:l});if(void 0!==c)return HQ(n,c);switch(t){case"zeroOrMin":case"zeroOrMax":if(r){const e=i.get("type");if(gX(["log",jK,LK],e));else if(i.domainDefinitelyIncludesZero())return{scale:r,value:0}}if("zeroOrMin"===t)return"y"===s?{field:{group:"height"}}:{value:0};switch(s){case"radius":return{signal:`min(${e.width.signal},${e.height.signal})/2`};case"theta":return{signal:"2*PI"};case"x":return{field:{group:"width"}};case"y":return{value:0}}break;case"mid":{const t=e[nJ(n)];return Object.assign(Object.assign({},t),{mult:.5})}}}}const T5={left:"x",center:"xc",right:"x2"},M5={top:"y",middle:"yc",bottom:"y2"};function O5(e,t,n,r="middle"){if("radius"===e||"theta"===e)return eJ(e);const i="x"===e?"align":"baseline",o=bZ(i,t,n);let a;return oZ(o)?(nK(function(e){return`The ${e} for range marks cannot be an expression`}(i)),a=void 0):a=o,"x"===e?T5[a||("top"===r?"left":"center")]:M5[a||r]}function F5(e,t,{defaultPos:n,defaultPos2:r,range:i}){return i?P5(e,t,{defaultPos:n,defaultPos2:r}):D5(e,t,{defaultPos:n})}function P5(e,t,{defaultPos:n,defaultPos2:r}){const{markDef:i,config:o}=t,a=tJ(e),s=nJ(e),l=function(e,t,n){const{encoding:r,mark:i,markDef:o,stack:a,config:s}=e,l=QY(n),c=nJ(n),u=eJ(n),h=r[l],d=e.scaleName(l),f=e.getScaleComponent(l),p=S5(n in r||n in o?n:l,e.markDef);if(!h&&("x2"===n||"y2"===n)&&(r.latitude||r.longitude)){const t=nJ(n),r=e.markDef[t];return null!=r?{[t]:{value:r}}:{[u]:{field:e.getName(n)}}}const m=function({channel:e,channelDef:t,channel2Def:n,markDef:r,config:i,scaleName:o,scale:a,stack:s,offset:l,defaultRef:c}){return k0(t)&&s&&e.charAt(0)===s.fieldChannel.charAt(0)?zQ(t,o,{suffix:"start"},{offset:l}):IQ({channel:e,channelDef:n,scaleName:o,scale:a,stack:s,markDef:r,config:i,offset:l,defaultRef:c})}({channel:n,channelDef:h,channel2Def:r[n],markDef:o,config:s,scaleName:d,scale:f,stack:a,offset:p,defaultRef:void 0});return void 0!==m?{[u]:m}:N5(n,o)||N5(n,{[n]:wZ(n,o,s.style),[c]:wZ(c,o,s.style)})||N5(n,s[i])||N5(n,s.mark)||{[u]:A5({model:e,defaultPos:t,channel:n,scaleName:d,scale:f})()}}(t,r,a),c=l[s]?O5(e,i,o):eJ(e);return Object.assign(Object.assign({},D5(e,t,{defaultPos:n,vgChannel:c})),l)}function N5(e,t){const n=nJ(e),r=eJ(e);if(void 0!==t[r])return{[r]:HQ(e,t[r])};if(void 0!==t[e])return{[r]:HQ(e,t[e])};if(t[n]){const r=t[n];if(!PQ(r))return{[n]:HQ(e,r)};nK(function(e){return`Position range does not support relative band size for ${e}.`}(n))}}function I5(e,t,n){var r,i,o,a;const{config:s,encoding:l,markDef:c}=e,u=tJ(t),h=nJ(t),d=l[t],f=l[u],p=e.getScaleComponent(t),m=p?p.get("type"):void 0,g=e.scaleName(t),v=c.orient,y=null!==(i=null!==(r=l[h])&&void 0!==r?r:l.size)&&void 0!==i?i:bZ("size",c,s,{vgChannel:h}),b="bar"===n&&("x"===t?"vertical"===v:"horizontal"===v);if(!y0(d)||!(JJ(d.bin)||ZJ(d.bin)||d.timeUnit&&!f)||y&&!PQ(y)||YK(m))return(k0(d)&&YK(m)||b)&&!f?function(e,t,n){const{markDef:r,encoding:i,config:o,stack:a}=n,s=r.orient,l=n.scaleName(t),c=n.getScaleComponent(t),u=nJ(t),h=tJ(t),d="horizontal"===s&&"y"===t||"vertical"===s&&"x"===t;let f;(i.size||r.size)&&(d?f=E5("size",n,{vgChannel:u,defaultRef:mZ(r.size)}):nK(function(e){return`Cannot apply size to non-oriented mark "${e}".`}(r.type)));const p=f0({channel:t,fieldDef:e,markDef:r,config:o,scaleType:null==c?void 0:c.get("type"),useVlSizeChannel:d});f=f||{[u]:B5(u,l,c,o,p)};const m=O5(t,r,o,"band"===(null==c?void 0:c.get("type"))&&"band"in f[u]?"top":"middle"),g="xc"===m||"yc"===m,v=S5(t,r),y=IQ({channel:t,channelDef:e,markDef:r,config:o,scaleName:l,scale:c,stack:a,offset:v,defaultRef:A5({model:n,defaultPos:"mid",channel:t,scaleName:l,scale:c}),bandPosition:g?.5:oZ(p)?{signal:`(1-${p})/2`}:PQ(p)?(1-p.band)/2:0});if(u)return Object.assign({[m]:y},f);{const e=eJ(h),t=f[u],n=v?Object.assign(Object.assign({},t),{offset:v}):t;return{[m]:y,[e]:LG(y)?[y[0],Object.assign(Object.assign({},y[1]),{offset:n})]:Object.assign(Object.assign({},y),{offset:n})}}}(d,t,e):P5(t,e,{defaultPos:"zeroOrMax",defaultPos2:"zeroOrMin"});{const n=f0({channel:t,fieldDef:d,markDef:c,config:s,scaleType:m}),r=null===(o=e.component.axes[t])||void 0===o?void 0:o[0];return function({fieldDef:e,fieldDef2:t,channel:n,bandSize:r,scaleName:i,markDef:o,spacing:a=0,axisTranslate:s,reverse:l,config:c}){const u=tJ(n),h=eJ(n),d=eJ(u),f=S5(n,o),p=oZ(r)?{signal:`(1-${r.signal})/2`}:PQ(r)?(1-r.band)/2:.5;if(JJ(e.bin)||e.timeUnit)return{[d]:L5({channel:n,fieldDef:e,scaleName:i,markDef:o,bandPosition:p,offset:j5(u,a,l,s,f),config:c}),[h]:L5({channel:n,fieldDef:e,scaleName:i,markDef:o,bandPosition:oZ(p)?{signal:`1-${p.signal}`}:1-p,offset:j5(n,a,l,s,f),config:c})};if(ZJ(e.bin)){const r=zQ(e,i,{},{offset:j5(u,a,l,s,f)});if(y0(t))return{[d]:r,[h]:zQ(t,i,{},{offset:j5(n,a,l,s,f)})};if(KJ(e.bin)&&e.bin.step)return{[d]:r,[h]:{signal:`scale("${i}", ${O0(e,{expr:"datum"})} + ${e.bin.step})`,offset:j5(n,a,l,s,f)}}}nK(QZ(u))}({fieldDef:d,fieldDef2:f,channel:t,markDef:c,scaleName:g,bandSize:n,axisTranslate:null!==(a=null==r?void 0:r.get("translate"))&&void 0!==a?a:.5,spacing:bJ(t)?bZ("binSpacing",c,s):void 0,reverse:p.get("reverse"),config:s})}}function B5(e,t,n,r,i){if(PQ(i)){if(!n)return{mult:i.band,field:{group:e}};{const e=n.get("type");if("band"===e)return{scale:t,band:i.band};1!==i.band&&(nK(function(e){return`Cannot use the relative band size with ${e} scale.`}(e)),i=void 0)}}else{if(oZ(i))return i;if(i)return{value:i}}if(n){const e=n.get("range");if(aZ(e)&&XG(e.step))return{value:e.step-2}}return{value:s2(r.view,e)-2}}function j5(e,t,n,r,i){if(PY(e))return 0;const o="x"===e||"y2"===e?-t/2:t/2;if(oZ(n)||oZ(i)||oZ(r)){const e=vZ(n),t=vZ(i),a=vZ(r);return{signal:(a?`${a} + `:"")+(e?`(${e} ? -1 : 1) * `:"")+(t?`(${t} + ${o})`:o)}}return i=i||0,r+(n?-i-o:+i+o)}function L5({channel:e,fieldDef:t,scaleName:n,markDef:r,bandPosition:i,offset:o,config:a}){return BQ({fieldDef:t,channel:e,markDef:r,ref:RQ({scaleName:n,fieldOrDatumDef:t,bandPosition:i,offset:o}),config:a})}const z5=new Set(["aria","width","height"]);function R5(e,t){const{fill:n,stroke:r}="include"===t.color?C5(e):{};return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},function(e,t){return lZ.reduce(((n,r)=>(z5.has(r)||void 0===e[r]||"ignore"===t[r]||(n[r]=mZ(e[r])),n)),{})}(e.markDef,t)),$5(e,"fill",n)),$5(e,"stroke",r)),E5("opacity",e)),E5("fillOpacity",e)),E5("strokeOpacity",e)),E5("strokeWidth",e)),E5("strokeDash",e)),function(e){const{encoding:t,mark:n}=e,r=t.order;return!SQ(n)&&C0(r)?y5(e,r,"zindex",(e=>mZ(e.value))):{}}(e)),w5(e)),b5(e,"href")),function(e){const{markDef:t,config:n}=e,r=bZ("aria",t,n);return!1===r?{}:Object.assign(Object.assign(Object.assign({},r?{aria:r}:{}),function(e){const{mark:t,markDef:n,config:r}=e;if(!1===r.aria)return{};const i=bZ("ariaRoleDescription",n,r);return null!=i?{ariaRoleDescription:{value:i}}:t in cZ?{}:{ariaRoleDescription:{value:t}}}(e)),function(e){const{encoding:t,markDef:n,config:r,stack:i}=e,o=t.description;if(o)return y5(e,o,"description",(t=>x5(t,e.config)));const a=bZ("description",n,r);if(null!=a)return{description:mZ(a)};if(!1===r.aria)return{};const s=_5(t,i,r);return DX(s)?void 0:{description:{signal:MX(s).map((([e,t],n)=>`"${n>0?"; ":""}${e}: " + (${t})`)).join(" + ")}}}(e))}(e))}function $5(e,t,n){const{config:r,mark:i,markDef:o}=e;if("hide"===bZ("invalid",o,r)&&n&&!SQ(i)){const r=function(e,{invalid:t=!1,channels:n}){const r=n.reduce(((t,n)=>{const r=e.getScaleComponent(n);if(r){const i=r.get("type"),o=e.vgField(n,{expr:"datum"});o&&JK(i)&&(t[o]=!0)}return t}),{}),i=AX(r);if(i.length>0){const e=t?"||":"&&";return i.map((e=>LQ(e,t))).join(` ${e} `)}}(e,{invalid:!0,channels:NJ});if(r)return{[t]:[{test:r,value:null},...qG(n)]}}return n?{[t]:n}:{}}function H5(e){const{config:t,markDef:n}=e;if(bZ("invalid",n,t)){const t=function(e,{invalid:t=!1,channels:n}){const r=n.reduce(((t,n)=>{const r=e.getScaleComponent(n);if(r){const i=r.get("type"),o=e.vgField(n,{expr:"datum"});o&&JK(i)&&(t[o]=!0)}return t}),{}),i=AX(r);if(i.length>0){const e=t?"||":"&&";return i.map((e=>LQ(e,t))).join(` ${e} `)}}(e,{channels:yJ});if(t)return{defined:{signal:t}}}return{}}function U5(e,t){if(void 0!==t)return{[e]:mZ(t)}}const q5="voronoi",W5={defined:e=>"point"===e.type&&e.nearest,parse:(e,t)=>{if(t.events)for(const n of t.events)n.markname=e.getName(q5)},marks:(e,t,n)=>{const{x:r,y:i}=t.project.hasChannel,o=e.mark;if(SQ(o))return nK(`The "nearest" transform is not supported for ${o} marks.`),n;const a={name:e.getName(q5),type:"path",interactive:!0,from:{data:e.getName("marks")},encode:{update:Object.assign({fill:{value:"transparent"},strokeWidth:{value:.35},stroke:{value:"transparent"},isVoronoi:{value:!0}},w5(e,{reactiveGeom:!0}))},transform:[{type:"voronoi",x:{expr:r||!i?"datum.datum.x || 0":"0"},y:{expr:i||!r?"datum.datum.y || 0":"0"},size:[e.getSizeSignalRef("width"),e.getSizeSignalRef("height")]}]};let s=0,l=!1;return n.forEach(((t,n)=>{var r;const i=null!==(r=t.name)&&void 0!==r?r:"";i===e.component.mark[0].name?s=n:i.indexOf(q5)>=0&&(l=!0)})),l||n.splice(s+1,0,a),n}},V5={defined:e=>"point"===e.type&&"global"===e.resolve&&e.bind&&"scales"!==e.bind&&!Y1(e.bind),parse:(e,t,n)=>d6(t,n),topLevelSignals:(e,t,n)=>{const r=t.name,i=t.project,o=t.bind,a=t.init&&t.init[0],s=W5.defined(t)?"(item().isVoronoi ? datum.datum : datum)":"datum";return i.items.forEach(((e,i)=>{var l,c;const u=FX(`${r}_${e.field}`);n.filter((e=>e.name===u)).length||n.unshift(Object.assign(Object.assign({name:u},a?{init:Y3(a[i])}:{value:null}),{on:t.events?[{events:t.events,update:`datum && item().mark.marktype !== 'group' ? ${s}[${JG(e.field)}] : null`}]:[],bind:null!==(c=null!==(l=o[e.field])&&void 0!==l?l:o[e.channel])&&void 0!==c?c:o}))})),n},signals:(e,t,n)=>{const r=t.name,i=t.project,o=n.filter((e=>e.name===r+a6))[0],a=r+r5,s=i.items.map((e=>FX(`${r}_${e.field}`))),l=s.map((e=>`${e} !== null`)).join(" && ");return s.length&&(o.update=`${l} ? {fields: ${a}, values: [${s.join(", ")}]} : null`),delete o.value,delete o.on,n}},G5=V5,X5="_toggle",Y5={defined:e=>"point"===e.type&&!!e.toggle,signals:(e,t,n)=>n.concat({name:t.name+X5,value:!1,on:[{events:t.events,update:t.toggle}]}),modifyExpr:(e,t)=>{const n=t.name+a6,r=t.name+X5;return`${r} ? null : ${n}, `+("global"===t.resolve?`${r} ? null : true, `:`${r} ? null : {unit: ${u6(e)}}, `)+`${r} ? ${n} : null`}},J5={defined:e=>void 0!==e.clear&&!1!==e.clear,parse:(e,t)=>{t.clear&&(t.clear=YG(t.clear)?q3(t.clear,"view"):t.clear)},topLevelSignals:(e,t,n)=>{if(G5.defined(t))for(const e of t.project.items){const r=n.findIndex((n=>n.name===FX(`${t.name}_${e.field}`)));-1!==r&&n[r].on.push({events:t.clear,update:"null"})}return n},signals:(e,t,n)=>{function r(e,r){-1!==e&&n[e].on&&n[e].on.push({events:t.clear,update:r})}if("interval"===t.type)for(const e of t.project.items){const t=n.findIndex((t=>t.name===e.signals.visual));r(t,"[0, 0]"),-1===t&&r(n.findIndex((t=>t.name===e.signals.data)),"null")}else{let e=n.findIndex((e=>e.name===t.name+a6));r(e,"null"),Y5.defined(t)&&(e=n.findIndex((e=>e.name===t.name+X5)),r(e,"false"))}return n}},Z5={defined:e=>{const t="global"===e.resolve&&e.bind&&Y1(e.bind),n=1===e.project.items.length&&e.project.items[0].field!==G1;return t&&!n&&nK("Legend bindings are only supported for selections over an individual field or encoding channel."),t&&n},parse:(e,t,n)=>{var r;const i=uX(n);if(i.select=YG(i.select)?{type:i.select,toggle:t.toggle}:Object.assign(Object.assign({},i.select),{toggle:t.toggle}),d6(t,i),Wi(n.select)&&(n.select.on||n.select.clear)){const e='event.item && indexof(event.item.mark.role, "legend") < 0';for(const n of t.events)n.filter=qG(null!==(r=n.filter)&&void 0!==r?r:[]),n.filter.includes(e)||n.filter.push(e)}const o=J1(t.bind)?t.bind.legend:"click",a=YG(o)?q3(o,"view"):qG(o);t.bind={legend:{merge:a}}},topLevelSignals:(e,t,n)=>{const r=t.name,i=J1(t.bind)&&t.bind.legend,o=e=>t=>{const n=uX(t);return n.markname=e,n};for(const e of t.project.items){if(!e.hasLegend)continue;const a=`${FX(e.field)}_legend`,s=`${r}_${a}`;if(0===n.filter((e=>e.name===s)).length){const e=i.merge.map(o(`${a}_symbols`)).concat(i.merge.map(o(`${a}_labels`))).concat(i.merge.map(o(`${a}_entries`)));n.unshift(Object.assign(Object.assign({name:s},t.init?{}:{value:null}),{on:[{events:e,update:"datum.value || item().items[0].items[0].datum.value",force:!0},{events:i.merge,update:`!event.item || !datum ? null : ${s}`,force:!0}]}))}}return n},signals:(e,t,n)=>{const r=t.name,i=t.project,o=n.find((e=>e.name===r+a6)),a=r+r5,s=i.items.filter((e=>e.hasLegend)).map((e=>FX(`${r}_${FX(e.field)}_legend`))),l=`${s.map((e=>`${e} !== null`)).join(" && ")} ? {fields: ${a}, values: [${s.join(", ")}]} : null`;t.events&&s.length>0?o.on.push({events:s.map((e=>({signal:e}))),update:l}):s.length>0&&(o.update=l,delete o.value,delete o.on);const c=n.find((e=>e.name===r+X5)),u=J1(t.bind)&&t.bind.legend;return c&&(t.events?c.on.push(Object.assign(Object.assign({},c.on[0]),{events:u})):c.on[0].events=u),n}},K5="_translate_anchor",Q5="_translate_delta",e6={defined:e=>"interval"===e.type&&e.translate,signals:(e,t,n)=>{const r=t.name,i=l5.defined(t),o=r+K5,{x:a,y:s}=t.project.hasChannel;let l=q3(t.translate,"scope");return i||(l=l.map((e=>(e.between[0].markname=r+h5,e)))),n.push({name:o,value:{},on:[{events:l.map((e=>e.between[0])),update:"{x: x(unit), y: y(unit)"+(void 0!==a?`, extent_x: ${i?c5(e,tY):`slice(${a.signals.visual})`}`:"")+(void 0!==s?`, extent_y: ${i?c5(e,nY):`slice(${s.signals.visual})`}`:"")+"}"}]},{name:r+Q5,value:{},on:[{events:l,update:`{x: ${o}.x - x(unit), y: ${o}.y - y(unit)}`}]}),void 0!==a&&t6(e,t,a,"width",n),void 0!==s&&t6(e,t,s,"height",n),n}};function t6(e,t,n,r,i){var o,a;const s=t.name,l=s+K5,c=s+Q5,u=n.channel,h=l5.defined(t),d=i.filter((e=>e.name===n.signals[h?"data":"visual"]))[0],f=e.getSizeSignalRef(r).signal,p=e.getScaleComponent(u),m=p.get("type"),g=p.get("reverse"),v=`${l}.extent_${u}`,y=`${h?"log"===m?"panLog":"symlog"===m?"panSymlog":"pow"===m?"panPow":"panLinear":"panLinear"}(${v}, ${h?u===tY?g?"":"-":g?"-":"":""}${c}.${u} / ${h?`${f}`:`span(${v})`}${h?"pow"===m?`, ${null!==(o=p.get("exponent"))&&void 0!==o?o:1}`:"symlog"===m?`, ${null!==(a=p.get("constant"))&&void 0!==a?a:1}`:"":""})`;d.on.push({events:{signal:c},update:h?y:`clampRange(${y}, 0, ${f})`})}const n6="_zoom_delta",r6={defined:e=>"interval"===e.type&&e.zoom,signals:(e,t,n)=>{const r=t.name,i=l5.defined(t),o=r+n6,{x:a,y:s}=t.project.hasChannel,l=JG(e.scaleName(tY)),c=JG(e.scaleName(nY));let u=q3(t.zoom,"scope");return i||(u=u.map((e=>(e.markname=r+h5,e)))),n.push({name:r+"_zoom_anchor",on:[{events:u,update:i?"{"+[l?`x: invert(${l}, x(unit))`:"",c?`y: invert(${c}, y(unit))`:""].filter((e=>!!e)).join(", ")+"}":"{x: x(unit), y: y(unit)}"}]},{name:o,on:[{events:u,force:!0,update:"pow(1.001, event.deltaY * pow(16, event.deltaMode))"}]}),void 0!==a&&i6(e,t,a,"width",n),void 0!==s&&i6(e,t,s,"height",n),n}};function i6(e,t,n,r,i){var o,a;const s=t.name,l=n.channel,c=l5.defined(t),u=i.filter((e=>e.name===n.signals[c?"data":"visual"]))[0],h=e.getSizeSignalRef(r).signal,d=e.getScaleComponent(l),f=d.get("type"),p=c?c5(e,l):u.name,m=s+n6,g=`${c?"log"===f?"zoomLog":"symlog"===f?"zoomSymlog":"pow"===f?"zoomPow":"zoomLinear":"zoomLinear"}(${p}, ${s}_zoom_anchor.${l}, ${m}${c?"pow"===f?`, ${null!==(o=d.get("exponent"))&&void 0!==o?o:1}`:"symlog"===f?`, ${null!==(a=d.get("constant"))&&void 0!==a?a:1}`:"":""})`;u.on.push({events:{signal:m},update:c?g:`clampRange(${g}, 0, ${h})`})}const o6="_store",a6="_tuple",s6="_modify",l6="vlSelectionResolve",c6=[v5,p5,a5,Y5,G5,l5,Z5,J5,e6,r6,W5];function u6(e,{escape:t}={escape:!0}){let n=t?JG(e.name):e.name;const r=function(e){let t=e.parent;for(;t&&!$7(t);)t=t.parent;return t}(e);if(r){const{facet:e}=r;for(const t of zY)e[t]&&(n+=` + '__facet_${t}_' + (facet[${JG(r.vgField(t))}])`)}return n}function h6(e){var t;return TX(null!==(t=e.component.selection)&&void 0!==t?t:{}).reduce(((e,t)=>e||t.project.items.some((e=>e.field===G1))),!1)}function d6(e,t){!$o(t.select)&&t.select.on||delete e.events,!$o(t.select)&&t.select.clear||delete e.clear,!$o(t.select)&&t.select.toggle||delete e.toggle}function f6(e){this.type=e}var p6,m6,g6,v6,y6;f6.prototype.visit=function(e){let t,n,r;if(e(this))return 1;for(t=function(e){switch(e.type){case"ArrayExpression":return e.elements;case"BinaryExpression":case"LogicalExpression":return[e.left,e.right];case"CallExpression":return[e.callee].concat(e.arguments);case"ConditionalExpression":return[e.test,e.consequent,e.alternate];case"MemberExpression":return[e.object,e.property];case"ObjectExpression":return e.properties;case"Property":return[e.key,e.value];case"UnaryExpression":return[e.argument];default:return[]}}(this),n=0,r=t.length;n",p6[3]="Identifier",p6[4]="Keyword",p6[5]="Null",p6[6]="Numeric",p6[7]="Punctuator",p6[8]="String",p6[9]="RegularExpression";var b6="Identifier",x6="Unexpected token %0",w6="Invalid regular expression",_6="Invalid regular expression: missing /",k6="Octal literals are not allowed in strict mode.",E6="ILLEGAL",C6="Disabled.",S6=new RegExp("[\\xAA\\xB5\\xBA\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0370-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u037F\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u048A-\\u052F\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05D0-\\u05EA\\u05F0-\\u05F2\\u0620-\\u064A\\u066E\\u066F\\u0671-\\u06D3\\u06D5\\u06E5\\u06E6\\u06EE\\u06EF\\u06FA-\\u06FC\\u06FF\\u0710\\u0712-\\u072F\\u074D-\\u07A5\\u07B1\\u07CA-\\u07EA\\u07F4\\u07F5\\u07FA\\u0800-\\u0815\\u081A\\u0824\\u0828\\u0840-\\u0858\\u08A0-\\u08B2\\u0904-\\u0939\\u093D\\u0950\\u0958-\\u0961\\u0971-\\u0980\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BD\\u09CE\\u09DC\\u09DD\\u09DF-\\u09E1\\u09F0\\u09F1\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A59-\\u0A5C\\u0A5E\\u0A72-\\u0A74\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABD\\u0AD0\\u0AE0\\u0AE1\\u0B05-\\u0B0C\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3D\\u0B5C\\u0B5D\\u0B5F-\\u0B61\\u0B71\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BD0\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C39\\u0C3D\\u0C58\\u0C59\\u0C60\\u0C61\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CBD\\u0CDE\\u0CE0\\u0CE1\\u0CF1\\u0CF2\\u0D05-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D3A\\u0D3D\\u0D4E\\u0D60\\u0D61\\u0D7A-\\u0D7F\\u0D85-\\u0D96\\u0D9A-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0E01-\\u0E30\\u0E32\\u0E33\\u0E40-\\u0E46\\u0E81\\u0E82\\u0E84\\u0E87\\u0E88\\u0E8A\\u0E8D\\u0E94-\\u0E97\\u0E99-\\u0E9F\\u0EA1-\\u0EA3\\u0EA5\\u0EA7\\u0EAA\\u0EAB\\u0EAD-\\u0EB0\\u0EB2\\u0EB3\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EDC-\\u0EDF\\u0F00\\u0F40-\\u0F47\\u0F49-\\u0F6C\\u0F88-\\u0F8C\\u1000-\\u102A\\u103F\\u1050-\\u1055\\u105A-\\u105D\\u1061\\u1065\\u1066\\u106E-\\u1070\\u1075-\\u1081\\u108E\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u1380-\\u138F\\u13A0-\\u13F4\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u16EE-\\u16F8\\u1700-\\u170C\\u170E-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176C\\u176E-\\u1770\\u1780-\\u17B3\\u17D7\\u17DC\\u1820-\\u1877\\u1880-\\u18A8\\u18AA\\u18B0-\\u18F5\\u1900-\\u191E\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19C1-\\u19C7\\u1A00-\\u1A16\\u1A20-\\u1A54\\u1AA7\\u1B05-\\u1B33\\u1B45-\\u1B4B\\u1B83-\\u1BA0\\u1BAE\\u1BAF\\u1BBA-\\u1BE5\\u1C00-\\u1C23\\u1C4D-\\u1C4F\\u1C5A-\\u1C7D\\u1CE9-\\u1CEC\\u1CEE-\\u1CF1\\u1CF5\\u1CF6\\u1D00-\\u1DBF\\u1E00-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2071\\u207F\\u2090-\\u209C\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2160-\\u2188\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2CE4\\u2CEB-\\u2CEE\\u2CF2\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D80-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2E2F\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303C\\u3041-\\u3096\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312D\\u3131-\\u318E\\u31A0-\\u31BA\\u31F0-\\u31FF\\u3400-\\u4DB5\\u4E00-\\u9FCC\\uA000-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA61F\\uA62A\\uA62B\\uA640-\\uA66E\\uA67F-\\uA69D\\uA6A0-\\uA6EF\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA78E\\uA790-\\uA7AD\\uA7B0\\uA7B1\\uA7F7-\\uA801\\uA803-\\uA805\\uA807-\\uA80A\\uA80C-\\uA822\\uA840-\\uA873\\uA882-\\uA8B3\\uA8F2-\\uA8F7\\uA8FB\\uA90A-\\uA925\\uA930-\\uA946\\uA960-\\uA97C\\uA984-\\uA9B2\\uA9CF\\uA9E0-\\uA9E4\\uA9E6-\\uA9EF\\uA9FA-\\uA9FE\\uAA00-\\uAA28\\uAA40-\\uAA42\\uAA44-\\uAA4B\\uAA60-\\uAA76\\uAA7A\\uAA7E-\\uAAAF\\uAAB1\\uAAB5\\uAAB6\\uAAB9-\\uAABD\\uAAC0\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEA\\uAAF2-\\uAAF4\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\\uAB30-\\uAB5A\\uAB5C-\\uAB5F\\uAB64\\uAB65\\uABC0-\\uABE2\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D\\uFB1F-\\uFB28\\uFB2A-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE70-\\uFE74\\uFE76-\\uFEFC\\uFF21-\\uFF3A\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC]"),D6=new RegExp("[\\xAA\\xB5\\xBA\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0300-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u037F\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u0483-\\u0487\\u048A-\\u052F\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u0591-\\u05BD\\u05BF\\u05C1\\u05C2\\u05C4\\u05C5\\u05C7\\u05D0-\\u05EA\\u05F0-\\u05F2\\u0610-\\u061A\\u0620-\\u0669\\u066E-\\u06D3\\u06D5-\\u06DC\\u06DF-\\u06E8\\u06EA-\\u06FC\\u06FF\\u0710-\\u074A\\u074D-\\u07B1\\u07C0-\\u07F5\\u07FA\\u0800-\\u082D\\u0840-\\u085B\\u08A0-\\u08B2\\u08E4-\\u0963\\u0966-\\u096F\\u0971-\\u0983\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BC-\\u09C4\\u09C7\\u09C8\\u09CB-\\u09CE\\u09D7\\u09DC\\u09DD\\u09DF-\\u09E3\\u09E6-\\u09F1\\u0A01-\\u0A03\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A3C\\u0A3E-\\u0A42\\u0A47\\u0A48\\u0A4B-\\u0A4D\\u0A51\\u0A59-\\u0A5C\\u0A5E\\u0A66-\\u0A75\\u0A81-\\u0A83\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABC-\\u0AC5\\u0AC7-\\u0AC9\\u0ACB-\\u0ACD\\u0AD0\\u0AE0-\\u0AE3\\u0AE6-\\u0AEF\\u0B01-\\u0B03\\u0B05-\\u0B0C\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3C-\\u0B44\\u0B47\\u0B48\\u0B4B-\\u0B4D\\u0B56\\u0B57\\u0B5C\\u0B5D\\u0B5F-\\u0B63\\u0B66-\\u0B6F\\u0B71\\u0B82\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BBE-\\u0BC2\\u0BC6-\\u0BC8\\u0BCA-\\u0BCD\\u0BD0\\u0BD7\\u0BE6-\\u0BEF\\u0C00-\\u0C03\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C39\\u0C3D-\\u0C44\\u0C46-\\u0C48\\u0C4A-\\u0C4D\\u0C55\\u0C56\\u0C58\\u0C59\\u0C60-\\u0C63\\u0C66-\\u0C6F\\u0C81-\\u0C83\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CBC-\\u0CC4\\u0CC6-\\u0CC8\\u0CCA-\\u0CCD\\u0CD5\\u0CD6\\u0CDE\\u0CE0-\\u0CE3\\u0CE6-\\u0CEF\\u0CF1\\u0CF2\\u0D01-\\u0D03\\u0D05-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D3A\\u0D3D-\\u0D44\\u0D46-\\u0D48\\u0D4A-\\u0D4E\\u0D57\\u0D60-\\u0D63\\u0D66-\\u0D6F\\u0D7A-\\u0D7F\\u0D82\\u0D83\\u0D85-\\u0D96\\u0D9A-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0DCA\\u0DCF-\\u0DD4\\u0DD6\\u0DD8-\\u0DDF\\u0DE6-\\u0DEF\\u0DF2\\u0DF3\\u0E01-\\u0E3A\\u0E40-\\u0E4E\\u0E50-\\u0E59\\u0E81\\u0E82\\u0E84\\u0E87\\u0E88\\u0E8A\\u0E8D\\u0E94-\\u0E97\\u0E99-\\u0E9F\\u0EA1-\\u0EA3\\u0EA5\\u0EA7\\u0EAA\\u0EAB\\u0EAD-\\u0EB9\\u0EBB-\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EC8-\\u0ECD\\u0ED0-\\u0ED9\\u0EDC-\\u0EDF\\u0F00\\u0F18\\u0F19\\u0F20-\\u0F29\\u0F35\\u0F37\\u0F39\\u0F3E-\\u0F47\\u0F49-\\u0F6C\\u0F71-\\u0F84\\u0F86-\\u0F97\\u0F99-\\u0FBC\\u0FC6\\u1000-\\u1049\\u1050-\\u109D\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u135D-\\u135F\\u1380-\\u138F\\u13A0-\\u13F4\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u16EE-\\u16F8\\u1700-\\u170C\\u170E-\\u1714\\u1720-\\u1734\\u1740-\\u1753\\u1760-\\u176C\\u176E-\\u1770\\u1772\\u1773\\u1780-\\u17D3\\u17D7\\u17DC\\u17DD\\u17E0-\\u17E9\\u180B-\\u180D\\u1810-\\u1819\\u1820-\\u1877\\u1880-\\u18AA\\u18B0-\\u18F5\\u1900-\\u191E\\u1920-\\u192B\\u1930-\\u193B\\u1946-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19B0-\\u19C9\\u19D0-\\u19D9\\u1A00-\\u1A1B\\u1A20-\\u1A5E\\u1A60-\\u1A7C\\u1A7F-\\u1A89\\u1A90-\\u1A99\\u1AA7\\u1AB0-\\u1ABD\\u1B00-\\u1B4B\\u1B50-\\u1B59\\u1B6B-\\u1B73\\u1B80-\\u1BF3\\u1C00-\\u1C37\\u1C40-\\u1C49\\u1C4D-\\u1C7D\\u1CD0-\\u1CD2\\u1CD4-\\u1CF6\\u1CF8\\u1CF9\\u1D00-\\u1DF5\\u1DFC-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u200C\\u200D\\u203F\\u2040\\u2054\\u2071\\u207F\\u2090-\\u209C\\u20D0-\\u20DC\\u20E1\\u20E5-\\u20F0\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2160-\\u2188\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2CE4\\u2CEB-\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D7F-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2DE0-\\u2DFF\\u2E2F\\u3005-\\u3007\\u3021-\\u302F\\u3031-\\u3035\\u3038-\\u303C\\u3041-\\u3096\\u3099\\u309A\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312D\\u3131-\\u318E\\u31A0-\\u31BA\\u31F0-\\u31FF\\u3400-\\u4DB5\\u4E00-\\u9FCC\\uA000-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA62B\\uA640-\\uA66F\\uA674-\\uA67D\\uA67F-\\uA69D\\uA69F-\\uA6F1\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA78E\\uA790-\\uA7AD\\uA7B0\\uA7B1\\uA7F7-\\uA827\\uA840-\\uA873\\uA880-\\uA8C4\\uA8D0-\\uA8D9\\uA8E0-\\uA8F7\\uA8FB\\uA900-\\uA92D\\uA930-\\uA953\\uA960-\\uA97C\\uA980-\\uA9C0\\uA9CF-\\uA9D9\\uA9E0-\\uA9FE\\uAA00-\\uAA36\\uAA40-\\uAA4D\\uAA50-\\uAA59\\uAA60-\\uAA76\\uAA7A-\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEF\\uAAF2-\\uAAF6\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\\uAB30-\\uAB5A\\uAB5C-\\uAB5F\\uAB64\\uAB65\\uABC0-\\uABEA\\uABEC\\uABED\\uABF0-\\uABF9\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D-\\uFB28\\uFB2A-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE00-\\uFE0F\\uFE20-\\uFE2D\\uFE33\\uFE34\\uFE4D-\\uFE4F\\uFE70-\\uFE74\\uFE76-\\uFEFC\\uFF10-\\uFF19\\uFF21-\\uFF3A\\uFF3F\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC]");function A6(e,t){if(!e)throw new Error("ASSERT: "+t)}function T6(e){return e>=48&&e<=57}function M6(e){return"0123456789abcdefABCDEF".indexOf(e)>=0}function O6(e){return"01234567".indexOf(e)>=0}function F6(e){return 32===e||9===e||11===e||12===e||160===e||e>=5760&&[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].indexOf(e)>=0}function P6(e){return 10===e||13===e||8232===e||8233===e}function N6(e){return 36===e||95===e||e>=65&&e<=90||e>=97&&e<=122||92===e||e>=128&&S6.test(String.fromCharCode(e))}function I6(e){return 36===e||95===e||e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||92===e||e>=128&&D6.test(String.fromCharCode(e))}const B6={if:1,in:1,do:1,var:1,for:1,new:1,try:1,let:1,this:1,else:1,case:1,void:1,with:1,enum:1,while:1,break:1,catch:1,throw:1,const:1,yield:1,class:1,super:1,return:1,typeof:1,delete:1,switch:1,export:1,import:1,public:1,static:1,default:1,finally:1,extends:1,package:1,private:1,function:1,continue:1,debugger:1,interface:1,protected:1,instanceof:1,implements:1};function j6(){for(;g61114111||"}"!==e)&&K6({},x6,E6),t<=65535?String.fromCharCode(t):(n=55296+(t-65536>>10),r=56320+(t-65536&1023),String.fromCharCode(n,r))}function R6(){var e,t;for(e=m6.charCodeAt(g6++),t=String.fromCharCode(e),92===e&&(117!==m6.charCodeAt(g6)&&K6({},x6,E6),++g6,(e=L6("u"))&&"\\"!==e&&N6(e.charCodeAt(0))||K6({},x6,E6),t=e);g6>>="===(r=m6.substr(g6,4))?{type:7,value:r,start:i,end:g6+=4}:">>>"===(n=r.substr(0,3))||"<<="===n||">>="===n?{type:7,value:n,start:i,end:g6+=3}:a===(t=n.substr(0,2))[1]&&"+-<>&|".indexOf(a)>=0||"=>"===t?{type:7,value:t,start:i,end:g6+=2}:("//"===t&&K6({},x6,E6),"<>=!+-*%&|^/".indexOf(a)>=0?{type:7,value:a,start:i,end:++g6}:void K6({},x6,E6))}function H6(){var e,t,n;if(A6(T6((n=m6[g6]).charCodeAt(0))||"."===n,"Numeric literal must start with a decimal digit or a decimal point"),t=g6,e="","."!==n){if(e=m6[g6++],n=m6[g6],"0"===e){if("x"===n||"X"===n)return++g6,function(e){let t="";for(;g6=v6)return{type:2,start:g6,end:g6};const e=m6.charCodeAt(g6);return N6(e)?function(){var e,t;return e=g6,t=92===m6.charCodeAt(g6)?R6():function(){var e,t;for(e=g6++;g6=0&&g6(A6(t=0&&K6({},w6,n),{value:n,literal:t}}(),r=function(e,t){let n=e;t.indexOf("u")>=0&&(n=n.replace(/\\u\{([0-9a-fA-F]+)\}/g,((e,t)=>{if(parseInt(t,16)<=1114111)return"x";K6({},w6)})).replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"x"));try{new RegExp(n)}catch(e){K6({},w6)}try{return new RegExp(e,t)}catch(e){return null}}(t.value,n.value),{literal:t.literal+n.literal,value:r,regex:{pattern:t.value,flags:n.value},start:e,end:g6}}()),W6()):Q6(q6())}return n}function s4(){const e=[];if(e4("("),!t4(")"))for(;g6":case"<=":case">=":case"instanceof":case"in":t=7;break;case"<<":case">>":case">>>":t=8;break;case"+":case"-":t=9;break;case"*":case"/":case"%":t=11}return t}function d4(){var e,t;return e=function(){var e,t,n,r,i,o,a,s,l,c;if(e=y6,l=u4(),0===(i=h4(r=y6)))return l;for(r.prec=i,q6(),t=[e,y6],o=[l,r,a=u4()];(i=h4(y6))>0;){for(;o.length>2&&i<=o[o.length-2].prec;)a=o.pop(),s=o.pop().value,l=o.pop(),t.pop(),n=V6(s,l,a),o.push(n);(r=q6()).prec=i,o.push(r),t.push(y6),n=u4(),o.push(n)}for(n=o[c=o.length-1],t.pop();c>1;)t.pop(),n=V6(o[c-1].value,o[c-2],n),c-=2;return n}(),t4("?")&&(q6(),t=d4(),e4(":"),e=function(e,t,n){const r=new f6("ConditionalExpression");return r.test=e,r.consequent=t,r.alternate=n,r}(e,t,d4())),e}function f4(){const e=d4();if(t4(","))throw new Error(C6);return e}function p4(e){const t=[];return"Identifier"===e.type?[e.name]:"Literal"===e.type?[e.value]:("MemberExpression"===e.type&&(t.push(...p4(e.object)),t.push(...p4(e.property))),t)}function m4(e){return"MemberExpression"===e.object.type?m4(e.object):"datum"===e.object.name}function g4(e){const t=function(e){g6=0,v6=(m6=e).length,y6=null,W6();const t=f4();if(2!==y6.type)throw new Error("Unexpect token after expression.");return t}(e),n=new Set;return t.visit((e=>{"MemberExpression"===e.type&&m4(e)&&n.add(p4(e).slice(1).join("."))})),n}class v4 extends Q3{constructor(e,t,n){super(e),this.model=t,this.filter=n,this.expr=x4(this.model,this.filter,this),this._dependentFields=g4(this.expr)}clone(){return new v4(null,this.model,uX(this.filter))}dependentFields(){return this._dependentFields}producedFields(){return new Set}assemble(){return{type:"filter",expr:this.expr}}hash(){return`Filter ${this.expr}`}}function y4(e,t,n,r="datum"){const i=YG(t)?t:t.param,o=FX(i),a=JG(o+o6);let s;try{s=e.getSelectionComponent(o,i)}catch(e){return`!!${o}`}if(s.project.timeUnit){const t=null!=n?n:e.component.data.raw,r=s.project.timeUnit.clone();t.parent?r.insertAsParentOf(t):t.parent=r}const l=`vlSelectionTest(${a}, ${r}${"global"===s.resolve?")":`, ${JG(s.resolve)})`}`,c=`length(data(${a}))`;return!1===t.empty?`${c} && ${l}`:`!${c} || ${l}`}function b4(e,t,n){const r=FX(t),i=n.encoding;let o,a=n.field;try{o=e.getSelectionComponent(r,t)}catch(e){return r}if(i||a){if(i&&!a){const e=o.project.items.filter((e=>e.channel===i));!e.length||e.length>1?(a=o.project.items[0].field,nK((e.length?"Multiple ":"No ")+`matching ${JG(i)} encoding found for selection ${JG(n.param)}. `+`Using "field": ${JG(a)}.`)):a=e[0].field}}else a=o.project.items[0].field,o.project.items.length>1&&nK(`A "field" or "encoding" must be specified when using a selection as a scale domain. Using "field": ${JG(a)}.`);return`${o.name}[${JG(zX(a))}]`}function x4(e,t,n){return PX(t,(t=>YG(t)?t:function(e){return null==e?void 0:e.param}(t)?y4(e,t,n):DK(t)))}var w4=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{const{test:t}=e,n=w4(e,["test"]);return Object.assign({test:x4(null,t)},n)})),n];_4(f,r,t,a),delete f[e]}else if(null===o){const t={signal:i.map((e=>{const{test:t}=e,n=w4(e,["test"]);return`${x4(null,t)} ? ${gZ(n)} : `})).join("")+gZ(n)};f[e]=t}}else if(oZ(r)){const t=Z0[e];if(t){const{vgProp:n,part:i}=t;_4(f,i,n,r),delete f[e]}}gX(["labelAlign","labelBaseline"],e)&&null===f[e]&&delete f[e]}if("grid"===t){if(!f.grid)return;if(f.encode){const{grid:e}=f.encode;f.encode=Object.assign({},e?{grid:e}:{}),DX(f.encode)&&delete f.encode}return Object.assign(Object.assign({scale:c,orient:l},f),{domain:!1,labels:!1,aria:!1,maxExtent:0,minExtent:0,ticks:!1,zindex:UX(d,0)})}{if(!r.header&&e.mainExtracted)return;if(void 0!==u){let e=u;(null===(o=null===(i=f.encode)||void 0===i?void 0:i.labels)||void 0===o?void 0:o.update)&&oZ(f.encode.labels.update.text)&&(e=RX(u,"datum.label",f.encode.labels.update.text.signal)),_4(f,"labels","text",{signal:e})}if(null===f.labelAlign&&delete f.labelAlign,f.encode){for(const t of Q0)e.hasAxisPart(t)||delete f.encode[t];DX(f.encode)&&delete f.encode}const t=function(e,t){if(e)return LG(e)&&!iZ(e)?e.map((e=>L0(e,t))).join(", "):e}(h,n);return Object.assign(Object.assign(Object.assign(Object.assign({scale:c,orient:l,grid:!1},t?{title:t}:{}),f),!1===n.aria?{aria:!1}:{}),{zindex:UX(d,0)})}}}function E4(e){const{axes:t}=e.component,n=[];for(const r of yJ)if(t[r])for(const i of t[r])if(!i.get("disable")&&!i.get("gridScale")){const t="x"===r?"height":"width",i=e.getSizeSignalRef(t).signal;t!==i&&n.push({name:t,update:i})}return n}function C4(e,t,n,r){return Object.assign.apply(null,[{},...e.map((e=>{if("axisOrient"===e){const e="x"===n?"bottom":"left",i=t["x"===n?"axisBottom":"axisLeft"]||{},o=t["x"===n?"axisTop":"axisRight"]||{},a=new Set([...AX(i),...AX(o)]),s={};for(const t of a.values())s[t]={signal:`${r.signal} === "${e}" ? ${vZ(i[t])} : ${vZ(o[t])}`};return s}return t[e]}))])}function S4(e,t){var n;const r=[{}];for(const i of e){let e=null===(n=t[i])||void 0===n?void 0:n.style;if(e){e=qG(e);for(const n of e)r.push(t.style[n])}}return Object.assign.apply(null,r)}function D4(e,t,n,r={}){var i;const o=_Z(e,n,t);if(void 0!==o)return{configFrom:"style",configValue:o};for(const t of["vlOnlyAxisConfig","vgAxisConfig","axisConfigStyle"])if(void 0!==(null===(i=r[t])||void 0===i?void 0:i[e]))return{configFrom:t,configValue:r[t][e]};return{}}const A4={scale:({model:e,channel:t})=>e.scaleName(t),format:({fieldOrDatumDef:e,config:t,axis:n})=>{const{format:r,formatType:i}=n;return XQ(e,e.type,r,i,t,!0)},formatType:({axis:e,fieldOrDatumDef:t,scaleType:n})=>{const{formatType:r}=e;return YQ(r,t,n)},grid:({fieldOrDatumDef:e,axis:t,scaleType:n})=>{var r;return null!==(r=t.grid)&&void 0!==r?r:function(e,t){return!YK(e)&&y0(t)&&!JJ(null==t?void 0:t.bin)&&!ZJ(null==t?void 0:t.bin)}(n,e)},gridScale:({model:e,channel:t})=>function(e,t){const n="x"===t?"y":"x";if(e.getScaleComponent(n))return e.scaleName(n)}(e,t),labelAlign:({axis:e,labelAngle:t,orient:n,channel:r})=>e.labelAlign||O4(t,n,r),labelAngle:({labelAngle:e})=>e,labelBaseline:({axis:e,labelAngle:t,orient:n,channel:r})=>e.labelBaseline||M4(t,n,r),labelFlush:({axis:e,fieldOrDatumDef:t,channel:n})=>{var r;return null!==(r=e.labelFlush)&&void 0!==r?r:function(e,t){if("x"===t&&gX(["quantitative","temporal"],e))return!0}(t.type,n)},labelOverlap:({axis:e,fieldOrDatumDef:t,scaleType:n})=>{var r;return null!==(r=e.labelOverlap)&&void 0!==r?r:function(e,t,n,r){if(n&&!zG(r)||"nominal"!==e&&"ordinal"!==e)return"log"!==t&&"symlog"!==t||"greedy"}(t.type,n,y0(t)&&!!t.timeUnit,y0(t)?t.sort:void 0)},orient:({orient:e})=>e,tickCount:({channel:e,model:t,axis:n,fieldOrDatumDef:r,scaleType:i})=>{var o;const a="x"===e?"width":"y"===e?"height":void 0,s=a?t.getSizeSignalRef(a):void 0;return null!==(o=n.tickCount)&&void 0!==o?o:function({fieldOrDatumDef:e,scaleType:t,size:n,values:r}){var i;if(!r&&!YK(t)&&"log"!==t){if(y0(e)){if(JJ(e.bin))return{signal:`ceil(${n.signal}/10)`};if(e.timeUnit&&gX(["month","hours","day","quarter"],null===(i=vK(e.timeUnit))||void 0===i?void 0:i.unit))return}return{signal:`ceil(${n.signal}/40)`}}}({fieldOrDatumDef:r,scaleType:i,size:s,values:n.values})},title:({axis:e,model:t,channel:n})=>{if(void 0!==e.title)return e.title;const r=F4(t,n);if(void 0!==r)return r;const i=t.typedFieldDef(n),o="x"===n?"x2":"y2",a=t.fieldDef(o);return EZ(i?[u0(i)]:[],y0(a)?[u0(a)]:[])},values:({axis:e,fieldOrDatumDef:t})=>function(e,t){const n=e.values;return LG(n)?Y0(t,n):oZ(n)?n:void 0}(e,t),zindex:({axis:e,fieldOrDatumDef:t,mark:n})=>{var r;return null!==(r=e.zindex)&&void 0!==r?r:function(e,t){return"rect"===e&&F0(t)?1:0}(n,t)}};function T4(e){return`(((${e.signal} % 360) + 360) % 360)`}function M4(e,t,n,r){if(void 0!==e){if("x"===n){if(oZ(e)){const n=T4(e);return{signal:`(45 < ${n} && ${n} < 135) || (225 < ${n} && ${n} < 315) ? "middle" :(${n} <= 45 || 315 <= ${n}) === ${oZ(t)?`(${t.signal} === "top")`:"top"===t} ? "bottom" : "top"`}}if(45{if(S0(t)&&o0(t.sort)){const{field:r,timeUnit:i}=t,o=t.sort,a=o.map(((e,t)=>`${DK({field:r,timeUnit:i,equal:e})} ? ${t} : `)).join("")+o.length;e=new P4(e,{calculate:a,as:N4(t,n,{forAs:!0})})}})),e}producedFields(){return new Set([this.transform.as])}dependentFields(){return this._dependentFields}assemble(){return{type:"formula",expr:this.transform.calculate,as:this.transform.as}}hash(){return`Calculate ${pX(this.transform)}`}}function N4(e,t,n){return O0(e,Object.assign({prefix:t,suffix:"sort_index"},null!=n?n:{}))}function I4(e,t){return gX(["top","bottom"],t)?"column":gX(["left","right"],t)||"row"===e?"row":"column"}function B4(e,t,n,r){const i="row"===r?n.headerRow:"column"===r?n.headerColumn:n.headerFacet;return UX((t||{})[e],i[e],n.header[e])}function j4(e,t,n,r){const i={};for(const o of e){const e=B4(o,t||{},n,r);void 0!==e&&(i[o]=e)}return i}const L4=["row","column"],z4=["header","footer"];function R4(e,t){const n=e.component.layoutHeaders[t].title,r=e.config?e.config:void 0,i=e.component.layoutHeaders[t].facetFieldDef?e.component.layoutHeaders[t].facetFieldDef:void 0,{titleAnchor:o,titleAngle:a,titleOrient:s}=j4(["titleAnchor","titleAngle","titleOrient"],i.header,r,t),l=I4(t,s),c=YX(a);return{name:`${t}-title`,type:"group",role:`${l}-title`,title:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({text:n},"row"===t?{orient:"left"}:{}),{style:"guide-title"}),H4(c,l)),$4(l,c,o)),Y4(r,i,t,H1,R1))}}function $4(e,t,n="middle"){switch(n){case"start":return{align:"left"};case"end":return{align:"right"}}const r=O4(t,"row"===e?"left":"top","row"===e?"y":"x");return r?{align:r}:{}}function H4(e,t){const n=M4(e,"row"===t?"left":"top","row"===t?"y":"x",!0);return n?{baseline:n}:{}}function U4(e,t){const n=e.component.layoutHeaders[t],r=[];for(const i of z4)if(n[i])for(const o of n[i]){const a=V4(e,t,i,n,o);null!=a&&r.push(a)}return r}function q4(e,t){var n;const{sort:r}=e;return i0(r)?{field:O0(r,{expr:"datum"}),order:null!==(n=r.order)&&void 0!==n?n:"ascending"}:LG(r)?{field:N4(e,t,{expr:"datum"}),order:"ascending"}:{field:O0(e,{expr:"datum"}),order:null!=r?r:"ascending"}}function W4(e,t,n){const{format:r,formatType:i,labelAngle:o,labelAnchor:a,labelOrient:s,labelExpr:l}=j4(["format","formatType","labelAngle","labelAnchor","labelOrient","labelExpr"],e.header,n,t),c=WQ({fieldOrDatumDef:e,format:r,formatType:i,expr:"parent",config:n}).signal,u=I4(t,s);return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({text:{signal:l?RX(RX(l,"datum.label",c),"datum.value",O0(e,{expr:"parent"})):c}},"row"===t?{orient:"left"}:{}),{style:"guide-label",frame:"group"}),H4(o,u)),$4(u,o,a)),Y4(n,e,t,U1,$1))}function V4(e,t,n,r,i){if(i){let o=null;const{facetFieldDef:a}=r,s=e.config?e.config:void 0;if(a&&i.labels){const{labelOrient:e}=j4(["labelOrient"],a.header,s,t);("row"===t&&!gX(["top","bottom"],e)||"column"===t&&!gX(["left","right"],e))&&(o=W4(a,t,s))}const l=$7(e)&&!a0(e.facet),c=i.axes,u=(null==c?void 0:c.length)>0;if(o||u){const s="row"===t?"height":"width";return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({name:e.getName(`${t}_${n}`),type:"group",role:`${t}-${n}`},r.facetFieldDef?{from:{data:e.getName(`${t}_domain`)},sort:q4(a,t)}:{}),u&&l?{from:{data:e.getName(`facet_domain_${t}`)}}:{}),o?{title:o}:{}),i.sizeSignal?{encode:{update:{[s]:i.sizeSignal}}}:{}),u?{axes:c}:{})}}return null}const G4={column:{start:0,end:1},row:{start:1,end:0}};function X4(e,t){return G4[t][e]}function Y4(e,t,n,r,i){const o={};for(const a of r){if(!i[a])continue;const r=B4(a,null==t?void 0:t.header,e,n);void 0!==r&&(o[i[a]]=r)}return o}function J4(e){return[...Z4(e,"width"),...Z4(e,"height"),...Z4(e,"childWidth"),...Z4(e,"childHeight")]}function Z4(e,t){const n="width"===t?"x":"y",r=e.component.layoutSize.get(t);if(!r||"merged"===r)return[];const i=e.getSizeSignalRef(t).signal;if("step"===r){const t=e.getScaleComponent(n);if(t){const r=t.get("type"),o=t.get("range");if(YK(r)&&aZ(o)){const r=e.scaleName(n);return $7(e.parent)&&"independent"===e.parent.component.resolve.scale[n]?[K4(r,o)]:[K4(r,o),{name:i,update:Q4(r,t,`domain('${r}').length`)}]}}throw new Error("layout size is step although width/height is not step.")}if("container"==r){const t=i.endsWith("width"),n=t?"containerSize()[0]":"containerSize()[1]",r=`isFinite(${n}) ? ${n} : ${a2(e.config.view,t?"width":"height")}`;return[{name:i,init:r,on:[{update:r,events:"window:resize"}]}]}return[{name:i,value:r}]}function K4(e,t){return{name:`${e}_step`,value:t.step}}function Q4(e,t,n){const r=t.get("type"),i=t.get("padding"),o=UX(t.get("paddingOuter"),i);let a=t.get("paddingInner");return a="band"===r?void 0!==a?a:i:1,`bandspace(${n}, ${vZ(a)}, ${vZ(o)}) * ${e}_step`}function e8(e){return"childWidth"===e?"width":"childHeight"===e?"height":e}function t8(e,t){return AX(e).reduce(((n,r)=>{const i=e[r];return Object.assign(Object.assign({},n),y5(t,i,r,(e=>mZ(e.value))))}),{})}function n8(e,t){if($7(t))return"theta"===e?"independent":"shared";if(U7(t))return"shared";if(H7(t))return bJ(e)||"theta"===e||"radius"===e?"independent":"shared";throw new Error("invalid model type for resolve")}function r8(e,t){const n=e.scale[t],r=bJ(t)?"axis":"legend";return"independent"===n?("shared"===e[r][t]&&nK(function(e){return`Setting the scale to be independent for "${e}" means we also have to set the guide (axis or legend) to be independent.`}(t)),"independent"):e[r][t]||"shared"}const i8=Object.assign(Object.assign({},V1),{disable:1,labelExpr:1,selections:1,opacity:1,shape:1,stroke:1,fill:1,size:1,strokeWidth:1,strokeDash:1,encode:1}),o8=AX(i8);class a8 extends C3{}const s8={symbols:function(e,{fieldOrDatumDef:t,model:n,channel:r,legendCmpt:i,legendType:o}){var a,s,l,c,u,h,d,f;if("symbol"!==o)return;const{markDef:p,encoding:m,config:g,mark:v}=n,y=p.filled&&"trail"!==v;let b=Object.assign(Object.assign({},function(e,t,n){for(const r of n){const n=xZ(r,t.markDef,t.config);void 0!==n&&(e[r]=mZ(n))}return e}({},n,MQ)),C5(n,{filled:y}));const x=null!==(a=i.get("symbolOpacity"))&&void 0!==a?a:g.legend.symbolOpacity,w=null!==(s=i.get("symbolFillColor"))&&void 0!==s?s:g.legend.symbolFillColor,_=null!==(l=i.get("symbolStrokeColor"))&&void 0!==l?l:g.legend.symbolStrokeColor,k=void 0===x?null!==(c=l8(m.opacity))&&void 0!==c?c:p.opacity:void 0;if(b.fill)if("fill"===r||y&&r===fY)delete b.fill;else if(b.fill.field)w?delete b.fill:(b.fill=mZ(null!==(u=g.legend.symbolBaseFillColor)&&void 0!==u?u:"black"),b.fillOpacity=mZ(null!=k?k:1));else if(LG(b.fill)){const e=null!==(f=null!==(d=c8(null!==(h=m.fill)&&void 0!==h?h:m.color))&&void 0!==d?d:p.fill)&&void 0!==f?f:y&&p.color;e&&(b.fill=mZ(e))}if(b.stroke)if("stroke"===r||!y&&r===fY)delete b.stroke;else if(b.stroke.field||_)delete b.stroke;else if(LG(b.stroke)){const e=UX(c8(m.stroke||m.color),p.stroke,y?p.color:void 0);e&&(b.stroke={value:e})}if(r!==bY){const e=y0(t)&&h8(0,i,t);e?b.opacity=[Object.assign({test:e},mZ(null!=k?k:1)),mZ(g.legend.unselectedOpacity)]:k&&(b.opacity=mZ(k))}return b=Object.assign(Object.assign({},b),e),DX(b)?void 0:b},gradient:function(e,{model:t,legendType:n,legendCmpt:r}){var i;if("gradient"!==n)return;const{config:o,markDef:a,encoding:s}=t;let l={};const c=void 0===(null!==(i=r.get("gradientOpacity"))&&void 0!==i?i:o.legend.gradientOpacity)?l8(s.opacity)||a.opacity:void 0;return c&&(l.opacity=mZ(c)),l=Object.assign(Object.assign({},l),e),DX(l)?void 0:l},labels:function(e,{fieldOrDatumDef:t,model:n,channel:r,legendCmpt:i}){const o=n.legend(r)||{},a=n.config,s=y0(t)?h8(0,i,t):void 0,l=s?[{test:s,value:1},{value:a.legend.unselectedOpacity}]:void 0,{format:c,formatType:u}=o,h=UQ(u)?GQ({fieldOrDatumDef:t,field:"datum.value",format:c,formatType:u,config:a}):void 0,d=Object.assign(Object.assign(Object.assign({},l?{opacity:l}:{}),h?{text:h}:{}),e);return DX(d)?void 0:d},entries:function(e,{legendCmpt:t}){const n=t.get("selections");return(null==n?void 0:n.length)?Object.assign(Object.assign({},e),{fill:{value:"transparent"}}):e}};function l8(e){return u8(e,((e,t)=>Math.max(e,t.value)))}function c8(e){return u8(e,((e,t)=>UX(e,t.value)))}function u8(e,t){return function(e){const t=e&&e.condition;return!!t&&(LG(t)||C0(t))}(e)?qG(e.condition).reduce(t,e.value):C0(e)?e.value:void 0}function h8(e,t,n){const r=t.get("selections");if(!(null==r?void 0:r.length))return;const i=JG(n.field);return r.map((e=>`(!length(data(${JG(FX(e)+o6)})) || (${e}[${i}] && indexof(${e}[${i}], datum.value) >= 0))`)).join(" || ")}const d8={direction:({direction:e})=>e,format:({fieldOrDatumDef:e,legend:t,config:n})=>{const{format:r,formatType:i}=t;return XQ(e,e.type,r,i,n,!1)},formatType:({legend:e,fieldOrDatumDef:t,scaleType:n})=>{const{formatType:r}=e;return YQ(r,t,n)},gradientLength:e=>{var t,n;const{legend:r,legendConfig:i}=e;return null!==(n=null!==(t=r.gradientLength)&&void 0!==t?t:i.gradientLength)&&void 0!==n?n:function({legendConfig:e,model:t,direction:n,orient:r,scaleType:i}){const{gradientHorizontalMaxLength:o,gradientHorizontalMinLength:a,gradientVerticalMaxLength:s,gradientVerticalMinLength:l}=e;if(ZK(i))return"horizontal"===n?"top"===r||"bottom"===r?p8(t,"width",a,o):a:p8(t,"height",l,s)}(e)},labelOverlap:({legend:e,legendConfig:t,scaleType:n})=>{var r,i;return null!==(i=null!==(r=e.labelOverlap)&&void 0!==r?r:t.labelOverlap)&&void 0!==i?i:function(e){if(gX(["quantile","threshold","log","symlog"],e))return"greedy"}(n)},symbolType:({legend:e,markDef:t,channel:n,encoding:r})=>{var i;return null!==(i=e.symbolType)&&void 0!==i?i:function(e,t,n,r){var i;if("shape"!==t){const e=null!==(i=c8(n))&&void 0!==i?i:r;if(e)return e}switch(e){case"bar":case"rect":case"image":case"square":return"square";case"line":case"trail":case"rule":return"stroke";case"arc":case"point":case"circle":case"tick":case"geoshape":case"area":case"text":return"circle"}}(t.type,n,r.shape,t.shape)},title:({fieldOrDatumDef:e,config:t})=>B0(e,t,{allowDisabling:!0}),type:({legendType:e,scaleType:t,channel:n})=>{if(jY(n)&&ZK(t)){if("gradient"===e)return}else if("symbol"===e)return;return e},values:({fieldOrDatumDef:e,legend:t})=>function(e,t){const n=e.values;return LG(n)?Y0(t,n):oZ(n)?n:void 0}(t,e)};function f8({legendConfig:e,legendType:t,orient:n,legend:r}){var i,o;return null!==(o=null!==(i=r.direction)&&void 0!==i?i:e[t?"gradientDirection":"symbolDirection"])&&void 0!==o?o:function(e,t){switch(e){case"top":case"bottom":return"horizontal";case"left":case"right":case"none":case void 0:return;default:return"gradient"===t?"horizontal":void 0}}(n,t)}function p8(e,t,n,r){return{signal:`clamp(${e.getSizeSignalRef(t).signal}, ${n}, ${r})`}}function m8(e){const t=R7(e)?function(e){const{encoding:t}=e,n={};for(const r of[fY,...W1]){const i=$0(t[r]);i&&e.getScaleComponent(r)&&(r===gY&&y0(i)&&i.type===IK||(n[r]=v8(e,r)))}return n}(e):function(e){const{legends:t,resolve:n}=e.component;for(const r of e.children){m8(r);for(const i of AX(r.component.legends))n.legend[i]=r8(e.component.resolve,i),"shared"===n.legend[i]&&(t[i]=y8(t[i],r.component.legends[i]),t[i]||(n.legend[i]="independent",delete t[i]))}for(const r of AX(t))for(const t of e.children)t.component.legends[r]&&"shared"===n.legend[r]&&delete t.component.legends[r];return t}(e);return e.component.legends=t,t}function g8(e,t,n,r){switch(t){case"disable":return void 0!==n;case"values":return!!(null==n?void 0:n.values);case"title":if("title"===t&&e===(null==r?void 0:r.title))return!0}return e===(n||{})[t]}function v8(e,t){var n,r,i;let o=e.legend(t);const{markDef:a,encoding:s,config:l}=e,c=l.legend,u=new a8({},function(e,t){const n=e.scaleName(t);if("trail"===e.mark){if("color"===t)return{stroke:n};if("size"===t)return{strokeWidth:n}}return"color"===t?e.markDef.filled?{fill:n}:{stroke:n}:{[t]:n}}(e,t));!function(e,t,n){var r,i,o,a;const s=null===(r=e.fieldDef(t))||void 0===r?void 0:r.field;for(const r of TX(null!==(i=e.component.selection)&&void 0!==i?i:{})){const e=null!==(o=r.project.hasField[s])&&void 0!==o?o:r.project.hasChannel[t];if(e&&Z5.defined(r)){const t=null!==(a=n.get("selections"))&&void 0!==a?a:[];t.push(r.name),n.set("selections",t,!1),e.hasLegend=!0}}}(e,t,u);const h=void 0!==o?!o:c.disable;if(u.set("disable",h,void 0!==o),h)return u;o=o||{};const d=e.getScaleComponent(t).get("type"),f=$0(s[t]),p=y0(f)?null===(n=vK(f.timeUnit))||void 0===n?void 0:n.unit:void 0,m=o.orient||l.legend.orient||"right",g=function(e){const{legend:t}=e;return UX(t.type,function({channel:e,timeUnit:t,scaleType:n}){if(jY(e)){if(gX(["quarter","month","day"],t))return"symbol";if(ZK(n))return"gradient"}return"symbol"}(e))}({legend:o,channel:t,timeUnit:p,scaleType:d}),v={legend:o,channel:t,model:e,markDef:a,encoding:s,fieldOrDatumDef:f,legendConfig:c,config:l,scaleType:d,orient:m,legendType:g,direction:f8({legend:o,legendType:g,orient:m,legendConfig:c})};for(const n of o8){if("gradient"===g&&n.startsWith("symbol")||"symbol"===g&&n.startsWith("gradient"))continue;const r=n in d8?d8[n](v):o[n];if(void 0!==r){const i=g8(r,n,o,e.fieldDef(t));(i||void 0===l.legend[n])&&u.set(n,r,i)}}const y=null!==(r=null==o?void 0:o.encoding)&&void 0!==r?r:{},b=u.get("selections"),x={},w={fieldOrDatumDef:f,model:e,channel:t,legendCmpt:u,legendType:g};for(const t of["labels","legend","title","symbols","gradient","entries"]){const n=t8(null!==(i=y[t])&&void 0!==i?i:{},e),r=t in s8?s8[t](n,w):n;void 0===r||DX(r)||(x[t]=Object.assign(Object.assign(Object.assign({},(null==b?void 0:b.length)&&y0(f)?{name:`${FX(f.field)}_legend_${t}`}:{}),(null==b?void 0:b.length)?{interactive:!!b}:{}),{update:r}))}return DX(x)||u.set("encode",x,!!(null==o?void 0:o.encoding)),u}function y8(e,t){var n,r,i,o;if(!e)return t.clone();const a=e.getWithExplicit("orient"),s=t.getWithExplicit("orient");if(a.explicit&&s.explicit&&a.value!==s.value)return;let l=!1;for(const n of o8){const r=M3(e.getWithExplicit(n),t.getWithExplicit(n),n,"legend",((e,t)=>{switch(n){case"symbolType":return r=e,"circle"===(i=t).value?i:r;case"title":return SZ(e,t);case"type":return l=!0,D3("symbol")}var r,i;return T3(e,t,n,"legend")}));e.setWithExplicit(n,r)}return l&&((null===(r=null===(n=e.implicit)||void 0===n?void 0:n.encode)||void 0===r?void 0:r.gradient)&&NX(e.implicit,["encode","gradient"]),(null===(o=null===(i=e.explicit)||void 0===i?void 0:i.encode)||void 0===o?void 0:o.gradient)&&NX(e.explicit,["encode","gradient"])),e}function b8(e){const t=e.component.legends,n={};for(const r of AX(t)){const i=e.getScaleComponent(r),o=fX(i.get("domains"));if(n[o])for(const e of n[o])y8(e,t[r])||n[o].push(t[r]);else n[o]=[t[r].clone()]}const r=TX(n).flat().map((t=>function(e,t){var n,r,i;const o=e.combine(),{disable:a,labelExpr:s,selections:l}=o,c=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);ivoid 0!==e));return r}function x8(e){const t=e.component.projection;if(!t||t.merged)return[];const n=t.combine(),{name:r}=n;if(t.data){const i={signal:`[${t.size.map((e=>e.signal)).join(", ")}]`},o=t.data.reduce(((t,n)=>{const r=oZ(n)?n.signal:`data('${e.lookupDataSource(n)}')`;return gX(t,r)||t.push(r),t}),[]);if(o.length<=0)throw new Error("Projection's fit didn't find any data sources");return[Object.assign({name:r,size:i,fit:{signal:o.length>1?`[${o.join(", ")}]`:o[0]}},n)]}return[Object.assign(Object.assign({name:r},{translate:{signal:"[width / 2, height / 2]"}}),n)]}const w8=["type","clipAngle","clipExtent","center","rotate","precision","reflectX","reflectY","coefficient","distance","fraction","lobes","parallel","radius","ratio","spacing","tilt"];class _8 extends C3{constructor(e,t,n,r){super(Object.assign({},t),{name:e}),this.specifiedProjection=t,this.size=n,this.data=r,this.merged=!1}get isFit(){return!!this.data}}function k8(e){e.component.projection=R7(e)?function(e){var t;if(e.hasProjection){const n=nZ(e.specifiedProjection),r=!(n&&(null!=n.scale||null!=n.translate)),i=r?[e.getSizeSignalRef("width"),e.getSizeSignalRef("height")]:void 0,o=r?function(e){const t=[],{encoding:n}=e;for(const r of[[uY,cY],[dY,hY]])($0(n[r[0]])||$0(n[r[1]]))&&t.push({signal:e.getName(`geojson_${t.length}`)});return e.channelHasField(gY)&&e.typedFieldDef(gY).type===IK&&t.push({signal:e.getName(`geojson_${t.length}`)}),0===t.length&&t.push(e.requestDataName(z3.Main)),t}(e):void 0,a=new _8(e.projectionName(!0),Object.assign(Object.assign({},null!==(t=nZ(e.config.projection))&&void 0!==t?t:{}),null!=n?n:{}),i,o);return a.get("type")||a.set("type","equalEarth",!1),a}}(e):function(e){if(0===e.children.length)return;let t;for(const t of e.children)k8(t);const n=yX(e.children,(e=>{const n=e.component.projection;if(n){if(t){const e=function(e,t){const n=yX(w8,(n=>!VG(e.explicit,n)&&!VG(t.explicit,n)||!!(VG(e.explicit,n)&&VG(t.explicit,n)&&cX(e.get(n),t.get(n)))));if(cX(e.size,t.size)){if(n)return e;if(cX(e.explicit,{}))return t;if(cX(t.explicit,{}))return e}return null}(t,n);return e&&(t=e),!!e}return t=n,!0}return!0}));if(t&&n){const n=e.projectionName(!0),r=new _8(n,t.specifiedProjection,t.size,uX(t.data));for(const t of e.children){const e=t.component.projection;e&&(e.isFit&&r.data.push(...t.component.projection.data),t.renameProjection(e.get("name"),n),e.merged=!0)}return r}}(e)}function E8(e,t){return`${YJ(e)}_${t}`}function C8(e,t,n){var r;const i=E8(null!==(r=W0(n,void 0))&&void 0!==r?r:{},t);return e.getName(`${i}_bins`)}function S8(e,t,n){let r,i;r=function(e){return"as"in e}(e)?YG(e.as)?[e.as,`${e.as}_end`]:[e.as[0],e.as[1]]:[O0(e,{forAs:!0}),O0(e,{binSuffix:"end",forAs:!0})];const o=Object.assign({},W0(t,void 0)),a=E8(o,e.field),{signal:s,extentSignal:l}=function(e,t){return{signal:e.getName(`${t}_bins`),extentSignal:e.getName(`${t}_extent`)}}(n,a);if(QJ(o.extent)){const e=o.extent;i=b4(n,e.param,e),delete o.extent}return{key:a,binComponent:Object.assign(Object.assign(Object.assign({bin:o,field:e.field,as:[r]},s?{signal:s}:{}),l?{extentSignal:l}:{}),i?{span:i}:{})}}class D8 extends Q3{constructor(e,t){super(e),this.bins=t}clone(){return new D8(null,uX(this.bins))}static makeFromEncoding(e,t){const n=t.reduceFieldDef(((e,n,r)=>{if(E0(n)&&JJ(n.bin)){const{key:i,binComponent:o}=S8(n,n.bin,t);e[i]=Object.assign(Object.assign(Object.assign({},o),e[i]),function(e,t,n,r){var i,o;if(J0(t,n)){const a=R7(e)&&null!==(o=null!==(i=e.axis(n))&&void 0!==i?i:e.legend(n))&&void 0!==o?o:{},s=O0(t,{expr:"datum"}),l=O0(t,{expr:"datum",binSuffix:"end"});return{formulaAs:O0(t,{binSuffix:"range",forAs:!0}),formula:QQ(s,l,a.format,a.formatType,r)}}return{}}(t,n,r,t.config))}return e}),{});return DX(n)?null:new D8(e,n)}static makeFromTransform(e,t,n){const{key:r,binComponent:i}=S8(t,t.bin,n);return new D8(e,{[r]:i})}merge(e,t){for(const n of AX(e.bins))n in this.bins?(t(e.bins[n].signal,this.bins[n].signal),this.bins[n].as=wX([...this.bins[n].as,...e.bins[n].as],pX)):this.bins[n]=e.bins[n];for(const t of e.children)e.removeChild(t),t.parent=this;e.remove()}producedFields(){return new Set(TX(this.bins).map((e=>e.as)).flat(2))}dependentFields(){return new Set(TX(this.bins).map((e=>e.field)))}hash(){return`Bin ${pX(this.bins)}`}assemble(){return TX(this.bins).flatMap((e=>{const t=[],[n,...r]=e.as,i=e.bin,{extent:o}=i,a=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{e.aggregate&&(n=!0)}));const r={},i=new Set;return n?(t.forEachFieldDef(((e,n)=>{var o,a,s,l;const{aggregate:c,field:u}=e;if(c)if("count"===c)null!==(o=r["*"])&&void 0!==o||(r["*"]={}),r["*"].count=new Set([O0(e,{forAs:!0})]);else{if(HJ(c)||UJ(c)){const e=HJ(c)?"argmin":"argmax",t=c[e];null!==(a=r[t])&&void 0!==a||(r[t]={}),r[t][e]=new Set([O0({op:e,field:t},{forAs:!0})])}else null!==(s=r[u])&&void 0!==s||(r[u]={}),r[u][c]=new Set([O0(e,{forAs:!0})]);IJ(n)&&"unaggregated"===t.scaleDomain(n)&&(null!==(l=r[u])&&void 0!==l||(r[u]={}),r[u].min=new Set([O0({field:u,aggregate:"min"},{forAs:!0})]),r[u].max=new Set([O0({field:u,aggregate:"max"},{forAs:!0})]))}else!function(e,t,n,r){var i;const o=R7(r)?r.encoding[tJ(t)]:void 0;if(E0(n)&&R7(r)&&p0(n,o,r.markDef,r.config))e.add(O0(n,{})),e.add(O0(n,{suffix:"end"})),n.bin&&J0(n,t)&&e.add(O0(n,{binSuffix:"range"}));else if(t in NY){const n=function(e){switch(e){case cY:return"y";case hY:return"y2";case uY:return"x";case dY:return"x2"}}(t);e.add(r.getName(n))}else e.add(O0(n));var a;S0(n)&&Wi(a=null===(i=n.scale)||void 0===i?void 0:i.range)&&"field"in a&&e.add(n.scale.range.field)}(i,n,e,t)})),i.size+AX(r).length===0?null:new A8(e,i,r)):null}static makeFromTransform(e,t){var n,r,i;const o=new Set,a={};for(const e of t.aggregate){const{op:t,field:i,as:o}=e;t&&("count"===t?(null!==(n=a["*"])&&void 0!==n||(a["*"]={}),a["*"].count=new Set([o||O0(e,{forAs:!0})])):(null!==(r=a[i])&&void 0!==r||(a[i]={}),a[i][t]=new Set([o||O0(e,{forAs:!0})])))}for(const e of null!==(i=t.groupby)&&void 0!==i?i:[])o.add(e);return o.size+AX(a).length===0?null:new A8(e,o,a)}merge(e){return kX(this.dimensions,e.dimensions)?(function(e,t){var n;for(const r of AX(t)){const i=t[r];for(const t of AX(i))r in e?e[r][t]=new Set([...null!==(n=e[r][t])&&void 0!==n?n:[],...i[t]]):e[r]={[t]:i[t]}}}(this.measures,e.measures),!0):(function(...e){tK.debug(...e)}("different dimensions, cannot merge"),!1)}addDimensions(e){e.forEach(this.dimensions.add,this.dimensions)}dependentFields(){return new Set([...this.dimensions,...AX(this.measures)])}producedFields(){const e=new Set;for(const t of AX(this.measures))for(const n of AX(this.measures[t])){const r=this.measures[t][n];0===r.size?e.add(`${n}_${t}`):r.forEach(e.add,e)}return e}hash(){return`Aggregate ${pX({dimensions:this.dimensions,measures:this.measures})}`}assemble(){const e=[],t=[],n=[];for(const r of AX(this.measures))for(const i of AX(this.measures[r]))for(const o of this.measures[r][i])n.push(o),e.push(i),t.push("*"===r?null:zX(r));return{type:"aggregate",groupby:[...this.dimensions].map(zX),ops:e,fields:t,as:n}}}class T8 extends Q3{constructor(e,t,n,r){super(e),this.model=t,this.name=n,this.data=r;for(const e of zY){const n=t.facet[e];if(n){const{bin:r,sort:i}=n;this[e]=Object.assign({name:t.getName(`${e}_domain`),fields:[O0(n),...JJ(r)?[O0(n,{binSuffix:"end"})]:[]]},i0(i)?{sortField:i}:LG(i)?{sortIndexField:N4(n,e)}:{})}}this.childModel=t.child}hash(){let e="Facet";for(const t of zY)this[t]&&(e+=` ${t.charAt(0)}:${pX(this[t])}`);return e}get fields(){var e;const t=[];for(const n of zY)(null===(e=this[n])||void 0===e?void 0:e.fields)&&t.push(...this[n].fields);return t}dependentFields(){const e=new Set(this.fields);for(const t of zY)this[t]&&(this[t].sortField&&e.add(this[t].sortField.field),this[t].sortIndexField&&e.add(this[t].sortIndexField));return e}producedFields(){return new Set}getSource(){return this.name}getChildIndependentFieldsWithStep(){const e={};for(const t of yJ){const n=this.childModel.component.scales[t];if(n&&!n.merged){const r=n.get("type"),i=n.get("range");if(YK(r)&&aZ(i)){const n=b7(x7(this.childModel,t));n?e[t]=n:nK(OZ(t))}}}return e}assembleRowColumnHeaderData(e,t,n){const r={row:"y",column:"x",facet:void 0}[e],i=[],o=[],a=[];r&&n&&n[r]&&(t?(i.push(`distinct_${n[r]}`),o.push("max")):(i.push(n[r]),o.push("distinct")),a.push(`distinct_${n[r]}`));const{sortField:s,sortIndexField:l}=this[e];if(s){const{op:e=e0,field:t}=s;i.push(t),o.push(e),a.push(O0(s,{forAs:!0}))}else l&&(i.push(l),o.push("max"),a.push(l));return{name:this[e].name,source:null!=t?t:this.data,transform:[Object.assign({type:"aggregate",groupby:this[e].fields},i.length?{fields:i,ops:o,as:a}:{})]}}assembleFacetHeaderData(e){var t,n;const{columns:r}=this.model.layout,{layoutHeaders:i}=this.model.component,o=[],a={};for(const e of L4){for(const r of z4){const o=null!==(t=i[e]&&i[e][r])&&void 0!==t?t:[];for(const t of o)if((null===(n=t.axes)||void 0===n?void 0:n.length)>0){a[e]=!0;break}}if(a[e]){const t=`length(data("${this.facet.name}"))`,n="row"===e?r?{signal:`ceil(${t} / ${r})`}:1:r?{signal:`min(${t}, ${r})`}:{signal:t};o.push({name:`${this.facet.name}_${e}`,transform:[{type:"sequence",start:0,stop:n}]})}}const{row:s,column:l}=a;return(s||l)&&o.unshift(this.assembleRowColumnHeaderData("facet",null,e)),o}assemble(){var e,t;const n=[];let r=null;const i=this.getChildIndependentFieldsWithStep(),{column:o,row:a,facet:s}=this;if(o&&a&&(i.x||i.y)){r=`cross_${this.column.name}_${this.row.name}`;const o=[].concat(null!==(e=i.x)&&void 0!==e?e:[],null!==(t=i.y)&&void 0!==t?t:[]),a=o.map((()=>"distinct"));n.push({name:r,source:this.data,transform:[{type:"aggregate",groupby:this.fields,fields:o,ops:a}]})}for(const e of[QX,KX])this[e]&&n.push(this.assembleRowColumnHeaderData(e,r,i));if(s){const e=this.assembleFacetHeaderData(i);e&&n.push(...e)}return n}}function M8(e){return"'"===e[0]&&"'"===e[e.length-1]||'"'===e[0]&&'"'===e[e.length-1]?e.slice(1,-1):e}function O8(e){const t={};return sX(e.filter,(e=>{var n;if(CK(e)){let r=null;yK(e)?r=fZ(e.equal):xK(e)?r=fZ(e.lte):bK(e)?r=fZ(e.lt):wK(e)?r=fZ(e.gt):_K(e)?r=fZ(e.gte):kK(e)?r=e.range[0]:EK(e)&&(r=(null!==(n=e.oneOf)&&void 0!==n?n:e.in)[0]),r&&(rK(r)?t[e.field]="date":XG(r)?t[e.field]="number":YG(r)&&(t[e.field]="string")),e.timeUnit&&(t[e.field]="date")}})),t}class F8 extends Q3{constructor(e,t){super(e),this._parse=t}clone(){return new F8(null,uX(this._parse))}hash(){return`Parse ${pX(this._parse)}`}static makeExplicit(e,t,n){var r;let i={};const o=t.data;return!I3(o)&&(null===(r=null==o?void 0:o.format)||void 0===r?void 0:r.parse)&&(i=o.format.parse),this.makeWithAncestors(e,i,{},n)}static makeWithAncestors(e,t,n,r){for(const e of AX(n)){const t=r.getWithExplicit(e);void 0!==t.value&&(t.explicit||t.value===n[e]||"derived"===t.value||"flatten"===n[e]?delete n[e]:nK(BZ(e,n[e],t.value)))}for(const e of AX(t)){const n=r.get(e);void 0!==n&&(n===t[e]?delete t[e]:nK(BZ(e,t[e],n)))}const i=new C3(t,n);r.copyAll(i);const o={};for(const e of AX(i.combine())){const t=i.get(e);null!==t&&(o[e]=t)}return 0===AX(o).length||r.parseNothing?null:new F8(e,o)}get parse(){return this._parse}merge(e){this._parse=Object.assign(Object.assign({},this._parse),e.parse),e.remove()}assembleFormatParse(){const e={};for(const t of AX(this._parse)){const n=this._parse[t];1===HX(t)&&(e[t]=n)}return e}producedFields(){return new Set(AX(this._parse))}dependentFields(){return new Set(AX(this._parse))}assembleTransforms(e=!1){return AX(this._parse).filter((t=>!e||HX(t)>1)).map((e=>{const t=function(e,t){const n=BX(e);return"number"===t?`toNumber(${n})`:"boolean"===t?`toBoolean(${n})`:"string"===t?`toString(${n})`:"date"===t?`toDate(${n})`:"flatten"===t?n:t.startsWith("date:")?`timeParse(${n},'${M8(t.slice(5,t.length))}')`:t.startsWith("utc:")?`utcParse(${n},'${M8(t.slice(4,t.length))}')`:(nK(`Unrecognized parse "${t}".`),null)}(e,this._parse[e]);return t?{type:"formula",expr:t,as:$X(e)}:null})).filter((e=>null!==e))}}class P8 extends Q3{clone(){return new P8(null)}constructor(e){super(e)}dependentFields(){return new Set}producedFields(){return new Set([G1])}hash(){return"Identifier"}assemble(){return{type:"identifier",as:G1}}}class N8 extends Q3{constructor(e,t){super(e),this.params=t}clone(){return new N8(null,this.params)}dependentFields(){return new Set}producedFields(){}hash(){return`Graticule ${pX(this.params)}`}assemble(){return Object.assign({type:"graticule"},!0===this.params?{}:this.params)}}class I8 extends Q3{constructor(e,t){super(e),this.params=t}clone(){return new I8(null,this.params)}dependentFields(){return new Set}producedFields(){var e;return new Set([null!==(e=this.params.as)&&void 0!==e?e:"data"])}hash(){return`Hash ${pX(this.params)}`}assemble(){return Object.assign({type:"sequence"},this.params)}}class B8 extends Q3{constructor(e){let t;if(super(null),null!=e||(e={name:"source"}),I3(e)||(t=e.format?Object.assign({},dX(e.format,["parse"])):{}),P3(e))this._data={values:e.values};else if(F3(e)){if(this._data={url:e.url},!t.type){let n=/(?:\.([^.]+))?$/.exec(e.url)[1];gX(["json","csv","tsv","dsv","topojson"],n)||(n="json"),t.type=n}}else j3(e)?this._data={values:[{type:"Sphere"}]}:(N3(e)||I3(e))&&(this._data={});this._generator=I3(e),e.name&&(this._name=e.name),t&&!DX(t)&&(this._data.format=t)}dependentFields(){return new Set}producedFields(){}get data(){return this._data}hasName(){return!!this._name}get isGenerator(){return this._generator}get dataName(){return this._name}set dataName(e){this._name=e}set parent(e){throw new Error("Source nodes have to be roots.")}remove(){throw new Error("Source nodes are roots and cannot be removed.")}hash(){throw new Error("Cannot hash sources")}assemble(){return Object.assign(Object.assign({name:this._name},this._data),{transform:[]})}}var j8,L8=function(e,t,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(e,n):i?i.value=n:t.set(e,n),n};function z8(e){return e instanceof B8||e instanceof N8||e instanceof I8}class R8{constructor(){j8.set(this,void 0),L8(this,j8,!1,"f")}setModified(){L8(this,j8,!0,"f")}get modifiedFlag(){return function(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)}(this,j8,"f")}}j8=new WeakMap;class $8 extends R8{getNodeDepths(e,t,n){n.set(e,t);for(const r of e.children)this.getNodeDepths(r,t+1,n);return n}optimize(e){const t=[...this.getNodeDepths(e,0,new Map).entries()].sort(((e,t)=>t[1]-e[1]));for(const e of t)this.run(e[0]);return this.modifiedFlag}}class H8 extends R8{optimize(e){this.run(e);for(const t of e.children)this.optimize(t);return this.modifiedFlag}}class U8 extends H8{mergeNodes(e,t){const n=t.shift();for(const r of t)e.removeChild(r),r.parent=n,r.remove()}run(e){const t=e.children.map((e=>e.hash())),n={};for(let r=0;r1&&(this.setModified(),this.mergeNodes(e,n[t]))}}class q8 extends H8{constructor(e){super(),this.requiresSelectionId=e&&h6(e)}run(e){e instanceof P8&&(this.requiresSelectionId&&(z8(e.parent)||e.parent instanceof A8||e.parent instanceof F8)||(this.setModified(),e.remove()))}}class W8 extends R8{optimize(e){return this.run(e,new Set),this.modifiedFlag}run(e,t){let n=new Set;e instanceof n5&&(n=e.producedFields(),EX(n,t)&&(this.setModified(),e.removeFormulas(t),0===e.producedFields.length&&e.remove()));for(const r of e.children)this.run(r,new Set([...t,...n]))}}class V8 extends H8{constructor(){super()}run(e){e instanceof e5&&!e.isRequired()&&(this.setModified(),e.remove())}}class G8 extends $8{run(e){if(!(z8(e)||e.numChildren()>1))for(const t of e.children)if(t instanceof F8)if(e instanceof F8)this.setModified(),e.merge(t);else{if(SX(e.producedFields(),t.dependentFields()))continue;this.setModified(),t.swapWithParent()}}}class X8 extends $8{run(e){const t=[...e.children],n=e.children.filter((e=>e instanceof F8));if(e.numChildren()>1&&n.length>=1){const r={},i=new Set;for(const e of n){const t=e.parse;for(const e of AX(t))e in r?r[e]!==t[e]&&i.add(e):r[e]=t[e]}for(const e of i)delete r[e];if(!DX(r)){this.setModified();const n=new F8(e,r);for(const i of t){if(i instanceof F8)for(const e of AX(r))delete i.parse[e];e.removeChild(i),i.parent=n,i instanceof F8&&0===AX(i.parse).length&&i.remove()}}}}}class Y8 extends $8{run(e){e instanceof e5||e.numChildren()>0||e instanceof T8||e instanceof B8||(this.setModified(),e.remove())}}class J8 extends $8{run(e){const t=e.children.filter((e=>e instanceof n5)),n=t.pop();for(const e of t)this.setModified(),n.merge(e)}}class Z8 extends $8{run(e){const t=e.children.filter((e=>e instanceof A8)),n={};for(const e of t){const t=pX(e.groupBy);t in n||(n[t]=[]),n[t].push(e)}for(const t of AX(n)){const r=n[t];if(r.length>1){const t=r.pop();for(const n of r)t.merge(n)&&(e.removeChild(n),n.parent=t,n.remove(),this.setModified())}}}}class K8 extends $8{constructor(e){super(),this.model=e}run(e){const t=!(z8(e)||e instanceof v4||e instanceof F8||e instanceof P8),n=[],r=[];for(const i of e.children)i instanceof D8&&(t&&!SX(e.producedFields(),i.dependentFields())?n.push(i):r.push(i));if(n.length>0){const t=n.pop();for(const e of n)t.merge(e,this.model.renameSignal.bind(this.model));this.setModified(),e instanceof D8?e.merge(t,this.model.renameSignal.bind(this.model)):t.swapWithParent()}if(r.length>1){const e=r.pop();for(const t of r)e.merge(t,this.model.renameSignal.bind(this.model));this.setModified()}}}class Q8 extends $8{run(e){const t=[...e.children];if(!vX(t,(e=>e instanceof e5))||e.numChildren()<=1)return;const n=[];let r;for(const i of t)if(i instanceof e5){let t=i;for(;1===t.numChildren();){const[e]=t.children;if(!(e instanceof e5))break;t=e}n.push(...t.children),r?(e.removeChild(i),i.parent=r.parent,r.parent.removeChild(r),r.parent=t,this.setModified()):r=t}else n.push(i);if(n.length){this.setModified();for(const e of n)e.parent.removeChild(e),e.parent=r}}}class e7 extends Q3{constructor(e,t){super(e),this.transform=t}clone(){return new e7(null,uX(this.transform))}addDimensions(e){this.transform.groupby=wX(this.transform.groupby.concat(e),(e=>e))}dependentFields(){const e=new Set;return this.transform.groupby&&this.transform.groupby.forEach(e.add,e),this.transform.joinaggregate.map((e=>e.field)).filter((e=>void 0!==e)).forEach(e.add,e),e}producedFields(){return new Set(this.transform.joinaggregate.map(this.getDefaultName))}getDefaultName(e){var t;return null!==(t=e.as)&&void 0!==t?t:O0(e)}hash(){return`JoinAggregateTransform ${pX(this.transform)}`}assemble(){const e=[],t=[],n=[];for(const r of this.transform.joinaggregate)t.push(r.op),n.push(this.getDefaultName(r)),e.push(void 0===r.field?null:r.field);const r=this.transform.groupby;return Object.assign({type:"joinaggregate",as:n,ops:t,fields:e},void 0!==r?{groupby:r}:{})}}class t7 extends Q3{constructor(e,t){super(e),this._stack=t}clone(){return new t7(null,uX(this._stack))}static makeFromTransform(e,t){const{stack:n,groupby:r,as:i,offset:o="zero"}=t,a=[],s=[];if(void 0!==t.sort)for(const e of t.sort)a.push(e.field),s.push(UX(e.order,"ascending"));const l={field:a,order:s};let c;return c=function(e){return LG(e)&&e.every((e=>YG(e)))&&e.length>1}(i)?i:YG(i)?[i,`${i}_end`]:[`${t.stack}_start`,`${t.stack}_end`],new t7(e,{stackField:n,groupby:r,offset:o,sort:l,facetby:[],as:c})}static makeFromEncoding(e,t){const n=t.stack,{encoding:r}=t;if(!n)return null;const{groupbyChannel:i,fieldChannel:o,offset:a,impute:s}=n;let l;i&&(l=R0(r[i]));const c=function(e){return e.stack.stackBy.reduce(((e,t)=>{const n=O0(t.fieldDef);return n&&e.push(n),e}),[])}(t),u=t.encoding.order;let h;return h=LG(u)||y0(u)?kZ(u):c.reduce(((e,t)=>(e.field.push(t),e.order.push("y"===o?"descending":"ascending"),e)),{field:[],order:[]}),new t7(e,{dimensionFieldDef:l,stackField:t.vgField(o),facetby:[],stackby:c,sort:h,offset:a,impute:s,as:[t.vgField(o,{suffix:"start",forAs:!0}),t.vgField(o,{suffix:"end",forAs:!0})]})}get stack(){return this._stack}addDimensions(e){this._stack.facetby.push(...e)}dependentFields(){const e=new Set;return e.add(this._stack.stackField),this.getGroupbyFields().forEach(e.add,e),this._stack.facetby.forEach(e.add,e),this._stack.sort.field.forEach(e.add,e),e}producedFields(){return new Set(this._stack.as)}hash(){return`Stack ${pX(this._stack)}`}getGroupbyFields(){const{dimensionFieldDef:e,impute:t,groupby:n}=this._stack;return e?e.bin?t?[O0(e,{binSuffix:"mid"})]:[O0(e,{}),O0(e,{binSuffix:"end"})]:[O0(e)]:null!=n?n:[]}assemble(){const e=[],{facetby:t,dimensionFieldDef:n,stackField:r,stackby:i,sort:o,offset:a,impute:s,as:l}=this._stack;if(s&&n){const{bandPosition:o=.5,bin:a}=n;a&&e.push({type:"formula",expr:`${o}*`+O0(n,{expr:"datum"})+`+${1-o}*`+O0(n,{expr:"datum",binSuffix:"end"}),as:O0(n,{binSuffix:"mid",forAs:!0})}),e.push({type:"impute",field:r,groupby:[...i,...t],key:O0(n,{binSuffix:"mid"}),method:"value",value:0})}return e.push({type:"stack",groupby:[...this.getGroupbyFields(),...t],field:r,sort:o,as:l,offset:a}),e}}class n7 extends Q3{constructor(e,t){super(e),this.transform=t}clone(){return new n7(null,uX(this.transform))}addDimensions(e){this.transform.groupby=wX(this.transform.groupby.concat(e),(e=>e))}dependentFields(){var e,t;const n=new Set;return(null!==(e=this.transform.groupby)&&void 0!==e?e:[]).forEach(n.add,n),(null!==(t=this.transform.sort)&&void 0!==t?t:[]).forEach((e=>n.add(e.field))),this.transform.window.map((e=>e.field)).filter((e=>void 0!==e)).forEach(n.add,n),n}producedFields(){return new Set(this.transform.window.map(this.getDefaultName))}getDefaultName(e){var t;return null!==(t=e.as)&&void 0!==t?t:O0(e)}hash(){return`WindowTransform ${pX(this.transform)}`}assemble(){var e;const t=[],n=[],r=[],i=[];for(const e of this.transform.window)n.push(e.op),r.push(this.getDefaultName(e)),i.push(void 0===e.param?null:e.param),t.push(void 0===e.field?null:e.field);const o=this.transform.frame,a=this.transform.groupby;if(o&&null===o[0]&&null===o[1]&&n.every((e=>qJ(e))))return Object.assign({type:"joinaggregate",as:r,ops:n,fields:t},void 0!==a?{groupby:a}:{});const s=[],l=[];if(void 0!==this.transform.sort)for(const t of this.transform.sort)s.push(t.field),l.push(null!==(e=t.order)&&void 0!==e?e:"ascending");const c={field:s,order:l},u=this.transform.ignorePeers;return Object.assign(Object.assign(Object.assign({type:"window",params:i,as:r,ops:n,fields:t,sort:c},void 0!==u?{ignorePeers:u}:{}),void 0!==a?{groupby:a}:{}),void 0!==o?{frame:o}:{})}}function r7(e){if(e instanceof T8)if(1!==e.numChildren()||e.children[0]instanceof e5){const n=e.model.component.data.main;i7(n);const r=(t=e,function e(n){if(!(n instanceof T8)){const r=n.clone();if(r instanceof e5){const e=o7+r.getSource();r.setSource(e),t.model.component.data.outputNodes[e]=r}else(r instanceof A8||r instanceof t7||r instanceof n7||r instanceof e7)&&r.addDimensions(t.fields);for(const t of n.children.flatMap(e))t.parent=r;return[r]}return n.children.flatMap(e)}),i=e.children.map(r).flat();for(const e of i)e.parent=n}else{const t=e.children[0];(t instanceof A8||t instanceof t7||t instanceof n7||t instanceof e7)&&t.addDimensions(e.fields),t.swapWithParent(),r7(e)}else e.children.map(r7);var t}function i7(e){if(e instanceof e5&&e.type===z3.Main&&1===e.numChildren()){const t=e.children[0];t instanceof T8||(t.swapWithParent(),i7(e))}}const o7="scale_";function a7(e){for(const t of e){for(const e of t.children)if(e.parent!==t)return!1;if(!a7(t.children))return!1}return!0}function s7(e,t){let n=!1;for(const r of t)n=e.optimize(r)||n;return n}function l7(e,t,n){let r=e.sources,i=!1;return i=s7(new V8,r)||i,i=s7(new q8(t),r)||i,r=r.filter((e=>e.numChildren()>0)),i=s7(new Y8,r)||i,r=r.filter((e=>e.numChildren()>0)),n||(i=s7(new G8,r)||i,i=s7(new K8(t),r)||i,i=s7(new W8,r)||i,i=s7(new X8,r)||i,i=s7(new Z8,r)||i,i=s7(new J8,r)||i,i=s7(new U8,r)||i,i=s7(new Q8,r)||i),e.sources=r,i}class c7{constructor(e){Object.defineProperty(this,"signal",{enumerable:!0,get:e})}static fromName(e,t){return new c7((()=>e(t)))}}function u7(e){R7(e)?function(e){const t=e.component.scales;for(const n of AX(t)){const r=h7(e,n);if(t[n].setWithExplicit("domains",r),m7(e,n),e.component.data.isFaceted){let t=e;for(;!$7(t)&&t.parent;)t=t.parent;if("shared"===t.component.resolve.scale[n])for(const e of r.value)sZ(e)&&(e.data=o7+e.data.replace(o7,""))}}}(e):function(e){for(const t of e.children)u7(t);const t=e.component.scales;for(const n of AX(t)){let r,i=null;for(const t of e.children){const e=t.component.scales[n];if(e){r=void 0===r?e.getWithExplicit("domains"):M3(r,e.getWithExplicit("domains"),"domains","scale",v7);const t=e.get("selectionExtent");i&&t&&i.param!==t.param&&nK("The same selection must be used to override scale domains in a layered view."),i=t}}t[n].setWithExplicit("domains",r),i&&t[n].set("selectionExtent",i,!0)}}(e)}function h7(e,t){const n=e.getScaleComponent(t).get("type"),{encoding:r}=e,i=function(e,t,n,r){if("unaggregated"===e){const{valid:e,reason:r}=g7(t,n);if(!e)return void nK(r)}else if(void 0===e&&r.useUnaggregatedDomain){const{valid:e}=g7(t,n);if(e)return"unaggregated"}return e}(e.scaleDomain(t),e.typedFieldDef(t),n,e.config.scale);return i!==e.scaleDomain(t)&&(e.specifiedScales[t]=Object.assign(Object.assign({},e.specifiedScales[t]),{domain:i})),"x"===t&&$0(r.x2)?$0(r.x)?M3(f7(n,i,e,"x"),f7(n,i,e,"x2"),"domain","scale",v7):f7(n,i,e,"x2"):"y"===t&&$0(r.y2)?$0(r.y)?M3(f7(n,i,e,"y"),f7(n,i,e,"y2"),"domain","scale",v7):f7(n,i,e,"y2"):f7(n,i,e,t)}function d7(e,t,n){var r;const i=null===(r=vK(n))||void 0===r?void 0:r.unit;return"temporal"===t||i?function(e,t,n){return e.map((e=>({signal:`{data: ${X0(e,{timeUnit:n,type:t})}}`})))}(e,t,i):[e]}function f7(e,t,n,r){const{encoding:i}=n,o=$0(i[r]),{type:a}=o,s=o.timeUnit;if(function(e){return e&&e.unionWith}(t)){const i=f7(e,void 0,n,r),o=d7(t.unionWith,a,s);return S3([...i.value,...o])}if(oZ(t))return S3([t]);if(t&&"unaggregated"!==t&&!QK(t))return S3(d7(t,a,s));const l=n.stack;if(l&&r===l.fieldChannel){if("normalize"===l.offset)return D3([[0,1]]);const e=n.requestDataName(z3.Main);return D3([{data:e,field:n.vgField(r,{suffix:"start"})},{data:e,field:n.vgField(r,{suffix:"end"})}])}const c=IJ(r)&&y0(o)?function(e,t,n){if(!YK(n))return;const r=e.fieldDef(t),i=r.sort;if(o0(i))return{op:"min",field:N4(r,t),order:"ascending"};const{stack:o}=e,a=o?[...o.groupbyField?[o.groupbyField]:[],...o.stackBy.map((e=>e.fieldDef.field))]:void 0;if(i0(i))return p7(i,o&&!gX(a,i.field));if(r0(i)){const{encoding:t,order:n}=i,r=e.fieldDef(t),{aggregate:s,field:l}=r,c=o&&!gX(a,l);if(HJ(s)||UJ(s))return p7({field:O0(r),order:n},c);if(qJ(s)||!s)return p7({op:s,field:l,order:n},c)}else{if("descending"===i)return{op:"min",field:e.vgField(t),order:"descending"};if(gX(["ascending",void 0],i))return!0}}(n,r,e):void 0;if(x0(o))return D3(d7([o.datum],a,s));const u=o;if("unaggregated"===t){const e=n.requestDataName(z3.Main),{field:t}=o;return D3([{data:e,field:O0({field:t,aggregate:"min"})},{data:e,field:O0({field:t,aggregate:"max"})}])}if(JJ(u.bin)){if(YK(e))return D3("bin-ordinal"===e?[]:[{data:OX(c)?n.requestDataName(z3.Main):n.requestDataName(z3.Raw),field:n.vgField(r,J0(u,r)?{binSuffix:"range"}:{}),sort:!0!==c&&zG(c)?c:{field:n.vgField(r,{}),op:"min"}}]);{const{bin:e}=u;if(JJ(e)){const t=C8(n,u.field,e);return D3([new c7((()=>{const e=n.getSignalName(t);return`[${e}.start, ${e}.stop]`}))])}return D3([{data:n.requestDataName(z3.Main),field:n.vgField(r,{})}])}}if(u.timeUnit&&gX(["time","utc"],e)&&p0(u,R7(n)?n.encoding[tJ(r)]:void 0,n.markDef,n.config)){const e=n.requestDataName(z3.Main);return D3([{data:e,field:n.vgField(r)},{data:e,field:n.vgField(r,{suffix:"end"})}])}return D3(c?[{data:OX(c)?n.requestDataName(z3.Main):n.requestDataName(z3.Raw),field:n.vgField(r),sort:c}]:[{data:n.requestDataName(z3.Main),field:n.vgField(r)}])}function p7(e,t){const{op:n,field:r,order:i}=e;return Object.assign(Object.assign({op:null!=n?n:t?"sum":e0},r?{field:zX(r)}:{}),i?{order:i}:{})}function m7(e,t){var n;const r=e.component.scales[t],i=e.specifiedScales[t].domain,o=null===(n=e.fieldDef(t))||void 0===n?void 0:n.bin,a=QK(i)&&i,s=KJ(o)&&QJ(o.extent)&&o.extent;(a||s)&&r.set("selectionExtent",null!=a?a:s,!0)}function g7(e,t){const{aggregate:n,type:r}=e;return n?YG(n)&&!XJ[n]?{valid:!1,reason:VZ(n)}:"quantitative"===r&&"log"===t?{valid:!1,reason:GZ(e)}:{valid:!0}:{valid:!1,reason:WZ(e)}}function v7(e,t,n,r){return e.explicit&&t.explicit&&nK(function(e,t,n,r){return`Conflicting ${t.toString()} property "${e.toString()}" (${fX(n)} and ${fX(r)}). Using the union of the two domains.`}(n,r,e.value,t.value)),{explicit:e.explicit,value:[...e.value,...t.value]}}function y7(e){const t=wX(e.map((e=>{if(sZ(e)){const{sort:t}=e;return function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{if(sZ(e)){const t=e.sort;return void 0===t||OX(t)||("op"in t&&"count"===t.op&&delete t.field,"ascending"===t.order&&delete t.order),t}})).filter((e=>void 0!==e)),pX);if(0===t.length)return;if(1===t.length){const t=e[0];if(sZ(t)&&n.length>0){let e=n[0];if(n.length>1)nK(JZ),e=!0;else if(zG(e)&&"field"in e){const n=e.field;t.field===n&&(e=!e.order||{order:e.order})}return Object.assign(Object.assign({},t),{sort:e})}return t}const r=wX(n.map((e=>OX(e)||!("op"in e)||YG(e.op)&&e.op in $J?e:(nK(function(e){return`Dropping sort property ${fX(e)} as unioned domains only support boolean or op "count", "min", and "max".`}(e)),!0))),pX);let i;1===r.length?i=r[0]:r.length>1&&(nK(JZ),i=!0);const o=wX(e.map((e=>sZ(e)?e.data:null)),(e=>e));return 1===o.length&&null!==o[0]?Object.assign({data:o[0],fields:t.map((e=>e.field))},i?{sort:i}:{}):Object.assign({fields:t},i?{sort:i}:{})}function b7(e){if(sZ(e)&&YG(e.field))return e.field;if(function(e){return!LG(e)&&"fields"in e&&!("data"in e)}(e)){let t;for(const n of e.fields)if(sZ(n)&&YG(n.field))if(t){if(t!==n.field)return nK("Detected faceted independent scales that union domain of multiple fields from different data sources. We will use the first field. The result view size may be incorrect."),t}else t=n.field;return nK("Detected faceted independent scales that union domain of the same fields from different source. We will assume that this is the same field from a different fork of the same data source. However, if this is not the case, the result view size may be incorrect."),t}if(function(e){return!LG(e)&&"fields"in e&&"data"in e}(e)){nK("Detected faceted independent scales that union domain of multiple fields from the same data source. We will use the first field. The result view size may be incorrect.");const t=e.fields[0];return YG(t)?t:void 0}}function x7(e,t){return y7(e.component.scales[t].get("domains").map((t=>(sZ(t)&&(t.data=e.lookupDataSource(t.data)),t))))}function w7(e){return U7(e)||H7(e)?e.children.reduce(((e,t)=>e.concat(w7(t))),_7(e)):_7(e)}function _7(e){return AX(e.component.scales).reduce(((t,n)=>{const r=e.component.scales[n];if(r.merged)return t;const i=r.combine(),{name:o,type:a,selectionExtent:s,domains:l,range:c,reverse:u}=i,h=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);ir[1]?`isValid(${i}) && reverse(${i})`:i}}(e,s,r,f):null;return t.push(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({name:o,type:a},f?{domain:f}:{}),p?{domainRaw:p}:{}),{range:d}),void 0!==u?{reverse:u}:{}),h)),t}),[])}class k7 extends C3{constructor(e,t){super({},{name:e}),this.merged=!1,this.setWithExplicit("type",t)}domainDefinitelyIncludesZero(){return!1!==this.get("zero")||vX(this.get("domains"),(e=>LG(e)&&2===e.length&&e[0]<=0&&e[1]>=0))}}const E7=["range","scheme"];function C7(e){return"x"===e?"width":"y"===e?"height":void 0}function S7(e,t){const n=e.fieldDef(t);if(null==n?void 0:n.bin){const{bin:r,field:i}=n,o=C7(t),a=e.getName(o);if(zG(r)&&r.binned&&void 0!==r.step)return new c7((()=>{const n=e.scaleName(t),i=`(domain("${n}")[1] - domain("${n}")[0]) / ${r.step}`;return`${e.getSignalName(a)} / (${i})`}));if(JJ(r)){const t=C8(e,i,r);return new c7((()=>{const n=e.getSignalName(t),r=`(${n}.stop - ${n}.start) / ${n}.step`;return`${e.getSignalName(a)} / (${r})`}))}}}function D7(e,t){const n=t.specifiedScales[e],{size:r}=t,i=t.getScaleComponent(e).get("type");for(const r of E7)if(void 0!==n[r]){const o=cQ(i,r),a=uQ(e,r);if(o)if(a)nK(a);else switch(r){case"range":{const r=n.range;if(LG(r)){if(bJ(e))return S3(r.map((e=>{if("width"===e||"height"===e){const n=t.getName(e),r=t.getSignalName.bind(t);return c7.fromName(r,n)}return e})))}else if(zG(r))return S3({data:t.requestDataName(z3.Main),field:r.field,sort:{op:"min",field:t.vgField(e)}});return S3(r)}case"scheme":return S3(A7(n[r]))}else nK(XZ(i,r,e))}if(e===tY||e===nY){const t=e===tY?"width":"height",n=r[t];if(r2(n)){if(YK(i))return S3({step:n.step});nK(YZ(t))}}const{rangeMin:o,rangeMax:a}=n,s=function(e,t){const{size:n,config:r,mark:i,encoding:o}=t,a=t.getSignalName.bind(t),{type:s}=$0(o[e]),l=t.getScaleComponent(e).get("type"),{domain:c,domainMid:u}=t.specifiedScales[e];switch(e){case tY:case nY:{if(gX(["point","band"],l))if(e!==tY||n.width){if(e===nY&&!n.height){const e=l2(r.view,"height");if(r2(e))return e}}else{const e=l2(r.view,"width");if(r2(e))return e}const i=C7(e),o=t.getName(i);return e===nY&&JK(l)?[c7.fromName(a,o),0]:[0,c7.fromName(a,o)]}case vY:{const o=T7(i,t.component.scales[e].get("zero"),r),a=function(e,t,n,r){const i={x:S7(n,"x"),y:S7(n,"y")};switch(e){case"bar":case"tick":{if(void 0!==r.scale.maxBandSize)return r.scale.maxBandSize;const e=O7(t,i,r.view);return XG(e)?e-1:new c7((()=>`${e.signal} - 1`))}case"line":case"trail":case"rule":return r.scale.maxStrokeWidth;case"text":return r.scale.maxFontSize;case"point":case"square":case"circle":{if(r.scale.maxSize)return r.scale.maxSize;const e=O7(t,i,r.view);return XG(e)?Math.pow(M7*e,2):new c7((()=>`pow(0.95 * ${e.signal}, 2)`))}}throw new Error($Z("size",e))}(i,n,t,r);return KK(l)?function(e,t,n){const r=()=>{const r=vZ(t),i=vZ(e),o=`(${r} - ${i}) / (${n} - 1)`;return`sequence(${i}, ${r} + ${o}, ${o})`};return oZ(t)?new c7(r):{signal:r()}}(o,a,function(e,t,n,r){switch(e){case"quantile":return t.scale.quantileCount;case"quantize":return t.scale.quantizeCount;case"threshold":return void 0!==n&&LG(n)?n.length+1:(nK(function(e){return`Domain for ${e} is required for threshold scale.`}(r)),3)}}(l,r,c,e)):[o,a]}case sY:return[0,2*Math.PI];case yY:return[0,360];case oY:return[0,new c7((()=>`min(${t.getSignalName("width")},${t.getSignalName("height")})/2`))];case _Y:return[r.scale.minStrokeWidth,r.scale.maxStrokeWidth];case kY:return[[1,0],[4,2],[2,1],[1,1],[1,2,4,2]];case gY:return"symbol";case fY:case pY:case mY:return"ordinal"===l?"nominal"===s?"category":"ordinal":void 0!==u?"diverging":"rect"===i||"geoshape"===i?"heatmap":"ramp";case bY:case xY:case wY:return[r.scale.minOpacity,r.scale.maxOpacity]}throw new Error(`Scale range undefined for channel ${e}`)}(e,t);return(void 0!==o||void 0!==a)&&cQ(i,"rangeMin")&&LG(s)&&2===s.length?S3([null!=o?o:s[0],null!=a?a:s[1]]):D3(s)}function A7(e){return function(e){return!YG(e)&&!!e.name}(e)?Object.assign({scheme:e.name},dX(e,["name"])):{scheme:e}}function T7(e,t,n){if(t)return oZ(t)?{signal:`${t.signal} ? 0 : ${T7(e,!1,n)}`}:0;switch(e){case"bar":case"tick":return n.scale.minBandSize;case"line":case"trail":case"rule":return n.scale.minStrokeWidth;case"text":return n.scale.minFontSize;case"point":case"square":case"circle":return n.scale.minSize}throw new Error($Z("size",e))}const M7=.95;function O7(e,t,n){const r=r2(e.width)?e.width.step:s2(n,"width"),i=r2(e.height)?e.height.step:s2(n,"height");return t.x||t.y?new c7((()=>`min(${[t.x?t.x.signal:r,t.y?t.y.signal:i].join(", ")})`)):Math.min(r,i)}function F7(e,t){R7(e)?function(e,t){const n=e.component.scales,{config:r,encoding:i,markDef:o,specifiedScales:a}=e;for(const s of AX(n)){const l=a[s],c=n[s],u=e.getScaleComponent(s),h=$0(i[s]),d=l[t],f=u.get("type"),p=u.get("padding"),m=u.get("paddingInner"),g=cQ(f,t),v=uQ(s,t);if(void 0!==d&&(g?v&&nK(v):nK(XZ(f,t,s))),g&&void 0===v)if(void 0!==d){const e=h.timeUnit,n=h.type;switch(t){case"domainMax":case"domainMin":rK(l[t])||"temporal"===n||e?c.set(t,{signal:X0(l[t],{type:n,timeUnit:e})},!0):c.set(t,l[t],!0);break;default:c.copyKeyFromObject(t,l)}}else{const n=t in P7?P7[t]({model:e,channel:s,fieldOrDatumDef:h,scaleType:f,scalePadding:p,scalePaddingInner:m,domain:l.domain,markDef:o,config:r}):r.scale[t];void 0!==n&&c.set(t,n,!1)}}}(e,t):I7(e,t)}const P7={bins:({model:e,fieldOrDatumDef:t})=>y0(t)?function(e,t){const n=t.bin;if(JJ(n)){const r=C8(e,t.field,n);return new c7((()=>e.getSignalName(r)))}if(ZJ(n)&&KJ(n)&&void 0!==n.step)return{step:n.step}}(e,t):void 0,interpolate:({channel:e,fieldOrDatumDef:t})=>function(e,t){if(gX([fY,pY,mY],e)&&"nominal"!==t)return"hcl"}(e,t.type),nice:({scaleType:e,channel:t,domain:n,fieldOrDatumDef:r})=>function(e,t,n,r){var i;if(!((null===(i=R0(r))||void 0===i?void 0:i.bin)||LG(n)||gX([jK,LK],e)))return t in vJ||void 0}(e,t,n,r),padding:({channel:e,scaleType:t,fieldOrDatumDef:n,markDef:r,config:i})=>function(e,t,n,r,i,o){if(e in vJ){if(ZK(t)){if(void 0!==n.continuousPadding)return n.continuousPadding;const{type:t,orient:a}=i;if("bar"===t&&(!y0(r)||!r.bin&&!r.timeUnit)&&("vertical"===a&&"x"===e||"horizontal"===a&&"y"===e))return o.continuousBandSize}if("point"===t)return n.pointPadding}}(e,t,i.scale,n,r,i.bar),paddingInner:({scalePadding:e,channel:t,markDef:n,config:r})=>function(e,t,n,r){if(void 0===e&&t in vJ){const{bandPaddingInner:e,barBandPaddingInner:t,rectBandPaddingInner:i}=r;return UX(e,"bar"===n?t:i)}}(e,t,n.type,r.scale),paddingOuter:({scalePadding:e,channel:t,scaleType:n,markDef:r,scalePaddingInner:i,config:o})=>function(e,t,n,r,i,o){if(void 0===e&&t in vJ&&"band"===n){const{bandPaddingOuter:e}=o;return UX(e,oZ(i)?{signal:`${i.signal}/2`}:i/2)}}(e,t,n,r.type,i,o.scale),reverse:({fieldOrDatumDef:e,scaleType:t,channel:n,config:r})=>function(e,t,n,r){return"x"===n&&void 0!==r.xReverse?JK(e)&&"descending"===t?oZ(r.xReverse)?{signal:`!${r.xReverse.signal}`}:!r.xReverse:r.xReverse:!(!JK(e)||"descending"!==t)||void 0}(t,y0(e)?e.sort:void 0,n,r.scale),zero:({channel:e,fieldOrDatumDef:t,domain:n,markDef:r,scaleType:i})=>function(e,t,n,r,i){if(n&&"unaggregated"!==n&&JK(i)){if(LG(n)){const e=n[0],t=n[n.length-1];if(e<=0&&t>=0)return!0}return!1}if("size"===e&&"quantitative"===t.type&&!KK(i))return!0;if((!y0(t)||!t.bin)&&gX([...yJ,...wJ],e)){const{orient:t,type:n}=r;return!gX(["bar","area","line","trail"],n)||!("horizontal"===t&&"y"===e||"vertical"===t&&"x"===e)}return!1}(e,t,n,r,i)};function N7(e){R7(e)?function(e){const t=e.component.scales;for(const n of NJ){const r=t[n];if(!r)continue;const i=D7(n,e);r.setWithExplicit("range",i)}}(e):I7(e,"range")}function I7(e,t){const n=e.component.scales;for(const n of e.children)"range"===t?N7(n):F7(n,t);for(const r of AX(n)){let i;for(const n of e.children){const e=n.component.scales[r];e&&(i=M3(i,e.getWithExplicit(t),t,"scale",A3(((e,n)=>"range"===t&&e.step&&n.step?e.step-n.step:0))))}n[r].setWithExplicit(t,i)}}function B7(e){R7(e)?e.component.scales=function(e){const{encoding:t,mark:n,markDef:r}=e;return NJ.reduce(((i,o)=>{const a=$0(t[o]);if(a&&n===CQ&&o===gY&&a.type===IK)return i;let s=a&&a.scale;if(a&&null!==s&&!1!==s){null!=s||(s={});const t=function(e,t,n,r){const i=function(e,t,n){var r;switch(t.type){case"nominal":case"ordinal":if(jY(e)||"discrete"===zJ(e))return"shape"===e&&"ordinal"===t.type&&nK(qZ(e,"ordinal")),"ordinal";if(e in vJ){if(gX(["rect","bar","image","rule"],n.type))return"band"}else if("arc"===n.type&&e in xJ)return"band";return PQ(n[nJ(e)])||D0(t)&&(null===(r=t.axis)||void 0===r?void 0:r.tickBand)?"band":"point";case"temporal":return jY(e)?"time":"discrete"===zJ(e)?(nK(qZ(e,"temporal")),"ordinal"):y0(t)&&t.timeUnit&&vK(t.timeUnit).utc?"utc":"time";case"quantitative":return jY(e)?y0(t)&&JJ(t.bin)?"bin-ordinal":"linear":"discrete"===zJ(e)?(nK(qZ(e,"quantitative")),"ordinal"):"linear";case"geojson":return}throw new Error(LZ(t.type))}(t,n,r),{type:o}=e;return IJ(t)?void 0!==o?function(e,t){if(!IJ(e))return!1;switch(e){case tY:case nY:case sY:case oY:return ZK(t)||gX(["band","point"],t);case vY:case _Y:case bY:case xY:case wY:case yY:return ZK(t)||KK(t)||gX(["band","point","ordinal"],t);case fY:case pY:case mY:return"band"!==t;case kY:case gY:return"ordinal"===t||KK(t)}}(t,o)?y0(n)&&(a=o,s=n.type,!(gX([FK,NK],s)?void 0===a||YK(a):s===PK?gX([jK,LK,void 0],a):s!==OK||gX(["log","pow","sqrt","symlog","quantile","quantize","threshold",BK,void 0],a)))?(nK(function(e,t){return`FieldDef does not work with "${e}" scale. We are using "${t}" scale instead.`}(o,i)),i):o:(nK(function(e,t,n){return`Channel "${e}" does not work with "${t}" scale. We are using "${n}" scale instead.`}(t,o,i)),i):i:null;var a,s}(s,o,a,r);i[o]=new k7(e.scaleName(`${o}`,!0),{value:t,explicit:s.type===t})}return i}),{})}(e):e.component.scales=function(e){var t,n;const r=e.component.scales={},i={},o=e.component.resolve;for(const r of e.children){B7(r);for(const a of AX(r.component.scales))if(null!==(t=(n=o.scale)[a])&&void 0!==t||(n[a]=n8(a,e)),"shared"===o.scale[a]){const e=i[a],t=r.component.scales[a].getWithExplicit("type");e?RK(e.value,t.value)?i[a]=M3(e,t,"type","scale",j7):(o.scale[a]="independent",delete i[a]):i[a]=t}}for(const t of AX(i)){const n=e.scaleName(t,!0),o=i[t];r[t]=new k7(n,o);for(const r of e.children){const e=r.component.scales[t];e&&(r.renameScale(e.get("name"),n),e.merged=!0)}}return r}(e)}const j7=A3(((e,t)=>HK(e)-HK(t)));var L7=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{var t,n,r;return(null===(t=e.from)||void 0===t?void 0:t.data)&&(e.from.data=this.lookupDataSource(e.from.data)),(null===(r=null===(n=e.from)||void 0===n?void 0:n.facet)||void 0===r?void 0:r.data)&&(e.from.facet.data=this.lookupDataSource(e.from.facet.data)),e},this.parent=n,this.config=i,this.view=nZ(a),this.name=null!==(s=e.name)&&void 0!==s?s:r,this.title=iZ(e.title)?{text:e.title}:e.title?nZ(e.title):void 0,this.scaleNameMap=n?n.scaleNameMap:new z7,this.projectionNameMap=n?n.projectionNameMap:new z7,this.signalNameMap=n?n.signalNameMap:new z7,this.data=e.data,this.description=e.description,this.transforms=(null!==(l=e.transform)&&void 0!==l?l:[]).map((e=>V2(e)?{filter:lX(e.filter,TK)}:e)),this.layout="layer"===t||"unit"===t?{}:function(e,t,n){var r,i;const o=n[t],a={},{spacing:s,columns:l}=o;void 0!==s&&(a.spacing=s),void 0!==l&&(l0(e)&&!a0(e.facet)||e2(e))&&(a.columns=l),t2(e)&&(a.columns=1);for(const t of o2)if(void 0!==e[t])if("spacing"===t){const n=e[t];a[t]=XG(n)?n:{row:null!==(r=n.row)&&void 0!==r?r:s,column:null!==(i=n.column)&&void 0!==i?i:s}}else a[t]=e[t];return a}(e,t,i),this.component={data:{sources:n?n.component.data.sources:[],outputNodes:n?n.component.data.outputNodes:{},outputNodeRefCounts:n?n.component.data.outputNodeRefCounts:{},isFaceted:l0(e)||n&&n.component.data.isFaceted&&void 0===e.data},layoutSize:new C3,layoutHeaders:{row:{},column:{},facet:{}},mark:null,resolve:Object.assign({scale:{},axis:{},legend:{}},o?uX(o):{}),selection:null,scales:null,projection:null,axes:{},legends:{}}}get width(){return this.getSizeSignalRef("width")}get height(){return this.getSizeSignalRef("height")}parse(){this.parseScale(),this.parseLayoutSize(),this.renameTopLevelLayoutSizeSignal(),this.parseSelections(),this.parseProjection(),this.parseData(),this.parseAxesAndHeaders(),this.parseLegends(),this.parseMarkGroup()}parseScale(){!function(e,{ignoreRange:t}={}){B7(e),u7(e);for(const t of lQ)F7(e,t);t||N7(e)}(this)}parseProjection(){k8(this)}renameTopLevelLayoutSizeSignal(){"width"!==this.getName("width")&&this.renameSignal(this.getName("width"),"width"),"height"!==this.getName("height")&&this.renameSignal(this.getName("height"),"height")}parseLegends(){m8(this)}assembleEncodeFromView(e){const{style:t}=e,n=L7(e,["style"]),r={};for(const e of AX(n)){const t=n[e];void 0!==t&&(r[e]=mZ(t))}return r}assembleGroupEncodeEntry(e){let t={};return this.view&&(t=this.assembleEncodeFromView(this.view)),e||(this.description&&(t.description=mZ(this.description)),"unit"!==this.type&&"layer"!==this.type)?DX(t)?void 0:t:Object.assign({width:this.getSizeSignalRef("width"),height:this.getSizeSignalRef("height")},null!=t?t:{})}assembleLayout(){if(!this.layout)return;const e=this.layout,{spacing:t}=e,n=L7(e,["spacing"]),{component:r,config:i}=this,o=function(e,t){const n={};for(const r of zY){const i=e[r];if(null==i?void 0:i.facetFieldDef){const{titleAnchor:e,titleOrient:o}=j4(["titleAnchor","titleOrient"],i.facetFieldDef.header,t,r),a=I4(r,o),s=X4(e,a);void 0!==s&&(n[a]=s)}}return DX(n)?void 0:n}(r.layoutHeaders,i);return Object.assign(Object.assign(Object.assign({padding:t},this.assembleDefaultLayout()),n),o?{titleBand:o}:{})}assembleDefaultLayout(){return{}}assembleHeaderMarks(){const{layoutHeaders:e}=this.component;let t=[];for(const n of zY)e[n].title&&t.push(R4(this,n));for(const e of L4)t=t.concat(U4(this,e));return t}assembleAxes(){return function(e,t){const{x:n=[],y:r=[]}=e;return[...n.map((e=>k4(e,"grid",t))),...r.map((e=>k4(e,"grid",t))),...n.map((e=>k4(e,"main",t))),...r.map((e=>k4(e,"main",t)))].filter((e=>e))}(this.component.axes,this.config)}assembleLegends(){return b8(this)}assembleProjections(){return U7(e=this)||H7(e)?function(e){return e.children.reduce(((e,t)=>e.concat(t.assembleProjections())),x8(e))}(e):x8(e);var e}assembleTitle(){var e,t,n;const r=null!==(e=this.title)&&void 0!==e?e:{},{encoding:i}=r,o=L7(r,["encoding"]),a=Object.assign(Object.assign(Object.assign({},rZ(this.config.title).nonMarkTitleProperties),o),i?{encode:{update:i}}:{});if(a.text)return gX(["unit","layer"],this.type)?gX(["middle",void 0],a.anchor)&&(null!==(t=a.frame)&&void 0!==t||(a.frame="group")):null!==(n=a.anchor)&&void 0!==n||(a.anchor="start"),DX(a)?void 0:a}assembleGroup(e=[]){const t={};(e=e.concat(this.assembleSignals())).length>0&&(t.signals=e);const n=this.assembleLayout();n&&(t.layout=n),t.marks=[].concat(this.assembleHeaderMarks(),this.assembleMarks());const r=!this.parent||$7(this.parent)?w7(this):[];r.length>0&&(t.scales=r);const i=this.assembleAxes();i.length>0&&(t.axes=i);const o=this.assembleLegends();return o.length>0&&(t.legends=o),t}getName(e){return FX((this.name?`${this.name}_`:"")+e)}getDataName(e){return this.getName(z3[e].toLowerCase())}requestDataName(e){const t=this.getDataName(e),n=this.component.data.outputNodeRefCounts;return n[t]=(n[t]||0)+1,t}getSizeSignalRef(e){if($7(this.parent)){const t=_J(e8(e)),n=this.component.scales[t];if(n&&!n.merged){const e=n.get("type"),r=n.get("range");if(YK(e)&&aZ(r)){const e=n.get("name"),r=b7(x7(this,t));return r?{signal:Q4(e,n,O0({aggregate:"distinct",field:r},{expr:"datum"}))}:(nK(OZ(t)),null)}}}return{signal:this.signalNameMap.get(this.getName(e))}}lookupDataSource(e){const t=this.component.data.outputNodes[e];return t?t.getSource():e}getSignalName(e){return this.signalNameMap.get(e)}renameSignal(e,t){this.signalNameMap.rename(e,t)}renameScale(e,t){this.scaleNameMap.rename(e,t)}renameProjection(e,t){this.projectionNameMap.rename(e,t)}scaleName(e,t){return t?this.getName(e):JY(e)&&IJ(e)&&this.component.scales[e]||this.scaleNameMap.has(this.getName(e))?this.scaleNameMap.get(this.getName(e)):void 0}projectionName(e){return e?this.getName("projection"):this.component.projection&&!this.component.projection.merged||this.projectionNameMap.has(this.getName("projection"))?this.projectionNameMap.get(this.getName("projection")):void 0}getScaleComponent(e){if(!this.component.scales)throw new Error("getScaleComponent cannot be called before parseScale(). Make sure you have called parseScale or use parseUnitModelWithScale().");const t=this.component.scales[e];return t&&!t.merged?t:this.parent?this.parent.getScaleComponent(e):void 0}getSelectionComponent(e,t){let n=this.component.selection[e];if(!n&&this.parent&&(n=this.parent.getSelectionComponent(e,t)),!n)throw new Error(`Cannot find a selection named "${t}".`);return n}hasAxisOrientSignalRef(){var e,t;return(null===(e=this.component.axes.x)||void 0===e?void 0:e.some((e=>e.hasOrientSignalRef())))||(null===(t=this.component.axes.y)||void 0===t?void 0:t.some((e=>e.hasOrientSignalRef())))}}class W7 extends q7{vgField(e,t={}){const n=this.fieldDef(e);if(n)return O0(n,t)}reduceFieldDef(e,t){return function(e,t,n,r){return e?AX(e).reduce(((n,i)=>{const o=e[i];return LG(o)?o.reduce(((e,n)=>t.call(r,e,n,i)),n):t.call(r,n,o,i)}),n):n}(this.getMapping(),((t,n,r)=>{const i=R0(n);return i?e(t,i,r):t}),t)}forEachFieldDef(e,t){d1(this.getMapping(),((t,n)=>{const r=R0(t);r&&e(r,n)}),t)}}class V7 extends Q3{constructor(e,t){var n,r,i;super(e),this.transform=t,this.transform=uX(t);const o=null!==(n=this.transform.as)&&void 0!==n?n:[void 0,void 0];this.transform.as=[null!==(r=o[0])&&void 0!==r?r:"value",null!==(i=o[1])&&void 0!==i?i:"density"]}clone(){return new V7(null,uX(this.transform))}dependentFields(){var e;return new Set([this.transform.density,...null!==(e=this.transform.groupby)&&void 0!==e?e:[]])}producedFields(){return new Set(this.transform.as)}hash(){return`DensityTransform ${pX(this.transform)}`}assemble(){const e=this.transform,{density:t}=e,n=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{const o=IJ(i)&&t.getScaleComponent(i);return o&&JK(o.get("type"))&&"count"!==n.aggregate&&!SQ(r)&&(e[n.field]=n),e}),{});return AX(o).length?new G7(e,o):null}dependentFields(){return new Set(AX(this.filter))}producedFields(){return new Set}hash(){return`FilterInvalid ${pX(this.filter)}`}assemble(){const e=AX(this.filter).reduce(((e,t)=>{const n=this.filter[t],r=O0(n,{expr:"datum"});return null!==n&&("temporal"===n.type?e.push(`(isDate(${r}) || (isValid(${r}) && isFinite(+${r})))`):"quantitative"===n.type&&(e.push(`isValid(${r})`),e.push(`isFinite(+${r})`))),e}),[]);return e.length>0?{type:"filter",expr:e.join(" && ")}:null}}class X7 extends Q3{constructor(e,t){super(e),this.transform=t,this.transform=uX(t);const{flatten:n,as:r=[]}=this.transform;this.transform.as=n.map(((e,t)=>{var n;return null!==(n=r[t])&&void 0!==n?n:e}))}clone(){return new X7(this.parent,uX(this.transform))}dependentFields(){return new Set(this.transform.flatten)}producedFields(){return new Set(this.transform.as)}hash(){return`FlattenTransform ${pX(this.transform)}`}assemble(){const{flatten:e,as:t}=this.transform;return{type:"flatten",fields:e,as:t}}}class Y7 extends Q3{constructor(e,t){var n,r,i;super(e),this.transform=t,this.transform=uX(t);const o=null!==(n=this.transform.as)&&void 0!==n?n:[void 0,void 0];this.transform.as=[null!==(r=o[0])&&void 0!==r?r:"key",null!==(i=o[1])&&void 0!==i?i:"value"]}clone(){return new Y7(null,uX(this.transform))}dependentFields(){return new Set(this.transform.fold)}producedFields(){return new Set(this.transform.as)}hash(){return`FoldTransform ${pX(this.transform)}`}assemble(){const{fold:e,as:t}=this.transform;return{type:"fold",fields:e,as:t}}}class J7 extends Q3{constructor(e,t,n,r){super(e),this.fields=t,this.geojson=n,this.signal=r}clone(){return new J7(null,uX(this.fields),this.geojson,this.signal)}static parseAll(e,t){if(t.component.projection&&!t.component.projection.isFit)return e;let n=0;for(const r of[[uY,cY],[dY,hY]]){const i=r.map((e=>{const n=$0(t.encoding[e]);return y0(n)?n.field:x0(n)?{expr:`${n.datum}`}:C0(n)?{expr:`${n.value}`}:void 0}));(i[0]||i[1])&&(e=new J7(e,i,null,t.getName("geojson_"+n++)))}if(t.channelHasField(gY)){const r=t.typedFieldDef(gY);r.type===IK&&(e=new J7(e,null,r.field,t.getName("geojson_"+n++)))}return e}dependentFields(){var e;const t=(null!==(e=this.fields)&&void 0!==e?e:[]).filter(YG);return new Set([...this.geojson?[this.geojson]:[],...t])}producedFields(){return new Set}hash(){return`GeoJSON ${this.geojson} ${this.signal} ${pX(this.fields)}`}assemble(){return[...this.geojson?[{type:"filter",expr:`isValid(datum["${this.geojson}"])`}]:[],Object.assign(Object.assign(Object.assign({type:"geojson"},this.fields?{fields:this.fields}:{}),this.geojson?{geojson:this.geojson}:{}),{signal:this.signal})]}}class Z7 extends Q3{constructor(e,t,n,r){super(e),this.projection=t,this.fields=n,this.as=r}clone(){return new Z7(null,this.projection,uX(this.fields),uX(this.as))}static parseAll(e,t){if(!t.projectionName())return e;for(const n of[[uY,cY],[dY,hY]]){const r=n.map((e=>{const n=$0(t.encoding[e]);return y0(n)?n.field:x0(n)?{expr:`${n.datum}`}:C0(n)?{expr:`${n.value}`}:void 0})),i=n[0]===dY?"2":"";(r[0]||r[1])&&(e=new Z7(e,t.projectionName(),r,[t.getName(`x${i}`),t.getName(`y${i}`)]))}return e}dependentFields(){return new Set(this.fields.filter(YG))}producedFields(){return new Set(this.as)}hash(){return`Geopoint ${this.projection} ${pX(this.fields)} ${pX(this.as)}`}assemble(){return{type:"geopoint",projection:this.projection,fields:this.fields,as:this.as}}}class K7 extends Q3{constructor(e,t){super(e),this.transform=t}clone(){return new K7(null,uX(this.transform))}dependentFields(){var e;return new Set([this.transform.impute,this.transform.key,...null!==(e=this.transform.groupby)&&void 0!==e?e:[]])}producedFields(){return new Set([this.transform.impute])}processSequence(e){const{start:t=0,stop:n,step:r}=e;return{signal:`sequence(${[t,n,...r?[r]:[]].join(",")})`}}static makeFromTransform(e,t){return new K7(e,t)}static makeFromEncoding(e,t){const n=t.encoding,r=n.x,i=n.y;if(y0(r)&&y0(i)){const o=r.impute?r:i.impute?i:void 0;if(void 0===o)return;const a=r.impute?i:i.impute?r:void 0,{method:s,value:l,frame:c,keyvals:u}=o.impute,h=f1(t.mark,n);return new K7(e,Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({impute:o.field,key:a.field},s?{method:s}:{}),void 0!==l?{value:l}:{}),c?{frame:c}:{}),void 0!==u?{keyvals:u}:{}),h.length?{groupby:h}:{}))}return null}hash(){return`Impute ${pX(this.transform)}`}assemble(){const{impute:e,key:t,keyvals:n,method:r,groupby:i,value:o,frame:a=[null,null]}=this.transform,s=Object.assign(Object.assign(Object.assign(Object.assign({type:"impute",field:e,key:t},n?{keyvals:G2(n)?this.processSequence(n):n}:{}),{method:"value"}),i?{groupby:i}:{}),{value:r&&"value"!==r?null:o});return r&&"value"!==r?[s,Object.assign({type:"window",as:[`imputed_${e}_value`],ops:[r],fields:[e],frame:a,ignorePeers:!1},i?{groupby:i}:{}),{type:"formula",expr:`datum.${e} === null ? datum.imputed_${e}_value : datum.${e}`,as:e}]:[s]}}class Q7 extends Q3{constructor(e,t){var n,r,i;super(e),this.transform=t,this.transform=uX(t);const o=null!==(n=this.transform.as)&&void 0!==n?n:[void 0,void 0];this.transform.as=[null!==(r=o[0])&&void 0!==r?r:t.on,null!==(i=o[1])&&void 0!==i?i:t.loess]}clone(){return new Q7(null,uX(this.transform))}dependentFields(){var e;return new Set([this.transform.loess,this.transform.on,...null!==(e=this.transform.groupby)&&void 0!==e?e:[]])}producedFields(){return new Set(this.transform.as)}hash(){return`LoessTransform ${pX(this.transform)}`}assemble(){const e=this.transform,{loess:t,on:n}=e,r=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);ie))}producedFields(){}dependentFields(){var e;return new Set([this.transform.pivot,this.transform.value,...null!==(e=this.transform.groupby)&&void 0!==e?e:[]])}hash(){return`PivotTransform ${pX(this.transform)}`}assemble(){const{pivot:e,value:t,groupby:n,limit:r,op:i}=this.transform;return Object.assign(Object.assign(Object.assign({type:"pivot",field:e,value:t},void 0!==r?{limit:r}:{}),void 0!==i?{op:i}:{}),void 0!==n?{groupby:n}:{})}}class i9 extends Q3{constructor(e,t){super(e),this.transform=t}clone(){return new i9(null,uX(this.transform))}dependentFields(){return new Set}producedFields(){return new Set}hash(){return`SampleTransform ${pX(this.transform)}`}assemble(){return{type:"sample",size:this.transform.sample}}}function o9(e){let t=0;return function n(r,i){var o;if(r instanceof B8&&!r.isGenerator&&!F3(r.data)&&(e.push(i),i={name:null,source:i.name,transform:[]}),r instanceof F8&&(r.parent instanceof B8&&!i.source?(i.format=Object.assign(Object.assign({},null!==(o=i.format)&&void 0!==o?o:{}),{parse:r.assembleFormatParse()}),i.transform.push(...r.assembleTransforms(!0))):i.transform.push(...r.assembleTransforms())),r instanceof T8)return i.name||(i.name="data_"+t++),!i.source||i.transform.length>0?(e.push(i),r.data=i.name):r.data=i.source,void e.push(...r.assemble());switch((r instanceof N8||r instanceof I8||r instanceof G7||r instanceof v4||r instanceof P4||r instanceof Z7||r instanceof A8||r instanceof e9||r instanceof n7||r instanceof e7||r instanceof Y7||r instanceof X7||r instanceof V7||r instanceof Q7||r instanceof t9||r instanceof n9||r instanceof P8||r instanceof i9||r instanceof r9)&&i.transform.push(r.assemble()),(r instanceof D8||r instanceof n5||r instanceof K7||r instanceof t7||r instanceof J7)&&i.transform.push(...r.assemble()),r instanceof e5&&(i.source&&0===i.transform.length?r.setSource(i.source):r.parent instanceof e5?r.setSource(i.name):(i.name||(i.name="data_"+t++),r.setSource(i.name),1===r.numChildren()&&(e.push(i),i={name:null,source:i.name,transform:[]}))),r.numChildren()){case 0:r instanceof e5&&(!i.source||i.transform.length>0)&&e.push(i);break;case 1:n(r.children[0],i);break;default:{i.name||(i.name="data_"+t++);let o=i.name;!i.source||i.transform.length>0?e.push(i):o=i.source;for(const e of r.children)n(e,{name:null,source:o,transform:[]});break}}}}function a9(e){return"top"===e||"left"===e||oZ(e)?"header":"footer"}function s9(e,t){var n;const{facet:r,config:i,child:o,component:a}=e;if(e.channelHasField(t)){const s=r[t],l=B4("title",null,i,t);let c=B0(s,i,{allowDisabling:!0,includeDefault:void 0===l||!!l});o.component.layoutHeaders[t].title&&(c=LG(c)?c.join(", "):c,c+=` / ${o.component.layoutHeaders[t].title}`,o.component.layoutHeaders[t].title=null);const u=B4("labelOrient",s.header,i,t),h=null!==s.header&&UX(null===(n=s.header)||void 0===n?void 0:n.labels,i.header.labels,!0),d=gX(["bottom","right"],u)?"footer":"header";a.layoutHeaders[t]={title:null!==s.header?c:null,facetFieldDef:s,[d]:"facet"===t?[]:[l9(e,t,h)]}}}function l9(e,t,n){const r="row"===t?"height":"width";return{labels:n,sizeSignal:e.child.component.layoutSize.get(r)?e.child.getSizeSignalRef(r):void 0,axes:[]}}function c9(e,t){var n;const{child:r}=e;if(r.component.axes[t]){const{layoutHeaders:i,resolve:o}=e.component;if(o.axis[t]=r8(o,t),"shared"===o.axis[t]){const o="x"===t?"column":"row",a=i[o];for(const i of r.component.axes[t]){const t=a9(i.get("orient"));null!==(n=a[t])&&void 0!==n||(a[t]=[l9(e,o,!1)]);const r=k4(i,"main",e.config,{header:!0});r&&a[t][0].axes.push(r),i.mainExtracted=!0}}}}function u9(e){for(const t of e.children)t.parseLayoutSize()}function h9(e,t){var n;const r=e8(t),i=_J(r),o=e.component.resolve,a=e.component.layoutSize;let s;for(const t of e.children){const a=t.component.layoutSize.getWithExplicit(r),l=null!==(n=o.scale[i])&&void 0!==n?n:n8(i,e);if("independent"===l&&"step"===a.value){s=void 0;break}if(s){if("independent"===l&&s.value!==a.value){s=void 0;break}s=M3(s,a,r,"")}else s=a}if(s){for(const n of e.children)e.renameSignal(n.getName(r),e.getName(t)),n.component.layoutSize.set(r,"merged",!1);a.setWithExplicit(t,s)}else a.setWithExplicit(t,{explicit:!1,value:void 0})}function d9(e,t){const n="width"===t?"x":"y",r=e.config,i=e.getScaleComponent(n);if(i){const e=i.get("type"),n=i.get("range");if(YK(e)){const e=l2(r.view,t);return aZ(n)||r2(e)?"step":e}return a2(r.view,t)}if(e.hasProjection||"arc"===e.mark)return a2(r.view,t);{const e=l2(r.view,t);return r2(e)?e.step:e}}function f9(e,t,n){return O0(t,Object.assign({suffix:`by_${O0(e)}`},null!=n?n:{}))}class p9 extends W7{constructor(e,t,n,r){super(e,"facet",t,n,r,e.resolve),this.child=j9(e.spec,this,this.getName("child"),void 0,r),this.children=[this.child],this.facet=this.initFacet(e.facet)}initFacet(e){if(!a0(e))return{facet:this.initFacetFieldDef(e,"facet")};const t=AX(e),n={};for(const r of t){if(![KX,QX].includes(r)){nK($Z(r,"facet"));break}const t=e[r];if(void 0===t.field){nK(RZ(t,r));break}n[r]=this.initFacetFieldDef(t,r)}return n}initFacetFieldDef(e,t){const n=q0(e,t);return n.header?n.header=nZ(n.header):null===n.header&&(n.header=null),n}channelHasField(e){return!!this.facet[e]}fieldDef(e){return this.facet[e]}parseData(){this.component.data=g9(this),this.child.parseData()}parseLayoutSize(){u9(this)}parseSelections(){this.child.parseSelections(),this.component.selection=this.child.component.selection}parseMarkGroup(){this.child.parseMarkGroup()}parseAxesAndHeaders(){this.child.parseAxesAndHeaders(),function(e){for(const t of zY)s9(e,t);c9(e,"x"),c9(e,"y")}(this)}assembleSelectionTopLevelSignals(e){return this.child.assembleSelectionTopLevelSignals(e)}assembleSignals(){return this.child.assembleSignals(),[]}assembleSelectionData(e){return this.child.assembleSelectionData(e)}getHeaderLayoutMixins(){var e,t,n;const r={};for(const i of zY)for(const o of z4){const a=this.component.layoutHeaders[i],s=a[o],{facetFieldDef:l}=a;if(l){const t=B4("titleOrient",l.header,this.config,i);if(["right","bottom"].includes(t)){const n=I4(i,t);null!==(e=r.titleAnchor)&&void 0!==e||(r.titleAnchor={}),r.titleAnchor[n]="end"}}if(null==s?void 0:s[0]){const e="row"===i?"height":"width",s="header"===o?"headerBand":"footerBand";"facet"===i||this.child.component.layoutSize.get(e)||(null!==(t=r[s])&&void 0!==t||(r[s]={}),r[s][i]=.5),a.title&&(null!==(n=r.offset)&&void 0!==n||(r.offset={}),r.offset["row"===i?"rowTitle":"columnTitle"]=10)}}return r}assembleDefaultLayout(){const{column:e,row:t}=this.facet,n=e?this.columnDistinctSignal():t?1:void 0;let r="all";return(t||"independent"!==this.component.resolve.scale.x)&&(e||"independent"!==this.component.resolve.scale.y)||(r="none"),Object.assign(Object.assign(Object.assign({},this.getHeaderLayoutMixins()),n?{columns:n}:{}),{bounds:"full",align:r})}assembleLayoutSignals(){return this.child.assembleLayoutSignals()}columnDistinctSignal(){if(!(this.parent&&this.parent instanceof p9))return{signal:`length(data('${this.getName("column_domain")}'))`}}assembleGroupStyle(){}assembleGroup(e){return this.parent&&this.parent instanceof p9?Object.assign(Object.assign({},this.channelHasField("column")?{encode:{update:{columns:{field:O0(this.facet.column,{prefix:"distinct"})}}}}:{}),super.assembleGroup(e)):super.assembleGroup(e)}getCardinalityAggregateForChild(){const e=[],t=[],n=[];if(this.child instanceof p9){if(this.child.channelHasField("column")){const r=O0(this.child.facet.column);e.push(r),t.push("distinct"),n.push(`distinct_${r}`)}}else for(const r of yJ){const i=this.child.component.scales[r];if(i&&!i.merged){const o=i.get("type"),a=i.get("range");if(YK(o)&&aZ(a)){const i=b7(x7(this.child,r));i?(e.push(i),t.push("distinct"),n.push(`distinct_${i}`)):nK(OZ(r))}}}return{fields:e,ops:t,as:n}}assembleFacet(){const{name:e,data:t}=this.component.data.facetRoot,{row:n,column:r}=this.facet,{fields:i,ops:o,as:a}=this.getCardinalityAggregateForChild(),s=[];for(const e of zY){const t=this.facet[e];if(t){s.push(O0(t));const{bin:l,sort:c}=t;if(JJ(l)&&s.push(O0(t,{binSuffix:"end"})),i0(c)){const{field:e,op:s=e0}=c,l=f9(t,c);n&&r?(i.push(l),o.push("max"),a.push(l)):(i.push(e),o.push(s),a.push(l))}else if(LG(c)){const n=N4(t,e);i.push(n),o.push("max"),a.push(n)}}}const l=!!n&&!!r;return Object.assign({name:e,data:t,groupby:s},l||i.length>0?{aggregate:Object.assign(Object.assign({},l?{cross:l}:{}),i.length?{fields:i,ops:o,as:a}:{})}:{})}facetSortFields(e){const{facet:t}=this,n=t[e];return n?i0(n.sort)?[f9(n,n.sort,{expr:"datum"})]:LG(n.sort)?[N4(n,e,{expr:"datum"})]:[O0(n,{expr:"datum"})]:[]}facetSortOrder(e){const{facet:t}=this,n=t[e];if(n){const{sort:e}=n;return[(i0(e)?e.order:!LG(e)&&e)||"ascending"]}return[]}assembleLabelTitle(){var e;const{facet:t,config:n}=this;if(t.facet)return W4(t.facet,"facet",n);const r={row:["top","bottom"],column:["left","right"]};for(const i of L4)if(t[i]){const o=B4("labelOrient",null===(e=t[i])||void 0===e?void 0:e.header,n,i);if(r[i].includes(o))return W4(t[i],i,n)}}assembleMarks(){const{child:e}=this,t=function(e){const t=[],n=o9(t);for(const t of e.children)n(t,{source:e.name,name:null,transform:[]});return t}(this.component.data.facetRoot),n=e.assembleGroupEncodeEntry(!1),r=this.assembleLabelTitle()||e.assembleTitle(),i=e.assembleGroupStyle();return[Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({name:this.getName("cell"),type:"group"},r?{title:r}:{}),i?{style:i}:{}),{from:{facet:this.assembleFacet()},sort:{field:zY.map((e=>this.facetSortFields(e))).flat(),order:zY.map((e=>this.facetSortOrder(e))).flat()}}),t.length>0?{data:t}:{}),n?{encode:{update:n}}:{}),e.assembleGroup(function(e,t){if(e.component.selection&&AX(e.component.selection).length){const n=JG(e.getName("cell"));t.unshift({name:"facet",value:{},on:[{events:q3("mousemove","scope"),update:`isTuple(facet) ? facet : group(${n}).datum`}]})}return K3(t)}(this,[])))]}getMapping(){return this.facet}}function m9(e,t){var n,r,i,o;for(const a of t){const t=a.data;if(e.name&&a.hasName()&&e.name!==a.dataName)continue;const s=null===(n=e.format)||void 0===n?void 0:n.mesh,l=null===(r=t.format)||void 0===r?void 0:r.feature;if(s&&l)continue;const c=null===(i=e.format)||void 0===i?void 0:i.feature;if((c||l)&&c!==l)continue;const u=null===(o=t.format)||void 0===o?void 0:o.mesh;if(!s&&!u||s===u)if(P3(e)&&P3(t)){if(cX(e.values,t.values))return a}else if(F3(e)&&F3(t)){if(e.url===t.url)return a}else if(N3(e)&&e.name===a.dataName)return a}return null}function g9(e){var t,n,r,i,o,a,s,l,c,u;let h=function(e,t){if(e.data||!e.parent){if(null===e.data){const e=new B8({values:[]});return t.push(e),e}const n=m9(e.data,t);if(n)return I3(e.data)||(n.data.format=bX({},e.data.format,n.data.format)),!n.hasName()&&e.data.name&&(n.dataName=e.data.name),n;{const n=new B8(e.data);return t.push(n),n}}return e.parent.component.data.facetRoot?e.parent.component.data.facetRoot:e.parent.component.data.main}(e,e.component.data.sources);const{outputNodes:d,outputNodeRefCounts:f}=e.component.data,p=e.data,m=p&&(I3(p)||F3(p)||P3(p))||!e.parent?new O3:e.parent.component.data.ancestorParse.clone();I3(p)?(B3(p)?h=new I8(h,p.sequence):L3(p)&&(h=new N8(h,p.graticule)),m.parseNothing=!0):null===(null===(t=null==p?void 0:p.format)||void 0===t?void 0:t.parse)&&(m.parseNothing=!0),h=null!==(n=F8.makeExplicit(h,e,m))&&void 0!==n?n:h,h=new P8(h);const g=e.parent&&U7(e.parent);(R7(e)||$7(e))&&g&&(h=null!==(r=D8.makeFromEncoding(h,e))&&void 0!==r?r:h),e.transforms.length>0&&(h=function(e,t,n){var r,i;let o=0;for(const a of t.transforms){let s,l;if(i3(a))l=e=new P4(e,a),s="derived";else if(V2(a)){const i=O8(a);l=e=null!==(r=F8.makeWithAncestors(e,{},i,n))&&void 0!==r?r:e,e=new v4(e,t,a.filter)}else if(o3(a))l=e=D8.makeFromTransform(e,a,t),s="number";else if(s3(a))s="date",void 0===n.getWithExplicit(a.field).value&&(e=new F8(e,{[a.field]:s}),n.set(a.field,s,!1)),l=e=n5.makeFromTransform(e,a);else if(l3(a))l=e=A8.makeFromTransform(e,a),s="number",h6(t)&&(e=new P8(e));else if(X2(a))l=e=e9.make(e,t,a,o++),s="derived";else if(t3(a))l=e=new n7(e,a),s="number";else if(n3(a))l=e=new e7(e,a),s="number";else if(c3(a))l=e=t7.makeFromTransform(e,a),s="derived";else if(u3(a))l=e=new Y7(e,a),s="derived";else if(r3(a))l=e=new X7(e,a),s="derived";else if(Y2(a))l=e=new r9(e,a),s="derived";else if(e3(a))e=new i9(e,a);else if(a3(a))l=e=K7.makeFromTransform(e,a),s="derived";else if(J2(a))l=e=new V7(e,a),s="derived";else if(Z2(a))l=e=new t9(e,a),s="derived";else if(K2(a))l=e=new n9(e,a),s="derived";else{if(!Q2(a)){nK(`Ignoring an invalid transform: ${fX(a)}.`);continue}l=e=new Q7(e,a),s="derived"}if(l&&void 0!==s)for(const e of null!==(i=l.producedFields())&&void 0!==i?i:[])n.set(e,s,!1)}return e}(h,e,m));const v=function(e){const t={};if(R7(e)&&e.component.selection)for(const n of AX(e.component.selection)){const r=e.component.selection[n];for(const e of r.project.items)!e.channel&&HX(e.field)>1&&(t[e.field]="flatten")}return t}(e),y=function(e){const t={};function n(e){var n;G0(e)?t[e.field]="date":"quantitative"===e.type&&YG(n=e.aggregate)&&gX(["min","max"],n)?t[e.field]="number":HX(e.field)>1?e.field in t||(t[e.field]="flatten"):S0(e)&&i0(e.sort)&&HX(e.sort.field)>1&&(e.sort.field in t||(t[e.sort.field]="flatten"))}if((R7(e)||$7(e))&&e.forEachFieldDef(((t,r)=>{if(E0(t))n(t);else{const i=QY(r),o=e.fieldDef(i);n(Object.assign(Object.assign({},t),{type:o.type}))}})),R7(e)){const{mark:n,markDef:r,encoding:i}=e;if(SQ(n)&&!e.encoding.order){const e=i["horizontal"===r.orient?"y":"x"];y0(e)&&"quantitative"===e.type&&!(e.field in t)&&(t[e.field]="number")}}return t}(e);h=null!==(i=F8.makeWithAncestors(h,{},Object.assign(Object.assign({},v),y),m))&&void 0!==i?i:h,R7(e)&&(h=J7.parseAll(h,e),h=Z7.parseAll(h,e)),(R7(e)||$7(e))&&(g||(h=null!==(o=D8.makeFromEncoding(h,e))&&void 0!==o?o:h),h=null!==(a=n5.makeFromEncoding(h,e))&&void 0!==a?a:h,h=P4.parseAllForSortIndex(h,e));const b=e.getDataName(z3.Raw),x=new e5(h,b,z3.Raw,f);if(d[b]=x,h=x,R7(e)){const t=A8.makeFromEncoding(h,e);t&&(h=t,h6(e)&&(h=new P8(h))),h=null!==(s=K7.makeFromEncoding(h,e))&&void 0!==s?s:h,h=null!==(l=t7.makeFromEncoding(h,e))&&void 0!==l?l:h}R7(e)&&(h=null!==(c=G7.make(h,e))&&void 0!==c?c:h);const w=e.getDataName(z3.Main),_=new e5(h,w,z3.Main,f);d[w]=_,h=_,R7(e)&&function(e,t){var n;for(const[r,i]of MX(null!==(n=e.component.selection)&&void 0!==n?n:{})){const n=e.getName(`lookup_${r}`);e.component.data.outputNodes[n]=i.materialized=new e5(new v4(t,e,{param:r}),n,z3.Lookup,e.component.data.outputNodeRefCounts)}}(e,_);let k=null;if($7(e)){const t=e.getName("facet");h=null!==(u=function(e,t){const{row:n,column:r}=t;if(n&&r){let t=null;for(const i of[n,r])if(i0(i.sort)){const{field:n,op:r=e0}=i.sort;e=t=new e7(e,{joinaggregate:[{op:r,field:n,as:f9(i,i.sort,{forAs:!0})}],groupby:[O0(i)]})}return t}return null}(h,e.facet))&&void 0!==u?u:h,k=new T8(h,e,t,_.getSource()),d[t]=k}return Object.assign(Object.assign({},e.component.data),{outputNodes:d,outputNodeRefCounts:f,raw:x,main:_,facetRoot:k,ancestorParse:m})}class v9 extends q7{constructor(e,t,n,r){var i,o,a,s;super(e,"concat",t,n,r,e.resolve),"shared"!==(null===(o=null===(i=e.resolve)||void 0===i?void 0:i.axis)||void 0===o?void 0:o.x)&&"shared"!==(null===(s=null===(a=e.resolve)||void 0===a?void 0:a.axis)||void 0===s?void 0:s.y)||nK("Axes cannot be shared in concatenated or repeated views yet (https://github.com/vega/vega-lite/issues/2415)."),this.children=this.getChildren(e).map(((e,t)=>j9(e,this,this.getName(`concat_${t}`),void 0,r)))}parseData(){this.component.data=g9(this);for(const e of this.children)e.parseData()}parseSelections(){this.component.selection={};for(const e of this.children){e.parseSelections();for(const t of AX(e.component.selection))this.component.selection[t]=e.component.selection[t]}}parseMarkGroup(){for(const e of this.children)e.parseMarkGroup()}parseAxesAndHeaders(){for(const e of this.children)e.parseAxesAndHeaders()}getChildren(e){return t2(e)?e.vconcat:n2(e)?e.hconcat:e.concat}parseLayoutSize(){!function(e){u9(e);const t=1===e.layout.columns?"width":"childWidth",n=void 0===e.layout.columns?"height":"childHeight";h9(e,t),h9(e,n)}(this)}parseAxisGroup(){return null}assembleSelectionTopLevelSignals(e){return this.children.reduce(((e,t)=>t.assembleSelectionTopLevelSignals(e)),e)}assembleSignals(){return this.children.forEach((e=>e.assembleSignals())),[]}assembleLayoutSignals(){const e=J4(this);for(const t of this.children)e.push(...t.assembleLayoutSignals());return e}assembleSelectionData(e){return this.children.reduce(((e,t)=>t.assembleSelectionData(e)),e)}assembleMarks(){return this.children.map((e=>{const t=e.assembleTitle(),n=e.assembleGroupStyle(),r=e.assembleGroupEncodeEntry(!1);return Object.assign(Object.assign(Object.assign(Object.assign({type:"group",name:e.getName("group")},t?{title:t}:{}),n?{style:n}:{}),r?{encode:{update:r}}:{}),e.assembleGroup())}))}assembleGroupStyle(){}assembleDefaultLayout(){const e=this.layout.columns;return Object.assign(Object.assign({},null!=e?{columns:e}:{}),{bounds:"full",align:"each"})}}const y9=Object.assign(Object.assign({disable:1,gridScale:1,scale:1},t1),{labelExpr:1,encode:1}),b9=AX(y9);class x9 extends C3{constructor(e={},t={},n=!1){super(),this.explicit=e,this.implicit=t,this.mainExtracted=n}clone(){return new x9(uX(this.explicit),uX(this.implicit),this.mainExtracted)}hasAxisPart(e){return!("axis"!==e&&("grid"===e||"title"===e?!this.get(e):!1===(t=this.get(e))||null===t));var t}hasOrientSignalRef(){return oZ(this.explicit.orient)}}const w9={bottom:"top",top:"bottom",left:"right",right:"left"};function _9(e,t){if(!e)return t.map((e=>e.clone()));{if(e.length!==t.length)return;const n=e.length;for(let r=0;r{switch(n){case"title":return SZ(e,t);case"gridScale":return{explicit:e.explicit,value:UX(e.value,t.value)}}return T3(e,t,n,"axis")}));e.setWithExplicit(n,r)}return e}function E9(e,t,n,r,i){if("disable"===t)return void 0!==n;switch(n=n||{},t){case"titleAngle":case"labelAngle":return e===(oZ(n.labelAngle)?n.labelAngle:YX(n.labelAngle));case"values":return!!n.values;case"encode":return!!n.encoding||!!n.labelAngle;case"title":if(e===F4(r,i))return!0}return e===n[t]}const C9=new Set(["grid","translate","format","formatType","orient","labelExpr","tickCount","position","tickMinStep"]);function S9(e,t){var n,r,i;let o=t.axis(e);const a=new x9,s=$0(t.encoding[e]),{mark:l,config:c}=t,u=(null==o?void 0:o.orient)||(null===(n=c["x"===e?"axisX":"axisY"])||void 0===n?void 0:n.orient)||(null===(r=c.axis)||void 0===r?void 0:r.orient)||function(e){return"x"===e?"bottom":"left"}(e),h=t.getScaleComponent(e).get("type"),d=function(e,t,n,r){const i="band"===t?["axisDiscrete","axisBand"]:"point"===t?["axisDiscrete","axisPoint"]:function(e){return e in WK}(t)?["axisQuantitative"]:"time"===t||"utc"===t?["axisTemporal"]:[],o="x"===e?"axisX":"axisY",a=oZ(n)?"axisOrient":`axis${IX(n)}`,s=[...i,...i.map((e=>o+e.substr(4)))],l=["axis",a,o];return{vlOnlyAxisConfig:C4(s,r,e,n),vgAxisConfig:C4(l,r,e,n),axisConfigStyle:S4([...l,...s],r)}}(e,h,u,t.config),f=void 0!==o?!o:D4("disable",c.style,null==o?void 0:o.style,d).configValue;if(a.set("disable",f,void 0!==o),f)return a;o=o||{};const p=function(e,t,n,r,i){const o=null==t?void 0:t.labelAngle;if(void 0!==o)return oZ(o)?o:YX(o);{const{configValue:o}=D4("labelAngle",r,null==t?void 0:t.style,i);return void 0!==o?YX(o):n!==tY||!gX([NK,FK],e.type)||y0(e)&&e.timeUnit?void 0:270}}(s,o,e,c.style,d),m={fieldOrDatumDef:s,axis:o,channel:e,model:t,scaleType:h,orient:u,labelAngle:p,mark:l,config:c};for(const n of b9){const r=n in A4?A4[n](m):r1(n)?o[n]:void 0,i=void 0!==r,s=E9(r,n,o,t,e);if(i&&s)a.set(n,r,s);else{const{configValue:e,configFrom:t}=r1(n)&&"values"!==n?D4(n,c.style,o.style,d):{},l=void 0!==e;i&&!l?a.set(n,r,s):("vgAxisConfig"!==t||C9.has(n)&&l||K0(e)||oZ(e))&&a.set(n,e,!1)}}const g=null!==(i=o.encoding)&&void 0!==i?i:{},v=Q0.reduce(((n,r)=>{var i;if(!a.hasAxisPart(r))return n;const o=t8(null!==(i=g[r])&&void 0!==i?i:{},t),s="labels"===r?function(e,t,n){var r;const{encoding:i,config:o}=e,a=null!==(r=$0(i[t]))&&void 0!==r?r:$0(i[tJ(t)]),s=e.axis(t)||{},{format:l,formatType:c}=s;return UQ(c)?Object.assign({text:GQ({fieldOrDatumDef:a,field:"datum.value",format:l,formatType:c,config:o})},n):n}(t,e,o):o;return void 0===s||DX(s)||(n[r]={update:s}),n}),{});return DX(v)||a.set("encode",v,!!o.encoding||void 0!==o.labelAngle),a}function D9(e,t){const{config:n}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},R5(e,{align:"ignore",baseline:"ignore",color:"include",size:"include",orient:"ignore",theta:"ignore"})),D5("x",e,{defaultPos:"mid"})),D5("y",e,{defaultPos:"mid"})),E5("size",e)),E5("angle",e)),function(e,t,n){return n?{shape:{value:n}}:E5("shape",e)}(e,0,t))}const A9={vgMark:"rule",encodeEntry:e=>{const{markDef:t}=e,n=t.orient;return e.encoding.x||e.encoding.y||e.encoding.latitude||e.encoding.longitude?Object.assign(Object.assign(Object.assign(Object.assign({},R5(e,{align:"ignore",baseline:"ignore",color:"include",orient:"ignore",size:"ignore",theta:"ignore"})),F5("x",e,{defaultPos:"horizontal"===n?"zeroOrMax":"mid",defaultPos2:"zeroOrMin",range:"vertical"!==n})),F5("y",e,{defaultPos:"vertical"===n?"zeroOrMax":"mid",defaultPos2:"zeroOrMin",range:"horizontal"!==n})),E5("size",e,{vgChannel:"strokeWidth"})):{}}},T9={vgMark:"rect",encodeEntry:e=>{const{config:t,markDef:n}=e,r=n.orient,i="horizontal"===r?"width":"height",o="horizontal"===r?"height":"width";return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},R5(e,{align:"ignore",baseline:"ignore",color:"include",orient:"ignore",size:"ignore",theta:"ignore"})),D5("x",e,{defaultPos:"mid",vgChannel:"xc"})),D5("y",e,{defaultPos:"mid",vgChannel:"yc"})),E5("size",e,{defaultValue:M9(e),vgChannel:i})),{[o]:mZ(bZ("thickness",n,t))})}};function M9(e){var t;const{config:n,markDef:r}=e,{orient:i}=r,o="horizontal"===i?"width":"height",a=e.getScaleComponent("horizontal"===i?"x":"y"),s=null!==(t=bZ("size",r,n,{vgChannel:o}))&&void 0!==t?t:n.tick.bandSize;if(void 0!==s)return s;{const e=a?a.get("range"):void 0;return e&&aZ(e)&&XG(e.step)?3*e.step/4:3*s2(n.view,o)/4}}const O9={arc:{vgMark:"arc",encodeEntry:e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},R5(e,{align:"ignore",baseline:"ignore",color:"include",size:"ignore",orient:"ignore",theta:"ignore"})),D5("x",e,{defaultPos:"mid"})),D5("y",e,{defaultPos:"mid"})),I5(e,"radius","arc")),I5(e,"theta","arc"))},area:{vgMark:"area",encodeEntry:e=>Object.assign(Object.assign(Object.assign(Object.assign({},R5(e,{align:"ignore",baseline:"ignore",color:"include",orient:"include",size:"ignore",theta:"ignore"})),F5("x",e,{defaultPos:"zeroOrMin",defaultPos2:"zeroOrMin",range:"horizontal"===e.markDef.orient})),F5("y",e,{defaultPos:"zeroOrMin",defaultPos2:"zeroOrMin",range:"vertical"===e.markDef.orient})),H5(e))},bar:{vgMark:"rect",encodeEntry:e=>Object.assign(Object.assign(Object.assign({},R5(e,{align:"ignore",baseline:"ignore",color:"include",orient:"ignore",size:"ignore",theta:"ignore"})),I5(e,"x","bar")),I5(e,"y","bar"))},circle:{vgMark:"symbol",encodeEntry:e=>D9(e,"circle")},geoshape:{vgMark:"shape",encodeEntry:e=>Object.assign({},R5(e,{align:"ignore",baseline:"ignore",color:"include",size:"ignore",orient:"ignore",theta:"ignore"})),postEncodingTransform:e=>{const{encoding:t}=e,n=t.shape;return[Object.assign({type:"geoshape",projection:e.projectionName()},n&&y0(n)&&n.type===IK?{field:O0(n,{expr:"datum"})}:{})]}},image:{vgMark:"image",encodeEntry:e=>Object.assign(Object.assign(Object.assign(Object.assign({},R5(e,{align:"ignore",baseline:"ignore",color:"ignore",orient:"ignore",size:"ignore",theta:"ignore"})),I5(e,"x","image")),I5(e,"y","image")),b5(e,"url"))},line:{vgMark:"line",encodeEntry:e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},R5(e,{align:"ignore",baseline:"ignore",color:"include",size:"ignore",orient:"ignore",theta:"ignore"})),D5("x",e,{defaultPos:"mid"})),D5("y",e,{defaultPos:"mid"})),E5("size",e,{vgChannel:"strokeWidth"})),H5(e))},point:{vgMark:"symbol",encodeEntry:e=>D9(e)},rect:{vgMark:"rect",encodeEntry:e=>Object.assign(Object.assign(Object.assign({},R5(e,{align:"ignore",baseline:"ignore",color:"include",orient:"ignore",size:"ignore",theta:"ignore"})),I5(e,"x","rect")),I5(e,"y","rect"))},rule:A9,square:{vgMark:"symbol",encodeEntry:e=>D9(e,"square")},text:{vgMark:"text",encodeEntry:e=>{const{config:t,encoding:n}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},R5(e,{align:"include",baseline:"include",color:"include",size:"ignore",orient:"ignore",theta:"include"})),D5("x",e,{defaultPos:"mid"})),D5("y",e,{defaultPos:"mid"})),b5(e)),E5("size",e,{vgChannel:"fontSize"})),E5("angle",e)),U5("align",function(e,t,n){if(void 0===bZ("align",e,n))return"center"}(e.markDef,0,t))),U5("baseline",function(e,t,n){if(void 0===bZ("baseline",e,n))return"middle"}(e.markDef,0,t))),D5("radius",e,{defaultPos:null})),D5("theta",e,{defaultPos:null}))}},tick:T9,trail:{vgMark:"trail",encodeEntry:e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},R5(e,{align:"ignore",baseline:"ignore",color:"include",size:"include",orient:"ignore",theta:"ignore"})),D5("x",e,{defaultPos:"mid"})),D5("y",e,{defaultPos:"mid"})),E5("size",e)),H5(e))}};const F9="faceted_path_",P9="stack_group_";function N9(e,t={fromPrefix:""}){const{mark:n,markDef:r,encoding:i,config:o}=e,a=UX(r.clip,function(e){const t=e.getScaleComponent("x"),n=e.getScaleComponent("y");return!!(t&&t.get("selectionExtent")||n&&n.get("selectionExtent"))||void 0}(e),function(e){const t=e.component.projection;return!(!t||t.isFit)||void 0}(e)),s=yZ(r),l=i.key,c=function(e){var t;const{encoding:n,stack:r,mark:i,markDef:o,config:a}=e,s=n.order;if(!(!LG(s)&&C0(s)&&mX(s.value)||!s&&mX(bZ("order",o,a)))){if((LG(s)||y0(s))&&!r)return kZ(s,{expr:"datum"});if(SQ(i)){const r="horizontal"===o.orient?"y":"x",i=n[r];if(y0(i)){const n=i.sort;return LG(n)?{field:O0(i,{prefix:r,suffix:"sort_index",expr:"datum"})}:i0(n)?{field:O0({aggregate:l1(e.encoding)?n.op:void 0,field:n.field},{expr:"datum"})}:r0(n)?{field:O0(e.fieldDef(n.encoding),{expr:"datum"}),order:n.order}:null===n?void 0:{field:O0(i,{binSuffix:(null===(t=e.stack)||void 0===t?void 0:t.impute)?"mid":void 0,expr:"datum"})}}}}}(e),u=function(e){if(!e.component.selection)return null;const t=AX(e.component.selection).length;let n=t,r=e.parent;for(;r&&0===n;)n=AX(r.component.selection).length,r=r.parent;return n?{interactive:t>0||!!e.encoding.tooltip}:null}(e),h=bZ("aria",r,o),d=O9[n].postEncodingTransform?O9[n].postEncodingTransform(e):null;return[Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({name:e.getName("marks"),type:O9[n].vgMark},a?{clip:!0}:{}),s?{style:s}:{}),l?{key:l.field}:{}),c?{sort:c}:{}),u||{}),!1===h?{aria:h}:{}),{from:{data:t.fromPrefix+e.requestDataName(z3.Main)},encode:{update:O9[n].encodeEntry(e)}}),d?{transform:d}:{})]}class I9 extends W7{constructor(e,t,n,r={},i){var o;super(e,"unit",t,n,i,void 0,i2(e)?e.view:void 0),this.specifiedScales={},this.specifiedAxes={},this.specifiedLegends={},this.specifiedProjection={},this.selection=[],this.children=[];const a=TQ(e.mark)?Object.assign({},e.mark):{type:e.mark},s=a.type;void 0===a.filled&&(a.filled=function(e,t,{graticule:n}){if(n)return!1;const r=xZ("filled",e,t),i=e.type;return UX(r,i!==vQ&&i!==gQ&&i!==bQ)}(a,i,{graticule:e.data&&L3(e.data)}));const l=this.encoding=u1(e.encoding||{},s,a.filled,i);this.markDef=function(e,t,n){const r=nZ(e),i=bZ("orient",r,n);if(r.orient=function(e,t,n){switch(e){case vQ:case kQ:case EQ:case xQ:case yQ:case mQ:return}const{x:r,y:i,x2:o,y2:a}=t;switch(e){case pQ:if(y0(r)&&(ZJ(r.bin)||y0(i)&&i.aggregate&&!r.aggregate))return"vertical";if(y0(i)&&(ZJ(i.bin)||y0(r)&&r.aggregate&&!i.aggregate))return"horizontal";if(a||o){if(n)return n;if(!o&&(y0(r)&&r.type===OK&&!JJ(r.bin)||_0(r)))return"horizontal";if(!a&&(y0(i)&&i.type===OK&&!JJ(i.bin)||_0(i)))return"vertical"}case bQ:if(o&&(!y0(r)||!ZJ(r.bin))&&a&&(!y0(i)||!ZJ(i.bin)))return;case fQ:if(a)return y0(i)&&ZJ(i.bin)?"horizontal":"vertical";if(o)return y0(r)&&ZJ(r.bin)?"vertical":"horizontal";if(e===bQ){if(r&&!i)return"vertical";if(i&&!r)return"horizontal"}case gQ:case wQ:{const t=w0(r),o=w0(i);if(n)return n;if(t&&!o)return"tick"!==e?"horizontal":"vertical";if(!t&&o)return"tick"!==e?"vertical":"horizontal";if(t&&o){const t=r,n=i,o=t.type===PK,a=n.type===PK;return o&&!a?"tick"!==e?"vertical":"horizontal":!o&&a?"tick"!==e?"horizontal":"vertical":!t.aggregate&&n.aggregate?"tick"!==e?"vertical":"horizontal":t.aggregate&&!n.aggregate&&"tick"!==e?"horizontal":"vertical"}return}}return"vertical"}(r.type,t,i),void 0!==i&&i!==r.orient&&nK(`Specified orient "${r.orient}" overridden with "${i}".`),"bar"===r.type&&r.orient){const e=bZ("cornerRadiusEnd",r,n);if(void 0!==e){const n="horizontal"===r.orient&&t.x2||"vertical"===r.orient&&t.y2?["cornerRadius"]:NQ[r.orient];for(const t of n)r[t]=e;void 0!==r.cornerRadiusEnd&&delete r.cornerRadiusEnd}}return void 0===bZ("opacity",r,n)&&(r.opacity=function(e,t){if(gX([vQ,wQ,kQ,EQ],e)&&!l1(t))return.7}(r.type,t)),void 0===bZ("cursor",r,n)&&(r.cursor=function(e,t,n){return t.href||e.href||bZ("href",e,n)?"pointer":e.cursor}(r,t,n)),r}(a,l,i),this.size=function({encoding:e,size:t}){for(const n of yJ){const r=nJ(n);r2(t[r])&&w0(e[n])&&(delete t[r],nK(YZ(r)))}return t}({encoding:l,size:i2(e)?Object.assign(Object.assign(Object.assign({},r),e.width?{width:e.width}:{}),e.height?{height:e.height}:{}):r}),this.stack=A2(s,l),this.specifiedScales=this.initScales(s,l),this.specifiedAxes=this.initAxes(l),this.specifiedLegends=this.initLegends(l),this.specifiedProjection=e.projection,this.selection=(null!==(o=e.params)&&void 0!==o?o:[]).filter((e=>Z1(e)))}get hasProjection(){const{encoding:e}=this,t=this.mark===CQ,n=e&&IY.some((t=>k0(e[t])));return t||n}scaleDomain(e){const t=this.specifiedScales[e];return t?t.domain:void 0}axis(e){return this.specifiedAxes[e]}legend(e){return this.specifiedLegends[e]}initScales(e,t){return NJ.reduce(((e,n)=>{var r;const i=$0(t[n]);return i&&(e[n]=this.initScale(null!==(r=i.scale)&&void 0!==r?r:{})),e}),{})}initScale(e){const{domain:t,range:n}=e,r=nZ(e);return LG(t)&&(r.domain=t.map(fZ)),LG(n)&&(r.range=n.map(fZ)),r}initAxes(e){return yJ.reduce(((t,n)=>{const r=e[n];if(k0(r)||n===tY&&k0(e.x2)||n===nY&&k0(e.y2)){const e=k0(r)?r.axis:void 0;t[n]=e?this.initAxis(Object.assign({},e)):e}return t}),{})}initAxis(e){const t=AX(e),n={};for(const r of t){const t=e[r];n[r]=K0(t)?dZ(t):fZ(t)}return n}initLegends(e){return FJ.reduce(((t,n)=>{const r=$0(e[n]);if(r&&function(e){switch(e){case fY:case pY:case mY:case vY:case gY:case bY:case _Y:case kY:return!0;case xY:case wY:case yY:return!1}}(n)){const e=r.legend;t[n]=e?nZ(e):e}return t}),{})}parseData(){this.component.data=g9(this)}parseLayoutSize(){!function(e){const{size:t,component:n}=e;for(const r of yJ){const i=nJ(r);if(t[i]){const e=t[i];n.layoutSize.set(i,r2(e)?"step":e,!0)}else{const t=d9(e,i);n.layoutSize.set(i,t,!1)}}}(this)}parseSelections(){this.component.selection=function(e,t){var n;const r={},i=e.config.selection;if(!t||!t.length)return r;for(const o of t){const t=FX(o.name),a=o.select,s=YG(a)?a:a.type,l=zG(a)?uX(a):{type:s},c=i[s];for(const e in c)"fields"!==e&&"encodings"!==e&&("mark"===e&&(l[e]=Object.assign(Object.assign({},c[e]),l[e])),void 0!==l[e]&&!0!==l[e]||(l[e]=null!==(n=c[e])&&void 0!==n?n:l[e]));const u=r[t]=Object.assign(Object.assign({},l),{name:t,type:s,init:o.value,bind:o.bind,events:YG(l.on)?q3(l.on,"scope"):qG(uX(l.on))});for(const t of c6)t.defined(u)&&t.parse&&t.parse(e,u,o)}return r}(this,this.selection)}parseMarkGroup(){this.component.mark=function(e){if(gX([gQ,fQ,_Q],e.mark)){const t=f1(e.mark,e.encoding);if(t.length>0)return function(e,t){return[{name:e.getName("pathgroup"),type:"group",from:{facet:{name:F9+e.requestDataName(z3.Main),data:e.requestDataName(z3.Main),groupby:t}},encode:{update:{width:{field:{group:"width"}},height:{field:{group:"height"}}}},marks:N9(e,{fromPrefix:F9})}]}(e,t)}else if(e.mark===pQ){const t=uZ.some((t=>bZ(t,e.markDef,e.config)));if(e.stack&&!e.fieldDef("size")&&t)return function(e){const[t]=N9(e,{fromPrefix:P9}),n=e.scaleName(e.stack.fieldChannel),r=(t={})=>e.vgField(e.stack.fieldChannel,t),i=(e,t)=>`${e}(${[r({prefix:"min",suffix:"start",expr:t}),r({prefix:"max",suffix:"start",expr:t}),r({prefix:"min",suffix:"end",expr:t}),r({prefix:"max",suffix:"end",expr:t})].map((e=>`scale('${n}',${e})`)).join(",")})`;let o,a;"x"===e.stack.fieldChannel?(o=Object.assign(Object.assign({},hX(t.encode.update,["y","yc","y2","height",...uZ])),{x:{signal:i("min","datum")},x2:{signal:i("max","datum")},clip:{value:!0}}),a={x:{field:{group:"x"},mult:-1},height:{field:{group:"height"}}},t.encode.update=Object.assign(Object.assign({},dX(t.encode.update,["y","yc","y2"])),{height:{field:{group:"height"}}})):(o=Object.assign(Object.assign({},hX(t.encode.update,["x","xc","x2","width"])),{y:{signal:i("min","datum")},y2:{signal:i("max","datum")},clip:{value:!0}}),a={y:{field:{group:"y"},mult:-1},width:{field:{group:"width"}}},t.encode.update=Object.assign(Object.assign({},dX(t.encode.update,["x","xc","x2"])),{width:{field:{group:"width"}}}));for(const n of uZ){const r=xZ(n,e.markDef,e.config);t.encode.update[n]?(o[n]=t.encode.update[n],delete t.encode.update[n]):r&&(o[n]=mZ(r)),r&&(t.encode.update[n]={value:0})}const s=[];if(e.stack.groupbyChannel){const t=e.fieldDef(e.stack.groupbyChannel),n=O0(t);n&&s.push(n),((null==t?void 0:t.bin)||(null==t?void 0:t.timeUnit))&&s.push(O0(t,{binSuffix:"end"}))}return o=["stroke","strokeWidth","strokeJoin","strokeCap","strokeDash","strokeDashOffset","strokeMiterLimit","strokeOpacity"].reduce(((n,r)=>{if(t.encode.update[r])return Object.assign(Object.assign({},n),{[r]:t.encode.update[r]});{const t=xZ(r,e.markDef,e.config);return void 0!==t?Object.assign(Object.assign({},n),{[r]:mZ(t)}):n}}),o),o.stroke&&(o.strokeForeground={value:!0},o.strokeOffset={value:0}),[{type:"group",from:{facet:{data:e.requestDataName(z3.Main),name:P9+e.requestDataName(z3.Main),groupby:s,aggregate:{fields:[r({suffix:"start"}),r({suffix:"start"}),r({suffix:"end"}),r({suffix:"end"})],ops:["min","max","min","max"]}}},encode:{update:o},marks:[{type:"group",encode:{update:a},marks:[t]}]}]}(e)}return N9(e)}(this)}parseAxesAndHeaders(){var e;this.component.axes=(e=this,yJ.reduce(((t,n)=>(e.component.scales[n]&&(t[n]=[S9(n,e)]),t)),{}))}assembleSelectionTopLevelSignals(e){return function(e,t){var n;let r=!1;for(const i of TX(null!==(n=e.component.selection)&&void 0!==n?n:{})){const n=i.name,o=JG(n+o6);if(0===t.filter((e=>e.name===n)).length){const e="global"===i.resolve?"union":i.resolve,n="point"===i.type?", true, true)":")";t.push({name:i.name,update:`${l6}(${o}, ${JG(e)}${n}`})}r=!0;for(const n of c6)n.defined(i)&&n.topLevelSignals&&(t=n.topLevelSignals(e,i,t))}if(r){0===t.filter((e=>"unit"===e.name)).length&&t.unshift({name:"unit",value:{},on:[{events:"mousemove",update:"isTuple(group()) ? group() : unit"}]})}return K3(t)}(this,e)}assembleSignals(){return[...E4(this),...J3(this,[])]}assembleSelectionData(e){return function(e,t){var n;const r=[...t];for(const t of TX(null!==(n=e.component.selection)&&void 0!==n?n:{})){const n={name:t.name+o6};if(t.init){const r=t.project.items.map((e=>{const{signals:t}=e;return X3(e,["signals"])}));n.values=t.init.map((t=>({unit:u6(e,{escape:!1}),fields:r,values:Y3(t,!1)})))}r.filter((e=>e.name===t.name+o6)).length||r.push(n)}return r}(this,e)}assembleLayout(){return null}assembleLayoutSignals(){return J4(this)}assembleMarks(){var e;let t=null!==(e=this.component.mark)&&void 0!==e?e:[];return this.parent&&U7(this.parent)||(t=Z3(this,t)),t.map(this.correctDataNames)}assembleGroupStyle(){const{style:e}=this.view||{};return void 0!==e?e:this.encoding.x||this.encoding.y?"cell":void 0}getMapping(){return this.encoding}get mark(){return this.markDef.type}channelHasField(e){return s1(this.encoding,e)}fieldDef(e){return R0(this.encoding[e])}typedFieldDef(e){const t=this.fieldDef(e);return E0(t)?t:null}}class B9 extends q7{constructor(e,t,n,r,i){super(e,"layer",t,n,i,e.resolve,e.view);const o=Object.assign(Object.assign(Object.assign({},r),e.width?{width:e.width}:{}),e.height?{height:e.height}:{});this.children=e.layer.map(((e,t)=>{if(w2(e))return new B9(e,this,this.getName(`layer_${t}`),o,i);if(o1(e))return new I9(e,this,this.getName(`layer_${t}`),o,i);throw new Error(DZ(e))}))}parseData(){this.component.data=g9(this);for(const e of this.children)e.parseData()}parseLayoutSize(){u9(this),h9(this,"width"),h9(this,"height")}parseSelections(){this.component.selection={};for(const e of this.children){e.parseSelections();for(const t of AX(e.component.selection))this.component.selection[t]=e.component.selection[t]}}parseMarkGroup(){for(const e of this.children)e.parseMarkGroup()}parseAxesAndHeaders(){!function(e){var t;const{axes:n,resolve:r}=e.component,i={top:0,bottom:0,right:0,left:0};for(const t of e.children){t.parseAxesAndHeaders();for(const i of AX(t.component.axes))r.axis[i]=r8(e.component.resolve,i),"shared"===r.axis[i]&&(n[i]=_9(n[i],t.component.axes[i]),n[i]||(r.axis[i]="independent",delete n[i]))}for(const o of yJ){for(const a of e.children)if(a.component.axes[o]){if("independent"===r.axis[o]){n[o]=(null!==(t=n[o])&&void 0!==t?t:[]).concat(a.component.axes[o]);for(const e of a.component.axes[o]){const{value:t,explicit:n}=e.getWithExplicit("orient");if(!oZ(t)){if(i[t]>0&&!n){const n=w9[t];i[t]>i[n]&&e.set("orient",n,!1)}i[t]++}}}delete a.component.axes[o]}if("independent"===r.axis[o]&&n[o]&&n[o].length>1)for(const e of n[o])e.get("grid")&&!e.explicit.grid&&(e.implicit.grid=!1)}}(this)}assembleSelectionTopLevelSignals(e){return this.children.reduce(((e,t)=>t.assembleSelectionTopLevelSignals(e)),e)}assembleSignals(){return this.children.reduce(((e,t)=>e.concat(t.assembleSignals())),E4(this))}assembleLayoutSignals(){return this.children.reduce(((e,t)=>e.concat(t.assembleLayoutSignals())),J4(this))}assembleSelectionData(e){return this.children.reduce(((e,t)=>t.assembleSelectionData(e)),e)}assembleGroupStyle(){const e=new Set;for(const t of this.children)for(const n of qG(t.assembleGroupStyle()))e.add(n);const t=Array.from(e);return t.length>1?t:1===t.length?t[0]:void 0}assembleTitle(){let e=super.assembleTitle();if(e)return e;for(const t of this.children)if(e=t.assembleTitle(),e)return e}assembleLayout(){return null}assembleMarks(){return function(e,t){for(const n of e.children)R7(n)&&(t=Z3(n,t));return t}(this,this.children.flatMap((e=>e.assembleMarks())))}assembleLegends(){return this.children.reduce(((e,t)=>e.concat(t.assembleLegends())),b8(this))}}function j9(e,t,n,r,i){if(l0(e))return new p9(e,t,n,i);if(w2(e))return new B9(e,t,n,r,i);if(o1(e))return new I9(e,t,n,r,i);if(function(e){return t2(e)||n2(e)||e2(e)}(e))return new v9(e,t,n,i);throw new Error(DZ(e))}function L9(e,t={}){var n;t.logger&&(n=t.logger,tK=n),t.fieldTitle&&I0(t.fieldTitle);try{const n=g2($G(t.config,e.config)),r=y3(e,n),i=j9(r,null,"",void 0,n);i.parse(),function(e,t){a7(e.sources);let n=0,r=0;for(let r=0;r<5&&l7(e,t,!0);r++)n++;e.sources.map(r7);for(let n=0;n<5&&l7(e,t,!1);n++)r++;a7(e.sources),5===Math.max(n,r)&&nK("Maximum optimization runs(5) reached.")}(i.component.data,i);const o=function(e,t,n={},r){const i=e.config?function(e){e=uX(e);for(const t of y2)delete e[t];if(e.axis)for(const t in e.axis)K0(e.axis[t])&&delete e.axis[t];if(e.legend)for(const t of z1)delete e.legend[t];if(e.mark){for(const t of OQ)delete e.mark[t];e.mark.tooltip&&zG(e.mark.tooltip)&&delete e.mark.tooltip}e.params&&(e.signals=(e.signals||[]).concat(Q1(e.params)),delete e.params);for(const t of v2){for(const n of OQ)delete e[t][n];const n=b2[t];if(n)for(const r of n)delete e[t][r];x2(e,t)}for(const t of AX(j1))delete e[t];!function(e){const{titleMarkConfig:t,subtitleMarkConfig:n,subtitle:r}=rZ(e.title);DX(t)||(e.style["group-title"]=Object.assign(Object.assign({},e.style["group-title"]),t)),DX(n)||(e.style["group-subtitle"]=Object.assign(Object.assign({},e.style["group-subtitle"]),n)),DX(r)?delete e.title:e.title=r}(e);for(const t in e)zG(e[t])&&DX(e[t])&&delete e[t];return DX(e)?void 0:e}(e.config):void 0,o=[].concat(e.assembleSelectionData([]),function(e,t){var n,r;const i=[],o=o9(i);let a=0;for(const t of e.sources){t.hasName()||(t.dataName="source_"+a++);const e=t.assemble();o(t,e)}for(const e of i)0===e.transform.length&&delete e.transform;let s=0;for(const[e,t]of i.entries())0!==(null!==(n=t.transform)&&void 0!==n?n:[]).length||t.source||i.splice(s++,0,i.splice(e,1)[0]);for(const t of i)for(const n of null!==(r=t.transform)&&void 0!==r?r:[])"lookup"===n.type&&(n.from=e.outputNodes[n.from].getSource());for(const e of i)e.name in t&&(e.values=t[e.name]);return i}(e.component.data,n)),a=e.assembleProjections(),s=e.assembleTitle(),l=e.assembleGroupStyle(),c=e.assembleGroupEncodeEntry(!0);let u=e.assembleLayoutSignals();u=u.filter((e=>"width"!==e.name&&"height"!==e.name||void 0===e.value||(t[e.name]=+e.value,!1)));const{params:h}=t,d=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i0?{projections:a}:{}),e.assembleGroup([...u,...e.assembleSelectionTopLevelSignals([]),...Q1(h)])),i?{config:i}:{}),r?{usermeta:r}:{})}(i,function(e,t,n,r){const i=r.component.layoutSize.get("width"),o=r.component.layoutSize.get("height");if(void 0===t?(t={type:"pad"},r.hasAxisOrientSignalRef()&&(t.resize=!0)):YG(t)&&(t={type:t}),i&&o&&("fit"===(a=t.type)||"fit-x"===a||"fit-y"===a))if("step"===i&&"step"===o)nK(MZ()),t.type="pad";else if("step"===i||"step"===o){const e="step"===i?"width":"height";nK(MZ(_J(e)));const n="width"===e?"height":"width";t.type=function(e){return e?`fit-${_J(e)}`:"fit"}(n)}var a;return Object.assign(Object.assign(Object.assign({},1===AX(t).length&&t.type?"pad"===t.type?{}:{autosize:t.type}:{autosize:t}),E3(n,!1)),E3(e,!0))}(e,r.autosize,n,i),e.datasets,e.usermeta);return{spec:o,normalized:r}}finally{t.logger&&(tK=eK),t.fieldTitle&&I0(P0)}}const z9="5.1.1",R9=function(e){const[t,n]=/schema\/([\w-]+)\/([\w\.\-]+)\.json$/g.exec(e).slice(1,3);return{library:t,version:n}},$9="#fff",H9={background:"#333",title:{color:$9,subtitleColor:$9},style:{"guide-label":{fill:$9},"guide-title":{fill:$9}},axis:{domainColor:$9,gridColor:"#888",tickColor:$9}},U9="#4572a7",q9={background:"#fff",arc:{fill:U9},area:{fill:U9},line:{stroke:U9,strokeWidth:2},path:{stroke:U9},rect:{fill:U9},shape:{stroke:U9},symbol:{fill:U9,strokeWidth:1.5,size:50},axis:{bandPosition:.5,grid:!0,gridColor:"#000000",gridOpacity:1,gridWidth:.5,labelPadding:10,tickSize:5,tickWidth:.5},axisBand:{grid:!1,tickExtra:!0},legend:{labelBaseline:"middle",labelFontSize:11,symbolSize:50,symbolType:"square"},range:{category:["#4572a7","#aa4643","#8aa453","#71598e","#4598ae","#d98445","#94aace","#d09393","#b9cc98","#a99cbc"]}},W9="#30a2da",V9="#cbcbcb",G9="#f0f0f0",X9="#333",Y9={arc:{fill:W9},area:{fill:W9},axis:{domainColor:V9,grid:!0,gridColor:V9,gridWidth:1,labelColor:"#999",labelFontSize:10,titleColor:"#333",tickColor:V9,tickSize:10,titleFontSize:14,titlePadding:10,labelPadding:4},axisBand:{grid:!1},background:G9,group:{fill:G9},legend:{labelColor:X9,labelFontSize:11,padding:1,symbolSize:30,symbolType:"square",titleColor:X9,titleFontSize:14,titlePadding:10},line:{stroke:W9,strokeWidth:2},path:{stroke:W9,strokeWidth:.5},rect:{fill:W9},range:{category:["#30a2da","#fc4f30","#e5ae38","#6d904f","#8b8b8b","#b96db8","#ff9e27","#56cc60","#52d2ca","#52689e","#545454","#9fe4f8"],diverging:["#cc0020","#e77866","#f6e7e1","#d6e8ed","#91bfd9","#1d78b5"],heatmap:["#d6e8ed","#cee0e5","#91bfd9","#549cc6","#1d78b5"]},point:{filled:!0,shape:"circle"},shape:{stroke:W9},bar:{binSpacing:2,fill:W9,stroke:null},title:{anchor:"start",fontSize:24,fontWeight:600,offset:20}},J9="#000",Z9={group:{fill:"#e5e5e5"},arc:{fill:J9},area:{fill:J9},line:{stroke:J9},path:{stroke:J9},rect:{fill:J9},shape:{stroke:J9},symbol:{fill:J9,size:40},axis:{domain:!1,grid:!0,gridColor:"#FFFFFF",gridOpacity:1,labelColor:"#7F7F7F",labelPadding:4,tickColor:"#7F7F7F",tickSize:5.67,titleFontSize:16,titleFontWeight:"normal"},legend:{labelBaseline:"middle",labelFontSize:11,symbolSize:40},range:{category:["#000000","#7F7F7F","#1A1A1A","#999999","#333333","#B0B0B0","#4D4D4D","#C9C9C9","#666666","#DCDCDC"]}},K9="Benton Gothic, sans-serif",Q9="#82c6df",eee="Benton Gothic Bold, sans-serif",tee="normal",nee={"category-6":["#ec8431","#829eb1","#c89d29","#3580b1","#adc839","#ab7fb4"],"fire-7":["#fbf2c7","#f9e39c","#f8d36e","#f4bb6a","#e68a4f","#d15a40","#ab4232"],"fireandice-6":["#e68a4f","#f4bb6a","#f9e39c","#dadfe2","#a6b7c6","#849eae"],"ice-7":["#edefee","#dadfe2","#c4ccd2","#a6b7c6","#849eae","#607785","#47525d"]},ree={background:"#ffffff",title:{anchor:"start",color:"#000000",font:eee,fontSize:22,fontWeight:"normal"},arc:{fill:Q9},area:{fill:Q9},line:{stroke:Q9,strokeWidth:2},path:{stroke:Q9},rect:{fill:Q9},shape:{stroke:Q9},symbol:{fill:Q9,size:30},axis:{labelFont:K9,labelFontSize:11.5,labelFontWeight:"normal",titleFont:eee,titleFontSize:13,titleFontWeight:tee},axisX:{labelAngle:0,labelPadding:4,tickSize:3},axisY:{labelBaseline:"middle",maxExtent:45,minExtent:45,tickSize:2,titleAlign:"left",titleAngle:0,titleX:-45,titleY:-11},legend:{labelFont:K9,labelFontSize:11.5,symbolType:"square",titleFont:eee,titleFontSize:13,titleFontWeight:tee},range:{category:nee["category-6"],diverging:nee["fireandice-6"],heatmap:nee["fire-7"],ordinal:nee["fire-7"],ramp:nee["fire-7"]}},iee="#ab5787",oee="#979797",aee={background:"#f9f9f9",arc:{fill:iee},area:{fill:iee},line:{stroke:iee},path:{stroke:iee},rect:{fill:iee},shape:{stroke:iee},symbol:{fill:iee,size:30},axis:{domainColor:oee,domainWidth:.5,gridWidth:.2,labelColor:oee,tickColor:oee,tickWidth:.2,titleColor:oee},axisBand:{grid:!1},axisX:{grid:!0,tickSize:10},axisY:{domain:!1,grid:!0,tickSize:0},legend:{labelFontSize:11,padding:1,symbolSize:30,symbolType:"square"},range:{category:["#ab5787","#51b2e5","#703c5c","#168dd9","#d190b6","#00609f","#d365ba","#154866","#666666","#c4c4c4"]}},see="#3e5c69",lee={background:"#fff",arc:{fill:see},area:{fill:see},line:{stroke:see},path:{stroke:see},rect:{fill:see},shape:{stroke:see},symbol:{fill:see},axis:{domainWidth:.5,grid:!0,labelPadding:2,tickSize:5,tickWidth:.5,titleFontWeight:"normal"},axisBand:{grid:!1},axisX:{gridWidth:.2},axisY:{gridDash:[3],gridWidth:.4},legend:{labelFontSize:11,padding:1,symbolType:"square"},range:{category:["#3e5c69","#6793a6","#182429","#0570b0","#3690c0","#74a9cf","#a6bddb","#e2ddf2"]}},cee="#1696d2",uee="#000000",hee="Lato",dee="Lato",fee={"main-colors":["#1696d2","#d2d2d2","#000000","#fdbf11","#ec008b","#55b748","#5c5859","#db2b27"],"shades-blue":["#CFE8F3","#A2D4EC","#73BFE2","#46ABDB","#1696D2","#12719E","#0A4C6A","#062635"],"shades-gray":["#F5F5F5","#ECECEC","#E3E3E3","#DCDBDB","#D2D2D2","#9D9D9D","#696969","#353535"],"shades-yellow":["#FFF2CF","#FCE39E","#FDD870","#FCCB41","#FDBF11","#E88E2D","#CA5800","#843215"],"shades-magenta":["#F5CBDF","#EB99C2","#E46AA7","#E54096","#EC008B","#AF1F6B","#761548","#351123"],"shades-green":["#DCEDD9","#BCDEB4","#98CF90","#78C26D","#55B748","#408941","#2C5C2D","#1A2E19"],"shades-black":["#D5D5D4","#ADABAC","#848081","#5C5859","#332D2F","#262223","#1A1717","#0E0C0D"],"shades-red":["#F8D5D4","#F1AAA9","#E9807D","#E25552","#DB2B27","#A4201D","#6E1614","#370B0A"],"one-group":["#1696d2","#000000"],"two-groups-cat-1":["#1696d2","#000000"],"two-groups-cat-2":["#1696d2","#fdbf11"],"two-groups-cat-3":["#1696d2","#db2b27"],"two-groups-seq":["#a2d4ec","#1696d2"],"three-groups-cat":["#1696d2","#fdbf11","#000000"],"three-groups-seq":["#a2d4ec","#1696d2","#0a4c6a"],"four-groups-cat-1":["#000000","#d2d2d2","#fdbf11","#1696d2"],"four-groups-cat-2":["#1696d2","#ec0008b","#fdbf11","#5c5859"],"four-groups-seq":["#cfe8f3","#73bf42","#1696d2","#0a4c6a"],"five-groups-cat-1":["#1696d2","#fdbf11","#d2d2d2","#ec008b","#000000"],"five-groups-cat-2":["#1696d2","#0a4c6a","#d2d2d2","#fdbf11","#332d2f"],"five-groups-seq":["#cfe8f3","#73bf42","#1696d2","#0a4c6a","#000000"],"six-groups-cat-1":["#1696d2","#ec008b","#fdbf11","#000000","#d2d2d2","#55b748"],"six-groups-cat-2":["#1696d2","#d2d2d2","#ec008b","#fdbf11","#332d2f","#0a4c6a"],"six-groups-seq":["#cfe8f3","#a2d4ec","#73bfe2","#46abdb","#1696d2","#12719e"],"diverging-colors":["#ca5800","#fdbf11","#fdd870","#fff2cf","#cfe8f3","#73bfe2","#1696d2","#0a4c6a"]},pee={background:"#FFFFFF",title:{anchor:"start",fontSize:18,font:hee},axisX:{domain:!0,domainColor:uee,domainWidth:1,grid:!1,labelFontSize:12,labelFont:dee,labelAngle:0,tickColor:uee,tickSize:5,titleFontSize:12,titlePadding:10,titleFont:hee},axisY:{domain:!1,domainWidth:1,grid:!0,gridColor:"#DEDDDD",gridWidth:1,labelFontSize:12,labelFont:dee,labelPadding:8,ticks:!1,titleFontSize:12,titlePadding:10,titleFont:hee,titleAngle:0,titleY:-10,titleX:18},legend:{labelFontSize:12,labelFont:dee,symbolSize:100,titleFontSize:12,titlePadding:10,titleFont:hee,orient:"right",offset:10},view:{stroke:"transparent"},range:{category:fee["six-groups-cat-1"],diverging:fee["diverging-colors"],heatmap:fee["diverging-colors"],ordinal:fee["six-groups-seq"],ramp:fee["shades-blue"]},area:{fill:cee},rect:{fill:cee},line:{color:cee,stroke:cee,strokeWidth:5},trail:{color:cee,stroke:cee,strokeWidth:0,size:1},path:{stroke:cee,strokeWidth:.5},point:{filled:!0},text:{font:"Lato",color:cee,fontSize:11,align:"center",fontWeight:400,size:11},style:{bar:{fill:cee,stroke:null}},arc:{fill:cee},shape:{stroke:cee},symbol:{fill:cee,size:30}},mee="#3366CC",gee="#ccc",vee="Arial, sans-serif",yee={arc:{fill:mee},area:{fill:mee},path:{stroke:mee},rect:{fill:mee},shape:{stroke:mee},symbol:{stroke:mee},circle:{fill:mee},background:"#fff",padding:{top:10,right:10,bottom:10,left:10},style:{"guide-label":{font:vee,fontSize:12},"guide-title":{font:vee,fontSize:12},"group-title":{font:vee,fontSize:12}},title:{font:vee,fontSize:14,fontWeight:"bold",dy:-3,anchor:"start"},axis:{gridColor:gee,tickColor:gee,domain:!1,grid:!0},range:{category:["#4285F4","#DB4437","#F4B400","#0F9D58","#AB47BC","#00ACC1","#FF7043","#9E9D24","#5C6BC0","#F06292","#00796B","#C2185B"],heatmap:["#c6dafc","#5e97f6","#2a56c6"]}},bee="2.10.0";function xee(e,t){return JSON.stringify(e,function(e){const t=[];return function(n,r){if("object"!=typeof r||null===r)return r;const i=t.indexOf(this)+1;return t.length=i,t.length>e?"[Object]":t.indexOf(r)>=0?"[Circular]":(t.push(r),r)}}(t))}const wee="vg-tooltip-element",_ee={offsetX:10,offsetY:10,id:wee,styleId:"vega-tooltip-style",theme:"light",disableDefaultStyle:!1,sanitize:function(e){return String(e).replace(/&/g,"&").replace(/t($o(e)?e:xee(e,n)))).join(", ")}]`;if(Wi(e)){let r="";const i=e,{title:o,image:a}=i,s=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i${t(o)}`),a&&(r+=``);const l=Object.keys(s);if(l.length>0){r+="";for(const e of l){let i=s[e];void 0!==i&&(Wi(i)&&(i=xee(i,n)),r+=``)}r+="
${t(e)}:${t(i)}
"}return r||"{}"}return t(e)}};class kee{constructor(e){this.options=Object.assign(Object.assign({},_ee),e);const t=this.options.id;if(this.el=null,this.call=this.tooltipHandler.bind(this),!this.options.disableDefaultStyle&&!document.getElementById(this.options.styleId)){const e=document.createElement("style");e.setAttribute("id",this.options.styleId),e.innerHTML=function(e){if(!/^[A-Za-z]+[-:.\w]*$/.test(e))throw new Error("Invalid HTML ID");return"#vg-tooltip-element {\n visibility: hidden;\n padding: 8px;\n position: fixed;\n z-index: 1000;\n font-family: sans-serif;\n font-size: 11px;\n border-radius: 3px;\n box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);\n /* The default theme is the light theme. */\n background-color: rgba(255, 255, 255, 0.95);\n border: 1px solid #d9d9d9;\n color: black;\n}\n#vg-tooltip-element.visible {\n visibility: visible;\n}\n#vg-tooltip-element h2 {\n margin-top: 0;\n margin-bottom: 10px;\n font-size: 13px;\n}\n#vg-tooltip-element img {\n max-width: 200px;\n max-height: 200px;\n}\n#vg-tooltip-element table {\n border-spacing: 0;\n}\n#vg-tooltip-element table tr {\n border: none;\n}\n#vg-tooltip-element table tr td {\n overflow: hidden;\n text-overflow: ellipsis;\n padding-top: 2px;\n padding-bottom: 2px;\n}\n#vg-tooltip-element table tr td.key {\n color: #808080;\n max-width: 150px;\n text-align: right;\n padding-right: 4px;\n}\n#vg-tooltip-element table tr td.value {\n display: block;\n max-width: 300px;\n max-height: 7em;\n text-align: left;\n}\n#vg-tooltip-element.dark-theme {\n background-color: rgba(32, 32, 32, 0.9);\n border: 1px solid #f5f5f5;\n color: white;\n}\n#vg-tooltip-element.dark-theme td.key {\n color: #bfbfbf;\n}\n".toString().replace(wee,e)}(t);const n=document.head;n.childNodes.length>0?n.insertBefore(e,n.childNodes[0]):n.appendChild(e)}}tooltipHandler(e,t,n,r){var i;if(this.el=document.getElementById(this.options.id),this.el||(this.el=document.createElement("div"),this.el.setAttribute("id",this.options.id),this.el.classList.add("vg-tooltip"),(null!==(i=document.fullscreenElement)&&void 0!==i?i:document.body).appendChild(this.el)),null==r||""===r)return void this.el.classList.remove("visible",`${this.options.theme}-theme`);this.el.innerHTML=this.options.formatTooltip(r,this.options.sanitize,this.options.maxDepth),this.el.classList.add("visible",`${this.options.theme}-theme`);const{x:o,y:a}=function(e,t,n,r){let i=e.clientX+n;i+t.width>window.innerWidth&&(i=+e.clientX-n-t.width);let o=e.clientY+r;return o+t.height>window.innerHeight&&(o=+e.clientY-r-t.height),{x:i,y:o}}(t,this.el.getBoundingClientRect(),this.options.offsetX,this.options.offsetY);this.el.setAttribute("style",`top: ${a}px; left: ${o}px`)}}var Eee=n(4155);function Cee(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function See(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,i)}function Dee(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){See(o,r,i,a,s,"next",e)}function s(e){See(o,r,i,a,s,"throw",e)}a(void 0)}))}}var Aee,Tee=Object.prototype,Mee=Tee.hasOwnProperty,Oee="function"==typeof Symbol?Symbol:{},Fee=Oee.iterator||"@@iterator",Pee=Oee.asyncIterator||"@@asyncIterator",Nee=Oee.toStringTag||"@@toStringTag";function Iee(e,t,n,r){var i=t&&t.prototype instanceof Hee?t:Hee,o=Object.create(i.prototype),a=new tte(r||[]);return o._invoke=function(e,t,n){var r=jee;return function(i,o){if(r===zee)throw new Error("Generator is already running");if(r===Ree){if("throw"===i)throw o;return rte()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=Kee(a,n);if(s){if(s===$ee)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===jee)throw r=Ree,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=zee;var l=Bee(e,t,n);if("normal"===l.type){if(r=n.done?Ree:Lee,l.arg===$ee)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r=Ree,n.method="throw",n.arg=l.arg)}}}(e,n,a),o}function Bee(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}var jee="suspendedStart",Lee="suspendedYield",zee="executing",Ree="completed",$ee={};function Hee(){}function Uee(){}function qee(){}var Wee={};Wee[Fee]=function(){return this};var Vee=Object.getPrototypeOf,Gee=Vee&&Vee(Vee(nte([])));Gee&&Gee!==Tee&&Mee.call(Gee,Fee)&&(Wee=Gee);var Xee=qee.prototype=Hee.prototype=Object.create(Wee);function Yee(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function Jee(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===Uee||"GeneratorFunction"===(t.displayName||t.name))}function Zee(e,t){function n(r,i,o,a){var s=Bee(e[r],e,i);if("throw"!==s.type){var l=s.arg,c=l.value;return c&&"object"==typeof c&&Mee.call(c,"__await")?t.resolve(c.__await).then((function(e){n("next",e,o,a)}),(function(e){n("throw",e,o,a)})):t.resolve(c).then((function(e){l.value=e,o(l)}),(function(e){return n("throw",e,o,a)}))}a(s.arg)}var r;this._invoke=function(e,i){function o(){return new t((function(t,r){n(e,i,t,r)}))}return r=r?r.then(o,o):o()}}function Kee(e,t){var n=e.iterator[t.method];if(n===Aee){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=Aee,Kee(e,t),"throw"===t.method))return $ee;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return $ee}var r=Bee(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,$ee;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=Aee),t.delegate=null,$ee):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,$ee)}function Qee(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function ete(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function tte(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(Qee,this),this.reset(!0)}function nte(e){if(e){var t=e[Fee];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n=0;--r){var i=this.tryEntries[r],o=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var a=Mee.call(i,"catchLoc"),s=Mee.call(i,"finallyLoc");if(a&&s){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&Mee.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),ete(n),$ee}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;ete(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:nte(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=Aee),$ee}};var ite={wrap:Iee,isGeneratorFunction:Jee,AsyncIterator:Zee,mark:function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,qee):(e.__proto__=qee,Nee in e||(e[Nee]="GeneratorFunction")),e.prototype=Object.create(Xee),e},awrap:function(e){return{__await:e}},async:function(e,t,n,r,i){void 0===i&&(i=Promise);var o=new Zee(Iee(e,t,n,r),i);return Jee(t)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},keys:function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},values:nte},ote=ate;function ate(e){var t=this;if(t instanceof ate||(t=new ate),t.tail=null,t.head=null,t.length=0,e&&"function"==typeof e.forEach)e.forEach((function(e){t.push(e)}));else if(arguments.length>0)for(var n=0,r=arguments.length;n1)n=t;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");r=this.head.next,n=this.head.value}for(var i=0;null!==r;i++)n=e(n,r.value,i),r=r.next;return n},ate.prototype.reduceReverse=function(e,t){var n,r=this.tail;if(arguments.length>1)n=t;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");r=this.tail.prev,n=this.tail.value}for(var i=this.length-1;null!==r;i--)n=e(n,r.value,i),r=r.prev;return n},ate.prototype.toArray=function(){for(var e=new Array(this.length),t=0,n=this.head;null!==n;t++)e[t]=n.value,n=n.next;return e},ate.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,n=this.tail;null!==n;t++)e[t]=n.value,n=n.prev;return e},ate.prototype.slice=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var n=new ate;if(tthis.length&&(t=this.length);for(var r=0,i=this.head;null!==i&&rthis.length&&(t=this.length);for(var r=this.length,i=this.tail;null!==i&&r>t;r--)i=i.prev;for(;null!==i&&r>e;r--,i=i.prev)n.push(i.value);return n},ate.prototype.splice=function(e,t){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var n=0,r=this.head;null!==r&&n1,kte=(e,t,n)=>{var r=e[xte].get(t);if(r){var i=r.value;if(Ete(e,i)){if(Ste(e,r),!e[mte])return}else n&&(e[wte]&&(r.value.now=Date.now()),e[bte].unshiftNode(r));return i.value}},Ete=(e,t)=>{if(!t||!t.maxAge&&!e[gte])return!1;var n=Date.now()-t.now;return t.maxAge?n>t.maxAge:e[gte]&&n>e[gte]},Cte=e=>{if(e[fte]>e[dte])for(var t=e[bte].tail;e[fte]>e[dte]&&null!==t;){var n=t.prev;Ste(e,t),t=n}},Ste=(e,t)=>{if(t){var n=t.value;e[vte]&&e[vte](n.key,n.value),e[fte]-=n.length,e[xte].delete(n.key),e[bte].removeNode(t)}};class Dte{constructor(e,t,n,r,i){this.key=e,this.value=t,this.length=n,this.now=r,this.maxAge=i||0}}var Ate=(e,t,n,r)=>{var i=n.value;Ete(e,i)&&(Ste(e,n),e[mte]||(i=void 0)),i&&t.call(r,i.value,i.key,e)},Tte=["includePrerelease","loose","rtl"],Mte=e=>e?"object"!=typeof e?{loose:!0}:Tte.filter((t=>e[t])).reduce(((e,t)=>(e[t]=!0,e)),{}):{},Ote={exports:{}},Fte={SEMVER_SPEC_VERSION:"2.0.0",MAX_LENGTH:256,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991,MAX_SAFE_COMPONENT_LENGTH:16},Pte="object"==typeof Eee&&Eee.env&&Eee.env.NODE_DEBUG&&/\bsemver\b/i.test(Eee.env.NODE_DEBUG)?function(){for(var e=arguments.length,t=new Array(e),n=0;n{};!function(e,t){var n=Fte.MAX_SAFE_COMPONENT_LENGTH,r=Pte,i=(t=e.exports={}).re=[],o=t.src=[],a=t.t={},s=0,l=(e,t,n)=>{var l=s++;r(e,l,t),a[e]=l,o[l]=t,i[l]=new RegExp(t,n?"g":void 0)};l("NUMERICIDENTIFIER","0|[1-9]\\d*"),l("NUMERICIDENTIFIERLOOSE","[0-9]+"),l("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),l("MAINVERSION","(".concat(o[a.NUMERICIDENTIFIER],")\\.")+"(".concat(o[a.NUMERICIDENTIFIER],")\\.")+"(".concat(o[a.NUMERICIDENTIFIER],")")),l("MAINVERSIONLOOSE","(".concat(o[a.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(o[a.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(o[a.NUMERICIDENTIFIERLOOSE],")")),l("PRERELEASEIDENTIFIER","(?:".concat(o[a.NUMERICIDENTIFIER],"|").concat(o[a.NONNUMERICIDENTIFIER],")")),l("PRERELEASEIDENTIFIERLOOSE","(?:".concat(o[a.NUMERICIDENTIFIERLOOSE],"|").concat(o[a.NONNUMERICIDENTIFIER],")")),l("PRERELEASE","(?:-(".concat(o[a.PRERELEASEIDENTIFIER],"(?:\\.").concat(o[a.PRERELEASEIDENTIFIER],")*))")),l("PRERELEASELOOSE","(?:-?(".concat(o[a.PRERELEASEIDENTIFIERLOOSE],"(?:\\.").concat(o[a.PRERELEASEIDENTIFIERLOOSE],")*))")),l("BUILDIDENTIFIER","[0-9A-Za-z-]+"),l("BUILD","(?:\\+(".concat(o[a.BUILDIDENTIFIER],"(?:\\.").concat(o[a.BUILDIDENTIFIER],")*))")),l("FULLPLAIN","v?".concat(o[a.MAINVERSION]).concat(o[a.PRERELEASE],"?").concat(o[a.BUILD],"?")),l("FULL","^".concat(o[a.FULLPLAIN],"$")),l("LOOSEPLAIN","[v=\\s]*".concat(o[a.MAINVERSIONLOOSE]).concat(o[a.PRERELEASELOOSE],"?").concat(o[a.BUILD],"?")),l("LOOSE","^".concat(o[a.LOOSEPLAIN],"$")),l("GTLT","((?:<|>)?=?)"),l("XRANGEIDENTIFIERLOOSE","".concat(o[a.NUMERICIDENTIFIERLOOSE],"|x|X|\\*")),l("XRANGEIDENTIFIER","".concat(o[a.NUMERICIDENTIFIER],"|x|X|\\*")),l("XRANGEPLAIN","[v=\\s]*(".concat(o[a.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(o[a.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(o[a.XRANGEIDENTIFIER],")")+"(?:".concat(o[a.PRERELEASE],")?").concat(o[a.BUILD],"?")+")?)?"),l("XRANGEPLAINLOOSE","[v=\\s]*(".concat(o[a.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(o[a.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(o[a.XRANGEIDENTIFIERLOOSE],")")+"(?:".concat(o[a.PRERELEASELOOSE],")?").concat(o[a.BUILD],"?")+")?)?"),l("XRANGE","^".concat(o[a.GTLT],"\\s*").concat(o[a.XRANGEPLAIN],"$")),l("XRANGELOOSE","^".concat(o[a.GTLT],"\\s*").concat(o[a.XRANGEPLAINLOOSE],"$")),l("COERCE","".concat("(^|[^\\d])(\\d{1,").concat(n,"})")+"(?:\\.(\\d{1,".concat(n,"}))?")+"(?:\\.(\\d{1,".concat(n,"}))?")+"(?:$|[^\\d])"),l("COERCERTL",o[a.COERCE],!0),l("LONETILDE","(?:~>?)"),l("TILDETRIM","(\\s*)".concat(o[a.LONETILDE],"\\s+"),!0),t.tildeTrimReplace="$1~",l("TILDE","^".concat(o[a.LONETILDE]).concat(o[a.XRANGEPLAIN],"$")),l("TILDELOOSE","^".concat(o[a.LONETILDE]).concat(o[a.XRANGEPLAINLOOSE],"$")),l("LONECARET","(?:\\^)"),l("CARETTRIM","(\\s*)".concat(o[a.LONECARET],"\\s+"),!0),t.caretTrimReplace="$1^",l("CARET","^".concat(o[a.LONECARET]).concat(o[a.XRANGEPLAIN],"$")),l("CARETLOOSE","^".concat(o[a.LONECARET]).concat(o[a.XRANGEPLAINLOOSE],"$")),l("COMPARATORLOOSE","^".concat(o[a.GTLT],"\\s*(").concat(o[a.LOOSEPLAIN],")$|^$")),l("COMPARATOR","^".concat(o[a.GTLT],"\\s*(").concat(o[a.FULLPLAIN],")$|^$")),l("COMPARATORTRIM","(\\s*)".concat(o[a.GTLT],"\\s*(").concat(o[a.LOOSEPLAIN],"|").concat(o[a.XRANGEPLAIN],")"),!0),t.comparatorTrimReplace="$1$2$3",l("HYPHENRANGE","^\\s*(".concat(o[a.XRANGEPLAIN],")")+"\\s+-\\s+"+"(".concat(o[a.XRANGEPLAIN],")")+"\\s*$"),l("HYPHENRANGELOOSE","^\\s*(".concat(o[a.XRANGEPLAINLOOSE],")")+"\\s+-\\s+"+"(".concat(o[a.XRANGEPLAINLOOSE],")")+"\\s*$"),l("STAR","(<|>)?=?\\s*\\*"),l("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),l("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}(Ote,Ote.exports);var Nte=/^[0-9]+$/,Ite=(e,t)=>{var n=Nte.test(e),r=Nte.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:ejte)throw new TypeError("version is longer than ".concat(jte," characters"));Bte("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;var n=e.trim().match(t.loose?zte[Rte.LOOSE]:zte[Rte.FULL]);if(!n)throw new TypeError("Invalid Version: ".concat(e));if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>Lte||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Lte||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Lte||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&this.prerelease.push(0)}t&&(0===Hte(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: ".concat(e))}return this.format(),this.raw=this.version,this}}var qte,Wte,Vte,Gte,Xte=Ute,Yte=Xte,Jte=(e,t,n)=>new Yte(e,n).compare(new Yte(t,n)),Zte=Jte,Kte=Jte,Qte=Jte,ene=Jte,tne=Jte,nne=Jte,rne=(e,t,n)=>0===Zte(e,t,n),ine=(e,t,n)=>0!==Kte(e,t,n),one=(e,t,n)=>Qte(e,t,n)>0,ane=(e,t,n)=>ene(e,t,n)>=0,sne=(e,t,n)=>tne(e,t,n)<0,lne=(e,t,n)=>nne(e,t,n)<=0,cne=(e,t,n,r)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return rne(e,n,r);case"!=":return ine(e,n,r);case">":return one(e,n,r);case">=":return ane(e,n,r);case"<":return sne(e,n,r);case"<=":return lne(e,n,r);default:throw new TypeError("Invalid operator: ".concat(t))}};function une(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return hne(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?hne(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function hne(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);nthis.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError("Invalid SemVer Range: ".concat(e));if(this.set.length>1){var o=this.set[0];if(this.set=this.set.filter((e=>!d(e[0]))),0===this.set.length)this.set=[o];else if(this.set.length>1){var a,s=une(this.set);try{for(s.s();!(a=s.n()).done;){var l=a.value;if(1===l.length&&f(l[0])){this.set=[l];break}}}catch(e){s.e(e)}finally{s.f()}}}this.format()}format(){return this.range=this.set.map((e=>e.join(" ").trim())).join("||").trim(),this.range}toString(){return this.range}parseRange(e){e=e.trim();var t=Object.keys(this.options).join(","),r="parseRange:".concat(t,":").concat(e),a=n.get(r);if(a)return a;var f=this.options.loose,p=f?s[l.HYPHENRANGELOOSE]:s[l.HYPHENRANGE];e=e.replace(p,C(this.options.includePrerelease)),o("hyphen replace",e),e=e.replace(s[l.COMPARATORTRIM],c),o("comparator trim",e);var g=(e=(e=(e=e.replace(s[l.TILDETRIM],u)).replace(s[l.CARETTRIM],h)).split(/\s+/).join(" ")).split(" ").map((e=>m(e,this.options))).join(" ").split(/\s+/).map((e=>E(e,this.options)));f&&(g=g.filter((e=>(o("loose invalid filter",e,this.options),!!e.match(s[l.COMPARATORLOOSE]))))),o("range list",g);var v,y=new Map,b=g.map((e=>new i(e,this.options))),x=une(b);try{for(x.s();!(v=x.n()).done;){var w=v.value;if(d(w))return[w];y.set(w.value,w)}}catch(e){x.e(e)}finally{x.f()}y.size>1&&y.has("")&&y.delete("");var _=[...y.values()];return n.set(r,_),_}intersects(e,n){if(!(e instanceof t))throw new TypeError("a Range is required");return this.set.some((t=>p(t,n)&&e.set.some((e=>p(e,n)&&t.every((t=>e.every((e=>t.intersects(e,n)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new a(e,this.options)}catch(e){return!1}for(var t=0;t{e.length=this[pte](e.value,e.key),this[fte]+=e.length}))),Cte(this)}get lengthCalculator(){return this[pte]}get length(){return this[fte]}get itemCount(){return this[bte].length}rforEach(e,t){t=t||this;for(var n=this[bte].tail;null!==n;){var r=n.prev;Ate(this,e,n,t),n=r}}forEach(e,t){t=t||this;for(var n=this[bte].head;null!==n;){var r=n.next;Ate(this,e,n,t),n=r}}keys(){return this[bte].toArray().map((e=>e.key))}values(){return this[bte].toArray().map((e=>e.value))}reset(){this[vte]&&this[bte]&&this[bte].length&&this[bte].forEach((e=>this[vte](e.key,e.value))),this[xte]=new Map,this[bte]=new hte,this[fte]=0}dump(){return this[bte].map((e=>!Ete(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)})).toArray().filter((e=>e))}dumpLru(){return this[bte]}set(e,t,n){if((n=n||this[gte])&&"number"!=typeof n)throw new TypeError("maxAge must be a number");var r=n?Date.now():0,i=this[pte](t,e);if(this[xte].has(e)){if(i>this[dte])return Ste(this,this[xte].get(e)),!1;var o=this[xte].get(e).value;return this[vte]&&(this[yte]||this[vte](e,o.value)),o.now=r,o.maxAge=n,o.value=t,this[fte]+=i-o.length,o.length=i,this.get(e),Cte(this),!0}var a=new Dte(e,t,i,r,n);return a.length>this[dte]?(this[vte]&&this[vte](e,t),!1):(this[fte]+=a.length,this[bte].unshift(a),this[xte].set(e,this[bte].head),Cte(this),!0)}has(e){if(!this[xte].has(e))return!1;var t=this[xte].get(e).value;return!Ete(this,t)}get(e){return kte(this,e,!0)}peek(e){return kte(this,e,!1)}pop(){var e=this[bte].tail;return e?(Ste(this,e),e.value):null}del(e){Ste(this,this[xte].get(e))}load(e){this.reset();for(var t=Date.now(),n=e.length-1;n>=0;n--){var r=e[n],i=r.e||0;if(0===i)this.set(r.k,r.v);else{var o=i-t;o>0&&this.set(r.k,r.v,o)}}}prune(){this[xte].forEach(((e,t)=>kte(this,t,!1)))}}({max:1e3}),r=Mte,i=function(){if(Wte)return qte;Wte=1;var t=Symbol("SemVer ANY");class n{static get ANY(){return t}constructor(e,i){if(i=r(i),e instanceof n){if(e.loose===!!i.loose)return e;e=e.value}s("comparator",e,i),this.options=i,this.loose=!!i.loose,this.parse(e),this.semver===t?this.value="":this.value=this.operator+this.semver.version,s("comp",this)}parse(e){var n=this.options.loose?i[o.COMPARATORLOOSE]:i[o.COMPARATOR],r=e.match(n);if(!r)throw new TypeError("Invalid comparator: ".concat(e));this.operator=void 0!==r[1]?r[1]:"","="===this.operator&&(this.operator=""),r[2]?this.semver=new l(r[2],this.options.loose):this.semver=t}toString(){return this.value}test(e){if(s("Comparator.test",e,this.options.loose),this.semver===t||e===t)return!0;if("string"==typeof e)try{e=new l(e,this.options)}catch(e){return!1}return a(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof n))throw new TypeError("a Comparator is required");if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||new c(e.value,t).test(this.value);if(""===e.operator)return""===e.value||new c(this.value,t).test(e.semver);var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),o=this.semver.version===e.semver.version,s=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),l=a(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),u=a(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||i||o&&s||l||u}}qte=n;var r=Mte,i=Ote.exports.re,o=Ote.exports.t,a=cne,s=Pte,l=Xte,c=e();return qte}(),o=Pte,a=Xte,s=Ote.exports.re,l=Ote.exports.t,c=Ote.exports.comparatorTrimReplace,u=Ote.exports.tildeTrimReplace,h=Ote.exports.caretTrimReplace,d=e=>"<0.0.0-0"===e.value,f=e=>""===e.value,p=(e,t)=>{for(var n=!0,r=e.slice(),i=r.pop();n&&r.length;)n=r.every((e=>i.intersects(e,t))),i=r.pop();return n},m=(e,t)=>(o("comp",e,t),e=b(e,t),o("caret",e),e=v(e,t),o("tildes",e),e=w(e,t),o("xrange",e),e=k(e,t),o("stars",e),e),g=e=>!e||"x"===e.toLowerCase()||"*"===e,v=(e,t)=>e.trim().split(/\s+/).map((e=>y(e,t))).join(" "),y=(e,t)=>{var n=t.loose?s[l.TILDELOOSE]:s[l.TILDE];return e.replace(n,((t,n,r,i,a)=>{var s;return o("tilde",e,t,n,r,i,a),g(n)?s="":g(r)?s=">=".concat(n,".0.0 <").concat(+n+1,".0.0-0"):g(i)?s=">=".concat(n,".").concat(r,".0 <").concat(n,".").concat(+r+1,".0-0"):a?(o("replaceTilde pr",a),s=">=".concat(n,".").concat(r,".").concat(i,"-").concat(a," <").concat(n,".").concat(+r+1,".0-0")):s=">=".concat(n,".").concat(r,".").concat(i," <").concat(n,".").concat(+r+1,".0-0"),o("tilde return",s),s}))},b=(e,t)=>e.trim().split(/\s+/).map((e=>x(e,t))).join(" "),x=(e,t)=>{o("caret",e,t);var n=t.loose?s[l.CARETLOOSE]:s[l.CARET],r=t.includePrerelease?"-0":"";return e.replace(n,((t,n,i,a,s)=>{var l;return o("caret",e,t,n,i,a,s),g(n)?l="":g(i)?l=">=".concat(n,".0.0").concat(r," <").concat(+n+1,".0.0-0"):g(a)?l="0"===n?">=".concat(n,".").concat(i,".0").concat(r," <").concat(n,".").concat(+i+1,".0-0"):">=".concat(n,".").concat(i,".0").concat(r," <").concat(+n+1,".0.0-0"):s?(o("replaceCaret pr",s),l="0"===n?"0"===i?">=".concat(n,".").concat(i,".").concat(a,"-").concat(s," <").concat(n,".").concat(i,".").concat(+a+1,"-0"):">=".concat(n,".").concat(i,".").concat(a,"-").concat(s," <").concat(n,".").concat(+i+1,".0-0"):">=".concat(n,".").concat(i,".").concat(a,"-").concat(s," <").concat(+n+1,".0.0-0")):(o("no pr"),l="0"===n?"0"===i?">=".concat(n,".").concat(i,".").concat(a).concat(r," <").concat(n,".").concat(i,".").concat(+a+1,"-0"):">=".concat(n,".").concat(i,".").concat(a).concat(r," <").concat(n,".").concat(+i+1,".0-0"):">=".concat(n,".").concat(i,".").concat(a," <").concat(+n+1,".0.0-0")),o("caret return",l),l}))},w=(e,t)=>(o("replaceXRanges",e,t),e.split(/\s+/).map((e=>_(e,t))).join(" ")),_=(e,t)=>{e=e.trim();var n=t.loose?s[l.XRANGELOOSE]:s[l.XRANGE];return e.replace(n,((n,r,i,a,s,l)=>{o("xRange",e,n,r,i,a,s,l);var c=g(i),u=c||g(a),h=u||g(s),d=h;return"="===r&&d&&(r=""),l=t.includePrerelease?"-0":"",c?n=">"===r||"<"===r?"<0.0.0-0":"*":r&&d?(u&&(a=0),s=0,">"===r?(r=">=",u?(i=+i+1,a=0,s=0):(a=+a+1,s=0)):"<="===r&&(r="<",u?i=+i+1:a=+a+1),"<"===r&&(l="-0"),n="".concat(r+i,".").concat(a,".").concat(s).concat(l)):u?n=">=".concat(i,".0.0").concat(l," <").concat(+i+1,".0.0-0"):h&&(n=">=".concat(i,".").concat(a,".0").concat(l," <").concat(i,".").concat(+a+1,".0-0")),o("xRange return",n),n}))},k=(e,t)=>(o("replaceStars",e,t),e.trim().replace(s[l.STAR],"")),E=(e,t)=>(o("replaceGTE0",e,t),e.trim().replace(s[t.includePrerelease?l.GTE0PRE:l.GTE0],"")),C=e=>(t,n,r,i,o,a,s,l,c,u,h,d,f)=>(n=g(r)?"":g(i)?">=".concat(r,".0.0").concat(e?"-0":""):g(o)?">=".concat(r,".").concat(i,".0").concat(e?"-0":""):a?">=".concat(n):">=".concat(n).concat(e?"-0":""),l=g(c)?"":g(u)?"<".concat(+c+1,".0.0-0"):g(h)?"<".concat(c,".").concat(+u+1,".0-0"):d?"<=".concat(c,".").concat(u,".").concat(h,"-").concat(d):e?"<".concat(c,".").concat(u,".").concat(+h+1,"-0"):"<=".concat(l),"".concat(n," ").concat(l).trim()),S=(e,t,n)=>{for(var r=0;r0){var s=e[a].semver;if(s.major===t.major&&s.minor===t.minor&&s.patch===t.patch)return!0}return!1}return!0};return Vte}(),fne=(e,t,n)=>{try{t=new dne(t,n)}catch(e){return!1}return t.test(e)};function pne(e,t,n){var r=e.open(t),i=new URL(t).origin,o=40;e.addEventListener("message",(function t(n){n.source===r&&(o=0,e.removeEventListener("message",t,!1))}),!1),setTimeout((function e(){o<=0||(r.postMessage(n,i),setTimeout(e,250),o-=1)}),250)}var mne,gne='.vega-embed {\n position: relative;\n display: inline-block;\n box-sizing: border-box;\n}\n.vega-embed.has-actions {\n padding-right: 38px;\n}\n.vega-embed details:not([open]) > :not(summary) {\n display: none !important;\n}\n.vega-embed summary {\n list-style: none;\n position: absolute;\n top: 0;\n right: 0;\n padding: 6px;\n z-index: 1000;\n background: white;\n box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);\n color: #1b1e23;\n border: 1px solid #aaa;\n border-radius: 999px;\n opacity: 0.2;\n transition: opacity 0.4s ease-in;\n cursor: pointer;\n line-height: 0px;\n}\n.vega-embed summary::-webkit-details-marker {\n display: none;\n}\n.vega-embed summary:active {\n box-shadow: #aaa 0px 0px 0px 1px inset;\n}\n.vega-embed summary svg {\n width: 14px;\n height: 14px;\n}\n.vega-embed details[open] summary {\n opacity: 0.7;\n}\n.vega-embed:hover summary, .vega-embed:focus-within summary {\n opacity: 1 !important;\n transition: opacity 0.2s ease;\n}\n.vega-embed .vega-actions {\n position: absolute;\n z-index: 1001;\n top: 35px;\n right: -9px;\n display: flex;\n flex-direction: column;\n padding-bottom: 8px;\n padding-top: 8px;\n border-radius: 4px;\n box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.2);\n border: 1px solid #d9d9d9;\n background: white;\n animation-duration: 0.15s;\n animation-name: scale-in;\n animation-timing-function: cubic-bezier(0.2, 0, 0.13, 1.5);\n text-align: left;\n}\n.vega-embed .vega-actions a {\n padding: 8px 16px;\n font-family: sans-serif;\n font-size: 14px;\n font-weight: 600;\n white-space: nowrap;\n color: #434a56;\n text-decoration: none;\n}\n.vega-embed .vega-actions a:hover, .vega-embed .vega-actions a:focus {\n background-color: #f7f7f9;\n color: black;\n}\n.vega-embed .vega-actions::before, .vega-embed .vega-actions::after {\n content: "";\n display: inline-block;\n position: absolute;\n}\n.vega-embed .vega-actions::before {\n left: auto;\n right: 14px;\n top: -16px;\n border: 8px solid rgba(0, 0, 0, 0);\n border-bottom-color: #d9d9d9;\n}\n.vega-embed .vega-actions::after {\n left: auto;\n right: 15px;\n top: -14px;\n border: 7px solid rgba(0, 0, 0, 0);\n border-bottom-color: #fff;\n}\n.vega-embed .chart-wrapper.fit-x {\n width: 100%;\n}\n.vega-embed .chart-wrapper.fit-y {\n height: 100%;\n}\n\n.vega-embed-wrapper {\n max-width: 100%;\n overflow: auto;\n padding-right: 14px;\n}\n\n@keyframes scale-in {\n from {\n opacity: 0;\n transform: scale(0.6);\n }\n to {\n opacity: 1;\n transform: scale(1);\n }\n}\n';function vne(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function xne(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne,"vega-lite":(e,t)=>Ene.compile(e,{config:t}).spec},One='\n\n \n \n \n',Fne="chart-wrapper";function Pne(e){return"function"==typeof e}function Nne(e,t,n,r){var i="".concat(t,'
'),o="
".concat(n,""),a=window.open("");a.document.write(i+e+o),a.document.title="".concat(Ane[r]," JSON Source")}function Ine(e,t){if(e.$schema){var n,r=R9(e.$schema);t&&t!==r.library&&console.warn("The given visualization spec is written in ".concat(Ane[r.library],", but mode argument sets ").concat(null!==(n=Ane[t])&&void 0!==n?n:t,"."));var i=r.library;return fne(Tne[i],"^".concat(r.version.slice(1)))||console.warn("The input spec uses ".concat(Ane[i]," ").concat(r.version,", but the current version of ").concat(Ane[i]," is v").concat(Tne[i],".")),i}return"mark"in e||"encoding"in e||"layer"in e||"hconcat"in e||"vconcat"in e||"facet"in e||"repeat"in e?"vega-lite":"marks"in e||"signals"in e||"scales"in e||"axes"in e?"vega":null!=t?t:"vega"}function Bne(e){return(t=e)&&"load"in t?e:kne.loader(e);var t}function jne(e){var t,n,r=null!==(t=null===(n=e.usermeta)||void 0===n?void 0:n.embedOptions)&&void 0!==t?t:{};return $o(r.defaultStyle)&&(r.defaultStyle=!1),r}function Lne(){return Lne=Dee(ite.mark((function e(t,n){var r,i,o,a,s,l,c,u,h,d,f,p=arguments;return ite.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=p.length>2&&void 0!==p[2]?p[2]:{},!$o(n)){e.next=10;break}return s=Bne(o.loader),e.t0=JSON,e.next=6,s.load(n);case 6:e.t1=e.sent,a=e.t0.parse.call(e.t0,e.t1),e.next=11;break;case 10:a=n;case 11:return l=jne(a),c=l.loader,s&&!c||(s=Bne(null!==(u=o.loader)&&void 0!==u?u:c)),e.next=16,zne(l,s);case 16:return h=e.sent,e.next=19,zne(o,s);case 19:return d=e.sent,f=_ne(_ne({},vne(d,h)),{},{config:Gi(null!==(r=d.config)&&void 0!==r?r:{},null!==(i=h.config)&&void 0!==i?i:{})}),e.next=23,Hne(t,a,f,s);case 23:return e.abrupt("return",e.sent);case 24:case"end":return e.stop()}}),e)}))),Lne.apply(this,arguments)}function zne(e,t){return Rne.apply(this,arguments)}function Rne(){return Rne=Dee(ite.mark((function e(t,n){var r,i,o;return ite.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!$o(t.config)){e.next=8;break}return e.t1=JSON,e.next=4,n.load(t.config);case 4:e.t2=e.sent,e.t0=e.t1.parse.call(e.t1,e.t2),e.next=9;break;case 8:e.t0=null!==(r=t.config)&&void 0!==r?r:{};case 9:if(i=e.t0,!$o(t.patch)){e.next=18;break}return e.t4=JSON,e.next=14,n.load(t.patch);case 14:e.t5=e.sent,e.t3=e.t4.parse.call(e.t4,e.t5),e.next=19;break;case 18:e.t3=t.patch;case 19:return o=e.t3,e.abrupt("return",_ne(_ne(_ne({},t),o?{patch:o}:{}),i?{config:i}:{}));case 21:case"end":return e.stop()}}),e)}))),Rne.apply(this,arguments)}function $ne(e){var t,n=e.getRootNode?e.getRootNode():document;return n instanceof ShadowRoot?{root:n,rootContainer:n}:{root:document,rootContainer:null!==(t=document.head)&&void 0!==t?t:document.body}}function Hne(e,t){return Une.apply(this,arguments)}function Une(){return Une=Dee(ite.mark((function e(t,n){var r,i,o,a,s,l,c,u,h,d,f,p,m,g,v,y,x,w,_,k,E,C,S,D,A,T,M,O,F,P,N,I,B,j,L,z,R,$,H,U,q,W,V,G,X,Y,J,Z,K,Q,ee,te=arguments;return ite.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(ee=function(){$&&document.removeEventListener("click",$),I.finalize()},u=te.length>2&&void 0!==te[2]?te[2]:{},h=te.length>3?te[3]:void 0,d=u.theme?Gi(b[u.theme],null!==(r=u.config)&&void 0!==r?r:{}):u.config,f=Bo(u.actions)?u.actions:vne({},Sne,null!==(i=u.actions)&&void 0!==i?i:{}),p=_ne(_ne({},Dne),u.i18n),m=null!==(o=u.renderer)&&void 0!==o?o:"canvas",g=null!==(a=u.logLevel)&&void 0!==a?a:kne.Warn,v=null!==(s=u.downloadFileName)&&void 0!==s?s:"visualization",y="string"==typeof t?document.querySelector(t):t){e.next=12;break}throw new Error("".concat(t," does not exist"));case 12:if(!1!==u.defaultStyle&&(x="vega-embed-style",w=$ne(y),_=w.root,k=w.rootContainer,_.getElementById(x)||((E=document.createElement("style")).id=x,E.innerHTML=void 0===u.defaultStyle||!0===u.defaultStyle?gne.toString():u.defaultStyle,k.appendChild(E))),C=Ine(n,u.mode),S=Mne[C](n,d),"vega-lite"===C&&S.$schema&&(D=R9(S.$schema),fne(Tne.vega,"^".concat(D.version.slice(1)))||console.warn("The compiled spec uses Vega ".concat(D.version,", but current version is v").concat(Tne.vega,"."))),y.classList.add("vega-embed"),f&&y.classList.add("has-actions"),y.innerHTML="",A=y,f&&((T=document.createElement("div")).classList.add(Fne),y.appendChild(T),A=T),(M=u.patch)&&(S=M instanceof Function?M(S):si(S,M,!0,!1).newDocument),u.formatLocale&&kne.formatLocale(u.formatLocale),u.timeFormatLocale&&kne.timeFormatLocale(u.timeFormatLocale),u.expressionFunctions)for(O in u.expressionFunctions)"fn"in(F=u.expressionFunctions[O])?kne.expressionFunction(O,F.fn,F.visitor):F instanceof Function&&kne.expressionFunction(O,F);return P=u.ast,N=kne.parse(S,"vega-lite"===C?{}:d,{ast:P}),(I=new(u.viewClass||kne.View)(N,_ne({loader:h,logLevel:g,renderer:m},P?{expr:null!==(l=null!==(c=kne.expressionInterpreter)&&void 0!==c?c:u.expr)&&void 0!==l?l:TG}:{}))).addSignalListener("autosize",((e,t)=>{var n=t.type;"fit-x"==n?(A.classList.add("fit-x"),A.classList.remove("fit-y")):"fit-y"==n?(A.classList.remove("fit-x"),A.classList.add("fit-y")):"fit"==n?A.classList.add("fit-x","fit-y"):A.classList.remove("fit-x","fit-y")})),!1!==u.tooltip&&(B=Pne(u.tooltip)?u.tooltip:new kee(!0===u.tooltip?{}:u.tooltip).call,I.tooltip(B)),void 0===(j=u.hover)&&(j="vega"===C),j&&(z=(L="boolean"==typeof j?{}:j).hoverSet,R=L.updateSet,I.hover(z,R)),u&&(null!=u.width&&I.width(u.width),null!=u.height&&I.height(u.height),null!=u.padding&&I.padding(u.padding)),e.next=37,I.initialize(A,u.bind).runAsync();case 37:if(!1!==f){if(H=y,!1!==u.defaultStyle&&((U=document.createElement("details")).title=p.CLICK_TO_VIEW_ACTIONS,y.append(U),H=U,(q=document.createElement("summary")).innerHTML=One,U.append(q),$=e=>{U.contains(e.target)||U.removeAttribute("open")},document.addEventListener("click",$)),W=document.createElement("div"),H.append(W),W.classList.add("vega-actions"),!0===f||!1!==f.export){V=bne(["svg","png"]);try{for(X=function(){var e=G.value;if(!0===f||!0===f.export||f.export[e]){var t=p["".concat(e.toUpperCase(),"_ACTION")],n=document.createElement("a");n.text=t,n.href="#",n.target="_blank",n.download="".concat(v,".").concat(e),n.addEventListener("mousedown",function(){var t=Dee(ite.mark((function t(n){var r;return ite.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n.preventDefault(),t.next=3,I.toImageURL(e,u.scaleFactor);case 3:r=t.sent,this.href=r;case 5:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()),W.append(n)}},V.s();!(G=V.n()).done;)X()}catch(e){V.e(e)}finally{V.f()}}!0!==f&&!1===f.source||((Y=document.createElement("a")).text=p.SOURCE_ACTION,Y.href="#",Y.addEventListener("click",(function(e){var t,r;Nne(wi()(n),null!==(t=u.sourceHeader)&&void 0!==t?t:"",null!==(r=u.sourceFooter)&&void 0!==r?r:"",C),e.preventDefault()})),W.append(Y)),"vega-lite"!==C||!0!==f&&!1===f.compiled||((J=document.createElement("a")).text=p.COMPILED_ACTION,J.href="#",J.addEventListener("click",(function(e){var t,n;Nne(wi()(S),null!==(t=u.sourceHeader)&&void 0!==t?t:"",null!==(n=u.sourceFooter)&&void 0!==n?n:"","vega"),e.preventDefault()})),W.append(J)),!0!==f&&!1===f.editor||(K=null!==(Z=u.editorUrl)&&void 0!==Z?Z:"https://vega.github.io/editor/",(Q=document.createElement("a")).text=p.EDITOR_ACTION,Q.href="#",Q.addEventListener("click",(function(e){pne(window,K,{config:d,mode:C,renderer:m,spec:wi()(n)}),e.preventDefault()})),W.append(Q))}return e.abrupt("return",{view:I,spec:n,vgSpec:S,finalize:ee,embedOptions:u});case 39:case"end":return e.stop()}}),e)}))),Une.apply(this,arguments)}var qne="http://www.w3.org/1999/xhtml";const Wne={svg:"http://www.w3.org/2000/svg",xhtml:qne,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Vne(e){var t=e+="",n=t.indexOf(":");return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),Wne.hasOwnProperty(t)?{space:Wne[t],local:e}:e}function Gne(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===qne&&t.documentElement.namespaceURI===qne?t.createElement(e):t.createElementNS(n,e)}}function Xne(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Yne(e){var t=Vne(e);return(t.local?Xne:Gne)(t)}var Jne=0;function Zne(){this._="@"+(++Jne).toString(36)}Zne.prototype=function(){return new Zne}.prototype={constructor:Zne,get:function(e){for(var t=this._;!(t in e);)if(!(e=e.parentNode))return;return e[t]},set:function(e,t){return e[this._]=t},remove:function(e){return this._ in e&&delete e[this._]},toString:function(){return this._}};var Kne=function(e){return function(){return this.matches(e)}};if("undefined"!=typeof document){var Qne=document.documentElement;if(!Qne.matches){var ere=Qne.webkitMatchesSelector||Qne.msMatchesSelector||Qne.mozMatchesSelector||Qne.oMatchesSelector;Kne=function(e){return function(){return ere.call(this,e)}}}}const tre=Kne;var nre={},rre=null;function ire(e,t,n){return e=ore(e,t,n),function(t){var n=t.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||e.call(this,t)}}function ore(e,t,n){return function(r){var i=rre;rre=r;try{e.call(this,this.__data__,t,n)}finally{rre=i}}}function are(e){return e.trim().split(/^|\s+/).map((function(e){var t="",n=e.indexOf(".");return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}}))}function sre(e){return function(){var t=this.__on;if(t){for(var n,r=0,i=-1,o=t.length;rt?1:e>=t?0:NaN}function vre(e){return function(){this.removeAttribute(e)}}function yre(e){return function(){this.removeAttributeNS(e.space,e.local)}}function bre(e,t){return function(){this.setAttribute(e,t)}}function xre(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function wre(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}}function _re(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function kre(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function Ere(e){return function(){this.style.removeProperty(e)}}function Cre(e,t,n){return function(){this.style.setProperty(e,t,n)}}function Sre(e,t,n){return function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function Dre(e){return function(){delete this[e]}}function Are(e,t){return function(){this[e]=t}}function Tre(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}function Mre(e){return e.trim().split(/^|\s+/)}function Ore(e){return e.classList||new Fre(e)}function Fre(e){this._node=e,this._names=Mre(e.getAttribute("class")||"")}function Pre(e,t){for(var n=Ore(e),r=-1,i=t.length;++r=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};var Zre,Kre=[null];function Qre(e,t){this._groups=e,this._parents=t}function eie(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function tie(e,t){var n=eie(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}Qre.prototype=function(){return new Qre([[document.documentElement]],Kre)}.prototype={constructor:Qre,select:function(e){"function"!=typeof e&&(e=ure(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i=w&&(w=x+1);!(b=v[w])&&++w=0;)(r=i[o])&&(a&&a!==r.nextSibling&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=gre);for(var n=this._groups,r=n.length,i=new Array(r),o=0;o1?this.each((null==t?Ere:"function"==typeof t?Sre:Cre)(e,t,null==n?"":n)):kre(r=this.node()).getComputedStyle(r,null).getPropertyValue(e)},property:function(e,t){return arguments.length>1?this.each((null==t?Dre:"function"==typeof t?Tre:Are)(e,t)):this.node()[e]},classed:function(e,t){var n=Mre(e+"");if(arguments.length<2){for(var r=Ore(this.node()),i=-1,o=n.length;++i0&&(o=0)}return o>0?e.slice(0,o)+e.slice(n+1):e},"%":function(e,t){return(100*e).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:function(e){return Math.round(e).toString(10)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return tie(100*e,t)},r:tie,s:function(e,t){var n=eie(e,t);if(!n)return e+"";var r=n[0],i=n[1],o=i-(Zre=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+eie(e,Math.max(0,t+o-1))[0]},X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};var rie=/^(?:(.)?([<>=^]))?([+\-\( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?([a-z%])?$/i;function iie(e){return new oie(e)}function oie(e){if(!(t=rie.exec(e)))throw new Error("invalid format: "+e);var t,n=t[1]||" ",r=t[2]||">",i=t[3]||"-",o=t[4]||"",a=!!t[5],s=t[6]&&+t[6],l=!!t[7],c=t[8]&&+t[8].slice(1),u=t[9]||"";"n"===u?(l=!0,u="g"):nie[u]||(u=""),(a||"0"===n&&"="===r)&&(a=!0,n="0",r="="),this.fill=n,this.align=r,this.sign=i,this.symbol=o,this.zero=a,this.width=s,this.comma=l,this.precision=c,this.type=u}oie.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(null==this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(null==this.precision?"":"."+Math.max(0,0|this.precision))+this.type};var aie,sie=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function lie(e){return e}function cie(e){var t,n,r=e.grouping&&e.thousands?(t=e.grouping,n=e.thousands,function(e,r){for(var i=e.length,o=[],a=0,s=t[0],l=0;i>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),o.push(e.substring(i-=s,i+s)),!((l+=s+1)>r));)s=t[a=(a+1)%t.length];return o.reverse().join(n)}):lie,i=e.currency,o=e.decimal;function a(e){var t=(e=iie(e)).fill,n=e.align,a=e.sign,s=e.symbol,l=e.zero,c=e.width,u=e.comma,h=e.precision,d=e.type,f="$"===s?i[0]:"#"===s&&/[boxX]/.test(d)?"0"+d.toLowerCase():"",p="$"===s?i[1]:/[%p]/.test(d)?"%":"",m=nie[d],g=!d||/[defgprs%]/.test(d);function v(e){var i,s,v,y=f,b=p;if("c"===d)b=m(e)+b,e="";else{var x=((e=+e)<0||1/e<0)&&(e*=-1,!0);if(e=m(e,h),x)for(i=-1,s=e.length,x=!1;++i(v=e.charCodeAt(i))||v>57){b=(46===v?o+e.slice(i+1):e.slice(i))+b,e=e.slice(0,i);break}}u&&!l&&(e=r(e,1/0));var w=y.length+e.length+b.length,_=w>1)+y+e+b+_.slice(w)}return _+y+e+b}return h=null==h?d?6:12:/[gprs]/.test(d)?Math.max(1,Math.min(21,h)):Math.max(0,Math.min(20,h)),v.toString=function(){return e+""},v}return{format:a,formatPrefix:function(e,t){var n,r=a(((e=iie(e)).type="f",e)),i=3*Math.max(-8,Math.min(8,Math.floor((n=t,((n=eie(Math.abs(n)))?n[1]:NaN)/3)))),o=Math.pow(10,-i),s=sie[8+i/3];return function(e){return r(o*e)+s}}}}(aie=cie({decimal:".",thousands:",",grouping:[3],currency:["$",""]})).format,aie.formatPrefix;var uie={value:function(){}};function hie(e){this._=e}function die(e,t){return e.trim().split(/^|\s+/).map((function(e){var n="",r=e.indexOf(".");if(r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),e&&!t.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:n}}))}function fie(e,t){for(var n,r=0,i=e.length;rt?1:e>=t?0:NaN}hie.prototype=function(){for(var e,t=0,n=arguments.length,r={};t0)for(var n,r,i=new Array(n),o=0;o>>1;e(t[o],n)<0?r=o+1:i=o}return r},right:function(t,n,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r>>1;e(t[o],n)>0?i=o:r=o+1}return r}}}(mie);gie.right,gie.left;var vie=Array.prototype;vie.slice,vie.map,Math.sqrt(50),Math.sqrt(10),Math.sqrt(2);var yie=Array.prototype;function bie(e){return e.match(/.{6}/g).map((function(e){return"#"+e}))}function xie(e){return function t(n){function r(t,r){var i=e((t=lw(t)).h,(r=lw(r)).h),o=pn(t.s,r.s),a=pn(t.l,r.l),s=pn(t.opacity,r.opacity);return function(e){return t.h=i(e),t.s=o(e),t.l=a(Math.pow(e,n)),t.opacity=s(e),t+""}}return n=+n,r.gamma=t,r}(1)}yie.map,yie.slice,bie("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),bie("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6"),bie("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9"),bie("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5"),xie((function(e,t){var n=t-e;return n?fn(e,n>180||n<-180?n-360*Math.round(n/360):n):dn(isNaN(e)?t:e)}));var wie=xie(pn);function _ie(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}wie(lw(300,.5,0),lw(-240,.5,1)),wie(lw(-100,.75,.35),lw(80,1.5,.8)),wie(lw(260,.75,.35),lw(80,1.5,.8)),lw(),_ie(bie("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),_ie(bie("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),_ie(bie("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),_ie(bie("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921")),"function"==typeof Symbol&&Symbol.iterator;var kie={};const Eie=function(e,t,n,r){try{return function(e,t){return Lne.apply(this,arguments)}(`#${t}`,n,{tooltip:!1,actions:!1,theme:"dark"}).then((e=>{e.view.addEventListener("click",(function(e,t){r.clickHandler(t.datum)}))})).catch(console.warn)}catch(e){throw e}};kie.renderMatrix=function(e,t,n,r){return Eie(0,t,n,r)},kie.renderBarChart=function(e,t,n,r){return Eie(0,t,n,r)},kie.renderScatterplot=function(e,t,n,r){return Eie(0,t,n,r)},kie.renderCanvasScatterplot=function(e,t,n,r){return Eie(0,t,n,r)};const Cie=kie,Sie=function(e){return Math.round(10*e)/10},Die=function(e){const t=Math.pow(10,4);return Math.round(e*t)/t},Aie=function(e){return Object.keys(e).forEach((t=>{null==e[t]&&delete e[t]})),e},Tie=function(e){return btoa(encodeURIComponent(e))},Mie=function(e){try{return decodeURIComponent(atob(e))}catch(e){return""}},Oie=function(e){return $(e).serializeArray().reduce((function(e,t){return e[t.name]=t.value,e}),{})},Fie=function(e,t,n){return t?$(e).addClass(n):$(e).removeClass(n)},Pie=function(e,t){Fie(e,!t,"d-none")},Nie=function(e,t){Fie(e,t,"minerva-green"),Fie(e,!t,"minerva-white")},Iie=function(e){C.copy(e)},Bie=function(e,t,n){const r=t.reduce((function(e,t){return t.TileSize=t.TileSize||[1024,1024],t.maxLevel=t.maxLevel||0,e[t.Name]=t,e}),{});return e[n].map((function(e){return e.map((function(e){return this.image_map[e]}),{image_map:r})}),{image_map:r})},jie=function(e){const t="Copy to Clipboard";$(this).tooltip({title:t}),$(this).on("relabel",(function(e,t){$(this).attr("data-original-title",t).tooltip("show")})),$(this).click((function(){return $(this).trigger("relabel",["Copied"]),Iie(e.hashstate.bufferYaml),setTimeout(function(){$(this).trigger("relabel",[t])}.bind(this),1e3),!1}))},Lie=function(){const e="Copy to Clipboard";$(this).tooltip({title:e}),$(this).on("relabel",(function(e,t){$(this).attr("data-original-title",t).tooltip("show")})),$(this).on("click",(function(){const t=$(this).closest("form"),n=Oie(t);return $(this).trigger("relabel",["Copied"]),Iie(n.copy_content),setTimeout((function(){$(this).trigger("relabel",[e])}),1e3),!1}))},zie=function(e,t){this.trackers=e.trackers,this.pollycache=e.pollycache,this.showdown=new showdown.Converter({tables:!0}),this.osd=t,this.hashstate=e};zie.prototype={init:function(e){const t=this.hashstate;t.v=[t.v[0],.5*e,.5],t.newExhibit(),window.onpopstate=function(e){t.popState(e),this.loadPolly(t.waypoint.Description,t.speech_bucket),this.newView(!0)}.bind(this),window.onpopstate(),this.edit&&t.startEditing(),t.pushState(),window.onpopstate(),$("#exhibit-name").text(t.exhibit.Name),$(".minerva-modal_copy_button").each(Lie),$(".minerva-zoom-in").tooltip({title:"Zoom in"}),$(".minerva-zoom-out").tooltip({title:"Zoom out"}),$(".minerva-arrow-switch").tooltip({title:"Share Arrow"}),$(".minerva-lasso-switch").tooltip({title:"Share Region"}),$(".minerva-draw-switch").tooltip({title:"Share Box"}),$(".minerva-duplicate-view").tooltip({title:"Clone linked view"}),$("#copy_link_modal").on("hidden.bs.modal",t.cancelDrawing.bind(t)),$(".minerva-edit_description_modal").on("hidden.bs.modal",t.cancelDrawing.bind(t)),$(".minerva-toggle-sidebar").click((function(e){e.preventDefault(),$(".minerva-sidebar-menu").toggleClass("toggled")})),$(".minerva-toggle-legend").click((function(e){e.preventDefault(),$(".minerva-legend").toggleClass("toggled")})),$(".minerva-leftArrow").click(this,(function(e){const t=e.data.hashstate;0==t.w?(t.s=t.s-1,t.w=t.waypoints.length-1):t.w=t.w-1,t.pushState(),window.onpopstate()})),$(".minerva-rightArrow").click(this,(function(e){const t=e.data.hashstate;t.w==t.waypoints.length-1?(t.s=t.s+1,t.w=0):t.w=t.w+1,t.pushState(),window.onpopstate()})),$(".minerva-toc-button").click(this,(function(e){const t=e.data.hashstate;"outline"!=t.waypoint.Mode&&(t.s=0,t.pushState(),window.onpopstate())})),$(".clear-switch").click(this,(function(e){const t=e.data.hashstate;t.bufferWaypoint=void 0,t.startEditing(),t.pushState(),window.onpopstate()})),$(".minerva-arrow-switch").click(this,(function(e){const t=e.data.hashstate,n=e.data;t.drawType="arrow",t.drawing?t.cancelDrawing(t):t.startDrawing(t),t.pushState(),n.newView(!1)})),$(".minerva-lasso-switch").click(this,(function(e){const t=e.data.hashstate,n=e.data;t.drawType="lasso",t.drawing?t.cancelDrawing(t):t.startDrawing(t),t.pushState(),n.newView(!1)})),$(".minerva-draw-switch").click(this,(function(e){const t=e.data.hashstate,n=e.data;t.drawType="box",t.drawing?t.cancelDrawing(t):t.startDrawing(t),t.pushState(),n.newView(!1)}));var n=t.el.getElementsByClassName("minerva-depth-legend")[0],r=t.el.getElementsByClassName("minerva-z-slider")[0];r.max=t.cgs.length-1,r.value=t.g,r.min=0,t.design.is3d&&t.design.z_scale?n.innerText=Sie(t.g/t.design.z_scale)+" μm":t.design.is3d&&(n.innerText=t.group.Name);const i=this;r.addEventListener("input",(function(){t.g=r.value,t.design.z_scale?n.innerText=Sie(t.g/t.design.z_scale)+" μm":n.innerText=t.group.Name,i.newView(!0)}),!1),$(".minerva-edit_description_modal form").submit(this,(function(e){const t=e.data.hashstate,n=Oie(e.target);$(this).closest(".modal").modal("hide"),t.d=Tie(n.d),$(".minerva-copy_link_modal").modal("show");const r=t.location("host")+t.location("pathname"),i=t.makeHash(["d","g","m","a","v","o","p"]);return t.el.getElementsByClassName("minerva-copy_link")[0].value=r+i,!1}))},newView:function(e){const t=this.hashstate;if(this.osd.newView(e),e){this.addChannelLegends(),t.design.is3d?$(".minerva-channel-label").hide():this.addGroups(),this.addMasks(),this.newStories(),t.edit?this.fillWaypointEdit():this.fillWaypointView(),$(".step-back").click(this,(function(e){const t=e.data.hashstate;t.w-=1,t.pushState(),window.onpopstate()})),$(".step-next").click(this,(function(e){const t=e.data.hashstate;t.w+=1,t.pushState(),window.onpopstate()}));const e=this;$(".minerva-edit_copy_button").each((function(){jie.call(this,e)})),$(".minerva-edit_toggle_arrow").click(this,(function(e){const t=e.data.hashstate,n=e.data,r=t.waypoint.Arrows[0],i=r.HideArrow;r.HideArrow=!i,n.newView(!0)}));const n=this.getLogoImage();n.style="width: 85px";const r="https://minerva.im",i="minerva-logo-anchor",o="minerva-sidebar-menu",a=document.getElementsByClassName(o)[0];[...a.getElementsByClassName(i)].forEach((e=>{a.removeChild(e)}));const s=document.createElement("a"),l=document.createElement("div");s.className=`position-fixed ${i}`,s.style.cssText="\n left: 0.5em;\n bottom: 0.5em;\n display: block;\n color: inherit;\n line-height: 0.9em;\n text-decoration: none;\n padding: 0.4em 0.3em 0.2em;\n background-color: rgba(0,0,0,0.8);\n ",s.setAttribute("href",r),l.innerText="Made with",s.appendChild(l),s.appendChild(n),a.appendChild(s)}if(t.edit){const e=this,n=t.el.getElementsByClassName("minerva-mask-picker")[0];n.innerHTML="",t.masks.forEach((function(e){const t=document.createElement("option");t.innerText=e.Name,n.appendChild(t)})),$(".minerva-mask-picker").off("changed.bs.select"),$(".minerva-mask-picker").on("changed.bs.select",(function(n,r,i,o){const a=$(this).find("option").eq(r).text();t.waypoint.Masks=t.masks.map((e=>e.Name)).filter((function(e){return i?o.includes(e)||e==a:o.includes(e)&&e!=a}));const s=t.active_masks.map((e=>e.Name)).filter((function(e){return t.waypoint.Masks.includes(e)}));t.waypoint.ActiveMasks=s,t.m=s.map((e=>ooe(t.masks,e))),e.newView(!0)}));const r=t.el.getElementsByClassName("minerva-group-picker")[0];r.innerHTML="",t.cgs.forEach((function(e){const t=document.createElement("option");t.innerText=e.Name,r.appendChild(t)})),$(".minerva-group-picker").off("changed.bs.select"),$(".minerva-group-picker").on("changed.bs.select",(function(n,r,i,o){const a=$(this).find("option").eq(r).text();t.waypoint.Groups=t.cgs.map((e=>e.Name)).filter((function(e){return i?o.includes(e)||e==a:o.includes(e)&&e!=a}));const s=t.waypoint.Groups,l=t.cgs[t.g].Name;s.length>0&&!s.includes(l)&&(t.g=ooe(t.cgs,s[0])),e.newView(!0)}))}const n=t.edit,r=t.noHome,i=t.drawing,o=t.drawType,a="#"+t.id+" ";Pie(a+".minerva-home-button",!r&&!n&&"outline"==t.waypoint.Mode),Pie(a+".minerva-toc-button",!n&&"outline"!=t.waypoint.Mode),Pie(a+".minerva-channel-groups-legend",!t.design.is3d),Pie(a+".minerva-z-slider-legend",t.design.is3d),Pie(a+".minerva-toggle-legend",!t.design.is3d),Pie(a+".minerva-only-3d",t.design.is3d),Pie(a+".minerva-editControls",n),Pie(a+".minerva-waypointControls",!n&&t.totalCount>1),Pie(a+".minerva-waypointCount",!n&&t.totalCount>1),Pie(a+".minerva-waypointName",!n),function(e,t,n){n?$(e).css("cursor","crosshair"):$(e).css("cursor","default")}(a+".minerva-openseadragon *",0,i),Nie(a+".minerva-draw-switch *",i&&"box"==o),Nie(a+".minerva-lasso-switch *",i&&"lasso"==o),Nie(a+".minerva-arrow-switch *",i&&"arrow"==o);const s=!n&&1==t.totalCount&&!Mie(t.d);Fie(a+".minerva-sidebar-menu",s,"minimal"),Pie(a+".minerva-welcome-nav",!s),s&&r&&(Fie(a+".minerva-sidebar-menu",!0,"toggled"),Pie(a+".minerva-toggle-sidebar",!1));const l="H&E"==t.group.Name;Pie(a+".minerva-welcome-markers",!l)},loadPolly:function(e,t){const n=E()(e),r=this.hashstate,i="#"+r.id+" ";if(Pie(i+".minerva-audioControls",!!t),t){const e="https://s3.amazonaws.com/"+t+"/speech/"+n+".mp3";r.el.getElementsByClassName("minerva-audioSource")[0].src=e,r.el.getElementsByClassName("minerva-audioPlayback")[0].load()}},drawLowerBounds:function(e){const t=this.hashstate,n=[e.x,e.y];t.o=n.concat([0,0]),this.newView(!1)},computeBounds:function(e,t,n){return et.includes(e.Name)));n.length||e.edit?$(".minerva-mask-label").show():$(".minerva-mask-label").hide(),n.forEach((function(t){const n=ooe(e.masks,t.Name);this.addMask(t,n)}),this)},addMask:function(e,t){const n=this.hashstate;var r=document.createElement("a");r=Object.assign(r,{className:n.m.includes(t)?"nav-link active":"nav-link",href:"javascript:;",innerText:e.Name,title:e.Path});var i=!!n.m.includes(t);r.setAttribute("aria-selected",i),n.el.getElementsByClassName("minerva-mask-layers")[0].appendChild(r),$(r).click(this,(function(e){const n=e.data.hashstate,r=n.design.default_group,i=ooe(n.cgs,r);-1!=i&&(n.g=i),n.m.includes(t)?n.m=n.m.filter((e=>e!=t)):n.m.push(t),n.pushState(),window.onpopstate()}))},addGroups:function(){const e=this.hashstate;$(".minerva-channel-groups").empty(),$(".minerva-channel-groups-legend").empty();const t=e.waypoint.Groups||[],n=e.cgs.filter((e=>t.includes(e.Name)));n.length||e.edit?$(".minerva-channel-label").show():$(".minerva-channel-label").hide();const r=e.el.getElementsByClassName("minerva-channel-groups")[0];n.forEach((function(t){const n=ooe(e.cgs,t.Name);this.addGroup(t,n,r,!1)}),this);const i=e.cgs.filter((e=>e.Channels.length>1)),o=e.cgs.filter((e=>1==e.Channels.length)),a=e.el.getElementsByClassName("minerva-channel-groups-legend")[0];var s;i.length>0&&((s=document.createElement("h6")).innerText="Channel Groups:",s.className="m-1",a.appendChild(s)),i.forEach((function(t){const n=ooe(e.cgs,t.Name);this.addGroup(t,n,a,!0)}),this),o.length>0&&((s=document.createElement("h6")).innerText="Channels:",s.className="m-1",a.appendChild(s)),o.forEach((function(t){const n=ooe(e.cgs,t.Name);this.addGroup(t,n,a,!0)}),this)},addGroup:function(e,t,n,r){const i=this.hashstate;var o=document.createElement("a"),a=i.g===t;(o=Object.assign(o,{className:a?"nav-link active":"nav-link",style:"padding-right: 40px; position: relative;",href:"javascript:;",innerText:e.Name})).setAttribute("data-toggle","pill");var s=void 0;for(var l in i.stories)for(var c in i.stories[l].Waypoints){var u=i.stories[l].Waypoints[c];u.Group==e.Name&&(null==s||u.DefineGroup)&&(s=[l,c])}var h=document.createElement("a");a&&r&&s&&(h=Object.assign(h,{className:"text-white",style:"position: absolute; right: 5px;",href:"javascript:;",innerText:"MORE"}),o.appendChild(h),$(h).click(this,(function(e){i.s=s[0],i.w=s[1],i.pushState(),window.onpopstate()}))),n.appendChild(o),$(o).click(this,(function(e){i.g=t,i.pushState(),window.onpopstate()}))},addChannelLegends:function(){const e=this.hashstate;$(".minerva-channel-legend").empty(),e.channels.forEach(this.addChannelLegend,this)},addChannelLegend:function(e,t){const n=this.indexColor(t,"#FFF"),r=this.hashstate;var i=document.createElement("span");i.className="legend-label pl-3",i.innerText=e;var o=document.createElement("span");$(o).css("background-color",n),o.className="badge legend-color",o.innerText=" ";var a=r.el.getElementsByClassName("minerva-channel-legend")[0],s=document.createElement("li");s.appendChild(o),s.appendChild(i),a.appendChild(s)},channelOrders:function(e){return e.reduce((function(e,t,n){return e[t]=n,e}),{})},indexColor:function(e,t){const n=this.hashstate.colors;return void 0===e?t:"#"+n[e%n.length]},newStories:function(){const e=this.hashstate,t=e.el.getElementsByClassName("minerva-story-container")[0];if(function(e){for(;e.firstChild;)e.removeChild(e.firstChild)}(t),"outline"==e.waypoint.Mode&&e.totalCount>1){var n=document.createElement("p");n.innerText="Table of Contents",t.appendChild(n);var r=document.createElement("div"),i=document.createElement("ol");e.stories.forEach((function(e,t){"explore"!=e.Mode&&this.addStory(e,t,i)}),this),r.appendChild(i),t.appendChild(r)}const o=document.createElement("p"),a=e.design.footer;o.innerHTML=this.showdown.makeHtml(a),t.appendChild(o)},getLogoImage:function(){const e=new DOMParser,t=''+['','',''].join("")+"";return e.parseFromString(t,"image/svg+xml").children[0]},addStory:function(e,t,n){e.Waypoints.forEach((function(e,r){this.addWaypoint(e,r,t,n)}),this)},addWaypoint:function(e,t,n,r){var i=document.createElement("li"),o=document.createElement("a");o=Object.assign(o,{className:"",href:"javascript:;",innerText:e.Name}),$(o).click(this,(function(e){const r=e.data.hashstate;r.s=n,r.w=t,r.pushState(),window.onpopstate()})),i.appendChild(o),r.appendChild(i)},fillWaypointView:function(){const e=this.hashstate,t=e.waypoint,n=e.el.getElementsByClassName("minerva-viewer-waypoint")[0],r=e.el.getElementsByClassName("minerva-waypointName")[0];e.el.getElementsByClassName("minerva-waypointCount")[0].innerText=e.currentCount+"/"+e.totalCount,"outline"!==t.Mode?r.innerText=t.Name:r.innerText="";const i=$(".minerva-waypoint-content").scrollTop();$(n).css("height",$(n).height());var o=t.Description;e.cell_type_links_map.forEach((function(e,t){var n=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),r=RegExp(n+"s?","gi");o=o.replace(r,(function(t){return"["+t+"]("+e+")"}))})),e.marker_links_map.forEach((function(e,t){var n=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),r=RegExp("(^|[^0-9A-Za-z`])("+n+")([^0-9A-Za-z`]|$)","gi");o=o.replace(r,(function(e,t,n,r){return e.replace(n,"`"+n+"`","gi")}))})),e.marker_links_map.forEach((function(e,t){var n=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),r=RegExp("`"+n+"`","gi");o=o.replace(r,(function(t){return"["+t+"]("+e+")"}))}));const a=new Set(["VisMatrix","VisBarChart","VisScatterplot","VisCanvasScatterplot"].filter((e=>t[e]))),s=new Set,l=this,c=function(e){s.add(e),[...a].every((e=>s.has(e)))&&($(".minerva-waypoint-content").scrollTop(i),$(n).css("height",""),l.colorMarkerText(n))},u=function(t){var n=t.type.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");const r=RegExp(n,"gi"),i=aoe(e.masks,r);i>=0&&(e.m=[i]),l.newView(!0)},h=function(t){var n=t.channel,r=t.type.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");const i=RegExp(r,"gi"),o=aoe(e.masks,i);o>=0&&(e.m=[o]);const a=ooe(e.cgs,n);if(a>=0)e.g=a;else{var s=n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");const t=RegExp(s,"gi"),r=aoe(e.cgs,t);r>=0&&(e.g=r)}l.newView(!0)},d=function(t){var n=[parseInt(t.X_position),parseInt(t.Y_position)],r=l.osd.viewer.viewport.imageToViewportCoordinates(n[0],n[1]);e.v=[10,r.x,r.y],l.osd.newView(!0),e.a=[r.x,r.y]},f=function(e,n,r){const i={VisMatrix:Cie.renderMatrix,VisBarChart:Cie.renderBarChart,VisScatterplot:Cie.renderScatterplot,VisCanvasScatterplot:Cie.renderCanvasScatterplot}[e],o={VisMatrix:h,VisBarChart:u,VisScatterplot:d,VisCanvasScatterplot:d}[e];i(n,r,t[e],{clickHandler:o}).then((()=>c(e)))};var p=document.createElement("div");if(Array.from(a).forEach((function(t){var r=t+"-"+e.s+"-"+e.w,i=n.getElementsByClassName(r);i[0]&&p.appendChild(i[0])})),n.innerHTML=this.showdown.makeHtml(o),t.Image){var m=document.createElement("img");m.src=t.Image,n.appendChild(m)}Array.from(a).forEach((function(t){const r=Array.from(n.getElementsByTagName("code")).filter((e=>e.innerText==t))[0],i=document.createElement("div");i.style.cssText="width:100%",i.className=t+"-"+e.s+"-"+e.w,i.id=t+"-"+e.id+"-"+e.s+"-"+e.w;const o=p.getElementsByClassName(i.className);o[0]&&r?($(r).replaceWith(o[0]),c(t)):r?($(r).replaceWith(i),f(t,n,i.id)):(n.appendChild(i),f(t,n,i.id))})),c("")},colorMarkerText:function(e){const t=this.hashstate,n=this.channelOrders(t.channels),r=e.getElementsByTagName("code");for(var i=0;iooe(t,e)));return n.length<2?[-1].concat(n):n},Gie=function(e,t){return(e.Arrows||[{}])[0].Point||[-100,-100]},Xie=function(e,t){const n=e.Group;return ooe(t,n)},Yie=function(e){return[e.Zoom,e.Pan[0],e.Pan[1]]},Jie=function(e){return e.Polygon||Kie([])},Zie=function(e){return[e.Overlays[0].x,e.Overlays[0].y,e.Overlays[0].width,e.Overlays[0].height]};var Kie=function(e){var t="";return e.forEach((function(e){t+=e.x.toFixed(5)+","+e.y.toFixed(5)+","})),t=t.slice(0,-1),$ie().compressToEncodedURIComponent(t)};const Qie=function(e,t,n){return e.reduce((function(e,r){var i=t[r]||0;return i.constructor===Array&&(i=i.join("_")),e+n+r+"="+i}),"").slice(1)},eoe=function(e){const t=e.reduce((function(e,t){if(t){const n=t.split("="),r=n.slice(1).join("=")||"1",i=r.split("_");e[n[0]]=i.length>1?i:r}return e}),{});return t},toe=function(e,t){return t.then((function(e){return"Anonymous"}))},noe=function(e,t){this.trackers=[],this.pollycache={},this.embedded=t.embedded||!1,this.authenticate=t.authenticate||toe,this.speech_bucket=t.speech_bucket||"",this.marker_links_map=t.marker_links_map,this.marker_alias_map=t.marker_alias_map,this.cell_type_links_map=t.cell_type_links_map,this.cell_type_alias_map=t.cell_type_alias_map,this.exhibit=e,this.el=t.el,this.id=t.id,this.customPopState=t.customPopState||!1,this.customPushState=t.customPushState||!1,this.customWelcome=t.customWelcome||"",this.hideWelcome=t.hideWelcome||!1,this.noHome=t.noHome||!1,this.state={buffer:{waypoint:void 0},drawType:"lasso",changed:!1,design:{},m:[-1],w:[0],g:0,s:0,a:[-100,-100],v:[1e-100,.5,.5],o:[-100,-100,1,1],p:[],name:"",description:"",edit:!1,drawing:0},this.newExhibit()};noe.prototype={get bufferWaypoint(){if(void 0===this.state.buffer.waypoint){const e=this.viewport;return Aie({Zoom:e.scale,Pan:[e.pan.x,e.pan.y],Arrows:[{Point:this.a,Text:"",HideArrow:!1}],ActiveMasks:void 0,Masks:void 0,Polygon:this.p,Group:this.group.Name,Groups:void 0,Description:"",Name:"Untitled",Overlays:[this.overlay]})}return this.state.buffer.waypoint},set bufferWaypoint(e){this.state.buffer.waypoint=e},location:function(e){return decodeURIComponent(location[e])},get search(){const e=this.location("search").slice(1).split("&");return eoe(e)},get hash(){const e=this.location("hash").slice(1).split("#");return eoe(e)},get url(){return this.location("pathname")+this.location("search")+this.location("hash")},get searchKeys(){const e=Object.keys(this.search);return["edit"].filter((t=>e.includes(t)))},get hashKeys(){return"tag"==this.waypoint.Mode||this.isSharedLink?["d","s","w","g","m","a","v","o","p"]:["s","w","g","m","a","v","o","p"]},set edit(e){this.state.edit=!!e},get edit(){return!!this.state.edit},get omero_cookie(){const e=this,t=new Promise((function(t,n){const r=".minerva-password_modal";$(e.el).find(r).modal("show"),$(e.el).find(r).find("form").submit((function(n){$(e.el).find(r).find("form").off(),$(this).closest(".modal").modal("hide");const i=parseForm(n.target).p;return t(i),!1}))}));return function(e,t){return t.then((function(e){return fetch("https://omero.hms.harvard.edu/api/v0/token/",{mode:"no-cors"}).then((function(t){return fetch("https://omero.hms.harvard.edu/api/v0/login/",{method:"POST",body:JSON.stringify({csrfmiddlewaretoken:t.data,username:"jth30",password:e,server:1})}).then((function(e){return"csrftoken="+t.data+";sessionid="+e.eventContext.sessionUuid+";"}))}))}))}(0,t)},get token(){const e=new Promise((function(e,t){e("MEETING@lsp2")}));return this.authenticate("john_hoffer@hms.harvard.edu",e)},get drawType(){return this.state.drawType},set drawType(e){this.state.drawType=e},get drawing(){return this.state.drawing},set drawing(e){const t=parseInt(e,10);this.state.drawing=Uie(t,3)},get v(){return this.state.v},set v(e){this.state.v=e.map(parseFloat)},get a(){return this.state.a},set a(e){this.state.a=e.map(parseFloat)},get m(){const e=this.state.m;return 0==this.masks.length?[-1]:e},set m(e){Array.isArray(e)?this.state.m=e.map((e=>parseInt(e,10))):this.state.m=[-1]},get g(){const e=this.state.g;return ei?n+r.Waypoints.length:n}),1)},get totalCount(){return this.stories.reduce((function(e,t){return e+t.Waypoints.length}),0)},get isSharedLink(){const e=this.hash.hasOwnProperty("d"),t=!this.hash.hasOwnProperty("s"),n=0==this.stories.filter((e=>"tag"==e.Mode)).length;return e&&(t||n)},get isMissingHash(){const e=!this.hash.hasOwnProperty("s");return!this.isSharedLink&&e},get story(){return this.stories[this.s]},set story(e){const t=this.stories;t[this.s]=e,this.stories=t},get active_masks(){const e=this.masks;return this.m.map((function(t){return e[t]})).filter((e=>null!=e))},get group(){return this.cgs[this.g]},get colors(){return this.group.Colors.concat(this.active_masks.reduce(((e,t)=>e.concat(t.Colors||[])),[]))},get channels(){return this.group.Channels.concat(this.active_masks.reduce(((e,t)=>e.concat(t.Channels||[])),[]))},get waypoints(){return(this.story||{}).Waypoints||[]},set waypoints(e){const t=this.story;t.Waypoints=e,this.story=t},get waypoint(){if(this.edit)return this.bufferWaypoint;var e=this.waypoints[this.w];return e&&!e.Overlays&&(e.Overlays=[{x:-100,y:-100,width:1,height:1}]),e},set waypoint(e){if(this.edit)this.bufferWaypoint=e;else{const t=this.waypoints;t[this.w]=e,this.waypoints=t}},get lensing(){const e=this.waypoint,{Lensing:t}=this.exhibit;return e?e.Lensing:t},get viewport(){const e=this.v;return{scale:e[0],pan:new OpenSeadragon.Point(e[1],e[2])}},get overlay(){const e=this.o;return{x:e[0],y:e[1],width:e[2],height:e[3]}},newExhibit:function(){const e=this.exhibit,t=e.Groups||[],n=e.Masks||[];var r=e.Stories||[];r=r.reduce(((e,t)=>(t.Waypoints=t.Waypoints.map((e=>(null!=e.Overlay&&(e.Overlays=[e.Overlay]),e))),t.Waypoints.length<1?e:e.concat([t]))),[]),this.design={layout:e.Layout||{},images:e.Images||[],header:e.Header||"",footer:e.Footer||"",is3d:e["3D"]||!1,z_scale:e.ZPerMicron||0,default_group:e.DefaultGroup||"",first_group:e.FirstGroup||"",stories:r,masks:n,cgs:t};const i=this.newTempStory("outline");if(this.stories=[i].concat(this.stories),this.stories.length>1){const e=this.newTempStory("explore");this.stories=this.stories.concat([e])}},newTempStory:function(e){this.exhibit;const t=ooe(this.cgs,this.design.first_group),n=-1!=t?this.cgs[t]:this.group,r=this.lensing||{},i="tag"!=e?n:this.group,o=this.a,a=this.o,s=this.p,l=this.v,c=this.design.header,u="outline"==e?Tie(c):this.d,h={explore:"Free Explore",tag:"Shared Link",outline:"Introduction"}[e],d={}[e],f={explore:this.masks.filter((e=>e.Name)).map((e=>e.Name))}[e],p={tag:this.active_masks.filter((e=>e.Name)).map((e=>e.Name))}[e];return{Mode:e,Description:"",Name:h||"Story",Waypoints:[Aie({Mode:e,Zoom:l[0],Arrows:[{Point:o}],Polygon:s,Pan:l.slice(1),ActiveMasks:p,Group:i.Name,Masks:f,Groups:d,Lensing:r,Description:Mie(u),Name:h||"Waypoint",Overlays:[{x:a[0],y:a[1],width:a[2],height:a[3]}]})]}},pushState:function(){if("function"==typeof this.customPushState)this.customPushState.call(this);else{const e=this.makeUrl(this.hashKeys,this.searchKeys);if(this.url==e&&!this.changed)return;this.embedded?history.replaceState(this.design,document.title,e):history.pushState(this.design,document.title,e),this.changed=!1}},popState:function(e){e&&e.state&&(this.changed=!1,this.design=e.state);const t=this.hash,n=this.search;if(this.searchKeys,"function"==typeof this.customPopState)this.customPopState.call(this);else if(this.searchKeys.forEach((function(e){this[e]=n[e]}),this),this.hashKeys.forEach((function(e){t.hasOwnProperty(e)&&(this[e]=t[e])}),this),this.isSharedLink){this.d=t.d;const e=this.newTempStory("tag");this.stories=this.stories.concat([e]),this.s=this.stories.length-1,this.pushState(),window.onpopstate()}else if(this.isMissingHash){if(!this.hideWelcome){const e=$(this.el).find(".minerva-welcome_modal");this.customWelcome?e.find(".modal-body")[0].innerHTML=this.customWelcome:e.find(".minerva-channel_count")[0].innerText=this.channels.length,e.modal("show")}this.s=0,this.pushState(),window.onpopstate()}},makeUrl:function(e,t){const n=this.location("pathname"),r=this.makeHash(e);return n+this.makeSearch(t)+r},makeHash:function(e){const t=Qie(e,this,"#");return t?"#"+t:""},makeSearch:function(e){const t=Qie(e,this,"&");return t?"?"+t:""},startEditing:function(e){const t=e||this.bufferWaypoint;this.bufferWaypoint=t,this.v=Yie(t),this.o=Zie(t),this.p=Jie(t),this.d=qie(t),this.n=Wie(t),this.a=Gie(t),this.m=Vie(t,this.masks),this.g=Xie(t,this.cgs)},finishEditing:function(){const e=this.bufferWaypoint;e.Group=this.group.Name,e.Name=Mie(this.n),e.Description=Mie(this.d),e.Zoom=this.viewport.scale,e.Overlays=[this.overlay],e.ActiveMasks=this.active_masks.map((e=>e.Name)),e.Arrows[0].Point=this.a,e.Polygon=this.p,e.Pan=[this.viewport.pan.x,this.viewport.pan.y],this.bufferWaypoint=e,this.pushState(),window.onpopstate()},startDrawing:function(){this.drawing=1,this.waypoint,"lasso"==this.drawType?this.p=Kie([]):"arrow"==this.drawType?this.a=[-100,-100]:this.o=[-100,-100,1,1]},cancelDrawing:function(){this.drawing=0},finishDrawing:function(){this.edit?(this.drawing=0,this.finishEditing(),this.startEditing(),this.pushState()):$(this.el).find(".minerva-edit_description_modal").modal("show")},get allArrows(){return this.stories.reduce(((e,t,n)=>e.concat(t.Waypoints.reduce(((e,t,r)=>{const i=(this.stories[n].Waypoints[r].Arrows||[]).map(((e,t)=>["waypoint-arrow",n,r,t])).concat([["user-arrow",n,r,0]]);return e.concat(i)}),[]))),[])},get allOverlays(){return this.stories.reduce(((e,t,n)=>e.concat(t.Waypoints.reduce(((e,t,r)=>{const i=(this.stories[n].Waypoints[r].Overlays||[]).map(((e,t)=>["waypoint-overlay",n,r,t])).concat([["user-overlay",n,r,0]]);return e.concat(i)}),[]))),[])},get bufferYaml(){const e=this.viewport,t=this.waypoint;t.Overlays=[this.overlay],t.Name=Mie(this.n),t.Description=Mie(this.d);const n=this;return t.ActiveMasks=this.m.filter((function(e){return e>=0})).map((function(e){return n.masks[e].Name})),t.Group=this.cgs[this.g].Name,t.Pan=[e.pan.x,e.pan.y],t.Zoom=e.scale,Hie.safeDump([[[t]]],{lineWidth:40,noCompatMode:!0}).replace("- - - "," - ")}};const roe=function(e,t){return"minerva"==t.Provider?e.token.then((function(e){return{"Content-Type":"application/json",Authorization:e,Accept:"image/png"}})):"minerva-public"==t.Provider?Promise.resolve().then((function(){return{"Content-Type":"application/json",Authorization:"Anonymous",Accept:"image/png"}})):(t.Provider,Promise.resolve({}))},ioe=function(e,t){const n=t.Render;if("minerva"==e.Provider||"minerva-public"==e.Provider){const r=n.reduce((function(t,n,r){if(n.Images.indexOf(e.Name)>=0){const e=[n.Index,n.Color,n.Range[0],n.Range[1]];t.push(e.join(","))}return t}),[]);let i=e.Path,o=r.join("/");return e.Path.includes("/prerendered-tile/")&&(o=t.Path),function(t,n,r){const a=e.MaxLevel-t+"/";return i+(n+"/")+r+"/0/0/"+a+o}}if("omero"==e.Provider){const t=n.reduce((function(t,n,r){if(n.Images.indexOf(e.Name)>=0){const e=n.Index,r=n.Color,i=Math.round(65535*n.Range[0]),o=Math.round(65535*n.Range[1]);t.push(e+"|"+i+":"+o+"$"+r)}return t}),[]),r=t.join(",");return function(t,n,i){return e.Path+"?c="+r+"&m=c&z=1&t=1&format=jpeg&tile="+(e.MaxLevel-t)+","+n+","+i+","+e.TileSize.join(",")}}return function(n,r,i){const o="."+t.Format;return e.Path+"/"+t.Path+"/"+(e.MaxLevel-n)+"_"+r+"_"+i+o}},ooe=function(e,t){if(!Array.isArray(e))return-1;const n=e.filter((function(e){return e.Name==t}))[0];return e.indexOf(n)},aoe=function(e,t){if(!Array.isArray(e))return-1;const n=e.filter((function(e){return!!e.Name.match(t)}))[0];return e.indexOf(n)};var soe=n(2538),loe=n(9203),coe=n.n(loe);const uoe=[{data:[],name:"fil_channel_groups",vis_name:"Channel groups",settings:{active:1,async:!0,default:1,loading:!1,max:1,min:0,step:1,vf:!0,vf_setup:"vis_data_template",iter:"px"},variables:{},set_pixel:(e,t)=>{e.viewfinder.setup.wrangle(),e.viewfinder.setup.render()},update:(e,t,n,r)=>{n.lenses.selections.magnifier.update(e,t,n)},fill:"rgba(255, 255, 255, 0)",stroke:"rgba(0, 0, 0, 1)"}],hoe=(e,t)=>e&&e==t.Name,doe=(e,t)=>{const n=window.devicePixelRatio,{Mag:r,Rad:i,Shape:o,Group:a}=t.lensing||{},s=hoe(a,t.group);if(!t.lensing||s)return e.configs.shape="",e.configs.radDefault=1,e.configs.rad=1,e.configs.counterException=!0,void e.manageLensUpdate();if(e.configs.shape="square"==o?"square":"circle",e.configs.counterException=!0,e.manageLensUpdate(),"number"==typeof r){e.configs.mag=r,e.lenses.selections.magnifier.settings.active=r,e.configs.counterException=!0,e.positionData.refPoint=e.positionData.eventPoint,e.positionData.zoom=e.viewer.viewport.getZoom(!0),e.controls.updateReport();const t={eventType:"zoom",immediately:!0};e.viewerAux.raiseEvent("click",t)}"number"==typeof i&&(e.configs.radDefault=i*n,e.configs.rad=i*n,e.configs.counterException=!0,e.manageLensUpdate())};class foe{lensingContext=null;viewerContext=null;constructor(e,t){this.hashstate=t.hashstate,this.viewerContext=e;const{lensingContext:n,lensing:r}=this.newContext(t);this.lensing=r,this.lensingContext=n,this.initializeChannels(),this.tileSources={}}newContext(e){const t={immediateRender:!0,maxZoomPixelRatio:10,visibilityRatio:.9,showHomeControl:!1,showFullPageControl:!1,...e.config},n=new soe.construct(loe,this.viewerContext.viewport.viewer,t,{},uoe);return doe(n,this.hashstate),{lensing:n,lensingContext:n.viewerAux}}initializeChannels(){const e=this.hashstate,{cgs:t,grid:n}=e,r=(n.pop()||[]).pop(),i=e.lensing||{},o=this.lensingContext,{Group:a}=i;return[...t].forEach((e=>{e.Format="jpg",o.addTiledImage({loadTilesWithAjax:!1,tileSource:{height:r.Height,width:r.Width,maxLevel:r.MaxLevel,crossOriginPolicy:"anonymous",opacity:[0,1][+hoe(a,e)],tileWidth:r.TileSize.slice(0,1).pop(),tileHeight:r.TileSize.slice(0,2).pop(),getTileUrl:ioe(r,e)},width:r.Width/r.Height,success:t=>{const n=t.item;e.Path in this.tileSources||(this.tileSources[e.Path]=[]),this.tileSources[e.Path].push(n)}})})),o}activateViewport(){const e=this.hashstate,{viewport:t}=this.lensingContext;t.panTo(e.viewport.pan),t.zoomTo(e.viewport.scale),t.applyConstraints(!0)}newViewRedraw(){const e=this.lensing,t=this.hashstate;this.activateViewport();const n=t.lensing||{},r=hoe.bind(null,n.Group),i=t.cgs.filter(r).pop()||{};voe(this.tileSources,i,[]),doe(e,t)}}var poe=0,moe=function(e){if(++poe%5!=1)return;const t=this.viewer;var n=e.position,r=t.viewport.pointFromPixel(n);this.hashstate.state.p.push({x:r.x,y:r.y}),this.newView(!1)};const goe=function(e,t,n){["centerSpringX","centerSpringY","zoomSpring"].forEach((function(r){const i=e.viewport[r];i.animationTime=t,i.springStiffness=n,i.springTo(i.target.value)}))},voe=function(e,t,n){const r=n.map((e=>e.Path));Object.keys(e).forEach((n=>{const i=r.indexOf(n),o=n===t.Path||i>=0?1:0;e[n].forEach((e=>{e.setOpacity(o);const{world:t}=e.viewer||{};if(t&&i>=0){const n=t.getItemCount()-1-i;t.setItemIndex(e,Math.max(n,0))}}))}))},yoe=function(e,t,n,r){this.svg_overlay=or(t.svgOverlay().node()),this.tileSources=n,this.hashstate=e,this.viewer=t,this.mouseEvent={},this.trackers=[],this.eventHandler=r;const i={config:{id:t.id,prefixUrl:t.prefixUrl,zoomInButton:t.zoomInButton.element.id,zoomOutButton:t.zoomOutButton.element.id,navigatorPosition:t.navigatorPosition,maxZoomPixelRatio:t.maxZoomPixelRatio,visibilityRatio:t.visibilityRatio,degrees:t.degrees},hashstate:e};this.lensing=new foe(t,i)};yoe.prototype={get mouseXY(){const e=this.mouseEvent,t=OpenSeadragon.getMousePosition(e);return this.normalize(t)},set mouseXY(e){this.mouseEvent=e},init:function(){const e=this.viewer,t=this.hashstate,n=this;new OpenSeadragon.MouseTracker({element:e.canvas,dragHandler:function(r){"lasso"==t.drawType&&t.drawing&&(e.setMouseNavEnabled(!1),moe.bind(n)(r))}}),new OpenSeadragon.MouseTracker({element:e.canvas,dragEndHandler:function(n){"lasso"==t.drawType&&t.drawing&&t.finishDrawing(),e.setMouseNavEnabled(!0)}}),this.viewer.addHandler("canvas-drag",(function(e){const t=e.userData,n=t.hashstate;if("box"!=n.drawType)return;const r=t.normalize(e.position);1==n.drawing?(n.drawing=2,e.preventDefaultAction=!0,t.drawLowerBounds(r)):2==n.drawing&&(e.preventDefaultAction=!0,t.drawUpperBounds(r))}),this),this.viewer.addHandler("canvas-drag-end",(function(e){const t=e.userData,n=t.hashstate;if("box"!=n.drawType)return;const r=t.normalize(e.position);2==n.drawing&&(e.preventDefaultAction=!0,t.drawUpperBounds(r),n.finishDrawing(),n.pushState(),t.newView(!1))}),this),this.viewer.addHandler("canvas-click",(function(e){const t=e.userData,n=t.hashstate,r=t.normalize(e.position);var i=t.viewer.viewport.viewportToImageCoordinates(r.x,r.y);t.eventHandler.trigger(t.eventHandler.events.osdClickEvent,{x:i.x,y:i.y}),"lasso"!=n.drawType&&("arrow"!=n.drawType?1==n.drawing?(n.drawing=2,e.preventDefaultAction=!0,t.drawLowerBounds(r)):2==n.drawing&&(e.preventDefaultAction=!0,t.drawUpperBounds(r),n.finishDrawing(),t.viewer.setMouseNavEnabled(!0),n.pushState(),t.newView(!1)):1==n.drawing&&(n.a=[r.x,r.y],n.finishDrawing(),t.viewer.setMouseNavEnabled(!0),n.pushState(),t.newView(!1)))}),this),$(this.viewer.element).mousemove(this,(function(e){const t=e.data,n=t.hashstate;"lasso"!=n.drawType&&(t.mouseXY=e,2==n.drawing&&t.drawUpperBounds(t.mouseXY))})),this.viewer.addHandler("animation",(function(e){const t=e.userData,n=t.hashstate,r=t.viewer.viewport.getZoom(),i=t.viewer.viewport.getCenter();n.v=[Die(r),Die(i.x),Die(i.y)]}),this),this.viewer.addHandler("animation-finish",(function(e){const t=e.userData,n=t.hashstate,r=t.viewer.viewport.getZoom(),i=t.viewer.viewport.getCenter();n.v=[Die(r),Die(i.x),Die(i.y)],n.pushState(),t.newView(!1),t.faster()}),this),this.finishAnimation(),this.viewer.setVisible(!0)},finishAnimation:function(){const e=this.viewer.viewport.getBounds();this.viewer.viewport.fitBounds(e,!0)},faster:function(){goe(this.viewer,1.2,6.4)},slower:function(){goe(this.viewer,3.2,6.4)},normalize:function(e){const t=this.viewer.viewport;return t.viewerElementToViewportCoordinates.call(t,e)},drawLowerBounds:function(e){const t=this.hashstate,n=[e.x,e.y];t.o=n.concat([0,0]),this.newView(!1)},computeBounds:function(e,t,n){return ee.destroy())),this.trackers=[],this.addPolygon(t.id+"-selection",t.state.p),t.allOverlays.forEach((function(e){const[n,r,i,o]=e;var a=t.overlay;"waypoint-overlay"==n&&(a=t.stories[r].Waypoints[i].Overlays[o]);var s="minerva-"+t.id+"-"+e.join("-");this.addOverlay(a,s,r,i)}),this);const n=this;$.each($(t.el).find(".minerva-arrow-overlay"),(function(e,t){const r=n.viewer.getOverlayById(t.id),i=new OpenSeadragon.Point(-100,-100);r&&r.update({location:i})})),t.allArrows.forEach((function(e){this.addArrow(e)}),this),e&&(this.activateViewport(),this.lensing.newViewRedraw(),voe(this.tileSources,t.group,t.active_masks)),this.viewer.forceRedraw()},addPolygon:function(e,t){var n=this.svg_overlay;or("#"+e).remove(),n.selectAll(e).data([t]).enter().append("polygon").attr("id",e).attr("points",(function(e){return e.map((function(e){return[e.x,e.y].join(",")})).join(" ")}))},addArrow:function(e){const[t,n,r,i]=e,o=this.hashstate;var a={Point:o.a,Text:""};"waypoint-arrow"==t&&(a=Object.assign({},o.stories[n].Waypoints[r].Arrows[i])),null==a.Angle&&(a.Angle=60);const s=a.Arrowhead?"minerva-arrowhead-image":"minerva-arrow-image",l="minerva-arrow-text-"+o.id+"-"+e.join("-"),c="minerva-arrow-image-"+o.id+"-"+e.join("-");n==o.s&&r==o.w||(a.Point=[-100,-100]);const u=this.viewer.getOverlayById(c),h=new OpenSeadragon.Point(a.Point[0],a.Point[1]);if(u)u.update({location:h});else{const e=o.el.getElementsByClassName(s)[0].cloneNode(!0);e.id=c,document.body.appendChild(e),this.viewer.addOverlay({x:a.Point[0],y:a.Point[1],element:c,placement:OpenSeadragon.Placement.CENTER})}const d=this.viewer.getOverlayById(l),f=new OpenSeadragon.Point(a.Point[0],a.Point[1]);if(d)d.update({location:f});else{const e=o.el.getElementsByClassName("minerva-arrow-text")[0].cloneNode(!0);e.id=l,document.body.appendChild(e),this.viewer.addOverlay({x:a.Point[0],y:a.Point[1],element:l,placement:OpenSeadragon.Placement.CENTER})}const p=$("#"+c),m=$("#"+c+" svg"),g=$("#"+l),v=$("#"+l+" .minerva-arrow-label"),y=m[0].getAttribute("width")/2,b=y*Math.sin(a.Angle*Math.PI/180),x=y*Math.cos(a.Angle*Math.PI/180);1==a.HideArrow?p.css("display","none"):(p.css("display","block"),m[0].setAttribute("transform","translate("+x+","+b+")rotate("+a.Angle+")"),v.css("top","100px"));const w=a.Text;if(w){const e=g.width(),t=g.height();var _=2*x+e*Math.sign(Math.round(x))/2,k=2*b+t*Math.sign(Math.round(b))/2;1==a.HideArrow&&(_=0,k=0),v.css("transform","translate("+_+"px, "+k+"px)"),v.addClass("p-3"),v.text(w)}else v.removeClass("p-3"),v.text("")},addOverlay:function(e,t,n,r){const i=this.viewer.getOverlayById(t),o=this.hashstate,a="outline"!=o.waypoint.Mode,s=o.s!=n||o.w!=r;if(a&&s){if(i){const e=new OpenSeadragon.Point(-100,-100);i.update({location:e,width:1,height:1})}return}var l=document.getElementById(t);l||((l=document.createElement("div")).className="minerva-white minerva-overlay",l.id=t,o.el.getElementsByClassName("minerva-all-overlays")[0].appendChild(l));const c=new OpenSeadragon.Point(e.x,e.y),u=o.drawing&&"box"==o.drawType;if(Nie("#"+t,u),i?i.update({location:c,width:e.width,height:e.height}):this.viewer.addOverlay({x:e.x,y:e.y,width:e.width,height:e.height,element:t}),"outline"==o.waypoint.Mode){const e=new OpenSeadragon.MouseTracker({element:document.getElementById(t),moveHandler:function(e){$(l).css("cursor","pointer")},clickHandler:function(e){const[n,r]=t.split("-").slice(-3,-1);e.preventDefaultAction=!1,o.s=n,o.w=r,o.pushState(),window.onpopstate()}.bind(this)});this.trackers.push(e)}},activateViewport:function(){const e=this.hashstate,t=this.viewer.viewport;t.panTo(e.viewport.pan),t.zoomTo(e.viewport.scale),t.applyConstraints(!0)}};const boe=function(e){return e.reduce((function(e,t){return e.concat(t)}))};let xoe=[{"\ufeffString":"ARL13B",Alias:null,Link:"https://www.genecards.org/cgi-bin/carddisp.pl?gene=ARL13B&keywords=ARL13B"},{"\ufeffString":"ASMA",Alias:"A-SMA, a-SMA, alpha-SMA, α-SMA",Link:"https://www.genecards.org/cgi-bin/carddisp.pl?gene=ACTA2&keywords=alpha,smooth,muscle,actin"},{"\ufeffString":"BANF1",Alias:null,Link:"https://www.genecards.org/cgi-bin/carddisp.pl?gene=BANF1&keywords=BANF1"},{"\ufeffString":"CD11B",Alias:null,Link:"https://www.genecards.org/cgi-bin/carddisp.pl?gene=ITGAM&keywords=CD11B"},{"\ufeffString":"CD14",Alias:null,Link:"https://www.genecards.org/cgi-bin/carddisp.pl?gene=CD14&keywords=CD14"},{"\ufeffString":"CD163",Alias:null,Link:"https://www.genecards.org/cgi-bin/carddisp.pl?gene=CD163&keywords=CD163"},{"\ufeffString":"CD19",Alias:null,Link:"https://www.genecards.org/cgi-bin/carddisp.pl?gene=CD19&keywords=CD19"},{"\ufeffString":"CD20",Alias:null,Link:"https://www.genecards.org/cgi-bin/carddisp.pl?gene=MS4A1&keywords=CD20"},{"\ufeffString":"CD21",Alias:null,Link:"https://www.genecards.org/cgi-bin/carddisp.pl?gene=CR2&keywords=CD21"},{"\ufeffString":"CD3D",Alias:null,Link:"https://www.genecards.org/cgi-bin/carddisp.pl?gene=CD3D&keywords=CD3D"},{"\ufeffString":"CD4",Alias:null,Link:"https://www.genecards.org/cgi-bin/carddisp.pl?gene=CD4&keywords=CD4"},{"\ufeffString":"CD45",Alias:null,Link:"https://www.genecards.org/cgi-bin/carddisp.pl?gene=PTPRC&keywords=CD45"},{"\ufeffString":"CD45RB",Alias:null,Link:"https://www.genecards.org/cgi-bin/carddisp.pl?gene=PTPRC&keywords=CD45RB"},{"\ufeffString":"CD68",Alias:null,Link:"https://www.genecards.org/cgi-bin/carddisp.pl?gene=CD68&keywords=CD68"},{"\ufeffString":"CD8A",Alias:null,Link:"https://www.genecards.org/cgi-bin/carddisp.pl?gene=CD8A&keywords=CD8A"},{"\ufeffString":"FOXP3",Alias:null,Link:"https://www.genecards.org/cgi-bin/carddisp.pl?gene=FOXP3&keywords=FOXP3"},{"\ufeffString":"GFAP",Alias:null,Link:"https://www.genecards.org/cgi-bin/carddisp.pl?gene=GFAP&keywords=GFAP"},{"\ufeffString":"GTUBULIN",Alias:"gamma-tubulin",Link:"https://www.genecards.org/cgi-bin/carddisp.pl?gene=TUBG1&keywords=gamma,tubulin"},{"\ufeffString":"IBA1",Alias:null,Link:"https://www.genecards.org/cgi-bin/carddisp.pl?gene=AIF1&keywords=IBA1"},{"\ufeffString":"KERATIN",Alias:"pan-cytokeratin, pan-keratin",Link:"https://www.genecards.org/Search/Keyword?queryString=KERATIN"},{"\ufeffString":"KI67",Alias:null,Link:"https://www.genecards.org/cgi-bin/carddisp.pl?gene=MKI67&keywords=KI67"},{"\ufeffString":"LAG3",Alias:null,Link:"https://www.genecards.org/cgi-bin/carddisp.pl?gene=LAG3&keywords=LAG3"},{"\ufeffString":"LAMINAC",Alias:null,Link:"https://www.genecards.org/cgi-bin/carddisp.pl?gene=LMNA&keywords=LAMIN,AC"},{"\ufeffString":"LAMINB",Alias:null,Link:"https://www.genecards.org/cgi-bin/carddisp.pl?gene=LMNB1&keywords=LAMINB"},{"\ufeffString":"PD-1",Alias:"PD1",Link:"https://www.genecards.org/cgi-bin/carddisp.pl?gene=PDCD1&keywords=PD-1"},{"\ufeffString":"PD-L1",Alias:"PDL1",Link:"https://www.genecards.org/cgi-bin/carddisp.pl?gene=CD274&keywords=PD-L1"},{"\ufeffString":"CD19",Alias:null,Link:"https://www.genecards.org/cgi-bin/carddisp.pl?gene=CD19&keywords=CD19"},{"\ufeffString":"CD14",Alias:null,Link:"https://www.genecards.org/cgi-bin/carddisp.pl?gene=CD14&keywords=CD11c"},{"\ufeffString":"CD56",Alias:null,Link:"https://www.genecards.org/cgi-bin/carddisp.pl?gene=NCAM1&keywords=CD56"},{"\ufeffString":"CD34",Alias:null,Link:"https://www.genecards.org/cgi-bin/carddisp.pl?gene=CD34&keywords=CD34"},{"\ufeffString":"CD44",Alias:null,Link:"https://www.genecards.org/cgi-bin/carddisp.pl?gene=CD44&keywords=CD34"},{"\ufeffString":"CD14",Alias:null,Link:"https://www.genecards.org/cgi-bin/carddisp.pl?gene=CD14&keywords=CD14"},{"\ufeffString":"CD33",Alias:null,Link:"https://www.genecards.org/cgi-bin/carddisp.pl?gene=CD33&keywords=CD33"},{"\ufeffString":"CD41",Alias:null,Link:"https://www.genecards.org/cgi-bin/carddisp.pl?gene=ITGA2B&keywords=CD41"},{"\ufeffString":"CD61",Alias:null,Link:"https://www.genecards.org/cgi-bin/carddisp.pl?gene=ITGB3&keywords=CD61"},{"\ufeffString":"CD62",Alias:null,Link:"https://www.genecards.org/cgi-bin/carddisp.pl?gene=SELP&keywords=CD62"},{"\ufeffString":"CD146",Alias:null,Link:"https://www.genecards.org/cgi-bin/carddisp.pl?gene=MCAM&keywords=CD146"},{"\ufeffString":"CD1d",Alias:null,Link:"https://www.genecards.org/cgi-bin/carddisp.pl?gene=CD1D&keywords=CD1d"},{"\ufeffString":"CD2",Alias:null,Link:"https://www.genecards.org/cgi-bin/carddisp.pl?gene=CD2&keywords=CD2"},{"\ufeffString":"CD5",Alias:null,Link:"https://www.genecards.org/cgi-bin/carddisp.pl?gene=CD5&keywords=cd5"},{"\ufeffString":"CD7",Alias:null,Link:"https://www.genecards.org/cgi-bin/carddisp.pl?gene=CD7&keywords=CD7"},{"\ufeffString":"CD9",Alias:null,Link:"https://www.genecards.org/cgi-bin/carddisp.pl?gene=CD9&keywords=CD9"},{"\ufeffString":"CD10",Alias:null,Link:"https://www.genecards.org/cgi-bin/carddisp.pl?gene=MME&keywords=CD10"},{"\ufeffString":"CD11A",Alias:null,Link:"https://www.genecards.org/cgi-bin/carddisp.pl?gene=ITGAL&keywords=CD11A"},{"\ufeffString":"CD70",Alias:null,Link:"https://www.genecards.org/cgi-bin/carddisp.pl?gene=CD70&keywords=CD70"},{"\ufeffString":"CD74",Alias:null,Link:"https://www.genecards.org/cgi-bin/carddisp.pl?gene=CD74&keywords=CD74"},{"\ufeffString":"CD103",Alias:null,Link:"https://www.genecards.org/cgi-bin/carddisp.pl?gene=ITGAE&keywords=CD103"},{"\ufeffString":"CD133",Alias:null,Link:"https://www.genecards.org/cgi-bin/carddisp.pl?gene=PROM1&keywords=CD133"},{"\ufeffString":"CD168",Alias:null,Link:"https://www.genecards.org/cgi-bin/carddisp.pl?gene=HMMR&keywords=CD168"}],woe=[{"\ufeffString":"Natural Killer Cells",Alias:null,Link:"https://www.immunology.org/public-information/bitesized-immunology/c%C3%A9lulas/natural-killer-cells"},{"\ufeffString":"B Cells",Alias:null,Link:"https://www.immunology.org/public-information/bitesized-immunology/cells/b-cells"},{"\ufeffString":"Basophil",Alias:null,Link:"https://www.immunology.org/public-information/bitesized-immunology/c%C3%A9lulas/basophils"},{"\ufeffString":"Helper T cell",Alias:"CD4+ T Cell",Link:"https://www.immunology.org/public-information/bitesized-immunology/células/cd4-t-cells"},{"\ufeffString":"Cytotoxic T Cell",Alias:"CD8+ T Cell",Link:"https://www.immunology.org/public-information/bitesized-immunology/c%C3%A9lulas/cd8-t-cells"},{"\ufeffString":"Dendritic Cell",Alias:null,Link:"https://www.immunology.org/public-information/bitesized-immunology/cells/dendritic-cells"},{"\ufeffString":"Eosinophils",Alias:null,Link:"https://www.immunology.org/public-information/bitesized-immunology/c%C3%A9lulas/eosinophils"},{"\ufeffString":"Macrophage",Alias:null,Link:"https://www.immunology.org/public-information/bitesized-immunology/c%C3%A9lulas/macrophages"},{"\ufeffString":"Mast Cell",Alias:null,Link:"https://www.immunology.org/public-information/bitesized-immunology/c%C3%A9lulas/mast-cells"},{"\ufeffString":"Neutrophil",Alias:null,Link:"https://www.immunology.org/public-information/bitesized-immunology/cells/neutrophils"},{"\ufeffString":"Regulatory T Cell",Alias:"Treg",Link:"https://www.immunology.org/public-information/bitesized-immunology/células/regulatory-t-cells-tregs"},{"\ufeffString":"T follicular helper cell",Alias:null,Link:"https://www.immunology.org/public-information/bitesized-immunology/cells/t-follicular-helper-cells"},{"\ufeffString":"bone marrow",Alias:null,Link:"https://www.immunology.org/public-information/bitesized-immunology/%C3%B3rganos-y-tejidos/bone-marrow"},{"\ufeffString":"lymph node",Alias:null,Link:"https://www.immunology.org/public-information/bitesized-immunology/organs-and-tissues/lymph-node"},{"\ufeffString":"complement system",Alias:null,Link:"https://www.immunology.org/public-information/bitesized-immunology/sistemas-y-procesos/complement-system"},{"\ufeffString":"phagocytosis",Alias:null,Link:"https://www.immunology.org/public-information/bitesized-immunology/systems-and-processes/phagocytosis"}];const _oe=function(e){var t,n=window.open(window.location.href),r=window.viewer;n.addEventListener("DOMContentLoaded",(e=>{t=n.viewer,console.log(n.viewer);var i=!1,o=!1,a=function(){o||(i=!0,t.viewport.zoomTo(r.viewport.getZoom()),t.viewport.panTo(r.viewport.getCenter()),i=!1)},s=function(){i||(o=!0,r.viewport.zoomTo(t.viewport.getZoom()),r.viewport.panTo(t.viewport.getCenter()),o=!1)};r.addHandler("zoom",a),t.addHandler("zoom",s),r.addHandler("pan",a),t.addHandler("pan",s)}))},koe=function(e,t){const n=OpenSeadragon({id:t.id+"-openseadragon",prefixUrl:"https://cdnjs.cloudflare.com/ajax/libs/openseadragon/2.3.1/images/",navigatorPosition:"BOTTOM_RIGHT",zoomOutButton:t.id+"-zoom-out",zoomInButton:t.id+"-zoom-in",immediateRender:!0,maxZoomPixelRatio:10,visibilityRatio:.9,degrees:e.Rotation||0});function r(){n.currentOverlays.forEach((e=>{"minerva-arrow"==e.element.id.slice(0,13)&&(e.element.style.transform="")}))}n.addHandler("update-viewport",(function(){setTimeout(r,1)})),n.addHandler("animation",r),n.world.addHandler("add-item",(function(e){const t=e.item;t.addHandler("fully-loaded-change",(function(e){e.fullyLoaded&&(t.immediateRender=!1)})),t.addHandler("opacity-change",(function(e){0==e.opacity&&(t.immediateRender=!0)}))})),n.scalebar({location:3,minWidth:"100px",type:"Microscopy",stayInsideImage:!1,pixelsPerMeter:1e6*e.PixelsPerMicron||0,backgroundColor:"rgba(0, 0, 0, 0.8)",fontColor:"rgb(255, 255, 255)",color:"rgb(255, 255, 255)"});const i=new x(or("body").node()),o=new noe(e,t),a={},s=new yoe(o,n,a,i),l=new zie(o,s);return function(e,t,n,r){const i=n.cgs,o=n.masks;i.forEach((e=>{e.Format=e.Format||"jpg"})),o.forEach((e=>{e.Format=e.Format||"png"}));const a=i.concat(o),s=n.grid,l=n.images;n.el.getElementsByClassName("minerva-imageName")[0].innerText=1==l.length?l[0].Description:n.exhibit.Name;const c=s.length,u=s[0].length,h=c*u*a.length;var d=0;const f=.05,p=boe(s).reduce((function(e,t){return Math.max(e,t.Width)}),0),m=boe(s).reduce((function(e,t){return Math.max(e,t.Height)}),0),g=1.05/c-f,v=g*p/m,y=v*u/(g*c);for(var b=0;b"),g=o.Description;p.addClass("minerva-overlay-title").text(g),e.addOverlay({element:p[0],x:u+l/2,y:i,placement:"BOTTOM",checkResize:!1})}}}(n,a,o,(e=>{s.init.call(s),l.init.call(l,e)})),n};window.$=window.jQuery=n(9755),window.Popper=n(8981).default,window.showdown=n(3787),n(3734),n(300),function(e){if(!e.version||e.version.major<2)throw new Error("This version of OpenSeadragonScalebar requires OpenSeadragon version 2.0.0+");function t(e,t,n,i,a){a=void 0===a?" ":a;var s=r(e,t),l=o(s/e*t,3);return{size:s*t,text:l+a+n+(i&&l>1?"s":"")}}function n(e,t,n){var i=r(e,t),a=i*t,s=function(e,t){return e<1e-6?1e9*e+" n"+t:e<.001?1e6*e+" μ"+t:e<1?1e3*e+" m"+t:e>=1e3?e/1e3+" k"+t:e+" "+t}(o(i/e*t,3),n);return{size:a,text:s}}function r(e,t){var n=i(e),r=i(t),o=i(n/r);return o>=5&&(o/=5),o>=4&&(o/=4),o>=2&&(o/=2),o}function i(e){return e*Math.pow(10,Math.ceil(-a(e)))}function o(e,t){var n=t- -Math.ceil(-a(e)),r=e*Math.pow(10,n);return n<0?Math.round(r)*Math.pow(10,-n):Math.round(r)/Math.pow(10,n)}function a(e){return Math.log(e)/Math.log(10)}function s(e){return void 0!==e}e.Viewer.prototype.scalebar=function(t){this.scalebarInstance?this.scalebarInstance.refresh(t):((t=t||{}).viewer=this,this.scalebarInstance=new e.Scalebar(t))},e.ScalebarType={NONE:0,MICROSCOPY:1,MAP:2},e.ScalebarLocation={NONE:0,TOP_LEFT:1,TOP_RIGHT:2,BOTTOM_RIGHT:3,BOTTOM_LEFT:4},e.Scalebar=function(t){if(!(t=t||{}).viewer)throw new Error("A viewer must be specified.");this.viewer=t.viewer,this.divElt=document.createElement("div"),this.viewer.container.appendChild(this.divElt),this.divElt.style.position="relative",this.divElt.style.margin="0",this.divElt.style.pointerEvents="none",this.setMinWidth(t.minWidth||"150px"),this.setDrawScalebarFunction(t.type||e.ScalebarType.MICROSCOPY),this.color=t.color||"black",this.fontColor=t.fontColor||"black",this.backgroundColor=t.backgroundColor||"none",this.fontSize=t.fontSize||"",this.fontFamily=t.fontFamily||"",this.barThickness=t.barThickness||2,this.pixelsPerMeter=t.pixelsPerMeter||null,this.referenceItemIdx=t.referenceItemIdx||0,this.location=t.location||e.ScalebarLocation.BOTTOM_LEFT,this.xOffset=t.xOffset||5,this.yOffset=t.yOffset||5,this.stayInsideImage=!s(t.stayInsideImage)||t.stayInsideImage,this.sizeAndTextRenderer=t.sizeAndTextRenderer||e.ScalebarSizeAndTextRenderer.METRIC_LENGTH;var n=this;this.viewer.addHandler("open",(function(){n.refresh()})),this.viewer.addHandler("animation",(function(){n.refresh()})),this.viewer.addHandler("resize",(function(){n.refresh()}))},e.Scalebar.prototype={updateOptions:function(e){e&&(s(e.type)&&this.setDrawScalebarFunction(e.type),s(e.minWidth)&&this.setMinWidth(e.minWidth),s(e.color)&&(this.color=e.color),s(e.fontColor)&&(this.fontColor=e.fontColor),s(e.backgroundColor)&&(this.backgroundColor=e.backgroundColor),s(e.fontSize)&&(this.fontSize=e.fontSize),s(e.fontFamily)&&(this.fontFamily=e.fontFamily),s(e.barThickness)&&(this.barThickness=e.barThickness),s(e.pixelsPerMeter)&&(this.pixelsPerMeter=e.pixelsPerMeter),s(e.referenceItemIdx)&&(this.referenceItemIdx=e.referenceItemIdx),s(e.location)&&(this.location=e.location),s(e.xOffset)&&(this.xOffset=e.xOffset),s(e.yOffset)&&(this.yOffset=e.yOffset),s(e.stayInsideImage)&&(this.stayInsideImage=e.stayInsideImage),s(e.sizeAndTextRenderer)&&(this.sizeAndTextRenderer=e.sizeAndTextRenderer))},setDrawScalebarFunction:function(t){t?t===e.ScalebarType.MAP?this.drawScalebar=this.drawMapScalebar:this.drawScalebar=this.drawMicroscopyScalebar:this.drawScalebar=null},setMinWidth:function(e){this.divElt.style.width=e,this.divElt.style.display="",this.minWidth=this.divElt.offsetWidth},refresh:function(e){if(this.updateOptions(e),this.viewer.isOpen()&&this.drawScalebar&&this.pixelsPerMeter&&this.location){this.divElt.style.display="";var t=this.viewer.viewport,n=(o=this.viewer.world.getItemAt(this.referenceItemIdx),a=t.getZoom(!0),o._scaleSpring.current.value*o.viewport._containerInnerSize.x/o.source.dimensions.x*a)*this.pixelsPerMeter,r=this.sizeAndTextRenderer(n,this.minWidth);this.drawScalebar(r.size,r.text);var i=this.getScalebarLocation();this.divElt.style.left=i.x+"px",this.divElt.style.top=i.y+"px"}else this.divElt.style.display="none";var o,a},drawMicroscopyScalebar:function(e,t){this.divElt.style.fontSize=this.fontSize,this.divElt.style.fontFamily=this.fontFamily,this.divElt.style.textAlign="center",this.divElt.style.color=this.fontColor,this.divElt.style.border="none",this.divElt.style.borderBottom=this.barThickness+"px solid "+this.color,this.divElt.style.backgroundColor=this.backgroundColor,this.divElt.innerHTML=t,this.divElt.style.width=e+"px"},drawMapScalebar:function(e,t){this.divElt.style.fontSize=this.fontSize,this.divElt.style.fontFamily=this.fontFamily,this.divElt.style.textAlign="center",this.divElt.style.color=this.fontColor,this.divElt.style.border=this.barThickness+"px solid "+this.color,this.divElt.style.borderTop="none",this.divElt.style.backgroundColor=this.backgroundColor,this.divElt.innerHTML=t,this.divElt.style.width=e+"px"},getScalebarLocation:function(){if(this.location===e.ScalebarLocation.TOP_LEFT){var t=0,n=0;if(this.stayInsideImage){var r=this.viewer.viewport.pixelFromPoint(new e.Point(0,0),!0);this.viewer.wrapHorizontal||(t=Math.max(r.x,0)),this.viewer.wrapVertical||(n=Math.max(r.y,0))}return new e.Point(t+this.xOffset,n+this.yOffset)}if(this.location===e.ScalebarLocation.TOP_RIGHT){var i=this.divElt.offsetWidth;return t=(a=this.viewer.container).offsetWidth-i,n=0,this.stayInsideImage&&(r=this.viewer.viewport.pixelFromPoint(new e.Point(1,0),!0),this.viewer.wrapHorizontal||(t=Math.min(t,r.x-i)),this.viewer.wrapVertical||(n=Math.max(n,r.y))),new e.Point(t-this.xOffset,n+this.yOffset)}if(this.location===e.ScalebarLocation.BOTTOM_RIGHT){i=this.divElt.offsetWidth;var o=this.divElt.offsetHeight;return t=(a=this.viewer.container).offsetWidth-i,n=a.offsetHeight-o,this.stayInsideImage&&(r=this.viewer.viewport.pixelFromPoint(new e.Point(1,1/this.viewer.source.aspectRatio),!0),this.viewer.wrapHorizontal||(t=Math.min(t,r.x-i)),this.viewer.wrapVertical||(n=Math.min(n,r.y-o))),new e.Point(t-this.xOffset,n-this.yOffset)}var a;if(this.location===e.ScalebarLocation.BOTTOM_LEFT)return o=this.divElt.offsetHeight,t=0,n=(a=this.viewer.container).offsetHeight-o,this.stayInsideImage&&(r=this.viewer.viewport.pixelFromPoint(new e.Point(0,1/this.viewer.source.aspectRatio),!0),this.viewer.wrapHorizontal||(t=Math.max(t,r.x)),this.viewer.wrapVertical||(n=Math.min(n,r.y-o))),new e.Point(t+this.xOffset,n-this.yOffset)},getAsCanvas:function(){var e=document.createElement("canvas");e.width=this.divElt.offsetWidth,e.height=this.divElt.offsetHeight;var t=e.getContext("2d");t.fillStyle=this.backgroundColor,t.fillRect(0,0,e.width,e.height),t.fillStyle=this.color,t.fillRect(0,e.height-this.barThickness,e.width,e.height),this.drawScalebar===this.drawMapScalebar&&(t.fillRect(0,0,this.barThickness,e.height),t.fillRect(e.width-this.barThickness,0,this.barThickness,e.height)),t.font=window.getComputedStyle(this.divElt).font,t.textAlign="center",t.textBaseline="middle",t.fillStyle=this.fontColor;var n=e.width/2,r=e.height/2;return t.fillText(this.divElt.textContent,n,r),e},getImageWithScalebarAsCanvas:function(){var e=this.viewer.drawer.canvas,t=document.createElement("canvas");t.width=e.width,t.height=e.height;var n=t.getContext("2d");n.drawImage(e,0,0);var r=this.getAsCanvas(),i=this.getScalebarLocation();return n.drawImage(r,i.x,i.y),t}},e.ScalebarSizeAndTextRenderer={METRIC_LENGTH:function(e,t){return n(e,t,"m")},IMPERIAL_LENGTH:function(e,n){var r=2*n,i=.0254*e;if(r<12*i)return r .minerva-root code { color: inherit; }\n.minerva-root kbd { padding: 0.2rem 0.4rem; font-size: 87.5%; color: #fff; background-color: #212529; border-radius: 0.2rem; }\n.minerva-root kbd kbd { padding: 0; font-size: 100%; font-weight: 700; }\n.minerva-root pre { display: block; font-size: 87.5%; color: #212529; }\n.minerva-root pre code { font-size: inherit; color: inherit; word-break: normal; }\n.minerva-root .pre-scrollable { max-height: 340px; overflow-y: scroll; }\n.minerva-root .container { width: 100%; padding-right: 15px; padding-left: 15px; margin-right: auto; margin-left: auto; }\n@media (min-width: 576px) { .minerva-root .container { max-width: 540px; } }\n@media (min-width: 768px) { .minerva-root .container { max-width: 720px; } }\n@media (min-width: 992px) { .minerva-root .container { max-width: 960px; } }\n@media (min-width: 1200px) { .minerva-root .container { max-width: 1140px; } }\n.minerva-root .container-fluid, .minerva-root .container-sm, .minerva-root .container-md, .minerva-root .container-lg, .minerva-root .container-xl { width: 100%; padding-right: 15px; padding-left: 15px; margin-right: auto; margin-left: auto; }\n@media (min-width: 576px) { .minerva-root .container, .minerva-root .container-sm { max-width: 540px; } }\n@media (min-width: 768px) { .minerva-root .container, .minerva-root .container-sm, .minerva-root .container-md { max-width: 720px; } }\n@media (min-width: 992px) { .minerva-root .container, .minerva-root .container-sm, .minerva-root .container-md, .minerva-root .container-lg { max-width: 960px; } }\n@media (min-width: 1200px) { .minerva-root .container, .minerva-root .container-sm, .minerva-root .container-md, .minerva-root .container-lg, .minerva-root .container-xl { max-width: 1140px; } }\n.minerva-root .row { display: flex; flex-wrap: wrap; margin-right: -15px; margin-left: -15px; }\n.minerva-root .no-gutters { margin-right: 0; margin-left: 0; }\n.minerva-root .no-gutters > .col, .minerva-root .no-gutters > [class*="col-"] { padding-right: 0; padding-left: 0; }\n.minerva-root .col-1, .minerva-root .col-2, .minerva-root .col-3, .minerva-root .col-4, .minerva-root .col-5, .minerva-root .col-6, .minerva-root .col-7, .minerva-root .col-8, .minerva-root .col-9, .minerva-root .col-10, .minerva-root .col-11, .minerva-root .col-12, .minerva-root .col, .minerva-root .col-auto, .minerva-root .col-sm-1, .minerva-root .col-sm-2, .minerva-root .col-sm-3, .minerva-root .col-sm-4, .minerva-root .col-sm-5, .minerva-root .col-sm-6, .minerva-root .col-sm-7, .minerva-root .col-sm-8, .minerva-root .col-sm-9, .minerva-root .col-sm-10, .minerva-root .col-sm-11, .minerva-root .col-sm-12, .minerva-root .col-sm, .minerva-root .col-sm-auto, .minerva-root .col-md-1, .minerva-root .col-md-2, .minerva-root .col-md-3, .minerva-root .col-md-4, .minerva-root .col-md-5, .minerva-root .col-md-6, .minerva-root .col-md-7, .minerva-root .col-md-8, .minerva-root .col-md-9, .minerva-root .col-md-10, .minerva-root .col-md-11, .minerva-root .col-md-12, .minerva-root .col-md, .minerva-root .col-md-auto, .minerva-root .col-lg-1, .minerva-root .col-lg-2, .minerva-root .col-lg-3, .minerva-root .col-lg-4, .minerva-root .col-lg-5, .minerva-root .col-lg-6, .minerva-root .col-lg-7, .minerva-root .col-lg-8, .minerva-root .col-lg-9, .minerva-root .col-lg-10, .minerva-root .col-lg-11, .minerva-root .col-lg-12, .minerva-root .col-lg, .minerva-root .col-lg-auto, .minerva-root .col-xl-1, .minerva-root .col-xl-2, .minerva-root .col-xl-3, .minerva-root .col-xl-4, .minerva-root .col-xl-5, .minerva-root .col-xl-6, .minerva-root .col-xl-7, .minerva-root .col-xl-8, .minerva-root .col-xl-9, .minerva-root .col-xl-10, .minerva-root .col-xl-11, .minerva-root .col-xl-12, .minerva-root .col-xl, .minerva-root .col-xl-auto { position: relative; width: 100%; padding-right: 15px; padding-left: 15px; }\n.minerva-root .col { flex-basis: 0; flex-grow: 1; max-width: 100%; }\n.minerva-root .row-cols-1 > * { flex: 0 0 100%; max-width: 100%; }\n.minerva-root .row-cols-2 > * { flex: 0 0 50%; max-width: 50%; }\n.minerva-root .row-cols-3 > * { flex: 0 0 33.3333333333%; max-width: 33.3333333333%; }\n.minerva-root .row-cols-4 > * { flex: 0 0 25%; max-width: 25%; }\n.minerva-root .row-cols-5 > * { flex: 0 0 20%; max-width: 20%; }\n.minerva-root .row-cols-6 > * { flex: 0 0 16.6666666667%; max-width: 16.6666666667%; }\n.minerva-root .col-auto { flex: 0 0 auto; width: auto; max-width: 100%; }\n.minerva-root .col-1 { flex: 0 0 8.3333333333%; max-width: 8.3333333333%; }\n.minerva-root .col-2 { flex: 0 0 16.6666666667%; max-width: 16.6666666667%; }\n.minerva-root .col-3 { flex: 0 0 25%; max-width: 25%; }\n.minerva-root .col-4 { flex: 0 0 33.3333333333%; max-width: 33.3333333333%; }\n.minerva-root .col-5 { flex: 0 0 41.6666666667%; max-width: 41.6666666667%; }\n.minerva-root .col-6 { flex: 0 0 50%; max-width: 50%; }\n.minerva-root .col-7 { flex: 0 0 58.3333333333%; max-width: 58.3333333333%; }\n.minerva-root .col-8 { flex: 0 0 66.6666666667%; max-width: 66.6666666667%; }\n.minerva-root .col-9 { flex: 0 0 75%; max-width: 75%; }\n.minerva-root .col-10 { flex: 0 0 83.3333333333%; max-width: 83.3333333333%; }\n.minerva-root .col-11 { flex: 0 0 91.6666666667%; max-width: 91.6666666667%; }\n.minerva-root .col-12 { flex: 0 0 100%; max-width: 100%; }\n.minerva-root .order-first { order: -1; }\n.minerva-root .order-last { order: 13; }\n.minerva-root .order-0 { order: 0; }\n.minerva-root .order-1 { order: 1; }\n.minerva-root .order-2 { order: 2; }\n.minerva-root .order-3 { order: 3; }\n.minerva-root .order-4 { order: 4; }\n.minerva-root .order-5 { order: 5; }\n.minerva-root .order-6 { order: 6; }\n.minerva-root .order-7 { order: 7; }\n.minerva-root .order-8 { order: 8; }\n.minerva-root .order-9 { order: 9; }\n.minerva-root .order-10 { order: 10; }\n.minerva-root .order-11 { order: 11; }\n.minerva-root .order-12 { order: 12; }\n.minerva-root .offset-1 { margin-left: 8.3333333333%; }\n.minerva-root .offset-2 { margin-left: 16.6666666667%; }\n.minerva-root .offset-3 { margin-left: 25%; }\n.minerva-root .offset-4 { margin-left: 33.3333333333%; }\n.minerva-root .offset-5 { margin-left: 41.6666666667%; }\n.minerva-root .offset-6 { margin-left: 50%; }\n.minerva-root .offset-7 { margin-left: 58.3333333333%; }\n.minerva-root .offset-8 { margin-left: 66.6666666667%; }\n.minerva-root .offset-9 { margin-left: 75%; }\n.minerva-root .offset-10 { margin-left: 83.3333333333%; }\n.minerva-root .offset-11 { margin-left: 91.6666666667%; }\n@media (min-width: 576px) { .minerva-root .col-sm { flex-basis: 0; flex-grow: 1; max-width: 100%; }\n .minerva-root .row-cols-sm-1 > * { flex: 0 0 100%; max-width: 100%; }\n .minerva-root .row-cols-sm-2 > * { flex: 0 0 50%; max-width: 50%; }\n .minerva-root .row-cols-sm-3 > * { flex: 0 0 33.3333333333%; max-width: 33.3333333333%; }\n .minerva-root .row-cols-sm-4 > * { flex: 0 0 25%; max-width: 25%; }\n .minerva-root .row-cols-sm-5 > * { flex: 0 0 20%; max-width: 20%; }\n .minerva-root .row-cols-sm-6 > * { flex: 0 0 16.6666666667%; max-width: 16.6666666667%; }\n .minerva-root .col-sm-auto { flex: 0 0 auto; width: auto; max-width: 100%; }\n .minerva-root .col-sm-1 { flex: 0 0 8.3333333333%; max-width: 8.3333333333%; }\n .minerva-root .col-sm-2 { flex: 0 0 16.6666666667%; max-width: 16.6666666667%; }\n .minerva-root .col-sm-3 { flex: 0 0 25%; max-width: 25%; }\n .minerva-root .col-sm-4 { flex: 0 0 33.3333333333%; max-width: 33.3333333333%; }\n .minerva-root .col-sm-5 { flex: 0 0 41.6666666667%; max-width: 41.6666666667%; }\n .minerva-root .col-sm-6 { flex: 0 0 50%; max-width: 50%; }\n .minerva-root .col-sm-7 { flex: 0 0 58.3333333333%; max-width: 58.3333333333%; }\n .minerva-root .col-sm-8 { flex: 0 0 66.6666666667%; max-width: 66.6666666667%; }\n .minerva-root .col-sm-9 { flex: 0 0 75%; max-width: 75%; }\n .minerva-root .col-sm-10 { flex: 0 0 83.3333333333%; max-width: 83.3333333333%; }\n .minerva-root .col-sm-11 { flex: 0 0 91.6666666667%; max-width: 91.6666666667%; }\n .minerva-root .col-sm-12 { flex: 0 0 100%; max-width: 100%; }\n .minerva-root .order-sm-first { order: -1; }\n .minerva-root .order-sm-last { order: 13; }\n .minerva-root .order-sm-0 { order: 0; }\n .minerva-root .order-sm-1 { order: 1; }\n .minerva-root .order-sm-2 { order: 2; }\n .minerva-root .order-sm-3 { order: 3; }\n .minerva-root .order-sm-4 { order: 4; }\n .minerva-root .order-sm-5 { order: 5; }\n .minerva-root .order-sm-6 { order: 6; }\n .minerva-root .order-sm-7 { order: 7; }\n .minerva-root .order-sm-8 { order: 8; }\n .minerva-root .order-sm-9 { order: 9; }\n .minerva-root .order-sm-10 { order: 10; }\n .minerva-root .order-sm-11 { order: 11; }\n .minerva-root .order-sm-12 { order: 12; }\n .minerva-root .offset-sm-0 { margin-left: 0; }\n .minerva-root .offset-sm-1 { margin-left: 8.3333333333%; }\n .minerva-root .offset-sm-2 { margin-left: 16.6666666667%; }\n .minerva-root .offset-sm-3 { margin-left: 25%; }\n .minerva-root .offset-sm-4 { margin-left: 33.3333333333%; }\n .minerva-root .offset-sm-5 { margin-left: 41.6666666667%; }\n .minerva-root .offset-sm-6 { margin-left: 50%; }\n .minerva-root .offset-sm-7 { margin-left: 58.3333333333%; }\n .minerva-root .offset-sm-8 { margin-left: 66.6666666667%; }\n .minerva-root .offset-sm-9 { margin-left: 75%; }\n .minerva-root .offset-sm-10 { margin-left: 83.3333333333%; }\n .minerva-root .offset-sm-11 { margin-left: 91.6666666667%; } }\n@media (min-width: 768px) { .minerva-root .col-md { flex-basis: 0; flex-grow: 1; max-width: 100%; }\n .minerva-root .row-cols-md-1 > * { flex: 0 0 100%; max-width: 100%; }\n .minerva-root .row-cols-md-2 > * { flex: 0 0 50%; max-width: 50%; }\n .minerva-root .row-cols-md-3 > * { flex: 0 0 33.3333333333%; max-width: 33.3333333333%; }\n .minerva-root .row-cols-md-4 > * { flex: 0 0 25%; max-width: 25%; }\n .minerva-root .row-cols-md-5 > * { flex: 0 0 20%; max-width: 20%; }\n .minerva-root .row-cols-md-6 > * { flex: 0 0 16.6666666667%; max-width: 16.6666666667%; }\n .minerva-root .col-md-auto { flex: 0 0 auto; width: auto; max-width: 100%; }\n .minerva-root .col-md-1 { flex: 0 0 8.3333333333%; max-width: 8.3333333333%; }\n .minerva-root .col-md-2 { flex: 0 0 16.6666666667%; max-width: 16.6666666667%; }\n .minerva-root .col-md-3 { flex: 0 0 25%; max-width: 25%; }\n .minerva-root .col-md-4 { flex: 0 0 33.3333333333%; max-width: 33.3333333333%; }\n .minerva-root .col-md-5 { flex: 0 0 41.6666666667%; max-width: 41.6666666667%; }\n .minerva-root .col-md-6 { flex: 0 0 50%; max-width: 50%; }\n .minerva-root .col-md-7 { flex: 0 0 58.3333333333%; max-width: 58.3333333333%; }\n .minerva-root .col-md-8 { flex: 0 0 66.6666666667%; max-width: 66.6666666667%; }\n .minerva-root .col-md-9 { flex: 0 0 75%; max-width: 75%; }\n .minerva-root .col-md-10 { flex: 0 0 83.3333333333%; max-width: 83.3333333333%; }\n .minerva-root .col-md-11 { flex: 0 0 91.6666666667%; max-width: 91.6666666667%; }\n .minerva-root .col-md-12 { flex: 0 0 100%; max-width: 100%; }\n .minerva-root .order-md-first { order: -1; }\n .minerva-root .order-md-last { order: 13; }\n .minerva-root .order-md-0 { order: 0; }\n .minerva-root .order-md-1 { order: 1; }\n .minerva-root .order-md-2 { order: 2; }\n .minerva-root .order-md-3 { order: 3; }\n .minerva-root .order-md-4 { order: 4; }\n .minerva-root .order-md-5 { order: 5; }\n .minerva-root .order-md-6 { order: 6; }\n .minerva-root .order-md-7 { order: 7; }\n .minerva-root .order-md-8 { order: 8; }\n .minerva-root .order-md-9 { order: 9; }\n .minerva-root .order-md-10 { order: 10; }\n .minerva-root .order-md-11 { order: 11; }\n .minerva-root .order-md-12 { order: 12; }\n .minerva-root .offset-md-0 { margin-left: 0; }\n .minerva-root .offset-md-1 { margin-left: 8.3333333333%; }\n .minerva-root .offset-md-2 { margin-left: 16.6666666667%; }\n .minerva-root .offset-md-3 { margin-left: 25%; }\n .minerva-root .offset-md-4 { margin-left: 33.3333333333%; }\n .minerva-root .offset-md-5 { margin-left: 41.6666666667%; }\n .minerva-root .offset-md-6 { margin-left: 50%; }\n .minerva-root .offset-md-7 { margin-left: 58.3333333333%; }\n .minerva-root .offset-md-8 { margin-left: 66.6666666667%; }\n .minerva-root .offset-md-9 { margin-left: 75%; }\n .minerva-root .offset-md-10 { margin-left: 83.3333333333%; }\n .minerva-root .offset-md-11 { margin-left: 91.6666666667%; } }\n@media (min-width: 992px) { .minerva-root .col-lg { flex-basis: 0; flex-grow: 1; max-width: 100%; }\n .minerva-root .row-cols-lg-1 > * { flex: 0 0 100%; max-width: 100%; }\n .minerva-root .row-cols-lg-2 > * { flex: 0 0 50%; max-width: 50%; }\n .minerva-root .row-cols-lg-3 > * { flex: 0 0 33.3333333333%; max-width: 33.3333333333%; }\n .minerva-root .row-cols-lg-4 > * { flex: 0 0 25%; max-width: 25%; }\n .minerva-root .row-cols-lg-5 > * { flex: 0 0 20%; max-width: 20%; }\n .minerva-root .row-cols-lg-6 > * { flex: 0 0 16.6666666667%; max-width: 16.6666666667%; }\n .minerva-root .col-lg-auto { flex: 0 0 auto; width: auto; max-width: 100%; }\n .minerva-root .col-lg-1 { flex: 0 0 8.3333333333%; max-width: 8.3333333333%; }\n .minerva-root .col-lg-2 { flex: 0 0 16.6666666667%; max-width: 16.6666666667%; }\n .minerva-root .col-lg-3 { flex: 0 0 25%; max-width: 25%; }\n .minerva-root .col-lg-4 { flex: 0 0 33.3333333333%; max-width: 33.3333333333%; }\n .minerva-root .col-lg-5 { flex: 0 0 41.6666666667%; max-width: 41.6666666667%; }\n .minerva-root .col-lg-6 { flex: 0 0 50%; max-width: 50%; }\n .minerva-root .col-lg-7 { flex: 0 0 58.3333333333%; max-width: 58.3333333333%; }\n .minerva-root .col-lg-8 { flex: 0 0 66.6666666667%; max-width: 66.6666666667%; }\n .minerva-root .col-lg-9 { flex: 0 0 75%; max-width: 75%; }\n .minerva-root .col-lg-10 { flex: 0 0 83.3333333333%; max-width: 83.3333333333%; }\n .minerva-root .col-lg-11 { flex: 0 0 91.6666666667%; max-width: 91.6666666667%; }\n .minerva-root .col-lg-12 { flex: 0 0 100%; max-width: 100%; }\n .minerva-root .order-lg-first { order: -1; }\n .minerva-root .order-lg-last { order: 13; }\n .minerva-root .order-lg-0 { order: 0; }\n .minerva-root .order-lg-1 { order: 1; }\n .minerva-root .order-lg-2 { order: 2; }\n .minerva-root .order-lg-3 { order: 3; }\n .minerva-root .order-lg-4 { order: 4; }\n .minerva-root .order-lg-5 { order: 5; }\n .minerva-root .order-lg-6 { order: 6; }\n .minerva-root .order-lg-7 { order: 7; }\n .minerva-root .order-lg-8 { order: 8; }\n .minerva-root .order-lg-9 { order: 9; }\n .minerva-root .order-lg-10 { order: 10; }\n .minerva-root .order-lg-11 { order: 11; }\n .minerva-root .order-lg-12 { order: 12; }\n .minerva-root .offset-lg-0 { margin-left: 0; }\n .minerva-root .offset-lg-1 { margin-left: 8.3333333333%; }\n .minerva-root .offset-lg-2 { margin-left: 16.6666666667%; }\n .minerva-root .offset-lg-3 { margin-left: 25%; }\n .minerva-root .offset-lg-4 { margin-left: 33.3333333333%; }\n .minerva-root .offset-lg-5 { margin-left: 41.6666666667%; }\n .minerva-root .offset-lg-6 { margin-left: 50%; }\n .minerva-root .offset-lg-7 { margin-left: 58.3333333333%; }\n .minerva-root .offset-lg-8 { margin-left: 66.6666666667%; }\n .minerva-root .offset-lg-9 { margin-left: 75%; }\n .minerva-root .offset-lg-10 { margin-left: 83.3333333333%; }\n .minerva-root .offset-lg-11 { margin-left: 91.6666666667%; } }\n@media (min-width: 1200px) { .minerva-root .col-xl { flex-basis: 0; flex-grow: 1; max-width: 100%; }\n .minerva-root .row-cols-xl-1 > * { flex: 0 0 100%; max-width: 100%; }\n .minerva-root .row-cols-xl-2 > * { flex: 0 0 50%; max-width: 50%; }\n .minerva-root .row-cols-xl-3 > * { flex: 0 0 33.3333333333%; max-width: 33.3333333333%; }\n .minerva-root .row-cols-xl-4 > * { flex: 0 0 25%; max-width: 25%; }\n .minerva-root .row-cols-xl-5 > * { flex: 0 0 20%; max-width: 20%; }\n .minerva-root .row-cols-xl-6 > * { flex: 0 0 16.6666666667%; max-width: 16.6666666667%; }\n .minerva-root .col-xl-auto { flex: 0 0 auto; width: auto; max-width: 100%; }\n .minerva-root .col-xl-1 { flex: 0 0 8.3333333333%; max-width: 8.3333333333%; }\n .minerva-root .col-xl-2 { flex: 0 0 16.6666666667%; max-width: 16.6666666667%; }\n .minerva-root .col-xl-3 { flex: 0 0 25%; max-width: 25%; }\n .minerva-root .col-xl-4 { flex: 0 0 33.3333333333%; max-width: 33.3333333333%; }\n .minerva-root .col-xl-5 { flex: 0 0 41.6666666667%; max-width: 41.6666666667%; }\n .minerva-root .col-xl-6 { flex: 0 0 50%; max-width: 50%; }\n .minerva-root .col-xl-7 { flex: 0 0 58.3333333333%; max-width: 58.3333333333%; }\n .minerva-root .col-xl-8 { flex: 0 0 66.6666666667%; max-width: 66.6666666667%; }\n .minerva-root .col-xl-9 { flex: 0 0 75%; max-width: 75%; }\n .minerva-root .col-xl-10 { flex: 0 0 83.3333333333%; max-width: 83.3333333333%; }\n .minerva-root .col-xl-11 { flex: 0 0 91.6666666667%; max-width: 91.6666666667%; }\n .minerva-root .col-xl-12 { flex: 0 0 100%; max-width: 100%; }\n .minerva-root .order-xl-first { order: -1; }\n .minerva-root .order-xl-last { order: 13; }\n .minerva-root .order-xl-0 { order: 0; }\n .minerva-root .order-xl-1 { order: 1; }\n .minerva-root .order-xl-2 { order: 2; }\n .minerva-root .order-xl-3 { order: 3; }\n .minerva-root .order-xl-4 { order: 4; }\n .minerva-root .order-xl-5 { order: 5; }\n .minerva-root .order-xl-6 { order: 6; }\n .minerva-root .order-xl-7 { order: 7; }\n .minerva-root .order-xl-8 { order: 8; }\n .minerva-root .order-xl-9 { order: 9; }\n .minerva-root .order-xl-10 { order: 10; }\n .minerva-root .order-xl-11 { order: 11; }\n .minerva-root .order-xl-12 { order: 12; }\n .minerva-root .offset-xl-0 { margin-left: 0; }\n .minerva-root .offset-xl-1 { margin-left: 8.3333333333%; }\n .minerva-root .offset-xl-2 { margin-left: 16.6666666667%; }\n .minerva-root .offset-xl-3 { margin-left: 25%; }\n .minerva-root .offset-xl-4 { margin-left: 33.3333333333%; }\n .minerva-root .offset-xl-5 { margin-left: 41.6666666667%; }\n .minerva-root .offset-xl-6 { margin-left: 50%; }\n .minerva-root .offset-xl-7 { margin-left: 58.3333333333%; }\n .minerva-root .offset-xl-8 { margin-left: 66.6666666667%; }\n .minerva-root .offset-xl-9 { margin-left: 75%; }\n .minerva-root .offset-xl-10 { margin-left: 83.3333333333%; }\n .minerva-root .offset-xl-11 { margin-left: 91.6666666667%; } }\n.minerva-root .table { width: 100%; margin-bottom: 1rem; color: #212529; }\n.minerva-root .table th, .minerva-root .table td { padding: 0.75rem; vertical-align: top; border-top: 1px solid #dee2e6; }\n.minerva-root .table thead th { vertical-align: bottom; border-bottom: 2px solid #dee2e6; }\n.minerva-root .table tbody + tbody { border-top: 2px solid #dee2e6; }\n.minerva-root .table-sm th, .minerva-root .table-sm td { padding: 0.3rem; }\n.minerva-root .table-bordered { border: 1px solid #dee2e6; }\n.minerva-root .table-bordered th, .minerva-root .table-bordered td { border: 1px solid #dee2e6; }\n.minerva-root .table-bordered thead th, .minerva-root .table-bordered thead td { border-bottom-width: 2px; }\n.minerva-root .table-borderless th, .minerva-root .table-borderless td, .minerva-root .table-borderless thead th, .minerva-root .table-borderless tbody + tbody { border: 0; }\n.minerva-root .table-striped tbody tr:nth-of-type(odd) { background-color: rgba(0, 0, 0, 0.05); }\n.minerva-root .table-hover tbody tr:hover { color: #212529; background-color: rgba(0, 0, 0, 0.075); }\n.minerva-root .table-primary, .minerva-root .table-primary > th, .minerva-root .table-primary > td { background-color: #b8daff; }\n.minerva-root .table-primary th, .minerva-root .table-primary td, .minerva-root .table-primary thead th, .minerva-root .table-primary tbody + tbody { border-color: #7abaff; }\n.minerva-root .table-hover .table-primary:hover { background-color: #9fcdff; }\n.minerva-root .table-hover .table-primary:hover > td, .minerva-root .table-hover .table-primary:hover > th { background-color: #9fcdff; }\n.minerva-root .table-secondary, .minerva-root .table-secondary > th, .minerva-root .table-secondary > td { background-color: #d6d8db; }\n.minerva-root .table-secondary th, .minerva-root .table-secondary td, .minerva-root .table-secondary thead th, .minerva-root .table-secondary tbody + tbody { border-color: #b3b7bb; }\n.minerva-root .table-hover .table-secondary:hover { background-color: #c8cbcf; }\n.minerva-root .table-hover .table-secondary:hover > td, .minerva-root .table-hover .table-secondary:hover > th { background-color: #c8cbcf; }\n.minerva-root .table-success, .minerva-root .table-success > th, .minerva-root .table-success > td { background-color: #c3e6cb; }\n.minerva-root .table-success th, .minerva-root .table-success td, .minerva-root .table-success thead th, .minerva-root .table-success tbody + tbody { border-color: #8fd19e; }\n.minerva-root .table-hover .table-success:hover { background-color: #b1dfbb; }\n.minerva-root .table-hover .table-success:hover > td, .minerva-root .table-hover .table-success:hover > th { background-color: #b1dfbb; }\n.minerva-root .table-info, .minerva-root .table-info > th, .minerva-root .table-info > td { background-color: #bee5eb; }\n.minerva-root .table-info th, .minerva-root .table-info td, .minerva-root .table-info thead th, .minerva-root .table-info tbody + tbody { border-color: #86cfda; }\n.minerva-root .table-hover .table-info:hover { background-color: #abdde5; }\n.minerva-root .table-hover .table-info:hover > td, .minerva-root .table-hover .table-info:hover > th { background-color: #abdde5; }\n.minerva-root .table-warning, .minerva-root .table-warning > th, .minerva-root .table-warning > td { background-color: #ffeeba; }\n.minerva-root .table-warning th, .minerva-root .table-warning td, .minerva-root .table-warning thead th, .minerva-root .table-warning tbody + tbody { border-color: #ffdf7e; }\n.minerva-root .table-hover .table-warning:hover { background-color: #ffe8a1; }\n.minerva-root .table-hover .table-warning:hover > td, .minerva-root .table-hover .table-warning:hover > th { background-color: #ffe8a1; }\n.minerva-root .table-danger, .minerva-root .table-danger > th, .minerva-root .table-danger > td { background-color: #f5c6cb; }\n.minerva-root .table-danger th, .minerva-root .table-danger td, .minerva-root .table-danger thead th, .minerva-root .table-danger tbody + tbody { border-color: #ed969e; }\n.minerva-root .table-hover .table-danger:hover { background-color: #f1b0b7; }\n.minerva-root .table-hover .table-danger:hover > td, .minerva-root .table-hover .table-danger:hover > th { background-color: #f1b0b7; }\n.minerva-root .table-light, .minerva-root .table-light > th, .minerva-root .table-light > td { background-color: #fdfdfe; }\n.minerva-root .table-light th, .minerva-root .table-light td, .minerva-root .table-light thead th, .minerva-root .table-light tbody + tbody { border-color: #fbfcfc; }\n.minerva-root .table-hover .table-light:hover { background-color: #ececf6; }\n.minerva-root .table-hover .table-light:hover > td, .minerva-root .table-hover .table-light:hover > th { background-color: #ececf6; }\n.minerva-root .table-dark, .minerva-root .table-dark > th, .minerva-root .table-dark > td { background-color: #c6c8ca; }\n.minerva-root .table-dark th, .minerva-root .table-dark td, .minerva-root .table-dark thead th, .minerva-root .table-dark tbody + tbody { border-color: #95999c; }\n.minerva-root .table-hover .table-dark:hover { background-color: #b9bbbe; }\n.minerva-root .table-hover .table-dark:hover > td, .minerva-root .table-hover .table-dark:hover > th { background-color: #b9bbbe; }\n.minerva-root .table-active, .minerva-root .table-active > th, .minerva-root .table-active > td { background-color: rgba(0, 0, 0, 0.075); }\n.minerva-root .table-hover .table-active:hover { background-color: rgba(0, 0, 0, 0.075); }\n.minerva-root .table-hover .table-active:hover > td, .minerva-root .table-hover .table-active:hover > th { background-color: rgba(0, 0, 0, 0.075); }\n.minerva-root .table .thead-dark th { color: #fff; background-color: #343a40; border-color: #454d55; }\n.minerva-root .table .thead-light th { color: #495057; background-color: #e9ecef; border-color: #dee2e6; }\n.minerva-root .table-dark { color: #fff; background-color: #343a40; }\n.minerva-root .table-dark th, .minerva-root .table-dark td, .minerva-root .table-dark thead th { border-color: #454d55; }\n.minerva-root .table-dark.table-bordered { border: 0; }\n.minerva-root .table-dark.table-striped tbody tr:nth-of-type(odd) { background-color: rgba(255, 255, 255, 0.05); }\n.minerva-root .table-dark.table-hover tbody tr:hover { color: #fff; background-color: rgba(255, 255, 255, 0.075); }\n@media (max-width: 575.98px) { .minerva-root .table-responsive-sm { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }\n .minerva-root .table-responsive-sm > .table-bordered { border: 0; } }\n@media (max-width: 767.98px) { .minerva-root .table-responsive-md { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }\n .minerva-root .table-responsive-md > .table-bordered { border: 0; } }\n@media (max-width: 991.98px) { .minerva-root .table-responsive-lg { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }\n .minerva-root .table-responsive-lg > .table-bordered { border: 0; } }\n@media (max-width: 1199.98px) { .minerva-root .table-responsive-xl { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }\n .minerva-root .table-responsive-xl > .table-bordered { border: 0; } }\n.minerva-root .table-responsive { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }\n.minerva-root .table-responsive > .table-bordered { border: 0; }\n.minerva-root .form-control { display: block; width: 100%; height: calc(1.5em + 0.75rem + 2px); padding: 0.375rem 0.75rem; font-size: 1rem; font-weight: 400; line-height: 1.5; color: #495057; background-color: #fff; background-clip: padding-box; border: 1px solid #ced4da; border-radius: 0.25rem; transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; }\n@media (prefers-reduced-motion: reduce) { .minerva-root .form-control { transition: none; } }\n.minerva-root .form-control::-ms-expand { background-color: transparent; border: 0; }\n.minerva-root .form-control:-moz-focusring { color: transparent; text-shadow: 0 0 0 #495057; }\n.minerva-root .form-control:focus { color: #495057; background-color: #fff; border-color: #80bdff; outline: 0; box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25); }\n.minerva-root .form-control::placeholder { color: #6c757d; opacity: 1; }\n.minerva-root .form-control:disabled, .minerva-root .form-control[readonly] { background-color: #e9ecef; opacity: 1; }\n.minerva-root select.form-control:focus::-ms-value { color: #495057; background-color: #fff; }\n.minerva-root .form-control-file, .minerva-root .form-control-range { display: block; width: 100%; }\n.minerva-root .col-form-label { padding-top: calc(0.375rem + 1px); padding-bottom: calc(0.375rem + 1px); margin-bottom: 0; font-size: inherit; line-height: 1.5; }\n.minerva-root .col-form-label-lg { padding-top: calc(0.5rem + 1px); padding-bottom: calc(0.5rem + 1px); font-size: 1.25rem; line-height: 1.5; }\n.minerva-root .col-form-label-sm { padding-top: calc(0.25rem + 1px); padding-bottom: calc(0.25rem + 1px); font-size: 0.875rem; line-height: 1.5; }\n.minerva-root .form-control-plaintext { display: block; width: 100%; padding: 0.375rem 0; margin-bottom: 0; font-size: 1rem; line-height: 1.5; color: #212529; background-color: transparent; border: solid transparent; border-width: 1px 0; }\n.minerva-root .form-control-plaintext.form-control-sm, .minerva-root .form-control-plaintext.form-control-lg { padding-right: 0; padding-left: 0; }\n.minerva-root .form-control-sm { height: calc(1.5em + 0.5rem + 2px); padding: 0.25rem 0.5rem; font-size: 0.875rem; line-height: 1.5; border-radius: 0.2rem; }\n.minerva-root .form-control-lg { height: calc(1.5em + 1rem + 2px); padding: 0.5rem 1rem; font-size: 1.25rem; line-height: 1.5; border-radius: 0.3rem; }\n.minerva-root select.form-control[size], .minerva-root select.form-control[multiple] { height: auto; }\n.minerva-root textarea.form-control { height: auto; }\n.minerva-root .form-group { margin-bottom: 1rem; }\n.minerva-root .form-text { display: block; margin-top: 0.25rem; }\n.minerva-root .form-row { display: flex; flex-wrap: wrap; margin-right: -5px; margin-left: -5px; }\n.minerva-root .form-row > .col, .minerva-root .form-row > [class*="col-"] { padding-right: 5px; padding-left: 5px; }\n.minerva-root .form-check { position: relative; display: block; padding-left: 1.25rem; }\n.minerva-root .form-check-input { position: absolute; margin-top: 0.3rem; margin-left: -1.25rem; }\n.minerva-root .form-check-input[disabled] ~ .form-check-label, .minerva-root .form-check-input:disabled ~ .form-check-label { color: #6c757d; }\n.minerva-root .form-check-label { margin-bottom: 0; }\n.minerva-root .form-check-inline { display: inline-flex; align-items: center; padding-left: 0; margin-right: 0.75rem; }\n.minerva-root .form-check-inline .form-check-input { position: static; margin-top: 0; margin-right: 0.3125rem; margin-left: 0; }\n.minerva-root .valid-feedback { display: none; width: 100%; margin-top: 0.25rem; font-size: 80%; color: #28a745; }\n.minerva-root .valid-tooltip { position: absolute; top: 100%; z-index: 5; display: none; max-width: 100%; padding: 0.25rem 0.5rem; margin-top: .1rem; font-size: 0.875rem; line-height: 1.5; color: #fff; background-color: rgba(40, 167, 69, 0.9); border-radius: 0.25rem; }\n.was-validated .minerva-root:valid ~ .valid-feedback, .was-validated .minerva-root:valid ~ .valid-tooltip, .minerva-root.is-valid ~ .valid-feedback, .minerva-root.is-valid ~ .valid-tooltip { display: block; }\n.was-validated .minerva-root .form-control:valid, .minerva-root .form-control.is-valid { border-color: #28a745; padding-right: calc(1.5em + 0.75rem); background-image: url("data:image/svg+xml,%3csvg xmlns=\'http://www.w3.org/2000/svg\' width=\'8\' height=\'8\' viewBox=\'0 0 8 8\'%3e%3cpath fill=\'%2328a745\' d=\'M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z\'/%3e%3c/svg%3e"); background-repeat: no-repeat; background-position: right calc(0.375em + 0.1875rem) center; background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem); }\n.was-validated .minerva-root .form-control:valid:focus, .minerva-root .form-control.is-valid:focus { border-color: #28a745; box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25); }\n.was-validated .minerva-root textarea.form-control:valid, .minerva-root textarea.form-control.is-valid { padding-right: calc(1.5em + 0.75rem); background-position: top calc(0.375em + 0.1875rem) right calc(0.375em + 0.1875rem); }\n.was-validated .minerva-root .custom-select:valid, .minerva-root .custom-select.is-valid { border-color: #28a745; padding-right: calc(0.75em + 2.3125rem); background: url("data:image/svg+xml,%3csvg xmlns=\'http://www.w3.org/2000/svg\' width=\'4\' height=\'5\' viewBox=\'0 0 4 5\'%3e%3cpath fill=\'%23343a40\' d=\'M2 0L0 2h4zm0 5L0 3h4z\'/%3e%3c/svg%3e") no-repeat right 0.75rem center/8px 10px, url("data:image/svg+xml,%3csvg xmlns=\'http://www.w3.org/2000/svg\' width=\'8\' height=\'8\' viewBox=\'0 0 8 8\'%3e%3cpath fill=\'%2328a745\' d=\'M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z\'/%3e%3c/svg%3e") #fff no-repeat center right 1.75rem/calc(0.75em + 0.375rem) calc(0.75em + 0.375rem); }\n.was-validated .minerva-root .custom-select:valid:focus, .minerva-root .custom-select.is-valid:focus { border-color: #28a745; box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25); }\n.was-validated .minerva-root .form-check-input:valid ~ .form-check-label, .minerva-root .form-check-input.is-valid ~ .form-check-label { color: #28a745; }\n.was-validated .minerva-root .form-check-input:valid ~ .valid-feedback, .was-validated .minerva-root .form-check-input:valid ~ .valid-tooltip, .minerva-root .form-check-input.is-valid ~ .valid-feedback, .minerva-root .form-check-input.is-valid ~ .valid-tooltip { display: block; }\n.was-validated .minerva-root .custom-control-input:valid ~ .custom-control-label, .minerva-root .custom-control-input.is-valid ~ .custom-control-label { color: #28a745; }\n.was-validated .minerva-root .custom-control-input:valid ~ .custom-control-label::before, .minerva-root .custom-control-input.is-valid ~ .custom-control-label::before { border-color: #28a745; }\n.was-validated .minerva-root .custom-control-input:valid:checked ~ .custom-control-label::before, .minerva-root .custom-control-input.is-valid:checked ~ .custom-control-label::before { border-color: #34ce57; background-color: #34ce57; }\n.was-validated .minerva-root .custom-control-input:valid:focus ~ .custom-control-label::before, .minerva-root .custom-control-input.is-valid:focus ~ .custom-control-label::before { box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25); }\n.was-validated .minerva-root .custom-control-input:valid:focus:not(:checked) ~ .custom-control-label::before, .minerva-root .custom-control-input.is-valid:focus:not(:checked) ~ .custom-control-label::before { border-color: #28a745; }\n.was-validated .minerva-root .custom-file-input:valid ~ .custom-file-label, .minerva-root .custom-file-input.is-valid ~ .custom-file-label { border-color: #28a745; }\n.was-validated .minerva-root .custom-file-input:valid:focus ~ .custom-file-label, .minerva-root .custom-file-input.is-valid:focus ~ .custom-file-label { border-color: #28a745; box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25); }\n.minerva-root .invalid-feedback { display: none; width: 100%; margin-top: 0.25rem; font-size: 80%; color: #dc3545; }\n.minerva-root .invalid-tooltip { position: absolute; top: 100%; z-index: 5; display: none; max-width: 100%; padding: 0.25rem 0.5rem; margin-top: .1rem; font-size: 0.875rem; line-height: 1.5; color: #fff; background-color: rgba(220, 53, 69, 0.9); border-radius: 0.25rem; }\n.was-validated .minerva-root:invalid ~ .invalid-feedback, .was-validated .minerva-root:invalid ~ .invalid-tooltip, .minerva-root.is-invalid ~ .invalid-feedback, .minerva-root.is-invalid ~ .invalid-tooltip { display: block; }\n.was-validated .minerva-root .form-control:invalid, .minerva-root .form-control.is-invalid { border-color: #dc3545; padding-right: calc(1.5em + 0.75rem); background-image: url("data:image/svg+xml,%3csvg xmlns=\'http://www.w3.org/2000/svg\' width=\'12\' height=\'12\' fill=\'none\' stroke=\'%23dc3545\' viewBox=\'0 0 12 12\'%3e%3ccircle cx=\'6\' cy=\'6\' r=\'4.5\'/%3e%3cpath stroke-linejoin=\'round\' d=\'M5.8 3.6h.4L6 6.5z\'/%3e%3ccircle cx=\'6\' cy=\'8.2\' r=\'.6\' fill=\'%23dc3545\' stroke=\'none\'/%3e%3c/svg%3e"); background-repeat: no-repeat; background-position: right calc(0.375em + 0.1875rem) center; background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem); }\n.was-validated .minerva-root .form-control:invalid:focus, .minerva-root .form-control.is-invalid:focus { border-color: #dc3545; box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25); }\n.was-validated .minerva-root textarea.form-control:invalid, .minerva-root textarea.form-control.is-invalid { padding-right: calc(1.5em + 0.75rem); background-position: top calc(0.375em + 0.1875rem) right calc(0.375em + 0.1875rem); }\n.was-validated .minerva-root .custom-select:invalid, .minerva-root .custom-select.is-invalid { border-color: #dc3545; padding-right: calc(0.75em + 2.3125rem); background: url("data:image/svg+xml,%3csvg xmlns=\'http://www.w3.org/2000/svg\' width=\'4\' height=\'5\' viewBox=\'0 0 4 5\'%3e%3cpath fill=\'%23343a40\' d=\'M2 0L0 2h4zm0 5L0 3h4z\'/%3e%3c/svg%3e") no-repeat right 0.75rem center/8px 10px, url("data:image/svg+xml,%3csvg xmlns=\'http://www.w3.org/2000/svg\' width=\'12\' height=\'12\' fill=\'none\' stroke=\'%23dc3545\' viewBox=\'0 0 12 12\'%3e%3ccircle cx=\'6\' cy=\'6\' r=\'4.5\'/%3e%3cpath stroke-linejoin=\'round\' d=\'M5.8 3.6h.4L6 6.5z\'/%3e%3ccircle cx=\'6\' cy=\'8.2\' r=\'.6\' fill=\'%23dc3545\' stroke=\'none\'/%3e%3c/svg%3e") #fff no-repeat center right 1.75rem/calc(0.75em + 0.375rem) calc(0.75em + 0.375rem); }\n.was-validated .minerva-root .custom-select:invalid:focus, .minerva-root .custom-select.is-invalid:focus { border-color: #dc3545; box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25); }\n.was-validated .minerva-root .form-check-input:invalid ~ .form-check-label, .minerva-root .form-check-input.is-invalid ~ .form-check-label { color: #dc3545; }\n.was-validated .minerva-root .form-check-input:invalid ~ .invalid-feedback, .was-validated .minerva-root .form-check-input:invalid ~ .invalid-tooltip, .minerva-root .form-check-input.is-invalid ~ .invalid-feedback, .minerva-root .form-check-input.is-invalid ~ .invalid-tooltip { display: block; }\n.was-validated .minerva-root .custom-control-input:invalid ~ .custom-control-label, .minerva-root .custom-control-input.is-invalid ~ .custom-control-label { color: #dc3545; }\n.was-validated .minerva-root .custom-control-input:invalid ~ .custom-control-label::before, .minerva-root .custom-control-input.is-invalid ~ .custom-control-label::before { border-color: #dc3545; }\n.was-validated .minerva-root .custom-control-input:invalid:checked ~ .custom-control-label::before, .minerva-root .custom-control-input.is-invalid:checked ~ .custom-control-label::before { border-color: #e4606d; background-color: #e4606d; }\n.was-validated .minerva-root .custom-control-input:invalid:focus ~ .custom-control-label::before, .minerva-root .custom-control-input.is-invalid:focus ~ .custom-control-label::before { box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25); }\n.was-validated .minerva-root .custom-control-input:invalid:focus:not(:checked) ~ .custom-control-label::before, .minerva-root .custom-control-input.is-invalid:focus:not(:checked) ~ .custom-control-label::before { border-color: #dc3545; }\n.was-validated .minerva-root .custom-file-input:invalid ~ .custom-file-label, .minerva-root .custom-file-input.is-invalid ~ .custom-file-label { border-color: #dc3545; }\n.was-validated .minerva-root .custom-file-input:invalid:focus ~ .custom-file-label, .minerva-root .custom-file-input.is-invalid:focus ~ .custom-file-label { border-color: #dc3545; box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25); }\n.minerva-root .form-inline { display: flex; flex-flow: row wrap; align-items: center; }\n.minerva-root .form-inline .form-check { width: 100%; }\n@media (min-width: 576px) { .minerva-root .form-inline label { display: flex; align-items: center; justify-content: center; margin-bottom: 0; }\n .minerva-root .form-inline .form-group { display: flex; flex: 0 0 auto; flex-flow: row wrap; align-items: center; margin-bottom: 0; }\n .minerva-root .form-inline .form-control { display: inline-block; width: auto; vertical-align: middle; }\n .minerva-root .form-inline .form-control-plaintext { display: inline-block; }\n .minerva-root .form-inline .input-group, .minerva-root .form-inline .custom-select { width: auto; }\n .minerva-root .form-inline .form-check { display: flex; align-items: center; justify-content: center; width: auto; padding-left: 0; }\n .minerva-root .form-inline .form-check-input { position: relative; flex-shrink: 0; margin-top: 0; margin-right: 0.25rem; margin-left: 0; }\n .minerva-root .form-inline .custom-control { align-items: center; justify-content: center; }\n .minerva-root .form-inline .custom-control-label { margin-bottom: 0; } }\n.minerva-root .btn { display: inline-block; font-weight: 400; color: #212529; text-align: center; vertical-align: middle; cursor: pointer; user-select: none; background-color: transparent; border: 1px solid transparent; padding: 0.375rem 0.75rem; font-size: 1rem; line-height: 1.5; border-radius: 0.25rem; transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; }\n@media (prefers-reduced-motion: reduce) { .minerva-root .btn { transition: none; } }\n.minerva-root .btn:hover { color: #212529; text-decoration: none; }\n.minerva-root .btn:focus, .minerva-root .btn.focus { outline: 0; box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25); }\n.minerva-root .btn.disabled, .minerva-root .btn:disabled { opacity: 0.65; }\n.minerva-root a.btn.disabled, .minerva-root fieldset:disabled a.btn { pointer-events: none; }\n.minerva-root .btn-primary { color: #fff; background-color: #007bff; border-color: #007bff; }\n.minerva-root .btn-primary:hover { color: #fff; background-color: #0069d9; border-color: #0062cc; }\n.minerva-root .btn-primary:focus, .minerva-root .btn-primary.focus { color: #fff; background-color: #0069d9; border-color: #0062cc; box-shadow: 0 0 0 0.2rem rgba(38, 143, 255, 0.5); }\n.minerva-root .btn-primary.disabled, .minerva-root .btn-primary:disabled { color: #fff; background-color: #007bff; border-color: #007bff; }\n.minerva-root .btn-primary:not(:disabled):not(.disabled):active, .minerva-root .btn-primary:not(:disabled):not(.disabled).active, .show > .minerva-root .btn-primary.dropdown-toggle { color: #fff; background-color: #0062cc; border-color: #005cbf; }\n.minerva-root .btn-primary:not(:disabled):not(.disabled):active:focus, .minerva-root .btn-primary:not(:disabled):not(.disabled).active:focus, .show > .minerva-root .btn-primary.dropdown-toggle:focus { box-shadow: 0 0 0 0.2rem rgba(38, 143, 255, 0.5); }\n.minerva-root .btn-secondary { color: #fff; background-color: #6c757d; border-color: #6c757d; }\n.minerva-root .btn-secondary:hover { color: #fff; background-color: #5a6268; border-color: #545b62; }\n.minerva-root .btn-secondary:focus, .minerva-root .btn-secondary.focus { color: #fff; background-color: #5a6268; border-color: #545b62; box-shadow: 0 0 0 0.2rem rgba(130, 138, 145, 0.5); }\n.minerva-root .btn-secondary.disabled, .minerva-root .btn-secondary:disabled { color: #fff; background-color: #6c757d; border-color: #6c757d; }\n.minerva-root .btn-secondary:not(:disabled):not(.disabled):active, .minerva-root .btn-secondary:not(:disabled):not(.disabled).active, .show > .minerva-root .btn-secondary.dropdown-toggle { color: #fff; background-color: #545b62; border-color: #4e555b; }\n.minerva-root .btn-secondary:not(:disabled):not(.disabled):active:focus, .minerva-root .btn-secondary:not(:disabled):not(.disabled).active:focus, .show > .minerva-root .btn-secondary.dropdown-toggle:focus { box-shadow: 0 0 0 0.2rem rgba(130, 138, 145, 0.5); }\n.minerva-root .btn-success { color: #fff; background-color: #28a745; border-color: #28a745; }\n.minerva-root .btn-success:hover { color: #fff; background-color: #218838; border-color: #1e7e34; }\n.minerva-root .btn-success:focus, .minerva-root .btn-success.focus { color: #fff; background-color: #218838; border-color: #1e7e34; box-shadow: 0 0 0 0.2rem rgba(72, 180, 97, 0.5); }\n.minerva-root .btn-success.disabled, .minerva-root .btn-success:disabled { color: #fff; background-color: #28a745; border-color: #28a745; }\n.minerva-root .btn-success:not(:disabled):not(.disabled):active, .minerva-root .btn-success:not(:disabled):not(.disabled).active, .show > .minerva-root .btn-success.dropdown-toggle { color: #fff; background-color: #1e7e34; border-color: #1c7430; }\n.minerva-root .btn-success:not(:disabled):not(.disabled):active:focus, .minerva-root .btn-success:not(:disabled):not(.disabled).active:focus, .show > .minerva-root .btn-success.dropdown-toggle:focus { box-shadow: 0 0 0 0.2rem rgba(72, 180, 97, 0.5); }\n.minerva-root .btn-info { color: #fff; background-color: #17a2b8; border-color: #17a2b8; }\n.minerva-root .btn-info:hover { color: #fff; background-color: #138496; border-color: #117a8b; }\n.minerva-root .btn-info:focus, .minerva-root .btn-info.focus { color: #fff; background-color: #138496; border-color: #117a8b; box-shadow: 0 0 0 0.2rem rgba(58, 176, 195, 0.5); }\n.minerva-root .btn-info.disabled, .minerva-root .btn-info:disabled { color: #fff; background-color: #17a2b8; border-color: #17a2b8; }\n.minerva-root .btn-info:not(:disabled):not(.disabled):active, .minerva-root .btn-info:not(:disabled):not(.disabled).active, .show > .minerva-root .btn-info.dropdown-toggle { color: #fff; background-color: #117a8b; border-color: #10707f; }\n.minerva-root .btn-info:not(:disabled):not(.disabled):active:focus, .minerva-root .btn-info:not(:disabled):not(.disabled).active:focus, .show > .minerva-root .btn-info.dropdown-toggle:focus { box-shadow: 0 0 0 0.2rem rgba(58, 176, 195, 0.5); }\n.minerva-root .btn-warning { color: #212529; background-color: #ffc107; border-color: #ffc107; }\n.minerva-root .btn-warning:hover { color: #212529; background-color: #e0a800; border-color: #d39e00; }\n.minerva-root .btn-warning:focus, .minerva-root .btn-warning.focus { color: #212529; background-color: #e0a800; border-color: #d39e00; box-shadow: 0 0 0 0.2rem rgba(222, 170, 12, 0.5); }\n.minerva-root .btn-warning.disabled, .minerva-root .btn-warning:disabled { color: #212529; background-color: #ffc107; border-color: #ffc107; }\n.minerva-root .btn-warning:not(:disabled):not(.disabled):active, .minerva-root .btn-warning:not(:disabled):not(.disabled).active, .show > .minerva-root .btn-warning.dropdown-toggle { color: #212529; background-color: #d39e00; border-color: #c69500; }\n.minerva-root .btn-warning:not(:disabled):not(.disabled):active:focus, .minerva-root .btn-warning:not(:disabled):not(.disabled).active:focus, .show > .minerva-root .btn-warning.dropdown-toggle:focus { box-shadow: 0 0 0 0.2rem rgba(222, 170, 12, 0.5); }\n.minerva-root .btn-danger { color: #fff; background-color: #dc3545; border-color: #dc3545; }\n.minerva-root .btn-danger:hover { color: #fff; background-color: #c82333; border-color: #bd2130; }\n.minerva-root .btn-danger:focus, .minerva-root .btn-danger.focus { color: #fff; background-color: #c82333; border-color: #bd2130; box-shadow: 0 0 0 0.2rem rgba(225, 83, 97, 0.5); }\n.minerva-root .btn-danger.disabled, .minerva-root .btn-danger:disabled { color: #fff; background-color: #dc3545; border-color: #dc3545; }\n.minerva-root .btn-danger:not(:disabled):not(.disabled):active, .minerva-root .btn-danger:not(:disabled):not(.disabled).active, .show > .minerva-root .btn-danger.dropdown-toggle { color: #fff; background-color: #bd2130; border-color: #b21f2d; }\n.minerva-root .btn-danger:not(:disabled):not(.disabled):active:focus, .minerva-root .btn-danger:not(:disabled):not(.disabled).active:focus, .show > .minerva-root .btn-danger.dropdown-toggle:focus { box-shadow: 0 0 0 0.2rem rgba(225, 83, 97, 0.5); }\n.minerva-root .btn-light { color: #212529; background-color: #f8f9fa; border-color: #f8f9fa; }\n.minerva-root .btn-light:hover { color: #212529; background-color: #e2e6ea; border-color: #dae0e5; }\n.minerva-root .btn-light:focus, .minerva-root .btn-light.focus { color: #212529; background-color: #e2e6ea; border-color: #dae0e5; box-shadow: 0 0 0 0.2rem rgba(216, 217, 219, 0.5); }\n.minerva-root .btn-light.disabled, .minerva-root .btn-light:disabled { color: #212529; background-color: #f8f9fa; border-color: #f8f9fa; }\n.minerva-root .btn-light:not(:disabled):not(.disabled):active, .minerva-root .btn-light:not(:disabled):not(.disabled).active, .show > .minerva-root .btn-light.dropdown-toggle { color: #212529; background-color: #dae0e5; border-color: #d3d9df; }\n.minerva-root .btn-light:not(:disabled):not(.disabled):active:focus, .minerva-root .btn-light:not(:disabled):not(.disabled).active:focus, .show > .minerva-root .btn-light.dropdown-toggle:focus { box-shadow: 0 0 0 0.2rem rgba(216, 217, 219, 0.5); }\n.minerva-root .btn-dark { color: #fff; background-color: #343a40; border-color: #343a40; }\n.minerva-root .btn-dark:hover { color: #fff; background-color: #23272b; border-color: #1d2124; }\n.minerva-root .btn-dark:focus, .minerva-root .btn-dark.focus { color: #fff; background-color: #23272b; border-color: #1d2124; box-shadow: 0 0 0 0.2rem rgba(82, 88, 93, 0.5); }\n.minerva-root .btn-dark.disabled, .minerva-root .btn-dark:disabled { color: #fff; background-color: #343a40; border-color: #343a40; }\n.minerva-root .btn-dark:not(:disabled):not(.disabled):active, .minerva-root .btn-dark:not(:disabled):not(.disabled).active, .show > .minerva-root .btn-dark.dropdown-toggle { color: #fff; background-color: #1d2124; border-color: #171a1d; }\n.minerva-root .btn-dark:not(:disabled):not(.disabled):active:focus, .minerva-root .btn-dark:not(:disabled):not(.disabled).active:focus, .show > .minerva-root .btn-dark.dropdown-toggle:focus { box-shadow: 0 0 0 0.2rem rgba(82, 88, 93, 0.5); }\n.minerva-root .btn-outline-primary { color: #007bff; border-color: #007bff; }\n.minerva-root .btn-outline-primary:hover { color: #fff; background-color: #007bff; border-color: #007bff; }\n.minerva-root .btn-outline-primary:focus, .minerva-root .btn-outline-primary.focus { box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.5); }\n.minerva-root .btn-outline-primary.disabled, .minerva-root .btn-outline-primary:disabled { color: #007bff; background-color: transparent; }\n.minerva-root .btn-outline-primary:not(:disabled):not(.disabled):active, .minerva-root .btn-outline-primary:not(:disabled):not(.disabled).active, .show > .minerva-root .btn-outline-primary.dropdown-toggle { color: #fff; background-color: #007bff; border-color: #007bff; }\n.minerva-root .btn-outline-primary:not(:disabled):not(.disabled):active:focus, .minerva-root .btn-outline-primary:not(:disabled):not(.disabled).active:focus, .show > .minerva-root .btn-outline-primary.dropdown-toggle:focus { box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.5); }\n.minerva-root .btn-outline-secondary { color: #6c757d; border-color: #6c757d; }\n.minerva-root .btn-outline-secondary:hover { color: #fff; background-color: #6c757d; border-color: #6c757d; }\n.minerva-root .btn-outline-secondary:focus, .minerva-root .btn-outline-secondary.focus { box-shadow: 0 0 0 0.2rem rgba(108, 117, 125, 0.5); }\n.minerva-root .btn-outline-secondary.disabled, .minerva-root .btn-outline-secondary:disabled { color: #6c757d; background-color: transparent; }\n.minerva-root .btn-outline-secondary:not(:disabled):not(.disabled):active, .minerva-root .btn-outline-secondary:not(:disabled):not(.disabled).active, .show > .minerva-root .btn-outline-secondary.dropdown-toggle { color: #fff; background-color: #6c757d; border-color: #6c757d; }\n.minerva-root .btn-outline-secondary:not(:disabled):not(.disabled):active:focus, .minerva-root .btn-outline-secondary:not(:disabled):not(.disabled).active:focus, .show > .minerva-root .btn-outline-secondary.dropdown-toggle:focus { box-shadow: 0 0 0 0.2rem rgba(108, 117, 125, 0.5); }\n.minerva-root .btn-outline-success { color: #28a745; border-color: #28a745; }\n.minerva-root .btn-outline-success:hover { color: #fff; background-color: #28a745; border-color: #28a745; }\n.minerva-root .btn-outline-success:focus, .minerva-root .btn-outline-success.focus { box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.5); }\n.minerva-root .btn-outline-success.disabled, .minerva-root .btn-outline-success:disabled { color: #28a745; background-color: transparent; }\n.minerva-root .btn-outline-success:not(:disabled):not(.disabled):active, .minerva-root .btn-outline-success:not(:disabled):not(.disabled).active, .show > .minerva-root .btn-outline-success.dropdown-toggle { color: #fff; background-color: #28a745; border-color: #28a745; }\n.minerva-root .btn-outline-success:not(:disabled):not(.disabled):active:focus, .minerva-root .btn-outline-success:not(:disabled):not(.disabled).active:focus, .show > .minerva-root .btn-outline-success.dropdown-toggle:focus { box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.5); }\n.minerva-root .btn-outline-info { color: #17a2b8; border-color: #17a2b8; }\n.minerva-root .btn-outline-info:hover { color: #fff; background-color: #17a2b8; border-color: #17a2b8; }\n.minerva-root .btn-outline-info:focus, .minerva-root .btn-outline-info.focus { box-shadow: 0 0 0 0.2rem rgba(23, 162, 184, 0.5); }\n.minerva-root .btn-outline-info.disabled, .minerva-root .btn-outline-info:disabled { color: #17a2b8; background-color: transparent; }\n.minerva-root .btn-outline-info:not(:disabled):not(.disabled):active, .minerva-root .btn-outline-info:not(:disabled):not(.disabled).active, .show > .minerva-root .btn-outline-info.dropdown-toggle { color: #fff; background-color: #17a2b8; border-color: #17a2b8; }\n.minerva-root .btn-outline-info:not(:disabled):not(.disabled):active:focus, .minerva-root .btn-outline-info:not(:disabled):not(.disabled).active:focus, .show > .minerva-root .btn-outline-info.dropdown-toggle:focus { box-shadow: 0 0 0 0.2rem rgba(23, 162, 184, 0.5); }\n.minerva-root .btn-outline-warning { color: #ffc107; border-color: #ffc107; }\n.minerva-root .btn-outline-warning:hover { color: #212529; background-color: #ffc107; border-color: #ffc107; }\n.minerva-root .btn-outline-warning:focus, .minerva-root .btn-outline-warning.focus { box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.5); }\n.minerva-root .btn-outline-warning.disabled, .minerva-root .btn-outline-warning:disabled { color: #ffc107; background-color: transparent; }\n.minerva-root .btn-outline-warning:not(:disabled):not(.disabled):active, .minerva-root .btn-outline-warning:not(:disabled):not(.disabled).active, .show > .minerva-root .btn-outline-warning.dropdown-toggle { color: #212529; background-color: #ffc107; border-color: #ffc107; }\n.minerva-root .btn-outline-warning:not(:disabled):not(.disabled):active:focus, .minerva-root .btn-outline-warning:not(:disabled):not(.disabled).active:focus, .show > .minerva-root .btn-outline-warning.dropdown-toggle:focus { box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.5); }\n.minerva-root .btn-outline-danger { color: #dc3545; border-color: #dc3545; }\n.minerva-root .btn-outline-danger:hover { color: #fff; background-color: #dc3545; border-color: #dc3545; }\n.minerva-root .btn-outline-danger:focus, .minerva-root .btn-outline-danger.focus { box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.5); }\n.minerva-root .btn-outline-danger.disabled, .minerva-root .btn-outline-danger:disabled { color: #dc3545; background-color: transparent; }\n.minerva-root .btn-outline-danger:not(:disabled):not(.disabled):active, .minerva-root .btn-outline-danger:not(:disabled):not(.disabled).active, .show > .minerva-root .btn-outline-danger.dropdown-toggle { color: #fff; background-color: #dc3545; border-color: #dc3545; }\n.minerva-root .btn-outline-danger:not(:disabled):not(.disabled):active:focus, .minerva-root .btn-outline-danger:not(:disabled):not(.disabled).active:focus, .show > .minerva-root .btn-outline-danger.dropdown-toggle:focus { box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.5); }\n.minerva-root .btn-outline-light { color: #f8f9fa; border-color: #f8f9fa; }\n.minerva-root .btn-outline-light:hover { color: #212529; background-color: #f8f9fa; border-color: #f8f9fa; }\n.minerva-root .btn-outline-light:focus, .minerva-root .btn-outline-light.focus { box-shadow: 0 0 0 0.2rem rgba(248, 249, 250, 0.5); }\n.minerva-root .btn-outline-light.disabled, .minerva-root .btn-outline-light:disabled { color: #f8f9fa; background-color: transparent; }\n.minerva-root .btn-outline-light:not(:disabled):not(.disabled):active, .minerva-root .btn-outline-light:not(:disabled):not(.disabled).active, .show > .minerva-root .btn-outline-light.dropdown-toggle { color: #212529; background-color: #f8f9fa; border-color: #f8f9fa; }\n.minerva-root .btn-outline-light:not(:disabled):not(.disabled):active:focus, .minerva-root .btn-outline-light:not(:disabled):not(.disabled).active:focus, .show > .minerva-root .btn-outline-light.dropdown-toggle:focus { box-shadow: 0 0 0 0.2rem rgba(248, 249, 250, 0.5); }\n.minerva-root .btn-outline-dark { color: #343a40; border-color: #343a40; }\n.minerva-root .btn-outline-dark:hover { color: #fff; background-color: #343a40; border-color: #343a40; }\n.minerva-root .btn-outline-dark:focus, .minerva-root .btn-outline-dark.focus { box-shadow: 0 0 0 0.2rem rgba(52, 58, 64, 0.5); }\n.minerva-root .btn-outline-dark.disabled, .minerva-root .btn-outline-dark:disabled { color: #343a40; background-color: transparent; }\n.minerva-root .btn-outline-dark:not(:disabled):not(.disabled):active, .minerva-root .btn-outline-dark:not(:disabled):not(.disabled).active, .show > .minerva-root .btn-outline-dark.dropdown-toggle { color: #fff; background-color: #343a40; border-color: #343a40; }\n.minerva-root .btn-outline-dark:not(:disabled):not(.disabled):active:focus, .minerva-root .btn-outline-dark:not(:disabled):not(.disabled).active:focus, .show > .minerva-root .btn-outline-dark.dropdown-toggle:focus { box-shadow: 0 0 0 0.2rem rgba(52, 58, 64, 0.5); }\n.minerva-root .btn-link { font-weight: 400; color: #007bff; text-decoration: none; }\n.minerva-root .btn-link:hover { color: #0056b3; text-decoration: underline; }\n.minerva-root .btn-link:focus, .minerva-root .btn-link.focus { text-decoration: underline; box-shadow: none; }\n.minerva-root .btn-link:disabled, .minerva-root .btn-link.disabled { color: #6c757d; pointer-events: none; }\n.minerva-root .btn-lg, .minerva-root .btn-group-lg > .btn { padding: 0.5rem 1rem; font-size: 1.25rem; line-height: 1.5; border-radius: 0.3rem; }\n.minerva-root .btn-sm, .minerva-root .btn-group-sm > .btn { padding: 0.25rem 0.5rem; font-size: 0.875rem; line-height: 1.5; border-radius: 0.2rem; }\n.minerva-root .btn-block { display: block; width: 100%; }\n.minerva-root .btn-block + .btn-block { margin-top: 0.5rem; }\n.minerva-root input[type="submit"].btn-block, .minerva-root input[type="reset"].btn-block, .minerva-root input[type="button"].btn-block { width: 100%; }\n.minerva-root .fade { transition: opacity 0.15s linear; }\n@media (prefers-reduced-motion: reduce) { .minerva-root .fade { transition: none; } }\n.minerva-root .fade:not(.show) { opacity: 0; }\n.minerva-root .collapse:not(.show) { display: none; }\n.minerva-root .collapsing { position: relative; height: 0; overflow: hidden; transition: height 0.35s ease; }\n@media (prefers-reduced-motion: reduce) { .minerva-root .collapsing { transition: none; } }\n.minerva-root .dropup, .minerva-root .dropright, .minerva-root .dropdown, .minerva-root .dropleft { position: relative; }\n.minerva-root .dropdown-toggle { white-space: nowrap; }\n.minerva-root .dropdown-toggle::after { display: inline-block; margin-left: 0.255em; vertical-align: 0.255em; content: ""; border-top: 0.3em solid; border-right: 0.3em solid transparent; border-bottom: 0; border-left: 0.3em solid transparent; }\n.minerva-root .dropdown-toggle:empty::after { margin-left: 0; }\n.minerva-root .dropdown-menu { position: absolute; top: 100%; left: 0; z-index: 1000; display: none; float: left; min-width: 10rem; padding: 0.5rem 0; margin: 0.125rem 0 0; font-size: 1rem; color: #212529; text-align: left; list-style: none; background-color: #fff; background-clip: padding-box; border: 1px solid rgba(0, 0, 0, 0.15); border-radius: 0.25rem; }\n.minerva-root .dropdown-menu-left { right: auto; left: 0; }\n.minerva-root .dropdown-menu-right { right: 0; left: auto; }\n@media (min-width: 576px) { .minerva-root .dropdown-menu-sm-left { right: auto; left: 0; }\n .minerva-root .dropdown-menu-sm-right { right: 0; left: auto; } }\n@media (min-width: 768px) { .minerva-root .dropdown-menu-md-left { right: auto; left: 0; }\n .minerva-root .dropdown-menu-md-right { right: 0; left: auto; } }\n@media (min-width: 992px) { .minerva-root .dropdown-menu-lg-left { right: auto; left: 0; }\n .minerva-root .dropdown-menu-lg-right { right: 0; left: auto; } }\n@media (min-width: 1200px) { .minerva-root .dropdown-menu-xl-left { right: auto; left: 0; }\n .minerva-root .dropdown-menu-xl-right { right: 0; left: auto; } }\n.minerva-root .dropup .dropdown-menu { top: auto; bottom: 100%; margin-top: 0; margin-bottom: 0.125rem; }\n.minerva-root .dropup .dropdown-toggle::after { display: inline-block; margin-left: 0.255em; vertical-align: 0.255em; content: ""; border-top: 0; border-right: 0.3em solid transparent; border-bottom: 0.3em solid; border-left: 0.3em solid transparent; }\n.minerva-root .dropup .dropdown-toggle:empty::after { margin-left: 0; }\n.minerva-root .dropright .dropdown-menu { top: 0; right: auto; left: 100%; margin-top: 0; margin-left: 0.125rem; }\n.minerva-root .dropright .dropdown-toggle::after { display: inline-block; margin-left: 0.255em; vertical-align: 0.255em; content: ""; border-top: 0.3em solid transparent; border-right: 0; border-bottom: 0.3em solid transparent; border-left: 0.3em solid; }\n.minerva-root .dropright .dropdown-toggle:empty::after { margin-left: 0; }\n.minerva-root .dropright .dropdown-toggle::after { vertical-align: 0; }\n.minerva-root .dropleft .dropdown-menu { top: 0; right: 100%; left: auto; margin-top: 0; margin-right: 0.125rem; }\n.minerva-root .dropleft .dropdown-toggle::after { display: inline-block; margin-left: 0.255em; vertical-align: 0.255em; content: ""; }\n.minerva-root .dropleft .dropdown-toggle::after { display: none; }\n.minerva-root .dropleft .dropdown-toggle::before { display: inline-block; margin-right: 0.255em; vertical-align: 0.255em; content: ""; border-top: 0.3em solid transparent; border-right: 0.3em solid; border-bottom: 0.3em solid transparent; }\n.minerva-root .dropleft .dropdown-toggle:empty::after { margin-left: 0; }\n.minerva-root .dropleft .dropdown-toggle::before { vertical-align: 0; }\n.minerva-root .dropdown-menu[x-placement^="top"], .minerva-root .dropdown-menu[x-placement^="right"], .minerva-root .dropdown-menu[x-placement^="bottom"], .minerva-root .dropdown-menu[x-placement^="left"] { right: auto; bottom: auto; }\n.minerva-root .dropdown-divider { height: 0; margin: 0.5rem 0; overflow: hidden; border-top: 1px solid #e9ecef; }\n.minerva-root .dropdown-item { display: block; width: 100%; padding: 0.25rem 1.5rem; clear: both; font-weight: 400; color: #212529; text-align: inherit; white-space: nowrap; background-color: transparent; border: 0; }\n.minerva-root .dropdown-item:hover, .minerva-root .dropdown-item:focus { color: #16181b; text-decoration: none; background-color: #f8f9fa; }\n.minerva-root .dropdown-item.active, .minerva-root .dropdown-item:active { color: #fff; text-decoration: none; background-color: #007bff; }\n.minerva-root .dropdown-item.disabled, .minerva-root .dropdown-item:disabled { color: #6c757d; pointer-events: none; background-color: transparent; }\n.minerva-root .dropdown-menu.show { display: block; }\n.minerva-root .dropdown-header { display: block; padding: 0.5rem 1.5rem; margin-bottom: 0; font-size: 0.875rem; color: #6c757d; white-space: nowrap; }\n.minerva-root .dropdown-item-text { display: block; padding: 0.25rem 1.5rem; color: #212529; }\n.minerva-root .btn-group, .minerva-root .btn-group-vertical { position: relative; display: inline-flex; vertical-align: middle; }\n.minerva-root .btn-group > .btn, .minerva-root .btn-group-vertical > .btn { position: relative; flex: 1 1 auto; }\n.minerva-root .btn-group > .btn:hover, .minerva-root .btn-group-vertical > .btn:hover { z-index: 1; }\n.minerva-root .btn-group > .btn:focus, .minerva-root .btn-group > .btn:active, .minerva-root .btn-group > .btn.active, .minerva-root .btn-group-vertical > .btn:focus, .minerva-root .btn-group-vertical > .btn:active, .minerva-root .btn-group-vertical > .btn.active { z-index: 1; }\n.minerva-root .btn-toolbar { display: flex; flex-wrap: wrap; justify-content: flex-start; }\n.minerva-root .btn-toolbar .input-group { width: auto; }\n.minerva-root .btn-group > .btn:not(:first-child), .minerva-root .btn-group > .btn-group:not(:first-child) { margin-left: -1px; }\n.minerva-root .btn-group > .btn:not(:last-child):not(.dropdown-toggle), .minerva-root .btn-group > .btn-group:not(:last-child) > .btn { border-top-right-radius: 0; border-bottom-right-radius: 0; }\n.minerva-root .btn-group > .btn:not(:first-child), .minerva-root .btn-group > .btn-group:not(:first-child) > .btn { border-top-left-radius: 0; border-bottom-left-radius: 0; }\n.minerva-root .dropdown-toggle-split { padding-right: 0.5625rem; padding-left: 0.5625rem; }\n.minerva-root .dropdown-toggle-split::after, .dropup .minerva-root .dropdown-toggle-split::after, .dropright .minerva-root .dropdown-toggle-split::after { margin-left: 0; }\n.dropleft .minerva-root .dropdown-toggle-split::before { margin-right: 0; }\n.minerva-root .btn-sm + .dropdown-toggle-split, .minerva-root .btn-group-sm > .btn + .dropdown-toggle-split { padding-right: 0.375rem; padding-left: 0.375rem; }\n.minerva-root .btn-lg + .dropdown-toggle-split, .minerva-root .btn-group-lg > .btn + .dropdown-toggle-split { padding-right: 0.75rem; padding-left: 0.75rem; }\n.minerva-root .btn-group-vertical { flex-direction: column; align-items: flex-start; justify-content: center; }\n.minerva-root .btn-group-vertical > .btn, .minerva-root .btn-group-vertical > .btn-group { width: 100%; }\n.minerva-root .btn-group-vertical > .btn:not(:first-child), .minerva-root .btn-group-vertical > .btn-group:not(:first-child) { margin-top: -1px; }\n.minerva-root .btn-group-vertical > .btn:not(:last-child):not(.dropdown-toggle), .minerva-root .btn-group-vertical > .btn-group:not(:last-child) > .btn { border-bottom-right-radius: 0; border-bottom-left-radius: 0; }\n.minerva-root .btn-group-vertical > .btn:not(:first-child), .minerva-root .btn-group-vertical > .btn-group:not(:first-child) > .btn { border-top-left-radius: 0; border-top-right-radius: 0; }\n.minerva-root .btn-group-toggle > .btn, .minerva-root .btn-group-toggle > .btn-group > .btn { margin-bottom: 0; }\n.minerva-root .btn-group-toggle > .btn input[type="radio"], .minerva-root .btn-group-toggle > .btn input[type="checkbox"], .minerva-root .btn-group-toggle > .btn-group > .btn input[type="radio"], .minerva-root .btn-group-toggle > .btn-group > .btn input[type="checkbox"] { position: absolute; clip: rect(0, 0, 0, 0); pointer-events: none; }\n.minerva-root .input-group { position: relative; display: flex; flex-wrap: wrap; align-items: stretch; width: 100%; }\n.minerva-root .input-group > .form-control, .minerva-root .input-group > .form-control-plaintext, .minerva-root .input-group > .custom-select, .minerva-root .input-group > .custom-file { position: relative; flex: 1 1 0%; min-width: 0; margin-bottom: 0; }\n.minerva-root .input-group > .form-control + .form-control, .minerva-root .input-group > .form-control + .custom-select, .minerva-root .input-group > .form-control + .custom-file, .minerva-root .input-group > .form-control-plaintext + .form-control, .minerva-root .input-group > .form-control-plaintext + .custom-select, .minerva-root .input-group > .form-control-plaintext + .custom-file, .minerva-root .input-group > .custom-select + .form-control, .minerva-root .input-group > .custom-select + .custom-select, .minerva-root .input-group > .custom-select + .custom-file, .minerva-root .input-group > .custom-file + .form-control, .minerva-root .input-group > .custom-file + .custom-select, .minerva-root .input-group > .custom-file + .custom-file { margin-left: -1px; }\n.minerva-root .input-group > .form-control:focus, .minerva-root .input-group > .custom-select:focus, .minerva-root .input-group > .custom-file .custom-file-input:focus ~ .custom-file-label { z-index: 3; }\n.minerva-root .input-group > .custom-file .custom-file-input:focus { z-index: 4; }\n.minerva-root .input-group > .form-control:not(:last-child), .minerva-root .input-group > .custom-select:not(:last-child) { border-top-right-radius: 0; border-bottom-right-radius: 0; }\n.minerva-root .input-group > .form-control:not(:first-child), .minerva-root .input-group > .custom-select:not(:first-child) { border-top-left-radius: 0; border-bottom-left-radius: 0; }\n.minerva-root .input-group > .custom-file { display: flex; align-items: center; }\n.minerva-root .input-group > .custom-file:not(:last-child) .custom-file-label, .minerva-root .input-group > .custom-file:not(:last-child) .custom-file-label::after { border-top-right-radius: 0; border-bottom-right-radius: 0; }\n.minerva-root .input-group > .custom-file:not(:first-child) .custom-file-label { border-top-left-radius: 0; border-bottom-left-radius: 0; }\n.minerva-root .input-group-prepend, .minerva-root .input-group-append { display: flex; }\n.minerva-root .input-group-prepend .btn, .minerva-root .input-group-append .btn { position: relative; z-index: 2; }\n.minerva-root .input-group-prepend .btn:focus, .minerva-root .input-group-append .btn:focus { z-index: 3; }\n.minerva-root .input-group-prepend .btn + .btn, .minerva-root .input-group-prepend .btn + .input-group-text, .minerva-root .input-group-prepend .input-group-text + .input-group-text, .minerva-root .input-group-prepend .input-group-text + .btn, .minerva-root .input-group-append .btn + .btn, .minerva-root .input-group-append .btn + .input-group-text, .minerva-root .input-group-append .input-group-text + .input-group-text, .minerva-root .input-group-append .input-group-text + .btn { margin-left: -1px; }\n.minerva-root .input-group-prepend { margin-right: -1px; }\n.minerva-root .input-group-append { margin-left: -1px; }\n.minerva-root .input-group-text { display: flex; align-items: center; padding: 0.375rem 0.75rem; margin-bottom: 0; font-size: 1rem; font-weight: 400; line-height: 1.5; color: #495057; text-align: center; white-space: nowrap; background-color: #e9ecef; border: 1px solid #ced4da; border-radius: 0.25rem; }\n.minerva-root .input-group-text input[type="radio"], .minerva-root .input-group-text input[type="checkbox"] { margin-top: 0; }\n.minerva-root .input-group-lg > .form-control:not(textarea), .minerva-root .input-group-lg > .custom-select { height: calc(1.5em + 1rem + 2px); }\n.minerva-root .input-group-lg > .form-control, .minerva-root .input-group-lg > .custom-select, .minerva-root .input-group-lg > .input-group-prepend > .input-group-text, .minerva-root .input-group-lg > .input-group-append > .input-group-text, .minerva-root .input-group-lg > .input-group-prepend > .btn, .minerva-root .input-group-lg > .input-group-append > .btn { padding: 0.5rem 1rem; font-size: 1.25rem; line-height: 1.5; border-radius: 0.3rem; }\n.minerva-root .input-group-sm > .form-control:not(textarea), .minerva-root .input-group-sm > .custom-select { height: calc(1.5em + 0.5rem + 2px); }\n.minerva-root .input-group-sm > .form-control, .minerva-root .input-group-sm > .custom-select, .minerva-root .input-group-sm > .input-group-prepend > .input-group-text, .minerva-root .input-group-sm > .input-group-append > .input-group-text, .minerva-root .input-group-sm > .input-group-prepend > .btn, .minerva-root .input-group-sm > .input-group-append > .btn { padding: 0.25rem 0.5rem; font-size: 0.875rem; line-height: 1.5; border-radius: 0.2rem; }\n.minerva-root .input-group-lg > .custom-select, .minerva-root .input-group-sm > .custom-select { padding-right: 1.75rem; }\n.minerva-root .input-group > .input-group-prepend > .btn, .minerva-root .input-group > .input-group-prepend > .input-group-text, .minerva-root .input-group > .input-group-append:not(:last-child) > .btn, .minerva-root .input-group > .input-group-append:not(:last-child) > .input-group-text, .minerva-root .input-group > .input-group-append:last-child > .btn:not(:last-child):not(.dropdown-toggle), .minerva-root .input-group > .input-group-append:last-child > .input-group-text:not(:last-child) { border-top-right-radius: 0; border-bottom-right-radius: 0; }\n.minerva-root .input-group > .input-group-append > .btn, .minerva-root .input-group > .input-group-append > .input-group-text, .minerva-root .input-group > .input-group-prepend:not(:first-child) > .btn, .minerva-root .input-group > .input-group-prepend:not(:first-child) > .input-group-text, .minerva-root .input-group > .input-group-prepend:first-child > .btn:not(:first-child), .minerva-root .input-group > .input-group-prepend:first-child > .input-group-text:not(:first-child) { border-top-left-radius: 0; border-bottom-left-radius: 0; }\n.minerva-root .custom-control { position: relative; display: block; min-height: 1.5rem; padding-left: 1.5rem; }\n.minerva-root .custom-control-inline { display: inline-flex; margin-right: 1rem; }\n.minerva-root .custom-control-input { position: absolute; left: 0; z-index: -1; width: 1rem; height: 1.25rem; opacity: 0; }\n.minerva-root .custom-control-input:checked ~ .custom-control-label::before { color: #fff; border-color: #007bff; background-color: #007bff; }\n.minerva-root .custom-control-input:focus ~ .custom-control-label::before { box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25); }\n.minerva-root .custom-control-input:focus:not(:checked) ~ .custom-control-label::before { border-color: #80bdff; }\n.minerva-root .custom-control-input:not(:disabled):active ~ .custom-control-label::before { color: #fff; background-color: #b3d7ff; border-color: #b3d7ff; }\n.minerva-root .custom-control-input[disabled] ~ .custom-control-label, .minerva-root .custom-control-input:disabled ~ .custom-control-label { color: #6c757d; }\n.minerva-root .custom-control-input[disabled] ~ .custom-control-label::before, .minerva-root .custom-control-input:disabled ~ .custom-control-label::before { background-color: #e9ecef; }\n.minerva-root .custom-control-label { position: relative; margin-bottom: 0; vertical-align: top; }\n.minerva-root .custom-control-label::before { position: absolute; top: 0.25rem; left: -1.5rem; display: block; width: 1rem; height: 1rem; pointer-events: none; content: ""; background-color: #fff; border: #adb5bd solid 1px; }\n.minerva-root .custom-control-label::after { position: absolute; top: 0.25rem; left: -1.5rem; display: block; width: 1rem; height: 1rem; content: ""; background: no-repeat 50% / 50% 50%; }\n.minerva-root .custom-checkbox .custom-control-label::before { border-radius: 0.25rem; }\n.minerva-root .custom-checkbox .custom-control-input:checked ~ .custom-control-label::after { background-image: url("data:image/svg+xml,%3csvg xmlns=\'http://www.w3.org/2000/svg\' width=\'8\' height=\'8\' viewBox=\'0 0 8 8\'%3e%3cpath fill=\'%23fff\' d=\'M6.564.75l-3.59 3.612-1.538-1.55L0 4.26l2.974 2.99L8 2.193z\'/%3e%3c/svg%3e"); }\n.minerva-root .custom-checkbox .custom-control-input:indeterminate ~ .custom-control-label::before { border-color: #007bff; background-color: #007bff; }\n.minerva-root .custom-checkbox .custom-control-input:indeterminate ~ .custom-control-label::after { background-image: url("data:image/svg+xml,%3csvg xmlns=\'http://www.w3.org/2000/svg\' width=\'4\' height=\'4\' viewBox=\'0 0 4 4\'%3e%3cpath stroke=\'%23fff\' d=\'M0 2h4\'/%3e%3c/svg%3e"); }\n.minerva-root .custom-checkbox .custom-control-input:disabled:checked ~ .custom-control-label::before { background-color: rgba(0, 123, 255, 0.5); }\n.minerva-root .custom-checkbox .custom-control-input:disabled:indeterminate ~ .custom-control-label::before { background-color: rgba(0, 123, 255, 0.5); }\n.minerva-root .custom-radio .custom-control-label::before { border-radius: 50%; }\n.minerva-root .custom-radio .custom-control-input:checked ~ .custom-control-label::after { background-image: url("data:image/svg+xml,%3csvg xmlns=\'http://www.w3.org/2000/svg\' width=\'12\' height=\'12\' viewBox=\'-4 -4 8 8\'%3e%3ccircle r=\'3\' fill=\'%23fff\'/%3e%3c/svg%3e"); }\n.minerva-root .custom-radio .custom-control-input:disabled:checked ~ .custom-control-label::before { background-color: rgba(0, 123, 255, 0.5); }\n.minerva-root .custom-switch { padding-left: 2.25rem; }\n.minerva-root .custom-switch .custom-control-label::before { left: -2.25rem; width: 1.75rem; pointer-events: all; border-radius: 0.5rem; }\n.minerva-root .custom-switch .custom-control-label::after { top: calc(0.25rem + 2px); left: calc(-2.25rem + 2px); width: calc(1rem - 4px); height: calc(1rem - 4px); background-color: #adb5bd; border-radius: 0.5rem; transition: transform 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; }\n@media (prefers-reduced-motion: reduce) { .minerva-root .custom-switch .custom-control-label::after { transition: none; } }\n.minerva-root .custom-switch .custom-control-input:checked ~ .custom-control-label::after { background-color: #fff; transform: translateX(0.75rem); }\n.minerva-root .custom-switch .custom-control-input:disabled:checked ~ .custom-control-label::before { background-color: rgba(0, 123, 255, 0.5); }\n.minerva-root .custom-select { display: inline-block; width: 100%; height: calc(1.5em + 0.75rem + 2px); padding: 0.375rem 1.75rem 0.375rem 0.75rem; font-size: 1rem; font-weight: 400; line-height: 1.5; color: #495057; vertical-align: middle; background: #fff url("data:image/svg+xml,%3csvg xmlns=\'http://www.w3.org/2000/svg\' width=\'4\' height=\'5\' viewBox=\'0 0 4 5\'%3e%3cpath fill=\'%23343a40\' d=\'M2 0L0 2h4zm0 5L0 3h4z\'/%3e%3c/svg%3e") no-repeat right 0.75rem center/8px 10px; border: 1px solid #ced4da; border-radius: 0.25rem; appearance: none; }\n.minerva-root .custom-select:focus { border-color: #80bdff; outline: 0; box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25); }\n.minerva-root .custom-select:focus::-ms-value { color: #495057; background-color: #fff; }\n.minerva-root .custom-select[multiple], .minerva-root .custom-select[size]:not([size="1"]) { height: auto; padding-right: 0.75rem; background-image: none; }\n.minerva-root .custom-select:disabled { color: #6c757d; background-color: #e9ecef; }\n.minerva-root .custom-select::-ms-expand { display: none; }\n.minerva-root .custom-select:-moz-focusring { color: transparent; text-shadow: 0 0 0 #495057; }\n.minerva-root .custom-select-sm { height: calc(1.5em + 0.5rem + 2px); padding-top: 0.25rem; padding-bottom: 0.25rem; padding-left: 0.5rem; font-size: 0.875rem; }\n.minerva-root .custom-select-lg { height: calc(1.5em + 1rem + 2px); padding-top: 0.5rem; padding-bottom: 0.5rem; padding-left: 1rem; font-size: 1.25rem; }\n.minerva-root .custom-file { position: relative; display: inline-block; width: 100%; height: calc(1.5em + 0.75rem + 2px); margin-bottom: 0; }\n.minerva-root .custom-file-input { position: relative; z-index: 2; width: 100%; height: calc(1.5em + 0.75rem + 2px); margin: 0; opacity: 0; }\n.minerva-root .custom-file-input:focus ~ .custom-file-label { border-color: #80bdff; box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25); }\n.minerva-root .custom-file-input[disabled] ~ .custom-file-label, .minerva-root .custom-file-input:disabled ~ .custom-file-label { background-color: #e9ecef; }\n.minerva-root .custom-file-input:lang(en) ~ .custom-file-label::after { content: "Browse"; }\n.minerva-root .custom-file-input ~ .custom-file-label[data-browse]::after { content: attr(data-browse); }\n.minerva-root .custom-file-label { position: absolute; top: 0; right: 0; left: 0; z-index: 1; height: calc(1.5em + 0.75rem + 2px); padding: 0.375rem 0.75rem; font-weight: 400; line-height: 1.5; color: #495057; background-color: #fff; border: 1px solid #ced4da; border-radius: 0.25rem; }\n.minerva-root .custom-file-label::after { position: absolute; top: 0; right: 0; bottom: 0; z-index: 3; display: block; height: calc(1.5em + 0.75rem); padding: 0.375rem 0.75rem; line-height: 1.5; color: #495057; content: "Browse"; background-color: #e9ecef; border-left: inherit; border-radius: 0 0.25rem 0.25rem 0; }\n.minerva-root .custom-range { width: 100%; height: 1.4rem; padding: 0; background-color: transparent; appearance: none; }\n.minerva-root .custom-range:focus { outline: none; }\n.minerva-root .custom-range:focus::-webkit-slider-thumb { box-shadow: 0 0 0 1px #fff, 0 0 0 0.2rem rgba(0, 123, 255, 0.25); }\n.minerva-root .custom-range:focus::-moz-range-thumb { box-shadow: 0 0 0 1px #fff, 0 0 0 0.2rem rgba(0, 123, 255, 0.25); }\n.minerva-root .custom-range:focus::-ms-thumb { box-shadow: 0 0 0 1px #fff, 0 0 0 0.2rem rgba(0, 123, 255, 0.25); }\n.minerva-root .custom-range::-moz-focus-outer { border: 0; }\n.minerva-root .custom-range::-webkit-slider-thumb { width: 1rem; height: 1rem; margin-top: -0.25rem; background-color: #007bff; border: 0; border-radius: 1rem; transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; appearance: none; }\n@media (prefers-reduced-motion: reduce) { .minerva-root .custom-range::-webkit-slider-thumb { transition: none; } }\n.minerva-root .custom-range::-webkit-slider-thumb:active { background-color: #b3d7ff; }\n.minerva-root .custom-range::-webkit-slider-runnable-track { width: 100%; height: 0.5rem; color: transparent; cursor: pointer; background-color: #dee2e6; border-color: transparent; border-radius: 1rem; }\n.minerva-root .custom-range::-moz-range-thumb { width: 1rem; height: 1rem; background-color: #007bff; border: 0; border-radius: 1rem; transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; appearance: none; }\n@media (prefers-reduced-motion: reduce) { .minerva-root .custom-range::-moz-range-thumb { transition: none; } }\n.minerva-root .custom-range::-moz-range-thumb:active { background-color: #b3d7ff; }\n.minerva-root .custom-range::-moz-range-track { width: 100%; height: 0.5rem; color: transparent; cursor: pointer; background-color: #dee2e6; border-color: transparent; border-radius: 1rem; }\n.minerva-root .custom-range::-ms-thumb { width: 1rem; height: 1rem; margin-top: 0; margin-right: 0.2rem; margin-left: 0.2rem; background-color: #007bff; border: 0; border-radius: 1rem; transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; appearance: none; }\n@media (prefers-reduced-motion: reduce) { .minerva-root .custom-range::-ms-thumb { transition: none; } }\n.minerva-root .custom-range::-ms-thumb:active { background-color: #b3d7ff; }\n.minerva-root .custom-range::-ms-track { width: 100%; height: 0.5rem; color: transparent; cursor: pointer; background-color: transparent; border-color: transparent; border-width: 0.5rem; }\n.minerva-root .custom-range::-ms-fill-lower { background-color: #dee2e6; border-radius: 1rem; }\n.minerva-root .custom-range::-ms-fill-upper { margin-right: 15px; background-color: #dee2e6; border-radius: 1rem; }\n.minerva-root .custom-range:disabled::-webkit-slider-thumb { background-color: #adb5bd; }\n.minerva-root .custom-range:disabled::-webkit-slider-runnable-track { cursor: default; }\n.minerva-root .custom-range:disabled::-moz-range-thumb { background-color: #adb5bd; }\n.minerva-root .custom-range:disabled::-moz-range-track { cursor: default; }\n.minerva-root .custom-range:disabled::-ms-thumb { background-color: #adb5bd; }\n.minerva-root .custom-control-label::before, .minerva-root .custom-file-label, .minerva-root .custom-select { transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; }\n@media (prefers-reduced-motion: reduce) { .minerva-root .custom-control-label::before, .minerva-root .custom-file-label, .minerva-root .custom-select { transition: none; } }\n.minerva-root .nav { display: flex; flex-wrap: wrap; padding-left: 0; margin-bottom: 0; list-style: none; }\n.minerva-root .nav-link { display: block; padding: 0.5rem 1rem; }\n.minerva-root .nav-link:hover, .minerva-root .nav-link:focus { text-decoration: none; }\n.minerva-root .nav-link.disabled { color: #6c757d; pointer-events: none; cursor: default; }\n.minerva-root .nav-tabs { border-bottom: 1px solid #dee2e6; }\n.minerva-root .nav-tabs .nav-item { margin-bottom: -1px; }\n.minerva-root .nav-tabs .nav-link { border: 1px solid transparent; border-top-left-radius: 0.25rem; border-top-right-radius: 0.25rem; }\n.minerva-root .nav-tabs .nav-link:hover, .minerva-root .nav-tabs .nav-link:focus { border-color: #e9ecef #e9ecef #dee2e6; }\n.minerva-root .nav-tabs .nav-link.disabled { color: #6c757d; background-color: transparent; border-color: transparent; }\n.minerva-root .nav-tabs .nav-link.active, .minerva-root .nav-tabs .nav-item.show .nav-link { color: #495057; background-color: #fff; border-color: #dee2e6 #dee2e6 #fff; }\n.minerva-root .nav-tabs .dropdown-menu { margin-top: -1px; border-top-left-radius: 0; border-top-right-radius: 0; }\n.minerva-root .nav-pills .nav-link { border-radius: 0.25rem; }\n.minerva-root .nav-pills .nav-link.active, .minerva-root .nav-pills .show > .nav-link { color: #fff; background-color: #007bff; }\n.minerva-root .nav-fill .nav-item { flex: 1 1 auto; text-align: center; }\n.minerva-root .nav-justified .nav-item { flex-basis: 0; flex-grow: 1; text-align: center; }\n.minerva-root .tab-content > .tab-pane { display: none; }\n.minerva-root .tab-content > .active { display: block; }\n.minerva-root .navbar { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; padding: 0.5rem 1rem; }\n.minerva-root .navbar .container, .minerva-root .navbar .container-fluid, .minerva-root .navbar .container-sm, .minerva-root .navbar .container-md, .minerva-root .navbar .container-lg, .minerva-root .navbar .container-xl { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; }\n.minerva-root .navbar-brand { display: inline-block; padding-top: 0.3125rem; padding-bottom: 0.3125rem; margin-right: 1rem; font-size: 1.25rem; line-height: inherit; white-space: nowrap; }\n.minerva-root .navbar-brand:hover, .minerva-root .navbar-brand:focus { text-decoration: none; }\n.minerva-root .navbar-nav { display: flex; flex-direction: column; padding-left: 0; margin-bottom: 0; list-style: none; }\n.minerva-root .navbar-nav .nav-link { padding-right: 0; padding-left: 0; }\n.minerva-root .navbar-nav .dropdown-menu { position: static; float: none; }\n.minerva-root .navbar-text { display: inline-block; padding-top: 0.5rem; padding-bottom: 0.5rem; }\n.minerva-root .navbar-collapse { flex-basis: 100%; flex-grow: 1; align-items: center; }\n.minerva-root .navbar-toggler { padding: 0.25rem 0.75rem; font-size: 1.25rem; line-height: 1; background-color: transparent; border: 1px solid transparent; border-radius: 0.25rem; }\n.minerva-root .navbar-toggler:hover, .minerva-root .navbar-toggler:focus { text-decoration: none; }\n.minerva-root .navbar-toggler-icon { display: inline-block; width: 1.5em; height: 1.5em; vertical-align: middle; content: ""; background: no-repeat center center; background-size: 100% 100%; }\n@media (max-width: 575.98px) { .minerva-root .navbar-expand-sm > .container, .minerva-root .navbar-expand-sm > .container-fluid, .minerva-root .navbar-expand-sm > .container-sm, .minerva-root .navbar-expand-sm > .container-md, .minerva-root .navbar-expand-sm > .container-lg, .minerva-root .navbar-expand-sm > .container-xl { padding-right: 0; padding-left: 0; } }\n@media (min-width: 576px) { .minerva-root .navbar-expand-sm { flex-flow: row nowrap; justify-content: flex-start; }\n .minerva-root .navbar-expand-sm .navbar-nav { flex-direction: row; }\n .minerva-root .navbar-expand-sm .navbar-nav .dropdown-menu { position: absolute; }\n .minerva-root .navbar-expand-sm .navbar-nav .nav-link { padding-right: 0.5rem; padding-left: 0.5rem; }\n .minerva-root .navbar-expand-sm > .container, .minerva-root .navbar-expand-sm > .container-fluid, .minerva-root .navbar-expand-sm > .container-sm, .minerva-root .navbar-expand-sm > .container-md, .minerva-root .navbar-expand-sm > .container-lg, .minerva-root .navbar-expand-sm > .container-xl { flex-wrap: nowrap; }\n .minerva-root .navbar-expand-sm .navbar-collapse { display: flex !important; flex-basis: auto; }\n .minerva-root .navbar-expand-sm .navbar-toggler { display: none; } }\n@media (max-width: 767.98px) { .minerva-root .navbar-expand-md > .container, .minerva-root .navbar-expand-md > .container-fluid, .minerva-root .navbar-expand-md > .container-sm, .minerva-root .navbar-expand-md > .container-md, .minerva-root .navbar-expand-md > .container-lg, .minerva-root .navbar-expand-md > .container-xl { padding-right: 0; padding-left: 0; } }\n@media (min-width: 768px) { .minerva-root .navbar-expand-md { flex-flow: row nowrap; justify-content: flex-start; }\n .minerva-root .navbar-expand-md .navbar-nav { flex-direction: row; }\n .minerva-root .navbar-expand-md .navbar-nav .dropdown-menu { position: absolute; }\n .minerva-root .navbar-expand-md .navbar-nav .nav-link { padding-right: 0.5rem; padding-left: 0.5rem; }\n .minerva-root .navbar-expand-md > .container, .minerva-root .navbar-expand-md > .container-fluid, .minerva-root .navbar-expand-md > .container-sm, .minerva-root .navbar-expand-md > .container-md, .minerva-root .navbar-expand-md > .container-lg, .minerva-root .navbar-expand-md > .container-xl { flex-wrap: nowrap; }\n .minerva-root .navbar-expand-md .navbar-collapse { display: flex !important; flex-basis: auto; }\n .minerva-root .navbar-expand-md .navbar-toggler { display: none; } }\n@media (max-width: 991.98px) { .minerva-root .navbar-expand-lg > .container, .minerva-root .navbar-expand-lg > .container-fluid, .minerva-root .navbar-expand-lg > .container-sm, .minerva-root .navbar-expand-lg > .container-md, .minerva-root .navbar-expand-lg > .container-lg, .minerva-root .navbar-expand-lg > .container-xl { padding-right: 0; padding-left: 0; } }\n@media (min-width: 992px) { .minerva-root .navbar-expand-lg { flex-flow: row nowrap; justify-content: flex-start; }\n .minerva-root .navbar-expand-lg .navbar-nav { flex-direction: row; }\n .minerva-root .navbar-expand-lg .navbar-nav .dropdown-menu { position: absolute; }\n .minerva-root .navbar-expand-lg .navbar-nav .nav-link { padding-right: 0.5rem; padding-left: 0.5rem; }\n .minerva-root .navbar-expand-lg > .container, .minerva-root .navbar-expand-lg > .container-fluid, .minerva-root .navbar-expand-lg > .container-sm, .minerva-root .navbar-expand-lg > .container-md, .minerva-root .navbar-expand-lg > .container-lg, .minerva-root .navbar-expand-lg > .container-xl { flex-wrap: nowrap; }\n .minerva-root .navbar-expand-lg .navbar-collapse { display: flex !important; flex-basis: auto; }\n .minerva-root .navbar-expand-lg .navbar-toggler { display: none; } }\n@media (max-width: 1199.98px) { .minerva-root .navbar-expand-xl > .container, .minerva-root .navbar-expand-xl > .container-fluid, .minerva-root .navbar-expand-xl > .container-sm, .minerva-root .navbar-expand-xl > .container-md, .minerva-root .navbar-expand-xl > .container-lg, .minerva-root .navbar-expand-xl > .container-xl { padding-right: 0; padding-left: 0; } }\n@media (min-width: 1200px) { .minerva-root .navbar-expand-xl { flex-flow: row nowrap; justify-content: flex-start; }\n .minerva-root .navbar-expand-xl .navbar-nav { flex-direction: row; }\n .minerva-root .navbar-expand-xl .navbar-nav .dropdown-menu { position: absolute; }\n .minerva-root .navbar-expand-xl .navbar-nav .nav-link { padding-right: 0.5rem; padding-left: 0.5rem; }\n .minerva-root .navbar-expand-xl > .container, .minerva-root .navbar-expand-xl > .container-fluid, .minerva-root .navbar-expand-xl > .container-sm, .minerva-root .navbar-expand-xl > .container-md, .minerva-root .navbar-expand-xl > .container-lg, .minerva-root .navbar-expand-xl > .container-xl { flex-wrap: nowrap; }\n .minerva-root .navbar-expand-xl .navbar-collapse { display: flex !important; flex-basis: auto; }\n .minerva-root .navbar-expand-xl .navbar-toggler { display: none; } }\n.minerva-root .navbar-expand { flex-flow: row nowrap; justify-content: flex-start; }\n.minerva-root .navbar-expand > .container, .minerva-root .navbar-expand > .container-fluid, .minerva-root .navbar-expand > .container-sm, .minerva-root .navbar-expand > .container-md, .minerva-root .navbar-expand > .container-lg, .minerva-root .navbar-expand > .container-xl { padding-right: 0; padding-left: 0; }\n.minerva-root .navbar-expand .navbar-nav { flex-direction: row; }\n.minerva-root .navbar-expand .navbar-nav .dropdown-menu { position: absolute; }\n.minerva-root .navbar-expand .navbar-nav .nav-link { padding-right: 0.5rem; padding-left: 0.5rem; }\n.minerva-root .navbar-expand > .container, .minerva-root .navbar-expand > .container-fluid, .minerva-root .navbar-expand > .container-sm, .minerva-root .navbar-expand > .container-md, .minerva-root .navbar-expand > .container-lg, .minerva-root .navbar-expand > .container-xl { flex-wrap: nowrap; }\n.minerva-root .navbar-expand .navbar-collapse { display: flex !important; flex-basis: auto; }\n.minerva-root .navbar-expand .navbar-toggler { display: none; }\n.minerva-root .navbar-light .navbar-brand { color: rgba(0, 0, 0, 0.9); }\n.minerva-root .navbar-light .navbar-brand:hover, .minerva-root .navbar-light .navbar-brand:focus { color: rgba(0, 0, 0, 0.9); }\n.minerva-root .navbar-light .navbar-nav .nav-link { color: rgba(0, 0, 0, 0.5); }\n.minerva-root .navbar-light .navbar-nav .nav-link:hover, .minerva-root .navbar-light .navbar-nav .nav-link:focus { color: rgba(0, 0, 0, 0.7); }\n.minerva-root .navbar-light .navbar-nav .nav-link.disabled { color: rgba(0, 0, 0, 0.3); }\n.minerva-root .navbar-light .navbar-nav .show > .nav-link, .minerva-root .navbar-light .navbar-nav .active > .nav-link, .minerva-root .navbar-light .navbar-nav .nav-link.show, .minerva-root .navbar-light .navbar-nav .nav-link.active { color: rgba(0, 0, 0, 0.9); }\n.minerva-root .navbar-light .navbar-toggler { color: rgba(0, 0, 0, 0.5); border-color: rgba(0, 0, 0, 0.1); }\n.minerva-root .navbar-light .navbar-toggler-icon { background-image: url("data:image/svg+xml,%3csvg xmlns=\'http://www.w3.org/2000/svg\' width=\'30\' height=\'30\' viewBox=\'0 0 30 30\'%3e%3cpath stroke=\'rgba(0, 0, 0, 0.5)\' stroke-linecap=\'round\' stroke-miterlimit=\'10\' stroke-width=\'2\' d=\'M4 7h22M4 15h22M4 23h22\'/%3e%3c/svg%3e"); }\n.minerva-root .navbar-light .navbar-text { color: rgba(0, 0, 0, 0.5); }\n.minerva-root .navbar-light .navbar-text a { color: rgba(0, 0, 0, 0.9); }\n.minerva-root .navbar-light .navbar-text a:hover, .minerva-root .navbar-light .navbar-text a:focus { color: rgba(0, 0, 0, 0.9); }\n.minerva-root .navbar-dark .navbar-brand { color: #fff; }\n.minerva-root .navbar-dark .navbar-brand:hover, .minerva-root .navbar-dark .navbar-brand:focus { color: #fff; }\n.minerva-root .navbar-dark .navbar-nav .nav-link { color: rgba(255, 255, 255, 0.5); }\n.minerva-root .navbar-dark .navbar-nav .nav-link:hover, .minerva-root .navbar-dark .navbar-nav .nav-link:focus { color: rgba(255, 255, 255, 0.75); }\n.minerva-root .navbar-dark .navbar-nav .nav-link.disabled { color: rgba(255, 255, 255, 0.25); }\n.minerva-root .navbar-dark .navbar-nav .show > .nav-link, .minerva-root .navbar-dark .navbar-nav .active > .nav-link, .minerva-root .navbar-dark .navbar-nav .nav-link.show, .minerva-root .navbar-dark .navbar-nav .nav-link.active { color: #fff; }\n.minerva-root .navbar-dark .navbar-toggler { color: rgba(255, 255, 255, 0.5); border-color: rgba(255, 255, 255, 0.1); }\n.minerva-root .navbar-dark .navbar-toggler-icon { background-image: url("data:image/svg+xml,%3csvg xmlns=\'http://www.w3.org/2000/svg\' width=\'30\' height=\'30\' viewBox=\'0 0 30 30\'%3e%3cpath stroke=\'rgba(255, 255, 255, 0.5)\' stroke-linecap=\'round\' stroke-miterlimit=\'10\' stroke-width=\'2\' d=\'M4 7h22M4 15h22M4 23h22\'/%3e%3c/svg%3e"); }\n.minerva-root .navbar-dark .navbar-text { color: rgba(255, 255, 255, 0.5); }\n.minerva-root .navbar-dark .navbar-text a { color: #fff; }\n.minerva-root .navbar-dark .navbar-text a:hover, .minerva-root .navbar-dark .navbar-text a:focus { color: #fff; }\n.minerva-root .card { position: relative; display: flex; flex-direction: column; min-width: 0; word-wrap: break-word; background-color: #fff; background-clip: border-box; border: 1px solid rgba(0, 0, 0, 0.125); border-radius: 0.25rem; }\n.minerva-root .card > hr { margin-right: 0; margin-left: 0; }\n.minerva-root .card > .list-group:first-child .list-group-item:first-child { border-top-left-radius: 0.25rem; border-top-right-radius: 0.25rem; }\n.minerva-root .card > .list-group:last-child .list-group-item:last-child { border-bottom-right-radius: 0.25rem; border-bottom-left-radius: 0.25rem; }\n.minerva-root .card-body { flex: 1 1 auto; min-height: 1px; padding: 1.25rem; }\n.minerva-root .card-title { margin-bottom: 0.75rem; }\n.minerva-root .card-subtitle { margin-top: -0.375rem; margin-bottom: 0; }\n.minerva-root .card-text:last-child { margin-bottom: 0; }\n.minerva-root .card-link:hover { text-decoration: none; }\n.minerva-root .card-link + .card-link { margin-left: 1.25rem; }\n.minerva-root .card-header { padding: 0.75rem 1.25rem; margin-bottom: 0; background-color: rgba(0, 0, 0, 0.03); border-bottom: 1px solid rgba(0, 0, 0, 0.125); }\n.minerva-root .card-header:first-child { border-radius: calc(0.25rem - 1px) calc(0.25rem - 1px) 0 0; }\n.minerva-root .card-header + .list-group .list-group-item:first-child { border-top: 0; }\n.minerva-root .card-footer { padding: 0.75rem 1.25rem; background-color: rgba(0, 0, 0, 0.03); border-top: 1px solid rgba(0, 0, 0, 0.125); }\n.minerva-root .card-footer:last-child { border-radius: 0 0 calc(0.25rem - 1px) calc(0.25rem - 1px); }\n.minerva-root .card-header-tabs { margin-right: -0.625rem; margin-bottom: -0.75rem; margin-left: -0.625rem; border-bottom: 0; }\n.minerva-root .card-header-pills { margin-right: -0.625rem; margin-left: -0.625rem; }\n.minerva-root .card-img-overlay { position: absolute; top: 0; right: 0; bottom: 0; left: 0; padding: 1.25rem; }\n.minerva-root .card-img, .minerva-root .card-img-top, .minerva-root .card-img-bottom { flex-shrink: 0; width: 100%; }\n.minerva-root .card-img, .minerva-root .card-img-top { border-top-left-radius: calc(0.25rem - 1px); border-top-right-radius: calc(0.25rem - 1px); }\n.minerva-root .card-img, .minerva-root .card-img-bottom { border-bottom-right-radius: calc(0.25rem - 1px); border-bottom-left-radius: calc(0.25rem - 1px); }\n.minerva-root .card-deck .card { margin-bottom: 15px; }\n@media (min-width: 576px) { .minerva-root .card-deck { display: flex; flex-flow: row wrap; margin-right: -15px; margin-left: -15px; }\n .minerva-root .card-deck .card { flex: 1 0 0%; margin-right: 15px; margin-bottom: 0; margin-left: 15px; } }\n.minerva-root .card-group > .card { margin-bottom: 15px; }\n@media (min-width: 576px) { .minerva-root .card-group { display: flex; flex-flow: row wrap; }\n .minerva-root .card-group > .card { flex: 1 0 0%; margin-bottom: 0; }\n .minerva-root .card-group > .card + .card { margin-left: 0; border-left: 0; }\n .minerva-root .card-group > .card:not(:last-child) { border-top-right-radius: 0; border-bottom-right-radius: 0; }\n .minerva-root .card-group > .card:not(:last-child) .card-img-top, .minerva-root .card-group > .card:not(:last-child) .card-header { border-top-right-radius: 0; }\n .minerva-root .card-group > .card:not(:last-child) .card-img-bottom, .minerva-root .card-group > .card:not(:last-child) .card-footer { border-bottom-right-radius: 0; }\n .minerva-root .card-group > .card:not(:first-child) { border-top-left-radius: 0; border-bottom-left-radius: 0; }\n .minerva-root .card-group > .card:not(:first-child) .card-img-top, .minerva-root .card-group > .card:not(:first-child) .card-header { border-top-left-radius: 0; }\n .minerva-root .card-group > .card:not(:first-child) .card-img-bottom, .minerva-root .card-group > .card:not(:first-child) .card-footer { border-bottom-left-radius: 0; } }\n.minerva-root .card-columns .card { margin-bottom: 0.75rem; }\n@media (min-width: 576px) { .minerva-root .card-columns { column-count: 3; column-gap: 1.25rem; orphans: 1; widows: 1; }\n .minerva-root .card-columns .card { display: inline-block; width: 100%; } }\n.minerva-root .accordion > .card { overflow: hidden; }\n.minerva-root .accordion > .card:not(:last-of-type) { border-bottom: 0; border-bottom-right-radius: 0; border-bottom-left-radius: 0; }\n.minerva-root .accordion > .card:not(:first-of-type) { border-top-left-radius: 0; border-top-right-radius: 0; }\n.minerva-root .accordion > .card > .card-header { border-radius: 0; margin-bottom: -1px; }\n.minerva-root .breadcrumb { display: flex; flex-wrap: wrap; padding: 0.75rem 1rem; margin-bottom: 1rem; list-style: none; background-color: #e9ecef; border-radius: 0.25rem; }\n.minerva-root .breadcrumb-item + .breadcrumb-item { padding-left: 0.5rem; }\n.minerva-root .breadcrumb-item + .breadcrumb-item::before { display: inline-block; padding-right: 0.5rem; color: #6c757d; content: "/"; }\n.minerva-root .breadcrumb-item + .breadcrumb-item:hover::before { text-decoration: underline; }\n.minerva-root .breadcrumb-item + .breadcrumb-item:hover::before { text-decoration: none; }\n.minerva-root .breadcrumb-item.active { color: #6c757d; }\n.minerva-root .pagination { display: flex; padding-left: 0; list-style: none; border-radius: 0.25rem; }\n.minerva-root .page-link { position: relative; display: block; padding: 0.5rem 0.75rem; margin-left: -1px; line-height: 1.25; color: #007bff; background-color: #fff; border: 1px solid #dee2e6; }\n.minerva-root .page-link:hover { z-index: 2; color: #0056b3; text-decoration: none; background-color: #e9ecef; border-color: #dee2e6; }\n.minerva-root .page-link:focus { z-index: 3; outline: 0; box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25); }\n.minerva-root .page-item:first-child .page-link { margin-left: 0; border-top-left-radius: 0.25rem; border-bottom-left-radius: 0.25rem; }\n.minerva-root .page-item:last-child .page-link { border-top-right-radius: 0.25rem; border-bottom-right-radius: 0.25rem; }\n.minerva-root .page-item.active .page-link { z-index: 3; color: #fff; background-color: #007bff; border-color: #007bff; }\n.minerva-root .page-item.disabled .page-link { color: #6c757d; pointer-events: none; cursor: auto; background-color: #fff; border-color: #dee2e6; }\n.minerva-root .pagination-lg .page-link { padding: 0.75rem 1.5rem; font-size: 1.25rem; line-height: 1.5; }\n.minerva-root .pagination-lg .page-item:first-child .page-link { border-top-left-radius: 0.3rem; border-bottom-left-radius: 0.3rem; }\n.minerva-root .pagination-lg .page-item:last-child .page-link { border-top-right-radius: 0.3rem; border-bottom-right-radius: 0.3rem; }\n.minerva-root .pagination-sm .page-link { padding: 0.25rem 0.5rem; font-size: 0.875rem; line-height: 1.5; }\n.minerva-root .pagination-sm .page-item:first-child .page-link { border-top-left-radius: 0.2rem; border-bottom-left-radius: 0.2rem; }\n.minerva-root .pagination-sm .page-item:last-child .page-link { border-top-right-radius: 0.2rem; border-bottom-right-radius: 0.2rem; }\n.minerva-root .badge { display: inline-block; padding: 0.25em 0.4em; font-size: 75%; font-weight: 700; line-height: 1; text-align: center; white-space: nowrap; vertical-align: baseline; border-radius: 0.25rem; transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; }\n@media (prefers-reduced-motion: reduce) { .minerva-root .badge { transition: none; } }\na.minerva-root .badge:hover, a.minerva-root .badge:focus { text-decoration: none; }\n.minerva-root .badge:empty { display: none; }\n.minerva-root .btn .badge { position: relative; top: -1px; }\n.minerva-root .badge-pill { padding-right: 0.6em; padding-left: 0.6em; border-radius: 10rem; }\n.minerva-root .badge-primary { color: #fff; background-color: #007bff; }\na.minerva-root .badge-primary:hover, a.minerva-root .badge-primary:focus { color: #fff; background-color: #0062cc; }\na.minerva-root .badge-primary:focus, a.minerva-root .badge-primary.focus { outline: 0; box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.5); }\n.minerva-root .badge-secondary { color: #fff; background-color: #6c757d; }\na.minerva-root .badge-secondary:hover, a.minerva-root .badge-secondary:focus { color: #fff; background-color: #545b62; }\na.minerva-root .badge-secondary:focus, a.minerva-root .badge-secondary.focus { outline: 0; box-shadow: 0 0 0 0.2rem rgba(108, 117, 125, 0.5); }\n.minerva-root .badge-success { color: #fff; background-color: #28a745; }\na.minerva-root .badge-success:hover, a.minerva-root .badge-success:focus { color: #fff; background-color: #1e7e34; }\na.minerva-root .badge-success:focus, a.minerva-root .badge-success.focus { outline: 0; box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.5); }\n.minerva-root .badge-info { color: #fff; background-color: #17a2b8; }\na.minerva-root .badge-info:hover, a.minerva-root .badge-info:focus { color: #fff; background-color: #117a8b; }\na.minerva-root .badge-info:focus, a.minerva-root .badge-info.focus { outline: 0; box-shadow: 0 0 0 0.2rem rgba(23, 162, 184, 0.5); }\n.minerva-root .badge-warning { color: #212529; background-color: #ffc107; }\na.minerva-root .badge-warning:hover, a.minerva-root .badge-warning:focus { color: #212529; background-color: #d39e00; }\na.minerva-root .badge-warning:focus, a.minerva-root .badge-warning.focus { outline: 0; box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.5); }\n.minerva-root .badge-danger { color: #fff; background-color: #dc3545; }\na.minerva-root .badge-danger:hover, a.minerva-root .badge-danger:focus { color: #fff; background-color: #bd2130; }\na.minerva-root .badge-danger:focus, a.minerva-root .badge-danger.focus { outline: 0; box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.5); }\n.minerva-root .badge-light { color: #212529; background-color: #f8f9fa; }\na.minerva-root .badge-light:hover, a.minerva-root .badge-light:focus { color: #212529; background-color: #dae0e5; }\na.minerva-root .badge-light:focus, a.minerva-root .badge-light.focus { outline: 0; box-shadow: 0 0 0 0.2rem rgba(248, 249, 250, 0.5); }\n.minerva-root .badge-dark { color: #fff; background-color: #343a40; }\na.minerva-root .badge-dark:hover, a.minerva-root .badge-dark:focus { color: #fff; background-color: #1d2124; }\na.minerva-root .badge-dark:focus, a.minerva-root .badge-dark.focus { outline: 0; box-shadow: 0 0 0 0.2rem rgba(52, 58, 64, 0.5); }\n.minerva-root .jumbotron { padding: 2rem 1rem; margin-bottom: 2rem; background-color: #e9ecef; border-radius: 0.3rem; }\n@media (min-width: 576px) { .minerva-root .jumbotron { padding: 4rem 2rem; } }\n.minerva-root .jumbotron-fluid { padding-right: 0; padding-left: 0; border-radius: 0; }\n.minerva-root .alert { position: relative; padding: 0.75rem 1.25rem; margin-bottom: 1rem; border: 1px solid transparent; border-radius: 0.25rem; }\n.minerva-root .alert-heading { color: inherit; }\n.minerva-root .alert-link { font-weight: 700; }\n.minerva-root .alert-dismissible { padding-right: 4rem; }\n.minerva-root .alert-dismissible .close { position: absolute; top: 0; right: 0; padding: 0.75rem 1.25rem; color: inherit; }\n.minerva-root .alert-primary { color: #004085; background-color: #cce5ff; border-color: #b8daff; }\n.minerva-root .alert-primary hr { border-top-color: #9fcdff; }\n.minerva-root .alert-primary .alert-link { color: #002752; }\n.minerva-root .alert-secondary { color: #383d41; background-color: #e2e3e5; border-color: #d6d8db; }\n.minerva-root .alert-secondary hr { border-top-color: #c8cbcf; }\n.minerva-root .alert-secondary .alert-link { color: #202326; }\n.minerva-root .alert-success { color: #155724; background-color: #d4edda; border-color: #c3e6cb; }\n.minerva-root .alert-success hr { border-top-color: #b1dfbb; }\n.minerva-root .alert-success .alert-link { color: #0b2e13; }\n.minerva-root .alert-info { color: #0c5460; background-color: #d1ecf1; border-color: #bee5eb; }\n.minerva-root .alert-info hr { border-top-color: #abdde5; }\n.minerva-root .alert-info .alert-link { color: #062c33; }\n.minerva-root .alert-warning { color: #856404; background-color: #fff3cd; border-color: #ffeeba; }\n.minerva-root .alert-warning hr { border-top-color: #ffe8a1; }\n.minerva-root .alert-warning .alert-link { color: #533f03; }\n.minerva-root .alert-danger { color: #721c24; background-color: #f8d7da; border-color: #f5c6cb; }\n.minerva-root .alert-danger hr { border-top-color: #f1b0b7; }\n.minerva-root .alert-danger .alert-link { color: #491217; }\n.minerva-root .alert-light { color: #818182; background-color: #fefefe; border-color: #fdfdfe; }\n.minerva-root .alert-light hr { border-top-color: #ececf6; }\n.minerva-root .alert-light .alert-link { color: #686868; }\n.minerva-root .alert-dark { color: #1b1e21; background-color: #d6d8d9; border-color: #c6c8ca; }\n.minerva-root .alert-dark hr { border-top-color: #b9bbbe; }\n.minerva-root .alert-dark .alert-link { color: #040505; }\n@keyframes progress-bar-stripes { from { background-position: 1rem 0; }\n to { background-position: 0 0; } }\n.minerva-root .progress { display: flex; height: 1rem; overflow: hidden; font-size: 0.75rem; background-color: #e9ecef; border-radius: 0.25rem; }\n.minerva-root .progress-bar { display: flex; flex-direction: column; justify-content: center; overflow: hidden; color: #fff; text-align: center; white-space: nowrap; background-color: #007bff; transition: width 0.6s ease; }\n@media (prefers-reduced-motion: reduce) { .minerva-root .progress-bar { transition: none; } }\n.minerva-root .progress-bar-striped { background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-size: 1rem 1rem; }\n.minerva-root .progress-bar-animated { animation: progress-bar-stripes 1s linear infinite; }\n@media (prefers-reduced-motion: reduce) { .minerva-root .progress-bar-animated { animation: none; } }\n.minerva-root .media { display: flex; align-items: flex-start; }\n.minerva-root .media-body { flex: 1; }\n.minerva-root .list-group { display: flex; flex-direction: column; padding-left: 0; margin-bottom: 0; }\n.minerva-root .list-group-item-action { width: 100%; color: #495057; text-align: inherit; }\n.minerva-root .list-group-item-action:hover, .minerva-root .list-group-item-action:focus { z-index: 1; color: #495057; text-decoration: none; background-color: #f8f9fa; }\n.minerva-root .list-group-item-action:active { color: #212529; background-color: #e9ecef; }\n.minerva-root .list-group-item { position: relative; display: block; padding: 0.75rem 1.25rem; background-color: #fff; border: 1px solid rgba(0, 0, 0, 0.125); }\n.minerva-root .list-group-item:first-child { border-top-left-radius: 0.25rem; border-top-right-radius: 0.25rem; }\n.minerva-root .list-group-item:last-child { border-bottom-right-radius: 0.25rem; border-bottom-left-radius: 0.25rem; }\n.minerva-root .list-group-item.disabled, .minerva-root .list-group-item:disabled { color: #6c757d; pointer-events: none; background-color: #fff; }\n.minerva-root .list-group-item.active { z-index: 2; color: #fff; background-color: #007bff; border-color: #007bff; }\n.minerva-root .list-group-item + .minerva-root .list-group-item { border-top-width: 0; }\n.minerva-root .list-group-item + .minerva-root .list-group-item.active { margin-top: -1px; border-top-width: 1px; }\n.minerva-root .list-group-horizontal { flex-direction: row; }\n.minerva-root .list-group-horizontal .list-group-item:first-child { border-bottom-left-radius: 0.25rem; border-top-right-radius: 0; }\n.minerva-root .list-group-horizontal .list-group-item:last-child { border-top-right-radius: 0.25rem; border-bottom-left-radius: 0; }\n.minerva-root .list-group-horizontal .list-group-item.active { margin-top: 0; }\n.minerva-root .list-group-horizontal .list-group-item + .list-group-item { border-top-width: 1px; border-left-width: 0; }\n.minerva-root .list-group-horizontal .list-group-item + .list-group-item.active { margin-left: -1px; border-left-width: 1px; }\n@media (min-width: 576px) { .minerva-root .list-group-horizontal-sm { flex-direction: row; }\n .minerva-root .list-group-horizontal-sm .list-group-item:first-child { border-bottom-left-radius: 0.25rem; border-top-right-radius: 0; }\n .minerva-root .list-group-horizontal-sm .list-group-item:last-child { border-top-right-radius: 0.25rem; border-bottom-left-radius: 0; }\n .minerva-root .list-group-horizontal-sm .list-group-item.active { margin-top: 0; }\n .minerva-root .list-group-horizontal-sm .list-group-item + .list-group-item { border-top-width: 1px; border-left-width: 0; }\n .minerva-root .list-group-horizontal-sm .list-group-item + .list-group-item.active { margin-left: -1px; border-left-width: 1px; } }\n@media (min-width: 768px) { .minerva-root .list-group-horizontal-md { flex-direction: row; }\n .minerva-root .list-group-horizontal-md .list-group-item:first-child { border-bottom-left-radius: 0.25rem; border-top-right-radius: 0; }\n .minerva-root .list-group-horizontal-md .list-group-item:last-child { border-top-right-radius: 0.25rem; border-bottom-left-radius: 0; }\n .minerva-root .list-group-horizontal-md .list-group-item.active { margin-top: 0; }\n .minerva-root .list-group-horizontal-md .list-group-item + .list-group-item { border-top-width: 1px; border-left-width: 0; }\n .minerva-root .list-group-horizontal-md .list-group-item + .list-group-item.active { margin-left: -1px; border-left-width: 1px; } }\n@media (min-width: 992px) { .minerva-root .list-group-horizontal-lg { flex-direction: row; }\n .minerva-root .list-group-horizontal-lg .list-group-item:first-child { border-bottom-left-radius: 0.25rem; border-top-right-radius: 0; }\n .minerva-root .list-group-horizontal-lg .list-group-item:last-child { border-top-right-radius: 0.25rem; border-bottom-left-radius: 0; }\n .minerva-root .list-group-horizontal-lg .list-group-item.active { margin-top: 0; }\n .minerva-root .list-group-horizontal-lg .list-group-item + .list-group-item { border-top-width: 1px; border-left-width: 0; }\n .minerva-root .list-group-horizontal-lg .list-group-item + .list-group-item.active { margin-left: -1px; border-left-width: 1px; } }\n@media (min-width: 1200px) { .minerva-root .list-group-horizontal-xl { flex-direction: row; }\n .minerva-root .list-group-horizontal-xl .list-group-item:first-child { border-bottom-left-radius: 0.25rem; border-top-right-radius: 0; }\n .minerva-root .list-group-horizontal-xl .list-group-item:last-child { border-top-right-radius: 0.25rem; border-bottom-left-radius: 0; }\n .minerva-root .list-group-horizontal-xl .list-group-item.active { margin-top: 0; }\n .minerva-root .list-group-horizontal-xl .list-group-item + .list-group-item { border-top-width: 1px; border-left-width: 0; }\n .minerva-root .list-group-horizontal-xl .list-group-item + .list-group-item.active { margin-left: -1px; border-left-width: 1px; } }\n.minerva-root .list-group-flush .list-group-item { border-right-width: 0; border-left-width: 0; border-radius: 0; }\n.minerva-root .list-group-flush .list-group-item:first-child { border-top-width: 0; }\n.minerva-root .list-group-flush:last-child .list-group-item:last-child { border-bottom-width: 0; }\n.minerva-root .list-group-item-primary { color: #004085; background-color: #b8daff; }\n.minerva-root .list-group-item-primary.list-group-item-action:hover, .minerva-root .list-group-item-primary.list-group-item-action:focus { color: #004085; background-color: #9fcdff; }\n.minerva-root .list-group-item-primary.list-group-item-action.active { color: #fff; background-color: #004085; border-color: #004085; }\n.minerva-root .list-group-item-secondary { color: #383d41; background-color: #d6d8db; }\n.minerva-root .list-group-item-secondary.list-group-item-action:hover, .minerva-root .list-group-item-secondary.list-group-item-action:focus { color: #383d41; background-color: #c8cbcf; }\n.minerva-root .list-group-item-secondary.list-group-item-action.active { color: #fff; background-color: #383d41; border-color: #383d41; }\n.minerva-root .list-group-item-success { color: #155724; background-color: #c3e6cb; }\n.minerva-root .list-group-item-success.list-group-item-action:hover, .minerva-root .list-group-item-success.list-group-item-action:focus { color: #155724; background-color: #b1dfbb; }\n.minerva-root .list-group-item-success.list-group-item-action.active { color: #fff; background-color: #155724; border-color: #155724; }\n.minerva-root .list-group-item-info { color: #0c5460; background-color: #bee5eb; }\n.minerva-root .list-group-item-info.list-group-item-action:hover, .minerva-root .list-group-item-info.list-group-item-action:focus { color: #0c5460; background-color: #abdde5; }\n.minerva-root .list-group-item-info.list-group-item-action.active { color: #fff; background-color: #0c5460; border-color: #0c5460; }\n.minerva-root .list-group-item-warning { color: #856404; background-color: #ffeeba; }\n.minerva-root .list-group-item-warning.list-group-item-action:hover, .minerva-root .list-group-item-warning.list-group-item-action:focus { color: #856404; background-color: #ffe8a1; }\n.minerva-root .list-group-item-warning.list-group-item-action.active { color: #fff; background-color: #856404; border-color: #856404; }\n.minerva-root .list-group-item-danger { color: #721c24; background-color: #f5c6cb; }\n.minerva-root .list-group-item-danger.list-group-item-action:hover, .minerva-root .list-group-item-danger.list-group-item-action:focus { color: #721c24; background-color: #f1b0b7; }\n.minerva-root .list-group-item-danger.list-group-item-action.active { color: #fff; background-color: #721c24; border-color: #721c24; }\n.minerva-root .list-group-item-light { color: #818182; background-color: #fdfdfe; }\n.minerva-root .list-group-item-light.list-group-item-action:hover, .minerva-root .list-group-item-light.list-group-item-action:focus { color: #818182; background-color: #ececf6; }\n.minerva-root .list-group-item-light.list-group-item-action.active { color: #fff; background-color: #818182; border-color: #818182; }\n.minerva-root .list-group-item-dark { color: #1b1e21; background-color: #c6c8ca; }\n.minerva-root .list-group-item-dark.list-group-item-action:hover, .minerva-root .list-group-item-dark.list-group-item-action:focus { color: #1b1e21; background-color: #b9bbbe; }\n.minerva-root .list-group-item-dark.list-group-item-action.active { color: #fff; background-color: #1b1e21; border-color: #1b1e21; }\n.minerva-root .close { float: right; font-size: 1.5rem; font-weight: 700; line-height: 1; color: #000; text-shadow: 0 1px 0 #fff; opacity: .5; }\n.minerva-root .close:hover { color: #000; text-decoration: none; }\n.minerva-root .close:not(:disabled):not(.disabled):hover, .minerva-root .close:not(:disabled):not(.disabled):focus { opacity: .75; }\n.minerva-root button.close { padding: 0; background-color: transparent; border: 0; appearance: none; }\n.minerva-root a.close.disabled { pointer-events: none; }\n.minerva-root .toast { max-width: 350px; overflow: hidden; font-size: 0.875rem; background-color: rgba(255, 255, 255, 0.85); background-clip: padding-box; border: 1px solid rgba(0, 0, 0, 0.1); box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1); backdrop-filter: blur(10px); opacity: 0; border-radius: 0.25rem; }\n.minerva-root .toast:not(:last-child) { margin-bottom: 0.75rem; }\n.minerva-root .toast.showing { opacity: 1; }\n.minerva-root .toast.show { display: block; opacity: 1; }\n.minerva-root .toast.hide { display: none; }\n.minerva-root .toast-header { display: flex; align-items: center; padding: 0.25rem 0.75rem; color: #6c757d; background-color: rgba(255, 255, 255, 0.85); background-clip: padding-box; border-bottom: 1px solid rgba(0, 0, 0, 0.05); }\n.minerva-root .toast-body { padding: 0.75rem; }\n.minerva-root .modal-open { overflow: hidden; }\n.minerva-root .modal-open .modal { overflow-x: hidden; overflow-y: auto; }\n.minerva-root .modal { position: fixed; top: 0; left: 0; z-index: 1050; display: none; width: 100%; height: 100%; overflow: hidden; outline: 0; }\n.minerva-root .modal-dialog { position: relative; width: auto; margin: 0.5rem; pointer-events: none; }\n.modal.fade .minerva-root .modal-dialog { transition: transform 0.3s ease-out; transform: translate(0, -50px); }\n@media (prefers-reduced-motion: reduce) { .modal.fade .minerva-root .modal-dialog { transition: none; } }\n.modal.show .minerva-root .modal-dialog { transform: none; }\n.modal.modal-static .minerva-root .modal-dialog { transform: scale(1.02); }\n.minerva-root .modal-dialog-scrollable { display: flex; max-height: calc(100% - 1rem); }\n.minerva-root .modal-dialog-scrollable .modal-content { max-height: calc(100vh - 1rem); overflow: hidden; }\n.minerva-root .modal-dialog-scrollable .modal-header, .minerva-root .modal-dialog-scrollable .modal-footer { flex-shrink: 0; }\n.minerva-root .modal-dialog-scrollable .modal-body { overflow-y: auto; }\n.minerva-root .modal-dialog-centered { display: flex; align-items: center; min-height: calc(100% - 1rem); }\n.minerva-root .modal-dialog-centered::before { display: block; height: calc(100vh - 1rem); content: ""; }\n.minerva-root .modal-dialog-centered.modal-dialog-scrollable { flex-direction: column; justify-content: center; height: 100%; }\n.minerva-root .modal-dialog-centered.modal-dialog-scrollable .modal-content { max-height: none; }\n.minerva-root .modal-dialog-centered.modal-dialog-scrollable::before { content: none; }\n.minerva-root .modal-content { position: relative; display: flex; flex-direction: column; width: 100%; pointer-events: auto; background-color: #fff; background-clip: padding-box; border: 1px solid rgba(0, 0, 0, 0.2); border-radius: 0.3rem; outline: 0; }\n.minerva-root .modal-backdrop { position: fixed; top: 0; left: 0; z-index: 1040; width: 100vw; height: 100vh; background-color: #000; }\n.minerva-root .modal-backdrop.fade { opacity: 0; }\n.minerva-root .modal-backdrop.show { opacity: 0.5; }\n.minerva-root .modal-header { display: flex; align-items: flex-start; justify-content: space-between; padding: 1rem 1rem; border-bottom: 1px solid #dee2e6; border-top-left-radius: calc(0.3rem - 1px); border-top-right-radius: calc(0.3rem - 1px); }\n.minerva-root .modal-header .close { padding: 1rem 1rem; margin: -1rem -1rem -1rem auto; }\n.minerva-root .modal-title { margin-bottom: 0; line-height: 1.5; }\n.minerva-root .modal-body { position: relative; flex: 1 1 auto; padding: 1rem; }\n.minerva-root .modal-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; padding: 0.75rem; border-top: 1px solid #dee2e6; border-bottom-right-radius: calc(0.3rem - 1px); border-bottom-left-radius: calc(0.3rem - 1px); }\n.minerva-root .modal-footer > * { margin: 0.25rem; }\n.minerva-root .modal-scrollbar-measure { position: absolute; top: -9999px; width: 50px; height: 50px; overflow: scroll; }\n@media (min-width: 576px) { .minerva-root .modal-dialog { max-width: 500px; margin: 1.75rem auto; }\n .minerva-root .modal-dialog-scrollable { max-height: calc(100% - 3.5rem); }\n .minerva-root .modal-dialog-scrollable .modal-content { max-height: calc(100vh - 3.5rem); }\n .minerva-root .modal-dialog-centered { min-height: calc(100% - 3.5rem); }\n .minerva-root .modal-dialog-centered::before { height: calc(100vh - 3.5rem); }\n .minerva-root .modal-sm { max-width: 300px; } }\n@media (min-width: 992px) { .minerva-root .modal-lg, .minerva-root .modal-xl { max-width: 800px; } }\n@media (min-width: 1200px) { .minerva-root .modal-xl { max-width: 1140px; } }\n.minerva-root .tooltip { position: absolute; z-index: 1070; display: block; margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; font-style: normal; font-weight: 400; line-height: 1.5; text-align: left; text-align: start; text-decoration: none; text-shadow: none; text-transform: none; letter-spacing: normal; word-break: normal; word-spacing: normal; white-space: normal; line-break: auto; font-size: 0.875rem; word-wrap: break-word; opacity: 0; }\n.minerva-root .tooltip.show { opacity: 0.9; }\n.minerva-root .tooltip .arrow { position: absolute; display: block; width: 0.8rem; height: 0.4rem; }\n.minerva-root .tooltip .arrow::before { position: absolute; content: ""; border-color: transparent; border-style: solid; }\n.minerva-root .bs-tooltip-top, .minerva-root .bs-tooltip-auto[x-placement^="top"] { padding: 0.4rem 0; }\n.minerva-root .bs-tooltip-top .arrow, .minerva-root .bs-tooltip-auto[x-placement^="top"] .arrow { bottom: 0; }\n.minerva-root .bs-tooltip-top .arrow::before, .minerva-root .bs-tooltip-auto[x-placement^="top"] .arrow::before { top: 0; border-width: 0.4rem 0.4rem 0; border-top-color: #000; }\n.minerva-root .bs-tooltip-right, .minerva-root .bs-tooltip-auto[x-placement^="right"] { padding: 0 0.4rem; }\n.minerva-root .bs-tooltip-right .arrow, .minerva-root .bs-tooltip-auto[x-placement^="right"] .arrow { left: 0; width: 0.4rem; height: 0.8rem; }\n.minerva-root .bs-tooltip-right .arrow::before, .minerva-root .bs-tooltip-auto[x-placement^="right"] .arrow::before { right: 0; border-width: 0.4rem 0.4rem 0.4rem 0; border-right-color: #000; }\n.minerva-root .bs-tooltip-bottom, .minerva-root .bs-tooltip-auto[x-placement^="bottom"] { padding: 0.4rem 0; }\n.minerva-root .bs-tooltip-bottom .arrow, .minerva-root .bs-tooltip-auto[x-placement^="bottom"] .arrow { top: 0; }\n.minerva-root .bs-tooltip-bottom .arrow::before, .minerva-root .bs-tooltip-auto[x-placement^="bottom"] .arrow::before { bottom: 0; border-width: 0 0.4rem 0.4rem; border-bottom-color: #000; }\n.minerva-root .bs-tooltip-left, .minerva-root .bs-tooltip-auto[x-placement^="left"] { padding: 0 0.4rem; }\n.minerva-root .bs-tooltip-left .arrow, .minerva-root .bs-tooltip-auto[x-placement^="left"] .arrow { right: 0; width: 0.4rem; height: 0.8rem; }\n.minerva-root .bs-tooltip-left .arrow::before, .minerva-root .bs-tooltip-auto[x-placement^="left"] .arrow::before { left: 0; border-width: 0.4rem 0 0.4rem 0.4rem; border-left-color: #000; }\n.minerva-root .tooltip-inner { max-width: 200px; padding: 0.25rem 0.5rem; color: #fff; text-align: center; background-color: #000; border-radius: 0.25rem; }\n.minerva-root .popover { position: absolute; top: 0; left: 0; z-index: 1060; display: block; max-width: 276px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; font-style: normal; font-weight: 400; line-height: 1.5; text-align: left; text-align: start; text-decoration: none; text-shadow: none; text-transform: none; letter-spacing: normal; word-break: normal; word-spacing: normal; white-space: normal; line-break: auto; font-size: 0.875rem; word-wrap: break-word; background-color: #fff; background-clip: padding-box; border: 1px solid rgba(0, 0, 0, 0.2); border-radius: 0.3rem; }\n.minerva-root .popover .arrow { position: absolute; display: block; width: 1rem; height: 0.5rem; margin: 0 0.3rem; }\n.minerva-root .popover .arrow::before, .minerva-root .popover .arrow::after { position: absolute; display: block; content: ""; border-color: transparent; border-style: solid; }\n.minerva-root .bs-popover-top, .minerva-root .bs-popover-auto[x-placement^="top"] { margin-bottom: 0.5rem; }\n.minerva-root .bs-popover-top > .arrow, .minerva-root .bs-popover-auto[x-placement^="top"] > .arrow { bottom: calc(-0.5rem - 1px); }\n.minerva-root .bs-popover-top > .arrow::before, .minerva-root .bs-popover-auto[x-placement^="top"] > .arrow::before { bottom: 0; border-width: 0.5rem 0.5rem 0; border-top-color: rgba(0, 0, 0, 0.25); }\n.minerva-root .bs-popover-top > .arrow::after, .minerva-root .bs-popover-auto[x-placement^="top"] > .arrow::after { bottom: 1px; border-width: 0.5rem 0.5rem 0; border-top-color: #fff; }\n.minerva-root .bs-popover-right, .minerva-root .bs-popover-auto[x-placement^="right"] { margin-left: 0.5rem; }\n.minerva-root .bs-popover-right > .arrow, .minerva-root .bs-popover-auto[x-placement^="right"] > .arrow { left: calc(-0.5rem - 1px); width: 0.5rem; height: 1rem; margin: 0.3rem 0; }\n.minerva-root .bs-popover-right > .arrow::before, .minerva-root .bs-popover-auto[x-placement^="right"] > .arrow::before { left: 0; border-width: 0.5rem 0.5rem 0.5rem 0; border-right-color: rgba(0, 0, 0, 0.25); }\n.minerva-root .bs-popover-right > .arrow::after, .minerva-root .bs-popover-auto[x-placement^="right"] > .arrow::after { left: 1px; border-width: 0.5rem 0.5rem 0.5rem 0; border-right-color: #fff; }\n.minerva-root .bs-popover-bottom, .minerva-root .bs-popover-auto[x-placement^="bottom"] { margin-top: 0.5rem; }\n.minerva-root .bs-popover-bottom > .arrow, .minerva-root .bs-popover-auto[x-placement^="bottom"] > .arrow { top: calc(-0.5rem - 1px); }\n.minerva-root .bs-popover-bottom > .arrow::before, .minerva-root .bs-popover-auto[x-placement^="bottom"] > .arrow::before { top: 0; border-width: 0 0.5rem 0.5rem 0.5rem; border-bottom-color: rgba(0, 0, 0, 0.25); }\n.minerva-root .bs-popover-bottom > .arrow::after, .minerva-root .bs-popover-auto[x-placement^="bottom"] > .arrow::after { top: 1px; border-width: 0 0.5rem 0.5rem 0.5rem; border-bottom-color: #fff; }\n.minerva-root .bs-popover-bottom .popover-header::before, .minerva-root .bs-popover-auto[x-placement^="bottom"] .popover-header::before { position: absolute; top: 0; left: 50%; display: block; width: 1rem; margin-left: -0.5rem; content: ""; border-bottom: 1px solid #f7f7f7; }\n.minerva-root .bs-popover-left, .minerva-root .bs-popover-auto[x-placement^="left"] { margin-right: 0.5rem; }\n.minerva-root .bs-popover-left > .arrow, .minerva-root .bs-popover-auto[x-placement^="left"] > .arrow { right: calc(-0.5rem - 1px); width: 0.5rem; height: 1rem; margin: 0.3rem 0; }\n.minerva-root .bs-popover-left > .arrow::before, .minerva-root .bs-popover-auto[x-placement^="left"] > .arrow::before { right: 0; border-width: 0.5rem 0 0.5rem 0.5rem; border-left-color: rgba(0, 0, 0, 0.25); }\n.minerva-root .bs-popover-left > .arrow::after, .minerva-root .bs-popover-auto[x-placement^="left"] > .arrow::after { right: 1px; border-width: 0.5rem 0 0.5rem 0.5rem; border-left-color: #fff; }\n.minerva-root .popover-header { padding: 0.5rem 0.75rem; margin-bottom: 0; font-size: 1rem; background-color: #f7f7f7; border-bottom: 1px solid #ebebeb; border-top-left-radius: calc(0.3rem - 1px); border-top-right-radius: calc(0.3rem - 1px); }\n.minerva-root .popover-header:empty { display: none; }\n.minerva-root .popover-body { padding: 0.5rem 0.75rem; color: #212529; }\n.minerva-root .carousel { position: relative; }\n.minerva-root .carousel.pointer-event { touch-action: pan-y; }\n.minerva-root .carousel-inner { position: relative; width: 100%; overflow: hidden; }\n.minerva-root .carousel-inner::after { display: block; clear: both; content: ""; }\n.minerva-root .carousel-item { position: relative; display: none; float: left; width: 100%; margin-right: -100%; backface-visibility: hidden; transition: transform 0.6s ease-in-out; }\n@media (prefers-reduced-motion: reduce) { .minerva-root .carousel-item { transition: none; } }\n.minerva-root .carousel-item.active, .minerva-root .carousel-item-next, .minerva-root .carousel-item-prev { display: block; }\n.minerva-root .carousel-item-next:not(.carousel-item-left), .minerva-root .active.carousel-item-right { transform: translateX(100%); }\n.minerva-root .carousel-item-prev:not(.carousel-item-right), .minerva-root .active.carousel-item-left { transform: translateX(-100%); }\n.minerva-root .carousel-fade .carousel-item { opacity: 0; transition-property: opacity; transform: none; }\n.minerva-root .carousel-fade .carousel-item.active, .minerva-root .carousel-fade .carousel-item-next.carousel-item-left, .minerva-root .carousel-fade .carousel-item-prev.carousel-item-right { z-index: 1; opacity: 1; }\n.minerva-root .carousel-fade .active.carousel-item-left, .minerva-root .carousel-fade .active.carousel-item-right { z-index: 0; opacity: 0; transition: opacity 0s 0.6s; }\n@media (prefers-reduced-motion: reduce) { .minerva-root .carousel-fade .active.carousel-item-left, .minerva-root .carousel-fade .active.carousel-item-right { transition: none; } }\n.minerva-root .carousel-control-prev, .minerva-root .carousel-control-next { position: absolute; top: 0; bottom: 0; z-index: 1; display: flex; align-items: center; justify-content: center; width: 15%; color: #fff; text-align: center; opacity: 0.5; transition: opacity 0.15s ease; }\n@media (prefers-reduced-motion: reduce) { .minerva-root .carousel-control-prev, .minerva-root .carousel-control-next { transition: none; } }\n.minerva-root .carousel-control-prev:hover, .minerva-root .carousel-control-prev:focus, .minerva-root .carousel-control-next:hover, .minerva-root .carousel-control-next:focus { color: #fff; text-decoration: none; outline: 0; opacity: 0.9; }\n.minerva-root .carousel-control-prev { left: 0; }\n.minerva-root .carousel-control-next { right: 0; }\n.minerva-root .carousel-control-prev-icon, .minerva-root .carousel-control-next-icon { display: inline-block; width: 20px; height: 20px; background: no-repeat 50% / 100% 100%; }\n.minerva-root .carousel-control-prev-icon { background-image: url("data:image/svg+xml,%3csvg xmlns=\'http://www.w3.org/2000/svg\' fill=\'%23fff\' width=\'8\' height=\'8\' viewBox=\'0 0 8 8\'%3e%3cpath d=\'M5.25 0l-4 4 4 4 1.5-1.5L4.25 4l2.5-2.5L5.25 0z\'/%3e%3c/svg%3e"); }\n.minerva-root .carousel-control-next-icon { background-image: url("data:image/svg+xml,%3csvg xmlns=\'http://www.w3.org/2000/svg\' fill=\'%23fff\' width=\'8\' height=\'8\' viewBox=\'0 0 8 8\'%3e%3cpath d=\'M2.75 0l-1.5 1.5L3.75 4l-2.5 2.5L2.75 8l4-4-4-4z\'/%3e%3c/svg%3e"); }\n.minerva-root .carousel-indicators { position: absolute; right: 0; bottom: 0; left: 0; z-index: 15; display: flex; justify-content: center; padding-left: 0; margin-right: 15%; margin-left: 15%; list-style: none; }\n.minerva-root .carousel-indicators li { box-sizing: content-box; flex: 0 1 auto; width: 30px; height: 3px; margin-right: 3px; margin-left: 3px; text-indent: -999px; cursor: pointer; background-color: #fff; background-clip: padding-box; border-top: 10px solid transparent; border-bottom: 10px solid transparent; opacity: .5; transition: opacity 0.6s ease; }\n@media (prefers-reduced-motion: reduce) { .minerva-root .carousel-indicators li { transition: none; } }\n.minerva-root .carousel-indicators .active { opacity: 1; }\n.minerva-root .carousel-caption { position: absolute; right: 15%; bottom: 20px; left: 15%; z-index: 10; padding-top: 20px; padding-bottom: 20px; color: #fff; text-align: center; }\n@keyframes spinner-border { to { transform: rotate(360deg); } }\n.minerva-root .spinner-border { display: inline-block; width: 2rem; height: 2rem; vertical-align: text-bottom; border: 0.25em solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spinner-border .75s linear infinite; }\n.minerva-root .spinner-border-sm { width: 1rem; height: 1rem; border-width: 0.2em; }\n@keyframes spinner-grow { 0% { transform: scale(0); }\n 50% { opacity: 1; } }\n.minerva-root .spinner-grow { display: inline-block; width: 2rem; height: 2rem; vertical-align: text-bottom; background-color: currentColor; border-radius: 50%; opacity: 0; animation: spinner-grow .75s linear infinite; }\n.minerva-root .spinner-grow-sm { width: 1rem; height: 1rem; }\n.minerva-root .align-baseline { vertical-align: baseline !important; }\n.minerva-root .align-top { vertical-align: top !important; }\n.minerva-root .align-middle { vertical-align: middle !important; }\n.minerva-root .align-bottom { vertical-align: bottom !important; }\n.minerva-root .align-text-bottom { vertical-align: text-bottom !important; }\n.minerva-root .align-text-top { vertical-align: text-top !important; }\n.minerva-root .bg-primary { background-color: #007bff !important; }\n.minerva-root a.bg-primary:hover, .minerva-root a.bg-primary:focus, .minerva-root button.bg-primary:hover, .minerva-root button.bg-primary:focus { background-color: #0062cc !important; }\n.minerva-root .bg-secondary { background-color: #6c757d !important; }\n.minerva-root a.bg-secondary:hover, .minerva-root a.bg-secondary:focus, .minerva-root button.bg-secondary:hover, .minerva-root button.bg-secondary:focus { background-color: #545b62 !important; }\n.minerva-root .bg-success { background-color: #28a745 !important; }\n.minerva-root a.bg-success:hover, .minerva-root a.bg-success:focus, .minerva-root button.bg-success:hover, .minerva-root button.bg-success:focus { background-color: #1e7e34 !important; }\n.minerva-root .bg-info { background-color: #17a2b8 !important; }\n.minerva-root a.bg-info:hover, .minerva-root a.bg-info:focus, .minerva-root button.bg-info:hover, .minerva-root button.bg-info:focus { background-color: #117a8b !important; }\n.minerva-root .bg-warning { background-color: #ffc107 !important; }\n.minerva-root a.bg-warning:hover, .minerva-root a.bg-warning:focus, .minerva-root button.bg-warning:hover, .minerva-root button.bg-warning:focus { background-color: #d39e00 !important; }\n.minerva-root .bg-danger { background-color: #dc3545 !important; }\n.minerva-root a.bg-danger:hover, .minerva-root a.bg-danger:focus, .minerva-root button.bg-danger:hover, .minerva-root button.bg-danger:focus { background-color: #bd2130 !important; }\n.minerva-root .bg-light { background-color: #f8f9fa !important; }\n.minerva-root a.bg-light:hover, .minerva-root a.bg-light:focus, .minerva-root button.bg-light:hover, .minerva-root button.bg-light:focus { background-color: #dae0e5 !important; }\n.minerva-root .bg-dark { background-color: #343a40 !important; }\n.minerva-root a.bg-dark:hover, .minerva-root a.bg-dark:focus, .minerva-root button.bg-dark:hover, .minerva-root button.bg-dark:focus { background-color: #1d2124 !important; }\n.minerva-root .bg-white { background-color: #fff !important; }\n.minerva-root .bg-transparent { background-color: transparent !important; }\n.minerva-root .border { border: 1px solid #dee2e6 !important; }\n.minerva-root .border-top { border-top: 1px solid #dee2e6 !important; }\n.minerva-root .border-right { border-right: 1px solid #dee2e6 !important; }\n.minerva-root .border-bottom { border-bottom: 1px solid #dee2e6 !important; }\n.minerva-root .border-left { border-left: 1px solid #dee2e6 !important; }\n.minerva-root .border-0 { border: 0 !important; }\n.minerva-root .border-top-0 { border-top: 0 !important; }\n.minerva-root .border-right-0 { border-right: 0 !important; }\n.minerva-root .border-bottom-0 { border-bottom: 0 !important; }\n.minerva-root .border-left-0 { border-left: 0 !important; }\n.minerva-root .border-primary { border-color: #007bff !important; }\n.minerva-root .border-secondary { border-color: #6c757d !important; }\n.minerva-root .border-success { border-color: #28a745 !important; }\n.minerva-root .border-info { border-color: #17a2b8 !important; }\n.minerva-root .border-warning { border-color: #ffc107 !important; }\n.minerva-root .border-danger { border-color: #dc3545 !important; }\n.minerva-root .border-light { border-color: #f8f9fa !important; }\n.minerva-root .border-dark { border-color: #343a40 !important; }\n.minerva-root .border-white { border-color: #fff !important; }\n.minerva-root .rounded-sm { border-radius: 0.2rem !important; }\n.minerva-root .rounded { border-radius: 0.25rem !important; }\n.minerva-root .rounded-top { border-top-left-radius: 0.25rem !important; border-top-right-radius: 0.25rem !important; }\n.minerva-root .rounded-right { border-top-right-radius: 0.25rem !important; border-bottom-right-radius: 0.25rem !important; }\n.minerva-root .rounded-bottom { border-bottom-right-radius: 0.25rem !important; border-bottom-left-radius: 0.25rem !important; }\n.minerva-root .rounded-left { border-top-left-radius: 0.25rem !important; border-bottom-left-radius: 0.25rem !important; }\n.minerva-root .rounded-lg { border-radius: 0.3rem !important; }\n.minerva-root .rounded-circle { border-radius: 50% !important; }\n.minerva-root .rounded-pill { border-radius: 50rem !important; }\n.minerva-root .rounded-0 { border-radius: 0 !important; }\n.minerva-root .clearfix::after { display: block; clear: both; content: ""; }\n.minerva-root .d-none { display: none !important; }\n.minerva-root .d-inline { display: inline !important; }\n.minerva-root .d-inline-block { display: inline-block !important; }\n.minerva-root .d-block { display: block !important; }\n.minerva-root .d-table { display: table !important; }\n.minerva-root .d-table-row { display: table-row !important; }\n.minerva-root .d-table-cell { display: table-cell !important; }\n.minerva-root .d-flex { display: flex !important; }\n.minerva-root .d-inline-flex { display: inline-flex !important; }\n@media (min-width: 576px) { .minerva-root .d-sm-none { display: none !important; }\n .minerva-root .d-sm-inline { display: inline !important; }\n .minerva-root .d-sm-inline-block { display: inline-block !important; }\n .minerva-root .d-sm-block { display: block !important; }\n .minerva-root .d-sm-table { display: table !important; }\n .minerva-root .d-sm-table-row { display: table-row !important; }\n .minerva-root .d-sm-table-cell { display: table-cell !important; }\n .minerva-root .d-sm-flex { display: flex !important; }\n .minerva-root .d-sm-inline-flex { display: inline-flex !important; } }\n@media (min-width: 768px) { .minerva-root .d-md-none { display: none !important; }\n .minerva-root .d-md-inline { display: inline !important; }\n .minerva-root .d-md-inline-block { display: inline-block !important; }\n .minerva-root .d-md-block { display: block !important; }\n .minerva-root .d-md-table { display: table !important; }\n .minerva-root .d-md-table-row { display: table-row !important; }\n .minerva-root .d-md-table-cell { display: table-cell !important; }\n .minerva-root .d-md-flex { display: flex !important; }\n .minerva-root .d-md-inline-flex { display: inline-flex !important; } }\n@media (min-width: 992px) { .minerva-root .d-lg-none { display: none !important; }\n .minerva-root .d-lg-inline { display: inline !important; }\n .minerva-root .d-lg-inline-block { display: inline-block !important; }\n .minerva-root .d-lg-block { display: block !important; }\n .minerva-root .d-lg-table { display: table !important; }\n .minerva-root .d-lg-table-row { display: table-row !important; }\n .minerva-root .d-lg-table-cell { display: table-cell !important; }\n .minerva-root .d-lg-flex { display: flex !important; }\n .minerva-root .d-lg-inline-flex { display: inline-flex !important; } }\n@media (min-width: 1200px) { .minerva-root .d-xl-none { display: none !important; }\n .minerva-root .d-xl-inline { display: inline !important; }\n .minerva-root .d-xl-inline-block { display: inline-block !important; }\n .minerva-root .d-xl-block { display: block !important; }\n .minerva-root .d-xl-table { display: table !important; }\n .minerva-root .d-xl-table-row { display: table-row !important; }\n .minerva-root .d-xl-table-cell { display: table-cell !important; }\n .minerva-root .d-xl-flex { display: flex !important; }\n .minerva-root .d-xl-inline-flex { display: inline-flex !important; } }\n@media print { .minerva-root .d-print-none { display: none !important; }\n .minerva-root .d-print-inline { display: inline !important; }\n .minerva-root .d-print-inline-block { display: inline-block !important; }\n .minerva-root .d-print-block { display: block !important; }\n .minerva-root .d-print-table { display: table !important; }\n .minerva-root .d-print-table-row { display: table-row !important; }\n .minerva-root .d-print-table-cell { display: table-cell !important; }\n .minerva-root .d-print-flex { display: flex !important; }\n .minerva-root .d-print-inline-flex { display: inline-flex !important; } }\n.minerva-root .embed-responsive { position: relative; display: block; width: 100%; padding: 0; overflow: hidden; }\n.minerva-root .embed-responsive::before { display: block; content: ""; }\n.minerva-root .embed-responsive .embed-responsive-item, .minerva-root .embed-responsive iframe, .minerva-root .embed-responsive embed, .minerva-root .embed-responsive object, .minerva-root .embed-responsive video { position: absolute; top: 0; bottom: 0; left: 0; width: 100%; height: 100%; border: 0; }\n.minerva-root .embed-responsive-21by9::before { padding-top: 42.8571428571%; }\n.minerva-root .embed-responsive-16by9::before { padding-top: 56.25%; }\n.minerva-root .embed-responsive-4by3::before { padding-top: 75%; }\n.minerva-root .embed-responsive-1by1::before { padding-top: 100%; }\n.minerva-root .flex-row { flex-direction: row !important; }\n.minerva-root .flex-column { flex-direction: column !important; }\n.minerva-root .flex-row-reverse { flex-direction: row-reverse !important; }\n.minerva-root .flex-column-reverse { flex-direction: column-reverse !important; }\n.minerva-root .flex-wrap { flex-wrap: wrap !important; }\n.minerva-root .flex-nowrap { flex-wrap: nowrap !important; }\n.minerva-root .flex-wrap-reverse { flex-wrap: wrap-reverse !important; }\n.minerva-root .flex-fill { flex: 1 1 auto !important; }\n.minerva-root .flex-grow-0 { flex-grow: 0 !important; }\n.minerva-root .flex-grow-1 { flex-grow: 1 !important; }\n.minerva-root .flex-shrink-0 { flex-shrink: 0 !important; }\n.minerva-root .flex-shrink-1 { flex-shrink: 1 !important; }\n.minerva-root .justify-content-start { justify-content: flex-start !important; }\n.minerva-root .justify-content-end { justify-content: flex-end !important; }\n.minerva-root .justify-content-center { justify-content: center !important; }\n.minerva-root .justify-content-between { justify-content: space-between !important; }\n.minerva-root .justify-content-around { justify-content: space-around !important; }\n.minerva-root .align-items-start { align-items: flex-start !important; }\n.minerva-root .align-items-end { align-items: flex-end !important; }\n.minerva-root .align-items-center { align-items: center !important; }\n.minerva-root .align-items-baseline { align-items: baseline !important; }\n.minerva-root .align-items-stretch { align-items: stretch !important; }\n.minerva-root .align-content-start { align-content: flex-start !important; }\n.minerva-root .align-content-end { align-content: flex-end !important; }\n.minerva-root .align-content-center { align-content: center !important; }\n.minerva-root .align-content-between { align-content: space-between !important; }\n.minerva-root .align-content-around { align-content: space-around !important; }\n.minerva-root .align-content-stretch { align-content: stretch !important; }\n.minerva-root .align-self-auto { align-self: auto !important; }\n.minerva-root .align-self-start { align-self: flex-start !important; }\n.minerva-root .align-self-end { align-self: flex-end !important; }\n.minerva-root .align-self-center { align-self: center !important; }\n.minerva-root .align-self-baseline { align-self: baseline !important; }\n.minerva-root .align-self-stretch { align-self: stretch !important; }\n@media (min-width: 576px) { .minerva-root .flex-sm-row { flex-direction: row !important; }\n .minerva-root .flex-sm-column { flex-direction: column !important; }\n .minerva-root .flex-sm-row-reverse { flex-direction: row-reverse !important; }\n .minerva-root .flex-sm-column-reverse { flex-direction: column-reverse !important; }\n .minerva-root .flex-sm-wrap { flex-wrap: wrap !important; }\n .minerva-root .flex-sm-nowrap { flex-wrap: nowrap !important; }\n .minerva-root .flex-sm-wrap-reverse { flex-wrap: wrap-reverse !important; }\n .minerva-root .flex-sm-fill { flex: 1 1 auto !important; }\n .minerva-root .flex-sm-grow-0 { flex-grow: 0 !important; }\n .minerva-root .flex-sm-grow-1 { flex-grow: 1 !important; }\n .minerva-root .flex-sm-shrink-0 { flex-shrink: 0 !important; }\n .minerva-root .flex-sm-shrink-1 { flex-shrink: 1 !important; }\n .minerva-root .justify-content-sm-start { justify-content: flex-start !important; }\n .minerva-root .justify-content-sm-end { justify-content: flex-end !important; }\n .minerva-root .justify-content-sm-center { justify-content: center !important; }\n .minerva-root .justify-content-sm-between { justify-content: space-between !important; }\n .minerva-root .justify-content-sm-around { justify-content: space-around !important; }\n .minerva-root .align-items-sm-start { align-items: flex-start !important; }\n .minerva-root .align-items-sm-end { align-items: flex-end !important; }\n .minerva-root .align-items-sm-center { align-items: center !important; }\n .minerva-root .align-items-sm-baseline { align-items: baseline !important; }\n .minerva-root .align-items-sm-stretch { align-items: stretch !important; }\n .minerva-root .align-content-sm-start { align-content: flex-start !important; }\n .minerva-root .align-content-sm-end { align-content: flex-end !important; }\n .minerva-root .align-content-sm-center { align-content: center !important; }\n .minerva-root .align-content-sm-between { align-content: space-between !important; }\n .minerva-root .align-content-sm-around { align-content: space-around !important; }\n .minerva-root .align-content-sm-stretch { align-content: stretch !important; }\n .minerva-root .align-self-sm-auto { align-self: auto !important; }\n .minerva-root .align-self-sm-start { align-self: flex-start !important; }\n .minerva-root .align-self-sm-end { align-self: flex-end !important; }\n .minerva-root .align-self-sm-center { align-self: center !important; }\n .minerva-root .align-self-sm-baseline { align-self: baseline !important; }\n .minerva-root .align-self-sm-stretch { align-self: stretch !important; } }\n@media (min-width: 768px) { .minerva-root .flex-md-row { flex-direction: row !important; }\n .minerva-root .flex-md-column { flex-direction: column !important; }\n .minerva-root .flex-md-row-reverse { flex-direction: row-reverse !important; }\n .minerva-root .flex-md-column-reverse { flex-direction: column-reverse !important; }\n .minerva-root .flex-md-wrap { flex-wrap: wrap !important; }\n .minerva-root .flex-md-nowrap { flex-wrap: nowrap !important; }\n .minerva-root .flex-md-wrap-reverse { flex-wrap: wrap-reverse !important; }\n .minerva-root .flex-md-fill { flex: 1 1 auto !important; }\n .minerva-root .flex-md-grow-0 { flex-grow: 0 !important; }\n .minerva-root .flex-md-grow-1 { flex-grow: 1 !important; }\n .minerva-root .flex-md-shrink-0 { flex-shrink: 0 !important; }\n .minerva-root .flex-md-shrink-1 { flex-shrink: 1 !important; }\n .minerva-root .justify-content-md-start { justify-content: flex-start !important; }\n .minerva-root .justify-content-md-end { justify-content: flex-end !important; }\n .minerva-root .justify-content-md-center { justify-content: center !important; }\n .minerva-root .justify-content-md-between { justify-content: space-between !important; }\n .minerva-root .justify-content-md-around { justify-content: space-around !important; }\n .minerva-root .align-items-md-start { align-items: flex-start !important; }\n .minerva-root .align-items-md-end { align-items: flex-end !important; }\n .minerva-root .align-items-md-center { align-items: center !important; }\n .minerva-root .align-items-md-baseline { align-items: baseline !important; }\n .minerva-root .align-items-md-stretch { align-items: stretch !important; }\n .minerva-root .align-content-md-start { align-content: flex-start !important; }\n .minerva-root .align-content-md-end { align-content: flex-end !important; }\n .minerva-root .align-content-md-center { align-content: center !important; }\n .minerva-root .align-content-md-between { align-content: space-between !important; }\n .minerva-root .align-content-md-around { align-content: space-around !important; }\n .minerva-root .align-content-md-stretch { align-content: stretch !important; }\n .minerva-root .align-self-md-auto { align-self: auto !important; }\n .minerva-root .align-self-md-start { align-self: flex-start !important; }\n .minerva-root .align-self-md-end { align-self: flex-end !important; }\n .minerva-root .align-self-md-center { align-self: center !important; }\n .minerva-root .align-self-md-baseline { align-self: baseline !important; }\n .minerva-root .align-self-md-stretch { align-self: stretch !important; } }\n@media (min-width: 992px) { .minerva-root .flex-lg-row { flex-direction: row !important; }\n .minerva-root .flex-lg-column { flex-direction: column !important; }\n .minerva-root .flex-lg-row-reverse { flex-direction: row-reverse !important; }\n .minerva-root .flex-lg-column-reverse { flex-direction: column-reverse !important; }\n .minerva-root .flex-lg-wrap { flex-wrap: wrap !important; }\n .minerva-root .flex-lg-nowrap { flex-wrap: nowrap !important; }\n .minerva-root .flex-lg-wrap-reverse { flex-wrap: wrap-reverse !important; }\n .minerva-root .flex-lg-fill { flex: 1 1 auto !important; }\n .minerva-root .flex-lg-grow-0 { flex-grow: 0 !important; }\n .minerva-root .flex-lg-grow-1 { flex-grow: 1 !important; }\n .minerva-root .flex-lg-shrink-0 { flex-shrink: 0 !important; }\n .minerva-root .flex-lg-shrink-1 { flex-shrink: 1 !important; }\n .minerva-root .justify-content-lg-start { justify-content: flex-start !important; }\n .minerva-root .justify-content-lg-end { justify-content: flex-end !important; }\n .minerva-root .justify-content-lg-center { justify-content: center !important; }\n .minerva-root .justify-content-lg-between { justify-content: space-between !important; }\n .minerva-root .justify-content-lg-around { justify-content: space-around !important; }\n .minerva-root .align-items-lg-start { align-items: flex-start !important; }\n .minerva-root .align-items-lg-end { align-items: flex-end !important; }\n .minerva-root .align-items-lg-center { align-items: center !important; }\n .minerva-root .align-items-lg-baseline { align-items: baseline !important; }\n .minerva-root .align-items-lg-stretch { align-items: stretch !important; }\n .minerva-root .align-content-lg-start { align-content: flex-start !important; }\n .minerva-root .align-content-lg-end { align-content: flex-end !important; }\n .minerva-root .align-content-lg-center { align-content: center !important; }\n .minerva-root .align-content-lg-between { align-content: space-between !important; }\n .minerva-root .align-content-lg-around { align-content: space-around !important; }\n .minerva-root .align-content-lg-stretch { align-content: stretch !important; }\n .minerva-root .align-self-lg-auto { align-self: auto !important; }\n .minerva-root .align-self-lg-start { align-self: flex-start !important; }\n .minerva-root .align-self-lg-end { align-self: flex-end !important; }\n .minerva-root .align-self-lg-center { align-self: center !important; }\n .minerva-root .align-self-lg-baseline { align-self: baseline !important; }\n .minerva-root .align-self-lg-stretch { align-self: stretch !important; } }\n@media (min-width: 1200px) { .minerva-root .flex-xl-row { flex-direction: row !important; }\n .minerva-root .flex-xl-column { flex-direction: column !important; }\n .minerva-root .flex-xl-row-reverse { flex-direction: row-reverse !important; }\n .minerva-root .flex-xl-column-reverse { flex-direction: column-reverse !important; }\n .minerva-root .flex-xl-wrap { flex-wrap: wrap !important; }\n .minerva-root .flex-xl-nowrap { flex-wrap: nowrap !important; }\n .minerva-root .flex-xl-wrap-reverse { flex-wrap: wrap-reverse !important; }\n .minerva-root .flex-xl-fill { flex: 1 1 auto !important; }\n .minerva-root .flex-xl-grow-0 { flex-grow: 0 !important; }\n .minerva-root .flex-xl-grow-1 { flex-grow: 1 !important; }\n .minerva-root .flex-xl-shrink-0 { flex-shrink: 0 !important; }\n .minerva-root .flex-xl-shrink-1 { flex-shrink: 1 !important; }\n .minerva-root .justify-content-xl-start { justify-content: flex-start !important; }\n .minerva-root .justify-content-xl-end { justify-content: flex-end !important; }\n .minerva-root .justify-content-xl-center { justify-content: center !important; }\n .minerva-root .justify-content-xl-between { justify-content: space-between !important; }\n .minerva-root .justify-content-xl-around { justify-content: space-around !important; }\n .minerva-root .align-items-xl-start { align-items: flex-start !important; }\n .minerva-root .align-items-xl-end { align-items: flex-end !important; }\n .minerva-root .align-items-xl-center { align-items: center !important; }\n .minerva-root .align-items-xl-baseline { align-items: baseline !important; }\n .minerva-root .align-items-xl-stretch { align-items: stretch !important; }\n .minerva-root .align-content-xl-start { align-content: flex-start !important; }\n .minerva-root .align-content-xl-end { align-content: flex-end !important; }\n .minerva-root .align-content-xl-center { align-content: center !important; }\n .minerva-root .align-content-xl-between { align-content: space-between !important; }\n .minerva-root .align-content-xl-around { align-content: space-around !important; }\n .minerva-root .align-content-xl-stretch { align-content: stretch !important; }\n .minerva-root .align-self-xl-auto { align-self: auto !important; }\n .minerva-root .align-self-xl-start { align-self: flex-start !important; }\n .minerva-root .align-self-xl-end { align-self: flex-end !important; }\n .minerva-root .align-self-xl-center { align-self: center !important; }\n .minerva-root .align-self-xl-baseline { align-self: baseline !important; }\n .minerva-root .align-self-xl-stretch { align-self: stretch !important; } }\n.minerva-root .float-left { float: left !important; }\n.minerva-root .float-right { float: right !important; }\n.minerva-root .float-none { float: none !important; }\n@media (min-width: 576px) { .minerva-root .float-sm-left { float: left !important; }\n .minerva-root .float-sm-right { float: right !important; }\n .minerva-root .float-sm-none { float: none !important; } }\n@media (min-width: 768px) { .minerva-root .float-md-left { float: left !important; }\n .minerva-root .float-md-right { float: right !important; }\n .minerva-root .float-md-none { float: none !important; } }\n@media (min-width: 992px) { .minerva-root .float-lg-left { float: left !important; }\n .minerva-root .float-lg-right { float: right !important; }\n .minerva-root .float-lg-none { float: none !important; } }\n@media (min-width: 1200px) { .minerva-root .float-xl-left { float: left !important; }\n .minerva-root .float-xl-right { float: right !important; }\n .minerva-root .float-xl-none { float: none !important; } }\n.minerva-root .overflow-auto { overflow: auto !important; }\n.minerva-root .overflow-hidden { overflow: hidden !important; }\n.minerva-root .position-static { position: static !important; }\n.minerva-root .position-relative { position: relative !important; }\n.minerva-root .position-absolute { position: absolute !important; }\n.minerva-root .position-fixed { position: fixed !important; }\n.minerva-root .position-sticky { position: sticky !important; }\n.minerva-root .fixed-top { position: fixed; top: 0; right: 0; left: 0; z-index: 1030; }\n.minerva-root .fixed-bottom { position: fixed; right: 0; bottom: 0; left: 0; z-index: 1030; }\n@supports (position: sticky) { .minerva-root .sticky-top { position: sticky; top: 0; z-index: 1020; } }\n.minerva-root .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }\n.minerva-root .sr-only-focusable:active, .minerva-root .sr-only-focusable:focus { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; }\n.minerva-root .shadow-sm { box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important; }\n.minerva-root .shadow { box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important; }\n.minerva-root .shadow-lg { box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important; }\n.minerva-root .shadow-none { box-shadow: none !important; }\n.minerva-root .w-25 { width: 25% !important; }\n.minerva-root .w-50 { width: 50% !important; }\n.minerva-root .w-75 { width: 75% !important; }\n.minerva-root .w-100 { width: 100% !important; }\n.minerva-root .w-auto { width: auto !important; }\n.minerva-root .h-25 { height: 25% !important; }\n.minerva-root .h-50 { height: 50% !important; }\n.minerva-root .h-75 { height: 75% !important; }\n.minerva-root .h-100 { height: 100% !important; }\n.minerva-root .h-auto { height: auto !important; }\n.minerva-root .mw-100 { max-width: 100% !important; }\n.minerva-root .mh-100 { max-height: 100% !important; }\n.minerva-root .min-vw-100 { min-width: 100vw !important; }\n.minerva-root .min-vh-100 { min-height: 100vh !important; }\n.minerva-root .vw-100 { width: 100vw !important; }\n.minerva-root .vh-100 { height: 100vh !important; }\n.minerva-root .stretched-link::after { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 1; pointer-events: auto; content: ""; background-color: rgba(0, 0, 0, 0); }\n.minerva-root .m-0 { margin: 0 !important; }\n.minerva-root .mt-0, .minerva-root .my-0 { margin-top: 0 !important; }\n.minerva-root .mr-0, .minerva-root .mx-0 { margin-right: 0 !important; }\n.minerva-root .mb-0, .minerva-root .my-0 { margin-bottom: 0 !important; }\n.minerva-root .ml-0, .minerva-root .mx-0 { margin-left: 0 !important; }\n.minerva-root .m-1 { margin: 0.25rem !important; }\n.minerva-root .mt-1, .minerva-root .my-1 { margin-top: 0.25rem !important; }\n.minerva-root .mr-1, .minerva-root .mx-1 { margin-right: 0.25rem !important; }\n.minerva-root .mb-1, .minerva-root .my-1 { margin-bottom: 0.25rem !important; }\n.minerva-root .ml-1, .minerva-root .mx-1 { margin-left: 0.25rem !important; }\n.minerva-root .m-2 { margin: 0.5rem !important; }\n.minerva-root .mt-2, .minerva-root .my-2 { margin-top: 0.5rem !important; }\n.minerva-root .mr-2, .minerva-root .mx-2 { margin-right: 0.5rem !important; }\n.minerva-root .mb-2, .minerva-root .my-2 { margin-bottom: 0.5rem !important; }\n.minerva-root .ml-2, .minerva-root .mx-2 { margin-left: 0.5rem !important; }\n.minerva-root .m-3 { margin: 1rem !important; }\n.minerva-root .mt-3, .minerva-root .my-3 { margin-top: 1rem !important; }\n.minerva-root .mr-3, .minerva-root .mx-3 { margin-right: 1rem !important; }\n.minerva-root .mb-3, .minerva-root .my-3 { margin-bottom: 1rem !important; }\n.minerva-root .ml-3, .minerva-root .mx-3 { margin-left: 1rem !important; }\n.minerva-root .m-4 { margin: 1.5rem !important; }\n.minerva-root .mt-4, .minerva-root .my-4 { margin-top: 1.5rem !important; }\n.minerva-root .mr-4, .minerva-root .mx-4 { margin-right: 1.5rem !important; }\n.minerva-root .mb-4, .minerva-root .my-4 { margin-bottom: 1.5rem !important; }\n.minerva-root .ml-4, .minerva-root .mx-4 { margin-left: 1.5rem !important; }\n.minerva-root .m-5 { margin: 3rem !important; }\n.minerva-root .mt-5, .minerva-root .my-5 { margin-top: 3rem !important; }\n.minerva-root .mr-5, .minerva-root .mx-5 { margin-right: 3rem !important; }\n.minerva-root .mb-5, .minerva-root .my-5 { margin-bottom: 3rem !important; }\n.minerva-root .ml-5, .minerva-root .mx-5 { margin-left: 3rem !important; }\n.minerva-root .p-0 { padding: 0 !important; }\n.minerva-root .pt-0, .minerva-root .py-0 { padding-top: 0 !important; }\n.minerva-root .pr-0, .minerva-root .px-0 { padding-right: 0 !important; }\n.minerva-root .pb-0, .minerva-root .py-0 { padding-bottom: 0 !important; }\n.minerva-root .pl-0, .minerva-root .px-0 { padding-left: 0 !important; }\n.minerva-root .p-1 { padding: 0.25rem !important; }\n.minerva-root .pt-1, .minerva-root .py-1 { padding-top: 0.25rem !important; }\n.minerva-root .pr-1, .minerva-root .px-1 { padding-right: 0.25rem !important; }\n.minerva-root .pb-1, .minerva-root .py-1 { padding-bottom: 0.25rem !important; }\n.minerva-root .pl-1, .minerva-root .px-1 { padding-left: 0.25rem !important; }\n.minerva-root .p-2 { padding: 0.5rem !important; }\n.minerva-root .pt-2, .minerva-root .py-2 { padding-top: 0.5rem !important; }\n.minerva-root .pr-2, .minerva-root .px-2 { padding-right: 0.5rem !important; }\n.minerva-root .pb-2, .minerva-root .py-2 { padding-bottom: 0.5rem !important; }\n.minerva-root .pl-2, .minerva-root .px-2 { padding-left: 0.5rem !important; }\n.minerva-root .p-3 { padding: 1rem !important; }\n.minerva-root .pt-3, .minerva-root .py-3 { padding-top: 1rem !important; }\n.minerva-root .pr-3, .minerva-root .px-3 { padding-right: 1rem !important; }\n.minerva-root .pb-3, .minerva-root .py-3 { padding-bottom: 1rem !important; }\n.minerva-root .pl-3, .minerva-root .px-3 { padding-left: 1rem !important; }\n.minerva-root .p-4 { padding: 1.5rem !important; }\n.minerva-root .pt-4, .minerva-root .py-4 { padding-top: 1.5rem !important; }\n.minerva-root .pr-4, .minerva-root .px-4 { padding-right: 1.5rem !important; }\n.minerva-root .pb-4, .minerva-root .py-4 { padding-bottom: 1.5rem !important; }\n.minerva-root .pl-4, .minerva-root .px-4 { padding-left: 1.5rem !important; }\n.minerva-root .p-5 { padding: 3rem !important; }\n.minerva-root .pt-5, .minerva-root .py-5 { padding-top: 3rem !important; }\n.minerva-root .pr-5, .minerva-root .px-5 { padding-right: 3rem !important; }\n.minerva-root .pb-5, .minerva-root .py-5 { padding-bottom: 3rem !important; }\n.minerva-root .pl-5, .minerva-root .px-5 { padding-left: 3rem !important; }\n.minerva-root .m-n1 { margin: -0.25rem !important; }\n.minerva-root .mt-n1, .minerva-root .my-n1 { margin-top: -0.25rem !important; }\n.minerva-root .mr-n1, .minerva-root .mx-n1 { margin-right: -0.25rem !important; }\n.minerva-root .mb-n1, .minerva-root .my-n1 { margin-bottom: -0.25rem !important; }\n.minerva-root .ml-n1, .minerva-root .mx-n1 { margin-left: -0.25rem !important; }\n.minerva-root .m-n2 { margin: -0.5rem !important; }\n.minerva-root .mt-n2, .minerva-root .my-n2 { margin-top: -0.5rem !important; }\n.minerva-root .mr-n2, .minerva-root .mx-n2 { margin-right: -0.5rem !important; }\n.minerva-root .mb-n2, .minerva-root .my-n2 { margin-bottom: -0.5rem !important; }\n.minerva-root .ml-n2, .minerva-root .mx-n2 { margin-left: -0.5rem !important; }\n.minerva-root .m-n3 { margin: -1rem !important; }\n.minerva-root .mt-n3, .minerva-root .my-n3 { margin-top: -1rem !important; }\n.minerva-root .mr-n3, .minerva-root .mx-n3 { margin-right: -1rem !important; }\n.minerva-root .mb-n3, .minerva-root .my-n3 { margin-bottom: -1rem !important; }\n.minerva-root .ml-n3, .minerva-root .mx-n3 { margin-left: -1rem !important; }\n.minerva-root .m-n4 { margin: -1.5rem !important; }\n.minerva-root .mt-n4, .minerva-root .my-n4 { margin-top: -1.5rem !important; }\n.minerva-root .mr-n4, .minerva-root .mx-n4 { margin-right: -1.5rem !important; }\n.minerva-root .mb-n4, .minerva-root .my-n4 { margin-bottom: -1.5rem !important; }\n.minerva-root .ml-n4, .minerva-root .mx-n4 { margin-left: -1.5rem !important; }\n.minerva-root .m-n5 { margin: -3rem !important; }\n.minerva-root .mt-n5, .minerva-root .my-n5 { margin-top: -3rem !important; }\n.minerva-root .mr-n5, .minerva-root .mx-n5 { margin-right: -3rem !important; }\n.minerva-root .mb-n5, .minerva-root .my-n5 { margin-bottom: -3rem !important; }\n.minerva-root .ml-n5, .minerva-root .mx-n5 { margin-left: -3rem !important; }\n.minerva-root .m-auto { margin: auto !important; }\n.minerva-root .mt-auto, .minerva-root .my-auto { margin-top: auto !important; }\n.minerva-root .mr-auto, .minerva-root .mx-auto { margin-right: auto !important; }\n.minerva-root .mb-auto, .minerva-root .my-auto { margin-bottom: auto !important; }\n.minerva-root .ml-auto, .minerva-root .mx-auto { margin-left: auto !important; }\n@media (min-width: 576px) { .minerva-root .m-sm-0 { margin: 0 !important; }\n .minerva-root .mt-sm-0, .minerva-root .my-sm-0 { margin-top: 0 !important; }\n .minerva-root .mr-sm-0, .minerva-root .mx-sm-0 { margin-right: 0 !important; }\n .minerva-root .mb-sm-0, .minerva-root .my-sm-0 { margin-bottom: 0 !important; }\n .minerva-root .ml-sm-0, .minerva-root .mx-sm-0 { margin-left: 0 !important; }\n .minerva-root .m-sm-1 { margin: 0.25rem !important; }\n .minerva-root .mt-sm-1, .minerva-root .my-sm-1 { margin-top: 0.25rem !important; }\n .minerva-root .mr-sm-1, .minerva-root .mx-sm-1 { margin-right: 0.25rem !important; }\n .minerva-root .mb-sm-1, .minerva-root .my-sm-1 { margin-bottom: 0.25rem !important; }\n .minerva-root .ml-sm-1, .minerva-root .mx-sm-1 { margin-left: 0.25rem !important; }\n .minerva-root .m-sm-2 { margin: 0.5rem !important; }\n .minerva-root .mt-sm-2, .minerva-root .my-sm-2 { margin-top: 0.5rem !important; }\n .minerva-root .mr-sm-2, .minerva-root .mx-sm-2 { margin-right: 0.5rem !important; }\n .minerva-root .mb-sm-2, .minerva-root .my-sm-2 { margin-bottom: 0.5rem !important; }\n .minerva-root .ml-sm-2, .minerva-root .mx-sm-2 { margin-left: 0.5rem !important; }\n .minerva-root .m-sm-3 { margin: 1rem !important; }\n .minerva-root .mt-sm-3, .minerva-root .my-sm-3 { margin-top: 1rem !important; }\n .minerva-root .mr-sm-3, .minerva-root .mx-sm-3 { margin-right: 1rem !important; }\n .minerva-root .mb-sm-3, .minerva-root .my-sm-3 { margin-bottom: 1rem !important; }\n .minerva-root .ml-sm-3, .minerva-root .mx-sm-3 { margin-left: 1rem !important; }\n .minerva-root .m-sm-4 { margin: 1.5rem !important; }\n .minerva-root .mt-sm-4, .minerva-root .my-sm-4 { margin-top: 1.5rem !important; }\n .minerva-root .mr-sm-4, .minerva-root .mx-sm-4 { margin-right: 1.5rem !important; }\n .minerva-root .mb-sm-4, .minerva-root .my-sm-4 { margin-bottom: 1.5rem !important; }\n .minerva-root .ml-sm-4, .minerva-root .mx-sm-4 { margin-left: 1.5rem !important; }\n .minerva-root .m-sm-5 { margin: 3rem !important; }\n .minerva-root .mt-sm-5, .minerva-root .my-sm-5 { margin-top: 3rem !important; }\n .minerva-root .mr-sm-5, .minerva-root .mx-sm-5 { margin-right: 3rem !important; }\n .minerva-root .mb-sm-5, .minerva-root .my-sm-5 { margin-bottom: 3rem !important; }\n .minerva-root .ml-sm-5, .minerva-root .mx-sm-5 { margin-left: 3rem !important; }\n .minerva-root .p-sm-0 { padding: 0 !important; }\n .minerva-root .pt-sm-0, .minerva-root .py-sm-0 { padding-top: 0 !important; }\n .minerva-root .pr-sm-0, .minerva-root .px-sm-0 { padding-right: 0 !important; }\n .minerva-root .pb-sm-0, .minerva-root .py-sm-0 { padding-bottom: 0 !important; }\n .minerva-root .pl-sm-0, .minerva-root .px-sm-0 { padding-left: 0 !important; }\n .minerva-root .p-sm-1 { padding: 0.25rem !important; }\n .minerva-root .pt-sm-1, .minerva-root .py-sm-1 { padding-top: 0.25rem !important; }\n .minerva-root .pr-sm-1, .minerva-root .px-sm-1 { padding-right: 0.25rem !important; }\n .minerva-root .pb-sm-1, .minerva-root .py-sm-1 { padding-bottom: 0.25rem !important; }\n .minerva-root .pl-sm-1, .minerva-root .px-sm-1 { padding-left: 0.25rem !important; }\n .minerva-root .p-sm-2 { padding: 0.5rem !important; }\n .minerva-root .pt-sm-2, .minerva-root .py-sm-2 { padding-top: 0.5rem !important; }\n .minerva-root .pr-sm-2, .minerva-root .px-sm-2 { padding-right: 0.5rem !important; }\n .minerva-root .pb-sm-2, .minerva-root .py-sm-2 { padding-bottom: 0.5rem !important; }\n .minerva-root .pl-sm-2, .minerva-root .px-sm-2 { padding-left: 0.5rem !important; }\n .minerva-root .p-sm-3 { padding: 1rem !important; }\n .minerva-root .pt-sm-3, .minerva-root .py-sm-3 { padding-top: 1rem !important; }\n .minerva-root .pr-sm-3, .minerva-root .px-sm-3 { padding-right: 1rem !important; }\n .minerva-root .pb-sm-3, .minerva-root .py-sm-3 { padding-bottom: 1rem !important; }\n .minerva-root .pl-sm-3, .minerva-root .px-sm-3 { padding-left: 1rem !important; }\n .minerva-root .p-sm-4 { padding: 1.5rem !important; }\n .minerva-root .pt-sm-4, .minerva-root .py-sm-4 { padding-top: 1.5rem !important; }\n .minerva-root .pr-sm-4, .minerva-root .px-sm-4 { padding-right: 1.5rem !important; }\n .minerva-root .pb-sm-4, .minerva-root .py-sm-4 { padding-bottom: 1.5rem !important; }\n .minerva-root .pl-sm-4, .minerva-root .px-sm-4 { padding-left: 1.5rem !important; }\n .minerva-root .p-sm-5 { padding: 3rem !important; }\n .minerva-root .pt-sm-5, .minerva-root .py-sm-5 { padding-top: 3rem !important; }\n .minerva-root .pr-sm-5, .minerva-root .px-sm-5 { padding-right: 3rem !important; }\n .minerva-root .pb-sm-5, .minerva-root .py-sm-5 { padding-bottom: 3rem !important; }\n .minerva-root .pl-sm-5, .minerva-root .px-sm-5 { padding-left: 3rem !important; }\n .minerva-root .m-sm-n1 { margin: -0.25rem !important; }\n .minerva-root .mt-sm-n1, .minerva-root .my-sm-n1 { margin-top: -0.25rem !important; }\n .minerva-root .mr-sm-n1, .minerva-root .mx-sm-n1 { margin-right: -0.25rem !important; }\n .minerva-root .mb-sm-n1, .minerva-root .my-sm-n1 { margin-bottom: -0.25rem !important; }\n .minerva-root .ml-sm-n1, .minerva-root .mx-sm-n1 { margin-left: -0.25rem !important; }\n .minerva-root .m-sm-n2 { margin: -0.5rem !important; }\n .minerva-root .mt-sm-n2, .minerva-root .my-sm-n2 { margin-top: -0.5rem !important; }\n .minerva-root .mr-sm-n2, .minerva-root .mx-sm-n2 { margin-right: -0.5rem !important; }\n .minerva-root .mb-sm-n2, .minerva-root .my-sm-n2 { margin-bottom: -0.5rem !important; }\n .minerva-root .ml-sm-n2, .minerva-root .mx-sm-n2 { margin-left: -0.5rem !important; }\n .minerva-root .m-sm-n3 { margin: -1rem !important; }\n .minerva-root .mt-sm-n3, .minerva-root .my-sm-n3 { margin-top: -1rem !important; }\n .minerva-root .mr-sm-n3, .minerva-root .mx-sm-n3 { margin-right: -1rem !important; }\n .minerva-root .mb-sm-n3, .minerva-root .my-sm-n3 { margin-bottom: -1rem !important; }\n .minerva-root .ml-sm-n3, .minerva-root .mx-sm-n3 { margin-left: -1rem !important; }\n .minerva-root .m-sm-n4 { margin: -1.5rem !important; }\n .minerva-root .mt-sm-n4, .minerva-root .my-sm-n4 { margin-top: -1.5rem !important; }\n .minerva-root .mr-sm-n4, .minerva-root .mx-sm-n4 { margin-right: -1.5rem !important; }\n .minerva-root .mb-sm-n4, .minerva-root .my-sm-n4 { margin-bottom: -1.5rem !important; }\n .minerva-root .ml-sm-n4, .minerva-root .mx-sm-n4 { margin-left: -1.5rem !important; }\n .minerva-root .m-sm-n5 { margin: -3rem !important; }\n .minerva-root .mt-sm-n5, .minerva-root .my-sm-n5 { margin-top: -3rem !important; }\n .minerva-root .mr-sm-n5, .minerva-root .mx-sm-n5 { margin-right: -3rem !important; }\n .minerva-root .mb-sm-n5, .minerva-root .my-sm-n5 { margin-bottom: -3rem !important; }\n .minerva-root .ml-sm-n5, .minerva-root .mx-sm-n5 { margin-left: -3rem !important; }\n .minerva-root .m-sm-auto { margin: auto !important; }\n .minerva-root .mt-sm-auto, .minerva-root .my-sm-auto { margin-top: auto !important; }\n .minerva-root .mr-sm-auto, .minerva-root .mx-sm-auto { margin-right: auto !important; }\n .minerva-root .mb-sm-auto, .minerva-root .my-sm-auto { margin-bottom: auto !important; }\n .minerva-root .ml-sm-auto, .minerva-root .mx-sm-auto { margin-left: auto !important; } }\n@media (min-width: 768px) { .minerva-root .m-md-0 { margin: 0 !important; }\n .minerva-root .mt-md-0, .minerva-root .my-md-0 { margin-top: 0 !important; }\n .minerva-root .mr-md-0, .minerva-root .mx-md-0 { margin-right: 0 !important; }\n .minerva-root .mb-md-0, .minerva-root .my-md-0 { margin-bottom: 0 !important; }\n .minerva-root .ml-md-0, .minerva-root .mx-md-0 { margin-left: 0 !important; }\n .minerva-root .m-md-1 { margin: 0.25rem !important; }\n .minerva-root .mt-md-1, .minerva-root .my-md-1 { margin-top: 0.25rem !important; }\n .minerva-root .mr-md-1, .minerva-root .mx-md-1 { margin-right: 0.25rem !important; }\n .minerva-root .mb-md-1, .minerva-root .my-md-1 { margin-bottom: 0.25rem !important; }\n .minerva-root .ml-md-1, .minerva-root .mx-md-1 { margin-left: 0.25rem !important; }\n .minerva-root .m-md-2 { margin: 0.5rem !important; }\n .minerva-root .mt-md-2, .minerva-root .my-md-2 { margin-top: 0.5rem !important; }\n .minerva-root .mr-md-2, .minerva-root .mx-md-2 { margin-right: 0.5rem !important; }\n .minerva-root .mb-md-2, .minerva-root .my-md-2 { margin-bottom: 0.5rem !important; }\n .minerva-root .ml-md-2, .minerva-root .mx-md-2 { margin-left: 0.5rem !important; }\n .minerva-root .m-md-3 { margin: 1rem !important; }\n .minerva-root .mt-md-3, .minerva-root .my-md-3 { margin-top: 1rem !important; }\n .minerva-root .mr-md-3, .minerva-root .mx-md-3 { margin-right: 1rem !important; }\n .minerva-root .mb-md-3, .minerva-root .my-md-3 { margin-bottom: 1rem !important; }\n .minerva-root .ml-md-3, .minerva-root .mx-md-3 { margin-left: 1rem !important; }\n .minerva-root .m-md-4 { margin: 1.5rem !important; }\n .minerva-root .mt-md-4, .minerva-root .my-md-4 { margin-top: 1.5rem !important; }\n .minerva-root .mr-md-4, .minerva-root .mx-md-4 { margin-right: 1.5rem !important; }\n .minerva-root .mb-md-4, .minerva-root .my-md-4 { margin-bottom: 1.5rem !important; }\n .minerva-root .ml-md-4, .minerva-root .mx-md-4 { margin-left: 1.5rem !important; }\n .minerva-root .m-md-5 { margin: 3rem !important; }\n .minerva-root .mt-md-5, .minerva-root .my-md-5 { margin-top: 3rem !important; }\n .minerva-root .mr-md-5, .minerva-root .mx-md-5 { margin-right: 3rem !important; }\n .minerva-root .mb-md-5, .minerva-root .my-md-5 { margin-bottom: 3rem !important; }\n .minerva-root .ml-md-5, .minerva-root .mx-md-5 { margin-left: 3rem !important; }\n .minerva-root .p-md-0 { padding: 0 !important; }\n .minerva-root .pt-md-0, .minerva-root .py-md-0 { padding-top: 0 !important; }\n .minerva-root .pr-md-0, .minerva-root .px-md-0 { padding-right: 0 !important; }\n .minerva-root .pb-md-0, .minerva-root .py-md-0 { padding-bottom: 0 !important; }\n .minerva-root .pl-md-0, .minerva-root .px-md-0 { padding-left: 0 !important; }\n .minerva-root .p-md-1 { padding: 0.25rem !important; }\n .minerva-root .pt-md-1, .minerva-root .py-md-1 { padding-top: 0.25rem !important; }\n .minerva-root .pr-md-1, .minerva-root .px-md-1 { padding-right: 0.25rem !important; }\n .minerva-root .pb-md-1, .minerva-root .py-md-1 { padding-bottom: 0.25rem !important; }\n .minerva-root .pl-md-1, .minerva-root .px-md-1 { padding-left: 0.25rem !important; }\n .minerva-root .p-md-2 { padding: 0.5rem !important; }\n .minerva-root .pt-md-2, .minerva-root .py-md-2 { padding-top: 0.5rem !important; }\n .minerva-root .pr-md-2, .minerva-root .px-md-2 { padding-right: 0.5rem !important; }\n .minerva-root .pb-md-2, .minerva-root .py-md-2 { padding-bottom: 0.5rem !important; }\n .minerva-root .pl-md-2, .minerva-root .px-md-2 { padding-left: 0.5rem !important; }\n .minerva-root .p-md-3 { padding: 1rem !important; }\n .minerva-root .pt-md-3, .minerva-root .py-md-3 { padding-top: 1rem !important; }\n .minerva-root .pr-md-3, .minerva-root .px-md-3 { padding-right: 1rem !important; }\n .minerva-root .pb-md-3, .minerva-root .py-md-3 { padding-bottom: 1rem !important; }\n .minerva-root .pl-md-3, .minerva-root .px-md-3 { padding-left: 1rem !important; }\n .minerva-root .p-md-4 { padding: 1.5rem !important; }\n .minerva-root .pt-md-4, .minerva-root .py-md-4 { padding-top: 1.5rem !important; }\n .minerva-root .pr-md-4, .minerva-root .px-md-4 { padding-right: 1.5rem !important; }\n .minerva-root .pb-md-4, .minerva-root .py-md-4 { padding-bottom: 1.5rem !important; }\n .minerva-root .pl-md-4, .minerva-root .px-md-4 { padding-left: 1.5rem !important; }\n .minerva-root .p-md-5 { padding: 3rem !important; }\n .minerva-root .pt-md-5, .minerva-root .py-md-5 { padding-top: 3rem !important; }\n .minerva-root .pr-md-5, .minerva-root .px-md-5 { padding-right: 3rem !important; }\n .minerva-root .pb-md-5, .minerva-root .py-md-5 { padding-bottom: 3rem !important; }\n .minerva-root .pl-md-5, .minerva-root .px-md-5 { padding-left: 3rem !important; }\n .minerva-root .m-md-n1 { margin: -0.25rem !important; }\n .minerva-root .mt-md-n1, .minerva-root .my-md-n1 { margin-top: -0.25rem !important; }\n .minerva-root .mr-md-n1, .minerva-root .mx-md-n1 { margin-right: -0.25rem !important; }\n .minerva-root .mb-md-n1, .minerva-root .my-md-n1 { margin-bottom: -0.25rem !important; }\n .minerva-root .ml-md-n1, .minerva-root .mx-md-n1 { margin-left: -0.25rem !important; }\n .minerva-root .m-md-n2 { margin: -0.5rem !important; }\n .minerva-root .mt-md-n2, .minerva-root .my-md-n2 { margin-top: -0.5rem !important; }\n .minerva-root .mr-md-n2, .minerva-root .mx-md-n2 { margin-right: -0.5rem !important; }\n .minerva-root .mb-md-n2, .minerva-root .my-md-n2 { margin-bottom: -0.5rem !important; }\n .minerva-root .ml-md-n2, .minerva-root .mx-md-n2 { margin-left: -0.5rem !important; }\n .minerva-root .m-md-n3 { margin: -1rem !important; }\n .minerva-root .mt-md-n3, .minerva-root .my-md-n3 { margin-top: -1rem !important; }\n .minerva-root .mr-md-n3, .minerva-root .mx-md-n3 { margin-right: -1rem !important; }\n .minerva-root .mb-md-n3, .minerva-root .my-md-n3 { margin-bottom: -1rem !important; }\n .minerva-root .ml-md-n3, .minerva-root .mx-md-n3 { margin-left: -1rem !important; }\n .minerva-root .m-md-n4 { margin: -1.5rem !important; }\n .minerva-root .mt-md-n4, .minerva-root .my-md-n4 { margin-top: -1.5rem !important; }\n .minerva-root .mr-md-n4, .minerva-root .mx-md-n4 { margin-right: -1.5rem !important; }\n .minerva-root .mb-md-n4, .minerva-root .my-md-n4 { margin-bottom: -1.5rem !important; }\n .minerva-root .ml-md-n4, .minerva-root .mx-md-n4 { margin-left: -1.5rem !important; }\n .minerva-root .m-md-n5 { margin: -3rem !important; }\n .minerva-root .mt-md-n5, .minerva-root .my-md-n5 { margin-top: -3rem !important; }\n .minerva-root .mr-md-n5, .minerva-root .mx-md-n5 { margin-right: -3rem !important; }\n .minerva-root .mb-md-n5, .minerva-root .my-md-n5 { margin-bottom: -3rem !important; }\n .minerva-root .ml-md-n5, .minerva-root .mx-md-n5 { margin-left: -3rem !important; }\n .minerva-root .m-md-auto { margin: auto !important; }\n .minerva-root .mt-md-auto, .minerva-root .my-md-auto { margin-top: auto !important; }\n .minerva-root .mr-md-auto, .minerva-root .mx-md-auto { margin-right: auto !important; }\n .minerva-root .mb-md-auto, .minerva-root .my-md-auto { margin-bottom: auto !important; }\n .minerva-root .ml-md-auto, .minerva-root .mx-md-auto { margin-left: auto !important; } }\n@media (min-width: 992px) { .minerva-root .m-lg-0 { margin: 0 !important; }\n .minerva-root .mt-lg-0, .minerva-root .my-lg-0 { margin-top: 0 !important; }\n .minerva-root .mr-lg-0, .minerva-root .mx-lg-0 { margin-right: 0 !important; }\n .minerva-root .mb-lg-0, .minerva-root .my-lg-0 { margin-bottom: 0 !important; }\n .minerva-root .ml-lg-0, .minerva-root .mx-lg-0 { margin-left: 0 !important; }\n .minerva-root .m-lg-1 { margin: 0.25rem !important; }\n .minerva-root .mt-lg-1, .minerva-root .my-lg-1 { margin-top: 0.25rem !important; }\n .minerva-root .mr-lg-1, .minerva-root .mx-lg-1 { margin-right: 0.25rem !important; }\n .minerva-root .mb-lg-1, .minerva-root .my-lg-1 { margin-bottom: 0.25rem !important; }\n .minerva-root .ml-lg-1, .minerva-root .mx-lg-1 { margin-left: 0.25rem !important; }\n .minerva-root .m-lg-2 { margin: 0.5rem !important; }\n .minerva-root .mt-lg-2, .minerva-root .my-lg-2 { margin-top: 0.5rem !important; }\n .minerva-root .mr-lg-2, .minerva-root .mx-lg-2 { margin-right: 0.5rem !important; }\n .minerva-root .mb-lg-2, .minerva-root .my-lg-2 { margin-bottom: 0.5rem !important; }\n .minerva-root .ml-lg-2, .minerva-root .mx-lg-2 { margin-left: 0.5rem !important; }\n .minerva-root .m-lg-3 { margin: 1rem !important; }\n .minerva-root .mt-lg-3, .minerva-root .my-lg-3 { margin-top: 1rem !important; }\n .minerva-root .mr-lg-3, .minerva-root .mx-lg-3 { margin-right: 1rem !important; }\n .minerva-root .mb-lg-3, .minerva-root .my-lg-3 { margin-bottom: 1rem !important; }\n .minerva-root .ml-lg-3, .minerva-root .mx-lg-3 { margin-left: 1rem !important; }\n .minerva-root .m-lg-4 { margin: 1.5rem !important; }\n .minerva-root .mt-lg-4, .minerva-root .my-lg-4 { margin-top: 1.5rem !important; }\n .minerva-root .mr-lg-4, .minerva-root .mx-lg-4 { margin-right: 1.5rem !important; }\n .minerva-root .mb-lg-4, .minerva-root .my-lg-4 { margin-bottom: 1.5rem !important; }\n .minerva-root .ml-lg-4, .minerva-root .mx-lg-4 { margin-left: 1.5rem !important; }\n .minerva-root .m-lg-5 { margin: 3rem !important; }\n .minerva-root .mt-lg-5, .minerva-root .my-lg-5 { margin-top: 3rem !important; }\n .minerva-root .mr-lg-5, .minerva-root .mx-lg-5 { margin-right: 3rem !important; }\n .minerva-root .mb-lg-5, .minerva-root .my-lg-5 { margin-bottom: 3rem !important; }\n .minerva-root .ml-lg-5, .minerva-root .mx-lg-5 { margin-left: 3rem !important; }\n .minerva-root .p-lg-0 { padding: 0 !important; }\n .minerva-root .pt-lg-0, .minerva-root .py-lg-0 { padding-top: 0 !important; }\n .minerva-root .pr-lg-0, .minerva-root .px-lg-0 { padding-right: 0 !important; }\n .minerva-root .pb-lg-0, .minerva-root .py-lg-0 { padding-bottom: 0 !important; }\n .minerva-root .pl-lg-0, .minerva-root .px-lg-0 { padding-left: 0 !important; }\n .minerva-root .p-lg-1 { padding: 0.25rem !important; }\n .minerva-root .pt-lg-1, .minerva-root .py-lg-1 { padding-top: 0.25rem !important; }\n .minerva-root .pr-lg-1, .minerva-root .px-lg-1 { padding-right: 0.25rem !important; }\n .minerva-root .pb-lg-1, .minerva-root .py-lg-1 { padding-bottom: 0.25rem !important; }\n .minerva-root .pl-lg-1, .minerva-root .px-lg-1 { padding-left: 0.25rem !important; }\n .minerva-root .p-lg-2 { padding: 0.5rem !important; }\n .minerva-root .pt-lg-2, .minerva-root .py-lg-2 { padding-top: 0.5rem !important; }\n .minerva-root .pr-lg-2, .minerva-root .px-lg-2 { padding-right: 0.5rem !important; }\n .minerva-root .pb-lg-2, .minerva-root .py-lg-2 { padding-bottom: 0.5rem !important; }\n .minerva-root .pl-lg-2, .minerva-root .px-lg-2 { padding-left: 0.5rem !important; }\n .minerva-root .p-lg-3 { padding: 1rem !important; }\n .minerva-root .pt-lg-3, .minerva-root .py-lg-3 { padding-top: 1rem !important; }\n .minerva-root .pr-lg-3, .minerva-root .px-lg-3 { padding-right: 1rem !important; }\n .minerva-root .pb-lg-3, .minerva-root .py-lg-3 { padding-bottom: 1rem !important; }\n .minerva-root .pl-lg-3, .minerva-root .px-lg-3 { padding-left: 1rem !important; }\n .minerva-root .p-lg-4 { padding: 1.5rem !important; }\n .minerva-root .pt-lg-4, .minerva-root .py-lg-4 { padding-top: 1.5rem !important; }\n .minerva-root .pr-lg-4, .minerva-root .px-lg-4 { padding-right: 1.5rem !important; }\n .minerva-root .pb-lg-4, .minerva-root .py-lg-4 { padding-bottom: 1.5rem !important; }\n .minerva-root .pl-lg-4, .minerva-root .px-lg-4 { padding-left: 1.5rem !important; }\n .minerva-root .p-lg-5 { padding: 3rem !important; }\n .minerva-root .pt-lg-5, .minerva-root .py-lg-5 { padding-top: 3rem !important; }\n .minerva-root .pr-lg-5, .minerva-root .px-lg-5 { padding-right: 3rem !important; }\n .minerva-root .pb-lg-5, .minerva-root .py-lg-5 { padding-bottom: 3rem !important; }\n .minerva-root .pl-lg-5, .minerva-root .px-lg-5 { padding-left: 3rem !important; }\n .minerva-root .m-lg-n1 { margin: -0.25rem !important; }\n .minerva-root .mt-lg-n1, .minerva-root .my-lg-n1 { margin-top: -0.25rem !important; }\n .minerva-root .mr-lg-n1, .minerva-root .mx-lg-n1 { margin-right: -0.25rem !important; }\n .minerva-root .mb-lg-n1, .minerva-root .my-lg-n1 { margin-bottom: -0.25rem !important; }\n .minerva-root .ml-lg-n1, .minerva-root .mx-lg-n1 { margin-left: -0.25rem !important; }\n .minerva-root .m-lg-n2 { margin: -0.5rem !important; }\n .minerva-root .mt-lg-n2, .minerva-root .my-lg-n2 { margin-top: -0.5rem !important; }\n .minerva-root .mr-lg-n2, .minerva-root .mx-lg-n2 { margin-right: -0.5rem !important; }\n .minerva-root .mb-lg-n2, .minerva-root .my-lg-n2 { margin-bottom: -0.5rem !important; }\n .minerva-root .ml-lg-n2, .minerva-root .mx-lg-n2 { margin-left: -0.5rem !important; }\n .minerva-root .m-lg-n3 { margin: -1rem !important; }\n .minerva-root .mt-lg-n3, .minerva-root .my-lg-n3 { margin-top: -1rem !important; }\n .minerva-root .mr-lg-n3, .minerva-root .mx-lg-n3 { margin-right: -1rem !important; }\n .minerva-root .mb-lg-n3, .minerva-root .my-lg-n3 { margin-bottom: -1rem !important; }\n .minerva-root .ml-lg-n3, .minerva-root .mx-lg-n3 { margin-left: -1rem !important; }\n .minerva-root .m-lg-n4 { margin: -1.5rem !important; }\n .minerva-root .mt-lg-n4, .minerva-root .my-lg-n4 { margin-top: -1.5rem !important; }\n .minerva-root .mr-lg-n4, .minerva-root .mx-lg-n4 { margin-right: -1.5rem !important; }\n .minerva-root .mb-lg-n4, .minerva-root .my-lg-n4 { margin-bottom: -1.5rem !important; }\n .minerva-root .ml-lg-n4, .minerva-root .mx-lg-n4 { margin-left: -1.5rem !important; }\n .minerva-root .m-lg-n5 { margin: -3rem !important; }\n .minerva-root .mt-lg-n5, .minerva-root .my-lg-n5 { margin-top: -3rem !important; }\n .minerva-root .mr-lg-n5, .minerva-root .mx-lg-n5 { margin-right: -3rem !important; }\n .minerva-root .mb-lg-n5, .minerva-root .my-lg-n5 { margin-bottom: -3rem !important; }\n .minerva-root .ml-lg-n5, .minerva-root .mx-lg-n5 { margin-left: -3rem !important; }\n .minerva-root .m-lg-auto { margin: auto !important; }\n .minerva-root .mt-lg-auto, .minerva-root .my-lg-auto { margin-top: auto !important; }\n .minerva-root .mr-lg-auto, .minerva-root .mx-lg-auto { margin-right: auto !important; }\n .minerva-root .mb-lg-auto, .minerva-root .my-lg-auto { margin-bottom: auto !important; }\n .minerva-root .ml-lg-auto, .minerva-root .mx-lg-auto { margin-left: auto !important; } }\n@media (min-width: 1200px) { .minerva-root .m-xl-0 { margin: 0 !important; }\n .minerva-root .mt-xl-0, .minerva-root .my-xl-0 { margin-top: 0 !important; }\n .minerva-root .mr-xl-0, .minerva-root .mx-xl-0 { margin-right: 0 !important; }\n .minerva-root .mb-xl-0, .minerva-root .my-xl-0 { margin-bottom: 0 !important; }\n .minerva-root .ml-xl-0, .minerva-root .mx-xl-0 { margin-left: 0 !important; }\n .minerva-root .m-xl-1 { margin: 0.25rem !important; }\n .minerva-root .mt-xl-1, .minerva-root .my-xl-1 { margin-top: 0.25rem !important; }\n .minerva-root .mr-xl-1, .minerva-root .mx-xl-1 { margin-right: 0.25rem !important; }\n .minerva-root .mb-xl-1, .minerva-root .my-xl-1 { margin-bottom: 0.25rem !important; }\n .minerva-root .ml-xl-1, .minerva-root .mx-xl-1 { margin-left: 0.25rem !important; }\n .minerva-root .m-xl-2 { margin: 0.5rem !important; }\n .minerva-root .mt-xl-2, .minerva-root .my-xl-2 { margin-top: 0.5rem !important; }\n .minerva-root .mr-xl-2, .minerva-root .mx-xl-2 { margin-right: 0.5rem !important; }\n .minerva-root .mb-xl-2, .minerva-root .my-xl-2 { margin-bottom: 0.5rem !important; }\n .minerva-root .ml-xl-2, .minerva-root .mx-xl-2 { margin-left: 0.5rem !important; }\n .minerva-root .m-xl-3 { margin: 1rem !important; }\n .minerva-root .mt-xl-3, .minerva-root .my-xl-3 { margin-top: 1rem !important; }\n .minerva-root .mr-xl-3, .minerva-root .mx-xl-3 { margin-right: 1rem !important; }\n .minerva-root .mb-xl-3, .minerva-root .my-xl-3 { margin-bottom: 1rem !important; }\n .minerva-root .ml-xl-3, .minerva-root .mx-xl-3 { margin-left: 1rem !important; }\n .minerva-root .m-xl-4 { margin: 1.5rem !important; }\n .minerva-root .mt-xl-4, .minerva-root .my-xl-4 { margin-top: 1.5rem !important; }\n .minerva-root .mr-xl-4, .minerva-root .mx-xl-4 { margin-right: 1.5rem !important; }\n .minerva-root .mb-xl-4, .minerva-root .my-xl-4 { margin-bottom: 1.5rem !important; }\n .minerva-root .ml-xl-4, .minerva-root .mx-xl-4 { margin-left: 1.5rem !important; }\n .minerva-root .m-xl-5 { margin: 3rem !important; }\n .minerva-root .mt-xl-5, .minerva-root .my-xl-5 { margin-top: 3rem !important; }\n .minerva-root .mr-xl-5, .minerva-root .mx-xl-5 { margin-right: 3rem !important; }\n .minerva-root .mb-xl-5, .minerva-root .my-xl-5 { margin-bottom: 3rem !important; }\n .minerva-root .ml-xl-5, .minerva-root .mx-xl-5 { margin-left: 3rem !important; }\n .minerva-root .p-xl-0 { padding: 0 !important; }\n .minerva-root .pt-xl-0, .minerva-root .py-xl-0 { padding-top: 0 !important; }\n .minerva-root .pr-xl-0, .minerva-root .px-xl-0 { padding-right: 0 !important; }\n .minerva-root .pb-xl-0, .minerva-root .py-xl-0 { padding-bottom: 0 !important; }\n .minerva-root .pl-xl-0, .minerva-root .px-xl-0 { padding-left: 0 !important; }\n .minerva-root .p-xl-1 { padding: 0.25rem !important; }\n .minerva-root .pt-xl-1, .minerva-root .py-xl-1 { padding-top: 0.25rem !important; }\n .minerva-root .pr-xl-1, .minerva-root .px-xl-1 { padding-right: 0.25rem !important; }\n .minerva-root .pb-xl-1, .minerva-root .py-xl-1 { padding-bottom: 0.25rem !important; }\n .minerva-root .pl-xl-1, .minerva-root .px-xl-1 { padding-left: 0.25rem !important; }\n .minerva-root .p-xl-2 { padding: 0.5rem !important; }\n .minerva-root .pt-xl-2, .minerva-root .py-xl-2 { padding-top: 0.5rem !important; }\n .minerva-root .pr-xl-2, .minerva-root .px-xl-2 { padding-right: 0.5rem !important; }\n .minerva-root .pb-xl-2, .minerva-root .py-xl-2 { padding-bottom: 0.5rem !important; }\n .minerva-root .pl-xl-2, .minerva-root .px-xl-2 { padding-left: 0.5rem !important; }\n .minerva-root .p-xl-3 { padding: 1rem !important; }\n .minerva-root .pt-xl-3, .minerva-root .py-xl-3 { padding-top: 1rem !important; }\n .minerva-root .pr-xl-3, .minerva-root .px-xl-3 { padding-right: 1rem !important; }\n .minerva-root .pb-xl-3, .minerva-root .py-xl-3 { padding-bottom: 1rem !important; }\n .minerva-root .pl-xl-3, .minerva-root .px-xl-3 { padding-left: 1rem !important; }\n .minerva-root .p-xl-4 { padding: 1.5rem !important; }\n .minerva-root .pt-xl-4, .minerva-root .py-xl-4 { padding-top: 1.5rem !important; }\n .minerva-root .pr-xl-4, .minerva-root .px-xl-4 { padding-right: 1.5rem !important; }\n .minerva-root .pb-xl-4, .minerva-root .py-xl-4 { padding-bottom: 1.5rem !important; }\n .minerva-root .pl-xl-4, .minerva-root .px-xl-4 { padding-left: 1.5rem !important; }\n .minerva-root .p-xl-5 { padding: 3rem !important; }\n .minerva-root .pt-xl-5, .minerva-root .py-xl-5 { padding-top: 3rem !important; }\n .minerva-root .pr-xl-5, .minerva-root .px-xl-5 { padding-right: 3rem !important; }\n .minerva-root .pb-xl-5, .minerva-root .py-xl-5 { padding-bottom: 3rem !important; }\n .minerva-root .pl-xl-5, .minerva-root .px-xl-5 { padding-left: 3rem !important; }\n .minerva-root .m-xl-n1 { margin: -0.25rem !important; }\n .minerva-root .mt-xl-n1, .minerva-root .my-xl-n1 { margin-top: -0.25rem !important; }\n .minerva-root .mr-xl-n1, .minerva-root .mx-xl-n1 { margin-right: -0.25rem !important; }\n .minerva-root .mb-xl-n1, .minerva-root .my-xl-n1 { margin-bottom: -0.25rem !important; }\n .minerva-root .ml-xl-n1, .minerva-root .mx-xl-n1 { margin-left: -0.25rem !important; }\n .minerva-root .m-xl-n2 { margin: -0.5rem !important; }\n .minerva-root .mt-xl-n2, .minerva-root .my-xl-n2 { margin-top: -0.5rem !important; }\n .minerva-root .mr-xl-n2, .minerva-root .mx-xl-n2 { margin-right: -0.5rem !important; }\n .minerva-root .mb-xl-n2, .minerva-root .my-xl-n2 { margin-bottom: -0.5rem !important; }\n .minerva-root .ml-xl-n2, .minerva-root .mx-xl-n2 { margin-left: -0.5rem !important; }\n .minerva-root .m-xl-n3 { margin: -1rem !important; }\n .minerva-root .mt-xl-n3, .minerva-root .my-xl-n3 { margin-top: -1rem !important; }\n .minerva-root .mr-xl-n3, .minerva-root .mx-xl-n3 { margin-right: -1rem !important; }\n .minerva-root .mb-xl-n3, .minerva-root .my-xl-n3 { margin-bottom: -1rem !important; }\n .minerva-root .ml-xl-n3, .minerva-root .mx-xl-n3 { margin-left: -1rem !important; }\n .minerva-root .m-xl-n4 { margin: -1.5rem !important; }\n .minerva-root .mt-xl-n4, .minerva-root .my-xl-n4 { margin-top: -1.5rem !important; }\n .minerva-root .mr-xl-n4, .minerva-root .mx-xl-n4 { margin-right: -1.5rem !important; }\n .minerva-root .mb-xl-n4, .minerva-root .my-xl-n4 { margin-bottom: -1.5rem !important; }\n .minerva-root .ml-xl-n4, .minerva-root .mx-xl-n4 { margin-left: -1.5rem !important; }\n .minerva-root .m-xl-n5 { margin: -3rem !important; }\n .minerva-root .mt-xl-n5, .minerva-root .my-xl-n5 { margin-top: -3rem !important; }\n .minerva-root .mr-xl-n5, .minerva-root .mx-xl-n5 { margin-right: -3rem !important; }\n .minerva-root .mb-xl-n5, .minerva-root .my-xl-n5 { margin-bottom: -3rem !important; }\n .minerva-root .ml-xl-n5, .minerva-root .mx-xl-n5 { margin-left: -3rem !important; }\n .minerva-root .m-xl-auto { margin: auto !important; }\n .minerva-root .mt-xl-auto, .minerva-root .my-xl-auto { margin-top: auto !important; }\n .minerva-root .mr-xl-auto, .minerva-root .mx-xl-auto { margin-right: auto !important; }\n .minerva-root .mb-xl-auto, .minerva-root .my-xl-auto { margin-bottom: auto !important; }\n .minerva-root .ml-xl-auto, .minerva-root .mx-xl-auto { margin-left: auto !important; } }\n.minerva-root .text-monospace { font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace !important; }\n.minerva-root .text-justify { text-align: justify !important; }\n.minerva-root .text-wrap { white-space: normal !important; }\n.minerva-root .text-nowrap { white-space: nowrap !important; }\n.minerva-root .text-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.minerva-root .text-left { text-align: left !important; }\n.minerva-root .text-right { text-align: right !important; }\n.minerva-root .text-center { text-align: center !important; }\n@media (min-width: 576px) { .minerva-root .text-sm-left { text-align: left !important; }\n .minerva-root .text-sm-right { text-align: right !important; }\n .minerva-root .text-sm-center { text-align: center !important; } }\n@media (min-width: 768px) { .minerva-root .text-md-left { text-align: left !important; }\n .minerva-root .text-md-right { text-align: right !important; }\n .minerva-root .text-md-center { text-align: center !important; } }\n@media (min-width: 992px) { .minerva-root .text-lg-left { text-align: left !important; }\n .minerva-root .text-lg-right { text-align: right !important; }\n .minerva-root .text-lg-center { text-align: center !important; } }\n@media (min-width: 1200px) { .minerva-root .text-xl-left { text-align: left !important; }\n .minerva-root .text-xl-right { text-align: right !important; }\n .minerva-root .text-xl-center { text-align: center !important; } }\n.minerva-root .text-lowercase { text-transform: lowercase !important; }\n.minerva-root .text-uppercase { text-transform: uppercase !important; }\n.minerva-root .text-capitalize { text-transform: capitalize !important; }\n.minerva-root .font-weight-light { font-weight: 300 !important; }\n.minerva-root .font-weight-lighter { font-weight: lighter !important; }\n.minerva-root .font-weight-normal { font-weight: 400 !important; }\n.minerva-root .font-weight-bold { font-weight: 700 !important; }\n.minerva-root .font-weight-bolder { font-weight: bolder !important; }\n.minerva-root .font-italic { font-style: italic !important; }\n.minerva-root .text-white { color: #fff !important; }\n.minerva-root .text-primary { color: #007bff !important; }\n.minerva-root a.text-primary:hover, .minerva-root a.text-primary:focus { color: #0056b3 !important; }\n.minerva-root .text-secondary { color: #6c757d !important; }\n.minerva-root a.text-secondary:hover, .minerva-root a.text-secondary:focus { color: #494f54 !important; }\n.minerva-root .text-success { color: #28a745 !important; }\n.minerva-root a.text-success:hover, .minerva-root a.text-success:focus { color: #19692c !important; }\n.minerva-root .text-info { color: #17a2b8 !important; }\n.minerva-root a.text-info:hover, .minerva-root a.text-info:focus { color: #0f6674 !important; }\n.minerva-root .text-warning { color: #ffc107 !important; }\n.minerva-root a.text-warning:hover, .minerva-root a.text-warning:focus { color: #ba8b00 !important; }\n.minerva-root .text-danger { color: #dc3545 !important; }\n.minerva-root a.text-danger:hover, .minerva-root a.text-danger:focus { color: #a71d2a !important; }\n.minerva-root .text-light { color: #f8f9fa !important; }\n.minerva-root a.text-light:hover, .minerva-root a.text-light:focus { color: #cbd3da !important; }\n.minerva-root .text-dark { color: #343a40 !important; }\n.minerva-root a.text-dark:hover, .minerva-root a.text-dark:focus { color: #121416 !important; }\n.minerva-root .text-body { color: #212529 !important; }\n.minerva-root .text-muted { color: #6c757d !important; }\n.minerva-root .text-black-50 { color: rgba(0, 0, 0, 0.5) !important; }\n.minerva-root .text-white-50 { color: rgba(255, 255, 255, 0.5) !important; }\n.minerva-root .text-hide { font: 0/0 a; color: transparent; text-shadow: none; background-color: transparent; border: 0; }\n.minerva-root .text-decoration-none { text-decoration: none !important; }\n.minerva-root .text-break { word-break: break-word !important; overflow-wrap: break-word !important; }\n.minerva-root .text-reset { color: inherit !important; }\n.minerva-root .visible { visibility: visible !important; }\n.minerva-root .invisible { visibility: hidden !important; }\n@media print { .minerva-root *, .minerva-root *::before, .minerva-root *::after { text-shadow: none !important; box-shadow: none !important; }\n .minerva-root a:not(.btn) { text-decoration: underline; }\n .minerva-root abbr[title]::after { content: " (" attr(title) ")"; }\n .minerva-root pre { white-space: pre-wrap !important; }\n .minerva-root pre, .minerva-root blockquote { border: 1px solid #adb5bd; page-break-inside: avoid; }\n .minerva-root thead { display: table-header-group; }\n .minerva-root tr, .minerva-root img { page-break-inside: avoid; }\n .minerva-root p, .minerva-root h2, .minerva-root h3 { orphans: 3; widows: 3; }\n .minerva-root h2, .minerva-root h3 { page-break-after: avoid; }\n @page { .minerva-root { size: a3; } }\n .minerva-root body { min-width: 992px !important; }\n .minerva-root .container { min-width: 992px !important; }\n .minerva-root .navbar { display: none; }\n .minerva-root .badge { border: 1px solid #000; }\n .minerva-root .table { border-collapse: collapse !important; }\n .minerva-root .table td, .minerva-root .table th { background-color: #fff !important; }\n .minerva-root .table-bordered th, .minerva-root .table-bordered td { border: 1px solid #dee2e6 !important; }\n .minerva-root .table-dark { color: inherit; }\n .minerva-root .table-dark th, .minerva-root .table-dark td, .minerva-root .table-dark thead th, .minerva-root .table-dark tbody + tbody { border-color: #dee2e6; }\n .minerva-root .table .thead-dark th { color: inherit; border-color: #dee2e6; } }\n.minerva-root h1, .minerva-root h2, .minerva-root h3, .minerva-root h4, .minerva-root h5, .minerva-root h6, .minerva-root .h1, .minerva-root .h2, .minerva-root .h3, .minerva-root .h4, .minerva-root .h5, .minerva-root .h6 { margin-top: 3.75rem; }\n.minerva-root svg a:hover text { text-decoration: underline; fill: #0fabff; }\n.minerva-root .banner-text-container, .minerva-root .banner-tall { background-color: rgba(0, 0, 0, 0.3); }\n.minerva-root .banner-tall { min-height: 75vh; }\n@media (max-width: 767.98px) { .minerva-root .banner-tall { min-height: auto; } }\n@media (max-width: 575.98px) { .minerva-root .display-4 { font-size: 2rem; margin-top: 1rem; } }\n.minerva-root .select2-results ul { color: black; }\n\n.minerva-root {\n display: grid; \n grid-template-columns: 1fr; \n grid-template-rows: 1fr; \n grid-column-gap: 0px;\n grid-row-gap: 0px; \n height: 100%;\n width: 100%;\n}\n\n.minerva-root > div {\n grid-area: 1 / 1 / 2 / 2;\n}\n\n.minerva-root .minerva-toggle-sidebar {\n color: #eee;\n}\n\n.minerva-root .minerva-toggle-sidebar:hover {\n color: #eee;\n}\n\n.minerva-root {\n scrollbar-face-color: #646464;\n scrollbar-base-color: #646464;\n scrollbar-3dlight-color: #646464;\n scrollbar-highlight-color: #646464;\n scrollbar-track-color: #000;\n scrollbar-arrow-color: #000;\n scrollbar-shadow-color: #646464;\n scrollbar-dark-shadow-color: #646464;\n}\n.minerva-root ::-webkit-scrollbar { \n width: 8px;\n height: 3px;\n}\n.minerva-root ::-webkit-scrollbar-button {\n background-color: #666;\n}\n.minerva-root ::-webkit-scrollbar-track {\n background-color: #646464;\n}\n.minerva-root ::-webkit-scrollbar-track-piece {\n background-color: #000;\n}\n.minerva-root ::-webkit-scrollbar-thumb {\n height: 50px;\n background-color: #666;\n border-radius: 3px;\n}\n.minerva-root ::-webkit-scrollbar-corner {\n background-color: #646464;\n}\n.minerva-root ::-webkit-resizer {\n background-color: #666;\n}\n\n.minerva-root .minerva-sidebar-menu {\n -webkit-transition: all 0.5s ease;\n -moz-transition: all 0.5s ease;\n -o-transition: all 0.5s ease;\n transition: all 0.5s ease;\n margin-left: 0px;\n width: 400px;\n left: 3px;\n top: 1rem;\n}\n\n.minerva-root .minerva-sidebar-menu.minimal {\n margin-left: -314px;\n}\n\n.minerva-root .minerva-sidebar-menu.toggled {\n margin-left: -366px;\n}\n\n.minerva-root .minerva-legend {\n -webkit-transition: all 0.5s ease;\n -moz-transition: all 0.5s ease;\n -o-transition: all 0.5s ease;\n transition: all 0.5s ease;\n}\n\n.minerva-root input[type="range"] {\n transform-origin: left;\n transform: rotate(270deg);\n}\n\n.minerva-root .minerva-z-slider-legend {\n padding-top: 127px;\n padding-left: 7px;\n height: 140px;\n width: 15px;\n}\n\n.minerva-root .minerva-channel-groups-legend {\n width: 200px;\n}\n\n.minerva-root .minerva-legend.toggled {\n margin-right: -200px;\n}\n\n.minerva-root .minerva-sidebar-menu .minerva-open-sidebar {\n display: none;\n}\n.minerva-root .minerva-sidebar-menu .minerva-close-sidebar {\n display: inline;\n}\n.minerva-root .minerva-sidebar-menu.toggled .minerva-open-sidebar {\n display: inline;\n}\n.minerva-root .minerva-sidebar-menu.toggled .minerva-close-sidebar {\n display: none;\n}\n\n.minerva-root .minerva-legend .minerva-open-legend {\n display: none;\n}\n.minerva-root .minerva-legend .minerva-close-legend {\n display: inline;\n}\n.minerva-root .minerva-legend.toggled .minerva-open-legend {\n display: inline;\n}\n.minerva-root .minerva-legend.toggled .minerva-close-legend {\n display: none;\n} \n/* position: absolute; top: 0; bottom: 0; width: 100%; */\n.minerva-root .minerva-openseadragon {\n /* position: absolute;\n top: 0;\n left: 0;\n bottom: 0; */\n width: 100%;\n height: 100%;\n pointer-events: fill;\n /* border: 1px solid #444; */\n}\n\n.minerva-root .openseadragon-canvas canvas {\n z-index: -2;\n}\n\n.minerva-root .openseadragon-canvas svg {\n z-index: -1;\n}\n\n.minerva-root .overlap {\n position: relative;\n pointer-events: none;\n}\n\n.minerva-root .btn:focus, .minerva-root .btn:active {\n outline: none !important;\n box-shadow: none !important;\n}\n\n.minerva-root a, .minerva-root .navbar-toggler {\n pointer-events: auto;\n}\n\n.minerva-root .bg-trans {\n background: hsla(0, 0%, 0%, 0.8);\n}\n\n.minerva-root .bg-black {\n background: #000;\n}\n\n.minerva-root .legend-label {\n display: inline-block;\n min-width: 4.5em;\n}\n\n.minerva-root .legend-color {\n margin-left: 0.5em;\n width: 1.5em;\n border-radius: 0;\n vertical-align: middle;\n}\n\n.minerva-root .minerva-overlay-title {\n color: white;\n text-align: center;\n}\n\n.minerva-root .nav-color-dark {\n color: #495057 !important;\n}\n.minerva-root .minerva-green {\n color: palegreen;\n}\n.minerva-root .minerva-white {\n color: white;\n}\n.minerva-root .minerva-white.minerva-overlay {\n border: 2px solid white;\n background: none;\n}\n.minerva-root .minerva-green.minerva-overlay {\n border: 4px solid palegreen;\n background: none;\n}\n\n.minerva-root .right-padding {\n padding: .5rem 1rem;\n}\n\n.minerva-root .minerva-waypoint-content code {\n color: inherit;\n}\n\n.minerva-root .minerva-waypoint-content img {\n max-width: 100%;\n}\n.minerva-root .minerva-waypoint-content h1 {\n font-size: 1.25rem;\n margin: 0 0 1rem 0;\n}\n.minerva-root .minerva-waypoint-content h2 {\n font-size: 1.25rem;\n margin: 0 0 1rem 0;\n}\n.minerva-root .minerva-waypoint-content h3 {\n font-size: 1.1rem;\n margin: 0 0 1rem 0;\n}\n.minerva-root .minerva-waypoint-content h4 {\n font-size: 1.1rem;\n margin: 0 0 1rem 0;\n}\n.minerva-root .minerva-waypoint-content h5 {\n font-size: 1rem;\n margin: 0 0 1rem 0;\n}\n.minerva-root .minerva-waypoint-content h6 {\n font-size: 1rem;\n margin: 0 0 1rem 0;\n}\n\n.minerva-root .minerva-waypoint-content .edit_code {\n font-family: monospace;\n}\n\n.minerva-root .minerva-waypoint-content .copy_yaml_input {\n position: absolute;\n z-index: 100;\n bottom: 0;\n right: 0;\n}\n\n.minerva-root .copy_yaml_input button {\n background-color: black; \n /* border: 1px solid white; */\n /* padding: 0 5px 0 5px; */\n pointer-events: all;\n /* margin-left: 5px; */\n height: 100%;\n color: white; \n}\n\n.minerva-root .channel-picker {\n border-style: solid;\n border-color: hsl(0, 0%, 70%);\n border-width: 1px 0;\n}\n\n.minerva-root .channel-picker:first-child {\n border-left-width: 1px;\n}\n\n.minerva-root .channel-picker:last-child {\n border-right-width: 1px;\n}\n\n.minerva-root .openseadragon-canvas polygon {\n fill: rgba(70, 130, 180, 0.0);\n stroke: white;\n stroke-width: 2px;\n vector-effect: non-scaling-stroke;\n}\n\n.minerva-root .matrix-label {\n font-size: 10px;\n color: white;\n fill : white;\n}\n\n.minerva-root .matrix-row-label {\n font-size: 10px;\n color: white;\n fill : white;\n}\n\n.minerva-root .colorLegend {\n font-size: 8px;\n color: white;\n fill : white;\n}\n\nbody {\n margin: 0;\n height: 100vh;\n background-color: black;\n /* mobile viewport bug fix */\n height: -webkit-fill-available;\n}\n\nbody .tooltip {\n position: absolute;\n margin-top: 3px;\n text-align: center;\n width: 60px;\n height: 28px;\n padding: 2px;\n font: 12px sans-serif;\n background: black;\n color: white;\n border: 0px;\n border-radius: 5px;\n pointer-events: none;\n}\n\n.minerva-root .bar {\n fill: steelblue;\n}\n\n.minerva-root .bar:hover {\n fill: #a6cee3;\n}\n\n.minerva-root .axis--x path {\n display: none;\n}\n')),document.head.appendChild(r);var i=document.createElement("link");i.setAttribute("rel","stylesheet"),i.setAttribute("type","text/css"),i.setAttribute("href","https://cdnjs.cloudflare.com/ajax/libs/bootstrap-select/1.13.1/css/bootstrap-select.css"),document.head.appendChild(i);const o=document.getElementById(e.id);o.innerHTML='\n
\n
\n
\n
\n
\n
\n
\n
\n \n \n \n \n
    \n
    \n Depth:\n
    \n
    \n \n
    \n
    \n \n
    \n \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n

    \n
    \n
    \n \n \n \n \n \n \n
    \n
    \n
    \n
    \n
    \n \n
    \n
    \n
    \n \n
    \n
    \n
    \n \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n

    Select a marker group:

    \n \n \n

    Add data layer:

    \n \n \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n \n \n \n \n
    \n
    \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    \n
    \n
    \n
    \n
    \n\n
    \n
    \n
    \n
    \n \n\n \n \n \n \n \n \n \n \n \n image/svg+xml\n \n \n \n \n \n \n \n \n \n\n
    \n
    \n \n\n \n \n \n \n \n \n \n \n \n image/svg+xml\n \n \n \n \n \n \n \n \n \n\n
    \n
    \n
    \n
    \n
    \n
    \n\n
    \n
    \n
    \n \n \n
    \n \n
    \n
    \n
    \n \n
    \n
    \n \n \n
    \n
    \n
    \n \n
    \n
    \n
    \n\n\n \n\n\n \n\n \n\n \n\n
    \n
    \n
    \n
    \n';const a=o.getElementsByClassName("minerva-home-button")[0],s=o.getElementsByClassName("minerva-openseadragon")[0],l=o.getElementsByClassName("minerva-zoom-out")[0],c=o.getElementsByClassName("minerva-zoom-in")[0];e.noHome=!e.homeUrl,e.noHome||(a.href=e.homeUrl),s.id=e.id+"-openseadragon",l.id=e.id+"-zoom-out",c.id=e.id+"-zoom-in",$(".js-toggle-osd-side-nav").click((function(){0==$("#osd-side-nav").position().top?$("#osd-side-nav").css("top","75vh"):$("#osd-side-nav").css("top",0),$("#osd-side-nav").scrollTop(0)})),e.el=o,o.getElementsByClassName("minerva-duplicate-view")[0].onclick=_oe;var u=e.exhibit;return"string"==typeof u||u instanceof String?fetch(u).then((e=>e.json())).then((t=>koe(t,e))):Promise.resolve(koe(u,e))}}},9742:(e,t)=>{"use strict";t.byteLength=function(e){var t=l(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,o=l(e),a=o[0],s=o[1],c=new i(function(e,t,n){return 3*(t+n)/4-n}(0,a,s)),u=0,h=s>0?a-4:a;for(n=0;n>16&255,c[u++]=t>>8&255,c[u++]=255&t;return 2===s&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,c[u++]=255&t),1===s&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,c[u++]=t>>8&255,c[u++]=255&t),c},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,o=[],a=16383,s=0,l=r-i;sl?l:s+a));return 1===i?(t=e[r-1],o.push(n[t>>2]+n[t<<4&63]+"==")):2===i&&(t=(e[r-2]<<8)+e[r-1],o.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"=")),o.join("")};for(var n=[],r=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=o.length;a0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function c(e,t,r){for(var i,o,a=[],s=t;s>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o]);return a.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},300:function(e,t,n){var r,i;void 0===this&&void 0!==window&&window,r=[n(9755)],i=function(e){!function(e){"use strict";var t=["sanitize","whiteList","sanitizeFn"],n=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],r=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,i=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+/]+=*$/i;function o(t,o){var a=t.nodeName.toLowerCase();if(-1!==e.inArray(a,o))return-1===e.inArray(a,n)||Boolean(t.nodeValue.match(r)||t.nodeValue.match(i));for(var s=e(o).filter((function(e,t){return t instanceof RegExp})),l=0,c=s.length;l1?arguments[1]:void 0,a=o?Number(o):0;a!=a&&(a=0);var s=Math.min(Math.max(a,0),n);if(i+s>n)return!1;for(var c=-1;++c]+>/g,"")),r&&(l=C(l)),l=l.toUpperCase(),o="contains"===n?l.indexOf(t)>=0:l.startsWith(t)))break}return o}function x(e){return parseInt(e,10)||0}e.fn.triggerNative=function(e){var t,n=this[0];n.dispatchEvent?(y?t=new Event(e,{bubbles:!0}):(t=document.createEvent("Event")).initEvent(e,!0,!1),n.dispatchEvent(t)):n.fireEvent?((t=document.createEventObject()).eventType=e,n.fireEvent("on"+e,t)):this.trigger(e)};var w={À:"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"},_=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,k=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\u1ab0-\\u1aff\\u1dc0-\\u1dff]","g");function E(e){return w[e]}function C(e){return(e=e.toString())&&e.replace(_,E).replace(k,"")}var S,D,A,T,M,O=(S={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},D=function(e){return S[e]},A="(?:"+Object.keys(S).join("|")+")",T=RegExp(A),M=RegExp(A,"g"),function(e){return e=null==e?"":""+e,T.test(e)?e.replace(M,D):e}),F={32:" ",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",59:";",65:"A",66:"B",67:"C",68:"D",69:"E",70:"F",71:"G",72:"H",73:"I",74:"J",75:"K",76:"L",77:"M",78:"N",79:"O",80:"P",81:"Q",82:"R",83:"S",84:"T",85:"U",86:"V",87:"W",88:"X",89:"Y",90:"Z",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9"},P=27,N=13,I=32,B=9,j=38,L=40,z={success:!1,major:"3"};try{z.full=(e.fn.dropdown.Constructor.VERSION||"").split(" ")[0].split("."),z.major=z.full[0],z.success=!0}catch(e){}var R=0,$=".bs.select",H={DISABLED:"disabled",DIVIDER:"divider",SHOW:"open",DROPUP:"dropup",MENU:"dropdown-menu",MENURIGHT:"dropdown-menu-right",MENULEFT:"dropdown-menu-left",BUTTONCLASS:"btn-default",POPOVERHEADER:"popover-title",ICONBASE:"glyphicon",TICKICON:"glyphicon-ok"},U={MENU:"."+H.MENU},q={div:document.createElement("div"),span:document.createElement("span"),i:document.createElement("i"),subtext:document.createElement("small"),a:document.createElement("a"),li:document.createElement("li"),whitespace:document.createTextNode(" "),fragment:document.createDocumentFragment()};q.noResults=q.li.cloneNode(!1),q.noResults.className="no-results",q.a.setAttribute("role","option"),q.a.className="dropdown-item",q.subtext.className="text-muted",q.text=q.span.cloneNode(!1),q.text.className="text",q.checkMark=q.span.cloneNode(!1);var W=new RegExp(j+"|"+L),V=new RegExp("^"+B+"$|"+P),G={li:function(e,t,n){var r=q.li.cloneNode(!1);return e&&(1===e.nodeType||11===e.nodeType?r.appendChild(e):r.innerHTML=e),void 0!==t&&""!==t&&(r.className=t),null!=n&&r.classList.add("optgroup-"+n),r},a:function(e,t,n){var r=q.a.cloneNode(!0);return e&&(11===e.nodeType?r.appendChild(e):r.insertAdjacentHTML("beforeend",e)),void 0!==t&&""!==t&&r.classList.add.apply(r.classList,t.split(/\s+/)),n&&r.setAttribute("style",n),r},text:function(e,t){var n,r,i=q.text.cloneNode(!1);if(e.content)i.innerHTML=e.content;else{if(i.textContent=e.text,e.icon){var o=q.whitespace.cloneNode(!1);(r=(!0===t?q.i:q.span).cloneNode(!1)).className=this.options.iconBase+" "+e.icon,q.fragment.appendChild(r),q.fragment.appendChild(o)}e.subtext&&((n=q.subtext.cloneNode(!1)).textContent=e.subtext,i.appendChild(n))}if(!0===t)for(;i.childNodes.length>0;)q.fragment.appendChild(i.childNodes[0]);else q.fragment.appendChild(i);return q.fragment},label:function(e){var t,n,r=q.text.cloneNode(!1);if(r.innerHTML=e.display,e.icon){var i=q.whitespace.cloneNode(!1);(n=q.span.cloneNode(!1)).className=this.options.iconBase+" "+e.icon,q.fragment.appendChild(n),q.fragment.appendChild(i)}return e.subtext&&((t=q.subtext.cloneNode(!1)).textContent=e.subtext,r.appendChild(t)),q.fragment.appendChild(r),q.fragment}};function X(e,t){e.length||(q.noResults.innerHTML=this.options.noneResultsText.replace("{0}",'"'+O(t)+'"'),this.$menuInner[0].firstChild.appendChild(q.noResults))}var Y=function(t,n){var r=this;g.useDefault||(e.valHooks.select.set=g._set,g.useDefault=!0),this.$element=e(t),this.$newElement=null,this.$button=null,this.$menu=null,this.options=n,this.selectpicker={main:{},search:{},current:{},view:{},isSearching:!1,keydown:{keyHistory:"",resetKeyHistory:{start:function(){return setTimeout((function(){r.selectpicker.keydown.keyHistory=""}),800)}}}},this.sizeInfo={},null===this.options.title&&(this.options.title=this.$element.attr("title"));var i=this.options.windowPadding;"number"==typeof i&&(this.options.windowPadding=[i,i,i,i]),this.val=Y.prototype.val,this.render=Y.prototype.render,this.refresh=Y.prototype.refresh,this.setStyle=Y.prototype.setStyle,this.selectAll=Y.prototype.selectAll,this.deselectAll=Y.prototype.deselectAll,this.destroy=Y.prototype.destroy,this.remove=Y.prototype.remove,this.show=Y.prototype.show,this.hide=Y.prototype.hide,this.init()};function J(n){var r,i=arguments,o=n;if([].shift.apply(i),!z.success){try{z.full=(e.fn.dropdown.Constructor.VERSION||"").split(" ")[0].split(".")}catch(e){Y.BootstrapVersion?z.full=Y.BootstrapVersion.split(" ")[0].split("."):(z.full=[z.major,"0","0"],console.warn("There was an issue retrieving Bootstrap's version. Ensure Bootstrap is being loaded before bootstrap-select and there is no namespace collision. If loading Bootstrap asynchronously, the version may need to be manually specified via $.fn.selectpicker.Constructor.BootstrapVersion.",e))}z.major=z.full[0],z.success=!0}if("4"===z.major){var a=[];Y.DEFAULTS.style===H.BUTTONCLASS&&a.push({name:"style",className:"BUTTONCLASS"}),Y.DEFAULTS.iconBase===H.ICONBASE&&a.push({name:"iconBase",className:"ICONBASE"}),Y.DEFAULTS.tickIcon===H.TICKICON&&a.push({name:"tickIcon",className:"TICKICON"}),H.DIVIDER="dropdown-divider",H.SHOW="show",H.BUTTONCLASS="btn-light",H.POPOVERHEADER="popover-header",H.ICONBASE="",H.TICKICON="bs-ok-default";for(var s=0;s'},maxOptions:!1,mobile:!1,selectOnTab:!1,dropdownAlignRight:!1,windowPadding:0,virtualScroll:600,display:!1,sanitize:!0,sanitizeFn:null,whiteList:{"*":["class","dir","id","lang","role","tabindex","style",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]}},Y.prototype={constructor:Y,init:function(){var e=this,t=this.$element.attr("id"),n=this.$element[0],r=n.form;R++,this.selectId="bs-select-"+R,n.classList.add("bs-select-hidden"),this.multiple=this.$element.prop("multiple"),this.autofocus=this.$element.prop("autofocus"),n.classList.contains("show-tick")&&(this.options.showTick=!0),this.$newElement=this.createDropdown(),this.buildData(),this.$element.after(this.$newElement).prependTo(this.$newElement),r&&null===n.form&&(r.id||(r.id="form-"+this.selectId),n.setAttribute("form",r.id)),this.$button=this.$newElement.children("button"),this.$menu=this.$newElement.children(U.MENU),this.$menuInner=this.$menu.children(".inner"),this.$searchbox=this.$menu.find("input"),n.classList.remove("bs-select-hidden"),!0===this.options.dropdownAlignRight&&this.$menu[0].classList.add(H.MENURIGHT),void 0!==t&&this.$button.attr("data-id",t),this.checkDisabled(),this.clickListener(),this.options.liveSearch?(this.liveSearchListener(),this.focusedParent=this.$searchbox[0]):this.focusedParent=this.$menuInner[0],this.setStyle(),this.render(),this.setWidth(),this.options.container?this.selectPosition():this.$element.on("hide.bs.select",(function(){if(e.isVirtual()){var t=e.$menuInner[0],n=t.firstChild.cloneNode(!1);t.replaceChild(n,t.firstChild),t.scrollTop=0}})),this.$menu.data("this",this),this.$newElement.data("this",this),this.options.mobile&&this.mobile(),this.$newElement.on({"hide.bs.dropdown":function(t){e.$element.trigger("hide.bs.select",t)},"hidden.bs.dropdown":function(t){e.$element.trigger("hidden.bs.select",t)},"show.bs.dropdown":function(t){e.$element.trigger("show.bs.select",t)},"shown.bs.dropdown":function(t){e.$element.trigger("shown.bs.select",t)}}),n.hasAttribute("required")&&this.$element.on("invalid.bs.select",(function(){e.$button[0].classList.add("bs-invalid"),e.$element.on("shown.bs.select.invalid",(function(){e.$element.val(e.$element.val()).off("shown.bs.select.invalid")})).on("rendered.bs.select",(function(){this.validity.valid&&e.$button[0].classList.remove("bs-invalid"),e.$element.off("rendered.bs.select")})),e.$button.on("blur.bs.select",(function(){e.$element.trigger("focus").trigger("blur"),e.$button.off("blur.bs.select")}))})),setTimeout((function(){e.buildList(),e.$element.trigger("loaded.bs.select")}))},createDropdown:function(){var t=this.multiple||this.options.showTick?" show-tick":"",n=this.multiple?' aria-multiselectable="true"':"",r="",i=this.autofocus?" autofocus":"";z.major<4&&this.$element.parent().hasClass("input-group")&&(r=" input-group-btn");var o,a="",s="",l="",c="";return this.options.header&&(a='
    '+this.options.header+"
    "),this.options.liveSearch&&(s=''),this.multiple&&this.options.actionsBox&&(l='
    "),this.multiple&&this.options.doneButton&&(c='
    "),o='",e(o)},setPositionData:function(){this.selectpicker.view.canHighlight=[],this.selectpicker.view.size=0,this.selectpicker.view.firstHighlightIndex=!1;for(var e=0;e=this.options.virtualScroll||!0===this.options.virtualScroll},createView:function(t,n,r){var i,o,s=this,l=0,c=[];if(this.selectpicker.isSearching=t,this.selectpicker.current=t?this.selectpicker.search:this.selectpicker.main,this.setPositionData(),n)if(r)l=this.$menuInner[0].scrollTop;else if(!s.multiple){var u=s.$element[0],h=(u.options[u.selectedIndex]||{}).liIndex;if("number"==typeof h&&!1!==s.options.size){var d=s.selectpicker.main.data[h],f=d&&d.position;f&&(l=f-(s.sizeInfo.menuInnerHeight+s.sizeInfo.liHeight)/2)}}function p(e,n){var r,l,u,h,d,f,p,m,g,v,y=s.selectpicker.current.elements.length,b=[],x=!0,w=s.isVirtual();s.selectpicker.view.scrollTop=e,r=Math.ceil(s.sizeInfo.menuInnerHeight/s.sizeInfo.liHeight*1.5),l=Math.round(y/r)||1;for(var _=0;_y-1?0:s.selectpicker.current.data[y-1].position-s.selectpicker.current.data[s.selectpicker.view.position1-1].position,S.firstChild.style.marginTop=E+"px",S.firstChild.style.marginBottom=C+"px"):(S.firstChild.style.marginTop=0,S.firstChild.style.marginBottom=0),S.firstChild.appendChild(D),!0===w&&s.sizeInfo.hasScrollBar){var I=S.firstChild.offsetWidth;if(n&&Is.sizeInfo.selectWidth)S.firstChild.style.minWidth=s.sizeInfo.menuInnerInnerWidth+"px";else if(I>s.sizeInfo.menuInnerInnerWidth){s.$menu[0].style.minWidth=0;var B=S.firstChild.offsetWidth;B>s.sizeInfo.menuInnerInnerWidth&&(s.sizeInfo.menuInnerInnerWidth=B,S.firstChild.style.minWidth=s.sizeInfo.menuInnerInnerWidth+"px"),s.$menu[0].style.minWidth=""}}}if(s.prevActiveIndex=s.activeIndex,s.options.liveSearch){if(t&&n){var j,L=0;s.selectpicker.view.canHighlight[L]||(L=1+s.selectpicker.view.canHighlight.slice(1).indexOf(!0)),j=s.selectpicker.view.visibleElements[L],s.defocusItem(s.selectpicker.view.currentActive),s.activeIndex=(s.selectpicker.current.data[L]||{}).index,s.focusItem(j)}}else s.$menuInner.trigger("focus")}p(l,!0),this.$menuInner.off("scroll.createView").on("scroll.createView",(function(e,t){s.noScroll||p(this.scrollTop,t),s.noScroll=!1})),e(window).off("resize.bs.select."+this.selectId+".createView").on("resize.bs.select."+this.selectId+".createView",(function(){s.$newElement.hasClass(H.SHOW)&&p(s.$menuInner[0].scrollTop)}))},focusItem:function(e,t,n){if(e){t=t||this.selectpicker.main.data[this.activeIndex];var r=e.firstChild;r&&(r.setAttribute("aria-setsize",this.selectpicker.view.size),r.setAttribute("aria-posinset",t.posinset),!0!==n&&(this.focusedParent.setAttribute("aria-activedescendant",r.id),e.classList.add("active"),r.classList.add("active")))}},defocusItem:function(e){e&&(e.classList.remove("active"),e.firstChild&&e.firstChild.classList.remove("active"))},setPlaceholder:function(){var e=this,t=!1;if(this.options.title&&!this.multiple){this.selectpicker.view.titleOption||(this.selectpicker.view.titleOption=document.createElement("option")),t=!0;var n=this.$element[0],r=!1,i=!this.selectpicker.view.titleOption.parentNode,o=n.selectedIndex,a=n.options[o],s=window.performance&&window.performance.getEntriesByType("navigation"),l=s&&s.length?"back_forward"!==s[0].type:2!==window.performance.navigation.type;i&&(this.selectpicker.view.titleOption.className="bs-title-option",this.selectpicker.view.titleOption.value="",r=!a||0===o&&!1===a.defaultSelected&&void 0===this.$element.data("selected")),(i||0!==this.selectpicker.view.titleOption.index)&&n.insertBefore(this.selectpicker.view.titleOption,n.firstChild),r&&l?n.selectedIndex=0:"complete"!==document.readyState&&window.addEventListener("pageshow",(function(){e.selectpicker.view.displayedValue!==n.value&&e.render()}))}return t},buildData:function(){var e=':not([hidden]):not([data-hidden="true"])',t=[],n=0,r=this.setPlaceholder()?1:0;this.options.hideDisabled&&(e+=":not(:disabled)");var i=this.$element[0].querySelectorAll("select > *"+e);function o(e){var n=t[t.length-1];n&&"divider"===n.type&&(n.optID||e.optID)||((e=e||{}).type="divider",t.push(e))}function a(e,n){if((n=n||{}).divider="true"===e.getAttribute("data-divider"),n.divider)o({optID:n.optID});else{var r=t.length,i=e.style.cssText,a=i?O(i):"",s=(e.className||"")+(n.optgroupClass||"");n.optID&&(s="opt "+s),n.optionClass=s.trim(),n.inlineStyle=a,n.text=e.textContent,n.content=e.getAttribute("data-content"),n.tokens=e.getAttribute("data-tokens"),n.subtext=e.getAttribute("data-subtext"),n.icon=e.getAttribute("data-icon"),e.liIndex=r,n.display=n.content||n.text,n.type="option",n.index=r,n.option=e,n.selected=!!e.selected,n.disabled=n.disabled||!!e.disabled,t.push(n)}}function s(i,s){var l=s[i],c=!(i-1r&&(r=o,e.selectpicker.view.widestOption=n[n.length-1])}!e.options.showTick&&!e.multiple||q.checkMark.parentNode||(q.checkMark.className=this.options.iconBase+" "+e.options.tickIcon+" check-mark",q.a.appendChild(q.checkMark));for(var o=t.length,a=0;a li")},render:function(){var e,t,n=this,r=this.$element[0],i=this.setPlaceholder()&&0===r.selectedIndex,o=p(r,this.options.hideDisabled),s=o.length,l=this.$button[0],c=l.querySelector(".filter-option-inner-inner"),u=document.createTextNode(this.options.multipleSeparator),h=q.fragment.cloneNode(!1),d=!1;if(l.classList.toggle("bs-placeholder",n.multiple?!s:!m(r,o)),n.multiple||1!==o.length||(n.selectpicker.view.displayedValue=m(r,o)),"static"===this.options.selectedTextFormat)h=G.text.call(this,{text:this.options.title},!0);else if((e=this.multiple&&-1!==this.options.selectedTextFormat.indexOf("count")&&s>1)&&(e=(t=this.options.selectedTextFormat.split(">")).length>1&&s>t[1]||1===t.length&&s>=2),!1===e){if(!i){for(var f=0;f0&&h.appendChild(u.cloneNode(!1)),g.title?y.text=g.title:v&&(v.content&&n.options.showContent?(y.content=v.content.toString(),d=!0):(n.options.showIcon&&(y.icon=v.icon),n.options.showSubtext&&!n.multiple&&v.subtext&&(y.subtext=" "+v.subtext),y.text=g.textContent.trim())),h.appendChild(G.text.call(this,y,!0))}s>49&&h.appendChild(document.createTextNode("..."))}}else{var b=':not([hidden]):not([data-hidden="true"]):not([data-divider="true"])';this.options.hideDisabled&&(b+=":not(:disabled)");var x=this.$element[0].querySelectorAll("select > option"+b+", optgroup"+b+" option"+b).length,w="function"==typeof this.options.countSelectedText?this.options.countSelectedText(s,x):this.options.countSelectedText;h=G.text.call(this,{text:w.replace("{0}",s.toString()).replace("{1}",x.toString())},!0)}if(null==this.options.title&&(this.options.title=this.$element.attr("title")),h.childNodes.length||(h=G.text.call(this,{text:void 0!==this.options.title?this.options.title:this.options.noneSelectedText},!0)),l.title=h.textContent.replace(/<[^>]*>?/g,"").trim(),this.options.sanitize&&d&&a([h],n.options.whiteList,n.options.sanitizeFn),c.innerHTML="",c.appendChild(h),z.major<4&&this.$newElement[0].classList.contains("bs3-has-addon")){var _=l.querySelector(".filter-expand"),k=c.cloneNode(!0);k.className="filter-expand",_?l.replaceChild(k,_):l.appendChild(k)}this.$element.trigger("rendered.bs.select")},setStyle:function(e,t){var n,r=this.$button[0],i=this.$newElement[0],o=this.options.style.trim();this.$element.attr("class")&&this.$newElement.addClass(this.$element.attr("class").replace(/selectpicker|mobile-device|bs-select-hidden|validate\[.*\]/gi,"")),z.major<4&&(i.classList.add("bs3"),i.parentNode.classList&&i.parentNode.classList.contains("input-group")&&(i.previousElementSibling||i.nextElementSibling)&&(i.previousElementSibling||i.nextElementSibling).classList.contains("input-group-addon")&&i.classList.add("bs3-has-addon")),n=e?e.trim():o,"add"==t?n&&r.classList.add.apply(r.classList,n.split(" ")):"remove"==t?n&&r.classList.remove.apply(r.classList,n.split(" ")):(o&&r.classList.remove.apply(r.classList,o.split(" ")),n&&r.classList.add.apply(r.classList,n.split(" ")))},liHeight:function(t){if(t||!1!==this.options.size&&!Object.keys(this.sizeInfo).length){var n,r=q.div.cloneNode(!1),i=q.div.cloneNode(!1),o=q.div.cloneNode(!1),a=document.createElement("ul"),s=q.li.cloneNode(!1),l=q.li.cloneNode(!1),c=q.a.cloneNode(!1),u=q.span.cloneNode(!1),h=this.options.header&&this.$menu.find("."+H.POPOVERHEADER).length>0?this.$menu.find("."+H.POPOVERHEADER)[0].cloneNode(!0):null,d=this.options.liveSearch?q.div.cloneNode(!1):null,f=this.options.actionsBox&&this.multiple&&this.$menu.find(".bs-actionsbox").length>0?this.$menu.find(".bs-actionsbox")[0].cloneNode(!0):null,p=this.options.doneButton&&this.multiple&&this.$menu.find(".bs-donebutton").length>0?this.$menu.find(".bs-donebutton")[0].cloneNode(!0):null,m=this.$element.find("option")[0];if(this.sizeInfo.selectWidth=this.$newElement[0].offsetWidth,u.className="text",c.className="dropdown-item "+(m?m.className:""),r.className=this.$menu[0].parentNode.className+" "+H.SHOW,r.style.width=0,"auto"===this.options.width&&(i.style.minWidth=0),i.className=H.MENU+" "+H.SHOW,o.className="inner "+H.SHOW,a.className=H.MENU+" inner "+("4"===z.major?H.SHOW:""),s.className=H.DIVIDER,l.className="dropdown-header",u.appendChild(document.createTextNode("​")),this.selectpicker.current.data.length)for(var g=0;gthis.sizeInfo.menuExtras.vert&&s+this.sizeInfo.menuExtras.vert+50>this.sizeInfo.selectOffsetBot,!0===this.selectpicker.isSearching&&(l=this.selectpicker.dropup),this.$newElement.toggleClass(H.DROPUP,l),this.selectpicker.dropup=l),"auto"===this.options.size)i=this.selectpicker.current.elements.length>3?3*this.sizeInfo.liHeight+this.sizeInfo.menuExtras.vert-2:0,n=this.sizeInfo.selectOffsetBot-this.sizeInfo.menuExtras.vert,r=i+h+d+f+p,a=Math.max(i-g.vert,0),this.$newElement.hasClass(H.DROPUP)&&(n=this.sizeInfo.selectOffsetTop-this.sizeInfo.menuExtras.vert),o=n,t=n-h-d-f-p-g.vert;else if(this.options.size&&"auto"!=this.options.size&&this.selectpicker.current.elements.length>this.options.size){for(var y=0;ythis.sizeInfo.menuInnerHeight&&(this.sizeInfo.hasScrollBar=!0,this.sizeInfo.totalMenuWidth=this.sizeInfo.menuWidth+this.sizeInfo.scrollBarWidth),"auto"===this.options.dropdownAlignRight&&this.$menu.toggleClass(H.MENURIGHT,this.sizeInfo.selectOffsetLeft>this.sizeInfo.selectOffsetRight&&this.sizeInfo.selectOffsetRightthis.options.size&&r.off("resize.bs.select."+this.selectId+".setMenuSize scroll.bs.select."+this.selectId+".setMenuSize")}this.createView(!1,!0,t)},setWidth:function(){var e=this;"auto"===this.options.width?requestAnimationFrame((function(){e.$menu.css("min-width","0"),e.$element.on("loaded.bs.select",(function(){e.liHeight(),e.setMenuSize();var t=e.$newElement.clone().appendTo("body"),n=t.css("width","auto").children("button").outerWidth();t.remove(),e.sizeInfo.selectWidth=Math.max(e.sizeInfo.totalMenuWidth,n),e.$newElement.css("width",e.sizeInfo.selectWidth+"px")}))})):"fit"===this.options.width?(this.$menu.css("min-width",""),this.$newElement.css("width","").addClass("fit-width")):this.options.width?(this.$menu.css("min-width",""),this.$newElement.css("width",this.options.width)):(this.$menu.css("min-width",""),this.$newElement.css("width","")),this.$newElement.hasClass("fit-width")&&"fit"!==this.options.width&&this.$newElement[0].classList.remove("fit-width")},selectPosition:function(){this.$bsContainer=e('
    ');var t,n,r,i=this,o=e(this.options.container),a=function(a){var s={},l=i.options.display||!!e.fn.dropdown.Constructor.Default&&e.fn.dropdown.Constructor.Default.display;i.$bsContainer.addClass(a.attr("class").replace(/form-control|fit-width/gi,"")).toggleClass(H.DROPUP,a.hasClass(H.DROPUP)),t=a.offset(),o.is("body")?n={top:0,left:0}:((n=o.offset()).top+=parseInt(o.css("borderTopWidth"))-o.scrollTop(),n.left+=parseInt(o.css("borderLeftWidth"))-o.scrollLeft()),r=a.hasClass(H.DROPUP)?0:a[0].offsetHeight,(z.major<4||"static"===l)&&(s.top=t.top-n.top+r,s.left=t.left-n.left),s.width=a[0].offsetWidth,i.$bsContainer.css(s)};this.$button.on("click.bs.dropdown.data-api",(function(){i.isDisabled()||(a(i.$newElement),i.$bsContainer.appendTo(i.options.container).toggleClass(H.SHOW,!i.$button.hasClass(H.SHOW)).append(i.$menu))})),e(window).off("resize.bs.select."+this.selectId+" scroll.bs.select."+this.selectId).on("resize.bs.select."+this.selectId+" scroll.bs.select."+this.selectId,(function(){i.$newElement.hasClass(H.SHOW)&&a(i.$newElement)})),this.$element.on("hide.bs.select",(function(){i.$menu.data("height",i.$menu.height()),i.$bsContainer.detach()}))},setOptionStatus:function(e){var t=this;if(t.noScroll=!1,t.selectpicker.view.visibleElements&&t.selectpicker.view.visibleElements.length)for(var n=0;n3&&!t.dropdown&&(t.dropdown=t.$button.data("bs.dropdown"),t.dropdown._menu=t.$menu[0])})),this.$button.on("click.bs.dropdown.data-api",(function(){t.$newElement.hasClass(H.SHOW)||t.setSize()})),this.$element.on("shown.bs.select",(function(){t.$menuInner[0].scrollTop!==t.selectpicker.view.scrollTop&&(t.$menuInner[0].scrollTop=t.selectpicker.view.scrollTop),z.major>3?requestAnimationFrame(i):r()})),this.$menuInner.on("mouseenter","li a",(function(e){var n=this.parentElement,r=t.isVirtual()?t.selectpicker.view.position0:0,i=Array.prototype.indexOf.call(n.parentElement.children,n),o=t.selectpicker.current.data[i+r];t.focusItem(n,o,!0)})),this.$menuInner.on("click","li a",(function(n,r){var i=e(this),o=t.$element[0],a=t.isVirtual()?t.selectpicker.view.position0:0,s=t.selectpicker.current.data[i.parent().index()+a],l=s.index,c=m(o),u=o.selectedIndex,h=o.options[u],d=!0;if(t.multiple&&1!==t.options.maxOptions&&n.stopPropagation(),n.preventDefault(),!t.isDisabled()&&!i.parent().hasClass(H.DISABLED)){var f=s.option,g=e(f),y=f.selected,b=g.parent("optgroup"),x=b.find("option"),w=t.options.maxOptions,_=b.data("maxOptions")||!1;if(l===t.activeIndex&&(r=!0),r||(t.prevActiveIndex=t.activeIndex,t.activeIndex=void 0),t.multiple){if(f.selected=!y,t.setSelected(l,!y),t.focusedParent.focus(),!1!==w||!1!==_){var k=w
    ');A[2]&&(T=T.replace("{var}",A[2][w>1?0:1]),M=M.replace("{var}",A[2][_>1?0:1])),f.selected=!1,t.$menu.append(O),w&&k&&(O.append(e("
    "+T+"
    ")),d=!1,t.$element.trigger("maxReached.bs.select")),_&&E&&(O.append(e("
    "+M+"
    ")),d=!1,t.$element.trigger("maxReachedGrp.bs.select")),setTimeout((function(){t.setSelected(l,!1)}),10),O[0].classList.add("fadeOut"),setTimeout((function(){O.remove()}),1050)}}}else h&&(h.selected=!1),f.selected=!0,t.setSelected(l,!0);!t.multiple||t.multiple&&1===t.options.maxOptions?t.$button.trigger("focus"):t.options.liveSearch&&t.$searchbox.trigger("focus"),d&&(t.multiple||u!==o.selectedIndex)&&(v=[f.index,g.prop("selected"),c],t.$element.triggerNative("change"))}})),this.$menu.on("click","li."+H.DISABLED+" a, ."+H.POPOVERHEADER+", ."+H.POPOVERHEADER+" :not(.close)",(function(n){n.currentTarget==this&&(n.preventDefault(),n.stopPropagation(),t.options.liveSearch&&!e(n.target).hasClass("close")?t.$searchbox.trigger("focus"):t.$button.trigger("focus"))})),this.$menuInner.on("click",".divider, .dropdown-header",(function(e){e.preventDefault(),e.stopPropagation(),t.options.liveSearch?t.$searchbox.trigger("focus"):t.$button.trigger("focus")})),this.$menu.on("click","."+H.POPOVERHEADER+" .close",(function(){t.$button.trigger("click")})),this.$searchbox.on("click",(function(e){e.stopPropagation()})),this.$menu.on("click",".actions-btn",(function(n){t.options.liveSearch?t.$searchbox.trigger("focus"):t.$button.trigger("focus"),n.preventDefault(),n.stopPropagation(),e(this).hasClass("bs-select-all")?t.selectAll():t.deselectAll()})),this.$button.on("focus.bs.select",(function(e){var n=t.$element[0].getAttribute("tabindex");void 0!==n&&e.originalEvent&&e.originalEvent.isTrusted&&(this.setAttribute("tabindex",n),t.$element[0].setAttribute("tabindex",-1),t.selectpicker.view.tabindex=n)})).on("blur.bs.select",(function(e){void 0!==t.selectpicker.view.tabindex&&e.originalEvent&&e.originalEvent.isTrusted&&(t.$element[0].setAttribute("tabindex",t.selectpicker.view.tabindex),this.setAttribute("tabindex",-1),t.selectpicker.view.tabindex=void 0)})),this.$element.on("change.bs.select",(function(){t.render(),t.$element.trigger("changed.bs.select",v),v=null})).on("focus.bs.select",(function(){t.options.mobile||t.$button[0].focus()}))},liveSearchListener:function(){var e=this;this.$button.on("click.bs.dropdown.data-api",(function(){e.$searchbox.val()&&(e.$searchbox.val(""),e.selectpicker.search.previousValue=void 0)})),this.$searchbox.on("click.bs.dropdown.data-api focus.bs.dropdown.data-api touchend.bs.dropdown.data-api",(function(e){e.stopPropagation()})),this.$searchbox.on("input propertychange",(function(){var t=e.$searchbox[0].value;if(e.selectpicker.search.elements=[],e.selectpicker.search.data=[],t){var n=[],r=t.toUpperCase(),i={},o=[],a=e._searchStyle(),s=e.options.liveSearchNormalize;s&&(r=C(r));for(var l=0;l0&&(i[c.headerIndex-1]=!0,o.push(c.headerIndex-1)),i[c.headerIndex]=!0,o.push(c.headerIndex),i[c.lastIndex+1]=!0),i[l]&&"optgroup-label"!==c.type&&o.push(l)}l=0;for(var u=o.length;l=112&&t.which<=123))if(!(r=c.$newElement.hasClass(H.SHOW))&&(f||t.which>=48&&t.which<=57||t.which>=96&&t.which<=105||t.which>=65&&t.which<=90)&&(c.$button.trigger("click.bs.dropdown.data-api"),c.options.liveSearch))c.$searchbox.trigger("focus");else{if(t.which===P&&r&&(t.preventDefault(),c.$button.trigger("click.bs.dropdown.data-api").trigger("focus")),f){if(!u.length)return;-1!==(n=(i=c.selectpicker.main.elements[c.activeIndex])?Array.prototype.indexOf.call(i.parentElement.children,i):-1)&&c.defocusItem(i),t.which===j?(-1!==n&&n--,n+m<0&&(n+=u.length),c.selectpicker.view.canHighlight[n+m]||-1==(n=c.selectpicker.view.canHighlight.slice(0,n+m).lastIndexOf(!0)-m)&&(n=u.length-1)):(t.which===L||d)&&(++n+m>=c.selectpicker.view.canHighlight.length&&(n=c.selectpicker.view.firstHighlightIndex),c.selectpicker.view.canHighlight[n+m]||(n=n+1+c.selectpicker.view.canHighlight.slice(n+m+1).indexOf(!0))),t.preventDefault();var g=m+n;t.which===j?0===m&&n===u.length-1?(c.$menuInner[0].scrollTop=c.$menuInner[0].scrollHeight,g=c.selectpicker.current.elements.length-1):h=(a=(o=c.selectpicker.current.data[g]).position-o.height)p),i=c.selectpicker.current.elements[g],c.activeIndex=c.selectpicker.current.data[g].index,c.focusItem(i),c.selectpicker.view.currentActive=i,h&&(c.$menuInner[0].scrollTop=a),c.options.liveSearch?c.$searchbox.trigger("focus"):s.trigger("focus")}else if(!s.is("input")&&!V.test(t.which)||t.which===I&&c.selectpicker.keydown.keyHistory){var v,y,x=[];t.preventDefault(),c.selectpicker.keydown.keyHistory+=F[t.which],c.selectpicker.keydown.resetKeyHistory.cancel&&clearTimeout(c.selectpicker.keydown.resetKeyHistory.cancel),c.selectpicker.keydown.resetKeyHistory.cancel=c.selectpicker.keydown.resetKeyHistory.start(),y=c.selectpicker.keydown.keyHistory,/^(.)\1+$/.test(y)&&(y=y.charAt(0));for(var w=0;w0?(a=o.position-o.height,h=!0):(a=o.position-c.sizeInfo.menuInnerHeight,h=o.position>p+c.sizeInfo.menuInnerHeight),i=c.selectpicker.main.elements[v],c.activeIndex=x[k],c.focusItem(i),i&&i.firstChild.focus(),h&&(c.$menuInner[0].scrollTop=a),s.trigger("focus")}}r&&(t.which===I&&!c.selectpicker.keydown.keyHistory||t.which===N||t.which===B&&c.options.selectOnTab)&&(t.which!==I&&t.preventDefault(),c.options.liveSearch&&t.which===I||(c.$menuInner.find(".active a").trigger("click",!0),s.trigger("focus"),c.options.liveSearch||(t.preventDefault(),e(document).data("spaceSelect",!0))))}},mobile:function(){this.options.mobile=!0,this.$element[0].classList.add("mobile-device")},refresh:function(){var t=e.extend({},this.options,this.$element.data());this.options=t,this.checkDisabled(),this.buildData(),this.setStyle(),this.render(),this.buildList(),this.setWidth(),this.setSize(!0),this.$element.trigger("refreshed.bs.select")},hide:function(){this.$newElement.hide()},show:function(){this.$newElement.show()},remove:function(){this.$newElement.remove(),this.$element.remove()},destroy:function(){this.$newElement.before(this.$element).remove(),this.$bsContainer?this.$bsContainer.remove():this.$menu.remove(),this.selectpicker.view.titleOption&&this.selectpicker.view.titleOption.parentNode&&this.selectpicker.view.titleOption.parentNode.removeChild(this.selectpicker.view.titleOption),this.$element.off($).removeData("selectpicker").removeClass("bs-select-hidden selectpicker"),e(window).off(".bs.select."+this.selectId)}};var Z=e.fn.selectpicker;function K(){if(e.fn.dropdown)return(e.fn.dropdown.Constructor._dataApiKeydownHandler||e.fn.dropdown.Constructor.prototype.keydown).apply(this,arguments)}e.fn.selectpicker=J,e.fn.selectpicker.Constructor=Y,e.fn.selectpicker.noConflict=function(){return e.fn.selectpicker=Z,this},e(document).off("keydown.bs.dropdown.data-api").on("keydown.bs.dropdown.data-api",':not(.bootstrap-select) > [data-toggle="dropdown"]',K).on("keydown.bs.dropdown.data-api",":not(.bootstrap-select) > .dropdown-menu",K).on("keydown.bs.select",'.bootstrap-select [data-toggle="dropdown"], .bootstrap-select [role="listbox"], .bootstrap-select .bs-searchbox input',Y.prototype.keydown).on("focusin.modal",'.bootstrap-select [data-toggle="dropdown"], .bootstrap-select [role="listbox"], .bootstrap-select .bs-searchbox input',(function(e){e.stopPropagation()})),e(window).on("load.bs.select.data-api",(function(){e(".selectpicker").each((function(){var t=e(this);J.call(t,t.data())}))}))}(e)}.apply(t,r),void 0===i||(e.exports=i)},3734:function(e,t,n){!function(e,t,n){"use strict";function r(e,t){for(var n=0;n=4)throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}};u.jQueryDetection(),t.fn.emulateTransitionEnd=c,t.event.special[u.TRANSITION_END]={bindType:l,delegateType:l,handle:function(e){if(t(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}};var h="bs.alert",d=t.fn.alert,f={CLOSE:"close.bs.alert",CLOSED:"closed.bs.alert",CLICK_DATA_API:"click.bs.alert.data-api"},p="alert",m="fade",g="show",v=function(){function e(e){this._element=e}var n=e.prototype;return n.close=function(e){var t=this._element;e&&(t=this._getRootElement(e)),this._triggerCloseEvent(t).isDefaultPrevented()||this._removeElement(t)},n.dispose=function(){t.removeData(this._element,h),this._element=null},n._getRootElement=function(e){var n=u.getSelectorFromElement(e),r=!1;return n&&(r=document.querySelector(n)),r||(r=t(e).closest("."+p)[0]),r},n._triggerCloseEvent=function(e){var n=t.Event(f.CLOSE);return t(e).trigger(n),n},n._removeElement=function(e){var n=this;if(t(e).removeClass(g),t(e).hasClass(m)){var r=u.getTransitionDurationFromElement(e);t(e).one(u.TRANSITION_END,(function(t){return n._destroyElement(e,t)})).emulateTransitionEnd(r)}else this._destroyElement(e)},n._destroyElement=function(e){t(e).detach().trigger(f.CLOSED).remove()},e._jQueryInterface=function(n){return this.each((function(){var r=t(this),i=r.data(h);i||(i=new e(this),r.data(h,i)),"close"===n&&i[n](this)}))},e._handleDismiss=function(e){return function(t){t&&t.preventDefault(),e.close(this)}},i(e,null,[{key:"VERSION",get:function(){return"4.4.1"}}]),e}();t(document).on(f.CLICK_DATA_API,'[data-dismiss="alert"]',v._handleDismiss(new v)),t.fn.alert=v._jQueryInterface,t.fn.alert.Constructor=v,t.fn.alert.noConflict=function(){return t.fn.alert=d,v._jQueryInterface};var y="bs.button",b=t.fn.button,x="active",w="btn",_="focus",k='[data-toggle^="button"]',E='[data-toggle="buttons"]',C='[data-toggle="button"]',S='[data-toggle="buttons"] .btn',D='input:not([type="hidden"])',A=".active",T=".btn",M={CLICK_DATA_API:"click.bs.button.data-api",FOCUS_BLUR_DATA_API:"focus.bs.button.data-api blur.bs.button.data-api",LOAD_DATA_API:"load.bs.button.data-api"},O=function(){function e(e){this._element=e}var n=e.prototype;return n.toggle=function(){var e=!0,n=!0,r=t(this._element).closest(E)[0];if(r){var i=this._element.querySelector(D);if(i){if("radio"===i.type)if(i.checked&&this._element.classList.contains(x))e=!1;else{var o=r.querySelector(A);o&&t(o).removeClass(x)}else"checkbox"===i.type?"LABEL"===this._element.tagName&&i.checked===this._element.classList.contains(x)&&(e=!1):e=!1;e&&(i.checked=!this._element.classList.contains(x),t(i).trigger("change")),i.focus(),n=!1}}this._element.hasAttribute("disabled")||this._element.classList.contains("disabled")||(n&&this._element.setAttribute("aria-pressed",!this._element.classList.contains(x)),e&&t(this._element).toggleClass(x))},n.dispose=function(){t.removeData(this._element,y),this._element=null},e._jQueryInterface=function(n){return this.each((function(){var r=t(this).data(y);r||(r=new e(this),t(this).data(y,r)),"toggle"===n&&r[n]()}))},i(e,null,[{key:"VERSION",get:function(){return"4.4.1"}}]),e}();t(document).on(M.CLICK_DATA_API,k,(function(e){var n=e.target;if(t(n).hasClass(w)||(n=t(n).closest(T)[0]),!n||n.hasAttribute("disabled")||n.classList.contains("disabled"))e.preventDefault();else{var r=n.querySelector(D);if(r&&(r.hasAttribute("disabled")||r.classList.contains("disabled")))return void e.preventDefault();O._jQueryInterface.call(t(n),"toggle")}})).on(M.FOCUS_BLUR_DATA_API,k,(function(e){var n=t(e.target).closest(T)[0];t(n).toggleClass(_,/^focus(in)?$/.test(e.type))})),t(window).on(M.LOAD_DATA_API,(function(){for(var e=[].slice.call(document.querySelectorAll(S)),t=0,n=e.length;t0,this._pointerEvent=Boolean(window.PointerEvent||window.MSPointerEvent),this._addEventListeners()}var n=e.prototype;return n.next=function(){this._isSliding||this._slide(L)},n.nextWhenVisible=function(){!document.hidden&&t(this._element).is(":visible")&&"hidden"!==t(this._element).css("visibility")&&this.next()},n.prev=function(){this._isSliding||this._slide(z)},n.pause=function(e){e||(this._isPaused=!0),this._element.querySelector(te)&&(u.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},n.cycle=function(e){e||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},n.to=function(e){var n=this;this._activeElement=this._element.querySelector(K);var r=this._getItemIndex(this._activeElement);if(!(e>this._items.length-1||e<0))if(this._isSliding)t(this._element).one(H.SLID,(function(){return n.to(e)}));else{if(r===e)return this.pause(),void this.cycle();var i=e>r?L:z;this._slide(i,this._items[e])}},n.dispose=function(){t(this._element).off(N),t.removeData(this._element,P),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},n._getConfig=function(e){return e=s({},B,{},e),u.typeCheckConfig(F,e,j),e},n._handleSwipe=function(){var e=Math.abs(this.touchDeltaX);if(!(e<=40)){var t=e/this.touchDeltaX;this.touchDeltaX=0,t>0&&this.prev(),t<0&&this.next()}},n._addEventListeners=function(){var e=this;this._config.keyboard&&t(this._element).on(H.KEYDOWN,(function(t){return e._keydown(t)})),"hover"===this._config.pause&&t(this._element).on(H.MOUSEENTER,(function(t){return e.pause(t)})).on(H.MOUSELEAVE,(function(t){return e.cycle(t)})),this._config.touch&&this._addTouchEventListeners()},n._addTouchEventListeners=function(){var e=this;if(this._touchSupported){var n=function(t){e._pointerEvent&&oe[t.originalEvent.pointerType.toUpperCase()]?e.touchStartX=t.originalEvent.clientX:e._pointerEvent||(e.touchStartX=t.originalEvent.touches[0].clientX)},r=function(t){e._pointerEvent&&oe[t.originalEvent.pointerType.toUpperCase()]&&(e.touchDeltaX=t.originalEvent.clientX-e.touchStartX),e._handleSwipe(),"hover"===e._config.pause&&(e.pause(),e.touchTimeout&&clearTimeout(e.touchTimeout),e.touchTimeout=setTimeout((function(t){return e.cycle(t)}),500+e._config.interval))};t(this._element.querySelectorAll(ee)).on(H.DRAG_START,(function(e){return e.preventDefault()})),this._pointerEvent?(t(this._element).on(H.POINTERDOWN,(function(e){return n(e)})),t(this._element).on(H.POINTERUP,(function(e){return r(e)})),this._element.classList.add(J)):(t(this._element).on(H.TOUCHSTART,(function(e){return n(e)})),t(this._element).on(H.TOUCHMOVE,(function(t){return function(t){t.originalEvent.touches&&t.originalEvent.touches.length>1?e.touchDeltaX=0:e.touchDeltaX=t.originalEvent.touches[0].clientX-e.touchStartX}(t)})),t(this._element).on(H.TOUCHEND,(function(e){return r(e)})))}},n._keydown=function(e){if(!/input|textarea/i.test(e.target.tagName))switch(e.which){case 37:e.preventDefault(),this.prev();break;case 39:e.preventDefault(),this.next()}},n._getItemIndex=function(e){return this._items=e&&e.parentNode?[].slice.call(e.parentNode.querySelectorAll(Q)):[],this._items.indexOf(e)},n._getItemByDirection=function(e,t){var n=e===L,r=e===z,i=this._getItemIndex(t),o=this._items.length-1;if((r&&0===i||n&&i===o)&&!this._config.wrap)return t;var a=(i+(e===z?-1:1))%this._items.length;return-1===a?this._items[this._items.length-1]:this._items[a]},n._triggerSlideEvent=function(e,n){var r=this._getItemIndex(e),i=this._getItemIndex(this._element.querySelector(K)),o=t.Event(H.SLIDE,{relatedTarget:e,direction:n,from:i,to:r});return t(this._element).trigger(o),o},n._setActiveIndicatorElement=function(e){if(this._indicatorsElement){var n=[].slice.call(this._indicatorsElement.querySelectorAll(Z));t(n).removeClass(q);var r=this._indicatorsElement.children[this._getItemIndex(e)];r&&t(r).addClass(q)}},n._slide=function(e,n){var r,i,o,a=this,s=this._element.querySelector(K),l=this._getItemIndex(s),c=n||s&&this._getItemByDirection(e,s),h=this._getItemIndex(c),d=Boolean(this._interval);if(e===L?(r=G,i=X,o=R):(r=V,i=Y,o=$),c&&t(c).hasClass(q))this._isSliding=!1;else if(!this._triggerSlideEvent(c,o).isDefaultPrevented()&&s&&c){this._isSliding=!0,d&&this.pause(),this._setActiveIndicatorElement(c);var f=t.Event(H.SLID,{relatedTarget:c,direction:o,from:l,to:h});if(t(this._element).hasClass(W)){t(c).addClass(i),u.reflow(c),t(s).addClass(r),t(c).addClass(r);var p=parseInt(c.getAttribute("data-interval"),10);p?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,this._config.interval=p):this._config.interval=this._config.defaultInterval||this._config.interval;var m=u.getTransitionDurationFromElement(s);t(s).one(u.TRANSITION_END,(function(){t(c).removeClass(r+" "+i).addClass(q),t(s).removeClass(q+" "+i+" "+r),a._isSliding=!1,setTimeout((function(){return t(a._element).trigger(f)}),0)})).emulateTransitionEnd(m)}else t(s).removeClass(q),t(c).addClass(q),this._isSliding=!1,t(this._element).trigger(f);d&&this.cycle()}},e._jQueryInterface=function(n){return this.each((function(){var r=t(this).data(P),i=s({},B,{},t(this).data());"object"==typeof n&&(i=s({},i,{},n));var o="string"==typeof n?n:i.slide;if(r||(r=new e(this,i),t(this).data(P,r)),"number"==typeof n)r.to(n);else if("string"==typeof o){if(void 0===r[o])throw new TypeError('No method named "'+o+'"');r[o]()}else i.interval&&i.ride&&(r.pause(),r.cycle())}))},e._dataApiClickHandler=function(n){var r=u.getSelectorFromElement(this);if(r){var i=t(r)[0];if(i&&t(i).hasClass(U)){var o=s({},t(i).data(),{},t(this).data()),a=this.getAttribute("data-slide-to");a&&(o.interval=!1),e._jQueryInterface.call(t(i),o),a&&t(i).data(P).to(a),n.preventDefault()}}},i(e,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return B}}]),e}();t(document).on(H.CLICK_DATA_API,re,ae._dataApiClickHandler),t(window).on(H.LOAD_DATA_API,(function(){for(var e=[].slice.call(document.querySelectorAll(ie)),n=0,r=e.length;n0&&(this._selector=a,this._triggerArray.push(o))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}var n=e.prototype;return n.toggle=function(){t(this._element).hasClass(fe)?this.hide():this.show()},n.show=function(){var n,r,i=this;if(!(this._isTransitioning||t(this._element).hasClass(fe)||(this._parent&&0===(n=[].slice.call(this._parent.querySelectorAll(be)).filter((function(e){return"string"==typeof i._config.parent?e.getAttribute("data-parent")===i._config.parent:e.classList.contains(pe)}))).length&&(n=null),n&&(r=t(n).not(this._selector).data(le))&&r._isTransitioning))){var o=t.Event(de.SHOW);if(t(this._element).trigger(o),!o.isDefaultPrevented()){n&&(e._jQueryInterface.call(t(n).not(this._selector),"hide"),r||t(n).data(le,null));var a=this._getDimension();t(this._element).removeClass(pe).addClass(me),this._element.style[a]=0,this._triggerArray.length&&t(this._triggerArray).removeClass(ge).attr("aria-expanded",!0),this.setTransitioning(!0);var s="scroll"+(a[0].toUpperCase()+a.slice(1)),l=u.getTransitionDurationFromElement(this._element);t(this._element).one(u.TRANSITION_END,(function(){t(i._element).removeClass(me).addClass(pe).addClass(fe),i._element.style[a]="",i.setTransitioning(!1),t(i._element).trigger(de.SHOWN)})).emulateTransitionEnd(l),this._element.style[a]=this._element[s]+"px"}}},n.hide=function(){var e=this;if(!this._isTransitioning&&t(this._element).hasClass(fe)){var n=t.Event(de.HIDE);if(t(this._element).trigger(n),!n.isDefaultPrevented()){var r=this._getDimension();this._element.style[r]=this._element.getBoundingClientRect()[r]+"px",u.reflow(this._element),t(this._element).addClass(me).removeClass(pe).removeClass(fe);var i=this._triggerArray.length;if(i>0)for(var o=0;o0},r._getOffset=function(){var e=this,t={};return"function"==typeof this._config.offset?t.fn=function(t){return t.offsets=s({},t.offsets,{},e._config.offset(t.offsets,e._element)||{}),t}:t.offset=this._config.offset,t},r._getPopperConfig=function(){var e={placement:this._getPlacement(),modifiers:{offset:this._getOffset(),flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}};return"static"===this._config.display&&(e.modifiers.applyStyle={enabled:!1}),s({},e,{},this._config.popperConfig)},e._jQueryInterface=function(n){return this.each((function(){var r=t(this).data(ke);if(r||(r=new e(this,"object"==typeof n?n:null),t(this).data(ke,r)),"string"==typeof n){if(void 0===r[n])throw new TypeError('No method named "'+n+'"');r[n]()}}))},e._clearMenus=function(n){if(!n||3!==n.which&&("keyup"!==n.type||9===n.which))for(var r=[].slice.call(document.querySelectorAll(Ie)),i=0,o=r.length;i0&&a--,40===n.which&&adocument.documentElement.clientHeight;!this._isBodyOverflowing&&e&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!e&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},n._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},n._checkScrollbar=function(){var e=document.body.getBoundingClientRect();this._isBodyOverflowing=e.left+e.right
    ',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent",sanitize:!0,sanitizeFn:null,whiteList:{"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},popperConfig:null},Tt="show",Mt="out",Ot={HIDE:"hide.bs.tooltip",HIDDEN:"hidden.bs.tooltip",SHOW:"show.bs.tooltip",SHOWN:"shown.bs.tooltip",INSERTED:"inserted.bs.tooltip",CLICK:"click.bs.tooltip",FOCUSIN:"focusin.bs.tooltip",FOCUSOUT:"focusout.bs.tooltip",MOUSEENTER:"mouseenter.bs.tooltip",MOUSELEAVE:"mouseleave.bs.tooltip"},Ft="fade",Pt="show",Nt=".tooltip-inner",It=".arrow",Bt="hover",jt="focus",Lt="click",zt="manual",Rt=function(){function e(e,t){if(void 0===n)throw new TypeError("Bootstrap's tooltips require Popper.js (https://popper.js.org/)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=e,this.config=this._getConfig(t),this.tip=null,this._setListeners()}var r=e.prototype;return r.enable=function(){this._isEnabled=!0},r.disable=function(){this._isEnabled=!1},r.toggleEnabled=function(){this._isEnabled=!this._isEnabled},r.toggle=function(e){if(this._isEnabled)if(e){var n=this.constructor.DATA_KEY,r=t(e.currentTarget).data(n);r||(r=new this.constructor(e.currentTarget,this._getDelegateConfig()),t(e.currentTarget).data(n,r)),r._activeTrigger.click=!r._activeTrigger.click,r._isWithActiveTrigger()?r._enter(null,r):r._leave(null,r)}else{if(t(this.getTipElement()).hasClass(Pt))return void this._leave(null,this);this._enter(null,this)}},r.dispose=function(){clearTimeout(this._timeout),t.removeData(this.element,this.constructor.DATA_KEY),t(this.element).off(this.constructor.EVENT_KEY),t(this.element).closest(".modal").off("hide.bs.modal",this._hideModalHandler),this.tip&&t(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},r.show=function(){var e=this;if("none"===t(this.element).css("display"))throw new Error("Please use show on visible elements");var r=t.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){t(this.element).trigger(r);var i=u.findShadowRoot(this.element),o=t.contains(null!==i?i:this.element.ownerDocument.documentElement,this.element);if(r.isDefaultPrevented()||!o)return;var a=this.getTipElement(),s=u.getUID(this.constructor.NAME);a.setAttribute("id",s),this.element.setAttribute("aria-describedby",s),this.setContent(),this.config.animation&&t(a).addClass(Ft);var l="function"==typeof this.config.placement?this.config.placement.call(this,a,this.element):this.config.placement,c=this._getAttachment(l);this.addAttachmentClass(c);var h=this._getContainer();t(a).data(this.constructor.DATA_KEY,this),t.contains(this.element.ownerDocument.documentElement,this.tip)||t(a).appendTo(h),t(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new n(this.element,a,this._getPopperConfig(c)),t(a).addClass(Pt),"ontouchstart"in document.documentElement&&t(document.body).children().on("mouseover",null,t.noop);var d=function(){e.config.animation&&e._fixTransition();var n=e._hoverState;e._hoverState=null,t(e.element).trigger(e.constructor.Event.SHOWN),n===Mt&&e._leave(null,e)};if(t(this.tip).hasClass(Ft)){var f=u.getTransitionDurationFromElement(this.tip);t(this.tip).one(u.TRANSITION_END,d).emulateTransitionEnd(f)}else d()}},r.hide=function(e){var n=this,r=this.getTipElement(),i=t.Event(this.constructor.Event.HIDE),o=function(){n._hoverState!==Tt&&r.parentNode&&r.parentNode.removeChild(r),n._cleanTipClass(),n.element.removeAttribute("aria-describedby"),t(n.element).trigger(n.constructor.Event.HIDDEN),null!==n._popper&&n._popper.destroy(),e&&e()};if(t(this.element).trigger(i),!i.isDefaultPrevented()){if(t(r).removeClass(Pt),"ontouchstart"in document.documentElement&&t(document.body).children().off("mouseover",null,t.noop),this._activeTrigger[Lt]=!1,this._activeTrigger[jt]=!1,this._activeTrigger[Bt]=!1,t(this.tip).hasClass(Ft)){var a=u.getTransitionDurationFromElement(r);t(r).one(u.TRANSITION_END,o).emulateTransitionEnd(a)}else o();this._hoverState=""}},r.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},r.isWithContent=function(){return Boolean(this.getTitle())},r.addAttachmentClass=function(e){t(this.getTipElement()).addClass("bs-tooltip-"+e)},r.getTipElement=function(){return this.tip=this.tip||t(this.config.template)[0],this.tip},r.setContent=function(){var e=this.getTipElement();this.setElementContent(t(e.querySelectorAll(Nt)),this.getTitle()),t(e).removeClass(Ft+" "+Pt)},r.setElementContent=function(e,n){"object"!=typeof n||!n.nodeType&&!n.jquery?this.config.html?(this.config.sanitize&&(n=bt(n,this.config.whiteList,this.config.sanitizeFn)),e.html(n)):e.text(n):this.config.html?t(n).parent().is(e)||e.empty().append(n):e.text(t(n).text())},r.getTitle=function(){var e=this.element.getAttribute("data-original-title");return e||(e="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),e},r._getPopperConfig=function(e){var t=this;return s({},{placement:e,modifiers:{offset:this._getOffset(),flip:{behavior:this.config.fallbackPlacement},arrow:{element:It},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(e){e.originalPlacement!==e.placement&&t._handlePopperPlacementChange(e)},onUpdate:function(e){return t._handlePopperPlacementChange(e)}},{},this.config.popperConfig)},r._getOffset=function(){var e=this,t={};return"function"==typeof this.config.offset?t.fn=function(t){return t.offsets=s({},t.offsets,{},e.config.offset(t.offsets,e.element)||{}),t}:t.offset=this.config.offset,t},r._getContainer=function(){return!1===this.config.container?document.body:u.isElement(this.config.container)?t(this.config.container):t(document).find(this.config.container)},r._getAttachment=function(e){return Dt[e.toUpperCase()]},r._setListeners=function(){var e=this;this.config.trigger.split(" ").forEach((function(n){if("click"===n)t(e.element).on(e.constructor.Event.CLICK,e.config.selector,(function(t){return e.toggle(t)}));else if(n!==zt){var r=n===Bt?e.constructor.Event.MOUSEENTER:e.constructor.Event.FOCUSIN,i=n===Bt?e.constructor.Event.MOUSELEAVE:e.constructor.Event.FOCUSOUT;t(e.element).on(r,e.config.selector,(function(t){return e._enter(t)})).on(i,e.config.selector,(function(t){return e._leave(t)}))}})),this._hideModalHandler=function(){e.element&&e.hide()},t(this.element).closest(".modal").on("hide.bs.modal",this._hideModalHandler),this.config.selector?this.config=s({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},r._fixTitle=function(){var e=typeof this.element.getAttribute("data-original-title");(this.element.getAttribute("title")||"string"!==e)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},r._enter=function(e,n){var r=this.constructor.DATA_KEY;(n=n||t(e.currentTarget).data(r))||(n=new this.constructor(e.currentTarget,this._getDelegateConfig()),t(e.currentTarget).data(r,n)),e&&(n._activeTrigger["focusin"===e.type?jt:Bt]=!0),t(n.getTipElement()).hasClass(Pt)||n._hoverState===Tt?n._hoverState=Tt:(clearTimeout(n._timeout),n._hoverState=Tt,n.config.delay&&n.config.delay.show?n._timeout=setTimeout((function(){n._hoverState===Tt&&n.show()}),n.config.delay.show):n.show())},r._leave=function(e,n){var r=this.constructor.DATA_KEY;(n=n||t(e.currentTarget).data(r))||(n=new this.constructor(e.currentTarget,this._getDelegateConfig()),t(e.currentTarget).data(r,n)),e&&(n._activeTrigger["focusout"===e.type?jt:Bt]=!1),n._isWithActiveTrigger()||(clearTimeout(n._timeout),n._hoverState=Mt,n.config.delay&&n.config.delay.hide?n._timeout=setTimeout((function(){n._hoverState===Mt&&n.hide()}),n.config.delay.hide):n.hide())},r._isWithActiveTrigger=function(){for(var e in this._activeTrigger)if(this._activeTrigger[e])return!0;return!1},r._getConfig=function(e){var n=t(this.element).data();return Object.keys(n).forEach((function(e){-1!==Ct.indexOf(e)&&delete n[e]})),"number"==typeof(e=s({},this.constructor.Default,{},n,{},"object"==typeof e&&e?e:{})).delay&&(e.delay={show:e.delay,hide:e.delay}),"number"==typeof e.title&&(e.title=e.title.toString()),"number"==typeof e.content&&(e.content=e.content.toString()),u.typeCheckConfig(xt,e,this.constructor.DefaultType),e.sanitize&&(e.template=bt(e.template,e.whiteList,e.sanitizeFn)),e},r._getDelegateConfig=function(){var e={};if(this.config)for(var t in this.config)this.constructor.Default[t]!==this.config[t]&&(e[t]=this.config[t]);return e},r._cleanTipClass=function(){var e=t(this.getTipElement()),n=e.attr("class").match(Et);null!==n&&n.length&&e.removeClass(n.join(""))},r._handlePopperPlacementChange=function(e){var t=e.instance;this.tip=t.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(e.placement))},r._fixTransition=function(){var e=this.getTipElement(),n=this.config.animation;null===e.getAttribute("x-placement")&&(t(e).removeClass(Ft),this.config.animation=!1,this.hide(),this.show(),this.config.animation=n)},e._jQueryInterface=function(n){return this.each((function(){var r=t(this).data(wt),i="object"==typeof n&&n;if((r||!/dispose|hide/.test(n))&&(r||(r=new e(this,i),t(this).data(wt,r)),"string"==typeof n)){if(void 0===r[n])throw new TypeError('No method named "'+n+'"');r[n]()}}))},i(e,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return At}},{key:"NAME",get:function(){return xt}},{key:"DATA_KEY",get:function(){return wt}},{key:"Event",get:function(){return Ot}},{key:"EVENT_KEY",get:function(){return _t}},{key:"DefaultType",get:function(){return St}}]),e}();t.fn.tooltip=Rt._jQueryInterface,t.fn.tooltip.Constructor=Rt,t.fn.tooltip.noConflict=function(){return t.fn.tooltip=kt,Rt._jQueryInterface};var $t="popover",Ht="bs.popover",Ut=".bs.popover",qt=t.fn.popover,Wt=new RegExp("(^|\\s)bs-popover\\S+","g"),Vt=s({},Rt.Default,{placement:"right",trigger:"click",content:"",template:''}),Gt=s({},Rt.DefaultType,{content:"(string|element|function)"}),Xt="fade",Yt="show",Jt=".popover-header",Zt=".popover-body",Kt={HIDE:"hide.bs.popover",HIDDEN:"hidden.bs.popover",SHOW:"show.bs.popover",SHOWN:"shown.bs.popover",INSERTED:"inserted.bs.popover",CLICK:"click.bs.popover",FOCUSIN:"focusin.bs.popover",FOCUSOUT:"focusout.bs.popover",MOUSEENTER:"mouseenter.bs.popover",MOUSELEAVE:"mouseleave.bs.popover"},Qt=function(e){function n(){return e.apply(this,arguments)||this}var r,o;o=e,(r=n).prototype=Object.create(o.prototype),r.prototype.constructor=r,r.__proto__=o;var a=n.prototype;return a.isWithContent=function(){return this.getTitle()||this._getContent()},a.addAttachmentClass=function(e){t(this.getTipElement()).addClass("bs-popover-"+e)},a.getTipElement=function(){return this.tip=this.tip||t(this.config.template)[0],this.tip},a.setContent=function(){var e=t(this.getTipElement());this.setElementContent(e.find(Jt),this.getTitle());var n=this._getContent();"function"==typeof n&&(n=n.call(this.element)),this.setElementContent(e.find(Zt),n),e.removeClass(Xt+" "+Yt)},a._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},a._cleanTipClass=function(){var e=t(this.getTipElement()),n=e.attr("class").match(Wt);null!==n&&n.length>0&&e.removeClass(n.join(""))},n._jQueryInterface=function(e){return this.each((function(){var r=t(this).data(Ht),i="object"==typeof e?e:null;if((r||!/dispose|hide/.test(e))&&(r||(r=new n(this,i),t(this).data(Ht,r)),"string"==typeof e)){if(void 0===r[e])throw new TypeError('No method named "'+e+'"');r[e]()}}))},i(n,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return Vt}},{key:"NAME",get:function(){return $t}},{key:"DATA_KEY",get:function(){return Ht}},{key:"Event",get:function(){return Kt}},{key:"EVENT_KEY",get:function(){return Ut}},{key:"DefaultType",get:function(){return Gt}}]),n}(Rt);t.fn.popover=Qt._jQueryInterface,t.fn.popover.Constructor=Qt,t.fn.popover.noConflict=function(){return t.fn.popover=qt,Qt._jQueryInterface};var en="scrollspy",tn="bs.scrollspy",nn="."+tn,rn=t.fn[en],on={offset:10,method:"auto",target:""},an={offset:"number",method:"string",target:"(string|element)"},sn={ACTIVATE:"activate"+nn,SCROLL:"scroll"+nn,LOAD_DATA_API:"load.bs.scrollspy.data-api"},ln="dropdown-item",cn="active",un='[data-spy="scroll"]',hn=".nav, .list-group",dn=".nav-link",fn=".nav-item",pn=".list-group-item",mn=".dropdown",gn=".dropdown-item",vn=".dropdown-toggle",yn="offset",bn="position",xn=function(){function e(e,n){var r=this;this._element=e,this._scrollElement="BODY"===e.tagName?window:e,this._config=this._getConfig(n),this._selector=this._config.target+" "+dn+","+this._config.target+" "+pn+","+this._config.target+" "+gn,this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,t(this._scrollElement).on(sn.SCROLL,(function(e){return r._process(e)})),this.refresh(),this._process()}var n=e.prototype;return n.refresh=function(){var e=this,n=this._scrollElement===this._scrollElement.window?yn:bn,r="auto"===this._config.method?n:this._config.method,i=r===bn?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),[].slice.call(document.querySelectorAll(this._selector)).map((function(e){var n,o=u.getSelectorFromElement(e);if(o&&(n=document.querySelector(o)),n){var a=n.getBoundingClientRect();if(a.width||a.height)return[t(n)[r]().top+i,o]}return null})).filter((function(e){return e})).sort((function(e,t){return e[0]-t[0]})).forEach((function(t){e._offsets.push(t[0]),e._targets.push(t[1])}))},n.dispose=function(){t.removeData(this._element,tn),t(this._scrollElement).off(nn),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},n._getConfig=function(e){if("string"!=typeof(e=s({},on,{},"object"==typeof e&&e?e:{})).target){var n=t(e.target).attr("id");n||(n=u.getUID(en),t(e.target).attr("id",n)),e.target="#"+n}return u.typeCheckConfig(en,e,an),e},n._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},n._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},n._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},n._process=function(){var e=this._getScrollTop()+this._config.offset,t=this._getScrollHeight(),n=this._config.offset+t-this._getOffsetHeight();if(this._scrollHeight!==t&&this.refresh(),e>=n){var r=this._targets[this._targets.length-1];this._activeTarget!==r&&this._activate(r)}else{if(this._activeTarget&&e0)return this._activeTarget=null,void this._clear();for(var i=this._offsets.length;i--;)this._activeTarget!==this._targets[i]&&e>=this._offsets[i]&&(void 0===this._offsets[i+1]||e{"use strict";const r=n(9742),i=n(645),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=l,t.SlowBuffer=function(e){return+e!=e&&(e=0),l.alloc(+e)},t.INSPECT_MAX_BYTES=50;const a=2147483647;function s(e){if(e>a)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,l.prototype),t}function l(e,t,n){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return h(e)}return c(e,t,n)}function c(e,t,n){if("string"==typeof e)return function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!l.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const n=0|m(e,t);let r=s(n);const i=r.write(e,t);return i!==n&&(r=r.slice(0,i)),r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(Y(e,Uint8Array)){const t=new Uint8Array(e);return f(t.buffer,t.byteOffset,t.byteLength)}return d(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(Y(e,ArrayBuffer)||e&&Y(e.buffer,ArrayBuffer))return f(e,t,n);if("undefined"!=typeof SharedArrayBuffer&&(Y(e,SharedArrayBuffer)||e&&Y(e.buffer,SharedArrayBuffer)))return f(e,t,n);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return l.from(r,t,n);const i=function(e){if(l.isBuffer(e)){const t=0|p(e.length),n=s(t);return 0===n.length||e.copy(n,0,0,t),n}return void 0!==e.length?"number"!=typeof e.length||J(e.length)?s(0):d(e):"Buffer"===e.type&&Array.isArray(e.data)?d(e.data):void 0}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return l.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function h(e){return u(e),s(e<0?0:0|p(e))}function d(e){const t=e.length<0?0:0|p(e.length),n=s(t);for(let r=0;r=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|e}function m(e,t){if(l.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Y(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return V(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return G(e).length;default:if(i)return r?-1:V(e).length;t=(""+t).toLowerCase(),i=!0}}function g(e,t,n){let r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return M(this,t,n);case"utf8":case"utf-8":return S(this,t,n);case"ascii":return A(this,t,n);case"latin1":case"binary":return T(this,t,n);case"base64":return C(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function v(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function y(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),J(n=+n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=l.from(t,r)),l.isBuffer(t))return 0===t.length?-1:b(e,t,n,r,i);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):b(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function b(e,t,n,r,i){let o,a=1,s=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,l/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){let r=-1;for(o=n;os&&(n=s-l),o=n;o>=0;o--){let n=!0;for(let r=0;ri&&(r=i):r=i;const o=t.length;let a;for(r>o/2&&(r=o/2),a=0;a>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function C(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function S(e,t,n){n=Math.min(e.length,n);const r=[];let i=t;for(;i239?4:t>223?3:t>191?2:1;if(i+a<=n){let n,r,s,l;switch(a){case 1:t<128&&(o=t);break;case 2:n=e[i+1],128==(192&n)&&(l=(31&t)<<6|63&n,l>127&&(o=l));break;case 3:n=e[i+1],r=e[i+2],128==(192&n)&&128==(192&r)&&(l=(15&t)<<12|(63&n)<<6|63&r,l>2047&&(l<55296||l>57343)&&(o=l));break;case 4:n=e[i+1],r=e[i+2],s=e[i+3],128==(192&n)&&128==(192&r)&&128==(192&s)&&(l=(15&t)<<18|(63&n)<<12|(63&r)<<6|63&s,l>65535&&l<1114112&&(o=l))}}null===o?(o=65533,a=1):o>65535&&(o-=65536,r.push(o>>>10&1023|55296),o=56320|1023&o),r.push(o),i+=a}return function(e){const t=e.length;if(t<=D)return String.fromCharCode.apply(String,e);let n="",r=0;for(;rr.length?(l.isBuffer(t)||(t=l.from(t)),t.copy(r,i)):Uint8Array.prototype.set.call(r,t,i);else{if(!l.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(r,i)}i+=t.length}return r},l.byteLength=m,l.prototype._isBuffer=!0,l.prototype.swap16=function(){const e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;tn&&(e+=" ... "),""},o&&(l.prototype[o]=l.prototype.inspect),l.prototype.compare=function(e,t,n,r,i){if(Y(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),!l.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;let o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0);const s=Math.min(o,a),c=this.slice(r,i),u=e.slice(t,n);for(let e=0;e>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}const i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let o=!1;for(;;)switch(r){case"hex":return x(this,e,t,n);case"utf8":case"utf-8":return w(this,e,t,n);case"ascii":case"latin1":case"binary":return _(this,e,t,n);case"base64":return k(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const D=4096;function A(e,t,n){let r="";n=Math.min(e.length,n);for(let i=t;ir)&&(n=r);let i="";for(let r=t;rn)throw new RangeError("Trying to access beyond buffer length")}function P(e,t,n,r,i,o){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function N(e,t,n,r,i){H(t,r,i,e,n,7);let o=Number(t&BigInt(4294967295));e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,n}function I(e,t,n,r,i){H(t,r,i,e,n,7);let o=Number(t&BigInt(4294967295));e[n+7]=o,o>>=8,e[n+6]=o,o>>=8,e[n+5]=o,o>>=8,e[n+4]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=a,a>>=8,e[n+2]=a,a>>=8,e[n+1]=a,a>>=8,e[n]=a,n+8}function B(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function j(e,t,n,r,o){return t=+t,n>>>=0,o||B(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function L(e,t,n,r,o){return t=+t,n>>>=0,o||B(e,0,n,8),i.write(e,t,n,r,52,8),n+8}l.prototype.slice=function(e,t){const n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t>>=0,t>>>=0,n||F(e,t,this.length);let r=this[e],i=1,o=0;for(;++o>>=0,t>>>=0,n||F(e,t,this.length);let r=this[e+--t],i=1;for(;t>0&&(i*=256);)r+=this[e+--t]*i;return r},l.prototype.readUint8=l.prototype.readUInt8=function(e,t){return e>>>=0,t||F(e,1,this.length),this[e]},l.prototype.readUint16LE=l.prototype.readUInt16LE=function(e,t){return e>>>=0,t||F(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUint16BE=l.prototype.readUInt16BE=function(e,t){return e>>>=0,t||F(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUint32LE=l.prototype.readUInt32LE=function(e,t){return e>>>=0,t||F(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUint32BE=l.prototype.readUInt32BE=function(e,t){return e>>>=0,t||F(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readBigUInt64LE=K((function(e){U(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||q(e,this.length-8);const r=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,i=this[++e]+256*this[++e]+65536*this[++e]+n*2**24;return BigInt(r)+(BigInt(i)<>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||q(e,this.length-8);const r=t*2**24+65536*this[++e]+256*this[++e]+this[++e],i=this[++e]*2**24+65536*this[++e]+256*this[++e]+n;return(BigInt(r)<>>=0,t>>>=0,n||F(e,t,this.length);let r=this[e],i=1,o=0;for(;++o=i&&(r-=Math.pow(2,8*t)),r},l.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||F(e,t,this.length);let r=t,i=1,o=this[e+--r];for(;r>0&&(i*=256);)o+=this[e+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},l.prototype.readInt8=function(e,t){return e>>>=0,t||F(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){e>>>=0,t||F(e,2,this.length);const n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(e,t){e>>>=0,t||F(e,2,this.length);const n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(e,t){return e>>>=0,t||F(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return e>>>=0,t||F(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readBigInt64LE=K((function(e){U(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||q(e,this.length-8);const r=this[e+4]+256*this[e+5]+65536*this[e+6]+(n<<24);return(BigInt(r)<>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||q(e,this.length-8);const r=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(r)<>>=0,t||F(e,4,this.length),i.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return e>>>=0,t||F(e,4,this.length),i.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return e>>>=0,t||F(e,8,this.length),i.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return e>>>=0,t||F(e,8,this.length),i.read(this,e,!1,52,8)},l.prototype.writeUintLE=l.prototype.writeUIntLE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||P(this,e,t,n,Math.pow(2,8*n)-1,0);let i=1,o=0;for(this[t]=255&e;++o>>=0,n>>>=0,r||P(this,e,t,n,Math.pow(2,8*n)-1,0);let i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},l.prototype.writeUint8=l.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,1,255,0),this[t]=255&e,t+1},l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeBigUInt64LE=K((function(e,t=0){return N(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),l.prototype.writeBigUInt64BE=K((function(e,t=0){return I(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),l.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);P(this,e,t,n,r-1,-r)}let i=0,o=1,a=0;for(this[t]=255&e;++i>0)-a&255;return t+n},l.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);P(this,e,t,n,r-1,-r)}let i=n-1,o=1,a=0;for(this[t+i]=255&e;--i>=0&&(o*=256);)e<0&&0===a&&0!==this[t+i+1]&&(a=1),this[t+i]=(e/o>>0)-a&255;return t+n},l.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},l.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeBigInt64LE=K((function(e,t=0){return N(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),l.prototype.writeBigInt64BE=K((function(e,t=0){return I(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),l.prototype.writeFloatLE=function(e,t,n){return j(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return j(this,e,t,!1,n)},l.prototype.writeDoubleLE=function(e,t,n){return L(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return L(this,e,t,!1,n)},l.prototype.copy=function(e,t,n,r){if(!l.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i=r+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function H(e,t,n,r,i,o){if(e>n||e3?0===t||t===BigInt(0)?`>= 0${r} and < 2${r} ** ${8*(o+1)}${r}`:`>= -(2${r} ** ${8*(o+1)-1}${r}) and < 2 ** ${8*(o+1)-1}${r}`:`>= ${t}${r} and <= ${n}${r}`,new z.ERR_OUT_OF_RANGE("value",i,e)}!function(e,t,n){U(t,"offset"),void 0!==e[t]&&void 0!==e[t+n]||q(t,e.length-(n+1))}(r,i,o)}function U(e,t){if("number"!=typeof e)throw new z.ERR_INVALID_ARG_TYPE(t,"number",e)}function q(e,t,n){if(Math.floor(e)!==e)throw U(e,n),new z.ERR_OUT_OF_RANGE(n||"offset","an integer",e);if(t<0)throw new z.ERR_BUFFER_OUT_OF_BOUNDS;throw new z.ERR_OUT_OF_RANGE(n||"offset",`>= ${n?1:0} and <= ${t}`,e)}R("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),R("ERR_INVALID_ARG_TYPE",(function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`}),TypeError),R("ERR_OUT_OF_RANGE",(function(e,t,n){let r=`The value of "${e}" is out of range.`,i=n;return Number.isInteger(n)&&Math.abs(n)>2**32?i=$(String(n)):"bigint"==typeof n&&(i=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(i=$(i)),i+="n"),r+=` It must be ${t}. Received ${i}`,r}),RangeError);const W=/[^+/0-9A-Za-z-_]/g;function V(e,t){let n;t=t||1/0;const r=e.length;let i=null;const o=[];for(let a=0;a55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function G(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(W,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function X(e,t,n,r){let i;for(i=0;i=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function Y(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function J(e){return e!=e}const Z=function(){const e="0123456789abcdef",t=new Array(256);for(let n=0;n<16;++n){const r=16*n;for(let i=0;i<16;++i)t[r+i]=e[n]+e[i]}return t}();function K(e){return"undefined"==typeof BigInt?Q:e}function Q(){throw new Error("BigInt not supported")}},487:e=>{var t={utf8:{stringToBytes:function(e){return t.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(t.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],n=0;n{var r=n(8764).Buffer,i=function(){"use strict";function e(e,t){return null!=t&&e instanceof t}var t,n,i;try{t=Map}catch(e){t=function(){}}try{n=Set}catch(e){n=function(){}}try{i=Promise}catch(e){i=function(){}}function o(a,l,c,u,h){"object"==typeof l&&(c=l.depth,u=l.prototype,h=l.includeNonEnumerable,l=l.circular);var d=[],f=[],p=void 0!==r;return void 0===l&&(l=!0),void 0===c&&(c=1/0),function a(c,m){if(null===c)return null;if(0===m)return c;var g,v;if("object"!=typeof c)return c;if(e(c,t))g=new t;else if(e(c,n))g=new n;else if(e(c,i))g=new i((function(e,t){c.then((function(t){e(a(t,m-1))}),(function(e){t(a(e,m-1))}))}));else if(o.__isArray(c))g=[];else if(o.__isRegExp(c))g=new RegExp(c.source,s(c)),c.lastIndex&&(g.lastIndex=c.lastIndex);else if(o.__isDate(c))g=new Date(c.getTime());else{if(p&&r.isBuffer(c))return g=r.allocUnsafe?r.allocUnsafe(c.length):new r(c.length),c.copy(g),g;e(c,Error)?g=Object.create(c):void 0===u?(v=Object.getPrototypeOf(c),g=Object.create(v)):(g=Object.create(u),v=u)}if(l){var y=d.indexOf(c);if(-1!=y)return f[y];d.push(c),f.push(g)}for(var b in e(c,t)&&c.forEach((function(e,t){var n=a(t,m-1),r=a(e,m-1);g.set(n,r)})),e(c,n)&&c.forEach((function(e){var t=a(e,m-1);g.add(t)})),c){var x;v&&(x=Object.getOwnPropertyDescriptor(v,b)),x&&null==x.set||(g[b]=a(c[b],m-1))}if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(c);for(b=0;b{var t,n;t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n={rotl:function(e,t){return e<>>32-t},rotr:function(e,t){return e<<32-t|e>>>t},endian:function(e){if(e.constructor==Number)return 16711935&n.rotl(e,8)|4278255360&n.rotl(e,24);for(var t=0;t0;e--)t.push(Math.floor(256*Math.random()));return t},bytesToWords:function(e){for(var t=[],n=0,r=0;n>>5]|=e[n]<<24-r%32;return t},wordsToBytes:function(e){for(var t=[],n=0;n<32*e.length;n+=8)t.push(e[n>>>5]>>>24-n%32&255);return t},bytesToHex:function(e){for(var t=[],n=0;n>>4).toString(16)),t.push((15&e[n]).toString(16));return t.join("")},hexToBytes:function(e){for(var t=[],n=0;n>>6*(3-o)&63)):n.push("=");return n.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var n=[],r=0,i=0;r>>6-2*i);return n}},e.exports=n},1072:function(e){var t;t=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}return n.m=e,n.c=t,n.p="",n(0)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=n(3),o=n(8),a=n(15);function s(e,t,n){var a=null,s=function(e,t){n&&n(e,t),a&&a.visit(e,t)},l="function"==typeof n?s:null,c=!1;if(t){c="boolean"==typeof t.comment&&t.comment;var u="boolean"==typeof t.attachComment&&t.attachComment;(c||u)&&((a=new r.CommentHandler).attach=u,t.comment=!0,l=s)}var h,d=!1;t&&"string"==typeof t.sourceType&&(d="module"===t.sourceType),h=t&&"boolean"==typeof t.jsx&&t.jsx?new i.JSXParser(e,t,l):new o.Parser(e,t,l);var f=d?h.parseModule():h.parseScript();return c&&a&&(f.comments=a.comments),h.config.tokens&&(f.tokens=h.tokens),h.config.tolerant&&(f.errors=h.errorHandler.errors),f}t.parse=s,t.parseModule=function(e,t,n){var r=t||{};return r.sourceType="module",s(e,r,n)},t.parseScript=function(e,t,n){var r=t||{};return r.sourceType="script",s(e,r,n)},t.tokenize=function(e,t,n){var r,i=new a.Tokenizer(e,t);r=[];try{for(;;){var o=i.getNextToken();if(!o)break;n&&(o=n(o)),r.push(o)}}catch(e){i.errorHandler.tolerate(e)}return i.errorHandler.tolerant&&(r.errors=i.errors()),r};var l=n(2);t.Syntax=l.Syntax,t.version="4.0.1"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2),i=function(){function e(){this.attach=!1,this.comments=[],this.stack=[],this.leading=[],this.trailing=[]}return e.prototype.insertInnerComments=function(e,t){if(e.type===r.Syntax.BlockStatement&&0===e.body.length){for(var n=[],i=this.leading.length-1;i>=0;--i){var o=this.leading[i];t.end.offset>=o.start&&(n.unshift(o.comment),this.leading.splice(i,1),this.trailing.splice(i,1))}n.length&&(e.innerComments=n)}},e.prototype.findTrailingComments=function(e){var t=[];if(this.trailing.length>0){for(var n=this.trailing.length-1;n>=0;--n){var r=this.trailing[n];r.start>=e.end.offset&&t.unshift(r.comment)}return this.trailing.length=0,t}var i=this.stack[this.stack.length-1];if(i&&i.node.trailingComments){var o=i.node.trailingComments[0];o&&o.range[0]>=e.end.offset&&(t=i.node.trailingComments,delete i.node.trailingComments)}return t},e.prototype.findLeadingComments=function(e){for(var t,n=[];this.stack.length>0&&(o=this.stack[this.stack.length-1])&&o.start>=e.start.offset;)t=o.node,this.stack.pop();if(t){for(var r=(t.leadingComments?t.leadingComments.length:0)-1;r>=0;--r){var i=t.leadingComments[r];i.range[1]<=e.start.offset&&(n.unshift(i),t.leadingComments.splice(r,1))}return t.leadingComments&&0===t.leadingComments.length&&delete t.leadingComments,n}for(r=this.leading.length-1;r>=0;--r){var o;(o=this.leading[r]).start<=e.start.offset&&(n.unshift(o.comment),this.leading.splice(r,1))}return n},e.prototype.visitNode=function(e,t){if(!(e.type===r.Syntax.Program&&e.body.length>0)){this.insertInnerComments(e,t);var n=this.findTrailingComments(t),i=this.findLeadingComments(t);i.length>0&&(e.leadingComments=i),n.length>0&&(e.trailingComments=n),this.stack.push({node:e,start:t.start.offset})}},e.prototype.visitComment=function(e,t){var n="L"===e.type[0]?"Line":"Block",r={type:n,value:e.value};if(e.range&&(r.range=e.range),e.loc&&(r.loc=e.loc),this.comments.push(r),this.attach){var i={comment:{type:n,value:e.value,range:[t.start.offset,t.end.offset]},start:t.start.offset};e.loc&&(i.comment.loc=e.loc),e.type=n,this.leading.push(i),this.trailing.push(i)}},e.prototype.visit=function(e,t){"LineComment"===e.type||"BlockComment"===e.type?this.visitComment(e,t):this.attach&&this.visitNode(e,t)},e}();t.CommentHandler=i},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Syntax={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DoWhileStatement:"DoWhileStatement",DebuggerStatement:"DebuggerStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForOfStatement:"ForOfStatement",ForInStatement:"ForInStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",Program:"Program",Property:"Property",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchCase:"SwitchCase",SwitchStatement:"SwitchStatement",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"}},function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var o=n(4),a=n(5),s=n(6),l=n(7),c=n(8),u=n(13),h=n(14);function d(e){var t;switch(e.type){case s.JSXSyntax.JSXIdentifier:t=e.name;break;case s.JSXSyntax.JSXNamespacedName:var n=e;t=d(n.namespace)+":"+d(n.name);break;case s.JSXSyntax.JSXMemberExpression:var r=e;t=d(r.object)+"."+d(r.property)}return t}u.TokenName[100]="JSXIdentifier",u.TokenName[101]="JSXText";var f=function(e){function t(t,n,r){return e.call(this,t,n,r)||this}return i(t,e),t.prototype.parsePrimaryExpression=function(){return this.match("<")?this.parseJSXRoot():e.prototype.parsePrimaryExpression.call(this)},t.prototype.startJSX=function(){this.scanner.index=this.startMarker.index,this.scanner.lineNumber=this.startMarker.line,this.scanner.lineStart=this.startMarker.index-this.startMarker.column},t.prototype.finishJSX=function(){this.nextToken()},t.prototype.reenterJSX=function(){this.startJSX(),this.expectJSX("}"),this.config.tokens&&this.tokens.pop()},t.prototype.createJSXNode=function(){return this.collectComments(),{index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},t.prototype.createJSXChildNode=function(){return{index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},t.prototype.scanXHTMLEntity=function(e){for(var t="&",n=!0,r=!1,i=!1,a=!1;!this.scanner.eof()&&n&&!r;){var s=this.scanner.source[this.scanner.index];if(s===e)break;if(r=";"===s,t+=s,++this.scanner.index,!r)switch(t.length){case 2:i="#"===s;break;case 3:i&&(n=(a="x"===s)||o.Character.isDecimalDigit(s.charCodeAt(0)),i=i&&!a);break;default:n=(n=n&&!(i&&!o.Character.isDecimalDigit(s.charCodeAt(0))))&&!(a&&!o.Character.isHexDigit(s.charCodeAt(0)))}}if(n&&r&&t.length>2){var l=t.substr(1,t.length-2);i&&l.length>1?t=String.fromCharCode(parseInt(l.substr(1),10)):a&&l.length>2?t=String.fromCharCode(parseInt("0"+l.substr(1),16)):i||a||!h.XHTMLEntities[l]||(t=h.XHTMLEntities[l])}return t},t.prototype.lexJSX=function(){var e=this.scanner.source.charCodeAt(this.scanner.index);if(60===e||62===e||47===e||58===e||61===e||123===e||125===e)return{type:7,value:s=this.scanner.source[this.scanner.index++],lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index-1,end:this.scanner.index};if(34===e||39===e){for(var t=this.scanner.index,n=this.scanner.source[this.scanner.index++],r="";!this.scanner.eof()&&(l=this.scanner.source[this.scanner.index++])!==n;)r+="&"===l?this.scanXHTMLEntity(n):l;return{type:8,value:r,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:t,end:this.scanner.index}}if(46===e){var i=this.scanner.source.charCodeAt(this.scanner.index+1),a=this.scanner.source.charCodeAt(this.scanner.index+2),s=46===i&&46===a?"...":".";return t=this.scanner.index,this.scanner.index+=s.length,{type:7,value:s,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:t,end:this.scanner.index}}if(96===e)return{type:10,value:"",lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index,end:this.scanner.index};if(o.Character.isIdentifierStart(e)&&92!==e){for(t=this.scanner.index,++this.scanner.index;!this.scanner.eof();){var l=this.scanner.source.charCodeAt(this.scanner.index);if(o.Character.isIdentifierPart(l)&&92!==l)++this.scanner.index;else{if(45!==l)break;++this.scanner.index}}return{type:100,value:this.scanner.source.slice(t,this.scanner.index),lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:t,end:this.scanner.index}}return this.scanner.lex()},t.prototype.nextJSXToken=function(){this.collectComments(),this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;var e=this.lexJSX();return this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.config.tokens&&this.tokens.push(this.convertToken(e)),e},t.prototype.nextJSXText=function(){this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;for(var e=this.scanner.index,t="";!this.scanner.eof();){var n=this.scanner.source[this.scanner.index];if("{"===n||"<"===n)break;++this.scanner.index,t+=n,o.Character.isLineTerminator(n.charCodeAt(0))&&(++this.scanner.lineNumber,"\r"===n&&"\n"===this.scanner.source[this.scanner.index]&&++this.scanner.index,this.scanner.lineStart=this.scanner.index)}this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart;var r={type:101,value:t,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:e,end:this.scanner.index};return t.length>0&&this.config.tokens&&this.tokens.push(this.convertToken(r)),r},t.prototype.peekJSXToken=function(){var e=this.scanner.saveState();this.scanner.scanComments();var t=this.lexJSX();return this.scanner.restoreState(e),t},t.prototype.expectJSX=function(e){var t=this.nextJSXToken();7===t.type&&t.value===e||this.throwUnexpectedToken(t)},t.prototype.matchJSX=function(e){var t=this.peekJSXToken();return 7===t.type&&t.value===e},t.prototype.parseJSXIdentifier=function(){var e=this.createJSXNode(),t=this.nextJSXToken();return 100!==t.type&&this.throwUnexpectedToken(t),this.finalize(e,new a.JSXIdentifier(t.value))},t.prototype.parseJSXElementName=function(){var e=this.createJSXNode(),t=this.parseJSXIdentifier();if(this.matchJSX(":")){var n=t;this.expectJSX(":");var r=this.parseJSXIdentifier();t=this.finalize(e,new a.JSXNamespacedName(n,r))}else if(this.matchJSX("."))for(;this.matchJSX(".");){var i=t;this.expectJSX(".");var o=this.parseJSXIdentifier();t=this.finalize(e,new a.JSXMemberExpression(i,o))}return t},t.prototype.parseJSXAttributeName=function(){var e,t=this.createJSXNode(),n=this.parseJSXIdentifier();if(this.matchJSX(":")){var r=n;this.expectJSX(":");var i=this.parseJSXIdentifier();e=this.finalize(t,new a.JSXNamespacedName(r,i))}else e=n;return e},t.prototype.parseJSXStringLiteralAttribute=function(){var e=this.createJSXNode(),t=this.nextJSXToken();8!==t.type&&this.throwUnexpectedToken(t);var n=this.getTokenRaw(t);return this.finalize(e,new l.Literal(t.value,n))},t.prototype.parseJSXExpressionAttribute=function(){var e=this.createJSXNode();this.expectJSX("{"),this.finishJSX(),this.match("}")&&this.tolerateError("JSX attributes must only be assigned a non-empty expression");var t=this.parseAssignmentExpression();return this.reenterJSX(),this.finalize(e,new a.JSXExpressionContainer(t))},t.prototype.parseJSXAttributeValue=function(){return this.matchJSX("{")?this.parseJSXExpressionAttribute():this.matchJSX("<")?this.parseJSXElement():this.parseJSXStringLiteralAttribute()},t.prototype.parseJSXNameValueAttribute=function(){var e=this.createJSXNode(),t=this.parseJSXAttributeName(),n=null;return this.matchJSX("=")&&(this.expectJSX("="),n=this.parseJSXAttributeValue()),this.finalize(e,new a.JSXAttribute(t,n))},t.prototype.parseJSXSpreadAttribute=function(){var e=this.createJSXNode();this.expectJSX("{"),this.expectJSX("..."),this.finishJSX();var t=this.parseAssignmentExpression();return this.reenterJSX(),this.finalize(e,new a.JSXSpreadAttribute(t))},t.prototype.parseJSXAttributes=function(){for(var e=[];!this.matchJSX("/")&&!this.matchJSX(">");){var t=this.matchJSX("{")?this.parseJSXSpreadAttribute():this.parseJSXNameValueAttribute();e.push(t)}return e},t.prototype.parseJSXOpeningElement=function(){var e=this.createJSXNode();this.expectJSX("<");var t=this.parseJSXElementName(),n=this.parseJSXAttributes(),r=this.matchJSX("/");return r&&this.expectJSX("/"),this.expectJSX(">"),this.finalize(e,new a.JSXOpeningElement(t,r,n))},t.prototype.parseJSXBoundaryElement=function(){var e=this.createJSXNode();if(this.expectJSX("<"),this.matchJSX("/")){this.expectJSX("/");var t=this.parseJSXElementName();return this.expectJSX(">"),this.finalize(e,new a.JSXClosingElement(t))}var n=this.parseJSXElementName(),r=this.parseJSXAttributes(),i=this.matchJSX("/");return i&&this.expectJSX("/"),this.expectJSX(">"),this.finalize(e,new a.JSXOpeningElement(n,i,r))},t.prototype.parseJSXEmptyExpression=function(){var e=this.createJSXChildNode();return this.collectComments(),this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.finalize(e,new a.JSXEmptyExpression)},t.prototype.parseJSXExpressionContainer=function(){var e,t=this.createJSXNode();return this.expectJSX("{"),this.matchJSX("}")?(e=this.parseJSXEmptyExpression(),this.expectJSX("}")):(this.finishJSX(),e=this.parseAssignmentExpression(),this.reenterJSX()),this.finalize(t,new a.JSXExpressionContainer(e))},t.prototype.parseJSXChildren=function(){for(var e=[];!this.scanner.eof();){var t=this.createJSXChildNode(),n=this.nextJSXText();if(n.start0))break;o=this.finalize(e.node,new a.JSXElement(e.opening,e.children,e.closing)),(e=t[t.length-1]).children.push(o),t.pop()}}return e},t.prototype.parseJSXElement=function(){var e=this.createJSXNode(),t=this.parseJSXOpeningElement(),n=[],r=null;if(!t.selfClosing){var i=this.parseComplexJSXElement({node:e,opening:t,closing:r,children:n});n=i.children,r=i.closing}return this.finalize(e,new a.JSXElement(t,n,r))},t.prototype.parseJSXRoot=function(){this.config.tokens&&this.tokens.pop(),this.startJSX();var e=this.parseJSXElement();return this.finishJSX(),e},t.prototype.isStartOfExpression=function(){return e.prototype.isStartOfExpression.call(this)||this.match("<")},t}(c.Parser);t.JSXParser=f},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFC-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/};t.Character={fromCodePoint:function(e){return e<65536?String.fromCharCode(e):String.fromCharCode(55296+(e-65536>>10))+String.fromCharCode(56320+(e-65536&1023))},isWhiteSpace:function(e){return 32===e||9===e||11===e||12===e||160===e||e>=5760&&[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].indexOf(e)>=0},isLineTerminator:function(e){return 10===e||13===e||8232===e||8233===e},isIdentifierStart:function(e){return 36===e||95===e||e>=65&&e<=90||e>=97&&e<=122||92===e||e>=128&&n.NonAsciiIdentifierStart.test(t.Character.fromCodePoint(e))},isIdentifierPart:function(e){return 36===e||95===e||e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||92===e||e>=128&&n.NonAsciiIdentifierPart.test(t.Character.fromCodePoint(e))},isDecimalDigit:function(e){return e>=48&&e<=57},isHexDigit:function(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102},isOctalDigit:function(e){return e>=48&&e<=55}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(6);t.JSXClosingElement=function(e){this.type=r.JSXSyntax.JSXClosingElement,this.name=e};t.JSXElement=function(e,t,n){this.type=r.JSXSyntax.JSXElement,this.openingElement=e,this.children=t,this.closingElement=n};t.JSXEmptyExpression=function(){this.type=r.JSXSyntax.JSXEmptyExpression};t.JSXExpressionContainer=function(e){this.type=r.JSXSyntax.JSXExpressionContainer,this.expression=e};t.JSXIdentifier=function(e){this.type=r.JSXSyntax.JSXIdentifier,this.name=e};t.JSXMemberExpression=function(e,t){this.type=r.JSXSyntax.JSXMemberExpression,this.object=e,this.property=t};t.JSXAttribute=function(e,t){this.type=r.JSXSyntax.JSXAttribute,this.name=e,this.value=t};t.JSXNamespacedName=function(e,t){this.type=r.JSXSyntax.JSXNamespacedName,this.namespace=e,this.name=t};t.JSXOpeningElement=function(e,t,n){this.type=r.JSXSyntax.JSXOpeningElement,this.name=e,this.selfClosing=t,this.attributes=n};t.JSXSpreadAttribute=function(e){this.type=r.JSXSyntax.JSXSpreadAttribute,this.argument=e};t.JSXText=function(e,t){this.type=r.JSXSyntax.JSXText,this.value=e,this.raw=t}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JSXSyntax={JSXAttribute:"JSXAttribute",JSXClosingElement:"JSXClosingElement",JSXElement:"JSXElement",JSXEmptyExpression:"JSXEmptyExpression",JSXExpressionContainer:"JSXExpressionContainer",JSXIdentifier:"JSXIdentifier",JSXMemberExpression:"JSXMemberExpression",JSXNamespacedName:"JSXNamespacedName",JSXOpeningElement:"JSXOpeningElement",JSXSpreadAttribute:"JSXSpreadAttribute",JSXText:"JSXText"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2);t.ArrayExpression=function(e){this.type=r.Syntax.ArrayExpression,this.elements=e};t.ArrayPattern=function(e){this.type=r.Syntax.ArrayPattern,this.elements=e};t.ArrowFunctionExpression=function(e,t,n){this.type=r.Syntax.ArrowFunctionExpression,this.id=null,this.params=e,this.body=t,this.generator=!1,this.expression=n,this.async=!1};t.AssignmentExpression=function(e,t,n){this.type=r.Syntax.AssignmentExpression,this.operator=e,this.left=t,this.right=n};t.AssignmentPattern=function(e,t){this.type=r.Syntax.AssignmentPattern,this.left=e,this.right=t};t.AsyncArrowFunctionExpression=function(e,t,n){this.type=r.Syntax.ArrowFunctionExpression,this.id=null,this.params=e,this.body=t,this.generator=!1,this.expression=n,this.async=!0};t.AsyncFunctionDeclaration=function(e,t,n){this.type=r.Syntax.FunctionDeclaration,this.id=e,this.params=t,this.body=n,this.generator=!1,this.expression=!1,this.async=!0};t.AsyncFunctionExpression=function(e,t,n){this.type=r.Syntax.FunctionExpression,this.id=e,this.params=t,this.body=n,this.generator=!1,this.expression=!1,this.async=!0};t.AwaitExpression=function(e){this.type=r.Syntax.AwaitExpression,this.argument=e};t.BinaryExpression=function(e,t,n){var i="||"===e||"&&"===e;this.type=i?r.Syntax.LogicalExpression:r.Syntax.BinaryExpression,this.operator=e,this.left=t,this.right=n};t.BlockStatement=function(e){this.type=r.Syntax.BlockStatement,this.body=e};t.BreakStatement=function(e){this.type=r.Syntax.BreakStatement,this.label=e};t.CallExpression=function(e,t){this.type=r.Syntax.CallExpression,this.callee=e,this.arguments=t};t.CatchClause=function(e,t){this.type=r.Syntax.CatchClause,this.param=e,this.body=t};t.ClassBody=function(e){this.type=r.Syntax.ClassBody,this.body=e};t.ClassDeclaration=function(e,t,n){this.type=r.Syntax.ClassDeclaration,this.id=e,this.superClass=t,this.body=n};t.ClassExpression=function(e,t,n){this.type=r.Syntax.ClassExpression,this.id=e,this.superClass=t,this.body=n};t.ComputedMemberExpression=function(e,t){this.type=r.Syntax.MemberExpression,this.computed=!0,this.object=e,this.property=t};t.ConditionalExpression=function(e,t,n){this.type=r.Syntax.ConditionalExpression,this.test=e,this.consequent=t,this.alternate=n};t.ContinueStatement=function(e){this.type=r.Syntax.ContinueStatement,this.label=e};t.DebuggerStatement=function(){this.type=r.Syntax.DebuggerStatement};t.Directive=function(e,t){this.type=r.Syntax.ExpressionStatement,this.expression=e,this.directive=t};t.DoWhileStatement=function(e,t){this.type=r.Syntax.DoWhileStatement,this.body=e,this.test=t};t.EmptyStatement=function(){this.type=r.Syntax.EmptyStatement};t.ExportAllDeclaration=function(e){this.type=r.Syntax.ExportAllDeclaration,this.source=e};t.ExportDefaultDeclaration=function(e){this.type=r.Syntax.ExportDefaultDeclaration,this.declaration=e};t.ExportNamedDeclaration=function(e,t,n){this.type=r.Syntax.ExportNamedDeclaration,this.declaration=e,this.specifiers=t,this.source=n};t.ExportSpecifier=function(e,t){this.type=r.Syntax.ExportSpecifier,this.exported=t,this.local=e};t.ExpressionStatement=function(e){this.type=r.Syntax.ExpressionStatement,this.expression=e};t.ForInStatement=function(e,t,n){this.type=r.Syntax.ForInStatement,this.left=e,this.right=t,this.body=n,this.each=!1};t.ForOfStatement=function(e,t,n){this.type=r.Syntax.ForOfStatement,this.left=e,this.right=t,this.body=n};t.ForStatement=function(e,t,n,i){this.type=r.Syntax.ForStatement,this.init=e,this.test=t,this.update=n,this.body=i};t.FunctionDeclaration=function(e,t,n,i){this.type=r.Syntax.FunctionDeclaration,this.id=e,this.params=t,this.body=n,this.generator=i,this.expression=!1,this.async=!1};t.FunctionExpression=function(e,t,n,i){this.type=r.Syntax.FunctionExpression,this.id=e,this.params=t,this.body=n,this.generator=i,this.expression=!1,this.async=!1};t.Identifier=function(e){this.type=r.Syntax.Identifier,this.name=e};t.IfStatement=function(e,t,n){this.type=r.Syntax.IfStatement,this.test=e,this.consequent=t,this.alternate=n};t.ImportDeclaration=function(e,t){this.type=r.Syntax.ImportDeclaration,this.specifiers=e,this.source=t};t.ImportDefaultSpecifier=function(e){this.type=r.Syntax.ImportDefaultSpecifier,this.local=e};t.ImportNamespaceSpecifier=function(e){this.type=r.Syntax.ImportNamespaceSpecifier,this.local=e};t.ImportSpecifier=function(e,t){this.type=r.Syntax.ImportSpecifier,this.local=e,this.imported=t};t.LabeledStatement=function(e,t){this.type=r.Syntax.LabeledStatement,this.label=e,this.body=t};t.Literal=function(e,t){this.type=r.Syntax.Literal,this.value=e,this.raw=t};t.MetaProperty=function(e,t){this.type=r.Syntax.MetaProperty,this.meta=e,this.property=t};t.MethodDefinition=function(e,t,n,i,o){this.type=r.Syntax.MethodDefinition,this.key=e,this.computed=t,this.value=n,this.kind=i,this.static=o};t.Module=function(e){this.type=r.Syntax.Program,this.body=e,this.sourceType="module"};t.NewExpression=function(e,t){this.type=r.Syntax.NewExpression,this.callee=e,this.arguments=t};t.ObjectExpression=function(e){this.type=r.Syntax.ObjectExpression,this.properties=e};t.ObjectPattern=function(e){this.type=r.Syntax.ObjectPattern,this.properties=e};t.Property=function(e,t,n,i,o,a){this.type=r.Syntax.Property,this.key=t,this.computed=n,this.value=i,this.kind=e,this.method=o,this.shorthand=a};t.RegexLiteral=function(e,t,n,i){this.type=r.Syntax.Literal,this.value=e,this.raw=t,this.regex={pattern:n,flags:i}};t.RestElement=function(e){this.type=r.Syntax.RestElement,this.argument=e};t.ReturnStatement=function(e){this.type=r.Syntax.ReturnStatement,this.argument=e};t.Script=function(e){this.type=r.Syntax.Program,this.body=e,this.sourceType="script"};t.SequenceExpression=function(e){this.type=r.Syntax.SequenceExpression,this.expressions=e};t.SpreadElement=function(e){this.type=r.Syntax.SpreadElement,this.argument=e};t.StaticMemberExpression=function(e,t){this.type=r.Syntax.MemberExpression,this.computed=!1,this.object=e,this.property=t};t.Super=function(){this.type=r.Syntax.Super};t.SwitchCase=function(e,t){this.type=r.Syntax.SwitchCase,this.test=e,this.consequent=t};t.SwitchStatement=function(e,t){this.type=r.Syntax.SwitchStatement,this.discriminant=e,this.cases=t};t.TaggedTemplateExpression=function(e,t){this.type=r.Syntax.TaggedTemplateExpression,this.tag=e,this.quasi=t};t.TemplateElement=function(e,t){this.type=r.Syntax.TemplateElement,this.value=e,this.tail=t};t.TemplateLiteral=function(e,t){this.type=r.Syntax.TemplateLiteral,this.quasis=e,this.expressions=t};t.ThisExpression=function(){this.type=r.Syntax.ThisExpression};t.ThrowStatement=function(e){this.type=r.Syntax.ThrowStatement,this.argument=e};t.TryStatement=function(e,t,n){this.type=r.Syntax.TryStatement,this.block=e,this.handler=t,this.finalizer=n};t.UnaryExpression=function(e,t){this.type=r.Syntax.UnaryExpression,this.operator=e,this.argument=t,this.prefix=!0};t.UpdateExpression=function(e,t,n){this.type=r.Syntax.UpdateExpression,this.operator=e,this.argument=t,this.prefix=n};t.VariableDeclaration=function(e,t){this.type=r.Syntax.VariableDeclaration,this.declarations=e,this.kind=t};t.VariableDeclarator=function(e,t){this.type=r.Syntax.VariableDeclarator,this.id=e,this.init=t};t.WhileStatement=function(e,t){this.type=r.Syntax.WhileStatement,this.test=e,this.body=t};t.WithStatement=function(e,t){this.type=r.Syntax.WithStatement,this.object=e,this.body=t};t.YieldExpression=function(e,t){this.type=r.Syntax.YieldExpression,this.argument=e,this.delegate=t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(9),i=n(10),o=n(11),a=n(7),s=n(12),l=n(2),c=n(13),u="ArrowParameterPlaceHolder",h=function(){function e(e,t,n){void 0===t&&(t={}),this.config={range:"boolean"==typeof t.range&&t.range,loc:"boolean"==typeof t.loc&&t.loc,source:null,tokens:"boolean"==typeof t.tokens&&t.tokens,comment:"boolean"==typeof t.comment&&t.comment,tolerant:"boolean"==typeof t.tolerant&&t.tolerant},this.config.loc&&t.source&&null!==t.source&&(this.config.source=String(t.source)),this.delegate=n,this.errorHandler=new i.ErrorHandler,this.errorHandler.tolerant=this.config.tolerant,this.scanner=new s.Scanner(e,this.errorHandler),this.scanner.trackComment=this.config.comment,this.operatorPrecedence={")":0,";":0,",":0,"=":0,"]":0,"||":1,"&&":2,"|":3,"^":4,"&":5,"==":6,"!=":6,"===":6,"!==":6,"<":7,">":7,"<=":7,">=":7,"<<":8,">>":8,">>>":8,"+":9,"-":9,"*":11,"/":11,"%":11},this.lookahead={type:2,value:"",lineNumber:this.scanner.lineNumber,lineStart:0,start:0,end:0},this.hasLineTerminator=!1,this.context={isModule:!1,await:!1,allowIn:!0,allowStrictDirective:!0,allowYield:!0,firstCoverInitializedNameError:null,isAssignmentTarget:!1,isBindingElement:!1,inFunctionBody:!1,inIteration:!1,inSwitch:!1,labelSet:{},strict:!1},this.tokens=[],this.startMarker={index:0,line:this.scanner.lineNumber,column:0},this.lastMarker={index:0,line:this.scanner.lineNumber,column:0},this.nextToken(),this.lastMarker={index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}}return e.prototype.throwError=function(e){for(var t=[],n=1;n0&&this.delegate)for(var t=0;t>="===e||">>>="===e||"&="===e||"^="===e||"|="===e},e.prototype.isolateCoverGrammar=function(e){var t=this.context.isBindingElement,n=this.context.isAssignmentTarget,r=this.context.firstCoverInitializedNameError;this.context.isBindingElement=!0,this.context.isAssignmentTarget=!0,this.context.firstCoverInitializedNameError=null;var i=e.call(this);return null!==this.context.firstCoverInitializedNameError&&this.throwUnexpectedToken(this.context.firstCoverInitializedNameError),this.context.isBindingElement=t,this.context.isAssignmentTarget=n,this.context.firstCoverInitializedNameError=r,i},e.prototype.inheritCoverGrammar=function(e){var t=this.context.isBindingElement,n=this.context.isAssignmentTarget,r=this.context.firstCoverInitializedNameError;this.context.isBindingElement=!0,this.context.isAssignmentTarget=!0,this.context.firstCoverInitializedNameError=null;var i=e.call(this);return this.context.isBindingElement=this.context.isBindingElement&&t,this.context.isAssignmentTarget=this.context.isAssignmentTarget&&n,this.context.firstCoverInitializedNameError=r||this.context.firstCoverInitializedNameError,i},e.prototype.consumeSemicolon=function(){this.match(";")?this.nextToken():this.hasLineTerminator||(2===this.lookahead.type||this.match("}")||this.throwUnexpectedToken(this.lookahead),this.lastMarker.index=this.startMarker.index,this.lastMarker.line=this.startMarker.line,this.lastMarker.column=this.startMarker.column)},e.prototype.parsePrimaryExpression=function(){var e,t,n,r=this.createNode();switch(this.lookahead.type){case 3:(this.context.isModule||this.context.await)&&"await"===this.lookahead.value&&this.tolerateUnexpectedToken(this.lookahead),e=this.matchAsyncFunction()?this.parseFunctionExpression():this.finalize(r,new a.Identifier(this.nextToken().value));break;case 6:case 8:this.context.strict&&this.lookahead.octal&&this.tolerateUnexpectedToken(this.lookahead,o.Messages.StrictOctalLiteral),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,t=this.nextToken(),n=this.getTokenRaw(t),e=this.finalize(r,new a.Literal(t.value,n));break;case 1:this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,t=this.nextToken(),n=this.getTokenRaw(t),e=this.finalize(r,new a.Literal("true"===t.value,n));break;case 5:this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,t=this.nextToken(),n=this.getTokenRaw(t),e=this.finalize(r,new a.Literal(null,n));break;case 10:e=this.parseTemplateLiteral();break;case 7:switch(this.lookahead.value){case"(":this.context.isBindingElement=!1,e=this.inheritCoverGrammar(this.parseGroupExpression);break;case"[":e=this.inheritCoverGrammar(this.parseArrayInitializer);break;case"{":e=this.inheritCoverGrammar(this.parseObjectInitializer);break;case"/":case"/=":this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.scanner.index=this.startMarker.index,t=this.nextRegexToken(),n=this.getTokenRaw(t),e=this.finalize(r,new a.RegexLiteral(t.regex,n,t.pattern,t.flags));break;default:e=this.throwUnexpectedToken(this.nextToken())}break;case 4:!this.context.strict&&this.context.allowYield&&this.matchKeyword("yield")?e=this.parseIdentifierName():!this.context.strict&&this.matchKeyword("let")?e=this.finalize(r,new a.Identifier(this.nextToken().value)):(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.matchKeyword("function")?e=this.parseFunctionExpression():this.matchKeyword("this")?(this.nextToken(),e=this.finalize(r,new a.ThisExpression)):e=this.matchKeyword("class")?this.parseClassExpression():this.throwUnexpectedToken(this.nextToken()));break;default:e=this.throwUnexpectedToken(this.nextToken())}return e},e.prototype.parseSpreadElement=function(){var e=this.createNode();this.expect("...");var t=this.inheritCoverGrammar(this.parseAssignmentExpression);return this.finalize(e,new a.SpreadElement(t))},e.prototype.parseArrayInitializer=function(){var e=this.createNode(),t=[];for(this.expect("[");!this.match("]");)if(this.match(","))this.nextToken(),t.push(null);else if(this.match("...")){var n=this.parseSpreadElement();this.match("]")||(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.expect(",")),t.push(n)}else t.push(this.inheritCoverGrammar(this.parseAssignmentExpression)),this.match("]")||this.expect(",");return this.expect("]"),this.finalize(e,new a.ArrayExpression(t))},e.prototype.parsePropertyMethod=function(e){this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var t=this.context.strict,n=this.context.allowStrictDirective;this.context.allowStrictDirective=e.simple;var r=this.isolateCoverGrammar(this.parseFunctionSourceElements);return this.context.strict&&e.firstRestricted&&this.tolerateUnexpectedToken(e.firstRestricted,e.message),this.context.strict&&e.stricted&&this.tolerateUnexpectedToken(e.stricted,e.message),this.context.strict=t,this.context.allowStrictDirective=n,r},e.prototype.parsePropertyMethodFunction=function(){var e=this.createNode(),t=this.context.allowYield;this.context.allowYield=!0;var n=this.parseFormalParameters(),r=this.parsePropertyMethod(n);return this.context.allowYield=t,this.finalize(e,new a.FunctionExpression(null,n.params,r,!1))},e.prototype.parsePropertyMethodAsyncFunction=function(){var e=this.createNode(),t=this.context.allowYield,n=this.context.await;this.context.allowYield=!1,this.context.await=!0;var r=this.parseFormalParameters(),i=this.parsePropertyMethod(r);return this.context.allowYield=t,this.context.await=n,this.finalize(e,new a.AsyncFunctionExpression(null,r.params,i))},e.prototype.parseObjectPropertyKey=function(){var e,t=this.createNode(),n=this.nextToken();switch(n.type){case 8:case 6:this.context.strict&&n.octal&&this.tolerateUnexpectedToken(n,o.Messages.StrictOctalLiteral);var r=this.getTokenRaw(n);e=this.finalize(t,new a.Literal(n.value,r));break;case 3:case 1:case 5:case 4:e=this.finalize(t,new a.Identifier(n.value));break;case 7:"["===n.value?(e=this.isolateCoverGrammar(this.parseAssignmentExpression),this.expect("]")):e=this.throwUnexpectedToken(n);break;default:e=this.throwUnexpectedToken(n)}return e},e.prototype.isPropertyKey=function(e,t){return e.type===l.Syntax.Identifier&&e.name===t||e.type===l.Syntax.Literal&&e.value===t},e.prototype.parseObjectProperty=function(e){var t,n=this.createNode(),r=this.lookahead,i=null,s=null,l=!1,c=!1,u=!1,h=!1;if(3===r.type){var d=r.value;this.nextToken(),l=this.match("["),i=(h=!(this.hasLineTerminator||"async"!==d||this.match(":")||this.match("(")||this.match("*")||this.match(",")))?this.parseObjectPropertyKey():this.finalize(n,new a.Identifier(d))}else this.match("*")?this.nextToken():(l=this.match("["),i=this.parseObjectPropertyKey());var f=this.qualifiedPropertyName(this.lookahead);if(3===r.type&&!h&&"get"===r.value&&f)t="get",l=this.match("["),i=this.parseObjectPropertyKey(),this.context.allowYield=!1,s=this.parseGetterMethod();else if(3===r.type&&!h&&"set"===r.value&&f)t="set",l=this.match("["),i=this.parseObjectPropertyKey(),s=this.parseSetterMethod();else if(7===r.type&&"*"===r.value&&f)t="init",l=this.match("["),i=this.parseObjectPropertyKey(),s=this.parseGeneratorMethod(),c=!0;else if(i||this.throwUnexpectedToken(this.lookahead),t="init",this.match(":")&&!h)!l&&this.isPropertyKey(i,"__proto__")&&(e.value&&this.tolerateError(o.Messages.DuplicateProtoProperty),e.value=!0),this.nextToken(),s=this.inheritCoverGrammar(this.parseAssignmentExpression);else if(this.match("("))s=h?this.parsePropertyMethodAsyncFunction():this.parsePropertyMethodFunction(),c=!0;else if(3===r.type)if(d=this.finalize(n,new a.Identifier(r.value)),this.match("=")){this.context.firstCoverInitializedNameError=this.lookahead,this.nextToken(),u=!0;var p=this.isolateCoverGrammar(this.parseAssignmentExpression);s=this.finalize(n,new a.AssignmentPattern(d,p))}else u=!0,s=d;else this.throwUnexpectedToken(this.nextToken());return this.finalize(n,new a.Property(t,i,l,s,c,u))},e.prototype.parseObjectInitializer=function(){var e=this.createNode();this.expect("{");for(var t=[],n={value:!1};!this.match("}");)t.push(this.parseObjectProperty(n)),this.match("}")||this.expectCommaSeparator();return this.expect("}"),this.finalize(e,new a.ObjectExpression(t))},e.prototype.parseTemplateHead=function(){r.assert(this.lookahead.head,"Template literal must start with a template head");var e=this.createNode(),t=this.nextToken(),n=t.value,i=t.cooked;return this.finalize(e,new a.TemplateElement({raw:n,cooked:i},t.tail))},e.prototype.parseTemplateElement=function(){10!==this.lookahead.type&&this.throwUnexpectedToken();var e=this.createNode(),t=this.nextToken(),n=t.value,r=t.cooked;return this.finalize(e,new a.TemplateElement({raw:n,cooked:r},t.tail))},e.prototype.parseTemplateLiteral=function(){var e=this.createNode(),t=[],n=[],r=this.parseTemplateHead();for(n.push(r);!r.tail;)t.push(this.parseExpression()),r=this.parseTemplateElement(),n.push(r);return this.finalize(e,new a.TemplateLiteral(n,t))},e.prototype.reinterpretExpressionAsPattern=function(e){switch(e.type){case l.Syntax.Identifier:case l.Syntax.MemberExpression:case l.Syntax.RestElement:case l.Syntax.AssignmentPattern:break;case l.Syntax.SpreadElement:e.type=l.Syntax.RestElement,this.reinterpretExpressionAsPattern(e.argument);break;case l.Syntax.ArrayExpression:e.type=l.Syntax.ArrayPattern;for(var t=0;t")||this.expect("=>"),e={type:u,params:[],async:!1};else{var t=this.lookahead,n=[];if(this.match("..."))e=this.parseRestElement(n),this.expect(")"),this.match("=>")||this.expect("=>"),e={type:u,params:[e],async:!1};else{var r=!1;if(this.context.isBindingElement=!0,e=this.inheritCoverGrammar(this.parseAssignmentExpression),this.match(",")){var i=[];for(this.context.isAssignmentTarget=!1,i.push(e);2!==this.lookahead.type&&this.match(",");){if(this.nextToken(),this.match(")")){this.nextToken();for(var o=0;o")||this.expect("=>"),this.context.isBindingElement=!1,o=0;o")&&(e.type===l.Syntax.Identifier&&"yield"===e.name&&(r=!0,e={type:u,params:[e],async:!1}),!r)){if(this.context.isBindingElement||this.throwUnexpectedToken(this.lookahead),e.type===l.Syntax.SequenceExpression)for(o=0;o")){for(var l=0;l0){this.nextToken(),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;for(var i=[e,this.lookahead],o=t,s=this.isolateCoverGrammar(this.parseExponentiationExpression),l=[o,n.value,s],c=[r];!((r=this.binaryPrecedence(this.lookahead))<=0);){for(;l.length>2&&r<=c[c.length-1];){s=l.pop();var u=l.pop();c.pop(),o=l.pop(),i.pop();var h=this.startNode(i[i.length-1]);l.push(this.finalize(h,new a.BinaryExpression(u,o,s)))}l.push(this.nextToken().value),c.push(r),i.push(this.lookahead),l.push(this.isolateCoverGrammar(this.parseExponentiationExpression))}var d=l.length-1;t=l[d];for(var f=i.pop();d>1;){var p=i.pop(),m=f&&f.lineStart;h=this.startNode(p,m),u=l[d-1],t=this.finalize(h,new a.BinaryExpression(u,l[d-2],t)),d-=2,f=p}}return t},e.prototype.parseConditionalExpression=function(){var e=this.lookahead,t=this.inheritCoverGrammar(this.parseBinaryExpression);if(this.match("?")){this.nextToken();var n=this.context.allowIn;this.context.allowIn=!0;var r=this.isolateCoverGrammar(this.parseAssignmentExpression);this.context.allowIn=n,this.expect(":");var i=this.isolateCoverGrammar(this.parseAssignmentExpression);t=this.finalize(this.startNode(e),new a.ConditionalExpression(t,r,i)),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}return t},e.prototype.checkPatternParam=function(e,t){switch(t.type){case l.Syntax.Identifier:this.validateParam(e,t,t.name);break;case l.Syntax.RestElement:this.checkPatternParam(e,t.argument);break;case l.Syntax.AssignmentPattern:this.checkPatternParam(e,t.left);break;case l.Syntax.ArrayPattern:for(var n=0;n")){this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var i=e.async,s=this.reinterpretAsCoverFormalsList(e);if(s){this.hasLineTerminator&&this.tolerateUnexpectedToken(this.lookahead),this.context.firstCoverInitializedNameError=null;var c=this.context.strict,h=this.context.allowStrictDirective;this.context.allowStrictDirective=s.simple;var d=this.context.allowYield,f=this.context.await;this.context.allowYield=!0,this.context.await=i;var p=this.startNode(t);this.expect("=>");var m=void 0;if(this.match("{")){var g=this.context.allowIn;this.context.allowIn=!0,m=this.parseFunctionSourceElements(),this.context.allowIn=g}else m=this.isolateCoverGrammar(this.parseAssignmentExpression);var v=m.type!==l.Syntax.BlockStatement;this.context.strict&&s.firstRestricted&&this.throwUnexpectedToken(s.firstRestricted,s.message),this.context.strict&&s.stricted&&this.tolerateUnexpectedToken(s.stricted,s.message),e=i?this.finalize(p,new a.AsyncArrowFunctionExpression(s.params,m,v)):this.finalize(p,new a.ArrowFunctionExpression(s.params,m,v)),this.context.strict=c,this.context.allowStrictDirective=h,this.context.allowYield=d,this.context.await=f}}else if(this.matchAssign()){if(this.context.isAssignmentTarget||this.tolerateError(o.Messages.InvalidLHSInAssignment),this.context.strict&&e.type===l.Syntax.Identifier){var y=e;this.scanner.isRestrictedWord(y.name)&&this.tolerateUnexpectedToken(n,o.Messages.StrictLHSAssignment),this.scanner.isStrictModeReservedWord(y.name)&&this.tolerateUnexpectedToken(n,o.Messages.StrictReservedWord)}this.match("=")?this.reinterpretExpressionAsPattern(e):(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1);var b=(n=this.nextToken()).value,x=this.isolateCoverGrammar(this.parseAssignmentExpression);e=this.finalize(this.startNode(t),new a.AssignmentExpression(b,e,x)),this.context.firstCoverInitializedNameError=null}}return e},e.prototype.parseExpression=function(){var e=this.lookahead,t=this.isolateCoverGrammar(this.parseAssignmentExpression);if(this.match(",")){var n=[];for(n.push(t);2!==this.lookahead.type&&this.match(",");)this.nextToken(),n.push(this.isolateCoverGrammar(this.parseAssignmentExpression));t=this.finalize(this.startNode(e),new a.SequenceExpression(n))}return t},e.prototype.parseStatementListItem=function(){var e;if(this.context.isAssignmentTarget=!0,this.context.isBindingElement=!0,4===this.lookahead.type)switch(this.lookahead.value){case"export":this.context.isModule||this.tolerateUnexpectedToken(this.lookahead,o.Messages.IllegalExportDeclaration),e=this.parseExportDeclaration();break;case"import":this.context.isModule||this.tolerateUnexpectedToken(this.lookahead,o.Messages.IllegalImportDeclaration),e=this.parseImportDeclaration();break;case"const":e=this.parseLexicalDeclaration({inFor:!1});break;case"function":e=this.parseFunctionDeclaration();break;case"class":e=this.parseClassDeclaration();break;case"let":e=this.isLexicalDeclaration()?this.parseLexicalDeclaration({inFor:!1}):this.parseStatement();break;default:e=this.parseStatement()}else e=this.parseStatement();return e},e.prototype.parseBlock=function(){var e=this.createNode();this.expect("{");for(var t=[];!this.match("}");)t.push(this.parseStatementListItem());return this.expect("}"),this.finalize(e,new a.BlockStatement(t))},e.prototype.parseLexicalBinding=function(e,t){var n=this.createNode(),r=this.parsePattern([],e);this.context.strict&&r.type===l.Syntax.Identifier&&this.scanner.isRestrictedWord(r.name)&&this.tolerateError(o.Messages.StrictVarName);var i=null;return"const"===e?this.matchKeyword("in")||this.matchContextualKeyword("of")||(this.match("=")?(this.nextToken(),i=this.isolateCoverGrammar(this.parseAssignmentExpression)):this.throwError(o.Messages.DeclarationMissingInitializer,"const")):(!t.inFor&&r.type!==l.Syntax.Identifier||this.match("="))&&(this.expect("="),i=this.isolateCoverGrammar(this.parseAssignmentExpression)),this.finalize(n,new a.VariableDeclarator(r,i))},e.prototype.parseBindingList=function(e,t){for(var n=[this.parseLexicalBinding(e,t)];this.match(",");)this.nextToken(),n.push(this.parseLexicalBinding(e,t));return n},e.prototype.isLexicalDeclaration=function(){var e=this.scanner.saveState();this.scanner.scanComments();var t=this.scanner.lex();return this.scanner.restoreState(e),3===t.type||7===t.type&&"["===t.value||7===t.type&&"{"===t.value||4===t.type&&"let"===t.value||4===t.type&&"yield"===t.value},e.prototype.parseLexicalDeclaration=function(e){var t=this.createNode(),n=this.nextToken().value;r.assert("let"===n||"const"===n,"Lexical declaration must be either let or const");var i=this.parseBindingList(n,e);return this.consumeSemicolon(),this.finalize(t,new a.VariableDeclaration(i,n))},e.prototype.parseBindingRestElement=function(e,t){var n=this.createNode();this.expect("...");var r=this.parsePattern(e,t);return this.finalize(n,new a.RestElement(r))},e.prototype.parseArrayPattern=function(e,t){var n=this.createNode();this.expect("[");for(var r=[];!this.match("]");)if(this.match(","))this.nextToken(),r.push(null);else{if(this.match("...")){r.push(this.parseBindingRestElement(e,t));break}r.push(this.parsePatternWithDefault(e,t)),this.match("]")||this.expect(",")}return this.expect("]"),this.finalize(n,new a.ArrayPattern(r))},e.prototype.parsePropertyPattern=function(e,t){var n,r,i=this.createNode(),o=!1,s=!1;if(3===this.lookahead.type){var l=this.lookahead;n=this.parseVariableIdentifier();var c=this.finalize(i,new a.Identifier(l.value));if(this.match("=")){e.push(l),s=!0,this.nextToken();var u=this.parseAssignmentExpression();r=this.finalize(this.startNode(l),new a.AssignmentPattern(c,u))}else this.match(":")?(this.expect(":"),r=this.parsePatternWithDefault(e,t)):(e.push(l),s=!0,r=c)}else o=this.match("["),n=this.parseObjectPropertyKey(),this.expect(":"),r=this.parsePatternWithDefault(e,t);return this.finalize(i,new a.Property("init",n,o,r,!1,s))},e.prototype.parseObjectPattern=function(e,t){var n=this.createNode(),r=[];for(this.expect("{");!this.match("}");)r.push(this.parsePropertyPattern(e,t)),this.match("}")||this.expect(",");return this.expect("}"),this.finalize(n,new a.ObjectPattern(r))},e.prototype.parsePattern=function(e,t){var n;return this.match("[")?n=this.parseArrayPattern(e,t):this.match("{")?n=this.parseObjectPattern(e,t):(!this.matchKeyword("let")||"const"!==t&&"let"!==t||this.tolerateUnexpectedToken(this.lookahead,o.Messages.LetInLexicalBinding),e.push(this.lookahead),n=this.parseVariableIdentifier(t)),n},e.prototype.parsePatternWithDefault=function(e,t){var n=this.lookahead,r=this.parsePattern(e,t);if(this.match("=")){this.nextToken();var i=this.context.allowYield;this.context.allowYield=!0;var o=this.isolateCoverGrammar(this.parseAssignmentExpression);this.context.allowYield=i,r=this.finalize(this.startNode(n),new a.AssignmentPattern(r,o))}return r},e.prototype.parseVariableIdentifier=function(e){var t=this.createNode(),n=this.nextToken();return 4===n.type&&"yield"===n.value?this.context.strict?this.tolerateUnexpectedToken(n,o.Messages.StrictReservedWord):this.context.allowYield||this.throwUnexpectedToken(n):3!==n.type?this.context.strict&&4===n.type&&this.scanner.isStrictModeReservedWord(n.value)?this.tolerateUnexpectedToken(n,o.Messages.StrictReservedWord):(this.context.strict||"let"!==n.value||"var"!==e)&&this.throwUnexpectedToken(n):(this.context.isModule||this.context.await)&&3===n.type&&"await"===n.value&&this.tolerateUnexpectedToken(n),this.finalize(t,new a.Identifier(n.value))},e.prototype.parseVariableDeclaration=function(e){var t=this.createNode(),n=this.parsePattern([],"var");this.context.strict&&n.type===l.Syntax.Identifier&&this.scanner.isRestrictedWord(n.name)&&this.tolerateError(o.Messages.StrictVarName);var r=null;return this.match("=")?(this.nextToken(),r=this.isolateCoverGrammar(this.parseAssignmentExpression)):n.type===l.Syntax.Identifier||e.inFor||this.expect("="),this.finalize(t,new a.VariableDeclarator(n,r))},e.prototype.parseVariableDeclarationList=function(e){var t={inFor:e.inFor},n=[];for(n.push(this.parseVariableDeclaration(t));this.match(",");)this.nextToken(),n.push(this.parseVariableDeclaration(t));return n},e.prototype.parseVariableStatement=function(){var e=this.createNode();this.expectKeyword("var");var t=this.parseVariableDeclarationList({inFor:!1});return this.consumeSemicolon(),this.finalize(e,new a.VariableDeclaration(t,"var"))},e.prototype.parseEmptyStatement=function(){var e=this.createNode();return this.expect(";"),this.finalize(e,new a.EmptyStatement)},e.prototype.parseExpressionStatement=function(){var e=this.createNode(),t=this.parseExpression();return this.consumeSemicolon(),this.finalize(e,new a.ExpressionStatement(t))},e.prototype.parseIfClause=function(){return this.context.strict&&this.matchKeyword("function")&&this.tolerateError(o.Messages.StrictFunction),this.parseStatement()},e.prototype.parseIfStatement=function(){var e,t=this.createNode(),n=null;this.expectKeyword("if"),this.expect("(");var r=this.parseExpression();return!this.match(")")&&this.config.tolerant?(this.tolerateUnexpectedToken(this.nextToken()),e=this.finalize(this.createNode(),new a.EmptyStatement)):(this.expect(")"),e=this.parseIfClause(),this.matchKeyword("else")&&(this.nextToken(),n=this.parseIfClause())),this.finalize(t,new a.IfStatement(r,e,n))},e.prototype.parseDoWhileStatement=function(){var e=this.createNode();this.expectKeyword("do");var t=this.context.inIteration;this.context.inIteration=!0;var n=this.parseStatement();this.context.inIteration=t,this.expectKeyword("while"),this.expect("(");var r=this.parseExpression();return!this.match(")")&&this.config.tolerant?this.tolerateUnexpectedToken(this.nextToken()):(this.expect(")"),this.match(";")&&this.nextToken()),this.finalize(e,new a.DoWhileStatement(n,r))},e.prototype.parseWhileStatement=function(){var e,t=this.createNode();this.expectKeyword("while"),this.expect("(");var n=this.parseExpression();if(!this.match(")")&&this.config.tolerant)this.tolerateUnexpectedToken(this.nextToken()),e=this.finalize(this.createNode(),new a.EmptyStatement);else{this.expect(")");var r=this.context.inIteration;this.context.inIteration=!0,e=this.parseStatement(),this.context.inIteration=r}return this.finalize(t,new a.WhileStatement(n,e))},e.prototype.parseForStatement=function(){var e,t,n,r=null,i=null,s=null,c=!0,u=this.createNode();if(this.expectKeyword("for"),this.expect("("),this.match(";"))this.nextToken();else if(this.matchKeyword("var")){r=this.createNode(),this.nextToken();var h=this.context.allowIn;this.context.allowIn=!1;var d=this.parseVariableDeclarationList({inFor:!0});if(this.context.allowIn=h,1===d.length&&this.matchKeyword("in")){var f=d[0];f.init&&(f.id.type===l.Syntax.ArrayPattern||f.id.type===l.Syntax.ObjectPattern||this.context.strict)&&this.tolerateError(o.Messages.ForInOfLoopInitializer,"for-in"),r=this.finalize(r,new a.VariableDeclaration(d,"var")),this.nextToken(),e=r,t=this.parseExpression(),r=null}else 1===d.length&&null===d[0].init&&this.matchContextualKeyword("of")?(r=this.finalize(r,new a.VariableDeclaration(d,"var")),this.nextToken(),e=r,t=this.parseAssignmentExpression(),r=null,c=!1):(r=this.finalize(r,new a.VariableDeclaration(d,"var")),this.expect(";"))}else if(this.matchKeyword("const")||this.matchKeyword("let")){r=this.createNode();var p=this.nextToken().value;this.context.strict||"in"!==this.lookahead.value?(h=this.context.allowIn,this.context.allowIn=!1,d=this.parseBindingList(p,{inFor:!0}),this.context.allowIn=h,1===d.length&&null===d[0].init&&this.matchKeyword("in")?(r=this.finalize(r,new a.VariableDeclaration(d,p)),this.nextToken(),e=r,t=this.parseExpression(),r=null):1===d.length&&null===d[0].init&&this.matchContextualKeyword("of")?(r=this.finalize(r,new a.VariableDeclaration(d,p)),this.nextToken(),e=r,t=this.parseAssignmentExpression(),r=null,c=!1):(this.consumeSemicolon(),r=this.finalize(r,new a.VariableDeclaration(d,p)))):(r=this.finalize(r,new a.Identifier(p)),this.nextToken(),e=r,t=this.parseExpression(),r=null)}else{var m=this.lookahead;if(h=this.context.allowIn,this.context.allowIn=!1,r=this.inheritCoverGrammar(this.parseAssignmentExpression),this.context.allowIn=h,this.matchKeyword("in"))this.context.isAssignmentTarget&&r.type!==l.Syntax.AssignmentExpression||this.tolerateError(o.Messages.InvalidLHSInForIn),this.nextToken(),this.reinterpretExpressionAsPattern(r),e=r,t=this.parseExpression(),r=null;else if(this.matchContextualKeyword("of"))this.context.isAssignmentTarget&&r.type!==l.Syntax.AssignmentExpression||this.tolerateError(o.Messages.InvalidLHSInForLoop),this.nextToken(),this.reinterpretExpressionAsPattern(r),e=r,t=this.parseAssignmentExpression(),r=null,c=!1;else{if(this.match(",")){for(var g=[r];this.match(",");)this.nextToken(),g.push(this.isolateCoverGrammar(this.parseAssignmentExpression));r=this.finalize(this.startNode(m),new a.SequenceExpression(g))}this.expect(";")}}if(void 0===e&&(this.match(";")||(i=this.parseExpression()),this.expect(";"),this.match(")")||(s=this.parseExpression())),!this.match(")")&&this.config.tolerant)this.tolerateUnexpectedToken(this.nextToken()),n=this.finalize(this.createNode(),new a.EmptyStatement);else{this.expect(")");var v=this.context.inIteration;this.context.inIteration=!0,n=this.isolateCoverGrammar(this.parseStatement),this.context.inIteration=v}return void 0===e?this.finalize(u,new a.ForStatement(r,i,s,n)):c?this.finalize(u,new a.ForInStatement(e,t,n)):this.finalize(u,new a.ForOfStatement(e,t,n))},e.prototype.parseContinueStatement=function(){var e=this.createNode();this.expectKeyword("continue");var t=null;if(3===this.lookahead.type&&!this.hasLineTerminator){var n=this.parseVariableIdentifier();t=n;var r="$"+n.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,r)||this.throwError(o.Messages.UnknownLabel,n.name)}return this.consumeSemicolon(),null!==t||this.context.inIteration||this.throwError(o.Messages.IllegalContinue),this.finalize(e,new a.ContinueStatement(t))},e.prototype.parseBreakStatement=function(){var e=this.createNode();this.expectKeyword("break");var t=null;if(3===this.lookahead.type&&!this.hasLineTerminator){var n=this.parseVariableIdentifier(),r="$"+n.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,r)||this.throwError(o.Messages.UnknownLabel,n.name),t=n}return this.consumeSemicolon(),null!==t||this.context.inIteration||this.context.inSwitch||this.throwError(o.Messages.IllegalBreak),this.finalize(e,new a.BreakStatement(t))},e.prototype.parseReturnStatement=function(){this.context.inFunctionBody||this.tolerateError(o.Messages.IllegalReturn);var e=this.createNode();this.expectKeyword("return");var t=(this.match(";")||this.match("}")||this.hasLineTerminator||2===this.lookahead.type)&&8!==this.lookahead.type&&10!==this.lookahead.type?null:this.parseExpression();return this.consumeSemicolon(),this.finalize(e,new a.ReturnStatement(t))},e.prototype.parseWithStatement=function(){this.context.strict&&this.tolerateError(o.Messages.StrictModeWith);var e,t=this.createNode();this.expectKeyword("with"),this.expect("(");var n=this.parseExpression();return!this.match(")")&&this.config.tolerant?(this.tolerateUnexpectedToken(this.nextToken()),e=this.finalize(this.createNode(),new a.EmptyStatement)):(this.expect(")"),e=this.parseStatement()),this.finalize(t,new a.WithStatement(n,e))},e.prototype.parseSwitchCase=function(){var e,t=this.createNode();this.matchKeyword("default")?(this.nextToken(),e=null):(this.expectKeyword("case"),e=this.parseExpression()),this.expect(":");for(var n=[];!(this.match("}")||this.matchKeyword("default")||this.matchKeyword("case"));)n.push(this.parseStatementListItem());return this.finalize(t,new a.SwitchCase(e,n))},e.prototype.parseSwitchStatement=function(){var e=this.createNode();this.expectKeyword("switch"),this.expect("(");var t=this.parseExpression();this.expect(")");var n=this.context.inSwitch;this.context.inSwitch=!0;var r=[],i=!1;for(this.expect("{");!this.match("}");){var s=this.parseSwitchCase();null===s.test&&(i&&this.throwError(o.Messages.MultipleDefaultsInSwitch),i=!0),r.push(s)}return this.expect("}"),this.context.inSwitch=n,this.finalize(e,new a.SwitchStatement(t,r))},e.prototype.parseLabelledStatement=function(){var e,t=this.createNode(),n=this.parseExpression();if(n.type===l.Syntax.Identifier&&this.match(":")){this.nextToken();var r=n,i="$"+r.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,i)&&this.throwError(o.Messages.Redeclaration,"Label",r.name),this.context.labelSet[i]=!0;var s=void 0;if(this.matchKeyword("class"))this.tolerateUnexpectedToken(this.lookahead),s=this.parseClassDeclaration();else if(this.matchKeyword("function")){var c=this.lookahead,u=this.parseFunctionDeclaration();this.context.strict?this.tolerateUnexpectedToken(c,o.Messages.StrictFunction):u.generator&&this.tolerateUnexpectedToken(c,o.Messages.GeneratorInLegacyContext),s=u}else s=this.parseStatement();delete this.context.labelSet[i],e=new a.LabeledStatement(r,s)}else this.consumeSemicolon(),e=new a.ExpressionStatement(n);return this.finalize(t,e)},e.prototype.parseThrowStatement=function(){var e=this.createNode();this.expectKeyword("throw"),this.hasLineTerminator&&this.throwError(o.Messages.NewlineAfterThrow);var t=this.parseExpression();return this.consumeSemicolon(),this.finalize(e,new a.ThrowStatement(t))},e.prototype.parseCatchClause=function(){var e=this.createNode();this.expectKeyword("catch"),this.expect("("),this.match(")")&&this.throwUnexpectedToken(this.lookahead);for(var t=[],n=this.parsePattern(t),r={},i=0;i0&&this.tolerateError(o.Messages.BadGetterArity);var r=this.parsePropertyMethod(n);return this.context.allowYield=t,this.finalize(e,new a.FunctionExpression(null,n.params,r,!1))},e.prototype.parseSetterMethod=function(){var e=this.createNode(),t=this.context.allowYield;this.context.allowYield=!0;var n=this.parseFormalParameters();1!==n.params.length?this.tolerateError(o.Messages.BadSetterArity):n.params[0]instanceof a.RestElement&&this.tolerateError(o.Messages.BadSetterRestParameter);var r=this.parsePropertyMethod(n);return this.context.allowYield=t,this.finalize(e,new a.FunctionExpression(null,n.params,r,!1))},e.prototype.parseGeneratorMethod=function(){var e=this.createNode(),t=this.context.allowYield;this.context.allowYield=!0;var n=this.parseFormalParameters();this.context.allowYield=!1;var r=this.parsePropertyMethod(n);return this.context.allowYield=t,this.finalize(e,new a.FunctionExpression(null,n.params,r,!0))},e.prototype.isStartOfExpression=function(){var e=!0,t=this.lookahead.value;switch(this.lookahead.type){case 7:e="["===t||"("===t||"{"===t||"+"===t||"-"===t||"!"===t||"~"===t||"++"===t||"--"===t||"/"===t||"/="===t;break;case 4:e="class"===t||"delete"===t||"function"===t||"let"===t||"new"===t||"super"===t||"this"===t||"typeof"===t||"void"===t||"yield"===t}return e},e.prototype.parseYieldExpression=function(){var e=this.createNode();this.expectKeyword("yield");var t=null,n=!1;if(!this.hasLineTerminator){var r=this.context.allowYield;this.context.allowYield=!1,(n=this.match("*"))?(this.nextToken(),t=this.parseAssignmentExpression()):this.isStartOfExpression()&&(t=this.parseAssignmentExpression()),this.context.allowYield=r}return this.finalize(e,new a.YieldExpression(t,n))},e.prototype.parseClassElement=function(e){var t=this.lookahead,n=this.createNode(),r="",i=null,s=null,l=!1,c=!1,u=!1,h=!1;if(this.match("*"))this.nextToken();else if(l=this.match("["),"static"===(i=this.parseObjectPropertyKey()).name&&(this.qualifiedPropertyName(this.lookahead)||this.match("*"))&&(t=this.lookahead,u=!0,l=this.match("["),this.match("*")?this.nextToken():i=this.parseObjectPropertyKey()),3===t.type&&!this.hasLineTerminator&&"async"===t.value){var d=this.lookahead.value;":"!==d&&"("!==d&&"*"!==d&&(h=!0,t=this.lookahead,i=this.parseObjectPropertyKey(),3===t.type&&"constructor"===t.value&&this.tolerateUnexpectedToken(t,o.Messages.ConstructorIsAsync))}var f=this.qualifiedPropertyName(this.lookahead);return 3===t.type?"get"===t.value&&f?(r="get",l=this.match("["),i=this.parseObjectPropertyKey(),this.context.allowYield=!1,s=this.parseGetterMethod()):"set"===t.value&&f&&(r="set",l=this.match("["),i=this.parseObjectPropertyKey(),s=this.parseSetterMethod()):7===t.type&&"*"===t.value&&f&&(r="init",l=this.match("["),i=this.parseObjectPropertyKey(),s=this.parseGeneratorMethod(),c=!0),!r&&i&&this.match("(")&&(r="init",s=h?this.parsePropertyMethodAsyncFunction():this.parsePropertyMethodFunction(),c=!0),r||this.throwUnexpectedToken(this.lookahead),"init"===r&&(r="method"),l||(u&&this.isPropertyKey(i,"prototype")&&this.throwUnexpectedToken(t,o.Messages.StaticPrototype),!u&&this.isPropertyKey(i,"constructor")&&(("method"!==r||!c||s&&s.generator)&&this.throwUnexpectedToken(t,o.Messages.ConstructorSpecialMethod),e.value?this.throwUnexpectedToken(t,o.Messages.DuplicateConstructor):e.value=!0,r="constructor")),this.finalize(n,new a.MethodDefinition(i,l,s,r,u))},e.prototype.parseClassElementList=function(){var e=[],t={value:!1};for(this.expect("{");!this.match("}");)this.match(";")?this.nextToken():e.push(this.parseClassElement(t));return this.expect("}"),e},e.prototype.parseClassBody=function(){var e=this.createNode(),t=this.parseClassElementList();return this.finalize(e,new a.ClassBody(t))},e.prototype.parseClassDeclaration=function(e){var t=this.createNode(),n=this.context.strict;this.context.strict=!0,this.expectKeyword("class");var r=e&&3!==this.lookahead.type?null:this.parseVariableIdentifier(),i=null;this.matchKeyword("extends")&&(this.nextToken(),i=this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall));var o=this.parseClassBody();return this.context.strict=n,this.finalize(t,new a.ClassDeclaration(r,i,o))},e.prototype.parseClassExpression=function(){var e=this.createNode(),t=this.context.strict;this.context.strict=!0,this.expectKeyword("class");var n=3===this.lookahead.type?this.parseVariableIdentifier():null,r=null;this.matchKeyword("extends")&&(this.nextToken(),r=this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall));var i=this.parseClassBody();return this.context.strict=t,this.finalize(e,new a.ClassExpression(n,r,i))},e.prototype.parseModule=function(){this.context.strict=!0,this.context.isModule=!0,this.scanner.isModule=!0;for(var e=this.createNode(),t=this.parseDirectivePrologues();2!==this.lookahead.type;)t.push(this.parseStatementListItem());return this.finalize(e,new a.Module(t))},e.prototype.parseScript=function(){for(var e=this.createNode(),t=this.parseDirectivePrologues();2!==this.lookahead.type;)t.push(this.parseStatementListItem());return this.finalize(e,new a.Script(t))},e.prototype.parseModuleSpecifier=function(){var e=this.createNode();8!==this.lookahead.type&&this.throwError(o.Messages.InvalidModuleSpecifier);var t=this.nextToken(),n=this.getTokenRaw(t);return this.finalize(e,new a.Literal(t.value,n))},e.prototype.parseImportSpecifier=function(){var e,t,n=this.createNode();return 3===this.lookahead.type?(t=e=this.parseVariableIdentifier(),this.matchContextualKeyword("as")&&(this.nextToken(),t=this.parseVariableIdentifier())):(t=e=this.parseIdentifierName(),this.matchContextualKeyword("as")?(this.nextToken(),t=this.parseVariableIdentifier()):this.throwUnexpectedToken(this.nextToken())),this.finalize(n,new a.ImportSpecifier(t,e))},e.prototype.parseNamedImports=function(){this.expect("{");for(var e=[];!this.match("}");)e.push(this.parseImportSpecifier()),this.match("}")||this.expect(",");return this.expect("}"),e},e.prototype.parseImportDefaultSpecifier=function(){var e=this.createNode(),t=this.parseIdentifierName();return this.finalize(e,new a.ImportDefaultSpecifier(t))},e.prototype.parseImportNamespaceSpecifier=function(){var e=this.createNode();this.expect("*"),this.matchContextualKeyword("as")||this.throwError(o.Messages.NoAsAfterImportNamespace),this.nextToken();var t=this.parseIdentifierName();return this.finalize(e,new a.ImportNamespaceSpecifier(t))},e.prototype.parseImportDeclaration=function(){this.context.inFunctionBody&&this.throwError(o.Messages.IllegalImportDeclaration);var e,t=this.createNode();this.expectKeyword("import");var n=[];if(8===this.lookahead.type)e=this.parseModuleSpecifier();else{if(this.match("{")?n=n.concat(this.parseNamedImports()):this.match("*")?n.push(this.parseImportNamespaceSpecifier()):this.isIdentifierName(this.lookahead)&&!this.matchKeyword("default")?(n.push(this.parseImportDefaultSpecifier()),this.match(",")&&(this.nextToken(),this.match("*")?n.push(this.parseImportNamespaceSpecifier()):this.match("{")?n=n.concat(this.parseNamedImports()):this.throwUnexpectedToken(this.lookahead))):this.throwUnexpectedToken(this.nextToken()),!this.matchContextualKeyword("from")){var r=this.lookahead.value?o.Messages.UnexpectedToken:o.Messages.MissingFromClause;this.throwError(r,this.lookahead.value)}this.nextToken(),e=this.parseModuleSpecifier()}return this.consumeSemicolon(),this.finalize(t,new a.ImportDeclaration(n,e))},e.prototype.parseExportSpecifier=function(){var e=this.createNode(),t=this.parseIdentifierName(),n=t;return this.matchContextualKeyword("as")&&(this.nextToken(),n=this.parseIdentifierName()),this.finalize(e,new a.ExportSpecifier(t,n))},e.prototype.parseExportDeclaration=function(){this.context.inFunctionBody&&this.throwError(o.Messages.IllegalExportDeclaration);var e,t=this.createNode();if(this.expectKeyword("export"),this.matchKeyword("default"))if(this.nextToken(),this.matchKeyword("function")){var n=this.parseFunctionDeclaration(!0);e=this.finalize(t,new a.ExportDefaultDeclaration(n))}else this.matchKeyword("class")?(n=this.parseClassDeclaration(!0),e=this.finalize(t,new a.ExportDefaultDeclaration(n))):this.matchContextualKeyword("async")?(n=this.matchAsyncFunction()?this.parseFunctionDeclaration(!0):this.parseAssignmentExpression(),e=this.finalize(t,new a.ExportDefaultDeclaration(n))):(this.matchContextualKeyword("from")&&this.throwError(o.Messages.UnexpectedToken,this.lookahead.value),n=this.match("{")?this.parseObjectInitializer():this.match("[")?this.parseArrayInitializer():this.parseAssignmentExpression(),this.consumeSemicolon(),e=this.finalize(t,new a.ExportDefaultDeclaration(n)));else if(this.match("*")){if(this.nextToken(),!this.matchContextualKeyword("from")){var r=this.lookahead.value?o.Messages.UnexpectedToken:o.Messages.MissingFromClause;this.throwError(r,this.lookahead.value)}this.nextToken();var i=this.parseModuleSpecifier();this.consumeSemicolon(),e=this.finalize(t,new a.ExportAllDeclaration(i))}else if(4===this.lookahead.type){switch(n=void 0,this.lookahead.value){case"let":case"const":n=this.parseLexicalDeclaration({inFor:!1});break;case"var":case"class":case"function":n=this.parseStatementListItem();break;default:this.throwUnexpectedToken(this.lookahead)}e=this.finalize(t,new a.ExportNamedDeclaration(n,[],null))}else if(this.matchAsyncFunction())n=this.parseFunctionDeclaration(),e=this.finalize(t,new a.ExportNamedDeclaration(n,[],null));else{var s=[],l=null,c=!1;for(this.expect("{");!this.match("}");)c=c||this.matchKeyword("default"),s.push(this.parseExportSpecifier()),this.match("}")||this.expect(",");this.expect("}"),this.matchContextualKeyword("from")?(this.nextToken(),l=this.parseModuleSpecifier(),this.consumeSemicolon()):c?(r=this.lookahead.value?o.Messages.UnexpectedToken:o.Messages.MissingFromClause,this.throwError(r,this.lookahead.value)):this.consumeSemicolon(),e=this.finalize(t,new a.ExportNamedDeclaration(null,s,l))}return e},e}();t.Parser=h},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assert=function(e,t){if(!e)throw new Error("ASSERT: "+t)}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){this.errors=[],this.tolerant=!1}return e.prototype.recordError=function(e){this.errors.push(e)},e.prototype.tolerate=function(e){if(!this.tolerant)throw e;this.recordError(e)},e.prototype.constructError=function(e,t){var n=new Error(e);try{throw n}catch(e){Object.create&&Object.defineProperty&&(n=Object.create(e),Object.defineProperty(n,"column",{value:t}))}return n},e.prototype.createError=function(e,t,n,r){var i="Line "+t+": "+r,o=this.constructError(i,n);return o.index=e,o.lineNumber=t,o.description=r,o},e.prototype.throwError=function(e,t,n,r){throw this.createError(e,t,n,r)},e.prototype.tolerateError=function(e,t,n,r){var i=this.createError(e,t,n,r);if(!this.tolerant)throw i;this.recordError(i)},e}();t.ErrorHandler=n},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Messages={BadGetterArity:"Getter must not have any formal parameters",BadSetterArity:"Setter must have exactly one formal parameter",BadSetterRestParameter:"Setter function argument must not be a rest parameter",ConstructorIsAsync:"Class constructor may not be an async method",ConstructorSpecialMethod:"Class constructor may not be an accessor",DeclarationMissingInitializer:"Missing initializer in %0 declaration",DefaultRestParameter:"Unexpected token =",DuplicateBinding:"Duplicate binding %0",DuplicateConstructor:"A class may only have one constructor",DuplicateProtoProperty:"Duplicate __proto__ fields are not allowed in object literals",ForInOfLoopInitializer:"%0 loop variable declaration may not have an initializer",GeneratorInLegacyContext:"Generator declarations are not allowed in legacy contexts",IllegalBreak:"Illegal break statement",IllegalContinue:"Illegal continue statement",IllegalExportDeclaration:"Unexpected token",IllegalImportDeclaration:"Unexpected token",IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list",IllegalReturn:"Illegal return statement",InvalidEscapedReservedWord:"Keyword must not contain escaped characters",InvalidHexEscapeSequence:"Invalid hexadecimal escape sequence",InvalidLHSInAssignment:"Invalid left-hand side in assignment",InvalidLHSInForIn:"Invalid left-hand side in for-in",InvalidLHSInForLoop:"Invalid left-hand side in for-loop",InvalidModuleSpecifier:"Unexpected token",InvalidRegExp:"Invalid regular expression",LetInLexicalBinding:"let is disallowed as a lexically bound name",MissingFromClause:"Unexpected token",MultipleDefaultsInSwitch:"More than one default clause in switch statement",NewlineAfterThrow:"Illegal newline after throw",NoAsAfterImportNamespace:"Unexpected token",NoCatchOrFinally:"Missing catch or finally after try",ParameterAfterRestParameter:"Rest parameter must be last formal parameter",Redeclaration:"%0 '%1' has already been declared",StaticPrototype:"Classes may not have static property named prototype",StrictCatchVariable:"Catch variable may not be eval or arguments in strict mode",StrictDelete:"Delete of an unqualified identifier in strict mode.",StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block",StrictFunctionName:"Function name may not be eval or arguments in strict mode",StrictLHSAssignment:"Assignment to eval or arguments is not allowed in strict mode",StrictLHSPostfix:"Postfix increment/decrement may not have eval or arguments operand in strict mode",StrictLHSPrefix:"Prefix increment/decrement may not have eval or arguments operand in strict mode",StrictModeWith:"Strict mode code may not include a with statement",StrictOctalLiteral:"Octal literals are not allowed in strict mode.",StrictParamDupe:"Strict mode function may not have duplicate parameter names",StrictParamName:"Parameter name eval or arguments is not allowed in strict mode",StrictReservedWord:"Use of future reserved word in strict mode",StrictVarName:"Variable name may not be eval or arguments in strict mode",TemplateOctalLiteral:"Octal literals are not allowed in template strings.",UnexpectedEOS:"Unexpected end of input",UnexpectedIdentifier:"Unexpected identifier",UnexpectedNumber:"Unexpected number",UnexpectedReserved:"Unexpected reserved word",UnexpectedString:"Unexpected string",UnexpectedTemplate:"Unexpected quasi %0",UnexpectedToken:"Unexpected token %0",UnexpectedTokenIllegal:"Unexpected token ILLEGAL",UnknownLabel:"Undefined label '%0'",UnterminatedRegExp:"Invalid regular expression: missing /"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(9),i=n(4),o=n(11);function a(e){return"0123456789abcdef".indexOf(e.toLowerCase())}function s(e){return"01234567".indexOf(e)}var l=function(){function e(e,t){this.source=e,this.errorHandler=t,this.trackComment=!1,this.isModule=!1,this.length=e.length,this.index=0,this.lineNumber=e.length>0?1:0,this.lineStart=0,this.curlyStack=[]}return e.prototype.saveState=function(){return{index:this.index,lineNumber:this.lineNumber,lineStart:this.lineStart}},e.prototype.restoreState=function(e){this.index=e.index,this.lineNumber=e.lineNumber,this.lineStart=e.lineStart},e.prototype.eof=function(){return this.index>=this.length},e.prototype.throwUnexpectedToken=function(e){return void 0===e&&(e=o.Messages.UnexpectedTokenIllegal),this.errorHandler.throwError(this.index,this.lineNumber,this.index-this.lineStart+1,e)},e.prototype.tolerateUnexpectedToken=function(e){void 0===e&&(e=o.Messages.UnexpectedTokenIllegal),this.errorHandler.tolerateError(this.index,this.lineNumber,this.index-this.lineStart+1,e)},e.prototype.skipSingleLineComment=function(e){var t,n,r=[];for(this.trackComment&&(r=[],t=this.index-e,n={start:{line:this.lineNumber,column:this.index-this.lineStart-e},end:{}});!this.eof();){var o=this.source.charCodeAt(this.index);if(++this.index,i.Character.isLineTerminator(o)){if(this.trackComment){n.end={line:this.lineNumber,column:this.index-this.lineStart-1};var a={multiLine:!1,slice:[t+e,this.index-1],range:[t,this.index-1],loc:n};r.push(a)}return 13===o&&10===this.source.charCodeAt(this.index)&&++this.index,++this.lineNumber,this.lineStart=this.index,r}}return this.trackComment&&(n.end={line:this.lineNumber,column:this.index-this.lineStart},a={multiLine:!1,slice:[t+e,this.index],range:[t,this.index],loc:n},r.push(a)),r},e.prototype.skipMultiLineComment=function(){var e,t,n=[];for(this.trackComment&&(n=[],e=this.index-2,t={start:{line:this.lineNumber,column:this.index-this.lineStart-2},end:{}});!this.eof();){var r=this.source.charCodeAt(this.index);if(i.Character.isLineTerminator(r))13===r&&10===this.source.charCodeAt(this.index+1)&&++this.index,++this.lineNumber,++this.index,this.lineStart=this.index;else if(42===r){if(47===this.source.charCodeAt(this.index+1)){if(this.index+=2,this.trackComment){t.end={line:this.lineNumber,column:this.index-this.lineStart};var o={multiLine:!0,slice:[e+2,this.index-2],range:[e,this.index],loc:t};n.push(o)}return n}++this.index}else++this.index}return this.trackComment&&(t.end={line:this.lineNumber,column:this.index-this.lineStart},o={multiLine:!0,slice:[e+2,this.index],range:[e,this.index],loc:t},n.push(o)),this.tolerateUnexpectedToken(),n},e.prototype.scanComments=function(){var e;this.trackComment&&(e=[]);for(var t=0===this.index;!this.eof();){var n=this.source.charCodeAt(this.index);if(i.Character.isWhiteSpace(n))++this.index;else if(i.Character.isLineTerminator(n))++this.index,13===n&&10===this.source.charCodeAt(this.index)&&++this.index,++this.lineNumber,this.lineStart=this.index,t=!0;else if(47===n)if(47===(n=this.source.charCodeAt(this.index+1))){this.index+=2;var r=this.skipSingleLineComment(2);this.trackComment&&(e=e.concat(r)),t=!0}else{if(42!==n)break;this.index+=2,r=this.skipMultiLineComment(),this.trackComment&&(e=e.concat(r))}else if(t&&45===n){if(45!==this.source.charCodeAt(this.index+1)||62!==this.source.charCodeAt(this.index+2))break;this.index+=3,r=this.skipSingleLineComment(3),this.trackComment&&(e=e.concat(r))}else{if(60!==n||this.isModule)break;if("!--"!==this.source.slice(this.index+1,this.index+4))break;this.index+=4,r=this.skipSingleLineComment(4),this.trackComment&&(e=e.concat(r))}}return e},e.prototype.isFutureReservedWord=function(e){switch(e){case"enum":case"export":case"import":case"super":return!0;default:return!1}},e.prototype.isStrictModeReservedWord=function(e){switch(e){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"yield":case"let":return!0;default:return!1}},e.prototype.isRestrictedWord=function(e){return"eval"===e||"arguments"===e},e.prototype.isKeyword=function(e){switch(e.length){case 2:return"if"===e||"in"===e||"do"===e;case 3:return"var"===e||"for"===e||"new"===e||"try"===e||"let"===e;case 4:return"this"===e||"else"===e||"case"===e||"void"===e||"with"===e||"enum"===e;case 5:return"while"===e||"break"===e||"catch"===e||"throw"===e||"const"===e||"yield"===e||"class"===e||"super"===e;case 6:return"return"===e||"typeof"===e||"delete"===e||"switch"===e||"export"===e||"import"===e;case 7:return"default"===e||"finally"===e||"extends"===e;case 8:return"function"===e||"continue"===e||"debugger"===e;case 10:return"instanceof"===e;default:return!1}},e.prototype.codePointAt=function(e){var t=this.source.charCodeAt(e);if(t>=55296&&t<=56319){var n=this.source.charCodeAt(e+1);n>=56320&&n<=57343&&(t=1024*(t-55296)+n-56320+65536)}return t},e.prototype.scanHexEscape=function(e){for(var t="u"===e?4:2,n=0,r=0;r1114111||"}"!==e)&&this.throwUnexpectedToken(),i.Character.fromCodePoint(t)},e.prototype.getIdentifier=function(){for(var e=this.index++;!this.eof();){var t=this.source.charCodeAt(this.index);if(92===t)return this.index=e,this.getComplexIdentifier();if(t>=55296&&t<57343)return this.index=e,this.getComplexIdentifier();if(!i.Character.isIdentifierPart(t))break;++this.index}return this.source.slice(e,this.index)},e.prototype.getComplexIdentifier=function(){var e,t=this.codePointAt(this.index),n=i.Character.fromCodePoint(t);for(this.index+=n.length,92===t&&(117!==this.source.charCodeAt(this.index)&&this.throwUnexpectedToken(),++this.index,"{"===this.source[this.index]?(++this.index,e=this.scanUnicodeCodePointEscape()):null!==(e=this.scanHexEscape("u"))&&"\\"!==e&&i.Character.isIdentifierStart(e.charCodeAt(0))||this.throwUnexpectedToken(),n=e);!this.eof()&&(t=this.codePointAt(this.index),i.Character.isIdentifierPart(t));)n+=e=i.Character.fromCodePoint(t),this.index+=e.length,92===t&&(n=n.substr(0,n.length-1),117!==this.source.charCodeAt(this.index)&&this.throwUnexpectedToken(),++this.index,"{"===this.source[this.index]?(++this.index,e=this.scanUnicodeCodePointEscape()):null!==(e=this.scanHexEscape("u"))&&"\\"!==e&&i.Character.isIdentifierPart(e.charCodeAt(0))||this.throwUnexpectedToken(),n+=e);return n},e.prototype.octalToDecimal=function(e){var t="0"!==e,n=s(e);return!this.eof()&&i.Character.isOctalDigit(this.source.charCodeAt(this.index))&&(t=!0,n=8*n+s(this.source[this.index++]),"0123".indexOf(e)>=0&&!this.eof()&&i.Character.isOctalDigit(this.source.charCodeAt(this.index))&&(n=8*n+s(this.source[this.index++]))),{code:n,octal:t}},e.prototype.scanIdentifier=function(){var e,t=this.index,n=92===this.source.charCodeAt(t)?this.getComplexIdentifier():this.getIdentifier();if(3!=(e=1===n.length?3:this.isKeyword(n)?4:"null"===n?5:"true"===n||"false"===n?1:3)&&t+n.length!==this.index){var r=this.index;this.index=t,this.tolerateUnexpectedToken(o.Messages.InvalidEscapedReservedWord),this.index=r}return{type:e,value:n,lineNumber:this.lineNumber,lineStart:this.lineStart,start:t,end:this.index}},e.prototype.scanPunctuator=function(){var e=this.index,t=this.source[this.index];switch(t){case"(":case"{":"{"===t&&this.curlyStack.push("{"),++this.index;break;case".":++this.index,"."===this.source[this.index]&&"."===this.source[this.index+1]&&(this.index+=2,t="...");break;case"}":++this.index,this.curlyStack.pop();break;case")":case";":case",":case"[":case"]":case":":case"?":case"~":++this.index;break;default:">>>="===(t=this.source.substr(this.index,4))?this.index+=4:"==="===(t=t.substr(0,3))||"!=="===t||">>>"===t||"<<="===t||">>="===t||"**="===t?this.index+=3:"&&"===(t=t.substr(0,2))||"||"===t||"=="===t||"!="===t||"+="===t||"-="===t||"*="===t||"/="===t||"++"===t||"--"===t||"<<"===t||">>"===t||"&="===t||"|="===t||"^="===t||"%="===t||"<="===t||">="===t||"=>"===t||"**"===t?this.index+=2:(t=this.source[this.index],"<>=!+-*%&|^/".indexOf(t)>=0&&++this.index)}return this.index===e&&this.throwUnexpectedToken(),{type:7,value:t,lineNumber:this.lineNumber,lineStart:this.lineStart,start:e,end:this.index}},e.prototype.scanHexLiteral=function(e){for(var t="";!this.eof()&&i.Character.isHexDigit(this.source.charCodeAt(this.index));)t+=this.source[this.index++];return 0===t.length&&this.throwUnexpectedToken(),i.Character.isIdentifierStart(this.source.charCodeAt(this.index))&&this.throwUnexpectedToken(),{type:6,value:parseInt("0x"+t,16),lineNumber:this.lineNumber,lineStart:this.lineStart,start:e,end:this.index}},e.prototype.scanBinaryLiteral=function(e){for(var t,n="";!this.eof()&&("0"===(t=this.source[this.index])||"1"===t);)n+=this.source[this.index++];return 0===n.length&&this.throwUnexpectedToken(),this.eof()||(t=this.source.charCodeAt(this.index),(i.Character.isIdentifierStart(t)||i.Character.isDecimalDigit(t))&&this.throwUnexpectedToken()),{type:6,value:parseInt(n,2),lineNumber:this.lineNumber,lineStart:this.lineStart,start:e,end:this.index}},e.prototype.scanOctalLiteral=function(e,t){var n="",r=!1;for(i.Character.isOctalDigit(e.charCodeAt(0))?(r=!0,n="0"+this.source[this.index++]):++this.index;!this.eof()&&i.Character.isOctalDigit(this.source.charCodeAt(this.index));)n+=this.source[this.index++];return r||0!==n.length||this.throwUnexpectedToken(),(i.Character.isIdentifierStart(this.source.charCodeAt(this.index))||i.Character.isDecimalDigit(this.source.charCodeAt(this.index)))&&this.throwUnexpectedToken(),{type:6,value:parseInt(n,8),octal:r,lineNumber:this.lineNumber,lineStart:this.lineStart,start:t,end:this.index}},e.prototype.isImplicitOctalLiteral=function(){for(var e=this.index+1;e=0&&(n=n.replace(/\\u\{([0-9a-fA-F]+)\}|\\u([a-fA-F0-9]{4})/g,(function(e,t,n){var i=parseInt(t||n,16);return i>1114111&&r.throwUnexpectedToken(o.Messages.InvalidRegExp),i<=65535?String.fromCharCode(i):"￿"})).replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"￿"));try{RegExp(n)}catch(e){this.throwUnexpectedToken(o.Messages.InvalidRegExp)}try{return new RegExp(e,t)}catch(e){return null}},e.prototype.scanRegExpBody=function(){var e=this.source[this.index];r.assert("/"===e,"Regular expression literal must start with a slash");for(var t=this.source[this.index++],n=!1,a=!1;!this.eof();)if(t+=e=this.source[this.index++],"\\"===e)e=this.source[this.index++],i.Character.isLineTerminator(e.charCodeAt(0))&&this.throwUnexpectedToken(o.Messages.UnterminatedRegExp),t+=e;else if(i.Character.isLineTerminator(e.charCodeAt(0)))this.throwUnexpectedToken(o.Messages.UnterminatedRegExp);else if(n)"]"===e&&(n=!1);else{if("/"===e){a=!0;break}"["===e&&(n=!0)}return a||this.throwUnexpectedToken(o.Messages.UnterminatedRegExp),t.substr(1,t.length-2)},e.prototype.scanRegExpFlags=function(){for(var e="";!this.eof();){var t=this.source[this.index];if(!i.Character.isIdentifierPart(t.charCodeAt(0)))break;if(++this.index,"\\"!==t||this.eof())e+=t;else if("u"===(t=this.source[this.index])){++this.index;var n=this.index,r=this.scanHexEscape("u");if(null!==r)for(e+=r;n=55296&&e<57343&&i.Character.isIdentifierStart(this.codePointAt(this.index))?this.scanIdentifier():this.scanPunctuator()},e}();t.Scanner=l},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TokenName={},t.TokenName[1]="Boolean",t.TokenName[2]="",t.TokenName[3]="Identifier",t.TokenName[4]="Keyword",t.TokenName[5]="Null",t.TokenName[6]="Numeric",t.TokenName[7]="Punctuator",t.TokenName[8]="String",t.TokenName[9]="RegularExpression",t.TokenName[10]="Template"},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.XHTMLEntities={quot:'"',amp:"&",apos:"'",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",lang:"⟨",rang:"⟩"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(10),i=n(12),o=n(13),a=function(){function e(){this.values=[],this.curly=this.paren=-1}return e.prototype.beforeFunctionExpression=function(e){return["(","{","[","in","typeof","instanceof","new","return","case","delete","throw","void","=","+=","-=","*=","**=","/=","%=","<<=",">>=",">>>=","&=","|=","^=",",","+","-","*","**","/","%","++","--","<<",">>",">>>","&","|","^","!","~","&&","||","?",":","===","==",">=","<=","<",">","!=","!=="].indexOf(e)>=0},e.prototype.isRegexStart=function(){var e=this.values[this.values.length-1],t=null!==e;switch(e){case"this":case"]":t=!1;break;case")":var n=this.values[this.paren-1];t="if"===n||"while"===n||"for"===n||"with"===n;break;case"}":if(t=!1,"function"===this.values[this.curly-3])t=!!(r=this.values[this.curly-4])&&!this.beforeFunctionExpression(r);else if("function"===this.values[this.curly-4]){var r;t=!(r=this.values[this.curly-5])||!this.beforeFunctionExpression(r)}}return t},e.prototype.push=function(e){7===e.type||4===e.type?("{"===e.value?this.curly=this.values.length:"("===e.value&&(this.paren=this.values.length),this.values.push(e.value)):this.values.push(null)},e}(),s=function(){function e(e,t){this.errorHandler=new r.ErrorHandler,this.errorHandler.tolerant=!!t&&"boolean"==typeof t.tolerant&&t.tolerant,this.scanner=new i.Scanner(e,this.errorHandler),this.scanner.trackComment=!!t&&"boolean"==typeof t.comment&&t.comment,this.trackRange=!!t&&"boolean"==typeof t.range&&t.range,this.trackLoc=!!t&&"boolean"==typeof t.loc&&t.loc,this.buffer=[],this.reader=new a}return e.prototype.errors=function(){return this.errorHandler.errors},e.prototype.getNextToken=function(){if(0===this.buffer.length){var e=this.scanner.scanComments();if(this.scanner.trackComment)for(var t=0;t{"use strict";e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var r,i,o;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(i=r;0!=i--;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(o=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(i=r;0!=i--;)if(!Object.prototype.hasOwnProperty.call(n,o[i]))return!1;for(i=r;0!=i--;){var a=o[i];if(!e(t[a],n[a]))return!1}return!0}return t!=t&&n!=n}},5035:e=>{"use strict";e.exports=function(e,t){t||(t={}),"function"==typeof t&&(t={cmp:t});var n,r="boolean"==typeof t.cycles&&t.cycles,i=t.cmp&&(n=t.cmp,function(e){return function(t,r){var i={key:t,value:e[t]},o={key:r,value:e[r]};return n(i,o)}}),o=[];return function e(t){if(t&&t.toJSON&&"function"==typeof t.toJSON&&(t=t.toJSON()),void 0!==t){if("number"==typeof t)return isFinite(t)?""+t:"null";if("object"!=typeof t)return JSON.stringify(t);var n,a;if(Array.isArray(t)){for(a="[",n=0;n{t.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,l=(1<>1,u=-7,h=n?i-1:0,d=n?-1:1,f=e[t+h];for(h+=d,o=f&(1<<-u)-1,f>>=-u,u+=s;u>0;o=256*o+e[t+h],h+=d,u-=8);for(a=o&(1<<-u)-1,o>>=-u,u+=r;u>0;a=256*a+e[t+h],h+=d,u-=8);if(0===o)o=1-c;else{if(o===l)return a?NaN:1/0*(f?-1:1);a+=Math.pow(2,r),o-=c}return(f?-1:1)*a*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var a,s,l,c=8*o-i-1,u=(1<>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,f=r?0:o-1,p=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),(t+=a+h>=1?d/l:d*Math.pow(2,1-h))*l>=2&&(a++,l/=2),a+h>=u?(s=0,a=u):a+h>=1?(s=(t*l-1)*Math.pow(2,i),a+=h):(s=t*Math.pow(2,h-1)*Math.pow(2,i),a=0));i>=8;e[n+f]=255&s,f+=p,s/=256,i-=8);for(a=a<0;e[n+f]=255&a,f+=p,a/=256,c-=8);e[n+f-p]|=128*m}},9755:function(e,t){var n;!function(t,n){"use strict";"object"==typeof e.exports?e.exports=t.document?n(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(t)}("undefined"!=typeof window?window:this,(function(r,i){"use strict";var o=[],a=Object.getPrototypeOf,s=o.slice,l=o.flat?function(e){return o.flat.call(e)}:function(e){return o.concat.apply([],e)},c=o.push,u=o.indexOf,h={},d=h.toString,f=h.hasOwnProperty,p=f.toString,m=p.call(Object),g={},v=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},y=function(e){return null!=e&&e===e.window},b=r.document,x={type:!0,src:!0,nonce:!0,noModule:!0};function w(e,t,n){var r,i,o=(n=n||b).createElement("script");if(o.text=e,t)for(r in x)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function _(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?h[d.call(e)]||"object":typeof e}var k="3.5.1",E=function(e,t){return new E.fn.init(e,t)};function C(e){var t=!!e&&"length"in e&&e.length,n=_(e);return!v(e)&&!y(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}E.fn=E.prototype={jquery:k,constructor:E,length:0,toArray:function(){return s.call(this)},get:function(e){return null==e?s.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=E.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return E.each(this,e)},map:function(e){return this.pushStack(E.map(this,(function(t,n){return e.call(t,n,t)})))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(E.grep(this,(function(e,t){return(t+1)%2})))},odd:function(){return this.pushStack(E.grep(this,(function(e,t){return t%2})))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n+~]|[\\x20\\t\\r\\n\\f])[\\x20\\t\\r\\n\\f]*"),W=new RegExp(j+"|>"),V=new RegExp(R),G=new RegExp("^"+L+"$"),X={ID:new RegExp("^#("+L+")"),CLASS:new RegExp("^\\.("+L+")"),TAG:new RegExp("^("+L+"|[*])"),ATTR:new RegExp("^"+z),PSEUDO:new RegExp("^"+R),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\([\\x20\\t\\r\\n\\f]*(even|odd|(([+-]|)(\\d*)n|)[\\x20\\t\\r\\n\\f]*(?:([+-]|)[\\x20\\t\\r\\n\\f]*(\\d+)|))[\\x20\\t\\r\\n\\f]*\\)|)","i"),bool:new RegExp("^(?:"+B+")$","i"),needsContext:new RegExp("^[\\x20\\t\\r\\n\\f]*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\([\\x20\\t\\r\\n\\f]*((?:-\\d)?\\d*)[\\x20\\t\\r\\n\\f]*\\)|)(?=[^-]|$)","i")},Y=/HTML$/i,J=/^(?:input|select|textarea|button)$/i,Z=/^h\d$/i,K=/^[^{]+\{\s*\[native \w/,Q=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\([^\\r\\n\\f])","g"),ne=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ie=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},oe=function(){d()},ae=xe((function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{P.apply(M=N.call(w.childNodes),w.childNodes),M[w.childNodes.length].nodeType}catch(e){P={apply:M.length?function(e,t){F.apply(e,N.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}function se(e,t,r,i){var o,s,c,u,h,p,v,y=t&&t.ownerDocument,w=t?t.nodeType:9;if(r=r||[],"string"!=typeof e||!e||1!==w&&9!==w&&11!==w)return r;if(!i&&(d(t),t=t||f,m)){if(11!==w&&(h=Q.exec(e)))if(o=h[1]){if(9===w){if(!(c=t.getElementById(o)))return r;if(c.id===o)return r.push(c),r}else if(y&&(c=y.getElementById(o))&&b(t,c)&&c.id===o)return r.push(c),r}else{if(h[2])return P.apply(r,t.getElementsByTagName(e)),r;if((o=h[3])&&n.getElementsByClassName&&t.getElementsByClassName)return P.apply(r,t.getElementsByClassName(o)),r}if(n.qsa&&!D[e+" "]&&(!g||!g.test(e))&&(1!==w||"object"!==t.nodeName.toLowerCase())){if(v=e,y=t,1===w&&(W.test(e)||q.test(e))){for((y=ee.test(e)&&ve(t.parentNode)||t)===t&&n.scope||((u=t.getAttribute("id"))?u=u.replace(re,ie):t.setAttribute("id",u=x)),s=(p=a(e)).length;s--;)p[s]=(u?"#"+u:":scope")+" "+be(p[s]);v=p.join(",")}try{return P.apply(r,y.querySelectorAll(v)),r}catch(t){D(e,!0)}finally{u===x&&t.removeAttribute("id")}}}return l(e.replace(H,"$1"),t,r,i)}function le(){var e=[];return function t(n,i){return e.push(n+" ")>r.cacheLength&&delete t[e.shift()],t[n+" "]=i}}function ce(e){return e[x]=!0,e}function ue(e){var t=f.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function he(e,t){for(var n=e.split("|"),i=n.length;i--;)r.attrHandle[n[i]]=t}function de(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function fe(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function pe(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function me(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&ae(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function ge(e){return ce((function(t){return t=+t,ce((function(n,r){for(var i,o=e([],n.length,t),a=o.length;a--;)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))}))}))}function ve(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=se.support={},o=se.isXML=function(e){var t=e.namespaceURI,n=(e.ownerDocument||e).documentElement;return!Y.test(t||n&&n.nodeName||"HTML")},d=se.setDocument=function(e){var t,i,a=e?e.ownerDocument||e:w;return a!=f&&9===a.nodeType&&a.documentElement?(p=(f=a).documentElement,m=!o(f),w!=f&&(i=f.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",oe,!1):i.attachEvent&&i.attachEvent("onunload",oe)),n.scope=ue((function(e){return p.appendChild(e).appendChild(f.createElement("div")),void 0!==e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length})),n.attributes=ue((function(e){return e.className="i",!e.getAttribute("className")})),n.getElementsByTagName=ue((function(e){return e.appendChild(f.createComment("")),!e.getElementsByTagName("*").length})),n.getElementsByClassName=K.test(f.getElementsByClassName),n.getById=ue((function(e){return p.appendChild(e).id=x,!f.getElementsByName||!f.getElementsByName(x).length})),n.getById?(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&m){var n=t.getElementById(e);return n?[n]:[]}}):(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&m){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];for(i=t.getElementsByName(e),r=0;o=i[r++];)if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),r.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},r.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&m)return t.getElementsByClassName(e)},v=[],g=[],(n.qsa=K.test(f.querySelectorAll))&&(ue((function(e){var t;p.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&g.push("[*^$]=[\\x20\\t\\r\\n\\f]*(?:''|\"\")"),e.querySelectorAll("[selected]").length||g.push("\\[[\\x20\\t\\r\\n\\f]*(?:value|"+B+")"),e.querySelectorAll("[id~="+x+"-]").length||g.push("~="),(t=f.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||g.push("\\[[\\x20\\t\\r\\n\\f]*name[\\x20\\t\\r\\n\\f]*=[\\x20\\t\\r\\n\\f]*(?:''|\"\")"),e.querySelectorAll(":checked").length||g.push(":checked"),e.querySelectorAll("a#"+x+"+*").length||g.push(".#.+[+~]"),e.querySelectorAll("\\\f"),g.push("[\\r\\n\\f]")})),ue((function(e){e.innerHTML="";var t=f.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&g.push("name[\\x20\\t\\r\\n\\f]*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&g.push(":enabled",":disabled"),p.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&g.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),g.push(",.*:")}))),(n.matchesSelector=K.test(y=p.matches||p.webkitMatchesSelector||p.mozMatchesSelector||p.oMatchesSelector||p.msMatchesSelector))&&ue((function(e){n.disconnectedMatch=y.call(e,"*"),y.call(e,"[s!='']:x"),v.push("!=",R)})),g=g.length&&new RegExp(g.join("|")),v=v.length&&new RegExp(v.join("|")),t=K.test(p.compareDocumentPosition),b=t||K.test(p.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},A=t?function(e,t){if(e===t)return h=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(1&(r=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===r?e==f||e.ownerDocument==w&&b(w,e)?-1:t==f||t.ownerDocument==w&&b(w,t)?1:u?I(u,e)-I(u,t):0:4&r?-1:1)}:function(e,t){if(e===t)return h=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e==f?-1:t==f?1:i?-1:o?1:u?I(u,e)-I(u,t):0;if(i===o)return de(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;a[r]===s[r];)r++;return r?de(a[r],s[r]):a[r]==w?-1:s[r]==w?1:0},f):f},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if(d(e),n.matchesSelector&&m&&!D[t+" "]&&(!v||!v.test(t))&&(!g||!g.test(t)))try{var r=y.call(e,t);if(r||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){D(t,!0)}return se(t,f,null,[e]).length>0},se.contains=function(e,t){return(e.ownerDocument||e)!=f&&d(e),b(e,t)},se.attr=function(e,t){(e.ownerDocument||e)!=f&&d(e);var i=r.attrHandle[t.toLowerCase()],o=i&&T.call(r.attrHandle,t.toLowerCase())?i(e,t,!m):void 0;return void 0!==o?o:n.attributes||!m?e.getAttribute(t):(o=e.getAttributeNode(t))&&o.specified?o.value:null},se.escape=function(e){return(e+"").replace(re,ie)},se.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},se.uniqueSort=function(e){var t,r=[],i=0,o=0;if(h=!n.detectDuplicates,u=!n.sortStable&&e.slice(0),e.sort(A),h){for(;t=e[o++];)t===e[o]&&(i=r.push(o));for(;i--;)e.splice(r[i],1)}return u=null,e},i=se.getText=function(e){var t,n="",r=0,o=e.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=i(e)}else if(3===o||4===o)return e.nodeValue}else for(;t=e[r++];)n+=i(t);return n},r=se.selectors={cacheLength:50,createPseudo:ce,match:X,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return X.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&V.test(n)&&(t=a(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=E[e+" "];return t||(t=new RegExp("(^|[\\x20\\t\\r\\n\\f])"+e+"("+j+"|$)"))&&E(e,(function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,n){return function(r){var i=se.attr(r,e);return null==i?"!="===t:!t||(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&i.indexOf(n)>-1:"$="===t?n&&i.slice(-n.length)===n:"~="===t?(" "+i.replace($," ")+" ").indexOf(n)>-1:"|="===t&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,l){var c,u,h,d,f,p,m=o!==a?"nextSibling":"previousSibling",g=t.parentNode,v=s&&t.nodeName.toLowerCase(),y=!l&&!s,b=!1;if(g){if(o){for(;m;){for(d=t;d=d[m];)if(s?d.nodeName.toLowerCase()===v:1===d.nodeType)return!1;p=m="only"===e&&!p&&"nextSibling"}return!0}if(p=[a?g.firstChild:g.lastChild],a&&y){for(b=(f=(c=(u=(h=(d=g)[x]||(d[x]={}))[d.uniqueID]||(h[d.uniqueID]={}))[e]||[])[0]===_&&c[1])&&c[2],d=f&&g.childNodes[f];d=++f&&d&&d[m]||(b=f=0)||p.pop();)if(1===d.nodeType&&++b&&d===t){u[e]=[_,f,b];break}}else if(y&&(b=f=(c=(u=(h=(d=t)[x]||(d[x]={}))[d.uniqueID]||(h[d.uniqueID]={}))[e]||[])[0]===_&&c[1]),!1===b)for(;(d=++f&&d&&d[m]||(b=f=0)||p.pop())&&((s?d.nodeName.toLowerCase()!==v:1!==d.nodeType)||!++b||(y&&((u=(h=d[x]||(d[x]={}))[d.uniqueID]||(h[d.uniqueID]={}))[e]=[_,b]),d!==t)););return(b-=i)===r||b%r==0&&b/r>=0}}},PSEUDO:function(e,t){var n,i=r.pseudos[e]||r.setFilters[e.toLowerCase()]||se.error("unsupported pseudo: "+e);return i[x]?i(t):i.length>1?(n=[e,e,"",t],r.setFilters.hasOwnProperty(e.toLowerCase())?ce((function(e,n){for(var r,o=i(e,t),a=o.length;a--;)e[r=I(e,o[a])]=!(n[r]=o[a])})):function(e){return i(e,0,n)}):i}},pseudos:{not:ce((function(e){var t=[],n=[],r=s(e.replace(H,"$1"));return r[x]?ce((function(e,t,n,i){for(var o,a=r(e,null,i,[]),s=e.length;s--;)(o=a[s])&&(e[s]=!(t[s]=o))})):function(e,i,o){return t[0]=e,r(t,null,o,n),t[0]=null,!n.pop()}})),has:ce((function(e){return function(t){return se(e,t).length>0}})),contains:ce((function(e){return e=e.replace(te,ne),function(t){return(t.textContent||i(t)).indexOf(e)>-1}})),lang:ce((function(e){return G.test(e||"")||se.error("unsupported lang: "+e),e=e.replace(te,ne).toLowerCase(),function(t){var n;do{if(n=m?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===p},focus:function(e){return e===f.activeElement&&(!f.hasFocus||f.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:me(!1),disabled:me(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!r.pseudos.empty(e)},header:function(e){return Z.test(e.nodeName)},input:function(e){return J.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:ge((function(){return[0]})),last:ge((function(e,t){return[t-1]})),eq:ge((function(e,t,n){return[n<0?n+t:n]})),even:ge((function(e,t){for(var n=0;nt?t:n;--r>=0;)e.push(r);return e})),gt:ge((function(e,t,n){for(var r=n<0?n+t:n;++r1?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function _e(e,t,n,r,i){for(var o,a=[],s=0,l=e.length,c=null!=t;s-1&&(o[c]=!(a[c]=h))}}else v=_e(v===a?v.splice(p,v.length):v),i?i(null,a,v,l):P.apply(a,v)}))}function Ee(e){for(var t,n,i,o=e.length,a=r.relative[e[0].type],s=a||r.relative[" "],l=a?1:0,u=xe((function(e){return e===t}),s,!0),h=xe((function(e){return I(t,e)>-1}),s,!0),d=[function(e,n,r){var i=!a&&(r||n!==c)||((t=n).nodeType?u(e,n,r):h(e,n,r));return t=null,i}];l1&&we(d),l>1&&be(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(H,"$1"),n,l0,i=e.length>0,o=function(o,a,s,l,u){var h,p,g,v=0,y="0",b=o&&[],x=[],w=c,k=o||i&&r.find.TAG("*",u),E=_+=null==w?1:Math.random()||.1,C=k.length;for(u&&(c=a==f||a||u);y!==C&&null!=(h=k[y]);y++){if(i&&h){for(p=0,a||h.ownerDocument==f||(d(h),s=!m);g=e[p++];)if(g(h,a||f,s)){l.push(h);break}u&&(_=E)}n&&((h=!g&&h)&&v--,o&&b.push(h))}if(v+=y,n&&y!==v){for(p=0;g=t[p++];)g(b,x,a,s);if(o){if(v>0)for(;y--;)b[y]||x[y]||(x[y]=O.call(l));x=_e(x)}P.apply(l,x),u&&!o&&x.length>0&&v+t.length>1&&se.uniqueSort(l)}return u&&(_=E,c=w),b};return n?ce(o):o}(o,i)),s.selector=e}return s},l=se.select=function(e,t,n,i){var o,l,c,u,h,d="function"==typeof e&&e,f=!i&&a(e=d.selector||e);if(n=n||[],1===f.length){if((l=f[0]=f[0].slice(0)).length>2&&"ID"===(c=l[0]).type&&9===t.nodeType&&m&&r.relative[l[1].type]){if(!(t=(r.find.ID(c.matches[0].replace(te,ne),t)||[])[0]))return n;d&&(t=t.parentNode),e=e.slice(l.shift().value.length)}for(o=X.needsContext.test(e)?0:l.length;o--&&(c=l[o],!r.relative[u=c.type]);)if((h=r.find[u])&&(i=h(c.matches[0].replace(te,ne),ee.test(l[0].type)&&ve(t.parentNode)||t))){if(l.splice(o,1),!(e=i.length&&be(l)))return P.apply(n,i),n;break}}return(d||s(e,f))(i,t,!m,n,!t||ee.test(e)&&ve(t.parentNode)||t),n},n.sortStable=x.split("").sort(A).join("")===x,n.detectDuplicates=!!h,d(),n.sortDetached=ue((function(e){return 1&e.compareDocumentPosition(f.createElement("fieldset"))})),ue((function(e){return e.innerHTML="","#"===e.firstChild.getAttribute("href")}))||he("type|href|height|width",(function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)})),n.attributes&&ue((function(e){return e.innerHTML="",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")}))||he("value",(function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue})),ue((function(e){return null==e.getAttribute("disabled")}))||he(B,(function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null})),se}(r);E.find=S,E.expr=S.selectors,E.expr[":"]=E.expr.pseudos,E.uniqueSort=E.unique=S.uniqueSort,E.text=S.getText,E.isXMLDoc=S.isXML,E.contains=S.contains,E.escapeSelector=S.escape;var D=function(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&E(e).is(n))break;r.push(e)}return r},A=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},T=E.expr.match.needsContext;function M(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var O=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function F(e,t,n){return v(t)?E.grep(e,(function(e,r){return!!t.call(e,r,e)!==n})):t.nodeType?E.grep(e,(function(e){return e===t!==n})):"string"!=typeof t?E.grep(e,(function(e){return u.call(t,e)>-1!==n})):E.filter(t,e,n)}E.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?E.find.matchesSelector(r,e)?[r]:[]:E.find.matches(e,E.grep(t,(function(e){return 1===e.nodeType})))},E.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(E(e).filter((function(){for(t=0;t1?E.uniqueSort(n):n},filter:function(e){return this.pushStack(F(this,e||[],!1))},not:function(e){return this.pushStack(F(this,e||[],!0))},is:function(e){return!!F(this,"string"==typeof e&&T.test(e)?E(e):e||[],!1).length}});var P,N=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(E.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||P,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:N.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof E?t[0]:t,E.merge(this,E.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:b,!0)),O.test(r[1])&&E.isPlainObject(t))for(r in t)v(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=b.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):v(e)?void 0!==n.ready?n.ready(e):e(E):E.makeArray(e,this)}).prototype=E.fn,P=E(b);var I=/^(?:parents|prev(?:Until|All))/,B={children:!0,contents:!0,next:!0,prev:!0};function j(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}E.fn.extend({has:function(e){var t=E(e,this),n=t.length;return this.filter((function(){for(var e=0;e-1:1===n.nodeType&&E.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?E.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?u.call(E(e),this[0]):u.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(E.uniqueSort(E.merge(this.get(),E(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),E.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return D(e,"parentNode")},parentsUntil:function(e,t,n){return D(e,"parentNode",n)},next:function(e){return j(e,"nextSibling")},prev:function(e){return j(e,"previousSibling")},nextAll:function(e){return D(e,"nextSibling")},prevAll:function(e){return D(e,"previousSibling")},nextUntil:function(e,t,n){return D(e,"nextSibling",n)},prevUntil:function(e,t,n){return D(e,"previousSibling",n)},siblings:function(e){return A((e.parentNode||{}).firstChild,e)},children:function(e){return A(e.firstChild)},contents:function(e){return null!=e.contentDocument&&a(e.contentDocument)?e.contentDocument:(M(e,"template")&&(e=e.content||e),E.merge([],e.childNodes))}},(function(e,t){E.fn[e]=function(n,r){var i=E.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=E.filter(r,i)),this.length>1&&(B[e]||E.uniqueSort(i),I.test(e)&&i.reverse()),this.pushStack(i)}}));var L=/[^\x20\t\r\n\f]+/g;function z(e){return e}function R(e){throw e}function $(e,t,n,r){var i;try{e&&v(i=e.promise)?i.call(e).done(t).fail(n):e&&v(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}E.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return E.each(e.match(L)||[],(function(e,n){t[n]=!0})),t}(e):E.extend({},e);var t,n,r,i,o=[],a=[],s=-1,l=function(){for(i=i||e.once,r=t=!0;a.length;s=-1)for(n=a.shift();++s-1;)o.splice(n,1),n<=s&&s--})),this},has:function(e){return e?E.inArray(e,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return i=a=[],o=n="",this},disabled:function(){return!o},lock:function(){return i=a=[],n||t||(o=n=""),this},locked:function(){return!!i},fireWith:function(e,n){return i||(n=[e,(n=n||[]).slice?n.slice():n],a.push(n),t||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!r}};return c},E.extend({Deferred:function(e){var t=[["notify","progress",E.Callbacks("memory"),E.Callbacks("memory"),2],["resolve","done",E.Callbacks("once memory"),E.Callbacks("once memory"),0,"resolved"],["reject","fail",E.Callbacks("once memory"),E.Callbacks("once memory"),1,"rejected"]],n="pending",i={state:function(){return n},always:function(){return o.done(arguments).fail(arguments),this},catch:function(e){return i.then(null,e)},pipe:function(){var e=arguments;return E.Deferred((function(n){E.each(t,(function(t,r){var i=v(e[r[4]])&&e[r[4]];o[r[1]]((function(){var e=i&&i.apply(this,arguments);e&&v(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[r[0]+"With"](this,i?[e]:arguments)}))})),e=null})).promise()},then:function(e,n,i){var o=0;function a(e,t,n,i){return function(){var s=this,l=arguments,c=function(){var r,c;if(!(e=o&&(n!==R&&(s=void 0,l=[r]),t.rejectWith(s,l))}};e?u():(E.Deferred.getStackHook&&(u.stackTrace=E.Deferred.getStackHook()),r.setTimeout(u))}}return E.Deferred((function(r){t[0][3].add(a(0,r,v(i)?i:z,r.notifyWith)),t[1][3].add(a(0,r,v(e)?e:z)),t[2][3].add(a(0,r,v(n)?n:R))})).promise()},promise:function(e){return null!=e?E.extend(e,i):i}},o={};return E.each(t,(function(e,r){var a=r[2],s=r[5];i[r[1]]=a.add,s&&a.add((function(){n=s}),t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),a.add(r[3].fire),o[r[0]]=function(){return o[r[0]+"With"](this===o?void 0:this,arguments),this},o[r[0]+"With"]=a.fireWith})),i.promise(o),e&&e.call(o,o),o},when:function(e){var t=arguments.length,n=t,r=Array(n),i=s.call(arguments),o=E.Deferred(),a=function(e){return function(n){r[e]=this,i[e]=arguments.length>1?s.call(arguments):n,--t||o.resolveWith(r,i)}};if(t<=1&&($(e,o.done(a(n)).resolve,o.reject,!t),"pending"===o.state()||v(i[n]&&i[n].then)))return o.then();for(;n--;)$(i[n],a(n),o.reject);return o.promise()}});var H=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;E.Deferred.exceptionHook=function(e,t){r.console&&r.console.warn&&e&&H.test(e.name)&&r.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},E.readyException=function(e){r.setTimeout((function(){throw e}))};var U=E.Deferred();function q(){b.removeEventListener("DOMContentLoaded",q),r.removeEventListener("load",q),E.ready()}E.fn.ready=function(e){return U.then(e).catch((function(e){E.readyException(e)})),this},E.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--E.readyWait:E.isReady)||(E.isReady=!0,!0!==e&&--E.readyWait>0||U.resolveWith(b,[E]))}}),E.ready.then=U.then,"complete"===b.readyState||"loading"!==b.readyState&&!b.documentElement.doScroll?r.setTimeout(E.ready):(b.addEventListener("DOMContentLoaded",q),r.addEventListener("load",q));var W=function(e,t,n,r,i,o,a){var s=0,l=e.length,c=null==n;if("object"===_(n))for(s in i=!0,n)W(e,t,s,n[s],!0,o,a);else if(void 0!==r&&(i=!0,v(r)||(a=!0),c&&(a?(t.call(e,r),t=null):(c=t,t=function(e,t,n){return c.call(E(e),n)})),t))for(;s1,null,!0)},removeData:function(e){return this.each((function(){Q.remove(this,e)}))}}),E.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=K.get(e,t),n&&(!r||Array.isArray(n)?r=K.access(e,t,E.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=E.queue(e,t),r=n.length,i=n.shift(),o=E._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,(function(){E.dequeue(e,t)}),o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return K.get(e,n)||K.access(e,n,{empty:E.Callbacks("once memory").add((function(){K.remove(e,[t+"queue",n])}))})}}),E.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length\x20\t\r\n\f]*)/i,ye=/^$|^module$|\/(?:java|ecma)script/i;pe=b.createDocumentFragment().appendChild(b.createElement("div")),(me=b.createElement("input")).setAttribute("type","radio"),me.setAttribute("checked","checked"),me.setAttribute("name","t"),pe.appendChild(me),g.checkClone=pe.cloneNode(!0).cloneNode(!0).lastChild.checked,pe.innerHTML="",g.noCloneChecked=!!pe.cloneNode(!0).lastChild.defaultValue,pe.innerHTML="",g.option=!!pe.lastChild;var be={thead:[1,"","
    "],col:[2,"","
    "],tr:[2,"","
    "],td:[3,"","
    "],_default:[0,"",""]};function xe(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&M(e,t)?E.merge([e],n):n}function we(e,t){for(var n=0,r=e.length;n",""]);var _e=/<|&#?\w+;/;function ke(e,t,n,r,i){for(var o,a,s,l,c,u,h=t.createDocumentFragment(),d=[],f=0,p=e.length;f-1)i&&i.push(o);else if(c=se(o),a=xe(h.appendChild(o),"script"),c&&we(a),n)for(u=0;o=a[u++];)ye.test(o.type||"")&&n.push(o);return h}var Ee=/^key/,Ce=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Se=/^([^.]*)(?:\.(.+)|)/;function De(){return!0}function Ae(){return!1}function Te(e,t){return e===function(){try{return b.activeElement}catch(e){}}()==("focus"===t)}function Me(e,t,n,r,i,o){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=void 0),t)Me(e,s,n,r,t[s],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=Ae;else if(!i)return e;return 1===o&&(a=i,i=function(e){return E().off(e),a.apply(this,arguments)},i.guid=a.guid||(a.guid=E.guid++)),e.each((function(){E.event.add(this,t,i,r,n)}))}function Oe(e,t,n){n?(K.set(e,t,!1),E.event.add(e,t,{namespace:!1,handler:function(e){var r,i,o=K.get(this,t);if(1&e.isTrigger&&this[t]){if(o.length)(E.event.special[t]||{}).delegateType&&e.stopPropagation();else if(o=s.call(arguments),K.set(this,t,o),r=n(this,t),this[t](),o!==(i=K.get(this,t))||r?K.set(this,t,!1):i={},o!==i)return e.stopImmediatePropagation(),e.preventDefault(),i.value}else o.length&&(K.set(this,t,{value:E.event.trigger(E.extend(o[0],E.Event.prototype),o.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===K.get(e,t)&&E.event.add(e,t,De)}E.event={global:{},add:function(e,t,n,r,i){var o,a,s,l,c,u,h,d,f,p,m,g=K.get(e);if(J(e))for(n.handler&&(n=(o=n).handler,i=o.selector),i&&E.find.matchesSelector(ae,i),n.guid||(n.guid=E.guid++),(l=g.events)||(l=g.events=Object.create(null)),(a=g.handle)||(a=g.handle=function(t){return void 0!==E&&E.event.triggered!==t.type?E.event.dispatch.apply(e,arguments):void 0}),c=(t=(t||"").match(L)||[""]).length;c--;)f=m=(s=Se.exec(t[c])||[])[1],p=(s[2]||"").split(".").sort(),f&&(h=E.event.special[f]||{},f=(i?h.delegateType:h.bindType)||f,h=E.event.special[f]||{},u=E.extend({type:f,origType:m,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&E.expr.match.needsContext.test(i),namespace:p.join(".")},o),(d=l[f])||((d=l[f]=[]).delegateCount=0,h.setup&&!1!==h.setup.call(e,r,p,a)||e.addEventListener&&e.addEventListener(f,a)),h.add&&(h.add.call(e,u),u.handler.guid||(u.handler.guid=n.guid)),i?d.splice(d.delegateCount++,0,u):d.push(u),E.event.global[f]=!0)},remove:function(e,t,n,r,i){var o,a,s,l,c,u,h,d,f,p,m,g=K.hasData(e)&&K.get(e);if(g&&(l=g.events)){for(c=(t=(t||"").match(L)||[""]).length;c--;)if(f=m=(s=Se.exec(t[c])||[])[1],p=(s[2]||"").split(".").sort(),f){for(h=E.event.special[f]||{},d=l[f=(r?h.delegateType:h.bindType)||f]||[],s=s[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=d.length;o--;)u=d[o],!i&&m!==u.origType||n&&n.guid!==u.guid||s&&!s.test(u.namespace)||r&&r!==u.selector&&("**"!==r||!u.selector)||(d.splice(o,1),u.selector&&d.delegateCount--,h.remove&&h.remove.call(e,u));a&&!d.length&&(h.teardown&&!1!==h.teardown.call(e,p,g.handle)||E.removeEvent(e,f,g.handle),delete l[f])}else for(f in l)E.event.remove(e,f+t[c],n,r,!0);E.isEmptyObject(l)&&K.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,a,s=new Array(arguments.length),l=E.event.fix(e),c=(K.get(this,"events")||Object.create(null))[l.type]||[],u=E.event.special[l.type]||{};for(s[0]=l,t=1;t=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==e.type||!0!==c.disabled)){for(o=[],a={},n=0;n-1:E.find(i,this,null,[c]).length),a[i]&&o.push(r);o.length&&s.push({elem:c,handlers:o})}return c=this,l\s*$/g;function Ie(e,t){return M(e,"table")&&M(11!==t.nodeType?t:t.firstChild,"tr")&&E(e).children("tbody")[0]||e}function Be(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function je(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Le(e,t){var n,r,i,o,a,s;if(1===t.nodeType){if(K.hasData(e)&&(s=K.get(e).events))for(i in K.remove(t,"handle events"),s)for(n=0,r=s[i].length;n1&&"string"==typeof p&&!g.checkClone&&Pe.test(p))return e.each((function(i){var o=e.eq(i);m&&(t[0]=p.call(this,i,o.html())),Re(o,t,n,r)}));if(d&&(o=(i=ke(t,e[0].ownerDocument,!1,e,r)).firstChild,1===i.childNodes.length&&(i=o),o||r)){for(s=(a=E.map(xe(i,"script"),Be)).length;h0&&we(a,!l&&xe(e,"script")),s},cleanData:function(e){for(var t,n,r,i=E.event.special,o=0;void 0!==(n=e[o]);o++)if(J(n)){if(t=n[K.expando]){if(t.events)for(r in t.events)i[r]?E.event.remove(n,r):E.removeEvent(n,r,t.handle);n[K.expando]=void 0}n[Q.expando]&&(n[Q.expando]=void 0)}}}),E.fn.extend({detach:function(e){return $e(this,e,!0)},remove:function(e){return $e(this,e)},text:function(e){return W(this,(function(e){return void 0===e?E.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)}))}),null,e,arguments.length)},append:function(){return Re(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Ie(this,e).appendChild(e)}))},prepend:function(){return Re(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Ie(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return Re(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return Re(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(E.cleanData(xe(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return E.clone(this,e,t)}))},html:function(e){return W(this,(function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Fe.test(e)&&!be[(ve.exec(e)||["",""])[1].toLowerCase()]){e=E.htmlPrefilter(e);try{for(;n3,ae.removeChild(e)),s}}))}();var Xe=["Webkit","Moz","ms"],Ye=b.createElement("div").style,Je={};function Ze(e){return E.cssProps[e]||Je[e]||(e in Ye?e:Je[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=Xe.length;n--;)if((e=Xe[n]+t)in Ye)return e}(e)||e)}var Ke=/^(none|table(?!-c[ea]).+)/,Qe=/^--/,et={position:"absolute",visibility:"hidden",display:"block"},tt={letterSpacing:"0",fontWeight:"400"};function nt(e,t,n){var r=ie.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function rt(e,t,n,r,i,o){var a="width"===t?1:0,s=0,l=0;if(n===(r?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(l+=E.css(e,n+oe[a],!0,i)),r?("content"===n&&(l-=E.css(e,"padding"+oe[a],!0,i)),"margin"!==n&&(l-=E.css(e,"border"+oe[a]+"Width",!0,i))):(l+=E.css(e,"padding"+oe[a],!0,i),"padding"!==n?l+=E.css(e,"border"+oe[a]+"Width",!0,i):s+=E.css(e,"border"+oe[a]+"Width",!0,i));return!r&&o>=0&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-l-s-.5))||0),l}function it(e,t,n){var r=Ue(e),i=(!g.boxSizingReliable()||n)&&"border-box"===E.css(e,"boxSizing",!1,r),o=i,a=Ve(e,t,r),s="offset"+t[0].toUpperCase()+t.slice(1);if(He.test(a)){if(!n)return a;a="auto"}return(!g.boxSizingReliable()&&i||!g.reliableTrDimensions()&&M(e,"tr")||"auto"===a||!parseFloat(a)&&"inline"===E.css(e,"display",!1,r))&&e.getClientRects().length&&(i="border-box"===E.css(e,"boxSizing",!1,r),(o=s in e)&&(a=e[s])),(a=parseFloat(a)||0)+rt(e,t,n||(i?"border":"content"),o,r,a)+"px"}function ot(e,t,n,r,i){return new ot.prototype.init(e,t,n,r,i)}E.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Ve(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,s=Y(t),l=Qe.test(t),c=e.style;if(l||(t=Ze(s)),a=E.cssHooks[t]||E.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(e,!1,r))?i:c[t];"string"==(o=typeof n)&&(i=ie.exec(n))&&i[1]&&(n=ue(e,t,i),o="number"),null!=n&&n==n&&("number"!==o||l||(n+=i&&i[3]||(E.cssNumber[s]?"":"px")),g.clearCloneStyle||""!==n||0!==t.indexOf("background")||(c[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,r))||(l?c.setProperty(t,n):c[t]=n))}},css:function(e,t,n,r){var i,o,a,s=Y(t);return Qe.test(t)||(t=Ze(s)),(a=E.cssHooks[t]||E.cssHooks[s])&&"get"in a&&(i=a.get(e,!0,n)),void 0===i&&(i=Ve(e,t,r)),"normal"===i&&t in tt&&(i=tt[t]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),E.each(["height","width"],(function(e,t){E.cssHooks[t]={get:function(e,n,r){if(n)return!Ke.test(E.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?it(e,t,r):qe(e,et,(function(){return it(e,t,r)}))},set:function(e,n,r){var i,o=Ue(e),a=!g.scrollboxSize()&&"absolute"===o.position,s=(a||r)&&"border-box"===E.css(e,"boxSizing",!1,o),l=r?rt(e,t,r,s,o):0;return s&&a&&(l-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(o[t])-rt(e,t,"border",!1,o)-.5)),l&&(i=ie.exec(n))&&"px"!==(i[3]||"px")&&(e.style[t]=n,n=E.css(e,t)),nt(0,n,l)}}})),E.cssHooks.marginLeft=Ge(g.reliableMarginLeft,(function(e,t){if(t)return(parseFloat(Ve(e,"marginLeft"))||e.getBoundingClientRect().left-qe(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),E.each({margin:"",padding:"",border:"Width"},(function(e,t){E.cssHooks[e+t]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];r<4;r++)i[e+oe[r]+t]=o[r]||o[r-2]||o[0];return i}},"margin"!==e&&(E.cssHooks[e+t].set=nt)})),E.fn.extend({css:function(e,t){return W(this,(function(e,t,n){var r,i,o={},a=0;if(Array.isArray(t)){for(r=Ue(e),i=t.length;a1)}}),E.Tween=ot,ot.prototype={constructor:ot,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||E.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(E.cssNumber[n]?"":"px")},cur:function(){var e=ot.propHooks[this.prop];return e&&e.get?e.get(this):ot.propHooks._default.get(this)},run:function(e){var t,n=ot.propHooks[this.prop];return this.options.duration?this.pos=t=E.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):ot.propHooks._default.set(this),this}},ot.prototype.init.prototype=ot.prototype,ot.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=E.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){E.fx.step[e.prop]?E.fx.step[e.prop](e):1!==e.elem.nodeType||!E.cssHooks[e.prop]&&null==e.elem.style[Ze(e.prop)]?e.elem[e.prop]=e.now:E.style(e.elem,e.prop,e.now+e.unit)}}},ot.propHooks.scrollTop=ot.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},E.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},E.fx=ot.prototype.init,E.fx.step={};var at,st,lt=/^(?:toggle|show|hide)$/,ct=/queueHooks$/;function ut(){st&&(!1===b.hidden&&r.requestAnimationFrame?r.requestAnimationFrame(ut):r.setTimeout(ut,E.fx.interval),E.fx.tick())}function ht(){return r.setTimeout((function(){at=void 0})),at=Date.now()}function dt(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=oe[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function ft(e,t,n){for(var r,i=(pt.tweeners[t]||[]).concat(pt.tweeners["*"]),o=0,a=i.length;o1)},removeAttr:function(e){return this.each((function(){E.removeAttr(this,e)}))}}),E.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?E.prop(e,t,n):(1===o&&E.isXMLDoc(e)||(i=E.attrHooks[t.toLowerCase()]||(E.expr.match.bool.test(t)?mt:void 0)),void 0!==n?null===n?void E.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:null==(r=E.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!g.radioValue&&"radio"===t&&M(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(L);if(i&&1===e.nodeType)for(;n=i[r++];)e.removeAttribute(n)}}),mt={set:function(e,t,n){return!1===t?E.removeAttr(e,n):e.setAttribute(n,n),n}},E.each(E.expr.match.bool.source.match(/\w+/g),(function(e,t){var n=gt[t]||E.find.attr;gt[t]=function(e,t,r){var i,o,a=t.toLowerCase();return r||(o=gt[a],gt[a]=i,i=null!=n(e,t,r)?a:null,gt[a]=o),i}}));var vt=/^(?:input|select|textarea|button)$/i,yt=/^(?:a|area)$/i;function bt(e){return(e.match(L)||[]).join(" ")}function xt(e){return e.getAttribute&&e.getAttribute("class")||""}function wt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(L)||[]}E.fn.extend({prop:function(e,t){return W(this,E.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[E.propFix[e]||e]}))}}),E.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&E.isXMLDoc(e)||(t=E.propFix[t]||t,i=E.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=E.find.attr(e,"tabindex");return t?parseInt(t,10):vt.test(e.nodeName)||yt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),g.optSelected||(E.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),E.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){E.propFix[this.toLowerCase()]=this})),E.fn.extend({addClass:function(e){var t,n,r,i,o,a,s,l=0;if(v(e))return this.each((function(t){E(this).addClass(e.call(this,t,xt(this)))}));if((t=wt(e)).length)for(;n=this[l++];)if(i=xt(n),r=1===n.nodeType&&" "+bt(i)+" "){for(a=0;o=t[a++];)r.indexOf(" "+o+" ")<0&&(r+=o+" ");i!==(s=bt(r))&&n.setAttribute("class",s)}return this},removeClass:function(e){var t,n,r,i,o,a,s,l=0;if(v(e))return this.each((function(t){E(this).removeClass(e.call(this,t,xt(this)))}));if(!arguments.length)return this.attr("class","");if((t=wt(e)).length)for(;n=this[l++];)if(i=xt(n),r=1===n.nodeType&&" "+bt(i)+" "){for(a=0;o=t[a++];)for(;r.indexOf(" "+o+" ")>-1;)r=r.replace(" "+o+" "," ");i!==(s=bt(r))&&n.setAttribute("class",s)}return this},toggleClass:function(e,t){var n=typeof e,r="string"===n||Array.isArray(e);return"boolean"==typeof t&&r?t?this.addClass(e):this.removeClass(e):v(e)?this.each((function(n){E(this).toggleClass(e.call(this,n,xt(this),t),t)})):this.each((function(){var t,i,o,a;if(r)for(i=0,o=E(this),a=wt(e);t=a[i++];)o.hasClass(t)?o.removeClass(t):o.addClass(t);else void 0!==e&&"boolean"!==n||((t=xt(this))&&K.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":K.get(this,"__className__")||""))}))},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+bt(xt(n))+" ").indexOf(t)>-1)return!0;return!1}});var _t=/\r/g;E.fn.extend({val:function(e){var t,n,r,i=this[0];return arguments.length?(r=v(e),this.each((function(n){var i;1===this.nodeType&&(null==(i=r?e.call(this,n,E(this).val()):e)?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=E.map(i,(function(e){return null==e?"":e+""}))),(t=E.valHooks[this.type]||E.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))}))):i?(t=E.valHooks[i.type]||E.valHooks[i.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:"string"==typeof(n=i.value)?n.replace(_t,""):null==n?"":n:void 0}}),E.extend({valHooks:{option:{get:function(e){var t=E.find.attr(e,"value");return null!=t?t:bt(E.text(e))}},select:{get:function(e){var t,n,r,i=e.options,o=e.selectedIndex,a="select-one"===e.type,s=a?null:[],l=a?o+1:i.length;for(r=o<0?l:a?o:0;r-1)&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),E.each(["radio","checkbox"],(function(){E.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=E.inArray(E(e).val(),t)>-1}},g.checkOn||(E.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})})),g.focusin="onfocusin"in r;var kt=/^(?:focusinfocus|focusoutblur)$/,Et=function(e){e.stopPropagation()};E.extend(E.event,{trigger:function(e,t,n,i){var o,a,s,l,c,u,h,d,p=[n||b],m=f.call(e,"type")?e.type:e,g=f.call(e,"namespace")?e.namespace.split("."):[];if(a=d=s=n=n||b,3!==n.nodeType&&8!==n.nodeType&&!kt.test(m+E.event.triggered)&&(m.indexOf(".")>-1&&(g=m.split("."),m=g.shift(),g.sort()),c=m.indexOf(":")<0&&"on"+m,(e=e[E.expando]?e:new E.Event(m,"object"==typeof e&&e)).isTrigger=i?2:3,e.namespace=g.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:E.makeArray(t,[e]),h=E.event.special[m]||{},i||!h.trigger||!1!==h.trigger.apply(n,t))){if(!i&&!h.noBubble&&!y(n)){for(l=h.delegateType||m,kt.test(l+m)||(a=a.parentNode);a;a=a.parentNode)p.push(a),s=a;s===(n.ownerDocument||b)&&p.push(s.defaultView||s.parentWindow||r)}for(o=0;(a=p[o++])&&!e.isPropagationStopped();)d=a,e.type=o>1?l:h.bindType||m,(u=(K.get(a,"events")||Object.create(null))[e.type]&&K.get(a,"handle"))&&u.apply(a,t),(u=c&&a[c])&&u.apply&&J(a)&&(e.result=u.apply(a,t),!1===e.result&&e.preventDefault());return e.type=m,i||e.isDefaultPrevented()||h._default&&!1!==h._default.apply(p.pop(),t)||!J(n)||c&&v(n[m])&&!y(n)&&((s=n[c])&&(n[c]=null),E.event.triggered=m,e.isPropagationStopped()&&d.addEventListener(m,Et),n[m](),e.isPropagationStopped()&&d.removeEventListener(m,Et),E.event.triggered=void 0,s&&(n[c]=s)),e.result}},simulate:function(e,t,n){var r=E.extend(new E.Event,n,{type:e,isSimulated:!0});E.event.trigger(r,null,t)}}),E.fn.extend({trigger:function(e,t){return this.each((function(){E.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var n=this[0];if(n)return E.event.trigger(e,t,n,!0)}}),g.focusin||E.each({focus:"focusin",blur:"focusout"},(function(e,t){var n=function(e){E.event.simulate(t,e.target,E.event.fix(e))};E.event.special[t]={setup:function(){var r=this.ownerDocument||this.document||this,i=K.access(r,t);i||r.addEventListener(e,n,!0),K.access(r,t,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this.document||this,i=K.access(r,t)-1;i?K.access(r,t,i):(r.removeEventListener(e,n,!0),K.remove(r,t))}}}));var Ct=r.location,St={guid:Date.now()},Dt=/\?/;E.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new r.DOMParser).parseFromString(e,"text/xml")}catch(e){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||E.error("Invalid XML: "+e),t};var At=/\[\]$/,Tt=/\r?\n/g,Mt=/^(?:submit|button|image|reset|file)$/i,Ot=/^(?:input|select|textarea|keygen)/i;function Ft(e,t,n,r){var i;if(Array.isArray(t))E.each(t,(function(t,i){n||At.test(e)?r(e,i):Ft(e+"["+("object"==typeof i&&null!=i?t:"")+"]",i,n,r)}));else if(n||"object"!==_(t))r(e,t);else for(i in t)Ft(e+"["+i+"]",t[i],n,r)}E.param=function(e,t){var n,r=[],i=function(e,t){var n=v(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!E.isPlainObject(e))E.each(e,(function(){i(this.name,this.value)}));else for(n in e)Ft(n,e[n],t,i);return r.join("&")},E.fn.extend({serialize:function(){return E.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=E.prop(this,"elements");return e?E.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!E(this).is(":disabled")&&Ot.test(this.nodeName)&&!Mt.test(e)&&(this.checked||!ge.test(e))})).map((function(e,t){var n=E(this).val();return null==n?null:Array.isArray(n)?E.map(n,(function(e){return{name:t.name,value:e.replace(Tt,"\r\n")}})):{name:t.name,value:n.replace(Tt,"\r\n")}})).get()}});var Pt=/%20/g,Nt=/#.*$/,It=/([?&])_=[^&]*/,Bt=/^(.*?):[ \t]*([^\r\n]*)$/gm,jt=/^(?:GET|HEAD)$/,Lt=/^\/\//,zt={},Rt={},$t="*/".concat("*"),Ht=b.createElement("a");function Ut(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,o=t.toLowerCase().match(L)||[];if(v(n))for(;r=o[i++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function qt(e,t,n,r){var i={},o=e===Rt;function a(s){var l;return i[s]=!0,E.each(e[s]||[],(function(e,s){var c=s(t,n,r);return"string"!=typeof c||o||i[c]?o?!(l=c):void 0:(t.dataTypes.unshift(c),a(c),!1)})),l}return a(t.dataTypes[0])||!i["*"]&&a("*")}function Wt(e,t){var n,r,i=E.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&E.extend(!0,e,r),e}Ht.href=Ct.href,E.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Ct.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Ct.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":$t,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":E.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Wt(Wt(e,E.ajaxSettings),t):Wt(E.ajaxSettings,e)},ajaxPrefilter:Ut(zt),ajaxTransport:Ut(Rt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var n,i,o,a,s,l,c,u,h,d,f=E.ajaxSetup({},t),p=f.context||f,m=f.context&&(p.nodeType||p.jquery)?E(p):E.event,g=E.Deferred(),v=E.Callbacks("once memory"),y=f.statusCode||{},x={},w={},_="canceled",k={readyState:0,getResponseHeader:function(e){var t;if(c){if(!a)for(a={};t=Bt.exec(o);)a[t[1].toLowerCase()+" "]=(a[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=a[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return c?o:null},setRequestHeader:function(e,t){return null==c&&(e=w[e.toLowerCase()]=w[e.toLowerCase()]||e,x[e]=t),this},overrideMimeType:function(e){return null==c&&(f.mimeType=e),this},statusCode:function(e){var t;if(e)if(c)k.always(e[k.status]);else for(t in e)y[t]=[y[t],e[t]];return this},abort:function(e){var t=e||_;return n&&n.abort(t),C(0,t),this}};if(g.promise(k),f.url=((e||f.url||Ct.href)+"").replace(Lt,Ct.protocol+"//"),f.type=t.method||t.type||f.method||f.type,f.dataTypes=(f.dataType||"*").toLowerCase().match(L)||[""],null==f.crossDomain){l=b.createElement("a");try{l.href=f.url,l.href=l.href,f.crossDomain=Ht.protocol+"//"+Ht.host!=l.protocol+"//"+l.host}catch(e){f.crossDomain=!0}}if(f.data&&f.processData&&"string"!=typeof f.data&&(f.data=E.param(f.data,f.traditional)),qt(zt,f,t,k),c)return k;for(h in(u=E.event&&f.global)&&0==E.active++&&E.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!jt.test(f.type),i=f.url.replace(Nt,""),f.hasContent?f.data&&f.processData&&0===(f.contentType||"").indexOf("application/x-www-form-urlencoded")&&(f.data=f.data.replace(Pt,"+")):(d=f.url.slice(i.length),f.data&&(f.processData||"string"==typeof f.data)&&(i+=(Dt.test(i)?"&":"?")+f.data,delete f.data),!1===f.cache&&(i=i.replace(It,"$1"),d=(Dt.test(i)?"&":"?")+"_="+St.guid+++d),f.url=i+d),f.ifModified&&(E.lastModified[i]&&k.setRequestHeader("If-Modified-Since",E.lastModified[i]),E.etag[i]&&k.setRequestHeader("If-None-Match",E.etag[i])),(f.data&&f.hasContent&&!1!==f.contentType||t.contentType)&&k.setRequestHeader("Content-Type",f.contentType),k.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+$t+"; q=0.01":""):f.accepts["*"]),f.headers)k.setRequestHeader(h,f.headers[h]);if(f.beforeSend&&(!1===f.beforeSend.call(p,k,f)||c))return k.abort();if(_="abort",v.add(f.complete),k.done(f.success),k.fail(f.error),n=qt(Rt,f,t,k)){if(k.readyState=1,u&&m.trigger("ajaxSend",[k,f]),c)return k;f.async&&f.timeout>0&&(s=r.setTimeout((function(){k.abort("timeout")}),f.timeout));try{c=!1,n.send(x,C)}catch(e){if(c)throw e;C(-1,e)}}else C(-1,"No Transport");function C(e,t,a,l){var h,d,b,x,w,_=t;c||(c=!0,s&&r.clearTimeout(s),n=void 0,o=l||"",k.readyState=e>0?4:0,h=e>=200&&e<300||304===e,a&&(x=function(e,t,n){for(var r,i,o,a,s=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){l.unshift(i);break}if(l[0]in n)o=l[0];else{for(i in n){if(!l[0]||e.converters[i+" "+l[0]]){o=i;break}a||(a=i)}o=o||a}if(o)return o!==l[0]&&l.unshift(o),n[o]}(f,k,a)),!h&&E.inArray("script",f.dataTypes)>-1&&(f.converters["text script"]=function(){}),x=function(e,t,n,r){var i,o,a,s,l,c={},u=e.dataTypes.slice();if(u[1])for(a in e.converters)c[a.toLowerCase()]=e.converters[a];for(o=u.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!l&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=o,o=u.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(a=c[l+" "+o]||c["* "+o]))for(i in c)if((s=i.split(" "))[1]===o&&(a=c[l+" "+s[0]]||c["* "+s[0]])){!0===a?a=c[i]:!0!==c[i]&&(o=s[0],u.unshift(s[1]));break}if(!0!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+l+" to "+o}}}return{state:"success",data:t}}(f,x,k,h),h?(f.ifModified&&((w=k.getResponseHeader("Last-Modified"))&&(E.lastModified[i]=w),(w=k.getResponseHeader("etag"))&&(E.etag[i]=w)),204===e||"HEAD"===f.type?_="nocontent":304===e?_="notmodified":(_=x.state,d=x.data,h=!(b=x.error))):(b=_,!e&&_||(_="error",e<0&&(e=0))),k.status=e,k.statusText=(t||_)+"",h?g.resolveWith(p,[d,_,k]):g.rejectWith(p,[k,_,b]),k.statusCode(y),y=void 0,u&&m.trigger(h?"ajaxSuccess":"ajaxError",[k,f,h?d:b]),v.fireWith(p,[k,_]),u&&(m.trigger("ajaxComplete",[k,f]),--E.active||E.event.trigger("ajaxStop")))}return k},getJSON:function(e,t,n){return E.get(e,t,n,"json")},getScript:function(e,t){return E.get(e,void 0,t,"script")}}),E.each(["get","post"],(function(e,t){E[t]=function(e,n,r,i){return v(n)&&(i=i||r,r=n,n=void 0),E.ajax(E.extend({url:e,type:t,dataType:i,data:n,success:r},E.isPlainObject(e)&&e))}})),E.ajaxPrefilter((function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")})),E._evalUrl=function(e,t,n){return E.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){E.globalEval(e,t,n)}})},E.fn.extend({wrapAll:function(e){var t;return this[0]&&(v(e)&&(e=e.call(this[0])),t=E(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e})).append(this)),this},wrapInner:function(e){return v(e)?this.each((function(t){E(this).wrapInner(e.call(this,t))})):this.each((function(){var t=E(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)}))},wrap:function(e){var t=v(e);return this.each((function(n){E(this).wrapAll(t?e.call(this,n):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){E(this).replaceWith(this.childNodes)})),this}}),E.expr.pseudos.hidden=function(e){return!E.expr.pseudos.visible(e)},E.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},E.ajaxSettings.xhr=function(){try{return new r.XMLHttpRequest}catch(e){}};var Vt={0:200,1223:204},Gt=E.ajaxSettings.xhr();g.cors=!!Gt&&"withCredentials"in Gt,g.ajax=Gt=!!Gt,E.ajaxTransport((function(e){var t,n;if(g.cors||Gt&&!e.crossDomain)return{send:function(i,o){var a,s=e.xhr();if(s.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(a in e.xhrFields)s[a]=e.xhrFields[a];for(a in e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),e.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),i)s.setRequestHeader(a,i[a]);t=function(e){return function(){t&&(t=n=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!=typeof s.status?o(0,"error"):o(s.status,s.statusText):o(Vt[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=t(),n=s.onerror=s.ontimeout=t("error"),void 0!==s.onabort?s.onabort=n:s.onreadystatechange=function(){4===s.readyState&&r.setTimeout((function(){t&&n()}))},t=t("abort");try{s.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}})),E.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),E.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return E.globalEval(e),e}}}),E.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),E.ajaxTransport("script",(function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(r,i){t=E("