@doegis/core
Version:
DOE GIS API
2 lines (1 loc) • 987 kB
JavaScript
import{g as t}from"./_commonjsHelpers.js";function e(t,e){for(var i=0;i<e.length;i++){const n=e[i];if("string"!=typeof n&&!Array.isArray(n))for(const e in n)if("default"!==e&&!(e in t)){const i=Object.getOwnPropertyDescriptor(n,e);i&&Object.defineProperty(t,e,i.get?i:{enumerable:!0,get:()=>n[e]})}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var i,n={};self,i=()=>(()=>{var t,e,i,n,r={},s={};function a(t){var e=s[t];if(void 0!==e)return e.exports;var i=s[t]={exports:{}};return r[t].call(i.exports,i,i.exports,a),i.exports}a.m=r,a.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return a.d(e,{a:e}),e},e=Object.getPrototypeOf?t=>Object.getPrototypeOf(t):t=>t.__proto__,a.t=function(i,n){if(1&n&&(i=this(i)),8&n)return i;if("object"==typeof i&&i){if(4&n&&i.__esModule)return i;if(16&n&&"function"==typeof i.then)return i}var r=Object.create(null);a.r(r);var s={};t=t||[null,e({}),e([]),e(e)];for(var o=2&n&&i;"object"==typeof o&&!~t.indexOf(o);o=e(o))Object.getOwnPropertyNames(o).forEach((t=>s[t]=()=>i[t]));return s.default=()=>i,a.d(r,s),r},a.d=(t,e)=>{for(var i in e)a.o(e,i)&&!a.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},a.f={},a.e=t=>Promise.all(Object.keys(a.f).reduce(((e,i)=>(a.f[i](t,e),e)),[])),a.u=t=>(({265:"canvg",297:"xlsx",643:"pdfmake"}[t]||t)+".js"),a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),a.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),i={},n="EsriAmCharts:",a.l=(t,e,r,s)=>{if(i[t])i[t].push(e);else{var o,l;if(void 0!==r)for(var h=document.getElementsByTagName("script"),p=0;p<h.length;p++){var u=h[p];if(u.getAttribute("src")==t||u.getAttribute("data-webpack")==n+r){o=u;break}}o||(l=!0,(o=document.createElement("script")).charset="utf-8",o.timeout=120,a.nc&&o.setAttribute("nonce",a.nc),o.setAttribute("data-webpack",n+r),o.src=t),i[t]=[e];var d=(e,n)=>{o.onerror=o.onload=null,clearTimeout(c);var r=i[t];if(delete i[t],o.parentNode&&o.parentNode.removeChild(o),r&&r.forEach((t=>t(n))),e)return e(n)},c=setTimeout(d.bind(null,void 0,{type:"timeout",target:o}),12e4);o.onerror=d.bind(null,o.onerror),o.onload=d.bind(null,o.onload),l&&document.head.appendChild(o)}},a.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},a.p="",(()=>{var t={826:0};a.f.j=(e,i)=>{var n=a.o(t,e)?t[e]:void 0;if(0!==n)if(n)i.push(n[2]);else{var r=new Promise(((i,r)=>n=t[e]=[i,r]));i.push(n[2]=r);var s=a.p+a.u(e),o=new Error;a.l(s,(i=>{if(a.o(t,e)&&(0!==(n=t[e])&&(t[e]=void 0),n)){var r=i&&("load"===i.type?"missing":i.type),s=i&&i.target&&i.target.src;o.message="Loading chunk "+e+" failed.\n("+r+": "+s+")",o.name="ChunkLoadError",o.type=r,o.request=s,n[1](o)}}),"chunk-"+e,e)}};var e=(e,i)=>{var n,r,[s,o,l]=i,h=0;if(s.some((e=>0!==t[e]))){for(n in o)a.o(o,n)&&(a.m[n]=o[n]);l&&l(a)}for(e&&e(i);h<s.length;h++)r=s[h],a.o(t,r)&&t[r]&&t[r][0](),t[r]=0},i=self.webpackChunkEsriAmCharts=self.webpackChunkEsriAmCharts||[];i.forEach(e.bind(null,0)),i.push=e.bind(null,i.push.bind(i))})();var o={};a.r(o),a.d(o,{am4charts:()=>P,am4core:()=>_,am4themes_animated:()=>vu,am4themes_dark:()=>bu});var l={};a.r(l),a.d(l,{castNumber:()=>Y,castString:()=>X,checkArray:()=>N,checkBoolean:()=>R,checkDate:()=>W,checkNumber:()=>B,checkObject:()=>H,checkString:()=>E,getDefault:()=>j,getType:()=>L,getValue:()=>q,getValueDefault:()=>$,hasValue:()=>Z,isArray:()=>it,isDate:()=>J,isNaN:()=>M,isNumber:()=>tt,isObject:()=>et,isString:()=>Q,toBoolean:()=>z,toNumber:()=>U,toNumberOrPercent:()=>K,toText:()=>G});var h={};a.r(h),a.d(h,{DEGREES:()=>at,HALFPI:()=>rt,PI:()=>nt,RADIANS:()=>st,adjustTension:()=>jt,ceil:()=>ht,closest:()=>mt,cos:()=>ft,fitAngleToRange:()=>Rt,fitToRange:()=>ut,getAngle:()=>Dt,getArcPoint:()=>Ht,getArcRect:()=>Bt,getBBox:()=>Tt,getCenterShift:()=>kt,getCommonRectangle:()=>At,getCubicControlPointA:()=>Mt,getCubicControlPointB:()=>Lt,getCubicCurveDistance:()=>Ct,getDistance:()=>_t,getHorizontalDistance:()=>Pt,getLineIntersection:()=>Wt,getMidPoint:()=>St,getPointOnCubicCurve:()=>Ft,getPointOnQuadraticCurve:()=>Vt,getRotation:()=>It,getScale:()=>Ot,getVerticalDistance:()=>wt,intersect:()=>vt,intersection:()=>xt,invertRange:()=>bt,isInRectangle:()=>Nt,max:()=>gt,min:()=>yt,normalizeAngle:()=>Et,round:()=>lt,sin:()=>dt,stretch:()=>pt,tan:()=>ct,toNumberRange:()=>ot});var p={};a.r(p),a.d(p,{add:()=>ne,any:()=>Yt,copy:()=>oe,each:()=>Ut,eachContinue:()=>Kt,eachReverse:()=>Gt,find:()=>ce,findIndex:()=>de,first:()=>$t,getSortedIndex:()=>ue,has:()=>ae,indexOf:()=>Xt,insert:()=>Jt,insertIndex:()=>he,keepIf:()=>ge,last:()=>qt,map:()=>zt,move:()=>ie,pushAll:()=>te,remove:()=>ee,removeIndex:()=>pe,replace:()=>re,setIndex:()=>Qt,shiftLeft:()=>Zt,shuffle:()=>fe,slice:()=>le,toArray:()=>se});var u={};a.r(u),a.d(u,{clone:()=>ze,copy:()=>Xe,copyAllProperties:()=>Ze,copyProperties:()=>Ue,each:()=>Ne,eachContinue:()=>He,eachOrdered:()=>We,entries:()=>Le,forceCopyProperties:()=>Ke,getKey:()=>Be,hasKey:()=>Re,keys:()=>je,keysOrdered:()=>Ee,merge:()=>Ye,softCopyProperties:()=>Ge});var d={};a.r(d),a.d(d,{ListIterator:()=>mi,concat:()=>ri,contains:()=>pi,each:()=>ti,eachContinue:()=>Qe,filter:()=>ni,find:()=>li,findIndex:()=>oi,findMap:()=>hi,flatten:()=>si,foldl:()=>ui,fromArray:()=>qe,indexed:()=>ai,join:()=>yi,length:()=>$e,map:()=>ii,max:()=>gi,min:()=>ci,sort:()=>ei,toArray:()=>Je});var c={};a.r(c),a.d(c,{order:()=>vi,random:()=>xi,repeat:()=>bi});var f={};a.r(f),a.d(f,{order:()=>Bi});var g={};a.r(g),a.d(g,{brighten:()=>nn,getBrightnessStep:()=>rn,getLightnessStep:()=>en,hexToRgb:()=>Gi,hexToRgbWithAlpha:()=>Ki,hslToRgb:()=>an,hsvToRgb:()=>hn,interpolate:()=>Qi,isLight:()=>pn,lighten:()=>tn,pad2:()=>Ji,rgb:()=>Ui,rgbToHex:()=>qi,rgbToHsl:()=>on,rgbToHsv:()=>ln,rgbToRGBA:()=>$i,rgbaToRgb:()=>Zi,saturate:()=>sn});var y={};a.r(y),a.d(y,{anyToDate:()=>Qn,anyToNumber:()=>tr,camelToDashed:()=>jn,capitalize:()=>En,cleanFormat:()=>Zn,copy:()=>Tn,copyProperties:()=>Sn,decimalPlaces:()=>_r,documentPointToSprite:()=>mr,documentPointToSvg:()=>gr,escapeForRgex:()=>Bn,fitNumber:()=>lr,fitNumberRelative:()=>hr,get12Hours:()=>sr,getBaseURI:()=>Dn,getDayFromWeek:()=>rr,getFormat:()=>Kn,getMonthWeek:()=>nr,getPixelRatio:()=>Ln,getTimeZone:()=>ar,getWeek:()=>ir,getYearDay:()=>er,height:()=>xr,isIE:()=>Ir,isNotEmpty:()=>An,joinUrl:()=>Sr,ltrim:()=>Yn,numberToString:()=>Jn,padString:()=>Gn,parseUrl:()=>wr,plainText:()=>$n,random:()=>or,relativeRadiusToValue:()=>Fn,relativeToValue:()=>Vn,reverseString:()=>zn,rtrim:()=>Xn,serializeUrl:()=>Cr,softCopyProperties:()=>kn,splitTextByCharCount:()=>Hn,spritePointToDocument:()=>vr,spritePointToSprite:()=>dr,spritePointToSvg:()=>ur,spriteRectToSvg:()=>fr,stringify:()=>Rn,stripHash:()=>In,stripTags:()=>qn,svgPointToDocument:()=>yr,svgPointToSprite:()=>pr,svgRectToSprite:()=>cr,trim:()=>Wn,truncateWithEllipsis:()=>Nn,unquote:()=>Un,used:()=>On,valueToRelative:()=>Mn,width:()=>br});var m={};a.r(m),a.d(m,{bounceIn:()=>$r,bounceInOut:()=>Qr,bounceOut:()=>Jr,circleIn:()=>Gr,circleInOut:()=>Zr,circleOut:()=>Kr,cubicIn:()=>Yr,cubicInOut:()=>Ur,cubicOut:()=>zr,elasticIn:()=>is,elasticInOut:()=>rs,elasticOut:()=>ns,expIn:()=>Rr,expInOut:()=>Hr,expOut:()=>Br,linear:()=>Dr,polyIn:()=>Vr,polyIn3:()=>Lr,polyInOut:()=>Mr,polyInOut3:()=>Er,polyOut:()=>Fr,polyOut3:()=>jr,quadIn:()=>kr,quadInOut:()=>Ar,quadOut:()=>Tr,sinIn:()=>Nr,sinInOut:()=>Xr,sinOut:()=>Wr});var v={};a.r(v),a.d(v,{add:()=>sa,checkChange:()=>ra,copy:()=>na,getDuration:()=>ta,getNextUnit:()=>Qs,getTime:()=>ia,getTimezoneMinutes:()=>la,now:()=>ea,round:()=>aa,setTimezone:()=>oa,timeUnitDurations:()=>Js});var b={};a.r(b),a.d(b,{load:()=>Ha,readBlob:()=>Na});var x={};a.r(x),a.d(x,{arc:()=>ko,arcTo:()=>Do,arcToPoint:()=>To,closePath:()=>Io,cubicCurveTo:()=>So,lineTo:()=>Co,moveTo:()=>wo,pathToPoints:()=>Fo,pointsToPath:()=>Lo,polyline:()=>Po,quadraticCurveTo:()=>Oo,rectToPath:()=>Vo,rectangle:()=>Ao,spiralPoints:()=>Mo});var _={};a.r(_),a.d(_,{AMElement:()=>Ws,Adapter:()=>Yi,Animation:()=>ys,BaseObject:()=>yn,BaseObjectEvents:()=>mn,Basis:()=>ll,BlurFilter:()=>Il,Button:()=>go,CSVParser:()=>io,Cache:()=>Ci,Circle:()=>yo,CirclePattern:()=>wl,CloseButton:()=>Yo,Color:()=>un,ColorModifier:()=>fl,ColorSet:()=>kl,ColorizeFilter:()=>Ol,Component:()=>uo,Cone:()=>ml,Container:()=>$a,CounterDisposer:()=>be,DATE:()=>_n,DURATION:()=>Pn,DataItem:()=>po,DataLoader:()=>ro,DataParser:()=>to,DataSource:()=>ao,DateFormatter:()=>Ma,DesaturateFilter:()=>Sl,Dictionary:()=>Pi,DictionaryDisposer:()=>_i,DictionaryTemplate:()=>wi,Disposer:()=>ye,DropShadowFilter:()=>qo,DurationFormatter:()=>La,Ellipse:()=>mo,EventDispatcher:()=>Fe,Export:()=>Ga,ExportMenu:()=>Ba,Filter:()=>Zo,FocusFilter:()=>Dl,GlobalAdapter:()=>Wi,Group:()=>Xs,Image:()=>vo,IndexedIterable:()=>ki,Inertia:()=>Zs,Interaction:()=>ha,InteractionKeyboardObject:()=>Ks,InteractionObject:()=>Gs,InteractionObjectEventDispatcher:()=>Us,InterfaceColorSet:()=>Ys,JSONParser:()=>no,Keyboard:()=>qs,Label:()=>co,Language:()=>Ta,LightenFilter:()=>vl,Line:()=>bo,LinePattern:()=>Pl,LinearGradient:()=>Oa,LinearGradientModifier:()=>yl,List:()=>Fi,ListDisposer:()=>Ai,ListGrouper:()=>Ti,ListIterator:()=>mi,ListTemplate:()=>Mi,Modal:()=>ca,Morpher:()=>Ro,MouseCursorStyle:()=>Ia,MultiDisposer:()=>me,MutableValueDisposer:()=>ve,NUMBER:()=>xn,NumberFormatter:()=>Fa,OrderedList:()=>Li,OrderedListTemplate:()=>Ei,PLACEHOLDER:()=>wn,PLACEHOLDER2:()=>Cn,PX:()=>vn,Paper:()=>_a,Pattern:()=>Ca,PatternSet:()=>Tl,Percent:()=>A,PlayButton:()=>cl,Plugin:()=>Al,PointedRectangle:()=>_o,PointedShape:()=>xo,Polyarc:()=>Eo,Polygon:()=>Bo,Polyline:()=>jo,Polyspline:()=>Ho,Popup:()=>da,Preloader:()=>Wo,RadialGradient:()=>Sa,RadialGradientModifier:()=>_l,RectPattern:()=>Cl,Rectangle:()=>qa,Rectangle3D:()=>bl,Registry:()=>Si,ResizeButton:()=>Xo,Responsive:()=>oo,ResponsiveBreakpoints:()=>ho,RoundedRectangle:()=>fo,STRING:()=>bn,SVGContainer:()=>xa,SVGDefaults:()=>os,Scrollbar:()=>Uo,Slice:()=>No,Slice3D:()=>xl,Slider:()=>Go,SortedList:()=>ji,SortedListTemplate:()=>Ri,Sprite:()=>Za,SpriteEventDispatcher:()=>as,SpriteState:()=>ss,StyleClass:()=>Es,StyleRule:()=>Ls,SwitchButton:()=>zo,System:()=>Ja,TargetedEventDispatcher:()=>Me,Tension:()=>tl,TextFormatter:()=>Aa,TextLink:()=>Ko,Tooltip:()=>$o,Trapezoid:()=>Jo,Triangle:()=>Qo,Validatable:()=>Ra,WavedCircle:()=>hl,WavedLine:()=>pl,WavedRectangle:()=>ul,ZoomOutButton:()=>dl,addClass:()=>Ps,addLicense:()=>Ul,animate:()=>hs,array:()=>p,blur:()=>Ss,cache:()=>Oi,castColor:()=>fn,castNumber:()=>Y,castString:()=>X,checkBoolean:()=>R,checkNumber:()=>B,checkObject:()=>H,checkString:()=>E,color:()=>dn,colors:()=>g,copyAttributes:()=>Fs,create:()=>Bl,createDeferred:()=>Nl,createFromConfig:()=>Hl,dataLoader:()=>so,defaultRules:()=>lo,disposeAllCharts:()=>Ml,ease:()=>m,fixPixelPerfect:()=>Ms,focus:()=>Is,getElement:()=>_s,getInteraction:()=>ua,getTextFormatter:()=>Va,globalAdapter:()=>Xi,is:()=>Di,isArray:()=>it,isColor:()=>cn,isElement:()=>ks,isNaN:()=>M,isNumber:()=>tt,isObject:()=>et,isPercent:()=>F,isString:()=>Q,iter:()=>d,join:()=>yi,keyboard:()=>$s,math:()=>h,max:()=>gi,min:()=>ci,net:()=>b,nextFrame:()=>De,number:()=>f,object:()=>u,options:()=>ls,or:()=>Ni,outerHTML:()=>Ds,path:()=>x,percent:()=>V,readFrame:()=>ke,ready:()=>Rs,registry:()=>Ii,removeClass:()=>ws,reverse:()=>Hi,string:()=>c,system:()=>Qa,time:()=>v,triggerIdle:()=>Ve,type:()=>l,unuseAllThemes:()=>zl,unuseTheme:()=>Yl,useTheme:()=>Xl,utils:()=>y,viewPortHandler:()=>El,whenIdle:()=>Ae,writeFrame:()=>Te});var P={};a.r(P),a.d(P,{Axis:()=>oh,AxisBreak:()=>rh,AxisBullet:()=>gh,AxisDataItem:()=>ah,AxisFill:()=>hh,AxisFillCircular:()=>Bh,AxisLabel:()=>uh,AxisLabelCircular:()=>Nh,AxisLine:()=>lh,AxisRenderer:()=>fh,AxisRendererCircular:()=>Wh,AxisRendererRadial:()=>Xh,AxisRendererX:()=>wh,AxisRendererX3D:()=>Ap,AxisRendererY:()=>yh,AxisRendererY3D:()=>Vp,AxisTick:()=>ch,Bullet:()=>ql,Candlestick:()=>Bp,CandlestickSeries:()=>Np,CandlestickSeriesDataItem:()=>Hp,CategoryAxis:()=>Sh,CategoryAxisBreak:()=>Ch,CategoryAxisDataItem:()=>Oh,Chart:()=>Zl,ChartDataItem:()=>Kl,ChordDiagram:()=>wp,ChordDiagramDataItem:()=>Pp,ChordLink:()=>_p,ChordNode:()=>bp,CircleBullet:()=>uu,ClockHand:()=>Uh,Column:()=>Cp,Column3D:()=>Fp,ColumnSeries:()=>Sp,ColumnSeries3D:()=>Lp,ColumnSeries3DDataItem:()=>Mp,ColumnSeriesDataItem:()=>Op,ConeColumn:()=>su,ConeSeries:()=>ou,ConeSeriesDataItem:()=>au,Cursor:()=>gu,CurvedColumn:()=>lu,CurvedColumnSeries:()=>pu,CurvedColumnSeriesDataItem:()=>hu,DateAxis:()=>Ph,DateAxisBreak:()=>xh,DateAxisDataItem:()=>_h,DurationAxis:()=>Mh,DurationAxisDataItem:()=>Fh,ErrorBullet:()=>du,FlowDiagram:()=>cp,FlowDiagramDataItem:()=>dp,FlowDiagramLink:()=>up,FlowDiagramNode:()=>pp,FunnelSeries:()=>tu,FunnelSeriesDataItem:()=>Qp,FunnelSlice:()=>$p,GaugeChart:()=>Kh,GaugeChartDataItem:()=>Gh,Grid:()=>ph,GridCircular:()=>Hh,HeatLegend:()=>Rp,LabelBullet:()=>fp,Legend:()=>Ql,LegendDataItem:()=>$l,LegendSettings:()=>Jl,LineSeries:()=>jh,LineSeriesDataItem:()=>Lh,LineSeriesSegment:()=>Vh,NavigationBar:()=>fu,NavigationBarDataItem:()=>cu,OHLC:()=>Wp,OHLCSeries:()=>Yp,OHLCSeriesDataItem:()=>Xp,PictorialStackedSeries:()=>ru,PictorialStackedSeriesDataItem:()=>nu,PieChart:()=>np,PieChart3D:()=>op,PieChart3DDataItem:()=>ap,PieChartDataItem:()=>ip,PieSeries:()=>ep,PieSeries3D:()=>sp,PieSeries3DDataItem:()=>rp,PieSeriesDataItem:()=>tp,PieTick:()=>Qh,PyramidSeries:()=>iu,PyramidSeriesDataItem:()=>eu,RadarChart:()=>zh,RadarChartDataItem:()=>Yh,RadarColumn:()=>Kp,RadarColumnSeries:()=>qp,RadarColumnSeriesDataItem:()=>Zp,RadarCursor:()=>mu,RadarSeries:()=>Rh,RadarSeriesDataItem:()=>Eh,SankeyDiagram:()=>vp,SankeyDiagramDataItem:()=>mp,SankeyLink:()=>yp,SankeyNode:()=>gp,SerialChart:()=>nh,SerialChartDataItem:()=>ih,Series:()=>eh,SeriesDataItem:()=>th,SlicedChart:()=>hp,SlicedChartDataItem:()=>lp,StepLineSeries:()=>Gp,StepLineSeriesDataItem:()=>Up,Tick:()=>dh,TreeMap:()=>Tp,TreeMapDataItem:()=>kp,TreeMapSeries:()=>Dp,TreeMapSeriesDataItem:()=>Ip,ValueAxis:()=>bh,ValueAxisBreak:()=>mh,ValueAxisDataItem:()=>vh,XYChart:()=>Ah,XYChart3D:()=>Ep,XYChart3DDataItem:()=>jp,XYChartDataItem:()=>Th,XYChartScrollbar:()=>kh,XYCursor:()=>yu,XYSeries:()=>Dh,XYSeriesDataItem:()=>Ih});var w=function(t,e){return w=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},w(t,e)};function C(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}w(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}var O=function(){return O=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var r in e=arguments[i])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},O.apply(this,arguments)};function S(t,e,i,n){return new(i||(i=Promise))((function(r,s){function a(t){try{l(n.next(t))}catch(t){s(t)}}function o(t){try{l(n.throw(t))}catch(t){s(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(a,o)}l((n=n.apply(t,e||[])).next())}))}function I(t,e){var i,n,r,s,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return s={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function o(s){return function(o){return function(s){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&s[0]?n.return:s[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,s[1])).done)return r;switch(n=0,r&&(s=[2&s[0],r.value]),s[0]){case 0:case 1:r=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,n=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!r||s[1]>r[0]&&s[1]<r[3])){a.label=s[1];break}if(6===s[0]&&a.label<r[1]){a.label=r[1],r=s;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(s);break}r[2]&&a.ops.pop(),a.trys.pop();continue}s=e.call(t,a)}catch(t){s=[6,t],n=0}finally{i=r=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,o])}}}function D(t){var e="function"==typeof Symbol&&Symbol.iterator,i=e&&t[e],n=0;if(i)return i.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function k(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var n,r,s=i.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=s.next()).done;)a.push(n.value)}catch(t){r={error:t}}finally{try{n&&!n.done&&(i=s.return)&&i.call(s)}finally{if(r)throw r.error}}return a}function T(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(k(arguments[e]));return t}var A=function(){function t(t){this._value=t}return Object.defineProperty(t.prototype,"value",{get:function(){return this._value/100},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"percent",{get:function(){return this._value},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return this._value+"%"},t}();function V(t){return new A(t)}function F(t){return t instanceof A}function M(t){return Number(t)!==t}function L(t){return{}.toString.call(t)}function j(t,e){return t||e}function E(t){if("string"==typeof t)return!0;throw new Error("Expected a string but got "+L(t))}function R(t){if("boolean"==typeof t)return!0;throw new Error("Expected a boolean but got "+L(t))}function B(t){if("number"!=typeof t)throw new Error("Expected a number but got "+L(t));if(M(t))throw new Error("Expected a number but got NaN");return!0}function H(t){var e=L(t);if("[object Object]"===e)return!0;throw new Error("Expected an object but got "+e)}function N(t){if(Array.isArray(t))return!0;throw new Error("Expected an array but got "+L(t))}function W(t){var e=L(t);if("[object Date]"===e)return!0;throw new Error("Expected a date but got "+e)}function X(t){if("string"==typeof t)return t;if("number"==typeof t)return""+t;throw new Error("Expected a string or number but got "+L(t))}function Y(t){if("string"==typeof t){var e=+t;if(M(e))throw new Error("Cannot cast string "+JSON.stringify(t)+" to a number");return e}if("number"==typeof t){if(M(t))throw new Error("Expected a number but got NaN");return t}var i=L(t);if("[object Date]"===i)return t.getTime();throw new Error("Expected a string, number, or date but got "+i)}function z(t){return!!t}function U(t){if(Z(t)&&!tt(t)){var e=Number(t);return M(e)&&Q(t)&&""!=t?U(t.replace(/[^0-9.\-]+/g,"")):e}return t}function G(t){if(Z(t)&&!Q(t)){if(tt(t))return X(t);if(et(t))return t.toString()}return t}function K(t){return!Z(t)||tt(t)||F(t)?t:Q(t)&&-1!=t.indexOf("%")?V(U(t)):U(t)}function Z(t){return null!=t}function q(t){if(Z(t))return t;throw new Error("Value doesn't exist")}function $(t,e){return Z(t)?t:e}function J(t){return"[object Date]"===L(t)}function Q(t){return"string"==typeof t}function tt(t){return"number"==typeof t&&Number(t)==t}function et(t){return"object"==typeof t&&null!=t}function it(t){return Array.isArray(t)}var nt=Math.PI,rt=nt/2,st=nt/180,at=180/nt;function ot(t,e,i){return Z(t)?ut(t=U(t),e,i):t}function lt(t,e,i){if(!tt(e)||e<=0){var n=Math.round(t);return i&&n-t==.5&&n--,n}var r=Math.pow(10,e);return Math.round(t*r)/r}function ht(t,e){if(!tt(e)||e<=0)return Math.ceil(t);var i=Math.pow(10,e);return Math.ceil(t*i)/i}function pt(t,e,i){return t*(i-e)+e}function ut(t,e,i){if(tt(e)){if(tt(i)&&i<e){var n=i;i=e,e=n}t<e&&(t=e)}return tt(i)&&t>i&&(t=i),t}function dt(t){return lt(Math.sin(st*t),10)}function ct(t){return lt(Math.tan(st*t),10)}function ft(t){return lt(Math.cos(st*t),10)}function gt(t,e){return tt(t)?tt(e)&&e>t?e:t:tt(e)?e:null}function yt(t,e){return tt(t)?tt(e)&&e<t?e:t:tt(e)?e:null}function mt(t,e){return t.reduce((function(t,i){return Math.abs(i-e)<Math.abs(t-e)?i:t}))}function vt(t,e){var i=q(t.start),n=q(e.start),r=q(t.end),s=q(e.end);return Math.max(i,n)<=Math.min(r,s)}function bt(t){var e=q(t.start);return{start:1-q(t.end),end:1-e}}function xt(t,e){var i=q(t.start),n=q(e.start),r=q(t.end),s=q(e.end),a=Math.max(i,n),o=Math.min(r,s);return o<a?void 0:{start:a,end:o}}function _t(t,e){return t?(e||(e={x:0,y:0}),Math.sqrt(Math.pow(Math.abs(t.x-e.x),2)+Math.pow(Math.abs(t.y-e.y),2))):0}function Pt(t,e){return t?(e||(e={x:0,y:0}),Math.abs(t.x-e.x)):0}function wt(t,e){return t?(e||(e={x:0,y:0}),Math.abs(t.y-e.y)):0}function Ct(t,e,i,n,r){if(!t)return 0;e||(e={x:0,y:0});var s=0,a=t;if(r>0)for(var o=0;o<=r;o++){var l=Ft(t,e,i,n,o/r);s+=_t(a,l),a=l}return s}function Ot(t,e,i,n){var r=_t(e,n),s=_t(t,i);return Math.abs(s/r)}function St(t,e,i){return tt(i)||(i=.5),{x:t.x+(e.x-t.x)*i,y:t.y+(e.y-t.y)*i}}function It(t,e,i,n){var r=Dt(e,n)-Dt(t,i);return r<0&&(r+=360),r}function Dt(t,e){e||(e={x:2*t.x,y:2*t.y});var i=e.x-t.x,n=e.y-t.y,r=Math.atan2(n,i)*at;return r<0&&(r+=360),Et(r)}function kt(t,e,i,n,r){var s=It(e,i,n,r)-90;s<0&&(s+=360);var a=_t(e,n),o=Math.cos(s)/a+e.x,l=Math.cos(s)/a+e.y;return{x:o-t.x,y:l-t.y}}function Tt(t){if(t){var e=t.length;if(0!==e){for(var i,n=void 0,r=void 0,s=void 0,a=0;a<e;a++){var o=t[a];(!tt(r)||o.x>r)&&(r=o.x),(!tt(n)||o.x<n)&&(n=o.x),(!tt(i)||o.y<i)&&(i=o.y),(!tt(s)||o.y>s)&&(s=o.y)}return{x:n,y:i,width:r-n,height:s-i}}}return{x:0,y:0,width:0,height:0}}function At(t){var e=t.length;if(0!==e){for(var i=void 0,n=void 0,r=void 0,s=void 0,a=0;a<e;a++){var o=t[a];i=yt(o.x,i),n=yt(o.y,n),r=gt(o.x+o.width,r),s=gt(o.y+o.height,s)}return{x:i,y:n,width:r-i,height:s-n}}}function Vt(t,e,i,n){return{x:(1-n)*(1-n)*t.x+2*(1-n)*n*i.x+n*n*e.x,y:(1-n)*(1-n)*t.y+2*(1-n)*n*i.y+n*n*e.y}}function Ft(t,e,i,n,r){var s={x:0,y:0},a=1-r,o=a*a,l=o*a;return s.x=t.x*l+3*i.x*o*r+3*n.x*a*r*r+e.x*r*r*r,s.y=t.y*l+3*i.y*o*r+3*n.y*a*r*r+e.y*r*r*r,s}function Mt(t,e,i,n,r,s){return r=jt(r),s=jt(s),{x:(-t.x+e.x/r+i.x)*r,y:(-t.y+e.y/s+i.y)*s}}function Lt(t,e,i,n,r,s){return r=jt(r),s=jt(s),{x:(e.x+i.x/r-n.x)*r,y:(e.y+i.y/s-n.y)*s}}function jt(t){return 1-t+1e-5}function Et(t){return 360==t?360:t%360}function Rt(t,e,i){if(e>i){var n=e;e=i,i=n}t=Et(t);var r=(e-Et(e))/360;return t<e&&(t+=360*(r+1)),t>i&&(t-360>e?t-=360:t=t<e+(i-e)/2+180?i:e),t<e&&(t=t>e+(i-e)/2-180?e:i),t}function Bt(t,e,i){var n=Number.MAX_VALUE,r=Number.MAX_VALUE,s=-Number.MAX_VALUE,a=-Number.MAX_VALUE,o=[];tt(i)||(i=1),o.push(Ht(i,t)),o.push(Ht(i,e));for(var l=Math.min(90*Math.floor(t/90),90*Math.floor(e/90)),h=Math.max(90*Math.ceil(t/90),90*Math.ceil(e/90)),p=l;p<=h;p+=90)p>=t&&p<=e&&o.push(Ht(i,p));for(var u=0;u<o.length;u++){var d=o[u];d.x<n&&(n=d.x),d.y<r&&(r=d.y),d.x>s&&(s=d.x),d.y>a&&(a=d.y)}return{x:n,y:r,width:s-n,height:a-r}}function Ht(t,e){return{x:t*ft(e),y:t*dt(e)}}function Nt(t,e){return t.x>=e.x&&t.x<=e.x+e.width&&t.y>=e.y&&t.y<=e.y+e.height}function Wt(t,e,i,n){return{x:((t.x*e.y-e.x*t.y)*(i.x-n.x)-(t.x-e.x)*(i.x*n.y-i.y*n.x))/((t.x-e.x)*(i.y-n.y)-(t.y-e.y)*(i.x-n.x)),y:((t.x*e.y-e.x*t.y)*(i.y-n.y)-(t.y-e.y)*(i.x*n.y-i.y*n.x))/((t.x-e.x)*(i.y-n.y)-(t.y-e.y)*(i.x-n.x))}}function Xt(t,e){for(var i=t.length,n=0;n<i;++n)if(t[n]===e)return n;return-1}function Yt(t,e){for(var i=t.length,n=0;n<i;++n)if(e(t[n]))return!0;return!1}function zt(t,e){for(var i=t.length,n=new Array(i),r=0;r<i;++r)n[r]=e(t[r],r);return n}function Ut(t,e){for(var i=t.length,n=0;n<i;++n)e(t[n],n)}function Gt(t,e){for(var i=t.length;i--;)e(t[i],i)}function Kt(t,e){for(var i=t.length,n=0;n<i&&e(t[n],n);++n);}function Zt(t,e){for(var i=t.length,n=e;n<i;++n)t[n-e]=t[n];t.length=i-e}function qt(t){var e=t.length;return e?t[e-1]:void 0}function $t(t){return t[0]}function Jt(t,e,i){i=ut(i,0,t.length),t.splice(i,0,e)}function Qt(t,e,i){ee(t,e),Jt(t,e,i)}function te(t,e){for(var i=e.length,n=0;n<i;++n)t.push(e[n])}function ee(t,e){var i=!1,n=t.indexOf(e);if(-1!==n){i=!0,t.splice(n,1);for(var r=t.length;n<r;)t[n]===e?(t.splice(n,1),--r):++n}return i}function ie(t,e,i){var n=Xt(t,e);-1!==n&&pe(t,n),null==i?t.push(e):he(t,i,e)}function ne(t,e,i){tt(i)?0===i?t.unshift(e):t.splice(i,0,e):t.push(e)}function re(t,e,i){var n=t.indexOf(e);-1!==n&&t.splice(n,1),tt(i)?t.splice(i,0,e):t.push(e)}function se(t){return Array.isArray(t)?t:[t]}function ae(t,e){return-1!==Xt(t,e)}function oe(t){for(var e=t.length,i=new Array(e),n=0;n<e;++n)i[n]=t[n];return i}function le(t,e,i){void 0===i&&(i=t.length);for(var n=new Array(i-e),r=e;r<i;++r)n[r-e]=t[r];return n}function he(t,e,i){t.splice(e,0,i)}function pe(t,e){t.splice(e,1)}function ue(t,e,i){for(var n=0,r=t.length,s=!1;n<r;){var a=n+r>>1,o=e(i,t[a]);o<0?r=a:0===o?(s=!0,n=a+1):n=a+1}return{found:s,index:s?n-1:n}}function de(t,e){for(var i=t.length,n=0;n<i;++n)if(e(t[n],n))return n;return-1}function ce(t,e){var i=de(t,e);if(-1!==i)return t[i]}function fe(t){for(var e,i,n=t.length;0!==n;)i=Math.floor(Math.random()*n),e=t[n-=1],t[n]=t[i],t[i]=e}function ge(t,e){for(var i=t.length,n=0;n<i;)e(t[n])?++n:(t.splice(n,1),--i)}var ye=function(){function t(t){this._disposed=!1,this._dispose=t}return t.prototype.isDisposed=function(){return this._disposed},t.prototype.dispose=function(){this._disposed||(this._disposed=!0,this._dispose())},t}(),me=function(t){function e(e){return t.call(this,(function(){Ut(e,(function(t){t.dispose()}))}))||this}return C(e,t),e}(ye),ve=function(t){function e(){var e=t.call(this,(function(){Z(e._disposer)&&(e._disposer.dispose(),e._disposer=void 0)}))||this;return e}return C(e,t),e.prototype.get=function(){return this._value},e.prototype.set=function(t,e){Z(this._disposer)&&this._disposer.dispose(),this._disposer=e,this._value=t},e.prototype.reset=function(){this.set(void 0,void 0)},e}(ye),be=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._counter=0,e}return C(e,t),e.prototype.increment=function(){var t=this;return++this._counter,new ye((function(){--t._counter,0===t._counter&&t.dispose()}))},e}(ye),xe=!1,_e=[],Pe=[],we=[],Ce=[],Oe="function"==typeof requestAnimationFrame?function(t){requestAnimationFrame(t)}:function(t){setTimeout(t,16.666666666666668)};function Se(){for(var t=Date.now(),e=_e.length,i=0;i<e;++i)_e[i](t);for(Zt(_e,e),i=0;i<Pe.length;++i)Pe[i](t);for(Pe.length=0,i=0;i<we.length;++i)we[i](t);we.length=0,0===_e.length&&0===Pe.length?xe=!1:Oe(Se)}function Ie(){xe||(xe=!0,Oe(Se))}function De(t){_e.push(t),Ie()}function ke(t){Pe.push(t),Ie()}function Te(t){we.push(t),Ie()}function Ae(t){Ce.push(t)}function Ve(){for(var t=Date.now(),e=Ce.length,i=0;i<e;++i)Ce.shift()(t)}var Fe=function(){function t(){this._listeners=[],this._killed=[],this._disabled={},this._iterating=0,this._enabled=!0,this._disposed=!1}return t.prototype.isDisposed=function(){return this._disposed},t.prototype.dispose=function(){if(!this._disposed){this._disposed=!0;var t=this._listeners;this._iterating=1,this._listeners=null,this._disabled=null;try{Ut(t,(function(t){t.disposer.dispose()}))}finally{this._killed=null,this._iterating=null}}},t.prototype.hasListeners=function(){return 0!==this._listeners.length},t.prototype.hasListenersByType=function(t){return Yt(this._listeners,(function(e){return(null===e.type||e.type===t)&&!e.killed}))},t.prototype.enable=function(){this._enabled=!0},t.prototype.disable=function(){this._enabled=!1},t.prototype.enableType=function(t){delete this._disabled[t]},t.prototype.disableType=function(t,e){void 0===e&&(e=1/0),this._disabled[t]=e},t.prototype._removeListener=function(t){if(0===this._iterating){var e=this._listeners.indexOf(t);if(-1===e)throw new Error("Invalid state: could not remove listener");this._listeners.splice(e,1)}else this._killed.push(t)},t.prototype._removeExistingListener=function(t,e,i,n){if(this._disposed)throw new Error("EventDispatcher is disposed");this._eachListener((function(r){r.once!==t||r.type!==e||null!=i&&r.callback!==i||r.context!==n||r.disposer.dispose()}))},t.prototype.isEnabled=function(t){if(this._disposed)throw new Error("EventDispatcher is disposed");return this._enabled&&this._listeners.length>0&&this.hasListenersByType(t)&&null==this._disabled[t]},t.prototype.has=function(t,e,i){return-1!==de(this._listeners,(function(n){return!0!==n.once&&n.type===t&&(null==e||n.callback===e)&&n.context===i}))},t.prototype._shouldDispatch=function(t){if(this._disposed)throw new Error("EventDispatcher is disposed");var e=this._disabled[t];return tt(e)?(e<=1?delete this._disabled[t]:--this._disabled[t],!1):this._enabled},t.prototype._eachListener=function(t){var e=this;++this._iterating;try{Ut(this._listeners,t)}finally{--this._iterating,0===this._iterating&&0!==this._killed.length&&(Ut(this._killed,(function(t){e._removeListener(t)})),this._killed.length=0)}},t.prototype.dispatchImmediately=function(t,e){this._shouldDispatch(t)&&this._eachListener((function(i){i.killed||null!==i.type&&i.type!==t||i.dispatch(t,e)}))},t.prototype.dispatch=function(t,e){this._shouldDispatch(t)&&this._eachListener((function(i){i.killed||null!==i.type&&i.type!==t||Ae((function(){i.killed||i.dispatch(t,e)}))}))},t.prototype._on=function(t,e,i,n,r,s){var a=this;if(this._disposed)throw new Error("EventDispatcher is disposed");this._removeExistingListener(t,e,i,n);var o={type:e,callback:i,context:n,shouldClone:r,dispatch:s,killed:!1,once:t,disposer:new ye((function(){o.killed=!0,a._removeListener(o)}))};return this._listeners.push(o),o},t.prototype.onAll=function(t,e,i){return void 0===i&&(i=!0),this._on(!1,null,t,e,i,(function(i,n){return t.call(e,i,n)})).disposer},t.prototype.on=function(t,e,i,n){return void 0===n&&(n=!0),this._on(!1,t,e,i,n,(function(t,n){return e.call(i,n)})).disposer},t.prototype.once=function(t,e,i,n){void 0===n&&(n=!0);var r=this._on(!0,t,e,i,n,(function(t,n){r.disposer.dispose(),e.call(i,n)}));return r.disposer},t.prototype.off=function(t,e,i){this._removeExistingListener(!1,t,e,i)},t.prototype.copyFrom=function(t){var e=this;if(this._disposed)throw new Error("EventDispatcher is disposed");if(t===this)throw new Error("Cannot copyFrom the same TargetedEventDispatcher");Ut(t._listeners,(function(t){!t.killed&&t.shouldClone&&(null===t.type?e.onAll(t.callback,t.context):t.once?e.once(t.type,t.callback,t.context):e.on(t.type,t.callback,t.context))}))},t}(),Me=function(t){function e(e){var i=t.call(this)||this;return i.target=e,i}return C(e,t),e.prototype.copyFrom=function(t){var e=this;if(this._disposed)throw new Error("EventDispatcher is disposed");if(t===this)throw new Error("Cannot copyFrom the same TargetedEventDispatcher");Ut(t._listeners,(function(i){i.context!==t.target&&!i.killed&&i.shouldClone&&(null===i.type?e.onAll(i.callback,i.context):i.once?e.once(i.type,i.callback,i.context):e.on(i.type,i.callback,i.context))}))},e}(Fe);function Le(t){return function(e){for(var i in t)if(Re(t,i)&&!e([i,t[i]]))break}}function je(t){var e=[];for(var i in t)Re(t,i)&&e.push(i);return e}function Ee(t,e){return je(t).sort(e)}function Re(t,e){return{}.hasOwnProperty.call(t,e)}function Be(t,e){return t[e]}function He(t,e){for(var i in t)if(Re(t,i)&&!e(i,t[i]))break}function Ne(t,e){He(t,(function(t,i){return e(t,i),!0}))}function We(t,e,i){Ut(Ee(t,i),(function(i){e(i,t[i])}))}function Xe(t){return Object.assign({},t)}function Ye(t,e){return Object.assign({},t,e)}function ze(t){return JSON.parse(JSON.stringify(t))}function Ue(t,e,i){Ut(i,(function(i){Z(t[i])&&(e[i]=t[i])}))}function Ge(t,e,i){Ut(i,(function(i){Z(t[i])&&!Z(e[i])&&(e[i]=t[i])}))}function Ke(t,e,i){Ut(i,(function(i){e[i]=t[i]}))}function Ze(t,e){Ue(t,e,je(t))}function qe(t){return function(e){for(var i=t.length,n=0;n<i&&e(t[n]);++n);}}function $e(t){var e=0;return t((function(t){return++e,!0})),e}function Je(t){var e=[];return t((function(t){return e.push(t),!0})),e}function Qe(t,e){t(e)}function ti(t,e){t((function(t){return e(t),!0}))}function ei(t,e){return qe(Je(t).sort(e))}function ii(t,e){return function(i){return t((function(t){return i(e(t))}))}}function ni(t,e){return function(i){return t((function(t){return!e(t)||i(t)}))}}function ri(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){for(var i=!0,n=function(t){return i=e(t)},r=t.length,s=0;s<r&&(t[s](n),i);++s);}}function si(t){return function(e){var i=!0,n=function(t){return i=e(t)};t((function(t){return t(n),i}))}}function ai(t){return function(e){var i=0;t((function(t){return e([i++,t])}))}}function oi(t,e){var i=!1,n=0;return t((function(t){return e(t)?(i=!0,!1):(++n,!0)})),i?n:-1}function li(t,e){var i;return t((function(t){return!e(t)||(i=t,!1)})),i}function hi(t,e){var i;return t((function(t){var n=e(t);return null===n||(i=n,!1)})),i}function pi(t,e){var i=!1;return t((function(t){return!e(t)||(i=!0,!1)})),i}function ui(t,e,i){return t((function(t){return e=i(e,t),!0})),e}function di(t,e){return null==t||e<t?e:t}function ci(t){return ui(t,null,di)}function fi(t,e){return null==t||e>t?e:t}function gi(t){return ui(t,null,fi)}function yi(t,e){void 0===e&&(e="");var i=!0,n="";return t((function(t){return i?i=!1:n+=e,n+=t,!0})),n}var mi=function(){function t(t,e){this.createNewItems=!1,this.list=t,this._create=e,this.reset()}return t.prototype.reset=function(){this._listCopy=Je(this.list.iterator())},t.prototype.clear=function(){this._listCopy.length=0},t.prototype.getFirst=function(){return this.returnItem(0)},t.prototype.getLast=function(){return this.returnItem(this._listCopy.length-1)},t.prototype.find=function(t){var e=de(this._listCopy,t);if(-1!==e){var i=this._listCopy[e];return ee(this._listCopy,i),i}return this.getLast()},t.prototype.removeItem=function(t){return ee(this._listCopy,t)},t.prototype.returnItem=function(t){if(t>=0&&t<this._listCopy.length){var e=this._listCopy[t];return ee(this._listCopy,e),e}if(this.createNewItems)return this._create()},t.prototype.iterator=function(){return qe(this._listCopy)},t}();function vi(t,e){return t===e?0:t<e?-1:1}function bi(t,e){return new Array(e+1).join(t)}function xi(t){for(var e="",i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=0;n<t;n++)e+=i.charAt(Math.floor(Math.random()*i.length));return e}var _i=function(t){function e(e){var i=e.events.on("removed",(function(t){t.oldValue.dispose()}),void 0,!1);return t.call(this,(function(){i.dispose(),ti(e.iterator(),(function(t){t[1].dispose()}))}))||this}return C(e,t),e}(ye),Pi=function(){function t(){this.events=new Fe,this._dictionary={}}return t.prototype.hasKey=function(t){return Re(this._dictionary,t)},t.prototype.getKey=function(t){return this._dictionary[t]},t.prototype.insertKey=function(t,e){if(Re(this._dictionary,t))throw new Error("Key "+t+" already exists in dictionary");this._dictionary[t]=e,this.events.isEnabled("insertKey")&&this.events.dispatchImmediately("insertKey",{type:"insertKey",target:this,key:t,newValue:e})},t.prototype.setKey=function(t,e){if(Re(this._dictionary,t)){var i=this._dictionary[t];i!==e&&(this._dictionary[t]=e,this.events.isEnabled("setKey")&&this.events.dispatchImmediately("setKey",{type:"setKey",target:this,key:t,oldValue:i,newValue:e}),this.events.isEnabled("removed")&&this.events.dispatchImmediately("removed",{type:"removed",target:this,oldValue:i}))}else this._dictionary[t]=e,this.events.isEnabled("insertKey")&&this.events.dispatchImmediately("insertKey",{type:"insertKey",target:this,key:t,newValue:e})},t.prototype.updateKey=function(t,e){if(!Re(this._dictionary,t))throw new Error("Key "+t+" doesn't exist in dictionary");var i=this._dictionary[t],n=e(i);i!==n&&(this._dictionary[t]=n,this.events.isEnabled("setKey")&&this.events.dispatchImmediately("setKey",{type:"setKey",target:this,key:t,oldValue:i,newValue:n}),this.events.isEnabled("removed")&&this.events.dispatchImmediately("removed",{type:"removed",target:this,oldValue:i}))},t.prototype.removeKey=function(t){if(Re(this._dictionary,t)){var e=this._dictionary[t];delete this._dictionary[t],this.events.isEnabled("removeKey")&&this.events.dispatchImmediately("removeKey",{type:"removeKey",target:this,key:t,oldValue:e}),this.events.isEnabled("removed")&&this.events.dispatchImmediately("removed",{type:"removed",target:this,oldValue:e})}},t.prototype.insertKeyIfEmpty=function(t,e){return this.hasKey(t)||this.insertKey(t,e()),this.getKey(t)},t.prototype.clear=function(){var t=this;this.events.isEnabled("removed")&&Ne(this._dictionary,(function(e,i){t.events.dispatchImmediately("removed",{type:"removed",target:t,oldValue:i})})),this._dictionary={},this.events.isEnabled("cleared")&&this.events.dispatchImmediately("cleared",{type:"cleared",target:this})},t.prototype.copyFrom=function(t){var e=this;ti(t.iterator(),(function(t){e.setKey(t[0],t[1])}))},t.prototype.iterator=function(){return Le(this._dictionary)},t.prototype[Symbol.iterator]=function(){var t,e,i,n;return I(this,(function(r){switch(r.label){case 0:for(e in t=[],this._dictionary)t.push(e);i=0,r.label=1;case 1:return i<t.length?(n=t[i],Re(this._dictionary,n)?[4,[n,this._dictionary[n]]]:[3,3]):[3,4];case 2:r.sent(),r.label=3;case 3:return i++,[3,1];case 4:return[2]}}))},t.prototype.each=function(t){ti(this.iterator(),(function(e){var i=k(e,2),n=i[0],r=i[1];return t(n,r)}))},t.prototype.sortedIterator=function(){return ei(this.iterator(),(function(t,e){return vi(t[0],e[0])}))},t}(),wi=function(t){function e(e){var i=t.call(this)||this;return i.template=e,i}return C(e,t),Object.defineProperty(e.prototype,"template",{get:function(){return this._template},set:function(t){t.isTemplate=!0,this._template=t},enumerable:!0,configurable:!0}),e.prototype.copyFrom=function(t){var e=this;ti(t.iterator(),(function(t){e.setKey(t[0],t[1].clone())}))},e.prototype.create=function(t){var e=this;return this.insertKeyIfEmpty(t,(function(){return e.template.clone()}))},e}(Pi),Ci=function(){function t(){this._storage=new Pi,this.ttl=1e3}return t.prototype.set=function(t,e,i,n){var r=this._storage.insertKeyIfEmpty(t,(function(){return new Pi})),s={touched:(new Date).getTime(),ttl:tt(n)?n:this.ttl,value:i};r.setKey(e,s)},t.prototype.get=function(t,e,i){if(void 0===i&&(i=void 0),this._storage.hasKey(t)){var n=this._storage.getKey(t);if(n.hasKey(e)){var r=n.getKey(e);return r.ttl&&r.touched+r.ttl<(new Date).getTime()&&(r.expired=!0),r.expired?(n.removeKey(e),i):r.value}return i}return i},t.prototype.clear=function(t){t?this._storage.removeKey(t):this._storage.clear()},t}(),Oi=new Ci,Si=function(){function t(){var t=this;this.events=new Fe,this.themes=[],this.loadedThemes={},this._uidCount=0,this.registeredClasses={},this._placeholders={},this.invalidSprites={},this.invalidDatas={},this.invalidRawDatas=[],this.invalidDataItems=[],this.invalidDataRange=[],this.invalidPositions={},this.invalidLayouts={},this.baseSprites=[],this.baseSpritesByUid={},this.queue=[],this.deferred=[],this.uid=this.getUniqueId(),this.invalidSprites.noBase=[],this.invalidDatas.noBase=[],this.invalidLayouts.noBase=[],this.invalidPositions.noBase=[],"undefined"!=typeof addEventListener&&(addEventListener("beforeprint",(function(){Ut(t.baseSprites,(function(t){var e=t.paper.svg;e.setAttribute("viewBox","0 0 "+e.clientWidth+" "+e.clientHeight)}))})),addEventListener("afterprint",(function(){Ut(t.baseSprites,(function(t){t.paper.svg.removeAttribute("viewBox")}))})))}return t.prototype.getUniqueId=function(){var t=this._uidCount;return this._uidCount+=1,"id-"+t},Object.defineProperty(t.prototype,"map",{get:function(){return this._map||(this._map=new Pi),this._map},enumerable:!0,configurable:!0}),t.prototype.setCache=function(t,e,i){Oi.set(this.uid,t,e,i)},t.prototype.getCache=function(t,e){return void 0===e&&(e=void 0),Oi.get(this.uid,t,e)},t.prototype.dispatch=function(t,e){this.events.isEnabled(t)&&(e?(e.type=t,e.target=e.target||this,this.events.dispatch(t,{type:t,target:this})):this.events.dispatch(t,{type:t,target:this}))},t.prototype.dispatchImmediately=function(t,e){this.events.isEnabled(t)&&(e?(e.type=t,e.target=e.target||this,this.events.dispatchImmediately(t,e)):this.events.dispatchImmediately(t,{type:t,target:this}))},t.prototype.getPlaceholder=function(t){return Z(this._placeholders[t])||(this._placeholders[t]="__amcharts_"+t+"_"+xi(8)+"__"),this._placeholders[t]},t.prototype.addToInvalidComponents=function(t){t.baseId?ie(this.invalidDatas[t.baseId],t):ie(this.invalidDatas.noBase,t)},t.prototype.removeFromInvalidComponents=function(t){t.baseId&&ee(this.invalidDatas[t.baseId],t),ee(this.invalidDatas.noBase,t)},t.prototype.addToInvalidSprites=function(t){t.baseId?ne(this.invalidSprites[t.baseId],t):ne(this.invalidSprites.noBase,t)},t.prototype.removeFromInvalidSprites=function(t){t.baseId&&ee(this.invalidSprites[t.baseId],t),ee(this.invalidSprites.noBase,t)},t.prototype.addToInvalidPositions=function(t){t.baseId?ne(this.invalidPositions[t.baseId],t):ne(this.invalidPositions.noBase,t)},t.prototype.removeFromInvalidPositions=function(t){t.baseId&&ee(this.invalidPositions[t.baseId],t),ee(this.invalidPositions.noBase,t)},t.prototype.addToInvalidLayouts=function(t){t.baseId?ne(this.invalidLayouts[t.baseId],t):ne(this.invalidLayouts.noBase,t)},t.prototype.removeFromInvalidLayouts=function(t){t.baseId&&ee(this.invalidLayouts[t.baseId],t),ee(this.invalidLayouts.noBase,t)},t}(),Ii=new Si;function Di(t,e){var i=Ii.registeredClasses[e];return null!=i&&t instanceof i}var ki=function(){function t(t,e,i){this._array=t,this._start=e,this._end=i}return t.prototype.iterator=function(){var t=this;return function(e){if(t._start!==t._end)if(t._start<t._end)for(var i=t._start;i<t._end&&e(t._array[i]);++i);else for(i=t._start-1;i>=t._end&&e(t._array[i]);--i);}},t.prototype.backwards=function(){return new t(this._array,this._end,this._start)},t.prototype.range=function(e,i){if(e<=i){if(this._start===this._end)return this;if(this._start<this._end){var n=i-e;return e=Math.max(this._start+e,this._start),i=Math.min(e+n,this._end),new t(this._array,e,i)}return n=i-e,e=Math.max(this._start-e,this._end),i=Math.max(e-n,this._end),new t(this._array,e,i)}throw new Error("Start index must be lower than end index")},t}(),Ti=function(t){function e(e,i,n){var r=t.call(this,[e.events.on("inserted",(function(t){var i=t.newValue,n=r._getKey(i),s=0;Qe(e.iterator(),(function(t){return t!==i&&(r._getKey(t)===n&&++s,!0)})),r._insert(i,n,s)}),void 0,!1),e.events.on("removed",(function(t){r._remove(t.oldValue)}),void 0,!1)])||this;return r._keys=[],r._groups={},r._getKey=i,r._sort=n,ti(e.iterator(),(function(t){r._insert(t,i(t))})),r}return C(e,t),e.prototype._insert=function(t,e,i){if(null==this._groups[e]){this._groups[e]=[];var n=ue(this._keys,this._sort,e),r=n.found,s=n.index;if(r)throw new Error("Key already exists: "+e);he(this._keys,s,e)}null==i?this._groups[e].push(t):he(this._groups[e],i,t)},e.prototype._remove=function(t){var e=this._getKey(t),i=this._groups[e];if(null!=i&&(ee(i,t),0===i.length)){delete this._groups[e];var n=ue(this._keys,this._sort,e),r=n.found,s=n.index;if(!r)throw new Error("Key doesn't exist: "+e);pe(this._keys,s)}},e.prototype.iterator=function(){var t=this;return si(ii(qe(this._keys),(function(e){return qe(t._groups[e])})))},e}(me),Ai=function(t){function e(e,i){void 0===i&&(i=!0);var n=this;if(i){var r=e.events.on("removed",(function(t){t.oldValue.dispose()}),void 0,!1);n=t.call(this,(function(){r.dispose(),ti(e.iterator(),(function(t){t.dispose()}))}))||this}else n=t.call(this,(function(){ti(e.iterator(),(function(t){t.dispose()}))}))||this;return n}return C(e,t),e}(ye);function Vi(t,e){if(!(t>=0&&t<e))throw new Error("Index out of bounds: "+t)}var Fi=function(){function t(t){void 0===t&&(t=[]),this.events=new Fe,this._values=t}return Object.defineProperty(t.prototype,"values",{get:function(){return this._values},enumerable:!0,configurable:!0}),t.prototype.contains=function(t){return-1!==this._values.indexOf(t)},t.prototype.removeValue=function(t){for(var e=0,i=this._values.length;e<i;)this._values[e]===t?(this.removeIndex(e),--i):++e},t.prototype.indexOf=function(t){return Xt(this._values,t)},Object.defineProperty(t.prototype,"length",{get:function(){return this._values.length},enumerable:!0,configurable:!0}),t.prototype.hasIndex=function(t){return t>=0&&t<this._values.length},t.prototype.getIndex=function(t){return this._values[t]},t.prototype.setIndex=function(t,e){Vi(t,this._values.length);var i=this._values[t];return i!==e&&(this._values[t]=e,this.events.isEnabled("setIndex")&&this.events.dispatchImmediately("setIndex",{type:"setIndex",target:this,index:t,oldValue:i,newValue:e}),this.events.isEnabled("removed")&&this.events.dispatchImmediately("removed",{type:"removed",target:this,oldValue:i}),this.events.isEnabled("inserted")&&this.events.dispatchImmediately("inserted",{type:"inserted",target:this,newValue:e})),i},t.prototype.insertIndex=function(t,e){Vi(t,this._values.length+1),he(this._values,t,e),this.events.isEnabled("insertIndex")&&this.events.dispatchImmediately("insertIndex",{type:"insertIndex",target:this,index:t,newValue:e}),this.events.isEnabled("inserted")&&this.events.dispatchImmediately("inserted",{type:"inserted",target:this,newValue:e})},t.prototype._sortQuicksort=function(t,e,i){if(t<e){var n=this._sortPartition(t,e,i);this._sortQuicksort(t,n,i),this._sortQuicksort(n+1,e,i)}},t.prototype._sortPartition=function(t,e,i){for(var n=this._values,r=n[t],s=t-1,a=e+1;;){do{++s}while(i(n[s],r)<0);do{--a}while(i(n[a],r)>0);if(s>=a)return a;this.swap(s,a)}},t.prototype.sort=function(t){this._sortQuicksort(0,this._values.length-1,t)},t.prototype.swap=function(t,e){var i=this._values.length;if(Vi(t,i),Vi(e,i),t!==e){var n=this._values[t],r=this._values[e];this._values[t]=r,this.events.isEnabled("setIndex")&&this.events.dispatchImmediately("setIndex",{type:"setIndex",target:this,index:t,oldValue:n,newValue:r}),this._values[e]=n,this.events.isEnabled("setIndex")&&this.events.dispatchImmediately("setIndex",{type:"setIndex",target:this,index:e,oldValue:r,newValue:n})}},t.prototype.removeIndex=function(t){Vi(t,this._values.length);var e=this._values[t];return pe(this._values,t),this.events.isEnabled("removeIndex")&&this.events.dispatchImmediately("removeIndex",{type:"removeIndex",target:this,index:t,oldValue:e}),this.events.isEnabled("removed")&&this.events.dispatchImmediately("removed",{type:"removed",target:this,oldValue:e}),e},t.prototype.moveValue=function(t,e){var i=this.indexOf(t);if(-1!==i){var n=this._values[i];pe(this._values,i),this.events.isEnabled("removeIndex")&&this.events.dispatchImmediately("removeIndex",{type:"removeIndex",target:this,index:i,oldValue:n})}null==e?(e=this._values.length,this._values.push(t)):he(this._values,e,t),this.events.isEnabled("insertIndex")&&this.events.dispatchImmediately("insertIndex",{type:"insertIndex",target:this,index:e,newValue:t}),-1===i&&this.events.isEnabled("inserted")&&this.events.dispatchImmediately("inserted",{type:"inserted",target:this,newValue:t})},t.prototype.push=function(t){var e=this._values.push(t)-1;return this.events.isEnabled("insertIndex")&&this.events.dispatchImmediately("insertIndex",{type:"insertIndex",target:this,index:e,newValue:t}),this.events.isEnabled("inserted")&&this.events.dispatchImmediately("inserted",{type:"inserted",target:this,newValue:t}),t},t.prototype.unshift=function(t){this.insertIndex(0,t)},t.prototype.pushAll=function(t){var e=this;Ut(t,(function(t){e.push(t)}))},t.prototype.copyFrom=function(t){this.pushAll(t._values)},t.prototype.pop=function(){return this._values.length-1<0?void 0:this.removeIndex(this._values.length-1)},t.prototype.shift=function(){return this._values.length?this.removeIndex(0):void 0},t.prototype.setAll=function(t){var e=this,i=oe(this._values);this._values.length=0,Ut(t,(function(t){e._values.push(t)})),this.events.isEnabled("setAll")&&this.events.dispatchImmediately("setAll",{type:"setAll",target:this,oldArray:i,newArray:this._values}),this.events.isEnabled("removed")&&Ut(i,(function(t){e.events.dispatchImmediately("removed",{type:"removed",target:e,oldValue:t})})),this.events.isEnabled("inserted")&&Ut(this._values,(function(t){e.events.dispatchImmediately("inserted",{type:"inserted",target:e,newValue:t})}))},t.prototype.clear=function(){this.setAll([])},t.prototype.iterator=function(){return qe(this._values)},t.prototype[Symbol.iterator]=function(){var t,e;return I(this,(function(i){switch(i.label){case 0:t=this._values.length,e=0,i.label=1;case 1:return e<t?[4,this._values[e]]:[3,4];case 2:i.sent(),i.label=3;case 3:return++e,[3,1];case 4:return[2]}}))},t.prototype.each=function(t){Ut(this._values,t)},t.prototype.range=function(t,e){if(t<=e){var i=e-t;return t=Math.max(t,0),e=Math.min(t+i,this._values.length),new ki(this._values,t,e)}throw new Error("Start index must be lower than end index")},t.prototype.backwards=function(){return new ki(this._values,this._values.length,0)},t}(),Mi=function(t){function e(e){var i=t.call(this)||this;return i.template=e,i}return C(e,t),Object.defineProperty(e.prototype,"template",{get:function(){return this._template},set:function(t){t.isTemplate=!0,this._template=t},enumerable:!0,configurable:!0}),e.prototype.copyFrom=function(t){var e=this;ti(t.iterator(),(function(t){e.push(t.clone())}))},e.prototype.create=function(t){var e=null!=t?new t:this.template.clone();return this.push(e),e},e.prototype.clone=function(){for(var t=new e(this.template),i=this.values,n=i.length,r=0;r<n;++r)t.push(i[r].clone());return t},e}(Fi),Li=function(){function t(t){this._values=[],this.events=new Fe,null!=t&&this.setAll(t)}return Object.defineProperty(t.prototype,"values",{get:function(){return this._values},enumerable:!0,configurable:!0}),t.prototype._insert=function(t){return this._values.push(t),this._values.length-1},Object.defineProperty(t.prototype,"length",{get:function(){return this._values.length},enumerable:!0,configurable:!0}),t.prototype.indexOf=function(t){return Xt(this._values,t)},t.prototype.contains=function(t){return-1!==this.indexOf(t)},t.prototype.getIndex=function(t){return this._values[t]},Object.defineProperty(t.prototype,"first",{get:function(){return this._values[0]},enumerable: