@deephaven/embed-chart 0.15.7-beta.3 → 0.16.1-vite.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. package/README.md +1 -1
  2. package/build/{static/media/FiraMono-Bold.eba11b6a.ttf → assets/FiraMono-Bold.2a28efd7.ttf} +0 -0
  3. package/build/{static/media/FiraMono-Bold.aed93bbe.eot → assets/FiraMono-Bold.4b63940b.eot} +0 -0
  4. package/build/{static/media/FiraMono-Bold.742f3b26.woff → assets/FiraMono-Bold.f3785fb4.woff} +0 -0
  5. package/build/{static/media/FiraMono-Regular.21c7b277.eot → assets/FiraMono-Regular.3baf2617.eot} +0 -0
  6. package/build/{static/media/FiraMono-Regular.ac389b17.ttf → assets/FiraMono-Regular.8c86f296.ttf} +0 -0
  7. package/build/{static/media/FiraMono-Regular.58ea07e7.woff → assets/FiraMono-Regular.bb55b797.woff} +0 -0
  8. package/build/{static/media/FiraSans-Bold.35501059.woff → assets/FiraSans-Bold.02bb0cb2.woff} +0 -0
  9. package/build/{static/media/FiraSans-Bold.278c279f.ttf → assets/FiraSans-Bold.12b632bf.ttf} +0 -0
  10. package/build/{static/media/FiraSans-Bold.d7f7afe4.eot → assets/FiraSans-Bold.f8c87b86.eot} +0 -0
  11. package/build/{static/media/FiraSans-BoldItalic.f4d6e258.ttf → assets/FiraSans-BoldItalic.3edde006.ttf} +0 -0
  12. package/build/{static/media/FiraSans-BoldItalic.5dcd116c.eot → assets/FiraSans-BoldItalic.6a67e0ae.eot} +0 -0
  13. package/build/{static/media/FiraSans-BoldItalic.8c97771b.woff → assets/FiraSans-BoldItalic.6d994d42.woff} +0 -0
  14. package/build/{static/media/FiraSans-ExtraBold.7419f6c9.eot → assets/FiraSans-ExtraBold.961aa5a0.eot} +0 -0
  15. package/build/{static/media/FiraSans-ExtraBold.81983c70.woff → assets/FiraSans-ExtraBold.9bdff6dd.woff} +0 -0
  16. package/build/{static/media/FiraSans-ExtraBold.3c008e17.ttf → assets/FiraSans-ExtraBold.b3633bc7.ttf} +0 -0
  17. package/build/{static/media/FiraSans-ExtraBoldItalic.f5abd987.eot → assets/FiraSans-ExtraBoldItalic.6c7a252b.eot} +0 -0
  18. package/build/{static/media/FiraSans-ExtraBoldItalic.a28ff382.woff → assets/FiraSans-ExtraBoldItalic.c8408489.woff} +0 -0
  19. package/build/{static/media/FiraSans-ExtraBoldItalic.46e77bbc.ttf → assets/FiraSans-ExtraBoldItalic.fa5351fb.ttf} +0 -0
  20. package/build/{static/media/FiraSans-Hair.e76008d0.eot → assets/FiraSans-Hair.4d1eb02b.eot} +0 -0
  21. package/build/{static/media/FiraSans-Hair.e680ac33.woff → assets/FiraSans-Hair.99b1ef19.woff} +0 -0
  22. package/build/{static/media/FiraSans-Hair.c6ae1f04.ttf → assets/FiraSans-Hair.d79d7098.ttf} +0 -0
  23. package/build/{static/media/FiraSans-HairItalic.49961a4e.ttf → assets/FiraSans-HairItalic.28cd895b.ttf} +0 -0
  24. package/build/{static/media/FiraSans-HairItalic.8229ba64.eot → assets/FiraSans-HairItalic.6ec27be8.eot} +0 -0
  25. package/build/{static/media/FiraSans-HairItalic.bd6c0326.woff → assets/FiraSans-HairItalic.e3798e2e.woff} +0 -0
  26. package/build/{static/media/FiraSans-Heavy.6f322be3.ttf → assets/FiraSans-Heavy.28d8c64e.ttf} +0 -0
  27. package/build/{static/media/FiraSans-Heavy.2c2f694a.eot → assets/FiraSans-Heavy.878022a0.eot} +0 -0
  28. package/build/{static/media/FiraSans-Heavy.e4010b0d.woff → assets/FiraSans-Heavy.b11eda16.woff} +0 -0
  29. package/build/{static/media/FiraSans-HeavyItalic.22ca9e41.ttf → assets/FiraSans-HeavyItalic.4220fa31.ttf} +0 -0
  30. package/build/{static/media/FiraSans-HeavyItalic.407bba9a.eot → assets/FiraSans-HeavyItalic.79c5261e.eot} +0 -0
  31. package/build/{static/media/FiraSans-HeavyItalic.87beb0ee.woff → assets/FiraSans-HeavyItalic.7b6ffd1e.woff} +0 -0
  32. package/build/{static/media/FiraSans-Italic.fbfa9933.ttf → assets/FiraSans-Italic.246d934f.ttf} +0 -0
  33. package/build/{static/media/FiraSans-Italic.d0a50e42.eot → assets/FiraSans-Italic.74969e60.eot} +0 -0
  34. package/build/{static/media/FiraSans-Italic.b5e68d9b.woff → assets/FiraSans-Italic.74b56498.woff} +0 -0
  35. package/build/{static/media/FiraSans-Light.8f5b6180.woff → assets/FiraSans-Light.069b8cf6.woff} +0 -0
  36. package/build/{static/media/FiraSans-Light.211f8c78.ttf → assets/FiraSans-Light.3dad6fcc.ttf} +0 -0
  37. package/build/{static/media/FiraSans-Light.0a74e606.eot → assets/FiraSans-Light.3dffd9c8.eot} +0 -0
  38. package/build/{static/media/FiraSans-LightItalic.01d47fee.woff → assets/FiraSans-LightItalic.2ab0adbc.woff} +0 -0
  39. package/build/{static/media/FiraSans-LightItalic.d8789718.eot → assets/FiraSans-LightItalic.a54a9c11.eot} +0 -0
  40. package/build/{static/media/FiraSans-LightItalic.0a2c1aa5.ttf → assets/FiraSans-LightItalic.b76153f0.ttf} +0 -0
  41. package/build/{static/media/FiraSans-Medium.46e414be.ttf → assets/FiraSans-Medium.1fe7499b.ttf} +0 -0
  42. package/build/{static/media/FiraSans-Medium.b3fd57a5.eot → assets/FiraSans-Medium.5dfa8d36.eot} +0 -0
  43. package/build/{static/media/FiraSans-Medium.3b258763.woff → assets/FiraSans-Medium.5ee49732.woff} +0 -0
  44. package/build/{static/media/FiraSans-MediumItalic.ba805e30.woff → assets/FiraSans-MediumItalic.278ba15e.woff} +0 -0
  45. package/build/{static/media/FiraSans-MediumItalic.b67ac4a4.eot → assets/FiraSans-MediumItalic.31b33fdc.eot} +0 -0
  46. package/build/{static/media/FiraSans-MediumItalic.3fe60546.ttf → assets/FiraSans-MediumItalic.b03693dc.ttf} +0 -0
  47. package/build/{static/media/FiraSans-Regular.67d5d4dc.eot → assets/FiraSans-Regular.52fd5b84.eot} +0 -0
  48. package/build/{static/media/FiraSans-Regular.5107932f.ttf → assets/FiraSans-Regular.a389cef7.ttf} +0 -0
  49. package/build/{static/media/FiraSans-Regular.4521f697.woff → assets/FiraSans-Regular.f4249196.woff} +0 -0
  50. package/build/{static/media/FiraSans-SemiBold.ee379f01.eot → assets/FiraSans-SemiBold.64aaef22.eot} +0 -0
  51. package/build/{static/media/FiraSans-SemiBold.351b4481.ttf → assets/FiraSans-SemiBold.95386ec5.ttf} +0 -0
  52. package/build/{static/media/FiraSans-SemiBold.701aecdc.woff → assets/FiraSans-SemiBold.db1aa0a7.woff} +0 -0
  53. package/build/{static/media/FiraSans-SemiBoldItalic.b55f0a48.woff → assets/FiraSans-SemiBoldItalic.5b1b2ef5.woff} +0 -0
  54. package/build/{static/media/FiraSans-SemiBoldItalic.7efe7dfd.eot → assets/FiraSans-SemiBoldItalic.6312c494.eot} +0 -0
  55. package/build/{static/media/FiraSans-SemiBoldItalic.39259168.ttf → assets/FiraSans-SemiBoldItalic.e48e1077.ttf} +0 -0
  56. package/build/{static/media/FiraSans-UltraLight.97bb2d14.eot → assets/FiraSans-UltraLight.148134d0.eot} +0 -0
  57. package/build/{static/media/FiraSans-UltraLight.b0a35056.woff → assets/FiraSans-UltraLight.9ff1716f.woff} +0 -0
  58. package/build/{static/media/FiraSans-UltraLight.88f160be.ttf → assets/FiraSans-UltraLight.e5cb35ce.ttf} +0 -0
  59. package/build/{static/media/FiraSans-UltraLightItalic.3b84d3a5.eot → assets/FiraSans-UltraLightItalic.4d0a542c.eot} +0 -0
  60. package/build/{static/media/FiraSans-UltraLightItalic.dbb62d63.ttf → assets/FiraSans-UltraLightItalic.75bbabe2.ttf} +0 -0
  61. package/build/{static/media/FiraSans-UltraLightItalic.a4b2736c.woff → assets/FiraSans-UltraLightItalic.b3af616b.woff} +0 -0
  62. package/build/assets/index.452a8b27.js +1 -0
  63. package/build/assets/index.ab3ad2e1.css +6 -0
  64. package/build/assets/plotly.4348720c.js +6 -0
  65. package/build/assets/vendor.832c3e5c.js +1183 -0
  66. package/build/assets/vendor.c53844f2.css +1 -0
  67. package/build/index.html +62 -1
  68. package/package.json +17 -30
  69. package/build/asset-manifest.json +0 -24
  70. package/build/static/css/2.c91e906a.chunk.css +0 -2
  71. package/build/static/css/2.c91e906a.chunk.css.map +0 -1
  72. package/build/static/css/main.65ed3474.chunk.css +0 -8
  73. package/build/static/css/main.65ed3474.chunk.css.map +0 -1
  74. package/build/static/js/2.dc8813c6.chunk.js +0 -3
  75. package/build/static/js/2.dc8813c6.chunk.js.LICENSE.txt +0 -73
  76. package/build/static/js/2.dc8813c6.chunk.js.map +0 -1
  77. package/build/static/js/main.551c1431.chunk.js +0 -2
  78. package/build/static/js/main.551c1431.chunk.js.map +0 -1
  79. package/build/static/js/runtime-main.de043f5c.js +0 -2
  80. package/build/static/js/runtime-main.de043f5c.js.map +0 -1
@@ -1,3 +0,0 @@
1
- /*! For license information please see 2.dc8813c6.chunk.js.LICENSE.txt */
2
- (this["webpackJsonp@deephaven/embed-chart"]=this["webpackJsonp@deephaven/embed-chart"]||[]).push([[2],[function(e,t,r){"use strict";var n=r(7),a=r(107).utcFormat,i=r(349).format,o=r(9),l=r(19),s=l.FP_SAFE,c=-s,u=l.BADNUM,f=e.exports={};f.adjustFormat=function(e){return!e||/^\d[.]\df/.test(e)||/[.]\d%/.test(e)?e:"0.f"===e?"~f":/^\d%/.test(e)?"~%":/^\ds/.test(e)?"~s":!/^[~,.0$]/.test(e)&&/[&fps]/.test(e)?"~"+e:e};var d={};f.warnBadFormat=function(e){var t=String(e);d[t]||(d[t]=1,f.warn('encountered bad format: "'+t+'"'))},f.noFormat=function(e){return String(e)},f.numberFormat=function(e){var t;try{t=i(f.adjustFormat(e))}catch(r){return f.warnBadFormat(e),f.noFormat}return t},f.nestedProperty=r(157),f.keyedContainer=r(477),f.relativeAttr=r(478),f.isPlainObject=r(88),f.toLogRange=r(158),f.relinkPrivateKeys=r(479);var p=r(65);f.isTypedArray=p.isTypedArray,f.isArrayOrTypedArray=p.isArrayOrTypedArray,f.isArray1D=p.isArray1D,f.ensureArray=p.ensureArray,f.concat=p.concat,f.maxRowLength=p.maxRowLength,f.minRowLength=p.minRowLength;var h=r(89);f.mod=h.mod,f.modHalf=h.modHalf;var g=r(480);f.valObjectMeta=g.valObjectMeta,f.coerce=g.coerce,f.coerce2=g.coerce2,f.coerceFont=g.coerceFont,f.coercePattern=g.coercePattern,f.coerceHoverinfo=g.coerceHoverinfo,f.coerceSelectionMarkerOpacity=g.coerceSelectionMarkerOpacity,f.validate=g.validate;var v=r(481);f.dateTime2ms=v.dateTime2ms,f.isDateTime=v.isDateTime,f.ms2DateTime=v.ms2DateTime,f.ms2DateTimeLocal=v.ms2DateTimeLocal,f.cleanDate=v.cleanDate,f.isJSDate=v.isJSDate,f.formatDate=v.formatDate,f.incrementMonth=v.incrementMonth,f.dateTick0=v.dateTick0,f.dfltRange=v.dfltRange,f.findExactDates=v.findExactDates,f.MIN_MS=v.MIN_MS,f.MAX_MS=v.MAX_MS;var y=r(239);f.findBin=y.findBin,f.sorterAsc=y.sorterAsc,f.sorterDes=y.sorterDes,f.distinctVals=y.distinctVals,f.roundUp=y.roundUp,f.sort=y.sort,f.findIndexOfMin=y.findIndexOfMin,f.sortObjectKeys=r(163);var m=r(510);f.aggNums=m.aggNums,f.len=m.len,f.mean=m.mean,f.median=m.median,f.midRange=m.midRange,f.variance=m.variance,f.stdev=m.stdev,f.interp=m.interp;var b=r(161);f.init2dArray=b.init2dArray,f.transposeRagged=b.transposeRagged,f.dot=b.dot,f.translationMatrix=b.translationMatrix,f.rotationMatrix=b.rotationMatrix,f.rotationXYMatrix=b.rotationXYMatrix,f.apply3DTransform=b.apply3DTransform,f.apply2DTransform=b.apply2DTransform,f.apply2DTransform2=b.apply2DTransform2,f.convertCssMatrix=b.convertCssMatrix,f.inverseTransformMatrix=b.inverseTransformMatrix;var x=r(511);f.deg2rad=x.deg2rad,f.rad2deg=x.rad2deg,f.angleDelta=x.angleDelta,f.angleDist=x.angleDist,f.isFullCircle=x.isFullCircle,f.isAngleInsideSector=x.isAngleInsideSector,f.isPtInsideSector=x.isPtInsideSector,f.pathArc=x.pathArc,f.pathSector=x.pathSector,f.pathAnnulus=x.pathAnnulus;var w=r(512);f.isLeftAnchor=w.isLeftAnchor,f.isCenterAnchor=w.isCenterAnchor,f.isRightAnchor=w.isRightAnchor,f.isTopAnchor=w.isTopAnchor,f.isMiddleAnchor=w.isMiddleAnchor,f.isBottomAnchor=w.isBottomAnchor;var _=r(513);f.segmentsIntersect=_.segmentsIntersect,f.segmentDistance=_.segmentDistance,f.getTextLocation=_.getTextLocation,f.clearLocationCache=_.clearLocationCache,f.getVisibleSegment=_.getVisibleSegment,f.findPointOnPath=_.findPointOnPath;var k=r(22);f.extendFlat=k.extendFlat,f.extendDeep=k.extendDeep,f.extendDeepAll=k.extendDeepAll,f.extendDeepNoArrays=k.extendDeepNoArrays;var T=r(72);f.log=T.log,f.warn=T.warn,f.error=T.error;var A=r(92);f.counterRegex=A.counter;var S=r(164);f.throttle=S.throttle,f.throttleDone=S.done,f.clearThrottle=S.clear;var M=r(160);function O(e){var t={};for(var r in e)for(var n=e[r],a=0;a<n.length;a++)t[n[a]]=+r;return t}f.getGraphDiv=M.getGraphDiv,f.isPlotDiv=M.isPlotDiv,f.removeElement=M.removeElement,f.addStyleRule=M.addStyleRule,f.addRelatedStyleRule=M.addRelatedStyleRule,f.deleteRelatedStyleRule=M.deleteRelatedStyleRule,f.getFullTransformMatrix=M.getFullTransformMatrix,f.getElementTransformMatrix=M.getElementTransformMatrix,f.getElementAndAncestors=M.getElementAndAncestors,f.equalDomRects=M.equalDomRects,f.clearResponsive=r(514),f.preserveDrawingBuffer=r(515),f.makeTraceGroups=r(517),f._=r(518),f.notifier=r(234),f.filterUnique=r(519),f.filterVisible=r(520),f.pushUnique=r(235),f.increment=r(521),f.cleanNumber=r(522),f.ensureNumber=function(e){return o(e)?(e=Number(e))>s||e<c?u:e:u},f.isIndex=function(e,t){return!(void 0!==t&&e>=t)&&(o(e)&&e>=0&&e%1===0)},f.noop=r(159),f.identity=r(240),f.repeat=function(e,t){for(var r=new Array(t),n=0;n<t;n++)r[n]=e;return r},f.swapAttrs=function(e,t,r,n){r||(r="x"),n||(n="y");for(var a=0;a<t.length;a++){var i=t[a],o=f.nestedProperty(e,i.replace("?",r)),l=f.nestedProperty(e,i.replace("?",n)),s=o.get();o.set(l.get()),l.set(s)}},f.raiseToTop=function(e){e.parentNode.appendChild(e)},f.cancelTransition=function(e){return e.transition().duration(0)},f.constrain=function(e,t,r){return t>r?Math.max(r,Math.min(t,e)):Math.max(t,Math.min(r,e))},f.bBoxIntersect=function(e,t,r){return r=r||0,e.left<=t.right+r&&t.left<=e.right+r&&e.top<=t.bottom+r&&t.top<=e.bottom+r},f.simpleMap=function(e,t,r,n,a){for(var i=e.length,o=new Array(i),l=0;l<i;l++)o[l]=t(e[l],r,n,a);return o},f.randstr=function e(t,r,n,a){if(n||(n=16),void 0===r&&(r=24),r<=0)return"0";var i,o,l=Math.log(Math.pow(2,r))/Math.log(n),s="";for(i=2;l===1/0;i*=2)l=Math.log(Math.pow(2,r/i))/Math.log(n)*i;var c=l-Math.floor(l);for(i=0;i<Math.floor(l);i++)s=Math.floor(Math.random()*n).toString(n)+s;c&&(o=Math.pow(n,c),s=Math.floor(Math.random()*o).toString(n)+s);var u=parseInt(s,n);return t&&t[s]||u!==1/0&&u>=Math.pow(2,r)?a>10?(f.warn("randstr failed uniqueness"),s):e(t,r,n,(a||0)+1):s},f.OptionControl=function(e,t){e||(e={}),t||(t="opt");var r={optionList:[],_newoption:function(n){n[t]=e,r[n.name]=n,r.optionList.push(n)}};return r["_"+t]=e,r},f.smooth=function(e,t){if((t=Math.round(t)||0)<2)return e;var r,n,a,i,o=e.length,l=2*o,s=2*t-1,c=new Array(s),u=new Array(o);for(r=0;r<s;r++)c[r]=(1-Math.cos(Math.PI*(r+1)/t))/(2*t);for(r=0;r<o;r++){for(i=0,n=0;n<s;n++)(a=r+n+1-t)<-o?a-=l*Math.round(a/l):a>=l&&(a-=l*Math.floor(a/l)),a<0?a=-1-a:a>=o&&(a=l-1-a),i+=e[a]*c[n];u[r]=i}return u},f.syncOrAsync=function(e,t,r){var n;function a(){return f.syncOrAsync(e,t,r)}for(;e.length;)if((n=(0,e.splice(0,1)[0])(t))&&n.then)return n.then(a);return r&&r(t)},f.stripTrailingSlash=function(e){return"/"===e.substr(-1)?e.substr(0,e.length-1):e},f.noneOrAll=function(e,t,r){if(e){var n,a,i=!1,o=!0;for(n=0;n<r.length;n++)void 0!==(a=e[r[n]])&&null!==a?i=!0:o=!1;if(i&&!o)for(n=0;n<r.length;n++)e[r[n]]=t[r[n]]}},f.mergeArray=function(e,t,r,n){var a="function"===typeof n;if(f.isArrayOrTypedArray(e))for(var i=Math.min(e.length,t.length),o=0;o<i;o++){var l=e[o];t[o][r]=a?n(l):l}},f.mergeArrayCastPositive=function(e,t,r){return f.mergeArray(e,t,r,(function(e){var t=+e;return isFinite(t)&&t>0?t:0}))},f.fillArray=function(e,t,r,n){if(n=n||f.identity,f.isArrayOrTypedArray(e))for(var a=0;a<t.length;a++)t[a][r]=n(e[a])},f.castOption=function(e,t,r,n){n=n||f.identity;var a=f.nestedProperty(e,r).get();return f.isArrayOrTypedArray(a)?Array.isArray(t)&&f.isArrayOrTypedArray(a[t[0]])?n(a[t[0]][t[1]]):n(a[t]):a},f.extractOption=function(e,t,r,n){if(r in e)return e[r];var a=f.nestedProperty(t,n).get();return Array.isArray(a)?void 0:a},f.tagSelected=function(e,t,r){var n,a,i=t.selectedpoints,o=t._indexToPoints;o&&(n=O(o));for(var l=0;l<i.length;l++){var s=i[l];if(f.isIndex(s)||f.isArrayOrTypedArray(s)&&f.isIndex(s[0])&&f.isIndex(s[1])){var c=n?n[s]:s,u=r?r[c]:c;void 0!==(a=u)&&a<e.length&&(e[u].selected=1)}}},f.selIndices2selPoints=function(e){var t=e.selectedpoints,r=e._indexToPoints;if(r){for(var n=O(r),a=[],i=0;i<t.length;i++){var o=t[i];if(f.isIndex(o)){var l=n[o];f.isIndex(l)&&a.push(l)}}return a}return t},f.getTargetArray=function(e,t){var r=t.target;if("string"===typeof r&&r){var n=f.nestedProperty(e,r).get();return!!Array.isArray(n)&&n}return!!Array.isArray(r)&&r},f.minExtend=function(e,t){var r={};"object"!==typeof t&&(t={});var n,a,i,o=Object.keys(e);for(n=0;n<o.length;n++)i=e[a=o[n]],"_"!==a.charAt(0)&&"function"!==typeof i&&("module"===a?r[a]=i:Array.isArray(i)?r[a]="colorscale"===a?i.slice():i.slice(0,3):f.isTypedArray(i)?r[a]=i.subarray(0,3):r[a]=i&&"object"===typeof i?f.minExtend(e[a],t[a]):i);for(o=Object.keys(t),n=0;n<o.length;n++)"object"===typeof(i=t[a=o[n]])&&a in r&&"object"===typeof r[a]||(r[a]=i);return r},f.titleCase=function(e){return e.charAt(0).toUpperCase()+e.substr(1)},f.containsAny=function(e,t){for(var r=0;r<t.length;r++)if(-1!==e.indexOf(t[r]))return!0;return!1},f.isIE=function(){return"undefined"!==typeof window.navigator.msSaveBlob};var C=/Version\/[\d\.]+.*Safari/;f.isSafari=function(){return C.test(window.navigator.userAgent)};var E=/iPad|iPhone|iPod/;f.isIOS=function(){return E.test(window.navigator.userAgent)};var L=/Firefox\/(\d+)\.\d+/;f.getFirefoxVersion=function(){var e=L.exec(window.navigator.userAgent);if(e&&2===e.length){var t=parseInt(e[1]);if(!isNaN(t))return t}return null},f.isD3Selection=function(e){return e instanceof n.selection},f.ensureSingle=function(e,t,r,n){var a=e.select(t+(r?"."+r:""));if(a.size())return a;var i=e.append(t);return r&&i.classed(r,!0),n&&i.call(n),i},f.ensureSingleById=function(e,t,r,n){var a=e.select(t+"#"+r);if(a.size())return a;var i=e.append(t).attr("id",r);return n&&i.call(n),i},f.objectFromPath=function(e,t){for(var r,n=e.split("."),a=r={},i=0;i<n.length;i++){var o=n[i],l=null,s=n[i].match(/(.*)\[([0-9]+)\]/);s?(o=s[1],l=s[2],r=r[o]=[],i===n.length-1?r[l]=t:r[l]={},r=r[l]):(i===n.length-1?r[o]=t:r[o]={},r=r[o])}return a};var P=/^([^\[\.]+)\.(.+)?/,j=/^([^\.]+)\[([0-9]+)\](\.)?(.+)?/;f.expandObjectPaths=function(e){var t,r,n,a,i,o,l;if("object"===typeof e&&!Array.isArray(e))for(r in e)e.hasOwnProperty(r)&&((t=r.match(P))?(a=e[r],n=t[1],delete e[r],e[n]=f.extendDeepNoArrays(e[n]||{},f.objectFromPath(r,f.expandObjectPaths(a))[n])):(t=r.match(j))?(a=e[r],n=t[1],i=parseInt(t[2]),delete e[r],e[n]=e[n]||[],"."===t[3]?(l=t[4],o=e[n][i]=e[n][i]||{},f.extendDeepNoArrays(o,f.objectFromPath(l,f.expandObjectPaths(a)))):e[n][i]=f.expandObjectPaths(a)):e[r]=f.expandObjectPaths(e[r]));return e},f.numSeparate=function(e,t,r){if(r||(r=!1),"string"!==typeof t||0===t.length)throw new Error("Separator string required for formatting!");"number"===typeof e&&(e=String(e));var n=/(\d+)(\d{3})/,a=t.charAt(0),i=t.charAt(1),o=e.split("."),l=o[0],s=o.length>1?a+o[1]:"";if(i&&(o.length>1||l.length>4||r))for(;n.test(l);)l=l.replace(n,"$1"+i+"$2");return l+s},f.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var z=/^\w*$/;f.templateString=function(e,t){var r={};return e.replace(f.TEMPLATE_STRING_REGEX,(function(e,n){var a;return z.test(n)?a=t[n]:(r[n]=r[n]||f.nestedProperty(t,n).get,a=r[n]()),f.isValidTextValue(a)?a:""}))};var D={max:10,count:0,name:"hovertemplate"};f.hovertemplateString=function(){return R.apply(D,arguments)};var I={max:10,count:0,name:"texttemplate"};f.texttemplateString=function(){return R.apply(I,arguments)};var N=/^[:|\|]/;function R(e,t,r){var n=this,i=arguments;t||(t={});var o={};return e.replace(f.TEMPLATE_STRING_REGEX,(function(e,l,s){var c,u,d,p="_xother"===l||"_yother"===l,h="_xother_"===l||"_yother_"===l,g="xother_"===l||"yother_"===l,v="xother"===l||"yother"===l||p||g||h,y=l;if((p||h)&&(y=y.substring(1)),(g||h)&&(y=y.substring(0,y.length-1)),v){if(void 0===(c=t[y]))return""}else for(d=3;d<i.length;d++)if(u=i[d]){if(u.hasOwnProperty(y)){c=u[y];break}if(z.test(y)||(c=f.nestedProperty(u,y).get(),(c=o[y]||f.nestedProperty(u,y).get())&&(o[y]=c)),void 0!==c)break}if(void 0===c&&n)return n.count<n.max&&(f.warn("Variable '"+y+"' in "+n.name+" could not be found!"),c=e),n.count===n.max&&f.warn("Too many "+n.name+" warnings - additional warnings will be suppressed"),n.count++,e;if(s){var m;if(":"===s[0]&&(c=(m=r?r.numberFormat:f.numberFormat)(s.replace(N,""))(c)),"|"===s[0]){m=r?r.timeFormat:a;var b=f.dateTime2ms(c);c=f.formatDate(b,s.replace(N,""),!1,m)}}else{var x=y+"Label";t.hasOwnProperty(x)&&(c=t[x])}return v&&(c="("+c+")",(p||h)&&(c=" "+c),(g||h)&&(c+=" ")),c}))}f.subplotSort=function(e,t){for(var r=Math.min(e.length,t.length)+1,n=0,a=0,i=0;i<r;i++){var o=e.charCodeAt(i)||0,l=t.charCodeAt(i)||0,s=o>=48&&o<=57,c=l>=48&&l<=57;if(s&&(n=10*n+o-48),c&&(a=10*a+l-48),!s||!c){if(n!==a)return n-a;if(o!==l)return o-l}}return a-n};var F=2e9;f.seedPseudoRandom=function(){F=2e9},f.pseudoRandom=function(){var e=F;return F=(69069*F+1)%4294967296,Math.abs(F-e)<429496729?f.pseudoRandom():F/4294967296},f.fillText=function(e,t,r){var n=Array.isArray(r)?function(e){r.push(e)}:function(e){r.text=e},a=f.extractOption(e,t,"htx","hovertext");if(f.isValidTextValue(a))return n(a);var i=f.extractOption(e,t,"tx","text");return f.isValidTextValue(i)?n(i):void 0},f.isValidTextValue=function(e){return e||0===e},f.formatPercent=function(e,t){t=t||0;for(var r=(Math.round(100*e*Math.pow(10,t))*Math.pow(.1,t)).toFixed(t)+"%",n=0;n<t;n++)-1!==r.indexOf(".")&&(r=(r=r.replace("0%","%")).replace(".%","%"));return r},f.isHidden=function(e){var t=window.getComputedStyle(e).display;return!t||"none"===t},f.strTranslate=function(e,t){return e||t?"translate("+e+","+t+")":""},f.strRotate=function(e){return e?"rotate("+e+")":""},f.strScale=function(e){return 1!==e?"scale("+e+")":""},f.getTextTransform=function(e){var t=e.noCenter,r=e.textX,n=e.textY,a=e.targetX,i=e.targetY,o=e.anchorX||0,l=e.anchorY||0,s=e.rotate,c=e.scale;return c?c>1&&(c=1):c=0,f.strTranslate(a-c*(r+o),i-c*(n+l))+f.strScale(c)+(s?"rotate("+s+(t?"":" "+r+" "+n)+")":"")},f.ensureUniformFontSize=function(e,t){var r=f.extendFlat({},t);return r.size=Math.max(t.size,e._fullLayout.uniformtext.minsize||0),r},f.join2=function(e,t,r){var n=e.length;return n>1?e.slice(0,-1).join(t)+r+e[n-1]:e.join(t)},f.bigFont=function(e){return Math.round(1.2*e)};var B=f.getFirefoxVersion(),U=null!==B&&B<86;f.getPositionFromD3Event=function(){return U?[n.event.layerX,n.event.layerY]:[n.event.offsetX,n.event.offsetY]}},function(e,t,r){e.exports=r(371)()},function(e,t,r){"use strict";function n(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}r.d(t,"a",(function(){return n}))},function(e,t,r){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}r.d(t,"a",(function(){return n}))},function(e,t,r){"use strict";function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function a(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}r.d(t,"a",(function(){return a}))},function(e,t,r){"use strict";var n=r(72),a=r(159),i=r(235),o=r(88),l=r(160).addStyleRule,s=r(22),c=r(44),u=r(93),f=s.extendFlat,d=s.extendDeepAll;function p(e){var r=e.name,a=e.categories,i=e.meta;if(t.modules[r])n.log("Type "+r+" already registered");else{t.subplotsRegistry[e.basePlotModule.name]||function(e){var r=e.name;if(t.subplotsRegistry[r])return void n.log("Plot type "+r+" already registered.");for(var a in y(e),t.subplotsRegistry[r]=e,t.componentsRegistry)x(a,e.name)}(e.basePlotModule);for(var o={},s=0;s<a.length;s++)o[a[s]]=!0,t.allCategories[a[s]]=!0;for(var c in t.modules[r]={_module:e,categories:o},i&&Object.keys(i).length&&(t.modules[r].meta=i),t.allTypes.push(r),t.componentsRegistry)m(c,r);e.layoutAttributes&&f(t.traceLayoutAttributes,e.layoutAttributes);var u=e.basePlotModule,d=u.name;if("mapbox"===d){var p=u.constants.styleRules;for(var h in p)l(".js-plotly-plot .plotly .mapboxgl-"+h,p[h])}"geo"!==d&&"mapbox"!==d||void 0===typeof window||void 0!==window.PlotlyGeoAssets||(window.PlotlyGeoAssets={topojson:{}})}}function h(e){if("string"!==typeof e.name)throw new Error("Component module *name* must be a string.");var r=e.name;for(var n in t.componentsRegistry[r]=e,e.layoutAttributes&&(e.layoutAttributes._isLinkedToArray&&i(t.layoutArrayContainers,r),y(e)),t.modules)m(r,n);for(var a in t.subplotsRegistry)x(r,a);for(var o in t.transformsRegistry)b(r,o);e.schema&&e.schema.layout&&d(u,e.schema.layout)}function g(e){if("string"!==typeof e.name)throw new Error("Transform module *name* must be a string.");var r="Transform module "+e.name,a="function"===typeof e.transform,i="function"===typeof e.calcTransform;if(!a&&!i)throw new Error(r+" is missing a *transform* or *calcTransform* method.");for(var l in a&&i&&n.log([r+" has both a *transform* and *calcTransform* methods.","Please note that all *transform* methods are executed","before all *calcTransform* methods."].join(" ")),o(e.attributes)||n.log(r+" registered without an *attributes* object."),"function"!==typeof e.supplyDefaults&&n.log(r+" registered without a *supplyDefaults* method."),t.transformsRegistry[e.name]=e,t.componentsRegistry)b(l,e.name)}function v(e){var r=e.name,n=r.split("-")[0],a=e.dictionary,i=e.format,o=a&&Object.keys(a).length,l=i&&Object.keys(i).length,s=t.localeRegistry,c=s[r];if(c||(s[r]=c={}),n!==r){var u=s[n];u||(s[n]=u={}),o&&u.dictionary===c.dictionary&&(u.dictionary=a),l&&u.format===c.format&&(u.format=i)}o&&(c.dictionary=a),l&&(c.format=i)}function y(e){if(e.layoutAttributes){var r=e.layoutAttributes._arrayAttrRegexps;if(r)for(var n=0;n<r.length;n++)i(t.layoutArrayRegexes,r[n])}}function m(e,r){var n=t.componentsRegistry[e].schema;if(n&&n.traces){var a=n.traces[r];a&&d(t.modules[r]._module.attributes,a)}}function b(e,r){var n=t.componentsRegistry[e].schema;if(n&&n.transforms){var a=n.transforms[r];a&&d(t.transformsRegistry[r].attributes,a)}}function x(e,r){var n=t.componentsRegistry[e].schema;if(n&&n.subplots){var a=t.subplotsRegistry[r],i=a.layoutAttributes,o="subplot"===a.attr?a.name:a.attr;Array.isArray(o)&&(o=o[0]);var l=n.subplots[o];i&&l&&d(i,l)}}function w(e){return"object"===typeof e&&(e=e.type),e}t.modules={},t.allCategories={},t.allTypes=[],t.subplotsRegistry={},t.transformsRegistry={},t.componentsRegistry={},t.layoutArrayContainers=[],t.layoutArrayRegexes=[],t.traceLayoutAttributes={},t.localeRegistry={},t.apiMethodRegistry={},t.collectableSubplotTypes=null,t.register=function(e){if(t.collectableSubplotTypes=null,!e)throw new Error("No argument passed to Plotly.register.");e&&!Array.isArray(e)&&(e=[e]);for(var r=0;r<e.length;r++){var n=e[r];if(!n)throw new Error("Invalid module was attempted to be registered!");switch(n.moduleType){case"trace":p(n);break;case"transform":g(n);break;case"component":h(n);break;case"locale":v(n);break;case"apiMethod":var a=n.name;t.apiMethodRegistry[a]=n.fn;break;default:throw new Error("Invalid module was attempted to be registered!")}}},t.getModule=function(e){var r=t.modules[w(e)];return!!r&&r._module},t.traceIs=function(e,r){if("various"===(e=w(e)))return!1;var a=t.modules[e];return a||(e&&n.log("Unrecognized trace type "+e+"."),a=t.modules[c.type.dflt]),!!a.categories[r]},t.getTransformIndices=function(e,t){for(var r=[],n=e.transforms||[],a=0;a<n.length;a++)n[a].type===t&&r.push(a);return r},t.hasTransform=function(e,t){for(var r=e.transforms||[],n=0;n<r.length;n++)if(r[n].type===t)return!0;return!1},t.getComponentMethod=function(e,r){var n=t.componentsRegistry[e];return n&&n[r]||a},t.call=function(){var e=arguments[0],r=[].slice.call(arguments,1);return t.apiMethodRegistry[e].apply(null,r)}},function(e,t,r){"use strict";e.exports=r(363)},function(e,t,r){var n,a;(function(){var i={version:"3.8.0"},o=[].slice,l=function(e){return o.call(e)},s=self.document;function c(e){return e&&(e.ownerDocument||e.document||e).documentElement}function u(e){return e&&(e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView)}if(s)try{l(s.documentElement.childNodes)[0].nodeType}catch(mi){l=function(e){for(var t=e.length,r=new Array(t);t--;)r[t]=e[t];return r}}if(Date.now||(Date.now=function(){return+new Date}),s)try{s.createElement("DIV").style.setProperty("opacity",0,"")}catch(bi){var f=this.Element.prototype,d=f.setAttribute,p=f.setAttributeNS,h=this.CSSStyleDeclaration.prototype,g=h.setProperty;f.setAttribute=function(e,t){d.call(this,e,t+"")},f.setAttributeNS=function(e,t,r){p.call(this,e,t,r+"")},h.setProperty=function(e,t,r){g.call(this,e,t+"",r)}}function v(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function y(e){return null===e?NaN:+e}function m(e){return!isNaN(e)}function b(e){return{left:function(t,r,n,a){for(arguments.length<3&&(n=0),arguments.length<4&&(a=t.length);n<a;){var i=n+a>>>1;e(t[i],r)<0?n=i+1:a=i}return n},right:function(t,r,n,a){for(arguments.length<3&&(n=0),arguments.length<4&&(a=t.length);n<a;){var i=n+a>>>1;e(t[i],r)>0?a=i:n=i+1}return n}}}i.ascending=v,i.descending=function(e,t){return t<e?-1:t>e?1:t>=e?0:NaN},i.min=function(e,t){var r,n,a=-1,i=e.length;if(1===arguments.length){for(;++a<i;)if(null!=(n=e[a])&&n>=n){r=n;break}for(;++a<i;)null!=(n=e[a])&&r>n&&(r=n)}else{for(;++a<i;)if(null!=(n=t.call(e,e[a],a))&&n>=n){r=n;break}for(;++a<i;)null!=(n=t.call(e,e[a],a))&&r>n&&(r=n)}return r},i.max=function(e,t){var r,n,a=-1,i=e.length;if(1===arguments.length){for(;++a<i;)if(null!=(n=e[a])&&n>=n){r=n;break}for(;++a<i;)null!=(n=e[a])&&n>r&&(r=n)}else{for(;++a<i;)if(null!=(n=t.call(e,e[a],a))&&n>=n){r=n;break}for(;++a<i;)null!=(n=t.call(e,e[a],a))&&n>r&&(r=n)}return r},i.extent=function(e,t){var r,n,a,i=-1,o=e.length;if(1===arguments.length){for(;++i<o;)if(null!=(n=e[i])&&n>=n){r=a=n;break}for(;++i<o;)null!=(n=e[i])&&(r>n&&(r=n),a<n&&(a=n))}else{for(;++i<o;)if(null!=(n=t.call(e,e[i],i))&&n>=n){r=a=n;break}for(;++i<o;)null!=(n=t.call(e,e[i],i))&&(r>n&&(r=n),a<n&&(a=n))}return[r,a]},i.sum=function(e,t){var r,n=0,a=e.length,i=-1;if(1===arguments.length)for(;++i<a;)m(r=+e[i])&&(n+=r);else for(;++i<a;)m(r=+t.call(e,e[i],i))&&(n+=r);return n},i.mean=function(e,t){var r,n=0,a=e.length,i=-1,o=a;if(1===arguments.length)for(;++i<a;)m(r=y(e[i]))?n+=r:--o;else for(;++i<a;)m(r=y(t.call(e,e[i],i)))?n+=r:--o;if(o)return n/o},i.quantile=function(e,t){var r=(e.length-1)*t+1,n=Math.floor(r),a=+e[n-1],i=r-n;return i?a+i*(e[n]-a):a},i.median=function(e,t){var r,n=[],a=e.length,o=-1;if(1===arguments.length)for(;++o<a;)m(r=y(e[o]))&&n.push(r);else for(;++o<a;)m(r=y(t.call(e,e[o],o)))&&n.push(r);if(n.length)return i.quantile(n.sort(v),.5)},i.variance=function(e,t){var r,n,a=e.length,i=0,o=0,l=-1,s=0;if(1===arguments.length)for(;++l<a;)m(r=y(e[l]))&&(o+=(n=r-i)*(r-(i+=n/++s)));else for(;++l<a;)m(r=y(t.call(e,e[l],l)))&&(o+=(n=r-i)*(r-(i+=n/++s)));if(s>1)return o/(s-1)},i.deviation=function(){var e=i.variance.apply(this,arguments);return e?Math.sqrt(e):e};var x=b(v);function w(e){return e.length}i.bisectLeft=x.left,i.bisect=i.bisectRight=x.right,i.bisector=function(e){return b(1===e.length?function(t,r){return v(e(t),r)}:e)},i.shuffle=function(e,t,r){(i=arguments.length)<3&&(r=e.length,i<2&&(t=0));for(var n,a,i=r-t;i;)a=Math.random()*i--|0,n=e[i+t],e[i+t]=e[a+t],e[a+t]=n;return e},i.permute=function(e,t){for(var r=t.length,n=new Array(r);r--;)n[r]=e[t[r]];return n},i.pairs=function(e){for(var t=0,r=e.length-1,n=e[0],a=new Array(r<0?0:r);t<r;)a[t]=[n,n=e[++t]];return a},i.transpose=function(e){if(!(a=e.length))return[];for(var t=-1,r=i.min(e,w),n=new Array(r);++t<r;)for(var a,o=-1,l=n[t]=new Array(a);++o<a;)l[o]=e[o][t];return n},i.zip=function(){return i.transpose(arguments)},i.keys=function(e){var t=[];for(var r in e)t.push(r);return t},i.values=function(e){var t=[];for(var r in e)t.push(e[r]);return t},i.entries=function(e){var t=[];for(var r in e)t.push({key:r,value:e[r]});return t},i.merge=function(e){for(var t,r,n,a=e.length,i=-1,o=0;++i<a;)o+=e[i].length;for(r=new Array(o);--a>=0;)for(t=(n=e[a]).length;--t>=0;)r[--o]=n[t];return r};var _=Math.abs;function k(e){for(var t=1;e*t%1;)t*=10;return t}function T(e,t){for(var r in t)Object.defineProperty(e.prototype,r,{value:t[r],enumerable:!1})}function A(){this._=Object.create(null)}i.range=function(e,t,r){if(arguments.length<3&&(r=1,arguments.length<2&&(t=e,e=0)),(t-e)/r===1/0)throw new Error("infinite range");var n,a=[],i=k(_(r)),o=-1;if(e*=i,t*=i,(r*=i)<0)for(;(n=e+r*++o)>t;)a.push(n/i);else for(;(n=e+r*++o)<t;)a.push(n/i);return a},i.map=function(e,t){var r=new A;if(e instanceof A)e.forEach((function(e,t){r.set(e,t)}));else if(Array.isArray(e)){var n,a=-1,i=e.length;if(1===arguments.length)for(;++a<i;)r.set(a,e[a]);else for(;++a<i;)r.set(t.call(e,n=e[a],a),n)}else for(var o in e)r.set(o,e[o]);return r};function S(e){return"__proto__"===(e+="")||"\0"===e[0]?"\0"+e:e}function M(e){return"\0"===(e+="")[0]?e.slice(1):e}function O(e){return S(e)in this._}function C(e){return(e=S(e))in this._&&delete this._[e]}function E(){var e=[];for(var t in this._)e.push(M(t));return e}function L(){var e=0;for(var t in this._)++e;return e}function P(){for(var e in this._)return!1;return!0}function j(){this._=Object.create(null)}function z(e){return e}function D(e,t,r){return function(){var n=r.apply(t,arguments);return n===t?e:n}}function I(e,t){if(t in e)return t;t=t.charAt(0).toUpperCase()+t.slice(1);for(var r=0,n=N.length;r<n;++r){var a=N[r]+t;if(a in e)return a}}T(A,{has:O,get:function(e){return this._[S(e)]},set:function(e,t){return this._[S(e)]=t},remove:C,keys:E,values:function(){var e=[];for(var t in this._)e.push(this._[t]);return e},entries:function(){var e=[];for(var t in this._)e.push({key:M(t),value:this._[t]});return e},size:L,empty:P,forEach:function(e){for(var t in this._)e.call(this,M(t),this._[t])}}),i.nest=function(){var e,t,r={},n=[],a=[];function o(a,i,l){if(l>=n.length)return t?t.call(r,i):e?i.sort(e):i;for(var s,c,u,f,d=-1,p=i.length,h=n[l++],g=new A;++d<p;)(f=g.get(s=h(c=i[d])))?f.push(c):g.set(s,[c]);return a?(c=a(),u=function(e,t){c.set(e,o(a,t,l))}):(c={},u=function(e,t){c[e]=o(a,t,l)}),g.forEach(u),c}function l(e,t){if(t>=n.length)return e;var r=[],i=a[t++];return e.forEach((function(e,n){r.push({key:e,values:l(n,t)})})),i?r.sort((function(e,t){return i(e.key,t.key)})):r}return r.map=function(e,t){return o(t,e,0)},r.entries=function(e){return l(o(i.map,e,0),0)},r.key=function(e){return n.push(e),r},r.sortKeys=function(e){return a[n.length-1]=e,r},r.sortValues=function(t){return e=t,r},r.rollup=function(e){return t=e,r},r},i.set=function(e){var t=new j;if(e)for(var r=0,n=e.length;r<n;++r)t.add(e[r]);return t},T(j,{has:O,add:function(e){return this._[S(e+="")]=!0,e},remove:C,values:E,size:L,empty:P,forEach:function(e){for(var t in this._)e.call(this,M(t))}}),i.behavior={},i.rebind=function(e,t){for(var r,n=1,a=arguments.length;++n<a;)e[r=arguments[n]]=D(e,t,t[r]);return e};var N=["webkit","ms","moz","Moz","o","O"];function R(){}function F(){}function B(e){var t=[],r=new A;function n(){for(var r,n=t,a=-1,i=n.length;++a<i;)(r=n[a].on)&&r.apply(this,arguments);return e}return n.on=function(n,a){var i,o=r.get(n);return arguments.length<2?o&&o.on:(o&&(o.on=null,t=t.slice(0,i=t.indexOf(o)).concat(t.slice(i+1)),r.remove(n)),a&&t.push(r.set(n,{on:a})),e)},n}function U(){i.event.preventDefault()}function H(){for(var e,t=i.event;e=t.sourceEvent;)t=e;return t}function V(e){for(var t=new F,r=0,n=arguments.length;++r<n;)t[arguments[r]]=B(t);return t.of=function(r,n){return function(a){try{var o=a.sourceEvent=i.event;a.target=e,i.event=a,t[a.type].apply(r,n)}finally{i.event=o}}},t}i.dispatch=function(){for(var e=new F,t=-1,r=arguments.length;++t<r;)e[arguments[t]]=B(e);return e},F.prototype.on=function(e,t){var r=e.indexOf("."),n="";if(r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),e)return arguments.length<2?this[e].on(n):this[e].on(n,t);if(2===arguments.length){if(null==t)for(e in this)this.hasOwnProperty(e)&&this[e].on(n,null);return this}},i.event=null,i.requote=function(e){return e.replace(q,"\\$&")};var q=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,W={}.__proto__?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)e[r]=t[r]};function Y(e){return W(e,$),e}var G=function(e,t){return t.querySelector(e)},X=function(e,t){return t.querySelectorAll(e)},Z=function(e,t){var r=e.matches||e[I(e,"matchesSelector")];return Z=function(e,t){return r.call(e,t)},Z(e,t)};"function"===typeof Sizzle&&(G=function(e,t){return Sizzle(e,t)[0]||null},X=Sizzle,Z=Sizzle.matchesSelector),i.selection=function(){return i.select(s.documentElement)};var $=i.selection.prototype=[];function Q(e){return"function"===typeof e?e:function(){return G(e,this)}}function K(e){return"function"===typeof e?e:function(){return X(e,this)}}$.select=function(e){var t,r,n,a,i=[];e=Q(e);for(var o=-1,l=this.length;++o<l;){i.push(t=[]),t.parentNode=(n=this[o]).parentNode;for(var s=-1,c=n.length;++s<c;)(a=n[s])?(t.push(r=e.call(a,a.__data__,s,o)),r&&"__data__"in a&&(r.__data__=a.__data__)):t.push(null)}return Y(i)},$.selectAll=function(e){var t,r,n=[];e=K(e);for(var a=-1,i=this.length;++a<i;)for(var o=this[a],s=-1,c=o.length;++s<c;)(r=o[s])&&(n.push(t=l(e.call(r,r.__data__,s,a))),t.parentNode=r);return Y(n)};var J="http://www.w3.org/1999/xhtml",ee={svg:"http://www.w3.org/2000/svg",xhtml:J,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function te(e,t){return e=i.ns.qualify(e),null==t?e.local?function(){this.removeAttributeNS(e.space,e.local)}:function(){this.removeAttribute(e)}:"function"===typeof t?e.local?function(){var r=t.apply(this,arguments);null==r?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,r)}:function(){var r=t.apply(this,arguments);null==r?this.removeAttribute(e):this.setAttribute(e,r)}:e.local?function(){this.setAttributeNS(e.space,e.local,t)}:function(){this.setAttribute(e,t)}}function re(e){return e.trim().replace(/\s+/g," ")}function ne(e){return new RegExp("(?:^|\\s+)"+i.requote(e)+"(?:\\s+|$)","g")}function ae(e){return(e+"").trim().split(/^|\s+/)}function ie(e,t){var r=(e=ae(e).map(oe)).length;return"function"===typeof t?function(){for(var n=-1,a=t.apply(this,arguments);++n<r;)e[n](this,a)}:function(){for(var n=-1;++n<r;)e[n](this,t)}}function oe(e){var t=ne(e);return function(r,n){if(a=r.classList)return n?a.add(e):a.remove(e);var a=r.getAttribute("class")||"";n?(t.lastIndex=0,t.test(a)||r.setAttribute("class",re(a+" "+e))):r.setAttribute("class",re(a.replace(t," ")))}}function le(e,t,r){return null==t?function(){this.style.removeProperty(e)}:"function"===typeof t?function(){var n=t.apply(this,arguments);null==n?this.style.removeProperty(e):this.style.setProperty(e,n,r)}:function(){this.style.setProperty(e,t,r)}}function se(e,t){return null==t?function(){delete this[e]}:"function"===typeof t?function(){var r=t.apply(this,arguments);null==r?delete this[e]:this[e]=r}:function(){this[e]=t}}function ce(e){return"function"===typeof e?e:(e=i.ns.qualify(e)).local?function(){return this.ownerDocument.createElementNS(e.space,e.local)}:function(){var t=this.ownerDocument,r=this.namespaceURI;return r===J&&t.documentElement.namespaceURI===J?t.createElement(e):t.createElementNS(r,e)}}function ue(){var e=this.parentNode;e&&e.removeChild(this)}function fe(e){return{__data__:e}}function de(e){return function(){return Z(this,e)}}function pe(e){return arguments.length||(e=v),function(t,r){return t&&r?e(t.__data__,r.__data__):!t-!r}}function he(e,t){for(var r=0,n=e.length;r<n;r++)for(var a,i=e[r],o=0,l=i.length;o<l;o++)(a=i[o])&&t(a,o,r);return e}function ge(e){return W(e,ve),e}i.ns={prefix:ee,qualify:function(e){var t=e.indexOf(":"),r=e;return t>=0&&"xmlns"!==(r=e.slice(0,t))&&(e=e.slice(t+1)),ee.hasOwnProperty(r)?{space:ee[r],local:e}:e}},$.attr=function(e,t){if(arguments.length<2){if("string"===typeof e){var r=this.node();return(e=i.ns.qualify(e)).local?r.getAttributeNS(e.space,e.local):r.getAttribute(e)}for(t in e)this.each(te(t,e[t]));return this}return this.each(te(e,t))},$.classed=function(e,t){if(arguments.length<2){if("string"===typeof e){var r=this.node(),n=(e=ae(e)).length,a=-1;if(t=r.classList){for(;++a<n;)if(!t.contains(e[a]))return!1}else for(t=r.getAttribute("class");++a<n;)if(!ne(e[a]).test(t))return!1;return!0}for(t in e)this.each(ie(t,e[t]));return this}return this.each(ie(e,t))},$.style=function(e,t,r){var n=arguments.length;if(n<3){if("string"!==typeof e){for(r in n<2&&(t=""),e)this.each(le(r,e[r],t));return this}if(n<2){var a=this.node();return u(a).getComputedStyle(a,null).getPropertyValue(e)}r=""}return this.each(le(e,t,r))},$.property=function(e,t){if(arguments.length<2){if("string"===typeof e)return this.node()[e];for(t in e)this.each(se(t,e[t]));return this}return this.each(se(e,t))},$.text=function(e){return arguments.length?this.each("function"===typeof e?function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}:null==e?function(){this.textContent=""}:function(){this.textContent=e}):this.node().textContent},$.html=function(e){return arguments.length?this.each("function"===typeof e?function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}:null==e?function(){this.innerHTML=""}:function(){this.innerHTML=e}):this.node().innerHTML},$.append=function(e){return e=ce(e),this.select((function(){return this.appendChild(e.apply(this,arguments))}))},$.insert=function(e,t){return e=ce(e),t=Q(t),this.select((function(){return this.insertBefore(e.apply(this,arguments),t.apply(this,arguments)||null)}))},$.remove=function(){return this.each(ue)},$.data=function(e,t){var r,n,a=-1,i=this.length;if(!arguments.length){for(e=new Array(i=(r=this[0]).length);++a<i;)(n=r[a])&&(e[a]=n.__data__);return e}function o(e,r){var n,a,i,o=e.length,u=r.length,f=Math.min(o,u),d=new Array(u),p=new Array(u),h=new Array(o);if(t){var g,v=new A,y=new Array(o);for(n=-1;++n<o;)(a=e[n])&&(v.has(g=t.call(a,a.__data__,n))?h[n]=a:v.set(g,a),y[n]=g);for(n=-1;++n<u;)(a=v.get(g=t.call(r,i=r[n],n)))?!0!==a&&(d[n]=a,a.__data__=i):p[n]=fe(i),v.set(g,!0);for(n=-1;++n<o;)n in y&&!0!==v.get(y[n])&&(h[n]=e[n])}else{for(n=-1;++n<f;)a=e[n],i=r[n],a?(a.__data__=i,d[n]=a):p[n]=fe(i);for(;n<u;++n)p[n]=fe(r[n]);for(;n<o;++n)h[n]=e[n]}p.update=d,p.parentNode=d.parentNode=h.parentNode=e.parentNode,l.push(p),s.push(d),c.push(h)}var l=ge([]),s=Y([]),c=Y([]);if("function"===typeof e)for(;++a<i;)o(r=this[a],e.call(r,r.parentNode.__data__,a));else for(;++a<i;)o(r=this[a],e);return s.enter=function(){return l},s.exit=function(){return c},s},$.datum=function(e){return arguments.length?this.property("__data__",e):this.property("__data__")},$.filter=function(e){var t,r,n,a=[];"function"!==typeof e&&(e=de(e));for(var i=0,o=this.length;i<o;i++){a.push(t=[]),t.parentNode=(r=this[i]).parentNode;for(var l=0,s=r.length;l<s;l++)(n=r[l])&&e.call(n,n.__data__,l,i)&&t.push(n)}return Y(a)},$.order=function(){for(var e=-1,t=this.length;++e<t;)for(var r,n=this[e],a=n.length-1,i=n[a];--a>=0;)(r=n[a])&&(i&&i!==r.nextSibling&&i.parentNode.insertBefore(r,i),i=r);return this},$.sort=function(e){e=pe.apply(this,arguments);for(var t=-1,r=this.length;++t<r;)this[t].sort(e);return this.order()},$.each=function(e){return he(this,(function(t,r,n){e.call(t,t.__data__,r,n)}))},$.call=function(e){var t=l(arguments);return e.apply(t[0]=this,t),this},$.empty=function(){return!this.node()},$.node=function(){for(var e=0,t=this.length;e<t;e++)for(var r=this[e],n=0,a=r.length;n<a;n++){var i=r[n];if(i)return i}return null},$.size=function(){var e=0;return he(this,(function(){++e})),e};var ve=[];function ye(e){var t,r;return function(n,a,i){var o,l=e[i].update,s=l.length;for(i!=r&&(r=i,t=0),a>=t&&(t=a+1);!(o=l[t])&&++t<s;);return o}}function me(e,t,r){var n="__on"+e,a=e.indexOf("."),o=xe;a>0&&(e=e.slice(0,a));var s=be.get(e);function c(){var t=this[n];t&&(this.removeEventListener(e,t,t.$),delete this[n])}return s&&(e=s,o=we),a?t?function(){var a=o(t,l(arguments));c.call(this),this.addEventListener(e,this[n]=a,a.$=r),a._=t}:c:t?R:function(){var t,r=new RegExp("^__on([^.]+)"+i.requote(e)+"$");for(var n in this)if(t=n.match(r)){var a=this[n];this.removeEventListener(t[1],a,a.$),delete this[n]}}}i.selection.enter=ge,i.selection.enter.prototype=ve,ve.append=$.append,ve.empty=$.empty,ve.node=$.node,ve.call=$.call,ve.size=$.size,ve.select=function(e){for(var t,r,n,a,i,o=[],l=-1,s=this.length;++l<s;){n=(a=this[l]).update,o.push(t=[]),t.parentNode=a.parentNode;for(var c=-1,u=a.length;++c<u;)(i=a[c])?(t.push(n[c]=r=e.call(a.parentNode,i.__data__,c,l)),r.__data__=i.__data__):t.push(null)}return Y(o)},ve.insert=function(e,t){return arguments.length<2&&(t=ye(this)),$.insert.call(this,e,t)},i.select=function(e){var t;return"string"===typeof e?(t=[G(e,s)]).parentNode=s.documentElement:(t=[e]).parentNode=c(e),Y([t])},i.selectAll=function(e){var t;return"string"===typeof e?(t=l(X(e,s))).parentNode=s.documentElement:(t=l(e)).parentNode=null,Y([t])},$.on=function(e,t,r){var n=arguments.length;if(n<3){if("string"!==typeof e){for(r in n<2&&(t=!1),e)this.each(me(r,e[r],t));return this}if(n<2)return(n=this.node()["__on"+e])&&n._;r=!1}return this.each(me(e,t,r))};var be=i.map({mouseenter:"mouseover",mouseleave:"mouseout"});function xe(e,t){return function(r){var n=i.event;i.event=r,t[0]=this.__data__;try{e.apply(this,t)}finally{i.event=n}}}function we(e,t){var r=xe(e,t);return function(e){var t=this,n=e.relatedTarget;n&&(n===t||8&n.compareDocumentPosition(t))||r.call(t,e)}}s&&be.forEach((function(e){"on"+e in s&&be.remove(e)}));var _e,ke=0;function Te(e){var t=".dragsuppress-"+ ++ke,r="click"+t,n=i.select(u(e)).on("touchmove"+t,U).on("dragstart"+t,U).on("selectstart"+t,U);if(null==_e&&(_e=!("onselectstart"in e)&&I(e.style,"userSelect")),_e){var a=c(e).style,o=a[_e];a[_e]="none"}return function(e){if(n.on(t,null),_e&&(a[_e]=o),e){var i=function(){n.on(r,null)};n.on(r,(function(){U(),i()}),!0),setTimeout(i,0)}}}i.mouse=function(e){return Se(e,H())};var Ae=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function Se(e,t){t.changedTouches&&(t=t.changedTouches[0]);var r=e.ownerSVGElement||e;if(r.createSVGPoint){var n=r.createSVGPoint();if(Ae<0){var a=u(e);if(a.scrollX||a.scrollY){var o=(r=i.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important"))[0][0].getScreenCTM();Ae=!(o.f||o.e),r.remove()}}return Ae?(n.x=t.pageX,n.y=t.pageY):(n.x=t.clientX,n.y=t.clientY),[(n=n.matrixTransform(e.getScreenCTM().inverse())).x,n.y]}var l=e.getBoundingClientRect();return[t.clientX-l.left-e.clientLeft,t.clientY-l.top-e.clientTop]}function Me(){return i.event.changedTouches[0].identifier}i.touch=function(e,t,r){if(arguments.length<3&&(r=t,t=H().changedTouches),t)for(var n,a=0,i=t.length;a<i;++a)if((n=t[a]).identifier===r)return Se(e,n)},i.behavior.drag=function(){var e=V(a,"drag","dragstart","dragend"),t=null,r=o(R,i.mouse,u,"mousemove","mouseup"),n=o(Me,i.touch,z,"touchmove","touchend");function a(){this.on("mousedown.drag",r).on("touchstart.drag",n)}function o(r,n,a,o,l){return function(){var s,c=this,u=i.event.target.correspondingElement||i.event.target,f=c.parentNode,d=e.of(c,arguments),p=0,h=r(),g=".drag"+(null==h?"":"-"+h),v=i.select(a(u)).on(o+g,b).on(l+g,x),y=Te(u),m=n(f,h);function b(){var e,t,r=n(f,h);r&&(e=r[0]-m[0],t=r[1]-m[1],p|=e|t,m=r,d({type:"drag",x:r[0]+s[0],y:r[1]+s[1],dx:e,dy:t}))}function x(){n(f,h)&&(v.on(o+g,null).on(l+g,null),y(p),d({type:"dragend"}))}s=t?[(s=t.apply(c,arguments)).x-m[0],s.y-m[1]]:[0,0],d({type:"dragstart"})}}return a.origin=function(e){return arguments.length?(t=e,a):t},i.rebind(a,e,"on")},i.touches=function(e,t){return arguments.length<2&&(t=H().touches),t?l(t).map((function(t){var r=Se(e,t);return r.identifier=t.identifier,r})):[]};var Oe=1e-6,Ce=Math.PI,Ee=2*Ce,Le=Ee-Oe,Pe=Ce/2,je=Ce/180,ze=180/Ce;function De(e){return e>1?Pe:e<-1?-Pe:Math.asin(e)}function Ie(e){return((e=Math.exp(e))+1/e)/2}var Ne=Math.SQRT2;i.interpolateZoom=function(e,t){var r,n,a=e[0],i=e[1],o=e[2],l=t[0],s=t[1],c=t[2],u=l-a,f=s-i,d=u*u+f*f;if(d<1e-12)n=Math.log(c/o)/Ne,r=function(e){return[a+e*u,i+e*f,o*Math.exp(Ne*e*n)]};else{var p=Math.sqrt(d),h=(c*c-o*o+4*d)/(2*o*2*p),g=(c*c-o*o-4*d)/(2*c*2*p),v=Math.log(Math.sqrt(h*h+1)-h),y=Math.log(Math.sqrt(g*g+1)-g);n=(y-v)/Ne,r=function(e){var t,r=e*n,l=Ie(v),s=o/(2*p)*(l*(t=Ne*r+v,((t=Math.exp(2*t))-1)/(t+1))-function(e){return((e=Math.exp(e))-1/e)/2}(v));return[a+s*u,i+s*f,o*l/Ie(Ne*r+v)]}}return r.duration=1e3*n,r},i.behavior.zoom=function(){var e,t,r,n,a,o,l,c,f,d={x:0,y:0,k:1},p=[960,500],h=Be,g=250,v=0,y="mousedown.zoom",m="mousemove.zoom",b="mouseup.zoom",x="touchstart.zoom",w=V(_,"zoomstart","zoom","zoomend");function _(e){e.on(y,L).on(Fe+".zoom",j).on("dblclick.zoom",z).on(x,P)}function k(e){return[(e[0]-d.x)/d.k,(e[1]-d.y)/d.k]}function T(e){d.k=Math.max(h[0],Math.min(h[1],e))}function A(e,t){t=function(e){return[e[0]*d.k+d.x,e[1]*d.k+d.y]}(t),d.x+=e[0]-t[0],d.y+=e[1]-t[1]}function S(e,r,n,a){e.__chart__={x:d.x,y:d.y,k:d.k},T(Math.pow(2,a)),A(t=r,n),e=i.select(e),g>0&&(e=e.transition().duration(g)),e.call(_.event)}function M(){l&&l.domain(o.range().map((function(e){return(e-d.x)/d.k})).map(o.invert)),f&&f.domain(c.range().map((function(e){return(e-d.y)/d.k})).map(c.invert))}function O(e){v++||e({type:"zoomstart"})}function C(e){M(),e({type:"zoom",scale:d.k,translate:[d.x,d.y]})}function E(e){--v||(e({type:"zoomend"}),t=null)}function L(){var e=this,t=w.of(e,arguments),r=0,n=i.select(u(e)).on(m,l).on(b,s),a=k(i.mouse(e)),o=Te(e);function l(){r=1,A(i.mouse(e),a),C(t)}function s(){n.on(m,null).on(b,null),o(r),E(t)}Ja.call(e),O(t)}function P(){var e,t=this,r=w.of(t,arguments),n={},o=0,l=".zoom-"+i.event.changedTouches[0].identifier,s="touchmove"+l,c="touchend"+l,u=[],f=i.select(t),p=Te(t);function h(){var r=i.touches(t);return e=d.k,r.forEach((function(e){e.identifier in n&&(n[e.identifier]=k(e))})),r}function g(){var e=i.event.target;i.select(e).on(s,v).on(c,m),u.push(e);for(var r=i.event.changedTouches,l=0,f=r.length;l<f;++l)n[r[l].identifier]=null;var p=h(),g=Date.now();if(1===p.length){if(g-a<500){var y=p[0];S(t,y,n[y.identifier],Math.floor(Math.log(d.k)/Math.LN2)+1),U()}a=g}else if(p.length>1){y=p[0];var b=p[1],x=y[0]-b[0],w=y[1]-b[1];o=x*x+w*w}}function v(){var l,s,c,u,f=i.touches(t);Ja.call(t);for(var d=0,p=f.length;d<p;++d,u=null)if(c=f[d],u=n[c.identifier]){if(s)break;l=c,s=u}if(u){var h=(h=c[0]-l[0])*h+(h=c[1]-l[1])*h,g=o&&Math.sqrt(h/o);l=[(l[0]+c[0])/2,(l[1]+c[1])/2],s=[(s[0]+u[0])/2,(s[1]+u[1])/2],T(g*e)}a=null,A(l,s),C(r)}function m(){if(i.event.touches.length){for(var e=i.event.changedTouches,t=0,a=e.length;t<a;++t)delete n[e[t].identifier];for(var o in n)return void h()}i.selectAll(u).on(l,null),f.on(y,L).on(x,P),p(),E(r)}g(),O(r),f.on(y,null).on(x,g)}function j(){var a=w.of(this,arguments);n?clearTimeout(n):(Ja.call(this),e=k(t=r||i.mouse(this)),O(a)),n=setTimeout((function(){n=null,E(a)}),50),U(),T(Math.pow(2,.002*Re())*d.k),A(t,e),C(a)}function z(){var e=i.mouse(this),t=Math.log(d.k)/Math.LN2;S(this,e,k(e),i.event.shiftKey?Math.ceil(t)-1:Math.floor(t)+1)}return Fe||(Fe="onwheel"in s?(Re=function(){return-i.event.deltaY*(i.event.deltaMode?120:1)},"wheel"):"onmousewheel"in s?(Re=function(){return i.event.wheelDelta},"mousewheel"):(Re=function(){return-i.event.detail},"MozMousePixelScroll")),_.event=function(e){e.each((function(){var e=w.of(this,arguments),r=d;ri?i.select(this).transition().each("start.zoom",(function(){d=this.__chart__||{x:0,y:0,k:1},O(e)})).tween("zoom:zoom",(function(){var n=p[0],a=p[1],o=t?t[0]:n/2,l=t?t[1]:a/2,s=i.interpolateZoom([(o-d.x)/d.k,(l-d.y)/d.k,n/d.k],[(o-r.x)/r.k,(l-r.y)/r.k,n/r.k]);return function(t){var r=s(t),a=n/r[2];this.__chart__=d={x:o-r[0]*a,y:l-r[1]*a,k:a},C(e)}})).each("interrupt.zoom",(function(){E(e)})).each("end.zoom",(function(){E(e)})):(this.__chart__=d,O(e),C(e),E(e))}))},_.translate=function(e){return arguments.length?(d={x:+e[0],y:+e[1],k:d.k},M(),_):[d.x,d.y]},_.scale=function(e){return arguments.length?(d={x:d.x,y:d.y,k:null},T(+e),M(),_):d.k},_.scaleExtent=function(e){return arguments.length?(h=null==e?Be:[+e[0],+e[1]],_):h},_.center=function(e){return arguments.length?(r=e&&[+e[0],+e[1]],_):r},_.size=function(e){return arguments.length?(p=e&&[+e[0],+e[1]],_):p},_.duration=function(e){return arguments.length?(g=+e,_):g},_.x=function(e){return arguments.length?(l=e,o=e.copy(),d={x:0,y:0,k:1},_):l},_.y=function(e){return arguments.length?(f=e,c=e.copy(),d={x:0,y:0,k:1},_):f},i.rebind(_,w,"on")};var Re,Fe,Be=[0,1/0];function Ue(){}function He(e,t,r){return this instanceof He?(this.h=+e,this.s=+t,void(this.l=+r)):arguments.length<2?e instanceof He?new He(e.h,e.s,e.l):ct(""+e,ut,He):new He(e,t,r)}i.color=Ue,Ue.prototype.toString=function(){return this.rgb()+""},i.hsl=He;var Ve=He.prototype=new Ue;function qe(e,t,r){var n,a;function i(e){return Math.round(255*function(e){return e>360?e-=360:e<0&&(e+=360),e<60?n+(a-n)*e/60:e<180?a:e<240?n+(a-n)*(240-e)/60:n}(e))}return e=isNaN(e)?0:(e%=360)<0?e+360:e,t=isNaN(t)||t<0?0:t>1?1:t,n=2*(r=r<0?0:r>1?1:r)-(a=r<=.5?r*(1+t):r+t-r*t),new at(i(e+120),i(e),i(e-120))}function We(e,t,r){return this instanceof We?(this.h=+e,this.c=+t,void(this.l=+r)):arguments.length<2?e instanceof We?new We(e.h,e.c,e.l):et(e instanceof Xe?e.l:(e=ft((e=i.rgb(e)).r,e.g,e.b)).l,e.a,e.b):new We(e,t,r)}Ve.brighter=function(e){return e=Math.pow(.7,arguments.length?e:1),new He(this.h,this.s,this.l/e)},Ve.darker=function(e){return e=Math.pow(.7,arguments.length?e:1),new He(this.h,this.s,e*this.l)},Ve.rgb=function(){return qe(this.h,this.s,this.l)},i.hcl=We;var Ye=We.prototype=new Ue;function Ge(e,t,r){return isNaN(e)&&(e=0),isNaN(t)&&(t=0),new Xe(r,Math.cos(e*=je)*t,Math.sin(e)*t)}function Xe(e,t,r){return this instanceof Xe?(this.l=+e,this.a=+t,void(this.b=+r)):arguments.length<2?e instanceof Xe?new Xe(e.l,e.a,e.b):e instanceof We?Ge(e.h,e.c,e.l):ft((e=at(e)).r,e.g,e.b):new Xe(e,t,r)}Ye.brighter=function(e){return new We(this.h,this.c,Math.min(100,this.l+Ze*(arguments.length?e:1)))},Ye.darker=function(e){return new We(this.h,this.c,Math.max(0,this.l-Ze*(arguments.length?e:1)))},Ye.rgb=function(){return Ge(this.h,this.c,this.l).rgb()},i.lab=Xe;var Ze=18,$e=.95047,Qe=1.08883,Ke=Xe.prototype=new Ue;function Je(e,t,r){var n=(e+16)/116,a=n+t/500,i=n-r/200;return new at(nt(3.2404542*(a=tt(a)*$e)-1.5371385*(n=1*tt(n))-.4985314*(i=tt(i)*Qe)),nt(-.969266*a+1.8760108*n+.041556*i),nt(.0556434*a-.2040259*n+1.0572252*i))}function et(e,t,r){return e>0?new We(Math.atan2(r,t)*ze,Math.sqrt(t*t+r*r),e):new We(NaN,NaN,e)}function tt(e){return e>.206893034?e*e*e:(e-4/29)/7.787037}function rt(e){return e>.008856?Math.pow(e,1/3):7.787037*e+4/29}function nt(e){return Math.round(255*(e<=.00304?12.92*e:1.055*Math.pow(e,1/2.4)-.055))}function at(e,t,r){return this instanceof at?(this.r=~~e,this.g=~~t,void(this.b=~~r)):arguments.length<2?e instanceof at?new at(e.r,e.g,e.b):ct(""+e,at,qe):new at(e,t,r)}function it(e){return new at(e>>16,e>>8&255,255&e)}function ot(e){return it(e)+""}Ke.brighter=function(e){return new Xe(Math.min(100,this.l+Ze*(arguments.length?e:1)),this.a,this.b)},Ke.darker=function(e){return new Xe(Math.max(0,this.l-Ze*(arguments.length?e:1)),this.a,this.b)},Ke.rgb=function(){return Je(this.l,this.a,this.b)},i.rgb=at;var lt=at.prototype=new Ue;function st(e){return e<16?"0"+Math.max(0,e).toString(16):Math.min(255,e).toString(16)}function ct(e,t,r){var n,a,i,o=0,l=0,s=0;if(n=/([a-z]+)\((.*)\)/.exec(e=e.toLowerCase()))switch(a=n[2].split(","),n[1]){case"hsl":return r(parseFloat(a[0]),parseFloat(a[1])/100,parseFloat(a[2])/100);case"rgb":return t(pt(a[0]),pt(a[1]),pt(a[2]))}return(i=ht.get(e))?t(i.r,i.g,i.b):(null==e||"#"!==e.charAt(0)||isNaN(i=parseInt(e.slice(1),16))||(4===e.length?(o=(3840&i)>>4,o|=o>>4,l=240&i,l|=l>>4,s=15&i,s|=s<<4):7===e.length&&(o=(16711680&i)>>16,l=(65280&i)>>8,s=255&i)),t(o,l,s))}function ut(e,t,r){var n,a,i=Math.min(e/=255,t/=255,r/=255),o=Math.max(e,t,r),l=o-i,s=(o+i)/2;return l?(a=s<.5?l/(o+i):l/(2-o-i),n=e==o?(t-r)/l+(t<r?6:0):t==o?(r-e)/l+2:(e-t)/l+4,n*=60):(n=NaN,a=s>0&&s<1?0:n),new He(n,a,s)}function ft(e,t,r){var n=rt((.4124564*(e=dt(e))+.3575761*(t=dt(t))+.1804375*(r=dt(r)))/$e),a=rt((.2126729*e+.7151522*t+.072175*r)/1);return Xe(116*a-16,500*(n-a),200*(a-rt((.0193339*e+.119192*t+.9503041*r)/Qe)))}function dt(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function pt(e){var t=parseFloat(e);return"%"===e.charAt(e.length-1)?Math.round(2.55*t):t}lt.brighter=function(e){e=Math.pow(.7,arguments.length?e:1);var t=this.r,r=this.g,n=this.b,a=30;return t||r||n?(t&&t<a&&(t=a),r&&r<a&&(r=a),n&&n<a&&(n=a),new at(Math.min(255,t/e),Math.min(255,r/e),Math.min(255,n/e))):new at(a,a,a)},lt.darker=function(e){return new at((e=Math.pow(.7,arguments.length?e:1))*this.r,e*this.g,e*this.b)},lt.hsl=function(){return ut(this.r,this.g,this.b)},lt.toString=function(){return"#"+st(this.r)+st(this.g)+st(this.b)};var ht=i.map({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 gt(e){return"function"===typeof e?e:function(){return e}}function vt(e){return function(t,r,n){return 2===arguments.length&&"function"===typeof r&&(n=r,r=null),yt(t,r,e,n)}}function yt(e,t,r,n){var a={},o=i.dispatch("beforesend","progress","load","error"),s={},c=new XMLHttpRequest,u=null;function f(){var e,t=c.status;if(!t&&function(e){var t=e.responseType;return t&&"text"!==t?e.response:e.responseText}(c)||t>=200&&t<300||304===t){try{e=r.call(a,c)}catch(mi){return void o.error.call(a,mi)}o.load.call(a,e)}else o.error.call(a,c)}return self.XDomainRequest&&!("withCredentials"in c)&&/^(http(s)?:)?\/\//.test(e)&&(c=new XDomainRequest),"onload"in c?c.onload=c.onerror=f:c.onreadystatechange=function(){c.readyState>3&&f()},c.onprogress=function(e){var t=i.event;i.event=e;try{o.progress.call(a,c)}finally{i.event=t}},a.header=function(e,t){return e=(e+"").toLowerCase(),arguments.length<2?s[e]:(null==t?delete s[e]:s[e]=t+"",a)},a.mimeType=function(e){return arguments.length?(t=null==e?null:e+"",a):t},a.responseType=function(e){return arguments.length?(u=e,a):u},a.response=function(e){return r=e,a},["get","post"].forEach((function(e){a[e]=function(){return a.send.apply(a,[e].concat(l(arguments)))}})),a.send=function(r,n,i){if(2===arguments.length&&"function"===typeof n&&(i=n,n=null),c.open(r,e,!0),null==t||"accept"in s||(s.accept=t+",*/*"),c.setRequestHeader)for(var l in s)c.setRequestHeader(l,s[l]);return null!=t&&c.overrideMimeType&&c.overrideMimeType(t),null!=u&&(c.responseType=u),null!=i&&a.on("error",i).on("load",(function(e){i(null,e)})),o.beforesend.call(a,c),c.send(null==n?null:n),a},a.abort=function(){return c.abort(),a},i.rebind(a,o,"on"),null==n?a:a.get(function(e){return 1===e.length?function(t,r){e(null==t?r:null)}:e}(n))}ht.forEach((function(e,t){ht.set(e,it(t))})),i.functor=gt,i.xhr=vt(z),i.dsv=function(e,t){var r=new RegExp('["'+e+"\n]"),n=e.charCodeAt(0);function a(e,r,n){arguments.length<3&&(n=r,r=null);var a=yt(e,t,null==r?i:o(r),n);return a.row=function(e){return arguments.length?a.response(null==(r=e)?i:o(e)):r},a}function i(e){return a.parse(e.responseText)}function o(e){return function(t){return a.parse(t.responseText,e)}}function l(t){return t.map(s).join(e)}function s(e){return r.test(e)?'"'+e.replace(/\"/g,'""')+'"':e}return a.parse=function(e,t){var r;return a.parseRows(e,(function(e,n){if(r)return r(e,n-1);var a=function(t){for(var r={},n=e.length,a=0;a<n;++a)r[e[a]]=t[a];return r};r=t?function(e,r){return t(a(e),r)}:a}))},a.parseRows=function(e,t){var r,a,i={},o={},l=[],s=e.length,c=0,u=0;function f(){if(c>=s)return o;if(a)return a=!1,i;var t=c;if(34===e.charCodeAt(t)){for(var r=t;r++<s;)if(34===e.charCodeAt(r)){if(34!==e.charCodeAt(r+1))break;++r}return c=r+2,13===(l=e.charCodeAt(r+1))?(a=!0,10===e.charCodeAt(r+2)&&++c):10===l&&(a=!0),e.slice(t+1,r).replace(/""/g,'"')}for(;c<s;){var l,u=1;if(10===(l=e.charCodeAt(c++)))a=!0;else if(13===l)a=!0,10===e.charCodeAt(c)&&(++c,++u);else if(l!==n)continue;return e.slice(t,c-u)}return e.slice(t)}for(;(r=f())!==o;){for(var d=[];r!==i&&r!==o;)d.push(r),r=f();t&&null==(d=t(d,u++))||l.push(d)}return l},a.format=function(t){if(Array.isArray(t[0]))return a.formatRows(t);var r=new j,n=[];return t.forEach((function(e){for(var t in e)r.has(t)||n.push(r.add(t))})),[n.map(s).join(e)].concat(t.map((function(t){return n.map((function(e){return s(t[e])})).join(e)}))).join("\n")},a.formatRows=function(e){return e.map(l).join("\n")},a},i.csv=i.dsv(",","text/csv"),i.tsv=i.dsv("\t","text/tab-separated-values");var mt,bt,xt,wt,_t=this[I(this,"requestAnimationFrame")]||function(e){setTimeout(e,17)};function kt(e,t,r){var n=arguments.length;n<2&&(t=0),n<3&&(r=Date.now());var a=r+t,i={c:e,t:a,n:null};return bt?bt.n=i:mt=i,bt=i,xt||(wt=clearTimeout(wt),xt=1,_t(Tt)),i}function Tt(){var e=At(),t=St()-e;t>24?(isFinite(t)&&(clearTimeout(wt),wt=setTimeout(Tt,t)),xt=0):(xt=1,_t(Tt))}function At(){for(var e=Date.now(),t=mt;t;)e>=t.t&&t.c(e-t.t)&&(t.c=null),t=t.n;return e}function St(){for(var e,t=mt,r=1/0;t;)t.c?(t.t<r&&(r=t.t),t=(e=t).n):t=e?e.n=t.n:mt=t.n;return bt=e,r}function Mt(e){return e[0]}function Ot(e){return e[1]}function Ct(e){for(var t,r,n,a=e.length,i=[0,1],o=2,l=2;l<a;l++){for(;o>1&&(t=e[i[o-2]],r=e[i[o-1]],n=e[l],(r[0]-t[0])*(n[1]-t[1])-(r[1]-t[1])*(n[0]-t[0])<=0);)--o;i[o++]=l}return i.slice(0,o)}function Et(e,t){return e[0]-t[0]||e[1]-t[1]}i.timer=function(){kt.apply(this,arguments)},i.timer.flush=function(){At(),St()},i.round=function(e,t){return t?Math.round(e*(t=Math.pow(10,t)))/t:Math.round(e)},i.geom={},i.geom.hull=function(e){var t=Mt,r=Ot;if(arguments.length)return n(e);function n(e){if(e.length<3)return[];var n,a=gt(t),i=gt(r),o=e.length,l=[],s=[];for(n=0;n<o;n++)l.push([+a.call(this,e[n],n),+i.call(this,e[n],n),n]);for(l.sort(Et),n=0;n<o;n++)s.push([l[n][0],-l[n][1]]);var c=Ct(l),u=Ct(s),f=u[0]===c[0],d=u[u.length-1]===c[c.length-1],p=[];for(n=c.length-1;n>=0;--n)p.push(e[l[c[n]][2]]);for(n=+f;n<u.length-d;++n)p.push(e[l[u[n]][2]]);return p}return n.x=function(e){return arguments.length?(t=e,n):t},n.y=function(e){return arguments.length?(r=e,n):r},n},i.geom.polygon=function(e){return W(e,Lt),e};var Lt=i.geom.polygon.prototype=[];function Pt(e,t,r){return(r[0]-t[0])*(e[1]-t[1])<(r[1]-t[1])*(e[0]-t[0])}function jt(e,t,r,n){var a=e[0],i=r[0],o=t[0]-a,l=n[0]-i,s=e[1],c=r[1],u=t[1]-s,f=n[1]-c,d=(l*(s-c)-f*(a-i))/(f*o-l*u);return[a+d*o,s+d*u]}function zt(e){var t=e[0],r=e[e.length-1];return!(t[0]-r[0]||t[1]-r[1])}Lt.area=function(){for(var e,t=-1,r=this.length,n=this[r-1],a=0;++t<r;)e=n,n=this[t],a+=e[1]*n[0]-e[0]*n[1];return.5*a},Lt.centroid=function(e){var t,r,n=-1,a=this.length,i=0,o=0,l=this[a-1];for(arguments.length||(e=-1/(6*this.area()));++n<a;)t=l,l=this[n],r=t[0]*l[1]-l[0]*t[1],i+=(t[0]+l[0])*r,o+=(t[1]+l[1])*r;return[i*e,o*e]},Lt.clip=function(e){for(var t,r,n,a,i,o,l=zt(e),s=-1,c=this.length-zt(this),u=this[c-1];++s<c;){for(t=e.slice(),e.length=0,a=this[s],i=t[(n=t.length-l)-1],r=-1;++r<n;)Pt(o=t[r],u,a)?(Pt(i,u,a)||e.push(jt(i,o,u,a)),e.push(o)):Pt(i,u,a)&&e.push(jt(i,o,u,a)),i=o;l&&e.push(e[0]),u=a}return e};var Dt,It,Nt,Rt,Ft,Bt=[],Ut=[];function Ht(){lr(this),this.edge=this.site=this.circle=null}function Vt(e){var t=Bt.pop()||new Ht;return t.site=e,t}function qt(e){Jt(e),Nt.remove(e),Bt.push(e),lr(e)}function Wt(e){var t=e.circle,r=t.x,n=t.cy,a={x:r,y:n},i=e.P,o=e.N,l=[e];qt(e);for(var s=i;s.circle&&_(r-s.circle.x)<Oe&&_(n-s.circle.cy)<Oe;)i=s.P,l.unshift(s),qt(s),s=i;l.unshift(s),Jt(s);for(var c=o;c.circle&&_(r-c.circle.x)<Oe&&_(n-c.circle.cy)<Oe;)o=c.N,l.push(c),qt(c),c=o;l.push(c),Jt(c);var u,f=l.length;for(u=1;u<f;++u)c=l[u],s=l[u-1],ar(c.edge,s.site,c.site,a);s=l[0],(c=l[f-1]).edge=rr(s.site,c.site,null,a),Kt(s),Kt(c)}function Yt(e){for(var t,r,n,a,i=e.x,o=e.y,l=Nt._;l;)if((n=Gt(l,o)-i)>Oe)l=l.L;else{if(!((a=i-Xt(l,o))>Oe)){n>-Oe?(t=l.P,r=l):a>-Oe?(t=l,r=l.N):t=r=l;break}if(!l.R){t=l;break}l=l.R}var s=Vt(e);if(Nt.insert(t,s),t||r){if(t===r)return Jt(t),r=Vt(t.site),Nt.insert(s,r),s.edge=r.edge=rr(t.site,s.site),Kt(t),void Kt(r);if(r){Jt(t),Jt(r);var c=t.site,u=c.x,f=c.y,d=e.x-u,p=e.y-f,h=r.site,g=h.x-u,v=h.y-f,y=2*(d*v-p*g),m=d*d+p*p,b=g*g+v*v,x={x:(v*m-p*b)/y+u,y:(d*b-g*m)/y+f};ar(r.edge,c,h,x),s.edge=rr(c,e,null,x),r.edge=rr(e,h,null,x),Kt(t),Kt(r)}else s.edge=rr(t.site,s.site)}}function Gt(e,t){var r=e.site,n=r.x,a=r.y,i=a-t;if(!i)return n;var o=e.P;if(!o)return-1/0;var l=(r=o.site).x,s=r.y,c=s-t;if(!c)return l;var u=l-n,f=1/i-1/c,d=u/c;return f?(-d+Math.sqrt(d*d-2*f*(u*u/(-2*c)-s+c/2+a-i/2)))/f+n:(n+l)/2}function Xt(e,t){var r=e.N;if(r)return Gt(r,t);var n=e.site;return n.y===t?n.x:1/0}function Zt(e){this.site=e,this.edges=[]}function $t(e,t){return t.angle-e.angle}function Qt(){lr(this),this.x=this.y=this.arc=this.site=this.cy=null}function Kt(e){var t=e.P,r=e.N;if(t&&r){var n=t.site,a=e.site,i=r.site;if(n!==i){var o=a.x,l=a.y,s=n.x-o,c=n.y-l,u=i.x-o,f=2*(s*(v=i.y-l)-c*u);if(!(f>=-1e-12)){var d=s*s+c*c,p=u*u+v*v,h=(v*d-c*p)/f,g=(s*p-u*d)/f,v=g+l,y=Ut.pop()||new Qt;y.arc=e,y.site=a,y.x=h+o,y.y=v+Math.sqrt(h*h+g*g),y.cy=v,e.circle=y;for(var m=null,b=Ft._;b;)if(y.y<b.y||y.y===b.y&&y.x<=b.x){if(!b.L){m=b.P;break}b=b.L}else{if(!b.R){m=b;break}b=b.R}Ft.insert(m,y),m||(Rt=y)}}}}function Jt(e){var t=e.circle;t&&(t.P||(Rt=t.N),Ft.remove(t),Ut.push(t),lr(t),e.circle=null)}function er(e,t){var r=e.b;if(r)return!0;var n,a,i=e.a,o=t[0][0],l=t[1][0],s=t[0][1],c=t[1][1],u=e.l,f=e.r,d=u.x,p=u.y,h=f.x,g=f.y,v=(d+h)/2,y=(p+g)/2;if(g===p){if(v<o||v>=l)return;if(d>h){if(i){if(i.y>=c)return}else i={x:v,y:s};r={x:v,y:c}}else{if(i){if(i.y<s)return}else i={x:v,y:c};r={x:v,y:s}}}else if(a=y-(n=(d-h)/(g-p))*v,n<-1||n>1)if(d>h){if(i){if(i.y>=c)return}else i={x:(s-a)/n,y:s};r={x:(c-a)/n,y:c}}else{if(i){if(i.y<s)return}else i={x:(c-a)/n,y:c};r={x:(s-a)/n,y:s}}else if(p<g){if(i){if(i.x>=l)return}else i={x:o,y:n*o+a};r={x:l,y:n*l+a}}else{if(i){if(i.x<o)return}else i={x:l,y:n*l+a};r={x:o,y:n*o+a}}return e.a=i,e.b=r,!0}function tr(e,t){this.l=e,this.r=t,this.a=this.b=null}function rr(e,t,r,n){var a=new tr(e,t);return Dt.push(a),r&&ar(a,e,t,r),n&&ar(a,t,e,n),It[e.i].edges.push(new ir(a,e,t)),It[t.i].edges.push(new ir(a,t,e)),a}function nr(e,t,r){var n=new tr(e,null);return n.a=t,n.b=r,Dt.push(n),n}function ar(e,t,r,n){e.a||e.b?e.l===r?e.b=n:e.a=n:(e.a=n,e.l=t,e.r=r)}function ir(e,t,r){var n=e.a,a=e.b;this.edge=e,this.site=t,this.angle=r?Math.atan2(r.y-t.y,r.x-t.x):e.l===t?Math.atan2(a.x-n.x,n.y-a.y):Math.atan2(n.x-a.x,a.y-n.y)}function or(){this._=null}function lr(e){e.U=e.C=e.L=e.R=e.P=e.N=null}function sr(e,t){var r=t,n=t.R,a=r.U;a?a.L===r?a.L=n:a.R=n:e._=n,n.U=a,r.U=n,r.R=n.L,r.R&&(r.R.U=r),n.L=r}function cr(e,t){var r=t,n=t.L,a=r.U;a?a.L===r?a.L=n:a.R=n:e._=n,n.U=a,r.U=n,r.L=n.R,r.L&&(r.L.U=r),n.R=r}function ur(e){for(;e.L;)e=e.L;return e}function fr(e,t){var r,n,a,i=e.sort(dr).pop();for(Dt=[],It=new Array(e.length),Nt=new or,Ft=new or;;)if(a=Rt,i&&(!a||i.y<a.y||i.y===a.y&&i.x<a.x))i.x===r&&i.y===n||(It[i.i]=new Zt(i),Yt(i),r=i.x,n=i.y),i=e.pop();else{if(!a)break;Wt(a.arc)}t&&(function(e){for(var t,r,n,a,i,o=Dt,l=(r=e[0][0],n=e[0][1],a=e[1][0],i=e[1][1],function(e){var t,o=e.a,l=e.b,s=o.x,c=o.y,u=0,f=1,d=l.x-s,p=l.y-c;if(t=r-s,d||!(t>0)){if(t/=d,d<0){if(t<u)return;t<f&&(f=t)}else if(d>0){if(t>f)return;t>u&&(u=t)}if(t=a-s,d||!(t<0)){if(t/=d,d<0){if(t>f)return;t>u&&(u=t)}else if(d>0){if(t<u)return;t<f&&(f=t)}if(t=n-c,p||!(t>0)){if(t/=p,p<0){if(t<u)return;t<f&&(f=t)}else if(p>0){if(t>f)return;t>u&&(u=t)}if(t=i-c,p||!(t<0)){if(t/=p,p<0){if(t>f)return;t>u&&(u=t)}else if(p>0){if(t<u)return;t<f&&(f=t)}return u>0&&(e.a={x:s+u*d,y:c+u*p}),f<1&&(e.b={x:s+f*d,y:c+f*p}),e}}}}}),s=o.length;s--;)(!er(t=o[s],e)||!l(t)||_(t.a.x-t.b.x)<Oe&&_(t.a.y-t.b.y)<Oe)&&(t.a=t.b=null,o.splice(s,1))}(t),function(e){for(var t,r,n,a,i,o,l,s,c,u,f=e[0][0],d=e[1][0],p=e[0][1],h=e[1][1],g=It,v=g.length;v--;)if((i=g[v])&&i.prepare())for(s=(l=i.edges).length,o=0;o<s;)n=(u=l[o].end()).x,a=u.y,t=(c=l[++o%s].start()).x,r=c.y,(_(n-t)>Oe||_(a-r)>Oe)&&(l.splice(o,0,new ir(nr(i.site,u,_(n-f)<Oe&&h-a>Oe?{x:f,y:_(t-f)<Oe?r:h}:_(a-h)<Oe&&d-n>Oe?{x:_(r-h)<Oe?t:d,y:h}:_(n-d)<Oe&&a-p>Oe?{x:d,y:_(t-d)<Oe?r:p}:_(a-p)<Oe&&n-f>Oe?{x:_(r-p)<Oe?t:f,y:p}:null),i.site,null)),++s)}(t));var o={cells:It,edges:Dt};return Nt=Ft=Dt=It=null,o}function dr(e,t){return t.y-e.y||t.x-e.x}Zt.prototype.prepare=function(){for(var e,t=this.edges,r=t.length;r--;)(e=t[r].edge).b&&e.a||t.splice(r,1);return t.sort($t),t.length},ir.prototype={start:function(){return this.edge.l===this.site?this.edge.a:this.edge.b},end:function(){return this.edge.l===this.site?this.edge.b:this.edge.a}},or.prototype={insert:function(e,t){var r,n,a;if(e){if(t.P=e,t.N=e.N,e.N&&(e.N.P=t),e.N=t,e.R){for(e=e.R;e.L;)e=e.L;e.L=t}else e.R=t;r=e}else this._?(e=ur(this._),t.P=null,t.N=e,e.P=e.L=t,r=e):(t.P=t.N=null,this._=t,r=null);for(t.L=t.R=null,t.U=r,t.C=!0,e=t;r&&r.C;)r===(n=r.U).L?(a=n.R)&&a.C?(r.C=a.C=!1,n.C=!0,e=n):(e===r.R&&(sr(this,r),r=(e=r).U),r.C=!1,n.C=!0,cr(this,n)):(a=n.L)&&a.C?(r.C=a.C=!1,n.C=!0,e=n):(e===r.L&&(cr(this,r),r=(e=r).U),r.C=!1,n.C=!0,sr(this,n)),r=e.U;this._.C=!1},remove:function(e){e.N&&(e.N.P=e.P),e.P&&(e.P.N=e.N),e.N=e.P=null;var t,r,n,a=e.U,i=e.L,o=e.R;if(r=i?o?ur(o):i:o,a?a.L===e?a.L=r:a.R=r:this._=r,i&&o?(n=r.C,r.C=e.C,r.L=i,i.U=r,r!==o?(a=r.U,r.U=e.U,e=r.R,a.L=e,r.R=o,o.U=r):(r.U=a,a=r,e=r.R)):(n=e.C,e=r),e&&(e.U=a),!n)if(e&&e.C)e.C=!1;else{do{if(e===this._)break;if(e===a.L){if((t=a.R).C&&(t.C=!1,a.C=!0,sr(this,a),t=a.R),t.L&&t.L.C||t.R&&t.R.C){t.R&&t.R.C||(t.L.C=!1,t.C=!0,cr(this,t),t=a.R),t.C=a.C,a.C=t.R.C=!1,sr(this,a),e=this._;break}}else if((t=a.L).C&&(t.C=!1,a.C=!0,cr(this,a),t=a.L),t.L&&t.L.C||t.R&&t.R.C){t.L&&t.L.C||(t.R.C=!1,t.C=!0,sr(this,t),t=a.L),t.C=a.C,a.C=t.L.C=!1,cr(this,a),e=this._;break}t.C=!0,e=a,a=a.U}while(!e.C);e&&(e.C=!1)}}},i.geom.voronoi=function(e){var t=Mt,r=Ot,n=t,a=r,i=pr;if(e)return o(e);function o(e){var t=new Array(e.length),r=i[0][0],n=i[0][1],a=i[1][0],o=i[1][1];return fr(l(e),i).cells.forEach((function(i,l){var s=i.edges,c=i.site;(t[l]=s.length?s.map((function(e){var t=e.start();return[t.x,t.y]})):c.x>=r&&c.x<=a&&c.y>=n&&c.y<=o?[[r,o],[a,o],[a,n],[r,n]]:[]).point=e[l]})),t}function l(e){return e.map((function(e,t){return{x:Math.round(n(e,t)/Oe)*Oe,y:Math.round(a(e,t)/Oe)*Oe,i:t}}))}return o.links=function(e){return fr(l(e)).edges.filter((function(e){return e.l&&e.r})).map((function(t){return{source:e[t.l.i],target:e[t.r.i]}}))},o.triangles=function(e){var t=[];return fr(l(e)).cells.forEach((function(r,n){for(var a,i,o,l,s=r.site,c=r.edges.sort($t),u=-1,f=c.length,d=c[f-1].edge,p=d.l===s?d.r:d.l;++u<f;)d,a=p,p=(d=c[u].edge).l===s?d.r:d.l,n<a.i&&n<p.i&&(o=a,l=p,((i=s).x-l.x)*(o.y-i.y)-(i.x-o.x)*(l.y-i.y)<0)&&t.push([e[n],e[a.i],e[p.i]])})),t},o.x=function(e){return arguments.length?(n=gt(t=e),o):t},o.y=function(e){return arguments.length?(a=gt(r=e),o):r},o.clipExtent=function(e){return arguments.length?(i=null==e?pr:e,o):i===pr?null:i},o.size=function(e){return arguments.length?o.clipExtent(e&&[[0,0],e]):i===pr?null:i&&i[1]},o};var pr=[[-1e6,-1e6],[1e6,1e6]];function hr(e){return e.x}function gr(e){return e.y}function vr(e,t,r,n,a,i){if(!e(t,r,n,a,i)){var o=.5*(r+a),l=.5*(n+i),s=t.nodes;s[0]&&vr(e,s[0],r,n,o,l),s[1]&&vr(e,s[1],o,n,a,l),s[2]&&vr(e,s[2],r,l,o,i),s[3]&&vr(e,s[3],o,l,a,i)}}function yr(e,t,r,n,a,i,o){var l,s=1/0;return function e(c,u,f,d,p){if(!(u>i||f>o||d<n||p<a)){if(h=c.point){var h,g=t-c.x,v=r-c.y,y=g*g+v*v;if(y<s){var m=Math.sqrt(s=y);n=t-m,a=r-m,i=t+m,o=r+m,l=h}}for(var b=c.nodes,x=.5*(u+d),w=.5*(f+p),_=(r>=w)<<1|t>=x,k=_+4;_<k;++_)if(c=b[3&_])switch(3&_){case 0:e(c,u,f,x,w);break;case 1:e(c,x,f,d,w);break;case 2:e(c,u,w,x,p);break;case 3:e(c,x,w,d,p)}}}(e,n,a,i,o),l}function mr(e,t){e=i.rgb(e),t=i.rgb(t);var r=e.r,n=e.g,a=e.b,o=t.r-r,l=t.g-n,s=t.b-a;return function(e){return"#"+st(Math.round(r+o*e))+st(Math.round(n+l*e))+st(Math.round(a+s*e))}}function br(e,t){var r,n={},a={};for(r in e)r in t?n[r]=Tr(e[r],t[r]):a[r]=e[r];for(r in t)r in e||(a[r]=t[r]);return function(e){for(r in n)a[r]=n[r](e);return a}}function xr(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function wr(e,t){var r,n,a,i=_r.lastIndex=kr.lastIndex=0,o=-1,l=[],s=[];for(e+="",t+="";(r=_r.exec(e))&&(n=kr.exec(t));)(a=n.index)>i&&(a=t.slice(i,a),l[o]?l[o]+=a:l[++o]=a),(r=r[0])===(n=n[0])?l[o]?l[o]+=n:l[++o]=n:(l[++o]=null,s.push({i:o,x:xr(r,n)})),i=kr.lastIndex;return i<t.length&&(a=t.slice(i),l[o]?l[o]+=a:l[++o]=a),l.length<2?s[0]?(t=s[0].x,function(e){return t(e)+""}):function(){return t}:(t=s.length,function(e){for(var r,n=0;n<t;++n)l[(r=s[n]).i]=r.x(e);return l.join("")})}i.geom.delaunay=function(e){return i.geom.voronoi().triangles(e)},i.geom.quadtree=function(e,t,r,n,a){var i,o=Mt,l=Ot;if(i=arguments.length)return o=hr,l=gr,3===i&&(a=r,n=t,r=t=0),s(e);function s(e){var s,c,u,f,d,p,h,g,v,y=gt(o),m=gt(l);if(null!=t)p=t,h=r,g=n,v=a;else if(g=v=-(p=h=1/0),c=[],u=[],d=e.length,i)for(f=0;f<d;++f)(s=e[f]).x<p&&(p=s.x),s.y<h&&(h=s.y),s.x>g&&(g=s.x),s.y>v&&(v=s.y),c.push(s.x),u.push(s.y);else for(f=0;f<d;++f){var b=+y(s=e[f],f),x=+m(s,f);b<p&&(p=b),x<h&&(h=x),b>g&&(g=b),x>v&&(v=x),c.push(b),u.push(x)}var w=g-p,k=v-h;function T(e,t,r,n,a,i,o,l){if(!isNaN(r)&&!isNaN(n))if(e.leaf){var s=e.x,c=e.y;if(null!=s)if(_(s-r)+_(c-n)<.01)A(e,t,r,n,a,i,o,l);else{var u=e.point;e.x=e.y=e.point=null,A(e,u,s,c,a,i,o,l),A(e,t,r,n,a,i,o,l)}else e.x=r,e.y=n,e.point=t}else A(e,t,r,n,a,i,o,l)}function A(e,t,r,n,a,i,o,l){var s=.5*(a+o),c=.5*(i+l),u=r>=s,f=n>=c,d=f<<1|u;e.leaf=!1,u?a=s:o=s,f?i=c:l=c,T(e=e.nodes[d]||(e.nodes[d]={leaf:!0,nodes:[],point:null,x:null,y:null}),t,r,n,a,i,o,l)}w>k?v=h+w:g=p+k;var S={leaf:!0,nodes:[],point:null,x:null,y:null,add:function(e){T(S,e,+y(e,++f),+m(e,f),p,h,g,v)},visit:function(e){vr(e,S,p,h,g,v)},find:function(e){return yr(S,e[0],e[1],p,h,g,v)}};if(f=-1,null==t){for(;++f<d;)T(S,e[f],c[f],u[f],p,h,g,v);--f}else e.forEach(S.add);return c=u=e=s=null,S}return s.x=function(e){return arguments.length?(o=e,s):o},s.y=function(e){return arguments.length?(l=e,s):l},s.extent=function(e){return arguments.length?(null==e?t=r=n=a=null:(t=+e[0][0],r=+e[0][1],n=+e[1][0],a=+e[1][1]),s):null==t?null:[[t,r],[n,a]]},s.size=function(e){return arguments.length?(null==e?t=r=n=a=null:(t=r=0,n=+e[0],a=+e[1]),s):null==t?null:[n-t,a-r]},s},i.interpolateRgb=mr,i.interpolateObject=br,i.interpolateNumber=xr,i.interpolateString=wr;var _r=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,kr=new RegExp(_r.source,"g");function Tr(e,t){for(var r,n=i.interpolators.length;--n>=0&&!(r=i.interpolators[n](e,t)););return r}function Ar(e,t){var r,n=[],a=[],i=e.length,o=t.length,l=Math.min(e.length,t.length);for(r=0;r<l;++r)n.push(Tr(e[r],t[r]));for(;r<i;++r)a[r]=e[r];for(;r<o;++r)a[r]=t[r];return function(e){for(r=0;r<l;++r)a[r]=n[r](e);return a}}i.interpolate=Tr,i.interpolators=[function(e,t){var r=typeof t;return("string"===r?ht.has(t.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(t)?mr:wr:t instanceof Ue?mr:Array.isArray(t)?Ar:"object"===r&&isNaN(t)?br:xr)(e,t)}],i.interpolateArray=Ar;var Sr=function(){return z},Mr=i.map({linear:Sr,poly:function(e){return function(t){return Math.pow(t,e)}},quad:function(){return Pr},cubic:function(){return jr},sin:function(){return Dr},exp:function(){return Ir},circle:function(){return Nr},elastic:function(e,t){var r;arguments.length<2&&(t=.45);arguments.length?r=t/Ee*Math.asin(1/e):(e=1,r=t/4);return function(n){return 1+e*Math.pow(2,-10*n)*Math.sin((n-r)*Ee/t)}},back:function(e){e||(e=1.70158);return function(t){return t*t*((e+1)*t-e)}},bounce:function(){return Rr}}),Or=i.map({in:z,out:Er,"in-out":Lr,"out-in":function(e){return Lr(Er(e))}});function Cr(e){return function(t){return t<=0?0:t>=1?1:e(t)}}function Er(e){return function(t){return 1-e(1-t)}}function Lr(e){return function(t){return.5*(t<.5?e(2*t):2-e(2-2*t))}}function Pr(e){return e*e}function jr(e){return e*e*e}function zr(e){if(e<=0)return 0;if(e>=1)return 1;var t=e*e,r=t*e;return 4*(e<.5?r:3*(e-t)+r-.75)}function Dr(e){return 1-Math.cos(e*Pe)}function Ir(e){return Math.pow(2,10*(e-1))}function Nr(e){return 1-Math.sqrt(1-e*e)}function Rr(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375}function Fr(e,t){return t-=e,function(r){return Math.round(e+t*r)}}function Br(e){var t,r,n,a=[e.a,e.b],i=[e.c,e.d],o=Hr(a),l=Ur(a,i),s=Hr(((t=i)[0]+=(n=-l)*(r=a)[0],t[1]+=n*r[1],t))||0;a[0]*i[1]<i[0]*a[1]&&(a[0]*=-1,a[1]*=-1,o*=-1,l*=-1),this.rotate=(o?Math.atan2(a[1],a[0]):Math.atan2(-i[0],i[1]))*ze,this.translate=[e.e,e.f],this.scale=[o,s],this.skew=s?Math.atan2(l,s)*ze:0}function Ur(e,t){return e[0]*t[0]+e[1]*t[1]}function Hr(e){var t=Math.sqrt(Ur(e,e));return t&&(e[0]/=t,e[1]/=t),t}i.ease=function(e){var t=e.indexOf("-"),r=t>=0?e.slice(0,t):e,n=t>=0?e.slice(t+1):"in";return r=Mr.get(r)||Sr,Cr((n=Or.get(n)||z)(r.apply(null,o.call(arguments,1))))},i.interpolateHcl=function(e,t){e=i.hcl(e),t=i.hcl(t);var r=e.h,n=e.c,a=e.l,o=t.h-r,l=t.c-n,s=t.l-a;isNaN(l)&&(l=0,n=isNaN(n)?t.c:n);isNaN(o)?(o=0,r=isNaN(r)?t.h:r):o>180?o-=360:o<-180&&(o+=360);return function(e){return Ge(r+o*e,n+l*e,a+s*e)+""}},i.interpolateHsl=function(e,t){e=i.hsl(e),t=i.hsl(t);var r=e.h,n=e.s,a=e.l,o=t.h-r,l=t.s-n,s=t.l-a;isNaN(l)&&(l=0,n=isNaN(n)?t.s:n);isNaN(o)?(o=0,r=isNaN(r)?t.h:r):o>180?o-=360:o<-180&&(o+=360);return function(e){return qe(r+o*e,n+l*e,a+s*e)+""}},i.interpolateLab=function(e,t){e=i.lab(e),t=i.lab(t);var r=e.l,n=e.a,a=e.b,o=t.l-r,l=t.a-n,s=t.b-a;return function(e){return Je(r+o*e,n+l*e,a+s*e)+""}},i.interpolateRound=Fr,i.transform=function(e){var t=s.createElementNS(i.ns.prefix.svg,"g");return(i.transform=function(e){if(null!=e){t.setAttribute("transform",e);var r=t.transform.baseVal.consolidate()}return new Br(r?r.matrix:Vr)})(e)},Br.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};var Vr={a:1,b:0,c:0,d:1,e:0,f:0};function qr(e){return e.length?e.pop()+",":""}function Wr(e,t){var r=[],n=[];return e=i.transform(e),t=i.transform(t),function(e,t,r,n){if(e[0]!==t[0]||e[1]!==t[1]){var a=r.push("translate(",null,",",null,")");n.push({i:a-4,x:xr(e[0],t[0])},{i:a-2,x:xr(e[1],t[1])})}else(t[0]||t[1])&&r.push("translate("+t+")")}(e.translate,t.translate,r,n),function(e,t,r,n){e!==t?(e-t>180?t+=360:t-e>180&&(e+=360),n.push({i:r.push(qr(r)+"rotate(",null,")")-2,x:xr(e,t)})):t&&r.push(qr(r)+"rotate("+t+")")}(e.rotate,t.rotate,r,n),function(e,t,r,n){e!==t?n.push({i:r.push(qr(r)+"skewX(",null,")")-2,x:xr(e,t)}):t&&r.push(qr(r)+"skewX("+t+")")}(e.skew,t.skew,r,n),function(e,t,r,n){if(e[0]!==t[0]||e[1]!==t[1]){var a=r.push(qr(r)+"scale(",null,",",null,")");n.push({i:a-4,x:xr(e[0],t[0])},{i:a-2,x:xr(e[1],t[1])})}else 1===t[0]&&1===t[1]||r.push(qr(r)+"scale("+t+")")}(e.scale,t.scale,r,n),e=t=null,function(e){for(var t,a=-1,i=n.length;++a<i;)r[(t=n[a]).i]=t.x(e);return r.join("")}}function Yr(e,t){return t=(t-=e=+e)||1/t,function(r){return(r-e)/t}}function Gr(e,t){return t=(t-=e=+e)||1/t,function(r){return Math.max(0,Math.min(1,(r-e)/t))}}function Xr(e){for(var t=e.source,r=e.target,n=function(e,t){if(e===t)return e;var r=Zr(e),n=Zr(t),a=r.pop(),i=n.pop(),o=null;for(;a===i;)o=a,a=r.pop(),i=n.pop();return o}(t,r),a=[t];t!==n;)t=t.parent,a.push(t);for(var i=a.length;r!==n;)a.splice(i,0,r),r=r.parent;return a}function Zr(e){for(var t=[],r=e.parent;null!=r;)t.push(e),e=r,r=r.parent;return t.push(e),t}function $r(e){e.fixed|=2}function Qr(e){e.fixed&=-7}function Kr(e){e.fixed|=4,e.px=e.x,e.py=e.y}function Jr(e){e.fixed&=-5}function en(e,t,r){var n=0,a=0;if(e.charge=0,!e.leaf)for(var i,o=e.nodes,l=o.length,s=-1;++s<l;)null!=(i=o[s])&&(en(i,t,r),e.charge+=i.charge,n+=i.charge*i.cx,a+=i.charge*i.cy);if(e.point){e.leaf||(e.point.x+=Math.random()-.5,e.point.y+=Math.random()-.5);var c=t*r[e.point.index];e.charge+=e.pointCharge=c,n+=c*e.point.x,a+=c*e.point.y}e.cx=n/e.charge,e.cy=a/e.charge}i.interpolateTransform=Wr,i.layout={},i.layout.bundle=function(){return function(e){for(var t=[],r=-1,n=e.length;++r<n;)t.push(Xr(e[r]));return t}},i.layout.chord=function(){var e,t,r,n,a,o,l,s={},c=0;function u(){var s,u,d,p,h,g={},v=[],y=i.range(n),m=[];for(e=[],t=[],s=0,p=-1;++p<n;){for(u=0,h=-1;++h<n;)u+=r[p][h];v.push(u),m.push(i.range(n)),s+=u}for(a&&y.sort((function(e,t){return a(v[e],v[t])})),o&&m.forEach((function(e,t){e.sort((function(e,n){return o(r[t][e],r[t][n])}))})),s=(Ee-c*n)/s,u=0,p=-1;++p<n;){for(d=u,h=-1;++h<n;){var b=y[p],x=m[b][h],w=r[b][x],_=u,k=u+=w*s;g[b+"-"+x]={index:b,subindex:x,startAngle:_,endAngle:k,value:w}}t[b]={index:b,startAngle:d,endAngle:u,value:v[b]},u+=c}for(p=-1;++p<n;)for(h=p-1;++h<n;){var T=g[p+"-"+h],A=g[h+"-"+p];(T.value||A.value)&&e.push(T.value<A.value?{source:A,target:T}:{source:T,target:A})}l&&f()}function f(){e.sort((function(e,t){return l((e.source.value+e.target.value)/2,(t.source.value+t.target.value)/2)}))}return s.matrix=function(a){return arguments.length?(n=(r=a)&&r.length,e=t=null,s):r},s.padding=function(r){return arguments.length?(c=r,e=t=null,s):c},s.sortGroups=function(r){return arguments.length?(a=r,e=t=null,s):a},s.sortSubgroups=function(t){return arguments.length?(o=t,e=null,s):o},s.sortChords=function(t){return arguments.length?(l=t,e&&f(),s):l},s.chords=function(){return e||u(),e},s.groups=function(){return t||u(),t},s},i.layout.force=function(){var e,t,r,n,a,o,l={},s=i.dispatch("start","tick","end"),c=[1,1],u=.9,f=tn,d=rn,p=-30,h=nn,g=.1,v=.64,y=[],m=[];function b(e){return function(t,r,n,a){if(t.point!==e){var i=t.cx-e.x,o=t.cy-e.y,l=a-r,s=i*i+o*o;if(l*l/v<s){if(s<h){var c=t.charge/s;e.px-=i*c,e.py-=o*c}return!0}if(t.point&&s&&s<h){c=t.pointCharge/s;e.px-=i*c,e.py-=o*c}}return!t.charge}}function x(e){e.px=i.event.x,e.py=i.event.y,l.resume()}return l.tick=function(){if((r*=.99)<.005)return e=null,s.end({type:"end",alpha:r=0}),!0;var t,l,f,d,h,v,x,w,_,k=y.length,T=m.length;for(l=0;l<T;++l)d=(f=m[l]).source,(v=(w=(h=f.target).x-d.x)*w+(_=h.y-d.y)*_)&&(w*=v=r*a[l]*((v=Math.sqrt(v))-n[l])/v,_*=v,h.x-=w*(x=d.weight+h.weight?d.weight/(d.weight+h.weight):.5),h.y-=_*x,d.x+=w*(x=1-x),d.y+=_*x);if((x=r*g)&&(w=c[0]/2,_=c[1]/2,l=-1,x))for(;++l<k;)(f=y[l]).x+=(w-f.x)*x,f.y+=(_-f.y)*x;if(p)for(en(t=i.geom.quadtree(y),r,o),l=-1;++l<k;)(f=y[l]).fixed||t.visit(b(f));for(l=-1;++l<k;)(f=y[l]).fixed?(f.x=f.px,f.y=f.py):(f.x-=(f.px-(f.px=f.x))*u,f.y-=(f.py-(f.py=f.y))*u);s.tick({type:"tick",alpha:r})},l.nodes=function(e){return arguments.length?(y=e,l):y},l.links=function(e){return arguments.length?(m=e,l):m},l.size=function(e){return arguments.length?(c=e,l):c},l.linkDistance=function(e){return arguments.length?(f="function"===typeof e?e:+e,l):f},l.distance=l.linkDistance,l.linkStrength=function(e){return arguments.length?(d="function"===typeof e?e:+e,l):d},l.friction=function(e){return arguments.length?(u=+e,l):u},l.charge=function(e){return arguments.length?(p="function"===typeof e?e:+e,l):p},l.chargeDistance=function(e){return arguments.length?(h=e*e,l):Math.sqrt(h)},l.gravity=function(e){return arguments.length?(g=+e,l):g},l.theta=function(e){return arguments.length?(v=e*e,l):Math.sqrt(v)},l.alpha=function(t){return arguments.length?(t=+t,r?t>0?r=t:(e.c=null,e.t=NaN,e=null,s.end({type:"end",alpha:r=0})):t>0&&(s.start({type:"start",alpha:r=t}),e=kt(l.tick)),l):r},l.start=function(){var e,t,r,i=y.length,s=m.length,u=c[0],h=c[1];for(e=0;e<i;++e)(r=y[e]).index=e,r.weight=0;for(e=0;e<s;++e)"number"==typeof(r=m[e]).source&&(r.source=y[r.source]),"number"==typeof r.target&&(r.target=y[r.target]),++r.source.weight,++r.target.weight;for(e=0;e<i;++e)r=y[e],isNaN(r.x)&&(r.x=g("x",u)),isNaN(r.y)&&(r.y=g("y",h)),isNaN(r.px)&&(r.px=r.x),isNaN(r.py)&&(r.py=r.y);if(n=[],"function"===typeof f)for(e=0;e<s;++e)n[e]=+f.call(this,m[e],e);else for(e=0;e<s;++e)n[e]=f;if(a=[],"function"===typeof d)for(e=0;e<s;++e)a[e]=+d.call(this,m[e],e);else for(e=0;e<s;++e)a[e]=d;if(o=[],"function"===typeof p)for(e=0;e<i;++e)o[e]=+p.call(this,y[e],e);else for(e=0;e<i;++e)o[e]=p;function g(r,n){if(!t){for(t=new Array(i),c=0;c<i;++c)t[c]=[];for(c=0;c<s;++c){var a=m[c];t[a.source.index].push(a.target),t[a.target.index].push(a.source)}}for(var o,l=t[e],c=-1,u=l.length;++c<u;)if(!isNaN(o=l[c][r]))return o;return Math.random()*n}return l.resume()},l.resume=function(){return l.alpha(.1)},l.stop=function(){return l.alpha(0)},l.drag=function(){if(t||(t=i.behavior.drag().origin(z).on("dragstart.force",$r).on("drag.force",x).on("dragend.force",Qr)),!arguments.length)return t;this.on("mouseover.force",Kr).on("mouseout.force",Jr).call(t)},i.rebind(l,s,"on")};var tn=20,rn=1,nn=1/0;function an(e,t){return i.rebind(e,t,"sort","children","value"),e.nodes=e,e.links=fn,e}function on(e,t){for(var r=[e];null!=(e=r.pop());)if(t(e),(a=e.children)&&(n=a.length))for(var n,a;--n>=0;)r.push(a[n])}function ln(e,t){for(var r=[e],n=[];null!=(e=r.pop());)if(n.push(e),(i=e.children)&&(a=i.length))for(var a,i,o=-1;++o<a;)r.push(i[o]);for(;null!=(e=n.pop());)t(e)}function sn(e){return e.children}function cn(e){return e.value}function un(e,t){return t.value-e.value}function fn(e){return i.merge(e.map((function(e){return(e.children||[]).map((function(t){return{source:e,target:t}}))})))}i.layout.hierarchy=function(){var e=un,t=sn,r=cn;function n(a){var i,o=[a],l=[];for(a.depth=0;null!=(i=o.pop());)if(l.push(i),(c=t.call(n,i,i.depth))&&(s=c.length)){for(var s,c,u;--s>=0;)o.push(u=c[s]),u.parent=i,u.depth=i.depth+1;r&&(i.value=0),i.children=c}else r&&(i.value=+r.call(n,i,i.depth)||0),delete i.children;return ln(a,(function(t){var n,a;e&&(n=t.children)&&n.sort(e),r&&(a=t.parent)&&(a.value+=t.value)})),l}return n.sort=function(t){return arguments.length?(e=t,n):e},n.children=function(e){return arguments.length?(t=e,n):t},n.value=function(e){return arguments.length?(r=e,n):r},n.revalue=function(e){return r&&(on(e,(function(e){e.children&&(e.value=0)})),ln(e,(function(e){var t;e.children||(e.value=+r.call(n,e,e.depth)||0),(t=e.parent)&&(t.value+=e.value)}))),e},n},i.layout.partition=function(){var e=i.layout.hierarchy(),t=[1,1];function r(e,t,n,a){var i=e.children;if(e.x=t,e.y=e.depth*a,e.dx=n,e.dy=a,i&&(o=i.length)){var o,l,s,c=-1;for(n=e.value?n/e.value:0;++c<o;)r(l=i[c],t,s=l.value*n,a),t+=s}}function n(e){var t=e.children,r=0;if(t&&(a=t.length))for(var a,i=-1;++i<a;)r=Math.max(r,n(t[i]));return 1+r}function a(a,i){var o=e.call(this,a,i);return r(o[0],0,t[0],t[1]/n(o[0])),o}return a.size=function(e){return arguments.length?(t=e,a):t},an(a,e)},i.layout.pie=function(){var e=Number,t=dn,r=0,n=Ee,a=0;function o(l){var s,c=l.length,u=l.map((function(t,r){return+e.call(o,t,r)})),f=+("function"===typeof r?r.apply(this,arguments):r),d=("function"===typeof n?n.apply(this,arguments):n)-f,p=Math.min(Math.abs(d)/c,+("function"===typeof a?a.apply(this,arguments):a)),h=p*(d<0?-1:1),g=i.sum(u),v=g?(d-c*h)/g:0,y=i.range(c),m=[];return null!=t&&y.sort(t===dn?function(e,t){return u[t]-u[e]}:function(e,r){return t(l[e],l[r])}),y.forEach((function(e){m[e]={data:l[e],value:s=u[e],startAngle:f,endAngle:f+=s*v+h,padAngle:p}})),m}return o.value=function(t){return arguments.length?(e=t,o):e},o.sort=function(e){return arguments.length?(t=e,o):t},o.startAngle=function(e){return arguments.length?(r=e,o):r},o.endAngle=function(e){return arguments.length?(n=e,o):n},o.padAngle=function(e){return arguments.length?(a=e,o):a},o};var dn={};function pn(e){return e.x}function hn(e){return e.y}function gn(e,t,r){e.y0=t,e.y=r}i.layout.stack=function(){var e=z,t=mn,r=bn,n=gn,a=pn,o=hn;function l(s,c){if(!(p=s.length))return s;var u=s.map((function(t,r){return e.call(l,t,r)})),f=u.map((function(e){return e.map((function(e,t){return[a.call(l,e,t),o.call(l,e,t)]}))})),d=t.call(l,f,c);u=i.permute(u,d),f=i.permute(f,d);var p,h,g,v,y=r.call(l,f,c),m=u[0].length;for(g=0;g<m;++g)for(n.call(l,u[0][g],v=y[g],f[0][g][1]),h=1;h<p;++h)n.call(l,u[h][g],v+=f[h-1][g][1],f[h][g][1]);return s}return l.values=function(t){return arguments.length?(e=t,l):e},l.order=function(e){return arguments.length?(t="function"===typeof e?e:vn.get(e)||mn,l):t},l.offset=function(e){return arguments.length?(r="function"===typeof e?e:yn.get(e)||bn,l):r},l.x=function(e){return arguments.length?(a=e,l):a},l.y=function(e){return arguments.length?(o=e,l):o},l.out=function(e){return arguments.length?(n=e,l):n},l};var vn=i.map({"inside-out":function(e){var t,r,n=e.length,a=e.map(xn),o=e.map(wn),l=i.range(n).sort((function(e,t){return a[e]-a[t]})),s=0,c=0,u=[],f=[];for(t=0;t<n;++t)r=l[t],s<c?(s+=o[r],u.push(r)):(c+=o[r],f.push(r));return f.reverse().concat(u)},reverse:function(e){return i.range(e.length).reverse()},default:mn}),yn=i.map({silhouette:function(e){var t,r,n,a=e.length,i=e[0].length,o=[],l=0,s=[];for(r=0;r<i;++r){for(t=0,n=0;t<a;t++)n+=e[t][r][1];n>l&&(l=n),o.push(n)}for(r=0;r<i;++r)s[r]=(l-o[r])/2;return s},wiggle:function(e){var t,r,n,a,i,o,l,s,c,u=e.length,f=e[0],d=f.length,p=[];for(p[0]=s=c=0,r=1;r<d;++r){for(t=0,a=0;t<u;++t)a+=e[t][r][1];for(t=0,i=0,l=f[r][0]-f[r-1][0];t<u;++t){for(n=0,o=(e[t][r][1]-e[t][r-1][1])/(2*l);n<t;++n)o+=(e[n][r][1]-e[n][r-1][1])/l;i+=o*e[t][r][1]}p[r]=s-=a?i/a*l:0,s<c&&(c=s)}for(r=0;r<d;++r)p[r]-=c;return p},expand:function(e){var t,r,n,a=e.length,i=e[0].length,o=1/a,l=[];for(r=0;r<i;++r){for(t=0,n=0;t<a;t++)n+=e[t][r][1];if(n)for(t=0;t<a;t++)e[t][r][1]/=n;else for(t=0;t<a;t++)e[t][r][1]=o}for(r=0;r<i;++r)l[r]=0;return l},zero:bn});function mn(e){return i.range(e.length)}function bn(e){for(var t=-1,r=e[0].length,n=[];++t<r;)n[t]=0;return n}function xn(e){for(var t,r=1,n=0,a=e[0][1],i=e.length;r<i;++r)(t=e[r][1])>a&&(n=r,a=t);return n}function wn(e){return e.reduce(_n,0)}function _n(e,t){return e+t[1]}function kn(e,t){return Tn(e,Math.ceil(Math.log(t.length)/Math.LN2+1))}function Tn(e,t){for(var r=-1,n=+e[0],a=(e[1]-n)/t,i=[];++r<=t;)i[r]=a*r+n;return i}function An(e){return[i.min(e),i.max(e)]}function Sn(e,t){return e.value-t.value}function Mn(e,t){var r=e._pack_next;e._pack_next=t,t._pack_prev=e,t._pack_next=r,r._pack_prev=t}function On(e,t){e._pack_next=t,t._pack_prev=e}function Cn(e,t){var r=t.x-e.x,n=t.y-e.y,a=e.r+t.r;return.999*a*a>r*r+n*n}function En(e){if((t=e.children)&&(s=t.length)){var t,r,n,a,i,o,l,s,c=1/0,u=-1/0,f=1/0,d=-1/0;if(t.forEach(Ln),(r=t[0]).x=-r.r,r.y=0,b(r),s>1&&((n=t[1]).x=n.r,n.y=0,b(n),s>2))for(zn(r,n,a=t[2]),b(a),Mn(r,a),r._pack_prev=a,Mn(a,n),n=r._pack_next,i=3;i<s;i++){zn(r,n,a=t[i]);var p=0,h=1,g=1;for(o=n._pack_next;o!==n;o=o._pack_next,h++)if(Cn(o,a)){p=1;break}if(1==p)for(l=r._pack_prev;l!==o._pack_prev&&!Cn(l,a);l=l._pack_prev,g++);p?(h<g||h==g&&n.r<r.r?On(r,n=o):On(r=l,n),i--):(Mn(r,a),n=a,b(a))}var v=(c+u)/2,y=(f+d)/2,m=0;for(i=0;i<s;i++)(a=t[i]).x-=v,a.y-=y,m=Math.max(m,a.r+Math.sqrt(a.x*a.x+a.y*a.y));e.r=m,t.forEach(Pn)}function b(e){c=Math.min(e.x-e.r,c),u=Math.max(e.x+e.r,u),f=Math.min(e.y-e.r,f),d=Math.max(e.y+e.r,d)}}function Ln(e){e._pack_next=e._pack_prev=e}function Pn(e){delete e._pack_next,delete e._pack_prev}function jn(e,t,r,n){var a=e.children;if(e.x=t+=n*e.x,e.y=r+=n*e.y,e.r*=n,a)for(var i=-1,o=a.length;++i<o;)jn(a[i],t,r,n)}function zn(e,t,r){var n=e.r+r.r,a=t.x-e.x,i=t.y-e.y;if(n&&(a||i)){var o=t.r+r.r,l=a*a+i*i,s=.5+((n*=n)-(o*=o))/(2*l),c=Math.sqrt(Math.max(0,2*o*(n+l)-(n-=l)*n-o*o))/(2*l);r.x=e.x+s*a+c*i,r.y=e.y+s*i-c*a}else r.x=e.x+n,r.y=e.y}function Dn(e,t){return e.parent==t.parent?1:2}function In(e){var t=e.children;return t.length?t[0]:e.t}function Nn(e){var t,r=e.children;return(t=r.length)?r[t-1]:e.t}function Rn(e,t,r){var n=r/(t.i-e.i);t.c-=n,t.s+=r,e.c+=n,t.z+=r,t.m+=r}function Fn(e,t,r){return e.a.parent===t.parent?e.a:r}function Bn(e){var t=e.children;return t&&t.length?Bn(t[0]):e}function Un(e){var t,r=e.children;return r&&(t=r.length)?Un(r[t-1]):e}function Hn(e){return{x:e.x,y:e.y,dx:e.dx,dy:e.dy}}function Vn(e,t){var r=e.x+t[3],n=e.y+t[0],a=e.dx-t[1]-t[3],i=e.dy-t[0]-t[2];return a<0&&(r+=a/2,a=0),i<0&&(n+=i/2,i=0),{x:r,y:n,dx:a,dy:i}}function qn(e){var t=e[0],r=e[e.length-1];return t<r?[t,r]:[r,t]}function Wn(e){return e.rangeExtent?e.rangeExtent():qn(e.range())}function Yn(e,t,r,n){var a=r(e[0],e[1]),i=n(t[0],t[1]);return function(e){return i(a(e))}}function Gn(e,t){var r,n=0,a=e.length-1,i=e[n],o=e[a];return o<i&&(r=n,n=a,a=r,r=i,i=o,o=r),e[n]=t.floor(i),e[a]=t.ceil(o),e}function Xn(e){return e?{floor:function(t){return Math.floor(t/e)*e},ceil:function(t){return Math.ceil(t/e)*e}}:Zn}i.layout.histogram=function(){var e=!0,t=Number,r=An,n=kn;function a(a,o){for(var l,s,c=[],u=a.map(t,this),f=r.call(this,u,o),d=n.call(this,f,u,o),p=(o=-1,u.length),h=d.length-1,g=e?1:1/p;++o<h;)(l=c[o]=[]).dx=d[o+1]-(l.x=d[o]),l.y=0;if(h>0)for(o=-1;++o<p;)(s=u[o])>=f[0]&&s<=f[1]&&((l=c[i.bisect(d,s,1,h)-1]).y+=g,l.push(a[o]));return c}return a.value=function(e){return arguments.length?(t=e,a):t},a.range=function(e){return arguments.length?(r=gt(e),a):r},a.bins=function(e){return arguments.length?(n="number"===typeof e?function(t){return Tn(t,e)}:gt(e),a):n},a.frequency=function(t){return arguments.length?(e=!!t,a):e},a},i.layout.pack=function(){var e,t=i.layout.hierarchy().sort(Sn),r=0,n=[1,1];function a(a,i){var o=t.call(this,a,i),l=o[0],s=n[0],c=n[1],u=null==e?Math.sqrt:"function"===typeof e?e:function(){return e};if(l.x=l.y=0,ln(l,(function(e){e.r=+u(e.value)})),ln(l,En),r){var f=r*(e?1:Math.max(2*l.r/s,2*l.r/c))/2;ln(l,(function(e){e.r+=f})),ln(l,En),ln(l,(function(e){e.r-=f}))}return jn(l,s/2,c/2,e?1:1/Math.max(2*l.r/s,2*l.r/c)),o}return a.size=function(e){return arguments.length?(n=e,a):n},a.radius=function(t){return arguments.length?(e=null==t||"function"===typeof t?t:+t,a):e},a.padding=function(e){return arguments.length?(r=+e,a):r},an(a,t)},i.layout.tree=function(){var e=i.layout.hierarchy().sort(null).value(null),t=Dn,r=[1,1],n=null;function a(a,i){var c=e.call(this,a,i),u=c[0],f=function(e){var t,r={A:null,children:[e]},n=[r];for(;null!=(t=n.pop());)for(var a,i=t.children,o=0,l=i.length;o<l;++o)n.push((i[o]=a={_:i[o],parent:t,children:(a=i[o].children)&&a.slice()||[],A:null,a:null,z:0,m:0,c:0,s:0,t:null,i:o}).a=a);return r.children[0]}(u);if(ln(f,o),f.parent.m=-f.z,on(f,l),n)on(u,s);else{var d=u,p=u,h=u;on(u,(function(e){e.x<d.x&&(d=e),e.x>p.x&&(p=e),e.depth>h.depth&&(h=e)}));var g=t(d,p)/2-d.x,v=r[0]/(p.x+t(p,d)/2+g),y=r[1]/(h.depth||1);on(u,(function(e){e.x=(e.x+g)*v,e.y=e.depth*y}))}return c}function o(e){var r=e.children,n=e.parent.children,a=e.i?n[e.i-1]:null;if(r.length){!function(e){var t,r=0,n=0,a=e.children,i=a.length;for(;--i>=0;)(t=a[i]).z+=r,t.m+=r,r+=t.s+(n+=t.c)}(e);var i=(r[0].z+r[r.length-1].z)/2;a?(e.z=a.z+t(e._,a._),e.m=e.z-i):e.z=i}else a&&(e.z=a.z+t(e._,a._));e.parent.A=function(e,r,n){if(r){for(var a,i=e,o=e,l=r,s=i.parent.children[0],c=i.m,u=o.m,f=l.m,d=s.m;l=Nn(l),i=In(i),l&&i;)s=In(s),(o=Nn(o)).a=e,(a=l.z+f-i.z-c+t(l._,i._))>0&&(Rn(Fn(l,e,n),e,a),c+=a,u+=a),f+=l.m,c+=i.m,d+=s.m,u+=o.m;l&&!Nn(o)&&(o.t=l,o.m+=f-u),i&&!In(s)&&(s.t=i,s.m+=c-d,n=e)}return n}(e,a,e.parent.A||n[0])}function l(e){e._.x=e.z+e.parent.m,e.m+=e.parent.m}function s(e){e.x*=r[0],e.y=e.depth*r[1]}return a.separation=function(e){return arguments.length?(t=e,a):t},a.size=function(e){return arguments.length?(n=null==(r=e)?s:null,a):n?null:r},a.nodeSize=function(e){return arguments.length?(n=null==(r=e)?null:s,a):n?r:null},an(a,e)},i.layout.cluster=function(){var e=i.layout.hierarchy().sort(null).value(null),t=Dn,r=[1,1],n=!1;function a(a,o){var l,s=e.call(this,a,o),c=s[0],u=0;ln(c,(function(e){var r=e.children;r&&r.length?(e.x=function(e){return e.reduce((function(e,t){return e+t.x}),0)/e.length}(r),e.y=function(e){return 1+i.max(e,(function(e){return e.y}))}(r)):(e.x=l?u+=t(e,l):0,e.y=0,l=e)}));var f=Bn(c),d=Un(c),p=f.x-t(f,d)/2,h=d.x+t(d,f)/2;return ln(c,n?function(e){e.x=(e.x-c.x)*r[0],e.y=(c.y-e.y)*r[1]}:function(e){e.x=(e.x-p)/(h-p)*r[0],e.y=(1-(c.y?e.y/c.y:1))*r[1]}),s}return a.separation=function(e){return arguments.length?(t=e,a):t},a.size=function(e){return arguments.length?(n=null==(r=e),a):n?null:r},a.nodeSize=function(e){return arguments.length?(n=null!=(r=e),a):n?r:null},an(a,e)},i.layout.treemap=function(){var e,t=i.layout.hierarchy(),r=Math.round,n=[1,1],a=null,o=Hn,l=!1,s="squarify",c=.5*(1+Math.sqrt(5));function u(e,t){for(var r,n,a=-1,i=e.length;++a<i;)n=(r=e[a]).value*(t<0?0:t),r.area=isNaN(n)||n<=0?0:n}function f(e){var t=e.children;if(t&&t.length){var r,n,a,i=o(e),l=[],c=t.slice(),d=1/0,g="slice"===s?i.dx:"dice"===s?i.dy:"slice-dice"===s?1&e.depth?i.dy:i.dx:Math.min(i.dx,i.dy);for(u(c,i.dx*i.dy/e.value),l.area=0;(a=c.length)>0;)l.push(r=c[a-1]),l.area+=r.area,"squarify"!==s||(n=p(l,g))<=d?(c.pop(),d=n):(l.area-=l.pop().area,h(l,g,i,!1),g=Math.min(i.dx,i.dy),l.length=l.area=0,d=1/0);l.length&&(h(l,g,i,!0),l.length=l.area=0),t.forEach(f)}}function d(e){var t=e.children;if(t&&t.length){var r,n=o(e),a=t.slice(),i=[];for(u(a,n.dx*n.dy/e.value),i.area=0;r=a.pop();)i.push(r),i.area+=r.area,null!=r.z&&(h(i,r.z?n.dx:n.dy,n,!a.length),i.length=i.area=0);t.forEach(d)}}function p(e,t){for(var r,n=e.area,a=0,i=1/0,o=-1,l=e.length;++o<l;)(r=e[o].area)&&(r<i&&(i=r),r>a&&(a=r));return t*=t,(n*=n)?Math.max(t*a*c/n,n/(t*i*c)):1/0}function h(e,t,n,a){var i,o=-1,l=e.length,s=n.x,c=n.y,u=t?r(e.area/t):0;if(t==n.dx){for((a||u>n.dy)&&(u=n.dy);++o<l;)(i=e[o]).x=s,i.y=c,i.dy=u,s+=i.dx=Math.min(n.x+n.dx-s,u?r(i.area/u):0);i.z=!0,i.dx+=n.x+n.dx-s,n.y+=u,n.dy-=u}else{for((a||u>n.dx)&&(u=n.dx);++o<l;)(i=e[o]).x=s,i.y=c,i.dx=u,c+=i.dy=Math.min(n.y+n.dy-c,u?r(i.area/u):0);i.z=!1,i.dy+=n.y+n.dy-c,n.x+=u,n.dx-=u}}function g(r){var a=e||t(r),i=a[0];return i.x=i.y=0,i.value?(i.dx=n[0],i.dy=n[1]):i.dx=i.dy=0,e&&t.revalue(i),u([i],i.dx*i.dy/i.value),(e?d:f)(i),l&&(e=a),a}return g.size=function(e){return arguments.length?(n=e,g):n},g.padding=function(e){if(!arguments.length)return a;function t(t){var r=e.call(g,t,t.depth);return null==r?Hn(t):Vn(t,"number"===typeof r?[r,r,r,r]:r)}function r(t){return Vn(t,e)}var n;return o=null==(a=e)?Hn:"function"===(n=typeof e)?t:"number"===n?(e=[e,e,e,e],r):r,g},g.round=function(e){return arguments.length?(r=e?Math.round:Number,g):r!=Number},g.sticky=function(t){return arguments.length?(l=t,e=null,g):l},g.ratio=function(e){return arguments.length?(c=e,g):c},g.mode=function(e){return arguments.length?(s=e+"",g):s},an(g,t)},i.random={normal:function(e,t){var r=arguments.length;return r<2&&(t=1),r<1&&(e=0),function(){var r,n,a;do{a=(r=2*Math.random()-1)*r+(n=2*Math.random()-1)*n}while(!a||a>1);return e+t*r*Math.sqrt(-2*Math.log(a)/a)}},logNormal:function(){var e=i.random.normal.apply(i,arguments);return function(){return Math.exp(e())}},bates:function(e){var t=i.random.irwinHall(e);return function(){return t()/e}},irwinHall:function(e){return function(){for(var t=0,r=0;r<e;r++)t+=Math.random();return t}}},i.scale={};var Zn={floor:z,ceil:z};function $n(e,t,r,n){var a=[],o=[],l=0,s=Math.min(e.length,t.length)-1;for(e[s]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++l<=s;)a.push(r(e[l-1],e[l])),o.push(n(t[l-1],t[l]));return function(t){var r=i.bisect(e,t,1,s)-1;return o[r](a[r](t))}}function Qn(e,t,r,n){var a,i;function o(){var o=Math.min(e.length,t.length)>2?$n:Yn,s=n?Gr:Yr;return a=o(e,t,s,r),i=o(t,e,s,Tr),l}function l(e){return a(e)}return l.invert=function(e){return i(e)},l.domain=function(t){return arguments.length?(e=t.map(Number),o()):e},l.range=function(e){return arguments.length?(t=e,o()):t},l.rangeRound=function(e){return l.range(e).interpolate(Fr)},l.clamp=function(e){return arguments.length?(n=e,o()):n},l.interpolate=function(e){return arguments.length?(r=e,o()):r},l.ticks=function(t){return ta(e,t)},l.tickFormat=function(t,r){return d3_scale_linearTickFormat(e,t,r)},l.nice=function(t){return Jn(e,t),o()},l.copy=function(){return Qn(e,t,r,n)},o()}function Kn(e,t){return i.rebind(e,t,"range","rangeRound","interpolate","clamp")}function Jn(e,t){return Gn(e,Xn(ea(e,t)[2])),Gn(e,Xn(ea(e,t)[2])),e}function ea(e,t){null==t&&(t=10);var r=qn(e),n=r[1]-r[0],a=Math.pow(10,Math.floor(Math.log(n/t)/Math.LN10)),i=t/n*a;return i<=.15?a*=10:i<=.35?a*=5:i<=.75&&(a*=2),r[0]=Math.ceil(r[0]/a)*a,r[1]=Math.floor(r[1]/a)*a+.5*a,r[2]=a,r}function ta(e,t){return i.range.apply(i,ea(e,t))}i.scale.linear=function(){return Qn([0,1],[0,1],Tr,!1)};function ra(e,t,r,n){function a(e){return(r?Math.log(e<0?0:e):-Math.log(e>0?0:-e))/Math.log(t)}function i(e){return r?Math.pow(t,e):-Math.pow(t,-e)}function o(t){return e(a(t))}return o.invert=function(t){return i(e.invert(t))},o.domain=function(t){return arguments.length?(r=t[0]>=0,e.domain((n=t.map(Number)).map(a)),o):n},o.base=function(r){return arguments.length?(t=+r,e.domain(n.map(a)),o):t},o.nice=function(){var t=Gn(n.map(a),r?Math:na);return e.domain(t),n=t.map(i),o},o.ticks=function(){var e=qn(n),o=[],l=e[0],s=e[1],c=Math.floor(a(l)),u=Math.ceil(a(s)),f=t%1?2:t;if(isFinite(u-c)){if(r){for(;c<u;c++)for(var d=1;d<f;d++)o.push(i(c)*d);o.push(i(c))}else for(o.push(i(c));c++<u;)for(d=f-1;d>0;d--)o.push(i(c)*d);for(c=0;o[c]<l;c++);for(u=o.length;o[u-1]>s;u--);o=o.slice(c,u)}return o},o.copy=function(){return ra(e.copy(),t,r,n)},Kn(o,e)}i.scale.log=function(){return ra(i.scale.linear().domain([0,1]),10,!0,[1,10])};var na={floor:function(e){return-Math.ceil(-e)},ceil:function(e){return-Math.floor(-e)}};function aa(e,t,r){var n=ia(t),a=ia(1/t);function i(t){return e(n(t))}return i.invert=function(t){return a(e.invert(t))},i.domain=function(t){return arguments.length?(e.domain((r=t.map(Number)).map(n)),i):r},i.ticks=function(e){return ta(r,e)},i.tickFormat=function(e,t){return d3_scale_linearTickFormat(r,e,t)},i.nice=function(e){return i.domain(Jn(r,e))},i.exponent=function(o){return arguments.length?(n=ia(t=o),a=ia(1/t),e.domain(r.map(n)),i):t},i.copy=function(){return aa(e.copy(),t,r)},Kn(i,e)}function ia(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function oa(e,t){var r,n,a;function o(a){return n[((r.get(a)||("range"===t.t?r.set(a,e.push(a)):NaN))-1)%n.length]}function l(t,r){return i.range(e.length).map((function(e){return t+r*e}))}return o.domain=function(n){if(!arguments.length)return e;e=[],r=new A;for(var a,i=-1,l=n.length;++i<l;)r.has(a=n[i])||r.set(a,e.push(a));return o[t.t].apply(o,t.a)},o.range=function(e){return arguments.length?(n=e,a=0,t={t:"range",a:arguments},o):n},o.rangePoints=function(r,i){arguments.length<2&&(i=0);var s=r[0],c=r[1],u=e.length<2?(s=(s+c)/2,0):(c-s)/(e.length-1+i);return n=l(s+u*i/2,u),a=0,t={t:"rangePoints",a:arguments},o},o.rangeRoundPoints=function(r,i){arguments.length<2&&(i=0);var s=r[0],c=r[1],u=e.length<2?(s=c=Math.round((s+c)/2),0):(c-s)/(e.length-1+i)|0;return n=l(s+Math.round(u*i/2+(c-s-(e.length-1+i)*u)/2),u),a=0,t={t:"rangeRoundPoints",a:arguments},o},o.rangeBands=function(r,i,s){arguments.length<2&&(i=0),arguments.length<3&&(s=i);var c=r[1]<r[0],u=r[c-0],f=r[1-c],d=(f-u)/(e.length-i+2*s);return n=l(u+d*s,d),c&&n.reverse(),a=d*(1-i),t={t:"rangeBands",a:arguments},o},o.rangeRoundBands=function(r,i,s){arguments.length<2&&(i=0),arguments.length<3&&(s=i);var c=r[1]<r[0],u=r[c-0],f=r[1-c],d=Math.floor((f-u)/(e.length-i+2*s));return n=l(u+Math.round((f-u-(e.length-i)*d)/2),d),c&&n.reverse(),a=Math.round(d*(1-i)),t={t:"rangeRoundBands",a:arguments},o},o.rangeBand=function(){return a},o.rangeExtent=function(){return qn(t.a[0])},o.copy=function(){return oa(e,t)},o.domain(e)}i.scale.pow=function(){return aa(i.scale.linear(),1,[0,1])},i.scale.sqrt=function(){return i.scale.pow().exponent(.5)},i.scale.ordinal=function(){return oa([],{t:"range",a:[[]]})},i.scale.category10=function(){return i.scale.ordinal().range(la)},i.scale.category20=function(){return i.scale.ordinal().range(sa)},i.scale.category20b=function(){return i.scale.ordinal().range(ca)},i.scale.category20c=function(){return i.scale.ordinal().range(ua)};var la=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map(ot),sa=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map(ot),ca=[3750777,5395619,7040719,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map(ot),ua=[3244733,7057110,10406625,13032431,15095053,16616764,16625259,16634018,3253076,7652470,10607003,13101504,7695281,10394312,12369372,14342891,6513507,9868950,12434877,14277081].map(ot);function fa(e,t){var r;function n(){var n=0,o=t.length;for(r=[];++n<o;)r[n-1]=i.quantile(e,n/o);return a}function a(e){if(!isNaN(e=+e))return t[i.bisect(r,e)]}return a.domain=function(t){return arguments.length?(e=t.map(y).filter(m).sort(v),n()):e},a.range=function(e){return arguments.length?(t=e,n()):t},a.quantiles=function(){return r},a.invertExtent=function(n){return(n=t.indexOf(n))<0?[NaN,NaN]:[n>0?r[n-1]:e[0],n<r.length?r[n]:e[e.length-1]]},a.copy=function(){return fa(e,t)},n()}function da(e,t,r){var n,a;function i(t){return r[Math.max(0,Math.min(a,Math.floor(n*(t-e))))]}function o(){return n=r.length/(t-e),a=r.length-1,i}return i.domain=function(r){return arguments.length?(e=+r[0],t=+r[r.length-1],o()):[e,t]},i.range=function(e){return arguments.length?(r=e,o()):r},i.invertExtent=function(t){return[t=(t=r.indexOf(t))<0?NaN:t/n+e,t+1/n]},i.copy=function(){return da(e,t,r)},o()}function pa(e,t){function r(r){if(r<=r)return t[i.bisect(e,r)]}return r.domain=function(t){return arguments.length?(e=t,r):e},r.range=function(e){return arguments.length?(t=e,r):t},r.invertExtent=function(r){return r=t.indexOf(r),[e[r-1],e[r]]},r.copy=function(){return pa(e,t)},r}function ha(e){function t(e){return+e}return t.invert=t,t.domain=t.range=function(r){return arguments.length?(e=r.map(t),t):e},t.ticks=function(t){return ta(e,t)},t.tickFormat=function(t,r){return d3_scale_linearTickFormat(e,t,r)},t.copy=function(){return ha(e)},t}function ga(){return 0}i.scale.quantile=function(){return fa([],[])},i.scale.quantize=function(){return da(0,1,[0,1])},i.scale.threshold=function(){return pa([.5],[0,1])},i.scale.identity=function(){return ha([0,1])},i.svg={},i.svg.arc=function(){var e=ya,t=ma,r=ga,n=va,a=ba,i=xa,o=wa;function l(){var l=Math.max(0,+e.apply(this,arguments)),c=Math.max(0,+t.apply(this,arguments)),u=a.apply(this,arguments)-Pe,f=i.apply(this,arguments)-Pe,d=Math.abs(f-u),p=u>f?0:1;if(c<l&&(h=c,c=l,l=h),d>=Le)return s(c,p)+(l?s(l,1-p):"")+"Z";var h,g,v,y,m,b,x,w,_,k,T,A,S=0,M=0,O=[];if((y=(+o.apply(this,arguments)||0)/2)&&(v=n===va?Math.sqrt(l*l+c*c):+n.apply(this,arguments),p||(M*=-1),c&&(M=De(v/c*Math.sin(y))),l&&(S=De(v/l*Math.sin(y)))),c){m=c*Math.cos(u+M),b=c*Math.sin(u+M),x=c*Math.cos(f-M),w=c*Math.sin(f-M);var C=Math.abs(f-u-2*M)<=Ce?0:1;if(M&&_a(m,b,x,w)===p^C){var E=(u+f)/2;m=c*Math.cos(E),b=c*Math.sin(E),x=w=null}}else m=b=0;if(l){_=l*Math.cos(f-S),k=l*Math.sin(f-S),T=l*Math.cos(u+S),A=l*Math.sin(u+S);var L=Math.abs(u-f+2*S)<=Ce?0:1;if(S&&_a(_,k,T,A)===1-p^L){var P=(u+f)/2;_=l*Math.cos(P),k=l*Math.sin(P),T=A=null}}else _=k=0;if(d>Oe&&(h=Math.min(Math.abs(c-l)/2,+r.apply(this,arguments)))>.001){g=l<c^p?0:1;var j=h,z=h;if(d<Ce){var D=null==T?[_,k]:null==x?[m,b]:jt([m,b],[T,A],[x,w],[_,k]),I=m-D[0],N=b-D[1],R=x-D[0],F=w-D[1],B=1/Math.sin(Math.acos((I*R+N*F)/(Math.sqrt(I*I+N*N)*Math.sqrt(R*R+F*F)))/2),U=Math.sqrt(D[0]*D[0]+D[1]*D[1]);z=Math.min(h,(l-U)/(B-1)),j=Math.min(h,(c-U)/(B+1))}if(null!=x){var H=ka(null==T?[_,k]:[T,A],[m,b],c,j,p),V=ka([x,w],[_,k],c,j,p);h===j?O.push("M",H[0],"A",j,",",j," 0 0,",g," ",H[1],"A",c,",",c," 0 ",1-p^_a(H[1][0],H[1][1],V[1][0],V[1][1]),",",p," ",V[1],"A",j,",",j," 0 0,",g," ",V[0]):O.push("M",H[0],"A",j,",",j," 0 1,",g," ",V[0])}else O.push("M",m,",",b);if(null!=T){var q=ka([m,b],[T,A],l,-z,p),W=ka([_,k],null==x?[m,b]:[x,w],l,-z,p);h===z?O.push("L",W[0],"A",z,",",z," 0 0,",g," ",W[1],"A",l,",",l," 0 ",p^_a(W[1][0],W[1][1],q[1][0],q[1][1]),",",1-p," ",q[1],"A",z,",",z," 0 0,",g," ",q[0]):O.push("L",W[0],"A",z,",",z," 0 0,",g," ",q[0])}else O.push("L",_,",",k)}else O.push("M",m,",",b),null!=x&&O.push("A",c,",",c," 0 ",C,",",p," ",x,",",w),O.push("L",_,",",k),null!=T&&O.push("A",l,",",l," 0 ",L,",",1-p," ",T,",",A);return O.push("Z"),O.join("")}function s(e,t){return"M0,"+e+"A"+e+","+e+" 0 1,"+t+" 0,"+-e+"A"+e+","+e+" 0 1,"+t+" 0,"+e}return l.innerRadius=function(t){return arguments.length?(e=gt(t),l):e},l.outerRadius=function(e){return arguments.length?(t=gt(e),l):t},l.cornerRadius=function(e){return arguments.length?(r=gt(e),l):r},l.padRadius=function(e){return arguments.length?(n=e==va?va:gt(e),l):n},l.startAngle=function(e){return arguments.length?(a=gt(e),l):a},l.endAngle=function(e){return arguments.length?(i=gt(e),l):i},l.padAngle=function(e){return arguments.length?(o=gt(e),l):o},l.centroid=function(){var r=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,n=(+a.apply(this,arguments)+ +i.apply(this,arguments))/2-Pe;return[Math.cos(n)*r,Math.sin(n)*r]},l};var va="auto";function ya(e){return e.innerRadius}function ma(e){return e.outerRadius}function ba(e){return e.startAngle}function xa(e){return e.endAngle}function wa(e){return e&&e.padAngle}function _a(e,t,r,n){return(e-r)*t-(t-n)*e>0?0:1}function ka(e,t,r,n,a){var i=e[0]-t[0],o=e[1]-t[1],l=(a?n:-n)/Math.sqrt(i*i+o*o),s=l*o,c=-l*i,u=e[0]+s,f=e[1]+c,d=t[0]+s,p=t[1]+c,h=(u+d)/2,g=(f+p)/2,v=d-u,y=p-f,m=v*v+y*y,b=r-n,x=u*p-d*f,w=(y<0?-1:1)*Math.sqrt(Math.max(0,b*b*m-x*x)),_=(x*y-v*w)/m,k=(-x*v-y*w)/m,T=(x*y+v*w)/m,A=(-x*v+y*w)/m,S=_-h,M=k-g,O=T-h,C=A-g;return S*S+M*M>O*O+C*C&&(_=T,k=A),[[_-s,k-c],[_*r/b,k*r/b]]}function Ta(){return!0}function Aa(e){var t=Mt,r=Ot,n=Ta,a=Ma,i=a.key,o=.7;function l(i){var l,s=[],c=[],u=-1,f=i.length,d=gt(t),p=gt(r);function h(){s.push("M",a(e(c),o))}for(;++u<f;)n.call(this,l=i[u],u)?c.push([+d.call(this,l,u),+p.call(this,l,u)]):c.length&&(h(),c=[]);return c.length&&h(),s.length?s.join(""):null}return l.x=function(e){return arguments.length?(t=e,l):t},l.y=function(e){return arguments.length?(r=e,l):r},l.defined=function(e){return arguments.length?(n=e,l):n},l.interpolate=function(e){return arguments.length?(i="function"===typeof e?a=e:(a=Sa.get(e)||Ma).key,l):i},l.tension=function(e){return arguments.length?(o=e,l):o},l}i.svg.line=function(){return Aa(z)};var Sa=i.map({linear:Ma,"linear-closed":Oa,step:function(e){var t=0,r=e.length,n=e[0],a=[n[0],",",n[1]];for(;++t<r;)a.push("H",(n[0]+(n=e[t])[0])/2,"V",n[1]);r>1&&a.push("H",n[0]);return a.join("")},"step-before":Ca,"step-after":Ea,basis:ja,"basis-open":function(e){if(e.length<4)return Ma(e);var t,r=[],n=-1,a=e.length,i=[0],o=[0];for(;++n<3;)t=e[n],i.push(t[0]),o.push(t[1]);r.push(za(Na,i)+","+za(Na,o)),--n;for(;++n<a;)t=e[n],i.shift(),i.push(t[0]),o.shift(),o.push(t[1]),Ra(r,i,o);return r.join("")},"basis-closed":function(e){var t,r,n=-1,a=e.length,i=a+4,o=[],l=[];for(;++n<4;)r=e[n%a],o.push(r[0]),l.push(r[1]);t=[za(Na,o),",",za(Na,l)],--n;for(;++n<i;)r=e[n%a],o.shift(),o.push(r[0]),l.shift(),l.push(r[1]),Ra(t,o,l);return t.join("")},bundle:function(e,t){var r=e.length-1;if(r)for(var n,a,i=e[0][0],o=e[0][1],l=e[r][0]-i,s=e[r][1]-o,c=-1;++c<=r;)n=e[c],a=c/r,n[0]=t*n[0]+(1-t)*(i+a*l),n[1]=t*n[1]+(1-t)*(o+a*s);return ja(e)},cardinal:function(e,t){return e.length<3?Ma(e):e[0]+La(e,Pa(e,t))},"cardinal-open":function(e,t){return e.length<4?Ma(e):e[1]+La(e.slice(1,-1),Pa(e,t))},"cardinal-closed":function(e,t){return e.length<3?Oa(e):e[0]+La((e.push(e[0]),e),Pa([e[e.length-2]].concat(e,[e[1]]),t))},monotone:function(e){return e.length<3?Ma(e):e[0]+La(e,function(e){var t,r,n,a,i=[],o=function(e){var t=0,r=e.length-1,n=[],a=e[0],i=e[1],o=n[0]=Fa(a,i);for(;++t<r;)n[t]=(o+(o=Fa(a=i,i=e[t+1])))/2;return n[t]=o,n}(e),l=-1,s=e.length-1;for(;++l<s;)t=Fa(e[l],e[l+1]),_(t)<Oe?o[l]=o[l+1]=0:(a=(r=o[l]/t)*r+(n=o[l+1]/t)*n)>9&&(a=3*t/Math.sqrt(a),o[l]=a*r,o[l+1]=a*n);l=-1;for(;++l<=s;)a=(e[Math.min(s,l+1)][0]-e[Math.max(0,l-1)][0])/(6*(1+o[l]*o[l])),i.push([a||0,o[l]*a||0]);return i}(e))}});function Ma(e){return e.length>1?e.join("L"):e+"Z"}function Oa(e){return e.join("L")+"Z"}function Ca(e){for(var t=0,r=e.length,n=e[0],a=[n[0],",",n[1]];++t<r;)a.push("V",(n=e[t])[1],"H",n[0]);return a.join("")}function Ea(e){for(var t=0,r=e.length,n=e[0],a=[n[0],",",n[1]];++t<r;)a.push("H",(n=e[t])[0],"V",n[1]);return a.join("")}function La(e,t){if(t.length<1||e.length!=t.length&&e.length!=t.length+2)return Ma(e);var r=e.length!=t.length,n="",a=e[0],i=e[1],o=t[0],l=o,s=1;if(r&&(n+="Q"+(i[0]-2*o[0]/3)+","+(i[1]-2*o[1]/3)+","+i[0]+","+i[1],a=e[1],s=2),t.length>1){l=t[1],i=e[s],s++,n+="C"+(a[0]+o[0])+","+(a[1]+o[1])+","+(i[0]-l[0])+","+(i[1]-l[1])+","+i[0]+","+i[1];for(var c=2;c<t.length;c++,s++)i=e[s],l=t[c],n+="S"+(i[0]-l[0])+","+(i[1]-l[1])+","+i[0]+","+i[1]}if(r){var u=e[s];n+="Q"+(i[0]+2*l[0]/3)+","+(i[1]+2*l[1]/3)+","+u[0]+","+u[1]}return n}function Pa(e,t){for(var r,n=[],a=(1-t)/2,i=e[0],o=e[1],l=1,s=e.length;++l<s;)r=i,i=o,o=e[l],n.push([a*(o[0]-r[0]),a*(o[1]-r[1])]);return n}function ja(e){if(e.length<3)return Ma(e);var t=1,r=e.length,n=e[0],a=n[0],i=n[1],o=[a,a,a,(n=e[1])[0]],l=[i,i,i,n[1]],s=[a,",",i,"L",za(Na,o),",",za(Na,l)];for(e.push(e[r-1]);++t<=r;)n=e[t],o.shift(),o.push(n[0]),l.shift(),l.push(n[1]),Ra(s,o,l);return e.pop(),s.push("L",n),s.join("")}function za(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3]}Sa.forEach((function(e,t){t.key=e,t.closed=/-closed$/.test(e)}));var Da=[0,2/3,1/3,0],Ia=[0,1/3,2/3,0],Na=[0,1/6,2/3,1/6];function Ra(e,t,r){e.push("C",za(Da,t),",",za(Da,r),",",za(Ia,t),",",za(Ia,r),",",za(Na,t),",",za(Na,r))}function Fa(e,t){return(t[1]-e[1])/(t[0]-e[0])}function Ba(e){for(var t,r,n,a=-1,i=e.length;++a<i;)r=(t=e[a])[0],n=t[1]-Pe,t[0]=r*Math.cos(n),t[1]=r*Math.sin(n);return e}function Ua(e){var t=Mt,r=Mt,n=0,a=Ot,i=Ta,o=Ma,l=o.key,s=o,c="L",u=.7;function f(l){var f,d,p,h=[],g=[],v=[],y=-1,m=l.length,b=gt(t),x=gt(n),w=t===r?function(){return d}:gt(r),_=n===a?function(){return p}:gt(a);function k(){h.push("M",o(e(v),u),c,s(e(g.reverse()),u),"Z")}for(;++y<m;)i.call(this,f=l[y],y)?(g.push([d=+b.call(this,f,y),p=+x.call(this,f,y)]),v.push([+w.call(this,f,y),+_.call(this,f,y)])):g.length&&(k(),g=[],v=[]);return g.length&&k(),h.length?h.join(""):null}return f.x=function(e){return arguments.length?(t=r=e,f):r},f.x0=function(e){return arguments.length?(t=e,f):t},f.x1=function(e){return arguments.length?(r=e,f):r},f.y=function(e){return arguments.length?(n=a=e,f):a},f.y0=function(e){return arguments.length?(n=e,f):n},f.y1=function(e){return arguments.length?(a=e,f):a},f.defined=function(e){return arguments.length?(i=e,f):i},f.interpolate=function(e){return arguments.length?(l="function"===typeof e?o=e:(o=Sa.get(e)||Ma).key,s=o.reverse||o,c=o.closed?"M":"L",f):l},f.tension=function(e){return arguments.length?(u=e,f):u},f}function Ha(e){return e.source}function Va(e){return e.target}function qa(e){return e.radius}function Wa(e){return[e.x,e.y]}function Ya(e){return function(){var t=e.apply(this,arguments),r=t[0],n=t[1]-Pe;return[r*Math.cos(n),r*Math.sin(n)]}}function Ga(){return 64}function Xa(){return"circle"}function Za(e){var t=Math.sqrt(e/Ce);return"M0,"+t+"A"+t+","+t+" 0 1,1 0,"+-t+"A"+t+","+t+" 0 1,1 0,"+t+"Z"}i.svg.line.radial=function(){var e=Aa(Ba);return e.radius=e.x,delete e.x,e.angle=e.y,delete e.y,e},Ca.reverse=Ea,Ea.reverse=Ca,i.svg.area=function(){return Ua(z)},i.svg.area.radial=function(){var e=Ua(Ba);return e.radius=e.x,delete e.x,e.innerRadius=e.x0,delete e.x0,e.outerRadius=e.x1,delete e.x1,e.angle=e.y,delete e.y,e.startAngle=e.y0,delete e.y0,e.endAngle=e.y1,delete e.y1,e},i.svg.chord=function(){var e=Ha,t=Va,r=qa,n=ba,a=xa;function i(r,n){var a,i,c=o(this,e,r,n),u=o(this,t,r,n);return"M"+c.p0+l(c.r,c.p1,c.a1-c.a0)+(i=u,((a=c).a0==i.a0&&a.a1==i.a1?s(c.r,c.p1,c.r,c.p0):s(c.r,c.p1,u.r,u.p0)+l(u.r,u.p1,u.a1-u.a0)+s(u.r,u.p1,c.r,c.p0))+"Z")}function o(e,t,i,o){var l=t.call(e,i,o),s=r.call(e,l,o),c=n.call(e,l,o)-Pe,u=a.call(e,l,o)-Pe;return{r:s,a0:c,a1:u,p0:[s*Math.cos(c),s*Math.sin(c)],p1:[s*Math.cos(u),s*Math.sin(u)]}}function l(e,t,r){return"A"+e+","+e+" 0 "+ +(r>Ce)+",1 "+t}function s(e,t,r,n){return"Q 0,0 "+n}return i.radius=function(e){return arguments.length?(r=gt(e),i):r},i.source=function(t){return arguments.length?(e=gt(t),i):e},i.target=function(e){return arguments.length?(t=gt(e),i):t},i.startAngle=function(e){return arguments.length?(n=gt(e),i):n},i.endAngle=function(e){return arguments.length?(a=gt(e),i):a},i},i.svg.diagonal=function(){var e=Ha,t=Va,r=Wa;function n(n,a){var i=e.call(this,n,a),o=t.call(this,n,a),l=(i.y+o.y)/2,s=[i,{x:i.x,y:l},{x:o.x,y:l},o];return"M"+(s=s.map(r))[0]+"C"+s[1]+" "+s[2]+" "+s[3]}return n.source=function(t){return arguments.length?(e=gt(t),n):e},n.target=function(e){return arguments.length?(t=gt(e),n):t},n.projection=function(e){return arguments.length?(r=e,n):r},n},i.svg.diagonal.radial=function(){var e=i.svg.diagonal(),t=Wa,r=e.projection;return e.projection=function(e){return arguments.length?r(Ya(t=e)):t},e},i.svg.symbol=function(){var e=Xa,t=Ga;function r(r,n){return($a.get(e.call(this,r,n))||Za)(t.call(this,r,n))}return r.type=function(t){return arguments.length?(e=gt(t),r):e},r.size=function(e){return arguments.length?(t=gt(e),r):t},r};var $a=i.map({circle:Za,cross:function(e){var t=Math.sqrt(e/5)/2;return"M"+-3*t+","+-t+"H"+-t+"V"+-3*t+"H"+t+"V"+-t+"H"+3*t+"V"+t+"H"+t+"V"+3*t+"H"+-t+"V"+t+"H"+-3*t+"Z"},diamond:function(e){var t=Math.sqrt(e/(2*Ka)),r=t*Ka;return"M0,"+-t+"L"+r+",0 0,"+t+" "+-r+",0Z"},square:function(e){var t=Math.sqrt(e)/2;return"M"+-t+","+-t+"L"+t+","+-t+" "+t+","+t+" "+-t+","+t+"Z"},"triangle-down":function(e){var t=Math.sqrt(e/Qa),r=t*Qa/2;return"M0,"+r+"L"+t+","+-r+" "+-t+","+-r+"Z"},"triangle-up":function(e){var t=Math.sqrt(e/Qa),r=t*Qa/2;return"M0,"+-r+"L"+t+","+r+" "+-t+","+r+"Z"}});i.svg.symbolTypes=$a.keys();var Qa=Math.sqrt(3),Ka=Math.tan(30*je);$.transition=function(e){for(var t,r,n=ri||++ii,a=si(e),i=[],o=ni||{time:Date.now(),ease:zr,delay:0,duration:250},l=-1,s=this.length;++l<s;){i.push(t=[]);for(var c=this[l],u=-1,f=c.length;++u<f;)(r=c[u])&&ci(r,u,a,n,o),t.push(r)}return ti(i,a,n)},$.interrupt=function(e){return this.each(null==e?Ja:ei(si(e)))};var Ja=ei(si());function ei(e){return function(){var t,r,n;(t=this[e])&&(n=t[r=t.active])&&(n.timer.c=null,n.timer.t=NaN,--t.count?delete t[r]:delete this[e],t.active+=.5,n.event&&n.event.interrupt.call(this,this.__data__,n.index))}}function ti(e,t,r){return W(e,ai),e.namespace=t,e.id=r,e}var ri,ni,ai=[],ii=0;function oi(e,t,r,n){var a=e.id,i=e.namespace;return he(e,"function"===typeof r?function(e,o,l){e[i][a].tween.set(t,n(r.call(e,e.__data__,o,l)))}:(r=n(r),function(e){e[i][a].tween.set(t,r)}))}function li(e){return null==e&&(e=""),function(){this.textContent=e}}function si(e){return null==e?"__transition__":"__transition_"+e+"__"}function ci(e,t,r,n,a){var i,o,l,s,c,u=e[r]||(e[r]={active:0,count:0}),f=u[n];function d(r){var a=u.active,d=u[a];for(var h in d&&(d.timer.c=null,d.timer.t=NaN,--u.count,delete u[a],d.event&&d.event.interrupt.call(e,e.__data__,d.index)),u)if(+h<n){var g=u[h];g.timer.c=null,g.timer.t=NaN,--u.count,delete u[h]}o.c=p,kt((function(){return o.c&&p(r||1)&&(o.c=null,o.t=NaN),1}),0,i),u.active=n,f.event&&f.event.start.call(e,e.__data__,t),c=[],f.tween.forEach((function(r,n){(n=n.call(e,e.__data__,t))&&c.push(n)})),s=f.ease,l=f.duration}function p(a){for(var i=a/l,o=s(i),d=c.length;d>0;)c[--d].call(e,o);if(i>=1)return f.event&&f.event.end.call(e,e.__data__,t),--u.count?delete u[n]:delete e[r],1}f||(i=a.time,o=kt((function(e){var t=f.delay;if(o.t=t+i,t<=e)return d(e-t);o.c=d}),0,i),f=u[n]={tween:new A,time:i,timer:o,delay:a.delay,duration:a.duration,ease:a.ease,index:t},a=null,++u.count)}ai.call=$.call,ai.empty=$.empty,ai.node=$.node,ai.size=$.size,i.transition=function(e,t){return e&&e.transition?ri?e.transition(t):e:i.selection().transition(e)},i.transition.prototype=ai,ai.select=function(e){var t,r,n,a=this.id,i=this.namespace,o=[];e=Q(e);for(var l=-1,s=this.length;++l<s;){o.push(t=[]);for(var c=this[l],u=-1,f=c.length;++u<f;)(n=c[u])&&(r=e.call(n,n.__data__,u,l))?("__data__"in n&&(r.__data__=n.__data__),ci(r,u,i,a,n[i][a]),t.push(r)):t.push(null)}return ti(o,i,a)},ai.selectAll=function(e){var t,r,n,a,i,o=this.id,l=this.namespace,s=[];e=K(e);for(var c=-1,u=this.length;++c<u;)for(var f=this[c],d=-1,p=f.length;++d<p;)if(n=f[d]){i=n[l][o],r=e.call(n,n.__data__,d,c),s.push(t=[]);for(var h=-1,g=r.length;++h<g;)(a=r[h])&&ci(a,h,l,o,i),t.push(a)}return ti(s,l,o)},ai.filter=function(e){var t,r,n=[];"function"!==typeof e&&(e=de(e));for(var a=0,i=this.length;a<i;a++){n.push(t=[]);for(var o,l=0,s=(o=this[a]).length;l<s;l++)(r=o[l])&&e.call(r,r.__data__,l,a)&&t.push(r)}return ti(n,this.namespace,this.id)},ai.tween=function(e,t){var r=this.id,n=this.namespace;return arguments.length<2?this.node()[n][r].tween.get(e):he(this,null==t?function(t){t[n][r].tween.remove(e)}:function(a){a[n][r].tween.set(e,t)})},ai.attr=function(e,t){if(arguments.length<2){for(t in e)this.attr(t,e[t]);return this}var r="transform"==e?Wr:Tr,n=i.ns.qualify(e);function a(){this.removeAttribute(n)}function o(){this.removeAttributeNS(n.space,n.local)}function l(e){return null==e?a:(e+="",function(){var t,a=this.getAttribute(n);return a!==e&&(t=r(a,e),function(e){this.setAttribute(n,t(e))})})}function s(e){return null==e?o:(e+="",function(){var t,a=this.getAttributeNS(n.space,n.local);return a!==e&&(t=r(a,e),function(e){this.setAttributeNS(n.space,n.local,t(e))})})}return oi(this,"attr."+e,t,n.local?s:l)},ai.attrTween=function(e,t){var r=i.ns.qualify(e);return this.tween("attr."+e,r.local?function(e,n){var a=t.call(this,e,n,this.getAttributeNS(r.space,r.local));return a&&function(e){this.setAttributeNS(r.space,r.local,a(e))}}:function(e,n){var a=t.call(this,e,n,this.getAttribute(r));return a&&function(e){this.setAttribute(r,a(e))}})},ai.style=function(e,t,r){var n=arguments.length;if(n<3){if("string"!==typeof e){for(r in n<2&&(t=""),e)this.style(r,e[r],t);return this}r=""}function a(){this.style.removeProperty(e)}function i(t){return null==t?a:(t+="",function(){var n,a=u(this).getComputedStyle(this,null).getPropertyValue(e);return a!==t&&(n=Tr(a,t),function(t){this.style.setProperty(e,n(t),r)})})}return oi(this,"style."+e,t,i)},ai.styleTween=function(e,t,r){function n(n,a){var i=t.call(this,n,a,u(this).getComputedStyle(this,null).getPropertyValue(e));return i&&function(t){this.style.setProperty(e,i(t),r)}}return arguments.length<3&&(r=""),this.tween("style."+e,n)},ai.text=function(e){return oi(this,"text",e,li)},ai.remove=function(){var e=this.namespace;return this.each("end.transition",(function(){var t;this[e].count<2&&(t=this.parentNode)&&t.removeChild(this)}))},ai.ease=function(e){var t=this.id,r=this.namespace;return arguments.length<1?this.node()[r][t].ease:("function"!==typeof e&&(e=i.ease.apply(i,arguments)),he(this,(function(n){n[r][t].ease=e})))},ai.delay=function(e){var t=this.id,r=this.namespace;return arguments.length<1?this.node()[r][t].delay:he(this,"function"===typeof e?function(n,a,i){n[r][t].delay=+e.call(n,n.__data__,a,i)}:(e=+e,function(n){n[r][t].delay=e}))},ai.duration=function(e){var t=this.id,r=this.namespace;return arguments.length<1?this.node()[r][t].duration:he(this,"function"===typeof e?function(n,a,i){n[r][t].duration=Math.max(1,e.call(n,n.__data__,a,i))}:(e=Math.max(1,e),function(n){n[r][t].duration=e}))},ai.each=function(e,t){var r=this.id,n=this.namespace;if(arguments.length<2){var a=ni,o=ri;try{ri=r,he(this,(function(t,a,i){ni=t[n][r],e.call(t,t.__data__,a,i)}))}finally{ni=a,ri=o}}else he(this,(function(a){var o=a[n][r];(o.event||(o.event=i.dispatch("start","end","interrupt"))).on(e,t)}));return this},ai.transition=function(){for(var e,t,r,n=this.id,a=++ii,i=this.namespace,o=[],l=0,s=this.length;l<s;l++){o.push(e=[]);for(var c,u=0,f=(c=this[l]).length;u<f;u++)(t=c[u])&&ci(t,u,i,a,{time:(r=t[i][n]).time,ease:r.ease,delay:r.delay+r.duration,duration:r.duration}),e.push(t)}return ti(o,i,a)},i.svg.axis=function(){var e,t=i.scale.linear(),r=ui,n=6,a=6,o=3,s=[10],c=null;function u(l){l.each((function(){var l,u=i.select(this),f=this.__chart__||t,d=this.__chart__=t.copy(),p=null==c?d.ticks?d.ticks.apply(d,s):d.domain():c,h=null==e?d.tickFormat?d.tickFormat.apply(d,s):z:e,g=u.selectAll(".tick").data(p,d),v=g.enter().insert("g",".domain").attr("class","tick").style("opacity",Oe),y=i.transition(g.exit()).style("opacity",Oe).remove(),m=i.transition(g.order()).style("opacity",1),b=Math.max(n,0)+o,x=Wn(d),w=u.selectAll(".domain").data([0]),_=(w.enter().append("path").attr("class","domain"),i.transition(w));v.append("line"),v.append("text");var k,T,A,S,M=v.select("line"),O=m.select("line"),C=g.select("text").text(h),E=v.select("text"),L=m.select("text"),P="top"===r||"left"===r?-1:1;if("bottom"===r||"top"===r?(l=di,k="x",A="y",T="x2",S="y2",C.attr("dy",P<0?"0em":".71em").style("text-anchor","middle"),_.attr("d","M"+x[0]+","+P*a+"V0H"+x[1]+"V"+P*a)):(l=pi,k="y",A="x",T="y2",S="x2",C.attr("dy",".32em").style("text-anchor",P<0?"end":"start"),_.attr("d","M"+P*a+","+x[0]+"H0V"+x[1]+"H"+P*a)),M.attr(S,P*n),E.attr(A,P*b),O.attr(T,0).attr(S,P*n),L.attr(k,0).attr(A,P*b),d.rangeBand){var j=d,D=j.rangeBand()/2;f=d=function(e){return j(e)+D}}else f.rangeBand?f=d:y.call(l,d,f);v.call(l,f,d),m.call(l,d,d)}))}return u.scale=function(e){return arguments.length?(t=e,u):t},u.orient=function(e){return arguments.length?(r=e in fi?e+"":ui,u):r},u.ticks=function(){return arguments.length?(s=l(arguments),u):s},u.tickValues=function(e){return arguments.length?(c=e,u):c},u.tickFormat=function(t){return arguments.length?(e=t,u):e},u.tickSize=function(e){var t=arguments.length;return t?(n=+e,a=+arguments[t-1],u):n},u.innerTickSize=function(e){return arguments.length?(n=+e,u):n},u.outerTickSize=function(e){return arguments.length?(a=+e,u):a},u.tickPadding=function(e){return arguments.length?(o=+e,u):o},u.tickSubdivide=function(){return arguments.length&&u},u};var ui="bottom",fi={top:1,right:1,bottom:1,left:1};function di(e,t,r){e.attr("transform",(function(e){var n=t(e);return"translate("+(isFinite(n)?n:r(e))+",0)"}))}function pi(e,t,r){e.attr("transform",(function(e){var n=t(e);return"translate(0,"+(isFinite(n)?n:r(e))+")"}))}i.svg.brush=function(){var e,t,r=V(d,"brushstart","brush","brushend"),n=null,a=null,o=[0,0],l=[0,0],s=!0,c=!0,f=gi[0];function d(e){e.each((function(){var e=i.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",v).on("touchstart.brush",v),t=e.selectAll(".background").data([0]);t.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),e.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var r=e.selectAll(".resize").data(f,z);r.exit().remove(),r.enter().append("g").attr("class",(function(e){return"resize "+e})).style("cursor",(function(e){return hi[e]})).append("rect").attr("x",(function(e){return/[ew]$/.test(e)?-3:null})).attr("y",(function(e){return/^[ns]/.test(e)?-3:null})).attr("width",6).attr("height",6).style("visibility","hidden"),r.style("display",d.empty()?"none":null);var o,l=i.transition(e),s=i.transition(t);n&&(o=Wn(n),s.attr("x",o[0]).attr("width",o[1]-o[0]),h(l)),a&&(o=Wn(a),s.attr("y",o[0]).attr("height",o[1]-o[0]),g(l)),p(l)}))}function p(e){e.selectAll(".resize").attr("transform",(function(e){return"translate("+o[+/e$/.test(e)]+","+l[+/^s/.test(e)]+")"}))}function h(e){e.select(".extent").attr("x",o[0]),e.selectAll(".extent,.n>rect,.s>rect").attr("width",o[1]-o[0])}function g(e){e.select(".extent").attr("y",l[0]),e.selectAll(".extent,.e>rect,.w>rect").attr("height",l[1]-l[0])}function v(){var f,v,y=this,m=i.select(i.event.target),b=r.of(y,arguments),x=i.select(y),w=m.datum(),_=!/^(n|s)$/.test(w)&&n,k=!/^(e|w)$/.test(w)&&a,T=m.classed("extent"),A=Te(y),S=i.mouse(y),M=i.select(u(y)).on("keydown.brush",E).on("keyup.brush",L);if(i.event.changedTouches?M.on("touchmove.brush",P).on("touchend.brush",z):M.on("mousemove.brush",P).on("mouseup.brush",z),x.interrupt().selectAll("*").interrupt(),T)S[0]=o[0]-S[0],S[1]=l[0]-S[1];else if(w){var O=+/w$/.test(w),C=+/^n/.test(w);v=[o[1-O]-S[0],l[1-C]-S[1]],S[0]=o[O],S[1]=l[C]}else i.event.altKey&&(f=S.slice());function E(){32==i.event.keyCode&&(T||(f=null,S[0]-=o[1],S[1]-=l[1],T=2),U())}function L(){32==i.event.keyCode&&2==T&&(S[0]+=o[1],S[1]+=l[1],T=0,U())}function P(){var e=i.mouse(y),t=!1;v&&(e[0]+=v[0],e[1]+=v[1]),T||(i.event.altKey?(f||(f=[(o[0]+o[1])/2,(l[0]+l[1])/2]),S[0]=o[+(e[0]<f[0])],S[1]=l[+(e[1]<f[1])]):f=null),_&&j(e,n,0)&&(h(x),t=!0),k&&j(e,a,1)&&(g(x),t=!0),t&&(p(x),b({type:"brush",mode:T?"move":"resize"}))}function j(r,n,a){var i,u,d=Wn(n),p=d[0],h=d[1],g=S[a],v=a?l:o,y=v[1]-v[0];if(T&&(p-=g,h-=y+g),i=(a?c:s)?Math.max(p,Math.min(h,r[a])):r[a],T?u=(i+=g)+y:(f&&(g=Math.max(p,Math.min(h,2*f[a]-i))),g<i?(u=i,i=g):u=g),v[0]!=i||v[1]!=u)return a?t=null:e=null,v[0]=i,v[1]=u,!0}function z(){P(),x.style("pointer-events","all").selectAll(".resize").style("display",d.empty()?"none":null),i.select("body").style("cursor",null),M.on("mousemove.brush",null).on("mouseup.brush",null).on("touchmove.brush",null).on("touchend.brush",null).on("keydown.brush",null).on("keyup.brush",null),A(),b({type:"brushend"})}x.style("pointer-events","none").selectAll(".resize").style("display",null),i.select("body").style("cursor",m.style("cursor")),b({type:"brushstart"}),P()}return d.event=function(n){n.each((function(){var n=r.of(this,arguments),a={x:o,y:l,i:e,j:t},s=this.__chart__||a;this.__chart__=a,ri?i.select(this).transition().each("start.brush",(function(){e=s.i,t=s.j,o=s.x,l=s.y,n({type:"brushstart"})})).tween("brush:brush",(function(){var r=Ar(o,a.x),i=Ar(l,a.y);return e=t=null,function(e){o=a.x=r(e),l=a.y=i(e),n({type:"brush",mode:"resize"})}})).each("end.brush",(function(){e=a.i,t=a.j,n({type:"brush",mode:"resize"}),n({type:"brushend"})})):(n({type:"brushstart"}),n({type:"brush",mode:"resize"}),n({type:"brushend"}))}))},d.x=function(e){return arguments.length?(f=gi[!(n=e)<<1|!a],d):n},d.y=function(e){return arguments.length?(f=gi[!n<<1|!(a=e)],d):a},d.clamp=function(e){return arguments.length?(n&&a?(s=!!e[0],c=!!e[1]):n?s=!!e:a&&(c=!!e),d):n&&a?[s,c]:n?s:a?c:null},d.extent=function(r){var i,s,c,u,f;return arguments.length?(n&&(i=r[0],s=r[1],a&&(i=i[0],s=s[0]),e=[i,s],n.invert&&(i=n(i),s=n(s)),s<i&&(f=i,i=s,s=f),i==o[0]&&s==o[1]||(o=[i,s])),a&&(c=r[0],u=r[1],n&&(c=c[1],u=u[1]),t=[c,u],a.invert&&(c=a(c),u=a(u)),u<c&&(f=c,c=u,u=f),c==l[0]&&u==l[1]||(l=[c,u])),d):(n&&(e?(i=e[0],s=e[1]):(i=o[0],s=o[1],n.invert&&(i=n.invert(i),s=n.invert(s)),s<i&&(f=i,i=s,s=f))),a&&(t?(c=t[0],u=t[1]):(c=l[0],u=l[1],a.invert&&(c=a.invert(c),u=a.invert(u)),u<c&&(f=c,c=u,u=f))),n&&a?[[i,c],[s,u]]:n?[i,s]:a&&[c,u])},d.clear=function(){return d.empty()||(o=[0,0],l=[0,0],e=t=null),d},d.empty=function(){return!!n&&o[0]==o[1]||!!a&&l[0]==l[1]},i.rebind(d,r,"on")};var hi={n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},gi=[["n","e","s","w","nw","ne","se","sw"],["e","w"],["n","s"],[]];function vi(e){return JSON.parse(e.responseText)}function yi(e){var t=s.createRange();return t.selectNode(s.body),t.createContextualFragment(e.responseText)}i.text=vt((function(e){return e.responseText})),i.json=function(e,t){return yt(e,"application/json",vi,t)},i.html=function(e,t){return yt(e,"text/html",yi,t)},i.xml=vt((function(e){return e.responseXML})),this.d3=i,void 0===(a="function"===typeof(n=i)?n.call(t,r,t,e):n)||(e.exports=a)}).apply(self)},function(e,t,r){"use strict";var n=r(34),a=r(9),i=r(65).isTypedArray,o=e.exports={},l=r(45);o.defaults=l.defaults;var s=o.defaultLine=l.defaultLine;o.lightLine=l.lightLine;var c=o.background=l.background;function u(e){if(a(e)||"string"!==typeof e)return e;var t=e.trim();if("rgb"!==t.substr(0,3))return e;var r=t.match(/^rgba?\s*\(([^()]*)\)$/);if(!r)return e;var n=r[1].trim().split(/\s*[\s,]\s*/),i="a"===t.charAt(3)&&4===n.length;if(!i&&3!==n.length)return e;for(var o=0;o<n.length;o++){if(!n[o].length)return e;if(n[o]=Number(n[o]),!(n[o]>=0))return e;if(3===o)n[o]>1&&(n[o]=1);else if(n[o]>=1)return e}var l=Math.round(255*n[0])+", "+Math.round(255*n[1])+", "+Math.round(255*n[2]);return i?"rgba("+l+", "+n[3]+")":"rgb("+l+")"}o.tinyRGB=function(e){var t=e.toRgb();return"rgb("+Math.round(t.r)+", "+Math.round(t.g)+", "+Math.round(t.b)+")"},o.rgb=function(e){return o.tinyRGB(n(e))},o.opacity=function(e){return e?n(e).getAlpha():0},o.addOpacity=function(e,t){var r=n(e).toRgb();return"rgba("+Math.round(r.r)+", "+Math.round(r.g)+", "+Math.round(r.b)+", "+t+")"},o.combine=function(e,t){var r=n(e).toRgb();if(1===r.a)return n(e).toRgbString();var a=n(t||c).toRgb(),i=1===a.a?a:{r:255*(1-a.a)+a.r*a.a,g:255*(1-a.a)+a.g*a.a,b:255*(1-a.a)+a.b*a.a},o={r:i.r*(1-r.a)+r.r*r.a,g:i.g*(1-r.a)+r.g*r.a,b:i.b*(1-r.a)+r.b*r.a};return n(o).toRgbString()},o.contrast=function(e,t,r){var a=n(e);return 1!==a.getAlpha()&&(a=n(o.combine(e,c))),(a.isDark()?t?a.lighten(t):c:r?a.darken(r):s).toString()},o.stroke=function(e,t){var r=n(t);e.style({stroke:o.tinyRGB(r),"stroke-opacity":r.getAlpha()})},o.fill=function(e,t){var r=n(t);e.style({fill:o.tinyRGB(r),"fill-opacity":r.getAlpha()})},o.clean=function(e){if(e&&"object"===typeof e){var t,r,n,a,l=Object.keys(e);for(t=0;t<l.length;t++)if(a=e[n=l[t]],"color"===n.substr(n.length-5))if(Array.isArray(a))for(r=0;r<a.length;r++)a[r]=u(a[r]);else e[n]=u(a);else if("colorscale"===n.substr(n.length-10)&&Array.isArray(a))for(r=0;r<a.length;r++)Array.isArray(a[r])&&(a[r][1]=u(a[r][1]));else if(Array.isArray(a)){var s=a[0];if(!Array.isArray(s)&&s&&"object"===typeof s)for(r=0;r<a.length;r++)o.clean(a[r])}else a&&"object"===typeof a&&!i(a)&&o.clean(a)}}},function(e,t,r){"use strict";var n=r(476);e.exports=function(e){var t=typeof e;if("string"===t){var r=e;if(0===(e=+e)&&n(r))return!1}else if("number"!==t)return!1;return e-e<1}},function(e,t,r){"use strict";var n=r(7),a=r(0),i=a.numberFormat,o=r(9),l=r(34),s=r(5),c=r(8),u=r(75),f=a.strTranslate,d=r(25),p=r(74),h=r(33).LINE_SPACING,g=r(91).DESELECTDIM,v=r(30),y=r(256),m=r(40).appendArrayPointValue,b=e.exports={};function x(e,t,r){var n=t.fillpattern,a=n&&b.getPatternAttr(n.shape,0,"");if(a){var i=b.getPatternAttr(n.bgcolor,0,null),o=b.getPatternAttr(n.fgcolor,0,null),l=n.fgopacity,s=b.getPatternAttr(n.size,0,8),u=b.getPatternAttr(n.solidity,0,.3),f=t.uid;b.pattern(e,"point",r,f,a,s,u,void 0,n.fillmode,i,o,l)}else t.fillcolor&&e.call(c.fill,t.fillcolor)}b.font=function(e,t,r,n){a.isPlainObject(t)&&(n=t.color,r=t.size,t=t.family),t&&e.style("font-family",t),r+1&&e.style("font-size",r+"px"),n&&e.call(c.fill,n)},b.setPosition=function(e,t,r){e.attr("x",t).attr("y",r)},b.setSize=function(e,t,r){e.attr("width",t).attr("height",r)},b.setRect=function(e,t,r,n,a){e.call(b.setPosition,t,r).call(b.setSize,n,a)},b.translatePoint=function(e,t,r,n){var a=r.c2p(e.x),i=n.c2p(e.y);return!!(o(a)&&o(i)&&t.node())&&("text"===t.node().nodeName?t.attr("x",a).attr("y",i):t.attr("transform",f(a,i)),!0)},b.translatePoints=function(e,t,r){e.each((function(e){var a=n.select(this);b.translatePoint(e,a,t,r)}))},b.hideOutsideRangePoint=function(e,t,r,n,a,i){t.attr("display",r.isPtWithinRange(e,a)&&n.isPtWithinRange(e,i)?null:"none")},b.hideOutsideRangePoints=function(e,t){if(t._hasClipOnAxisFalse){var r=t.xaxis,a=t.yaxis;e.each((function(t){var i=t[0].trace,o=i.xcalendar,l=i.ycalendar,c=s.traceIs(i,"bar-like")?".bartext":".point,.textpoint";e.selectAll(c).each((function(e){b.hideOutsideRangePoint(e,n.select(this),r,a,o,l)}))}))}},b.crispRound=function(e,t,r){return t&&o(t)?e._context.staticPlot?t:t<1?1:Math.round(t):r||0},b.singleLineStyle=function(e,t,r,n,a){t.style("fill","none");var i=(((e||[])[0]||{}).trace||{}).line||{},o=r||i.width||0,l=a||i.dash||"";c.stroke(t,n||i.color),b.dashLine(t,l,o)},b.lineGroupStyle=function(e,t,r,a){e.style("fill","none").each((function(e){var i=(((e||[])[0]||{}).trace||{}).line||{},o=t||i.width||0,l=a||i.dash||"";n.select(this).call(c.stroke,r||i.color).call(b.dashLine,l,o)}))},b.dashLine=function(e,t,r){r=+r||0,t=b.dashStyle(t,r),e.style({"stroke-dasharray":t,"stroke-width":r+"px"})},b.dashStyle=function(e,t){t=+t||1;var r=Math.max(t,3);return"solid"===e?e="":"dot"===e?e=r+"px,"+r+"px":"dash"===e?e=3*r+"px,"+3*r+"px":"longdash"===e?e=5*r+"px,"+5*r+"px":"dashdot"===e?e=3*r+"px,"+r+"px,"+r+"px,"+r+"px":"longdashdot"===e&&(e=5*r+"px,"+2*r+"px,"+r+"px,"+2*r+"px"),e},b.singleFillStyle=function(e,t){var r=n.select(e.node());x(e,((r.data()[0]||[])[0]||{}).trace||{},t)},b.fillGroupStyle=function(e,t){e.style("stroke-width",0).each((function(e){var r=n.select(this);e[0].trace&&x(r,e[0].trace,t)}))};var w=r(528);b.symbolNames=[],b.symbolFuncs=[],b.symbolNeedLines={},b.symbolNoDot={},b.symbolNoFill={},b.symbolList=[],Object.keys(w).forEach((function(e){var t=w[e],r=t.n;b.symbolList.push(r,String(r),e,r+100,String(r+100),e+"-open"),b.symbolNames[r]=e,b.symbolFuncs[r]=t.f,t.needLine&&(b.symbolNeedLines[r]=!0),t.noDot?b.symbolNoDot[r]=!0:b.symbolList.push(r+200,String(r+200),e+"-dot",r+300,String(r+300),e+"-open-dot"),t.noFill&&(b.symbolNoFill[r]=!0)}));var _=b.symbolNames.length;function k(e,t){var r=e%100;return b.symbolFuncs[r](t)+(e>=200?"M0,0.5L0.5,0L0,-0.5L-0.5,0Z":"")}b.symbolNumber=function(e){if(o(e))e=+e;else if("string"===typeof e){var t=0;e.indexOf("-open")>0&&(t=100,e=e.replace("-open","")),e.indexOf("-dot")>0&&(t+=200,e=e.replace("-dot","")),(e=b.symbolNames.indexOf(e))>=0&&(e+=t)}return e%100>=_||e>=400?0:Math.floor(Math.max(e,0))};var T={x1:1,x2:0,y1:0,y2:0},A={x1:0,x2:0,y1:1,y2:0},S=i("~f"),M={radial:{node:"radialGradient"},radialreversed:{node:"radialGradient",reversed:!0},horizontal:{node:"linearGradient",attrs:T},horizontalreversed:{node:"linearGradient",attrs:T,reversed:!0},vertical:{node:"linearGradient",attrs:A},verticalreversed:{node:"linearGradient",attrs:A,reversed:!0}};b.gradient=function(e,t,r,i,o,s){for(var u=o.length,f=M[i],d=new Array(u),p=0;p<u;p++)f.reversed?d[u-1-p]=[S(100*(1-o[p][0])),o[p][1]]:d[p]=[S(100*o[p][0]),o[p][1]];var h=t._fullLayout,g="g"+h._uid+"-"+r,v=h._defs.select(".gradients").selectAll("#"+g).data([i+d.join(";")],a.identity);v.exit().remove(),v.enter().append(f.node).each((function(){var e=n.select(this);f.attrs&&e.attr(f.attrs),e.attr("id",g);var t=e.selectAll("stop").data(d);t.exit().remove(),t.enter().append("stop"),t.each((function(e){var t=l(e[1]);n.select(this).attr({offset:e[0]+"%","stop-color":c.tinyRGB(t),"stop-opacity":t.getAlpha()})}))})),e.style(s,I(g,t)).style(s+"-opacity",null),e.classed("gradient_filled",!0)},b.pattern=function(e,t,r,i,o,l,s,u,f,d,p,h){var g="legend"===t;u&&("overlay"===f?(d=u,p=c.contrast(d)):(d=void 0,p=u));var v,y,m,b,x,w,_,k,T,A,S,M=r._fullLayout,O="p"+M._uid+"-"+i,C={};switch(o){case"/":v=l*Math.sqrt(2),y=l*Math.sqrt(2),w="path",C={d:m="M-"+v/4+","+y/4+"l"+v/2+",-"+y/2+"M0,"+y+"L"+v+",0M"+v/4*3+","+y/4*5+"l"+v/2+",-"+y/2,opacity:h,stroke:p,"stroke-width":(b=s*l)+"px"};break;case"\\":v=l*Math.sqrt(2),y=l*Math.sqrt(2),w="path",C={d:m="M"+v/4*3+",-"+y/4+"l"+v/2+","+y/2+"M0,0L"+v+","+y+"M-"+v/4+","+y/4*3+"l"+v/2+","+y/2,opacity:h,stroke:p,"stroke-width":(b=s*l)+"px"};break;case"x":v=l*Math.sqrt(2),y=l*Math.sqrt(2),m="M-"+v/4+","+y/4+"l"+v/2+",-"+y/2+"M0,"+y+"L"+v+",0M"+v/4*3+","+y/4*5+"l"+v/2+",-"+y/2+"M"+v/4*3+",-"+y/4+"l"+v/2+","+y/2+"M0,0L"+v+","+y+"M-"+v/4+","+y/4*3+"l"+v/2+","+y/2,b=l-l*Math.sqrt(1-s),w="path",C={d:m,opacity:h,stroke:p,"stroke-width":b+"px"};break;case"|":w="path",w="path",C={d:m="M"+(v=l)/2+",0L"+v/2+","+(y=l),opacity:h,stroke:p,"stroke-width":(b=s*l)+"px"};break;case"-":w="path",w="path",C={d:m="M0,"+(y=l)/2+"L"+(v=l)+","+y/2,opacity:h,stroke:p,"stroke-width":(b=s*l)+"px"};break;case"+":w="path",m="M"+(v=l)/2+",0L"+v/2+","+(y=l)+"M0,"+y/2+"L"+v+","+y/2,b=l-l*Math.sqrt(1-s),w="path",C={d:m,opacity:h,stroke:p,"stroke-width":b+"px"};break;case".":v=l,y=l,s<Math.PI/4?x=Math.sqrt(s*l*l/Math.PI):(_=s,k=Math.PI/4,T=1,A=l/2,S=l/Math.sqrt(2),x=A+(S-A)*(_-k)/(T-k)),w="circle",C={cx:v/2,cy:y/2,r:x,opacity:h,fill:p}}var E=[o||"noSh",d||"noBg",p||"noFg",l,s].join(";"),L=M._defs.select(".patterns").selectAll("#"+O).data([E],a.identity);L.exit().remove(),L.enter().append("pattern").each((function(){var e=n.select(this);if(e.attr({id:O,width:v+"px",height:y+"px",patternUnits:"userSpaceOnUse",patternTransform:g?"scale(0.8)":""}),d){var t=e.selectAll("rect").data([0]);t.exit().remove(),t.enter().append("rect").attr({width:v+"px",height:y+"px",fill:d})}var r=e.selectAll(w).data([0]);r.exit().remove(),r.enter().append(w).attr(C)})),e.style("fill",I(O,r)).style("fill-opacity",null),e.classed("pattern_filled",!0)},b.initGradients=function(e){var t=e._fullLayout;a.ensureSingle(t._defs,"g","gradients").selectAll("linearGradient,radialGradient").remove(),n.select(e).selectAll(".gradient_filled").classed("gradient_filled",!1)},b.initPatterns=function(e){var t=e._fullLayout;a.ensureSingle(t._defs,"g","patterns").selectAll("pattern").remove(),n.select(e).selectAll(".pattern_filled").classed("pattern_filled",!1)},b.getPatternAttr=function(e,t,r){return e&&a.isArrayOrTypedArray(e)?t<e.length?e[t]:r:e},b.pointStyle=function(e,t,r){if(e.size()){var a=b.makePointStyleFns(t);e.each((function(e){b.singlePointStyle(e,n.select(this),t,a,r)}))}},b.singlePointStyle=function(e,t,r,n,i){var o=r.marker,l=o.line;if(t.style("opacity",n.selectedOpacityFn?n.selectedOpacityFn(e):void 0===e.mo?o.opacity:e.mo),n.ms2mrc){var s;s="various"===e.ms||"various"===o.size?3:n.ms2mrc(e.ms),e.mrc=s,n.selectedSizeFn&&(s=e.mrc=n.selectedSizeFn(e));var u=b.symbolNumber(e.mx||o.symbol)||0;e.om=u%200>=100,t.attr("d",k(u,s))}var f,d,p,h=!1;if(e.so)p=l.outlierwidth,d=l.outliercolor,f=o.outliercolor;else{var g=(l||{}).width;p=(e.mlw+1||g+1||(e.trace?(e.trace.marker.line||{}).width:0)+1)-1||0,d="mlc"in e?e.mlcc=n.lineScale(e.mlc):a.isArrayOrTypedArray(l.color)?c.defaultLine:l.color,a.isArrayOrTypedArray(o.color)&&(f=c.defaultLine,h=!0),f="mc"in e?e.mcc=n.markerScale(e.mc):o.color||"rgba(0,0,0,0)",n.selectedColorFn&&(f=n.selectedColorFn(e))}if(e.om)t.call(c.stroke,f).style({"stroke-width":(p||1)+"px",fill:"none"});else{t.style("stroke-width",(e.isBlank?0:p)+"px");var v=o.gradient,y=e.mgt;y?h=!0:y=v&&v.type,a.isArrayOrTypedArray(y)&&(y=y[0],M[y]||(y=0));var m=o.pattern,x=m&&b.getPatternAttr(m.shape,e.i,"");if(y&&"none"!==y){var w=e.mgc;w?h=!0:w=v.color;var _=r.uid;h&&(_+="-"+e.i),b.gradient(t,i,_,y,[[0,w],[1,f]],"fill")}else if(x){var T=b.getPatternAttr(m.bgcolor,e.i,null),A=b.getPatternAttr(m.fgcolor,e.i,null),S=m.fgopacity,O=b.getPatternAttr(m.size,e.i,8),C=b.getPatternAttr(m.solidity,e.i,.3),E=e.mcc||a.isArrayOrTypedArray(m.shape)||a.isArrayOrTypedArray(m.bgcolor)||a.isArrayOrTypedArray(m.size)||a.isArrayOrTypedArray(m.solidity),L=r.uid;E&&(L+="-"+e.i),b.pattern(t,"point",i,L,x,O,C,e.mcc,m.fillmode,T,A,S)}else c.fill(t,f);p&&c.stroke(t,d)}},b.makePointStyleFns=function(e){var t={},r=e.marker;return t.markerScale=b.tryColorscale(r,""),t.lineScale=b.tryColorscale(r,"line"),s.traceIs(e,"symbols")&&(t.ms2mrc=v.isBubble(e)?y(e):function(){return(r.size||6)/2}),e.selectedpoints&&a.extendFlat(t,b.makeSelectedPointStyleFns(e)),t},b.makeSelectedPointStyleFns=function(e){var t={},r=e.selected||{},n=e.unselected||{},i=e.marker||{},o=r.marker||{},l=n.marker||{},c=i.opacity,u=o.opacity,f=l.opacity,d=void 0!==u,p=void 0!==f;(a.isArrayOrTypedArray(c)||d||p)&&(t.selectedOpacityFn=function(e){var t=void 0===e.mo?i.opacity:e.mo;return e.selected?d?u:t:p?f:g*t});var h=i.color,v=o.color,y=l.color;(v||y)&&(t.selectedColorFn=function(e){var t=e.mcc||h;return e.selected?v||t:y||t});var m=i.size,b=o.size,x=l.size,w=void 0!==b,_=void 0!==x;return s.traceIs(e,"symbols")&&(w||_)&&(t.selectedSizeFn=function(e){var t=e.mrc||m/2;return e.selected?w?b/2:t:_?x/2:t}),t},b.makeSelectedTextStyleFns=function(e){var t={},r=e.selected||{},n=e.unselected||{},a=e.textfont||{},i=r.textfont||{},o=n.textfont||{},l=a.color,s=i.color,u=o.color;return t.selectedTextColorFn=function(e){var t=e.tc||l;return e.selected?s||t:u||(s?t:c.addOpacity(t,g))},t},b.selectedPointStyle=function(e,t){if(e.size()&&t.selectedpoints){var r=b.makeSelectedPointStyleFns(t),a=t.marker||{},i=[];r.selectedOpacityFn&&i.push((function(e,t){e.style("opacity",r.selectedOpacityFn(t))})),r.selectedColorFn&&i.push((function(e,t){c.fill(e,r.selectedColorFn(t))})),r.selectedSizeFn&&i.push((function(e,t){var n=t.mx||a.symbol||0,i=r.selectedSizeFn(t);e.attr("d",k(b.symbolNumber(n),i)),t.mrc2=i})),i.length&&e.each((function(e){for(var t=n.select(this),r=0;r<i.length;r++)i[r](t,e)}))}},b.tryColorscale=function(e,t){var r=t?a.nestedProperty(e,t).get():e;if(r){var n=r.color;if((r.colorscale||r._colorAx)&&a.isArrayOrTypedArray(n))return u.makeColorScaleFuncFromTrace(r)}return a.identity};var O={start:1,end:-1,middle:0,bottom:1,top:-1};function C(e,t,r,a,i){var o=n.select(e.node().parentNode),l=-1!==t.indexOf("top")?"top":-1!==t.indexOf("bottom")?"bottom":"middle",s=-1!==t.indexOf("left")?"end":-1!==t.indexOf("right")?"start":"middle",c=a?a/.8+1:0,u=(d.lineCount(e)-1)*h+1,p=O[s]*c,g=.75*r+O[l]*c+(O[l]-1)*u*r/2;e.attr("text-anchor",s),i||o.attr("transform",f(p,g))}function E(e,t){var r=e.ts||t.textfont.size;return o(r)&&r>0?r:0}b.textPointStyle=function(e,t,r){if(e.size()){var i;if(t.selectedpoints){var o=b.makeSelectedTextStyleFns(t);i=o.selectedTextColorFn}var l=t.texttemplate,s=r._fullLayout;e.each((function(e){var o=n.select(this),c=l?a.extractOption(e,t,"txt","texttemplate"):a.extractOption(e,t,"tx","text");if(c||0===c){if(l){var u=t._module.formatLabels,f=u?u(e,t,s):{},p={};m(p,t,e.i);var h=t._meta||{};c=a.texttemplateString(c,f,s._d3locale,p,e,h)}var g=e.tp||t.textposition,v=E(e,t),y=i?i(e):e.tc||t.textfont.color;o.call(b.font,e.tf||t.textfont.family,v,y).text(c).call(d.convertToTspans,r).call(C,g,v,e.mrc)}else o.remove()}))}},b.selectedTextStyle=function(e,t){if(e.size()&&t.selectedpoints){var r=b.makeSelectedTextStyleFns(t);e.each((function(e){var a=n.select(this),i=r.selectedTextColorFn(e),o=e.tp||t.textposition,l=E(e,t);c.fill(a,i);var u=s.traceIs(t,"bar-like");C(a,o,l,e.mrc2||e.mrc,u)}))}};function L(e,t,r,a){var i=e[0]-t[0],o=e[1]-t[1],l=r[0]-t[0],s=r[1]-t[1],c=Math.pow(i*i+o*o,.25),u=Math.pow(l*l+s*s,.25),f=(u*u*i-c*c*l)*a,d=(u*u*o-c*c*s)*a,p=3*u*(c+u),h=3*c*(c+u);return[[n.round(t[0]+(p&&f/p),2),n.round(t[1]+(p&&d/p),2)],[n.round(t[0]-(h&&f/h),2),n.round(t[1]-(h&&d/h),2)]]}b.smoothopen=function(e,t){if(e.length<3)return"M"+e.join("L");var r,n="M"+e[0],a=[];for(r=1;r<e.length-1;r++)a.push(L(e[r-1],e[r],e[r+1],t));for(n+="Q"+a[0][0]+" "+e[1],r=2;r<e.length-1;r++)n+="C"+a[r-2][1]+" "+a[r-1][0]+" "+e[r];return n+="Q"+a[e.length-3][1]+" "+e[e.length-1]},b.smoothclosed=function(e,t){if(e.length<3)return"M"+e.join("L")+"Z";var r,n="M"+e[0],a=e.length-1,i=[L(e[a],e[0],e[1],t)];for(r=1;r<a;r++)i.push(L(e[r-1],e[r],e[r+1],t));for(i.push(L(e[a-1],e[a],e[0],t)),r=1;r<=a;r++)n+="C"+i[r-1][1]+" "+i[r][0]+" "+e[r];return n+="C"+i[a][1]+" "+i[0][0]+" "+e[0]+"Z"};var P={hv:function(e,t){return"H"+n.round(t[0],2)+"V"+n.round(t[1],2)},vh:function(e,t){return"V"+n.round(t[1],2)+"H"+n.round(t[0],2)},hvh:function(e,t){return"H"+n.round((e[0]+t[0])/2,2)+"V"+n.round(t[1],2)+"H"+n.round(t[0],2)},vhv:function(e,t){return"V"+n.round((e[1]+t[1])/2,2)+"H"+n.round(t[0],2)+"V"+n.round(t[1],2)}},j=function(e,t){return"L"+n.round(t[0],2)+","+n.round(t[1],2)};b.steps=function(e){var t=P[e]||j;return function(e){for(var r="M"+n.round(e[0][0],2)+","+n.round(e[0][1],2),a=1;a<e.length;a++)r+=t(e[a-1],e[a]);return r}},b.makeTester=function(){var e=a.ensureSingleById(n.select("body"),"svg","js-plotly-tester",(function(e){e.attr(p.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})})),t=a.ensureSingle(e,"path","js-reference-point",(function(e){e.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})}));b.tester=e,b.testref=t},b.savedBBoxes={};var z=0;function D(e){var t=e.getAttribute("data-unformatted");if(null!==t)return t+e.getAttribute("data-math")+e.getAttribute("text-anchor")+e.getAttribute("style")}function I(e,t){if(!e)return null;var r=t._context,n=r._exportedPlot?"":r._baseUrl||"";return n?"url('"+n+"#"+e+"')":"url(#"+e+")"}b.bBox=function(e,t,r){var i,o,l;if(r||(r=D(e)),r){if(i=b.savedBBoxes[r])return a.extendFlat({},i)}else if(1===e.childNodes.length){var s=e.childNodes[0];if(r=D(s)){var c=+s.getAttribute("x")||0,u=+s.getAttribute("y")||0,f=s.getAttribute("transform");if(!f){var p=b.bBox(s,!1,r);return c&&(p.left+=c,p.right+=c),u&&(p.top+=u,p.bottom+=u),p}if(r+="~"+c+"~"+u+"~"+f,i=b.savedBBoxes[r])return a.extendFlat({},i)}}t?o=e:(l=b.tester.node(),o=e.cloneNode(!0),l.appendChild(o)),n.select(o).attr("transform",null).call(d.positionText,0,0);var h=o.getBoundingClientRect(),g=b.testref.node().getBoundingClientRect();t||l.removeChild(o);var v={height:h.height,width:h.width,left:h.left-g.left,top:h.top-g.top,right:h.right-g.left,bottom:h.bottom-g.top};return z>=1e4&&(b.savedBBoxes={},z=0),r&&(b.savedBBoxes[r]=v),z++,a.extendFlat({},v)},b.setClipUrl=function(e,t,r){e.attr("clip-path",I(t,r))},b.getTranslate=function(e){var t=(e[e.attr?"attr":"getAttribute"]("transform")||"").replace(/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,(function(e,t,r){return[t,r].join(" ")})).split(" ");return{x:+t[0]||0,y:+t[1]||0}},b.setTranslate=function(e,t,r){var n=e.attr?"attr":"getAttribute",a=e.attr?"attr":"setAttribute",i=e[n]("transform")||"";return t=t||0,r=r||0,i=i.replace(/(\btranslate\(.*?\);?)/,"").trim(),i=(i+=f(t,r)).trim(),e[a]("transform",i),i},b.getScale=function(e){var t=(e[e.attr?"attr":"getAttribute"]("transform")||"").replace(/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,(function(e,t,r){return[t,r].join(" ")})).split(" ");return{x:+t[0]||1,y:+t[1]||1}},b.setScale=function(e,t,r){var n=e.attr?"attr":"getAttribute",a=e.attr?"attr":"setAttribute",i=e[n]("transform")||"";return t=t||1,r=r||1,i=i.replace(/(\bscale\(.*?\);?)/,"").trim(),i=(i+="scale("+t+","+r+")").trim(),e[a]("transform",i),i};var N=/\s*sc.*/;b.setPointGroupScale=function(e,t,r){if(t=t||1,r=r||1,e){var n=1===t&&1===r?"":"scale("+t+","+r+")";e.each((function(){var e=(this.getAttribute("transform")||"").replace(N,"");e=(e+=n).trim(),this.setAttribute("transform",e)}))}};var R=/translate\([^)]*\)\s*$/;b.setTextPointsScale=function(e,t,r){e&&e.each((function(){var e,a=n.select(this),i=a.select("text");if(i.node()){var o=parseFloat(i.attr("x")||0),l=parseFloat(i.attr("y")||0),s=(a.attr("transform")||"").match(R);e=1===t&&1===r?[]:[f(o,l),"scale("+t+","+r+")",f(-o,-l)],s&&e.push(s),a.attr("transform",e.join(""))}}))}},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var n=r(84);function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Object(n.a)(e,t)}},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var n=r(31),a=r(137);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}var o=r(2);function l(e,t){if(t&&("object"===i(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Object(o.a)(e)}function s(e){var t=Object(a.a)();return function(){var r,a=Object(n.a)(e);if(t){var i=Object(n.a)(this).constructor;r=Reflect.construct(a,arguments,i)}else r=a.apply(this,arguments);return l(this,r)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var n=new Date,a=new Date;function i(e,t,r,o){function l(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return l.floor=function(t){return e(t=new Date(+t)),t},l.ceil=function(r){return e(r=new Date(r-1)),t(r,1),e(r),r},l.round=function(e){var t=l(e),r=l.ceil(e);return e-t<r-e?t:r},l.offset=function(e,r){return t(e=new Date(+e),null==r?1:Math.floor(r)),e},l.range=function(r,n,a){var i,o=[];if(r=l.ceil(r),a=null==a?1:Math.floor(a),!(r<n)||!(a>0))return o;do{o.push(i=new Date(+r)),t(r,a),e(r)}while(i<r&&r<n);return o},l.filter=function(r){return i((function(t){if(t>=t)for(;e(t),!r(t);)t.setTime(t-1)}),(function(e,n){if(e>=e)if(n<0)for(;++n<=0;)for(;t(e,-1),!r(e););else for(;--n>=0;)for(;t(e,1),!r(e););}))},r&&(l.count=function(t,i){return n.setTime(+t),a.setTime(+i),e(n),e(a),Math.floor(r(n,a))},l.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?l.filter(o?function(t){return o(t)%e===0}:function(t){return l.count(0,t)%e===0}):l:null}),l}},function(e,t,r){"use strict";var n=r(7),a=r(9),i=r(20),o=r(5),l=r(0),s=l.strTranslate,c=r(25),u=r(122),f=r(8),d=r(10),p=r(49),h=r(251),g=r(19),v=g.ONEMAXYEAR,y=g.ONEAVGYEAR,m=g.ONEMINYEAR,b=g.ONEMAXQUARTER,x=g.ONEAVGQUARTER,w=g.ONEMINQUARTER,_=g.ONEMAXMONTH,k=g.ONEAVGMONTH,T=g.ONEMINMONTH,A=g.ONEWEEK,S=g.ONEDAY,M=S/2,O=g.ONEHOUR,C=g.ONEMIN,E=g.ONESEC,L=g.MINUS_SIGN,P=g.BADNUM,j={K:"zeroline"},z={K:"gridline",L:"path"},D={K:"tick",L:"path"},I={K:"tick",L:"text"},N=r(33),R=N.MID_SHIFT,F=N.CAP_SHIFT,B=N.LINE_SPACING,U=N.OPPOSITE_SIDE,H=e.exports={};H.setConvert=r(168);var V=r(257),q=r(21),W=q.idSort,Y=q.isLinked;H.id2name=q.id2name,H.name2id=q.name2id,H.cleanId=q.cleanId,H.list=q.list,H.listIds=q.listIds,H.getFromId=q.getFromId,H.getFromTrace=q.getFromTrace;var G=r(98);H.getAutoRange=G.getAutoRange,H.findExtremes=G.findExtremes;function X(e){var t=1e-4*(e[1]-e[0]);return[e[0]-t,e[1]+t]}H.coerceRef=function(e,t,r,n,a,i){var o=n.charAt(n.length-1),s=r._fullLayout._subplots[o+"axis"],c=n+"ref",u={};return a||(a=s[0]||("string"===typeof i?i:i[0])),i||(i=a),s=s.concat(s.map((function(e){return e+" domain"}))),u[c]={valType:"enumerated",values:s.concat(i?"string"===typeof i?[i]:i:[]),dflt:a},l.coerce(e,t,u,c)},H.getRefType=function(e){return void 0===e?e:"paper"===e?"paper":"pixel"===e?"pixel":/( domain)$/.test(e)?"domain":"range"},H.coercePosition=function(e,t,r,n,a,i){var o,s;if("range"!==H.getRefType(n))o=l.ensureNumber,s=r(a,i);else{var c=H.getFromId(t,n);s=r(a,i=c.fraction2r(i)),o=c.cleanPos}e[a]=o(s)},H.cleanPosition=function(e,t,r){return("paper"===r||"pixel"===r?l.ensureNumber:H.getFromId(t,r).cleanPos)(e)},H.redrawComponents=function(e,t){t=t||H.listIds(e);var r=e._fullLayout;function n(n,a,i,l){for(var s=o.getComponentMethod(n,a),c={},u=0;u<t.length;u++)for(var f=r[H.id2name(t[u])][i],d=0;d<f.length;d++){var p=f[d];if(!c[p]&&(s(e,p),c[p]=1,l))return}}n("annotations","drawOne","_annIndices"),n("shapes","drawOne","_shapeIndices"),n("images","draw","_imgIndices",!0)};var Z=H.getDataConversions=function(e,t,r,n){var a,i="x"===r||"y"===r||"z"===r?r:n;if(Array.isArray(i)){if(a={type:V(n,void 0,{autotypenumbers:e._fullLayout.autotypenumbers}),_categories:[]},H.setConvert(a),"category"===a.type)for(var o=0;o<n.length;o++)a.d2c(n[o])}else a=H.getFromTrace(e,t,i);return a?{d2c:a.d2c,c2d:a.c2d}:"ids"===i?{d2c:Q,c2d:Q}:{d2c:$,c2d:$}};function $(e){return+e}function Q(e){return String(e)}function K(e){return+e.substring(1)}H.getDataToCoordFunc=function(e,t,r,n){return Z(e,t,r,n).d2c},H.counterLetter=function(e){var t=e.charAt(0);return"x"===t?"y":"y"===t?"x":void 0},H.minDtick=function(e,t,r,n){-1===["log","category","multicategory"].indexOf(e.type)&&n?void 0===e._minDtick?(e._minDtick=t,e._forceTick0=r):e._minDtick&&((e._minDtick/t+1e-6)%1<2e-6&&((r-e._forceTick0)/t%1+1.000001)%1<2e-6?(e._minDtick=t,e._forceTick0=r):((t/e._minDtick+1e-6)%1>2e-6||((r-e._forceTick0)/e._minDtick%1+1.000001)%1>2e-6)&&(e._minDtick=0)):e._minDtick=0},H.saveRangeInitial=function(e,t){for(var r=H.list(e,"",!0),n=!1,a=0;a<r.length;a++){var i=r[a],o=void 0===i._rangeInitial,l=o||!(i.range[0]===i._rangeInitial[0]&&i.range[1]===i._rangeInitial[1]);(o&&!1===i.autorange||t&&l)&&(i._rangeInitial=i.range.slice(),n=!0)}return n},H.saveShowSpikeInitial=function(e,t){for(var r=H.list(e,"",!0),n=!1,a="on",i=0;i<r.length;i++){var o=r[i],l=void 0===o._showSpikeInitial,s=l||!(o.showspikes===o._showspikes);(l||t&&s)&&(o._showSpikeInitial=o.showspikes,n=!0),"on"!==a||o.showspikes||(a="off")}return e._fullLayout._cartesianSpikesEnabled=a,n},H.autoBin=function(e,t,r,n,i,o){var s,c=l.aggNums(Math.min,null,e),u=l.aggNums(Math.max,null,e);if("category"===t.type||"multicategory"===t.type)return{start:c-.5,end:u+.5,size:Math.max(1,Math.round(o)||1),_dataSpan:u-c};if(i||(i=t.calendar),s="log"===t.type?{type:"linear",range:[c,u]}:{type:t.type,range:l.simpleMap([c,u],t.c2r,0,i),calendar:i},H.setConvert(s),o=o&&h.dtick(o,s.type))s.dtick=o,s.tick0=h.tick0(void 0,s.type,i);else{var f;if(r)f=(u-c)/r;else{var d=l.distinctVals(e),p=Math.pow(10,Math.floor(Math.log(d.minDiff)/Math.LN10)),g=p*l.roundUp(d.minDiff/p,[.9,1.9,4.9,9.9],!0);f=Math.max(g,2*l.stdev(e)/Math.pow(e.length,n?.25:.4)),a(f)||(f=1)}H.autoTicks(s,f)}var v,y=s.dtick,m=H.tickIncrement(H.tickFirst(s),y,"reverse",i);if("number"===typeof y)m=function(e,t,r,n,i){var o=0,l=0,s=0,c=0;function u(t){return(1+100*(t-e)/r.dtick)%100<2}for(var f=0;f<t.length;f++)t[f]%1===0?s++:a(t[f])||c++,u(t[f])&&o++,u(t[f]+r.dtick/2)&&l++;var d=t.length-c;if(s===d&&"date"!==r.type)r.dtick<1?e=n-.5*r.dtick:(e-=.5)+r.dtick<n&&(e+=r.dtick);else if(l<.1*d&&(o>.3*d||u(n)||u(i))){var p=r.dtick/2;e+=e+p<n?p:-p}return e}(m,e,s,c,u),v=m+(1+Math.floor((u-m)/y))*y;else for("M"===s.dtick.charAt(0)&&(m=function(e,t,r,n,a){var i=l.findExactDates(t,a),o=.8;if(i.exactDays>o){var s=Number(r.substr(1));i.exactYears>o&&s%12===0?e=H.tickIncrement(e,"M6","reverse")+1.5*S:i.exactMonths>o?e=H.tickIncrement(e,"M1","reverse")+15.5*S:e-=M;var c=H.tickIncrement(e,r);if(c<=n)return c}return e}(m,e,y,c,i)),v=m,0;v<=u;)v=H.tickIncrement(v,y,!1,i);return{start:t.c2r(m,0,i),end:t.c2r(v,0,i),size:y,_dataSpan:u-c}},H.prepTicks=function(e,t){var r=l.simpleMap(e.range,e.r2l,void 0,void 0,t);if(e._dtickInit=e.dtick,e._tick0Init=e.tick0,"auto"===e.tickmode||!e.dtick){var n,i=e.nticks;i||("category"===e.type||"multicategory"===e.type?(n=e.tickfont?l.bigFont(e.tickfont.size||12):15,i=e._length/n):(n="y"===e._id.charAt(0)?40:80,i=l.constrain(e._length/n,4,9)+1),"radialaxis"===e._name&&(i*=2)),"array"===e.tickmode&&(i*=100),e._roughDTick=Math.abs(r[1]-r[0])/i,H.autoTicks(e,e._roughDTick),e._minDtick>0&&e.dtick<2*e._minDtick&&(e.dtick=e._minDtick,e.tick0=e.l2r(e._forceTick0))}"period"===e.ticklabelmode&&function(e){var t;function r(){return!(a(e.dtick)||"M"!==e.dtick.charAt(0))}var n=r(),i=H.getTickFormat(e);if(i){var o=e._dtickInit!==e.dtick;/%[fLQsSMX]/.test(i)||(/%[HI]/.test(i)?(t=O,o&&!n&&e.dtick<O&&(e.dtick=O)):/%p/.test(i)?(t=M,o&&!n&&e.dtick<M&&(e.dtick=M)):/%[Aadejuwx]/.test(i)?(t=S,o&&!n&&e.dtick<S&&(e.dtick=S)):/%[UVW]/.test(i)?(t=A,o&&!n&&e.dtick<A&&(e.dtick=A)):/%[Bbm]/.test(i)?(t=k,o&&(n?K(e.dtick)<1:e.dtick<T)&&(e.dtick="M1")):/%[q]/.test(i)?(t=x,o&&(n?K(e.dtick)<3:e.dtick<w)&&(e.dtick="M3")):/%[Yy]/.test(i)&&(t=y,o&&(n?K(e.dtick)<12:e.dtick<m)&&(e.dtick="M12")))}(n=r())&&e.tick0===e._dowTick0&&(e.tick0=e._rawTick0);e._definedDelta=t}(e),e.tick0||(e.tick0="date"===e.type?"2000-01-01":0),"date"===e.type&&e.dtick<.1&&(e.dtick=.1),le(e)},H.calcTicks=function(e,t){H.prepTicks(e,t);var r=l.simpleMap(e.range,e.r2l,void 0,void 0,t);if("array"===e.tickmode)return function(e){var t=e.tickvals,r=e.ticktext,n=new Array(t.length),a=X(l.simpleMap(e.range,e.r2l)),i=Math.min(a[0],a[1]),o=Math.max(a[0],a[1]),s=0;Array.isArray(r)||(r=[]);var c="category"===e.type?e.d2l_noadd:e.d2l;"log"===e.type&&"L"!==String(e.dtick).charAt(0)&&(e.dtick="L"+Math.pow(10,Math.floor(Math.min(e.range[0],e.range[1]))-1));for(var u=0;u<t.length;u++){var f=c(t[u]);f>i&&f<o&&(void 0===r[u]?n[s]=H.tickText(e,f):n[s]=se(e,f,String(r[u])),s++)}s<t.length&&n.splice(s,t.length-s);e.rangebreaks&&(n=n.filter((function(t){return e.maskBreaks(t.x)!==P})));return n}(e);var n=X(r),i=n[0],o=n[1],s=r[1]<r[0],c=Math.min(r[0],r[1]),u=Math.max(r[0],r[1]),f=a(e.dtick),d="log"===e.type&&!(f||"L"===e.dtick.charAt(0)),p="period"===e.ticklabelmode;if(e._tmin=H.tickFirst(e,t),e._tmin<i!==s)return[];"category"!==e.type&&"multicategory"!==e.type||(o=s?Math.max(-.5,o):Math.min(e._categories.length-.5,o));var h=e._tmin;e.rangebreaks&&e._tick0Init!==e.tick0&&(h=Se(h,e),s||(h=H.tickIncrement(h,e.dtick,!s,e.calendar))),p&&(h=H.tickIncrement(h,e.dtick,!s,e.calendar));var g,C=e.ticklabelstep,E=Math.max(1e3,e._length||0),L=[],j=null;f?g=e.dtick:"date"===e.type?"string"===typeof e.dtick&&"M"===e.dtick.charAt(0)&&(g=k*e.dtick.substring(1)):g=e._roughDTick;for(var z,D,I=Math.round((e.r2l(h)-e.r2l(e.tick0))/g)-1;s?h>=o:h<=o;h=H.tickIncrement(h,e.dtick,s,e.calendar)){if(I++,e.rangebreaks&&!s){if(h<i)continue;if(e.maskBreaks(h)===P&&Se(h,e)>=u)break}if(L.length>E||h===j)break;j=h;var N=!1;d&&h!==(0|h)&&(N=!0);var R={minor:N,value:h};C>1&&I%C&&(R.skipLabel=!0),L.push(R)}if(p&&function(e,t,r){for(var n=0;n<e.length;n++){var a=e[n].value,i=n,o=n+1;n<e.length-1?(i=n,o=n+1):n>0?(i=n-1,o=n):(i=n,o=n);var l,s=e[i].value,c=e[o].value,u=Math.abs(c-s),f=r||u,d=0;f>=m?d=u>=m&&u<=v?u:y:r===x&&f>=w?d=u>=w&&u<=b?u:x:f>=T?d=u>=T&&u<=_?u:k:r===A&&f>=A?d=A:f>=S?d=S:r===M&&f>=M?d=M:r===O&&f>=O&&(d=O),d>=u&&(d=u,l=!0);var p=a+d;if(t.rangebreaks&&d>0){for(var h=0,g=0;g<84;g++){var C=(g+.5)/84;t.maskBreaks(a*(1-C)+C*p)!==P&&h++}(d*=h/84)||(e[n].drop=!0),l&&u>A&&(d=u)}(d>0||0===n)&&(e[n].periodX=a+d/2)}}(L,e,e._definedDelta),e.rangebreaks){var F="y"===e._id.charAt(0),B=1;"auto"===e.tickmode&&(B=e.tickfont?e.tickfont.size:12);var U=NaN;for(z=L.length-1;z>-1;z--)if(L[z].drop)L.splice(z,1);else{L[z].value=Se(L[z].value,e);var V=e.c2p(L[z].value);(F?U>V-B:U<V+B)?L.splice(s?z+1:z,1):U=V}}Ae(e)&&360===Math.abs(r[1]-r[0])&&L.pop(),e._tmax=(L[L.length-1]||{}).value,e._prevDateHead="",e._inCalcTicks=!0;var q,W,Y=function(t){t.text=" ",e._prevDateHead=D},G=[];for(z=0;z<L.length;z++){var Z=L[z].minor,$=L[z].value;D=e._prevDateHead,q=H.tickText(e,$,!1,Z),void 0!==(W=L[z].periodX)&&(q.periodX=W,(W>u||W<c)&&(W>u&&(q.periodX=u),W<c&&(q.periodX=c),Y(q))),L[z].skipLabel&&Y(q),G.push(q)}return e._inCalcTicks=!1,G};var J=[2,5,10],ee=[1,2,3,6,12],te=[1,2,5,10,15,30],re=[1,2,3,7,14],ne=[-.046,0,.301,.477,.602,.699,.778,.845,.903,.954,1],ae=[-.301,0,.301,.699,1],ie=[15,30,45,90,180];function oe(e,t,r){return t*l.roundUp(e/t,r)}function le(e){var t=e.dtick;if(e._tickexponent=0,a(t)||"string"===typeof t||(t=1),"category"!==e.type&&"multicategory"!==e.type||(e._tickround=null),"date"===e.type){var r=e.r2l(e.tick0),n=e.l2r(r).replace(/(^-|i)/g,""),i=n.length;if("M"===String(t).charAt(0))i>10||"01-01"!==n.substr(5)?e._tickround="d":e._tickround=+t.substr(1)%12===0?"y":"m";else if(t>=S&&i<=10||t>=15*S)e._tickround="d";else if(t>=C&&i<=16||t>=O)e._tickround="M";else if(t>=E&&i<=19||t>=C)e._tickround="S";else{var o=e.l2r(r+t).replace(/^-/,"").length;e._tickround=Math.max(i,o)-20,e._tickround<0&&(e._tickround=4)}}else if(a(t)||"L"===t.charAt(0)){var l=e.range.map(e.r2d||Number);a(t)||(t=Number(t.substr(1))),e._tickround=2-Math.floor(Math.log(t)/Math.LN10+.01);var s=Math.max(Math.abs(l[0]),Math.abs(l[1])),c=Math.floor(Math.log(s)/Math.LN10+.01),u=void 0===e.minexponent?3:e.minexponent;Math.abs(c)>u&&(ue(e.exponentformat)&&!fe(c)?e._tickexponent=3*Math.round((c-1)/3):e._tickexponent=c)}else e._tickround=null}function se(e,t,r){var n=e.tickfont||{};return{x:t,dx:0,dy:0,text:r||"",fontSize:n.size,font:n.family,fontColor:n.color}}H.autoTicks=function(e,t){var r;function n(e){return Math.pow(e,Math.floor(Math.log(t)/Math.LN10))}if("date"===e.type){e.tick0=l.dateTick0(e.calendar,0);var i=2*t;if(i>y)t/=y,r=n(10),e.dtick="M"+12*oe(t,r,J);else if(i>k)t/=k,e.dtick="M"+oe(t,1,ee);else if(i>S){e.dtick=oe(t,S,e._hasDayOfWeekBreaks?[1,2,7,14]:re);var o=H.getTickFormat(e),s="period"===e.ticklabelmode;s&&(e._rawTick0=e.tick0),/%[uVW]/.test(o)?e.tick0=l.dateTick0(e.calendar,2):e.tick0=l.dateTick0(e.calendar,1),s&&(e._dowTick0=e.tick0)}else i>O?e.dtick=oe(t,O,ee):i>C?e.dtick=oe(t,C,te):i>E?e.dtick=oe(t,E,te):(r=n(10),e.dtick=oe(t,r,J))}else if("log"===e.type){e.tick0=0;var c=l.simpleMap(e.range,e.r2l);if(t>.7)e.dtick=Math.ceil(t);else if(Math.abs(c[1]-c[0])<1){var u=1.5*Math.abs((c[1]-c[0])/t);t=Math.abs(Math.pow(10,c[1])-Math.pow(10,c[0]))/u,r=n(10),e.dtick="L"+oe(t,r,J)}else e.dtick=t>.3?"D2":"D1"}else"category"===e.type||"multicategory"===e.type?(e.tick0=0,e.dtick=Math.ceil(Math.max(t,1))):Ae(e)?(e.tick0=0,r=1,e.dtick=oe(t,r,ie)):(e.tick0=0,r=n(10),e.dtick=oe(t,r,J));if(0===e.dtick&&(e.dtick=1),!a(e.dtick)&&"string"!==typeof e.dtick){var f=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(f)}},H.tickIncrement=function(e,t,r,i){var o=r?-1:1;if(a(t))return l.increment(e,o*t);var s=t.charAt(0),c=o*Number(t.substr(1));if("M"===s)return l.incrementMonth(e,c,i);if("L"===s)return Math.log(Math.pow(10,e)+c)/Math.LN10;if("D"===s){var u="D2"===t?ae:ne,f=e+.01*o,d=l.roundUp(l.mod(f,1),u,r);return Math.floor(f)+Math.log(n.round(Math.pow(10,d),1))/Math.LN10}throw"unrecognized dtick "+String(t)},H.tickFirst=function(e,t){var r=e.r2l||Number,i=l.simpleMap(e.range,r,void 0,void 0,t),o=i[1]<i[0],s=o?Math.floor:Math.ceil,c=X(i)[0],u=e.dtick,f=r(e.tick0);if(a(u)){var d=s((c-f)/u)*u+f;return"category"!==e.type&&"multicategory"!==e.type||(d=l.constrain(d,0,e._categories.length-1)),d}var p=u.charAt(0),h=Number(u.substr(1));if("M"===p){for(var g,v,y,m=0,b=f;m<10;){if(((g=H.tickIncrement(b,u,o,e.calendar))-c)*(b-c)<=0)return o?Math.min(b,g):Math.max(b,g);v=(c-(b+g)/2)/(g-b),y=p+(Math.abs(Math.round(v))||1)*h,b=H.tickIncrement(b,y,v<0?!o:o,e.calendar),m++}return l.error("tickFirst did not converge",e),b}if("L"===p)return Math.log(s((Math.pow(10,c)-f)/h)*h+f)/Math.LN10;if("D"===p){var x="D2"===u?ae:ne,w=l.roundUp(l.mod(c,1),x,o);return Math.floor(c)+Math.log(n.round(Math.pow(10,w),1))/Math.LN10}throw"unrecognized dtick "+String(u)},H.tickText=function(e,t,r,n){var i,o=se(e,t),s="array"===e.tickmode,c=r||s,u=e.type,f="category"===u?e.d2l_noadd:e.d2l;if(s&&Array.isArray(e.ticktext)){var d=l.simpleMap(e.range,e.r2l),p=(Math.abs(d[1]-d[0])-(e._lBreaks||0))/1e4;for(i=0;i<e.ticktext.length&&!(Math.abs(t-f(e.tickvals[i]))<p);i++);if(i<e.ticktext.length)return o.text=String(e.ticktext[i]),o}function h(n){if(void 0===n)return!0;if(r)return"none"===n;var a={first:e._tmin,last:e._tmax}[n];return"all"!==n&&t!==a}var g=r?"never":"none"!==e.exponentformat&&h(e.showexponent)?"hide":"";if("date"===u?function(e,t,r,n){var i=e._tickround,o=r&&e.hoverformat||H.getTickFormat(e);n&&(i=a(i)?4:{y:"m",m:"d",d:"M",M:"S",S:4}[i]);var s,c=l.formatDate(t.x,o,i,e._dateFormat,e.calendar,e._extraFormat),u=c.indexOf("\n");-1!==u&&(s=c.substr(u+1),c=c.substr(0,u));n&&("00:00:00"===c||"00:00"===c?(c=s,s=""):8===c.length&&(c=c.replace(/:00$/,"")));if(s)if(r)"d"===i?c+=", "+s:c=s+(c?", "+c:"");else if(e._inCalcTicks&&e._prevDateHead===s){var f=Me(e),d=e._trueSide||e.side;(!f&&"top"===d||f&&"bottom"===d)&&(c+="<br> ")}else e._prevDateHead=s,c+="<br>"+s;t.text=c}(e,o,r,c):"log"===u?function(e,t,r,n,i){var o=e.dtick,s=t.x,c=e.tickformat,u="string"===typeof o&&o.charAt(0);"never"===i&&(i="");n&&"L"!==u&&(o="L3",u="L");if(c||"L"===u)t.text=de(Math.pow(10,s),e,i,n);else if(a(o)||"D"===u&&l.mod(s+.01,1)<.1){var f=Math.round(s),d=Math.abs(f),p=e.exponentformat;"power"===p||ue(p)&&fe(f)?(t.text=0===f?1:1===f?"10":"10<sup>"+(f>1?"":L)+d+"</sup>",t.fontSize*=1.25):("e"===p||"E"===p)&&d>2?t.text="1"+p+(f>0?"+":L)+d:(t.text=de(Math.pow(10,s),e,"","fakehover"),"D1"===o&&"y"===e._id.charAt(0)&&(t.dy-=t.fontSize/6))}else{if("D"!==u)throw"unrecognized dtick "+String(o);t.text=String(Math.round(Math.pow(10,l.mod(s,1)))),t.fontSize*=.75}if("D1"===e.dtick){var h=String(t.text).charAt(0);"0"!==h&&"1"!==h||("y"===e._id.charAt(0)?t.dx-=t.fontSize/4:(t.dy+=t.fontSize/2,t.dx+=(e.range[1]>e.range[0]?1:-1)*t.fontSize*(s<0?.5:.25)))}}(e,o,0,c,g):"category"===u?function(e,t){var r=e._categories[Math.round(t.x)];void 0===r&&(r="");t.text=String(r)}(e,o):"multicategory"===u?function(e,t,r){var n=Math.round(t.x),a=e._categories[n]||[],i=void 0===a[1]?"":String(a[1]),o=void 0===a[0]?"":String(a[0]);r?t.text=o+" - "+i:(t.text=i,t.text2=o)}(e,o,r):Ae(e)?function(e,t,r,n,a){if("radians"!==e.thetaunit||r)t.text=de(t.x,e,a,n);else{var i=t.x/180;if(0===i)t.text="0";else{var o=function(e){function t(e,t){return Math.abs(e-t)<=1e-6}function r(e,n){return t(n,0)?e:r(n,e%n)}function n(e){for(var r=1;!t(Math.round(e*r)/r,e);)r*=10;return r}var a=n(e),i=e*a,o=Math.abs(r(i,a));return[Math.round(i/o),Math.round(a/o)]}(i);if(o[1]>=100)t.text=de(l.deg2rad(t.x),e,a,n);else{var s=t.x<0;1===o[1]?1===o[0]?t.text="\u03c0":t.text=o[0]+"\u03c0":t.text=["<sup>",o[0],"</sup>","\u2044","<sub>",o[1],"</sub>","\u03c0"].join(""),s&&(t.text=L+t.text)}}}}(e,o,r,c,g):function(e,t,r,n,a){"never"===a?a="":"all"===e.showexponent&&Math.abs(t.x/e.dtick)<1e-6&&(a="hide");t.text=de(t.x,e,a,n)}(e,o,0,c,g),n||(e.tickprefix&&!h(e.showtickprefix)&&(o.text=e.tickprefix+o.text),e.ticksuffix&&!h(e.showticksuffix)&&(o.text+=e.ticksuffix)),"boundaries"===e.tickson||e.showdividers){var v=function(t){var r=e.l2p(t);return r>=0&&r<=e._length?t:null};o.xbnd=[v(o.x-.5),v(o.x+e.dtick-.5)]}return o},H.hoverLabelText=function(e,t,r){r&&(e=l.extendFlat({},e,{hoverformat:r}));var n=Array.isArray(t)?t[0]:t,a=Array.isArray(t)?t[1]:void 0;if(void 0!==a&&a!==n)return H.hoverLabelText(e,n,r)+" - "+H.hoverLabelText(e,a,r);var i="log"===e.type&&n<=0,o=H.tickText(e,e.c2l(i?-n:n),"hover").text;return i?0===n?"0":L+o:o};var ce=["f","p","n","\u03bc","m","","k","M","G","T"];function ue(e){return"SI"===e||"B"===e}function fe(e){return e>14||e<-15}function de(e,t,r,n){var i=e<0,o=t._tickround,s=r||t.exponentformat||"B",c=t._tickexponent,u=H.getTickFormat(t),f=t.separatethousands;if(n){var d={exponentformat:s,minexponent:t.minexponent,dtick:"none"===t.showexponent?t.dtick:a(e)&&Math.abs(e)||1,range:"none"===t.showexponent?t.range.map(t.r2d):[0,e||1]};le(d),o=(Number(d._tickround)||0)+4,c=d._tickexponent,t.hoverformat&&(u=t.hoverformat)}if(u)return t._numFormat(u)(e).replace(/-/g,L);var p,h=Math.pow(10,-o)/2;if("none"===s&&(c=0),(e=Math.abs(e))<h)e="0",i=!1;else{if(e+=h,c&&(e*=Math.pow(10,-c),o+=c),0===o)e=String(Math.floor(e));else if(o<0){e=(e=String(Math.round(e))).substr(0,e.length+o);for(var g=o;g<0;g++)e+="0"}else{var v=(e=String(e)).indexOf(".")+1;v&&(e=e.substr(0,v+o).replace(/\.?0+$/,""))}e=l.numSeparate(e,t._separators,f)}c&&"hide"!==s&&(ue(s)&&fe(c)&&(s="power"),p=c<0?L+-c:"power"!==s?"+"+c:String(c),"e"===s||"E"===s?e+=s+p:"power"===s?e+="\xd710<sup>"+p+"</sup>":"B"===s&&9===c?e+="B":ue(s)&&(e+=ce[c/3+5]));return i?L+e:e}function pe(e,t){for(var r=[],n={},a=0;a<t.length;a++){var i=t[a];n[i.text2]?n[i.text2].push(i.x):n[i.text2]=[i.x]}for(var o in n)r.push(se(e,l.interp(n[o],.5),o));return r}function he(e){return void 0!==e.periodX?e.periodX:e.x}function ge(e){return[e.text,e.x,e.axInfo,e.font,e.fontSize,e.fontColor].join("_")}function ve(e){var t=e.title.font.size,r=(e.title.text.match(c.BR_TAG_ALL)||[]).length;return e.title.hasOwnProperty("standoff")?r?t*(F+r*B):t*F:r?t*(r+1)*B:t}function ye(e,t){var r=e.l2p(t);return r>1&&r<e._length-1}function me(e){var t=n.select(e),r=t.select(".text-math-group");return r.empty()?t.select("text"):r}function be(e){return e._id+".automargin"}function xe(e){return be(e)+".mirror"}function we(e){return e._id+".rangeslider"}function _e(e,t){for(var r=0;r<t.length;r++)-1===e.indexOf(t[r])&&e.push(t[r])}function ke(e,t,r){var n,a,i=[],o=[],s=e.layout;for(n=0;n<t.length;n++)i.push(H.getFromId(e,t[n]));for(n=0;n<r.length;n++)o.push(H.getFromId(e,r[n]));var c=Object.keys(p),u=["anchor","domain","overlaying","position","side","tickangle","editType"],f=["linear","log"];for(n=0;n<c.length;n++){var d=c[n],h=i[0][d],g=o[0][d],v=!0,y=!1,m=!1;if("_"!==d.charAt(0)&&"function"!==typeof h&&-1===u.indexOf(d)){for(a=1;a<i.length&&v;a++){var b=i[a][d];"type"===d&&-1!==f.indexOf(h)&&-1!==f.indexOf(b)&&h!==b?y=!0:b!==h&&(v=!1)}for(a=1;a<o.length&&v;a++){var x=o[a][d];"type"===d&&-1!==f.indexOf(g)&&-1!==f.indexOf(x)&&g!==x?m=!0:o[a][d]!==g&&(v=!1)}v&&(y&&(s[i[0]._name].type="linear"),m&&(s[o[0]._name].type="linear"),Te(s,d,i,o,e._fullLayout._dfltTitle))}}for(n=0;n<e._fullLayout.annotations.length;n++){var w=e._fullLayout.annotations[n];-1!==t.indexOf(w.xref)&&-1!==r.indexOf(w.yref)&&l.swapAttrs(s.annotations[n],["?"])}}function Te(e,t,r,n,a){var i,o=l.nestedProperty,s=o(e[r[0]._name],t).get(),c=o(e[n[0]._name],t).get();for("title"===t&&(s&&s.text===a.x&&(s.text=a.y),c&&c.text===a.y&&(c.text=a.x)),i=0;i<r.length;i++)o(e,r[i]._name+"."+t).set(c);for(i=0;i<n.length;i++)o(e,n[i]._name+"."+t).set(s)}function Ae(e){return"angularaxis"===e._id}function Se(e,t){for(var r=t._rangebreaks.length,n=0;n<r;n++){var a=t._rangebreaks[n];if(e>=a.min&&e<a.max)return a.max}return e}function Me(e){return-1!==(e.ticklabelposition||"").indexOf("inside")}function Oe(e,t){Me(e._anchorAxis||{})&&e._hideCounterAxisInsideTickLabels&&e._hideCounterAxisInsideTickLabels(t)}H.getTickFormat=function(e){var t,r,n;function a(e){return"string"!==typeof e?e:Number(e.replace("M",""))*k}function i(e,t){var r=["L","D"];if(typeof e===typeof t){if("number"===typeof e)return e-t;var n=r.indexOf(e.charAt(0)),a=r.indexOf(t.charAt(0));return n===a?Number(e.replace(/(L|D)/g,""))-Number(t.replace(/(L|D)/g,"")):n-a}return"number"===typeof e?1:-1}function o(e,t,r){var n=r||function(e){return e},a=t[0],i=t[1];return(!a&&"number"!==typeof a||n(a)<=n(e))&&(!i&&"number"!==typeof i||n(i)>=n(e))}function l(e,t){var r=null===t[0],n=null===t[1],a=i(e,t[0])>=0,o=i(e,t[1])<=0;return(r||a)&&(n||o)}if(e.tickformatstops&&e.tickformatstops.length>0)switch(e.type){case"date":case"linear":for(t=0;t<e.tickformatstops.length;t++)if((n=e.tickformatstops[t]).enabled&&o(e.dtick,n.dtickrange,a)){r=n;break}break;case"log":for(t=0;t<e.tickformatstops.length;t++)if((n=e.tickformatstops[t]).enabled&&l(e.dtick,n.dtickrange)){r=n;break}}return r?r.value:e.tickformat},H.getSubplots=function(e,t){var r=e._fullLayout._subplots,n=r.cartesian.concat(r.gl2d||[]),a=t?H.findSubplotsWithAxis(n,t):n;return a.sort((function(e,t){var r=e.substr(1).split("y"),n=t.substr(1).split("y");return r[0]===n[0]?+r[1]-+n[1]:+r[0]-+n[0]})),a},H.findSubplotsWithAxis=function(e,t){for(var r=new RegExp("x"===t._id.charAt(0)?"^"+t._id+"y":t._id+"$"),n=[],a=0;a<e.length;a++){var i=e[a];r.test(i)&&n.push(i)}return n},H.makeClipPaths=function(e){var t=e._fullLayout;if(!t._hasOnlyLargeSploms){var r,a,i={_offset:0,_length:t.width,_id:""},o={_offset:0,_length:t.height,_id:""},l=H.list(e,"x",!0),s=H.list(e,"y",!0),c=[];for(r=0;r<l.length;r++)for(c.push({x:l[r],y:o}),a=0;a<s.length;a++)0===r&&c.push({x:i,y:s[a]}),c.push({x:l[r],y:s[a]});var u=t._clips.selectAll(".axesclip").data(c,(function(e){return e.x._id+e.y._id}));u.enter().append("clipPath").classed("axesclip",!0).attr("id",(function(e){return"clip"+t._uid+e.x._id+e.y._id})).append("rect"),u.exit().remove(),u.each((function(e){n.select(this).select("rect").attr({x:e.x._offset||0,y:e.y._offset||0,width:e.x._length||1,height:e.y._length||1})}))}},H.draw=function(e,t,r){var n=e._fullLayout;"redraw"===t&&n._paper.selectAll("g.subplot").each((function(e){var t=e[0],r=n._plots[t];if(r){var a=r.xaxis,i=r.yaxis;r.xaxislayer.selectAll("."+a._id+"tick").remove(),r.yaxislayer.selectAll("."+i._id+"tick").remove(),r.xaxislayer.selectAll("."+a._id+"tick2").remove(),r.yaxislayer.selectAll("."+i._id+"tick2").remove(),r.xaxislayer.selectAll("."+a._id+"divider").remove(),r.yaxislayer.selectAll("."+i._id+"divider").remove(),r.gridlayer&&r.gridlayer.selectAll("path").remove(),r.zerolinelayer&&r.zerolinelayer.selectAll("path").remove(),n._infolayer.select(".g-"+a._id+"title").remove(),n._infolayer.select(".g-"+i._id+"title").remove()}}));var a=t&&"redraw"!==t?t:H.listIds(e);return l.syncOrAsync(a.map((function(t){return function(){if(t){var n=H.getFromId(e,t),a=H.drawOne(e,n,r);return n._r=n.range.slice(),n._rl=l.simpleMap(n._r,n.r2l),a}}})))},H.drawOne=function(e,t,r){var n,a,s;r=r||{},t.setScale();var c=e._fullLayout,p=t._id,h=p.charAt(0),g=H.counterLetter(p),v=c._plots[t._mainSubplot];if(v){var y=v[h+"axislayer"],m=t._mainLinePosition,b=t._mainMirrorPosition,x=t._vals=H.calcTicks(t),w=[t.mirror,m,b].join("_");for(n=0;n<x.length;n++)x[n].axInfo=w;t._selections={},t._tickAngles&&(t._prevTickAngles=t._tickAngles),t._tickAngles={},t._depth=null;var _={};if(t.visible){var k,T,A=H.makeTransTickFn(t),S=H.makeTransTickLabelFn(t),M="inside"===t.ticks,O="outside"===t.ticks;if("boundaries"===t.tickson){var C=function(e,t){var r,n=[],a=function(e,t){var r=e.xbnd[t];null!==r&&n.push(l.extendFlat({},e,{x:r}))};if(t.length){for(r=0;r<t.length;r++)a(t[r],0);a(t[r-1],1)}return n}(0,x);T=H.clipEnds(t,C),k=M?T:C}else T=H.clipEnds(t,x),k=M&&"period"!==t.ticklabelmode?T:x;var E=t._gridVals=T,L=function(e,t){var r,n,a=[],i=t.length&&t[t.length-1].x<t[0].x,o=function(e,t){var r=e.xbnd[t];null!==r&&a.push(l.extendFlat({},e,{x:r}))};if(e.showdividers&&t.length){for(r=0;r<t.length;r++){var s=t[r];s.text2!==n&&o(s,i?1:0),n=s.text2}o(t[r-1],i?0:1)}return a}(t,x);if(!c._hasOnlyLargeSploms){var P=t._subplotsWith,j={};for(n=0;n<P.length;n++){a=P[n];var z=(s=c._plots[a])[g+"axis"],D=z._mainAxis._id;if(!j[D]){j[D]=1;var I="x"===h?"M0,"+z._offset+"v"+z._length:"M"+z._offset+",0h"+z._length;H.drawGrid(e,t,{vals:E,counterAxis:z,layer:s.gridlayer.select("."+p),path:I,transFn:A}),H.drawZeroLine(e,t,{counterAxis:z,layer:s.zerolinelayer,path:I,transFn:A})}}}var N=H.getTickSigns(t),R=[];if(t.ticks){var F,V,q,W=H.makeTickPath(t,m,N[2]);if(t._anchorAxis&&t.mirror&&!0!==t.mirror?(F=H.makeTickPath(t,b,N[3]),V=W+F):(F="",V=W),t.showdividers&&O&&"boundaries"===t.tickson){var Y={};for(n=0;n<L.length;n++)Y[L[n].x]=1;q=function(e){return Y[e.x]?F:V}}else q=V;H.drawTicks(e,t,{vals:k,layer:y,path:q,transFn:A}),"allticks"===t.mirror&&(R=Object.keys(t._linepositions||{}))}for(n=0;n<R.length;n++){a=R[n],s=c._plots[a];var G=t._linepositions[a]||[],X=H.makeTickPath(t,G[0],N[0])+H.makeTickPath(t,G[1],N[1]);H.drawTicks(e,t,{vals:k,layer:s[h+"axislayer"],path:X,transFn:A})}var Z=[];if(Z.push((function(){return H.drawLabels(e,t,{vals:x,layer:y,plotinfo:s,transFn:S,labelFns:H.makeLabelFns(t,m)})})),"multicategory"===t.type){var $={x:2,y:10}[h];Z.push((function(){var r={x:"height",y:"width"}[h],n=K()[r]+$+(t._tickAngles[p+"tick"]?t.tickfont.size*B:0);return H.drawLabels(e,t,{vals:pe(t,x),layer:y,cls:p+"tick2",repositionOnUpdate:!0,secondary:!0,transFn:A,labelFns:H.makeLabelFns(t,m+n*N[4])})})),Z.push((function(){return t._depth=N[4]*(K("tick2")[t.side]-m),function(e,t,r){var n=t._id+"divider",a=r.vals,i=r.layer.selectAll("path."+n).data(a,ge);i.exit().remove(),i.enter().insert("path",":first-child").classed(n,1).classed("crisp",1).call(f.stroke,t.dividercolor).style("stroke-width",d.crispRound(e,t.dividerwidth,1)+"px"),i.attr("transform",r.transFn).attr("d",r.path)}(e,t,{vals:L,layer:y,path:H.makeTickPath(t,m,N[4],t._depth),transFn:A})}))}else t.title.hasOwnProperty("standoff")&&Z.push((function(){t._depth=N[4]*(K()[t.side]-m)}));var Q=o.getComponentMethod("rangeslider","isVisible")(t);return Z.push((function(){var r,n,a,l,s=t.side.charAt(0),u=U[t.side].charAt(0),f=H.getPxPosition(e,t),d=O?t.ticklen:0;if((t.automargin||Q)&&("multicategory"===t.type?r=K("tick2"):(r=K(),"x"===h&&"b"===s&&(t._depth=Math.max(r.width>0?r.bottom-f:0,d)))),t.automargin){n={x:0,y:0,r:0,l:0,t:0,b:0};var p=[0,1];if("x"===h){if("b"===s?n[s]=t._depth:(n[s]=t._depth=Math.max(r.width>0?f-r.top:0,d),p.reverse()),r.width>0){var v=r.right-(t._offset+t._length);v>0&&(n.xr=1,n.r=v);var y=t._offset-r.left;y>0&&(n.xl=0,n.l=y)}}else if("l"===s?n[s]=t._depth=Math.max(r.height>0?f-r.left:0,d):(n[s]=t._depth=Math.max(r.height>0?r.right-f:0,d),p.reverse()),r.height>0){var m=r.bottom-(t._offset+t._length);m>0&&(n.yb=0,n.b=m);var b=t._offset-r.top;b>0&&(n.yt=1,n.t=b)}n[g]="free"===t.anchor?t.position:t._anchorAxis.domain[p[0]],t.title.text!==c._dfltTitle[h]&&(n[s]+=ve(t)+(t.title.standoff||0)),t.mirror&&"free"!==t.anchor&&((a={x:0,y:0,r:0,l:0,t:0,b:0})[u]=t.linewidth,t.mirror&&!0!==t.mirror&&(a[u]+=d),!0===t.mirror||"ticks"===t.mirror?a[g]=t._anchorAxis.domain[p[1]]:"all"!==t.mirror&&"allticks"!==t.mirror||(a[g]=[t._counterDomainMin,t._counterDomainMax][p[1]]))}Q&&(l=o.getComponentMethod("rangeslider","autoMarginOpts")(e,t)),i.autoMargin(e,be(t),n),i.autoMargin(e,xe(t),a),i.autoMargin(e,we(t),l)})),r.skipTitle||Q&&"bottom"===t.side||Z.push((function(){return function(e,t){var r,n=e._fullLayout,a=t._id,i=a.charAt(0),o=t.title.font.size;if(t.title.hasOwnProperty("standoff"))r=t._depth+t.title.standoff+ve(t);else{var l=Me(t);if("multicategory"===t.type)r=t._depth;else{var s=1.5*o;l&&(s=.5*o,"outside"===t.ticks&&(s+=t.ticklen)),r=10+s+(t.linewidth?t.linewidth-1:0)}l||(r+="x"===i?"top"===t.side?o*(t.showticklabels?1:0):o*(t.showticklabels?1.5:.5):"right"===t.side?o*(t.showticklabels?1:.5):o*(t.showticklabels?.5:0))}var c,f,p,h,g=H.getPxPosition(e,t);"x"===i?(f=t._offset+t._length/2,p="top"===t.side?g-r:g+r):(p=t._offset+t._length/2,f="right"===t.side?g+r:g-r,c={rotate:"-90",offset:0});if("multicategory"!==t.type){var v=t._selections[t._id+"tick"];if(h={selection:v,side:t.side},v&&v.node()&&v.node().parentNode){var y=d.getTranslate(v.node().parentNode);h.offsetLeft=y.x,h.offsetTop=y.y}t.title.hasOwnProperty("standoff")&&(h.pad=0)}return u.draw(e,a+"title",{propContainer:t,propName:t._name+".title.text",placeholder:n._dfltTitle[i],avoid:h,transform:c,attributes:{x:f,y:p,"text-anchor":"middle"}})}(e,t)})),l.syncOrAsync(Z)}}function K(e){var r=p+(e||"tick");return _[r]||(_[r]=function(e,t){var r,n,a,i;e._selections[t].size()?(r=1/0,n=-1/0,a=1/0,i=-1/0,e._selections[t].each((function(){var e=me(this),t=d.bBox(e.node().parentNode);r=Math.min(r,t.top),n=Math.max(n,t.bottom),a=Math.min(a,t.left),i=Math.max(i,t.right)}))):(r=0,n=0,a=0,i=0);return{top:r,bottom:n,left:a,right:i,height:n-r,width:i-a}}(t,r)),_[r]}},H.getTickSigns=function(e){var t=e._id.charAt(0),r={x:"top",y:"right"}[t],n=e.side===r?1:-1,a=[-1,1,n,-n];return"inside"!==e.ticks===("x"===t)&&(a=a.map((function(e){return-e}))),e.side&&a.push({l:-1,t:-1,r:1,b:1}[e.side.charAt(0)]),a},H.makeTransTickFn=function(e){return"x"===e._id.charAt(0)?function(t){return s(e._offset+e.l2p(t.x),0)}:function(t){return s(0,e._offset+e.l2p(t.x))}},H.makeTransTickLabelFn=function(e){var t=function(e){var t=e.ticklabelposition||"",r=function(e){return-1!==t.indexOf(e)},n=r("top"),a=r("left"),i=r("right"),o=r("bottom"),l=r("inside"),s=o||a||n||i;if(!s&&!l)return[0,0];var c=e.side,u=s?(e.tickwidth||0)/2:0,f=3,d=e.tickfont?e.tickfont.size:12;(o||n)&&(u+=d*F,f+=(e.linewidth||0)/2);(a||i)&&(u+=(e.linewidth||0)/2,f+=3);l&&"top"===c&&(f-=d*(1-F));(a||n)&&(u=-u);"bottom"!==c&&"right"!==c||(f=-f);return[s?u:0,l?f:0]}(e),r=t[0],n=t[1];return"x"===e._id.charAt(0)?function(t){return s(r+e._offset+e.l2p(he(t)),n)}:function(t){return s(n,r+e._offset+e.l2p(he(t)))}},H.makeTickPath=function(e,t,r,n){n=void 0!==n?n:e.ticklen;var a=e._id.charAt(0),i=(e.linewidth||1)/2;return"x"===a?"M0,"+(t+i*r)+"v"+n*r:"M"+(t+i*r)+",0h"+n*r},H.makeLabelFns=function(e,t,r){var n=e.ticklabelposition||"",i=function(e){return-1!==n.indexOf(e)},o=i("top"),s=i("left"),c=i("right"),u=i("bottom")||s||o||c,f=i("inside"),d="inside"===n&&"inside"===e.ticks||!f&&"outside"===e.ticks&&"boundaries"!==e.tickson,p=0,h=0,g=d?e.ticklen:0;if(f?g*=-1:u&&(g=0),d&&(p+=g,r)){var v=l.deg2rad(r);p=g*Math.cos(v)+1,h=g*Math.sin(v)}e.showticklabels&&(d||e.showline)&&(p+=.2*e.tickfont.size);var y,m,b,x,w,_={labelStandoff:p+=(e.linewidth||1)/2*(f?-1:1),labelShift:h},k=0,T=e.side,A=e._id.charAt(0),S=e.tickangle;if("x"===A)x=(w=!f&&"bottom"===T||f&&"top"===T)?1:-1,f&&(x*=-1),y=h*x,m=t+p*x,b=w?1:-.2,90===Math.abs(S)&&(f?b+=R:b=-90===S&&"bottom"===T?F:90===S&&"top"===T?R:.5,k=R/2*(S/90)),_.xFn=function(e){return e.dx+y+k*e.fontSize},_.yFn=function(e){return e.dy+m+e.fontSize*b},_.anchorFn=function(e,t){if(u){if(s)return"end";if(c)return"start"}return a(t)&&0!==t&&180!==t?t*x<0!==f?"end":"start":"middle"},_.heightFn=function(t,r,n){return r<-60||r>60?-.5*n:"top"===e.side!==f?-n:0};else if("y"===A){if(x=(w=!f&&"left"===T||f&&"right"===T)?1:-1,f&&(x*=-1),y=p,m=h*x,b=0,f||90!==Math.abs(S)||(b=-90===S&&"left"===T||90===S&&"right"===T?F:.5),f){var M=a(S)?+S:0;if(0!==M){var O=l.deg2rad(M);k=Math.abs(Math.sin(O))*F*x,b=0}}_.xFn=function(e){return e.dx+t-(y+e.fontSize*b)*x+k*e.fontSize},_.yFn=function(e){return e.dy+m+e.fontSize*R},_.anchorFn=function(e,t){return a(t)&&90===Math.abs(t)?"middle":w?"end":"start"},_.heightFn=function(t,r,n){return"right"===e.side&&(r*=-1),r<-30?-n:r<30?-.5*n:0}}return _},H.drawTicks=function(e,t,r){r=r||{};var n=t._id+"tick",a=r.vals;"period"===t.ticklabelmode&&(a=a.slice()).shift();var i=r.layer.selectAll("path."+n).data(t.ticks?a:[],ge);i.exit().remove(),i.enter().append("path").classed(n,1).classed("ticks",1).classed("crisp",!1!==r.crisp).call(f.stroke,t.tickcolor).style("stroke-width",d.crispRound(e,t.tickwidth,1)+"px").attr("d",r.path).style("display",null),Oe(t,[D]),i.attr("transform",r.transFn)},H.drawGrid=function(e,t,r){r=r||{};var n=t._id+"grid",a=r.vals,i=r.counterAxis;if(!1===t.showgrid)a=[];else if(i&&H.shouldShowZeroLine(e,t,i))for(var o="array"===t.tickmode,l=0;l<a.length;l++){var s=a[l].x;if(o?!s:Math.abs(s)<t.dtick/100){if(a=a.slice(0,l).concat(a.slice(l+1)),!o)break;l--}}var c=r.layer.selectAll("path."+n).data(a,ge);c.exit().remove(),c.enter().append("path").classed(n,1).classed("crisp",!1!==r.crisp),t._gw=d.crispRound(e,t.gridwidth,1),c.attr("transform",r.transFn).attr("d",r.path).call(f.stroke,t.gridcolor||"#ddd").style("stroke-width",t._gw+"px").style("display",null),Oe(t,[z]),"function"===typeof r.path&&c.attr("d",r.path)},H.drawZeroLine=function(e,t,r){r=r||r;var n=t._id+"zl",a=H.shouldShowZeroLine(e,t,r.counterAxis),i=r.layer.selectAll("path."+n).data(a?[{x:0,id:t._id}]:[]);i.exit().remove(),i.enter().append("path").classed(n,1).classed("zl",1).classed("crisp",!1!==r.crisp).each((function(){r.layer.selectAll("path").sort((function(e,t){return W(e.id,t.id)}))})),i.attr("transform",r.transFn).attr("d",r.path).call(f.stroke,t.zerolinecolor||f.defaultLine).style("stroke-width",d.crispRound(e,t.zerolinewidth,t._gw||1)+"px").style("display",null),Oe(t,[j])},H.drawLabels=function(e,t,r){r=r||{};var i=e._fullLayout,o=t._id,u=o.charAt(0),f=r.cls||o+"tick",p=r.vals,h=r.labelFns,g=r.secondary?0:t.tickangle,v=(t._prevTickAngles||{})[f],y=r.layer.selectAll("g."+f).data(t.showticklabels?p:[],ge),m=[];function b(e,i){e.each((function(e){var o=n.select(this),l=o.select(".text-math-group"),u=h.anchorFn(e,i),f=r.transFn.call(o.node(),e)+(a(i)&&0!==+i?" rotate("+i+","+h.xFn(e)+","+(h.yFn(e)-e.fontSize/2)+")":""),p=c.lineCount(o),g=B*e.fontSize,v=h.heightFn(e,a(i)?+i:0,(p-1)*g);if(v&&(f+=s(0,v)),l.empty()){var y=o.select("text");y.attr({transform:f,"text-anchor":u}),y.style("opacity",1),t._adjustTickLabelsOverflow&&t._adjustTickLabelsOverflow()}else{var m=d.bBox(l.node()).width*{end:-.5,start:.5}[u];l.attr("transform",f+s(m,0))}}))}y.enter().append("g").classed(f,1).append("text").attr("text-anchor","middle").each((function(t){var r=n.select(this),a=e._promises.length;r.call(c.positionText,h.xFn(t),h.yFn(t)).call(d.font,t.font,t.fontSize,t.fontColor).text(t.text).call(c.convertToTspans,e),e._promises[a]?m.push(e._promises.pop().then((function(){b(r,g)}))):b(r,g)})),Oe(t,[I]),y.exit().remove(),r.repositionOnUpdate&&y.each((function(e){n.select(this).select("text").call(c.positionText,h.xFn(e),h.yFn(e))})),t._adjustTickLabelsOverflow=function(){var r=t.ticklabeloverflow;if(r&&"allow"!==r){var a=-1!==r.indexOf("hide"),o="x"===t._id.charAt(0),s=0,c=o?e._fullLayout.width:e._fullLayout.height;if(-1!==r.indexOf("domain")){var u=l.simpleMap(t.range,t.r2l);s=t.l2p(u[0])+t._offset,c=t.l2p(u[1])+t._offset}var f=Math.min(s,c),p=Math.max(s,c),h=t.side,g=1/0,v=-1/0;for(var m in y.each((function(e){var r=n.select(this);if(r.select(".text-math-group").empty()){var i=d.bBox(r.node()),l=0;o?(i.right>p||i.left<f)&&(l=1):(i.bottom>p||i.top+(t.tickangle?0:e.fontSize/4)<f)&&(l=1);var s=r.select("text");l?a&&s.style("opacity",0):(s.style("opacity",1),g="bottom"===h||"right"===h?Math.min(g,o?i.top:i.left):-1/0,v="top"===h||"left"===h?Math.max(v,o?i.bottom:i.right):1/0)}})),i._plots){var b=i._plots[m];if(t._id===b.xaxis._id||t._id===b.yaxis._id){var x=o?b.yaxis:b.xaxis;x&&(x["_visibleLabelMin_"+t._id]=g,x["_visibleLabelMax_"+t._id]=v)}}}},t._hideCounterAxisInsideTickLabels=function(e){var r="x"===t._id.charAt(0),a=[];for(var o in i._plots){var l=i._plots[o];t._id!==l.xaxis._id&&t._id!==l.yaxis._id||a.push(r?l.yaxis:l.xaxis)}a.forEach((function(r,a){r&&Me(r)&&(e||[j,z,D,I]).forEach((function(e){var o="tick"===e.K&&"text"===e.L&&"period"===t.ticklabelmode,l=i._plots[t._mainSubplot];(e.K===j.K?l.zerolinelayer.selectAll("."+t._id+"zl"):e.K===z.K?l.gridlayer.selectAll("."+t._id):l[t._id.charAt(0)+"axislayer"]).each((function(){var i=n.select(this);e.L&&(i=i.selectAll(e.L)),i.each((function(i){var l=t.l2p(o?he(i):i.x)+t._offset,s=n.select(this);l<t["_visibleLabelMax_"+r._id]&&l>t["_visibleLabelMin_"+r._id]?s.style("display","none"):"tick"!==e.K||a||s.style("display",null)}))}))}))}))},b(y,v+1?v:g);var x=null;t._selections&&(t._selections[f]=y);var w=[function(){return m.length&&Promise.all(m)}];t.automargin&&i._redrawFromAutoMarginCount&&90===v?(x=90,w.push((function(){b(y,v)}))):w.push((function(){if(b(y,g),p.length&&"x"===u&&!a(g)&&("log"!==t.type||"D"!==String(t.dtick).charAt(0))){x=0;var e,n=0,i=[];if(y.each((function(e){n=Math.max(n,e.fontSize);var r=t.l2p(e.x),a=me(this),o=d.bBox(a.node());i.push({top:0,bottom:10,height:10,left:r-o.width/2,right:r+o.width/2+2,width:o.width+2})})),"boundaries"!==t.tickson&&!t.showdividers||r.secondary){var o=p.length,s=Math.abs((p[o-1].x-p[0].x)*t._m)/(o-1),c=t.ticklabelposition||"",f=function(e){return-1!==c.indexOf(e)},h=f("top"),v=f("left"),m=f("right"),w=f("bottom")||v||h||m?(t.tickwidth||0)+6:0,_=s<2.5*n||"multicategory"===t.type||"realaxis"===t._name;for(e=0;e<i.length-1;e++)if(l.bBoxIntersect(i[e],i[e+1],w)){x=_?90:30;break}}else{var k=2;for(t.ticks&&(k+=t.tickwidth/2),e=0;e<i.length;e++){var T=p[e].xbnd,A=i[e];if(null!==T[0]&&A.left-t.l2p(T[0])<k||null!==T[1]&&t.l2p(T[1])-A.right<k){x=90;break}}}x&&b(y,x)}})),t._tickAngles&&w.push((function(){t._tickAngles[f]=null===x?a(g)?g:0:x}));var _=t._anchorAxis;_&&_.autorange&&Me(t)&&!Y(i,t._id)&&(i._insideTickLabelsAutorange||(i._insideTickLabelsAutorange={}),i._insideTickLabelsAutorange[_._name+".autorange"]=_.autorange,w.push((function(){y.each((function(e,r){var n=me(this);n.select(".text-math-group").empty()&&(t._vals[r].bb=d.bBox(n.node()))}))})));var k=l.syncOrAsync(w);return k&&k.then&&e._promises.push(k),k},H.getPxPosition=function(e,t){var r,n=e._fullLayout._size,a=t._id.charAt(0),i=t.side;return"free"!==t.anchor?r=t._anchorAxis:"x"===a?r={_offset:n.t+(1-(t.position||0))*n.h,_length:0}:"y"===a&&(r={_offset:n.l+(t.position||0)*n.w,_length:0}),"top"===i||"left"===i?r._offset:"bottom"===i||"right"===i?r._offset+r._length:void 0},H.shouldShowZeroLine=function(e,t,r){var n=l.simpleMap(t.range,t.r2l);return n[0]*n[1]<=0&&t.zeroline&&("linear"===t.type||"-"===t.type)&&!(t.rangebreaks&&t.maskBreaks(0)===P)&&(ye(t,0)||!function(e,t,r,n){var a=r._mainAxis;if(!a)return;var i=e._fullLayout,o=t._id.charAt(0),l=H.counterLetter(t._id),s=t._offset+(Math.abs(n[0])<Math.abs(n[1])===("x"===o)?0:t._length);function c(e){if(!e.showline||!e.linewidth)return!1;var r=Math.max((e.linewidth+t.zerolinewidth)/2,1);function n(e){return"number"===typeof e&&Math.abs(e-s)<r}if(n(e._mainLinePosition)||n(e._mainMirrorPosition))return!0;var a=e._linepositions||{};for(var i in a)if(n(a[i][0])||n(a[i][1]))return!0}var u=i._plots[r._mainSubplot];if(!(u.mainplotinfo||u).overlays.length)return c(r,s);for(var f=H.list(e,l),d=0;d<f.length;d++){var p=f[d];if(p._mainAxis===a&&c(p,s))return!0}}(e,t,r,n)||function(e,t){for(var r=e._fullData,n=t._mainSubplot,a=t._id.charAt(0),i=0;i<r.length;i++){var l=r[i];if(!0===l.visible&&l.xaxis+l.yaxis===n){if(o.traceIs(l,"bar-like")&&l.orientation==={x:"h",y:"v"}[a])return!0;if(l.fill&&l.fill.charAt(l.fill.length-1)===a)return!0}}return!1}(e,t))},H.clipEnds=function(e,t){return t.filter((function(t){return ye(e,t.x)}))},H.allowAutoMargin=function(e){for(var t=H.list(e,"",!0),r=0;r<t.length;r++){var n=t[r];n.automargin&&(i.allowAutoMargin(e,be(n)),n.mirror&&i.allowAutoMargin(e,xe(n))),o.getComponentMethod("rangeslider","isVisible")(n)&&i.allowAutoMargin(e,we(n))}},H.swap=function(e,t){for(var r=function(e,t){var r,n,a=[];for(r=0;r<t.length;r++){var i=[],o=e._fullData[t[r]].xaxis,l=e._fullData[t[r]].yaxis;if(o&&l){for(n=0;n<a.length;n++)-1===a[n].x.indexOf(o)&&-1===a[n].y.indexOf(l)||i.push(n);if(i.length){var s,c=a[i[0]];if(i.length>1)for(n=1;n<i.length;n++)s=a[i[n]],_e(c.x,s.x),_e(c.y,s.y);_e(c.x,[o]),_e(c.y,[l])}else a.push({x:[o],y:[l]})}}return a}(e,t),n=0;n<r.length;n++)ke(e,r[n].x,r[n].y)}},function(e,t,r){"use strict";r.d(t,"d",(function(){return n})),r.d(t,"c",(function(){return a})),r.d(t,"b",(function(){return i})),r.d(t,"a",(function(){return o})),r.d(t,"e",(function(){return l}));var n=1e3,a=6e4,i=36e5,o=864e5,l=6048e5},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var n=r(108);var a=r(136);function i(e){return function(e){if(Array.isArray(e))return Object(n.a)(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Object(a.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},function(e,t,r){"use strict";var n=r(0),a=r(44),i={name:{valType:"string",editType:"none",description:["When used in a template, named items are created in the output figure","in addition to any items the figure already has in this array.","You can modify these items in the output figure by making your own","item with `templateitemname` matching this `name`","alongside your modifications (including `visible: false` or","`enabled: false` to hide it).","Has no effect outside of a template."].join(" ")}};function o(e){return e&&"string"===typeof e}function l(e){var t=e.length-1;return"s"!==e.charAt(t)&&n.warn("bad argument to arrayDefaultKey: "+e),e.substr(0,e.length-1)+"defaults"}i.templateitemname={valType:"string",editType:"calc",description:["Used to refer to a named item in this array in the template. Named","items from the template will be created even without a matching item","in the input figure, but you can modify one by making an item with","`templateitemname` matching its `name`, alongside your modifications","(including `visible: false` or `enabled: false` to hide it).","If there is no template or no matching item, this item will be","hidden unless you explicitly show it with `visible: true`."].join(" ")},t.templatedArray=function(e,t){return t._isLinkedToArray=e,t.name=i.name,t.templateitemname=i.templateitemname,t},t.traceTemplater=function(e){var t,r,i={};for(t in e)r=e[t],Array.isArray(r)&&r.length&&(i[t]=0);return{newTrace:function(o){var l={type:t=n.coerce(o,{},a,"type"),_template:null};if(t in i){r=e[t];var s=i[t]%r.length;i[t]++,l._template=r[s]}return l}}},t.newContainer=function(e,t,r){var a=e._template,i=a&&(a[t]||r&&a[r]);return n.isPlainObject(i)||(i=null),e[t]={_template:i}},t.arrayTemplater=function(e,t,r){var n=e._template,a=n&&n[l(t)],i=n&&n[t];Array.isArray(i)&&i.length||(i=[]);var s={};return{newItem:function(e){var t={name:e.name,_input:e},n=t.templateitemname=e.templateitemname;if(!o(n))return t._template=a,t;for(var l=0;l<i.length;l++){var c=i[l];if(c.name===n)return s[n]=1,t._template=c,t}return t[r]=e[r]||!1,t._template=!1,t},defaultItems:function(){for(var e=[],t=0;t<i.length;t++){var r=i[t],n=r.name;if(o(n)&&!s[n]){var a={_template:r,name:n,_input:{_templateitemname:n}};a.templateitemname=r.templateitemname,e.push(a),s[n]=1}}return e}}},t.arrayDefaultKey=l,t.arrayEditor=function(e,t,r){var a=(n.nestedProperty(e,t).get()||[]).length,i=r._index,o=i>=a&&(r._input||{})._templateitemname;o&&(i=a);var l,s=t+"["+i+"]";function c(){l={},o&&(l[s]={},l[s].templateitemname=o)}function u(e,t){o?n.nestedProperty(l[s],e).set(t):l[s+"."+e]=t}function f(){var e=l;return c(),e}return c(),{modifyBase:function(e,t){l[e]=t},modifyItem:u,getUpdateObj:f,applyUpdate:function(t,r){t&&u(t,r);var a=f();for(var i in a)n.nestedProperty(e,i).set(a[i])}}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var n=r(136);function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,i=[],o=!0,l=!1;try{for(r=r.call(e);!(o=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(s){l=!0,a=s}finally{try{o||null==r.return||r.return()}finally{if(l)throw a}}return i}}(e,t)||Object(n.a)(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},function(e,t,r){"use strict";e.exports={BADNUM:void 0,FP_SAFE:1e-4*Number.MAX_VALUE,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,EPOCHJD:2440587.5,ALMOST_EQUAL:.999999,LOG_CLIP:10,MINUS_SIGN:"\u2212"}},function(e,t,r){"use strict";var n=r(7),a=r(107).timeFormatLocale,i=r(349).formatLocale,o=r(9),l=r(5),s=r(95),c=r(17),u=r(0),f=r(8),d=r(19).BADNUM,p=r(21),h=r(96).clearSelect,g=r(121),v=r(244),y=r(245).getModuleCalcData,m=u.relinkPrivateKeys,b=u._,x=e.exports={};u.extendFlat(x,l),x.attributes=r(44),x.attributes.type.values=x.allTypes,x.fontAttrs=r(28),x.layoutAttributes=r(93),x.fontWeight="normal";var w=x.transformsRegistry,_=r(525);x.executeAPICommand=_.executeAPICommand,x.computeAPICommandBindings=_.computeAPICommandBindings,x.manageCommandObserver=_.manageCommandObserver,x.hasSimpleAPICommandBindings=_.hasSimpleAPICommandBindings,x.redrawText=function(e){return e=u.getGraphDiv(e),new Promise((function(t){setTimeout((function(){e._fullLayout&&(l.getComponentMethod("annotations","draw")(e),l.getComponentMethod("legend","draw")(e),l.getComponentMethod("colorbar","draw")(e),t(x.previousPromises(e)))}),300)}))},x.resize=function(e){var t;e=u.getGraphDiv(e);var r=new Promise((function(r,n){e&&!u.isHidden(e)||n(new Error("Resize must be passed a displayed plot div element.")),e._redrawTimer&&clearTimeout(e._redrawTimer),e._resolveResize&&(t=e._resolveResize),e._resolveResize=r,e._redrawTimer=setTimeout((function(){if(!e.layout||e.layout.width&&e.layout.height||u.isHidden(e))r(e);else{delete e.layout.width,delete e.layout.height;var t=e.changed;e.autoplay=!0,l.call("relayout",e,{autosize:!0}).then((function(){e.changed=t,e._resolveResize===r&&(delete e._resolveResize,r(e))}))}}),100)}));return t&&t(r),r},x.previousPromises=function(e){if((e._promises||[]).length)return Promise.all(e._promises).then((function(){e._promises=[]}))},x.addLinks=function(e){if(e._context.showLink||e._context.showSources){var t=e._fullLayout,r=u.ensureSingle(t._paper,"text","js-plot-link-container",(function(e){e.style({"font-family":'"Open Sans", Arial, sans-serif',"font-size":"12px",fill:f.defaultLine,"pointer-events":"all"}).each((function(){var e=n.select(this);e.append("tspan").classed("js-link-to-tool",!0),e.append("tspan").classed("js-link-spacer",!0),e.append("tspan").classed("js-sourcelinks",!0)}))})),a=r.node(),i={y:t._paper.attr("height")-9};document.body.contains(a)&&a.getComputedTextLength()>=t.width-20?(i["text-anchor"]="start",i.x=5):(i["text-anchor"]="end",i.x=t._paper.attr("width")-7),r.attr(i);var o=r.select(".js-link-to-tool"),l=r.select(".js-link-spacer"),s=r.select(".js-sourcelinks");e._context.showSources&&e._context.showSources(e),e._context.showLink&&function(e,t){t.text("");var r=t.append("a").attr({"xlink:xlink:href":"#",class:"link--impt link--embedview","font-weight":"bold"}).text(e._context.linkText+" "+String.fromCharCode(187));if(e._context.sendData)r.on("click",(function(){x.sendDataToCloud(e)}));else{var n=window.location.pathname.split("/"),a=window.location.search;r.attr({"xlink:xlink:show":"new","xlink:xlink:href":"/"+n[2].split(".")[0]+"/"+n[1]+a})}}(e,o),l.text(o.text()&&s.text()?" - ":"")}},x.sendDataToCloud=function(e){var t=(window.PLOTLYENV||{}).BASE_URL||e._context.plotlyServerURL;if(t){e.emit("plotly_beforeexport");var r=n.select(e).append("div").attr("id","hiddenform").style("display","none"),a=r.append("form").attr({action:t+"/external",method:"post",target:"_blank"});return a.append("input").attr({type:"text",name:"data"}).node().value=x.graphJson(e,!1,"keepdata"),a.node().submit(),r.remove(),e.emit("plotly_afterexport"),!1}};var k=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],T=["year","month","dayMonth","dayMonthYear"];function A(e,t){var r=e._context.locale;r||(r="en-US");var n=!1,a={};function i(e){for(var r=!0,i=0;i<t.length;i++){var o=t[i];a[o]||(e[o]?a[o]=e[o]:r=!1)}r&&(n=!0)}for(var o=0;o<2;o++){for(var s=e._context.locales,c=0;c<2;c++){var u=(s[r]||{}).format;if(u&&(i(u),n))break;s=l.localeRegistry}var f=r.split("-")[0];if(n||f===r)break;r=f}return n||i(l.localeRegistry.en.format),a}function S(e,t){var r={_fullLayout:t},n="x"===e._id.charAt(0),a=e._mainAxis._anchorAxis,i="",o="",l="";if(a&&(l=a._mainAxis._id,i=n?e._id+l:l+e._id),!i||!t._plots[i]){i="";for(var s=e._counterAxes,c=0;c<s.length;c++){var u=s[c],f=n?e._id+u:u+e._id;o||(o=f);var d=p.getFromId(r,u);if(l&&d.overlaying===l){i=f;break}}}return i||o}function M(e){var t=e.transforms;if(Array.isArray(t)&&t.length)for(var r=0;r<t.length;r++){var n=t[r],a=n._module||w[n.type];if(a&&a.makesData)return!0}return!1}function O(e,t,r,n){for(var a=e.transforms,i=[e],o=0;o<a.length;o++){var l=a[o],s=w[l.type];s&&s.transform&&(i=s.transform(i,{transform:l,fullTrace:e,fullData:t,layout:r,fullLayout:n,transformIndex:o}))}return i}function C(e){return"string"===typeof e&&"px"===e.substr(e.length-2)&&parseFloat(e)}function E(e){var t=e.margin;if(!e._size){var r=e._size={l:Math.round(t.l),r:Math.round(t.r),t:Math.round(t.t),b:Math.round(t.b),p:Math.round(t.pad)};r.w=Math.round(e.width)-r.l-r.r,r.h=Math.round(e.height)-r.t-r.b}e._pushmargin||(e._pushmargin={}),e._pushmarginIds||(e._pushmarginIds={})}x.supplyDefaults=function(e,t){var r=t&&t.skipUpdateCalc,n=e._fullLayout||{};if(n._skipDefaults)delete n._skipDefaults;else{var o,s=e._fullLayout={},c=e.layout||{},f=e._fullData||[],d=e._fullData=[],p=e.data||[],g=e.calcdata||[],v=e._context||{};e._transitionData||x.createTransitionData(e),s._dfltTitle={plot:b(e,"Click to enter Plot title"),x:b(e,"Click to enter X axis title"),y:b(e,"Click to enter Y axis title"),colorbar:b(e,"Click to enter Colorscale title"),annotation:b(e,"new text")},s._traceWord=b(e,"trace");var y=A(e,k);if(s._mapboxAccessToken=v.mapboxAccessToken,n._initialAutoSizeIsDone){var w=n.width,_=n.height;x.supplyLayoutGlobalDefaults(c,s,y),c.width||(s.width=w),c.height||(s.height=_),x.sanitizeMargins(s)}else{x.supplyLayoutGlobalDefaults(c,s,y);var S=!c.width||!c.height,M=s.autosize,O=v.autosizable;S&&(M||O)?x.plotAutoSize(e,c,s):S&&x.sanitizeMargins(s),!M&&S&&(c.width=s.width,c.height=s.height)}s._d3locale=function(e,t){return e.decimal=t.charAt(0),e.thousands=t.charAt(1),{numberFormat:function(t){try{t=i(e).format(u.adjustFormat(t))}catch(r){return u.warnBadFormat(t),u.noFormat}return t},timeFormat:a(e).utcFormat}}(y,s.separators),s._extraFormat=A(e,T),s._initialAutoSizeIsDone=!0,s._dataLength=p.length,s._modules=[],s._visibleModules=[],s._basePlotModules=[];var C=s._subplots=function(){var e,t,r=l.collectableSubplotTypes,n={};if(!r){r=[];var a=l.subplotsRegistry;for(var i in a){var o=a[i].attr;if(o&&(r.push(i),Array.isArray(o)))for(t=0;t<o.length;t++)u.pushUnique(r,o[t])}}for(e=0;e<r.length;e++)n[r[e]]=[];return n}(),L=s._splomAxes={x:{},y:{}},P=s._splomSubplots={};s._splomGridDflt={},s._scatterStackOpts={},s._firstScatter={},s._alignmentOpts={},s._colorAxes={},s._requestRangeslider={},s._traceUids=function(e,t){var r,n,a=t.length,i=[];for(r=0;r<e.length;r++){var o=e[r]._fullInput;o!==n&&i.push(o),n=o}var l=i.length,s=new Array(a),c={};function f(e,t){s[t]=e,c[e]=1}function d(e,t){if(e&&"string"===typeof e&&!c[e])return f(e,t),!0}for(r=0;r<a;r++){var p=t[r].uid;"number"===typeof p&&(p=String(p)),d(p,r)||(r<l&&d(i[r].uid,r)||f(u.randstr(c),r))}return s}(f,p),s._globalTransforms=(e._context||{}).globalTransforms,x.supplyDataDefaults(p,d,c,s);var j=Object.keys(L.x),z=Object.keys(L.y);if(j.length>1&&z.length>1){for(l.getComponentMethod("grid","sizeDefaults")(c,s),o=0;o<j.length;o++)u.pushUnique(C.xaxis,j[o]);for(o=0;o<z.length;o++)u.pushUnique(C.yaxis,z[o]);for(var D in P)u.pushUnique(C.cartesian,D)}if(s._has=x._hasPlotType.bind(s),f.length===d.length)for(o=0;o<d.length;o++)m(d[o],f[o]);x.supplyLayoutModuleDefaults(c,s,d,e._transitionData);var I=s._visibleModules,N=[];for(o=0;o<I.length;o++){var R=I[o].crossTraceDefaults;R&&u.pushUnique(N,R)}for(o=0;o<N.length;o++)N[o](d,s);s._hasOnlyLargeSploms=1===s._basePlotModules.length&&"splom"===s._basePlotModules[0].name&&j.length>15&&z.length>15&&0===s.shapes.length&&0===s.images.length,x.linkSubplots(d,s,f,n),x.cleanPlot(d,s,f,n);var F=!(!n._has||!n._has("gl2d")),B=!(!s._has||!s._has("gl2d")),U=!(!n._has||!n._has("cartesian"))||F,H=!(!s._has||!s._has("cartesian"))||B;U&&!H?n._bgLayer.remove():H&&!U&&(s._shouldCreateBgLayer=!0),n._zoomlayer&&!e._dragging&&h({_fullLayout:n}),function(e,t){var r,n=[];t.meta&&(r=t._meta={meta:t.meta,layout:{meta:t.meta}});for(var a=0;a<e.length;a++){var i=e[a];i.meta?n[i.index]=i._meta={meta:i.meta}:t.meta&&(i._meta={meta:t.meta}),t.meta&&(i._meta.layout={meta:t.meta})}n.length&&(r||(r=t._meta={}),r.data=n)}(d,s),m(s,n),l.getComponentMethod("colorscale","crossTraceDefaults")(d,s),s._preGUI||(s._preGUI={}),s._tracePreGUI||(s._tracePreGUI={});var V,q=s._tracePreGUI,W={};for(V in q)W[V]="old";for(o=0;o<d.length;o++)W[V=d[o]._fullInput.uid]||(q[V]={}),W[V]="new";for(V in W)"old"===W[V]&&delete q[V];E(s),l.getComponentMethod("rangeslider","makeData")(s),r||g.length!==d.length||x.supplyDefaultsUpdateCalc(g,d)}},x.supplyDefaultsUpdateCalc=function(e,t){for(var r=0;r<t.length;r++){var n=t[r],a=(e[r]||[])[0];if(a&&a.trace){var i=a.trace;if(i._hasCalcTransform){var o,l,s,c=i._arrayAttrs;for(o=0;o<c.length;o++)l=c[o],s=u.nestedProperty(i,l).get().slice(),u.nestedProperty(n,l).set(s)}a.trace=n}}},x.createTransitionData=function(e){e._transitionData||(e._transitionData={}),e._transitionData._frames||(e._transitionData._frames=[]),e._transitionData._frameHash||(e._transitionData._frameHash={}),e._transitionData._counter||(e._transitionData._counter=0),e._transitionData._interruptCallbacks||(e._transitionData._interruptCallbacks=[])},x._hasPlotType=function(e){var t,r=this._basePlotModules||[];for(t=0;t<r.length;t++)if(r[t].name===e)return!0;var n=this._modules||[];for(t=0;t<n.length;t++){var a=n[t].name;if(a===e)return!0;var i=l.modules[a];if(i&&i.categories[e])return!0}return!1},x.cleanPlot=function(e,t,r,n){var a,i,o=n._basePlotModules||[];for(a=0;a<o.length;a++){var l=o[a];l.clean&&l.clean(e,t,r,n)}var s=n._has&&n._has("gl"),c=t._has&&t._has("gl");s&&!c&&void 0!==n._glcontainer&&(n._glcontainer.selectAll(".gl-canvas").remove(),n._glcontainer.selectAll(".no-webgl").remove(),n._glcanvas=null);var u=!!n._infolayer;e:for(a=0;a<r.length;a++){var f=r[a].uid;for(i=0;i<e.length;i++){if(f===e[i].uid)continue e}u&&n._infolayer.select(".cb"+f).remove()}},x.linkSubplots=function(e,t,r,n){var a,i,o=n._plots||{},s=t._plots={},c=t._subplots,f={_fullData:e,_fullLayout:t},d=c.cartesian.concat(c.gl2d||[]);for(a=0;a<d.length;a++){var h,g=d[a],v=o[g],y=p.getFromId(f,g,"x"),m=p.getFromId(f,g,"y");for(v?h=s[g]=v:(h=s[g]={}).id=g,y._counterAxes.push(m._id),m._counterAxes.push(y._id),y._subplotsWith.push(g),m._subplotsWith.push(g),h.xaxis=y,h.yaxis=m,h._hasClipOnAxisFalse=!1,i=0;i<e.length;i++){var b=e[i];if(b.xaxis===h.xaxis._id&&b.yaxis===h.yaxis._id&&!1===b.cliponaxis){h._hasClipOnAxisFalse=!0;break}}}var x,w=p.list(f,null,!0);for(a=0;a<w.length;a++){var _=null;(x=w[a]).overlaying&&(_=p.getFromId(f,x.overlaying))&&_.overlaying&&(x.overlaying=!1,_=null),x._mainAxis=_||x,_&&(x.domain=_.domain.slice()),x._anchorAxis="free"===x.anchor?null:p.getFromId(f,x.anchor)}for(a=0;a<w.length;a++)if((x=w[a])._counterAxes.sort(p.idSort),x._subplotsWith.sort(u.subplotSort),x._mainSubplot=S(x,t),x._counterAxes.length&&(x.spikemode&&-1!==x.spikemode.indexOf("across")||x.automargin&&x.mirror&&"free"!==x.anchor||l.getComponentMethod("rangeslider","isVisible")(x))){var k=1,T=0;for(i=0;i<x._counterAxes.length;i++){var A=p.getFromId(f,x._counterAxes[i]);k=Math.min(k,A.domain[0]),T=Math.max(T,A.domain[1])}k<T&&(x._counterDomainMin=k,x._counterDomainMax=T)}},x.clearExpandedTraceDefaultColors=function(e){var t,r,n;for(r=[],(t=e._module._colorAttrs)||(e._module._colorAttrs=t=[],s.crawl(e._module.attributes,(function(e,n,a,i){r[i]=n,r.length=i+1,"color"===e.valType&&void 0===e.dflt&&t.push(r.join("."))}))),n=0;n<t.length;n++){u.nestedProperty(e,"_input."+t[n]).get()||u.nestedProperty(e,t[n]).set(null)}},x.supplyDataDefaults=function(e,t,r,n){var a,i,o,s=n._modules,f=n._visibleModules,d=n._basePlotModules,p=0,h=0;function g(e){t.push(e);var r=e._module;r&&(u.pushUnique(s,r),!0===e.visible&&u.pushUnique(f,r),u.pushUnique(d,e._module.basePlotModule),p++,!1!==e._input.visible&&h++)}n._transformModules=[];var v={},y=[],b=(r.template||{}).data||{},w=c.traceTemplater(b);for(a=0;a<e.length;a++){if(o=e[a],(i=w.newTrace(o)).uid=n._traceUids[a],x.supplyTraceDefaults(o,i,h,n,a),i.index=a,i._input=o,i._expandedIndex=p,i.transforms&&i.transforms.length)for(var _=!1!==o.visible&&!1===i.visible,k=O(i,t,r,n),T=0;T<k.length;T++){var A=k[T],S={_template:i._template,type:i.type,uid:i.uid+T};_&&!1===A.visible&&delete A.visible,x.supplyTraceDefaults(A,S,p,n,a),m(S,A),S.index=a,S._input=o,S._fullInput=i,S._expandedIndex=p,S._expandedInput=A,g(S)}else i._fullInput=i,i._expandedInput=i,g(i);l.traceIs(i,"carpetAxis")&&(v[i.carpet]=i),l.traceIs(i,"carpetDependent")&&y.push(a)}for(a=0;a<y.length;a++)if((i=t[y[a]]).visible){var M=v[i.carpet];i._carpet=M,M&&M.visible?(i.xaxis=M.xaxis,i.yaxis=M.yaxis):i.visible=!1}},x.supplyAnimationDefaults=function(e){var t;e=e||{};var r={};function n(t,n){return u.coerce(e||{},r,g,t,n)}if(n("mode"),n("direction"),n("fromcurrent"),Array.isArray(e.frame))for(r.frame=[],t=0;t<e.frame.length;t++)r.frame[t]=x.supplyAnimationFrameDefaults(e.frame[t]||{});else r.frame=x.supplyAnimationFrameDefaults(e.frame||{});if(Array.isArray(e.transition))for(r.transition=[],t=0;t<e.transition.length;t++)r.transition[t]=x.supplyAnimationTransitionDefaults(e.transition[t]||{});else r.transition=x.supplyAnimationTransitionDefaults(e.transition||{});return r},x.supplyAnimationFrameDefaults=function(e){var t={};function r(r,n){return u.coerce(e||{},t,g.frame,r,n)}return r("duration"),r("redraw"),t},x.supplyAnimationTransitionDefaults=function(e){var t={};function r(r,n){return u.coerce(e||{},t,g.transition,r,n)}return r("duration"),r("easing"),t},x.supplyFrameDefaults=function(e){var t={};function r(r,n){return u.coerce(e,t,v,r,n)}return r("group"),r("name"),r("traces"),r("baseframe"),r("data"),r("layout"),t},x.supplyTraceDefaults=function(e,t,r,n,a){var i,o=n.colorway||f.defaults,s=o[r%o.length];function c(r,n){return u.coerce(e,t,x.attributes,r,n)}var d=c("visible");c("type"),c("name",n._traceWord+" "+a),c("uirevision",n.uirevision);var p=x.getModule(t);if(t._module=p,p){var h=p.basePlotModule,g=h.attr,v=h.attributes;if(g&&v){var y=n._subplots,m="";if(d||"gl2d"!==h.name){if(Array.isArray(g))for(i=0;i<g.length;i++){var b=g[i],w=u.coerce(e,t,v,b);y[b]&&u.pushUnique(y[b],w),m+=w}else m=u.coerce(e,t,v,g);y[h.name]&&u.pushUnique(y[h.name],m)}}}return d&&(c("customdata"),c("ids"),c("meta"),l.traceIs(t,"showLegend")?(u.coerce(e,t,p.attributes.showlegend?p.attributes:x.attributes,"showlegend"),c("legendgroup"),c("legendgrouptitle.text"),c("legendrank"),t._dfltShowLegend=!0):t._dfltShowLegend=!1,p&&p.supplyDefaults(e,t,s,n),l.traceIs(t,"noOpacity")||c("opacity"),l.traceIs(t,"notLegendIsolatable")&&(t.visible=!!t.visible),l.traceIs(t,"noHover")||(t.hovertemplate||u.coerceHoverinfo(e,t,n),"parcats"!==t.type&&l.getComponentMethod("fx","supplyDefaults")(e,t,s,n)),p&&p.selectPoints&&c("selectedpoints"),x.supplyTransformDefaults(e,t,n)),t},x.hasMakesDataTransform=M,x.supplyTransformDefaults=function(e,t,r){if(t._length||M(e)){var n=r._globalTransforms||[],a=r._transformModules||[];if(Array.isArray(e.transforms)||0!==n.length)for(var i=e.transforms||[],o=n.concat(i),l=t.transforms=[],s=0;s<o.length;s++){var c,f=o[s],d=f.type,p=w[d],h=!(f._module&&f._module===p),g=p&&"function"===typeof p.transform;p||u.warn("Unrecognized transform type "+d+"."),p&&p.supplyDefaults&&(h||g)?((c=p.supplyDefaults(f,t,r,e)).type=d,c._module=p,u.pushUnique(a,p)):c=u.extendFlat({},f),l.push(c)}}},x.supplyLayoutGlobalDefaults=function(e,t,r){function n(r,n){return u.coerce(e,t,x.layoutAttributes,r,n)}var a=e.template;u.isPlainObject(a)&&(t.template=a,t._template=a.layout,t._dataTemplate=a.data),n("autotypenumbers");var i=u.coerceFont(n,"font"),o=i.size;u.coerceFont(n,"title.font",u.extendFlat({},i,{size:Math.round(1.4*o)})),n("title.text",t._dfltTitle.plot),n("title.xref"),n("title.yref"),n("title.x"),n("title.y"),n("title.xanchor"),n("title.yanchor"),n("title.pad.t"),n("title.pad.r"),n("title.pad.b"),n("title.pad.l"),n("uniformtext.mode")&&n("uniformtext.minsize"),n("autosize",!(e.width&&e.height)),n("width"),n("height"),n("margin.l"),n("margin.r"),n("margin.t"),n("margin.b"),n("margin.pad"),n("margin.autoexpand"),e.width&&e.height&&x.sanitizeMargins(t),l.getComponentMethod("grid","sizeDefaults")(e,t),n("paper_bgcolor"),n("separators",r.decimal+r.thousands),n("hidesources"),n("colorway"),n("datarevision");var s=n("uirevision");n("editrevision",s),n("selectionrevision",s),l.getComponentMethod("modebar","supplyLayoutDefaults")(e,t),l.getComponentMethod("shapes","supplyDrawNewShapeDefaults")(e,t,n),n("meta"),u.isPlainObject(e.transition)&&(n("transition.duration"),n("transition.easing"),n("transition.ordering")),l.getComponentMethod("calendars","handleDefaults")(e,t,"calendar"),l.getComponentMethod("fx","supplyLayoutGlobalDefaults")(e,t,n)},x.plotAutoSize=function(e,t,r){var n,a,i=e._context||{},l=i.frameMargins,s=u.isPlotDiv(e);if(s&&e.emit("plotly_autosize"),i.fillFrame)n=window.innerWidth,a=window.innerHeight,document.body.style.overflow="hidden";else{var c=s?window.getComputedStyle(e):{};if(n=C(c.width)||C(c.maxWidth)||r.width,a=C(c.height)||C(c.maxHeight)||r.height,o(l)&&l>0){var f=1-2*l;n=Math.round(f*n),a=Math.round(f*a)}}var d=x.layoutAttributes.width.min,p=x.layoutAttributes.height.min;n<d&&(n=d),a<p&&(a=p);var h=!t.width&&Math.abs(r.width-n)>1,g=!t.height&&Math.abs(r.height-a)>1;(g||h)&&(h&&(r.width=n),g&&(r.height=a)),e._initialAutoSize||(e._initialAutoSize={width:n,height:a}),x.sanitizeMargins(r)},x.supplyLayoutModuleDefaults=function(e,t,r,n){var a,i,o,s=l.componentsRegistry,c=t._basePlotModules,f=l.subplotsRegistry.cartesian;for(a in s)(o=s[a]).includeBasePlot&&o.includeBasePlot(e,t);for(var d in c.length||c.push(f),t._has("cartesian")&&(l.getComponentMethod("grid","contentDefaults")(e,t),f.finalizeSubplots(e,t)),t._subplots)t._subplots[d].sort(u.subplotSort);for(i=0;i<c.length;i++)(o=c[i]).supplyLayoutDefaults&&o.supplyLayoutDefaults(e,t,r);var p=t._modules;for(i=0;i<p.length;i++)(o=p[i]).supplyLayoutDefaults&&o.supplyLayoutDefaults(e,t,r);var h=t._transformModules;for(i=0;i<h.length;i++)(o=h[i]).supplyLayoutDefaults&&o.supplyLayoutDefaults(e,t,r,n);for(a in s)(o=s[a]).supplyLayoutDefaults&&o.supplyLayoutDefaults(e,t,r)},x.purge=function(e){var t=e._fullLayout||{};void 0!==t._glcontainer&&(t._glcontainer.selectAll(".gl-canvas").remove(),t._glcontainer.remove(),t._glcanvas=null),t._modeBar&&t._modeBar.destroy(),e._transitionData&&(e._transitionData._interruptCallbacks&&(e._transitionData._interruptCallbacks.length=0),e._transitionData._animationRaf&&window.cancelAnimationFrame(e._transitionData._animationRaf)),u.clearThrottle(),u.clearResponsive(e),delete e.data,delete e.layout,delete e._fullData,delete e._fullLayout,delete e.calcdata,delete e.empty,delete e.fid,delete e.undoqueue,delete e.undonum,delete e.autoplay,delete e.changed,delete e._promises,delete e._redrawTimer,delete e._hmlumcount,delete e._hmpixcount,delete e._transitionData,delete e._transitioning,delete e._initialAutoSize,delete e._transitioningWithDuration,delete e._dragging,delete e._dragged,delete e._dragdata,delete e._hoverdata,delete e._snapshotInProgress,delete e._editing,delete e._mouseDownTime,delete e._legendMouseDownTime,e.removeAllListeners&&e.removeAllListeners()},x.style=function(e){var t,r=e._fullLayout._visibleModules,n=[];for(t=0;t<r.length;t++){var a=r[t];a.style&&u.pushUnique(n,a.style)}for(t=0;t<n.length;t++)n[t](e)},x.sanitizeMargins=function(e){if(e&&e.margin){var t,r=e.width,n=e.height,a=e.margin,i=r-(a.l+a.r),o=n-(a.t+a.b);i<0&&(t=(r-1)/(a.l+a.r),a.l=Math.floor(t*a.l),a.r=Math.floor(t*a.r)),o<0&&(t=(n-1)/(a.t+a.b),a.t=Math.floor(t*a.t),a.b=Math.floor(t*a.b))}},x.clearAutoMarginIds=function(e){e._fullLayout._pushmarginIds={}},x.allowAutoMargin=function(e,t){e._fullLayout._pushmarginIds[t]=1};x.autoMargin=function(e,t,r){var n=e._fullLayout,a=n.width,i=n.height,o=n.margin,l=u.constrain(a-o.l-o.r,2,64),s=u.constrain(i-o.t-o.b,2,64),c=Math.max(0,a-l),f=Math.max(0,i-s),d=n._pushmargin,p=n._pushmarginIds;if(!1!==o.autoexpand){if(r){var h=r.pad;if(void 0===h&&(h=Math.min(12,o.l,o.r,o.t,o.b)),c){var g=(r.l+r.r)/c;g>1&&(r.l/=g,r.r/=g)}if(f){var v=(r.t+r.b)/f;v>1&&(r.t/=v,r.b/=v)}var y=void 0!==r.xl?r.xl:r.x,m=void 0!==r.xr?r.xr:r.x,b=void 0!==r.yt?r.yt:r.y,w=void 0!==r.yb?r.yb:r.y;d[t]={l:{val:y,size:r.l+h},r:{val:m,size:r.r+h},b:{val:w,size:r.b+h},t:{val:b,size:r.t+h}},p[t]=1}else delete d[t],delete p[t];if(!n._replotting)return x.doAutoMargin(e)}},x.doAutoMargin=function(e){var t=e._fullLayout,r=t.width,n=t.height;t._size||(t._size={}),E(t);var a=t._size,i=t.margin,s=u.extendFlat({},a),c=i.l,f=i.r,d=i.t,h=i.b,g=t._pushmargin,v=t._pushmarginIds;if(!1!==t.margin.autoexpand){for(var y in g)v[y]||delete g[y];for(var m in g.base={l:{val:0,size:c},r:{val:1,size:f},t:{val:1,size:d},b:{val:0,size:h}},g){var b=g[m].l||{},w=g[m].b||{},_=b.val,k=b.size,T=w.val,A=w.size;for(var S in g){if(o(k)&&g[S].r){var M=g[S].r.val,O=g[S].r.size;if(M>_){var C=(k*M+(O-r)*_)/(M-_),L=(O*(1-_)+(k-r)*(1-M))/(M-_);C+L>c+f&&(c=C,f=L)}}if(o(A)&&g[S].t){var P=g[S].t.val,j=g[S].t.size;if(P>T){var z=(A*P+(j-n)*T)/(P-T),D=(j*(1-T)+(A-n)*(1-P))/(P-T);z+D>h+d&&(h=z,d=D)}}}}}var I=u.constrain(r-i.l-i.r,2,64),N=u.constrain(n-i.t-i.b,2,64),R=Math.max(0,r-I),F=Math.max(0,n-N);if(R){var B=(c+f)/R;B>1&&(c/=B,f/=B)}if(F){var U=(h+d)/F;U>1&&(h/=U,d/=U)}if(a.l=Math.round(c),a.r=Math.round(f),a.t=Math.round(d),a.b=Math.round(h),a.p=Math.round(i.pad),a.w=Math.round(r)-a.l-a.r,a.h=Math.round(n)-a.t-a.b,!t._replotting&&x.didMarginChange(s,a)){"_redrawFromAutoMarginCount"in t?t._redrawFromAutoMarginCount++:t._redrawFromAutoMarginCount=1;var H=3*(1+Object.keys(v).length);if(t._redrawFromAutoMarginCount<H)return l.call("_doPlot",e);t._size=s,u.warn("Too many auto-margin redraws.")}!function(e){var t=p.list(e,"",!0);["_adjustTickLabelsOverflow","_hideCounterAxisInsideTickLabels"].forEach((function(e){for(var r=0;r<t.length;r++){var n=t[r][e];n&&n()}}))}(e)};var L=["l","r","t","b","p","w","h"];function P(e,t,r){var n=!1;var a=[x.previousPromises,function(){if(e._transitionData)return e._transitioning=!1,function(e){var t=Promise.resolve();if(!e)return t;for(;e.length;)t=t.then(e.shift());return t}(e._transitionData._interruptCallbacks)},r.prepareFn,x.rehover,function(){return e.emit("plotly_transitioning",[]),new Promise((function(a){e._transitioning=!0,t.duration>0&&(e._transitioningWithDuration=!0),e._transitionData._interruptCallbacks.push((function(){n=!0})),r.redraw&&e._transitionData._interruptCallbacks.push((function(){return l.call("redraw",e)})),e._transitionData._interruptCallbacks.push((function(){e.emit("plotly_transitioninterrupted",[])}));var i=0,o=0;function s(){return i++,function(){o++,n||o!==i||function(t){if(!e._transitionData)return;(function(e){if(e)for(;e.length;)e.shift()})(e._transitionData._interruptCallbacks),Promise.resolve().then((function(){if(r.redraw)return l.call("redraw",e)})).then((function(){e._transitioning=!1,e._transitioningWithDuration=!1,e.emit("plotly_transitioned",[])})).then(t)}(a)}}r.runFn(s),setTimeout(s())}))}],i=u.syncOrAsync(a,e);return i&&i.then||(i=Promise.resolve()),i.then((function(){return e}))}x.didMarginChange=function(e,t){for(var r=0;r<L.length;r++){var n=L[r],a=e[n],i=t[n];if(!o(a)||Math.abs(i-a)>1)return!0}return!1},x.graphJson=function(e,t,r,n,a,i){(a&&t&&!e._fullData||a&&!t&&!e._fullLayout)&&x.supplyDefaults(e);var o=a?e._fullData:e.data,l=a?e._fullLayout:e.layout,s=(e._transitionData||{})._frames;function c(e,t){if("function"===typeof e)return t?"_function_":null;if(u.isPlainObject(e)){var n,a={};return Object.keys(e).sort().forEach((function(i){if(-1===["_","["].indexOf(i.charAt(0)))if("function"!==typeof e[i]){if("keepdata"===r){if("src"===i.substr(i.length-3))return}else if("keepstream"===r){if("string"===typeof(n=e[i+"src"])&&n.indexOf(":")>0&&!u.isPlainObject(e.stream))return}else if("keepall"!==r&&"string"===typeof(n=e[i+"src"])&&n.indexOf(":")>0)return;a[i]=c(e[i],t)}else t&&(a[i]="_function")})),a}return Array.isArray(e)?e.map((function(e){return c(e,t)})):u.isTypedArray(e)?u.simpleMap(e,u.identity):u.isJSDate(e)?u.ms2DateTimeLocal(+e):e}var f={data:(o||[]).map((function(e){var r=c(e);return t&&delete r.fit,r}))};if(!t&&(f.layout=c(l),a)){var d=l._size;f.layout.computed={margin:{b:d.b,l:d.l,r:d.r,t:d.t}}}return s&&(f.frames=c(s)),i&&(f.config=c(e._context,!0)),"object"===n?f:JSON.stringify(f)},x.modifyFrames=function(e,t){var r,n,a,i=e._transitionData._frames,o=e._transitionData._frameHash;for(r=0;r<t.length;r++)switch((n=t[r]).type){case"replace":a=n.value;var l=(i[n.index]||{}).name,s=a.name;i[n.index]=o[s]=a,s!==l&&(delete o[l],o[s]=a);break;case"insert":o[(a=n.value).name]=a,i.splice(n.index,0,a);break;case"delete":delete o[(a=i[n.index]).name],i.splice(n.index,1)}return Promise.resolve()},x.computeFrame=function(e,t){var r,n,a,i,o=e._transitionData._frameHash;if(!t)throw new Error("computeFrame must be given a string frame name");var l=o[t.toString()];if(!l)return!1;for(var s=[l],c=[l.name];l.baseframe&&(l=o[l.baseframe.toString()])&&-1===c.indexOf(l.name);)s.push(l),c.push(l.name);for(var u={};l=s.pop();)if(l.layout&&(u.layout=x.extendLayout(u.layout,l.layout)),l.data){if(u.data||(u.data=[]),!(n=l.traces))for(n=[],r=0;r<l.data.length;r++)n[r]=r;for(u.traces||(u.traces=[]),r=0;r<l.data.length;r++)void 0!==(a=n[r])&&null!==a&&(-1===(i=u.traces.indexOf(a))&&(i=u.data.length,u.traces[i]=a),u.data[i]=x.extendTrace(u.data[i],l.data[r]))}return u},x.recomputeFrameHash=function(e){for(var t=e._transitionData._frameHash={},r=e._transitionData._frames,n=0;n<r.length;n++){var a=r[n];a&&a.name&&(t[a.name]=a)}},x.extendObjectWithContainers=function(e,t,r){var n,a,i,o,l,s,c,f=u.extendDeepNoArrays({},t||{}),d=u.expandObjectPaths(f),p={};if(r&&r.length)for(i=0;i<r.length;i++)void 0===(a=(n=u.nestedProperty(d,r[i])).get())?u.nestedProperty(p,r[i]).set(null):(n.set(null),u.nestedProperty(p,r[i]).set(a));if(e=u.extendDeepNoArrays(e||{},d),r&&r.length)for(i=0;i<r.length;i++)if(s=u.nestedProperty(p,r[i]).get()){for(c=(l=u.nestedProperty(e,r[i])).get(),Array.isArray(c)||(c=[],l.set(c)),o=0;o<s.length;o++){var h=s[o];c[o]=null===h?null:x.extendObjectWithContainers(c[o],h)}l.set(c)}return e},x.dataArrayContainers=["transforms","dimensions"],x.layoutArrayContainers=l.layoutArrayContainers,x.extendTrace=function(e,t){return x.extendObjectWithContainers(e,t,x.dataArrayContainers)},x.extendLayout=function(e,t){return x.extendObjectWithContainers(e,t,x.layoutArrayContainers)},x.transition=function(e,t,r,n,a,i){var o={redraw:a.redraw},l={},s=[];return o.prepareFn=function(){for(var a=Array.isArray(t)?t.length:0,i=n.slice(0,a),o=0;o<i.length;o++){var c=i[o],f=e._fullData[c]._module;if(f){if(f.animatable){var d=f.basePlotModule.name;l[d]||(l[d]=[]),l[d].push(c)}e.data[i[o]]=x.extendTrace(e.data[i[o]],t[o])}}var p=u.expandObjectPaths(u.extendDeepNoArrays({},r)),h=/^[xy]axis[0-9]*$/;for(var g in p)h.test(g)&&delete p[g].range;x.extendLayout(e.layout,p),delete e.calcdata,x.supplyDefaults(e),x.doCalcdata(e);var v=u.expandObjectPaths(r);if(v){var y=e._fullLayout._plots;for(var m in y){var b=y[m],w=b.xaxis,_=b.yaxis,k=w.range.slice(),T=_.range.slice(),A=null,S=null,M=null,O=null;Array.isArray(v[w._name+".range"])?A=v[w._name+".range"].slice():Array.isArray((v[w._name]||{}).range)&&(A=v[w._name].range.slice()),Array.isArray(v[_._name+".range"])?S=v[_._name+".range"].slice():Array.isArray((v[_._name]||{}).range)&&(S=v[_._name].range.slice()),k&&A&&(w.r2l(k[0])!==w.r2l(A[0])||w.r2l(k[1])!==w.r2l(A[1]))&&(M={xr0:k,xr1:A}),T&&S&&(_.r2l(T[0])!==_.r2l(S[0])||_.r2l(T[1])!==_.r2l(S[1]))&&(O={yr0:T,yr1:S}),(M||O)&&s.push(u.extendFlat({plotinfo:b},M,O))}}return Promise.resolve()},o.runFn=function(t){var n,a,o=e._fullLayout._basePlotModules,c=s.length;if(r)for(a=0;a<o.length;a++)o[a].transitionAxes&&o[a].transitionAxes(e,s,i,t);for(var f in c?((n=u.extendFlat({},i)).duration=0,delete l.cartesian):n=i,l){var d=l[f];e._fullData[d[0]]._module.basePlotModule.plot(e,d,n,t)}},P(e,i,o)},x.transitionFromReact=function(e,t,r,n){var a=e._fullLayout,i=a.transition,o={},l=[];return o.prepareFn=function(){var e=a._plots;for(var i in o.redraw=!1,"some"===t.anim&&(o.redraw=!0),"some"===r.anim&&(o.redraw=!0),e){var s=e[i],c=s.xaxis,f=s.yaxis,d=n[c._name].range.slice(),p=n[f._name].range.slice(),h=c.range.slice(),g=f.range.slice();c.setScale(),f.setScale();var v=null,y=null;c.r2l(d[0])===c.r2l(h[0])&&c.r2l(d[1])===c.r2l(h[1])||(v={xr0:d,xr1:h}),f.r2l(p[0])===f.r2l(g[0])&&f.r2l(p[1])===f.r2l(g[1])||(y={yr0:p,yr1:g}),(v||y)&&l.push(u.extendFlat({plotinfo:s},v,y))}return Promise.resolve()},o.runFn=function(r){for(var n,a,o,s=e._fullData,c=e._fullLayout._basePlotModules,f=[],d=0;d<s.length;d++)f.push(d);function p(){if(e._fullLayout)for(var t=0;t<c.length;t++)c[t].transitionAxes&&c[t].transitionAxes(e,l,n,r)}function h(){if(e._fullLayout)for(var t=0;t<c.length;t++)c[t].plot(e,o,a,r)}l.length&&t.anim?"traces first"===i.ordering?(n=u.extendFlat({},i,{duration:0}),o=f,a=i,setTimeout(p,i.duration),h()):(n=i,o=null,a=u.extendFlat({},i,{duration:0}),setTimeout(h,n.duration),p()):l.length?(n=i,p()):t.anim&&(o=f,a=i,h())},P(e,i,o)},x.doCalcdata=function(e,t){var r,n,a,i,o=p.list(e),c=e._fullData,f=e._fullLayout,h=new Array(c.length),g=(e.calcdata||[]).slice();for(e.calcdata=h,f._numBoxes=0,f._numViolins=0,f._violinScaleGroupStats={},e._hmpixcount=0,e._hmlumcount=0,f._piecolormap={},f._sunburstcolormap={},f._treemapcolormap={},f._iciclecolormap={},f._funnelareacolormap={},a=0;a<c.length;a++)Array.isArray(t)&&-1===t.indexOf(a)&&(h[a]=g[a]);for(a=0;a<c.length;a++)(r=c[a])._arrayAttrs=s.findArrayAttributes(r),r._extremes={};var v=f._subplots.polar||[];for(a=0;a<v.length;a++)o.push(f[v[a]].radialaxis,f[v[a]].angularaxis);for(var y in f._colorAxes){var m=f[y];!1!==m.cauto&&(delete m.cmin,delete m.cmax)}var b=!1;function x(t){if(r=c[t],n=r._module,!0===r.visible&&r.transforms){if(n&&n.calc){var a=n.calc(e,r);a[0]&&a[0].t&&a[0].t._scene&&delete a[0].t._scene.dirty}for(i=0;i<r.transforms.length;i++){var o=r.transforms[i];(n=w[o.type])&&n.calcTransform&&(r._hasCalcTransform=!0,b=!0,n.calcTransform(e,r,o))}}}function _(t,a){if(r=c[t],!!(n=r._module).isContainer===a){var o=[];if(!0===r.visible&&0!==r._length){delete r._indexToPoints;var l=r.transforms||[];for(i=l.length-1;i>=0;i--)if(l[i].enabled){r._indexToPoints=l[i]._indexToPoints;break}n&&n.calc&&(o=n.calc(e,r))}Array.isArray(o)&&o[0]||(o=[{x:d,y:d}]),o[0].t||(o[0].t={}),o[0].trace=r,h[t]=o}}for(z(o,c,f),a=0;a<c.length;a++)_(a,!0);for(a=0;a<c.length;a++)x(a);for(b&&z(o,c,f),a=0;a<c.length;a++)_(a,!0);for(a=0;a<c.length;a++)_(a,!1);D(e);var k=function(e,t){var r,n,a,i,o,s=[];function c(e,r,n){var a=r._id.charAt(0);if("histogram2dcontour"===e){var i=r._counterAxes[0],o=p.getFromId(t,i),l="x"===a||"x"===i&&"category"===o.type,s="y"===a||"y"===i&&"category"===o.type;return function(e,t){return 0===e||0===t||l&&e===n[t].length-1||s&&t===n.length-1?-1:("y"===a?t:e)-1}}return function(e,t){return"y"===a?t:e}}var f={min:function(e){return u.aggNums(Math.min,null,e)},max:function(e){return u.aggNums(Math.max,null,e)},sum:function(e){return u.aggNums((function(e,t){return e+t}),null,e)},total:function(e){return u.aggNums((function(e,t){return e+t}),null,e)},mean:function(e){return u.mean(e)},median:function(e){return u.median(e)}};for(r=0;r<e.length;r++){var d=e[r];if("category"===d.type){var h=d.categoryorder.match(j);if(h){var g=h[1],v=h[2],y=d._id.charAt(0),m="x"===y,b=[];for(n=0;n<d._categories.length;n++)b.push([d._categories[n],[]]);for(n=0;n<d._traceIndices.length;n++){var x=d._traceIndices[n],w=t._fullData[x];if(!0===w.visible){var _=w.type;l.traceIs(w,"histogram")&&(delete w._xautoBinFinished,delete w._yautoBinFinished);var k="splom"===_,T="scattergl"===_,A=t.calcdata[x];for(a=0;a<A.length;a++){var S,M,O=A[a];if(k){var C=w._axesDim[d._id];if(!m){var E=w._diag[C][0];E&&(d=t._fullLayout[p.id2name(E)])}var L=O.trace.dimensions[C].values;for(i=0;i<L.length;i++)for(S=d._categoriesMap[L[i]],o=0;o<O.trace.dimensions.length;o++)if(o!==C){var P=O.trace.dimensions[o];b[S][1].push(P.values[i])}}else if(T){for(i=0;i<O.t.x.length;i++)m?(S=O.t.x[i],M=O.t.y[i]):(S=O.t.y[i],M=O.t.x[i]),b[S][1].push(M);O.t&&O.t._scene&&delete O.t._scene.dirty}else if(O.hasOwnProperty("z")){M=O.z;var z=c(w.type,d,M);for(i=0;i<M.length;i++)for(o=0;o<M[i].length;o++)(S=z(o,i))+1&&b[S][1].push(M[i][o])}else for(void 0===(S=O.p)&&(S=O[y]),void 0===(M=O.s)&&(M=O.v),void 0===M&&(M=m?O.y:O.x),Array.isArray(M)||(M=void 0===M?[]:[M]),i=0;i<M.length;i++)b[S][1].push(M[i])}}}d._categoriesValue=b;var D=[];for(n=0;n<b.length;n++)D.push([b[n][0],f[g](b[n][1])]);D.sort((function(e,t){return e[1]-t[1]})),d._categoriesAggregatedValue=D,d._initialCategories=D.map((function(e){return e[0]})),"descending"===v&&d._initialCategories.reverse(),s=s.concat(d.sortByInitialCategories())}}}return s}(o,e);if(k.length){for(f._numBoxes=0,f._numViolins=0,a=0;a<k.length;a++)_(k[a],!0);for(a=0;a<k.length;a++)_(k[a],!1);D(e)}l.getComponentMethod("fx","calc")(e),l.getComponentMethod("errorbars","calc")(e)};var j=/(total|sum|min|max|mean|median) (ascending|descending)/;function z(e,t,r){var n={};function a(e){e.clearCalc(),"multicategory"===e.type&&e.setupMultiCategory(t),n[e._id]=1}u.simpleMap(e,a);for(var i=r._axisMatchGroups||[],o=0;o<i.length;o++)for(var l in i[o])n[l]||a(r[p.id2name(l)])}function D(e){var t,r,n,a=e._fullLayout,i=a._visibleModules,o={};for(r=0;r<i.length;r++){var l=i[r],s=l.crossTraceCalc;if(s){var c=l.basePlotModule.name;o[c]?u.pushUnique(o[c],s):o[c]=[s]}}for(n in o){var f=o[n],d=a._subplots[n];if(Array.isArray(d))for(t=0;t<d.length;t++){var p=d[t],h="cartesian"===n?a._plots[p]:a[p];for(r=0;r<f.length;r++)f[r](e,h,p)}else for(r=0;r<f.length;r++)f[r](e)}}x.rehover=function(e){e._fullLayout._rehover&&e._fullLayout._rehover()},x.redrag=function(e){e._fullLayout._redrag&&e._fullLayout._redrag()},x.generalUpdatePerTraceModule=function(e,t,r,n){var a,i=t.traceHash,o={};for(a=0;a<r.length;a++){var l=r[a],s=l[0].trace;s.visible&&(o[s.type]=o[s.type]||[],o[s.type].push(l))}for(var c in i)if(!o[c]){var f=i[c][0];f[0].trace.visible=!1,o[c]=[f]}for(var d in o){var p=o[d];p[0][0].trace._module.plot(e,t,u.filterVisible(p),n)}t.traceHash=o},x.plotBasePlot=function(e,t,r,n,a){var i=l.getModule(e),o=y(t.calcdata,i)[0];i.plot(t,o,n,a)},x.cleanBasePlot=function(e,t,r,n,a){var i=a._has&&a._has(e),o=r._has&&r._has(e);i&&!o&&a["_"+e+"layer"].selectAll("g.trace").remove()}},function(e,t,r){"use strict";var n=r(5),a=r(29);function i(e,t){if(t&&t.length)for(var r=0;r<t.length;r++)if(t[r][e])return!0;return!1}t.id2name=function(e){if("string"===typeof e&&e.match(a.AX_ID_PATTERN)){var t=e.split(" ")[0].substr(1);return"1"===t&&(t=""),e.charAt(0)+"axis"+t}},t.name2id=function(e){if(e.match(a.AX_NAME_PATTERN)){var t=e.substr(5);return"1"===t&&(t=""),e.charAt(0)+t}},t.cleanId=function(e,t,r){var n=/( domain)$/.test(e);if("string"===typeof e&&e.match(a.AX_ID_PATTERN)&&(!t||e.charAt(0)===t)&&(!n||r)){var i=e.split(" ")[0].substr(1).replace(/^0+/,"");return"1"===i&&(i=""),e.charAt(0)+i+(n&&r?" domain":"")}},t.list=function(e,r,n){var a=e._fullLayout;if(!a)return[];var i,o=t.listIds(e,r),l=new Array(o.length);for(i=0;i<o.length;i++){var s=o[i];l[i]=a[s.charAt(0)+"axis"+s.substr(1)]}if(!n){var c=a._subplots.gl3d||[];for(i=0;i<c.length;i++){var u=a[c[i]];r?l.push(u[r+"axis"]):l.push(u.xaxis,u.yaxis,u.zaxis)}}return l},t.listIds=function(e,t){var r=e._fullLayout;if(!r)return[];var n=r._subplots;return t?n[t+"axis"]:n.xaxis.concat(n.yaxis)},t.getFromId=function(e,r,n){var a=e._fullLayout;return r=void 0===r||"string"!==typeof r?r:r.replace(" domain",""),"x"===n?r=r.replace(/y[0-9]*/,""):"y"===n&&(r=r.replace(/x[0-9]*/,"")),a[t.id2name(r)]},t.getFromTrace=function(e,r,a){var i=e._fullLayout,o=null;if(n.traceIs(r,"gl3d")){var l=r.scene;"scene"===l.substr(0,5)&&(o=i[l][a+"axis"])}else o=t.getFromId(e,r[a+"axis"]||a);return o},t.idSort=function(e,t){var r=e.charAt(0),n=t.charAt(0);return r!==n?r>n?1:-1:+(e.substr(1)||1)-+(t.substr(1)||1)},t.ref2id=function(e){return!!/^[xyz]/.test(e)&&e.split(" ")[0]},t.isLinked=function(e,t){return i(t,e._axisMatchGroups)||i(t,e._axisConstraintGroups)}},function(e,t,r){"use strict";var n=r(88),a=Array.isArray;function i(e,t,r,o){var l,s,c,u,f,d,p,h=e[0],g=e.length;if(2===g&&a(h)&&a(e[1])&&0===h.length){if(p=function(e,t){var r,n;for(r=0;r<e.length;r++){if(null!==(n=e[r])&&"object"===typeof n)return!1;void 0!==n&&(t[r]=n)}return!0}(e[1],h),p)return h;h.splice(0,h.length)}for(var v=1;v<g;v++)for(s in l=e[v])c=h[s],u=l[s],o&&a(u)?h[s]=u:t&&u&&(n(u)||(f=a(u)))?(f?(f=!1,d=c&&a(c)?c:[]):d=c&&n(c)?c:{},h[s]=i([d,u],t,r,o)):("undefined"!==typeof u||r)&&(h[s]=u);return h}t.extendFlat=function(){return i(arguments,!1,!1,!1)},t.extendDeep=function(){return i(arguments,!0,!1,!1)},t.extendDeepAll=function(){return i(arguments,!0,!0,!1)},t.extendDeepNoArrays=function(){return i(arguments,!0,!1,!0)}},function(e,t,r){"use strict";r.d(t,"g",(function(){return o})),r.d(t,"c",(function(){return l})),r.d(t,"k",(function(){return s})),r.d(t,"m",(function(){return c})),r.d(t,"i",(function(){return u})),r.d(t,"a",(function(){return f})),r.d(t,"e",(function(){return d})),r.d(t,"h",(function(){return p})),r.d(t,"d",(function(){return h})),r.d(t,"l",(function(){return g})),r.d(t,"n",(function(){return v})),r.d(t,"j",(function(){return y})),r.d(t,"b",(function(){return m})),r.d(t,"f",(function(){return b}));var n=r(13),a=r(15);function i(e){return Object(n.a)((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)/a.e}))}var o=i(0),l=i(1),s=i(2),c=i(3),u=i(4),f=i(5),d=i(6),p=o.range,h=l.range,g=s.range,v=c.range,y=u.range,m=f.range,b=d.range},function(e,t,r){"use strict";r.d(t,"g",(function(){return o})),r.d(t,"c",(function(){return l})),r.d(t,"k",(function(){return s})),r.d(t,"m",(function(){return c})),r.d(t,"i",(function(){return u})),r.d(t,"a",(function(){return f})),r.d(t,"e",(function(){return d})),r.d(t,"h",(function(){return p})),r.d(t,"d",(function(){return h})),r.d(t,"l",(function(){return g})),r.d(t,"n",(function(){return v})),r.d(t,"j",(function(){return y})),r.d(t,"b",(function(){return m})),r.d(t,"f",(function(){return b}));var n=r(13),a=r(15);function i(e){return Object(n.a)((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())*a.c)/a.e}))}var o=i(0),l=i(1),s=i(2),c=i(3),u=i(4),f=i(5),d=i(6),p=o.range,h=l.range,g=s.range,v=c.range,y=u.range,m=f.range,b=d.range},function(e,t,r){"use strict";var n=r(7),a=r(0),i=a.strTranslate,o=r(74),l=r(33).LINE_SPACING,s=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;t.convertToTspans=function(e,r,v){var M=e.text(),O=!e.attr("data-notex")&&r&&r._context.typesetMath&&"undefined"!==typeof MathJax&&M.match(s),L=n.select(e.node().parentNode);if(!L.empty()){var P=e.attr("class")?e.attr("class").split(" ")[0]:"text";return P+="-math",L.selectAll("svg."+P).remove(),L.selectAll("g."+P+"-group").remove(),e.style("display",null).attr({"data-unformatted":M,"data-math":"N"}),O?(r&&r._promises||[]).push(new Promise((function(t){e.style("display","none");var r=parseInt(e.node().style.fontSize,10),o={fontSize:r};!function(e,t,r){var i,o,l,s,d=parseInt((MathJax.version||"").split(".")[0]);if(2!==d&&3!==d)return void a.warn("No MathJax version:",MathJax.version);var p=function(){return o=a.extendDeepAll({},MathJax.Hub.config),l=MathJax.Hub.processSectionDelay,void 0!==MathJax.Hub.processSectionDelay&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:f},displayAlign:"left"})},h=function(){o=a.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=f},g=function(){if("SVG"!==(i=MathJax.Hub.config.menuSettings.renderer))return MathJax.Hub.setRenderer("SVG")},v=function(){"svg"!==(i=MathJax.config.startup.output)&&(MathJax.config.startup.output="svg")},y=function(){var r="math-output-"+a.randstr({},64),i=(s=n.select("body").append("div").attr({id:r}).style({visibility:"hidden",position:"absolute","font-size":t.fontSize+"px"}).text(e.replace(c,"\\lt ").replace(u,"\\gt "))).node();return 2===d?MathJax.Hub.Typeset(i):MathJax.typeset([i])},m=function(){var t=s.select(2===d?".MathJax_SVG":".MathJax"),i=!t.empty()&&s.select("svg").node();if(i){var o,l=i.getBoundingClientRect();o=2===d?n.select("body").select("#MathJax_SVG_glyphs"):t.select("defs"),r(t,o,l)}else a.log("There was an error in the tex syntax.",e),r();s.remove()},b=function(){if("SVG"!==i)return MathJax.Hub.setRenderer(i)},x=function(){"svg"!==i&&(MathJax.config.startup.output=i)},w=function(){return void 0!==l&&(MathJax.Hub.processSectionDelay=l),MathJax.Hub.Config(o)},_=function(){MathJax.config=o};2===d?MathJax.Hub.Queue(p,g,y,m,b,w):3===d&&(h(),v(),MathJax.startup.defaultReady(),MathJax.startup.promise.then((function(){y(),m(),x(),_()})))}(O[2],o,(function(n,a,o){L.selectAll("svg."+P).remove(),L.selectAll("g."+P+"-group").remove();var l=n&&n.select("svg");if(!l||!l.node())return j(),void t();var s=L.append("g").classed(P+"-group",!0).attr({"pointer-events":"none","data-unformatted":M,"data-math":"Y"});s.node().appendChild(l.node()),a&&a.node()&&l.node().insertBefore(a.node().cloneNode(!0),l.node().firstChild);var c=o.width,u=o.height;l.attr({class:P,height:u,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none"});var f=e.node().style.fill||"black",d=l.select("g");d.attr({fill:f,stroke:f});var p=d.node().getBoundingClientRect(),h=p.width,g=p.height;(h>c||g>u)&&(l.style("overflow","hidden"),h=(p=l.node().getBoundingClientRect()).width,g=p.height);var y=+e.attr("x"),m=+e.attr("y"),b=-(r||e.node().getBoundingClientRect().height)/4;if("y"===P[0])s.attr({transform:"rotate("+[-90,y,m]+")"+i(-h/2,b-g/2)});else if("l"===P[0])m=b-g/2;else if("a"===P[0]&&0!==P.indexOf("atitle"))y=0,m=b;else{var x=e.attr("text-anchor");y-=h*("middle"===x?.5:"end"===x?1:0),m=m+b-g/2}l.attr({x:y,y:m}),v&&v.call(e,s),t(s)}))}))):j(),e}function j(){L.empty()||(P=e.attr("class")+"-math",L.select("svg."+P).remove()),e.text("").style("white-space","pre");var r=function(e,t){t=t.replace(y," ");var r,i=!1,s=[],c=-1;function u(){c++;var t=document.createElementNS(o.svg,"tspan");n.select(t).attr({class:"line",dy:c*l+"em"}),e.appendChild(t),r=t;var a=s;if(s=[{node:t}],a.length>1)for(var i=1;i<a.length;i++)f(a[i])}function f(e){var t,a=e.type,i={};if("a"===a){t="a";var l=e.target,c=e.href,u=e.popup;c&&(i={"xlink:xlink:show":"_blank"===l||"_"!==l.charAt(0)?"new":"replace",target:l,"xlink:xlink:href":c},u&&(i.onclick='window.open(this.href.baseVal,this.target.baseVal,"'+u+'");return false;'))}else t="tspan";e.style&&(i.style=e.style);var f=document.createElementNS(o.svg,t);if("sup"===a||"sub"===a){v(r,g),r.appendChild(f);var d=document.createElementNS(o.svg,"tspan");v(d,g),n.select(d).attr("dy",h[a]),i.dy=p[a],r.appendChild(f),r.appendChild(d)}else r.appendChild(f);n.select(f).attr(i),r=e.node=f,s.push(e)}function v(e,t){e.appendChild(document.createTextNode(t))}function M(e){if(1!==s.length){var n=s.pop();e!==n.type&&a.log("Start tag <"+n.type+"> doesnt match end tag <"+e+">. Pretending it did match.",t),r=s[s.length-1].node}else a.log("Ignoring unexpected end tag </"+e+">.",t)}x.test(t)?u():(r=e,s=[{node:e}]);for(var O=t.split(m),L=0;L<O.length;L++){var P=O[L],j=P.match(b),z=j&&j[2].toLowerCase(),D=d[z];if("br"===z)u();else if(void 0===D)v(r,C(P));else if(j[1])M(z);else{var I=j[4],N={type:z},R=A(I,w);if(R?(R=R.replace(S,"$1 fill:"),D&&(R+=";"+D)):D&&(R=D),R&&(N.style=R),"a"===z){i=!0;var F=A(I,_);if(F){var B=E(F);B&&(N.href=B,N.target=A(I,k)||"_blank",N.popup=A(I,T))}}f(N)}}return i}(e.node(),M);r&&e.style("pointer-events","all"),t.positionText(e),v&&v.call(e)}};var c=/(<|&lt;|&#60;)/g,u=/(>|&gt;|&#62;)/g;var f=[["$","$"],["\\(","\\)"]];var d={sup:"font-size:70%",sub:"font-size:70%",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},p={sub:"0.3em",sup:"-0.6em"},h={sub:"-0.21em",sup:"0.42em"},g="\u200b",v=["http:","https:","mailto:","",void 0,":"],y=t.NEWLINES=/(\r\n?|\n)/g,m=/(<[^<>]*>)/,b=/<(\/?)([^ >]*)(\s+(.*))?>/i,x=/<br(\s+.*)?>/i;t.BR_TAG_ALL=/<br(\s+.*)?>/gi;var w=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,_=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,k=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,T=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function A(e,t){if(!e)return null;var r=e.match(t),n=r&&(r[3]||r[4]);return n&&C(n)}var S=/(^|;)\s*color:/;t.plainText=function(e,t){for(var r=void 0!==(t=t||{}).len&&-1!==t.len?t.len:1/0,n=void 0!==t.allowedTags?t.allowedTags:["br"],a="...".length,i=e.split(m),o=[],l="",s=0,c=0;c<i.length;c++){var u=i[c],f=u.match(b),d=f&&f[2].toLowerCase();if(d)-1!==n.indexOf(d)&&(o.push(u),l=d);else{var p=u.length;if(s+p<r)o.push(u),s+=p;else if(s<r){var h=r-s;l&&("br"!==l||h<=a||p<=a)&&o.pop(),r>a?o.push(u.substr(0,h-a)+"..."):o.push(u.substr(0,h));break}l=""}}return o.join("")};var M={mu:"\u03bc",amp:"&",lt:"<",gt:">",nbsp:"\xa0",times:"\xd7",plusmn:"\xb1",deg:"\xb0"},O=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function C(e){return e.replace(O,(function(e,t){return("#"===t.charAt(0)?function(e){if(e>1114111)return;var t=String.fromCodePoint;if(t)return t(e);var r=String.fromCharCode;return e<=65535?r(e):r(55232+(e>>10),e%1024+56320)}("x"===t.charAt(1)?parseInt(t.substr(2),16):parseInt(t.substr(1),10)):M[t])||e}))}function E(e){var t=encodeURI(decodeURI(e)),r=document.createElement("a"),n=document.createElement("a");r.href=e,n.href=t;var a=r.protocol,i=n.protocol;return-1!==v.indexOf(a)&&-1!==v.indexOf(i)?t:""}function L(e,t,r){var n,i,o,l=r.horizontalAlign,s=r.verticalAlign||"top",c=e.node().getBoundingClientRect(),u=t.node().getBoundingClientRect();return i="bottom"===s?function(){return c.bottom-n.height}:"middle"===s?function(){return c.top+(c.height-n.height)/2}:function(){return c.top},o="right"===l?function(){return c.right-n.width}:"center"===l?function(){return c.left+(c.width-n.width)/2}:function(){return c.left},function(){n=this.node().getBoundingClientRect();var e=o()-u.left,t=i()-u.top,l=r.gd||{};if(r.gd){l._fullLayout._calcInverseTransform(l);var s=a.apply3DTransform(l._fullLayout._invTransform)(e,t);e=s[0],t=s[1]}return this.style({top:t+"px",left:e+"px","z-index":1e3}),this}}t.convertEntities=C,t.sanitizeHTML=function(e){e=e.replace(y," ");for(var t=document.createElement("p"),r=t,a=[],i=e.split(m),o=0;o<i.length;o++){var l=i[o],s=l.match(b),c=s&&s[2].toLowerCase();if(c in d)if(s[1])a.length&&(r=a.pop());else{var u=s[4],f=A(u,w),p=f?{style:f}:{};if("a"===c){var h=A(u,_);if(h){var g=E(h);if(g){p.href=g;var v=A(u,k);v&&(p.target=v)}}}var x=document.createElement(c);r.appendChild(x),n.select(x).attr(p),r=x,a.push(x)}else r.appendChild(document.createTextNode(C(l)))}return t.innerHTML},t.lineCount=function(e){return e.selectAll("tspan.line").size()||1},t.positionText=function(e,t,r){return e.each((function(){var e=n.select(this);function a(t,r){return void 0===r?null===(r=e.attr(t))&&(e.attr(t,0),r=0):e.attr(t,r),r}var i=a("x",t),o=a("y",r);"text"===this.nodeName&&e.selectAll("tspan.line").attr({x:i,y:o})}))};var P="1px ";t.makeTextShadow=function(e){return P+P+P+e+", -"+P+"-"+P+P+e+", "+P+"-"+P+P+e+", -"+P+P+P+e},t.makeEditable=function(e,t){var r=t.gd,a=t.delegate,i=n.dispatch("edit","input","cancel"),o=a||e;if(e.style({"pointer-events":a?"none":"all"}),1!==e.size())throw new Error("boo");function l(){!function(){var a=n.select(r).select(".svg-container"),o=a.append("div"),l=e.node().style,c=parseFloat(l.fontSize||12),u=t.text;void 0===u&&(u=e.attr("data-unformatted"));o.classed("plugin-editable editable",!0).style({position:"absolute","font-family":l.fontFamily||"Arial","font-size":c,color:t.fill||l.fill||"black",opacity:1,"background-color":t.background||"transparent",outline:"#ffffff33 1px solid",margin:[-c/8+1,0,0,-1].join("px ")+"px",padding:"0","box-sizing":"border-box"}).attr({contenteditable:!0}).text(u).call(L(e,a,t)).on("blur",(function(){r._editing=!1,e.text(this.textContent).style({opacity:1});var t,a=n.select(this).attr("class");(t=a?"."+a.split(" ")[0]+"-math-group":"[class*=-math-group]")&&n.select(e.node().parentNode).select(t).style({opacity:0});var o=this.textContent;n.select(this).transition().duration(0).remove(),n.select(document).on("mouseup",null),i.edit.call(e,o)})).on("focus",(function(){var e=this;r._editing=!0,n.select(document).on("mouseup",(function(){if(n.event.target===e)return!1;document.activeElement===o.node()&&o.node().blur()}))})).on("keyup",(function(){27===n.event.which?(r._editing=!1,e.style({opacity:1}),n.select(this).style({opacity:0}).on("blur",(function(){return!1})).transition().remove(),i.cancel.call(e,this.textContent)):(i.input.call(e,this.textContent),n.select(this).call(L(e,a,t)))})).on("keydown",(function(){13===n.event.which&&this.blur()})).call(s)}(),e.style({opacity:0});var a,l=o.attr("class");(a=l?"."+l.split(" ")[0]+"-math-group":"[class*=-math-group]")&&n.select(e.node().parentNode).select(a).style({opacity:0})}function s(e){var t=e.node(),r=document.createRange();r.selectNodeContents(t);var n=window.getSelection();n.removeAllRanges(),n.addRange(r),t.focus()}return t.immediate?l():o.on("click",l),n.rebind(e,i,"on")}},,function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(n){"object"===typeof window&&(r=window)}e.exports=r},function(e,t,r){"use strict";e.exports=function(e){var t=e.editType,r=e.colorEditType;void 0===r&&(r=t);var n={family:{valType:"string",noBlank:!0,strict:!0,editType:t,description:["HTML font family - the typeface that will be applied by the web browser.","The web browser will only be able to apply a font if it is available on the system","which it operates. Provide multiple font families, separated by commas, to indicate","the preference in which to apply fonts if they aren't available on the system.","The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server,","where only a select number of","fonts are installed and supported.","These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*,","*Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*,","*PT Sans Narrow*, *Raleway*, *Times New Roman*."].join(" ")},size:{valType:"number",min:1,editType:t},color:{valType:"color",editType:r},editType:t,description:""+(e.description||"")};return e.autoSize&&(n.size.dflt="auto"),e.autoColor&&(n.color.dflt="auto"),e.arrayOk&&(n.family.arrayOk=!0,n.size.arrayOk=!0,n.color.arrayOk=!0),n}},function(e,t,r){"use strict";var n=r(92).counter;e.exports={idRegex:{x:n("x","( domain)?"),y:n("y","( domain)?")},attrRegex:n("[xy]axis"),xAxisMatch:n("xaxis"),yAxisMatch:n("yaxis"),AX_ID_PATTERN:/^[xyz][0-9]*( domain)?$/,AX_NAME_PATTERN:/^[xyz]axis[0-9]*$/,SUBPLOT_PATTERN:/^x([0-9]*)y([0-9]*)$/,HOUR_PATTERN:"hour",WEEKDAY_PATTERN:"day of week",MINDRAG:8,MINSELECT:12,MINZOOM:20,DRAGGERSIZE:20,BENDPX:1.5,REDRAWDELAY:50,SELECTDELAY:100,SELECTID:"-select",DFLTRANGEX:[-1,6],DFLTRANGEY:[-1,4],traceLayerClasses:["imagelayer","heatmaplayer","contourcarpetlayer","contourlayer","funnellayer","waterfalllayer","barlayer","carpetlayer","violinlayer","boxlayer","ohlclayer","scattercarpetlayer","scatterlayer"],clipOnAxisFalseQuery:[".scatterlayer",".barlayer",".funnellayer",".waterfalllayer"],layerValue2layerClass:{"above traces":"above","below traces":"below"}}},function(e,t,r){"use strict";var n=r(0);e.exports={hasLines:function(e){return e.visible&&e.mode&&-1!==e.mode.indexOf("lines")},hasMarkers:function(e){return e.visible&&(e.mode&&-1!==e.mode.indexOf("markers")||"splom"===e.type)},hasText:function(e){return e.visible&&e.mode&&-1!==e.mode.indexOf("text")},isBubble:function(e){return n.isPlainObject(e.marker)&&n.isArrayOrTypedArray(e.marker.size)}}},function(e,t,r){"use strict";function n(e){return n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(e)}r.d(t,"a",(function(){return n}))},function(e,t,r){e.exports=r(370)},function(e,t,r){"use strict";e.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:"right",right:"left",top:"bottom",bottom:"top"}}},function(e,t,r){var n;!function(a){var i=/^\s+/,o=/\s+$/,l=0,s=a.round,c=a.min,u=a.max,f=a.random;function d(e,t){if(t=t||{},(e=e||"")instanceof d)return e;if(!(this instanceof d))return new d(e,t);var r=function(e){var t={r:0,g:0,b:0},r=1,n=null,l=null,s=null,f=!1,d=!1;"string"==typeof e&&(e=function(e){e=e.replace(i,"").replace(o,"").toLowerCase();var t,r=!1;if(E[e])e=E[e],r=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};if(t=B.rgb.exec(e))return{r:t[1],g:t[2],b:t[3]};if(t=B.rgba.exec(e))return{r:t[1],g:t[2],b:t[3],a:t[4]};if(t=B.hsl.exec(e))return{h:t[1],s:t[2],l:t[3]};if(t=B.hsla.exec(e))return{h:t[1],s:t[2],l:t[3],a:t[4]};if(t=B.hsv.exec(e))return{h:t[1],s:t[2],v:t[3]};if(t=B.hsva.exec(e))return{h:t[1],s:t[2],v:t[3],a:t[4]};if(t=B.hex8.exec(e))return{r:D(t[1]),g:D(t[2]),b:D(t[3]),a:F(t[4]),format:r?"name":"hex8"};if(t=B.hex6.exec(e))return{r:D(t[1]),g:D(t[2]),b:D(t[3]),format:r?"name":"hex"};if(t=B.hex4.exec(e))return{r:D(t[1]+""+t[1]),g:D(t[2]+""+t[2]),b:D(t[3]+""+t[3]),a:F(t[4]+""+t[4]),format:r?"name":"hex8"};if(t=B.hex3.exec(e))return{r:D(t[1]+""+t[1]),g:D(t[2]+""+t[2]),b:D(t[3]+""+t[3]),format:r?"name":"hex"};return!1}(e));"object"==typeof e&&(U(e.r)&&U(e.g)&&U(e.b)?(p=e.r,h=e.g,g=e.b,t={r:255*j(p,255),g:255*j(h,255),b:255*j(g,255)},f=!0,d="%"===String(e.r).substr(-1)?"prgb":"rgb"):U(e.h)&&U(e.s)&&U(e.v)?(n=N(e.s),l=N(e.v),t=function(e,t,r){e=6*j(e,360),t=j(t,100),r=j(r,100);var n=a.floor(e),i=e-n,o=r*(1-t),l=r*(1-i*t),s=r*(1-(1-i)*t),c=n%6;return{r:255*[r,l,o,o,s,r][c],g:255*[s,r,r,l,o,o][c],b:255*[o,o,s,r,r,l][c]}}(e.h,n,l),f=!0,d="hsv"):U(e.h)&&U(e.s)&&U(e.l)&&(n=N(e.s),s=N(e.l),t=function(e,t,r){var n,a,i;function o(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}if(e=j(e,360),t=j(t,100),r=j(r,100),0===t)n=a=i=r;else{var l=r<.5?r*(1+t):r+t-r*t,s=2*r-l;n=o(s,l,e+1/3),a=o(s,l,e),i=o(s,l,e-1/3)}return{r:255*n,g:255*a,b:255*i}}(e.h,n,s),f=!0,d="hsl"),e.hasOwnProperty("a")&&(r=e.a));var p,h,g;return r=P(r),{ok:f,format:e.format||d,r:c(255,u(t.r,0)),g:c(255,u(t.g,0)),b:c(255,u(t.b,0)),a:r}}(e);this._originalInput=e,this._r=r.r,this._g=r.g,this._b=r.b,this._a=r.a,this._roundA=s(100*this._a)/100,this._format=t.format||r.format,this._gradientType=t.gradientType,this._r<1&&(this._r=s(this._r)),this._g<1&&(this._g=s(this._g)),this._b<1&&(this._b=s(this._b)),this._ok=r.ok,this._tc_id=l++}function p(e,t,r){e=j(e,255),t=j(t,255),r=j(r,255);var n,a,i=u(e,t,r),o=c(e,t,r),l=(i+o)/2;if(i==o)n=a=0;else{var s=i-o;switch(a=l>.5?s/(2-i-o):s/(i+o),i){case e:n=(t-r)/s+(t<r?6:0);break;case t:n=(r-e)/s+2;break;case r:n=(e-t)/s+4}n/=6}return{h:n,s:a,l:l}}function h(e,t,r){e=j(e,255),t=j(t,255),r=j(r,255);var n,a,i=u(e,t,r),o=c(e,t,r),l=i,s=i-o;if(a=0===i?0:s/i,i==o)n=0;else{switch(i){case e:n=(t-r)/s+(t<r?6:0);break;case t:n=(r-e)/s+2;break;case r:n=(e-t)/s+4}n/=6}return{h:n,s:a,v:l}}function g(e,t,r,n){var a=[I(s(e).toString(16)),I(s(t).toString(16)),I(s(r).toString(16))];return n&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0):a.join("")}function v(e,t,r,n){return[I(R(n)),I(s(e).toString(16)),I(s(t).toString(16)),I(s(r).toString(16))].join("")}function y(e,t){t=0===t?0:t||10;var r=d(e).toHsl();return r.s-=t/100,r.s=z(r.s),d(r)}function m(e,t){t=0===t?0:t||10;var r=d(e).toHsl();return r.s+=t/100,r.s=z(r.s),d(r)}function b(e){return d(e).desaturate(100)}function x(e,t){t=0===t?0:t||10;var r=d(e).toHsl();return r.l+=t/100,r.l=z(r.l),d(r)}function w(e,t){t=0===t?0:t||10;var r=d(e).toRgb();return r.r=u(0,c(255,r.r-s(-t/100*255))),r.g=u(0,c(255,r.g-s(-t/100*255))),r.b=u(0,c(255,r.b-s(-t/100*255))),d(r)}function _(e,t){t=0===t?0:t||10;var r=d(e).toHsl();return r.l-=t/100,r.l=z(r.l),d(r)}function k(e,t){var r=d(e).toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,d(r)}function T(e){var t=d(e).toHsl();return t.h=(t.h+180)%360,d(t)}function A(e){var t=d(e).toHsl(),r=t.h;return[d(e),d({h:(r+120)%360,s:t.s,l:t.l}),d({h:(r+240)%360,s:t.s,l:t.l})]}function S(e){var t=d(e).toHsl(),r=t.h;return[d(e),d({h:(r+90)%360,s:t.s,l:t.l}),d({h:(r+180)%360,s:t.s,l:t.l}),d({h:(r+270)%360,s:t.s,l:t.l})]}function M(e){var t=d(e).toHsl(),r=t.h;return[d(e),d({h:(r+72)%360,s:t.s,l:t.l}),d({h:(r+216)%360,s:t.s,l:t.l})]}function O(e,t,r){t=t||6,r=r||30;var n=d(e).toHsl(),a=360/r,i=[d(e)];for(n.h=(n.h-(a*t>>1)+720)%360;--t;)n.h=(n.h+a)%360,i.push(d(n));return i}function C(e,t){t=t||6;for(var r=d(e).toHsv(),n=r.h,a=r.s,i=r.v,o=[],l=1/t;t--;)o.push(d({h:n,s:a,v:i})),i=(i+l)%1;return o}d.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,r,n=this.toRgb();return e=n.r/255,t=n.g/255,r=n.b/255,.2126*(e<=.03928?e/12.92:a.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:a.pow((t+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:a.pow((r+.055)/1.055,2.4))},setAlpha:function(e){return this._a=P(e),this._roundA=s(100*this._a)/100,this},toHsv:function(){var e=h(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=h(this._r,this._g,this._b),t=s(360*e.h),r=s(100*e.s),n=s(100*e.v);return 1==this._a?"hsv("+t+", "+r+"%, "+n+"%)":"hsva("+t+", "+r+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var e=p(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=p(this._r,this._g,this._b),t=s(360*e.h),r=s(100*e.s),n=s(100*e.l);return 1==this._a?"hsl("+t+", "+r+"%, "+n+"%)":"hsla("+t+", "+r+"%, "+n+"%, "+this._roundA+")"},toHex:function(e){return g(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,r,n,a){var i=[I(s(e).toString(16)),I(s(t).toString(16)),I(s(r).toString(16)),I(R(n))];if(a&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)&&i[3].charAt(0)==i[3].charAt(1))return i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0);return i.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:s(this._r),g:s(this._g),b:s(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+s(this._r)+", "+s(this._g)+", "+s(this._b)+")":"rgba("+s(this._r)+", "+s(this._g)+", "+s(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:s(100*j(this._r,255))+"%",g:s(100*j(this._g,255))+"%",b:s(100*j(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+s(100*j(this._r,255))+"%, "+s(100*j(this._g,255))+"%, "+s(100*j(this._b,255))+"%)":"rgba("+s(100*j(this._r,255))+"%, "+s(100*j(this._g,255))+"%, "+s(100*j(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(L[g(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+v(this._r,this._g,this._b,this._a),r=t,n=this._gradientType?"GradientType = 1, ":"";if(e){var a=d(e);r="#"+v(a._r,a._g,a._b,a._a)}return"progid:DXImageTransform.Microsoft.gradient("+n+"startColorstr="+t+",endColorstr="+r+")"},toString:function(e){var t=!!e;e=e||this._format;var r=!1,n=this._a<1&&this._a>=0;return t||!n||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(r=this.toRgbString()),"prgb"===e&&(r=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(r=this.toHexString()),"hex3"===e&&(r=this.toHexString(!0)),"hex4"===e&&(r=this.toHex8String(!0)),"hex8"===e&&(r=this.toHex8String()),"name"===e&&(r=this.toName()),"hsl"===e&&(r=this.toHslString()),"hsv"===e&&(r=this.toHsvString()),r||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return d(this.toString())},_applyModification:function(e,t){var r=e.apply(null,[this].concat([].slice.call(t)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(x,arguments)},brighten:function(){return this._applyModification(w,arguments)},darken:function(){return this._applyModification(_,arguments)},desaturate:function(){return this._applyModification(y,arguments)},saturate:function(){return this._applyModification(m,arguments)},greyscale:function(){return this._applyModification(b,arguments)},spin:function(){return this._applyModification(k,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(O,arguments)},complement:function(){return this._applyCombination(T,arguments)},monochromatic:function(){return this._applyCombination(C,arguments)},splitcomplement:function(){return this._applyCombination(M,arguments)},triad:function(){return this._applyCombination(A,arguments)},tetrad:function(){return this._applyCombination(S,arguments)}},d.fromRatio=function(e,t){if("object"==typeof e){var r={};for(var n in e)e.hasOwnProperty(n)&&(r[n]="a"===n?e[n]:N(e[n]));e=r}return d(e,t)},d.equals=function(e,t){return!(!e||!t)&&d(e).toRgbString()==d(t).toRgbString()},d.random=function(){return d.fromRatio({r:f(),g:f(),b:f()})},d.mix=function(e,t,r){r=0===r?0:r||50;var n=d(e).toRgb(),a=d(t).toRgb(),i=r/100;return d({r:(a.r-n.r)*i+n.r,g:(a.g-n.g)*i+n.g,b:(a.b-n.b)*i+n.b,a:(a.a-n.a)*i+n.a})},d.readability=function(e,t){var r=d(e),n=d(t);return(a.max(r.getLuminance(),n.getLuminance())+.05)/(a.min(r.getLuminance(),n.getLuminance())+.05)},d.isReadable=function(e,t,r){var n,a,i=d.readability(e,t);switch(a=!1,(n=function(e){var t,r;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),r=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==r&&"large"!==r&&(r="small");return{level:t,size:r}}(r)).level+n.size){case"AAsmall":case"AAAlarge":a=i>=4.5;break;case"AAlarge":a=i>=3;break;case"AAAsmall":a=i>=7}return a},d.mostReadable=function(e,t,r){var n,a,i,o,l=null,s=0;a=(r=r||{}).includeFallbackColors,i=r.level,o=r.size;for(var c=0;c<t.length;c++)(n=d.readability(e,t[c]))>s&&(s=n,l=d(t[c]));return d.isReadable(e,l,{level:i,size:o})||!a?l:(r.includeFallbackColors=!1,d.mostReadable(e,["#fff","#000"],r))};var E=d.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},L=d.hexNames=function(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[e[r]]=r);return t}(E);function P(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function j(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var r=function(e){return"string"===typeof e&&-1!=e.indexOf("%")}(e);return e=c(t,u(0,parseFloat(e))),r&&(e=parseInt(e*t,10)/100),a.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function z(e){return c(1,u(0,e))}function D(e){return parseInt(e,16)}function I(e){return 1==e.length?"0"+e:""+e}function N(e){return e<=1&&(e=100*e+"%"),e}function R(e){return a.round(255*parseFloat(e)).toString(16)}function F(e){return D(e)/255}var B=function(){var e="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)",t="[\\s|\\(]+("+e+")[,|\\s]+("+e+")[,|\\s]+("+e+")\\s*\\)?",r="[\\s|\\(]+("+e+")[,|\\s]+("+e+")[,|\\s]+("+e+")[,|\\s]+("+e+")\\s*\\)?";return{CSS_UNIT:new RegExp(e),rgb:new RegExp("rgb"+t),rgba:new RegExp("rgba"+r),hsl:new RegExp("hsl"+t),hsla:new RegExp("hsla"+r),hsv:new RegExp("hsv"+t),hsva:new RegExp("hsva"+r),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function U(e){return!!B.CSS_UNIT.exec(e)}e.exports?e.exports=d:void 0===(n=function(){return d}.call(t,r,t,e))||(e.exports=n)}(Math)},function(e,t,r){"use strict";var n=r(246),a=n.FORMAT_LINK,i=n.DATE_FORMAT_LINK;function o(e){return["Variables are inserted using %{variable},",'for example "y: %{y}"'+(e&&e.supportOther?" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown.":"."),'Numbers are formatted using d3-format\'s syntax %{variable:d3-format}, for example "Price: %{y:$.2f}".',a,"for details on the formatting syntax.",'Dates are formatted using d3-time-format\'s syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}".',i,"for details on the date formatting syntax."].join(" ")}function l(e){var t=e.description?" "+e.description:"",r=e.keys||[];if(r.length>0){for(var n=[],a=0;a<r.length;a++)n[a]="`"+r[a]+"`";t+="Finally, the template string has access to ",t=1===r.length?"variable "+n[0]:"variables "+n.slice(0,-1).join(", ")+" and "+n.slice(-1)+"."}return t}t.hovertemplateAttrs=function(e,t){e=e||{};var r=l(t=t||{}),n={valType:"string",dflt:"",editType:e.editType||"none",description:["Template string used for rendering the information that appear on hover box.","Note that this will override `hoverinfo`.",o({supportOther:!0}),"The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data.","Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available.",r,'Anything contained in tag `<extra>` is displayed in the secondary box, for example "<extra>{fullData.name}</extra>".',"To hide the secondary box completely, use an empty tag `<extra></extra>`."].join(" ")};return!1!==e.arrayOk&&(n.arrayOk=!0),n},t.texttemplateAttrs=function(e,t){e=e||{};var r=l(t=t||{}),n={valType:"string",dflt:"",editType:e.editType||"calc",description:["Template string used for rendering the information text that appear on points.","Note that this will override `textinfo`.",o(),"Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available.",r].join(" ")};return!1!==e.arrayOk&&(n.arrayOk=!0),n}},function(e,t,r){var n;!function(){"use strict";var r={}.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var i=typeof n;if("string"===i||"number"===i)e.push(n);else if(Array.isArray(n)){if(n.length){var o=a.apply(null,n);o&&e.push(o)}}else if("object"===i)if(n.toString===Object.prototype.toString)for(var l in n)r.call(n,l)&&n[l]&&e.push(l);else e.push(n.toString())}}return e.join(" ")}e.exports?(a.default=a,e.exports=a):void 0===(n=function(){return a}.apply(t,[]))||(e.exports=n)}()},function(e,t,r){"use strict";var n=r(48);e.exports=function(e){if(!n(e))throw new TypeError("Cannot use null or undefined");return e}},function(e,t,r){"use strict";var n=r(70),a=r(213),i=r(112),o=r(142),l=r(214),s=e.exports=function(e,t){var r,a,s,c,u;return arguments.length<2||"string"!==typeof e?(c=t,t=e,e=null):c=arguments[2],n(e)?(r=l.call(e,"c"),a=l.call(e,"e"),s=l.call(e,"w")):(r=s=!0,a=!1),u={value:t,configurable:r,enumerable:a,writable:s},c?i(o(c),u):u};s.gs=function(e,t,r){var s,c,u,f;return"string"!==typeof e?(u=r,r=t,t=e,e=null):u=arguments[3],n(t)?a(t)?n(r)?a(r)||(u=r,r=void 0):r=void 0:(u=t,t=r=void 0):t=void 0,n(e)?(s=l.call(e,"c"),c=l.call(e,"e")):(s=!0,c=!1),f={get:t,set:r,configurable:s,enumerable:c},u?i(o(u),f):f}},function(e,t,r){"use strict";var n=r(7),a=r(34),i=r(9),o=r(0),l=r(8),s=r(71).isValid;var c=["showscale","autocolorscale","colorscale","reversescale","colorbar"],u=["min","max","mid","auto"];function f(e){var t,r,n,a=e._colorAx,i=a||e,o={};for(r=0;r<c.length;r++)o[n=c[r]]=i[n];if(a)for(t="c",r=0;r<u.length;r++)o[n=u[r]]=i["c"+n];else{var l;for(r=0;r<u.length;r++)((l="c"+(n=u[r]))in i||(l="z"+n)in i)&&(o[n]=i[l]);t=l.charAt(0)}return o._sync=function(e,r){var n=-1!==u.indexOf(e)?t+e:e;i[n]=i["_"+n]=r},o}function d(e){for(var t=f(e),r=t.min,n=t.max,a=t.reversescale?p(t.colorscale):t.colorscale,i=a.length,o=new Array(i),l=new Array(i),s=0;s<i;s++){var c=a[s];o[s]=r+c[0]*(n-r),l[s]=c[1]}return{domain:o,range:l}}function p(e){for(var t=e.length,r=new Array(t),n=t-1,a=0;n>=0;n--,a++){var i=e[n];r[a]=[1-i[0],i[1]]}return r}function h(e,t){t=t||{};for(var r=e.domain,o=e.range,s=o.length,c=new Array(s),u=0;u<s;u++){var f=a(o[u]).toRgb();c[u]=[f.r,f.g,f.b,f.a]}var d,p=n.scale.linear().domain(r).range(c).clamp(!0),h=t.noNumericCheck,v=t.returnArray;return(d=h&&v?p:h?function(e){return g(p(e))}:v?function(e){return i(e)?p(e):a(e).isValid()?e:l.defaultLine}:function(e){return i(e)?g(p(e)):a(e).isValid()?e:l.defaultLine}).domain=p.domain,d.range=function(){return o},d}function g(e){var t={r:e[0],g:e[1],b:e[2],a:e[3]};return a(t).toRgbString()}e.exports={hasColorscale:function(e,t,r){var n=t?o.nestedProperty(e,t).get()||{}:e,a=n[r||"color"],l=!1;if(o.isArrayOrTypedArray(a))for(var c=0;c<a.length;c++)if(i(a[c])){l=!0;break}return o.isPlainObject(n)&&(l||!0===n.showscale||i(n.cmin)&&i(n.cmax)||s(n.colorscale)||o.isPlainObject(n.colorbar))},extractOpts:f,extractScale:d,flipScale:p,makeColorScaleFunc:h,makeColorScaleFuncFromTrace:function(e,t){return h(d(e),t)}}},function(e,t,r){"use strict";var n=r(0);t.getSubplot=function(e){return e.subplot||e.xaxis+e.yaxis||e.geo},t.isTraceInSubplots=function(e,r){if("splom"===e.type){for(var n=e.xaxes||[],a=e.yaxes||[],i=0;i<n.length;i++)for(var o=0;o<a.length;o++)if(-1!==r.indexOf(n[i]+a[o]))return!0;return!1}return-1!==r.indexOf(t.getSubplot(e))},t.flat=function(e,t){for(var r=new Array(e.length),n=0;n<e.length;n++)r[n]=t;return r},t.p2c=function(e,t){for(var r=new Array(e.length),n=0;n<e.length;n++)r[n]=e[n].p2c(t);return r},t.getDistanceFunction=function(e,r,n,a){return"closest"===e?a||t.quadrature(r,n):"x"===e.charAt(0)?r:n},t.getClosest=function(e,t,r){if(!1!==r.index)r.index>=0&&r.index<e.length?r.distance=0:r.index=!1;else for(var n=0;n<e.length;n++){var a=t(e[n]);a<=r.distance&&(r.index=n,r.distance=a)}return r},t.inbox=function(e,t,r){return e*t<0||0===e?r:1/0},t.quadrature=function(e,t){return function(r){var n=e(r),a=t(r);return Math.sqrt(n*n+a*a)}},t.makeEventData=function(e,r,n){var a="index"in e?e.index:e.pointNumber,i={data:r._input,fullData:r,curveNumber:r.index,pointNumber:a};if(r._indexToPoints){var o=r._indexToPoints[a];1===o.length?i.pointIndex=o[0]:i.pointIndices=o}else i.pointIndex=a;return r._module.eventData?i=r._module.eventData(i,e,r,n,a):("xVal"in e?i.x=e.xVal:"x"in e&&(i.x=e.x),"yVal"in e?i.y=e.yVal:"y"in e&&(i.y=e.y),e.xa&&(i.xaxis=e.xa),e.ya&&(i.yaxis=e.ya),void 0!==e.zLabelVal&&(i.z=e.zLabelVal)),t.appendArrayPointValue(i,r,a),i},t.appendArrayPointValue=function(e,t,r){var a=t._arrayAttrs;if(a)for(var l=0;l<a.length;l++){var s=a[l],c=i(s);if(void 0===e[c]){var u=o(n.nestedProperty(t,s).get(),r);void 0!==u&&(e[c]=u)}}},t.appendArrayMultiPointValues=function(e,t,r){var a=t._arrayAttrs;if(a)for(var l=0;l<a.length;l++){var s=a[l],c=i(s);if(void 0===e[c]){for(var u=n.nestedProperty(t,s).get(),f=new Array(r.length),d=0;d<r.length;d++)f[d]=o(u,r[d]);e[c]=f}}};var a={ids:"id",locations:"location",labels:"label",values:"value","marker.colors":"color",parents:"parent"};function i(e){return a[e]||e}function o(e,t){return Array.isArray(t)?Array.isArray(e)&&Array.isArray(e[t[0]])?e[t[0]][t[1]]:void 0:e[t]}var l={x:!0,y:!0},s={"x unified":!0,"y unified":!0};t.isUnifiedHover=function(e){return"string"===typeof e&&!!s[e]},t.isXYhover=function(e){return"string"===typeof e&&!!l[e]}},function(e,t,r){"use strict";var n=r(7),a=r(0),i=r(46),o=r(40),l=r(90),s=r(260);e.exports={moduleType:"component",name:"fx",constants:r(120),schema:{layout:l},attributes:r(119),layoutAttributes:l,supplyLayoutGlobalDefaults:r(536),supplyDefaults:r(537),supplyLayoutDefaults:r(538),calc:r(539),getDistanceFunction:o.getDistanceFunction,getClosest:o.getClosest,inbox:o.inbox,quadrature:o.quadrature,appendArrayPointValue:o.appendArrayPointValue,castHoverOption:function(e,t,r){return a.castOption(e,t,"hoverlabel."+r)},castHoverinfo:function(e,t,r){return a.castOption(e,r,"hoverinfo",(function(r){return a.coerceHoverinfo({hoverinfo:r},{_module:e._module},t)}))},hover:s.hover,unhover:i.unhover,loneHover:s.loneHover,loneUnhover:function(e){var t=a.isD3Selection(e)?e:n.select(e);t.selectAll("g.hovertext").remove(),t.selectAll(".spikeline").remove()},click:r(540)}},function(e,t,r){"use strict";e.exports=function(e){if("function"!==typeof e)throw new TypeError(e+" is not a function");return e}},function(e,t,r){"use strict";var n=r(63),a=r(118),i=a(n("String.prototype.indexOf"));e.exports=function(e,t){var r=n(e,!!t);return"function"===typeof r&&i(e,".prototype.")>-1?a(r):r}},function(e,t,r){"use strict";var n=r(28),a=r(119);e.exports={type:{valType:"enumerated",values:[],dflt:"scatter",editType:"calc+clearAxisTypes",_noTemplating:!0},visible:{valType:"enumerated",values:[!0,!1,"legendonly"],dflt:!0,editType:"calc",description:["Determines whether or not this trace is visible.","If *legendonly*, the trace is not drawn,","but can appear as a legend item","(provided that the legend itself is visible)."].join(" ")},showlegend:{valType:"boolean",dflt:!0,editType:"style",description:["Determines whether or not an item corresponding to this","trace is shown in the legend."].join(" ")},legendgroup:{valType:"string",dflt:"",editType:"style",description:["Sets the legend group for this trace.","Traces part of the same legend group hide/show at the same time","when toggling legend items."].join(" ")},legendgrouptitle:{text:{valType:"string",dflt:"",editType:"style",description:["Sets the title of the legend group."].join(" ")},font:n({editType:"style",description:["Sets this legend group's title font."].join(" ")}),editType:"style"},legendrank:{valType:"number",dflt:1e3,editType:"style",description:["Sets the legend rank for this trace.","Items and groups with smaller ranks are presented on top/left side while","with `*reversed* `legend.traceorder` they are on bottom/right side.","The default legendrank is 1000,","so that you can use ranks less than 1000 to place certain items before all unranked items,","and ranks greater than 1000 to go after all unranked items."].join(" ")},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"style",description:"Sets the opacity of the trace."},name:{valType:"string",editType:"style",description:["Sets the trace name.","The trace name appear as the legend item and on hover."].join(" ")},uid:{valType:"string",editType:"plot",anim:!0,description:["Assign an id to this trace,","Use this to provide object constancy between traces during animations","and transitions."].join(" ")},ids:{valType:"data_array",editType:"calc",anim:!0,description:["Assigns id labels to each datum.","These ids for object constancy of data points during animation.","Should be an array of strings, not numbers or any other type."].join(" ")},customdata:{valType:"data_array",editType:"calc",description:["Assigns extra data each datum.","This may be useful when listening to hover, click and selection events.","Note that, *scatter* traces also appends customdata items in the markers","DOM elements"].join(" ")},meta:{valType:"any",arrayOk:!0,editType:"plot",description:["Assigns extra meta information associated with this trace","that can be used in various text attributes.","Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text`","`rangeselector`, `updatemenues` and `sliders` `label` text","all support `meta`.","To access the trace `meta` values in an attribute in the same trace, simply use","`%{meta[i]}` where `i` is the index or key of the `meta`","item in question.","To access trace `meta` in layout attributes, use","`%{data[n[.meta[i]}` where `i` is the index or key of the `meta`","and `n` is the trace index."].join(" ")},selectedpoints:{valType:"any",editType:"calc",description:["Array containing integer indices of selected points.","Has an effect only for traces that support selections.","Note that an empty array means an empty selection where the `unselected`","are turned on for all points, whereas, any other non-array values means no","selection all where the `selected` and `unselected` styles have no effect."].join(" ")},hoverinfo:{valType:"flaglist",flags:["x","y","z","text","name"],extras:["all","none","skip"],arrayOk:!0,dflt:"all",editType:"none",description:["Determines which trace information appear on hover.","If `none` or `skip` are set, no information is displayed upon hovering.","But, if `none` is set, click and hover events are still fired."].join(" ")},hoverlabel:a.hoverlabel,stream:{token:{valType:"string",noBlank:!0,strict:!0,editType:"calc",description:["The stream id number links a data trace on a plot with a stream.","See https://chart-studio.plotly.com/settings for more details."].join(" ")},maxpoints:{valType:"number",min:0,max:1e4,dflt:500,editType:"calc",description:["Sets the maximum number of points to keep on the plots from an","incoming stream.","If `maxpoints` is set to *50*, only the newest 50 points will","be displayed on the plot."].join(" ")},editType:"calc"},transforms:{_isLinkedToArray:"transform",editType:"calc",description:["WARNING: All transforms are deprecated and may be removed from the API in next major version.","An array of operations that manipulate the trace data,","for example filtering or sorting the data arrays."].join(" ")},uirevision:{valType:"any",editType:"none",description:["Controls persistence of some user-driven changes to the trace:","`constraintrange` in `parcoords` traces, as well as some","`editable: true` modifications such as `name` and `colorbar.title`.","Defaults to `layout.uirevision`.","Note that other user-driven trace attribute changes are controlled","by `layout` attributes:","`trace.visible` is controlled by `layout.legend.uirevision`,","`selectedpoints` is controlled by `layout.selectionrevision`,","and `colorbar.(x|y)` (accessible with `config: {editable: true}`)","is controlled by `layout.editrevision`.","Trace changes are tracked by `uid`, which only falls back on trace","index if no `uid` is provided. So if your app can add/remove traces","before the end of the `data` array, such that the same trace has a","different index, you can still preserve user-driven changes if you","give each trace a `uid` that stays with it as it moves."].join(" ")}}},function(e,t,r){"use strict";t.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"],t.defaultLine="#444",t.lightLine="#eee",t.background="#fff",t.borderLine="#BEC8D9",t.lightFraction=1e3/11},function(e,t,r){"use strict";var n=r(529),a=r(242),i=r(259),o=r(0).removeElement,l=r(29),s=e.exports={};s.align=r(530),s.getCursor=r(531);var c=r(532);function u(){var e=document.createElement("div");e.className="dragcover";var t=e.style;return t.position="fixed",t.left=0,t.right=0,t.top=0,t.bottom=0,t.zIndex=999999999,t.background="none",document.body.appendChild(e),e}function f(e){return n(e.changedTouches?e.changedTouches[0]:e,document.body)}s.unhover=c.wrapped,s.unhoverRaw=c.raw,s.init=function(e){var t,r,n,c,d,p,h,g,v=e.gd,y=1,m=v._context.doubleClickDelay,b=e.element;v._mouseDownTime||(v._mouseDownTime=0),b.style.pointerEvents="all",b.onmousedown=w,i?(b._ontouchstart&&b.removeEventListener("touchstart",b._ontouchstart),b._ontouchstart=w,b.addEventListener("touchstart",w,{passive:!1})):b.ontouchstart=w;var x=e.clampFn||function(e,t,r){return Math.abs(e)<r&&(e=0),Math.abs(t)<r&&(t=0),[e,t]};function w(i){v._dragged=!1,v._dragging=!0;var o=f(i);t=o[0],r=o[1],h=i.target,p=i,g=2===i.buttons||i.ctrlKey,"undefined"===typeof i.clientX&&"undefined"===typeof i.clientY&&(i.clientX=t,i.clientY=r),(n=(new Date).getTime())-v._mouseDownTime<m?y+=1:(y=1,v._mouseDownTime=n),e.prepFn&&e.prepFn(i,t,r),a&&!g?(d=u()).style.cursor=window.getComputedStyle(b).cursor:a||(d=document,c=window.getComputedStyle(document.documentElement).cursor,document.documentElement.style.cursor=window.getComputedStyle(b).cursor),document.addEventListener("mouseup",k),document.addEventListener("touchend",k),!1!==e.dragmode&&(i.preventDefault(),document.addEventListener("mousemove",_),document.addEventListener("touchmove",_,{passive:!1}))}function _(n){n.preventDefault();var a=f(n),i=e.minDrag||l.MINDRAG,o=x(a[0]-t,a[1]-r,i),c=o[0],u=o[1];(c||u)&&(v._dragged=!0,s.unhover(v,n)),v._dragged&&e.moveFn&&!g&&(v._dragdata={element:b,dx:c,dy:u},e.moveFn(c,u))}function k(t){if(delete v._dragdata,!1!==e.dragmode&&(t.preventDefault(),document.removeEventListener("mousemove",_),document.removeEventListener("touchmove",_)),document.removeEventListener("mouseup",k),document.removeEventListener("touchend",k),a?o(d):c&&(d.documentElement.style.cursor=c,c=null),v._dragging){if(v._dragging=!1,(new Date).getTime()-v._mouseDownTime>m&&(y=Math.max(y-1,1)),v._dragged)e.doneFn&&e.doneFn();else if(e.clickFn&&e.clickFn(y,p),!g){var r;try{r=new MouseEvent("click",t)}catch(i){var n=f(t);(r=document.createEvent("MouseEvents")).initMouseEvent("click",t.bubbles,t.cancelable,t.view,t.detail,t.screenX,t.screenY,n[0],n[1],t.ctrlKey,t.altKey,t.shiftKey,t.metaKey,t.button,t.relatedTarget)}h.dispatchEvent(r)}v._dragging=!1,v._dragged=!1}else v._dragged=!1}},s.coverSlip=u},function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var n=r(31),a=r(84);var i=r(137);function o(e,t,r){return o=Object(i.a)()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var i=new(Function.bind.apply(e,n));return r&&Object(a.a)(i,r.prototype),i},o.apply(null,arguments)}function l(e){var t="function"===typeof Map?new Map:void 0;return l=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof t){if(t.has(e))return t.get(e);t.set(e,i)}function i(){return o(e,arguments,Object(n.a)(this).constructor)}return i.prototype=Object.create(e.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Object(a.a)(i,e)},l(e)}},function(e,t,r){"use strict";var n=r(390)();e.exports=function(e){return e!==n&&null!==e}},function(e,t,r){"use strict";var n=r(28),a=r(45),i=r(66).dash,o=r(22).extendFlat,l=r(17).templatedArray,s=r(76).descriptionWithDates,c=r(19).ONEDAY,u=r(29),f=u.HOUR_PATTERN,d=u.WEEKDAY_PATTERN;e.exports={visible:{valType:"boolean",editType:"plot",description:["A single toggle to hide the axis while preserving interaction like dragging.","Default is true when a cheater plot is present on the axis, otherwise","false"].join(" ")},color:{valType:"color",dflt:a.defaultLine,editType:"ticks",description:["Sets default for all colors associated with this axis","all at once: line, font, tick, and grid colors.","Grid color is lightened by blending this with the plot background","Individual pieces can override this."].join(" ")},title:{text:{valType:"string",editType:"ticks",description:["Sets the title of this axis.","Note that before the existence of `title.text`, the title's","contents used to be defined as the `title` attribute itself.","This behavior has been deprecated."].join(" ")},font:n({editType:"ticks",description:["Sets this axis' title font.","Note that the title's font used to be customized","by the now deprecated `titlefont` attribute."].join(" ")}),standoff:{valType:"number",min:0,editType:"ticks",description:["Sets the standoff distance (in px) between the axis labels and the title text","The default value is a function of the axis tick labels, the title `font.size`","and the axis `linewidth`.","Note that the axis title position is always constrained within the margins,","so the actual standoff distance is always less than the set or default value.","By setting `standoff` and turning on `automargin`, plotly.js will push the","margins to fit the axis title at given standoff distance."].join(" ")},editType:"ticks"},type:{valType:"enumerated",values:["-","linear","log","date","category","multicategory"],dflt:"-",editType:"calc",_noTemplating:!0,description:["Sets the axis type.","By default, plotly attempts to determined the axis type","by looking into the data of the traces that referenced","the axis in question."].join(" ")},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc",description:["Using *strict* a numeric string in trace data is not converted to a number.","Using *convert types* a numeric string in trace data may be","treated as a number during automatic axis `type` detection.","Defaults to layout.autotypenumbers."].join(" ")},autorange:{valType:"enumerated",values:[!0,!1,"reversed"],dflt:!0,editType:"axrange",impliedEdits:{"range[0]":void 0,"range[1]":void 0},description:["Determines whether or not the range of this axis is","computed in relation to the input data.","See `rangemode` for more info.","If `range` is provided, then `autorange` is set to *false*."].join(" ")},rangemode:{valType:"enumerated",values:["normal","tozero","nonnegative"],dflt:"normal",editType:"plot",description:["If *normal*, the range is computed in relation to the extrema","of the input data.","If *tozero*`, the range extends to 0,","regardless of the input data","If *nonnegative*, the range is non-negative,","regardless of the input data.","Applies only to linear axes."].join(" ")},range:{valType:"info_array",items:[{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0},{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0}],editType:"axrange",impliedEdits:{autorange:!1},anim:!0,description:["Sets the range of this axis.","If the axis `type` is *log*, then you must take the log of your","desired range (e.g. to set the range from 1 to 100,","set the range from 0 to 2).","If the axis `type` is *date*, it should be date strings,","like date data, though Date objects and unix milliseconds","will be accepted and converted to strings.","If the axis `type` is *category*, it should be numbers,","using the scale where each category is assigned a serial","number from zero in the order it appears."].join(" ")},fixedrange:{valType:"boolean",dflt:!1,editType:"calc",description:["Determines whether or not this axis is zoom-able.","If true, then zoom is disabled."].join(" ")},scaleanchor:{valType:"enumerated",values:[u.idRegex.x.toString(),u.idRegex.y.toString()],editType:"plot",description:["If set to another axis id (e.g. `x2`, `y`), the range of this axis","changes together with the range of the corresponding axis","such that the scale of pixels per unit is in a constant ratio.","Both axes are still zoomable, but when you zoom one, the other will","zoom the same amount, keeping a fixed midpoint.","`constrain` and `constraintoward` determine how we enforce the constraint.","You can chain these, ie `yaxis: {scaleanchor: *x*}, xaxis2: {scaleanchor: *y*}`","but you can only link axes of the same `type`.","The linked axis can have the opposite letter (to constrain the aspect ratio)","or the same letter (to match scales across subplots).","Loops (`yaxis: {scaleanchor: *x*}, xaxis: {scaleanchor: *y*}` or longer) are redundant","and the last constraint encountered will be ignored to avoid possible","inconsistent constraints via `scaleratio`.","Note that setting axes simultaneously in both a `scaleanchor` and a `matches` constraint","is currently forbidden."].join(" ")},scaleratio:{valType:"number",min:0,dflt:1,editType:"plot",description:["If this axis is linked to another by `scaleanchor`, this determines the pixel","to unit scale ratio. For example, if this value is 10, then every unit on","this axis spans 10 times the number of pixels as a unit on the linked axis.","Use this for example to create an elevation profile where the vertical scale","is exaggerated a fixed amount with respect to the horizontal."].join(" ")},constrain:{valType:"enumerated",values:["range","domain"],editType:"plot",description:["If this axis needs to be compressed (either due to its own `scaleanchor` and","`scaleratio` or those of the other axis), determines how that happens:","by increasing the *range*, or by decreasing the *domain*.","Default is *domain* for axes containing image traces, *range* otherwise."].join(" ")},constraintoward:{valType:"enumerated",values:["left","center","right","top","middle","bottom"],editType:"plot",description:["If this axis needs to be compressed (either due to its own `scaleanchor` and","`scaleratio` or those of the other axis), determines which direction we push","the originally specified plot area. Options are *left*, *center* (default),","and *right* for x axes, and *top*, *middle* (default), and *bottom* for y axes."].join(" ")},matches:{valType:"enumerated",values:[u.idRegex.x.toString(),u.idRegex.y.toString()],editType:"calc",description:["If set to another axis id (e.g. `x2`, `y`), the range of this axis","will match the range of the corresponding axis in data-coordinates space.","Moreover, matching axes share auto-range values, category lists and","histogram auto-bins.","Note that setting axes simultaneously in both a `scaleanchor` and a `matches` constraint","is currently forbidden.","Moreover, note that matching axes must have the same `type`."].join(" ")},rangebreaks:l("rangebreak",{enabled:{valType:"boolean",dflt:!0,editType:"calc",description:["Determines whether this axis rangebreak is enabled or disabled.","Please note that `rangebreaks` only work for *date* axis type."].join(" ")},bounds:{valType:"info_array",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}],editType:"calc",description:["Sets the lower and upper bounds of this axis rangebreak.","Can be used with `pattern`."].join(" ")},pattern:{valType:"enumerated",values:[d,f,""],editType:"calc",description:["Determines a pattern on the time line that generates breaks.","If *"+d+"* - days of the week in English e.g. 'Sunday' or `sun`","(matching is case-insensitive and considers only the first three characters),","as well as Sunday-based integers between 0 and 6.","If *"+f+"* - hour (24-hour clock) as decimal numbers between 0 and 24.","for more info.","Examples:","- { pattern: '"+d+"', bounds: [6, 1] }"," or simply { bounds: ['sat', 'mon'] }"," breaks from Saturday to Monday (i.e. skips the weekends).","- { pattern: '"+f+"', bounds: [17, 8] }"," breaks from 5pm to 8am (i.e. skips non-work hours)."].join(" ")},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"},description:["Sets the coordinate values corresponding to the rangebreaks.","An alternative to `bounds`.","Use `dvalue` to set the size of the values along the axis."].join(" ")},dvalue:{valType:"number",editType:"calc",min:0,dflt:c,description:["Sets the size of each `values` item.","The default is one day in milliseconds."].join(" ")},editType:"calc"}),tickmode:{valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0},description:["Sets the tick mode for this axis.","If *auto*, the number of ticks is set via `nticks`.","If *linear*, the placement of the ticks is determined by","a starting position `tick0` and a tick step `dtick`","(*linear* is the default value if `tick0` and `dtick` are provided).","If *array*, the placement of the ticks is set via `tickvals`","and the tick text is `ticktext`.","(*array* is the default value if `tickvals` is provided)."].join(" ")},nticks:{valType:"integer",min:0,dflt:0,editType:"ticks",description:["Specifies the maximum number of ticks for the particular axis.","The actual number of ticks will be chosen automatically to be","less than or equal to `nticks`.","Has an effect only if `tickmode` is set to *auto*."].join(" ")},tick0:{valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"},description:["Sets the placement of the first tick on this axis.","Use with `dtick`.","If the axis `type` is *log*, then you must take the log of your starting tick","(e.g. to set the starting tick to 100, set the `tick0` to 2)","except when `dtick`=*L<f>* (see `dtick` for more info).","If the axis `type` is *date*, it should be a date string, like date data.","If the axis `type` is *category*, it should be a number, using the scale where","each category is assigned a serial number from zero in the order it appears."].join(" ")},dtick:{valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"},description:["Sets the step in-between ticks on this axis. Use with `tick0`.","Must be a positive number, or special strings available to *log* and *date* axes.","If the axis `type` is *log*, then ticks are set every 10^(n*dtick) where n","is the tick number. For example,","to set a tick mark at 1, 10, 100, 1000, ... set dtick to 1.","To set tick marks at 1, 100, 10000, ... set dtick to 2.","To set tick marks at 1, 5, 25, 125, 625, 3125, ... set dtick to log_10(5), or 0.69897000433.","*log* has several special values; *L<f>*, where `f` is a positive number,","gives ticks linearly spaced in value (but not position).","For example `tick0` = 0.1, `dtick` = *L0.5* will put ticks at 0.1, 0.6, 1.1, 1.6 etc.","To show powers of 10 plus small digits between, use *D1* (all digits) or *D2* (only 2 and 5).","`tick0` is ignored for *D1* and *D2*.","If the axis `type` is *date*, then you must convert the time to milliseconds.","For example, to set the interval between ticks to one day,","set `dtick` to 86400000.0.","*date* also has special values *M<n>* gives ticks spaced by a number of months.","`n` must be a positive integer.","To set ticks on the 15th of every third month, set `tick0` to *2000-01-15* and `dtick` to *M3*.","To set ticks every 4 years, set `dtick` to *M48*"].join(" ")},ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks",description:["Sets the spacing between tick labels as compared to the spacing between ticks.","A value of 1 (default) means each tick gets a label.","A value of 2 means shows every 2nd label.","A larger value n means only every nth tick is labeled.","`tick0` determines which labels are shown.","Not implemented for axes with `type` *log* or *multicategory*, or when `tickmode` is *array*."].join(" ")},tickvals:{valType:"data_array",editType:"ticks",description:["Sets the values at which ticks on this axis appear.","Only has an effect if `tickmode` is set to *array*.","Used with `ticktext`."].join(" ")},ticktext:{valType:"data_array",editType:"ticks",description:["Sets the text displayed at the ticks position via `tickvals`.","Only has an effect if `tickmode` is set to *array*.","Used with `tickvals`."].join(" ")},ticks:{valType:"enumerated",values:["outside","inside",""],editType:"ticks",description:["Determines whether ticks are drawn or not.","If **, this axis' ticks are not drawn.","If *outside* (*inside*), this axis' are drawn outside (inside)","the axis lines."].join(" ")},tickson:{valType:"enumerated",values:["labels","boundaries"],dflt:"labels",editType:"ticks",description:["Determines where ticks and grid lines are drawn with respect to their","corresponding tick labels.","Only has an effect for axes of `type` *category* or *multicategory*.","When set to *boundaries*, ticks and grid lines are drawn half a category","to the left/bottom of labels."].join(" ")},ticklabelmode:{valType:"enumerated",values:["instant","period"],dflt:"instant",editType:"ticks",description:["Determines where tick labels are drawn with respect to their","corresponding ticks and grid lines.","Only has an effect for axes of `type` *date*","When set to *period*, tick labels are drawn in the middle of the period","between ticks."].join(" ")},ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside",editType:"calc",description:["Determines where tick labels are drawn with respect to the axis","Please note that","top or bottom has no effect on x axes or when `ticklabelmode` is set to *period*.","Similarly","left or right has no effect on y axes or when `ticklabelmode` is set to *period*.","Has no effect on *multicategory* axes or when `tickson` is set to *boundaries*.","When used on axes linked by `matches` or `scaleanchor`,","no extra padding for inside labels would be added by autorange,","so that the scales could match."].join(" ")},ticklabeloverflow:{valType:"enumerated",values:["allow","hide past div","hide past domain"],editType:"calc",description:["Determines how we handle tick labels that would overflow either the graph div or the domain of the axis.","The default value for inside tick labels is *hide past domain*.","Otherwise on *category* and *multicategory* axes the default is *allow*.","In other cases the default is *hide past div*."].join(" ")},mirror:{valType:"enumerated",values:[!0,"ticks",!1,"all","allticks"],dflt:!1,editType:"ticks+layoutstyle",description:["Determines if the axis lines or/and ticks are mirrored to","the opposite side of the plotting area.","If *true*, the axis lines are mirrored.","If *ticks*, the axis lines and ticks are mirrored.","If *false*, mirroring is disable.","If *all*, axis lines are mirrored on all shared-axes subplots.","If *allticks*, axis lines and ticks are mirrored","on all shared-axes subplots."].join(" ")},ticklen:{valType:"number",min:0,dflt:5,editType:"ticks",description:"Sets the tick length (in px)."},tickwidth:{valType:"number",min:0,dflt:1,editType:"ticks",description:"Sets the tick width (in px)."},tickcolor:{valType:"color",dflt:a.defaultLine,editType:"ticks",description:"Sets the tick color."},showticklabels:{valType:"boolean",dflt:!0,editType:"ticks",description:"Determines whether or not the tick labels are drawn."},automargin:{valType:"boolean",dflt:!1,editType:"ticks",description:["Determines whether long tick labels automatically grow the figure","margins."].join(" ")},showspikes:{valType:"boolean",dflt:!1,editType:"modebar",description:["Determines whether or not spikes (aka droplines) are drawn for this axis.","Note: This only takes affect when hovermode = closest"].join(" ")},spikecolor:{valType:"color",dflt:null,editType:"none",description:"Sets the spike color. If undefined, will use the series color"},spikethickness:{valType:"number",dflt:3,editType:"none",description:"Sets the width (in px) of the zero line."},spikedash:o({},i,{dflt:"dash",editType:"none"}),spikemode:{valType:"flaglist",flags:["toaxis","across","marker"],dflt:"toaxis",editType:"none",description:["Determines the drawing mode for the spike line","If *toaxis*, the line is drawn from the data point to the axis the ","series is plotted on.","If *across*, the line is drawn across the entire plot area, and","supercedes *toaxis*.","If *marker*, then a marker dot is drawn on the axis the series is","plotted on"].join(" ")},spikesnap:{valType:"enumerated",values:["data","cursor","hovered data"],dflt:"hovered data",editType:"none",description:"Determines whether spikelines are stuck to the cursor or to the closest datapoints."},tickfont:n({editType:"ticks",description:"Sets the tick font."}),tickangle:{valType:"angle",dflt:"auto",editType:"ticks",description:["Sets the angle of the tick labels with respect to the horizontal.","For example, a `tickangle` of -90 draws the tick labels","vertically."].join(" ")},tickprefix:{valType:"string",dflt:"",editType:"ticks",description:"Sets a tick label prefix."},showtickprefix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks",description:["If *all*, all tick labels are displayed with a prefix.","If *first*, only the first tick is displayed with a prefix.","If *last*, only the last tick is displayed with a suffix.","If *none*, tick prefixes are hidden."].join(" ")},ticksuffix:{valType:"string",dflt:"",editType:"ticks",description:"Sets a tick label suffix."},showticksuffix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks",description:"Same as `showtickprefix` but for tick suffixes."},showexponent:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks",description:["If *all*, all exponents are shown besides their significands.","If *first*, only the exponent of the first tick is shown.","If *last*, only the exponent of the last tick is shown.","If *none*, no exponents appear."].join(" ")},exponentformat:{valType:"enumerated",values:["none","e","E","power","SI","B"],dflt:"B",editType:"ticks",description:["Determines a formatting rule for the tick exponents.","For example, consider the number 1,000,000,000.","If *none*, it appears as 1,000,000,000.","If *e*, 1e+9.","If *E*, 1E+9.","If *power*, 1x10^9 (with 9 in a super script).","If *SI*, 1G.","If *B*, 1B."].join(" ")},minexponent:{valType:"number",dflt:3,min:0,editType:"ticks",description:["Hide SI prefix for 10^n if |n| is below this number.","This only has an effect when `tickformat` is *SI* or *B*."].join(" ")},separatethousands:{valType:"boolean",dflt:!1,editType:"ticks",description:['If "true", even 4-digit integers are separated'].join(" ")},tickformat:{valType:"string",dflt:"",editType:"ticks",description:s("tick label")},tickformatstops:l("tickformatstop",{enabled:{valType:"boolean",dflt:!0,editType:"ticks",description:["Determines whether or not this stop is used.","If `false`, this stop is ignored even within its `dtickrange`."].join(" ")},dtickrange:{valType:"info_array",items:[{valType:"any",editType:"ticks"},{valType:"any",editType:"ticks"}],editType:"ticks",description:["range [*min*, *max*], where *min*, *max* - dtick values","which describe some zoom level, it is possible to omit *min*","or *max* value by passing *null*"].join(" ")},value:{valType:"string",dflt:"",editType:"ticks",description:["string - dtickformat for described zoom level, the same as *tickformat*"].join(" ")},editType:"ticks"}),hoverformat:{valType:"string",dflt:"",editType:"none",description:s("hover text")},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle",description:["Determines whether or not a line bounding this axis is drawn."].join(" ")},linecolor:{valType:"color",dflt:a.defaultLine,editType:"layoutstyle",description:"Sets the axis line color."},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle",description:"Sets the width (in px) of the axis line."},showgrid:{valType:"boolean",editType:"ticks",description:["Determines whether or not grid lines are drawn.","If *true*, the grid lines are drawn at every tick mark."].join(" ")},gridcolor:{valType:"color",dflt:a.lightLine,editType:"ticks",description:"Sets the color of the grid lines."},gridwidth:{valType:"number",min:0,dflt:1,editType:"ticks",description:"Sets the width (in px) of the grid lines."},zeroline:{valType:"boolean",editType:"ticks",description:["Determines whether or not a line is drawn at along the 0 value","of this axis.","If *true*, the zero line is drawn on top of the grid lines."].join(" ")},zerolinecolor:{valType:"color",dflt:a.defaultLine,editType:"ticks",description:"Sets the line color of the zero line."},zerolinewidth:{valType:"number",dflt:1,editType:"ticks",description:"Sets the width (in px) of the zero line."},showdividers:{valType:"boolean",dflt:!0,editType:"ticks",description:["Determines whether or not a dividers are drawn","between the category levels of this axis.","Only has an effect on *multicategory* axes."].join(" ")},dividercolor:{valType:"color",dflt:a.defaultLine,editType:"ticks",description:["Sets the color of the dividers","Only has an effect on *multicategory* axes."].join(" ")},dividerwidth:{valType:"number",dflt:1,editType:"ticks",description:["Sets the width (in px) of the dividers","Only has an effect on *multicategory* axes."].join(" ")},anchor:{valType:"enumerated",values:["free",u.idRegex.x.toString(),u.idRegex.y.toString()],editType:"plot",description:["If set to an opposite-letter axis id (e.g. `x2`, `y`), this axis is bound to","the corresponding opposite-letter axis.","If set to *free*, this axis' position is determined by `position`."].join(" ")},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot",description:["Determines whether a x (y) axis is positioned","at the *bottom* (*left*) or *top* (*right*)","of the plotting area."].join(" ")},overlaying:{valType:"enumerated",values:["free",u.idRegex.x.toString(),u.idRegex.y.toString()],editType:"plot",description:["If set a same-letter axis id, this axis is overlaid on top of","the corresponding same-letter axis, with traces and axes visible for both","axes.","If *false*, this axis does not overlay any same-letter axes.","In this case, for axes with overlapping domains only the highest-numbered","axis will be visible."].join(" ")},layer:{valType:"enumerated",values:["above traces","below traces"],dflt:"above traces",editType:"plot",description:["Sets the layer on which this axis is displayed.","If *above traces*, this axis is displayed above all the subplot's traces","If *below traces*, this axis is displayed below all the subplot's traces,","but above the grid lines.","Useful when used together with scatter-like traces with `cliponaxis`","set to *false* to show markers and/or text nodes above this axis."].join(" ")},domain:{valType:"info_array",items:[{valType:"number",min:0,max:1,editType:"plot"},{valType:"number",min:0,max:1,editType:"plot"}],dflt:[0,1],editType:"plot",description:["Sets the domain of this axis (in plot fraction)."].join(" ")},position:{valType:"number",min:0,max:1,dflt:0,editType:"plot",description:["Sets the position of this axis in the plotting space","(in normalized coordinates).","Only has an effect if `anchor` is set to *free*."].join(" ")},categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array","total ascending","total descending","min ascending","min descending","max ascending","max descending","sum ascending","sum descending","mean ascending","mean descending","median ascending","median descending"],dflt:"trace",editType:"calc",description:["Specifies the ordering logic for the case of categorical variables.","By default, plotly uses *trace*, which specifies the order that is present in the data supplied.","Set `categoryorder` to *category ascending* or *category descending* if order should be determined by","the alphanumerical order of the category names.","Set `categoryorder` to *array* to derive the ordering from the attribute `categoryarray`. If a category","is not found in the `categoryarray` array, the sorting behavior for that attribute will be identical to","the *trace* mode. The unspecified categories will follow the categories in `categoryarray`.","Set `categoryorder` to *total ascending* or *total descending* if order should be determined by the","numerical order of the values.","Similarly, the order can be determined by the min, max, sum, mean or median of all the values."].join(" ")},categoryarray:{valType:"data_array",editType:"calc",description:["Sets the order in which categories on this axis appear.","Only has an effect if `categoryorder` is set to *array*.","Used with `categoryorder`."].join(" ")},uirevision:{valType:"any",editType:"none",description:["Controls persistence of user-driven changes in axis `range`,","`autorange`, and `title` if in `editable: true` configuration.","Defaults to `layout.uirevision`."].join(" ")},editType:"calc",_deprecated:{autotick:{valType:"boolean",editType:"ticks",description:["Obsolete.","Set `tickmode` to *auto* for old `autotick` *true* behavior.","Set `tickmode` to *linear* for `autotick` *false*."].join(" ")},title:{valType:"string",editType:"ticks",description:["Value of `title` is no longer a simple *string* but a set of sub-attributes.","To set the axis' title, please use `title.text` now."].join(" ")},titlefont:n({editType:"ticks",description:["Former `titlefont` is now the sub-attribute `font` of `title`.","To customize title font properties, please use `title.font` now."].join(" ")})}}},function(e,t,r){"use strict";var n=r(0),a=r(17);e.exports=function(e,t,r){var i,o,l=r.name,s=r.inclusionAttr||"visible",c=t[l],u=n.isArrayOrTypedArray(e[l])?e[l]:[],f=t[l]=[],d=a.arrayTemplater(t,l,s);for(i=0;i<u.length;i++){var p=u[i];n.isPlainObject(p)?o=d.newItem(p):(o=d.newItem({}))[s]=!1,o._index=i,!1!==o[s]&&r.handleItemDefaults(p,o,t,r),f.push(o)}var h=d.defaultItems();for(i=0;i<h.length;i++)(o=h[i])._index=f.length,r.handleItemDefaults({},o,t,r,{}),f.push(o);if(n.isArrayOrTypedArray(c)){var g=Math.min(c.length,f.length);for(i=0;i<g;i++)n.relinkPrivateKeys(f[i],c[i])}return f}},function(e,t,r){"use strict";var n=r(7),a=r(0);function i(e){return"_"+e+"Text_minsize"}e.exports={recordMinTextSize:function(e,t,r){if(r.uniformtext.mode){var n=i(e),a=r.uniformtext.minsize,o=t.scale*t.fontSize;t.hide=o<a,r[n]=r[n]||1/0,t.hide||(r[n]=Math.min(r[n],Math.max(o,a)))}},clearMinTextSize:function(e,t){t[i(e)]=void 0},resizeText:function(e,t,r){var i=e._fullLayout,o=i["_"+r+"Text_minsize"];if(o){var l,s="hide"===i.uniformtext.mode;switch(r){case"funnelarea":case"pie":case"sunburst":l="g.slice";break;case"treemap":case"icicle":l="g.slice, g.pathbar";break;default:l="g.points > g.point"}t.selectAll(l).each((function(e){var t=e.transform;t&&(t.scale=s&&t.hide?0:o/t.fontSize,n.select(this).select("text").attr("transform",a.getTextTransform(t)))}))}}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var n=r(31);function a(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Object(n.a)(e)););return e}function i(){return i="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=a(e,t);if(n){var i=Object.getOwnPropertyDescriptor(n,t);return i.get?i.get.call(arguments.length<3?e:r):i.value}},i.apply(this,arguments)}},function(e,t,r){"use strict";var n=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function o(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(a){return!1}}()?Object.assign:function(e,t){for(var r,l,s=o(e),c=1;c<arguments.length;c++){for(var u in r=Object(arguments[c]))a.call(r,u)&&(s[u]=r[u]);if(n){l=n(r);for(var f=0;f<l.length;f++)i.call(r,l[f])&&(s[l[f]]=r[l[f]])}}return s}},function(e,t,r){"use strict";var n=r(117);e.exports=function(){return n()&&!!Symbol.toStringTag}},function(e,t,r){"use strict";var n=r(0),a=n.extendFlat,i=n.isPlainObject,o={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"],description:["trace attributes should include an `editType` string matching this flaglist.","*calc* is the most extensive: a full (re)plot starting by clearing `gd.calcdata`","to force it to be regenerated","*clearAxisTypes* resets the types of the axes this trace is on, because new data could","cause the automatic axis type detection to change. Log type will not be cleared, as that","is never automatically chosen so must have been user-specified.","*plot* (re)plots but without first clearing `gd.calcdata`.","*style* only calls `module.style` (or module.editStyle) for all trace modules and redraws the legend.","*markerSize* is like *style*, but propagate axis-range changes due to scatter `marker.size`","*colorbars* only redraws colorbars."].join(" ")},l={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"],description:["layout attributes should include an `editType` string matching this flaglist.","*calc* is the most extensive: a full (re)plot starting by clearing `gd.calcdata`","to force it to be regenerated","*plot* (re)plots but without first clearing `gd.calcdata`.","*legend* only redraws the legend.","*ticks* only redraws axis ticks, labels, and gridlines.","*axrange* minimal sequence when updating axis ranges.","*layoutstyle* reapplies global and SVG cartesian axis styles.","*modebar* just updates the modebar.","*camera* just updates the camera settings for gl3d scenes.","*arraydraw* allows component arrays to invoke the redraw routines just for the","component(s) that changed.","*colorbars* only redraws colorbars."].join(" ")},s=o.flags.slice().concat(["fullReplot"]),c=l.flags.slice().concat("layoutReplot");function u(e){for(var t={},r=0;r<e.length;r++)t[e[r]]=!1;return t}function f(e,t,r){var n=a({},e);for(var o in n){var l=n[o];i(l)&&(n[o]=d(l,t,r,o))}return"from-root"===r&&(n.editType=t),n}function d(e,t,r,n){if(e.valType){var i=a({},e);if(i.editType=t,Array.isArray(e.items)){i.items=new Array(e.items.length);for(var o=0;o<e.items.length;o++)i.items[o]=d(e.items[o],t,"from-root")}return i}return f(e,t,"_"===n.charAt(0)?"nested":"from-root")}e.exports={traces:o,layout:l,traceFlags:function(){return u(s)},layoutFlags:function(){return u(c)},update:function(e,t){var r=t.editType;if(r&&"none"!==r)for(var n=r.split("+"),a=0;a<n.length;a++)e[n[a]]=!0},overrideAll:f}},function(e,t,r){"use strict";e.exports=function(e,t){(e.attr("class")||"").split(" ").forEach((function(t){0===t.indexOf("cursor-")&&e.classed(t,!1)})),t&&e.classed("cursor-"+t,!0)}},function(e,t,r){"use strict";e.exports=function(e,t,r){var n,i,o={};if("string"===typeof t&&(t=a(t)),Array.isArray(t)){var l={};for(i=0;i<t.length;i++)l[t[i]]=!0;t=l}for(n in t)t[n]=a(t[n]);var s={};for(n in t){var c=t[n];if(Array.isArray(c))for(i=0;i<c.length;i++){var u=c[i];if(r&&(s[u]=!0),u in e){if(o[n]=e[u],r)for(var f=i;f<c.length;f++)s[c[f]]=!0;break}}else n in e&&(t[n]&&(o[n]=e[n]),r&&(s[n]=!0))}if(r)for(n in e)s[n]||(o[n]=e[n]);return o};var n={};function a(e){return n[e]?n[e]:("string"===typeof e&&(e=n[e]=e.split(/\s*,\s*|\s+/)),e)}},function(e,t,r){"use strict";e.exports=r(389)},function(e,t,r){"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){l(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function l(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,a,i=[],o=!0,l=!1;try{for(r=r.call(e);!(o=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(s){l=!0,a=s}finally{try{o||null==r.return||r.return()}finally{if(l)throw a}}return i}(e,t)||u(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e){return function(e){if(Array.isArray(e))return f(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||u(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){if(e){if("string"===typeof e)return f(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(e,t):void 0}}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}r.d(t,"a",(function(){return mr}));var d=function(){},p={},h={},g=null,v={mark:d,measure:d};try{"undefined"!==typeof window&&(p=window),"undefined"!==typeof document&&(h=document),"undefined"!==typeof MutationObserver&&(g=MutationObserver),"undefined"!==typeof performance&&(v=performance)}catch(xr){}var y=(p.navigator||{}).userAgent,m=void 0===y?"":y,b=p,x=h,w=g,_=v,k=(b.document,!!x.documentElement&&!!x.head&&"function"===typeof x.addEventListener&&"function"===typeof x.createElement),T=~m.indexOf("MSIE")||~m.indexOf("Trident/"),A="svg-inline--fa",S="data-fa-i2svg",M="data-fa-pseudo-element",O="data-prefix",C="data-icon",E="fontawesome-i2svg",L=["HTML","HEAD","STYLE","SCRIPT"],P=function(){try{return!0}catch(xr){return!1}}(),j={fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fad:"duotone","fa-duotone":"duotone",fab:"brands","fa-brands":"brands",fak:"kit","fa-kit":"kit",fa:"solid"},z={solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab",kit:"fak"},D={fab:"fa-brands",fad:"fa-duotone",fak:"fa-kit",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},I={"fa-brands":"fab","fa-duotone":"fad","fa-kit":"fak","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},N=/fa[srltdbk\-\ ]/,R="fa-layers-text",F=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Kit)?.*/i,B={900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},U=[1,2,3,4,5,6,7,8,9,10],H=U.concat([11,12,13,14,15,16,17,18,19,20]),V=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],q="duotone-group",W="swap-opacity",Y="primary",G="secondary",X=[].concat(c(Object.keys(z)),["2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",q,W,Y,G]).concat(U.map((function(e){return"".concat(e,"x")}))).concat(H.map((function(e){return"w-".concat(e)}))),Z=b.FontAwesomeConfig||{};if(x&&"function"===typeof x.querySelector){[["data-family-prefix","familyPrefix"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach((function(e){var t=s(e,2),r=t[0],n=t[1],a=function(e){return""===e||"false"!==e&&("true"===e||e)}(function(e){var t=x.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}(r));void 0!==a&&null!==a&&(Z[n]=a)}))}var $=a(a({},{familyPrefix:"fa",styleDefault:"solid",replacementClass:A,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0}),Z);$.autoReplaceSvg||($.observeMutations=!1);var Q={};Object.keys($).forEach((function(e){Object.defineProperty(Q,e,{enumerable:!0,set:function(t){$[e]=t,K.forEach((function(e){return e(Q)}))},get:function(){return $[e]}})})),b.FontAwesomeConfig=Q;var K=[];var J=16,ee={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function te(){for(var e=12,t="";e-- >0;)t+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return t}function re(e){for(var t=[],r=(e||[]).length>>>0;r--;)t[r]=e[r];return t}function ne(e){return e.classList?re(e.classList):(e.getAttribute("class")||"").split(" ").filter((function(e){return e}))}function ae(e){return"".concat(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function ie(e){return Object.keys(e||{}).reduce((function(t,r){return t+"".concat(r,": ").concat(e[r].trim(),";")}),"")}function oe(e){return e.size!==ee.size||e.x!==ee.x||e.y!==ee.y||e.rotate!==ee.rotate||e.flipX||e.flipY}function le(){var e="fa",t=A,r=Q.familyPrefix,n=Q.replacementClass,a=':root, :host {\n --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid";\n --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular";\n --fa-font-light: normal 300 1em/1 "Font Awesome 6 Light";\n --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Thin";\n --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";\n --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";\n}\n\nsvg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {\n overflow: visible;\n box-sizing: content-box;\n}\n\n.svg-inline--fa {\n display: var(--fa-display, inline-block);\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-2xs {\n vertical-align: 0.1em;\n}\n.svg-inline--fa.fa-xs {\n vertical-align: 0em;\n}\n.svg-inline--fa.fa-sm {\n vertical-align: -0.0714285705em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.2em;\n}\n.svg-inline--fa.fa-xl {\n vertical-align: -0.25em;\n}\n.svg-inline--fa.fa-2xl {\n vertical-align: -0.3125em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-li {\n width: var(--fa-li-width, 2em);\n top: 0.25em;\n}\n.svg-inline--fa.fa-fw {\n width: var(--fa-fw-width, 1.25em);\n}\n\n.fa-layers svg.svg-inline--fa {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.fa-layers-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: var(--fa-counter-background-color, #ff253a);\n border-radius: var(--fa-counter-border-radius, 1em);\n box-sizing: border-box;\n color: var(--fa-inverse, #fff);\n line-height: var(--fa-counter-line-height, 1);\n max-width: var(--fa-counter-max-width, 5em);\n min-width: var(--fa-counter-min-width, 1.5em);\n overflow: hidden;\n padding: var(--fa-counter-padding, 0.25em 0.5em);\n right: var(--fa-right, 0);\n text-overflow: ellipsis;\n top: var(--fa-top, 0);\n -webkit-transform: scale(var(--fa-counter-scale, 0.25));\n transform: scale(var(--fa-counter-scale, 0.25));\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: var(--fa-bottom, 0);\n right: var(--fa-right, 0);\n top: auto;\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: bottom right;\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: var(--fa-bottom, 0);\n left: var(--fa-left, 0);\n right: auto;\n top: auto;\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: bottom left;\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n top: var(--fa-top, 0);\n right: var(--fa-right, 0);\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: var(--fa-left, 0);\n right: auto;\n top: var(--fa-top, 0);\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: top left;\n transform-origin: top left;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-2xs {\n font-size: 0.625em;\n line-height: 0.1em;\n vertical-align: 0.225em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n line-height: 0.0833333337em;\n vertical-align: 0.125em;\n}\n\n.fa-sm {\n font-size: 0.875em;\n line-height: 0.0714285718em;\n vertical-align: 0.0535714295em;\n}\n\n.fa-lg {\n font-size: 1.25em;\n line-height: 0.05em;\n vertical-align: -0.075em;\n}\n\n.fa-xl {\n font-size: 1.5em;\n line-height: 0.0416666682em;\n vertical-align: -0.125em;\n}\n\n.fa-2xl {\n font-size: 2em;\n line-height: 0.03125em;\n vertical-align: -0.1875em;\n}\n\n.fa-fw {\n text-align: center;\n width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-left: var(--fa-li-margin, 2.5em);\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: calc(var(--fa-li-width, 2em) * -1);\n position: absolute;\n text-align: center;\n width: var(--fa-li-width, 2em);\n line-height: inherit;\n}\n\n.fa-border {\n border-color: var(--fa-border-color, #eee);\n border-radius: var(--fa-border-radius, 0.1em);\n border-style: var(--fa-border-style, solid);\n border-width: var(--fa-border-width, 0.08em);\n padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);\n}\n\n.fa-pull-left {\n float: left;\n margin-right: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-pull-right {\n float: right;\n margin-left: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-beat {\n -webkit-animation-name: fa-beat;\n animation-name: fa-beat;\n -webkit-animation-delay: var(--fa-animation-delay, 0);\n animation-delay: var(--fa-animation-delay, 0);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-bounce {\n -webkit-animation-name: fa-bounce;\n animation-name: fa-bounce;\n -webkit-animation-delay: var(--fa-animation-delay, 0);\n animation-delay: var(--fa-animation-delay, 0);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n}\n\n.fa-fade {\n -webkit-animation-name: fa-fade;\n animation-name: fa-fade;\n -webkit-animation-delay: var(--fa-animation-delay, 0);\n animation-delay: var(--fa-animation-delay, 0);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-beat-fade {\n -webkit-animation-name: fa-beat-fade;\n animation-name: fa-beat-fade;\n -webkit-animation-delay: var(--fa-animation-delay, 0);\n animation-delay: var(--fa-animation-delay, 0);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-flip {\n -webkit-animation-name: fa-flip;\n animation-name: fa-flip;\n -webkit-animation-delay: var(--fa-animation-delay, 0);\n animation-delay: var(--fa-animation-delay, 0);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-shake {\n -webkit-animation-name: fa-shake;\n animation-name: fa-shake;\n -webkit-animation-delay: var(--fa-animation-delay, 0);\n animation-delay: var(--fa-animation-delay, 0);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin {\n -webkit-animation-name: fa-spin;\n animation-name: fa-spin;\n -webkit-animation-delay: var(--fa-animation-delay, 0);\n animation-delay: var(--fa-animation-delay, 0);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 2s);\n animation-duration: var(--fa-animation-duration, 2s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin-reverse {\n --fa-animation-direction: reverse;\n}\n\n.fa-pulse,\n.fa-spin-pulse {\n -webkit-animation-name: fa-spin;\n animation-name: fa-spin;\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, steps(8));\n animation-timing-function: var(--fa-animation-timing, steps(8));\n}\n\n@media (prefers-reduced-motion: reduce) {\n .fa-beat,\n.fa-bounce,\n.fa-fade,\n.fa-beat-fade,\n.fa-flip,\n.fa-pulse,\n.fa-shake,\n.fa-spin,\n.fa-spin-pulse {\n -webkit-animation-delay: -1ms;\n animation-delay: -1ms;\n -webkit-animation-duration: 1ms;\n animation-duration: 1ms;\n -webkit-animation-iteration-count: 1;\n animation-iteration-count: 1;\n transition-delay: 0s;\n transition-duration: 0s;\n }\n}\n@-webkit-keyframes fa-beat {\n 0%, 90% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 45% {\n -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@keyframes fa-beat {\n 0%, 90% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 45% {\n -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@-webkit-keyframes fa-bounce {\n 0% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n}\n@keyframes fa-bounce {\n 0% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n}\n@-webkit-keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@-webkit-keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@-webkit-keyframes fa-flip {\n 50% {\n -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@keyframes fa-flip {\n 50% {\n -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@-webkit-keyframes fa-shake {\n 0% {\n -webkit-transform: rotate(-15deg);\n transform: rotate(-15deg);\n }\n 4% {\n -webkit-transform: rotate(15deg);\n transform: rotate(15deg);\n }\n 8%, 24% {\n -webkit-transform: rotate(-18deg);\n transform: rotate(-18deg);\n }\n 12%, 28% {\n -webkit-transform: rotate(18deg);\n transform: rotate(18deg);\n }\n 16% {\n -webkit-transform: rotate(-22deg);\n transform: rotate(-22deg);\n }\n 20% {\n -webkit-transform: rotate(22deg);\n transform: rotate(22deg);\n }\n 32% {\n -webkit-transform: rotate(-12deg);\n transform: rotate(-12deg);\n }\n 36% {\n -webkit-transform: rotate(12deg);\n transform: rotate(12deg);\n }\n 40%, 100% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n}\n@keyframes fa-shake {\n 0% {\n -webkit-transform: rotate(-15deg);\n transform: rotate(-15deg);\n }\n 4% {\n -webkit-transform: rotate(15deg);\n transform: rotate(15deg);\n }\n 8%, 24% {\n -webkit-transform: rotate(-18deg);\n transform: rotate(-18deg);\n }\n 12%, 28% {\n -webkit-transform: rotate(18deg);\n transform: rotate(18deg);\n }\n 16% {\n -webkit-transform: rotate(-22deg);\n transform: rotate(-22deg);\n }\n 20% {\n -webkit-transform: rotate(22deg);\n transform: rotate(22deg);\n }\n 32% {\n -webkit-transform: rotate(-12deg);\n transform: rotate(-12deg);\n }\n 36% {\n -webkit-transform: rotate(12deg);\n transform: rotate(12deg);\n }\n 40%, 100% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n}\n@-webkit-keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n@keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n -webkit-transform: rotate(90deg);\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n -webkit-transform: rotate(180deg);\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n -webkit-transform: rotate(270deg);\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n -webkit-transform: scale(-1, 1);\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n -webkit-transform: scale(1, -1);\n transform: scale(1, -1);\n}\n\n.fa-flip-both,\n.fa-flip-horizontal.fa-flip-vertical {\n -webkit-transform: scale(-1, -1);\n transform: scale(-1, -1);\n}\n\n.fa-rotate-by {\n -webkit-transform: rotate(var(--fa-rotate-angle, none));\n transform: rotate(var(--fa-rotate-angle, none));\n}\n\n.fa-stack {\n display: inline-block;\n vertical-align: middle;\n height: 2em;\n position: relative;\n width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n z-index: var(--fa-stack-z-index, auto);\n}\n\n.svg-inline--fa.fa-stack-1x {\n height: 1em;\n width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n height: 2em;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: var(--fa-inverse, #fff);\n}\n\n.sr-only,\n.fa-sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.sr-only-focusable:not(:focus),\n.fa-sr-only-focusable:not(:focus) {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black;\n}\n\n.fad.fa-inverse,\n.fa-duotone.fa-inverse {\n color: var(--fa-inverse, #fff);\n}';if(r!==e||n!==t){var i=new RegExp("\\.".concat(e,"\\-"),"g"),o=new RegExp("\\--".concat(e,"\\-"),"g"),l=new RegExp("\\.".concat(t),"g");a=a.replace(i,".".concat(r,"-")).replace(o,"--".concat(r,"-")).replace(l,".".concat(n))}return a}var se=!1;function ce(){Q.autoAddCss&&!se&&(!function(e){if(e&&k){var t=x.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var r=x.head.childNodes,n=null,a=r.length-1;a>-1;a--){var i=r[a],o=(i.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(o)>-1&&(n=i)}x.head.insertBefore(t,n)}}(le()),se=!0)}var ue={mixout:function(){return{dom:{css:le,insertCss:ce}}},hooks:function(){return{beforeDOMElementCreation:function(){ce()},beforeI2svg:function(){ce()}}}},fe=b||{};fe.___FONT_AWESOME___||(fe.___FONT_AWESOME___={}),fe.___FONT_AWESOME___.styles||(fe.___FONT_AWESOME___.styles={}),fe.___FONT_AWESOME___.hooks||(fe.___FONT_AWESOME___.hooks={}),fe.___FONT_AWESOME___.shims||(fe.___FONT_AWESOME___.shims=[]);var de=fe.___FONT_AWESOME___,pe=[],he=!1;function ge(e){k&&(he?setTimeout(e,0):pe.push(e))}function ve(e){var t=e.tag,r=e.attributes,n=void 0===r?{}:r,a=e.children,i=void 0===a?[]:a;return"string"===typeof e?ae(e):"<".concat(t," ").concat(function(e){return Object.keys(e||{}).reduce((function(t,r){return t+"".concat(r,'="').concat(ae(e[r]),'" ')}),"").trim()}(n),">").concat(i.map(ve).join(""),"</").concat(t,">")}function ye(e,t,r){if(e&&e[t]&&e[t][r])return{prefix:t,iconName:r,icon:e[t][r]}}k&&((he=(x.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(x.readyState))||x.addEventListener("DOMContentLoaded",(function e(){x.removeEventListener("DOMContentLoaded",e),he=1,pe.map((function(e){return e()}))})));var me=function(e,t,r,n){var a,i,o,l=Object.keys(e),s=l.length,c=void 0!==n?function(e,t){return function(r,n,a,i){return e.call(t,r,n,a,i)}}(t,n):t;for(void 0===r?(a=1,o=e[l[0]]):(a=0,o=r);a<s;a++)o=c(o,e[i=l[a]],i,e);return o};function be(e){var t=function(e){for(var t=[],r=0,n=e.length;r<n;){var a=e.charCodeAt(r++);if(a>=55296&&a<=56319&&r<n){var i=e.charCodeAt(r++);56320==(64512&i)?t.push(((1023&a)<<10)+(1023&i)+65536):(t.push(a),r--)}else t.push(a)}return t}(e);return 1===t.length?t[0].toString(16):null}function xe(e){return Object.keys(e).reduce((function(t,r){var n=e[r];return!!n.icon?t[n.iconName]=n.icon:t[r]=n,t}),{})}function we(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=r.skipHooks,i=void 0!==n&&n,o=xe(t);"function"!==typeof de.hooks.addPack||i?de.styles[e]=a(a({},de.styles[e]||{}),o):de.hooks.addPack(e,xe(t)),"fas"===e&&we("fa",t)}var _e=de.styles,ke=de.shims,Te=Object.values(D),Ae=null,Se={},Me={},Oe={},Ce={},Ee={},Le=Object.keys(j);function Pe(e,t){var r,n=t.split("-"),a=n[0],i=n.slice(1).join("-");return a!==e||""===i||(r=i,~X.indexOf(r))?null:i}var je,ze=function(){var e=function(e){return me(_e,(function(t,r,n){return t[n]=me(r,e,{}),t}),{})};Se=e((function(e,t,r){(t[3]&&(e[t[3]]=r),t[2])&&t[2].filter((function(e){return"number"===typeof e})).forEach((function(t){e[t.toString(16)]=r}));return e})),Me=e((function(e,t,r){(e[r]=r,t[2])&&t[2].filter((function(e){return"string"===typeof e})).forEach((function(t){e[t]=r}));return e})),Ee=e((function(e,t,r){var n=t[2];return e[r]=r,n.forEach((function(t){e[t]=r})),e}));var t="far"in _e||Q.autoFetchSvg,r=me(ke,(function(e,r){var n=r[0],a=r[1],i=r[2];return"far"!==a||t||(a="fas"),"string"===typeof n&&(e.names[n]={prefix:a,iconName:i}),"number"===typeof n&&(e.unicodes[n.toString(16)]={prefix:a,iconName:i}),e}),{names:{},unicodes:{}});Oe=r.names,Ce=r.unicodes,Ae=Fe(Q.styleDefault)};function De(e,t){return(Se[e]||{})[t]}function Ie(e,t){return(Ee[e]||{})[t]}function Ne(e){return Oe[e]||{prefix:null,iconName:null}}function Re(){return Ae}je=function(e){Ae=Fe(e.styleDefault)},K.push(je),ze();function Fe(e){var t=z[e]||z[j[e]],r=e in de.styles?e:null;return t||r||null}function Be(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.skipLookups,n=void 0!==r&&r,a=null,i=e.reduce((function(e,t){var r=Pe(Q.familyPrefix,t);if(_e[t]?(t=Te.includes(t)?I[t]:t,a=t,e.prefix=t):Le.indexOf(t)>-1?(a=t,e.prefix=Fe(t)):r?e.iconName=r:t!==Q.replacementClass&&e.rest.push(t),!n&&e.prefix&&e.iconName){var i="fa"===a?Ne(e.iconName):{},o=Ie(e.prefix,e.iconName);i.prefix&&(a=null),e.iconName=i.iconName||o||e.iconName,e.prefix=i.prefix||e.prefix,"far"!==e.prefix||_e.far||!_e.fas||Q.autoFetchSvg||(e.prefix="fas")}return e}),{prefix:null,iconName:null,rest:[]});return"fa"!==i.prefix&&"fa"!==a||(i.prefix=Re()||"fas"),i}var Ue=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.definitions={}}var t,r,n;return t=e,r=[{key:"add",value:function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r.reduce(this._pullDefinitions,{});Object.keys(i).forEach((function(t){e.definitions[t]=a(a({},e.definitions[t]||{}),i[t]),we(t,i[t]);var r=D[t];r&&we(r,i[t]),ze()}))}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(e,t){var r=t.prefix&&t.iconName&&t.icon?{0:t}:t;return Object.keys(r).map((function(t){var n=r[t],a=n.prefix,i=n.iconName,o=n.icon,l=o[2];e[a]||(e[a]={}),l.length>0&&l.forEach((function(t){"string"===typeof t&&(e[a][t]=o)})),e[a][i]=o})),e}}],r&&o(t.prototype,r),n&&o(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),He=[],Ve={},qe={},We=Object.keys(qe);function Ye(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),a=2;a<r;a++)n[a-2]=arguments[a];var i=Ve[e]||[];return i.forEach((function(e){t=e.apply(null,[t].concat(n))})),t}function Ge(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var a=Ve[e]||[];a.forEach((function(e){e.apply(null,r)}))}function Xe(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);return qe[e]?qe[e].apply(null,t):void 0}function Ze(e){"fa"===e.prefix&&(e.prefix="fas");var t=e.iconName,r=e.prefix||Re();if(t)return t=Ie(r,t)||t,ye($e.definitions,r,t)||ye(de.styles,r,t)}var $e=new Ue,Qe={i2svg:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return k?(Ge("beforeI2svg",e),Xe("pseudoElements2svg",e),Xe("i2svg",e)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.autoReplaceSvgRoot;!1===Q.autoReplaceSvg&&(Q.autoReplaceSvg=!0),Q.observeMutations=!0,ge((function(){Je({autoReplaceSvgRoot:t}),Ge("watch",e)}))}},Ke={noAuto:function(){Q.autoReplaceSvg=!1,Q.observeMutations=!1,Ge("noAuto")},config:Q,dom:Qe,parse:{icon:function(e){if(null===e)return null;if("object"===i(e)&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:Ie(e.prefix,e.iconName)||e.iconName};if(Array.isArray(e)&&2===e.length){var t=0===e[1].indexOf("fa-")?e[1].slice(3):e[1],r=Fe(e[0]);return{prefix:r,iconName:Ie(r,t)||t}}if("string"===typeof e&&(e.indexOf("".concat(Q.familyPrefix,"-"))>-1||e.match(N))){var n=Be(e.split(" "),{skipLookups:!0});return{prefix:n.prefix||Re(),iconName:Ie(n.prefix,n.iconName)||n.iconName}}if("string"===typeof e){var a=Re();return{prefix:a,iconName:Ie(a,e)||e}}}},library:$e,findIconDefinition:Ze,toHtml:ve},Je=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.autoReplaceSvgRoot,r=void 0===t?x:t;(Object.keys(de.styles).length>0||Q.autoFetchSvg)&&k&&Q.autoReplaceSvg&&Ke.dom.i2svg({node:r})};function et(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map((function(e){return ve(e)}))}}),Object.defineProperty(e,"node",{get:function(){if(k){var t=x.createElement("div");return t.innerHTML=e.html,t.children}}}),e}function tt(e){var t=e.icons,r=t.main,n=t.mask,i=e.prefix,o=e.iconName,l=e.transform,s=e.symbol,c=e.title,u=e.maskId,f=e.titleId,d=e.extra,p=e.watchable,h=void 0!==p&&p,g=n.found?n:r,v=g.width,y=g.height,m="fak"===i,b=[Q.replacementClass,o?"".concat(Q.familyPrefix,"-").concat(o):""].filter((function(e){return-1===d.classes.indexOf(e)})).filter((function(e){return""!==e||!!e})).concat(d.classes).join(" "),x={children:[],attributes:a(a({},d.attributes),{},{"data-prefix":i,"data-icon":o,class:b,role:d.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(v," ").concat(y)})},w=m&&!~d.classes.indexOf("fa-fw")?{width:"".concat(v/y*16*.0625,"em")}:{};h&&(x.attributes[S]=""),c&&(x.children.push({tag:"title",attributes:{id:x.attributes["aria-labelledby"]||"title-".concat(f||te())},children:[c]}),delete x.attributes.title);var _=a(a({},x),{},{prefix:i,iconName:o,main:r,mask:n,maskId:u,transform:l,symbol:s,styles:a(a({},w),d.styles)}),k=n.found&&r.found?Xe("generateAbstractMask",_)||{children:[],attributes:{}}:Xe("generateAbstractIcon",_)||{children:[],attributes:{}},T=k.children,A=k.attributes;return _.children=T,_.attributes=A,s?function(e){var t=e.prefix,r=e.iconName,n=e.children,i=e.attributes,o=e.symbol,l=!0===o?"".concat(t,"-").concat(Q.familyPrefix,"-").concat(r):o;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:a(a({},i),{},{id:l}),children:n}]}]}(_):function(e){var t=e.children,r=e.main,n=e.mask,i=e.attributes,o=e.styles,l=e.transform;if(oe(l)&&r.found&&!n.found){var s={x:r.width/r.height/2,y:.5};i.style=ie(a(a({},o),{},{"transform-origin":"".concat(s.x+l.x/16,"em ").concat(s.y+l.y/16,"em")}))}return[{tag:"svg",attributes:i,children:t}]}(_)}function rt(e){var t=e.content,r=e.width,n=e.height,i=e.transform,o=e.title,l=e.extra,s=e.watchable,c=void 0!==s&&s,u=a(a(a({},l.attributes),o?{title:o}:{}),{},{class:l.classes.join(" ")});c&&(u[S]="");var f=a({},l.styles);oe(i)&&(f.transform=function(e){var t=e.transform,r=e.width,n=void 0===r?16:r,a=e.height,i=void 0===a?16:a,o=e.startCentered,l=void 0!==o&&o,s="";return s+=l&&T?"translate(".concat(t.x/J-n/2,"em, ").concat(t.y/J-i/2,"em) "):l?"translate(calc(-50% + ".concat(t.x/J,"em), calc(-50% + ").concat(t.y/J,"em)) "):"translate(".concat(t.x/J,"em, ").concat(t.y/J,"em) "),s+="scale(".concat(t.size/J*(t.flipX?-1:1),", ").concat(t.size/J*(t.flipY?-1:1),") "),s+"rotate(".concat(t.rotate,"deg) ")}({transform:i,startCentered:!0,width:r,height:n}),f["-webkit-transform"]=f.transform);var d=ie(f);d.length>0&&(u.style=d);var p=[];return p.push({tag:"span",attributes:u,children:[t]}),o&&p.push({tag:"span",attributes:{class:"sr-only"},children:[o]}),p}function nt(e){var t=e.content,r=e.title,n=e.extra,i=a(a(a({},n.attributes),r?{title:r}:{}),{},{class:n.classes.join(" ")}),o=ie(n.styles);o.length>0&&(i.style=o);var l=[];return l.push({tag:"span",attributes:i,children:[t]}),r&&l.push({tag:"span",attributes:{class:"sr-only"},children:[r]}),l}var at=de.styles;function it(e){var t=e[0],r=e[1],n=s(e.slice(4),1)[0];return{found:!0,width:t,height:r,icon:Array.isArray(n)?{tag:"g",attributes:{class:"".concat(Q.familyPrefix,"-").concat(q)},children:[{tag:"path",attributes:{class:"".concat(Q.familyPrefix,"-").concat(G),fill:"currentColor",d:n[0]}},{tag:"path",attributes:{class:"".concat(Q.familyPrefix,"-").concat(Y),fill:"currentColor",d:n[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:n}}}}var ot={found:!1,width:512,height:512};function lt(e,t){var r=t;return"fa"===t&&null!==Q.styleDefault&&(t=Re()),new Promise((function(n,i){Xe("missingIconAbstract");if("fa"===r){var o=Ne(e)||{};e=o.iconName||e,t=o.prefix||t}if(e&&t&&at[t]&&at[t][e])return n(it(at[t][e]));!function(e,t){P||Q.showMissingIcons||!e||console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}(e,t),n(a(a({},ot),{},{icon:Q.showMissingIcons&&e&&Xe("missingIconAbstract")||{}}))}))}var st=function(){},ct=Q.measurePerformance&&_&&_.mark&&_.measure?_:{mark:st,measure:st},ut='FA "6.1.1"',ft=function(e){ct.mark("".concat(ut," ").concat(e," ends")),ct.measure("".concat(ut," ").concat(e),"".concat(ut," ").concat(e," begins"),"".concat(ut," ").concat(e," ends"))},dt=function(e){return ct.mark("".concat(ut," ").concat(e," begins")),function(){return ft(e)}},pt=function(){};function ht(e){return"string"===typeof(e.getAttribute?e.getAttribute(S):null)}function gt(e){return x.createElementNS("http://www.w3.org/2000/svg",e)}function vt(e){return x.createElement(e)}function yt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.ceFn,n=void 0===r?"svg"===e.tag?gt:vt:r;if("string"===typeof e)return x.createTextNode(e);var a=n(e.tag);Object.keys(e.attributes||[]).forEach((function(t){a.setAttribute(t,e.attributes[t])}));var i=e.children||[];return i.forEach((function(e){a.appendChild(yt(e,{ceFn:n}))})),a}var mt={replace:function(e){var t=e[0];if(t.parentNode)if(e[1].forEach((function(e){t.parentNode.insertBefore(yt(e),t)})),null===t.getAttribute(S)&&Q.keepOriginalSource){var r=x.createComment(function(e){var t=" ".concat(e.outerHTML," ");return"".concat(t,"Font Awesome fontawesome.com ")}(t));t.parentNode.replaceChild(r,t)}else t.remove()},nest:function(e){var t=e[0],r=e[1];if(~ne(t).indexOf(Q.replacementClass))return mt.replace(e);var n=new RegExp("".concat(Q.familyPrefix,"-.*"));if(delete r[0].attributes.id,r[0].attributes.class){var a=r[0].attributes.class.split(" ").reduce((function(e,t){return t===Q.replacementClass||t.match(n)?e.toSvg.push(t):e.toNode.push(t),e}),{toNode:[],toSvg:[]});r[0].attributes.class=a.toSvg.join(" "),0===a.toNode.length?t.removeAttribute("class"):t.setAttribute("class",a.toNode.join(" "))}var i=r.map((function(e){return ve(e)})).join("\n");t.setAttribute(S,""),t.innerHTML=i}};function bt(e){e()}function xt(e,t){var r="function"===typeof t?t:pt;if(0===e.length)r();else{var n=bt;"async"===Q.mutateApproach&&(n=b.requestAnimationFrame||bt),n((function(){var t=!0===Q.autoReplaceSvg?mt.replace:mt[Q.autoReplaceSvg]||mt.replace,n=dt("mutate");e.map(t),n(),r()}))}}var wt=!1;function _t(){wt=!0}function kt(){wt=!1}var Tt=null;function At(e){if(w&&Q.observeMutations){var t=e.treeCallback,r=void 0===t?pt:t,n=e.nodeCallback,a=void 0===n?pt:n,i=e.pseudoElementsCallback,o=void 0===i?pt:i,l=e.observeMutationsRoot,s=void 0===l?x:l;Tt=new w((function(e){if(!wt){var t=Re();re(e).forEach((function(e){if("childList"===e.type&&e.addedNodes.length>0&&!ht(e.addedNodes[0])&&(Q.searchPseudoElements&&o(e.target),r(e.target)),"attributes"===e.type&&e.target.parentNode&&Q.searchPseudoElements&&o(e.target.parentNode),"attributes"===e.type&&ht(e.target)&&~V.indexOf(e.attributeName))if("class"===e.attributeName&&function(e){var t=e.getAttribute?e.getAttribute(O):null,r=e.getAttribute?e.getAttribute(C):null;return t&&r}(e.target)){var n=Be(ne(e.target)),i=n.prefix,l=n.iconName;e.target.setAttribute(O,i||t),l&&e.target.setAttribute(C,l)}else(s=e.target)&&s.classList&&s.classList.contains&&s.classList.contains(Q.replacementClass)&&a(e.target);var s}))}})),k&&Tt.observe(s,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function St(e){var t=e.getAttribute("style"),r=[];return t&&(r=t.split(";").reduce((function(e,t){var r=t.split(":"),n=r[0],a=r.slice(1);return n&&a.length>0&&(e[n]=a.join(":").trim()),e}),{})),r}function Mt(e){var t,r,n=e.getAttribute("data-prefix"),a=e.getAttribute("data-icon"),i=void 0!==e.innerText?e.innerText.trim():"",o=Be(ne(e));return o.prefix||(o.prefix=Re()),n&&a&&(o.prefix=n,o.iconName=a),o.iconName&&o.prefix||o.prefix&&i.length>0&&(o.iconName=(t=o.prefix,r=e.innerText,(Me[t]||{})[r]||De(o.prefix,be(e.innerText)))),o}function Ot(e){var t=re(e.attributes).reduce((function(e,t){return"class"!==e.name&&"style"!==e.name&&(e[t.name]=t.value),e}),{}),r=e.getAttribute("title"),n=e.getAttribute("data-fa-title-id");return Q.autoA11y&&(r?t["aria-labelledby"]="".concat(Q.replacementClass,"-title-").concat(n||te()):(t["aria-hidden"]="true",t.focusable="false")),t}function Ct(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0},r=Mt(e),n=r.iconName,i=r.prefix,o=r.rest,l=Ot(e),s=Ye("parseNodeAttributes",{},e),c=t.styleParser?St(e):[];return a({iconName:n,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:i,transform:ee,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:o,styles:c,attributes:l}},s)}var Et=de.styles;function Lt(e){var t="nest"===Q.autoReplaceSvg?Ct(e,{styleParser:!1}):Ct(e);return~t.extra.classes.indexOf(R)?Xe("generateLayersText",e,t):Xe("generateSvgReplacementMutation",e,t)}function Pt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!k)return Promise.resolve();var r=x.documentElement.classList,n=function(e){return r.add("".concat(E,"-").concat(e))},a=function(e){return r.remove("".concat(E,"-").concat(e))},i=Q.autoFetchSvg?Object.keys(j):Object.keys(Et),o=[".".concat(R,":not([").concat(S,"])")].concat(i.map((function(e){return".".concat(e,":not([").concat(S,"])")}))).join(", ");if(0===o.length)return Promise.resolve();var l=[];try{l=re(e.querySelectorAll(o))}catch(xr){}if(!(l.length>0))return Promise.resolve();n("pending"),a("complete");var s=dt("onTree"),c=l.reduce((function(e,t){try{var r=Lt(t);r&&e.push(r)}catch(xr){P||"MissingIcon"===xr.name&&console.error(xr)}return e}),[]);return new Promise((function(e,r){Promise.all(c).then((function(r){xt(r,(function(){n("active"),n("complete"),a("pending"),"function"===typeof t&&t(),s(),e()}))})).catch((function(e){s(),r(e)}))}))}function jt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;Lt(e).then((function(e){e&&xt([e],t)}))}var zt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.transform,n=void 0===r?ee:r,i=t.symbol,o=void 0!==i&&i,l=t.mask,s=void 0===l?null:l,c=t.maskId,u=void 0===c?null:c,f=t.title,d=void 0===f?null:f,p=t.titleId,h=void 0===p?null:p,g=t.classes,v=void 0===g?[]:g,y=t.attributes,m=void 0===y?{}:y,b=t.styles,x=void 0===b?{}:b;if(e){var w=e.prefix,_=e.iconName,k=e.icon;return et(a({type:"icon"},e),(function(){return Ge("beforeDOMElementCreation",{iconDefinition:e,params:t}),Q.autoA11y&&(d?m["aria-labelledby"]="".concat(Q.replacementClass,"-title-").concat(h||te()):(m["aria-hidden"]="true",m.focusable="false")),tt({icons:{main:it(k),mask:s?it(s.icon):{found:!1,width:null,height:null,icon:{}}},prefix:w,iconName:_,transform:a(a({},ee),n),symbol:o,title:d,maskId:u,titleId:h,extra:{attributes:m,styles:x,classes:v}})}))}},Dt={mixout:function(){return{icon:(e=zt,function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(t||{}).icon?t:Ze(t||{}),i=r.mask;return i&&(i=(i||{}).icon?i:Ze(i||{})),e(n,a(a({},r),{},{mask:i}))})};var e},hooks:function(){return{mutationObserverCallbacks:function(e){return e.treeCallback=Pt,e.nodeCallback=jt,e}}},provides:function(e){e.i2svg=function(e){var t=e.node,r=void 0===t?x:t,n=e.callback;return Pt(r,void 0===n?function(){}:n)},e.generateSvgReplacementMutation=function(e,t){var r=t.iconName,n=t.title,a=t.titleId,i=t.prefix,o=t.transform,l=t.symbol,c=t.mask,u=t.maskId,f=t.extra;return new Promise((function(t,d){Promise.all([lt(r,i),c.iconName?lt(c.iconName,c.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then((function(c){var d=s(c,2),p=d[0],h=d[1];t([e,tt({icons:{main:p,mask:h},prefix:i,iconName:r,transform:o,symbol:l,maskId:u,title:n,titleId:a,extra:f,watchable:!0})])})).catch(d)}))},e.generateAbstractIcon=function(e){var t,r=e.children,n=e.attributes,a=e.main,i=e.transform,o=ie(e.styles);return o.length>0&&(n.style=o),oe(i)&&(t=Xe("generateAbstractTransformGrouping",{main:a,transform:i,containerWidth:a.width,iconWidth:a.width})),r.push(t||a.icon),{children:r,attributes:n}}}},It={mixout:function(){return{layer:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.classes,n=void 0===r?[]:r;return et({type:"layer"},(function(){Ge("beforeDOMElementCreation",{assembler:e,params:t});var r=[];return e((function(e){Array.isArray(e)?e.map((function(e){r=r.concat(e.abstract)})):r=r.concat(e.abstract)})),[{tag:"span",attributes:{class:["".concat(Q.familyPrefix,"-layers")].concat(c(n)).join(" ")},children:r}]}))}}}},Nt={mixout:function(){return{counter:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.title,n=void 0===r?null:r,a=t.classes,i=void 0===a?[]:a,o=t.attributes,l=void 0===o?{}:o,s=t.styles,u=void 0===s?{}:s;return et({type:"counter",content:e},(function(){return Ge("beforeDOMElementCreation",{content:e,params:t}),nt({content:e.toString(),title:n,extra:{attributes:l,styles:u,classes:["".concat(Q.familyPrefix,"-layers-counter")].concat(c(i))}})}))}}}},Rt={mixout:function(){return{text:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.transform,n=void 0===r?ee:r,i=t.title,o=void 0===i?null:i,l=t.classes,s=void 0===l?[]:l,u=t.attributes,f=void 0===u?{}:u,d=t.styles,p=void 0===d?{}:d;return et({type:"text",content:e},(function(){return Ge("beforeDOMElementCreation",{content:e,params:t}),rt({content:e,transform:a(a({},ee),n),title:o,extra:{attributes:f,styles:p,classes:["".concat(Q.familyPrefix,"-layers-text")].concat(c(s))}})}))}}},provides:function(e){e.generateLayersText=function(e,t){var r=t.title,n=t.transform,a=t.extra,i=null,o=null;if(T){var l=parseInt(getComputedStyle(e).fontSize,10),s=e.getBoundingClientRect();i=s.width/l,o=s.height/l}return Q.autoA11y&&!r&&(a.attributes["aria-hidden"]="true"),Promise.resolve([e,rt({content:e.innerHTML,width:i,height:o,transform:n,title:r,extra:a,watchable:!0})])}}},Ft=new RegExp('"',"ug"),Bt=[1105920,1112319];function Ut(e,t){var r="".concat("data-fa-pseudo-element-pending").concat(t.replace(":","-"));return new Promise((function(n,i){if(null!==e.getAttribute(r))return n();var o=re(e.children).filter((function(e){return e.getAttribute(M)===t}))[0],l=b.getComputedStyle(e,t),s=l.getPropertyValue("font-family").match(F),c=l.getPropertyValue("font-weight"),u=l.getPropertyValue("content");if(o&&!s)return e.removeChild(o),n();if(s&&"none"!==u&&""!==u){var f=l.getPropertyValue("content"),d=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(s[2])?z[s[2].toLowerCase()]:B[c],p=function(e){var t=e.replace(Ft,""),r=function(e,t){var r,n=e.length,a=e.charCodeAt(t);return a>=55296&&a<=56319&&n>t+1&&(r=e.charCodeAt(t+1))>=56320&&r<=57343?1024*(a-55296)+r-56320+65536:a}(t,0),n=r>=Bt[0]&&r<=Bt[1],a=2===t.length&&t[0]===t[1];return{value:be(a?t[0]:t),isSecondary:n||a}}(f),h=p.value,g=p.isSecondary,v=s[0].startsWith("FontAwesome"),y=De(d,h),m=y;if(v){var w=function(e){var t=Ce[e],r=De("fas",e);return t||(r?{prefix:"fas",iconName:r}:null)||{prefix:null,iconName:null}}(h);w.iconName&&w.prefix&&(y=w.iconName,d=w.prefix)}if(!y||g||o&&o.getAttribute(O)===d&&o.getAttribute(C)===m)n();else{e.setAttribute(r,m),o&&e.removeChild(o);var _={iconName:null,title:null,titleId:null,prefix:null,transform:ee,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}},k=_.extra;k.attributes[M]=t,lt(y,d).then((function(i){var o=tt(a(a({},_),{},{icons:{main:i,mask:{prefix:null,iconName:null,rest:[]}},prefix:d,iconName:m,extra:k,watchable:!0})),l=x.createElement("svg");"::before"===t?e.insertBefore(l,e.firstChild):e.appendChild(l),l.outerHTML=o.map((function(e){return ve(e)})).join("\n"),e.removeAttribute(r),n()})).catch(i)}}else n()}))}function Ht(e){return Promise.all([Ut(e,"::before"),Ut(e,"::after")])}function Vt(e){return e.parentNode!==document.head&&!~L.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(M)&&(!e.parentNode||"svg"!==e.parentNode.tagName)}function qt(e){if(k)return new Promise((function(t,r){var n=re(e.querySelectorAll("*")).filter(Vt).map(Ht),a=dt("searchPseudoElements");_t(),Promise.all(n).then((function(){a(),kt(),t()})).catch((function(){a(),kt(),r()}))}))}var Wt=!1,Yt=function(e){return e.toLowerCase().split(" ").reduce((function(e,t){var r=t.toLowerCase().split("-"),n=r[0],a=r.slice(1).join("-");if(n&&"h"===a)return e.flipX=!0,e;if(n&&"v"===a)return e.flipY=!0,e;if(a=parseFloat(a),isNaN(a))return e;switch(n){case"grow":e.size=e.size+a;break;case"shrink":e.size=e.size-a;break;case"left":e.x=e.x-a;break;case"right":e.x=e.x+a;break;case"up":e.y=e.y-a;break;case"down":e.y=e.y+a;break;case"rotate":e.rotate=e.rotate+a}return e}),{size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0})},Gt={mixout:function(){return{parse:{transform:function(e){return Yt(e)}}}},hooks:function(){return{parseNodeAttributes:function(e,t){var r=t.getAttribute("data-fa-transform");return r&&(e.transform=Yt(r)),e}}},provides:function(e){e.generateAbstractTransformGrouping=function(e){var t=e.main,r=e.transform,n=e.containerWidth,i=e.iconWidth,o={transform:"translate(".concat(n/2," 256)")},l="translate(".concat(32*r.x,", ").concat(32*r.y,") "),s="scale(".concat(r.size/16*(r.flipX?-1:1),", ").concat(r.size/16*(r.flipY?-1:1),") "),c="rotate(".concat(r.rotate," 0 0)"),u={outer:o,inner:{transform:"".concat(l," ").concat(s," ").concat(c)},path:{transform:"translate(".concat(i/2*-1," -256)")}};return{tag:"g",attributes:a({},u.outer),children:[{tag:"g",attributes:a({},u.inner),children:[{tag:t.icon.tag,children:t.icon.children,attributes:a(a({},t.icon.attributes),u.path)}]}]}}}},Xt={x:0,y:0,width:"100%",height:"100%"};function Zt(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}var $t={hooks:function(){return{parseNodeAttributes:function(e,t){var r=t.getAttribute("data-fa-mask"),n=r?Be(r.split(" ").map((function(e){return e.trim()}))):{prefix:null,iconName:null,rest:[]};return n.prefix||(n.prefix=Re()),e.mask=n,e.maskId=t.getAttribute("data-fa-mask-id"),e}}},provides:function(e){e.generateAbstractMask=function(e){var t,r=e.children,n=e.attributes,i=e.main,o=e.mask,l=e.maskId,s=e.transform,c=i.width,u=i.icon,f=o.width,d=o.icon,p=function(e){var t=e.transform,r=e.containerWidth,n=e.iconWidth,a={transform:"translate(".concat(r/2," 256)")},i="translate(".concat(32*t.x,", ").concat(32*t.y,") "),o="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),l="rotate(".concat(t.rotate," 0 0)");return{outer:a,inner:{transform:"".concat(i," ").concat(o," ").concat(l)},path:{transform:"translate(".concat(n/2*-1," -256)")}}}({transform:s,containerWidth:f,iconWidth:c}),h={tag:"rect",attributes:a(a({},Xt),{},{fill:"white"})},g=u.children?{children:u.children.map(Zt)}:{},v={tag:"g",attributes:a({},p.inner),children:[Zt(a({tag:u.tag,attributes:a(a({},u.attributes),p.path)},g))]},y={tag:"g",attributes:a({},p.outer),children:[v]},m="mask-".concat(l||te()),b="clip-".concat(l||te()),x={tag:"mask",attributes:a(a({},Xt),{},{id:m,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[h,y]},w={tag:"defs",children:[{tag:"clipPath",attributes:{id:b},children:(t=d,"g"===t.tag?t.children:[t])},x]};return r.push(w,{tag:"rect",attributes:a({fill:"currentColor","clip-path":"url(#".concat(b,")"),mask:"url(#".concat(m,")")},Xt)}),{children:r,attributes:n}}}},Qt={provides:function(e){var t=!1;b.matchMedia&&(t=b.matchMedia("(prefers-reduced-motion: reduce)").matches),e.missingIconAbstract=function(){var e=[],r={fill:"currentColor"},n={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};e.push({tag:"path",attributes:a(a({},r),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var i=a(a({},n),{},{attributeName:"opacity"}),o={tag:"circle",attributes:a(a({},r),{},{cx:"256",cy:"364",r:"28"}),children:[]};return t||o.children.push({tag:"animate",attributes:a(a({},n),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:a(a({},i),{},{values:"1;0;1;1;0;1;"})}),e.push(o),e.push({tag:"path",attributes:a(a({},r),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:t?[]:[{tag:"animate",attributes:a(a({},i),{},{values:"1;0;0;0;0;1;"})}]}),t||e.push({tag:"path",attributes:a(a({},r),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:a(a({},i),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:e}}}};!function(e,t){var r=t.mixoutsTo;He=e,Ve={},Object.keys(qe).forEach((function(e){-1===We.indexOf(e)&&delete qe[e]})),He.forEach((function(e){var t=e.mixout?e.mixout():{};if(Object.keys(t).forEach((function(e){"function"===typeof t[e]&&(r[e]=t[e]),"object"===i(t[e])&&Object.keys(t[e]).forEach((function(n){r[e]||(r[e]={}),r[e][n]=t[e][n]}))})),e.hooks){var n=e.hooks();Object.keys(n).forEach((function(e){Ve[e]||(Ve[e]=[]),Ve[e].push(n[e])}))}e.provides&&e.provides(qe)}))}([ue,Dt,It,Nt,Rt,{hooks:function(){return{mutationObserverCallbacks:function(e){return e.pseudoElementsCallback=qt,e}}},provides:function(e){e.pseudoElements2svg=function(e){var t=e.node,r=void 0===t?x:t;Q.searchPseudoElements&&qt(r)}}},{mixout:function(){return{dom:{unwatch:function(){_t(),Wt=!0}}}},hooks:function(){return{bootstrap:function(){At(Ye("mutationObserverCallbacks",{}))},noAuto:function(){Tt&&Tt.disconnect()},watch:function(e){var t=e.observeMutationsRoot;Wt?kt():At(Ye("mutationObserverCallbacks",{observeMutationsRoot:t}))}}}},Gt,$t,Qt,{hooks:function(){return{parseNodeAttributes:function(e,t){var r=t.getAttribute("data-fa-symbol"),n=null!==r&&(""===r||r);return e.symbol=n,e}}}}],{mixoutsTo:Ke});var Kt=Ke.parse,Jt=Ke.icon,er=r(1),tr=r.n(er),rr=r(6),nr=r.n(rr);function ar(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ir(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ar(Object(r),!0).forEach((function(t){lr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ar(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function or(e){return or="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},or(e)}function lr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function sr(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function cr(e){return function(e){if(Array.isArray(e))return ur(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"===typeof e)return ur(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ur(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ur(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function fr(e){return t=e,(t-=0)===t?e:(e=e.replace(/[\-_\s]+(.)?/g,(function(e,t){return t?t.toUpperCase():""}))).substr(0,1).toLowerCase()+e.substr(1);var t}var dr=["style"];function pr(e){return e.split(";").map((function(e){return e.trim()})).filter((function(e){return e})).reduce((function(e,t){var r,n=t.indexOf(":"),a=fr(t.slice(0,n)),i=t.slice(n+1).trim();return a.startsWith("webkit")?e[(r=a,r.charAt(0).toUpperCase()+r.slice(1))]=i:e[a]=i,e}),{})}var hr=!1;try{hr=!0}catch(xr){}function gr(e){return e&&"object"===or(e)&&e.prefix&&e.iconName&&e.icon?e:Kt.icon?Kt.icon(e):null===e?null:e&&"object"===or(e)&&e.prefix&&e.iconName?e:Array.isArray(e)&&2===e.length?{prefix:e[0],iconName:e[1]}:"string"===typeof e?{prefix:"fas",iconName:e}:void 0}function vr(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?lr({},e,t):{}}var yr=["forwardedRef"];function mr(e){var t=e.forwardedRef,r=sr(e,yr),n=r.icon,a=r.mask,i=r.symbol,o=r.className,l=r.title,s=r.titleId,c=r.maskId,u=gr(n),f=vr("classes",[].concat(cr(function(e){var t,r=e.beat,n=e.fade,a=e.beatFade,i=e.bounce,o=e.shake,l=e.flash,s=e.spin,c=e.spinPulse,u=e.spinReverse,f=e.pulse,d=e.fixedWidth,p=e.inverse,h=e.border,g=e.listItem,v=e.flip,y=e.size,m=e.rotation,b=e.pull,x=(lr(t={"fa-beat":r,"fa-fade":n,"fa-beat-fade":a,"fa-bounce":i,"fa-shake":o,"fa-flash":l,"fa-spin":s,"fa-spin-reverse":u,"fa-spin-pulse":c,"fa-pulse":f,"fa-fw":d,"fa-inverse":p,"fa-border":h,"fa-li":g,"fa-flip-horizontal":"horizontal"===v||"both"===v,"fa-flip-vertical":"vertical"===v||"both"===v},"fa-".concat(y),"undefined"!==typeof y&&null!==y),lr(t,"fa-rotate-".concat(m),"undefined"!==typeof m&&null!==m&&0!==m),lr(t,"fa-pull-".concat(b),"undefined"!==typeof b&&null!==b),lr(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys(x).map((function(e){return x[e]?e:null})).filter((function(e){return e}))}(r)),cr(o.split(" ")))),d=vr("transform","string"===typeof r.transform?Kt.transform(r.transform):r.transform),p=vr("mask",gr(a)),h=Jt(u,ir(ir(ir(ir({},f),d),p),{},{symbol:i,title:l,titleId:s,maskId:c}));if(!h)return function(){var e;!hr&&console&&"function"===typeof console.error&&(e=console).error.apply(e,arguments)}("Could not find icon",u),null;var g=h.abstract,v={ref:t};return Object.keys(r).forEach((function(e){mr.defaultProps.hasOwnProperty(e)||(v[e]=r[e])})),br(g[0],v)}mr.displayName="FontAwesomeIcon",mr.propTypes={beat:tr.a.bool,border:tr.a.bool,bounce:tr.a.bool,className:tr.a.string,fade:tr.a.bool,flash:tr.a.bool,mask:tr.a.oneOfType([tr.a.object,tr.a.array,tr.a.string]),maskId:tr.a.string,fixedWidth:tr.a.bool,inverse:tr.a.bool,flip:tr.a.oneOf(["horizontal","vertical","both"]),icon:tr.a.oneOfType([tr.a.object,tr.a.array,tr.a.string]),listItem:tr.a.bool,pull:tr.a.oneOf(["right","left"]),pulse:tr.a.bool,rotation:tr.a.oneOf([0,90,180,270]),shake:tr.a.bool,size:tr.a.oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:tr.a.bool,spinPulse:tr.a.bool,spinReverse:tr.a.bool,symbol:tr.a.oneOfType([tr.a.bool,tr.a.string]),title:tr.a.string,titleId:tr.a.string,transform:tr.a.oneOfType([tr.a.string,tr.a.object]),swapOpacity:tr.a.bool},mr.defaultProps={border:!1,className:"",mask:null,maskId:null,fixedWidth:!1,inverse:!1,flip:null,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:null,transform:null,swapOpacity:!1};var br=function e(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"===typeof r)return r;var a=(r.children||[]).map((function(r){return e(t,r)})),i=Object.keys(r.attributes||{}).reduce((function(e,t){var n=r.attributes[t];switch(t){case"class":e.attrs.className=n,delete r.attributes.class;break;case"style":e.attrs.style=pr(n);break;default:0===t.indexOf("aria-")||0===t.indexOf("data-")?e.attrs[t.toLowerCase()]=n:e.attrs[fr(t)]=n}return e}),{attrs:{}}),o=n.style,l=void 0===o?{}:o,s=sr(n,dr);return i.attrs.style=ir(ir({},i.attrs.style),l),t.apply(void 0,[r.tag,ir(ir({},i.attrs),s)].concat(cr(a)))}.bind(null,nr.a.createElement)},function(e,t,r){"use strict";var n=r(391),a=Math.max;e.exports=function(e){return a(0,n(e))}},function(e,t,r){},function(e,t,r){"use strict";e.exports=r(413)()?r(114).Symbol:r(416)},function(e,t,r){"use strict";var n,a=SyntaxError,i=Function,o=TypeError,l=function(e){try{return i('"use strict"; return ('+e+").constructor;")()}catch(t){}},s=Object.getOwnPropertyDescriptor;if(s)try{s({},"")}catch(O){s=null}var c=function(){throw new o},u=s?function(){try{return c}catch(e){try{return s(arguments,"callee").get}catch(t){return c}}}():c,f=r(150)(),d=Object.getPrototypeOf||function(e){return e.__proto__},p={},h="undefined"===typeof Uint8Array?n:d(Uint8Array),g={"%AggregateError%":"undefined"===typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"===typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":f?d([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":p,"%AsyncGenerator%":p,"%AsyncGeneratorFunction%":p,"%AsyncIteratorPrototype%":p,"%Atomics%":"undefined"===typeof Atomics?n:Atomics,"%BigInt%":"undefined"===typeof BigInt?n:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"===typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"===typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"===typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"===typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":p,"%Int8Array%":"undefined"===typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"===typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"===typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":f?d(d([][Symbol.iterator]())):n,"%JSON%":"object"===typeof JSON?JSON:n,"%Map%":"undefined"===typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!==typeof Map&&f?d((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"===typeof Promise?n:Promise,"%Proxy%":"undefined"===typeof Proxy?n:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"===typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"===typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!==typeof Set&&f?d((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"===typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":f?d(""[Symbol.iterator]()):n,"%Symbol%":f?Symbol:n,"%SyntaxError%":a,"%ThrowTypeError%":u,"%TypedArray%":h,"%TypeError%":o,"%Uint8Array%":"undefined"===typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"===typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"===typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"===typeof Uint32Array?n:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"===typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"===typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"===typeof WeakSet?n:WeakSet},v=function e(t){var r;if("%AsyncFunction%"===t)r=l("async function () {}");else if("%GeneratorFunction%"===t)r=l("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=l("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var a=e("%AsyncGenerator%");a&&(r=d(a.prototype))}return g[t]=r,r},y={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},m=r(151),b=r(448),x=m.call(Function.call,Array.prototype.concat),w=m.call(Function.apply,Array.prototype.splice),_=m.call(Function.call,String.prototype.replace),k=m.call(Function.call,String.prototype.slice),T=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,A=/\\(\\)?/g,S=function(e){var t=k(e,0,1),r=k(e,-1);if("%"===t&&"%"!==r)throw new a("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new a("invalid intrinsic syntax, expected opening `%`");var n=[];return _(e,T,(function(e,t,r,a){n[n.length]=r?_(a,A,"$1"):t||e})),n},M=function(e,t){var r,n=e;if(b(y,n)&&(n="%"+(r=y[n])[0]+"%"),b(g,n)){var i=g[n];if(i===p&&(i=v(n)),"undefined"===typeof i&&!t)throw new o("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:i}}throw new a("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!==typeof e||0===e.length)throw new o("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!==typeof t)throw new o('"allowMissing" argument must be a boolean');var r=S(e),n=r.length>0?r[0]:"",i=M("%"+n+"%",t),l=i.name,c=i.value,u=!1,f=i.alias;f&&(n=f[0],w(r,x([0,1],f)));for(var d=1,p=!0;d<r.length;d+=1){var h=r[d],v=k(h,0,1),y=k(h,-1);if(('"'===v||"'"===v||"`"===v||'"'===y||"'"===y||"`"===y)&&v!==y)throw new a("property names with quotes must have matching quotes");if("constructor"!==h&&p||(u=!0),b(g,l="%"+(n+="."+h)+"%"))c=g[l];else if(null!=c){if(!(h in c)){if(!t)throw new o("base intrinsic for "+e+" exists, but the property is not available.");return}if(s&&d+1>=r.length){var m=s(c,h);c=(p=!!m)&&"get"in m&&!("originalValue"in m.get)?m.get:c[h]}else p=b(c,h),c=c[h];p&&!u&&(g[l]=c)}}return c}},function(e,t,r){"use strict";var n=r(149),a="function"===typeof Symbol&&"symbol"===typeof Symbol("foo"),i=Object.prototype.toString,o=Array.prototype.concat,l=Object.defineProperty,s=l&&function(){var e={};try{for(var t in l(e,"x",{enumerable:!1,value:e}),e)return!1;return e.x===e}catch(r){return!1}}(),c=function(e,t,r,n){var a;(!(t in e)||"function"===typeof(a=n)&&"[object Function]"===i.call(a)&&n())&&(s?l(e,t,{configurable:!0,enumerable:!1,value:r,writable:!0}):e[t]=r)},u=function(e,t){var r=arguments.length>2?arguments[2]:{},i=n(t);a&&(i=o.call(i,Object.getOwnPropertySymbols(t)));for(var l=0;l<i.length;l+=1)c(e,i[l],t[i[l]],r[i[l]])};u.supportsDescriptors=!!s,e.exports=u},function(e,t,r){"use strict";var n=Array.isArray,a=ArrayBuffer,i=DataView;function o(e){return a.isView(e)&&!(e instanceof i)}function l(e){return n(e)||o(e)}function s(e,t,r){if(l(e)){if(l(e[0])){for(var n=r,a=0;a<e.length;a++)n=t(n,e[a].length);return n}return e.length}return 0}t.isTypedArray=o,t.isArrayOrTypedArray=l,t.isArray1D=function(e){return!l(e[0])},t.ensureArray=function(e,t){return n(e)||(e=[]),e.length=t,e},t.concat=function(){var e,t,r,a,i,o,l,s,c=[],u=!0,f=0;for(r=0;r<arguments.length;r++)(o=(a=arguments[r]).length)&&(t?c.push(a):(t=a,i=o),n(a)?e=!1:(u=!1,f?e!==a.constructor&&(e=!1):e=a.constructor),f+=o);if(!f)return[];if(!c.length)return t;if(u)return t.concat.apply(t,c);if(e){for((l=new e(f)).set(t),r=0;r<c.length;r++)a=c[r],l.set(a,i),i+=a.length;return l}for(l=new Array(f),s=0;s<t.length;s++)l[s]=t[s];for(r=0;r<c.length;r++){for(a=c[r],s=0;s<a.length;s++)l[i+s]=a[s];i+=s}return l},t.maxRowLength=function(e){return s(e,Math.max,0)},t.minRowLength=function(e){return s(e,Math.min,1/0)}},function(e,t,r){"use strict";t.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style",description:["Sets the dash style of lines. Set to a dash type string","(*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*)","or a dash length list in px (eg *5px,10px,2px,2px*)."].join(" ")},t.pattern={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style",description:["Sets the shape of the pattern fill.","By default, no pattern is used for filling the area."].join(" ")},fillmode:{valType:"enumerated",values:["replace","overlay"],dflt:"replace",editType:"style",description:["Determines whether `marker.color` should be used","as a default to `bgcolor` or a `fgcolor`."].join(" ")},bgcolor:{valType:"color",arrayOk:!0,editType:"style",description:["When there is no colorscale sets the color of background pattern fill.","Defaults to a `marker.color` background when `fillmode` is *overlay*.","Otherwise, defaults to a transparent background."].join(" ")},fgcolor:{valType:"color",arrayOk:!0,editType:"style",description:["When there is no colorscale sets the color of foreground pattern fill.","Defaults to a `marker.color` background when `fillmode` is *replace*.","Otherwise, defaults to dark grey or white","to increase contrast with the `bgcolor`."].join(" ")},fgopacity:{valType:"number",editType:"style",min:0,max:1,description:["Sets the opacity of the foreground pattern fill.","Defaults to a 0.5 when `fillmode` is *overlay*.","Otherwise, defaults to 1."].join(" ")},size:{valType:"number",min:0,dflt:8,arrayOk:!0,editType:"style",description:["Sets the size of unit squares of the pattern fill in pixels,","which corresponds to the interval of repetition of the pattern."].join(" ")},solidity:{valType:"number",min:0,max:1,dflt:.3,arrayOk:!0,editType:"style",description:["Sets the solidity of the pattern fill.","Solidity is roughly the fraction of the area filled by the pattern.","Solidity of 0 shows only the background color without pattern","and solidty of 1 shows only the foreground color without pattern."].join(" ")},editType:"style",description:["Sets the pattern within the marker."].join(" ")}},function(e,t,r){"use strict";var n=r(166),a=r(92).counter,i=r(163),o=r(71).scales,l=i(o);function s(e){return"`"+e+"`"}e.exports=function(e,t){e=e||"";var r,i,c=(t=t||{}).cLetter||"c",u="onlyIfNumerical"in t?t.onlyIfNumerical:Boolean(e),f="noScale"in t?t.noScale:"marker.line"===e,d="showScaleDflt"in t?t.showScaleDflt:"z"===c,p="string"===typeof t.colorscaleDflt?o[t.colorscaleDflt]:null,h=t.editTypeOverride||"",g=e?e+".":"";"colorAttr"in t?(r=t.colorAttr,i=t.colorAttr):i="in "+s(g+(r={z:"z",c:"color"}[c]));var v=u?" Has an effect only if "+i+"is set to a numerical array.":"",y=c+"auto",m=c+"min",b=c+"max",x=c+"mid",w=s(g+y),_=s(g+m),k=s(g+b),T=_+" and "+k,A={};A[m]=A[b]=void 0;var S={};S[y]=!1;var M={};return"color"===r&&(M.color={valType:"color",arrayOk:!0,editType:h||"style",description:["Sets the",e,"color."," It accepts either a specific color"," or an array of numbers that are mapped to the colorscale"," relative to the max and min values of the array or relative to"," "+T+" if set."].join("")},t.anim&&(M.color.anim=!0)),M[y]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:A,description:["Determines whether or not the color domain is computed"," with respect to the input data (here "+i+") or the bounds set in"," ",T," ",v," Defaults to `false` when ",T," are set by the user."].join("")},M[m]={valType:"number",dflt:null,editType:h||"plot",impliedEdits:S,description:["Sets the lower bound of the color domain.",v," Value should have the same units as ",i," and if set, ",k," must be set as well."].join("")},M[b]={valType:"number",dflt:null,editType:h||"plot",impliedEdits:S,description:["Sets the upper bound of the color domain.",v," Value should have the same units as ",i," and if set, ",_," must be set as well."].join("")},M[x]={valType:"number",dflt:null,editType:"calc",impliedEdits:A,description:["Sets the mid-point of the color domain by scaling ",_," and/or ",k," to be equidistant to this point.",v," Value should have the same units as ",i,". ","Has no effect when ",w," is `false`."].join("")},M.colorscale={valType:"colorscale",editType:"calc",dflt:p,impliedEdits:{autocolorscale:!1},description:["Sets the colorscale.",v," The colorscale must be an array containing"," arrays mapping a normalized value to an"," rgb, rgba, hex, hsl, hsv, or named color string."," At minimum, a mapping for the lowest (0) and highest (1)"," values are required. For example,"," `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`."," To control the bounds of the colorscale in color space,"," use",T,"."," Alternatively, `colorscale` may be a palette name string"," of the following list: "+l+"."].join("")},M.autocolorscale={valType:"boolean",dflt:!1!==t.autoColorDflt,editType:"calc",impliedEdits:{colorscale:void 0},description:["Determines whether the colorscale is a default palette (`autocolorscale: true`)"," or the palette determined by ",s(g+"colorscale"),".",v," In case `colorscale` is unspecified or `autocolorscale` is true, the default "," palette will be chosen according to whether numbers in the `color` array are"," all positive, all negative or mixed."].join("")},M.reversescale={valType:"boolean",dflt:!1,editType:"plot",description:["Reverses the color mapping if true.",v," If true, ",_," will correspond to the last color"," in the array and ",k," will correspond to the first color."].join("")},f||(M.showscale={valType:"boolean",dflt:d,editType:"calc",description:["Determines whether or not a colorbar is displayed for this trace.",v].join("")},M.colorbar=n),t.noColorAxis||(M.coloraxis={valType:"subplotid",regex:a("coloraxis"),dflt:null,editType:"calc",description:["Sets a reference to a shared color axis.","References to these shared color axes are *coloraxis*, *coloraxis2*, *coloraxis3*, etc.","Settings for these shared color axes are set in the layout, under","`layout.coloraxis`, `layout.coloraxis2`, etc.","Note that multiple color scales can be linked to the same color axis."].join(" ")}),M}},function(e,t,r){"use strict";var n=r(7),a=r(8),i=r(10),o=r(0),l=r(5),s=r(51).resizeText,c=r(102),u=c.textfont,f=c.insidetextfont,d=c.outsidetextfont,p=r(195);function h(e,t,r){i.pointStyle(e.selectAll("path"),t,r),g(e,t,r)}function g(e,t,r){e.selectAll("text").each((function(e){var a=n.select(this),l=o.ensureUniformFontSize(r,v(a,e,t,r));i.font(a,l)}))}function v(e,t,r,n){var a=n._fullLayout.font,i=r.textfont;if(e.classed("bartext-inside")){var o=w(t,r);i=m(r,t.i,a,o)}else e.classed("bartext-outside")&&(i=b(r,t.i,a));return i}function y(e,t,r){return x(u,e.textfont,t,r)}function m(e,t,r,n){var i=y(e,t,r);return(void 0===e._input.textfont||void 0===e._input.textfont.color||Array.isArray(e.textfont.color)&&void 0===e.textfont.color[t])&&(i={color:a.contrast(n),family:i.family,size:i.size}),x(f,e.insidetextfont,t,i)}function b(e,t,r){var n=y(e,t,r);return x(d,e.outsidetextfont,t,n)}function x(e,t,r,n){t=t||{};var a=p.getValue(t.family,r),i=p.getValue(t.size,r),o=p.getValue(t.color,r);return{family:p.coerceString(e.family,a,n.family),size:p.coerceNumber(e.size,i,n.size),color:p.coerceColor(e.color,o,n.color)}}function w(e,t){return"waterfall"===t.type?t[e.dir].marker.color:e.mcc||e.mc||t.marker.color}e.exports={style:function(e){var t=n.select(e).selectAll("g.barlayer").selectAll("g.trace");s(e,t,"bar");var r=t.size(),a=e._fullLayout;t.style("opacity",(function(e){return e[0].trace.opacity})).each((function(e){("stack"===a.barmode&&r>1||0===a.bargap&&0===a.bargroupgap&&!e[0].trace.marker.line.width)&&n.select(this).attr("shape-rendering","crispEdges")})),t.selectAll("g.points").each((function(t){h(n.select(this),t[0].trace,e)})),l.getComponentMethod("errorbars","style")(t)},styleTextPoints:g,styleOnSelect:function(e,t,r){var a=t[0].trace;a.selectedpoints?function(e,t,r){i.selectedPointStyle(e.selectAll("path"),t),function(e,t,r){e.each((function(e){var a,l=n.select(this);if(e.selected){a=o.ensureUniformFontSize(r,v(l,e,t,r));var s=t.selected.textfont&&t.selected.textfont.color;s&&(a.color=s),i.font(l,a)}else i.selectedTextStyle(l,t)}))}(e.selectAll("text"),t,r)}(r,a,e):(h(r,a,e),l.getComponentMethod("errorbars","style")(r))},getInsideTextFont:m,getOutsideTextFont:b,getBarColor:w,resizeText:s}},function(e,t,r){"use strict";var n=r(0),a=r(8),i=r(56),o=r(77);function l(e){return e.data.data.pid}t.findEntryWithLevel=function(e,r){var n;return r&&e.eachAfter((function(e){if(t.getPtId(e)===r)return n=e.copy()})),n||e},t.findEntryWithChild=function(e,r){var n;return e.eachAfter((function(e){for(var a=e.children||[],i=0;i<a.length;i++){var o=a[i];if(t.getPtId(o)===r)return n=e.copy()}})),n||e},t.isEntry=function(e){return!e.parent},t.isLeaf=function(e){return!e.children},t.getPtId=function(e){return e.data.data.id},t.getPtLabel=function(e){return e.data.data.label},t.getValue=function(e){return e.value},t.isHierarchyRoot=function(e){return""===l(e)},t.setSliceCursor=function(e,r,n){var a=n.isTransitioning;if(!a){var o=e.datum();a=n.hideOnRoot&&t.isHierarchyRoot(o)||n.hideOnLeaves&&t.isLeaf(o)}i(e,a?null:"pointer")},t.getInsideTextFontKey=function(e,t,r,a,i){var o=(i||{}).onPathbar?"pathbar.textfont":"insidetextfont",l=r.data.data.i;return n.castOption(t,l,o+"."+e)||n.castOption(t,l,"textfont."+e)||a.size},t.getOutsideTextFontKey=function(e,t,r,a){var i=r.data.data.i;return n.castOption(t,i,"outsidetextfont."+e)||n.castOption(t,i,"textfont."+e)||a.size},t.isOutsideText=function(e,r){return!e._hasColorscale&&t.isHierarchyRoot(r)},t.determineTextFont=function(e,r,i,o){return t.isOutsideText(e,r)?function(e,r,n){return{color:t.getOutsideTextFontKey("color",e,r,n),family:t.getOutsideTextFontKey("family",e,r,n),size:t.getOutsideTextFontKey("size",e,r,n)}}(e,r,i):function(e,r,i,o){var l=(o||{}).onPathbar,s=r.data.data,c=s.i,u=n.castOption(e,c,(l?"pathbar.textfont":"insidetextfont")+".color");return!u&&e._input.textfont&&(u=n.castOption(e._input,c,"textfont.color")),{color:u||a.contrast(s.color),family:t.getInsideTextFontKey("family",e,r,i,o),size:t.getInsideTextFontKey("size",e,r,i,o)}}(e,r,i,o)},t.hasTransition=function(e){return!!(e&&e.duration>0)},t.getMaxDepth=function(e){return e.maxdepth>=0?e.maxdepth:1/0},t.isHeader=function(e,r){return!(t.isLeaf(e)||e.depth===r._maxDepth-1)},t.getParent=function(e,r){return t.findEntryWithLevel(e,l(r))},t.listPath=function(e,r){var n=e.parent;if(!n)return[];var a=r?[n.data[r]]:[n];return t.listPath(n,r).concat(a)},t.getPath=function(e){return t.listPath(e,"label").join("/")+"/"},t.formatValue=o.formatPieValue,t.formatPercent=function(e,t){var r=n.formatPercent(e,0);return"0%"===r&&(r=o.formatPiePercent(e,t)),r}},function(e,t,r){"use strict";e.exports=function(e){return undefined!==e&&null!==e}},function(e,t,r){"use strict";var n=r(34),a={Greys:[[0,"rgb(0,0,0)"],[1,"rgb(255,255,255)"]],YlGnBu:[[0,"rgb(8,29,88)"],[.125,"rgb(37,52,148)"],[.25,"rgb(34,94,168)"],[.375,"rgb(29,145,192)"],[.5,"rgb(65,182,196)"],[.625,"rgb(127,205,187)"],[.75,"rgb(199,233,180)"],[.875,"rgb(237,248,217)"],[1,"rgb(255,255,217)"]],Greens:[[0,"rgb(0,68,27)"],[.125,"rgb(0,109,44)"],[.25,"rgb(35,139,69)"],[.375,"rgb(65,171,93)"],[.5,"rgb(116,196,118)"],[.625,"rgb(161,217,155)"],[.75,"rgb(199,233,192)"],[.875,"rgb(229,245,224)"],[1,"rgb(247,252,245)"]],YlOrRd:[[0,"rgb(128,0,38)"],[.125,"rgb(189,0,38)"],[.25,"rgb(227,26,28)"],[.375,"rgb(252,78,42)"],[.5,"rgb(253,141,60)"],[.625,"rgb(254,178,76)"],[.75,"rgb(254,217,118)"],[.875,"rgb(255,237,160)"],[1,"rgb(255,255,204)"]],Bluered:[[0,"rgb(0,0,255)"],[1,"rgb(255,0,0)"]],RdBu:[[0,"rgb(5,10,172)"],[.35,"rgb(106,137,247)"],[.5,"rgb(190,190,190)"],[.6,"rgb(220,170,132)"],[.7,"rgb(230,145,90)"],[1,"rgb(178,10,28)"]],Reds:[[0,"rgb(220,220,220)"],[.2,"rgb(245,195,157)"],[.4,"rgb(245,160,105)"],[1,"rgb(178,10,28)"]],Blues:[[0,"rgb(5,10,172)"],[.35,"rgb(40,60,190)"],[.5,"rgb(70,100,245)"],[.6,"rgb(90,120,245)"],[.7,"rgb(106,137,247)"],[1,"rgb(220,220,220)"]],Picnic:[[0,"rgb(0,0,255)"],[.1,"rgb(51,153,255)"],[.2,"rgb(102,204,255)"],[.3,"rgb(153,204,255)"],[.4,"rgb(204,204,255)"],[.5,"rgb(255,255,255)"],[.6,"rgb(255,204,255)"],[.7,"rgb(255,153,255)"],[.8,"rgb(255,102,204)"],[.9,"rgb(255,102,102)"],[1,"rgb(255,0,0)"]],Rainbow:[[0,"rgb(150,0,90)"],[.125,"rgb(0,0,200)"],[.25,"rgb(0,25,255)"],[.375,"rgb(0,152,255)"],[.5,"rgb(44,255,150)"],[.625,"rgb(151,255,0)"],[.75,"rgb(255,234,0)"],[.875,"rgb(255,111,0)"],[1,"rgb(255,0,0)"]],Portland:[[0,"rgb(12,51,131)"],[.25,"rgb(10,136,186)"],[.5,"rgb(242,211,56)"],[.75,"rgb(242,143,56)"],[1,"rgb(217,30,30)"]],Jet:[[0,"rgb(0,0,131)"],[.125,"rgb(0,60,170)"],[.375,"rgb(5,255,255)"],[.625,"rgb(255,255,0)"],[.875,"rgb(250,0,0)"],[1,"rgb(128,0,0)"]],Hot:[[0,"rgb(0,0,0)"],[.3,"rgb(230,0,0)"],[.6,"rgb(255,210,0)"],[1,"rgb(255,255,255)"]],Blackbody:[[0,"rgb(0,0,0)"],[.2,"rgb(230,0,0)"],[.4,"rgb(230,210,0)"],[.7,"rgb(255,255,255)"],[1,"rgb(160,200,255)"]],Earth:[[0,"rgb(0,0,130)"],[.1,"rgb(0,180,180)"],[.2,"rgb(40,210,40)"],[.4,"rgb(230,230,50)"],[.6,"rgb(120,70,20)"],[1,"rgb(255,255,255)"]],Electric:[[0,"rgb(0,0,0)"],[.15,"rgb(30,0,100)"],[.4,"rgb(120,0,100)"],[.6,"rgb(160,90,0)"],[.8,"rgb(230,200,0)"],[1,"rgb(255,250,220)"]],Viridis:[[0,"#440154"],[.06274509803921569,"#48186a"],[.12549019607843137,"#472d7b"],[.18823529411764706,"#424086"],[.25098039215686274,"#3b528b"],[.3137254901960784,"#33638d"],[.3764705882352941,"#2c728e"],[.4392156862745098,"#26828e"],[.5019607843137255,"#21918c"],[.5647058823529412,"#1fa088"],[.6274509803921569,"#28ae80"],[.6901960784313725,"#3fbc73"],[.7529411764705882,"#5ec962"],[.8156862745098039,"#84d44b"],[.8784313725490196,"#addc30"],[.9411764705882353,"#d8e219"],[1,"#fde725"]],Cividis:[[0,"rgb(0,32,76)"],[.058824,"rgb(0,42,102)"],[.117647,"rgb(0,52,110)"],[.176471,"rgb(39,63,108)"],[.235294,"rgb(60,74,107)"],[.294118,"rgb(76,85,107)"],[.352941,"rgb(91,95,109)"],[.411765,"rgb(104,106,112)"],[.470588,"rgb(117,117,117)"],[.529412,"rgb(131,129,120)"],[.588235,"rgb(146,140,120)"],[.647059,"rgb(161,152,118)"],[.705882,"rgb(176,165,114)"],[.764706,"rgb(192,177,109)"],[.823529,"rgb(209,191,102)"],[.882353,"rgb(225,204,92)"],[.941176,"rgb(243,219,79)"],[1,"rgb(255,233,69)"]]},i=a.RdBu;function o(e){var t=0;if(!Array.isArray(e)||e.length<2)return!1;if(!e[0]||!e[e.length-1])return!1;if(0!==+e[0][0]||1!==+e[e.length-1][0])return!1;for(var r=0;r<e.length;r++){var a=e[r];if(2!==a.length||+a[0]<t||!n(a[1]).isValid())return!1;t=+a[0]}return!0}e.exports={scales:a,defaultScale:i,get:function(e,t){if(t||(t=i),!e)return t;function r(){try{e=a[e]||JSON.parse(e)}catch(r){e=t}}return"string"===typeof e&&(r(),"string"===typeof e&&r()),o(e)?e:t},isValid:function(e){return void 0!==a[e]||o(e)}}},function(e,t,r){"use strict";var n=r(73).dfltConfig,a=r(234),i=e.exports={};i.log=function(){var e;if(n.logging>1){var t=["LOG:"];for(e=0;e<arguments.length;e++)t.push(arguments[e]);console.trace.apply(console,t)}if(n.notifyOnLogging>1){var r=[];for(e=0;e<arguments.length;e++)r.push(arguments[e]);a(r.join("<br>"),"long")}},i.warn=function(){var e;if(n.logging>0){var t=["WARN:"];for(e=0;e<arguments.length;e++)t.push(arguments[e]);console.trace.apply(console,t)}if(n.notifyOnLogging>0){var r=[];for(e=0;e<arguments.length;e++)r.push(arguments[e]);a(r.join("<br>"),"stick")}},i.error=function(){var e;if(n.logging>0){var t=["ERROR:"];for(e=0;e<arguments.length;e++)t.push(arguments[e]);console.error.apply(console,t)}if(n.notifyOnLogging>0){var r=[];for(e=0;e<arguments.length;e++)r.push(arguments[e]);a(r.join("<br>"),"stick")}}},function(e,t,r){"use strict";var n={staticPlot:{valType:"boolean",dflt:!1,description:["Determines whether the graphs are interactive or not.","If *false*, no interactivity, for export or image generation."].join(" ")},typesetMath:{valType:"boolean",dflt:!0,description:["Determines whether math should be typeset or not,","when MathJax (either v2 or v3) is present on the page."].join(" ")},plotlyServerURL:{valType:"string",dflt:"",description:["When set it determines base URL for","the 'Edit in Chart Studio' `showEditInChartStudio`/`showSendToCloud` mode bar button","and the showLink/sendData on-graph link.","To enable sending your data to Chart Studio Cloud, you need to","set both `plotlyServerURL` to 'https://chart-studio.plotly.com' and","also set `showSendToCloud` to true."].join(" ")},editable:{valType:"boolean",dflt:!1,description:["Determines whether the graph is editable or not.","Sets all pieces of `edits`","unless a separate `edits` config item overrides individual parts."].join(" ")},edits:{annotationPosition:{valType:"boolean",dflt:!1,description:["Determines if the main anchor of the annotation is editable.","The main anchor corresponds to the","text (if no arrow) or the arrow (which drags the whole thing leaving","the arrow length & direction unchanged)."].join(" ")},annotationTail:{valType:"boolean",dflt:!1,description:["Has only an effect for annotations with arrows.","Enables changing the length and direction of the arrow."].join(" ")},annotationText:{valType:"boolean",dflt:!1,description:"Enables editing annotation text."},axisTitleText:{valType:"boolean",dflt:!1,description:"Enables editing axis title text."},colorbarPosition:{valType:"boolean",dflt:!1,description:"Enables moving colorbars."},colorbarTitleText:{valType:"boolean",dflt:!1,description:"Enables editing colorbar title text."},legendPosition:{valType:"boolean",dflt:!1,description:"Enables moving the legend."},legendText:{valType:"boolean",dflt:!1,description:"Enables editing the trace name fields from the legend"},shapePosition:{valType:"boolean",dflt:!1,description:"Enables moving shapes."},titleText:{valType:"boolean",dflt:!1,description:"Enables editing the global layout title."}},autosizable:{valType:"boolean",dflt:!1,description:["Determines whether the graphs are plotted with respect to","layout.autosize:true and infer its container size."].join(" ")},responsive:{valType:"boolean",dflt:!1,description:["Determines whether to change the layout size when window is resized.","In v3, this option will be removed and will always be true."].join(" ")},fillFrame:{valType:"boolean",dflt:!1,description:["When `layout.autosize` is turned on, determines whether the graph","fills the container (the default) or the screen (if set to *true*)."].join(" ")},frameMargins:{valType:"number",dflt:0,min:0,max:.5,description:["When `layout.autosize` is turned on, set the frame margins","in fraction of the graph size."].join(" ")},scrollZoom:{valType:"flaglist",flags:["cartesian","gl3d","geo","mapbox"],extras:[!0,!1],dflt:"gl3d+geo+mapbox",description:["Determines whether mouse wheel or two-finger scroll zooms is enable.","Turned on by default for gl3d, geo and mapbox subplots","(as these subplot types do not have zoombox via pan),","but turned off by default for cartesian subplots.","Set `scrollZoom` to *false* to disable scrolling for all subplots."].join(" ")},doubleClick:{valType:"enumerated",values:[!1,"reset","autosize","reset+autosize"],dflt:"reset+autosize",description:["Sets the double click interaction mode.","Has an effect only in cartesian plots.","If *false*, double click is disable.","If *reset*, double click resets the axis ranges to their initial values.","If *autosize*, double click set the axis ranges to their autorange values.","If *reset+autosize*, the odd double clicks resets the axis ranges","to their initial values and even double clicks set the axis ranges","to their autorange values."].join(" ")},doubleClickDelay:{valType:"number",dflt:300,min:0,description:["Sets the delay for registering a double-click in ms.","This is the time interval (in ms) between first mousedown and","2nd mouseup to constitute a double-click.","This setting propagates to all on-subplot double clicks","(except for geo and mapbox) and on-legend double clicks."].join(" ")},showAxisDragHandles:{valType:"boolean",dflt:!0,description:["Set to *false* to omit cartesian axis pan/zoom drag handles."].join(" ")},showAxisRangeEntryBoxes:{valType:"boolean",dflt:!0,description:["Set to *false* to omit direct range entry at the pan/zoom drag points,","note that `showAxisDragHandles` must be enabled to have an effect."].join(" ")},showTips:{valType:"boolean",dflt:!0,description:["Determines whether or not tips are shown while interacting","with the resulting graphs."].join(" ")},showLink:{valType:"boolean",dflt:!1,description:["Determines whether a link to Chart Studio Cloud is displayed","at the bottom right corner of resulting graphs.","Use with `sendData` and `linkText`."].join(" ")},linkText:{valType:"string",dflt:"Edit chart",noBlank:!0,description:["Sets the text appearing in the `showLink` link."].join(" ")},sendData:{valType:"boolean",dflt:!0,description:["If *showLink* is true, does it contain data","just link to a Chart Studio Cloud file?"].join(" ")},showSources:{valType:"any",dflt:!1,description:["Adds a source-displaying function to show sources on","the resulting graphs."].join(" ")},displayModeBar:{valType:"enumerated",values:["hover",!0,!1],dflt:"hover",description:["Determines the mode bar display mode.","If *true*, the mode bar is always visible.","If *false*, the mode bar is always hidden.","If *hover*, the mode bar is visible while the mouse cursor","is on the graph container."].join(" ")},showSendToCloud:{valType:"boolean",dflt:!1,description:['Should we include a ModeBar button, labeled "Edit in Chart Studio",',"that sends this chart to chart-studio.plotly.com (formerly plot.ly) or another plotly server","as specified by `plotlyServerURL` for editing, export, etc? Prior to version 1.43.0","this button was included by default, now it is opt-in using this flag.","Note that this button can (depending on `plotlyServerURL` being set) send your data","to an external server. However that server does not persist your data",'until you arrive at the Chart Studio and explicitly click "Save".'].join(" ")},showEditInChartStudio:{valType:"boolean",dflt:!1,description:["Same as `showSendToCloud`, but use a pencil icon instead of a floppy-disk.","Note that if both `showSendToCloud` and `showEditInChartStudio` are turned,","only `showEditInChartStudio` will be honored."].join(" ")},modeBarButtonsToRemove:{valType:"any",dflt:[],description:["Remove mode bar buttons by name.","See ./components/modebar/buttons.js for the list of names."].join(" ")},modeBarButtonsToAdd:{valType:"any",dflt:[],description:["Add mode bar button using config objects","See ./components/modebar/buttons.js for list of arguments.","To enable predefined modebar buttons e.g. shape drawing, hover and spikelines,","simply provide their string name(s). This could include:","*v1hovermode*, *hoverclosest*, *hovercompare*, *togglehover*, *togglespikelines*,","*drawline*, *drawopenpath*, *drawclosedpath*, *drawcircle*, *drawrect* and *eraseshape*.","Please note that these predefined buttons will only be shown if they are compatible","with all trace types used in a graph."].join(" ")},modeBarButtons:{valType:"any",dflt:!1,description:["Define fully custom mode bar buttons as nested array,","where the outer arrays represents button groups, and","the inner arrays have buttons config objects or names of default buttons","See ./components/modebar/buttons.js for more info."].join(" ")},toImageButtonOptions:{valType:"any",dflt:{},description:["Statically override options for toImage modebar button","allowed keys are format, filename, width, height, scale","see ../components/modebar/buttons.js"].join(" ")},displaylogo:{valType:"boolean",dflt:!0,description:["Determines whether or not the plotly logo is displayed","on the end of the mode bar."].join(" ")},watermark:{valType:"boolean",dflt:!1,description:"watermark the images with the company's logo"},plotGlPixelRatio:{valType:"number",dflt:2,min:1,max:4,description:["Set the pixel ratio during WebGL image export.","This config option was formerly named `plot3dPixelRatio`","which is now deprecated."].join(" ")},setBackground:{valType:"any",dflt:"transparent",description:["Set function to add the background color (i.e. `layout.paper_color`)","to a different container.","This function take the graph div as first argument and the current background","color as second argument.","Alternatively, set to string *opaque* to ensure there is white behind it."].join(" ")},topojsonURL:{valType:"string",noBlank:!0,dflt:"https://cdn.plot.ly/",description:["Set the URL to topojson used in geo charts.","By default, the topojson files are fetched from cdn.plot.ly.","For example, set this option to:","<path-to-plotly.js>/dist/topojson/","to render geographical feature using the topojson files","that ship with the plotly.js module."].join(" ")},mapboxAccessToken:{valType:"string",dflt:null,description:["Mapbox access token (required to plot mapbox trace types)","If using an Mapbox Atlas server, set this option to ''","so that plotly.js won't attempt to authenticate to the public Mapbox server."].join(" ")},logging:{valType:"integer",min:0,max:2,dflt:1,description:["Turn all console logging on or off (errors will be thrown)","This should ONLY be set via Plotly.setPlotConfig","Available levels:","0: no logs","1: warnings and errors, but not informational messages","2: verbose logs"].join(" ")},notifyOnLogging:{valType:"integer",min:0,max:2,dflt:0,description:["Set on-graph logging (notifier) level","This should ONLY be set via Plotly.setPlotConfig","Available levels:","0: no on-graph logs","1: warnings and errors, but not informational messages","2: verbose logs"].join(" ")},queueLength:{valType:"integer",min:0,dflt:0,description:"Sets the length of the undo/redo queue."},globalTransforms:{valType:"any",dflt:[],description:["Set global transform to be applied to all traces with no","specification needed"].join(" ")},locale:{valType:"string",dflt:"en-US",description:["Which localization should we use?","Should be a string like 'en' or 'en-US'."].join(" ")},locales:{valType:"any",dflt:{},description:["Localization definitions","Locales can be provided either here (specific to one chart) or globally","by registering them as modules.","Should be an object of objects {locale: {dictionary: {...}, format: {...}}}","{"," da: {"," dictionary: {'Reset axes': 'Nulstil aksler', ...},"," format: {months: [...], shortMonths: [...]}"," },"," ...","}","All parts are optional. When looking for translation or format fields, we","look first for an exact match in a config locale, then in a registered","module. If those fail, we strip off any regionalization ('en-US' -> 'en')","and try each (config, registry) again. The final fallback for translation","is untranslated (which is US English) and for formats is the base English","(the only consequence being the last fallback date format %x is DD/MM/YYYY","instead of MM/DD/YYYY). Currently `grouping` and `currency` are ignored","for our automatic number formatting, but can be used in custom formats."].join(" ")}},a={};!function e(t,r){for(var n in t){var a=t[n];a.valType?r[n]=a.dflt:(r[n]||(r[n]={}),e(a,r[n]))}}(n,a),e.exports={configAttributes:n,dfltConfig:a}},function(e,t,r){"use strict";t.xmlns="http://www.w3.org/2000/xmlns/",t.svg="http://www.w3.org/2000/svg",t.xlink="http://www.w3.org/1999/xlink",t.svgAttrs={xmlns:t.svg,"xmlns:xlink":t.xlink}},function(e,t,r){"use strict";var n=r(71),a=r(39);e.exports={moduleType:"component",name:"colorscale",attributes:r(67),layoutAttributes:r(247),supplyLayoutDefaults:r(526),handleDefaults:r(97),crossTraceDefaults:r(527),calc:r(167),scales:n.scales,defaultScale:n.defaultScale,getScale:n.get,isValidScale:n.isValid,hasColorscale:a.hasColorscale,extractOpts:a.extractOpts,extractScale:a.extractScale,flipScale:a.flipScale,makeColorScaleFunc:a.makeColorScaleFunc,makeColorScaleFuncFromTrace:a.makeColorScaleFuncFromTrace}},function(e,t,r){"use strict";var n=r(246),a=n.FORMAT_LINK,i=n.DATE_FORMAT_LINK;function o(e,t){return["Sets the "+e+" formatting rule"+(t?"for `"+t+"` ":""),"using d3 formatting mini-languages","which are very similar to those in Python. For numbers, see: "+a+"."].join(" ")}function l(e,t){return o(e,t)+[" And for dates see: "+i+".","We add two items to d3's date formatter:","*%h* for half of the year as a decimal number as well as","*%{n}f* for fractional seconds","with n digits. For example, *2016-10-13 09:15:23.456* with tickformat","*%H~%M~%S.%2f* would display *09~15~23.46*"].join(" ")}e.exports={axisHoverFormat:function(e,t){return{valType:"string",dflt:"",editType:"none",description:(t?o:l)("hover text",e)+["By default the values are formatted using "+(t?"generic number format":"`"+e+"axis.hoverformat`")+"."].join(" ")}},descriptionOnlyNumbers:o,descriptionWithDates:l}},function(e,t,r){"use strict";var n=r(0);function a(e){return-1!==e.indexOf("e")?e.replace(/[.]?0+e/,"e"):-1!==e.indexOf(".")?e.replace(/[.]?0+$/,""):e}t.formatPiePercent=function(e,t){var r=a((100*e).toPrecision(3));return n.numSeparate(r,t)+"%"},t.formatPieValue=function(e,t){var r=a(e.toPrecision(10));return n.numSeparate(r,t)},t.getFirstFilled=function(e,t){if(Array.isArray(e))for(var r=0;r<t.length;r++){var n=e[t[r]];if(n||0===n||""===n)return n}},t.castOption=function(e,r){return Array.isArray(e)?t.getFirstFilled(e,r):e||void 0},t.getRotationAngle=function(e){return("auto"===e?0:e)*Math.PI/180}},function(e,t,r){"use strict";var n=r(5);t.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("gl2d")||e._has("mapbox"))?500:0},t.getRedrawFunc=function(e){return function(){n.getComponentMethod("colorbar","draw")(e)}},t.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)},t.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var a=window.URL||window.webkitURL;t.createObjectURL=function(e){return a.createObjectURL(e)},t.revokeObjectURL=function(e){return a.revokeObjectURL(e)},t.createBlob=function(e,t){if("svg"===t)return new window.Blob([e],{type:"image/svg+xml;charset=utf-8"});if("full-json"===t)return new window.Blob([e],{type:"application/json;charset=utf-8"});var r=function(e){for(var t=e.length,r=new ArrayBuffer(t),n=new Uint8Array(r),a=0;a<t;a++)n[a]=e.charCodeAt(a);return r}(window.atob(e));return new window.Blob([r],{type:"image/"+t})},t.octetStream=function(e){document.location.href="data:application/octet-stream"+e},t.IMAGE_URL_PREFIX=/^data:image\/\w+;base64,/,t.MSG_IE_BAD_FORMAT="Sorry IE does not support downloading from canvas. Try {format:'svg'} instead."},function(e,t,r){"use strict";var n=r(76).axisHoverFormat,a=r(35).texttemplateAttrs,i=r(35).hovertemplateAttrs,o=r(67),l=r(28),s=r(66).dash,c=r(66).pattern,u=r(10),f=r(125),d=r(22).extendFlat;function p(e){return{valType:"any",dflt:0,editType:"calc",description:["Only relevant when the axis `type` is *date*.","Sets the period positioning in milliseconds or *M<n>* on the "+e+" axis.","Special values in the form of *M<n>* could be used to declare","the number of months. In this case `n` must be a positive integer."].join(" ")}}function h(e){return{valType:"any",editType:"calc",description:["Only relevant when the axis `type` is *date*.","Sets the base for period positioning in milliseconds or date string on the "+e+" axis.","When `"+e+"period` is round number of weeks,","the `"+e+"period0` by default would be on a Sunday i.e. 2000-01-02,","otherwise it would be at 2000-01-01."].join(" ")}}function g(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc",description:["Only relevant when the axis `type` is *date*.","Sets the alignment of data points on the "+e+" axis."].join(" ")}}e.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0,description:"Sets the x coordinates."},x0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0,description:["Alternate to `x`.","Builds a linear space of x coordinates.","Use with `dx`","where `x0` is the starting coordinate and `dx` the step."].join(" ")},dx:{valType:"number",dflt:1,editType:"calc",anim:!0,description:["Sets the x coordinate step.","See `x0` for more info."].join(" ")},y:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0,description:"Sets the y coordinates."},y0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0,description:["Alternate to `y`.","Builds a linear space of y coordinates.","Use with `dy`","where `y0` is the starting coordinate and `dy` the step."].join(" ")},dy:{valType:"number",dflt:1,editType:"calc",anim:!0,description:["Sets the y coordinate step.","See `y0` for more info."].join(" ")},xperiod:p("x"),yperiod:p("y"),xperiod0:h("x0"),yperiod0:h("y0"),xperiodalignment:g("x"),yperiodalignment:g("y"),xhoverformat:n("x"),yhoverformat:n("y"),stackgroup:{valType:"string",dflt:"",editType:"calc",description:["Set several scatter traces (on the same subplot) to the same","stackgroup in order to add their y values (or their x values if","`orientation` is *h*). If blank or omitted this trace will not be","stacked. Stacking also turns `fill` on by default, using *tonexty*","(*tonextx*) if `orientation` is *h* (*v*) and sets the default","`mode` to *lines* irrespective of point count.","You can only stack on a numeric (linear or log) axis.","Traces in a `stackgroup` will only fill to (or be filled to) other","traces in the same group. With multiple `stackgroup`s or some","traces stacked and some not, if fill-linked traces are not already","consecutive, the later ones will be pushed down in the drawing order."].join(" ")},orientation:{valType:"enumerated",values:["v","h"],editType:"calc",description:["Only relevant when `stackgroup` is used, and only the first","`orientation` found in the `stackgroup` will be used - including","if `visible` is *legendonly* but not if it is `false`. Sets the","stacking direction. With *v* (*h*), the y (x) values of subsequent","traces are added. Also affects the default value of `fill`."].join(" ")},groupnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc",description:["Only relevant when `stackgroup` is used, and only the first","`groupnorm` found in the `stackgroup` will be used - including","if `visible` is *legendonly* but not if it is `false`.","Sets the normalization for the sum of this `stackgroup`.","With *fraction*, the value of each trace at each location is","divided by the sum of all trace values at that location.","*percent* is the same but multiplied by 100 to show percentages.","If there are multiple subplots, or multiple `stackgroup`s on one","subplot, each will be normalized within its own set."].join(" ")},stackgaps:{valType:"enumerated",values:["infer zero","interpolate"],dflt:"infer zero",editType:"calc",description:["Only relevant when `stackgroup` is used, and only the first","`stackgaps` found in the `stackgroup` will be used - including","if `visible` is *legendonly* but not if it is `false`.","Determines how we handle locations at which other traces in this","group have data but this one does not.","With *infer zero* we insert a zero at these locations.","With *interpolate* we linearly interpolate between existing","values, and extrapolate a constant beyond the existing values."].join(" ")},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc",description:["Sets text elements associated with each (x,y) pair.","If a single string, the same string appears over","all the data points.","If an array of string, the items are mapped in order to the","this trace's (x,y) coordinates.","If trace `hoverinfo` contains a *text* flag and *hovertext* is not set,","these elements will be seen in the hover labels."].join(" ")},texttemplate:a({},{}),hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style",description:["Sets hover text elements associated with each (x,y) pair.","If a single string, the same string appears over","all the data points.","If an array of string, the items are mapped in order to the","this trace's (x,y) coordinates.","To be seen, trace `hoverinfo` must contain a *text* flag."].join(" ")},mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"],editType:"calc",description:["Determines the drawing mode for this scatter trace.","If the provided `mode` includes *text* then the `text` elements","appear at the coordinates. Otherwise, the `text` elements","appear on hover.","If there are less than "+f.PTS_LINESONLY+" points","and the trace is not stacked","then the default is *lines+markers*. Otherwise, *lines*."].join(" ")},hoveron:{valType:"flaglist",flags:["points","fills"],editType:"style",description:["Do the hover effects highlight individual points (markers or","line points) or do they highlight filled regions?","If the fill is *toself* or *tonext* and there are no markers","or text, then the default is *fills*, otherwise it is *points*."].join(" ")},hovertemplate:i({},{keys:f.eventDataKeys}),line:{color:{valType:"color",editType:"style",anim:!0,description:"Sets the line color."},width:{valType:"number",min:0,dflt:2,editType:"style",anim:!0,description:"Sets the line width (in px)."},shape:{valType:"enumerated",values:["linear","spline","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot",description:["Determines the line shape.","With *spline* the lines are drawn using spline interpolation.","The other available values correspond to step-wise line shapes."].join(" ")},smoothing:{valType:"number",min:0,max:1.3,dflt:1,editType:"plot",description:["Has an effect only if `shape` is set to *spline*","Sets the amount of smoothing.","*0* corresponds to no smoothing (equivalent to a *linear* shape)."].join(" ")},dash:d({},s,{editType:"style"}),simplify:{valType:"boolean",dflt:!0,editType:"plot",description:["Simplifies lines by removing nearly-collinear points. When transitioning","lines, it may be desirable to disable this so that the number of points","along the resulting SVG path is unaffected."].join(" ")},editType:"plot"},connectgaps:{valType:"boolean",dflt:!1,editType:"calc",description:["Determines whether or not gaps","(i.e. {nan} or missing values)","in the provided data arrays are connected."].join(" ")},cliponaxis:{valType:"boolean",dflt:!0,editType:"plot",description:["Determines whether or not markers and text nodes","are clipped about the subplot axes.","To show markers and text nodes above axis lines and tick labels,","make sure to set `xaxis.layer` and `yaxis.layer` to *below traces*."].join(" ")},fill:{valType:"enumerated",values:["none","tozeroy","tozerox","tonexty","tonextx","toself","tonext"],editType:"calc",description:["Sets the area to fill with a solid color.","Defaults to *none* unless this trace is stacked, then it gets","*tonexty* (*tonextx*) if `orientation` is *v* (*h*)","Use with `fillcolor` if not *none*.","*tozerox* and *tozeroy* fill to x=0 and y=0 respectively.","*tonextx* and *tonexty* fill between the endpoints of this","trace and the endpoints of the trace before it, connecting those","endpoints with straight lines (to make a stacked area graph);","if there is no trace before it, they behave like *tozerox* and","*tozeroy*.","*toself* connects the endpoints of the trace (or each segment","of the trace if it has gaps) into a closed shape.","*tonext* fills the space between two traces if one completely","encloses the other (eg consecutive contour lines), and behaves like","*toself* if there is no trace before it. *tonext* should not be","used if one trace does not enclose the other.","Traces in a `stackgroup` will only fill to (or be filled to) other","traces in the same group. With multiple `stackgroup`s or some","traces stacked and some not, if fill-linked traces are not already","consecutive, the later ones will be pushed down in the drawing order."].join(" ")},fillcolor:{valType:"color",editType:"style",anim:!0,description:["Sets the fill color.","Defaults to a half-transparent variant of the line color,","marker color, or marker line color, whichever is available."].join(" ")},fillpattern:c,marker:d({symbol:{valType:"enumerated",values:u.symbolList,dflt:"circle",arrayOk:!0,editType:"style",description:["Sets the marker symbol type.","Adding 100 is equivalent to appending *-open* to a symbol name.","Adding 200 is equivalent to appending *-dot* to a symbol name.","Adding 300 is equivalent to appending *-open-dot*","or *dot-open* to a symbol name."].join(" ")},opacity:{valType:"number",min:0,max:1,arrayOk:!0,editType:"style",anim:!0,description:"Sets the marker opacity."},size:{valType:"number",min:0,dflt:6,arrayOk:!0,editType:"calc",anim:!0,description:"Sets the marker size (in px)."},maxdisplayed:{valType:"number",min:0,dflt:0,editType:"plot",description:["Sets a maximum number of points to be drawn on the graph.","*0* corresponds to no limit."].join(" ")},sizeref:{valType:"number",dflt:1,editType:"calc",description:["Has an effect only if `marker.size` is set to a numerical array.","Sets the scale factor used to determine the rendered size of","marker points. Use with `sizemin` and `sizemode`."].join(" ")},sizemin:{valType:"number",min:0,dflt:0,editType:"calc",description:["Has an effect only if `marker.size` is set to a numerical array.","Sets the minimum size (in px) of the rendered marker points."].join(" ")},sizemode:{valType:"enumerated",values:["diameter","area"],dflt:"diameter",editType:"calc",description:["Has an effect only if `marker.size` is set to a numerical array.","Sets the rule for which the data in `size` is converted","to pixels."].join(" ")},line:d({width:{valType:"number",min:0,arrayOk:!0,editType:"style",anim:!0,description:"Sets the width (in px) of the lines bounding the marker points."},editType:"calc"},o("marker.line",{anim:!0})),gradient:{type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],arrayOk:!0,dflt:"none",editType:"calc",description:["Sets the type of gradient used to fill the markers"].join(" ")},color:{valType:"color",arrayOk:!0,editType:"calc",description:["Sets the final color of the gradient fill:","the center color for radial, the right for horizontal,","or the bottom for vertical."].join(" ")},editType:"calc"},editType:"calc"},o("marker",{anim:!0})),selected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style",description:"Sets the marker opacity of selected points."},color:{valType:"color",editType:"style",description:"Sets the marker color of selected points."},size:{valType:"number",min:0,editType:"style",description:"Sets the marker size of selected points."},editType:"style"},textfont:{color:{valType:"color",editType:"style",description:"Sets the text font color of selected points."},editType:"style"},editType:"style"},unselected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style",description:"Sets the marker opacity of unselected points, applied only when a selection exists."},color:{valType:"color",editType:"style",description:"Sets the marker color of unselected points, applied only when a selection exists."},size:{valType:"number",min:0,editType:"style",description:"Sets the marker size of unselected points, applied only when a selection exists."},editType:"style"},textfont:{color:{valType:"color",editType:"style",description:"Sets the text font color of unselected points, applied only when a selection exists."},editType:"style"},editType:"style"},textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],dflt:"middle center",arrayOk:!0,editType:"calc",description:["Sets the positions of the `text` elements","with respects to the (x,y) coordinates."].join(" ")},textfont:l({editType:"calc",colorEditType:"style",arrayOk:!0,description:"Sets the text font."})}},function(e,t,r){"use strict";var n=r(7),a=r(5),i=r(0),o=r(20),l=r(10),s=r(245).getModuleCalcData,c=r(21),u=r(29),f=r(74),d=i.ensureSingle;function p(e,t,r){return i.ensureSingle(e,t,r,(function(e){e.datum(r)}))}function h(e,t,r,i,o){for(var c,f,d,p=u.traceLayerClasses,h=e._fullLayout,g=h._modules,v=[],y=[],m=0;m<g.length;m++){var b=(c=g[m]).name,x=a.modules[b].categories;if(x.svg){var w=c.layerName||b+"layer",_=c.plot;d=(f=s(r,_))[0],r=f[1],d.length&&v.push({i:p.indexOf(w),className:w,plotMethod:_,cdModule:d}),x.zoomScale&&y.push("."+w)}}v.sort((function(e,t){return e.i-t.i}));var k=t.plot.selectAll("g.mlayer").data(v,(function(e){return e.className}));if(k.enter().append("g").attr("class",(function(e){return e.className})).classed("mlayer",!0).classed("rangeplot",t.isRangePlot),k.exit().remove(),k.order(),k.each((function(r){var a=n.select(this),s=r.className;r.plotMethod(e,t,r.cdModule,a,i,o),-1===u.clipOnAxisFalseQuery.indexOf("."+s)&&l.setClipUrl(a,t.layerClipId,e)})),h._has("scattergl")&&(c=a.getModule("scattergl"),d=s(r,c)[0],c.plot(e,t,d)),!e._context.staticPlot&&(t._hasClipOnAxisFalse&&(t.clipOnAxisFalseTraces=t.plot.selectAll(u.clipOnAxisFalseQuery.join(",")).selectAll(".trace")),y.length)){var T=t.plot.selectAll(y.join(",")).selectAll(".trace");t.zoomScalePts=T.selectAll("path.point"),t.zoomScaleTxt=T.selectAll(".textpoint")}}function g(e,t){var r=t.plotgroup,n=t.id,a=u.layerValue2layerClass[t.xaxis.layer],i=u.layerValue2layerClass[t.yaxis.layer],o=e._fullLayout._hasOnlyLargeSploms;if(t.mainplot){var l=t.mainplotinfo,s=l.plotgroup,f=n+"-x",h=n+"-y";t.gridlayer=l.gridlayer,t.zerolinelayer=l.zerolinelayer,d(l.overlinesBelow,"path",f),d(l.overlinesBelow,"path",h),d(l.overaxesBelow,"g",f),d(l.overaxesBelow,"g",h),t.plot=d(l.overplot,"g",n),d(l.overlinesAbove,"path",f),d(l.overlinesAbove,"path",h),d(l.overaxesAbove,"g",f),d(l.overaxesAbove,"g",h),t.xlines=s.select(".overlines-"+a).select("."+f),t.ylines=s.select(".overlines-"+i).select("."+h),t.xaxislayer=s.select(".overaxes-"+a).select("."+f),t.yaxislayer=s.select(".overaxes-"+i).select("."+h)}else if(o)t.xlines=d(r,"path","xlines-above"),t.ylines=d(r,"path","ylines-above"),t.xaxislayer=d(r,"g","xaxislayer-above"),t.yaxislayer=d(r,"g","yaxislayer-above");else{var g=d(r,"g","layer-subplot");t.shapelayer=d(g,"g","shapelayer"),t.imagelayer=d(g,"g","imagelayer"),t.gridlayer=d(r,"g","gridlayer"),t.zerolinelayer=d(r,"g","zerolinelayer"),d(r,"path","xlines-below"),d(r,"path","ylines-below"),t.overlinesBelow=d(r,"g","overlines-below"),d(r,"g","xaxislayer-below"),d(r,"g","yaxislayer-below"),t.overaxesBelow=d(r,"g","overaxes-below"),t.plot=d(r,"g","plot"),t.overplot=d(r,"g","overplot"),t.xlines=d(r,"path","xlines-above"),t.ylines=d(r,"path","ylines-above"),t.overlinesAbove=d(r,"g","overlines-above"),d(r,"g","xaxislayer-above"),d(r,"g","yaxislayer-above"),t.overaxesAbove=d(r,"g","overaxes-above"),t.xlines=r.select(".xlines-"+a),t.ylines=r.select(".ylines-"+i),t.xaxislayer=r.select(".xaxislayer-"+a),t.yaxislayer=r.select(".yaxislayer-"+i)}o||(p(t.gridlayer,"g",t.xaxis._id),p(t.gridlayer,"g",t.yaxis._id),t.gridlayer.selectAll("g").map((function(e){return e[0]})).sort(c.idSort)),t.xlines.style("fill","none").classed("crisp",!0),t.ylines.style("fill","none").classed("crisp",!0)}function v(e,t){if(e){var r={};for(var a in e.each((function(e){var a=e[0];n.select(this).remove(),y(a,t),r[a]=!0})),t._plots)for(var i=t._plots[a].overlays||[],o=0;o<i.length;o++){var l=i[o];r[l.id]&&l.plot.selectAll(".trace").remove()}}}function y(e,t){t._draggers.selectAll("g."+e).remove(),t._defs.select("#clip"+t._uid+e+"plot").remove()}t.name="cartesian",t.attr=["xaxis","yaxis"],t.idRoot=["x","y"],t.idRegex=u.idRegex,t.attrRegex=u.attrRegex,t.attributes=r(568),t.layoutAttributes=r(49),t.supplyLayoutDefaults=r(569),t.transitionAxes=r(573),t.finalizeSubplots=function(e,t){var r,n,a,o=t._subplots,l=o.xaxis,s=o.yaxis,f=o.cartesian,d=f.concat(o.gl2d||[]),p={},h={};for(r=0;r<d.length;r++){var g=d[r].split("y");p[g[0]]=1,h["y"+g[1]]=1}for(r=0;r<l.length;r++)p[n=l[r]]||(a=(e[c.id2name(n)]||{}).anchor,u.idRegex.y.test(a)||(a="y"),f.push(n+a),d.push(n+a),h[a]||(h[a]=1,i.pushUnique(s,a)));for(r=0;r<s.length;r++)h[a=s[r]]||(n=(e[c.id2name(a)]||{}).anchor,u.idRegex.x.test(n)||(n="x"),f.push(n+a),d.push(n+a),p[n]||(p[n]=1,i.pushUnique(l,n)));if(!d.length){for(var v in n="",a="",e){if(u.attrRegex.test(v))"x"===v.charAt(0)?(!n||+v.substr(5)<+n.substr(5))&&(n=v):(!a||+v.substr(5)<+a.substr(5))&&(a=v)}n=n?c.name2id(n):"x",a=a?c.name2id(a):"y",l.push(n),s.push(a),f.push(n+a)}},t.plot=function(e,t,r,n){var a,i=e._fullLayout,o=i._subplots.cartesian,l=e.calcdata;if(!Array.isArray(t))for(t=[],a=0;a<l.length;a++)t.push(a);for(a=0;a<o.length;a++){for(var s,c=o[a],u=i._plots[c],f=[],d=0;d<l.length;d++){var p=l[d],g=p[0].trace;g.xaxis+g.yaxis===c&&((-1!==t.indexOf(g.index)||g.carpet)&&(s&&s[0].trace.xaxis+s[0].trace.yaxis===c&&-1!==["tonextx","tonexty","tonext"].indexOf(g.fill)&&-1===f.indexOf(s)&&f.push(s),f.push(p)),s=p)}h(e,u,f,r,n)}},t.clean=function(e,t,r,n){var a,i,o,l=n._plots||{},s=t._plots||{},u=n._subplots||{};if(n._hasOnlyLargeSploms&&!t._hasOnlyLargeSploms)for(o in l)(a=l[o]).plotgroup&&a.plotgroup.remove();var f=n._has&&n._has("gl"),d=t._has&&t._has("gl");if(f&&!d)for(o in l)(a=l[o])._scene&&a._scene.destroy();if(u.xaxis&&u.yaxis){var p=c.listIds({_fullLayout:n});for(i=0;i<p.length;i++){var h=p[i];t[c.id2name(h)]||n._infolayer.selectAll(".g-"+h+"title").remove()}}var g=n._has&&n._has("cartesian"),m=t._has&&t._has("cartesian");if(g&&!m)v(n._cartesianlayer.selectAll(".subplot"),n),n._defs.selectAll(".axesclip").remove(),delete n._axisConstraintGroups,delete n._axisMatchGroups;else if(u.cartesian)for(i=0;i<u.cartesian.length;i++){var b=u.cartesian[i];if(!s[b]){var x="."+b+",."+b+"-x,."+b+"-y";n._cartesianlayer.selectAll(x).remove(),y(b,n)}}},t.drawFramework=function(e){var t=e._fullLayout,r=function(e){var t,r,n,a,i,o,l=e._fullLayout,s=l._subplots.cartesian,c=s.length,u=[],f=[];for(t=0;t<c;t++){n=s[t],i=(a=l._plots[n]).xaxis,o=a.yaxis;var d=i._mainAxis,p=o._mainAxis,h=d._id+p._id,g=l._plots[h];a.overlays=[],h!==n&&g?(a.mainplot=h,a.mainplotinfo=g,f.push(n)):(a.mainplot=void 0,a.mainplotinfo=void 0,u.push(n))}for(t=0;t<f.length;t++)n=f[t],(a=l._plots[n]).mainplotinfo.overlays.push(a);var v=u.concat(f),y=new Array(c);for(t=0;t<c;t++){n=v[t],i=(a=l._plots[n]).xaxis,o=a.yaxis;var m=[n,i.layer,o.layer,i.overlaying||"",o.overlaying||""];for(r=0;r<a.overlays.length;r++)m.push(a.overlays[r].id);y[t]=m}return y}(e),a=t._cartesianlayer.selectAll(".subplot").data(r,String);a.enter().append("g").attr("class",(function(e){return"subplot "+e[0]})),a.order(),a.exit().call(v,t),a.each((function(r){var a=r[0],i=t._plots[a];i.plotgroup=n.select(this),g(e,i),i.draglayer=d(t._draggers,"g",a)}))},t.rangePlot=function(e,t,r){g(e,t),h(e,t,r),o.style(e)},t.toSVG=function(e){var t=e._fullLayout._glimages,r=n.select(e).selectAll(".svg-container");r.filter((function(e,t){return t===r.size()-1})).selectAll(".gl-canvas-context, .gl-canvas-focus").each((function(){var e=this,r=e.toDataURL("image/png");t.append("svg:image").attr({xmlns:f.svg,"xlink:href":r,preserveAspectRatio:"none",x:0,y:0,width:e.style.width,height:e.style.height})}))},t.updateFx=r(258).updateFx},function(e,t,r){"use strict";var n=r(22).extendFlat;t.attributes=function(e,t){t=t||{};var r={valType:"info_array",editType:(e=e||{}).editType,items:[{valType:"number",min:0,max:1,editType:e.editType},{valType:"number",min:0,max:1,editType:e.editType}],dflt:[0,1]},a=e.name?e.name+" ":"",i=e.trace?"trace ":"subplot ",o=t.description?" "+t.description:"",l={x:n({},r,{description:["Sets the horizontal domain of this ",a,i,"(in plot fraction).",o].join("")}),y:n({},r,{description:["Sets the vertical domain of this ",a,i,"(in plot fraction).",o].join("")}),editType:e.editType};return e.noGridCell||(l.row={valType:"integer",min:0,dflt:0,editType:e.editType,description:["If there is a layout grid, use the domain ","for this row in the grid for this ",a,i,".",o].join("")},l.column={valType:"integer",min:0,dflt:0,editType:e.editType,description:["If there is a layout grid, use the domain ","for this column in the grid for this ",a,i,".",o].join("")}),l},t.defaults=function(e,t,r,n){var a=n&&n.x||[0,1],i=n&&n.y||[0,1],o=t.grid;if(o){var l=r("domain.column");void 0!==l&&(l<o.columns?a=o._domains.x[l]:delete e.domain.column);var s=r("domain.row");void 0!==s&&(s<o.rows?i=o._domains.y[s]:delete e.domain.row)}var c=r("domain.x",a),u=r("domain.y",i);c[0]<c[1]||(e.domain.x=a.slice()),u[0]<u[1]||(e.domain.y=i.slice())}},function(e,t,r){"use strict";var n=r(0),a=r(8),i=r(5),o=r(182),l=r(126),s=r(303),c=r(100).getAxisGroup,u=r(102),f=n.coerceFont;function d(e,t,r,n){var a=t.orientation,i=t[{v:"x",h:"y"}[a]+"axis"],o=c(r,i)+a,l=r._alignmentOpts||{},s=n("alignmentgroup"),u=l[o];u||(u=l[o]={});var f=u[s];f?f.traces.push(t):f=u[s]={traces:[t],alignmentIndex:Object.keys(u).length,offsetGroups:{}};var d=n("offsetgroup"),p=f.offsetGroups,h=p[d];d&&(h||(h=p[d]={offsetIndex:Object.keys(p).length}),t._offsetIndex=h.offsetIndex)}function p(e,t,r,a,i,o){var l=!(!1===(o=o||{}).moduleHasSelected),s=!(!1===o.moduleHasUnselected),c=!(!1===o.moduleHasConstrain),u=!(!1===o.moduleHasCliponaxis),d=!(!1===o.moduleHasTextangle),p=!(!1===o.moduleHasInsideanchor),h=!!o.hasPathbar,g=Array.isArray(i)||"auto"===i,v=g||"inside"===i,y=g||"outside"===i;if(v||y){var m=f(a,"textfont",r.font),b=n.extendFlat({},m),x=!(e.textfont&&e.textfont.color);if(x&&delete b.color,f(a,"insidetextfont",b),h){var w=n.extendFlat({},m);x&&delete w.color,f(a,"pathbar.textfont",w)}y&&f(a,"outsidetextfont",m),l&&a("selected.textfont.color"),s&&a("unselected.textfont.color"),c&&a("constraintext"),u&&a("cliponaxis"),d&&a("textangle"),a("texttemplate")}v&&p&&a("insidetextanchor")}e.exports={supplyDefaults:function(e,t,r,c){function f(r,a){return n.coerce(e,t,u,r,a)}if(o(e,t,c,f)){l(e,t,c,f),f("xhoverformat"),f("yhoverformat"),f("orientation",t.x&&!t.y?"h":"v"),f("base"),f("offset"),f("width"),f("text"),f("hovertext"),f("hovertemplate");var d=f("textposition");p(e,t,c,f,d,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),s(e,t,f,r,c);var h=(t.marker.line||{}).color,g=i.getComponentMethod("errorbars","supplyDefaults");g(e,t,h||a.defaultLine,{axis:"y"}),g(e,t,h||a.defaultLine,{axis:"x",inherit:"y"}),n.coerceSelectionMarkerOpacity(t,f)}else t.visible=!1},crossTraceDefaults:function(e,t){var r;function a(e){return n.coerce(r._input,r,u,e)}if("group"===t.barmode)for(var i=0;i<e.length;i++)"bar"===(r=e[i]).type&&(r._input,d(0,r,t,a))},handleGroupingDefaults:d,handleText:p}},function(e,t,r){"use strict";var n=r(674),a=r(104),i=r(196);e.exports=function(e,t){"float"!==t&&t||(t="array"),"uint"===t&&(t="uint8"),"uint_clamped"===t&&(t="uint8_clamped");var r=new(i(t))(4),o="uint8"!==t&&"uint8_clamped"!==t;return e.length&&"string"!==typeof e||((e=n(e))[0]/=255,e[1]/=255,e[2]/=255),function(e){return e instanceof Uint8Array||e instanceof Uint8ClampedArray||!!(Array.isArray(e)&&(e[0]>1||0===e[0])&&(e[1]>1||0===e[1])&&(e[2]>1||0===e[2])&&(!e[3]||e[3]>1))}(e)?(r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=null!=e[3]?e[3]:255,o&&(r[0]/=255,r[1]/=255,r[2]/=255,r[3]/=255),r):(o?(r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=null!=e[3]?e[3]:1):(r[0]=a(Math.floor(255*e[0]),0,255),r[1]=a(Math.floor(255*e[1]),0,255),r[2]=a(Math.floor(255*e[2]),0,255),r[3]=null==e[3]?255:a(Math.floor(255*e[3]),0,255)),r)}},function(e,t,r){"use strict";function n(e,t){return n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(e,t)}r.d(t,"a",(function(){return n}))},function(e,t,r){"use strict";var n=r(142),a=r(210),i=r(395);e.exports=function(e){var t,o=n(arguments[1]);return o.normalizer||0!==(t=o.length=a(o.length,e.length,o.async))&&(o.primitive?!1===t?o.normalizer=r(423):t>1&&(o.normalizer=r(424)(t)):o.normalizer=!1===t?r(425)():1===t?r(429)():r(430)(t)),o.async&&r(431),o.promise&&r(433),o.dispose&&r(439),o.maxAge&&r(440),o.max&&r(443),o.refCounter&&r(445),i(e,o)}},function(e,t,r){"use strict";var n=r(149),a=r(220),i=r(449),o=r(451),l=r(452),s=r(225),c=r(454),u=r(455),f=r(63),d=r(43),p=r(461),h=r(464),g=r(465),v=r(468),y=r(470),m=d("Date.prototype.getTime"),b=Object.getPrototypeOf,x=d("Object.prototype.toString"),w=f("%Set%",!0),_=d("Map.prototype.has",!0),k=d("Map.prototype.get",!0),T=d("Map.prototype.size",!0),A=d("Set.prototype.add",!0),S=d("Set.prototype.delete",!0),M=d("Set.prototype.has",!0),O=d("Set.prototype.size",!0);function C(e,t,r,n){for(var a,i=h(e);(a=i.next())&&!a.done;)if(z(t,a.value,r,n))return S(e,a.value),!0;return!1}function E(e){return"undefined"===typeof e?null:"object"!==typeof e?"symbol"!==typeof e&&("string"!==typeof e&&"number"!==typeof e||+e===+e):void 0}function L(e,t,r,n,a,i){var o=E(r);if(null!=o)return o;var l=k(t,o),s=y({},a,{strict:!1});return!("undefined"===typeof l&&!_(t,o)||!z(n,l,s,i))&&(!_(e,o)&&z(n,l,s,i))}function P(e,t,r){var n=E(r);return null!=n?n:M(t,n)&&!M(e,n)}function j(e,t,r,n,a,i){for(var o,l,s=h(e);(o=s.next())&&!o.done;)if(z(r,l=o.value,a,i)&&z(n,k(t,l),a,i))return S(e,l),!0;return!1}function z(e,t,r,f){var d=r||{};if(d.strict?i(e,t):e===t)return!0;if(u(e)!==u(t))return!1;if(!e||!t||"object"!==typeof e&&"object"!==typeof t)return d.strict?i(e,t):e==t;var g,S=f.has(e),E=f.has(t);if(S&&E){if(f.get(e)===f.get(t))return!0}else g={};return S||f.set(e,g),E||f.set(t,g),function(e,t,r,i){var u,f;if(typeof e!==typeof t)return!1;if(null==e||null==t)return!1;if(x(e)!==x(t))return!1;if(a(e)!==a(t))return!1;var d=s(e),g=s(t);if(d!==g)return!1;var S=e instanceof Error,E=t instanceof Error;if(S!==E)return!1;if((S||E)&&(e.name!==t.name||e.message!==t.message))return!1;var I=o(e),N=o(t);if(I!==N)return!1;if((I||N)&&(e.source!==t.source||l(e)!==l(t)))return!1;var R=c(e),F=c(t);if(R!==F)return!1;if((R||F)&&m(e)!==m(t))return!1;if(r.strict&&b&&b(e)!==b(t))return!1;if(v(e)!==v(t))return!1;var B=D(e),U=D(t);if(B!==U)return!1;if(B||U){if(e.length!==t.length)return!1;for(u=0;u<e.length;u++)if(e[u]!==t[u])return!1;return!0}if(typeof e!==typeof t)return!1;var H=n(e),V=n(t);if(H.length!==V.length)return!1;for(H.sort(),V.sort(),u=H.length-1;u>=0;u--)if(H[u]!=V[u])return!1;for(u=H.length-1;u>=0;u--)if(!z(e[f=H[u]],t[f],r,i))return!1;var q=p(e),W=p(t);if(q!==W)return!1;if("Set"===q||"Set"===W)return function(e,t,r,n){if(O(e)!==O(t))return!1;var a,i,o,l=h(e),s=h(t);for(;(a=l.next())&&!a.done;)if(a.value&&"object"===typeof a.value)o||(o=new w),A(o,a.value);else if(!M(t,a.value)){if(r.strict)return!1;if(!P(e,t,a.value))return!1;o||(o=new w),A(o,a.value)}if(o){for(;(i=s.next())&&!i.done;)if(i.value&&"object"===typeof i.value){if(!C(o,i.value,r.strict,n))return!1}else if(!r.strict&&!M(e,i.value)&&!C(o,i.value,r.strict,n))return!1;return 0===O(o)}return!0}(e,t,r,i);if("Map"===q)return function(e,t,r,n){if(T(e)!==T(t))return!1;var a,i,o,l,s,c,u=h(e),f=h(t);for(;(a=u.next())&&!a.done;)if(l=a.value[0],s=a.value[1],l&&"object"===typeof l)o||(o=new w),A(o,l);else if("undefined"===typeof(c=k(t,l))&&!_(t,l)||!z(s,c,r,n)){if(r.strict)return!1;if(!L(e,t,l,s,r,n))return!1;o||(o=new w),A(o,l)}if(o){for(;(i=f.next())&&!i.done;)if(l=i.value[0],c=i.value[1],l&&"object"===typeof l){if(!j(o,e,l,c,r,n))return!1}else if(!r.strict&&(!e.has(l)||!z(k(e,l),c,r,n))&&!j(o,e,l,c,y({},r,{strict:!1}),n))return!1;return 0===O(o)}return!0}(e,t,r,i);return!0}(e,t,d,f)}function D(e){return!(!e||"object"!==typeof e||"number"!==typeof e.length)&&("function"===typeof e.copy&&"function"===typeof e.slice&&(!(e.length>0&&"number"!==typeof e[0])&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))))}e.exports=function(e,t,r){return z(e,t,r,g())}},,function(e,t,r){"use strict";e.exports=function(e){return window&&window.process&&window.process.versions?"[object Object]"===Object.prototype.toString.call(e):"[object Object]"===Object.prototype.toString.call(e)&&Object.getPrototypeOf(e).hasOwnProperty("hasOwnProperty")}},function(e,t,r){"use strict";e.exports={mod:function(e,t){var r=e%t;return r<0?r+t:r},modHalf:function(e,t){return Math.abs(e)>t/2?e-Math.round(e/t)*t:e}}},function(e,t,r){"use strict";var n=r(120),a=r(28),i=a({editType:"none",description:"Sets the default hover label font used by all traces on the graph."});i.family.dflt=n.HOVERFONT,i.size.dflt=n.HOVERFONTSIZE,e.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"],description:["Determines the mode of single click interactions.","*event* is the default value and emits the `plotly_click`","event. In addition this mode emits the `plotly_selected` event","in drag modes *lasso* and *select*, but with no event data attached","(kept for compatibility reasons).","The *select* flag enables selecting single","data points via click. This mode also supports persistent selections,","meaning that pressing Shift while clicking, adds to / subtracts from an","existing selection. *select* with `hovermode`: *x* can be confusing, consider","explicitly setting `hovermode`: *closest* when using this feature.","Selection events are sent accordingly as long as *event* flag is set as well.","When the *event* flag is missing, `plotly_click` and `plotly_selected`","events are not fired."].join(" ")},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar",description:["Determines the mode of drag interactions.","*select* and *lasso* apply only to scatter traces with","markers or text. *orbit* and *turntable* apply only to","3D scenes."].join(" ")},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar",description:["Determines the mode of hover interactions.","If *closest*, a single hoverlabel will appear","for the *closest* point within the `hoverdistance`.","If *x* (or *y*), multiple hoverlabels will appear for multiple points","at the *closest* x- (or y-) coordinate within the `hoverdistance`,","with the caveat that no more than one hoverlabel will appear per trace.","If *x unified* (or *y unified*), a single hoverlabel will appear","multiple points at the closest x- (or y-) coordinate within the `hoverdistance`","with the caveat that no more than one hoverlabel will appear per trace.","In this mode, spikelines are enabled by default perpendicular to the specified axis.","If false, hover interactions are disabled."].join(" ")},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none",description:["Sets the default distance (in pixels) to look for data","to add hover labels (-1 means no cutoff, 0 means no looking for data).","This is only a real distance for hovering on point-like objects,","like scatter points. For area-like objects (bars, scatter fills, etc)","hovering is on inside the area and off outside, but these objects","will not supersede hover on point-like objects in case of conflict."].join(" ")},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none",description:["Sets the default distance (in pixels) to look for data to draw","spikelines to (-1 means no cutoff, 0 means no looking for data).","As with hoverdistance, distance does not apply to area-like objects.","In addition, some objects can be hovered on but will not generate","spikelines, such as scatter fills."].join(" ")},hoverlabel:{bgcolor:{valType:"color",editType:"none",description:["Sets the background color of all hover labels on graph"].join(" ")},bordercolor:{valType:"color",editType:"none",description:["Sets the border color of all hover labels on graph."].join(" ")},font:i,grouptitlefont:a({editType:"none",description:["Sets the font for group titles in hover (unified modes).","Defaults to `hoverlabel.font`."].join(" ")}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none",description:["Sets the horizontal alignment of the text content within hover label box.","Has an effect only if the hover label text spans more two or more lines"].join(" ")},namelength:{valType:"integer",min:-1,dflt:15,editType:"none",description:["Sets the default length (in number of characters) of the trace name in","the hover labels for all traces. -1 shows the whole name","regardless of length. 0-3 shows the first 0-3 characters, and","an integer >3 will show the whole name if it is less than that","many characters, but if it is longer, will truncate to","`namelength - 3` characters and add an ellipsis."].join(" ")},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",description:["When `dragmode` is set to *select*, this limits the selection of the drag to","horizontal, vertical or diagonal. *h* only allows horizontal selection,","*v* only vertical, *d* only diagonal and *any* sets no limit."].join(" "),editType:"none"}}},function(e,t,r){"use strict";e.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}},function(e,t,r){"use strict";t.counter=function(e,t,r,n){var a=(t||"")+(r?"":"$"),i=!1===n?"":"^";return"xy"===e?new RegExp(i+"x([2-9]|[1-9][0-9]+)?y([2-9]|[1-9][0-9]+)?"+a):new RegExp(i+e+"([2-9]|[1-9][0-9]+)?"+a)}},function(e,t,r){"use strict";var n=r(28),a=r(121),i=r(45),o=r(509),l=r(162),s=r(22).extendFlat,c=n({editType:"calc",description:["Sets the global font.","Note that fonts used in traces and other","layout components inherit from the global font."].join(" ")});c.family.dflt='"Open Sans", verdana, arial, sans-serif',c.size.dflt=12,c.color.dflt=i.defaultLine,e.exports={font:c,title:{text:{valType:"string",editType:"layoutstyle",description:["Sets the plot's title.","Note that before the existence of `title.text`, the title's","contents used to be defined as the `title` attribute itself.","This behavior has been deprecated."].join(" ")},font:n({editType:"layoutstyle",description:["Sets the title font.","Note that the title's font used to be customized","by the now deprecated `titlefont` attribute."].join(" ")}),xref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle",description:["Sets the container `x` refers to.","*container* spans the entire `width` of the plot.","*paper* refers to the width of the plotting area only."].join(" ")},yref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle",description:["Sets the container `y` refers to.","*container* spans the entire `height` of the plot.","*paper* refers to the height of the plotting area only."].join(" ")},x:{valType:"number",min:0,max:1,dflt:.5,editType:"layoutstyle",description:["Sets the x position with respect to `xref` in normalized","coordinates from *0* (left) to *1* (right)."].join(" ")},y:{valType:"number",min:0,max:1,dflt:"auto",editType:"layoutstyle",description:["Sets the y position with respect to `yref` in normalized","coordinates from *0* (bottom) to *1* (top).","*auto* places the baseline of the title onto the","vertical center of the top margin."].join(" ")},xanchor:{valType:"enumerated",dflt:"auto",values:["auto","left","center","right"],editType:"layoutstyle",description:["Sets the title's horizontal alignment with respect to its x position.","*left* means that the title starts at x,","*right* means that the title ends at x","and *center* means that the title's center is at x.","*auto* divides `xref` by three and calculates the `xanchor`","value automatically based on the value of `x`."].join(" ")},yanchor:{valType:"enumerated",dflt:"auto",values:["auto","top","middle","bottom"],editType:"layoutstyle",description:["Sets the title's vertical alignment with respect to its y position.","*top* means that the title's cap line is at y,","*bottom* means that the title's baseline is at y","and *middle* means that the title's midline is at y.","*auto* divides `yref` by three and calculates the `yanchor`","value automatically based on the value of `y`."].join(" ")},pad:s(l({editType:"layoutstyle"}),{description:["Sets the padding of the title.","Each padding value only applies when the corresponding","`xanchor`/`yanchor` value is set accordingly. E.g. for left","padding to take effect, `xanchor` must be set to *left*.","The same rule applies if `xanchor`/`yanchor` is determined automatically.","Padding is muted if the respective anchor value is *middle*/*center*."].join(" ")}),editType:"layoutstyle"},uniformtext:{mode:{valType:"enumerated",values:[!1,"hide","show"],dflt:!1,editType:"plot",description:["Determines how the font size for various text","elements are uniformed between each trace type.","If the computed text sizes were smaller than","the minimum size defined by `uniformtext.minsize`","using *hide* option hides the text; and","using *show* option shows the text without further downscaling.","Please note that if the size defined by `minsize` is greater than","the font size defined by trace, then the `minsize` is used."].join(" ")},minsize:{valType:"number",min:0,dflt:0,editType:"plot",description:["Sets the minimum text size between traces of the same type."].join(" ")},editType:"plot"},autosize:{valType:"boolean",dflt:!1,editType:"none",description:["Determines whether or not a layout width or height","that has been left undefined by the user","is initialized on each relayout.","Note that, regardless of this attribute,","an undefined layout width or height","is always initialized on the first call to plot."].join(" ")},width:{valType:"number",min:10,dflt:700,editType:"plot",description:["Sets the plot's width (in px)."].join(" ")},height:{valType:"number",min:10,dflt:450,editType:"plot",description:["Sets the plot's height (in px)."].join(" ")},margin:{l:{valType:"number",min:0,dflt:80,editType:"plot",description:"Sets the left margin (in px)."},r:{valType:"number",min:0,dflt:80,editType:"plot",description:"Sets the right margin (in px)."},t:{valType:"number",min:0,dflt:100,editType:"plot",description:"Sets the top margin (in px)."},b:{valType:"number",min:0,dflt:80,editType:"plot",description:"Sets the bottom margin (in px)."},pad:{valType:"number",min:0,dflt:0,editType:"plot",description:["Sets the amount of padding (in px)","between the plotting area and the axis lines"].join(" ")},autoexpand:{valType:"boolean",dflt:!0,editType:"plot",description:["Turns on/off margin expansion computations.","Legends, colorbars, updatemenus, sliders, axis rangeselector and rangeslider","are allowed to push the margins by defaults."].join(" ")},editType:"plot"},computed:{valType:"any",editType:"none",description:["Placeholder for exporting automargin-impacting values namely","`margin.t`, `margin.b`, `margin.l` and `margin.r` in *full-json* mode."].join(" ")},paper_bgcolor:{valType:"color",dflt:i.background,editType:"plot",description:"Sets the background color of the paper where the graph is drawn."},plot_bgcolor:{valType:"color",dflt:i.background,editType:"layoutstyle",description:["Sets the background color of the plotting area in-between x and y axes."].join(" ")},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc",description:["Using *strict* a numeric string in trace data is not converted to a number.","Using *convert types* a numeric string in trace data may be","treated as a number during automatic axis `type` detection.","This is the default value; however it could be overridden for individual axes."].join(" ")},separators:{valType:"string",editType:"plot",description:["Sets the decimal and thousand separators.","For example, *. * puts a '.' before decimals and a space","between thousands. In English locales, dflt is *.,* but","other locales may alter this default."].join(" ")},hidesources:{valType:"boolean",dflt:!1,editType:"plot",description:["Determines whether or not a text link citing the data source is","placed at the bottom-right cored of the figure.","Has only an effect only on graphs that have been generated via","forked graphs from the Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise)."].join(" ")},showlegend:{valType:"boolean",editType:"legend",description:["Determines whether or not a legend is drawn.","Default is `true` if there is a trace to show and any of these:","a) Two or more traces would by default be shown in the legend.","b) One pie trace is shown in the legend.","c) One trace is explicitly given with `showlegend: true`."].join(" ")},colorway:{valType:"colorlist",dflt:i.defaults,editType:"calc",description:"Sets the default trace colors."},datarevision:{valType:"any",editType:"calc",description:["If provided, a changed value tells `Plotly.react` that","one or more data arrays has changed. This way you can modify","arrays in-place rather than making a complete new copy for an","incremental change.","If NOT provided, `Plotly.react` assumes that data arrays are","being treated as immutable, thus any data array with a","different identity from its predecessor contains new data."].join(" ")},uirevision:{valType:"any",editType:"none",description:["Used to allow user interactions with the plot to persist after","`Plotly.react` calls that are unaware of these interactions.","If `uirevision` is omitted, or if it is given and it changed from","the previous `Plotly.react` call, the exact new figure is used.","If `uirevision` is truthy and did NOT change, any attribute","that has been affected by user interactions and did not receive a","different value in the new figure will keep the interaction value.","`layout.uirevision` attribute serves as the default for","`uirevision` attributes in various sub-containers. For finer","control you can set these sub-attributes directly. For example,","if your app separately controls the data on the x and y axes you","might set `xaxis.uirevision=*time*` and `yaxis.uirevision=*cost*`.","Then if only the y data is changed, you can update","`yaxis.uirevision=*quantity*` and the y axis range will reset but","the x axis range will retain any user-driven zoom."].join(" ")},editrevision:{valType:"any",editType:"none",description:["Controls persistence of user-driven changes in `editable: true`","configuration, other than trace names and axis titles.","Defaults to `layout.uirevision`."].join(" ")},selectionrevision:{valType:"any",editType:"none",description:["Controls persistence of user-driven changes in selected points","from all traces."].join(" ")},template:{valType:"any",editType:"calc",description:["Default attributes to be applied to the plot. Templates can be","created from existing plots using `Plotly.makeTemplate`, or","created manually. They should be objects with format:","`{layout: layoutTemplate, data: {[type]: [traceTemplate, ...]}, ...}`","`layoutTemplate` and `traceTemplate` are objects matching the","attribute structure of `layout` and a data trace. ","Trace templates are applied cyclically to traces of each type.","Container arrays (eg `annotations`) have special handling:","An object ending in `defaults` (eg `annotationdefaults`) is applied","to each array item. But if an item has a `templateitemname` key","we look in the template array for an item with matching `name` and","apply that instead. If no matching `name` is found we mark the item","invisible. Any named template item not referenced is appended to","the end of the array, so you can use this for a watermark annotation","or a logo image, for example. To omit one of these items on the plot,","make an item with matching `templateitemname` and `visible: false`."].join(" ")},newshape:o.newshape,activeshape:o.activeshape,meta:{valType:"any",arrayOk:!0,editType:"plot",description:["Assigns extra meta information that can be used in various `text` attributes.","Attributes such as the graph, axis and colorbar `title.text`, annotation `text`","`trace.name` in legend items, `rangeselector`, `updatemenus` and `sliders` `label` text","all support `meta`. One can access `meta` fields using template strings:","`%{meta[i]}` where `i` is the index of the `meta`","item in question.","`meta` can also be an object for example `{key: value}` which can be accessed","%{meta[key]}."].join(" ")},transition:s({},a.transition,{description:["Sets transition options used during Plotly.react updates."].join(" "),editType:"none"}),_deprecated:{title:{valType:"string",editType:"layoutstyle",description:["Value of `title` is no longer a simple *string* but a set of sub-attributes.","To set the contents of the title, please use `title.text` now."].join(" ")},titlefont:n({editType:"layoutstyle",description:["Former `titlefont` is now the sub-attribute `font` of `title`.","To customize title font properties, please use `title.font` now."].join(" ")})}}},function(e,t,r){"use strict";var n=r(165).EventEmitter,a={init:function(e){if(e._ev instanceof n)return e;var t=new n,r=new n;return e._ev=t,e._internalEv=r,e.on=t.on.bind(t),e.once=t.once.bind(t),e.removeListener=t.removeListener.bind(t),e.removeAllListeners=t.removeAllListeners.bind(t),e._internalOn=r.on.bind(r),e._internalOnce=r.once.bind(r),e._removeInternalListener=r.removeListener.bind(r),e._removeAllInternalListeners=r.removeAllListeners.bind(r),e.emit=function(n,a){"undefined"!==typeof jQuery&&jQuery(e).trigger(n,a),t.emit(n,a),r.emit(n,a)},e},triggerHandler:function(e,t,r){var n,a;"undefined"!==typeof jQuery&&(n=jQuery(e).triggerHandler(t,r));var i=e._ev;if(!i)return n;var o,l=i._events[t];if(!l)return n;function s(e){return e.listener?(i.removeListener(t,e.listener),e.fired?void 0:(e.fired=!0,e.listener.apply(i,[r]))):e.apply(i,[r])}for(l=Array.isArray(l)?l:[l],o=0;o<l.length-1;o++)s(l[o]);return a=s(l[o]),void 0!==n?n:a},purge:function(e){return delete e._ev,delete e.on,delete e.once,delete e.removeListener,delete e.removeAllListeners,delete e.emit,delete e._ev,delete e._internalEv,delete e._internalOn,delete e._internalOnce,delete e._removeInternalListener,delete e._removeAllInternalListeners,e}};e.exports=a},function(e,t,r){"use strict";var n=r(5),a=r(0),i=r(44),o=r(93),l=r(244),s=r(121),c=r(73).configAttributes,u=r(55),f=a.extendDeepAll,d=a.isPlainObject,p=a.isArrayOrTypedArray,h=a.nestedProperty,g=a.valObjectMeta,v="_isSubplotObj",y="_isLinkedToArray",m="_deprecated",b=[v,y,"_arrayAttrRegexps",m];function x(e,t,r){if(!e)return!1;if(e._isLinkedToArray)if(w(t[r]))r++;else if(r<t.length)return!1;for(;r<t.length;r++){var n=e[t[r]];if(!d(n))break;if(e=n,r===t.length-1)break;if(e._isLinkedToArray){if(!w(t[++r]))return!1}else if("info_array"===e.valType){var a=t[++r];if(!w(a))return!1;var i=e.items;if(Array.isArray(i)){if(a>=i.length)return!1;if(2===e.dimensions){if(r++,t.length===r)return e;var o=t[r];if(!w(o))return!1;e=i[a][o]}else e=i[a]}else e=i}}return e}function w(e){return e===Math.round(e)&&e>=0}function _(){var e,t,r={};for(e in f(r,o),n.subplotsRegistry){if((t=n.subplotsRegistry[e]).layoutAttributes)if(Array.isArray(t.attr))for(var a=0;a<t.attr.length;a++)A(r,t,t.attr[a]);else A(r,t,"subplot"===t.attr?t.name:t.attr)}for(e in n.componentsRegistry){var i=(t=n.componentsRegistry[e]).schema;if(i&&(i.subplots||i.layout)){var l=i.subplots;if(l&&l.xaxis&&!l.yaxis)for(var s in l.xaxis)delete r.yaxis[s]}else"colorscale"===t.name?f(r,t.layoutAttributes):t.layoutAttributes&&S(r,t.layoutAttributes,t.name)}return{layoutAttributes:T(r)}}function k(){var e={frames:f({},l)};return T(e),e.frames}function T(e){return function(e){function r(e){return{valType:"string",description:"Sets the source reference on Chart Studio Cloud for `"+e+"`.",editType:"none"}}function n(e,n,a){t.isValObject(e)?!0!==e.arrayOk&&"data_array"!==e.valType||(a[n+"src"]=r(n)):d(e)&&(e.role="object")}t.crawl(e,n)}(e),function(e){function r(e,t,r){if(e){var n=e._isLinkedToArray;n&&(delete e._isLinkedToArray,r[t]={items:{}},r[t].items[n]=e,r[t].role="object")}}t.crawl(e,r)}(e),function(e){function t(e){for(var r in e)if(d(e[r]))t(e[r]);else if(Array.isArray(e[r]))for(var n=0;n<e[r].length;n++)t(e[r][n]);else e[r]instanceof RegExp&&(e[r]=e[r].toString())}t(e)}(e),e}function A(e,t,r){var n=h(e,r),a=f({},t.layoutAttributes);a._isSubplotObj=!0,n.set(a)}function S(e,t,r){var n=h(e,r);n.set(f(n.get()||{},t))}t.IS_SUBPLOT_OBJ=v,t.IS_LINKED_TO_ARRAY=y,t.DEPRECATED=m,t.UNDERSCORE_ATTRS=b,t.get=function(){var e={};n.allTypes.forEach((function(r){e[r]=function(e){var r,a;r=n.modules[e]._module,a=r.basePlotModule;var o={type:null},l=f({},i),s=f({},r.attributes);t.crawl(s,(function(e,t,r,n,a){h(l,a).set(void 0),void 0===e&&h(s,a).set(void 0)})),f(o,l),n.traceIs(e,"noOpacity")&&delete o.opacity;n.traceIs(e,"showLegend")||(delete o.showlegend,delete o.legendgroup);n.traceIs(e,"noHover")&&(delete o.hoverinfo,delete o.hoverlabel);r.selectPoints||delete o.selectedpoints;f(o,s),a.attributes&&f(o,a.attributes);o.type=e;var c={meta:r.meta||{},categories:r.categories||{},animatable:Boolean(r.animatable),type:e,attributes:T(o)};if(r.layoutAttributes){var u={};f(u,r.layoutAttributes),c.layoutAttributes=T(u)}r.animatable||t.crawl(c,(function(e){t.isValObject(e)&&"anim"in e&&delete e.anim}));return c}(r)}));var r={};return Object.keys(n.transformsRegistry).forEach((function(e){r[e]=function(e){var t=n.transformsRegistry[e],r=f({},t.attributes);return Object.keys(n.componentsRegistry).forEach((function(t){var a=n.componentsRegistry[t];a.schema&&a.schema.transforms&&a.schema.transforms[e]&&Object.keys(a.schema.transforms[e]).forEach((function(t){S(r,a.schema.transforms[e][t],t)}))})),{attributes:T(r)}}(e)})),{defs:{valObjects:g,metaKeys:b.concat(["description","role","editType","impliedEdits"]),editType:{traces:u.traces,layout:u.layout},impliedEdits:{description:["Sometimes when an attribute is changed, other attributes","must be altered as well in order to achieve the intended","result. For example, when `range` is specified, it is","important to set `autorange` to `false` or the new `range`","value would be lost in the redraw. `impliedEdits` is the","mechanism to do this: `impliedEdits: {autorange: false}`.","Each key is a relative paths to the attribute string to","change, using *^* to ascend into the parent container,","for example `range[0]` has `impliedEdits: {*^autorange*: false}`.","A value of `undefined` means that the attribute will not be","changed, but its previous value should be recorded in case","we want to reverse this change later. For example, `autorange`","has `impliedEdits: {*range[0]*: undefined, *range[1]*:undefined}","because the range will likely be changed by redraw."].join(" ")}},traces:e,layout:_(),transforms:r,frames:k(),animation:T(s),config:T(c)}},t.crawl=function(e,r,n,a){var i=n||0;a=a||"",Object.keys(e).forEach((function(n){var o=e[n];if(-1===b.indexOf(n)){var l=(a?a+".":"")+n;r(o,n,e,i,l),t.isValObject(o)||d(o)&&"impliedEdits"!==n&&t.crawl(o,r,i+1,l)}}))},t.isValObject=function(e){return e&&void 0!==e.valType},t.findArrayAttributes=function(e){var r,n,a=[],o=[],l=[];function s(e,t,n,a){o=o.slice(0,a).concat([t]),l=l.slice(0,a).concat([e&&e._isLinkedToArray]),e&&("data_array"===e.valType||!0===e.arrayOk)&&!("colorbar"===o[a-1]&&("ticktext"===t||"tickvals"===t))&&c(r,0,"")}function c(e,t,r){var i=e[o[t]],s=r+o[t];if(t===o.length-1)p(i)&&a.push(n+s);else if(l[t]){if(Array.isArray(i))for(var u=0;u<i.length;u++)d(i[u])&&c(i[u],t+1,s+"["+u+"].")}else d(i)&&c(i,t+1,s+".")}r=e,n="",t.crawl(i,s),e._module&&e._module.attributes&&t.crawl(e._module.attributes,s);var u=e.transforms;if(u)for(var f=0;f<u.length;f++){var h=u[f],g=h._module;g&&(n="transforms["+f+"].",r=h,t.crawl(g.attributes,s))}return a},t.getTraceValObject=function(e,t){var r,a,o=t[0],l=1;if("transforms"===o){if(1===t.length)return i.transforms;var s=e.transforms;if(!Array.isArray(s)||!s.length)return!1;var c=t[1];if(!w(c)||c>=s.length)return!1;a=(r=(n.transformsRegistry[s[c].type]||{}).attributes)&&r[t[2]],l=3}else{var u=e._module;if(u||(u=(n.modules[e.type||i.type.dflt]||{})._module),!u)return!1;if(!(a=(r=u.attributes)&&r[o])){var f=u.basePlotModule;f&&f.attributes&&(a=f.attributes[o])}a||(a=i[o])}return x(a,t,l)},t.getLayoutValObject=function(e,t){var r=function(e,t){var r,a,i,l,s=e._basePlotModules;if(s){var c;for(r=0;r<s.length;r++){if((i=s[r]).attrRegex&&i.attrRegex.test(t)){if(i.layoutAttrOverrides)return i.layoutAttrOverrides;!c&&i.layoutAttributes&&(c=i.layoutAttributes)}var u=i.baseLayoutAttrOverrides;if(u&&t in u)return u[t]}if(c)return c}var f=e._modules;if(f)for(r=0;r<f.length;r++)if((l=f[r].layoutAttributes)&&t in l)return l[t];for(a in n.componentsRegistry){if("colorscale"===(i=n.componentsRegistry[a]).name&&0===t.indexOf("coloraxis"))return i.layoutAttributes[t];if(!i.schema&&t===i.name)return i.layoutAttributes}return t in o&&o[t]}(e,t[0]);return x(r,t,1)}},function(e,t,r){"use strict";e.exports={clearOutlineControllers:function(e){var t=e._fullLayout._zoomlayer;t&&t.selectAll(".outline-controllers").remove()},clearSelect:function(e){var t=e._fullLayout._zoomlayer;t&&t.selectAll(".select-outline").remove(),e._fullLayout._drawing=!1}}},function(e,t,r){"use strict";var n=r(9),a=r(0),i=r(248),o=r(249),l=r(71).isValid,s=r(5).traceIs;function c(e,t){var r=t.slice(0,t.length-1);return t?a.nestedProperty(e,r).get()||{}:e}e.exports=function e(t,r,u,f,d){var p=d.prefix,h=d.cLetter,g="_module"in r,v=c(t,p),y=c(r,p),m=c(r._template||{},p)||{},b=function(){return delete t.coloraxis,delete r.coloraxis,e(t,r,u,f,d)};if(g){var x=u._colorAxes||{},w=f(p+"coloraxis");if(w){var _=s(r,"contour")&&a.nestedProperty(r,"contours.coloring").get()||"heatmap",k=x[w];return void(k?(k[2].push(b),k[0]!==_&&(k[0]=!1,a.warn(["Ignoring coloraxis:",w,"setting","as it is linked to incompatible colorscales."].join(" ")))):x[w]=[_,r,[b]])}}var T=v[h+"min"],A=v[h+"max"],S=n(T)&&n(A)&&T<A;f(p+h+"auto",!S)?f(p+h+"mid"):(f(p+h+"min"),f(p+h+"max"));var M,O,C=v.colorscale,E=m.colorscale;(void 0!==C&&(M=!l(C)),void 0!==E&&(M=!l(E)),f(p+"autocolorscale",M),f(p+"colorscale"),f(p+"reversescale"),"marker.line."!==p)&&(p&&g&&(O=i(v)),f(p+"showscale",O)&&(p&&m&&(y._template=m),o(v,y,u)))}},function(e,t,r){"use strict";var n=r(7),a=r(9),i=r(0),o=r(19).FP_SAFE,l=r(5),s=r(10),c=r(21),u=c.getFromId,f=c.isLinked;function d(e,t){var r,n,a=[],o=e._fullLayout,l=h(o,t,0),s=h(o,t,1),c=g(e,t),u=c.min,f=c.max;if(0===u.length||0===f.length)return i.simpleMap(t.range,t.r2l);var d=u[0].val,v=f[0].val;for(r=1;r<u.length&&d===v;r++)d=Math.min(d,u[r].val);for(r=1;r<f.length&&d===v;r++)v=Math.max(v,f[r].val);var y=!1;if(t.range){var m=i.simpleMap(t.range,t.r2l);y=m[1]<m[0]}"reversed"===t.autorange&&(y=!0,t.autorange=!0);var b,x,w,_,k,T,A=t.rangemode,S="tozero"===A,M="nonnegative"===A,O=t._length,C=O/10,E=0;for(r=0;r<u.length;r++)for(b=u[r],n=0;n<f.length;n++)(T=(x=f[n]).val-b.val-p(t,b.val,x.val))>0&&((k=O-l(b)-s(x))>C?T/k>E&&(w=b,_=x,E=T/k):T/O>E&&(w={val:b.val,nopad:1},_={val:x.val,nopad:1},E=T/O));if(d===v){var L=d-1,P=d+1;if(S)if(0===d)a=[0,1];else{var j=(d>0?f:u).reduce((function(e,t){return Math.max(e,s(t))}),0),z=d/(1-Math.min(.5,j/O));a=d>0?[0,z]:[z,0]}else a=M?[Math.max(0,L),Math.max(1,P)]:[L,P]}else S?(w.val>=0&&(w={val:0,nopad:1}),_.val<=0&&(_={val:0,nopad:1})):M&&(w.val-E*l(w)<0&&(w={val:0,nopad:1}),_.val<=0&&(_={val:1,nopad:1})),E=(_.val-w.val-p(t,b.val,x.val))/(O-l(w)-s(_)),a=[w.val-E*l(w),_.val+E*s(_)];return y&&a.reverse(),i.simpleMap(a,t.l2r||Number)}function p(e,t,r){var n=0;if(e.rangebreaks)for(var a=e.locateBreaks(t,r),i=0;i<a.length;i++){var o=a[i];n+=o.max-o.min}return n}function h(e,t,r){var a=.05*t._length,o=t._anchorAxis||{};if(-1!==(t.ticklabelposition||"").indexOf("inside")||-1!==(o.ticklabelposition||"").indexOf("inside")){var l="reversed"===t.autorange;if(!l){var c=i.simpleMap(t.range,t.r2l);l=c[1]<c[0]}l&&(r=!r)}var u=0;return f(e,t._id)||(u=function(e,t,r){var a=0,o="x"===t._id.charAt(0);for(var l in e._plots){var c=e._plots[l];if(t._id===c.xaxis._id||t._id===c.yaxis._id){var u=(o?c.yaxis:c.xaxis)||{};if(-1!==(u.ticklabelposition||"").indexOf("inside")&&(!r&&("left"===u.side||"bottom"===u.side)||r&&("top"===u.side||"right"===u.side))){if(u._vals){var f=i.deg2rad(u._tickAngles[u._id+"tick"]||0),d=Math.abs(Math.cos(f)),p=Math.abs(Math.sin(f));if(!u._vals[0].bb){var h=u._id+"tick";u._selections[h].each((function(e){var t=n.select(this);t.select(".text-math-group").empty()&&(e.bb=s.bBox(t.node()))}))}for(var g=0;g<u._vals.length;g++){var v=u._vals[g].bb;if(v){var y=6+v.width,m=6+v.height;a=Math.max(a,o?Math.max(y*d,m*p):Math.max(m*d,y*p))}}}"inside"===u.ticks&&"inside"===u.ticklabelposition&&(a+=u.ticklen||0)}}}return a}(e,t,r)),a=Math.max(u,a),"domain"===t.constrain&&t._inputDomain&&(a*=(t._inputDomain[1]-t._inputDomain[0])/(t.domain[1]-t.domain[0])),function(e){return e.nopad?0:e.pad+(e.extrapad?a:u)}}e.exports={getAutoRange:d,makePadFn:h,doAutoRange:function(e,t,r){if(t.setScale(),t.autorange){t.range=r?r.slice():d(e,t),t._r=t.range.slice(),t._rl=i.simpleMap(t._r,t.r2l);var n=t._input,a={};a[t._attr+".range"]=t.range,a[t._attr+".autorange"]=t.autorange,l.call("_storeDirectGUIEdit",e.layout,e._fullLayout._preGUI,a),n.range=t.range.slice(),n.autorange=t.autorange}var o=t._anchorAxis;if(o&&o.rangeslider){var s=o.rangeslider[t._name];s&&"auto"===s.rangemode&&(s.range=d(e,t)),o._input.rangeslider[t._name]=i.extendFlat({},s)}},findExtremes:function(e,t,r){r||(r={});e._m||e.setScale();var n,i,l,s,c,u,f,d,p,h=[],g=[],m=t.length,x=r.padded||!1,w=r.tozero&&("linear"===e.type||"-"===e.type),_="log"===e.type,k=!1,T=r.vpadLinearized||!1;function A(e){if(Array.isArray(e))return k=!0,function(t){return Math.max(Number(e[t]||0),0)};var t=Math.max(Number(e||0),0);return function(){return t}}var S=A((e._m>0?r.ppadplus:r.ppadminus)||r.ppad||0),M=A((e._m>0?r.ppadminus:r.ppadplus)||r.ppad||0),O=A(r.vpadplus||r.vpad),C=A(r.vpadminus||r.vpad);if(!k){if(d=1/0,p=-1/0,_)for(n=0;n<m;n++)(i=t[n])<d&&i>0&&(d=i),i>p&&i<o&&(p=i);else for(n=0;n<m;n++)(i=t[n])<d&&i>-o&&(d=i),i>p&&i<o&&(p=i);t=[d,p],m=2}var E={tozero:w,extrapad:x};function L(r){l=t[r],a(l)&&(u=S(r),f=M(r),T?(s=e.c2l(l)-C(r),c=e.c2l(l)+O(r)):(d=l-C(r),p=l+O(r),_&&d<p/10&&(d=p/10),s=e.c2l(d),c=e.c2l(p)),w&&(s=Math.min(0,s),c=Math.max(0,c)),b(s)&&v(h,s,f,E),b(c)&&y(g,c,u,E))}var P=Math.min(6,m);for(n=0;n<P;n++)L(n);for(n=m-1;n>=P;n--)L(n);return{min:h,max:g,opts:r}},concatExtremes:g};function g(e,t,r){var n,a,i,o=t._id,l=e._fullData,s=e._fullLayout,c=[],f=[];function d(e,t){for(n=0;n<t.length;n++){var r=e[t[n]],l=(r._extremes||{})[o];if(!0===r.visible&&l){for(a=0;a<l.min.length;a++)i=l.min[a],v(c,i.val,i.pad,{extrapad:i.extrapad});for(a=0;a<l.max.length;a++)i=l.max[a],y(f,i.val,i.pad,{extrapad:i.extrapad})}}}if(d(l,t._traceIndices),d(s.annotations||[],t._annIndices||[]),d(s.shapes||[],t._shapeIndices||[]),t._matchGroup&&!r)for(var p in t._matchGroup)if(p!==t._id){var h=u(e,p),m=g(e,h,!0),b=t._length/h._length;for(a=0;a<m.min.length;a++)i=m.min[a],v(c,i.val,i.pad*b,{extrapad:i.extrapad});for(a=0;a<m.max.length;a++)i=m.max[a],y(f,i.val,i.pad*b,{extrapad:i.extrapad})}return{min:c,max:f}}function v(e,t,r,n){m(e,t,r,n,x)}function y(e,t,r,n){m(e,t,r,n,w)}function m(e,t,r,n,a){for(var i=n.tozero,o=n.extrapad,l=!0,s=0;s<e.length&&l;s++){var c=e[s];if(a(c.val,t)&&c.pad>=r&&(c.extrapad||!o)){l=!1;break}a(t,c.val)&&c.pad<=r&&(o||!c.extrapad)&&(e.splice(s,1),s--)}if(l){var u=i&&0===t;e.push({val:t,pad:u?0:r,extrapad:!u&&o})}}function b(e){return a(e)&&Math.abs(e)<o}function x(e,t){return e<=t}function w(e,t){return e>=t}},function(e,t,r){"use strict";t.selectMode=function(e){return"lasso"===e||"select"===e},t.drawMode=function(e){return"drawclosedpath"===e||"drawopenpath"===e||"drawline"===e||"drawrect"===e||"drawcircle"===e},t.openMode=function(e){return"drawline"===e||"drawopenpath"===e},t.rectMode=function(e){return"select"===e||"drawline"===e||"drawrect"===e||"drawcircle"===e},t.freeMode=function(e){return"lasso"===e||"drawclosedpath"===e||"drawopenpath"===e},t.selectingOrDrawing=function(e){return t.freeMode(e)||t.rectMode(e)}},function(e,t,r){"use strict";var n=r(0),a=r(98),i=r(21).id2name,o=r(49),l=r(274),s=r(168),c=r(19).ALMOST_EQUAL,u=r(33).FROM_BL;function f(e,t,r){var a=r.axIds,l=r.layoutOut,s=r.hasImage,c=l._axisConstraintGroups,u=l._axisMatchGroups,f=t._id,g=f.charAt(0),v=((l._splomAxes||{})[g]||{})[f]||{},y=t._id,m="x"===y.charAt(0);function b(r,a){return n.coerce(e,t,o,r,a)}t._matchGroup=null,t._constraintGroup=null,b("constrain",s?"domain":"range"),n.coerce(e,t,{constraintoward:{valType:"enumerated",values:m?["left","center","right"]:["bottom","middle","top"],dflt:m?"center":"middle"}},"constraintoward");var x,w,_=t.type,k=[];for(x=0;x<a.length;x++){if((w=a[x])!==y)l[i(w)].type===_&&k.push(w)}var T=p(c,y);if(T){var A=[];for(x=0;x<k.length;x++)T[w=k[x]]||A.push(w);k=A}var S,M,O=k.length;O&&(e.matches||v.matches)&&(S=n.coerce(e,t,{matches:{valType:"enumerated",values:k,dflt:-1!==k.indexOf(v.matches)?v.matches:void 0}},"matches"));var C=s&&!m?t.anchor:void 0;if(O&&!S&&(e.scaleanchor||C)&&(M=n.coerce(e,t,{scaleanchor:{valType:"enumerated",values:k}},"scaleanchor",C)),S){t._matchGroup=h(u,y,S,1);var E=l[i(S)],L=d(l,t)/d(l,E);m!==("x"===S.charAt(0))&&(L=(m?"x":"y")+L),h(c,y,S,L)}else e.matches&&-1!==a.indexOf(e.matches)&&n.warn("ignored "+t._name+'.matches: "'+e.matches+'" to avoid an infinite loop');if(M){var P=b("scaleratio");P||(P=t.scaleratio=1),h(c,y,M,P)}else e.scaleanchor&&-1!==a.indexOf(e.scaleanchor)&&n.warn("ignored "+t._name+'.scaleanchor: "'+e.scaleanchor+'" to avoid either an infinite loop and possibly inconsistent scaleratios, or because this axis declares a *matches* constraint.')}function d(e,t){var r=t.domain;return r||(r=e[i(t.overlaying)].domain),r[1]-r[0]}function p(e,t){for(var r=0;r<e.length;r++)if(e[r][t])return e[r];return null}function h(e,t,r,n){var a,i,o,l,s,c=p(e,t);null===c?((c={})[t]=1,s=e.length,e.push(c)):s=e.indexOf(c);var u=Object.keys(c);for(a=0;a<e.length;a++)if(o=e[a],a!==s&&o[r]){var f=o[r];for(i=0;i<u.length;i++)o[l=u[i]]=g(f,g(n,c[l]));return void e.splice(s,1)}if(1!==n)for(i=0;i<u.length;i++){var d=u[i];c[d]=g(n,c[d])}c[r]=1}function g(e,t){var r,n,a="",i="";"string"===typeof e&&(r=(a=e.match(/^[xy]*/)[0]).length,e=+e.substr(r)),"string"===typeof t&&(n=(i=t.match(/^[xy]*/)[0]).length,t=+t.substr(n));var o=e*t;return r||n?r&&n&&a.charAt(0)!==i.charAt(0)?r===n?o:(r>n?a.substr(n):i.substr(r))+o:a+i+e*t:o}function v(e,t){for(var r=t._size,n=r.h/r.w,a={},i=Object.keys(e),o=0;o<i.length;o++){var l=i[o],s=e[l];if("string"===typeof s){var c=s.match(/^[xy]*/)[0],u=c.length;s=+s.substr(u);for(var f="y"===c.charAt(0)?n:1/n,d=0;d<u;d++)s*=f}a[l]=s}return a}function y(e,t){var r=e._inputDomain,n=u[e.constraintoward],a=r[0]+(r[1]-r[0])*n;e.domain=e._input.domain=[a+(r[0]-a)/t,a+(r[1]-a)/t],e.setScale()}t.handleDefaults=function(e,t,r){var a,o,l,c,u,d,p,h,g=r.axIds,v=r.axHasImage,y=t._axisConstraintGroups=[],m=t._axisMatchGroups=[];for(a=0;a<g.length;a++)f(u=e[c=i(g[a])],d=t[c],{axIds:g,layoutOut:t,hasImage:v[c]});function b(e,r){for(a=0;a<e.length;a++)for(l in o=e[a])t[i(l)][r]=o}for(b(m,"_matchGroup"),a=0;a<y.length;a++)for(l in o=y[a])if((d=t[i(l)]).fixedrange){for(var x in o){var w=i(x);!1===(e[w]||{}).fixedrange&&n.warn("fixedrange was specified as false for axis "+w+" but was overridden because another axis in its constraint group has fixedrange true"),t[w].fixedrange=!0}break}for(a=0;a<y.length;){for(l in o=y[a]){(d=t[i(l)])._matchGroup&&Object.keys(d._matchGroup).length===Object.keys(o).length&&(y.splice(a,1),a--);break}a++}b(y,"_constraintGroup");var _=["constrain","range","autorange","rangemode","rangebreaks","categoryorder","categoryarray"],k=!1,T=!1;function A(){h=d[p],"rangebreaks"===p&&(T=d._hasDayOfWeekBreaks)}for(a=0;a<m.length;a++){o=m[a];for(var S=0;S<_.length;S++){var M;for(l in p=_[S],h=null,o)if(u=e[c=i(l)],d=t[c],p in d){if(!d.matches&&(M=d,p in u)){A();break}null===h&&p in u&&A()}if("range"===p&&h&&(k=!0),"autorange"===p&&null===h&&k&&(h=!1),null===h&&p in M&&(h=M[p]),null!==h)for(l in o)(d=t[i(l)])[p]="range"===p?h.slice():h,"rangebreaks"===p&&(d._hasDayOfWeekBreaks=T,s(d,t))}}},t.enforce=function(e){var t,r,n,o,s,u,f,d,p=e._fullLayout,h=p._axisConstraintGroups||[];for(t=0;t<h.length;t++){n=v(h[t],p);var g=Object.keys(n),m=1/0,b=0,x=1/0,w={},_={},k=!1;for(r=0;r<g.length;r++)_[o=g[r]]=s=p[i(o)],s._inputDomain?s.domain=s._inputDomain.slice():s._inputDomain=s.domain.slice(),s._inputRange||(s._inputRange=s.range.slice()),s.setScale(),w[o]=u=Math.abs(s._m)/n[o],m=Math.min(m,u),"domain"!==s.constrain&&s._constraintShrinkable||(x=Math.min(x,u)),delete s._constraintShrinkable,b=Math.max(b,u),"domain"===s.constrain&&(k=!0);if(!(m>c*b)||k)for(r=0;r<g.length;r++)if(u=w[o=g[r]],f=(s=_[o]).constrain,u!==x||"domain"===f)if(d=u/x,"range"===f)l(s,d);else{var T=s._inputDomain,A=(s.domain[1]-s.domain[0])/(T[1]-T[0]),S=(s.r2l(s.range[1])-s.r2l(s.range[0]))/(s.r2l(s._inputRange[1])-s.r2l(s._inputRange[0]));if((d/=A)*S<1){s.domain=s._input.domain=T.slice(),l(s,d);continue}if(S<1&&(s.range=s._input.range=s._inputRange.slice(),d*=S),s.autorange){var M=s.r2l(s.range[0]),O=s.r2l(s.range[1]),C=(M+O)/2,E=C,L=C,P=Math.abs(O-C),j=C-P*d*1.0001,z=C+P*d*1.0001,D=a.makePadFn(p,s,0),I=a.makePadFn(p,s,1);y(s,d);var N,R,F=Math.abs(s._m),B=a.concatExtremes(e,s),U=B.min,H=B.max;for(R=0;R<U.length;R++)(N=U[R].val-D(U[R])/F)>j&&N<E&&(E=N);for(R=0;R<H.length;R++)(N=H[R].val+I(H[R])/F)<z&&N>L&&(L=N);d/=(L-E)/(2*P),E=s.l2r(E),L=s.l2r(L),s.range=s._input.range=M<O?[E,L]:[L,E]}y(s,d)}}},t.getAxisGroup=function(e,t){for(var r=e._axisMatchGroups,n=0;n<r.length;n++){if(r[n][t])return"g"+n}return t},t.clean=function(e,t){if(t._inputDomain){for(var r=!1,n=t._id,a=e._fullLayout._axisConstraintGroups,i=0;i<a.length;i++)if(a[i][n]){r=!0;break}r&&"domain"===t.constrain||(t._input.domain=t.domain=t._inputDomain,delete t._inputDomain)}}},function(e,t,r){"use strict";e.exports={container:"marker",min:"cmin",max:"cmax"}},function(e,t,r){"use strict";var n=r(79),a=r(76).axisHoverFormat,i=r(35).hovertemplateAttrs,o=r(35).texttemplateAttrs,l=r(67),s=r(28),c=r(103),u=r(66).pattern,f=r(22).extendFlat,d=s({editType:"calc",arrayOk:!0,colorEditType:"style",description:""}),p=f({},n.marker.line.width,{dflt:0}),h=f({width:p,editType:"calc"},l("marker.line")),g=f({line:h,editType:"calc"},l("marker"),{opacity:{valType:"number",arrayOk:!0,dflt:1,min:0,max:1,editType:"style",description:"Sets the opacity of the bars."},pattern:u});e.exports={x:n.x,x0:n.x0,dx:n.dx,y:n.y,y0:n.y0,dy:n.dy,xperiod:n.xperiod,yperiod:n.yperiod,xperiod0:n.xperiod0,yperiod0:n.yperiod0,xperiodalignment:n.xperiodalignment,yperiodalignment:n.yperiodalignment,xhoverformat:a("x"),yhoverformat:a("y"),text:n.text,texttemplate:o({editType:"plot"},{keys:c.eventDataKeys}),hovertext:n.hovertext,hovertemplate:i({},{keys:c.eventDataKeys}),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"calc",description:["Specifies the location of the `text`.","*inside* positions `text` inside, next to the bar end","(rotated and scaled if needed).","*outside* positions `text` outside, next to the bar end","(scaled if needed), unless there is another bar stacked on","this one, then the text gets pushed inside.","*auto* tries to position `text` inside the bar, but if","the bar is too small and no bar is stacked on this one","the text is moved outside.","If *none*, no text appears."].join(" ")},insidetextanchor:{valType:"enumerated",values:["end","middle","start"],dflt:"end",editType:"plot",description:["Determines if texts are kept at center or start/end points in `textposition` *inside* mode."].join(" ")},textangle:{valType:"angle",dflt:"auto",editType:"plot",description:["Sets the angle of the tick labels with respect to the bar.","For example, a `tickangle` of -90 draws the tick labels","vertically. With *auto* the texts may automatically be","rotated to fit with the maximum size in bars."].join(" ")},textfont:f({},d,{description:"Sets the font used for `text`."}),insidetextfont:f({},d,{description:"Sets the font used for `text` lying inside the bar."}),outsidetextfont:f({},d,{description:"Sets the font used for `text` lying outside the bar."}),constraintext:{valType:"enumerated",values:["inside","outside","both","none"],dflt:"both",editType:"calc",description:["Constrain the size of text inside or outside a bar to be no","larger than the bar itself."].join(" ")},cliponaxis:f({},n.cliponaxis,{description:["Determines whether the text nodes","are clipped about the subplot axes.","To show the text nodes above axis lines and tick labels,","make sure to set `xaxis.layer` and `yaxis.layer` to *below traces*."].join(" ")}),orientation:{valType:"enumerated",values:["v","h"],editType:"calc+clearAxisTypes",description:["Sets the orientation of the bars.","With *v* (*h*), the value of the each bar spans","along the vertical (horizontal)."].join(" ")},base:{valType:"any",dflt:null,arrayOk:!0,editType:"calc",description:["Sets where the bar base is drawn (in position axis units).","In *stack* or *relative* barmode,","traces that set *base* will be excluded","and drawn in *overlay* mode instead."].join(" ")},offset:{valType:"number",dflt:null,arrayOk:!0,editType:"calc",description:["Shifts the position where the bar is drawn","(in position axis units).","In *group* barmode,","traces that set *offset* will be excluded","and drawn in *overlay* mode instead."].join(" ")},width:{valType:"number",dflt:null,min:0,arrayOk:!0,editType:"calc",description:["Sets the bar width (in position axis units)."].join(" ")},marker:g,offsetgroup:{valType:"string",dflt:"",editType:"calc",description:["Set several traces linked to the same position axis","or matching axes to the same","offsetgroup where bars of the same position coordinate will line up."].join(" ")},alignmentgroup:{valType:"string",dflt:"",editType:"calc",description:["Set several traces linked to the same position axis","or matching axes to the same","alignmentgroup. This controls whether bars compute their positional","range dependently or independently."].join(" ")},selected:{marker:{opacity:n.selected.marker.opacity,color:n.selected.marker.color,editType:"style"},textfont:n.selected.textfont,editType:"style"},unselected:{marker:{opacity:n.unselected.marker.opacity,color:n.unselected.marker.color,editType:"style"},textfont:n.unselected.textfont,editType:"style"},_deprecated:{bardir:{valType:"enumerated",editType:"calc",values:["v","h"],description:"Renamed to `orientation`."}}}},function(e,t,r){"use strict";e.exports={TEXTPAD:3,eventDataKeys:["value","label"]}},function(e,t){e.exports=function(e,t,r){return t<r?e<t?t:e>r?r:e:e<r?r:e>t?t:e}},function(e,t,r){"use strict";e.exports=function(e,t){if(!e||null==e.length)throw Error("Argument should be an array");t=null==t?1:Math.floor(t);for(var r=Array(2*t),n=0;n<t;n++){for(var a=-1/0,i=1/0,o=n,l=e.length;o<l;o+=t)e[o]>a&&(a=e[o]),e[o]<i&&(i=e[o]);r[n]=i,r[t+n]=a}return r}},function(e,t,r){var n=r(196);e.exports=function(e,t,r){if(!e)throw new TypeError("must specify data as first parameter");if(r=0|+(r||0),Array.isArray(e)&&e[0]&&"number"===typeof e[0][0]){var a,i,o,l,s=e[0].length,c=e.length*s;t&&"string"!==typeof t||(t=new(n(t||"float32"))(c+r));var u=t.length-r;if(c!==u)throw new Error("source length "+c+" ("+s+"x"+e.length+") does not match destination length "+u);for(a=0,o=r;a<e.length;a++)for(i=0;i<s;i++)t[o++]=null===e[a][i]?NaN:e[a][i]}else if(t&&"string"!==typeof t)t.set(e,r);else{var f=n(t||"float32");if(Array.isArray(e)||"array"===t)for(t=new f(e.length+r),a=0,o=r,l=t.length;o<l;o++,a++)t[o]=null===e[a]?NaN:e[a];else 0===r?t=new f(e):(t=new f(e.length+r)).set(e,r)}return t}},function(e,t,r){"use strict";r.r(t),r.d(t,"timeFormatDefaultLocale",(function(){return De})),r.d(t,"timeFormat",(function(){return h})),r.d(t,"timeParse",(function(){return g})),r.d(t,"utcFormat",(function(){return v})),r.d(t,"utcParse",(function(){return y})),r.d(t,"timeFormatLocale",(function(){return d})),r.d(t,"isoFormat",(function(){return Ne})),r.d(t,"isoParse",(function(){return Re}));var n=r(23),a=r(153),i=r(24),o=r(154),l=r(155),s=r(156);function c(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 u(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 f(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function d(e){var t=e.dateTime,r=e.date,l=e.time,s=e.periods,d=e.days,p=e.shortDays,h=e.months,g=e.shortMonths,v=T(s),y=A(s),b=T(d),x=A(d),w=T(p),_=A(p),k=T(h),ne=A(h),ke=T(g),De=A(g),Ie={a:function(e){return p[e.getDay()]},A:function(e){return d[e.getDay()]},b:function(e){return g[e.getMonth()]},B:function(e){return h[e.getMonth()]},c:null,d:Y,e:Y,f:Q,g:se,G:ue,H:G,I:X,j:Z,L:$,m:K,M:J,p:function(e){return s[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:je,s:ze,S:ee,u:te,U:re,V:ae,w:ie,W:oe,x:null,X:null,y:le,Y:ce,Z:fe,"%":Pe},Ne={a:function(e){return p[e.getUTCDay()]},A:function(e){return d[e.getUTCDay()]},b:function(e){return g[e.getUTCMonth()]},B:function(e){return h[e.getUTCMonth()]},c:null,d:de,e:de,f:ye,g:Oe,G:Ee,H:pe,I:he,j:ge,L:ve,m:me,M:be,p:function(e){return s[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:je,s:ze,S:xe,u:we,U:_e,V:Te,w:Ae,W:Se,x:null,X:null,y:Me,Y:Ce,Z:Le,"%":Pe},Re={a:function(e,t,r){var n=w.exec(t.slice(r));return n?(e.w=_[n[0].toLowerCase()],r+n[0].length):-1},A:function(e,t,r){var n=b.exec(t.slice(r));return n?(e.w=x[n[0].toLowerCase()],r+n[0].length):-1},b:function(e,t,r){var n=ke.exec(t.slice(r));return n?(e.m=De[n[0].toLowerCase()],r+n[0].length):-1},B:function(e,t,r){var n=k.exec(t.slice(r));return n?(e.m=ne[n[0].toLowerCase()],r+n[0].length):-1},c:function(e,r,n){return Ue(e,t,r,n)},d:I,e:I,f:H,g:P,G:L,H:R,I:R,j:N,L:U,m:D,M:F,p:function(e,t,r){var n=v.exec(t.slice(r));return n?(e.p=y[n[0].toLowerCase()],r+n[0].length):-1},q:z,Q:q,s:W,S:B,u:M,U:O,V:C,w:S,W:E,x:function(e,t,n){return Ue(e,r,t,n)},X:function(e,t,r){return Ue(e,l,t,r)},y:P,Y:L,Z:j,"%":V};function Fe(e,t){return function(r){var n,a,i,o=[],l=-1,s=0,c=e.length;for(r instanceof Date||(r=new Date(+r));++l<c;)37===e.charCodeAt(l)&&(o.push(e.slice(s,l)),null!=(a=m[n=e.charAt(++l)])?n=e.charAt(++l):a="e"===n?" ":"0",(i=t[n])&&(n=i(r,a)),o.push(n),s=l+1);return o.push(e.slice(s,l)),o.join("")}}function Be(e,t){return function(r){var l,s,d=f(1900,void 0,1);if(Ue(d,e,r+="",0)!=r.length)return null;if("Q"in d)return new Date(d.Q);if("s"in d)return new Date(1e3*d.s+("L"in d?d.L:0));if(t&&!("Z"in d)&&(d.Z=0),"p"in d&&(d.H=d.H%12+12*d.p),void 0===d.m&&(d.m="q"in d?d.q:0),"V"in d){if(d.V<1||d.V>53)return null;"w"in d||(d.w=1),"Z"in d?(s=(l=u(f(d.y,0,1))).getUTCDay(),l=s>4||0===s?n.c.ceil(l):Object(n.c)(l),l=a.a.offset(l,7*(d.V-1)),d.y=l.getUTCFullYear(),d.m=l.getUTCMonth(),d.d=l.getUTCDate()+(d.w+6)%7):(s=(l=c(f(d.y,0,1))).getDay(),l=s>4||0===s?i.c.ceil(l):Object(i.c)(l),l=o.b.offset(l,7*(d.V-1)),d.y=l.getFullYear(),d.m=l.getMonth(),d.d=l.getDate()+(d.w+6)%7)}else("W"in d||"U"in d)&&("w"in d||(d.w="u"in d?d.u%7:"W"in d?1:0),s="Z"in d?u(f(d.y,0,1)).getUTCDay():c(f(d.y,0,1)).getDay(),d.m=0,d.d="W"in d?(d.w+6)%7+7*d.W-(s+5)%7:d.w+7*d.U-(s+6)%7);return"Z"in d?(d.H+=d.Z/100|0,d.M+=d.Z%100,u(d)):c(d)}}function Ue(e,t,r,n){for(var a,i,o=0,l=t.length,s=r.length;o<l;){if(n>=s)return-1;if(37===(a=t.charCodeAt(o++))){if(a=t.charAt(o++),!(i=Re[a in m?t.charAt(o++):a])||(n=i(e,r,n))<0)return-1}else if(a!=r.charCodeAt(n++))return-1}return n}return Ie.x=Fe(r,Ie),Ie.X=Fe(l,Ie),Ie.c=Fe(t,Ie),Ne.x=Fe(r,Ne),Ne.X=Fe(l,Ne),Ne.c=Fe(t,Ne),{format:function(e){var t=Fe(e+="",Ie);return t.toString=function(){return e},t},parse:function(e){var t=Be(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=Fe(e+="",Ne);return t.toString=function(){return e},t},utcParse:function(e){var t=Be(e+="",!0);return t.toString=function(){return e},t}}}var p,h,g,v,y,m={"-":"",_:" ",0:"0"},b=/^\s*\d+/,x=/^%/,w=/[\\^$*+?|[\]().{}]/g;function _(e,t,r){var n=e<0?"-":"",a=(n?-e:e)+"",i=a.length;return n+(i<r?new Array(r-i+1).join(t)+a:a)}function k(e){return e.replace(w,"\\$&")}function T(e){return new RegExp("^(?:"+e.map(k).join("|")+")","i")}function A(e){for(var t={},r=-1,n=e.length;++r<n;)t[e[r].toLowerCase()]=r;return t}function S(e,t,r){var n=b.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function M(e,t,r){var n=b.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function O(e,t,r){var n=b.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function C(e,t,r){var n=b.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function E(e,t,r){var n=b.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function L(e,t,r){var n=b.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function P(e,t,r){var n=b.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function j(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function z(e,t,r){var n=b.exec(t.slice(r,r+1));return n?(e.q=3*n[0]-3,r+n[0].length):-1}function D(e,t,r){var n=b.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function I(e,t,r){var n=b.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function N(e,t,r){var n=b.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function R(e,t,r){var n=b.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function F(e,t,r){var n=b.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function B(e,t,r){var n=b.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function U(e,t,r){var n=b.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function H(e,t,r){var n=b.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function V(e,t,r){var n=x.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function q(e,t,r){var n=b.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function W(e,t,r){var n=b.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function Y(e,t){return _(e.getDate(),t,2)}function G(e,t){return _(e.getHours(),t,2)}function X(e,t){return _(e.getHours()%12||12,t,2)}function Z(e,t){return _(1+o.b.count(Object(l.a)(e),e),t,3)}function $(e,t){return _(e.getMilliseconds(),t,3)}function Q(e,t){return $(e,t)+"000"}function K(e,t){return _(e.getMonth()+1,t,2)}function J(e,t){return _(e.getMinutes(),t,2)}function ee(e,t){return _(e.getSeconds(),t,2)}function te(e){var t=e.getDay();return 0===t?7:t}function re(e,t){return _(i.g.count(Object(l.a)(e)-1,e),t,2)}function ne(e){var t=e.getDay();return t>=4||0===t?Object(i.i)(e):i.i.ceil(e)}function ae(e,t){return e=ne(e),_(i.i.count(Object(l.a)(e),e)+(4===Object(l.a)(e).getDay()),t,2)}function ie(e){return e.getDay()}function oe(e,t){return _(i.c.count(Object(l.a)(e)-1,e),t,2)}function le(e,t){return _(e.getFullYear()%100,t,2)}function se(e,t){return _((e=ne(e)).getFullYear()%100,t,2)}function ce(e,t){return _(e.getFullYear()%1e4,t,4)}function ue(e,t){var r=e.getDay();return _((e=r>=4||0===r?Object(i.i)(e):i.i.ceil(e)).getFullYear()%1e4,t,4)}function fe(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+_(t/60|0,"0",2)+_(t%60,"0",2)}function de(e,t){return _(e.getUTCDate(),t,2)}function pe(e,t){return _(e.getUTCHours(),t,2)}function he(e,t){return _(e.getUTCHours()%12||12,t,2)}function ge(e,t){return _(1+a.a.count(Object(s.a)(e),e),t,3)}function ve(e,t){return _(e.getUTCMilliseconds(),t,3)}function ye(e,t){return ve(e,t)+"000"}function me(e,t){return _(e.getUTCMonth()+1,t,2)}function be(e,t){return _(e.getUTCMinutes(),t,2)}function xe(e,t){return _(e.getUTCSeconds(),t,2)}function we(e){var t=e.getUTCDay();return 0===t?7:t}function _e(e,t){return _(n.g.count(Object(s.a)(e)-1,e),t,2)}function ke(e){var t=e.getUTCDay();return t>=4||0===t?Object(n.i)(e):n.i.ceil(e)}function Te(e,t){return e=ke(e),_(n.i.count(Object(s.a)(e),e)+(4===Object(s.a)(e).getUTCDay()),t,2)}function Ae(e){return e.getUTCDay()}function Se(e,t){return _(n.c.count(Object(s.a)(e)-1,e),t,2)}function Me(e,t){return _(e.getUTCFullYear()%100,t,2)}function Oe(e,t){return _((e=ke(e)).getUTCFullYear()%100,t,2)}function Ce(e,t){return _(e.getUTCFullYear()%1e4,t,4)}function Ee(e,t){var r=e.getUTCDay();return _((e=r>=4||0===r?Object(n.i)(e):n.i.ceil(e)).getUTCFullYear()%1e4,t,4)}function Le(){return"+0000"}function Pe(){return"%"}function je(e){return+e}function ze(e){return Math.floor(+e/1e3)}function De(e){return p=d(e),h=p.format,g=p.parse,v=p.utcFormat,y=p.utcParse,p}De({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"]});var Ie="%Y-%m-%dT%H:%M:%S.%LZ";var Ne=Date.prototype.toISOString?function(e){return e.toISOString()}:v(Ie);var Re=+new Date("2000-01-01T00:00:00.000Z")?function(e){var t=new Date(e);return isNaN(t)?null:t}:y(Ie)},function(e,t,r){"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}r.d(t,"a",(function(){return n}))},function(e,t){var r,n,a=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function l(e){if(r===setTimeout)return setTimeout(e,0);if((r===i||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"===typeof setTimeout?setTimeout:i}catch(e){r=i}try{n="function"===typeof clearTimeout?clearTimeout:o}catch(e){n=o}}();var s,c=[],u=!1,f=-1;function d(){u&&s&&(u=!1,s.length?c=s.concat(c):f=-1,c.length&&p())}function p(){if(!u){var e=l(d);u=!0;for(var t=c.length;t;){for(s=c,c=[];++f<t;)s&&s[f].run();f=-1,t=c.length}s=null,u=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===o||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function g(){}a.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];c.push(new h(e,t)),1!==c.length||u||l(p)},h.prototype.run=function(){this.fun.apply(null,this.array)},a.title="browser",a.browser=!0,a.env={},a.argv=[],a.version="",a.versions={},a.on=g,a.addListener=g,a.once=g,a.off=g,a.removeListener=g,a.removeAllListeners=g,a.emit=g,a.prependListener=g,a.prependOnceListener=g,a.listeners=function(e){return[]},a.binding=function(e){throw new Error("process.binding is not supported")},a.cwd=function(){return"/"},a.chdir=function(e){throw new Error("process.chdir is not supported")},a.umask=function(){return 0}},function(e,t){function r(t){return e.exports=r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports.default=e.exports,r(t)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){"use strict";e.exports=r(396)("forEach")},function(e,t,r){"use strict";e.exports=r(399)()?Object.assign:r(400)},function(e,t,r){"use strict";e.exports=r(411)()?Array.from:r(412)},function(e,t,r){"use strict";e.exports=r(414)()?globalThis:r(415)},function(e,t,r){"use strict";var n=Object.prototype.toString,a=n.call(function(){return arguments}());e.exports=function(e){return n.call(e)===a}},function(e,t,r){"use strict";var n=Object.prototype.toString,a=n.call("");e.exports=function(e){return"string"===typeof e||e&&"object"===typeof e&&(e instanceof String||n.call(e)===a)||!1}},function(e,t,r){"use strict";e.exports=function(){if("function"!==typeof Symbol||"function"!==typeof Object.getOwnPropertySymbols)return!1;if("symbol"===typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"===typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(t in e[t]=42,e)return!1;if("function"===typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"===typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"===typeof Object.getOwnPropertyDescriptor){var a=Object.getOwnPropertyDescriptor(e,t);if(42!==a.value||!0!==a.enumerable)return!1}return!0}},function(e,t,r){"use strict";var n=r(151),a=r(63),i=a("%Function.prototype.apply%"),o=a("%Function.prototype.call%"),l=a("%Reflect.apply%",!0)||n.call(o,i),s=a("%Object.getOwnPropertyDescriptor%",!0),c=a("%Object.defineProperty%",!0),u=a("%Math.max%");if(c)try{c({},"a",{value:1})}catch(d){c=null}e.exports=function(e){var t=l(n,o,arguments);if(s&&c){var r=s(t,"length");r.configurable&&c(t,"length",{value:1+u(0,e.length-(arguments.length-1))})}return t};var f=function(){return l(n,i,arguments)};c?c(e.exports,"apply",{value:f}):e.exports.apply=f},function(e,t,r){"use strict";var n=r(28),a=r(90).hoverlabel,i=r(22).extendFlat;e.exports={hoverlabel:{bgcolor:i({},a.bgcolor,{arrayOk:!0,description:"Sets the background color of the hover labels for this trace"}),bordercolor:i({},a.bordercolor,{arrayOk:!0,description:"Sets the border color of the hover labels for this trace."}),font:n({arrayOk:!0,editType:"none",description:"Sets the font used in hover labels."}),align:i({},a.align,{arrayOk:!0}),namelength:i({},a.namelength,{arrayOk:!0}),editType:"none"}}},function(e,t,r){"use strict";e.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50,HOVERID:"-hover"}},function(e,t,r){"use strict";e.exports={mode:{valType:"enumerated",dflt:"afterall",values:["immediate","next","afterall"],description:["Describes how a new animate call interacts with currently-running","animations. If `immediate`, current animations are interrupted and","the new animation is started. If `next`, the current frame is allowed","to complete, after which the new animation is started. If `afterall`","all existing frames are animated to completion before the new animation","is started."].join(" ")},direction:{valType:"enumerated",values:["forward","reverse"],dflt:"forward",description:["The direction in which to play the frames triggered by the animation call"].join(" ")},fromcurrent:{valType:"boolean",dflt:!1,description:["Play frames starting at the current frame instead of the beginning."].join(" ")},frame:{duration:{valType:"number",min:0,dflt:500,description:["The duration in milliseconds of each frame. If greater than the frame","duration, it will be limited to the frame duration."].join(" ")},redraw:{valType:"boolean",dflt:!0,description:["Redraw the plot at completion of the transition. This is desirable","for transitions that include properties that cannot be transitioned,","but may significantly slow down updates that do not require a full","redraw of the plot"].join(" ")}},transition:{duration:{valType:"number",min:0,dflt:500,editType:"none",description:["The duration of the transition, in milliseconds. If equal to zero,","updates are synchronous."].join(" ")},easing:{valType:"enumerated",dflt:"cubic-in-out",values:["linear","quad","cubic","sin","exp","circle","elastic","back","bounce","linear-in","quad-in","cubic-in","sin-in","exp-in","circle-in","elastic-in","back-in","bounce-in","linear-out","quad-out","cubic-out","sin-out","exp-out","circle-out","elastic-out","back-out","bounce-out","linear-in-out","quad-in-out","cubic-in-out","sin-in-out","exp-in-out","circle-in-out","elastic-in-out","back-in-out","bounce-in-out"],editType:"none",description:"The easing function used for the transition"},ordering:{valType:"enumerated",values:["layout first","traces first"],dflt:"layout first",editType:"none",description:["Determines whether the figure's layout or traces smoothly transitions","during updates that make both traces and layout change."].join(" ")}}}},function(e,t,r){"use strict";var n=r(7),a=r(9),i=r(20),o=r(5),l=r(0),s=l.strTranslate,c=r(10),u=r(8),f=r(25),d=r(91),p=r(33).OPPOSITE_SIDE,h=/ [XY][0-9]* /;e.exports={draw:function(e,t,r){var g,v=r.propContainer,y=r.propName,m=r.placeholder,b=r.traceIndex,x=r.avoid||{},w=r.attributes,_=r.transform,k=r.containerGroup,T=e._fullLayout,A=1,S=!1,M=v.title,O=(M&&M.text?M.text:"").trim(),C=M&&M.font?M.font:{},E=C.family,L=C.size,P=C.color;"title.text"===y?g="titleText":-1!==y.indexOf("axis")?g="axisTitleText":y.indexOf(!0)&&(g="colorbarTitleText");var j=e._context.edits[g];""===O?A=0:O.replace(h," % ")===m.replace(h," % ")&&(A=.2,S=!0,j||(O="")),r._meta?O=l.templateString(O,r._meta):T._meta&&(O=l.templateString(O,T._meta));var z,D=O||j;k||(k=l.ensureSingle(T._infolayer,"g","g-"+t),z=T._hColorbarMoveTitle);var I=k.selectAll("text").data(D?[0]:[]);if(I.enter().append("text"),I.text(O).attr("class",t),I.exit().remove(),!D)return k;function N(e){l.syncOrAsync([R,F],e)}function R(t){var r;return!_&&z&&(_={}),_?(r="",_.rotate&&(r+="rotate("+[_.rotate,w.x,w.y]+")"),(_.offset||z)&&(r+=s(0,(_.offset||0)-(z||0)))):r=null,t.attr("transform",r),t.style({"font-family":E,"font-size":n.round(L,2)+"px",fill:u.rgb(P),opacity:A*u.opacity(P),"font-weight":i.fontWeight}).attr(w).call(f.convertToTspans,e),i.previousPromises(e)}function F(e){var t=n.select(e.node().parentNode);if(x&&x.selection&&x.side&&O){t.attr("transform",null);var r=p[x.side],i="left"===x.side||"top"===x.side?-1:1,o=a(x.pad)?x.pad:2,u=c.bBox(t.node()),f={left:0,top:0,right:T.width,bottom:T.height},d=x.maxShift||i*(f[x.side]-u[x.side]),h=0;if(d<0)h=d;else{var g=x.offsetLeft||0,v=x.offsetTop||0;u.left-=g,u.right-=g,u.top-=v,u.bottom-=v,x.selection.each((function(){var e=c.bBox(this);l.bBoxIntersect(u,e,o)&&(h=Math.max(h,i*(e[x.side]-u[r])+o))})),h=Math.min(d,h)}if(h>0||d<0){var y={left:[-h,0],right:[h,0],top:[0,-h],bottom:[0,h]}[x.side];t.attr("transform",s(y[0],y[1]))}}}return I.call(N),j&&(O?I.on(".opacity",null):(A=0,S=!0,I.text(m).on("mouseover.opacity",(function(){n.select(this).transition().duration(d.SHOW_PLACEHOLDER).style("opacity",1)})).on("mouseout.opacity",(function(){n.select(this).transition().duration(d.HIDE_PLACEHOLDER).style("opacity",0)}))),I.call(f.makeEditable,{gd:e}).on("edit",(function(t){void 0!==b?o.call("_guiRestyle",e,y,t,b):o.call("_guiRelayout",e,y,t)})).on("cancel",(function(){this.text(this.attr("data-unformatted")).call(N)})).on("input",(function(e){this.text(e||" ").call(f.positionText,w.x,w.y)}))),I.classed("js-placeholder",S),k}}},function(e,t,r){"use strict";var n=r(175),a=r(176),i=a.CIRCLE_SIDES,o=a.SQRT2,l=r(177),s=l.p2r,c=l.r2p,u=[0,3,4,5,6,1,2],f=[0,3,4,1,2];function d(e,t){return Math.abs(e-t)<=1e-6}function p(e,t){var r=t[1]-e[1],n=t[2]-e[2];return Math.sqrt(r*r+n*n)}t.writePaths=function(e){var t=e.length;if(!t)return"M0,0Z";for(var r="",n=0;n<t;n++)for(var a=e[n].length,i=0;i<a;i++){var o=e[n][i][0];if("Z"===o)r+="Z";else for(var l=e[n][i].length,s=0;s<l;s++){var c=s;"Q"===o||"S"===o?c=f[s]:"C"===o&&(c=u[s]),r+=e[n][i][c],s>0&&s<l-1&&(r+=",")}}return r},t.readPaths=function(e,t,r,a){var o,l,u,f=n(e),d=[],p=-1,h=0,g=0,v=function(){l=h,u=g};v();for(var y=0;y<f.length;y++){var m,b,x,w,_=[],k=f[y][0],T=k;switch(k){case"M":p++,d[p]=[],h=+f[y][1],g=+f[y][2],_.push([T,h,g]),v();break;case"Q":case"S":m=+f[y][1],x=+f[y][2],h=+f[y][3],g=+f[y][4],_.push([T,h,g,m,x]);break;case"C":m=+f[y][1],x=+f[y][2],b=+f[y][3],w=+f[y][4],h=+f[y][5],g=+f[y][6],_.push([T,h,g,m,x,b,w]);break;case"T":case"L":h=+f[y][1],g=+f[y][2],_.push([T,h,g]);break;case"H":T="L",h=+f[y][1],_.push([T,h,g]);break;case"V":T="L",g=+f[y][1],_.push([T,h,g]);break;case"A":T="L";var A=+f[y][1],S=+f[y][2];+f[y][4]||(A=-A,S=-S);var M=h-A,O=g;for(o=1;o<=i/2;o++){var C=2*Math.PI*o/i;_.push([T,M+A*Math.cos(C),O+S*Math.sin(C)])}break;case"Z":h===l&&g===u||(h=l,g=u,_.push([T,h,g]))}for(var E=(r||{}).domain,L=t._fullLayout._size,P=r&&"pixel"===r.xsizemode,j=r&&"pixel"===r.ysizemode,z=!1===a,D=0;D<_.length;D++){for(o=0;o+2<7;o+=2){var I=_[D][o+1],N=_[D][o+2];void 0!==I&&void 0!==N&&(h=I,g=N,r&&(r.xaxis&&r.xaxis.p2r?(z&&(I-=r.xaxis._offset),I=P?c(r.xaxis,r.xanchor)+I:s(r.xaxis,I)):(z&&(I-=L.l),E?I=E.x[0]+I/L.w:I/=L.w),r.yaxis&&r.yaxis.p2r?(z&&(N-=r.yaxis._offset),N=j?c(r.yaxis,r.yanchor)-N:s(r.yaxis,N)):(z&&(N-=L.t),N=E?E.y[1]-N/L.h:1-N/L.h)),_[D][o+1]=I,_[D][o+2]=N)}d[p].push(_[D].slice())}}return d},t.pointsShapeRectangle=function(e){if(5!==e.length)return!1;for(var t=1;t<3;t++){if(!d(e[0][t]-e[1][t],e[3][t]-e[2][t]))return!1;if(!d(e[0][t]-e[3][t],e[1][t]-e[2][t]))return!1}return!(!d(e[0][1],e[1][1])&&!d(e[0][1],e[3][1]))&&!!(p(e[0],e[1])*p(e[0],e[3]))},t.pointsShapeEllipse=function(e){var t=e.length;if(t!==i+1)return!1;t=i;for(var r=0;r<t;r++){var n=(2*t-r)%t,a=(t/2+n)%t,o=(t/2+r)%t;if(!d(p(e[r],e[o]),p(e[n],e[a])))return!1}return!0},t.handleEllipse=function(e,r,n){if(!e)return[r,n];var a=t.ellipseOver({x0:r[0],y0:r[1],x1:n[0],y1:n[1]}),l=(a.x1+a.x0)/2,s=(a.y1+a.y0)/2,c=(a.x1-a.x0)/2,u=(a.y1-a.y0)/2;c||(c=u/=o),u||(u=c/=o);for(var f=[],d=0;d<i;d++){var p=2*d*Math.PI/i;f.push([l+c*Math.cos(p),s+u*Math.sin(p)])}return f},t.ellipseOver=function(e){var t=e.x0,r=e.y0,n=e.x1,a=e.y1,i=n-t,l=a-r,s=((t-=i)+n)/2,c=((r-=l)+a)/2;return{x0:s-(i*=o),y0:c-(l*=o),x1:s+i,y1:c+l}}},function(e,t,r){"use strict";var n=r(545),a=r(5),i=r(10).dashStyle,o=r(8),l=r(41),s=r(40).makeEventData,c=r(99),u=c.freeMode,f=c.rectMode,d=c.drawMode,p=c.openMode,h=c.selectMode,g=r(272),v=r(123).handleEllipse,y=r(273),m=r(0),b=r(275),x=r(164),w=r(21).getFromId,_=r(172),k=r(173).redrawReglTraces,T=r(29),A=T.MINSELECT,S=b.filter,M=b.tester,O=r(96).clearSelect,C=r(177),E=C.p2r,L=C.axValue,P=C.getTransform;function j(e,t,r,n,a,i,o){var l,s,c,u,f,d,h,v,y,m=t._hoverdata,b=t._fullLayout.clickmode.indexOf("event")>-1,x=[];if(function(e){return e&&Array.isArray(e)&&!0!==e[0].hoverOnBox}(m)){N(e,t,i);var w=function(e,t){var r,n,a=e[0],i=-1,o=[];for(n=0;n<t.length;n++)if(r=t[n],a.fullData._expandedIndex===r.cd[0].trace._expandedIndex){if(!0===a.hoverOnBox)break;void 0!==a.pointNumber?i=a.pointNumber:void 0!==a.binNumber&&(i=a.binNumber,o=a.pointNumbers);break}return{pointNumber:i,pointNumbers:o,searchInfo:r}}(m,l=F(t,r,n,a));if(w.pointNumbers.length>0?function(e,t){var r,n,a,i=[];for(a=0;a<e.length;a++)(r=e[a]).cd[0].trace.selectedpoints&&r.cd[0].trace.selectedpoints.length>0&&i.push(r);if(1===i.length&&i[0]===t.searchInfo&&(n=t.searchInfo.cd[0].trace).selectedpoints.length===t.pointNumbers.length){for(a=0;a<t.pointNumbers.length;a++)if(n.selectedpoints.indexOf(t.pointNumbers[a])<0)return!1;return!0}return!1}(l,w):function(e){var t,r,n=0;for(r=0;r<e.length;r++)if((t=e[r].cd[0].trace).selectedpoints){if(t.selectedpoints.length>1)return!1;if((n+=t.selectedpoints.length)>1)return!1}return 1===n}(l)&&(d=B(w))){for(o&&o.remove(),y=0;y<l.length;y++)(s=l[y])._module.selectPoints(s,!1);U(t,l),R(i),b&&t.emit("plotly_deselect",null)}else{for(h=e.shiftKey&&(void 0!==d?d:B(w)),c=function(e,t,r){return{pointNumber:e,searchInfo:t,subtract:r}}(w.pointNumber,w.searchInfo,h),u=I(i.selectionDefs.concat([c])),y=0;y<l.length;y++)if(f=H(l[y]._module.selectPoints(l[y],u),l[y]),x.length)for(var _=0;_<f.length;_++)x.push(f[_]);else x=f;if(U(t,l,v={points:x}),c&&i&&i.selectionDefs.push(c),o){var k=i.mergedPolygons,T=p(i.dragmode);g(V(k,T),o,i)}b&&t.emit("plotly_selected",v)}}}function z(e){return"pointNumber"in e&&"searchInfo"in e}function D(e){return{xmin:0,xmax:0,ymin:0,ymax:0,pts:[],contains:function(t,r,n,a){var i=e.searchInfo.cd[0].trace._expandedIndex;return a.cd[0].trace._expandedIndex===i&&n===e.pointNumber},isRect:!1,degenerate:!1,subtract:e.subtract}}function I(e){for(var t=[],r=z(e[0])?0:e[0][0][0],n=r,a=z(e[0])?0:e[0][0][1],i=a,o=0;o<e.length;o++)if(z(e[o]))t.push(D(e[o]));else{var l=b.tester(e[o]);l.subtract=e[o].subtract,t.push(l),r=Math.min(r,l.xmin),n=Math.max(n,l.xmax),a=Math.min(a,l.ymin),i=Math.max(i,l.ymax)}return{xmin:r,xmax:n,ymin:a,ymax:i,pts:[],contains:function(e,r,n,a){for(var i=!1,o=0;o<t.length;o++)t[o].contains(e,r,n,a)&&(i=!1===t[o].subtract);return i},isRect:!1,degenerate:!1}}function N(e,t,r){t._fullLayout._drawing=!1;var n=t._fullLayout,a=r.plotinfo,i=r.dragmode,o=n._lastSelectedSubplot&&n._lastSelectedSubplot===a.id,l=(e.shiftKey||e.altKey)&&!(d(i)&&p(i));o&&l&&a.selection&&a.selection.selectionDefs&&!r.selectionDefs?(r.selectionDefs=a.selection.selectionDefs,r.mergedPolygons=a.selection.mergedPolygons):l&&a.selection||R(r),o||(O(t),n._lastSelectedSubplot=a.id)}function R(e){var t=e.dragmode,r=e.plotinfo,n=e.gd;if(n._fullLayout._activeShapeIndex>=0&&n._fullLayout._deactivateShape(n),d(t)){var i=n._fullLayout._zoomlayer.selectAll(".select-outline-"+r.id);if(i&&n._fullLayout._drawing){var o=y(i,e);o&&a.call("_guiRelayout",n,{shapes:o}),n._fullLayout._drawing=!1}}r.selection={},r.selection.selectionDefs=e.selectionDefs=[],r.selection.mergedPolygons=e.mergedPolygons=[]}function F(e,t,r,n){var a,i,o,l=[],s=t.map((function(e){return e._id})),c=r.map((function(e){return e._id}));for(o=0;o<e.calcdata.length;o++)if(!0===(i=(a=e.calcdata[o])[0].trace).visible&&i._module&&i._module.selectPoints)if(!n||i.subplot!==n&&i.geo!==n)if("splom"===i.type&&i._xaxes[s[0]]&&i._yaxes[c[0]]){var u=d(i._module,a,t[0],r[0]);u.scene=e._fullLayout._splomScenes[i.uid],l.push(u)}else if("sankey"===i.type){var f=d(i._module,a,t[0],r[0]);l.push(f)}else{if(-1===s.indexOf(i.xaxis))continue;if(-1===c.indexOf(i.yaxis))continue;l.push(d(i._module,a,w(e,i.xaxis),w(e,i.yaxis)))}else l.push(d(i._module,a,t[0],r[0]));return l;function d(e,t,r,n){return{_module:e,cd:t,xaxis:r,yaxis:n}}}function B(e){var t=e.searchInfo.cd[0].trace,r=e.pointNumber,n=e.pointNumbers,a=n.length>0?n[0]:r;return!!t.selectedpoints&&t.selectedpoints.indexOf(a)>-1}function U(e,t,r){var n,i,o,l;for(n=0;n<t.length;n++){var s=t[n].cd[0].trace._fullInput,c=e._fullLayout._tracePreGUI[s.uid]||{};void 0===c.selectedpoints&&(c.selectedpoints=s._input.selectedpoints||null)}if(r){var u=r.points||[];for(n=0;n<t.length;n++)(l=t[n].cd[0].trace)._input.selectedpoints=l._fullInput.selectedpoints=[],l._fullInput!==l&&(l.selectedpoints=[]);for(n=0;n<u.length;n++){var f=u[n],d=f.data,p=f.fullData;f.pointIndices?([].push.apply(d.selectedpoints,f.pointIndices),l._fullInput!==l&&[].push.apply(p.selectedpoints,f.pointIndices)):(d.selectedpoints.push(f.pointIndex),l._fullInput!==l&&p.selectedpoints.push(f.pointIndex))}}else for(n=0;n<t.length;n++)delete(l=t[n].cd[0].trace).selectedpoints,delete l._input.selectedpoints,l._fullInput!==l&&delete l._fullInput.selectedpoints;var h=!1;for(n=0;n<t.length;n++){l=(o=(i=t[n]).cd)[0].trace,a.traceIs(l,"regl")&&(h=!0);var g=i._module,v=g.styleOnSelect||g.style;v&&(v(e,o,o[0].node3),o[0].nodeRangePlot3&&v(e,o,o[0].nodeRangePlot3))}h&&(_(e),k(e))}function H(e,t){if(Array.isArray(e))for(var r=t.cd,n=t.cd[0].trace,a=0;a<e.length;a++)e[a]=s(e[a],n,r);return e}function V(e,t){for(var r=[],n=0;n<e.length;n++){r[n]=[];for(var a=0;a<e[n].length;a++){r[n][a]=[],r[n][a][0]=a?"L":"M";for(var i=0;i<e[n][a].length;i++)r[n][a].push(e[n][a][i])}t||r[n].push(["Z",r[n][0][1],r[n][0][2]])}return r}e.exports={prepSelect:function(e,t,r,a,s){var c=u(s),y=f(s),b=p(s),w=d(s),_=h(s),k="drawcircle"===s,O="drawline"===s||k,C=a.gd,z=C._fullLayout,D=z._zoomlayer,B=a.element.getBoundingClientRect(),q=a.plotinfo,W=P(q),Y=t-B.left,G=r-B.top;z._calcInverseTransform(C);var X=m.apply3DTransform(z._invTransform)(Y,G);Y=X[0],G=X[1];var Z,$,Q,K,J,ee,te,re=z._invScaleX,ne=z._invScaleY,ae=Y,ie=G,oe="M"+Y+","+G,le=a.xaxes[0]._length,se=a.yaxes[0]._length,ce=a.xaxes.concat(a.yaxes),ue=e.altKey&&!(d(s)&&b);N(e,C,a),c&&(Z=S([[Y,G]],T.BENDPX));var fe=D.selectAll("path.select-outline-"+q.id).data(w?[0]:[1,2]),de=z.newshape;fe.enter().append("path").attr("class",(function(e){return"select-outline select-outline-"+e+" select-outline-"+q.id})).style(w?{opacity:de.opacity/2,fill:b?void 0:de.fillcolor,stroke:de.line.color,"stroke-dasharray":i(de.line.dash,de.line.width),"stroke-width":de.line.width+"px"}:{}).attr("fill-rule",de.fillrule).classed("cursor-move",!!w).attr("transform",W).attr("d",oe+"Z");var pe,he=D.append("path").attr("class","zoombox-corners").style({fill:o.background,stroke:o.defaultLine,"stroke-width":1}).attr("transform",W).attr("d","M0,0Z"),ge=z._uid+T.SELECTID,ve=[],ye=F(C,a.xaxes,a.yaxes,a.subplot);function me(e,t){return e-t}pe=q.fillRangeItems?q.fillRangeItems:y?function(e,t){var r=e.range={};for(J=0;J<ce.length;J++){var n=ce[J],a=n._id.charAt(0);r[n._id]=[E(n,t[a+"min"]),E(n,t[a+"max"])].sort(me)}}:function(e,t,r){var n=e.lassoPoints={};for(J=0;J<ce.length;J++){var a=ce[J];n[a._id]=r.filtered.map(L(a))}},a.moveFn=function(e,t){ae=Math.max(0,Math.min(le,re*e+Y)),ie=Math.max(0,Math.min(se,ne*t+G));var r=Math.abs(ae-Y),i=Math.abs(ie-G);if(y){var o,l,s;if(_){var u=z.selectdirection;switch(o="any"===u?i<Math.min(.6*r,A)?"h":r<Math.min(.6*i,A)?"v":"d":u){case"h":l=k?se/2:0,s=se;break;case"v":l=k?le/2:0,s=le}}if(w)switch(z.newshape.drawdirection){case"vertical":o="h",l=k?se/2:0,s=se;break;case"horizontal":o="v",l=k?le/2:0,s=le;break;case"ortho":r<i?(o="h",l=G,s=ie):(o="v",l=Y,s=ae);break;default:o="d"}"h"===o?((K=O?v(k,[ae,l],[ae,s]):[[Y,l],[Y,s],[ae,s],[ae,l]]).xmin=O?ae:Math.min(Y,ae),K.xmax=O?ae:Math.max(Y,ae),K.ymin=Math.min(l,s),K.ymax=Math.max(l,s),he.attr("d","M"+K.xmin+","+(G-A)+"h-4v"+2*A+"h4ZM"+(K.xmax-1)+","+(G-A)+"h4v"+2*A+"h-4Z")):"v"===o?((K=O?v(k,[l,ie],[s,ie]):[[l,G],[l,ie],[s,ie],[s,G]]).xmin=Math.min(l,s),K.xmax=Math.max(l,s),K.ymin=O?ie:Math.min(G,ie),K.ymax=O?ie:Math.max(G,ie),he.attr("d","M"+(Y-A)+","+K.ymin+"v-4h"+2*A+"v4ZM"+(Y-A)+","+(K.ymax-1)+"v4h"+2*A+"v-4Z")):"d"===o&&((K=O?v(k,[Y,G],[ae,ie]):[[Y,G],[Y,ie],[ae,ie],[ae,G]]).xmin=Math.min(Y,ae),K.xmax=Math.max(Y,ae),K.ymin=Math.min(G,ie),K.ymax=Math.max(G,ie),he.attr("d","M0,0Z"))}else c&&(Z.addPt([ae,ie]),K=Z.filtered);a.selectionDefs&&a.selectionDefs.length?(Q=function(e,t,r){if(r)return n.difference({regions:e,inverted:!1},{regions:[t],inverted:!1}).regions;return n.union({regions:e,inverted:!1},{regions:[t],inverted:!1}).regions}(a.mergedPolygons,K,ue),K.subtract=ue,$=I(a.selectionDefs.concat([K]))):(Q=[K],$=M(K)),g(V(Q,b),fe,a),_&&x.throttle(ge,T.SELECTDELAY,(function(){var e;ve=[];var t,r=[];for(J=0;J<ye.length;J++)if(t=(ee=ye[J])._module.selectPoints(ee,$),r.push(t),e=H(t,ee),ve.length)for(var n=0;n<e.length;n++)ve.push(e[n]);else ve=e;U(C,ye,te={points:ve}),pe(te,K,Z),a.gd.emit("plotly_selecting",te)}))},a.clickFn=function(e,t){if(he.remove(),C._fullLayout._activeShapeIndex>=0)C._fullLayout._deactivateShape(C);else if(!w){var r=z.clickmode;x.done(ge).then((function(){if(x.clear(ge),2===e){for(fe.remove(),J=0;J<ye.length;J++)(ee=ye[J])._module.selectPoints(ee,!1);U(C,ye),R(a),C.emit("plotly_deselect",null)}else r.indexOf("select")>-1&&j(t,C,a.xaxes,a.yaxes,a.subplot,a,fe),"event"===r&&C.emit("plotly_selected",void 0);l.click(C,t)})).catch(m.error)}},a.doneFn=function(){he.remove(),x.done(ge).then((function(){x.clear(ge),a.gd.emit("plotly_selected",te),K&&a.selectionDefs&&(K.subtract=ue,a.selectionDefs.push(K),a.mergedPolygons.length=0,[].push.apply(a.mergedPolygons,Q)),a.doneFnCompleted&&a.doneFnCompleted(ve)})).catch(m.error),w&&R(a)}},clearSelect:O,clearSelectionsCache:R,selectOnClick:j}},function(e,t,r){"use strict";e.exports={PTS_LINESONLY:20,minTolerance:.2,toleranceGrowth:10,maxScreensAway:20,eventDataKeys:[]}},function(e,t,r){"use strict";var n=r(0).dateTick0,a=r(19).ONEWEEK;function i(e,t){return n(t,e%a===0?1:0)}e.exports=function(e,t,r,n,a){if(a||(a={x:!0,y:!0}),a.x){var o=n("xperiod");o&&(n("xperiod0",i(o,t.xcalendar)),n("xperiodalignment"))}if(a.y){var l=n("yperiod");l&&(n("yperiod0",i(l,t.ycalendar)),n("yperiodalignment"))}}},function(e,t,r){"use strict";var n=r(9),a=r(0),i=a.dateTime2ms,o=a.incrementMonth,l=r(19).ONEAVGMONTH;e.exports=function(e,t,r,a){if("date"!==t.type)return{vals:a};var s=e[r+"periodalignment"];if(!s)return{vals:a};var c,u=e[r+"period"];if(n(u)){if((u=+u)<=0)return{vals:a}}else if("string"===typeof u&&"M"===u.charAt(0)){var f=+u.substring(1);if(!(f>0&&Math.round(f)===f))return{vals:a};c=f}for(var d=t.calendar,p="start"===s,h="end"===s,g=e[r+"period0"],v=i(g,d)||0,y=[],m=[],b=[],x=a.length,w=0;w<x;w++){var _,k,T,A=a[w];if(c){for(_=Math.round((A-v)/(c*l)),T=o(v,c*_,d);T>A;)T=o(T,-c,d);for(;T<=A;)T=o(T,c,d);k=o(T,-c,d)}else{for(T=v+(_=Math.round((A-v)/u))*u;T>A;)T-=u;for(;T<=A;)T+=u;k=T-u}y[w]=p?k:h?T:(k+T)/2,m[w]=k,b[w]=T}return{vals:y,starts:m,ends:b}}},function(e,t,r){"use strict";var n=r(292),a=r(28),i=r(29),o=r(17).templatedArray,l=r(185);function s(e){return["In order for absolute positioning of the arrow to work, *a"+e+"ref* must be exactly the same as *"+e+"ref*, otherwise *a"+e+"ref* will revert to *pixel* (explained next).","For relative positioning, *a"+e+"ref* can be set to *pixel*,","in which case the *a"+e+"* value is specified in pixels","relative to *"+e+"*.","Absolute positioning is useful","for trendline annotations which should continue to indicate","the correct trend when zoomed. Relative positioning is useful","for specifying the text offset for an annotated point."].join(" ")}function c(e,t,r){return["Sets the",e,"component of the arrow tail about the arrow head.","If `a"+e+"ref` is `pixel`, a positive (negative)","component corresponds to an arrow pointing","from",r,"to",t,"("+t,"to",r+").","If `a"+e+"ref` is not `pixel` and is exactly the same as `"+e+"ref`,","this is an absolute value on that axis,","like `"+e+"`, specified in the same coordinates as `"+e+"ref`."].join(" ")}e.exports=o("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw",description:["Determines whether or not this annotation is visible."].join(" ")},text:{valType:"string",editType:"calc+arraydraw",description:["Sets the text associated with this annotation.","Plotly uses a subset of HTML tags to do things like","newline (<br>), bold (<b></b>), italics (<i></i>),","hyperlinks (<a href='...'></a>). Tags <em>, <sup>, <sub>","<span> are also supported."].join(" ")},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw",description:["Sets the angle at which the `text` is drawn","with respect to the horizontal."].join(" ")},font:a({editType:"calc+arraydraw",colorEditType:"arraydraw",description:"Sets the annotation text font."}),width:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw",description:["Sets an explicit width for the text box. null (default) lets the","text set the box width. Wider text will be clipped.","There is no automatic wrapping; use <br> to start a new line."].join(" ")},height:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw",description:["Sets an explicit height for the text box. null (default) lets the","text set the box height. Taller text will be clipped."].join(" ")},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw",description:"Sets the opacity of the annotation (text + arrow)."},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",editType:"arraydraw",description:["Sets the horizontal alignment of the `text` within the box.","Has an effect only if `text` spans two or more lines","(i.e. `text` contains one or more <br> HTML tags) or if an","explicit width is set to override the text width."].join(" ")},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"arraydraw",description:["Sets the vertical alignment of the `text` within the box.","Has an effect only if an explicit height is set to override","the text height."].join(" ")},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw",description:"Sets the background color of the annotation."},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw",description:["Sets the color of the border enclosing the annotation `text`."].join(" ")},borderpad:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw",description:["Sets the padding (in px) between the `text`","and the enclosing border."].join(" ")},borderwidth:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw",description:["Sets the width (in px) of the border enclosing","the annotation `text`."].join(" ")},showarrow:{valType:"boolean",dflt:!0,editType:"calc+arraydraw",description:["Determines whether or not the annotation is drawn with an arrow.","If *true*, `text` is placed near the arrow's tail.","If *false*, `text` lines up with the `x` and `y` provided."].join(" ")},arrowcolor:{valType:"color",editType:"arraydraw",description:"Sets the color of the annotation arrow."},arrowhead:{valType:"integer",min:0,max:n.length,dflt:1,editType:"arraydraw",description:"Sets the end annotation arrow head style."},startarrowhead:{valType:"integer",min:0,max:n.length,dflt:1,editType:"arraydraw",description:"Sets the start annotation arrow head style."},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",editType:"arraydraw",description:"Sets the annotation arrow head position."},arrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw",description:["Sets the size of the end annotation arrow head, relative to `arrowwidth`.","A value of 1 (default) gives a head about 3x as wide as the line."].join(" ")},startarrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw",description:["Sets the size of the start annotation arrow head, relative to `arrowwidth`.","A value of 1 (default) gives a head about 3x as wide as the line."].join(" ")},arrowwidth:{valType:"number",min:.1,editType:"calc+arraydraw",description:"Sets the width (in px) of annotation arrow line."},standoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw",description:["Sets a distance, in pixels, to move the end arrowhead away from the","position it is pointing at, for example to point at the edge of","a marker independent of zoom. Note that this shortens the arrow","from the `ax` / `ay` vector, in contrast to `xshift` / `yshift`","which moves everything by this amount."].join(" ")},startstandoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw",description:["Sets a distance, in pixels, to move the start arrowhead away from the","position it is pointing at, for example to point at the edge of","a marker independent of zoom. Note that this shortens the arrow","from the `ax` / `ay` vector, in contrast to `xshift` / `yshift`","which moves everything by this amount."].join(" ")},ax:{valType:"any",editType:"calc+arraydraw",description:[c("x","left","right")].join(" ")},ay:{valType:"any",editType:"calc+arraydraw",description:[c("y","top","bottom")].join(" ")},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",i.idRegex.x.toString()],editType:"calc",description:["Indicates in what coordinates the tail of the","annotation (ax,ay) is specified.",l.axisRefDescription("ax","left","right"),s("x")].join(" ")},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",i.idRegex.y.toString()],editType:"calc",description:["Indicates in what coordinates the tail of the","annotation (ax,ay) is specified.",l.axisRefDescription("ay","bottom","top"),s("y")].join(" ")},xref:{valType:"enumerated",values:["paper",i.idRegex.x.toString()],editType:"calc",description:["Sets the annotation's x coordinate axis.",l.axisRefDescription("x","left","right")].join(" ")},x:{valType:"any",editType:"calc+arraydraw",description:["Sets the annotation's x position.","If the axis `type` is *log*, then you must take the","log of your desired range.","If the axis `type` is *date*, it should be date strings,","like date data, though Date objects and unix milliseconds","will be accepted and converted to strings.","If the axis `type` is *category*, it should be numbers,","using the scale where each category is assigned a serial","number from zero in the order it appears."].join(" ")},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw",description:["Sets the text box's horizontal position anchor","This anchor binds the `x` position to the *left*, *center*","or *right* of the annotation.","For example, if `x` is set to 1, `xref` to *paper* and","`xanchor` to *right* then the right-most portion of the","annotation lines up with the right-most edge of the","plotting area.","If *auto*, the anchor is equivalent to *center* for","data-referenced annotations or if there is an arrow,","whereas for paper-referenced with no arrow, the anchor picked","corresponds to the closest side."].join(" ")},xshift:{valType:"number",dflt:0,editType:"calc+arraydraw",description:["Shifts the position of the whole annotation and arrow to the","right (positive) or left (negative) by this many pixels."].join(" ")},yref:{valType:"enumerated",values:["paper",i.idRegex.y.toString()],editType:"calc",description:["Sets the annotation's y coordinate axis.",l.axisRefDescription("y","bottom","top")].join(" ")},y:{valType:"any",editType:"calc+arraydraw",description:["Sets the annotation's y position.","If the axis `type` is *log*, then you must take the","log of your desired range.","If the axis `type` is *date*, it should be date strings,","like date data, though Date objects and unix milliseconds","will be accepted and converted to strings.","If the axis `type` is *category*, it should be numbers,","using the scale where each category is assigned a serial","number from zero in the order it appears."].join(" ")},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",editType:"calc+arraydraw",description:["Sets the text box's vertical position anchor","This anchor binds the `y` position to the *top*, *middle*","or *bottom* of the annotation.","For example, if `y` is set to 1, `yref` to *paper* and","`yanchor` to *top* then the top-most portion of the","annotation lines up with the top-most edge of the","plotting area.","If *auto*, the anchor is equivalent to *middle* for","data-referenced annotations or if there is an arrow,","whereas for paper-referenced with no arrow, the anchor picked","corresponds to the closest side."].join(" ")},yshift:{valType:"number",dflt:0,editType:"calc+arraydraw",description:["Shifts the position of the whole annotation and arrow up","(positive) or down (negative) by this many pixels."].join(" ")},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,editType:"arraydraw",description:["Makes this annotation respond to clicks on the plot.","If you click a data point that exactly matches the `x` and `y`","values of this annotation, and it is hidden (visible: false),","it will appear. In *onoff* mode, you must click the same point","again to make it disappear, so if you click multiple points,","you can show multiple annotations. In *onout* mode, a click","anywhere else in the plot (on another data point or not) will","hide this annotation.","If you need to show/hide this annotation in response to different","`x` or `y` values, you can set `xclick` and/or `yclick`. This is","useful for example to label the side of a bar. To label markers","though, `standoff` is preferred over `xclick` and `yclick`."].join(" ")},xclick:{valType:"any",editType:"arraydraw",description:["Toggle this annotation when clicking a data point whose `x` value","is `xclick` rather than the annotation's `x` value."].join(" ")},yclick:{valType:"any",editType:"arraydraw",description:["Toggle this annotation when clicking a data point whose `y` value","is `yclick` rather than the annotation's `y` value."].join(" ")},hovertext:{valType:"string",editType:"arraydraw",description:["Sets text to appear when hovering over this annotation.","If omitted or blank, no hover label will appear."].join(" ")},hoverlabel:{bgcolor:{valType:"color",editType:"arraydraw",description:["Sets the background color of the hover label.","By default uses the annotation's `bgcolor` made opaque,","or white if it was transparent."].join(" ")},bordercolor:{valType:"color",editType:"arraydraw",description:["Sets the border color of the hover label.","By default uses either dark grey or white, for maximum","contrast with `hoverlabel.bgcolor`."].join(" ")},font:a({editType:"arraydraw",description:["Sets the hover label text font.","By default uses the global hover font and size,","with color from `hoverlabel.bordercolor`."].join(" ")}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw",description:["Determines whether the annotation text box captures mouse move","and click events, or allows those events to pass through to data","points in the plot that may be behind the annotation. By default","`captureevents` is *false* unless `hovertext` is provided.","If you use the event `plotly_clickannotation` without `hovertext`","you must explicitly enable `captureevents`."].join(" ")},editType:"calc",_deprecated:{ref:{valType:"string",editType:"calc",description:["Obsolete. Set `xref` and `yref` separately instead."].join(" ")}}})},function(e,t,r){"use strict";e.exports={name:"sliders",containerClassName:"slider-container",groupClassName:"slider-group",inputAreaClass:"slider-input-area",railRectClass:"slider-rail-rect",railTouchRectClass:"slider-rail-touch-rect",gripRectClass:"slider-grip-rect",tickRectClass:"slider-tick-rect",inputProxyClass:"slider-input-proxy",labelsClass:"slider-labels",labelGroupClass:"slider-label-group",labelClass:"slider-label",currentValueClass:"slider-current-value",railHeight:5,menuIndexAttrName:"slider-active-index",autoMarginIdRoot:"slider-",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:"#bec8d9",railBgColor:"#f8fafc",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:"#bec8d9",gripBgColor:"#f6f8fa",gripBgActiveColor:"#dbdde0",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:"#333",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:"#333",minorTickLength:4,currentValuePadding:8,currentValueInset:0}},function(e,t,r){"use strict";var n=r(44),a=r(81).attributes,i=r(28),o=r(45),l=r(35).hovertemplateAttrs,s=r(35).texttemplateAttrs,c=r(22).extendFlat,u=i({editType:"plot",arrayOk:!0,colorEditType:"plot",description:"Sets the font used for `textinfo`."});e.exports={labels:{valType:"data_array",editType:"calc",description:["Sets the sector labels.","If `labels` entries are duplicated, we sum associated `values`","or simply count occurrences if `values` is not provided.","For other array attributes (including color) we use the first","non-empty entry among all occurrences of the label."].join(" ")},label0:{valType:"number",dflt:0,editType:"calc",description:["Alternate to `labels`.","Builds a numeric set of labels.","Use with `dlabel`","where `label0` is the starting label and `dlabel` the step."].join(" ")},dlabel:{valType:"number",dflt:1,editType:"calc",description:"Sets the label step. See `label0` for more info."},values:{valType:"data_array",editType:"calc",description:["Sets the values of the sectors.","If omitted, we count occurrences of each label."].join(" ")},marker:{colors:{valType:"data_array",editType:"calc",description:["Sets the color of each sector.","If not specified, the default trace color set is used","to pick the sector colors."].join(" ")},line:{color:{valType:"color",dflt:o.defaultLine,arrayOk:!0,editType:"style",description:["Sets the color of the line enclosing each sector."].join(" ")},width:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"style",description:["Sets the width (in px) of the line enclosing each sector."].join(" ")},editType:"calc"},editType:"calc"},text:{valType:"data_array",editType:"plot",description:["Sets text elements associated with each sector.","If trace `textinfo` contains a *text* flag, these elements will be seen","on the chart.","If trace `hoverinfo` contains a *text* flag and *hovertext* is not set,","these elements will be seen in the hover labels."].join(" ")},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style",description:["Sets hover text elements associated with each sector.","If a single string, the same string appears for","all data points.","If an array of string, the items are mapped in order of","this trace's sectors.","To be seen, trace `hoverinfo` must contain a *text* flag."].join(" ")},scalegroup:{valType:"string",dflt:"",editType:"calc",description:["If there are multiple pie charts that should be sized according to","their totals, link them by providing a non-empty group id here","shared by every trace in the same group."].join(" ")},textinfo:{valType:"flaglist",flags:["label","text","value","percent"],extras:["none"],editType:"calc",description:["Determines which trace information appear on the graph."].join(" ")},hoverinfo:c({},n.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:l({},{keys:["label","color","value","percent","text"]}),texttemplate:s({editType:"plot"},{keys:["label","color","value","percent","text"]}),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"plot",description:["Specifies the location of the `textinfo`."].join(" ")},textfont:c({},u,{description:"Sets the font used for `textinfo`."}),insidetextorientation:{valType:"enumerated",values:["horizontal","radial","tangential","auto"],dflt:"auto",editType:"plot",description:["Controls the orientation of the text inside chart sectors.","When set to *auto*, text may be oriented in any direction in order","to be as big as possible in the middle of a sector.","The *horizontal* option orients text to be parallel with the bottom","of the chart, and may make text smaller in order to achieve that goal.","The *radial* option orients text along the radius of the sector.","The *tangential* option orients text perpendicular to the radius of the sector."].join(" ")},insidetextfont:c({},u,{description:"Sets the font used for `textinfo` lying inside the sector."}),outsidetextfont:c({},u,{description:"Sets the font used for `textinfo` lying outside the sector."}),automargin:{valType:"boolean",dflt:!1,editType:"plot",description:["Determines whether outside text labels can push the margins."].join(" ")},title:{text:{valType:"string",dflt:"",editType:"plot",description:["Sets the title of the chart.","If it is empty, no title is displayed.","Note that before the existence of `title.text`, the title's","contents used to be defined as the `title` attribute itself.","This behavior has been deprecated."].join(" ")},font:c({},u,{description:["Sets the font used for `title`.","Note that the title's font used to be set","by the now deprecated `titlefont` attribute."].join(" ")}),position:{valType:"enumerated",values:["top left","top center","top right","middle center","bottom left","bottom center","bottom right"],editType:"plot",description:["Specifies the location of the `title`.","Note that the title's position used to be set","by the now deprecated `titleposition` attribute."].join(" ")},editType:"plot"},domain:a({name:"pie",trace:!0,editType:"calc"}),hole:{valType:"number",min:0,max:1,dflt:0,editType:"calc",description:["Sets the fraction of the radius to cut out of the pie.","Use this to make a donut chart."].join(" ")},sort:{valType:"boolean",dflt:!0,editType:"calc",description:["Determines whether or not the sectors are reordered","from largest to smallest."].join(" ")},direction:{valType:"enumerated",values:["clockwise","counterclockwise"],dflt:"counterclockwise",editType:"calc",description:["Specifies the direction at which succeeding sectors follow","one another."].join(" ")},rotation:{valType:"number",min:-360,max:360,dflt:0,editType:"calc",description:["Instead of the first slice starting at 12 o'clock,","rotate to some other angle."].join(" ")},pull:{valType:"number",min:0,max:1,dflt:0,arrayOk:!0,editType:"calc",description:["Sets the fraction of larger radius to pull the sectors","out from the center. This can be a constant","to pull all slices apart from each other equally","or an array to highlight one or more slices."].join(" ")},_deprecated:{title:{valType:"string",dflt:"",editType:"calc",description:["Deprecated in favor of `title.text`.","Note that value of `title` is no longer a simple","*string* but a set of sub-attributes."].join(" ")},titlefont:c({},u,{description:"Deprecated in favor of `title.font`."}),titleposition:{valType:"enumerated",values:["top left","top center","top right","middle center","bottom left","bottom center","bottom right"],editType:"calc",description:"Deprecated in favor of `title.position`."}}}},function(e,t,r){"use strict";var n=r(9),a=r(34),i=r(8),o={};function l(e){return function(t,r){return!!t&&(!!(t=a(t)).isValid()&&(t=i.addOpacity(t,t.getAlpha()),e[r]||(e[r]=t),t))}}function s(e,t){var r,n=JSON.stringify(e),i=t[n];if(!i){for(i=e.slice(),r=0;r<e.length;r++)i.push(a(e[r]).lighten(20).toHexString());for(r=0;r<e.length;r++)i.push(a(e[r]).darken(20).toHexString());t[n]=i}return i}e.exports={calc:function(e,t){var r,a,i=[],o=e._fullLayout,s=o.hiddenlabels||[],c=t.labels,u=t.marker.colors||[],f=t.values,d=t._length,p=t._hasValues&&d;if(t.dlabel)for(c=new Array(d),r=0;r<d;r++)c[r]=String(t.label0+r*t.dlabel);var h={},g=l(o["_"+t.type+"colormap"]),v=0,y=!1;for(r=0;r<d;r++){var m,b,x;if(p){if(m=f[r],!n(m))continue;m=+m}else m=1;void 0!==(b=c[r])&&""!==b||(b=r);var w=h[b=String(b)];void 0===w?(h[b]=i.length,(x=-1!==s.indexOf(b))||(v+=m),i.push({v:m,label:b,color:g(u[r],b),i:r,pts:[r],hidden:x})):(y=!0,(a=i[w]).v+=m,a.pts.push(r),a.hidden||(v+=m),!1===a.color&&u[r]&&(a.color=g(u[r],b)))}return i=i.filter((function(e){return e.v>=0})),("funnelarea"===t.type?y:t.sort)&&i.sort((function(e,t){return t.v-e.v})),i[0]&&(i[0].vTotal=v),i},crossTraceCalc:function(e,t){var r=(t||{}).type;r||(r="pie");var n=e._fullLayout,a=e.calcdata,i=n[r+"colorway"],l=n["_"+r+"colormap"];n["extend"+r+"colors"]&&(i=s(i,o));for(var c=0,u=0;u<a.length;u++){var f=a[u];if(f[0].trace.type===r)for(var d=0;d<f.length;d++){var p=f[d];!1===p.color&&(l[p.label]?p.color=l[p.label]:(l[p.label]=p.color=i[c%i.length],c++))}}},makePullColorFn:l,generateExtendedColors:s}},function(e,t,r){"use strict";e.exports={TOO_MANY_POINTS:1e5,SYMBOL_SDF_SIZE:200,SYMBOL_SIZE:20,SYMBOL_STROKE:1,DOT_RE:/-dot/,OPEN_RE:/-open/,DASHES:{solid:[1],dot:[1,1],dash:[4,1],longdash:[8,1],dashdot:[4,1,1,1],longdashdot:[8,1,1,1]}}},function(e,t,r){"use strict";var n=r(57);e.exports=function(e){var t;arguments.length>1&&(e=arguments);"string"===typeof e?e=e.split(/\s/).map(parseFloat):"number"===typeof e&&(e=[e]);e.length&&"number"===typeof e[0]?t=1===e.length?{width:e[0],height:e[0],x:0,y:0}:2===e.length?{width:e[0],height:e[1],x:0,y:0}:{x:e[0],y:e[1],width:e[2]-e[0]||0,height:e[3]-e[1]||0}:e&&(e=n(e,{left:"x l left Left",top:"y t top Top",width:"w width W Width",height:"h height W Width",bottom:"b bottom Bottom",right:"r right Right"}),t={x:e.left||0,y:e.top||0},null==e.width?e.right?t.width=e.right-t.x:t.width=0:t.width=e.width,null==e.height?e.bottom?t.height=e.bottom-t.y:t.height=0:t.height=e.height);return t}},function(e,t,r){"use strict";e.exports={CLICK_TRANSITION_TIME:750,CLICK_TRANSITION_EASING:"poly",eventDataKeys:["currentPath","root","entry","percentRoot","percentEntry","percentParent"],gapWithPathbar:1}},function(e,t,r){"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=r(364)},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var n=r(108);function a(e,t){if(e){if("string"===typeof e)return Object(n.a)(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Object(n.a)(e,t):void 0}}},function(e,t,r){"use strict";function n(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}r.d(t,"a",(function(){return n}))},function(e,t,r){(function(t){var r="__lodash_hash_undefined__",n="[object Function]",a="[object GeneratorFunction]",i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,o=/^\w*$/,l=/^\./,s=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,c=/\\(\\)?/g,u=/^\[object .+?Constructor\]$/,f=/^(?:0|[1-9]\d*)$/,d="object"==typeof t&&t&&t.Object===Object&&t,p="object"==typeof self&&self&&self.Object===Object&&self,h=d||p||Function("return this")();var g=Array.prototype,v=Function.prototype,y=Object.prototype,m=h["__core-js_shared__"],b=function(){var e=/[^.]+$/.exec(m&&m.keys&&m.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),x=v.toString,w=y.hasOwnProperty,_=y.toString,k=RegExp("^"+x.call(w).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),T=h.Symbol,A=g.splice,S=R(h,"Map"),M=R(Object,"create"),O=T?T.prototype:void 0,C=O?O.toString:void 0;function E(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function L(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function P(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function j(e,t,r){var n=e[t];w.call(e,t)&&V(n,r)&&(void 0!==r||t in e)||(e[t]=r)}function z(e,t){for(var r=e.length;r--;)if(V(e[r][0],t))return r;return-1}function D(e){if(!W(e)||(t=e,b&&b in t))return!1;var t,r=function(e){var t=W(e)?_.call(e):"";return t==n||t==a}(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(r){}return t}(e)?k:u;return r.test(function(e){if(null!=e){try{return x.call(e)}catch(t){}try{return e+""}catch(t){}}return""}(e))}function I(e,t,r,n){if(!W(e))return e;t=function(e,t){if(q(e))return!1;var r=typeof e;if("number"==r||"symbol"==r||"boolean"==r||null==e||Y(e))return!0;return o.test(e)||!i.test(e)||null!=t&&e in Object(t)}(t,e)?[t]:function(e){return q(e)?e:B(e)}(t);for(var a=-1,l=t.length,s=l-1,c=e;null!=c&&++a<l;){var u=U(t[a]),f=r;if(a!=s){var d=c[u];void 0===(f=n?n(d,u,c):void 0)&&(f=W(d)?d:F(t[a+1])?[]:{})}j(c,u,f),c=c[u]}return e}function N(e,t){var r=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?r["string"==typeof t?"string":"hash"]:r.map}function R(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return D(r)?r:void 0}function F(e,t){return!!(t=null==t?9007199254740991:t)&&("number"==typeof e||f.test(e))&&e>-1&&e%1==0&&e<t}E.prototype.clear=function(){this.__data__=M?M(null):{}},E.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},E.prototype.get=function(e){var t=this.__data__;if(M){var n=t[e];return n===r?void 0:n}return w.call(t,e)?t[e]:void 0},E.prototype.has=function(e){var t=this.__data__;return M?void 0!==t[e]:w.call(t,e)},E.prototype.set=function(e,t){return this.__data__[e]=M&&void 0===t?r:t,this},L.prototype.clear=function(){this.__data__=[]},L.prototype.delete=function(e){var t=this.__data__,r=z(t,e);return!(r<0)&&(r==t.length-1?t.pop():A.call(t,r,1),!0)},L.prototype.get=function(e){var t=this.__data__,r=z(t,e);return r<0?void 0:t[r][1]},L.prototype.has=function(e){return z(this.__data__,e)>-1},L.prototype.set=function(e,t){var r=this.__data__,n=z(r,e);return n<0?r.push([e,t]):r[n][1]=t,this},P.prototype.clear=function(){this.__data__={hash:new E,map:new(S||L),string:new E}},P.prototype.delete=function(e){return N(this,e).delete(e)},P.prototype.get=function(e){return N(this,e).get(e)},P.prototype.has=function(e){return N(this,e).has(e)},P.prototype.set=function(e,t){return N(this,e).set(e,t),this};var B=H((function(e){var t;e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(Y(e))return C?C.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(t);var r=[];return l.test(e)&&r.push(""),e.replace(s,(function(e,t,n,a){r.push(n?a.replace(c,"$1"):t||e)})),r}));function U(e){if("string"==typeof e||Y(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function H(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function r(){var n=arguments,a=t?t.apply(this,n):n[0],i=r.cache;if(i.has(a))return i.get(a);var o=e.apply(this,n);return r.cache=i.set(a,o),o};return r.cache=new(H.Cache||P),r}function V(e,t){return e===t||e!==e&&t!==t}H.Cache=P;var q=Array.isArray;function W(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Y(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==_.call(e)}e.exports=function(e,t,r){return null==e?e:I(e,t,r)}}).call(this,r(27))},function(e,t,r){"use strict";function n(e){return n="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=function(t){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(n,t);var r=function(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=d(e);if(t){var a=d(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return u(this,r)}}(n);function n(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),(t=r.call(this,e)).p=Promise.resolve(),t.resizeHandler=null,t.handlers={},t.syncWindowResize=t.syncWindowResize.bind(f(t)),t.syncEventHandlers=t.syncEventHandlers.bind(f(t)),t.attachUpdateEvents=t.attachUpdateEvents.bind(f(t)),t.getRef=t.getRef.bind(f(t)),t.handleUpdate=t.handleUpdate.bind(f(t)),t.figureCallback=t.figureCallback.bind(f(t)),t.updatePlotly=t.updatePlotly.bind(f(t)),t}return function(e,t,r){t&&s(e.prototype,t);r&&s(e,r)}(n,[{key:"updatePlotly",value:function(t,r,n){var a=this;this.p=this.p.then((function(){if(!a.unmounting){if(!a.el)throw new Error("Missing element reference");return e.react(a.el,{data:a.props.data,layout:a.props.layout,config:a.props.config,frames:a.props.frames})}})).then((function(){a.unmounting||(a.syncWindowResize(t),a.syncEventHandlers(),a.figureCallback(r),n&&a.attachUpdateEvents())})).catch((function(e){a.props.onError&&a.props.onError(e)}))}},{key:"componentDidMount",value:function(){this.unmounting=!1,this.updatePlotly(!0,this.props.onInitialized,!0)}},{key:"componentDidUpdate",value:function(e){this.unmounting=!1;var t=e.frames&&e.frames.length?e.frames.length:0,r=this.props.frames&&this.props.frames.length?this.props.frames.length:0,n=!(e.layout===this.props.layout&&e.data===this.props.data&&e.config===this.props.config&&r===t),a=void 0!==e.revision,i=e.revision!==this.props.revision;(n||a&&(!a||i))&&this.updatePlotly(!1,this.props.onUpdate,!1)}},{key:"componentWillUnmount",value:function(){this.unmounting=!0,this.figureCallback(this.props.onPurge),this.resizeHandler&&g&&(window.removeEventListener("resize",this.resizeHandler),this.resizeHandler=null),this.removeUpdateEvents(),e.purge(this.el)}},{key:"attachUpdateEvents",value:function(){var e=this;this.el&&this.el.removeListener&&h.forEach((function(t){e.el.on(t,e.handleUpdate)}))}},{key:"removeUpdateEvents",value:function(){var e=this;this.el&&this.el.removeListener&&h.forEach((function(t){e.el.removeListener(t,e.handleUpdate)}))}},{key:"handleUpdate",value:function(){this.figureCallback(this.props.onUpdate)}},{key:"figureCallback",value:function(e){if("function"===typeof e){var t=this.el;e({data:t.data,layout:t.layout,frames:this.el._transitionData?this.el._transitionData._frames:null},this.el)}}},{key:"syncWindowResize",value:function(t){var r=this;g&&(this.props.useResizeHandler&&!this.resizeHandler?(this.resizeHandler=function(){return e.Plots.resize(r.el)},window.addEventListener("resize",this.resizeHandler),t&&this.resizeHandler()):!this.props.useResizeHandler&&this.resizeHandler&&(window.removeEventListener("resize",this.resizeHandler),this.resizeHandler=null))}},{key:"getRef",value:function(e){this.el=e,this.props.debug&&g&&(window.gd=this.el)}},{key:"syncEventHandlers",value:function(){var e=this;p.forEach((function(t){var r=e.props["on"+t],n=e.handlers[t],a=Boolean(n);r&&!a?e.addEventHandler(t,r):!r&&a?e.removeEventHandler(t):r&&a&&r!==n&&(e.removeEventHandler(t),e.addEventHandler(t,r))}))}},{key:"addEventHandler",value:function(e,t){this.handlers[e]=t,this.el.on(this.getPlotlyEventName(e),this.handlers[e])}},{key:"removeEventHandler",value:function(e){this.el.removeListener(this.getPlotlyEventName(e),this.handlers[e]),delete this.handlers[e]}},{key:"getPlotlyEventName",value:function(e){return"plotly_"+e.toLowerCase()}},{key:"render",value:function(){return i.default.createElement("div",{id:this.props.divId,style:this.props.style,ref:this.getRef,className:this.props.className})}}]),n}(i.Component);return t.propTypes={data:o.default.arrayOf(o.default.object),config:o.default.object,layout:o.default.object,frames:o.default.arrayOf(o.default.object),revision:o.default.number,onInitialized:o.default.func,onPurge:o.default.func,onError:o.default.func,onUpdate:o.default.func,debug:o.default.bool,style:o.default.object,className:o.default.string,useResizeHandler:o.default.bool,divId:o.default.string},p.forEach((function(e){t.propTypes["on"+e]=o.default.func})),t.defaultProps={debug:!1,useResizeHandler:!1,data:[],style:{position:"relative",display:"inline-block"}},t};var a,i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!==typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=a?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=e[i]}r.default=e,t&&t.set(e,r);return r}(r(6)),o=(a=r(1))&&a.__esModule?a:{default:a};function l(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function c(e,t){return c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},c(e,t)}function u(e,t){return!t||"object"!==n(t)&&"function"!==typeof t?f(e):t}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}var p=["AfterExport","AfterPlot","Animated","AnimatingFrame","AnimationInterrupted","AutoSize","BeforeExport","BeforeHover","ButtonClicked","Click","ClickAnnotation","Deselect","DoubleClick","Framework","Hover","LegendClick","LegendDoubleClick","Relayout","Relayouting","Restyle","Redraw","Selected","Selecting","SliderChange","SliderEnd","SliderStart","SunburstClick","Transitioning","TransitionInterrupted","Unhover"],h=["plotly_restyle","plotly_redraw","plotly_relayout","plotly_relayouting","plotly_doubleclick","plotly_animated","plotly_sunburstclick"],g="undefined"!==typeof window},function(e,t,r){var n=r(373),a=r(374),i=r(205),o=r(375);e.exports=function(e){return n(e)||a(e)||i(e)||o()},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){function r(t,n){return e.exports=r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,r(t,n)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){"use strict";var n=r(48),a=Array.prototype.forEach,i=Object.create,o=function(e,t){var r;for(r in e)t[r]=e[r]};e.exports=function(e){var t=i(null);return a.call(arguments,(function(e){n(e)&&o(Object(e),t)})),t}},function(e,t,r){"use strict";var n=r(48),a={function:!0,object:!0};e.exports=function(e){return n(e)&&a[typeof e]||!1}},function(e,t,r){"use strict";var n=r(70),a={object:!0,function:!0,undefined:!0};e.exports=function(e){return!!n(e)&&hasOwnProperty.call(a,typeof e)}},function(e,t,r){"use strict";var n=r(426),a=r(60),i=r(37),o=Array.prototype.indexOf,l=Object.prototype.hasOwnProperty,s=Math.abs,c=Math.floor;e.exports=function(e){var t,r,u,f;if(!n(e))return o.apply(this,arguments);for(r=a(i(this).length),u=arguments[1],t=u=isNaN(u)?0:u>=0?c(u):a(this.length)-c(s(u));t<r;++t)if(l.call(this,t)&&(f=this[t],n(f)))return t;return-1}},function(e,t,r){"use strict";var n=r(42),a=r(111),i=Function.prototype.call;e.exports=function(e,t){var r={},o=arguments[2];return n(t),a(e,(function(e,n,a,l){r[n]=i.call(t,o,e,n,a,l)})),r}},function(e,t,r){"use strict";(function(t,r){var n=function(e){if("function"!==typeof e)throw new TypeError(e+" is not a function");return e},a=function(e){var t,r,a=document.createTextNode(""),i=0;return new e((function(){var e;if(t)r&&(t=r.concat(t));else{if(!r)return;t=r}if(r=t,t=null,"function"===typeof r)return e=r,r=null,void e();for(a.data=i=++i%2;r;)e=r.shift(),r.length||(r=null),e()})).observe(a,{characterData:!0}),function(e){n(e),t?"function"===typeof t?t=[t,e]:t.push(e):(t=e,a.data=i=++i%2)}};e.exports=function(){if("object"===typeof t&&t&&"function"===typeof t.nextTick)return t.nextTick;if("function"===typeof queueMicrotask)return function(e){queueMicrotask(n(e))};if("object"===typeof document&&document){if("function"===typeof MutationObserver)return a(MutationObserver);if("function"===typeof WebKitMutationObserver)return a(WebKitMutationObserver)}return"function"===typeof r?function(e){r(n(e))}:"function"===typeof setTimeout||"object"===typeof setTimeout?function(e){setTimeout(n(e),0)}:null}()}).call(this,r(109),r(148).setImmediate)},function(e,t,r){(function(e){var n="undefined"!==typeof e&&e||"undefined"!==typeof self&&self||window,a=Function.prototype.apply;function i(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new i(a.call(setTimeout,n,arguments),clearTimeout)},t.setInterval=function(){return new i(a.call(setInterval,n,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},i.prototype.unref=i.prototype.ref=function(){},i.prototype.close=function(){this._clearFn.call(n,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},r(432),t.setImmediate="undefined"!==typeof self&&self.setImmediate||"undefined"!==typeof e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!==typeof self&&self.clearImmediate||"undefined"!==typeof e&&e.clearImmediate||this&&this.clearImmediate}).call(this,r(27))},function(e,t,r){"use strict";var n=Array.prototype.slice,a=r(219),i=Object.keys,o=i?function(e){return i(e)}:r(446),l=Object.keys;o.shim=function(){if(Object.keys){var e=function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2);e||(Object.keys=function(e){return a(e)?l(n.call(e)):l(e)})}else Object.keys=o;return Object.keys||o},e.exports=o},function(e,t,r){"use strict";var n="undefined"!==typeof Symbol&&Symbol,a=r(117);e.exports=function(){return"function"===typeof n&&("function"===typeof Symbol&&("symbol"===typeof n("foo")&&("symbol"===typeof Symbol("bar")&&a())))}},function(e,t,r){"use strict";var n=r(447);e.exports=Function.prototype.bind||n},function(e,t,r){"use strict";t.version="2.11.1"},function(e,t,r){"use strict";r.d(t,"b",(function(){return o}));var n=r(13),a=r(15),i=Object(n.a)((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/a.a}),(function(e){return e.getUTCDate()-1}));t.a=i;var o=i.range},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(13),a=r(15),i=Object(n.a)((function(e){e.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*a.c)/a.a}),(function(e){return e.getDate()-1}));t.b=i;var o=i.range},function(e,t,r){"use strict";r.d(t,"b",(function(){return i}));var n=r(13),a=Object(n.a)((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()}));a.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Object(n.a)((function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,r){t.setFullYear(t.getFullYear()+r*e)})):null},t.a=a;var i=a.range},function(e,t,r){"use strict";r.d(t,"b",(function(){return i}));var n=r(13),a=Object(n.a)((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()}));a.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Object(n.a)((function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,r){t.setUTCFullYear(t.getUTCFullYear()+r*e)})):null},t.a=a;var i=a.range},function(e,t,r){"use strict";var n=r(9),a=r(65).isArrayOrTypedArray;function i(e,t){return function(){var r,n,o,l,s,c=e;for(l=0;l<t.length-1;l++){if(-1===(r=t[l])){for(n=!0,o=[],s=0;s<c.length;s++)o[s]=i(c[s],t.slice(l+1))(),o[s]!==o[0]&&(n=!1);return n?o[0]:o}if("number"===typeof r&&!a(c))return;if("object"!==typeof(c=c[r])||null===c)return}if("object"===typeof c&&null!==c&&null!==(o=c[t[l]]))return o}}e.exports=function(e,t){if(n(t))t=String(t);else if("string"!==typeof t||"[-1]"===t.substr(t.length-4))throw"bad property string";for(var r,a,o,l=0,c=t.split(".");l<c.length;){if(r=String(c[l]).match(/^([^\[\]]*)((\[\-?[0-9]*\])+)$/)){if(r[1])c[l]=r[1];else{if(0!==l)throw"bad property string";c.splice(0,1)}for(a=r[2].substr(1,r[2].length-2).split("]["),o=0;o<a.length;o++)l++,c.splice(l,0,Number(a[o]))}l++}return"object"!==typeof e?function(e,t,r){return{set:function(){throw"bad container"},get:function(){},astr:t,parts:r,obj:e}}(e,t,c):{set:s(e,c,t),get:i(e,c),astr:t,parts:c,obj:e}};var o=/(^|\.)args\[/;function l(e,t){return void 0===e||null===e&&!t.match(o)}function s(e,t,r){return function(n){var i,o,s=e,d="",p=[[e,d]],h=l(n,r);for(o=0;o<t.length-1;o++){if("number"===typeof(i=t[o])&&!a(s))throw"array index but container is not an array";if(-1===i){if(h=!u(s,t.slice(o+1),n,r))break;return}if(!f(s,i,t[o+1],h))break;if("object"!==typeof(s=s[i])||null===s)throw"container is not an object";d=c(d,i),p.push([s,d])}if(h){if(o===t.length-1&&(delete s[t[o]],Array.isArray(s)&&+t[o]===s.length-1))for(;s.length&&void 0===s[s.length-1];)s.pop()}else s[t[o]]=n}}function c(e,t){var r=t;return n(t)?r="["+t+"]":e&&(r="."+t),e+r}function u(e,t,r,n){var i,o=a(r),c=!0,u=r,d=n.replace("-1",0),p=!o&&l(r,d),h=t[0];for(i=0;i<e.length;i++)d=n.replace("-1",i),o&&(p=l(u=r[i%r.length],d)),p&&(c=!1),f(e,i,h,p)&&s(e[i],t,n.replace("-1",i))(u);return c}function f(e,t,r,n){if(void 0===e[t]){if(n)return!1;e[t]="number"===typeof r?[]:{}}return!0}},function(e,t,r){"use strict";var n=r(9);e.exports=function(e,t){if(e>0)return Math.log(e)/Math.LN10;var r=Math.log(Math.min(t[0],t[1]))/Math.LN10;return n(r)||(r=Math.log(Math.max(t[0],t[1]))/Math.LN10-6),r}},function(e,t,r){"use strict";e.exports=function(){}},function(e,t,r){"use strict";var n=r(7),a=r(72),i=r(161),o=r(236);function l(e){var t=e&&e.parentNode;t&&t.removeChild(e)}function s(e,t,r){var n="plotly.js-style-"+e,i=document.getElementById(n);i||((i=document.createElement("style")).setAttribute("id",n),i.appendChild(document.createTextNode("")),document.head.appendChild(i));var o=i.sheet;o.insertRule?o.insertRule(t+"{"+r+"}",0):o.addRule?o.addRule(t,r,0):a.warn("addStyleRule failed")}function c(e){var t=window.getComputedStyle(e,null),r=t.getPropertyValue("-webkit-transform")||t.getPropertyValue("-moz-transform")||t.getPropertyValue("-ms-transform")||t.getPropertyValue("-o-transform")||t.getPropertyValue("transform");return"none"===r?null:r.replace("matrix","").replace("3d","").slice(1,-1).split(",").map((function(e){return+e}))}function u(e){for(var t=[];f(e);)t.push(e),e=e.parentNode;return t}function f(e){return e&&(e instanceof Element||e instanceof HTMLElement)}e.exports={getGraphDiv:function(e){var t;if("string"===typeof e){if(null===(t=document.getElementById(e)))throw new Error("No DOM element with id '"+e+"' exists on the page.");return t}if(null===e||void 0===e)throw new Error("DOM element provided is null or undefined");return e},isPlotDiv:function(e){var t=n.select(e);return t.node()instanceof HTMLElement&&t.size()&&t.classed("js-plotly-plot")},removeElement:l,addStyleRule:function(e,t){s("global",e,t)},addRelatedStyleRule:s,deleteRelatedStyleRule:function(e){var t="plotly.js-style-"+e,r=document.getElementById(t);r&&l(r)},getFullTransformMatrix:function(e){var t=u(e),r=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return t.forEach((function(e){var t=c(e);if(t){var n=i.convertCssMatrix(t);r=o.multiply(r,r,n)}})),r},getElementTransformMatrix:c,getElementAndAncestors:u,equalDomRects:function(e,t){return e&&t&&e.x===t.x&&e.y===t.y&&e.top===t.top&&e.left===t.left&&e.right===t.right&&e.bottom===t.bottom}}},function(e,t,r){"use strict";var n=r(236);t.init2dArray=function(e,t){for(var r=new Array(e),n=0;n<e;n++)r[n]=new Array(t);return r},t.transposeRagged=function(e){var t,r,n=0,a=e.length;for(t=0;t<a;t++)n=Math.max(n,e[t].length);var i=new Array(n);for(t=0;t<n;t++)for(i[t]=new Array(a),r=0;r<a;r++)i[t][r]=e[r][t];return i},t.dot=function(e,r){if(!e.length||!r.length||e.length!==r.length)return null;var n,a,i=e.length;if(e[0].length)for(n=new Array(i),a=0;a<i;a++)n[a]=t.dot(e[a],r);else if(r[0].length){var o=t.transposeRagged(r);for(n=new Array(o.length),a=0;a<o.length;a++)n[a]=t.dot(e,o[a])}else for(n=0,a=0;a<i;a++)n+=e[a]*r[a];return n},t.translationMatrix=function(e,t){return[[1,0,e],[0,1,t],[0,0,1]]},t.rotationMatrix=function(e){var t=e*Math.PI/180;return[[Math.cos(t),-Math.sin(t),0],[Math.sin(t),Math.cos(t),0],[0,0,1]]},t.rotationXYMatrix=function(e,r,n){return t.dot(t.dot(t.translationMatrix(r,n),t.rotationMatrix(e)),t.translationMatrix(-r,-n))},t.apply3DTransform=function(e){return function(){var r=arguments,n=1===arguments.length?r[0]:[r[0],r[1],r[2]||0];return t.dot(e,[n[0],n[1],n[2],1]).slice(0,3)}},t.apply2DTransform=function(e){return function(){var r=arguments;3===r.length&&(r=r[0]);var n=1===arguments.length?r[0]:[r[0],r[1]];return t.dot(e,[n[0],n[1],1]).slice(0,2)}},t.apply2DTransform2=function(e){var r=t.apply2DTransform(e);return function(e){return r(e.slice(0,2)).concat(r(e.slice(2,4)))}},t.convertCssMatrix=function(e){if(e){var t=e.length;if(16===t)return e;if(6===t)return[e[0],e[1],0,0,e[2],e[3],0,0,0,0,1,0,e[4],e[5],0,1]}return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]},t.inverseTransformMatrix=function(e){var t=[];return n.invert(t,e),[[t[0],t[1],t[2],t[3]],[t[4],t[5],t[6],t[7]],[t[8],t[9],t[10],t[11]],[t[12],t[13],t[14],t[15]]]}},function(e,t,r){"use strict";e.exports=function(e){var t=e.editType;return{t:{valType:"number",dflt:0,editType:t,description:"The amount of padding (in px) along the top of the component."},r:{valType:"number",dflt:0,editType:t,description:"The amount of padding (in px) on the right side of the component."},b:{valType:"number",dflt:0,editType:t,description:"The amount of padding (in px) along the bottom of the component."},l:{valType:"number",dflt:0,editType:t,description:"The amount of padding (in px) on the left side of the component."},editType:t}}},function(e,t,r){"use strict";e.exports=function(e){return Object.keys(e).sort()}},function(e,t,r){"use strict";var n={};function a(e){e&&null!==e.timer&&(clearTimeout(e.timer),e.timer=null)}t.throttle=function(e,t,r){var i=n[e],o=Date.now();if(!i){for(var l in n)n[l].ts<o-6e4&&delete n[l];i=n[e]={ts:0,timer:null}}function s(){r(),i.ts=Date.now(),i.onDone&&(i.onDone(),i.onDone=null)}a(i),o>i.ts+t?s():i.timer=setTimeout((function(){s(),i.timer=null}),t)},t.done=function(e){var t=n[e];return t&&t.timer?new Promise((function(e){var r=t.onDone;t.onDone=function(){r&&r(),e(),t.onDone=null}})):Promise.resolve()},t.clear=function(e){if(e)a(n[e]),delete n[e];else for(var r in n)t.clear(r)}},function(e,t,r){"use strict";var n,a="object"===typeof Reflect?Reflect:null,i=a&&"function"===typeof a.apply?a.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};n=a&&"function"===typeof a.ownKeys?a.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var o=Number.isNaN||function(e){return e!==e};function l(){l.init.call(this)}e.exports=l,e.exports.once=function(e,t){return new Promise((function(r,n){function a(r){e.removeListener(t,i),n(r)}function i(){"function"===typeof e.removeListener&&e.removeListener("error",a),r([].slice.call(arguments))}y(e,t,i,{once:!0}),"error"!==t&&function(e,t,r){"function"===typeof e.on&&y(e,"error",t,r)}(e,a,{once:!0})}))},l.EventEmitter=l,l.prototype._events=void 0,l.prototype._eventsCount=0,l.prototype._maxListeners=void 0;var s=10;function c(e){if("function"!==typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function u(e){return void 0===e._maxListeners?l.defaultMaxListeners:e._maxListeners}function f(e,t,r,n){var a,i,o,l;if(c(r),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),i=e._events),o=i[t]),void 0===o)o=i[t]=r,++e._eventsCount;else if("function"===typeof o?o=i[t]=n?[r,o]:[o,r]:n?o.unshift(r):o.push(r),(a=u(e))>0&&o.length>a&&!o.warned){o.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=e,s.type=t,s.count=o.length,l=s,console&&console.warn&&console.warn(l)}return e}function d(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},a=d.bind(n);return a.listener=r,n.wrapFn=a,a}function h(e,t,r){var n=e._events;if(void 0===n)return[];var a=n[t];return void 0===a?[]:"function"===typeof a?r?[a.listener||a]:[a]:r?function(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}(a):v(a,a.length)}function g(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"===typeof r)return 1;if(void 0!==r)return r.length}return 0}function v(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function y(e,t,r,n){if("function"===typeof e.on)n.once?e.once(t,r):e.on(t,r);else{if("function"!==typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function a(i){n.once&&e.removeEventListener(t,a),r(i)}))}}Object.defineProperty(l,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(e){if("number"!==typeof e||e<0||o(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");s=e}}),l.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},l.prototype.setMaxListeners=function(e){if("number"!==typeof e||e<0||o(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},l.prototype.getMaxListeners=function(){return u(this)},l.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var n="error"===e,a=this._events;if(void 0!==a)n=n&&void 0===a.error;else if(!n)return!1;if(n){var o;if(t.length>0&&(o=t[0]),o instanceof Error)throw o;var l=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw l.context=o,l}var s=a[e];if(void 0===s)return!1;if("function"===typeof s)i(s,this,t);else{var c=s.length,u=v(s,c);for(r=0;r<c;++r)i(u[r],this,t)}return!0},l.prototype.addListener=function(e,t){return f(this,e,t,!1)},l.prototype.on=l.prototype.addListener,l.prototype.prependListener=function(e,t){return f(this,e,t,!0)},l.prototype.once=function(e,t){return c(t),this.on(e,p(this,e,t)),this},l.prototype.prependOnceListener=function(e,t){return c(t),this.prependListener(e,p(this,e,t)),this},l.prototype.removeListener=function(e,t){var r,n,a,i,o;if(c(t),void 0===(n=this._events))return this;if(void 0===(r=n[e]))return this;if(r===t||r.listener===t)0===--this._eventsCount?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit("removeListener",e,r.listener||t));else if("function"!==typeof r){for(a=-1,i=r.length-1;i>=0;i--)if(r[i]===t||r[i].listener===t){o=r[i].listener,a=i;break}if(a<0)return this;0===a?r.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(r,a),1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,o||t)}return this},l.prototype.off=l.prototype.removeListener,l.prototype.removeAllListeners=function(e){var t,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0===--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0===arguments.length){var a,i=Object.keys(r);for(n=0;n<i.length;++n)"removeListener"!==(a=i[n])&&this.removeAllListeners(a);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"===typeof(t=r[e]))this.removeListener(e,t);else if(void 0!==t)for(n=t.length-1;n>=0;n--)this.removeListener(e,t[n]);return this},l.prototype.listeners=function(e){return h(this,e,!0)},l.prototype.rawListeners=function(e){return h(this,e,!1)},l.listenerCount=function(e,t){return"function"===typeof e.listenerCount?e.listenerCount(t):g.call(e,t)},l.prototype.listenerCount=g,l.prototype.eventNames=function(){return this._eventsCount>0?n(this._events):[]}},function(e,t,r){"use strict";var n=r(49),a=r(28),i=r(22).extendFlat,o=r(55).overrideAll;e.exports=o({orientation:{valType:"enumerated",values:["h","v"],dflt:"v",description:"Sets the orientation of the colorbar."},thicknessmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels",description:["Determines whether this color bar's thickness","(i.e. the measure in the constant color direction)","is set in units of plot *fraction* or in *pixels*.","Use `thickness` to set the value."].join(" ")},thickness:{valType:"number",min:0,dflt:30,description:["Sets the thickness of the color bar","This measure excludes the size of the padding, ticks and labels."].join(" ")},lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction",description:["Determines whether this color bar's length","(i.e. the measure in the color variation direction)","is set in units of plot *fraction* or in *pixels.","Use `len` to set the value."].join(" ")},len:{valType:"number",min:0,dflt:1,description:["Sets the length of the color bar","This measure excludes the padding of both ends.","That is, the color bar length is this length minus the","padding on both ends."].join(" ")},x:{valType:"number",min:-2,max:3,description:["Sets the x position of the color bar (in plot fraction).","Defaults to 1.02 when `orientation` is *v* and","0.5 when `orientation` is *h*."].join(" ")},xanchor:{valType:"enumerated",values:["left","center","right"],description:["Sets this color bar's horizontal position anchor.","This anchor binds the `x` position to the *left*, *center*","or *right* of the color bar.","Defaults to *left* when `orientation` is *v* and","*center* when `orientation` is *h*."].join(" ")},xpad:{valType:"number",min:0,dflt:10,description:"Sets the amount of padding (in px) along the x direction."},y:{valType:"number",min:-2,max:3,description:["Sets the y position of the color bar (in plot fraction).","Defaults to 0.5 when `orientation` is *v* and","1.02 when `orientation` is *h*."].join(" ")},yanchor:{valType:"enumerated",values:["top","middle","bottom"],description:["Sets this color bar's vertical position anchor","This anchor binds the `y` position to the *top*, *middle*","or *bottom* of the color bar.","Defaults to *middle* when `orientation` is *v* and","*bottom* when `orientation` is *h*."].join(" ")},ypad:{valType:"number",min:0,dflt:10,description:"Sets the amount of padding (in px) along the y direction."},outlinecolor:n.linecolor,outlinewidth:n.linewidth,bordercolor:n.linecolor,borderwidth:{valType:"number",min:0,dflt:0,description:["Sets the width (in px) or the border enclosing this color bar."].join(" ")},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",description:"Sets the color of padded area."},tickmode:n.tickmode,nticks:n.nticks,tick0:n.tick0,dtick:n.dtick,tickvals:n.tickvals,ticktext:n.ticktext,ticks:i({},n.ticks,{dflt:""}),ticklabeloverflow:i({},n.ticklabeloverflow,{description:["Determines how we handle tick labels that would overflow either the graph div or the domain of the axis.","The default value for inside tick labels is *hide past domain*.","In other cases the default is *hide past div*."].join(" ")}),ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside",description:["Determines where tick labels are drawn relative to the ticks.","Left and right options are used when `orientation` is *h*,","top and bottom when `orientation` is *v*."].join(" ")},ticklen:n.ticklen,tickwidth:n.tickwidth,tickcolor:n.tickcolor,ticklabelstep:n.ticklabelstep,showticklabels:n.showticklabels,tickfont:a({description:"Sets the color bar's tick label font"}),tickangle:n.tickangle,tickformat:n.tickformat,tickformatstops:n.tickformatstops,tickprefix:n.tickprefix,showtickprefix:n.showtickprefix,ticksuffix:n.ticksuffix,showticksuffix:n.showticksuffix,separatethousands:n.separatethousands,exponentformat:n.exponentformat,minexponent:n.minexponent,showexponent:n.showexponent,title:{text:{valType:"string",description:["Sets the title of the color bar.","Note that before the existence of `title.text`, the title's","contents used to be defined as the `title` attribute itself.","This behavior has been deprecated."].join(" ")},font:a({description:["Sets this color bar's title font.","Note that the title's font used to be set","by the now deprecated `titlefont` attribute."].join(" ")}),side:{valType:"enumerated",values:["right","top","bottom"],description:["Determines the location of color bar's title","with respect to the color bar.","Defaults to *top* when `orientation` if *v* and ","defaults to *right* when `orientation` if *h*.","Note that the title's location used to be set","by the now deprecated `titleside` attribute."].join(" ")}},_deprecated:{title:{valType:"string",description:["Deprecated in favor of color bar's `title.text`.","Note that value of color bar's `title` is no longer a simple","*string* but a set of sub-attributes."].join(" ")},titlefont:a({description:"Deprecated in favor of color bar's `title.font`."}),titleside:{valType:"enumerated",values:["right","top","bottom"],dflt:"top",description:"Deprecated in favor of color bar's `title.side`."}}},"colorbars","from-root")},function(e,t,r){"use strict";var n=r(9),a=r(0),i=r(39).extractOpts;e.exports=function(e,t,r){var o,l=e._fullLayout,s=r.vals,c=r.containerStr,u=c?a.nestedProperty(t,c).get():t,f=i(u),d=!1!==f.auto,p=f.min,h=f.max,g=f.mid,v=function(){return a.aggNums(Math.min,null,s)},y=function(){return a.aggNums(Math.max,null,s)};(void 0===p?p=v():d&&(p=u._colorAx&&n(p)?Math.min(p,v()):v()),void 0===h?h=y():d&&(h=u._colorAx&&n(h)?Math.max(h,y()):y()),d&&void 0!==g&&(h-g>g-p?p=g-(h-g):h-g<g-p&&(h=g+(g-p))),p===h&&(p-=.5,h+=.5),f._sync("min",p),f._sync("max",h),f.autocolorscale)&&(o=p*h<0?l.colorscale.diverging:p>=0?l.colorscale.sequential:l.colorscale.sequentialminus,f._sync("colorscale",o))}},function(e,t,r){"use strict";var n=r(7),a=r(107).utcFormat,i=r(0),o=i.numberFormat,l=r(9),s=i.cleanNumber,c=i.ms2DateTime,u=i.dateTime2ms,f=i.ensureNumber,d=i.isArrayOrTypedArray,p=r(19),h=p.FP_SAFE,g=p.BADNUM,v=p.LOG_CLIP,y=p.ONEWEEK,m=p.ONEDAY,b=p.ONEHOUR,x=p.ONEMIN,w=p.ONESEC,_=r(21),k=r(29),T=k.HOUR_PATTERN,A=k.WEEKDAY_PATTERN;function S(e){return Math.pow(10,e)}function M(e){return null!==e&&void 0!==e}e.exports=function(e,t){t=t||{};var r=e._id||"x",p=r.charAt(0);function O(t,r){if(t>0)return Math.log(t)/Math.LN10;if(t<=0&&r&&e.range&&2===e.range.length){var n=e.range[0],a=e.range[1];return.5*(n+a-2*v*Math.abs(n-a))}return g}function C(t,r,n,a){if((a||{}).msUTC&&l(t))return+t;var o=u(t,n||e.calendar);if(o===g){if(!l(t))return g;t=+t;var s=Math.floor(10*i.mod(t+.05,1)),c=Math.round(t-s/10);o=u(new Date(c))+s/10}return o}function E(t,r,n){return c(t,r,n||e.calendar)}function L(t){return e._categories[Math.round(t)]}function P(t){if(M(t)){if(void 0===e._categoriesMap&&(e._categoriesMap={}),void 0!==e._categoriesMap[t])return e._categoriesMap[t];e._categories.push("number"===typeof t?String(t):t);var r=e._categories.length-1;return e._categoriesMap[t]=r,r}return g}function j(t){if(e._categoriesMap)return e._categoriesMap[t]}function z(e){var t=j(e);return void 0!==t?t:l(e)?+e:void 0}function D(e){return l(e)?+e:j(e)}function I(e,t,r){return n.round(r+t*e,2)}function N(e,t,r){return(e-r)/t}var R=function(t){return l(t)?I(t,e._m,e._b):g},F=function(t){return N(t,e._m,e._b)};if(e.rangebreaks){var B="y"===p;R=function(t){if(!l(t))return g;var r=e._rangebreaks.length;if(!r)return I(t,e._m,e._b);var n=B;e.range[0]>e.range[1]&&(n=!n);for(var a=n?-1:1,i=a*t,o=0,s=0;s<r;s++){var c=a*e._rangebreaks[s].min,u=a*e._rangebreaks[s].max;if(i<c)break;if(!(i>u)){o=i<(c+u)/2?s:s+1;break}o=s+1}var f=e._B[o]||0;return isFinite(f)?I(t,e._m2,f):0},F=function(t){var r=e._rangebreaks.length;if(!r)return N(t,e._m,e._b);for(var n=0,a=0;a<r&&!(t<e._rangebreaks[a].pmin);a++)t>e._rangebreaks[a].pmax&&(n=a+1);return N(t,e._m2,e._B[n])}}e.c2l="log"===e.type?O:f,e.l2c="log"===e.type?S:f,e.l2p=R,e.p2l=F,e.c2p="log"===e.type?function(e,t){return R(O(e,t))}:R,e.p2c="log"===e.type?function(e){return S(F(e))}:F,-1!==["linear","-"].indexOf(e.type)?(e.d2r=e.r2d=e.d2c=e.r2c=e.d2l=e.r2l=s,e.c2d=e.c2r=e.l2d=e.l2r=f,e.d2p=e.r2p=function(t){return e.l2p(s(t))},e.p2d=e.p2r=F,e.cleanPos=f):"log"===e.type?(e.d2r=e.d2l=function(e,t){return O(s(e),t)},e.r2d=e.r2c=function(e){return S(s(e))},e.d2c=e.r2l=s,e.c2d=e.l2r=f,e.c2r=O,e.l2d=S,e.d2p=function(t,r){return e.l2p(e.d2r(t,r))},e.p2d=function(e){return S(F(e))},e.r2p=function(t){return e.l2p(s(t))},e.p2r=F,e.cleanPos=f):"date"===e.type?(e.d2r=e.r2d=i.identity,e.d2c=e.r2c=e.d2l=e.r2l=C,e.c2d=e.c2r=e.l2d=e.l2r=E,e.d2p=e.r2p=function(t,r,n){return e.l2p(C(t,0,n))},e.p2d=e.p2r=function(e,t,r){return E(F(e),t,r)},e.cleanPos=function(t){return i.cleanDate(t,g,e.calendar)}):"category"===e.type?(e.d2c=e.d2l=P,e.r2d=e.c2d=e.l2d=L,e.d2r=e.d2l_noadd=z,e.r2c=function(t){var r=D(t);return void 0!==r?r:e.fraction2r(.5)},e.l2r=e.c2r=f,e.r2l=D,e.d2p=function(t){return e.l2p(e.r2c(t))},e.p2d=function(e){return L(F(e))},e.r2p=e.d2p,e.p2r=F,e.cleanPos=function(e){return"string"===typeof e&&""!==e?e:f(e)}):"multicategory"===e.type&&(e.r2d=e.c2d=e.l2d=L,e.d2r=e.d2l_noadd=z,e.r2c=function(t){var r=z(t);return void 0!==r?r:e.fraction2r(.5)},e.r2c_just_indices=j,e.l2r=e.c2r=f,e.r2l=z,e.d2p=function(t){return e.l2p(e.r2c(t))},e.p2d=function(e){return L(F(e))},e.r2p=e.d2p,e.p2r=F,e.cleanPos=function(e){return Array.isArray(e)||"string"===typeof e&&""!==e?e:f(e)},e.setupMultiCategory=function(n){var a,o,l=e._traceIndices,s=e._matchGroup;if(s&&0===e._categories.length)for(var c in s)if(c!==r){var u=t[_.id2name(c)];l=l.concat(u._traceIndices)}var f=[[0,{}],[0,{}]],h=[];for(a=0;a<l.length;a++){var g=n[l[a]];if(p in g){var v=g[p],y=g._length||i.minRowLength(v);if(d(v[0])&&d(v[1]))for(o=0;o<y;o++){var m=v[0][o],b=v[1][o];M(m)&&M(b)&&(h.push([m,b]),m in f[0][1]||(f[0][1][m]=f[0][0]++),b in f[1][1]||(f[1][1][b]=f[1][0]++))}}}for(h.sort((function(e,t){var r=f[0][1],n=r[e[0]]-r[t[0]];if(n)return n;var a=f[1][1];return a[e[1]]-a[t[1]]})),a=0;a<h.length;a++)P(h[a])}),e.fraction2r=function(t){var r=e.r2l(e.range[0]),n=e.r2l(e.range[1]);return e.l2r(r+t*(n-r))},e.r2fraction=function(t){var r=e.r2l(e.range[0]),n=e.r2l(e.range[1]);return(e.r2l(t)-r)/(n-r)},e.cleanRange=function(t,r){r||(r={}),t||(t="range");var n,a,o=i.nestedProperty(e,t).get();if(a=(a="date"===e.type?i.dfltRange(e.calendar):"y"===p?k.DFLTRANGEY:"realaxis"===e._name?[0,1]:r.dfltRange||k.DFLTRANGEX).slice(),"tozero"!==e.rangemode&&"nonnegative"!==e.rangemode||(a[0]=0),o&&2===o.length)for("date"!==e.type||e.autorange||(o[0]=i.cleanDate(o[0],g,e.calendar),o[1]=i.cleanDate(o[1],g,e.calendar)),n=0;n<2;n++)if("date"===e.type){if(!i.isDateTime(o[n],e.calendar)){e[t]=a;break}if(e.r2l(o[0])===e.r2l(o[1])){var s=i.constrain(e.r2l(o[0]),i.MIN_MS+1e3,i.MAX_MS-1e3);o[0]=e.l2r(s-1e3),o[1]=e.l2r(s+1e3);break}}else{if(!l(o[n])){if(!l(o[1-n])){e[t]=a;break}o[n]=o[1-n]*(n?10:.1)}if(o[n]<-h?o[n]=-h:o[n]>h&&(o[n]=h),o[0]===o[1]){var c=Math.max(1,Math.abs(1e-6*o[0]));o[0]-=c,o[1]+=c}}else i.nestedProperty(e,t).set(a)},e.setScale=function(r){var n=t._size;if(e.overlaying){var a=_.getFromId({_fullLayout:t},e.overlaying);e.domain=a.domain}var i=r&&e._r?"_r":"range",o=e.calendar;e.cleanRange(i);var l,s,c=e.r2l(e[i][0],o),u=e.r2l(e[i][1],o),f="y"===p;if((f?(e._offset=n.t+(1-e.domain[1])*n.h,e._length=n.h*(e.domain[1]-e.domain[0]),e._m=e._length/(c-u),e._b=-e._m*u):(e._offset=n.l+e.domain[0]*n.w,e._length=n.w*(e.domain[1]-e.domain[0]),e._m=e._length/(u-c),e._b=-e._m*c),e._rangebreaks=[],e._lBreaks=0,e._m2=0,e._B=[],e.rangebreaks)&&(e._rangebreaks=e.locateBreaks(Math.min(c,u),Math.max(c,u)),e._rangebreaks.length)){for(l=0;l<e._rangebreaks.length;l++)s=e._rangebreaks[l],e._lBreaks+=Math.abs(s.max-s.min);var d=f;c>u&&(d=!d),d&&e._rangebreaks.reverse();var h=d?-1:1;for(e._m2=h*e._length/(Math.abs(u-c)-e._lBreaks),e._B.push(-e._m2*(f?u:c)),l=0;l<e._rangebreaks.length;l++)s=e._rangebreaks[l],e._B.push(e._B[e._B.length-1]-h*e._m2*(s.max-s.min));for(l=0;l<e._rangebreaks.length;l++)(s=e._rangebreaks[l]).pmin=R(s.min),s.pmax=R(s.max)}if(!isFinite(e._m)||!isFinite(e._b)||e._length<0)throw t._replotting=!1,new Error("Something went wrong with axis scaling")},e.maskBreaks=function(t){var r,n,a,o,l,c=e.rangebreaks||[];c._cachedPatterns||(c._cachedPatterns=c.map((function(t){return t.enabled&&t.bounds?i.simpleMap(t.bounds,t.pattern?s:e.d2c):null}))),c._cachedValues||(c._cachedValues=c.map((function(t){return t.enabled&&t.values?i.simpleMap(t.values,e.d2c).sort(i.sorterAsc):null})));for(var u=0;u<c.length;u++){var f=c[u];if(f.enabled)if(f.bounds){var d=f.pattern;switch(n=(r=c._cachedPatterns[u])[0],a=r[1],d){case A:o=(l=new Date(t)).getUTCDay(),n>a&&(a+=7,o<n&&(o+=7));break;case T:o=(l=new Date(t)).getUTCHours()+(l.getUTCMinutes()/60+l.getUTCSeconds()/3600+l.getUTCMilliseconds()/36e5),n>a&&(a+=24,o<n&&(o+=24));break;case"":o=t}if(o>=n&&o<a)return g}else for(var p=c._cachedValues[u],h=0;h<p.length;h++)if(a=(n=p[h])+f.dvalue,t>=n&&t<a)return g}return t},e.locateBreaks=function(t,r){var n,a,o,l,c=[];if(!e.rangebreaks)return c;var u=e.rangebreaks.slice().sort((function(e,t){return e.pattern===A&&t.pattern===T?-1:t.pattern===A&&e.pattern===T?1:0})),f=function(e,n){if((e=i.constrain(e,t,r))!==(n=i.constrain(n,t,r))){for(var a=!0,o=0;o<c.length;o++){var l=c[o];e<l.max&&n>=l.min&&(e<l.min&&(l.min=e),n>l.max&&(l.max=n),a=!1)}a&&c.push({min:e,max:n})}};for(n=0;n<u.length;n++){var d=u[n];if(d.enabled)if(d.bounds){var p=t,h=r;d.pattern&&(p=Math.floor(p)),o=(a=i.simpleMap(d.bounds,d.pattern?s:e.r2l))[0],l=a[1];var g,v,_=new Date(p);switch(d.pattern){case A:v=y,g=(l-o+(l<o?7:0))*m,p+=o*m-(_.getUTCDay()*m+_.getUTCHours()*b+_.getUTCMinutes()*x+_.getUTCSeconds()*w+_.getUTCMilliseconds());break;case T:v=m,g=(l-o+(l<o?24:0))*b,p+=o*b-(_.getUTCHours()*b+_.getUTCMinutes()*x+_.getUTCSeconds()*w+_.getUTCMilliseconds());break;default:p=Math.min(a[0],a[1]),g=v=(h=Math.max(a[0],a[1]))-p}for(var k=p;k<h;k+=v)f(k,k+g)}else for(var S=i.simpleMap(d.values,e.d2c),M=0;M<S.length;M++)f(o=S[M],l=o+d.dvalue)}return c.sort((function(e,t){return e.min-t.min})),c},e.makeCalcdata=function(t,r,n){var a,o,l,s,c=e.type,u="date"===c&&t[r+"calendar"];if(r in t){if(a=t[r],s=t._length||i.minRowLength(a),i.isTypedArray(a)&&("linear"===c||"log"===c)){if(s===a.length)return a;if(a.subarray)return a.subarray(0,s)}if("multicategory"===c)return function(e,t){for(var r=new Array(t),n=0;n<t;n++){var a=(e[0]||[])[n],i=(e[1]||[])[n];r[n]=j([a,i])}return r}(a,s);for(o=new Array(s),l=0;l<s;l++)o[l]=e.d2c(a[l],0,u,n)}else{var f=r+"0"in t?e.d2c(t[r+"0"],0,u):0,d=t["d"+r]?Number(t["d"+r]):1;for(a=t[{x:"y",y:"x"}[r]],s=t._length||a.length,o=new Array(s),l=0;l<s;l++)o[l]=f+l*d}if(e.rangebreaks)for(l=0;l<s;l++)o[l]=e.maskBreaks(o[l]);return o},e.isValidRange=function(t){return Array.isArray(t)&&2===t.length&&l(e.r2l(t[0]))&&l(e.r2l(t[1]))},e.isPtWithinRange=function(t,r){var n=e.c2l(t[p],null,r),a=e.r2l(e.range[0]),i=e.r2l(e.range[1]);return a<i?a<=n&&n<=i:i<=n&&n<=a},e._emptyCategories=function(){e._categories=[],e._categoriesMap={}},e.clearCalc=function(){var r=e._matchGroup;if(r){var n=null,a=null;for(var i in r){var o=t[_.id2name(i)];if(o._categories){n=o._categories,a=o._categoriesMap;break}}n&&a?(e._categories=n,e._categoriesMap=a):e._emptyCategories()}else e._emptyCategories();if(e._initialCategories)for(var l=0;l<e._initialCategories.length;l++)P(e._initialCategories[l])},e.sortByInitialCategories=function(){var n=[];if(e._emptyCategories(),e._initialCategories)for(var a=0;a<e._initialCategories.length;a++)P(e._initialCategories[a]);n=n.concat(e._traceIndices);var i=e._matchGroup;for(var o in i)if(r!==o){var l=t[_.id2name(o)];l._categories=e._categories,l._categoriesMap=e._categoriesMap,n=n.concat(l._traceIndices)}return n};var U=t._d3locale;"date"===e.type&&(e._dateFormat=U?U.timeFormat:a,e._extraFormat=t._extraFormat),e._separators=t.separators,e._numFormat=U?U.numberFormat:o,delete e._minDtick,delete e._forceTick0}},function(e,t,r){"use strict";t.isGrouped=function(e){return-1!==(e.traceorder||"").indexOf("grouped")},t.isVertical=function(e){return"h"!==e.orientation},t.isReversed=function(e){return-1!==(e.traceorder||"").indexOf("reversed")}},function(e,t,r){"use strict";var n=r(8),a=r(77).castOption;e.exports=function(e,t,r){var i=r.marker.line,o=a(i.color,t.pts)||n.defaultLine,l=a(i.width,t.pts)||0;e.style("stroke-width",l).call(n.fill,t.color).call(n.stroke,o)}},function(e,t,r){"use strict";var n=r(0),a=r(8),i=r(40).isUnifiedHover;e.exports=function(e,t,r,o){o=o||{};var l=t.legend;function s(e){o.font[e]||(o.font[e]=l?t.legend.font[e]:t.font[e])}t&&i(t.hovermode)&&(o.font||(o.font={}),s("size"),s("family"),s("color"),l?(o.bgcolor||(o.bgcolor=a.combine(t.legend.bgcolor,t.paper_bgcolor)),o.bordercolor||(o.bordercolor=t.legend.bordercolor)):o.bgcolor||(o.bgcolor=t.paper_bgcolor)),r("hoverlabel.bgcolor",o.bgcolor),r("hoverlabel.bordercolor",o.bordercolor),r("hoverlabel.namelength",o.namelength),n.coerceFont(r,"hoverlabel.font",o.font),r("hoverlabel.align",o.align)}},function(e,t,r){"use strict";e.exports=function(e){var t=e._fullLayout;t._glcanvas&&t._glcanvas.size()&&t._glcanvas.each((function(e){e.regl&&e.regl.clear({color:!0,depth:!0})}))}},function(e,t,r){"use strict";var n=r(7),a=r(5),i=r(20),o=r(0),l=r(172),s=r(8),c=r(10),u=r(122),f=r(267),d=r(14),p=r(33),h=r(100),g=h.enforce,v=h.clean,y=r(98).doAutoRange,m="start",b="middle",x="end";function w(e,t,r){for(var n=0;n<r.length;n++){var a=r[n][0],i=r[n][1];if(!(a[0]>=e[1]||a[1]<=e[0])&&(i[0]<t[1]&&i[1]>t[0]))return!0}return!1}function _(e){var r,a,l,u,h,g,v=e._fullLayout,y=v._size,m=y.p,b=d.list(e,"",!0);if(v._paperdiv.style({width:e._context.responsive&&v.autosize&&!e._context._hasZeroWidth&&!e.layout.width?"100%":v.width+"px",height:e._context.responsive&&v.autosize&&!e._context._hasZeroHeight&&!e.layout.height?"100%":v.height+"px"}).selectAll(".main-svg").call(c.setSize,v.width,v.height),e._context.setBackground(e,v.paper_bgcolor),t.drawMainTitle(e),f.manage(e),!v._has("cartesian"))return i.previousPromises(e);function x(e,t,r){var n=e._lw/2;return"x"===e._id.charAt(0)?t?"top"===r?t._offset-m-n:t._offset+t._length+m+n:y.t+y.h*(1-(e.position||0))+n%1:t?"right"===r?t._offset+t._length+m+n:t._offset-m-n:y.l+y.w*(e.position||0)+n%1}for(r=0;r<b.length;r++){var _=(u=b[r])._anchorAxis;u._linepositions={},u._lw=c.crispRound(e,u.linewidth,1),u._mainLinePosition=x(u,_,u.side),u._mainMirrorPosition=u.mirror&&_?x(u,_,p.OPPOSITE_SIDE[u.side]):null}var T=[],S=[],M=[],O=1===s.opacity(v.paper_bgcolor)&&1===s.opacity(v.plot_bgcolor)&&v.paper_bgcolor===v.plot_bgcolor;for(a in v._plots)if((l=v._plots[a]).mainplot)l.bg&&l.bg.remove(),l.bg=void 0;else{var C=l.xaxis.domain,E=l.yaxis.domain,L=l.plotgroup;if(w(C,E,M)){var P=L.node(),j=l.bg=o.ensureSingle(L,"rect","bg");P.insertBefore(j.node(),P.childNodes[0]),S.push(a)}else L.select("rect.bg").remove(),M.push([C,E]),O||(T.push(a),S.push(a))}var z,D,I,N,R,F,B,U,H,V,q,W,Y,G=v._bgLayer.selectAll(".bg").data(T);for(G.enter().append("rect").classed("bg",!0),G.exit().remove(),G.each((function(e){v._plots[e].bg=n.select(this)})),r=0;r<S.length;r++)l=v._plots[S[r]],h=l.xaxis,g=l.yaxis,l.bg&&void 0!==h._offset&&void 0!==g._offset&&l.bg.call(c.setRect,h._offset-m,g._offset-m,h._length+2*m,g._length+2*m).call(s.fill,v.plot_bgcolor).style("stroke-width",0);if(!v._hasOnlyLargeSploms)for(a in v._plots){l=v._plots[a],h=l.xaxis,g=l.yaxis;var X,Z,$=l.clipId="clip"+v._uid+a+"plot",Q=o.ensureSingleById(v._clips,"clipPath",$,(function(e){e.classed("plotclip",!0).append("rect")}));l.clipRect=Q.select("rect").attr({width:h._length,height:g._length}),c.setTranslate(l.plot,h._offset,g._offset),l._hasClipOnAxisFalse?(X=null,Z=$):(X=$,Z=null),c.setClipUrl(l.plot,X,e),l.layerClipId=Z}function K(e){return"M"+z+","+e+"H"+D}function J(e){return"M"+h._offset+","+e+"h"+h._length}function ee(e){return"M"+e+","+U+"V"+B}function te(e){return"M"+e+","+g._offset+"v"+g._length}function re(e,t,r){if(!e.showline||a!==e._mainSubplot)return"";if(!e._anchorAxis)return r(e._mainLinePosition);var n=t(e._mainLinePosition);return e.mirror&&(n+=t(e._mainMirrorPosition)),n}for(a in v._plots){l=v._plots[a],h=l.xaxis,g=l.yaxis;var ne="M0,0";k(h,a)&&(R=A(h,"left",g,b),z=h._offset-(R?m+R:0),F=A(h,"right",g,b),D=h._offset+h._length+(F?m+F:0),I=x(h,g,"bottom"),N=x(h,g,"top"),!(Y=!h._anchorAxis||a!==h._mainSubplot)||"allticks"!==h.mirror&&"all"!==h.mirror||(h._linepositions[a]=[I,N]),ne=re(h,K,J),Y&&h.showline&&("all"===h.mirror||"allticks"===h.mirror)&&(ne+=K(I)+K(N)),l.xlines.style("stroke-width",h._lw+"px").call(s.stroke,h.showline?h.linecolor:"rgba(0,0,0,0)")),l.xlines.attr("d",ne);var ae="M0,0";k(g,a)&&(q=A(g,"bottom",h,b),B=g._offset+g._length+(q?m:0),W=A(g,"top",h,b),U=g._offset-(W?m:0),H=x(g,h,"left"),V=x(g,h,"right"),!(Y=!g._anchorAxis||a!==g._mainSubplot)||"allticks"!==g.mirror&&"all"!==g.mirror||(g._linepositions[a]=[H,V]),ae=re(g,ee,te),Y&&g.showline&&("all"===g.mirror||"allticks"===g.mirror)&&(ae+=ee(H)+ee(V)),l.ylines.style("stroke-width",g._lw+"px").call(s.stroke,g.showline?g.linecolor:"rgba(0,0,0,0)")),l.ylines.attr("d",ae)}return d.makeClipPaths(e),i.previousPromises(e)}function k(e,t){return(e.ticks||e.showline)&&(t===e._mainSubplot||"all"===e.mirror||"allticks"===e.mirror)}function T(e,t,r){if(!r.showline||!r._lw)return!1;if("all"===r.mirror||"allticks"===r.mirror)return!0;var n=r._anchorAxis;if(!n)return!1;var a=p.FROM_BL[t];return r.side===t?n.domain[a]===e.domain[a]:r.mirror&&n.domain[1-a]===e.domain[1-a]}function A(e,t,r,n){if(T(e,t,r))return r._lw;for(var a=0;a<n.length;a++){var i=n[a];if(i._mainAxis===r._mainAxis&&T(e,t,i))return i._lw}return 0}function S(e,t){var r=e.title,n=e._size,a=0;return t===m?a=r.pad.l:t===x&&(a=-r.pad.r),"paper"===r.xref?n.l+n.w*r.x+a:e.width*r.x+a}function M(e,t){var r=e.title,n=e._size,a=0;return"0em"!==t&&t?t===p.CAP_SHIFT+"em"&&(a=r.pad.t):a=-r.pad.b,"auto"===r.y?n.t/2:"paper"===r.yref?n.t+n.h-n.h*r.y+a:e.height-e.height*r.y+a}t.layoutStyles=function(e){return o.syncOrAsync([i.doAutoMargin,_],e)},t.drawMainTitle=function(e){var t=e._fullLayout,r=function(e){var t=e.title,r=b;o.isRightAnchor(t)?r=x:o.isLeftAnchor(t)&&(r=m);return r}(t),n=function(e){var t=e.title,r="0em";o.isTopAnchor(t)?r=p.CAP_SHIFT+"em":o.isMiddleAnchor(t)&&(r=p.MID_SHIFT+"em");return r}(t);u.draw(e,"gtitle",{propContainer:t,propName:"title.text",placeholder:t._dfltTitle.plot,attributes:{x:S(t,r),y:M(t,n),"text-anchor":r,dy:n}})},t.doTraceStyle=function(e){var r,n=e.calcdata,o=[];for(r=0;r<n.length;r++){var s=n[r],c=s[0]||{},u=c.trace||{},f=u._module||{},d=f.arraysToCalcdata;d&&d(s,u);var p=f.editStyle;p&&o.push({fn:p,cd0:c})}if(o.length){for(r=0;r<o.length;r++){var h=o[r];h.fn(e,h.cd0)}l(e),t.redrawReglTraces(e)}return i.style(e),a.getComponentMethod("legend","draw")(e),i.previousPromises(e)},t.doColorBars=function(e){return a.getComponentMethod("colorbar","draw")(e),i.previousPromises(e)},t.layoutReplot=function(e){var t=e.layout;return e.layout=void 0,a.call("_doPlot",e,"",t)},t.doLegend=function(e){return a.getComponentMethod("legend","draw")(e),i.previousPromises(e)},t.doTicksRelayout=function(e){return d.draw(e,"redraw"),e._fullLayout._hasOnlyLargeSploms&&(a.subplotsRegistry.splom.updateGrid(e),l(e),t.redrawReglTraces(e)),t.drawMainTitle(e),i.previousPromises(e)},t.doModeBar=function(e){var t=e._fullLayout;f.manage(e);for(var r=0;r<t._basePlotModules.length;r++){var n=t._basePlotModules[r].updateFx;n&&n(e)}return i.previousPromises(e)},t.doCamera=function(e){for(var t=e._fullLayout,r=t._subplots.gl3d,n=0;n<r.length;n++){var a=t[r[n]];a._scene.setViewport(a)}},t.drawData=function(e){var r=e._fullLayout;l(e);for(var n=r._basePlotModules,o=0;o<n.length;o++)n[o].plot(e);return t.redrawReglTraces(e),i.style(e),a.getComponentMethod("shapes","draw")(e),a.getComponentMethod("annotations","draw")(e),a.getComponentMethod("images","draw")(e),r._replotting=!1,i.previousPromises(e)},t.redrawReglTraces=function(e){var t=e._fullLayout;if(t._has("regl")){var r,n,a=e._fullData,i=[],l=[];for(t._hasOnlyLargeSploms&&t._splomGrid.draw(),r=0;r<a.length;r++){var s=a[r];!0===s.visible&&0!==s._length&&("splom"===s.type?t._splomScenes[s.uid].draw():"scattergl"===s.type?o.pushUnique(i,s.xaxis+s.yaxis):"scatterpolargl"===s.type&&o.pushUnique(l,s.subplot))}for(r=0;r<i.length;r++)(n=t._plots[i[r]])._scene&&n._scene.draw();for(r=0;r<l.length;r++)(n=t[l[r]]._subplot)._scene&&n._scene.draw()}},t.doAutoRangeAndConstraints=function(e){for(var t,r=d.list(e,"",!0),n={},a=0;a<r.length;a++)if(!n[(t=r[a])._id]){n[t._id]=1,v(e,t),y(e,t);var i=t._matchGroup;if(i)for(var o in i){var l=d.getFromId(e,o);y(e,l,t.range),n[o]=1}}g(e)},t.finalDraw=function(e){a.getComponentMethod("rangeslider","draw")(e),a.getComponentMethod("rangeselector","draw")(e)},t.drawMarginPushers=function(e){a.getComponentMethod("legend","draw")(e),a.getComponentMethod("rangeselector","draw")(e),a.getComponentMethod("sliders","draw")(e),a.getComponentMethod("updatemenus","draw")(e),a.getComponentMethod("colorbar","draw")(e)}},function(e,t,r){"use strict";e.exports={undo:{width:857.1,height:1e3,path:"m857 350q0-87-34-166t-91-137-137-92-166-34q-96 0-183 41t-147 114q-4 6-4 13t5 11l76 77q6 5 14 5 9-1 13-7 41-53 100-82t126-29q58 0 110 23t92 61 61 91 22 111-22 111-61 91-92 61-110 23q-55 0-105-20t-90-57l77-77q17-16 8-38-10-23-33-23h-250q-15 0-25 11t-11 25v250q0 24 22 33 22 10 39-8l72-72q60 57 137 88t159 31q87 0 166-34t137-92 91-137 34-166z",transform:"matrix(1 0 0 -1 0 850)"},home:{width:928.6,height:1e3,path:"m786 296v-267q0-15-11-26t-25-10h-214v214h-143v-214h-214q-15 0-25 10t-11 26v267q0 1 0 2t0 2l321 264 321-264q1-1 1-4z m124 39l-34-41q-5-5-12-6h-2q-7 0-12 3l-386 322-386-322q-7-4-13-4-7 2-12 7l-35 41q-4 5-3 13t6 12l401 334q18 15 42 15t43-15l136-114v109q0 8 5 13t13 5h107q8 0 13-5t5-13v-227l122-102q5-5 6-12t-4-13z",transform:"matrix(1 0 0 -1 0 850)"},"camera-retro":{width:1e3,height:1e3,path:"m518 386q0 8-5 13t-13 5q-37 0-63-27t-26-63q0-8 5-13t13-5 12 5 5 13q0 23 16 38t38 16q8 0 13 5t5 13z m125-73q0-59-42-101t-101-42-101 42-42 101 42 101 101 42 101-42 42-101z m-572-320h858v71h-858v-71z m643 320q0 89-62 152t-152 62-151-62-63-152 63-151 151-63 152 63 62 151z m-571 358h214v72h-214v-72z m-72-107h858v143h-462l-36-71h-360v-72z m929 143v-714q0-30-21-51t-50-21h-858q-29 0-50 21t-21 51v714q0 30 21 51t50 21h858q29 0 50-21t21-51z",transform:"matrix(1 0 0 -1 0 850)"},zoombox:{width:1e3,height:1e3,path:"m1000-25l-250 251c40 63 63 138 63 218 0 224-182 406-407 406-224 0-406-182-406-406s183-406 407-406c80 0 155 22 218 62l250-250 125 125z m-812 250l0 438 437 0 0-438-437 0z m62 375l313 0 0-312-313 0 0 312z",transform:"matrix(1 0 0 -1 0 850)"},pan:{width:1e3,height:1e3,path:"m1000 350l-187 188 0-125-250 0 0 250 125 0-188 187-187-187 125 0 0-250-250 0 0 125-188-188 186-187 0 125 252 0 0-250-125 0 187-188 188 188-125 0 0 250 250 0 0-126 187 188z",transform:"matrix(1 0 0 -1 0 850)"},zoom_plus:{width:875,height:1e3,path:"m1 787l0-875 875 0 0 875-875 0z m687-500l-187 0 0-187-125 0 0 187-188 0 0 125 188 0 0 187 125 0 0-187 187 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},zoom_minus:{width:875,height:1e3,path:"m0 788l0-876 875 0 0 876-875 0z m688-500l-500 0 0 125 500 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},autoscale:{width:1e3,height:1e3,path:"m250 850l-187 0-63 0 0-62 0-188 63 0 0 188 187 0 0 62z m688 0l-188 0 0-62 188 0 0-188 62 0 0 188 0 62-62 0z m-875-938l0 188-63 0 0-188 0-62 63 0 187 0 0 62-187 0z m875 188l0-188-188 0 0-62 188 0 62 0 0 62 0 188-62 0z m-125 188l-1 0-93-94-156 156 156 156 92-93 2 0 0 250-250 0 0-2 93-92-156-156-156 156 94 92 0 2-250 0 0-250 0 0 93 93 157-156-157-156-93 94 0 0 0-250 250 0 0 0-94 93 156 157 156-157-93-93 0 0 250 0 0 250z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_basic:{width:1500,height:1e3,path:"m375 725l0 0-375-375 375-374 0-1 1125 0 0 750-1125 0z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_compare:{width:1125,height:1e3,path:"m187 786l0 2-187-188 188-187 0 0 937 0 0 373-938 0z m0-499l0 1-187-188 188-188 0 0 937 0 0 376-938-1z",transform:"matrix(1 0 0 -1 0 850)"},plotlylogo:{width:1542,height:1e3,path:"m0-10h182v-140h-182v140z m228 146h183v-286h-183v286z m225 714h182v-1000h-182v1000z m225-285h182v-715h-182v715z m225 142h183v-857h-183v857z m231-428h182v-429h-182v429z m225-291h183v-138h-183v138z",transform:"matrix(1 0 0 -1 0 850)"},"z-axis":{width:1e3,height:1e3,path:"m833 5l-17 108v41l-130-65 130-66c0 0 0 38 0 39 0-1 36-14 39-25 4-15-6-22-16-30-15-12-39-16-56-20-90-22-187-23-279-23-261 0-341 34-353 59 3 60 228 110 228 110-140-8-351-35-351-116 0-120 293-142 474-142 155 0 477 22 477 142 0 50-74 79-163 96z m-374 94c-58-5-99-21-99-40 0-24 65-43 144-43 79 0 143 19 143 43 0 19-42 34-98 40v216h87l-132 135-133-135h88v-216z m167 515h-136v1c16 16 31 34 46 52l84 109v54h-230v-71h124v-1c-16-17-28-32-44-51l-89-114v-51h245v72z",transform:"matrix(1 0 0 -1 0 850)"},"3d_rotate":{width:1e3,height:1e3,path:"m922 660c-5 4-9 7-14 11-359 263-580-31-580-31l-102 28 58-400c0 1 1 1 2 2 118 108 351 249 351 249s-62 27-100 42c88 83 222 183 347 122 16-8 30-17 44-27-2 1-4 2-6 4z m36-329c0 0 64 229-88 296-62 27-124 14-175-11 157-78 225-208 249-266 8-19 11-31 11-31 2 5 6 15 11 32-5-13-8-20-8-20z m-775-239c70-31 117-50 198-32-121 80-199 346-199 346l-96-15-58-12c0 0 55-226 155-287z m603 133l-317-139c0 0 4-4 19-14 7-5 24-15 24-15s-177-147-389 4c235-287 536-112 536-112l31-22 100 299-4-1z m-298-153c6-4 14-9 24-15 0 0-17 10-24 15z",transform:"matrix(1 0 0 -1 0 850)"},camera:{width:1e3,height:1e3,path:"m500 450c-83 0-150-67-150-150 0-83 67-150 150-150 83 0 150 67 150 150 0 83-67 150-150 150z m400 150h-120c-16 0-34 13-39 29l-31 93c-6 15-23 28-40 28h-340c-16 0-34-13-39-28l-31-94c-6-15-23-28-40-28h-120c-55 0-100-45-100-100v-450c0-55 45-100 100-100h800c55 0 100 45 100 100v450c0 55-45 100-100 100z m-400-550c-138 0-250 112-250 250 0 138 112 250 250 250 138 0 250-112 250-250 0-138-112-250-250-250z m365 380c-19 0-35 16-35 35 0 19 16 35 35 35 19 0 35-16 35-35 0-19-16-35-35-35z",transform:"matrix(1 0 0 -1 0 850)"},movie:{width:1e3,height:1e3,path:"m938 413l-188-125c0 37-17 71-44 94 64 38 107 107 107 187 0 121-98 219-219 219-121 0-219-98-219-219 0-61 25-117 66-156h-115c30 33 49 76 49 125 0 103-84 187-187 187s-188-84-188-187c0-57 26-107 65-141-38-22-65-62-65-109v-250c0-70 56-126 125-126h500c69 0 125 56 125 126l188-126c34 0 62 28 62 63v375c0 35-28 63-62 63z m-750 0c-69 0-125 56-125 125s56 125 125 125 125-56 125-125-56-125-125-125z m406-1c-87 0-157 70-157 157 0 86 70 156 157 156s156-70 156-156-70-157-156-157z",transform:"matrix(1 0 0 -1 0 850)"},question:{width:857.1,height:1e3,path:"m500 82v107q0 8-5 13t-13 5h-107q-8 0-13-5t-5-13v-107q0-8 5-13t13-5h107q8 0 13 5t5 13z m143 375q0 49-31 91t-77 65-95 23q-136 0-207-119-9-14 4-24l74-55q4-4 10-4 9 0 14 7 30 38 48 51 19 14 48 14 27 0 48-15t21-33q0-21-11-34t-38-25q-35-16-65-48t-29-70v-20q0-8 5-13t13-5h107q8 0 13 5t5 13q0 10 12 27t30 28q18 10 28 16t25 19 25 27 16 34 7 45z m214-107q0-117-57-215t-156-156-215-58-216 58-155 156-58 215 58 215 155 156 216 58 215-58 156-156 57-215z",transform:"matrix(1 0 0 -1 0 850)"},disk:{width:857.1,height:1e3,path:"m214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z",transform:"matrix(1 0 0 -1 0 850)"},drawopenpath:{width:70,height:70,path:"M33.21,85.65a7.31,7.31,0,0,1-2.59-.48c-8.16-3.11-9.27-19.8-9.88-41.3-.1-3.58-.19-6.68-.35-9-.15-2.1-.67-3.48-1.43-3.79-2.13-.88-7.91,2.32-12,5.86L3,32.38c1.87-1.64,11.55-9.66,18.27-6.9,2.13.87,4.75,3.14,5.17,9,.17,2.43.26,5.59.36,9.25a224.17,224.17,0,0,0,1.5,23.4c1.54,10.76,4,12.22,4.48,12.4.84.32,2.79-.46,5.76-3.59L43,80.07C41.53,81.57,37.68,85.64,33.21,85.65ZM74.81,69a11.34,11.34,0,0,0,6.09-6.72L87.26,44.5,74.72,32,56.9,38.35c-2.37.86-5.57,3.42-6.61,6L38.65,72.14l8.42,8.43ZM55,46.27a7.91,7.91,0,0,1,3.64-3.17l14.8-5.3,8,8L76.11,60.6l-.06.19a6.37,6.37,0,0,1-3,3.43L48.25,74.59,44.62,71Zm16.57,7.82A6.9,6.9,0,1,0,64.64,61,6.91,6.91,0,0,0,71.54,54.09Zm-4.05,0a2.85,2.85,0,1,1-2.85-2.85A2.86,2.86,0,0,1,67.49,54.09Zm-4.13,5.22L60.5,56.45,44.26,72.7l2.86,2.86ZM97.83,35.67,84.14,22l-8.57,8.57L89.26,44.24Zm-13.69-8,8,8-2.85,2.85-8-8Z",transform:"matrix(1 0 0 1 -15 -15)"},drawclosedpath:{width:90,height:90,path:"M88.41,21.12a26.56,26.56,0,0,0-36.18,0l-2.07,2-2.07-2a26.57,26.57,0,0,0-36.18,0,23.74,23.74,0,0,0,0,34.8L48,90.12a3.22,3.22,0,0,0,4.42,0l36-34.21a23.73,23.73,0,0,0,0-34.79ZM84,51.24,50.16,83.35,16.35,51.25a17.28,17.28,0,0,1,0-25.47,20,20,0,0,1,27.3,0l4.29,4.07a3.23,3.23,0,0,0,4.44,0l4.29-4.07a20,20,0,0,1,27.3,0,17.27,17.27,0,0,1,0,25.46ZM66.76,47.68h-33v6.91h33ZM53.35,35H46.44V68h6.91Z",transform:"matrix(1 0 0 1 -5 -5)"},lasso:{width:1031,height:1e3,path:"m1018 538c-36 207-290 336-568 286-277-48-473-256-436-463 10-57 36-108 76-151-13-66 11-137 68-183 34-28 75-41 114-42l-55-70 0 0c-2-1-3-2-4-3-10-14-8-34 5-45 14-11 34-8 45 4 1 1 2 3 2 5l0 0 113 140c16 11 31 24 45 40 4 3 6 7 8 11 48-3 100 0 151 9 278 48 473 255 436 462z m-624-379c-80 14-149 48-197 96 42 42 109 47 156 9 33-26 47-66 41-105z m-187-74c-19 16-33 37-39 60 50-32 109-55 174-68-42-25-95-24-135 8z m360 75c-34-7-69-9-102-8 8 62-16 128-68 170-73 59-175 54-244-5-9 20-16 40-20 61-28 159 121 317 333 354s407-60 434-217c28-159-121-318-333-355z",transform:"matrix(1 0 0 -1 0 850)"},selectbox:{width:1e3,height:1e3,path:"m0 850l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-285l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z",transform:"matrix(1 0 0 -1 0 850)"},drawline:{width:70,height:70,path:"M60.64,62.3a11.29,11.29,0,0,0,6.09-6.72l6.35-17.72L60.54,25.31l-17.82,6.4c-2.36.86-5.57,3.41-6.6,6L24.48,65.5l8.42,8.42ZM40.79,39.63a7.89,7.89,0,0,1,3.65-3.17l14.79-5.31,8,8L61.94,54l-.06.19a6.44,6.44,0,0,1-3,3.43L34.07,68l-3.62-3.63Zm16.57,7.81a6.9,6.9,0,1,0-6.89,6.9A6.9,6.9,0,0,0,57.36,47.44Zm-4,0a2.86,2.86,0,1,1-2.85-2.85A2.86,2.86,0,0,1,53.32,47.44Zm-4.13,5.22L46.33,49.8,30.08,66.05l2.86,2.86ZM83.65,29,70,15.34,61.4,23.9,75.09,37.59ZM70,21.06l8,8-2.84,2.85-8-8ZM87,80.49H10.67V87H87Z",transform:"matrix(1 0 0 1 -15 -15)"},drawrect:{width:80,height:80,path:"M78,22V79H21V22H78m9-9H12V88H87V13ZM68,46.22H31V54H68ZM53,32H45.22V69H53Z",transform:"matrix(1 0 0 1 -10 -10)"},drawcircle:{width:80,height:80,path:"M50,84.72C26.84,84.72,8,69.28,8,50.3S26.84,15.87,50,15.87,92,31.31,92,50.3,73.16,84.72,50,84.72Zm0-60.59c-18.6,0-33.74,11.74-33.74,26.17S31.4,76.46,50,76.46,83.74,64.72,83.74,50.3,68.6,24.13,50,24.13Zm17.15,22h-34v7.11h34Zm-13.8-13H46.24v34h7.11Z",transform:"matrix(1 0 0 1 -10 -10)"},eraseshape:{width:80,height:80,path:"M82.77,78H31.85L6,49.57,31.85,21.14H82.77a8.72,8.72,0,0,1,8.65,8.77V69.24A8.72,8.72,0,0,1,82.77,78ZM35.46,69.84H82.77a.57.57,0,0,0,.49-.6V29.91a.57.57,0,0,0-.49-.61H35.46L17,49.57Zm32.68-34.7-24,24,5,5,24-24Zm-19,.53-5,5,24,24,5-5Z",transform:"matrix(1 0 0 1 -10 -10)"},spikeline:{width:1e3,height:1e3,path:"M512 409c0-57-46-104-103-104-57 0-104 47-104 104 0 57 47 103 104 103 57 0 103-46 103-103z m-327-39l92 0 0 92-92 0z m-185 0l92 0 0 92-92 0z m370-186l92 0 0 93-92 0z m0-184l92 0 0 92-92 0z",transform:"matrix(1.5 0 0 -1.5 0 850)"},pencil:{width:1792,height:1792,path:"M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z",transform:"matrix(1 0 0 1 0 1)"},newplotlylogo:{name:"newplotlylogo",svg:"<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 132 132'><defs><style>.cls-1 {fill: #3f4f75;} .cls-2 {fill: #80cfbe;} .cls-3 {fill: #fff;}</style></defs><title>plotly-logomark</title><g id='symbol'><rect class='cls-1' width='132' height='132' rx='6' ry='6'/><circle class='cls-2' cx='78' cy='54' r='6'/><circle class='cls-2' cx='102' cy='30' r='6'/><circle class='cls-2' cx='78' cy='30' r='6'/><circle class='cls-2' cx='54' cy='30' r='6'/><circle class='cls-2' cx='30' cy='30' r='6'/><circle class='cls-2' cx='30' cy='54' r='6'/><path class='cls-3' d='M30,72a6,6,0,0,0-6,6v24a6,6,0,0,0,12,0V78A6,6,0,0,0,30,72Z'/><path class='cls-3' d='M78,72a6,6,0,0,0-6,6v24a6,6,0,0,0,12,0V78A6,6,0,0,0,78,72Z'/><path class='cls-3' d='M54,48a6,6,0,0,0-6,6v48a6,6,0,0,0,12,0V54A6,6,0,0,0,54,48Z'/><path class='cls-3' d='M102,48a6,6,0,0,0-6,6v48a6,6,0,0,0,12,0V54A6,6,0,0,0,102,48Z'/></g></svg>"}}},function(e,t){e.exports=function(e){var t=[];return e.replace(n,(function(e,n,i){var o=n.toLowerCase();for(i=function(e){var t=e.match(a);return t?t.map(Number):[]}(i),"m"==o&&i.length>2&&(t.push([n].concat(i.splice(0,2))),o="l",n="m"==n?"l":"L");;){if(i.length==r[o])return i.unshift(n),t.push(i);if(i.length<r[o])throw new Error("malformed path data");t.push([n].concat(i.splice(0,r[o])))}})),t};var r={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},n=/([astvzqmhlc])([^astvzqmhlc]*)/gi;var a=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi},function(e,t,r){"use strict";e.exports={CIRCLE_SIDES:32,i000:0,i090:8,i180:16,i270:24,cos45:Math.cos(Math.PI/4),sin45:Math.sin(Math.PI/4),SQRT2:Math.sqrt(2)}},function(e,t,r){"use strict";var n=r(0).strTranslate;function a(e,t){switch(e.type){case"log":return e.p2d(t);case"date":return e.p2r(t,0,e.calendar);default:return e.p2r(t)}}e.exports={p2r:a,r2p:function(e,t){switch(e.type){case"log":return e.d2p(t);case"date":return e.r2p(t,0,e.calendar);default:return e.r2p(t)}},axValue:function(e){var t="y"===e._id.charAt(0)?1:0;return function(r){return a(e,r[t])}},getTransform:function(e){return n(e.xaxis._offset,e.yaxis._offset)}}},function(e,t,r){"use strict";e.exports={segmentRE:/[MLHVQCTSZ][^MLHVQCTSZ]*/g,paramRE:/[^\s,]+/g,paramIsX:{M:{0:!0,drawn:0},L:{0:!0,drawn:0},H:{0:!0,drawn:0},V:{},Q:{0:!0,2:!0,drawn:2},C:{0:!0,2:!0,4:!0,drawn:4},T:{0:!0,drawn:0},S:{0:!0,2:!0,drawn:2},Z:{}},paramIsY:{M:{1:!0,drawn:1},L:{1:!0,drawn:1},H:{},V:{0:!0,drawn:0},Q:{1:!0,3:!0,drawn:3},C:{1:!0,3:!0,5:!0,drawn:5},T:{1:!0,drawn:1},S:{1:!0,3:!0,drawn:5},Z:{}},numParams:{M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}}},function(e,t,r){"use strict";var n=r(178),a=r(0);t.rangeToShapePosition=function(e){return"log"===e.type?e.r2d:function(e){return e}},t.shapePositionToRange=function(e){return"log"===e.type?e.d2r:function(e){return e}},t.decodeDate=function(e){return function(t){return t.replace&&(t=t.replace("_"," ")),e(t)}},t.encodeDate=function(e){return function(t){return e(t).replace(" ","_")}},t.extractPathCoords=function(e,t){var r=[];return e.match(n.segmentRE).forEach((function(e){var i=t[e.charAt(0)].drawn;if(void 0!==i){var o=e.substr(1).match(n.paramRE);!o||o.length<i||r.push(a.cleanNumber(o[i]))}})),r},t.getDataToPixel=function(e,r,n,a){var i,o=e._fullLayout._size;if(r)if("domain"===a)i=function(e){return r._length*(n?1-e:e)+r._offset};else{var l=t.shapePositionToRange(r);i=function(e){return r._offset+r.r2p(l(e,!0))},"date"===r.type&&(i=t.decodeDate(i))}else i=n?function(e){return o.t+o.h*(1-e)}:function(e){return o.l+o.w*e};return i},t.getPixelToData=function(e,r,n,a){var i,o=e._fullLayout._size;if(r)if("domain"===a)i=function(e){var t=(e-r._offset)/r._length;return n?1-t:t};else{var l=t.rangeToShapePosition(r);i=function(e){return l(r.p2r(e-r._offset))}}else i=n?function(e){return 1-(e-o.t)/o.h}:function(e){return(e-o.l)/o.w};return i},t.roundPositionForSharpStrokeRendering=function(e,t){var r=1===Math.round(t%2),n=Math.round(e);return r?n+.5:n},t.makeOptionsAndPlotinfo=function(e,t){var r=e._fullLayout.shapes[t]||{},n=e._fullLayout._plots[r.xref+r.yref];return!!n?n._hadPlotinfo=!0:(n={},r.xref&&"paper"!==r.xref&&(n.xaxis=e._fullLayout[r.xref+"axis"]),r.yref&&"paper"!==r.yref&&(n.yaxis=e._fullLayout[r.yref+"axis"])),n.xsizemode=r.xsizemode,n.ysizemode=r.ysizemode,n.xanchor=r.xanchor,n.yanchor=r.yanchor,{options:r,plotinfo:n}}},function(e,t,r){"use strict";var n=r(7),a=r(0),i=r(10),o=r(8),l=r(74),s=/"/g,c="TOBESTRIPPED",u=new RegExp('("TOBESTRIPPED)|(TOBESTRIPPED")',"g");e.exports=function(e,t,r){var f,d=e._fullLayout,p=d._paper,h=d._toppaper,g=d.width,v=d.height;p.insert("rect",":first-child").call(i.setRect,0,0,g,v).call(o.fill,d.paper_bgcolor);var y=d._basePlotModules||[];for(f=0;f<y.length;f++){var m=y[f];m.toSVG&&m.toSVG(e)}if(h){var b=h.node().childNodes,x=Array.prototype.slice.call(b);for(f=0;f<x.length;f++){var w=x[f];w.childNodes.length&&p.node().appendChild(w)}}d._draggers&&d._draggers.remove(),p.node().style.background="",p.selectAll("text").attr({"data-unformatted":null,"data-math":null}).each((function(){var e=n.select(this);if("hidden"!==this.style.visibility&&"none"!==this.style.display){e.style({visibility:null,display:null});var t=this.style.fontFamily;t&&-1!==t.indexOf('"')&&e.style("font-family",t.replace(s,c))}else e.remove()})),p.selectAll(".gradient_filled,.pattern_filled").each((function(){var e=n.select(this),t=this.style.fill;t&&-1!==t.indexOf("url(")&&e.style("fill",t.replace(s,c));var r=this.style.stroke;r&&-1!==r.indexOf("url(")&&e.style("stroke",r.replace(s,c))})),"pdf"!==t&&"eps"!==t||p.selectAll("#MathJax_SVG_glyphs path").attr("stroke-width",0),p.node().setAttributeNS(l.xmlns,"xmlns",l.svg),p.node().setAttributeNS(l.xmlns,"xmlns:xlink",l.xlink),"svg"===t&&r&&(p.attr("width",r*g),p.attr("height",r*v),p.attr("viewBox","0 0 "+g+" "+v));var _=(new window.XMLSerializer).serializeToString(p.node());return _=function(e){var t=n.select("body").append("div").style({display:"none"}).html(""),r=e.replace(/(&[^;]*;)/gi,(function(e){return"&lt;"===e?"&#60;":"&rt;"===e?"&#62;":-1!==e.indexOf("<")||-1!==e.indexOf(">")?"":t.html(e).text()}));return t.remove(),r}(_),_=(_=_.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&amp;")).replace(u,"'"),a.isIE()&&(_=(_=(_=_.replace(/"/gi,"'")).replace(/(\('#)([^']*)('\))/gi,'("#$2")')).replace(/(\\')/gi,'"')),_}},function(e,t,r){"use strict";var n=r(0),a=r(165).EventEmitter,i=r(78);e.exports=function(e){var t=e.emitter||new a,r=new Promise((function(a,o){var l=window.Image,s=e.svg,c=e.format||"png";if(n.isIE()&&"svg"!==c){var u=new Error(i.MSG_IE_BAD_FORMAT);return o(u),e.promise?r:t.emit("error",u)}var f,d,p=e.canvas,h=e.scale||1,g=e.width||300,v=e.height||150,y=h*g,m=h*v,b=p.getContext("2d"),x=new l;"svg"===c||n.isSafari()?d=i.encodeSVG(s):(f=i.createBlob(s,"svg"),d=i.createObjectURL(f)),p.width=y,p.height=m,x.onload=function(){var r;switch(f=null,i.revokeObjectURL(d),"svg"!==c&&b.drawImage(x,0,0,y,m),c){case"jpeg":r=p.toDataURL("image/jpeg");break;case"png":r=p.toDataURL("image/png");break;case"webp":r=p.toDataURL("image/webp");break;case"svg":r=d;break;default:var n="Image format is not jpeg, png, svg or webp.";if(o(new Error(n)),!e.promise)return t.emit("error",n)}a(r),e.promise||t.emit("success",r)},x.onerror=function(r){if(f=null,i.revokeObjectURL(d),o(r),!e.promise)return t.emit("error",r)},x.src=d}));return e.promise?r:t}},function(e,t,r){"use strict";var n=r(0),a=r(5);e.exports=function(e,t,r,i){var o,l=i("x"),s=i("y");if(a.getComponentMethod("calendars","handleTraceDefaults")(e,t,["x","y"],r),l){var c=n.minRowLength(l);s?o=Math.min(c,n.minRowLength(s)):(o=c,i("y0"),i("dy"))}else{if(!s)return 0;o=n.minRowLength(s),i("x0"),i("dx")}return t._length=o,o}},function(e,t,r){"use strict";var n=r(9),a=r(0),i=r(14),o=r(127),l=r(19).BADNUM,s=r(30),c=r(283),u=r(284),f=r(285);function d(e,t,r,n,a,o,l){var c=t._length,u=e._fullLayout,f=r._id,d=n._id,p=u._firstScatter[g(t)]===t.uid,h=(v(t,u,r,n)||{}).orientation,y=t.fill;r._minDtick=0,n._minDtick=0;var m={padded:!0},b={padded:!0};l&&(m.ppad=b.ppad=l);var x=c<2||a[0]!==a[c-1]||o[0]!==o[c-1];x&&("tozerox"===y||"tonextx"===y&&(p||"h"===h))?m.tozero=!0:(t.error_y||{}).visible||"tonexty"!==y&&"tozeroy"!==y&&(s.hasMarkers(t)||s.hasText(t))||(m.padded=!1,m.ppad=0),x&&("tozeroy"===y||"tonexty"===y&&(p||"v"===h))?b.tozero=!0:"tonextx"!==y&&"tozerox"!==y||(b.padded=!1),f&&(t._extremes[f]=i.findExtremes(r,a,m)),d&&(t._extremes[d]=i.findExtremes(n,o,b))}function p(e,t){if(s.hasMarkers(e)){var r,n=e.marker,o=1.6*(e.marker.sizeref||1);if(r="area"===e.marker.sizemode?function(e){return Math.max(Math.sqrt((e||0)/o),3)}:function(e){return Math.max((e||0)/o,3)},a.isArrayOrTypedArray(n.size)){var l={type:"linear"};i.setConvert(l);for(var c=l.makeCalcdata(e.marker,"size"),u=new Array(t),f=0;f<t;f++)u[f]=r(c[f]);return u}return r(n.size)}}function h(e,t){var r=g(t),n=e._firstScatter;n[r]||(n[r]=t.uid)}function g(e){var t=e.stackgroup;return e.xaxis+e.yaxis+e.type+(t?"-"+t:"")}function v(e,t,r,n){var a=e.stackgroup;if(a){var i=t._scatterStackOpts[r._id+n._id][a],o="v"===i.orientation?n:r;return"linear"===o.type||"log"===o.type?i:void 0}}e.exports={calc:function(e,t){var r,s,g,y,m,b,x=e._fullLayout,w=i.getFromId(e,t.xaxis||"x"),_=i.getFromId(e,t.yaxis||"y"),k=w.makeCalcdata(t,"x"),T=_.makeCalcdata(t,"y"),A=o(t,w,"x",k),S=o(t,_,"y",T),M=A.vals,O=S.vals,C=t._length,E=new Array(C),L=t.ids,P=v(t,x,w,_),j=!1;h(x,t);var z,D="x",I="y";P?(a.pushUnique(P.traceIndices,t._expandedIndex),(r="v"===P.orientation)?(I="s",z="x"):(D="s",z="y"),m="interpolate"===P.stackgaps):d(e,t,w,_,M,O,p(t,C));var N=!!t.xperiodalignment,R=!!t.yperiodalignment;for(s=0;s<C;s++){var F=E[s]={},B=n(M[s]),U=n(O[s]);B&&U?(F[D]=M[s],F[I]=O[s],N&&(F.orig_x=k[s],F.xEnd=A.ends[s],F.xStart=A.starts[s]),R&&(F.orig_y=T[s],F.yEnd=S.ends[s],F.yStart=S.starts[s])):P&&(r?B:U)?(F[z]=r?M[s]:O[s],F.gap=!0,m?(F.s=l,j=!0):F.s=0):F[D]=F[I]=l,L&&(F.id=String(L[s]))}if(u(E,t),c(e,t),f(E,t),P){for(s=0;s<E.length;)E[s][z]===l?E.splice(s,1):s++;if(a.sort(E,(function(e,t){return e[z]-t[z]||e.i-t.i})),j){for(s=0;s<E.length-1&&E[s].gap;)s++;for((b=E[s].s)||(b=E[s].s=0),g=0;g<s;g++)E[g].s=b;for(y=E.length-1;y>s&&E[y].gap;)y--;for(b=E[y].s,g=E.length-1;g>y;g--)E[g].s=b;for(;s<y;)if(E[++s].gap){for(g=s+1;E[g].gap;)g++;for(var H=E[s-1][z],V=E[s-1].s,q=(E[g].s-V)/(E[g][z]-H);s<g;)E[s].s=V+(E[s][z]-H)*q,s++}}}return E},calcMarkerSize:p,calcAxisExpansion:d,setFirstScatter:h,getStackOpts:v}},function(e,t,r){"use strict";var n=r(7),a=r(5),i=r(20),o=r(0),l=o.strTranslate,s=r(14),c=r(8),u=r(10),f=r(41),d=r(25),p=r(56),h=r(46),g=r(17).arrayEditor,v=r(576);function y(e,t){var r=e._fullLayout.annotations[t]||{},n=s.getFromId(e,r.xref),a=s.getFromId(e,r.yref);n&&n.setScale(),a&&a.setScale(),b(e,r,t,!1,n,a)}function m(e,t,r,n,a){var i=a[r],o=a[r+"ref"],l=-1!==r.indexOf("y"),c="domain"===s.getRefType(o),u=l?n.h:n.w;return e?c?i+(l?-t:t)/e._length:e.p2r(e.r2p(i)+t):i+(l?-t:t)/u}function b(e,t,r,i,y,b){var x,w,_=e._fullLayout,k=e._fullLayout._size,T=e._context.edits;i?(x="annotation-"+i,w=i+".annotations"):(x="annotation",w="annotations");var A=g(e.layout,w,t),S=A.modifyBase,M=A.modifyItem,O=A.getUpdateObj;_._infolayer.selectAll("."+x+'[data-index="'+r+'"]').remove();var C="clip"+_._uid+"_ann"+r;if(t._input&&!1!==t.visible){var E={x:{},y:{}},L=+t.textangle||0,P=_._infolayer.append("g").classed(x,!0).attr("data-index",String(r)).style("opacity",t.opacity),j=P.append("g").classed("annotation-text-g",!0),z=T[t.showarrow?"annotationTail":"annotationPosition"],D=t.captureevents||T.annotationText||z,I=j.append("g").style("pointer-events",D?"all":null).call(p,"pointer").on("click",(function(){e._dragging=!1,e.emit("plotly_clickannotation",Y(n.event))}));t.hovertext&&I.on("mouseover",(function(){var r=t.hoverlabel,n=r.font,a=this.getBoundingClientRect(),i=e.getBoundingClientRect();f.loneHover({x0:a.left-i.left,x1:a.right-i.left,y:(a.top+a.bottom)/2-i.top,text:t.hovertext,color:r.bgcolor,borderColor:r.bordercolor,fontFamily:n.family,fontSize:n.size,fontColor:n.color},{container:_._hoverlayer.node(),outerContainer:_._paper.node(),gd:e})})).on("mouseout",(function(){f.loneUnhover(_._hoverlayer.node())}));var N=t.borderwidth,R=t.borderpad,F=N+R,B=I.append("rect").attr("class","bg").style("stroke-width",N+"px").call(c.stroke,t.bordercolor).call(c.fill,t.bgcolor),U=t.width||t.height,H=_._topclips.selectAll("#"+C).data(U?[0]:[]);H.enter().append("clipPath").classed("annclip",!0).attr("id",C).append("rect"),H.exit().remove();var V=t.font,q=_._meta?o.templateString(t.text,_._meta):t.text,W=I.append("text").classed("annotation-text",!0).text(q);T.annotationText?W.call(d.makeEditable,{delegate:I,gd:e}).call(G).on("edit",(function(r){t.text=r,this.call(G),M("text",r),y&&y.autorange&&S(y._name+".autorange",!0),b&&b.autorange&&S(b._name+".autorange",!0),a.call("_guiRelayout",e,O())})):W.call(G)}else n.selectAll("#"+C).remove();function Y(e){var n={index:r,annotation:t._input,fullAnnotation:t,event:e};return i&&(n.subplotId=i),n}function G(r){return r.call(u.font,V).attr({"text-anchor":{left:"start",right:"end"}[t.align]||"middle"}),d.convertToTspans(r,e,X),r}function X(){var r=W.selectAll("a");1===r.size()&&r.text()===W.text()&&I.insert("a",":first-child").attr({"xlink:xlink:href":r.attr("xlink:href"),"xlink:xlink:show":r.attr("xlink:show")}).style({cursor:"pointer"}).node().appendChild(B.node());var n=I.select(".annotation-text-math-group"),f=!n.empty(),g=u.bBox((f?n:W).node()),x=g.width,w=g.height,A=t.width||x,D=t.height||w,R=Math.round(A+2*F),V=Math.round(D+2*F);function q(e,t){return"auto"===t&&(t=e<1/3?"left":e>2/3?"right":"center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[t]}for(var G=!1,X=["x","y"],Z=0;Z<X.length;Z++){var $,Q,K,J,ee,te=X[Z],re=t[te+"ref"]||te,ne=t["a"+te+"ref"],ae={x:y,y:b}[te],ie=(L+("x"===te?0:-90))*Math.PI/180,oe=R*Math.cos(ie),le=V*Math.sin(ie),se=Math.abs(oe)+Math.abs(le),ce=t[te+"anchor"],ue=t[te+"shift"]*("x"===te?1:-1),fe=E[te],de=s.getRefType(re);if(ae&&"domain"!==de){var pe=ae.r2fraction(t[te]);(pe<0||pe>1)&&(ne===re?((pe=ae.r2fraction(t["a"+te]))<0||pe>1)&&(G=!0):G=!0),$=ae._offset+ae.r2p(t[te]),J=.5}else{var he="domain"===de;"x"===te?(K=t[te],$=he?ae._offset+ae._length*K:$=k.l+k.w*K):(K=1-t[te],$=he?ae._offset+ae._length*K:$=k.t+k.h*K),J=t.showarrow?.5:K}if(t.showarrow){fe.head=$;var ge=t["a"+te];if(ee=oe*q(.5,t.xanchor)-le*q(.5,t.yanchor),ne===re){var ve=s.getRefType(ne);"domain"===ve?("y"===te&&(ge=1-ge),fe.tail=ae._offset+ae._length*ge):"paper"===ve?"y"===te?(ge=1-ge,fe.tail=k.t+k.h*ge):fe.tail=k.l+k.w*ge:fe.tail=ae._offset+ae.r2p(ge),Q=ee}else fe.tail=$+ge,Q=ee+ge;fe.text=fe.tail+ee;var ye=_["x"===te?"width":"height"];if("paper"===re&&(fe.head=o.constrain(fe.head,1,ye-1)),"pixel"===ne){var me=-Math.max(fe.tail-3,fe.text),be=Math.min(fe.tail+3,fe.text)-ye;me>0?(fe.tail+=me,fe.text+=me):be>0&&(fe.tail-=be,fe.text-=be)}fe.tail+=ue,fe.head+=ue}else Q=ee=se*q(J,ce),fe.text=$+ee;fe.text+=ue,ee+=ue,Q+=ue,t["_"+te+"padplus"]=se/2+Q,t["_"+te+"padminus"]=se/2-Q,t["_"+te+"size"]=se,t["_"+te+"shift"]=ee}if(G)I.remove();else{var xe=0,we=0;if("left"!==t.align&&(xe=(A-x)*("center"===t.align?.5:1)),"top"!==t.valign&&(we=(D-w)*("middle"===t.valign?.5:1)),f)n.select("svg").attr({x:F+xe-1,y:F+we}).call(u.setClipUrl,U?C:null,e);else{var _e=F+we-g.top,ke=F+xe-g.left;W.call(d.positionText,ke,_e).call(u.setClipUrl,U?C:null,e)}H.select("rect").call(u.setRect,F,F,A,D),B.call(u.setRect,N/2,N/2,R-N,V-N),I.call(u.setTranslate,Math.round(E.x.text-R/2),Math.round(E.y.text-V/2)),j.attr({transform:"rotate("+L+","+E.x.text+","+E.y.text+")"});var Te,Ae=function(r,n){P.selectAll(".annotation-arrow-g").remove();var s=E.x.head,f=E.y.head,d=E.x.tail+r,p=E.y.tail+n,g=E.x.text+r,x=E.y.text+n,w=o.rotationXYMatrix(L,g,x),_=o.apply2DTransform(w),A=o.apply2DTransform2(w),C=+B.attr("width"),z=+B.attr("height"),D=g-.5*C,N=D+C,R=x-.5*z,F=R+z,U=[[D,R,D,F],[D,F,N,F],[N,F,N,R],[N,R,D,R]].map(A);if(!U.reduce((function(e,t){return e^!!o.segmentsIntersect(s,f,s+1e6,f+1e6,t[0],t[1],t[2],t[3])}),!1)){U.forEach((function(e){var t=o.segmentsIntersect(d,p,s,f,e[0],e[1],e[2],e[3]);t&&(d=t.x,p=t.y)}));var H=t.arrowwidth,V=t.arrowcolor,q=t.arrowside,W=P.append("g").style({opacity:c.opacity(V)}).classed("annotation-arrow-g",!0),Y=W.append("path").attr("d","M"+d+","+p+"L"+s+","+f).style("stroke-width",H+"px").call(c.stroke,c.rgb(V));if(v(Y,q,t),T.annotationPosition&&Y.node().parentNode&&!i){var G=s,X=f;if(t.standoff){var Z=Math.sqrt(Math.pow(s-d,2)+Math.pow(f-p,2));G+=t.standoff*(d-s)/Z,X+=t.standoff*(p-f)/Z}var $,Q,K=W.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(d-G)+","+(p-X),transform:l(G,X)}).style("stroke-width",H+6+"px").call(c.stroke,"rgba(0,0,0,0)").call(c.fill,"rgba(0,0,0,0)");h.init({element:K.node(),gd:e,prepFn:function(){var e=u.getTranslate(I);$=e.x,Q=e.y,y&&y.autorange&&S(y._name+".autorange",!0),b&&b.autorange&&S(b._name+".autorange",!0)},moveFn:function(e,r){var n=_($,Q),a=n[0]+e,i=n[1]+r;I.call(u.setTranslate,a,i),M("x",m(y,e,"x",k,t)),M("y",m(b,r,"y",k,t)),t.axref===t.xref&&M("ax",m(y,e,"ax",k,t)),t.ayref===t.yref&&M("ay",m(b,r,"ay",k,t)),W.attr("transform",l(e,r)),j.attr({transform:"rotate("+L+","+a+","+i+")"})},doneFn:function(){a.call("_guiRelayout",e,O());var t=document.querySelector(".js-notes-box-panel");t&&t.redraw(t.selectedObj)}})}}};if(t.showarrow&&Ae(0,0),z)h.init({element:I.node(),gd:e,prepFn:function(){Te=j.attr("transform")},moveFn:function(e,r){var n="pointer";if(t.showarrow)t.axref===t.xref?M("ax",m(y,e,"ax",k,t)):M("ax",t.ax+e),t.ayref===t.yref?M("ay",m(b,r,"ay",k.w,t)):M("ay",t.ay+r),Ae(e,r);else{if(i)return;var a,o;if(y)a=m(y,e,"x",k,t);else{var s=t._xsize/k.w,c=t.x+(t._xshift-t.xshift)/k.w-s/2;a=h.align(c+e/k.w,s,0,1,t.xanchor)}if(b)o=m(b,r,"y",k,t);else{var u=t._ysize/k.h,f=t.y-(t._yshift+t.yshift)/k.h-u/2;o=h.align(f-r/k.h,u,0,1,t.yanchor)}M("x",a),M("y",o),y&&b||(n=h.getCursor(y?.5:a,b?.5:o,t.xanchor,t.yanchor))}j.attr({transform:l(e,r)+Te}),p(I,n)},clickFn:function(r,n){t.captureevents&&e.emit("plotly_clickannotation",Y(n))},doneFn:function(){p(I),a.call("_guiRelayout",e,O());var t=document.querySelector(".js-notes-box-panel");t&&t.redraw(t.selectedObj)}})}}}e.exports={draw:function(e){var t=e._fullLayout;t._infolayer.selectAll(".annotation").remove();for(var r=0;r<t.annotations.length;r++)t.annotations[r].visible&&y(e,r);return i.previousPromises(e)},drawOne:y,drawRaw:b}},function(e,t,r){"use strict";e.exports={axisRefDescription:function(e,t,r){return["If set to a",e,"axis id (e.g. *"+e+"* or","*"+e+"2*), the `"+e+"` position refers to a",e,"coordinate. If set to *paper*, the `"+e+"`","position refers to the distance from the",t,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",t,"("+r+"). If set to a",e,"axis ID followed by","*domain* (separated by a space), the position behaves like for","*paper*, but refers to the distance in fractions of the domain","length from the",t,"of the domain of that axis: e.g.,","*"+e+"2 domain* refers to the domain of the second",e," axis and a",e,"position of 0.5 refers to the","point between the",t,"and the",r,"of the domain of the","second",e,"axis."].join(" ")}}},function(e,t,r){"use strict";var n=r(5),a=r(0),i=r(21);e.exports=function(e){return function(t,r){var o=t[e];if(Array.isArray(o))for(var l=n.subplotsRegistry.cartesian,s=l.idRegex,c=r._subplots,u=c.xaxis,f=c.yaxis,d=c.cartesian,p=r._has("cartesian")||r._has("gl2d"),h=0;h<o.length;h++){var g=o[h];if(a.isPlainObject(g)){var v=i.cleanId(g.xref,"x",!1),y=i.cleanId(g.yref,"y",!1),m=s.x.test(v),b=s.y.test(y);if(m||b){p||a.pushUnique(r._basePlotModules,l);var x=!1;m&&-1===u.indexOf(v)&&(u.push(v),x=!0),b&&-1===f.indexOf(y)&&(f.push(y),x=!0),x&&m&&b&&d.push(v+y)}}}}}},function(e,t,r){"use strict";var n=r(128),a=r(55).overrideAll,i=r(17).templatedArray;e.exports=a(i("annotation",{visible:n.visible,x:{valType:"any",description:["Sets the annotation's x position."].join(" ")},y:{valType:"any",description:["Sets the annotation's y position."].join(" ")},z:{valType:"any",description:["Sets the annotation's z position."].join(" ")},ax:{valType:"number",description:["Sets the x component of the arrow tail about the arrow head (in pixels)."].join(" ")},ay:{valType:"number",description:["Sets the y component of the arrow tail about the arrow head (in pixels)."].join(" ")},xanchor:n.xanchor,xshift:n.xshift,yanchor:n.yanchor,yshift:n.yshift,text:n.text,textangle:n.textangle,font:n.font,width:n.width,height:n.height,opacity:n.opacity,align:n.align,valign:n.valign,bgcolor:n.bgcolor,bordercolor:n.bordercolor,borderpad:n.borderpad,borderwidth:n.borderwidth,showarrow:n.showarrow,arrowcolor:n.arrowcolor,arrowhead:n.arrowhead,startarrowhead:n.startarrowhead,arrowside:n.arrowside,arrowsize:n.arrowsize,startarrowsize:n.startarrowsize,arrowwidth:n.arrowwidth,standoff:n.standoff,startstandoff:n.startstandoff,hovertext:n.hovertext,hoverlabel:n.hoverlabel,captureevents:n.captureevents}),"calc","from-root")},function(e,t,r){"use strict";e.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"\u25c4",right:"\u25ba",up:"\u25b2",down:"\u25bc"}}},function(e,t,r){"use strict";var n=r(45);e.exports={bgcolor:{valType:"color",dflt:n.background,editType:"plot",description:"Sets the background color of the range slider."},bordercolor:{valType:"color",dflt:n.defaultLine,editType:"plot",description:"Sets the border color of the range slider."},borderwidth:{valType:"integer",dflt:0,min:0,editType:"plot",description:"Sets the border width of the range slider."},autorange:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"range[0]":void 0,"range[1]":void 0},description:["Determines whether or not the range slider range is","computed in relation to the input data.","If `range` is provided, then `autorange` is set to *false*."].join(" ")},range:{valType:"info_array",items:[{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}}],editType:"calc",impliedEdits:{autorange:!1},description:["Sets the range of the range slider.","If not set, defaults to the full xaxis range.","If the axis `type` is *log*, then you must take the","log of your desired range.","If the axis `type` is *date*, it should be date strings,","like date data, though Date objects and unix milliseconds","will be accepted and converted to strings.","If the axis `type` is *category*, it should be numbers,","using the scale where each category is assigned a serial","number from zero in the order it appears."].join(" ")},thickness:{valType:"number",dflt:.15,min:0,max:1,editType:"plot",description:["The height of the range slider as a fraction of the","total plot area height."].join(" ")},visible:{valType:"boolean",dflt:!0,editType:"calc",description:["Determines whether or not the range slider will be visible.","If visible, perpendicular axes will be set to `fixedrange`"].join(" ")},editType:"calc"}},function(e,t,r){"use strict";e.exports={name:"rangeslider",containerClassName:"rangeslider-container",bgClassName:"rangeslider-bg",rangePlotClassName:"rangeslider-rangeplot",maskMinClassName:"rangeslider-mask-min",maskMaxClassName:"rangeslider-mask-max",slideBoxClassName:"rangeslider-slidebox",grabberMinClassName:"rangeslider-grabber-min",grabAreaMinClassName:"rangeslider-grabarea-min",handleMinClassName:"rangeslider-handle-min",grabberMaxClassName:"rangeslider-grabber-max",grabAreaMaxClassName:"rangeslider-grabarea-max",handleMaxClassName:"rangeslider-handle-max",maskMinOppAxisClassName:"rangeslider-mask-min-opp-axis",maskMaxOppAxisClassName:"rangeslider-mask-max-opp-axis",maskColor:"rgba(0,0,0,0.4)",maskOppAxisColor:"rgba(0,0,0,0.2)",slideBoxFill:"transparent",slideBoxCursor:"ew-resize",grabAreaFill:"transparent",grabAreaCursor:"col-resize",grabAreaWidth:10,handleWidth:4,handleRadius:1,handleStrokeWidth:1,extraPad:15}},function(e,t,r){"use strict";var n=r(28),a=r(45),i=(0,r(17).templatedArray)("button",{visible:{valType:"boolean",dflt:!0,editType:"plot",description:"Determines whether or not this button is visible."},step:{valType:"enumerated",values:["month","year","day","hour","minute","second","all"],dflt:"month",editType:"plot",description:["The unit of measurement that the `count` value will set the range by."].join(" ")},stepmode:{valType:"enumerated",values:["backward","todate"],dflt:"backward",editType:"plot",description:["Sets the range update mode.","If *backward*, the range update shifts the start of range","back *count* times *step* milliseconds.","If *todate*, the range update shifts the start of range","back to the first timestamp from *count* times","*step* milliseconds back.","For example, with `step` set to *year* and `count` set to *1*","the range update shifts the start of the range back to","January 01 of the current year.","Month and year *todate* are currently available only","for the built-in (Gregorian) calendar."].join(" ")},count:{valType:"number",min:0,dflt:1,editType:"plot",description:["Sets the number of steps to take to update the range.","Use with `step` to specify the update interval."].join(" ")},label:{valType:"string",editType:"plot",description:"Sets the text label to appear on the button."},editType:"plot",description:["Sets the specifications for each buttons.","By default, a range selector comes with no buttons."].join(" ")});e.exports={visible:{valType:"boolean",editType:"plot",description:["Determines whether or not this range selector is visible.","Note that range selectors are only available for x axes of","`type` set to or auto-typed to *date*."].join(" ")},buttons:i,x:{valType:"number",min:-2,max:3,editType:"plot",description:"Sets the x position (in normalized coordinates) of the range selector."},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"plot",description:["Sets the range selector's horizontal position anchor.","This anchor binds the `x` position to the *left*, *center*","or *right* of the range selector."].join(" ")},y:{valType:"number",min:-2,max:3,editType:"plot",description:"Sets the y position (in normalized coordinates) of the range selector."},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"bottom",editType:"plot",description:["Sets the range selector's vertical position anchor","This anchor binds the `y` position to the *top*, *middle*","or *bottom* of the range selector."].join(" ")},font:n({editType:"plot",description:"Sets the font of the range selector button text."}),bgcolor:{valType:"color",dflt:a.lightLine,editType:"plot",description:"Sets the background color of the range selector buttons."},activecolor:{valType:"color",editType:"plot",description:"Sets the background color of the active range selector button."},bordercolor:{valType:"color",dflt:a.defaultLine,editType:"plot",description:"Sets the color of the border enclosing the range selector."},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot",description:"Sets the width (in px) of the border enclosing the range selector."},editType:"plot"}},function(e,t,r){"use strict";e.exports={barmode:{valType:"enumerated",values:["stack","group","overlay","relative"],dflt:"group",editType:"calc",description:["Determines how bars at the same location coordinate","are displayed on the graph.","With *stack*, the bars are stacked on top of one another","With *relative*, the bars are stacked on top of one another,","with negative values below the axis, positive values above","With *group*, the bars are plotted next to one another","centered around the shared location.","With *overlay*, the bars are plotted over one another,","you might need to an *opacity* to see multiple bars."].join(" ")},barnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc",description:["Sets the normalization for bar traces on the graph.","With *fraction*, the value of each bar is divided by the sum of all","values at that location coordinate.","*percent* is the same but multiplied by 100 to show percentages."].join(" ")},bargap:{valType:"number",min:0,max:1,editType:"calc",description:["Sets the gap (in plot fraction) between bars of","adjacent location coordinates."].join(" ")},bargroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc",description:["Sets the gap (in plot fraction) between bars of","the same location coordinate."].join(" ")}}},function(e,t,r){"use strict";var n=r(0);e.exports=function(e,t){for(var r=0;r<e.length;r++)e[r].i=r;n.mergeArray(t.text,e,"tx"),n.mergeArray(t.hovertext,e,"htx");var a=t.marker;if(a){n.mergeArray(a.opacity,e,"mo",!0),n.mergeArray(a.color,e,"mc");var i=a.line;i&&(n.mergeArray(i.color,e,"mlc"),n.mergeArrayCastPositive(i.width,e,"mlw"))}}},function(e,t,r){"use strict";var n=r(7),a=r(9),i=r(0),o=r(25),l=r(8),s=r(10),c=r(5),u=r(14).tickText,f=r(51),d=f.recordMinTextSize,p=f.clearMinTextSize,h=r(68),g=r(195),v=r(103),y=r(102),m=y.text,b=y.textposition,x=r(40).appendArrayPointValue,w=v.TEXTPAD;function _(e){return e.id}function k(e){if(e.ids)return _}function T(e,t){return e<t?1:-1}function A(e,t,r,n){var a;return!t.uniformtext.mode&&S(r)?(n&&(a=n()),e.transition().duration(r.duration).ease(r.easing).each("end",(function(){a&&a()})).each("interrupt",(function(){a&&a()}))):e}function S(e){return e&&e.duration>0}function M(e){return"auto"===e?0:e}function O(e,t){var r=Math.PI/180*t,n=Math.abs(Math.sin(r)),a=Math.abs(Math.cos(r));return{x:e.width*a+e.height*n,y:e.width*n+e.height*a}}function C(e,t,r,n,a,i){var o=!!i.isHorizontal,l=!!i.constrained,s=i.angle||0,c=i.anchor||"end",u="end"===c,f="start"===c,d=((i.leftToRight||0)+1)/2,p=1-d,h=a.width,g=a.height,v=Math.abs(t-e),y=Math.abs(n-r),m=v>2*w&&y>2*w?w:0;v-=2*m,y-=2*m;var b=M(s);"auto"!==s||h<=v&&g<=y||!(h>v||g>y)||(h>y||g>v)&&h<g===v<y||(b+=90);var x=O(a,b),_=1;l&&(_=Math.min(1,v/x.x,y/x.y));var k=a.left*p+a.right*d,A=(a.top+a.bottom)/2,S=(e+w)*p+(t-w)*d,C=(r+n)/2,E=0,L=0;if(f||u){var P=(o?x.x:x.y)/2,j=o?T(e,t):T(r,n);o?f?(S=e+j*m,E=-j*P):(S=t-j*m,E=j*P):f?(C=r+j*m,L=-j*P):(C=n-j*m,L=j*P)}return{textX:k,textY:A,targetX:S,targetY:C,anchorX:E,anchorY:L,scale:_,rotate:b}}e.exports={plot:function(e,t,r,f,v,y){var _=t.xaxis,E=t.yaxis,L=e._fullLayout;v||(v={mode:L.barmode,norm:L.barmode,gap:L.bargap,groupgap:L.bargroupgap},p("bar",L));var P=i.makeTraceGroups(f,r,"trace bars").each((function(r){var c=n.select(this),f=r[0].trace,p="waterfall"===f.type,P="funnel"===f.type,j="bar"===f.type||P,z=0;p&&f.connector.visible&&"between"===f.connector.mode&&(z=f.connector.line.width/2);var D="h"===f.orientation,I=S(v),N=i.ensureSingle(c,"g","points"),R=k(f),F=N.selectAll("g.point").data(i.identity,R);F.enter().append("g").classed("point",!0),F.exit().remove(),F.each((function(c,p){var k,S,P=n.select(this),N=function(e,t,r,n){var a=[],i=[],o=n?t:r,l=n?r:t;return a[0]=o.c2p(e.s0,!0),i[0]=l.c2p(e.p0,!0),a[1]=o.c2p(e.s1,!0),i[1]=l.c2p(e.p1,!0),n?[a,i]:[i,a]}(c,_,E,D),R=N[0][0],F=N[0][1],B=N[1][0],U=N[1][1],H=0===(D?F-R:U-B);if(H&&j&&g.getLineWidth(f,c)&&(H=!1),H||(H=!a(R)||!a(F)||!a(B)||!a(U)),c.isBlank=H,H&&(D?F=R:U=B),z&&!H&&(D?(R-=T(R,F)*z,F+=T(R,F)*z):(B-=T(B,U)*z,U+=T(B,U)*z)),"waterfall"===f.type){if(!H){var V=f[c.dir].marker;k=V.line.width,S=V.color}}else k=g.getLineWidth(f,c),S=c.mc||f.marker.color;function q(e){var t=n.round(k/2%1,2);return 0===v.gap&&0===v.groupgap?n.round(Math.round(e)-t,2):e}if(!e._context.staticPlot){var W=l.opacity(S)<1||k>.01?q:function(e,t,r){return r&&e===t?e:Math.abs(e-t)>=2?q(e):e>t?Math.ceil(e):Math.floor(e)};R=W(R,F,D),F=W(F,R,D),B=W(B,U,!D),U=W(U,B,!D)}var Y=A(i.ensureSingle(P,"path"),L,v,y);if(Y.style("vector-effect","non-scaling-stroke").attr("d",isNaN((F-R)*(U-B))||H&&e._context.staticPlot?"M0,0Z":"M"+R+","+B+"V"+U+"H"+F+"V"+B+"Z").call(s.setClipUrl,t.layerClipId,e),!L.uniformtext.mode&&I){var G=s.makePointStyleFns(f);s.singlePointStyle(c,Y,f,G,e)}!function(e,t,r,n,a,l,c,f,p,v,y){var _,k=t.xaxis,S=t.yaxis,E=e._fullLayout;function L(t,r,n){return i.ensureSingle(t,"text").text(r).attr({class:"bartext bartext-"+_,"text-anchor":"middle","data-notex":1}).call(s.font,n).call(o.convertToTspans,e)}var P=n[0].trace,j="h"===P.orientation,z=function(e,t,r,n,a){var o,l=t[0].trace;o=l.texttemplate?function(e,t,r,n,a){var o=t[0].trace,l=i.castOption(o,r,"texttemplate");if(!l)return"";var s,c,f,d,p="histogram"===o.type,h="waterfall"===o.type,g="funnel"===o.type,v="h"===o.orientation;v?(s="y",c=a,f="x",d=n):(s="x",c=n,f="y",d=a);function y(e){return u(c,c.c2l(e),!0).text}function m(e){return u(d,d.c2l(e),!0).text}var b=t[r],w={};w.label=b.p,w.labelLabel=w[s+"Label"]=y(b.p);var _=i.castOption(o,b.i,"text");(0===_||_)&&(w.text=_);w.value=b.s,w.valueLabel=w[f+"Label"]=m(b.s);var k={};x(k,o,b.i),(p||void 0===k.x)&&(k.x=v?w.value:w.label);(p||void 0===k.y)&&(k.y=v?w.label:w.value);(p||void 0===k.xLabel)&&(k.xLabel=v?w.valueLabel:w.labelLabel);(p||void 0===k.yLabel)&&(k.yLabel=v?w.labelLabel:w.valueLabel);h&&(w.delta=+b.rawS||b.s,w.deltaLabel=m(w.delta),w.final=b.v,w.finalLabel=m(w.final),w.initial=w.final-w.delta,w.initialLabel=m(w.initial));g&&(w.value=b.s,w.valueLabel=m(w.value),w.percentInitial=b.begR,w.percentInitialLabel=i.formatPercent(b.begR),w.percentPrevious=b.difR,w.percentPreviousLabel=i.formatPercent(b.difR),w.percentTotal=b.sumR,w.percenTotalLabel=i.formatPercent(b.sumR));var T=i.castOption(o,b.i,"customdata");T&&(w.customdata=T);return i.texttemplateString(l,w,e._d3locale,k,w,o._meta||{})}(e,t,r,n,a):l.textinfo?function(e,t,r,n){var a=e[0].trace,o="h"===a.orientation,l="waterfall"===a.type,s="funnel"===a.type;function c(e){return u(o?n:r,e,!0).text}function f(e){return u(o?r:n,+e,!0).text}var d,p=a.textinfo,h=e[t],g=p.split("+"),v=[],y=function(e){return-1!==g.indexOf(e)};y("label")&&v.push(c(e[t].p));y("text")&&(0===(d=i.castOption(a,h.i,"text"))||d)&&v.push(d);if(l){var m=+h.rawS||h.s,b=h.v,x=b-m;y("initial")&&v.push(f(x)),y("delta")&&v.push(f(m)),y("final")&&v.push(f(b))}if(s){y("value")&&v.push(f(h.s));var w=0;y("percent initial")&&w++,y("percent previous")&&w++,y("percent total")&&w++;var _=w>1;y("percent initial")&&(d=i.formatPercent(h.begR),_&&(d+=" of initial"),v.push(d)),y("percent previous")&&(d=i.formatPercent(h.difR),_&&(d+=" of previous"),v.push(d)),y("percent total")&&(d=i.formatPercent(h.sumR),_&&(d+=" of total"),v.push(d))}return v.join("<br>")}(t,r,n,a):g.getValue(l.text,r);return g.coerceString(m,o)}(E,n,a,k,S);_=function(e,t){var r=g.getValue(e.textposition,t);return g.coerceEnumerated(b,r)}(P,a);var D="stack"===v.mode||"relative"===v.mode,I=n[a],N=!D||I._outmost;if(!z||"none"===_||(I.isBlank||l===c||f===p)&&("auto"===_||"inside"===_))return void r.select("text").remove();var R=E.font,F=h.getBarColor(n[a],P),B=h.getInsideTextFont(P,a,R,F),U=h.getOutsideTextFont(P,a,R),H=r.datum();j?"log"===k.type&&H.s0<=0&&(l=k.range[0]<k.range[1]?0:k._length):"log"===S.type&&H.s0<=0&&(f=S.range[0]<S.range[1]?S._length:0);var V,q,W,Y,G,X=Math.abs(c-l)-2*w,Z=Math.abs(p-f)-2*w;"outside"===_&&(N||I.hasB||(_="inside"));if("auto"===_){if(N)_="inside",V=L(r,z,G=i.ensureUniformFontSize(e,B)),W=(q=s.bBox(V.node())).width,Y=q.height,W>0&&Y>0&&(W<=X&&Y<=Z||W<=Z&&Y<=X||(j?X>=W*(Z/Y):Z>=Y*(X/W)))?_="inside":(_="outside",V.remove(),V=null);else _="inside"}if(!V){var $=(V=L(r,z,G=i.ensureUniformFontSize(e,"outside"===_?U:B))).attr("transform");if(V.attr("transform",""),W=(q=s.bBox(V.node())).width,Y=q.height,V.attr("transform",$),W<=0||Y<=0)return void V.remove()}var Q,K=P.textangle;Q="outside"===_?function(e,t,r,n,a,i){var o,l=!!i.isHorizontal,s=!!i.constrained,c=i.angle||0,u=a.width,f=a.height,d=Math.abs(t-e),p=Math.abs(n-r);o=l?p>2*w?w:0:d>2*w?w:0;var h=1;s&&(h=l?Math.min(1,p/f):Math.min(1,d/u));var g=M(c),v=O(a,g),y=(l?v.x:v.y)/2,m=(a.left+a.right)/2,b=(a.top+a.bottom)/2,x=(e+t)/2,_=(r+n)/2,k=0,A=0,S=l?T(t,e):T(r,n);l?(x=t-S*o,k=S*y):(_=n+S*o,A=-S*y);return{textX:m,textY:b,targetX:x,targetY:_,anchorX:k,anchorY:A,scale:h,rotate:g}}(l,c,f,p,q,{isHorizontal:j,constrained:"both"===P.constraintext||"outside"===P.constraintext,angle:K}):C(l,c,f,p,q,{isHorizontal:j,constrained:"both"===P.constraintext||"inside"===P.constraintext,angle:K,anchor:P.insidetextanchor});Q.fontSize=G.size,d("histogram"===P.type?"bar":P.type,Q,E),I.transform=Q,A(V,E,v,y).attr("transform",i.getTextTransform(Q))}(e,t,P,r,p,R,F,B,U,v,y),t.layerClipId&&s.hideOutsideRangePoint(c,P.select("text"),_,E,f.xcalendar,f.ycalendar)}));var B=!1===f.cliponaxis;s.setClipUrl(c,B?null:t.layerClipId,e)}));c.getComponentMethod("errorbars","plot")(e,P,t,v)},toMoveInsideBar:C}},function(e,t,r){"use strict";var n=r(9),a=r(34),i=r(0).isArrayOrTypedArray;t.coerceString=function(e,t,r){if("string"===typeof t){if(t||!e.noBlank)return t}else if(("number"===typeof t||!0===t)&&!e.strict)return String(t);return void 0!==r?r:e.dflt},t.coerceNumber=function(e,t,r){if(n(t)){t=+t;var a=e.min,i=e.max;if(!(void 0!==a&&t<a||void 0!==i&&t>i))return t}return void 0!==r?r:e.dflt},t.coerceColor=function(e,t,r){return a(t).isValid()?t:void 0!==r?r:e.dflt},t.coerceEnumerated=function(e,t,r){return e.coerceNumber&&(t=+t),-1!==e.values.indexOf(t)?t:void 0!==r?r:e.dflt},t.getValue=function(e,t){var r;return Array.isArray(e)?t<e.length&&(r=e[t]):r=e,r},t.getLineWidth=function(e,t){return 0<t.mlw?t.mlw:i(e.marker.line.width)?0:e.marker.line.width}},function(e,t){e.exports=function(e){switch(e){case"int8":return Int8Array;case"int16":return Int16Array;case"int32":return Int32Array;case"uint8":return Uint8Array;case"uint16":return Uint16Array;case"uint32":return Uint32Array;case"float32":return Float32Array;case"float64":return Float64Array;case"array":return Array;case"uint8_clamped":return Uint8ClampedArray}}},function(e,t,r){"use strict";e.exports=a,e.exports.float32=e.exports.float=a,e.exports.fract32=e.exports.fract=function(e,t){if(e.length){if(e instanceof Float32Array)return new Float32Array(e.length);t instanceof Float32Array||(t=a(e));for(var r=0,n=t.length;r<n;r++)t[r]=e[r]-t[r];return t}return a(e-a(e))};var n=new Float32Array(1);function a(e){return e.length?e instanceof Float32Array?e:new Float32Array(e):(n[0]=e,n[0])}},function(e,t,r){"use strict";e.exports=r(324)()?Object.setPrototypeOf:r(325)},function(e,t,r){"use strict";var n=r(7),a=r(8),i=r(0),o=r(69),l=r(51).resizeText;function s(e,t,r,n){var l,s,c=(n||{}).hovered,u=t.data.data,f=u.i,d=u.color,p=o.isHierarchyRoot(t),h=1;if(c)l=r._hovered.marker.line.color,s=r._hovered.marker.line.width;else if(p&&d===r.root.color)h=100,l="rgba(0,0,0,0)",s=0;else if(l=i.castOption(r,f,"marker.line.color")||a.defaultLine,s=i.castOption(r,f,"marker.line.width")||0,!r._hasColorscale&&!t.onPathbar){var g=r.marker.depthfade;if(g){var v,y=a.combine(a.addOpacity(r._backgroundColor,.75),d);if(!0===g){var m=o.getMaxDepth(r);v=isFinite(m)?o.isLeaf(t)?0:r._maxVisibleLayers-(t.data.depth-r._entryDepth):t.data.height+1}else v=t.data.depth-r._entryDepth,r._atRootLevel||v++;if(v>0)for(var b=0;b<v;b++){var x=.5*b/v;d=a.combine(a.addOpacity(y,x),d)}}}e.style("stroke-width",s).call(a.fill,d).call(a.stroke,l).style("opacity",h)}e.exports={style:function(e){var t=e._fullLayout._treemaplayer.selectAll(".trace");l(e,t,"treemap"),t.each((function(e){var t=n.select(this),r=e[0].trace;t.style("opacity",r.opacity),t.selectAll("path.surface").each((function(e){n.select(this).call(s,e,r,{hovered:!1})}))}))},styleOne:s}},function(e,t,r){"use strict";var n=r(7),a=r(5),i=r(40).appendArrayPointValue,o=r(41),l=r(0),s=r(94),c=r(69),u=r(77).formatPieValue;function f(e,t,r){for(var n=e.data.data,a={curveNumber:t.index,pointNumber:n.i,data:t._input,fullData:t},o=0;o<r.length;o++){var l=r[o];l in e&&(a[l]=e[l])}return"parentString"in e&&!c.isHierarchyRoot(e)&&(a.parent=e.parentString),i(a,t,n.i),a}e.exports=function(e,t,r,i,d){var p=i[0],h=p.trace,g=p.hierarchy,v="sunburst"===h.type,y="treemap"===h.type||"icicle"===h.type;"_hasHoverLabel"in h||(h._hasHoverLabel=!1),"_hasHoverEvent"in h||(h._hasHoverEvent=!1);e.on("mouseover",(function(a){var i=r._fullLayout;if(!r._dragging&&!1!==i.hovermode){var s,m=r._fullData[h.index],b=a.data.data,x=b.i,w=c.isHierarchyRoot(a),_=c.getParent(g,a),k=c.getValue(a),T=function(e){return l.castOption(m,x,e)},A=T("hovertemplate"),S=o.castHoverinfo(m,i,x),M=i.separators;if(A||S&&"none"!==S&&"skip"!==S){var O,C;v&&(O=p.cx+a.pxmid[0]*(1-a.rInscribed),C=p.cy+a.pxmid[1]*(1-a.rInscribed)),y&&(O=a._hoverX,C=a._hoverY);var E,L={},P=[],j=[],z=function(e){return-1!==P.indexOf(e)};S&&(P="all"===S?m._module.attributes.hoverinfo.flags:S.split("+")),L.label=b.label,z("label")&&L.label&&j.push(L.label),b.hasOwnProperty("v")&&(L.value=b.v,L.valueLabel=u(L.value,M),z("value")&&j.push(L.valueLabel)),L.currentPath=a.currentPath=c.getPath(a.data),z("current path")&&!w&&j.push(L.currentPath);var D=[],I=function(){-1===D.indexOf(E)&&(j.push(E),D.push(E))};L.percentParent=a.percentParent=k/c.getValue(_),L.parent=a.parentString=c.getPtLabel(_),z("percent parent")&&(E=c.formatPercent(L.percentParent,M)+" of "+L.parent,I()),L.percentEntry=a.percentEntry=k/c.getValue(t),L.entry=a.entry=c.getPtLabel(t),!z("percent entry")||w||a.onPathbar||(E=c.formatPercent(L.percentEntry,M)+" of "+L.entry,I()),L.percentRoot=a.percentRoot=k/c.getValue(g),L.root=a.root=c.getPtLabel(g),z("percent root")&&!w&&(E=c.formatPercent(L.percentRoot,M)+" of "+L.root,I()),L.text=T("hovertext")||T("text"),z("text")&&(E=L.text,l.isValidTextValue(E)&&j.push(E)),s=[f(a,m,d.eventDataKeys)];var N={trace:m,y:C,_x0:a._x0,_x1:a._x1,_y0:a._y0,_y1:a._y1,text:j.join("<br>"),name:A||z("name")?m.name:void 0,color:T("hoverlabel.bgcolor")||b.color,borderColor:T("hoverlabel.bordercolor"),fontFamily:T("hoverlabel.font.family"),fontSize:T("hoverlabel.font.size"),fontColor:T("hoverlabel.font.color"),nameLength:T("hoverlabel.namelength"),textAlign:T("hoverlabel.align"),hovertemplate:A,hovertemplateLabels:L,eventData:s};v&&(N.x0=O-a.rInscribed*a.rpx1,N.x1=O+a.rInscribed*a.rpx1,N.idealAlign=a.pxmid[0]<0?"left":"right"),y&&(N.x=O,N.idealAlign=O<0?"left":"right");var R=[];o.loneHover(N,{container:i._hoverlayer.node(),outerContainer:i._paper.node(),gd:r,inOut_bbox:R}),s[0].bbox=R[0],h._hasHoverLabel=!0}if(y){var F=e.select("path.surface");d.styleOne(F,a,m,{hovered:!0})}h._hasHoverEvent=!0,r.emit("plotly_hover",{points:s||[f(a,m,d.eventDataKeys)],event:n.event})}})),e.on("mouseout",(function(t){var a=r._fullLayout,i=r._fullData[h.index],l=n.select(this).datum();if(h._hasHoverEvent&&(t.originalEvent=n.event,r.emit("plotly_unhover",{points:[f(l,i,d.eventDataKeys)],event:n.event}),h._hasHoverEvent=!1),h._hasHoverLabel&&(o.loneUnhover(a._hoverlayer.node()),h._hasHoverLabel=!1),y){var s=e.select("path.surface");d.styleOne(s,l,i,{hovered:!1})}})),e.on("click",(function(e){var t=r._fullLayout,i=r._fullData[h.index],l=v&&(c.isHierarchyRoot(e)||c.isLeaf(e)),u=c.getPtId(e),p=c.isEntry(e)?c.findEntryWithChild(g,u):c.findEntryWithLevel(g,u),y=c.getPtId(p),m={points:[f(e,i,d.eventDataKeys)],event:n.event};l||(m.nextLevel=y);var b=s.triggerHandler(r,"plotly_"+h.type+"click",m);if(!1!==b&&t.hovermode&&(r._hoverdata=[f(e,i,d.eventDataKeys)],o.click(r,n.event)),!l&&!1!==b&&!r._dragging&&!r._transitioning){a.call("_storeDirectGUIEdit",i,t._tracePreGUI[i.uid],{level:i.level});var x={data:[{level:y}],traces:[h.index]},w={frame:{redraw:!1,duration:d.transitionTime},transition:{duration:d.transitionTime,easing:d.transitionEasing},mode:"immediate",fromcurrent:!0};o.loneUnhover(t._hoverlayer.node()),a.call("animate",r,x,w)}}))}},function(e,t,r){"use strict";function n(e,t){return e.parent===t.parent?1:2}function a(e,t){return e+t.x}function i(e,t){return Math.max(e,t.y)}r.r(t),r.d(t,"cluster",(function(){return o})),r.d(t,"hierarchy",(function(){return s})),r.d(t,"pack",(function(){return j})),r.d(t,"packSiblings",(function(){return M})),r.d(t,"packEnclose",(function(){return h})),r.d(t,"partition",(function(){return F})),r.d(t,"stratify",(function(){return q})),r.d(t,"tree",(function(){return Q})),r.d(t,"treemap",(function(){return re})),r.d(t,"treemapBinary",(function(){return ne})),r.d(t,"treemapDice",(function(){return R})),r.d(t,"treemapSlice",(function(){return K})),r.d(t,"treemapSliceDice",(function(){return ae})),r.d(t,"treemapSquarify",(function(){return te})),r.d(t,"treemapResquarify",(function(){return ie}));var o=function(){var e=n,t=1,r=1,o=!1;function l(n){var l,s=0;n.eachAfter((function(t){var r=t.children;r?(t.x=function(e){return e.reduce(a,0)/e.length}(r),t.y=function(e){return 1+e.reduce(i,0)}(r)):(t.x=l?s+=e(t,l):0,t.y=0,l=t)}));var c=function(e){for(var t;t=e.children;)e=t[0];return e}(n),u=function(e){for(var t;t=e.children;)e=t[t.length-1];return e}(n),f=c.x-e(c,u)/2,d=u.x+e(u,c)/2;return n.eachAfter(o?function(e){e.x=(e.x-n.x)*t,e.y=(n.y-e.y)*r}:function(e){e.x=(e.x-f)/(d-f)*t,e.y=(1-(n.y?e.y/n.y:1))*r})}return l.separation=function(t){return arguments.length?(e=t,l):e},l.size=function(e){return arguments.length?(o=!1,t=+e[0],r=+e[1],l):o?null:[t,r]},l.nodeSize=function(e){return arguments.length?(o=!0,t=+e[0],r=+e[1],l):o?[t,r]:null},l};function l(e){var t=0,r=e.children,n=r&&r.length;if(n)for(;--n>=0;)t+=r[n].value;else t=1;e.value=t}function s(e,t){var r,n,a,i,o,l=new d(e),s=+e.value&&(l.value=e.value),u=[l];for(null==t&&(t=c);r=u.pop();)if(s&&(r.value=+r.data.value),(a=t(r.data))&&(o=a.length))for(r.children=new Array(o),i=o-1;i>=0;--i)u.push(n=r.children[i]=new d(a[i])),n.parent=r,n.depth=r.depth+1;return l.eachBefore(f)}function c(e){return e.children}function u(e){e.data=e.data.data}function f(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function d(e){this.data=e,this.depth=this.height=0,this.parent=null}d.prototype=s.prototype={constructor:d,count:function(){return this.eachAfter(l)},each:function(e){var t,r,n,a,i=this,o=[i];do{for(t=o.reverse(),o=[];i=t.pop();)if(e(i),r=i.children)for(n=0,a=r.length;n<a;++n)o.push(r[n])}while(o.length);return this},eachAfter:function(e){for(var t,r,n,a=this,i=[a],o=[];a=i.pop();)if(o.push(a),t=a.children)for(r=0,n=t.length;r<n;++r)i.push(t[r]);for(;a=o.pop();)e(a);return this},eachBefore:function(e){for(var t,r,n=this,a=[n];n=a.pop();)if(e(n),t=n.children)for(r=t.length-1;r>=0;--r)a.push(t[r]);return this},sum:function(e){return this.eachAfter((function(t){for(var r=+e(t.data)||0,n=t.children,a=n&&n.length;--a>=0;)r+=n[a].value;t.value=r}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,r=function(e,t){if(e===t)return e;var r=e.ancestors(),n=t.ancestors(),a=null;e=r.pop(),t=n.pop();for(;e===t;)a=e,e=r.pop(),t=n.pop();return a}(t,e),n=[t];t!==r;)t=t.parent,n.push(t);for(var a=n.length;e!==r;)n.splice(a,0,e),e=e.parent;return n},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){var e=[];return this.each((function(t){e.push(t)})),e},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(r){r!==e&&t.push({source:r.parent,target:r})})),t},copy:function(){return s(this).eachBefore(u)}};var p=Array.prototype.slice;var h=function(e){for(var t,r,n=0,a=(e=function(e){for(var t,r,n=e.length;n;)r=Math.random()*n--|0,t=e[n],e[n]=e[r],e[r]=t;return e}(p.call(e))).length,i=[];n<a;)t=e[n],r&&y(r,t)?++n:(r=b(i=g(i,t)),n=0);return r};function g(e,t){var r,n;if(m(t,e))return[t];for(r=0;r<e.length;++r)if(v(t,e[r])&&m(x(e[r],t),e))return[e[r],t];for(r=0;r<e.length-1;++r)for(n=r+1;n<e.length;++n)if(v(x(e[r],e[n]),t)&&v(x(e[r],t),e[n])&&v(x(e[n],t),e[r])&&m(w(e[r],e[n],t),e))return[e[r],e[n],t];throw new Error}function v(e,t){var r=e.r-t.r,n=t.x-e.x,a=t.y-e.y;return r<0||r*r<n*n+a*a}function y(e,t){var r=e.r-t.r+1e-6,n=t.x-e.x,a=t.y-e.y;return r>0&&r*r>n*n+a*a}function m(e,t){for(var r=0;r<t.length;++r)if(!y(e,t[r]))return!1;return!0}function b(e){switch(e.length){case 1:return{x:(t=e[0]).x,y:t.y,r:t.r};case 2:return x(e[0],e[1]);case 3:return w(e[0],e[1],e[2])}var t}function x(e,t){var r=e.x,n=e.y,a=e.r,i=t.x,o=t.y,l=t.r,s=i-r,c=o-n,u=l-a,f=Math.sqrt(s*s+c*c);return{x:(r+i+s/f*u)/2,y:(n+o+c/f*u)/2,r:(f+a+l)/2}}function w(e,t,r){var n=e.x,a=e.y,i=e.r,o=t.x,l=t.y,s=t.r,c=r.x,u=r.y,f=r.r,d=n-o,p=n-c,h=a-l,g=a-u,v=s-i,y=f-i,m=n*n+a*a-i*i,b=m-o*o-l*l+s*s,x=m-c*c-u*u+f*f,w=p*h-d*g,_=(h*x-g*b)/(2*w)-n,k=(g*v-h*y)/w,T=(p*b-d*x)/(2*w)-a,A=(d*y-p*v)/w,S=k*k+A*A-1,M=2*(i+_*k+T*A),O=_*_+T*T-i*i,C=-(S?(M+Math.sqrt(M*M-4*S*O))/(2*S):O/M);return{x:n+_+k*C,y:a+T+A*C,r:C}}function _(e,t,r){var n,a,i,o,l=e.x-t.x,s=e.y-t.y,c=l*l+s*s;c?(a=t.r+r.r,a*=a,o=e.r+r.r,a>(o*=o)?(n=(c+o-a)/(2*c),i=Math.sqrt(Math.max(0,o/c-n*n)),r.x=e.x-n*l-i*s,r.y=e.y-n*s+i*l):(n=(c+a-o)/(2*c),i=Math.sqrt(Math.max(0,a/c-n*n)),r.x=t.x+n*l-i*s,r.y=t.y+n*s+i*l)):(r.x=t.x+r.r,r.y=t.y)}function k(e,t){var r=e.r+t.r-1e-6,n=t.x-e.x,a=t.y-e.y;return r>0&&r*r>n*n+a*a}function T(e){var t=e._,r=e.next._,n=t.r+r.r,a=(t.x*r.r+r.x*t.r)/n,i=(t.y*r.r+r.y*t.r)/n;return a*a+i*i}function A(e){this._=e,this.next=null,this.previous=null}function S(e){if(!(a=e.length))return 0;var t,r,n,a,i,o,l,s,c,u,f;if((t=e[0]).x=0,t.y=0,!(a>1))return t.r;if(r=e[1],t.x=-r.r,r.x=t.r,r.y=0,!(a>2))return t.r+r.r;_(r,t,n=e[2]),t=new A(t),r=new A(r),n=new A(n),t.next=n.previous=r,r.next=t.previous=n,n.next=r.previous=t;e:for(l=3;l<a;++l){_(t._,r._,n=e[l]),n=new A(n),s=r.next,c=t.previous,u=r._.r,f=t._.r;do{if(u<=f){if(k(s._,n._)){r=s,t.next=r,r.previous=t,--l;continue e}u+=s._.r,s=s.next}else{if(k(c._,n._)){(t=c).next=r,r.previous=t,--l;continue e}f+=c._.r,c=c.previous}}while(s!==c.next);for(n.previous=t,n.next=r,t.next=r.previous=r=n,i=T(t);(n=n.next)!==r;)(o=T(n))<i&&(t=n,i=o);r=t.next}for(t=[r._],n=r;(n=n.next)!==r;)t.push(n._);for(n=h(t),l=0;l<a;++l)(t=e[l]).x-=n.x,t.y-=n.y;return n.r}var M=function(e){return S(e),e};function O(e){return null==e?null:C(e)}function C(e){if("function"!==typeof e)throw new Error;return e}function E(){return 0}var L=function(e){return function(){return e}};function P(e){return Math.sqrt(e.value)}var j=function(){var e=null,t=1,r=1,n=E;function a(a){return a.x=t/2,a.y=r/2,e?a.eachBefore(z(e)).eachAfter(D(n,.5)).eachBefore(I(1)):a.eachBefore(z(P)).eachAfter(D(E,1)).eachAfter(D(n,a.r/Math.min(t,r))).eachBefore(I(Math.min(t,r)/(2*a.r))),a}return a.radius=function(t){return arguments.length?(e=O(t),a):e},a.size=function(e){return arguments.length?(t=+e[0],r=+e[1],a):[t,r]},a.padding=function(e){return arguments.length?(n="function"===typeof e?e:L(+e),a):n},a};function z(e){return function(t){t.children||(t.r=Math.max(0,+e(t)||0))}}function D(e,t){return function(r){if(n=r.children){var n,a,i,o=n.length,l=e(r)*t||0;if(l)for(a=0;a<o;++a)n[a].r+=l;if(i=S(n),l)for(a=0;a<o;++a)n[a].r-=l;r.r=i+l}}}function I(e){return function(t){var r=t.parent;t.r*=e,r&&(t.x=r.x+e*t.x,t.y=r.y+e*t.y)}}var N=function(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)},R=function(e,t,r,n,a){for(var i,o=e.children,l=-1,s=o.length,c=e.value&&(n-t)/e.value;++l<s;)(i=o[l]).y0=r,i.y1=a,i.x0=t,i.x1=t+=i.value*c},F=function(){var e=1,t=1,r=0,n=!1;function a(a){var i=a.height+1;return a.x0=a.y0=r,a.x1=e,a.y1=t/i,a.eachBefore(function(e,t){return function(n){n.children&&R(n,n.x0,e*(n.depth+1)/t,n.x1,e*(n.depth+2)/t);var a=n.x0,i=n.y0,o=n.x1-r,l=n.y1-r;o<a&&(a=o=(a+o)/2),l<i&&(i=l=(i+l)/2),n.x0=a,n.y0=i,n.x1=o,n.y1=l}}(t,i)),n&&a.eachBefore(N),a}return a.round=function(e){return arguments.length?(n=!!e,a):n},a.size=function(r){return arguments.length?(e=+r[0],t=+r[1],a):[e,t]},a.padding=function(e){return arguments.length?(r=+e,a):r},a},B={depth:-1},U={};function H(e){return e.id}function V(e){return e.parentId}var q=function(){var e=H,t=V;function r(r){var n,a,i,o,l,s,c,u=r.length,p=new Array(u),h={};for(a=0;a<u;++a)n=r[a],l=p[a]=new d(n),null!=(s=e(n,a,r))&&(s+="")&&(h[c="$"+(l.id=s)]=c in h?U:l);for(a=0;a<u;++a)if(l=p[a],null!=(s=t(r[a],a,r))&&(s+="")){if(!(o=h["$"+s]))throw new Error("missing: "+s);if(o===U)throw new Error("ambiguous: "+s);o.children?o.children.push(l):o.children=[l],l.parent=o}else{if(i)throw new Error("multiple roots");i=l}if(!i)throw new Error("no root");if(i.parent=B,i.eachBefore((function(e){e.depth=e.parent.depth+1,--u})).eachBefore(f),i.parent=null,u>0)throw new Error("cycle");return i}return r.id=function(t){return arguments.length?(e=C(t),r):e},r.parentId=function(e){return arguments.length?(t=C(e),r):t},r};function W(e,t){return e.parent===t.parent?1:2}function Y(e){var t=e.children;return t?t[0]:e.t}function G(e){var t=e.children;return t?t[t.length-1]:e.t}function X(e,t,r){var n=r/(t.i-e.i);t.c-=n,t.s+=r,e.c+=n,t.z+=r,t.m+=r}function Z(e,t,r){return e.a.parent===t.parent?e.a:r}function $(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}$.prototype=Object.create(d.prototype);var Q=function(){var e=W,t=1,r=1,n=null;function a(a){var s=function(e){for(var t,r,n,a,i,o=new $(e,0),l=[o];t=l.pop();)if(n=t._.children)for(t.children=new Array(i=n.length),a=i-1;a>=0;--a)l.push(r=t.children[a]=new $(n[a],a)),r.parent=t;return(o.parent=new $(null,0)).children=[o],o}(a);if(s.eachAfter(i),s.parent.m=-s.z,s.eachBefore(o),n)a.eachBefore(l);else{var c=a,u=a,f=a;a.eachBefore((function(e){e.x<c.x&&(c=e),e.x>u.x&&(u=e),e.depth>f.depth&&(f=e)}));var d=c===u?1:e(c,u)/2,p=d-c.x,h=t/(u.x+d+p),g=r/(f.depth||1);a.eachBefore((function(e){e.x=(e.x+p)*h,e.y=e.depth*g}))}return a}function i(t){var r=t.children,n=t.parent.children,a=t.i?n[t.i-1]:null;if(r){!function(e){for(var t,r=0,n=0,a=e.children,i=a.length;--i>=0;)(t=a[i]).z+=r,t.m+=r,r+=t.s+(n+=t.c)}(t);var i=(r[0].z+r[r.length-1].z)/2;a?(t.z=a.z+e(t._,a._),t.m=t.z-i):t.z=i}else a&&(t.z=a.z+e(t._,a._));t.parent.A=function(t,r,n){if(r){for(var a,i=t,o=t,l=r,s=i.parent.children[0],c=i.m,u=o.m,f=l.m,d=s.m;l=G(l),i=Y(i),l&&i;)s=Y(s),(o=G(o)).a=t,(a=l.z+f-i.z-c+e(l._,i._))>0&&(X(Z(l,t,n),t,a),c+=a,u+=a),f+=l.m,c+=i.m,d+=s.m,u+=o.m;l&&!G(o)&&(o.t=l,o.m+=f-u),i&&!Y(s)&&(s.t=i,s.m+=c-d,n=t)}return n}(t,a,t.parent.A||n[0])}function o(e){e._.x=e.z+e.parent.m,e.m+=e.parent.m}function l(e){e.x*=t,e.y=e.depth*r}return a.separation=function(t){return arguments.length?(e=t,a):e},a.size=function(e){return arguments.length?(n=!1,t=+e[0],r=+e[1],a):n?null:[t,r]},a.nodeSize=function(e){return arguments.length?(n=!0,t=+e[0],r=+e[1],a):n?[t,r]:null},a},K=function(e,t,r,n,a){for(var i,o=e.children,l=-1,s=o.length,c=e.value&&(a-r)/e.value;++l<s;)(i=o[l]).x0=t,i.x1=n,i.y0=r,i.y1=r+=i.value*c},J=(1+Math.sqrt(5))/2;function ee(e,t,r,n,a,i){for(var o,l,s,c,u,f,d,p,h,g,v,y=[],m=t.children,b=0,x=0,w=m.length,_=t.value;b<w;){s=a-r,c=i-n;do{u=m[x++].value}while(!u&&x<w);for(f=d=u,v=u*u*(g=Math.max(c/s,s/c)/(_*e)),h=Math.max(d/v,v/f);x<w;++x){if(u+=l=m[x].value,l<f&&(f=l),l>d&&(d=l),v=u*u*g,(p=Math.max(d/v,v/f))>h){u-=l;break}h=p}y.push(o={value:u,dice:s<c,children:m.slice(b,x)}),o.dice?R(o,r,n,a,_?n+=c*u/_:i):K(o,r,n,_?r+=s*u/_:a,i),_-=u,b=x}return y}var te=function e(t){function r(e,r,n,a,i){ee(t,e,r,n,a,i)}return r.ratio=function(t){return e((t=+t)>1?t:1)},r}(J),re=function(){var e=te,t=!1,r=1,n=1,a=[0],i=E,o=E,l=E,s=E,c=E;function u(e){return e.x0=e.y0=0,e.x1=r,e.y1=n,e.eachBefore(f),a=[0],t&&e.eachBefore(N),e}function f(t){var r=a[t.depth],n=t.x0+r,u=t.y0+r,f=t.x1-r,d=t.y1-r;f<n&&(n=f=(n+f)/2),d<u&&(u=d=(u+d)/2),t.x0=n,t.y0=u,t.x1=f,t.y1=d,t.children&&(r=a[t.depth+1]=i(t)/2,n+=c(t)-r,u+=o(t)-r,(f-=l(t)-r)<n&&(n=f=(n+f)/2),(d-=s(t)-r)<u&&(u=d=(u+d)/2),e(t,n,u,f,d))}return u.round=function(e){return arguments.length?(t=!!e,u):t},u.size=function(e){return arguments.length?(r=+e[0],n=+e[1],u):[r,n]},u.tile=function(t){return arguments.length?(e=C(t),u):e},u.padding=function(e){return arguments.length?u.paddingInner(e).paddingOuter(e):u.paddingInner()},u.paddingInner=function(e){return arguments.length?(i="function"===typeof e?e:L(+e),u):i},u.paddingOuter=function(e){return arguments.length?u.paddingTop(e).paddingRight(e).paddingBottom(e).paddingLeft(e):u.paddingTop()},u.paddingTop=function(e){return arguments.length?(o="function"===typeof e?e:L(+e),u):o},u.paddingRight=function(e){return arguments.length?(l="function"===typeof e?e:L(+e),u):l},u.paddingBottom=function(e){return arguments.length?(s="function"===typeof e?e:L(+e),u):s},u.paddingLeft=function(e){return arguments.length?(c="function"===typeof e?e:L(+e),u):c},u},ne=function(e,t,r,n,a){var i,o,l=e.children,s=l.length,c=new Array(s+1);for(c[0]=o=i=0;i<s;++i)c[i+1]=o+=l[i].value;!function e(t,r,n,a,i,o,s){if(t>=r-1){var u=l[t];return u.x0=a,u.y0=i,u.x1=o,void(u.y1=s)}var f=c[t],d=n/2+f,p=t+1,h=r-1;for(;p<h;){var g=p+h>>>1;c[g]<d?p=g+1:h=g}d-c[p-1]<c[p]-d&&t+1<p&&--p;var v=c[p]-f,y=n-v;if(o-a>s-i){var m=(a*y+o*v)/n;e(t,p,v,a,i,m,s),e(p,r,y,m,i,o,s)}else{var b=(i*y+s*v)/n;e(t,p,v,a,i,o,b),e(p,r,y,a,b,o,s)}}(0,s,e.value,t,r,n,a)},ae=function(e,t,r,n,a){(1&e.depth?K:R)(e,t,r,n,a)},ie=function e(t){function r(e,r,n,a,i){if((o=e._squarify)&&o.ratio===t)for(var o,l,s,c,u,f=-1,d=o.length,p=e.value;++f<d;){for(s=(l=o[f]).children,c=l.value=0,u=s.length;c<u;++c)l.value+=s[c].value;l.dice?R(l,r,n,a,n+=(i-n)*l.value/p):K(l,r,n,r+=(a-r)*l.value/p,i),p-=l.value}else e._squarify=o=ee(t,e,r,n,a,i),o.ratio=t}return r.ratio=function(t){return e((t=+t)>1?t:1)},r}(J)},function(e,t,r){"use strict";function n(e,t,r,n,a,i,o){try{var l=e[i](o),s=l.value}catch(c){return void r(c)}l.done?t(s):Promise.resolve(s).then(n,a)}function a(e){return function(){var t=this,r=arguments;return new Promise((function(a,i){var o=e.apply(t,r);function l(e){n(o,a,i,l,s,"next",e)}function s(e){n(o,a,i,l,s,"throw",e)}l(void 0)}))}}r.d(t,"a",(function(){return a}))},function(e,t,r){"use strict";e.exports=r(473)},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){var n=r(204);e.exports=function(e,t){if(e){if("string"===typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){var n=r(110);e.exports=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=n(e)););return e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){"use strict";var n=r(60);e.exports=function(e,t,r){var a;return isNaN(e)?(a=t)>=0?r&&a?a-1:a:1:!1!==e&&n(e)}},function(e,t,r){"use strict";var n,a,i,o,l=r(60),s=function(e,t){return t};try{Object.defineProperty(s,"length",{configurable:!0,writable:!1,enumerable:!1,value:1})}catch(c){}1===s.length?(n={configurable:!0,writable:!1,enumerable:!1},a=Object.defineProperty,e.exports=function(e,t){return t=l(t),e.length===t?e:(n.value=t,a(e,"length",n))}):(o=r(212),i=function(){var e=[];return function(t){var r,n=0;if(e[t])return e[t];for(r=[];t--;)r.push("a"+(++n).toString(36));return new Function("fn","return function ("+r.join(", ")+") { return fn.apply(this, arguments); };")}}(),e.exports=function(e,t){var r;if(t=l(t),e.length===t)return e;r=i(t)(e);try{o(r,e)}catch(c){}return r})},function(e,t,r){"use strict";var n=r(37),a=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols;e.exports=function(e,t){var r,s=Object(n(t));if(e=Object(n(e)),o(s).forEach((function(n){try{a(e,n,i(t,n))}catch(o){r=o}})),"function"===typeof l&&l(s).forEach((function(n){try{a(e,n,i(t,n))}catch(o){r=o}})),void 0!==r)throw r;return e}},function(e,t,r){"use strict";var n=r(404),a=/^\s*class[\s{/}]/,i=Function.prototype.toString;e.exports=function(e){return!!n(e)&&!a.test(i.call(e))}},function(e,t,r){"use strict";e.exports=r(406)()?String.prototype.contains:r(407)},function(e,t,r){"use strict";var n=r(417);e.exports=function(e){if(!n(e))throw new TypeError(e+" is not a symbol");return e}},function(e,t,r){"use strict";e.exports=function(e){return"function"===typeof e}},function(e,t){function r(e){return!!e&&("object"===typeof e||"function"===typeof e)&&"function"===typeof e.then}e.exports=r,e.exports.default=r},,function(e,t,r){"use strict";var n=Object.prototype.toString;e.exports=function(e){var t=n.call(e),r="[object Arguments]"===t;return r||(r="[object Array]"!==t&&null!==e&&"object"===typeof e&&"number"===typeof e.length&&e.length>=0&&"[object Function]"===n.call(e.callee)),r}},function(e,t,r){"use strict";var n=r(54)(),a=r(43)("Object.prototype.toString"),i=function(e){return!(n&&e&&"object"===typeof e&&Symbol.toStringTag in e)&&"[object Arguments]"===a(e)},o=function(e){return!!i(e)||null!==e&&"object"===typeof e&&"number"===typeof e.length&&e.length>=0&&"[object Array]"!==a(e)&&"[object Function]"===a(e.callee)},l=function(){return i(arguments)}();i.isLegacyArguments=o,e.exports=l?i:o},function(e,t,r){"use strict";var n=function(e){return e!==e};e.exports=function(e,t){return 0===e&&0===t?1/e===1/t:e===t||!(!n(e)||!n(t))}},function(e,t,r){"use strict";var n=r(221);e.exports=function(){return"function"===typeof Object.is?Object.is:n}},function(e,t,r){"use strict";var n=Object,a=TypeError;e.exports=function(){if(null!=this&&this!==n(this))throw new a("RegExp.prototype.flags getter called on non-object");var e="";return this.hasIndices&&(e+="d"),this.global&&(e+="g"),this.ignoreCase&&(e+="i"),this.multiline&&(e+="m"),this.dotAll&&(e+="s"),this.unicode&&(e+="u"),this.sticky&&(e+="y"),e}},function(e,t,r){"use strict";var n=r(223),a=r(64).supportsDescriptors,i=Object.getOwnPropertyDescriptor;e.exports=function(){if(a&&"gim"===/a/gim.flags){var e=i(RegExp.prototype,"flags");if(e&&"function"===typeof e.get&&"boolean"===typeof/a/.dotAll)return e.get}return n}},function(e,t){var r={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==r.call(e)}},function(e,t,r){"use strict";var n=String.prototype.valueOf,a=Object.prototype.toString,i=r(54)();e.exports=function(e){return"string"===typeof e||"object"===typeof e&&(i?function(e){try{return n.call(e),!0}catch(t){return!1}}(e):"[object String]"===a.call(e))}},function(e,t,r){"use strict";var n,a="function"===typeof Map&&Map.prototype?Map:null,i="function"===typeof Set&&Set.prototype?Set:null;a||(n=function(e){return!1});var o=a?Map.prototype.has:null,l=i?Set.prototype.has:null;n||o||(n=function(e){return!1}),e.exports=n||function(e){if(!e||"object"!==typeof e)return!1;try{if(o.call(e),l)try{l.call(e)}catch(t){return!0}return e instanceof a}catch(t){}return!1}},function(e,t,r){"use strict";var n,a="function"===typeof Map&&Map.prototype?Map:null,i="function"===typeof Set&&Set.prototype?Set:null;i||(n=function(e){return!1});var o=a?Map.prototype.has:null,l=i?Set.prototype.has:null;n||l||(n=function(e){return!1}),e.exports=n||function(e){if(!e||"object"!==typeof e)return!1;try{if(l.call(e),o)try{o.call(e)}catch(t){return!0}return e instanceof i}catch(t){}return!1}},function(e,t){var r=Object.prototype.hasOwnProperty,n=Object.prototype.toString;e.exports=function(e,t,a){if("[object Function]"!==n.call(t))throw new TypeError("iterator must be a function");var i=e.length;if(i===+i)for(var o=0;o<i;o++)t.call(a,e[o],o,e);else for(var l in e)r.call(e,l)&&t.call(a,e[l],l,e)}},function(e,t,r){"use strict";(function(t){var r=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],n="undefined"===typeof globalThis?t:globalThis;e.exports=function(){for(var e=[],t=0;t<r.length;t++)"function"===typeof n[r[t]]&&(e[e.length]=r[t]);return e}}).call(this,r(27))},function(e,t,r){"use strict";var n=r(63)("%Object.getOwnPropertyDescriptor%",!0);if(n)try{n([],"length")}catch(a){n=null}e.exports=n},function(e,t,r){"use strict";var n=r(149),a=function(e){return"undefined"!==typeof e&&null!==e},i=r(117)(),o=r(43),l=Object,s=o("Array.prototype.push"),c=o("Object.prototype.propertyIsEnumerable"),u=i?Object.getOwnPropertySymbols:null;e.exports=function(e,t){if(!a(e))throw new TypeError("target must be an object");var r,o,f,d,p,h,g,v=l(e);for(r=1;r<arguments.length;++r){o=l(arguments[r]),d=n(o);var y=i&&(Object.getOwnPropertySymbols||u);if(y)for(p=y(o),f=0;f<p.length;++f)g=p[f],c(o,g)&&s(d,g);for(f=0;f<d.length;++f)h=o[g=d[f]],c(o,g)&&(v[g]=h)}return v}},function(e,t,r){"use strict";var n=r(232);e.exports=function(){return Object.assign?function(){if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",t=e.split(""),r={},n=0;n<t.length;++n)r[t[n]]=t[n];var a=Object.assign({},r),i="";for(var o in a)i+=o;return e!==i}()||function(){if(!Object.assign||!Object.preventExtensions)return!1;var e=Object.preventExtensions({1:2});try{Object.assign(e,"xy")}catch(t){return"y"===e[1]}return!1}()?n:Object.assign:n}},function(e,t,r){"use strict";var n=r(7),a=r(9),i=[];e.exports=function(e,t){if(-1===i.indexOf(e)){i.push(e);var r=1e3;a(t)?r=t:"long"===t&&(r=3e3);var o=n.select("body").selectAll(".plotly-notifier").data([0]);o.enter().append("div").classed("plotly-notifier",!0),o.selectAll(".notifier-note").data(i).enter().append("div").classed("notifier-note",!0).style("opacity",0).each((function(e){var a=n.select(this);a.append("button").classed("notifier-close",!0).html("&times;").on("click",(function(){a.transition().call(l)}));for(var i=a.append("p"),o=e.split(/<br\s*\/?>/g),s=0;s<o.length;s++)s&&i.append("br"),i.append("span").text(o[s]);"stick"===t?a.transition().duration(350).style("opacity",1):a.transition().duration(700).style("opacity",1).transition().delay(r).call(l)}))}function l(e){e.duration(700).style("opacity",0).each("end",(function(e){var t=i.indexOf(e);-1!==t&&i.splice(t,1),n.select(this).remove()}))}}},function(e,t,r){"use strict";e.exports=function(e,t){if(t instanceof RegExp){for(var r=t.toString(),n=0;n<e.length;n++)if(e[n]instanceof RegExp&&e[n].toString()===r)return e;e.push(t)}else!t&&0!==t||-1!==e.indexOf(t)||e.push(t);return e}},function(e,t,r){e.exports={create:r(482),clone:r(483),copy:r(484),identity:r(237),transpose:r(485),invert:r(486),adjoint:r(487),determinant:r(488),multiply:r(489),translate:r(490),scale:r(491),rotate:r(492),rotateX:r(493),rotateY:r(494),rotateZ:r(495),fromRotation:r(496),fromRotationTranslation:r(497),fromScaling:r(498),fromTranslation:r(499),fromXRotation:r(500),fromYRotation:r(501),fromZRotation:r(502),fromQuat:r(238),frustum:r(503),perspective:r(504),perspectiveFromFieldOfView:r(505),ortho:r(506),lookAt:r(507),str:r(508)}},function(e,t){e.exports=function(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}},function(e,t){e.exports=function(e,t){var r=t[0],n=t[1],a=t[2],i=t[3],o=r+r,l=n+n,s=a+a,c=r*o,u=n*o,f=n*l,d=a*o,p=a*l,h=a*s,g=i*o,v=i*l,y=i*s;return e[0]=1-f-h,e[1]=u+y,e[2]=d-v,e[3]=0,e[4]=u-y,e[5]=1-c-h,e[6]=p+g,e[7]=0,e[8]=d+v,e[9]=p-g,e[10]=1-c-f,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}},function(e,t,r){"use strict";var n=r(9),a=r(72),i=r(240),o=r(19).BADNUM,l=1e-9;function s(e,t){return e<t}function c(e,t){return e<=t}function u(e,t){return e>t}function f(e,t){return e>=t}t.findBin=function(e,t,r){if(n(t.start))return r?Math.ceil((e-t.start)/t.size-l)-1:Math.floor((e-t.start)/t.size+l);var i,o,d=0,p=t.length,h=0,g=p>1?(t[p-1]-t[0])/(p-1):1;for(o=g>=0?r?s:c:r?f:u,e+=g*l*(r?-1:1)*(g>=0?1:-1);d<p&&h++<100;)o(t[i=Math.floor((d+p)/2)],e)?d=i+1:p=i;return h>90&&a.log("Long binary search..."),d-1},t.sorterAsc=function(e,t){return e-t},t.sorterDes=function(e,t){return t-e},t.distinctVals=function(e){var r,n=e.slice();for(n.sort(t.sorterAsc),r=n.length-1;r>-1&&n[r]===o;r--);for(var a,i=n[r]-n[0]||1,l=i/(r||1)/1e4,s=[],c=0;c<=r;c++){var u=n[c],f=u-a;void 0===a?(s.push(u),a=u):f>l&&(i=Math.min(i,f),s.push(u),a=u)}return{vals:s,minDiff:i}},t.roundUp=function(e,t,r){for(var n,a=0,i=t.length-1,o=0,l=r?0:1,s=r?1:0,c=r?Math.ceil:Math.floor;a<i&&o++<100;)t[n=c((a+i)/2)]<=e?a=n+l:i=n-s;return t[a]},t.sort=function(e,t){for(var r=0,n=0,a=1;a<e.length;a++){var i=t(e[a],e[a-1]);if(i<0?r=1:i>0&&(n=1),r&&n)return e.sort(t)}return n?e:e.reverse()},t.findIndexOfMin=function(e,t){t=t||i;for(var r,n=1/0,a=0;a<e.length;a++){var o=t(e[a]);o<n&&(n=o,r=a)}return r}},function(e,t,r){"use strict";e.exports=function(e){return e}},function(e,t,r){"use strict";var n=r(7),a=r(9),i=r(242),o=r(0),l=o.nestedProperty,s=r(94),c=r(524),u=r(5),f=r(95),d=r(20),p=r(14),h=r(10),g=r(8),v=r(258).initInteractions,y=r(74),m=r(124).clearSelect,b=r(73).dfltConfig,x=r(553),w=r(555),_=r(173),k=r(55),T=r(29).AX_NAME_PATTERN,A=0;function S(e){var t=e._fullLayout;t._redrawFromAutoMarginCount?t._redrawFromAutoMarginCount--:e.emit("plotly_afterplot")}function M(e,t){try{e._fullLayout._paper.style("background",t)}catch(r){o.error(r)}}function O(e,t){M(e,g.combine(t,"white"))}function C(e,t){if(!e._context){e._context=o.extendDeep({},b);var r=n.select("base");e._context._baseUrl=r.size()&&r.attr("href")?window.location.href.split("#")[0]:""}var a,l,s,c=e._context;if(t){for(l=Object.keys(t),a=0;a<l.length;a++)"editable"!==(s=l[a])&&"edits"!==s&&s in c&&("setBackground"===s&&"opaque"===t[s]?c[s]=O:c[s]=t[s]);t.plot3dPixelRatio&&!c.plotGlPixelRatio&&(c.plotGlPixelRatio=c.plot3dPixelRatio);var u=t.editable;if(void 0!==u)for(c.editable=u,l=Object.keys(c.edits),a=0;a<l.length;a++)c.edits[l[a]]=u;if(t.edits)for(l=Object.keys(t.edits),a=0;a<l.length;a++)(s=l[a])in c.edits&&(c.edits[s]=t.edits[s]);c._exportedPlot=t._exportedPlot}c.staticPlot&&(c.editable=!1,c.edits={},c.autosizable=!1,c.scrollZoom=!1,c.doubleClick=!1,c.showTips=!1,c.showLink=!1,c.displayModeBar=!1),"hover"!==c.displayModeBar||i||(c.displayModeBar=!0),"transparent"!==c.setBackground&&"function"===typeof c.setBackground||(c.setBackground=M),c._hasZeroHeight=c._hasZeroHeight||0===e.clientHeight,c._hasZeroWidth=c._hasZeroWidth||0===e.clientWidth;var f=c.scrollZoom,d=c._scrollZoom={};if(!0===f)d.cartesian=1,d.gl3d=1,d.geo=1,d.mapbox=1;else if("string"===typeof f){var p=f.split("+");for(a=0;a<p.length;a++)d[p[a]]=1}else!1!==f&&(d.gl3d=1,d.geo=1,d.mapbox=1)}function E(e,t){var r,n,a=t+1,i=[];for(r=0;r<e.length;r++)(n=e[r])<0?i.push(a+n):i.push(n);return i}function L(e,t,r){var n,a;for(n=0;n<t.length;n++){if((a=t[n])!==parseInt(a,10))throw new Error("all values in "+r+" must be integers");if(a>=e.data.length||a<-e.data.length)throw new Error(r+" must be valid indices for gd.data.");if(t.indexOf(a,n+1)>-1||a>=0&&t.indexOf(-e.data.length+a)>-1||a<0&&t.indexOf(e.data.length+a)>-1)throw new Error("each index in "+r+" must be unique.")}}function P(e,t,r){if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if("undefined"===typeof t)throw new Error("currentIndices is a required argument.");if(Array.isArray(t)||(t=[t]),L(e,t,"currentIndices"),"undefined"===typeof r||Array.isArray(r)||(r=[r]),"undefined"!==typeof r&&L(e,r,"newIndices"),"undefined"!==typeof r&&t.length!==r.length)throw new Error("current and new indices must be of equal length.")}function j(e,t,r,n,i){!function(e,t,r,n){var a=o.isPlainObject(n);if(!Array.isArray(e.data))throw new Error("gd.data must be an array");if(!o.isPlainObject(t))throw new Error("update must be a key:value object");if("undefined"===typeof r)throw new Error("indices must be an integer or array of integers");for(var i in L(e,r,"indices"),t){if(!Array.isArray(t[i])||t[i].length!==r.length)throw new Error("attribute "+i+" must be an array of length equal to indices array length");if(a&&(!(i in n)||!Array.isArray(n[i])||n[i].length!==t[i].length))throw new Error("when maxPoints is set as a key:value object it must contain a 1:1 corrispondence with the keys and number of traces in the update object")}}(e,t,r,n);for(var s=function(e,t,r,n){var i,s,c,u,f,d=o.isPlainObject(n),p=[];for(var h in Array.isArray(r)||(r=[r]),r=E(r,e.data.length-1),t)for(var g=0;g<r.length;g++){if(i=e.data[r[g]],s=(c=l(i,h)).get(),u=t[h][g],!o.isArrayOrTypedArray(u))throw new Error("attribute: "+h+" index: "+g+" must be an array");if(!o.isArrayOrTypedArray(s))throw new Error("cannot extend missing or non-array attribute: "+h);if(s.constructor!==u.constructor)throw new Error("cannot extend array with an array of a different type: "+h);f=d?n[h][g]:n,a(f)||(f=-1),p.push({prop:c,target:s,insert:u,maxp:Math.floor(f)})}return p}(e,t,r,n),c={},u={},f=0;f<s.length;f++){var d=s[f].prop,p=s[f].maxp,h=i(s[f].target,s[f].insert,p);d.set(h[0]),Array.isArray(c[d.astr])||(c[d.astr]=[]),c[d.astr].push(h[1]),Array.isArray(u[d.astr])||(u[d.astr]=[]),u[d.astr].push(s[f].target.length)}return{update:c,maxPoints:u}}function z(e,t){var r=new e.constructor(e.length+t.length);return r.set(e),r.set(t,e.length),r}function D(e,r,n,a){e=o.getGraphDiv(e),w.clearPromiseQueue(e);var i={};if("string"===typeof r)i[r]=n;else{if(!o.isPlainObject(r))return o.warn("Restyle fail.",r,n,a),Promise.reject();i=o.extendFlat({},r),void 0===a&&(a=n)}Object.keys(i).length&&(e.changed=!0);var l=w.coerceTraceIndices(e,a),s=F(e,i,l),u=s.flags;u.calc&&(e.calcdata=void 0),u.clearAxisTypes&&w.clearAxisTypes(e,l,{});var f=[];u.fullReplot?f.push(t._doPlot):(f.push(d.previousPromises),d.supplyDefaults(e),u.markerSize&&(d.doCalcdata(e),V(f)),u.style&&f.push(_.doTraceStyle),u.colorbars&&f.push(_.doColorBars),f.push(S)),f.push(d.rehover,d.redrag),c.add(e,D,[e,s.undoit,s.traces],D,[e,s.redoit,s.traces]);var p=o.syncOrAsync(f,e);return p&&p.then||(p=Promise.resolve()),p.then((function(){return e.emit("plotly_restyle",s.eventData),e}))}function I(e){return void 0===e?null:e}function N(e,t){return t?function(t,r,n){var a=l(t,r),i=a.set;return a.set=function(t){R((n||"")+r,a.get(),t,e),i(t)},a}:l}function R(e,t,r,n){if(Array.isArray(t)||Array.isArray(r))for(var a=Array.isArray(t)?t:[],i=Array.isArray(r)?r:[],l=Math.max(a.length,i.length),s=0;s<l;s++)R(e+"["+s+"]",a[s],i[s],n);else if(o.isPlainObject(t)||o.isPlainObject(r)){var c=o.isPlainObject(t)?t:{},u=o.isPlainObject(r)?r:{},f=o.extendFlat({},c,u);for(var d in f)R(e+"."+d,c[d],u[d],n)}else void 0===n[e]&&(n[e]=I(t))}function F(e,t,r){var n,a=e._fullLayout,i=e._fullData,s=e.data,c=a._guiEditing,h=N(a._preGUI,c),g=o.extendDeepAll({},t);B(t);var v,y=k.traceFlags(),m={},b={};function x(){return r.map((function(){}))}function _(e){var t=p.id2name(e);-1===v.indexOf(t)&&v.push(t)}function T(e){return"LAYOUT"+e+".autorange"}function A(e){return"LAYOUT"+e+".range"}function S(e){for(var t=e;t<i.length;t++)if(i[t]._input===s[e])return i[t]}function M(n,i,o){if(Array.isArray(n))n.forEach((function(e){M(e,i,o)}));else if(!(n in t)&&!w.hasParent(t,n)){var l;if("LAYOUT"===n.substr(0,6))l=h(e.layout,n.replace("LAYOUT",""));else{var u=r[o];l=N(a._tracePreGUI[S(u)._fullInput.uid],c)(s[u],n)}n in b||(b[n]=x()),void 0===b[n][o]&&(b[n][o]=I(l.get())),void 0!==i&&l.set(i)}}function O(e){return function(t){return i[t][e]}}function C(e){return function(t,n){return!1===t?i[r[n]][e]:null}}for(var E in t){if(w.hasParent(t,E))throw new Error("cannot set "+E+" and a parent attribute simultaneously");var L,P,j,z,D,R,F=t[E];if("autobinx"!==E&&"autobiny"!==E||(E=E.charAt(E.length-1)+"bins",F=Array.isArray(F)?F.map(C(E)):!1===F?r.map(O(E)):null),m[E]=F,"LAYOUT"!==E.substr(0,6)){for(b[E]=x(),n=0;n<r.length;n++){if(L=s[r[n]],P=S(r[n]),z=(j=N(a._tracePreGUI[P._fullInput.uid],c)(L,E)).get(),void 0!==(D=Array.isArray(F)?F[n%F.length]:F)){var U=j.parts[j.parts.length-1],H=E.substr(0,E.length-U.length-1),V=H?H+".":"",q=H?l(P,H).get():P;if((R=f.getTraceValObject(P,j.parts))&&R.impliedEdits&&null!==D)for(var W in R.impliedEdits)M(o.relativeAttr(E,W),R.impliedEdits[W],n);else if("thicknessmode"!==U&&"lenmode"!==U||z===D||"fraction"!==D&&"pixels"!==D||!q){if("type"===E&&("pie"===D!==("pie"===z)||"funnelarea"===D!==("funnelarea"===z))){var Y="x",G="y";"bar"!==D&&"bar"!==z||"h"!==L.orientation||(Y="y",G="x"),o.swapAttrs(L,["?","?src"],"labels",Y),o.swapAttrs(L,["d?","?0"],"label",Y),o.swapAttrs(L,["?","?src"],"values",G),"pie"===z||"funnelarea"===z?(l(L,"marker.color").set(l(L,"marker.colors").get()),a._pielayer.selectAll("g.trace").remove()):u.traceIs(L,"cartesian")&&l(L,"marker.colors").set(l(L,"marker.color").get())}}else{var X=a._size,Z=q.orient,$="top"===Z||"bottom"===Z;if("thicknessmode"===U){var Q=$?X.h:X.w;M(V+"thickness",q.thickness*("fraction"===D?1/Q:Q),n)}else{var K=$?X.w:X.h;M(V+"len",q.len*("fraction"===D?1/K:K),n)}}b[E][n]=I(z);if(-1!==["swapxy","swapxyaxes","orientation","orientationaxes"].indexOf(E)){if("orientation"===E){j.set(D);var J=L.x&&!L.y?"h":"v";if((j.get()||J)===P.orientation)continue}else"orientationaxes"===E&&(L.orientation={v:"h",h:"v"}[P.orientation]);w.swapXYData(L),y.calc=y.clearAxisTypes=!0}else-1!==d.dataArrayContainers.indexOf(j.parts[0])?(w.manageArrayContainers(j,D,b),y.calc=!0):(R?R.arrayOk&&!u.traceIs(P,"regl")&&(o.isArrayOrTypedArray(D)||o.isArrayOrTypedArray(z))?y.calc=!0:k.update(y,R):y.calc=!0,j.set(D))}}if(-1!==["swapxyaxes","orientationaxes"].indexOf(E)&&p.swap(e,r),"orientationaxes"===E){var ee=l(e.layout,"hovermode"),te=ee.get();"x"===te?ee.set("y"):"y"===te?ee.set("x"):"x unified"===te?ee.set("y unified"):"y unified"===te&&ee.set("x unified")}if(-1!==["orientation","type"].indexOf(E)){for(v=[],n=0;n<r.length;n++){var re=s[r[n]];u.traceIs(re,"cartesian")&&(_(re.xaxis||"x"),_(re.yaxis||"y"))}M(v.map(T),!0,0),M(v.map(A),[0,1],0)}}else j=h(e.layout,E.replace("LAYOUT","")),b[E]=[I(j.get())],j.set(Array.isArray(F)?F[0]:F),y.calc=!0}return(y.calc||y.plot)&&(y.fullReplot=!0),{flags:y,undoit:b,redoit:m,traces:r,eventData:o.extendDeepNoArrays([],[g,r])}}function B(e){var t,r,n,a=o.counterRegex("axis",".title",!1,!1),i=/colorbar\.title$/,l=Object.keys(e);for(t=0;t<l.length;t++)r=l[t],n=e[r],"title"!==r&&!a.test(r)&&!i.test(r)||"string"!==typeof n&&"number"!==typeof n?r.indexOf("titlefont")>-1&&-1===r.indexOf("grouptitlefont")?s(r,r.replace("titlefont","title.font")):r.indexOf("titleposition")>-1?s(r,r.replace("titleposition","title.position")):r.indexOf("titleside")>-1?s(r,r.replace("titleside","title.side")):r.indexOf("titleoffset")>-1&&s(r,r.replace("titleoffset","title.offset")):s(r,r.replace("title","title.text"));function s(t,r){e[r]=e[t],delete e[t]}}function U(e,t,r){e=o.getGraphDiv(e),w.clearPromiseQueue(e);var n={};if("string"===typeof t)n[t]=r;else{if(!o.isPlainObject(t))return o.warn("Relayout fail.",t,r),Promise.reject();n=o.extendFlat({},t)}Object.keys(n).length&&(e.changed=!0);var a=G(e,n),i=a.flags;i.calc&&(e.calcdata=void 0);var l=[d.previousPromises];i.layoutReplot?l.push(_.layoutReplot):Object.keys(n).length&&(H(e,i,a)||d.supplyDefaults(e),i.legend&&l.push(_.doLegend),i.layoutstyle&&l.push(_.layoutStyles),i.axrange&&V(l,a.rangesAltered),i.ticks&&l.push(_.doTicksRelayout),i.modebar&&l.push(_.doModeBar),i.camera&&l.push(_.doCamera),i.colorbars&&l.push(_.doColorBars),l.push(S)),l.push(d.rehover,d.redrag),c.add(e,U,[e,a.undoit],U,[e,a.redoit]);var s=o.syncOrAsync(l,e);return s&&s.then||(s=Promise.resolve(e)),s.then((function(){return e.emit("plotly_relayout",a.eventData),e}))}function H(e,t,r){var n=e._fullLayout;if(!t.axrange)return!1;for(var a in t)if("axrange"!==a&&t[a])return!1;for(var i in r.rangesAltered){var o=p.id2name(i),l=e.layout[o],s=n[o];if(s.autorange=l.autorange,l.range&&(s.range=l.range.slice()),s.cleanRange(),s._matchGroup)for(var c in s._matchGroup)if(c!==i){var u=n[p.id2name(c)];u.autorange=s.autorange,u.range=s.range.slice(),u._input.range=s.range.slice()}}return!0}function V(e,t){var r=t?function(e){var r=[],n=!0;for(var a in t){var i=p.getFromId(e,a);if(r.push(a),-1!==(i.ticklabelposition||"").indexOf("inside")&&i._anchorAxis&&r.push(i._anchorAxis._id),i._matchGroup)for(var o in i._matchGroup)t[o]||r.push(o);i.automargin&&(n=!1)}return p.draw(e,r,{skipTitle:n})}:function(e){return p.draw(e,"redraw")};e.push(m,_.doAutoRangeAndConstraints,r,_.drawData,_.finalDraw)}var q=/^[xyz]axis[0-9]*\.range(\[[0|1]\])?$/,W=/^[xyz]axis[0-9]*\.autorange$/,Y=/^[xyz]axis[0-9]*\.domain(\[[0|1]\])?$/;function G(e,t){var r,n,a,i=e.layout,s=e._fullLayout,c=s._guiEditing,d=N(s._preGUI,c),h=Object.keys(t),g=p.list(e),v=o.extendDeepAll({},t),y={};for(B(t),h=Object.keys(t),n=0;n<h.length;n++)if(0===h[n].indexOf("allaxes")){for(a=0;a<g.length;a++){var m=g[a]._id.substr(1),b=-1!==m.indexOf("scene")?m+".":"",_=h[n].replace("allaxes",b+g[a]._name);t[_]||(t[_]=t[h[n]])}delete t[h[n]]}var A=k.layoutFlags(),S={},M={};function O(e,r){if(Array.isArray(e))e.forEach((function(e){O(e,r)}));else if(!(e in t)&&!w.hasParent(t,e)){var n=d(i,e);e in M||(M[e]=I(n.get())),void 0!==r&&n.set(r)}}var C,E={};function L(e){var t=p.name2id(e.split(".")[0]);return E[t]=1,t}for(var P in t){if(w.hasParent(t,P))throw new Error("cannot set "+P+" and a parent attribute simultaneously");for(var j=d(i,P),z=t[P],D=j.parts.length-1;D>0&&"string"!==typeof j.parts[D];)D--;var R=j.parts[D],F=j.parts[D-1]+"."+R,U=j.parts.slice(0,D).join("."),H=l(e.layout,U).get(),V=l(s,U).get(),G=j.get();if(void 0!==z){S[P]=z,M[P]="reverse"===R?z:I(G);var Z=f.getLayoutValObject(s,j.parts);if(Z&&Z.impliedEdits&&null!==z)for(var $ in Z.impliedEdits)O(o.relativeAttr(P,$),Z.impliedEdits[$]);if(-1!==["width","height"].indexOf(P))if(z){O("autosize",null);var Q="height"===P?"width":"height";O(Q,s[Q])}else s[P]=e._initialAutoSize[P];else if("autosize"===P)O("width",z?null:s.width),O("height",z?null:s.height);else if(F.match(q))L(F),l(s,U+"._inputRange").set(null);else if(F.match(W)){L(F),l(s,U+"._inputRange").set(null);var K=l(s,U).get();K._inputDomain&&(K._input.domain=K._inputDomain.slice())}else F.match(Y)&&l(s,U+"._inputDomain").set(null);if("type"===R){C=H;var J="linear"===V.type&&"log"===z,ee="log"===V.type&&"linear"===z;if(J||ee){if(C&&C.range)if(V.autorange)J&&(C.range=C.range[1]>C.range[0]?[1,2]:[2,1]);else{var te=C.range[0],re=C.range[1];J?(te<=0&&re<=0&&O(U+".autorange",!0),te<=0?te=re/1e6:re<=0&&(re=te/1e6),O(U+".range[0]",Math.log(te)/Math.LN10),O(U+".range[1]",Math.log(re)/Math.LN10)):(O(U+".range[0]",Math.pow(10,te)),O(U+".range[1]",Math.pow(10,re)))}else O(U+".autorange",!0);Array.isArray(s._subplots.polar)&&s._subplots.polar.length&&s[j.parts[0]]&&"radialaxis"===j.parts[1]&&delete s[j.parts[0]]._subplot.viewInitial["radialaxis.range"],u.getComponentMethod("annotations","convertCoords")(e,V,z,O),u.getComponentMethod("images","convertCoords")(e,V,z,O)}else O(U+".autorange",!0),O(U+".range",null);l(s,U+"._inputRange").set(null)}else if(R.match(T)){var ne=l(s,P).get(),ae=(z||{}).type;ae&&"-"!==ae||(ae="linear"),u.getComponentMethod("annotations","convertCoords")(e,ne,ae,O),u.getComponentMethod("images","convertCoords")(e,ne,ae,O)}var ie=x.containerArrayMatch(P);if(ie){r=ie.array,n=ie.index;var oe=ie.property,le=Z||{editType:"calc"};""!==n&&""===oe&&(x.isAddVal(z)?M[P]=null:x.isRemoveVal(z)?M[P]=(l(i,r).get()||[])[n]:o.warn("unrecognized full object value",t)),k.update(A,le),y[r]||(y[r]={});var se=y[r][n];se||(se=y[r][n]={}),se[oe]=z,delete t[P]}else"reverse"===R?(H.range?H.range.reverse():(O(U+".autorange",!0),H.range=[1,0]),V.autorange?A.calc=!0:A.plot=!0):(s._has("scatter-like")&&s._has("regl")&&"dragmode"===P&&("lasso"===z||"select"===z)&&"lasso"!==G&&"select"!==G||s._has("gl2d")?A.plot=!0:Z?k.update(A,Z):A.calc=!0,j.set(z))}}for(r in y){x.applyContainerArrayChanges(e,d(i,r),y[r],A,d)||(A.plot=!0)}for(var ce in E){var ue=(C=p.getFromId(e,ce))&&C._constraintGroup;if(ue)for(var fe in A.calc=!0,ue)E[fe]||(p.getFromId(e,fe)._constraintShrinkable=!0)}return(X(e)||t.height||t.width)&&(A.plot=!0),(A.plot||A.calc)&&(A.layoutReplot=!0),{flags:A,rangesAltered:E,undoit:M,redoit:S,eventData:v}}function X(e){var t=e._fullLayout,r=t.width,n=t.height;return e.layout.autosize&&d.plotAutoSize(e,e.layout,t),t.width!==r||t.height!==n}function Z(e,r,n,a){e=o.getGraphDiv(e),w.clearPromiseQueue(e),o.isPlainObject(r)||(r={}),o.isPlainObject(n)||(n={}),Object.keys(r).length&&(e.changed=!0),Object.keys(n).length&&(e.changed=!0);var i=w.coerceTraceIndices(e,a),l=F(e,o.extendFlat({},r),i),s=l.flags,u=G(e,o.extendFlat({},n)),f=u.flags;(s.calc||f.calc)&&(e.calcdata=void 0),s.clearAxisTypes&&w.clearAxisTypes(e,i,n);var p=[];f.layoutReplot?p.push(_.layoutReplot):s.fullReplot?p.push(t._doPlot):(p.push(d.previousPromises),H(e,f,u)||d.supplyDefaults(e),s.style&&p.push(_.doTraceStyle),(s.colorbars||f.colorbars)&&p.push(_.doColorBars),f.legend&&p.push(_.doLegend),f.layoutstyle&&p.push(_.layoutStyles),f.axrange&&V(p,u.rangesAltered),f.ticks&&p.push(_.doTicksRelayout),f.modebar&&p.push(_.doModeBar),f.camera&&p.push(_.doCamera),p.push(S)),p.push(d.rehover,d.redrag),c.add(e,Z,[e,l.undoit,u.undoit,l.traces],Z,[e,l.redoit,u.redoit,l.traces]);var h=o.syncOrAsync(p,e);return h&&h.then||(h=Promise.resolve(e)),h.then((function(){return e.emit("plotly_update",{data:l.eventData,layout:u.eventData}),e}))}function $(e){return function(t){t._fullLayout._guiEditing=!0;var r=e.apply(null,arguments);return t._fullLayout._guiEditing=!1,r}}var Q=[{pattern:/^hiddenlabels/,attr:"legend.uirevision"},{pattern:/^((x|y)axis\d*)\.((auto)?range|title\.text)/},{pattern:/axis\d*\.showspikes$/,attr:"modebar.uirevision"},{pattern:/(hover|drag)mode$/,attr:"modebar.uirevision"},{pattern:/^(scene\d*)\.camera/},{pattern:/^(geo\d*)\.(projection|center|fitbounds)/},{pattern:/^(ternary\d*\.[abc]axis)\.(min|title\.text)$/},{pattern:/^(polar\d*\.radialaxis)\.((auto)?range|angle|title\.text)/},{pattern:/^(polar\d*\.angularaxis)\.rotation/},{pattern:/^(mapbox\d*)\.(center|zoom|bearing|pitch)/},{pattern:/^legend\.(x|y)$/,attr:"editrevision"},{pattern:/^(shapes|annotations)/,attr:"editrevision"},{pattern:/^title\.text$/,attr:"editrevision"}],K=[{pattern:/^selectedpoints$/,attr:"selectionrevision"},{pattern:/(^|value\.)visible$/,attr:"legend.uirevision"},{pattern:/^dimensions\[\d+\]\.constraintrange/},{pattern:/^node\.(x|y|groups)/},{pattern:/^level$/},{pattern:/(^|value\.)name$/},{pattern:/colorbar\.title\.text$/},{pattern:/colorbar\.(x|y)$/,attr:"editrevision"}];function J(e,t){for(var r=0;r<t.length;r++){var n=t[r],a=e.match(n.pattern);if(a){var i=a[1]||"";return{head:i,tail:e.substr(i.length+1),attr:n.attr}}}}function ee(e,t){var r=l(t,e).get();if(void 0!==r)return r;var n=e.split(".");for(n.pop();n.length>1;)if(n.pop(),void 0!==(r=l(t,n.join(".")+".uirevision").get()))return r;return t.uirevision}function te(e,t){for(var r=0;r<t.length;r++)if(t[r]._fullInput.uid===e)return r;return-1}function re(e,t,r){for(var n=0;n<t.length;n++)if(t[n].uid===e)return n;return!t[r]||t[r].uid?-1:r}function ne(e,t){var r=o.isPlainObject(e),n=Array.isArray(e);return r||n?(r&&o.isPlainObject(t)||n&&Array.isArray(t))&&JSON.stringify(e)===JSON.stringify(t):e===t}function ae(e,t,r,n){var a,i,s,c=n.getValObject,u=n.flags,f=n.immutable,d=n.inArray,p=n.arrayIndex;function h(){var e=a.editType;d&&-1!==e.indexOf("arraydraw")?o.pushUnique(u.arrays[d],p):(k.update(u,a),"none"!==e&&u.nChanges++,n.transition&&a.anim&&u.nChangesAnim++,(q.test(s)||W.test(s))&&(u.rangesAltered[r[0]]=1),Y.test(s)&&l(t,"_inputDomain").set(null),"datarevision"===i&&(u.newDataRevision=1))}function g(e){return"data_array"===e.valType||e.arrayOk}for(i in e){if(u.calc&&!n.transition)return;var v=e[i],y=t[i],m=r.concat(i);if(s=m.join("."),"_"!==i.charAt(0)&&"function"!==typeof v&&v!==y){if(("tick0"===i||"dtick"===i)&&"geo"!==r[0]){var b=t.tickmode;if("auto"===b||"array"===b||!b)continue}if(("range"!==i||!t.autorange)&&("zmin"!==i&&"zmax"!==i||"contourcarpet"!==t.type)&&(a=c(m))&&(!a._compareAsJSON||JSON.stringify(v)!==JSON.stringify(y))){var x,w=a.valType,_=g(a),T=Array.isArray(v),A=Array.isArray(y);if(T&&A){var S="_input_"+i,M=e[S],O=t[S];if(Array.isArray(M)&&M===O)continue}if(void 0===y)_&&T?u.calc=!0:h();else if(a._isLinkedToArray){var C=[],E=!1;d||(u.arrays[i]=C);var L=Math.min(v.length,y.length),P=Math.max(v.length,y.length);if(L!==P){if("arraydraw"!==a.editType){h();continue}E=!0}for(x=0;x<L;x++)ae(v[x],y[x],m.concat(x),o.extendFlat({inArray:i,arrayIndex:x},n));if(E)for(x=L;x<P;x++)C.push(x)}else!w&&o.isPlainObject(v)?ae(v,y,m,n):_?T&&A?(f&&(u.calc=!0),(f||n.newDataRevision)&&h()):T!==A?u.calc=!0:h():T&&A&&v.length===y.length&&String(v)===String(y)||h()}}}for(i in t)if(!(i in e)&&"_"!==i.charAt(0)&&"function"!==typeof t[i]){if(g(a=c(r.concat(i)))&&Array.isArray(t[i]))return void(u.calc=!0);h()}}function ie(e,t){var r;for(r in e)if("_"!==r.charAt(0)){var n=e[r],a=t[r];if(n!==a)if(o.isPlainObject(n)&&o.isPlainObject(a)){if(ie(n,a))return!0}else{if(!Array.isArray(n)||!Array.isArray(a))return!0;if(n.length!==a.length)return!0;for(var i=0;i<n.length;i++)if(n[i]!==a[i]){if(!o.isPlainObject(n[i])||!o.isPlainObject(a[i]))return!0;if(ie(n[i],a[i]))return!0}}}}function oe(e){var t=e._fullLayout,r=e.getBoundingClientRect();if(!o.equalDomRects(r,t._lastBBox)){var n=t._invTransform=o.inverseTransformMatrix(o.getFullTransformMatrix(e));t._invScaleX=Math.sqrt(n[0][0]*n[0][0]+n[0][1]*n[0][1]+n[0][2]*n[0][2]),t._invScaleY=Math.sqrt(n[1][0]*n[1][0]+n[1][1]*n[1][1]+n[1][2]*n[1][2]),t._lastBBox=r}}t.animate=function(e,t,r){if(e=o.getGraphDiv(e),!o.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e+". It's likely that you've failed to create a plot before animating it. For more details, see https://plotly.com/javascript/animations/");var n=e._transitionData;n._frameQueue||(n._frameQueue=[]);var a=(r=d.supplyAnimationDefaults(r)).transition,i=r.frame;function l(e){return Array.isArray(a)?e>=a.length?a[0]:a[e]:a}function s(e){return Array.isArray(i)?e>=i.length?i[0]:i[e]:i}function c(e,t){var r=0;return function(){if(e&&++r===t)return e()}}return void 0===n._frameWaitingCnt&&(n._frameWaitingCnt=0),new Promise((function(i,u){function f(){n._currentFrame&&n._currentFrame.onComplete&&n._currentFrame.onComplete();var t=n._currentFrame=n._frameQueue.shift();if(t){var r=t.name?t.name.toString():null;e._fullLayout._currentFrame=r,n._lastFrameAt=Date.now(),n._timeToNext=t.frameOpts.duration,d.transition(e,t.frame.data,t.frame.layout,w.coerceTraceIndices(e,t.frame.traces),t.frameOpts,t.transitionOpts).then((function(){t.onComplete&&t.onComplete()})),e.emit("plotly_animatingframe",{name:r,frame:t.frame,animation:{frame:t.frameOpts,transition:t.transitionOpts}})}else e.emit("plotly_animated"),window.cancelAnimationFrame(n._animationRaf),n._animationRaf=null}function p(){e.emit("plotly_animating"),n._lastFrameAt=-1/0,n._timeToNext=0,n._runningTransitions=0,n._currentFrame=null;!function e(){n._animationRaf=window.requestAnimationFrame(e),Date.now()-n._lastFrameAt>n._timeToNext&&f()}()}var h,g,v=0;function y(e){return Array.isArray(a)?v>=a.length?e.transitionOpts=a[v]:e.transitionOpts=a[0]:e.transitionOpts=a,v++,e}var m=[],b=void 0===t||null===t,x=Array.isArray(t);if(!b&&!x&&o.isPlainObject(t))m.push({type:"object",data:y(o.extendFlat({},t))});else if(b||-1!==["string","number"].indexOf(typeof t))for(h=0;h<n._frames.length;h++)(g=n._frames[h])&&(b||String(g.group)===String(t))&&m.push({type:"byname",name:String(g.name),data:y({name:g.name})});else if(x)for(h=0;h<t.length;h++){var _=t[h];-1!==["number","string"].indexOf(typeof _)?(_=String(_),m.push({type:"byname",name:_,data:y({name:_})})):o.isPlainObject(_)&&m.push({type:"object",data:y(o.extendFlat({},_))})}for(h=0;h<m.length;h++)if("byname"===(g=m[h]).type&&!n._frameHash[g.data.name])return o.warn('animate failure: frame not found: "'+g.data.name+'"'),void u();-1!==["next","immediate"].indexOf(r.mode)&&function(){if(0!==n._frameQueue.length){for(;n._frameQueue.length;){var t=n._frameQueue.pop();t.onInterrupt&&t.onInterrupt()}e.emit("plotly_animationinterrupted",[])}}(),"reverse"===r.direction&&m.reverse();var k=e._fullLayout._currentFrame;if(k&&r.fromcurrent){var T=-1;for(h=0;h<m.length;h++)if("byname"===(g=m[h]).type&&g.name===k){T=h;break}if(T>0&&T<m.length-1){var A=[];for(h=0;h<m.length;h++)g=m[h],("byname"!==m[h].type||h>T)&&A.push(g);m=A}}m.length>0?function(t){if(0!==t.length){for(var a=0;a<t.length;a++){var o;o="byname"===t[a].type?d.computeFrame(e,t[a].name):t[a].data;var f=s(a),h=l(a);h.duration=Math.min(h.duration,f.duration);var g={frame:o,name:t[a].name,frameOpts:f,transitionOpts:h};a===t.length-1&&(g.onComplete=c(i,2),g.onInterrupt=u),n._frameQueue.push(g)}"immediate"===r.mode&&(n._lastFrameAt=-1/0),n._animationRaf||p()}}(m):(e.emit("plotly_animated"),i())}))},t.addFrames=function(e,t,r){if(e=o.getGraphDiv(e),null===t||void 0===t)return Promise.resolve();if(!o.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e+". It's likely that you've failed to create a plot before adding frames. For more details, see https://plotly.com/javascript/animations/");var n,a,i,l,s=e._transitionData._frames,u=e._transitionData._frameHash;if(!Array.isArray(t))throw new Error("addFrames failure: frameList must be an Array of frame definitions"+t);var f=s.length+2*t.length,p=[],h={};for(n=t.length-1;n>=0;n--)if(o.isPlainObject(t[n])){var g=t[n].name,v=(u[g]||h[g]||{}).name,y=t[n].name,m=u[v]||h[v];v&&y&&"number"===typeof y&&m&&A<5&&(A++,o.warn('addFrames: overwriting frame "'+(u[v]||h[v]).name+'" with a frame whose name of type "number" also equates to "'+v+'". This is valid but may potentially lead to unexpected behavior since all plotly.js frame names are stored internally as strings.'),5===A&&o.warn("addFrames: This API call has yielded too many of these warnings. For the rest of this call, further warnings about numeric frame names will be suppressed.")),h[g]={name:g},p.push({frame:d.supplyFrameDefaults(t[n]),index:r&&void 0!==r[n]&&null!==r[n]?r[n]:f+n})}p.sort((function(e,t){return e.index>t.index?-1:e.index<t.index?1:0}));var b=[],x=[],w=s.length;for(n=p.length-1;n>=0;n--){if("number"===typeof(a=p[n].frame).name&&o.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!a.name)for(;u[a.name="frame "+e._transitionData._counter++];);if(u[a.name]){for(i=0;i<s.length&&(s[i]||{}).name!==a.name;i++);b.push({type:"replace",index:i,value:a}),x.unshift({type:"replace",index:i,value:s[i]})}else l=Math.max(0,Math.min(p[n].index,w)),b.push({type:"insert",index:l,value:a}),x.unshift({type:"delete",index:l}),w++}var _=d.modifyFrames,k=d.modifyFrames,T=[e,x],S=[e,b];return c&&c.add(e,_,T,k,S),d.modifyFrames(e,b)},t.deleteFrames=function(e,t){if(e=o.getGraphDiv(e),!o.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e);var r,n,a=e._transitionData._frames,i=[],l=[];if(!t)for(t=[],r=0;r<a.length;r++)t.push(r);for((t=t.slice()).sort(),r=t.length-1;r>=0;r--)n=t[r],i.push({type:"delete",index:n}),l.unshift({type:"insert",index:n,value:a[n]});var s=d.modifyFrames,u=d.modifyFrames,f=[e,l],p=[e,i];return c&&c.add(e,s,f,u,p),d.modifyFrames(e,i)},t.addTraces=function e(r,n,a){r=o.getGraphDiv(r);var i,l,s=[],u=t.deleteTraces,f=e,d=[r,s],p=[r,n];for(function(e,t,r){var n,a;if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if("undefined"===typeof t)throw new Error("traces must be defined.");for(Array.isArray(t)||(t=[t]),n=0;n<t.length;n++)if("object"!==typeof(a=t[n])||Array.isArray(a)||null===a)throw new Error("all values in traces array must be non-array objects");if("undefined"===typeof r||Array.isArray(r)||(r=[r]),"undefined"!==typeof r&&r.length!==t.length)throw new Error("if indices is specified, traces.length must equal indices.length")}(r,n,a),Array.isArray(n)||(n=[n]),n=n.map((function(e){return o.extendFlat({},e)})),w.cleanData(n),i=0;i<n.length;i++)r.data.push(n[i]);for(i=0;i<n.length;i++)s.push(-n.length+i);if("undefined"===typeof a)return l=t.redraw(r),c.add(r,u,d,f,p),l;Array.isArray(a)||(a=[a]);try{P(r,s,a)}catch(h){throw r.data.splice(r.data.length-n.length,n.length),h}return c.startSequence(r),c.add(r,u,d,f,p),l=t.moveTraces(r,s,a),c.stopSequence(r),l},t.deleteTraces=function e(r,n){r=o.getGraphDiv(r);var a,i,l=[],s=t.addTraces,u=e,f=[r,l,n],d=[r,n];if("undefined"===typeof n)throw new Error("indices must be an integer or array of integers.");for(Array.isArray(n)||(n=[n]),L(r,n,"indices"),(n=E(n,r.data.length-1)).sort(o.sorterDes),a=0;a<n.length;a+=1)i=r.data.splice(n[a],1)[0],l.push(i);var p=t.redraw(r);return c.add(r,s,f,u,d),p},t.extendTraces=function e(r,n,a,i){function l(e,t,r){var n,a;if(o.isTypedArray(e))if(r<0){var i=new e.constructor(0),l=z(e,t);r<0?(n=l,a=i):(n=i,a=l)}else if(n=new e.constructor(r),a=new e.constructor(e.length+t.length-r),r===t.length)n.set(t),a.set(e);else if(r<t.length){var s=t.length-r;n.set(t.subarray(s)),a.set(e),a.set(t.subarray(0,s),e.length)}else{var c=r-t.length,u=e.length-c;n.set(e.subarray(u)),n.set(t,c),a.set(e.subarray(0,u))}else n=e.concat(t),a=r>=0&&r<n.length?n.splice(0,n.length-r):[];return[n,a]}var s=j(r=o.getGraphDiv(r),n,a,i,l),u=t.redraw(r),f=[r,s.update,a,s.maxPoints];return c.add(r,t.prependTraces,f,e,arguments),u},t.moveTraces=function e(r,n,a){var i,l=[],s=[],u=e,f=e,d=[r=o.getGraphDiv(r),a,n],p=[r,n,a];if(P(r,n,a),n=Array.isArray(n)?n:[n],"undefined"===typeof a)for(a=[],i=0;i<n.length;i++)a.push(-n.length+i);for(a=Array.isArray(a)?a:[a],n=E(n,r.data.length-1),a=E(a,r.data.length-1),i=0;i<r.data.length;i++)-1===n.indexOf(i)&&l.push(r.data[i]);for(i=0;i<n.length;i++)s.push({newIndex:a[i],trace:r.data[n[i]]});for(s.sort((function(e,t){return e.newIndex-t.newIndex})),i=0;i<s.length;i+=1)l.splice(s[i].newIndex,0,s[i].trace);r.data=l;var h=t.redraw(r);return c.add(r,u,d,f,p),h},t.prependTraces=function e(r,n,a,i){function l(e,t,r){var n,a;if(o.isTypedArray(e))if(r<=0){var i=new e.constructor(0),l=z(t,e);r<0?(n=l,a=i):(n=i,a=l)}else if(n=new e.constructor(r),a=new e.constructor(e.length+t.length-r),r===t.length)n.set(t),a.set(e);else if(r<t.length){var s=t.length-r;n.set(t.subarray(0,s)),a.set(t.subarray(s)),a.set(e,s)}else{var c=r-t.length;n.set(t),n.set(e.subarray(0,c),t.length),a.set(e.subarray(c))}else n=t.concat(e),a=r>=0&&r<n.length?n.splice(r,n.length):[];return[n,a]}var s=j(r=o.getGraphDiv(r),n,a,i,l),u=t.redraw(r),f=[r,s.update,a,s.maxPoints];return c.add(r,t.extendTraces,f,e,arguments),u},t.newPlot=function(e,r,n,a){return e=o.getGraphDiv(e),d.cleanPlot([],{},e._fullData||[],e._fullLayout||{}),d.purge(e),t._doPlot(e,r,n,a)},t._doPlot=function(e,r,a,i){var l;if(e=o.getGraphDiv(e),s.init(e),o.isPlainObject(r)){var c=r;r=c.data,a=c.layout,i=c.config,l=c.frames}if(!1===s.triggerHandler(e,"plotly_beforeplot",[r,a,i]))return Promise.reject();r||a||o.isPlotDiv(e)||o.warn("Calling _doPlot as if redrawing but this container doesn't yet have a plot.",e),C(e,i),a||(a={}),n.select(e).classed("js-plotly-plot",!0),h.makeTester(),Array.isArray(e._promises)||(e._promises=[]);var f=0===(e.data||[]).length&&Array.isArray(r);Array.isArray(r)&&(w.cleanData(r),f?e.data=r:e.data.push.apply(e.data,r),e.empty=!1),e.layout&&!f||(e.layout=w.cleanLayout(a)),d.supplyDefaults(e);var g=e._fullLayout,m=g._has("cartesian");g._replotting=!0,(f||g._shouldCreateBgLayer)&&(!function(e){var t=n.select(e),r=e._fullLayout;if(r._calcInverseTransform=oe,r._calcInverseTransform(e),r._container=t.selectAll(".plot-container").data([0]),r._container.enter().insert("div",":first-child").classed("plot-container",!0).classed("plotly",!0),r._paperdiv=r._container.selectAll(".svg-container").data([0]),r._paperdiv.enter().append("div").classed("user-select-none",!0).classed("svg-container",!0).style("position","relative"),r._glcontainer=r._paperdiv.selectAll(".gl-container").data([{}]),r._glcontainer.enter().append("div").classed("gl-container",!0),r._paperdiv.selectAll(".main-svg").remove(),r._paperdiv.select(".modebar-container").remove(),r._paper=r._paperdiv.insert("svg",":first-child").classed("main-svg",!0),r._toppaper=r._paperdiv.append("svg").classed("main-svg",!0),r._modebardiv=r._paperdiv.append("div"),delete r._modeBar,r._hoverpaper=r._paperdiv.append("svg").classed("main-svg",!0),!r._uid){var a={};n.selectAll("defs").each((function(){this.id&&(a[this.id.split("-")[1]]=1)})),r._uid=o.randstr(a)}r._paperdiv.selectAll(".main-svg").attr(y.svgAttrs),r._defs=r._paper.append("defs").attr("id","defs-"+r._uid),r._clips=r._defs.append("g").classed("clips",!0),r._topdefs=r._toppaper.append("defs").attr("id","topdefs-"+r._uid),r._topclips=r._topdefs.append("g").classed("clips",!0),r._bgLayer=r._paper.append("g").classed("bglayer",!0),r._draggers=r._paper.append("g").classed("draglayer",!0);var i=r._paper.append("g").classed("layer-below",!0);r._imageLowerLayer=i.append("g").classed("imagelayer",!0),r._shapeLowerLayer=i.append("g").classed("shapelayer",!0),r._cartesianlayer=r._paper.append("g").classed("cartesianlayer",!0),r._polarlayer=r._paper.append("g").classed("polarlayer",!0),r._smithlayer=r._paper.append("g").classed("smithlayer",!0),r._ternarylayer=r._paper.append("g").classed("ternarylayer",!0),r._geolayer=r._paper.append("g").classed("geolayer",!0),r._funnelarealayer=r._paper.append("g").classed("funnelarealayer",!0),r._pielayer=r._paper.append("g").classed("pielayer",!0),r._iciclelayer=r._paper.append("g").classed("iciclelayer",!0),r._treemaplayer=r._paper.append("g").classed("treemaplayer",!0),r._sunburstlayer=r._paper.append("g").classed("sunburstlayer",!0),r._indicatorlayer=r._toppaper.append("g").classed("indicatorlayer",!0),r._glimages=r._paper.append("g").classed("glimages",!0);var l=r._toppaper.append("g").classed("layer-above",!0);r._imageUpperLayer=l.append("g").classed("imagelayer",!0),r._shapeUpperLayer=l.append("g").classed("shapelayer",!0),r._infolayer=r._toppaper.append("g").classed("infolayer",!0),r._menulayer=r._toppaper.append("g").classed("menulayer",!0),r._zoomlayer=r._toppaper.append("g").classed("zoomlayer",!0),r._hoverlayer=r._hoverpaper.append("g").classed("hoverlayer",!0),r._modebardiv.classed("modebar-container",!0).style("position","absolute").style("top","0px").style("right","0px"),e.emit("plotly_framework")}(e),g._shouldCreateBgLayer&&delete g._shouldCreateBgLayer),h.initGradients(e),h.initPatterns(e),f&&p.saveShowSpikeInitial(e);var b=!e.calcdata||e.calcdata.length!==(e._fullData||[]).length;b&&d.doCalcdata(e);for(var x=0;x<e.calcdata.length;x++)e.calcdata[x][0].trace=e._fullData[x];e._context.responsive?e._responsiveChartHandler||(e._responsiveChartHandler=function(){o.isHidden(e)||d.resize(e)},window.addEventListener("resize",e._responsiveChartHandler)):o.clearResponsive(e);var k=o.extendFlat({},g._size),T=0;function A(){if(d.clearAutoMarginIds(e),_.drawMarginPushers(e),p.allowAutoMargin(e),g._has("pie"))for(var t=e._fullData,r=0;r<t.length;r++){var n=t[r];"pie"===n.type&&n.automargin&&d.allowAutoMargin(e,"pie."+n.uid+".automargin")}return d.doAutoMargin(e),d.previousPromises(e)}function M(){e._transitioning||(_.doAutoRangeAndConstraints(e),f&&p.saveRangeInitial(e),u.getComponentMethod("rangeslider","calcAutorange")(e))}var O=[d.previousPromises,function(){if(l)return t.addFrames(e,l)},function t(){for(var r=g._basePlotModules,n=0;n<r.length;n++)r[n].drawFramework&&r[n].drawFramework(e);!g._glcanvas&&g._has("gl")&&(g._glcanvas=g._glcontainer.selectAll(".gl-canvas").data([{key:"contextLayer",context:!0,pick:!1},{key:"focusLayer",context:!1,pick:!1},{key:"pickLayer",context:!1,pick:!0}],(function(e){return e.key})),g._glcanvas.enter().append("canvas").attr("class",(function(e){return"gl-canvas gl-canvas-"+e.key.replace("Layer","")})).style({position:"absolute",top:0,left:0,overflow:"visible","pointer-events":"none"}));var a=e._context.plotGlPixelRatio;if(g._glcanvas){g._glcanvas.attr("width",g.width*a).attr("height",g.height*a).style("width",g.width+"px").style("height",g.height+"px");var i=g._glcanvas.data()[0].regl;if(i&&(Math.floor(g.width*a)!==i._gl.drawingBufferWidth||Math.floor(g.height*a)!==i._gl.drawingBufferHeight)){var l="WebGL context buffer and canvas dimensions do not match due to browser/WebGL bug.";if(!T)return o.log(l+" Clearing graph and plotting again."),d.cleanPlot([],{},e._fullData,g),d.supplyDefaults(e),g=e._fullLayout,d.doCalcdata(e),T++,t();o.error(l)}}return"h"===g.modebar.orientation?g._modebardiv.style("height",null).style("width","100%"):g._modebardiv.style("width",null).style("height",g.height+"px"),d.previousPromises(e)},A,function(){if(d.didMarginChange(k,g._size))return o.syncOrAsync([A,_.layoutStyles],e)}];m&&O.push((function(){if(b)return o.syncOrAsync([u.getComponentMethod("shapes","calcAutorange"),u.getComponentMethod("annotations","calcAutorange"),M],e);M()})),O.push(_.layoutStyles),m&&O.push((function(){return p.draw(e,f?"":"redraw")}),(function(e){e._fullLayout._insideTickLabelsAutorange&&U(e,e._fullLayout._insideTickLabelsAutorange).then((function(){e._fullLayout._insideTickLabelsAutorange=void 0}))})),O.push(_.drawData,_.finalDraw,v,d.addLinks,d.rehover,d.redrag,d.doAutoMargin,(function(e){e._fullLayout._insideTickLabelsAutorange&&f&&p.saveRangeInitial(e,!0)}),d.previousPromises);var E=o.syncOrAsync(O,e);return E&&E.then||(E=Promise.resolve()),E.then((function(){return S(e),e}))},t.purge=function(e){var t=(e=o.getGraphDiv(e))._fullLayout||{},r=e._fullData||[];return d.cleanPlot([],{},r,t),d.purge(e),s.purge(e),t._container&&t._container.remove(),delete e._context,e},t.react=function(e,r,n,a){var i,s;e=o.getGraphDiv(e),w.clearPromiseQueue(e);var c=e._fullData,p=e._fullLayout;if(o.isPlotDiv(e)&&c&&p){if(o.isPlainObject(r)){var h=r;r=h.data,n=h.layout,a=h.config,i=h.frames}var g=!1;if(a){var v=o.extendDeep({},e._context);e._context=void 0,C(e,a),g=ie(v,e._context)}e.data=r||[],w.cleanData(e.data),e.layout=n||{},w.cleanLayout(e.layout),function(e,t,r,n){var a,i,s,c,u,f,d,p,h,g,v=n._preGUI,y=[],m={},b={};for(a in v){if(u=J(a,Q)){if(h=u.head,g=u.tail,i=u.attr||h+".uirevision",(c=(s=l(n,i).get())&&ee(i,t))&&c===s){if(null===(f=v[a])&&(f=void 0),ne(p=(d=l(t,a)).get(),f)){void 0===p&&"autorange"===g&&y.push(h),d.set(I(l(n,a).get()));continue}if("autorange"===g||"range["===g.substr(0,6)){var x=v[h+".range[0]"],w=v[h+".range[1]"],_=v[h+".autorange"];if(_||null===_&&null===x&&null===w){if(!(h in m)){var k=l(t,h).get();m[h]=k&&(k.autorange||!1!==k.autorange&&(!k.range||2!==k.range.length))}if(m[h]){d.set(I(l(n,a).get()));continue}}}}}else o.warn("unrecognized GUI edit: "+a);delete v[a],u&&"range["===u.tail.substr(0,6)&&(b[u.head]=1)}for(var T=0;T<y.length;T++){var A=y[T];if(b[A]){var S=l(t,A).get();S&&delete S.autorange}}var M=n._tracePreGUI;for(var O in M){var C,E=M[O],L=null;for(a in E){if(!L){var P=te(O,r);if(P<0){delete M[O];break}var j=re(O,e,(C=r[P]._fullInput).index);if(j<0){delete M[O];break}L=e[j]}if(u=J(a,K)){if(u.attr?c=(s=l(n,u.attr).get())&&ee(u.attr,t):(s=C.uirevision,void 0===(c=L.uirevision)&&(c=t.uirevision)),c&&c===s&&(null===(f=E[a])&&(f=void 0),ne(p=(d=l(L,a)).get(),f))){d.set(I(l(C,a).get()));continue}}else o.warn("unrecognized GUI edit: "+a+" in trace uid "+O);delete E[a]}}}(e.data,e.layout,c,p),d.supplyDefaults(e,{skipUpdateCalc:!0});var y=e._fullData,m=e._fullLayout,b=void 0===m.datarevision,x=m.transition,T=function(e,t,r,n,a){var i=k.layoutFlags();function o(e){return f.getLayoutValObject(r,e)}i.arrays={},i.rangesAltered={},i.nChanges=0,i.nChangesAnim=0,ae(t,r,[],{getValObject:o,flags:i,immutable:n,transition:a,gd:e}),(i.plot||i.calc)&&(i.layoutReplot=!0);a&&i.nChanges&&i.nChangesAnim&&(i.anim=i.nChanges===i.nChangesAnim?"all":"some");return i}(e,p,m,b,x),A=T.newDataRevision,M=function(e,t,r,n,a,i){var o=t.length===r.length;if(!a&&!o)return{fullReplot:!0,calc:!0};var l,s,c=k.traceFlags();function u(e){var t=f.getTraceValObject(s,e);return!s._module.animatable&&t.anim&&(t.anim=!1),t}c.arrays={},c.nChanges=0,c.nChangesAnim=0;var p={getValObject:u,flags:c,immutable:n,transition:a,newDataRevision:i,gd:e},h={};for(l=0;l<t.length;l++)if(r[l]){if(s=r[l]._fullInput,d.hasMakesDataTransform(s)&&(s=r[l]),h[s.uid])continue;h[s.uid]=1,ae(t[l]._fullInput,s,[],p)}(c.calc||c.plot)&&(c.fullReplot=!0);a&&c.nChanges&&c.nChangesAnim&&(c.anim=c.nChanges===c.nChangesAnim&&o?"all":"some");return c}(e,c,y,b,x,A);if(X(e)&&(T.layoutReplot=!0),M.calc||T.calc){e.calcdata=void 0;for(var O=Object.getOwnPropertyNames(m),E=0;E<O.length;E++){var L=O[E],P=L.substring(0,5);if("xaxis"===P||"yaxis"===P){var j=m[L]._emptyCategories;j&&j()}}}else d.supplyDefaultsUpdateCalc(e.calcdata,y);var z=[];if(i&&(e._transitionData={},d.createTransitionData(e),z.push((function(){return t.addFrames(e,i)}))),m.transition&&!g&&(M.anim||T.anim))T.ticks&&z.push(_.doTicksRelayout),d.doCalcdata(e),_.doAutoRangeAndConstraints(e),z.push((function(){return d.transitionFromReact(e,M,T,p)}));else if(M.fullReplot||T.layoutReplot||g)e._fullLayout._skipDefaults=!0,z.push(t._doPlot);else{for(var D in T.arrays){var N=T.arrays[D];if(N.length){var R=u.getComponentMethod(D,"drawOne");if(R!==o.noop)for(var F=0;F<N.length;F++)R(e,N[F]);else{var B=u.getComponentMethod(D,"draw");if(B===o.noop)throw new Error("cannot draw components: "+D);B(e)}}}z.push(d.previousPromises),M.style&&z.push(_.doTraceStyle),(M.colorbars||T.colorbars)&&z.push(_.doColorBars),T.legend&&z.push(_.doLegend),T.layoutstyle&&z.push(_.layoutStyles),T.axrange&&V(z),T.ticks&&z.push(_.doTicksRelayout),T.modebar&&z.push(_.doModeBar),T.camera&&z.push(_.doCamera),z.push(S)}z.push(d.rehover,d.redrag),(s=o.syncOrAsync(z,e))&&s.then||(s=Promise.resolve(e))}else s=t.newPlot(e,r,n,a);return s.then((function(){return e.emit("plotly_react",{data:r,layout:n}),e}))},t.redraw=function(e){if(e=o.getGraphDiv(e),!o.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e);return w.cleanData(e.data),w.cleanLayout(e.layout),e.calcdata=void 0,t._doPlot(e).then((function(){return e.emit("plotly_redraw"),e}))},t.relayout=U,t.restyle=D,t.setPlotConfig=function(e){return o.extendFlat(b,e)},t.update=Z,t._guiRelayout=$(U),t._guiRestyle=$(D),t._guiUpdate=$(Z),t._storeDirectGUIEdit=function(e,t,r){for(var n in r){R(n,l(e,n).get(),r[n],t)}}},function(e,t,r){"use strict";(function(t){var n,a=r(243);n="function"===typeof t.matchMedia?!t.matchMedia("(hover: none)").matches:a,e.exports=n}).call(this,r(27))},function(e,t){e.exports=!0},function(e,t,r){"use strict";e.exports={_isLinkedToArray:"frames_entry",group:{valType:"string",description:["An identifier that specifies the group to which the frame belongs,","used by animate to select a subset of frames."].join(" ")},name:{valType:"string",description:"A label by which to identify the frame"},traces:{valType:"any",description:["A list of trace indices that identify the respective traces in the","data attribute"].join(" ")},baseframe:{valType:"string",description:["The name of the frame into which this frame's properties are merged","before applying. This is used to unify properties and avoid needing","to specify the same values for the same properties in multiple frames."].join(" ")},data:{valType:"any",description:["A list of traces this frame modifies. The format is identical to the","normal trace definition."].join(" ")},layout:{valType:"any",description:["Layout properties which this frame modifies. The format is identical","to the normal layout definition."].join(" ")}}},function(e,t,r){"use strict";var n=r(5),a=r(29).SUBPLOT_PATTERN;t.getSubplotCalcData=function(e,t,r){var a=n.subplotsRegistry[t];if(!a)return[];for(var i=a.attr,o=[],l=0;l<e.length;l++){var s=e[l];s[0].trace[i]===r&&o.push(s)}return o},t.getModuleCalcData=function(e,t){var r,a=[],i=[];if(!(r="string"===typeof t?n.getModule(t).plot:"function"===typeof t?t:t.plot))return[a,e];for(var o=0;o<e.length;o++){var l=e[o],s=l[0].trace;!0===s.visible&&0!==s._length&&(s._module.plot===r?a.push(l):i.push(l))}return[a,i]},t.getSubplotData=function(e,t,r){if(!n.subplotsRegistry[t])return[];var i,o,l,s=n.subplotsRegistry[t].attr,c=[];if("gl2d"===t){var u=r.match(a);o="x"+u[1],l="y"+u[2]}for(var f=0;f<e.length;f++)i=e[f],"gl2d"===t&&n.traceIs(i,"gl2d")?i[s[0]]===o&&i[s[1]]===l&&c.push(i):i[s]===r&&c.push(i);return c}},function(e,t,r){"use strict";e.exports={FORMAT_LINK:"https://github.com/d3/d3-format/tree/v1.4.5#d3-format",DATE_FORMAT_LINK:"https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"}},function(e,t,r){"use strict";var n=r(22).extendFlat,a=r(67),i=r(71).scales,o="Note that `autocolorscale` must be true for this attribute to work.";e.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:i.Reds,editType:"calc",description:["Sets the default sequential colorscale for positive values.",o].join(" ")},sequentialminus:{valType:"colorscale",dflt:i.Blues,editType:"calc",description:["Sets the default sequential colorscale for negative values.",o].join(" ")},diverging:{valType:"colorscale",dflt:i.RdBu,editType:"calc",description:["Sets the default diverging colorscale.",o].join(" ")}},coloraxis:n({_isSubplotObj:!0,editType:"calc",description:[""].join(" ")},a("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}},function(e,t,r){"use strict";var n=r(0);e.exports=function(e){return n.isPlainObject(e.colorbar)}},function(e,t,r){"use strict";var n=r(0),a=r(17),i=r(250),o=r(252),l=r(253),s=r(255),c=r(166);e.exports=function(e,t,r){var u=a.newContainer(t,"colorbar"),f=e.colorbar||{};function d(e,t){return n.coerce(f,u,c,e,t)}var p=r.margin||{t:0,b:0,l:0,r:0},h=r.width-p.l-p.r,g=r.height-p.t-p.b,v="v"===d("orientation"),y=d("thicknessmode");d("thickness","fraction"===y?30/(v?h:g):30);var m=d("lenmode");d("len","fraction"===m?1:v?g:h),d("x",v?1.02:.5),d("xanchor",v?"left":"center"),d("xpad"),d("y",v?.5:1.02),d("yanchor",v?"middle":"bottom"),d("ypad"),n.noneOrAll(f,u,["x","y"]),d("outlinecolor"),d("outlinewidth"),d("bordercolor"),d("borderwidth"),d("bgcolor");var b=n.coerce(f,u,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:v?["outside","inside","outside top","inside top","outside bottom","inside bottom"]:["outside","inside","outside left","inside left","outside right","inside right"]}},"ticklabelposition");d("ticklabeloverflow",-1!==b.indexOf("inside")?"hide past domain":"hide past div"),i(f,u,d,"linear");var x=r.font,w={outerTicks:!1,font:x};-1!==b.indexOf("inside")&&(w.bgColor="black"),s(f,u,d,"linear",w),l(f,u,d,"linear",w),o(f,u,d,"linear",w),d("title.text",r._dfltTitle.colorbar);var _=u.tickfont,k=n.extendFlat({},_,{color:x.color,size:n.bigFont(_.size)});n.coerceFont(d,"title.font",k),d("title.side",v?"top":"right")}},function(e,t,r){"use strict";var n=r(251),a=r(0).isArrayOrTypedArray;e.exports=function(e,t,r,i){function o(r){var n=e[r];return void 0!==n?n:(t._template||{})[r]}var l=o("tick0"),s=o("dtick"),c=o("tickvals"),u=r("tickmode",a(c)?"array":s?"linear":"auto");if("auto"===u)r("nticks");else if("linear"===u){var f=t.dtick=n.dtick(s,i);t.tick0=n.tick0(l,i,t.calendar,f)}else if("multicategory"!==i){void 0===r("tickvals")?t.tickmode="auto":r("ticktext")}}},function(e,t,r){"use strict";var n=r(9),a=r(0),i=r(19),o=i.ONEDAY,l=i.ONEWEEK;t.dtick=function(e,t){var r="log"===t,a="date"===t,i="category"===t,l=a?o:1;if(!e)return l;if(n(e))return(e=Number(e))<=0?l:i?Math.max(1,Math.round(e)):a?Math.max(.1,e):e;if("string"!==typeof e||!a&&!r)return l;var s=e.charAt(0),c=e.substr(1);return(c=n(c)?Number(c):0)<=0||!(a&&"M"===s&&c===Math.round(c)||r&&"L"===s||r&&"D"===s&&(1===c||2===c))?l:e},t.tick0=function(e,t,r,i){return"date"===t?a.cleanDate(e,a.dateTick0(r,i%l===0?1:0)):"D1"!==i&&"D2"!==i?n(e)?Number(e):0:void 0}},function(e,t,r){"use strict";var n=r(0),a=r(49);e.exports=function(e,t,r,i){var o=n.coerce2(e,t,a,"ticklen"),l=n.coerce2(e,t,a,"tickwidth"),s=n.coerce2(e,t,a,"tickcolor",t.color);r("ticks",i.outerTicks||o||l||s?"outside":"")||(delete t.ticklen,delete t.tickwidth,delete t.tickcolor)}},function(e,t,r){"use strict";var n=r(0),a=r(8).contrast,i=r(49),o=r(254),l=r(50);function s(e,t){function r(r,a){return n.coerce(e,t,i.tickformatstops,r,a)}r("enabled")&&(r("dtickrange"),r("value"))}e.exports=function(e,t,r,c,u){u||(u={});var f=o(e);if(r("showticklabels")){var d=u.font||{},p=t.color,h=-1!==(t.ticklabelposition||"").indexOf("inside")?a(u.bgColor):p&&p!==i.color.dflt?p:d.color;if(n.coerceFont(r,"tickfont",{family:d.family,size:d.size,color:h}),u.noTicklabelstep||"multicategory"===c||"log"===c||r("ticklabelstep"),u.noAng||r("tickangle"),"category"!==c){var g=r("tickformat");l(e,t,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:s}),t.tickformatstops.length||delete t.tickformatstops,u.noExp||g||"date"===c||(r("showexponent",f),r("exponentformat"),r("minexponent"),r("separatethousands"))}}}},function(e,t,r){"use strict";e.exports=function(e){var t=["showexponent","showtickprefix","showticksuffix"].filter((function(t){return void 0!==e[t]}));if(t.every((function(r){return e[r]===e[t[0]]}))||1===t.length)return e[t[0]]}},function(e,t,r){"use strict";var n=r(254);e.exports=function(e,t,r,a,i){i||(i={});var o=i.tickSuffixDflt,l=n(e);r("tickprefix")&&r("showtickprefix",l),r("ticksuffix",o)&&r("showticksuffix",l)}},function(e,t,r){"use strict";var n=r(9);e.exports=function(e,t){t||(t=2);var r=e.marker,a=r.sizeref||1,i=r.sizemin||0,o="area"===r.sizemode?function(e){return Math.sqrt(e/a)}:function(e){return e/a};return function(e){var r=o(e/t);return n(r)&&r>0?Math.max(r,i):0}}},function(e,t,r){"use strict";var n=r(9),a=r(0),i=r(19).BADNUM,o=a.isArrayOrTypedArray,l=a.isDateTime,s=a.cleanNumber,c=Math.round;function u(e,t){return t?n(e):"number"===typeof e}function f(e){return Math.max(1,(e-1)/1e3)}e.exports=function(e,t,r){var a=e,d=r.noMultiCategory;if(o(a)&&!a.length)return"-";if(!d&&function(e){return o(e[0])&&o(e[1])}(a))return"multicategory";if(d&&Array.isArray(a[0])){for(var p=[],h=0;h<a.length;h++)if(o(a[h]))for(var g=0;g<a[h].length;g++)p.push(a[h][g]);a=p}if(function(e,t){for(var r=e.length,a=f(r),i=0,o=0,s={},u=0;u<r;u+=a){var d=e[c(u)],p=String(d);s[p]||(s[p]=1,l(d,t)&&i++,n(d)&&o++)}return i>2*o}(a,t))return"date";var v="strict"!==r.autotypenumbers;return function(e,t){for(var r=e.length,n=f(r),a=0,o=0,l={},u=0;u<r;u+=n){var d=e[c(u)],p=String(d);if(!l[p]){l[p]=1;var h=typeof d;"boolean"===h?o++:(t?s(d)!==i:"number"===h)?a++:"string"===h&&o++}}return o>2*a}(a,v)?"category":function(e,t){for(var r=e.length,n=0;n<r;n++)if(u(e[n],t))return!0;return!1}(a,v)?"linear":"-"}},function(e,t,r){"use strict";var n=r(7),a=r(41),i=r(46),o=r(56),l=r(541).makeDragBox,s=r(29).DRAGGERSIZE;t.initInteractions=function(e){var r=e._fullLayout;if(e._context.staticPlot)n.select(e).selectAll(".drag").remove();else if(r._has("cartesian")||r._has("splom")){Object.keys(r._plots||{}).sort((function(e,t){if((r._plots[e].mainplot&&!0)===(r._plots[t].mainplot&&!0)){var n=e.split("y"),a=t.split("y");return n[0]===a[0]?Number(n[1]||1)-Number(a[1]||1):Number(n[0]||1)-Number(a[0]||1)}return r._plots[e].mainplot?1:-1})).forEach((function(t){var n=r._plots[t],o=n.xaxis,c=n.yaxis;if(!n.mainplot){var u=l(e,n,o._offset,c._offset,o._length,c._length,"ns","ew");u.onmousemove=function(r){e._fullLayout._rehover=function(){e._fullLayout._hoversubplot===t&&e._fullLayout._plots[t]&&a.hover(e,r,t)},a.hover(e,r,t),e._fullLayout._lasthover=u,e._fullLayout._hoversubplot=t},u.onmouseout=function(t){e._dragging||(e._fullLayout._hoversubplot=null,i.unhover(e,t))},e._context.showAxisDragHandles&&(l(e,n,o._offset-s,c._offset-s,s,s,"n","w"),l(e,n,o._offset+o._length,c._offset-s,s,s,"n","e"),l(e,n,o._offset-s,c._offset+c._length,s,s,"s","w"),l(e,n,o._offset+o._length,c._offset+c._length,s,s,"s","e"))}if(e._context.showAxisDragHandles){if(t===o._mainSubplot){var f=o._mainLinePosition;"top"===o.side&&(f-=s),l(e,n,o._offset+.1*o._length,f,.8*o._length,s,"","ew"),l(e,n,o._offset,f,.1*o._length,s,"","w"),l(e,n,o._offset+.9*o._length,f,.1*o._length,s,"","e")}if(t===c._mainSubplot){var d=c._mainLinePosition;"right"!==c.side&&(d-=s),l(e,n,d,c._offset+.1*c._length,s,.8*c._length,"ns",""),l(e,n,d,c._offset+.9*c._length,s,.1*c._length,"s",""),l(e,n,d,c._offset,s,.1*c._length,"n","")}}}));var o=r._hoverlayer.node();o.onmousemove=function(t){t.target=e._fullLayout._lasthover,a.hover(e,t,r._hoversubplot)},o.onclick=function(t){t.target=e._fullLayout._lasthover,a.click(e,t)},o.onmousedown=function(t){e._fullLayout._lasthover.onmousedown(t)},t.updateFx(e)}},t.updateFx=function(e){var t=e._fullLayout,r="pan"===t.dragmode?"move":"crosshair";o(t._draggers,r)}},function(e,t,r){"use strict";var n=r(243);e.exports=n&&function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(r){e=!1}return e}()},function(e,t,r){"use strict";var n=r(7),a=r(9),i=r(34),o=r(0),l=o.strTranslate,s=o.strRotate,c=r(94),u=r(25),f=r(533),d=r(10),p=r(8),h=r(46),g=r(14),v=r(5),y=r(40),m=r(120),b=r(261),x=r(263),w=m.YANGLE,_=Math.PI*w/180,k=1/Math.sin(_),T=Math.cos(_),A=Math.sin(_),S=m.HOVERARROWSIZE,M=m.HOVERTEXTPAD,O={box:!0,ohlc:!0,violin:!0,candlestick:!0},C={scatter:!0,scattergl:!0,splom:!0};function E(e){return[e.trace.index,e.index,e.x0,e.y0,e.name,e.attr,e.xa?e.xa._id:"",e.ya?e.ya._id:""].join(",")}t.hover=function(e,t,r,i){e=o.getGraphDiv(e);var l=t.target;o.throttle(e._fullLayout._uid+m.HOVERID,m.HOVERMINTIME,(function(){!function(e,t,r,i,l){r||(r="xy");var s=Array.isArray(r)?r:[r],u=e._fullLayout,d=u._plots||[],g=d[r],m=u._has("cartesian");if(g){var b=g.overlays.map((function(e){return e.id}));s=s.concat(b)}for(var x=s.length,w=new Array(x),_=new Array(x),T=!1,A=0;A<x;A++){var S=s[A];if(d[S])T=!0,w[A]=d[S].xaxis,_[A]=d[S].yaxis;else{if(!u[S]||!u[S]._subplot)return void o.warn("Unrecognized subplot: "+S);var M=u[S]._subplot;w[A]=M.xaxis,_[A]=M.yaxis}}var L=t.hovermode||u.hovermode;L&&!T&&(L="closest");if(-1===["x","y","closest","x unified","y unified"].indexOf(L)||!e.calcdata||e.querySelector(".zoombox")||e._dragging)return h.unhoverRaw(e,t);var j=u.hoverdistance;-1===j&&(j=1/0);var R=u.spikedistance;-1===R&&(R=1/0);var H,V,q,W,Y,G,X,Z,$,Q,K,J,ee,te=[],re=[],ne={hLinePoint:null,vLinePoint:null},ae=!1;if(Array.isArray(t))for(L="array",q=0;q<t.length;q++)(Y=e.calcdata[t[q].curveNumber||0])&&(G=Y[0].trace,"skip"!==Y[0].trace.hoverinfo&&(re.push(Y),"h"===G.orientation&&(ae=!0)));else{for(W=0;W<e.calcdata.length;W++)Y=e.calcdata[W],"skip"!==(G=Y[0].trace).hoverinfo&&y.isTraceInSubplots(G,s)&&(re.push(Y),"h"===G.orientation&&(ae=!0));var ie,oe;if(!l)ie="xpx"in t?t.xpx:w[0]._length/2,oe="ypx"in t?t.ypx:_[0]._length/2;else{if(!1===c.triggerHandler(e,"plotly_beforehover",t))return;var le=l.getBoundingClientRect();ie=t.clientX-le.left,oe=t.clientY-le.top,u._calcInverseTransform(e);var se=o.apply3DTransform(u._invTransform)(ie,oe);if(ie=se[0],oe=se[1],ie<0||ie>w[0]._length||oe<0||oe>_[0]._length)return h.unhoverRaw(e,t)}if(t.pointerX=ie+w[0]._offset,t.pointerY=oe+_[0]._offset,H="xval"in t?y.flat(s,t.xval):y.p2c(w,ie),V="yval"in t?y.flat(s,t.yval):y.p2c(_,oe),!a(H[0])||!a(V[0]))return o.warn("Fx.hover failed",t,e),h.unhoverRaw(e,t)}var ce=1/0;function ue(e,r){for(W=0;W<re.length;W++)if((Y=re[W])&&Y[0]&&Y[0].trace&&!0===(G=Y[0].trace).visible&&0!==G._length&&-1===["carpet","contourcarpet"].indexOf(G._module.name)){if("splom"===G.type?X=s[Z=0]:(X=y.getSubplot(G),Z=s.indexOf(X)),$=L,y.isUnifiedHover($)&&($=$.charAt(0)),J={cd:Y,trace:G,xa:w[Z],ya:_[Z],maxHoverDistance:j,maxSpikeDistance:R,index:!1,distance:Math.min(ce,j),spikeDistance:1/0,xSpike:void 0,ySpike:void 0,color:p.defaultLine,name:G.name,x0:void 0,x1:void 0,y0:void 0,y1:void 0,xLabelVal:void 0,yLabelVal:void 0,zLabelVal:void 0,text:void 0},u[X]&&(J.subplot=u[X]._subplot),u._splomScenes&&u._splomScenes[G.uid]&&(J.scene=u._splomScenes[G.uid]),ee=te.length,"array"===$){var n=t[W];"pointNumber"in n?(J.index=n.pointNumber,$="closest"):($="","xval"in n&&(Q=n.xval,$="x"),"yval"in n&&(K=n.yval,$=$?"closest":"y"))}else void 0!==e&&void 0!==r?(Q=e,K=r):(Q=H[Z],K=V[Z]);if(0!==j)if(G._module&&G._module.hoverPoints){var i=G._module.hoverPoints(J,Q,K,$,{finiteRange:!0,hoverLayer:u._hoverlayer});if(i)for(var l,c=0;c<i.length;c++)l=i[c],a(l.x0)&&a(l.y0)&&te.push(D(l,L))}else o.log("Unrecognized trace type in hover:",G);if("closest"===L&&te.length>ee&&(te.splice(0,ee),ce=te[0].distance),m&&0!==R&&0===te.length){J.distance=R,J.index=!1;var f=G._module.hoverPoints(J,Q,K,"closest",{hoverLayer:u._hoverlayer});if(f&&(f=f.filter((function(e){return e.spikeDistance<=R}))),f&&f.length){var d,h=f.filter((function(e){return e.xa.showspikes&&"hovered data"!==e.xa.spikesnap}));if(h.length){var g=h[0];a(g.x0)&&a(g.y0)&&(d=de(g),(!ne.vLinePoint||ne.vLinePoint.spikeDistance>d.spikeDistance)&&(ne.vLinePoint=d))}var v=f.filter((function(e){return e.ya.showspikes&&"hovered data"!==e.ya.spikesnap}));if(v.length){var b=v[0];a(b.x0)&&a(b.y0)&&(d=de(b),(!ne.hLinePoint||ne.hLinePoint.spikeDistance>d.spikeDistance)&&(ne.hLinePoint=d))}}}}}function fe(e,t,r){for(var n,a=null,i=1/0,o=0;o<e.length;o++)n=e[o].spikeDistance,r&&0===o&&(n=-1/0),n<=i&&n<=t&&(a=e[o],i=n);return a}function de(e){return e?{xa:e.xa,ya:e.ya,x:void 0!==e.xSpike?e.xSpike:(e.x0+e.x1)/2,y:void 0!==e.ySpike?e.ySpike:(e.y0+e.y1)/2,distance:e.distance,spikeDistance:e.spikeDistance,curveNumber:e.trace.index,color:e.color,pointNumber:e.index}:null}ue();var pe={fullLayout:u,container:u._hoverlayer,event:t},he=e._spikepoints,ge={vLinePoint:ne.vLinePoint,hLinePoint:ne.hLinePoint};e._spikepoints=ge;var ve=function(){te.sort((function(e,t){return e.distance-t.distance})),te=function(e,t){for(var r=t.charAt(0),n=[],a=[],i=[],o=0;o<e.length;o++){var l=e[o];v.traceIs(l.trace,"bar-like")||v.traceIs(l.trace,"box-violin")?i.push(l):l.trace[r+"period"]?a.push(l):n.push(l)}return n.concat(a).concat(i)}(te,L)};ve();var ye=L.charAt(0),me=("x"===ye||"y"===ye)&&te[0]&&C[te[0].trace.type];if(m&&0!==R&&0!==te.length){var be=fe(te.filter((function(e){return e.ya.showspikes})),R,me);ne.hLinePoint=de(be);var xe=fe(te.filter((function(e){return e.xa.showspikes})),R,me);ne.vLinePoint=de(xe)}if(0===te.length){var we=h.unhoverRaw(e,t);return!m||null===ne.hLinePoint&&null===ne.vLinePoint||N(he)&&I(e,ne,pe),we}m&&N(he)&&I(e,ne,pe);if(y.isXYhover($)&&0!==te[0].length&&"splom"!==te[0].trace.type){var _e=te[0],ke=(te=O[_e.trace.type]?te.filter((function(e){return e.trace.index===_e.trace.index})):[_e]).length;ue(F("x",_e,u),F("y",_e,u));var Te,Ae=[],Se={},Me=0,Oe=function(e){var t=O[e.trace.type]?E(e):e.trace.index;if(Se[t]){var r=Se[t]-1,n=Ae[r];r>0&&Math.abs(e.distance)<Math.abs(n.distance)&&(Ae[r]=e)}else Me++,Se[t]=Me,Ae.push(e)};for(Te=0;Te<ke;Te++)Oe(te[Te]);for(Te=te.length-1;Te>ke-1;Te--)Oe(te[Te]);te=Ae,ve()}var Ce=e._hoverdata,Ee=[],Le=B(e),Pe=U(e);for(q=0;q<te.length;q++){var je=te[q],ze=y.makeEventData(je,je.trace,je.cd);if(!1!==je.hovertemplate){var De=!1;je.cd[je.index]&&je.cd[je.index].ht&&(De=je.cd[je.index].ht),je.hovertemplate=De||je.trace.hovertemplate||!1}if(je.xa&&je.ya){var Ie=je.x0+je.xa._offset,Ne=je.x1+je.xa._offset,Re=je.y0+je.ya._offset,Fe=je.y1+je.ya._offset,Be=Math.min(Ie,Ne),Ue=Math.max(Ie,Ne),He=Math.min(Re,Fe),Ve=Math.max(Re,Fe);ze.bbox={x0:Be+Pe,x1:Ue+Pe,y0:He+Le,y1:Ve+Le}}je.eventData=[ze],Ee.push(ze)}e._hoverdata=Ee;var qe="y"===L&&(re.length>1||te.length>1)||"closest"===L&&ae&&te.length>1,We=p.combine(u.plot_bgcolor||p.background,u.paper_bgcolor),Ye=P(te,{gd:e,hovermode:L,rotateLabels:qe,bgColor:We,container:u._hoverlayer,outerContainer:u._paper.node(),commonLabelOpts:u.hoverlabel,hoverdistance:u.hoverdistance});y.isUnifiedHover(L)||(!function(e,t,r){var n,a,i,o,l,s,c,u=0,f=1,d=e.size(),p=new Array(d),h=0;function g(e){var t=e[0],r=e[e.length-1];if(a=t.pmin-t.pos-t.dp+t.size,i=r.pos+r.dp+r.size-t.pmax,a>.01){for(l=e.length-1;l>=0;l--)e[l].dp+=a;n=!1}if(!(i<.01)){if(a<-.01){for(l=e.length-1;l>=0;l--)e[l].dp-=i;n=!1}if(n){var c=0;for(o=0;o<e.length;o++)(s=e[o]).pos+s.dp+s.size>t.pmax&&c++;for(o=e.length-1;o>=0&&!(c<=0);o--)(s=e[o]).pos>t.pmax-1&&(s.del=!0,c--);for(o=0;o<e.length&&!(c<=0);o++)if((s=e[o]).pos<t.pmin+1)for(s.del=!0,c--,i=2*s.size,l=e.length-1;l>=0;l--)e[l].dp-=i;for(o=e.length-1;o>=0&&!(c<=0);o--)(s=e[o]).pos+s.dp+s.size>t.pmax&&(s.del=!0,c--)}}}e.each((function(e){var n=e[t],a="x"===n._id.charAt(0),i=n.range;0===h&&i&&i[0]>i[1]!==a&&(f=-1),p[h++]=[{datum:e,traceIndex:e.trace.index,dp:0,pos:e.pos,posref:e.posref,size:e.by*(a?k:1)/2,pmin:0,pmax:a?r.width:r.height}]})),p.sort((function(e,t){return e[0].posref-t[0].posref||f*(t[0].traceIndex-e[0].traceIndex)}));for(;!n&&u<=d;){for(u++,n=!0,o=0;o<p.length-1;){var v=p[o],y=p[o+1],m=v[v.length-1],b=y[0];if((a=m.pos+m.dp+m.size-b.pos-b.dp+b.size)>.01&&m.pmin===b.pmin&&m.pmax===b.pmax){for(l=y.length-1;l>=0;l--)y[l].dp+=a;for(v.push.apply(v,y),p.splice(o+1,1),c=0,l=v.length-1;l>=0;l--)c+=v[l].dp;for(i=c/v.length,l=v.length-1;l>=0;l--)v[l].dp-=i;n=!1}else o++}p.forEach(g)}for(o=p.length-1;o>=0;o--){var x=p[o];for(l=x.length-1;l>=0;l--){var w=x[l],_=w.datum;_.offset=w.dp,_.del=w.del}}}(Ye,qe?"xa":"ya",u),z(Ye,qe,u._invScaleX,u._invScaleY));if(l&&l.tagName){var Ge=v.getComponentMethod("annotations","hasClickToShow")(e,Ee);f(n.select(l),Ge?"pointer":"")}if(!l||i||!function(e,t,r){if(!r||r.length!==e._hoverdata.length)return!0;for(var n=r.length-1;n>=0;n--){var a=r[n],i=e._hoverdata[n];if(a.curveNumber!==i.curveNumber||String(a.pointNumber)!==String(i.pointNumber)||String(a.pointNumbers)!==String(i.pointNumbers))return!0}return!1}(e,0,Ce))return;Ce&&e.emit("plotly_unhover",{event:t,points:Ce});e.emit("plotly_hover",{event:t,points:e._hoverdata,xaxes:w,yaxes:_,xvals:H,yvals:V})}(e,t,r,i,l)}))},t.loneHover=function(e,t){var r=!0;Array.isArray(e)||(r=!1,e=[e]);var a=t.gd,i=B(a),o=U(a),l=P(e.map((function(e){var r=e._x0||e.x0||e.x||0,n=e._x1||e.x1||e.x||0,l=e._y0||e.y0||e.y||0,s=e._y1||e.y1||e.y||0,c=e.eventData;if(c){var u=Math.min(r,n),f=Math.max(r,n),d=Math.min(l,s),h=Math.max(l,s),g=e.trace;if(v.traceIs(g,"gl3d")){var y=a._fullLayout[g.scene]._scene.container,m=y.offsetLeft,b=y.offsetTop;u+=m,f+=m,d+=b,h+=b}c.bbox={x0:u+o,x1:f+o,y0:d+i,y1:h+i},t.inOut_bbox&&t.inOut_bbox.push(c.bbox)}else c=!1;return{color:e.color||p.defaultLine,x0:e.x0||e.x||0,x1:e.x1||e.x||0,y0:e.y0||e.y||0,y1:e.y1||e.y||0,xLabel:e.xLabel,yLabel:e.yLabel,zLabel:e.zLabel,text:e.text,name:e.name,idealAlign:e.idealAlign,borderColor:e.borderColor,fontFamily:e.fontFamily,fontSize:e.fontSize,fontColor:e.fontColor,nameLength:e.nameLength,textAlign:e.textAlign,trace:e.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:e.hovertemplate||!1,hovertemplateLabels:e.hovertemplateLabels||!1,eventData:c}})),{gd:a,hovermode:"closest",rotateLabels:false,bgColor:t.bgColor||p.background,container:n.select(t.container),outerContainer:t.outerContainer||t.container}),s=0,c=0;return l.sort((function(e,t){return e.y0-t.y0})).each((function(e,r){var n=e.y0-e.by/2;e.offset=n-5<s?s-n+5:0,s=n+e.by+e.offset,r===t.anchorIndex&&(c=e.offset)})).each((function(e){e.offset-=c})),z(l,false,a._fullLayout._invScaleX,a._fullLayout._invScaleY),r?l:l.node()};var L=/<extra>([\s\S]*)<\/extra>/;function P(e,t){var r=t.gd,a=r._fullLayout,i=t.hovermode,c=t.rotateLabels,f=t.bgColor,h=t.container,g=t.outerContainer,_=t.commonLabelOpts||{};if(0===e.length)return[[]];var k=t.fontFamily||m.HOVERFONT,T=t.fontSize||m.HOVERFONTSIZE,A=e[0],O=A.xa,C=A.ya,L=i.charAt(0),P=A[L+"Label"],z=H(r,g),D=z.top,I=z.width,N=z.height,R=void 0!==P&&A.distance<=t.hoverdistance&&("x"===i||"y"===i);if(R){var F,B,U=!0;for(F=0;F<e.length;F++)if(U&&void 0===e[F].zLabel&&(U=!1),B=e[F].hoverinfo||e[F].trace.hoverinfo){var V=Array.isArray(B)?B:B.split("+");if(-1===V.indexOf("all")&&-1===V.indexOf(i)){R=!1;break}}U&&(R=!1)}var q=h.selectAll("g.axistext").data(R?[0]:[]);if(q.enter().append("g").classed("axistext",!0),q.exit().remove(),q.each((function(){var e=n.select(this),t=o.ensureSingle(e,"path","",(function(e){e.style({"stroke-width":"1px"})})),s=o.ensureSingle(e,"text","",(function(e){e.attr("data-notex",1)})),c=_.bgcolor||p.defaultLine,f=_.bordercolor||p.contrast(c),h=p.contrast(c),g={family:_.font.family||k,size:_.font.size||T,color:_.font.color||h};t.style({fill:c,stroke:f}),s.text(P).call(d.font,g).call(u.positionText,0,0).call(u.convertToTspans,r),e.attr("transform","");var v,y,m=H(r,s.node());if("x"===i){var b="top"===O.side?"-":"";s.attr("text-anchor","middle").call(u.positionText,0,"top"===O.side?D-m.bottom-S-M:D-m.top+S+M),v=O._offset+(A.x0+A.x1)/2,y=C._offset+("top"===O.side?0:C._length);var x=m.width/2+M;v<x?(v=x,t.attr("d","M-"+(x-S)+",0L-"+(x-2*S)+","+b+S+"H"+(M+m.width/2)+"v"+b+(2*M+m.height)+"H-"+x+"V"+b+S+"Z")):v>a.width-x?(v=a.width-x,t.attr("d","M"+(x-S)+",0L"+x+","+b+S+"v"+b+(2*M+m.height)+"H-"+x+"V"+b+S+"H"+(x-2*S)+"Z")):t.attr("d","M0,0L"+S+","+b+S+"H"+(M+m.width/2)+"v"+b+(2*M+m.height)+"H-"+(M+m.width/2)+"V"+b+S+"H-"+S+"Z")}else{var w,E,L;"right"===C.side?(w="start",E=1,L="",v=O._offset+O._length):(w="end",E=-1,L="-",v=O._offset),y=C._offset+(A.y0+A.y1)/2,s.attr("text-anchor",w),t.attr("d","M0,0L"+L+S+","+S+"V"+(M+m.height/2)+"h"+L+(2*M+m.width)+"V-"+(M+m.height/2)+"H"+L+S+"V-"+S+"Z");var j,z=m.height/2,I=D-m.top-z,N="clip"+a._uid+"commonlabel"+C._id;if(v<m.width+2*M+S){j="M-"+(S+M)+"-"+z+"h-"+(m.width-M)+"V"+z+"h"+(m.width-M)+"Z";var R=m.width-v+M;u.positionText(s,R,I),"end"===w&&s.selectAll("tspan").each((function(){var e=n.select(this),t=d.tester.append("text").text(e.text()).call(d.font,g),a=H(r,t.node());Math.round(a.width)<Math.round(m.width)&&e.attr("x",R-a.width),t.remove()}))}else u.positionText(s,E*(M+S),I),j=null;var F=a._topclips.selectAll("#"+N).data(j?[0]:[]);F.enter().append("clipPath").attr("id",N).append("path"),F.exit().remove(),F.select("path").attr("d",j),d.setClipUrl(s,j?N:null,r)}e.attr("transform",l(v,y))})),y.isUnifiedHover(i)){h.selectAll("g.hovertext").remove();var W=e.filter((function(e){return"none"!==e.hoverinfo}));if(0===W.length)return;var Y=a.hoverlabel,G=Y.font,X={showlegend:!0,legend:{title:{text:P,font:G},font:G,bgcolor:Y.bgcolor,bordercolor:Y.bordercolor,borderwidth:1,tracegroupgap:7,traceorder:a.legend?a.legend.traceorder:void 0,orientation:"v"}},Z={font:G};b(X,Z,r._fullData);var $=Z.legend;$.entries=[];for(var Q=0;Q<W.length;Q++){var K=W[Q];if("none"!==K.hoverinfo){var J=j(K,!0,i,a,P),ee=J[0],te=J[1];K.name=te,K.text=""!==te?te+" : "+ee:ee;var re=K.cd[K.index];re&&(re.mc&&(K.mc=re.mc),re.mcc&&(K.mc=re.mcc),re.mlc&&(K.mlc=re.mlc),re.mlcc&&(K.mlc=re.mlcc),re.mlw&&(K.mlw=re.mlw),re.mrc&&(K.mrc=re.mrc),re.dir&&(K.dir=re.dir)),K._distinct=!0,$.entries.push([K])}}$.entries.sort((function(e,t){return e[0].trace.index-t[0].trace.index})),$.layer=h,$._inHover=!0,$._groupTitleFont=Y.grouptitlefont,x(r,$);var ne,ae,ie,oe,le=h.select("g.legend"),se=H(r,le.node()),ce=se.width+2*M,ue=se.height+2*M,fe=W[0],de=(fe.x0+fe.x1)/2,pe=(fe.y0+fe.y1)/2,he=!(v.traceIs(fe.trace,"bar-like")||v.traceIs(fe.trace,"box-violin"));"y"===L?he?(ae=pe-M,ne=pe+M):(ae=Math.min.apply(null,W.map((function(e){return Math.min(e.y0,e.y1)}))),ne=Math.max.apply(null,W.map((function(e){return Math.max(e.y0,e.y1)})))):ae=ne=o.mean(W.map((function(e){return(e.y0+e.y1)/2})))-ue/2,"x"===L?he?(ie=de+M,oe=de-M):(ie=Math.max.apply(null,W.map((function(e){return Math.max(e.x0,e.x1)}))),oe=Math.min.apply(null,W.map((function(e){return Math.min(e.x0,e.x1)})))):ie=oe=o.mean(W.map((function(e){return(e.x0+e.x1)/2})))-ce/2;var ge,ve,ye=O._offset,me=C._offset;return oe+=ye-ce,ae+=me-ue,ge=(ie+=ye)+ce<I&&ie>=0?ie:oe+ce<I&&oe>=0?oe:ye+ce<I?ye:ie-de<de-oe+ce?I-ce:0,ge+=M,ve=(ne+=me)+ue<N&&ne>=0?ne:ae+ue<N&&ae>=0?ae:me+ue<N?me:ne-pe<pe-ae+ue?N-ue:0,ve+=M,le.attr("transform",l(ge-1,ve-1)),le}var be=h.selectAll("g.hovertext").data(e,(function(e){return E(e)}));return be.enter().append("g").classed("hovertext",!0).each((function(){var e=n.select(this);e.append("rect").call(p.fill,p.addOpacity(f,.8)),e.append("text").classed("name",!0),e.append("path").style("stroke-width","1px"),e.append("text").classed("nums",!0).call(d.font,k,T)})),be.exit().remove(),be.each((function(e){var t=n.select(this).attr("transform",""),o=e.color;Array.isArray(o)&&(o=o[e.eventData[0].pointNumber]);var h=e.bgcolor||o,g=p.combine(p.opacity(h)?h:p.defaultLine,f),v=p.combine(p.opacity(o)?o:p.defaultLine,f),y=e.borderColor||p.contrast(g),m=j(e,R,i,a,P,t),b=m[0],x=m[1],_=t.select("text.nums").call(d.font,e.fontFamily||k,e.fontSize||T,e.fontColor||y).text(b).attr("data-notex",1).call(u.positionText,0,0).call(u.convertToTspans,r),A=t.select("text.name"),O=0,C=0;if(x&&x!==b){A.call(d.font,e.fontFamily||k,e.fontSize||T,v).text(x).attr("data-notex",1).call(u.positionText,0,0).call(u.convertToTspans,r);var E=H(r,A.node());O=E.width+2*M,C=E.height+2*M}else A.remove(),t.select("rect").remove();t.select("path").style({fill:g,stroke:y});var L=e.xa._offset+(e.x0+e.x1)/2,z=e.ya._offset+(e.y0+e.y1)/2,F=Math.abs(e.x1-e.x0),B=Math.abs(e.y1-e.y0),U=H(r,_.node()),V=U.width/a._invScaleX,q=U.height/a._invScaleY;e.ty0=(D-U.top)/a._invScaleY,e.bx=V+2*M,e.by=Math.max(q+2*M,C),e.anchor="start",e.txwidth=V,e.tx2width=O,e.offset=0;var W,Y,G=(V+S+M+O)*a._invScaleX;if(c)e.pos=L,W=z+B/2+G<=N,Y=z-B/2-G>=0,"top"!==e.idealAlign&&W||!Y?W?(z+=B/2,e.anchor="start"):e.anchor="middle":(z-=B/2,e.anchor="end");else if(e.pos=z,W=L+F/2+G<=I,Y=L-F/2-G>=0,"left"!==e.idealAlign&&W||!Y)if(W)L+=F/2,e.anchor="start";else{e.anchor="middle";var X=G/2,Z=L+X-I,$=L-X;Z>0&&(L-=Z),$<0&&(L+=-$)}else L-=F/2,e.anchor="end";_.attr("text-anchor",e.anchor),O&&A.attr("text-anchor",e.anchor),t.attr("transform",l(L,z)+(c?s(w):""))})),be}function j(e,t,r,n,a,i){var l="",s="";void 0!==e.nameOverride&&(e.name=e.nameOverride),e.name&&(e.trace._meta&&(e.name=o.templateString(e.name,e.trace._meta)),l=R(e.name,e.nameLength));var c=r.charAt(0),u="x"===c?"y":"x";void 0!==e.zLabel?(void 0!==e.xLabel&&(s+="x: "+e.xLabel+"<br>"),void 0!==e.yLabel&&(s+="y: "+e.yLabel+"<br>"),"choropleth"!==e.trace.type&&"choroplethmapbox"!==e.trace.type&&(s+=(s?"z: ":"")+e.zLabel)):t&&e[c+"Label"]===a?s=e[u+"Label"]||"":void 0===e.xLabel?void 0!==e.yLabel&&"scattercarpet"!==e.trace.type&&(s=e.yLabel):s=void 0===e.yLabel?e.xLabel:"("+e.xLabel+", "+e.yLabel+")",!e.text&&0!==e.text||Array.isArray(e.text)||(s+=(s?"<br>":"")+e.text),void 0!==e.extraText&&(s+=(s?"<br>":"")+e.extraText),i&&""===s&&!e.hovertemplate&&(""===l&&i.remove(),s=l);var f=e.hovertemplate||!1;if(f){var d=e.hovertemplateLabels||e;e[c+"Label"]!==a&&(d[c+"other"]=d[c+"Val"],d[c+"otherLabel"]=d[c+"Label"]),s=(s=o.hovertemplateString(f,d,n._d3locale,e.eventData[0]||{},e.trace._meta)).replace(L,(function(t,r){return l=R(r,e.nameLength),""}))}return[s,l]}function z(e,t,r,a){var i=function(e){return e*r},o=function(e){return e*a};e.each((function(e){var r=n.select(this);if(e.del)return r.remove();var a=r.select("text.nums"),l=e.anchor,s="end"===l?-1:1,c={start:1,end:-1,middle:0}[l],f=c*(S+M),p=f+c*(e.txwidth+M),h=0,g=e.offset,v="middle"===l;v&&(f-=e.tx2width/2,p+=e.txwidth/2+M),t&&(g*=-A,h=e.offset*T),r.select("path").attr("d",v?"M-"+i(e.bx/2+e.tx2width/2)+","+o(g-e.by/2)+"h"+i(e.bx)+"v"+o(e.by)+"h-"+i(e.bx)+"Z":"M0,0L"+i(s*S+h)+","+o(S+g)+"v"+o(e.by/2-S)+"h"+i(s*e.bx)+"v-"+o(e.by)+"H"+i(s*S+h)+"V"+o(g-S)+"Z");var y=h+f,m=g+e.ty0-e.by/2+M,b=e.textAlign||"auto";"auto"!==b&&("left"===b&&"start"!==l?(a.attr("text-anchor","start"),y=v?-e.bx/2-e.tx2width/2+M:-e.bx-M):"right"===b&&"end"!==l&&(a.attr("text-anchor","end"),y=v?e.bx/2-e.tx2width/2-M:e.bx+M)),a.call(u.positionText,i(y),o(m)),e.tx2width&&(r.select("text.name").call(u.positionText,i(p+c*M+h),o(g+e.ty0-e.by/2+M)),r.select("rect").call(d.setRect,i(p+(c-1)*e.tx2width/2+h),o(g-e.by/2-1),i(e.tx2width),o(e.by+2)))}))}function D(e,t){var r=e.index,n=e.trace||{},i=e.cd[0],l=e.cd[r]||{};function s(e){return e||a(e)&&0===e}var c=Array.isArray(r)?function(e,t){var a=o.castOption(i,r,e);return s(a)?a:o.extractOption({},n,"",t)}:function(e,t){return o.extractOption(l,n,e,t)};function u(t,r,n){var a=c(r,n);s(a)&&(e[t]=a)}if(u("hoverinfo","hi","hoverinfo"),u("bgcolor","hbg","hoverlabel.bgcolor"),u("borderColor","hbc","hoverlabel.bordercolor"),u("fontFamily","htf","hoverlabel.font.family"),u("fontSize","hts","hoverlabel.font.size"),u("fontColor","htc","hoverlabel.font.color"),u("nameLength","hnl","hoverlabel.namelength"),u("textAlign","hta","hoverlabel.align"),e.posref="y"===t||"closest"===t&&"h"===n.orientation?e.xa._offset+(e.x0+e.x1)/2:e.ya._offset+(e.y0+e.y1)/2,e.x0=o.constrain(e.x0,0,e.xa._length),e.x1=o.constrain(e.x1,0,e.xa._length),e.y0=o.constrain(e.y0,0,e.ya._length),e.y1=o.constrain(e.y1,0,e.ya._length),void 0!==e.xLabelVal&&(e.xLabel="xLabel"in e?e.xLabel:g.hoverLabelText(e.xa,e.xLabelVal,n.xhoverformat),e.xVal=e.xa.c2d(e.xLabelVal)),void 0!==e.yLabelVal&&(e.yLabel="yLabel"in e?e.yLabel:g.hoverLabelText(e.ya,e.yLabelVal,n.yhoverformat),e.yVal=e.ya.c2d(e.yLabelVal)),void 0!==e.zLabelVal&&void 0===e.zLabel&&(e.zLabel=String(e.zLabelVal)),!isNaN(e.xerr)&&!("log"===e.xa.type&&e.xerr<=0)){var f=g.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;void 0!==e.xerrneg?e.xLabel+=" +"+f+" / -"+g.tickText(e.xa,e.xa.c2l(e.xerrneg),"hover").text:e.xLabel+=" \xb1 "+f,"x"===t&&(e.distance+=1)}if(!isNaN(e.yerr)&&!("log"===e.ya.type&&e.yerr<=0)){var d=g.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;void 0!==e.yerrneg?e.yLabel+=" +"+d+" / -"+g.tickText(e.ya,e.ya.c2l(e.yerrneg),"hover").text:e.yLabel+=" \xb1 "+d,"y"===t&&(e.distance+=1)}var p=e.hoverinfo||e.trace.hoverinfo;return p&&"all"!==p&&(-1===(p=Array.isArray(p)?p:p.split("+")).indexOf("x")&&(e.xLabel=void 0),-1===p.indexOf("y")&&(e.yLabel=void 0),-1===p.indexOf("z")&&(e.zLabel=void 0),-1===p.indexOf("text")&&(e.text=void 0),-1===p.indexOf("name")&&(e.name=void 0)),e}function I(e,t,r){var n,a,o=r.container,l=r.fullLayout,s=l._size,c=r.event,u=!!t.hLinePoint,f=!!t.vLinePoint;if(o.selectAll(".spikeline").remove(),f||u){var h=p.combine(l.plot_bgcolor,l.paper_bgcolor);if(u){var v,y,m=t.hLinePoint;n=m&&m.xa,"cursor"===(a=m&&m.ya).spikesnap?(v=c.pointerX,y=c.pointerY):(v=n._offset+m.x,y=a._offset+m.y);var b,x,w=i.readability(m.color,h)<1.5?p.contrast(h):m.color,_=a.spikemode,k=a.spikethickness,T=a.spikecolor||w,A=g.getPxPosition(e,a);if(-1!==_.indexOf("toaxis")||-1!==_.indexOf("across")){if(-1!==_.indexOf("toaxis")&&(b=A,x=v),-1!==_.indexOf("across")){var S=a._counterDomainMin,M=a._counterDomainMax;"free"===a.anchor&&(S=Math.min(S,a.position),M=Math.max(M,a.position)),b=s.l+S*s.w,x=s.l+M*s.w}o.insert("line",":first-child").attr({x1:b,x2:x,y1:y,y2:y,"stroke-width":k,stroke:T,"stroke-dasharray":d.dashStyle(a.spikedash,k)}).classed("spikeline",!0).classed("crisp",!0),o.insert("line",":first-child").attr({x1:b,x2:x,y1:y,y2:y,"stroke-width":k+2,stroke:h}).classed("spikeline",!0).classed("crisp",!0)}-1!==_.indexOf("marker")&&o.insert("circle",":first-child").attr({cx:A+("right"!==a.side?k:-k),cy:y,r:k,fill:T}).classed("spikeline",!0)}if(f){var O,C,E=t.vLinePoint;n=E&&E.xa,a=E&&E.ya,"cursor"===n.spikesnap?(O=c.pointerX,C=c.pointerY):(O=n._offset+E.x,C=a._offset+E.y);var L,P,j=i.readability(E.color,h)<1.5?p.contrast(h):E.color,z=n.spikemode,D=n.spikethickness,I=n.spikecolor||j,N=g.getPxPosition(e,n);if(-1!==z.indexOf("toaxis")||-1!==z.indexOf("across")){if(-1!==z.indexOf("toaxis")&&(L=N,P=C),-1!==z.indexOf("across")){var R=n._counterDomainMin,F=n._counterDomainMax;"free"===n.anchor&&(R=Math.min(R,n.position),F=Math.max(F,n.position)),L=s.t+(1-F)*s.h,P=s.t+(1-R)*s.h}o.insert("line",":first-child").attr({x1:O,x2:O,y1:L,y2:P,"stroke-width":D,stroke:I,"stroke-dasharray":d.dashStyle(n.spikedash,D)}).classed("spikeline",!0).classed("crisp",!0),o.insert("line",":first-child").attr({x1:O,x2:O,y1:L,y2:P,"stroke-width":D+2,stroke:h}).classed("spikeline",!0).classed("crisp",!0)}-1!==z.indexOf("marker")&&o.insert("circle",":first-child").attr({cx:O,cy:N-("top"!==n.side?D:-D),r:D,fill:I}).classed("spikeline",!0)}}}function N(e,t){return!t||(t.vLinePoint!==e._spikepoints.vLinePoint||t.hLinePoint!==e._spikepoints.hLinePoint)}function R(e,t){return u.plainText(e||"",{len:t,allowedTags:["br","sub","sup","b","i","em"]})}function F(e,t,r){var n=t[e+"a"],a=t[e+"Val"],i=t.cd[0];if("category"===n.type)a=n._categoriesMap[a];else if("date"===n.type){var o=t.trace[e+"periodalignment"];if(o){var l=t.cd[t.index],s=l[e+"Start"];void 0===s&&(s=l[e]);var c=l[e+"End"];void 0===c&&(c=l[e]);var u=c-s;"end"===o?a+=u:"middle"===o&&(a+=u/2)}a=n.d2c(a)}return i&&i.t&&i.t.posLetter===n._id&&("group"!==r.boxmode&&"group"!==r.violinmode||(a+=i.t.dPos)),a}function B(e){return e.offsetTop+e.clientTop}function U(e){return e.offsetLeft+e.clientLeft}function H(e,t){var r=e._fullLayout,n=t.getBoundingClientRect(),a=n.x,i=n.y,l=a+n.width,s=i+n.height,c=o.apply3DTransform(r._invTransform)(a,i),u=o.apply3DTransform(r._invTransform)(l,s),f=c[0],d=c[1],p=u[0],h=u[1];return{x:f,y:d,width:p-f,height:h-d,top:Math.min(d,h),left:Math.min(f,p),right:Math.max(f,p),bottom:Math.max(d,h)}}},function(e,t,r){"use strict";var n=r(5),a=r(0),i=r(17),o=r(44),l=r(262),s=r(93),c=r(169);e.exports=function(e,t,r){var u,f=e.legend||{},d=i.newContainer(t,"legend");function p(e,t){return a.coerce(f,d,l,e,t)}for(var h=function(e,t){var r=u._input,n=u;return a.coerce(r,n,o,e,t)},g=t.font||{},v=a.coerceFont(p,"grouptitlefont",a.extendFlat({},g,{size:Math.round(1.1*g.size)})),y=0,m=!1,b="normal",x=0;x<r.length;x++)(u=r[x]).visible&&((u.showlegend||u._dfltShowLegend&&!(u._module&&u._module.attributes&&u._module.attributes.showlegend&&!1===u._module.attributes.showlegend.dflt))&&(y++,u.showlegend&&(m=!0,(n.traceIs(u,"pie-like")||!0===u._input.showlegend)&&y++),a.coerceFont(h,"legendgrouptitle.font",v)),(n.traceIs(u,"bar")&&"stack"===t.barmode||-1!==["tonextx","tonexty"].indexOf(u.fill))&&(b=c.isGrouped({traceorder:b})?"grouped+reversed":"reversed"),void 0!==u.legendgroup&&""!==u.legendgroup&&(b=c.isReversed({traceorder:b})?"reversed+grouped":"grouped"));var w=a.coerce(e,t,s,"showlegend",m&&y>1);if(!1===w&&(t.legend=void 0),(!1!==w||f.uirevision)&&(p("uirevision",t.uirevision),!1!==w)){p("bgcolor",t.paper_bgcolor),p("bordercolor"),p("borderwidth");var _,k,T,A=a.coerceFont(p,"font",t.font),S="h"===p("orientation");if(S?(_=0,n.getComponentMethod("rangeslider","isVisible")(e.xaxis)?(k=1.1,T="bottom"):(k=-.1,T="top")):(_=1.02,k=1,T="auto"),p("traceorder",b),c.isGrouped(t.legend)&&p("tracegroupgap"),p("itemsizing"),p("itemwidth"),p("itemclick"),p("itemdoubleclick"),p("groupclick"),p("x",_),p("xanchor"),p("y",k),p("yanchor",T),p("valign"),a.noneOrAll(f,d,["x","y"]),p("title.text")){p("title.side",S?"left":"top");var M=a.extendFlat({},A,{size:a.bigFont(A.size)});a.coerceFont(p,"title.font",M)}}}},function(e,t,r){"use strict";var n=r(28),a=r(45);e.exports={bgcolor:{valType:"color",editType:"legend",description:["Sets the legend background color.","Defaults to `layout.paper_bgcolor`."].join(" ")},bordercolor:{valType:"color",dflt:a.defaultLine,editType:"legend",description:"Sets the color of the border enclosing the legend."},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend",description:"Sets the width (in px) of the border enclosing the legend."},font:n({editType:"legend",description:"Sets the font used to text the legend items."}),grouptitlefont:n({editType:"legend",description:["Sets the font for group titles in legend.","Defaults to `legend.font` with its size increased about 10%."].join(" ")}),orientation:{valType:"enumerated",values:["v","h"],dflt:"v",editType:"legend",description:"Sets the orientation of the legend."},traceorder:{valType:"flaglist",flags:["reversed","grouped"],extras:["normal"],editType:"legend",description:["Determines the order at which the legend items are displayed.","If *normal*, the items are displayed top-to-bottom in the same","order as the input data.","If *reversed*, the items are displayed in the opposite order","as *normal*.","If *grouped*, the items are displayed in groups","(when a trace `legendgroup` is provided).","if *grouped+reversed*, the items are displayed in the opposite order","as *grouped*."].join(" ")},tracegroupgap:{valType:"number",min:0,dflt:10,editType:"legend",description:["Sets the amount of vertical space (in px) between legend groups."].join(" ")},itemsizing:{valType:"enumerated",values:["trace","constant"],dflt:"trace",editType:"legend",description:["Determines if the legend items symbols scale with their corresponding *trace* attributes","or remain *constant* independent of the symbol size on the graph."].join(" ")},itemwidth:{valType:"number",min:30,dflt:30,editType:"legend",description:"Sets the width (in px) of the legend item symbols (the part other than the title.text)."},itemclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggle",editType:"legend",description:["Determines the behavior on legend item click.","*toggle* toggles the visibility of the item clicked on the graph.","*toggleothers* makes the clicked item the sole visible item on the graph.","*false* disables legend item click interactions."].join(" ")},itemdoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggleothers",editType:"legend",description:["Determines the behavior on legend item double-click.","*toggle* toggles the visibility of the item clicked on the graph.","*toggleothers* makes the clicked item the sole visible item on the graph.","*false* disables legend item double-click interactions."].join(" ")},groupclick:{valType:"enumerated",values:["toggleitem","togglegroup"],dflt:"togglegroup",editType:"legend",description:["Determines the behavior on legend group item click.","*toggleitem* toggles the visibility of the individual item clicked on the graph.","*togglegroup* toggles the visibility of all items in the same legendgroup as the item clicked on the graph."].join(" ")},x:{valType:"number",min:-2,max:3,editType:"legend",description:["Sets the x position (in normalized coordinates) of the legend.","Defaults to *1.02* for vertical legends and","defaults to *0* for horizontal legends."].join(" ")},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"legend",description:["Sets the legend's horizontal position anchor.","This anchor binds the `x` position to the *left*, *center*","or *right* of the legend.","Value *auto* anchors legends to the right for `x` values greater than or equal to 2/3,","anchors legends to the left for `x` values less than or equal to 1/3 and","anchors legends with respect to their center otherwise."].join(" ")},y:{valType:"number",min:-2,max:3,editType:"legend",description:["Sets the y position (in normalized coordinates) of the legend.","Defaults to *1* for vertical legends,","defaults to *-0.1* for horizontal legends on graphs w/o range sliders and","defaults to *1.1* for horizontal legends on graph with one or multiple range sliders."].join(" ")},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],editType:"legend",description:["Sets the legend's vertical position anchor","This anchor binds the `y` position to the *top*, *middle*","or *bottom* of the legend.","Value *auto* anchors legends at their bottom for `y` values less than or equal to 1/3,","anchors legends to at their top for `y` values greater than or equal to 2/3 and","anchors legends with respect to their middle otherwise."].join(" ")},uirevision:{valType:"any",editType:"none",description:["Controls persistence of legend-driven changes in trace and pie label","visibility. Defaults to `layout.uirevision`."].join(" ")},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"legend",description:["Sets the vertical alignment of the symbols with respect to their associated text."].join(" ")},title:{text:{valType:"string",dflt:"",editType:"legend",description:["Sets the title of the legend."].join(" ")},font:n({editType:"legend",description:["Sets this legend's title font.","Defaults to `legend.font` with its size increased about 20%."].join(" ")}),side:{valType:"enumerated",values:["top","left","top left"],editType:"legend",description:["Determines the location of legend's title","with respect to the legend items.","Defaulted to *top* with `orientation` is *h*.","Defaulted to *left* with `orientation` is *v*.","The *top left* options could be used to expand","legend area in both x and y sides."].join(" ")},editType:"legend"},editType:"legend"}},function(e,t,r){"use strict";var n=r(7),a=r(0),i=r(20),o=r(5),l=r(94),s=r(46),c=r(10),u=r(8),f=r(25),d=r(534),p=r(264),h=r(33),g=h.LINE_SPACING,v=h.FROM_TL,y=h.FROM_BR,m=r(535),b=r(265),x=r(169);function w(e,t,r,n,a){var i=r.data()[0][0].trace,s={event:a,node:r.node(),curveNumber:i.index,expandedIndex:i._expandedIndex,data:e.data,layout:e.layout,frames:e._transitionData._frames,config:e._context,fullData:e._fullData,fullLayout:e._fullLayout};if(i._group&&(s.group=i._group),o.traceIs(i,"pie-like")&&(s.label=r.datum()[0].label),!1!==l.triggerHandler(e,"plotly_legendclick",s))if(1===n)t._clickTimeout=setTimeout((function(){e._fullLayout&&d(r,e,n)}),e._context.doubleClickDelay);else if(2===n){t._clickTimeout&&clearTimeout(t._clickTimeout),e._legendMouseDownTime=0,!1!==l.triggerHandler(e,"plotly_legenddoubleclick",s)&&d(r,e,n)}}function _(e,t,r){var n,i,l=e.data()[0][0],s=l.trace,u=o.traceIs(s,"pie-like"),d=!r._inHover&&t._context.edits.legendText&&!u,h=r._maxNameLength;l.groupTitle?(n=l.groupTitle.text,i=l.groupTitle.font):(i=r.font,r.entries?n=l.text:(n=u?l.label:s.name,s._meta&&(n=a.templateString(n,s._meta))));var g=a.ensureSingle(e,"text","legendtext");g.attr("text-anchor","start").call(c.font,i).text(d?k(n,h):n);var v=r.itemwidth+2*p.itemGap;f.positionText(g,v,0),d?g.call(f.makeEditable,{gd:t,text:n}).call(A,e,t,r).on("edit",(function(n){this.text(k(n,h)).call(A,e,t,r);var i=l.trace._fullInput||{},c={};if(o.hasTransform(i,"groupby")){var u=o.getTransformIndices(i,"groupby"),f=u[u.length-1],d=a.keyedContainer(i,"transforms["+f+"].styles","target","value.name");d.set(l.trace._group,n),c=d.constructUpdate()}else c.name=n;return o.call("_guiRestyle",t,c,s.index)})):A(g,e,t,r)}function k(e,t){var r=Math.max(4,t);if(e&&e.trim().length>=r/2)return e;for(var n=r-(e=e||"").length;n>0;n--)e+=" ";return e}function T(e,t){var r,i=t._context.doubleClickDelay,o=1,l=a.ensureSingle(e,"rect","legendtoggle",(function(e){t._context.staticPlot||e.style("cursor","pointer").attr("pointer-events","all"),e.call(u.fill,"rgba(0,0,0,0)")}));t._context.staticPlot||(l.on("mousedown",(function(){(r=(new Date).getTime())-t._legendMouseDownTime<i?o+=1:(o=1,t._legendMouseDownTime=r)})),l.on("mouseup",(function(){if(!t._dragged&&!t._editing){var r=t._fullLayout.legend;(new Date).getTime()-t._legendMouseDownTime>i&&(o=Math.max(o-1,1)),w(t,r,e,o,n.event)}})))}function A(e,t,r,n,a){n._inHover&&e.attr("data-notex",!0),f.convertToTspans(e,r,(function(){!function(e,t,r,n){var a=e.data()[0][0];if(!r._inHover&&a&&!a.trace.showlegend)return void e.remove();var i=e.select("g[class*=math-group]"),o=i.node();r||(r=t._fullLayout.legend);var l,s=r.borderwidth;l=1===n?r.title.font:a.groupTitle?a.groupTitle.font:r.font;var u,d,h=l.size*g;if(o){var v=c.bBox(o);u=v.height,d=v.width,1===n?c.setTranslate(i,s,s+.75*u):c.setTranslate(i,0,.25*u)}else{var y=e.select(1===n?".legendtitletext":".legendtext"),m=f.lineCount(y),b=y.node();if(u=h*m,d=b?c.bBox(b).width:0,1===n)"left"===r.title.side&&(d+=2*p.itemGap),f.positionText(y,s+p.titlePad,s+h);else{var x=2*p.itemGap+r.itemwidth;a.groupTitle&&(x=p.itemGap,d-=r.itemwidth),f.positionText(y,x,-h*((m-1)/2-.3))}}1===n?(r._titleWidth=d,r._titleHeight=u):(a.lineHeight=h,a.height=Math.max(u,16)+3,a.width=d)}(t,r,n,a)}))}function S(e){return a.isRightAnchor(e)?"right":a.isCenterAnchor(e)?"center":"left"}function M(e){return a.isBottomAnchor(e)?"bottom":a.isMiddleAnchor(e)?"middle":"top"}e.exports=function(e,t){return t||(t=e._fullLayout.legend||{}),function(e,t){var r,l,f=e._fullLayout,d="legend"+f._uid,h=t._inHover;h?(r=t.layer,d+="-hover"):r=f._infolayer;if(!r)return;e._legendMouseDownTime||(e._legendMouseDownTime=0);if(h){if(!t.entries)return;l=m(t.entries,t)}else{if(!e.calcdata)return;l=f.showlegend&&m(e.calcdata,t)}var g=f.hiddenlabels||[];if(!h&&(!f.showlegend||!l.length))return r.selectAll(".legend").remove(),f._topdefs.select("#"+d).remove(),i.autoMargin(e,"legend");var k=a.ensureSingle(r,"g","legend",(function(e){h||e.attr("pointer-events","all")})),O=a.ensureSingleById(f._topdefs,"clipPath",d,(function(e){e.append("rect")})),C=a.ensureSingle(k,"rect","bg",(function(e){e.attr("shape-rendering","crispEdges")}));C.call(u.stroke,t.bordercolor).call(u.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px");var E=a.ensureSingle(k,"g","scrollbox"),L=t.title;if(t._titleWidth=0,t._titleHeight=0,L.text){var P=a.ensureSingle(E,"text","legendtitletext");P.attr("text-anchor","start").call(c.font,L.font).text(L.text),A(P,E,e,t,1)}else E.selectAll(".legendtitletext").remove();var j=a.ensureSingle(k,"rect","scrollbar",(function(e){e.attr(p.scrollBarEnterAttrs).call(u.fill,p.scrollBarColor)})),z=E.selectAll("g.groups").data(l);z.enter().append("g").attr("class","groups"),z.exit().remove();var D=z.selectAll("g.traces").data(a.identity);D.enter().append("g").attr("class","traces"),D.exit().remove(),D.style("opacity",(function(e){var t=e[0].trace;return o.traceIs(t,"pie-like")?-1!==g.indexOf(e[0].label)?.5:1:"legendonly"===t.visible?.5:1})).each((function(){n.select(this).call(_,e,t)})).call(b,e,t).each((function(){h||n.select(this).call(T,e)})),a.syncOrAsync([i.previousPromises,function(){return function(e,t,r,a){var i=e._fullLayout;a||(a=i.legend);var o=i._size,l=x.isVertical(a),s=x.isGrouped(a),u=a.borderwidth,f=2*u,d=p.itemGap,h=a.itemwidth+2*d,g=2*(u+d),v=M(a),y=a.y<0||0===a.y&&"top"===v,m=a.y>1||1===a.y&&"bottom"===v,b=a.tracegroupgap;a._maxHeight=Math.max(y||m?i.height/2:o.h,30);var w=0;a._width=0,a._height=0;var _=function(e){var t=0,r=0,n=e.title.side;n&&(-1!==n.indexOf("left")&&(t=e._titleWidth),-1!==n.indexOf("top")&&(r=e._titleHeight));return[t,r]}(a);if(l)r.each((function(e){var t=e[0].height;c.setTranslate(this,u+_[0],u+_[1]+a._height+t/2+d),a._height+=t,a._width=Math.max(a._width,e[0].width)})),w=h+a._width,a._width+=d+h+f,a._height+=g,s&&(t.each((function(e,t){c.setTranslate(this,0,t*a.tracegroupgap)})),a._height+=(a._lgroupsLength-1)*a.tracegroupgap);else{var k=S(a),T=a.x<0||0===a.x&&"right"===k,A=a.x>1||1===a.x&&"left"===k,O=m||y,C=i.width/2;a._maxWidth=Math.max(T?O&&"left"===k?o.l+o.w:C:A?O&&"right"===k?o.r+o.w:C:o.w,2*h);var E=0,L=0;r.each((function(e){var t=e[0].width+h;E=Math.max(E,t),L+=t})),w=null;var P=0;if(s){var j=0,z=0,D=0;t.each((function(){var e=0,t=0;n.select(this).selectAll("g.traces").each((function(r){var n=r[0].width,a=r[0].height;c.setTranslate(this,_[0],_[1]+u+d+a/2+t),t+=a,e=Math.max(e,h+n)}));var r=e+d;z>0&&r+u+z>a._maxWidth?(P=Math.max(P,z),z=0,D+=j+b,j=t):j=Math.max(j,t),c.setTranslate(this,z,D),z+=r})),a._width=Math.max(P,z)+u,a._height=D+j+g}else{var I=r.size(),N=L+f+(I-1)*d<a._maxWidth,R=0,F=0,B=0,U=0;r.each((function(e){var t=e[0].height,r=h+e[0].width,n=(N?r:E)+d;n+u+F-d>=a._maxWidth&&(P=Math.max(P,U),F=0,B+=R,a._height+=R,R=0),c.setTranslate(this,_[0]+u+F,_[1]+u+B+t/2+d),U=F+r+d,F+=n,R=Math.max(R,t)})),N?(a._width=F+f,a._height=R+g):(a._width=Math.max(P,U)+f,a._height+=R+g)}}a._width=Math.ceil(Math.max(a._width+_[0],a._titleWidth+2*(u+p.titlePad))),a._height=Math.ceil(Math.max(a._height+_[1],a._titleHeight+2*(u+p.itemGap))),a._effHeight=Math.min(a._height,a._maxHeight);var H=e._context.edits,V=H.legendText||H.legendPosition;r.each((function(e){var t=n.select(this).select(".legendtoggle"),r=e[0].height,a=V?h:w||h+e[0].width;l||(a+=d/2),c.setRect(t,0,-r/2,a,r)}))}(e,z,D,t)},function(){var l,u,g,m,b=f._size,x=t.borderwidth;if(!h){var _=function(e){var t=e._fullLayout.legend,r=S(t),n=M(t);return i.autoMargin(e,"legend",{x:t.x,y:t.y,l:t._width*v[r],r:t._width*y[r],b:t._effHeight*y[n],t:t._effHeight*v[n]})}(e);if(_)return;var T=b.l+b.w*t.x-v[S(t)]*t._width,A=b.t+b.h*(1-t.y)-v[M(t)]*t._effHeight;if(f.margin.autoexpand){var L=T,P=A;T=a.constrain(T,0,f.width-t._width),A=a.constrain(A,0,f.height-t._effHeight),T!==L&&a.log("Constrain legend.x to make legend fit inside graph"),A!==P&&a.log("Constrain legend.y to make legend fit inside graph")}c.setTranslate(k,T,A)}if(j.on(".drag",null),k.on("wheel",null),h||t._height<=t._maxHeight||e._context.staticPlot){var z=t._effHeight;h&&(z=t._height),C.attr({width:t._width-x,height:z-x,x:x/2,y:x/2}),c.setTranslate(E,0,0),O.select("rect").attr({width:t._width-2*x,height:z-2*x,x:x,y:x}),c.setClipUrl(E,d,e),c.setRect(j,0,0,0,0),delete t._scrollY}else{var D,I,N,R=Math.max(p.scrollBarMinHeight,t._effHeight*t._effHeight/t._height),F=t._effHeight-R-2*p.scrollBarMargin,B=t._height-t._effHeight,U=F/B,H=Math.min(t._scrollY||0,B);C.attr({width:t._width-2*x+p.scrollBarWidth+p.scrollBarMargin,height:t._effHeight-x,x:x/2,y:x/2}),O.select("rect").attr({width:t._width-2*x+p.scrollBarWidth+p.scrollBarMargin,height:t._effHeight-2*x,x:x,y:x+H}),c.setClipUrl(E,d,e),G(H,R,U),k.on("wheel",(function(){G(H=a.constrain(t._scrollY+n.event.deltaY/F*B,0,B),R,U),0!==H&&H!==B&&n.event.preventDefault()}));var V=function(e,t,r){var n=(r-t)/U+e;return a.constrain(n,0,B)},q=function(e,t,r){var n=(t-r)/U+e;return a.constrain(n,0,B)},W=n.behavior.drag().on("dragstart",(function(){var e=n.event.sourceEvent;D="touchstart"===e.type?e.changedTouches[0].clientY:e.clientY,N=H})).on("drag",(function(){var e=n.event.sourceEvent;2===e.buttons||e.ctrlKey||(I="touchmove"===e.type?e.changedTouches[0].clientY:e.clientY,G(H=V(N,D,I),R,U))}));j.call(W);var Y=n.behavior.drag().on("dragstart",(function(){var e=n.event.sourceEvent;"touchstart"===e.type&&(D=e.changedTouches[0].clientY,N=H)})).on("drag",(function(){var e=n.event.sourceEvent;"touchmove"===e.type&&(I=e.changedTouches[0].clientY,G(H=q(N,D,I),R,U))}));E.call(Y)}function G(r,n,a){t._scrollY=e._fullLayout.legend._scrollY=r,c.setTranslate(E,0,-r),c.setRect(j,t._width,p.scrollBarMargin+r*a,p.scrollBarWidth,n),O.select("rect").attr("y",x+r)}e._context.edits.legendPosition&&(k.classed("cursor-move",!0),s.init({element:k.node(),gd:e,prepFn:function(){var e=c.getTranslate(k);g=e.x,m=e.y},moveFn:function(e,r){var n=g+e,a=m+r;c.setTranslate(k,n,a),l=s.align(n,0,b.l,b.l+b.w,t.xanchor),u=s.align(a,0,b.t+b.h,b.t,t.yanchor)},doneFn:function(){void 0!==l&&void 0!==u&&o.call("_guiRelayout",e,{"legend.x":l,"legend.y":u})},clickFn:function(t,n){var a=r.selectAll("g.traces").filter((function(){var e=this.getBoundingClientRect();return n.clientX>=e.left&&n.clientX<=e.right&&n.clientY>=e.top&&n.clientY<=e.bottom}));a.size()>0&&w(e,k,a,t,n)}}))}],e)}(e,t)}},function(e,t,r){"use strict";e.exports={scrollBarWidth:6,scrollBarMinHeight:20,scrollBarColor:"#808BA4",scrollBarMargin:4,scrollBarEnterAttrs:{rx:20,ry:3,width:0,height:0},titlePad:2,itemGap:5}},function(e,t,r){"use strict";var n=r(7),a=r(5),i=r(0),o=i.strTranslate,l=r(10),s=r(8),c=r(39).extractOpts,u=r(30),f=r(170),d=r(77).castOption,p=r(264);function h(e,t){return(t?"radial":"horizontal")+(e?"":"reversed")}function g(e){var t=e[0].trace,r=t.contours,n=u.hasLines(t),a=u.hasMarkers(t),i=t.visible&&t.fill&&"none"!==t.fill,o=!1,l=!1;if(r){var s=r.coloring;"lines"===s?o=!0:n="none"===s||"heatmap"===s||r.showlines,"constraint"===r.type?i="="!==r._operation:"fill"!==s&&"heatmap"!==s||(l=!0)}return{showMarker:a,showLine:n,showFill:i,showGradientLine:o,showGradientFill:l,anyLine:n||o,anyFill:i||l}}function v(e,t,r){return e&&i.isArrayOrTypedArray(e)?t:e>r?r:e}e.exports=function(e,t,r){var y=t._fullLayout;r||(r=y.legend);var m="constant"===r.itemsizing,b=r.itemwidth,x=(b+2*p.itemGap)/2,w=o(x,0),_=function(e,t,r,n){var a;if(e+1)a=e;else{if(!(t&&t.width>0))return 0;a=t.width}return m?n:Math.min(a,r)};function k(e,i,o){var u=e[0].trace,f=u.marker||{},d=f.line||{},p=o?u.visible&&u.type===o:a.traceIs(u,"bar"),h=n.select(i).select("g.legendpoints").selectAll("path.legend"+o).data(p?[e]:[]);h.enter().append("path").classed("legend"+o,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",w),h.exit().remove(),h.each((function(e){var a=n.select(this),i=e[0],o=_(i.mlw,f.line,5,2);a.style("stroke-width",o+"px");var p=i.mcc;if(!r._inHover&&"mc"in i){var h=c(f),g=h.mid;void 0===g&&(g=(h.max+h.min)/2),p=l.tryColorscale(f,"")(g)}var y=p||i.mc||f.color,m=f.pattern,b=m&&l.getPatternAttr(m.shape,0,"");if(b){var x=l.getPatternAttr(m.bgcolor,0,null),w=l.getPatternAttr(m.fgcolor,0,null),k=m.fgopacity,T=v(m.size,8,10),A=v(m.solidity,.5,1),S="legend-"+u.uid;a.call(l.pattern,"legend",t,S,b,T,A,p,m.fillmode,x,w,k)}else a.call(s.fill,y);o&&s.stroke(a,i.mlc||d.color)}))}function T(e,t,r){var o=e[0],l=o.trace,s=r?l.visible&&l.type===r:a.traceIs(l,r),c=n.select(t).select("g.legendpoints").selectAll("path.legend"+r).data(s?[e]:[]);if(c.enter().append("path").classed("legend"+r,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",w),c.exit().remove(),c.size()){var u=(l.marker||{}).line,p=_(d(u.width,o.pts),u,5,2),h=i.minExtend(l,{marker:{line:{width:p}}});h.marker.line.color=u.color;var g=i.minExtend(o,{trace:h});f(c,g,h)}}e.each((function(e){var t=n.select(this),a=i.ensureSingle(t,"g","layers");a.style("opacity",e[0].trace.opacity);var l=r.valign,s=e[0].lineHeight,c=e[0].height;if("middle"!==l&&s&&c){var u={top:1,bottom:-1}[l]*(.5*(s-c+3));a.attr("transform",o(0,u))}else a.attr("transform",null);a.selectAll("g.legendfill").data([e]).enter().append("g").classed("legendfill",!0),a.selectAll("g.legendlines").data([e]).enter().append("g").classed("legendlines",!0);var f=a.selectAll("g.legendsymbols").data([e]);f.enter().append("g").classed("legendsymbols",!0),f.selectAll("g.legendpoints").data([e]).enter().append("g").classed("legendpoints",!0)})).each((function(e){var r,a=e[0].trace,o=[];if(a.visible)switch(a.type){case"histogram2d":case"heatmap":o=[["M-15,-2V4H15V-2Z"]],r=!0;break;case"choropleth":case"choroplethmapbox":o=[["M-6,-6V6H6V-6Z"]],r=!0;break;case"densitymapbox":o=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],r="radial";break;case"cone":o=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],r=!1;break;case"streamtube":o=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],r=!1;break;case"surface":o=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],r=!0;break;case"mesh3d":o=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],r=!1;break;case"volume":o=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],r=!0;break;case"isosurface":o=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],r=!1}var u=n.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(o);u.enter().append("path").classed("legend3dandfriends",!0).attr("transform",w).style("stroke-miterlimit",1),u.exit().remove(),u.each((function(e,o){var u,f=n.select(this),d=c(a),p=d.colorscale,g=d.reversescale;if(p){if(!r){var v=p.length;u=0===o?p[g?v-1:0][1]:1===o?p[g?0:v-1][1]:p[Math.floor((v-1)/2)][1]}}else{var y=a.vertexcolor||a.facecolor||a.color;u=i.isArrayOrTypedArray(y)?y[o]||y[0]:y}f.attr("d",e[0]),u?f.call(s.fill,u):f.call((function(e){if(e.size()){var n="legendfill-"+a.uid;l.gradient(e,t,n,h(g,"radial"===r),p,"fill")}}))}))})).each((function(e){var t=e[0].trace,r="waterfall"===t.type;if(e[0]._distinct&&r){var a=e[0].trace[e[0].dir].marker;return e[0].mc=a.color,e[0].mlw=a.line.width,e[0].mlc=a.line.color,k(e,this,"waterfall")}var i=[];t.visible&&r&&(i=e[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var o=n.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(i);o.enter().append("path").classed("legendwaterfall",!0).attr("transform",w).style("stroke-miterlimit",1),o.exit().remove(),o.each((function(e){var r=n.select(this),a=t[e[0]].marker,i=_(void 0,a.line,5,2);r.attr("d",e[1]).style("stroke-width",i+"px").call(s.fill,a.color),i&&r.call(s.stroke,a.line.color)}))})).each((function(e){k(e,this,"funnel")})).each((function(e){k(e,this)})).each((function(e){var r=e[0].trace,o=n.select(this).select("g.legendpoints").selectAll("path.legendbox").data(r.visible&&a.traceIs(r,"box-violin")?[e]:[]);o.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",w),o.exit().remove(),o.each((function(){var e=n.select(this);if("all"!==r.boxpoints&&"all"!==r.points||0!==s.opacity(r.fillcolor)||0!==s.opacity((r.line||{}).color)){var a=_(void 0,r.line,5,2);e.style("stroke-width",a+"px").call(s.fill,r.fillcolor),a&&s.stroke(e,r.line.color)}else{var c=i.minExtend(r,{marker:{size:m?12:i.constrain(r.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});o.call(l.pointStyle,c,t)}}))})).each((function(e){T(e,this,"funnelarea")})).each((function(e){T(e,this,"pie")})).each((function(e){var r,a,o=g(e),s=o.showFill,f=o.showLine,d=o.showGradientLine,p=o.showGradientFill,v=o.anyFill,y=o.anyLine,m=e[0],x=m.trace,w=c(x),k=w.colorscale,T=w.reversescale,A=u.hasMarkers(x)||!v?"M5,0":y?"M5,-2":"M5,-3",S=n.select(this),M=S.select(".legendfill").selectAll("path").data(s||p?[e]:[]);if(M.enter().append("path").classed("js-fill",!0),M.exit().remove(),M.attr("d",A+"h"+b+"v6h-"+b+"z").call((function(e){if(e.size())if(s)l.fillGroupStyle(e,t);else{var r="legendfill-"+x.uid;l.gradient(e,t,r,h(T),k,"fill")}})),f||d){var O=_(void 0,x.line,10,5);a=i.minExtend(x,{line:{width:O}}),r=[i.minExtend(m,{trace:a})]}var C=S.select(".legendlines").selectAll("path").data(f||d?[r]:[]);C.enter().append("path").classed("js-line",!0),C.exit().remove(),C.attr("d",A+(d?"l"+b+",0.0001":"h"+b)).call(f?l.lineGroupStyle:function(e){if(e.size()){var r="legendline-"+x.uid;l.lineGroupStyle(e),l.gradient(e,t,r,h(T),k,"stroke")}})})).each((function(e){var r,a,o=g(e),s=o.anyFill,c=o.anyLine,f=o.showLine,d=o.showMarker,p=e[0],h=p.trace,v=!d&&!c&&!s&&u.hasText(h);function y(e,t,r,n){var a=i.nestedProperty(h,e).get(),o=i.isArrayOrTypedArray(a)&&t?t(a):a;if(m&&o&&void 0!==n&&(o=n),r){if(o<r[0])return r[0];if(o>r[1])return r[1]}return o}function b(e){return p._distinct&&p.index&&e[p.index]?e[p.index]:e[0]}if(d||v||f){var x={},_={};if(d){x.mc=y("marker.color",b),x.mx=y("marker.symbol",b),x.mo=y("marker.opacity",i.mean,[.2,1]),x.mlc=y("marker.line.color",b),x.mlw=y("marker.line.width",i.mean,[0,5],2),_.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var k=y("marker.size",i.mean,[2,16],12);x.ms=k,_.marker.size=k}f&&(_.line={width:y("line.width",b,[0,10],5)}),v&&(x.tx="Aa",x.tp=y("textposition",b),x.ts=10,x.tc=y("textfont.color",b),x.tf=y("textfont.family",b)),r=[i.minExtend(p,x)],(a=i.minExtend(h,_)).selectedpoints=null,a.texttemplate=null}var T=n.select(this).select("g.legendpoints"),A=T.selectAll("path.scatterpts").data(d?r:[]);A.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",w),A.exit().remove(),A.call(l.pointStyle,a,t),d&&(r[0].mrc=3);var S=T.selectAll("g.pointtext").data(v?r:[]);S.enter().append("g").classed("pointtext",!0).append("text").attr("transform",w),S.exit().remove(),S.selectAll("text").call(l.textPointStyle,a,t)})).each((function(e){var t=e[0].trace,r=n.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(t.visible&&"candlestick"===t.type?[e,e]:[]);r.enter().append("path").classed("legendcandle",!0).attr("d",(function(e,t){return t?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"})).attr("transform",w).style("stroke-miterlimit",1),r.exit().remove(),r.each((function(e,r){var a=n.select(this),i=t[r?"increasing":"decreasing"],o=_(void 0,i.line,5,2);a.style("stroke-width",o+"px").call(s.fill,i.fillcolor),o&&s.stroke(a,i.line.color)}))})).each((function(e){var t=e[0].trace,r=n.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(t.visible&&"ohlc"===t.type?[e,e]:[]);r.enter().append("path").classed("legendohlc",!0).attr("d",(function(e,t){return t?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"})).attr("transform",w).style("stroke-miterlimit",1),r.exit().remove(),r.each((function(e,r){var a=n.select(this),i=t[r?"increasing":"decreasing"],o=_(void 0,i.line,5,2);a.style("fill","none").call(l.dashLine,i.line.dash,o),o&&s.stroke(a,i.line.color)}))}))}},function(e,t,r){"use strict";var n=r(0),a=r(90);e.exports=function(e,t){function r(r,i){return void 0!==t[r]?t[r]:n.coerce(e,t,a,r,i)}return r("clickmode"),r("hovermode")}},function(e,t,r){"use strict";e.exports={moduleType:"component",name:"modebar",layoutAttributes:r(268),supplyLayoutDefaults:r(542),manage:r(543)}},function(e,t,r){"use strict";var n=r(269);e.exports={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar",description:"Sets the orientation of the modebar."},bgcolor:{valType:"color",editType:"modebar",description:"Sets the background color of the modebar."},color:{valType:"color",editType:"modebar",description:"Sets the color of the icons in the modebar."},activecolor:{valType:"color",editType:"modebar",description:"Sets the color of the active or hovered on icons in the modebar."},uirevision:{valType:"any",editType:"none",description:["Controls persistence of user-driven changes related to the modebar,","including `hovermode`, `dragmode`, and `showspikes` at both the","root level and inside subplots. Defaults to `layout.uirevision`."].join(" ")},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar",description:["Determines which predefined modebar buttons to add.","Please note that these buttons will only be shown if they are","compatible with all trace types used in a graph.","Similar to `config.modeBarButtonsToAdd` option.","This may include *"+n.backButtons.join("*, *")+"*."].join(" ")},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar",description:["Determines which predefined modebar buttons to remove.","Similar to `config.modeBarButtonsToRemove` option.","This may include *"+n.foreButtons.join("*, *")+"*."].join(" ")}}},function(e,t,r){"use strict";var n=r(270),a=Object.keys(n),i=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],o=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(i),l=[];a.forEach((function(e){!function(e){if(-1===o.indexOf(e._cat||e.name)){var t=e.name,r=(e._cat||e.name).toLowerCase();-1===l.indexOf(t)&&l.push(t),-1===l.indexOf(r)&&l.push(r)}}(n[e])})),l.sort(),e.exports={DRAW_MODES:i,backButtons:o,foreButtons:l}},function(e,t,r){"use strict";var n=r(5),a=r(20),i=r(21),o=r(174),l=r(271).eraseActiveShape,s=r(0),c=s._,u=e.exports={};function f(e,t){var r,a,o=t.currentTarget,l=o.getAttribute("data-attr"),s=o.getAttribute("data-val")||!0,c=e._fullLayout,u={},f=i.list(e,null,!0),d=c._cartesianSpikesEnabled;if("zoom"===l){var p,h="in"===s?.5:2,g=(1+h)/2,v=(1-h)/2;for(a=0;a<f.length;a++)if(!(r=f[a]).fixedrange)if(p=r._name,"auto"===s)u[p+".autorange"]=!0;else if("reset"===s){if(void 0===r._rangeInitial)u[p+".autorange"]=!0;else{var y=r._rangeInitial.slice();u[p+".range[0]"]=y[0],u[p+".range[1]"]=y[1]}void 0!==r._showSpikeInitial&&(u[p+".showspikes"]=r._showSpikeInitial,"on"!==d||r._showSpikeInitial||(d="off"))}else{var m=[r.r2l(r.range[0]),r.r2l(r.range[1])],b=[g*m[0]+v*m[1],g*m[1]+v*m[0]];u[p+".range[0]"]=r.l2r(b[0]),u[p+".range[1]"]=r.l2r(b[1])}}else"hovermode"!==l||"x"!==s&&"y"!==s||(s=c._isHoriz?"y":"x",o.setAttribute("data-val",s)),u[l]=s;c._cartesianSpikesEnabled=d,n.call("_guiRelayout",e,u)}function d(e,t){for(var r=t.currentTarget,a=r.getAttribute("data-attr"),i=r.getAttribute("data-val")||!0,o=e._fullLayout._subplots.gl3d||[],l={},s=a.split("."),c=0;c<o.length;c++)l[o[c]+"."+s[1]]=i;var u="pan"===i?i:"zoom";l.dragmode=u,n.call("_guiRelayout",e,l)}function p(e,t){for(var r=t.currentTarget.getAttribute("data-attr"),a="resetLastSave"===r,i="resetDefault"===r,o=e._fullLayout,l=o._subplots.gl3d||[],s={},c=0;c<l.length;c++){var u,f=l[c],d=f+".camera",p=f+".aspectratio",h=f+".aspectmode",g=o[f]._scene;a?(s[d+".up"]=g.viewInitial.up,s[d+".eye"]=g.viewInitial.eye,s[d+".center"]=g.viewInitial.center,u=!0):i&&(s[d+".up"]=null,s[d+".eye"]=null,s[d+".center"]=null,u=!0),u&&(s[p+".x"]=g.viewInitial.aspectratio.x,s[p+".y"]=g.viewInitial.aspectratio.y,s[p+".z"]=g.viewInitial.aspectratio.z,s[h]=g.viewInitial.aspectmode)}n.call("_guiRelayout",e,s)}function h(e,t){var r=t.currentTarget,n=r._previousVal,a=e._fullLayout,i=a._subplots.gl3d||[],o=["xaxis","yaxis","zaxis"],l={},s={};if(n)s=n,r._previousVal=null;else{for(var c=0;c<i.length;c++){var u=i[c],f=a[u],d=u+".hovermode";l[d]=f.hovermode,s[d]=!1;for(var p=0;p<3;p++){var h=o[p],g=u+"."+h+".showspikes";s[g]=!1,l[g]=f[h].showspikes}}r._previousVal=l}return s}function g(e,t){for(var r=t.currentTarget,a=r.getAttribute("data-attr"),i=r.getAttribute("data-val")||!0,o=e._fullLayout,l=o._subplots.geo||[],s=0;s<l.length;s++){var c=l[s],u=o[c];if("zoom"===a){var f=u.projection.scale,d="in"===i?2*f:.5*f;n.call("_guiRelayout",e,c+".projection.scale",d)}}"reset"===a&&b(e,"geo")}function v(e){var t=e._fullLayout;return!t.hovermode&&(t._has("cartesian")?t._isHoriz?"y":"x":"closest")}function y(e){var t=v(e);n.call("_guiRelayout",e,"hovermode",t)}function m(e,t){for(var r=t.currentTarget.getAttribute("data-val"),a=e._fullLayout,i=a._subplots.mapbox||[],o={},l=0;l<i.length;l++){var s=i[l],c=a[s].zoom,u="in"===r?1.05*c:c/1.05;o[s+".zoom"]=u}n.call("_guiRelayout",e,o)}function b(e,t){for(var r=e._fullLayout,a=r._subplots[t]||[],i={},o=0;o<a.length;o++)for(var l=a[o],s=r[l]._subplot.viewInitial,c=Object.keys(s),u=0;u<c.length;u++){var f=c[u];i[l+"."+f]=s[f]}n.call("_guiRelayout",e,i)}u.toImage={name:"toImage",title:function(e){var t=(e._context.toImageButtonOptions||{}).format||"png";return c(e,"png"===t?"Download plot as a png":"Download plot")},icon:o.camera,click:function(e){var t=e._context.toImageButtonOptions,r={format:t.format||"png"};s.notifier(c(e,"Taking snapshot - this may take a few seconds"),"long"),"svg"!==r.format&&s.isIE()&&(s.notifier(c(e,"IE only supports svg. Changing format to svg."),"long"),r.format="svg"),["filename","width","height","scale"].forEach((function(e){e in t&&(r[e]=t[e])})),n.call("downloadImage",e,r).then((function(t){s.notifier(c(e,"Snapshot succeeded")+" - "+t,"long")})).catch((function(){s.notifier(c(e,"Sorry, there was a problem downloading your snapshot!"),"long")}))}},u.sendDataToCloud={name:"sendDataToCloud",title:function(e){return c(e,"Edit in Chart Studio")},icon:o.disk,click:function(e){a.sendDataToCloud(e)}},u.editInChartStudio={name:"editInChartStudio",title:function(e){return c(e,"Edit in Chart Studio")},icon:o.pencil,click:function(e){a.sendDataToCloud(e)}},u.zoom2d={name:"zoom2d",_cat:"zoom",title:function(e){return c(e,"Zoom")},attr:"dragmode",val:"zoom",icon:o.zoombox,click:f},u.pan2d={name:"pan2d",_cat:"pan",title:function(e){return c(e,"Pan")},attr:"dragmode",val:"pan",icon:o.pan,click:f},u.select2d={name:"select2d",_cat:"select",title:function(e){return c(e,"Box Select")},attr:"dragmode",val:"select",icon:o.selectbox,click:f},u.lasso2d={name:"lasso2d",_cat:"lasso",title:function(e){return c(e,"Lasso Select")},attr:"dragmode",val:"lasso",icon:o.lasso,click:f},u.drawclosedpath={name:"drawclosedpath",title:function(e){return c(e,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:o.drawclosedpath,click:f},u.drawopenpath={name:"drawopenpath",title:function(e){return c(e,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:o.drawopenpath,click:f},u.drawline={name:"drawline",title:function(e){return c(e,"Draw line")},attr:"dragmode",val:"drawline",icon:o.drawline,click:f},u.drawrect={name:"drawrect",title:function(e){return c(e,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:o.drawrect,click:f},u.drawcircle={name:"drawcircle",title:function(e){return c(e,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:o.drawcircle,click:f},u.eraseshape={name:"eraseshape",title:function(e){return c(e,"Erase active shape")},icon:o.eraseshape,click:l},u.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(e){return c(e,"Zoom in")},attr:"zoom",val:"in",icon:o.zoom_plus,click:f},u.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(e){return c(e,"Zoom out")},attr:"zoom",val:"out",icon:o.zoom_minus,click:f},u.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(e){return c(e,"Autoscale")},attr:"zoom",val:"auto",icon:o.autoscale,click:f},u.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(e){return c(e,"Reset axes")},attr:"zoom",val:"reset",icon:o.home,click:f},u.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(e){return c(e,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:o.tooltip_basic,gravity:"ne",click:f},u.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(e){return c(e,"Compare data on hover")},attr:"hovermode",val:function(e){return e._fullLayout._isHoriz?"y":"x"},icon:o.tooltip_compare,gravity:"ne",click:f},u.zoom3d={name:"zoom3d",_cat:"zoom",title:function(e){return c(e,"Zoom")},attr:"scene.dragmode",val:"zoom",icon:o.zoombox,click:d},u.pan3d={name:"pan3d",_cat:"pan",title:function(e){return c(e,"Pan")},attr:"scene.dragmode",val:"pan",icon:o.pan,click:d},u.orbitRotation={name:"orbitRotation",title:function(e){return c(e,"Orbital rotation")},attr:"scene.dragmode",val:"orbit",icon:o["3d_rotate"],click:d},u.tableRotation={name:"tableRotation",title:function(e){return c(e,"Turntable rotation")},attr:"scene.dragmode",val:"turntable",icon:o["z-axis"],click:d},u.resetCameraDefault3d={name:"resetCameraDefault3d",_cat:"resetCameraDefault",title:function(e){return c(e,"Reset camera to default")},attr:"resetDefault",icon:o.home,click:p},u.resetCameraLastSave3d={name:"resetCameraLastSave3d",_cat:"resetCameraLastSave",title:function(e){return c(e,"Reset camera to last save")},attr:"resetLastSave",icon:o.movie,click:p},u.hoverClosest3d={name:"hoverClosest3d",_cat:"hoverclosest",title:function(e){return c(e,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:o.tooltip_basic,gravity:"ne",click:function(e,t){var r=h(e,t);n.call("_guiRelayout",e,r)}},u.zoomInGeo={name:"zoomInGeo",_cat:"zoomin",title:function(e){return c(e,"Zoom in")},attr:"zoom",val:"in",icon:o.zoom_plus,click:g},u.zoomOutGeo={name:"zoomOutGeo",_cat:"zoomout",title:function(e){return c(e,"Zoom out")},attr:"zoom",val:"out",icon:o.zoom_minus,click:g},u.resetGeo={name:"resetGeo",_cat:"reset",title:function(e){return c(e,"Reset")},attr:"reset",val:null,icon:o.autoscale,click:g},u.hoverClosestGeo={name:"hoverClosestGeo",_cat:"hoverclosest",title:function(e){return c(e,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:o.tooltip_basic,gravity:"ne",click:y},u.hoverClosestGl2d={name:"hoverClosestGl2d",_cat:"hoverclosest",title:function(e){return c(e,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:o.tooltip_basic,gravity:"ne",click:y},u.hoverClosestPie={name:"hoverClosestPie",_cat:"hoverclosest",title:function(e){return c(e,"Toggle show closest data on hover")},attr:"hovermode",val:"closest",icon:o.tooltip_basic,gravity:"ne",click:y},u.resetViewSankey={name:"resetSankeyGroup",title:function(e){return c(e,"Reset view")},icon:o.home,click:function(e){for(var t={"node.groups":[],"node.x":[],"node.y":[]},r=0;r<e._fullData.length;r++){var a=e._fullData[r]._viewInitial;t["node.groups"].push(a.node.groups.slice()),t["node.x"].push(a.node.x.slice()),t["node.y"].push(a.node.y.slice())}n.call("restyle",e,t)}},u.toggleHover={name:"toggleHover",title:function(e){return c(e,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:o.tooltip_basic,gravity:"ne",click:function(e,t){var r=h(e,t);r.hovermode=v(e),n.call("_guiRelayout",e,r)}},u.resetViews={name:"resetViews",title:function(e){return c(e,"Reset views")},icon:o.home,click:function(e,t){var r=t.currentTarget;r.setAttribute("data-attr","zoom"),r.setAttribute("data-val","reset"),f(e,t),r.setAttribute("data-attr","resetLastSave"),p(e,t),b(e,"geo"),b(e,"mapbox")}},u.toggleSpikelines={name:"toggleSpikelines",title:function(e){return c(e,"Toggle Spike Lines")},icon:o.spikeline,attr:"_cartesianSpikesEnabled",val:"on",click:function(e){var t=e._fullLayout,r=t._cartesianSpikesEnabled;t._cartesianSpikesEnabled="on"===r?"off":"on",n.call("_guiRelayout",e,function(e){for(var t="on"===e._fullLayout._cartesianSpikesEnabled,r=i.list(e,null,!0),n={},a=0;a<r.length;a++){var o=r[a];n[o._name+".showspikes"]=!!t||o._showSpikeInitial}return n}(e))}},u.resetViewMapbox={name:"resetViewMapbox",_cat:"resetView",title:function(e){return c(e,"Reset view")},attr:"reset",icon:o.home,click:function(e){b(e,"mapbox")}},u.zoomInMapbox={name:"zoomInMapbox",_cat:"zoomin",title:function(e){return c(e,"Zoom in")},attr:"zoom",val:"in",icon:o.zoom_plus,click:m},u.zoomOutMapbox={name:"zoomOutMapbox",_cat:"zoomout",title:function(e){return c(e,"Zoom out")},attr:"zoom",val:"out",icon:o.zoom_minus,click:m}},function(e,t,r){"use strict";var n=r(5),a=r(0),i=r(14),o=r(123).readPaths,l=r(272),s=r(96).clearOutlineControllers,c=r(8),u=r(10),f=r(17).arrayEditor,d=r(46),p=r(56),h=r(178),g=r(179);function v(e){var t=e._fullLayout;for(var r in t._shapeUpperLayer.selectAll("path").remove(),t._shapeLowerLayer.selectAll("path").remove(),t._plots){var n=t._plots[r].shapelayer;n&&n.selectAll("path").remove()}for(var a=0;a<t.shapes.length;a++)t.shapes[a].visible&&b(e,a)}function y(e){return!!e._fullLayout._drawing}function m(e){return!e._context.edits.shapePosition}function b(e,t){e._fullLayout._paperdiv.selectAll('.shapelayer [data-index="'+t+'"]').remove();var r=g.makeOptionsAndPlotinfo(e,t),s=r.options,b=r.plotinfo;if(s._input&&!1!==s.visible)if("below"!==s.layer)T(e._fullLayout._shapeUpperLayer);else if("paper"===s.xref||"paper"===s.yref)T(e._fullLayout._shapeLowerLayer);else{if(b._hadPlotinfo)T((b.mainplotinfo||b).shapelayer);else T(e._fullLayout._shapeLowerLayer)}function T(r){var T=w(e,s),A={"data-index":t,"fill-rule":s.fillrule,d:T},S=s.opacity,M=s.fillcolor,O=s.line.width?s.line.color:"rgba(0,0,0,0)",C=s.line.width,E=s.line.dash;C||!0!==s.editable||(C=5,E="solid");var L="Z"!==T[T.length-1],P=m(e)&&s.editable&&e._fullLayout._activeShapeIndex===t;P&&(M=L?"rgba(0,0,0,0)":e._fullLayout.activeshape.fillcolor,S=e._fullLayout.activeshape.opacity);var j,z=r.append("path").attr(A).style("opacity",S).call(c.stroke,O).call(c.fill,M).call(u.dashLine,E,C);if(x(z,e,s),(P||e._context.edits.shapePosition)&&(j=f(e.layout,"shapes",s)),P){z.style({cursor:"move"});var D={element:z.node(),plotinfo:b,gd:e,editHelpers:j,isActiveShape:!0},I=o(T,e);l(I,z,D)}else e._context.edits.shapePosition?function(e,t,r,o,l,s){var c,f,v,m,b,k,T,A,S,M,O,C,E,L,P,j,z=10,D=10,I="pixel"===r.xsizemode,N="pixel"===r.ysizemode,R="line"===r.type,F="path"===r.type,B=s.modifyItem,U=i.getFromId(e,r.xref),H=i.getRefType(r.xref),V=i.getFromId(e,r.yref),q=i.getRefType(r.yref),W=g.getDataToPixel(e,U,!1,H),Y=g.getDataToPixel(e,V,!0,q),G=g.getPixelToData(e,U,!1,H),X=g.getPixelToData(e,V,!0,q),Z=Q(),$={element:Z.node(),gd:e,prepFn:ee,doneFn:te,clickFn:re};function Q(){return R?K():t}function K(){var e=10,n=Math.max(r.line.width,e),a=l.append("g").attr("data-index",o);a.append("path").attr("d",t.attr("d")).style({cursor:"move","stroke-width":n,"stroke-opacity":"0"});var i={"fill-opacity":"0"},s=Math.max(n/2,e);return a.append("circle").attr({"data-line-point":"start-point",cx:I?W(r.xanchor)+r.x0:W(r.x0),cy:N?Y(r.yanchor)-r.y0:Y(r.y0),r:s}).style(i).classed("cursor-grab",!0),a.append("circle").attr({"data-line-point":"end-point",cx:I?W(r.xanchor)+r.x1:W(r.x1),cy:N?Y(r.yanchor)-r.y1:Y(r.y1),r:s}).style(i).classed("cursor-grab",!0),a}function J(r){if(y(e))j=null;else if(R)j="path"===r.target.tagName?"move":"start-point"===r.target.attributes["data-line-point"].value?"resize-over-start-point":"resize-over-end-point";else{var n=$.element.getBoundingClientRect(),a=n.right-n.left,i=n.bottom-n.top,o=r.clientX-n.left,l=r.clientY-n.top,s=!F&&a>z&&i>D&&!r.shiftKey?d.getCursor(o/a,1-l/i):"move";p(t,s),j=s.split("-")[0]}}function ee(n){y(e)||(I&&(b=W(r.xanchor)),N&&(k=Y(r.yanchor)),"path"===r.type?P=r.path:(c=I?r.x0:W(r.x0),f=N?r.y0:Y(r.y0),v=I?r.x1:W(r.x1),m=N?r.y1:Y(r.y1)),c<v?(S=c,E="x0",M=v,L="x1"):(S=v,E="x1",M=c,L="x0"),!N&&f<m||N&&f>m?(T=f,O="y0",A=m,C="y1"):(T=m,O="y1",A=f,C="y0"),J(n),ie(l,r),le(t,r,e),$.moveFn="move"===j?ne:ae,$.altKey=n.altKey)}function te(){y(e)||(p(t),oe(l),x(t,e,r),n.call("_guiRelayout",e,s.getUpdateObj()))}function re(){y(e)||oe(l)}function ne(n,a){if("path"===r.type){var i=function(e){return e},o=i,s=i;I?B("xanchor",r.xanchor=G(b+n)):(o=function(e){return G(W(e)+n)},U&&"date"===U.type&&(o=g.encodeDate(o))),N?B("yanchor",r.yanchor=X(k+a)):(s=function(e){return X(Y(e)+a)},V&&"date"===V.type&&(s=g.encodeDate(s))),B("path",r.path=_(P,o,s))}else I?B("xanchor",r.xanchor=G(b+n)):(B("x0",r.x0=G(c+n)),B("x1",r.x1=G(v+n))),N?B("yanchor",r.yanchor=X(k+a)):(B("y0",r.y0=X(f+a)),B("y1",r.y1=X(m+a)));t.attr("d",w(e,r)),ie(l,r)}function ae(n,a){if(F){var i=function(e){return e},o=i,s=i;I?B("xanchor",r.xanchor=G(b+n)):(o=function(e){return G(W(e)+n)},U&&"date"===U.type&&(o=g.encodeDate(o))),N?B("yanchor",r.yanchor=X(k+a)):(s=function(e){return X(Y(e)+a)},V&&"date"===V.type&&(s=g.encodeDate(s))),B("path",r.path=_(P,o,s))}else if(R){if("resize-over-start-point"===j){var u=c+n,d=N?f-a:f+a;B("x0",r.x0=I?u:G(u)),B("y0",r.y0=N?d:X(d))}else if("resize-over-end-point"===j){var p=v+n,h=N?m-a:m+a;B("x1",r.x1=I?p:G(p)),B("y1",r.y1=N?h:X(h))}}else{var y=function(e){return-1!==j.indexOf(e)},x=y("n"),H=y("s"),q=y("w"),Z=y("e"),$=x?T+a:T,Q=H?A+a:A,K=q?S+n:S,J=Z?M+n:M;N&&(x&&($=T-a),H&&(Q=A-a)),(!N&&Q-$>D||N&&$-Q>D)&&(B(O,r[O]=N?$:X($)),B(C,r[C]=N?Q:X(Q))),J-K>z&&(B(E,r[E]=I?K:G(K)),B(L,r[L]=I?J:G(J)))}t.attr("d",w(e,r)),ie(l,r)}function ie(e,t){function r(){var r="path"!==t.type,n=e.selectAll(".visual-cue").data([0]),i=1;n.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":i}).classed("visual-cue",!0);var o=W(I?t.xanchor:a.midRange(r?[t.x0,t.x1]:g.extractPathCoords(t.path,h.paramIsX))),l=Y(N?t.yanchor:a.midRange(r?[t.y0,t.y1]:g.extractPathCoords(t.path,h.paramIsY)));if(o=g.roundPositionForSharpStrokeRendering(o,i),l=g.roundPositionForSharpStrokeRendering(l,i),I&&N){var s="M"+(o-1-i)+","+(l-1-i)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";n.attr("d",s)}else if(I){var c="M"+(o-1-i)+","+(l-9-i)+"v18 h2 v-18 Z";n.attr("d",c)}else{var u="M"+(o-9-i)+","+(l-1-i)+"h18 v2 h-18 Z";n.attr("d",u)}}(I||N)&&r()}function oe(e){e.selectAll(".visual-cue").remove()}function le(e,t,r){var n=t.xref,a=t.yref,o=i.getFromId(r,n),l=i.getFromId(r,a),s="";"paper"===n||o.autorange||(s+=n),"paper"===a||l.autorange||(s+=a),u.setClipUrl(e,s?"clip"+r._fullLayout._uid+s:null,r)}d.init($),Z.node().onmousemove=J}(e,z,s,t,r,j):!0===s.editable&&z.style("pointer-events",L||c.opacity(M)*S<=.5?"stroke":"all");z.node().addEventListener("click",(function(){return function(e,t){if(!m(e))return;var r=+t.node().getAttribute("data-index");if(r>=0){if(r===e._fullLayout._activeShapeIndex)return void k(e);e._fullLayout._activeShapeIndex=r,e._fullLayout._deactivateShape=k,v(e)}}(e,z)}))}}function x(e,t,r){var n=(r.xref+r.yref).replace(/paper/g,"").replace(/[xyz][1-9]* *domain/g,"");u.setClipUrl(e,n?"clip"+t._fullLayout._uid+n:null,t)}function w(e,t){var r,n,o,l,s,c,u,f,d=t.type,p=i.getRefType(t.xref),v=i.getRefType(t.yref),y=i.getFromId(e,t.xref),m=i.getFromId(e,t.yref),b=e._fullLayout._size;if(y?"domain"===p?n=function(e){return y._offset+y._length*e}:(r=g.shapePositionToRange(y),n=function(e){return y._offset+y.r2p(r(e,!0))}):n=function(e){return b.l+b.w*e},m?"domain"===v?l=function(e){return m._offset+m._length*(1-e)}:(o=g.shapePositionToRange(m),l=function(e){return m._offset+m.r2p(o(e,!0))}):l=function(e){return b.t+b.h*(1-e)},"path"===d)return y&&"date"===y.type&&(n=g.decodeDate(n)),m&&"date"===m.type&&(l=g.decodeDate(l)),function(e,t,r){var n=e.path,i=e.xsizemode,o=e.ysizemode,l=e.xanchor,s=e.yanchor;return n.replace(h.segmentRE,(function(e){var n=0,c=e.charAt(0),u=h.paramIsX[c],f=h.paramIsY[c],d=h.numParams[c],p=e.substr(1).replace(h.paramRE,(function(e){return u[n]?e="pixel"===i?t(l)+Number(e):t(e):f[n]&&(e="pixel"===o?r(s)-Number(e):r(e)),++n>d&&(e="X"),e}));return n>d&&(p=p.replace(/[\s,]*X.*/,""),a.log("Ignoring extra params in segment "+e)),c+p}))}(t,n,l);if("pixel"===t.xsizemode){var x=n(t.xanchor);s=x+t.x0,c=x+t.x1}else s=n(t.x0),c=n(t.x1);if("pixel"===t.ysizemode){var w=l(t.yanchor);u=w-t.y0,f=w-t.y1}else u=l(t.y0),f=l(t.y1);if("line"===d)return"M"+s+","+u+"L"+c+","+f;if("rect"===d)return"M"+s+","+u+"H"+c+"V"+f+"H"+s+"Z";var _=(s+c)/2,k=(u+f)/2,T=Math.abs(_-s),A=Math.abs(k-u),S="A"+T+","+A,M=_+T+","+k;return"M"+M+S+" 0 1,1 "+(_+","+(k-A))+S+" 0 0,1 "+M+"Z"}function _(e,t,r){return e.replace(h.segmentRE,(function(e){var n=0,a=e.charAt(0),i=h.paramIsX[a],o=h.paramIsY[a],l=h.numParams[a];return a+e.substr(1).replace(h.paramRE,(function(e){return n>=l||(i[n]?e=t(e):o[n]&&(e=r(e)),n++),e}))}))}function k(e){m(e)&&(e._fullLayout._activeShapeIndex>=0&&(s(e),delete e._fullLayout._activeShapeIndex,v(e)))}e.exports={draw:v,drawOne:b,eraseActiveShape:function(e){if(!m(e))return;s(e);var t=e._fullLayout._activeShapeIndex,r=(e.layout||{}).shapes||[];if(t<r.length){for(var a=[],i=0;i<r.length;i++)i!==t&&a.push(r[i]);delete e._fullLayout._activeShapeIndex,n.call("_guiRelayout",e,{shapes:a})}}}},function(e,t,r){"use strict";var n=r(46),a=r(99).drawMode,i=r(5),o=r(176),l=o.i000,s=o.i090,c=o.i180,u=o.i270,f=r(96).clearOutlineControllers,d=r(123),p=d.pointsShapeRectangle,h=d.pointsShapeEllipse,g=d.writePaths,v=r(273);e.exports=function e(t,r,o,d){d||(d=0);var y=o.gd;function m(){e(t,r,o,d++),h(t[0])&&b({redrawing:!0})}function b(e){o.isActiveShape=!1;var t=v(r,o);Object.keys(t).length&&i.call((e||{}).redrawing?"relayout":"_guiRelayout",y,t)}var x,w,_,k,T,A=o.isActiveShape,S=y._fullLayout._zoomlayer,M=o.dragmode;(a(M)?y._fullLayout._drawing=!0:y._fullLayout._activeShapeIndex>=0&&f(y),r.attr("d",g(t)),A&&!d)&&(T=function(e,t){for(var r=0;r<t.length;r++){var n=t[r];e[r]=[];for(var a=0;a<n.length;a++){e[r][a]=[];for(var i=0;i<n[a].length;i++)e[r][a][i]=n[a][i]}}return e}([],t),function(e){x=[];for(var r=0;r<t.length;r++){var a=t[r],i=!p(a)&&h(a);x[r]=[];for(var o=0;o<a.length;o++)if("Z"!==a[o][0]&&(!i||o===l||o===s||o===c||o===u)){var f=a[o][1],d=a[o][2],g=e.append("circle").classed("cursor-grab",!0).attr("data-i",r).attr("data-j",o).attr("cx",f).attr("cy",d).attr("r",4).style({"mix-blend-mode":"luminosity",fill:"black",stroke:"white","stroke-width":1});x[r][o]={element:g.node(),gd:y,prepFn:O,doneFn:E,clickFn:L},n.init(x[r][o])}}}(S.append("g").attr("class","outline-controllers")),function(){if(w=[],!t.length)return;var e=0;w[e]={element:r[0][0],gd:y,prepFn:j,doneFn:z},n.init(w[e])}());function O(e){_=+e.srcElement.getAttribute("data-i"),k=+e.srcElement.getAttribute("data-j"),x[_][k].moveFn=C}function C(e,r){if(t.length){var n=T[_][k][1],a=T[_][k][2],i=t[_],o=i.length;if(p(i)){for(var l=0;l<o;l++)if(l!==k){var s=i[l];s[1]===i[k][1]&&(s[1]=n+e),s[2]===i[k][2]&&(s[2]=a+r)}if(i[k][1]=n+e,i[k][2]=a+r,!p(i))for(var c=0;c<o;c++)for(var u=0;u<i[c].length;u++)i[c][u]=T[_][c][u]}else i[k][1]=n+e,i[k][2]=a+r;m()}}function E(){b()}function L(e,r){if(2===e){_=+r.srcElement.getAttribute("data-i"),k=+r.srcElement.getAttribute("data-j");var n=t[_];p(n)||h(n)||function(){if(t.length&&t[_]&&t[_].length){for(var e=[],r=0;r<t[_].length;r++)r!==k&&e.push(t[_][r]);e.length>1&&(2!==e.length||"Z"!==e[1][0])&&(0===k&&(e[0][0]="M"),t[_]=e,m(),b())}}()}}function P(e,r){!function(e,r){if(t.length)for(var n=0;n<t.length;n++)for(var a=0;a<t[n].length;a++)for(var i=0;i+2<t[n][a].length;i+=2)t[n][a][i+1]=T[n][a][i+1]+e,t[n][a][i+2]=T[n][a][i+2]+r}(e,r),m()}function j(e){(_=+e.srcElement.getAttribute("data-i"))||(_=0),w[_].moveFn=P}function z(){b()}}},function(e,t,r){"use strict";var n=r(99),a=n.drawMode,i=n.openMode,o=r(176),l=o.i000,s=o.i090,c=o.i180,u=o.i270,f=o.cos45,d=o.sin45,p=r(177),h=p.p2r,g=p.r2p,v=r(96).clearSelect,y=r(123),m=y.readPaths,b=y.writePaths,x=y.ellipseOver;e.exports=function(e,t){if(e.length){var r=e[0][0];if(r){var n=r.getAttribute("d"),o=t.gd,p=o._fullLayout.newshape,y=t.plotinfo,w=y.xaxis,_=y.yaxis,k=!!y.domain||!y.xaxis,T=!!y.domain||!y.yaxis,A=t.isActiveShape,S=t.dragmode,M=(o.layout||{}).shapes||[];if(!a(S)&&void 0!==A){var O=o._fullLayout._activeShapeIndex;if(O<M.length)switch(o._fullLayout.shapes[O].type){case"rect":S="drawrect";break;case"circle":S="drawcircle";break;case"line":S="drawline";break;case"path":var C=M[O].path||"";S="Z"===C[C.length-1]?"drawclosedpath":"drawopenpath"}}var E,L=i(S),P=m(n,o,y,A),j={editable:!0,xref:k?"paper":w._id,yref:T?"paper":_._id,layer:p.layer,opacity:p.opacity,line:{color:p.line.color,width:p.line.width,dash:p.line.dash}};if(L||(j.fillcolor=p.fillcolor,j.fillrule=p.fillrule),1===P.length&&(E=P[0]),E&&"drawrect"===S)j.type="rect",j.x0=E[0][1],j.y0=E[0][2],j.x1=E[2][1],j.y1=E[2][2];else if(E&&"drawline"===S)j.type="line",j.x0=E[0][1],j.y0=E[0][2],j.x1=E[1][1],j.y1=E[1][2];else if(E&&"drawcircle"===S){j.type="circle";var z=E[l][1],D=E[s][1],I=E[c][1],N=E[u][1],R=E[l][2],F=E[s][2],B=E[c][2],U=E[u][2],H=y.xaxis&&("date"===y.xaxis.type||"log"===y.xaxis.type),V=y.yaxis&&("date"===y.yaxis.type||"log"===y.yaxis.type);H&&(z=g(y.xaxis,z),D=g(y.xaxis,D),I=g(y.xaxis,I),N=g(y.xaxis,N)),V&&(R=g(y.yaxis,R),F=g(y.yaxis,F),B=g(y.yaxis,B),U=g(y.yaxis,U));var q=(D+N)/2,W=(R+B)/2,Y=x({x0:q,y0:W,x1:q+(N-D+I-z)/2*f,y1:W+(U-F+B-R)/2*d});H&&(Y.x0=h(y.xaxis,Y.x0),Y.x1=h(y.xaxis,Y.x1)),V&&(Y.y0=h(y.yaxis,Y.y0),Y.y1=h(y.yaxis,Y.y1)),j.x0=Y.x0,j.y0=Y.y0,j.x1=Y.x1,j.y1=Y.y1}else j.type="path",w&&_&&function(e,t,r){var n="date"===t.type,a="date"===r.type;if(!n&&!a)return e;for(var i=0;i<e.length;i++)for(var o=0;o<e[i].length;o++)for(var l=0;l+2<e[i][o].length;l+=2)n&&(e[i][o][l+1]=e[i][o][l+1].replace(" ","_")),a&&(e[i][o][l+2]=e[i][o][l+2].replace(" ","_"))}(P,w,_),j.path=b(P),E=null;v(o);for(var G=t.editHelpers,X=(G||{}).modifyItem,Z=[],$=0;$<M.length;$++){var Q=o._fullLayout.shapes[$];if(Z[$]=Q._input,void 0!==A&&$===o._fullLayout._activeShapeIndex){var K=j;switch(Q.type){case"line":case"rect":case"circle":X("x0",K.x0),X("x1",K.x1),X("y0",K.y0),X("y1",K.y1);break;case"path":X("path",K.path)}}}return void 0===A?(Z.push(j),Z):G?G.getUpdateObj():{}}}}},function(e,t,r){"use strict";var n=r(33).FROM_BL;e.exports=function(e,t,r){void 0===r&&(r=n[e.constraintoward||"center"]);var a=[e.r2l(e.range[0]),e.r2l(e.range[1])],i=a[0]+(a[1]-a[0])*r;e.range=e._input.range=[e.l2r(i+(a[0]-i)*t),e.l2r(i+(a[1]-i)*t)],e.setScale()}},function(e,t,r){"use strict";var n=r(161).dot,a=r(19).BADNUM,i=e.exports={};i.tester=function(e){var t,r=e.slice(),n=r[0][0],i=n,o=r[0][1],l=o;for(r.push(r[0]),t=1;t<r.length;t++)n=Math.min(n,r[t][0]),i=Math.max(i,r[t][0]),o=Math.min(o,r[t][1]),l=Math.max(l,r[t][1]);var s,c=!1;5===r.length&&(r[0][0]===r[1][0]?r[2][0]===r[3][0]&&r[0][1]===r[3][1]&&r[1][1]===r[2][1]&&(c=!0,s=function(e){return e[0]===r[0][0]}):r[0][1]===r[1][1]&&r[2][1]===r[3][1]&&r[0][0]===r[3][0]&&r[1][0]===r[2][0]&&(c=!0,s=function(e){return e[1]===r[0][1]}));var u=!0,f=r[0];for(t=1;t<r.length;t++)if(f[0]!==r[t][0]||f[1]!==r[t][1]){u=!1;break}return{xmin:n,xmax:i,ymin:o,ymax:l,pts:r,contains:c?function(e,t){var r=e[0],c=e[1];return!(r===a||r<n||r>i||c===a||c<o||c>l)&&(!t||!s(e))}:function(e,t){var s=e[0],c=e[1];if(s===a||s<n||s>i||c===a||c<o||c>l)return!1;var u,f,d,p,h,g=r.length,v=r[0][0],y=r[0][1],m=0;for(u=1;u<g;u++)if(f=v,d=y,v=r[u][0],y=r[u][1],!(s<(p=Math.min(f,v))||s>Math.max(f,v)||c>Math.max(d,y)))if(c<Math.min(d,y))s!==p&&m++;else{if(c===(h=v===f?c:d+(s-f)*(y-d)/(v-f)))return 1!==u||!t;c<=h&&s!==p&&m++}return m%2===1},isRect:c,degenerate:u}},i.isSegmentBent=function(e,t,r,a){var i,o,l,s=e[t],c=[e[r][0]-s[0],e[r][1]-s[1]],u=n(c,c),f=Math.sqrt(u),d=[-c[1]/f,c[0]/f];for(i=t+1;i<r;i++)if(o=[e[i][0]-s[0],e[i][1]-s[1]],(l=n(o,c))<0||l>u||Math.abs(n(o,d))>a)return!0;return!1},i.filter=function(e,t){var r=[e[0]],n=0,a=0;function o(o){e.push(o);var l=r.length,s=n;r.splice(a+1);for(var c=s+1;c<e.length;c++)(c===e.length-1||i.isSegmentBent(e,s,c+1,t))&&(r.push(e[c]),r.length<l-2&&(n=c,a=r.length-1),s=c)}e.length>1&&o(e.pop());return{addPt:o,raw:e,filtered:r}}},function(e,t,r){"use strict";var n=r(9),a=r(241),i=r(20),o=r(0),l=r(78),s=r(180),c=r(181),u=r(152).version,f={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png",description:"Sets the format of exported image."},width:{valType:"number",min:1,description:["Sets the exported image width.","Defaults to the value found in `layout.width`","If set to *null*, the exported image width will match the current graph width."].join(" ")},height:{valType:"number",min:1,description:["Sets the exported image height.","Defaults to the value found in `layout.height`","If set to *null*, the exported image height will match the current graph height."].join(" ")},scale:{valType:"number",min:0,dflt:1,description:["Sets a scaling for the generated image.","If set, all features of a graphs (e.g. text, line width)","are scaled, unlike simply setting","a bigger *width* and *height*."].join(" ")},setBackground:{valType:"any",dflt:!1,description:["Sets the image background mode.","By default, the image background is determined by `layout.paper_bgcolor`,","the *transparent* mode.","One might consider setting `setBackground` to *opaque*","when exporting a *jpeg* image as JPEGs do not support opacity."].join(" ")},imageDataOnly:{valType:"boolean",dflt:!1,description:["Determines whether or not the return value is prefixed by","the image format's corresponding 'data:image;' spec."].join(" ")}};e.exports=function(e,t){var r,d,p,h;function g(e){return!(e in t)||o.validate(t[e],f[e])}if(t=t||{},o.isPlainObject(e)?(r=e.data||[],d=e.layout||{},p=e.config||{},h={}):(e=o.getGraphDiv(e),r=o.extendDeep([],e.data),d=o.extendDeep({},e.layout),p=e._context,h=e._fullLayout||{}),!g("width")&&null!==t.width||!g("height")&&null!==t.height)throw new Error("Height and width should be pixel values.");if(!g("format"))throw new Error("Export format is not "+o.join2(f.format.values,", "," or ")+".");var v={};function y(e,r){return o.coerce(t,v,f,e,r)}var m=y("format"),b=y("width"),x=y("height"),w=y("scale"),_=y("setBackground"),k=y("imageDataOnly"),T=document.createElement("div");T.style.position="absolute",T.style.left="-5000px",document.body.appendChild(T);var A=o.extendFlat({},d);b?A.width=b:null===t.width&&n(h.width)&&(A.width=h.width),x?A.height=x:null===t.height&&n(h.height)&&(A.height=h.height);var S=o.extendFlat({},p,{_exportedPlot:!0,staticPlot:!0,setBackground:_}),M=l.getRedrawFunc(T);function O(){return new Promise((function(e){setTimeout(e,l.getDelay(T._fullLayout))}))}function C(){return new Promise((function(e,t){var r=s(T,m,w),n=T._fullLayout.width,f=T._fullLayout.height;function d(){a.purge(T),document.body.removeChild(T)}if("full-json"===m){var p=i.graphJson(T,!1,"keepdata","object",!0,!0);return p.version=u,p=JSON.stringify(p),d(),e(k?p:l.encodeJSON(p))}if(d(),"svg"===m)return e(k?r:l.encodeSVG(r));var h=document.createElement("canvas");h.id=o.randstr(),c({format:m,width:n,height:f,scale:w,canvas:h,svg:r,promise:!0}).then(e).catch(t)}))}return new Promise((function(e,t){a.newPlot(T,r,A,S).then(M).then(O).then(C).then((function(t){e(function(e){return k?e.replace(l.IMAGE_URL_PREFIX,""):e}(t))})).catch((function(e){t(e)}))}))}},function(e,t,r){"use strict";var n=r(0),a=r(276),i=r(557),o=r(78);e.exports=function(e,t){var r;return n.isPlainObject(e)||(r=n.getGraphDiv(e)),(t=t||{}).format=t.format||"png",t.width=t.width||null,t.height=t.height||null,t.imageDataOnly=!0,new Promise((function(l,s){r&&r._snapshotInProgress&&s(new Error("Snapshotting already in progress.")),n.isIE()&&"svg"!==t.format&&s(new Error(o.MSG_IE_BAD_FORMAT)),r&&(r._snapshotInProgress=!0);var c=a(e,t),u=t.filename||e.fn||"newplot";u+="."+t.format.replace("-","."),c.then((function(e){return r&&(r._snapshotInProgress=!1),i(e,u,t.format)})).then((function(e){l(e)})).catch((function(e){r&&(r._snapshotInProgress=!1),s(e)}))}))}},function(e,t,r){"use strict";var n=r(8),a=r(39).hasColorscale,i=r(97),o=r(30);e.exports=function(e,t,r,l,s,c){var u=o.isBubble(e),f=(e.line||{}).color;(c=c||{},f&&(r=f),s("marker.symbol"),s("marker.opacity",u?.7:1),s("marker.size"),s("marker.color",r),a(e,"marker")&&i(e,t,l,s,{prefix:"marker.",cLetter:"c"}),c.noSelect||(s("selected.marker.color"),s("unselected.marker.color"),s("selected.marker.size"),s("unselected.marker.size")),c.noLine||(s("marker.line.color",f&&!Array.isArray(f)&&t.marker.color!==f?f:u?n.background:n.defaultLine),a(e,"marker.line")&&i(e,t,l,s,{prefix:"marker.line.",cLetter:"c"}),s("marker.line.width",u?1:0)),u&&(s("marker.sizeref"),s("marker.sizemin"),s("marker.sizemode")),c.gradient)&&("none"!==s("marker.gradient.type")&&s("marker.gradient.color"))}},function(e,t,r){"use strict";var n=r(0).isArrayOrTypedArray,a=r(39).hasColorscale,i=r(97);e.exports=function(e,t,r,o,l,s){var c=(e.marker||{}).color;(l("line.color",r),a(e,"line"))?i(e,t,o,l,{prefix:"line.",cLetter:"c"}):l("line.color",!n(c)&&c||r);l("line.width"),(s||{}).noDash||l("line.dash")}},function(e,t,r){"use strict";var n=r(0);e.exports=function(e,t,r,a,i){i=i||{},a("textposition"),n.coerceFont(a,"textfont",r.font),i.noSelect||(a("selected.textfont.color"),a("unselected.textfont.color"))}},function(e,t,r){"use strict";var n=r(8),a=r(0).isArrayOrTypedArray;e.exports=function(e,t,r,i){var o=!1;if(t.marker){var l=t.marker.color,s=(t.marker.line||{}).color;l&&!a(l)?o=l:s&&!a(s)&&(o=s)}i("fillcolor",n.addOpacity((t.line||{}).color||o||r,.5))}},function(e,t,r){"use strict";e.exports=function(e){for(var t=0;t<e.length;t++){var r=e[t];if("scatter"===r.type){var n=r.fill;if("none"!==n&&"toself"!==n&&(r.opacity=void 0,"tonexty"===n||"tonextx"===n))for(var a=t-1;a>=0;a--){var i=e[a];if("scatter"===i.type&&i.xaxis===r.xaxis&&i.yaxis===r.yaxis){i.opacity=void 0;break}}}}}},function(e,t,r){"use strict";var n=r(39).hasColorscale,a=r(167),i=r(30);e.exports=function(e,t){i.hasLines(t)&&n(t,"line")&&a(e,t,{vals:t.line.color,containerStr:"line",cLetter:"c"}),i.hasMarkers(t)&&(n(t,"marker")&&a(e,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),n(t,"marker.line")&&a(e,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}},function(e,t,r){"use strict";var n=r(0);e.exports=function(e,t){for(var r=0;r<e.length;r++)e[r].i=r;n.mergeArray(t.text,e,"tx"),n.mergeArray(t.texttemplate,e,"txt"),n.mergeArray(t.hovertext,e,"htx"),n.mergeArray(t.customdata,e,"data"),n.mergeArray(t.textposition,e,"tp"),t.textfont&&(n.mergeArrayCastPositive(t.textfont.size,e,"ts"),n.mergeArray(t.textfont.color,e,"tc"),n.mergeArray(t.textfont.family,e,"tf"));var a=t.marker;if(a){n.mergeArrayCastPositive(a.size,e,"ms"),n.mergeArrayCastPositive(a.opacity,e,"mo"),n.mergeArray(a.symbol,e,"mx"),n.mergeArray(a.color,e,"mc");var i=a.line;a.line&&(n.mergeArray(i.color,e,"mlc"),n.mergeArrayCastPositive(i.width,e,"mlw"));var o=a.gradient;o&&"none"!==o.type&&(n.mergeArray(o.type,e,"mgt"),n.mergeArray(o.color,e,"mgc"))}}},function(e,t,r){"use strict";var n=r(0);e.exports=function(e,t){n.isArrayOrTypedArray(t.selectedpoints)&&n.tagSelected(e,t)}},function(e,t,r){"use strict";var n={tonextx:1,tonexty:1,tonext:1};e.exports=function(e,t,r){var a,i,o,l,s,c={},u=!1,f=-1,d=0,p=-1;for(i=0;i<r.length;i++)(o=(a=r[i][0].trace).stackgroup||"")?o in c?s=c[o]:(s=c[o]=d,d++):a.fill in n&&p>=0?s=p:(s=p=d,d++),s<f&&(u=!0),a._groupIndex=f=s;var h=r.slice();u&&h.sort((function(e,t){var r=e[0].trace,n=t[0].trace;return r._groupIndex-n._groupIndex||r.index-n.index}));var g={};for(i=0;i<h.length;i++)o=(a=h[i][0].trace).stackgroup||"",!0===a.visible?(a._nexttrace=null,a.fill in n&&(l=g[o],a._prevtrace=l||null,l&&(l._nexttrace=a)),a._ownfill=a.fill&&("tozero"===a.fill.substr(0,6)||"toself"===a.fill||"to"===a.fill.substr(0,2)&&!a._prevtrace),g[o]=a):a._prevtrace=a._nexttrace=a._ownfill=null;return h}},function(e,t,r){"use strict";var n=r(14);e.exports=function(e,t,r){var a={},i={_fullLayout:r},o=n.getFromTrace(i,t,"x"),l=n.getFromTrace(i,t,"y");return a.xLabel=n.tickText(o,o.c2l(e.x),!0).text,a.yLabel=n.tickText(l,l.c2l(e.y),!0).text,a}},function(e,t,r){"use strict";var n=r(7),a=r(10),i=r(5);function o(e,t,r){a.pointStyle(e.selectAll("path.point"),t,r)}function l(e,t,r){a.textPointStyle(e.selectAll("text"),t,r)}e.exports={style:function(e){var t=n.select(e).selectAll("g.trace.scatter");t.style("opacity",(function(e){return e[0].trace.opacity})),t.selectAll("g.points").each((function(t){o(n.select(this),t.trace||t[0].trace,e)})),t.selectAll("g.text").each((function(t){l(n.select(this),t.trace||t[0].trace,e)})),t.selectAll("g.trace path.js-line").call(a.lineGroupStyle),t.selectAll("g.trace path.js-fill").call(a.fillGroupStyle,e),i.getComponentMethod("errorbars","style")(t)},stylePoints:o,styleText:l,styleOnSelect:function(e,t,r){var n=t[0].trace;n.selectedpoints?(a.selectedPointStyle(r.selectAll("path.point"),n),a.selectedTextStyle(r.selectAll("text"),n)):(o(r,n,e),l(r,n,e))}}},function(e,t,r){"use strict";var n=r(8),a=r(30);e.exports=function(e,t){var r,i;if("lines"===e.mode)return(r=e.line.color)&&n.opacity(r)?r:e.fillcolor;if("none"===e.mode)return e.fill?e.fillcolor:"";var o=t.mcc||(e.marker||{}).color,l=t.mlcc||((e.marker||{}).line||{}).color;return(i=o&&n.opacity(o)?o:l&&n.opacity(l)&&(t.mlw||((e.marker||{}).line||{}).width)?l:"")?n.opacity(i)<.3?n.addOpacity(i,.3):i:(r=(e.line||{}).color)&&n.opacity(r)&&a.hasLines(e)&&e.line.width?r:e.fillcolor}},function(e,t,r){"use strict";var n=r(9),a=r(5),i=r(0),o=r(50),l=r(49),s=r(250),c=r(252),u=r(253),f=r(255),d=r(571),p=r(572),h=r(168),g=r(29).WEEKDAY_PATTERN,v=r(29).HOUR_PATTERN;function y(e,t,r){function a(r,n){return i.coerce(e,t,l.rangebreaks,r,n)}if(a("enabled")){var o=a("bounds");if(o&&o.length>=2){var s,c,u="";if(2===o.length)for(s=0;s<2;s++)if(c=b(o[s])){u=g;break}var f=a("pattern",u);if(f===g)for(s=0;s<2;s++)(c=b(o[s]))&&(t.bounds[s]=o[s]=c-1);if(f)for(s=0;s<2;s++)switch(c=o[s],f){case g:if(!n(c))return void(t.enabled=!1);if((c=+c)!==Math.floor(c)||c<0||c>=7)return void(t.enabled=!1);t.bounds[s]=o[s]=c;break;case v:if(!n(c))return void(t.enabled=!1);if((c=+c)<0||c>24)return void(t.enabled=!1);t.bounds[s]=o[s]=c}if(!1===r.autorange){var d=r.range;if(d[0]<d[1]){if(o[0]<d[0]&&o[1]>d[1])return void(t.enabled=!1)}else if(o[0]>d[0]&&o[1]<d[1])return void(t.enabled=!1)}}else{var p=a("values");if(!p||!p.length)return void(t.enabled=!1);a("dvalue")}}}e.exports=function(e,t,r,n,v){var m,b=n.letter,x=n.font||{},w=n.splomStash||{},_=r("visible",!n.visibleDflt),k=t._template||{},T=t.type||k.type||"-";"date"===T&&(a.getComponentMethod("calendars","handleDefaults")(e,t,"calendar",n.calendar),n.noTicklabelmode||(m=r("ticklabelmode")));var A="";n.noTicklabelposition&&"multicategory"!==T||(A=i.coerce(e,t,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:"period"===m?["outside","inside"]:"x"===b?["outside","inside","outside left","inside left","outside right","inside right"]:["outside","inside","outside top","inside top","outside bottom","inside bottom"]}},"ticklabelposition")),n.noTicklabeloverflow||r("ticklabeloverflow",-1!==A.indexOf("inside")?"hide past domain":"category"===T||"multicategory"===T?"allow":"hide past div"),h(t,v);var S=!t.isValidRange(e.range);S&&n.reverseDflt&&(S="reversed"),!r("autorange",S)||"linear"!==T&&"-"!==T||r("rangemode"),r("range"),t.cleanRange(),d(e,t,r,n),"category"===T||n.noHover||r("hoverformat");var M=r("color"),O=M!==l.color.dflt?M:x.color,C=w.label||v._dfltTitle[b];if(f(e,t,r,T,n),!_)return t;r("title.text",C),i.coerceFont(r,"title.font",{family:x.family,size:i.bigFont(x.size),color:O}),s(e,t,r,T),u(e,t,r,T,n),c(e,t,r,n),p(e,t,r,{dfltColor:M,bgColor:n.bgColor,showGrid:n.showGrid,attributes:l}),(t.showline||t.ticks)&&r("mirror"),n.automargin&&r("automargin");var E,L="multicategory"===T;n.noTickson||"category"!==T&&!L||!t.ticks&&!t.showgrid||(L&&(E="boundaries"),"boundaries"===r("tickson",E)&&delete t.ticklabelposition);L&&(r("showdividers")&&(r("dividercolor"),r("dividerwidth")));if("date"===T)if(o(e,t,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:y}),t.rangebreaks.length){for(var P=0;P<t.rangebreaks.length;P++)if(t.rangebreaks[P].pattern===g){t._hasDayOfWeekBreaks=!0;break}if(h(t,v),v._has("scattergl")||v._has("splom"))for(var j=0;j<n.data.length;j++){var z=n.data[j];"scattergl"!==z.type&&"splom"!==z.type||(z.visible=!1,i.warn(z.type+" traces do not work on axes with rangebreaks. Setting trace "+z.index+" to `visible: false`."))}}else delete t.rangebreaks;return t};var m={sun:1,mon:2,tue:3,wed:4,thu:5,fri:6,sat:7};function b(e){if("string"===typeof e)return m[e.substr(0,3).toLowerCase()]}},function(e,t,r){"use strict";var n=r(9),a=r(0);e.exports=function(e,t,r,i){var o,l,s,c,u=i.counterAxes||[],f=i.overlayableAxes||[],d=i.letter,p=i.grid;p&&(l=p._domains[d][p._axisMap[t._id]],o=p._anchors[t._id],l&&(s=p[d+"side"].split(" ")[0],c=p.domain[d]["right"===s||"top"===s?1:0])),l=l||[0,1],o=o||(n(e.position)?"free":u[0]||"free"),s=s||("x"===d?"bottom":"left"),c=c||0,"free"===a.coerce(e,t,{anchor:{valType:"enumerated",values:["free"].concat(u),dflt:o}},"anchor")&&r("position",c),a.coerce(e,t,{side:{valType:"enumerated",values:"x"===d?["bottom","top"]:["left","right"],dflt:s}},"side");var h=!1;if(f.length&&(h=a.coerce(e,t,{overlaying:{valType:"enumerated",values:[!1].concat(f),dflt:!1}},"overlaying")),!h){var g=r("domain",l);g[0]>g[1]-1/4096&&(t.domain=l),a.noneOrAll(e.domain,t.domain,l)}return r("layer"),t}},function(e,t,r){"use strict";e.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0,noRotate:!0},{path:"M2,2V-2H-2V2Z",backoff:0,noRotate:!0}]},function(e,t,r){"use strict";var n=r(0),a=r(8);e.exports=function(e,t,r,i){i("opacity");var o=i("bgcolor"),l=i("bordercolor"),s=a.opacity(l);i("borderpad");var c=i("borderwidth"),u=i("showarrow");if(i("text",u?" ":r._dfltTitle.annotation),i("textangle"),n.coerceFont(i,"font",r.font),i("width"),i("align"),i("height")&&i("valign"),u){var f,d,p=i("arrowside");-1!==p.indexOf("end")&&(f=i("arrowhead"),d=i("arrowsize")),-1!==p.indexOf("start")&&(i("startarrowhead",f),i("startarrowsize",d)),i("arrowcolor",s?t.bordercolor:a.defaultLine),i("arrowwidth",2*(s&&c||1)),i("standoff"),i("startstandoff")}var h=i("hovertext"),g=r.hoverlabel||{};if(h){var v=i("hoverlabel.bgcolor",g.bgcolor||(a.opacity(o)?a.rgb(o):a.defaultLine)),y=i("hoverlabel.bordercolor",g.bordercolor||a.contrast(v));n.coerceFont(i,"hoverlabel.font",{family:g.font.family,size:g.font.size,color:g.font.color||y})}i("captureevents",!!h)}},function(e,t,r){"use strict";var n=r(128),a=r(79).line,i=r(66).dash,o=r(22).extendFlat,l=r(17).templatedArray,s=r(185);e.exports=l("shape",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw",description:["Determines whether or not this shape is visible."].join(" ")},type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw",description:["Specifies the shape type to be drawn.","If *line*, a line is drawn from (`x0`,`y0`) to (`x1`,`y1`)","with respect to the axes' sizing mode.","If *circle*, a circle is drawn from","((`x0`+`x1`)/2, (`y0`+`y1`)/2))","with radius","(|(`x0`+`x1`)/2 - `x0`|, |(`y0`+`y1`)/2 -`y0`)|)","with respect to the axes' sizing mode.","If *rect*, a rectangle is drawn linking","(`x0`,`y0`), (`x1`,`y0`), (`x1`,`y1`), (`x0`,`y1`), (`x0`,`y0`)","with respect to the axes' sizing mode.","If *path*, draw a custom SVG path using `path`.","with respect to the axes' sizing mode."].join(" ")},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw",description:"Specifies whether shapes are drawn below or above traces."},xref:o({},n.xref,{description:["Sets the shape's x coordinate axis.",s.axisRefDescription("x","left","right"),"If the axis `type` is *log*, then you must take the","log of your desired range.","If the axis `type` is *date*, then you must convert","the date to unix time in milliseconds."].join(" ")}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw",description:["Sets the shapes's sizing mode along the x axis.","If set to *scaled*, `x0`, `x1` and x coordinates within `path` refer to","data values on the x axis or a fraction of the plot area's width","(`xref` set to *paper*).","If set to *pixel*, `xanchor` specifies the x position in terms","of data or plot fraction but `x0`, `x1` and x coordinates within `path`","are pixels relative to `xanchor`. This way, the shape can have","a fixed width while maintaining a position relative to data or","plot fraction."].join(" ")},xanchor:{valType:"any",editType:"calc+arraydraw",description:["Only relevant in conjunction with `xsizemode` set to *pixel*.","Specifies the anchor point on the x axis to which `x0`, `x1`","and x coordinates within `path` are relative to.","E.g. useful to attach a pixel sized shape to a certain data value.","No effect when `xsizemode` not set to *pixel*."].join(" ")},x0:{valType:"any",editType:"calc+arraydraw",description:["Sets the shape's starting x position.","See `type` and `xsizemode` for more info."].join(" ")},x1:{valType:"any",editType:"calc+arraydraw",description:["Sets the shape's end x position.","See `type` and `xsizemode` for more info."].join(" ")},yref:o({},n.yref,{description:["Sets the annotation's y coordinate axis.",s.axisRefDescription("y","bottom","top")].join(" ")}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw",description:["Sets the shapes's sizing mode along the y axis.","If set to *scaled*, `y0`, `y1` and y coordinates within `path` refer to","data values on the y axis or a fraction of the plot area's height","(`yref` set to *paper*).","If set to *pixel*, `yanchor` specifies the y position in terms","of data or plot fraction but `y0`, `y1` and y coordinates within `path`","are pixels relative to `yanchor`. This way, the shape can have","a fixed height while maintaining a position relative to data or","plot fraction."].join(" ")},yanchor:{valType:"any",editType:"calc+arraydraw",description:["Only relevant in conjunction with `ysizemode` set to *pixel*.","Specifies the anchor point on the y axis to which `y0`, `y1`","and y coordinates within `path` are relative to.","E.g. useful to attach a pixel sized shape to a certain data value.","No effect when `ysizemode` not set to *pixel*."].join(" ")},y0:{valType:"any",editType:"calc+arraydraw",description:["Sets the shape's starting y position.","See `type` and `ysizemode` for more info."].join(" ")},y1:{valType:"any",editType:"calc+arraydraw",description:["Sets the shape's end y position.","See `type` and `ysizemode` for more info."].join(" ")},path:{valType:"string",editType:"calc+arraydraw",description:["For `type` *path* - a valid SVG path with the pixel values","replaced by data values in `xsizemode`/`ysizemode` being *scaled*","and taken unmodified as pixels relative to `xanchor` and `yanchor`","in case of *pixel* size mode.","There are a few restrictions / quirks","only absolute instructions, not relative. So the allowed segments","are: M, L, H, V, Q, C, T, S, and Z","arcs (A) are not allowed because radius rx and ry are relative.","In the future we could consider supporting relative commands,","but we would have to decide on how to handle date and log axes.","Note that even as is, Q and C Bezier paths that are smooth on","linear axes may not be smooth on log, and vice versa.",'no chained "polybezier" commands - specify the segment type for',"each one.","On category axes, values are numbers scaled to the serial numbers","of categories because using the categories themselves there would","be no way to describe fractional positions","On data axes: because space and T are both normal components of path","strings, we can't use either to separate date from time parts.","Therefore we'll use underscore for this purpose:","2015-02-21_13:45:56.789"].join(" ")},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw",description:"Sets the opacity of the shape."},line:{color:o({},a.color,{editType:"arraydraw"}),width:o({},a.width,{editType:"calc+arraydraw"}),dash:o({},i,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw",description:["Sets the color filling the shape's interior. Only applies to closed shapes."].join(" ")},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw",description:["Determines which regions of complex paths constitute the interior.","For more info please visit https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/fill-rule"].join(" ")},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw",description:["Determines whether the shape could be activated for edit or not.","Has no effect when the older editable shapes mode is enabled via","`config.editable` or `config.edits.shapePosition`."].join(" ")},editType:"arraydraw"})},function(e,t,r){"use strict";var n=r(29),a=r(17).templatedArray,i=r(185);e.exports=a("image",{visible:{valType:"boolean",dflt:!0,editType:"arraydraw",description:["Determines whether or not this image is visible."].join(" ")},source:{valType:"string",editType:"arraydraw",description:["Specifies the URL of the image to be used.","The URL must be accessible from the domain where the","plot code is run, and can be either relative or absolute."].join(" ")},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw",description:["Specifies whether images are drawn below or above traces.","When `xref` and `yref` are both set to `paper`,","image is drawn below the entire plot area."].join(" ")},sizex:{valType:"number",dflt:0,editType:"arraydraw",description:["Sets the image container size horizontally.","The image will be sized based on the `position` value.","When `xref` is set to `paper`, units are sized relative","to the plot width.","When `xref` ends with ` domain`, units are sized relative","to the axis width."].join(" ")},sizey:{valType:"number",dflt:0,editType:"arraydraw",description:["Sets the image container size vertically.","The image will be sized based on the `position` value.","When `yref` is set to `paper`, units are sized relative","to the plot height.","When `yref` ends with ` domain`, units are sized relative","to the axis height."].join(" ")},sizing:{valType:"enumerated",values:["fill","contain","stretch"],dflt:"contain",editType:"arraydraw",description:["Specifies which dimension of the image to constrain."].join(" ")},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw",description:"Sets the opacity of the image."},x:{valType:"any",dflt:0,editType:"arraydraw",description:["Sets the image's x position.","When `xref` is set to `paper`, units are sized relative","to the plot height.","See `xref` for more info"].join(" ")},y:{valType:"any",dflt:0,editType:"arraydraw",description:["Sets the image's y position.","When `yref` is set to `paper`, units are sized relative","to the plot height.","See `yref` for more info"].join(" ")},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",editType:"arraydraw",description:"Sets the anchor for the x position"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],dflt:"top",editType:"arraydraw",description:"Sets the anchor for the y position."},xref:{valType:"enumerated",values:["paper",n.idRegex.x.toString()],dflt:"paper",editType:"arraydraw",description:["Sets the images's x coordinate axis.",i.axisRefDescription("x","left","right")].join(" ")},yref:{valType:"enumerated",values:["paper",n.idRegex.y.toString()],dflt:"paper",editType:"arraydraw",description:["Sets the images's y coordinate axis.",i.axisRefDescription("y","bottom","top")].join(" ")},editType:"arraydraw"})},function(e,t,r){"use strict";var n=r(28),a=r(45),i=r(22).extendFlat,o=r(55).overrideAll,l=r(162),s=r(17).templatedArray,c=s("button",{visible:{valType:"boolean",description:"Determines whether or not this button is visible."},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle",description:["Sets the Plotly method to be called on click.","If the `skip` method is used, the API updatemenu will function as normal","but will perform no API calls and will not bind automatically to state","updates. This may be used to create a component interface and attach to","updatemenu events manually via JavaScript."].join(" ")},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}],description:["Sets the arguments values to be passed to the Plotly","method set in `method` on click."].join(" ")},args2:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}],description:["Sets a 2nd set of `args`,","these arguments values are passed to the Plotly","method set in `method` when clicking this button while in the active state.","Use this to create toggle buttons."].join(" ")},label:{valType:"string",dflt:"",description:"Sets the text label to appear on the button."},execute:{valType:"boolean",dflt:!0,description:["When true, the API method is executed. When false, all other behaviors are the same","and command execution is skipped. This may be useful when hooking into, for example,","the `plotly_buttonclicked` method and executing the API command manually without losing","the benefit of the updatemenu automatically binding to the state of the plot through the","specification of `method` and `args`."].join(" ")}});e.exports=o(s("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean",description:["Determines whether or not the update menu is visible."].join(" ")},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown",description:["Determines whether the buttons are accessible via a dropdown menu","or whether the buttons are stacked horizontally or vertically"].join(" ")},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down",description:["Determines the direction in which the buttons are laid out, whether","in a dropdown menu or a row/column of buttons. For `left` and `up`,","the buttons will still appear in left-to-right or top-to-bottom order","respectively."].join(" ")},active:{valType:"integer",min:-1,dflt:0,description:["Determines which button (by index starting from 0) is","considered active."].join(" ")},showactive:{valType:"boolean",dflt:!0,description:"Highlights active dropdown item or active button if true."},buttons:c,x:{valType:"number",min:-2,max:3,dflt:-.05,description:"Sets the x position (in normalized coordinates) of the update menu."},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right",description:["Sets the update menu's horizontal position anchor.","This anchor binds the `x` position to the *left*, *center*","or *right* of the range selector."].join(" ")},y:{valType:"number",min:-2,max:3,dflt:1,description:"Sets the y position (in normalized coordinates) of the update menu."},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top",description:["Sets the update menu's vertical position anchor","This anchor binds the `y` position to the *top*, *middle*","or *bottom* of the range selector."].join(" ")},pad:i(l({editType:"arraydraw"}),{description:"Sets the padding around the buttons or dropdown menu."}),font:n({description:"Sets the font of the update menu button text."}),bgcolor:{valType:"color",description:"Sets the background color of the update menu buttons."},bordercolor:{valType:"color",dflt:a.borderLine,description:"Sets the color of the border enclosing the update menu."},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw",description:"Sets the width (in px) of the border enclosing the update menu."}}),"arraydraw","from-root")},function(e,t,r){"use strict";var n=r(28),a=r(162),i=r(22).extendDeepAll,o=r(55).overrideAll,l=r(121),s=r(17).templatedArray,c=r(129),u=s("step",{visible:{valType:"boolean",dflt:!0,description:["Determines whether or not this step is included in the slider."].join(" ")},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle",description:["Sets the Plotly method to be called when the slider value is changed.","If the `skip` method is used, the API slider will function as normal","but will perform no API calls and will not bind automatically to state","updates. This may be used to create a component interface and attach to","slider events manually via JavaScript."].join(" ")},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}],description:["Sets the arguments values to be passed to the Plotly","method set in `method` on slide."].join(" ")},label:{valType:"string",description:"Sets the text label to appear on the slider"},value:{valType:"string",description:["Sets the value of the slider step, used to refer to the step programatically.","Defaults to the slider label if not provided."].join(" ")},execute:{valType:"boolean",dflt:!0,description:["When true, the API method is executed. When false, all other behaviors are the same","and command execution is skipped. This may be useful when hooking into, for example,","the `plotly_sliderchange` method and executing the API command manually without losing","the benefit of the slider automatically binding to the state of the plot through the","specification of `method` and `args`."].join(" ")}});e.exports=o(s("slider",{visible:{valType:"boolean",dflt:!0,description:["Determines whether or not the slider is visible."].join(" ")},active:{valType:"number",min:0,dflt:0,description:["Determines which button (by index starting from 0) is","considered active."].join(" ")},steps:u,lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction",description:["Determines whether this slider length","is set in units of plot *fraction* or in *pixels.","Use `len` to set the value."].join(" ")},len:{valType:"number",min:0,dflt:1,description:["Sets the length of the slider","This measure excludes the padding of both ends.","That is, the slider's length is this length minus the","padding on both ends."].join(" ")},x:{valType:"number",min:-2,max:3,dflt:0,description:"Sets the x position (in normalized coordinates) of the slider."},pad:i(a({editType:"arraydraw"}),{description:"Set the padding of the slider component along each side."},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",description:["Sets the slider's horizontal position anchor.","This anchor binds the `x` position to the *left*, *center*","or *right* of the range selector."].join(" ")},y:{valType:"number",min:-2,max:3,dflt:0,description:"Sets the y position (in normalized coordinates) of the slider."},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top",description:["Sets the slider's vertical position anchor","This anchor binds the `y` position to the *top*, *middle*","or *bottom* of the range selector."].join(" ")},transition:{duration:{valType:"number",min:0,dflt:150,description:"Sets the duration of the slider transition"},easing:{valType:"enumerated",values:l.transition.easing.values,dflt:"cubic-in-out",description:"Sets the easing function of the slider transition"}},currentvalue:{visible:{valType:"boolean",dflt:!0,description:["Shows the currently-selected value above the slider."].join(" ")},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",description:["The alignment of the value readout relative to the length of the slider."].join(" ")},offset:{valType:"number",dflt:10,description:["The amount of space, in pixels, between the current value label","and the slider."].join(" ")},prefix:{valType:"string",description:"When currentvalue.visible is true, this sets the prefix of the label."},suffix:{valType:"string",description:"When currentvalue.visible is true, this sets the suffix of the label."},font:n({description:"Sets the font of the current value label text."})},font:n({description:"Sets the font of the slider step labels."}),activebgcolor:{valType:"color",dflt:c.gripBgActiveColor,description:["Sets the background color of the slider grip","while dragging."].join(" ")},bgcolor:{valType:"color",dflt:c.railBgColor,description:"Sets the background color of the slider."},bordercolor:{valType:"color",dflt:c.railBorderColor,description:"Sets the color of the border enclosing the slider."},borderwidth:{valType:"number",min:0,dflt:c.railBorderWidth,description:"Sets the width (in px) of the border enclosing the slider."},ticklen:{valType:"number",min:0,dflt:c.tickLength,description:"Sets the length in pixels of step tick marks"},tickcolor:{valType:"color",dflt:c.tickColor,description:"Sets the color of the border enclosing the slider."},tickwidth:{valType:"number",min:0,dflt:1,description:"Sets the tick width (in px)."},minorticklen:{valType:"number",min:0,dflt:c.minorTickLength,description:"Sets the length in pixels of minor step tick marks"}}),"arraydraw","from-root")},function(e,t,r){"use strict";e.exports={_isSubplotObj:!0,rangemode:{valType:"enumerated",values:["auto","fixed","match"],dflt:"match",editType:"calc",description:["Determines whether or not the range of this axis in","the rangeslider use the same value than in the main plot","when zooming in/out.","If *auto*, the autorange will be used.","If *fixed*, the `range` is used.","If *match*, the current range of the corresponding y-axis on the main subplot is used."].join(" ")},range:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot",description:["Sets the range of this axis for the rangeslider."].join(" ")},editType:"calc"}},function(e,t,r){"use strict";e.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}},function(e,t,r){"use strict";e.exports={visible:{valType:"boolean",editType:"calc",description:["Determines whether or not this set of error bars is visible."].join(" ")},type:{valType:"enumerated",values:["percent","constant","sqrt","data"],editType:"calc",description:["Determines the rule used to generate the error bars.","If *constant`, the bar lengths are of a constant value.","Set this constant in `value`.","If *percent*, the bar lengths correspond to a percentage of","underlying data. Set this percentage in `value`.","If *sqrt*, the bar lengths correspond to the square of the","underlying data.","If *data*, the bar lengths are set with data set `array`."].join(" ")},symmetric:{valType:"boolean",editType:"calc",description:["Determines whether or not the error bars have the same length","in both direction","(top/bottom for vertical bars, left/right for horizontal bars."].join(" ")},array:{valType:"data_array",editType:"calc",description:["Sets the data corresponding the length of each error bar.","Values are plotted relative to the underlying data."].join(" ")},arrayminus:{valType:"data_array",editType:"calc",description:["Sets the data corresponding the length of each error bar in the","bottom (left) direction for vertical (horizontal) bars","Values are plotted relative to the underlying data."].join(" ")},value:{valType:"number",min:0,dflt:10,editType:"calc",description:["Sets the value of either the percentage","(if `type` is set to *percent*) or the constant","(if `type` is set to *constant*) corresponding to the lengths of","the error bars."].join(" ")},valueminus:{valType:"number",min:0,dflt:10,editType:"calc",description:["Sets the value of either the percentage","(if `type` is set to *percent*) or the constant","(if `type` is set to *constant*) corresponding to the lengths of","the error bars in the","bottom (left) direction for vertical (horizontal) bars"].join(" ")},traceref:{valType:"integer",min:0,dflt:0,editType:"style"},tracerefminus:{valType:"integer",min:0,dflt:0,editType:"style"},copy_ystyle:{valType:"boolean",editType:"plot"},copy_zstyle:{valType:"boolean",editType:"style"},color:{valType:"color",editType:"style",description:"Sets the stoke color of the error bars."},thickness:{valType:"number",min:0,dflt:2,editType:"style",description:"Sets the thickness (in px) of the error bars."},width:{valType:"number",min:0,editType:"plot",description:["Sets the width (in px) of the cross-bar at both ends","of the error bars."].join(" ")},editType:"calc",_deprecated:{opacity:{valType:"number",editType:"style",description:["Obsolete.","Use the alpha channel in error bar `color` to set the opacity."].join(" ")}}}},function(e,t,r){"use strict";function n(e,t){return"percent"===e?function(e){return Math.abs(e*t/100)}:"constant"===e?function(){return Math.abs(t)}:"sqrt"===e?function(e){return Math.sqrt(Math.abs(e))}:void 0}e.exports=function(e){var t=e.type,r=e.symmetric;if("data"===t){var a=e.array||[];if(r)return function(e,t){var r=+a[t];return[r,r]};var i=e.arrayminus||[];return function(e,t){var r=+a[t],n=+i[t];return isNaN(r)&&isNaN(n)?[NaN,NaN]:[n||0,r||0]}}var o=n(t,e.value),l=n(t,e.valueminus);return r||void 0===e.valueminus?function(e){var t=o(e);return[t,t]}:function(e){return[l(e),o(e)]}}},function(e,t,r){"use strict";var n=r(5),a=r(0),i=a.extendFlat,o=a.extendDeep;function l(e){var t;switch(e){case"themes__thumb":t={autosize:!0,width:150,height:150,title:{text:""},showlegend:!1,margin:{l:5,r:5,t:5,b:5,pad:0},annotations:[]};break;case"thumbnail":t={title:{text:""},hidesources:!0,showlegend:!1,borderwidth:0,bordercolor:"",margin:{l:1,r:1,t:1,b:1,pad:0},annotations:[]};break;default:t={}}return t}e.exports=function(e,t){var r,a,s=e.data,c=e.layout,u=o([],s),f=o({},c,l(t.tileClass)),d=e._context||{};if(t.width&&(f.width=t.width),t.height&&(f.height=t.height),"thumbnail"===t.tileClass||"themes__thumb"===t.tileClass){f.annotations=[];var p=Object.keys(f);for(r=0;r<p.length;r++)a=p[r],["xaxis","yaxis","zaxis"].indexOf(a.slice(0,5))>-1&&(f[p[r]].title={text:""});for(r=0;r<u.length;r++){var h=u[r];h.showscale=!1,h.marker&&(h.marker.showscale=!1),n.traceIs(h,"pie-like")&&(h.textposition="none")}}if(Array.isArray(t.annotations))for(r=0;r<t.annotations.length;r++)f.annotations.push(t.annotations[r]);var g=Object.keys(f).filter((function(e){return e.match(/^scene\d*$/)}));if(g.length){var v={};for("thumbnail"===t.tileClass&&(v={title:{text:""},showaxeslabels:!1,showticklabels:!1,linetickenable:!1}),r=0;r<g.length;r++){var y=f[g[r]];y.xaxis||(y.xaxis={}),y.yaxis||(y.yaxis={}),y.zaxis||(y.zaxis={}),i(y.xaxis,v),i(y.yaxis,v),i(y.zaxis,v),y._scene=null}}var m=document.createElement("div");t.tileClass&&(m.className=t.tileClass);var b={gd:m,td:m,layout:f,data:u,config:{staticPlot:void 0===t.staticPlot||t.staticPlot,plotGlPixelRatio:void 0===t.plotGlPixelRatio?2:t.plotGlPixelRatio,displaylogo:t.displaylogo||!1,showLink:t.showLink||!1,showTips:t.showTips||!1,mapboxAccessToken:d.mapboxAccessToken}};return"transparent"!==t.setBackground&&(b.config.setBackground=t.setBackground||"opaque"),b.gd.defaultLayout=l(t.tileClass),b}},function(e,t,r){"use strict";var n=r(8),a=r(39).hasColorscale,i=r(97),o=r(0).coercePattern;e.exports=function(e,t,r,l,s){var c=r("marker.color",l),u=a(e,"marker");u&&i(e,t,s,r,{prefix:"marker.",cLetter:"c"}),r("marker.line.color",n.defaultLine),a(e,"marker.line")&&i(e,t,s,r,{prefix:"marker.line.",cLetter:"c"}),r("marker.line.width"),r("marker.opacity"),o(r,"marker.pattern",c,u),r("selected.marker.color"),r("unselected.marker.color")}},function(e,t,r){"use strict";var n=r(5),a=r(14),i=r(0),o=r(192);e.exports=function(e,t,r){function l(r,n){return i.coerce(e,t,o,r,n)}for(var s=!1,c=!1,u=!1,f={},d=l("barmode"),p=0;p<r.length;p++){var h=r[p];if(n.traceIs(h,"bar")&&h.visible){if(s=!0,"group"===d){var g=h.xaxis+h.yaxis;f[g]&&(u=!0),f[g]=!0}if(h.visible&&"histogram"===h.type)"category"!==a.getFromId({_fullLayout:t},h["v"===h.orientation?"xaxis":"yaxis"]).type&&(c=!0)}}s?("overlay"!==d&&l("barnorm"),l("bargap",c&&!u?0:.2),l("bargroupgap")):delete t.barmode}},function(e,t,r){"use strict";var n=r(9),a=r(0).isArrayOrTypedArray,i=r(19).BADNUM,o=r(5),l=r(14),s=r(100).getAxisGroup,c=r(625);function u(e,t,r,o,u){if(o.length){var x,w,_,k;switch(function(e,t){var r,i;for(r=0;r<t.length;r++){var o,l=t[r],s=l[0].trace,c="funnel"===s.type?s._base:s.base,u="h"===s.orientation?s.xcalendar:s.ycalendar,f="category"===e.type||"multicategory"===e.type?function(){return null}:e.d2c;if(a(c)){for(i=0;i<Math.min(c.length,l.length);i++)o=f(c[i],0,u),n(o)?(l[i].b=+o,l[i].hasB=1):l[i].b=0;for(;i<l.length;i++)l[i].b=0}else{o=f(c,0,u);var d=n(o);for(o=d?o:0,i=0;i<l.length;i++)l[i].b=o,d&&(l[i].hasB=1)}}}(r,o),u.mode){case"overlay":f(t,r,o,u);break;case"group":for(x=[],w=[],_=0;_<o.length;_++)void 0===(k=o[_])[0].trace.offset?w.push(k):x.push(k);w.length&&function(e,t,r,n,a){var o=new c(n,{posAxis:t,sepNegVal:!1,overlapNoMerge:!a.norm});(function(e,t,r,n){for(var a=e._fullLayout,i=r.positions,o=r.distinctPositions,l=r.minDiff,c=r.traces,u=c.length,f=i.length!==o.length,d=l*(1-n.gap),v=s(a,t._id)+c[0][0].trace.orientation,y=a._alignmentOpts[v]||{},m=0;m<u;m++){var b,x,w=c[m],_=w[0].trace,k=y[_.alignmentgroup]||{},T=Object.keys(k.offsetGroups||{}).length,A=(b=T?d/T:f?d/u:d)*(1-(n.groupgap||0));x=T?((2*_._offsetIndex+1-T)*b-A)/2:f?((2*m+1-u)*b-A)/2:-A/2;var S=w[0].t;S.barwidth=A,S.poffset=x,S.bargroupwidth=d,S.bardelta=l}r.binWidth=c[0][0].t.barwidth/100,p(r),h(t,r),g(t,r,f)})(e,t,o,a),function(e,t){for(var r=e.traces,n=0;n<r.length;n++){var a=r[n];if(void 0===a[0].trace.base)for(var o=new c([a],{posAxis:t,sepNegVal:!0,overlapNoMerge:!0}),l=0;l<a.length;l++){var s=a[l];if(s.p!==i){var u=o.put(s.p,s.b+s.s);u&&(s.b=u)}}}}(o,t),a.norm?(y(o),m(r,o,a)):v(r,o)}(e,t,r,w,u),x.length&&f(t,r,x,u);break;case"stack":case"relative":for(x=[],w=[],_=0;_<o.length;_++)void 0===(k=o[_])[0].trace.base?w.push(k):x.push(k);w.length&&function(e,t,r,n,a){var o=new c(n,{posAxis:t,sepNegVal:"relative"===a.mode,overlapNoMerge:!(a.norm||"stack"===a.mode||"relative"===a.mode)});d(t,o,a),function(e,t,r){var n,a,o,s,c,u,f=b(e),d=t.traces;for(s=0;s<d.length;s++)if("funnel"===(a=(n=d[s])[0].trace).type)for(c=0;c<n.length;c++)(u=n[c]).s!==i&&t.put(u.p,-.5*u.s);for(s=0;s<d.length;s++){o="funnel"===(a=(n=d[s])[0].trace).type;var p=[];for(c=0;c<n.length;c++)if((u=n[c]).s!==i){var h;h=o?u.s:u.s+u.b;var g=t.put(u.p,h),v=g+h;u.b=g,u[f]=v,r.norm||(p.push(v),u.hasB&&p.push(g))}r.norm||(a._extremes[e._id]=l.findExtremes(e,p,{tozero:!0,padded:!0}))}}(r,o,a);for(var s=0;s<n.length;s++)for(var u=n[s],f=0;f<u.length;f++){var p=u[f];if(p.s!==i)p.b+p.s===o.get(p.p,p.s)&&(p._outmost=!0)}a.norm&&m(r,o,a)}(0,t,r,w,u),x.length&&f(t,r,x,u)}!function(e,t){var r,a,i,o=b(t),l={},s=1/0,c=-1/0;for(r=0;r<e.length;r++)for(i=e[r],a=0;a<i.length;a++){var u=i[a].p;n(u)&&(s=Math.min(s,u),c=Math.max(c,u))}var f=1e4/(c-s),d=l.round=function(e){return String(Math.round(f*(e-s)))};for(r=0;r<e.length;r++){(i=e[r])[0].t.extents=l;var p=i[0].t.poffset,h=Array.isArray(p);for(a=0;a<i.length;a++){var g=i[a],v=g[o]-g.w/2;if(n(v)){var y=g[o]+g.w/2,m=d(g.p);l[m]?l[m]=[Math.min(v,l[m][0]),Math.max(y,l[m][1])]:l[m]=[v,y]}g.p0=g.p+(h?p[a]:p),g.p1=g.p0+g.w,g.s0=g.b,g.s1=g.s0+g.s}}}(o,t)}}function f(e,t,r,n){for(var a=0;a<r.length;a++){var i=r[a],o=new c([i],{posAxis:e,sepNegVal:!1,overlapNoMerge:!n.norm});d(e,o,n),n.norm?(y(o),m(t,o,n)):v(t,o)}}function d(e,t,r){for(var n=t.minDiff,a=t.traces,i=n*(1-r.gap),o=i*(1-(r.groupgap||0)),l=-o/2,s=0;s<a.length;s++){var c=a[s][0].t;c.barwidth=o,c.poffset=l,c.bargroupwidth=i,c.bardelta=n}t.binWidth=a[0][0].t.barwidth/100,p(t),h(e,t),g(e,t)}function p(e){var t,r,i=e.traces;for(t=0;t<i.length;t++){var o,l=i[t],s=l[0],c=s.trace,u=s.t,f=c._offset||c.offset,d=u.poffset;if(a(f)){for(o=Array.prototype.slice.call(f,0,l.length),r=0;r<o.length;r++)n(o[r])||(o[r]=d);for(r=o.length;r<l.length;r++)o.push(d);u.poffset=o}else void 0!==f&&(u.poffset=f);var p=c._width||c.width,h=u.barwidth;if(a(p)){var g=Array.prototype.slice.call(p,0,l.length);for(r=0;r<g.length;r++)n(g[r])||(g[r]=h);for(r=g.length;r<l.length;r++)g.push(h);if(u.barwidth=g,void 0===f){for(o=[],r=0;r<l.length;r++)o.push(d+(h-g[r])/2);u.poffset=o}}else void 0!==p&&(u.barwidth=p,void 0===f&&(u.poffset=d+(h-p)/2))}}function h(e,t){for(var r=t.traces,n=b(e),a=0;a<r.length;a++)for(var i=r[a],o=i[0].t,l=o.poffset,s=Array.isArray(l),c=o.barwidth,u=Array.isArray(c),f=0;f<i.length;f++){var d=i[f],p=d.w=u?c[f]:c;d[n]=d.p+(s?l[f]:l)+p/2}}function g(e,t,r){var n=t.traces,a=t.minDiff/2;l.minDtick(e,t.minDiff,t.distinctPositions[0],r);for(var i=0;i<n.length;i++){var o,s,c,u,f=n[i],d=f[0],p=d.trace,h=[];for(u=0;u<f.length;u++)s=(o=f[u]).p-a,c=o.p+a,h.push(s,c);if(p.width||p.offset){var g=d.t,v=g.poffset,y=g.barwidth,m=Array.isArray(v),b=Array.isArray(y);for(u=0;u<f.length;u++){o=f[u];var x=m?v[u]:v,w=b?y[u]:y;c=(s=o.p+x)+w,h.push(s,c)}}p._extremes[e._id]=l.findExtremes(e,h,{padded:!1})}}function v(e,t){for(var r=t.traces,n=b(e),a=0;a<r.length;a++){for(var i=r[a],o=i[0].trace,s=[],c=!1,u=0;u<i.length;u++){var f=i[u],d=f.b,p=d+f.s;f[n]=p,s.push(p),f.hasB&&s.push(d),f.hasB&&f.b||(c=!0)}o._extremes[e._id]=l.findExtremes(e,s,{tozero:c,padded:!0})}}function y(e){for(var t=e.traces,r=0;r<t.length;r++)for(var n=t[r],a=0;a<n.length;a++){var o=n[a];o.s!==i&&e.put(o.p,o.b+o.s)}}function m(e,t,r){var a=t.traces,o=b(e),s="fraction"===r.norm?1:100,c=s/1e9,u=e.l2c(e.c2l(0)),f="stack"===r.mode?s:u;function d(t){return n(e.c2l(t))&&(t<u-c||t>f+c||!n(u))}for(var p=0;p<a.length;p++){for(var h=a[p],g=h[0].trace,v=[],y=!1,m=!1,x=0;x<h.length;x++){var w=h[x];if(w.s!==i){var _=Math.abs(s/t.get(w.p,w.s));w.b*=_,w.s*=_;var k=w.b,T=k+w.s;w[o]=T,v.push(T),m=m||d(T),w.hasB&&(v.push(k),m=m||d(k)),w.hasB&&w.b||(y=!0)}}g._extremes[e._id]=l.findExtremes(e,v,{tozero:y,padded:m})}}function b(e){return e._id.charAt(0)}e.exports={crossTraceCalc:function(e,t){for(var r=t.xaxis,n=t.yaxis,a=e._fullLayout,i=e._fullData,l=e.calcdata,s=[],c=[],f=0;f<i.length;f++){var d=i[f];if(!0===d.visible&&o.traceIs(d,"bar")&&d.xaxis===r._id&&d.yaxis===n._id&&("h"===d.orientation?s.push(l[f]):c.push(l[f]),d._computePh))for(var p=e.calcdata[f],h=0;h<p.length;h++)"function"===typeof p[h].ph0&&(p[h].ph0=p[h].ph0()),"function"===typeof p[h].ph1&&(p[h].ph1=p[h].ph1())}var g={xCat:"category"===r.type||"multicategory"===r.type,yCat:"category"===n.type||"multicategory"===n.type,mode:a.barmode,norm:a.barnorm,gap:a.bargap,groupgap:a.bargroupgap};u(e,r,n,c,g),u(e,n,r,s,g)},setGroupPositions:u}},function(e,t,r){"use strict";var n=r(41),a=r(5),i=r(8),o=r(0).fillText,l=r(195).getLineWidth,s=r(14).hoverLabelText,c=r(19).BADNUM;function u(e,t,r,a,i){var l,u,f,d,p,h,g,v=e.cd,y=v[0].trace,m=v[0].t,b="closest"===a,x="waterfall"===y.type,w=e.maxHoverDistance,_=e.maxSpikeDistance;"h"===y.orientation?(l=r,u=t,f="y",d="x",p=z,h=P):(l=t,u=r,f="x",d="y",h=z,p=P);var k=y[f+"period"],T=b||k;function A(e){return M(e,-1)}function S(e){return M(e,1)}function M(e,t){var r=e.w;return e[f]+t*r/2}function O(e){return e[f+"End"]-e[f+"Start"]}var C=b?A:k?function(e){return e.p-O(e)/2}:function(e){return Math.min(A(e),e.p-m.bardelta/2)},E=b?S:k?function(e){return e.p+O(e)/2}:function(e){return Math.max(S(e),e.p+m.bardelta/2)};function L(e,t,r){return i.finiteRange&&(r=0),n.inbox(e-l,t-l,r+Math.min(1,Math.abs(t-e)/g)-1)}function P(e){return L(C(e),E(e),w)}function j(e){var t=e[d];if(x){var r=Math.abs(e.rawS)||0;u>0?t+=r:u<0&&(t-=r)}return t}function z(e){var t=u,r=e.b,a=j(e);return n.inbox(r-t,a-t,w+(a-t)/(a-r)-1)}var D=e[f+"a"],I=e[d+"a"];g=Math.abs(D.r2c(D.range[1])-D.r2c(D.range[0]));var N=n.getDistanceFunction(a,p,h,(function(e){return(p(e)+h(e))/2}));if(n.getClosest(v,N,e),!1!==e.index&&v[e.index].p!==c){T||(C=function(e){return Math.min(A(e),e.p-m.bargroupwidth/2)},E=function(e){return Math.max(S(e),e.p+m.bargroupwidth/2)});var R=v[e.index],F=y.base?R.b+R.s:R.s;e[d+"0"]=e[d+"1"]=I.c2p(R[d],!0),e[d+"LabelVal"]=F;var B=m.extents[m.extents.round(R.p)];e[f+"0"]=D.c2p(b?C(R):B[0],!0),e[f+"1"]=D.c2p(b?E(R):B[1],!0);var U=void 0!==R.orig_p;return e[f+"LabelVal"]=U?R.orig_p:R.p,e.labelLabel=s(D,e[f+"LabelVal"],y[f+"hoverformat"]),e.valueLabel=s(I,e[d+"LabelVal"],y[d+"hoverformat"]),e.baseLabel=s(I,R.b,y[d+"hoverformat"]),e.spikeDistance=(function(e){var t=u,r=e.b,a=j(e);return n.inbox(r-t,a-t,_+(a-t)/(a-r)-1)}(R)+function(e){return L(A(e),S(e),_)}(R))/2,e[f+"Spike"]=D.c2p(R.p,!0),o(R,y,e),e.hovertemplate=y.hovertemplate,e}}function f(e,t){var r=t.mcc||e.marker.color,n=t.mlcc||e.marker.line.color,a=l(e,t);return i.opacity(r)?r:i.opacity(n)&&a?n:void 0}e.exports={hoverPoints:function(e,t,r,n,i){var o=u(e,t,r,n,i);if(o){var l=o.cd,s=l[0].trace,c=l[o.index];return o.color=f(s,c),a.getComponentMethod("errorbars","hoverInfo")(c,s,o),[o]}},hoverOnBars:u,getTraceColor:f}},function(e,t,r){"use strict";function n(e,t,r,n,a){var i=t.c2p(n?e.s0:e.p0,!0),o=t.c2p(n?e.s1:e.p1,!0),l=r.c2p(n?e.p0:e.s0,!0),s=r.c2p(n?e.p1:e.s1,!0);return a?[(i+o)/2,(l+s)/2]:n?[o,(l+s)/2]:[(i+o)/2,s]}e.exports=function(e,t){var r,a=e.cd,i=e.xaxis,o=e.yaxis,l=a[0].trace,s="funnel"===l.type,c="h"===l.orientation,u=[];if(!1===t)for(r=0;r<a.length;r++)a[r].selected=0;else for(r=0;r<a.length;r++){var f=a[r],d="ct"in f?f.ct:n(f,i,o,c,s);t.contains(d,!1,r,e)?(u.push({pointNumber:r,x:i.c2d(f.x),y:o.c2d(f.y)}),f.selected=1):f.selected=0}return u}},function(e,t,r){"use strict";var n=r(102),a=r(76).axisHoverFormat,i=r(35).hovertemplateAttrs,o=r(35).texttemplateAttrs,l=r(28),s=r(628),c=r(629),u=r(22).extendFlat;e.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes",description:["Sets the sample data to be binned on the x axis."].join(" ")},y:{valType:"data_array",editType:"calc+clearAxisTypes",description:["Sets the sample data to be binned on the y axis."].join(" ")},xhoverformat:a("x"),yhoverformat:a("y"),text:u({},n.text,{description:["Sets hover text elements associated with each bar.","If a single string, the same string appears over all bars.","If an array of string, the items are mapped in order to the","this trace's coordinates."].join(" ")}),hovertext:u({},n.hovertext,{description:"Same as `text`."}),orientation:n.orientation,histfunc:{valType:"enumerated",values:["count","sum","avg","min","max"],dflt:"count",editType:"calc",description:["Specifies the binning function used for this histogram trace.","If *count*, the histogram values are computed by counting the","number of values lying inside each bin.","If *sum*, *avg*, *min*, *max*,","the histogram values are computed using","the sum, the average, the minimum or the maximum","of the values lying inside each bin respectively."].join(" ")},histnorm:{valType:"enumerated",values:["","percent","probability","density","probability density"],dflt:"",editType:"calc",description:["Specifies the type of normalization used for this histogram trace.","If **, the span of each bar corresponds to the number of","occurrences (i.e. the number of data points lying inside the bins).","If *percent* / *probability*, the span of each bar corresponds to","the percentage / fraction of occurrences with respect to the total","number of sample points","(here, the sum of all bin HEIGHTS equals 100% / 1).","If *density*, the span of each bar corresponds to the number of","occurrences in a bin divided by the size of the bin interval","(here, the sum of all bin AREAS equals the","total number of sample points).","If *probability density*, the area of each bar corresponds to the","probability that an event will fall into the corresponding bin","(here, the sum of all bin AREAS equals 1)."].join(" ")},cumulative:{enabled:{valType:"boolean",dflt:!1,editType:"calc",description:["If true, display the cumulative distribution by summing the","binned values. Use the `direction` and `centralbin` attributes","to tune the accumulation method.","Note: in this mode, the *density* `histnorm` settings behave","the same as their equivalents without *density*:","** and *density* both rise to the number of data points, and","*probability* and *probability density* both rise to the","number of sample points."].join(" ")},direction:{valType:"enumerated",values:["increasing","decreasing"],dflt:"increasing",editType:"calc",description:["Only applies if cumulative is enabled.","If *increasing* (default) we sum all prior bins, so the result","increases from left to right. If *decreasing* we sum later bins","so the result decreases from left to right."].join(" ")},currentbin:{valType:"enumerated",values:["include","exclude","half"],dflt:"include",editType:"calc",description:["Only applies if cumulative is enabled.","Sets whether the current bin is included, excluded, or has half","of its value included in the current cumulative value.","*include* is the default for compatibility with various other","tools, however it introduces a half-bin bias to the results.","*exclude* makes the opposite half-bin bias, and *half* removes","it."].join(" ")},editType:"calc"},nbinsx:{valType:"integer",min:0,dflt:0,editType:"calc",description:["Specifies the maximum number of desired bins. This value will be used","in an algorithm that will decide the optimal bin size such that the","histogram best visualizes the distribution of the data.","Ignored if `xbins.size` is provided."].join(" ")},xbins:s("x",!0),nbinsy:{valType:"integer",min:0,dflt:0,editType:"calc",description:["Specifies the maximum number of desired bins. This value will be used","in an algorithm that will decide the optimal bin size such that the","histogram best visualizes the distribution of the data.","Ignored if `ybins.size` is provided."].join(" ")},ybins:s("y",!0),autobinx:{valType:"boolean",dflt:null,editType:"calc",description:["Obsolete: since v1.42 each bin attribute is auto-determined","separately and `autobinx` is not needed. However, we accept","`autobinx: true` or `false` and will update `xbins` accordingly","before deleting `autobinx` from the trace."].join(" ")},autobiny:{valType:"boolean",dflt:null,editType:"calc",description:["Obsolete: since v1.42 each bin attribute is auto-determined","separately and `autobiny` is not needed. However, we accept","`autobiny: true` or `false` and will update `ybins` accordingly","before deleting `autobiny` from the trace."].join(" ")},bingroup:{valType:"string",dflt:"",editType:"calc",description:["Set a group of histogram traces which will have compatible bin settings.","Note that traces on the same subplot and with the same *orientation*","under `barmode` *stack*, *relative* and *group* are forced into the same bingroup,","Using `bingroup`, traces under `barmode` *overlay* and on different axes","(of the same axis type) can have compatible bin settings.","Note that histogram and histogram2d* trace can share the same `bingroup`"].join(" ")},hovertemplate:i({},{keys:c.eventDataKeys}),texttemplate:o({arrayOk:!1,editType:"plot"},{keys:["label","value"]}),textposition:u({},n.textposition,{arrayOk:!1}),textfont:l({arrayOk:!1,editType:"plot",colorEditType:"style",description:"Sets the text font."}),outsidetextfont:l({arrayOk:!1,editType:"plot",colorEditType:"style",description:"Sets the font used for `text` lying outside the bar."}),insidetextfont:l({arrayOk:!1,editType:"plot",colorEditType:"style",description:"Sets the font used for `text` lying inside the bar."}),insidetextanchor:n.insidetextanchor,textangle:n.textangle,cliponaxis:n.cliponaxis,constraintext:n.constraintext,marker:n.marker,offsetgroup:n.offsetgroup,alignmentgroup:n.alignmentgroup,selected:n.selected,unselected:n.unselected,_deprecated:{bardir:n._deprecated.bardir}}},function(e,t,r){"use strict";e.exports={hiddenlabels:{valType:"data_array",editType:"calc",description:["hiddenlabels is the funnelarea & pie chart analog of","visible:'legendonly'","but it can contain many labels, and can simultaneously","hide slices from several pies/funnelarea charts"].join(" ")},piecolorway:{valType:"colorlist",editType:"calc",description:["Sets the default pie slice colors. Defaults to the main","`colorway` used for trace colors. If you specify a new","list here it can still be extended with lighter and darker","colors, see `extendpiecolors`."].join(" ")},extendpiecolors:{valType:"boolean",dflt:!0,editType:"calc",description:["If `true`, the pie slice colors (whether given by `piecolorway` or","inherited from `colorway`) will be extended to three times its","original length by first repeating every color 20% lighter then","each color 20% darker. This is intended to reduce the likelihood","of reusing the same color when you have many slices, but you can","set `false` to disable.","Colors provided in the trace, using `marker.colors`, are never","extended."].join(" ")}}},function(e,t,r){"use strict";var n=r(7),a=r(20),i=r(41),o=r(8),l=r(10),s=r(0),c=s.strScale,u=s.strTranslate,f=r(25),d=r(51),p=d.recordMinTextSize,h=d.clearMinTextSize,g=r(103).TEXTPAD,v=r(77),y=r(642),m=r(0).isValidTextValue;function b(e,t,r){var a=r[0],o=a.cx,l=a.cy,c=a.trace,u="funnelarea"===c.type;"_hasHoverLabel"in c||(c._hasHoverLabel=!1),"_hasHoverEvent"in c||(c._hasHoverEvent=!1),e.on("mouseover",(function(e){var r=t._fullLayout,f=t._fullData[c.index];if(!t._dragging&&!1!==r.hovermode){var d=f.hoverinfo;if(Array.isArray(d)&&(d=i.castHoverinfo({hoverinfo:[v.castOption(d,e.pts)],_module:c._module},r,0)),"all"===d&&(d="label+text+value+percent+name"),f.hovertemplate||"none"!==d&&"skip"!==d&&d){var p=e.rInscribed||0,h=o+e.pxmid[0]*(1-p),g=l+e.pxmid[1]*(1-p),m=r.separators,b=[];if(d&&-1!==d.indexOf("label")&&b.push(e.label),e.text=v.castOption(f.hovertext||f.text,e.pts),d&&-1!==d.indexOf("text")){var x=e.text;s.isValidTextValue(x)&&b.push(x)}e.value=e.v,e.valueLabel=v.formatPieValue(e.v,m),d&&-1!==d.indexOf("value")&&b.push(e.valueLabel),e.percent=e.v/a.vTotal,e.percentLabel=v.formatPiePercent(e.percent,m),d&&-1!==d.indexOf("percent")&&b.push(e.percentLabel);var w=f.hoverlabel,_=w.font,k=[];i.loneHover({trace:c,x0:h-p*a.r,x1:h+p*a.r,y:g,_x0:u?o+e.TL[0]:h-p*a.r,_x1:u?o+e.TR[0]:h+p*a.r,_y0:u?l+e.TL[1]:g-p*a.r,_y1:u?l+e.BL[1]:g+p*a.r,text:b.join("<br>"),name:f.hovertemplate||-1!==d.indexOf("name")?f.name:void 0,idealAlign:e.pxmid[0]<0?"left":"right",color:v.castOption(w.bgcolor,e.pts)||e.color,borderColor:v.castOption(w.bordercolor,e.pts),fontFamily:v.castOption(_.family,e.pts),fontSize:v.castOption(_.size,e.pts),fontColor:v.castOption(_.color,e.pts),nameLength:v.castOption(w.namelength,e.pts),textAlign:v.castOption(w.align,e.pts),hovertemplate:v.castOption(f.hovertemplate,e.pts),hovertemplateLabels:e,eventData:[y(e,f)]},{container:r._hoverlayer.node(),outerContainer:r._paper.node(),gd:t,inOut_bbox:k}),e.bbox=k[0],c._hasHoverLabel=!0}c._hasHoverEvent=!0,t.emit("plotly_hover",{points:[y(e,f)],event:n.event})}})),e.on("mouseout",(function(e){var r=t._fullLayout,a=t._fullData[c.index],o=n.select(this).datum();c._hasHoverEvent&&(e.originalEvent=n.event,t.emit("plotly_unhover",{points:[y(o,a)],event:n.event}),c._hasHoverEvent=!1),c._hasHoverLabel&&(i.loneUnhover(r._hoverlayer.node()),c._hasHoverLabel=!1)})),e.on("click",(function(e){var r=t._fullLayout,a=t._fullData[c.index];t._dragging||!1===r.hovermode||(t._hoverdata=[y(e,a)],i.click(t,n.event))}))}function x(e,t,r){var n=v.castOption(e.insidetextfont.color,t.pts);!n&&e._input.textfont&&(n=v.castOption(e._input.textfont.color,t.pts));var a=v.castOption(e.insidetextfont.family,t.pts)||v.castOption(e.textfont.family,t.pts)||r.family,i=v.castOption(e.insidetextfont.size,t.pts)||v.castOption(e.textfont.size,t.pts)||r.size;return{color:n||o.contrast(t.color),family:a,size:i}}function w(e,t){for(var r,n,a=0;a<e.length;a++)if((n=(r=e[a][0]).trace).title.text){var i=n.title.text;n._meta&&(i=s.templateString(i,n._meta));var o=l.tester.append("text").attr("data-notex",1).text(i).call(l.font,n.title.font).call(f.convertToTspans,t),c=l.bBox(o.node(),!0);r.titleBox={width:c.width,height:c.height},o.remove()}}function _(e,t,r){var n=r.r||t.rpx1,a=t.rInscribed;if(t.startangle===t.stopangle)return{rCenter:1-a,scale:0,rotate:0,textPosAngle:0};var i,o=t.ring,l=1===o&&Math.abs(t.startangle-t.stopangle)===2*Math.PI,s=t.halfangle,c=t.midangle,u=r.trace.insidetextorientation,f="horizontal"===u,d="tangential"===u,p="radial"===u,h="auto"===u,g=[];if(!h){var v,y=function(r,a){if(function(e,t){var r=e.startangle,n=e.stopangle;return r>t&&t>n||r<t&&t<n}(t,r)){var l=Math.abs(r-t.startangle),s=Math.abs(r-t.stopangle),c=l<s?l:s;(i="tan"===a?T(e,n,o,c,0):k(e,n,o,c,Math.PI/2)).textPosAngle=r,g.push(i)}};if(f||d){for(v=4;v>=-4;v-=2)y(Math.PI*v,"tan");for(v=4;v>=-4;v-=2)y(Math.PI*(v+1),"tan")}if(f||p){for(v=4;v>=-4;v-=2)y(Math.PI*(v+1.5),"rad");for(v=4;v>=-4;v-=2)y(Math.PI*(v+.5),"rad")}}if(l||h||f){var m=Math.sqrt(e.width*e.width+e.height*e.height);if((i={scale:a*n*2/m,rCenter:1-a,rotate:0}).textPosAngle=(t.startangle+t.stopangle)/2,i.scale>=1)return i;g.push(i)}(h||p)&&((i=k(e,n,o,s,c)).textPosAngle=(t.startangle+t.stopangle)/2,g.push(i)),(h||d)&&((i=T(e,n,o,s,c)).textPosAngle=(t.startangle+t.stopangle)/2,g.push(i));for(var b=0,x=0,w=0;w<g.length;w++){var _=g[w].scale;if(x<_&&(x=_,b=w),!h&&x>=1)break}return g[b]}function k(e,t,r,n,a){t=Math.max(0,t-2*g);var i=e.width/e.height,o=M(i,n,t,r);return{scale:2*o/e.height,rCenter:A(i,o/t),rotate:S(a)}}function T(e,t,r,n,a){t=Math.max(0,t-2*g);var i=e.height/e.width,o=M(i,n,t,r);return{scale:2*o/e.width,rCenter:A(i,o/t),rotate:S(a+Math.PI/2)}}function A(e,t){return Math.cos(t)-e*t}function S(e){return(180/Math.PI*e+720)%180-90}function M(e,t,r,n){var a=e+1/(2*Math.tan(t));return r*Math.min(1/(Math.sqrt(a*a+.5)+a),n/(Math.sqrt(e*e+n/2)+e))}function O(e,t){return e.v!==t.vTotal||t.trace.hole?Math.min(1/(1+1/Math.sin(e.halfangle)),e.ring/2):1}function C(e,t){var r=t.pxmid[0],n=t.pxmid[1],a=e.width/2,i=e.height/2;return r<0&&(a*=-1),n<0&&(i*=-1),{scale:1,rCenter:1,rotate:0,x:a+Math.abs(i)*(a>0?1:-1)/2,y:i/(1+r*r/(n*n)),outside:!0}}function E(e,t){var r,n,a,i=e.trace,o={x:e.cx,y:e.cy},l={tx:0,ty:0};l.ty+=i.title.font.size,a=P(i),-1!==i.title.position.indexOf("top")?(o.y-=(1+a)*e.r,l.ty-=e.titleBox.height):-1!==i.title.position.indexOf("bottom")&&(o.y+=(1+a)*e.r);var s,c,u=(s=e.r,c=e.trace.aspectratio,s/(void 0===c?1:c)),f=t.w*(i.domain.x[1]-i.domain.x[0])/2;return-1!==i.title.position.indexOf("left")?(f+=u,o.x-=(1+a)*u,l.tx+=e.titleBox.width/2):-1!==i.title.position.indexOf("center")?f*=2:-1!==i.title.position.indexOf("right")&&(f+=u,o.x+=(1+a)*u,l.tx-=e.titleBox.width/2),r=f/e.titleBox.width,n=L(e,t)/e.titleBox.height,{x:o.x,y:o.y,scale:Math.min(r,n),tx:l.tx,ty:l.ty}}function L(e,t){var r=e.trace,n=t.h*(r.domain.y[1]-r.domain.y[0]);return Math.min(e.titleBox.height,n/2)}function P(e){var t,r=e.pull;if(!r)return 0;if(Array.isArray(r))for(r=0,t=0;t<e.pull.length;t++)e.pull[t]>r&&(r=e.pull[t]);return r}function j(e,t){for(var r=[],n=0;n<e.length;n++){var a=e[n][0],i=a.trace,o=i.domain,l=t.w*(o.x[1]-o.x[0]),s=t.h*(o.y[1]-o.y[0]);i.title.text&&"middle center"!==i.title.position&&(s-=L(a,t));var c=l/2,u=s/2;"funnelarea"!==i.type||i.scalegroup||(u/=i.aspectratio),a.r=Math.min(c,u)/(1+P(i)),a.cx=t.l+t.w*(i.domain.x[1]+i.domain.x[0])/2,a.cy=t.t+t.h*(1-i.domain.y[0])-s/2,i.title.text&&-1!==i.title.position.indexOf("bottom")&&(a.cy-=L(a,t)),i.scalegroup&&-1===r.indexOf(i.scalegroup)&&r.push(i.scalegroup)}!function(e,t){for(var r,n,a,i=0;i<t.length;i++){var o=1/0,l=t[i];for(n=0;n<e.length;n++)if((a=(r=e[n][0]).trace).scalegroup===l){var s;if("pie"===a.type)s=r.r*r.r;else if("funnelarea"===a.type){var c,u;a.aspectratio>1?u=(c=r.r)/a.aspectratio:c=(u=r.r)*a.aspectratio,s=(c*=(1+a.baseratio)/2)*u}o=Math.min(o,s/r.vTotal)}for(n=0;n<e.length;n++)if((a=(r=e[n][0]).trace).scalegroup===l){var f=o*r.vTotal;"funnelarea"===a.type&&(f/=(1+a.baseratio)/2,f/=a.aspectratio),r.r=Math.sqrt(f)}}}(e,r)}function z(e,t){return[e*Math.sin(t),-e*Math.cos(t)]}function D(e,t,r){var n=e._fullLayout,a=r.trace,i=a.texttemplate,o=a.textinfo;if(!i&&o&&"none"!==o){var l,c=o.split("+"),u=function(e){return-1!==c.indexOf(e)},f=u("label"),d=u("text"),p=u("value"),h=u("percent"),g=n.separators;if(l=f?[t.label]:[],d){var y=v.getFirstFilled(a.text,t.pts);m(y)&&l.push(y)}p&&l.push(v.formatPieValue(t.v,g)),h&&l.push(v.formatPiePercent(t.v/r.vTotal,g)),t.text=l.join("<br>")}if(i){var b=s.castOption(a,t.i,"texttemplate");if(b){var x=function(e){return{label:e.label,value:e.v,valueLabel:v.formatPieValue(e.v,n.separators),percent:e.v/r.vTotal,percentLabel:v.formatPiePercent(e.v/r.vTotal,n.separators),color:e.color,text:e.text,customdata:s.castOption(a,e.i,"customdata")}}(t),w=v.getFirstFilled(a.text,t.pts);(m(w)||""===w)&&(x.text=w),t.text=s.texttemplateString(b,x,e._fullLayout._d3locale,x,a._meta||{})}else t.text=""}}function I(e,t){var r=e.rotate*Math.PI/180,n=Math.cos(r),a=Math.sin(r),i=(t.left+t.right)/2,o=(t.top+t.bottom)/2;e.textX=i*n-o*a,e.textY=i*a+o*n,e.noCenter=!0}e.exports={plot:function(e,t){var r=e._fullLayout,i=r._size;h("pie",r),w(t,e),j(t,i);var d=s.makeTraceGroups(r._pielayer,t,"trace").each((function(t){var d=n.select(this),h=t[0],g=h.trace;!function(e){var t,r,n,a=e[0],i=a.r,o=a.trace,l=v.getRotationAngle(o.rotation),s=2*Math.PI/a.vTotal,c="px0",u="px1";if("counterclockwise"===o.direction){for(t=0;t<e.length&&e[t].hidden;t++);if(t===e.length)return;l+=s*e[t].v,s*=-1,c="px1",u="px0"}for(n=z(i,l),t=0;t<e.length;t++)(r=e[t]).hidden||(r[c]=n,r.startangle=l,l+=s*r.v/2,r.pxmid=z(i,l),r.midangle=l,n=z(i,l+=s*r.v/2),r.stopangle=l,r[u]=n,r.largeArc=r.v>a.vTotal/2?1:0,r.halfangle=Math.PI*Math.min(r.v/a.vTotal,.5),r.ring=1-o.hole,r.rInscribed=O(r,a))}(t),d.attr("stroke-linejoin","round"),d.each((function(){var y=n.select(this).selectAll("g.slice").data(t);y.enter().append("g").classed("slice",!0),y.exit().remove();var m=[[[],[]],[[],[]]],w=!1;y.each((function(a,i){if(a.hidden)n.select(this).selectAll("path,g").remove();else{a.pointNumber=a.i,a.curveNumber=g.index,m[a.pxmid[1]<0?0:1][a.pxmid[0]<0?0:1].push(a);var o=h.cx,c=h.cy,u=n.select(this),d=u.selectAll("path.surface").data([a]);if(d.enter().append("path").classed("surface",!0).style({"pointer-events":"all"}),u.call(b,e,t),g.pull){var y=+v.castOption(g.pull,a.pts)||0;y>0&&(o+=y*a.pxmid[0],c+=y*a.pxmid[1])}a.cxFinal=o,a.cyFinal=c;var k=g.hole;if(a.v===h.vTotal){var T="M"+(o+a.px0[0])+","+(c+a.px0[1])+E(a.px0,a.pxmid,!0,1)+E(a.pxmid,a.px0,!0,1)+"Z";k?d.attr("d","M"+(o+k*a.px0[0])+","+(c+k*a.px0[1])+E(a.px0,a.pxmid,!1,k)+E(a.pxmid,a.px0,!1,k)+"Z"+T):d.attr("d",T)}else{var A=E(a.px0,a.px1,!0,1);if(k){var S=1-k;d.attr("d","M"+(o+k*a.px1[0])+","+(c+k*a.px1[1])+E(a.px1,a.px0,!1,k)+"l"+S*a.px0[0]+","+S*a.px0[1]+A+"Z")}else d.attr("d","M"+o+","+c+"l"+a.px0[0]+","+a.px0[1]+A+"Z")}D(e,a,h);var M=v.castOption(g.textposition,a.pts),O=u.selectAll("g.slicetext").data(a.text&&"none"!==M?[0]:[]);O.enter().append("g").classed("slicetext",!0),O.exit().remove(),O.each((function(){var u=s.ensureSingle(n.select(this),"text","",(function(e){e.attr("data-notex",1)})),d=s.ensureUniformFontSize(e,"outside"===M?function(e,t,r){var n=v.castOption(e.outsidetextfont.color,t.pts)||v.castOption(e.textfont.color,t.pts)||r.color,a=v.castOption(e.outsidetextfont.family,t.pts)||v.castOption(e.textfont.family,t.pts)||r.family,i=v.castOption(e.outsidetextfont.size,t.pts)||v.castOption(e.textfont.size,t.pts)||r.size;return{color:n,family:a,size:i}}(g,a,r.font):x(g,a,r.font));u.text(a.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(l.font,d).call(f.convertToTspans,e);var y,m=l.bBox(u.node());if("outside"===M)y=C(m,a);else if(y=_(m,a,h),"auto"===M&&y.scale<1){var b=s.ensureUniformFontSize(e,g.outsidetextfont);u.call(l.font,b),y=C(m=l.bBox(u.node()),a)}var k=y.textPosAngle,T=void 0===k?a.pxmid:z(h.r,k);if(y.targetX=o+T[0]*y.rCenter+(y.x||0),y.targetY=c+T[1]*y.rCenter+(y.y||0),I(y,m),y.outside){var A=y.targetY;a.yLabelMin=A-m.height/2,a.yLabelMid=A,a.yLabelMax=A+m.height/2,a.labelExtraX=0,a.labelExtraY=0,w=!0}y.fontSize=d.size,p(g.type,y,r),t[i].transform=y,u.attr("transform",s.getTextTransform(y))}))}function E(e,t,r,n){var i=n*(t[0]-e[0]),o=n*(t[1]-e[1]);return"a"+n*h.r+","+n*h.r+" 0 "+a.largeArc+(r?" 1 ":" 0 ")+i+","+o}}));var k=n.select(this).selectAll("g.titletext").data(g.title.text?[0]:[]);if(k.enter().append("g").classed("titletext",!0),k.exit().remove(),k.each((function(){var t,r=s.ensureSingle(n.select(this),"text","",(function(e){e.attr("data-notex",1)})),a=g.title.text;g._meta&&(a=s.templateString(a,g._meta)),r.text(a).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(l.font,g.title.font).call(f.convertToTspans,e),t="middle center"===g.title.position?function(e){var t=Math.sqrt(e.titleBox.width*e.titleBox.width+e.titleBox.height*e.titleBox.height);return{x:e.cx,y:e.cy,scale:e.trace.hole*e.r*2/t,tx:0,ty:-e.titleBox.height/2+e.trace.title.font.size}}(h):E(h,i),r.attr("transform",u(t.x,t.y)+c(Math.min(1,t.scale))+u(t.tx,t.ty))})),w&&function(e,t){var r,n,a,i,o,l,s,c,u,f,d,p,h;function g(e,t){return e.pxmid[1]-t.pxmid[1]}function y(e,t){return t.pxmid[1]-e.pxmid[1]}function m(e,r){r||(r={});var a,c,u,d,p=r.labelExtraY+(n?r.yLabelMax:r.yLabelMin),h=n?e.yLabelMin:e.yLabelMax,g=n?e.yLabelMax:e.yLabelMin,y=e.cyFinal+o(e.px0[1],e.px1[1]),m=p-h;if(m*s>0&&(e.labelExtraY=m),Array.isArray(t.pull))for(c=0;c<f.length;c++)(u=f[c])===e||(v.castOption(t.pull,e.pts)||0)>=(v.castOption(t.pull,u.pts)||0)||((e.pxmid[1]-u.pxmid[1])*s>0?(m=u.cyFinal+o(u.px0[1],u.px1[1])-h-e.labelExtraY)*s>0&&(e.labelExtraY+=m):(g+e.labelExtraY-y)*s>0&&(a=3*l*Math.abs(c-f.indexOf(e)),(d=u.cxFinal+i(u.px0[0],u.px1[0])+a-(e.cxFinal+e.pxmid[0])-e.labelExtraX)*l>0&&(e.labelExtraX+=d)))}for(n=0;n<2;n++)for(a=n?g:y,o=n?Math.max:Math.min,s=n?1:-1,r=0;r<2;r++){for(i=r?Math.max:Math.min,l=r?1:-1,(c=e[n][r]).sort(a),u=e[1-n][r],f=u.concat(c),p=[],d=0;d<c.length;d++)void 0!==c[d].yLabelMid&&p.push(c[d]);for(h=!1,d=0;n&&d<u.length;d++)if(void 0!==u[d].yLabelMid){h=u[d];break}for(d=0;d<p.length;d++){var b=d&&p[d-1];h&&!d&&(b=h),m(p[d],b)}}}(m,g),function(e,t){e.each((function(e){var r=n.select(this);if(e.labelExtraX||e.labelExtraY){var a=r.select("g.slicetext text");e.transform.targetX+=e.labelExtraX,e.transform.targetY+=e.labelExtraY,a.attr("transform",s.getTextTransform(e.transform));var i=e.cxFinal+e.pxmid[0],l="M"+i+","+(e.cyFinal+e.pxmid[1]),c=(e.yLabelMax-e.yLabelMin)*(e.pxmid[0]<0?-1:1)/4;if(e.labelExtraX){var u=e.labelExtraX*e.pxmid[1]/e.pxmid[0],f=e.yLabelMid+e.labelExtraY-(e.cyFinal+e.pxmid[1]);Math.abs(u)>Math.abs(f)?l+="l"+f*e.pxmid[0]/e.pxmid[1]+","+f+"H"+(i+e.labelExtraX+c):l+="l"+e.labelExtraX+","+u+"v"+(f-u)+"h"+c}else l+="V"+(e.yLabelMid+e.labelExtraY)+"h"+c;s.ensureSingle(r,"path","textline").call(o.stroke,t.outsidetextfont.color).attr({"stroke-width":Math.min(2,t.outsidetextfont.size/8),d:l,fill:"none"})}else r.select("path.textline").remove()}))}(y,g),w&&g.automargin){var T=l.bBox(d.node()),A=g.domain,S=i.w*(A.x[1]-A.x[0]),M=i.h*(A.y[1]-A.y[0]),O=(.5*S-h.r)/i.w,L=(.5*M-h.r)/i.h;a.autoMargin(e,"pie."+g.uid+".automargin",{xl:A.x[0]-O,xr:A.x[1]+O,yb:A.y[0]-L,yt:A.y[1]+L,l:Math.max(h.cx-h.r-T.left,0),r:Math.max(T.right-(h.cx+h.r),0),b:Math.max(T.bottom-(h.cy+h.r),0),t:Math.max(h.cy-h.r-T.top,0),pad:5})}}))}));setTimeout((function(){d.selectAll("tspan").each((function(){var e=n.select(this);e.attr("dy")&&e.attr("dy",e.attr("dy"))}))}),0)},formatSliceLabel:D,transformInsideText:_,determineInsideTextFont:x,positionTitleOutside:E,prerenderTitles:w,layoutAreas:j,attachFxHandlers:b,computeTransform:I}},function(e,t,r){"use strict";var n=r(0).extendFlat,a=r(79),i=r(76).axisHoverFormat,o=r(66).dash,l=r(119),s=r(312),c=s.INCREASING.COLOR,u=s.DECREASING.COLOR,f=a.line;function d(e){return{line:{color:n({},f.color,{dflt:e}),width:f.width,dash:o,editType:"style"},editType:"style"}}e.exports={xperiod:a.xperiod,xperiod0:a.xperiod0,xperiodalignment:a.xperiodalignment,xhoverformat:i("x"),yhoverformat:i("y"),x:{valType:"data_array",editType:"calc+clearAxisTypes",description:["Sets the x coordinates.","If absent, linear coordinate will be generated."].join(" ")},open:{valType:"data_array",editType:"calc",description:"Sets the open values."},high:{valType:"data_array",editType:"calc",description:"Sets the high values."},low:{valType:"data_array",editType:"calc",description:"Sets the low values."},close:{valType:"data_array",editType:"calc",description:"Sets the close values."},line:{width:n({},f.width,{description:[f.width,"Note that this style setting can also be set per","direction via `increasing.line.width` and","`decreasing.line.width`."].join(" ")}),dash:n({},o,{description:[o.description,"Note that this style setting can also be set per","direction via `increasing.line.dash` and","`decreasing.line.dash`."].join(" ")}),editType:"style"},increasing:d(c),decreasing:d(u),text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc",description:["Sets hover text elements associated with each sample point.","If a single string, the same string appears over","all the data points.","If an array of string, the items are mapped in order to","this trace's sample points."].join(" ")},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc",description:"Same as `text`."},tickwidth:{valType:"number",min:0,max:.5,dflt:.3,editType:"calc",description:["Sets the width of the open/close tick marks","relative to the *x* minimal interval."].join(" ")},hoverlabel:n({},l.hoverlabel,{split:{valType:"boolean",dflt:!1,editType:"style",description:["Show hover information (open, close, high, low) in","separate labels."].join(" ")}})}},function(e,t,r){"use strict";e.exports={INCREASING:{COLOR:"#3D9970",SYMBOL:"\u25b2"},DECREASING:{COLOR:"#FF4136",SYMBOL:"\u25bc"}}},function(e,t,r){"use strict";var n=r(44),a=r(79),i=r(76).axisHoverFormat,o=r(67),l=r(163),s=r(22).extendFlat,c=r(55).overrideAll,u=r(132).DASHES,f=a.line,d=a.marker,p=d.line,h=e.exports=c({x:a.x,x0:a.x0,dx:a.dx,y:a.y,y0:a.y0,dy:a.dy,xperiod:a.xperiod,yperiod:a.yperiod,xperiod0:a.xperiod0,yperiod0:a.yperiod0,xperiodalignment:a.xperiodalignment,yperiodalignment:a.yperiodalignment,xhoverformat:i("x"),yhoverformat:i("y"),text:a.text,hovertext:a.hovertext,textposition:a.textposition,textfont:a.textfont,mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"],description:["Determines the drawing mode for this scatter trace."].join(" ")},line:{color:f.color,width:f.width,shape:{valType:"enumerated",values:["linear","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot",description:["Determines the line shape.","The values correspond to step-wise line shapes."].join(" ")},dash:{valType:"enumerated",values:l(u),dflt:"solid",description:"Sets the style of the lines."}},marker:s({},o("marker"),{symbol:d.symbol,size:d.size,sizeref:d.sizeref,sizemin:d.sizemin,sizemode:d.sizemode,opacity:d.opacity,colorbar:d.colorbar,line:s({},o("marker.line"),{width:p.width})}),connectgaps:a.connectgaps,fill:s({},a.fill,{dflt:"none"}),fillcolor:a.fillcolor,selected:{marker:a.selected.marker,textfont:a.selected.textfont},unselected:{marker:a.unselected.marker,textfont:a.unselected.textfont},opacity:n.opacity},"calc","nested");h.x.editType=h.y.editType=h.x0.editType=h.y0.editType="calc+clearAxisTypes",h.hovertemplate=a.hovertemplate,h.texttemplate=a.texttemplate},function(e,t,r){"use strict";var n=r(132);t.isOpenSymbol=function(e){return"string"===typeof e?n.OPEN_RE.test(e):e%200>100},t.isDotSymbol=function(e){return"string"===typeof e?n.DOT_RE.test(e):e>200}},function(e,t,r){"use strict";e.exports=r(659)},function(e,t){e.exports=function(){for(var e=0;e<arguments.length;e++)if(void 0!==arguments[e])return arguments[e]}},function(e,t){e.exports=function(e){var t=0,r=0,n=0,a=0;return e.map((function(e){var i=(e=e.slice())[0],o=i.toUpperCase();if(i!=o)switch(e[0]=o,i){case"a":e[6]+=n,e[7]+=a;break;case"v":e[1]+=a;break;case"h":e[1]+=n;break;default:for(var l=1;l<e.length;)e[l++]+=n,e[l++]+=a}switch(o){case"Z":n=t,a=r;break;case"H":n=e[1];break;case"V":a=e[1];break;case"M":n=t=e[1],a=r=e[2];break;default:n=e[e.length-2],a=e[e.length-1]}return e}))}},function(e,t,r){"use strict";e.exports=function(e){return"string"===typeof e&&(e=e.trim(),!!(/^[mzlhvcsqta]\s*[-+.0-9][^mlhvzcsqta]+/i.test(e)&&/[\dz]$/i.test(e)&&e.length>4))}},function(e,t,r){"use strict";var n=Object.prototype.toString;e.exports=function(e){var t;return"[object Object]"===n.call(e)&&(null===(t=Object.getPrototypeOf(e))||t===Object.getPrototypeOf({}))}},function(e,t,r){"use strict";var n=r(0),a=r(8),i=r(91).DESELECTDIM;e.exports={styleTextSelection:function(e){var t,r,o=e[0],l=o.trace,s=o.t,c=s._scene,u=s.index,f=c.selectBatch[u],d=c.unselectBatch[u],p=c.textOptions[u],h=c.textSelectedOptions[u]||{},g=c.textUnselectedOptions[u]||{},v=n.extendFlat({},p);if(f.length||d.length){var y=h.color,m=g.color,b=p.color,x=Array.isArray(b);for(v.color=new Array(l._length),t=0;t<f.length;t++)r=f[t],v.color[r]=y||(x?b[r]:b);for(t=0;t<d.length;t++){r=d[t];var w=x?b[r]:b;v.color[r]=m||(y?w:a.addOpacity(w,i))}}c.glText[u].update(v)}}},function(e,t){e.exports=function(e){"string"===typeof e&&(e=[e]);for(var t=[].slice.call(arguments,1),r=[],n=0;n<e.length-1;n++)r.push(e[n],t[n]||"");return r.push(e[n]),r.join("")}},function(e,t,r){"use strict";e.exports=function(e,t,r){Array.isArray(r)||(r=[].slice.call(arguments,2));for(var n=0,a=r.length;n<a;n++){var i=r[n];for(var o in i)if((void 0===t[o]||Array.isArray(t[o])||e[o]!==t[o])&&o in t){var l;if(!0===i[o])l=t[o];else{if(!1===i[o])continue;if("function"===typeof i[o]&&void 0===(l=i[o](t[o],e,t)))continue}e[o]=l}}return e}},function(e,t,r){"use strict";e.exports=r(689)()?WeakMap:r(690)},function(e,t,r){"use strict";var n=Object.create,a=Object.getPrototypeOf,i={};e.exports=function(){var e=Object.setPrototypeOf,t=arguments[0]||n;return"function"===typeof e&&a(e(t(null),i))===i}},function(e,t,r){"use strict";var n,a=r(143),i=r(37),o=Object.prototype.isPrototypeOf,l=Object.defineProperty,s={configurable:!0,enumerable:!1,writable:!0,value:void 0};n=function(e,t){if(i(e),null===t||a(t))return e;throw new TypeError("Prototype must be null or an object")},e.exports=function(e){var t,r;return e?(2===e.level?e.set?(r=e.set,t=function(e,t){return r.call(n(e,t),t),e}):t=function(e,t){return n(e,t).__proto__=t,e}:t=function e(t,r){var a;return n(t,r),(a=o.call(e.nullPolyfill,t))&&delete e.nullPolyfill.__proto__,null===r&&(r=e.nullPolyfill),t.__proto__=r,a&&l(e.nullPolyfill,"__proto__",s),t},Object.defineProperty(t,"level",{configurable:!1,enumerable:!1,writable:!1,value:e.level})):null}(function(){var e,t=Object.create(null),r={},n=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__");if(n){try{(e=n.set).call(t,r)}catch(a){}if(Object.getPrototypeOf(t)===r)return{set:e,level:2}}return t.__proto__=r,Object.getPrototypeOf(t)===r?{level:2}:((t={}).__proto__=r,Object.getPrototypeOf(t)===r&&{level:1})}()),r(691)},function(e,t,r){"use strict";var n=r(115),a=r(116),i=r(694),o=r(703),l=r(704),s=r(62).iterator;e.exports=function(e){return"function"===typeof l(e)[s]?e[s]():n(e)?new i(e):a(e)?new o(e):new i(e)}},function(e,t,r){"use strict";var n,a=r(695),i=r(112),o=r(42),l=r(37),s=r(38),c=r(696),u=r(62),f=Object.defineProperty,d=Object.defineProperties;e.exports=n=function(e,t){if(!(this instanceof n))throw new TypeError("Constructor requires 'new'");d(this,{__list__:s("w",l(e)),__context__:s("w",t),__nextIndex__:s("w",0)}),t&&(o(t.on),t.on("_add",this._onAdd),t.on("_delete",this._onDelete),t.on("_clear",this._onClear))},delete n.prototype.constructor,d(n.prototype,i({_next:s((function(){var e;if(this.__list__)return this.__redo__&&void 0!==(e=this.__redo__.shift())?e:this.__nextIndex__<this.__list__.length?this.__nextIndex__++:void this._unBind()})),next:s((function(){return this._createResult(this._next())})),_createResult:s((function(e){return void 0===e?{done:!0,value:void 0}:{done:!1,value:this._resolve(e)}})),_resolve:s((function(e){return this.__list__[e]})),_unBind:s((function(){this.__list__=null,delete this.__redo__,this.__context__&&(this.__context__.off("_add",this._onAdd),this.__context__.off("_delete",this._onDelete),this.__context__.off("_clear",this._onClear),this.__context__=null)})),toString:s((function(){return"[object "+(this[u.toStringTag]||"Object")+"]"}))},c({_onAdd:s((function(e){e>=this.__nextIndex__||(++this.__nextIndex__,this.__redo__?(this.__redo__.forEach((function(t,r){t>=e&&(this.__redo__[r]=++t)}),this),this.__redo__.push(e)):f(this,"__redo__",s("c",[e])))})),_onDelete:s((function(e){var t;e>=this.__nextIndex__||(--this.__nextIndex__,this.__redo__&&(-1!==(t=this.__redo__.indexOf(e))&&this.__redo__.splice(t,1),this.__redo__.forEach((function(t,r){t>e&&(this.__redo__[r]=--t)}),this)))})),_onClear:s((function(){this.__redo__&&a.call(this.__redo__),this.__nextIndex__=0}))}))),f(n.prototype,u.iterator,s((function(){return this})))},function(e,t,r){"use strict";var n=r(70),a=r(144),i=r(698),o=r(699),l=function(e,t){return e.replace("%v",o(t))};e.exports=function(e,t,r){if(!a(r))throw new TypeError(l(t,e));if(!n(e)){if("default"in r)return r.default;if(r.isOptional)return null}var o=i(r.errorMessage);throw n(o)||(o=t),new TypeError(l(o,e))}},function(e){e.exports=JSON.parse('["inherit","initial","unset"]')},function(e){e.exports=JSON.parse('["caption","icon","menu","message-box","small-caption","status-bar"]')},function(e){e.exports=JSON.parse('["normal","bold","bolder","lighter","100","200","300","400","500","600","700","800","900"]')},function(e){e.exports=JSON.parse('["normal","italic","oblique"]')},function(e){e.exports=JSON.parse('["normal","condensed","semi-condensed","extra-condensed","ultra-condensed","expanded","semi-expanded","extra-expanded","ultra-expanded"]')},function(e,t,r){"use strict";var n=r(716);e.exports={isSize:function(e){return/^[\d\.]/.test(e)||-1!==e.indexOf("/")||-1!==n.indexOf(e)}}},function(e,t,r){"use strict";var n=r(57),a=r(334).isSize,i=g(r(329)),o=g(r(330)),l=g(r(331)),s=g(r(332)),c=g(r(333)),u={normal:1,"small-caps":1},f={serif:1,"sans-serif":1,monospace:1,cursive:1,fantasy:1,"system-ui":1},d="1rem",p="serif";function h(e,t){if(e&&!t[e]&&!i[e])throw Error("Unknown keyword `"+e+"`");return e}function g(e){for(var t={},r=0;r<e.length;r++)t[e[r]]=1;return t}e.exports=function(e){if((e=n(e,{style:"style fontstyle fontStyle font-style slope distinction",variant:"variant font-variant fontVariant fontvariant var capitalization",weight:"weight w font-weight fontWeight fontweight",stretch:"stretch font-stretch fontStretch fontstretch width",size:"size s font-size fontSize fontsize height em emSize",lineHeight:"lh line-height lineHeight lineheight leading",family:"font family fontFamily font-family fontfamily type typeface face",system:"system reserved default global"})).system)return e.system&&h(e.system,o),e.system;if(h(e.style,s),h(e.variant,u),h(e.weight,l),h(e.stretch,c),null==e.size&&(e.size=d),"number"===typeof e.size&&(e.size+="px"),!a)throw Error("Bad size value `"+e.size+"`");e.family||(e.family=p),Array.isArray(e.family)&&(e.family.length||(e.family=[p]),e.family=e.family.map((function(e){return f[e]?e:'"'+e+'"'})).join(", "));var t=[];return t.push(e.style),e.variant!==e.style&&t.push(e.variant),e.weight!==e.variant&&e.weight!==e.style&&t.push(e.weight),e.stretch!==e.weight&&e.stretch!==e.variant&&e.stretch!==e.style&&t.push(e.stretch),t.push(e.size+(null==e.lineHeight||"normal"===e.lineHeight||e.lineHeight+""==="1"?"":"/"+e.lineHeight)),t.push(e.family),t.filter(Boolean).join(" ")}},function(e,t,r){e.exports=function(){"use strict";var e=function(e,t){for(var r=Object.keys(t),n=0;n<r.length;++n)e[r[n]]=t[r[n]];return e},t=0,r=0,n=5,a=6;function i(e,r){this.id=t++,this.type=e,this.data=r}function o(e){return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}function l(e){if(0===e.length)return[];var t=e.charAt(0),r=e.charAt(e.length-1);if(e.length>1&&t===r&&('"'===t||"'"===t))return['"'+o(e.substr(1,e.length-2))+'"'];var n=/\[(false|true|null|\d+|'[^']*'|"[^"]*")\]/.exec(e);if(n)return l(e.substr(0,n.index)).concat(l(n[1])).concat(l(e.substr(n.index+n[0].length)));var a=e.split(".");if(1===a.length)return['"'+o(e)+'"'];for(var i=[],s=0;s<a.length;++s)i=i.concat(l(a[s]));return i}function s(e){return"["+l(e).join("][")+"]"}function c(e,t){return new i(e,s(t+""))}function u(e){return"function"===typeof e&&!e._reglType||e instanceof i}function f(e,t){return"function"===typeof e?new i(r,e):"number"===typeof e||"boolean"===typeof e?new i(n,e):Array.isArray(e)?new i(a,e.map((function(e,r){return f(e,t+"["+r+"]")}))):e instanceof i?e:void 0}var d={DynamicVariable:i,define:c,isDynamic:u,unbox:f,accessor:s},p={next:"function"===typeof requestAnimationFrame?function(e){return requestAnimationFrame(e)}:function(e){return setTimeout(e,16)},cancel:"function"===typeof cancelAnimationFrame?function(e){return cancelAnimationFrame(e)}:clearTimeout},h="undefined"!==typeof performance&&performance.now?function(){return performance.now()}:function(){return+new Date};function g(){var e={"":0},t=[""];return{id:function(r){var n=e[r];return n||(n=e[r]=t.length,t.push(r),n)},str:function(e){return t[e]}}}function v(t,r,n){var a,i=document.createElement("canvas");function o(){var e=window.innerWidth,r=window.innerHeight;if(t!==document.body){var a=i.getBoundingClientRect();e=a.right-a.left,r=a.bottom-a.top}i.width=n*e,i.height=n*r}function l(){a?a.disconnect():window.removeEventListener("resize",o),t.removeChild(i)}return e(i.style,{border:0,margin:0,padding:0,top:0,left:0,width:"100%",height:"100%"}),t.appendChild(i),t===document.body&&(i.style.position="absolute",e(t.style,{margin:0,padding:0})),t!==document.body&&"function"===typeof ResizeObserver?(a=new ResizeObserver((function(){setTimeout(o)}))).observe(t):window.addEventListener("resize",o,!1),o(),{canvas:i,onDestroy:l}}function y(e,t){function r(r){try{return e.getContext(r,t)}catch(n){return null}}return r("webgl")||r("experimental-webgl")||r("webgl-experimental")}function m(e){return"string"===typeof e.nodeName&&"function"===typeof e.appendChild&&"function"===typeof e.getBoundingClientRect}function b(e){return"function"===typeof e.drawArrays||"function"===typeof e.drawElements}function x(e){return"string"===typeof e?e.split():e}function w(e){return"string"===typeof e?document.querySelector(e):e}function _(e){var t,r,n,a,i=e||{},o={},l=[],s=[],c="undefined"===typeof window?1:window.devicePixelRatio,u=!1,f={},d=function(e){},p=function(){};if("string"===typeof i?t=document.querySelector(i):"object"===typeof i&&(m(i)?t=i:b(i)?n=(a=i).canvas:("gl"in i?a=i.gl:"canvas"in i?n=w(i.canvas):"container"in i&&(r=w(i.container)),"attributes"in i&&(o=i.attributes),"extensions"in i&&(l=x(i.extensions)),"optionalExtensions"in i&&(s=x(i.optionalExtensions)),"onDone"in i&&(d=i.onDone),"profile"in i&&(u=!!i.profile),"pixelRatio"in i&&(c=+i.pixelRatio),"cachedCode"in i&&(f=i.cachedCode))),t&&("canvas"===t.nodeName.toLowerCase()?n=t:r=t),!a){if(!n){var h=v(r||document.body,d,c);if(!h)return null;n=h.canvas,p=h.onDestroy}void 0===o.premultipliedAlpha&&(o.premultipliedAlpha=!0),a=y(n,o)}return a?{gl:a,canvas:n,container:r,extensions:l,optionalExtensions:s,pixelRatio:c,profile:u,cachedCode:f,onDone:d,onDestroy:p}:(p(),d("webgl not supported, try upgrading your browser or graphics drivers http://get.webgl.org"),null)}function k(e,t){var r={};function n(t){var n,a=t.toLowerCase();try{n=r[a]=e.getExtension(a)}catch(i){}return!!n}for(var a=0;a<t.extensions.length;++a){var i=t.extensions[a];if(!n(i))return t.onDestroy(),t.onDone('"'+i+'" extension is not supported by the current WebGL context, try upgrading your system or a different browser'),null}return t.optionalExtensions.forEach(n),{extensions:r,restore:function(){Object.keys(r).forEach((function(e){if(r[e]&&!n(e))throw new Error("(regl): error restoring extension "+e)}))}}}function T(e,t){for(var r=Array(e),n=0;n<e;++n)r[n]=t(n);return r}var A=5120,S=5121,M=5122,O=5123,C=5124,E=5125,L=5126;function P(e){for(var t=16;t<=1<<28;t*=16)if(e<=t)return t;return 0}function j(e){var t,r;return t=(e>65535)<<4,t|=r=((e>>>=t)>255)<<3,t|=r=((e>>>=r)>15)<<2,(t|=r=((e>>>=r)>3)<<1)|(e>>>=r)>>1}function z(){var e=T(8,(function(){return[]}));function t(t){var r=P(t),n=e[j(r)>>2];return n.length>0?n.pop():new ArrayBuffer(r)}function r(t){e[j(t.byteLength)>>2].push(t)}function n(e,r){var n=null;switch(e){case A:n=new Int8Array(t(r),0,r);break;case S:n=new Uint8Array(t(r),0,r);break;case M:n=new Int16Array(t(2*r),0,r);break;case O:n=new Uint16Array(t(2*r),0,r);break;case C:n=new Int32Array(t(4*r),0,r);break;case E:n=new Uint32Array(t(4*r),0,r);break;case L:n=new Float32Array(t(4*r),0,r);break;default:return null}return n.length!==r?n.subarray(0,r):n}function a(e){r(e.buffer)}return{alloc:t,free:r,allocType:n,freeType:a}}var D=z();D.zero=z();var I=3408,N=3410,R=3411,F=3412,B=3413,U=3414,H=3415,V=33901,q=33902,W=3379,Y=3386,G=34921,X=36347,Z=36348,$=35661,Q=35660,K=34930,J=36349,ee=34076,te=34024,re=7936,ne=7937,ae=7938,ie=35724,oe=34047,le=36063,se=34852,ce=3553,ue=34067,fe=34069,de=33984,pe=6408,he=5126,ge=5121,ve=36160,ye=36053,me=36064,be=16384,xe=function(e,t){var r=1;t.ext_texture_filter_anisotropic&&(r=e.getParameter(oe));var n=1,a=1;t.webgl_draw_buffers&&(n=e.getParameter(se),a=e.getParameter(le));var i=!!t.oes_texture_float;if(i){var o=e.createTexture();e.bindTexture(ce,o),e.texImage2D(ce,0,pe,1,1,0,pe,he,null);var l=e.createFramebuffer();if(e.bindFramebuffer(ve,l),e.framebufferTexture2D(ve,me,ce,o,0),e.bindTexture(ce,null),e.checkFramebufferStatus(ve)!==ye)i=!1;else{e.viewport(0,0,1,1),e.clearColor(1,0,0,1),e.clear(be);var s=D.allocType(he,4);e.readPixels(0,0,1,1,pe,he,s),e.getError()?i=!1:(e.deleteFramebuffer(l),e.deleteTexture(o),i=1===s[0]),D.freeType(s)}}var c=!0;if("undefined"===typeof navigator||!(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)||/Edge/.test(navigator.userAgent))){var u=e.createTexture(),f=D.allocType(ge,36);e.activeTexture(de),e.bindTexture(ue,u),e.texImage2D(fe,0,pe,3,3,0,pe,ge,f),D.freeType(f),e.bindTexture(ue,null),e.deleteTexture(u),c=!e.getError()}return{colorBits:[e.getParameter(N),e.getParameter(R),e.getParameter(F),e.getParameter(B)],depthBits:e.getParameter(U),stencilBits:e.getParameter(H),subpixelBits:e.getParameter(I),extensions:Object.keys(t).filter((function(e){return!!t[e]})),maxAnisotropic:r,maxDrawbuffers:n,maxColorAttachments:a,pointSizeDims:e.getParameter(V),lineWidthDims:e.getParameter(q),maxViewportDims:e.getParameter(Y),maxCombinedTextureUnits:e.getParameter($),maxCubeMapSize:e.getParameter(ee),maxRenderbufferSize:e.getParameter(te),maxTextureUnits:e.getParameter(K),maxTextureSize:e.getParameter(W),maxAttributes:e.getParameter(G),maxVertexUniforms:e.getParameter(X),maxVertexTextureUnits:e.getParameter(Q),maxVaryingVectors:e.getParameter(Z),maxFragmentUniforms:e.getParameter(J),glsl:e.getParameter(ie),renderer:e.getParameter(ne),vendor:e.getParameter(re),version:e.getParameter(ae),readFloat:i,npotTextureCube:c}},we=function(e){return e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Uint32Array||e instanceof Int8Array||e instanceof Int16Array||e instanceof Int32Array||e instanceof Float32Array||e instanceof Float64Array||e instanceof Uint8ClampedArray};function _e(e){return!!e&&"object"===typeof e&&Array.isArray(e.shape)&&Array.isArray(e.stride)&&"number"===typeof e.offset&&e.shape.length===e.stride.length&&(Array.isArray(e.data)||we(e.data))}var ke=function(e){return Object.keys(e).map((function(t){return e[t]}))},Te={shape:Ee,flatten:Ce};function Ae(e,t,r){for(var n=0;n<t;++n)r[n]=e[n]}function Se(e,t,r,n){for(var a=0,i=0;i<t;++i)for(var o=e[i],l=0;l<r;++l)n[a++]=o[l]}function Me(e,t,r,n,a,i){for(var o=i,l=0;l<t;++l)for(var s=e[l],c=0;c<r;++c)for(var u=s[c],f=0;f<n;++f)a[o++]=u[f]}function Oe(e,t,r,n,a){for(var i=1,o=r+1;o<t.length;++o)i*=t[o];var l=t[r];if(t.length-r===4){var s=t[r+1],c=t[r+2],u=t[r+3];for(o=0;o<l;++o)Me(e[o],s,c,u,n,a),a+=i}else for(o=0;o<l;++o)Oe(e[o],t,r+1,n,a),a+=i}function Ce(e,t,r,n){var a=1;if(t.length)for(var i=0;i<t.length;++i)a*=t[i];else a=0;var o=n||D.allocType(r,a);switch(t.length){case 0:break;case 1:Ae(e,t[0],o);break;case 2:Se(e,t[0],t[1],o);break;case 3:Me(e,t[0],t[1],t[2],o,0);break;default:Oe(e,t,0,o,0)}return o}function Ee(e){for(var t=[],r=e;r.length;r=r[0])t.push(r.length);return t}var Le={"[object Int8Array]":5120,"[object Int16Array]":5122,"[object Int32Array]":5124,"[object Uint8Array]":5121,"[object Uint8ClampedArray]":5121,"[object Uint16Array]":5123,"[object Uint32Array]":5125,"[object Float32Array]":5126,"[object Float64Array]":5121,"[object ArrayBuffer]":5121},Pe={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},je={dynamic:35048,stream:35040,static:35044},ze=Te.flatten,De=Te.shape,Ie=35044,Ne=35040,Re=5121,Fe=5126,Be=[];function Ue(e){return 0|Le[Object.prototype.toString.call(e)]}function He(e,t){for(var r=0;r<t.length;++r)e[r]=t[r]}function Ve(e,t,r,n,a,i,o){for(var l=0,s=0;s<r;++s)for(var c=0;c<n;++c)e[l++]=t[a*s+i*c+o]}function qe(e,t,r,n){var a=0,i={};function o(t){this.id=a++,this.buffer=e.createBuffer(),this.type=t,this.usage=Ie,this.byteLength=0,this.dimension=1,this.dtype=Re,this.persistentData=null,r.profile&&(this.stats={size:0})}o.prototype.bind=function(){e.bindBuffer(this.type,this.buffer)},o.prototype.destroy=function(){d(this)};var l=[];function s(e,t){var r=l.pop();return r||(r=new o(e)),r.bind(),f(r,t,Ne,0,1,!1),r}function c(e){l.push(e)}function u(t,r,n){t.byteLength=r.byteLength,e.bufferData(t.type,r,n)}function f(e,t,r,n,a,i){var o,l;if(e.usage=r,Array.isArray(t)){if(e.dtype=n||Fe,t.length>0)if(Array.isArray(t[0])){o=De(t);for(var s=1,c=1;c<o.length;++c)s*=o[c];e.dimension=s,u(e,l=ze(t,o,e.dtype),r),i?e.persistentData=l:D.freeType(l)}else if("number"===typeof t[0]){e.dimension=a;var f=D.allocType(e.dtype,t.length);He(f,t),u(e,f,r),i?e.persistentData=f:D.freeType(f)}else we(t[0])&&(e.dimension=t[0].length,e.dtype=n||Ue(t[0])||Fe,u(e,l=ze(t,[t.length,t[0].length],e.dtype),r),i?e.persistentData=l:D.freeType(l))}else if(we(t))e.dtype=n||Ue(t),e.dimension=a,u(e,t,r),i&&(e.persistentData=new Uint8Array(new Uint8Array(t.buffer)));else if(_e(t)){o=t.shape;var d=t.stride,p=t.offset,h=0,g=0,v=0,y=0;1===o.length?(h=o[0],g=1,v=d[0],y=0):2===o.length&&(h=o[0],g=o[1],v=d[0],y=d[1]),e.dtype=n||Ue(t.data)||Fe,e.dimension=g;var m=D.allocType(e.dtype,h*g);Ve(m,t.data,h,g,v,y,p),u(e,m,r),i?e.persistentData=m:D.freeType(m)}else t instanceof ArrayBuffer&&(e.dtype=Re,e.dimension=a,u(e,t,r),i&&(e.persistentData=new Uint8Array(new Uint8Array(t))))}function d(r){t.bufferCount--,n(r);var a=r.buffer;e.deleteBuffer(a),r.buffer=null,delete i[r.id]}function p(n,a,l,s){t.bufferCount++;var c=new o(a);function u(t){var n=Ie,a=null,i=0,o=0,l=1;return Array.isArray(t)||we(t)||_e(t)||t instanceof ArrayBuffer?a=t:"number"===typeof t?i=0|t:t&&("data"in t&&(a=t.data),"usage"in t&&(n=je[t.usage]),"type"in t&&(o=Pe[t.type]),"dimension"in t&&(l=0|t.dimension),"length"in t&&(i=0|t.length)),c.bind(),a?f(c,a,n,o,l,s):(i&&e.bufferData(c.type,i,n),c.dtype=o||Re,c.usage=n,c.dimension=l,c.byteLength=i),r.profile&&(c.stats.size=c.byteLength*Be[c.dtype]),u}function p(t,r){e.bufferSubData(c.type,r,t)}function h(e,t){var r,n=0|(t||0);if(c.bind(),we(e)||e instanceof ArrayBuffer)p(e,n);else if(Array.isArray(e)){if(e.length>0)if("number"===typeof e[0]){var a=D.allocType(c.dtype,e.length);He(a,e),p(a,n),D.freeType(a)}else if(Array.isArray(e[0])||we(e[0])){r=De(e);var i=ze(e,r,c.dtype);p(i,n),D.freeType(i)}}else if(_e(e)){r=e.shape;var o=e.stride,l=0,s=0,f=0,d=0;1===r.length?(l=r[0],s=1,f=o[0],d=0):2===r.length&&(l=r[0],s=r[1],f=o[0],d=o[1]);var h=Array.isArray(e.data)?c.dtype:Ue(e.data),g=D.allocType(h,l*s);Ve(g,e.data,l,s,f,d,e.offset),p(g,n),D.freeType(g)}return u}return i[c.id]=c,l||u(n),u._reglType="buffer",u._buffer=c,u.subdata=h,r.profile&&(u.stats=c.stats),u.destroy=function(){d(c)},u}function h(){ke(i).forEach((function(t){t.buffer=e.createBuffer(),e.bindBuffer(t.type,t.buffer),e.bufferData(t.type,t.persistentData||t.byteLength,t.usage)}))}return r.profile&&(t.getTotalBufferSize=function(){var e=0;return Object.keys(i).forEach((function(t){e+=i[t].stats.size})),e}),{create:p,createStream:s,destroyStream:c,clear:function(){ke(i).forEach(d),l.forEach(d)},getBuffer:function(e){return e&&e._buffer instanceof o?e._buffer:null},restore:h,_initBuffer:f}}Be[5120]=1,Be[5122]=2,Be[5124]=4,Be[5121]=1,Be[5123]=2,Be[5125]=4,Be[5126]=4;var We={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},Ye=0,Ge=1,Xe=4,Ze=5120,$e=5121,Qe=5122,Ke=5123,Je=5124,et=5125,tt=34963,rt=35040,nt=35044;function at(e,t,r,n){var a={},i=0,o={uint8:$e,uint16:Ke};function l(e){this.id=i++,a[this.id]=this,this.buffer=e,this.primType=Xe,this.vertCount=0,this.type=0}t.oes_element_index_uint&&(o.uint32=et),l.prototype.bind=function(){this.buffer.bind()};var s=[];function c(e){var t=s.pop();return t||(t=new l(r.create(null,tt,!0,!1)._buffer)),f(t,e,rt,-1,-1,0,0),t}function u(e){s.push(e)}function f(n,a,i,o,l,s,c){var u;if(n.buffer.bind(),a){var f=c;c||we(a)&&(!_e(a)||we(a.data))||(f=t.oes_element_index_uint?et:Ke),r._initBuffer(n.buffer,a,i,f,3)}else e.bufferData(tt,s,i),n.buffer.dtype=u||$e,n.buffer.usage=i,n.buffer.dimension=3,n.buffer.byteLength=s;if(u=c,!c){switch(n.buffer.dtype){case $e:case Ze:u=$e;break;case Ke:case Qe:u=Ke;break;case et:case Je:u=et}n.buffer.dtype=u}n.type=u;var d=l;d<0&&(d=n.buffer.byteLength,u===Ke?d>>=1:u===et&&(d>>=2)),n.vertCount=d;var p=o;if(o<0){p=Xe;var h=n.buffer.dimension;1===h&&(p=Ye),2===h&&(p=Ge),3===h&&(p=Xe)}n.primType=p}function d(e){n.elementsCount--,delete a[e.id],e.buffer.destroy(),e.buffer=null}function p(e,t){var a=r.create(null,tt,!0),i=new l(a._buffer);function s(e){if(e)if("number"===typeof e)a(e),i.primType=Xe,i.vertCount=0|e,i.type=$e;else{var t=null,r=nt,n=-1,l=-1,c=0,u=0;Array.isArray(e)||we(e)||_e(e)?t=e:("data"in e&&(t=e.data),"usage"in e&&(r=je[e.usage]),"primitive"in e&&(n=We[e.primitive]),"count"in e&&(l=0|e.count),"type"in e&&(u=o[e.type]),"length"in e?c=0|e.length:(c=l,u===Ke||u===Qe?c*=2:u!==et&&u!==Je||(c*=4))),f(i,t,r,n,l,c,u)}else a(),i.primType=Xe,i.vertCount=0,i.type=$e;return s}return n.elementsCount++,s(e),s._reglType="elements",s._elements=i,s.subdata=function(e,t){return a.subdata(e,t),s},s.destroy=function(){d(i)},s}return{create:p,createStream:c,destroyStream:u,getElements:function(e){return"function"===typeof e&&e._elements instanceof l?e._elements:null},clear:function(){ke(a).forEach(d)}}}var it=new Float32Array(1),ot=new Uint32Array(it.buffer),lt=5123;function st(e){for(var t=D.allocType(lt,e.length),r=0;r<e.length;++r)if(isNaN(e[r]))t[r]=65535;else if(e[r]===1/0)t[r]=31744;else if(e[r]===-1/0)t[r]=64512;else{it[0]=e[r];var n=ot[0],a=n>>>31<<15,i=(n<<1>>>24)-127,o=n>>13&1023;if(i<-24)t[r]=a;else if(i<-14){var l=-14-i;t[r]=a+(o+1024>>l)}else t[r]=i>15?a+31744:a+(i+15<<10)+o}return t}function ct(e){return Array.isArray(e)||we(e)}var ut=34467,ft=3553,dt=34067,pt=34069,ht=6408,gt=6406,vt=6407,yt=6409,mt=6410,bt=32854,xt=32855,wt=36194,_t=32819,kt=32820,Tt=33635,At=34042,St=6402,Mt=34041,Ot=35904,Ct=35906,Et=36193,Lt=33776,Pt=33777,jt=33778,zt=33779,Dt=35986,It=35987,Nt=34798,Rt=35840,Ft=35841,Bt=35842,Ut=35843,Ht=36196,Vt=5121,qt=5123,Wt=5125,Yt=5126,Gt=10242,Xt=10243,Zt=10497,$t=33071,Qt=33648,Kt=10240,Jt=10241,er=9728,tr=9729,rr=9984,nr=9985,ar=9986,ir=9987,or=33170,lr=4352,sr=4353,cr=4354,ur=34046,fr=3317,dr=37440,pr=37441,hr=37443,gr=37444,vr=33984,yr=[rr,ar,nr,ir],mr=[0,yt,mt,vt,ht],br={};function xr(e){return"[object "+e+"]"}br[yt]=br[gt]=br[St]=1,br[Mt]=br[mt]=2,br[vt]=br[Ot]=3,br[ht]=br[Ct]=4;var wr=xr("HTMLCanvasElement"),_r=xr("OffscreenCanvas"),kr=xr("CanvasRenderingContext2D"),Tr=xr("ImageBitmap"),Ar=xr("HTMLImageElement"),Sr=xr("HTMLVideoElement"),Mr=Object.keys(Le).concat([wr,_r,kr,Tr,Ar,Sr]),Or=[];Or[Vt]=1,Or[Yt]=4,Or[Et]=2,Or[qt]=2,Or[Wt]=4;var Cr=[];function Er(e){return Array.isArray(e)&&(0===e.length||"number"===typeof e[0])}function Lr(e){return!!Array.isArray(e)&&!(0===e.length||!ct(e[0]))}function Pr(e){return Object.prototype.toString.call(e)}function jr(e){return Pr(e)===wr}function zr(e){return Pr(e)===_r}function Dr(e){return Pr(e)===kr}function Ir(e){return Pr(e)===Tr}function Nr(e){return Pr(e)===Ar}function Rr(e){return Pr(e)===Sr}function Fr(e){if(!e)return!1;var t=Pr(e);return Mr.indexOf(t)>=0||Er(e)||Lr(e)||_e(e)}function Br(e){return 0|Le[Object.prototype.toString.call(e)]}function Ur(e,t){var r=t.length;switch(e.type){case Vt:case qt:case Wt:case Yt:var n=D.allocType(e.type,r);n.set(t),e.data=n;break;case Et:e.data=st(t)}}function Hr(e,t){return D.allocType(e.type===Et?Yt:e.type,t)}function Vr(e,t){e.type===Et?(e.data=st(t),D.freeType(t)):e.data=t}function qr(e,t,r,n,a,i){for(var o=e.width,l=e.height,s=e.channels,c=Hr(e,o*l*s),u=0,f=0;f<l;++f)for(var d=0;d<o;++d)for(var p=0;p<s;++p)c[u++]=t[r*d+n*f+a*p+i];Vr(e,c)}function Wr(e,t,r,n,a,i){var o;if(o="undefined"!==typeof Cr[e]?Cr[e]:br[e]*Or[t],i&&(o*=6),a){for(var l=0,s=r;s>=1;)l+=o*s*s,s/=2;return l}return o*r*n}function Yr(t,r,n,a,i,o,l){var s={"don't care":lr,"dont care":lr,nice:cr,fast:sr},c={repeat:Zt,clamp:$t,mirror:Qt},u={nearest:er,linear:tr},f=e({mipmap:ir,"nearest mipmap nearest":rr,"linear mipmap nearest":nr,"nearest mipmap linear":ar,"linear mipmap linear":ir},u),d={none:0,browser:gr},p={uint8:Vt,rgba4:_t,rgb565:Tt,"rgb5 a1":kt},h={alpha:gt,luminance:yt,"luminance alpha":mt,rgb:vt,rgba:ht,rgba4:bt,"rgb5 a1":xt,rgb565:wt},g={};r.ext_srgb&&(h.srgb=Ot,h.srgba=Ct),r.oes_texture_float&&(p.float32=p.float=Yt),r.oes_texture_half_float&&(p.float16=p["half float"]=Et),r.webgl_depth_texture&&(e(h,{depth:St,"depth stencil":Mt}),e(p,{uint16:qt,uint32:Wt,"depth stencil":At})),r.webgl_compressed_texture_s3tc&&e(g,{"rgb s3tc dxt1":Lt,"rgba s3tc dxt1":Pt,"rgba s3tc dxt3":jt,"rgba s3tc dxt5":zt}),r.webgl_compressed_texture_atc&&e(g,{"rgb atc":Dt,"rgba atc explicit alpha":It,"rgba atc interpolated alpha":Nt}),r.webgl_compressed_texture_pvrtc&&e(g,{"rgb pvrtc 4bppv1":Rt,"rgb pvrtc 2bppv1":Ft,"rgba pvrtc 4bppv1":Bt,"rgba pvrtc 2bppv1":Ut}),r.webgl_compressed_texture_etc1&&(g["rgb etc1"]=Ht);var v=Array.prototype.slice.call(t.getParameter(ut));Object.keys(g).forEach((function(e){var t=g[e];v.indexOf(t)>=0&&(h[e]=t)}));var y=Object.keys(h);n.textureFormats=y;var m=[];Object.keys(h).forEach((function(e){var t=h[e];m[t]=e}));var b=[];Object.keys(p).forEach((function(e){var t=p[e];b[t]=e}));var x=[];Object.keys(u).forEach((function(e){var t=u[e];x[t]=e}));var w=[];Object.keys(f).forEach((function(e){var t=f[e];w[t]=e}));var _=[];Object.keys(c).forEach((function(e){var t=c[e];_[t]=e}));var k=y.reduce((function(e,t){var n=h[t];return n===yt||n===gt||n===yt||n===mt||n===St||n===Mt||r.ext_srgb&&(n===Ot||n===Ct)?e[n]=n:n===xt||t.indexOf("rgba")>=0?e[n]=ht:e[n]=vt,e}),{});function T(){this.internalformat=ht,this.format=ht,this.type=Vt,this.compressed=!1,this.premultiplyAlpha=!1,this.flipY=!1,this.unpackAlignment=1,this.colorSpace=gr,this.width=0,this.height=0,this.channels=0}function A(e,t){e.internalformat=t.internalformat,e.format=t.format,e.type=t.type,e.compressed=t.compressed,e.premultiplyAlpha=t.premultiplyAlpha,e.flipY=t.flipY,e.unpackAlignment=t.unpackAlignment,e.colorSpace=t.colorSpace,e.width=t.width,e.height=t.height,e.channels=t.channels}function S(e,t){if("object"===typeof t&&t){if("premultiplyAlpha"in t&&(e.premultiplyAlpha=t.premultiplyAlpha),"flipY"in t&&(e.flipY=t.flipY),"alignment"in t&&(e.unpackAlignment=t.alignment),"colorSpace"in t&&(e.colorSpace=d[t.colorSpace]),"type"in t){var r=t.type;e.type=p[r]}var n=e.width,a=e.height,i=e.channels,o=!1;"shape"in t?(n=t.shape[0],a=t.shape[1],3===t.shape.length&&(i=t.shape[2],o=!0)):("radius"in t&&(n=a=t.radius),"width"in t&&(n=t.width),"height"in t&&(a=t.height),"channels"in t&&(i=t.channels,o=!0)),e.width=0|n,e.height=0|a,e.channels=0|i;var l=!1;if("format"in t){var s=t.format,c=e.internalformat=h[s];e.format=k[c],s in p&&("type"in t||(e.type=p[s])),s in g&&(e.compressed=!0),l=!0}!o&&l?e.channels=br[e.format]:o&&!l&&e.channels!==mr[e.format]&&(e.format=e.internalformat=mr[e.channels])}}function M(e){t.pixelStorei(dr,e.flipY),t.pixelStorei(pr,e.premultiplyAlpha),t.pixelStorei(hr,e.colorSpace),t.pixelStorei(fr,e.unpackAlignment)}function O(){T.call(this),this.xOffset=0,this.yOffset=0,this.data=null,this.needsFree=!1,this.element=null,this.needsCopy=!1}function C(e,t){var r=null;if(Fr(t)?r=t:t&&(S(e,t),"x"in t&&(e.xOffset=0|t.x),"y"in t&&(e.yOffset=0|t.y),Fr(t.data)&&(r=t.data)),t.copy){var n=i.viewportWidth,a=i.viewportHeight;e.width=e.width||n-e.xOffset,e.height=e.height||a-e.yOffset,e.needsCopy=!0}else if(r){if(we(r))e.channels=e.channels||4,e.data=r,"type"in t||e.type!==Vt||(e.type=Br(r));else if(Er(r))e.channels=e.channels||4,Ur(e,r),e.alignment=1,e.needsFree=!0;else if(_e(r)){var o=r.data;Array.isArray(o)||e.type!==Vt||(e.type=Br(o));var l,s,c,u,f,d,p=r.shape,h=r.stride;3===p.length?(c=p[2],d=h[2]):(c=1,d=1),l=p[0],s=p[1],u=h[0],f=h[1],e.alignment=1,e.width=l,e.height=s,e.channels=c,e.format=e.internalformat=mr[c],e.needsFree=!0,qr(e,o,u,f,d,r.offset)}else if(jr(r)||zr(r)||Dr(r))jr(r)||zr(r)?e.element=r:e.element=r.canvas,e.width=e.element.width,e.height=e.element.height,e.channels=4;else if(Ir(r))e.element=r,e.width=r.width,e.height=r.height,e.channels=4;else if(Nr(r))e.element=r,e.width=r.naturalWidth,e.height=r.naturalHeight,e.channels=4;else if(Rr(r))e.element=r,e.width=r.videoWidth,e.height=r.videoHeight,e.channels=4;else if(Lr(r)){var g=e.width||r[0].length,v=e.height||r.length,y=e.channels;y=ct(r[0][0])?y||r[0][0].length:y||1;for(var m=Te.shape(r),b=1,x=0;x<m.length;++x)b*=m[x];var w=Hr(e,b);Te.flatten(r,m,"",w),Vr(e,w),e.alignment=1,e.width=g,e.height=v,e.channels=y,e.format=e.internalformat=mr[y],e.needsFree=!0}}else e.width=e.width||1,e.height=e.height||1,e.channels=e.channels||4;e.type===Yt||e.type}function E(e,r,n){var i=e.element,o=e.data,l=e.internalformat,s=e.format,c=e.type,u=e.width,f=e.height;M(e),i?t.texImage2D(r,n,s,s,c,i):e.compressed?t.compressedTexImage2D(r,n,l,u,f,0,o):e.needsCopy?(a(),t.copyTexImage2D(r,n,s,e.xOffset,e.yOffset,u,f,0)):t.texImage2D(r,n,s,u,f,0,s,c,o||null)}function L(e,r,n,i,o){var l=e.element,s=e.data,c=e.internalformat,u=e.format,f=e.type,d=e.width,p=e.height;M(e),l?t.texSubImage2D(r,o,n,i,u,f,l):e.compressed?t.compressedTexSubImage2D(r,o,n,i,c,d,p,s):e.needsCopy?(a(),t.copyTexSubImage2D(r,o,n,i,e.xOffset,e.yOffset,d,p)):t.texSubImage2D(r,o,n,i,d,p,u,f,s)}var P=[];function j(){return P.pop()||new O}function z(e){e.needsFree&&D.freeType(e.data),O.call(e),P.push(e)}function I(){T.call(this),this.genMipmaps=!1,this.mipmapHint=lr,this.mipmask=0,this.images=Array(16)}function N(e,t,r){var n=e.images[0]=j();e.mipmask=1,n.width=e.width=t,n.height=e.height=r,n.channels=e.channels=4}function R(e,t){var r=null;if(Fr(t))A(r=e.images[0]=j(),e),C(r,t),e.mipmask=1;else if(S(e,t),Array.isArray(t.mipmap))for(var n=t.mipmap,a=0;a<n.length;++a)A(r=e.images[a]=j(),e),r.width>>=a,r.height>>=a,C(r,n[a]),e.mipmask|=1<<a;else A(r=e.images[0]=j(),e),C(r,t),e.mipmask=1;A(e,e.images[0]),e.compressed&&(e.internalformat===Lt||e.internalformat===Pt||e.internalformat===jt||e.internalformat)}function F(e,t){for(var r=e.images,n=0;n<r.length;++n){if(!r[n])return;E(r[n],t,n)}}var B=[];function U(){var e=B.pop()||new I;T.call(e),e.mipmask=0;for(var t=0;t<16;++t)e.images[t]=null;return e}function H(e){for(var t=e.images,r=0;r<t.length;++r)t[r]&&z(t[r]),t[r]=null;B.push(e)}function V(){this.minFilter=er,this.magFilter=er,this.wrapS=$t,this.wrapT=$t,this.anisotropic=1,this.genMipmaps=!1,this.mipmapHint=lr}function q(e,t){if("min"in t){var r=t.min;e.minFilter=f[r],yr.indexOf(e.minFilter)>=0&&!("faces"in t)&&(e.genMipmaps=!0)}if("mag"in t){var n=t.mag;e.magFilter=u[n]}var a=e.wrapS,i=e.wrapT;if("wrap"in t){var o=t.wrap;"string"===typeof o?a=i=c[o]:Array.isArray(o)&&(a=c[o[0]],i=c[o[1]])}else{if("wrapS"in t){var l=t.wrapS;a=c[l]}if("wrapT"in t){var d=t.wrapT;i=c[d]}}if(e.wrapS=a,e.wrapT=i,"anisotropic"in t&&(t.anisotropic,e.anisotropic=t.anisotropic),"mipmap"in t){var p=!1;switch(typeof t.mipmap){case"string":e.mipmapHint=s[t.mipmap],e.genMipmaps=!0,p=!0;break;case"boolean":p=e.genMipmaps=t.mipmap;break;case"object":e.genMipmaps=!1,p=!0}p&&!("min"in t)&&(e.minFilter=rr)}}function W(e,n){t.texParameteri(n,Jt,e.minFilter),t.texParameteri(n,Kt,e.magFilter),t.texParameteri(n,Gt,e.wrapS),t.texParameteri(n,Xt,e.wrapT),r.ext_texture_filter_anisotropic&&t.texParameteri(n,ur,e.anisotropic),e.genMipmaps&&(t.hint(or,e.mipmapHint),t.generateMipmap(n))}var Y=0,G={},X=n.maxTextureUnits,Z=Array(X).map((function(){return null}));function $(e){T.call(this),this.mipmask=0,this.internalformat=ht,this.id=Y++,this.refCount=1,this.target=e,this.texture=t.createTexture(),this.unit=-1,this.bindCount=0,this.texInfo=new V,l.profile&&(this.stats={size:0})}function Q(e){t.activeTexture(vr),t.bindTexture(e.target,e.texture)}function K(){var e=Z[0];e?t.bindTexture(e.target,e.texture):t.bindTexture(ft,null)}function J(e){var r=e.texture,n=e.unit,a=e.target;n>=0&&(t.activeTexture(vr+n),t.bindTexture(a,null),Z[n]=null),t.deleteTexture(r),e.texture=null,e.params=null,e.pixels=null,e.refCount=0,delete G[e.id],o.textureCount--}function ee(e,r){var n=new $(ft);function a(e,t){var r=n.texInfo;V.call(r);var i=U();return"number"===typeof e?N(i,0|e,"number"===typeof t?0|t:0|e):e?(q(r,e),R(i,e)):N(i,1,1),r.genMipmaps&&(i.mipmask=(i.width<<1)-1),n.mipmask=i.mipmask,A(n,i),n.internalformat=i.internalformat,a.width=i.width,a.height=i.height,Q(n),F(i,ft),W(r,ft),K(),H(i),l.profile&&(n.stats.size=Wr(n.internalformat,n.type,i.width,i.height,r.genMipmaps,!1)),a.format=m[n.internalformat],a.type=b[n.type],a.mag=x[r.magFilter],a.min=w[r.minFilter],a.wrapS=_[r.wrapS],a.wrapT=_[r.wrapT],a}function i(e,t,r,i){var o=0|t,l=0|r,s=0|i,c=j();return A(c,n),c.width=0,c.height=0,C(c,e),c.width=c.width||(n.width>>s)-o,c.height=c.height||(n.height>>s)-l,Q(n),L(c,ft,o,l,s),K(),z(c),a}function s(e,r){var i=0|e,o=0|r||i;if(i===n.width&&o===n.height)return a;a.width=n.width=i,a.height=n.height=o,Q(n);for(var s=0;n.mipmask>>s;++s){var c=i>>s,u=o>>s;if(!c||!u)break;t.texImage2D(ft,s,n.format,c,u,0,n.format,n.type,null)}return K(),l.profile&&(n.stats.size=Wr(n.internalformat,n.type,i,o,!1,!1)),a}return G[n.id]=n,o.textureCount++,a(e,r),a.subimage=i,a.resize=s,a._reglType="texture2d",a._texture=n,l.profile&&(a.stats=n.stats),a.destroy=function(){n.decRef()},a}function te(e,r,n,a,i,s){var c=new $(dt);G[c.id]=c,o.cubeCount++;var u=new Array(6);function f(e,t,r,n,a,i){var o,s=c.texInfo;for(V.call(s),o=0;o<6;++o)u[o]=U();if("number"!==typeof e&&e){if("object"===typeof e)if(t)R(u[0],e),R(u[1],t),R(u[2],r),R(u[3],n),R(u[4],a),R(u[5],i);else if(q(s,e),S(c,e),"faces"in e){var d=e.faces;for(o=0;o<6;++o)A(u[o],c),R(u[o],d[o])}else for(o=0;o<6;++o)R(u[o],e)}else{var p=0|e||1;for(o=0;o<6;++o)N(u[o],p,p)}for(A(c,u[0]),s.genMipmaps?c.mipmask=(u[0].width<<1)-1:c.mipmask=u[0].mipmask,c.internalformat=u[0].internalformat,f.width=u[0].width,f.height=u[0].height,Q(c),o=0;o<6;++o)F(u[o],pt+o);for(W(s,dt),K(),l.profile&&(c.stats.size=Wr(c.internalformat,c.type,f.width,f.height,s.genMipmaps,!0)),f.format=m[c.internalformat],f.type=b[c.type],f.mag=x[s.magFilter],f.min=w[s.minFilter],f.wrapS=_[s.wrapS],f.wrapT=_[s.wrapT],o=0;o<6;++o)H(u[o]);return f}function d(e,t,r,n,a){var i=0|r,o=0|n,l=0|a,s=j();return A(s,c),s.width=0,s.height=0,C(s,t),s.width=s.width||(c.width>>l)-i,s.height=s.height||(c.height>>l)-o,Q(c),L(s,pt+e,i,o,l),K(),z(s),f}function p(e){var r=0|e;if(r!==c.width){f.width=c.width=r,f.height=c.height=r,Q(c);for(var n=0;n<6;++n)for(var a=0;c.mipmask>>a;++a)t.texImage2D(pt+n,a,c.format,r>>a,r>>a,0,c.format,c.type,null);return K(),l.profile&&(c.stats.size=Wr(c.internalformat,c.type,f.width,f.height,!1,!0)),f}}return f(e,r,n,a,i,s),f.subimage=d,f.resize=p,f._reglType="textureCube",f._texture=c,l.profile&&(f.stats=c.stats),f.destroy=function(){c.decRef()},f}function re(){for(var e=0;e<X;++e)t.activeTexture(vr+e),t.bindTexture(ft,null),Z[e]=null;ke(G).forEach(J),o.cubeCount=0,o.textureCount=0}function ne(){for(var e=0;e<X;++e){var r=Z[e];r&&(r.bindCount=0,r.unit=-1,Z[e]=null)}ke(G).forEach((function(e){e.texture=t.createTexture(),t.bindTexture(e.target,e.texture);for(var r=0;r<32;++r)if(0!==(e.mipmask&1<<r))if(e.target===ft)t.texImage2D(ft,r,e.internalformat,e.width>>r,e.height>>r,0,e.internalformat,e.type,null);else for(var n=0;n<6;++n)t.texImage2D(pt+n,r,e.internalformat,e.width>>r,e.height>>r,0,e.internalformat,e.type,null);W(e.texInfo,e.target)}))}function ae(){for(var e=0;e<X;++e){var r=Z[e];r&&(r.bindCount=0,r.unit=-1,Z[e]=null),t.activeTexture(vr+e),t.bindTexture(ft,null),t.bindTexture(dt,null)}}return e($.prototype,{bind:function(){var e=this;e.bindCount+=1;var r=e.unit;if(r<0){for(var n=0;n<X;++n){var a=Z[n];if(a){if(a.bindCount>0)continue;a.unit=-1}Z[n]=e,r=n;break}l.profile&&o.maxTextureUnits<r+1&&(o.maxTextureUnits=r+1),e.unit=r,t.activeTexture(vr+r),t.bindTexture(e.target,e.texture)}return r},unbind:function(){this.bindCount-=1},decRef:function(){--this.refCount<=0&&J(this)}}),l.profile&&(o.getTotalTextureSize=function(){var e=0;return Object.keys(G).forEach((function(t){e+=G[t].stats.size})),e}),{create2D:ee,createCube:te,clear:re,getTexture:function(e){return null},restore:ne,refresh:ae}}Cr[bt]=2,Cr[xt]=2,Cr[wt]=2,Cr[Mt]=4,Cr[Lt]=.5,Cr[Pt]=.5,Cr[jt]=1,Cr[zt]=1,Cr[Dt]=.5,Cr[It]=1,Cr[Nt]=1,Cr[Rt]=.5,Cr[Ft]=.25,Cr[Bt]=.5,Cr[Ut]=.25,Cr[Ht]=.5;var Gr=36161,Xr=32854,Zr=32855,$r=36194,Qr=33189,Kr=36168,Jr=34041,en=35907,tn=34836,rn=34842,nn=34843,an=[];function on(e,t,r){return an[e]*t*r}an[Xr]=2,an[Zr]=2,an[$r]=2,an[Qr]=2,an[Kr]=1,an[Jr]=4,an[en]=4,an[tn]=16,an[rn]=8,an[nn]=6;var ln=function(e,t,r,n,a){var i={rgba4:Xr,rgb565:$r,"rgb5 a1":Zr,depth:Qr,stencil:Kr,"depth stencil":Jr};t.ext_srgb&&(i.srgba=en),t.ext_color_buffer_half_float&&(i.rgba16f=rn,i.rgb16f=nn),t.webgl_color_buffer_float&&(i.rgba32f=tn);var o=[];Object.keys(i).forEach((function(e){var t=i[e];o[t]=e}));var l=0,s={};function c(e){this.id=l++,this.refCount=1,this.renderbuffer=e,this.format=Xr,this.width=0,this.height=0,a.profile&&(this.stats={size:0})}function u(t){var r=t.renderbuffer;e.bindRenderbuffer(Gr,null),e.deleteRenderbuffer(r),t.renderbuffer=null,t.refCount=0,delete s[t.id],n.renderbufferCount--}function f(t,r){var l=new c(e.createRenderbuffer());function u(t,r){var n=0,s=0,c=Xr;if("object"===typeof t&&t){var f=t;if("shape"in f){var d=f.shape;n=0|d[0],s=0|d[1]}else"radius"in f&&(n=s=0|f.radius),"width"in f&&(n=0|f.width),"height"in f&&(s=0|f.height);"format"in f&&(c=i[f.format])}else"number"===typeof t?(n=0|t,s="number"===typeof r?0|r:n):t||(n=s=1);if(n!==l.width||s!==l.height||c!==l.format)return u.width=l.width=n,u.height=l.height=s,l.format=c,e.bindRenderbuffer(Gr,l.renderbuffer),e.renderbufferStorage(Gr,c,n,s),a.profile&&(l.stats.size=on(l.format,l.width,l.height)),u.format=o[l.format],u}function f(t,r){var n=0|t,i=0|r||n;return n===l.width&&i===l.height||(u.width=l.width=n,u.height=l.height=i,e.bindRenderbuffer(Gr,l.renderbuffer),e.renderbufferStorage(Gr,l.format,n,i),a.profile&&(l.stats.size=on(l.format,l.width,l.height))),u}return s[l.id]=l,n.renderbufferCount++,u(t,r),u.resize=f,u._reglType="renderbuffer",u._renderbuffer=l,a.profile&&(u.stats=l.stats),u.destroy=function(){l.decRef()},u}function d(){ke(s).forEach((function(t){t.renderbuffer=e.createRenderbuffer(),e.bindRenderbuffer(Gr,t.renderbuffer),e.renderbufferStorage(Gr,t.format,t.width,t.height)})),e.bindRenderbuffer(Gr,null)}return c.prototype.decRef=function(){--this.refCount<=0&&u(this)},a.profile&&(n.getTotalRenderbufferSize=function(){var e=0;return Object.keys(s).forEach((function(t){e+=s[t].stats.size})),e}),{create:f,clear:function(){ke(s).forEach(u)},restore:d}},sn=36160,cn=36161,un=3553,fn=34069,dn=36064,pn=36096,hn=36128,gn=33306,vn=36193,yn=5121,mn=5126,bn=6407,xn=[];xn[6408]=4,xn[bn]=3;var wn=[];function _n(t,r,n,a,i,o){var l={cur:null,next:null,dirty:!1,setFBO:null},s=["rgba"],c=["rgba4","rgb565","rgb5 a1"];r.ext_srgb&&c.push("srgba"),r.ext_color_buffer_half_float&&c.push("rgba16f","rgb16f"),r.webgl_color_buffer_float&&c.push("rgba32f");var u=["uint8"];function f(e,t,r){this.target=e,this.texture=t,this.renderbuffer=r;var n=0,a=0;t?(n=t.width,a=t.height):r&&(n=r.width,a=r.height),this.width=n,this.height=a}function d(e){e&&(e.texture&&e.texture._texture.decRef(),e.renderbuffer&&e.renderbuffer._renderbuffer.decRef())}function p(e,t,r){if(e)if(e.texture){var n=e.texture._texture;Math.max(1,n.width),Math.max(1,n.height),n.refCount+=1}else e.renderbuffer._renderbuffer.refCount+=1}function h(e,r){r&&(r.texture?t.framebufferTexture2D(sn,e,r.target,r.texture._texture.texture,0):t.framebufferRenderbuffer(sn,e,cn,r.renderbuffer._renderbuffer.renderbuffer))}function g(e){var t=un,r=null,n=null,a=e;"object"===typeof e&&(a=e.data,"target"in e&&(t=0|e.target));var i=a._reglType;return"texture2d"===i||"textureCube"===i?r=a:"renderbuffer"===i&&(n=a,t=cn),new f(t,r,n)}function v(e,t,r,n,o){if(r){var l=a.create2D({width:e,height:t,format:n,type:o});return l._texture.refCount=0,new f(un,l,null)}var s=i.create({width:e,height:t,format:n});return s._renderbuffer.refCount=0,new f(cn,null,s)}function y(e){return e&&(e.texture||e.renderbuffer)}function m(e,t,r){e&&(e.texture?e.texture.resize(t,r):e.renderbuffer&&e.renderbuffer.resize(t,r),e.width=t,e.height=r)}r.oes_texture_half_float&&u.push("half float","float16"),r.oes_texture_float&&u.push("float","float32");var b=0,x={};function w(){this.id=b++,x[this.id]=this,this.framebuffer=t.createFramebuffer(),this.width=0,this.height=0,this.colorAttachments=[],this.depthAttachment=null,this.stencilAttachment=null,this.depthStencilAttachment=null}function _(e){e.colorAttachments.forEach(d),d(e.depthAttachment),d(e.stencilAttachment),d(e.depthStencilAttachment)}function k(e){var r=e.framebuffer;t.deleteFramebuffer(r),e.framebuffer=null,o.framebufferCount--,delete x[e.id]}function T(e){var r;t.bindFramebuffer(sn,e.framebuffer);var a=e.colorAttachments;for(r=0;r<a.length;++r)h(dn+r,a[r]);for(r=a.length;r<n.maxColorAttachments;++r)t.framebufferTexture2D(sn,dn+r,un,null,0);t.framebufferTexture2D(sn,gn,un,null,0),t.framebufferTexture2D(sn,pn,un,null,0),t.framebufferTexture2D(sn,hn,un,null,0),h(pn,e.depthAttachment),h(hn,e.stencilAttachment),h(gn,e.depthStencilAttachment),t.checkFramebufferStatus(sn),t.isContextLost(),t.bindFramebuffer(sn,l.next?l.next.framebuffer:null),l.cur=l.next,t.getError()}function A(t,r){var n=new w;function a(e,t){var r,i=0,o=0,l=!0,u=!0,f=null,d=!0,h="rgba",m="uint8",b=1,x=null,w=null,k=null,A=!1;if("number"===typeof e)i=0|e,o=0|t||i;else if(e){var S=e;if("shape"in S){var M=S.shape;i=M[0],o=M[1]}else"radius"in S&&(i=o=S.radius),"width"in S&&(i=S.width),"height"in S&&(o=S.height);("color"in S||"colors"in S)&&(f=S.color||S.colors,Array.isArray(f)),f||("colorCount"in S&&(b=0|S.colorCount),"colorTexture"in S&&(d=!!S.colorTexture,h="rgba4"),"colorType"in S&&(m=S.colorType,d||("half float"===m||"float16"===m?h="rgba16f":"float"!==m&&"float32"!==m||(h="rgba32f"))),"colorFormat"in S&&(h=S.colorFormat,s.indexOf(h)>=0?d=!0:c.indexOf(h)>=0&&(d=!1))),("depthTexture"in S||"depthStencilTexture"in S)&&(A=!(!S.depthTexture&&!S.depthStencilTexture)),"depth"in S&&("boolean"===typeof S.depth?l=S.depth:(x=S.depth,u=!1)),"stencil"in S&&("boolean"===typeof S.stencil?u=S.stencil:(w=S.stencil,l=!1)),"depthStencil"in S&&("boolean"===typeof S.depthStencil?l=u=S.depthStencil:(k=S.depthStencil,l=!1,u=!1))}else i=o=1;var O=null,C=null,E=null,L=null;if(Array.isArray(f))O=f.map(g);else if(f)O=[g(f)];else for(O=new Array(b),r=0;r<b;++r)O[r]=v(i,o,d,h,m);i=i||O[0].width,o=o||O[0].height,x?C=g(x):l&&!u&&(C=v(i,o,A,"depth","uint32")),w?E=g(w):u&&!l&&(E=v(i,o,!1,"stencil","uint8")),k?L=g(k):!x&&!w&&u&&l&&(L=v(i,o,A,"depth stencil","depth stencil"));var P=null;for(r=0;r<O.length;++r)if(p(O[r],i,o),O[r]&&O[r].texture){var j=xn[O[r].texture._texture.format]*wn[O[r].texture._texture.type];null===P&&(P=j)}return p(C,i,o),p(E,i,o),p(L,i,o),_(n),n.width=i,n.height=o,n.colorAttachments=O,n.depthAttachment=C,n.stencilAttachment=E,n.depthStencilAttachment=L,a.color=O.map(y),a.depth=y(C),a.stencil=y(E),a.depthStencil=y(L),a.width=n.width,a.height=n.height,T(n),a}function i(e,t){var r=Math.max(0|e,1),i=Math.max(0|t||r,1);if(r===n.width&&i===n.height)return a;for(var o=n.colorAttachments,l=0;l<o.length;++l)m(o[l],r,i);return m(n.depthAttachment,r,i),m(n.stencilAttachment,r,i),m(n.depthStencilAttachment,r,i),n.width=a.width=r,n.height=a.height=i,T(n),a}return o.framebufferCount++,a(t,r),e(a,{resize:i,_reglType:"framebuffer",_framebuffer:n,destroy:function(){k(n),_(n)},use:function(e){l.setFBO({framebuffer:a},e)}})}function S(t){var r=Array(6);function n(t){var i,o,l={color:null},s=0,c=null,u="rgba",f="uint8",d=1;if("number"===typeof t)s=0|t;else if(t){var p=t;"shape"in p?s=p.shape[0]:("radius"in p&&(s=0|p.radius),"width"in p?s=0|p.width:"height"in p&&(s=0|p.height)),("color"in p||"colors"in p)&&(c=p.color||p.colors,Array.isArray(c)),c||("colorCount"in p&&(d=0|p.colorCount),"colorType"in p&&(f=p.colorType),"colorFormat"in p&&(u=p.colorFormat)),"depth"in p&&(l.depth=p.depth),"stencil"in p&&(l.stencil=p.stencil),"depthStencil"in p&&(l.depthStencil=p.depthStencil)}else s=1;if(c)if(Array.isArray(c))for(o=[],i=0;i<c.length;++i)o[i]=c[i];else o=[c];else{o=Array(d);var h={radius:s,format:u,type:f};for(i=0;i<d;++i)o[i]=a.createCube(h)}for(l.color=Array(o.length),i=0;i<o.length;++i){var g=o[i];s=s||g.width,l.color[i]={target:fn,data:o[i]}}for(i=0;i<6;++i){for(var v=0;v<o.length;++v)l.color[v].target=fn+i;i>0&&(l.depth=r[0].depth,l.stencil=r[0].stencil,l.depthStencil=r[0].depthStencil),r[i]?r[i](l):r[i]=A(l)}return e(n,{width:s,height:s,color:o})}function i(e){var t,a=0|e;if(a===n.width)return n;var i=n.color;for(t=0;t<i.length;++t)i[t].resize(a);for(t=0;t<6;++t)r[t].resize(a);return n.width=n.height=a,n}return n(t),e(n,{faces:r,resize:i,_reglType:"framebufferCube",destroy:function(){r.forEach((function(e){e.destroy()}))}})}function M(){l.cur=null,l.next=null,l.dirty=!0,ke(x).forEach((function(e){e.framebuffer=t.createFramebuffer(),T(e)}))}return e(l,{getFramebuffer:function(e){if("function"===typeof e&&"framebuffer"===e._reglType){var t=e._framebuffer;if(t instanceof w)return t}return null},create:A,createCube:S,clear:function(){ke(x).forEach(k)},restore:M})}wn[yn]=1,wn[mn]=4,wn[vn]=2;var kn=5126,Tn=34962,An=34963;function Sn(){this.state=0,this.x=0,this.y=0,this.z=0,this.w=0,this.buffer=null,this.size=0,this.normalized=!1,this.type=kn,this.offset=0,this.stride=0,this.divisor=0}function Mn(e,t,r,n,a,i,o){for(var l=r.maxAttributes,s=new Array(l),c=0;c<l;++c)s[c]=new Sn;var u=0,f={},d={Record:Sn,scope:{},state:s,currentVAO:null,targetVAO:null,restore:h()?w:function(){},createVAO:_,getVAO:v,destroyBuffer:p,setVAO:h()?y:m,clear:h()?b:function(){}};function p(t){for(var r=0;r<s.length;++r){var n=s[r];n.buffer===t&&(e.disableVertexAttribArray(r),n.buffer=null)}}function h(){return t.oes_vertex_array_object}function g(){return t.angle_instanced_arrays}function v(e){return"function"===typeof e&&e._vao?e._vao:null}function y(e){if(e!==d.currentVAO){var t=h();e?t.bindVertexArrayOES(e.vao):t.bindVertexArrayOES(null),d.currentVAO=e}}function m(t){if(t!==d.currentVAO){if(t)t.bindAttrs();else{for(var r=g(),n=0;n<s.length;++n){var a=s[n];a.buffer?(e.enableVertexAttribArray(n),a.buffer.bind(),e.vertexAttribPointer(n,a.size,a.type,a.normalized,a.stride,a.offfset),r&&a.divisor&&r.vertexAttribDivisorANGLE(n,a.divisor)):(e.disableVertexAttribArray(n),e.vertexAttrib4f(n,a.x,a.y,a.z,a.w))}o.elements?e.bindBuffer(An,o.elements.buffer.buffer):e.bindBuffer(An,null)}d.currentVAO=t}}function b(){ke(f).forEach((function(e){e.destroy()}))}function x(){this.id=++u,this.attributes=[],this.elements=null,this.ownsElements=!1,this.count=0,this.offset=0,this.instances=-1,this.primitive=4;var e=h();this.vao=e?e.createVertexArrayOES():null,f[this.id]=this,this.buffers=[]}function w(){h()&&ke(f).forEach((function(e){e.refresh()}))}function _(e){var t=new x;function r(e){var n;if(Array.isArray(e))n=e,t.elements&&t.ownsElements&&t.elements.destroy(),t.elements=null,t.ownsElements=!1,t.offset=0,t.count=0,t.instances=-1,t.primitive=4;else{if(e.elements){var o=e.elements;t.ownsElements?"function"===typeof o&&"elements"===o._reglType?(t.elements.destroy(),t.ownsElements=!1):(t.elements(o),t.ownsElements=!1):i.getElements(e.elements)?(t.elements=e.elements,t.ownsElements=!1):(t.elements=i.create(e.elements),t.ownsElements=!0)}else t.elements=null,t.ownsElements=!1;n=e.attributes,t.offset=0,t.count=-1,t.instances=-1,t.primitive=4,t.elements&&(t.count=t.elements._elements.vertCount,t.primitive=t.elements._elements.primType),"offset"in e&&(t.offset=0|e.offset),"count"in e&&(t.count=0|e.count),"instances"in e&&(t.instances=0|e.instances),"primitive"in e&&(t.primitive=We[e.primitive])}var l={},s=t.attributes;s.length=n.length;for(var c=0;c<n.length;++c){var u,f=n[c],d=s[c]=new Sn,p=f.data||f;Array.isArray(p)||we(p)||_e(p)?(t.buffers[c]&&(u=t.buffers[c],we(p)&&u._buffer.byteLength>=p.byteLength?u.subdata(p):(u.destroy(),t.buffers[c]=null)),t.buffers[c]||(u=t.buffers[c]=a.create(f,Tn,!1,!0)),d.buffer=a.getBuffer(u),d.size=0|d.buffer.dimension,d.normalized=!1,d.type=d.buffer.dtype,d.offset=0,d.stride=0,d.divisor=0,d.state=1,l[c]=1):a.getBuffer(f)?(d.buffer=a.getBuffer(f),d.size=0|d.buffer.dimension,d.normalized=!1,d.type=d.buffer.dtype,d.offset=0,d.stride=0,d.divisor=0,d.state=1):a.getBuffer(f.buffer)?(d.buffer=a.getBuffer(f.buffer),d.size=0|(+f.size||d.buffer.dimension),d.normalized=!!f.normalized||!1,d.type="type"in f?Pe[f.type]:d.buffer.dtype,d.offset=0|(f.offset||0),d.stride=0|(f.stride||0),d.divisor=0|(f.divisor||0),d.state=1):"x"in f&&(d.x=+f.x||0,d.y=+f.y||0,d.z=+f.z||0,d.w=+f.w||0,d.state=2)}for(var h=0;h<t.buffers.length;++h)!l[h]&&t.buffers[h]&&(t.buffers[h].destroy(),t.buffers[h]=null);return t.refresh(),r}return n.vaoCount+=1,r.destroy=function(){for(var e=0;e<t.buffers.length;++e)t.buffers[e]&&t.buffers[e].destroy();t.buffers.length=0,t.ownsElements&&(t.elements.destroy(),t.elements=null,t.ownsElements=!1),t.destroy()},r._vao=t,r._reglType="vao",r(e)}return x.prototype.bindAttrs=function(){for(var t=g(),r=this.attributes,n=0;n<r.length;++n){var a=r[n];a.buffer?(e.enableVertexAttribArray(n),e.bindBuffer(Tn,a.buffer.buffer),e.vertexAttribPointer(n,a.size,a.type,a.normalized,a.stride,a.offset),t&&a.divisor&&t.vertexAttribDivisorANGLE(n,a.divisor)):(e.disableVertexAttribArray(n),e.vertexAttrib4f(n,a.x,a.y,a.z,a.w))}for(var o=r.length;o<l;++o)e.disableVertexAttribArray(o);var s=i.getElements(this.elements);s?e.bindBuffer(An,s.buffer.buffer):e.bindBuffer(An,null)},x.prototype.refresh=function(){var e=h();e&&(e.bindVertexArrayOES(this.vao),this.bindAttrs(),d.currentVAO=null,e.bindVertexArrayOES(null))},x.prototype.destroy=function(){if(this.vao){var e=h();this===d.currentVAO&&(d.currentVAO=null,e.bindVertexArrayOES(null)),e.deleteVertexArrayOES(this.vao),this.vao=null}this.ownsElements&&(this.elements.destroy(),this.elements=null,this.ownsElements=!1),f[this.id]&&(delete f[this.id],n.vaoCount-=1)},d}var On=35632,Cn=35633,En=35718,Ln=35721;function Pn(t,r,n,a){var i={},o={};function l(e,t,r,n){this.name=e,this.id=t,this.location=r,this.info=n}function s(e,t){for(var r=0;r<e.length;++r)if(e[r].id===t.id)return void(e[r].location=t.location);e.push(t)}function c(e,n,a){var l=e===On?i:o,s=l[n];if(!s){var c=r.str(n);s=t.createShader(e),t.shaderSource(s,c),t.compileShader(s),l[n]=s}return s}var u={},f=[],d=0;function p(e,t){this.id=d++,this.fragId=e,this.vertId=t,this.program=null,this.uniforms=[],this.attributes=[],this.refCount=1,a.profile&&(this.stats={uniformsCount:0,attributesCount:0})}function h(e,n,i){var o,u,f=c(On,e.fragId),d=c(Cn,e.vertId),p=e.program=t.createProgram();if(t.attachShader(p,f),t.attachShader(p,d),i)for(o=0;o<i.length;++o){var h=i[o];t.bindAttribLocation(p,h[0],h[1])}t.linkProgram(p);var g=t.getProgramParameter(p,En);a.profile&&(e.stats.uniformsCount=g);var v=e.uniforms;for(o=0;o<g;++o)if(u=t.getActiveUniform(p,o))if(u.size>1)for(var y=0;y<u.size;++y){var m=u.name.replace("[0]","["+y+"]");s(v,new l(m,r.id(m),t.getUniformLocation(p,m),u))}else s(v,new l(u.name,r.id(u.name),t.getUniformLocation(p,u.name),u));var b=t.getProgramParameter(p,Ln);a.profile&&(e.stats.attributesCount=b);var x=e.attributes;for(o=0;o<b;++o)(u=t.getActiveAttrib(p,o))&&s(x,new l(u.name,r.id(u.name),t.getAttribLocation(p,u.name),u))}function g(){i={},o={};for(var e=0;e<f.length;++e)h(f[e],null,f[e].attributes.map((function(e){return[e.location,e.name]})))}return a.profile&&(n.getMaxUniformsCount=function(){var e=0;return f.forEach((function(t){t.stats.uniformsCount>e&&(e=t.stats.uniformsCount)})),e},n.getMaxAttributesCount=function(){var e=0;return f.forEach((function(t){t.stats.attributesCount>e&&(e=t.stats.attributesCount)})),e}),{clear:function(){var e=t.deleteShader.bind(t);ke(i).forEach(e),i={},ke(o).forEach(e),o={},f.forEach((function(e){t.deleteProgram(e.program)})),f.length=0,u={},n.shaderCount=0},program:function(r,a,l,s){var c=u[a];c||(c=u[a]={});var d=c[r];if(d&&(d.refCount++,!s))return d;var g=new p(a,r);return n.shaderCount++,h(g,l,s),d||(c[r]=g),f.push(g),e(g,{destroy:function(){if(g.refCount--,g.refCount<=0){t.deleteProgram(g.program);var e=f.indexOf(g);f.splice(e,1),n.shaderCount--}c[g.vertId].refCount<=0&&(t.deleteShader(o[g.vertId]),delete o[g.vertId],delete u[g.fragId][g.vertId]),Object.keys(u[g.fragId]).length||(t.deleteShader(i[g.fragId]),delete i[g.fragId],delete u[g.fragId])}})},restore:g,shader:c,frag:-1,vert:-1}}var jn=6408,zn=5121,Dn=3333,In=5126;function Nn(e,t,r,n,a,i,o){function l(a){var i;i=null===t.next?zn:t.next.colorAttachments[0].texture._texture.type;var o=0,l=0,s=n.framebufferWidth,c=n.framebufferHeight,u=null;we(a)?u=a:a&&(o=0|a.x,l=0|a.y,s=0|(a.width||n.framebufferWidth-o),c=0|(a.height||n.framebufferHeight-l),u=a.data||null),r();var f=s*c*4;return u||(i===zn?u=new Uint8Array(f):i===In&&(u=u||new Float32Array(f))),e.pixelStorei(Dn,4),e.readPixels(o,l,s,c,jn,i,u),u}function s(e){var r;return t.setFBO({framebuffer:e.framebuffer},(function(){r=l(e)})),r}function c(e){return e&&"framebuffer"in e?s(e):l(e)}return c}var Rn=0;function Fn(e){return Un(Bn(Hn(e)))}function Bn(e){return qn(ea(Vn(e),8*e.length))}function Un(e){for(var t,r=Rn?"0123456789ABCDEF":"0123456789abcdef",n="",a=0;a<e.length;a++)t=e.charCodeAt(a),n+=r.charAt(t>>>4&15)+r.charAt(15&t);return n}function Hn(e){for(var t,r,n="",a=-1;++a<e.length;)t=e.charCodeAt(a),r=a+1<e.length?e.charCodeAt(a+1):0,55296<=t&&t<=56319&&56320<=r&&r<=57343&&(t=65536+((1023&t)<<10)+(1023&r),a++),t<=127?n+=String.fromCharCode(t):t<=2047?n+=String.fromCharCode(192|t>>>6&31,128|63&t):t<=65535?n+=String.fromCharCode(224|t>>>12&15,128|t>>>6&63,128|63&t):t<=2097151&&(n+=String.fromCharCode(240|t>>>18&7,128|t>>>12&63,128|t>>>6&63,128|63&t));return n}function Vn(e){for(var t=Array(e.length>>2),r=0;r<t.length;r++)t[r]=0;for(r=0;r<8*e.length;r+=8)t[r>>5]|=(255&e.charCodeAt(r/8))<<24-r%32;return t}function qn(e){for(var t="",r=0;r<32*e.length;r+=8)t+=String.fromCharCode(e[r>>5]>>>24-r%32&255);return t}function Wn(e,t){return e>>>t|e<<32-t}function Yn(e,t){return e>>>t}function Gn(e,t,r){return e&t^~e&r}function Xn(e,t,r){return e&t^e&r^t&r}function Zn(e){return Wn(e,2)^Wn(e,13)^Wn(e,22)}function $n(e){return Wn(e,6)^Wn(e,11)^Wn(e,25)}function Qn(e){return Wn(e,7)^Wn(e,18)^Yn(e,3)}function Kn(e){return Wn(e,17)^Wn(e,19)^Yn(e,10)}var Jn=new Array(1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998);function ea(e,t){var r,n,a,i,o,l,s,c,u,f,d,p,h=new Array(1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225),g=new Array(64);for(e[t>>5]|=128<<24-t%32,e[15+(t+64>>9<<4)]=t,u=0;u<e.length;u+=16){for(r=h[0],n=h[1],a=h[2],i=h[3],o=h[4],l=h[5],s=h[6],c=h[7],f=0;f<64;f++)g[f]=f<16?e[f+u]:ta(ta(ta(Kn(g[f-2]),g[f-7]),Qn(g[f-15])),g[f-16]),d=ta(ta(ta(ta(c,$n(o)),Gn(o,l,s)),Jn[f]),g[f]),p=ta(Zn(r),Xn(r,n,a)),c=s,s=l,l=o,o=ta(i,d),i=a,a=n,n=r,r=ta(d,p);h[0]=ta(r,h[0]),h[1]=ta(n,h[1]),h[2]=ta(a,h[2]),h[3]=ta(i,h[3]),h[4]=ta(o,h[4]),h[5]=ta(l,h[5]),h[6]=ta(s,h[6]),h[7]=ta(c,h[7])}return h}function ta(e,t){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function ra(e){return Array.prototype.slice.call(e)}function na(e){return ra(e).join("")}function aa(t){var r=t&&t.cache,n=0,a=[],i=[],o=[];function l(e,t){var r=t&&t.stable;if(!r)for(var l=0;l<i.length;++l)if(i[l]===e&&!o[l])return a[l];var s="g"+n++;return a.push(s),i.push(e),o.push(r),s}function s(){var t=[];function r(){t.push.apply(t,ra(arguments))}var a=[];function i(){var e="v"+n++;return a.push(e),arguments.length>0&&(t.push(e,"="),t.push.apply(t,ra(arguments)),t.push(";")),e}return e(r,{def:i,toString:function(){return na([a.length>0?"var "+a.join(",")+";":"",na(t)])}})}function c(){var t=s(),r=s(),n=t.toString,a=r.toString;function i(e,n){r(e,n,"=",t.def(e,n),";")}return e((function(){t.apply(t,ra(arguments))}),{def:t.def,entry:t,exit:r,save:i,set:function(e,r,n){i(e,r),t(e,r,"=",n,";")},toString:function(){return n()+a()}})}function u(){var t=na(arguments),r=c(),n=c(),a=r.toString,i=n.toString;return e(r,{then:function(){return r.apply(r,ra(arguments)),this},else:function(){return n.apply(n,ra(arguments)),this},toString:function(){var e=i();return e&&(e="else{"+e+"}"),na(["if(",t,"){",a(),"}",e])}})}var f=s(),d={};function p(t,r){var n=[];function a(){var e="a"+n.length;return n.push(e),e}r=r||0;for(var i=0;i<r;++i)a();var o=c(),l=o.toString;return d[t]=e(o,{arg:a,toString:function(){return na(["function(",n.join(),"){",l(),"}"])}})}function h(){var e=['"use strict";',f,"return {"];Object.keys(d).forEach((function(t){e.push('"',t,'":',d[t].toString(),",")})),e.push("}");var t,n=na(e).replace(/;/g,";\n").replace(/}/g,"}\n").replace(/{/g,"{\n");if(r&&(t=Fn(n),r[t]))return r[t].apply(null,i);var o=Function.apply(null,a.concat(n));return r&&(r[t]=o),o.apply(null,i)}return{global:f,link:l,block:s,proc:p,scope:c,cond:u,compile:h}}var ia="xyzw".split(""),oa=5121,la=1,sa=2,ca=0,ua=1,fa=2,da=3,pa=4,ha=5,ga=6,va="dither",ya="blend.enable",ma="blend.color",ba="blend.equation",xa="blend.func",wa="depth.enable",_a="depth.func",ka="depth.range",Ta="depth.mask",Aa="colorMask",Sa="cull.enable",Ma="cull.face",Oa="frontFace",Ca="lineWidth",Ea="polygonOffset.enable",La="polygonOffset.offset",Pa="sample.alpha",ja="sample.enable",za="sample.coverage",Da="stencil.enable",Ia="stencil.mask",Na="stencil.func",Ra="stencil.opFront",Fa="stencil.opBack",Ba="scissor.enable",Ua="scissor.box",Ha="viewport",Va="profile",qa="framebuffer",Wa="vert",Ya="frag",Ga="elements",Xa="primitive",Za="count",$a="offset",Qa="instances",Ka="vao",Ja="Width",ei="Height",ti=qa+Ja,ri=qa+ei,ni=Ha+Ja,ai=Ha+ei,ii="drawingBuffer",oi=ii+Ja,li=ii+ei,si=[xa,ba,Na,Ra,Fa,za,Ha,Ua,La],ci=34962,ui=34963,fi=2884,di=3042,pi=3024,hi=2960,gi=2929,vi=3089,yi=32823,mi=32926,bi=32928,xi=5126,wi=35664,_i=35665,ki=35666,Ti=5124,Ai=35667,Si=35668,Mi=35669,Oi=35670,Ci=35671,Ei=35672,Li=35673,Pi=35674,ji=35675,zi=35676,Di=35678,Ii=35680,Ni=4,Ri=1028,Fi=1029,Bi=2304,Ui=2305,Hi=32775,Vi=32776,qi=519,Wi=7680,Yi=0,Gi=1,Xi=32774,Zi=513,$i=36160,Qi=36064,Ki={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},Ji={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},eo={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},to={cw:Bi,ccw:Ui};function ro(e){return Array.isArray(e)||we(e)||_e(e)}function no(e){return e.sort((function(e,t){return e===Ha?-1:t===Ha?1:e<t?-1:1}))}function ao(e,t,r,n){this.thisDep=e,this.contextDep=t,this.propDep=r,this.append=n}function io(e){return e&&!(e.thisDep||e.contextDep||e.propDep)}function oo(e){return new ao(!1,!1,!1,e)}function lo(e,t){var r=e.type;if(r===ca){var n=e.data.length;return new ao(!0,n>=1,n>=2,t)}if(r===pa){var a=e.data;return new ao(a.thisDep,a.contextDep,a.propDep,t)}if(r===ha)return new ao(!1,!1,!1,t);if(r===ga){for(var i=!1,o=!1,l=!1,s=0;s<e.data.length;++s){var c=e.data[s];if(c.type===ua)l=!0;else if(c.type===fa)o=!0;else if(c.type===da)i=!0;else if(c.type===ca){i=!0;var u=c.data;u>=1&&(o=!0),u>=2&&(l=!0)}else c.type===pa&&(i=i||c.data.thisDep,o=o||c.data.contextDep,l=l||c.data.propDep)}return new ao(i,o,l,t)}return new ao(r===da,r===fa,r===ua,t)}var so=new ao(!1,!1,!1,(function(){}));function co(t,r,n,a,i,o,l,s,c,u,f,p,h,g,v,y){var m=u.Record,b={add:32774,subtract:32778,"reverse subtract":32779};n.ext_blend_minmax&&(b.min=Hi,b.max=Vi);var x=n.angle_instanced_arrays,w=n.webgl_draw_buffers,_=n.oes_vertex_array_object,k={dirty:!0,profile:y.profile},A={},S=[],M={},O={};function C(e){return e.replace(".","_")}function E(e,t,r){var n=C(e);S.push(e),A[n]=k[n]=!!r,M[n]=t}function L(e,t,r){var n=C(e);S.push(e),Array.isArray(r)?(k[n]=r.slice(),A[n]=r.slice()):k[n]=A[n]=r,O[n]=t}function P(e){return!!isNaN(e)}E(va,pi),E(ya,di),L(ma,"blendColor",[0,0,0,0]),L(ba,"blendEquationSeparate",[Xi,Xi]),L(xa,"blendFuncSeparate",[Gi,Yi,Gi,Yi]),E(wa,gi,!0),L(_a,"depthFunc",Zi),L(ka,"depthRange",[0,1]),L(Ta,"depthMask",!0),L(Aa,Aa,[!0,!0,!0,!0]),E(Sa,fi),L(Ma,"cullFace",Fi),L(Oa,Oa,Ui),L(Ca,Ca,1),E(Ea,yi),L(La,"polygonOffset",[0,0]),E(Pa,mi),E(ja,bi),L(za,"sampleCoverage",[1,!1]),E(Da,hi),L(Ia,"stencilMask",-1),L(Na,"stencilFunc",[qi,0,-1]),L(Ra,"stencilOpSeparate",[Ri,Wi,Wi,Wi]),L(Fa,"stencilOpSeparate",[Fi,Wi,Wi,Wi]),E(Ba,vi),L(Ua,"scissor",[0,0,t.drawingBufferWidth,t.drawingBufferHeight]),L(Ha,Ha,[0,0,t.drawingBufferWidth,t.drawingBufferHeight]);var j={gl:t,context:h,strings:r,next:A,current:k,draw:p,elements:o,buffer:i,shader:f,attributes:u.state,vao:u,uniforms:c,framebuffer:s,extensions:n,timer:g,isBufferArgs:ro},z={primTypes:We,compareFuncs:Ji,blendFuncs:Ki,blendEquations:b,stencilOps:eo,glTypes:Pe,orientationType:to};w&&(z.backBuffer=[Fi],z.drawBuffer=T(a.maxDrawbuffers,(function(e){return 0===e?[0]:T(e,(function(e){return Qi+e}))})));var D=0;function I(){var e=aa({cache:v}),t=e.link,n=e.global;e.id=D++,e.batchId="0";var a=t(j),i=e.shared={props:"a0"};Object.keys(j).forEach((function(e){i[e]=n.def(a,".",e)}));var o=e.next={},l=e.current={};Object.keys(O).forEach((function(e){Array.isArray(k[e])&&(o[e]=n.def(i.next,".",e),l[e]=n.def(i.current,".",e))}));var s=e.constants={};Object.keys(z).forEach((function(e){s[e]=n.def(JSON.stringify(z[e]))})),e.invoke=function(r,n){switch(n.type){case ca:var a=["this",i.context,i.props,e.batchId];return r.def(t(n.data),".call(",a.slice(0,Math.max(n.data.length+1,4)),")");case ua:return r.def(i.props,n.data);case fa:return r.def(i.context,n.data);case da:return r.def("this",n.data);case pa:return n.data.append(e,r),n.data.ref;case ha:return n.data.toString();case ga:return n.data.map((function(t){return e.invoke(r,t)}))}},e.attribCache={};var c={};return e.scopeAttrib=function(e){var n=r.id(e);if(n in c)return c[n];var a=u.scope[n];return a||(a=u.scope[n]=new m),c[n]=t(a)},e}function N(e){var t,r=e.static,n=e.dynamic;if(Va in r){var a=!!r[Va];(t=oo((function(e,t){return a}))).enable=a}else if(Va in n){var i=n[Va];t=lo(i,(function(e,t){return e.invoke(t,i)}))}return t}function R(e,t){var r=e.static,n=e.dynamic;if(qa in r){var a=r[qa];return a?(a=s.getFramebuffer(a),oo((function(e,t){var r=e.link(a),n=e.shared;t.set(n.framebuffer,".next",r);var i=n.context;return t.set(i,"."+ti,r+".width"),t.set(i,"."+ri,r+".height"),r}))):oo((function(e,t){var r=e.shared;t.set(r.framebuffer,".next","null");var n=r.context;return t.set(n,"."+ti,n+"."+oi),t.set(n,"."+ri,n+"."+li),"null"}))}if(qa in n){var i=n[qa];return lo(i,(function(e,t){var r=e.invoke(t,i),n=e.shared,a=n.framebuffer,o=t.def(a,".getFramebuffer(",r,")");t.set(a,".next",o);var l=n.context;return t.set(l,"."+ti,o+"?"+o+".width:"+l+"."+oi),t.set(l,"."+ri,o+"?"+o+".height:"+l+"."+li),o}))}return null}function F(e,t,r){var n=e.static,a=e.dynamic;function i(e){if(e in n){var r,i,o=n[e],l=!0,s=0|o.x,c=0|o.y;return"width"in o?r=0|o.width:l=!1,"height"in o?i=0|o.height:l=!1,new ao(!l&&t&&t.thisDep,!l&&t&&t.contextDep,!l&&t&&t.propDep,(function(e,t){var n=e.shared.context,a=r;"width"in o||(a=t.def(n,".",ti,"-",s));var l=i;return"height"in o||(l=t.def(n,".",ri,"-",c)),[s,c,a,l]}))}if(e in a){var u=a[e],f=lo(u,(function(e,t){var r=e.invoke(t,u),n=e.shared.context,a=t.def(r,".x|0"),i=t.def(r,".y|0");return[a,i,t.def('"width" in ',r,"?",r,".width|0:","(",n,".",ti,"-",a,")"),t.def('"height" in ',r,"?",r,".height|0:","(",n,".",ri,"-",i,")")]}));return t&&(f.thisDep=f.thisDep||t.thisDep,f.contextDep=f.contextDep||t.contextDep,f.propDep=f.propDep||t.propDep),f}return t?new ao(t.thisDep,t.contextDep,t.propDep,(function(e,t){var r=e.shared.context;return[0,0,t.def(r,".",ti),t.def(r,".",ri)]})):null}var o=i(Ha);if(o){var l=o;o=new ao(o.thisDep,o.contextDep,o.propDep,(function(e,t){var r=l.append(e,t),n=e.shared.context;return t.set(n,"."+ni,r[2]),t.set(n,"."+ai,r[3]),r}))}return{viewport:o,scissor_box:i(Ua)}}function B(e,t){var r=e.static;if("string"===typeof r[Ya]&&"string"===typeof r[Wa]){if(Object.keys(t.dynamic).length>0)return null;var n=t.static,a=Object.keys(n);if(a.length>0&&"number"===typeof n[a[0]]){for(var i=[],o=0;o<a.length;++o)i.push([0|n[a[o]],a[o]]);return i}}return null}function U(e,t,n){var a=e.static,i=e.dynamic;function o(e){if(e in a){var t=r.id(a[e]),n=oo((function(){return t}));return n.id=t,n}if(e in i){var o=i[e];return lo(o,(function(e,t){var r=e.invoke(t,o);return t.def(e.shared.strings,".id(",r,")")}))}return null}var l,s=o(Ya),c=o(Wa),u=null;return io(s)&&io(c)?(u=f.program(c.id,s.id,null,n),l=oo((function(e,t){return e.link(u)}))):l=new ao(s&&s.thisDep||c&&c.thisDep,s&&s.contextDep||c&&c.contextDep,s&&s.propDep||c&&c.propDep,(function(e,t){var r,n=e.shared.shader;r=s?s.append(e,t):t.def(n,".",Ya);var a=n+".program("+(c?c.append(e,t):t.def(n,".",Wa))+","+r;return t.def(a+")")})),{frag:s,vert:c,progVar:l,program:u}}function H(e,t){var r=e.static,n=e.dynamic,a={},i=!1;function l(){if(Ka in r){var e=r[Ka];return null!==e&&null===u.getVAO(e)&&(e=u.createVAO(e)),i=!0,a.vao=e,oo((function(t){var r=u.getVAO(e);return r?t.link(r):"null"}))}if(Ka in n){i=!0;var t=n[Ka];return lo(t,(function(e,r){var n=e.invoke(r,t);return r.def(e.shared.vao+".getVAO("+n+")")}))}return null}var s=l(),c=!1;function f(){if(Ga in r){var e=r[Ga];if(a.elements=e,ro(e)){var t=a.elements=o.create(e,!0);e=o.getElements(t),c=!0}else e&&(e=o.getElements(e),c=!0);var l=oo((function(t,r){if(e){var n=t.link(e);return t.ELEMENTS=n,n}return t.ELEMENTS=null,null}));return l.value=e,l}if(Ga in n){c=!0;var u=n[Ga];return lo(u,(function(e,t){var r=e.shared,n=r.isBufferArgs,a=r.elements,i=e.invoke(t,u),o=t.def("null"),l=t.def(n,"(",i,")"),s=e.cond(l).then(o,"=",a,".createStream(",i,");").else(o,"=",a,".getElements(",i,");");return t.entry(s),t.exit(e.cond(l).then(a,".destroyStream(",o,");")),e.ELEMENTS=o,o}))}return i?new ao(s.thisDep,s.contextDep,s.propDep,(function(e,t){return t.def(e.shared.vao+".currentVAO?"+e.shared.elements+".getElements("+e.shared.vao+".currentVAO.elements):null")})):null}var d=f();function p(){if(Xa in r){var e=r[Xa];return a.primitive=e,oo((function(t,r){return We[e]}))}if(Xa in n){var t=n[Xa];return lo(t,(function(e,r){var n=e.constants.primTypes,a=e.invoke(r,t);return r.def(n,"[",a,"]")}))}return c?io(d)?d.value?oo((function(e,t){return t.def(e.ELEMENTS,".primType")})):oo((function(){return Ni})):new ao(d.thisDep,d.contextDep,d.propDep,(function(e,t){var r=e.ELEMENTS;return t.def(r,"?",r,".primType:",Ni)})):i?new ao(s.thisDep,s.contextDep,s.propDep,(function(e,t){return t.def(e.shared.vao+".currentVAO?"+e.shared.vao+".currentVAO.primitive:"+Ni)})):null}function h(e,t){if(e in r){var o=0|r[e];return t?a.offset=o:a.instances=o,oo((function(e,r){return t&&(e.OFFSET=o),o}))}if(e in n){var l=n[e];return lo(l,(function(e,r){var n=e.invoke(r,l);return t&&(e.OFFSET=n),n}))}if(t){if(c)return oo((function(e,t){return e.OFFSET=0,0}));if(i)return new ao(s.thisDep,s.contextDep,s.propDep,(function(e,t){return t.def(e.shared.vao+".currentVAO?"+e.shared.vao+".currentVAO.offset:0")}))}else if(i)return new ao(s.thisDep,s.contextDep,s.propDep,(function(e,t){return t.def(e.shared.vao+".currentVAO?"+e.shared.vao+".currentVAO.instances:-1")}));return null}var g=h($a,!0);function v(){if(Za in r){var e=0|r[Za];return a.count=e,oo((function(){return e}))}if(Za in n){var t=n[Za];return lo(t,(function(e,r){return e.invoke(r,t)}))}if(c){if(io(d))return d?g?new ao(g.thisDep,g.contextDep,g.propDep,(function(e,t){return t.def(e.ELEMENTS,".vertCount-",e.OFFSET)})):oo((function(e,t){return t.def(e.ELEMENTS,".vertCount")})):oo((function(){return-1}));var o=new ao(d.thisDep||g.thisDep,d.contextDep||g.contextDep,d.propDep||g.propDep,(function(e,t){var r=e.ELEMENTS;return e.OFFSET?t.def(r,"?",r,".vertCount-",e.OFFSET,":-1"):t.def(r,"?",r,".vertCount:-1")}));return o}if(i){var l=new ao(s.thisDep,s.contextDep,s.propDep,(function(e,t){return t.def(e.shared.vao,".currentVAO?",e.shared.vao,".currentVAO.count:-1")}));return l}return null}var y=p(),m=v(),b=h(Qa,!1);return{elements:d,primitive:y,count:m,instances:b,offset:g,vao:s,vaoActive:i,elementsActive:c,static:a}}function V(e,t){var r=e.static,n=e.dynamic,a={};return S.forEach((function(e){var t=C(e);function i(i,o){if(e in r){var l=i(r[e]);a[t]=oo((function(){return l}))}else if(e in n){var s=n[e];a[t]=lo(s,(function(e,t){return o(e,t,e.invoke(t,s))}))}}switch(e){case Sa:case ya:case va:case Da:case wa:case Ba:case Ea:case Pa:case ja:case Ta:return i((function(e){return e}),(function(e,t,r){return r}));case _a:return i((function(e){return Ji[e]}),(function(e,t,r){var n=e.constants.compareFuncs;return t.def(n,"[",r,"]")}));case ka:return i((function(e){return e}),(function(e,t,r){return[t.def("+",r,"[0]"),t.def("+",r,"[1]")]}));case xa:return i((function(e){var t="srcRGB"in e?e.srcRGB:e.src,r="srcAlpha"in e?e.srcAlpha:e.src,n="dstRGB"in e?e.dstRGB:e.dst,a="dstAlpha"in e?e.dstAlpha:e.dst;return[Ki[t],Ki[n],Ki[r],Ki[a]]}),(function(e,t,r){var n=e.constants.blendFuncs;function a(e,n){return t.def('"',e,n,'" in ',r,"?",r,".",e,n,":",r,".",e)}var i=a("src","RGB"),o=a("dst","RGB"),l=t.def(n,"[",i,"]"),s=t.def(n,"[",a("src","Alpha"),"]");return[l,t.def(n,"[",o,"]"),s,t.def(n,"[",a("dst","Alpha"),"]")]}));case ba:return i((function(e){return"string"===typeof e?[b[e],b[e]]:"object"===typeof e?[b[e.rgb],b[e.alpha]]:void 0}),(function(e,t,r){var n=e.constants.blendEquations,a=t.def(),i=t.def(),o=e.cond("typeof ",r,'==="string"');return o.then(a,"=",i,"=",n,"[",r,"];"),o.else(a,"=",n,"[",r,".rgb];",i,"=",n,"[",r,".alpha];"),t(o),[a,i]}));case ma:return i((function(e){return T(4,(function(t){return+e[t]}))}),(function(e,t,r){return T(4,(function(e){return t.def("+",r,"[",e,"]")}))}));case Ia:return i((function(e){return 0|e}),(function(e,t,r){return t.def(r,"|0")}));case Na:return i((function(e){var t=e.cmp||"keep",r=e.ref||0,n="mask"in e?e.mask:-1;return[Ji[t],r,n]}),(function(e,t,r){var n=e.constants.compareFuncs;return[t.def('"cmp" in ',r,"?",n,"[",r,".cmp]",":",Wi),t.def(r,".ref|0"),t.def('"mask" in ',r,"?",r,".mask|0:-1")]}));case Ra:case Fa:return i((function(t){var r=t.fail||"keep",n=t.zfail||"keep",a=t.zpass||"keep";return[e===Fa?Fi:Ri,eo[r],eo[n],eo[a]]}),(function(t,r,n){var a=t.constants.stencilOps;function i(e){return r.def('"',e,'" in ',n,"?",a,"[",n,".",e,"]:",Wi)}return[e===Fa?Fi:Ri,i("fail"),i("zfail"),i("zpass")]}));case La:return i((function(e){return[0|e.factor,0|e.units]}),(function(e,t,r){return[t.def(r,".factor|0"),t.def(r,".units|0")]}));case Ma:return i((function(e){var t=0;return"front"===e?t=Ri:"back"===e&&(t=Fi),t}),(function(e,t,r){return t.def(r,'==="front"?',Ri,":",Fi)}));case Ca:return i((function(e){return e}),(function(e,t,r){return r}));case Oa:return i((function(e){return to[e]}),(function(e,t,r){return t.def(r+'==="cw"?'+Bi+":"+Ui)}));case Aa:return i((function(e){return e.map((function(e){return!!e}))}),(function(e,t,r){return T(4,(function(e){return"!!"+r+"["+e+"]"}))}));case za:return i((function(e){return["value"in e?e.value:1,!!e.invert]}),(function(e,t,r){return[t.def('"value" in ',r,"?+",r,".value:1"),t.def("!!",r,".invert")]}))}})),a}function q(e,t){var r=e.static,n=e.dynamic,a={};return Object.keys(r).forEach((function(e){var t,n=r[e];if("number"===typeof n||"boolean"===typeof n)t=oo((function(){return n}));else if("function"===typeof n){var i=n._reglType;"texture2d"===i||"textureCube"===i?t=oo((function(e){return e.link(n)})):"framebuffer"!==i&&"framebufferCube"!==i||(t=oo((function(e){return e.link(n.color[0])})))}else ct(n)&&(t=oo((function(e){return e.global.def("[",T(n.length,(function(e){return n[e]})),"]")})));t.value=n,a[e]=t})),Object.keys(n).forEach((function(e){var t=n[e];a[e]=lo(t,(function(e,r){return e.invoke(r,t)}))})),a}function W(e,t){var n=e.static,a=e.dynamic,o={};return Object.keys(n).forEach((function(e){var t=n[e],a=r.id(e),l=new m;if(ro(t))l.state=la,l.buffer=i.getBuffer(i.create(t,ci,!1,!0)),l.type=0;else{var s=i.getBuffer(t);if(s)l.state=la,l.buffer=s,l.type=0;else if("constant"in t){var c=t.constant;l.buffer="null",l.state=sa,"number"===typeof c?l.x=c:ia.forEach((function(e,t){t<c.length&&(l[e]=c[t])}))}else{s=ro(t.buffer)?i.getBuffer(i.create(t.buffer,ci,!1,!0)):i.getBuffer(t.buffer);var u=0|t.offset,f=0|t.stride,d=0|t.size,p=!!t.normalized,h=0;"type"in t&&(h=Pe[t.type]);var g=0|t.divisor;l.buffer=s,l.state=la,l.size=d,l.normalized=p,l.type=h||s.dtype,l.offset=u,l.stride=f,l.divisor=g}}o[e]=oo((function(e,t){var r=e.attribCache;if(a in r)return r[a];var n={isStream:!1};return Object.keys(l).forEach((function(e){n[e]=l[e]})),l.buffer&&(n.buffer=e.link(l.buffer),n.type=n.type||n.buffer+".dtype"),r[a]=n,n}))})),Object.keys(a).forEach((function(e){var t=a[e];function r(e,r){var n=e.invoke(r,t),a=e.shared,i=e.constants,o=a.isBufferArgs,l=a.buffer,s={isStream:r.def(!1)},c=new m;c.state=la,Object.keys(c).forEach((function(e){s[e]=r.def(""+c[e])}));var u=s.buffer,f=s.type;function d(e){r(s[e],"=",n,".",e,"|0;")}return r("if(",o,"(",n,")){",s.isStream,"=true;",u,"=",l,".createStream(",ci,",",n,");",f,"=",u,".dtype;","}else{",u,"=",l,".getBuffer(",n,");","if(",u,"){",f,"=",u,".dtype;",'}else if("constant" in ',n,"){",s.state,"=",sa,";","if(typeof "+n+'.constant === "number"){',s[ia[0]],"=",n,".constant;",ia.slice(1).map((function(e){return s[e]})).join("="),"=0;","}else{",ia.map((function(e,t){return s[e]+"="+n+".constant.length>"+t+"?"+n+".constant["+t+"]:0;"})).join(""),"}}else{","if(",o,"(",n,".buffer)){",u,"=",l,".createStream(",ci,",",n,".buffer);","}else{",u,"=",l,".getBuffer(",n,".buffer);","}",f,'="type" in ',n,"?",i.glTypes,"[",n,".type]:",u,".dtype;",s.normalized,"=!!",n,".normalized;"),d("size"),d("offset"),d("stride"),d("divisor"),r("}}"),r.exit("if(",s.isStream,"){",l,".destroyStream(",u,");","}"),s}o[e]=lo(t,r)})),o}function Y(e){var t=e.static,r=e.dynamic,n={};return Object.keys(t).forEach((function(e){var r=t[e];n[e]=oo((function(e,t){return"number"===typeof r||"boolean"===typeof r?""+r:e.link(r)}))})),Object.keys(r).forEach((function(e){var t=r[e];n[e]=lo(t,(function(e,r){return e.invoke(r,t)}))})),n}function G(e,t,r,a,i){e.static,e.dynamic;var o=B(e,t),l=R(e,i),s=F(e,l,i),c=H(e,i),f=V(e,i),d=U(e,i,o);function p(e){var t=s[e];t&&(f[e]=t)}p(Ha),p(C(Ua));var h=Object.keys(f).length>0,g={framebuffer:l,draw:c,shader:d,state:f,dirty:h,scopeVAO:null,drawVAO:null,useVAO:!1,attributes:{}};if(g.profile=N(e,i),g.uniforms=q(r,i),g.drawVAO=g.scopeVAO=c.vao,!g.drawVAO&&d.program&&!o&&n.angle_instanced_arrays&&c.static.elements){var v=!0,y=d.program.attributes.map((function(e){var r=t.static[e];return v=v&&!!r,r}));if(v&&y.length>0){var m=u.getVAO(u.createVAO({attributes:y,elements:c.static.elements}));g.drawVAO=new ao(null,null,null,(function(e,t){return e.link(m)})),g.useVAO=!0}}return o?g.useVAO=!0:g.attributes=W(t,i),g.context=Y(a,i),g}function X(e,t,r){var n=e.shared.context,a=e.scope();Object.keys(r).forEach((function(i){t.save(n,"."+i);var o=r[i].append(e,t);Array.isArray(o)?a(n,".",i,"=[",o.join(),"];"):a(n,".",i,"=",o,";")})),t(a)}function Z(e,t,r,n){var a,i=e.shared,o=i.gl,l=i.framebuffer;w&&(a=t.def(i.extensions,".webgl_draw_buffers"));var s,c=e.constants,u=c.drawBuffer,f=c.backBuffer;s=r?r.append(e,t):t.def(l,".next"),n||t("if(",s,"!==",l,".cur){"),t("if(",s,"){",o,".bindFramebuffer(",$i,",",s,".framebuffer);"),w&&t(a,".drawBuffersWEBGL(",u,"[",s,".colorAttachments.length]);"),t("}else{",o,".bindFramebuffer(",$i,",null);"),w&&t(a,".drawBuffersWEBGL(",f,");"),t("}",l,".cur=",s,";"),n||t("}")}function $(e,t,r){var n=e.shared,a=n.gl,i=e.current,o=e.next,l=n.current,s=n.next,c=e.cond(l,".dirty");S.forEach((function(t){var n,u,f=C(t);if(!(f in r.state))if(f in o){n=o[f],u=i[f];var d=T(k[f].length,(function(e){return c.def(n,"[",e,"]")}));c(e.cond(d.map((function(e,t){return e+"!=="+u+"["+t+"]"})).join("||")).then(a,".",O[f],"(",d,");",d.map((function(e,t){return u+"["+t+"]="+e})).join(";"),";"))}else{n=c.def(s,".",f);var p=e.cond(n,"!==",l,".",f);c(p),f in M?p(e.cond(n).then(a,".enable(",M[f],");").else(a,".disable(",M[f],");"),l,".",f,"=",n,";"):p(a,".",O[f],"(",n,");",l,".",f,"=",n,";")}})),0===Object.keys(r.state).length&&c(l,".dirty=false;"),t(c)}function Q(e,t,r,n){var a,i=e.shared,o=e.current,l=i.current,s=i.gl;no(Object.keys(r)).forEach((function(i){var c=r[i];if(!n||n(c)){var u=c.append(e,t);if(M[i]){var f=M[i];io(c)?(a=e.link(u,{stable:!0}),t(e.cond(a).then(s,".enable(",f,");").else(s,".disable(",f,");")),t(l,".",i,"=",a,";")):(t(e.cond(u).then(s,".enable(",f,");").else(s,".disable(",f,");")),t(l,".",i,"=",u,";"))}else if(ct(u)){var d=o[i];t(s,".",O[i],"(",u,");",u.map((function(e,t){return d+"["+t+"]="+e})).join(";"),";")}else io(c)?(a=e.link(u,{stable:!0}),t(s,".",O[i],"(",a,");",l,".",i,"=",a,";")):t(s,".",O[i],"(",u,");",l,".",i,"=",u,";")}}))}function K(e,t){x&&(e.instancing=t.def(e.shared.extensions,".angle_instanced_arrays"))}function J(e,t,r,n,a){var i,o,l,s=e.shared,c=e.stats,u=s.current,f=s.timer,d=r.profile;function p(){return"undefined"===typeof performance?"Date.now()":"performance.now()"}function h(e){e(i=t.def(),"=",p(),";"),"string"===typeof a?e(c,".count+=",a,";"):e(c,".count++;"),g&&(n?e(o=t.def(),"=",f,".getNumPendingQueries();"):e(f,".beginQuery(",c,");"))}function v(e){e(c,".cpuTime+=",p(),"-",i,";"),g&&(n?e(f,".pushScopeStats(",o,",",f,".getNumPendingQueries(),",c,");"):e(f,".endQuery();"))}function y(e){var r=t.def(u,".profile");t(u,".profile=",e,";"),t.exit(u,".profile=",r,";")}if(d){if(io(d))return void(d.enable?(h(t),v(t.exit),y("true")):y("false"));y(l=d.append(e,t))}else l=t.def(u,".profile");var m=e.block();h(m),t("if(",l,"){",m,"}");var b=e.block();v(b),t.exit("if(",l,"){",b,"}")}function ee(e,t,r,n,a){var i=e.shared;function o(e){switch(e){case wi:case Ai:case Ci:return 2;case _i:case Si:case Ei:return 3;case ki:case Mi:case Li:return 4;default:return 1}}function l(r,n,a){var o=i.gl,l=t.def(r,".location"),s=t.def(i.attributes,"[",l,"]"),c=a.state,u=a.buffer,f=[a.x,a.y,a.z,a.w],d=["buffer","normalized","offset","stride"];function p(){t("if(!",s,".buffer){",o,".enableVertexAttribArray(",l,");}");var r,i=a.type;if(r=a.size?t.def(a.size,"||",n):n,t("if(",s,".type!==",i,"||",s,".size!==",r,"||",d.map((function(e){return s+"."+e+"!=="+a[e]})).join("||"),"){",o,".bindBuffer(",ci,",",u,".buffer);",o,".vertexAttribPointer(",[l,r,i,a.normalized,a.stride,a.offset],");",s,".type=",i,";",s,".size=",r,";",d.map((function(e){return s+"."+e+"="+a[e]+";"})).join(""),"}"),x){var c=a.divisor;t("if(",s,".divisor!==",c,"){",e.instancing,".vertexAttribDivisorANGLE(",[l,c],");",s,".divisor=",c,";}")}}function h(){t("if(",s,".buffer){",o,".disableVertexAttribArray(",l,");",s,".buffer=null;","}if(",ia.map((function(e,t){return s+"."+e+"!=="+f[t]})).join("||"),"){",o,".vertexAttrib4f(",l,",",f,");",ia.map((function(e,t){return s+"."+e+"="+f[t]+";"})).join(""),"}")}c===la?p():c===sa?h():(t("if(",c,"===",la,"){"),p(),t("}else{"),h(),t("}"))}n.forEach((function(n){var i,s=n.name,c=r.attributes[s];if(c){if(!a(c))return;i=c.append(e,t)}else{if(!a(so))return;var u=e.scopeAttrib(s);i={},Object.keys(new m).forEach((function(e){i[e]=t.def(u,".",e)}))}l(e.link(n),o(n.info.type),i)}))}function te(e,t,n,a,i,o){for(var l,s=e.shared,c=s.gl,u=0;u<a.length;++u){var f,d=a[u],p=d.name,h=d.info.type,g=n.uniforms[p],v=e.link(d)+".location";if(g){if(!i(g))continue;if(io(g)){var y=g.value;if(h===Di||h===Ii){var m=e.link(y._texture||y.color[0]._texture);t(c,".uniform1i(",v,",",m+".bind());"),t.exit(m,".unbind();")}else if(h===Pi||h===ji||h===zi){var b=e.global.def("new Float32Array(["+Array.prototype.slice.call(y)+"])"),x=2;h===ji?x=3:h===zi&&(x=4),t(c,".uniformMatrix",x,"fv(",v,",false,",b,");")}else{switch(h){case xi:l="1f";break;case wi:l="2f";break;case _i:l="3f";break;case ki:l="4f";break;case Oi:case Ti:l="1i";break;case Ci:case Ai:l="2i";break;case Ei:case Si:l="3i";break;case Li:case Mi:l="4i"}t(c,".uniform",l,"(",v,",",ct(y)?Array.prototype.slice.call(y):y,");")}continue}f=g.append(e,t)}else{if(!i(so))continue;f=t.def(s.uniforms,"[",r.id(p),"]")}h===Di?t("if(",f,"&&",f,'._reglType==="framebuffer"){',f,"=",f,".color[0];","}"):h===Ii&&t("if(",f,"&&",f,'._reglType==="framebufferCube"){',f,"=",f,".color[0];","}");var w=1;switch(h){case Di:case Ii:var _=t.def(f,"._texture");t(c,".uniform1i(",v,",",_,".bind());"),t.exit(_,".unbind();");continue;case Ti:case Oi:l="1i";break;case Ai:case Ci:l="2i",w=2;break;case Si:case Ei:l="3i",w=3;break;case Mi:case Li:l="4i",w=4;break;case xi:l="1f";break;case wi:l="2f",w=2;break;case _i:l="3f",w=3;break;case ki:l="4f",w=4;break;case Pi:l="Matrix2fv";break;case ji:l="Matrix3fv";break;case zi:l="Matrix4fv"}if("M"===l.charAt(0)){t(c,".uniform",l,"(",v,",");var k=Math.pow(h-Pi+2,2),A=e.global.def("new Float32Array(",k,")");Array.isArray(f)?t("false,(",T(k,(function(e){return A+"["+e+"]="+f[e]})),",",A,")"):t("false,(Array.isArray(",f,")||",f," instanceof Float32Array)?",f,":(",T(k,(function(e){return A+"["+e+"]="+f+"["+e+"]"})),",",A,")"),t(");")}else if(w>1){for(var S=[],M=[],O=0;O<w;++O)Array.isArray(f)?M.push(f[O]):M.push(t.def(f+"["+O+"]")),o&&S.push(t.def());o&&t("if(!",e.batchId,"||",S.map((function(e,t){return e+"!=="+M[t]})).join("||"),"){",S.map((function(e,t){return e+"="+M[t]+";"})).join("")),t(c,".uniform",l,"(",v,",",M.join(","),");"),o&&t("}")}else{if(o){var C=t.def();t("if(!",e.batchId,"||",C,"!==",f,"){",C,"=",f,";")}t(c,".uniform",l,"(",v,",",f,");"),o&&t("}")}}}function re(e,t,r,n){var a=e.shared,i=a.gl,o=a.draw,l=n.draw;function s(){var s,c=l.elements,u=t;return c?((c.contextDep&&n.contextDynamic||c.propDep)&&(u=r),s=c.append(e,u),l.elementsActive&&u("if("+s+")"+i+".bindBuffer("+ui+","+s+".buffer.buffer);")):(s=u.def(),u(s,"=",o,".",Ga,";","if(",s,"){",i,".bindBuffer(",ui,",",s,".buffer.buffer);}","else if(",a.vao,".currentVAO){",s,"=",e.shared.elements+".getElements("+a.vao,".currentVAO.elements);",_?"":"if("+s+")"+i+".bindBuffer("+ui+","+s+".buffer.buffer);","}")),s}function c(){var a,i=l.count,s=t;return i?((i.contextDep&&n.contextDynamic||i.propDep)&&(s=r),a=i.append(e,s)):a=s.def(o,".",Za),a}var u=s();function f(a){var i=l[a];return i?i.contextDep&&n.contextDynamic||i.propDep?i.append(e,r):i.append(e,t):t.def(o,".",a)}var d,p,h=f(Xa),g=f($a),v=c();if("number"===typeof v){if(0===v)return}else r("if(",v,"){"),r.exit("}");x&&(d=f(Qa),p=e.instancing);var y=u+".type",m=l.elements&&io(l.elements)&&!l.vaoActive;function b(){function e(){r(p,".drawElementsInstancedANGLE(",[h,v,y,g+"<<(("+y+"-"+oa+")>>1)",d],");")}function t(){r(p,".drawArraysInstancedANGLE(",[h,g,v,d],");")}u&&"null"!==u?m?e():(r("if(",u,"){"),e(),r("}else{"),t(),r("}")):t()}function w(){function e(){r(i+".drawElements("+[h,v,y,g+"<<(("+y+"-"+oa+")>>1)"]+");")}function t(){r(i+".drawArrays("+[h,g,v]+");")}u&&"null"!==u?m?e():(r("if(",u,"){"),e(),r("}else{"),t(),r("}")):t()}x&&("number"!==typeof d||d>=0)?"string"===typeof d?(r("if(",d,">0){"),b(),r("}else if(",d,"<0){"),w(),r("}")):b():w()}function ne(e,t,r,n,a){var i=I(),o=i.proc("body",a);return x&&(i.instancing=o.def(i.shared.extensions,".angle_instanced_arrays")),e(i,o,r,n),i.compile().body}function ae(e,t,r,n){K(e,t),r.useVAO?r.drawVAO?t(e.shared.vao,".setVAO(",r.drawVAO.append(e,t),");"):t(e.shared.vao,".setVAO(",e.shared.vao,".targetVAO);"):(t(e.shared.vao,".setVAO(null);"),ee(e,t,r,n.attributes,(function(){return!0}))),te(e,t,r,n.uniforms,(function(){return!0}),!1),re(e,t,t,r)}function ie(e,t){var r=e.proc("draw",1);K(e,r),X(e,r,t.context),Z(e,r,t.framebuffer),$(e,r,t),Q(e,r,t.state),J(e,r,t,!1,!0);var n=t.shader.progVar.append(e,r);if(r(e.shared.gl,".useProgram(",n,".program);"),t.shader.program)ae(e,r,t,t.shader.program);else{r(e.shared.vao,".setVAO(null);");var a=e.global.def("{}"),i=r.def(n,".id"),o=r.def(a,"[",i,"]");r(e.cond(o).then(o,".call(this,a0);").else(o,"=",a,"[",i,"]=",e.link((function(r){return ne(ae,e,t,r,1)})),"(",n,");",o,".call(this,a0);"))}Object.keys(t.state).length>0&&r(e.shared.current,".dirty=true;"),e.shared.vao&&r(e.shared.vao,".setVAO(null);")}function oe(e,t,r,n){function a(){return!0}e.batchId="a1",K(e,t),ee(e,t,r,n.attributes,a),te(e,t,r,n.uniforms,a,!1),re(e,t,t,r)}function le(e,t,r,n){K(e,t);var a=r.contextDep,i=t.def(),o="a0",l="a1",s=t.def();e.shared.props=s,e.batchId=i;var c=e.scope(),u=e.scope();function f(e){return e.contextDep&&a||e.propDep}function d(e){return!f(e)}if(t(c.entry,"for(",i,"=0;",i,"<",l,";++",i,"){",s,"=",o,"[",i,"];",u,"}",c.exit),r.needsContext&&X(e,u,r.context),r.needsFramebuffer&&Z(e,u,r.framebuffer),Q(e,u,r.state,f),r.profile&&f(r.profile)&&J(e,u,r,!1,!0),n)r.useVAO?r.drawVAO?f(r.drawVAO)?u(e.shared.vao,".setVAO(",r.drawVAO.append(e,u),");"):c(e.shared.vao,".setVAO(",r.drawVAO.append(e,c),");"):c(e.shared.vao,".setVAO(",e.shared.vao,".targetVAO);"):(c(e.shared.vao,".setVAO(null);"),ee(e,c,r,n.attributes,d),ee(e,u,r,n.attributes,f)),te(e,c,r,n.uniforms,d,!1),te(e,u,r,n.uniforms,f,!0),re(e,c,u,r);else{var p=e.global.def("{}"),h=r.shader.progVar.append(e,u),g=u.def(h,".id"),v=u.def(p,"[",g,"]");u(e.shared.gl,".useProgram(",h,".program);","if(!",v,"){",v,"=",p,"[",g,"]=",e.link((function(t){return ne(oe,e,r,t,2)})),"(",h,");}",v,".call(this,a0[",i,"],",i,");")}}function se(e,t){var r=e.proc("batch",2);e.batchId="0",K(e,r);var n=!1,a=!0;Object.keys(t.context).forEach((function(e){n=n||t.context[e].propDep})),n||(X(e,r,t.context),a=!1);var i=t.framebuffer,o=!1;function l(e){return e.contextDep&&n||e.propDep}i?(i.propDep?n=o=!0:i.contextDep&&n&&(o=!0),o||Z(e,r,i)):Z(e,r,null),t.state.viewport&&t.state.viewport.propDep&&(n=!0),$(e,r,t),Q(e,r,t.state,(function(e){return!l(e)})),t.profile&&l(t.profile)||J(e,r,t,!1,"a1"),t.contextDep=n,t.needsContext=a,t.needsFramebuffer=o;var s=t.shader.progVar;if(s.contextDep&&n||s.propDep)le(e,r,t,null);else{var c=s.append(e,r);if(r(e.shared.gl,".useProgram(",c,".program);"),t.shader.program)le(e,r,t,t.shader.program);else{r(e.shared.vao,".setVAO(null);");var u=e.global.def("{}"),f=r.def(c,".id"),d=r.def(u,"[",f,"]");r(e.cond(d).then(d,".call(this,a0,a1);").else(d,"=",u,"[",f,"]=",e.link((function(r){return ne(le,e,t,r,2)})),"(",c,");",d,".call(this,a0,a1);"))}}Object.keys(t.state).length>0&&r(e.shared.current,".dirty=true;"),e.shared.vao&&r(e.shared.vao,".setVAO(null);")}function ce(e,t){var n=e.proc("scope",3);e.batchId="a2";var a=e.shared,i=a.current;if(X(e,n,t.context),t.framebuffer&&t.framebuffer.append(e,n),no(Object.keys(t.state)).forEach((function(r){var i=t.state[r],o=i.append(e,n);ct(o)?o.forEach((function(t,a){P(t)?n.set(e.next[r],"["+a+"]",t):n.set(e.next[r],"["+a+"]",e.link(t,{stable:!0}))})):io(i)?n.set(a.next,"."+r,e.link(o,{stable:!0})):n.set(a.next,"."+r,o)})),J(e,n,t,!0,!0),[Ga,$a,Za,Qa,Xa].forEach((function(r){var i=t.draw[r];if(i){var o=i.append(e,n);P(o)?n.set(a.draw,"."+r,o):n.set(a.draw,"."+r,e.link(o),{stable:!0})}})),Object.keys(t.uniforms).forEach((function(i){var o=t.uniforms[i].append(e,n);Array.isArray(o)&&(o="["+o.map((function(t){return P(t)?t:e.link(t,{stable:!0})}))+"]"),n.set(a.uniforms,"["+e.link(r.id(i),{stable:!0})+"]",o)})),Object.keys(t.attributes).forEach((function(r){var a=t.attributes[r].append(e,n),i=e.scopeAttrib(r);Object.keys(new m).forEach((function(e){n.set(i,"."+e,a[e])}))})),t.scopeVAO){var o=t.scopeVAO.append(e,n);P(o)?n.set(a.vao,".targetVAO",o):n.set(a.vao,".targetVAO",e.link(o,{stable:!0}))}function l(r){var i=t.shader[r];if(i){var o=i.append(e,n);P(o)?n.set(a.shader,"."+r,o):n.set(a.shader,"."+r,e.link(o,{stable:!0}))}}l(Wa),l(Ya),Object.keys(t.state).length>0&&(n(i,".dirty=true;"),n.exit(i,".dirty=true;")),n("a1(",e.shared.context,",a0,",e.batchId,");")}function ue(e){if("object"===typeof e&&!ct(e)){for(var t=Object.keys(e),r=0;r<t.length;++r)if(d.isDynamic(e[t[r]]))return!0;return!1}}function fe(e,t,r){var n=t.static[r];if(n&&ue(n)){var a=e.global,i=Object.keys(n),o=!1,l=!1,s=!1,c=e.global.def("{}");i.forEach((function(t){var r=n[t];if(d.isDynamic(r)){"function"===typeof r&&(r=n[t]=d.unbox(r));var i=lo(r,null);o=o||i.thisDep,s=s||i.propDep,l=l||i.contextDep}else{switch(a(c,".",t,"="),typeof r){case"number":a(r);break;case"string":a('"',r,'"');break;case"object":Array.isArray(r)&&a("[",r.join(),"]");break;default:a(e.link(r))}a(";")}})),t.dynamic[r]=new d.DynamicVariable(pa,{thisDep:o,contextDep:l,propDep:s,ref:c,append:u}),delete t.static[r]}function u(e,t){i.forEach((function(r){var a=n[r];if(d.isDynamic(a)){var i=e.invoke(t,a);t(c,".",r,"=",i,";")}}))}}function de(t,r,n,a,i){var o=I();o.stats=o.link(i),Object.keys(r.static).forEach((function(e){fe(o,r,e)})),si.forEach((function(e){fe(o,t,e)}));var l=G(t,r,n,a,o);return l.shader.program&&(l.shader.program.attributes.sort((function(e,t){return e.name<t.name?-1:1})),l.shader.program.uniforms.sort((function(e,t){return e.name<t.name?-1:1}))),ie(o,l),ce(o,l),se(o,l),e(o.compile(),{destroy:function(){l.shader.program.destroy()}})}return{next:A,current:k,procs:function(){var e=I(),t=e.proc("poll"),r=e.proc("refresh"),i=e.block();t(i),r(i);var o,l=e.shared,s=l.gl,c=l.next,u=l.current;i(u,".dirty=false;"),Z(e,t),Z(e,r,null,!0),x&&(o=e.link(x)),n.oes_vertex_array_object&&r(e.link(n.oes_vertex_array_object),".bindVertexArrayOES(null);");var f=r.def(l.attributes),d=r.def(0),p=e.cond(d,".buffer");p.then(s,".enableVertexAttribArray(i);",s,".bindBuffer(",ci,",",d,".buffer.buffer);",s,".vertexAttribPointer(i,",d,".size,",d,".type,",d,".normalized,",d,".stride,",d,".offset);").else(s,".disableVertexAttribArray(i);",s,".vertexAttrib4f(i,",d,".x,",d,".y,",d,".z,",d,".w);",d,".buffer=null;");var h=e.link(a.maxAttributes,{stable:!0});return r("for(var i=0;i<",h,";++i){",d,"=",f,"[i];",p,"}"),x&&r("for(var i=0;i<",h,";++i){",o,".vertexAttribDivisorANGLE(i,",f,"[i].divisor);","}"),r(e.shared.vao,".currentVAO=null;",e.shared.vao,".setVAO(",e.shared.vao,".targetVAO);"),Object.keys(M).forEach((function(n){var a=M[n],o=i.def(c,".",n),l=e.block();l("if(",o,"){",s,".enable(",a,")}else{",s,".disable(",a,")}",u,".",n,"=",o,";"),r(l),t("if(",o,"!==",u,".",n,"){",l,"}")})),Object.keys(O).forEach((function(n){var a,o,l=O[n],f=k[n],d=e.block();if(d(s,".",l,"("),ct(f)){var p=f.length;a=e.global.def(c,".",n),o=e.global.def(u,".",n),d(T(p,(function(e){return a+"["+e+"]"})),");",T(p,(function(e){return o+"["+e+"]="+a+"["+e+"];"})).join("")),t("if(",T(p,(function(e){return a+"["+e+"]!=="+o+"["+e+"]"})).join("||"),"){",d,"}")}else a=i.def(c,".",n),o=i.def(u,".",n),d(a,");",u,".",n,"=",a,";"),t("if(",a,"!==",o,"){",d,"}");r(d)})),e.compile()}(),compile:de}}function uo(){return{vaoCount:0,bufferCount:0,elementsCount:0,framebufferCount:0,shaderCount:0,textureCount:0,cubeCount:0,renderbufferCount:0,maxTextureUnits:0}}var fo=34918,po=34919,ho=35007,go=function(e,t){if(!t.ext_disjoint_timer_query)return null;var r=[];function n(){return r.pop()||t.ext_disjoint_timer_query.createQueryEXT()}function a(e){r.push(e)}var i=[];function o(e){var r=n();t.ext_disjoint_timer_query.beginQueryEXT(ho,r),i.push(r),p(i.length-1,i.length,e)}function l(){t.ext_disjoint_timer_query.endQueryEXT(ho)}function s(){this.startQueryIndex=-1,this.endQueryIndex=-1,this.sum=0,this.stats=null}var c=[];function u(){return c.pop()||new s}function f(e){c.push(e)}var d=[];function p(e,t,r){var n=u();n.startQueryIndex=e,n.endQueryIndex=t,n.sum=0,n.stats=r,d.push(n)}var h=[],g=[];function v(){var e,r,n=i.length;if(0!==n){g.length=Math.max(g.length,n+1),h.length=Math.max(h.length,n+1),h[0]=0,g[0]=0;var o=0;for(e=0,r=0;r<i.length;++r){var l=i[r];t.ext_disjoint_timer_query.getQueryObjectEXT(l,po)?(o+=t.ext_disjoint_timer_query.getQueryObjectEXT(l,fo),a(l)):i[e++]=l,h[r+1]=o,g[r+1]=e}for(i.length=e,e=0,r=0;r<d.length;++r){var s=d[r],c=s.startQueryIndex,u=s.endQueryIndex;s.sum+=h[u]-h[c];var p=g[c],v=g[u];v===p?(s.stats.gpuTime+=s.sum/1e6,f(s)):(s.startQueryIndex=p,s.endQueryIndex=v,d[e++]=s)}d.length=e}}return{beginQuery:o,endQuery:l,pushScopeStats:p,update:v,getNumPendingQueries:function(){return i.length},clear:function(){r.push.apply(r,i);for(var e=0;e<r.length;e++)t.ext_disjoint_timer_query.deleteQueryEXT(r[e]);i.length=0,r.length=0},restore:function(){i.length=0,r.length=0}}},vo=16384,yo=256,mo=1024,bo=34962,xo="webglcontextlost",wo="webglcontextrestored",_o=1,ko=2,To=3;function Ao(e,t){for(var r=0;r<e.length;++r)if(e[r]===t)return r;return-1}function So(t){var r=_(t);if(!r)return null;var n=r.gl,a=n.getContextAttributes(),i=(n.isContextLost(),k(n,r));if(!i)return null;var o=g(),l=uo(),s=r.cachedCode||{},c=i.extensions,u=go(n,c),f=h(),v=n.drawingBufferWidth,y=n.drawingBufferHeight,m={tick:0,time:0,viewportWidth:v,viewportHeight:y,framebufferWidth:v,framebufferHeight:y,drawingBufferWidth:v,drawingBufferHeight:y,pixelRatio:r.pixelRatio},b={},x={elements:null,primitive:4,count:-1,offset:0,instances:-1},w=xe(n,c),T=qe(n,l,r,M),A=at(n,c,T,l),S=Mn(n,c,w,l,T,A,x);function M(e){return S.destroyBuffer(e)}var O=Pn(n,o,l,r),C=Yr(n,c,w,(function(){P.procs.poll()}),m,l,r),E=ln(n,c,w,l,r),L=_n(n,c,w,C,E,l),P=co(n,o,c,w,T,A,C,L,b,S,O,x,m,u,s,r),j=Nn(n,L,P.procs.poll,m,a,c,w),z=P.next,D=n.canvas,I=[],N=[],R=[],F=[r.onDestroy],B=null;function U(){if(0===I.length)return u&&u.update(),void(B=null);B=p.next(U),J();for(var e=I.length-1;e>=0;--e){var t=I[e];t&&t(m,null,0)}n.flush(),u&&u.update()}function H(){!B&&I.length>0&&(B=p.next(U))}function V(){B&&(p.cancel(U),B=null)}function q(e){e.preventDefault(),V(),N.forEach((function(e){e()}))}function W(e){n.getError(),i.restore(),O.restore(),T.restore(),C.restore(),E.restore(),L.restore(),S.restore(),u&&u.restore(),P.procs.refresh(),H(),R.forEach((function(e){e()}))}function Y(){I.length=0,V(),D&&(D.removeEventListener(xo,q),D.removeEventListener(wo,W)),O.clear(),L.clear(),E.clear(),S.clear(),C.clear(),A.clear(),T.clear(),u&&u.clear(),F.forEach((function(e){e()}))}function G(t){function r(t){var r=e({},t);function n(e){if(e in r){var t=r[e];delete r[e],Object.keys(t).forEach((function(n){r[e+"."+n]=t[n]}))}}return delete r.uniforms,delete r.attributes,delete r.context,delete r.vao,"stencil"in r&&r.stencil.op&&(r.stencil.opBack=r.stencil.opFront=r.stencil.op,delete r.stencil.op),n("blend"),n("depth"),n("cull"),n("stencil"),n("polygonOffset"),n("scissor"),n("sample"),"vao"in t&&(r.vao=t.vao),r}function n(e,t){var r={},n={};return Object.keys(e).forEach((function(a){var i=e[a];if(d.isDynamic(i))n[a]=d.unbox(i,a);else{if(t&&Array.isArray(i))for(var o=0;o<i.length;++o)if(d.isDynamic(i[o]))return void(n[a]=d.unbox(i,a));r[a]=i}})),{dynamic:n,static:r}}var a=n(t.context||{},!0),i=n(t.uniforms||{},!0),o=n(t.attributes||{},!1),l=n(r(t),!1),s={gpuTime:0,cpuTime:0,count:0},c=P.compile(l,o,i,a,s),u=c.draw,f=c.batch,p=c.scope,h=[];function g(e){for(;h.length<e;)h.push(null);return h}function v(e,t){var r;if("function"===typeof e)return p.call(this,null,e,0);if("function"===typeof t)if("number"===typeof e)for(r=0;r<e;++r)p.call(this,null,t,r);else{if(!Array.isArray(e))return p.call(this,e,t,0);for(r=0;r<e.length;++r)p.call(this,e[r],t,r)}else if("number"===typeof e){if(e>0)return f.call(this,g(0|e),0|e)}else{if(!Array.isArray(e))return u.call(this,e);if(e.length)return f.call(this,e,e.length)}}return e(v,{stats:s,destroy:function(){c.destroy()}})}D&&(D.addEventListener(xo,q,!1),D.addEventListener(wo,W,!1));var X=L.setFBO=G({framebuffer:d.define.call(null,_o,"framebuffer")});function Z(e,t){var r=0;P.procs.poll();var a=t.color;a&&(n.clearColor(+a[0]||0,+a[1]||0,+a[2]||0,+a[3]||0),r|=vo),"depth"in t&&(n.clearDepth(+t.depth),r|=yo),"stencil"in t&&(n.clearStencil(0|t.stencil),r|=mo),n.clear(r)}function $(t){if("framebuffer"in t)if(t.framebuffer&&"framebufferCube"===t.framebuffer_reglType)for(var r=0;r<6;++r)X(e({framebuffer:t.framebuffer.faces[r]},t),Z);else X(t,Z);else Z(null,t)}function Q(e){function t(){var t=Ao(I,e);function r(){var e=Ao(I,r);I[e]=I[I.length-1],I.length-=1,I.length<=0&&V()}I[t]=r}return I.push(e),H(),{cancel:t}}function K(){var e=z.viewport,t=z.scissor_box;e[0]=e[1]=t[0]=t[1]=0,m.viewportWidth=m.framebufferWidth=m.drawingBufferWidth=e[2]=t[2]=n.drawingBufferWidth,m.viewportHeight=m.framebufferHeight=m.drawingBufferHeight=e[3]=t[3]=n.drawingBufferHeight}function J(){m.tick+=1,m.time=te(),K(),P.procs.poll()}function ee(){C.refresh(),K(),P.procs.refresh(),u&&u.update()}function te(){return(h()-f)/1e3}function re(e,t){var r;switch(e){case"frame":return Q(t);case"lost":r=N;break;case"restore":r=R;break;case"destroy":r=F}return r.push(t),{cancel:function(){for(var e=0;e<r.length;++e)if(r[e]===t)return r[e]=r[r.length-1],void r.pop()}}}function ne(){return s}function ae(e){Object.entries(e).forEach((function(e){s[e[0]]=e[1]}))}ee();var ie=e(G,{clear:$,prop:d.define.bind(null,_o),context:d.define.bind(null,ko),this:d.define.bind(null,To),draw:G({}),buffer:function(e){return T.create(e,bo,!1,!1)},elements:function(e){return A.create(e,!1)},texture:C.create2D,cube:C.createCube,renderbuffer:E.create,framebuffer:L.create,framebufferCube:L.createCube,vao:S.createVAO,attributes:a,frame:Q,on:re,limits:w,hasExtension:function(e){return w.extensions.indexOf(e.toLowerCase())>=0},read:j,destroy:Y,_gl:n,_refresh:ee,poll:function(){J(),u&&u.update()},now:te,stats:l,getCachedCode:ne,preloadCachedCode:ae});return r.onDone(null,ie),ie}return So}()},function(e,t,r){"use strict";function n(e){var t=32;return(e&=-e)&&t--,65535&e&&(t-=16),16711935&e&&(t-=8),252645135&e&&(t-=4),858993459&e&&(t-=2),1431655765&e&&(t-=1),t}t.INT_BITS=32,t.INT_MAX=2147483647,t.INT_MIN=-1<<31,t.sign=function(e){return(e>0)-(e<0)},t.abs=function(e){var t=e>>31;return(e^t)-t},t.min=function(e,t){return t^(e^t)&-(e<t)},t.max=function(e,t){return e^(e^t)&-(e<t)},t.isPow2=function(e){return!(e&e-1)&&!!e},t.log2=function(e){var t,r;return t=(e>65535)<<4,t|=r=((e>>>=t)>255)<<3,t|=r=((e>>>=r)>15)<<2,(t|=r=((e>>>=r)>3)<<1)|(e>>>=r)>>1},t.log10=function(e){return e>=1e9?9:e>=1e8?8:e>=1e7?7:e>=1e6?6:e>=1e5?5:e>=1e4?4:e>=1e3?3:e>=100?2:e>=10?1:0},t.popCount=function(e){return 16843009*((e=(858993459&(e-=e>>>1&1431655765))+(e>>>2&858993459))+(e>>>4)&252645135)>>>24},t.countTrailingZeros=n,t.nextPow2=function(e){return e+=0===e,--e,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,(e|=e>>>16)+1},t.prevPow2=function(e){return e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,(e|=e>>>16)-(e>>>1)},t.parity=function(e){return e^=e>>>16,e^=e>>>8,e^=e>>>4,27030>>>(e&=15)&1};var a=new Array(256);!function(e){for(var t=0;t<256;++t){var r=t,n=t,a=7;for(r>>>=1;r;r>>>=1)n<<=1,n|=1&r,--a;e[t]=n<<a&255}}(a),t.reverse=function(e){return a[255&e]<<24|a[e>>>8&255]<<16|a[e>>>16&255]<<8|a[e>>>24&255]},t.interleave2=function(e,t){return(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e&=65535)|e<<8))|e<<4))|e<<2))|e<<1))|(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t&=65535)|t<<8))|t<<4))|t<<2))|t<<1))<<1},t.deinterleave2=function(e,t){return(e=65535&((e=16711935&((e=252645135&((e=858993459&((e=e>>>t&1431655765)|e>>>1))|e>>>2))|e>>>4))|e>>>16))<<16>>16},t.interleave3=function(e,t,r){return e=1227133513&((e=3272356035&((e=251719695&((e=4278190335&((e&=1023)|e<<16))|e<<8))|e<<4))|e<<2),(e|=(t=1227133513&((t=3272356035&((t=251719695&((t=4278190335&((t&=1023)|t<<16))|t<<8))|t<<4))|t<<2))<<1)|(r=1227133513&((r=3272356035&((r=251719695&((r=4278190335&((r&=1023)|r<<16))|r<<8))|r<<4))|r<<2))<<2},t.deinterleave3=function(e,t){return(e=1023&((e=4278190335&((e=251719695&((e=3272356035&((e=e>>>t&1227133513)|e>>>2))|e>>>4))|e>>>8))|e>>>16))<<22>>22},t.nextCombination=function(e){var t=e|e-1;return t+1|(~t&-~t)-1>>>n(e)+1}},function(e,t){e.exports=function(e,t){t||(t=[0,""]),e=String(e);var r=parseFloat(e,10);return t[0]=r,t[1]=e.match(/[\d.\-\+]*\s*(.*)/)[1]||"",t}},function(e,t,r){"use strict";var n=r(35).hovertemplateAttrs,a=r(35).texttemplateAttrs,i=r(67),o=r(81).attributes,l=r(130),s=r(732),c=r(134),u=r(22).extendFlat;e.exports={labels:s.labels,parents:s.parents,values:s.values,branchvalues:s.branchvalues,count:s.count,level:s.level,maxdepth:s.maxdepth,tiling:{packing:{valType:"enumerated",values:["squarify","binary","dice","slice","slice-dice","dice-slice"],dflt:"squarify",editType:"plot",description:["Determines d3 treemap solver.","For more info please refer to https://github.com/d3/d3-hierarchy#treemap-tiling"].join(" ")},squarifyratio:{valType:"number",min:1,dflt:1,editType:"plot",description:["When using *squarify* `packing` algorithm, according to https://github.com/d3/d3-hierarchy/blob/master/README.md#squarify_ratio","this option specifies the desired aspect ratio of the generated rectangles.","The ratio must be specified as a number greater than or equal to one.","Note that the orientation of the generated rectangles (tall or wide)","is not implied by the ratio; for example, a ratio of two will attempt","to produce a mixture of rectangles whose width:height ratio is either 2:1 or 1:2.","When using *squarify*, unlike d3 which uses the Golden Ratio i.e. 1.618034,","Plotly applies 1 to increase squares in treemap layouts."].join(" ")},flip:{valType:"flaglist",flags:["x","y"],dflt:"",editType:"plot",description:["Determines if the positions obtained from solver are flipped on each axis."].join(" ")},pad:{valType:"number",min:0,dflt:3,editType:"plot",description:["Sets the inner padding (in px)."].join(" ")},editType:"calc"},marker:u({pad:{t:{valType:"number",min:0,editType:"plot",description:["Sets the padding form the top (in px)."].join(" ")},l:{valType:"number",min:0,editType:"plot",description:["Sets the padding form the left (in px)."].join(" ")},r:{valType:"number",min:0,editType:"plot",description:["Sets the padding form the right (in px)."].join(" ")},b:{valType:"number",min:0,editType:"plot",description:["Sets the padding form the bottom (in px)."].join(" ")},editType:"calc"},colors:s.marker.colors,depthfade:{valType:"enumerated",values:[!0,!1,"reversed"],editType:"style",description:["Determines if the sector colors are faded towards","the background from the leaves up to the headers.","This option is unavailable when a `colorscale` is present,","defaults to false when `marker.colors` is set,","but otherwise defaults to true.","When set to *reversed*, the fading direction is inverted,","that is the top elements within hierarchy are drawn with fully saturated colors","while the leaves are faded towards the background color."].join(" ")},line:s.marker.line,editType:"calc"},i("marker",{colorAttr:"colors",anim:!1})),pathbar:{visible:{valType:"boolean",dflt:!0,editType:"plot",description:["Determines if the path bar is drawn","i.e. outside the trace `domain` and","with one pixel gap."].join(" ")},side:{valType:"enumerated",values:["top","bottom"],dflt:"top",editType:"plot",description:["Determines on which side of the the treemap the","`pathbar` should be presented."].join(" ")},edgeshape:{valType:"enumerated",values:[">","<","|","/","\\"],dflt:">",editType:"plot",description:["Determines which shape is used for edges between `barpath` labels."].join(" ")},thickness:{valType:"number",min:12,editType:"plot",description:["Sets the thickness of `pathbar` (in px). If not specified the `pathbar.textfont.size` is used","with 3 pixles extra padding on each side."].join(" ")},textfont:u({},l.textfont,{description:"Sets the font used inside `pathbar`."}),editType:"calc"},text:l.text,textinfo:s.textinfo,texttemplate:a({editType:"plot"},{keys:c.eventDataKeys.concat(["label","value"])}),hovertext:l.hovertext,hoverinfo:s.hoverinfo,hovertemplate:n({},{keys:c.eventDataKeys}),textfont:l.textfont,insidetextfont:l.insidetextfont,outsidetextfont:u({},l.outsidetextfont,{description:["Sets the font used for `textinfo` lying outside the sector.","This option refers to the root of the hierarchy","presented on top left corner of a treemap graph.","Please note that if a hierarchy has multiple root nodes,","this option won't have any effect and `insidetextfont` would be used."].join(" ")}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],dflt:"top left",editType:"plot",description:["Sets the positions of the `text` elements."].join(" ")},sort:l.sort,root:s.root,domain:o({name:"treemap",trace:!0,editType:"calc"})}},function(e,t,r){"use strict";e.exports={CLICK_TRANSITION_TIME:750,CLICK_TRANSITION_EASING:"linear",eventDataKeys:["currentPath","root","entry","percentRoot","percentEntry","percentParent"]}},function(e,t,r){"use strict";e.exports={treemapcolorway:{valType:"colorlist",editType:"calc",description:["Sets the default treemap slice colors. Defaults to the main","`colorway` used for trace colors. If you specify a new","list here it can still be extended with lighter and darker","colors, see `extendtreemapcolors`."].join(" ")},extendtreemapcolors:{valType:"boolean",dflt:!0,editType:"calc",description:["If `true`, the treemap slice colors (whether given by `treemapcolorway` or","inherited from `colorway`) will be extended to three times its","original length by first repeating every color 20% lighter then","each color 20% darker. This is intended to reduce the likelihood","of reusing the same color when you have many slices, but you can","set `false` to disable.","Colors provided in the trace, using `marker.colors`, are never","extended."].join(" ")}}},function(e,t,r){"use strict";var n=r(735);t.calc=function(e,t){return n.calc(e,t)},t.crossTraceCalc=function(e){return n._runCrossTraceCalc("treemap",e)}},function(e,t,r){"use strict";var n=r(201),a=r(740);e.exports=function(e,t,r){var i,o=r.flipX,l=r.flipY,s="dice-slice"===r.packing,c=r.pad[l?"bottom":"top"],u=r.pad[o?"right":"left"],f=r.pad[o?"left":"right"],d=r.pad[l?"top":"bottom"];s&&(i=u,u=c,c=i,i=f,f=d,d=i);var p=n.treemap().tile(function(e,t){switch(e){case"squarify":return n.treemapSquarify.ratio(t);case"binary":return n.treemapBinary;case"dice":return n.treemapDice;case"slice":return n.treemapSlice;default:return n.treemapSliceDice}}(r.packing,r.squarifyratio)).paddingInner(r.pad.inner).paddingLeft(u).paddingRight(f).paddingTop(c).paddingBottom(d).size(s?[t[1],t[0]]:t)(e);return(s||o||l)&&a(p,t,{swapXY:s,flipX:o,flipY:l}),p}},function(e,t,r){"use strict";t.__esModule=!0,t.default=t.EXITING=t.ENTERED=t.ENTERING=t.EXITED=t.UNMOUNTED=void 0;var n=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};n.get||n.set?Object.defineProperty(t,r,n):t[r]=e[r]}return t.default=e,t}(r(1)),a=l(r(6)),i=l(r(135)),o=r(345);r(346);function l(e){return e&&e.__esModule?e:{default:e}}var s="unmounted";t.UNMOUNTED=s;var c="exited";t.EXITED=c;var u="entering";t.ENTERING=u;var f="entered";t.ENTERED=f;var d="exiting";t.EXITING=d;var p=function(e){var t,r;function n(t,r){var n;n=e.call(this,t,r)||this;var a,i=r.transitionGroup,o=i&&!i.isMounting?t.enter:t.appear;return n.appearStatus=null,t.in?o?(a=c,n.appearStatus=u):a=f:a=t.unmountOnExit||t.mountOnEnter?s:c,n.state={status:a},n.nextCallback=null,n}r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var o=n.prototype;return o.getChildContext=function(){return{transitionGroup:null}},n.getDerivedStateFromProps=function(e,t){return e.in&&t.status===s?{status:c}:null},o.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},o.componentDidUpdate=function(e){var t=null;if(e!==this.props){var r=this.state.status;this.props.in?r!==u&&r!==f&&(t=u):r!==u&&r!==f||(t=d)}this.updateStatus(!1,t)},o.componentWillUnmount=function(){this.cancelNextCallback()},o.getTimeouts=function(){var e,t,r,n=this.props.timeout;return e=t=r=n,null!=n&&"number"!==typeof n&&(e=n.exit,t=n.enter,r=void 0!==n.appear?n.appear:t),{exit:e,enter:t,appear:r}},o.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t){this.cancelNextCallback();var r=i.default.findDOMNode(this);t===u?this.performEnter(r,e):this.performExit(r)}else this.props.unmountOnExit&&this.state.status===c&&this.setState({status:s})},o.performEnter=function(e,t){var r=this,n=this.props.enter,a=this.context.transitionGroup?this.context.transitionGroup.isMounting:t,i=this.getTimeouts(),o=a?i.appear:i.enter;t||n?(this.props.onEnter(e,a),this.safeSetState({status:u},(function(){r.props.onEntering(e,a),r.onTransitionEnd(e,o,(function(){r.safeSetState({status:f},(function(){r.props.onEntered(e,a)}))}))}))):this.safeSetState({status:f},(function(){r.props.onEntered(e)}))},o.performExit=function(e){var t=this,r=this.props.exit,n=this.getTimeouts();r?(this.props.onExit(e),this.safeSetState({status:d},(function(){t.props.onExiting(e),t.onTransitionEnd(e,n.exit,(function(){t.safeSetState({status:c},(function(){t.props.onExited(e)}))}))}))):this.safeSetState({status:c},(function(){t.props.onExited(e)}))},o.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},o.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},o.setNextCallback=function(e){var t=this,r=!0;return this.nextCallback=function(n){r&&(r=!1,t.nextCallback=null,e(n))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},o.onTransitionEnd=function(e,t,r){this.setNextCallback(r);var n=null==t&&!this.props.addEndListener;e&&!n?(this.props.addEndListener&&this.props.addEndListener(e,this.nextCallback),null!=t&&setTimeout(this.nextCallback,t)):setTimeout(this.nextCallback,0)},o.render=function(){var e=this.state.status;if(e===s)return null;var t=this.props,r=t.children,n=function(e,t){if(null==e)return{};var r,n,a={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(t,["children"]);if(delete n.in,delete n.mountOnEnter,delete n.unmountOnExit,delete n.appear,delete n.enter,delete n.exit,delete n.timeout,delete n.addEndListener,delete n.onEnter,delete n.onEntering,delete n.onEntered,delete n.onExit,delete n.onExiting,delete n.onExited,"function"===typeof r)return r(e,n);var i=a.default.Children.only(r);return a.default.cloneElement(i,n)},n}(a.default.Component);function h(){}p.contextTypes={transitionGroup:n.object},p.childContextTypes={transitionGroup:function(){}},p.propTypes={},p.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:h,onEntering:h,onEntered:h,onExit:h,onExiting:h,onExited:h},p.UNMOUNTED=0,p.EXITED=1,p.ENTERING=2,p.ENTERED=3,p.EXITING=4;var g=(0,o.polyfill)(p);t.default=g},function(e,t,r){"use strict";function n(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!==e&&void 0!==e&&this.setState(e)}function a(e){this.setState(function(t){var r=this.constructor.getDerivedStateFromProps(e,t);return null!==r&&void 0!==r?r:null}.bind(this))}function i(e,t){try{var r=this.props,n=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(r,n)}finally{this.props=r,this.state=n}}function o(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!==typeof e.getDerivedStateFromProps&&"function"!==typeof t.getSnapshotBeforeUpdate)return e;var r=null,o=null,l=null;if("function"===typeof t.componentWillMount?r="componentWillMount":"function"===typeof t.UNSAFE_componentWillMount&&(r="UNSAFE_componentWillMount"),"function"===typeof t.componentWillReceiveProps?o="componentWillReceiveProps":"function"===typeof t.UNSAFE_componentWillReceiveProps&&(o="UNSAFE_componentWillReceiveProps"),"function"===typeof t.componentWillUpdate?l="componentWillUpdate":"function"===typeof t.UNSAFE_componentWillUpdate&&(l="UNSAFE_componentWillUpdate"),null!==r||null!==o||null!==l){var s=e.displayName||e.name,c="function"===typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+s+" uses "+c+" but also contains the following legacy lifecycles:"+(null!==r?"\n "+r:"")+(null!==o?"\n "+o:"")+(null!==l?"\n "+l:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"===typeof e.getDerivedStateFromProps&&(t.componentWillMount=n,t.componentWillReceiveProps=a),"function"===typeof t.getSnapshotBeforeUpdate){if("function"!==typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=i;var u=t.componentDidUpdate;t.componentDidUpdate=function(e,t,r){var n=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:r;u.call(this,e,t,n)}}return e}r.r(t),r.d(t,"polyfill",(function(){return o})),n.__suppressDeprecationWarning=!0,a.__suppressDeprecationWarning=!0,i.__suppressDeprecationWarning=!0},function(e,t,r){"use strict";t.__esModule=!0,t.classNamesShape=t.timeoutsShape=void 0;var n;(n=r(1))&&n.__esModule;t.timeoutsShape=null;t.classNamesShape=null},function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n=l(r(1)),a=l(r(6)),i=r(345),o=r(751);function l(e){return e&&e.__esModule?e:{default:e}}function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},s.apply(this,arguments)}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var u=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},f=function(e){var t,r;function n(t,r){var n,a=(n=e.call(this,t,r)||this).handleExited.bind(c(c(n)));return n.state={handleExited:a,firstRender:!0},n}r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var i=n.prototype;return i.getChildContext=function(){return{transitionGroup:{isMounting:!this.appeared}}},i.componentDidMount=function(){this.appeared=!0,this.mounted=!0},i.componentWillUnmount=function(){this.mounted=!1},n.getDerivedStateFromProps=function(e,t){var r=t.children,n=t.handleExited;return{children:t.firstRender?(0,o.getInitialChildMapping)(e,n):(0,o.getNextChildMapping)(e,r,n),firstRender:!1}},i.handleExited=function(e,t){var r=(0,o.getChildMapping)(this.props.children);e.key in r||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var r=s({},t.children);return delete r[e.key],{children:r}})))},i.render=function(){var e=this.props,t=e.component,r=e.childFactory,n=function(e,t){if(null==e)return{};var r,n,a={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,["component","childFactory"]),i=u(this.state.children).map(r);return delete n.appear,delete n.enter,delete n.exit,null===t?i:a.default.createElement(t,n,i)},n}(a.default.Component);f.childContextTypes={transitionGroup:n.default.object.isRequired},f.propTypes={},f.defaultProps={component:"div",childFactory:function(e){return e}};var d=(0,i.polyfill)(f);t.default=d,e.exports=t.default},function(e,t,r){"use strict";r.r(t),r.d(t,"interpolate",(function(){return le})),r.d(t,"interpolateArray",(function(){return Z})),r.d(t,"interpolateBasis",(function(){return I})),r.d(t,"interpolateBasisClosed",(function(){return N})),r.d(t,"interpolateDate",(function(){return Q})),r.d(t,"interpolateDiscrete",(function(){return se})),r.d(t,"interpolateHue",(function(){return ce})),r.d(t,"interpolateNumber",(function(){return K})),r.d(t,"interpolateNumberArray",(function(){return G})),r.d(t,"interpolateObject",(function(){return J})),r.d(t,"interpolateRound",(function(){return ue})),r.d(t,"interpolateString",(function(){return oe})),r.d(t,"interpolateTransformCss",(function(){return ge})),r.d(t,"interpolateTransformSvg",(function(){return ve})),r.d(t,"interpolateZoom",(function(){return be})),r.d(t,"interpolateRgb",(function(){return V})),r.d(t,"interpolateRgbBasis",(function(){return W})),r.d(t,"interpolateRgbBasisClosed",(function(){return Y})),r.d(t,"interpolateHsl",(function(){return we})),r.d(t,"interpolateHslLong",(function(){return _e})),r.d(t,"interpolateLab",(function(){return Ue})),r.d(t,"interpolateHcl",(function(){return Ve})),r.d(t,"interpolateHclLong",(function(){return qe})),r.d(t,"interpolateCubehelix",(function(){return nt})),r.d(t,"interpolateCubehelixLong",(function(){return at})),r.d(t,"piecewise",(function(){return it})),r.d(t,"quantize",(function(){return ot}));var n=function(e,t,r){e.prototype=t.prototype=r,r.constructor=e};function a(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function i(){}var o=.7,l=1/o,s="\\s*([+-]?\\d+)\\s*",c="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",u="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",f=/^#([0-9a-f]{3,8})$/,d=new RegExp("^rgb\\("+[s,s,s]+"\\)$"),p=new RegExp("^rgb\\("+[u,u,u]+"\\)$"),h=new RegExp("^rgba\\("+[s,s,s,c]+"\\)$"),g=new RegExp("^rgba\\("+[u,u,u,c]+"\\)$"),v=new RegExp("^hsl\\("+[c,u,u]+"\\)$"),y=new RegExp("^hsla\\("+[c,u,u,c]+"\\)$"),m={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 b(){return this.rgb().formatHex()}function x(){return this.rgb().formatRgb()}function w(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=f.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?_(t):3===r?new S(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?k(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?k(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=d.exec(e))?new S(t[1],t[2],t[3],1):(t=p.exec(e))?new S(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=h.exec(e))?k(t[1],t[2],t[3],t[4]):(t=g.exec(e))?k(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=v.exec(e))?E(t[1],t[2]/100,t[3]/100,1):(t=y.exec(e))?E(t[1],t[2]/100,t[3]/100,t[4]):m.hasOwnProperty(e)?_(m[e]):"transparent"===e?new S(NaN,NaN,NaN,0):null}function _(e){return new S(e>>16&255,e>>8&255,255&e,1)}function k(e,t,r,n){return n<=0&&(e=t=r=NaN),new S(e,t,r,n)}function T(e){return e instanceof i||(e=w(e)),e?new S((e=e.rgb()).r,e.g,e.b,e.opacity):new S}function A(e,t,r,n){return 1===arguments.length?T(e):new S(e,t,r,null==n?1:n)}function S(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function M(){return"#"+C(this.r)+C(this.g)+C(this.b)}function O(){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 C(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function E(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new j(e,t,r,n)}function L(e){if(e instanceof j)return new j(e.h,e.s,e.l,e.opacity);if(e instanceof i||(e=w(e)),!e)return new j;if(e instanceof j)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,a=Math.min(t,r,n),o=Math.max(t,r,n),l=NaN,s=o-a,c=(o+a)/2;return s?(l=t===o?(r-n)/s+6*(r<n):r===o?(n-t)/s+2:(t-r)/s+4,s/=c<.5?o+a:2-o-a,l*=60):s=c>0&&c<1?0:l,new j(l,s,c,e.opacity)}function P(e,t,r,n){return 1===arguments.length?L(e):new j(e,t,r,null==n?1:n)}function j(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function z(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}function D(e,t,r,n,a){var i=e*e,o=i*e;return((1-3*e+3*i-o)*t+(4-6*i+3*o)*r+(1+3*e+3*i-3*o)*n+o*a)/6}n(i,w,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:b,formatHex:b,formatHsl:function(){return L(this).formatHsl()},formatRgb:x,toString:x}),n(S,A,a(i,{brighter:function(e){return e=null==e?l:Math.pow(l,e),new S(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?o:Math.pow(o,e),new S(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:M,formatHex:M,formatRgb:O,toString:O})),n(j,P,a(i,{brighter:function(e){return e=null==e?l:Math.pow(l,e),new j(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?o:Math.pow(o,e),new j(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,r=this.l,n=r+(r<.5?r:1-r)*t,a=2*r-n;return new S(z(e>=240?e-240:e+120,a,n),z(e,a,n),z(e<120?e+240:e-120,a,n),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+")")}}));var I=function(e){var t=e.length-1;return function(r){var n=r<=0?r=0:r>=1?(r=1,t-1):Math.floor(r*t),a=e[n],i=e[n+1],o=n>0?e[n-1]:2*a-i,l=n<t-1?e[n+2]:2*i-a;return D((r-n/t)*t,o,a,i,l)}},N=function(e){var t=e.length;return function(r){var n=Math.floor(((r%=1)<0?++r:r)*t),a=e[(n+t-1)%t],i=e[n%t],o=e[(n+1)%t],l=e[(n+2)%t];return D((r-n/t)*t,a,i,o,l)}},R=function(e){return function(){return e}};function F(e,t){return function(r){return e+r*t}}function B(e,t){var r=t-e;return r?F(e,r>180||r<-180?r-360*Math.round(r/360):r):R(isNaN(e)?t:e)}function U(e){return 1===(e=+e)?H:function(t,r){return r-t?function(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}(t,r,e):R(isNaN(t)?r:t)}}function H(e,t){var r=t-e;return r?F(e,r):R(isNaN(e)?t:e)}var V=function e(t){var r=U(t);function n(e,t){var n=r((e=A(e)).r,(t=A(t)).r),a=r(e.g,t.g),i=r(e.b,t.b),o=H(e.opacity,t.opacity);return function(t){return e.r=n(t),e.g=a(t),e.b=i(t),e.opacity=o(t),e+""}}return n.gamma=e,n}(1);function q(e){return function(t){var r,n,a=t.length,i=new Array(a),o=new Array(a),l=new Array(a);for(r=0;r<a;++r)n=A(t[r]),i[r]=n.r||0,o[r]=n.g||0,l[r]=n.b||0;return i=e(i),o=e(o),l=e(l),n.opacity=1,function(e){return n.r=i(e),n.g=o(e),n.b=l(e),n+""}}}var W=q(I),Y=q(N),G=function(e,t){t||(t=[]);var r,n=e?Math.min(t.length,e.length):0,a=t.slice();return function(i){for(r=0;r<n;++r)a[r]=e[r]*(1-i)+t[r]*i;return a}};function X(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}var Z=function(e,t){return(X(t)?G:$)(e,t)};function $(e,t){var r,n=t?t.length:0,a=e?Math.min(n,e.length):0,i=new Array(a),o=new Array(n);for(r=0;r<a;++r)i[r]=le(e[r],t[r]);for(;r<n;++r)o[r]=t[r];return function(e){for(r=0;r<a;++r)o[r]=i[r](e);return o}}var Q=function(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}},K=function(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}},J=function(e,t){var r,n={},a={};for(r in null!==e&&"object"===typeof e||(e={}),null!==t&&"object"===typeof t||(t={}),t)r in e?n[r]=le(e[r],t[r]):a[r]=t[r];return function(e){for(r in n)a[r]=n[r](e);return a}},ee=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,te=new RegExp(ee.source,"g");var re,ne,ae,ie,oe=function(e,t){var r,n,a,i=ee.lastIndex=te.lastIndex=0,o=-1,l=[],s=[];for(e+="",t+="";(r=ee.exec(e))&&(n=te.exec(t));)(a=n.index)>i&&(a=t.slice(i,a),l[o]?l[o]+=a:l[++o]=a),(r=r[0])===(n=n[0])?l[o]?l[o]+=n:l[++o]=n:(l[++o]=null,s.push({i:o,x:K(r,n)})),i=te.lastIndex;return i<t.length&&(a=t.slice(i),l[o]?l[o]+=a:l[++o]=a),l.length<2?s[0]?function(e){return function(t){return e(t)+""}}(s[0].x):function(e){return function(){return e}}(t):(t=s.length,function(e){for(var r,n=0;n<t;++n)l[(r=s[n]).i]=r.x(e);return l.join("")})},le=function(e,t){var r,n=typeof t;return null==t||"boolean"===n?R(t):("number"===n?K:"string"===n?(r=w(t))?(t=r,V):oe:t instanceof w?V:t instanceof Date?Q:X(t)?G:Array.isArray(t)?$:"function"!==typeof t.valueOf&&"function"!==typeof t.toString||isNaN(t)?J:K)(e,t)},se=function(e){var t=e.length;return function(r){return e[Math.max(0,Math.min(t-1,Math.floor(r*t)))]}},ce=function(e,t){var r=B(+e,+t);return function(e){var t=r(e);return t-360*Math.floor(t/360)}},ue=function(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}},fe=180/Math.PI,de={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},pe=function(e,t,r,n,a,i){var o,l,s;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(s=e*r+t*n)&&(r-=e*s,n-=t*s),(l=Math.sqrt(r*r+n*n))&&(r/=l,n/=l,s/=l),e*n<t*r&&(e=-e,t=-t,s=-s,o=-o),{translateX:a,translateY:i,rotate:Math.atan2(t,e)*fe,skewX:Math.atan(s)*fe,scaleX:o,scaleY:l}};function he(e,t,r,n){function a(e){return e.length?e.pop()+" ":""}return function(i,o){var l=[],s=[];return i=e(i),o=e(o),function(e,n,a,i,o,l){if(e!==a||n!==i){var s=o.push("translate(",null,t,null,r);l.push({i:s-4,x:K(e,a)},{i:s-2,x:K(n,i)})}else(a||i)&&o.push("translate("+a+t+i+r)}(i.translateX,i.translateY,o.translateX,o.translateY,l,s),function(e,t,r,i){e!==t?(e-t>180?t+=360:t-e>180&&(e+=360),i.push({i:r.push(a(r)+"rotate(",null,n)-2,x:K(e,t)})):t&&r.push(a(r)+"rotate("+t+n)}(i.rotate,o.rotate,l,s),function(e,t,r,i){e!==t?i.push({i:r.push(a(r)+"skewX(",null,n)-2,x:K(e,t)}):t&&r.push(a(r)+"skewX("+t+n)}(i.skewX,o.skewX,l,s),function(e,t,r,n,i,o){if(e!==r||t!==n){var l=i.push(a(i)+"scale(",null,",",null,")");o.push({i:l-4,x:K(e,r)},{i:l-2,x:K(t,n)})}else 1===r&&1===n||i.push(a(i)+"scale("+r+","+n+")")}(i.scaleX,i.scaleY,o.scaleX,o.scaleY,l,s),i=o=null,function(e){for(var t,r=-1,n=s.length;++r<n;)l[(t=s[r]).i]=t.x(e);return l.join("")}}}var ge=he((function(e){return"none"===e?de:(re||(re=document.createElement("DIV"),ne=document.documentElement,ae=document.defaultView),re.style.transform=e,e=ae.getComputedStyle(ne.appendChild(re),null).getPropertyValue("transform"),ne.removeChild(re),e=e.slice(7,-1).split(","),pe(+e[0],+e[1],+e[2],+e[3],+e[4],+e[5]))}),"px, ","px)","deg)"),ve=he((function(e){return null==e?de:(ie||(ie=document.createElementNS("http://www.w3.org/2000/svg","g")),ie.setAttribute("transform",e),(e=ie.transform.baseVal.consolidate())?(e=e.matrix,pe(e.a,e.b,e.c,e.d,e.e,e.f)):de)}),", ",")",")"),ye=Math.SQRT2;function me(e){return((e=Math.exp(e))+1/e)/2}var be=function(e,t){var r,n,a=e[0],i=e[1],o=e[2],l=t[0],s=t[1],c=t[2],u=l-a,f=s-i,d=u*u+f*f;if(d<1e-12)n=Math.log(c/o)/ye,r=function(e){return[a+e*u,i+e*f,o*Math.exp(ye*e*n)]};else{var p=Math.sqrt(d),h=(c*c-o*o+4*d)/(2*o*2*p),g=(c*c-o*o-4*d)/(2*c*2*p),v=Math.log(Math.sqrt(h*h+1)-h),y=Math.log(Math.sqrt(g*g+1)-g);n=(y-v)/ye,r=function(e){var t,r=e*n,l=me(v),s=o/(2*p)*(l*(t=ye*r+v,((t=Math.exp(2*t))-1)/(t+1))-function(e){return((e=Math.exp(e))-1/e)/2}(v));return[a+s*u,i+s*f,o*l/me(ye*r+v)]}}return r.duration=1e3*n,r};function xe(e){return function(t,r){var n=e((t=P(t)).h,(r=P(r)).h),a=H(t.s,r.s),i=H(t.l,r.l),o=H(t.opacity,r.opacity);return function(e){return t.h=n(e),t.s=a(e),t.l=i(e),t.opacity=o(e),t+""}}}var we=xe(B),_e=xe(H),ke=Math.PI/180,Te=180/Math.PI,Ae=.96422,Se=.82521,Me=4/29,Oe=6/29,Ce=3*Oe*Oe;function Ee(e){if(e instanceof Pe)return new Pe(e.l,e.a,e.b,e.opacity);if(e instanceof Fe)return Be(e);e instanceof S||(e=T(e));var t,r,n=Ie(e.r),a=Ie(e.g),i=Ie(e.b),o=je((.2225045*n+.7168786*a+.0606169*i)/1);return n===a&&a===i?t=r=o:(t=je((.4360747*n+.3850649*a+.1430804*i)/Ae),r=je((.0139322*n+.0971045*a+.7141733*i)/Se)),new Pe(116*o-16,500*(t-o),200*(o-r),e.opacity)}function Le(e,t,r,n){return 1===arguments.length?Ee(e):new Pe(e,t,r,null==n?1:n)}function Pe(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function je(e){return e>.008856451679035631?Math.pow(e,1/3):e/Ce+Me}function ze(e){return e>Oe?e*e*e:Ce*(e-Me)}function De(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Ie(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Ne(e){if(e instanceof Fe)return new Fe(e.h,e.c,e.l,e.opacity);if(e instanceof Pe||(e=Ee(e)),0===e.a&&0===e.b)return new Fe(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Te;return new Fe(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function Re(e,t,r,n){return 1===arguments.length?Ne(e):new Fe(e,t,r,null==n?1:n)}function Fe(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function Be(e){if(isNaN(e.h))return new Pe(e.l,0,0,e.opacity);var t=e.h*ke;return new Pe(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}function Ue(e,t){var r=H((e=Le(e)).l,(t=Le(t)).l),n=H(e.a,t.a),a=H(e.b,t.b),i=H(e.opacity,t.opacity);return function(t){return e.l=r(t),e.a=n(t),e.b=a(t),e.opacity=i(t),e+""}}function He(e){return function(t,r){var n=e((t=Re(t)).h,(r=Re(r)).h),a=H(t.c,r.c),i=H(t.l,r.l),o=H(t.opacity,r.opacity);return function(e){return t.h=n(e),t.c=a(e),t.l=i(e),t.opacity=o(e),t+""}}}n(Pe,Le,a(i,{brighter:function(e){return new Pe(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker:function(e){return new Pe(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb:function(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,r=isNaN(this.b)?e:e-this.b/200;return new S(De(3.1338561*(t=Ae*ze(t))-1.6168667*(e=1*ze(e))-.4906146*(r=Se*ze(r))),De(-.9787684*t+1.9161415*e+.033454*r),De(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),n(Fe,Re,a(i,{brighter:function(e){return new Fe(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker:function(e){return new Fe(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb:function(){return Be(this).rgb()}}));var Ve=He(B),qe=He(H),We=-.14861,Ye=1.78277,Ge=-.29227,Xe=-.90649,Ze=1.97294,$e=Ze*Xe,Qe=Ze*Ye,Ke=Ye*Ge-Xe*We;function Je(e){if(e instanceof tt)return new tt(e.h,e.s,e.l,e.opacity);e instanceof S||(e=T(e));var t=e.r/255,r=e.g/255,n=e.b/255,a=(Ke*n+$e*t-Qe*r)/(Ke+$e-Qe),i=n-a,o=(Ze*(r-a)-Ge*i)/Xe,l=Math.sqrt(o*o+i*i)/(Ze*a*(1-a)),s=l?Math.atan2(o,i)*Te-120:NaN;return new tt(s<0?s+360:s,l,a,e.opacity)}function et(e,t,r,n){return 1===arguments.length?Je(e):new tt(e,t,r,null==n?1:n)}function tt(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function rt(e){return function t(r){function n(t,n){var a=e((t=et(t)).h,(n=et(n)).h),i=H(t.s,n.s),o=H(t.l,n.l),l=H(t.opacity,n.opacity);return function(e){return t.h=a(e),t.s=i(e),t.l=o(Math.pow(e,r)),t.opacity=l(e),t+""}}return r=+r,n.gamma=t,n}(1)}n(tt,et,a(i,{brighter:function(e){return e=null==e?l:Math.pow(l,e),new tt(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?o:Math.pow(o,e),new tt(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*ke,t=+this.l,r=isNaN(this.s)?0:this.s*t*(1-t),n=Math.cos(e),a=Math.sin(e);return new S(255*(t+r*(We*n+Ye*a)),255*(t+r*(Ge*n+Xe*a)),255*(t+r*(Ze*n)),this.opacity)}}));var nt=rt(B),at=rt(H);function it(e,t){for(var r=0,n=t.length-1,a=t[0],i=new Array(n<0?0:n);r<n;)i[r]=e(a,a=t[++r]);return function(e){var t=Math.max(0,Math.min(n-1,Math.floor(e*=n)));return i[t](e-t)}}var ot=function(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e(n/(t-1));return r}},function(e,t,r){"use strict";r.r(t),r.d(t,"formatDefaultLocale",(function(){return m})),r.d(t,"format",(function(){return u})),r.d(t,"formatPrefix",(function(){return f})),r.d(t,"formatLocale",(function(){return y})),r.d(t,"formatSpecifier",(function(){return o})),r.d(t,"FormatSpecifier",(function(){return l})),r.d(t,"precisionFixed",(function(){return b})),r.d(t,"precisionPrefix",(function(){return x})),r.d(t,"precisionRound",(function(){return w}));function n(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}var a=function(e){return(e=n(Math.abs(e)))?e[1]:NaN},i=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function o(e){if(!(t=i.exec(e)))throw new Error("invalid format: "+e);var t;return new l({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 l(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+""}o.prototype=l.prototype,l.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};var s,c,u,f,d=function(e,t){var r=n(e,t);if(!r)return e+"";var a=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+a:a.length>i+1?a.slice(0,i+1)+"."+a.slice(i+1):a+new Array(i-a.length+2).join("0")},p={"%":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 d(100*e,t)},r:d,s:function(e,t){var r=n(e,t);if(!r)return e+"";var a=r[0],i=r[1],o=i-(s=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,l=a.length;return o===l?a:o>l?a+new Array(o-l+1).join("0"):o>0?a.slice(0,o)+"."+a.slice(o):"0."+new Array(1-o).join("0")+n(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)}},h=function(e){return e},g=Array.prototype.map,v=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"],y=function(e){var t,r,n=void 0===e.grouping||void 0===e.thousands?h:(t=g.call(e.grouping,Number),r=e.thousands+"",function(e,n){for(var a=e.length,i=[],o=0,l=t[0],s=0;a>0&&l>0&&(s+l+1>n&&(l=Math.max(1,n-s)),i.push(e.substring(a-=l,a+l)),!((s+=l+1)>n));)l=t[o=(o+1)%t.length];return i.reverse().join(r)}),i=void 0===e.currency?"":e.currency[0]+"",l=void 0===e.currency?"":e.currency[1]+"",c=void 0===e.decimal?".":e.decimal+"",u=void 0===e.numerals?h:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(g.call(e.numerals,String)),f=void 0===e.percent?"%":e.percent+"",d=void 0===e.minus?"-":e.minus+"",y=void 0===e.nan?"NaN":e.nan+"";function m(e){var t=(e=o(e)).fill,r=e.align,a=e.sign,h=e.symbol,g=e.zero,m=e.width,b=e.comma,x=e.precision,w=e.trim,_=e.type;"n"===_?(b=!0,_="g"):p[_]||(void 0===x&&(x=12),w=!0,_="g"),(g||"0"===t&&"="===r)&&(g=!0,t="0",r="=");var k="$"===h?i:"#"===h&&/[boxX]/.test(_)?"0"+_.toLowerCase():"",T="$"===h?l:/[%p]/.test(_)?f:"",A=p[_],S=/[defgprs%]/.test(_);function M(e){var i,o,l,f=k,p=T;if("c"===_)p=A(e)+p,e="";else{var h=(e=+e)<0||1/e<0;if(e=isNaN(e)?y:A(Math.abs(e),x),w&&(e=function(e){e:for(var t,r=e.length,n=1,a=-1;n<r;++n)switch(e[n]){case".":a=t=n;break;case"0":0===a&&(a=n),t=n;break;default:if(!+e[n])break e;a>0&&(a=0)}return a>0?e.slice(0,a)+e.slice(t+1):e}(e)),h&&0===+e&&"+"!==a&&(h=!1),f=(h?"("===a?a:d:"-"===a||"("===a?"":a)+f,p=("s"===_?v[8+s/3]:"")+p+(h&&"("===a?")":""),S)for(i=-1,o=e.length;++i<o;)if(48>(l=e.charCodeAt(i))||l>57){p=(46===l?c+e.slice(i+1):e.slice(i))+p,e=e.slice(0,i);break}}b&&!g&&(e=n(e,1/0));var M=f.length+e.length+p.length,O=M<m?new Array(m-M+1).join(t):"";switch(b&&g&&(e=n(O+e,O.length?m-p.length:1/0),O=""),r){case"<":e=f+e+p+O;break;case"=":e=f+O+e+p;break;case"^":e=O.slice(0,M=O.length>>1)+f+e+p+O.slice(M);break;default:e=O+f+e+p}return u(e)}return x=void 0===x?6:/[gprs]/.test(_)?Math.max(1,Math.min(21,x)):Math.max(0,Math.min(20,x)),M.toString=function(){return e+""},M}return{format:m,formatPrefix:function(e,t){var r=m(((e=o(e)).type="f",e)),n=3*Math.max(-8,Math.min(8,Math.floor(a(t)/3))),i=Math.pow(10,-n),l=v[8+n/3];return function(e){return r(i*e)+l}}}};function m(e){return c=y(e),u=c.format,f=c.formatPrefix,c}m({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});var b=function(e){return Math.max(0,-a(Math.abs(e)))},x=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(a(t)/3)))-a(Math.abs(e)))},w=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,a(t)-a(e))+1}},function(e,t,r){"use strict";r.r(t),r.d(t,"timeInterval",(function(){return n.a})),r.d(t,"timeMillisecond",(function(){return i})),r.d(t,"timeMilliseconds",(function(){return o})),r.d(t,"utcMillisecond",(function(){return i})),r.d(t,"utcMilliseconds",(function(){return o})),r.d(t,"timeSecond",(function(){return c})),r.d(t,"timeSeconds",(function(){return u})),r.d(t,"utcSecond",(function(){return c})),r.d(t,"utcSeconds",(function(){return u})),r.d(t,"timeMinute",(function(){return d})),r.d(t,"timeMinutes",(function(){return p})),r.d(t,"timeHour",(function(){return g})),r.d(t,"timeHours",(function(){return v})),r.d(t,"timeDay",(function(){return y.b})),r.d(t,"timeDays",(function(){return y.a})),r.d(t,"timeWeek",(function(){return m.g})),r.d(t,"timeWeeks",(function(){return m.h})),r.d(t,"timeSunday",(function(){return m.g})),r.d(t,"timeSundays",(function(){return m.h})),r.d(t,"timeMonday",(function(){return m.c})),r.d(t,"timeMondays",(function(){return m.d})),r.d(t,"timeTuesday",(function(){return m.k})),r.d(t,"timeTuesdays",(function(){return m.l})),r.d(t,"timeWednesday",(function(){return m.m})),r.d(t,"timeWednesdays",(function(){return m.n})),r.d(t,"timeThursday",(function(){return m.i})),r.d(t,"timeThursdays",(function(){return m.j})),r.d(t,"timeFriday",(function(){return m.a})),r.d(t,"timeFridays",(function(){return m.b})),r.d(t,"timeSaturday",(function(){return m.e})),r.d(t,"timeSaturdays",(function(){return m.f})),r.d(t,"timeMonth",(function(){return x})),r.d(t,"timeMonths",(function(){return w})),r.d(t,"timeYear",(function(){return _.a})),r.d(t,"timeYears",(function(){return _.b})),r.d(t,"utcMinute",(function(){return T})),r.d(t,"utcMinutes",(function(){return A})),r.d(t,"utcHour",(function(){return M})),r.d(t,"utcHours",(function(){return O})),r.d(t,"utcDay",(function(){return C.a})),r.d(t,"utcDays",(function(){return C.b})),r.d(t,"utcWeek",(function(){return E.g})),r.d(t,"utcWeeks",(function(){return E.h})),r.d(t,"utcSunday",(function(){return E.g})),r.d(t,"utcSundays",(function(){return E.h})),r.d(t,"utcMonday",(function(){return E.c})),r.d(t,"utcMondays",(function(){return E.d})),r.d(t,"utcTuesday",(function(){return E.k})),r.d(t,"utcTuesdays",(function(){return E.l})),r.d(t,"utcWednesday",(function(){return E.m})),r.d(t,"utcWednesdays",(function(){return E.n})),r.d(t,"utcThursday",(function(){return E.i})),r.d(t,"utcThursdays",(function(){return E.j})),r.d(t,"utcFriday",(function(){return E.a})),r.d(t,"utcFridays",(function(){return E.b})),r.d(t,"utcSaturday",(function(){return E.e})),r.d(t,"utcSaturdays",(function(){return E.f})),r.d(t,"utcMonth",(function(){return P})),r.d(t,"utcMonths",(function(){return j})),r.d(t,"utcYear",(function(){return z.a})),r.d(t,"utcYears",(function(){return z.b}));var n=r(13),a=Object(n.a)((function(){}),(function(e,t){e.setTime(+e+t)}),(function(e,t){return t-e}));a.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?Object(n.a)((function(t){t.setTime(Math.floor(t/e)*e)}),(function(t,r){t.setTime(+t+r*e)}),(function(t,r){return(r-t)/e})):a:null};var i=a,o=a.range,l=r(15),s=Object(n.a)((function(e){e.setTime(e-e.getMilliseconds())}),(function(e,t){e.setTime(+e+t*l.d)}),(function(e,t){return(t-e)/l.d}),(function(e){return e.getUTCSeconds()})),c=s,u=s.range,f=Object(n.a)((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*l.d)}),(function(e,t){e.setTime(+e+t*l.c)}),(function(e,t){return(t-e)/l.c}),(function(e){return e.getMinutes()})),d=f,p=f.range,h=Object(n.a)((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*l.d-e.getMinutes()*l.c)}),(function(e,t){e.setTime(+e+t*l.b)}),(function(e,t){return(t-e)/l.b}),(function(e){return e.getHours()})),g=h,v=h.range,y=r(154),m=r(24),b=Object(n.a)((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()})),x=b,w=b.range,_=r(155),k=Object(n.a)((function(e){e.setUTCSeconds(0,0)}),(function(e,t){e.setTime(+e+t*l.c)}),(function(e,t){return(t-e)/l.c}),(function(e){return e.getUTCMinutes()})),T=k,A=k.range,S=Object(n.a)((function(e){e.setUTCMinutes(0,0,0)}),(function(e,t){e.setTime(+e+t*l.b)}),(function(e,t){return(t-e)/l.b}),(function(e){return e.getUTCHours()})),M=S,O=S.range,C=r(153),E=r(23),L=Object(n.a)((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()})),P=L,j=L.range,z=r(156)},function(e,t,r){"use strict";(function(e,n){var a,i=r(140).default,o=r(376).default,l=r(377).default,s=r(110).default,c=r(208).default,u=r(378).default,f=r(379).default,d=r(382).default,p=r(385).default,h=r(386).default,g=r(387).default;function v(e,t){if(!e){for(var r=arguments.length,n=new Array(r>2?r-2:0),a=2;a<r;a++)n[a-2]=arguments[a];throw new TypeError(y(t,n))}}function y(e,t){var r=0;return e.replace(/%[os]/g,(function(){return m(t[r++])}))}function m(e){return"object"!==typeof e||null===e?String(e):Object.prototype.toString.call(e)}Object.defineProperty(t,"__esModule",{value:!0});var b,x="undefined"!==typeof window?window:"undefined"!==typeof self?self:"undefined"!==typeof n?n:"undefined"!==typeof globalThis?globalThis:void 0;var w=function(){function e(t,r){h(this,e),this.code=t,this.message=r}return g(e,[{key:"warn",value:function(){var e;try{for(var t,r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];if(b)return void b(p(p({},this),{},{args:n}));var i=(null!==(e=(new Error).stack)&&void 0!==e?e:"").replace(/^(?:(?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+?\n){2}/g,"\n");(t=console).warn.apply(t,[this.message].concat(n,[i]))}catch(o){}}}]),e}(),_=new w("W01","Unable to initialize event under dispatching."),k=new w("W02","Assigning any falsy value to 'cancelBubble' property has no effect."),T=new w("W03","Assigning any truthy value to 'returnValue' property has no effect."),A=new w("W04","Unable to preventDefault on non-cancelable events."),S=new w("W05","Unable to preventDefault inside passive event listener invocation."),M=new w("W06","An event listener wasn't added because it has been added already: %o, %o"),O=new w("W07","The %o option value was abandoned because the event listener wasn't added as duplicated."),C=new w("W08","The 'callback' argument must be a function or an object that has 'handleEvent' method: %o"),E=new w("W09","Event attribute handler must be a function: %o"),L=function(){function e(t,r){h(this,e),Object.defineProperty(this,"isTrusted",{value:!1,enumerable:!0});var n=null!==r&&void 0!==r?r:{};I.set(this,{type:String(t),bubbles:Boolean(n.bubbles),cancelable:Boolean(n.cancelable),composed:Boolean(n.composed),target:null,currentTarget:null,stopPropagationFlag:!1,stopImmediatePropagationFlag:!1,canceledFlag:!1,inPassiveListenerFlag:!1,dispatchFlag:!1,timeStamp:Date.now()})}return g(e,[{key:"type",get:function(){return N(this).type}},{key:"target",get:function(){return N(this).target}},{key:"srcElement",get:function(){return N(this).target}},{key:"currentTarget",get:function(){return N(this).currentTarget}},{key:"composedPath",value:function(){var e=N(this).currentTarget;return e?[e]:[]}},{key:"NONE",get:function(){return P}},{key:"CAPTURING_PHASE",get:function(){return j}},{key:"AT_TARGET",get:function(){return z}},{key:"BUBBLING_PHASE",get:function(){return D}},{key:"eventPhase",get:function(){return N(this).dispatchFlag?2:0}},{key:"stopPropagation",value:function(){N(this).stopPropagationFlag=!0}},{key:"cancelBubble",get:function(){return N(this).stopPropagationFlag},set:function(e){e?N(this).stopPropagationFlag=!0:k.warn()}},{key:"stopImmediatePropagation",value:function(){var e=N(this);e.stopPropagationFlag=e.stopImmediatePropagationFlag=!0}},{key:"bubbles",get:function(){return N(this).bubbles}},{key:"cancelable",get:function(){return N(this).cancelable}},{key:"returnValue",get:function(){return!N(this).canceledFlag},set:function(e){e?T.warn():R(N(this))}},{key:"preventDefault",value:function(){R(N(this))}},{key:"defaultPrevented",get:function(){return N(this).canceledFlag}},{key:"composed",get:function(){return N(this).composed}},{key:"isTrusted",get:function(){return!1}},{key:"timeStamp",get:function(){return N(this).timeStamp}},{key:"initEvent",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=N(this);n.dispatchFlag?_.warn():I.set(this,p(p({},n),{},{type:String(e),bubbles:Boolean(t),cancelable:Boolean(r),target:null,currentTarget:null,stopPropagationFlag:!1,stopImmediatePropagationFlag:!1,canceledFlag:!1}))}}],[{key:"NONE",get:function(){return P}},{key:"CAPTURING_PHASE",get:function(){return j}},{key:"AT_TARGET",get:function(){return z}},{key:"BUBBLING_PHASE",get:function(){return D}}]),e}(),P=0,j=1,z=2,D=3,I=new WeakMap;function N(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"this",r=I.get(e);return v(null!=r,"'%s' must be an object that Event constructor created, but got another one: %o",t,e),r}function R(e){e.inPassiveListenerFlag?S.warn():e.cancelable?e.canceledFlag=!0:A.warn()}Object.defineProperty(L,"NONE",{enumerable:!0}),Object.defineProperty(L,"CAPTURING_PHASE",{enumerable:!0}),Object.defineProperty(L,"AT_TARGET",{enumerable:!0}),Object.defineProperty(L,"BUBBLING_PHASE",{enumerable:!0});for(var F,B=Object.getOwnPropertyNames(L.prototype),U=0;U<B.length;++U)"constructor"!==B[U]&&Object.defineProperty(L.prototype,B[U],{enumerable:!0});"undefined"!==typeof x&&"undefined"!==typeof x.Event&&Object.setPrototypeOf(L.prototype,x.Event.prototype);var H={INDEX_SIZE_ERR:1,DOMSTRING_SIZE_ERR:2,HIERARCHY_REQUEST_ERR:3,WRONG_DOCUMENT_ERR:4,INVALID_CHARACTER_ERR:5,NO_DATA_ALLOWED_ERR:6,NO_MODIFICATION_ALLOWED_ERR:7,NOT_FOUND_ERR:8,NOT_SUPPORTED_ERR:9,INUSE_ATTRIBUTE_ERR:10,INVALID_STATE_ERR:11,SYNTAX_ERR:12,INVALID_MODIFICATION_ERR:13,NAMESPACE_ERR:14,INVALID_ACCESS_ERR:15,VALIDATION_ERR:16,TYPE_MISMATCH_ERR:17,SECURITY_ERR:18,NETWORK_ERR:19,ABORT_ERR:20,URL_MISMATCH_ERR:21,QUOTA_EXCEEDED_ERR:22,TIMEOUT_ERR:23,INVALID_NODE_TYPE_ERR:24,DATA_CLONE_ERR:25};function V(e){for(var t=Object.keys(H),r=function(r){var n=t[r],a=H[n];Object.defineProperty(e,n,{get:function(){return a},configurable:!0,enumerable:!0})},n=0;n<t.length;++n)r(n)}var q=function(e){u(r,e);var t=f(r);function r(e){var n,a,i;h(this,r),i=t.call(this,e.type,{bubbles:e.bubbles,cancelable:e.cancelable,composed:e.composed}),e.cancelBubble&&l((n=c(i),s(r.prototype)),"stopPropagation",n).call(n),e.defaultPrevented&&l((a=c(i),s(r.prototype)),"preventDefault",a).call(a),W.set(c(i),{original:e});for(var o=Object.keys(e),u=0;u<o.length;++u){var f=o[u];f in c(i)||Object.defineProperty(c(i),f,Z(e,f))}return i}return g(r,[{key:"stopPropagation",value:function(){l(s(r.prototype),"stopPropagation",this).call(this);var e=Y(this).original;"stopPropagation"in e&&e.stopPropagation()}},{key:"cancelBubble",get:function(){return l(s(r.prototype),"cancelBubble",this)},set:function(e){o(s(r.prototype),"cancelBubble",e,this,!0);var t=Y(this).original;"cancelBubble"in t&&(t.cancelBubble=e)}},{key:"stopImmediatePropagation",value:function(){l(s(r.prototype),"stopImmediatePropagation",this).call(this);var e=Y(this).original;"stopImmediatePropagation"in e&&e.stopImmediatePropagation()}},{key:"returnValue",get:function(){return l(s(r.prototype),"returnValue",this)},set:function(e){o(s(r.prototype),"returnValue",e,this,!0);var t=Y(this).original;"returnValue"in t&&(t.returnValue=e)}},{key:"preventDefault",value:function(){l(s(r.prototype),"preventDefault",this).call(this);var e=Y(this).original;"preventDefault"in e&&e.preventDefault()}},{key:"timeStamp",get:function(){var e=Y(this).original;return"timeStamp"in e?e.timeStamp:l(s(r.prototype),"timeStamp",this)}}],[{key:"wrap",value:function(e){return new(X(e))(e)}}]),r}(L),W=new WeakMap;function Y(e){var t=W.get(e);return v(null!=t,"'this' is expected an Event object, but got",e),t}var G=new WeakMap;function X(e){var t=Object.getPrototypeOf(e);if(null==t)return q;var r=G.get(t);return null==r&&(r=function(e,t){for(var r=function(e){u(r,e);var t=f(r);function r(){return h(this,r),t.apply(this,arguments)}return g(r)}(e),n=Object.keys(t),a=0;a<n.length;++a)Object.defineProperty(r.prototype,n[a],Z(t,n[a]));return r}(X(t),t),G.set(t,r)),r}function Z(e,t){var r=Object.getOwnPropertyDescriptor(e,t);return{get:function(){var e=Y(this).original,r=e[t];return"function"===typeof r?r.bind(e):r},set:function(e){Y(this).original[t]=e},configurable:r.configurable,enumerable:r.enumerable}}function $(e){e.flags|=8}function Q(e){return 1===(1&e.flags)}function K(e){return 2===(2&e.flags)}function J(e){return 4===(4&e.flags)}function ee(e){return 8===(8&e.flags)}function te(t,r,n){var i=t.callback;try{"function"===typeof i?i.call(r,n):"function"===typeof i.handleEvent&&i.handleEvent(n)}catch(o){!function(t){try{var r=t instanceof Error?t:new Error(m(t));if(a)return void a(r);if("function"===typeof dispatchEvent&&"function"===typeof ErrorEvent)dispatchEvent(new ErrorEvent("error",{error:r,message:r.message}));else if("undefined"!==typeof e&&"function"===typeof e.emit)return void e.emit("uncaughtException",r);console.error(r)}catch(n){}}(o)}}function re(e,t,r){for(var n=e.listeners,a=0;a<n.length;++a)if(n[a].callback===t&&Q(n[a])===r)return a;return-1}function ne(e,t,r,n,a,o){var l;o&&(l=ae.bind(null,e,t,r),o.addEventListener("abort",l));var s=function(e,t,r,n,a,i){return{callback:e,flags:(t?1:0)|(r?2:0)|(n?4:0),signal:a,signalListener:i}}(t,r,n,a,o,l);return e.cow?(e.cow=!1,e.listeners=[].concat(i(e.listeners),[s])):e.listeners.push(s),s}function ae(e,t,r){var n=re(e,t,r);return-1!==n&&ie(e,n)}function ie(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=e.listeners[t];return $(n),n.signal&&n.signal.removeEventListener("abort",n.signalListener),e.cow&&!r?(e.cow=!1,e.listeners=e.listeners.filter((function(e,r){return r!==t})),!1):(e.listeners.splice(t,1),!0)}function oe(e,t){var r;return null!==(r=e[t])&&void 0!==r?r:e[t]={attrCallback:void 0,attrListener:void 0,cow:!1,listeners:[]}}G.set(Object.prototype,q),"undefined"!==typeof x&&"undefined"!==typeof x.Event&&G.set(x.Event.prototype,q);var le=function(){function e(){h(this,e),se.set(this,Object.create(null))}return g(e,[{key:"addEventListener",value:function(e,t,r){var n=ce(this),a=function(e,t,r){var n;if(ue(t),"object"===typeof r&&null!==r)return{type:String(e),callback:null!==t&&void 0!==t?t:void 0,capture:Boolean(r.capture),passive:Boolean(r.passive),once:Boolean(r.once),signal:null!==(n=r.signal)&&void 0!==n?n:void 0};return{type:String(e),callback:null!==t&&void 0!==t?t:void 0,capture:Boolean(r),passive:!1,once:!1,signal:void 0}}(e,t,r),i=a.callback,o=a.capture,l=a.once,s=a.passive,c=a.signal,u=a.type;if(null!=i&&!(null===c||void 0===c?void 0:c.aborted)){var f=oe(n,u),d=re(f,i,o);-1===d?ne(f,i,o,s,l,c):function(e,t,r,n){M.warn(Q(e)?"capture":"bubble",e.callback),K(e)!==t&&O.warn("passive");J(e)!==r&&O.warn("once");e.signal!==n&&O.warn("signal")}(f.listeners[d],s,l,c)}}},{key:"removeEventListener",value:function(e,t,r){var n=ce(this),a=function(e,t,r){if(ue(t),"object"===typeof r&&null!==r)return{type:String(e),callback:null!==t&&void 0!==t?t:void 0,capture:Boolean(r.capture)};return{type:String(e),callback:null!==t&&void 0!==t?t:void 0,capture:Boolean(r)}}(e,t,r),i=a.callback,o=a.capture,l=n[a.type];null!=i&&l&&ae(l,i,o)}},{key:"dispatchEvent",value:function(e){var t=ce(this)[String(e.type)];if(null==t)return!0;var r,n=e instanceof L?e:q.wrap(e),a=N(n,"event");if(a.dispatchFlag)throw r="This event has been in dispatching.",x.DOMException?new x.DOMException(r,"InvalidStateError"):(null==F&&(F=function(e){u(r,e);var t=f(r);function r(e){var n;return h(this,r),n=t.call(this,e),Error.captureStackTrace&&Error.captureStackTrace(c(n),r),n}return g(r,[{key:"code",get:function(){return 11}},{key:"name",get:function(){return"InvalidStateError"}}]),r}(d(Error)),Object.defineProperties(F.prototype,{code:{enumerable:!0},name:{enumerable:!0}}),V(F),V(F.prototype)),new F(r));if(a.dispatchFlag=!0,a.target=a.currentTarget=this,!a.stopPropagationFlag){var i=t.cow,o=t.listeners;t.cow=!0;for(var l=0;l<o.length;++l){var s=o[l];if(!ee(s)&&(J(s)&&ie(t,l,!i)&&(l-=1),a.inPassiveListenerFlag=K(s),te(s,this,n),a.inPassiveListenerFlag=!1,a.stopImmediatePropagationFlag))break}i||(t.cow=!1)}return a.target=null,a.currentTarget=null,a.stopImmediatePropagationFlag=!1,a.stopPropagationFlag=!1,a.dispatchFlag=!1,!a.canceledFlag}}]),e}(),se=new WeakMap;function ce(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"this",r=se.get(e);return v(null!=r,"'%s' must be an object that EventTarget constructor created, but got another one: %o",t,e),r}function ue(e){if("function"!==typeof e&&("object"!==typeof e||null===e||"function"!==typeof e.handleEvent)){if(null!=e&&"object"!==typeof e)throw new TypeError(y(C.message,[e]));C.warn(e)}}for(var fe=Object.getOwnPropertyNames(le.prototype),de=0;de<fe.length;++de)"constructor"!==fe[de]&&Object.defineProperty(le.prototype,fe[de],{enumerable:!0});function pe(e,t){var r,n;return null!==(n=null===(r=ce(e,"target")[t])||void 0===r?void 0:r.attrCallback)&&void 0!==n?n:null}function he(e,t,r){null!=r&&"function"!==typeof r&&E.warn(r),"function"===typeof r||"object"===typeof r&&null!==r?function(e,t,r){var n=oe(ce(e,"target"),String(t));n.attrCallback=r,null==n.attrListener&&(n.attrListener=ne(n,function(e){return function(t){var r=e.attrCallback;"function"===typeof r&&r.call(this,t)}}(n),!1,!1,!1,void 0))}(e,t,r):function(e,t){var r=ce(e,"target")[String(t)];r&&r.attrListener&&(ae(r,r.attrListener.callback,!1),r.attrCallback=r.attrListener=void 0)}(e,t)}function ge(e,t,r){Object.defineProperty(e,"on".concat(t),{get:function(){return pe(this,t)},set:function(e){he(this,t,e)},configurable:!0,enumerable:!0})}"undefined"!==typeof x&&"undefined"!==typeof x.EventTarget&&Object.setPrototypeOf(le.prototype,x.EventTarget.prototype),t.Event=L,t.EventTarget=le,t.default=le,t.defineCustomEventTarget=function(){for(var e=function(e){u(r,e);var t=f(r);function r(){return h(this,r),t.apply(this,arguments)}return g(r)}(le),t=0;t<arguments.length;++t)ge(e.prototype,t<0||arguments.length<=t?void 0:arguments[t]);return e},t.defineEventAttribute=ge,t.getEventAttributeValue=pe,t.setErrorHandler=function(e){v("function"===typeof e||void 0===e,"The error handler must be a function or undefined, but got %o.",e),a=e},t.setEventAttributeValue=he,t.setWarningHandler=function(e){v("function"===typeof e||void 0===e,"The warning handler must be a function or undefined, but got %o.",e),b=e}}).call(this,r(109),r(27))},function(e,t,r){(function(t){var r=/^\s+|\s+$/g,n=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,i=/^0o[0-7]+$/i,o=parseInt,l="object"==typeof t&&t&&t.Object===Object&&t,s="object"==typeof self&&self&&self.Object===Object&&self,c=l||s||Function("return this")(),u=Object.prototype.toString,f=Math.max,d=Math.min,p=function(){return c.Date.now()};function h(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function g(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==u.call(e)}(e))return NaN;if(h(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=h(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(r,"");var l=a.test(e);return l||i.test(e)?o(e.slice(2),l?2:8):n.test(e)?NaN:+e}e.exports=function(e,t,r){var n,a,i,o,l,s,c=0,u=!1,v=!1,y=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function m(t){var r=n,i=a;return n=a=void 0,c=t,o=e.apply(i,r)}function b(e){return c=e,l=setTimeout(w,t),u?m(e):o}function x(e){var r=e-s;return void 0===s||r>=t||r<0||v&&e-c>=i}function w(){var e=p();if(x(e))return _(e);l=setTimeout(w,function(e){var r=t-(e-s);return v?d(r,i-(e-c)):r}(e))}function _(e){return l=void 0,y&&n?m(e):(n=a=void 0,o)}function k(){var e=p(),r=x(e);if(n=arguments,a=this,s=e,r){if(void 0===l)return b(s);if(v)return l=setTimeout(w,t),m(s)}return void 0===l&&(l=setTimeout(w,t)),o}return t=g(t)||0,h(r)&&(u=!!r.leading,i=(v="maxWait"in r)?f(g(r.maxWait)||0,t):i,y="trailing"in r?!!r.trailing:y),k.cancel=function(){void 0!==l&&clearTimeout(l),c=0,n=s=a=l=void 0},k.flush=function(){return void 0===l?o:_(p())},k}}).call(this,r(27))},function(e,t,r){"use strict";var n=Number.isNaN||function(e){return"number"===typeof e&&e!==e};function a(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(a=e[r],i=t[r],!(a===i||n(a)&&n(i)))return!1;var a,i;return!0}t.a=function(e,t){var r;void 0===t&&(t=a);var n,i=[],o=!1;return function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return o&&r===this&&t(a,i)||(n=e.apply(this,a),o=!0,r=this,i=a),n}}},function(e,t,r){"use strict";e.exports=r(623)},function(e,t,r){"use strict";e.exports=r(627)},function(e,t,r){"use strict";e.exports=r(639)},function(e,t,r){"use strict";e.exports=r(645)},function(e,t,r){"use strict";e.exports=r(653)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],n=!0,a=!1,i=void 0;try{for(var o,l=e[Symbol.iterator]();!(n=(o=l.next()).done)&&(r.push(o.value),!t||r.length!==t);n=!0);}catch(s){a=!0,i=s}finally{try{!n&&l.return&&l.return()}finally{if(a)throw i}}return r}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},a=2*Math.PI,i=function(e,t,r,n,a,i,o){var l=e.x,s=e.y;return{x:n*(l*=t)-a*(s*=r)+i,y:a*l+n*s+o}},o=function(e,t){var r=1.5707963267948966===t?.551915024494:-1.5707963267948966===t?-.551915024494:4/3*Math.tan(t/4),n=Math.cos(e),a=Math.sin(e),i=Math.cos(e+t),o=Math.sin(e+t);return[{x:n-a*r,y:a+n*r},{x:i+o*r,y:o-i*r},{x:i,y:o}]},l=function(e,t,r,n){var a=e*r+t*n;return a>1&&(a=1),a<-1&&(a=-1),(e*n-t*r<0?-1:1)*Math.acos(a)};t.default=function(e){var t=e.px,r=e.py,s=e.cx,c=e.cy,u=e.rx,f=e.ry,d=e.xAxisRotation,p=void 0===d?0:d,h=e.largeArcFlag,g=void 0===h?0:h,v=e.sweepFlag,y=void 0===v?0:v,m=[];if(0===u||0===f)return[];var b=Math.sin(p*a/360),x=Math.cos(p*a/360),w=x*(t-s)/2+b*(r-c)/2,_=-b*(t-s)/2+x*(r-c)/2;if(0===w&&0===_)return[];u=Math.abs(u),f=Math.abs(f);var k=Math.pow(w,2)/Math.pow(u,2)+Math.pow(_,2)/Math.pow(f,2);k>1&&(u*=Math.sqrt(k),f*=Math.sqrt(k));var T=function(e,t,r,n,i,o,s,c,u,f,d,p){var h=Math.pow(i,2),g=Math.pow(o,2),v=Math.pow(d,2),y=Math.pow(p,2),m=h*g-h*y-g*v;m<0&&(m=0),m/=h*y+g*v;var b=(m=Math.sqrt(m)*(s===c?-1:1))*i/o*p,x=m*-o/i*d,w=f*b-u*x+(e+r)/2,_=u*b+f*x+(t+n)/2,k=(d-b)/i,T=(p-x)/o,A=(-d-b)/i,S=(-p-x)/o,M=l(1,0,k,T),O=l(k,T,A,S);return 0===c&&O>0&&(O-=a),1===c&&O<0&&(O+=a),[w,_,M,O]}(t,r,s,c,u,f,g,y,b,x,w,_),A=n(T,4),S=A[0],M=A[1],O=A[2],C=A[3],E=Math.abs(C)/(a/4);Math.abs(1-E)<1e-7&&(E=1);var L=Math.max(Math.ceil(E),1);C/=L;for(var P=0;P<L;P++)m.push(o(O,C)),O+=C;return m.map((function(e){var t=i(e[0],u,f,x,b,S,M),r=t.x,n=t.y,a=i(e[1],u,f,x,b,S,M),o=a.x,l=a.y,s=i(e[2],u,f,x,b,S,M);return{x1:r,y1:n,x2:o,y2:l,x:s.x,y:s.y}}))},e.exports=t.default},function(e,t,r){"use strict";e.exports=r(730)},function(e,t,r){"use strict";var n=l(r(745)),a=l(r(750)),i=l(r(347)),o=l(r(344));function l(e){return e&&e.__esModule?e:{default:e}}e.exports={Transition:o.default,TransitionGroup:i.default,ReplaceTransition:a.default,CSSTransition:n.default}},,function(e,t,r){"use strict";var n=r(53),a=60103,i=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var o=60109,l=60110,s=60112;t.Suspense=60113;var c=60115,u=60116;if("function"===typeof Symbol&&Symbol.for){var f=Symbol.for;a=f("react.element"),i=f("react.portal"),t.Fragment=f("react.fragment"),t.StrictMode=f("react.strict_mode"),t.Profiler=f("react.profiler"),o=f("react.provider"),l=f("react.context"),s=f("react.forward_ref"),t.Suspense=f("react.suspense"),c=f("react.memo"),u=f("react.lazy")}var d="function"===typeof Symbol&&Symbol.iterator;function p(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g={};function v(e,t,r){this.props=e,this.context=t,this.refs=g,this.updater=r||h}function y(){}function m(e,t,r){this.props=e,this.context=t,this.refs=g,this.updater=r||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error(p(85));this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=v.prototype;var b=m.prototype=new y;b.constructor=m,n(b,v.prototype),b.isPureReactComponent=!0;var x={current:null},w=Object.prototype.hasOwnProperty,_={key:!0,ref:!0,__self:!0,__source:!0};function k(e,t,r){var n,i={},o=null,l=null;if(null!=t)for(n in void 0!==t.ref&&(l=t.ref),void 0!==t.key&&(o=""+t.key),t)w.call(t,n)&&!_.hasOwnProperty(n)&&(i[n]=t[n]);var s=arguments.length-2;if(1===s)i.children=r;else if(1<s){for(var c=Array(s),u=0;u<s;u++)c[u]=arguments[u+2];i.children=c}if(e&&e.defaultProps)for(n in s=e.defaultProps)void 0===i[n]&&(i[n]=s[n]);return{$$typeof:a,type:e,key:o,ref:l,props:i,_owner:x.current}}function T(e){return"object"===typeof e&&null!==e&&e.$$typeof===a}var A=/\/+/g;function S(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function M(e,t,r,n,o){var l=typeof e;"undefined"!==l&&"boolean"!==l||(e=null);var s=!1;if(null===e)s=!0;else switch(l){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case a:case i:s=!0}}if(s)return o=o(s=e),e=""===n?"."+S(s,0):n,Array.isArray(o)?(r="",null!=e&&(r=e.replace(A,"$&/")+"/"),M(o,t,r,"",(function(e){return e}))):null!=o&&(T(o)&&(o=function(e,t){return{$$typeof:a,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(o,r+(!o.key||s&&s.key===o.key?"":(""+o.key).replace(A,"$&/")+"/")+e)),t.push(o)),1;if(s=0,n=""===n?".":n+":",Array.isArray(e))for(var c=0;c<e.length;c++){var u=n+S(l=e[c],c);s+=M(l,t,r,u,o)}else if(u=function(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=d&&e[d]||e["@@iterator"])?e:null}(e),"function"===typeof u)for(e=u.call(e),c=0;!(l=e.next()).done;)s+=M(l=l.value,t,r,u=n+S(l,c++),o);else if("object"===l)throw t=""+e,Error(p(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return s}function O(e,t,r){if(null==e)return e;var n=[],a=0;return M(e,n,"","",(function(e){return t.call(r,e,a++)})),n}function C(e){if(-1===e._status){var t=e._result;t=t(),e._status=0,e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}if(1===e._status)return e._result;throw e._result}var E={current:null};function L(){var e=E.current;if(null===e)throw Error(p(321));return e}var P={ReactCurrentDispatcher:E,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:x,IsSomeRendererActing:{current:!1},assign:n};t.Children={map:O,forEach:function(e,t,r){O(e,(function(){t.apply(this,arguments)}),r)},count:function(e){var t=0;return O(e,(function(){t++})),t},toArray:function(e){return O(e,(function(e){return e}))||[]},only:function(e){if(!T(e))throw Error(p(143));return e}},t.Component=v,t.PureComponent=m,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=P,t.cloneElement=function(e,t,r){if(null===e||void 0===e)throw Error(p(267,e));var i=n({},e.props),o=e.key,l=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(l=t.ref,s=x.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(u in t)w.call(t,u)&&!_.hasOwnProperty(u)&&(i[u]=void 0===t[u]&&void 0!==c?c[u]:t[u])}var u=arguments.length-2;if(1===u)i.children=r;else if(1<u){c=Array(u);for(var f=0;f<u;f++)c[f]=arguments[f+2];i.children=c}return{$$typeof:a,type:e.type,key:o,ref:l,props:i,_owner:s}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:l,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:o,_context:e},e.Consumer=e},t.createElement=k,t.createFactory=function(e){var t=k.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:s,render:e}},t.isValidElement=T,t.lazy=function(e){return{$$typeof:u,_payload:{_status:-1,_result:e},_init:C}},t.memo=function(e,t){return{$$typeof:c,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return L().useCallback(e,t)},t.useContext=function(e,t){return L().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return L().useEffect(e,t)},t.useImperativeHandle=function(e,t,r){return L().useImperativeHandle(e,t,r)},t.useLayoutEffect=function(e,t){return L().useLayoutEffect(e,t)},t.useMemo=function(e,t){return L().useMemo(e,t)},t.useReducer=function(e,t,r){return L().useReducer(e,t,r)},t.useRef=function(e){return L().useRef(e)},t.useState=function(e){return L().useState(e)},t.version="17.0.2"},function(e,t,r){"use strict";var n=r(6),a=r(53),i=r(365);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!n)throw Error(o(227));var l=new Set,s={};function c(e,t){u(e,t),u(e+"Capture",t)}function u(e,t){for(s[e]=t,e=0;e<t.length;e++)l.add(t[e])}var f=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),d=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,p=Object.prototype.hasOwnProperty,h={},g={};function v(e,t,r,n,a,i,o){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=n,this.attributeNamespace=a,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var y={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){y[e]=new v(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];y[t]=new v(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){y[e]=new v(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){y[e]=new v(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){y[e]=new v(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){y[e]=new v(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){y[e]=new v(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){y[e]=new v(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){y[e]=new v(e,5,!1,e.toLowerCase(),null,!1,!1)}));var m=/[\-:]([a-z])/g;function b(e){return e[1].toUpperCase()}function x(e,t,r,n){var a=y.hasOwnProperty(t)?y[t]:null;(null!==a?0===a.type:!n&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,r,n){if(null===t||"undefined"===typeof t||function(e,t,r,n){if(null!==r&&0===r.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!n&&(null!==r?!r.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,r,n))return!0;if(n)return!1;if(null!==r)switch(r.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,r,a,n)&&(r=null),n||null===a?function(e){return!!p.call(g,e)||!p.call(h,e)&&(d.test(e)?g[e]=!0:(h[e]=!0,!1))}(t)&&(null===r?e.removeAttribute(t):e.setAttribute(t,""+r)):a.mustUseProperty?e[a.propertyName]=null===r?3!==a.type&&"":r:(t=a.attributeName,n=a.attributeNamespace,null===r?e.removeAttribute(t):(r=3===(a=a.type)||4===a&&!0===r?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(m,b);y[t]=new v(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(m,b);y[t]=new v(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(m,b);y[t]=new v(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){y[e]=new v(e,1,!1,e.toLowerCase(),null,!1,!1)})),y.xlinkHref=new v("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){y[e]=new v(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,_=60103,k=60106,T=60107,A=60108,S=60114,M=60109,O=60110,C=60112,E=60113,L=60120,P=60115,j=60116,z=60121,D=60128,I=60129,N=60130,R=60131;if("function"===typeof Symbol&&Symbol.for){var F=Symbol.for;_=F("react.element"),k=F("react.portal"),T=F("react.fragment"),A=F("react.strict_mode"),S=F("react.profiler"),M=F("react.provider"),O=F("react.context"),C=F("react.forward_ref"),E=F("react.suspense"),L=F("react.suspense_list"),P=F("react.memo"),j=F("react.lazy"),z=F("react.block"),F("react.scope"),D=F("react.opaque.id"),I=F("react.debug_trace_mode"),N=F("react.offscreen"),R=F("react.legacy_hidden")}var B,U="function"===typeof Symbol&&Symbol.iterator;function H(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=U&&e[U]||e["@@iterator"])?e:null}function V(e){if(void 0===B)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);B=t&&t[1]||""}return"\n"+B+e}var q=!1;function W(e,t){if(!e||q)return"";q=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(s){var n=s}Reflect.construct(e,[],t)}else{try{t.call()}catch(s){n=s}e.call(t.prototype)}else{try{throw Error()}catch(s){n=s}e()}}catch(s){if(s&&n&&"string"===typeof s.stack){for(var a=s.stack.split("\n"),i=n.stack.split("\n"),o=a.length-1,l=i.length-1;1<=o&&0<=l&&a[o]!==i[l];)l--;for(;1<=o&&0<=l;o--,l--)if(a[o]!==i[l]){if(1!==o||1!==l)do{if(o--,0>--l||a[o]!==i[l])return"\n"+a[o].replace(" at new "," at ")}while(1<=o&&0<=l);break}}}finally{q=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?V(e):""}function Y(e){switch(e.tag){case 5:return V(e.type);case 16:return V("Lazy");case 13:return V("Suspense");case 19:return V("SuspenseList");case 0:case 2:case 15:return e=W(e.type,!1);case 11:return e=W(e.type.render,!1);case 22:return e=W(e.type._render,!1);case 1:return e=W(e.type,!0);default:return""}}function G(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case T:return"Fragment";case k:return"Portal";case S:return"Profiler";case A:return"StrictMode";case E:return"Suspense";case L:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case O:return(e.displayName||"Context")+".Consumer";case M:return(e._context.displayName||"Context")+".Provider";case C:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case P:return G(e.type);case z:return G(e._render);case j:t=e._payload,e=e._init;try{return G(e(t))}catch(r){}}return null}function X(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function Z(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function $(e){e._valueTracker||(e._valueTracker=function(e){var t=Z(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof r&&"function"===typeof r.get&&"function"===typeof r.set){var a=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(e){n=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Q(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=Z(e)?e.checked?"true":"false":e.value),(e=n)!==r&&(t.setValue(e),!0)}function K(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function J(e,t){var r=t.checked;return a({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=r?r:e._wrapperState.initialChecked})}function ee(e,t){var r=null==t.defaultValue?"":t.defaultValue,n=null!=t.checked?t.checked:t.defaultChecked;r=X(null!=t.value?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function te(e,t){null!=(t=t.checked)&&x(e,"checked",t,!1)}function re(e,t){te(e,t);var r=X(t.value),n=t.type;if(null!=r)"number"===n?(0===r&&""===e.value||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if("submit"===n||"reset"===n)return void e.removeAttribute("value");t.hasOwnProperty("value")?ae(e,t.type,r):t.hasOwnProperty("defaultValue")&&ae(e,t.type,X(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function ne(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!("submit"!==n&&"reset"!==n||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}""!==(r=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==r&&(e.name=r)}function ae(e,t,r){"number"===t&&K(e.ownerDocument)===e||(null==r?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}function ie(e,t){return e=a({children:void 0},t),(t=function(e){var t="";return n.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function oe(e,t,r,n){if(e=e.options,t){t={};for(var a=0;a<r.length;a++)t["$"+r[a]]=!0;for(r=0;r<e.length;r++)a=t.hasOwnProperty("$"+e[r].value),e[r].selected!==a&&(e[r].selected=a),a&&n&&(e[r].defaultSelected=!0)}else{for(r=""+X(r),t=null,a=0;a<e.length;a++){if(e[a].value===r)return e[a].selected=!0,void(n&&(e[a].defaultSelected=!0));null!==t||e[a].disabled||(t=e[a])}null!==t&&(t.selected=!0)}}function le(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(o(91));return a({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function se(e,t){var r=t.value;if(null==r){if(r=t.children,t=t.defaultValue,null!=r){if(null!=t)throw Error(o(92));if(Array.isArray(r)){if(!(1>=r.length))throw Error(o(93));r=r[0]}t=r}null==t&&(t=""),r=t}e._wrapperState={initialValue:X(r)}}function ce(e,t){var r=X(t.value),n=X(t.defaultValue);null!=r&&((r=""+r)!==e.value&&(e.value=r),null==t.defaultValue&&e.defaultValue!==r&&(e.defaultValue=r)),null!=n&&(e.defaultValue=""+n)}function ue(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var fe="http://www.w3.org/1999/xhtml",de="http://www.w3.org/2000/svg";function pe(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function he(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?pe(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ge,ve,ye=(ve=function(e,t){if(e.namespaceURI!==de||"innerHTML"in e)e.innerHTML=t;else{for((ge=ge||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ge.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,r,n){MSApp.execUnsafeLocalFunction((function(){return ve(e,t)}))}:ve);function me(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&3===r.nodeType)return void(r.nodeValue=t)}e.textContent=t}var be={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},xe=["Webkit","ms","Moz","O"];function we(e,t,r){return null==t||"boolean"===typeof t||""===t?"":r||"number"!==typeof t||0===t||be.hasOwnProperty(e)&&be[e]?(""+t).trim():t+"px"}function _e(e,t){for(var r in e=e.style,t)if(t.hasOwnProperty(r)){var n=0===r.indexOf("--"),a=we(r,t[r],n);"float"===r&&(r="cssFloat"),n?e.setProperty(r,a):e[r]=a}}Object.keys(be).forEach((function(e){xe.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),be[t]=be[e]}))}));var ke=a({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Te(e,t){if(t){if(ke[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(o(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(o(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(o(62))}}function Ae(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function Se(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Me=null,Oe=null,Ce=null;function Ee(e){if(e=na(e)){if("function"!==typeof Me)throw Error(o(280));var t=e.stateNode;t&&(t=ia(t),Me(e.stateNode,e.type,t))}}function Le(e){Oe?Ce?Ce.push(e):Ce=[e]:Oe=e}function Pe(){if(Oe){var e=Oe,t=Ce;if(Ce=Oe=null,Ee(e),t)for(e=0;e<t.length;e++)Ee(t[e])}}function je(e,t){return e(t)}function ze(e,t,r,n,a){return e(t,r,n,a)}function De(){}var Ie=je,Ne=!1,Re=!1;function Fe(){null===Oe&&null===Ce||(De(),Pe())}function Be(e,t){var r=e.stateNode;if(null===r)return null;var n=ia(r);if(null===n)return null;r=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(n=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!n;break e;default:e=!1}if(e)return null;if(r&&"function"!==typeof r)throw Error(o(231,t,typeof r));return r}var Ue=!1;if(f)try{var He={};Object.defineProperty(He,"passive",{get:function(){Ue=!0}}),window.addEventListener("test",He,He),window.removeEventListener("test",He,He)}catch(ve){Ue=!1}function Ve(e,t,r,n,a,i,o,l,s){var c=Array.prototype.slice.call(arguments,3);try{t.apply(r,c)}catch(u){this.onError(u)}}var qe=!1,We=null,Ye=!1,Ge=null,Xe={onError:function(e){qe=!0,We=e}};function Ze(e,t,r,n,a,i,o,l,s){qe=!1,We=null,Ve.apply(Xe,arguments)}function $e(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(1026&(t=e).flags)&&(r=t.return),e=t.return}while(e)}return 3===t.tag?r:null}function Qe(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function Ke(e){if($e(e)!==e)throw Error(o(188))}function Je(e){if(e=function(e){var t=e.alternate;if(!t){if(null===(t=$e(e)))throw Error(o(188));return t!==e?null:e}for(var r=e,n=t;;){var a=r.return;if(null===a)break;var i=a.alternate;if(null===i){if(null!==(n=a.return)){r=n;continue}break}if(a.child===i.child){for(i=a.child;i;){if(i===r)return Ke(a),e;if(i===n)return Ke(a),t;i=i.sibling}throw Error(o(188))}if(r.return!==n.return)r=a,n=i;else{for(var l=!1,s=a.child;s;){if(s===r){l=!0,r=a,n=i;break}if(s===n){l=!0,n=a,r=i;break}s=s.sibling}if(!l){for(s=i.child;s;){if(s===r){l=!0,r=i,n=a;break}if(s===n){l=!0,n=i,r=a;break}s=s.sibling}if(!l)throw Error(o(189))}}if(r.alternate!==n)throw Error(o(190))}if(3!==r.tag)throw Error(o(188));return r.stateNode.current===r?e:t}(e),!e)return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function et(e,t){for(var r=e.alternate;null!==t;){if(t===e||t===r)return!0;t=t.return}return!1}var tt,rt,nt,at,it=!1,ot=[],lt=null,st=null,ct=null,ut=new Map,ft=new Map,dt=[],pt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function ht(e,t,r,n,a){return{blockedOn:e,domEventName:t,eventSystemFlags:16|r,nativeEvent:a,targetContainers:[n]}}function gt(e,t){switch(e){case"focusin":case"focusout":lt=null;break;case"dragenter":case"dragleave":st=null;break;case"mouseover":case"mouseout":ct=null;break;case"pointerover":case"pointerout":ut.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ft.delete(t.pointerId)}}function vt(e,t,r,n,a,i){return null===e||e.nativeEvent!==i?(e=ht(t,r,n,a,i),null!==t&&(null!==(t=na(t))&&rt(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,null!==a&&-1===t.indexOf(a)&&t.push(a),e)}function yt(e){var t=ra(e.target);if(null!==t){var r=$e(t);if(null!==r)if(13===(t=r.tag)){if(null!==(t=Qe(r)))return e.blockedOn=t,void at(e.lanePriority,(function(){i.unstable_runWithPriority(e.priority,(function(){nt(r)}))}))}else if(3===t&&r.stateNode.hydrate)return void(e.blockedOn=3===r.tag?r.stateNode.containerInfo:null)}e.blockedOn=null}function mt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var r=Jt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==r)return null!==(t=na(r))&&rt(t),e.blockedOn=r,!1;t.shift()}return!0}function bt(e,t,r){mt(e)&&r.delete(t)}function xt(){for(it=!1;0<ot.length;){var e=ot[0];if(null!==e.blockedOn){null!==(e=na(e.blockedOn))&&tt(e);break}for(var t=e.targetContainers;0<t.length;){var r=Jt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==r){e.blockedOn=r;break}t.shift()}null===e.blockedOn&&ot.shift()}null!==lt&&mt(lt)&&(lt=null),null!==st&&mt(st)&&(st=null),null!==ct&&mt(ct)&&(ct=null),ut.forEach(bt),ft.forEach(bt)}function wt(e,t){e.blockedOn===t&&(e.blockedOn=null,it||(it=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,xt)))}function _t(e){function t(t){return wt(t,e)}if(0<ot.length){wt(ot[0],e);for(var r=1;r<ot.length;r++){var n=ot[r];n.blockedOn===e&&(n.blockedOn=null)}}for(null!==lt&&wt(lt,e),null!==st&&wt(st,e),null!==ct&&wt(ct,e),ut.forEach(t),ft.forEach(t),r=0;r<dt.length;r++)(n=dt[r]).blockedOn===e&&(n.blockedOn=null);for(;0<dt.length&&null===(r=dt[0]).blockedOn;)yt(r),null===r.blockedOn&&dt.shift()}function kt(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var Tt={animationend:kt("Animation","AnimationEnd"),animationiteration:kt("Animation","AnimationIteration"),animationstart:kt("Animation","AnimationStart"),transitionend:kt("Transition","TransitionEnd")},At={},St={};function Mt(e){if(At[e])return At[e];if(!Tt[e])return e;var t,r=Tt[e];for(t in r)if(r.hasOwnProperty(t)&&t in St)return At[e]=r[t];return e}f&&(St=document.createElement("div").style,"AnimationEvent"in window||(delete Tt.animationend.animation,delete Tt.animationiteration.animation,delete Tt.animationstart.animation),"TransitionEvent"in window||delete Tt.transitionend.transition);var Ot=Mt("animationend"),Ct=Mt("animationiteration"),Et=Mt("animationstart"),Lt=Mt("transitionend"),Pt=new Map,jt=new Map,zt=["abort","abort",Ot,"animationEnd",Ct,"animationIteration",Et,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Lt,"transitionEnd","waiting","waiting"];function Dt(e,t){for(var r=0;r<e.length;r+=2){var n=e[r],a=e[r+1];a="on"+(a[0].toUpperCase()+a.slice(1)),jt.set(n,t),Pt.set(n,a),c(a,[n])}}(0,i.unstable_now)();var It=8;function Nt(e){if(0!==(1&e))return It=15,1;if(0!==(2&e))return It=14,2;if(0!==(4&e))return It=13,4;var t=24&e;return 0!==t?(It=12,t):0!==(32&e)?(It=11,32):0!==(t=192&e)?(It=10,t):0!==(256&e)?(It=9,256):0!==(t=3584&e)?(It=8,t):0!==(4096&e)?(It=7,4096):0!==(t=4186112&e)?(It=6,t):0!==(t=62914560&e)?(It=5,t):67108864&e?(It=4,67108864):0!==(134217728&e)?(It=3,134217728):0!==(t=805306368&e)?(It=2,t):0!==(1073741824&e)?(It=1,1073741824):(It=8,e)}function Rt(e,t){var r=e.pendingLanes;if(0===r)return It=0;var n=0,a=0,i=e.expiredLanes,o=e.suspendedLanes,l=e.pingedLanes;if(0!==i)n=i,a=It=15;else if(0!==(i=134217727&r)){var s=i&~o;0!==s?(n=Nt(s),a=It):0!==(l&=i)&&(n=Nt(l),a=It)}else 0!==(i=r&~o)?(n=Nt(i),a=It):0!==l&&(n=Nt(l),a=It);if(0===n)return 0;if(n=r&((0>(n=31-qt(n))?0:1<<n)<<1)-1,0!==t&&t!==n&&0===(t&o)){if(Nt(t),a<=It)return t;It=a}if(0!==(t=e.entangledLanes))for(e=e.entanglements,t&=n;0<t;)a=1<<(r=31-qt(t)),n|=e[r],t&=~a;return n}function Ft(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function Bt(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return 0===(e=Ut(24&~t))?Bt(10,t):e;case 10:return 0===(e=Ut(192&~t))?Bt(8,t):e;case 8:return 0===(e=Ut(3584&~t))&&(0===(e=Ut(4186112&~t))&&(e=512)),e;case 2:return 0===(t=Ut(805306368&~t))&&(t=268435456),t}throw Error(o(358,e))}function Ut(e){return e&-e}function Ht(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function Vt(e,t,r){e.pendingLanes|=t;var n=t-1;e.suspendedLanes&=n,e.pingedLanes&=n,(e=e.eventTimes)[t=31-qt(t)]=r}var qt=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(Wt(e)/Yt|0)|0},Wt=Math.log,Yt=Math.LN2;var Gt=i.unstable_UserBlockingPriority,Xt=i.unstable_runWithPriority,Zt=!0;function $t(e,t,r,n){Ne||De();var a=Kt,i=Ne;Ne=!0;try{ze(a,e,t,r,n)}finally{(Ne=i)||Fe()}}function Qt(e,t,r,n){Xt(Gt,Kt.bind(null,e,t,r,n))}function Kt(e,t,r,n){var a;if(Zt)if((a=0===(4&t))&&0<ot.length&&-1<pt.indexOf(e))e=ht(null,e,t,r,n),ot.push(e);else{var i=Jt(e,t,r,n);if(null===i)a&&gt(e,n);else{if(a){if(-1<pt.indexOf(e))return e=ht(i,e,t,r,n),void ot.push(e);if(function(e,t,r,n,a){switch(t){case"focusin":return lt=vt(lt,e,t,r,n,a),!0;case"dragenter":return st=vt(st,e,t,r,n,a),!0;case"mouseover":return ct=vt(ct,e,t,r,n,a),!0;case"pointerover":var i=a.pointerId;return ut.set(i,vt(ut.get(i)||null,e,t,r,n,a)),!0;case"gotpointercapture":return i=a.pointerId,ft.set(i,vt(ft.get(i)||null,e,t,r,n,a)),!0}return!1}(i,e,t,r,n))return;gt(e,n)}Dn(e,t,n,null,r)}}}function Jt(e,t,r,n){var a=Se(n);if(null!==(a=ra(a))){var i=$e(a);if(null===i)a=null;else{var o=i.tag;if(13===o){if(null!==(a=Qe(i)))return a;a=null}else if(3===o){if(i.stateNode.hydrate)return 3===i.tag?i.stateNode.containerInfo:null;a=null}else i!==a&&(a=null)}}return Dn(e,t,n,a,r),null}var er=null,tr=null,rr=null;function nr(){if(rr)return rr;var e,t,r=tr,n=r.length,a="value"in er?er.value:er.textContent,i=a.length;for(e=0;e<n&&r[e]===a[e];e++);var o=n-e;for(t=1;t<=o&&r[n-t]===a[i-t];t++);return rr=a.slice(e,1<t?1-t:void 0)}function ar(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function ir(){return!0}function or(){return!1}function lr(e){function t(t,r,n,a,i){for(var o in this._reactName=t,this._targetInst=n,this.type=r,this.nativeEvent=a,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(a):a[o]);return this.isDefaultPrevented=(null!=a.defaultPrevented?a.defaultPrevented:!1===a.returnValue)?ir:or,this.isPropagationStopped=or,this}return a(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=ir)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=ir)},persist:function(){},isPersistent:ir}),t}var sr,cr,ur,fr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},dr=lr(fr),pr=a({},fr,{view:0,detail:0}),hr=lr(pr),gr=a({},pr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Mr,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ur&&(ur&&"mousemove"===e.type?(sr=e.screenX-ur.screenX,cr=e.screenY-ur.screenY):cr=sr=0,ur=e),sr)},movementY:function(e){return"movementY"in e?e.movementY:cr}}),vr=lr(gr),yr=lr(a({},gr,{dataTransfer:0})),mr=lr(a({},pr,{relatedTarget:0})),br=lr(a({},fr,{animationName:0,elapsedTime:0,pseudoElement:0})),xr=a({},fr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),wr=lr(xr),_r=lr(a({},fr,{data:0})),kr={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Tr={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Ar={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Sr(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Ar[e])&&!!t[e]}function Mr(){return Sr}var Or=a({},pr,{key:function(e){if(e.key){var t=kr[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=ar(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Tr[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Mr,charCode:function(e){return"keypress"===e.type?ar(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?ar(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Cr=lr(Or),Er=lr(a({},gr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Lr=lr(a({},pr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Mr})),Pr=lr(a({},fr,{propertyName:0,elapsedTime:0,pseudoElement:0})),jr=a({},gr,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),zr=lr(jr),Dr=[9,13,27,32],Ir=f&&"CompositionEvent"in window,Nr=null;f&&"documentMode"in document&&(Nr=document.documentMode);var Rr=f&&"TextEvent"in window&&!Nr,Fr=f&&(!Ir||Nr&&8<Nr&&11>=Nr),Br=String.fromCharCode(32),Ur=!1;function Hr(e,t){switch(e){case"keyup":return-1!==Dr.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Vr(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var qr=!1;var Wr={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Yr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Wr[e.type]:"textarea"===t}function Gr(e,t,r,n){Le(n),0<(t=Nn(t,"onChange")).length&&(r=new dr("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var Xr=null,Zr=null;function $r(e){Cn(e,0)}function Qr(e){if(Q(aa(e)))return e}function Kr(e,t){if("change"===e)return t}var Jr=!1;if(f){var en;if(f){var tn="oninput"in document;if(!tn){var rn=document.createElement("div");rn.setAttribute("oninput","return;"),tn="function"===typeof rn.oninput}en=tn}else en=!1;Jr=en&&(!document.documentMode||9<document.documentMode)}function nn(){Xr&&(Xr.detachEvent("onpropertychange",an),Zr=Xr=null)}function an(e){if("value"===e.propertyName&&Qr(Zr)){var t=[];if(Gr(t,Zr,e,Se(e)),e=$r,Ne)e(t);else{Ne=!0;try{je(e,t)}finally{Ne=!1,Fe()}}}}function on(e,t,r){"focusin"===e?(nn(),Zr=r,(Xr=t).attachEvent("onpropertychange",an)):"focusout"===e&&nn()}function ln(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Qr(Zr)}function sn(e,t){if("click"===e)return Qr(t)}function cn(e,t){if("input"===e||"change"===e)return Qr(t)}var un="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},fn=Object.prototype.hasOwnProperty;function dn(e,t){if(un(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++)if(!fn.call(t,r[n])||!un(e[r[n]],t[r[n]]))return!1;return!0}function pn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function hn(e,t){var r,n=pn(e);for(e=0;n;){if(3===n.nodeType){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=pn(n)}}function gn(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?gn(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function vn(){for(var e=window,t=K();t instanceof e.HTMLIFrameElement;){try{var r="string"===typeof t.contentWindow.location.href}catch(n){r=!1}if(!r)break;t=K((e=t.contentWindow).document)}return t}function yn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var mn=f&&"documentMode"in document&&11>=document.documentMode,bn=null,xn=null,wn=null,_n=!1;function kn(e,t,r){var n=r.window===r?r.document:9===r.nodeType?r:r.ownerDocument;_n||null==bn||bn!==K(n)||("selectionStart"in(n=bn)&&yn(n)?n={start:n.selectionStart,end:n.selectionEnd}:n={anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},wn&&dn(wn,n)||(wn=n,0<(n=Nn(xn,"onSelect")).length&&(t=new dr("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=bn)))}Dt("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Dt("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Dt(zt,2);for(var Tn="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),An=0;An<Tn.length;An++)jt.set(Tn[An],0);u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),c("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),c("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),c("onBeforeInput",["compositionend","keypress","textInput","paste"]),c("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Sn="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Mn=new Set("cancel close invalid load scroll toggle".split(" ").concat(Sn));function On(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,function(e,t,r,n,a,i,l,s,c){if(Ze.apply(this,arguments),qe){if(!qe)throw Error(o(198));var u=We;qe=!1,We=null,Ye||(Ye=!0,Ge=u)}}(n,t,void 0,e),e.currentTarget=null}function Cn(e,t){t=0!==(4&t);for(var r=0;r<e.length;r++){var n=e[r],a=n.event;n=n.listeners;e:{var i=void 0;if(t)for(var o=n.length-1;0<=o;o--){var l=n[o],s=l.instance,c=l.currentTarget;if(l=l.listener,s!==i&&a.isPropagationStopped())break e;On(a,l,c),i=s}else for(o=0;o<n.length;o++){if(s=(l=n[o]).instance,c=l.currentTarget,l=l.listener,s!==i&&a.isPropagationStopped())break e;On(a,l,c),i=s}}}if(Ye)throw e=Ge,Ye=!1,Ge=null,e}function En(e,t){var r=oa(t),n=e+"__bubble";r.has(n)||(zn(t,e,2,!1),r.add(n))}var Ln="_reactListening"+Math.random().toString(36).slice(2);function Pn(e){e[Ln]||(e[Ln]=!0,l.forEach((function(t){Mn.has(t)||jn(t,!1,e,null),jn(t,!0,e,null)})))}function jn(e,t,r,n){var a=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,i=r;if("selectionchange"===e&&9!==r.nodeType&&(i=r.ownerDocument),null!==n&&!t&&Mn.has(e)){if("scroll"!==e)return;a|=2,i=n}var o=oa(i),l=e+"__"+(t?"capture":"bubble");o.has(l)||(t&&(a|=4),zn(i,e,a,t),o.add(l))}function zn(e,t,r,n){var a=jt.get(t);switch(void 0===a?2:a){case 0:a=$t;break;case 1:a=Qt;break;default:a=Kt}r=a.bind(null,t,r,e),a=void 0,!Ue||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(a=!0),n?void 0!==a?e.addEventListener(t,r,{capture:!0,passive:a}):e.addEventListener(t,r,!0):void 0!==a?e.addEventListener(t,r,{passive:a}):e.addEventListener(t,r,!1)}function Dn(e,t,r,n,a){var i=n;if(0===(1&t)&&0===(2&t)&&null!==n)e:for(;;){if(null===n)return;var o=n.tag;if(3===o||4===o){var l=n.stateNode.containerInfo;if(l===a||8===l.nodeType&&l.parentNode===a)break;if(4===o)for(o=n.return;null!==o;){var s=o.tag;if((3===s||4===s)&&((s=o.stateNode.containerInfo)===a||8===s.nodeType&&s.parentNode===a))return;o=o.return}for(;null!==l;){if(null===(o=ra(l)))return;if(5===(s=o.tag)||6===s){n=i=o;continue e}l=l.parentNode}}n=n.return}!function(e,t,r){if(Re)return e(t,r);Re=!0;try{Ie(e,t,r)}finally{Re=!1,Fe()}}((function(){var n=i,a=Se(r),o=[];e:{var l=Pt.get(e);if(void 0!==l){var s=dr,c=e;switch(e){case"keypress":if(0===ar(r))break e;case"keydown":case"keyup":s=Cr;break;case"focusin":c="focus",s=mr;break;case"focusout":c="blur",s=mr;break;case"beforeblur":case"afterblur":s=mr;break;case"click":if(2===r.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":s=vr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":s=yr;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":s=Lr;break;case Ot:case Ct:case Et:s=br;break;case Lt:s=Pr;break;case"scroll":s=hr;break;case"wheel":s=zr;break;case"copy":case"cut":case"paste":s=wr;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":s=Er}var u=0!==(4&t),f=!u&&"scroll"===e,d=u?null!==l?l+"Capture":null:l;u=[];for(var p,h=n;null!==h;){var g=(p=h).stateNode;if(5===p.tag&&null!==g&&(p=g,null!==d&&(null!=(g=Be(h,d))&&u.push(In(h,g,p)))),f)break;h=h.return}0<u.length&&(l=new s(l,c,null,r,a),o.push({event:l,listeners:u}))}}if(0===(7&t)){if(s="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||0!==(16&t)||!(c=r.relatedTarget||r.fromElement)||!ra(c)&&!c[ea])&&(s||l)&&(l=a.window===a?a:(l=a.ownerDocument)?l.defaultView||l.parentWindow:window,s?(s=n,null!==(c=(c=r.relatedTarget||r.toElement)?ra(c):null)&&(c!==(f=$e(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(s=null,c=n),s!==c)){if(u=vr,g="onMouseLeave",d="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(u=Er,g="onPointerLeave",d="onPointerEnter",h="pointer"),f=null==s?l:aa(s),p=null==c?l:aa(c),(l=new u(g,h+"leave",s,r,a)).target=f,l.relatedTarget=p,g=null,ra(a)===n&&((u=new u(d,h+"enter",c,r,a)).target=p,u.relatedTarget=f,g=u),f=g,s&&c)e:{for(d=c,h=0,p=u=s;p;p=Rn(p))h++;for(p=0,g=d;g;g=Rn(g))p++;for(;0<h-p;)u=Rn(u),h--;for(;0<p-h;)d=Rn(d),p--;for(;h--;){if(u===d||null!==d&&u===d.alternate)break e;u=Rn(u),d=Rn(d)}u=null}else u=null;null!==s&&Fn(o,l,s,u,!1),null!==c&&null!==f&&Fn(o,f,c,u,!0)}if("select"===(s=(l=n?aa(n):window).nodeName&&l.nodeName.toLowerCase())||"input"===s&&"file"===l.type)var v=Kr;else if(Yr(l))if(Jr)v=cn;else{v=ln;var y=on}else(s=l.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===l.type||"radio"===l.type)&&(v=sn);switch(v&&(v=v(e,n))?Gr(o,v,r,a):(y&&y(e,l,n),"focusout"===e&&(y=l._wrapperState)&&y.controlled&&"number"===l.type&&ae(l,"number",l.value)),y=n?aa(n):window,e){case"focusin":(Yr(y)||"true"===y.contentEditable)&&(bn=y,xn=n,wn=null);break;case"focusout":wn=xn=bn=null;break;case"mousedown":_n=!0;break;case"contextmenu":case"mouseup":case"dragend":_n=!1,kn(o,r,a);break;case"selectionchange":if(mn)break;case"keydown":case"keyup":kn(o,r,a)}var m;if(Ir)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else qr?Hr(e,r)&&(b="onCompositionEnd"):"keydown"===e&&229===r.keyCode&&(b="onCompositionStart");b&&(Fr&&"ko"!==r.locale&&(qr||"onCompositionStart"!==b?"onCompositionEnd"===b&&qr&&(m=nr()):(tr="value"in(er=a)?er.value:er.textContent,qr=!0)),0<(y=Nn(n,b)).length&&(b=new _r(b,e,null,r,a),o.push({event:b,listeners:y}),m?b.data=m:null!==(m=Vr(r))&&(b.data=m))),(m=Rr?function(e,t){switch(e){case"compositionend":return Vr(t);case"keypress":return 32!==t.which?null:(Ur=!0,Br);case"textInput":return(e=t.data)===Br&&Ur?null:e;default:return null}}(e,r):function(e,t){if(qr)return"compositionend"===e||!Ir&&Hr(e,t)?(e=nr(),rr=tr=er=null,qr=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Fr&&"ko"!==t.locale?null:t.data}}(e,r))&&(0<(n=Nn(n,"onBeforeInput")).length&&(a=new _r("onBeforeInput","beforeinput",null,r,a),o.push({event:a,listeners:n}),a.data=m))}Cn(o,t)}))}function In(e,t,r){return{instance:e,listener:t,currentTarget:r}}function Nn(e,t){for(var r=t+"Capture",n=[];null!==e;){var a=e,i=a.stateNode;5===a.tag&&null!==i&&(a=i,null!=(i=Be(e,r))&&n.unshift(In(e,i,a)),null!=(i=Be(e,t))&&n.push(In(e,i,a))),e=e.return}return n}function Rn(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Fn(e,t,r,n,a){for(var i=t._reactName,o=[];null!==r&&r!==n;){var l=r,s=l.alternate,c=l.stateNode;if(null!==s&&s===n)break;5===l.tag&&null!==c&&(l=c,a?null!=(s=Be(r,i))&&o.unshift(In(r,s,l)):a||null!=(s=Be(r,i))&&o.push(In(r,s,l))),r=r.return}0!==o.length&&e.push({event:t,listeners:o})}function Bn(){}var Un=null,Hn=null;function Vn(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function qn(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Wn="function"===typeof setTimeout?setTimeout:void 0,Yn="function"===typeof clearTimeout?clearTimeout:void 0;function Gn(e){1===e.nodeType?e.textContent="":9===e.nodeType&&(null!=(e=e.body)&&(e.textContent=""))}function Xn(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function Zn(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var r=e.data;if("$"===r||"$!"===r||"$?"===r){if(0===t)return e;t--}else"/$"===r&&t++}e=e.previousSibling}return null}var $n=0;var Qn=Math.random().toString(36).slice(2),Kn="__reactFiber$"+Qn,Jn="__reactProps$"+Qn,ea="__reactContainer$"+Qn,ta="__reactEvents$"+Qn;function ra(e){var t=e[Kn];if(t)return t;for(var r=e.parentNode;r;){if(t=r[ea]||r[Kn]){if(r=t.alternate,null!==t.child||null!==r&&null!==r.child)for(e=Zn(e);null!==e;){if(r=e[Kn])return r;e=Zn(e)}return t}r=(e=r).parentNode}return null}function na(e){return!(e=e[Kn]||e[ea])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function aa(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(o(33))}function ia(e){return e[Jn]||null}function oa(e){var t=e[ta];return void 0===t&&(t=e[ta]=new Set),t}var la=[],sa=-1;function ca(e){return{current:e}}function ua(e){0>sa||(e.current=la[sa],la[sa]=null,sa--)}function fa(e,t){sa++,la[sa]=e.current,e.current=t}var da={},pa=ca(da),ha=ca(!1),ga=da;function va(e,t){var r=e.type.contextTypes;if(!r)return da;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var a,i={};for(a in r)i[a]=t[a];return n&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function ya(e){return null!==(e=e.childContextTypes)&&void 0!==e}function ma(){ua(ha),ua(pa)}function ba(e,t,r){if(pa.current!==da)throw Error(o(168));fa(pa,t),fa(ha,r)}function xa(e,t,r){var n=e.stateNode;if(e=t.childContextTypes,"function"!==typeof n.getChildContext)return r;for(var i in n=n.getChildContext())if(!(i in e))throw Error(o(108,G(t)||"Unknown",i));return a({},r,n)}function wa(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||da,ga=pa.current,fa(pa,e),fa(ha,ha.current),!0}function _a(e,t,r){var n=e.stateNode;if(!n)throw Error(o(169));r?(e=xa(e,t,ga),n.__reactInternalMemoizedMergedChildContext=e,ua(ha),ua(pa),fa(pa,e)):ua(ha),fa(ha,r)}var ka=null,Ta=null,Aa=i.unstable_runWithPriority,Sa=i.unstable_scheduleCallback,Ma=i.unstable_cancelCallback,Oa=i.unstable_shouldYield,Ca=i.unstable_requestPaint,Ea=i.unstable_now,La=i.unstable_getCurrentPriorityLevel,Pa=i.unstable_ImmediatePriority,ja=i.unstable_UserBlockingPriority,za=i.unstable_NormalPriority,Da=i.unstable_LowPriority,Ia=i.unstable_IdlePriority,Na={},Ra=void 0!==Ca?Ca:function(){},Fa=null,Ba=null,Ua=!1,Ha=Ea(),Va=1e4>Ha?Ea:function(){return Ea()-Ha};function qa(){switch(La()){case Pa:return 99;case ja:return 98;case za:return 97;case Da:return 96;case Ia:return 95;default:throw Error(o(332))}}function Wa(e){switch(e){case 99:return Pa;case 98:return ja;case 97:return za;case 96:return Da;case 95:return Ia;default:throw Error(o(332))}}function Ya(e,t){return e=Wa(e),Aa(e,t)}function Ga(e,t,r){return e=Wa(e),Sa(e,t,r)}function Xa(){if(null!==Ba){var e=Ba;Ba=null,Ma(e)}Za()}function Za(){if(!Ua&&null!==Fa){Ua=!0;var e=0;try{var t=Fa;Ya(99,(function(){for(;e<t.length;e++){var r=t[e];do{r=r(!0)}while(null!==r)}})),Fa=null}catch(r){throw null!==Fa&&(Fa=Fa.slice(e+1)),Sa(Pa,Xa),r}finally{Ua=!1}}}var $a=w.ReactCurrentBatchConfig;function Qa(e,t){if(e&&e.defaultProps){for(var r in t=a({},t),e=e.defaultProps)void 0===t[r]&&(t[r]=e[r]);return t}return t}var Ka=ca(null),Ja=null,ei=null,ti=null;function ri(){ti=ei=Ja=null}function ni(e){var t=Ka.current;ua(Ka),e.type._context._currentValue=t}function ai(e,t){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)===t){if(null===r||(r.childLanes&t)===t)break;r.childLanes|=t}else e.childLanes|=t,null!==r&&(r.childLanes|=t);e=e.return}}function ii(e,t){Ja=e,ti=ei=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(No=!0),e.firstContext=null)}function oi(e,t){if(ti!==e&&!1!==t&&0!==t)if("number"===typeof t&&1073741823!==t||(ti=e,t=1073741823),t={context:e,observedBits:t,next:null},null===ei){if(null===Ja)throw Error(o(308));ei=t,Ja.dependencies={lanes:0,firstContext:t,responders:null}}else ei=ei.next=t;return e._currentValue}var li=!1;function si(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function ci(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function ui(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function fi(e,t){if(null!==(e=e.updateQueue)){var r=(e=e.shared).pending;null===r?t.next=t:(t.next=r.next,r.next=t),e.pending=t}}function di(e,t){var r=e.updateQueue,n=e.alternate;if(null!==n&&r===(n=n.updateQueue)){var a=null,i=null;if(null!==(r=r.firstBaseUpdate)){do{var o={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};null===i?a=i=o:i=i.next=o,r=r.next}while(null!==r);null===i?a=i=t:i=i.next=t}else a=i=t;return r={baseState:n.baseState,firstBaseUpdate:a,lastBaseUpdate:i,shared:n.shared,effects:n.effects},void(e.updateQueue=r)}null===(e=r.lastBaseUpdate)?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function pi(e,t,r,n){var i=e.updateQueue;li=!1;var o=i.firstBaseUpdate,l=i.lastBaseUpdate,s=i.shared.pending;if(null!==s){i.shared.pending=null;var c=s,u=c.next;c.next=null,null===l?o=u:l.next=u,l=c;var f=e.alternate;if(null!==f){var d=(f=f.updateQueue).lastBaseUpdate;d!==l&&(null===d?f.firstBaseUpdate=u:d.next=u,f.lastBaseUpdate=c)}}if(null!==o){for(d=i.baseState,l=0,f=u=c=null;;){s=o.lane;var p=o.eventTime;if((n&s)===s){null!==f&&(f=f.next={eventTime:p,lane:0,tag:o.tag,payload:o.payload,callback:o.callback,next:null});e:{var h=e,g=o;switch(s=t,p=r,g.tag){case 1:if("function"===typeof(h=g.payload)){d=h.call(p,d,s);break e}d=h;break e;case 3:h.flags=-4097&h.flags|64;case 0:if(null===(s="function"===typeof(h=g.payload)?h.call(p,d,s):h)||void 0===s)break e;d=a({},d,s);break e;case 2:li=!0}}null!==o.callback&&(e.flags|=32,null===(s=i.effects)?i.effects=[o]:s.push(o))}else p={eventTime:p,lane:s,tag:o.tag,payload:o.payload,callback:o.callback,next:null},null===f?(u=f=p,c=d):f=f.next=p,l|=s;if(null===(o=o.next)){if(null===(s=i.shared.pending))break;o=s.next,s.next=null,i.lastBaseUpdate=s,i.shared.pending=null}}null===f&&(c=d),i.baseState=c,i.firstBaseUpdate=u,i.lastBaseUpdate=f,Ul|=l,e.lanes=l,e.memoizedState=d}}function hi(e,t,r){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var n=e[t],a=n.callback;if(null!==a){if(n.callback=null,n=r,"function"!==typeof a)throw Error(o(191,a));a.call(n)}}}var gi=(new n.Component).refs;function vi(e,t,r,n){r=null===(r=r(n,t=e.memoizedState))||void 0===r?t:a({},t,r),e.memoizedState=r,0===e.lanes&&(e.updateQueue.baseState=r)}var yi={isMounted:function(e){return!!(e=e._reactInternals)&&$e(e)===e},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=ds(),a=ps(e),i=ui(n,a);i.payload=t,void 0!==r&&null!==r&&(i.callback=r),fi(e,i),hs(e,a,n)},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=ds(),a=ps(e),i=ui(n,a);i.tag=1,i.payload=t,void 0!==r&&null!==r&&(i.callback=r),fi(e,i),hs(e,a,n)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=ds(),n=ps(e),a=ui(r,n);a.tag=2,void 0!==t&&null!==t&&(a.callback=t),fi(e,a),hs(e,n,r)}};function mi(e,t,r,n,a,i,o){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(n,i,o):!t.prototype||!t.prototype.isPureReactComponent||(!dn(r,n)||!dn(a,i))}function bi(e,t,r){var n=!1,a=da,i=t.contextType;return"object"===typeof i&&null!==i?i=oi(i):(a=ya(t)?ga:pa.current,i=(n=null!==(n=t.contextTypes)&&void 0!==n)?va(e,a):da),t=new t(r,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=yi,e.stateNode=t,t._reactInternals=e,n&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=a,e.__reactInternalMemoizedMaskedChildContext=i),t}function xi(e,t,r,n){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(r,n),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&yi.enqueueReplaceState(t,t.state,null)}function wi(e,t,r,n){var a=e.stateNode;a.props=r,a.state=e.memoizedState,a.refs=gi,si(e);var i=t.contextType;"object"===typeof i&&null!==i?a.context=oi(i):(i=ya(t)?ga:pa.current,a.context=va(e,i)),pi(e,r,a,n),a.state=e.memoizedState,"function"===typeof(i=t.getDerivedStateFromProps)&&(vi(e,t,i,r),a.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof a.getSnapshotBeforeUpdate||"function"!==typeof a.UNSAFE_componentWillMount&&"function"!==typeof a.componentWillMount||(t=a.state,"function"===typeof a.componentWillMount&&a.componentWillMount(),"function"===typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount(),t!==a.state&&yi.enqueueReplaceState(a,a.state,null),pi(e,r,a,n),a.state=e.memoizedState),"function"===typeof a.componentDidMount&&(e.flags|=4)}var _i=Array.isArray;function ki(e,t,r){if(null!==(e=r.ref)&&"function"!==typeof e&&"object"!==typeof e){if(r._owner){if(r=r._owner){if(1!==r.tag)throw Error(o(309));var n=r.stateNode}if(!n)throw Error(o(147,e));var a=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=n.refs;t===gi&&(t=n.refs={}),null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!==typeof e)throw Error(o(284));if(!r._owner)throw Error(o(290,e))}return e}function Ti(e,t){if("textarea"!==e.type)throw Error(o(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function Ai(e){function t(t,r){if(e){var n=t.lastEffect;null!==n?(n.nextEffect=r,t.lastEffect=r):t.firstEffect=t.lastEffect=r,r.nextEffect=null,r.flags=8}}function r(r,n){if(!e)return null;for(;null!==n;)t(r,n),n=n.sibling;return null}function n(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function a(e,t){return(e=Ys(e,t)).index=0,e.sibling=null,e}function i(t,r,n){return t.index=n,e?null!==(n=t.alternate)?(n=n.index)<r?(t.flags=2,r):n:(t.flags=2,r):r}function l(t){return e&&null===t.alternate&&(t.flags=2),t}function s(e,t,r,n){return null===t||6!==t.tag?((t=$s(r,e.mode,n)).return=e,t):((t=a(t,r)).return=e,t)}function c(e,t,r,n){return null!==t&&t.elementType===r.type?((n=a(t,r.props)).ref=ki(e,t,r),n.return=e,n):((n=Gs(r.type,r.key,r.props,null,e.mode,n)).ref=ki(e,t,r),n.return=e,n)}function u(e,t,r,n){return null===t||4!==t.tag||t.stateNode.containerInfo!==r.containerInfo||t.stateNode.implementation!==r.implementation?((t=Qs(r,e.mode,n)).return=e,t):((t=a(t,r.children||[])).return=e,t)}function f(e,t,r,n,i){return null===t||7!==t.tag?((t=Xs(r,e.mode,n,i)).return=e,t):((t=a(t,r)).return=e,t)}function d(e,t,r){if("string"===typeof t||"number"===typeof t)return(t=$s(""+t,e.mode,r)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case _:return(r=Gs(t.type,t.key,t.props,null,e.mode,r)).ref=ki(e,null,t),r.return=e,r;case k:return(t=Qs(t,e.mode,r)).return=e,t}if(_i(t)||H(t))return(t=Xs(t,e.mode,r,null)).return=e,t;Ti(e,t)}return null}function p(e,t,r,n){var a=null!==t?t.key:null;if("string"===typeof r||"number"===typeof r)return null!==a?null:s(e,t,""+r,n);if("object"===typeof r&&null!==r){switch(r.$$typeof){case _:return r.key===a?r.type===T?f(e,t,r.props.children,n,a):c(e,t,r,n):null;case k:return r.key===a?u(e,t,r,n):null}if(_i(r)||H(r))return null!==a?null:f(e,t,r,n,null);Ti(e,r)}return null}function h(e,t,r,n,a){if("string"===typeof n||"number"===typeof n)return s(t,e=e.get(r)||null,""+n,a);if("object"===typeof n&&null!==n){switch(n.$$typeof){case _:return e=e.get(null===n.key?r:n.key)||null,n.type===T?f(t,e,n.props.children,a,n.key):c(t,e,n,a);case k:return u(t,e=e.get(null===n.key?r:n.key)||null,n,a)}if(_i(n)||H(n))return f(t,e=e.get(r)||null,n,a,null);Ti(t,n)}return null}function g(a,o,l,s){for(var c=null,u=null,f=o,g=o=0,v=null;null!==f&&g<l.length;g++){f.index>g?(v=f,f=null):v=f.sibling;var y=p(a,f,l[g],s);if(null===y){null===f&&(f=v);break}e&&f&&null===y.alternate&&t(a,f),o=i(y,o,g),null===u?c=y:u.sibling=y,u=y,f=v}if(g===l.length)return r(a,f),c;if(null===f){for(;g<l.length;g++)null!==(f=d(a,l[g],s))&&(o=i(f,o,g),null===u?c=f:u.sibling=f,u=f);return c}for(f=n(a,f);g<l.length;g++)null!==(v=h(f,a,g,l[g],s))&&(e&&null!==v.alternate&&f.delete(null===v.key?g:v.key),o=i(v,o,g),null===u?c=v:u.sibling=v,u=v);return e&&f.forEach((function(e){return t(a,e)})),c}function v(a,l,s,c){var u=H(s);if("function"!==typeof u)throw Error(o(150));if(null==(s=u.call(s)))throw Error(o(151));for(var f=u=null,g=l,v=l=0,y=null,m=s.next();null!==g&&!m.done;v++,m=s.next()){g.index>v?(y=g,g=null):y=g.sibling;var b=p(a,g,m.value,c);if(null===b){null===g&&(g=y);break}e&&g&&null===b.alternate&&t(a,g),l=i(b,l,v),null===f?u=b:f.sibling=b,f=b,g=y}if(m.done)return r(a,g),u;if(null===g){for(;!m.done;v++,m=s.next())null!==(m=d(a,m.value,c))&&(l=i(m,l,v),null===f?u=m:f.sibling=m,f=m);return u}for(g=n(a,g);!m.done;v++,m=s.next())null!==(m=h(g,a,v,m.value,c))&&(e&&null!==m.alternate&&g.delete(null===m.key?v:m.key),l=i(m,l,v),null===f?u=m:f.sibling=m,f=m);return e&&g.forEach((function(e){return t(a,e)})),u}return function(e,n,i,s){var c="object"===typeof i&&null!==i&&i.type===T&&null===i.key;c&&(i=i.props.children);var u="object"===typeof i&&null!==i;if(u)switch(i.$$typeof){case _:e:{for(u=i.key,c=n;null!==c;){if(c.key===u){if(7===c.tag){if(i.type===T){r(e,c.sibling),(n=a(c,i.props.children)).return=e,e=n;break e}}else if(c.elementType===i.type){r(e,c.sibling),(n=a(c,i.props)).ref=ki(e,c,i),n.return=e,e=n;break e}r(e,c);break}t(e,c),c=c.sibling}i.type===T?((n=Xs(i.props.children,e.mode,s,i.key)).return=e,e=n):((s=Gs(i.type,i.key,i.props,null,e.mode,s)).ref=ki(e,n,i),s.return=e,e=s)}return l(e);case k:e:{for(c=i.key;null!==n;){if(n.key===c){if(4===n.tag&&n.stateNode.containerInfo===i.containerInfo&&n.stateNode.implementation===i.implementation){r(e,n.sibling),(n=a(n,i.children||[])).return=e,e=n;break e}r(e,n);break}t(e,n),n=n.sibling}(n=Qs(i,e.mode,s)).return=e,e=n}return l(e)}if("string"===typeof i||"number"===typeof i)return i=""+i,null!==n&&6===n.tag?(r(e,n.sibling),(n=a(n,i)).return=e,e=n):(r(e,n),(n=$s(i,e.mode,s)).return=e,e=n),l(e);if(_i(i))return g(e,n,i,s);if(H(i))return v(e,n,i,s);if(u&&Ti(e,i),"undefined"===typeof i&&!c)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(o(152,G(e.type)||"Component"))}return r(e,n)}}var Si=Ai(!0),Mi=Ai(!1),Oi={},Ci=ca(Oi),Ei=ca(Oi),Li=ca(Oi);function Pi(e){if(e===Oi)throw Error(o(174));return e}function ji(e,t){switch(fa(Li,t),fa(Ei,e),fa(Ci,Oi),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:he(null,"");break;default:t=he(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}ua(Ci),fa(Ci,t)}function zi(){ua(Ci),ua(Ei),ua(Li)}function Di(e){Pi(Li.current);var t=Pi(Ci.current),r=he(t,e.type);t!==r&&(fa(Ei,e),fa(Ci,r))}function Ii(e){Ei.current===e&&(ua(Ci),ua(Ei))}var Ni=ca(0);function Ri(e){for(var t=e;null!==t;){if(13===t.tag){var r=t.memoizedState;if(null!==r&&(null===(r=r.dehydrated)||"$?"===r.data||"$!"===r.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(64&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Fi=null,Bi=null,Ui=!1;function Hi(e,t){var r=qs(5,null,null,0);r.elementType="DELETED",r.type="DELETED",r.stateNode=t,r.return=e,r.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=r,e.lastEffect=r):e.firstEffect=e.lastEffect=r}function Vi(e,t){switch(e.tag){case 5:var r=e.type;return null!==(t=1!==t.nodeType||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);default:return!1}}function qi(e){if(Ui){var t=Bi;if(t){var r=t;if(!Vi(e,t)){if(!(t=Xn(r.nextSibling))||!Vi(e,t))return e.flags=-1025&e.flags|2,Ui=!1,void(Fi=e);Hi(Fi,r)}Fi=e,Bi=Xn(t.firstChild)}else e.flags=-1025&e.flags|2,Ui=!1,Fi=e}}function Wi(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Fi=e}function Yi(e){if(e!==Fi)return!1;if(!Ui)return Wi(e),Ui=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!qn(t,e.memoizedProps))for(t=Bi;t;)Hi(e,t),t=Xn(t.nextSibling);if(Wi(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(o(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var r=e.data;if("/$"===r){if(0===t){Bi=Xn(e.nextSibling);break e}t--}else"$"!==r&&"$!"!==r&&"$?"!==r||t++}e=e.nextSibling}Bi=null}}else Bi=Fi?Xn(e.stateNode.nextSibling):null;return!0}function Gi(){Bi=Fi=null,Ui=!1}var Xi=[];function Zi(){for(var e=0;e<Xi.length;e++)Xi[e]._workInProgressVersionPrimary=null;Xi.length=0}var $i=w.ReactCurrentDispatcher,Qi=w.ReactCurrentBatchConfig,Ki=0,Ji=null,eo=null,to=null,ro=!1,no=!1;function ao(){throw Error(o(321))}function io(e,t){if(null===t)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!un(e[r],t[r]))return!1;return!0}function oo(e,t,r,n,a,i){if(Ki=i,Ji=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,$i.current=null===e||null===e.memoizedState?jo:zo,e=r(n,a),no){i=0;do{if(no=!1,!(25>i))throw Error(o(301));i+=1,to=eo=null,t.updateQueue=null,$i.current=Do,e=r(n,a)}while(no)}if($i.current=Po,t=null!==eo&&null!==eo.next,Ki=0,to=eo=Ji=null,ro=!1,t)throw Error(o(300));return e}function lo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===to?Ji.memoizedState=to=e:to=to.next=e,to}function so(){if(null===eo){var e=Ji.alternate;e=null!==e?e.memoizedState:null}else e=eo.next;var t=null===to?Ji.memoizedState:to.next;if(null!==t)to=t,eo=e;else{if(null===e)throw Error(o(310));e={memoizedState:(eo=e).memoizedState,baseState:eo.baseState,baseQueue:eo.baseQueue,queue:eo.queue,next:null},null===to?Ji.memoizedState=to=e:to=to.next=e}return to}function co(e,t){return"function"===typeof t?t(e):t}function uo(e){var t=so(),r=t.queue;if(null===r)throw Error(o(311));r.lastRenderedReducer=e;var n=eo,a=n.baseQueue,i=r.pending;if(null!==i){if(null!==a){var l=a.next;a.next=i.next,i.next=l}n.baseQueue=a=i,r.pending=null}if(null!==a){a=a.next,n=n.baseState;var s=l=i=null,c=a;do{var u=c.lane;if((Ki&u)===u)null!==s&&(s=s.next={lane:0,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null}),n=c.eagerReducer===e?c.eagerState:e(n,c.action);else{var f={lane:u,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null};null===s?(l=s=f,i=n):s=s.next=f,Ji.lanes|=u,Ul|=u}c=c.next}while(null!==c&&c!==a);null===s?i=n:s.next=l,un(n,t.memoizedState)||(No=!0),t.memoizedState=n,t.baseState=i,t.baseQueue=s,r.lastRenderedState=n}return[t.memoizedState,r.dispatch]}function fo(e){var t=so(),r=t.queue;if(null===r)throw Error(o(311));r.lastRenderedReducer=e;var n=r.dispatch,a=r.pending,i=t.memoizedState;if(null!==a){r.pending=null;var l=a=a.next;do{i=e(i,l.action),l=l.next}while(l!==a);un(i,t.memoizedState)||(No=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),r.lastRenderedState=i}return[i,n]}function po(e,t,r){var n=t._getVersion;n=n(t._source);var a=t._workInProgressVersionPrimary;if(null!==a?e=a===n:(e=e.mutableReadLanes,(e=(Ki&e)===e)&&(t._workInProgressVersionPrimary=n,Xi.push(t))),e)return r(t._source);throw Xi.push(t),Error(o(350))}function ho(e,t,r,n){var a=jl;if(null===a)throw Error(o(349));var i=t._getVersion,l=i(t._source),s=$i.current,c=s.useState((function(){return po(a,t,r)})),u=c[1],f=c[0];c=to;var d=e.memoizedState,p=d.refs,h=p.getSnapshot,g=d.source;d=d.subscribe;var v=Ji;return e.memoizedState={refs:p,source:t,subscribe:n},s.useEffect((function(){p.getSnapshot=r,p.setSnapshot=u;var e=i(t._source);if(!un(l,e)){e=r(t._source),un(f,e)||(u(e),e=ps(v),a.mutableReadLanes|=e&a.pendingLanes),e=a.mutableReadLanes,a.entangledLanes|=e;for(var n=a.entanglements,o=e;0<o;){var s=31-qt(o),c=1<<s;n[s]|=e,o&=~c}}}),[r,t,n]),s.useEffect((function(){return n(t._source,(function(){var e=p.getSnapshot,r=p.setSnapshot;try{r(e(t._source));var n=ps(v);a.mutableReadLanes|=n&a.pendingLanes}catch(i){r((function(){throw i}))}}))}),[t,n]),un(h,r)&&un(g,t)&&un(d,n)||((e={pending:null,dispatch:null,lastRenderedReducer:co,lastRenderedState:f}).dispatch=u=Lo.bind(null,Ji,e),c.queue=e,c.baseQueue=null,f=po(a,t,r),c.memoizedState=c.baseState=f),f}function go(e,t,r){return ho(so(),e,t,r)}function vo(e){var t=lo();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:co,lastRenderedState:e}).dispatch=Lo.bind(null,Ji,e),[t.memoizedState,e]}function yo(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},null===(t=Ji.updateQueue)?(t={lastEffect:null},Ji.updateQueue=t,t.lastEffect=e.next=e):null===(r=t.lastEffect)?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e),e}function mo(e){return e={current:e},lo().memoizedState=e}function bo(){return so().memoizedState}function xo(e,t,r,n){var a=lo();Ji.flags|=e,a.memoizedState=yo(1|t,r,void 0,void 0===n?null:n)}function wo(e,t,r,n){var a=so();n=void 0===n?null:n;var i=void 0;if(null!==eo){var o=eo.memoizedState;if(i=o.destroy,null!==n&&io(n,o.deps))return void yo(t,r,i,n)}Ji.flags|=e,a.memoizedState=yo(1|t,r,i,n)}function _o(e,t){return xo(516,4,e,t)}function ko(e,t){return wo(516,4,e,t)}function To(e,t){return wo(4,2,e,t)}function Ao(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function So(e,t,r){return r=null!==r&&void 0!==r?r.concat([e]):null,wo(4,2,Ao.bind(null,t,e),r)}function Mo(){}function Oo(e,t){var r=so();t=void 0===t?null:t;var n=r.memoizedState;return null!==n&&null!==t&&io(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function Co(e,t){var r=so();t=void 0===t?null:t;var n=r.memoizedState;return null!==n&&null!==t&&io(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function Eo(e,t){var r=qa();Ya(98>r?98:r,(function(){e(!0)})),Ya(97<r?97:r,(function(){var r=Qi.transition;Qi.transition=1;try{e(!1),t()}finally{Qi.transition=r}}))}function Lo(e,t,r){var n=ds(),a=ps(e),i={lane:a,action:r,eagerReducer:null,eagerState:null,next:null},o=t.pending;if(null===o?i.next=i:(i.next=o.next,o.next=i),t.pending=i,o=e.alternate,e===Ji||null!==o&&o===Ji)no=ro=!0;else{if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var l=t.lastRenderedState,s=o(l,r);if(i.eagerReducer=o,i.eagerState=s,un(s,l))return}catch(c){}hs(e,a,n)}}var Po={readContext:oi,useCallback:ao,useContext:ao,useEffect:ao,useImperativeHandle:ao,useLayoutEffect:ao,useMemo:ao,useReducer:ao,useRef:ao,useState:ao,useDebugValue:ao,useDeferredValue:ao,useTransition:ao,useMutableSource:ao,useOpaqueIdentifier:ao,unstable_isNewReconciler:!1},jo={readContext:oi,useCallback:function(e,t){return lo().memoizedState=[e,void 0===t?null:t],e},useContext:oi,useEffect:_o,useImperativeHandle:function(e,t,r){return r=null!==r&&void 0!==r?r.concat([e]):null,xo(4,2,Ao.bind(null,t,e),r)},useLayoutEffect:function(e,t){return xo(4,2,e,t)},useMemo:function(e,t){var r=lo();return t=void 0===t?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=lo();return t=void 0!==r?r(t):t,n.memoizedState=n.baseState=t,e=(e=n.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=Lo.bind(null,Ji,e),[n.memoizedState,e]},useRef:mo,useState:vo,useDebugValue:Mo,useDeferredValue:function(e){var t=vo(e),r=t[0],n=t[1];return _o((function(){var t=Qi.transition;Qi.transition=1;try{n(e)}finally{Qi.transition=t}}),[e]),r},useTransition:function(){var e=vo(!1),t=e[0];return mo(e=Eo.bind(null,e[1])),[e,t]},useMutableSource:function(e,t,r){var n=lo();return n.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:r},ho(n,e,t,r)},useOpaqueIdentifier:function(){if(Ui){var e=!1,t=function(e){return{$$typeof:D,toString:e,valueOf:e}}((function(){throw e||(e=!0,r("r:"+($n++).toString(36))),Error(o(355))})),r=vo(t)[1];return 0===(2&Ji.mode)&&(Ji.flags|=516,yo(5,(function(){r("r:"+($n++).toString(36))}),void 0,null)),t}return vo(t="r:"+($n++).toString(36)),t},unstable_isNewReconciler:!1},zo={readContext:oi,useCallback:Oo,useContext:oi,useEffect:ko,useImperativeHandle:So,useLayoutEffect:To,useMemo:Co,useReducer:uo,useRef:bo,useState:function(){return uo(co)},useDebugValue:Mo,useDeferredValue:function(e){var t=uo(co),r=t[0],n=t[1];return ko((function(){var t=Qi.transition;Qi.transition=1;try{n(e)}finally{Qi.transition=t}}),[e]),r},useTransition:function(){var e=uo(co)[0];return[bo().current,e]},useMutableSource:go,useOpaqueIdentifier:function(){return uo(co)[0]},unstable_isNewReconciler:!1},Do={readContext:oi,useCallback:Oo,useContext:oi,useEffect:ko,useImperativeHandle:So,useLayoutEffect:To,useMemo:Co,useReducer:fo,useRef:bo,useState:function(){return fo(co)},useDebugValue:Mo,useDeferredValue:function(e){var t=fo(co),r=t[0],n=t[1];return ko((function(){var t=Qi.transition;Qi.transition=1;try{n(e)}finally{Qi.transition=t}}),[e]),r},useTransition:function(){var e=fo(co)[0];return[bo().current,e]},useMutableSource:go,useOpaqueIdentifier:function(){return fo(co)[0]},unstable_isNewReconciler:!1},Io=w.ReactCurrentOwner,No=!1;function Ro(e,t,r,n){t.child=null===e?Mi(t,null,r,n):Si(t,e.child,r,n)}function Fo(e,t,r,n,a){r=r.render;var i=t.ref;return ii(t,a),n=oo(e,t,r,n,i,a),null===e||No?(t.flags|=1,Ro(e,t,n,a),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~a,il(e,t,a))}function Bo(e,t,r,n,a,i){if(null===e){var o=r.type;return"function"!==typeof o||Ws(o)||void 0!==o.defaultProps||null!==r.compare||void 0!==r.defaultProps?((e=Gs(r.type,null,n,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,Uo(e,t,o,n,a,i))}return o=e.child,0===(a&i)&&(a=o.memoizedProps,(r=null!==(r=r.compare)?r:dn)(a,n)&&e.ref===t.ref)?il(e,t,i):(t.flags|=1,(e=Ys(o,n)).ref=t.ref,e.return=t,t.child=e)}function Uo(e,t,r,n,a,i){if(null!==e&&dn(e.memoizedProps,n)&&e.ref===t.ref){if(No=!1,0===(i&a))return t.lanes=e.lanes,il(e,t,i);0!==(16384&e.flags)&&(No=!0)}return qo(e,t,r,n,i)}function Ho(e,t,r){var n=t.pendingProps,a=n.children,i=null!==e?e.memoizedState:null;if("hidden"===n.mode||"unstable-defer-without-hiding"===n.mode)if(0===(4&t.mode))t.memoizedState={baseLanes:0},_s(t,r);else{if(0===(1073741824&r))return e=null!==i?i.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},_s(t,e),null;t.memoizedState={baseLanes:0},_s(t,null!==i?i.baseLanes:r)}else null!==i?(n=i.baseLanes|r,t.memoizedState=null):n=r,_s(t,n);return Ro(e,t,a,r),t.child}function Vo(e,t){var r=t.ref;(null===e&&null!==r||null!==e&&e.ref!==r)&&(t.flags|=128)}function qo(e,t,r,n,a){var i=ya(r)?ga:pa.current;return i=va(t,i),ii(t,a),r=oo(e,t,r,n,i,a),null===e||No?(t.flags|=1,Ro(e,t,r,a),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~a,il(e,t,a))}function Wo(e,t,r,n,a){if(ya(r)){var i=!0;wa(t)}else i=!1;if(ii(t,a),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),bi(t,r,n),wi(t,r,n,a),n=!0;else if(null===e){var o=t.stateNode,l=t.memoizedProps;o.props=l;var s=o.context,c=r.contextType;"object"===typeof c&&null!==c?c=oi(c):c=va(t,c=ya(r)?ga:pa.current);var u=r.getDerivedStateFromProps,f="function"===typeof u||"function"===typeof o.getSnapshotBeforeUpdate;f||"function"!==typeof o.UNSAFE_componentWillReceiveProps&&"function"!==typeof o.componentWillReceiveProps||(l!==n||s!==c)&&xi(t,o,n,c),li=!1;var d=t.memoizedState;o.state=d,pi(t,n,o,a),s=t.memoizedState,l!==n||d!==s||ha.current||li?("function"===typeof u&&(vi(t,r,u,n),s=t.memoizedState),(l=li||mi(t,r,l,n,d,s,c))?(f||"function"!==typeof o.UNSAFE_componentWillMount&&"function"!==typeof o.componentWillMount||("function"===typeof o.componentWillMount&&o.componentWillMount(),"function"===typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount()),"function"===typeof o.componentDidMount&&(t.flags|=4)):("function"===typeof o.componentDidMount&&(t.flags|=4),t.memoizedProps=n,t.memoizedState=s),o.props=n,o.state=s,o.context=c,n=l):("function"===typeof o.componentDidMount&&(t.flags|=4),n=!1)}else{o=t.stateNode,ci(e,t),l=t.memoizedProps,c=t.type===t.elementType?l:Qa(t.type,l),o.props=c,f=t.pendingProps,d=o.context,"object"===typeof(s=r.contextType)&&null!==s?s=oi(s):s=va(t,s=ya(r)?ga:pa.current);var p=r.getDerivedStateFromProps;(u="function"===typeof p||"function"===typeof o.getSnapshotBeforeUpdate)||"function"!==typeof o.UNSAFE_componentWillReceiveProps&&"function"!==typeof o.componentWillReceiveProps||(l!==f||d!==s)&&xi(t,o,n,s),li=!1,d=t.memoizedState,o.state=d,pi(t,n,o,a);var h=t.memoizedState;l!==f||d!==h||ha.current||li?("function"===typeof p&&(vi(t,r,p,n),h=t.memoizedState),(c=li||mi(t,r,c,n,d,h,s))?(u||"function"!==typeof o.UNSAFE_componentWillUpdate&&"function"!==typeof o.componentWillUpdate||("function"===typeof o.componentWillUpdate&&o.componentWillUpdate(n,h,s),"function"===typeof o.UNSAFE_componentWillUpdate&&o.UNSAFE_componentWillUpdate(n,h,s)),"function"===typeof o.componentDidUpdate&&(t.flags|=4),"function"===typeof o.getSnapshotBeforeUpdate&&(t.flags|=256)):("function"!==typeof o.componentDidUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!==typeof o.getSnapshotBeforeUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=256),t.memoizedProps=n,t.memoizedState=h),o.props=n,o.state=h,o.context=s,n=c):("function"!==typeof o.componentDidUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!==typeof o.getSnapshotBeforeUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=256),n=!1)}return Yo(e,t,r,n,i,a)}function Yo(e,t,r,n,a,i){Vo(e,t);var o=0!==(64&t.flags);if(!n&&!o)return a&&_a(t,r,!1),il(e,t,i);n=t.stateNode,Io.current=t;var l=o&&"function"!==typeof r.getDerivedStateFromError?null:n.render();return t.flags|=1,null!==e&&o?(t.child=Si(t,e.child,null,i),t.child=Si(t,null,l,i)):Ro(e,t,l,i),t.memoizedState=n.state,a&&_a(t,r,!0),t.child}function Go(e){var t=e.stateNode;t.pendingContext?ba(0,t.pendingContext,t.pendingContext!==t.context):t.context&&ba(0,t.context,!1),ji(e,t.containerInfo)}var Xo,Zo,$o,Qo={dehydrated:null,retryLane:0};function Ko(e,t,r){var n,a=t.pendingProps,i=Ni.current,o=!1;return(n=0!==(64&t.flags))||(n=(null===e||null!==e.memoizedState)&&0!==(2&i)),n?(o=!0,t.flags&=-65):null!==e&&null===e.memoizedState||void 0===a.fallback||!0===a.unstable_avoidThisFallback||(i|=1),fa(Ni,1&i),null===e?(void 0!==a.fallback&&qi(t),e=a.children,i=a.fallback,o?(e=Jo(t,e,i,r),t.child.memoizedState={baseLanes:r},t.memoizedState=Qo,e):"number"===typeof a.unstable_expectedLoadTime?(e=Jo(t,e,i,r),t.child.memoizedState={baseLanes:r},t.memoizedState=Qo,t.lanes=33554432,e):((r=Zs({mode:"visible",children:e},t.mode,r,null)).return=t,t.child=r)):(e.memoizedState,o?(a=tl(e,t,a.children,a.fallback,r),o=t.child,i=e.child.memoizedState,o.memoizedState=null===i?{baseLanes:r}:{baseLanes:i.baseLanes|r},o.childLanes=e.childLanes&~r,t.memoizedState=Qo,a):(r=el(e,t,a.children,r),t.memoizedState=null,r))}function Jo(e,t,r,n){var a=e.mode,i=e.child;return t={mode:"hidden",children:t},0===(2&a)&&null!==i?(i.childLanes=0,i.pendingProps=t):i=Zs(t,a,0,null),r=Xs(r,a,n,null),i.return=e,r.return=e,i.sibling=r,e.child=i,r}function el(e,t,r,n){var a=e.child;return e=a.sibling,r=Ys(a,{mode:"visible",children:r}),0===(2&t.mode)&&(r.lanes=n),r.return=t,r.sibling=null,null!==e&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=r}function tl(e,t,r,n,a){var i=t.mode,o=e.child;e=o.sibling;var l={mode:"hidden",children:r};return 0===(2&i)&&t.child!==o?((r=t.child).childLanes=0,r.pendingProps=l,null!==(o=r.lastEffect)?(t.firstEffect=r.firstEffect,t.lastEffect=o,o.nextEffect=null):t.firstEffect=t.lastEffect=null):r=Ys(o,l),null!==e?n=Ys(e,n):(n=Xs(n,i,a,null)).flags|=2,n.return=t,r.return=t,r.sibling=n,t.child=r,n}function rl(e,t){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),ai(e.return,t)}function nl(e,t,r,n,a,i){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:a,lastEffect:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=n,o.tail=r,o.tailMode=a,o.lastEffect=i)}function al(e,t,r){var n=t.pendingProps,a=n.revealOrder,i=n.tail;if(Ro(e,t,n.children,r),0!==(2&(n=Ni.current)))n=1&n|2,t.flags|=64;else{if(null!==e&&0!==(64&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&rl(e,r);else if(19===e.tag)rl(e,r);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if(fa(Ni,n),0===(2&t.mode))t.memoizedState=null;else switch(a){case"forwards":for(r=t.child,a=null;null!==r;)null!==(e=r.alternate)&&null===Ri(e)&&(a=r),r=r.sibling;null===(r=a)?(a=t.child,t.child=null):(a=r.sibling,r.sibling=null),nl(t,!1,a,r,i,t.lastEffect);break;case"backwards":for(r=null,a=t.child,t.child=null;null!==a;){if(null!==(e=a.alternate)&&null===Ri(e)){t.child=a;break}e=a.sibling,a.sibling=r,r=a,a=e}nl(t,!0,r,null,i,t.lastEffect);break;case"together":nl(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function il(e,t,r){if(null!==e&&(t.dependencies=e.dependencies),Ul|=t.lanes,0!==(r&t.childLanes)){if(null!==e&&t.child!==e.child)throw Error(o(153));if(null!==t.child){for(r=Ys(e=t.child,e.pendingProps),t.child=r,r.return=t;null!==e.sibling;)e=e.sibling,(r=r.sibling=Ys(e,e.pendingProps)).return=t;r.sibling=null}return t.child}return null}function ol(e,t){if(!Ui)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;null!==t;)null!==t.alternate&&(r=t),t=t.sibling;null===r?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;null!==r;)null!==r.alternate&&(n=r),r=r.sibling;null===n?t||null===e.tail?e.tail=null:e.tail.sibling=null:n.sibling=null}}function ll(e,t,r){var n=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:case 17:return ya(t.type)&&ma(),null;case 3:return zi(),ua(ha),ua(pa),Zi(),(n=t.stateNode).pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||(Yi(t)?t.flags|=4:n.hydrate||(t.flags|=256)),null;case 5:Ii(t);var i=Pi(Li.current);if(r=t.type,null!==e&&null!=t.stateNode)Zo(e,t,r,n),e.ref!==t.ref&&(t.flags|=128);else{if(!n){if(null===t.stateNode)throw Error(o(166));return null}if(e=Pi(Ci.current),Yi(t)){n=t.stateNode,r=t.type;var l=t.memoizedProps;switch(n[Kn]=t,n[Jn]=l,r){case"dialog":En("cancel",n),En("close",n);break;case"iframe":case"object":case"embed":En("load",n);break;case"video":case"audio":for(e=0;e<Sn.length;e++)En(Sn[e],n);break;case"source":En("error",n);break;case"img":case"image":case"link":En("error",n),En("load",n);break;case"details":En("toggle",n);break;case"input":ee(n,l),En("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!l.multiple},En("invalid",n);break;case"textarea":se(n,l),En("invalid",n)}for(var c in Te(r,l),e=null,l)l.hasOwnProperty(c)&&(i=l[c],"children"===c?"string"===typeof i?n.textContent!==i&&(e=["children",i]):"number"===typeof i&&n.textContent!==""+i&&(e=["children",""+i]):s.hasOwnProperty(c)&&null!=i&&"onScroll"===c&&En("scroll",n));switch(r){case"input":$(n),ne(n,l,!0);break;case"textarea":$(n),ue(n);break;case"select":case"option":break;default:"function"===typeof l.onClick&&(n.onclick=Bn)}n=e,t.updateQueue=n,null!==n&&(t.flags|=4)}else{switch(c=9===i.nodeType?i:i.ownerDocument,e===fe&&(e=pe(r)),e===fe?"script"===r?((e=c.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof n.is?e=c.createElement(r,{is:n.is}):(e=c.createElement(r),"select"===r&&(c=e,n.multiple?c.multiple=!0:n.size&&(c.size=n.size))):e=c.createElementNS(e,r),e[Kn]=t,e[Jn]=n,Xo(e,t),t.stateNode=e,c=Ae(r,n),r){case"dialog":En("cancel",e),En("close",e),i=n;break;case"iframe":case"object":case"embed":En("load",e),i=n;break;case"video":case"audio":for(i=0;i<Sn.length;i++)En(Sn[i],e);i=n;break;case"source":En("error",e),i=n;break;case"img":case"image":case"link":En("error",e),En("load",e),i=n;break;case"details":En("toggle",e),i=n;break;case"input":ee(e,n),i=J(e,n),En("invalid",e);break;case"option":i=ie(e,n);break;case"select":e._wrapperState={wasMultiple:!!n.multiple},i=a({},n,{value:void 0}),En("invalid",e);break;case"textarea":se(e,n),i=le(e,n),En("invalid",e);break;default:i=n}Te(r,i);var u=i;for(l in u)if(u.hasOwnProperty(l)){var f=u[l];"style"===l?_e(e,f):"dangerouslySetInnerHTML"===l?null!=(f=f?f.__html:void 0)&&ye(e,f):"children"===l?"string"===typeof f?("textarea"!==r||""!==f)&&me(e,f):"number"===typeof f&&me(e,""+f):"suppressContentEditableWarning"!==l&&"suppressHydrationWarning"!==l&&"autoFocus"!==l&&(s.hasOwnProperty(l)?null!=f&&"onScroll"===l&&En("scroll",e):null!=f&&x(e,l,f,c))}switch(r){case"input":$(e),ne(e,n,!1);break;case"textarea":$(e),ue(e);break;case"option":null!=n.value&&e.setAttribute("value",""+X(n.value));break;case"select":e.multiple=!!n.multiple,null!=(l=n.value)?oe(e,!!n.multiple,l,!1):null!=n.defaultValue&&oe(e,!!n.multiple,n.defaultValue,!0);break;default:"function"===typeof i.onClick&&(e.onclick=Bn)}Vn(r,n)&&(t.flags|=4)}null!==t.ref&&(t.flags|=128)}return null;case 6:if(e&&null!=t.stateNode)$o(0,t,e.memoizedProps,n);else{if("string"!==typeof n&&null===t.stateNode)throw Error(o(166));r=Pi(Li.current),Pi(Ci.current),Yi(t)?(n=t.stateNode,r=t.memoizedProps,n[Kn]=t,n.nodeValue!==r&&(t.flags|=4)):((n=(9===r.nodeType?r:r.ownerDocument).createTextNode(n))[Kn]=t,t.stateNode=n)}return null;case 13:return ua(Ni),n=t.memoizedState,0!==(64&t.flags)?(t.lanes=r,t):(n=null!==n,r=!1,null===e?void 0!==t.memoizedProps.fallback&&Yi(t):r=null!==e.memoizedState,n&&!r&&0!==(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!==(1&Ni.current)?0===Rl&&(Rl=3):(0!==Rl&&3!==Rl||(Rl=4),null===jl||0===(134217727&Ul)&&0===(134217727&Hl)||ms(jl,Dl))),(n||r)&&(t.flags|=4),null);case 4:return zi(),null===e&&Pn(t.stateNode.containerInfo),null;case 10:return ni(t),null;case 19:if(ua(Ni),null===(n=t.memoizedState))return null;if(l=0!==(64&t.flags),null===(c=n.rendering))if(l)ol(n,!1);else{if(0!==Rl||null!==e&&0!==(64&e.flags))for(e=t.child;null!==e;){if(null!==(c=Ri(e))){for(t.flags|=64,ol(n,!1),null!==(l=c.updateQueue)&&(t.updateQueue=l,t.flags|=4),null===n.lastEffect&&(t.firstEffect=null),t.lastEffect=n.lastEffect,n=r,r=t.child;null!==r;)e=n,(l=r).flags&=2,l.nextEffect=null,l.firstEffect=null,l.lastEffect=null,null===(c=l.alternate)?(l.childLanes=0,l.lanes=e,l.child=null,l.memoizedProps=null,l.memoizedState=null,l.updateQueue=null,l.dependencies=null,l.stateNode=null):(l.childLanes=c.childLanes,l.lanes=c.lanes,l.child=c.child,l.memoizedProps=c.memoizedProps,l.memoizedState=c.memoizedState,l.updateQueue=c.updateQueue,l.type=c.type,e=c.dependencies,l.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return fa(Ni,1&Ni.current|2),t.child}e=e.sibling}null!==n.tail&&Va()>Yl&&(t.flags|=64,l=!0,ol(n,!1),t.lanes=33554432)}else{if(!l)if(null!==(e=Ri(c))){if(t.flags|=64,l=!0,null!==(r=e.updateQueue)&&(t.updateQueue=r,t.flags|=4),ol(n,!0),null===n.tail&&"hidden"===n.tailMode&&!c.alternate&&!Ui)return null!==(t=t.lastEffect=n.lastEffect)&&(t.nextEffect=null),null}else 2*Va()-n.renderingStartTime>Yl&&1073741824!==r&&(t.flags|=64,l=!0,ol(n,!1),t.lanes=33554432);n.isBackwards?(c.sibling=t.child,t.child=c):(null!==(r=n.last)?r.sibling=c:t.child=c,n.last=c)}return null!==n.tail?(r=n.tail,n.rendering=r,n.tail=r.sibling,n.lastEffect=t.lastEffect,n.renderingStartTime=Va(),r.sibling=null,t=Ni.current,fa(Ni,l?1&t|2:1&t),r):null;case 23:case 24:return ks(),null!==e&&null!==e.memoizedState!==(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==n.mode&&(t.flags|=4),null}throw Error(o(156,t.tag))}function sl(e){switch(e.tag){case 1:ya(e.type)&&ma();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(zi(),ua(ha),ua(pa),Zi(),0!==(64&(t=e.flags)))throw Error(o(285));return e.flags=-4097&t|64,e;case 5:return Ii(e),null;case 13:return ua(Ni),4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return ua(Ni),null;case 4:return zi(),null;case 10:return ni(e),null;case 23:case 24:return ks(),null;default:return null}}function cl(e,t){try{var r="",n=t;do{r+=Y(n),n=n.return}while(n);var a=r}catch(i){a="\nError generating stack: "+i.message+"\n"+i.stack}return{value:e,source:t,stack:a}}function ul(e,t){try{console.error(t.value)}catch(r){setTimeout((function(){throw r}))}}Xo=function(e,t){for(var r=t.child;null!==r;){if(5===r.tag||6===r.tag)e.appendChild(r.stateNode);else if(4!==r.tag&&null!==r.child){r.child.return=r,r=r.child;continue}if(r===t)break;for(;null===r.sibling;){if(null===r.return||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}},Zo=function(e,t,r,n){var i=e.memoizedProps;if(i!==n){e=t.stateNode,Pi(Ci.current);var o,l=null;switch(r){case"input":i=J(e,i),n=J(e,n),l=[];break;case"option":i=ie(e,i),n=ie(e,n),l=[];break;case"select":i=a({},i,{value:void 0}),n=a({},n,{value:void 0}),l=[];break;case"textarea":i=le(e,i),n=le(e,n),l=[];break;default:"function"!==typeof i.onClick&&"function"===typeof n.onClick&&(e.onclick=Bn)}for(f in Te(r,n),r=null,i)if(!n.hasOwnProperty(f)&&i.hasOwnProperty(f)&&null!=i[f])if("style"===f){var c=i[f];for(o in c)c.hasOwnProperty(o)&&(r||(r={}),r[o]="")}else"dangerouslySetInnerHTML"!==f&&"children"!==f&&"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&"autoFocus"!==f&&(s.hasOwnProperty(f)?l||(l=[]):(l=l||[]).push(f,null));for(f in n){var u=n[f];if(c=null!=i?i[f]:void 0,n.hasOwnProperty(f)&&u!==c&&(null!=u||null!=c))if("style"===f)if(c){for(o in c)!c.hasOwnProperty(o)||u&&u.hasOwnProperty(o)||(r||(r={}),r[o]="");for(o in u)u.hasOwnProperty(o)&&c[o]!==u[o]&&(r||(r={}),r[o]=u[o])}else r||(l||(l=[]),l.push(f,r)),r=u;else"dangerouslySetInnerHTML"===f?(u=u?u.__html:void 0,c=c?c.__html:void 0,null!=u&&c!==u&&(l=l||[]).push(f,u)):"children"===f?"string"!==typeof u&&"number"!==typeof u||(l=l||[]).push(f,""+u):"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&(s.hasOwnProperty(f)?(null!=u&&"onScroll"===f&&En("scroll",e),l||c===u||(l=[])):"object"===typeof u&&null!==u&&u.$$typeof===D?u.toString():(l=l||[]).push(f,u))}r&&(l=l||[]).push("style",r);var f=l;(t.updateQueue=f)&&(t.flags|=4)}},$o=function(e,t,r,n){r!==n&&(t.flags|=4)};var fl="function"===typeof WeakMap?WeakMap:Map;function dl(e,t,r){(r=ui(-1,r)).tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){$l||($l=!0,Ql=n),ul(0,t)},r}function pl(e,t,r){(r=ui(-1,r)).tag=3;var n=e.type.getDerivedStateFromError;if("function"===typeof n){var a=t.value;r.payload=function(){return ul(0,t),n(a)}}var i=e.stateNode;return null!==i&&"function"===typeof i.componentDidCatch&&(r.callback=function(){"function"!==typeof n&&(null===Kl?Kl=new Set([this]):Kl.add(this),ul(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),r}var hl="function"===typeof WeakSet?WeakSet:Set;function gl(e){var t=e.ref;if(null!==t)if("function"===typeof t)try{t(null)}catch(r){Bs(e,r)}else t.current=null}function vl(e,t){switch(t.tag){case 0:case 11:case 15:case 22:case 5:case 6:case 4:case 17:return;case 1:if(256&t.flags&&null!==e){var r=e.memoizedProps,n=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?r:Qa(t.type,r),n),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(256&t.flags&&Gn(t.stateNode.containerInfo))}throw Error(o(163))}function yl(e,t,r){switch(r.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=r.updateQueue)?t.lastEffect:null)){e=t=t.next;do{if(3===(3&e.tag)){var n=e.create;e.destroy=n()}e=e.next}while(e!==t)}if(null!==(t=null!==(t=r.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var a=e;n=a.next,0!==(4&(a=a.tag))&&0!==(1&a)&&(Ns(r,e),Is(r,e)),e=n}while(e!==t)}return;case 1:return e=r.stateNode,4&r.flags&&(null===t?e.componentDidMount():(n=r.elementType===r.type?t.memoizedProps:Qa(r.type,t.memoizedProps),e.componentDidUpdate(n,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=r.updateQueue)&&hi(r,t,e));case 3:if(null!==(t=r.updateQueue)){if(e=null,null!==r.child)switch(r.child.tag){case 5:case 1:e=r.child.stateNode}hi(r,t,e)}return;case 5:return e=r.stateNode,void(null===t&&4&r.flags&&Vn(r.type,r.memoizedProps)&&e.focus());case 6:case 4:case 12:case 19:case 17:case 20:case 21:case 23:case 24:return;case 13:return void(null===r.memoizedState&&(r=r.alternate,null!==r&&(r=r.memoizedState,null!==r&&(r=r.dehydrated,null!==r&&_t(r)))))}throw Error(o(163))}function ml(e,t){for(var r=e;;){if(5===r.tag){var n=r.stateNode;if(t)"function"===typeof(n=n.style).setProperty?n.setProperty("display","none","important"):n.display="none";else{n=r.stateNode;var a=r.memoizedProps.style;a=void 0!==a&&null!==a&&a.hasOwnProperty("display")?a.display:null,n.style.display=we("display",a)}}else if(6===r.tag)r.stateNode.nodeValue=t?"":r.memoizedProps;else if((23!==r.tag&&24!==r.tag||null===r.memoizedState||r===e)&&null!==r.child){r.child.return=r,r=r.child;continue}if(r===e)break;for(;null===r.sibling;){if(null===r.return||r.return===e)return;r=r.return}r.sibling.return=r.return,r=r.sibling}}function bl(e,t){if(Ta&&"function"===typeof Ta.onCommitFiberUnmount)try{Ta.onCommitFiberUnmount(ka,t)}catch(i){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var r=e=e.next;do{var n=r,a=n.destroy;if(n=n.tag,void 0!==a)if(0!==(4&n))Ns(t,r);else{n=t;try{a()}catch(i){Bs(n,i)}}r=r.next}while(r!==e)}break;case 1:if(gl(t),"function"===typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(i){Bs(t,i)}break;case 5:gl(t);break;case 4:Al(e,t)}}function xl(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function wl(e){return 5===e.tag||3===e.tag||4===e.tag}function _l(e){e:{for(var t=e.return;null!==t;){if(wl(t))break e;t=t.return}throw Error(o(160))}var r=t;switch(t=r.stateNode,r.tag){case 5:var n=!1;break;case 3:case 4:t=t.containerInfo,n=!0;break;default:throw Error(o(161))}16&r.flags&&(me(t,""),r.flags&=-17);e:t:for(r=e;;){for(;null===r.sibling;){if(null===r.return||wl(r.return)){r=null;break e}r=r.return}for(r.sibling.return=r.return,r=r.sibling;5!==r.tag&&6!==r.tag&&18!==r.tag;){if(2&r.flags)continue t;if(null===r.child||4===r.tag)continue t;r.child.return=r,r=r.child}if(!(2&r.flags)){r=r.stateNode;break e}}n?kl(e,r,t):Tl(e,r,t)}function kl(e,t,r){var n=e.tag,a=5===n||6===n;if(a)e=a?e.stateNode:e.stateNode.instance,t?8===r.nodeType?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(8===r.nodeType?(t=r.parentNode).insertBefore(e,r):(t=r).appendChild(e),null!==(r=r._reactRootContainer)&&void 0!==r||null!==t.onclick||(t.onclick=Bn));else if(4!==n&&null!==(e=e.child))for(kl(e,t,r),e=e.sibling;null!==e;)kl(e,t,r),e=e.sibling}function Tl(e,t,r){var n=e.tag,a=5===n||6===n;if(a)e=a?e.stateNode:e.stateNode.instance,t?r.insertBefore(e,t):r.appendChild(e);else if(4!==n&&null!==(e=e.child))for(Tl(e,t,r),e=e.sibling;null!==e;)Tl(e,t,r),e=e.sibling}function Al(e,t){for(var r,n,a=t,i=!1;;){if(!i){i=a.return;e:for(;;){if(null===i)throw Error(o(160));switch(r=i.stateNode,i.tag){case 5:n=!1;break e;case 3:case 4:r=r.containerInfo,n=!0;break e}i=i.return}i=!0}if(5===a.tag||6===a.tag){e:for(var l=e,s=a,c=s;;)if(bl(l,c),null!==c.child&&4!==c.tag)c.child.return=c,c=c.child;else{if(c===s)break e;for(;null===c.sibling;){if(null===c.return||c.return===s)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}n?(l=r,s=a.stateNode,8===l.nodeType?l.parentNode.removeChild(s):l.removeChild(s)):r.removeChild(a.stateNode)}else if(4===a.tag){if(null!==a.child){r=a.stateNode.containerInfo,n=!0,a.child.return=a,a=a.child;continue}}else if(bl(e,a),null!==a.child){a.child.return=a,a=a.child;continue}if(a===t)break;for(;null===a.sibling;){if(null===a.return||a.return===t)return;4===(a=a.return).tag&&(i=!1)}a.sibling.return=a.return,a=a.sibling}}function Sl(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var n=r=r.next;do{3===(3&n.tag)&&(e=n.destroy,n.destroy=void 0,void 0!==e&&e()),n=n.next}while(n!==r)}return;case 1:case 12:case 17:return;case 5:if(null!=(r=t.stateNode)){n=t.memoizedProps;var a=null!==e?e.memoizedProps:n;e=t.type;var i=t.updateQueue;if(t.updateQueue=null,null!==i){for(r[Jn]=n,"input"===e&&"radio"===n.type&&null!=n.name&&te(r,n),Ae(e,a),t=Ae(e,n),a=0;a<i.length;a+=2){var l=i[a],s=i[a+1];"style"===l?_e(r,s):"dangerouslySetInnerHTML"===l?ye(r,s):"children"===l?me(r,s):x(r,l,s,t)}switch(e){case"input":re(r,n);break;case"textarea":ce(r,n);break;case"select":e=r._wrapperState.wasMultiple,r._wrapperState.wasMultiple=!!n.multiple,null!=(i=n.value)?oe(r,!!n.multiple,i,!1):e!==!!n.multiple&&(null!=n.defaultValue?oe(r,!!n.multiple,n.defaultValue,!0):oe(r,!!n.multiple,n.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(o(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((r=t.stateNode).hydrate&&(r.hydrate=!1,_t(r.containerInfo)));case 13:return null!==t.memoizedState&&(Wl=Va(),ml(t.child,!0)),void Ml(t);case 19:return void Ml(t);case 23:case 24:return void ml(t,null!==t.memoizedState)}throw Error(o(163))}function Ml(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var r=e.stateNode;null===r&&(r=e.stateNode=new hl),t.forEach((function(t){var n=Hs.bind(null,e,t);r.has(t)||(r.add(t),t.then(n,n))}))}}function Ol(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&(null!==(t=t.memoizedState)&&null===t.dehydrated)}var Cl=Math.ceil,El=w.ReactCurrentDispatcher,Ll=w.ReactCurrentOwner,Pl=0,jl=null,zl=null,Dl=0,Il=0,Nl=ca(0),Rl=0,Fl=null,Bl=0,Ul=0,Hl=0,Vl=0,ql=null,Wl=0,Yl=1/0;function Gl(){Yl=Va()+500}var Xl,Zl=null,$l=!1,Ql=null,Kl=null,Jl=!1,es=null,ts=90,rs=[],ns=[],as=null,is=0,os=null,ls=-1,ss=0,cs=0,us=null,fs=!1;function ds(){return 0!==(48&Pl)?Va():-1!==ls?ls:ls=Va()}function ps(e){if(0===(2&(e=e.mode)))return 1;if(0===(4&e))return 99===qa()?1:2;if(0===ss&&(ss=Bl),0!==$a.transition){0!==cs&&(cs=null!==ql?ql.pendingLanes:0),e=ss;var t=4186112&~cs;return 0===(t&=-t)&&(0===(t=(e=4186112&~e)&-e)&&(t=8192)),t}return e=qa(),0!==(4&Pl)&&98===e?e=Bt(12,ss):e=Bt(e=function(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}(e),ss),e}function hs(e,t,r){if(50<is)throw is=0,os=null,Error(o(185));if(null===(e=gs(e,t)))return null;Vt(e,t,r),e===jl&&(Hl|=t,4===Rl&&ms(e,Dl));var n=qa();1===t?0!==(8&Pl)&&0===(48&Pl)?bs(e):(vs(e,r),0===Pl&&(Gl(),Xa())):(0===(4&Pl)||98!==n&&99!==n||(null===as?as=new Set([e]):as.add(e)),vs(e,r)),ql=e}function gs(e,t){e.lanes|=t;var r=e.alternate;for(null!==r&&(r.lanes|=t),r=e,e=e.return;null!==e;)e.childLanes|=t,null!==(r=e.alternate)&&(r.childLanes|=t),r=e,e=e.return;return 3===r.tag?r.stateNode:null}function vs(e,t){for(var r=e.callbackNode,n=e.suspendedLanes,a=e.pingedLanes,i=e.expirationTimes,l=e.pendingLanes;0<l;){var s=31-qt(l),c=1<<s,u=i[s];if(-1===u){if(0===(c&n)||0!==(c&a)){u=t,Nt(c);var f=It;i[s]=10<=f?u+250:6<=f?u+5e3:-1}}else u<=t&&(e.expiredLanes|=c);l&=~c}if(n=Rt(e,e===jl?Dl:0),t=It,0===n)null!==r&&(r!==Na&&Ma(r),e.callbackNode=null,e.callbackPriority=0);else{if(null!==r){if(e.callbackPriority===t)return;r!==Na&&Ma(r)}15===t?(r=bs.bind(null,e),null===Fa?(Fa=[r],Ba=Sa(Pa,Za)):Fa.push(r),r=Na):14===t?r=Ga(99,bs.bind(null,e)):(r=function(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(o(358,e))}}(t),r=Ga(r,ys.bind(null,e))),e.callbackPriority=t,e.callbackNode=r}}function ys(e){if(ls=-1,cs=ss=0,0!==(48&Pl))throw Error(o(327));var t=e.callbackNode;if(Ds()&&e.callbackNode!==t)return null;var r=Rt(e,e===jl?Dl:0);if(0===r)return null;var n=r,a=Pl;Pl|=16;var i=Ss();for(jl===e&&Dl===n||(Gl(),Ts(e,n));;)try{Cs();break}catch(s){As(e,s)}if(ri(),El.current=i,Pl=a,null!==zl?n=0:(jl=null,Dl=0,n=Rl),0!==(Bl&Hl))Ts(e,0);else if(0!==n){if(2===n&&(Pl|=64,e.hydrate&&(e.hydrate=!1,Gn(e.containerInfo)),0!==(r=Ft(e))&&(n=Ms(e,r))),1===n)throw t=Fl,Ts(e,0),ms(e,r),vs(e,Va()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=r,n){case 0:case 1:throw Error(o(345));case 2:case 5:Ps(e);break;case 3:if(ms(e,r),(62914560&r)===r&&10<(n=Wl+500-Va())){if(0!==Rt(e,0))break;if(((a=e.suspendedLanes)&r)!==r){ds(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=Wn(Ps.bind(null,e),n);break}Ps(e);break;case 4:if(ms(e,r),(4186112&r)===r)break;for(n=e.eventTimes,a=-1;0<r;){var l=31-qt(r);i=1<<l,(l=n[l])>a&&(a=l),r&=~i}if(r=a,10<(r=(120>(r=Va()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Cl(r/1960))-r)){e.timeoutHandle=Wn(Ps.bind(null,e),r);break}Ps(e);break;default:throw Error(o(329))}}return vs(e,Va()),e.callbackNode===t?ys.bind(null,e):null}function ms(e,t){for(t&=~Vl,t&=~Hl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-qt(t),n=1<<r;e[r]=-1,t&=~n}}function bs(e){if(0!==(48&Pl))throw Error(o(327));if(Ds(),e===jl&&0!==(e.expiredLanes&Dl)){var t=Dl,r=Ms(e,t);0!==(Bl&Hl)&&(r=Ms(e,t=Rt(e,t)))}else r=Ms(e,t=Rt(e,0));if(0!==e.tag&&2===r&&(Pl|=64,e.hydrate&&(e.hydrate=!1,Gn(e.containerInfo)),0!==(t=Ft(e))&&(r=Ms(e,t))),1===r)throw r=Fl,Ts(e,0),ms(e,t),vs(e,Va()),r;return e.finishedWork=e.current.alternate,e.finishedLanes=t,Ps(e),vs(e,Va()),null}function xs(e,t){var r=Pl;Pl|=1;try{return e(t)}finally{0===(Pl=r)&&(Gl(),Xa())}}function ws(e,t){var r=Pl;Pl&=-2,Pl|=8;try{return e(t)}finally{0===(Pl=r)&&(Gl(),Xa())}}function _s(e,t){fa(Nl,Il),Il|=t,Bl|=t}function ks(){Il=Nl.current,ua(Nl)}function Ts(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(-1!==r&&(e.timeoutHandle=-1,Yn(r)),null!==zl)for(r=zl.return;null!==r;){var n=r;switch(n.tag){case 1:null!==(n=n.type.childContextTypes)&&void 0!==n&&ma();break;case 3:zi(),ua(ha),ua(pa),Zi();break;case 5:Ii(n);break;case 4:zi();break;case 13:case 19:ua(Ni);break;case 10:ni(n);break;case 23:case 24:ks()}r=r.return}jl=e,zl=Ys(e.current,null),Dl=Il=Bl=t,Rl=0,Fl=null,Vl=Hl=Ul=0}function As(e,t){for(;;){var r=zl;try{if(ri(),$i.current=Po,ro){for(var n=Ji.memoizedState;null!==n;){var a=n.queue;null!==a&&(a.pending=null),n=n.next}ro=!1}if(Ki=0,to=eo=Ji=null,no=!1,Ll.current=null,null===r||null===r.return){Rl=1,Fl=t,zl=null;break}e:{var i=e,o=r.return,l=r,s=t;if(t=Dl,l.flags|=2048,l.firstEffect=l.lastEffect=null,null!==s&&"object"===typeof s&&"function"===typeof s.then){var c=s;if(0===(2&l.mode)){var u=l.alternate;u?(l.updateQueue=u.updateQueue,l.memoizedState=u.memoizedState,l.lanes=u.lanes):(l.updateQueue=null,l.memoizedState=null)}var f=0!==(1&Ni.current),d=o;do{var p;if(p=13===d.tag){var h=d.memoizedState;if(null!==h)p=null!==h.dehydrated;else{var g=d.memoizedProps;p=void 0!==g.fallback&&(!0!==g.unstable_avoidThisFallback||!f)}}if(p){var v=d.updateQueue;if(null===v){var y=new Set;y.add(c),d.updateQueue=y}else v.add(c);if(0===(2&d.mode)){if(d.flags|=64,l.flags|=16384,l.flags&=-2981,1===l.tag)if(null===l.alternate)l.tag=17;else{var m=ui(-1,1);m.tag=2,fi(l,m)}l.lanes|=1;break e}s=void 0,l=t;var b=i.pingCache;if(null===b?(b=i.pingCache=new fl,s=new Set,b.set(c,s)):void 0===(s=b.get(c))&&(s=new Set,b.set(c,s)),!s.has(l)){s.add(l);var x=Us.bind(null,i,c,l);c.then(x,x)}d.flags|=4096,d.lanes=t;break e}d=d.return}while(null!==d);s=Error((G(l.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.")}5!==Rl&&(Rl=2),s=cl(s,l),d=o;do{switch(d.tag){case 3:i=s,d.flags|=4096,t&=-t,d.lanes|=t,di(d,dl(0,i,t));break e;case 1:i=s;var w=d.type,_=d.stateNode;if(0===(64&d.flags)&&("function"===typeof w.getDerivedStateFromError||null!==_&&"function"===typeof _.componentDidCatch&&(null===Kl||!Kl.has(_)))){d.flags|=4096,t&=-t,d.lanes|=t,di(d,pl(d,i,t));break e}}d=d.return}while(null!==d)}Ls(r)}catch(k){t=k,zl===r&&null!==r&&(zl=r=r.return);continue}break}}function Ss(){var e=El.current;return El.current=Po,null===e?Po:e}function Ms(e,t){var r=Pl;Pl|=16;var n=Ss();for(jl===e&&Dl===t||Ts(e,t);;)try{Os();break}catch(a){As(e,a)}if(ri(),Pl=r,El.current=n,null!==zl)throw Error(o(261));return jl=null,Dl=0,Rl}function Os(){for(;null!==zl;)Es(zl)}function Cs(){for(;null!==zl&&!Oa();)Es(zl)}function Es(e){var t=Xl(e.alternate,e,Il);e.memoizedProps=e.pendingProps,null===t?Ls(e):zl=t,Ll.current=null}function Ls(e){var t=e;do{var r=t.alternate;if(e=t.return,0===(2048&t.flags)){if(null!==(r=ll(r,t,Il)))return void(zl=r);if(24!==(r=t).tag&&23!==r.tag||null===r.memoizedState||0!==(1073741824&Il)||0===(4&r.mode)){for(var n=0,a=r.child;null!==a;)n|=a.lanes|a.childLanes,a=a.sibling;r.childLanes=n}null!==e&&0===(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(null!==e.lastEffect?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}else{if(null!==(r=sl(t)))return r.flags&=2047,void(zl=r);null!==e&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(null!==(t=t.sibling))return void(zl=t);zl=t=e}while(null!==t);0===Rl&&(Rl=5)}function Ps(e){var t=qa();return Ya(99,js.bind(null,e,t)),null}function js(e,t){do{Ds()}while(null!==es);if(0!==(48&Pl))throw Error(o(327));var r=e.finishedWork;if(null===r)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(o(177));e.callbackNode=null;var n=r.lanes|r.childLanes,a=n,i=e.pendingLanes&~a;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=a,e.mutableReadLanes&=a,e.entangledLanes&=a,a=e.entanglements;for(var l=e.eventTimes,s=e.expirationTimes;0<i;){var c=31-qt(i),u=1<<c;a[c]=0,l[c]=-1,s[c]=-1,i&=~u}if(null!==as&&0===(24&n)&&as.has(e)&&as.delete(e),e===jl&&(zl=jl=null,Dl=0),1<r.flags?null!==r.lastEffect?(r.lastEffect.nextEffect=r,n=r.firstEffect):n=r:n=r.firstEffect,null!==n){if(a=Pl,Pl|=32,Ll.current=null,Un=Zt,yn(l=vn())){if("selectionStart"in l)s={start:l.selectionStart,end:l.selectionEnd};else e:if(s=(s=l.ownerDocument)&&s.defaultView||window,(u=s.getSelection&&s.getSelection())&&0!==u.rangeCount){s=u.anchorNode,i=u.anchorOffset,c=u.focusNode,u=u.focusOffset;try{s.nodeType,c.nodeType}catch(S){s=null;break e}var f=0,d=-1,p=-1,h=0,g=0,v=l,y=null;t:for(;;){for(var m;v!==s||0!==i&&3!==v.nodeType||(d=f+i),v!==c||0!==u&&3!==v.nodeType||(p=f+u),3===v.nodeType&&(f+=v.nodeValue.length),null!==(m=v.firstChild);)y=v,v=m;for(;;){if(v===l)break t;if(y===s&&++h===i&&(d=f),y===c&&++g===u&&(p=f),null!==(m=v.nextSibling))break;y=(v=y).parentNode}v=m}s=-1===d||-1===p?null:{start:d,end:p}}else s=null;s=s||{start:0,end:0}}else s=null;Hn={focusedElem:l,selectionRange:s},Zt=!1,us=null,fs=!1,Zl=n;do{try{zs()}catch(S){if(null===Zl)throw Error(o(330));Bs(Zl,S),Zl=Zl.nextEffect}}while(null!==Zl);us=null,Zl=n;do{try{for(l=e;null!==Zl;){var b=Zl.flags;if(16&b&&me(Zl.stateNode,""),128&b){var x=Zl.alternate;if(null!==x){var w=x.ref;null!==w&&("function"===typeof w?w(null):w.current=null)}}switch(1038&b){case 2:_l(Zl),Zl.flags&=-3;break;case 6:_l(Zl),Zl.flags&=-3,Sl(Zl.alternate,Zl);break;case 1024:Zl.flags&=-1025;break;case 1028:Zl.flags&=-1025,Sl(Zl.alternate,Zl);break;case 4:Sl(Zl.alternate,Zl);break;case 8:Al(l,s=Zl);var _=s.alternate;xl(s),null!==_&&xl(_)}Zl=Zl.nextEffect}}catch(S){if(null===Zl)throw Error(o(330));Bs(Zl,S),Zl=Zl.nextEffect}}while(null!==Zl);if(w=Hn,x=vn(),b=w.focusedElem,l=w.selectionRange,x!==b&&b&&b.ownerDocument&&gn(b.ownerDocument.documentElement,b)){null!==l&&yn(b)&&(x=l.start,void 0===(w=l.end)&&(w=x),"selectionStart"in b?(b.selectionStart=x,b.selectionEnd=Math.min(w,b.value.length)):(w=(x=b.ownerDocument||document)&&x.defaultView||window).getSelection&&(w=w.getSelection(),s=b.textContent.length,_=Math.min(l.start,s),l=void 0===l.end?_:Math.min(l.end,s),!w.extend&&_>l&&(s=l,l=_,_=s),s=hn(b,_),i=hn(b,l),s&&i&&(1!==w.rangeCount||w.anchorNode!==s.node||w.anchorOffset!==s.offset||w.focusNode!==i.node||w.focusOffset!==i.offset)&&((x=x.createRange()).setStart(s.node,s.offset),w.removeAllRanges(),_>l?(w.addRange(x),w.extend(i.node,i.offset)):(x.setEnd(i.node,i.offset),w.addRange(x))))),x=[];for(w=b;w=w.parentNode;)1===w.nodeType&&x.push({element:w,left:w.scrollLeft,top:w.scrollTop});for("function"===typeof b.focus&&b.focus(),b=0;b<x.length;b++)(w=x[b]).element.scrollLeft=w.left,w.element.scrollTop=w.top}Zt=!!Un,Hn=Un=null,e.current=r,Zl=n;do{try{for(b=e;null!==Zl;){var k=Zl.flags;if(36&k&&yl(b,Zl.alternate,Zl),128&k){x=void 0;var T=Zl.ref;if(null!==T){var A=Zl.stateNode;Zl.tag,x=A,"function"===typeof T?T(x):T.current=x}}Zl=Zl.nextEffect}}catch(S){if(null===Zl)throw Error(o(330));Bs(Zl,S),Zl=Zl.nextEffect}}while(null!==Zl);Zl=null,Ra(),Pl=a}else e.current=r;if(Jl)Jl=!1,es=e,ts=t;else for(Zl=n;null!==Zl;)t=Zl.nextEffect,Zl.nextEffect=null,8&Zl.flags&&((k=Zl).sibling=null,k.stateNode=null),Zl=t;if(0===(n=e.pendingLanes)&&(Kl=null),1===n?e===os?is++:(is=0,os=e):is=0,r=r.stateNode,Ta&&"function"===typeof Ta.onCommitFiberRoot)try{Ta.onCommitFiberRoot(ka,r,void 0,64===(64&r.current.flags))}catch(S){}if(vs(e,Va()),$l)throw $l=!1,e=Ql,Ql=null,e;return 0!==(8&Pl)||Xa(),null}function zs(){for(;null!==Zl;){var e=Zl.alternate;fs||null===us||(0!==(8&Zl.flags)?et(Zl,us)&&(fs=!0):13===Zl.tag&&Ol(e,Zl)&&et(Zl,us)&&(fs=!0));var t=Zl.flags;0!==(256&t)&&vl(e,Zl),0===(512&t)||Jl||(Jl=!0,Ga(97,(function(){return Ds(),null}))),Zl=Zl.nextEffect}}function Ds(){if(90!==ts){var e=97<ts?97:ts;return ts=90,Ya(e,Rs)}return!1}function Is(e,t){rs.push(t,e),Jl||(Jl=!0,Ga(97,(function(){return Ds(),null})))}function Ns(e,t){ns.push(t,e),Jl||(Jl=!0,Ga(97,(function(){return Ds(),null})))}function Rs(){if(null===es)return!1;var e=es;if(es=null,0!==(48&Pl))throw Error(o(331));var t=Pl;Pl|=32;var r=ns;ns=[];for(var n=0;n<r.length;n+=2){var a=r[n],i=r[n+1],l=a.destroy;if(a.destroy=void 0,"function"===typeof l)try{l()}catch(c){if(null===i)throw Error(o(330));Bs(i,c)}}for(r=rs,rs=[],n=0;n<r.length;n+=2){a=r[n],i=r[n+1];try{var s=a.create;a.destroy=s()}catch(c){if(null===i)throw Error(o(330));Bs(i,c)}}for(s=e.current.firstEffect;null!==s;)e=s.nextEffect,s.nextEffect=null,8&s.flags&&(s.sibling=null,s.stateNode=null),s=e;return Pl=t,Xa(),!0}function Fs(e,t,r){fi(e,t=dl(0,t=cl(r,t),1)),t=ds(),null!==(e=gs(e,1))&&(Vt(e,1,t),vs(e,t))}function Bs(e,t){if(3===e.tag)Fs(e,e,t);else for(var r=e.return;null!==r;){if(3===r.tag){Fs(r,e,t);break}if(1===r.tag){var n=r.stateNode;if("function"===typeof r.type.getDerivedStateFromError||"function"===typeof n.componentDidCatch&&(null===Kl||!Kl.has(n))){var a=pl(r,e=cl(t,e),1);if(fi(r,a),a=ds(),null!==(r=gs(r,1)))Vt(r,1,a),vs(r,a);else if("function"===typeof n.componentDidCatch&&(null===Kl||!Kl.has(n)))try{n.componentDidCatch(t,e)}catch(i){}break}}r=r.return}}function Us(e,t,r){var n=e.pingCache;null!==n&&n.delete(t),t=ds(),e.pingedLanes|=e.suspendedLanes&r,jl===e&&(Dl&r)===r&&(4===Rl||3===Rl&&(62914560&Dl)===Dl&&500>Va()-Wl?Ts(e,0):Vl|=r),vs(e,t)}function Hs(e,t){var r=e.stateNode;null!==r&&r.delete(t),0===(t=0)&&(0===(2&(t=e.mode))?t=1:0===(4&t)?t=99===qa()?1:2:(0===ss&&(ss=Bl),0===(t=Ut(62914560&~ss))&&(t=4194304))),r=ds(),null!==(e=gs(e,t))&&(Vt(e,t,r),vs(e,r))}function Vs(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function qs(e,t,r,n){return new Vs(e,t,r,n)}function Ws(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Ys(e,t){var r=e.alternate;return null===r?((r=qs(e.tag,t,e.key,e.mode)).elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.nextEffect=null,r.firstEffect=null,r.lastEffect=null),r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Gs(e,t,r,n,a,i){var l=2;if(n=e,"function"===typeof e)Ws(e)&&(l=1);else if("string"===typeof e)l=5;else e:switch(e){case T:return Xs(r.children,a,i,t);case I:l=8,a|=16;break;case A:l=8,a|=1;break;case S:return(e=qs(12,r,t,8|a)).elementType=S,e.type=S,e.lanes=i,e;case E:return(e=qs(13,r,t,a)).type=E,e.elementType=E,e.lanes=i,e;case L:return(e=qs(19,r,t,a)).elementType=L,e.lanes=i,e;case N:return Zs(r,a,i,t);case R:return(e=qs(24,r,t,a)).elementType=R,e.lanes=i,e;default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case M:l=10;break e;case O:l=9;break e;case C:l=11;break e;case P:l=14;break e;case j:l=16,n=null;break e;case z:l=22;break e}throw Error(o(130,null==e?e:typeof e,""))}return(t=qs(l,r,t,a)).elementType=e,t.type=n,t.lanes=i,t}function Xs(e,t,r,n){return(e=qs(7,e,n,t)).lanes=r,e}function Zs(e,t,r,n){return(e=qs(23,e,n,t)).elementType=N,e.lanes=r,e}function $s(e,t,r){return(e=qs(6,e,null,t)).lanes=r,e}function Qs(e,t,r){return(t=qs(4,null!==e.children?e.children:[],e.key,t)).lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Ks(e,t,r){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=r,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Ht(0),this.expirationTimes=Ht(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ht(0),this.mutableSourceEagerHydrationData=null}function Js(e,t,r){var n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:k,key:null==n?null:""+n,children:e,containerInfo:t,implementation:r}}function ec(e,t,r,n){var a=t.current,i=ds(),l=ps(a);e:if(r){t:{if($e(r=r._reactInternals)!==r||1!==r.tag)throw Error(o(170));var s=r;do{switch(s.tag){case 3:s=s.stateNode.context;break t;case 1:if(ya(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break t}}s=s.return}while(null!==s);throw Error(o(171))}if(1===r.tag){var c=r.type;if(ya(c)){r=xa(r,c,s);break e}}r=s}else r=da;return null===t.context?t.context=r:t.pendingContext=r,(t=ui(i,l)).payload={element:e},null!==(n=void 0===n?null:n)&&(t.callback=n),fi(a,t),hs(a,l,i),l}function tc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function rc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var r=e.retryLane;e.retryLane=0!==r&&r<t?r:t}}function nc(e,t){rc(e,t),(e=e.alternate)&&rc(e,t)}function ac(e,t,r){var n=null!=r&&null!=r.hydrationOptions&&r.hydrationOptions.mutableSources||null;if(r=new Ks(e,t,null!=r&&!0===r.hydrate),t=qs(3,null,null,2===t?7:1===t?3:0),r.current=t,t.stateNode=r,si(t),e[ea]=r.current,Pn(8===e.nodeType?e.parentNode:e),n)for(e=0;e<n.length;e++){var a=(t=n[e])._getVersion;a=a(t._source),null==r.mutableSourceEagerHydrationData?r.mutableSourceEagerHydrationData=[t,a]:r.mutableSourceEagerHydrationData.push(t,a)}this._internalRoot=r}function ic(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function oc(e,t,r,n,a){var i=r._reactRootContainer;if(i){var o=i._internalRoot;if("function"===typeof a){var l=a;a=function(){var e=tc(o);l.call(e)}}ec(t,o,e,a)}else{if(i=r._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var r;r=e.lastChild;)e.removeChild(r);return new ac(e,0,t?{hydrate:!0}:void 0)}(r,n),o=i._internalRoot,"function"===typeof a){var s=a;a=function(){var e=tc(o);s.call(e)}}ws((function(){ec(t,o,e,a)}))}return tc(o)}function lc(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!ic(t))throw Error(o(200));return Js(e,t,null,r)}Xl=function(e,t,r){var n=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||ha.current)No=!0;else{if(0===(r&n)){switch(No=!1,t.tag){case 3:Go(t),Gi();break;case 5:Di(t);break;case 1:ya(t.type)&&wa(t);break;case 4:ji(t,t.stateNode.containerInfo);break;case 10:n=t.memoizedProps.value;var a=t.type._context;fa(Ka,a._currentValue),a._currentValue=n;break;case 13:if(null!==t.memoizedState)return 0!==(r&t.child.childLanes)?Ko(e,t,r):(fa(Ni,1&Ni.current),null!==(t=il(e,t,r))?t.sibling:null);fa(Ni,1&Ni.current);break;case 19:if(n=0!==(r&t.childLanes),0!==(64&e.flags)){if(n)return al(e,t,r);t.flags|=64}if(null!==(a=t.memoizedState)&&(a.rendering=null,a.tail=null,a.lastEffect=null),fa(Ni,Ni.current),n)break;return null;case 23:case 24:return t.lanes=0,Ho(e,t,r)}return il(e,t,r)}No=0!==(16384&e.flags)}else No=!1;switch(t.lanes=0,t.tag){case 2:if(n=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,a=va(t,pa.current),ii(t,r),a=oo(null,t,n,e,a,r),t.flags|=1,"object"===typeof a&&null!==a&&"function"===typeof a.render&&void 0===a.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,ya(n)){var i=!0;wa(t)}else i=!1;t.memoizedState=null!==a.state&&void 0!==a.state?a.state:null,si(t);var l=n.getDerivedStateFromProps;"function"===typeof l&&vi(t,n,l,e),a.updater=yi,t.stateNode=a,a._reactInternals=t,wi(t,n,e,r),t=Yo(null,t,n,!0,i,r)}else t.tag=0,Ro(null,t,a,r),t=t.child;return t;case 16:a=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,a=(i=a._init)(a._payload),t.type=a,i=t.tag=function(e){if("function"===typeof e)return Ws(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===C)return 11;if(e===P)return 14}return 2}(a),e=Qa(a,e),i){case 0:t=qo(null,t,a,e,r);break e;case 1:t=Wo(null,t,a,e,r);break e;case 11:t=Fo(null,t,a,e,r);break e;case 14:t=Bo(null,t,a,Qa(a.type,e),n,r);break e}throw Error(o(306,a,""))}return t;case 0:return n=t.type,a=t.pendingProps,qo(e,t,n,a=t.elementType===n?a:Qa(n,a),r);case 1:return n=t.type,a=t.pendingProps,Wo(e,t,n,a=t.elementType===n?a:Qa(n,a),r);case 3:if(Go(t),n=t.updateQueue,null===e||null===n)throw Error(o(282));if(n=t.pendingProps,a=null!==(a=t.memoizedState)?a.element:null,ci(e,t),pi(t,n,null,r),(n=t.memoizedState.element)===a)Gi(),t=il(e,t,r);else{if((i=(a=t.stateNode).hydrate)&&(Bi=Xn(t.stateNode.containerInfo.firstChild),Fi=t,i=Ui=!0),i){if(null!=(e=a.mutableSourceEagerHydrationData))for(a=0;a<e.length;a+=2)(i=e[a])._workInProgressVersionPrimary=e[a+1],Xi.push(i);for(r=Mi(t,null,n,r),t.child=r;r;)r.flags=-3&r.flags|1024,r=r.sibling}else Ro(e,t,n,r),Gi();t=t.child}return t;case 5:return Di(t),null===e&&qi(t),n=t.type,a=t.pendingProps,i=null!==e?e.memoizedProps:null,l=a.children,qn(n,a)?l=null:null!==i&&qn(n,i)&&(t.flags|=16),Vo(e,t),Ro(e,t,l,r),t.child;case 6:return null===e&&qi(t),null;case 13:return Ko(e,t,r);case 4:return ji(t,t.stateNode.containerInfo),n=t.pendingProps,null===e?t.child=Si(t,null,n,r):Ro(e,t,n,r),t.child;case 11:return n=t.type,a=t.pendingProps,Fo(e,t,n,a=t.elementType===n?a:Qa(n,a),r);case 7:return Ro(e,t,t.pendingProps,r),t.child;case 8:case 12:return Ro(e,t,t.pendingProps.children,r),t.child;case 10:e:{n=t.type._context,a=t.pendingProps,l=t.memoizedProps,i=a.value;var s=t.type._context;if(fa(Ka,s._currentValue),s._currentValue=i,null!==l)if(s=l.value,0===(i=un(s,i)?0:0|("function"===typeof n._calculateChangedBits?n._calculateChangedBits(s,i):1073741823))){if(l.children===a.children&&!ha.current){t=il(e,t,r);break e}}else for(null!==(s=t.child)&&(s.return=t);null!==s;){var c=s.dependencies;if(null!==c){l=s.child;for(var u=c.firstContext;null!==u;){if(u.context===n&&0!==(u.observedBits&i)){1===s.tag&&((u=ui(-1,r&-r)).tag=2,fi(s,u)),s.lanes|=r,null!==(u=s.alternate)&&(u.lanes|=r),ai(s.return,r),c.lanes|=r;break}u=u.next}}else l=10===s.tag&&s.type===t.type?null:s.child;if(null!==l)l.return=s;else for(l=s;null!==l;){if(l===t){l=null;break}if(null!==(s=l.sibling)){s.return=l.return,l=s;break}l=l.return}s=l}Ro(e,t,a.children,r),t=t.child}return t;case 9:return a=t.type,n=(i=t.pendingProps).children,ii(t,r),n=n(a=oi(a,i.unstable_observedBits)),t.flags|=1,Ro(e,t,n,r),t.child;case 14:return i=Qa(a=t.type,t.pendingProps),Bo(e,t,a,i=Qa(a.type,i),n,r);case 15:return Uo(e,t,t.type,t.pendingProps,n,r);case 17:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:Qa(n,a),null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,ya(n)?(e=!0,wa(t)):e=!1,ii(t,r),bi(t,n,a),wi(t,n,a,r),Yo(null,t,n,!0,e,r);case 19:return al(e,t,r);case 23:case 24:return Ho(e,t,r)}throw Error(o(156,t.tag))},ac.prototype.render=function(e){ec(e,this._internalRoot,null,null)},ac.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;ec(null,e,null,(function(){t[ea]=null}))},tt=function(e){13===e.tag&&(hs(e,4,ds()),nc(e,4))},rt=function(e){13===e.tag&&(hs(e,67108864,ds()),nc(e,67108864))},nt=function(e){if(13===e.tag){var t=ds(),r=ps(e);hs(e,r,t),nc(e,r)}},at=function(e,t){return t()},Me=function(e,t,r){switch(t){case"input":if(re(e,r),t=r.name,"radio"===r.type&&null!=t){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var a=ia(n);if(!a)throw Error(o(90));Q(n),re(n,a)}}}break;case"textarea":ce(e,r);break;case"select":null!=(t=r.value)&&oe(e,!!r.multiple,t,!1)}},je=xs,ze=function(e,t,r,n,a){var i=Pl;Pl|=4;try{return Ya(98,e.bind(null,t,r,n,a))}finally{0===(Pl=i)&&(Gl(),Xa())}},De=function(){0===(49&Pl)&&(function(){if(null!==as){var e=as;as=null,e.forEach((function(e){e.expiredLanes|=24&e.pendingLanes,vs(e,Va())}))}Xa()}(),Ds())},Ie=function(e,t){var r=Pl;Pl|=2;try{return e(t)}finally{0===(Pl=r)&&(Gl(),Xa())}};var sc={Events:[na,aa,ia,Le,Pe,Ds,{current:!1}]},cc={findFiberByHostInstance:ra,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},uc={bundleType:cc.bundleType,version:cc.version,rendererPackageName:cc.rendererPackageName,rendererConfig:cc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Je(e))?null:e.stateNode},findFiberByHostInstance:cc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var fc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!fc.isDisabled&&fc.supportsFiber)try{ka=fc.inject(uc),Ta=fc}catch(ve){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=sc,t.createPortal=lc,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"===typeof e.render)throw Error(o(188));throw Error(o(268,Object.keys(e)))}return e=null===(e=Je(t))?null:e.stateNode},t.flushSync=function(e,t){var r=Pl;if(0!==(48&r))return e(t);Pl|=1;try{if(e)return Ya(99,e.bind(null,t))}finally{Pl=r,Xa()}},t.hydrate=function(e,t,r){if(!ic(t))throw Error(o(200));return oc(null,e,t,!0,r)},t.render=function(e,t,r){if(!ic(t))throw Error(o(200));return oc(null,e,t,!1,r)},t.unmountComponentAtNode=function(e){if(!ic(e))throw Error(o(40));return!!e._reactRootContainer&&(ws((function(){oc(null,null,e,!1,(function(){e._reactRootContainer=null,e[ea]=null}))})),!0)},t.unstable_batchedUpdates=xs,t.unstable_createPortal=function(e,t){return lc(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!ic(r))throw Error(o(200));if(null==e||void 0===e._reactInternals)throw Error(o(38));return oc(e,t,r,!1,n)},t.version="17.0.2"},function(e,t,r){"use strict";e.exports=r(366)},function(e,t,r){"use strict";var n,a,i,o;if("object"===typeof performance&&"function"===typeof performance.now){var l=performance;t.unstable_now=function(){return l.now()}}else{var s=Date,c=s.now();t.unstable_now=function(){return s.now()-c}}if("undefined"===typeof window||"function"!==typeof MessageChannel){var u=null,f=null,d=function e(){if(null!==u)try{var r=t.unstable_now();u(!0,r),u=null}catch(n){throw setTimeout(e,0),n}};n=function(e){null!==u?setTimeout(n,0,e):(u=e,setTimeout(d,0))},a=function(e,t){f=setTimeout(e,t)},i=function(){clearTimeout(f)},t.unstable_shouldYield=function(){return!1},o=t.unstable_forceFrameRate=function(){}}else{var p=window.setTimeout,h=window.clearTimeout;if("undefined"!==typeof console){var g=window.cancelAnimationFrame;"function"!==typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!==typeof g&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var v=!1,y=null,m=-1,b=5,x=0;t.unstable_shouldYield=function(){return t.unstable_now()>=x},o=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):b=0<e?Math.floor(1e3/e):5};var w=new MessageChannel,_=w.port2;w.port1.onmessage=function(){if(null!==y){var e=t.unstable_now();x=e+b;try{y(!0,e)?_.postMessage(null):(v=!1,y=null)}catch(r){throw _.postMessage(null),r}}else v=!1},n=function(e){y=e,v||(v=!0,_.postMessage(null))},a=function(e,r){m=p((function(){e(t.unstable_now())}),r)},i=function(){h(m),m=-1}}function k(e,t){var r=e.length;e.push(t);e:for(;;){var n=r-1>>>1,a=e[n];if(!(void 0!==a&&0<S(a,t)))break e;e[n]=t,e[r]=a,r=n}}function T(e){return void 0===(e=e[0])?null:e}function A(e){var t=e[0];if(void 0!==t){var r=e.pop();if(r!==t){e[0]=r;e:for(var n=0,a=e.length;n<a;){var i=2*(n+1)-1,o=e[i],l=i+1,s=e[l];if(void 0!==o&&0>S(o,r))void 0!==s&&0>S(s,o)?(e[n]=s,e[l]=r,n=l):(e[n]=o,e[i]=r,n=i);else{if(!(void 0!==s&&0>S(s,r)))break e;e[n]=s,e[l]=r,n=l}}}return t}return null}function S(e,t){var r=e.sortIndex-t.sortIndex;return 0!==r?r:e.id-t.id}var M=[],O=[],C=1,E=null,L=3,P=!1,j=!1,z=!1;function D(e){for(var t=T(O);null!==t;){if(null===t.callback)A(O);else{if(!(t.startTime<=e))break;A(O),t.sortIndex=t.expirationTime,k(M,t)}t=T(O)}}function I(e){if(z=!1,D(e),!j)if(null!==T(M))j=!0,n(N);else{var t=T(O);null!==t&&a(I,t.startTime-e)}}function N(e,r){j=!1,z&&(z=!1,i()),P=!0;var n=L;try{for(D(r),E=T(M);null!==E&&(!(E.expirationTime>r)||e&&!t.unstable_shouldYield());){var o=E.callback;if("function"===typeof o){E.callback=null,L=E.priorityLevel;var l=o(E.expirationTime<=r);r=t.unstable_now(),"function"===typeof l?E.callback=l:E===T(M)&&A(M),D(r)}else A(M);E=T(M)}if(null!==E)var s=!0;else{var c=T(O);null!==c&&a(I,c.startTime-r),s=!1}return s}finally{E=null,L=n,P=!1}}var R=o;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){j||P||(j=!0,n(N))},t.unstable_getCurrentPriorityLevel=function(){return L},t.unstable_getFirstCallbackNode=function(){return T(M)},t.unstable_next=function(e){switch(L){case 1:case 2:case 3:var t=3;break;default:t=L}var r=L;L=t;try{return e()}finally{L=r}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=R,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=L;L=e;try{return t()}finally{L=r}},t.unstable_scheduleCallback=function(e,r,o){var l=t.unstable_now();switch("object"===typeof o&&null!==o?o="number"===typeof(o=o.delay)&&0<o?l+o:l:o=l,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:C++,callback:r,priorityLevel:e,startTime:o,expirationTime:s=o+s,sortIndex:-1},o>l?(e.sortIndex=o,k(O,e),null===T(M)&&e===T(O)&&(z?i():z=!0,a(I,o-l))):(e.sortIndex=s,k(M,e),j||P||(j=!0,n(N))),e},t.unstable_wrapCallback=function(e){var t=L;return function(){var r=L;L=t;try{return e.apply(this,arguments)}finally{L=r}}}},function(e,t,r){},,,function(e,t,r){var n=function(e){"use strict";var t,r=Object.prototype,n=r.hasOwnProperty,a="function"===typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",o=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(L){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var a=t&&t.prototype instanceof v?t:v,i=Object.create(a.prototype),o=new O(n||[]);return i._invoke=function(e,t,r){var n=f;return function(a,i){if(n===p)throw new Error("Generator is already running");if(n===h){if("throw"===a)throw i;return E()}for(r.method=a,r.arg=i;;){var o=r.delegate;if(o){var l=A(o,r);if(l){if(l===g)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===f)throw n=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=p;var s=u(e,t,r);if("normal"===s.type){if(n=r.done?h:d,s.arg===g)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n=h,r.method="throw",r.arg=s.arg)}}}(e,r,o),i}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(L){return{type:"throw",arg:L}}}e.wrap=c;var f="suspendedStart",d="suspendedYield",p="executing",h="completed",g={};function v(){}function y(){}function m(){}var b={};s(b,i,(function(){return this}));var x=Object.getPrototypeOf,w=x&&x(x(C([])));w&&w!==r&&n.call(w,i)&&(b=w);var _=m.prototype=v.prototype=Object.create(b);function k(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function T(e,t){function r(a,i,o,l){var s=u(e[a],e,i);if("throw"!==s.type){var c=s.arg,f=c.value;return f&&"object"===typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,o,l)}),(function(e){r("throw",e,o,l)})):t.resolve(f).then((function(e){c.value=e,o(c)}),(function(e){return r("throw",e,o,l)}))}l(s.arg)}var a;this._invoke=function(e,n){function i(){return new t((function(t,a){r(e,n,t,a)}))}return a=a?a.then(i,i):i()}}function A(e,r){var n=e.iterator[r.method];if(n===t){if(r.delegate=null,"throw"===r.method){if(e.iterator.return&&(r.method="return",r.arg=t,A(e,r),"throw"===r.method))return g;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}var a=u(n,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,g;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function S(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 M(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function C(e){if(e){var r=e[i];if(r)return r.call(e);if("function"===typeof e.next)return e;if(!isNaN(e.length)){var a=-1,o=function r(){for(;++a<e.length;)if(n.call(e,a))return r.value=e[a],r.done=!1,r;return r.value=t,r.done=!0,r};return o.next=o}}return{next:E}}function E(){return{value:t,done:!0}}return y.prototype=m,s(_,"constructor",m),s(m,"constructor",y),y.displayName=s(m,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"===typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,m):(e.__proto__=m,s(e,l,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},k(T.prototype),s(T.prototype,o,(function(){return this})),e.AsyncIterator=T,e.async=function(t,r,n,a,i){void 0===i&&(i=Promise);var o=new T(c(t,r,n,a),i);return e.isGeneratorFunction(r)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},k(_),s(_,l,"Generator"),s(_,i,(function(){return this})),s(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=C,O.prototype={constructor:O,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(M),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function a(n,a){return l.type="throw",l.arg=e,r.next=n,a&&(r.method="next",r.arg=t),!!a}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],l=o.completion;if("root"===o.tryLoc)return a("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return a(o.catchLoc,!0);if(this.prev<o.finallyLoc)return a(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return a(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return a(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var i=a;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=e,o.arg=t,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),M(r),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;M(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:C(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}(e.exports);try{regeneratorRuntime=n}catch(a){"object"===typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},function(e,t,r){"use strict";var n=r(372);function a(){}function i(){}i.resetWarningCache=a,e.exports=function(){function e(e,t,r,a,i,o){if(o!==n){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:a};return r.PropTypes=r,r}},function(e,t,r){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,r){var n=r(204);e.exports=function(e){if(Array.isArray(e))return n(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){var n=r(206),a=r(207);function i(e,t,r,o){return i="undefined"!==typeof Reflect&&Reflect.set?Reflect.set:function(e,t,r,i){var o,l=n(e,t);if(l){if((o=Object.getOwnPropertyDescriptor(l,t)).set)return o.set.call(i,r),!0;if(!o.writable)return!1}if(o=Object.getOwnPropertyDescriptor(i,t)){if(!o.writable)return!1;o.value=r,Object.defineProperty(i,t,o)}else a(i,t,r);return!0},i(e,t,r,o)}e.exports=function(e,t,r,n,a){if(!i(e,t,r,n||e)&&a)throw new Error("failed to set property");return r},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){var n=r(206);function a(){return"undefined"!==typeof Reflect&&Reflect.get?(e.exports=a=Reflect.get,e.exports.__esModule=!0,e.exports.default=e.exports):(e.exports=a=function(e,t,r){var a=n(e,t);if(a){var i=Object.getOwnPropertyDescriptor(a,t);return i.get?i.get.call(arguments.length<3?e:r):i.value}},e.exports.__esModule=!0,e.exports.default=e.exports),a.apply(this,arguments)}e.exports=a,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){var n=r(141);e.exports=function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&n(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){var n=r(110),a=r(209),i=r(380);e.exports=function(e){var t=a();return function(){var r,a=n(e);if(t){var o=n(this).constructor;r=Reflect.construct(a,arguments,o)}else r=a.apply(this,arguments);return i(this,r)}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){var n=r(381).default,a=r(208);e.exports=function(e,t){if(t&&("object"===n(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return a(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){function r(t){return e.exports=r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,r(t)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){var n=r(110),a=r(141),i=r(383),o=r(384);function l(t){var r="function"===typeof Map?new Map:void 0;return e.exports=l=function(e){if(null===e||!i(e))return e;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof r){if(r.has(e))return r.get(e);r.set(e,t)}function t(){return o(e,arguments,n(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),a(t,e)},e.exports.__esModule=!0,e.exports.default=e.exports,l(t)}e.exports=l,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e){return-1!==Function.toString.call(e).indexOf("[native code]")},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){var n=r(141),a=r(209);function i(t,r,o){return a()?(e.exports=i=Reflect.construct,e.exports.__esModule=!0,e.exports.default=e.exports):(e.exports=i=function(e,t,r){var a=[null];a.push.apply(a,t);var i=new(Function.bind.apply(e,a));return r&&n(i,r.prototype),i},e.exports.__esModule=!0,e.exports.default=e.exports),i.apply(null,arguments)}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){var n=r(207);function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}e.exports=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach((function(t){n(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){function r(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}e.exports=function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports},,function(e,t,r){"use strict";r(53);var n=r(6),a=60103;if(t.Fragment=60107,"function"===typeof Symbol&&Symbol.for){var i=Symbol.for;a=i("react.element"),t.Fragment=i("react.fragment")}var o=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l=Object.prototype.hasOwnProperty,s={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,r){var n,i={},c=null,u=null;for(n in void 0!==r&&(c=""+r),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)l.call(t,n)&&!s.hasOwnProperty(n)&&(i[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===i[n]&&(i[n]=t[n]);return{$$typeof:a,type:e,key:c,ref:u,props:i,_owner:o.current}}t.jsx=c,t.jsxs=c},function(e,t,r){"use strict";e.exports=function(){}},function(e,t,r){"use strict";var n=r(392),a=Math.abs,i=Math.floor;e.exports=function(e){return isNaN(e)?0:0!==(e=Number(e))&&isFinite(e)?n(e)*i(a(e)):e}},function(e,t,r){"use strict";e.exports=r(393)()?Math.sign:r(394)},function(e,t,r){"use strict";e.exports=function(){var e=Math.sign;return"function"===typeof e&&(1===e(10)&&-1===e(-20))}},function(e,t,r){"use strict";e.exports=function(e){return e=Number(e),isNaN(e)||0===e?e:e>0?1:-1}},function(e,t,r){"use strict";var n=r(42),a=r(111),i=r(61),o=r(397),l=r(210);e.exports=function e(t){var r,s,c;if(n(t),(r=Object(arguments[1])).async&&r.promise)throw new Error("Options 'async' and 'promise' cannot be used together");return hasOwnProperty.call(t,"__memoized__")&&!r.force?t:(s=l(r.length,t.length,r.async&&i.async),c=o(t,s,r),a(i,(function(e,t){r[t]&&e(r[t],c,r)})),e.__profiler__&&e.__profiler__(c),c.updateEnv(),c.memoized)}},function(e,t,r){"use strict";var n=r(42),a=r(37),i=Function.prototype.bind,o=Function.prototype.call,l=Object.keys,s=Object.prototype.propertyIsEnumerable;e.exports=function(e,t){return function(r,c){var u,f=arguments[2],d=arguments[3];return r=Object(a(r)),n(c),u=l(r),d&&u.sort("function"===typeof d?i.call(d,r):void 0),"function"!==typeof e&&(e=u[e]),o.call(e,u,(function(e,n){return s.call(r,e)?o.call(c,f,r[e],e,r,n):t}))}}},function(e,t,r){"use strict";var n=r(398),a=r(211),i=r(38),o=r(408).methods,l=r(409),s=r(422),c=Function.prototype.apply,u=Function.prototype.call,f=Object.create,d=Object.defineProperties,p=o.on,h=o.emit;e.exports=function(e,t,r){var o,g,v,y,m,b,x,w,_,k,T,A,S,M,O,C=f(null);return g=!1!==t?t:isNaN(e.length)?1:e.length,r.normalizer&&(k=s(r.normalizer),v=k.get,y=k.set,m=k.delete,b=k.clear),null!=r.resolvers&&(O=l(r.resolvers)),M=v?a((function(t){var r,a,i=arguments;if(O&&(i=O(i)),null!==(r=v(i))&&hasOwnProperty.call(C,r))return T&&o.emit("get",r,i,this),C[r];if(a=1===i.length?u.call(e,this,i[0]):c.call(e,this,i),null===r){if(null!==(r=v(i)))throw n("Circular invocation","CIRCULAR_INVOCATION");r=y(i)}else if(hasOwnProperty.call(C,r))throw n("Circular invocation","CIRCULAR_INVOCATION");return C[r]=a,A&&o.emit("set",r,null,a),a}),g):0===t?function(){var t;if(hasOwnProperty.call(C,"data"))return T&&o.emit("get","data",arguments,this),C.data;if(t=arguments.length?c.call(e,this,arguments):u.call(e,this),hasOwnProperty.call(C,"data"))throw n("Circular invocation","CIRCULAR_INVOCATION");return C.data=t,A&&o.emit("set","data",null,t),t}:function(t){var r,a,i=arguments;if(O&&(i=O(arguments)),a=String(i[0]),hasOwnProperty.call(C,a))return T&&o.emit("get",a,i,this),C[a];if(r=1===i.length?u.call(e,this,i[0]):c.call(e,this,i),hasOwnProperty.call(C,a))throw n("Circular invocation","CIRCULAR_INVOCATION");return C[a]=r,A&&o.emit("set",a,null,r),r},o={original:e,memoized:M,profileName:r.profileName,get:function(e){return O&&(e=O(e)),v?v(e):String(e[0])},has:function(e){return hasOwnProperty.call(C,e)},delete:function(e){var t;hasOwnProperty.call(C,e)&&(m&&m(e),t=C[e],delete C[e],S&&o.emit("delete",e,t))},clear:function(){var e=C;b&&b(),C=f(null),o.emit("clear",e)},on:function(e,t){return"get"===e?T=!0:"set"===e?A=!0:"delete"===e&&(S=!0),p.call(this,e,t)},emit:h,updateEnv:function(){e=o.original}},x=v?a((function(e){var t,r=arguments;O&&(r=O(r)),null!==(t=v(r))&&o.delete(t)}),g):0===t?function(){return o.delete("data")}:function(e){return O&&(e=O(arguments)[0]),o.delete(e)},w=a((function(){var e,r=arguments;return 0===t?C.data:(O&&(r=O(r)),e=v?v(r):String(r[0]),C[e])})),_=a((function(){var e,r=arguments;return 0===t?o.has("data"):(O&&(r=O(r)),null!==(e=v?v(r):String(r[0]))&&o.has(e))})),d(M,{__memoized__:i(!0),delete:i(x),clear:i(o.clear),_get:i(w),_has:i(_)}),o}},function(e,t,r){"use strict";var n=r(112),a=r(143),i=r(48),o=Error.captureStackTrace;e.exports=function(t){var r=new Error(t),l=arguments[1],s=arguments[2];return i(s)||a(l)&&(s=l,l=null),i(s)&&n(r,s),i(l)&&(r.code=l),o&&o(r,e.exports),r}},function(e,t,r){"use strict";e.exports=function(){var e,t=Object.assign;return"function"===typeof t&&(t(e={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),e.foo+e.bar+e.trzy==="razdwatrzy")}},function(e,t,r){"use strict";var n=r(401),a=r(37),i=Math.max;e.exports=function(e,t){var r,o,l,s=i(arguments.length,2);for(e=Object(a(e)),l=function(n){try{e[n]=t[n]}catch(a){r||(r=a)}},o=1;o<s;++o)n(t=arguments[o]).forEach(l);if(void 0!==r)throw r;return e}},function(e,t,r){"use strict";e.exports=r(402)()?Object.keys:r(403)},function(e,t,r){"use strict";e.exports=function(){try{return Object.keys("primitive"),!0}catch(e){return!1}}},function(e,t,r){"use strict";var n=r(48),a=Object.keys;e.exports=function(e){return a(n(e)?Object(e):e)}},function(e,t,r){"use strict";var n=r(405);e.exports=function(e){if("function"!==typeof e)return!1;if(!hasOwnProperty.call(e,"length"))return!1;try{if("number"!==typeof e.length)return!1;if("function"!==typeof e.call)return!1;if("function"!==typeof e.apply)return!1}catch(t){return!1}return!n(e)}},function(e,t,r){"use strict";var n=r(144);e.exports=function(e){if(!n(e))return!1;try{return!!e.constructor&&e.constructor.prototype===e}catch(t){return!1}}},function(e,t,r){"use strict";var n="razdwatrzy";e.exports=function(){return"function"===typeof n.contains&&(!0===n.contains("dwa")&&!1===n.contains("foo"))}},function(e,t,r){"use strict";var n=String.prototype.indexOf;e.exports=function(e){return n.call(this,e,arguments[1])>-1}},function(e,t,r){"use strict";var n,a,i,o,l,s,c,u=r(38),f=r(42),d=Function.prototype.apply,p=Function.prototype.call,h=Object.create,g=Object.defineProperty,v=Object.defineProperties,y=Object.prototype.hasOwnProperty,m={configurable:!0,enumerable:!1,writable:!0};a=function(e,t){var r,a;return f(t),a=this,n.call(this,e,r=function(){i.call(a,e,r),d.call(t,this,arguments)}),r.__eeOnceListener__=t,this},o=function(e){var t,r,n,a,i;if(y.call(this,"__ee__")&&(a=this.__ee__[e]))if("object"===typeof a){for(r=arguments.length,i=new Array(r-1),t=1;t<r;++t)i[t-1]=arguments[t];for(a=a.slice(),t=0;n=a[t];++t)d.call(n,this,i)}else switch(arguments.length){case 1:p.call(a,this);break;case 2:p.call(a,this,arguments[1]);break;case 3:p.call(a,this,arguments[1],arguments[2]);break;default:for(r=arguments.length,i=new Array(r-1),t=1;t<r;++t)i[t-1]=arguments[t];d.call(a,this,i)}},l={on:n=function(e,t){var r;return f(t),y.call(this,"__ee__")?r=this.__ee__:(r=m.value=h(null),g(this,"__ee__",m),m.value=null),r[e]?"object"===typeof r[e]?r[e].push(t):r[e]=[r[e],t]:r[e]=t,this},once:a,off:i=function(e,t){var r,n,a,i;if(f(t),!y.call(this,"__ee__"))return this;if(!(r=this.__ee__)[e])return this;if("object"===typeof(n=r[e]))for(i=0;a=n[i];++i)a!==t&&a.__eeOnceListener__!==t||(2===n.length?r[e]=n[i?0:1]:n.splice(i,1));else n!==t&&n.__eeOnceListener__!==t||delete r[e];return this},emit:o},s={on:u(n),once:u(a),off:u(i),emit:u(o)},c=v({},s),e.exports=t=function(e){return null==e?h(c):v(Object(e),s)},t.methods=l},function(e,t,r){"use strict";var n,a=r(410),i=r(48),o=r(42),l=Array.prototype.slice;n=function(e){return this.map((function(t,r){return t?t(e[r]):e[r]})).concat(l.call(e,this.length))},e.exports=function(e){return(e=a(e)).forEach((function(e){i(e)&&o(e)})),n.bind(e)}},function(e,t,r){"use strict";var n=r(113),a=Array.isArray;e.exports=function(e){return a(e)?e:n(e)}},function(e,t,r){"use strict";e.exports=function(){var e,t,r=Array.from;return"function"===typeof r&&(t=r(e=["raz","dwa"]),Boolean(t&&t!==e&&"dwa"===t[1]))}},function(e,t,r){"use strict";var n=r(62).iterator,a=r(115),i=r(421),o=r(60),l=r(42),s=r(37),c=r(48),u=r(116),f=Array.isArray,d=Function.prototype.call,p={configurable:!0,enumerable:!0,writable:!0,value:null},h=Object.defineProperty;e.exports=function(e){var t,r,g,v,y,m,b,x,w,_,k=arguments[1],T=arguments[2];if(e=Object(s(e)),c(k)&&l(k),this&&this!==Array&&i(this))t=this;else{if(!k){if(a(e))return 1!==(y=e.length)?Array.apply(null,e):((v=new Array(1))[0]=e[0],v);if(f(e)){for(v=new Array(y=e.length),r=0;r<y;++r)v[r]=e[r];return v}}v=[]}if(!f(e))if(void 0!==(w=e[n])){for(b=l(w).call(e),t&&(v=new t),x=b.next(),r=0;!x.done;)_=k?d.call(k,T,x.value,r):x.value,t?(p.value=_,h(v,r,p)):v[r]=_,x=b.next(),++r;y=r}else if(u(e)){for(y=e.length,t&&(v=new t),r=0,g=0;r<y;++r)_=e[r],r+1<y&&(m=_.charCodeAt(0))>=55296&&m<=56319&&(_+=e[++r]),_=k?d.call(k,T,_,g):_,t?(p.value=_,h(v,g,p)):v[g]=_,++g;y=g}if(void 0===y)for(y=o(e.length),t&&(v=new t(y)),r=0;r<y;++r)_=k?d.call(k,T,e[r],r):e[r],t?(p.value=_,h(v,r,p)):v[r]=_;return t&&(p.value=null,v.length=y),v}},function(e,t,r){"use strict";var n=r(114),a={object:!0,symbol:!0};e.exports=function(){var e,t=n.Symbol;if("function"!==typeof t)return!1;e=t("test symbol");try{String(e)}catch(r){return!1}return!!a[typeof t.iterator]&&(!!a[typeof t.toPrimitive]&&!!a[typeof t.toStringTag])}},function(e,t,r){"use strict";e.exports=function(){return"object"===typeof globalThis&&(!!globalThis&&globalThis.Array===Array)}},function(e,t){var r=function(){if("object"===typeof self&&self)return self;if("object"===typeof window&&window)return window;throw new Error("Unable to resolve global `this`")};e.exports=function(){if(this)return this;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this},configurable:!0})}catch(e){return r()}try{return __global__||r()}finally{delete Object.prototype.__global__}}()},function(e,t,r){"use strict";var n,a,i,o=r(38),l=r(215),s=r(114).Symbol,c=r(418),u=r(419),f=r(420),d=Object.create,p=Object.defineProperties,h=Object.defineProperty;if("function"===typeof s)try{String(s()),i=!0}catch(g){}else s=null;a=function(e){if(this instanceof a)throw new TypeError("Symbol is not a constructor");return n(e)},e.exports=n=function e(t){var r;if(this instanceof e)throw new TypeError("Symbol is not a constructor");return i?s(t):(r=d(a.prototype),t=void 0===t?"":String(t),p(r,{__description__:o("",t),__name__:o("",c(t))}))},u(n),f(n),p(a.prototype,{constructor:o(n),toString:o("",(function(){return this.__name__}))}),p(n.prototype,{toString:o((function(){return"Symbol ("+l(this).__description__+")"})),valueOf:o((function(){return l(this)}))}),h(n.prototype,n.toPrimitive,o("",(function(){var e=l(this);return"symbol"===typeof e?e:e.toString()}))),h(n.prototype,n.toStringTag,o("c","Symbol")),h(a.prototype,n.toStringTag,o("c",n.prototype[n.toStringTag])),h(a.prototype,n.toPrimitive,o("c",n.prototype[n.toPrimitive]))},function(e,t,r){"use strict";e.exports=function(e){return!!e&&("symbol"===typeof e||!!e.constructor&&("Symbol"===e.constructor.name&&"Symbol"===e[e.constructor.toStringTag]))}},function(e,t,r){"use strict";var n=r(38),a=Object.create,i=Object.defineProperty,o=Object.prototype,l=a(null);e.exports=function(e){for(var t,r,a=0;l[e+(a||"")];)++a;return l[e+=a||""]=!0,i(o,t="@@"+e,n.gs(null,(function(e){r||(r=!0,i(this,t,n(e)),r=!1)}))),t}},function(e,t,r){"use strict";var n=r(38),a=r(114).Symbol;e.exports=function(e){return Object.defineProperties(e,{hasInstance:n("",a&&a.hasInstance||e("hasInstance")),isConcatSpreadable:n("",a&&a.isConcatSpreadable||e("isConcatSpreadable")),iterator:n("",a&&a.iterator||e("iterator")),match:n("",a&&a.match||e("match")),replace:n("",a&&a.replace||e("replace")),search:n("",a&&a.search||e("search")),species:n("",a&&a.species||e("species")),split:n("",a&&a.split||e("split")),toPrimitive:n("",a&&a.toPrimitive||e("toPrimitive")),toStringTag:n("",a&&a.toStringTag||e("toStringTag")),unscopables:n("",a&&a.unscopables||e("unscopables"))})}},function(e,t,r){"use strict";var n=r(38),a=r(215),i=Object.create(null);e.exports=function(e){return Object.defineProperties(e,{for:n((function(t){return i[t]?i[t]:i[t]=e(String(t))})),keyFor:n((function(e){var t;for(t in a(e),i)if(i[t]===e)return t}))})}},function(e,t,r){"use strict";var n=Object.prototype.toString,a=RegExp.prototype.test.bind(/^[object [A-Za-z0-9]*Function]$/);e.exports=function(e){return"function"===typeof e&&a(n.call(e))}},function(e,t,r){"use strict";var n=r(42);e.exports=function(e){var t;return"function"===typeof e?{set:e,get:e}:(t={get:n(e.get)},void 0!==e.set?(t.set=n(e.set),e.delete&&(t.delete=n(e.delete)),e.clear&&(t.clear=n(e.clear)),t):(t.set=t.get,t))}},function(e,t,r){"use strict";e.exports=function(e){var t,r,n=e.length;if(!n)return"\x02";for(t=String(e[r=0]);--n;)t+="\x01"+e[++r];return t}},function(e,t,r){"use strict";e.exports=function(e){return e?function(t){for(var r=String(t[0]),n=0,a=e;--a;)r+="\x01"+t[++n];return r}:function(){return""}}},function(e,t,r){"use strict";var n=r(145),a=Object.create;e.exports=function(){var e=0,t=[],r=a(null);return{get:function(e){var r,a=0,i=t,o=e.length;if(0===o)return i[o]||null;if(i=i[o]){for(;a<o-1;){if(-1===(r=n.call(i[0],e[a])))return null;i=i[1][r],++a}return-1===(r=n.call(i[0],e[a]))?null:i[1][r]||null}return null},set:function(a){var i,o=0,l=t,s=a.length;if(0===s)l[s]=++e;else{for(l[s]||(l[s]=[[],[]]),l=l[s];o<s-1;)-1===(i=n.call(l[0],a[o]))&&(i=l[0].push(a[o])-1,l[1].push([[],[]])),l=l[1][i],++o;-1===(i=n.call(l[0],a[o]))&&(i=l[0].push(a[o])-1),l[1][i]=++e}return r[e]=a,e},delete:function(e){var a,i=0,o=t,l=r[e],s=l.length,c=[];if(0===s)delete o[s];else if(o=o[s]){for(;i<s-1;){if(-1===(a=n.call(o[0],l[i])))return;c.push(o,a),o=o[1][a],++i}if(-1===(a=n.call(o[0],l[i])))return;for(e=o[1][a],o[0].splice(a,1),o[1].splice(a,1);!o[0].length&&c.length;)a=c.pop(),(o=c.pop())[0].splice(a,1),o[1].splice(a,1)}delete r[e]},clear:function(){t=[],r=a(null)}}}},function(e,t,r){"use strict";e.exports=r(427)()?Number.isNaN:r(428)},function(e,t,r){"use strict";e.exports=function(){var e=Number.isNaN;return"function"===typeof e&&(!e({})&&e(NaN)&&!e(34))}},function(e,t,r){"use strict";e.exports=function(e){return e!==e}},function(e,t,r){"use strict";var n=r(145);e.exports=function(){var e=0,t=[],r=[];return{get:function(e){var a=n.call(t,e[0]);return-1===a?null:r[a]},set:function(n){return t.push(n[0]),r.push(++e),e},delete:function(e){var a=n.call(r,e);-1!==a&&(t.splice(a,1),r.splice(a,1))},clear:function(){t=[],r=[]}}}},function(e,t,r){"use strict";var n=r(145),a=Object.create;e.exports=function(e){var t=0,r=[[],[]],i=a(null);return{get:function(t){for(var a,i=0,o=r;i<e-1;){if(-1===(a=n.call(o[0],t[i])))return null;o=o[1][a],++i}return-1===(a=n.call(o[0],t[i]))?null:o[1][a]||null},set:function(a){for(var o,l=0,s=r;l<e-1;)-1===(o=n.call(s[0],a[l]))&&(o=s[0].push(a[l])-1,s[1].push([[],[]])),s=s[1][o],++l;return-1===(o=n.call(s[0],a[l]))&&(o=s[0].push(a[l])-1),s[1][o]=++t,i[t]=a,t},delete:function(t){for(var a,o=0,l=r,s=[],c=i[t];o<e-1;){if(-1===(a=n.call(l[0],c[o])))return;s.push(l,a),l=l[1][a],++o}if(-1!==(a=n.call(l[0],c[o]))){for(t=l[1][a],l[0].splice(a,1),l[1].splice(a,1);!l[0].length&&s.length;)a=s.pop(),(l=s.pop())[0].splice(a,1),l[1].splice(a,1);delete i[t]}},clear:function(){r=[[],[]],i=a(null)}}}},function(e,t,r){"use strict";var n=r(113),a=r(146),i=r(212),o=r(211),l=r(147),s=Array.prototype.slice,c=Function.prototype.apply,u=Object.create;r(61).async=function(e,t){var r,f,d,p=u(null),h=u(null),g=t.memoized,v=t.original;t.memoized=o((function(e){var t=arguments,n=t[t.length-1];return"function"===typeof n&&(r=n,t=s.call(t,0,-1)),g.apply(f=this,d=t)}),g);try{i(t.memoized,g)}catch(y){}t.on("get",(function(e){var n,a,i;if(r){if(p[e])return"function"===typeof p[e]?p[e]=[p[e],r]:p[e].push(r),void(r=null);n=r,a=f,i=d,r=f=d=null,l((function(){var o;hasOwnProperty.call(h,e)?(o=h[e],t.emit("getasync",e,i,a),c.call(n,o.context,o.args)):(r=n,f=a,d=i,g.apply(a,i))}))}})),t.original=function(){var e,a,i,o;return r?(e=n(arguments),a=function e(r){var a,i,s=e.id;if(null!=s){if(delete e.id,a=p[s],delete p[s],a)return i=n(arguments),t.has(s)&&(r?t.delete(s):(h[s]={context:this,args:i},t.emit("setasync",s,"function"===typeof a?1:a.length))),"function"===typeof a?o=c.call(a,this,i):a.forEach((function(e){o=c.call(e,this,i)}),this),o}else l(c.bind(e,this,arguments))},i=r,r=f=d=null,e.push(a),o=c.call(v,this,e),a.cb=i,r=a,o):c.call(v,this,arguments)},t.on("set",(function(e){r?(p[e]?"function"===typeof p[e]?p[e]=[p[e],r.cb]:p[e].push(r.cb):p[e]=r.cb,delete r.cb,r.id=e,r=null):t.delete(e)})),t.on("delete",(function(e){var r;hasOwnProperty.call(p,e)||h[e]&&(r=h[e],delete h[e],t.emit("deleteasync",e,s.call(r.args,1)))})),t.on("clear",(function(){var e=h;h=u(null),t.emit("clearasync",a(e,(function(e){return s.call(e.args,1)})))}))}},function(e,t,r){(function(e,t){!function(e,r){"use strict";if(!e.setImmediate){var n,a=1,i={},o=!1,l=e.document,s=Object.getPrototypeOf&&Object.getPrototypeOf(e);s=s&&s.setTimeout?s:e,"[object process]"==={}.toString.call(e.process)?n=function(e){t.nextTick((function(){u(e)}))}:function(){if(e.postMessage&&!e.importScripts){var t=!0,r=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=r,t}}()?function(){var t="setImmediate$"+Math.random()+"$",r=function(r){r.source===e&&"string"===typeof r.data&&0===r.data.indexOf(t)&&u(+r.data.slice(t.length))};e.addEventListener?e.addEventListener("message",r,!1):e.attachEvent("onmessage",r),n=function(r){e.postMessage(t+r,"*")}}():e.MessageChannel?function(){var e=new MessageChannel;e.port1.onmessage=function(e){u(e.data)},n=function(t){e.port2.postMessage(t)}}():l&&"onreadystatechange"in l.createElement("script")?function(){var e=l.documentElement;n=function(t){var r=l.createElement("script");r.onreadystatechange=function(){u(t),r.onreadystatechange=null,e.removeChild(r),r=null},e.appendChild(r)}}():n=function(e){setTimeout(u,0,e)},s.setImmediate=function(e){"function"!==typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),r=0;r<t.length;r++)t[r]=arguments[r+1];var o={callback:e,args:t};return i[a]=o,n(a),a++},s.clearImmediate=c}function c(e){delete i[e]}function u(e){if(o)setTimeout(u,0,e);else{var t=i[e];if(t){o=!0;try{!function(e){var t=e.callback,r=e.args;switch(r.length){case 0:t();break;case 1:t(r[0]);break;case 2:t(r[0],r[1]);break;case 3:t(r[0],r[1],r[2]);break;default:t.apply(void 0,r)}}(t)}finally{c(e),o=!1}}}}}("undefined"===typeof self?"undefined"===typeof e?this:e:self)}).call(this,r(27),r(109))},function(e,t,r){"use strict";var n=r(146),a=r(434),i=r(435),o=r(437),l=r(217),s=r(147),c=Object.create,u=a("then","then:finally","done","done:finally");r(61).promise=function(e,t){var r=c(null),a=c(null),f=c(null);if(!0===e)e=null;else if(e=i(e),!u[e])throw new TypeError("'"+o(e)+"' is not valid promise mode");t.on("set",(function(n,i,o){var c=!1;if(!l(o))return a[n]=o,void t.emit("setasync",n,1);r[n]=1,f[n]=o;var u=function(e){var i=r[n];if(c)throw new Error("Memoizee error: Detected unordered then|done & finally resolution, which in turn makes proper detection of success/failure impossible (when in 'done:finally' mode)\nConsider to rely on 'then' or 'done' mode instead.");i&&(delete r[n],a[n]=e,t.emit("setasync",n,i))},d=function(){c=!0,r[n]&&(delete r[n],delete f[n],t.delete(n))},p=e;if(p||(p="then"),"then"===p){var h=function(){s(d)};"function"===typeof(o=o.then((function(e){s(u.bind(this,e))}),h)).finally&&o.finally(h)}else if("done"===p){if("function"!==typeof o.done)throw new Error("Memoizee error: Retrieved promise does not implement 'done' in 'done' mode");o.done(u,d)}else if("done:finally"===p){if("function"!==typeof o.done)throw new Error("Memoizee error: Retrieved promise does not implement 'done' in 'done:finally' mode");if("function"!==typeof o.finally)throw new Error("Memoizee error: Retrieved promise does not implement 'finally' in 'done:finally' mode");o.done(u),o.finally(d)}})),t.on("get",(function(e,n,a){var i;if(r[e])++r[e];else{i=f[e];var o=function(){t.emit("getasync",e,n,a)};l(i)?"function"===typeof i.done?i.done(o):i.then((function(){s(o)})):o()}})),t.on("delete",(function(e){if(delete f[e],r[e])delete r[e];else if(hasOwnProperty.call(a,e)){var n=a[e];delete a[e],t.emit("deleteasync",e,[n])}})),t.on("clear",(function(){var e=a;a=c(null),r=c(null),f=c(null),t.emit("clearasync",n(e,(function(e){return[e]})))}))}},function(e,t,r){"use strict";var n=Array.prototype.forEach,a=Object.create;e.exports=function(e){var t=a(null);return n.call(arguments,(function(e){t[e]=!0})),t}},function(e,t,r){"use strict";var n=r(37),a=r(436);e.exports=function(e){return a(n(e))}},function(e,t,r){"use strict";var n=r(216);e.exports=function(e){try{return e&&n(e.toString)?e.toString():String(e)}catch(t){throw new TypeError("Passed argument cannot be stringifed")}}},function(e,t,r){"use strict";var n=r(438),a=/[\n\r\u2028\u2029]/g;e.exports=function(e){var t=n(e);return t.length>100&&(t=t.slice(0,99)+"\u2026"),t=t.replace(a,(function(e){return JSON.stringify(e).slice(1,-1)}))}},function(e,t,r){"use strict";var n=r(216);e.exports=function(e){try{return e&&n(e.toString)?e.toString():String(e)}catch(t){return"<Non-coercible to string value>"}}},function(e,t,r){"use strict";var n=r(42),a=r(111),i=r(61),o=Function.prototype.apply;i.dispose=function(e,t,r){var l;if(n(e),r.async&&i.async||r.promise&&i.promise)return t.on("deleteasync",l=function(t,r){o.call(e,null,r)}),void t.on("clearasync",(function(e){a(e,(function(e,t){l(t,e)}))}));t.on("delete",l=function(t,r){e(r)}),t.on("clear",(function(e){a(e,(function(e,t){l(t,e)}))}))}},function(e,t,r){"use strict";var n=r(113),a=r(111),i=r(147),o=r(217),l=r(441),s=r(61),c=Function.prototype,u=Math.max,f=Math.min,d=Object.create;s.maxAge=function(e,t,r){var p,h,g,v;(e=l(e))&&(p=d(null),h=r.async&&s.async||r.promise&&s.promise?"async":"",t.on("set"+h,(function(r){p[r]=setTimeout((function(){t.delete(r)}),e),"function"===typeof p[r].unref&&p[r].unref(),v&&(v[r]&&"nextTick"!==v[r]&&clearTimeout(v[r]),v[r]=setTimeout((function(){delete v[r]}),g),"function"===typeof v[r].unref&&v[r].unref())})),t.on("delete"+h,(function(e){clearTimeout(p[e]),delete p[e],v&&("nextTick"!==v[e]&&clearTimeout(v[e]),delete v[e])})),r.preFetch&&(g=!0===r.preFetch||isNaN(r.preFetch)?.333:u(f(Number(r.preFetch),1),0))&&(v={},g=(1-g)*e,t.on("get"+h,(function(e,a,l){v[e]||(v[e]="nextTick",i((function(){var i;"nextTick"===v[e]&&(delete v[e],t.delete(e),r.async&&(a=n(a)).push(c),i=t.memoized.apply(l,a),r.promise&&o(i)&&("function"===typeof i.done?i.done(c,c):i.then(c,c)))})))}))),t.on("clear"+h,(function(){a(p,(function(e){clearTimeout(e)})),p={},v&&(a(v,(function(e){"nextTick"!==e&&clearTimeout(e)})),v={})})))}},function(e,t,r){"use strict";var n=r(60),a=r(442);e.exports=function(e){if((e=n(e))>a)throw new TypeError(e+" exceeds maximum possible timeout");return e}},function(e,t,r){"use strict";e.exports=2147483647},function(e,t,r){"use strict";var n=r(60),a=r(444),i=r(61);i.max=function(e,t,r){var o,l,s;(e=n(e))&&(l=a(e),o=r.async&&i.async||r.promise&&i.promise?"async":"",t.on("set"+o,s=function(e){void 0!==(e=l.hit(e))&&t.delete(e)}),t.on("get"+o,s),t.on("delete"+o,l.delete),t.on("clear"+o,l.clear))}},function(e,t,r){"use strict";var n=r(60),a=Object.create,i=Object.prototype.hasOwnProperty;e.exports=function(e){var t,r=0,o=1,l=a(null),s=a(null),c=0;return e=n(e),{hit:function(n){var a=s[n],u=++c;if(l[u]=n,s[n]=u,!a){if(++r<=e)return;return n=l[o],t(n),n}if(delete l[a],o===a)for(;!i.call(l,++o););},delete:t=function(e){var t=s[e];if(t&&(delete l[t],delete s[e],--r,o===t)){if(!r)return c=0,void(o=1);for(;!i.call(l,++o););}},clear:function(){r=0,o=1,l=a(null),s=a(null),c=0}}}},function(e,t,r){"use strict";var n=r(38),a=r(61),i=Object.create,o=Object.defineProperties;a.refCounter=function(e,t,r){var l,s;l=i(null),s=r.async&&a.async||r.promise&&a.promise?"async":"",t.on("set"+s,(function(e,t){l[e]=t||1})),t.on("get"+s,(function(e){++l[e]})),t.on("delete"+s,(function(e){delete l[e]})),t.on("clear"+s,(function(){l={}})),o(t.memoized,{deleteRef:n((function(){var e=t.get(arguments);return null===e?null:l[e]?!--l[e]&&(t.delete(e),!0):null})),getRefCount:n((function(){var e=t.get(arguments);return null===e?0:l[e]?l[e]:0}))})}},function(e,t,r){"use strict";var n;if(!Object.keys){var a=Object.prototype.hasOwnProperty,i=Object.prototype.toString,o=r(219),l=Object.prototype.propertyIsEnumerable,s=!l.call({toString:null},"toString"),c=l.call((function(){}),"prototype"),u=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],f=function(e){var t=e.constructor;return t&&t.prototype===e},d={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},p=function(){if("undefined"===typeof window)return!1;for(var e in window)try{if(!d["$"+e]&&a.call(window,e)&&null!==window[e]&&"object"===typeof window[e])try{f(window[e])}catch(t){return!0}}catch(t){return!0}return!1}();n=function(e){var t=null!==e&&"object"===typeof e,r="[object Function]"===i.call(e),n=o(e),l=t&&"[object String]"===i.call(e),d=[];if(!t&&!r&&!n)throw new TypeError("Object.keys called on a non-object");var h=c&&r;if(l&&e.length>0&&!a.call(e,0))for(var g=0;g<e.length;++g)d.push(String(g));if(n&&e.length>0)for(var v=0;v<e.length;++v)d.push(String(v));else for(var y in e)h&&"prototype"===y||!a.call(e,y)||d.push(String(y));if(s)for(var m=function(e){if("undefined"===typeof window||!p)return f(e);try{return f(e)}catch(t){return!1}}(e),b=0;b<u.length;++b)m&&"constructor"===u[b]||!a.call(e,u[b])||d.push(u[b]);return d}}e.exports=n},function(e,t,r){"use strict";var n="Function.prototype.bind called on incompatible ",a=Array.prototype.slice,i=Object.prototype.toString,o="[object Function]";e.exports=function(e){var t=this;if("function"!==typeof t||i.call(t)!==o)throw new TypeError(n+t);for(var r,l=a.call(arguments,1),s=function(){if(this instanceof r){var n=t.apply(this,l.concat(a.call(arguments)));return Object(n)===n?n:this}return t.apply(e,l.concat(a.call(arguments)))},c=Math.max(0,t.length-l.length),u=[],f=0;f<c;f++)u.push("$"+f);if(r=Function("binder","return function ("+u.join(",")+"){ return binder.apply(this,arguments); }")(s),t.prototype){var d=function(){};d.prototype=t.prototype,r.prototype=new d,d.prototype=null}return r}},function(e,t,r){"use strict";var n=r(151);e.exports=n.call(Function.call,Object.prototype.hasOwnProperty)},function(e,t,r){"use strict";var n=r(64),a=r(118),i=r(221),o=r(222),l=r(450),s=a(o(),Object);n(s,{getPolyfill:o,implementation:i,shim:l}),e.exports=s},function(e,t,r){"use strict";var n=r(222),a=r(64);e.exports=function(){var e=n();return a(Object,{is:e},{is:function(){return Object.is!==e}}),e}},function(e,t,r){"use strict";var n,a,i,o,l=r(43),s=r(54)();if(s){n=l("Object.prototype.hasOwnProperty"),a=l("RegExp.prototype.exec"),i={};var c=function(){throw i};o={toString:c,valueOf:c},"symbol"===typeof Symbol.toPrimitive&&(o[Symbol.toPrimitive]=c)}var u=l("Object.prototype.toString"),f=Object.getOwnPropertyDescriptor;e.exports=s?function(e){if(!e||"object"!==typeof e)return!1;var t=f(e,"lastIndex");if(!(t&&n(t,"value")))return!1;try{a(e,o)}catch(r){return r===i}}:function(e){return!(!e||"object"!==typeof e&&"function"!==typeof e)&&"[object RegExp]"===u(e)}},function(e,t,r){"use strict";var n=r(64),a=r(118),i=r(223),o=r(224),l=r(453),s=a(o());n(s,{getPolyfill:o,implementation:i,shim:l}),e.exports=s},function(e,t,r){"use strict";var n=r(64).supportsDescriptors,a=r(224),i=Object.getOwnPropertyDescriptor,o=Object.defineProperty,l=TypeError,s=Object.getPrototypeOf,c=/a/;e.exports=function(){if(!n||!s)throw new l("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var e=a(),t=s(c),r=i(t,"flags");return r&&r.get===e||o(t,"flags",{configurable:!0,enumerable:!1,get:e}),e}},function(e,t,r){"use strict";var n=Date.prototype.getDay,a=Object.prototype.toString,i=r(54)();e.exports=function(e){return"object"===typeof e&&null!==e&&(i?function(e){try{return n.call(e),!0}catch(t){return!1}}(e):"[object Date]"===a.call(e))}},function(e,t,r){"use strict";var n=r(226),a=r(456),i=r(457),o=r(458),l=r(459);e.exports=function(e){return null==e||"object"!==typeof e&&"function"!==typeof e?null:n(e)?"String":a(e)?"Number":i(e)?"Boolean":o(e)?"Symbol":l(e)?"BigInt":void 0}},function(e,t,r){"use strict";var n=Number.prototype.toString,a=Object.prototype.toString,i=r(54)();e.exports=function(e){return"number"===typeof e||"object"===typeof e&&(i?function(e){try{return n.call(e),!0}catch(t){return!1}}(e):"[object Number]"===a.call(e))}},function(e,t,r){"use strict";var n=r(43),a=n("Boolean.prototype.toString"),i=n("Object.prototype.toString"),o=r(54)();e.exports=function(e){return"boolean"===typeof e||null!==e&&"object"===typeof e&&(o&&Symbol.toStringTag in e?function(e){try{return a(e),!0}catch(t){return!1}}(e):"[object Boolean]"===i(e))}},function(e,t,r){"use strict";var n=Object.prototype.toString;if(r(150)()){var a=Symbol.prototype.toString,i=/^Symbol\(.*\)$/;e.exports=function(e){if("symbol"===typeof e)return!0;if("[object Symbol]"!==n.call(e))return!1;try{return function(e){return"symbol"===typeof e.valueOf()&&i.test(a.call(e))}(e)}catch(t){return!1}}}else e.exports=function(e){return!1}},function(e,t,r){"use strict";if(r(460)()){var n=BigInt.prototype.valueOf;e.exports=function(e){return null!==e&&"undefined"!==typeof e&&"boolean"!==typeof e&&"string"!==typeof e&&"number"!==typeof e&&"symbol"!==typeof e&&"function"!==typeof e&&("bigint"===typeof e||function(e){try{return n.call(e),!0}catch(t){}return!1}(e))}}else e.exports=function(e){return!1}},function(e,t,r){"use strict";(function(t){var r=t.BigInt;e.exports=function(){return"function"===typeof r&&"function"===typeof BigInt&&"bigint"===typeof r(42)&&"bigint"===typeof BigInt(42)}}).call(this,r(27))},function(e,t,r){"use strict";var n=r(227),a=r(228),i=r(462),o=r(463);e.exports=function(e){if(e&&"object"===typeof e){if(n(e))return"Map";if(a(e))return"Set";if(i(e))return"WeakMap";if(o(e))return"WeakSet"}return!1}},function(e,t,r){"use strict";var n,a="function"===typeof WeakMap&&WeakMap.prototype?WeakMap:null,i="function"===typeof WeakSet&&WeakSet.prototype?WeakSet:null;a||(n=function(e){return!1});var o=a?a.prototype.has:null,l=i?i.prototype.has:null;n||o||(n=function(e){return!1}),e.exports=n||function(e){if(!e||"object"!==typeof e)return!1;try{if(o.call(e,o),l)try{l.call(e,l)}catch(t){return!0}return e instanceof a}catch(t){}return!1}},function(e,t,r){"use strict";var n=r(63),a=r(43),i=n("%WeakSet%",!0),o=a("WeakSet.prototype.has",!0);if(o){var l=a("WeakMap.prototype.has",!0);e.exports=function(e){if(!e||"object"!==typeof e)return!1;try{if(o(e,o),l)try{l(e,l)}catch(t){return!0}return e instanceof i}catch(t){}return!1}}else e.exports=function(e){return!1}},function(e,t,r){"use strict";(function(t){var n=r(220);if(r(150)()||r(117)()){var a=Symbol.iterator;e.exports=function(e){return null!=e&&"undefined"!==typeof e[a]?e[a]():n(e)?Array.prototype[a].call(e):void 0}}else{var i=r(225),o=r(226),l=r(63),s=l("%Map%",!0),c=l("%Set%",!0),u=r(43),f=u("Array.prototype.push"),d=u("String.prototype.charCodeAt"),p=u("String.prototype.slice"),h=function(e){var t=0;return{next:function(){var r,n=t>=e.length;return n||(r=e[t],t+=1),{done:n,value:r}}}},g=function(e,t){if(i(e)||n(e))return h(e);if(o(e)){var r=0;return{next:function(){var t=function(e,t){if(t+1>=e.length)return t+1;var r=d(e,t);if(r<55296||r>56319)return t+1;var n=d(e,t+1);return n<56320||n>57343?t+1:t+2}(e,r),n=p(e,r,t);return r=t,{done:t>e.length,value:n}}}}return t&&"undefined"!==typeof e["_es6-shim iterator_"]?e["_es6-shim iterator_"]():void 0};if(s||c){var v=r(227),y=r(228),m=u("Map.prototype.forEach",!0),b=u("Set.prototype.forEach",!0);if("undefined"===typeof t||!t.versions||!t.versions.node)var x=u("Map.prototype.iterator",!0),w=u("Set.prototype.iterator",!0),_=function(e){var t=!1;return{next:function(){try{return{done:t,value:t?void 0:e.next()}}catch(r){return t=!0,{done:!0,value:void 0}}}}};var k=u("Map.prototype.@@iterator",!0)||u("Map.prototype._es6-shim iterator_",!0),T=u("Set.prototype.@@iterator",!0)||u("Set.prototype._es6-shim iterator_",!0);e.exports=function(e){return function(e){if(v(e)){if(x)return _(x(e));if(k)return k(e);if(m){var t=[];return m(e,(function(e,r){f(t,[r,e])})),h(t)}}if(y(e)){if(w)return _(w(e));if(T)return T(e);if(b){var r=[];return b(e,(function(e){f(r,e)})),h(r)}}}(e)||g(e)}}else e.exports=function(e){if(null!=e)return g(e,!0)}}}).call(this,r(109))},function(e,t,r){"use strict";var n=r(63),a=r(43),i=r(466),o=n("%TypeError%"),l=n("%WeakMap%",!0),s=n("%Map%",!0),c=a("WeakMap.prototype.get",!0),u=a("WeakMap.prototype.set",!0),f=a("WeakMap.prototype.has",!0),d=a("Map.prototype.get",!0),p=a("Map.prototype.set",!0),h=a("Map.prototype.has",!0),g=function(e,t){for(var r,n=e;null!==(r=n.next);n=r)if(r.key===t)return n.next=r.next,r.next=e.next,e.next=r,r};e.exports=function(){var e,t,r,n={assert:function(e){if(!n.has(e))throw new o("Side channel does not contain "+i(e))},get:function(n){if(l&&n&&("object"===typeof n||"function"===typeof n)){if(e)return c(e,n)}else if(s){if(t)return d(t,n)}else if(r)return function(e,t){var r=g(e,t);return r&&r.value}(r,n)},has:function(n){if(l&&n&&("object"===typeof n||"function"===typeof n)){if(e)return f(e,n)}else if(s){if(t)return h(t,n)}else if(r)return function(e,t){return!!g(e,t)}(r,n);return!1},set:function(n,a){l&&n&&("object"===typeof n||"function"===typeof n)?(e||(e=new l),u(e,n,a)):s?(t||(t=new s),p(t,n,a)):(r||(r={key:{},next:null}),function(e,t,r){var n=g(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}}(r,n,a))}};return n}},function(e,t,r){var n="function"===typeof Map&&Map.prototype,a=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=n&&a&&"function"===typeof a.get?a.get:null,o=n&&Map.prototype.forEach,l="function"===typeof Set&&Set.prototype,s=Object.getOwnPropertyDescriptor&&l?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,c=l&&s&&"function"===typeof s.get?s.get:null,u=l&&Set.prototype.forEach,f="function"===typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,d="function"===typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,p="function"===typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,h=Boolean.prototype.valueOf,g=Object.prototype.toString,v=Function.prototype.toString,y=String.prototype.match,m=String.prototype.slice,b=String.prototype.replace,x=String.prototype.toUpperCase,w=String.prototype.toLowerCase,_=RegExp.prototype.test,k=Array.prototype.concat,T=Array.prototype.join,A=Array.prototype.slice,S=Math.floor,M="function"===typeof BigInt?BigInt.prototype.valueOf:null,O=Object.getOwnPropertySymbols,C="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?Symbol.prototype.toString:null,E="function"===typeof Symbol&&"object"===typeof Symbol.iterator,L="function"===typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===E||"symbol")?Symbol.toStringTag:null,P=Object.prototype.propertyIsEnumerable,j=("function"===typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function z(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||_.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"===typeof e){var n=e<0?-S(-e):S(e);if(n!==e){var a=String(n),i=m.call(t,a.length+1);return b.call(a,r,"$&_")+"."+b.call(b.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return b.call(t,r,"$&_")}var D=r(467).custom,I=D&&B(D)?D:null;function N(e,t,r){var n="double"===(r.quoteStyle||t)?'"':"'";return n+e+n}function R(e){return b.call(String(e),/"/g,"&quot;")}function F(e){return"[object Array]"===V(e)&&(!L||!("object"===typeof e&&L in e))}function B(e){if(E)return e&&"object"===typeof e&&e instanceof Symbol;if("symbol"===typeof e)return!0;if(!e||"object"!==typeof e||!C)return!1;try{return C.call(e),!0}catch(t){}return!1}e.exports=function e(t,r,n,a){var l=r||{};if(H(l,"quoteStyle")&&"single"!==l.quoteStyle&&"double"!==l.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(H(l,"maxStringLength")&&("number"===typeof l.maxStringLength?l.maxStringLength<0&&l.maxStringLength!==1/0:null!==l.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var s=!H(l,"customInspect")||l.customInspect;if("boolean"!==typeof s&&"symbol"!==s)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(H(l,"indent")&&null!==l.indent&&"\t"!==l.indent&&!(parseInt(l.indent,10)===l.indent&&l.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(H(l,"numericSeparator")&&"boolean"!==typeof l.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var g=l.numericSeparator;if("undefined"===typeof t)return"undefined";if(null===t)return"null";if("boolean"===typeof t)return t?"true":"false";if("string"===typeof t)return W(t,l);if("number"===typeof t){if(0===t)return 1/0/t>0?"0":"-0";var x=String(t);return g?z(t,x):x}if("bigint"===typeof t){var _=String(t)+"n";return g?z(t,_):_}var S="undefined"===typeof l.depth?5:l.depth;if("undefined"===typeof n&&(n=0),n>=S&&S>0&&"object"===typeof t)return F(t)?"[Array]":"[Object]";var O=function(e,t){var r;if("\t"===e.indent)r="\t";else{if(!("number"===typeof e.indent&&e.indent>0))return null;r=T.call(Array(e.indent+1)," ")}return{base:r,prev:T.call(Array(t+1),r)}}(l,n);if("undefined"===typeof a)a=[];else if(q(a,t)>=0)return"[Circular]";function D(t,r,i){if(r&&(a=A.call(a)).push(r),i){var o={depth:l.depth};return H(l,"quoteStyle")&&(o.quoteStyle=l.quoteStyle),e(t,o,n+1,a)}return e(t,l,n+1,a)}if("function"===typeof t){var U=function(e){if(e.name)return e.name;var t=y.call(v.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),Y=Q(t,D);return"[Function"+(U?": "+U:" (anonymous)")+"]"+(Y.length>0?" { "+T.call(Y,", ")+" }":"")}if(B(t)){var K=E?b.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):C.call(t);return"object"!==typeof t||E?K:G(K)}if(function(e){if(!e||"object"!==typeof e)return!1;if("undefined"!==typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"===typeof e.nodeName&&"function"===typeof e.getAttribute}(t)){for(var J="<"+w.call(String(t.nodeName)),ee=t.attributes||[],te=0;te<ee.length;te++)J+=" "+ee[te].name+"="+N(R(ee[te].value),"double",l);return J+=">",t.childNodes&&t.childNodes.length&&(J+="..."),J+="</"+w.call(String(t.nodeName))+">"}if(F(t)){if(0===t.length)return"[]";var re=Q(t,D);return O&&!function(e){for(var t=0;t<e.length;t++)if(q(e[t],"\n")>=0)return!1;return!0}(re)?"["+$(re,O)+"]":"[ "+T.call(re,", ")+" ]"}if(function(e){return"[object Error]"===V(e)&&(!L||!("object"===typeof e&&L in e))}(t)){var ne=Q(t,D);return"cause"in t&&!P.call(t,"cause")?"{ ["+String(t)+"] "+T.call(k.call("[cause]: "+D(t.cause),ne),", ")+" }":0===ne.length?"["+String(t)+"]":"{ ["+String(t)+"] "+T.call(ne,", ")+" }"}if("object"===typeof t&&s){if(I&&"function"===typeof t[I])return t[I]();if("symbol"!==s&&"function"===typeof t.inspect)return t.inspect()}if(function(e){if(!i||!e||"object"!==typeof e)return!1;try{i.call(e);try{c.call(e)}catch(J){return!0}return e instanceof Map}catch(t){}return!1}(t)){var ae=[];return o.call(t,(function(e,r){ae.push(D(r,t,!0)+" => "+D(e,t))})),Z("Map",i.call(t),ae,O)}if(function(e){if(!c||!e||"object"!==typeof e)return!1;try{c.call(e);try{i.call(e)}catch(t){return!0}return e instanceof Set}catch(r){}return!1}(t)){var ie=[];return u.call(t,(function(e){ie.push(D(e,t))})),Z("Set",c.call(t),ie,O)}if(function(e){if(!f||!e||"object"!==typeof e)return!1;try{f.call(e,f);try{d.call(e,d)}catch(J){return!0}return e instanceof WeakMap}catch(t){}return!1}(t))return X("WeakMap");if(function(e){if(!d||!e||"object"!==typeof e)return!1;try{d.call(e,d);try{f.call(e,f)}catch(J){return!0}return e instanceof WeakSet}catch(t){}return!1}(t))return X("WeakSet");if(function(e){if(!p||!e||"object"!==typeof e)return!1;try{return p.call(e),!0}catch(t){}return!1}(t))return X("WeakRef");if(function(e){return"[object Number]"===V(e)&&(!L||!("object"===typeof e&&L in e))}(t))return G(D(Number(t)));if(function(e){if(!e||"object"!==typeof e||!M)return!1;try{return M.call(e),!0}catch(t){}return!1}(t))return G(D(M.call(t)));if(function(e){return"[object Boolean]"===V(e)&&(!L||!("object"===typeof e&&L in e))}(t))return G(h.call(t));if(function(e){return"[object String]"===V(e)&&(!L||!("object"===typeof e&&L in e))}(t))return G(D(String(t)));if(!function(e){return"[object Date]"===V(e)&&(!L||!("object"===typeof e&&L in e))}(t)&&!function(e){return"[object RegExp]"===V(e)&&(!L||!("object"===typeof e&&L in e))}(t)){var oe=Q(t,D),le=j?j(t)===Object.prototype:t instanceof Object||t.constructor===Object,se=t instanceof Object?"":"null prototype",ce=!le&&L&&Object(t)===t&&L in t?m.call(V(t),8,-1):se?"Object":"",ue=(le||"function"!==typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(ce||se?"["+T.call(k.call([],ce||[],se||[]),": ")+"] ":"");return 0===oe.length?ue+"{}":O?ue+"{"+$(oe,O)+"}":ue+"{ "+T.call(oe,", ")+" }"}return String(t)};var U=Object.prototype.hasOwnProperty||function(e){return e in this};function H(e,t){return U.call(e,t)}function V(e){return g.call(e)}function q(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}function W(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return W(m.call(e,0,t.maxStringLength),t)+n}return N(b.call(b.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Y),"single",t)}function Y(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+x.call(t.toString(16))}function G(e){return"Object("+e+")"}function X(e){return e+" { ? }"}function Z(e,t,r,n){return e+" ("+t+") {"+(n?$(r,n):T.call(r,", "))+"}"}function $(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+T.call(e,","+r)+"\n"+t.prev}function Q(e,t){var r=F(e),n=[];if(r){n.length=e.length;for(var a=0;a<e.length;a++)n[a]=H(e,a)?t(e[a],e):""}var i,o="function"===typeof O?O(e):[];if(E){i={};for(var l=0;l<o.length;l++)i["$"+o[l]]=o[l]}for(var s in e)H(e,s)&&(r&&String(Number(s))===s&&s<e.length||E&&i["$"+s]instanceof Symbol||(_.call(/[^\w$]/,s)?n.push(t(s,e)+": "+t(e[s],e)):n.push(s+": "+t(e[s],e))));if("function"===typeof O)for(var c=0;c<o.length;c++)P.call(e,o[c])&&n.push("["+t(o[c])+"]: "+t(e[o[c]],e));return n}},,function(e,t,r){"use strict";(function(t){var n=r(229),a=r(230),i=r(43),o=i("Object.prototype.toString"),l=r(54)(),s="undefined"===typeof globalThis?t:globalThis,c=a(),u=i("String.prototype.slice"),f={},d=r(231),p=Object.getPrototypeOf;l&&d&&p&&n(c,(function(e){if("function"===typeof s[e]){var t=new s[e];if(Symbol.toStringTag in t){var r=p(t),n=d(r,Symbol.toStringTag);if(!n){var a=p(r);n=d(a,Symbol.toStringTag)}f[e]=n.get}}}));var h=r(469);e.exports=function(e){return!!h(e)&&(l&&Symbol.toStringTag in e?function(e){var t=!1;return n(f,(function(r,n){if(!t)try{var a=r.call(e);a===n&&(t=a)}catch(i){}})),t}(e):u(o(e),8,-1))}}).call(this,r(27))},function(e,t,r){"use strict";(function(t){var n=r(229),a=r(230),i=r(43),o=i("Object.prototype.toString"),l=r(54)(),s="undefined"===typeof globalThis?t:globalThis,c=a(),u=i("Array.prototype.indexOf",!0)||function(e,t){for(var r=0;r<e.length;r+=1)if(e[r]===t)return r;return-1},f=i("String.prototype.slice"),d={},p=r(231),h=Object.getPrototypeOf;l&&p&&h&&n(c,(function(e){var t=new s[e];if(Symbol.toStringTag in t){var r=h(t),n=p(r,Symbol.toStringTag);if(!n){var a=h(r);n=p(a,Symbol.toStringTag)}d[e]=n.get}}));e.exports=function(e){if(!e||"object"!==typeof e)return!1;if(!l||!(Symbol.toStringTag in e)){var t=f(o(e),8,-1);return u(c,t)>-1}return!!p&&function(e){var t=!1;return n(d,(function(r,n){if(!t)try{t=r.call(e)===n}catch(a){}})),t}(e)}}).call(this,r(27))},function(e,t,r){"use strict";var n=r(64),a=r(118),i=r(232),o=r(233),l=r(471),s=a.apply(o()),c=function(e,t){return s(Object,arguments)};n(c,{getPolyfill:o,implementation:i,shim:l}),e.exports=c},function(e,t,r){"use strict";var n=r(64),a=r(233);e.exports=function(){var e=a();return n(Object,{assign:e},{assign:function(){return Object.assign!==e}}),e}},,function(e,t,r){"use strict";t.version=r(152).version,r(474),r(475);for(var n=r(5),a=t.register=n.register,i=r(523),o=Object.keys(i),l=0;l<o.length;l++){var s=o[l];"_"!==s.charAt(0)&&(t[s]=i[s]),a({moduleType:"apiMethod",name:s,fn:i[s]})}a(r(559)),a([r(574),r(41),r(575),r(581),r(586),r(590),r(594),r(598),r(601),r(606),r(610),r(611),r(75),r(616),r(267)]),a([r(619),r(620)]),window.PlotlyLocales&&Array.isArray(window.PlotlyLocales)&&(a(window.PlotlyLocales),delete window.PlotlyLocales),t.Icons=r(174);var c=r(41),u=r(20);t.Plots={resize:u.resize,graphJson:u.graphJson,sendDataToCloud:u.sendDataToCloud},t.Fx={hover:c.hover,unhover:c.unhover,loneHover:c.loneHover,loneUnhover:c.loneUnhover},t.Snapshot=r(621),t.PlotSchema=r(95)},function(e,t,r){(function(n,a){var i,o,l,s;s=function(){"use strict";var e,t,r,n=Object.prototype.toString,i="undefined"!=typeof a?function(e){return a(e)}:setTimeout;try{Object.defineProperty({},"x",{}),e=function(e,t,r,n){return Object.defineProperty(e,t,{value:r,writable:!0,configurable:!1!==n})}}catch(y){e=function(e,t,r){return e[t]=r,e}}function o(e,n){r.add(e,n),t||(t=i(r.drain))}function l(e){var t,r=typeof e;return null==e||"object"!=r&&"function"!=r||(t=e.then),"function"==typeof t&&t}function s(){for(var e=0;e<this.chain.length;e++)c(this,1===this.state?this.chain[e].success:this.chain[e].failure,this.chain[e]);this.chain.length=0}function c(e,t,r){var n,a;try{!1===t?r.reject(e.msg):(n=!0===t?e.msg:t.call(void 0,e.msg))===r.promise?r.reject(TypeError("Promise-chain cycle")):(a=l(n))?a.call(n,r.resolve,r.reject):r.resolve(n)}catch(y){r.reject(y)}}function u(e){var t,r=this;if(!r.triggered){r.triggered=!0,r.def&&(r=r.def);try{(t=l(e))?o((function(){var n=new p(r);try{t.call(e,(function(){u.apply(n,arguments)}),(function(){f.apply(n,arguments)}))}catch(y){f.call(n,y)}})):(r.msg=e,r.state=1,r.chain.length>0&&o(s,r))}catch(y){f.call(new p(r),y)}}}function f(e){var t=this;t.triggered||(t.triggered=!0,t.def&&(t=t.def),t.msg=e,t.state=2,t.chain.length>0&&o(s,t))}function d(e,t,r,n){for(var a=0;a<t.length;a++)!function(a){e.resolve(t[a]).then((function(e){r(a,e)}),n)}(a)}function p(e){this.def=e,this.triggered=!1}function h(e){this.promise=e,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function g(e){if("function"!=typeof e)throw TypeError("Not a function");if(0!==this.__NPO__)throw TypeError("Not a promise");this.__NPO__=1;var t=new h(this);this.then=function(e,r){var n={success:"function"!=typeof e||e,failure:"function"==typeof r&&r};return n.promise=new this.constructor((function(e,t){if("function"!=typeof e||"function"!=typeof t)throw TypeError("Not a function");n.resolve=e,n.reject=t})),t.chain.push(n),0!==t.state&&o(s,t),n.promise},this.catch=function(e){return this.then(void 0,e)};try{e.call(void 0,(function(e){u.call(t,e)}),(function(e){f.call(t,e)}))}catch(y){f.call(t,y)}}r=function(){var e,r,n;function a(e,t){this.fn=e,this.self=t,this.next=void 0}return{add:function(t,i){n=new a(t,i),r?r.next=n:e=n,r=n,n=void 0},drain:function(){var n=e;for(e=r=t=void 0;n;)n.fn.call(n.self),n=n.next}}}();var v=e({},"constructor",g,!1);return g.prototype=v,e(v,"__NPO__",0,!1),e(g,"resolve",(function(e){return e&&"object"==typeof e&&1===e.__NPO__?e:new this((function(t,r){if("function"!=typeof t||"function"!=typeof r)throw TypeError("Not a function");t(e)}))})),e(g,"reject",(function(e){return new this((function(t,r){if("function"!=typeof t||"function"!=typeof r)throw TypeError("Not a function");r(e)}))})),e(g,"all",(function(e){var t=this;return"[object Array]"!=n.call(e)?t.reject(TypeError("Not an array")):0===e.length?t.resolve([]):new t((function(r,n){if("function"!=typeof r||"function"!=typeof n)throw TypeError("Not a function");var a=e.length,i=Array(a),o=0;d(t,e,(function(e,t){i[e]=t,++o===a&&r(i)}),n)}))})),e(g,"race",(function(e){var t=this;return"[object Array]"!=n.call(e)?t.reject(TypeError("Not an array")):new t((function(r,n){if("function"!=typeof r||"function"!=typeof n)throw TypeError("Not a function");d(t,e,(function(e,t){r(t)}),n)}))})),g},(l="undefined"!=typeof n?n:this)[o="Promise"]=l[o]||s(),e.exports?e.exports=l[o]:void 0===(i=function(){return l[o]}.call(t,r,t,e))||(e.exports=i)}).call(this,r(27),r(148).setImmediate)},function(e,t,r){"use strict";var n=r(0),a={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;',"X input,X button":'font-family:"Open Sans",verdana,arial,sans-serif;',"X input:focus,X button:focus":"outline:none;","X a":"text-decoration:none;","X a:hover":"text-decoration:none;","X .crisp":"shape-rendering:crispEdges;","X .user-select-none":"-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;","X svg":"overflow:hidden;","X svg a":"fill:#447adb;","X svg a:hover":"fill:#3c6dc5;","X .main-svg":"position:absolute;top:0;left:0;pointer-events:none;","X .main-svg .draglayer":"pointer-events:all;","X .cursor-default":"cursor:default;","X .cursor-pointer":"cursor:pointer;","X .cursor-crosshair":"cursor:crosshair;","X .cursor-move":"cursor:move;","X .cursor-col-resize":"cursor:col-resize;","X .cursor-row-resize":"cursor:row-resize;","X .cursor-ns-resize":"cursor:ns-resize;","X .cursor-ew-resize":"cursor:ew-resize;","X .cursor-sw-resize":"cursor:sw-resize;","X .cursor-s-resize":"cursor:s-resize;","X .cursor-se-resize":"cursor:se-resize;","X .cursor-w-resize":"cursor:w-resize;","X .cursor-e-resize":"cursor:e-resize;","X .cursor-nw-resize":"cursor:nw-resize;","X .cursor-n-resize":"cursor:n-resize;","X .cursor-ne-resize":"cursor:ne-resize;","X .cursor-grab":"cursor:-webkit-grab;cursor:grab;","X .modebar":"position:absolute;top:2px;right:2px;","X .ease-bg":"-webkit-transition:background-color .3s ease 0s;-moz-transition:background-color .3s ease 0s;-ms-transition:background-color .3s ease 0s;-o-transition:background-color .3s ease 0s;transition:background-color .3s ease 0s;","X .modebar--hover>:not(.watermark)":"opacity:0;-webkit-transition:opacity .3s ease 0s;-moz-transition:opacity .3s ease 0s;-ms-transition:opacity .3s ease 0s;-o-transition:opacity .3s ease 0s;transition:opacity .3s ease 0s;","X:hover .modebar--hover .modebar-group":"opacity:1;","X .modebar-group":"float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;","X .modebar-btn svg":"position:relative;top:2px;","X .modebar.vertical":"display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;","X .modebar.vertical svg":"top:-1px;","X .modebar.vertical .modebar-group":"display:block;float:none;padding-left:0px;padding-bottom:8px;","X .modebar.vertical .modebar-group .modebar-btn":"display:block;text-align:center;","X [data-title]:before,X [data-title]:after":"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;","X [data-title]:hover:before,X [data-title]:hover:after":"display:block;opacity:1;","X [data-title]:before":'content:"";position:absolute;background:transparent;border:6px solid transparent;z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;',"X [data-title]:after":"content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;","X .vertical [data-title]:before,X .vertical [data-title]:after":"top:0%;right:200%;","X .vertical [data-title]:before":"border:6px solid transparent;border-left-color:#69738a;margin-top:8px;margin-right:-30px;","X .select-outline":"fill:none;stroke-width:1;shape-rendering:crispEdges;","X .select-outline-1":"stroke:#fff;","X .select-outline-2":"stroke:#000;stroke-dasharray:2px 2px;",Y:'font-family:"Open Sans",verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;',"Y p":"margin:0;","Y .notifier-note":"min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;","Y .notifier-close":"color:#fff;opacity:.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;","Y .notifier-close:hover":"color:#444;text-decoration:none;cursor:pointer;"};for(var i in a){var o=i.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier");n.addStyleRule(o,a[i])}},function(e,t,r){"use strict";e.exports=function(e){for(var t,r=e.length,n=0;n<r;n++)if(((t=e.charCodeAt(n))<9||t>13)&&32!==t&&133!==t&&160!==t&&5760!==t&&6158!==t&&(t<8192||t>8205)&&8232!==t&&8233!==t&&8239!==t&&8287!==t&&8288!==t&&12288!==t&&65279!==t)return!1;return!0}},function(e,t,r){"use strict";var n=r(157),a=/^\w*$/;e.exports=function(e,t,r,i){var o,l,s;r=r||"name",i=i||"value";var c={};t&&t.length?(s=n(e,t),l=s.get()):l=e,t=t||"";var u={};if(l)for(o=0;o<l.length;o++)u[l[o][r]]=o;var f=a.test(i),d={set:function(e,t){var a=null===t?4:0;if(!l){if(!s||4===a)return;l=[],s.set(l)}var o=u[e];if(void 0===o){if(4===a)return;a|=3,o=l.length,u[e]=o}else t!==(f?l[o][i]:n(l[o],i).get())&&(a|=2);var p=l[o]=l[o]||{};return p[r]=e,f?p[i]=t:n(p,i).set(t),null!==t&&(a&=-5),c[o]=c[o]|a,d},get:function(e){if(l){var t=u[e];return void 0===t?void 0:f?l[t][i]:n(l[t],i).get()}},rename:function(e,t){var n=u[e];return void 0===n||(c[n]=1|c[n],u[t]=n,delete u[e],l[n][r]=t),d},remove:function(e){var t=u[e];if(void 0===t)return d;var a=l[t];if(Object.keys(a).length>2)return c[t]=2|c[t],d.set(e,null);if(f){for(o=t;o<l.length;o++)c[o]=3|c[o];for(o=t;o<l.length;o++)u[l[o][r]]--;l.splice(t,1),delete u[e]}else n(a,i).set(null),c[t]=6|c[t];return d},constructUpdate:function(){for(var e,a,o={},s=Object.keys(c),u=0;u<s.length;u++)a=s[u],e=t+"["+a+"]",l[a]?(1&c[a]&&(o[e+"."+r]=l[a][r]),2&c[a]&&(o[e+"."+i]=f?4&c[a]?null:l[a][i]:4&c[a]?null:n(l[a],i).get())):o[e]=null;return o}};return d}},function(e,t,r){"use strict";var n=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,a=/^[^\.\[\]]+$/;e.exports=function(e,t){for(;t;){var r=e.match(n);if(r)e=r[1];else{if(!e.match(a))throw new Error("bad relativeAttr call:"+[e,t]);e=""}if("^"!==t.charAt(0))break;t=t.slice(1)}return e&&"["!==t.charAt(0)?e+"."+t:e+t}},function(e,t,r){"use strict";var n=r(65).isArrayOrTypedArray,a=r(88);e.exports=function e(t,r){for(var i in r){var o=r[i],l=t[i];if(l!==o)if("_"===i.charAt(0)||"function"===typeof o){if(i in t)continue;t[i]=o}else if(n(o)&&n(l)&&a(o[0])){if("customdata"===i||"ids"===i)continue;for(var s=Math.min(o.length,l.length),c=0;c<s;c++)l[c]!==o[c]&&a(o[c])&&a(l[c])&&e(l[c],o[c])}else a(o)&&a(l)&&(e(l,o),Object.keys(l).length||delete t[i])}}},function(e,t,r){"use strict";var n=r(9),a=r(34),i=r(44),o=r(71),l=r(8),s=r(91).DESELECTDIM,c=r(157),u=r(92).counter,f=r(89).modHalf,d=r(65).isArrayOrTypedArray;function p(e,r){var n=t.valObjectMeta[r.valType];if(r.arrayOk&&d(e))return!0;if(n.validateFunction)return n.validateFunction(e,r);var a={},i=a,o={set:function(e){i=e}};return n.coerceFunction(e,o,a,r),i!==a}t.valObjectMeta={data_array:{description:["An {array} of data.","The value MUST be an {array}, or we ignore it.","Note that typed arrays (e.g. Float32Array) are supported."].join(" "),requiredOpts:[],otherOpts:["dflt"],coerceFunction:function(e,t,r){d(e)?t.set(e):void 0!==r&&t.set(r)}},enumerated:{description:["Enumerated value type. The available values are listed","in `values`."].join(" "),requiredOpts:["values"],otherOpts:["dflt","coerceNumber","arrayOk"],coerceFunction:function(e,t,r,n){n.coerceNumber&&(e=+e),-1===n.values.indexOf(e)?t.set(r):t.set(e)},validateFunction:function(e,t){t.coerceNumber&&(e=+e);for(var r=t.values,n=0;n<r.length;n++){var a=String(r[n]);if("/"===a.charAt(0)&&"/"===a.charAt(a.length-1)){if(new RegExp(a.substr(1,a.length-2)).test(e))return!0}else if(e===r[n])return!0}return!1}},boolean:{description:"A boolean (true/false) value.",requiredOpts:[],otherOpts:["dflt"],coerceFunction:function(e,t,r){!0===e||!1===e?t.set(e):t.set(r)}},number:{description:["A number or a numeric value","(e.g. a number inside a string).","When applicable, values greater (less) than `max` (`min`)","are coerced to the `dflt`."].join(" "),requiredOpts:[],otherOpts:["dflt","min","max","arrayOk"],coerceFunction:function(e,t,r,a){!n(e)||void 0!==a.min&&e<a.min||void 0!==a.max&&e>a.max?t.set(r):t.set(+e)}},integer:{description:["An integer or an integer inside a string.","When applicable, values greater (less) than `max` (`min`)","are coerced to the `dflt`."].join(" "),requiredOpts:[],otherOpts:["dflt","min","max","arrayOk"],coerceFunction:function(e,t,r,a){e%1||!n(e)||void 0!==a.min&&e<a.min||void 0!==a.max&&e>a.max?t.set(r):t.set(+e)}},string:{description:["A string value.","Numbers are converted to strings except for attributes with","`strict` set to true."].join(" "),requiredOpts:[],otherOpts:["dflt","noBlank","strict","arrayOk","values"],coerceFunction:function(e,t,r,n){if("string"!==typeof e){var a="number"===typeof e;!0!==n.strict&&a?t.set(String(e)):t.set(r)}else n.noBlank&&!e?t.set(r):t.set(e)}},color:{description:["A string describing color.","Supported formats:","- hex (e.g. '#d3d3d3')","- rgb (e.g. 'rgb(255, 0, 0)')","- rgba (e.g. 'rgb(255, 0, 0, 0.5)')","- hsl (e.g. 'hsl(0, 100%, 50%)')","- hsv (e.g. 'hsv(0, 100%, 100%)')","- named colors (full list: http://www.w3.org/TR/css3-color/#svg-color)"].join(" "),requiredOpts:[],otherOpts:["dflt","arrayOk"],coerceFunction:function(e,t,r){a(e).isValid()?t.set(e):t.set(r)}},colorlist:{description:["A list of colors.","Must be an {array} containing valid colors."].join(" "),requiredOpts:[],otherOpts:["dflt"],coerceFunction:function(e,t,r){Array.isArray(e)&&e.length&&e.every((function(e){return a(e).isValid()}))?t.set(e):t.set(r)}},colorscale:{description:["A Plotly colorscale either picked by a name:","(any of",Object.keys(o.scales).join(", "),")","customized as an {array} of 2-element {arrays} where","the first element is the normalized color level value","(starting at *0* and ending at *1*),","and the second item is a valid color string."].join(" "),requiredOpts:[],otherOpts:["dflt"],coerceFunction:function(e,t,r){t.set(o.get(e,r))}},angle:{description:["A number (in degree) between -180 and 180."].join(" "),requiredOpts:[],otherOpts:["dflt"],coerceFunction:function(e,t,r){"auto"===e?t.set("auto"):n(e)?t.set(f(+e,360)):t.set(r)}},subplotid:{description:["An id string of a subplot type (given by dflt), optionally","followed by an integer >1. e.g. if dflt='geo', we can have","'geo', 'geo2', 'geo3', ..."].join(" "),requiredOpts:["dflt"],otherOpts:["regex"],coerceFunction:function(e,t,r,n){var a=n.regex||u(r);"string"===typeof e&&a.test(e)?t.set(e):t.set(r)},validateFunction:function(e,t){var r=t.dflt;return e===r||"string"===typeof e&&!!u(r).test(e)}},flaglist:{description:["A string representing a combination of flags","(order does not matter here).","Combine any of the available `flags` with *+*.","(e.g. ('lines+markers')).","Values in `extras` cannot be combined."].join(" "),requiredOpts:["flags"],otherOpts:["dflt","extras","arrayOk"],coerceFunction:function(e,t,r,n){if("string"===typeof e)if(-1===(n.extras||[]).indexOf(e)){for(var a=e.split("+"),i=0;i<a.length;){var o=a[i];-1===n.flags.indexOf(o)||a.indexOf(o)<i?a.splice(i,1):i++}a.length?t.set(a.join("+")):t.set(r)}else t.set(e);else t.set(r)}},any:{description:"Any type.",requiredOpts:[],otherOpts:["dflt","values","arrayOk"],coerceFunction:function(e,t,r){void 0===e?t.set(r):t.set(e)}},info_array:{description:["An {array} of plot information."].join(" "),requiredOpts:["items"],otherOpts:["dflt","freeLength","dimensions"],coerceFunction:function(e,r,n,a){function i(e,r,n){var a,i={set:function(e){a=e}};return void 0===n&&(n=r.dflt),t.valObjectMeta[r.valType].coerceFunction(e,i,n,r),a}var o=2===a.dimensions||"1-2"===a.dimensions&&Array.isArray(e)&&Array.isArray(e[0]);if(Array.isArray(e)){var l,s,c,u,f,d,p=a.items,h=[],g=Array.isArray(p),v=g&&o&&Array.isArray(p[0]),y=o&&g&&!v,m=g&&!y?p.length:e.length;if(n=Array.isArray(n)?n:[],o)for(l=0;l<m;l++)for(h[l]=[],c=Array.isArray(e[l])?e[l]:[],f=y?p.length:g?p[l].length:c.length,s=0;s<f;s++)u=y?p[s]:g?p[l][s]:p,void 0!==(d=i(c[s],u,(n[l]||[])[s]))&&(h[l][s]=d);else for(l=0;l<m;l++)void 0!==(d=i(e[l],g?p[l]:p,n[l]))&&(h[l]=d);r.set(h)}else r.set(n)},validateFunction:function(e,t){if(!Array.isArray(e))return!1;var r=t.items,n=Array.isArray(r),a=2===t.dimensions;if(!t.freeLength&&e.length!==r.length)return!1;for(var i=0;i<e.length;i++)if(a){if(!Array.isArray(e[i])||!t.freeLength&&e[i].length!==r[i].length)return!1;for(var o=0;o<e[i].length;o++)if(!p(e[i][o],n?r[i][o]:r))return!1}else if(!p(e[i],n?r[i]:r))return!1;return!0}}},t.coerce=function(e,r,n,a,i){var o=c(n,a).get(),l=c(e,a),s=c(r,a),u=l.get(),f=r._template;if(void 0===u&&f&&(u=c(f,a).get(),f=0),void 0===i&&(i=o.dflt),o.arrayOk&&d(u))return s.set(u),u;var h=t.valObjectMeta[o.valType].coerceFunction;h(u,s,i,o);var g=s.get();return f&&g===i&&!p(u,o)&&(h(u=c(f,a).get(),s,i,o),g=s.get()),g},t.coerce2=function(e,r,n,a,i){var o=c(e,a),l=t.coerce(e,r,n,a,i),s=o.get();return void 0!==s&&null!==s&&l},t.coerceFont=function(e,t,r){var n={};return r=r||{},n.family=e(t+".family",r.family),n.size=e(t+".size",r.size),n.color=e(t+".color",r.color),n},t.coercePattern=function(e,t,r,n){if(e(t+".shape")){e(t+".solidity"),e(t+".size");var a="overlay"===e(t+".fillmode");if(!n){var i=e(t+".bgcolor",a?r:void 0);e(t+".fgcolor",a?l.contrast(i):r)}e(t+".fgopacity",a?.5:1)}},t.coerceHoverinfo=function(e,r,n){var a,o=r._module.attributes,l=o.hoverinfo?o:i,s=l.hoverinfo;if(1===n._dataLength){var c="all"===s.dflt?s.flags.slice():s.dflt.split("+");c.splice(c.indexOf("name"),1),a=c.join("+")}return t.coerce(e,r,l,"hoverinfo",a)},t.coerceSelectionMarkerOpacity=function(e,t){if(e.marker){var r,n,a=e.marker.opacity;if(void 0!==a)d(a)||e.selected||e.unselected||(r=a,n=s*a),t("selected.marker.opacity",r),t("unselected.marker.opacity",n)}},t.validate=p},function(e,t,r){"use strict";var n,a,i=r(107).timeFormat,o=r(9),l=r(72),s=r(89).mod,c=r(19),u=c.BADNUM,f=c.ONEDAY,d=c.ONEHOUR,p=c.ONEMIN,h=c.ONESEC,g=c.EPOCHJD,v=r(5),y=r(107).utcFormat,m=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\d)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,b=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\di?)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,x=(new Date).getFullYear()-70;function w(e){return e&&v.componentsRegistry.calendars&&"string"===typeof e&&"gregorian"!==e}function _(e,t){return String(e+Math.pow(10,t)).substr(1)}t.dateTick0=function(e,r){var n=function(e,t){return w(e)?t?v.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:v.getComponentMethod("calendars","CANONICAL_TICK")[e]:t?"2000-01-02":"2000-01-01"}(e,!!r);if(r<2)return n;var a=t.dateTime2ms(n,e);return a+=f*(r-1),t.ms2DateTime(a,0,e)},t.dfltRange=function(e){return w(e)?v.getComponentMethod("calendars","DFLTRANGE")[e]:["2000-01-01","2001-01-01"]},t.isJSDate=function(e){return"object"===typeof e&&null!==e&&"function"===typeof e.getTime},t.dateTime2ms=function(e,r){if(t.isJSDate(e)){var i=e.getTimezoneOffset()*p,o=(e.getUTCMinutes()-e.getMinutes())*p+(e.getUTCSeconds()-e.getSeconds())*h+(e.getUTCMilliseconds()-e.getMilliseconds());if(o){var l=3*p;i=i-l/2+s(o-i+l/2,l)}return(e=Number(e)-i)>=n&&e<=a?e:u}if("string"!==typeof e&&"number"!==typeof e)return u;e=String(e);var c=w(r),y=e.charAt(0);!c||"G"!==y&&"g"!==y||(e=e.substr(1),r="");var _=c&&"chinese"===r.substr(0,7),k=e.match(_?b:m);if(!k)return u;var T=k[1],A=k[3]||"1",S=Number(k[5]||1),M=Number(k[7]||0),O=Number(k[9]||0),C=Number(k[11]||0);if(c){if(2===T.length)return u;var E;T=Number(T);try{var L=v.getComponentMethod("calendars","getCal")(r);if(_){var P="i"===A.charAt(A.length-1);A=parseInt(A,10),E=L.newDate(T,L.toMonthIndex(T,A,P),S)}else E=L.newDate(T,Number(A),S)}catch(z){return u}return E?(E.toJD()-g)*f+M*d+O*p+C*h:u}T=2===T.length?(Number(T)+2e3-x)%100+x:Number(T),A-=1;var j=new Date(Date.UTC(2e3,A,S,M,O));return j.setUTCFullYear(T),j.getUTCMonth()!==A||j.getUTCDate()!==S?u:j.getTime()+C*h},n=t.MIN_MS=t.dateTime2ms("-9999"),a=t.MAX_MS=t.dateTime2ms("9999-12-31 23:59:59.9999"),t.isDateTime=function(e,r){return t.dateTime2ms(e,r)!==u};var k=90*f,T=3*d,A=5*p;function S(e,t,r,n,a){if((t||r||n||a)&&(e+=" "+_(t,2)+":"+_(r,2),(n||a)&&(e+=":"+_(n,2),a))){for(var i=4;a%10===0;)i-=1,a/=10;e+="."+_(a,i)}return e}t.ms2DateTime=function(e,t,r){if("number"!==typeof e||!(e>=n&&e<=a))return u;t||(t=0);var i,o,l,c,m,b,x=Math.floor(10*s(e+.05,1)),_=Math.round(e-x/10);if(w(r)){var M=Math.floor(_/f)+g,O=Math.floor(s(e,f));try{i=v.getComponentMethod("calendars","getCal")(r).fromJD(M).formatDate("yyyy-mm-dd")}catch(C){i=y("G%Y-%m-%d")(new Date(_))}if("-"===i.charAt(0))for(;i.length<11;)i="-0"+i.substr(1);else for(;i.length<10;)i="0"+i;o=t<k?Math.floor(O/d):0,l=t<k?Math.floor(O%d/p):0,c=t<T?Math.floor(O%p/h):0,m=t<A?O%h*10+x:0}else b=new Date(_),i=y("%Y-%m-%d")(b),o=t<k?b.getUTCHours():0,l=t<k?b.getUTCMinutes():0,c=t<T?b.getUTCSeconds():0,m=t<A?10*b.getUTCMilliseconds()+x:0;return S(i,o,l,c,m)},t.ms2DateTimeLocal=function(e){if(!(e>=n+f&&e<=a-f))return u;var t=Math.floor(10*s(e+.05,1)),r=new Date(Math.round(e-t/10));return S(i("%Y-%m-%d")(r),r.getHours(),r.getMinutes(),r.getSeconds(),10*r.getUTCMilliseconds()+t)},t.cleanDate=function(e,r,n){if(e===u)return r;if(t.isJSDate(e)||"number"===typeof e&&isFinite(e)){if(w(n))return l.error("JS Dates and milliseconds are incompatible with world calendars",e),r;if(!(e=t.ms2DateTimeLocal(+e))&&void 0!==r)return r}else if(!t.isDateTime(e,n))return l.error("unrecognized date",e),r;return e};var M=/%\d?f/g,O=/%h/g,C={1:"1",2:"1",3:"2",4:"2"};function E(e,t,r,n){e=e.replace(M,(function(e){var r=Math.min(+e.charAt(1)||6,6);return(t/1e3%1+2).toFixed(r).substr(2).replace(/0+$/,"")||"0"}));var a=new Date(Math.floor(t+.05));if(e=e.replace(O,(function(){return C[r("%q")(a)]})),w(n))try{e=v.getComponentMethod("calendars","worldCalFmt")(e,t,n)}catch(i){return"Invalid"}return r(e)(a)}var L=[59,59.9,59.99,59.999,59.9999];t.formatDate=function(e,t,r,n,a,i){if(a=w(a)&&a,!t)if("y"===r)t=i.year;else if("m"===r)t=i.month;else{if("d"!==r)return function(e,t){var r=s(e+.05,f),n=_(Math.floor(r/d),2)+":"+_(s(Math.floor(r/p),60),2);if("M"!==t){o(t)||(t=0);var a=(100+Math.min(s(e/h,60),L[t])).toFixed(t).substr(1);t>0&&(a=a.replace(/0+$/,"").replace(/[\.]$/,"")),n+=":"+a}return n}(e,r)+"\n"+E(i.dayMonthYear,e,n,a);t=i.dayMonth+"\n"+i.year}return E(t,e,n,a)};var P=3*f;t.incrementMonth=function(e,t,r){r=w(r)&&r;var n=s(e,f);if(e=Math.round(e-n),r)try{var a=Math.round(e/f)+g,i=v.getComponentMethod("calendars","getCal")(r),o=i.fromJD(a);return t%12?i.add(o,t,"m"):i.add(o,t/12,"y"),(o.toJD()-g)*f+n}catch(u){l.error("invalid ms "+e+" in calendar "+r)}var c=new Date(e+P);return c.setUTCMonth(c.getUTCMonth()+t)+n-P},t.findExactDates=function(e,t){for(var r,n,a=0,i=0,l=0,s=0,c=w(t)&&v.getComponentMethod("calendars","getCal")(t),u=0;u<e.length;u++)if(n=e[u],o(n)){if(!(n%f))if(c)try{1===(r=c.fromJD(n/f+g)).day()?1===r.month()?a++:i++:l++}catch(p){}else 1===(r=new Date(n)).getUTCDate()?0===r.getUTCMonth()?a++:i++:l++}else s++;l+=i+=a;var d=e.length-s;return{exactYears:a/d,exactMonths:i/d,exactDays:l/d}}},function(e,t){e.exports=function(){var e=new Float32Array(16);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}},function(e,t){e.exports=function(e){var t=new Float32Array(16);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}},function(e,t){e.exports=function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}},function(e,t){e.exports=function(e,t){if(e===t){var r=t[1],n=t[2],a=t[3],i=t[6],o=t[7],l=t[11];e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=r,e[6]=t[9],e[7]=t[13],e[8]=n,e[9]=i,e[11]=t[14],e[12]=a,e[13]=o,e[14]=l}else e[0]=t[0],e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=t[1],e[5]=t[5],e[6]=t[9],e[7]=t[13],e[8]=t[2],e[9]=t[6],e[10]=t[10],e[11]=t[14],e[12]=t[3],e[13]=t[7],e[14]=t[11],e[15]=t[15];return e}},function(e,t){e.exports=function(e,t){var r=t[0],n=t[1],a=t[2],i=t[3],o=t[4],l=t[5],s=t[6],c=t[7],u=t[8],f=t[9],d=t[10],p=t[11],h=t[12],g=t[13],v=t[14],y=t[15],m=r*l-n*o,b=r*s-a*o,x=r*c-i*o,w=n*s-a*l,_=n*c-i*l,k=a*c-i*s,T=u*g-f*h,A=u*v-d*h,S=u*y-p*h,M=f*v-d*g,O=f*y-p*g,C=d*y-p*v,E=m*C-b*O+x*M+w*S-_*A+k*T;if(!E)return null;return E=1/E,e[0]=(l*C-s*O+c*M)*E,e[1]=(a*O-n*C-i*M)*E,e[2]=(g*k-v*_+y*w)*E,e[3]=(d*_-f*k-p*w)*E,e[4]=(s*S-o*C-c*A)*E,e[5]=(r*C-a*S+i*A)*E,e[6]=(v*x-h*k-y*b)*E,e[7]=(u*k-d*x+p*b)*E,e[8]=(o*O-l*S+c*T)*E,e[9]=(n*S-r*O-i*T)*E,e[10]=(h*_-g*x+y*m)*E,e[11]=(f*x-u*_-p*m)*E,e[12]=(l*A-o*M-s*T)*E,e[13]=(r*M-n*A+a*T)*E,e[14]=(g*b-h*w-v*m)*E,e[15]=(u*w-f*b+d*m)*E,e}},function(e,t){e.exports=function(e,t){var r=t[0],n=t[1],a=t[2],i=t[3],o=t[4],l=t[5],s=t[6],c=t[7],u=t[8],f=t[9],d=t[10],p=t[11],h=t[12],g=t[13],v=t[14],y=t[15];return e[0]=l*(d*y-p*v)-f*(s*y-c*v)+g*(s*p-c*d),e[1]=-(n*(d*y-p*v)-f*(a*y-i*v)+g*(a*p-i*d)),e[2]=n*(s*y-c*v)-l*(a*y-i*v)+g*(a*c-i*s),e[3]=-(n*(s*p-c*d)-l*(a*p-i*d)+f*(a*c-i*s)),e[4]=-(o*(d*y-p*v)-u*(s*y-c*v)+h*(s*p-c*d)),e[5]=r*(d*y-p*v)-u*(a*y-i*v)+h*(a*p-i*d),e[6]=-(r*(s*y-c*v)-o*(a*y-i*v)+h*(a*c-i*s)),e[7]=r*(s*p-c*d)-o*(a*p-i*d)+u*(a*c-i*s),e[8]=o*(f*y-p*g)-u*(l*y-c*g)+h*(l*p-c*f),e[9]=-(r*(f*y-p*g)-u*(n*y-i*g)+h*(n*p-i*f)),e[10]=r*(l*y-c*g)-o*(n*y-i*g)+h*(n*c-i*l),e[11]=-(r*(l*p-c*f)-o*(n*p-i*f)+u*(n*c-i*l)),e[12]=-(o*(f*v-d*g)-u*(l*v-s*g)+h*(l*d-s*f)),e[13]=r*(f*v-d*g)-u*(n*v-a*g)+h*(n*d-a*f),e[14]=-(r*(l*v-s*g)-o*(n*v-a*g)+h*(n*s-a*l)),e[15]=r*(l*d-s*f)-o*(n*d-a*f)+u*(n*s-a*l),e}},function(e,t){e.exports=function(e){var t=e[0],r=e[1],n=e[2],a=e[3],i=e[4],o=e[5],l=e[6],s=e[7],c=e[8],u=e[9],f=e[10],d=e[11],p=e[12],h=e[13],g=e[14],v=e[15];return(t*o-r*i)*(f*v-d*g)-(t*l-n*i)*(u*v-d*h)+(t*s-a*i)*(u*g-f*h)+(r*l-n*o)*(c*v-d*p)-(r*s-a*o)*(c*g-f*p)+(n*s-a*l)*(c*h-u*p)}},function(e,t){e.exports=function(e,t,r){var n=t[0],a=t[1],i=t[2],o=t[3],l=t[4],s=t[5],c=t[6],u=t[7],f=t[8],d=t[9],p=t[10],h=t[11],g=t[12],v=t[13],y=t[14],m=t[15],b=r[0],x=r[1],w=r[2],_=r[3];return e[0]=b*n+x*l+w*f+_*g,e[1]=b*a+x*s+w*d+_*v,e[2]=b*i+x*c+w*p+_*y,e[3]=b*o+x*u+w*h+_*m,b=r[4],x=r[5],w=r[6],_=r[7],e[4]=b*n+x*l+w*f+_*g,e[5]=b*a+x*s+w*d+_*v,e[6]=b*i+x*c+w*p+_*y,e[7]=b*o+x*u+w*h+_*m,b=r[8],x=r[9],w=r[10],_=r[11],e[8]=b*n+x*l+w*f+_*g,e[9]=b*a+x*s+w*d+_*v,e[10]=b*i+x*c+w*p+_*y,e[11]=b*o+x*u+w*h+_*m,b=r[12],x=r[13],w=r[14],_=r[15],e[12]=b*n+x*l+w*f+_*g,e[13]=b*a+x*s+w*d+_*v,e[14]=b*i+x*c+w*p+_*y,e[15]=b*o+x*u+w*h+_*m,e}},function(e,t){e.exports=function(e,t,r){var n,a,i,o,l,s,c,u,f,d,p,h,g=r[0],v=r[1],y=r[2];t===e?(e[12]=t[0]*g+t[4]*v+t[8]*y+t[12],e[13]=t[1]*g+t[5]*v+t[9]*y+t[13],e[14]=t[2]*g+t[6]*v+t[10]*y+t[14],e[15]=t[3]*g+t[7]*v+t[11]*y+t[15]):(n=t[0],a=t[1],i=t[2],o=t[3],l=t[4],s=t[5],c=t[6],u=t[7],f=t[8],d=t[9],p=t[10],h=t[11],e[0]=n,e[1]=a,e[2]=i,e[3]=o,e[4]=l,e[5]=s,e[6]=c,e[7]=u,e[8]=f,e[9]=d,e[10]=p,e[11]=h,e[12]=n*g+l*v+f*y+t[12],e[13]=a*g+s*v+d*y+t[13],e[14]=i*g+c*v+p*y+t[14],e[15]=o*g+u*v+h*y+t[15]);return e}},function(e,t){e.exports=function(e,t,r){var n=r[0],a=r[1],i=r[2];return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e[3]=t[3]*n,e[4]=t[4]*a,e[5]=t[5]*a,e[6]=t[6]*a,e[7]=t[7]*a,e[8]=t[8]*i,e[9]=t[9]*i,e[10]=t[10]*i,e[11]=t[11]*i,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}},function(e,t){e.exports=function(e,t,r,n){var a,i,o,l,s,c,u,f,d,p,h,g,v,y,m,b,x,w,_,k,T,A,S,M,O=n[0],C=n[1],E=n[2],L=Math.sqrt(O*O+C*C+E*E);if(Math.abs(L)<1e-6)return null;O*=L=1/L,C*=L,E*=L,a=Math.sin(r),i=Math.cos(r),o=1-i,l=t[0],s=t[1],c=t[2],u=t[3],f=t[4],d=t[5],p=t[6],h=t[7],g=t[8],v=t[9],y=t[10],m=t[11],b=O*O*o+i,x=C*O*o+E*a,w=E*O*o-C*a,_=O*C*o-E*a,k=C*C*o+i,T=E*C*o+O*a,A=O*E*o+C*a,S=C*E*o-O*a,M=E*E*o+i,e[0]=l*b+f*x+g*w,e[1]=s*b+d*x+v*w,e[2]=c*b+p*x+y*w,e[3]=u*b+h*x+m*w,e[4]=l*_+f*k+g*T,e[5]=s*_+d*k+v*T,e[6]=c*_+p*k+y*T,e[7]=u*_+h*k+m*T,e[8]=l*A+f*S+g*M,e[9]=s*A+d*S+v*M,e[10]=c*A+p*S+y*M,e[11]=u*A+h*S+m*M,t!==e&&(e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]);return e}},function(e,t){e.exports=function(e,t,r){var n=Math.sin(r),a=Math.cos(r),i=t[4],o=t[5],l=t[6],s=t[7],c=t[8],u=t[9],f=t[10],d=t[11];t!==e&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]);return e[4]=i*a+c*n,e[5]=o*a+u*n,e[6]=l*a+f*n,e[7]=s*a+d*n,e[8]=c*a-i*n,e[9]=u*a-o*n,e[10]=f*a-l*n,e[11]=d*a-s*n,e}},function(e,t){e.exports=function(e,t,r){var n=Math.sin(r),a=Math.cos(r),i=t[0],o=t[1],l=t[2],s=t[3],c=t[8],u=t[9],f=t[10],d=t[11];t!==e&&(e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]);return e[0]=i*a-c*n,e[1]=o*a-u*n,e[2]=l*a-f*n,e[3]=s*a-d*n,e[8]=i*n+c*a,e[9]=o*n+u*a,e[10]=l*n+f*a,e[11]=s*n+d*a,e}},function(e,t){e.exports=function(e,t,r){var n=Math.sin(r),a=Math.cos(r),i=t[0],o=t[1],l=t[2],s=t[3],c=t[4],u=t[5],f=t[6],d=t[7];t!==e&&(e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]);return e[0]=i*a+c*n,e[1]=o*a+u*n,e[2]=l*a+f*n,e[3]=s*a+d*n,e[4]=c*a-i*n,e[5]=u*a-o*n,e[6]=f*a-l*n,e[7]=d*a-s*n,e}},function(e,t){e.exports=function(e,t,r){var n,a,i,o=r[0],l=r[1],s=r[2],c=Math.sqrt(o*o+l*l+s*s);if(Math.abs(c)<1e-6)return null;return o*=c=1/c,l*=c,s*=c,n=Math.sin(t),a=Math.cos(t),i=1-a,e[0]=o*o*i+a,e[1]=l*o*i+s*n,e[2]=s*o*i-l*n,e[3]=0,e[4]=o*l*i-s*n,e[5]=l*l*i+a,e[6]=s*l*i+o*n,e[7]=0,e[8]=o*s*i+l*n,e[9]=l*s*i-o*n,e[10]=s*s*i+a,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}},function(e,t){e.exports=function(e,t,r){var n=t[0],a=t[1],i=t[2],o=t[3],l=n+n,s=a+a,c=i+i,u=n*l,f=n*s,d=n*c,p=a*s,h=a*c,g=i*c,v=o*l,y=o*s,m=o*c;return e[0]=1-(p+g),e[1]=f+m,e[2]=d-y,e[3]=0,e[4]=f-m,e[5]=1-(u+g),e[6]=h+v,e[7]=0,e[8]=d+y,e[9]=h-v,e[10]=1-(u+p),e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}},function(e,t){e.exports=function(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=t[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=t[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}},function(e,t){e.exports=function(e,t){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}},function(e,t){e.exports=function(e,t){var r=Math.sin(t),n=Math.cos(t);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=n,e[6]=r,e[7]=0,e[8]=0,e[9]=-r,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}},function(e,t){e.exports=function(e,t){var r=Math.sin(t),n=Math.cos(t);return e[0]=n,e[1]=0,e[2]=-r,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=r,e[9]=0,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}},function(e,t){e.exports=function(e,t){var r=Math.sin(t),n=Math.cos(t);return e[0]=n,e[1]=r,e[2]=0,e[3]=0,e[4]=-r,e[5]=n,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}},function(e,t){e.exports=function(e,t,r,n,a,i,o){var l=1/(r-t),s=1/(a-n),c=1/(i-o);return e[0]=2*i*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=2*i*s,e[6]=0,e[7]=0,e[8]=(r+t)*l,e[9]=(a+n)*s,e[10]=(o+i)*c,e[11]=-1,e[12]=0,e[13]=0,e[14]=o*i*2*c,e[15]=0,e}},function(e,t){e.exports=function(e,t,r,n,a){var i=1/Math.tan(t/2),o=1/(n-a);return e[0]=i/r,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=(a+n)*o,e[11]=-1,e[12]=0,e[13]=0,e[14]=2*a*n*o,e[15]=0,e}},function(e,t){e.exports=function(e,t,r,n){var a=Math.tan(t.upDegrees*Math.PI/180),i=Math.tan(t.downDegrees*Math.PI/180),o=Math.tan(t.leftDegrees*Math.PI/180),l=Math.tan(t.rightDegrees*Math.PI/180),s=2/(o+l),c=2/(a+i);return e[0]=s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=c,e[6]=0,e[7]=0,e[8]=-(o-l)*s*.5,e[9]=(a-i)*c*.5,e[10]=n/(r-n),e[11]=-1,e[12]=0,e[13]=0,e[14]=n*r/(r-n),e[15]=0,e}},function(e,t){e.exports=function(e,t,r,n,a,i,o){var l=1/(t-r),s=1/(n-a),c=1/(i-o);return e[0]=-2*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*s,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*c,e[11]=0,e[12]=(t+r)*l,e[13]=(a+n)*s,e[14]=(o+i)*c,e[15]=1,e}},function(e,t,r){var n=r(237);e.exports=function(e,t,r,a){var i,o,l,s,c,u,f,d,p,h,g=t[0],v=t[1],y=t[2],m=a[0],b=a[1],x=a[2],w=r[0],_=r[1],k=r[2];if(Math.abs(g-w)<1e-6&&Math.abs(v-_)<1e-6&&Math.abs(y-k)<1e-6)return n(e);f=g-w,d=v-_,p=y-k,h=1/Math.sqrt(f*f+d*d+p*p),i=b*(p*=h)-x*(d*=h),o=x*(f*=h)-m*p,l=m*d-b*f,(h=Math.sqrt(i*i+o*o+l*l))?(i*=h=1/h,o*=h,l*=h):(i=0,o=0,l=0);s=d*l-p*o,c=p*i-f*l,u=f*o-d*i,(h=Math.sqrt(s*s+c*c+u*u))?(s*=h=1/h,c*=h,u*=h):(s=0,c=0,u=0);return e[0]=i,e[1]=s,e[2]=f,e[3]=0,e[4]=o,e[5]=c,e[6]=d,e[7]=0,e[8]=l,e[9]=u,e[10]=p,e[11]=0,e[12]=-(i*g+o*v+l*y),e[13]=-(s*g+c*v+u*y),e[14]=-(f*g+d*v+p*y),e[15]=1,e}},function(e,t){e.exports=function(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"}},function(e,t,r){"use strict";var n=r(66).dash,a=r(22).extendFlat;e.exports={newshape:{line:{color:{valType:"color",editType:"none",description:["Sets the line color.","By default uses either dark grey or white","to increase contrast with background color."].join(" ")},width:{valType:"number",min:0,dflt:4,editType:"none",description:"Sets the line width (in px)."},dash:a({},n,{dflt:"solid",editType:"none"}),editType:"none"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"none",description:["Sets the color filling new shapes' interior.","Please note that if using a fillcolor with alpha greater than half,","drag inside the active shape starts moving the shape underneath,","otherwise a new shape could be started over."].join(" ")},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"none",description:["Determines the path's interior.","For more info please visit https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/fill-rule"].join(" ")},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"none",description:"Sets the opacity of new shapes."},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"none",description:"Specifies whether new shapes are drawn below or above traces."},drawdirection:{valType:"enumerated",values:["ortho","horizontal","vertical","diagonal"],dflt:"diagonal",editType:"none",description:["When `dragmode` is set to *drawrect*, *drawline* or *drawcircle*","this limits the drag to be horizontal, vertical or diagonal.","Using *diagonal* there is no limit e.g. in drawing lines in any direction.","*ortho* limits the draw to be either horizontal or vertical.","*horizontal* allows horizontal extend.","*vertical* allows vertical extend."].join(" ")},editType:"none"},activeshape:{fillcolor:{valType:"color",dflt:"rgb(255,0,255)",editType:"none",description:"Sets the color filling the active shape' interior."},opacity:{valType:"number",min:0,max:1,dflt:.5,editType:"none",description:"Sets the opacity of the active shape."},editType:"none"}}},function(e,t,r){"use strict";var n=r(9),a=r(65).isArrayOrTypedArray;t.aggNums=function(e,r,i,o){var l,s;if((!o||o>i.length)&&(o=i.length),n(r)||(r=!1),a(i[0])){for(s=new Array(o),l=0;l<o;l++)s[l]=t.aggNums(e,r,i[l]);i=s}for(l=0;l<o;l++)n(r)?n(i[l])&&(r=e(+r,+i[l])):r=i[l];return r},t.len=function(e){return t.aggNums((function(e){return e+1}),0,e)},t.mean=function(e,r){return r||(r=t.len(e)),t.aggNums((function(e,t){return e+t}),0,e)/r},t.midRange=function(e){if(void 0!==e&&0!==e.length)return(t.aggNums(Math.max,null,e)+t.aggNums(Math.min,null,e))/2},t.variance=function(e,r,a){return r||(r=t.len(e)),n(a)||(a=t.mean(e,r)),t.aggNums((function(e,t){return e+Math.pow(t-a,2)}),0,e)/r},t.stdev=function(e,r,n){return Math.sqrt(t.variance(e,r,n))},t.median=function(e){var r=e.slice().sort();return t.interp(r,.5)},t.interp=function(e,t){if(!n(t))throw"n should be a finite number";if((t=t*e.length-.5)<0)return e[0];if(t>e.length-1)return e[e.length-1];var r=t%1;return r*e[Math.ceil(t)]+(1-r)*e[Math.floor(t)]}},function(e,t,r){"use strict";var n=r(89),a=n.mod,i=n.modHalf,o=Math.PI,l=2*o;function s(e){return Math.abs(e[1]-e[0])>l-1e-14}function c(e,t){return i(t-e,l)}function u(e,t){if(s(t))return!0;var r,n;t[0]<t[1]?(r=t[0],n=t[1]):(r=t[1],n=t[0]),(r=a(r,l))>(n=a(n,l))&&(n+=l);var i=a(e,l),o=i+l;return i>=r&&i<=n||o>=r&&o<=n}function f(e,t,r,n,a,i,c){a=a||0,i=i||0;var u,f,d,p,h,g=s([r,n]);function v(e,t){return[e*Math.cos(t)+a,i-e*Math.sin(t)]}g?(u=0,f=o,d=l):r<n?(u=r,d=n):(u=n,d=r),e<t?(p=e,h=t):(p=t,h=e);var y,m=Math.abs(d-u)<=o?0:1;function b(e,t,r){return"A"+[e,e]+" "+[0,m,r]+" "+v(e,t)}return g?y=null===p?"M"+v(h,u)+b(h,f,0)+b(h,d,0)+"Z":"M"+v(p,u)+b(p,f,0)+b(p,d,0)+"ZM"+v(h,u)+b(h,f,1)+b(h,d,1)+"Z":null===p?(y="M"+v(h,u)+b(h,d,0),c&&(y+="L0,0Z")):y="M"+v(p,u)+"L"+v(h,u)+b(h,d,0)+"L"+v(p,d)+b(p,u,1)+"Z",y}e.exports={deg2rad:function(e){return e/180*o},rad2deg:function(e){return e/o*180},angleDelta:c,angleDist:function(e,t){return Math.abs(c(e,t))},isFullCircle:s,isAngleInsideSector:u,isPtInsideSector:function(e,t,r,n){return!!u(t,n)&&(r[0]<r[1]?(a=r[0],i=r[1]):(a=r[1],i=r[0]),e>=a&&e<=i);var a,i},pathArc:function(e,t,r,n,a){return f(null,e,t,r,n,a,0)},pathSector:function(e,t,r,n,a){return f(null,e,t,r,n,a,1)},pathAnnulus:function(e,t,r,n,a,i){return f(e,t,r,n,a,i,1)}}},function(e,t,r){"use strict";t.isLeftAnchor=function(e){return"left"===e.xanchor||"auto"===e.xanchor&&e.x<=1/3},t.isCenterAnchor=function(e){return"center"===e.xanchor||"auto"===e.xanchor&&e.x>1/3&&e.x<2/3},t.isRightAnchor=function(e){return"right"===e.xanchor||"auto"===e.xanchor&&e.x>=2/3},t.isTopAnchor=function(e){return"top"===e.yanchor||"auto"===e.yanchor&&e.y>=2/3},t.isMiddleAnchor=function(e){return"middle"===e.yanchor||"auto"===e.yanchor&&e.y>1/3&&e.y<2/3},t.isBottomAnchor=function(e){return"bottom"===e.yanchor||"auto"===e.yanchor&&e.y<=1/3}},function(e,t,r){"use strict";var n,a,i,o=r(89).mod;function l(e,t,r,n,a,i,o,l){var s=r-e,c=a-e,u=o-a,f=n-t,d=i-t,p=l-i,h=s*p-u*f;if(0===h)return null;var g=(c*p-u*d)/h,v=(c*f-s*d)/h;return v<0||v>1||g<0||g>1?null:{x:e+s*g,y:t+f*g}}function s(e,t,r,n,a){var i=n*e+a*t;if(i<0)return n*n+a*a;if(i>r){var o=n-e,l=a-t;return o*o+l*l}var s=n*t-a*e;return s*s/r}t.segmentsIntersect=l,t.segmentDistance=function(e,t,r,n,a,i,o,c){if(l(e,t,r,n,a,i,o,c))return 0;var u=r-e,f=n-t,d=o-a,p=c-i,h=u*u+f*f,g=d*d+p*p,v=Math.min(s(u,f,h,a-e,i-t),s(u,f,h,o-e,c-t),s(d,p,g,e-a,t-i),s(d,p,g,r-a,n-i));return Math.sqrt(v)},t.getTextLocation=function(e,t,r,l){if(e===a&&l===i||(n={},a=e,i=l),n[r])return n[r];var s=e.getPointAtLength(o(r-l/2,t)),c=e.getPointAtLength(o(r+l/2,t)),u=Math.atan((c.y-s.y)/(c.x-s.x)),f=e.getPointAtLength(o(r,t)),d={x:(4*f.x+s.x+c.x)/6,y:(4*f.y+s.y+c.y)/6,theta:u};return n[r]=d,d},t.clearLocationCache=function(){a=null},t.getVisibleSegment=function(e,t,r){var n,a,i=t.left,o=t.right,l=t.top,s=t.bottom,c=0,u=e.getTotalLength(),f=u;function d(t){var r=e.getPointAtLength(t);0===t?n=r:t===u&&(a=r);var c=r.x<i?i-r.x:r.x>o?r.x-o:0,f=r.y<l?l-r.y:r.y>s?r.y-s:0;return Math.sqrt(c*c+f*f)}for(var p=d(c);p;){if((c+=p+r)>f)return;p=d(c)}for(p=d(f);p;){if(c>(f-=p+r))return;p=d(f)}return{min:c,max:f,len:f-c,total:u,isClosed:0===c&&f===u&&Math.abs(n.x-a.x)<.1&&Math.abs(n.y-a.y)<.1}},t.findPointOnPath=function(e,t,r,n){for(var a,i,o,l=(n=n||{}).pathLength||e.getTotalLength(),s=n.tolerance||.001,c=n.iterationLimit||30,u=e.getPointAtLength(0)[r]>e.getPointAtLength(l)[r]?-1:1,f=0,d=0,p=l;f<c;){if(a=(d+p)/2,o=(i=e.getPointAtLength(a))[r]-t,Math.abs(o)<s)return i;u*o>0?p=a:d=a,f++}return i}},function(e,t,r){"use strict";e.exports=function(e){e._responsiveChartHandler&&(window.removeEventListener("resize",e._responsiveChartHandler),delete e._responsiveChartHandler)}},function(e,t,r){"use strict";var n=r(9),a=r(516);e.exports=function(e){var t;if("string"!==typeof(t=e&&e.hasOwnProperty("userAgent")?e.userAgent:function(){var e;"undefined"!==typeof navigator&&(e=navigator.userAgent);e&&e.headers&&"string"===typeof e.headers["user-agent"]&&(e=e.headers["user-agent"]);return e}()))return!0;var r=a({ua:{headers:{"user-agent":t}},tablet:!0,featureDetect:!1});if(!r)for(var i=t.split(" "),o=1;o<i.length;o++){if(-1!==i[o].indexOf("Safari"))for(var l=o-1;l>-1;l--){var s=i[l];if("Version/"===s.substr(0,8)){var c=s.substr(8).split(".")[0];if(n(c)&&(c=+c),c>=13)return!0}}}return r}},function(e,t,r){"use strict";e.exports=i,e.exports.isMobile=i,e.exports.default=i;var n=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,a=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino|android|ipad|playbook|silk/i;function i(e){e||(e={});var t=e.ua;if(t||"undefined"===typeof navigator||(t=navigator.userAgent),t&&t.headers&&"string"===typeof t.headers["user-agent"]&&(t=t.headers["user-agent"]),"string"!==typeof t)return!1;var r=e.tablet?a.test(t):n.test(t);return!r&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&-1!==t.indexOf("Macintosh")&&-1!==t.indexOf("Safari")&&(r=!0),r}},function(e,t,r){"use strict";var n=r(7);e.exports=function(e,t,r){var a=e.selectAll("g."+r.replace(/\s/g,".")).data(t,(function(e){return e[0].trace.uid}));a.exit().remove(),a.enter().append("g").attr("class",r),a.order();var i=e.classed("rangeplot")?"nodeRangePlot3":"node3";return a.each((function(e){e[0][i]=n.select(this)})),a}},function(e,t,r){"use strict";var n=r(5);e.exports=function(e,t){for(var r=e._context.locale,a=0;a<2;a++){for(var i=e._context.locales,o=0;o<2;o++){var l=(i[r]||{}).dictionary;if(l){var s=l[t];if(s)return s}i=n.localeRegistry}var c=r.split("-")[0];if(c===r)break;r=c}return t}},function(e,t,r){"use strict";e.exports=function(e){for(var t={},r=[],n=0,a=0;a<e.length;a++){var i=e[a];1!==t[i]&&(t[i]=1,r[n++]=i)}return r}},function(e,t,r){"use strict";function n(e){return!0===e.visible}function a(e){var t=e[0].trace;return!0===t.visible&&0!==t._length}e.exports=function(e){for(var t,r=(t=e,Array.isArray(t)&&Array.isArray(t[0])&&t[0][0]&&t[0][0].trace?a:n),i=[],o=0;o<e.length;o++){var l=e[o];r(l)&&i.push(l)}return i}},function(e,t,r){"use strict";e.exports=function(e,t){if(!t)return e;var r=1/Math.abs(t),n=r>1?(r*e+r*t)/r:e+t,a=String(n).length;if(a>16){var i=String(t).length;if(a>=String(e).length+i){var o=parseFloat(n).toPrecision(12);-1===o.indexOf("e+")&&(n=+o)}}return n}},function(e,t,r){"use strict";var n=r(9),a=r(19).BADNUM,i=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;e.exports=function(e){return"string"===typeof e&&(e=e.replace(i,"")),n(e)?Number(e):a}},function(e,t,r){"use strict";var n=r(241);t._doPlot=n._doPlot,t.newPlot=n.newPlot,t.restyle=n.restyle,t.relayout=n.relayout,t.redraw=n.redraw,t.update=n.update,t._guiRestyle=n._guiRestyle,t._guiRelayout=n._guiRelayout,t._guiUpdate=n._guiUpdate,t._storeDirectGUIEdit=n._storeDirectGUIEdit,t.react=n.react,t.extendTraces=n.extendTraces,t.prependTraces=n.prependTraces,t.addTraces=n.addTraces,t.deleteTraces=n.deleteTraces,t.moveTraces=n.moveTraces,t.purge=n.purge,t.addFrames=n.addFrames,t.deleteFrames=n.deleteFrames,t.animate=n.animate,t.setPlotConfig=n.setPlotConfig,t.toImage=r(276),t.validate=r(556),t.downloadImage=r(277);var a=r(558);t.makeTemplate=a.makeTemplate,t.validateTemplate=a.validateTemplate},function(e,t,r){"use strict";var n=r(0),a=r(73).dfltConfig;var i={add:function(e,t,r,n,i){var o,l;e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},l=e.undoQueue.index,e.autoplay?e.undoQueue.inSequence||(e.autoplay=!1):(!e.undoQueue.sequence||e.undoQueue.beginSequence?(o={undo:{calls:[],args:[]},redo:{calls:[],args:[]}},e.undoQueue.queue.splice(l,e.undoQueue.queue.length-l,o),e.undoQueue.index+=1):o=e.undoQueue.queue[l-1],e.undoQueue.beginSequence=!1,o&&(o.undo.calls.unshift(t),o.undo.args.unshift(r),o.redo.calls.push(n),o.redo.args.push(i)),e.undoQueue.queue.length>a.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--))},startSequence:function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0},stopSequence:function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1},undo:function(e){var t,r;if(!(void 0===e.undoQueue||isNaN(e.undoQueue.index)||e.undoQueue.index<=0)){for(e.undoQueue.index--,t=e.undoQueue.queue[e.undoQueue.index],e.undoQueue.inSequence=!0,r=0;r<t.undo.calls.length;r++)i.plotDo(e,t.undo.calls[r],t.undo.args[r]);e.undoQueue.inSequence=!1,e.autoplay=!1}},redo:function(e){var t,r;if(!(void 0===e.undoQueue||isNaN(e.undoQueue.index)||e.undoQueue.index>=e.undoQueue.queue.length)){for(t=e.undoQueue.queue[e.undoQueue.index],e.undoQueue.inSequence=!0,r=0;r<t.redo.calls.length;r++)i.plotDo(e,t.redo.calls[r],t.redo.args[r]);e.undoQueue.inSequence=!1,e.autoplay=!1,e.undoQueue.index++}}};i.plotDo=function(e,t,r){e.autoplay=!0,r=function(e,t){for(var r,a=[],i=0;i<t.length;i++)r=t[i],a[i]=r===e?r:"object"===typeof r?Array.isArray(r)?n.extendDeep([],r):n.extendDeepAll({},r):r;return a}(e,r),t.apply(null,r)},e.exports=i},function(e,t,r){"use strict";var n=r(5),a=r(0);function i(e,t,r){var n,i,o,l=!1;if("data"===t.type)n=e._fullData[null!==t.traces?t.traces[0]:0];else{if("layout"!==t.type)return!1;n=e._fullLayout}return i=a.nestedProperty(n,t.prop).get(),(o=r[t.type]=r[t.type]||{}).hasOwnProperty(t.prop)&&o[t.prop]!==i&&(l=!0),o[t.prop]=i,{changed:l,value:i}}function o(e,t){var r=[],n=t[0],i={};if("string"===typeof n)i[n]=t[1];else{if(!a.isPlainObject(n))return r;i=n}return s(i,(function(e,t,n){r.push({type:"layout",prop:e,value:n})}),"",0),r}function l(e,t){var r,n,i,o,l=[];if(n=t[0],i=t[1],r=t[2],o={},"string"===typeof n)o[n]=i;else{if(!a.isPlainObject(n))return l;o=n,void 0===r&&(r=i)}return void 0===r&&(r=null),s(o,(function(t,n,a){var i,o;if(Array.isArray(a)){o=a.slice();var s=Math.min(o.length,e.data.length);r&&(s=Math.min(s,r.length)),i=[];for(var c=0;c<s;c++)i[c]=r?r[c]:c}else o=a,i=r?r.slice():null;if(null===i)Array.isArray(o)&&(o=o[0]);else if(Array.isArray(i)){if(!Array.isArray(o)){var u=o;o=[];for(var f=0;f<i.length;f++)o[f]=u}o.length=Math.min(i.length,o.length)}l.push({type:"data",prop:t,traces:i,value:o})}),"",0),l}function s(e,t,r,n){Object.keys(e).forEach((function(i){var o=e[i];if("_"!==i[0]){var l=r+(n>0?".":"")+i;a.isPlainObject(o)?s(o,t,l,n+1):t(l,i,o)}}))}t.manageCommandObserver=function(e,r,n,o){var l={},s=!0;r&&r._commandObserver&&(l=r._commandObserver),l.cache||(l.cache={}),l.lookupTable={};var c=t.hasSimpleAPICommandBindings(e,n,l.lookupTable);if(r&&r._commandObserver){if(c)return l;if(r._commandObserver.remove)return r._commandObserver.remove(),r._commandObserver=null,l}if(c){i(e,c,l.cache),l.check=function(){if(s){var t=i(e,c,l.cache);return t.changed&&o&&void 0!==l.lookupTable[t.value]&&(l.disable(),Promise.resolve(o({value:t.value,type:c.type,prop:c.prop,traces:c.traces,index:l.lookupTable[t.value]})).then(l.enable,l.enable)),t.changed}};for(var u=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],f=0;f<u.length;f++)e._internalOn(u[f],l.check);l.remove=function(){for(var t=0;t<u.length;t++)e._removeInternalListener(u[t],l.check)}}else a.log("Unable to automatically bind plot updates to API command"),l.lookupTable={},l.remove=function(){};return l.disable=function(){s=!1},l.enable=function(){s=!0},r&&(r._commandObserver=l),l},t.hasSimpleAPICommandBindings=function(e,r,n){var a,i,o=r.length;for(a=0;a<o;a++){var l,s=r[a],c=s.method,u=s.args;if(Array.isArray(u)||(u=[]),!c)return!1;var f=t.computeAPICommandBindings(e,c,u);if(1!==f.length)return!1;if(i){if((l=f[0]).type!==i.type)return!1;if(l.prop!==i.prop)return!1;if(Array.isArray(i.traces)){if(!Array.isArray(l.traces))return!1;l.traces.sort();for(var d=0;d<i.traces.length;d++)if(i.traces[d]!==l.traces[d])return!1}else if(l.prop!==i.prop)return!1}else i=f[0],Array.isArray(i.traces)&&i.traces.sort();var p=(l=f[0]).value;if(Array.isArray(p)){if(1!==p.length)return!1;p=p[0]}n&&(n[p]=a)}return i},t.executeAPICommand=function(e,t,r){if("skip"===t)return Promise.resolve();var i=n.apiMethodRegistry[t],o=[e];Array.isArray(r)||(r=[]);for(var l=0;l<r.length;l++)o.push(r[l]);return i.apply(null,o).catch((function(e){return a.warn("API call to Plotly."+t+" rejected.",e),Promise.reject(e)}))},t.computeAPICommandBindings=function(e,t,r){var n;switch(Array.isArray(r)||(r=[]),t){case"restyle":n=l(e,r);break;case"relayout":n=o(e,r);break;case"update":n=l(e,[r[0],r[2]]).concat(o(e,[r[1]]));break;case"animate":n=function(e,t){return Array.isArray(t[0])&&1===t[0].length&&-1!==["string","number"].indexOf(typeof t[0][0])?[{type:"layout",prop:"_currentFrame",value:t[0][0].toString()}]:[]}(0,r);break;default:n=[]}return n}},function(e,t,r){"use strict";var n=r(0),a=r(17),i=r(247),o=r(97);e.exports=function(e,t){function r(r,a){return n.coerce(e,t,i,r,a)}r("colorscale.sequential"),r("colorscale.sequentialminus"),r("colorscale.diverging");var l,s,c=t._colorAxes;function u(e,t){return n.coerce(l,s,i.coloraxis,e,t)}for(var f in c){var d=c[f];if(d[0])l=e[f]||{},(s=a.newContainer(t,f,"coloraxis"))._name=f,o(l,s,t,u,{prefix:"",cLetter:"c"});else{for(var p=0;p<d[2].length;p++)d[2][p]();delete t._colorAxes[f]}}}},function(e,t,r){"use strict";var n=r(0),a=r(39).hasColorscale,i=r(39).extractOpts;e.exports=function(e,t){function r(e,t){var r=e["_"+t];void 0!==r&&(e[t]=r)}function o(e,a){var o=a.container?n.nestedProperty(e,a.container).get():e;if(o)if(o.coloraxis)o._colorAx=t[o.coloraxis];else{var l=i(o),s=l.auto;(s||void 0===l.min)&&r(o,a.min),(s||void 0===l.max)&&r(o,a.max),l.autocolorscale&&r(o,"colorscale")}}for(var l=0;l<e.length;l++){var s=e[l],c=s._module.colorbar;if(c)if(Array.isArray(c))for(var u=0;u<c.length;u++)o(s,c[u]);else o(s,c);a(s,"marker.line")&&o(s,{container:"marker.line",min:"cmin",max:"cmax"})}for(var f in t._colorAxes)o(t[f],{min:"cmin",max:"cmax"})}},function(e,t,r){"use strict";var n=r(7);e.exports={circle:{n:0,f:function(e){var t=n.round(e,2);return"M"+t+",0A"+t+","+t+" 0 1,1 0,-"+t+"A"+t+","+t+" 0 0,1 "+t+",0Z"}},square:{n:1,f:function(e){var t=n.round(e,2);return"M"+t+","+t+"H-"+t+"V-"+t+"H"+t+"Z"}},diamond:{n:2,f:function(e){var t=n.round(1.3*e,2);return"M"+t+",0L0,"+t+"L-"+t+",0L0,-"+t+"Z"}},cross:{n:3,f:function(e){var t=n.round(.4*e,2),r=n.round(1.2*e,2);return"M"+r+","+t+"H"+t+"V"+r+"H-"+t+"V"+t+"H-"+r+"V-"+t+"H-"+t+"V-"+r+"H"+t+"V-"+t+"H"+r+"Z"}},x:{n:4,f:function(e){var t=n.round(.8*e/Math.sqrt(2),2),r="l"+t+","+t,a="l"+t+",-"+t,i="l-"+t+",-"+t,o="l-"+t+","+t;return"M0,"+t+r+a+i+a+i+o+i+o+r+o+r+"Z"}},"triangle-up":{n:5,f:function(e){var t=n.round(2*e/Math.sqrt(3),2);return"M-"+t+","+n.round(e/2,2)+"H"+t+"L0,-"+n.round(e,2)+"Z"}},"triangle-down":{n:6,f:function(e){var t=n.round(2*e/Math.sqrt(3),2);return"M-"+t+",-"+n.round(e/2,2)+"H"+t+"L0,"+n.round(e,2)+"Z"}},"triangle-left":{n:7,f:function(e){var t=n.round(2*e/Math.sqrt(3),2);return"M"+n.round(e/2,2)+",-"+t+"V"+t+"L-"+n.round(e,2)+",0Z"}},"triangle-right":{n:8,f:function(e){var t=n.round(2*e/Math.sqrt(3),2);return"M-"+n.round(e/2,2)+",-"+t+"V"+t+"L"+n.round(e,2)+",0Z"}},"triangle-ne":{n:9,f:function(e){var t=n.round(.6*e,2),r=n.round(1.2*e,2);return"M-"+r+",-"+t+"H"+t+"V"+r+"Z"}},"triangle-se":{n:10,f:function(e){var t=n.round(.6*e,2),r=n.round(1.2*e,2);return"M"+t+",-"+r+"V"+t+"H-"+r+"Z"}},"triangle-sw":{n:11,f:function(e){var t=n.round(.6*e,2),r=n.round(1.2*e,2);return"M"+r+","+t+"H-"+t+"V-"+r+"Z"}},"triangle-nw":{n:12,f:function(e){var t=n.round(.6*e,2),r=n.round(1.2*e,2);return"M-"+t+","+r+"V-"+t+"H"+r+"Z"}},pentagon:{n:13,f:function(e){var t=n.round(.951*e,2),r=n.round(.588*e,2),a=n.round(-e,2),i=n.round(-.309*e,2);return"M"+t+","+i+"L"+r+","+n.round(.809*e,2)+"H-"+r+"L-"+t+","+i+"L0,"+a+"Z"}},hexagon:{n:14,f:function(e){var t=n.round(e,2),r=n.round(e/2,2),a=n.round(e*Math.sqrt(3)/2,2);return"M"+a+",-"+r+"V"+r+"L0,"+t+"L-"+a+","+r+"V-"+r+"L0,-"+t+"Z"}},hexagon2:{n:15,f:function(e){var t=n.round(e,2),r=n.round(e/2,2),a=n.round(e*Math.sqrt(3)/2,2);return"M-"+r+","+a+"H"+r+"L"+t+",0L"+r+",-"+a+"H-"+r+"L-"+t+",0Z"}},octagon:{n:16,f:function(e){var t=n.round(.924*e,2),r=n.round(.383*e,2);return"M-"+r+",-"+t+"H"+r+"L"+t+",-"+r+"V"+r+"L"+r+","+t+"H-"+r+"L-"+t+","+r+"V-"+r+"Z"}},star:{n:17,f:function(e){var t=1.4*e,r=n.round(.225*t,2),a=n.round(.951*t,2),i=n.round(.363*t,2),o=n.round(.588*t,2),l=n.round(-t,2),s=n.round(-.309*t,2),c=n.round(.118*t,2),u=n.round(.809*t,2);return"M"+r+","+s+"H"+a+"L"+i+","+c+"L"+o+","+u+"L0,"+n.round(.382*t,2)+"L-"+o+","+u+"L-"+i+","+c+"L-"+a+","+s+"H-"+r+"L0,"+l+"Z"}},hexagram:{n:18,f:function(e){var t=n.round(.66*e,2),r=n.round(.38*e,2),a=n.round(.76*e,2);return"M-"+a+",0l-"+r+",-"+t+"h"+a+"l"+r+",-"+t+"l"+r+","+t+"h"+a+"l-"+r+","+t+"l"+r+","+t+"h-"+a+"l-"+r+","+t+"l-"+r+",-"+t+"h-"+a+"Z"}},"star-triangle-up":{n:19,f:function(e){var t=n.round(e*Math.sqrt(3)*.8,2),r=n.round(.8*e,2),a=n.round(1.6*e,2),i=n.round(4*e,2),o="A "+i+","+i+" 0 0 1 ";return"M-"+t+","+r+o+t+","+r+o+"0,-"+a+o+"-"+t+","+r+"Z"}},"star-triangle-down":{n:20,f:function(e){var t=n.round(e*Math.sqrt(3)*.8,2),r=n.round(.8*e,2),a=n.round(1.6*e,2),i=n.round(4*e,2),o="A "+i+","+i+" 0 0 1 ";return"M"+t+",-"+r+o+"-"+t+",-"+r+o+"0,"+a+o+t+",-"+r+"Z"}},"star-square":{n:21,f:function(e){var t=n.round(1.1*e,2),r=n.round(2*e,2),a="A "+r+","+r+" 0 0 1 ";return"M-"+t+",-"+t+a+"-"+t+","+t+a+t+","+t+a+t+",-"+t+a+"-"+t+",-"+t+"Z"}},"star-diamond":{n:22,f:function(e){var t=n.round(1.4*e,2),r=n.round(1.9*e,2),a="A "+r+","+r+" 0 0 1 ";return"M-"+t+",0"+a+"0,"+t+a+t+",0"+a+"0,-"+t+a+"-"+t+",0Z"}},"diamond-tall":{n:23,f:function(e){var t=n.round(.7*e,2),r=n.round(1.4*e,2);return"M0,"+r+"L"+t+",0L0,-"+r+"L-"+t+",0Z"}},"diamond-wide":{n:24,f:function(e){var t=n.round(1.4*e,2),r=n.round(.7*e,2);return"M0,"+r+"L"+t+",0L0,-"+r+"L-"+t+",0Z"}},hourglass:{n:25,f:function(e){var t=n.round(e,2);return"M"+t+","+t+"H-"+t+"L"+t+",-"+t+"H-"+t+"Z"},noDot:!0},bowtie:{n:26,f:function(e){var t=n.round(e,2);return"M"+t+","+t+"V-"+t+"L-"+t+","+t+"V-"+t+"Z"},noDot:!0},"circle-cross":{n:27,f:function(e){var t=n.round(e,2);return"M0,"+t+"V-"+t+"M"+t+",0H-"+t+"M"+t+",0A"+t+","+t+" 0 1,1 0,-"+t+"A"+t+","+t+" 0 0,1 "+t+",0Z"},needLine:!0,noDot:!0},"circle-x":{n:28,f:function(e){var t=n.round(e,2),r=n.round(e/Math.sqrt(2),2);return"M"+r+","+r+"L-"+r+",-"+r+"M"+r+",-"+r+"L-"+r+","+r+"M"+t+",0A"+t+","+t+" 0 1,1 0,-"+t+"A"+t+","+t+" 0 0,1 "+t+",0Z"},needLine:!0,noDot:!0},"square-cross":{n:29,f:function(e){var t=n.round(e,2);return"M0,"+t+"V-"+t+"M"+t+",0H-"+t+"M"+t+","+t+"H-"+t+"V-"+t+"H"+t+"Z"},needLine:!0,noDot:!0},"square-x":{n:30,f:function(e){var t=n.round(e,2);return"M"+t+","+t+"L-"+t+",-"+t+"M"+t+",-"+t+"L-"+t+","+t+"M"+t+","+t+"H-"+t+"V-"+t+"H"+t+"Z"},needLine:!0,noDot:!0},"diamond-cross":{n:31,f:function(e){var t=n.round(1.3*e,2);return"M"+t+",0L0,"+t+"L-"+t+",0L0,-"+t+"ZM0,-"+t+"V"+t+"M-"+t+",0H"+t},needLine:!0,noDot:!0},"diamond-x":{n:32,f:function(e){var t=n.round(1.3*e,2),r=n.round(.65*e,2);return"M"+t+",0L0,"+t+"L-"+t+",0L0,-"+t+"ZM-"+r+",-"+r+"L"+r+","+r+"M-"+r+","+r+"L"+r+",-"+r},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(e){var t=n.round(1.4*e,2);return"M0,"+t+"V-"+t+"M"+t+",0H-"+t},needLine:!0,noDot:!0,noFill:!0},"x-thin":{n:34,f:function(e){var t=n.round(e,2);return"M"+t+","+t+"L-"+t+",-"+t+"M"+t+",-"+t+"L-"+t+","+t},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(e){var t=n.round(1.2*e,2),r=n.round(.85*e,2);return"M0,"+t+"V-"+t+"M"+t+",0H-"+t+"M"+r+","+r+"L-"+r+",-"+r+"M"+r+",-"+r+"L-"+r+","+r},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(e){var t=n.round(e/2,2),r=n.round(e,2);return"M"+t+","+r+"V-"+r+"m-"+r+",0V"+r+"M"+r+","+t+"H-"+r+"m0,-"+r+"H"+r},needLine:!0,noFill:!0},"y-up":{n:37,f:function(e){var t=n.round(1.2*e,2),r=n.round(1.6*e,2),a=n.round(.8*e,2);return"M-"+t+","+a+"L0,0M"+t+","+a+"L0,0M0,-"+r+"L0,0"},needLine:!0,noDot:!0,noFill:!0},"y-down":{n:38,f:function(e){var t=n.round(1.2*e,2),r=n.round(1.6*e,2),a=n.round(.8*e,2);return"M-"+t+",-"+a+"L0,0M"+t+",-"+a+"L0,0M0,"+r+"L0,0"},needLine:!0,noDot:!0,noFill:!0},"y-left":{n:39,f:function(e){var t=n.round(1.2*e,2),r=n.round(1.6*e,2),a=n.round(.8*e,2);return"M"+a+","+t+"L0,0M"+a+",-"+t+"L0,0M-"+r+",0L0,0"},needLine:!0,noDot:!0,noFill:!0},"y-right":{n:40,f:function(e){var t=n.round(1.2*e,2),r=n.round(1.6*e,2),a=n.round(.8*e,2);return"M-"+a+","+t+"L0,0M-"+a+",-"+t+"L0,0M"+r+",0L0,0"},needLine:!0,noDot:!0,noFill:!0},"line-ew":{n:41,f:function(e){var t=n.round(1.4*e,2);return"M"+t+",0H-"+t},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(e){var t=n.round(1.4*e,2);return"M0,"+t+"V-"+t},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(e){var t=n.round(e,2);return"M"+t+",-"+t+"L-"+t+","+t},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(e){var t=n.round(e,2);return"M"+t+","+t+"L-"+t+",-"+t},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(e){var t=n.round(e,2);return"M0,0L-"+t+","+n.round(2*e,2)+"H"+t+"Z"},noDot:!0},"arrow-down":{n:46,f:function(e){var t=n.round(e,2);return"M0,0L-"+t+",-"+n.round(2*e,2)+"H"+t+"Z"},noDot:!0},"arrow-left":{n:47,f:function(e){var t=n.round(2*e,2),r=n.round(e,2);return"M0,0L"+t+",-"+r+"V"+r+"Z"},noDot:!0},"arrow-right":{n:48,f:function(e){var t=n.round(2*e,2),r=n.round(e,2);return"M0,0L-"+t+",-"+r+"V"+r+"Z"},noDot:!0},"arrow-bar-up":{n:49,f:function(e){var t=n.round(e,2);return"M-"+t+",0H"+t+"M0,0L-"+t+","+n.round(2*e,2)+"H"+t+"Z"},needLine:!0,noDot:!0},"arrow-bar-down":{n:50,f:function(e){var t=n.round(e,2);return"M-"+t+",0H"+t+"M0,0L-"+t+",-"+n.round(2*e,2)+"H"+t+"Z"},needLine:!0,noDot:!0},"arrow-bar-left":{n:51,f:function(e){var t=n.round(2*e,2),r=n.round(e,2);return"M0,-"+r+"V"+r+"M0,0L"+t+",-"+r+"V"+r+"Z"},needLine:!0,noDot:!0},"arrow-bar-right":{n:52,f:function(e){var t=n.round(2*e,2),r=n.round(e,2);return"M0,-"+r+"V"+r+"M0,0L-"+t+",-"+r+"V"+r+"Z"},needLine:!0,noDot:!0}}},function(e,t){var r={left:0,top:0};e.exports=function(e,t,n){t=t||e.currentTarget||e.srcElement,Array.isArray(n)||(n=[0,0]);var a=e.clientX||0,i=e.clientY||0,o=(l=t,l===window||l===document||l===document.body?r:l.getBoundingClientRect());var l;return n[0]=a-o.left,n[1]=i-o.top,n}},function(e,t,r){"use strict";e.exports=function(e,t,r,n,a){var i=(e-r)/(n-r),o=i+t/(n-r),l=(i+o)/2;return"left"===a||"bottom"===a?i:"center"===a||"middle"===a?l:"right"===a||"top"===a?o:i<2/3-l?i:o>4/3-l?o:l}},function(e,t,r){"use strict";var n=r(0),a=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];e.exports=function(e,t,r,i){return e="left"===r?0:"center"===r?1:"right"===r?2:n.constrain(Math.floor(3*e),0,2),t="bottom"===i?0:"middle"===i?1:"top"===i?2:n.constrain(Math.floor(3*t),0,2),a[t][e]}},function(e,t,r){"use strict";var n=r(94),a=r(164),i=r(160).getGraphDiv,o=r(120),l=e.exports={};l.wrapped=function(e,t,r){(e=i(e))._fullLayout&&a.clear(e._fullLayout._uid+o.HOVERID),l.raw(e,t,r)},l.raw=function(e,t){var r=e._fullLayout,a=e._hoverdata;t||(t={}),t.target&&!e._dragged&&!1===n.triggerHandler(e,"plotly_beforehover",t)||(r._hoverlayer.selectAll("g").remove(),r._hoverlayer.selectAll("line").remove(),r._hoverlayer.selectAll("circle").remove(),e._hoverdata=void 0,t.target&&a&&e.emit("plotly_unhover",{event:t,points:a}))}},function(e,t,r){"use strict";var n=r(56),a="data-savedcursor";e.exports=function(e,t){var r=e.attr(a);if(t){if(!r){for(var i=(e.attr("class")||"").split(" "),o=0;o<i.length;o++){var l=i[o];0===l.indexOf("cursor-")&&e.attr(a,l.substr(7)).classed(l,!1)}e.attr(a)||e.attr(a,"!!")}n(e,t)}else r&&(e.attr(a,null),"!!"===r?n(e):n(e,r))}},function(e,t,r){"use strict";var n=r(0),a=r(5),i=!0;e.exports=function(e,t,r){var o=t._fullLayout;if(!t._dragged&&!t._editing){var l,s=o.legend.itemclick,c=o.legend.itemdoubleclick,u=o.legend.groupclick;if(1===r&&"toggle"===s&&"toggleothers"===c&&i&&t.data&&t._context.showTips?(n.notifier(n._(t,"Double-click on legend to isolate one trace"),"long"),i=!1):i=!1,1===r?l=s:2===r&&(l=c),l){var f="togglegroup"===u,d=o.hiddenlabels?o.hiddenlabels.slice():[],p=e.data()[0][0];if(!p.groupTitle||!p.noClick){var h,g,v,y,m,b=t._fullData,x=p.trace,w=x.legendgroup,_={},k=[],T=[],A=[];if(a.traceIs(x,"pie-like")){var S=p.label,M=d.indexOf(S);"toggle"===l?-1===M?d.push(S):d.splice(M,1):"toggleothers"===l&&(d=[],t.calcdata[0].forEach((function(e){S!==e.label&&d.push(e.label)})),t._fullLayout.hiddenlabels&&t._fullLayout.hiddenlabels.length===d.length&&-1===M&&(d=[])),a.call("_guiRelayout",t,"hiddenlabels",d)}else{var O,C=w&&w.length,E=[];if(C)for(h=0;h<b.length;h++)(O=b[h]).visible&&O.legendgroup===w&&E.push(h);if("toggle"===l){var L;switch(x.visible){case!0:L="legendonly";break;case!1:L=!1;break;case"legendonly":L=!0}if(C)if(f)for(h=0;h<b.length;h++)!1!==b[h].visible&&b[h].legendgroup===w&&B(b[h],L);else B(x,L);else B(x,L)}else if("toggleothers"===l){var P,j,z,D,I=!0;for(h=0;h<b.length;h++)if(P=b[h]===x,z=!0!==b[h].showlegend,!P&&!z&&!(j=C&&b[h].legendgroup===w)&&!0===b[h].visible&&!a.traceIs(b[h],"notLegendIsolatable")){I=!1;break}for(h=0;h<b.length;h++)if(!1!==b[h].visible&&!a.traceIs(b[h],"notLegendIsolatable"))switch(x.visible){case"legendonly":B(b[h],!0);break;case!0:D=!!I||"legendonly",P=b[h]===x,z=!0!==b[h].showlegend&&!b[h].legendgroup,j=P||C&&b[h].legendgroup===w,B(b[h],!(!j&&!z)||D)}}for(h=0;h<T.length;h++)if(v=T[h]){var N=v.constructUpdate(),R=Object.keys(N);for(g=0;g<R.length;g++)y=R[g],(_[y]=_[y]||[])[A[h]]=N[y]}for(m=Object.keys(_),h=0;h<m.length;h++)for(y=m[h],g=0;g<k.length;g++)_[y].hasOwnProperty(g)||(_[y][g]=void 0);a.call("_guiRestyle",t,_,k)}}}}function F(e,t,r){var n=k.indexOf(e),a=_[t];return a||(a=_[t]=[]),-1===k.indexOf(e)&&(k.push(e),n=k.length-1),a[n]=r,n}function B(e,t){if(!p.groupTitle||f){var r=e._fullInput;if(a.hasTransform(r,"groupby")){var i=T[r.index];if(!i){var o=a.getTransformIndices(r,"groupby"),l=o[o.length-1];i=n.keyedContainer(r,"transforms["+l+"].styles","target","value.visible"),T[r.index]=i}var s=i.get(e._group);void 0===s&&(s=!0),!1!==s&&i.set(e._group,t),A[r.index]=F(r.index,"visible",!1!==r.visible)}else{var c=!1!==r.visible&&t;F(r.index,"visible",c)}}}}},function(e,t,r){"use strict";var n=r(5),a=r(169);e.exports=function(e,t){var r,i,o=t._inHover,l=a.isGrouped(t),s=a.isReversed(t),c={},u=[],f=!1,d={},p=0,h=0;function g(e,r){if(""!==e&&a.isGrouped(t))-1===u.indexOf(e)?(u.push(e),f=!0,c[e]=[r]):c[e].push(r);else{var n="~~i"+p;u.push(n),c[n]=[r],p++}}for(r=0;r<e.length;r++){var v=e[r],y=v[0],m=y.trace,b=m.legendgroup;if(o||m.visible&&m.showlegend)if(n.traceIs(m,"pie-like"))for(d[b]||(d[b]={}),i=0;i<v.length;i++){var x=v[i].label;d[b][x]||(g(b,{label:x,color:v[i].color,i:v[i].i,trace:m,pts:v[i].pts}),d[b][x]=!0,h=Math.max(h,(x||"").length))}else g(b,y),h=Math.max(h,(m.name||"").length)}if(!u.length)return[];var w=!f||!l,_=[];for(r=0;r<u.length;r++){var k=c[u[r]];w?_.push(k[0]):_.push(k)}for(w&&(_=[_]),r=0;r<_.length;r++){var T=1/0;for(i=0;i<_[r].length;i++){var A=_[r][i].trace.legendrank;T>A&&(T=A)}_[r][0]._groupMinRank=T,_[r][0]._preGroupSort=r}var S=function(e,t){return e.trace.legendrank-t.trace.legendrank||e._preSort-t._preSort};for(_.forEach((function(e,t){e[0]._preGroupSort=t})),_.sort((function(e,t){return e[0]._groupMinRank-t[0]._groupMinRank||e[0]._preGroupSort-t[0]._preGroupSort})),r=0;r<_.length;r++){_[r].forEach((function(e,t){e._preSort=t})),_[r].sort(S);var M=_[r][0].trace,O=null;for(i=0;i<_[r].length;i++){var C=_[r][i].trace.legendgrouptitle;if(C&&C.text){O=C,o&&(C.font=t._groupTitleFont);break}}if(s&&_[r].reverse(),O){var E=!1;for(i=0;i<_[r].length;i++)if(n.traceIs(_[r][i].trace,"pie-like")){E=!0;break}_[r].unshift({i:-1,groupTitle:O,noClick:E,trace:{showlegend:M.showlegend,legendgroup:M.legendgroup,visible:"toggleitem"===t.groupclick||M.visible}})}for(i=0;i<_[r].length;i++)_[r][i]=[_[r][i]]}return t._lgroupsLength=_.length,t._maxNameLength=h,_}},function(e,t,r){"use strict";var n=r(0),a=r(171),i=r(90);e.exports=function(e,t){a(e,t,(function(r,a){return n.coerce(e,t,i,r,a)}))}},function(e,t,r){"use strict";var n=r(0),a=r(119),i=r(171);e.exports=function(e,t,r,o){var l=n.extendFlat({},o.hoverlabel);t.hovertemplate&&(l.namelength=-1),i(e,t,(function(r,i){return n.coerce(e,t,a,r,i)}),l)}},function(e,t,r){"use strict";var n=r(0),a=r(90),i=r(266),o=r(171);e.exports=function(e,t){function r(r,i){return n.coerce(e,t,a,r,i)}i(e,t)&&(r("hoverdistance"),r("spikedistance")),"select"===r("dragmode")&&r("selectdirection");var l=t._has("mapbox"),s=t._has("geo"),c=t._basePlotModules.length;"zoom"===t.dragmode&&((l||s)&&1===c||l&&s&&2===c)&&(t.dragmode="pan"),o(e,t,r),n.coerceFont(r,"hoverlabel.grouptitlefont",t.hoverlabel.font)}},function(e,t,r){"use strict";var n=r(0),a=r(5);function i(e,t,r,a){a=a||n.identity,Array.isArray(e)&&(t[0][r]=a(e))}e.exports=function(e){var t=e.calcdata,r=e._fullLayout;function o(e){return function(t){return n.coerceHoverinfo({hoverinfo:t},{_module:e._module},r)}}for(var l=0;l<t.length;l++){var s=t[l],c=s[0].trace;if(!a.traceIs(c,"pie-like")){var u=a.traceIs(c,"2dMap")?i:n.fillArray;u(c.hoverinfo,s,"hi",o(c)),c.hovertemplate&&u(c.hovertemplate,s,"ht"),c.hoverlabel&&(u(c.hoverlabel.bgcolor,s,"hbg"),u(c.hoverlabel.bordercolor,s,"hbc"),u(c.hoverlabel.font.size,s,"hts"),u(c.hoverlabel.font.color,s,"htc"),u(c.hoverlabel.font.family,s,"htf"),u(c.hoverlabel.namelength,s,"hnl"),u(c.hoverlabel.align,s,"hta"))}}}},function(e,t,r){"use strict";var n=r(5),a=r(260).hover;e.exports=function(e,t,r){var i=n.getComponentMethod("annotations","onClick")(e,e._hoverdata);function o(){e.emit("plotly_click",{points:e._hoverdata,event:t})}void 0!==r&&a(e,t,r,!0),e._hoverdata&&t&&t.target&&(i&&i.then?i.then(o):o(),t.stopImmediatePropagation&&t.stopImmediatePropagation())}},function(e,t,r){"use strict";var n=r(7),a=r(0),i=a.numberFormat,o=r(34),l=r(259),s=r(5),c=a.strTranslate,u=r(25),f=r(8),d=r(10),p=r(41),h=r(14),g=r(56),v=r(46),y=r(99),m=y.selectingOrDrawing,b=y.freeMode,x=r(33).FROM_TL,w=r(172),_=r(173).redrawReglTraces,k=r(20),T=r(21).getFromId,A=r(124).prepSelect,S=r(124).clearSelect,M=r(124).selectOnClick,O=r(274),C=r(29),E=C.MINDRAG,L=C.MINZOOM,P=!0;function j(e,t,r,n){var i=a.ensureSingle(e.draglayer,t,r,(function(t){t.classed("drag",!0).style({fill:"transparent","stroke-width":0}).attr("data-subplot",e.id)}));return i.call(g,n),i.node()}function z(e,t,r,a,i,o,l){var s=j(e,"rect",t,r);return n.select(s).call(d.setRect,a,i,o,l),s}function D(e,t){for(var r=0;r<e.length;r++)if(!e[r].fixedrange)return t;return""}function I(e,t,r,n,a){for(var i=0;i<e.length;i++){var o=e[i];if(!o.fixedrange)if(o.rangebreaks){var l="y"===o._id.charAt(0),s=l?1-t:t,c=l?1-r:r;n[o._name+".range[0]"]=o.l2r(o.p2l(s*o._length)),n[o._name+".range[1]"]=o.l2r(o.p2l(c*o._length))}else{var u=o._rl[0],f=o._rl[1]-u;n[o._name+".range[0]"]=o.l2r(u+f*t),n[o._name+".range[1]"]=o.l2r(u+f*r)}}if(a&&a.length){var d=(t+(1-r))/2;I(a,d,1-d,n,[])}}function N(e,t){for(var r=0;r<e.length;r++){var n=e[r];if(!n.fixedrange)if(n.rangebreaks){var a=n._length,i=(n.p2l(0+t)-n.p2l(0)+(n.p2l(a+t)-n.p2l(a)))/2;n.range=[n.l2r(n._rl[0]-i),n.l2r(n._rl[1]-i)]}else n.range=[n.l2r(n._rl[0]-t/n._m),n.l2r(n._rl[1]-t/n._m)]}}function R(e){return 1-(e>=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function F(e,t,r,n,a){return e.append("path").attr("class","zoombox").style({fill:t>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",c(r,n)).attr("d",a+"Z")}function B(e,t,r){return e.append("path").attr("class","zoombox-corners").style({fill:f.background,stroke:f.defaultLine,"stroke-width":1,opacity:0}).attr("transform",c(t,r)).attr("d","M0,0Z")}function U(e,t,r,n,a,i){e.attr("d",n+"M"+r.l+","+r.t+"v"+r.h+"h"+r.w+"v-"+r.h+"h-"+r.w+"Z"),H(e,t,a,i)}function H(e,t,r,n){r||(e.transition().style("fill",n>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),t.transition().style("opacity",1).duration(200))}function V(e){n.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function q(e){P&&e.data&&e._context.showTips&&(a.notifier(a._(e,"Double-click to zoom back out"),"long"),P=!1)}function W(e){var t=Math.floor(Math.min(e.b-e.t,e.r-e.l,L)/2);return"M"+(e.l-3.5)+","+(e.t-.5+t)+"h3v"+-t+"h"+t+"v-3h-"+(t+3)+"ZM"+(e.r+3.5)+","+(e.t-.5+t)+"h-3v"+-t+"h"+-t+"v-3h"+(t+3)+"ZM"+(e.r+3.5)+","+(e.b+.5-t)+"h-3v"+t+"h"+-t+"v3h"+(t+3)+"ZM"+(e.l-3.5)+","+(e.b+.5-t)+"h3v"+t+"h"+t+"v3h-"+(t+3)+"Z"}function Y(e,t,r,n,i){for(var o,l,s,c,u=!1,f={},d={},p=(i||{}).xaHash,h=(i||{}).yaHash,g=0;g<t.length;g++){var v=t[g];for(o in r)if(v[o]){for(s in v)i&&(p[s]||h[s])||("x"===s.charAt(0)?r:n)[s]||(f[s]=o);for(l in n)i&&(p[l]||h[l])||!v[l]||(u=!0)}for(l in n)if(v[l])for(c in v)i&&(p[c]||h[c])||("x"===c.charAt(0)?r:n)[c]||(d[c]=l)}u&&(a.extendFlat(f,d),d={});var y={},m=[];for(s in f){var b=T(e,s);m.push(b),y[b._id]=b}var x={},w=[];for(c in d){var _=T(e,c);w.push(_),x[_._id]=_}return{xaHash:y,yaHash:x,xaxes:m,yaxes:w,xLinks:f,yLinks:d,isSubplotConstrained:u}}function G(e,t){if(l){var r=void 0!==e.onwheel?"wheel":"mousewheel";e._onwheel&&e.removeEventListener(r,e._onwheel),e._onwheel=t,e.addEventListener(r,t,{passive:!1})}else void 0!==e.onwheel?e.onwheel=t:void 0!==e.onmousewheel?e.onmousewheel=t:e.isAddedWheelEvent||(e.isAddedWheelEvent=!0,e.addEventListener("wheel",t,{passive:!1}))}function X(e){var t=[];for(var r in e)t.push(e[r]);return t}e.exports={makeDragBox:function(e,t,r,l,c,f,g,y){var P,j,H,Z,$,Q,K,J,ee,te,re,ne,ae,ie,oe,le,se,ce,ue,fe,de,pe,he,ge=e._fullLayout._zoomlayer,ve=g+y==="nsew",ye=1===(g+y).length;function me(){if(P=t.xaxis,j=t.yaxis,ee=P._length,te=j._length,K=P._offset,J=j._offset,(H={})[P._id]=P,(Z={})[j._id]=j,g&&y)for(var r=t.overlays,n=0;n<r.length;n++){var a=r[n].xaxis;H[a._id]=a;var i=r[n].yaxis;Z[i._id]=i}$=X(H),Q=X(Z),ae=D($,y),ie=D(Q,g),oe=!ie&&!ae,ne=Y(e,e._fullLayout._axisMatchGroups,H,Z);var o=(re=Y(e,e._fullLayout._axisConstraintGroups,H,Z,ne)).isSubplotConstrained||ne.isSubplotConstrained;le=y||o,se=g||o;var l=e._fullLayout;ce=l._has("scattergl"),ue=l._has("splom"),fe=l._has("svg")}me();var be=function(e,t,r){if(!e)return"pointer";if("nsew"===e)return r?"":"pan"===t?"move":"crosshair";return e.toLowerCase()+"-resize"}(ie+ae,e._fullLayout.dragmode,ve),xe=z(t,g+y+"drag",be,r,l,c,f);if(oe&&!ve)return xe.onmousedown=null,xe.style.pointerEvents="none",xe;var we,_e,ke,Te,Ae,Se,Me,Oe,Ce,Ee,Le={element:xe,gd:e,plotinfo:t};function Pe(){Le.plotinfo.selection=!1,S(e)}function je(e,r){var a=Le.gd;if(a._fullLayout._activeShapeIndex>=0)a._fullLayout._deactivateShape(a);else{var o=a._fullLayout.clickmode;if(V(a),2!==e||ye||qe(),ve)o.indexOf("select")>-1&&M(r,a,$,Q,t.id,Le),o.indexOf("event")>-1&&p.click(a,r,t.id);else if(1===e&&ye){var l=g?j:P,c="s"===g||"w"===y?0:1,f=l._name+".range["+c+"]",d=function(e,t){var r,n=e.range[t],a=Math.abs(n-e.range[1-t]);return"date"===e.type?n:"log"===e.type?(r=Math.ceil(Math.max(0,-Math.log(a)/Math.LN10))+3,i("."+r+"g")(Math.pow(10,n))):(r=Math.floor(Math.log(Math.abs(n))/Math.LN10)-Math.floor(Math.log(a)/Math.LN10)+4,i("."+String(r)+"g")(n))}(l,c),h="left",v="middle";if(l.fixedrange)return;g?(v="n"===g?"top":"bottom","right"===l.side&&(h="right")):"e"===y&&(h="right"),a._context.showAxisRangeEntryBoxes&&n.select(xe).call(u.makeEditable,{gd:a,immediate:!0,background:a._fullLayout.paper_bgcolor,text:String(d),fill:l.tickfont?l.tickfont.color:"#444",horizontalAlign:h,verticalAlign:v}).on("edit",(function(e){var t=l.d2r(e);void 0!==t&&s.call("_guiRelayout",a,f,t)}))}}}function ze(t,r){if(e._transitioningWithDuration)return!1;var n=Math.max(0,Math.min(ee,pe*t+we)),a=Math.max(0,Math.min(te,he*r+_e)),i=Math.abs(n-we),o=Math.abs(a-_e);function l(){Me="",ke.r=ke.l,ke.t=ke.b,Ce.attr("d","M0,0Z")}if(ke.l=Math.min(we,n),ke.r=Math.max(we,n),ke.t=Math.min(_e,a),ke.b=Math.max(_e,a),re.isSubplotConstrained)i>L||o>L?(Me="xy",i/ee>o/te?(o=i*te/ee,_e>a?ke.t=_e-o:ke.b=_e+o):(i=o*ee/te,we>n?ke.l=we-i:ke.r=we+i),Ce.attr("d",W(ke))):l();else if(ne.isSubplotConstrained)if(i>L||o>L){Me="xy";var s=Math.min(ke.l/ee,(te-ke.b)/te),c=Math.max(ke.r/ee,(te-ke.t)/te);ke.l=s*ee,ke.r=c*ee,ke.b=(1-s)*te,ke.t=(1-c)*te,Ce.attr("d",W(ke))}else l();else!ie||o<Math.min(Math.max(.6*i,E),L)?i<E||!ae?l():(ke.t=0,ke.b=te,Me="x",Ce.attr("d",function(e,t){return"M"+(e.l-.5)+","+(t-L-.5)+"h-3v"+(2*L+1)+"h3ZM"+(e.r+.5)+","+(t-L-.5)+"h3v"+(2*L+1)+"h-3Z"}(ke,_e))):!ae||i<Math.min(.6*o,L)?(ke.l=0,ke.r=ee,Me="y",Ce.attr("d",function(e,t){return"M"+(t-L-.5)+","+(e.t-.5)+"v-3h"+(2*L+1)+"v3ZM"+(t-L-.5)+","+(e.b+.5)+"v3h"+(2*L+1)+"v-3Z"}(ke,we))):(Me="xy",Ce.attr("d",W(ke)));ke.w=ke.r-ke.l,ke.h=ke.b-ke.t,Me&&(Ee=!0),e._dragged=Ee,U(Oe,Ce,ke,Ae,Se,Te),De(),e.emit("plotly_relayouting",de),Se=!0}function De(){de={},"xy"!==Me&&"x"!==Me||(I($,ke.l/ee,ke.r/ee,de,re.xaxes),He("x",de)),"xy"!==Me&&"y"!==Me||(I(Q,(te-ke.b)/te,(te-ke.t)/te,de,re.yaxes),He("y",de))}function Ie(){De(),V(e),We(),q(e)}Le.prepFn=function(t,r,n){var i=Le.dragmode,l=e._fullLayout.dragmode;l!==i&&(Le.dragmode=l),me(),pe=e._fullLayout._invScaleX,he=e._fullLayout._invScaleY,oe||(ve?t.shiftKey?"pan"===l?l="zoom":m(l)||(l="pan"):t.ctrlKey&&(l="pan"):l="pan"),b(l)?Le.minDrag=1:Le.minDrag=void 0,m(l)?(Le.xaxes=$,Le.yaxes=Q,A(t,r,n,Le,l)):(Le.clickFn=je,m(i)&&Pe(),oe||("zoom"===l?(Le.moveFn=ze,Le.doneFn=Ie,Le.minDrag=1,function(t,r,n){var i=xe.getBoundingClientRect();we=r-i.left,_e=n-i.top,e._fullLayout._calcInverseTransform(e);var l=a.apply3DTransform(e._fullLayout._invTransform)(we,_e);we=l[0],_e=l[1],ke={l:we,r:we,w:0,t:_e,b:_e,h:0},Te=e._hmpixcount?e._hmlumcount/e._hmpixcount:o(e._fullLayout.plot_bgcolor).getLuminance(),Se=!1,Me="xy",Ee=!1,Oe=F(ge,Te,K,J,Ae="M0,0H"+ee+"V"+te+"H0V0"),Ce=B(ge,K,J)}(0,r,n)):"pan"===l&&(Le.moveFn=Ue,Le.doneFn=We))),e._fullLayout._redrag=function(){var t=e._dragdata;if(t&&t.element===xe){var r=e._fullLayout.dragmode;m(r)||(me(),Ye([0,0,ee,te]),Le.moveFn(t.dx,t.dy))}}},v.init(Le);var Ne=[0,0,ee,te],Re=null,Fe=C.REDRAWDELAY,Be=t.mainplot?e._fullLayout._plots[t.mainplot]:t;function Ue(t,r){if(t*=pe,r*=he,!e._transitioningWithDuration){if(e._fullLayout._replotting=!0,"ew"===ae||"ns"===ie){var n=ae?-t:0,a=ie?-r:0;if(ne.isSubplotConstrained){if(ae&&ie){var i=(t/ee-r/te)/2;n=-(t=i*ee),a=-(r=-i*te)}ie?n=-a*ee/te:a=-n*te/ee}return ae&&(N($,t),He("x")),ie&&(N(Q,r),He("y")),Ye([n,a,ee,te]),Ve(),void e.emit("plotly_relayouting",de)}var o,l,s="w"===ae===("n"===ie)?1:-1;if(ae&&ie&&(re.isSubplotConstrained||ne.isSubplotConstrained)){var c=(t/ee+s*r/te)/2;t=c*ee,r=s*c*te}if("w"===ae?t=p($,0,t):"e"===ae?t=p($,1,-t):ae||(t=0),"n"===ie?r=p(Q,1,r):"s"===ie?r=p(Q,0,-r):ie||(r=0),o="w"===ae?t:0,l="n"===ie?r:0,re.isSubplotConstrained&&!ne.isSubplotConstrained||ne.isSubplotConstrained&&ae&&ie&&s>0){var u;if(ne.isSubplotConstrained||!ae&&1===ie.length){for(u=0;u<$.length;u++)$[u].range=$[u]._r.slice(),O($[u],1-r/te);o=(t=r*ee/te)/2}if(ne.isSubplotConstrained||!ie&&1===ae.length){for(u=0;u<Q.length;u++)Q[u].range=Q[u]._r.slice(),O(Q[u],1-t/ee);l=(r=t*te/ee)/2}}ne.isSubplotConstrained&&ie||He("x"),ne.isSubplotConstrained&&ae||He("y");var f=ee-t,d=te-r;!ne.isSubplotConstrained||ae&&ie||(ae?(l=o?0:t*te/ee,d=f*te/ee):(o=l?0:r*ee/te,f=d*ee/te)),Ye([o,l,f,d]),Ve(),e.emit("plotly_relayouting",de)}function p(e,t,r){for(var n,a,i=1-t,o=0;o<e.length;o++){var l=e[o];if(!l.fixedrange){n=l,a=l._rl[i]+(l._rl[t]-l._rl[i])/R(r/l._length);var s=l.l2r(a);!1!==s&&void 0!==s&&(l.range[t]=s)}}return n._length*(n._rl[t]-a)/(n._rl[t]-n._rl[i])}}function He(e,t){for(var r=ne.isSubplotConstrained?{x:Q,y:$}[e]:ne[e+"axes"],n=ne.isSubplotConstrained?{x:$,y:Q}[e]:[],a=0;a<r.length;a++){var i=r[a],o=i._id,l=ne.xLinks[o]||ne.yLinks[o],s=n[0]||H[l]||Z[l];s&&(t?(t[i._name+".range[0]"]=t[s._name+".range[0]"],t[i._name+".range[1]"]=t[s._name+".range[1]"]):i.range=s.range.slice())}}function Ve(){var t,r=[];function n(e){for(t=0;t<e.length;t++)e[t].fixedrange||r.push(e[t]._id)}for(le&&(n($),n(re.xaxes),n(ne.xaxes)),se&&(n(Q),n(re.yaxes),n(ne.yaxes)),de={},t=0;t<r.length;t++){var a=r[t],i=T(e,a);h.drawOne(e,i,{skipTitle:!0}),de[i._name+".range[0]"]=i.range[0],de[i._name+".range[1]"]=i.range[1]}h.redrawComponents(e,r)}function qe(){if(!e._transitioningWithDuration){var t=e._context.doubleClick,r=[];ae&&(r=r.concat($)),ie&&(r=r.concat(Q)),ne.xaxes&&(r=r.concat(ne.xaxes)),ne.yaxes&&(r=r.concat(ne.yaxes));var n,a,i,o={};if("reset+autosize"===t)for(t="autosize",a=0;a<r.length;a++)if((n=r[a])._rangeInitial&&(n.range[0]!==n._rangeInitial[0]||n.range[1]!==n._rangeInitial[1])||!n._rangeInitial&&!n.autorange){t="reset";break}if("autosize"===t)for(a=0;a<r.length;a++)(n=r[a]).fixedrange||(o[n._name+".autorange"]=!0);else if("reset"===t)for((ae||re.isSubplotConstrained)&&(r=r.concat(re.xaxes)),ie&&!re.isSubplotConstrained&&(r=r.concat(re.yaxes)),re.isSubplotConstrained&&(ae?ie||(r=r.concat(Q)):r=r.concat($)),a=0;a<r.length;a++)(n=r[a]).fixedrange||(n._rangeInitial?(i=n._rangeInitial,o[n._name+".range[0]"]=i[0],o[n._name+".range[1]"]=i[1]):o[n._name+".autorange"]=!0);e.emit("plotly_doubleclick",null),s.call("_guiRelayout",e,o)}}function We(){Ye([0,0,ee,te]),a.syncOrAsync([k.previousPromises,function(){e._fullLayout._replotting=!1,s.call("_guiRelayout",e,de)}],e)}function Ye(t){var r,n,i,o,l=e._fullLayout,c=l._plots,u=l._subplots.cartesian;if(ue&&s.subplotsRegistry.splom.drag(e),ce)for(r=0;r<u.length;r++)if(i=(n=c[u[r]]).xaxis,o=n.yaxis,n._scene){var f=a.simpleMap(i.range,i.r2l),p=a.simpleMap(o.range,o.r2l);n._scene.update({range:[f[0],p[0],f[1],p[1]]})}if((ue||ce)&&(w(e),_(e)),fe){var h=t[2]/P._length,v=t[3]/j._length;for(r=0;r<u.length;r++){i=(n=c[u[r]]).xaxis,o=n.yaxis;var m,b,x,k,T=(le||ne.isSubplotConstrained)&&!i.fixedrange&&H[i._id],A=(se||ne.isSubplotConstrained)&&!o.fixedrange&&Z[o._id];if(T?(m=h,x=y||ne.isSubplotConstrained?t[0]:Ze(i,m)):ne.xaHash[i._id]?(m=h,x=t[0]*i._length/P._length):ne.yaHash[i._id]?(m=v,x="ns"===ie?-t[1]*i._length/j._length:Ze(i,m,{n:"top",s:"bottom"}[ie])):x=Xe(i,m=Ge(i,h,v)),A?(b=v,k=g||ne.isSubplotConstrained?t[1]:Ze(o,b)):ne.yaHash[o._id]?(b=v,k=t[1]*o._length/j._length):ne.xaHash[o._id]?(b=h,k="ew"===ae?-t[0]*o._length/P._length:Ze(o,b,{e:"right",w:"left"}[ae])):k=Xe(o,b=Ge(o,h,v)),m||b){m||(m=1),b||(b=1);var S=i._offset-x/m,M=o._offset-k/b;n.clipRect.call(d.setTranslate,x,k).call(d.setScale,m,b),n.plot.call(d.setTranslate,S,M).call(d.setScale,1/m,1/b),m===n.xScaleFactor&&b===n.yScaleFactor||(d.setPointGroupScale(n.zoomScalePts,m,b),d.setTextPointsScale(n.zoomScaleTxt,m,b)),d.hideOutsideRangePoints(n.clipOnAxisFalseTraces,n),n.xScaleFactor=m,n.yScaleFactor=b}}}}function Ge(e,t,r){return e.fixedrange?0:le&&re.xaHash[e._id]?t:se&&(re.isSubplotConstrained?re.xaHash:re.yaHash)[e._id]?r:0}function Xe(e,t){return t?(e.range=e._r.slice(),O(e,t),Ze(e,t)):0}function Ze(e,t,r){return e._length*(1-t)*x[r||e.constraintoward||"middle"]}return g.length*y.length!==1&&G(xe,(function(t){if(e._context._scrollZoom.cartesian||e._fullLayout._enablescrollzoom){if(Pe(),e._transitioningWithDuration)return t.preventDefault(),void t.stopPropagation();me(),clearTimeout(Re);var r=-t.deltaY;if(isFinite(r)||(r=t.wheelDelta/10),isFinite(r)){var n,i=Math.exp(-Math.min(Math.max(r,-20),20)/200),o=Be.draglayer.select(".nsewdrag").node().getBoundingClientRect(),l=(t.clientX-o.left)/o.width,s=(o.bottom-t.clientY)/o.height;if(le){for(y||(l=.5),n=0;n<$.length;n++)c($[n],l,i);He("x"),Ne[2]*=i,Ne[0]+=Ne[2]*l*(1/i-1)}if(se){for(g||(s=.5),n=0;n<Q.length;n++)c(Q[n],s,i);He("y"),Ne[3]*=i,Ne[1]+=Ne[3]*(1-s)*(1/i-1)}Ye(Ne),Ve(),e.emit("plotly_relayouting",de),Re=setTimeout((function(){e._fullLayout&&(Ne=[0,0,ee,te],We())}),Fe),t.preventDefault()}else a.log("Did not find wheel motion attributes: ",t)}function c(e,t,r){if(!e.fixedrange){var n=a.simpleMap(e.range,e.r2l),i=n[0]+(n[1]-n[0])*t;e.range=n.map((function(t){return e.l2r(i+(t-i)*r)}))}}})),xe},makeDragger:j,makeRectDragger:z,makeZoombox:F,makeCorners:B,updateZoombox:U,xyCorners:W,transitionZoombox:H,removeZoombox:V,showDoubleClickNotifier:q,attachWheelEventHandler:G}},function(e,t,r){"use strict";var n=r(0),a=r(8),i=r(17),o=r(268);e.exports=function(e,t){var r=e.modebar||{},l=i.newContainer(t,"modebar");function s(e,t){return n.coerce(r,l,o,e,t)}s("orientation"),s("bgcolor",a.addOpacity(t.paper_bgcolor,.5));var c=a.contrast(a.rgb(t.modebar.bgcolor));s("color",a.addOpacity(c,.3)),s("activecolor",a.addOpacity(c,.7)),s("uirevision",t.uirevision),s("add"),s("remove")}},function(e,t,r){"use strict";var n=r(21),a=r(30),i=r(5),o=r(40).isUnifiedHover,l=r(544),s=r(270),c=r(269).DRAW_MODES;e.exports=function(e){var t=e._fullLayout,r=e._context,u=t._modeBar;if(r.displayModeBar||r.watermark){if(!Array.isArray(r.modeBarButtonsToRemove))throw new Error(["*modeBarButtonsToRemove* configuration options","must be an array."].join(" "));if(!Array.isArray(r.modeBarButtonsToAdd))throw new Error(["*modeBarButtonsToAdd* configuration options","must be an array."].join(" "));var f,d=r.modeBarButtons;f=Array.isArray(d)&&d.length?function(e){for(var t=0;t<e.length;t++)for(var r=e[t],n=0;n<r.length;n++){var a=r[n];if("string"===typeof a){if(void 0===s[a])throw new Error(["*modeBarButtons* configuration options","invalid button name"].join(" "));e[t][n]=s[a]}}return e}(d):!r.displayModeBar&&r.watermark?[]:function(e){var t=e._fullLayout,r=e._fullData,l=e._context;function u(e,t){if("string"===typeof t){if(t.toLowerCase()===e.toLowerCase())return!0}else{var r=t.name,n=t._cat||t.name;if(r===e||n===e.toLowerCase())return!0}return!1}var f=t.modebar.add;"string"===typeof f&&(f=[f]);var d=t.modebar.remove;"string"===typeof d&&(d=[d]);var p=l.modeBarButtonsToAdd.concat(f.filter((function(e){for(var t=0;t<l.modeBarButtonsToRemove.length;t++)if(u(e,l.modeBarButtonsToRemove[t]))return!1;return!0}))),h=l.modeBarButtonsToRemove.concat(d.filter((function(e){for(var t=0;t<l.modeBarButtonsToAdd.length;t++)if(u(e,l.modeBarButtonsToAdd[t]))return!1;return!0}))),g=t._has("cartesian"),v=t._has("gl3d"),y=t._has("geo"),m=t._has("pie"),b=t._has("funnelarea"),x=t._has("gl2d"),w=t._has("ternary"),_=t._has("mapbox"),k=t._has("polar"),T=t._has("smith"),A=t._has("sankey"),S=function(e){for(var t=n.list({_fullLayout:e},null,!0),r=0;r<t.length;r++)if(!t[r].fixedrange)return!1;return!0}(t),M=o(t.hovermode),O=[];function C(e){if(e.length){for(var t=[],r=0;r<e.length;r++){for(var n=e[r],a=s[n],i=a.name.toLowerCase(),o=(a._cat||a.name).toLowerCase(),l=!1,c=0;c<h.length;c++){var u=h[c].toLowerCase();if(u===i||u===o){l=!0;break}}l||t.push(s[n])}O.push(t)}}var E=["toImage"];l.showEditInChartStudio?E.push("editInChartStudio"):l.showSendToCloud&&E.push("sendDataToCloud");C(E);var L=[],P=[],j=[],z=[];(g||x||m||b||w)+y+v+_+k+T>1?(P=["toggleHover"],j=["resetViews"]):y?(L=["zoomInGeo","zoomOutGeo"],P=["hoverClosestGeo"],j=["resetGeo"]):v?(P=["hoverClosest3d"],j=["resetCameraDefault3d","resetCameraLastSave3d"]):_?(L=["zoomInMapbox","zoomOutMapbox"],P=["toggleHover"],j=["resetViewMapbox"]):x?P=["hoverClosestGl2d"]:m?P=["hoverClosestPie"]:A?(P=["hoverClosestCartesian","hoverCompareCartesian"],j=["resetViewSankey"]):P=["toggleHover"];g&&(P=["toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"]);(function(e){for(var t=0;t<e.length;t++)if(!i.traceIs(e[t],"noHover"))return!1;return!0}(r)||M)&&(P=[]);!g&&!x||S||(L=["zoomIn2d","zoomOut2d","autoScale2d"],"resetViews"!==j[0]&&(j=["resetScale2d"]));v?z=["zoom3d","pan3d","orbitRotation","tableRotation"]:(g||x)&&!S||w?z=["zoom2d","pan2d"]:_||y?z=["pan2d"]:k&&(z=["zoom2d"]);(function(e){for(var t=!1,r=0;r<e.length&&!t;r++){var n=e[r];n._module&&n._module.selectPoints&&(i.traceIs(n,"scatter-like")?(a.hasMarkers(n)||a.hasText(n))&&(t=!0):i.traceIs(n,"box-violin")&&"all"!==n.boxpoints&&"all"!==n.points||(t=!0))}return t})(r)&&z.push("select2d","lasso2d");var D=[],I=function(e){-1===D.indexOf(e)&&-1!==P.indexOf(e)&&D.push(e)};if(Array.isArray(p)){for(var N=[],R=0;R<p.length;R++){var F=p[R];"string"===typeof F?(F=F.toLowerCase(),-1!==c.indexOf(F)?(t._has("mapbox")||t._has("cartesian"))&&z.push(F):"togglespikelines"===F?I("toggleSpikelines"):"togglehover"===F?I("toggleHover"):"hovercompare"===F?I("hoverCompareCartesian"):"hoverclosest"===F?(I("hoverClosestCartesian"),I("hoverClosestGeo"),I("hoverClosest3d"),I("hoverClosestGl2d"),I("hoverClosestPie")):"v1hovermode"===F&&(I("toggleHover"),I("hoverClosestCartesian"),I("hoverCompareCartesian"),I("hoverClosestGeo"),I("hoverClosest3d"),I("hoverClosestGl2d"),I("hoverClosestPie"))):N.push(F)}p=N}return C(z),C(L.concat(j)),C(D),function(e,t){if(t.length)if(Array.isArray(t[0]))for(var r=0;r<t.length;r++)e.push(t[r]);else e.push(t);return e}(O,p)}(e),u?u.update(e,f):t._modeBar=l(e,f)}else u&&(u.destroy(),delete t._modeBar)}},function(e,t,r){"use strict";var n=r(7),a=r(9),i=r(0),o=r(174),l=r(152).version,s=new DOMParser;function c(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var u=c.prototype;u.update=function(e,t){this.graphInfo=e;var r=this.graphInfo._context,n=this.graphInfo._fullLayout,a="modebar-"+n._uid;this.element.setAttribute("id",a),this._uid=a,this.element.className="modebar","hover"===r.displayModeBar&&(this.element.className+=" modebar--hover ease-bg"),"v"===n.modebar.orientation&&(this.element.className+=" vertical",t=t.reverse());var o=n.modebar,l="hover"===r.displayModeBar?".js-plotly-plot .plotly:hover ":"";i.deleteRelatedStyleRule(a),i.addRelatedStyleRule(a,l+"#"+a+" .modebar-group","background-color: "+o.bgcolor),i.addRelatedStyleRule(a,"#"+a+" .modebar-btn .icon path","fill: "+o.color),i.addRelatedStyleRule(a,"#"+a+" .modebar-btn:hover .icon path","fill: "+o.activecolor),i.addRelatedStyleRule(a,"#"+a+" .modebar-btn.active .icon path","fill: "+o.activecolor);var s=!this.hasButtons(t),c=this.hasLogo!==r.displaylogo,u=this.locale!==r.locale;if(this.locale=r.locale,(s||c||u)&&(this.removeAllButtons(),this.updateButtons(t),r.watermark||r.displaylogo)){var f=this.getLogo();r.watermark&&(f.className=f.className+" watermark"),"v"===n.modebar.orientation?this.element.insertBefore(f,this.element.childNodes[0]):this.element.appendChild(f),this.hasLogo=!0}this.updateActiveButton()},u.updateButtons=function(e){var t=this;this.buttons=e,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach((function(e){var r=t.createGroup();e.forEach((function(e){var n=e.name;if(!n)throw new Error("must provide button 'name' in button config");if(-1!==t.buttonsNames.indexOf(n))throw new Error("button name '"+n+"' is taken");t.buttonsNames.push(n);var a=t.createButton(e);t.buttonElements.push(a),r.appendChild(a)})),t.element.appendChild(r)}))},u.createGroup=function(){var e=document.createElement("div");return e.className="modebar-group",e},u.createButton=function(e){var t=this,r=document.createElement("a");r.setAttribute("rel","tooltip"),r.className="modebar-btn";var a=e.title;void 0===a?a=e.name:"function"===typeof a&&(a=a(this.graphInfo)),(a||0===a)&&r.setAttribute("data-title",a),void 0!==e.attr&&r.setAttribute("data-attr",e.attr);var i=e.val;if(void 0!==i&&("function"===typeof i&&(i=i(this.graphInfo)),r.setAttribute("data-val",i)),"function"!==typeof e.click)throw new Error("must provide button 'click' function in button config");r.addEventListener("click",(function(r){e.click(t.graphInfo,r),t.updateActiveButton(r.currentTarget)})),r.setAttribute("data-toggle",e.toggle||!1),e.toggle&&n.select(r).classed("active",!0);var l=e.icon;return"function"===typeof l?r.appendChild(l()):r.appendChild(this.createIcon(l||o.question)),r.setAttribute("data-gravity",e.gravity||"n"),r},u.createIcon=function(e){var t,r=a(e.height)?Number(e.height):e.ascent-e.descent,n="http://www.w3.org/2000/svg";if(e.path){(t=document.createElementNS(n,"svg")).setAttribute("viewBox",[0,0,e.width,r].join(" ")),t.setAttribute("class","icon");var i=document.createElementNS(n,"path");i.setAttribute("d",e.path),e.transform?i.setAttribute("transform",e.transform):void 0!==e.ascent&&i.setAttribute("transform","matrix(1 0 0 -1 0 "+e.ascent+")"),t.appendChild(i)}e.svg&&(t=s.parseFromString(e.svg,"application/xml").childNodes[0]);return t.setAttribute("height","1em"),t.setAttribute("width","1em"),t},u.updateActiveButton=function(e){var t=this.graphInfo._fullLayout,r=void 0!==e?e.getAttribute("data-attr"):null;this.buttonElements.forEach((function(e){var a=e.getAttribute("data-val")||!0,o=e.getAttribute("data-attr"),l="true"===e.getAttribute("data-toggle"),s=n.select(e);if(l)o===r&&s.classed("active",!s.classed("active"));else{var c=null===o?o:i.nestedProperty(t,o).get();s.classed("active",c===a)}}))},u.hasButtons=function(e){var t=this.buttons;if(!t)return!1;if(e.length!==t.length)return!1;for(var r=0;r<e.length;++r){if(e[r].length!==t[r].length)return!1;for(var n=0;n<e[r].length;n++)if(e[r][n].name!==t[r][n].name)return!1}return!0},u.getLogo=function(){var e=this.createGroup(),t=document.createElement("a");return t.href="https://plotly.com/",t.target="_blank",t.setAttribute("data-title",i._(this.graphInfo,"Produced with Plotly.js")+" (v"+l+")"),t.className="modebar-btn plotlyjsicon modebar-btn--logo",t.appendChild(this.createIcon(o.newplotlylogo)),e.appendChild(t),e},u.removeAllButtons=function(){for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild);this.hasLogo=!1},u.destroy=function(){i.removeElement(this.container.querySelector(".modebar")),i.deleteRelatedStyleRule(this._uid)},e.exports=function(e,t){var r=e._fullLayout,a=new c({graphInfo:e,container:r._modebardiv.node(),buttons:t});return r._privateplot&&n.select(a.element).append("span").classed("badge-private float--left",!0).text("PRIVATE"),a}},function(e,t,r){var n,a=r(546),i=r(547),o=r(548),l=r(550),s=r(551),c=r(552),u=!1,f=i();function d(e,t,r){var a=n.segments(e),i=n.segments(t),o=r(n.combine(a,i));return n.polygon(o)}n={buildLog:function(e){return!0===e?u=a():!1===e&&(u=!1),!1!==u&&u.list},epsilon:function(e){return f.epsilon(e)},segments:function(e){var t=o(!0,f,u);return e.regions.forEach(t.addRegion),{segments:t.calculate(e.inverted),inverted:e.inverted}},combine:function(e,t){return{combined:o(!1,f,u).calculate(e.segments,e.inverted,t.segments,t.inverted),inverted1:e.inverted,inverted2:t.inverted}},selectUnion:function(e){return{segments:s.union(e.combined,u),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:s.intersect(e.combined,u),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:s.difference(e.combined,u),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:s.differenceRev(e.combined,u),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:s.xor(e.combined,u),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:l(e.segments,f,u),inverted:e.inverted}},polygonFromGeoJSON:function(e){return c.toPolygon(n,e)},polygonToGeoJSON:function(e){return c.fromPolygon(n,f,e)},union:function(e,t){return d(e,t,n.selectUnion)},intersect:function(e,t){return d(e,t,n.selectIntersect)},difference:function(e,t){return d(e,t,n.selectDifference)},differenceRev:function(e,t){return d(e,t,n.selectDifferenceRev)},xor:function(e,t){return d(e,t,n.selectXor)}},"object"===typeof window&&(window.PolyBool=n),e.exports=n},function(e,t){e.exports=function(){var e,t=0,r=!1;function n(t,r){return e.list.push({type:t,data:r?JSON.parse(JSON.stringify(r)):void 0}),e}return e={list:[],segmentId:function(){return t++},checkIntersection:function(e,t){return n("check",{seg1:e,seg2:t})},segmentChop:function(e,t){return n("div_seg",{seg:e,pt:t}),n("chop",{seg:e,pt:t})},statusRemove:function(e){return n("pop_seg",{seg:e})},segmentUpdate:function(e){return n("seg_update",{seg:e})},segmentNew:function(e,t){return n("new_seg",{seg:e,primary:t})},segmentRemove:function(e){return n("rem_seg",{seg:e})},tempStatus:function(e,t,r){return n("temp_status",{seg:e,above:t,below:r})},rewind:function(e){return n("rewind",{seg:e})},status:function(e,t,r){return n("status",{seg:e,above:t,below:r})},vert:function(t){return t===r?e:(r=t,n("vert",{x:t}))},log:function(e){return"string"!==typeof e&&(e=JSON.stringify(e,!1," ")),n("log",{txt:e})},reset:function(){return n("reset")},selected:function(e){return n("selected",{segs:e})},chainStart:function(e){return n("chain_start",{seg:e})},chainRemoveHead:function(e,t){return n("chain_rem_head",{index:e,pt:t})},chainRemoveTail:function(e,t){return n("chain_rem_tail",{index:e,pt:t})},chainNew:function(e,t){return n("chain_new",{pt1:e,pt2:t})},chainMatch:function(e){return n("chain_match",{index:e})},chainClose:function(e){return n("chain_close",{index:e})},chainAddHead:function(e,t){return n("chain_add_head",{index:e,pt:t})},chainAddTail:function(e,t){return n("chain_add_tail",{index:e,pt:t})},chainConnect:function(e,t){return n("chain_con",{index1:e,index2:t})},chainReverse:function(e){return n("chain_rev",{index:e})},chainJoin:function(e,t){return n("chain_join",{index1:e,index2:t})},done:function(){return n("done")}}}},function(e,t){e.exports=function(e){"number"!==typeof e&&(e=1e-10);var t={epsilon:function(t){return"number"===typeof t&&(e=t),e},pointAboveOrOnLine:function(t,r,n){var a=r[0],i=r[1],o=n[0],l=n[1],s=t[0];return(o-a)*(t[1]-i)-(l-i)*(s-a)>=-e},pointBetween:function(t,r,n){var a=t[1]-r[1],i=n[0]-r[0],o=t[0]-r[0],l=n[1]-r[1],s=o*i+a*l;return!(s<e)&&!(s-(i*i+l*l)>-e)},pointsSameX:function(t,r){return Math.abs(t[0]-r[0])<e},pointsSameY:function(t,r){return Math.abs(t[1]-r[1])<e},pointsSame:function(e,r){return t.pointsSameX(e,r)&&t.pointsSameY(e,r)},pointsCompare:function(e,r){return t.pointsSameX(e,r)?t.pointsSameY(e,r)?0:e[1]<r[1]?-1:1:e[0]<r[0]?-1:1},pointsCollinear:function(t,r,n){var a=t[0]-r[0],i=t[1]-r[1],o=r[0]-n[0],l=r[1]-n[1];return Math.abs(a*l-o*i)<e},linesIntersect:function(t,r,n,a){var i=r[0]-t[0],o=r[1]-t[1],l=a[0]-n[0],s=a[1]-n[1],c=i*s-o*l;if(Math.abs(c)<e)return!1;var u=t[0]-n[0],f=t[1]-n[1],d=(l*f-s*u)/c,p=(i*f-o*u)/c,h={alongA:0,alongB:0,pt:[t[0]+d*i,t[1]+d*o]};return h.alongA=d<=-e?-2:d<e?-1:d-1<=-e?0:d-1<e?1:2,h.alongB=p<=-e?-2:p<e?-1:p-1<=-e?0:p-1<e?1:2,h},pointInsideRegion:function(t,r){for(var n=t[0],a=t[1],i=r[r.length-1][0],o=r[r.length-1][1],l=!1,s=0;s<r.length;s++){var c=r[s][0],u=r[s][1];u-a>e!=o-a>e&&(i-c)*(a-u)/(o-u)+c-n>e&&(l=!l),i=c,o=u}return l}};return t}},function(e,t,r){var n=r(549);e.exports=function(e,t,r){function a(e,t,n){return{id:r?r.segmentId():-1,start:e,end:t,myFill:{above:n.myFill.above,below:n.myFill.below},otherFill:null}}var i=n.create();function o(e,r){i.insertBefore(e,(function(n){return function(e,r,n,a,i,o){var l=t.pointsCompare(r,i);return 0!==l?l:t.pointsSame(n,o)?0:e!==a?e?1:-1:t.pointAboveOrOnLine(n,a?i:o,a?o:i)?1:-1}(e.isStart,e.pt,r,n.isStart,n.pt,n.other.pt)<0}))}function l(e,t){var r=function(e,t){var r=n.node({isStart:!0,pt:e.start,seg:e,primary:t,other:null,status:null});return o(r,e.end),r}(e,t);return function(e,t,r){var a=n.node({isStart:!1,pt:t.end,seg:t,primary:r,other:e,status:null});e.other=a,o(a,e.pt)}(r,e,t),r}function s(e,t){var n=a(t,e.seg.end,e.seg);return function(e,t){r&&r.segmentChop(e.seg,t),e.other.remove(),e.seg.end=t,e.other.pt=t,o(e.other,e.pt)}(e,t),l(n,e.primary)}function c(a,o){var l=n.create();function c(e){return l.findTransition((function(r){return function(e,r){var n=e.seg.start,a=e.seg.end,i=r.seg.start,o=r.seg.end;return t.pointsCollinear(n,i,o)?t.pointsCollinear(a,i,o)||t.pointAboveOrOnLine(a,i,o)?1:-1:t.pointAboveOrOnLine(n,i,o)?1:-1}(e,r.ev)>0}))}function u(e,n){var a=e.seg,i=n.seg,o=a.start,l=a.end,c=i.start,u=i.end;r&&r.checkIntersection(a,i);var f=t.linesIntersect(o,l,c,u);if(!1===f){if(!t.pointsCollinear(o,l,c))return!1;if(t.pointsSame(o,u)||t.pointsSame(l,c))return!1;var d=t.pointsSame(o,c),p=t.pointsSame(l,u);if(d&&p)return n;var h=!d&&t.pointBetween(o,c,u),g=!p&&t.pointBetween(l,c,u);if(d)return g?s(n,l):s(e,u),n;h&&(p||(g?s(n,l):s(e,u)),s(n,o))}else 0===f.alongA&&(-1===f.alongB?s(e,c):0===f.alongB?s(e,f.pt):1===f.alongB&&s(e,u)),0===f.alongB&&(-1===f.alongA?s(n,o):0===f.alongA?s(n,f.pt):1===f.alongA&&s(n,l));return!1}for(var f=[];!i.isEmpty();){var d=i.getHead();if(r&&r.vert(d.pt[0]),d.isStart){r&&r.segmentNew(d.seg,d.primary);var p=c(d),h=p.before?p.before.ev:null,g=p.after?p.after.ev:null;r&&r.tempStatus(d.seg,!!h&&h.seg,!!g&&g.seg);var v,y=function(){if(h){var e=u(d,h);if(e)return e}return!!g&&u(d,g)}();if(y){var m;if(e)(m=null===d.seg.myFill.below||d.seg.myFill.above!==d.seg.myFill.below)&&(y.seg.myFill.above=!y.seg.myFill.above);else y.seg.otherFill=d.seg.myFill;r&&r.segmentUpdate(y.seg),d.other.remove(),d.remove()}if(i.getHead()!==d){r&&r.rewind(d.seg);continue}if(e)m=null===d.seg.myFill.below||d.seg.myFill.above!==d.seg.myFill.below,d.seg.myFill.below=g?g.seg.myFill.above:a,d.seg.myFill.above=m?!d.seg.myFill.below:d.seg.myFill.below;else if(null===d.seg.otherFill)v=g?d.primary===g.primary?g.seg.otherFill.above:g.seg.myFill.above:d.primary?o:a,d.seg.otherFill={above:v,below:v};r&&r.status(d.seg,!!h&&h.seg,!!g&&g.seg),d.other.status=p.insert(n.node({ev:d}))}else{var b=d.status;if(null===b)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(l.exists(b.prev)&&l.exists(b.next)&&u(b.prev.ev,b.next.ev),r&&r.statusRemove(b.ev.seg),b.remove(),!d.primary){var x=d.seg.myFill;d.seg.myFill=d.seg.otherFill,d.seg.otherFill=x}f.push(d.seg)}i.getHead().remove()}return r&&r.done(),f}return e?{addRegion:function(e){for(var n,a,i,o=e[e.length-1],s=0;s<e.length;s++){n=o,o=e[s];var c=t.pointsCompare(n,o);0!==c&&l((a=c<0?n:o,i=c<0?o:n,{id:r?r.segmentId():-1,start:a,end:i,myFill:{above:null,below:null},otherFill:null}),!0)}},calculate:function(e){return c(e,!1)}}:{calculate:function(e,t,r,n){return e.forEach((function(e){l(a(e.start,e.end,e),!0)})),r.forEach((function(e){l(a(e.start,e.end,e),!1)})),c(t,n)}}}},function(e,t){e.exports={create:function(){var e={root:{root:!0,next:null},exists:function(t){return null!==t&&t!==e.root},isEmpty:function(){return null===e.root.next},getHead:function(){return e.root.next},insertBefore:function(t,r){for(var n=e.root,a=e.root.next;null!==a;){if(r(a))return t.prev=a.prev,t.next=a,a.prev.next=t,void(a.prev=t);n=a,a=a.next}n.next=t,t.prev=n,t.next=null},findTransition:function(t){for(var r=e.root,n=e.root.next;null!==n&&!t(n);)r=n,n=n.next;return{before:r===e.root?null:r,after:n,insert:function(e){return e.prev=r,e.next=n,r.next=e,null!==n&&(n.prev=e),e}}}};return e},node:function(e){return e.prev=null,e.next=null,e.remove=function(){e.prev.next=e.next,e.next&&(e.next.prev=e.prev),e.prev=null,e.next=null},e}}},function(e,t){e.exports=function(e,t,r){var n=[],a=[];return e.forEach((function(e){var i=e.start,o=e.end;if(t.pointsSame(i,o))console.warn("PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large");else{r&&r.chainStart(e);for(var l={index:0,matches_head:!1,matches_pt1:!1},s={index:0,matches_head:!1,matches_pt1:!1},c=l,u=0;u<n.length;u++){var f=(v=n[u])[0],d=(v[1],v[v.length-1]);v[v.length-2];if(t.pointsSame(f,i)){if(T(u,!0,!0))break}else if(t.pointsSame(f,o)){if(T(u,!0,!1))break}else if(t.pointsSame(d,i)){if(T(u,!1,!0))break}else if(t.pointsSame(d,o)&&T(u,!1,!1))break}if(c===l)return n.push([i,o]),void(r&&r.chainNew(i,o));if(c===s){r&&r.chainMatch(l.index);var p=l.index,h=l.matches_pt1?o:i,g=l.matches_head,v=n[p],y=g?v[0]:v[v.length-1],m=g?v[1]:v[v.length-2],b=g?v[v.length-1]:v[0],x=g?v[v.length-2]:v[1];return t.pointsCollinear(m,y,h)&&(g?(r&&r.chainRemoveHead(l.index,h),v.shift()):(r&&r.chainRemoveTail(l.index,h),v.pop()),y=m),t.pointsSame(b,h)?(n.splice(p,1),t.pointsCollinear(x,b,y)&&(g?(r&&r.chainRemoveTail(l.index,y),v.pop()):(r&&r.chainRemoveHead(l.index,y),v.shift())),r&&r.chainClose(l.index),void a.push(v)):void(g?(r&&r.chainAddHead(l.index,h),v.unshift(h)):(r&&r.chainAddTail(l.index,h),v.push(h)))}var w=l.index,_=s.index;r&&r.chainConnect(w,_);var k=n[w].length<n[_].length;l.matches_head?s.matches_head?k?(A(w),S(w,_)):(A(_),S(_,w)):S(_,w):s.matches_head?S(w,_):k?(A(w),S(_,w)):(A(_),S(w,_))}function T(e,t,r){return c.index=e,c.matches_head=t,c.matches_pt1=r,c===l?(c=s,!1):(c=null,!0)}function A(e){r&&r.chainReverse(e),n[e].reverse()}function S(e,a){var i=n[e],o=n[a],l=i[i.length-1],s=i[i.length-2],c=o[0],u=o[1];t.pointsCollinear(s,l,c)&&(r&&r.chainRemoveTail(e,l),i.pop(),l=s),t.pointsCollinear(l,c,u)&&(r&&r.chainRemoveHead(a,c),o.shift()),r&&r.chainJoin(e,a),n[e]=i.concat(o),n.splice(a,1)}})),a}},function(e,t){function r(e,t,r){var n=[];return e.forEach((function(e){var a=(e.myFill.above?8:0)+(e.myFill.below?4:0)+(e.otherFill&&e.otherFill.above?2:0)+(e.otherFill&&e.otherFill.below?1:0);0!==t[a]&&n.push({id:r?r.segmentId():-1,start:e.start,end:e.end,myFill:{above:1===t[a],below:2===t[a]},otherFill:null})})),r&&r.selected(n),n}var n={union:function(e,t){return r(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],t)},intersect:function(e,t){return r(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],t)},difference:function(e,t){return r(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],t)},differenceRev:function(e,t){return r(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],t)},xor:function(e,t){return r(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],t)}};e.exports=n},function(e,t){var r={toPolygon:function(e,t){function r(t){if(t.length<=0)return e.segments({inverted:!1,regions:[]});function r(t){var r=t.slice(0,t.length-1);return e.segments({inverted:!1,regions:[r]})}for(var n=r(t[0]),a=1;a<t.length;a++)n=e.selectDifference(e.combine(n,r(t[a])));return n}if("Polygon"===t.type)return e.polygon(r(t.coordinates));if("MultiPolygon"===t.type){for(var n=e.segments({inverted:!1,regions:[]}),a=0;a<t.coordinates.length;a++)n=e.selectUnion(e.combine(n,r(t.coordinates[a])));return e.polygon(n)}throw new Error("PolyBool: Cannot convert GeoJSON object to PolyBool polygon")},fromPolygon:function(e,t,r){function n(e,r){return t.pointInsideRegion([.5*(e[0][0]+e[1][0]),.5*(e[0][1]+e[1][1])],r)}function a(e){return{region:e,children:[]}}r=e.polygon(e.segments(r));var i=a(null);function o(e,t){for(var r=0;r<e.children.length;r++){if(n(t,(l=e.children[r]).region))return void o(l,t)}var i=a(t);for(r=0;r<e.children.length;r++){var l;n((l=e.children[r]).region,t)&&(i.children.push(l),e.children.splice(r,1),r--)}e.children.push(i)}for(var l=0;l<r.regions.length;l++){var s=r.regions[l];s.length<3||o(i,s)}function c(e,t){for(var r=0,n=e[e.length-1][0],a=e[e.length-1][1],i=[],o=0;o<e.length;o++){var l=e[o][0],s=e[o][1];i.push([l,s]),r+=s*n-l*a,n=l,a=s}return r<0!==t&&i.reverse(),i.push([i[0][0],i[0][1]]),i}var u=[];function f(e){var t=[c(e.region,!1)];u.push(t);for(var r=0;r<e.children.length;r++)t.push(d(e.children[r]))}function d(e){for(var t=0;t<e.children.length;t++)f(e.children[t]);return c(e.region,!0)}for(l=0;l<i.children.length;l++)f(i.children[l]);return u.length<=0?{type:"Polygon",coordinates:[]}:1==u.length?{type:"Polygon",coordinates:u[0]}:{type:"MultiPolygon",coordinates:u}}};e.exports=r},function(e,t,r){"use strict";var n=r(88),a=r(159),i=r(72),o=r(239).sorterAsc,l=r(5);t.containerArrayMatch=r(554);var s=t.isAddVal=function(e){return"add"===e||n(e)},c=t.isRemoveVal=function(e){return null===e||"remove"===e};t.applyContainerArrayChanges=function(e,t,r,n,u){var f=t.astr,d=l.getComponentMethod(f,"supplyLayoutDefaults"),p=l.getComponentMethod(f,"draw"),h=l.getComponentMethod(f,"drawOne"),g=n.replot||n.recalc||d===a||p===a,v=e.layout,y=e._fullLayout;if(r[""]){Object.keys(r).length>1&&i.warn("Full array edits are incompatible with other edits",f);var m=r[""][""];if(c(m))t.set(null);else{if(!Array.isArray(m))return i.warn("Unrecognized full array edit value",f,m),!0;t.set(m)}return!g&&(d(v,y),p(e),!0)}var b,x,w,_,k,T,A,S,M=Object.keys(r).map(Number).sort(o),O=t.get(),C=O||[],E=u(y,f).get(),L=[],P=-1,j=C.length;for(b=0;b<M.length;b++)if(_=r[w=M[b]],k=Object.keys(_),T=_[""],A=s(T),w<0||w>C.length-(A?0:1))i.warn("index out of range",f,w);else if(void 0!==T)k.length>1&&i.warn("Insertion & removal are incompatible with edits to the same index.",f,w),c(T)?L.push(w):A?("add"===T&&(T={}),C.splice(w,0,T),E&&E.splice(w,0,{})):i.warn("Unrecognized full object edit value",f,w,T),-1===P&&(P=w);else for(x=0;x<k.length;x++)S=f+"["+w+"].",u(C[w],k[x],S).set(_[k[x]]);for(b=L.length-1;b>=0;b--)C.splice(L[b],1),E&&E.splice(L[b],1);if(C.length?O||t.set(C):t.set(null),g)return!1;if(d(v,y),h!==a){var z;if(-1===P)z=M;else{for(j=Math.max(C.length,j),z=[],b=0;b<M.length&&!((w=M[b])>=P);b++)z.push(w);for(b=P;b<j;b++)z.push(b)}for(b=0;b<z.length;b++)h(e,z[b])}else p(e);return!0}},function(e,t,r){"use strict";var n=r(5);e.exports=function(e){for(var t,r,a=n.layoutArrayContainers,i=n.layoutArrayRegexes,o=e.split("[")[0],l=0;l<i.length;l++)if((r=e.match(i[l]))&&0===r.index){t=r[0];break}if(t||(t=a[a.indexOf(o)]),!t)return!1;var s=e.substr(t.length);return s?!!(r=s.match(/^\[(0|[1-9][0-9]*)\](\.(.+))?$/))&&{array:t,index:Number(r[1]),property:r[3]||""}:{array:t,index:"",property:""}}},function(e,t,r){"use strict";var n=r(9),a=r(238),i=r(5),o=r(0),l=r(20),s=r(21),c=r(8),u=s.cleanId,f=s.getFromTrace,d=i.traceIs;function p(e,t){var r=e[t],n=t.charAt(0);r&&"paper"!==r&&(e[t]=u(r,n,!0))}function h(e){function t(t,r){var n=e[t],a=e.title&&e.title[r];n&&!a&&(e.title||(e.title={}),e.title[r]=e[t],delete e[t])}e&&("string"!==typeof e.title&&"number"!==typeof e.title||(e.title={text:e.title}),t("titlefont","font"),t("titleposition","position"),t("titleside","side"),t("titleoffset","offset"))}function g(e){if(!o.isPlainObject(e))return!1;var t=e.name;return delete e.name,delete e.showlegend,("string"===typeof t||"number"===typeof t)&&String(t)}function v(e,t,r,n){if(r&&!n)return e;if(n&&!r)return t;if(!e.trim())return t;if(!t.trim())return e;var a,i=Math.min(e.length,t.length);for(a=0;a<i&&e.charAt(a)===t.charAt(a);a++);return e.substr(0,a).trim()}function y(e){var t="middle",r="center";return"string"===typeof e&&(-1!==e.indexOf("top")?t="top":-1!==e.indexOf("bottom")&&(t="bottom"),-1!==e.indexOf("left")?r="left":-1!==e.indexOf("right")&&(r="right")),t+" "+r}function m(e,t){return t in e&&"object"===typeof e[t]&&0===Object.keys(e[t]).length}t.clearPromiseQueue=function(e){Array.isArray(e._promises)&&e._promises.length>0&&o.log("Clearing previous rejected promises from queue."),e._promises=[]},t.cleanLayout=function(e){var r,n;e||(e={}),e.xaxis1&&(e.xaxis||(e.xaxis=e.xaxis1),delete e.xaxis1),e.yaxis1&&(e.yaxis||(e.yaxis=e.yaxis1),delete e.yaxis1),e.scene1&&(e.scene||(e.scene=e.scene1),delete e.scene1);var i=(l.subplotsRegistry.cartesian||{}).attrRegex,s=(l.subplotsRegistry.polar||{}).attrRegex,f=(l.subplotsRegistry.ternary||{}).attrRegex,d=(l.subplotsRegistry.gl3d||{}).attrRegex,g=Object.keys(e);for(r=0;r<g.length;r++){var v=g[r];if(i&&i.test(v)){var y=e[v];y.anchor&&"free"!==y.anchor&&(y.anchor=u(y.anchor)),y.overlaying&&(y.overlaying=u(y.overlaying)),y.type||(y.isdate?y.type="date":y.islog?y.type="log":!1===y.isdate&&!1===y.islog&&(y.type="linear")),"withzero"!==y.autorange&&"tozero"!==y.autorange||(y.autorange=!0,y.rangemode="tozero"),delete y.islog,delete y.isdate,delete y.categories,m(y,"domain")&&delete y.domain,void 0!==y.autotick&&(void 0===y.tickmode&&(y.tickmode=y.autotick?"auto":"linear"),delete y.autotick),h(y)}else if(s&&s.test(v)){h(e[v].radialaxis)}else if(f&&f.test(v)){var b=e[v];h(b.aaxis),h(b.baxis),h(b.caxis)}else if(d&&d.test(v)){var x=e[v],w=x.cameraposition;if(Array.isArray(w)&&4===w[0].length){var _=w[0],k=w[1],T=w[2],A=a([],_),S=[];for(n=0;n<3;++n)S[n]=k[n]+T*A[2+4*n];x.camera={eye:{x:S[0],y:S[1],z:S[2]},center:{x:k[0],y:k[1],z:k[2]},up:{x:0,y:0,z:1}},delete x.cameraposition}h(x.xaxis),h(x.yaxis),h(x.zaxis)}}var M=Array.isArray(e.annotations)?e.annotations.length:0;for(r=0;r<M;r++){var O=e.annotations[r];o.isPlainObject(O)&&(O.ref&&("paper"===O.ref?(O.xref="paper",O.yref="paper"):"data"===O.ref&&(O.xref="x",O.yref="y"),delete O.ref),p(O,"xref"),p(O,"yref"))}var C=Array.isArray(e.shapes)?e.shapes.length:0;for(r=0;r<C;r++){var E=e.shapes[r];o.isPlainObject(E)&&(p(E,"xref"),p(E,"yref"))}var L=Array.isArray(e.images)?e.images.length:0;for(r=0;r<L;r++){var P=e.images[r];o.isPlainObject(P)&&(p(P,"xref"),p(P,"yref"))}var j=e.legend;return j&&(j.x>3?(j.x=1.02,j.xanchor="left"):j.x<-2&&(j.x=-.02,j.xanchor="right"),j.y>3?(j.y=1.02,j.yanchor="bottom"):j.y<-2&&(j.y=-.02,j.yanchor="top")),h(e),"rotate"===e.dragmode&&(e.dragmode="orbit"),c.clean(e),e.template&&e.template.layout&&t.cleanLayout(e.template.layout),e},t.cleanData=function(e){for(var r=0;r<e.length;r++){var n,a=e[r];if("histogramy"===a.type&&"xbins"in a&&!("ybins"in a)&&(a.ybins=a.xbins,delete a.xbins),a.error_y&&"opacity"in a.error_y){var s=c.defaults,f=a.error_y.color||(d(a,"bar")?c.defaultLine:s[r%s.length]);a.error_y.color=c.addOpacity(c.rgb(f),c.opacity(f)*a.error_y.opacity),delete a.error_y.opacity}if("bardir"in a&&("h"!==a.bardir||!d(a,"bar")&&"histogram"!==a.type.substr(0,9)||(a.orientation="h",t.swapXYData(a)),delete a.bardir),"histogramy"===a.type&&t.swapXYData(a),"histogramx"!==a.type&&"histogramy"!==a.type||(a.type="histogram"),"scl"in a&&!("colorscale"in a)&&(a.colorscale=a.scl,delete a.scl),"reversescl"in a&&!("reversescale"in a)&&(a.reversescale=a.reversescl,delete a.reversescl),a.xaxis&&(a.xaxis=u(a.xaxis,"x")),a.yaxis&&(a.yaxis=u(a.yaxis,"y")),d(a,"gl3d")&&a.scene&&(a.scene=l.subplotsRegistry.gl3d.cleanId(a.scene)),!d(a,"pie-like")&&!d(a,"bar-like"))if(Array.isArray(a.textposition))for(n=0;n<a.textposition.length;n++)a.textposition[n]=y(a.textposition[n]);else a.textposition&&(a.textposition=y(a.textposition));var p=i.getModule(a);if(p&&p.colorbar){var b=p.colorbar.container,x=b?a[b]:a;x&&x.colorscale&&("YIGnBu"===x.colorscale&&(x.colorscale="YlGnBu"),"YIOrRd"===x.colorscale&&(x.colorscale="YlOrRd"))}if("surface"===a.type&&o.isPlainObject(a.contours)){var w=["x","y","z"];for(n=0;n<w.length;n++){var _=a.contours[w[n]];o.isPlainObject(_)&&(_.highlightColor&&(_.highlightcolor=_.highlightColor,delete _.highlightColor),_.highlightWidth&&(_.highlightwidth=_.highlightWidth,delete _.highlightWidth))}}if("candlestick"===a.type||"ohlc"===a.type){var k=!1!==(a.increasing||{}).showlegend,T=!1!==(a.decreasing||{}).showlegend,A=g(a.increasing),S=g(a.decreasing);if(!1!==A&&!1!==S){var M=v(A,S,k,T);M&&(a.name=M)}else!A&&!S||a.name||(a.name=A||S)}if(Array.isArray(a.transforms)){var O=a.transforms;for(n=0;n<O.length;n++){var C=O[n];if(o.isPlainObject(C))switch(C.type){case"filter":C.filtersrc&&(C.target=C.filtersrc,delete C.filtersrc),C.calendar&&(C.valuecalendar||(C.valuecalendar=C.calendar),delete C.calendar);break;case"groupby":if(C.styles=C.styles||C.style,C.styles&&!Array.isArray(C.styles)){var E=C.styles,L=Object.keys(E);C.styles=[];for(var P=0;P<L.length;P++)C.styles.push({target:L[P],value:E[L[P]]})}}}}m(a,"line")&&delete a.line,"marker"in a&&(m(a.marker,"line")&&delete a.marker.line,m(a,"marker")&&delete a.marker),c.clean(a),a.autobinx&&(delete a.autobinx,delete a.xbins),a.autobiny&&(delete a.autobiny,delete a.ybins),h(a),a.colorbar&&h(a.colorbar),a.marker&&a.marker.colorbar&&h(a.marker.colorbar),a.line&&a.line.colorbar&&h(a.line.colorbar),a.aaxis&&h(a.aaxis),a.baxis&&h(a.baxis)}},t.swapXYData=function(e){var t;if(o.swapAttrs(e,["?","?0","d?","?bins","nbins?","autobin?","?src","error_?"]),Array.isArray(e.z)&&Array.isArray(e.z[0])&&(e.transpose?delete e.transpose:e.transpose=!0),e.error_x&&e.error_y){var r=e.error_y,n="copy_ystyle"in r?r.copy_ystyle:!(r.color||r.thickness||r.width);o.swapAttrs(e,["error_?.copy_ystyle"]),n&&o.swapAttrs(e,["error_?.color","error_?.thickness","error_?.width"])}if("string"===typeof e.hoverinfo){var a=e.hoverinfo.split("+");for(t=0;t<a.length;t++)"x"===a[t]?a[t]="y":"y"===a[t]&&(a[t]="x");e.hoverinfo=a.join("+")}},t.coerceTraceIndices=function(e,t){if(n(t))return[t];if(!Array.isArray(t)||!t.length)return e.data.map((function(e,t){return t}));if(Array.isArray(t)){for(var r=[],a=0;a<t.length;a++)o.isIndex(t[a],e.data.length)?r.push(t[a]):o.warn("trace index (",t[a],") is not a number or is out of bounds");return r}return t},t.manageArrayContainers=function(e,t,r){var a=e.obj,i=e.parts,l=i.length,s=i[l-1],c=n(s);if(c&&null===t){var u=i.slice(0,l-1).join(".");o.nestedProperty(a,u).get().splice(s,1)}else c&&void 0===e.get()?(void 0===e.get()&&(r[e.astr]=null),e.set(t)):e.set(t)};var b=/(\.[^\[\]\.]+|\[[^\[\]\.]+\])$/;function x(e){var t=e.search(b);if(t>0)return e.substr(0,t)}t.hasParent=function(e,t){for(var r=x(t);r;){if(r in e)return!0;r=x(r)}return!1};var w=["x","y","z"];t.clearAxisTypes=function(e,t,r){for(var n=0;n<t.length;n++)for(var a=e._fullData[n],i=0;i<3;i++){var l=f(e,a,w[i]);if(l&&"log"!==l.type){var s=l._name,c=l._id.substr(1);if("scene"===c.substr(0,5)){if(void 0!==r[c])continue;s=c+"."+s}var u=s+".type";void 0===r[s]&&void 0===r[u]&&o.nestedProperty(e.layout,u).set(null)}}}},function(e,t,r){"use strict";var n=r(0),a=r(20),i=r(95),o=r(73).dfltConfig,l=n.isPlainObject,s=Array.isArray,c=n.isArrayOrTypedArray;function u(e,t,r,a,i,o){o=o||[];for(var f=Object.keys(e),d=0;d<f.length;d++){var p=f[d];if("transforms"!==p){var y=o.slice();y.push(p);var m=e[p],b=t[p],x=v(r,p),w=(x||{}).valType,_="info_array"===w,k="colorscale"===w,T=(x||{}).items;if(g(r,p))if(l(m)&&l(b)&&"any"!==w)u(m,b,x,a,i,y);else if(_&&s(m)){m.length>b.length&&a.push(h("unused",i,y.concat(b.length)));var A,S,M,O,C,E=b.length,L=Array.isArray(T);if(L&&(E=Math.min(E,T.length)),2===x.dimensions)for(S=0;S<E;S++)if(s(m[S])){m[S].length>b[S].length&&a.push(h("unused",i,y.concat(S,b[S].length)));var P=b[S].length;for(A=0;A<(L?Math.min(P,T[S].length):P);A++)M=L?T[S][A]:T,O=m[S][A],C=b[S][A],n.validate(O,M)?C!==O&&C!==+O&&a.push(h("dynamic",i,y.concat(S,A),O,C)):a.push(h("value",i,y.concat(S,A),O))}else a.push(h("array",i,y.concat(S),m[S]));else for(S=0;S<E;S++)M=L?T[S]:T,O=m[S],C=b[S],n.validate(O,M)?C!==O&&C!==+O&&a.push(h("dynamic",i,y.concat(S),O,C)):a.push(h("value",i,y.concat(S),O))}else if(x.items&&!_&&s(m)){var j,z,D=T[Object.keys(T)[0]],I=[];for(j=0;j<b.length;j++){var N=b[j]._index||j;if((z=y.slice()).push(N),l(m[N])&&l(b[j])){I.push(N);var R=m[N],F=b[j];l(R)&&!1!==R.visible&&!1===F.visible?a.push(h("invisible",i,z)):u(R,F,D,a,i,z)}}for(j=0;j<m.length;j++)(z=y.slice()).push(j),l(m[j])?-1===I.indexOf(j)&&a.push(h("unused",i,z)):a.push(h("object",i,z,m[j]))}else!l(m)&&l(b)?a.push(h("object",i,y,m)):c(m)||!c(b)||_||k?p in t?n.validate(m,x)?"enumerated"===x.valType&&(x.coerceNumber&&m!==+b||m!==b)&&a.push(h("dynamic",i,y,m,b)):a.push(h("value",i,y,m)):a.push(h("unused",i,y,m)):a.push(h("array",i,y,m));else a.push(h("schema",i,y))}}return a}function f(e,t){for(var r=e.layout.layoutAttributes,a=0;a<t.length;a++){var i=t[a],o=e.traces[i.type],l=o.layoutAttributes;l&&(i.subplot?n.extendFlat(r[o.attributes.subplot.dflt],l):n.extendFlat(r,l))}return r}e.exports=function(e,t){void 0===e&&(e=[]),void 0===t&&(t={});var r,c,d=i.get(),p=[],g={_context:n.extendFlat({},o)};s(e)?(g.data=n.extendDeep([],e),r=e):(g.data=[],r=[],p.push(h("array","data"))),l(t)?(g.layout=n.extendDeep({},t),c=t):(g.layout={},c={},arguments.length>1&&p.push(h("object","layout"))),a.supplyDefaults(g);for(var v=g._fullData,y=r.length,m=0;m<y;m++){var b=r[m],x=["data",m];if(l(b)){var w=v[m],_=w.type,k=d.traces[_].attributes;k.type={valType:"enumerated",values:[_]},!1===w.visible&&!1!==b.visible&&p.push(h("invisible",x)),u(b,w,k,p,x);var T=b.transforms,A=w.transforms;if(T){s(T)||p.push(h("array",x,["transforms"])),x.push("transforms");for(var S=0;S<T.length;S++){var M=["transforms",S],O=T[S].type;if(l(T[S])){var C=d.transforms[O]?d.transforms[O].attributes:{};C.type={valType:"enumerated",values:Object.keys(d.transforms)},u(T[S],A[S],C,p,x,M)}else p.push(h("object",x,M))}}}else p.push(h("object",x))}var E=g._fullLayout,L=f(d,v);return u(c,E,L,p,"layout"),0===p.length?void 0:p};var d={object:function(e,t){return("layout"===e&&""===t?"The layout argument":"data"===e[0]&&""===t?"Trace "+e[1]+" in the data argument":p(e)+"key "+t)+" must be linked to an object container"},array:function(e,t){return("data"===e?"The data argument":p(e)+"key "+t)+" must be linked to an array container"},schema:function(e,t){return p(e)+"key "+t+" is not part of the schema"},unused:function(e,t,r){var n=l(r)?"container":"key";return p(e)+n+" "+t+" did not get coerced"},dynamic:function(e,t,r,n){return[p(e)+"key",t,"(set to '"+r+"')","got reset to","'"+n+"'","during defaults."].join(" ")},invisible:function(e,t){return(t?p(e)+"item "+t:"Trace "+e[1])+" got defaulted to be not visible"},value:function(e,t,r){return[p(e)+"key "+t,"is set to an invalid value ("+r+")"].join(" ")}};function p(e){return s(e)?"In data trace "+e[1]+", ":"In "+e+", "}function h(e,t,r,a,i){var o,l;r=r||"",s(t)?(o=t[0],l=t[1]):(o=t,l=null);var c=function(e){if(!s(e))return String(e);for(var t="",r=0;r<e.length;r++){var n=e[r];"number"===typeof n?t=t.substr(0,t.length-1)+"["+n+"]":t+=n,r<e.length-1&&(t+=".")}return t}(r),u=d[e](t,c,a,i);return n.log(u),{code:e,container:o,trace:l,path:r,astr:c,msg:u}}function g(e,t){var r=m(t),n=r.keyMinusId,a=r.id;return!!(n in e&&e[n]._isSubplotObj&&a)||t in e}function v(e,t){return t in e?e[t]:e[m(t).keyMinusId]}var y=n.counterRegex("([a-z]+)");function m(e){var t=e.match(y);return{keyMinusId:t&&t[1],id:t&&t[2]}}},function(e,t,r){"use strict";var n=r(0),a=r(78);e.exports=function(e,t,r){var i=document.createElement("a"),o="download"in i;return new Promise((function(l,s){var c,u;if(n.isIE())return c=a.createBlob(e,"svg"),window.navigator.msSaveBlob(c,t),c=null,l(t);if(o)return c=a.createBlob(e,r),u=a.createObjectURL(c),i.href=u,i.download=t,document.body.appendChild(i),i.click(),document.body.removeChild(i),a.revokeObjectURL(u),c=null,l(t);if(n.isSafari()){var f="svg"===r?",":";base64,";return a.octetStream(f+encodeURIComponent(e)),l(t)}s(new Error("download error"))}))}},function(e,t,r){"use strict";var n=r(0),a=n.isPlainObject,i=r(95),o=r(20),l=r(44),s=r(17),c=r(73).dfltConfig;function u(e,t){e=n.extendDeep({},e);var r,i,o=Object.keys(e).sort();function l(t,r,n){if(a(r)&&a(t))u(t,r);else if(Array.isArray(r)&&Array.isArray(t)){var o=s.arrayTemplater({_template:e},n);for(i=0;i<r.length;i++){var l=r[i],c=o.newItem(l)._template;c&&u(c,l)}var f=o.defaultItems();for(i=0;i<f.length;i++)r.push(f[i]._template);for(i=0;i<r.length;i++)delete r[i].templateitemname}}for(r=0;r<o.length;r++){var c=o[r],d=e[c];if(c in t?l(d,t[c],c):t[c]=d,f(c)===c)for(var p in t){var h=f(p);p===h||h!==c||p in e||l(d,t[p],c)}}}function f(e){return e.replace(/[0-9]+$/,"")}function d(e,t,r,i,o){var l=o&&r(o);for(var c in e){var u=e[c],p=g(e,c,i),h=g(e,c,o),v=r(h);if(!v){var y=f(c);y!==c&&(v=r(h=g(e,y,o)))}if((!l||l!==v)&&!(!v||v._noTemplating||"data_array"===v.valType||v.arrayOk&&Array.isArray(u)))if(!v.valType&&a(u))d(u,t,r,p,h);else if(v._isLinkedToArray&&Array.isArray(u))for(var m=!1,b=0,x={},w=0;w<u.length;w++){var _=u[w];if(a(_)){var k=_.name;if(k)x[k]||(d(_,t,r,g(u,b,p),g(u,b,h)),b++,x[k]=1);else if(!m){var T=g(e,s.arrayDefaultKey(c),i),A=g(u,b,p);d(_,t,r,A,g(u,b,h));var S=n.nestedProperty(t,A);n.nestedProperty(t,T).set(S.get()),S.set(null),m=!0}}}else{n.nestedProperty(t,p).set(u)}}}function p(e,t){return i.getLayoutValObject(e,n.nestedProperty({},t).parts)}function h(e,t){return i.getTraceValObject(e,n.nestedProperty({},t).parts)}function g(e,t,r){return r?Array.isArray(e)?r+"["+t+"]":r+"."+t:t}function v(e){for(var t=0;t<e.length;t++)if(a(e[t]))return!0}function y(e){var t;switch(e.code){case"data":t="The template has no key data.";break;case"layout":t="The template has no key layout.";break;case"missing":t=e.path?"There are no templates for item "+e.path+" with name "+e.templateitemname:"There are no templates for trace "+e.index+", of type "+e.traceType+".";break;case"unused":t=e.path?"The template item at "+e.path+" was not used in constructing the plot.":e.dataCount?"Some of the templates of type "+e.traceType+" were not used. The template has "+e.templateCount+" traces, the data only has "+e.dataCount+" of this type.":"The template has "+e.templateCount+" traces of type "+e.traceType+" but there are none in the data.";break;case"reused":t="Some of the templates of type "+e.traceType+" were used more than once. The template has "+e.templateCount+" traces, the data has "+e.dataCount+" of this type."}return e.msg=t,e}t.makeTemplate=function(e){e=n.isPlainObject(e)?e:n.getGraphDiv(e),e=n.extendDeep({_context:c},{data:e.data,layout:e.layout}),o.supplyDefaults(e);var t=e.data||[],r=e.layout||{};r._basePlotModules=e._fullLayout._basePlotModules,r._modules=e._fullLayout._modules;var i={data:{},layout:{}};t.forEach((function(e){var t={};d(e,t,h.bind(null,e));var r=n.coerce(e,{},l,"type"),a=i.data[r];a||(a=i.data[r]=[]),a.push(t)})),d(r,i.layout,p.bind(null,r)),delete i.layout.template;var s=r.template;if(a(s)){var f,g,v,y,m,b,x=s.layout;a(x)&&u(x,i.layout);var w=s.data;if(a(w)){for(g in i.data)if(v=w[g],Array.isArray(v)){for(b=(m=i.data[g]).length,y=v.length,f=0;f<b;f++)u(v[f%y],m[f]);for(f=b;f<y;f++)m.push(n.extendDeep({},v[f]))}for(g in w)g in i.data||(i.data[g]=n.extendDeep([],w[g]))}}return i},t.validateTemplate=function(e,t){var r=n.extendDeep({},{_context:c,data:e.data,layout:e.layout}),i=r.layout||{};a(t)||(t=i.template||{});var l=t.layout,s=t.data,u=[];r.layout=i,r.layout.template=t,o.supplyDefaults(r);var d=r._fullLayout,p=r._fullData,h={};if(a(l)?(!function e(t,r){for(var n in t)if("_"!==n.charAt(0)&&a(t[n])){var i,o=f(n),l=[];for(i=0;i<r.length;i++)l.push(g(t,n,r[i])),o!==n&&l.push(g(t,o,r[i]));for(i=0;i<l.length;i++)h[l[i]]=1;e(t[n],l)}}(d,["layout"]),function e(t,r){for(var n in t)if(-1===n.indexOf("defaults")&&a(t[n])){var i=g(t,n,r);h[i]?e(t[n],i):u.push({code:"unused",path:i})}}(l,"layout")):u.push({code:"layout"}),a(s)){for(var m,b={},x=0;x<p.length;x++){var w=p[x];b[m=w.type]=(b[m]||0)+1,w._fullInput._template||u.push({code:"missing",index:w._fullInput.index,traceType:m})}for(m in s){var _=s[m].length,k=b[m]||0;_>k?u.push({code:"unused",traceType:m,templateCount:_,dataCount:k}):k>_&&u.push({code:"reused",traceType:m,templateCount:_,dataCount:k})}}else u.push({code:"data"});if(function e(t,r){for(var n in t)if("_"!==n.charAt(0)){var i=t[n],o=g(t,n,r);a(i)?(Array.isArray(t)&&!1===i._template&&i.templateitemname&&u.push({code:"missing",path:o,templateitemname:i.templateitemname}),e(i,o)):Array.isArray(i)&&v(i)&&e(i,o)}}({data:p,layout:d},""),u.length)return u.map(y)}},function(e,t,r){"use strict";var n=r(30);e.exports={hasLines:n.hasLines,hasMarkers:n.hasMarkers,hasText:n.hasText,isBubble:n.isBubble,attributes:r(79),supplyDefaults:r(560),crossTraceDefaults:r(282),calc:r(183).calc,crossTraceCalc:r(563),arraysToCalcdata:r(284),plot:r(564),colorbar:r(101),formatLabels:r(287),style:r(288).style,styleOnSelect:r(288).styleOnSelect,hoverPoints:r(566),selectPoints:r(567),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:r(80),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{description:["The scatter trace type encompasses line charts, scatter charts, text charts, and bubble charts.","The data visualized as scatter point or lines is set in `x` and `y`.","Text (appearing either on the chart or on hover only) is via `text`.","Bubble charts are achieved by setting `marker.size` and/or `marker.color`","to numerical arrays."].join(" ")}}},function(e,t,r){"use strict";var n=r(0),a=r(5),i=r(79),o=r(125),l=r(30),s=r(182),c=r(126),u=r(561),f=r(278),d=r(279),p=r(562),h=r(280),g=r(281),v=r(0).coercePattern;e.exports=function(e,t,r,y){function m(r,a){return n.coerce(e,t,i,r,a)}var b=s(e,t,y,m);if(b||(t.visible=!1),t.visible){c(e,t,y,m),m("xhoverformat"),m("yhoverformat");var x=u(e,t,y,m),w=!x&&b<o.PTS_LINESONLY?"lines+markers":"lines";m("text"),m("hovertext"),m("mode",w),l.hasLines(t)&&(d(e,t,r,y,m),p(e,t,m),m("connectgaps"),m("line.simplify")),l.hasMarkers(t)&&f(e,t,r,y,m,{gradient:!0}),l.hasText(t)&&(m("texttemplate"),h(e,t,y,m));var _=[];(l.hasMarkers(t)||l.hasText(t))&&(m("cliponaxis"),m("marker.maxdisplayed"),_.push("points")),m("fill",x?x.fillDflt:"none"),"none"!==t.fill&&(g(e,t,r,m),l.hasLines(t)||p(e,t,m),v(m,"fillpattern",t.fillcolor,!1));var k=(t.line||{}).color,T=(t.marker||{}).color;"tonext"!==t.fill&&"toself"!==t.fill||_.push("fills"),m("hoveron",_.join("+")||"points"),"fills"!==t.hoveron&&m("hovertemplate");var A=a.getComponentMethod("errorbars","supplyDefaults");A(e,t,k||T||r,{axis:"y"}),A(e,t,k||T||r,{axis:"x",inherit:"y"}),n.coerceSelectionMarkerOpacity(t,m)}}},function(e,t,r){"use strict";var n=["orientation","groupnorm","stackgaps"];e.exports=function(e,t,r,a){var i=r._scatterStackOpts,o=a("stackgroup");if(o){var l=t.xaxis+t.yaxis,s=i[l];s||(s=i[l]={});var c=s[o],u=!1;c?c.traces.push(t):(c=s[o]={traceIndices:[],traces:[t]},u=!0);for(var f={orientation:t.x&&!t.y?"h":"v"},d=0;d<n.length;d++){var p=n[d],h=p+"Found";if(!c[h]){var g=void 0!==e[p],v="orientation"===p;if((g||u)&&(c[p]=a(p,f[p]),v&&(c.fillDflt="h"===c[p]?"tonextx":"tonexty"),g&&(c[h]=!0,!u&&(delete c.traces[0][p],v))))for(var y=0;y<c.traces.length-1;y++){var m=c.traces[y];m._input.fill!==m.fill&&(m.fill=c.fillDflt)}}}return c}}},function(e,t,r){"use strict";e.exports=function(e,t,r){"spline"===r("line.shape")&&r("line.smoothing")}},function(e,t,r){"use strict";var n=r(183);function a(e,t,r,n,a,i,o){a[n]=!0;var l={i:null,gap:!0,s:0};if(l[o]=r,e.splice(t,0,l),t&&r===e[t-1][o]){var s=e[t-1];l.s=s.s,l.i=s.i,l.gap=s.gap}else i&&(l.s=function(e,t,r,n){var a=e[t-1],i=e[t+1];return i?a?a.s+(i.s-a.s)*(r-a[n])/(i[n]-a[n]):i.s:a.s}(e,t,r,o));t||(e[0].t=e[1].t,e[0].trace=e[1].trace,delete e[1].t,delete e[1].trace)}e.exports=function(e,t){var r=t.xaxis,i=t.yaxis,o=r._id+i._id,l=e._fullLayout._scatterStackOpts[o];if(l){var s,c,u,f,d,p,h,g,v,y,m,b,x,w,_,k=e.calcdata;for(var T in l){var A=(y=l[T]).traceIndices;if(A.length){for(m="interpolate"===y.stackgaps,b=y.groupnorm,"v"===y.orientation?(x="x",w="y"):(x="y",w="x"),_=new Array(A.length),s=0;s<_.length;s++)_[s]=!1;p=k[A[0]];var S=new Array(p.length);for(s=0;s<p.length;s++)S[s]=p[s][x];for(s=1;s<A.length;s++){for(d=k[A[s]],c=u=0;c<d.length;c++){for(h=d[c][x];h>S[u]&&u<S.length;u++)a(d,c,S[u],s,_,m,x),c++;if(h!==S[u]){for(f=0;f<s;f++)a(k[A[f]],u,h,f,_,m,x);S.splice(u,0,h)}u++}for(;u<S.length;u++)a(d,c,S[u],s,_,m,x),c++}var M=S.length;for(c=0;c<p.length;c++){for(g=p[c][w]=p[c].s,s=1;s<A.length;s++)(d=k[A[s]])[0].trace._rawLength=d[0].trace._length,d[0].trace._length=M,g+=d[c].s,d[c][w]=g;if(b)for(v=("fraction"===b?g:g/100)||1,s=0;s<A.length;s++){var O=k[A[s]][c];O[w]/=v,O.sNorm=O.s/v}}for(s=0;s<A.length;s++){var C=(d=k[A[s]])[0].trace,E=n.calcMarkerSize(C,C._rawLength),L=Array.isArray(E);if(E&&_[s]||L){var P=E;for(E=new Array(M),c=0;c<M;c++)E[c]=d[c].gap?0:L?P[d[c].i]:P}var j=new Array(M),z=new Array(M);for(c=0;c<M;c++)j[c]=d[c].x,z[c]=d[c].y;n.calcAxisExpansion(e,C,r,i,j,z,E),d[0].t.orientation=y.orientation}}}}}},function(e,t,r){"use strict";var n=r(7),a=r(5),i=r(0),o=i.ensureSingle,l=i.identity,s=r(10),c=r(30),u=r(565),f=r(286),d=r(275).tester;function p(e,t,r,f,p,h,g){var v;!function(e,t,r,a,o){var l=r.xaxis,s=r.yaxis,u=n.extent(i.simpleMap(l.range,l.r2c)),f=n.extent(i.simpleMap(s.range,s.r2c)),d=a[0].trace;if(!c.hasMarkers(d))return;var p=d.marker.maxdisplayed;if(0===p)return;var h=a.filter((function(e){return e.x>=u[0]&&e.x<=u[1]&&e.y>=f[0]&&e.y<=f[1]})),g=Math.ceil(h.length/p),v=0;o.forEach((function(e,r){var n=e[0].trace;c.hasMarkers(n)&&n.marker.maxdisplayed>0&&r<t&&v++}));var y=Math.round(v*g/3+Math.floor(v/3)*g/7.1);a.forEach((function(e){delete e.vis})),h.forEach((function(e,t){0===Math.round((t+y)%g)&&(e.vis=!0)}))}(0,t,r,f,p);var y=!!g&&g.duration>0;function m(e){return y?e.transition():e}var b=r.xaxis,x=r.yaxis,w=f[0].trace,_=w.line,k=n.select(h),T=o(k,"g","errorbars"),A=o(k,"g","lines"),S=o(k,"g","points"),M=o(k,"g","text");if(a.getComponentMethod("errorbars","plot")(e,T,r,g),!0===w.visible){var O,C;m(k).style("opacity",w.opacity);var E=w.fill.charAt(w.fill.length-1);"x"!==E&&"y"!==E&&(E=""),f[0][r.isRangePlot?"nodeRangePlot3":"node3"]=k;var L,P,j="",z=[],D=w._prevtrace;D&&(j=D._prevRevpath||"",C=D._nextFill,z=D._polygons);var I,N,R,F,B,U,H,V="",q="",W=[],Y=i.noop;if(O=w._ownFill,c.hasLines(w)||"none"!==w.fill){for(C&&C.datum(f),-1!==["hv","vh","hvh","vhv"].indexOf(_.shape)?(I=s.steps(_.shape),N=s.steps(_.shape.split("").reverse().join(""))):I=N="spline"===_.shape?function(e){var t=e[e.length-1];return e.length>1&&e[0][0]===t[0]&&e[0][1]===t[1]?s.smoothclosed(e.slice(1),_.smoothing):s.smoothopen(e,_.smoothing)}:function(e){return"M"+e.join("L")},R=function(e){return N(e.reverse())},W=u(f,{xaxis:b,yaxis:x,connectGaps:w.connectgaps,baseTolerance:Math.max(_.width||1,3)/4,shape:_.shape,simplify:_.simplify,fill:w.fill}),H=w._polygons=new Array(W.length),v=0;v<W.length;v++)w._polygons[v]=d(W[v]);W.length&&(F=W[0][0],U=(B=W[W.length-1])[B.length-1]),Y=function(e){return function(t){if(L=I(t),P=R(t),V?E?(V+="L"+L.substr(1),q=P+"L"+q.substr(1)):(V+="Z"+L,q=P+"Z"+q):(V=L,q=P),c.hasLines(w)&&t.length>1){var r=n.select(this);if(r.datum(f),e)m(r.style("opacity",0).attr("d",L).call(s.lineGroupStyle)).style("opacity",1);else{var a=m(r);a.attr("d",L),s.singleLineStyle(f,a)}}}}}var G=A.selectAll(".js-line").data(W);m(G.exit()).style("opacity",0).remove(),G.each(Y(!1)),G.enter().append("path").classed("js-line",!0).style("vector-effect","non-scaling-stroke").call(s.lineGroupStyle).each(Y(!0)),s.setClipUrl(G,r.layerClipId,e),W.length?(O?(O.datum(f),F&&U&&(E?("y"===E?F[1]=U[1]=x.c2p(0,!0):"x"===E&&(F[0]=U[0]=b.c2p(0,!0)),m(O).attr("d","M"+U+"L"+F+"L"+V.substr(1)).call(s.singleFillStyle,e)):m(O).attr("d",V+"Z").call(s.singleFillStyle,e))):C&&("tonext"===w.fill.substr(0,6)&&V&&j?("tonext"===w.fill?m(C).attr("d",V+"Z"+j+"Z").call(s.singleFillStyle,e):m(C).attr("d",V+"L"+j.substr(1)+"Z").call(s.singleFillStyle,e),w._polygons=w._polygons.concat(z)):(Z(C),w._polygons=null)),w._prevRevpath=q,w._prevPolygons=H):(O?Z(O):C&&Z(C),w._polygons=w._prevRevpath=w._prevPolygons=null),S.datum(f),M.datum(f),function(t,a,i){var o,u=i[0].trace,f=c.hasMarkers(u),d=c.hasText(u),p=ee(u),h=te,g=te;if(f||d){var v=l,w=u.stackgroup,_=w&&"infer zero"===e._fullLayout._scatterStackOpts[b._id+x._id][w].stackgaps;u.marker.maxdisplayed||u._needsCull?v=_?Q:$:w&&!_&&(v=K),f&&(h=v),d&&(g=v)}var k,T=(o=t.selectAll("path.point").data(h,p)).enter().append("path").classed("point",!0);y&&T.call(s.pointStyle,u,e).call(s.translatePoints,b,x).style("opacity",0).transition().style("opacity",1),o.order(),f&&(k=s.makePointStyleFns(u)),o.each((function(t){var a=n.select(this),i=m(a);s.translatePoint(t,i,b,x)?(s.singlePointStyle(t,i,u,k,e),r.layerClipId&&s.hideOutsideRangePoint(t,i,b,x,u.xcalendar,u.ycalendar),u.customdata&&a.classed("plotly-customdata",null!==t.data&&void 0!==t.data)):i.remove()})),y?o.exit().transition().style("opacity",0).remove():o.exit().remove(),(o=a.selectAll("g").data(g,p)).enter().append("g").classed("textpoint",!0).append("text"),o.order(),o.each((function(e){var t=n.select(this),a=m(t.select("text"));s.translatePoint(e,a,b,x)?r.layerClipId&&s.hideOutsideRangePoint(e,t,b,x,u.xcalendar,u.ycalendar):t.remove()})),o.selectAll("text").call(s.textPointStyle,u,e).each((function(e){var t=b.c2p(e.x),r=x.c2p(e.y);n.select(this).selectAll("tspan.line").each((function(){m(n.select(this)).attr({x:t,y:r})}))})),o.exit().remove()}(S,M,f);var X=!1===w.cliponaxis?null:r.layerClipId;s.setClipUrl(S,X,e),s.setClipUrl(M,X,e)}function Z(e){m(e).attr("d","M0,0Z")}function $(e){return e.filter((function(e){return!e.gap&&e.vis}))}function Q(e){return e.filter((function(e){return e.vis}))}function K(e){return e.filter((function(e){return!e.gap}))}function J(e){return e.id}function ee(e){if(e.ids)return J}function te(){return!1}}e.exports=function(e,t,r,a,i,c){var u,d,h=!i,g=!!i&&i.duration>0,v=f(e,t,r);((u=a.selectAll("g.trace").data(v,(function(e){return e[0].trace.uid}))).enter().append("g").attr("class",(function(e){return"trace scatter trace"+e[0].trace.uid})).style("stroke-miterlimit",2),u.order(),function(e,t,r){t.each((function(t){var a=o(n.select(this),"g","fills");s.setClipUrl(a,r.layerClipId,e);var i=t[0].trace,c=[];i._ownfill&&c.push("_ownFill"),i._nexttrace&&c.push("_nextFill");var u=a.selectAll("g").data(c,l);u.enter().append("g"),u.exit().each((function(e){i[e]=null})).remove(),u.order().each((function(e){i[e]=o(n.select(this),"path","js-fill")}))}))}(e,u,t),g)?(c&&(d=c()),n.transition().duration(i.duration).ease(i.easing).each("end",(function(){d&&d()})).each("interrupt",(function(){d&&d()})).each((function(){a.selectAll("g.trace").each((function(r,n){p(e,n,t,r,v,this,i)}))}))):u.each((function(r,n){p(e,n,t,r,v,this,i)}));h&&u.exit().remove(),a.selectAll("path:not([d])").remove()}},function(e,t,r){"use strict";var n=r(19),a=n.BADNUM,i=n.LOG_CLIP,o=i+.5,l=i-.5,s=r(0),c=s.segmentsIntersect,u=s.constrain,f=r(125);e.exports=function(e,t){var r,n,i,d,p,h,g,v,y,m,b,x,w,_,k,T,A,S,M=t.xaxis,O=t.yaxis,C="log"===M.type,E="log"===O.type,L=M._length,P=O._length,j=t.connectGaps,z=t.baseTolerance,D=t.shape,I="linear"===D,N=t.fill&&"none"!==t.fill,R=[],F=f.minTolerance,B=e.length,U=new Array(B),H=0;function V(r){var n=e[r];if(!n)return!1;var i=t.linearized?M.l2p(n.x):M.c2p(n.x),s=t.linearized?O.l2p(n.y):O.c2p(n.y);if(i===a){if(C&&(i=M.c2p(n.x,!0)),i===a)return!1;E&&s===a&&(i*=Math.abs(M._m*P*(M._m>0?o:l)/(O._m*L*(O._m>0?o:l)))),i*=1e3}if(s===a){if(E&&(s=O.c2p(n.y,!0)),s===a)return!1;s*=1e3}return[i,s]}function q(e,t,r,n){var a=r-e,i=n-t,o=.5-e,l=.5-t,s=a*a+i*i,c=a*o+i*l;if(c>0&&c<s){var u=o*i-l*a;if(u*u<s)return!0}}function W(e,t){var r=e[0]/L,n=e[1]/P,a=Math.max(0,-r,r-1,-n,n-1);return a&&void 0!==A&&q(r,n,A,S)&&(a=0),a&&t&&q(r,n,t[0]/L,t[1]/P)&&(a=0),(1+f.toleranceGrowth*a)*z}function Y(e,t){var r=e[0]-t[0],n=e[1]-t[1];return Math.sqrt(r*r+n*n)}var G,X,Z,$,Q,K,J,ee=f.maxScreensAway,te=-L*ee,re=L*(1+ee),ne=-P*ee,ae=P*(1+ee),ie=[[te,ne,re,ne],[re,ne,re,ae],[re,ae,te,ae],[te,ae,te,ne]];function oe(e){if(e[0]<te||e[0]>re||e[1]<ne||e[1]>ae)return[u(e[0],te,re),u(e[1],ne,ae)]}function le(e,t){return e[0]===t[0]&&(e[0]===te||e[0]===re)||(e[1]===t[1]&&(e[1]===ne||e[1]===ae)||void 0)}function se(e,t,r){return function(n,a){var i=oe(n),o=oe(a),l=[];if(i&&o&&le(i,o))return l;i&&l.push(i),o&&l.push(o);var c=2*s.constrain((n[e]+a[e])/2,t,r)-((i||n)[e]+(o||a)[e]);c&&((i&&o?c>0===i[e]>o[e]?i:o:i||o)[e]+=c);return l}}function ce(e){var t=e[0],r=e[1],n=t===U[H-1][0],a=r===U[H-1][1];if(!n||!a)if(H>1){var i=t===U[H-2][0],o=r===U[H-2][1];n&&(t===te||t===re)&&i?o?H--:U[H-1]=e:a&&(r===ne||r===ae)&&o?i?H--:U[H-1]=e:U[H++]=e}else U[H++]=e}function ue(e){U[H-1][0]!==e[0]&&U[H-1][1]!==e[1]&&ce([Z,$]),ce(e),Q=null,Z=$=0}function fe(e){if(A=e[0]/L,S=e[1]/P,G=e[0]<te?te:e[0]>re?re:0,X=e[1]<ne?ne:e[1]>ae?ae:0,G||X){if(H)if(Q){var t=J(Q,e);t.length>1&&(ue(t[0]),U[H++]=t[1])}else K=J(U[H-1],e)[0],U[H++]=K;else U[H++]=[G||e[0],X||e[1]];var r=U[H-1];G&&X&&(r[0]!==G||r[1]!==X)?(Q&&(Z!==G&&$!==X?ce(Z&&$?function(e,t){var r=t[0]-e[0],n=(t[1]-e[1])/r;return(e[1]*t[0]-t[1]*e[0])/r>0?[n>0?te:re,ae]:[n>0?re:te,ne]}(Q,e):[Z||G,$||X]):Z&&$&&ce([Z,$])),ce([G,X])):Z-G&&$-X&&ce([G||Z,X||$]),Q=e,Z=G,$=X}else Q&&ue(J(Q,e)[0]),U[H++]=e}for("linear"===D||"spline"===D?J=function(e,t){for(var r=[],n=0,a=0;a<4;a++){var i=ie[a],o=c(e[0],e[1],t[0],t[1],i[0],i[1],i[2],i[3]);o&&(!n||Math.abs(o.x-r[0][0])>1||Math.abs(o.y-r[0][1])>1)&&(o=[o.x,o.y],n&&Y(o,e)<Y(r[0],e)?r.unshift(o):r.push(o),n++)}return r}:"hv"===D||"vh"===D?J=function(e,t){var r=[],n=oe(e),a=oe(t);return n&&a&&le(n,a)||(n&&r.push(n),a&&r.push(a)),r}:"hvh"===D?J=se(0,te,re):"vhv"===D&&(J=se(1,ne,ae)),r=0;r<B;r++)if(n=V(r)){for(H=0,Q=null,fe(n),r++;r<B;r++){if(!(d=V(r))){if(j)continue;break}if(I&&t.simplify){var de=V(r+1);if(m=Y(d,n),N&&(0===H||H===B-1)||!(m<W(d,de)*F)){for(v=[(d[0]-n[0])/m,(d[1]-n[1])/m],p=n,b=m,x=_=k=0,g=!1,i=d,r++;r<e.length;r++){if(h=de,de=V(r+1),!h){if(j)continue;break}if(T=(y=[h[0]-n[0],h[1]-n[1]])[0]*v[1]-y[1]*v[0],_=Math.min(_,T),(k=Math.max(k,T))-_>W(h,de))break;i=h,(w=y[0]*v[0]+y[1]*v[1])>b?(b=w,d=h,g=!1):w<x&&(x=w,p=h,g=!0)}if(g?(fe(d),i!==p&&fe(p)):(p!==n&&fe(p),i!==d&&fe(d)),fe(i),r>=e.length||!h)break;fe(h),n=h}}else fe(d)}Q&&ce([Z||Q[0],$||Q[1]]),R.push(U.slice(0,H))}return R}},function(e,t,r){"use strict";var n=r(0),a=r(41),i=r(5),o=r(289),l=r(8),s=n.fillText;e.exports=function(e,t,r,c){var u=e.cd,f=u[0].trace,d=e.xa,p=e.ya,h=d.c2p(t),g=p.c2p(r),v=[h,g],y=f.hoveron||"",m=-1!==f.mode.indexOf("markers")?3:.5,b=!!f.xperiodalignment,x=!!f.yperiodalignment;if(-1!==y.indexOf("points")){var w=function(e){var t=Math.max(m,e.mrc||0),r=d.c2p(e.x)-h,n=p.c2p(e.y)-g;return Math.max(Math.sqrt(r*r+n*n)-t,1-m/t)},_=a.getDistanceFunction(c,(function(e){if(b){var t=d.c2p(e.xStart),r=d.c2p(e.xEnd);return h>=Math.min(t,r)&&h<=Math.max(t,r)?0:1/0}var n=Math.max(3,e.mrc||0),a=1-1/n,i=Math.abs(d.c2p(e.x)-h);return i<n?a*i/n:i-n+a}),(function(e){if(x){var t=p.c2p(e.yStart),r=p.c2p(e.yEnd);return g>=Math.min(t,r)&&g<=Math.max(t,r)?0:1/0}var n=Math.max(3,e.mrc||0),a=1-1/n,i=Math.abs(p.c2p(e.y)-g);return i<n?a*i/n:i-n+a}),w);if(a.getClosest(u,_,e),!1!==e.index){var k=u[e.index],T=d.c2p(k.x,!0),A=p.c2p(k.y,!0),S=k.mrc||1;e.index=k.i;var M=u[0].t.orientation,O=M&&(k.sNorm||k.s),C="h"===M?O:void 0!==k.orig_x?k.orig_x:k.x,E="v"===M?O:void 0!==k.orig_y?k.orig_y:k.y;return n.extendFlat(e,{color:o(f,k),x0:T-S,x1:T+S,xLabelVal:C,y0:A-S,y1:A+S,yLabelVal:E,spikeDistance:w(k),hovertemplate:f.hovertemplate}),s(k,f,e),i.getComponentMethod("errorbars","hoverInfo")(k,f,e),[e]}}if(-1!==y.indexOf("fills")&&f._polygons){var L,P,j,z,D,I,N,R,F,B=f._polygons,U=[],H=!1,V=1/0,q=-1/0,W=1/0,Y=-1/0;for(L=0;L<B.length;L++)(j=B[L]).contains(v)&&(H=!H,U.push(j),W=Math.min(W,j.ymin),Y=Math.max(Y,j.ymax));if(H){var G=((W=Math.max(W,0))+(Y=Math.min(Y,p._length)))/2;for(L=0;L<U.length;L++)for(z=U[L].pts,P=1;P<z.length;P++)(R=z[P-1][1])>G!==(F=z[P][1])>=G&&(I=z[P-1][0],N=z[P][0],F-R&&(D=I+(N-I)*(G-R)/(F-R),V=Math.min(V,D),q=Math.max(q,D)));V=Math.max(V,0),q=Math.min(q,d._length);var X=l.defaultLine;return l.opacity(f.fillcolor)?X=f.fillcolor:l.opacity((f.line||{}).color)&&(X=f.line.color),n.extendFlat(e,{distance:e.maxHoverDistance,x0:V,x1:q,y0:G,y1:G,color:X,hovertemplate:!1}),delete e.index,f.text&&!Array.isArray(f.text)?e.text=String(f.text):e.text=f.name,[e]}}}},function(e,t,r){"use strict";var n=r(30);e.exports=function(e,t){var r,a,i,o,l=e.cd,s=e.xaxis,c=e.yaxis,u=[],f=l[0].trace;if(!n.hasMarkers(f)&&!n.hasText(f))return[];if(!1===t)for(r=0;r<l.length;r++)l[r].selected=0;else for(r=0;r<l.length;r++)a=l[r],i=s.c2p(a.x),o=c.c2p(a.y),null!==a.i&&t.contains([i,o],!1,r,e)?(u.push({pointNumber:a.i,x:s.c2d(a.x),y:c.c2d(a.y)}),a.selected=1):a.selected=0;return u}},function(e,t,r){"use strict";e.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes",description:["Sets a reference between this trace's x coordinates and","a 2D cartesian x axis.","If *x* (the default value), the x coordinates refer to","`layout.xaxis`.","If *x2*, the x coordinates refer to `layout.xaxis2`, and so on."].join(" ")},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes",description:["Sets a reference between this trace's y coordinates and","a 2D cartesian y axis.","If *y* (the default value), the y coordinates refer to","`layout.yaxis`.","If *y2*, the y coordinates refer to `layout.yaxis2`, and so on."].join(" ")}}},function(e,t,r){"use strict";var n=r(0),a=r(8),i=r(40).isUnifiedHover,o=r(266),l=r(17),s=r(93),c=r(49),u=r(570),f=r(290),d=r(100),p=r(291),h=r(21),g=h.id2name,v=h.name2id,y=r(29).AX_ID_PATTERN,m=r(5),b=m.traceIs,x=m.getComponentMethod;function w(e,t,r){Array.isArray(e[t])?e[t].push(r):e[t]=[r]}e.exports=function(e,t,r){var m,_,k=t.autotypenumbers,T={},A={},S={},M={},O={},C={},E={},L={},P={},j={};for(m=0;m<r.length;m++){var z=r[m];if(b(z,"cartesian")||b(z,"gl2d")){var D,I;if(z.xaxis)D=g(z.xaxis),w(T,D,z);else if(z.xaxes)for(_=0;_<z.xaxes.length;_++)w(T,g(z.xaxes[_]),z);if(z.yaxis)I=g(z.yaxis),w(T,I,z);else if(z.yaxes)for(_=0;_<z.yaxes.length;_++)w(T,g(z.yaxes[_]),z);if("funnel"===z.type?"h"===z.orientation?(D&&(A[D]=!0),I&&(E[I]=!0)):I&&(S[I]=!0):"image"===z.type?(I&&(L[I]=!0),D&&(L[D]=!0)):(I&&(O[I]=!0,C[I]=!0),b(z,"carpet")&&("carpet"!==z.type||z._cheater)||D&&(M[D]=!0)),"carpet"===z.type&&z._cheater&&D&&(A[D]=!0),b(z,"2dMap")&&(P[D]=!0,P[I]=!0),b(z,"oriented"))j["h"===z.orientation?I:D]=!0}}var N=t._subplots,R=N.xaxis,F=N.yaxis,B=n.simpleMap(R,g),U=n.simpleMap(F,g),H=B.concat(U),V=a.background;R.length&&F.length&&(V=n.coerce(e,t,s,"plot_bgcolor"));var q,W,Y,G,X,Z=a.combine(V,t.paper_bgcolor);function $(){var e=T[q]||[];X._traceIndices=e.map((function(e){return e._expandedIndex})),X._annIndices=[],X._shapeIndices=[],X._imgIndices=[],X._subplotsWith=[],X._counterAxes=[],X._name=X._attr=q,X._id=W}function Q(e,t){return n.coerce(G,X,c,e,t)}function K(e,t){return n.coerce2(G,X,c,e,t)}function J(e){return"x"===e?F:R}function ee(t,r){for(var n="x"===t?B:U,a=[],i=0;i<n.length;i++){var o=n[i];o===r||(e[o]||{}).overlaying||a.push(v(o))}return a}var te={x:J("x"),y:J("y")},re=te.x.concat(te.y),ne={},ae=[];function ie(){var e=G.matches;y.test(e)&&-1===re.indexOf(e)&&(ne[e]=G.type,ae=Object.keys(ne))}var oe=o(e,t),le=i(oe);for(m=0;m<H.length;m++){q=H[m],W=v(q),Y=q.charAt(0),n.isPlainObject(e[q])||(e[q]={}),G=e[q],X=l.newContainer(t,q,Y+"axis"),$();var se="x"===Y&&!M[q]&&A[q]||"y"===Y&&!O[q]&&S[q],ce="y"===Y&&(!C[q]&&E[q]||L[q]),ue={letter:Y,font:t.font,outerTicks:P[q],showGrid:!j[q],data:T[q]||[],bgColor:Z,calendar:t.calendar,automargin:!0,visibleDflt:se,reverseDflt:ce,autotypenumbersDflt:k,splomStash:((t._splomAxes||{})[Y]||{})[W]};Q("uirevision",t.uirevision),u(G,X,Q,ue),f(G,X,Q,ue,t);var fe=le&&Y===oe.charAt(0),de=K("spikecolor",le?X.color:void 0),pe=K("spikethickness",le?1.5:void 0),he=K("spikedash",le?"dot":void 0),ge=K("spikemode",le?"across":void 0),ve=K("spikesnap");Q("showspikes",!!fe||!!de||!!pe||!!he||!!ge||!!ve)||(delete X.spikecolor,delete X.spikethickness,delete X.spikedash,delete X.spikemode,delete X.spikesnap),p(G,X,Q,{letter:Y,counterAxes:te[Y],overlayableAxes:ee(Y,q),grid:t.grid}),Q("title.standoff"),ie(),X._input=G}for(m=0;m<ae.length;){W=ae[m++],Y=(q=g(W)).charAt(0),n.isPlainObject(e[q])||(e[q]={}),G=e[q],X=l.newContainer(t,q,Y+"axis"),$();var ye={letter:Y,font:t.font,outerTicks:P[q],showGrid:!j[q],data:[],bgColor:Z,calendar:t.calendar,automargin:!0,visibleDflt:!1,reverseDflt:!1,autotypenumbersDflt:k,splomStash:((t._splomAxes||{})[Y]||{})[W]};Q("uirevision",t.uirevision),X.type=ne[W]||"linear",f(G,X,Q,ye,t),p(G,X,Q,{letter:Y,counterAxes:te[Y],overlayableAxes:ee(Y,q),grid:t.grid}),Q("fixedrange"),ie(),X._input=G}var me=x("rangeslider","handleDefaults"),be=x("rangeselector","handleDefaults");for(m=0;m<B.length;m++)q=B[m],G=e[q],X=t[q],me(e,t,q),"date"===X.type&&be(G,X,t,U,X.calendar),Q("fixedrange");for(m=0;m<U.length;m++){q=U[m],G=e[q],X=t[q];var xe=t[g(X.anchor)];Q("fixedrange",x("rangeslider","isVisible")(xe))}d.handleDefaults(e,t,{axIds:re.concat(ae).sort(h.idSort),axHasImage:L})}},function(e,t,r){"use strict";var n=r(5).traceIs,a=r(257);function i(e){return{v:"x",h:"y"}[e.orientation||"v"]}function o(e,t){var r=i(e),a=n(e,"box-violin"),o=n(e._fullInput||{},"candlestick");return a&&!o&&t===r&&void 0===e[r]&&void 0===e[r+"0"]}e.exports=function(e,t,r,l){r("autotypenumbers",l.autotypenumbersDflt),"-"===r("type",(l.splomStash||{}).type)&&(!function(e,t){if("-"!==e.type)return;var r,l=e._id,s=l.charAt(0);-1!==l.indexOf("scene")&&(l=s);var c=function(e,t,r){for(var n=0;n<e.length;n++){var a=e[n];if("splom"===a.type&&a._length>0&&(a["_"+r+"axes"]||{})[t])return a;if((a[r+"axis"]||r)===t){if(o(a,r))return a;if((a[r]||[]).length||a[r+"0"])return a}}}(t,l,s);if(!c)return;if("histogram"===c.type&&s==={v:"y",h:"x"}[c.orientation||"v"])return void(e.type="linear");var u=s+"calendar",f=c[u],d={noMultiCategory:!n(c,"cartesian")||n(c,"noMultiCategory")};"box"===c.type&&c._hasPreCompStats&&s==={h:"x",v:"y"}[c.orientation||"v"]&&(d.noMultiCategory=!0);if(d.autotypenumbers=e.autotypenumbers,o(c,s)){var p=i(c),h=[];for(r=0;r<t.length;r++){var g=t[r];n(g,"box-violin")&&(g[s+"axis"]||s)===l&&(void 0!==g[p]?h.push(g[p][0]):void 0!==g.name?h.push(g.name):h.push("text"),g[u]!==f&&(f=void 0))}e.type=a(h,f,d)}else if("splom"===c.type){var v=c.dimensions[c._axesDim[l]];v.visible&&(e.type=a(v.values,f,d))}else e.type=a(c[s]||[c[s+"0"]],f,d)}(t,l.data),"-"===t.type?t.type="linear":e.type=t.type)}},function(e,t,r){"use strict";e.exports=function(e,t,r,n){if("category"===t.type){var a,i=e.categoryarray,o=Array.isArray(i)&&i.length>0;o&&(a="array");var l,s=r("categoryorder",a);"array"===s&&(l=r("categoryarray")),o||"array"!==s||(s=t.categoryorder="trace"),"trace"===s?t._initialCategories=[]:"array"===s?t._initialCategories=l.slice():(l=function(e,t){var r,n,a,i=t.dataAttr||e._id.charAt(0),o={};if(t.axData)r=t.axData;else for(r=[],n=0;n<t.data.length;n++){var l=t.data[n];l[i+"axis"]===e._id&&r.push(l)}for(n=0;n<r.length;n++){var s=r[n][i];for(a=0;a<s.length;a++){var c=s[a];null!==c&&void 0!==c&&(o[c]=1)}}return Object.keys(o)}(t,n).sort(),"category ascending"===s?t._initialCategories=l:"category descending"===s&&(t._initialCategories=l.reverse()))}}},function(e,t,r){"use strict";var n=r(34).mix,a=r(45).lightFraction,i=r(0);e.exports=function(e,t,r,o){var l=(o=o||{}).dfltColor;function s(r,n){return i.coerce2(e,t,o.attributes,r,n)}var c=s("linecolor",l),u=s("linewidth");r("showline",o.showLine||!!c||!!u)||(delete t.linecolor,delete t.linewidth);var f=s("gridcolor",n(l,o.bgColor,o.blend||a).toRgbString()),d=s("gridwidth");if(r("showgrid",o.showGrid||!!f||!!d)||(delete t.gridcolor,delete t.gridwidth),!o.noZeroLine){var p=s("zerolinecolor",l),h=s("zerolinewidth");r("zeroline",o.showGrid||!!p||!!h)||(delete t.zerolinecolor,delete t.zerolinewidth)}}},function(e,t,r){"use strict";var n=r(7),a=r(5),i=r(0),o=r(10),l=r(14);e.exports=function(e,t,r,s){var c=e._fullLayout;if(0!==t.length){var u,f,d,p;s&&(u=s());var h=n.ease(r.easing);return e._transitionData._interruptCallbacks.push((function(){return window.cancelAnimationFrame(p),p=null,function(){for(var r={},n=0;n<t.length;n++){var i=t[n],o=i.plotinfo.xaxis,l=i.plotinfo.yaxis;i.xr0&&(r[o._name+".range"]=i.xr0.slice()),i.yr0&&(r[l._name+".range"]=i.yr0.slice())}return a.call("relayout",e,r).then((function(){for(var e=0;e<t.length;e++)g(t[e].plotinfo)}))}()})),f=Date.now(),p=window.requestAnimationFrame((function n(){d=Date.now();for(var i=Math.min(1,(d-f)/r.duration),o=h(i),l=0;l<t.length;l++)v(t[l],o);d-f>r.duration?(!function(){for(var r={},n=0;n<t.length;n++){var i=t[n],o=i.plotinfo.xaxis,l=i.plotinfo.yaxis;i.xr1&&(r[o._name+".range"]=i.xr1.slice()),i.yr1&&(r[l._name+".range"]=i.yr1.slice())}u&&u(),a.call("relayout",e,r).then((function(){for(var e=0;e<t.length;e++)g(t[e].plotinfo)}))}(),p=window.cancelAnimationFrame(n)):p=window.requestAnimationFrame(n)})),Promise.resolve()}function g(e){var t=e.xaxis,r=e.yaxis;c._defs.select("#"+e.clipId+"> rect").call(o.setTranslate,0,0).call(o.setScale,1,1),e.plot.call(o.setTranslate,t._offset,r._offset).call(o.setScale,1,1);var n=e.plot.selectAll(".scatterlayer .trace");n.selectAll(".point").call(o.setPointGroupScale,1,1),n.selectAll(".textpoint").call(o.setTextPointsScale,1,1),n.call(o.hideOutsideRangePoints,e)}function v(t,r){var n=t.plotinfo,a=n.xaxis,s=n.yaxis,c=a._length,u=s._length,f=!!t.xr1,d=!!t.yr1,p=[];if(f){var h=i.simpleMap(t.xr0,a.r2l),g=i.simpleMap(t.xr1,a.r2l),v=h[1]-h[0],y=g[1]-g[0];p[0]=(h[0]*(1-r)+r*g[0]-h[0])/(h[1]-h[0])*c,p[2]=c*(1-r+r*y/v),a.range[0]=a.l2r(h[0]*(1-r)+r*g[0]),a.range[1]=a.l2r(h[1]*(1-r)+r*g[1])}else p[0]=0,p[2]=c;if(d){var m=i.simpleMap(t.yr0,s.r2l),b=i.simpleMap(t.yr1,s.r2l),x=m[1]-m[0],w=b[1]-b[0];p[1]=(m[1]*(1-r)+r*b[1]-m[1])/(m[0]-m[1])*u,p[3]=u*(1-r+r*w/x),s.range[0]=a.l2r(m[0]*(1-r)+r*b[0]),s.range[1]=s.l2r(m[1]*(1-r)+r*b[1])}else p[1]=0,p[3]=u;l.drawOne(e,a,{skipTitle:!0}),l.drawOne(e,s,{skipTitle:!0}),l.redrawComponents(e,[a._id,s._id]);var _=f?c/p[2]:1,k=d?u/p[3]:1,T=f?p[0]:0,A=d?p[1]:0,S=f?p[0]/p[2]*c:0,M=d?p[1]/p[3]*u:0,O=a._offset-S,C=s._offset-M;n.clipRect.call(o.setTranslate,T,A).call(o.setScale,1/_,1/k),n.plot.call(o.setTranslate,O,C).call(o.setScale,_,k),o.setPointGroupScale(n.zoomScalePts,1/_,1/k),o.setTextPointsScale(n.zoomScaleTxt,1/_,1/k)}l.redrawComponents(e)}},function(e,t,r){"use strict";e.exports={moduleType:"component",name:"legend",layoutAttributes:r(262),supplyLayoutDefaults:r(261),draw:r(263),style:r(265)}},function(e,t,r){"use strict";var n=r(184),a=r(577);e.exports={moduleType:"component",name:"annotations",layoutAttributes:r(128),supplyLayoutDefaults:r(578),includeBasePlot:r(186)("annotations"),calcAutorange:r(579),draw:n.draw,drawOne:n.drawOne,drawRaw:n.drawRaw,hasClickToShow:a.hasClickToShow,onClick:a.onClick,convertCoords:r(580)}},function(e,t,r){"use strict";var n=r(7),a=r(8),i=r(292),o=r(0),l=o.strScale,s=o.strRotate,c=o.strTranslate;e.exports=function(e,t,r){var o,u,f,d,p=e.node(),h=i[r.arrowhead||0],g=i[r.startarrowhead||0],v=(r.arrowwidth||1)*(r.arrowsize||1),y=(r.arrowwidth||1)*(r.startarrowsize||1),m=t.indexOf("start")>=0,b=t.indexOf("end")>=0,x=h.backoff*v+r.standoff,w=g.backoff*y+r.startstandoff;if("line"===p.nodeName){o={x:+e.attr("x1"),y:+e.attr("y1")},u={x:+e.attr("x2"),y:+e.attr("y2")};var _=o.x-u.x,k=o.y-u.y;if(d=(f=Math.atan2(k,_))+Math.PI,x&&w&&x+w>Math.sqrt(_*_+k*k))return void z();if(x){if(x*x>_*_+k*k)return void z();var T=x*Math.cos(f),A=x*Math.sin(f);u.x+=T,u.y+=A,e.attr({x2:u.x,y2:u.y})}if(w){if(w*w>_*_+k*k)return void z();var S=w*Math.cos(f),M=w*Math.sin(f);o.x-=S,o.y-=M,e.attr({x1:o.x,y1:o.y})}}else if("path"===p.nodeName){var O=p.getTotalLength(),C="";if(O<x+w)return void z();var E=p.getPointAtLength(0),L=p.getPointAtLength(.1);f=Math.atan2(E.y-L.y,E.x-L.x),o=p.getPointAtLength(Math.min(w,O)),C="0px,"+w+"px,";var P=p.getPointAtLength(O),j=p.getPointAtLength(O-.1);d=Math.atan2(P.y-j.y,P.x-j.x),u=p.getPointAtLength(Math.max(0,O-x)),C+=O-(C?w+x:x)+"px,"+O+"px",e.style("stroke-dasharray",C)}function z(){e.style("stroke-dasharray","0px,100px")}function D(t,i,o,u){t.path&&(t.noRotate&&(o=0),n.select(p.parentNode).append("path").attr({class:e.attr("class"),d:t.path,transform:c(i.x,i.y)+s(180*o/Math.PI)+l(u)}).style({fill:a.rgb(r.arrowcolor),"stroke-width":0}))}m&&D(g,o,f,y),b&&D(h,u,d,v)}},function(e,t,r){"use strict";var n=r(0),a=r(5),i=r(17).arrayEditor;function o(e,t){var r,n,a,i,o,s,c,u=e._fullLayout.annotations,f=[],d=[],p=[],h=(t||[]).length;for(r=0;r<u.length;r++)if(i=(a=u[r]).clicktoshow){for(n=0;n<h;n++)if(s=(o=t[n]).xaxis,c=o.yaxis,s._id===a.xref&&c._id===a.yref&&s.d2r(o.x)===l(a._xclick,s)&&c.d2r(o.y)===l(a._yclick,c)){(a.visible?"onout"===i?d:p:f).push(r);break}n===h&&a.visible&&"onout"===i&&d.push(r)}return{on:f,off:d,explicitOff:p}}function l(e,t){return"log"===t.type?t.l2r(e):t.d2r(e)}e.exports={hasClickToShow:function(e,t){var r=o(e,t);return r.on.length>0||r.explicitOff.length>0},onClick:function(e,t){var r,l,s=o(e,t),c=s.on,u=s.off.concat(s.explicitOff),f={},d=e._fullLayout.annotations;if(!c.length&&!u.length)return;for(r=0;r<c.length;r++)(l=i(e.layout,"annotations",d[c[r]])).modifyItem("visible",!0),n.extendFlat(f,l.getUpdateObj());for(r=0;r<u.length;r++)(l=i(e.layout,"annotations",d[u[r]])).modifyItem("visible",!1),n.extendFlat(f,l.getUpdateObj());return a.call("update",e,{},f)}}},function(e,t,r){"use strict";var n=r(0),a=r(14),i=r(50),o=r(293),l=r(128);function s(e,t,r){function i(r,a){return n.coerce(e,t,l,r,a)}var s=i("visible"),c=i("clicktoshow");if(s||c){o(e,t,r,i);for(var u=t.showarrow,f=["x","y"],d=[-10,-30],p={_fullLayout:r},h=0;h<2;h++){var g=f[h],v=a.coerceRef(e,t,p,g,"","paper");if("paper"!==v)a.getFromId(p,v)._annIndices.push(t._index);if(a.coercePosition(t,p,i,v,g,.5),u){var y="a"+g,m=a.coerceRef(e,t,p,y,"pixel",["pixel","paper"]);"pixel"!==m&&m!==v&&(m=t[y]="pixel");var b="pixel"===m?d[h]:.4;a.coercePosition(t,p,i,m,y,b)}i(g+"anchor"),i(g+"shift")}if(n.noneOrAll(e,t,["x","y"]),u&&n.noneOrAll(e,t,["ax","ay"]),c){var x=i("xclick"),w=i("yclick");t._xclick=void 0===x?t.x:a.cleanPosition(x,p,t.xref),t._yclick=void 0===w?t.y:a.cleanPosition(w,p,t.yref)}}}e.exports=function(e,t){i(e,t,{name:"annotations",handleItemDefaults:s})}},function(e,t,r){"use strict";var n=r(0),a=r(14),i=r(184).draw;function o(e){var t=e._fullLayout;n.filterVisible(t.annotations).forEach((function(t){var r=a.getFromId(e,t.xref),n=a.getFromId(e,t.yref),i=a.getRefType(t.xref),o=a.getRefType(t.yref);t._extremes={},"range"===i&&l(t,r),"range"===o&&l(t,n)}))}function l(e,t){var r,n=t._id,i=n.charAt(0),o=e[i],l=e["a"+i],s=e[i+"ref"],c=e["a"+i+"ref"],u=e["_"+i+"padplus"],f=e["_"+i+"padminus"],d={x:1,y:-1}[i]*e[i+"shift"],p=3*e.arrowsize*e.arrowwidth||0,h=p+d,g=p-d,v=3*e.startarrowsize*e.arrowwidth||0,y=v+d,m=v-d;if(c===s){var b=a.findExtremes(t,[t.r2c(o)],{ppadplus:h,ppadminus:g}),x=a.findExtremes(t,[t.r2c(l)],{ppadplus:Math.max(u,y),ppadminus:Math.max(f,m)});r={min:[b.min[0],x.min[0]],max:[b.max[0],x.max[0]]}}else y=l?y+l:y,m=l?m-l:m,r=a.findExtremes(t,[t.r2c(o)],{ppadplus:Math.max(u,h,y),ppadminus:Math.max(f,g,m)});e._extremes[n]=r}e.exports=function(e){var t=e._fullLayout;if(n.filterVisible(t.annotations).length&&e._fullData.length)return n.syncOrAsync([i,o],e)}},function(e,t,r){"use strict";var n=r(9),a=r(158);e.exports=function(e,t,r,i){t=t||{};var o="log"===r&&"linear"===t.type,l="linear"===r&&"log"===t.type;if(o||l)for(var s,c,u=e._fullLayout.annotations,f=t._id.charAt(0),d=0;d<u.length;d++)s=u[d],c="annotations["+d+"].",s[f+"ref"]===t._id&&p(f),s["a"+f+"ref"]===t._id&&p("a"+f);function p(e){var r=s[e],l=null;l=o?a(r,t.range):Math.pow(10,r),n(l)||(l=null),i(c+e,l)}}},function(e,t,r){"use strict";var n=r(5),a=r(0);e.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:r(187)}}},layoutAttributes:r(187),handleDefaults:r(582),includeBasePlot:function(e,t){var r=n.subplotsRegistry.gl3d;if(!r)return;for(var i=r.attrRegex,o=Object.keys(e),l=0;l<o.length;l++){var s=o[l];i.test(s)&&(e[s].annotations||[]).length&&(a.pushUnique(t._basePlotModules,r),a.pushUnique(t._subplots.gl3d,s))}},convert:r(583),draw:r(584)}},function(e,t,r){"use strict";var n=r(0),a=r(14),i=r(50),o=r(293),l=r(187);function s(e,t,r,i){function s(r,a){return n.coerce(e,t,l,r,a)}function c(e){var n=e+"axis",i={_fullLayout:{}};return i._fullLayout[n]=r[n],a.coercePosition(t,i,s,e,e,.5)}s("visible")&&(o(e,t,i.fullLayout,s),c("x"),c("y"),c("z"),n.noneOrAll(e,t,["x","y","z"]),t.xref="x",t.yref="y",t.zref="z",s("xanchor"),s("yanchor"),s("xshift"),s("yshift"),t.showarrow&&(t.axref="pixel",t.ayref="pixel",s("ax",-10),s("ay",-30),n.noneOrAll(e,t,["ax","ay"])))}e.exports=function(e,t,r){i(e,t,{name:"annotations",handleItemDefaults:s,fullLayout:r.fullLayout})}},function(e,t,r){"use strict";var n=r(0),a=r(14);function i(e,t){var r=t.fullSceneLayout.domain,i=t.fullLayout._size,o={pdata:null,type:"linear",autorange:!1,range:[-1/0,1/0]};e._xa={},n.extendFlat(e._xa,o),a.setConvert(e._xa),e._xa._offset=i.l+r.x[0]*i.w,e._xa.l2p=function(){return.5*(1+e._pdata[0]/e._pdata[3])*i.w*(r.x[1]-r.x[0])},e._ya={},n.extendFlat(e._ya,o),a.setConvert(e._ya),e._ya._offset=i.t+(1-r.y[1])*i.h,e._ya.l2p=function(){return.5*(1-e._pdata[1]/e._pdata[3])*i.h*(r.y[1]-r.y[0])}}e.exports=function(e){for(var t=e.fullSceneLayout.annotations,r=0;r<t.length;r++)i(t[r],e);e.fullLayout._infolayer.selectAll(".annotation-"+e.id).remove()}},function(e,t,r){"use strict";var n=r(184).drawRaw,a=r(585),i=["x","y","z"];e.exports=function(e){for(var t=e.fullSceneLayout,r=e.dataScale,o=t.annotations,l=0;l<o.length;l++){for(var s=o[l],c=!1,u=0;u<3;u++){var f=i[u],d=s[f],p=t[f+"axis"].r2fraction(d);if(p<0||p>1){c=!0;break}}c?e.fullLayout._infolayer.select(".annotation-"+e.id+'[data-index="'+l+'"]').remove():(s._pdata=a(e.glplot.cameraParams,[t.xaxis.r2l(s.x)*r[0],t.yaxis.r2l(s.y)*r[1],t.zaxis.r2l(s.z)*r[2]]),n(e.graphDiv,s,l,e.id,s._xa,s._ya))}}},function(e,t,r){"use strict";function n(e,t){var r,n,a=[0,0,0,0];for(r=0;r<4;++r)for(n=0;n<4;++n)a[n]+=e[4*r+n]*t[r];return a}e.exports=function(e,t){return n(e.projection,n(e.view,n(e.model,[t[0],t[1],t[2],1])))}},function(e,t,r){"use strict";var n=r(271);e.exports={moduleType:"component",name:"shapes",layoutAttributes:r(294),supplyLayoutDefaults:r(587),supplyDrawNewShapeDefaults:r(588),includeBasePlot:r(186)("shapes"),calcAutorange:r(589),draw:n.draw,drawOne:n.drawOne}},function(e,t,r){"use strict";var n=r(0),a=r(14),i=r(50),o=r(294),l=r(179);function s(e,t,r){function i(r,a){return n.coerce(e,t,o,r,a)}if(i("visible")){var s=i("path"),c=i("type",s?"path":"rect");"path"!==t.type&&delete t.path,i("editable"),i("layer"),i("opacity"),i("fillcolor"),i("fillrule"),i("line.width")&&(i("line.color"),i("line.dash"));for(var u=i("xsizemode"),f=i("ysizemode"),d=["x","y"],p=0;p<2;p++){var h,g,v,y=d[p],m=y+"anchor",b="x"===y?u:f,x={_fullLayout:r},w=a.coerceRef(e,t,x,y,void 0,"paper");if("range"===a.getRefType(w)?((h=a.getFromId(x,w))._shapeIndices.push(t._index),v=l.rangeToShapePosition(h),g=l.shapePositionToRange(h)):g=v=n.identity,"path"!==c){var _=y+"0",k=y+"1",T=e[_],A=e[k];e[_]=g(e[_],!0),e[k]=g(e[k],!0),"pixel"===b?(i(_,0),i(k,10)):(a.coercePosition(t,x,i,w,_,.25),a.coercePosition(t,x,i,w,k,.75)),t[_]=v(t[_]),t[k]=v(t[k]),e[_]=T,e[k]=A}if("pixel"===b){var S=e[m];e[m]=g(e[m],!0),a.coercePosition(t,x,i,w,m,.25),t[m]=v(t[m]),e[m]=S}}"path"===c?i("path"):n.noneOrAll(e,t,["x0","x1","y0","y1"])}}e.exports=function(e,t){i(e,t,{name:"shapes",handleItemDefaults:s})}},function(e,t,r){"use strict";var n=r(8);e.exports=function(e,t,r){if(r("newshape.drawdirection"),r("newshape.layer"),r("newshape.fillcolor"),r("newshape.fillrule"),r("newshape.opacity"),r("newshape.line.width")){var a=(e||{}).plot_bgcolor||"#FFF";r("newshape.line.color",n.contrast(a)),r("newshape.line.dash")}r("activeshape.fillcolor"),r("activeshape.opacity")}},function(e,t,r){"use strict";var n=r(0),a=r(14),i=r(178),o=r(179);function l(e){return c(e.line.width,e.xsizemode,e.x0,e.x1,e.path,!1)}function s(e){return c(e.line.width,e.ysizemode,e.y0,e.y1,e.path,!0)}function c(e,t,r,a,l,s){var c=e/2,u=s;if("pixel"===t){var f=l?o.extractPathCoords(l,s?i.paramIsY:i.paramIsX):[r,a],d=n.aggNums(Math.max,null,f),p=n.aggNums(Math.min,null,f),h=p<0?Math.abs(p)+c:c,g=d>0?d+c:c;return{ppad:c,ppadplus:u?h:g,ppadminus:u?g:h}}return{ppad:c}}function u(e,t,r,n,a){var l="category"===e.type||"multicategory"===e.type?e.r2c:e.d2c;if(void 0!==t)return[l(t),l(r)];if(n){var s,c,u,f,d=1/0,p=-1/0,h=n.match(i.segmentRE);for("date"===e.type&&(l=o.decodeDate(l)),s=0;s<h.length;s++)void 0!==(c=a[h[s].charAt(0)].drawn)&&(!(u=h[s].substr(1).match(i.paramRE))||u.length<c||((f=l(u[c]))<d&&(d=f),f>p&&(p=f)));return p>=d?[d,p]:void 0}}e.exports=function(e){var t=e._fullLayout,r=n.filterVisible(t.shapes);if(r.length&&e._fullData.length)for(var o=0;o<r.length;o++){var c,f,d=r[o];d._extremes={};var p=a.getRefType(d.xref),h=a.getRefType(d.yref);if("paper"!==d.xref&&"domain"!==p){var g="pixel"===d.xsizemode?d.xanchor:d.x0,v="pixel"===d.xsizemode?d.xanchor:d.x1;(f=u(c=a.getFromId(e,d.xref),g,v,d.path,i.paramIsX))&&(d._extremes[c._id]=a.findExtremes(c,f,l(d)))}if("paper"!==d.yref&&"domain"!==h){var y="pixel"===d.ysizemode?d.yanchor:d.y0,m="pixel"===d.ysizemode?d.yanchor:d.y1;(f=u(c=a.getFromId(e,d.yref),y,m,d.path,i.paramIsY))&&(d._extremes[c._id]=a.findExtremes(c,f,s(d)))}}}},function(e,t,r){"use strict";e.exports={moduleType:"component",name:"images",layoutAttributes:r(295),supplyLayoutDefaults:r(591),includeBasePlot:r(186)("images"),draw:r(592),convertCoords:r(593)}},function(e,t,r){"use strict";var n=r(0),a=r(14),i=r(50),o=r(295);function l(e,t,r){function i(r,a){return n.coerce(e,t,o,r,a)}var l=i("source");if(!i("visible",!!l))return t;i("layer"),i("xanchor"),i("yanchor"),i("sizex"),i("sizey"),i("sizing"),i("opacity");for(var s={_fullLayout:r},c=["x","y"],u=0;u<2;u++){var f=c[u],d=a.coerceRef(e,t,s,f,"paper",void 0);if("paper"!==d)a.getFromId(s,d)._imgIndices.push(t._index);a.coercePosition(t,s,i,d,f,0)}return t}e.exports=function(e,t){i(e,t,{name:"images",handleItemDefaults:l})}},function(e,t,r){"use strict";var n=r(7),a=r(10),i=r(14),o=r(21),l=r(74);e.exports=function(e){var t,r,s=e._fullLayout,c=[],u={},f=[];for(r=0;r<s.images.length;r++){var d=s.images[r];if(d.visible)if("below"===d.layer&&"paper"!==d.xref&&"paper"!==d.yref){t=o.ref2id(d.xref)+o.ref2id(d.yref);var p=s._plots[t];if(!p){f.push(d);continue}p.mainplot&&(t=p.mainplot.id),u[t]||(u[t]=[]),u[t].push(d)}else"above"===d.layer?c.push(d):f.push(d)}var h={left:{sizing:"xMin",offset:0},center:{sizing:"xMid",offset:-.5},right:{sizing:"xMax",offset:-1}},g={top:{sizing:"YMin",offset:0},middle:{sizing:"YMid",offset:-.5},bottom:{sizing:"YMax",offset:-1}};function v(t){var r=n.select(this);if(this._imgSrc!==t.source)if(r.attr("xmlns",l.svg),t.source&&"data:"===t.source.slice(0,5))r.attr("xlink:href",t.source),this._imgSrc=t.source;else{var a=new Promise(function(e){var n=new Image;function a(){r.remove(),e()}this.img=n,n.setAttribute("crossOrigin","anonymous"),n.onerror=a,n.onload=function(){var t=document.createElement("canvas");t.width=this.width,t.height=this.height,t.getContext("2d").drawImage(this,0,0);var n=t.toDataURL("image/png");r.attr("xlink:href",n),e()},r.on("error",a),n.src=t.source,this._imgSrc=t.source}.bind(this));e._promises.push(a)}}function y(t){var r,o,l=n.select(this),c=i.getFromId(e,t.xref),u=i.getFromId(e,t.yref),f="domain"===i.getRefType(t.xref),d="domain"===i.getRefType(t.yref),p=s._size;r=void 0!==c?"string"===typeof t.xref&&f?c._length*t.sizex:Math.abs(c.l2p(t.sizex)-c.l2p(0)):t.sizex*p.w,o=void 0!==u?"string"===typeof t.yref&&d?u._length*t.sizey:Math.abs(u.l2p(t.sizey)-u.l2p(0)):t.sizey*p.h;var v,y,m=r*h[t.xanchor].offset,b=o*g[t.yanchor].offset,x=h[t.xanchor].sizing+g[t.yanchor].sizing;switch(v=void 0!==c?"string"===typeof t.xref&&f?c._length*t.x+c._offset:c.r2p(t.x)+c._offset:t.x*p.w+p.l,v+=m,y=void 0!==u?"string"===typeof t.yref&&d?u._length*(1-t.y)+u._offset:u.r2p(t.y)+u._offset:p.h-t.y*p.h+p.t,y+=b,t.sizing){case"fill":x+=" slice";break;case"stretch":x="none"}l.attr({x:v,y:y,width:r,height:o,preserveAspectRatio:x,opacity:t.opacity});var w=(c&&"domain"!==i.getRefType(t.xref)?c._id:"")+(u&&"domain"!==i.getRefType(t.yref)?u._id:"");a.setClipUrl(l,w?"clip"+s._uid+w:null,e)}var m=s._imageLowerLayer.selectAll("image").data(f),b=s._imageUpperLayer.selectAll("image").data(c);m.enter().append("image"),b.enter().append("image"),m.exit().remove(),b.exit().remove(),m.each((function(e){v.bind(this)(e),y.bind(this)(e)})),b.each((function(e){v.bind(this)(e),y.bind(this)(e)}));var x=Object.keys(s._plots);for(r=0;r<x.length;r++){t=x[r];var w=s._plots[t];if(w.imagelayer){var _=w.imagelayer.selectAll("image").data(u[t]||[]);_.enter().append("image"),_.exit().remove(),_.each((function(e){v.bind(this)(e),y.bind(this)(e)}))}}}},function(e,t,r){"use strict";var n=r(9),a=r(158);e.exports=function(e,t,r,i){t=t||{};var o="log"===r&&"linear"===t.type,l="linear"===r&&"log"===t.type;if(o||l)for(var s,c,u=e._fullLayout.images,f=t._id.charAt(0),d=0;d<u.length;d++)if(c="images["+d+"].",(s=u[d])[f+"ref"]===t._id){var p=s[f],h=s["size"+f],g=null,v=null;if(o){g=a(p,t.range);var y=h/Math.pow(10,g)/2;v=2*Math.log(y+Math.sqrt(1+y*y))/Math.LN10}else v=(g=Math.pow(10,p))*(Math.pow(10,h/2)-Math.pow(10,-h/2));n(g)?n(v)||(v=null):(g=null,v=null),i(c+f,g),i(c+"size"+f,v)}}},function(e,t,r){"use strict";var n=r(188);e.exports={moduleType:"component",name:n.name,layoutAttributes:r(296),supplyLayoutDefaults:r(595),draw:r(596)}},function(e,t,r){"use strict";var n=r(0),a=r(50),i=r(296),o=r(188).name,l=i.buttons;function s(e,t,r){function o(r,a){return n.coerce(e,t,i,r,a)}o("visible",a(e,t,{name:"buttons",handleItemDefaults:c}).length>0)&&(o("active"),o("direction"),o("type"),o("showactive"),o("x"),o("y"),n.noneOrAll(e,t,["x","y"]),o("xanchor"),o("yanchor"),o("pad.t"),o("pad.r"),o("pad.b"),o("pad.l"),n.coerceFont(o,"font",r.font),o("bgcolor",r.paper_bgcolor),o("bordercolor"),o("borderwidth"))}function c(e,t){function r(r,a){return n.coerce(e,t,l,r,a)}r("visible","skip"===e.method||Array.isArray(e.args))&&(r("method"),r("args"),r("args2"),r("label"),r("execute"))}e.exports=function(e,t){a(e,t,{name:o,handleItemDefaults:s})}},function(e,t,r){"use strict";var n=r(7),a=r(20),i=r(8),o=r(10),l=r(0),s=r(25),c=r(17).arrayEditor,u=r(33).LINE_SPACING,f=r(188),d=r(597);function p(e){return e._index}function h(e,t){return+e.attr(f.menuIndexAttrName)===t._index}function g(e,t,r,n,a,i,o,l){t.active=o,c(e.layout,f.name,t).applyUpdate("active",o),"buttons"===t.type?y(e,n,null,null,t):"dropdown"===t.type&&(a.attr(f.menuIndexAttrName,"-1"),v(e,n,a,i,t),l||y(e,n,a,i,t))}function v(e,t,r,n,a){var i=l.ensureSingle(t,"g",f.headerClassName,(function(e){e.style("pointer-events","all")})),s=a._dims,c=a.active,u=a.buttons[c]||f.blankHeaderOpts,d={y:a.pad.t,yPad:0,x:a.pad.l,xPad:0,index:0},p={width:s.headerWidth,height:s.headerHeight};i.call(m,a,u,e).call(S,a,d,p),l.ensureSingle(t,"text",f.headerArrowClassName,(function(e){e.attr("text-anchor","end").call(o.font,a.font).text(f.arrowSymbol[a.direction])})).attr({x:s.headerWidth-f.arrowOffsetX+a.pad.l,y:s.headerHeight/2+f.textOffsetY+a.pad.t}),i.on("click",(function(){r.call(M,String(h(r,a)?-1:a._index)),y(e,t,r,n,a)})),i.on("mouseover",(function(){i.call(_)})),i.on("mouseout",(function(){i.call(k,a)})),o.setTranslate(t,s.lx,s.ly)}function y(e,t,r,i,o){r||(r=t).attr("pointer-events","all");var s=function(e){return-1===+e.attr(f.menuIndexAttrName)}(r)&&"buttons"!==o.type?[]:o.buttons,c="dropdown"===o.type?f.dropdownButtonClassName:f.buttonClassName,u=r.selectAll("g."+c).data(l.filterVisible(s)),d=u.enter().append("g").classed(c,!0),p=u.exit();"dropdown"===o.type?(d.attr("opacity","0").transition().attr("opacity","1"),p.transition().attr("opacity","0").remove()):p.remove();var h=0,v=0,y=o._dims,b=-1!==["up","down"].indexOf(o.direction);"dropdown"===o.type&&(b?v=y.headerHeight+f.gapButtonHeader:h=y.headerWidth+f.gapButtonHeader),"dropdown"===o.type&&"up"===o.direction&&(v=-f.gapButtonHeader+f.gapButton-y.openHeight),"dropdown"===o.type&&"left"===o.direction&&(h=-f.gapButtonHeader+f.gapButton-y.openWidth);var x={x:y.lx+h+o.pad.l,y:y.ly+v+o.pad.t,yPad:f.gapButton,xPad:f.gapButton,index:0},T={l:x.x+o.borderwidth,t:x.y+o.borderwidth};u.each((function(l,s){var c=n.select(this);c.call(m,o,l,e).call(S,o,x),c.on("click",(function(){n.event.defaultPrevented||(l.execute&&(l.args2&&o.active===s?(g(e,o,0,t,r,i,-1),a.executeAPICommand(e,l.method,l.args2)):(g(e,o,0,t,r,i,s),a.executeAPICommand(e,l.method,l.args))),e.emit("plotly_buttonclicked",{menu:o,button:l,active:o.active}))})),c.on("mouseover",(function(){c.call(_)})),c.on("mouseout",(function(){c.call(k,o),u.call(w,o)}))})),u.call(w,o),b?(T.w=Math.max(y.openWidth,y.headerWidth),T.h=x.y-T.t):(T.w=x.x-T.l,T.h=Math.max(y.openHeight,y.headerHeight)),T.direction=o.direction,i&&(u.size()?function(e,t,r,n,a,i){var o,l,s,c=a.direction,u="up"===c||"down"===c,d=a._dims,p=a.active;if(u)for(l=0,s=0;s<p;s++)l+=d.heights[s]+f.gapButton;else for(o=0,s=0;s<p;s++)o+=d.widths[s]+f.gapButton;n.enable(i,o,l),n.hbar&&n.hbar.attr("opacity","0").transition().attr("opacity","1");n.vbar&&n.vbar.attr("opacity","0").transition().attr("opacity","1")}(0,0,0,i,o,T):function(e){var t=!!e.hbar,r=!!e.vbar;t&&e.hbar.transition().attr("opacity","0").each("end",(function(){t=!1,r||e.disable()}));r&&e.vbar.transition().attr("opacity","0").each("end",(function(){r=!1,t||e.disable()}))}(i))}function m(e,t,r,n){e.call(b,t).call(x,t,r,n)}function b(e,t){l.ensureSingle(e,"rect",f.itemRectClassName,(function(e){e.attr({rx:f.rx,ry:f.ry,"shape-rendering":"crispEdges"})})).call(i.stroke,t.bordercolor).call(i.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px")}function x(e,t,r,n){var a=l.ensureSingle(e,"text",f.itemTextClassName,(function(e){e.attr({"text-anchor":"start","data-notex":1})})),i=r.label,c=n._fullLayout._meta;c&&(i=l.templateString(i,c)),a.call(o.font,t.font).text(i).call(s.convertToTspans,n)}function w(e,t){var r=t.active;e.each((function(e,a){var o=n.select(this);a===r&&t.showactive&&o.select("rect."+f.itemRectClassName).call(i.fill,f.activeColor)}))}function _(e){e.select("rect."+f.itemRectClassName).call(i.fill,f.hoverColor)}function k(e,t){e.select("rect."+f.itemRectClassName).call(i.fill,t.bgcolor)}function T(e,t){var r=t._dims={width1:0,height1:0,heights:[],widths:[],totalWidth:0,totalHeight:0,openWidth:0,openHeight:0,lx:0,ly:0},i=o.tester.selectAll("g."+f.dropdownButtonClassName).data(l.filterVisible(t.buttons));i.enter().append("g").classed(f.dropdownButtonClassName,!0);var c=-1!==["up","down"].indexOf(t.direction);i.each((function(a,i){var l=n.select(this);l.call(m,t,a,e);var d=l.select("."+f.itemTextClassName),p=d.node()&&o.bBox(d.node()).width,h=Math.max(p+f.textPadX,f.minWidth),g=t.font.size*u,v=s.lineCount(d),y=Math.max(g*v,f.minHeight)+f.textOffsetY;y=Math.ceil(y),h=Math.ceil(h),r.widths[i]=h,r.heights[i]=y,r.height1=Math.max(r.height1,y),r.width1=Math.max(r.width1,h),c?(r.totalWidth=Math.max(r.totalWidth,h),r.openWidth=r.totalWidth,r.totalHeight+=y+f.gapButton,r.openHeight+=y+f.gapButton):(r.totalWidth+=h+f.gapButton,r.openWidth+=h+f.gapButton,r.totalHeight=Math.max(r.totalHeight,y),r.openHeight=r.totalHeight)})),c?r.totalHeight-=f.gapButton:r.totalWidth-=f.gapButton,r.headerWidth=r.width1+f.arrowPadX,r.headerHeight=r.height1,"dropdown"===t.type&&(c?(r.width1+=f.arrowPadX,r.totalHeight=r.height1):r.totalWidth=r.width1,r.totalWidth+=f.arrowPadX),i.remove();var d=r.totalWidth+t.pad.l+t.pad.r,p=r.totalHeight+t.pad.t+t.pad.b,h=e._fullLayout._size;r.lx=h.l+h.w*t.x,r.ly=h.t+h.h*(1-t.y);var g="left";l.isRightAnchor(t)&&(r.lx-=d,g="right"),l.isCenterAnchor(t)&&(r.lx-=d/2,g="center");var v="top";l.isBottomAnchor(t)&&(r.ly-=p,v="bottom"),l.isMiddleAnchor(t)&&(r.ly-=p/2,v="middle"),r.totalWidth=Math.ceil(r.totalWidth),r.totalHeight=Math.ceil(r.totalHeight),r.lx=Math.round(r.lx),r.ly=Math.round(r.ly),a.autoMargin(e,A(t),{x:t.x,y:t.y,l:d*({right:1,center:.5}[g]||0),r:d*({left:1,center:.5}[g]||0),b:p*({top:1,middle:.5}[v]||0),t:p*({bottom:1,middle:.5}[v]||0)})}function A(e){return f.autoMarginIdRoot+e._index}function S(e,t,r,n){n=n||{};var a=e.select("."+f.itemRectClassName),i=e.select("."+f.itemTextClassName),l=t.borderwidth,c=r.index,d=t._dims;o.setTranslate(e,l+r.x,l+r.y);var p=-1!==["up","down"].indexOf(t.direction),h=n.height||(p?d.heights[c]:d.height1);a.attr({x:0,y:0,width:n.width||(p?d.width1:d.widths[c]),height:h});var g=t.font.size*u,v=(s.lineCount(i)-1)*g/2;s.positionText(i,f.textOffsetX,h/2-v+f.textOffsetY),p?r.y+=d.heights[c]+r.yPad:r.x+=d.widths[c]+r.xPad,r.index++}function M(e,t){e.attr(f.menuIndexAttrName,t||"-1").selectAll("g."+f.dropdownButtonClassName).remove()}e.exports=function(e){var t=e._fullLayout,r=l.filterVisible(t[f.name]);function i(t){a.autoMargin(e,A(t))}var o=t._menulayer.selectAll("g."+f.containerClassName).data(r.length>0?[0]:[]);if(o.enter().append("g").classed(f.containerClassName,!0).style("cursor","pointer"),o.exit().each((function(){n.select(this).selectAll("g."+f.headerGroupClassName).each(i)})).remove(),0!==r.length){var s=o.selectAll("g."+f.headerGroupClassName).data(r,p);s.enter().append("g").classed(f.headerGroupClassName,!0);for(var c=l.ensureSingle(o,"g",f.dropdownButtonGroupClassName,(function(e){e.style("pointer-events","all")})),u=0;u<r.length;u++){var m=r[u];T(e,m)}var b="updatemenus"+t._uid,x=new d(e,c,b);s.enter().size()&&(c.node().parentNode.appendChild(c.node()),c.call(M)),s.exit().each((function(e){c.call(M),i(e)})).remove(),s.each((function(t){var r=n.select(this),i="dropdown"===t.type?c:null;a.manageCommandObserver(e,t,t.buttons,(function(n){g(e,t,t.buttons[n.index],r,i,x,n.index,!0)})),"dropdown"===t.type?(v(e,r,c,x,t),h(c,t)&&y(e,r,c,x,t)):y(e,r,null,null,t)}))}}},function(e,t,r){"use strict";e.exports=l;var n=r(7),a=r(8),i=r(10),o=r(0);function l(e,t,r){this.gd=e,this.container=t,this.id=r,this.position=null,this.translateX=null,this.translateY=null,this.hbar=null,this.vbar=null,this.bg=this.container.selectAll("rect.scrollbox-bg").data([0]),this.bg.exit().on(".drag",null).on("wheel",null).remove(),this.bg.enter().append("rect").classed("scrollbox-bg",!0).style("pointer-events","all").attr({opacity:0,x:0,y:0,width:0,height:0})}l.barWidth=2,l.barLength=20,l.barRadius=2,l.barPad=1,l.barColor="#808BA4",l.prototype.enable=function(e,t,r){var o=this.gd._fullLayout,s=o.width,c=o.height;this.position=e;var u,f,d,p,h=this.position.l,g=this.position.w,v=this.position.t,y=this.position.h,m=this.position.direction,b="down"===m,x="left"===m,w="up"===m,_=g,k=y;b||x||"right"===m||w||(this.position.direction="down",b=!0),b||w?(f=(u=h)+_,b?(d=v,k=(p=Math.min(d+k,c))-d):k=(p=v+k)-(d=Math.max(p-k,0))):(p=(d=v)+k,x?_=(f=h+_)-(u=Math.max(f-_,0)):(u=h,_=(f=Math.min(u+_,s))-u)),this._box={l:u,t:d,w:_,h:k};var T=g>_,A=l.barLength+2*l.barPad,S=l.barWidth+2*l.barPad,M=h,O=v+y;O+S>c&&(O=c-S);var C=this.container.selectAll("rect.scrollbar-horizontal").data(T?[0]:[]);C.exit().on(".drag",null).remove(),C.enter().append("rect").classed("scrollbar-horizontal",!0).call(a.fill,l.barColor),T?(this.hbar=C.attr({rx:l.barRadius,ry:l.barRadius,x:M,y:O,width:A,height:S}),this._hbarXMin=M+A/2,this._hbarTranslateMax=_-A):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var E=y>k,L=l.barWidth+2*l.barPad,P=l.barLength+2*l.barPad,j=h+g,z=v;j+L>s&&(j=s-L);var D=this.container.selectAll("rect.scrollbar-vertical").data(E?[0]:[]);D.exit().on(".drag",null).remove(),D.enter().append("rect").classed("scrollbar-vertical",!0).call(a.fill,l.barColor),E?(this.vbar=D.attr({rx:l.barRadius,ry:l.barRadius,x:j,y:z,width:L,height:P}),this._vbarYMin=z+P/2,this._vbarTranslateMax=k-P):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var I=this.id,N=u-.5,R=E?f+L+.5:f+.5,F=d-.5,B=T?p+S+.5:p+.5,U=o._topdefs.selectAll("#"+I).data(T||E?[0]:[]);if(U.exit().remove(),U.enter().append("clipPath").attr("id",I).append("rect"),T||E?(this._clipRect=U.select("rect").attr({x:Math.floor(N),y:Math.floor(F),width:Math.ceil(R)-Math.floor(N),height:Math.ceil(B)-Math.floor(F)}),this.container.call(i.setClipUrl,I,this.gd),this.bg.attr({x:h,y:v,width:g,height:y})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(i.setClipUrl,null),delete this._clipRect),T||E){var H=n.behavior.drag().on("dragstart",(function(){n.event.sourceEvent.preventDefault()})).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(H);var V=n.behavior.drag().on("dragstart",(function(){n.event.sourceEvent.preventDefault(),n.event.sourceEvent.stopPropagation()})).on("drag",this._onBarDrag.bind(this));T&&this.hbar.on(".drag",null).call(V),E&&this.vbar.on(".drag",null).call(V)}this.setTranslate(t,r)},l.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(i.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(".drag",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(".drag",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)},l.prototype._onBoxDrag=function(){var e=this.translateX,t=this.translateY;this.hbar&&(e-=n.event.dx),this.vbar&&(t-=n.event.dy),this.setTranslate(e,t)},l.prototype._onBoxWheel=function(){var e=this.translateX,t=this.translateY;this.hbar&&(e+=n.event.deltaY),this.vbar&&(t+=n.event.deltaY),this.setTranslate(e,t)},l.prototype._onBarDrag=function(){var e=this.translateX,t=this.translateY;if(this.hbar){var r=e+this._hbarXMin,a=r+this._hbarTranslateMax;e=(o.constrain(n.event.x,r,a)-r)/(a-r)*(this.position.w-this._box.w)}if(this.vbar){var i=t+this._vbarYMin,l=i+this._vbarTranslateMax;t=(o.constrain(n.event.y,i,l)-i)/(l-i)*(this.position.h-this._box.h)}this.setTranslate(e,t)},l.prototype.setTranslate=function(e,t){var r=this.position.w-this._box.w,n=this.position.h-this._box.h;if(e=o.constrain(e||0,0,r),t=o.constrain(t||0,0,n),this.translateX=e,this.translateY=t,this.container.call(i.setTranslate,this._box.l-this.position.l-e,this._box.t-this.position.t-t),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+e-.5),y:Math.floor(this.position.t+t-.5)}),this.hbar){var a=e/r;this.hbar.call(i.setTranslate,e+a*this._hbarTranslateMax,t)}if(this.vbar){var l=t/n;this.vbar.call(i.setTranslate,e,t+l*this._vbarTranslateMax)}}},function(e,t,r){"use strict";var n=r(129);e.exports={moduleType:"component",name:n.name,layoutAttributes:r(297),supplyLayoutDefaults:r(599),draw:r(600)}},function(e,t,r){"use strict";var n=r(0),a=r(50),i=r(297),o=r(129).name,l=i.steps;function s(e,t,r){function o(r,a){return n.coerce(e,t,i,r,a)}for(var l=a(e,t,{name:"steps",handleItemDefaults:c}),s=0,u=0;u<l.length;u++)l[u].visible&&s++;if(s<2?t.visible=!1:o("visible")){t._stepCount=s;var f=t._visibleSteps=n.filterVisible(l);(l[o("active")]||{}).visible||(t.active=f[0]._index),o("x"),o("y"),n.noneOrAll(e,t,["x","y"]),o("xanchor"),o("yanchor"),o("len"),o("lenmode"),o("pad.t"),o("pad.r"),o("pad.b"),o("pad.l"),n.coerceFont(o,"font",r.font),o("currentvalue.visible")&&(o("currentvalue.xanchor"),o("currentvalue.prefix"),o("currentvalue.suffix"),o("currentvalue.offset"),n.coerceFont(o,"currentvalue.font",t.font)),o("transition.duration"),o("transition.easing"),o("bgcolor"),o("activebgcolor"),o("bordercolor"),o("borderwidth"),o("ticklen"),o("tickwidth"),o("tickcolor"),o("minorticklen")}}function c(e,t){function r(r,a){return n.coerce(e,t,l,r,a)}if("skip"===e.method||Array.isArray(e.args)?r("visible"):t.visible=!1){r("method"),r("args");var a=r("label","step-"+t._index);r("value",a),r("execute")}}e.exports=function(e,t){a(e,t,{name:o,handleItemDefaults:s})}},function(e,t,r){"use strict";var n=r(7),a=r(20),i=r(8),o=r(10),l=r(0),s=l.strTranslate,c=r(25),u=r(17).arrayEditor,f=r(129),d=r(33),p=d.LINE_SPACING,h=d.FROM_TL,g=d.FROM_BR;function v(e){return f.autoMarginIdRoot+e._index}function y(e){return e._index}function m(e,t){var r=o.tester.selectAll("g."+f.labelGroupClass).data(t._visibleSteps);r.enter().append("g").classed(f.labelGroupClass,!0);var i=0,s=0;r.each((function(e){var r=w(n.select(this),{step:e},t).node();if(r){var a=o.bBox(r);s=Math.max(s,a.height),i=Math.max(i,a.width)}})),r.remove();var u=t._dims={};u.inputAreaWidth=Math.max(f.railWidth,f.gripHeight);var d=e._fullLayout._size;u.lx=d.l+d.w*t.x,u.ly=d.t+d.h*(1-t.y),"fraction"===t.lenmode?u.outerLength=Math.round(d.w*t.len):u.outerLength=t.len,u.inputAreaStart=0,u.inputAreaLength=Math.round(u.outerLength-t.pad.l-t.pad.r);var p=(u.inputAreaLength-2*f.stepInset)/(t._stepCount-1),y=i+f.labelPadding;if(u.labelStride=Math.max(1,Math.ceil(y/p)),u.labelHeight=s,u.currentValueMaxWidth=0,u.currentValueHeight=0,u.currentValueTotalHeight=0,u.currentValueMaxLines=1,t.currentvalue.visible){var m=o.tester.append("g");r.each((function(e){var r=b(m,t,e.label),n=r.node()&&o.bBox(r.node())||{width:0,height:0},a=c.lineCount(r);u.currentValueMaxWidth=Math.max(u.currentValueMaxWidth,Math.ceil(n.width)),u.currentValueHeight=Math.max(u.currentValueHeight,Math.ceil(n.height)),u.currentValueMaxLines=Math.max(u.currentValueMaxLines,a)})),u.currentValueTotalHeight=u.currentValueHeight+t.currentvalue.offset,m.remove()}u.height=u.currentValueTotalHeight+f.tickOffset+t.ticklen+f.labelOffset+u.labelHeight+t.pad.t+t.pad.b;var x="left";l.isRightAnchor(t)&&(u.lx-=u.outerLength,x="right"),l.isCenterAnchor(t)&&(u.lx-=u.outerLength/2,x="center");var _="top";l.isBottomAnchor(t)&&(u.ly-=u.height,_="bottom"),l.isMiddleAnchor(t)&&(u.ly-=u.height/2,_="middle"),u.outerLength=Math.ceil(u.outerLength),u.height=Math.ceil(u.height),u.lx=Math.round(u.lx),u.ly=Math.round(u.ly);var k={y:t.y,b:u.height*g[_],t:u.height*h[_]};"fraction"===t.lenmode?(k.l=0,k.xl=t.x-t.len*h[x],k.r=0,k.xr=t.x+t.len*g[x]):(k.x=t.x,k.l=u.outerLength*h[x],k.r=u.outerLength*g[x]),a.autoMargin(e,v(t),k)}function b(e,t,r){if(t.currentvalue.visible){var n,a,i=t._dims;switch(t.currentvalue.xanchor){case"right":n=i.inputAreaLength-f.currentValueInset-i.currentValueMaxWidth,a="left";break;case"center":n=.5*i.inputAreaLength,a="middle";break;default:n=f.currentValueInset,a="left"}var s=l.ensureSingle(e,"text",f.labelClass,(function(e){e.attr({"text-anchor":a,"data-notex":1})})),u=t.currentvalue.prefix?t.currentvalue.prefix:"";if("string"===typeof r)u+=r;else{var d=t.steps[t.active].label,h=t._gd._fullLayout._meta;h&&(d=l.templateString(d,h)),u+=d}t.currentvalue.suffix&&(u+=t.currentvalue.suffix),s.call(o.font,t.currentvalue.font).text(u).call(c.convertToTspans,t._gd);var g=c.lineCount(s),v=(i.currentValueMaxLines+1-g)*t.currentvalue.font.size*p;return c.positionText(s,n,v),s}}function x(e,t,r){l.ensureSingle(e,"rect",f.gripRectClass,(function(n){n.call(A,t,e,r).style("pointer-events","all")})).attr({width:f.gripWidth,height:f.gripHeight,rx:f.gripRadius,ry:f.gripRadius}).call(i.stroke,r.bordercolor).call(i.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px")}function w(e,t,r){var n=l.ensureSingle(e,"text",f.labelClass,(function(e){e.attr({"text-anchor":"middle","data-notex":1})})),a=t.step.label,i=r._gd._fullLayout._meta;return i&&(a=l.templateString(a,i)),n.call(o.font,r.font).text(a).call(c.convertToTspans,r._gd),n}function _(e,t){var r=l.ensureSingle(e,"g",f.labelsClass),a=t._dims,i=r.selectAll("g."+f.labelGroupClass).data(a.labelSteps);i.enter().append("g").classed(f.labelGroupClass,!0),i.exit().remove(),i.each((function(e){var r=n.select(this);r.call(w,e,t),o.setTranslate(r,O(t,e.fraction),f.tickOffset+t.ticklen+t.font.size*p+f.labelOffset+a.currentValueTotalHeight)}))}function k(e,t,r,n,a){var i=Math.round(n*(r._stepCount-1)),o=r._visibleSteps[i]._index;o!==r.active&&T(e,t,r,o,!0,a)}function T(e,t,r,n,i,o){var l=r.active;r.active=n,u(e.layout,f.name,r).applyUpdate("active",n);var s=r.steps[r.active];t.call(M,r,o),t.call(b,r),e.emit("plotly_sliderchange",{slider:r,step:r.steps[r.active],interaction:i,previousActive:l}),s&&s.method&&i&&(t._nextMethod?(t._nextMethod.step=s,t._nextMethod.doCallback=i,t._nextMethod.doTransition=o):(t._nextMethod={step:s,doCallback:i,doTransition:o},t._nextMethodRaf=window.requestAnimationFrame((function(){var r=t._nextMethod.step;r.method&&(r.execute&&a.executeAPICommand(e,r.method,r.args),t._nextMethod=null,t._nextMethodRaf=null)}))))}function A(e,t,r){var a=r.node(),o=n.select(t);function l(){return r.data()[0]}function s(){var e=l();t.emit("plotly_sliderstart",{slider:e});var s=r.select("."+f.gripRectClass);n.event.stopPropagation(),n.event.preventDefault(),s.call(i.fill,e.activebgcolor);var c=C(e,n.mouse(a)[0]);function u(){var e=l(),i=C(e,n.mouse(a)[0]);k(t,r,e,i,!1)}function d(){var e=l();e._dragging=!1,s.call(i.fill,e.bgcolor),o.on("mouseup",null),o.on("mousemove",null),o.on("touchend",null),o.on("touchmove",null),t.emit("plotly_sliderend",{slider:e,step:e.steps[e.active]})}k(t,r,e,c,!0),e._dragging=!0,o.on("mousemove",u),o.on("touchmove",u),o.on("mouseup",d),o.on("touchend",d)}e.on("mousedown",s),e.on("touchstart",s)}function S(e,t){var r=e.selectAll("rect."+f.tickRectClass).data(t._visibleSteps),a=t._dims;r.enter().append("rect").classed(f.tickRectClass,!0),r.exit().remove(),r.attr({width:t.tickwidth+"px","shape-rendering":"crispEdges"}),r.each((function(e,r){var l=r%a.labelStride===0,s=n.select(this);s.attr({height:l?t.ticklen:t.minorticklen}).call(i.fill,t.tickcolor),o.setTranslate(s,O(t,r/(t._stepCount-1))-.5*t.tickwidth,(l?f.tickOffset:f.minorTickOffset)+a.currentValueTotalHeight)}))}function M(e,t,r){for(var n=e.select("rect."+f.gripRectClass),a=0,i=0;i<t._stepCount;i++)if(t._visibleSteps[i]._index===t.active){a=i;break}var o=O(t,a/(t._stepCount-1));if(!t._invokingCommand){var l=n;r&&t.transition.duration>0&&(l=l.transition().duration(t.transition.duration).ease(t.transition.easing)),l.attr("transform",s(o-.5*f.gripWidth,t._dims.currentValueTotalHeight))}}function O(e,t){var r=e._dims;return r.inputAreaStart+f.stepInset+(r.inputAreaLength-2*f.stepInset)*Math.min(1,Math.max(0,t))}function C(e,t){var r=e._dims;return Math.min(1,Math.max(0,(t-f.stepInset-r.inputAreaStart)/(r.inputAreaLength-2*f.stepInset-2*r.inputAreaStart)))}function E(e,t,r){var n=r._dims,a=l.ensureSingle(e,"rect",f.railTouchRectClass,(function(n){n.call(A,t,e,r).style("pointer-events","all")}));a.attr({width:n.inputAreaLength,height:Math.max(n.inputAreaWidth,f.tickOffset+r.ticklen+n.labelHeight)}).call(i.fill,r.bgcolor).attr("opacity",0),o.setTranslate(a,0,n.currentValueTotalHeight)}function L(e,t){var r=t._dims,n=r.inputAreaLength-2*f.railInset,a=l.ensureSingle(e,"rect",f.railRectClass);a.attr({width:n,height:f.railWidth,rx:f.railRadius,ry:f.railRadius,"shape-rendering":"crispEdges"}).call(i.stroke,t.bordercolor).call(i.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px"),o.setTranslate(a,f.railInset,.5*(r.inputAreaWidth-f.railWidth)+r.currentValueTotalHeight)}e.exports=function(e){var t=e._fullLayout,r=function(e,t){for(var r=e[f.name],n=[],a=0;a<r.length;a++){var i=r[a];i.visible&&(i._gd=t,n.push(i))}return n}(t,e),i=t._infolayer.selectAll("g."+f.containerClassName).data(r.length>0?[0]:[]);function l(t){t._commandObserver&&(t._commandObserver.remove(),delete t._commandObserver),a.autoMargin(e,v(t))}if(i.enter().append("g").classed(f.containerClassName,!0).style("cursor","ew-resize"),i.exit().each((function(){n.select(this).selectAll("g."+f.groupClassName).each(l)})).remove(),0!==r.length){var s=i.selectAll("g."+f.groupClassName).data(r,y);s.enter().append("g").classed(f.groupClassName,!0),s.exit().each(l).remove();for(var c=0;c<r.length;c++){var u=r[c];m(e,u)}s.each((function(t){var r=n.select(this);!function(e){var t=e._dims;t.labelSteps=[];for(var r=e._stepCount,n=0;n<r;n+=t.labelStride)t.labelSteps.push({fraction:n/(r-1),step:e._visibleSteps[n]})}(t),a.manageCommandObserver(e,t,t._visibleSteps,(function(t){var n=r.data()[0];n.active!==t.index&&(n._dragging||T(e,r,n,t.index,!1,!0))})),function(e,t,r){(r.steps[r.active]||{}).visible||(r.active=r._visibleSteps[0]._index);t.call(b,r).call(L,r).call(_,r).call(S,r).call(E,e,r).call(x,e,r);var n=r._dims;o.setTranslate(t,n.lx+r.pad.l,n.ly+r.pad.t),t.call(M,r,!1),t.call(b,r)}(e,n.select(this),t)}))}}},function(e,t,r){"use strict";var n=r(0),a=r(189),i=r(298),o=r(602);e.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:n.extendFlat({},a,{yaxis:i})}}},layoutAttributes:r(189),handleDefaults:r(603),calcAutorange:r(604),draw:r(605),isVisible:o.isVisible,makeData:o.makeData,autoMarginOpts:o.autoMarginOpts}},function(e,t,r){"use strict";var n=r(21),a=r(25),i=r(190),o=r(33).LINE_SPACING,l=i.name;function s(e){var t=e&&e[l];return t&&t.visible}t.isVisible=s,t.makeData=function(e){var t=n.list({_fullLayout:e},"x",!0),r=e.margin,a=[];if(!e._has("gl2d"))for(var i=0;i<t.length;i++){var o=t[i];if(s(o)){a.push(o);var c=o[l];c._id=l+o._id,c._height=(e.height-r.b-r.t)*c.thickness,c._offsetShift=Math.floor(c.borderwidth/2)}}e._rangeSliderData=a},t.autoMarginOpts=function(e,t){var r=e._fullLayout,n=t[l],s=t._id.charAt(0),c=0,u=0;"bottom"===t.side&&(c=t._depth,t.title.text!==r._dfltTitle[s]&&(u=1.5*t.title.font.size+10+n._offsetShift,u+=(t.title.text.match(a.BR_TAG_ALL)||[]).length*t.title.font.size*o));return{x:0,y:t._counterDomainMin,l:0,r:0,t:0,b:n._height+c+Math.max(r.margin.b,u),pad:i.extraPad+2*n._offsetShift}}},function(e,t,r){"use strict";var n=r(0),a=r(17),i=r(21),o=r(189),l=r(298);e.exports=function(e,t,r){var s=e[r],c=t[r];if(s.rangeslider||t._requestRangeslider[c._id]){n.isPlainObject(s.rangeslider)||(s.rangeslider={});var u,f,d=s.rangeslider,p=a.newContainer(c,"rangeslider");if(w("visible")){w("bgcolor",t.plot_bgcolor),w("bordercolor"),w("borderwidth"),w("thickness"),w("autorange",!c.isValidRange(d.range)),w("range");var h=t._subplots;if(h)for(var g=h.cartesian.filter((function(e){return e.substr(0,e.indexOf("y"))===i.name2id(r)})).map((function(e){return e.substr(e.indexOf("y"),e.length)})),v=n.simpleMap(g,i.id2name),y=0;y<v.length;y++){var m=v[y];u=d[m]||{},f=a.newContainer(p,m,"yaxis");var b,x=t[m];u.range&&x.isValidRange(u.range)&&(b="fixed"),"match"!==_("rangemode",b)&&_("range",x.range.slice())}p._input=d}}function w(e,t){return n.coerce(d,p,o,e,t)}function _(e,t){return n.coerce(u,f,l,e,t)}}},function(e,t,r){"use strict";var n=r(21).list,a=r(98).getAutoRange,i=r(190);e.exports=function(e){for(var t=n(e,"x",!0),r=0;r<t.length;r++){var o=t[r],l=o[i.name];l&&l.visible&&l.autorange&&(l._input.autorange=!0,l._input.range=l.range=a(e,o))}}},function(e,t,r){"use strict";var n=r(7),a=r(5),i=r(20),o=r(0),l=o.strTranslate,s=r(10),c=r(8),u=r(122),f=r(80),d=r(21),p=r(46),h=r(56),g=r(190);function v(e,t,r,n){var a=o.ensureSingle(e,"rect",g.bgClassName,(function(e){e.attr({x:0,y:0,"shape-rendering":"crispEdges"})})),i=n.borderwidth%2===0?n.borderwidth:n.borderwidth-1,c=-n._offsetShift,u=s.crispRound(t,n.borderwidth);a.attr({width:n._width+i,height:n._height+i,transform:l(c,c),fill:n.bgcolor,stroke:n.bordercolor,"stroke-width":u})}function y(e,t,r,n){var a=t._fullLayout;o.ensureSingleById(a._topdefs,"clipPath",n._clipId,(function(e){e.append("rect").attr({x:0,y:0})})).select("rect").attr({width:n._width,height:n._height})}function m(e,t,r,a){var l,c=t.calcdata,u=e.selectAll("g."+g.rangePlotClassName).data(r._subplotsWith,o.identity);u.enter().append("g").attr("class",(function(e){return g.rangePlotClassName+" "+e})).call(s.setClipUrl,a._clipId,t),u.order(),u.exit().remove(),u.each((function(e,o){var s=n.select(this),u=0===o,p=d.getFromId(t,e,"y"),h=p._name,g=a[h],v={data:[],layout:{xaxis:{type:r.type,domain:[0,1],range:a.range.slice(),calendar:r.calendar},width:a._width,height:a._height,margin:{t:0,b:0,l:0,r:0}},_context:t._context};r.rangebreaks&&(v.layout.xaxis.rangebreaks=r.rangebreaks),v.layout[h]={type:p.type,domain:[0,1],range:"match"!==g.rangemode?g.range.slice():p.range.slice(),calendar:p.calendar},p.rangebreaks&&(v.layout[h].rangebreaks=p.rangebreaks),i.supplyDefaults(v);var y=v._fullLayout.xaxis,m=v._fullLayout[h];y.clearCalc(),y.setScale(),m.clearCalc(),m.setScale();var b={id:e,plotgroup:s,xaxis:y,yaxis:m,isRangePlot:!0};u?l=b:(b.mainplot="xy",b.mainplotinfo=l),f.rangePlot(t,b,function(e,t){for(var r=[],n=0;n<e.length;n++){var a=e[n],i=a[0].trace;i.xaxis+i.yaxis===t&&r.push(a)}return r}(c,e))}))}function b(e,t,r,n,a){(o.ensureSingle(e,"rect",g.maskMinClassName,(function(e){e.attr({x:0,y:0,"shape-rendering":"crispEdges"})})).attr("height",n._height).call(c.fill,g.maskColor),o.ensureSingle(e,"rect",g.maskMaxClassName,(function(e){e.attr({y:0,"shape-rendering":"crispEdges"})})).attr("height",n._height).call(c.fill,g.maskColor),"match"!==a.rangemode)&&(o.ensureSingle(e,"rect",g.maskMinOppAxisClassName,(function(e){e.attr({y:0,"shape-rendering":"crispEdges"})})).attr("width",n._width).call(c.fill,g.maskOppAxisColor),o.ensureSingle(e,"rect",g.maskMaxOppAxisClassName,(function(e){e.attr({y:0,"shape-rendering":"crispEdges"})})).attr("width",n._width).style("border-top",g.maskOppBorder).call(c.fill,g.maskOppAxisColor))}function x(e,t,r,n){t._context.staticPlot||o.ensureSingle(e,"rect",g.slideBoxClassName,(function(e){e.attr({y:0,cursor:g.slideBoxCursor,"shape-rendering":"crispEdges"})})).attr({height:n._height,fill:g.slideBoxFill})}function w(e,t,r,n){var a=o.ensureSingle(e,"g",g.grabberMinClassName),i=o.ensureSingle(e,"g",g.grabberMaxClassName),l={x:0,width:g.handleWidth,rx:g.handleRadius,fill:c.background,stroke:c.defaultLine,"stroke-width":g.handleStrokeWidth,"shape-rendering":"crispEdges"},s={y:Math.round(n._height/4),height:Math.round(n._height/2)};o.ensureSingle(a,"rect",g.handleMinClassName,(function(e){e.attr(l)})).attr(s),o.ensureSingle(i,"rect",g.handleMaxClassName,(function(e){e.attr(l)})).attr(s);var u={width:g.grabAreaWidth,x:0,y:0,fill:g.grabAreaFill,cursor:t._context.staticPlot?void 0:g.grabAreaCursor};o.ensureSingle(a,"rect",g.grabAreaMinClassName,(function(e){e.attr(u)})).attr("height",n._height),o.ensureSingle(i,"rect",g.grabAreaMaxClassName,(function(e){e.attr(u)})).attr("height",n._height)}e.exports=function(e){for(var t=e._fullLayout,r=t._rangeSliderData,i=0;i<r.length;i++){var s=r[i][g.name];s._clipId=s._id+"-"+t._uid}var c=t._infolayer.selectAll("g."+g.containerClassName).data(r,(function(e){return e._name}));c.exit().each((function(e){var r=e[g.name];t._topdefs.select("#"+r._clipId).remove()})).remove(),0!==r.length&&(c.enter().append("g").classed(g.containerClassName,!0).attr("pointer-events","all"),c.each((function(r){var i=n.select(this),s=r[g.name],c=t[d.id2name(r.anchor)],f=s[d.id2name(r.anchor)];if(s.range){var _,k=o.simpleMap(s.range,r.r2l),T=o.simpleMap(r.range,r.r2l);_=T[0]<T[1]?[Math.min(k[0],T[0]),Math.max(k[1],T[1])]:[Math.max(k[0],T[0]),Math.min(k[1],T[1])],s.range=s._input.range=o.simpleMap(_,r.l2r)}r.cleanRange("rangeslider.range");var A=t._size,S=r.domain;s._width=A.w*(S[1]-S[0]);var M=Math.round(A.l+A.w*S[0]),O=Math.round(A.t+A.h*(1-r._counterDomainMin)+("bottom"===r.side?r._depth:0)+s._offsetShift+g.extraPad);i.attr("transform",l(M,O)),s._rl=o.simpleMap(s.range,r.r2l);var C=s._rl[0],E=s._rl[1],L=E-C;if(s.p2d=function(e){return e/s._width*L+C},s.d2p=function(e){return(e-C)/L*s._width},r.rangebreaks){var P=r.locateBreaks(C,E);if(P.length){var j,z,D=0;for(j=0;j<P.length;j++)D+=(z=P[j]).max-z.min;var I=s._width/(E-C-D),N=[-I*C];for(j=0;j<P.length;j++)z=P[j],N.push(N[N.length-1]-I*(z.max-z.min));for(s.d2p=function(e){for(var t=N[0],r=0;r<P.length;r++){var n=P[r];if(e>=n.max)t=N[r+1];else if(e<n.min)break}return t+I*e},j=0;j<P.length;j++)(z=P[j]).pmin=s.d2p(z.min),z.pmax=s.d2p(z.max);s.p2d=function(e){for(var t=N[0],r=0;r<P.length;r++){var n=P[r];if(e>=n.pmax)t=N[r+1];else if(e<n.pmin)break}return(e-t)/I}}}if("match"!==f.rangemode){var R=c.r2l(f.range[0]),F=c.r2l(f.range[1])-R;s.d2pOppAxis=function(e){return(e-R)/F*s._height}}i.call(v,e,r,s).call(y,e,r,s).call(m,e,r,s).call(b,e,r,s,f).call(x,e,r,s).call(w,e,r,s),function(e,t,r,i){if(t._context.staticPlot)return;var l=e.select("rect."+g.slideBoxClassName).node(),s=e.select("rect."+g.grabAreaMinClassName).node(),c=e.select("rect."+g.grabAreaMaxClassName).node();function u(){var u=n.event,f=u.target,d=u.clientX||u.touches[0].clientX,g=d-e.node().getBoundingClientRect().left,v=i.d2p(r._rl[0]),y=i.d2p(r._rl[1]),m=p.coverSlip();function b(e){var u,p,b,x=+(e.clientX||e.touches[0].clientX)-d;switch(f){case l:b="ew-resize",u=v+x,p=y+x;break;case s:b="col-resize",u=v+x,p=y;break;case c:b="col-resize",u=v,p=y+x;break;default:b="ew-resize",u=g,p=g+x}if(p<u){var w=p;p=u,u=w}i._pixelMin=u,i._pixelMax=p,h(n.select(m),b),function(e,t,r,n){function i(e){return r.l2r(o.constrain(e,n._rl[0],n._rl[1]))}var l=i(n.p2d(n._pixelMin)),s=i(n.p2d(n._pixelMax));window.requestAnimationFrame((function(){a.call("_guiRelayout",t,r._name+".range",[l,s])}))}(0,t,r,i)}function x(){m.removeEventListener("mousemove",b),m.removeEventListener("mouseup",x),this.removeEventListener("touchmove",b),this.removeEventListener("touchend",x),o.removeElement(m)}this.addEventListener("touchmove",b),this.addEventListener("touchend",x),m.addEventListener("mousemove",b),m.addEventListener("mouseup",x)}e.on("mousedown",u),e.on("touchstart",u)}(i,e,r,s),function(e,t,r,n,a,i){var s=g.handleWidth/2;function c(e){return o.constrain(e,0,n._width)}function u(e){return o.constrain(e,0,n._height)}function f(e){return o.constrain(e,-s,n._width+s)}var d=c(n.d2p(r._rl[0])),p=c(n.d2p(r._rl[1]));if(e.select("rect."+g.slideBoxClassName).attr("x",d).attr("width",p-d),e.select("rect."+g.maskMinClassName).attr("width",d),e.select("rect."+g.maskMaxClassName).attr("x",p).attr("width",n._width-p),"match"!==i.rangemode){var h=n._height-u(n.d2pOppAxis(a._rl[1])),v=n._height-u(n.d2pOppAxis(a._rl[0]));e.select("rect."+g.maskMinOppAxisClassName).attr("x",d).attr("height",h).attr("width",p-d),e.select("rect."+g.maskMaxOppAxisClassName).attr("x",d).attr("y",v).attr("height",n._height-v).attr("width",p-d),e.select("rect."+g.slideBoxClassName).attr("y",h).attr("height",v-h)}var y=.5,m=Math.round(f(d-s))-y,b=Math.round(f(p-s))+y;e.select("g."+g.grabberMinClassName).attr("transform",l(m,y)),e.select("g."+g.grabberMaxClassName).attr("transform",l(b,y))}(i,0,r,s,c,f),"bottom"===r.side&&u.draw(e,r._id+"title",{propContainer:r,propName:r._name+".title",placeholder:t._dfltTitle.x,attributes:{x:r._offset+r._length/2,y:O+s._height+s._offsetShift+10+1.5*r.title.font.size,"text-anchor":"middle"}})})))}},function(e,t,r){"use strict";e.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:r(191)}}},layoutAttributes:r(191),handleDefaults:r(607),draw:r(608)}},function(e,t,r){"use strict";var n=r(0),a=r(8),i=r(17),o=r(50),l=r(191),s=r(299);function c(e,t,r,a){var i=a.calendar;function o(r,a){return n.coerce(e,t,l.buttons,r,a)}if(o("visible")){var s=o("step");"all"!==s&&(!i||"gregorian"===i||"month"!==s&&"year"!==s?o("stepmode"):t.stepmode="backward",o("count")),o("label")}}e.exports=function(e,t,r,u,f){var d=e.rangeselector||{},p=i.newContainer(t,"rangeselector");function h(e,t){return n.coerce(d,p,l,e,t)}if(h("visible",o(d,p,{name:"buttons",handleItemDefaults:c,calendar:f}).length>0)){var g=function(e,t,r){for(var n=r.filter((function(r){return t[r].anchor===e._id})),a=0,i=0;i<n.length;i++){var o=t[n[i]].domain;o&&(a=Math.max(o[1],a))}return[e.domain[0],a+s.yPad]}(t,r,u);h("x",g[0]),h("y",g[1]),n.noneOrAll(e,t,["x","y"]),h("xanchor"),h("yanchor"),n.coerceFont(h,"font",r.font);var v=h("bgcolor");h("activecolor",a.contrast(v,s.lightAmount,s.darkAmount)),h("bordercolor"),h("borderwidth")}}},function(e,t,r){"use strict";var n=r(7),a=r(5),i=r(20),o=r(8),l=r(10),s=r(0),c=s.strTranslate,u=r(25),f=r(21),d=r(33),p=d.LINE_SPACING,h=d.FROM_TL,g=d.FROM_BR,v=r(299),y=r(609);function m(e){return e._id}function b(e,t,r){var n=s.ensureSingle(e,"rect","selector-rect",(function(e){e.attr("shape-rendering","crispEdges")}));n.attr({rx:v.rx,ry:v.ry}),n.call(o.stroke,t.bordercolor).call(o.fill,function(e,t){return t._isActive||t._isHovered?e.activecolor:e.bgcolor}(t,r)).style("stroke-width",t.borderwidth+"px")}function x(e,t,r,n){s.ensureSingle(e,"text","selector-text",(function(e){e.attr("text-anchor","middle")})).call(l.font,t.font).text(function(e,t){if(e.label)return t?s.templateString(e.label,t):e.label;return"all"===e.step?"all":e.count+e.step.charAt(0)}(r,n._fullLayout._meta)).call((function(e){u.convertToTspans(e,n)}))}e.exports=function(e){var t=e._fullLayout._infolayer.selectAll(".rangeselector").data(function(e){for(var t=f.list(e,"x",!0),r=[],n=0;n<t.length;n++){var a=t[n];a.rangeselector&&a.rangeselector.visible&&r.push(a)}return r}(e),m);t.enter().append("g").classed("rangeselector",!0),t.exit().remove(),t.style({cursor:"pointer","pointer-events":"all"}),t.each((function(t){var r=n.select(this),o=t,f=o.rangeselector,d=r.selectAll("g.button").data(s.filterVisible(f.buttons));d.enter().append("g").classed("button",!0),d.exit().remove(),d.each((function(t){var r=n.select(this),i=y(o,t);t._isActive=function(e,t,r){if("all"===t.step)return!0===e.autorange;var n=Object.keys(r);return e.range[0]===r[n[0]]&&e.range[1]===r[n[1]]}(o,t,i),r.call(b,f,t),r.call(x,f,t,e),r.on("click",(function(){e._dragged||a.call("_guiRelayout",e,i)})),r.on("mouseover",(function(){t._isHovered=!0,r.call(b,f,t)})),r.on("mouseout",(function(){t._isHovered=!1,r.call(b,f,t)}))})),function(e,t,r,a,o){var f=0,d=0,y=r.borderwidth;t.each((function(){var e=n.select(this).select(".selector-text"),t=r.font.size*p,a=Math.max(t*u.lineCount(e),16)+3;d=Math.max(d,a)})),t.each((function(){var e=n.select(this),t=e.select(".selector-rect"),a=e.select(".selector-text"),i=a.node()&&l.bBox(a.node()).width,o=r.font.size*p,s=u.lineCount(a),h=Math.max(i+10,v.minButtonWidth);e.attr("transform",c(y+f,y)),t.attr({x:0,y:0,width:h,height:d}),u.positionText(a,h/2,d/2-(s-1)*o/2+3),f+=h+5}));var m=e._fullLayout._size,b=m.l+m.w*r.x,x=m.t+m.h*(1-r.y),w="left";s.isRightAnchor(r)&&(b-=f,w="right");s.isCenterAnchor(r)&&(b-=f/2,w="center");var _="top";s.isBottomAnchor(r)&&(x-=d,_="bottom");s.isMiddleAnchor(r)&&(x-=d/2,_="middle");f=Math.ceil(f),d=Math.ceil(d),b=Math.round(b),x=Math.round(x),i.autoMargin(e,a+"-range-selector",{x:r.x,y:r.y,l:f*h[w],r:f*g[w],b:d*g[_],t:d*h[_]}),o.attr("transform",c(b,x))}(e,d,f,o._name,r)}))}},function(e,t,r){"use strict";var n=r(350),a=r(0).titleCase;e.exports=function(e,t){var r=e._name,i={};if("all"===t.step)i[r+".autorange"]=!0;else{var o=function(e,t){var r,i=e.range,o=new Date(e.r2l(i[1])),l=t.step,s=n["utc"+a(l)],c=t.count;switch(t.stepmode){case"backward":r=e.l2r(+s.offset(o,-c));break;case"todate":var u=s.offset(o,-c);r=e.l2r(+s.ceil(u))}var f=i[1];return[r,f]}(e,t);i[r+".range[0]"]=o[0],i[r+".range[1]"]=o[1]}return i}},function(e,t,r){"use strict";var n=r(0),a=r(92).counter,i=r(81).attributes,o=r(29).idRegex,l=r(17),s={rows:{valType:"integer",min:1,editType:"plot",description:["The number of rows in the grid. If you provide a 2D `subplots`","array or a `yaxes` array, its length is used as the default.","But it's also possible to have a different length, if you","want to leave a row at the end for non-cartesian subplots."].join(" ")},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot",description:["Is the first row the top or the bottom? Note that columns","are always enumerated from left to right."].join(" ")},columns:{valType:"integer",min:1,editType:"plot",description:["The number of columns in the grid. If you provide a 2D `subplots`","array, the length of its longest row is used as the default.","If you give an `xaxes` array, its length is used as the default.","But it's also possible to have a different length, if you","want to leave a row at the end for non-cartesian subplots."].join(" ")},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[a("xy").toString(),""],editType:"plot"},editType:"plot",description:["Used for freeform grids, where some axes may be shared across subplots","but others are not. Each entry should be a cartesian subplot id, like","*xy* or *x3y2*, or ** to leave that cell empty. You may reuse x axes","within the same column, and y axes within the same row.","Non-cartesian subplots and traces that support `domain` can place themselves","in this grid separately using the `gridcell` attribute."].join(" ")},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[o.x.toString(),""],editType:"plot"},editType:"plot",description:["Used with `yaxes` when the x and y axes are shared across columns and rows.","Each entry should be an x axis id like *x*, *x2*, etc., or ** to","not put an x axis in that column. Entries other than ** must be unique.","Ignored if `subplots` is present. If missing but `yaxes` is present,","will generate consecutive IDs."].join(" ")},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[o.y.toString(),""],editType:"plot"},editType:"plot",description:["Used with `yaxes` when the x and y axes are shared across columns and rows.","Each entry should be an y axis id like *y*, *y2*, etc., or ** to","not put a y axis in that row. Entries other than ** must be unique.","Ignored if `subplots` is present. If missing but `xaxes` is present,","will generate consecutive IDs."].join(" ")},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot",description:["If no `subplots`, `xaxes`, or `yaxes` are given but we do have `rows` and `columns`,","we can generate defaults using consecutive axis IDs, in two ways:","*coupled* gives one x axis per column and one y axis per row.","*independent* uses a new xy pair for each cell, left-to-right across each row","then iterating rows according to `roworder`."].join(" ")},xgap:{valType:"number",min:0,max:1,editType:"plot",description:["Horizontal space between grid cells, expressed as a fraction","of the total width available to one cell. Defaults to 0.1","for coupled-axes grids and 0.2 for independent grids."].join(" ")},ygap:{valType:"number",min:0,max:1,editType:"plot",description:["Vertical space between grid cells, expressed as a fraction","of the total height available to one cell. Defaults to 0.1","for coupled-axes grids and 0.3 for independent grids."].join(" ")},domain:i({name:"grid",editType:"plot",noGridCell:!0},{description:["The first and last cells end exactly at the domain","edges, with no grout around the edges."].join(" ")}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot",description:["Sets where the x axis labels and titles go. *bottom* means","the very bottom of the grid. *bottom plot* is the lowest plot","that each x axis is used in. *top* and *top plot* are similar."].join(" ")},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot",description:["Sets where the y axis labels and titles go. *left* means","the very left edge of the grid. *left plot* is the leftmost plot","that each y axis is used in. *right* and *right plot* are similar."].join(" ")},editType:"plot"};function c(e,t,r){var n=t[r+"axes"],a=Object.keys((e._splomAxes||{})[r]||{});return Array.isArray(n)?n:a.length?a:void 0}function u(e,t,r,n,a,i){var o=t(e+"gap",r),l=t("domain."+e);t(e+"side",n);for(var s=new Array(a),c=l[0],u=(l[1]-c)/(a-o),f=u*(1-o),d=0;d<a;d++){var p=c+u*d;s[i?a-1-d:d]=[p,p+f]}return s}function f(e,t,r,n,a){var i,o=new Array(r);function l(e,r){-1!==t.indexOf(r)&&void 0===n[r]?(o[e]=r,n[r]=e):o[e]=""}if(Array.isArray(e))for(i=0;i<r;i++)l(i,e[i]);else for(l(0,a),i=1;i<r;i++)l(i,a+(i+1));return o}e.exports={moduleType:"component",name:"grid",schema:{layout:{grid:s}},layoutAttributes:s,sizeDefaults:function(e,t){var r=e.grid||{},a=c(t,r,"x"),i=c(t,r,"y");if(e.grid||a||i){var o,f,d=Array.isArray(r.subplots)&&Array.isArray(r.subplots[0]),p=Array.isArray(a),h=Array.isArray(i),g=p&&a!==r.xaxes&&h&&i!==r.yaxes;d?(o=r.subplots.length,f=r.subplots[0].length):(h&&(o=i.length),p&&(f=a.length));var v=l.newContainer(t,"grid"),y=T("rows",o),m=T("columns",f);if(y*m>1){if(!d&&!p&&!h)"independent"===T("pattern")&&(d=!0);v._hasSubplotGrid=d;var b,x,w="top to bottom"===T("roworder"),_=d?.2:.1,k=d?.3:.1;g&&t._splomGridDflt&&(b=t._splomGridDflt.xside,x=t._splomGridDflt.yside),v._domains={x:u("x",T,_,b,m),y:u("y",T,k,x,y,w)}}else delete t.grid}function T(e,t){return n.coerce(r,v,s,e,t)}},contentDefaults:function(e,t){var r=t.grid;if(r&&r._domains){var n,a,i,o,l,s,u,d=e.grid||{},p=t._subplots,h=r._hasSubplotGrid,g=r.rows,v=r.columns,y="independent"===r.pattern,m=r._axisMap={};if(h){var b=d.subplots||[];s=r.subplots=new Array(g);var x=1;for(n=0;n<g;n++){var w=s[n]=new Array(v),_=b[n]||[];for(a=0;a<v;a++)if(y?(l=1===x?"xy":"x"+x+"y"+x,x++):l=_[a],w[a]="",-1!==p.cartesian.indexOf(l)){if(u=l.indexOf("y"),i=l.slice(0,u),o=l.slice(u),void 0!==m[i]&&m[i]!==a||void 0!==m[o]&&m[o]!==n)continue;w[a]=l,m[i]=a,m[o]=n}}}else{var k=c(t,d,"x"),T=c(t,d,"y");r.xaxes=f(k,p.xaxis,v,m,"x"),r.yaxes=f(T,p.yaxis,g,m,"y")}var A=r._anchors={},S="top to bottom"===r.roworder;for(var M in m){var O,C,E,L=M.charAt(0),P=r[L+"side"];if(P.length<8)A[M]="free";else if("x"===L){if("t"===P.charAt(0)===S?(O=0,C=1,E=g):(O=g-1,C=-1,E=-1),h){var j=m[M];for(n=O;n!==E;n+=C)if((l=s[n][j])&&(u=l.indexOf("y"),l.slice(0,u)===M)){A[M]=l.slice(u);break}}else for(n=O;n!==E;n+=C)if(o=r.yaxes[n],-1!==p.cartesian.indexOf(M+o)){A[M]=o;break}}else if("l"===P.charAt(0)?(O=0,C=1,E=v):(O=v-1,C=-1,E=-1),h){var z=m[M];for(n=O;n!==E;n+=C)if((l=s[z][n])&&(u=l.indexOf("y"),l.slice(u)===M)){A[M]=l.slice(0,u);break}}else for(n=O;n!==E;n+=C)if(i=r.xaxes[n],-1!==p.cartesian.indexOf(i+M)){A[M]=i;break}}}}}},function(e,t,r){"use strict";var n=r(0),a=r(55).overrideAll,i=r(300),o={error_x:n.extendFlat({},i),error_y:n.extendFlat({},i)};delete o.error_x.copy_zstyle,delete o.error_y.copy_zstyle,delete o.error_y.copy_ystyle;var l={error_x:n.extendFlat({},i),error_y:n.extendFlat({},i),error_z:n.extendFlat({},i)};delete l.error_x.copy_ystyle,delete l.error_y.copy_ystyle,delete l.error_z.copy_ystyle,delete l.error_z.copy_zstyle,e.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:o,bar:o,histogram:o,scatter3d:a(l,"calc","nested"),scattergl:a(o,"calc","nested")}},supplyDefaults:r(612),calc:r(613),makeComputeError:r(301),plot:r(614),style:r(615),hoverInfo:function(e,t,r){(t.error_y||{}).visible&&(r.yerr=e.yh-e.y,t.error_y.symmetric||(r.yerrneg=e.y-e.ys));(t.error_x||{}).visible&&(r.xerr=e.xh-e.x,t.error_x.symmetric||(r.xerrneg=e.x-e.xs))}}},function(e,t,r){"use strict";var n=r(9),a=r(5),i=r(0),o=r(17),l=r(300);e.exports=function(e,t,r,s){var c="error_"+s.axis,u=o.newContainer(t,c),f=e[c]||{};function d(e,t){return i.coerce(f,u,l,e,t)}if(!1!==d("visible",void 0!==f.array||void 0!==f.value||"sqrt"===f.type)){var p=d("type","array"in f?"data":"percent"),h=!0;"sqrt"!==p&&(h=d("symmetric",!(("data"===p?"arrayminus":"valueminus")in f))),"data"===p?(d("array"),d("traceref"),h||(d("arrayminus"),d("tracerefminus"))):"percent"!==p&&"constant"!==p||(d("value"),h||d("valueminus"));var g="copy_"+s.inherit+"style";if(s.inherit)(t["error_"+s.inherit]||{}).visible&&d(g,!(f.color||n(f.thickness)||n(f.width)));s.inherit&&u[g]||(d("color",r),d("thickness"),d("width",a.traceIs(t,"gl3d")?0:4))}}},function(e,t,r){"use strict";var n=r(9),a=r(5),i=r(14),o=r(0),l=r(301);function s(e,t,r,a){var s=t["error_"+a]||{},c=[];if(s.visible&&-1!==["linear","log"].indexOf(r.type)){for(var u=l(s),f=0;f<e.length;f++){var d=e[f],p=d.i;if(void 0===p)p=f;else if(null===p)continue;var h=d[a];if(n(r.c2l(h))){var g=u(h,p);if(n(g[0])&&n(g[1])){var v=d[a+"s"]=h-g[0],y=d[a+"h"]=h+g[1];c.push(v,y)}}}var m=r._id,b=t._extremes[m],x=i.findExtremes(r,c,o.extendFlat({tozero:b.opts.tozero},{padded:!0}));b.min=b.min.concat(x.min),b.max=b.max.concat(x.max)}}e.exports=function(e){for(var t=e.calcdata,r=0;r<t.length;r++){var n=t[r],o=n[0].trace;if(!0===o.visible&&a.traceIs(o,"errorBarsOK")){var l=i.getFromId(e,o.xaxis),c=i.getFromId(e,o.yaxis);s(n,o,l,"x"),s(n,o,c,"y")}}}},function(e,t,r){"use strict";var n=r(7),a=r(9),i=r(10),o=r(30);e.exports=function(e,t,r,l){var s=r.xaxis,c=r.yaxis,u=l&&l.duration>0;t.each((function(t){var f,d=t[0].trace,p=d.error_x||{},h=d.error_y||{};d.ids&&(f=function(e){return e.id});var g=o.hasMarkers(d)&&d.marker.maxdisplayed>0;h.visible||p.visible||(t=[]);var v=n.select(this).selectAll("g.errorbar").data(t,f);if(v.exit().remove(),t.length){p.visible||v.selectAll("path.xerror").remove(),h.visible||v.selectAll("path.yerror").remove(),v.style("opacity",1);var y=v.enter().append("g").classed("errorbar",!0);u&&y.style("opacity",0).transition().duration(l.duration).style("opacity",1),i.setClipUrl(v,r.layerClipId,e),v.each((function(e){var t=n.select(this),r=function(e,t,r){var n={x:t.c2p(e.x),y:r.c2p(e.y)};void 0!==e.yh&&(n.yh=r.c2p(e.yh),n.ys=r.c2p(e.ys),a(n.ys)||(n.noYS=!0,n.ys=r.c2p(e.ys,!0)));void 0!==e.xh&&(n.xh=t.c2p(e.xh),n.xs=t.c2p(e.xs),a(n.xs)||(n.noXS=!0,n.xs=t.c2p(e.xs,!0)));return n}(e,s,c);if(!g||e.vis){var i,o=t.select("path.yerror");if(h.visible&&a(r.x)&&a(r.yh)&&a(r.ys)){var f=h.width;i="M"+(r.x-f)+","+r.yh+"h"+2*f+"m-"+f+",0V"+r.ys,r.noYS||(i+="m-"+f+",0h"+2*f),!o.size()?o=t.append("path").style("vector-effect","non-scaling-stroke").classed("yerror",!0):u&&(o=o.transition().duration(l.duration).ease(l.easing)),o.attr("d",i)}else o.remove();var d=t.select("path.xerror");if(p.visible&&a(r.y)&&a(r.xh)&&a(r.xs)){var v=(p.copy_ystyle?h:p).width;i="M"+r.xh+","+(r.y-v)+"v"+2*v+"m0,-"+v+"H"+r.xs,r.noXS||(i+="m0,-"+v+"v"+2*v),!d.size()?d=t.append("path").style("vector-effect","non-scaling-stroke").classed("xerror",!0):u&&(d=d.transition().duration(l.duration).ease(l.easing)),d.attr("d",i)}else d.remove()}}))}}))}},function(e,t,r){"use strict";var n=r(7),a=r(8);e.exports=function(e){e.each((function(e){var t=e[0].trace,r=t.error_y||{},i=t.error_x||{},o=n.select(this);o.selectAll("path.yerror").style("stroke-width",r.thickness+"px").call(a.stroke,r.color),i.copy_ystyle&&(i=r),o.selectAll("path.xerror").style("stroke-width",i.thickness+"px").call(a.stroke,i.color)}))}},function(e,t,r){"use strict";e.exports={moduleType:"component",name:"colorbar",attributes:r(166),supplyDefaults:r(249),draw:r(617).draw,hasColorbar:r(248)}},function(e,t,r){"use strict";var n=r(7),a=r(34),i=r(20),o=r(5),l=r(14),s=r(46),c=r(0),u=c.strTranslate,f=r(22).extendFlat,d=r(56),p=r(10),h=r(8),g=r(122),v=r(25),y=r(39).flipScale,m=r(290),b=r(291),x=r(49),w=r(33),_=w.LINE_SPACING,k=w.FROM_TL,T=w.FROM_BR,A=r(618).cn;e.exports={draw:function(e){var t=e._fullLayout._infolayer.selectAll("g."+A.colorbar).data(function(e){var t,r,n,a,i=e._fullLayout,o=e.calcdata,l=[];function s(e){return f(e,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function c(){"function"===typeof a.calc?a.calc(e,n,t):(t._fillgradient=r.reversescale?y(r.colorscale):r.colorscale,t._zrange=[r[a.min],r[a.max]])}for(var u=0;u<o.length;u++){var d=o[u],p=(n=d[0].trace)._module.colorbar;if(!0===n.visible&&p)for(var h=Array.isArray(p),g=h?p:[p],v=0;v<g.length;v++){var m=(a=g[v]).container;(r=m?n[m]:n)&&r.showscale&&((t=s(r.colorbar))._id="cb"+n.uid+(h&&m?"-"+m:""),t._traceIndex=n.index,t._propPrefix=(m?m+".":"")+"colorbar.",t._meta=n._meta,c(),l.push(t))}}for(var b in i._colorAxes)if((r=i[b]).showscale){var x=i._colorAxes[b];(t=s(r.colorbar))._id="cb"+b,t._propPrefix=b+".colorbar.",t._meta=i._meta,a={min:"cmin",max:"cmax"},"heatmap"!==x[0]&&(n=x[1],a.calc=n._module.colorbar.calc),c(),l.push(t)}return l}(e),(function(e){return e._id}));t.enter().append("g").attr("class",(function(e){return e._id})).classed(A.colorbar,!0),t.each((function(t){var r=n.select(this);c.ensureSingle(r,"rect",A.cbbg),c.ensureSingle(r,"g",A.cbfills),c.ensureSingle(r,"g",A.cblines),c.ensureSingle(r,"g",A.cbaxis,(function(e){e.classed(A.crisp,!0)})),c.ensureSingle(r,"g",A.cbtitleunshift,(function(e){e.append("g").classed(A.cbtitle,!0)})),c.ensureSingle(r,"rect",A.cboutline);var y=function(e,t,r){var o="v"===t.orientation,s=t.len,d=t.lenmode,y=t.thickness,w=t.thicknessmode,S=t.outlinewidth,M=t.borderwidth,O=t.bgcolor,C=t.xanchor,E=t.yanchor,L=t.xpad,P=t.ypad,j=t.x,z=o?t.y:1-t.y,D=r._fullLayout,I=D._size,N=t._fillcolor,R=t._line,F=t.title,B=F.side,U=t._zrange||n.extent(("function"===typeof N?N:R.color).domain()),H="function"===typeof R.color?R.color:function(){return R.color},V="function"===typeof N?N:function(){return N},q=t._levels,W=function(e,t,r){var n,a,i=t._levels,o=[],l=[],s=i.end+i.size/100,c=i.size,u=1.001*r[0]-.001*r[1],f=1.001*r[1]-.001*r[0];for(a=0;a<1e5&&(n=i.start+a*c,!(c>0?n>=s:n<=s));a++)n>u&&n<f&&o.push(n);if(t._fillgradient)l=[0];else if("function"===typeof t._fillcolor){var d=t._filllevels;if(d)for(s=d.end+d.size/100,c=d.size,a=0;a<1e5&&(n=d.start+a*c,!(c>0?n>=s:n<=s));a++)n>r[0]&&n<r[1]&&l.push(n);else(l=o.map((function(e){return e-i.size/2}))).push(l[l.length-1]+i.size)}else t._fillcolor&&"string"===typeof t._fillcolor&&(l=[0]);i.size<0&&(o.reverse(),l.reverse());return{line:o,fill:l}}(0,t,U),Y=W.fill,G=W.line,X=Math.round(y*("fraction"===w?o?I.w:I.h:1)),Z=X/(o?I.w:I.h),$=Math.round(s*("fraction"===d?o?I.h:I.w:1)),Q=$/(o?I.h:I.w),K=Math.round(o?j*I.w+L:z*I.h+P),J={center:.5,right:1}[C]||0,ee={top:1,middle:.5}[E]||0,te=o?j-J*Z:z-ee*Z,re=o?z-ee*Q:j-J*Q,ne=Math.round(o?I.h*(1-re):I.w*re);t._lenFrac=Q,t._thickFrac=Z,t._uFrac=te,t._vFrac=re;var ae=t._axis=function(e,t,r){var n=e._fullLayout,a="v"===t.orientation,i={type:"linear",range:r,tickmode:t.tickmode,nticks:t.nticks,tick0:t.tick0,dtick:t.dtick,tickvals:t.tickvals,ticktext:t.ticktext,ticks:t.ticks,ticklen:t.ticklen,tickwidth:t.tickwidth,tickcolor:t.tickcolor,showticklabels:t.showticklabels,ticklabelposition:t.ticklabelposition,ticklabeloverflow:t.ticklabeloverflow,ticklabelstep:t.ticklabelstep,tickfont:t.tickfont,tickangle:t.tickangle,tickformat:t.tickformat,exponentformat:t.exponentformat,minexponent:t.minexponent,separatethousands:t.separatethousands,showexponent:t.showexponent,showtickprefix:t.showtickprefix,tickprefix:t.tickprefix,showticksuffix:t.showticksuffix,ticksuffix:t.ticksuffix,title:t.title,showline:!0,anchor:"free",side:a?"right":"bottom",position:1},o=a?"y":"x",l={type:"linear",_id:o+t._id},s={letter:o,font:n.font,noHover:!0,noTickson:!0,noTicklabelmode:!0,calendar:n.calendar};function u(e,t){return c.coerce(i,l,x,e,t)}return m(i,l,u,s,n),b(i,l,u,s),l}(r,t,U);ae.position=Z+(o?j+L/I.w:z+P/I.h);var ie=-1!==["top","bottom"].indexOf(B);o&&ie&&(ae.title.side=B,ae.titlex=j+L/I.w,ae.titley=re+("top"===F.side?Q-P/I.h:P/I.h));o||ie||(ae.title.side=B,ae.titley=z+P/I.h,ae.titlex=re+L/I.w);if(R.color&&"auto"===t.tickmode){ae.tickmode="linear",ae.tick0=q.start;var oe=q.size,le=c.constrain($/50,4,15)+1,se=(U[1]-U[0])/((t.nticks||le)*oe);if(se>1){var ce=Math.pow(10,Math.floor(Math.log(se)/Math.LN10));oe*=ce*c.roundUp(se/ce,[2,5,10]),(Math.abs(q.start)/q.size+1e-6)%1<2e-6&&(ae.tick0=0)}ae.dtick=oe}ae.domain=o?[re+P/I.h,re+Q-P/I.h]:[re+L/I.w,re+Q-L/I.w],ae.setScale(),e.attr("transform",u(Math.round(I.l),Math.round(I.t)));var ue,fe=e.select("."+A.cbtitleunshift).attr("transform",u(-Math.round(I.l),-Math.round(I.t))),de=ae.ticklabelposition,pe=ae.title.font.size,he=e.select("."+A.cbaxis),ge=0,ve=0;function ye(n,a){var i={propContainer:ae,propName:t._propPrefix+"title",traceIndex:t._traceIndex,_meta:t._meta,placeholder:D._dfltTitle.colorbar,containerGroup:e.select("."+A.cbtitle)},o="h"===n.charAt(0)?n.substr(1):"h"+n;e.selectAll("."+o+",."+o+"-math-group").remove(),g.draw(r,n,f(i,a||{}))}function me(){var e,t;(o&&ie||!o&&!ie)&&("top"===B&&(e=L+I.l+I.w*j,t=P+I.t+I.h*(1-re-Q)+3+.75*pe),"bottom"===B&&(e=L+I.l+I.w*j,t=P+I.t+I.h*(1-re)-3-.25*pe),"right"===B&&(t=P+I.t+I.h*z+3+.75*pe,e=L+I.l+I.w*re),ye(ae._id+"title",{attributes:{x:e,y:t,"text-anchor":o?"start":"middle"}}))}function be(){if(o&&!ie||!o&&ie){var e,a,i=ae.position||0,l=ae._offset+ae._length/2;if("right"===B)a=l,e=I.l+I.w*i+10+pe*(ae.showticklabels?1:.5);else if(e=l,"bottom"===B&&(a=I.t+I.h*i+10+(-1===de.indexOf("inside")?ae.tickfont.size:0)+("intside"!==ae.ticks&&t.ticklen||0)),"top"===B){var s=F.text.split("<br>").length;a=I.t+I.h*i+10-X-_*pe*s}ye((o?"h":"v")+ae._id+"title",{avoid:{selection:n.select(r).selectAll("g."+ae._id+"tick"),side:B,offsetTop:o?0:I.t,offsetLeft:o?I.l:0,maxShift:o?D.width:D.height},attributes:{x:e,y:a,"text-anchor":"middle"},transform:{rotate:o?-90:0,offset:0}})}}function xe(){if(!o&&!ie||o&&ie){var i,s=e.select("."+A.cbtitle),f=s.select("text"),d=[-S/2,S/2],h=s.select(".h"+ae._id+"title-math-group").node(),g=15.6;if(f.node()&&(g=parseInt(f.node().style.fontSize,10)*_),h?(i=p.bBox(h),ve=i.width,(ge=i.height)>g&&(d[1]-=(ge-g)/2)):f.node()&&!f.classed(A.jsPlaceholder)&&(i=p.bBox(f.node()),ve=i.width,ge=i.height),o){if(ge){if(ge+=5,"top"===B)ae.domain[1]-=ge/I.h,d[1]*=-1;else{ae.domain[0]+=ge/I.h;var y=v.lineCount(f);d[1]+=(1-y)*g}s.attr("transform",u(d[0],d[1])),ae.setScale()}}else ve&&("right"===B&&(ae.domain[0]+=(ve+pe/2)/I.w),s.attr("transform",u(d[0],d[1])),ae.setScale())}e.selectAll("."+A.cbfills+",."+A.cblines).attr("transform",o?u(0,Math.round(I.h*(1-ae.domain[1]))):u(Math.round(I.w*ae.domain[0]),0)),he.attr("transform",o?u(0,Math.round(-I.t)):u(Math.round(-I.l),0));var m=e.select("."+A.cbfills).selectAll("rect."+A.cbfill).attr("style","").data(Y);m.enter().append("rect").classed(A.cbfill,!0).style("stroke","none"),m.exit().remove();var b=U.map(ae.c2p).map(Math.round).sort((function(e,t){return e-t}));m.each((function(e,i){var l=[0===i?U[0]:(Y[i]+Y[i-1])/2,i===Y.length-1?U[1]:(Y[i]+Y[i+1])/2].map(ae.c2p).map(Math.round);o&&(l[1]=c.constrain(l[1]+(l[1]>l[0])?1:-1,b[0],b[1]));var s=n.select(this).attr(o?"x":"y",K).attr(o?"y":"x",n.min(l)).attr(o?"width":"height",Math.max(X,2)).attr(o?"height":"width",Math.max(n.max(l)-n.min(l),2));if(t._fillgradient)p.gradient(s,r,t._id,o?"vertical":"horizontalreversed",t._fillgradient,"fill");else{var u=V(e).replace("e-","");s.attr("fill",a(u).toHexString())}}));var x=e.select("."+A.cblines).selectAll("path."+A.cbline).data(R.color&&R.width?G:[]);x.enter().append("path").classed(A.cbline,!0),x.exit().remove(),x.each((function(e){var t=K,r=Math.round(ae.c2p(e))+R.width/2%1;n.select(this).attr("d","M"+(o?t+","+r:r+","+t)+(o?"h":"v")+X).call(p.lineGroupStyle,R.width,H(e),R.dash)})),he.selectAll("g."+ae._id+"tick,path").remove();var w=K+X+(S||0)/2-("outside"===t.ticks?1:0),k=l.calcTicks(ae),T=l.getTickSigns(ae)[2];return l.drawTicks(r,ae,{vals:"inside"===ae.ticks?l.clipEnds(ae,k):k,layer:he,path:l.makeTickPath(ae,w,T),transFn:l.makeTransTickFn(ae)}),l.drawLabels(r,ae,{vals:k,layer:he,transFn:l.makeTransTickLabelFn(ae),labelFns:l.makeLabelFns(ae,w)})}function we(){var n,l=X+S/2;-1===de.indexOf("inside")&&(n=p.bBox(he.node()),l+=o?n.width:n.height),ue=fe.select("text");var c=0,f=o&&"top"===B,g=!o&&"right"===B,v=0;if(ue.node()&&!ue.classed(A.jsPlaceholder)){var m,b=fe.select(".h"+ae._id+"title-math-group").node();b&&(o&&ie||!o&&!ie)?(c=(n=p.bBox(b)).width,m=n.height):(c=(n=p.bBox(fe.node())).right-I.l-(o?K:ne),m=n.bottom-I.t-(o?ne:K),o||"top"!==B||(l+=n.height,v=n.height)),g&&(ue.attr("transform",u(c/2+pe/2,0)),c*=2),l=Math.max(l,o?c:m)}var x=2*(o?L:P)+l+M+S/2,_=0;!o&&F.text&&"bottom"===E&&z<=0&&(x+=_=x/2,v+=_),D._hColorbarMoveTitle=_,D._hColorbarMoveCBTitle=v;var N=M+S;e.select("."+A.cbbg).attr("x",(o?K:ne)-N/2-(o?L:0)).attr("y",(o?ne:K)-(o?$:P+v-_)).attr(o?"width":"height",Math.max(x-_,2)).attr(o?"height":"width",Math.max($+N,2)).call(h.fill,O).call(h.stroke,t.bordercolor).style("stroke-width",M);var R=g?Math.max(c-10,0):0;if(e.selectAll("."+A.cboutline).attr("x",(o?K:ne+L)+R).attr("y",(o?ne+P-$:K)+(f?ge:0)).attr(o?"width":"height",Math.max(X,2)).attr(o?"height":"width",Math.max($-(o?2*P+ge:2*L+R),2)).call(h.stroke,t.outlinecolor).style({fill:"none","stroke-width":S}),e.attr("transform",u(I.l-(o?J*x:0),I.t-(o?0:(1-ee)*x-v))),!o&&(M||a(O).getAlpha()&&!a.equals(D.paper_bgcolor,O))){var U=he.selectAll("text"),H=U[0].length,V=e.select("."+A.cbbg).node(),q=p.bBox(V),W=p.getTranslate(e),Y=2;U.each((function(e,t){var r=0,n=H-1;if(t===r||t===n){var a,i=p.bBox(this),o=p.getTranslate(this);if(t===n){var l=i.right+o.x;(a=q.right+W.x+ne-M-Y+j-l)>0&&(a=0)}else if(t===r){var s=i.left+o.x;(a=q.left+W.x+ne+M+Y-s)<0&&(a=0)}a&&(H<3?this.setAttribute("transform","translate("+a+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}}))}var G={},Z=k[C],Q=T[C],te=k[E],re=T[E],oe=x-X;o?("pixels"===d?(G.y=z,G.t=$*te,G.b=$*re):(G.t=G.b=0,G.yt=z+s*te,G.yb=z-s*re),"pixels"===w?(G.x=j,G.l=x*Z,G.r=x*Q):(G.l=oe*Z,G.r=oe*Q,G.xl=j-y*Z,G.xr=j+y*Q)):("pixels"===d?(G.x=j,G.l=$*Z,G.r=$*Q):(G.l=G.r=0,G.xl=j+s*Z,G.xr=j-s*Q),"pixels"===w?(G.y=1-z,G.t=x*te,G.b=x*re):(G.t=oe*te,G.b=oe*re,G.yt=z-y*te,G.yb=z+y*re)),i.autoMargin(r,t._id,G)}return c.syncOrAsync([i.previousPromises,me,xe,be,i.previousPromises,we],r)}(r,t,e);y&&y.then&&(e._promises||[]).push(y),e._context.edits.colorbarPosition&&function(e,t,r){var n,a,i,l="v"===t.orientation,c=r._fullLayout._size;s.init({element:e.node(),gd:r,prepFn:function(){n=e.attr("transform"),d(e)},moveFn:function(r,o){e.attr("transform",n+u(r,o)),a=s.align((l?t._uFrac:t._vFrac)+r/c.w,l?t._thickFrac:t._lenFrac,0,1,t.xanchor),i=s.align((l?t._vFrac:1-t._uFrac)-o/c.h,l?t._lenFrac:t._thickFrac,0,1,t.yanchor);var f=s.getCursor(a,i,t.xanchor,t.yanchor);d(e,f)},doneFn:function(){if(d(e),void 0!==a&&void 0!==i){var n={};n[t._propPrefix+"x"]=a,n[t._propPrefix+"y"]=i,void 0!==t._traceIndex?o.call("_guiRestyle",r,n,t._traceIndex):o.call("_guiRelayout",r,n)}}})}(r,t,e)})),t.exit().each((function(t){i.autoMargin(e,t._id)})).remove(),t.order()}}},function(e,t,r){"use strict";e.exports={cn:{colorbar:"colorbar",cbbg:"cbbg",cbfill:"cbfill",cbfills:"cbfills",cbline:"cbline",cblines:"cblines",cbaxis:"cbaxis",cbtitleunshift:"cbtitleunshift",cbtitle:"cbtitle",cboutline:"cboutline",crisp:"crisp",jsPlaceholder:"js-placeholder"}}},function(e,t,r){"use strict";e.exports={moduleType:"locale",name:"en",dictionary:{"Click to enter Colorscale title":"Click to enter Colourscale title"},format:{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"],periods:["AM","PM"],dateTime:"%a %b %e %X %Y",date:"%d/%m/%Y",time:"%H:%M:%S",decimal:".",thousands:",",grouping:[3],currency:["$",""],year:"%Y",month:"%b %Y",dayMonth:"%b %-d",dayMonthYear:"%b %-d, %Y"}}},function(e,t,r){"use strict";e.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}},function(e,t,r){"use strict";var n=r(78),a={getDelay:n.getDelay,getRedrawFunc:n.getRedrawFunc,clone:r(302),toSVG:r(180),svgToImg:r(181),toImage:r(622),downloadImage:r(277)};e.exports=a},function(e,t,r){"use strict";var n=r(165).EventEmitter,a=r(5),i=r(0),o=r(78),l=r(302),s=r(180),c=r(181);e.exports=function(e,t){var r=new n,u=l(e,{format:"png"}),f=u.gd;f.style.position="absolute",f.style.left="-5000px",document.body.appendChild(f);var d=o.getRedrawFunc(f);return a.call("_doPlot",f,u.data,u.layout,u.config).then(d).then((function(){var e=o.getDelay(f._fullLayout);setTimeout((function(){var e=s(f),n=document.createElement("canvas");n.id=i.randstr(),(r=c({format:t.format,width:f._fullLayout.width,height:f._fullLayout.height,canvas:n,emitter:r,svg:e})).clean=function(){f&&document.body.removeChild(f)}}),e)})).catch((function(e){r.emit("error",e)})),r}},function(e,t,r){"use strict";e.exports={attributes:r(102),layoutAttributes:r(192),supplyDefaults:r(82).supplyDefaults,crossTraceDefaults:r(82).crossTraceDefaults,supplyLayoutDefaults:r(304),calc:r(624),crossTraceCalc:r(305).crossTraceCalc,colorbar:r(101),arraysToCalcdata:r(193),plot:r(194).plot,style:r(68).style,styleOnSelect:r(68).styleOnSelect,hoverPoints:r(306).hoverPoints,eventData:r(626),selectPoints:r(307),moduleType:"trace",name:"bar",basePlotModule:r(80),categories:["bar-like","cartesian","svg","bar","oriented","errorBarsOK","showLegend","zoomScale"],animatable:!0,meta:{description:["The data visualized by the span of the bars is set in `y`","if `orientation` is set th *v* (the default)","and the labels are set in `x`.","By setting `orientation` to *h*, the roles are interchanged."].join(" ")}}},function(e,t,r){"use strict";var n=r(14),a=r(127),i=r(39).hasColorscale,o=r(167),l=r(193),s=r(285);e.exports=function(e,t){var r,c,u,f,d,p,h=n.getFromId(e,t.xaxis||"x"),g=n.getFromId(e,t.yaxis||"y"),v={msUTC:!(!t.base&&0!==t.base)};"h"===t.orientation?(r=h.makeCalcdata(t,"x",v),u=g.makeCalcdata(t,"y"),f=a(t,g,"y",u),d=!!t.yperiodalignment,p="y"):(r=g.makeCalcdata(t,"y",v),u=h.makeCalcdata(t,"x"),f=a(t,h,"x",u),d=!!t.xperiodalignment,p="x"),c=f.vals;for(var y=Math.min(c.length,r.length),m=new Array(y),b=0;b<y;b++)m[b]={p:c[b],s:r[b]},d&&(m[b].orig_p=u[b],m[b][p+"End"]=f.ends[b],m[b][p+"Start"]=f.starts[b]),t.ids&&(m[b].id=String(t.ids[b]));return i(t,"marker")&&o(e,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),i(t,"marker.line")&&o(e,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}),l(m,t),s(m,t),m}},function(e,t,r){"use strict";e.exports=i;var n=r(0).distinctVals,a=r(19).BADNUM;function i(e,t){this.traces=e,this.sepNegVal=t.sepNegVal,this.overlapNoMerge=t.overlapNoMerge;for(var r=1/0,i=[],o=0;o<e.length;o++){for(var l=e[o],s=0;s<l.length;s++){var c=l[s];c.p!==a&&i.push(c.p)}l[0]&&l[0].width1&&(r=Math.min(l[0].width1,r))}this.positions=i;var u=n(i);this.distinctPositions=u.vals,1===u.vals.length&&r!==1/0?this.minDiff=r:this.minDiff=Math.min(u.minDiff,r);var f=(t.posAxis||{}).type;"category"!==f&&"multicategory"!==f||(this.minDiff=1),this.binWidth=this.minDiff,this.bins={}}i.prototype.put=function(e,t){var r=this.getLabel(e,t),n=this.bins[r]||0;return this.bins[r]=n+t,n},i.prototype.get=function(e,t){var r=this.getLabel(e,t);return this.bins[r]||0},i.prototype.getLabel=function(e,t){return(t<0&&this.sepNegVal?"v":"^")+(this.overlapNoMerge?e:Math.round(e/this.binWidth))}},function(e,t,r){"use strict";e.exports=function(e,t,r){return e.x="xVal"in t?t.xVal:t.x,e.y="yVal"in t?t.yVal:t.y,t.xa&&(e.xaxis=t.xa),t.ya&&(e.yaxis=t.ya),"h"===r.orientation?(e.label=e.y,e.value=e.x):(e.label=e.x,e.value=e.y),e}},function(e,t,r){"use strict";e.exports={attributes:r(308),layoutAttributes:r(192),supplyDefaults:r(630),crossTraceDefaults:r(631),supplyLayoutDefaults:r(304),calc:r(632).calc,crossTraceCalc:r(305).crossTraceCalc,plot:r(194).plot,layerName:"barlayer",style:r(68).style,styleOnSelect:r(68).styleOnSelect,colorbar:r(101),hoverPoints:r(637),selectPoints:r(307),eventData:r(638),moduleType:"trace",name:"histogram",basePlotModule:r(80),categories:["bar-like","cartesian","svg","bar","histogram","oriented","errorBarsOK","showLegend"],meta:{description:["The sample data from which statistics are computed is set in `x`","for vertically spanning histograms and","in `y` for horizontally spanning histograms.","Binning options are set `xbins` and `ybins` respectively","if no aggregation data is provided."].join(" ")}}},function(e,t,r){"use strict";e.exports=function(e,t){return{start:{valType:"any",editType:"calc",description:["Sets the starting value for the",e,"axis bins. Defaults to the minimum data value,","shifted down if necessary to make nice round values","and to remove ambiguous bin edges. For example, if most of the","data is integers we shift the bin edges 0.5 down, so a `size`","of 5 would have a default `start` of -0.5, so it is clear","that 0-4 are in the first bin, 5-9 in the second, but","continuous data gets a start of 0 and bins [0,5), [5,10) etc.","Dates behave similarly, and `start` should be a date string.","For category data, `start` is based on the category serial","numbers, and defaults to -0.5.",t?"If multiple non-overlaying histograms share a subplot, the first explicit `start` is used exactly and all others are shifted down (if necessary) to differ from that one by an integer number of bins.":""].join(" ")},end:{valType:"any",editType:"calc",description:["Sets the end value for the",e,"axis bins. The last bin may not end exactly at this value,","we increment the bin edge by `size` from `start` until we","reach or exceed `end`. Defaults to the maximum data value.","Like `start`, for dates use a date string, and for category","data `end` is based on the category serial numbers."].join(" ")},size:{valType:"any",editType:"calc",description:["Sets the size of each",e,"axis bin.","Default behavior: If `nbins"+e+"` is 0 or omitted,","we choose a nice round bin size such that the number of bins","is about the same as the typical number of samples in each bin.","If `nbins"+e+"` is provided, we choose a nice round","bin size giving no more than that many bins.","For date data, use milliseconds or *M<n>* for months, as in","`axis.dtick`. For category data, the number of categories to","bin together (always defaults to 1).",t?"If multiple non-overlaying histograms share a subplot, the first explicit `size` is used and all others discarded. If no `size` is provided,the sample data from all traces is combined to determine `size` as described above.":""].join(" ")},editType:"calc"}}},function(e,t,r){"use strict";e.exports={eventDataKeys:["binNumber"]}},function(e,t,r){"use strict";var n=r(5),a=r(0),i=r(8),o=r(82).handleText,l=r(303),s=r(308);e.exports=function(e,t,r,c){function u(r,n){return a.coerce(e,t,s,r,n)}var f=u("x"),d=u("y");u("cumulative.enabled")&&(u("cumulative.direction"),u("cumulative.currentbin")),u("text");var p=u("textposition");o(e,t,c,u,p,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),u("hovertext"),u("hovertemplate"),u("xhoverformat"),u("yhoverformat");var h=u("orientation",d&&!f?"h":"v"),g="v"===h?"x":"y",v="v"===h?"y":"x",y=f&&d?Math.min(a.minRowLength(f)&&a.minRowLength(d)):a.minRowLength(t[g]||[]);if(y){t._length=y,n.getComponentMethod("calendars","handleTraceDefaults")(e,t,["x","y"],c),t[v]&&u("histfunc"),u("histnorm"),u("autobin"+g),l(e,t,u,r,c),a.coerceSelectionMarkerOpacity(t,u);var m=(t.marker.line||{}).color,b=n.getComponentMethod("errorbars","supplyDefaults");b(e,t,m||i.defaultLine,{axis:"y"}),b(e,t,m||i.defaultLine,{axis:"x",inherit:"y"})}else t.visible=!1}},function(e,t,r){"use strict";var n=r(0),a=r(21),i=r(5).traceIs,o=r(82).handleGroupingDefaults,l=n.nestedProperty,s=r(100).getAxisGroup,c=[{aStr:{x:"xbins.start",y:"ybins.start"},name:"start"},{aStr:{x:"xbins.end",y:"ybins.end"},name:"end"},{aStr:{x:"xbins.size",y:"ybins.size"},name:"size"},{aStr:{x:"nbinsx",y:"nbinsy"},name:"nbins"}],u=["x","y"];e.exports=function(e,t){var r,f,d,p,h,g,v,y=t._histogramBinOpts={},m=[],b={},x=[];function w(e,t){return n.coerce(r._input,r,r._module.attributes,e,t)}function _(e){return"v"===e.orientation?"x":"y"}function k(e,r,i){var o=e.uid+"__"+i;r||(r=o);var l=function(e,r){return a.getFromTrace({_fullLayout:t},e,r).type}(e,i),s=e[i+"calendar"]||"",c=y[r],u=!0;c&&(l===c.axType&&s===c.calendar?(u=!1,c.traces.push(e),c.dirs.push(i)):(r=o,l!==c.axType&&n.warn(["Attempted to group the bins of trace",e.index,"set on a","type:"+l,"axis","with bins on","type:"+c.axType,"axis."].join(" ")),s!==c.calendar&&n.warn(["Attempted to group the bins of trace",e.index,"set with a",s,"calendar","with bins",c.calendar?"on a "+c.calendar+" calendar":"w/o a set calendar"].join(" ")))),u&&(y[r]={traces:[e],dirs:[i],axType:l,calendar:e[i+"calendar"]||""}),e["_"+i+"bingroup"]=r}for(h=0;h<e.length;h++)r=e[h],i(r,"histogram")&&(m.push(r),delete r._xautoBinFinished,delete r._yautoBinFinished,i(r,"2dMap")||o(r._input,r,t,w));var T=t._alignmentOpts||{};for(h=0;h<m.length;h++){if(r=m[h],d="",!i(r,"2dMap")){if(p=_(r),"group"===t.barmode&&r.alignmentgroup){var A=r[p+"axis"],S=s(t,A)+r.orientation;(T[S]||{})[r.alignmentgroup]&&(d=S)}d||"overlay"===t.barmode||(d=s(t,r.xaxis)+s(t,r.yaxis)+_(r))}d?(b[d]||(b[d]=[]),b[d].push(r)):x.push(r)}for(d in b)if(1!==(f=b[d]).length){var M=!1;for(f.length&&(r=f[0],M=w("bingroup")),d=M||d,h=0;h<f.length;h++){var O=(r=f[h])._input.bingroup;O&&O!==d&&n.warn(["Trace",r.index,"must match","within bingroup",d+".","Ignoring its bingroup:",O,"setting."].join(" ")),r.bingroup=d,k(r,d,_(r))}}else x.push(f[0]);for(h=0;h<x.length;h++){r=x[h];var C=w("bingroup");if(i(r,"2dMap"))for(v=0;v<2;v++){var E=w((p=u[v])+"bingroup",C?C+"__"+p:null);k(r,E,p)}else k(r,C,_(r))}for(d in y){var L=y[d];for(f=L.traces,g=0;g<c.length;g++){var P,j,z=c[g],D=z.name;if("nbins"!==D||!L.sizeFound){for(h=0;h<f.length;h++){if(r=f[h],p=L.dirs[h],P=z.aStr[p],void 0!==l(r._input,P).get()){L[D]=w(P),L[D+"Found"]=!0;break}(j=(r._autoBin||{})[p]||{})[D]&&l(r,P).set(j[D])}if("start"===D||"end"===D)for(;h<f.length;h++)(r=f[h])["_"+p+"bingroup"]&&w(P,(j=(r._autoBin||{})[p]||{})[D]);"nbins"!==D||L.sizeFound||L.nbinsFound||(r=f[0],L[D]=w(P))}}}}},function(e,t,r){"use strict";var n=r(9),a=r(0),i=r(5),o=r(14),l=r(193),s=r(633),c=r(634),u=r(635),f=r(636);function d(e,t,r,l,s){var c,u,f,p,h,g,v,y=l+"bins",m=e._fullLayout,b=t["_"+l+"bingroup"],x=m._histogramBinOpts[b],w="overlay"===m.barmode,_=function(e){return r.r2c(e,0,p)},k=function(e){return r.c2r(e,0,p)},T="date"===r.type?function(e){return e||0===e?a.cleanDate(e,null,p):null}:function(e){return n(e)?Number(e):null};function A(e,t,r){t[e+"Found"]?(t[e]=T(t[e]),null===t[e]&&(t[e]=r[e])):(g[e]=t[e]=r[e],a.nestedProperty(u[0],y+"."+e).set(r[e]))}if(t["_"+l+"autoBinFinished"])delete t["_"+l+"autoBinFinished"];else{u=x.traces;var S=[],M=!0,O=!1,C=!1;for(c=0;c<u.length;c++)if((f=u[c]).visible){var E=x.dirs[c];h=f["_"+E+"pos0"]=r.makeCalcdata(f,E),S=a.concat(S,h),delete f["_"+l+"autoBinFinished"],!0===t.visible&&(M?M=!1:(delete f._autoBin,f["_"+l+"autoBinFinished"]=1),i.traceIs(f,"2dMap")&&(O=!0),"histogram2dcontour"===f.type&&(C=!0))}p=u[0][l+"calendar"];var L=o.autoBin(S,r,x.nbins,O,p,x.sizeFound&&x.size),P=u[0]._autoBin={};if(g=P[x.dirs[0]]={},C&&(x.size||(L.start=k(o.tickIncrement(_(L.start),L.size,!0,p))),void 0===x.end&&(L.end=k(o.tickIncrement(_(L.end),L.size,!1,p)))),w&&!i.traceIs(t,"2dMap")&&0===L._dataSpan&&"category"!==r.type&&"multicategory"!==r.type){if(s)return[L,h,!0];L=function(e,t,r,n,i){var o,l,s,c=e._fullLayout,u=function(e,t){for(var r=t.xaxis,n=t.yaxis,a=t.orientation,i=[],o=e._fullData,l=0;l<o.length;l++){var s=o[l];"histogram"===s.type&&!0===s.visible&&s.orientation===a&&s.xaxis===r&&s.yaxis===n&&i.push(s)}return i}(e,t),f=!1,p=1/0,h=[t];for(o=0;o<u.length;o++)if((l=u[o])===t)f=!0;else if(f){var g=d(e,l,r,n,!0),v=g[0],y=g[2];l["_"+n+"autoBinFinished"]=1,l["_"+n+"pos0"]=g[1],y?h.push(l):p=Math.min(p,v.size)}else s=c._histogramBinOpts[l["_"+n+"bingroup"]],p=Math.min(p,s.size||l[i].size);var m=new Array(h.length);for(o=0;o<h.length;o++)for(var b=h[o]["_"+n+"pos0"],x=0;x<b.length;x++)if(void 0!==b[x]){m[o]=b[x];break}isFinite(p)||(p=a.distinctVals(m).minDiff);for(o=0;o<h.length;o++){var w=(l=h[o])[n+"calendar"],_={start:r.c2r(m[o]-p/2,0,w),end:r.c2r(m[o]+p/2,0,w),size:p};l._input[i]=l[i]=_,(s=c._histogramBinOpts[l["_"+n+"bingroup"]])&&a.extendFlat(s,_)}return t[i]}(e,t,r,l,y)}(v=f.cumulative||{}).enabled&&"include"!==v.currentbin&&("decreasing"===v.direction?L.start=k(o.tickIncrement(_(L.start),L.size,!0,p)):L.end=k(o.tickIncrement(_(L.end),L.size,!1,p))),x.size=L.size,x.sizeFound||(g.size=L.size,a.nestedProperty(u[0],y+".size").set(L.size)),A("start",x,L),A("end",x,L)}h=t["_"+l+"pos0"],delete t["_"+l+"pos0"];var j=t._input[y]||{},z=a.extendFlat({},x),D=x.start,I=r.r2l(j.start),N=void 0!==I;if((x.startFound||N)&&I!==r.r2l(D)){var R=N?I:a.aggNums(Math.min,null,h),F={type:"category"===r.type||"multicategory"===r.type?"linear":r.type,r2l:r.r2l,dtick:x.size,tick0:D,calendar:p,range:[R,o.tickIncrement(R,x.size,!1,p)].map(r.l2r)},B=o.tickFirst(F);B>r.r2l(R)&&(B=o.tickIncrement(B,x.size,!0,p)),z.start=r.l2r(B),N||a.nestedProperty(t,y+".start").set(z.start)}var U=x.end,H=r.r2l(j.end),V=void 0!==H;if((x.endFound||V)&&H!==r.r2l(U)){var q=V?H:a.aggNums(Math.max,null,h);z.end=r.l2r(q),V||a.nestedProperty(t,y+".start").set(z.end)}var W="autobin"+l;return!1===t._input[W]&&(t._input[y]=a.extendFlat({},t[y]||{}),delete t._input[W],delete t[W]),[z,h]}e.exports={calc:function(e,t){var r,i,p,h,g=[],v=[],y="h"===t.orientation,m=o.getFromId(e,y?t.yaxis:t.xaxis),b=y?"y":"x",x={x:"y",y:"x"}[b],w=t[b+"calendar"],_=t.cumulative,k=d(e,t,m,b),T=k[0],A=k[1],S="string"===typeof T.size,M=[],O=S?M:T,C=[],E=[],L=[],P=0,j=t.histnorm,z=t.histfunc,D=-1!==j.indexOf("density");_.enabled&&D&&(j=j.replace(/ ?density$/,""),D=!1);var I,N="max"===z||"min"===z?null:0,R=s.count,F=c[j],B=!1,U=function(e){return m.r2c(e,0,w)};for(a.isArrayOrTypedArray(t[x])&&"count"!==z&&(I=t[x],B="avg"===z,R=s[z]),r=U(T.start),p=U(T.end)+(r-o.tickIncrement(r,T.size,!1,w))/1e6;r<p&&g.length<1e6&&(i=o.tickIncrement(r,T.size,!1,w),g.push((r+i)/2),v.push(N),L.push([]),M.push(r),D&&C.push(1/(i-r)),B&&E.push(0),!(i<=r));)r=i;M.push(r),S||"date"!==m.type||(O={start:U(O.start),end:U(O.end),size:O.size}),e._fullLayout._roundFnOpts||(e._fullLayout._roundFnOpts={});var H=t["_"+b+"bingroup"],V={leftGap:1/0,rightGap:1/0};H&&(e._fullLayout._roundFnOpts[H]||(e._fullLayout._roundFnOpts[H]=V),V=e._fullLayout._roundFnOpts[H]);var q,W=v.length,Y=!0,G=V.leftGap,X=V.rightGap,Z={};for(r=0;r<A.length;r++){var $=A[r];(h=a.findBin($,O))>=0&&h<W&&(P+=R(h,r,v,I,E),Y&&L[h].length&&$!==A[L[h][0]]&&(Y=!1),L[h].push(r),Z[r]=h,G=Math.min(G,$-M[h]),X=Math.min(X,M[h+1]-$))}V.leftGap=G,V.rightGap=X,Y||(q=function(t,r){return function(){var n=e._fullLayout._roundFnOpts[H];return f(n.leftGap,n.rightGap,M,m,w)(t,r)}}),B&&(P=u(v,E)),F&&F(v,P,C),_.enabled&&function(e,t,r){var n,a,i;function o(t){i=e[t],e[t]/=2}function l(t){a=e[t],e[t]=i+a/2,i+=a}if("half"===r)if("increasing"===t)for(o(0),n=1;n<e.length;n++)l(n);else for(o(e.length-1),n=e.length-2;n>=0;n--)l(n);else if("increasing"===t){for(n=1;n<e.length;n++)e[n]+=e[n-1];"exclude"===r&&(e.unshift(0),e.pop())}else{for(n=e.length-2;n>=0;n--)e[n]+=e[n+1];"exclude"===r&&(e.push(0),e.shift())}}(v,_.direction,_.currentbin);var Q=Math.min(g.length,v.length),K=[],J=0,ee=Q-1;for(r=0;r<Q;r++)if(v[r]){J=r;break}for(r=Q-1;r>=J;r--)if(v[r]){ee=r;break}for(r=J;r<=ee;r++)if(n(g[r])&&n(v[r])){var te={p:g[r],s:v[r],b:0};_.enabled||(te.pts=L[r],Y?te.ph0=te.ph1=L[r].length?A[L[r][0]]:g[r]:(t._computePh=!0,te.ph0=q(M[r]),te.ph1=q(M[r+1],!0))),K.push(te)}return 1===K.length&&(K[0].width1=o.tickIncrement(K[0].p,T.size,!1,w)-K[0].p),l(K,t),a.isArrayOrTypedArray(t.selectedpoints)&&a.tagSelected(K,t,Z),K},calcAllAutoBins:d}},function(e,t,r){"use strict";var n=r(9);e.exports={count:function(e,t,r){return r[e]++,1},sum:function(e,t,r,a){var i=a[t];return n(i)?(i=Number(i),r[e]+=i,i):0},avg:function(e,t,r,a,i){var o=a[t];return n(o)&&(o=Number(o),r[e]+=o,i[e]++),0},min:function(e,t,r,a){var i=a[t];if(n(i)){if(i=Number(i),!n(r[e]))return r[e]=i,i;if(r[e]>i){var o=i-r[e];return r[e]=i,o}}return 0},max:function(e,t,r,a){var i=a[t];if(n(i)){if(i=Number(i),!n(r[e]))return r[e]=i,i;if(r[e]<i){var o=i-r[e];return r[e]=i,o}}return 0}}},function(e,t,r){"use strict";e.exports={percent:function(e,t){for(var r=e.length,n=100/t,a=0;a<r;a++)e[a]*=n},probability:function(e,t){for(var r=e.length,n=0;n<r;n++)e[n]/=t},density:function(e,t,r,n){var a=e.length;n=n||1;for(var i=0;i<a;i++)e[i]*=r[i]*n},"probability density":function(e,t,r,n){var a=e.length;n&&(t/=n);for(var i=0;i<a;i++)e[i]*=r[i]/t}}},function(e,t,r){"use strict";e.exports=function(e,t){for(var r=e.length,n=0,a=0;a<r;a++)t[a]?(e[a]/=t[a],n+=e[a]):e[a]=null;return n}},function(e,t,r){"use strict";var n=r(19),a=n.ONEAVGYEAR,i=n.ONEAVGMONTH,o=n.ONEDAY,l=n.ONEHOUR,s=n.ONEMIN,c=n.ONESEC,u=r(14).tickIncrement;function f(e,t,r,n){if(e*t<=0)return 1/0;for(var a=Math.abs(t-e),i="date"===r.type,o=d(a,i),l=0;l<10;l++){var s=d(80*o,i);if(o===s)break;if(!p(s,e,t,i,r,n))break;o=s}return o}function d(e,t){return t&&e>c?e>o?e>1.1*a?a:e>1.1*i?i:o:e>l?l:e>s?s:c:Math.pow(10,Math.floor(Math.log(e)/Math.LN10))}function p(e,t,r,n,i,l){if(n&&e>o){var s=h(t,i,l),c=h(r,i,l),u=e===a?0:1;return s[u]!==c[u]}return Math.floor(r/e)-Math.floor(t/e)>.1}function h(e,t,r){var n=t.c2d(e,a,r).split("-");return""===n[0]&&(n.unshift(),n[0]="-"+n[0]),n}e.exports=function(e,t,r,n,i){var l,s,c=-1.1*t,d=-.1*t,p=e-d,h=r[0],g=r[1],v=Math.min(f(h+d,h+p,n,i),f(g+d,g+p,n,i)),y=Math.min(f(h+c,h+d,n,i),f(g+c,g+d,n,i));if(v>y&&y<Math.abs(g-h)/4e3?(l=v,s=!1):(l=Math.min(v,y),s=!0),"date"===n.type&&l>o){var m=l===a?1:6,b=l===a?"M12":"M1";return function(t,r){var o=n.c2d(t,a,i),l=o.indexOf("-",m);l>0&&(o=o.substr(0,l));var c=n.d2c(o,0,i);if(c<t){var f=u(c,b,!1,i);(c+f)/2<t+e&&(c=f)}return r&&s?u(c,b,!0,i):c}}return function(t,r){var n=l*Math.round(t/l);return n+l/10<t&&n+.9*l<t+e&&(n+=l),r&&s&&(n-=l),n}}},function(e,t,r){"use strict";var n=r(306).hoverPoints,a=r(14).hoverLabelText;e.exports=function(e,t,r,i,o){var l=n(e,t,r,i,o);if(l){var s=(e=l[0]).cd[e.index],c=e.cd[0].trace;if(!c.cumulative.enabled){var u="h"===c.orientation?"y":"x";e[u+"Label"]=a(e[u+"a"],[s.ph0,s.ph1],c[u+"hoverformat"])}return l}}},function(e,t,r){"use strict";e.exports=function(e,t,r,n,a){if(e.x="xVal"in t?t.xVal:t.x,e.y="yVal"in t?t.yVal:t.y,"zLabelVal"in t&&(e.z=t.zLabelVal),t.xa&&(e.xaxis=t.xa),t.ya&&(e.yaxis=t.ya),!(r.cumulative||{}).enabled){var i,o=Array.isArray(a)?n[0].pts[a[0]][a[1]]:n[a].pts;if(e.pointNumbers=o,e.binNumber=e.pointNumber,delete e.pointNumber,delete e.pointIndex,r._indexToPoints){i=[];for(var l=0;l<o.length;l++)i=i.concat(r._indexToPoints[o[l]])}else i=o;e.pointIndices=i}return e}},function(e,t,r){"use strict";e.exports={attributes:r(130),supplyDefaults:r(640).supplyDefaults,supplyLayoutDefaults:r(641),layoutAttributes:r(309),calc:r(131).calc,crossTraceCalc:r(131).crossTraceCalc,plot:r(310).plot,style:r(643),styleOne:r(170),moduleType:"trace",name:"pie",basePlotModule:r(644),categories:["pie-like","pie","showLegend"],meta:{description:["A data visualized by the sectors of the pie is set in `values`.","The sector labels are set in `labels`.","The sector colors are set in `marker.colors`"].join(" ")}}},function(e,t,r){"use strict";var n=r(9),a=r(0),i=r(130),o=r(81).defaults,l=r(82).handleText;function s(e,t){var r=Array.isArray(e),i=a.isArrayOrTypedArray(t),o=Math.min(r?e.length:1/0,i?t.length:1/0);if(isFinite(o)||(o=0),o&&i){for(var l,s=0;s<o;s++){var c=t[s];if(n(c)&&c>0){l=!0;break}}l||(o=0)}return{hasLabels:r,hasValues:i,len:o}}e.exports={handleLabelsAndValues:s,supplyDefaults:function(e,t,r,n){function c(r,n){return a.coerce(e,t,i,r,n)}var u=s(c("labels"),c("values")),f=u.len;if(t._hasLabels=u.hasLabels,t._hasValues=u.hasValues,!t._hasLabels&&t._hasValues&&(c("label0"),c("dlabel")),f){t._length=f,c("marker.line.width")&&c("marker.line.color"),c("marker.colors"),c("scalegroup");var d,p=c("text"),h=c("texttemplate");if(h||(d=c("textinfo",Array.isArray(p)?"text+percent":"percent")),c("hovertext"),c("hovertemplate"),h||d&&"none"!==d){var g=c("textposition");l(e,t,n,c,g,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),(Array.isArray(g)||"auto"===g||"outside"===g)&&c("automargin"),("inside"===g||"auto"===g||Array.isArray(g))&&c("insidetextorientation")}o(t,n,c);var v=c("hole");if(c("title.text")){var y=c("title.position",v?"middle center":"top center");v||"middle center"!==y||(t.title.position="top center"),a.coerceFont(c,"title.font",n.font)}c("sort"),c("direction"),c("rotation"),c("pull")}else t.visible=!1}}},function(e,t,r){"use strict";var n=r(0),a=r(309);e.exports=function(e,t){function r(r,i){return n.coerce(e,t,a,r,i)}r("hiddenlabels"),r("piecolorway",t.colorway),r("extendpiecolors")}},function(e,t,r){"use strict";var n=r(40).appendArrayMultiPointValues;e.exports=function(e,t){var r={curveNumber:t.index,pointNumbers:e.pts,data:t._input,fullData:t,label:e.label,color:e.color,value:e.v,percent:e.percent,text:e.text,bbox:e.bbox,v:e.v};return 1===e.pts.length&&(r.pointNumber=r.i=e.pts[0]),n(r,t,e.pts),"funnelarea"===t.type&&(delete r.v,delete r.i),r}},function(e,t,r){"use strict";var n=r(7),a=r(170),i=r(51).resizeText;e.exports=function(e){var t=e._fullLayout._pielayer.selectAll(".trace");i(e,t,"pie"),t.each((function(e){var t=e[0].trace,r=n.select(this);r.style({opacity:t.opacity}),r.selectAll("path.surface").each((function(e){n.select(this).call(a,e,t)}))}))}},function(e,t,r){"use strict";var n=r(20);t.name="pie",t.plot=function(e,r,a,i){n.plotBasePlot(t.name,e,r,a,i)},t.clean=function(e,r,a,i){n.cleanBasePlot(t.name,e,r,a,i)}},function(e,t,r){"use strict";e.exports={moduleType:"trace",name:"ohlc",basePlotModule:r(80),categories:["cartesian","svg","showLegend"],meta:{description:["The ohlc (short for Open-High-Low-Close) is a style of financial chart describing","open, high, low and close for a given `x` coordinate (most likely time).","The tip of the lines represent the `low` and `high` values and","the horizontal segments represent the `open` and `close` values.","Sample points where the close value is higher (lower) then the open","value are called increasing (decreasing).","By default, increasing items are drawn in green whereas","decreasing are drawn in red."].join(" ")},attributes:r(311),supplyDefaults:r(646),calc:r(648).calc,plot:r(649),style:r(650),hoverPoints:r(651).hoverPoints,selectPoints:r(652)}},function(e,t,r){"use strict";var n=r(0),a=r(647),i=r(126),o=r(311);function l(e,t,r,n){r(n+".line.color"),r(n+".line.width",t.line.width),r(n+".line.dash",t.line.dash)}e.exports=function(e,t,r,s){function c(r,a){return n.coerce(e,t,o,r,a)}a(e,t,c,s)?(i(e,t,s,c,{x:!0}),c("xhoverformat"),c("yhoverformat"),c("line.width"),c("line.dash"),l(e,t,c,"increasing"),l(e,t,c,"decreasing"),c("text"),c("hovertext"),c("tickwidth"),s._requestRangeslider[t.xaxis]=!0):t.visible=!1}},function(e,t,r){"use strict";var n=r(5),a=r(0);e.exports=function(e,t,r,i){var o=r("x"),l=r("open"),s=r("high"),c=r("low"),u=r("close");if(r("hoverlabel.split"),n.getComponentMethod("calendars","handleTraceDefaults")(e,t,["x"],i),l&&s&&c&&u){var f=Math.min(l.length,s.length,c.length,u.length);return o&&(f=Math.min(f,a.minRowLength(o))),t._length=f,f}}},function(e,t,r){"use strict";var n=r(0),a=n._,i=r(14),o=r(127),l=r(19).BADNUM;function s(e,t,r,n){return{o:e,h:t,l:r,c:n}}function c(e,t,r,o,s,c){for(var u=s.makeCalcdata(t,"open"),f=s.makeCalcdata(t,"high"),d=s.makeCalcdata(t,"low"),p=s.makeCalcdata(t,"close"),h=Array.isArray(t.text),g=Array.isArray(t.hovertext),v=!0,y=null,m=!!t.xperiodalignment,b=[],x=0;x<o.length;x++){var w=o[x],_=u[x],k=f[x],T=d[x],A=p[x];if(w!==l&&_!==l&&k!==l&&T!==l&&A!==l){A===_?null!==y&&A!==y&&(v=A>y):v=A>_,y=A;var S=c(_,k,T,A);S.pos=w,S.yc=(_+A)/2,S.i=x,S.dir=v?"increasing":"decreasing",S.x=S.pos,S.y=[T,k],m&&(S.orig_p=r[x]),h&&(S.tx=t.text[x]),g&&(S.htx=t.hovertext[x]),b.push(S)}else b.push({pos:w,empty:!0})}return t._extremes[s._id]=i.findExtremes(s,n.concat(d,f),{padded:!0}),b.length&&(b[0].t={labels:{open:a(e,"open:")+" ",high:a(e,"high:")+" ",low:a(e,"low:")+" ",close:a(e,"close:")+" "}}),b}e.exports={calc:function(e,t){var r=i.getFromId(e,t.xaxis),a=i.getFromId(e,t.yaxis),l=function(e,t,r){var a=r._minDiff;if(!a){var i,l=e._fullData,s=[];for(a=1/0,i=0;i<l.length;i++){var c=l[i];if("ohlc"===c.type&&!0===c.visible&&c.xaxis===t._id){s.push(c);var u=t.makeCalcdata(c,"x");c._origX=u;var f=o(r,t,"x",u).vals;c._xcalc=f;var d=n.distinctVals(f).minDiff;d&&isFinite(d)&&(a=Math.min(a,d))}}for(a===1/0&&(a=1),i=0;i<s.length;i++)s[i]._minDiff=a}return a*r.tickwidth}(e,r,t),u=t._minDiff;t._minDiff=null;var f=t._origX;t._origX=null;var d=t._xcalc;t._xcalc=null;var p=c(e,t,f,d,a,s);return t._extremes[r._id]=i.findExtremes(r,d,{vpad:u/2}),p.length?(n.extendFlat(p[0].t,{wHover:u/2,tickLen:l}),p):[{t:{empty:!0}}]},calcCommon:c}},function(e,t,r){"use strict";var n=r(7),a=r(0);e.exports=function(e,t,r,i){var o=t.yaxis,l=t.xaxis,s=!!l.rangebreaks;a.makeTraceGroups(i,r,"trace ohlc").each((function(e){var t=n.select(this),r=e[0],i=r.t;if(!0!==r.trace.visible||i.empty)t.remove();else{var c=i.tickLen,u=t.selectAll("path").data(a.identity);u.enter().append("path"),u.exit().remove(),u.attr("d",(function(e){if(e.empty)return"M0,0Z";var t=l.c2p(e.pos-c,!0),r=l.c2p(e.pos+c,!0),n=s?(t+r)/2:l.c2p(e.pos,!0);return"M"+t+","+o.c2p(e.o,!0)+"H"+n+"M"+n+","+o.c2p(e.h,!0)+"V"+o.c2p(e.l,!0)+"M"+r+","+o.c2p(e.c,!0)+"H"+n}))}}))}},function(e,t,r){"use strict";var n=r(7),a=r(10),i=r(8);e.exports=function(e,t,r){var o=r||n.select(e).selectAll("g.ohlclayer").selectAll("g.trace");o.style("opacity",(function(e){return e[0].trace.opacity})),o.each((function(e){var t=e[0].trace;n.select(this).selectAll("path").each((function(e){if(!e.empty){var r=t[e.dir].line;n.select(this).style("fill","none").call(i.stroke,r.color).call(a.dashLine,r.dash,r.width).style("opacity",t.selectedpoints&&!e.selected?.3:1)}}))}))}},function(e,t,r){"use strict";var n=r(14),a=r(0),i=r(41),o=r(8),l=r(0).fillText,s=r(312),c={increasing:s.INCREASING.SYMBOL,decreasing:s.DECREASING.SYMBOL};function u(e,t,r,n){var a,l,s=e.cd,c=e.xa,u=s[0].trace,f=s[0].t,d=u.type,p="ohlc"===d?"l":"min",h="ohlc"===d?"h":"max",g=f.bPos||0,v=f.bdPos||f.tickLen,y=f.wHover,m=Math.min(1,v/Math.abs(c.r2c(c.range[1])-c.r2c(c.range[0])));function b(e){var r=function(e){return e.pos+g-t}(e);return i.inbox(r-y,r+y,a)}function x(e){var t=e[p],n=e[h];return t===n||i.inbox(t-r,n-r,a)}function w(e){return(b(e)+x(e))/2}a=e.maxHoverDistance-m,l=e.maxSpikeDistance-m;var _=i.getDistanceFunction(n,b,x,w);if(i.getClosest(s,_,e),!1===e.index)return null;var k=s[e.index];if(k.empty)return null;var T=u[k.dir],A=T.line.color;return o.opacity(A)&&T.line.width?e.color=A:e.color=T.fillcolor,e.x0=c.c2p(k.pos+g-v,!0),e.x1=c.c2p(k.pos+g+v,!0),e.xLabelVal=void 0!==k.orig_p?k.orig_p:k.pos,e.spikeDistance=w(k)*l/a,e.xSpike=c.c2p(k.pos,!0),e}function f(e,t,r,i){var o=e.cd,l=e.ya,s=o[0].trace,c=o[0].t,f=[],d=u(e,t,r,i);if(!d)return[];var p=o[d.index].hi||s.hoverinfo,h=p.split("+");if(!("all"===p||-1!==h.indexOf("y")))return[];for(var g=["high","open","close","low"],v={},y=0;y<g.length;y++){var m,b=g[y],x=s[b][d.index],w=l.c2p(x,!0);x in v?(m=v[x]).yLabel+="<br>"+c.labels[b]+n.hoverLabelText(l,x,s.yhoverformat):((m=a.extendFlat({},d)).y0=m.y1=w,m.yLabelVal=x,m.yLabel=c.labels[b]+n.hoverLabelText(l,x,s.yhoverformat),m.name="",f.push(m),v[x]=m)}return f}function d(e,t,r,a){var i=e.cd,o=e.ya,s=i[0].trace,f=i[0].t,d=u(e,t,r,a);if(!d)return[];var p=i[d.index],h=d.index=p.i,g=p.dir;function v(e){return f.labels[e]+n.hoverLabelText(o,s[e][h],s.yhoverformat)}var y=p.hi||s.hoverinfo,m=y.split("+"),b="all"===y,x=b||-1!==m.indexOf("y"),w=b||-1!==m.indexOf("text"),_=x?[v("open"),v("high"),v("low"),v("close")+" "+c[g]]:[];return w&&l(p,s,_),d.extraText=_.join("<br>"),d.y0=d.y1=o.c2p(p.yc,!0),[d]}e.exports={hoverPoints:function(e,t,r,n){return e.cd[0].trace.hoverlabel.split?f(e,t,r,n):d(e,t,r,n)},hoverSplit:f,hoverOnPoints:d}},function(e,t,r){"use strict";e.exports=function(e,t){var r,n=e.cd,a=e.xaxis,i=e.yaxis,o=[],l=n[0].t.bPos||0;if(!1===t)for(r=0;r<n.length;r++)n[r].selected=0;else for(r=0;r<n.length;r++){var s=n[r];t.contains([a.c2p(s.pos+l),i.c2p(s.yc)],null,s.i,e)?(o.push({pointNumber:s.i,x:a.c2d(s.pos),y:i.c2d(s.yc)}),s.selected=1):s.selected=0}return o}},function(e,t,r){"use strict";var n=r(654);n.plot=r(682),e.exports=n},function(e,t,r){"use strict";var n=r(655);e.exports={moduleType:"trace",name:"scattergl",basePlotModule:r(80),categories:["gl","regl","cartesian","symbols","errorBarsOK","showLegend","scatter-like"],attributes:r(313),supplyDefaults:r(656),crossTraceDefaults:r(282),colorbar:r(101),formatLabels:r(657),calc:r(658),hoverPoints:n.hoverPoints,selectPoints:r(681),meta:{hrName:"scatter_gl",description:["The data visualized as scatter point or lines is set in `x` and `y`","using the WebGL plotting engine.","Bubble charts are achieved by setting `marker.size` and/or `marker.color`","to a numerical arrays."].join(" ")}}},function(e,t,r){"use strict";var n=r(5),a=r(0),i=r(289);function o(e,t,r,o){var l=e.xa,s=e.ya,c=e.distance,u=e.dxy,f=e.index,d={pointNumber:f,x:t[f],y:r[f]};d.tx=Array.isArray(o.text)?o.text[f]:o.text,d.htx=Array.isArray(o.hovertext)?o.hovertext[f]:o.hovertext,d.data=Array.isArray(o.customdata)?o.customdata[f]:o.customdata,d.tp=Array.isArray(o.textposition)?o.textposition[f]:o.textposition;var p=o.textfont;p&&(d.ts=a.isArrayOrTypedArray(p.size)?p.size[f]:p.size,d.tc=Array.isArray(p.color)?p.color[f]:p.color,d.tf=Array.isArray(p.family)?p.family[f]:p.family);var h=o.marker;h&&(d.ms=a.isArrayOrTypedArray(h.size)?h.size[f]:h.size,d.mo=a.isArrayOrTypedArray(h.opacity)?h.opacity[f]:h.opacity,d.mx=a.isArrayOrTypedArray(h.symbol)?h.symbol[f]:h.symbol,d.mc=a.isArrayOrTypedArray(h.color)?h.color[f]:h.color);var g=h&&h.line;g&&(d.mlc=Array.isArray(g.color)?g.color[f]:g.color,d.mlw=a.isArrayOrTypedArray(g.width)?g.width[f]:g.width);var v=h&&h.gradient;v&&"none"!==v.type&&(d.mgt=Array.isArray(v.type)?v.type[f]:v.type,d.mgc=Array.isArray(v.color)?v.color[f]:v.color);var y=l.c2p(d.x,!0),m=s.c2p(d.y,!0),b=d.mrc||1,x=o.hoverlabel;x&&(d.hbg=Array.isArray(x.bgcolor)?x.bgcolor[f]:x.bgcolor,d.hbc=Array.isArray(x.bordercolor)?x.bordercolor[f]:x.bordercolor,d.hts=a.isArrayOrTypedArray(x.font.size)?x.font.size[f]:x.font.size,d.htc=Array.isArray(x.font.color)?x.font.color[f]:x.font.color,d.htf=Array.isArray(x.font.family)?x.font.family[f]:x.font.family,d.hnl=a.isArrayOrTypedArray(x.namelength)?x.namelength[f]:x.namelength);var w=o.hoverinfo;w&&(d.hi=Array.isArray(w)?w[f]:w);var _=o.hovertemplate;_&&(d.ht=Array.isArray(_)?_[f]:_);var k={};k[e.index]=d;var T=o._origX,A=o._origY,S=a.extendFlat({},e,{color:i(o,d),x0:y-b,x1:y+b,xLabelVal:T?T[f]:d.x,y0:m-b,y1:m+b,yLabelVal:A?A[f]:d.y,cd:k,distance:c,spikeDistance:u,hovertemplate:d.ht});return d.htx?S.text=d.htx:d.tx?S.text=d.tx:o.text&&(S.text=o.text),a.fillText(d,o,S),n.getComponentMethod("errorbars","hoverInfo")(d,o,S),S}e.exports={hoverPoints:function(e,t,r,n){var a,i,l,s,c,u,f,d,p,h,g=e.cd,v=g[0].t,y=g[0].trace,m=e.xa,b=e.ya,x=v.x,w=v.y,_=m.c2p(t),k=b.c2p(r),T=e.distance;if(v.tree){var A=m.p2c(_-T),S=m.p2c(_+T),M=b.p2c(k-T),O=b.p2c(k+T);a="x"===n?v.tree.range(Math.min(A,S),Math.min(b._rl[0],b._rl[1]),Math.max(A,S),Math.max(b._rl[0],b._rl[1])):v.tree.range(Math.min(A,S),Math.min(M,O),Math.max(A,S),Math.max(M,O))}else a=v.ids;var C=T;if("x"===n){var E=!!y.xperiodalignment,L=!!y.yperiodalignment;for(u=0;u<a.length;u++){if(s=x[i=a[u]],f=Math.abs(m.c2p(s)-_),E){var P=m.c2p(y._xStarts[i]),j=m.c2p(y._xEnds[i]);f=_>=Math.min(P,j)&&_<=Math.max(P,j)?0:1/0}if(f<C){if(C=f,c=w[i],d=b.c2p(c)-k,L){var z=b.c2p(y._yStarts[i]),D=b.c2p(y._yEnds[i]);d=k>=Math.min(z,D)&&k<=Math.max(z,D)?0:1/0}h=Math.sqrt(f*f+d*d),l=a[u]}}}else for(u=a.length-1;u>-1;u--)s=x[i=a[u]],c=w[i],f=m.c2p(s)-_,d=b.c2p(c)-k,(p=Math.sqrt(f*f+d*d))<C&&(C=h=p,l=i);return e.index=l,e.distance=C,e.dxy=h,void 0===l?[e]:[o(e,x,w,y)]},calcHover:o}},function(e,t,r){"use strict";var n=r(0),a=r(5),i=r(314),o=r(313),l=r(125),s=r(30),c=r(182),u=r(126),f=r(278),d=r(279),p=r(281),h=r(280);e.exports=function(e,t,r,g){function v(r,a){return n.coerce(e,t,o,r,a)}var y=!!e.marker&&i.isOpenSymbol(e.marker.symbol),m=s.isBubble(e),b=c(e,t,g,v);if(b){u(e,t,g,v),v("xhoverformat"),v("yhoverformat");var x=b<l.PTS_LINESONLY?"lines+markers":"lines";v("text"),v("hovertext"),v("hovertemplate"),v("mode",x),s.hasLines(t)&&(v("connectgaps"),d(e,t,r,g,v),v("line.shape")),s.hasMarkers(t)&&(f(e,t,r,g,v),v("marker.line.width",y||m?1:0)),s.hasText(t)&&(v("texttemplate"),h(e,t,g,v));var w=(t.line||{}).color,_=(t.marker||{}).color;v("fill"),"none"!==t.fill&&p(e,t,r,v);var k=a.getComponentMethod("errorbars","supplyDefaults");k(e,t,w||_||r,{axis:"y"}),k(e,t,w||_||r,{axis:"x",inherit:"y"}),n.coerceSelectionMarkerOpacity(t,v)}else t.visible=!1}},function(e,t,r){"use strict";var n=r(287);e.exports=function(e,t,r){var a=e.i;return"x"in e||(e.x=t._x[a]),"y"in e||(e.y=t._y[a]),n(e,t,r)}},function(e,t,r){"use strict";var n=r(315),a=r(0),i=r(21),o=r(98).findExtremes,l=r(127),s=r(183),c=s.calcMarkerSize,u=s.calcAxisExpansion,f=s.setFirstScatter,d=r(283),p=r(667),h=r(680),g=r(19).BADNUM,v=r(132).TOO_MANY_POINTS;function y(e,t,r){var n=e._extremes[t._id],a=o(t,r._bnds,{padded:!0});n.min=n.min.concat(a.min),n.max=n.max.concat(a.max)}e.exports=function(e,t){var r,o=e._fullLayout,s=i.getFromId(e,t.xaxis),m=i.getFromId(e,t.yaxis),b=o._plots[t.xaxis+t.yaxis],x=t._length,w=x>=v,_=2*x,k={},T=s.makeCalcdata(t,"x"),A=m.makeCalcdata(t,"y"),S=l(t,s,"x",T),M=l(t,m,"y",A),O=S.vals,C=M.vals;t._x=O,t._y=C,t.xperiodalignment&&(t._origX=T,t._xStarts=S.starts,t._xEnds=S.ends),t.yperiodalignment&&(t._origY=A,t._yStarts=M.starts,t._yEnds=M.ends);var E=new Array(_),L=new Array(x);for(r=0;r<x;r++)E[2*r]=O[r]===g?NaN:O[r],E[2*r+1]=C[r]===g?NaN:C[r],L[r]=r;if("log"===s.type)for(r=0;r<_;r+=2)E[r]=s.c2l(E[r]);if("log"===m.type)for(r=1;r<_;r+=2)E[r]=m.c2l(E[r]);w&&"log"!==s.type&&"log"!==m.type?k.tree=n(E):k.ids=L,d(e,t);var P,j=function(e,t,r,n,i,o){var l=p.style(e,r);l.marker&&(l.marker.positions=n);l.line&&n.length>1&&a.extendFlat(l.line,p.linePositions(e,r,n));if(l.errorX||l.errorY){var s=p.errorBarPositions(e,r,n,i,o);l.errorX&&a.extendFlat(l.errorX,s.x),l.errorY&&a.extendFlat(l.errorY,s.y)}l.text&&(a.extendFlat(l.text,{positions:n},p.textPosition(e,r,l.text,l.marker)),a.extendFlat(l.textSel,{positions:n},p.textPosition(e,r,l.text,l.markerSel)),a.extendFlat(l.textUnsel,{positions:n},p.textPosition(e,r,l.text,l.markerUnsel)));return l}(e,0,t,E,O,C),z=h(e,b);return f(o,t),w?j.marker&&(P=j.marker.sizeAvg||Math.max(j.marker.size,3)):P=c(t,x),u(e,t,s,m,O,C,P),j.errorX&&y(t,s,j.errorX),j.errorY&&y(t,m,j.errorY),j.fill&&!z.fill2d&&(z.fill2d=!0),j.marker&&!z.scatter2d&&(z.scatter2d=!0),j.line&&!z.line2d&&(z.line2d=!0),!j.errorX&&!j.errorY||z.error2d||(z.error2d=!0),j.text&&!z.glText&&(z.glText=!0),j.marker&&(j.marker.snap=x),z.lineOptions.push(j.line),z.errorXOptions.push(j.errorX),z.errorYOptions.push(j.errorY),z.fillOptions.push(j.fill),z.markerOptions.push(j.marker),z.markerSelectedOptions.push(j.markerSel),z.markerUnselectedOptions.push(j.markerUnsel),z.textOptions.push(j.text),z.textSelectedOptions.push(j.textSel),z.textUnselectedOptions.push(j.textUnsel),z.selectBatch.push([]),z.unselectBatch.push([]),k._scene=z,k.index=z.count,k.x=O,k.y=C,k.positions=E,z.count++,[{x:!1,y:!1,t:k,trace:t}]}},function(e,t,r){"use strict";var n=r(660).default,a=r(140).default,i=r(664),o=r(104),l=r(133),s=r(105),c=r(57),u=r(316),f=r(106),d=r(665),p=r(196),h=r(666);function g(e,t){for(var r=n(t,4),a=r[0],i=r[1],l=1/(r[2]-a),s=1/(r[3]-i),c=new Array(e.length),u=0,f=e.length/2;u<f;u++)c[2*u]=o((e[2*u]-a)*l,0,1),c[2*u+1]=o((e[2*u+1]-i)*s,0,1);return c}e.exports=function(e,t){t||(t={}),e=f(e,"float64"),t=c(t,{bounds:"range bounds dataBox databox",maxDepth:"depth maxDepth maxdepth level maxLevel maxlevel levels",dtype:"type dtype format out dst output destination"});var r=u(t.maxDepth,255),o=u(t.bounds,s(e,2));o[0]===o[2]&&o[2]++,o[1]===o[3]&&o[3]++;var v,y=g(e,o),m=e.length>>>1;t.dtype||(t.dtype="array"),"string"===typeof t.dtype?v=new(p(t.dtype))(m):t.dtype&&(v=t.dtype,Array.isArray(v)&&(v.length=m));for(var b=0;b<m;++b)v[b]=b;var x=[],w=[],_=[],k=[];!function e(t,n,a,i,o,l){if(!i.length)return null;var s=x[o]||(x[o]=[]),c=_[o]||(_[o]=[]),u=w[o]||(w[o]=[]),f=s.length;if(++o>r||l>1073741824){for(var d=0;d<i.length;d++)s.push(i[d]),c.push(l),u.push(null,null,null,null);return f}if(s.push(i[0]),c.push(l),i.length<=1)return u.push(null,null,null,null),f;for(var p=.5*a,h=t+p,g=n+p,v=[],m=[],b=[],k=[],T=1,A=i.length;T<A;T++){var S=i[T],M=y[2*S],O=y[2*S+1];M<h?O<g?v.push(S):m.push(S):O<g?b.push(S):k.push(S)}return l<<=2,u.push(e(t,n,p,v,o,l),e(t,g,p,m,o,l+1),e(h,n,p,b,o,l+2),e(h,g,p,k,o,l+3)),f}(0,0,1,v,0,1);for(var T=0,A=0;A<x.length;A++){var S=x[A];if(v.set)v.set(S,T);else for(var M=0,O=S.length;M<O;M++)v[M+T]=S[M];var C=T+x[A].length;k[A]=[T,C],T=C}return v.range=function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];var s;if(d(r[r.length-1])){var f=r.pop();r.length||null==f.x&&null==f.l&&null==f.left||(r=[f],s={}),s=c(f,{level:"level maxLevel",d:"d diam diameter r radius px pxSize pixel pixelSize maxD size minSize",lod:"lod details ranges offsets"})}else s={};r.length||(r=o);var p=l.apply(void 0,a(r)),v=[Math.min(p.x,p.x+p.width),Math.min(p.y,p.y+p.height),Math.max(p.x,p.x+p.width),Math.max(p.y,p.y+p.height)],y=v[0],m=v[1],b=v[2],_=v[3],k=g([y,m,b,_],o),T=n(k,4),A=T[0],S=T[1],M=T[2],O=T[3],C=u(s.level,x.length);if(null!=s.d){var L;"number"===typeof s.d?L=[s.d,s.d]:s.d.length&&(L=s.d),C=Math.min(Math.max(Math.ceil(-h(Math.abs(L[0])/(o[2]-o[0]))),Math.ceil(-h(Math.abs(L[1])/(o[3]-o[1])))),C)}if(C=Math.min(C,x.length),s.lod)return E(A,S,M,O,C);var P=[];function j(t,r,n,a,i,o){if(null!==i&&null!==o&&(!(A>t+n||S>r+n||M<t||O<r)&&!(a>=C)&&i!==o)){var l=x[a];void 0===o&&(o=l.length);for(var s=i;s<o;s++){var c=l[s],u=e[2*c],f=e[2*c+1];u>=y&&u<=b&&f>=m&&f<=_&&P.push(c)}var d=w[a],p=d[4*i+0],h=d[4*i+1],g=d[4*i+2],v=d[4*i+3],k=z(d,i+1),T=.5*n,E=a+1;j(t,r,T,E,p,h||g||v||k),j(t,r+T,T,E,h,g||v||k),j(t+T,r,T,E,g,v||k),j(t+T,r+T,T,E,v,k)}}function z(e,t){for(var r=null,n=0;null===r;)if(r=e[4*t+n],++n>e.length)return null;return r}return j(0,0,1,0,0,1),P},v;function E(e,t,r,n,a){for(var o=[],l=0;l<a;l++){var s=_[l],c=k[l][0],u=L(e,t,l),f=L(r,n,l),d=i.ge(s,u),p=i.gt(s,f,d,s.length-1);o[l]=[d+c,p+c]}return o}function L(e,t,r){for(var n=1,a=.5,i=.5,o=.5,l=0;l<r;l++)n<<=2,n+=e<a?t<i?0:1:t<i?2:3,o*=.5,a+=e<a?-o:o,i+=t<i?-o:o;return n}}},function(e,t,r){var n=r(661),a=r(662),i=r(205),o=r(663);e.exports=function(e,t){return n(e)||a(e,t)||i(e,t)||o()},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e,t){var r=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,i=[],o=!0,l=!1;try{for(r=r.call(e);!(o=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(s){l=!0,a=s}finally{try{o||null==r.return||r.return()}finally{if(l)throw a}}return i}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){"use strict";function n(e,t,r,n,a){for(var i=a+1;n<=a;){var o=n+a>>>1,l=e[o];(void 0!==r?r(l,t):l-t)>=0?(i=o,a=o-1):n=o+1}return i}function a(e,t,r,n,a){for(var i=a+1;n<=a;){var o=n+a>>>1,l=e[o];(void 0!==r?r(l,t):l-t)>0?(i=o,a=o-1):n=o+1}return i}function i(e,t,r,n,a){for(var i=n-1;n<=a;){var o=n+a>>>1,l=e[o];(void 0!==r?r(l,t):l-t)<0?(i=o,n=o+1):a=o-1}return i}function o(e,t,r,n,a){for(var i=n-1;n<=a;){var o=n+a>>>1,l=e[o];(void 0!==r?r(l,t):l-t)<=0?(i=o,n=o+1):a=o-1}return i}function l(e,t,r,n,a){for(;n<=a;){var i=n+a>>>1,o=e[i],l=void 0!==r?r(o,t):o-t;if(0===l)return i;l<=0?n=i+1:a=i-1}return-1}function s(e,t,r,n,a,i){return"function"===typeof r?i(e,t,r,void 0===n?0:0|n,void 0===a?e.length-1:0|a):i(e,t,void 0,void 0===r?0:0|r,void 0===n?e.length-1:0|n)}e.exports={ge:function(e,t,r,a,i){return s(e,t,r,a,i,n)},gt:function(e,t,r,n,i){return s(e,t,r,n,i,a)},lt:function(e,t,r,n,a){return s(e,t,r,n,a,i)},le:function(e,t,r,n,a){return s(e,t,r,n,a,o)},eq:function(e,t,r,n,a){return s(e,t,r,n,a,l)}}},function(e,t,r){"use strict";e.exports=function(e){var t=typeof e;return null!==e&&("object"===t||"function"===t)}},function(e,t,r){"use strict";e.exports=Math.log2||function(e){return Math.log(e)*Math.LOG2E}},function(e,t,r){"use strict";var n=r(9),a=r(668),i=r(83),o=r(5),l=r(0),s=r(10),c=r(21),u=r(679).formatColor,f=r(30),d=r(256),p=r(314),h=r(132),g=r(91).DESELECTDIM,v={start:1,left:1,end:-1,right:-1,middle:0,center:0,bottom:1,top:-1},y=r(40).appendArrayPointValue;function m(e,t){var r,a=e._fullLayout,i=t._length,o=t.textfont,s=t.textposition,c=Array.isArray(s)?s:[s],u=o.color,f=o.size,d=o.family,p={},h=e._context.plotGlPixelRatio,g=t.texttemplate;if(g){p.text=[];var v=a._d3locale,m=Array.isArray(g),b=m?Math.min(g.length,i):i,x=m?function(e){return g[e]}:function(){return g};for(r=0;r<b;r++){var w={i:r},_=t._module.formatLabels(w,t,a),k={};y(k,t,r);var T=t._meta||{};p.text.push(l.texttemplateString(x(r),_,v,k,w,T))}}else Array.isArray(t.text)&&t.text.length<i?p.text=t.text.slice():p.text=t.text;if(Array.isArray(p.text))for(r=p.text.length;r<i;r++)p.text[r]="";for(p.opacity=t.opacity,p.font={},p.align=[],p.baseline=[],r=0;r<c.length;r++){var A=c[r].split(/\s+/);switch(A[1]){case"left":p.align.push("right");break;case"right":p.align.push("left");break;default:p.align.push(A[1])}switch(A[0]){case"top":p.baseline.push("bottom");break;case"bottom":p.baseline.push("top");break;default:p.baseline.push(A[0])}}if(Array.isArray(u))for(p.color=new Array(i),r=0;r<i;r++)p.color[r]=u[r];else p.color=u;if(l.isArrayOrTypedArray(f)||Array.isArray(d))for(p.font=new Array(i),r=0;r<i;r++){var S=p.font[r]={};S.size=(l.isTypedArray(f)?f[r]:Array.isArray(f)?n(f[r])?f[r]:0:f)*h,S.family=Array.isArray(d)?d[r]:d}else p.font={size:f*h,family:d};return p}function b(e){var t,r,n=e._length,a=e.marker,o={},s=l.isArrayOrTypedArray(a.symbol),c=l.isArrayOrTypedArray(a.color),f=l.isArrayOrTypedArray(a.line.color),h=l.isArrayOrTypedArray(a.opacity),g=l.isArrayOrTypedArray(a.size),v=l.isArrayOrTypedArray(a.line.width);if(s||(r=p.isOpenSymbol(a.symbol)),s||c||f||h){o.colors=new Array(n),o.borderColors=new Array(n);var y=u(a,a.opacity,n),m=u(a.line,a.opacity,n);if(!Array.isArray(m[0])){var b=m;for(m=Array(n),t=0;t<n;t++)m[t]=b}if(!Array.isArray(y[0])){var x=y;for(y=Array(n),t=0;t<n;t++)y[t]=x}for(o.colors=y,o.borderColors=m,t=0;t<n;t++){if(s){var w=a.symbol[t];r=p.isOpenSymbol(w)}r&&(m[t]=y[t].slice(),y[t]=y[t].slice(),y[t][3]=0)}o.opacity=e.opacity}else r?(o.color=i(a.color,"uint8"),o.color[3]=0,o.borderColor=i(a.color,"uint8")):(o.color=i(a.color,"uint8"),o.borderColor=i(a.line.color,"uint8")),o.opacity=e.opacity*a.opacity;if(s)for(o.markers=new Array(n),t=0;t<n;t++)o.markers[t]=O(a.symbol[t]);else o.marker=O(a.symbol);var _,k=d(e,1);if(g||v){var T,A=o.sizes=new Array(n),S=o.borderSizes=new Array(n),M=0;if(g){for(t=0;t<n;t++)A[t]=k(a.size[t]),M+=A[t];T=M/n}else for(_=k(a.size),t=0;t<n;t++)A[t]=_;if(v)for(t=0;t<n;t++)S[t]=a.line.width[t];else for(_=a.line.width,t=0;t<n;t++)S[t]=_;o.sizeAvg=T}else o.size=k(a&&a.size||10),o.borderSizes=k(a.line.width);return o}function x(e,t){var r=e.marker,n={};return t?(t.marker&&t.marker.symbol?n=b(l.extendFlat({},r,t.marker)):t.marker&&(t.marker.size&&(n.size=t.marker.size),t.marker.color&&(n.colors=t.marker.color),void 0!==t.marker.opacity&&(n.opacity=t.marker.opacity)),n):n}function w(e,t,r){var n={};if(!r)return n;if(r.textfont){var a={opacity:1,text:t.text,texttemplate:t.texttemplate,textposition:t.textposition,textfont:l.extendFlat({},t.textfont)};r.textfont&&l.extendFlat(a.textfont,r.textfont),n=m(e,a)}return n}function _(e,t,r){var n={capSize:2*t.width*r,lineWidth:t.thickness*r,color:t.color};return t.copy_ystyle&&(n=e.error_y),n}var k=h.SYMBOL_SDF_SIZE,T=h.SYMBOL_SIZE,A=h.SYMBOL_STROKE,S={},M=s.symbolFuncs[0](.05*T);function O(e){if("circle"===e)return null;var t,r,n=s.symbolNumber(e),i=s.symbolFuncs[n%100],o=!!s.symbolNoDot[n%100],l=!!s.symbolNoFill[n%100],c=p.isDotSymbol(e);return S[e]?S[e]:(t=c&&!o?i(1.1*T)+M:i(T),r=a(t,{w:k,h:k,viewBox:[-T,-T,T,T],stroke:l?A:-A}),S[e]=r,r||null)}e.exports={style:function(e,t){var r,n={marker:void 0,markerSel:void 0,markerUnsel:void 0,line:void 0,fill:void 0,errorX:void 0,errorY:void 0,text:void 0,textSel:void 0,textUnsel:void 0},a=e._context.plotGlPixelRatio;if(!0!==t.visible)return n;if(f.hasText(t)&&(n.text=m(e,t),n.textSel=w(e,t,t.selected),n.textUnsel=w(e,t,t.unselected)),f.hasMarkers(t)&&(n.marker=b(t),n.markerSel=x(t,t.selected),n.markerUnsel=x(t,t.unselected),!t.unselected&&l.isArrayOrTypedArray(t.marker.opacity))){var i=t.marker.opacity;for(n.markerUnsel.opacity=new Array(i.length),r=0;r<i.length;r++)n.markerUnsel.opacity[r]=g*i[r]}if(f.hasLines(t)){n.line={overlay:!0,thickness:t.line.width*a,color:t.line.color,opacity:t.opacity};var o=(h.DASHES[t.line.dash]||[1]).slice();for(r=0;r<o.length;++r)o[r]*=t.line.width*a;n.line.dashes=o}return t.error_x&&t.error_x.visible&&(n.errorX=_(t,t.error_x,a)),t.error_y&&t.error_y.visible&&(n.errorY=_(t,t.error_y,a)),t.fill&&"none"!==t.fill&&(n.fill={closed:!0,fill:t.fillcolor,thickness:0}),n},markerStyle:b,markerSelection:x,linePositions:function(e,t,r){var n,a,i=r.length,o=i/2;if(f.hasLines(t)&&o)if("hv"===t.line.shape){for(n=[],a=0;a<o-1;a++)isNaN(r[2*a])||isNaN(r[2*a+1])?n.push(NaN,NaN,NaN,NaN):(n.push(r[2*a],r[2*a+1]),isNaN(r[2*a+2])||isNaN(r[2*a+3])?n.push(NaN,NaN):n.push(r[2*a+2],r[2*a+1]));n.push(r[i-2],r[i-1])}else if("hvh"===t.line.shape){for(n=[],a=0;a<o-1;a++)if(isNaN(r[2*a])||isNaN(r[2*a+1])||isNaN(r[2*a+2])||isNaN(r[2*a+3]))isNaN(r[2*a])||isNaN(r[2*a+1])?n.push(NaN,NaN):n.push(r[2*a],r[2*a+1]),n.push(NaN,NaN);else{var l=(r[2*a]+r[2*a+2])/2;n.push(r[2*a],r[2*a+1],l,r[2*a+1],l,r[2*a+3])}n.push(r[i-2],r[i-1])}else if("vhv"===t.line.shape){for(n=[],a=0;a<o-1;a++)if(isNaN(r[2*a])||isNaN(r[2*a+1])||isNaN(r[2*a+2])||isNaN(r[2*a+3]))isNaN(r[2*a])||isNaN(r[2*a+1])?n.push(NaN,NaN):n.push(r[2*a],r[2*a+1]),n.push(NaN,NaN);else{var s=(r[2*a+1]+r[2*a+3])/2;n.push(r[2*a],r[2*a+1],r[2*a],s,r[2*a+2],s)}n.push(r[i-2],r[i-1])}else if("vh"===t.line.shape){for(n=[],a=0;a<o-1;a++)isNaN(r[2*a])||isNaN(r[2*a+1])?n.push(NaN,NaN,NaN,NaN):(n.push(r[2*a],r[2*a+1]),isNaN(r[2*a+2])||isNaN(r[2*a+3])?n.push(NaN,NaN):n.push(r[2*a],r[2*a+3]));n.push(r[i-2],r[i-1])}else n=r;var c=!1;for(a=0;a<n.length;a++)if(isNaN(n[a])){c=!0;break}var u=c||n.length>h.TOO_MANY_POINTS||f.hasMarkers(t)?"rect":"round";if(c&&t.connectgaps){var d=n[0],p=n[1];for(a=0;a<n.length;a+=2)isNaN(n[a])||isNaN(n[a+1])?(n[a]=d,n[a+1]=p):(d=n[a],p=n[a+1])}return{join:u,positions:n}},errorBarPositions:function(e,t,r,a,i){var l=o.getComponentMethod("errorbars","makeComputeError"),s=c.getFromId(e,t.xaxis),u=c.getFromId(e,t.yaxis),f=r.length/2,d={};function p(e,a){var i=a._id.charAt(0),o=t["error_"+i];if(o&&o.visible&&("linear"===a.type||"log"===a.type)){for(var s=l(o),c={x:0,y:1}[i],u={x:[0,1,2,3],y:[2,3,0,1]}[i],p=new Float64Array(4*f),h=1/0,g=-1/0,v=0,y=0;v<f;v++,y+=4){var m=e[v];if(n(m)){var b=r[2*v+c],x=s(m,v),w=x[0],_=x[1];if(n(w)&&n(_)){var k=m-w,T=m+_;p[y+u[0]]=b-a.c2l(k),p[y+u[1]]=a.c2l(T)-b,p[y+u[2]]=0,p[y+u[3]]=0,h=Math.min(h,m-w),g=Math.max(g,m+_)}}}d[i]={positions:r,errors:p,_bnds:[h,g]}}}return p(a,s),p(i,u),d},textPosition:function(e,t,r,n){var a,i=t._length,o={};if(f.hasMarkers(t)){var l=r.font,s=r.align,c=r.baseline;for(o.offset=new Array(i),a=0;a<i;a++){var u=n.sizes?n.sizes[a]:n.size,d=Array.isArray(l)?l[a].size:l.size,p=Array.isArray(s)?s.length>1?s[a]:s[0]:s,h=Array.isArray(c)?c.length>1?c[a]:c[0]:c,g=v[p],y=v[h],m=u?u/.8+1:0,b=-y*m-.5*y;o.offset[a]=[g*m/d,b/d]}}return o}}},function(e,t,r){"use strict";var n,a=r(669),i=r(175),o=r(671),l=r(318),s=r(673),c=document.createElement("canvas"),u=c.getContext("2d");e.exports=function(e,t){if(!l(e))throw Error("Argument should be valid svg path string");t||(t={});var r,f;t.shape?(r=t.shape[0],f=t.shape[1]):(r=c.width=t.w||t.width||200,f=c.height=t.h||t.height||200);var d=Math.min(r,f),p=t.stroke||0,h=t.viewbox||t.viewBox||a(e),g=[r/(h[2]-h[0]),f/(h[3]-h[1])],v=Math.min(g[0]||0,g[1]||0)/2;u.fillStyle="black",u.fillRect(0,0,r,f),u.fillStyle="white",p&&("number"!=typeof p&&(p=1),u.strokeStyle=p>0?"white":"black",u.lineWidth=Math.abs(p));if(u.translate(.5*r,.5*f),u.scale(v,v),function(){if(null!=n)return n;var e=document.createElement("canvas").getContext("2d");if(e.canvas.width=e.canvas.height=1,!window.Path2D)return n=!1;var t=new Path2D("M0,0h1v1h-1v-1Z");e.fillStyle="black",e.fill(t);var r=e.getImageData(0,0,1,1);return n=r&&r.data&&255===r.data[3]}()){var y=new Path2D(e);u.fill(y),p&&u.stroke(y)}else{var m=i(e);o(u,m),u.fill(),p&&u.stroke()}return u.setTransform(1,0,0,1,0,0),s(u,{cutoff:null!=t.cutoff?t.cutoff:.5,radius:null!=t.radius?t.radius:.5*d})}},function(e,t,r){"use strict";var n=r(175),a=r(317),i=r(670),o=r(318);e.exports=function(e){Array.isArray(e)&&1===e.length&&"string"===typeof e[0]&&(e=e[0]);if("string"===typeof e){if(!o(e))throw Error("String is not an SVG path.");e=n(e)}if(!Array.isArray(e))throw Error("Argument should be a string or an array of path segments.");if(e=a(e),!(e=i(e)).length)return[0,0,0,0];for(var t=[1/0,1/0,-1/0,-1/0],r=0,l=e.length;r<l;r++)for(var s=e[r].slice(1),c=0;c<s.length;c+=2)s[c+0]<t[0]&&(t[0]=s[c+0]),s[c+1]<t[1]&&(t[1]=s[c+1]),s[c+0]>t[2]&&(t[2]=s[c+0]),s[c+1]>t[3]&&(t[3]=s[c+1]);return t}},function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return a}));var n=r(359);function a(e){for(var t,r=[],a=0,l=0,s=0,c=0,u=null,f=null,d=0,p=0,h=0,g=e.length;h<g;h++){var v=e[h],y=v[0];switch(y){case"M":s=v[1],c=v[2];break;case"A":var m=n({px:d,py:p,cx:v[6],cy:v[7],rx:v[1],ry:v[2],xAxisRotation:v[3],largeArcFlag:v[4],sweepFlag:v[5]});if(!m.length)continue;for(var b,x=0;x<m.length;x++)v=["C",(b=m[x]).x1,b.y1,b.x2,b.y2,b.x,b.y],x<m.length-1&&r.push(v);break;case"S":var w=d,_=p;"C"!=t&&"S"!=t||(w+=w-a,_+=_-l),v=["C",w,_,v[1],v[2],v[3],v[4]];break;case"T":"Q"==t||"T"==t?(u=2*d-u,f=2*p-f):(u=d,f=p),v=o(d,p,u,f,v[1],v[2]);break;case"Q":u=v[1],f=v[2],v=o(d,p,v[1],v[2],v[3],v[4]);break;case"L":v=i(d,p,v[1],v[2]);break;case"H":v=i(d,p,v[1],p);break;case"V":v=i(d,p,d,v[1]);break;case"Z":v=i(d,p,s,c)}t=y,d=v[v.length-2],p=v[v.length-1],v.length>4?(a=v[v.length-4],l=v[v.length-3]):(a=d,l=p),r.push(v)}return r}function i(e,t,r,n){return["C",e,t,r,n,r,n]}function o(e,t,r,n,a,i){return["C",e/3+2/3*r,t/3+2/3*n,a/3+2/3*r,i/3+2/3*n,a,i]}},function(e,t,r){var n=r(317),a=r(672),i={M:"moveTo",C:"bezierCurveTo"};e.exports=function(e,t){e.beginPath(),a(n(t)).forEach((function(t){var r=t[0],n=t.slice(1);e[i[r]].apply(e,n)})),e.closePath()}},function(e,t){var r=Math.PI,n=s(120);function a(e,t,r,n){return["C",e,t,r,n,r,n]}function i(e,t,r,n,a,i){return["C",e/3+2/3*r,t/3+2/3*n,a/3+2/3*r,i/3+2/3*n,a,i]}function o(e,t,a,i,s,c,u,f,d,p){if(p)k=p[0],T=p[1],w=p[2],_=p[3];else{var h=l(e,t,-s);e=h.x,t=h.y;var g=(e-(f=(h=l(f,d,-s)).x))/2,v=(t-(d=h.y))/2,y=g*g/(a*a)+v*v/(i*i);y>1&&(a*=y=Math.sqrt(y),i*=y);var m=a*a,b=i*i,x=(c==u?-1:1)*Math.sqrt(Math.abs((m*b-m*v*v-b*g*g)/(m*v*v+b*g*g)));x==1/0&&(x=1);var w=x*a*v/i+(e+f)/2,_=x*-i*g/a+(t+d)/2,k=Math.asin(((t-_)/i).toFixed(9)),T=Math.asin(((d-_)/i).toFixed(9));(k=e<w?r-k:k)<0&&(k=2*r+k),(T=f<w?r-T:T)<0&&(T=2*r+T),u&&k>T&&(k-=2*r),!u&&T>k&&(T-=2*r)}if(Math.abs(T-k)>n){var A=T,S=f,M=d;T=k+n*(u&&T>k?1:-1);var O=o(f=w+a*Math.cos(T),d=_+i*Math.sin(T),a,i,s,0,u,S,M,[T,A,w,_])}var C=Math.tan((T-k)/4),E=4/3*a*C,L=4/3*i*C,P=[2*e-(e+E*Math.sin(k)),2*t-(t-L*Math.cos(k)),f+E*Math.sin(T),d-L*Math.cos(T),f,d];if(p)return P;O&&(P=P.concat(O));for(var j=0;j<P.length;){var z=l(P[j],P[j+1],s);P[j++]=z.x,P[j++]=z.y}return P}function l(e,t,r){return{x:e*Math.cos(r)-t*Math.sin(r),y:e*Math.sin(r)+t*Math.cos(r)}}function s(e){return e*(r/180)}e.exports=function(e){for(var t,r=[],n=0,l=0,c=0,u=0,f=null,d=null,p=0,h=0,g=0,v=e.length;g<v;g++){var y=e[g],m=y[0];switch(m){case"M":c=y[1],u=y[2];break;case"A":(y=o(p,h,y[1],y[2],s(y[3]),y[4],y[5],y[6],y[7])).unshift("C"),y.length>7&&(r.push(y.splice(0,7)),y.unshift("C"));break;case"S":var b=p,x=h;"C"!=t&&"S"!=t||(b+=b-n,x+=x-l),y=["C",b,x,y[1],y[2],y[3],y[4]];break;case"T":"Q"==t||"T"==t?(f=2*p-f,d=2*h-d):(f=p,d=h),y=i(p,h,f,d,y[1],y[2]);break;case"Q":f=y[1],d=y[2],y=i(p,h,y[1],y[2],y[3],y[4]);break;case"L":y=a(p,h,y[1],y[2]);break;case"H":y=a(p,h,y[1],h);break;case"V":y=a(p,h,p,y[1]);break;case"Z":y=a(p,h,c,u)}t=m,p=y[y.length-2],h=y[y.length-1],y.length>4?(n=y[y.length-4],l=y[y.length-3]):(n=p,l=h),r.push(y)}return r}},function(e,t,r){"use strict";var n=r(104);e.exports=function(e,t){t||(t={});var r,o,l,s,c,u,f,d,p,h,g,v=null==t.cutoff?.25:t.cutoff,y=null==t.radius?8:t.radius,m=t.channel||0;if(ArrayBuffer.isView(e)||Array.isArray(e)){if(!t.width||!t.height)throw Error("For raw data width and height should be provided by options");r=t.width,o=t.height,s=e,u=t.stride?t.stride:Math.floor(e.length/r/o)}else window.HTMLCanvasElement&&e instanceof window.HTMLCanvasElement?(f=(d=e).getContext("2d"),r=d.width,o=d.height,p=f.getImageData(0,0,r,o),s=p.data,u=4):window.CanvasRenderingContext2D&&e instanceof window.CanvasRenderingContext2D?(d=e.canvas,f=e,r=d.width,o=d.height,p=f.getImageData(0,0,r,o),s=p.data,u=4):window.ImageData&&e instanceof window.ImageData&&(p=e,r=e.width,o=e.height,s=p.data,u=4);if(l=Math.max(r,o),window.Uint8ClampedArray&&s instanceof window.Uint8ClampedArray||window.Uint8Array&&s instanceof window.Uint8Array)for(c=s,s=Array(r*o),h=0,g=c.length;h<g;h++)s[h]=c[h*u+m]/255;else if(1!==u)throw Error("Raw data can have only 1 value per pixel");var b=Array(r*o),x=Array(r*o),w=Array(l),_=Array(l),k=Array(l+1),T=Array(l);for(h=0,g=r*o;h<g;h++){var A=s[h];b[h]=1===A?0:0===A?a:Math.pow(Math.max(0,.5-A),2),x[h]=1===A?a:0===A?0:Math.pow(Math.max(0,A-.5),2)}i(b,r,o,w,_,T,k),i(x,r,o,w,_,T,k);var S=window.Float32Array?new Float32Array(r*o):new Array(r*o);for(h=0,g=r*o;h<g;h++)S[h]=n(1-((b[h]-x[h])/y+v),0,1);return S};var a=1e20;function i(e,t,r,n,a,i,l){for(var s=0;s<t;s++){for(var c=0;c<r;c++)n[c]=e[c*t+s];for(o(n,a,i,l,r),c=0;c<r;c++)e[c*t+s]=a[c]}for(c=0;c<r;c++){for(s=0;s<t;s++)n[s]=e[c*t+s];for(o(n,a,i,l,t),s=0;s<t;s++)e[c*t+s]=Math.sqrt(a[s])}}function o(e,t,r,n,i){r[0]=0,n[0]=-a,n[1]=+a;for(var o=1,l=0;o<i;o++){for(var s=(e[o]+o*o-(e[r[l]]+r[l]*r[l]))/(2*o-2*r[l]);s<=n[l];)l--,s=(e[o]+o*o-(e[r[l]]+r[l]*r[l]))/(2*o-2*r[l]);r[++l]=o,n[l]=s,n[l+1]=+a}for(o=0,l=0;o<i;o++){for(;n[l+1]<o;)l++;t[o]=(o-r[l])*(o-r[l])+e[r[l]]}}},function(e,t,r){"use strict";var n=r(675),a=r(677),i=r(104);e.exports=function(e){var t,r=n(e);return r.space?((t=Array(3))[0]=i(r.values[0],0,255),t[1]=i(r.values[1],0,255),t[2]=i(r.values[2],0,255),"h"===r.space[0]&&(t=a.rgb(t)),t.push(i(r.alpha,0,1)),t):[]}},function(e,t,r){"use strict";(function(t){var n=r(676),a=r(319),i=r(316);e.exports=function(e){var r,l,s=[],c=1;if("string"===typeof e)if(n[e])s=n[e].slice(),l="rgb";else if("transparent"===e)c=0,l="rgb",s=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(e)){var u=(p=e.slice(1)).length;c=1,u<=4?(s=[parseInt(p[0]+p[0],16),parseInt(p[1]+p[1],16),parseInt(p[2]+p[2],16)],4===u&&(c=parseInt(p[3]+p[3],16)/255)):(s=[parseInt(p[0]+p[1],16),parseInt(p[2]+p[3],16),parseInt(p[4]+p[5],16)],8===u&&(c=parseInt(p[6]+p[7],16)/255)),s[0]||(s[0]=0),s[1]||(s[1]=0),s[2]||(s[2]=0),l="rgb"}else if(r=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(e)){var f=r[1],d="rgb"===f,p=f.replace(/a$/,"");l=p;u="cmyk"===p?4:"gray"===p?1:3;s=r[2].trim().split(/\s*,\s*/).map((function(e,t){if(/%$/.test(e))return t===u?parseFloat(e)/100:"rgb"===p?255*parseFloat(e)/100:parseFloat(e);if("h"===p[t]){if(/deg$/.test(e))return parseFloat(e);if(void 0!==o[e])return o[e]}return parseFloat(e)})),f===p&&s.push(1),c=d||void 0===s[u]?1:s[u],s=s.slice(0,u)}else e.length>10&&/[0-9](?:\s|\/)/.test(e)&&(s=e.match(/([0-9]+)/g).map((function(e){return parseFloat(e)})),l=e.match(/([a-z])/gi).join("").toLowerCase());else if(isNaN(e))if(a(e)){var h=i(e.r,e.red,e.R,null);null!==h?(l="rgb",s=[h,i(e.g,e.green,e.G),i(e.b,e.blue,e.B)]):(l="hsl",s=[i(e.h,e.hue,e.H),i(e.s,e.saturation,e.S),i(e.l,e.lightness,e.L,e.b,e.brightness)]),c=i(e.a,e.alpha,e.opacity,1),null!=e.opacity&&(c/=100)}else(Array.isArray(e)||t.ArrayBuffer&&ArrayBuffer.isView&&ArrayBuffer.isView(e))&&(s=[e[0],e[1],e[2]],l="rgb",c=4===e.length?e[3]:1);else l="rgb",s=[e>>>16,(65280&e)>>>8,255&e];return{space:l,values:s,alpha:c}};var o={red:0,orange:60,yellow:120,green:180,blue:240,purple:300}}).call(this,r(27))},function(e,t,r){"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},function(e,t,r){"use strict";var n=r(678);e.exports={name:"hsl",min:[0,0,0],max:[360,100,100],channel:["hue","saturation","lightness"],alias:["HSL"],rgb:function(e){var t,r,n,a,i,o=e[0]/360,l=e[1]/100,s=e[2]/100;if(0===l)return[i=255*s,i,i];t=2*s-(r=s<.5?s*(1+l):s+l-s*l),a=[0,0,0];for(var c=0;c<3;c++)(n=o+1/3*-(c-1))<0?n++:n>1&&n--,i=6*n<1?t+6*(r-t)*n:2*n<1?r:3*n<2?t+(r-t)*(2/3-n)*6:t,a[c]=255*i;return a}},n.hsl=function(e){var t,r,n=e[0]/255,a=e[1]/255,i=e[2]/255,o=Math.min(n,a,i),l=Math.max(n,a,i),s=l-o;return l===o?t=0:n===l?t=(a-i)/s:a===l?t=2+(i-n)/s:i===l&&(t=4+(n-a)/s),(t=Math.min(60*t,360))<0&&(t+=360),r=(o+l)/2,[t,100*(l===o?0:r<=.5?s/(l+o):s/(2-l-o)),100*r]}},function(e,t,r){"use strict";e.exports={name:"rgb",min:[0,0,0],max:[255,255,255],channel:["red","green","blue"],alias:["RGB"]}},function(e,t,r){"use strict";var n=r(9),a=r(34),i=r(83),o=r(75),l=r(45).defaultLine,s=r(65).isArrayOrTypedArray,c=i(l);function u(e,t){var r=e;return r[3]*=t,r}function f(e){if(n(e))return c;var t=i(e);return t.length?t:c}function d(e){return n(e)?e:1}e.exports={formatColor:function(e,t,r){var n,a,l,p,h,g=e.color,v=s(g),y=s(t),m=o.extractOpts(e),b=[];if(n=void 0!==m.colorscale?o.makeColorScaleFuncFromTrace(e):f,a=v?function(e,t){return void 0===e[t]?c:i(n(e[t]))}:f,l=y?function(e,t){return void 0===e[t]?1:d(e[t])}:d,v||y)for(var x=0;x<r;x++)p=a(g,x),h=l(t,x),b[x]=u(p,h);else b=u(i(g),t);return b},parseColorScale:function(e){var t=o.extractOpts(e),r=t.colorscale;return t.reversescale&&(r=o.flipScale(t.colorscale)),r.map((function(e){var t=e[0],r=a(e[1]).toRgb();return{index:t,rgb:[r.r,r.g,r.b,r.a]}}))}}},function(e,t,r){"use strict";var n=r(0);e.exports=function(e,t){var r=t._scene,a={count:0,dirty:!0,lineOptions:[],fillOptions:[],markerOptions:[],markerSelectedOptions:[],markerUnselectedOptions:[],errorXOptions:[],errorYOptions:[],textOptions:[],textSelectedOptions:[],textUnselectedOptions:[],selectBatch:[],unselectBatch:[]},i={fill2d:!1,scatter2d:!1,error2d:!1,line2d:!1,glText:!1,select2d:!1};return t._scene||((r=t._scene={}).init=function(){n.extendFlat(r,i,a)},r.init(),r.update=function(e){var t=n.repeat(e,r.count);if(r.fill2d&&r.fill2d.update(t),r.scatter2d&&r.scatter2d.update(t),r.line2d&&r.line2d.update(t),r.error2d&&r.error2d.update(t.concat(t)),r.select2d&&r.select2d.update(t),r.glText)for(var a=0;a<r.count;a++)r.glText[a].update(e)},r.draw=function(){for(var e=r.count,t=r.fill2d,a=r.error2d,i=r.line2d,o=r.scatter2d,l=r.glText,s=r.select2d,c=r.selectBatch,u=r.unselectBatch,f=0;f<e;f++){if(t&&r.fillOrder[f]&&t.draw(r.fillOrder[f]),i&&r.lineOptions[f]&&i.draw(f),a&&(r.errorXOptions[f]&&a.draw(f),r.errorYOptions[f]&&a.draw(f+e)),o&&r.markerOptions[f])if(u[f].length){var d=n.repeat([],r.count);d[f]=u[f],o.draw(d)}else c[f].length||o.draw(f);l[f]&&r.textOptions[f]&&l[f].render()}s&&s.draw(c),r.dirty=!1},r.destroy=function(){r.fill2d&&r.fill2d.destroy&&r.fill2d.destroy(),r.scatter2d&&r.scatter2d.destroy&&r.scatter2d.destroy(),r.error2d&&r.error2d.destroy&&r.error2d.destroy(),r.line2d&&r.line2d.destroy&&r.line2d.destroy(),r.select2d&&r.select2d.destroy&&r.select2d.destroy(),r.glText&&r.glText.forEach((function(e){e.destroy&&e.destroy()})),r.lineOptions=null,r.fillOptions=null,r.markerOptions=null,r.markerSelectedOptions=null,r.markerUnselectedOptions=null,r.errorXOptions=null,r.errorYOptions=null,r.textOptions=null,r.textSelectedOptions=null,r.textUnselectedOptions=null,r.selectBatch=null,r.unselectBatch=null,t._scene=null}),r.dirty||n.extendFlat(r,a),r}},function(e,t,r){"use strict";var n=r(30),a=r(320).styleTextSelection;e.exports=function(e,t){var r=e.cd,i=e.xaxis,o=e.yaxis,l=[],s=r[0].trace,c=r[0].t,u=s._length,f=c.x,d=c.y,p=c._scene,h=c.index;if(!p)return l;var g=n.hasText(s),v=n.hasMarkers(s),y=!v&&!g;if(!0!==s.visible||y)return l;var m=[],b=[];if(!1!==t&&!t.degenerate)for(var x=0;x<u;x++)t.contains([c.xpx[x],c.ypx[x]],!1,x,e)?(m.push(x),l.push({pointNumber:x,x:i.c2d(f[x]),y:o.c2d(d[x])})):b.push(x);if(v){var w=p.scatter2d;if(m.length||b.length){if(!p.selectBatch[h].length&&!p.unselectBatch[h].length){var _=new Array(p.count);_[h]=p.markerUnselectedOptions[h],w.update.apply(w,_)}}else{var k=new Array(p.count);k[h]=p.markerOptions[h],w.update.apply(w,k)}}return p.selectBatch[h]=m,p.unselectBatch[h]=b,g&&a(r),l}},function(e,t,r){"use strict";var n=r(683),a=r(686),i=r(709),o=r(710),l=r(0),s=r(99).selectMode,c=r(728),u=r(30),f=r(286),d=r(320).styleTextSelection,p={};function h(e,t,r,n){var a=e._size,i=e.width*n,o=e.height*n,l=a.l*n,s=a.b*n,c=a.r*n,u=a.t*n,f=a.w*n,d=a.h*n;return[l+t.domain[0]*f,s+r.domain[0]*d,i-c-(1-t.domain[1])*f,o-u-(1-r.domain[1])*d]}(e.exports=function(e,t,r){if(r.length){var g,v,y=e._fullLayout,m=t._scene,b=t.xaxis,x=t.yaxis;if(m)if(c(e,["ANGLE_instanced_arrays","OES_element_index_uint"],p)){var w=m.count,_=y._glcanvas.data()[0].regl;if(f(e,t,r),m.dirty){if(!0===m.error2d&&(m.error2d=i(_)),!0===m.line2d&&(m.line2d=a(_)),!0===m.scatter2d&&(m.scatter2d=n(_)),!0===m.fill2d&&(m.fill2d=a(_)),!0===m.glText)for(m.glText=new Array(w),g=0;g<w;g++)m.glText[g]=new o(_);if(m.glText){if(w>m.glText.length){var k=w-m.glText.length;for(g=0;g<k;g++)m.glText.push(new o(_))}else if(w<m.glText.length){var T=m.glText.length-w;m.glText.splice(w,T).forEach((function(e){e.destroy()}))}for(g=0;g<w;g++)m.glText[g].update(m.textOptions[g])}if(m.line2d&&(m.line2d.update(m.lineOptions),m.lineOptions=m.lineOptions.map((function(e){if(e&&e.positions){for(var t=e.positions,r=0;r<t.length&&(isNaN(t[r])||isNaN(t[r+1]));)r+=2;for(var n=t.length-2;n>r&&(isNaN(t[n])||isNaN(t[n+1]));)n-=2;e.positions=t.slice(r,n+2)}return e})),m.line2d.update(m.lineOptions)),m.error2d){var A=(m.errorXOptions||[]).concat(m.errorYOptions||[]);m.error2d.update(A)}m.scatter2d&&m.scatter2d.update(m.markerOptions),m.fillOrder=l.repeat(null,w),m.fill2d&&(m.fillOptions=m.fillOptions.map((function(e,t){var n=r[t];if(e&&n&&n[0]&&n[0].trace){var a,i,o=n[0],l=o.trace,s=o.t,c=m.lineOptions[t],u=[];l._ownfill&&u.push(t),l._nexttrace&&u.push(t+1),u.length&&(m.fillOrder[t]=u);var f,d,p=[],h=c&&c.positions||s.positions;if("tozeroy"===l.fill){for(f=0;f<h.length&&isNaN(h[f+1]);)f+=2;for(d=h.length-2;d>f&&isNaN(h[d+1]);)d-=2;0!==h[f+1]&&(p=[h[f],0]),p=p.concat(h.slice(f,d+2)),0!==h[d+1]&&(p=p.concat([h[d],0]))}else if("tozerox"===l.fill){for(f=0;f<h.length&&isNaN(h[f]);)f+=2;for(d=h.length-2;d>f&&isNaN(h[d]);)d-=2;0!==h[f]&&(p=[0,h[f+1]]),p=p.concat(h.slice(f,d+2)),0!==h[d]&&(p=p.concat([0,h[d+1]]))}else if("toself"===l.fill||"tonext"===l.fill){for(p=[],a=0,e.splitNull=!0,i=0;i<h.length;i+=2)(isNaN(h[i])||isNaN(h[i+1]))&&((p=p.concat(h.slice(a,i))).push(h[a],h[a+1]),p.push(null,null),a=i+2);p=p.concat(h.slice(a)),a&&p.push(h[a],h[a+1])}else{var g=l._nexttrace;if(g){var v=m.lineOptions[t+1];if(v){var y=v.positions;if("tonexty"===l.fill){for(p=h.slice(),t=Math.floor(y.length/2);t--;){var b=y[2*t],x=y[2*t+1];isNaN(b)||isNaN(x)||p.push(b,x)}e.fill=g.fillcolor}}}}if(l._prevtrace&&"tonext"===l._prevtrace.fill){var w=m.lineOptions[t-1].positions,_=p.length/2,k=[a=_];for(i=0;i<w.length;i+=2)(isNaN(w[i])||isNaN(w[i+1]))&&(k.push(i/2+_+1),a=i+2);p=p.concat(w),e.hole=k}return e.fillmode=l.fill,e.opacity=l.opacity,e.positions=p,e}})),m.fill2d.update(m.fillOptions))}var S=y.dragmode,M=s(S),O=y.clickmode.indexOf("select")>-1;for(g=0;g<w;g++){var C=r[g][0],E=C.trace,L=C.t,P=L.index,j=E._length,z=L.x,D=L.y;if(E.selectedpoints||M||O){if(M||(M=!0),E.selectedpoints){var I=m.selectBatch[P]=l.selIndices2selPoints(E),N={};for(v=0;v<I.length;v++)N[I[v]]=1;var R=[];for(v=0;v<j;v++)N[v]||R.push(v);m.unselectBatch[P]=R}var F=L.xpx=new Array(j),B=L.ypx=new Array(j);for(v=0;v<j;v++)F[v]=b.c2p(z[v]),B[v]=x.c2p(D[v])}else L.xpx=L.ypx=null}if(M){if(m.select2d||(m.select2d=n(y._glcanvas.data()[1].regl)),m.scatter2d){var U=new Array(w);for(g=0;g<w;g++)U[g]=m.selectBatch[g].length||m.unselectBatch[g].length?m.markerUnselectedOptions[g]:{};m.scatter2d.update(U)}m.select2d&&(m.select2d.update(m.markerOptions),m.select2d.update(m.markerSelectedOptions)),m.glText&&r.forEach((function(e){var t=((e||[])[0]||{}).trace||{};u.hasText(t)&&d(e)}))}else m.scatter2d&&m.scatter2d.update(m.markerOptions);var H={viewport:h(y,b,x,e._context.plotGlPixelRatio),range:[(b._rl||b.range)[0],(x._rl||x.range)[0],(b._rl||b.range)[1],(x._rl||x.range)[1]]},V=l.repeat(H,m.count);m.fill2d&&m.fill2d.update(V),m.line2d&&m.line2d.update(V),m.error2d&&m.error2d.update(V.concat(V)),m.scatter2d&&m.scatter2d.update(V),m.select2d&&m.select2d.update(V),m.glText&&m.glText.forEach((function(e){e.update(H)}))}else m.init()}}).reglPrecompiled=p},function(e,t,r){"use strict";function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,a,i=[],o=!0,l=!1;try{for(r=r.call(e);!(o=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(s){l=!0,a=s}finally{try{o||null==r.return||r.return()}finally{if(l)throw a}}return i}(e,t)||i(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||i(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){if(e){if("string"===typeof e)return o(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(e,t):void 0}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var l=r(83),s=r(105),c=r(684),u=r(315),f=r(53),d=r(321),p=r(57),h=r(322),g=r(106),v=r(685),y=r(197),m=r(133),b=x;function x(e,t){var r=this;if(!(this instanceof x))return new x(e,t);"function"===typeof e?(t||(t={}),t.regl=e):(t=e,e=null),t&&t.length&&(t.positions=t);var n,a=(e=t.regl)._gl,i=[],o=255;this.tooManyColors=v,n=e.texture({data:new Uint8Array(1020),width:o,height:1,type:"uint8",format:"rgba",wrapS:"clamp",wrapT:"clamp",mag:"nearest",min:"nearest"}),f(this,{regl:e,gl:a,groups:[],markerCache:[null],markerTextures:[null],palette:i,paletteIds:{},paletteTexture:n,maxColors:o,maxSize:100,canvas:a.canvas}),this.update(t);var l={uniforms:{constPointSize:!!t.constPointSize,opacity:e.prop("opacity"),paletteSize:function(e,t){return[r.tooManyColors?0:o,n.height]},pixelRatio:e.context("pixelRatio"),scale:e.prop("scale"),scaleFract:e.prop("scaleFract"),translate:e.prop("translate"),translateFract:e.prop("translateFract"),markerTexture:e.prop("markerTexture"),paletteTexture:n},attributes:{x:function(e,t){return t.xAttr||{buffer:t.positionBuffer,stride:8,offset:0}},y:function(e,t){return t.yAttr||{buffer:t.positionBuffer,stride:8,offset:4}},xFract:function(e,t){return t.xAttr?{constant:[0,0]}:{buffer:t.positionFractBuffer,stride:8,offset:0}},yFract:function(e,t){return t.yAttr?{constant:[0,0]}:{buffer:t.positionFractBuffer,stride:8,offset:4}},size:function(e,t){return t.size.length?{buffer:t.sizeBuffer,stride:2,offset:0}:{constant:[Math.round(255*t.size/r.maxSize)]}},borderSize:function(e,t){return t.borderSize.length?{buffer:t.sizeBuffer,stride:2,offset:1}:{constant:[Math.round(255*t.borderSize/r.maxSize)]}},colorId:function(e,t){return t.color.length?{buffer:t.colorBuffer,stride:r.tooManyColors?8:4,offset:0}:{constant:r.tooManyColors?i.slice(4*t.color,4*t.color+4):[t.color]}},borderColorId:function(e,t){return t.borderColor.length?{buffer:t.colorBuffer,stride:r.tooManyColors?8:4,offset:r.tooManyColors?4:2}:{constant:r.tooManyColors?i.slice(4*t.borderColor,4*t.borderColor+4):[t.borderColor]}},isActive:function(e,t){return!0===t.activation?{constant:[1]}:t.activation?t.activation:{constant:[0]}}},blend:{enable:!0,color:[0,0,0,1],func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},scissor:{enable:!0,box:e.prop("viewport")},viewport:e.prop("viewport"),stencil:{enable:!1},depth:{enable:!1},elements:e.prop("elements"),count:e.prop("count"),offset:e.prop("offset"),primitive:"points"},s=f({},l);s.frag=d(["precision highp float;\n#define GLSLIFY 1\n\nuniform float opacity;\nuniform sampler2D markerTexture;\n\nvarying vec4 fragColor, fragBorderColor;\nvarying float fragWidth, fragBorderColorLevel, fragColorLevel;\n\nfloat smoothStep(float x, float y) {\n return 1.0 / (1.0 + exp(50.0*(x - y)));\n}\n\nvoid main() {\n float dist = texture2D(markerTexture, gl_PointCoord).r, delta = fragWidth;\n\n // max-distance alpha\n if (dist < 0.003) discard;\n\n // null-border case\n if (fragBorderColorLevel == fragColorLevel || fragBorderColor.a == 0.) {\n float colorAmt = smoothstep(.5 - delta, .5 + delta, dist);\n gl_FragColor = vec4(fragColor.rgb, colorAmt * fragColor.a * opacity);\n }\n else {\n float borderColorAmt = smoothstep(fragBorderColorLevel - delta, fragBorderColorLevel + delta, dist);\n float colorAmt = smoothstep(fragColorLevel - delta, fragColorLevel + delta, dist);\n\n vec4 color = fragBorderColor;\n color.a *= borderColorAmt;\n color = mix(color, fragColor, colorAmt);\n color.a *= opacity;\n\n gl_FragColor = color;\n }\n\n}\n"]),s.vert=d(["precision highp float;\n#define GLSLIFY 1\n\nattribute float x, y, xFract, yFract;\nattribute float size, borderSize;\nattribute vec4 colorId, borderColorId;\nattribute float isActive;\n\nuniform bool constPointSize;\nuniform float pixelRatio;\nuniform vec2 scale, scaleFract, translate, translateFract, paletteSize;\nuniform sampler2D paletteTexture;\n\nconst float maxSize = 100.;\nconst float borderLevel = .5;\n\nvarying vec4 fragColor, fragBorderColor;\nvarying float fragPointSize, fragBorderRadius, fragWidth, fragBorderColorLevel, fragColorLevel;\n\nfloat pointSizeScale = (constPointSize) ? 2. : pixelRatio;\n\nbool isDirect = (paletteSize.x < 1.);\n\nvec4 getColor(vec4 id) {\n return isDirect ? id / 255. : texture2D(paletteTexture,\n vec2(\n (id.x + .5) / paletteSize.x,\n (id.y + .5) / paletteSize.y\n )\n );\n}\n\nvoid main() {\n // ignore inactive points\n if (isActive == 0.) return;\n\n vec2 position = vec2(x, y);\n vec2 positionFract = vec2(xFract, yFract);\n\n vec4 color = getColor(colorId);\n vec4 borderColor = getColor(borderColorId);\n\n float size = size * maxSize / 255.;\n float borderSize = borderSize * maxSize / 255.;\n\n gl_PointSize = 2. * size * pointSizeScale;\n fragPointSize = size * pixelRatio;\n\n vec2 pos = (position + translate) * scale\n + (positionFract + translateFract) * scale\n + (position + translate) * scaleFract\n + (positionFract + translateFract) * scaleFract;\n\n gl_Position = vec4(pos * 2. - 1., 0., 1.);\n\n fragColor = color;\n fragBorderColor = borderColor;\n fragWidth = 1. / gl_PointSize;\n\n fragBorderColorLevel = clamp(borderLevel - borderLevel * borderSize / size, 0., 1.);\n fragColorLevel = clamp(borderLevel + (1. - borderLevel) * borderSize / size, 0., 1.);\n}"]),this.drawMarker=e(s);var c=f({},l);c.frag=d(["precision highp float;\n#define GLSLIFY 1\n\nvarying vec4 fragColor, fragBorderColor;\nvarying float fragBorderRadius, fragWidth;\n\nuniform float opacity;\n\nfloat smoothStep(float edge0, float edge1, float x) {\n\tfloat t;\n\tt = clamp((x - edge0) / (edge1 - edge0), 0.0, 1.0);\n\treturn t * t * (3.0 - 2.0 * t);\n}\n\nvoid main() {\n\tfloat radius, alpha = 1.0, delta = fragWidth;\n\n\tradius = length(2.0 * gl_PointCoord.xy - 1.0);\n\n\tif (radius > 1.0 + delta) {\n\t\tdiscard;\n\t}\n\n\talpha -= smoothstep(1.0 - delta, 1.0 + delta, radius);\n\n\tfloat borderRadius = fragBorderRadius;\n\tfloat ratio = smoothstep(borderRadius - delta, borderRadius + delta, radius);\n\tvec4 color = mix(fragColor, fragBorderColor, ratio);\n\tcolor.a *= alpha * opacity;\n\tgl_FragColor = color;\n}\n"]),c.vert=d(["precision highp float;\n#define GLSLIFY 1\n\nattribute float x, y, xFract, yFract;\nattribute float size, borderSize;\nattribute vec4 colorId, borderColorId;\nattribute float isActive;\n\nuniform bool constPointSize;\nuniform float pixelRatio;\nuniform vec2 paletteSize, scale, scaleFract, translate, translateFract;\nuniform sampler2D paletteTexture;\n\nconst float maxSize = 100.;\n\nvarying vec4 fragColor, fragBorderColor;\nvarying float fragBorderRadius, fragWidth;\n\nfloat pointSizeScale = (constPointSize) ? 2. : pixelRatio;\n\nbool isDirect = (paletteSize.x < 1.);\n\nvec4 getColor(vec4 id) {\n return isDirect ? id / 255. : texture2D(paletteTexture,\n vec2(\n (id.x + .5) / paletteSize.x,\n (id.y + .5) / paletteSize.y\n )\n );\n}\n\nvoid main() {\n // ignore inactive points\n if (isActive == 0.) return;\n\n vec2 position = vec2(x, y);\n vec2 positionFract = vec2(xFract, yFract);\n\n vec4 color = getColor(colorId);\n vec4 borderColor = getColor(borderColorId);\n\n float size = size * maxSize / 255.;\n float borderSize = borderSize * maxSize / 255.;\n\n gl_PointSize = (size + borderSize) * pointSizeScale;\n\n vec2 pos = (position + translate) * scale\n + (positionFract + translateFract) * scale\n + (position + translate) * scaleFract\n + (positionFract + translateFract) * scaleFract;\n\n gl_Position = vec4(pos * 2. - 1., 0., 1.);\n\n fragBorderRadius = 1. - 2. * borderSize / (size + borderSize);\n fragColor = color;\n fragBorderColor = borderColor.a == 0. || borderSize == 0. ? vec4(color.rgb, 0.) : borderColor;\n fragWidth = 1. / gl_PointSize;\n}\n"]),v&&(c.frag=c.frag.replace("smoothstep","smoothStep"),s.frag=s.frag.replace("smoothstep","smoothStep")),this.drawCircle=e(c)}x.defaults={color:"black",borderColor:"transparent",borderSize:0,size:12,opacity:1,marker:void 0,viewport:null,range:null,pixelSize:null,count:0,offset:0,bounds:null,positions:[],snap:1e4},x.prototype.render=function(){return arguments.length&&this.update.apply(this,arguments),this.draw(),this},x.prototype.draw=function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var a=this.groups;if(1===r.length&&Array.isArray(r[0])&&(null===r[0][0]||Array.isArray(r[0][0]))&&(r=r[0]),this.regl._refresh(),r.length)for(var i=0;i<r.length;i++)this.drawItem(i,r[i]);else a.forEach((function(t,r){e.drawItem(r)}));return this},x.prototype.drawItem=function(e,t){var r=this.groups,n=r[e];if("number"===typeof t&&(e=t,n=r[t],t=null),n&&n.count&&n.opacity){n.activation[0]&&this.drawCircle(this.getMarkerDrawOptions(0,n,t));for(var i=[],o=1;o<n.activation.length;o++)n.activation[o]&&(!0===n.activation[o]||n.activation[o].data.length)&&i.push.apply(i,a(this.getMarkerDrawOptions(o,n,t)));i.length&&this.drawMarker(i)}},x.prototype.getMarkerDrawOptions=function(e,t,r){var a=t.range,i=t.tree,o=t.viewport,l=t.activation,s=t.selectionBuffer,c=t.count;this.regl;if(!i)return r?[f({},t,{markerTexture:this.markerTextures[e],activation:l[e],count:r.length,elements:r,offset:0})]:[f({},t,{markerTexture:this.markerTextures[e],activation:l[e],offset:0})];var u=[],d=i.range(a,{lod:!0,px:[(a[2]-a[0])/o.width,(a[3]-a[1])/o.height]});if(r){for(var p=l[e].data,h=new Uint8Array(c),g=0;g<r.length;g++){var v=r[g];h[v]=p?p[v]:1}s.subdata(h)}for(var y=d.length;y--;){var m=n(d[y],2),b=m[0],x=m[1];u.push(f({},t,{markerTexture:this.markerTextures[e],activation:r?s:l[e],offset:b,count:x-b}))}return u},x.prototype.update=function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(r.length){1===r.length&&Array.isArray(r[0])&&(r=r[0]);var a=this.groups,i=this.gl,o=this.regl,l=this.maxSize,c=this.maxColors,d=this.palette;this.groups=a=r.map((function(t,r){var n=a[r];if(void 0===t)return n;null===t?t={positions:null}:"function"===typeof t?t={ondraw:t}:"number"===typeof t[0]&&(t={positions:t}),null===(t=p(t,{positions:"positions data points",snap:"snap cluster lod tree",size:"sizes size radius",borderSize:"borderSizes borderSize border-size bordersize borderWidth borderWidths border-width borderwidth stroke-width strokeWidth strokewidth outline",color:"colors color fill fill-color fillColor",borderColor:"borderColors borderColor stroke stroke-color strokeColor",marker:"markers marker shape",range:"range dataBox databox",viewport:"viewport viewPort viewBox viewbox",opacity:"opacity alpha transparency",bounds:"bound bounds boundaries limits",tooManyColors:"tooManyColors palette paletteMode optimizePalette enablePalette"})).positions&&(t.positions=[]),null!=t.tooManyColors&&(e.tooManyColors=t.tooManyColors),n||(a[r]=n={id:r,scale:null,translate:null,scaleFract:null,translateFract:null,activation:[],selectionBuffer:o.buffer({data:new Uint8Array(0),usage:"stream",type:"uint8"}),sizeBuffer:o.buffer({data:new Uint8Array(0),usage:"dynamic",type:"uint8"}),colorBuffer:o.buffer({data:new Uint8Array(0),usage:"dynamic",type:"uint8"}),positionBuffer:o.buffer({data:new Uint8Array(0),usage:"dynamic",type:"float"}),positionFractBuffer:o.buffer({data:new Uint8Array(0),usage:"dynamic",type:"float"})},t=f({},x.defaults,t)),t.positions&&!("marker"in t)&&(t.marker=n.marker,delete n.marker),t.marker&&!("positions"in t)&&(t.positions=n.positions,delete n.positions);var v=0,b=0;if(h(n,t,[{snap:!0,size:function(e,t){return null==e&&(e=x.defaults.size),v+=e&&e.length?1:0,e},borderSize:function(e,t){return null==e&&(e=x.defaults.borderSize),v+=e&&e.length?1:0,e},opacity:parseFloat,color:function(t,r){return null==t&&(t=x.defaults.color),t=e.updateColor(t),b++,t},borderColor:function(t,r){return null==t&&(t=x.defaults.borderColor),t=e.updateColor(t),b++,t},bounds:function(e,t,r){return"range"in r||(r.range=null),e},positions:function(e,t,r){var n=t.snap,a=t.positionBuffer,i=t.positionFractBuffer,l=t.selectionBuffer;if(e.x||e.y)return e.x.length?t.xAttr={buffer:o.buffer(e.x),offset:0,stride:4,count:e.x.length}:t.xAttr={buffer:e.x.buffer,offset:4*e.x.offset||0,stride:4*(e.x.stride||1),count:e.x.count},e.y.length?t.yAttr={buffer:o.buffer(e.y),offset:0,stride:4,count:e.y.length}:t.yAttr={buffer:e.y.buffer,offset:4*e.y.offset||0,stride:4*(e.y.stride||1),count:e.y.count},t.count=Math.max(t.xAttr.count,t.yAttr.count),e;e=g(e,"float64");var c=t.count=Math.floor(e.length/2),f=t.bounds=c?s(e,2):null;if(r.range||t.range||(delete t.range,r.range=f),r.marker||t.marker||(delete t.marker,r.marker=null),n&&(!0===n||c>n)?t.tree=u(e,{bounds:f}):n&&n.length&&(t.tree=n),t.tree){var d={primitive:"points",usage:"static",data:t.tree,type:"uint32"};t.elements?t.elements(d):t.elements=o.elements(d)}var p=y.float32(e);return a({data:p,usage:"dynamic"}),i({data:y.fract32(e,p),usage:"dynamic"}),l({data:new Uint8Array(c),type:"uint8",usage:"stream"}),e}},{marker:function(t,r,n){var a=r.activation;if(a.forEach((function(e){return e&&e.destroy&&e.destroy()})),a.length=0,t&&"number"!==typeof t[0]){for(var i=[],l=0,s=Math.min(t.length,r.count);l<s;l++){var c=e.addMarker(t[l]);i[c]||(i[c]=new Uint8Array(r.count)),i[c][l]=1}for(var u=0;u<i.length;u++)if(i[u]){var f={data:i[u],type:"uint8",usage:"static"};a[u]?a[u](f):a[u]=o.buffer(f),a[u].data=i[u]}}else{a[e.addMarker(t)]=!0}return t},range:function(e,t,r){var n=t.bounds;if(n)return e||(e=n),t.scale=[1/(e[2]-e[0]),1/(e[3]-e[1])],t.translate=[-e[0],-e[1]],t.scaleFract=y.fract(t.scale),t.translateFract=y.fract(t.translate),e},viewport:function(e){return m(e||[i.drawingBufferWidth,i.drawingBufferHeight])}}]),v){var w=n,_=w.count,k=w.size,T=w.borderSize,A=w.sizeBuffer,S=new Uint8Array(2*_);if(k.length||T.length)for(var M=0;M<_;M++)S[2*M]=Math.round(255*(null==k[M]?k:k[M])/l),S[2*M+1]=Math.round(255*(null==T[M]?T:T[M])/l);A({data:S,usage:"dynamic"})}if(b){var O,C=n,E=C.count,L=C.color,P=C.borderColor,j=C.colorBuffer;if(e.tooManyColors){if(L.length||P.length){O=new Uint8Array(8*E);for(var z=0;z<E;z++){var D=L[z];O[8*z]=d[4*D],O[8*z+1]=d[4*D+1],O[8*z+2]=d[4*D+2],O[8*z+3]=d[4*D+3];var I=P[z];O[8*z+4]=d[4*I],O[8*z+5]=d[4*I+1],O[8*z+6]=d[4*I+2],O[8*z+7]=d[4*I+3]}}}else if(L.length||P.length){O=new Uint8Array(4*E+2);for(var N=0;N<E;N++)null!=L[N]&&(O[4*N]=L[N]%c,O[4*N+1]=Math.floor(L[N]/c)),null!=P[N]&&(O[4*N+2]=P[N]%c,O[4*N+3]=Math.floor(P[N]/c))}j({data:O||new Uint8Array(0),type:"uint8",usage:"dynamic"})}return n}))}},x.prototype.addMarker=function(e){var t,r=this.markerTextures,n=this.regl,a=this.markerCache,i=null==e?0:a.indexOf(e);if(i>=0)return i;if(e instanceof Uint8Array||e instanceof Uint8ClampedArray)t=e;else{t=new Uint8Array(e.length);for(var o=0,l=e.length;o<l;o++)t[o]=255*e[o]}var s=Math.floor(Math.sqrt(t.length));return i=r.length,a.push(e),r.push(n.texture({channels:1,data:t,radius:s,mag:"linear",min:"linear"})),i},x.prototype.updateColor=function(e){var t=this.paletteIds,r=this.palette,n=this.maxColors;Array.isArray(e)||(e=[e]);var a=[];if("number"===typeof e[0]){var i=[];if(Array.isArray(e))for(var o=0;o<e.length;o+=4)i.push(e.slice(o,o+4));else for(var s=0;s<e.length;s+=4)i.push(e.subarray(s,s+4));e=i}for(var u=0;u<e.length;u++){var f=e[u];f=l(f,"uint8");var d=c(f,!1);if(null==t[d]){var p=r.length;t[d]=Math.floor(p/4),r[p]=f[0],r[p+1]=f[1],r[p+2]=f[2],r[p+3]=f[3]}a[u]=t[d]}return!this.tooManyColors&&r.length>4*n&&(this.tooManyColors=!0),this.updatePalette(r),1===a.length?a[0]:a},x.prototype.updatePalette=function(e){if(!this.tooManyColors){var t=this.maxColors,r=this.paletteTexture,n=Math.ceil(.25*e.length/t);if(n>1)for(var a=.25*(e=e.slice()).length%t;a<n*t;a++)e.push(0,0,0,0);r.height<n&&r.resize(t,n),r.subimage({width:Math.min(.25*e.length,t),height:n,data:e},0,0)}},x.prototype.destroy=function(){return this.groups.forEach((function(e){e.sizeBuffer.destroy(),e.positionBuffer.destroy(),e.positionFractBuffer.destroy(),e.colorBuffer.destroy(),e.activation.forEach((function(e){return e&&e.destroy&&e.destroy()})),e.selectionBuffer.destroy(),e.elements&&e.elements.destroy()})),this.groups.length=0,this.paletteTexture.destroy(),this.markerTextures.forEach((function(e){return e&&e.destroy&&e.destroy()})),this};var w=r(53);e.exports=function(e,t){var r=new b(e,t),n=r.render.bind(r);return w(n,{render:n,update:r.update.bind(r),draw:r.draw.bind(r),destroy:r.destroy.bind(r),regl:r.regl,gl:r.gl,canvas:r.gl.canvas,groups:r.groups,markers:r.markerCache,palette:r.palette}),n}},function(e,t,r){"use strict";var n=r(104);function a(e,t){null==t&&(t=!0);var r=e[0],a=e[1],i=e[2],o=e[3];return null==o&&(o=t?1:255),t&&(r*=255,a*=255,i*=255,o*=255),16777216*(r=255&n(r,0,255))+((a=255&n(a,0,255))<<16)+((i=255&n(i,0,255))<<8)+(o=255&n(o,0,255))}e.exports=a,e.exports.to=a,e.exports.from=function(e,t){var r=(e=+e)>>>24,n=(16711680&e)>>>16,a=(65280&e)>>>8,i=255&e;return!1===t?[r,n,a,i]:[r/255,n/255,a/255,i/255]}},function(e,t,r){"use strict";e.exports="undefined"!==typeof navigator&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion))},function(e,t,r){"use strict";var n=r(140).default,a=r(83),i=r(105),o=r(53),l=r(321),s=r(57),c=r(106),u=r(687),f=r(688),d=r(197),p=d.float32,h=d.fract32,g=r(323),v=r(133),y=r(708);function m(e,t){if(!(this instanceof m))return new m(e,t);if("function"===typeof e?(t||(t={}),t.regl=e):t=e,t.length&&(t.positions=t),!(e=t.regl).hasExtension("ANGLE_instanced_arrays"))throw Error("regl-error2d: `ANGLE_instanced_arrays` extension should be enabled");this.gl=e._gl,this.regl=e,this.passes=[],this.shaders=m.shaders.has(e)?m.shaders.get(e):m.shaders.set(e,m.createShaders(e)).get(e),this.update(t)}e.exports=m,m.dashMult=2,m.maxPatternLength=256,m.precisionThreshold=3e6,m.maxPoints=1e4,m.maxLines=2048,m.shaders=new g,m.createShaders=function(e){var t,r=e.buffer({usage:"static",type:"float",data:[0,1,0,0,1,1,1,0]}),n={primitive:"triangle strip",instances:e.prop("count"),count:4,offset:0,uniforms:{miterMode:function(e,t){return"round"===t.join?2:1},miterLimit:e.prop("miterLimit"),scale:e.prop("scale"),scaleFract:e.prop("scaleFract"),translateFract:e.prop("translateFract"),translate:e.prop("translate"),thickness:e.prop("thickness"),dashTexture:e.prop("dashTexture"),opacity:e.prop("opacity"),pixelRatio:e.context("pixelRatio"),id:e.prop("id"),dashLength:e.prop("dashLength"),viewport:function(e,t){return[t.viewport.x,t.viewport.y,e.viewportWidth,e.viewportHeight]},depth:e.prop("depth")},blend:{enable:!0,color:[0,0,0,0],equation:{rgb:"add",alpha:"add"},func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},depth:{enable:function(e,t){return!t.overlay}},stencil:{enable:!1},scissor:{enable:!0,box:e.prop("viewport")},viewport:e.prop("viewport")},a=e(o({vert:l("./rect-vert.glsl"),frag:l("./rect-frag.glsl"),attributes:{lineEnd:{buffer:r,divisor:0,stride:8,offset:0},lineTop:{buffer:r,divisor:0,stride:8,offset:4},aCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:8,divisor:1},bCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:16,divisor:1},aCoordFract:{buffer:e.prop("positionFractBuffer"),stride:8,offset:8,divisor:1},bCoordFract:{buffer:e.prop("positionFractBuffer"),stride:8,offset:16,divisor:1},color:{buffer:e.prop("colorBuffer"),stride:4,offset:0,divisor:1}}},n));try{t=e(o({cull:{enable:!0,face:"back"},vert:l("./miter-vert.glsl"),frag:l("./miter-frag.glsl"),attributes:{lineEnd:{buffer:r,divisor:0,stride:8,offset:0},lineTop:{buffer:r,divisor:0,stride:8,offset:4},aColor:{buffer:e.prop("colorBuffer"),stride:4,offset:0,divisor:1},bColor:{buffer:e.prop("colorBuffer"),stride:4,offset:4,divisor:1},prevCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:0,divisor:1},aCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:8,divisor:1},bCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:16,divisor:1},nextCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:24,divisor:1}}},n))}catch(i){t=a}return{fill:e({primitive:"triangle",elements:function(e,t){return t.triangles},offset:0,vert:l("./fill-vert.glsl"),frag:l("./fill-frag.glsl"),uniforms:{scale:e.prop("scale"),color:e.prop("fill"),scaleFract:e.prop("scaleFract"),translateFract:e.prop("translateFract"),translate:e.prop("translate"),opacity:e.prop("opacity"),pixelRatio:e.context("pixelRatio"),id:e.prop("id"),viewport:function(e,t){return[t.viewport.x,t.viewport.y,e.viewportWidth,e.viewportHeight]}},attributes:{position:{buffer:e.prop("positionBuffer"),stride:8,offset:8},positionFract:{buffer:e.prop("positionFractBuffer"),stride:8,offset:8}},blend:n.blend,depth:{enable:!1},scissor:n.scissor,stencil:n.stencil,viewport:n.viewport}),rect:a,miter:t}},m.defaults={dashes:null,join:"miter",miterLimit:1,thickness:10,cap:"square",color:"black",opacity:1,overlay:!1,viewport:null,range:null,close:!1,fill:null},m.prototype.render=function(){arguments.length&&this.update.apply(this,arguments),this.draw()},m.prototype.draw=function(){for(var e=this,t=arguments.length,r=new Array(t),a=0;a<t;a++)r[a]=arguments[a];return(r.length?r:this.passes).forEach((function(t,r){if(t&&Array.isArray(t))return e.draw.apply(e,n(t));"number"===typeof t&&(t=e.passes[t]),t&&t.count>1&&t.opacity&&(e.regl._refresh(),t.fill&&t.triangles&&t.triangles.length>2&&e.shaders.fill(t),t.thickness&&(t.scale[0]*t.viewport.width>m.precisionThreshold||t.scale[1]*t.viewport.height>m.precisionThreshold||"rect"===t.join||!t.join&&(t.thickness<=2||t.count>=m.maxPoints)?e.shaders.rect(t):e.shaders.miter(t)))})),this},m.prototype.update=function(e){var t=this;if(e){null!=e.length?"number"===typeof e[0]&&(e=[{positions:e}]):Array.isArray(e)||(e=[e]);var r=this.regl,l=this.gl;if(e.forEach((function(e,d){var g=t.passes[d];if(void 0!==e)if(null!==e){if("number"===typeof e[0]&&(e={positions:e}),e=s(e,{positions:"positions points data coords",thickness:"thickness lineWidth lineWidths line-width linewidth width stroke-width strokewidth strokeWidth",join:"lineJoin linejoin join type mode",miterLimit:"miterlimit miterLimit",dashes:"dash dashes dasharray dash-array dashArray",color:"color colour stroke colors colours stroke-color strokeColor",fill:"fill fill-color fillColor",opacity:"alpha opacity",overlay:"overlay crease overlap intersect",close:"closed close closed-path closePath",range:"range dataBox",viewport:"viewport viewBox",hole:"holes hole hollow",splitNull:"splitNull"}),g||(t.passes[d]=g={id:d,scale:null,scaleFract:null,translate:null,translateFract:null,count:0,hole:[],depth:0,dashLength:1,dashTexture:r.texture({channels:1,data:new Uint8Array([255]),width:1,height:1,mag:"linear",min:"linear"}),colorBuffer:r.buffer({usage:"dynamic",type:"uint8",data:new Uint8Array}),positionBuffer:r.buffer({usage:"dynamic",type:"float",data:new Uint8Array}),positionFractBuffer:r.buffer({usage:"dynamic",type:"float",data:new Uint8Array})},e=o({},m.defaults,e)),null!=e.thickness&&(g.thickness=parseFloat(e.thickness)),null!=e.opacity&&(g.opacity=parseFloat(e.opacity)),null!=e.miterLimit&&(g.miterLimit=parseFloat(e.miterLimit)),null!=e.overlay&&(g.overlay=!!e.overlay,d<m.maxLines&&(g.depth=2*(m.maxLines-1-d%m.maxLines)/m.maxLines-1)),null!=e.join&&(g.join=e.join),null!=e.hole&&(g.hole=e.hole),null!=e.fill&&(g.fill=e.fill?a(e.fill,"uint8"):null),null!=e.viewport&&(g.viewport=v(e.viewport)),g.viewport||(g.viewport=v([l.drawingBufferWidth,l.drawingBufferHeight])),null!=e.close&&(g.close=e.close),null===e.positions&&(e.positions=[]),e.positions){var b,x;if(e.positions.x&&e.positions.y){var w=e.positions.x,_=e.positions.y;x=g.count=Math.max(w.length,_.length),b=new Float64Array(2*x);for(var k=0;k<x;k++)b[2*k]=w[k],b[2*k+1]=_[k]}else b=c(e.positions,"float64"),x=g.count=Math.floor(b.length/2);var T=g.bounds=i(b,2);if(g.fill){for(var A=[],S={},M=0,O=0,C=0,E=g.count;O<E;O++){var L=b[2*O],P=b[2*O+1];isNaN(L)||isNaN(P)||null==L||null==P?(L=b[2*M],P=b[2*M+1],S[O]=M):M=O,A[C++]=L,A[C++]=P}if(e.splitNull)!function(){g.count-1 in S||(S[g.count]=g.count-1);var e=Object.keys(S).map(Number).sort((function(e,t){return e-t})),t=[],r=0,a=null!=g.hole?g.hole[0]:null;if(null!=a){var i=y(e,(function(e){return e>=a}));(e=e.slice(0,i)).push(a)}for(var o=function(i){var o=A.slice(2*r,2*e[i]).concat(a?A.slice(2*a):[]),l=(g.hole||[]).map((function(t){return t-a+(e[i]-r)})),s=u(o,l);s=s.map((function(t){return t+r+(t+r<e[i]?0:a-e[i])})),t.push.apply(t,n(s)),r=e[i]+1},l=0;l<e.length;l++)o(l);for(var s=0,c=t.length;s<c;s++)null!=S[t[s]]&&(t[s]=S[t[s]]);g.triangles=t}();else{for(var j=u(A,g.hole||[]),z=0,D=j.length;z<D;z++)null!=S[j[z]]&&(j[z]=S[j[z]]);g.triangles=j}}var I=new Float64Array(b);f(I,2,T);var N=new Float64Array(2*x+6);g.close?b[0]===b[2*x-2]&&b[1]===b[2*x-1]?(N[0]=I[2*x-4],N[1]=I[2*x-3]):(N[0]=I[2*x-2],N[1]=I[2*x-1]):(N[0]=I[0],N[1]=I[1]),N.set(I,2),g.close?b[0]===b[2*x-2]&&b[1]===b[2*x-1]?(N[2*x+2]=I[2],N[2*x+3]=I[3],g.count-=1):(N[2*x+2]=I[0],N[2*x+3]=I[1],N[2*x+4]=I[2],N[2*x+5]=I[3]):(N[2*x+2]=I[2*x-2],N[2*x+3]=I[2*x-1],N[2*x+4]=I[2*x-2],N[2*x+5]=I[2*x-1]);var R=p(N);g.positionBuffer(R);var F=h(N,R);g.positionFractBuffer(F)}if(e.range?g.range=e.range:g.range||(g.range=g.bounds),(e.range||e.positions)&&g.count){var B=g.bounds,U=B[2]-B[0],H=B[3]-B[1],V=g.range[2]-g.range[0],q=g.range[3]-g.range[1];g.scale=[U/V,H/q],g.translate=[-g.range[0]/V+B[0]/V||0,-g.range[1]/q+B[1]/q||0],g.scaleFract=h(g.scale),g.translateFract=h(g.translate)}if(e.dashes){var W,Y=0;if(!e.dashes||e.dashes.length<2)Y=1,W=new Uint8Array([255,255,255,255,255,255,255,255]);else{Y=0;for(var G=0;G<e.dashes.length;++G)Y+=e.dashes[G];W=new Uint8Array(Y*m.dashMult);for(var X=0,Z=255,$=0;$<2;$++)for(var Q=0;Q<e.dashes.length;++Q){for(var K=0,J=e.dashes[Q]*m.dashMult*.5;K<J;++K)W[X++]=Z;Z^=255}}g.dashLength=Y,g.dashTexture({channels:1,data:W,width:W.length,height:1,mag:"linear",min:"linear"},0,0)}if(e.color){var ee=g.count,te=e.color;te||(te="transparent");var re=new Uint8Array(4*ee+4);if(Array.isArray(te)&&"number"!==typeof te[0]){for(var ne=0;ne<ee;ne++){var ae=a(te[ne],"uint8");re.set(ae,4*ne)}re.set(a(te[0],"uint8"),4*ee)}else for(var ie=a(te,"uint8"),oe=0;oe<ee+1;oe++)re.set(ie,4*oe);g.colorBuffer({usage:"dynamic",type:"uint8",data:re})}}else t.passes[d]=null})),e.length<this.passes.length){for(var d=e.length;d<this.passes.length;d++){var g=this.passes[d];g&&(g.colorBuffer.destroy(),g.positionBuffer.destroy(),g.dashTexture.destroy())}this.passes.length=e.length}for(var b=[],x=0;x<this.passes.length;x++)null!==this.passes[x]&&b.push(this.passes[x]);return this.passes=b,this}},m.prototype.destroy=function(){return this.passes.forEach((function(e){e.colorBuffer.destroy(),e.positionBuffer.destroy(),e.dashTexture.destroy()})),this.passes.length=0,this}},function(e,t,r){"use strict";function n(e,t,r){r=r||2;var n,l,s,c,u,p,h,v=t&&t.length,y=v?t[0]*r:e.length,m=a(e,0,y,r,!0),b=[];if(!m||m.next===m.prev)return b;if(v&&(m=function(e,t,r,n){var o,l,s,c=[];for(o=0,l=t.length;o<l;o++)(s=a(e,t[o]*n,o<l-1?t[o+1]*n:e.length,n,!1))===s.next&&(s.steiner=!0),c.push(g(s));for(c.sort(f),o=0;o<c.length;o++)r=i(r=d(c[o],r),r.next);return r}(e,t,m,r)),e.length>80*r){n=s=e[0],l=c=e[1];for(var x=r;x<y;x+=r)(u=e[x])<n&&(n=u),(p=e[x+1])<l&&(l=p),u>s&&(s=u),p>c&&(c=p);h=0!==(h=Math.max(s-n,c-l))?1/h:0}return o(m,b,r,n,l,h),b}function a(e,t,r,n,a){var i,o;if(a===O(e,t,r,n)>0)for(i=t;i<r;i+=n)o=A(i,e[i],e[i+1],o);else for(i=r-n;i>=t;i-=n)o=A(i,e[i],e[i+1],o);return o&&b(o,o.next)&&(S(o),o=o.next),o}function i(e,t){if(!e)return e;t||(t=e);var r,n=e;do{if(r=!1,n.steiner||!b(n,n.next)&&0!==m(n.prev,n,n.next))n=n.next;else{if(S(n),(n=t=n.prev)===n.next)break;r=!0}}while(r||n!==t);return t}function o(e,t,r,n,a,f,d){if(e){!d&&f&&function(e,t,r,n){var a=e;do{null===a.z&&(a.z=h(a.x,a.y,t,r,n)),a.prevZ=a.prev,a.nextZ=a.next,a=a.next}while(a!==e);a.prevZ.nextZ=null,a.prevZ=null,function(e){var t,r,n,a,i,o,l,s,c=1;do{for(r=e,e=null,i=null,o=0;r;){for(o++,n=r,l=0,t=0;t<c&&(l++,n=n.nextZ);t++);for(s=c;l>0||s>0&&n;)0!==l&&(0===s||!n||r.z<=n.z)?(a=r,r=r.nextZ,l--):(a=n,n=n.nextZ,s--),i?i.nextZ=a:e=a,a.prevZ=i,i=a;r=n}i.nextZ=null,c*=2}while(o>1)}(a)}(e,n,a,f);for(var p,g,v=e;e.prev!==e.next;)if(p=e.prev,g=e.next,f?s(e,n,a,f):l(e))t.push(p.i/r),t.push(e.i/r),t.push(g.i/r),S(e),e=g.next,v=g.next;else if((e=g)===v){d?1===d?o(e=c(i(e),t,r),t,r,n,a,f,2):2===d&&u(e,t,r,n,a,f):o(i(e),t,r,n,a,f,1);break}}}function l(e){var t=e.prev,r=e,n=e.next;if(m(t,r,n)>=0)return!1;for(var a=e.next.next;a!==e.prev;){if(v(t.x,t.y,r.x,r.y,n.x,n.y,a.x,a.y)&&m(a.prev,a,a.next)>=0)return!1;a=a.next}return!0}function s(e,t,r,n){var a=e.prev,i=e,o=e.next;if(m(a,i,o)>=0)return!1;for(var l=a.x<i.x?a.x<o.x?a.x:o.x:i.x<o.x?i.x:o.x,s=a.y<i.y?a.y<o.y?a.y:o.y:i.y<o.y?i.y:o.y,c=a.x>i.x?a.x>o.x?a.x:o.x:i.x>o.x?i.x:o.x,u=a.y>i.y?a.y>o.y?a.y:o.y:i.y>o.y?i.y:o.y,f=h(l,s,t,r,n),d=h(c,u,t,r,n),p=e.prevZ,g=e.nextZ;p&&p.z>=f&&g&&g.z<=d;){if(p!==e.prev&&p!==e.next&&v(a.x,a.y,i.x,i.y,o.x,o.y,p.x,p.y)&&m(p.prev,p,p.next)>=0)return!1;if(p=p.prevZ,g!==e.prev&&g!==e.next&&v(a.x,a.y,i.x,i.y,o.x,o.y,g.x,g.y)&&m(g.prev,g,g.next)>=0)return!1;g=g.nextZ}for(;p&&p.z>=f;){if(p!==e.prev&&p!==e.next&&v(a.x,a.y,i.x,i.y,o.x,o.y,p.x,p.y)&&m(p.prev,p,p.next)>=0)return!1;p=p.prevZ}for(;g&&g.z<=d;){if(g!==e.prev&&g!==e.next&&v(a.x,a.y,i.x,i.y,o.x,o.y,g.x,g.y)&&m(g.prev,g,g.next)>=0)return!1;g=g.nextZ}return!0}function c(e,t,r){var n=e;do{var a=n.prev,o=n.next.next;!b(a,o)&&x(a,n,n.next,o)&&k(a,o)&&k(o,a)&&(t.push(a.i/r),t.push(n.i/r),t.push(o.i/r),S(n),S(n.next),n=e=o),n=n.next}while(n!==e);return i(n)}function u(e,t,r,n,a,l){var s=e;do{for(var c=s.next.next;c!==s.prev;){if(s.i!==c.i&&y(s,c)){var u=T(s,c);return s=i(s,s.next),u=i(u,u.next),o(s,t,r,n,a,l),void o(u,t,r,n,a,l)}c=c.next}s=s.next}while(s!==e)}function f(e,t){return e.x-t.x}function d(e,t){var r=function(e,t){var r,n=t,a=e.x,i=e.y,o=-1/0;do{if(i<=n.y&&i>=n.next.y&&n.next.y!==n.y){var l=n.x+(i-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(l<=a&&l>o){if(o=l,l===a){if(i===n.y)return n;if(i===n.next.y)return n.next}r=n.x<n.next.x?n:n.next}}n=n.next}while(n!==t);if(!r)return null;if(a===o)return r;var s,c=r,u=r.x,f=r.y,d=1/0;n=r;do{a>=n.x&&n.x>=u&&a!==n.x&&v(i<f?a:o,i,u,f,i<f?o:a,i,n.x,n.y)&&(s=Math.abs(i-n.y)/(a-n.x),k(n,e)&&(s<d||s===d&&(n.x>r.x||n.x===r.x&&p(r,n)))&&(r=n,d=s)),n=n.next}while(n!==c);return r}(e,t);if(!r)return t;var n=T(r,e),a=i(r,r.next);return i(n,n.next),t===r?a:t}function p(e,t){return m(e.prev,e,t.prev)<0&&m(t.next,e,e.next)<0}function h(e,t,r,n,a){return(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-r)*a)|e<<8))|e<<4))|e<<2))|e<<1))|(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-n)*a)|t<<8))|t<<4))|t<<2))|t<<1))<<1}function g(e){var t=e,r=e;do{(t.x<r.x||t.x===r.x&&t.y<r.y)&&(r=t),t=t.next}while(t!==e);return r}function v(e,t,r,n,a,i,o,l){return(a-o)*(t-l)-(e-o)*(i-l)>=0&&(e-o)*(n-l)-(r-o)*(t-l)>=0&&(r-o)*(i-l)-(a-o)*(n-l)>=0}function y(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!function(e,t){var r=e;do{if(r.i!==e.i&&r.next.i!==e.i&&r.i!==t.i&&r.next.i!==t.i&&x(r,r.next,e,t))return!0;r=r.next}while(r!==e);return!1}(e,t)&&(k(e,t)&&k(t,e)&&function(e,t){var r=e,n=!1,a=(e.x+t.x)/2,i=(e.y+t.y)/2;do{r.y>i!==r.next.y>i&&r.next.y!==r.y&&a<(r.next.x-r.x)*(i-r.y)/(r.next.y-r.y)+r.x&&(n=!n),r=r.next}while(r!==e);return n}(e,t)&&(m(e.prev,e,t.prev)||m(e,t.prev,t))||b(e,t)&&m(e.prev,e,e.next)>0&&m(t.prev,t,t.next)>0)}function m(e,t,r){return(t.y-e.y)*(r.x-t.x)-(t.x-e.x)*(r.y-t.y)}function b(e,t){return e.x===t.x&&e.y===t.y}function x(e,t,r,n){var a=_(m(e,t,r)),i=_(m(e,t,n)),o=_(m(r,n,e)),l=_(m(r,n,t));return a!==i&&o!==l||(!(0!==a||!w(e,r,t))||(!(0!==i||!w(e,n,t))||(!(0!==o||!w(r,e,n))||!(0!==l||!w(r,t,n)))))}function w(e,t,r){return t.x<=Math.max(e.x,r.x)&&t.x>=Math.min(e.x,r.x)&&t.y<=Math.max(e.y,r.y)&&t.y>=Math.min(e.y,r.y)}function _(e){return e>0?1:e<0?-1:0}function k(e,t){return m(e.prev,e,e.next)<0?m(e,t,e.next)>=0&&m(e,e.prev,t)>=0:m(e,t,e.prev)<0||m(e,e.next,t)<0}function T(e,t){var r=new M(e.i,e.x,e.y),n=new M(t.i,t.x,t.y),a=e.next,i=t.prev;return e.next=t,t.prev=e,r.next=a,a.prev=r,n.next=r,r.prev=n,i.next=n,n.prev=i,n}function A(e,t,r,n){var a=new M(e,t,r);return n?(a.next=n.next,a.prev=n,n.next.prev=a,n.next=a):(a.prev=a,a.next=a),a}function S(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function M(e,t,r){this.i=e,this.x=t,this.y=r,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function O(e,t,r,n){for(var a=0,i=t,o=r-n;i<r;i+=n)a+=(e[o]-e[i])*(e[i+1]+e[o+1]),o=i;return a}e.exports=n,e.exports.default=n,n.deviation=function(e,t,r,n){var a=t&&t.length,i=a?t[0]*r:e.length,o=Math.abs(O(e,0,i,r));if(a)for(var l=0,s=t.length;l<s;l++){var c=t[l]*r,u=l<s-1?t[l+1]*r:e.length;o-=Math.abs(O(e,c,u,r))}var f=0;for(l=0;l<n.length;l+=3){var d=n[l]*r,p=n[l+1]*r,h=n[l+2]*r;f+=Math.abs((e[d]-e[h])*(e[p+1]-e[d+1])-(e[d]-e[p])*(e[h+1]-e[d+1]))}return 0===o&&0===f?0:Math.abs((f-o)/o)},n.flatten=function(e){for(var t=e[0][0].length,r={vertices:[],holes:[],dimensions:t},n=0,a=0;a<e.length;a++){for(var i=0;i<e[a].length;i++)for(var o=0;o<t;o++)r.vertices.push(e[a][i][o]);a>0&&(n+=e[a-1].length,r.holes.push(n))}return r}},function(e,t,r){"use strict";var n=r(105);e.exports=function(e,t,r){if(!e||null==e.length)throw Error("Argument should be an array");null==t&&(t=1);null==r&&(r=n(e,t));for(var a=0;a<t;a++){var i=r[t+a],o=r[a],l=a,s=e.length;if(i===1/0&&o===-1/0)for(l=a;l<s;l+=t)e[l]=e[l]===i?1:e[l]===o?0:.5;else if(i===1/0)for(l=a;l<s;l+=t)e[l]=e[l]===i?1:0;else if(o===-1/0)for(l=a;l<s;l+=t)e[l]=e[l]===o?0:1;else{var c=i-o;for(l=a;l<s;l+=t)isNaN(e[l])||(e[l]=0===c?.5:(e[l]-o)/c)}}return e}},function(e,t,r){"use strict";e.exports=function(){var e,t;if("function"!==typeof WeakMap)return!1;try{e=new WeakMap([[t={},"one"],[{},"two"],[{},"three"]])}catch(r){return!1}return"[object WeakMap]"===String(e)&&("function"===typeof e.set&&(e.set({},1)===e&&("function"===typeof e.delete&&("function"===typeof e.has&&"one"===e.get(t)))))}},function(e,t,r){"use strict";var n,a=r(48),i=r(198),o=r(692),l=r(37),s=r(693),c=r(38),u=r(326),f=r(706),d=r(62).toStringTag,p=r(707),h=Array.isArray,g=Object.defineProperty,v=Object.prototype.hasOwnProperty,y=Object.getPrototypeOf;e.exports=n=function(){var e,t=arguments[0];if(!(this instanceof n))throw new TypeError("Constructor requires 'new'");return e=p&&i&&WeakMap!==n?i(new WeakMap,y(this)):this,a(t)&&(h(t)||(t=u(t))),g(e,"__weakMapData__",c("c","$weakMap$"+s())),t?(f(t,(function(t){l(t),e.set(t[0],t[1])})),e):e},p&&(i&&i(n,WeakMap),n.prototype=Object.create(WeakMap.prototype,{constructor:c(n)})),Object.defineProperties(n.prototype,{delete:c((function(e){return!!v.call(o(e),this.__weakMapData__)&&(delete e[this.__weakMapData__],!0)})),get:c((function(e){if(v.call(o(e),this.__weakMapData__))return e[this.__weakMapData__]})),has:c((function(e){return v.call(o(e),this.__weakMapData__)})),set:c((function(e,t){return g(o(e),this.__weakMapData__,c("c",t)),this})),toString:c((function(){return"[object WeakMap]"}))}),g(n.prototype,d,c("c","WeakMap"))},function(e,t,r){"use strict";var n,a=Object.create;r(324)()||(n=r(325)),e.exports=function(){var e,t,r;return n?1!==n.level?a:(e={},t={},r={configurable:!1,enumerable:!1,writable:!0,value:void 0},Object.getOwnPropertyNames(Object.prototype).forEach((function(e){t[e]="__proto__"!==e?r:{configurable:!0,enumerable:!1,writable:!0,value:void 0}})),Object.defineProperties(e,t),Object.defineProperty(n,"nullPolyfill",{configurable:!1,enumerable:!1,writable:!1,value:e}),function(t,r){return a(null===t?e:t,r)}):a}()},function(e,t,r){"use strict";var n=r(143);e.exports=function(e){if(!n(e))throw new TypeError(e+" is not an Object");return e}},function(e,t,r){"use strict";var n=Object.create(null),a=Math.random;e.exports=function(){var e;do{e=a().toString(36).slice(2)}while(n[e]);return e}},function(e,t,r){"use strict";var n,a=r(198),i=r(214),o=r(38),l=r(62),s=r(327),c=Object.defineProperty;n=e.exports=function(e,t){if(!(this instanceof n))throw new TypeError("Constructor requires 'new'");s.call(this,e),t=t?i.call(t,"key+value")?"key+value":i.call(t,"key")?"key":"value":"value",c(this,"__kind__",o("",t))},a&&a(n,s),delete n.prototype.constructor,n.prototype=Object.create(s.prototype,{_resolve:o((function(e){return"value"===this.__kind__?this.__list__[e]:"key+value"===this.__kind__?[e,this.__list__[e]]:e}))}),c(n.prototype,l.toStringTag,o("c","Array Iterator"))},function(e,t,r){"use strict";var n=r(37);e.exports=function(){return n(this).length=0,this}},function(e,t,r){"use strict";var n,a=r(70),i=r(697),o=r(701),l=r(702),s=r(142),c=r(146),u=Function.prototype.bind,f=Object.defineProperty,d=Object.prototype.hasOwnProperty;n=function(e,t,r){var n,a=i(t)&&o(t.value);return delete(n=l(t)).writable,delete n.value,n.get=function(){return!r.overwriteDefinition&&d.call(this,e)?a:(t.value=u.call(a,r.resolveContext?r.resolveContext(this):this),f(this,e,t),this[e])},n},e.exports=function(e){var t=s(arguments[1]);return a(t.resolveContext)&&o(t.resolveContext),c(e,(function(e,r){return n(r,e,t)}))}},function(e,t,r){"use strict";var n=r(328),a=r(70);e.exports=function(e){return a(e)?e:n(e,"Cannot use %v",arguments[1])}},function(e,t,r){"use strict";var n=r(70),a=r(144),i=Object.prototype.toString;e.exports=function(e){if(!n(e))return null;if(a(e)){var t=e.toString;if("function"!==typeof t)return null;if(t===i)return null}try{return""+e}catch(r){return null}}},function(e,t,r){"use strict";var n=r(700),a=/[\n\r\u2028\u2029]/g;e.exports=function(e){var t=n(e);return null===t?"<Non-coercible to string value>":(t.length>100&&(t=t.slice(0,99)+"\u2026"),t=t.replace(a,(function(e){switch(e){case"\n":return"\\n";case"\r":return"\\r";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw new Error("Unexpected character")}})))}},function(e,t,r){"use strict";e.exports=function(e){try{return e.toString()}catch(t){try{return String(e)}catch(r){return null}}}},function(e,t,r){"use strict";var n=r(328),a=r(213);e.exports=function(e){return a(e)?e:n(e,"%v is not a plain function",arguments[1])}},function(e,t,r){"use strict";var n=r(113),a=r(112),i=r(37);e.exports=function(e){var t=Object(i(e)),r=arguments[1],o=Object(arguments[2]);if(t!==e&&!r)return t;var l={};return r?n(r,(function(t){(o.ensure||t in e)&&(l[t]=e[t])})):a(l,e),l}},function(e,t,r){"use strict";var n,a=r(198),i=r(38),o=r(62),l=r(327),s=Object.defineProperty;n=e.exports=function(e){if(!(this instanceof n))throw new TypeError("Constructor requires 'new'");e=String(e),l.call(this,e),s(this,"__length__",i("",e.length))},a&&a(n,l),delete n.prototype.constructor,n.prototype=Object.create(l.prototype,{_next:i((function(){if(this.__list__)return this.__nextIndex__<this.__length__?this.__nextIndex__++:void this._unBind()})),_resolve:i((function(e){var t,r=this.__list__[e];return this.__nextIndex__===this.__length__?r:(t=r.charCodeAt(0))>=55296&&t<=56319?r+this.__list__[this.__nextIndex__++]:r}))}),s(n.prototype,o.toStringTag,i("c","String Iterator"))},function(e,t,r){"use strict";var n=r(705);e.exports=function(e){if(!n(e))throw new TypeError(e+" is not iterable");return e}},function(e,t,r){"use strict";var n=r(115),a=r(48),i=r(116),o=r(62).iterator,l=Array.isArray;e.exports=function(e){return!!a(e)&&(!!l(e)||(!!i(e)||(!!n(e)||"function"===typeof e[o])))}},function(e,t,r){"use strict";var n=r(115),a=r(42),i=r(116),o=r(326),l=Array.isArray,s=Function.prototype.call,c=Array.prototype.some;e.exports=function(e,t){var r,u,f,d,p,h,g,v,y=arguments[2];if(l(e)||n(e)?r="array":i(e)?r="string":e=o(e),a(t),f=function(){d=!0},"array"!==r)if("string"!==r)for(u=e.next();!u.done;){if(s.call(t,y,u.value,f),d)return;u=e.next()}else for(h=e.length,p=0;p<h&&(g=e[p],p+1<h&&(v=g.charCodeAt(0))>=55296&&v<=56319&&(g+=e[++p]),s.call(t,y,g,f),!d);++p);else c.call(e,(function(e){return s.call(t,y,e,f),d}))}},function(e,t,r){"use strict";e.exports="function"===typeof WeakMap&&"[object WeakMap]"===Object.prototype.toString.call(new WeakMap)},function(e,t,r){"use strict";e.exports=function(e,t,r){if("function"===typeof Array.prototype.findIndex)return e.findIndex(t,r);if("function"!==typeof t)throw new TypeError("predicate must be a function");var n=Object(e),a=n.length;if(0===a)return-1;for(var i=0;i<a;i++)if(t.call(r,n[i],i,n))return i;return-1}},function(e,t,r){"use strict";var n=r(105),a=r(83),i=r(322),o=r(57),l=r(53),s=r(106),c=r(197),u=c.float32,f=c.fract32;e.exports=function(e,t){"function"===typeof e?(t||(t={}),t.regl=e):t=e;t.length&&(t.positions=t);if(!(e=t.regl).hasExtension("ANGLE_instanced_arrays"))throw Error("regl-error2d: `ANGLE_instanced_arrays` extension should be enabled");var r,c,p,h,g,v,y=e._gl,m={color:"black",capSize:5,lineWidth:1,opacity:1,viewport:null,range:null,offset:0,count:0,bounds:null,positions:[],errors:[]},b=[];return h=e.buffer({usage:"dynamic",type:"uint8",data:new Uint8Array(0)}),c=e.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),p=e.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),g=e.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),v=e.buffer({usage:"static",type:"float",data:d}),k(t),r=e({vert:"\n\t\tprecision highp float;\n\n\t\tattribute vec2 position, positionFract;\n\t\tattribute vec4 error;\n\t\tattribute vec4 color;\n\n\t\tattribute vec2 direction, lineOffset, capOffset;\n\n\t\tuniform vec4 viewport;\n\t\tuniform float lineWidth, capSize;\n\t\tuniform vec2 scale, scaleFract, translate, translateFract;\n\n\t\tvarying vec4 fragColor;\n\n\t\tvoid main() {\n\t\t\tfragColor = color / 255.;\n\n\t\t\tvec2 pixelOffset = lineWidth * lineOffset + (capSize + lineWidth) * capOffset;\n\n\t\t\tvec2 dxy = -step(.5, direction.xy) * error.xz + step(direction.xy, vec2(-.5)) * error.yw;\n\n\t\t\tvec2 position = position + dxy;\n\n\t\t\tvec2 pos = (position + translate) * scale\n\t\t\t\t+ (positionFract + translateFract) * scale\n\t\t\t\t+ (position + translate) * scaleFract\n\t\t\t\t+ (positionFract + translateFract) * scaleFract;\n\n\t\t\tpos += pixelOffset / viewport.zw;\n\n\t\t\tgl_Position = vec4(pos * 2. - 1., 0, 1);\n\t\t}\n\t\t",frag:"\n\t\tprecision highp float;\n\n\t\tvarying vec4 fragColor;\n\n\t\tuniform float opacity;\n\n\t\tvoid main() {\n\t\t\tgl_FragColor = fragColor;\n\t\t\tgl_FragColor.a *= opacity;\n\t\t}\n\t\t",uniforms:{range:e.prop("range"),lineWidth:e.prop("lineWidth"),capSize:e.prop("capSize"),opacity:e.prop("opacity"),scale:e.prop("scale"),translate:e.prop("translate"),scaleFract:e.prop("scaleFract"),translateFract:e.prop("translateFract"),viewport:function(e,t){return[t.viewport.x,t.viewport.y,e.viewportWidth,e.viewportHeight]}},attributes:{color:{buffer:h,offset:function(e,t){return 4*t.offset},divisor:1},position:{buffer:c,offset:function(e,t){return 8*t.offset},divisor:1},positionFract:{buffer:p,offset:function(e,t){return 8*t.offset},divisor:1},error:{buffer:g,offset:function(e,t){return 16*t.offset},divisor:1},direction:{buffer:v,stride:24,offset:0},lineOffset:{buffer:v,stride:24,offset:8},capOffset:{buffer:v,stride:24,offset:16}},primitive:"triangles",blend:{enable:!0,color:[0,0,0,0],equation:{rgb:"add",alpha:"add"},func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},depth:{enable:!1},scissor:{enable:!0,box:e.prop("viewport")},viewport:e.prop("viewport"),stencil:!1,instances:e.prop("count"),count:d.length}),l(x,{update:k,draw:w,destroy:T,regl:e,gl:y,canvas:y.canvas,groups:b}),x;function x(e){e?k(e):null===e&&T(),w()}function w(t){if("number"===typeof t)return _(t);t&&!Array.isArray(t)&&(t=[t]),e._refresh(),b.forEach((function(e,r){e&&(t&&(t[r]?e.draw=!0:e.draw=!1),e.draw?_(r):e.draw=!0)}))}function _(e){"number"===typeof e&&(e=b[e]),null!=e&&e&&e.count&&e.color&&e.opacity&&e.positions&&e.positions.length>1&&(e.scaleRatio=[e.scale[0]*e.viewport.width,e.scale[1]*e.viewport.height],r(e),e.after&&e.after(e))}function k(e){if(e){null!=e.length?"number"===typeof e[0]&&(e=[{positions:e}]):Array.isArray(e)||(e=[e]);var t=0,r=0;if(x.groups=b=e.map((function(e,c){var u=b[c];return e?("function"===typeof e?e={after:e}:"number"===typeof e[0]&&(e={positions:e}),e=o(e,{color:"color colors fill",capSize:"capSize cap capsize cap-size",lineWidth:"lineWidth line-width width line thickness",opacity:"opacity alpha",range:"range dataBox",viewport:"viewport viewBox",errors:"errors error",positions:"positions position data points"}),u||(b[c]=u={id:c,scale:null,translate:null,scaleFract:null,translateFract:null,draw:!0},e=l({},m,e)),i(u,e,[{lineWidth:function(e){return.5*+e},capSize:function(e){return.5*+e},opacity:parseFloat,errors:function(e){return e=s(e),r+=e.length,e},positions:function(e,r){return e=s(e,"float64"),r.count=Math.floor(e.length/2),r.bounds=n(e,2),r.offset=t,t+=r.count,e}},{color:function(e,t){var r=t.count;if(e||(e="transparent"),!Array.isArray(e)||"number"===typeof e[0]){var n=e;e=Array(r);for(var i=0;i<r;i++)e[i]=n}if(e.length<r)throw Error("Not enough colors");for(var o=new Uint8Array(4*r),l=0;l<r;l++){var s=a(e[l],"uint8");o.set(s,4*l)}return o},range:function(e,t,r){var n=t.bounds;return e||(e=n),t.scale=[1/(e[2]-e[0]),1/(e[3]-e[1])],t.translate=[-e[0],-e[1]],t.scaleFract=f(t.scale),t.translateFract=f(t.translate),e},viewport:function(e){var t;return Array.isArray(e)?t={x:e[0],y:e[1],width:e[2]-e[0],height:e[3]-e[1]}:e?(t={x:e.x||e.left||0,y:e.y||e.top||0},e.right?t.width=e.right-t.x:t.width=e.w||e.width||0,e.bottom?t.height=e.bottom-t.y:t.height=e.h||e.height||0):t={x:0,y:0,width:y.drawingBufferWidth,height:y.drawingBufferHeight},t}}]),u):u})),t||r){var d=b.reduce((function(e,t,r){return e+(t?t.count:0)}),0),v=new Float64Array(2*d),w=new Uint8Array(4*d),_=new Float32Array(4*d);b.forEach((function(e,t){if(e){var r=e.positions,n=e.count,a=e.offset,i=e.color,o=e.errors;n&&(w.set(i,4*a),_.set(o,4*a),v.set(r,2*a))}}));var k=u(v);c(k);var T=f(v,k);p(T),h(w),g(_)}}}function T(){c.destroy(),p.destroy(),h.destroy(),g.destroy(),v.destroy()}};var d=[[1,0,0,1,0,0],[1,0,0,-1,0,0],[-1,0,0,-1,0,0],[-1,0,0,-1,0,0],[-1,0,0,1,0,0],[1,0,0,1,0,0],[1,0,-1,0,0,1],[1,0,-1,0,0,-1],[1,0,1,0,0,-1],[1,0,1,0,0,-1],[1,0,1,0,0,1],[1,0,-1,0,0,1],[-1,0,-1,0,0,1],[-1,0,-1,0,0,-1],[-1,0,1,0,0,-1],[-1,0,1,0,0,-1],[-1,0,1,0,0,1],[-1,0,-1,0,0,1],[0,1,1,0,0,0],[0,1,-1,0,0,0],[0,-1,-1,0,0,0],[0,-1,-1,0,0,0],[0,1,1,0,0,0],[0,-1,1,0,0,0],[0,1,0,-1,1,0],[0,1,0,-1,-1,0],[0,1,0,1,-1,0],[0,1,0,1,1,0],[0,1,0,-1,1,0],[0,1,0,1,-1,0],[0,-1,0,-1,1,0],[0,-1,0,-1,-1,0],[0,-1,0,1,-1,0],[0,-1,0,1,1,0],[0,-1,0,-1,1,0],[0,-1,0,1,-1,0]]},function(e,t,r){"use strict";var n=r(711),a=r(57),i=r(336),o=r(717),l=r(323),s=r(83),c=r(718),u=r(719),f=r(133),d=r(319),p=r(338),h=r(725),g=r(726),v=r(53),y=r(727),m=r(106),b=r(337).nextPow2,x=new l,w=!1;if(document.body){var _=document.body.appendChild(document.createElement("div"));_.style.font="italic small-caps bold condensed 16px/2 cursive",getComputedStyle(_).fontStretch&&(w=!0),document.body.removeChild(_)}var k=function(e){!function(e){return"function"===typeof e&&e._gl&&e.prop&&e.texture&&e.buffer}(e)?this.gl=o(e):(e={regl:e},this.gl=e.regl._gl),this.shader=x.get(this.gl),this.shader?this.regl=this.shader.regl:this.regl=e.regl||i({gl:this.gl}),this.charBuffer=this.regl.buffer({type:"uint8",usage:"stream"}),this.sizeBuffer=this.regl.buffer({type:"float",usage:"stream"}),this.shader||(this.shader=this.createShader(),x.set(this.gl,this.shader)),this.batch=[],this.fontSize=[],this.font=[],this.fontAtlas=[],this.draw=this.shader.draw.bind(this),this.render=function(){this.regl._refresh(),this.draw(this.batch)},this.canvas=this.gl.canvas,this.update(d(e)?e:{})};k.prototype.createShader=function(){var e=this.regl,t=e({blend:{enable:!0,color:[0,0,0,1],func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},stencil:{enable:!1},depth:{enable:!1},count:e.prop("count"),offset:e.prop("offset"),attributes:{charOffset:{offset:4,stride:8,buffer:e.this("sizeBuffer")},width:{offset:0,stride:8,buffer:e.this("sizeBuffer")},char:e.this("charBuffer"),position:e.this("position")},uniforms:{atlasSize:function(e,t){return[t.atlas.width,t.atlas.height]},atlasDim:function(e,t){return[t.atlas.cols,t.atlas.rows]},atlas:function(e,t){return t.atlas.texture},charStep:function(e,t){return t.atlas.step},em:function(e,t){return t.atlas.em},color:e.prop("color"),opacity:e.prop("opacity"),viewport:e.this("viewportArray"),scale:e.this("scale"),align:e.prop("align"),baseline:e.prop("baseline"),translate:e.this("translate"),positionOffset:e.prop("positionOffset")},primitive:"points",viewport:e.this("viewport"),vert:"\n\t\t\tprecision highp float;\n\t\t\tattribute float width, charOffset, char;\n\t\t\tattribute vec2 position;\n\t\t\tuniform float fontSize, charStep, em, align, baseline;\n\t\t\tuniform vec4 viewport;\n\t\t\tuniform vec4 color;\n\t\t\tuniform vec2 atlasSize, atlasDim, scale, translate, positionOffset;\n\t\t\tvarying vec2 charCoord, charId;\n\t\t\tvarying float charWidth;\n\t\t\tvarying vec4 fontColor;\n\t\t\tvoid main () {\n\t\t\t\tvec2 offset = floor(em * (vec2(align + charOffset, baseline)\n\t\t\t\t\t+ vec2(positionOffset.x, -positionOffset.y)))\n\t\t\t\t\t/ (viewport.zw * scale.xy);\n\n\t\t\t\tvec2 position = (position + translate) * scale;\n\t\t\t\tposition += offset * scale;\n\n\t\t\t\tcharCoord = position * viewport.zw + viewport.xy;\n\n\t\t\t\tgl_Position = vec4(position * 2. - 1., 0, 1);\n\n\t\t\t\tgl_PointSize = charStep;\n\n\t\t\t\tcharId.x = mod(char, atlasDim.x);\n\t\t\t\tcharId.y = floor(char / atlasDim.x);\n\n\t\t\t\tcharWidth = width * em;\n\n\t\t\t\tfontColor = color / 255.;\n\t\t\t}",frag:"\n\t\t\tprecision highp float;\n\t\t\tuniform float fontSize, charStep, opacity;\n\t\t\tuniform vec2 atlasSize;\n\t\t\tuniform vec4 viewport;\n\t\t\tuniform sampler2D atlas;\n\t\t\tvarying vec4 fontColor;\n\t\t\tvarying vec2 charCoord, charId;\n\t\t\tvarying float charWidth;\n\n\t\t\tfloat lightness(vec4 color) {\n\t\t\t\treturn color.r * 0.299 + color.g * 0.587 + color.b * 0.114;\n\t\t\t}\n\n\t\t\tvoid main () {\n\t\t\t\tvec2 uv = gl_FragCoord.xy - charCoord + charStep * .5;\n\t\t\t\tfloat halfCharStep = floor(charStep * .5 + .5);\n\n\t\t\t\t// invert y and shift by 1px (FF expecially needs that)\n\t\t\t\tuv.y = charStep - uv.y;\n\n\t\t\t\t// ignore points outside of character bounding box\n\t\t\t\tfloat halfCharWidth = ceil(charWidth * .5);\n\t\t\t\tif (floor(uv.x) > halfCharStep + halfCharWidth ||\n\t\t\t\t\tfloor(uv.x) < halfCharStep - halfCharWidth) return;\n\n\t\t\t\tuv += charId * charStep;\n\t\t\t\tuv = uv / atlasSize;\n\n\t\t\t\tvec4 color = fontColor;\n\t\t\t\tvec4 mask = texture2D(atlas, uv);\n\n\t\t\t\tfloat maskY = lightness(mask);\n\t\t\t\t// float colorY = lightness(color);\n\t\t\t\tcolor.a *= maskY;\n\t\t\t\tcolor.a *= opacity;\n\n\t\t\t\t// color.a += .1;\n\n\t\t\t\t// antialiasing, see yiq color space y-channel formula\n\t\t\t\t// color.rgb += (1. - color.rgb) * (1. - mask.rgb);\n\n\t\t\t\tgl_FragColor = color;\n\t\t\t}"});return{regl:e,draw:t,atlas:{}}},k.prototype.update=function(e){var t=this;if("string"===typeof e)e={text:e};else if(!e)return;null!=(e=a(e,{position:"position positions coord coords coordinates",font:"font fontFace fontface typeface cssFont css-font family fontFamily",fontSize:"fontSize fontsize size font-size",text:"text texts chars characters value values symbols",align:"align alignment textAlign textbaseline",baseline:"baseline textBaseline textbaseline",direction:"dir direction textDirection",color:"color colour fill fill-color fillColor textColor textcolor",kerning:"kerning kern",range:"range dataBox",viewport:"vp viewport viewBox viewbox viewPort",opacity:"opacity alpha transparency visible visibility opaque",offset:"offset positionOffset padding shift indent indentation"},!0)).opacity&&(Array.isArray(e.opacity)?this.opacity=e.opacity.map((function(e){return parseFloat(e)})):this.opacity=parseFloat(e.opacity)),null!=e.viewport&&(this.viewport=f(e.viewport),this.viewportArray=[this.viewport.x,this.viewport.y,this.viewport.width,this.viewport.height]),null==this.viewport&&(this.viewport={x:0,y:0,width:this.gl.drawingBufferWidth,height:this.gl.drawingBufferHeight},this.viewportArray=[this.viewport.x,this.viewport.y,this.viewport.width,this.viewport.height]),null!=e.kerning&&(this.kerning=e.kerning),null!=e.offset&&("number"===typeof e.offset&&(e.offset=[e.offset,0]),this.positionOffset=m(e.offset)),e.direction&&(this.direction=e.direction),e.range&&(this.range=e.range,this.scale=[1/(e.range[2]-e.range[0]),1/(e.range[3]-e.range[1])],this.translate=[-e.range[0],-e.range[1]]),e.scale&&(this.scale=e.scale),e.translate&&(this.translate=e.translate),this.scale||(this.scale=[1/this.viewport.width,1/this.viewport.height]),this.translate||(this.translate=[0,0]),this.font.length||e.font||(e.font=k.baseFontSize+"px sans-serif");var r,i=!1,o=!1;if(e.font&&(Array.isArray(e.font)?e.font:[e.font]).forEach((function(e,r){if("string"===typeof e)try{e=n.parse(e)}catch(f){e=n.parse(k.baseFontSize+"px "+e)}else e=n.parse(n.stringify(e));var a=n.stringify({size:k.baseFontSize,family:e.family,stretch:w?e.stretch:void 0,variant:e.variant,weight:e.weight,style:e.style}),l=p(e.size),s=Math.round(l[0]*h(l[1]));if(s!==t.fontSize[r]&&(o=!0,t.fontSize[r]=s),(!t.font[r]||a!=t.font[r].baseString)&&(i=!0,t.font[r]=k.fonts[a],!t.font[r])){var c=e.family.join(", "),u=[e.style];e.style!=e.variant&&u.push(e.variant),e.variant!=e.weight&&u.push(e.weight),w&&e.weight!=e.stretch&&u.push(e.stretch),t.font[r]={baseString:a,family:c,weight:e.weight,stretch:e.stretch,style:e.style,variant:e.variant,width:{},kerning:{},metrics:y(c,{origin:"top",fontSize:k.baseFontSize,fontStyle:u.join(" ")})},k.fonts[a]=t.font[r]}})),(i||o)&&this.font.forEach((function(r,a){var i=n.stringify({size:t.fontSize[a],family:r.family,stretch:w?r.stretch:void 0,variant:r.variant,weight:r.weight,style:r.style});if(t.fontAtlas[a]=t.shader.atlas[i],!t.fontAtlas[a]){var o=r.metrics;t.shader.atlas[i]=t.fontAtlas[a]={fontString:i,step:2*Math.ceil(t.fontSize[a]*o.bottom*.5),em:t.fontSize[a],cols:0,rows:0,height:0,width:0,chars:[],ids:{},texture:t.regl.texture()}}null==e.text&&(e.text=t.text)})),"string"===typeof e.text&&e.position&&e.position.length>2){for(var l=Array(.5*e.position.length),d=0;d<l.length;d++)l[d]=e.text;e.text=l}if(null!=e.text||i){if(this.textOffsets=[0],Array.isArray(e.text)){this.count=e.text[0].length,this.counts=[this.count];for(var x=1;x<e.text.length;x++)this.textOffsets[x]=this.textOffsets[x-1]+e.text[x-1].length,this.count+=e.text[x].length,this.counts.push(e.text[x].length);this.text=e.text.join("")}else this.text=e.text,this.count=this.text.length,this.counts=[this.count];r=[],this.font.forEach((function(e,n){k.atlasContext.font=e.baseString;for(var a=t.fontAtlas[n],i=0;i<t.text.length;i++){var o=t.text.charAt(i);if(null==a.ids[o]&&(a.ids[o]=a.chars.length,a.chars.push(o),r.push(o)),null==e.width[o]&&(e.width[o]=k.atlasContext.measureText(o).width/k.baseFontSize,t.kerning)){var l=[];for(var s in e.width)l.push(s+o,o+s);v(e.kerning,g(e.family,{pairs:l}))}}}))}if(e.position)if(e.position.length>2){for(var _=!e.position[0].length,T=u.mallocFloat(2*this.count),A=0,S=0;A<this.counts.length;A++){var M=this.counts[A];if(_)for(var O=0;O<M;O++)T[S++]=e.position[2*A],T[S++]=e.position[2*A+1];else for(var C=0;C<M;C++)T[S++]=e.position[A][0],T[S++]=e.position[A][1]}this.position.call?this.position({type:"float",data:T}):this.position=this.regl.buffer({type:"float",data:T}),u.freeFloat(T)}else this.position.destroy&&this.position.destroy(),this.position={constant:e.position};if(e.text||i){var E=u.mallocUint8(this.count),L=u.mallocFloat(2*this.count);this.textWidth=[];for(var P=0,j=0;P<this.counts.length;P++){for(var z=this.counts[P],D=this.font[P]||this.font[0],I=this.fontAtlas[P]||this.fontAtlas[0],N=0;N<z;N++){var R=this.text.charAt(j),F=this.text.charAt(j-1);if(E[j]=I.ids[R],L[2*j]=D.width[R],N){var B=L[2*j-2],U=L[2*j],H=L[2*j-1]+.5*B+.5*U;if(this.kerning){var V=D.kerning[F+R];V&&(H+=.001*V)}L[2*j+1]=H}else L[2*j+1]=.5*L[2*j];j++}this.textWidth.push(L.length?.5*L[2*j-2]+L[2*j-1]:0)}e.align||(e.align=this.align),this.charBuffer({data:E,type:"uint8",usage:"stream"}),this.sizeBuffer({data:L,type:"float",usage:"stream"}),u.freeUint8(E),u.freeFloat(L),r.length&&this.font.forEach((function(e,r){var n=t.fontAtlas[r],a=n.step,i=Math.floor(k.maxAtlasSize/a),o=Math.min(i,n.chars.length),l=Math.ceil(n.chars.length/o),s=b(o*a),u=b(l*a);n.width=s,n.height=u,n.rows=l,n.cols=o,n.em&&n.texture({data:c({canvas:k.atlasCanvas,font:n.fontString,chars:n.chars,shape:[s,u],step:[a,a]})})}))}if(e.align&&(this.align=e.align,this.alignOffset=this.textWidth.map((function(e,r){var n=Array.isArray(t.align)?t.align.length>1?t.align[r]:t.align[0]:t.align;if("number"===typeof n)return n;switch(n){case"right":case"end":return-e;case"center":case"centre":case"middle":return.5*-e}return 0}))),null==this.baseline&&null==e.baseline&&(e.baseline=0),null!=e.baseline&&(this.baseline=e.baseline,Array.isArray(this.baseline)||(this.baseline=[this.baseline]),this.baselineOffset=this.baseline.map((function(e,r){var n=(t.font[r]||t.font[0]).metrics,a=0;return a+=.5*n.bottom,a+="number"===typeof e?e-n.baseline:-n[e],a*=-1}))),null!=e.color)if(e.color||(e.color="transparent"),"string"!==typeof e.color&&isNaN(e.color)){var q;if("number"===typeof e.color[0]&&e.color.length>this.counts.length){var W=e.color.length;q=u.mallocUint8(W);for(var Y=(e.color.subarray||e.color.slice).bind(e.color),G=0;G<W;G+=4)q.set(s(Y(G,G+4),"uint8"),G)}else{var X=e.color.length;q=u.mallocUint8(4*X);for(var Z=0;Z<X;Z++)q.set(s(e.color[Z]||0,"uint8"),4*Z)}this.color=q}else this.color=s(e.color,"uint8");if(e.position||e.text||e.color||e.baseline||e.align||e.font||e.offset||e.opacity)if(this.color.length>4||this.baselineOffset.length>1||this.align&&this.align.length>1||this.fontAtlas.length>1||this.positionOffset.length>2){var $=Math.max(.5*this.position.length||0,.25*this.color.length||0,this.baselineOffset.length||0,this.alignOffset.length||0,this.font.length||0,this.opacity.length||0,.5*this.positionOffset.length||0);this.batch=Array($);for(var Q=0;Q<this.batch.length;Q++)this.batch[Q]={count:this.counts.length>1?this.counts[Q]:this.counts[0],offset:this.textOffsets.length>1?this.textOffsets[Q]:this.textOffsets[0],color:this.color?this.color.length<=4?this.color:this.color.subarray(4*Q,4*Q+4):[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[Q]:this.opacity,baseline:null!=this.baselineOffset[Q]?this.baselineOffset[Q]:this.baselineOffset[0],align:this.align?null!=this.alignOffset[Q]?this.alignOffset[Q]:this.alignOffset[0]:0,atlas:this.fontAtlas[Q]||this.fontAtlas[0],positionOffset:this.positionOffset.length>2?this.positionOffset.subarray(2*Q,2*Q+2):this.positionOffset}}else this.count?this.batch=[{count:this.count,offset:0,color:this.color||[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[0]:this.opacity,baseline:this.baselineOffset[0],align:this.alignOffset?this.alignOffset[0]:0,atlas:this.fontAtlas[0],positionOffset:this.positionOffset}]:this.batch=[]},k.prototype.destroy=function(){},k.prototype.kerning=!0,k.prototype.position={constant:new Float32Array(2)},k.prototype.translate=null,k.prototype.scale=null,k.prototype.font=null,k.prototype.text="",k.prototype.positionOffset=[0,0],k.prototype.opacity=1,k.prototype.color=new Uint8Array([0,0,0,255]),k.prototype.alignOffset=[0,0],k.maxAtlasSize=1024,k.atlasCanvas=document.createElement("canvas"),k.atlasContext=k.atlasCanvas.getContext("2d",{alpha:!1}),k.baseFontSize=64,k.fonts={},e.exports=k},function(e,t,r){"use strict";e.exports={parse:r(712),stringify:r(335)}},function(e,t,r){"use strict";var n=r(713),a=r(329),i=r(330),o=r(331),l=r(332),s=r(333),c=r(714),u=r(334).isSize;e.exports=d;var f=d.cache={};function d(e){if("string"!==typeof e)throw new Error("Font argument must be a string.");if(f[e])return f[e];if(""===e)throw new Error("Cannot parse an empty string.");if(-1!==i.indexOf(e))return f[e]={system:e};for(var t,r={style:"normal",variant:"normal",weight:"normal",stretch:"normal",lineHeight:"normal",size:"1rem",family:["serif"]},d=c(e,/\s+/);t=d.shift();){if(-1!==a.indexOf(t))return["style","variant","weight","stretch"].forEach((function(e){r[e]=t})),f[e]=r;if(-1===l.indexOf(t))if("normal"!==t&&"small-caps"!==t)if(-1===s.indexOf(t)){if(-1===o.indexOf(t)){if(u(t)){var h=c(t,"/");if(r.size=h[0],null!=h[1]?r.lineHeight=p(h[1]):"/"===d[0]&&(d.shift(),r.lineHeight=p(d.shift())),!d.length)throw new Error("Missing required font-family.");return r.family=c(d.join(" "),/\s*,\s*/).map(n),f[e]=r}throw new Error("Unknown or unsupported font token: "+t)}r.weight=t}else r.stretch=t;else r.variant=t;else r.style=t}throw new Error("Missing required font-size.")}function p(e){var t=parseFloat(e);return t.toString()===e?t:e}},function(e,t){var r=/[\'\"]/;e.exports=function(e){return e?(r.test(e.charAt(0))&&(e=e.substr(1)),r.test(e.charAt(e.length-1))&&(e=e.substr(0,e.length-1)),e):""}},function(e,t,r){"use strict";var n=r(715);e.exports=function(e,t,r){if(null==e)throw Error("First argument should be a string");if(null==t)throw Error("Separator should be a string or a RegExp");r?("string"===typeof r||Array.isArray(r))&&(r={ignore:r}):r={},null==r.escape&&(r.escape=!0),null==r.ignore?r.ignore=["[]","()","{}","<>",'""',"''","``","\u201c\u201d","\xab\xbb"]:("string"===typeof r.ignore&&(r.ignore=[r.ignore]),r.ignore=r.ignore.map((function(e){return 1===e.length&&(e+=e),e})));var a=n.parse(e,{flat:!0,brackets:r.ignore}),i=a[0].split(t);if(r.escape){for(var o=[],l=0;l<i.length;l++){var s=i[l],c=i[l+1];"\\"===s[s.length-1]&&"\\"!==s[s.length-2]?(o.push(s+t+c),l++):o.push(s)}i=o}for(l=0;l<i.length;l++)a[0]=i[l],i[l]=n.stringify(a,{flat:!0});return i}},function(e,t,r){"use strict";function n(e,t){if("string"!==typeof e)return[e];var r=[e];"string"===typeof t||Array.isArray(t)?t={brackets:t}:t||(t={});var n=t.brackets?Array.isArray(t.brackets)?t.brackets:[t.brackets]:["{}","[]","()"],a=t.escape||"___",i=!!t.flat;n.forEach((function(e){var t=new RegExp(["\\",e[0],"[^\\",e[0],"\\",e[1],"]*\\",e[1]].join("")),n=[];function i(t,i,o){var l=r.push(t.slice(e[0].length,-e[1].length))-1;return n.push(l),a+l+a}r.forEach((function(e,n){for(var a,o=0;e!=a;)if(a=e,e=e.replace(t,i),o++>1e4)throw Error("References have circular dependency. Please, check them.");r[n]=e})),n=n.reverse(),r=r.map((function(t){return n.forEach((function(r){t=t.replace(new RegExp("(\\"+a+r+"\\"+a+")","g"),e[0]+"$1"+e[1])})),t}))}));var o=new RegExp("\\"+a+"([0-9]+)\\"+a);return i?r:function e(t,r,n){for(var a,i=[],l=0;a=o.exec(t);){if(l++>1e4)throw Error("Circular references in parenthesis");i.push(t.slice(0,a.index)),i.push(e(r[a[1]],r)),t=t.slice(a.index+a[0].length)}return i.push(t),i}(r[0],r)}function a(e,t){if(t&&t.flat){var r,n=t&&t.escape||"___",a=e[0];if(!a)return"";for(var i=new RegExp("\\"+n+"([0-9]+)\\"+n),o=0;a!=r;){if(o++>1e4)throw Error("Circular references in "+e);r=a,a=a.replace(i,l)}return a}return e.reduce((function e(t,r){return Array.isArray(r)&&(r=r.reduce(e,"")),t+r}),"");function l(t,r){if(null==e[r])throw Error("Reference "+r+"is undefined");return e[r]}}function i(e,t){return Array.isArray(e)?a(e,t):n(e,t)}i.parse=n,i.stringify=a,e.exports=i},function(e){e.exports=JSON.parse('["xx-small","x-small","small","medium","large","x-large","xx-large","larger","smaller"]')},function(e,t,r){"use strict";(function(t){var n=r(57);function a(e){if(e.container)if(e.container==document.body)document.body.style.width||(e.canvas.width=e.width||e.pixelRatio*t.innerWidth),document.body.style.height||(e.canvas.height=e.height||e.pixelRatio*t.innerHeight);else{var r=e.container.getBoundingClientRect();e.canvas.width=e.width||r.right-r.left,e.canvas.height=e.height||r.bottom-r.top}}function i(e){return"function"===typeof e.getContext&&"width"in e&&"height"in e}function o(){var e=document.createElement("canvas");return e.style.position="absolute",e.style.top=0,e.style.left=0,e}e.exports=function(e){var r;if(e?"string"===typeof e&&(e={container:e}):e={},i(e)?e={container:e}:e="string"===typeof(r=e).nodeName&&"function"===typeof r.appendChild&&"function"===typeof r.getBoundingClientRect?{container:e}:function(e){return"function"===typeof e.drawArrays||"function"===typeof e.drawElements}(e)?{gl:e}:n(e,{container:"container target element el canvas holder parent parentNode wrapper use ref root node",gl:"gl context webgl glContext",attrs:"attributes attrs contextAttributes",pixelRatio:"pixelRatio pxRatio px ratio pxratio pixelratio",width:"w width",height:"h height"},!0),e.pixelRatio||(e.pixelRatio=t.pixelRatio||1),e.gl)return e.gl;if(e.canvas&&(e.container=e.canvas.parentNode),e.container){if("string"===typeof e.container){var l=document.querySelector(e.container);if(!l)throw Error("Element "+e.container+" is not found");e.container=l}i(e.container)?(e.canvas=e.container,e.container=e.canvas.parentNode):e.canvas||(e.canvas=o(),e.container.appendChild(e.canvas),a(e))}else if(!e.canvas){if("undefined"===typeof document)throw Error("Not DOM environment. Use headless-gl.");e.container=document.body||document.documentElement,e.canvas=o(),e.container.appendChild(e.canvas),a(e)}return e.gl||["webgl","experimental-webgl","webgl-experimental"].some((function(t){try{e.gl=e.canvas.getContext(t,e.attrs)}catch(r){}return e.gl})),e.gl}}).call(this,r(27))},function(e,t,r){"use strict";var n=r(335),a=[32,126];e.exports=function(e){var t=(e=e||{}).shape?e.shape:e.canvas?[e.canvas.width,e.canvas.height]:[512,512],r=e.canvas||document.createElement("canvas"),i=e.font,o="number"===typeof e.step?[e.step,e.step]:e.step||[32,32],l=e.chars||a;i&&"string"!==typeof i&&(i=n(i));if(Array.isArray(l)){if(2===l.length&&"number"===typeof l[0]&&"number"===typeof l[1]){for(var s=[],c=l[0],u=0;c<=l[1];c++)s[u++]=String.fromCharCode(c);l=s}}else l=String(l).split("");t=t.slice(),r.width=t[0],r.height=t[1];var f=r.getContext("2d");f.fillStyle="#000",f.fillRect(0,0,r.width,r.height),f.font=i,f.textAlign="center",f.textBaseline="middle",f.fillStyle="#fff";var d=o[0]/2,p=o[1]/2;for(c=0;c<l.length;c++)f.fillText(l[c],d,p),(d+=o[0])>t[0]-o[0]/2&&(d=o[0]/2,p+=o[1]);return r}},function(e,t,r){"use strict";(function(e){var n=r(337),a=r(720),i=r(721).Buffer;e.__TYPEDARRAY_POOL||(e.__TYPEDARRAY_POOL={UINT8:a([32,0]),UINT16:a([32,0]),UINT32:a([32,0]),BIGUINT64:a([32,0]),INT8:a([32,0]),INT16:a([32,0]),INT32:a([32,0]),BIGINT64:a([32,0]),FLOAT:a([32,0]),DOUBLE:a([32,0]),DATA:a([32,0]),UINT8C:a([32,0]),BUFFER:a([32,0])});var o="undefined"!==typeof Uint8ClampedArray,l="undefined"!==typeof BigUint64Array,s="undefined"!==typeof BigInt64Array,c=e.__TYPEDARRAY_POOL;c.UINT8C||(c.UINT8C=a([32,0])),c.BIGUINT64||(c.BIGUINT64=a([32,0])),c.BIGINT64||(c.BIGINT64=a([32,0])),c.BUFFER||(c.BUFFER=a([32,0]));var u=c.DATA,f=c.BUFFER;function d(e){if(e){var t=e.length||e.byteLength,r=n.log2(t);u[r].push(e)}}function p(e){e=n.nextPow2(e);var t=n.log2(e),r=u[t];return r.length>0?r.pop():new ArrayBuffer(e)}function h(e){return new Uint8Array(p(e),0,e)}function g(e){return new Uint16Array(p(2*e),0,e)}function v(e){return new Uint32Array(p(4*e),0,e)}function y(e){return new Int8Array(p(e),0,e)}function m(e){return new Int16Array(p(2*e),0,e)}function b(e){return new Int32Array(p(4*e),0,e)}function x(e){return new Float32Array(p(4*e),0,e)}function w(e){return new Float64Array(p(8*e),0,e)}function _(e){return o?new Uint8ClampedArray(p(e),0,e):h(e)}function k(e){return l?new BigUint64Array(p(8*e),0,e):null}function T(e){return s?new BigInt64Array(p(8*e),0,e):null}function A(e){return new DataView(p(e),0,e)}function S(e){e=n.nextPow2(e);var t=n.log2(e),r=f[t];return r.length>0?r.pop():new i(e)}t.free=function(e){if(i.isBuffer(e))f[n.log2(e.length)].push(e);else{if("[object ArrayBuffer]"!==Object.prototype.toString.call(e)&&(e=e.buffer),!e)return;var t=e.length||e.byteLength,r=0|n.log2(t);u[r].push(e)}},t.freeUint8=t.freeUint16=t.freeUint32=t.freeBigUint64=t.freeInt8=t.freeInt16=t.freeInt32=t.freeBigInt64=t.freeFloat32=t.freeFloat=t.freeFloat64=t.freeDouble=t.freeUint8Clamped=t.freeDataView=function(e){d(e.buffer)},t.freeArrayBuffer=d,t.freeBuffer=function(e){f[n.log2(e.length)].push(e)},t.malloc=function(e,t){if(void 0===t||"arraybuffer"===t)return p(e);switch(t){case"uint8":return h(e);case"uint16":return g(e);case"uint32":return v(e);case"int8":return y(e);case"int16":return m(e);case"int32":return b(e);case"float":case"float32":return x(e);case"double":case"float64":return w(e);case"uint8_clamped":return _(e);case"bigint64":return T(e);case"biguint64":return k(e);case"buffer":return S(e);case"data":case"dataview":return A(e);default:return null}return null},t.mallocArrayBuffer=p,t.mallocUint8=h,t.mallocUint16=g,t.mallocUint32=v,t.mallocInt8=y,t.mallocInt16=m,t.mallocInt32=b,t.mallocFloat32=t.mallocFloat=x,t.mallocFloat64=t.mallocDouble=w,t.mallocUint8Clamped=_,t.mallocBigUint64=k,t.mallocBigInt64=T,t.mallocDataView=A,t.mallocBuffer=S,t.clearCache=function(){for(var e=0;e<32;++e)c.UINT8[e].length=0,c.UINT16[e].length=0,c.UINT32[e].length=0,c.INT8[e].length=0,c.INT16[e].length=0,c.INT32[e].length=0,c.FLOAT[e].length=0,c.DOUBLE[e].length=0,c.BIGUINT64[e].length=0,c.BIGINT64[e].length=0,c.UINT8C[e].length=0,u[e].length=0,f[e].length=0}}).call(this,r(27))},function(e,t,r){"use strict";function n(e,t,r){var a=0|e[r];if(a<=0)return[];var i,o=new Array(a);if(r===e.length-1)for(i=0;i<a;++i)o[i]=t;else for(i=0;i<a;++i)o[i]=n(e,t,r+1);return o}e.exports=function(e,t){switch("undefined"===typeof t&&(t=0),typeof e){case"number":if(e>0)return function(e,t){var r,n;for(r=new Array(e),n=0;n<e;++n)r[n]=t;return r}(0|e,t);break;case"object":if("number"===typeof e.length)return n(e,t,0)}return[]}},function(e,t,r){"use strict";(function(e){var n=r(722),a=r(723),i=r(724);function o(){return s.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function l(e,t){if(o()<t)throw new RangeError("Invalid typed array length");return s.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=s.prototype:(null===e&&(e=new s(t)),e.length=t),e}function s(e,t,r){if(!s.TYPED_ARRAY_SUPPORT&&!(this instanceof s))return new s(e,t,r);if("number"===typeof e){if("string"===typeof t)throw new Error("If encoding is specified then the first argument must be a string");return f(this,e)}return c(this,e,t,r)}function c(e,t,r,n){if("number"===typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!==typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,r,n){if(t.byteLength,r<0||t.byteLength<r)throw new RangeError("'offset' is out of bounds");if(t.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");t=void 0===r&&void 0===n?new Uint8Array(t):void 0===n?new Uint8Array(t,r):new Uint8Array(t,r,n);s.TYPED_ARRAY_SUPPORT?(e=t).__proto__=s.prototype:e=d(e,t);return e}(e,t,r,n):"string"===typeof t?function(e,t,r){"string"===typeof r&&""!==r||(r="utf8");if(!s.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|h(t,r),a=(e=l(e,n)).write(t,r);a!==n&&(e=e.slice(0,a));return e}(e,t,r):function(e,t){if(s.isBuffer(t)){var r=0|p(t.length);return 0===(e=l(e,r)).length||t.copy(e,0,0,r),e}if(t){if("undefined"!==typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!==typeof t.length||(n=t.length)!==n?l(e,0):d(e,t);if("Buffer"===t.type&&i(t.data))return d(e,t.data)}var n;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function u(e){if("number"!==typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function f(e,t){if(u(t),e=l(e,t<0?0:0|p(t)),!s.TYPED_ARRAY_SUPPORT)for(var r=0;r<t;++r)e[r]=0;return e}function d(e,t){var r=t.length<0?0:0|p(t.length);e=l(e,r);for(var n=0;n<r;n+=1)e[n]=255&t[n];return e}function p(e){if(e>=o())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return 0|e}function h(e,t){if(s.isBuffer(e))return e.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!==typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return U(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return H(e).length;default:if(n)return U(e).length;t=(""+t).toLowerCase(),n=!0}}function g(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return E(this,t,r);case"utf8":case"utf-8":return S(this,t,r);case"ascii":return O(this,t,r);case"latin1":case"binary":return C(this,t,r);case"base64":return A(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return L(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function v(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function y(e,t,r,n,a){if(0===e.length)return-1;if("string"===typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=a?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(a)return-1;r=e.length-1}else if(r<0){if(!a)return-1;r=0}if("string"===typeof t&&(t=s.from(t,n)),s.isBuffer(t))return 0===t.length?-1:m(e,t,r,n,a);if("number"===typeof t)return t&=255,s.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?a?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):m(e,[t],r,n,a);throw new TypeError("val must be string, number or Buffer")}function m(e,t,r,n,a){var i,o=1,l=e.length,s=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;o=2,l/=2,s/=2,r/=2}function c(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(a){var u=-1;for(i=r;i<l;i++)if(c(e,i)===c(t,-1===u?0:i-u)){if(-1===u&&(u=i),i-u+1===s)return u*o}else-1!==u&&(i-=i-u),u=-1}else for(r+s>l&&(r=l-s),i=r;i>=0;i--){for(var f=!0,d=0;d<s;d++)if(c(e,i+d)!==c(t,d)){f=!1;break}if(f)return i}return-1}function b(e,t,r,n){r=Number(r)||0;var a=e.length-r;n?(n=Number(n))>a&&(n=a):n=a;var i=t.length;if(i%2!==0)throw new TypeError("Invalid hex string");n>i/2&&(n=i/2);for(var o=0;o<n;++o){var l=parseInt(t.substr(2*o,2),16);if(isNaN(l))return o;e[r+o]=l}return o}function x(e,t,r,n){return V(U(t,e.length-r),e,r,n)}function w(e,t,r,n){return V(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function _(e,t,r,n){return w(e,t,r,n)}function k(e,t,r,n){return V(H(t),e,r,n)}function T(e,t,r,n){return V(function(e,t){for(var r,n,a,i=[],o=0;o<e.length&&!((t-=2)<0);++o)n=(r=e.charCodeAt(o))>>8,a=r%256,i.push(a),i.push(n);return i}(t,e.length-r),e,r,n)}function A(e,t,r){return 0===t&&r===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,r))}function S(e,t,r){r=Math.min(e.length,r);for(var n=[],a=t;a<r;){var i,o,l,s,c=e[a],u=null,f=c>239?4:c>223?3:c>191?2:1;if(a+f<=r)switch(f){case 1:c<128&&(u=c);break;case 2:128===(192&(i=e[a+1]))&&(s=(31&c)<<6|63&i)>127&&(u=s);break;case 3:i=e[a+1],o=e[a+2],128===(192&i)&&128===(192&o)&&(s=(15&c)<<12|(63&i)<<6|63&o)>2047&&(s<55296||s>57343)&&(u=s);break;case 4:i=e[a+1],o=e[a+2],l=e[a+3],128===(192&i)&&128===(192&o)&&128===(192&l)&&(s=(15&c)<<18|(63&i)<<12|(63&o)<<6|63&l)>65535&&s<1114112&&(u=s)}null===u?(u=65533,f=1):u>65535&&(u-=65536,n.push(u>>>10&1023|55296),u=56320|1023&u),n.push(u),a+=f}return function(e){var t=e.length;if(t<=M)return String.fromCharCode.apply(String,e);var r="",n=0;for(;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=M));return r}(n)}t.Buffer=s,t.SlowBuffer=function(e){+e!=e&&(e=0);return s.alloc(+e)},t.INSPECT_MAX_BYTES=50,s.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"===typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(t){return!1}}(),t.kMaxLength=o(),s.poolSize=8192,s._augment=function(e){return e.__proto__=s.prototype,e},s.from=function(e,t,r){return c(null,e,t,r)},s.TYPED_ARRAY_SUPPORT&&(s.prototype.__proto__=Uint8Array.prototype,s.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&s[Symbol.species]===s&&Object.defineProperty(s,Symbol.species,{value:null,configurable:!0})),s.alloc=function(e,t,r){return function(e,t,r,n){return u(t),t<=0?l(e,t):void 0!==r?"string"===typeof n?l(e,t).fill(r,n):l(e,t).fill(r):l(e,t)}(null,e,t,r)},s.allocUnsafe=function(e){return f(null,e)},s.allocUnsafeSlow=function(e){return f(null,e)},s.isBuffer=function(e){return!(null==e||!e._isBuffer)},s.compare=function(e,t){if(!s.isBuffer(e)||!s.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var r=e.length,n=t.length,a=0,i=Math.min(r,n);a<i;++a)if(e[a]!==t[a]){r=e[a],n=t[a];break}return r<n?-1:n<r?1:0},s.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(e,t){if(!i(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return s.alloc(0);var r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;var n=s.allocUnsafe(t),a=0;for(r=0;r<e.length;++r){var o=e[r];if(!s.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(n,a),a+=o.length}return n},s.byteLength=h,s.prototype._isBuffer=!0,s.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)v(this,t,t+1);return this},s.prototype.swap32=function(){var e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)v(this,t,t+3),v(this,t+1,t+2);return this},s.prototype.swap64=function(){var e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)v(this,t,t+7),v(this,t+1,t+6),v(this,t+2,t+5),v(this,t+3,t+4);return this},s.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?S(this,0,e):g.apply(this,arguments)},s.prototype.equals=function(e){if(!s.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===s.compare(this,e)},s.prototype.inspect=function(){var e="",r=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(e+=" ... ")),"<Buffer "+e+">"},s.prototype.compare=function(e,t,r,n,a){if(!s.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===a&&(a=this.length),t<0||r>e.length||n<0||a>this.length)throw new RangeError("out of range index");if(n>=a&&t>=r)return 0;if(n>=a)return-1;if(t>=r)return 1;if(this===e)return 0;for(var i=(a>>>=0)-(n>>>=0),o=(r>>>=0)-(t>>>=0),l=Math.min(i,o),c=this.slice(n,a),u=e.slice(t,r),f=0;f<l;++f)if(c[f]!==u[f]){i=c[f],o=u[f];break}return i<o?-1:o<i?1:0},s.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},s.prototype.indexOf=function(e,t,r){return y(this,e,t,r,!0)},s.prototype.lastIndexOf=function(e,t,r){return y(this,e,t,r,!1)},s.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"===typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(r)?(r|=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var a=this.length-t;if((void 0===r||r>a)&&(r=a),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var i=!1;;)switch(n){case"hex":return b(this,e,t,r);case"utf8":case"utf-8":return x(this,e,t,r);case"ascii":return w(this,e,t,r);case"latin1":case"binary":return _(this,e,t,r);case"base64":return k(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,e,t,r);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),i=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var M=4096;function O(e,t,r){var n="";r=Math.min(e.length,r);for(var a=t;a<r;++a)n+=String.fromCharCode(127&e[a]);return n}function C(e,t,r){var n="";r=Math.min(e.length,r);for(var a=t;a<r;++a)n+=String.fromCharCode(e[a]);return n}function E(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var a="",i=t;i<r;++i)a+=B(e[i]);return a}function L(e,t,r){for(var n=e.slice(t,r),a="",i=0;i<n.length;i+=2)a+=String.fromCharCode(n[i]+256*n[i+1]);return a}function P(e,t,r){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function j(e,t,r,n,a,i){if(!s.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>a||t<i)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function z(e,t,r,n){t<0&&(t=65535+t+1);for(var a=0,i=Math.min(e.length-r,2);a<i;++a)e[r+a]=(t&255<<8*(n?a:1-a))>>>8*(n?a:1-a)}function D(e,t,r,n){t<0&&(t=4294967295+t+1);for(var a=0,i=Math.min(e.length-r,4);a<i;++a)e[r+a]=t>>>8*(n?a:3-a)&255}function I(e,t,r,n,a,i){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function N(e,t,r,n,i){return i||I(e,0,r,4),a.write(e,t,r,n,23,4),r+4}function R(e,t,r,n,i){return i||I(e,0,r,8),a.write(e,t,r,n,52,8),r+8}s.prototype.slice=function(e,t){var r,n=this.length;if((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<e&&(t=e),s.TYPED_ARRAY_SUPPORT)(r=this.subarray(e,t)).__proto__=s.prototype;else{var a=t-e;r=new s(a,void 0);for(var i=0;i<a;++i)r[i]=this[i+e]}return r},s.prototype.readUIntLE=function(e,t,r){e|=0,t|=0,r||P(e,t,this.length);for(var n=this[e],a=1,i=0;++i<t&&(a*=256);)n+=this[e+i]*a;return n},s.prototype.readUIntBE=function(e,t,r){e|=0,t|=0,r||P(e,t,this.length);for(var n=this[e+--t],a=1;t>0&&(a*=256);)n+=this[e+--t]*a;return n},s.prototype.readUInt8=function(e,t){return t||P(e,1,this.length),this[e]},s.prototype.readUInt16LE=function(e,t){return t||P(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUInt16BE=function(e,t){return t||P(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUInt32LE=function(e,t){return t||P(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},s.prototype.readUInt32BE=function(e,t){return t||P(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||P(e,t,this.length);for(var n=this[e],a=1,i=0;++i<t&&(a*=256);)n+=this[e+i]*a;return n>=(a*=128)&&(n-=Math.pow(2,8*t)),n},s.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||P(e,t,this.length);for(var n=t,a=1,i=this[e+--n];n>0&&(a*=256);)i+=this[e+--n]*a;return i>=(a*=128)&&(i-=Math.pow(2,8*t)),i},s.prototype.readInt8=function(e,t){return t||P(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},s.prototype.readInt16LE=function(e,t){t||P(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt16BE=function(e,t){t||P(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt32LE=function(e,t){return t||P(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return t||P(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readFloatLE=function(e,t){return t||P(e,4,this.length),a.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return t||P(e,4,this.length),a.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return t||P(e,8,this.length),a.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return t||P(e,8,this.length),a.read(this,e,!1,52,8)},s.prototype.writeUIntLE=function(e,t,r,n){(e=+e,t|=0,r|=0,n)||j(this,e,t,r,Math.pow(2,8*r)-1,0);var a=1,i=0;for(this[t]=255&e;++i<r&&(a*=256);)this[t+i]=e/a&255;return t+r},s.prototype.writeUIntBE=function(e,t,r,n){(e=+e,t|=0,r|=0,n)||j(this,e,t,r,Math.pow(2,8*r)-1,0);var a=r-1,i=1;for(this[t+a]=255&e;--a>=0&&(i*=256);)this[t+a]=e/i&255;return t+r},s.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||j(this,e,t,1,255,0),s.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},s.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||j(this,e,t,2,65535,0),s.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):z(this,e,t,!0),t+2},s.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||j(this,e,t,2,65535,0),s.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):z(this,e,t,!1),t+2},s.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||j(this,e,t,4,4294967295,0),s.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):D(this,e,t,!0),t+4},s.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||j(this,e,t,4,4294967295,0),s.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):D(this,e,t,!1),t+4},s.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var a=Math.pow(2,8*r-1);j(this,e,t,r,a-1,-a)}var i=0,o=1,l=0;for(this[t]=255&e;++i<r&&(o*=256);)e<0&&0===l&&0!==this[t+i-1]&&(l=1),this[t+i]=(e/o>>0)-l&255;return t+r},s.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var a=Math.pow(2,8*r-1);j(this,e,t,r,a-1,-a)}var i=r-1,o=1,l=0;for(this[t+i]=255&e;--i>=0&&(o*=256);)e<0&&0===l&&0!==this[t+i+1]&&(l=1),this[t+i]=(e/o>>0)-l&255;return t+r},s.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||j(this,e,t,1,127,-128),s.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||j(this,e,t,2,32767,-32768),s.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):z(this,e,t,!0),t+2},s.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||j(this,e,t,2,32767,-32768),s.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):z(this,e,t,!1),t+2},s.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||j(this,e,t,4,2147483647,-2147483648),s.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):D(this,e,t,!0),t+4},s.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||j(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),s.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):D(this,e,t,!1),t+4},s.prototype.writeFloatLE=function(e,t,r){return N(this,e,t,!0,r)},s.prototype.writeFloatBE=function(e,t,r){return N(this,e,t,!1,r)},s.prototype.writeDoubleLE=function(e,t,r){return R(this,e,t,!0,r)},s.prototype.writeDoubleBE=function(e,t,r){return R(this,e,t,!1,r)},s.prototype.copy=function(e,t,r,n){if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var a,i=n-r;if(this===e&&r<t&&t<n)for(a=i-1;a>=0;--a)e[a+t]=this[a+r];else if(i<1e3||!s.TYPED_ARRAY_SUPPORT)for(a=0;a<i;++a)e[a+t]=this[a+r];else Uint8Array.prototype.set.call(e,this.subarray(r,r+i),t);return i},s.prototype.fill=function(e,t,r,n){if("string"===typeof e){if("string"===typeof t?(n=t,t=0,r=this.length):"string"===typeof r&&(n=r,r=this.length),1===e.length){var a=e.charCodeAt(0);a<256&&(e=a)}if(void 0!==n&&"string"!==typeof n)throw new TypeError("encoding must be a string");if("string"===typeof n&&!s.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"===typeof e&&(e&=255);if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;var i;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"===typeof e)for(i=t;i<r;++i)this[i]=e;else{var o=s.isBuffer(e)?e:U(new s(e,n).toString()),l=o.length;for(i=0;i<r-t;++i)this[i+t]=o[i%l]}return this};var F=/[^+\/0-9A-Za-z-_]/g;function B(e){return e<16?"0"+e.toString(16):e.toString(16)}function U(e,t){var r;t=t||1/0;for(var n=e.length,a=null,i=[],o=0;o<n;++o){if((r=e.charCodeAt(o))>55295&&r<57344){if(!a){if(r>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(o+1===n){(t-=3)>-1&&i.push(239,191,189);continue}a=r;continue}if(r<56320){(t-=3)>-1&&i.push(239,191,189),a=r;continue}r=65536+(a-55296<<10|r-56320)}else a&&(t-=3)>-1&&i.push(239,191,189);if(a=null,r<128){if((t-=1)<0)break;i.push(r)}else if(r<2048){if((t-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function H(e){return n.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(F,"")).length<2)return"";for(;e.length%4!==0;)e+="=";return e}(e))}function V(e,t,r,n){for(var a=0;a<n&&!(a+r>=t.length||a>=e.length);++a)t[a+r]=e[a];return a}}).call(this,r(27))},function(e,t,r){"use strict";t.byteLength=function(e){var t=c(e),r=t[0],n=t[1];return 3*(r+n)/4-n},t.toByteArray=function(e){var t,r,n=c(e),o=n[0],l=n[1],s=new i(function(e,t,r){return 3*(t+r)/4-r}(0,o,l)),u=0,f=l>0?o-4:o;for(r=0;r<f;r+=4)t=a[e.charCodeAt(r)]<<18|a[e.charCodeAt(r+1)]<<12|a[e.charCodeAt(r+2)]<<6|a[e.charCodeAt(r+3)],s[u++]=t>>16&255,s[u++]=t>>8&255,s[u++]=255&t;2===l&&(t=a[e.charCodeAt(r)]<<2|a[e.charCodeAt(r+1)]>>4,s[u++]=255&t);1===l&&(t=a[e.charCodeAt(r)]<<10|a[e.charCodeAt(r+1)]<<4|a[e.charCodeAt(r+2)]>>2,s[u++]=t>>8&255,s[u++]=255&t);return s},t.fromByteArray=function(e){for(var t,r=e.length,a=r%3,i=[],o=16383,l=0,s=r-a;l<s;l+=o)i.push(u(e,l,l+o>s?s:l+o));1===a?(t=e[r-1],i.push(n[t>>2]+n[t<<4&63]+"==")):2===a&&(t=(e[r-2]<<8)+e[r-1],i.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"="));return i.join("")};for(var n=[],a=[],i="undefined"!==typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=0,s=o.length;l<s;++l)n[l]=o[l],a[o.charCodeAt(l)]=l;function c(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function u(e,t,r){for(var a,i,o=[],l=t;l<r;l+=3)a=(e[l]<<16&16711680)+(e[l+1]<<8&65280)+(255&e[l+2]),o.push(n[(i=a)>>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return o.join("")}a["-".charCodeAt(0)]=62,a["_".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,r,n,a){var i,o,l=8*a-n-1,s=(1<<l)-1,c=s>>1,u=-7,f=r?a-1:0,d=r?-1:1,p=e[t+f];for(f+=d,i=p&(1<<-u)-1,p>>=-u,u+=l;u>0;i=256*i+e[t+f],f+=d,u-=8);for(o=i&(1<<-u)-1,i>>=-u,u+=n;u>0;o=256*o+e[t+f],f+=d,u-=8);if(0===i)i=1-c;else{if(i===s)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,n),i-=c}return(p?-1:1)*o*Math.pow(2,i-n)},t.write=function(e,t,r,n,a,i){var o,l,s,c=8*i-a-1,u=(1<<c)-1,f=u>>1,d=23===a?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:i-1,h=n?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(l=isNaN(t)?1:0,o=u):(o=Math.floor(Math.log(t)/Math.LN2),t*(s=Math.pow(2,-o))<1&&(o--,s*=2),(t+=o+f>=1?d/s:d*Math.pow(2,1-f))*s>=2&&(o++,s/=2),o+f>=u?(l=0,o=u):o+f>=1?(l=(t*s-1)*Math.pow(2,a),o+=f):(l=t*Math.pow(2,f-1)*Math.pow(2,a),o=0));a>=8;e[r+p]=255&l,p+=h,l/=256,a-=8);for(o=o<<a|l,c+=a;c>0;e[r+p]=255&o,p+=h,o/=256,c-=8);e[r+p-h]|=128*g}},function(e,t){var r={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==r.call(e)}},function(e,t,r){"use strict";var n=r(338);e.exports=i;function a(e,t){var r=n(getComputedStyle(e).getPropertyValue(t));return r[0]*i(r[1],e)}function i(e,t){switch(t=t||document.body,e=(e||"px").trim().toLowerCase(),t!==window&&t!==document||(t=document.body),e){case"%":return t.clientHeight/100;case"ch":case"ex":return function(e,t){var r=document.createElement("div");r.style["font-size"]="128"+e,t.appendChild(r);var n=a(r,"font-size")/128;return t.removeChild(r),n}(e,t);case"em":return a(t,"font-size");case"rem":return a(document.body,"font-size");case"vw":return window.innerWidth/100;case"vh":return window.innerHeight/100;case"vmin":return Math.min(window.innerWidth,window.innerHeight)/100;case"vmax":return Math.max(window.innerWidth,window.innerHeight)/100;case"in":return 96;case"cm":return 96/2.54;case"mm":return 96/25.4;case"pt":return 96/72;case"pc":return 16}return 1}},function(e,t,r){"use strict";e.exports=i;var n=(i.canvas=document.createElement("canvas")).getContext("2d"),a=o([32,126]);function i(e,t){Array.isArray(e)&&(e=e.join(", "));var r,i={},l=16,s=.05;t&&(2===t.length&&"number"===typeof t[0]?r=o(t):Array.isArray(t)?r=t:(t.o?r=o(t.o):t.pairs&&(r=t.pairs),t.fontSize&&(l=t.fontSize),null!=t.threshold&&(s=t.threshold))),r||(r=a),n.font=l+"px "+e;for(var c=0;c<r.length;c++){var u=r[c],f=n.measureText(u[0]).width+n.measureText(u[1]).width,d=n.measureText(u).width;if(Math.abs(f-d)>l*s){var p=(d-f)/l;i[u]=1e3*p}}return i}function o(e){for(var t=[],r=e[0];r<=e[1];r++)for(var n=String.fromCharCode(r),a=e[0];a<e[1];a++){var i=n+String.fromCharCode(a);t.push(i)}return t}i.createPairs=o,i.ascii=a},function(e,t,r){"use strict";function n(e,t){t||(t={}),("string"===typeof e||Array.isArray(e))&&(t.family=e);var r=Array.isArray(t.family)?t.family.join(", "):t.family;if(!r)throw Error("`family` must be defined");var l=t.size||t.fontSize||t.em||48,s=t.weight||t.fontWeight||"",c=(e=[t.style||t.fontStyle||"",s,l].join(" ")+"px "+r,t.origin||"top");if(n.cache[r]&&l<=n.cache[r].em)return a(n.cache[r],c);var u=t.canvas||n.canvas,f=u.getContext("2d"),d={upper:void 0!==t.upper?t.upper:"H",lower:void 0!==t.lower?t.lower:"x",descent:void 0!==t.descent?t.descent:"p",ascent:void 0!==t.ascent?t.ascent:"h",tittle:void 0!==t.tittle?t.tittle:"i",overshoot:void 0!==t.overshoot?t.overshoot:"O"},p=Math.ceil(1.5*l);u.height=p,u.width=.5*p,f.font=e;var h="H",g={top:0};f.clearRect(0,0,p,p),f.textBaseline="top",f.fillStyle="black",f.fillText(h,0,0);var v=i(f.getImageData(0,0,p,p));f.clearRect(0,0,p,p),f.textBaseline="bottom",f.fillText(h,0,p);var y=i(f.getImageData(0,0,p,p));g.lineHeight=g.bottom=p-y+v,f.clearRect(0,0,p,p),f.textBaseline="alphabetic",f.fillText(h,0,p);var m=p-i(f.getImageData(0,0,p,p))-1+v;g.baseline=g.alphabetic=m,f.clearRect(0,0,p,p),f.textBaseline="middle",f.fillText(h,0,.5*p);var b=i(f.getImageData(0,0,p,p));g.median=g.middle=p-b-1+v-.5*p,f.clearRect(0,0,p,p),f.textBaseline="hanging",f.fillText(h,0,.5*p);var x=i(f.getImageData(0,0,p,p));g.hanging=p-x-1+v-.5*p,f.clearRect(0,0,p,p),f.textBaseline="ideographic",f.fillText(h,0,p);var w=i(f.getImageData(0,0,p,p));if(g.ideographic=p-w-1+v,d.upper&&(f.clearRect(0,0,p,p),f.textBaseline="top",f.fillText(d.upper,0,0),g.upper=i(f.getImageData(0,0,p,p)),g.capHeight=g.baseline-g.upper),d.lower&&(f.clearRect(0,0,p,p),f.textBaseline="top",f.fillText(d.lower,0,0),g.lower=i(f.getImageData(0,0,p,p)),g.xHeight=g.baseline-g.lower),d.tittle&&(f.clearRect(0,0,p,p),f.textBaseline="top",f.fillText(d.tittle,0,0),g.tittle=i(f.getImageData(0,0,p,p))),d.ascent&&(f.clearRect(0,0,p,p),f.textBaseline="top",f.fillText(d.ascent,0,0),g.ascent=i(f.getImageData(0,0,p,p))),d.descent&&(f.clearRect(0,0,p,p),f.textBaseline="top",f.fillText(d.descent,0,0),g.descent=o(f.getImageData(0,0,p,p))),d.overshoot){f.clearRect(0,0,p,p),f.textBaseline="top",f.fillText(d.overshoot,0,0);var _=o(f.getImageData(0,0,p,p));g.overshoot=_-m}for(var k in g)g[k]/=l;return g.em=l,n.cache[r]=g,a(g,c)}function a(e,t){var r={};for(var n in"string"===typeof t&&(t=e[t]),e)"em"!==n&&(r[n]=e[n]-t);return r}function i(e){for(var t=e.height,r=e.data,n=3;n<r.length;n+=4)if(0!==r[n])return Math.floor(.25*(n-3)/t)}function o(e){for(var t=e.height,r=e.data,n=r.length-1;n>0;n-=4)if(0!==r[n])return Math.floor(.25*(n-3)/t)}e.exports=n,n.canvas=document.createElement("canvas"),n.cache={}},function(e,t,r){"use strict";(function(t){var n=r(729),a=r(336);e.exports=function(e,r,i){var o=e._fullLayout,l=!0;return o._glcanvas.each((function(n){if(n.regl)n.regl.preloadCachedCode(i);else if(!n.pick||o._has("parcoords")){try{n.regl=a({canvas:this,attributes:{antialias:!n.pick,preserveDrawingBuffer:!0},pixelRatio:e._context.plotGlPixelRatio||t.devicePixelRatio,extensions:r||[],cachedCode:i||{}})}catch(s){l=!1}n.regl||(l=!1),l&&this.addEventListener("webglcontextlost",(function(t){e&&e.emit&&e.emit("plotly_webglcontextlost",{event:t,layer:n.key})}),!1)}})),l||n({container:o._glcontainer.node()}),l}}).call(this,r(27))},function(e,t,r){"use strict";var n=r(8),a=function(){};e.exports=function(e){for(var t in e)"function"===typeof e[t]&&(e[t]=a);e.destroy=function(){e.container.parentNode.removeChild(e.container)};var r=document.createElement("div");r.className="no-webgl",r.style.cursor="pointer",r.style.fontSize="24px",r.style.color=n.defaults[0],r.style.position="absolute",r.style.left=r.style.top="0px",r.style.width=r.style.height="100%",r.style["background-color"]=n.lightLine,r.style["z-index"]=30;var i=document.createElement("p");return i.textContent="WebGL is not supported by your browser - visit https://get.webgl.org for more info",i.style.position="relative",i.style.top="50%",i.style.left="50%",i.style.height="30%",i.style.width="50%",i.style.margin="-15% 0 0 -25%",r.appendChild(i),e.container.appendChild(r),e.container.style.background="#FFFFFF",e.container.onclick=function(){window.open("https://get.webgl.org")},!1}},function(e,t,r){"use strict";e.exports={moduleType:"trace",name:"treemap",basePlotModule:r(731),categories:[],animatable:!0,attributes:r(339),layoutAttributes:r(341),supplyDefaults:r(733),supplyLayoutDefaults:r(734),calc:r(342).calc,crossTraceCalc:r(342).crossTraceCalc,plot:r(736),style:r(199).style,colorbar:r(101),meta:{description:["Visualize hierarchal data from leaves (and/or outer branches) towards root","with rectangles. The treemap sectors are determined by the entries in","*labels* or *ids* and in *parents*."].join(" ")}}},function(e,t,r){"use strict";var n=r(20);t.name="treemap",t.plot=function(e,r,a,i){n.plotBasePlot(t.name,e,r,a,i)},t.clean=function(e,r,a,i){n.cleanBasePlot(t.name,e,r,a,i)}},function(e,t,r){"use strict";var n=r(44),a=r(35).hovertemplateAttrs,i=r(35).texttemplateAttrs,o=r(67),l=r(81).attributes,s=r(130),c=r(340),u=r(22).extendFlat;e.exports={labels:{valType:"data_array",editType:"calc",description:["Sets the labels of each of the sectors."].join(" ")},parents:{valType:"data_array",editType:"calc",description:["Sets the parent sectors for each of the sectors.","Empty string items '' are understood to reference","the root node in the hierarchy.",'If `ids` is filled, `parents` items are understood to be "ids" themselves.',"When `ids` is not set, plotly attempts to find matching items in `labels`,","but beware they must be unique."].join(" ")},values:{valType:"data_array",editType:"calc",description:["Sets the values associated with each of the sectors.","Use with `branchvalues` to determine how the values are summed."].join(" ")},branchvalues:{valType:"enumerated",values:["remainder","total"],dflt:"remainder",editType:"calc",description:["Determines how the items in `values` are summed.","When set to *total*, items in `values` are taken to be value of all its descendants.","When set to *remainder*, items in `values` corresponding to the root and the branches sectors","are taken to be the extra part not part of the sum of the values at their leaves."].join(" ")},count:{valType:"flaglist",flags:["branches","leaves"],dflt:"leaves",editType:"calc",description:["Determines default for `values` when it is not provided,","by inferring a 1 for each of the *leaves* and/or *branches*, otherwise 0."].join(" ")},level:{valType:"any",editType:"plot",anim:!0,description:["Sets the level from which this trace hierarchy is rendered.","Set `level` to `''` to start from the root node in the hierarchy.",'Must be an "id" if `ids` is filled in, otherwise plotly attempts to find a matching',"item in `labels`."].join(" ")},maxdepth:{valType:"integer",editType:"plot",dflt:-1,description:["Sets the number of rendered sectors from any given `level`.","Set `maxdepth` to *-1* to render all the levels in the hierarchy."].join(" ")},marker:u({colors:{valType:"data_array",editType:"calc",description:["Sets the color of each sector of this trace.","If not specified, the default trace color set is used","to pick the sector colors."].join(" ")},line:{color:u({},s.marker.line.color,{dflt:null,description:["Sets the color of the line enclosing each sector.","Defaults to the `paper_bgcolor` value."].join(" ")}),width:u({},s.marker.line.width,{dflt:1}),editType:"calc"},editType:"calc"},o("marker",{colorAttr:"colors",anim:!1})),leaf:{opacity:{valType:"number",editType:"style",min:0,max:1,description:["Sets the opacity of the leaves. With colorscale","it is defaulted to 1; otherwise it is defaulted to 0.7"].join(" ")},editType:"plot"},text:s.text,textinfo:{valType:"flaglist",flags:["label","text","value","current path","percent root","percent entry","percent parent"],extras:["none"],editType:"plot",description:["Determines which trace information appear on the graph."].join(" ")},texttemplate:i({editType:"plot"},{keys:c.eventDataKeys.concat(["label","value"])}),hovertext:s.hovertext,hoverinfo:u({},n.hoverinfo,{flags:["label","text","value","name","current path","percent root","percent entry","percent parent"],dflt:"label+text+value+name"}),hovertemplate:a({},{keys:c.eventDataKeys}),textfont:s.textfont,insidetextorientation:s.insidetextorientation,insidetextfont:s.insidetextfont,outsidetextfont:u({},s.outsidetextfont,{description:["Sets the font used for `textinfo` lying outside the sector.","This option refers to the root of the hierarchy","presented at the center of a sunburst graph.","Please note that if a hierarchy has multiple root nodes,","this option won't have any effect and `insidetextfont` would be used."].join(" ")}),rotation:{valType:"angle",dflt:0,editType:"plot",description:["Rotates the whole diagram counterclockwise by some angle.","By default the first slice starts at 3 o'clock."].join(" ")},sort:s.sort,root:{color:{valType:"color",editType:"calc",dflt:"rgba(0,0,0,0)",description:["sets the color of the root node for a sunburst/treemap/icicle trace.","this has no effect when a colorscale is used to set the markers."].join(" ")},editType:"calc"},domain:l({name:"sunburst",trace:!0,editType:"calc"})}},function(e,t,r){"use strict";var n=r(0),a=r(339),i=r(8),o=r(81).defaults,l=r(82).handleText,s=r(103).TEXTPAD,c=r(75),u=c.hasColorscale,f=c.handleDefaults;e.exports=function(e,t,r,c){function d(r,i){return n.coerce(e,t,a,r,i)}var p=d("labels"),h=d("parents");if(p&&p.length&&h&&h.length){var g=d("values");g&&g.length?d("branchvalues"):d("count"),d("level"),d("maxdepth"),"squarify"===d("tiling.packing")&&d("tiling.squarifyratio"),d("tiling.flip"),d("tiling.pad");var v=d("text");d("texttemplate"),t.texttemplate||d("textinfo",Array.isArray(v)?"text+label":"label"),d("hovertext"),d("hovertemplate");var y=d("pathbar.visible");l(e,t,c,d,"auto",{hasPathbar:y,moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),d("textposition");var m=-1!==t.textposition.indexOf("bottom");d("marker.line.width")&&d("marker.line.color",c.paper_bgcolor);var b=d("marker.colors");(t._hasColorscale=u(e,"marker","colors")||(e.marker||{}).coloraxis)?f(e,t,c,d,{prefix:"marker.",cLetter:"c"}):d("marker.depthfade",!(b||[]).length);var x=2*t.textfont.size;d("marker.pad.t",m?x/4:x),d("marker.pad.l",x/4),d("marker.pad.r",x/4),d("marker.pad.b",m?x:x/4),t._hovered={marker:{line:{width:2,color:i.contrast(c.paper_bgcolor)}}},y&&(d("pathbar.thickness",t.pathbar.textfont.size+2*s),d("pathbar.side"),d("pathbar.edgeshape")),d("sort"),d("root.color"),o(t,c,d),t._length=null}else t.visible=!1}},function(e,t,r){"use strict";var n=r(0),a=r(341);e.exports=function(e,t){function r(r,i){return n.coerce(e,t,a,r,i)}r("treemapcolorway",t.colorway),r("extendtreemapcolors")}},function(e,t,r){"use strict";var n=r(201),a=r(9),i=r(0),o=r(75).makeColorScaleFuncFromTrace,l=r(131).makePullColorFn,s=r(131).generateExtendedColors,c=r(75).calc,u=r(19).ALMOST_EQUAL,f={},d={},p={};function h(e,t,r){var n=0,a=e.children;if(a){for(var i=a.length,o=0;o<i;o++)n+=h(a[o],t,r);r.branches&&n++}else r.leaves&&n++;return e.value=e.data.data.value=n,t._values||(t._values=[]),t._values[e.data.data.i]=n,n}t.calc=function(e,t){var r,s,f,d,p,g,v=e._fullLayout,y=t.ids,m=i.isArrayOrTypedArray(y),b=t.labels,x=t.parents,w=t.values,_=i.isArrayOrTypedArray(w),k=[],T={},A={},S=function(e){return e||"number"===typeof e},M=function(e){return!_||a(w[e])&&w[e]>=0};m?(r=Math.min(y.length,x.length),s=function(e){return S(y[e])&&M(e)},f=function(e){return String(y[e])}):(r=Math.min(b.length,x.length),s=function(e){return S(b[e])&&M(e)},f=function(e){return String(b[e])}),_&&(r=Math.min(r,w.length));for(var O=0;O<r;O++)if(s(O)){var C=f(O),E=S(x[O])?String(x[O]):"",L={i:O,id:C,pid:E,label:S(b[O])?String(b[O]):""};_&&(L.v=+w[O]),k.push(L),p=C,T[d=E]?T[d].push(p):T[d]=[p],A[p]=1}if(T[""]){if(T[""].length>1){for(var P=i.randstr(),j=0;j<k.length;j++)""===k[j].pid&&(k[j].pid=P);k.unshift({hasMultipleRoots:!0,id:P,pid:"",label:""})}}else{var z,D=[];for(z in T)A[z]||D.push(z);if(1!==D.length)return i.warn(["Multiple implied roots, cannot build",t.type,"hierarchy of",t.name+".","These roots include:",D.join(", ")].join(" "));z=D[0],k.unshift({hasImpliedRoot:!0,id:z,pid:"",label:z})}try{g=n.stratify().id((function(e){return e.id})).parentId((function(e){return e.pid}))(k)}catch(H){return i.warn(["Failed to build",t.type,"hierarchy of",t.name+".","Error:",H.message].join(" "))}var I=n.hierarchy(g),N=!1;if(_)switch(t.branchvalues){case"remainder":I.sum((function(e){return e.data.v}));break;case"total":I.each((function(e){var r=e.data.data,n=r.v;if(e.children){var a=e.children.reduce((function(e,t){return e+t.data.data.v}),0);if((r.hasImpliedRoot||r.hasMultipleRoots)&&(n=a),n<a*u)return N=!0,i.warn(["Total value for node",e.data.data.id,"of",t.name,"is smaller than the sum of its children.","\nparent value =",n,"\nchildren sum =",a].join(" "))}e.value=n}))}else h(I,t,{branches:-1!==t.count.indexOf("branches"),leaves:-1!==t.count.indexOf("leaves")});if(!N){var R,F;t.sort&&I.sort((function(e,t){return t.value-e.value}));var B=t.marker.colors||[],U=!!B.length;return t._hasColorscale?(U||(B=_?t.values:t._values),c(e,t,{vals:B,containerStr:"marker",cLetter:"c"}),F=o(t.marker)):R=l(v["_"+t.type+"colormap"]),I.each((function(e){var r=e.data.data;r.color=t._hasColorscale?F(B[r.i]):R(B[r.i],r.id)})),k[0].hierarchy=I,k}},t._runCrossTraceCalc=function(e,t){var r=t._fullLayout,n=t.calcdata,a=r[e+"colorway"],i=r["_"+e+"colormap"];r["extend"+e+"colors"]&&(a=s(a,"icicle"===e?p:"treemap"===e?d:f));var o,l=0;function c(e){var t=e.data.data,r=t.id;!1===t.color&&(i[r]?t.color=i[r]:e.parent?e.parent.parent?t.color=e.parent.data.data.color:(i[r]=t.color=a[l%a.length],l++):t.color=o)}for(var u=0;u<n.length;u++){var h=n[u][0];h.trace.type===e&&h.hierarchy&&(o=h.trace.root.color,h.hierarchy.each(c))}},t.crossTraceCalc=function(e){return t._runCrossTraceCalc("sunburst",e)}},function(e,t,r){"use strict";var n=r(737),a=r(741);e.exports=function(e,t,r,i){return n(e,t,r,i,{type:"treemap",drawDescendants:a})}},function(e,t,r){"use strict";var n=r(7),a=r(69),i=r(51).clearMinTextSize,o=r(68).resizeText,l=r(738);e.exports=function(e,t,r,s,c){var u,f,d=c.type,p=c.drawDescendants,h=e._fullLayout,g=h["_"+d+"layer"],v=!r;(i(d,h),(u=g.selectAll("g.trace."+d).data(t,(function(e){return e[0].trace.uid}))).enter().append("g").classed("trace",!0).classed(d,!0),u.order(),!h.uniformtext.mode&&a.hasTransition(r))?(s&&(f=s()),n.transition().duration(r.duration).ease(r.easing).each("end",(function(){f&&f()})).each("interrupt",(function(){f&&f()})).each((function(){g.selectAll("g.trace").each((function(t){l(e,t,this,r,p)}))}))):(u.each((function(t){l(e,t,this,r,p)})),h.uniformtext.mode&&o(e,g.selectAll(".trace"),d));v&&u.exit().remove()}},function(e,t,r){"use strict";var n=r(7),a=r(348).interpolate,i=r(69),o=r(0),l=r(103).TEXTPAD,s=r(194).toMoveInsideBar,c=r(51).recordMinTextSize,u=r(134),f=r(739);function d(e){return i.isHierarchyRoot(e)?"":i.getPtId(e)}e.exports=function(e,t,r,p,h){var g=e._fullLayout,v=t[0],y=v.trace,m="icicle"===y.type,b=v.hierarchy,x=i.findEntryWithLevel(b,y.level),w=n.select(r),_=w.selectAll("g.pathbar"),k=w.selectAll("g.slice");if(!x)return _.remove(),void k.remove();var T=i.isHierarchyRoot(x),A=!g.uniformtext.mode&&i.hasTransition(p),S=i.getMaxDepth(y),M=g._size,O=y.domain,C=M.w*(O.x[1]-O.x[0]),E=M.h*(O.y[1]-O.y[0]),L=C,P=y.pathbar.thickness,j=y.marker.line.width+u.gapWithPathbar,z=y.pathbar.visible?y.pathbar.side.indexOf("bottom")>-1?E+j:-(P+j):0,D={x0:L,x1:L,y0:z,y1:z+P},I=function(e,t,r){var n=y.tiling.pad,a=function(e){return e-n<=t.x0},i=function(e){return e+n>=t.x1},o=function(e){return e-n<=t.y0},l=function(e){return e+n>=t.y1};return e.x0===t.x0&&e.x1===t.x1&&e.y0===t.y0&&e.y1===t.y1?{x0:e.x0,x1:e.x1,y0:e.y0,y1:e.y1}:{x0:a(e.x0-n)?0:i(e.x0-n)?r[0]:e.x0,x1:a(e.x1+n)?0:i(e.x1+n)?r[0]:e.x1,y0:o(e.y0-n)?0:l(e.y0-n)?r[1]:e.y0,y1:o(e.y1+n)?0:l(e.y1+n)?r[1]:e.y1}},N=null,R={},F={},B=null,U=function(e,t){return t?R[d(e)]:F[d(e)]},H=function(e,t,r,n){if(t)return R[d(b)]||D;var a=F[y.level]||r;return function(e){return e.data.depth-x.data.depth<S}(e)?I(e,a,n):{}};v.hasMultipleRoots&&T&&S++,y._maxDepth=S,y._backgroundColor=g.paper_bgcolor,y._entryDepth=x.data.depth,y._atRootLevel=T;var V=-C/2+M.l+M.w*(O.x[1]+O.x[0])/2,q=-E/2+M.t+M.h*(1-(O.y[1]+O.y[0])/2),W=function(e){return V+e},Y=function(e){return q+e},G=Y(0),X=W(0),Z=function(e){return X+e},$=function(e){return G+e};function Q(e,t){return e+","+t}var K=Z(0),J=function(e){e.x=Math.max(K,e.x)},ee=y.pathbar.edgeshape,te=function(e,t){var r=e.x0,n=e.x1,a=e.y0,i=e.y1,o=e.textBB,u=function(e){return-1!==y.textposition.indexOf(e)},f=u("bottom"),d=u("top")||t.isHeader&&!f?"start":f?"end":"middle",p=u("right"),h=u("left")||t.onPathbar?-1:p?1:0,v=y[m?"tiling":"marker"].pad;if(t.isHeader){if((r+=(m?v:v.l)-l)>=(n-=(m?v:v.r)-l)){var b=(r+n)/2;r=b,n=b}var x;f?a<(x=i-(m?v:v.b))&&x<i&&(a=x):a<(x=a+(m?v:v.t))&&x<i&&(i=x)}var w=s(r,n,a,i,o,{isHorizontal:!1,constrained:!0,angle:0,anchor:d,leftToRight:h});return w.fontSize=t.fontSize,w.targetX=W(w.targetX),w.targetY=Y(w.targetY),isNaN(w.targetX)||isNaN(w.targetY)?{}:(r!==n&&a!==i&&c(y.type,w,g),{scale:w.scale,rotate:w.rotate,textX:w.textX,textY:w.textY,anchorX:w.anchorX,anchorY:w.anchorY,targetX:w.targetX,targetY:w.targetY})},re=function(e,t){for(var r,n=0,a=e;!r&&n<S;)n++,(a=a.parent)?r=U(a,t):n=S;return r||{}},ne=function(e,t,r,n,i){var l,s=U(e,t);if(s)l=s;else if(t)l=D;else if(N)if(e.parent){var c=B||r;c&&!t?l=I(e,c,n):(l={},o.extendFlat(l,re(e,t)))}else l=o.extendFlat({},e),m&&("h"===i.orientation?i.flipX?l.x0=e.x1:l.x1=0:i.flipY?l.y0=e.y1:l.y1=0);else l={};return a(l,{x0:e.x0,x1:e.x1,y0:e.y0,y1:e.y1})},ae=function(e,t,r,n){var l=U(e,t),s={},u=H(e,t,r,n);o.extendFlat(s,{transform:te({x0:u.x0,x1:u.x1,y0:u.y0,y1:u.y1,textBB:e.textBB,_text:e._text},{isHeader:i.isHeader(e,y)})}),l?s=l:e.parent&&o.extendFlat(s,re(e,t));var f=e.transform;return e.x0!==e.x1&&e.y0!==e.y1&&c(y.type,f,g),a(s,{transform:{scale:f.scale,rotate:f.rotate,textX:f.textX,textY:f.textY,anchorX:f.anchorX,anchorY:f.anchorY,targetX:f.targetX,targetY:f.targetY}})},ie=function(e,t,r,i,o){var l=i[0],s=i[1];A?e.exit().transition().each((function(){var e=n.select(this);e.select("path.surface").transition().attrTween("d",(function(e){var r=function(e,t,r,n){var i,o=U(e,t);if(t)i=D;else{var l=U(x,t);i=l?I(e,l,n):{}}return a(o,i)}(e,t,0,[l,s]);return function(e){return o(r(e))}})),e.select("g.slicetext").attr("opacity",0)})).remove():e.exit().remove()},oe=function(e){var t=e.transform;return e.x0!==e.x1&&e.y0!==e.y1&&c(y.type,t,g),o.getTextTransform({textX:t.textX,textY:t.textY,anchorX:t.anchorX,anchorY:t.anchorY,targetX:t.targetX,targetY:t.targetY,scale:t.scale,rotate:t.rotate})};A&&(_.each((function(e){R[d(e)]={x0:e.x0,x1:e.x1,y0:e.y0,y1:e.y1},e.transform&&(R[d(e)].transform={textX:e.transform.textX,textY:e.transform.textY,anchorX:e.transform.anchorX,anchorY:e.transform.anchorY,targetX:e.transform.targetX,targetY:e.transform.targetY,scale:e.transform.scale,rotate:e.transform.rotate})})),k.each((function(e){F[d(e)]={x0:e.x0,x1:e.x1,y0:e.y0,y1:e.y1},e.transform&&(F[d(e)].transform={textX:e.transform.textX,textY:e.transform.textY,anchorX:e.transform.anchorX,anchorY:e.transform.anchorY,targetX:e.transform.targetX,targetY:e.transform.targetY,scale:e.transform.scale,rotate:e.transform.rotate}),!N&&i.isEntry(e)&&(N=e)}))),B=h(e,t,x,k,{width:C,height:E,viewX:W,viewY:Y,pathSlice:function(e){var t=W(e.x0),r=W(e.x1),n=Y(e.y0),a=Y(e.y1),i=r-t,o=a-n;if(!i||!o)return"";return"M"+Q(t,n+0)+"L"+Q(r-0,n)+"L"+Q(r,a-0)+"L"+Q(t+0,a)+"Z"},toMoveInsideSlice:te,prevEntry:N,makeUpdateSliceInterpolator:ne,makeUpdateTextInterpolator:ae,handleSlicesExit:ie,hasTransition:A,strTransform:oe}),y.pathbar.visible?f(e,t,x,_,{barDifY:z,width:L,height:P,viewX:Z,viewY:$,pathSlice:function(e){var t=Z(Math.max(Math.min(e.x0,e.x0),0)),r=Z(Math.min(Math.max(e.x1,e.x1),L)),n=$(e.y0),a=$(e.y1),i=P/2,o={},l={};o.x=t,l.x=r,o.y=l.y=(n+a)/2;var s={x:t,y:n},c={x:r,y:n},u={x:r,y:a},f={x:t,y:a};return">"===ee?(s.x-=i,c.x-=i,u.x-=i,f.x-=i):"/"===ee?(u.x-=i,f.x-=i,o.x-=i/2,l.x-=i/2):"\\"===ee?(s.x-=i,c.x-=i,o.x-=i/2,l.x-=i/2):"<"===ee&&(o.x-=i,l.x-=i),J(s),J(f),J(o),J(c),J(u),J(l),"M"+Q(s.x,s.y)+"L"+Q(c.x,c.y)+"L"+Q(l.x,l.y)+"L"+Q(u.x,u.y)+"L"+Q(f.x,f.y)+"L"+Q(o.x,o.y)+"Z"},toMoveInsideSlice:te,makeUpdateSliceInterpolator:ne,makeUpdateTextInterpolator:ae,handleSlicesExit:ie,hasTransition:A,strTransform:oe}):_.remove()}},function(e,t,r){"use strict";var n=r(7),a=r(0),i=r(10),o=r(25),l=r(343),s=r(199).styleOne,c=r(134),u=r(69),f=r(200),d=!0;e.exports=function(e,t,r,p,h){var g=h.barDifY,v=h.width,y=h.height,m=h.viewX,b=h.viewY,x=h.pathSlice,w=h.toMoveInsideSlice,_=h.strTransform,k=h.hasTransition,T=h.handleSlicesExit,A=h.makeUpdateSliceInterpolator,S=h.makeUpdateTextInterpolator,M={},O=e._fullLayout,C=t[0],E=C.trace,L=C.hierarchy,P=v/E._entryDepth,j=u.listPath(r.data,"id"),z=l(L.copy(),[v,y],{packing:"dice",pad:{inner:0,top:0,left:0,right:0,bottom:0}}).descendants();(z=z.filter((function(e){var t=j.indexOf(e.data.id);return-1!==t&&(e.x0=P*t,e.x1=P*(t+1),e.y0=g,e.y1=g+y,e.onPathbar=!0,!0)}))).reverse(),(p=p.data(z,u.getPtId)).enter().append("g").classed("pathbar",!0),T(p,d,M,[v,y],x),p.order();var D=p;k&&(D=D.transition().each("end",(function(){var t=n.select(this);u.setSliceCursor(t,e,{hideOnRoot:!1,hideOnLeaves:!1,isTransitioning:!1})}))),D.each((function(l){l._x0=m(l.x0),l._x1=m(l.x1),l._y0=b(l.y0),l._y1=b(l.y1),l._hoverX=m(l.x1-Math.min(v,y)/2),l._hoverY=b(l.y1-y/2);var p=n.select(this),h=a.ensureSingle(p,"path","surface",(function(e){e.style("pointer-events","all")}));k?h.transition().attrTween("d",(function(e){var t=A(e,d,M,[v,y]);return function(e){return x(t(e))}})):h.attr("d",x),p.call(f,r,e,t,{styleOne:s,eventDataKeys:c.eventDataKeys,transitionTime:c.CLICK_TRANSITION_TIME,transitionEasing:c.CLICK_TRANSITION_EASING}).call(u.setSliceCursor,e,{hideOnRoot:!1,hideOnLeaves:!1,isTransitioning:e._transitioning}),h.call(s,l,E,{hovered:!1}),l._text=(u.getPtLabel(l)||"").split("<br>").join(" ")||"";var g=a.ensureSingle(p,"g","slicetext"),T=a.ensureSingle(g,"text","",(function(e){e.attr("data-notex",1)})),C=a.ensureUniformFontSize(e,u.determineTextFont(E,l,O.font,{onPathbar:!0}));T.text(l._text||" ").classed("slicetext",!0).attr("text-anchor","start").call(i.font,C).call(o.convertToTspans,e),l.textBB=i.bBox(T.node()),l.transform=w(l,{fontSize:C.size,onPathbar:!0}),l.transform.fontSize=C.size,k?T.transition().attrTween("transform",(function(e){var t=S(e,d,M,[v,y]);return function(e){return _(t(e))}})):T.attr("transform",_(l))}))}},function(e,t,r){"use strict";e.exports=function e(t,r,n){var a;n.swapXY&&(a=t.x0,t.x0=t.y0,t.y0=a,a=t.x1,t.x1=t.y1,t.y1=a),n.flipX&&(a=t.x0,t.x0=r[0]-t.x1,t.x1=r[0]-a),n.flipY&&(a=t.y0,t.y0=r[1]-t.y1,t.y1=r[1]-a);var i=t.children;if(i)for(var o=0;o<i.length;o++)e(i[o],r,n)}},function(e,t,r){"use strict";var n=r(7),a=r(0),i=r(10),o=r(25),l=r(343),s=r(199).styleOne,c=r(134),u=r(69),f=r(200),d=r(742).formatSliceLabel,p=!1;e.exports=function(e,t,r,h,g){var v=g.width,y=g.height,m=g.viewX,b=g.viewY,x=g.pathSlice,w=g.toMoveInsideSlice,_=g.strTransform,k=g.hasTransition,T=g.handleSlicesExit,A=g.makeUpdateSliceInterpolator,S=g.makeUpdateTextInterpolator,M=g.prevEntry,O=e._fullLayout,C=t[0].trace,E=-1!==C.textposition.indexOf("left"),L=-1!==C.textposition.indexOf("right"),P=-1!==C.textposition.indexOf("bottom"),j=!P&&!C.marker.pad.t||P&&!C.marker.pad.b,z=l(r,[v,y],{packing:C.tiling.packing,squarifyratio:C.tiling.squarifyratio,flipX:C.tiling.flip.indexOf("x")>-1,flipY:C.tiling.flip.indexOf("y")>-1,pad:{inner:C.tiling.pad,top:C.marker.pad.t,left:C.marker.pad.l,right:C.marker.pad.r,bottom:C.marker.pad.b}}).descendants(),D=1/0,I=-1/0;z.forEach((function(e){var t=e.depth;t>=C._maxDepth?(e.x0=e.x1=(e.x0+e.x1)/2,e.y0=e.y1=(e.y0+e.y1)/2):(D=Math.min(D,t),I=Math.max(I,t))})),h=h.data(z,u.getPtId),C._maxVisibleLayers=isFinite(I)?I-D+1:0,h.enter().append("g").classed("slice",!0),T(h,p,{},[v,y],x),h.order();var N=null;if(k&&M){var R=u.getPtId(M);h.each((function(e){null===N&&u.getPtId(e)===R&&(N={x0:e.x0,x1:e.x1,y0:e.y0,y1:e.y1})}))}var F=function(){return N||{x0:0,x1:v,y0:0,y1:y}},B=h;return k&&(B=B.transition().each("end",(function(){var t=n.select(this);u.setSliceCursor(t,e,{hideOnRoot:!0,hideOnLeaves:!1,isTransitioning:!1})}))),B.each((function(l){var h=u.isHeader(l,C);l._x0=m(l.x0),l._x1=m(l.x1),l._y0=b(l.y0),l._y1=b(l.y1),l._hoverX=m(l.x1-C.marker.pad.r),l._hoverY=b(P?l.y1-C.marker.pad.b/2:l.y0+C.marker.pad.t/2);var g=n.select(this),T=a.ensureSingle(g,"path","surface",(function(e){e.style("pointer-events","all")}));k?T.transition().attrTween("d",(function(e){var t=A(e,p,F(),[v,y]);return function(e){return x(t(e))}})):T.attr("d",x),g.call(f,r,e,t,{styleOne:s,eventDataKeys:c.eventDataKeys,transitionTime:c.CLICK_TRANSITION_TIME,transitionEasing:c.CLICK_TRANSITION_EASING}).call(u.setSliceCursor,e,{isTransitioning:e._transitioning}),T.call(s,l,C,{hovered:!1}),l.x0===l.x1||l.y0===l.y1?l._text="":l._text=h?j?"":u.getPtLabel(l)||"":d(l,r,C,t,O)||"";var M=a.ensureSingle(g,"g","slicetext"),z=a.ensureSingle(M,"text","",(function(e){e.attr("data-notex",1)})),D=a.ensureUniformFontSize(e,u.determineTextFont(C,l,O.font));z.text(l._text||" ").classed("slicetext",!0).attr("text-anchor",L?"end":E||h?"start":"middle").call(i.font,D).call(o.convertToTspans,e),l.textBB=i.bBox(z.node()),l.transform=w(l,{fontSize:D.size,isHeader:h}),l.transform.fontSize=D.size,k?z.transition().attrTween("transform",(function(e){var t=S(e,p,F(),[v,y]);return function(e){return _(t(e))}})):z.attr("transform",_(l))})),N}},function(e,t,r){"use strict";var n=r(7),a=r(201),i=r(348).interpolate,o=r(10),l=r(0),s=r(25),c=r(51),u=c.recordMinTextSize,f=c.clearMinTextSize,d=r(310),p=r(77).getRotationAngle,h=d.computeTransform,g=d.transformInsideText,v=r(743).styleOne,y=r(68).resizeText,m=r(200),b=r(340),x=r(69);function w(e,r,c,f){var d=e._fullLayout,y=!d.uniformtext.mode&&x.hasTransition(f),w=n.select(c).selectAll("g.slice"),k=r[0],T=k.trace,A=k.hierarchy,S=x.findEntryWithLevel(A,T.level),M=x.getMaxDepth(T),O=d._size,C=T.domain,E=O.w*(C.x[1]-C.x[0]),L=O.h*(C.y[1]-C.y[0]),P=.5*Math.min(E,L),j=k.cx=O.l+O.w*(C.x[1]+C.x[0])/2,z=k.cy=O.t+O.h*(1-C.y[0])-L/2;if(!S)return w.remove();var D=null,I={};y&&w.each((function(e){I[x.getPtId(e)]={rpx0:e.rpx0,rpx1:e.rpx1,x0:e.x0,x1:e.x1,transform:e.transform},!D&&x.isEntry(e)&&(D=e)}));var N=function(e){return a.partition().size([2*Math.PI,e.height+1])(e)}(S).descendants(),R=S.height+1,F=0,B=M;k.hasMultipleRoots&&x.isHierarchyRoot(S)&&(N=N.slice(1),R-=1,F=1,B+=1),N=N.filter((function(e){return e.y1<=B}));var U=p(T.rotation);U&&N.forEach((function(e){e.x0+=U,e.x1+=U}));var H=Math.min(R,M),V=function(e){return(e-F)/H*P},q=function(e,t){return[e*Math.cos(t),-e*Math.sin(t)]},W=function(e){return l.pathAnnulus(e.rpx0,e.rpx1,e.x0,e.x1,j,z)},Y=function(e){return j+_(e)[0]*(e.transform.rCenter||0)+(e.transform.x||0)},G=function(e){return z+_(e)[1]*(e.transform.rCenter||0)+(e.transform.y||0)};(w=w.data(N,x.getPtId)).enter().append("g").classed("slice",!0),y?w.exit().transition().each((function(){var e=n.select(this);e.select("path.surface").transition().attrTween("d",(function(e){var t=function(e){var t,r=x.getPtId(e),n=I[r],a=I[x.getPtId(S)];if(a){var o=(e.x1>a.x1?2*Math.PI:0)+U;t=e.rpx1<a.rpx1?{x0:e.x0,x1:e.x1,rpx0:0,rpx1:0}:{x0:o,x1:o,rpx0:e.rpx0,rpx1:e.rpx1}}else{var l,s=x.getPtId(e.parent);w.each((function(e){if(x.getPtId(e)===s)return l=e}));var c,u=l.children;u.forEach((function(e,t){if(x.getPtId(e)===r)return c=t}));var f=u.length,d=i(l.x0,l.x1);t={rpx0:P,rpx1:P,x0:d(c/f),x1:d((c+1)/f)}}return i(n,t)}(e);return function(e){return W(t(e))}})),e.select("g.slicetext").attr("opacity",0)})).remove():w.exit().remove(),w.order();var X=null;if(y&&D){var Z=x.getPtId(D);w.each((function(e){null===X&&x.getPtId(e)===Z&&(X=e.x1)}))}var $=w;function Q(e){var t=e.parent,r=I[x.getPtId(t)],n={};if(r){var a=t.children,o=a.indexOf(e),l=a.length,s=i(r.x0,r.x1);n.x0=s(o/l),n.x1=s(o/l)}else n.x0=n.x1=0;return n}y&&($=$.transition().each("end",(function(){var t=n.select(this);x.setSliceCursor(t,e,{hideOnRoot:!0,hideOnLeaves:!0,isTransitioning:!1})}))),$.each((function(a){var c=n.select(this),f=l.ensureSingle(c,"path","surface",(function(e){e.style("pointer-events","all")}));a.rpx0=V(a.y0),a.rpx1=V(a.y1),a.xmid=(a.x0+a.x1)/2,a.pxmid=q(a.rpx1,a.xmid),a.midangle=-(a.xmid-Math.PI/2),a.startangle=-(a.x0-Math.PI/2),a.stopangle=-(a.x1-Math.PI/2),a.halfangle=.5*Math.min(l.angleDelta(a.x0,a.x1)||Math.PI,Math.PI),a.ring=1-a.rpx0/a.rpx1,a.rInscribed=function(e){return 0===e.rpx0&&l.isFullCircle([e.x0,e.x1])?1:Math.max(0,Math.min(1/(1+1/Math.sin(e.halfangle)),e.ring/2))}(a),y?f.transition().attrTween("d",(function(e){var t=function(e){var t,r=I[x.getPtId(e)],n={x0:e.x0,x1:e.x1,rpx0:e.rpx0,rpx1:e.rpx1};if(r)t=r;else if(D)if(e.parent)if(X){var a=(e.x1>X?2*Math.PI:0)+U;t={x0:a,x1:a}}else t={rpx0:P,rpx1:P},l.extendFlat(t,Q(e));else t={rpx0:0,rpx1:0};else t={x0:U,x1:U};return i(t,n)}(e);return function(e){return W(t(e))}})):f.attr("d",W),c.call(m,S,e,r,{eventDataKeys:b.eventDataKeys,transitionTime:b.CLICK_TRANSITION_TIME,transitionEasing:b.CLICK_TRANSITION_EASING}).call(x.setSliceCursor,e,{hideOnRoot:!0,hideOnLeaves:!0,isTransitioning:e._transitioning}),f.call(v,a,T);var p=l.ensureSingle(c,"g","slicetext"),w=l.ensureSingle(p,"text","",(function(e){e.attr("data-notex",1)})),_=l.ensureUniformFontSize(e,x.determineTextFont(T,a,d.font));w.text(t.formatSliceLabel(a,S,T,r,d)).classed("slicetext",!0).attr("text-anchor","middle").call(o.font,_).call(s.convertToTspans,e);var A=o.bBox(w.node());a.transform=g(A,a,k),a.transform.targetX=Y(a),a.transform.targetY=G(a);var M=function(e,t){var r=e.transform;return h(r,t),r.fontSize=_.size,u(T.type,r,d),l.getTextTransform(r)};y?w.transition().attrTween("transform",(function(e){var t=function(e){var t,r=I[x.getPtId(e)],n=e.transform;if(r)t=r;else if(t={rpx1:e.rpx1,transform:{textPosAngle:n.textPosAngle,scale:0,rotate:n.rotate,rCenter:n.rCenter,x:n.x,y:n.y}},D)if(e.parent)if(X){var a=e.x1>X?2*Math.PI:0;t.x0=t.x1=a}else l.extendFlat(t,Q(e));else t.x0=t.x1=U;else t.x0=t.x1=U;var o=i(t.transform.textPosAngle,e.transform.textPosAngle),s=i(t.rpx1,e.rpx1),c=i(t.x0,e.x0),f=i(t.x1,e.x1),p=i(t.transform.scale,n.scale),h=i(t.transform.rotate,n.rotate),g=0===n.rCenter?3:0===t.transform.rCenter?1/3:1,v=i(t.transform.rCenter,n.rCenter),y=function(e){return v(Math.pow(e,g))};return function(e){var t=s(e),r=c(e),a=f(e),i=y(e),l={pxmid:q(t,(r+a)/2),rpx1:t,transform:{textPosAngle:o(e),rCenter:i,x:n.x,y:n.y}};return u(T.type,n,d),{transform:{targetX:Y(l),targetY:G(l),scale:p(e),rotate:h(e),rCenter:i}}}}(e);return function(e){return M(t(e),A)}})):w.attr("transform",M(a,A))}))}function _(e){return t=e.rpx1,r=e.transform.textPosAngle,[t*Math.sin(r),-t*Math.cos(r)];var t,r}t.plot=function(e,t,r,a){var i,o,l=e._fullLayout,s=l._sunburstlayer,c=!r,u=!l.uniformtext.mode&&x.hasTransition(r);(f("sunburst",l),(i=s.selectAll("g.trace.sunburst").data(t,(function(e){return e[0].trace.uid}))).enter().append("g").classed("trace",!0).classed("sunburst",!0).attr("stroke-linejoin","round"),i.order(),u)?(a&&(o=a()),n.transition().duration(r.duration).ease(r.easing).each("end",(function(){o&&o()})).each("interrupt",(function(){o&&o()})).each((function(){s.selectAll("g.trace").each((function(t){w(e,t,this,r)}))}))):(i.each((function(t){w(e,t,this,r)})),l.uniformtext.mode&&y(e,l._sunburstlayer.selectAll(".trace"),"sunburst"));c&&i.exit().remove()},t.formatSliceLabel=function(e,t,r,n,a){var i=r.texttemplate,o=r.textinfo;if(!i&&(!o||"none"===o))return"";var s=a.separators,c=n[0],u=e.data.data,f=c.hierarchy,d=x.isHierarchyRoot(e),p=x.getParent(f,e),h=x.getValue(e);if(!i){var g,v=o.split("+"),y=function(e){return-1!==v.indexOf(e)},m=[];if(y("label")&&u.label&&m.push(u.label),u.hasOwnProperty("v")&&y("value")&&m.push(x.formatValue(u.v,s)),!d){y("current path")&&m.push(x.getPath(e.data));var b=0;y("percent parent")&&b++,y("percent entry")&&b++,y("percent root")&&b++;var w=b>1;if(b){var _,k=function(e){g=x.formatPercent(_,s),w&&(g+=" of "+e),m.push(g)};y("percent parent")&&!d&&(_=h/x.getValue(p),k("parent")),y("percent entry")&&(_=h/x.getValue(t),k("entry")),y("percent root")&&(_=h/x.getValue(f),k("root"))}}return y("text")&&(g=l.castOption(r,u.i,"text"),l.isValidTextValue(g)&&m.push(g)),m.join("<br>")}var T=l.castOption(r,u.i,"texttemplate");if(!T)return"";var A={};u.label&&(A.label=u.label),u.hasOwnProperty("v")&&(A.value=u.v,A.valueLabel=x.formatValue(u.v,s)),A.currentPath=x.getPath(e.data),d||(A.percentParent=h/x.getValue(p),A.percentParentLabel=x.formatPercent(A.percentParent,s),A.parent=x.getPtLabel(p)),A.percentEntry=h/x.getValue(t),A.percentEntryLabel=x.formatPercent(A.percentEntry,s),A.entry=x.getPtLabel(t),A.percentRoot=h/x.getValue(f),A.percentRootLabel=x.formatPercent(A.percentRoot,s),A.root=x.getPtLabel(f),u.hasOwnProperty("color")&&(A.color=u.color);var S=l.castOption(r,u.i,"text");return(l.isValidTextValue(S)||""===S)&&(A.text=S),A.customdata=l.castOption(r,u.i,"customdata"),l.texttemplateString(T,A,a._d3locale,A,r._meta||{})}},function(e,t,r){"use strict";var n=r(7),a=r(8),i=r(0),o=r(51).resizeText;function l(e,t,r){var n=t.data.data,o=!t.children,l=n.i,s=i.castOption(r,l,"marker.line.color")||a.defaultLine,c=i.castOption(r,l,"marker.line.width")||0;e.style("stroke-width",c).call(a.fill,n.color).call(a.stroke,s).style("opacity",o?r.leaf.opacity:null)}e.exports={style:function(e){var t=e._fullLayout._sunburstlayer.selectAll(".trace");o(e,t,"sunburst"),t.each((function(e){var t=n.select(this),r=e[0].trace;t.style("opacity",r.opacity),t.selectAll("path.surface").each((function(e){n.select(this).call(l,e,r)}))}))},styleOne:l}},,function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;!function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};n.get||n.set?Object.defineProperty(t,r,n):t[r]=e[r]}t.default=e}(r(1));var n=l(r(746)),a=l(r(749)),i=l(r(6)),o=l(r(344));r(346);function l(e){return e&&e.__esModule?e:{default:e}}function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},s.apply(this,arguments)}var c=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return(0,n.default)(e,t)}))},u=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return(0,a.default)(e,t)}))},f=function(e){var t,r;function n(){for(var t,r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return(t=e.call.apply(e,[this].concat(n))||this).onEnter=function(e,r){var n=t.getClassNames(r?"appear":"enter").className;t.removeClasses(e,"exit"),c(e,n),t.props.onEnter&&t.props.onEnter(e,r)},t.onEntering=function(e,r){var n=t.getClassNames(r?"appear":"enter").activeClassName;t.reflowAndAddClass(e,n),t.props.onEntering&&t.props.onEntering(e,r)},t.onEntered=function(e,r){var n=t.getClassNames("appear").doneClassName,a=t.getClassNames("enter").doneClassName,i=r?n+" "+a:a;t.removeClasses(e,r?"appear":"enter"),c(e,i),t.props.onEntered&&t.props.onEntered(e,r)},t.onExit=function(e){var r=t.getClassNames("exit").className;t.removeClasses(e,"appear"),t.removeClasses(e,"enter"),c(e,r),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var r=t.getClassNames("exit").activeClassName;t.reflowAndAddClass(e,r),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var r=t.getClassNames("exit").doneClassName;t.removeClasses(e,"exit"),c(e,r),t.props.onExited&&t.props.onExited(e)},t.getClassNames=function(e){var r=t.props.classNames,n="string"===typeof r,a=n?(n&&r?r+"-":"")+e:r[e];return{className:a,activeClassName:n?a+"-active":r[e+"Active"],doneClassName:n?a+"-done":r[e+"Done"]}},t}r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var a=n.prototype;return a.removeClasses=function(e,t){var r=this.getClassNames(t),n=r.className,a=r.activeClassName,i=r.doneClassName;n&&u(e,n),a&&u(e,a),i&&u(e,i)},a.reflowAndAddClass=function(e,t){t&&(e&&e.scrollTop,c(e,t))},a.render=function(){var e=s({},this.props);return delete e.classNames,i.default.createElement(o.default,s({},e,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},n}(i.default.Component);f.defaultProps={classNames:""},f.propTypes={};var d=f;t.default=d,e.exports=t.default},function(e,t,r){"use strict";var n=r(747);t.__esModule=!0,t.default=function(e,t){e.classList?e.classList.add(t):(0,a.default)(e,t)||("string"===typeof e.className?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))};var a=n(r(748));e.exports=t.default},function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){"use strict";t.__esModule=!0,t.default=function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")},e.exports=t.default},function(e,t,r){"use strict";function n(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}e.exports=function(e,t){e.classList?e.classList.remove(t):"string"===typeof e.className?e.className=n(e.className,t):e.setAttribute("class",n(e.className&&e.className.baseVal||"",t))}},function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;o(r(1));var n=o(r(6)),a=r(135),i=o(r(347));function o(e){return e&&e.__esModule?e:{default:e}}var l=function(e){var t,r;function o(){for(var t,r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return(t=e.call.apply(e,[this].concat(n))||this).handleEnter=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return t.handleLifecycle("onEnter",0,r)},t.handleEntering=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return t.handleLifecycle("onEntering",0,r)},t.handleEntered=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return t.handleLifecycle("onEntered",0,r)},t.handleExit=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return t.handleLifecycle("onExit",1,r)},t.handleExiting=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return t.handleLifecycle("onExiting",1,r)},t.handleExited=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return t.handleLifecycle("onExited",1,r)},t}r=e,(t=o).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var l=o.prototype;return l.handleLifecycle=function(e,t,r){var i,o=this.props.children,l=n.default.Children.toArray(o)[t];l.props[e]&&(i=l.props)[e].apply(i,r),this.props[e]&&this.props[e]((0,a.findDOMNode)(this))},l.render=function(){var e=this.props,t=e.children,r=e.in,a=function(e,t){if(null==e)return{};var r,n,a={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,["children","in"]),o=n.default.Children.toArray(t),l=o[0],s=o[1];return delete a.onEnter,delete a.onEntering,delete a.onEntered,delete a.onExit,delete a.onExiting,delete a.onExited,n.default.createElement(i.default,a,r?n.default.cloneElement(l,{key:"first",onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered}):n.default.cloneElement(s,{key:"second",onEnter:this.handleExit,onEntering:this.handleExiting,onEntered:this.handleExited}))},o}(n.default.Component);l.propTypes={};var s=l;t.default=s,e.exports=t.default},function(e,t,r){"use strict";t.__esModule=!0,t.getChildMapping=a,t.mergeChildMappings=i,t.getInitialChildMapping=function(e,t){return a(e.children,(function(r){return(0,n.cloneElement)(r,{onExited:t.bind(null,r),in:!0,appear:o(r,"appear",e),enter:o(r,"enter",e),exit:o(r,"exit",e)})}))},t.getNextChildMapping=function(e,t,r){var l=a(e.children),s=i(t,l);return Object.keys(s).forEach((function(a){var i=s[a];if((0,n.isValidElement)(i)){var c=a in t,u=a in l,f=t[a],d=(0,n.isValidElement)(f)&&!f.props.in;!u||c&&!d?u||!c||d?u&&c&&(0,n.isValidElement)(f)&&(s[a]=(0,n.cloneElement)(i,{onExited:r.bind(null,i),in:f.props.in,exit:o(i,"exit",e),enter:o(i,"enter",e)})):s[a]=(0,n.cloneElement)(i,{in:!1}):s[a]=(0,n.cloneElement)(i,{onExited:r.bind(null,i),in:!0,exit:o(i,"exit",e),enter:o(i,"enter",e)})}})),s};var n=r(6);function a(e,t){var r=Object.create(null);return e&&n.Children.map(e,(function(e){return e})).forEach((function(e){r[e.key]=function(e){return t&&(0,n.isValidElement)(e)?t(e):e}(e)})),r}function i(e,t){function r(r){return r in t?t[r]:e[r]}e=e||{},t=t||{};var n,a=Object.create(null),i=[];for(var o in e)o in t?i.length&&(a[o]=i,i=[]):i.push(o);var l={};for(var s in t){if(a[s])for(n=0;n<a[s].length;n++){var c=a[s][n];l[a[s][n]]=r(c)}l[s]=r(s)}for(n=0;n<i.length;n++)l[i[n]]=r(i[n]);return l}function o(e,t,r){return null!=r[t]?r[t]:e.props[t]}}]]);
3
- //# sourceMappingURL=2.dc8813c6.chunk.js.map