streamlit-nightly 1.45.2.dev20250527__py3-none-any.whl → 1.45.2.dev20250530__py3-none-any.whl
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.
- streamlit/auth_util.py +3 -3
- streamlit/commands/echo.py +1 -1
- streamlit/config.py +32 -12
- streamlit/config_option.py +3 -5
- streamlit/config_util.py +4 -5
- streamlit/connections/snowflake_connection.py +4 -3
- streamlit/delta_generator.py +10 -14
- streamlit/elements/arrow.py +1 -0
- streamlit/elements/deck_gl_json_chart.py +1 -0
- streamlit/elements/doc_string.py +7 -15
- streamlit/elements/exception.py +4 -12
- streamlit/elements/form.py +14 -0
- streamlit/elements/graphviz_chart.py +1 -1
- streamlit/elements/heading.py +3 -4
- streamlit/elements/json.py +7 -6
- streamlit/elements/layouts.py +21 -3
- streamlit/elements/lib/image_utils.py +2 -3
- streamlit/elements/lib/layout_utils.py +24 -0
- streamlit/elements/lib/mutable_status_container.py +9 -0
- streamlit/elements/lib/streamlit_plotly_theme.py +54 -53
- streamlit/elements/lib/utils.py +15 -0
- streamlit/elements/markdown.py +34 -4
- streamlit/elements/media.py +1 -1
- streamlit/elements/plotly_chart.py +1 -0
- streamlit/elements/progress.py +6 -15
- streamlit/elements/spinner.py +5 -4
- streamlit/elements/vega_charts.py +1 -0
- streamlit/elements/widgets/audio_input.py +4 -10
- streamlit/elements/widgets/button.py +3 -1
- streamlit/elements/widgets/button_group.py +1 -0
- streamlit/elements/widgets/camera_input.py +6 -9
- streamlit/elements/widgets/chat.py +11 -13
- streamlit/elements/widgets/checkbox.py +1 -0
- streamlit/elements/widgets/color_picker.py +9 -14
- streamlit/elements/widgets/data_editor.py +9 -5
- streamlit/elements/widgets/file_uploader.py +10 -9
- streamlit/elements/widgets/multiselect.py +1 -0
- streamlit/elements/widgets/number_input.py +12 -12
- streamlit/elements/widgets/radio.py +2 -1
- streamlit/elements/widgets/select_slider.py +4 -10
- streamlit/elements/widgets/selectbox.py +11 -13
- streamlit/elements/widgets/slider.py +28 -41
- streamlit/elements/widgets/text_widgets.py +16 -24
- streamlit/elements/widgets/time_widgets.py +15 -22
- streamlit/hello/animation_demo.py +9 -9
- streamlit/hello/dataframe_demo.py +2 -2
- streamlit/hello/hello.py +1 -0
- streamlit/hello/mapping_demo.py +5 -6
- streamlit/hello/streamlit_app.py +27 -25
- streamlit/logger.py +1 -1
- streamlit/proto/AudioInput_pb2.py +3 -4
- streamlit/proto/AudioInput_pb2.pyi +2 -7
- streamlit/proto/Block_pb2.py +27 -27
- streamlit/proto/Block_pb2.pyi +3 -17
- streamlit/proto/CameraInput_pb2.py +3 -4
- streamlit/proto/CameraInput_pb2.pyi +2 -8
- streamlit/proto/ChatInput_pb2.py +7 -8
- streamlit/proto/ChatInput_pb2.pyi +1 -10
- streamlit/proto/Code_pb2.py +3 -4
- streamlit/proto/DateInput_pb2.py +3 -4
- streamlit/proto/DateInput_pb2.pyi +2 -8
- streamlit/proto/DocString_pb2.py +5 -6
- streamlit/proto/DocString_pb2.pyi +1 -9
- streamlit/proto/FileUploader_pb2.py +3 -4
- streamlit/proto/FileUploader_pb2.pyi +2 -8
- streamlit/proto/Json_pb2.py +3 -4
- streamlit/proto/Json_pb2.pyi +2 -9
- streamlit/proto/NewSession_pb2.py +16 -16
- streamlit/proto/NewSession_pb2.pyi +7 -2
- streamlit/proto/NumberInput_pb2.py +5 -6
- streamlit/proto/NumberInput_pb2.pyi +2 -9
- streamlit/proto/Progress_pb2.py +3 -4
- streamlit/proto/Progress_pb2.pyi +1 -7
- streamlit/proto/Selectbox_pb2.py +3 -4
- streamlit/proto/Selectbox_pb2.pyi +2 -9
- streamlit/proto/Slider_pb2.py +7 -8
- streamlit/proto/Slider_pb2.pyi +2 -8
- streamlit/proto/TextArea_pb2.py +3 -4
- streamlit/proto/TextArea_pb2.pyi +2 -9
- streamlit/proto/TextInput_pb2.py +5 -6
- streamlit/proto/TextInput_pb2.pyi +2 -9
- streamlit/proto/TimeInput_pb2.py +3 -4
- streamlit/proto/TimeInput_pb2.pyi +2 -9
- streamlit/runtime/app_session.py +11 -8
- streamlit/runtime/caching/hashing.py +8 -9
- streamlit/runtime/caching/storage/local_disk_cache_storage.py +3 -3
- streamlit/runtime/connection_factory.py +12 -12
- streamlit/runtime/credentials.py +13 -26
- streamlit/runtime/runtime_util.py +2 -2
- streamlit/runtime/scriptrunner/script_runner.py +8 -7
- streamlit/static/index.html +1 -1
- streamlit/static/manifest.json +1240 -0
- streamlit/static/static/js/{ErrorOutline.esm.qteVcUUN.js → ErrorOutline.esm.D5NgCh5m.js} +1 -1
- streamlit/static/static/js/{FileDownload.esm.ncu7N-Hr.js → FileDownload.esm.NuObx1Tl.js} +1 -1
- streamlit/static/static/js/{FileHelper.zsMZ7RXt.js → FileHelper.BH7o4_P9.js} +5 -5
- streamlit/static/static/js/{FormClearHelper.W8yVYXZp.js → FormClearHelper.BAxB8JFY.js} +1 -1
- streamlit/static/static/js/{Hooks.DBj6srQ1.js → Hooks.Bjt8oBOT.js} +1 -1
- streamlit/static/static/js/{InputInstructions.BobLsJJb.js → InputInstructions.BZZLp6t9.js} +1 -1
- streamlit/static/static/js/{ProgressBar.CtvJrIzN.js → ProgressBar.BwRgGfI0.js} +2 -2
- streamlit/static/static/js/{RenderInPortalIfExists.DnT_UdzV.js → RenderInPortalIfExists.C_c286r8.js} +1 -1
- streamlit/static/static/js/{Toolbar.BVF7NtOB.js → Toolbar.5tXjF_eX.js} +1 -1
- streamlit/static/static/js/{base-input.B4sdS3vw.js → base-input.wfBDFTlB.js} +1 -1
- streamlit/static/static/js/{checkbox.DKDitzF8.js → checkbox.D1GhNngU.js} +1 -1
- streamlit/static/static/js/{createSuper.mhx956J9.js → createSuper.CudEEVs2.js} +1 -1
- streamlit/static/static/js/{data-grid-overlay-editor.CmXS0PAX.js → data-grid-overlay-editor.DUTI_Rbg.js} +1 -1
- streamlit/static/static/js/{downloader.Cnd9SuxG.js → downloader.BwLpAoXN.js} +1 -1
- streamlit/static/static/js/{es6.DM-pf09u.js → es6.B_HLnUb9.js} +2 -2
- streamlit/static/static/js/{iframeResizer.contentWindow.Gc5GAjZM.js → iframeResizer.contentWindow.BNcjOcan.js} +1 -1
- streamlit/static/static/js/{index.D4XRYl23.js → index.3WJoJFGb.js} +1 -1
- streamlit/static/static/js/{index.C_2m4F7k.js → index.B0h616Th.js} +1 -1
- streamlit/static/static/js/{index.p2Wl4zMi.js → index.B0paBg5x.js} +1 -1
- streamlit/static/static/js/index.B3vWaIrN.js +1 -0
- streamlit/static/static/js/{index.B45ExNhw.js → index.B4PbMsBe.js} +1 -1
- streamlit/static/static/js/{index.BWTBe3a1.js → index.BGKVW2u9.js} +1 -1
- streamlit/static/static/js/index.BJQPxOFd.js +12 -0
- streamlit/static/static/js/{index.DdyZtGcg.js → index.BOHEcsVb.js} +1 -1
- streamlit/static/static/js/{index.BR-S54Iv.js → index.BPGAPI9w.js} +1 -1
- streamlit/static/static/js/{index.gBOr8z2K.js → index.Bj6uLiaA.js} +1 -1
- streamlit/static/static/js/{index.I3iNnzJx.js → index.BkvVxUIW.js} +1 -1
- streamlit/static/static/js/{index._BaeK1t7.js → index.Bs0m0eUy.js} +1 -1
- streamlit/static/static/js/{index.DwUISpCs.js → index.BtpsTdHN.js} +177 -174
- streamlit/static/static/js/index.C1GNiWbH.js +1 -0
- streamlit/static/static/js/{index.B6xTo8b8.js → index.CL0UH4WF.js} +1 -1
- streamlit/static/static/js/{index.BJQNG4O1.js → index.CXP5ffxh.js} +1 -1
- streamlit/static/static/js/{index.DAvhwYMG.js → index.Ca-9xoC2.js} +1 -1
- streamlit/static/static/js/{index.COBionvf.js → index.Cdd7Ri21.js} +1 -1
- streamlit/static/static/js/index.Cf8KcH2X.js +1 -0
- streamlit/static/static/js/{index.BkLkRTpZ.js → index.CfzaRR6P.js} +1 -1
- streamlit/static/static/js/{index.CkKptP1T.js → index.CjRwuAdg.js} +1 -1
- streamlit/static/static/js/{index.CjBaoWYr.js → index.CkOUlPYT.js} +1 -1
- streamlit/static/static/js/{index.DQGSbu2C.js → index.CxtkoiKl.js} +1 -1
- streamlit/static/static/js/index.D3wYqvI6.js +1 -0
- streamlit/static/static/js/index.D8i27llu.js +3 -0
- streamlit/static/static/js/{index.BfusYuD8.js → index.DA7wmIe4.js} +1 -1
- streamlit/static/static/js/index.DIG9Mo9J.js +1 -0
- streamlit/static/static/js/index.DNR4wKJg.js +1 -0
- streamlit/static/static/js/{index.B29JQLHa.js → index.DNS8a-dx.js} +20 -20
- streamlit/static/static/js/{index.BNNR5Jmd.js → index.NveskZ7j.js} +1 -1
- streamlit/static/static/js/{index.CWgnk1N4.js → index.PR2mcvVR.js} +1 -1
- streamlit/static/static/js/{index.CJ-XXd1r.js → index.df4uuSoD.js} +1 -1
- streamlit/static/static/js/{index.WWYmGCrM.js → index.flyQEkeT.js} +1 -1
- streamlit/static/static/js/{index.vOqxh1m2.js → index.iF9jUtwl.js} +1 -1
- streamlit/static/static/js/{index.C5KKmyWy.js → index.jyqBAhvH.js} +1 -1
- streamlit/static/static/js/{index.AWkO-7e-.js → index.sYLAHlH0.js} +1 -1
- streamlit/static/static/js/{index.CZ5fZcT5.js → index.zq3LdRhj.js} +1 -1
- streamlit/static/static/js/{input.BvD9DHLa.js → input.CtZjQ6Pv.js} +1 -1
- streamlit/static/static/js/{memory.DCVB1HOm.js → memory.Ddl3R0up.js} +1 -1
- streamlit/static/static/js/{mergeWith.BqTORFAq.js → mergeWith.D-TqDY0-.js} +1 -1
- streamlit/static/static/js/{number-overlay-editor.VB_OvuPv.js → number-overlay-editor.Dndf05Hx.js} +1 -1
- streamlit/static/static/js/{possibleConstructorReturn.DhYxBDlj.js → possibleConstructorReturn.DNEY6J9G.js} +1 -1
- streamlit/static/static/js/{sandbox.CoN7LRFk.js → sandbox.B_XDPkfx.js} +1 -1
- streamlit/static/static/js/{textarea.DkHpIjdT.js → textarea.BZ9lTMhV.js} +1 -1
- streamlit/static/static/js/{timepicker.C8UIzYhf.js → timepicker.D9UUwpRT.js} +1 -1
- streamlit/static/static/js/{toConsumableArray.DXfr1fvT.js → toConsumableArray.DNJjbOUS.js} +1 -1
- streamlit/static/static/js/{uniqueId.CgrMSBTb.js → uniqueId.psBJ_tSg.js} +1 -1
- streamlit/static/static/js/{useBasicWidgetState.C-e-WEFS.js → useBasicWidgetState.CTpx4w-3.js} +1 -1
- streamlit/static/static/js/{useOnInputChange.CtRJhZD6.js → useOnInputChange.WKTDSC4O.js} +1 -1
- streamlit/static/static/js/{withFullScreenWrapper.od0SAvAK.js → withFullScreenWrapper.oyWCn2-3.js} +1 -1
- streamlit/watcher/local_sources_watcher.py +1 -1
- streamlit/watcher/path_watcher.py +2 -3
- streamlit/web/bootstrap.py +1 -1
- streamlit/web/cli.py +5 -5
- streamlit/web/server/authlib_tornado_integration.py +3 -3
- streamlit/web/server/oauth_authlib_routes.py +4 -2
- streamlit/web/server/oidc_mixin.py +6 -5
- streamlit/web/server/server.py +1 -1
- {streamlit_nightly-1.45.2.dev20250527.dist-info → streamlit_nightly-1.45.2.dev20250530.dist-info}/METADATA +2 -2
- {streamlit_nightly-1.45.2.dev20250527.dist-info → streamlit_nightly-1.45.2.dev20250530.dist-info}/RECORD +172 -171
- streamlit/static/static/js/index.B0E6Rv1F.js +0 -1
- streamlit/static/static/js/index.BONHiJUZ.js +0 -1
- streamlit/static/static/js/index.BV38yp5k.js +0 -1
- streamlit/static/static/js/index.CgOynO1t.js +0 -1
- streamlit/static/static/js/index.DIyx-z1Q.js +0 -1
- streamlit/static/static/js/index.DOYomqqU.js +0 -1
- streamlit/static/static/js/index.DOl-SOKu.js +0 -3
- streamlit/static/static/js/index.DTU7qmDP.js +0 -12
- {streamlit_nightly-1.45.2.dev20250527.data → streamlit_nightly-1.45.2.dev20250530.data}/scripts/streamlit.cmd +0 -0
- {streamlit_nightly-1.45.2.dev20250527.dist-info → streamlit_nightly-1.45.2.dev20250530.dist-info}/WHEEL +0 -0
- {streamlit_nightly-1.45.2.dev20250527.dist-info → streamlit_nightly-1.45.2.dev20250530.dist-info}/entry_points.txt +0 -0
- {streamlit_nightly-1.45.2.dev20250527.dist-info → streamlit_nightly-1.45.2.dev20250530.dist-info}/top_level.txt +0 -0
@@ -1,4 +1,4 @@
|
|
1
|
-
import{d as I8,e as R8,g as D8,l as z8,b6 as F8,N as JA,b7 as O8,b8 as B8,aG as N8,aL as qv,aK as gh,b9 as $A,aJ as U8,aH as j8,aI as V8,H as Nf,O as WA,ba as q8,bb as Wg,r as Hv,aD as QA,j as lb,z as H8}from"./index.DwUISpCs.js";import{F as G8}from"./FormClearHelper.W8yVYXZp.js";import{w as W8,E as eS}from"./withFullScreenWrapper.od0SAvAK.js";var ob={},sb={},ZA;function Z8(){return ZA||(ZA=1,function(za){function zi(zo){"@babel/helpers - typeof";return zi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Bs){return typeof Bs}:function(Bs){return Bs&&typeof Symbol=="function"&&Bs.constructor===Symbol&&Bs!==Symbol.prototype?"symbol":typeof Bs},zi(zo)}Object.defineProperty(za,"__esModule",{value:!0}),za.default=Vd;var os=ru(I8()),wo=vs(R8());function vs(zo){return zo&&zo.__esModule?zo:{default:zo}}function Su(zo){if(typeof WeakMap!="function")return null;var Bs=new WeakMap,Nu=new WeakMap;return(Su=function(uf){return uf?Nu:Bs})(zo)}function ru(zo,Bs){if(zo&&zo.__esModule)return zo;if(zo===null||zi(zo)!=="object"&&typeof zo!="function")return{default:zo};var Nu=Su(Bs);if(Nu&&Nu.has(zo))return Nu.get(zo);var Kn={},uf=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var zl in zo)if(zl!=="default"&&Object.prototype.hasOwnProperty.call(zo,zl)){var ni=uf?Object.getOwnPropertyDescriptor(zo,zl):null;ni&&(ni.get||ni.set)?Object.defineProperty(Kn,zl,ni):Kn[zl]=zo[zl]}return Kn.default=zo,Nu&&Nu.set(zo,Kn),Kn}function Uf(zo,Bs){if(!(zo instanceof Bs))throw new TypeError("Cannot call a class as a function")}function of(zo,Bs){for(var Nu=0;Nu<Bs.length;Nu++){var Kn=Bs[Nu];Kn.enumerable=Kn.enumerable||!1,Kn.configurable=!0,"value"in Kn&&(Kn.writable=!0),Object.defineProperty(zo,Kn.key,Kn)}}function Zc(zo,Bs,Nu){return Bs&&of(zo.prototype,Bs),Object.defineProperty(zo,"prototype",{writable:!1}),zo}function sf(zo,Bs){if(typeof Bs!="function"&&Bs!==null)throw new TypeError("Super expression must either be null or a function");zo.prototype=Object.create(Bs&&Bs.prototype,{constructor:{value:zo,writable:!0,configurable:!0}}),Object.defineProperty(zo,"prototype",{writable:!1}),Bs&&Dc(zo,Bs)}function Dc(zo,Bs){return Dc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(Kn,uf){return Kn.__proto__=uf,Kn},Dc(zo,Bs)}function gc(zo){var Bs=lf();return function(){var Kn=Ds(zo),uf;if(Bs){var zl=Ds(this).constructor;uf=Reflect.construct(Kn,arguments,zl)}else uf=Kn.apply(this,arguments);return Ko(this,uf)}}function Ko(zo,Bs){if(Bs&&(zi(Bs)==="object"||typeof Bs=="function"))return Bs;if(Bs!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Tl(zo)}function Tl(zo){if(zo===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return zo}function lf(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Ds(zo){return Ds=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(Nu){return Nu.__proto__||Object.getPrototypeOf(Nu)},Ds(zo)}var He=["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","WebGlContextLost"],wv=["plotly_restyle","plotly_redraw","plotly_relayout","plotly_relayouting","plotly_doubleclick","plotly_animated","plotly_sunburstclick"],cd=typeof window<"u";function Vd(zo){var Bs=function(Nu){sf(uf,Nu);var Kn=gc(uf);function uf(zl){var ni;return Uf(this,uf),ni=Kn.call(this,zl),ni.p=Promise.resolve(),ni.resizeHandler=null,ni.handlers={},ni.syncWindowResize=ni.syncWindowResize.bind(Tl(ni)),ni.syncEventHandlers=ni.syncEventHandlers.bind(Tl(ni)),ni.attachUpdateEvents=ni.attachUpdateEvents.bind(Tl(ni)),ni.getRef=ni.getRef.bind(Tl(ni)),ni.handleUpdate=ni.handleUpdate.bind(Tl(ni)),ni.figureCallback=ni.figureCallback.bind(Tl(ni)),ni.updatePlotly=ni.updatePlotly.bind(Tl(ni)),ni}return Zc(uf,[{key:"updatePlotly",value:function(ni,dl,Mi){var Hi=this;this.p=this.p.then(function(){if(!Hi.unmounting){if(!Hi.el)throw new Error("Missing element reference");return zo.react(Hi.el,{data:Hi.props.data,layout:Hi.props.layout,config:Hi.props.config,frames:Hi.props.frames})}}).then(function(){Hi.unmounting||(Hi.syncWindowResize(ni),Hi.syncEventHandlers(),Hi.figureCallback(dl),Mi&&Hi.attachUpdateEvents())}).catch(function(Ah){Hi.props.onError&&Hi.props.onError(Ah)})}},{key:"componentDidMount",value:function(){this.unmounting=!1,this.updatePlotly(!0,this.props.onInitialized,!0)}},{key:"componentDidUpdate",value:function(ni){this.unmounting=!1;var dl=ni.frames&&ni.frames.length?ni.frames.length:0,Mi=this.props.frames&&this.props.frames.length?this.props.frames.length:0,Hi=!(ni.layout===this.props.layout&&ni.data===this.props.data&&ni.config===this.props.config&&Mi===dl),Ah=ni.revision!==void 0,tv=ni.revision!==this.props.revision;!Hi&&(!Ah||Ah&&!tv)||this.updatePlotly(!1,this.props.onUpdate,!1)}},{key:"componentWillUnmount",value:function(){this.unmounting=!0,this.figureCallback(this.props.onPurge),this.resizeHandler&&cd&&(window.removeEventListener("resize",this.resizeHandler),this.resizeHandler=null),this.removeUpdateEvents(),zo.purge(this.el)}},{key:"attachUpdateEvents",value:function(){var ni=this;!this.el||!this.el.removeListener||wv.forEach(function(dl){ni.el.on(dl,ni.handleUpdate)})}},{key:"removeUpdateEvents",value:function(){var ni=this;!this.el||!this.el.removeListener||wv.forEach(function(dl){ni.el.removeListener(dl,ni.handleUpdate)})}},{key:"handleUpdate",value:function(){this.figureCallback(this.props.onUpdate)}},{key:"figureCallback",value:function(ni){if(typeof ni=="function"){var dl=this.el,Mi=dl.data,Hi=dl.layout,Ah=this.el._transitionData?this.el._transitionData._frames:null,tv={data:Mi,layout:Hi,frames:Ah};ni(tv,this.el)}}},{key:"syncWindowResize",value:function(ni){var dl=this;cd&&(this.props.useResizeHandler&&!this.resizeHandler?(this.resizeHandler=function(){return zo.Plots.resize(dl.el)},window.addEventListener("resize",this.resizeHandler),ni&&this.resizeHandler()):!this.props.useResizeHandler&&this.resizeHandler&&(window.removeEventListener("resize",this.resizeHandler),this.resizeHandler=null))}},{key:"getRef",value:function(ni){this.el=ni,this.props.debug&&cd&&(window.gd=this.el)}},{key:"syncEventHandlers",value:function(){var ni=this;He.forEach(function(dl){var Mi=ni.props["on"+dl],Hi=ni.handlers[dl],Ah=!!Hi;Mi&&!Ah?ni.addEventHandler(dl,Mi):!Mi&&Ah?ni.removeEventHandler(dl):Mi&&Ah&&Mi!==Hi&&(ni.removeEventHandler(dl),ni.addEventHandler(dl,Mi))})}},{key:"addEventHandler",value:function(ni,dl){this.handlers[ni]=dl,this.el.on(this.getPlotlyEventName(ni),this.handlers[ni])}},{key:"removeEventHandler",value:function(ni){this.el.removeListener(this.getPlotlyEventName(ni),this.handlers[ni]),delete this.handlers[ni]}},{key:"getPlotlyEventName",value:function(ni){return"plotly_"+ni.toLowerCase()}},{key:"render",value:function(){return os.default.createElement("div",{id:this.props.divId,style:this.props.style,ref:this.getRef,className:this.props.className})}}]),uf}(os.Component);return Bs.propTypes={data:wo.default.arrayOf(wo.default.object),config:wo.default.object,layout:wo.default.object,frames:wo.default.arrayOf(wo.default.object),revision:wo.default.number,onInitialized:wo.default.func,onPurge:wo.default.func,onError:wo.default.func,onUpdate:wo.default.func,debug:wo.default.bool,style:wo.default.object,className:wo.default.string,useResizeHandler:wo.default.bool,divId:wo.default.string},He.forEach(function(Nu){Bs.propTypes["on"+Nu]=wo.default.func}),Bs.defaultProps={debug:!1,useResizeHandler:!1,data:[],style:{position:"relative",display:"inline-block"}},Bs}}(sb)),sb}var Ym={exports:{}},X8=Ym.exports,XA;function Y8(){return XA||(XA=1,function(za){var zi={};(function(os,wo){za.exports?za.exports=wo():os.moduleName=wo()})(typeof self<"u"?self:X8,()=>{var os=(()=>{var wo=Object.create,vs=Object.defineProperty,Su=Object.defineProperties,ru=Object.getOwnPropertyDescriptor,Uf=Object.getOwnPropertyDescriptors,of=Object.getOwnPropertyNames,Zc=Object.getOwnPropertySymbols,sf=Object.getPrototypeOf,Dc=Object.prototype.hasOwnProperty,gc=Object.prototype.propertyIsEnumerable,Ko=(Y,G,d)=>G in Y?vs(Y,G,{enumerable:!0,configurable:!0,writable:!0,value:d}):Y[G]=d,Tl=(Y,G)=>{for(var d in G||(G={}))Dc.call(G,d)&&Ko(Y,d,G[d]);if(Zc)for(var d of Zc(G))gc.call(G,d)&&Ko(Y,d,G[d]);return Y},lf=(Y,G)=>Su(Y,Uf(G)),Ds=(Y,G)=>function(){return Y&&(G=(0,Y[of(Y)[0]])(Y=0)),G},He=(Y,G)=>function(){return G||(0,Y[of(Y)[0]])((G={exports:{}}).exports,G),G.exports},wv=(Y,G)=>{for(var d in G)vs(Y,d,{get:G[d],enumerable:!0})},cd=(Y,G,d,x)=>{if(G&&typeof G=="object"||typeof G=="function")for(let A of of(G))!Dc.call(Y,A)&&A!==d&&vs(Y,A,{get:()=>G[A],enumerable:!(x=ru(G,A))||x.enumerable});return Y},Vd=(Y,G,d)=>(d=Y!=null?wo(sf(Y)):{},cd(vs(d,"default",{value:Y,enumerable:!0}),Y)),zo=Y=>cd(vs({},"__esModule",{value:!0}),Y),Bs=He({"src/version.js"(Y){Y.version="3.0.1"}}),Nu=He({"node_modules/native-promise-only/lib/npo.src.js"(Y,G){(function(x,A,E){A[x]=A[x]||E(),typeof G<"u"&&G.exports&&(G.exports=A[x])})("Promise",typeof window<"u"?window:Y,function(){var x,A,E,e=Object.prototype.toString,t=typeof setImmediate<"u"?function(y){return setImmediate(y)}:setTimeout;try{Object.defineProperty({},"x",{}),x=function(y,b,S,M){return Object.defineProperty(y,b,{value:S,writable:!0,configurable:M!==!1})}}catch{x=function(b,S,M){return b[S]=M,b}}E=function(){var y,b,S;function M(_,w){this.fn=_,this.self=w,this.next=void 0}return{add:function(w,p){S=new M(w,p),b?b.next=S:y=S,b=S,S=void 0},drain:function(){var w=y;for(y=b=A=void 0;w;)w.fn.call(w.self),w=w.next}}}();function r(l,y){E.add(l,y),A||(A=t(E.drain))}function o(l){var y,b=typeof l;return l!=null&&(b=="object"||b=="function")&&(y=l.then),typeof y=="function"?y:!1}function a(){for(var l=0;l<this.chain.length;l++)i(this,this.state===1?this.chain[l].success:this.chain[l].failure,this.chain[l]);this.chain.length=0}function i(l,y,b){var S,M;try{y===!1?b.reject(l.msg):(y===!0?S=l.msg:S=y.call(void 0,l.msg),S===b.promise?b.reject(TypeError("Promise-chain cycle")):(M=o(S))?M.call(S,b.resolve,b.reject):b.resolve(S))}catch(_){b.reject(_)}}function n(l){var y,b=this;if(!b.triggered){b.triggered=!0,b.def&&(b=b.def);try{(y=o(l))?r(function(){var S=new f(b);try{y.call(l,function(){n.apply(S,arguments)},function(){s.apply(S,arguments)})}catch(M){s.call(S,M)}}):(b.msg=l,b.state=1,b.chain.length>0&&r(a,b))}catch(S){s.call(new f(b),S)}}}function s(l){var y=this;y.triggered||(y.triggered=!0,y.def&&(y=y.def),y.msg=l,y.state=2,y.chain.length>0&&r(a,y))}function c(l,y,b,S){for(var M=0;M<y.length;M++)(function(w){l.resolve(y[w]).then(function(u){b(w,u)},S)})(M)}function f(l){this.def=l,this.triggered=!1}function v(l){this.promise=l,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function h(l){if(typeof l!="function")throw TypeError("Not a function");if(this.__NPO__!==0)throw TypeError("Not a promise");this.__NPO__=1;var y=new v(this);this.then=function(S,M){var _={success:typeof S=="function"?S:!0,failure:typeof M=="function"?M:!1};return _.promise=new this.constructor(function(p,u){if(typeof p!="function"||typeof u!="function")throw TypeError("Not a function");_.resolve=p,_.reject=u}),y.chain.push(_),y.state!==0&&r(a,y),_.promise},this.catch=function(S){return this.then(void 0,S)};try{l.call(void 0,function(S){n.call(y,S)},function(S){s.call(y,S)})}catch(b){s.call(y,b)}}var T=x({},"constructor",h,!1);return h.prototype=T,x(T,"__NPO__",0,!1),x(h,"resolve",function(y){var b=this;return y&&typeof y=="object"&&y.__NPO__===1?y:new b(function(M,_){if(typeof M!="function"||typeof _!="function")throw TypeError("Not a function");M(y)})}),x(h,"reject",function(y){return new this(function(S,M){if(typeof S!="function"||typeof M!="function")throw TypeError("Not a function");M(y)})}),x(h,"all",function(y){var b=this;return e.call(y)!="[object Array]"?b.reject(TypeError("Not an array")):y.length===0?b.resolve([]):new b(function(M,_){if(typeof M!="function"||typeof _!="function")throw TypeError("Not a function");var w=y.length,p=Array(w),u=0;c(b,y,function(m,R){p[m]=R,++u===w&&M(p)},_)})}),x(h,"race",function(y){var b=this;return e.call(y)!="[object Array]"?b.reject(TypeError("Not an array")):new b(function(M,_){if(typeof M!="function"||typeof _!="function")throw TypeError("Not a function");c(b,y,function(p,u){M(u)},_)})}),h})}}),Kn=He({"node_modules/@plotly/d3/d3.js"(Y,G){(function(){var d={version:"3.8.2"},x=[].slice,A=function(pe){return x.call(pe)},E=self.document;function e(pe){return pe&&(pe.ownerDocument||pe.document||pe).documentElement}function t(pe){return pe&&(pe.ownerDocument&&pe.ownerDocument.defaultView||pe.document&&pe||pe.defaultView)}if(E)try{A(E.documentElement.childNodes)[0].nodeType}catch{A=function(Le){for(var Ye=Le.length,ut=new Array(Ye);Ye--;)ut[Ye]=Le[Ye];return ut}}if(Date.now||(Date.now=function(){return+new Date}),E)try{E.createElement("DIV").style.setProperty("opacity",0,"")}catch{var r=this.Element.prototype,o=r.setAttribute,a=r.setAttributeNS,i=this.CSSStyleDeclaration.prototype,n=i.setProperty;r.setAttribute=function(Le,Ye){o.call(this,Le,Ye+"")},r.setAttributeNS=function(Le,Ye,ut){a.call(this,Le,Ye,ut+"")},i.setProperty=function(Le,Ye,ut){n.call(this,Le,Ye+"",ut)}}d.ascending=s;function s(pe,Le){return pe<Le?-1:pe>Le?1:pe>=Le?0:NaN}d.descending=function(pe,Le){return Le<pe?-1:Le>pe?1:Le>=pe?0:NaN},d.min=function(pe,Le){var Ye=-1,ut=pe.length,ht,xt;if(arguments.length===1){for(;++Ye<ut;)if((xt=pe[Ye])!=null&&xt>=xt){ht=xt;break}for(;++Ye<ut;)(xt=pe[Ye])!=null&&ht>xt&&(ht=xt)}else{for(;++Ye<ut;)if((xt=Le.call(pe,pe[Ye],Ye))!=null&&xt>=xt){ht=xt;break}for(;++Ye<ut;)(xt=Le.call(pe,pe[Ye],Ye))!=null&&ht>xt&&(ht=xt)}return ht},d.max=function(pe,Le){var Ye=-1,ut=pe.length,ht,xt;if(arguments.length===1){for(;++Ye<ut;)if((xt=pe[Ye])!=null&&xt>=xt){ht=xt;break}for(;++Ye<ut;)(xt=pe[Ye])!=null&&xt>ht&&(ht=xt)}else{for(;++Ye<ut;)if((xt=Le.call(pe,pe[Ye],Ye))!=null&&xt>=xt){ht=xt;break}for(;++Ye<ut;)(xt=Le.call(pe,pe[Ye],Ye))!=null&&xt>ht&&(ht=xt)}return ht},d.extent=function(pe,Le){var Ye=-1,ut=pe.length,ht,xt,zt;if(arguments.length===1){for(;++Ye<ut;)if((xt=pe[Ye])!=null&&xt>=xt){ht=zt=xt;break}for(;++Ye<ut;)(xt=pe[Ye])!=null&&(ht>xt&&(ht=xt),zt<xt&&(zt=xt))}else{for(;++Ye<ut;)if((xt=Le.call(pe,pe[Ye],Ye))!=null&&xt>=xt){ht=zt=xt;break}for(;++Ye<ut;)(xt=Le.call(pe,pe[Ye],Ye))!=null&&(ht>xt&&(ht=xt),zt<xt&&(zt=xt))}return[ht,zt]};function c(pe){return pe===null?NaN:+pe}function f(pe){return!isNaN(pe)}d.sum=function(pe,Le){var Ye=0,ut=pe.length,ht,xt=-1;if(arguments.length===1)for(;++xt<ut;)f(ht=+pe[xt])&&(Ye+=ht);else for(;++xt<ut;)f(ht=+Le.call(pe,pe[xt],xt))&&(Ye+=ht);return Ye},d.mean=function(pe,Le){var Ye=0,ut=pe.length,ht,xt=-1,zt=ut;if(arguments.length===1)for(;++xt<ut;)f(ht=c(pe[xt]))?Ye+=ht:--zt;else for(;++xt<ut;)f(ht=c(Le.call(pe,pe[xt],xt)))?Ye+=ht:--zt;if(zt)return Ye/zt},d.quantile=function(pe,Le){var Ye=(pe.length-1)*Le+1,ut=Math.floor(Ye),ht=+pe[ut-1],xt=Ye-ut;return xt?ht+xt*(pe[ut]-ht):ht},d.median=function(pe,Le){var Ye=[],ut=pe.length,ht,xt=-1;if(arguments.length===1)for(;++xt<ut;)f(ht=c(pe[xt]))&&Ye.push(ht);else for(;++xt<ut;)f(ht=c(Le.call(pe,pe[xt],xt)))&&Ye.push(ht);if(Ye.length)return d.quantile(Ye.sort(s),.5)},d.variance=function(pe,Le){var Ye=pe.length,ut=0,ht,xt,zt=0,Dt=-1,$t=0;if(arguments.length===1)for(;++Dt<Ye;)f(ht=c(pe[Dt]))&&(xt=ht-ut,ut+=xt/++$t,zt+=xt*(ht-ut));else for(;++Dt<Ye;)f(ht=c(Le.call(pe,pe[Dt],Dt)))&&(xt=ht-ut,ut+=xt/++$t,zt+=xt*(ht-ut));if($t>1)return zt/($t-1)},d.deviation=function(){var pe=d.variance.apply(this,arguments);return pe&&Math.sqrt(pe)};function v(pe){return{left:function(Le,Ye,ut,ht){for(arguments.length<3&&(ut=0),arguments.length<4&&(ht=Le.length);ut<ht;){var xt=ut+ht>>>1;pe(Le[xt],Ye)<0?ut=xt+1:ht=xt}return ut},right:function(Le,Ye,ut,ht){for(arguments.length<3&&(ut=0),arguments.length<4&&(ht=Le.length);ut<ht;){var xt=ut+ht>>>1;pe(Le[xt],Ye)>0?ht=xt:ut=xt+1}return ut}}}var h=v(s);d.bisectLeft=h.left,d.bisect=d.bisectRight=h.right,d.bisector=function(pe){return v(pe.length===1?function(Le,Ye){return s(pe(Le),Ye)}:pe)},d.shuffle=function(pe,Le,Ye){(ut=arguments.length)<3&&(Ye=pe.length,ut<2&&(Le=0));for(var ut=Ye-Le,ht,xt;ut;)xt=Math.random()*ut--|0,ht=pe[ut+Le],pe[ut+Le]=pe[xt+Le],pe[xt+Le]=ht;return pe},d.permute=function(pe,Le){for(var Ye=Le.length,ut=new Array(Ye);Ye--;)ut[Ye]=pe[Le[Ye]];return ut},d.pairs=function(pe){for(var Le=0,Ye=pe.length-1,ut=pe[0],ht=new Array(Ye<0?0:Ye);Le<Ye;)ht[Le]=[ut,ut=pe[++Le]];return ht},d.transpose=function(pe){if(!(xt=pe.length))return[];for(var Le=-1,Ye=d.min(pe,T),ut=new Array(Ye);++Le<Ye;)for(var ht=-1,xt,zt=ut[Le]=new Array(xt);++ht<xt;)zt[ht]=pe[ht][Le];return ut};function T(pe){return pe.length}d.zip=function(){return d.transpose(arguments)},d.keys=function(pe){var Le=[];for(var Ye in pe)Le.push(Ye);return Le},d.values=function(pe){var Le=[];for(var Ye in pe)Le.push(pe[Ye]);return Le},d.entries=function(pe){var Le=[];for(var Ye in pe)Le.push({key:Ye,value:pe[Ye]});return Le},d.merge=function(pe){for(var Le=pe.length,Ye,ut=-1,ht=0,xt,zt;++ut<Le;)ht+=pe[ut].length;for(xt=new Array(ht);--Le>=0;)for(zt=pe[Le],Ye=zt.length;--Ye>=0;)xt[--ht]=zt[Ye];return xt};var l=Math.abs;d.range=function(pe,Le,Ye){if(arguments.length<3&&(Ye=1,arguments.length<2&&(Le=pe,pe=0)),(Le-pe)/Ye===1/0)throw new Error("infinite range");var ut=[],ht=y(l(Ye)),xt=-1,zt;if(pe*=ht,Le*=ht,Ye*=ht,Ye<0)for(;(zt=pe+Ye*++xt)>Le;)ut.push(zt/ht);else for(;(zt=pe+Ye*++xt)<Le;)ut.push(zt/ht);return ut};function y(pe){for(var Le=1;pe*Le%1;)Le*=10;return Le}function b(pe,Le){for(var Ye in Le)Object.defineProperty(pe.prototype,Ye,{value:Le[Ye],enumerable:!1})}d.map=function(pe,Le){var Ye=new S;if(pe instanceof S)pe.forEach(function(Dt,$t){Ye.set(Dt,$t)});else if(Array.isArray(pe)){var ut=-1,ht=pe.length,xt;if(arguments.length===1)for(;++ut<ht;)Ye.set(ut,pe[ut]);else for(;++ut<ht;)Ye.set(Le.call(pe,xt=pe[ut],ut),xt)}else for(var zt in pe)Ye.set(zt,pe[zt]);return Ye};function S(){this._=Object.create(null)}var M="__proto__",_="\0";b(S,{has:u,get:function(pe){return this._[w(pe)]},set:function(pe,Le){return this._[w(pe)]=Le},remove:g,keys:m,values:function(){var pe=[];for(var Le in this._)pe.push(this._[Le]);return pe},entries:function(){var pe=[];for(var Le in this._)pe.push({key:p(Le),value:this._[Le]});return pe},size:R,empty:P,forEach:function(pe){for(var Le in this._)pe.call(this,p(Le),this._[Le])}});function w(pe){return(pe+="")===M||pe[0]===_?_+pe:pe}function p(pe){return(pe+="")[0]===_?pe.slice(1):pe}function u(pe){return w(pe)in this._}function g(pe){return(pe=w(pe))in this._&&delete this._[pe]}function m(){var pe=[];for(var Le in this._)pe.push(p(Le));return pe}function R(){var pe=0;for(var Le in this._)++pe;return pe}function P(){for(var pe in this._)return!1;return!0}d.nest=function(){var pe={},Le=[],Ye=[],ut,ht;function xt(Dt,$t,Cr){if(Cr>=Le.length)return ht?ht.call(pe,$t):ut?$t.sort(ut):$t;for(var Ar=-1,Vr=$t.length,Kr=Le[Cr++],aa,ja,la,Ta=new S,ka;++Ar<Vr;)(ka=Ta.get(aa=Kr(ja=$t[Ar])))?ka.push(ja):Ta.set(aa,[ja]);return Dt?(ja=Dt(),la=function(Na,qa){ja.set(Na,xt(Dt,qa,Cr))}):(ja={},la=function(Na,qa){ja[Na]=xt(Dt,qa,Cr)}),Ta.forEach(la),ja}function zt(Dt,$t){if($t>=Le.length)return Dt;var Cr=[],Ar=Ye[$t++];return Dt.forEach(function(Vr,Kr){Cr.push({key:Vr,values:zt(Kr,$t)})}),Ar?Cr.sort(function(Vr,Kr){return Ar(Vr.key,Kr.key)}):Cr}return pe.map=function(Dt,$t){return xt($t,Dt,0)},pe.entries=function(Dt){return zt(xt(d.map,Dt,0),0)},pe.key=function(Dt){return Le.push(Dt),pe},pe.sortKeys=function(Dt){return Ye[Le.length-1]=Dt,pe},pe.sortValues=function(Dt){return ut=Dt,pe},pe.rollup=function(Dt){return ht=Dt,pe},pe},d.set=function(pe){var Le=new z;if(pe)for(var Ye=0,ut=pe.length;Ye<ut;++Ye)Le.add(pe[Ye]);return Le};function z(){this._=Object.create(null)}b(z,{has:u,add:function(pe){return this._[w(pe+="")]=!0,pe},remove:g,values:m,size:R,empty:P,forEach:function(pe){for(var Le in this._)pe.call(this,p(Le))}}),d.behavior={};function F(pe){return pe}d.rebind=function(pe,Le){for(var Ye=1,ut=arguments.length,ht;++Ye<ut;)pe[ht=arguments[Ye]]=B(pe,Le,Le[ht]);return pe};function B(pe,Le,Ye){return function(){var ut=Ye.apply(Le,arguments);return ut===Le?pe:ut}}function O(pe,Le){if(Le in pe)return Le;Le=Le.charAt(0).toUpperCase()+Le.slice(1);for(var Ye=0,ut=L.length;Ye<ut;++Ye){var ht=L[Ye]+Le;if(ht in pe)return ht}}var L=["webkit","ms","moz","Moz","o","O"];function N(){}d.dispatch=function(){for(var pe=new U,Le=-1,Ye=arguments.length;++Le<Ye;)pe[arguments[Le]]=Z(pe);return pe};function U(){}U.prototype.on=function(pe,Le){var Ye=pe.indexOf("."),ut="";if(Ye>=0&&(ut=pe.slice(Ye+1),pe=pe.slice(0,Ye)),pe)return arguments.length<2?this[pe].on(ut):this[pe].on(ut,Le);if(arguments.length===2){if(Le==null)for(pe in this)this.hasOwnProperty(pe)&&this[pe].on(ut,null);return this}};function Z(pe){var Le=[],Ye=new S;function ut(){for(var ht=Le,xt=-1,zt=ht.length,Dt;++xt<zt;)(Dt=ht[xt].on)&&Dt.apply(this,arguments);return pe}return ut.on=function(ht,xt){var zt=Ye.get(ht),Dt;return arguments.length<2?zt&&zt.on:(zt&&(zt.on=null,Le=Le.slice(0,Dt=Le.indexOf(zt)).concat(Le.slice(Dt+1)),Ye.remove(ht)),xt&&Le.push(Ye.set(ht,{on:xt})),pe)},ut}d.event=null;function Q(){d.event.preventDefault()}function ue(){for(var pe=d.event,Le;Le=pe.sourceEvent;)pe=Le;return pe}function oe(pe){for(var Le=new U,Ye=0,ut=arguments.length;++Ye<ut;)Le[arguments[Ye]]=Z(Le);return Le.of=function(ht,xt){return function(zt){try{var Dt=zt.sourceEvent=d.event;zt.target=pe,d.event=zt,Le[zt.type].apply(ht,xt)}finally{d.event=Dt}}},Le}d.requote=function(pe){return pe.replace(le,"\\$&")};var le=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,j={}.__proto__?function(pe,Le){pe.__proto__=Le}:function(pe,Le){for(var Ye in Le)pe[Ye]=Le[Ye]};function J(pe){return j(pe,ee),pe}var $=function(pe,Le){return Le.querySelector(pe)},X=function(pe,Le){return Le.querySelectorAll(pe)},re=function(pe,Le){var Ye=pe.matches||pe[O(pe,"matchesSelector")];return re=function(ut,ht){return Ye.call(ut,ht)},re(pe,Le)};typeof Sizzle=="function"&&($=function(pe,Le){return Sizzle(pe,Le)[0]||null},X=Sizzle,re=Sizzle.matchesSelector),d.selection=function(){return d.select(E.documentElement)};var ee=d.selection.prototype=[];ee.select=function(pe){var Le=[],Ye,ut,ht,xt;pe=q(pe);for(var zt=-1,Dt=this.length;++zt<Dt;){Le.push(Ye=[]),Ye.parentNode=(ht=this[zt]).parentNode;for(var $t=-1,Cr=ht.length;++$t<Cr;)(xt=ht[$t])?(Ye.push(ut=pe.call(xt,xt.__data__,$t,zt)),ut&&"__data__"in xt&&(ut.__data__=xt.__data__)):Ye.push(null)}return J(Le)};function q(pe){return typeof pe=="function"?pe:function(){return $(pe,this)}}ee.selectAll=function(pe){var Le=[],Ye,ut;pe=ae(pe);for(var ht=-1,xt=this.length;++ht<xt;)for(var zt=this[ht],Dt=-1,$t=zt.length;++Dt<$t;)(ut=zt[Dt])&&(Le.push(Ye=A(pe.call(ut,ut.__data__,Dt,ht))),Ye.parentNode=ut);return J(Le)};function ae(pe){return typeof pe=="function"?pe:function(){return X(pe,this)}}var ie="http://www.w3.org/1999/xhtml",fe={svg:"http://www.w3.org/2000/svg",xhtml:ie,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};d.ns={prefix:fe,qualify:function(pe){var Le=pe.indexOf(":"),Ye=pe;return Le>=0&&(Ye=pe.slice(0,Le))!=="xmlns"&&(pe=pe.slice(Le+1)),fe.hasOwnProperty(Ye)?{space:fe[Ye],local:pe}:pe}},ee.attr=function(pe,Le){if(arguments.length<2){if(typeof pe=="string"){var Ye=this.node();return pe=d.ns.qualify(pe),pe.local?Ye.getAttributeNS(pe.space,pe.local):Ye.getAttribute(pe)}for(Le in pe)this.each(we(Le,pe[Le]));return this}return this.each(we(pe,Le))};function we(pe,Le){pe=d.ns.qualify(pe);function Ye(){this.removeAttribute(pe)}function ut(){this.removeAttributeNS(pe.space,pe.local)}function ht(){this.setAttribute(pe,Le)}function xt(){this.setAttributeNS(pe.space,pe.local,Le)}function zt(){var $t=Le.apply(this,arguments);$t==null?this.removeAttribute(pe):this.setAttribute(pe,$t)}function Dt(){var $t=Le.apply(this,arguments);$t==null?this.removeAttributeNS(pe.space,pe.local):this.setAttributeNS(pe.space,pe.local,$t)}return Le==null?pe.local?ut:Ye:typeof Le=="function"?pe.local?Dt:zt:pe.local?xt:ht}function Ae(pe){return pe.trim().replace(/\s+/g," ")}ee.classed=function(pe,Le){if(arguments.length<2){if(typeof pe=="string"){var Ye=this.node(),ut=(pe=Ce(pe)).length,ht=-1;if(Le=Ye.classList){for(;++ht<ut;)if(!Le.contains(pe[ht]))return!1}else for(Le=Ye.getAttribute("class");++ht<ut;)if(!Fe(pe[ht]).test(Le))return!1;return!0}for(Le in pe)this.each(qe(Le,pe[Le]));return this}return this.each(qe(pe,Le))};function Fe(pe){return new RegExp("(?:^|\\s+)"+d.requote(pe)+"(?:\\s+|$)","g")}function Ce(pe){return(pe+"").trim().split(/^|\s+/)}function qe(pe,Le){pe=Ce(pe).map(et);var Ye=pe.length;function ut(){for(var xt=-1;++xt<Ye;)pe[xt](this,Le)}function ht(){for(var xt=-1,zt=Le.apply(this,arguments);++xt<Ye;)pe[xt](this,zt)}return typeof Le=="function"?ht:ut}function et(pe){var Le=Fe(pe);return function(Ye,ut){if(ht=Ye.classList)return ut?ht.add(pe):ht.remove(pe);var ht=Ye.getAttribute("class")||"";ut?(Le.lastIndex=0,Le.test(ht)||Ye.setAttribute("class",Ae(ht+" "+pe))):Ye.setAttribute("class",Ae(ht.replace(Le," ")))}}ee.style=function(pe,Le,Ye){var ut=arguments.length;if(ut<3){if(typeof pe!="string"){ut<2&&(Le="");for(Ye in pe)this.each(Qe(Ye,pe[Ye],Le));return this}if(ut<2){var ht=this.node();return t(ht).getComputedStyle(ht,null).getPropertyValue(pe)}Ye=""}return this.each(Qe(pe,Le,Ye))};function Qe(pe,Le,Ye){function ut(){this.style.removeProperty(pe)}function ht(){this.style.setProperty(pe,Le,Ye)}function xt(){var zt=Le.apply(this,arguments);zt==null?this.style.removeProperty(pe):this.style.setProperty(pe,zt,Ye)}return Le==null?ut:typeof Le=="function"?xt:ht}ee.property=function(pe,Le){if(arguments.length<2){if(typeof pe=="string")return this.node()[pe];for(Le in pe)this.each(Ke(Le,pe[Le]));return this}return this.each(Ke(pe,Le))};function Ke(pe,Le){function Ye(){delete this[pe]}function ut(){this[pe]=Le}function ht(){var xt=Le.apply(this,arguments);xt==null?delete this[pe]:this[pe]=xt}return Le==null?Ye:typeof Le=="function"?ht:ut}ee.text=function(pe){return arguments.length?this.each(typeof pe=="function"?function(){var Le=pe.apply(this,arguments);this.textContent=Le??""}:pe==null?function(){this.textContent=""}:function(){this.textContent=pe}):this.node().textContent},ee.html=function(pe){return arguments.length?this.each(typeof pe=="function"?function(){var Le=pe.apply(this,arguments);this.innerHTML=Le??""}:pe==null?function(){this.innerHTML=""}:function(){this.innerHTML=pe}):this.node().innerHTML},ee.append=function(pe){return pe=Xe(pe),this.select(function(){return this.appendChild(pe.apply(this,arguments))})};function Xe(pe){function Le(){var ut=this.ownerDocument,ht=this.namespaceURI;return ht===ie&&ut.documentElement.namespaceURI===ie?ut.createElement(pe):ut.createElementNS(ht,pe)}function Ye(){return this.ownerDocument.createElementNS(pe.space,pe.local)}return typeof pe=="function"?pe:(pe=d.ns.qualify(pe)).local?Ye:Le}ee.insert=function(pe,Le){return pe=Xe(pe),Le=q(Le),this.select(function(){return this.insertBefore(pe.apply(this,arguments),Le.apply(this,arguments)||null)})},ee.remove=function(){return this.each(Me)};function Me(){var pe=this.parentNode;pe&&pe.removeChild(this)}ee.data=function(pe,Le){var Ye=-1,ut=this.length,ht,xt;if(!arguments.length){for(pe=new Array(ut=(ht=this[0]).length);++Ye<ut;)(xt=ht[Ye])&&(pe[Ye]=xt.__data__);return pe}function zt(Ar,Vr){var Kr,aa=Ar.length,ja=Vr.length,la=Math.min(aa,ja),Ta=new Array(ja),ka=new Array(ja),Na=new Array(aa),qa,Ma;if(Le){var _n=new S,Zn=new Array(aa),Vn;for(Kr=-1;++Kr<aa;)(qa=Ar[Kr])&&(_n.has(Vn=Le.call(qa,qa.__data__,Kr))?Na[Kr]=qa:_n.set(Vn,qa),Zn[Kr]=Vn);for(Kr=-1;++Kr<ja;)(qa=_n.get(Vn=Le.call(Vr,Ma=Vr[Kr],Kr)))?qa!==!0&&(Ta[Kr]=qa,qa.__data__=Ma):ka[Kr]=xe(Ma),_n.set(Vn,!0);for(Kr=-1;++Kr<aa;)Kr in Zn&&_n.get(Zn[Kr])!==!0&&(Na[Kr]=Ar[Kr])}else{for(Kr=-1;++Kr<la;)qa=Ar[Kr],Ma=Vr[Kr],qa?(qa.__data__=Ma,Ta[Kr]=qa):ka[Kr]=xe(Ma);for(;Kr<ja;++Kr)ka[Kr]=xe(Vr[Kr]);for(;Kr<aa;++Kr)Na[Kr]=Ar[Kr]}ka.update=Ta,ka.parentNode=Ta.parentNode=Na.parentNode=Ar.parentNode,Dt.push(ka),$t.push(Ta),Cr.push(Na)}var Dt=rt([]),$t=J([]),Cr=J([]);if(typeof pe=="function")for(;++Ye<ut;)zt(ht=this[Ye],pe.call(ht,ht.parentNode.__data__,Ye));else for(;++Ye<ut;)zt(ht=this[Ye],pe);return $t.enter=function(){return Dt},$t.exit=function(){return Cr},$t};function xe(pe){return{__data__:pe}}ee.datum=function(pe){return arguments.length?this.property("__data__",pe):this.property("__data__")},ee.filter=function(pe){var Le=[],Ye,ut,ht;typeof pe!="function"&&(pe=ce(pe));for(var xt=0,zt=this.length;xt<zt;xt++){Le.push(Ye=[]),Ye.parentNode=(ut=this[xt]).parentNode;for(var Dt=0,$t=ut.length;Dt<$t;Dt++)(ht=ut[Dt])&&pe.call(ht,ht.__data__,Dt,xt)&&Ye.push(ht)}return J(Le)};function ce(pe){return function(){return re(this,pe)}}ee.order=function(){for(var pe=-1,Le=this.length;++pe<Le;)for(var Ye=this[pe],ut=Ye.length-1,ht=Ye[ut],xt;--ut>=0;)(xt=Ye[ut])&&(ht&&ht!==xt.nextSibling&&ht.parentNode.insertBefore(xt,ht),ht=xt);return this},ee.sort=function(pe){pe=Re.apply(this,arguments);for(var Le=-1,Ye=this.length;++Le<Ye;)this[Le].sort(pe);return this.order()};function Re(pe){return arguments.length||(pe=s),function(Le,Ye){return Le&&Ye?pe(Le.__data__,Ye.__data__):!Le-!Ye}}ee.each=function(pe){return $e(this,function(Le,Ye,ut){pe.call(Le,Le.__data__,Ye,ut)})};function $e(pe,Le){for(var Ye=0,ut=pe.length;Ye<ut;Ye++)for(var ht=pe[Ye],xt=0,zt=ht.length,Dt;xt<zt;xt++)(Dt=ht[xt])&&Le(Dt,xt,Ye);return pe}ee.call=function(pe){var Le=A(arguments);return pe.apply(Le[0]=this,Le),this},ee.empty=function(){return!this.node()},ee.node=function(){for(var pe=0,Le=this.length;pe<Le;pe++)for(var Ye=this[pe],ut=0,ht=Ye.length;ut<ht;ut++){var xt=Ye[ut];if(xt)return xt}return null},ee.size=function(){var pe=0;return $e(this,function(){++pe}),pe};function rt(pe){return j(pe,Je),pe}var Je=[];d.selection.enter=rt,d.selection.enter.prototype=Je,Je.append=ee.append,Je.empty=ee.empty,Je.node=ee.node,Je.call=ee.call,Je.size=ee.size,Je.select=function(pe){for(var Le=[],Ye,ut,ht,xt,zt,Dt=-1,$t=this.length;++Dt<$t;){ht=(xt=this[Dt]).update,Le.push(Ye=[]),Ye.parentNode=xt.parentNode;for(var Cr=-1,Ar=xt.length;++Cr<Ar;)(zt=xt[Cr])?(Ye.push(ht[Cr]=ut=pe.call(xt.parentNode,zt.__data__,Cr,Dt)),ut.__data__=zt.__data__):Ye.push(null)}return J(Le)},Je.insert=function(pe,Le){return arguments.length<2&&(Le=At(this)),ee.insert.call(this,pe,Le)};function At(pe){var Le,Ye;return function(ut,ht,xt){var zt=pe[xt].update,Dt=zt.length,$t;for(xt!=Ye&&(Ye=xt,Le=0),ht>=Le&&(Le=ht+1);!($t=zt[Le])&&++Le<Dt;);return $t}}d.select=function(pe){var Le;return typeof pe=="string"?(Le=[$(pe,E)],Le.parentNode=E.documentElement):(Le=[pe],Le.parentNode=e(pe)),J([Le])},d.selectAll=function(pe){var Le;return typeof pe=="string"?(Le=A(X(pe,E)),Le.parentNode=E.documentElement):(Le=A(pe),Le.parentNode=null),J([Le])},ee.on=function(pe,Le,Ye){var ut=arguments.length;if(ut<3){if(typeof pe!="string"){ut<2&&(Le=!1);for(Ye in pe)this.each(St(Ye,pe[Ye],Le));return this}if(ut<2)return(ut=this.node()["__on"+pe])&&ut._;Ye=!1}return this.each(St(pe,Le,Ye))};function St(pe,Le,Ye){var ut="__on"+pe,ht=pe.indexOf("."),xt=Ut;ht>0&&(pe=pe.slice(0,ht));var zt=Rt.get(pe);zt&&(pe=zt,xt=ir);function Dt(){var Ar=this[ut];Ar&&(this.removeEventListener(pe,Ar,Ar.$),delete this[ut])}function $t(){var Ar=xt(Le,A(arguments));Dt.call(this),this.addEventListener(pe,this[ut]=Ar,Ar.$=Ye),Ar._=Le}function Cr(){var Ar=new RegExp("^__on([^.]+)"+d.requote(pe)+"$"),Vr;for(var Kr in this)if(Vr=Kr.match(Ar)){var aa=this[Kr];this.removeEventListener(Vr[1],aa,aa.$),delete this[Kr]}}return ht?Le?$t:Dt:Le?N:Cr}var Rt=d.map({mouseenter:"mouseover",mouseleave:"mouseout"});E&&Rt.forEach(function(pe){"on"+pe in E&&Rt.remove(pe)});function Ut(pe,Le){return function(Ye){var ut=d.event;d.event=Ye,Le[0]=this.__data__;try{pe.apply(this,Le)}finally{d.event=ut}}}function ir(pe,Le){var Ye=Ut(pe,Le);return function(ut){var ht=this,xt=ut.relatedTarget;(!xt||xt!==ht&&!(xt.compareDocumentPosition(ht)&8))&&Ye.call(ht,ut)}}var ar,Mr=0;function fr(pe){var Le=".dragsuppress-"+ ++Mr,Ye="click"+Le,ut=d.select(t(pe)).on("touchmove"+Le,Q).on("dragstart"+Le,Q).on("selectstart"+Le,Q);if(ar==null&&(ar="onselectstart"in pe?!1:O(pe.style,"userSelect")),ar){var ht=e(pe).style,xt=ht[ar];ht[ar]="none"}return function(zt){if(ut.on(Le,null),ar&&(ht[ar]=xt),zt){var Dt=function(){ut.on(Ye,null)};ut.on(Ye,function(){Q(),Dt()},!0),setTimeout(Dt,0)}}}d.mouse=function(pe){return pt(pe,ue())};var dr=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function pt(pe,Le){Le.changedTouches&&(Le=Le.changedTouches[0]);var Ye=pe.ownerSVGElement||pe;if(Ye.createSVGPoint){var ut=Ye.createSVGPoint();if(dr<0){var ht=t(pe);if(ht.scrollX||ht.scrollY){Ye=d.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var xt=Ye[0][0].getScreenCTM();dr=!(xt.f||xt.e),Ye.remove()}}return dr?(ut.x=Le.pageX,ut.y=Le.pageY):(ut.x=Le.clientX,ut.y=Le.clientY),ut=ut.matrixTransform(pe.getScreenCTM().inverse()),[ut.x,ut.y]}var zt=pe.getBoundingClientRect();return[Le.clientX-zt.left-pe.clientLeft,Le.clientY-zt.top-pe.clientTop]}d.touch=function(pe,Le,Ye){if(arguments.length<3&&(Ye=Le,Le=ue().changedTouches),Le){for(var ut=0,ht=Le.length,xt;ut<ht;++ut)if((xt=Le[ut]).identifier===Ye)return pt(pe,xt)}},d.behavior.drag=function(){var pe=oe(ht,"drag","dragstart","dragend"),Le=null,Ye=xt(N,d.mouse,t,"mousemove","mouseup"),ut=xt(ze,d.touch,F,"touchmove","touchend");function ht(){this.on("mousedown.drag",Ye).on("touchstart.drag",ut)}function xt(zt,Dt,$t,Cr,Ar){return function(){var Vr=this,Kr=d.event.target.correspondingElement||d.event.target,aa=Vr.parentNode,ja=pe.of(Vr,arguments),la=0,Ta=zt(),ka=".drag"+(Ta==null?"":"-"+Ta),Na,qa=d.select($t(Kr)).on(Cr+ka,Zn).on(Ar+ka,Vn),Ma=fr(Kr),_n=Dt(aa,Ta);Le?(Na=Le.apply(Vr,arguments),Na=[Na.x-_n[0],Na.y-_n[1]]):Na=[0,0],ja({type:"dragstart"});function Zn(){var Xn=Dt(aa,Ta),vi,bi;Xn&&(vi=Xn[0]-_n[0],bi=Xn[1]-_n[1],la|=vi|bi,_n=Xn,ja({type:"drag",x:Xn[0]+Na[0],y:Xn[1]+Na[1],dx:vi,dy:bi}))}function Vn(){Dt(aa,Ta)&&(qa.on(Cr+ka,null).on(Ar+ka,null),Ma(la),ja({type:"dragend"}))}}}return ht.origin=function(zt){return arguments.length?(Le=zt,ht):Le},d.rebind(ht,pe,"on")};function ze(){return d.event.changedTouches[0].identifier}d.touches=function(pe,Le){return arguments.length<2&&(Le=ue().touches),Le?A(Le).map(function(Ye){var ut=pt(pe,Ye);return ut.identifier=Ye.identifier,ut}):[]};var Ge=1e-6,Oe=Ge*Ge,ve=Math.PI,ye=2*ve,be=ye-Ge,Pe=ve/2,We=ve/180,ct=180/ve;function _t(pe,Le,Ye){return(Le[0]-pe[0])*(Ye[1]-pe[1])-(Le[1]-pe[1])*(Ye[0]-pe[0])}function Mt(pe){return pe>1?Pe:pe<-1?-Pe:Math.asin(pe)}function Nt(pe){return((pe=Math.exp(pe))-1/pe)/2}function Bt(pe){return((pe=Math.exp(pe))+1/pe)/2}function qt(pe){return((pe=Math.exp(2*pe))-1)/(pe+1)}var Zt=Math.SQRT2,lr=2,ta=4;d.interpolateZoom=function(pe,Le){var Ye=pe[0],ut=pe[1],ht=pe[2],xt=Le[0],zt=Le[1],Dt=Le[2],$t=xt-Ye,Cr=zt-ut,Ar=$t*$t+Cr*Cr,Vr,Kr;if(Ar<Oe)Kr=Math.log(Dt/ht)/Zt,Vr=function(Na){return[Ye+Na*$t,ut+Na*Cr,ht*Math.exp(Zt*Na*Kr)]};else{var aa=Math.sqrt(Ar),ja=(Dt*Dt-ht*ht+ta*Ar)/(2*ht*lr*aa),la=(Dt*Dt-ht*ht-ta*Ar)/(2*Dt*lr*aa),Ta=Math.log(Math.sqrt(ja*ja+1)-ja),ka=Math.log(Math.sqrt(la*la+1)-la);Kr=(ka-Ta)/Zt,Vr=function(Na){var qa=Na*Kr,Ma=Bt(Ta),_n=ht/(lr*aa)*(Ma*qt(Zt*qa+Ta)-Nt(Ta));return[Ye+_n*$t,ut+_n*Cr,ht*Ma/Bt(Zt*qa+Ta)]}}return Vr.duration=Kr*1e3,Vr},d.behavior.zoom=function(){var pe={x:0,y:0,k:1},Le,Ye,ut,ht=[960,500],xt=da,zt=250,Dt=0,$t="mousedown.zoom",Cr="mousemove.zoom",Ar="mouseup.zoom",Vr,Kr="touchstart.zoom",aa,ja=oe(qa,"zoomstart","zoom","zoomend"),la,Ta,ka,Na;ma||(ma="onwheel"in E?(wa=function(){return-d.event.deltaY*(d.event.deltaMode?120:1)},"wheel"):"onmousewheel"in E?(wa=function(){return d.event.wheelDelta},"mousewheel"):(wa=function(){return-d.event.detail},"MozMousePixelScroll"));function qa($n){$n.on($t,to).on(ma+".zoom",fl).on("dblclick.zoom",Is).on(Kr,Wo)}qa.event=function($n){$n.each(function(){var mo=ja.of(this,arguments),Bo=pe;yi?d.select(this).transition().each("start.zoom",function(){pe=this.__chart__||{x:0,y:0,k:1},bi(mo)}).tween("zoom:zoom",function(){var Rs=ht[0],ms=ht[1],$l=Ye?Ye[0]:Rs/2,as=Ye?Ye[1]:ms/2,Ss=d.interpolateZoom([($l-pe.x)/pe.k,(as-pe.y)/pe.k,Rs/pe.k],[($l-Bo.x)/Bo.k,(as-Bo.y)/Bo.k,Rs/Bo.k]);return function(Au){var nl=Ss(Au),cr=Rs/nl[2];this.__chart__=pe={x:$l-nl[0]*cr,y:as-nl[1]*cr,k:cr},Ro(mo)}}).each("interrupt.zoom",function(){Ai(mo)}).each("end.zoom",function(){Ai(mo)}):(this.__chart__=pe,bi(mo),Ro(mo),Ai(mo))})},qa.translate=function($n){return arguments.length?(pe={x:+$n[0],y:+$n[1],k:pe.k},vi(),qa):[pe.x,pe.y]},qa.scale=function($n){return arguments.length?(pe={x:pe.x,y:pe.y,k:null},Zn(+$n),vi(),qa):pe.k},qa.scaleExtent=function($n){return arguments.length?(xt=$n==null?da:[+$n[0],+$n[1]],qa):xt},qa.center=function($n){return arguments.length?(ut=$n&&[+$n[0],+$n[1]],qa):ut},qa.size=function($n){return arguments.length?(ht=$n&&[+$n[0],+$n[1]],qa):ht},qa.duration=function($n){return arguments.length?(zt=+$n,qa):zt},qa.x=function($n){return arguments.length?(Ta=$n,la=$n.copy(),pe={x:0,y:0,k:1},qa):Ta},qa.y=function($n){return arguments.length?(Na=$n,ka=$n.copy(),pe={x:0,y:0,k:1},qa):Na};function Ma($n){return[($n[0]-pe.x)/pe.k,($n[1]-pe.y)/pe.k]}function _n($n){return[$n[0]*pe.k+pe.x,$n[1]*pe.k+pe.y]}function Zn($n){pe.k=Math.max(xt[0],Math.min(xt[1],$n))}function Vn($n,mo){mo=_n(mo),pe.x+=$n[0]-mo[0],pe.y+=$n[1]-mo[1]}function Xn($n,mo,Bo,Rs){$n.__chart__={x:pe.x,y:pe.y,k:pe.k},Zn(Math.pow(2,Rs)),Vn(Ye=mo,Bo),$n=d.select($n),zt>0&&($n=$n.transition().duration(zt)),$n.call(qa.event)}function vi(){Ta&&Ta.domain(la.range().map(function($n){return($n-pe.x)/pe.k}).map(la.invert)),Na&&Na.domain(ka.range().map(function($n){return($n-pe.y)/pe.k}).map(ka.invert))}function bi($n){Dt++||$n({type:"zoomstart"})}function Ro($n){vi(),$n({type:"zoom",scale:pe.k,translate:[pe.x,pe.y]})}function Ai($n){--Dt||($n({type:"zoomend"}),Ye=null)}function to(){var $n=this,mo=ja.of($n,arguments),Bo=0,Rs=d.select(t($n)).on(Cr,as).on(Ar,Ss),ms=Ma(d.mouse($n)),$l=fr($n);Fa.call($n),bi(mo);function as(){Bo=1,Vn(d.mouse($n),ms),Ro(mo)}function Ss(){Rs.on(Cr,null).on(Ar,null),$l(Bo),Ai(mo)}}function Wo(){var $n=this,mo=ja.of($n,arguments),Bo={},Rs=0,ms,$l=".zoom-"+d.event.changedTouches[0].identifier,as="touchmove"+$l,Ss="touchend"+$l,Au=[],nl=d.select($n),cr=fr($n);xa(),bi(mo),nl.on($t,null).on(Kr,xa);function fa(){var Da=d.touches($n);return ms=pe.k,Da.forEach(function(Ua){Ua.identifier in Bo&&(Bo[Ua.identifier]=Ma(Ua))}),Da}function xa(){var Da=d.event.target;d.select(Da).on(as,fn).on(Ss,Rn),Au.push(Da);for(var Ua=d.event.changedTouches,Gn=0,jn=Ua.length;Gn<jn;++Gn)Bo[Ua[Gn].identifier]=null;var Wn=fa(),ri=Date.now();if(Wn.length===1){if(ri-aa<500){var Ki=Wn[0];Xn($n,Ki,Bo[Ki.identifier],Math.floor(Math.log(pe.k)/Math.LN2)+1),Q()}aa=ri}else if(Wn.length>1){var Ki=Wn[0],Si=Wn[1],ui=Ki[0]-Si[0],On=Ki[1]-Si[1];Rs=ui*ui+On*On}}function fn(){var Da=d.touches($n),Ua,Gn,jn,Wn;Fa.call($n);for(var ri=0,Ki=Da.length;ri<Ki;++ri,Wn=null)if(jn=Da[ri],Wn=Bo[jn.identifier]){if(Gn)break;Ua=jn,Gn=Wn}if(Wn){var Si=(Si=jn[0]-Ua[0])*Si+(Si=jn[1]-Ua[1])*Si,ui=Rs&&Math.sqrt(Si/Rs);Ua=[(Ua[0]+jn[0])/2,(Ua[1]+jn[1])/2],Gn=[(Gn[0]+Wn[0])/2,(Gn[1]+Wn[1])/2],Zn(ui*ms)}aa=null,Vn(Ua,Gn),Ro(mo)}function Rn(){if(d.event.touches.length){for(var Da=d.event.changedTouches,Ua=0,Gn=Da.length;Ua<Gn;++Ua)delete Bo[Da[Ua].identifier];for(var jn in Bo)return void fa()}d.selectAll(Au).on($l,null),nl.on($t,to).on(Kr,Wo),cr(),Ai(mo)}}function fl(){var $n=ja.of(this,arguments);Vr?clearTimeout(Vr):(Fa.call(this),Le=Ma(Ye=ut||d.mouse(this)),bi($n)),Vr=setTimeout(function(){Vr=null,Ai($n)},50),Q(),Zn(Math.pow(2,wa()*.002)*pe.k),Vn(Ye,Le),Ro($n)}function Is(){var $n=d.mouse(this),mo=Math.log(pe.k)/Math.LN2;Xn(this,$n,Ma($n),d.event.shiftKey?Math.ceil(mo)-1:Math.floor(mo)+1)}return d.rebind(qa,ja,"on")};var da=[0,1/0],wa,ma;d.color=Ia;function Ia(){}Ia.prototype.toString=function(){return this.rgb()+""},d.hsl=va;function va(pe,Le,Ye){return this instanceof va?(this.h=+pe,this.s=+Le,void(this.l=+Ye)):arguments.length<2?pe instanceof va?new va(pe.h,pe.s,pe.l):kr(""+pe,zr,va):new va(pe,Le,Ye)}var La=va.prototype=new Ia;La.brighter=function(pe){return pe=Math.pow(.7,arguments.length?pe:1),new va(this.h,this.s,this.l/pe)},La.darker=function(pe){return pe=Math.pow(.7,arguments.length?pe:1),new va(this.h,this.s,pe*this.l)},La.rgb=function(){return Ja(this.h,this.s,this.l)};function Ja(pe,Le,Ye){var ut,ht;pe=isNaN(pe)?0:(pe%=360)<0?pe+360:pe,Le=isNaN(Le)||Le<0?0:Le>1?1:Le,Ye=Ye<0?0:Ye>1?1:Ye,ht=Ye<=.5?Ye*(1+Le):Ye+Le-Ye*Le,ut=2*Ye-ht;function xt(Dt){return Dt>360?Dt-=360:Dt<0&&(Dt+=360),Dt<60?ut+(ht-ut)*Dt/60:Dt<180?ht:Dt<240?ut+(ht-ut)*(240-Dt)/60:ut}function zt(Dt){return Math.round(xt(Dt)*255)}return new vt(zt(pe+120),zt(pe),zt(pe-120))}d.hcl=Vt;function Vt(pe,Le,Ye){return this instanceof Vt?(this.h=+pe,this.c=+Le,void(this.l=+Ye)):arguments.length<2?pe instanceof Vt?new Vt(pe.h,pe.c,pe.l):pe instanceof Ot?Pa(pe.l,pe.a,pe.b):Pa((pe=Pr((pe=d.rgb(pe)).r,pe.g,pe.b)).l,pe.a,pe.b):new Vt(pe,Le,Ye)}var Lt=Vt.prototype=new Ia;Lt.brighter=function(pe){return new Vt(this.h,this.c,Math.min(100,this.l+gr*(arguments.length?pe:1)))},Lt.darker=function(pe){return new Vt(this.h,this.c,Math.max(0,this.l-gr*(arguments.length?pe:1)))},Lt.rgb=function(){return jt(this.h,this.c,this.l).rgb()};function jt(pe,Le,Ye){return isNaN(pe)&&(pe=0),isNaN(Le)&&(Le=0),new Ot(Ye,Math.cos(pe*=We)*Le,Math.sin(pe)*Le)}d.lab=Ot;function Ot(pe,Le,Ye){return this instanceof Ot?(this.l=+pe,this.a=+Le,void(this.b=+Ye)):arguments.length<2?pe instanceof Ot?new Ot(pe.l,pe.a,pe.b):pe instanceof Vt?jt(pe.h,pe.c,pe.l):Pr((pe=vt(pe)).r,pe.g,pe.b):new Ot(pe,Le,Ye)}var gr=18,Br=.95047,na=1,Ur=1.08883,pa=Ot.prototype=new Ia;pa.brighter=function(pe){return new Ot(Math.min(100,this.l+gr*(arguments.length?pe:1)),this.a,this.b)},pa.darker=function(pe){return new Ot(Math.max(0,this.l-gr*(arguments.length?pe:1)),this.a,this.b)},pa.rgb=function(){return Aa(this.l,this.a,this.b)};function Aa(pe,Le,Ye){var ut=(pe+16)/116,ht=ut+Le/500,xt=ut-Ye/200;return ht=sa(ht)*Br,ut=sa(ut)*na,xt=sa(xt)*Ur,new vt(dt(3.2404542*ht-1.5371385*ut-.4985314*xt),dt(-.969266*ht+1.8760108*ut+.041556*xt),dt(.0556434*ht-.2040259*ut+1.0572252*xt))}function Pa(pe,Le,Ye){return pe>0?new Vt(Math.atan2(Ye,Le)*ct,Math.sqrt(Le*Le+Ye*Ye),pe):new Vt(NaN,NaN,pe)}function sa(pe){return pe>.206893034?pe*pe*pe:(pe-4/29)/7.787037}function Ba(pe){return pe>.008856?Math.pow(pe,1/3):7.787037*pe+4/29}function dt(pe){return Math.round(255*(pe<=.00304?12.92*pe:1.055*Math.pow(pe,1/2.4)-.055))}d.rgb=vt;function vt(pe,Le,Ye){return this instanceof vt?(this.r=~~pe,this.g=~~Le,void(this.b=~~Ye)):arguments.length<2?pe instanceof vt?new vt(pe.r,pe.g,pe.b):kr(""+pe,vt,Ja):new vt(pe,Le,Ye)}function Lr(pe){return new vt(pe>>16,pe>>8&255,pe&255)}function Er(pe){return Lr(pe)+""}var _r=vt.prototype=new Ia;_r.brighter=function(pe){pe=Math.pow(.7,arguments.length?pe:1);var Le=this.r,Ye=this.g,ut=this.b,ht=30;return!Le&&!Ye&&!ut?new vt(ht,ht,ht):(Le&&Le<ht&&(Le=ht),Ye&&Ye<ht&&(Ye=ht),ut&&ut<ht&&(ut=ht),new vt(Math.min(255,Le/pe),Math.min(255,Ye/pe),Math.min(255,ut/pe)))},_r.darker=function(pe){return pe=Math.pow(.7,arguments.length?pe:1),new vt(pe*this.r,pe*this.g,pe*this.b)},_r.hsl=function(){return zr(this.r,this.g,this.b)},_r.toString=function(){return"#"+yr(this.r)+yr(this.g)+yr(this.b)};function yr(pe){return pe<16?"0"+Math.max(0,pe).toString(16):Math.min(255,pe).toString(16)}function kr(pe,Le,Ye){var ut=0,ht=0,xt=0,zt,Dt,$t;if(zt=/([a-z]+)\((.*)\)/.exec(pe=pe.toLowerCase()),zt)switch(Dt=zt[2].split(","),zt[1]){case"hsl":return Ye(parseFloat(Dt[0]),parseFloat(Dt[1])/100,parseFloat(Dt[2])/100);case"rgb":return Le(Zr(Dt[0]),Zr(Dt[1]),Zr(Dt[2]))}return($t=Jr.get(pe))?Le($t.r,$t.g,$t.b):(pe!=null&&pe.charAt(0)==="#"&&!isNaN($t=parseInt(pe.slice(1),16))&&(pe.length===4?(ut=($t&3840)>>4,ut=ut>>4|ut,ht=$t&240,ht=ht>>4|ht,xt=$t&15,xt=xt<<4|xt):pe.length===7&&(ut=($t&16711680)>>16,ht=($t&65280)>>8,xt=$t&255)),Le(ut,ht,xt))}function zr(pe,Le,Ye){var ut=Math.min(pe/=255,Le/=255,Ye/=255),ht=Math.max(pe,Le,Ye),xt=ht-ut,zt,Dt,$t=(ht+ut)/2;return xt?(Dt=$t<.5?xt/(ht+ut):xt/(2-ht-ut),pe==ht?zt=(Le-Ye)/xt+(Le<Ye?6:0):Le==ht?zt=(Ye-pe)/xt+2:zt=(pe-Le)/xt+4,zt*=60):(zt=NaN,Dt=$t>0&&$t<1?0:zt),new va(zt,Dt,$t)}function Pr(pe,Le,Ye){pe=Hr(pe),Le=Hr(Le),Ye=Hr(Ye);var ut=Ba((.4124564*pe+.3575761*Le+.1804375*Ye)/Br),ht=Ba((.2126729*pe+.7151522*Le+.072175*Ye)/na),xt=Ba((.0193339*pe+.119192*Le+.9503041*Ye)/Ur);return Ot(116*ht-16,500*(ut-ht),200*(ht-xt))}function Hr(pe){return(pe/=255)<=.04045?pe/12.92:Math.pow((pe+.055)/1.055,2.4)}function Zr(pe){var Le=parseFloat(pe);return pe.charAt(pe.length-1)==="%"?Math.round(Le*2.55):Le}var Jr=d.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});Jr.forEach(function(pe,Le){Jr.set(pe,Lr(Le))});function wt(pe){return typeof pe=="function"?pe:function(){return pe}}d.functor=wt,d.xhr=Qt(F);function Qt(pe){return function(Le,Ye,ut){return arguments.length===2&&typeof Ye=="function"&&(ut=Ye,Ye=null),mr(Le,Ye,pe,ut)}}function mr(pe,Le,Ye,ut){var ht={},xt=d.dispatch("beforesend","progress","load","error"),zt={},Dt=new XMLHttpRequest,$t=null;self.XDomainRequest&&!("withCredentials"in Dt)&&/^(http(s)?:)?\/\//.test(pe)&&(Dt=new XDomainRequest),"onload"in Dt?Dt.onload=Dt.onerror=Cr:Dt.onreadystatechange=function(){Dt.readyState>3&&Cr()};function Cr(){var Ar=Dt.status,Vr;if(!Ar&&oa(Dt)||Ar>=200&&Ar<300||Ar===304){try{Vr=Ye.call(ht,Dt)}catch(Kr){xt.error.call(ht,Kr);return}xt.load.call(ht,Vr)}else xt.error.call(ht,Dt)}return Dt.onprogress=function(Ar){var Vr=d.event;d.event=Ar;try{xt.progress.call(ht,Dt)}finally{d.event=Vr}},ht.header=function(Ar,Vr){return Ar=(Ar+"").toLowerCase(),arguments.length<2?zt[Ar]:(Vr==null?delete zt[Ar]:zt[Ar]=Vr+"",ht)},ht.mimeType=function(Ar){return arguments.length?(Le=Ar==null?null:Ar+"",ht):Le},ht.responseType=function(Ar){return arguments.length?($t=Ar,ht):$t},ht.response=function(Ar){return Ye=Ar,ht},["get","post"].forEach(function(Ar){ht[Ar]=function(){return ht.send.apply(ht,[Ar].concat(A(arguments)))}}),ht.send=function(Ar,Vr,Kr){if(arguments.length===2&&typeof Vr=="function"&&(Kr=Vr,Vr=null),Dt.open(Ar,pe,!0),Le!=null&&!("accept"in zt)&&(zt.accept=Le+",*/*"),Dt.setRequestHeader)for(var aa in zt)Dt.setRequestHeader(aa,zt[aa]);return Le!=null&&Dt.overrideMimeType&&Dt.overrideMimeType(Le),$t!=null&&(Dt.responseType=$t),Kr!=null&&ht.on("error",Kr).on("load",function(ja){Kr(null,ja)}),xt.beforesend.call(ht,Dt),Dt.send(Vr??null),ht},ht.abort=function(){return Dt.abort(),ht},d.rebind(ht,xt,"on"),ut==null?ht:ht.get($r(ut))}function $r(pe){return pe.length===1?function(Le,Ye){pe(Le==null?Ye:null)}:pe}function oa(pe){var Le=pe.responseType;return Le&&Le!=="text"?pe.response:pe.responseText}d.dsv=function(pe,Le){var Ye=new RegExp('["'+pe+`
|
1
|
+
import{d as I8,e as R8,g as D8,l as z8,b6 as F8,N as JA,b7 as O8,b8 as B8,aG as N8,aL as qv,aK as gh,b9 as $A,aJ as U8,aH as j8,aI as V8,H as Nf,O as WA,ba as q8,bb as Wg,r as Hv,aD as QA,j as lb,z as H8}from"./index.BtpsTdHN.js";import{F as G8}from"./FormClearHelper.BAxB8JFY.js";import{w as W8,E as eS}from"./withFullScreenWrapper.oyWCn2-3.js";var ob={},sb={},ZA;function Z8(){return ZA||(ZA=1,function(za){function zi(zo){"@babel/helpers - typeof";return zi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Bs){return typeof Bs}:function(Bs){return Bs&&typeof Symbol=="function"&&Bs.constructor===Symbol&&Bs!==Symbol.prototype?"symbol":typeof Bs},zi(zo)}Object.defineProperty(za,"__esModule",{value:!0}),za.default=Vd;var os=ru(I8()),wo=vs(R8());function vs(zo){return zo&&zo.__esModule?zo:{default:zo}}function Su(zo){if(typeof WeakMap!="function")return null;var Bs=new WeakMap,Nu=new WeakMap;return(Su=function(uf){return uf?Nu:Bs})(zo)}function ru(zo,Bs){if(zo&&zo.__esModule)return zo;if(zo===null||zi(zo)!=="object"&&typeof zo!="function")return{default:zo};var Nu=Su(Bs);if(Nu&&Nu.has(zo))return Nu.get(zo);var Kn={},uf=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var zl in zo)if(zl!=="default"&&Object.prototype.hasOwnProperty.call(zo,zl)){var ni=uf?Object.getOwnPropertyDescriptor(zo,zl):null;ni&&(ni.get||ni.set)?Object.defineProperty(Kn,zl,ni):Kn[zl]=zo[zl]}return Kn.default=zo,Nu&&Nu.set(zo,Kn),Kn}function Uf(zo,Bs){if(!(zo instanceof Bs))throw new TypeError("Cannot call a class as a function")}function of(zo,Bs){for(var Nu=0;Nu<Bs.length;Nu++){var Kn=Bs[Nu];Kn.enumerable=Kn.enumerable||!1,Kn.configurable=!0,"value"in Kn&&(Kn.writable=!0),Object.defineProperty(zo,Kn.key,Kn)}}function Zc(zo,Bs,Nu){return Bs&&of(zo.prototype,Bs),Object.defineProperty(zo,"prototype",{writable:!1}),zo}function sf(zo,Bs){if(typeof Bs!="function"&&Bs!==null)throw new TypeError("Super expression must either be null or a function");zo.prototype=Object.create(Bs&&Bs.prototype,{constructor:{value:zo,writable:!0,configurable:!0}}),Object.defineProperty(zo,"prototype",{writable:!1}),Bs&&Dc(zo,Bs)}function Dc(zo,Bs){return Dc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(Kn,uf){return Kn.__proto__=uf,Kn},Dc(zo,Bs)}function gc(zo){var Bs=lf();return function(){var Kn=Ds(zo),uf;if(Bs){var zl=Ds(this).constructor;uf=Reflect.construct(Kn,arguments,zl)}else uf=Kn.apply(this,arguments);return Ko(this,uf)}}function Ko(zo,Bs){if(Bs&&(zi(Bs)==="object"||typeof Bs=="function"))return Bs;if(Bs!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Tl(zo)}function Tl(zo){if(zo===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return zo}function lf(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Ds(zo){return Ds=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(Nu){return Nu.__proto__||Object.getPrototypeOf(Nu)},Ds(zo)}var He=["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","WebGlContextLost"],wv=["plotly_restyle","plotly_redraw","plotly_relayout","plotly_relayouting","plotly_doubleclick","plotly_animated","plotly_sunburstclick"],cd=typeof window<"u";function Vd(zo){var Bs=function(Nu){sf(uf,Nu);var Kn=gc(uf);function uf(zl){var ni;return Uf(this,uf),ni=Kn.call(this,zl),ni.p=Promise.resolve(),ni.resizeHandler=null,ni.handlers={},ni.syncWindowResize=ni.syncWindowResize.bind(Tl(ni)),ni.syncEventHandlers=ni.syncEventHandlers.bind(Tl(ni)),ni.attachUpdateEvents=ni.attachUpdateEvents.bind(Tl(ni)),ni.getRef=ni.getRef.bind(Tl(ni)),ni.handleUpdate=ni.handleUpdate.bind(Tl(ni)),ni.figureCallback=ni.figureCallback.bind(Tl(ni)),ni.updatePlotly=ni.updatePlotly.bind(Tl(ni)),ni}return Zc(uf,[{key:"updatePlotly",value:function(ni,dl,Mi){var Hi=this;this.p=this.p.then(function(){if(!Hi.unmounting){if(!Hi.el)throw new Error("Missing element reference");return zo.react(Hi.el,{data:Hi.props.data,layout:Hi.props.layout,config:Hi.props.config,frames:Hi.props.frames})}}).then(function(){Hi.unmounting||(Hi.syncWindowResize(ni),Hi.syncEventHandlers(),Hi.figureCallback(dl),Mi&&Hi.attachUpdateEvents())}).catch(function(Ah){Hi.props.onError&&Hi.props.onError(Ah)})}},{key:"componentDidMount",value:function(){this.unmounting=!1,this.updatePlotly(!0,this.props.onInitialized,!0)}},{key:"componentDidUpdate",value:function(ni){this.unmounting=!1;var dl=ni.frames&&ni.frames.length?ni.frames.length:0,Mi=this.props.frames&&this.props.frames.length?this.props.frames.length:0,Hi=!(ni.layout===this.props.layout&&ni.data===this.props.data&&ni.config===this.props.config&&Mi===dl),Ah=ni.revision!==void 0,tv=ni.revision!==this.props.revision;!Hi&&(!Ah||Ah&&!tv)||this.updatePlotly(!1,this.props.onUpdate,!1)}},{key:"componentWillUnmount",value:function(){this.unmounting=!0,this.figureCallback(this.props.onPurge),this.resizeHandler&&cd&&(window.removeEventListener("resize",this.resizeHandler),this.resizeHandler=null),this.removeUpdateEvents(),zo.purge(this.el)}},{key:"attachUpdateEvents",value:function(){var ni=this;!this.el||!this.el.removeListener||wv.forEach(function(dl){ni.el.on(dl,ni.handleUpdate)})}},{key:"removeUpdateEvents",value:function(){var ni=this;!this.el||!this.el.removeListener||wv.forEach(function(dl){ni.el.removeListener(dl,ni.handleUpdate)})}},{key:"handleUpdate",value:function(){this.figureCallback(this.props.onUpdate)}},{key:"figureCallback",value:function(ni){if(typeof ni=="function"){var dl=this.el,Mi=dl.data,Hi=dl.layout,Ah=this.el._transitionData?this.el._transitionData._frames:null,tv={data:Mi,layout:Hi,frames:Ah};ni(tv,this.el)}}},{key:"syncWindowResize",value:function(ni){var dl=this;cd&&(this.props.useResizeHandler&&!this.resizeHandler?(this.resizeHandler=function(){return zo.Plots.resize(dl.el)},window.addEventListener("resize",this.resizeHandler),ni&&this.resizeHandler()):!this.props.useResizeHandler&&this.resizeHandler&&(window.removeEventListener("resize",this.resizeHandler),this.resizeHandler=null))}},{key:"getRef",value:function(ni){this.el=ni,this.props.debug&&cd&&(window.gd=this.el)}},{key:"syncEventHandlers",value:function(){var ni=this;He.forEach(function(dl){var Mi=ni.props["on"+dl],Hi=ni.handlers[dl],Ah=!!Hi;Mi&&!Ah?ni.addEventHandler(dl,Mi):!Mi&&Ah?ni.removeEventHandler(dl):Mi&&Ah&&Mi!==Hi&&(ni.removeEventHandler(dl),ni.addEventHandler(dl,Mi))})}},{key:"addEventHandler",value:function(ni,dl){this.handlers[ni]=dl,this.el.on(this.getPlotlyEventName(ni),this.handlers[ni])}},{key:"removeEventHandler",value:function(ni){this.el.removeListener(this.getPlotlyEventName(ni),this.handlers[ni]),delete this.handlers[ni]}},{key:"getPlotlyEventName",value:function(ni){return"plotly_"+ni.toLowerCase()}},{key:"render",value:function(){return os.default.createElement("div",{id:this.props.divId,style:this.props.style,ref:this.getRef,className:this.props.className})}}]),uf}(os.Component);return Bs.propTypes={data:wo.default.arrayOf(wo.default.object),config:wo.default.object,layout:wo.default.object,frames:wo.default.arrayOf(wo.default.object),revision:wo.default.number,onInitialized:wo.default.func,onPurge:wo.default.func,onError:wo.default.func,onUpdate:wo.default.func,debug:wo.default.bool,style:wo.default.object,className:wo.default.string,useResizeHandler:wo.default.bool,divId:wo.default.string},He.forEach(function(Nu){Bs.propTypes["on"+Nu]=wo.default.func}),Bs.defaultProps={debug:!1,useResizeHandler:!1,data:[],style:{position:"relative",display:"inline-block"}},Bs}}(sb)),sb}var Ym={exports:{}},X8=Ym.exports,XA;function Y8(){return XA||(XA=1,function(za){var zi={};(function(os,wo){za.exports?za.exports=wo():os.moduleName=wo()})(typeof self<"u"?self:X8,()=>{var os=(()=>{var wo=Object.create,vs=Object.defineProperty,Su=Object.defineProperties,ru=Object.getOwnPropertyDescriptor,Uf=Object.getOwnPropertyDescriptors,of=Object.getOwnPropertyNames,Zc=Object.getOwnPropertySymbols,sf=Object.getPrototypeOf,Dc=Object.prototype.hasOwnProperty,gc=Object.prototype.propertyIsEnumerable,Ko=(Y,G,d)=>G in Y?vs(Y,G,{enumerable:!0,configurable:!0,writable:!0,value:d}):Y[G]=d,Tl=(Y,G)=>{for(var d in G||(G={}))Dc.call(G,d)&&Ko(Y,d,G[d]);if(Zc)for(var d of Zc(G))gc.call(G,d)&&Ko(Y,d,G[d]);return Y},lf=(Y,G)=>Su(Y,Uf(G)),Ds=(Y,G)=>function(){return Y&&(G=(0,Y[of(Y)[0]])(Y=0)),G},He=(Y,G)=>function(){return G||(0,Y[of(Y)[0]])((G={exports:{}}).exports,G),G.exports},wv=(Y,G)=>{for(var d in G)vs(Y,d,{get:G[d],enumerable:!0})},cd=(Y,G,d,x)=>{if(G&&typeof G=="object"||typeof G=="function")for(let A of of(G))!Dc.call(Y,A)&&A!==d&&vs(Y,A,{get:()=>G[A],enumerable:!(x=ru(G,A))||x.enumerable});return Y},Vd=(Y,G,d)=>(d=Y!=null?wo(sf(Y)):{},cd(vs(d,"default",{value:Y,enumerable:!0}),Y)),zo=Y=>cd(vs({},"__esModule",{value:!0}),Y),Bs=He({"src/version.js"(Y){Y.version="3.0.1"}}),Nu=He({"node_modules/native-promise-only/lib/npo.src.js"(Y,G){(function(x,A,E){A[x]=A[x]||E(),typeof G<"u"&&G.exports&&(G.exports=A[x])})("Promise",typeof window<"u"?window:Y,function(){var x,A,E,e=Object.prototype.toString,t=typeof setImmediate<"u"?function(y){return setImmediate(y)}:setTimeout;try{Object.defineProperty({},"x",{}),x=function(y,b,S,M){return Object.defineProperty(y,b,{value:S,writable:!0,configurable:M!==!1})}}catch{x=function(b,S,M){return b[S]=M,b}}E=function(){var y,b,S;function M(_,w){this.fn=_,this.self=w,this.next=void 0}return{add:function(w,p){S=new M(w,p),b?b.next=S:y=S,b=S,S=void 0},drain:function(){var w=y;for(y=b=A=void 0;w;)w.fn.call(w.self),w=w.next}}}();function r(l,y){E.add(l,y),A||(A=t(E.drain))}function o(l){var y,b=typeof l;return l!=null&&(b=="object"||b=="function")&&(y=l.then),typeof y=="function"?y:!1}function a(){for(var l=0;l<this.chain.length;l++)i(this,this.state===1?this.chain[l].success:this.chain[l].failure,this.chain[l]);this.chain.length=0}function i(l,y,b){var S,M;try{y===!1?b.reject(l.msg):(y===!0?S=l.msg:S=y.call(void 0,l.msg),S===b.promise?b.reject(TypeError("Promise-chain cycle")):(M=o(S))?M.call(S,b.resolve,b.reject):b.resolve(S))}catch(_){b.reject(_)}}function n(l){var y,b=this;if(!b.triggered){b.triggered=!0,b.def&&(b=b.def);try{(y=o(l))?r(function(){var S=new f(b);try{y.call(l,function(){n.apply(S,arguments)},function(){s.apply(S,arguments)})}catch(M){s.call(S,M)}}):(b.msg=l,b.state=1,b.chain.length>0&&r(a,b))}catch(S){s.call(new f(b),S)}}}function s(l){var y=this;y.triggered||(y.triggered=!0,y.def&&(y=y.def),y.msg=l,y.state=2,y.chain.length>0&&r(a,y))}function c(l,y,b,S){for(var M=0;M<y.length;M++)(function(w){l.resolve(y[w]).then(function(u){b(w,u)},S)})(M)}function f(l){this.def=l,this.triggered=!1}function v(l){this.promise=l,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function h(l){if(typeof l!="function")throw TypeError("Not a function");if(this.__NPO__!==0)throw TypeError("Not a promise");this.__NPO__=1;var y=new v(this);this.then=function(S,M){var _={success:typeof S=="function"?S:!0,failure:typeof M=="function"?M:!1};return _.promise=new this.constructor(function(p,u){if(typeof p!="function"||typeof u!="function")throw TypeError("Not a function");_.resolve=p,_.reject=u}),y.chain.push(_),y.state!==0&&r(a,y),_.promise},this.catch=function(S){return this.then(void 0,S)};try{l.call(void 0,function(S){n.call(y,S)},function(S){s.call(y,S)})}catch(b){s.call(y,b)}}var T=x({},"constructor",h,!1);return h.prototype=T,x(T,"__NPO__",0,!1),x(h,"resolve",function(y){var b=this;return y&&typeof y=="object"&&y.__NPO__===1?y:new b(function(M,_){if(typeof M!="function"||typeof _!="function")throw TypeError("Not a function");M(y)})}),x(h,"reject",function(y){return new this(function(S,M){if(typeof S!="function"||typeof M!="function")throw TypeError("Not a function");M(y)})}),x(h,"all",function(y){var b=this;return e.call(y)!="[object Array]"?b.reject(TypeError("Not an array")):y.length===0?b.resolve([]):new b(function(M,_){if(typeof M!="function"||typeof _!="function")throw TypeError("Not a function");var w=y.length,p=Array(w),u=0;c(b,y,function(m,R){p[m]=R,++u===w&&M(p)},_)})}),x(h,"race",function(y){var b=this;return e.call(y)!="[object Array]"?b.reject(TypeError("Not an array")):new b(function(M,_){if(typeof M!="function"||typeof _!="function")throw TypeError("Not a function");c(b,y,function(p,u){M(u)},_)})}),h})}}),Kn=He({"node_modules/@plotly/d3/d3.js"(Y,G){(function(){var d={version:"3.8.2"},x=[].slice,A=function(pe){return x.call(pe)},E=self.document;function e(pe){return pe&&(pe.ownerDocument||pe.document||pe).documentElement}function t(pe){return pe&&(pe.ownerDocument&&pe.ownerDocument.defaultView||pe.document&&pe||pe.defaultView)}if(E)try{A(E.documentElement.childNodes)[0].nodeType}catch{A=function(Le){for(var Ye=Le.length,ut=new Array(Ye);Ye--;)ut[Ye]=Le[Ye];return ut}}if(Date.now||(Date.now=function(){return+new Date}),E)try{E.createElement("DIV").style.setProperty("opacity",0,"")}catch{var r=this.Element.prototype,o=r.setAttribute,a=r.setAttributeNS,i=this.CSSStyleDeclaration.prototype,n=i.setProperty;r.setAttribute=function(Le,Ye){o.call(this,Le,Ye+"")},r.setAttributeNS=function(Le,Ye,ut){a.call(this,Le,Ye,ut+"")},i.setProperty=function(Le,Ye,ut){n.call(this,Le,Ye+"",ut)}}d.ascending=s;function s(pe,Le){return pe<Le?-1:pe>Le?1:pe>=Le?0:NaN}d.descending=function(pe,Le){return Le<pe?-1:Le>pe?1:Le>=pe?0:NaN},d.min=function(pe,Le){var Ye=-1,ut=pe.length,ht,xt;if(arguments.length===1){for(;++Ye<ut;)if((xt=pe[Ye])!=null&&xt>=xt){ht=xt;break}for(;++Ye<ut;)(xt=pe[Ye])!=null&&ht>xt&&(ht=xt)}else{for(;++Ye<ut;)if((xt=Le.call(pe,pe[Ye],Ye))!=null&&xt>=xt){ht=xt;break}for(;++Ye<ut;)(xt=Le.call(pe,pe[Ye],Ye))!=null&&ht>xt&&(ht=xt)}return ht},d.max=function(pe,Le){var Ye=-1,ut=pe.length,ht,xt;if(arguments.length===1){for(;++Ye<ut;)if((xt=pe[Ye])!=null&&xt>=xt){ht=xt;break}for(;++Ye<ut;)(xt=pe[Ye])!=null&&xt>ht&&(ht=xt)}else{for(;++Ye<ut;)if((xt=Le.call(pe,pe[Ye],Ye))!=null&&xt>=xt){ht=xt;break}for(;++Ye<ut;)(xt=Le.call(pe,pe[Ye],Ye))!=null&&xt>ht&&(ht=xt)}return ht},d.extent=function(pe,Le){var Ye=-1,ut=pe.length,ht,xt,zt;if(arguments.length===1){for(;++Ye<ut;)if((xt=pe[Ye])!=null&&xt>=xt){ht=zt=xt;break}for(;++Ye<ut;)(xt=pe[Ye])!=null&&(ht>xt&&(ht=xt),zt<xt&&(zt=xt))}else{for(;++Ye<ut;)if((xt=Le.call(pe,pe[Ye],Ye))!=null&&xt>=xt){ht=zt=xt;break}for(;++Ye<ut;)(xt=Le.call(pe,pe[Ye],Ye))!=null&&(ht>xt&&(ht=xt),zt<xt&&(zt=xt))}return[ht,zt]};function c(pe){return pe===null?NaN:+pe}function f(pe){return!isNaN(pe)}d.sum=function(pe,Le){var Ye=0,ut=pe.length,ht,xt=-1;if(arguments.length===1)for(;++xt<ut;)f(ht=+pe[xt])&&(Ye+=ht);else for(;++xt<ut;)f(ht=+Le.call(pe,pe[xt],xt))&&(Ye+=ht);return Ye},d.mean=function(pe,Le){var Ye=0,ut=pe.length,ht,xt=-1,zt=ut;if(arguments.length===1)for(;++xt<ut;)f(ht=c(pe[xt]))?Ye+=ht:--zt;else for(;++xt<ut;)f(ht=c(Le.call(pe,pe[xt],xt)))?Ye+=ht:--zt;if(zt)return Ye/zt},d.quantile=function(pe,Le){var Ye=(pe.length-1)*Le+1,ut=Math.floor(Ye),ht=+pe[ut-1],xt=Ye-ut;return xt?ht+xt*(pe[ut]-ht):ht},d.median=function(pe,Le){var Ye=[],ut=pe.length,ht,xt=-1;if(arguments.length===1)for(;++xt<ut;)f(ht=c(pe[xt]))&&Ye.push(ht);else for(;++xt<ut;)f(ht=c(Le.call(pe,pe[xt],xt)))&&Ye.push(ht);if(Ye.length)return d.quantile(Ye.sort(s),.5)},d.variance=function(pe,Le){var Ye=pe.length,ut=0,ht,xt,zt=0,Dt=-1,$t=0;if(arguments.length===1)for(;++Dt<Ye;)f(ht=c(pe[Dt]))&&(xt=ht-ut,ut+=xt/++$t,zt+=xt*(ht-ut));else for(;++Dt<Ye;)f(ht=c(Le.call(pe,pe[Dt],Dt)))&&(xt=ht-ut,ut+=xt/++$t,zt+=xt*(ht-ut));if($t>1)return zt/($t-1)},d.deviation=function(){var pe=d.variance.apply(this,arguments);return pe&&Math.sqrt(pe)};function v(pe){return{left:function(Le,Ye,ut,ht){for(arguments.length<3&&(ut=0),arguments.length<4&&(ht=Le.length);ut<ht;){var xt=ut+ht>>>1;pe(Le[xt],Ye)<0?ut=xt+1:ht=xt}return ut},right:function(Le,Ye,ut,ht){for(arguments.length<3&&(ut=0),arguments.length<4&&(ht=Le.length);ut<ht;){var xt=ut+ht>>>1;pe(Le[xt],Ye)>0?ht=xt:ut=xt+1}return ut}}}var h=v(s);d.bisectLeft=h.left,d.bisect=d.bisectRight=h.right,d.bisector=function(pe){return v(pe.length===1?function(Le,Ye){return s(pe(Le),Ye)}:pe)},d.shuffle=function(pe,Le,Ye){(ut=arguments.length)<3&&(Ye=pe.length,ut<2&&(Le=0));for(var ut=Ye-Le,ht,xt;ut;)xt=Math.random()*ut--|0,ht=pe[ut+Le],pe[ut+Le]=pe[xt+Le],pe[xt+Le]=ht;return pe},d.permute=function(pe,Le){for(var Ye=Le.length,ut=new Array(Ye);Ye--;)ut[Ye]=pe[Le[Ye]];return ut},d.pairs=function(pe){for(var Le=0,Ye=pe.length-1,ut=pe[0],ht=new Array(Ye<0?0:Ye);Le<Ye;)ht[Le]=[ut,ut=pe[++Le]];return ht},d.transpose=function(pe){if(!(xt=pe.length))return[];for(var Le=-1,Ye=d.min(pe,T),ut=new Array(Ye);++Le<Ye;)for(var ht=-1,xt,zt=ut[Le]=new Array(xt);++ht<xt;)zt[ht]=pe[ht][Le];return ut};function T(pe){return pe.length}d.zip=function(){return d.transpose(arguments)},d.keys=function(pe){var Le=[];for(var Ye in pe)Le.push(Ye);return Le},d.values=function(pe){var Le=[];for(var Ye in pe)Le.push(pe[Ye]);return Le},d.entries=function(pe){var Le=[];for(var Ye in pe)Le.push({key:Ye,value:pe[Ye]});return Le},d.merge=function(pe){for(var Le=pe.length,Ye,ut=-1,ht=0,xt,zt;++ut<Le;)ht+=pe[ut].length;for(xt=new Array(ht);--Le>=0;)for(zt=pe[Le],Ye=zt.length;--Ye>=0;)xt[--ht]=zt[Ye];return xt};var l=Math.abs;d.range=function(pe,Le,Ye){if(arguments.length<3&&(Ye=1,arguments.length<2&&(Le=pe,pe=0)),(Le-pe)/Ye===1/0)throw new Error("infinite range");var ut=[],ht=y(l(Ye)),xt=-1,zt;if(pe*=ht,Le*=ht,Ye*=ht,Ye<0)for(;(zt=pe+Ye*++xt)>Le;)ut.push(zt/ht);else for(;(zt=pe+Ye*++xt)<Le;)ut.push(zt/ht);return ut};function y(pe){for(var Le=1;pe*Le%1;)Le*=10;return Le}function b(pe,Le){for(var Ye in Le)Object.defineProperty(pe.prototype,Ye,{value:Le[Ye],enumerable:!1})}d.map=function(pe,Le){var Ye=new S;if(pe instanceof S)pe.forEach(function(Dt,$t){Ye.set(Dt,$t)});else if(Array.isArray(pe)){var ut=-1,ht=pe.length,xt;if(arguments.length===1)for(;++ut<ht;)Ye.set(ut,pe[ut]);else for(;++ut<ht;)Ye.set(Le.call(pe,xt=pe[ut],ut),xt)}else for(var zt in pe)Ye.set(zt,pe[zt]);return Ye};function S(){this._=Object.create(null)}var M="__proto__",_="\0";b(S,{has:u,get:function(pe){return this._[w(pe)]},set:function(pe,Le){return this._[w(pe)]=Le},remove:g,keys:m,values:function(){var pe=[];for(var Le in this._)pe.push(this._[Le]);return pe},entries:function(){var pe=[];for(var Le in this._)pe.push({key:p(Le),value:this._[Le]});return pe},size:R,empty:P,forEach:function(pe){for(var Le in this._)pe.call(this,p(Le),this._[Le])}});function w(pe){return(pe+="")===M||pe[0]===_?_+pe:pe}function p(pe){return(pe+="")[0]===_?pe.slice(1):pe}function u(pe){return w(pe)in this._}function g(pe){return(pe=w(pe))in this._&&delete this._[pe]}function m(){var pe=[];for(var Le in this._)pe.push(p(Le));return pe}function R(){var pe=0;for(var Le in this._)++pe;return pe}function P(){for(var pe in this._)return!1;return!0}d.nest=function(){var pe={},Le=[],Ye=[],ut,ht;function xt(Dt,$t,Cr){if(Cr>=Le.length)return ht?ht.call(pe,$t):ut?$t.sort(ut):$t;for(var Ar=-1,Vr=$t.length,Kr=Le[Cr++],aa,ja,la,Ta=new S,ka;++Ar<Vr;)(ka=Ta.get(aa=Kr(ja=$t[Ar])))?ka.push(ja):Ta.set(aa,[ja]);return Dt?(ja=Dt(),la=function(Na,qa){ja.set(Na,xt(Dt,qa,Cr))}):(ja={},la=function(Na,qa){ja[Na]=xt(Dt,qa,Cr)}),Ta.forEach(la),ja}function zt(Dt,$t){if($t>=Le.length)return Dt;var Cr=[],Ar=Ye[$t++];return Dt.forEach(function(Vr,Kr){Cr.push({key:Vr,values:zt(Kr,$t)})}),Ar?Cr.sort(function(Vr,Kr){return Ar(Vr.key,Kr.key)}):Cr}return pe.map=function(Dt,$t){return xt($t,Dt,0)},pe.entries=function(Dt){return zt(xt(d.map,Dt,0),0)},pe.key=function(Dt){return Le.push(Dt),pe},pe.sortKeys=function(Dt){return Ye[Le.length-1]=Dt,pe},pe.sortValues=function(Dt){return ut=Dt,pe},pe.rollup=function(Dt){return ht=Dt,pe},pe},d.set=function(pe){var Le=new z;if(pe)for(var Ye=0,ut=pe.length;Ye<ut;++Ye)Le.add(pe[Ye]);return Le};function z(){this._=Object.create(null)}b(z,{has:u,add:function(pe){return this._[w(pe+="")]=!0,pe},remove:g,values:m,size:R,empty:P,forEach:function(pe){for(var Le in this._)pe.call(this,p(Le))}}),d.behavior={};function F(pe){return pe}d.rebind=function(pe,Le){for(var Ye=1,ut=arguments.length,ht;++Ye<ut;)pe[ht=arguments[Ye]]=B(pe,Le,Le[ht]);return pe};function B(pe,Le,Ye){return function(){var ut=Ye.apply(Le,arguments);return ut===Le?pe:ut}}function O(pe,Le){if(Le in pe)return Le;Le=Le.charAt(0).toUpperCase()+Le.slice(1);for(var Ye=0,ut=L.length;Ye<ut;++Ye){var ht=L[Ye]+Le;if(ht in pe)return ht}}var L=["webkit","ms","moz","Moz","o","O"];function N(){}d.dispatch=function(){for(var pe=new U,Le=-1,Ye=arguments.length;++Le<Ye;)pe[arguments[Le]]=Z(pe);return pe};function U(){}U.prototype.on=function(pe,Le){var Ye=pe.indexOf("."),ut="";if(Ye>=0&&(ut=pe.slice(Ye+1),pe=pe.slice(0,Ye)),pe)return arguments.length<2?this[pe].on(ut):this[pe].on(ut,Le);if(arguments.length===2){if(Le==null)for(pe in this)this.hasOwnProperty(pe)&&this[pe].on(ut,null);return this}};function Z(pe){var Le=[],Ye=new S;function ut(){for(var ht=Le,xt=-1,zt=ht.length,Dt;++xt<zt;)(Dt=ht[xt].on)&&Dt.apply(this,arguments);return pe}return ut.on=function(ht,xt){var zt=Ye.get(ht),Dt;return arguments.length<2?zt&&zt.on:(zt&&(zt.on=null,Le=Le.slice(0,Dt=Le.indexOf(zt)).concat(Le.slice(Dt+1)),Ye.remove(ht)),xt&&Le.push(Ye.set(ht,{on:xt})),pe)},ut}d.event=null;function Q(){d.event.preventDefault()}function ue(){for(var pe=d.event,Le;Le=pe.sourceEvent;)pe=Le;return pe}function oe(pe){for(var Le=new U,Ye=0,ut=arguments.length;++Ye<ut;)Le[arguments[Ye]]=Z(Le);return Le.of=function(ht,xt){return function(zt){try{var Dt=zt.sourceEvent=d.event;zt.target=pe,d.event=zt,Le[zt.type].apply(ht,xt)}finally{d.event=Dt}}},Le}d.requote=function(pe){return pe.replace(le,"\\$&")};var le=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,j={}.__proto__?function(pe,Le){pe.__proto__=Le}:function(pe,Le){for(var Ye in Le)pe[Ye]=Le[Ye]};function J(pe){return j(pe,ee),pe}var $=function(pe,Le){return Le.querySelector(pe)},X=function(pe,Le){return Le.querySelectorAll(pe)},re=function(pe,Le){var Ye=pe.matches||pe[O(pe,"matchesSelector")];return re=function(ut,ht){return Ye.call(ut,ht)},re(pe,Le)};typeof Sizzle=="function"&&($=function(pe,Le){return Sizzle(pe,Le)[0]||null},X=Sizzle,re=Sizzle.matchesSelector),d.selection=function(){return d.select(E.documentElement)};var ee=d.selection.prototype=[];ee.select=function(pe){var Le=[],Ye,ut,ht,xt;pe=q(pe);for(var zt=-1,Dt=this.length;++zt<Dt;){Le.push(Ye=[]),Ye.parentNode=(ht=this[zt]).parentNode;for(var $t=-1,Cr=ht.length;++$t<Cr;)(xt=ht[$t])?(Ye.push(ut=pe.call(xt,xt.__data__,$t,zt)),ut&&"__data__"in xt&&(ut.__data__=xt.__data__)):Ye.push(null)}return J(Le)};function q(pe){return typeof pe=="function"?pe:function(){return $(pe,this)}}ee.selectAll=function(pe){var Le=[],Ye,ut;pe=ae(pe);for(var ht=-1,xt=this.length;++ht<xt;)for(var zt=this[ht],Dt=-1,$t=zt.length;++Dt<$t;)(ut=zt[Dt])&&(Le.push(Ye=A(pe.call(ut,ut.__data__,Dt,ht))),Ye.parentNode=ut);return J(Le)};function ae(pe){return typeof pe=="function"?pe:function(){return X(pe,this)}}var ie="http://www.w3.org/1999/xhtml",fe={svg:"http://www.w3.org/2000/svg",xhtml:ie,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};d.ns={prefix:fe,qualify:function(pe){var Le=pe.indexOf(":"),Ye=pe;return Le>=0&&(Ye=pe.slice(0,Le))!=="xmlns"&&(pe=pe.slice(Le+1)),fe.hasOwnProperty(Ye)?{space:fe[Ye],local:pe}:pe}},ee.attr=function(pe,Le){if(arguments.length<2){if(typeof pe=="string"){var Ye=this.node();return pe=d.ns.qualify(pe),pe.local?Ye.getAttributeNS(pe.space,pe.local):Ye.getAttribute(pe)}for(Le in pe)this.each(we(Le,pe[Le]));return this}return this.each(we(pe,Le))};function we(pe,Le){pe=d.ns.qualify(pe);function Ye(){this.removeAttribute(pe)}function ut(){this.removeAttributeNS(pe.space,pe.local)}function ht(){this.setAttribute(pe,Le)}function xt(){this.setAttributeNS(pe.space,pe.local,Le)}function zt(){var $t=Le.apply(this,arguments);$t==null?this.removeAttribute(pe):this.setAttribute(pe,$t)}function Dt(){var $t=Le.apply(this,arguments);$t==null?this.removeAttributeNS(pe.space,pe.local):this.setAttributeNS(pe.space,pe.local,$t)}return Le==null?pe.local?ut:Ye:typeof Le=="function"?pe.local?Dt:zt:pe.local?xt:ht}function Ae(pe){return pe.trim().replace(/\s+/g," ")}ee.classed=function(pe,Le){if(arguments.length<2){if(typeof pe=="string"){var Ye=this.node(),ut=(pe=Ce(pe)).length,ht=-1;if(Le=Ye.classList){for(;++ht<ut;)if(!Le.contains(pe[ht]))return!1}else for(Le=Ye.getAttribute("class");++ht<ut;)if(!Fe(pe[ht]).test(Le))return!1;return!0}for(Le in pe)this.each(qe(Le,pe[Le]));return this}return this.each(qe(pe,Le))};function Fe(pe){return new RegExp("(?:^|\\s+)"+d.requote(pe)+"(?:\\s+|$)","g")}function Ce(pe){return(pe+"").trim().split(/^|\s+/)}function qe(pe,Le){pe=Ce(pe).map(et);var Ye=pe.length;function ut(){for(var xt=-1;++xt<Ye;)pe[xt](this,Le)}function ht(){for(var xt=-1,zt=Le.apply(this,arguments);++xt<Ye;)pe[xt](this,zt)}return typeof Le=="function"?ht:ut}function et(pe){var Le=Fe(pe);return function(Ye,ut){if(ht=Ye.classList)return ut?ht.add(pe):ht.remove(pe);var ht=Ye.getAttribute("class")||"";ut?(Le.lastIndex=0,Le.test(ht)||Ye.setAttribute("class",Ae(ht+" "+pe))):Ye.setAttribute("class",Ae(ht.replace(Le," ")))}}ee.style=function(pe,Le,Ye){var ut=arguments.length;if(ut<3){if(typeof pe!="string"){ut<2&&(Le="");for(Ye in pe)this.each(Qe(Ye,pe[Ye],Le));return this}if(ut<2){var ht=this.node();return t(ht).getComputedStyle(ht,null).getPropertyValue(pe)}Ye=""}return this.each(Qe(pe,Le,Ye))};function Qe(pe,Le,Ye){function ut(){this.style.removeProperty(pe)}function ht(){this.style.setProperty(pe,Le,Ye)}function xt(){var zt=Le.apply(this,arguments);zt==null?this.style.removeProperty(pe):this.style.setProperty(pe,zt,Ye)}return Le==null?ut:typeof Le=="function"?xt:ht}ee.property=function(pe,Le){if(arguments.length<2){if(typeof pe=="string")return this.node()[pe];for(Le in pe)this.each(Ke(Le,pe[Le]));return this}return this.each(Ke(pe,Le))};function Ke(pe,Le){function Ye(){delete this[pe]}function ut(){this[pe]=Le}function ht(){var xt=Le.apply(this,arguments);xt==null?delete this[pe]:this[pe]=xt}return Le==null?Ye:typeof Le=="function"?ht:ut}ee.text=function(pe){return arguments.length?this.each(typeof pe=="function"?function(){var Le=pe.apply(this,arguments);this.textContent=Le??""}:pe==null?function(){this.textContent=""}:function(){this.textContent=pe}):this.node().textContent},ee.html=function(pe){return arguments.length?this.each(typeof pe=="function"?function(){var Le=pe.apply(this,arguments);this.innerHTML=Le??""}:pe==null?function(){this.innerHTML=""}:function(){this.innerHTML=pe}):this.node().innerHTML},ee.append=function(pe){return pe=Xe(pe),this.select(function(){return this.appendChild(pe.apply(this,arguments))})};function Xe(pe){function Le(){var ut=this.ownerDocument,ht=this.namespaceURI;return ht===ie&&ut.documentElement.namespaceURI===ie?ut.createElement(pe):ut.createElementNS(ht,pe)}function Ye(){return this.ownerDocument.createElementNS(pe.space,pe.local)}return typeof pe=="function"?pe:(pe=d.ns.qualify(pe)).local?Ye:Le}ee.insert=function(pe,Le){return pe=Xe(pe),Le=q(Le),this.select(function(){return this.insertBefore(pe.apply(this,arguments),Le.apply(this,arguments)||null)})},ee.remove=function(){return this.each(Me)};function Me(){var pe=this.parentNode;pe&&pe.removeChild(this)}ee.data=function(pe,Le){var Ye=-1,ut=this.length,ht,xt;if(!arguments.length){for(pe=new Array(ut=(ht=this[0]).length);++Ye<ut;)(xt=ht[Ye])&&(pe[Ye]=xt.__data__);return pe}function zt(Ar,Vr){var Kr,aa=Ar.length,ja=Vr.length,la=Math.min(aa,ja),Ta=new Array(ja),ka=new Array(ja),Na=new Array(aa),qa,Ma;if(Le){var _n=new S,Zn=new Array(aa),Vn;for(Kr=-1;++Kr<aa;)(qa=Ar[Kr])&&(_n.has(Vn=Le.call(qa,qa.__data__,Kr))?Na[Kr]=qa:_n.set(Vn,qa),Zn[Kr]=Vn);for(Kr=-1;++Kr<ja;)(qa=_n.get(Vn=Le.call(Vr,Ma=Vr[Kr],Kr)))?qa!==!0&&(Ta[Kr]=qa,qa.__data__=Ma):ka[Kr]=xe(Ma),_n.set(Vn,!0);for(Kr=-1;++Kr<aa;)Kr in Zn&&_n.get(Zn[Kr])!==!0&&(Na[Kr]=Ar[Kr])}else{for(Kr=-1;++Kr<la;)qa=Ar[Kr],Ma=Vr[Kr],qa?(qa.__data__=Ma,Ta[Kr]=qa):ka[Kr]=xe(Ma);for(;Kr<ja;++Kr)ka[Kr]=xe(Vr[Kr]);for(;Kr<aa;++Kr)Na[Kr]=Ar[Kr]}ka.update=Ta,ka.parentNode=Ta.parentNode=Na.parentNode=Ar.parentNode,Dt.push(ka),$t.push(Ta),Cr.push(Na)}var Dt=rt([]),$t=J([]),Cr=J([]);if(typeof pe=="function")for(;++Ye<ut;)zt(ht=this[Ye],pe.call(ht,ht.parentNode.__data__,Ye));else for(;++Ye<ut;)zt(ht=this[Ye],pe);return $t.enter=function(){return Dt},$t.exit=function(){return Cr},$t};function xe(pe){return{__data__:pe}}ee.datum=function(pe){return arguments.length?this.property("__data__",pe):this.property("__data__")},ee.filter=function(pe){var Le=[],Ye,ut,ht;typeof pe!="function"&&(pe=ce(pe));for(var xt=0,zt=this.length;xt<zt;xt++){Le.push(Ye=[]),Ye.parentNode=(ut=this[xt]).parentNode;for(var Dt=0,$t=ut.length;Dt<$t;Dt++)(ht=ut[Dt])&&pe.call(ht,ht.__data__,Dt,xt)&&Ye.push(ht)}return J(Le)};function ce(pe){return function(){return re(this,pe)}}ee.order=function(){for(var pe=-1,Le=this.length;++pe<Le;)for(var Ye=this[pe],ut=Ye.length-1,ht=Ye[ut],xt;--ut>=0;)(xt=Ye[ut])&&(ht&&ht!==xt.nextSibling&&ht.parentNode.insertBefore(xt,ht),ht=xt);return this},ee.sort=function(pe){pe=Re.apply(this,arguments);for(var Le=-1,Ye=this.length;++Le<Ye;)this[Le].sort(pe);return this.order()};function Re(pe){return arguments.length||(pe=s),function(Le,Ye){return Le&&Ye?pe(Le.__data__,Ye.__data__):!Le-!Ye}}ee.each=function(pe){return $e(this,function(Le,Ye,ut){pe.call(Le,Le.__data__,Ye,ut)})};function $e(pe,Le){for(var Ye=0,ut=pe.length;Ye<ut;Ye++)for(var ht=pe[Ye],xt=0,zt=ht.length,Dt;xt<zt;xt++)(Dt=ht[xt])&&Le(Dt,xt,Ye);return pe}ee.call=function(pe){var Le=A(arguments);return pe.apply(Le[0]=this,Le),this},ee.empty=function(){return!this.node()},ee.node=function(){for(var pe=0,Le=this.length;pe<Le;pe++)for(var Ye=this[pe],ut=0,ht=Ye.length;ut<ht;ut++){var xt=Ye[ut];if(xt)return xt}return null},ee.size=function(){var pe=0;return $e(this,function(){++pe}),pe};function rt(pe){return j(pe,Je),pe}var Je=[];d.selection.enter=rt,d.selection.enter.prototype=Je,Je.append=ee.append,Je.empty=ee.empty,Je.node=ee.node,Je.call=ee.call,Je.size=ee.size,Je.select=function(pe){for(var Le=[],Ye,ut,ht,xt,zt,Dt=-1,$t=this.length;++Dt<$t;){ht=(xt=this[Dt]).update,Le.push(Ye=[]),Ye.parentNode=xt.parentNode;for(var Cr=-1,Ar=xt.length;++Cr<Ar;)(zt=xt[Cr])?(Ye.push(ht[Cr]=ut=pe.call(xt.parentNode,zt.__data__,Cr,Dt)),ut.__data__=zt.__data__):Ye.push(null)}return J(Le)},Je.insert=function(pe,Le){return arguments.length<2&&(Le=At(this)),ee.insert.call(this,pe,Le)};function At(pe){var Le,Ye;return function(ut,ht,xt){var zt=pe[xt].update,Dt=zt.length,$t;for(xt!=Ye&&(Ye=xt,Le=0),ht>=Le&&(Le=ht+1);!($t=zt[Le])&&++Le<Dt;);return $t}}d.select=function(pe){var Le;return typeof pe=="string"?(Le=[$(pe,E)],Le.parentNode=E.documentElement):(Le=[pe],Le.parentNode=e(pe)),J([Le])},d.selectAll=function(pe){var Le;return typeof pe=="string"?(Le=A(X(pe,E)),Le.parentNode=E.documentElement):(Le=A(pe),Le.parentNode=null),J([Le])},ee.on=function(pe,Le,Ye){var ut=arguments.length;if(ut<3){if(typeof pe!="string"){ut<2&&(Le=!1);for(Ye in pe)this.each(St(Ye,pe[Ye],Le));return this}if(ut<2)return(ut=this.node()["__on"+pe])&&ut._;Ye=!1}return this.each(St(pe,Le,Ye))};function St(pe,Le,Ye){var ut="__on"+pe,ht=pe.indexOf("."),xt=Ut;ht>0&&(pe=pe.slice(0,ht));var zt=Rt.get(pe);zt&&(pe=zt,xt=ir);function Dt(){var Ar=this[ut];Ar&&(this.removeEventListener(pe,Ar,Ar.$),delete this[ut])}function $t(){var Ar=xt(Le,A(arguments));Dt.call(this),this.addEventListener(pe,this[ut]=Ar,Ar.$=Ye),Ar._=Le}function Cr(){var Ar=new RegExp("^__on([^.]+)"+d.requote(pe)+"$"),Vr;for(var Kr in this)if(Vr=Kr.match(Ar)){var aa=this[Kr];this.removeEventListener(Vr[1],aa,aa.$),delete this[Kr]}}return ht?Le?$t:Dt:Le?N:Cr}var Rt=d.map({mouseenter:"mouseover",mouseleave:"mouseout"});E&&Rt.forEach(function(pe){"on"+pe in E&&Rt.remove(pe)});function Ut(pe,Le){return function(Ye){var ut=d.event;d.event=Ye,Le[0]=this.__data__;try{pe.apply(this,Le)}finally{d.event=ut}}}function ir(pe,Le){var Ye=Ut(pe,Le);return function(ut){var ht=this,xt=ut.relatedTarget;(!xt||xt!==ht&&!(xt.compareDocumentPosition(ht)&8))&&Ye.call(ht,ut)}}var ar,Mr=0;function fr(pe){var Le=".dragsuppress-"+ ++Mr,Ye="click"+Le,ut=d.select(t(pe)).on("touchmove"+Le,Q).on("dragstart"+Le,Q).on("selectstart"+Le,Q);if(ar==null&&(ar="onselectstart"in pe?!1:O(pe.style,"userSelect")),ar){var ht=e(pe).style,xt=ht[ar];ht[ar]="none"}return function(zt){if(ut.on(Le,null),ar&&(ht[ar]=xt),zt){var Dt=function(){ut.on(Ye,null)};ut.on(Ye,function(){Q(),Dt()},!0),setTimeout(Dt,0)}}}d.mouse=function(pe){return pt(pe,ue())};var dr=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function pt(pe,Le){Le.changedTouches&&(Le=Le.changedTouches[0]);var Ye=pe.ownerSVGElement||pe;if(Ye.createSVGPoint){var ut=Ye.createSVGPoint();if(dr<0){var ht=t(pe);if(ht.scrollX||ht.scrollY){Ye=d.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var xt=Ye[0][0].getScreenCTM();dr=!(xt.f||xt.e),Ye.remove()}}return dr?(ut.x=Le.pageX,ut.y=Le.pageY):(ut.x=Le.clientX,ut.y=Le.clientY),ut=ut.matrixTransform(pe.getScreenCTM().inverse()),[ut.x,ut.y]}var zt=pe.getBoundingClientRect();return[Le.clientX-zt.left-pe.clientLeft,Le.clientY-zt.top-pe.clientTop]}d.touch=function(pe,Le,Ye){if(arguments.length<3&&(Ye=Le,Le=ue().changedTouches),Le){for(var ut=0,ht=Le.length,xt;ut<ht;++ut)if((xt=Le[ut]).identifier===Ye)return pt(pe,xt)}},d.behavior.drag=function(){var pe=oe(ht,"drag","dragstart","dragend"),Le=null,Ye=xt(N,d.mouse,t,"mousemove","mouseup"),ut=xt(ze,d.touch,F,"touchmove","touchend");function ht(){this.on("mousedown.drag",Ye).on("touchstart.drag",ut)}function xt(zt,Dt,$t,Cr,Ar){return function(){var Vr=this,Kr=d.event.target.correspondingElement||d.event.target,aa=Vr.parentNode,ja=pe.of(Vr,arguments),la=0,Ta=zt(),ka=".drag"+(Ta==null?"":"-"+Ta),Na,qa=d.select($t(Kr)).on(Cr+ka,Zn).on(Ar+ka,Vn),Ma=fr(Kr),_n=Dt(aa,Ta);Le?(Na=Le.apply(Vr,arguments),Na=[Na.x-_n[0],Na.y-_n[1]]):Na=[0,0],ja({type:"dragstart"});function Zn(){var Xn=Dt(aa,Ta),vi,bi;Xn&&(vi=Xn[0]-_n[0],bi=Xn[1]-_n[1],la|=vi|bi,_n=Xn,ja({type:"drag",x:Xn[0]+Na[0],y:Xn[1]+Na[1],dx:vi,dy:bi}))}function Vn(){Dt(aa,Ta)&&(qa.on(Cr+ka,null).on(Ar+ka,null),Ma(la),ja({type:"dragend"}))}}}return ht.origin=function(zt){return arguments.length?(Le=zt,ht):Le},d.rebind(ht,pe,"on")};function ze(){return d.event.changedTouches[0].identifier}d.touches=function(pe,Le){return arguments.length<2&&(Le=ue().touches),Le?A(Le).map(function(Ye){var ut=pt(pe,Ye);return ut.identifier=Ye.identifier,ut}):[]};var Ge=1e-6,Oe=Ge*Ge,ve=Math.PI,ye=2*ve,be=ye-Ge,Pe=ve/2,We=ve/180,ct=180/ve;function _t(pe,Le,Ye){return(Le[0]-pe[0])*(Ye[1]-pe[1])-(Le[1]-pe[1])*(Ye[0]-pe[0])}function Mt(pe){return pe>1?Pe:pe<-1?-Pe:Math.asin(pe)}function Nt(pe){return((pe=Math.exp(pe))-1/pe)/2}function Bt(pe){return((pe=Math.exp(pe))+1/pe)/2}function qt(pe){return((pe=Math.exp(2*pe))-1)/(pe+1)}var Zt=Math.SQRT2,lr=2,ta=4;d.interpolateZoom=function(pe,Le){var Ye=pe[0],ut=pe[1],ht=pe[2],xt=Le[0],zt=Le[1],Dt=Le[2],$t=xt-Ye,Cr=zt-ut,Ar=$t*$t+Cr*Cr,Vr,Kr;if(Ar<Oe)Kr=Math.log(Dt/ht)/Zt,Vr=function(Na){return[Ye+Na*$t,ut+Na*Cr,ht*Math.exp(Zt*Na*Kr)]};else{var aa=Math.sqrt(Ar),ja=(Dt*Dt-ht*ht+ta*Ar)/(2*ht*lr*aa),la=(Dt*Dt-ht*ht-ta*Ar)/(2*Dt*lr*aa),Ta=Math.log(Math.sqrt(ja*ja+1)-ja),ka=Math.log(Math.sqrt(la*la+1)-la);Kr=(ka-Ta)/Zt,Vr=function(Na){var qa=Na*Kr,Ma=Bt(Ta),_n=ht/(lr*aa)*(Ma*qt(Zt*qa+Ta)-Nt(Ta));return[Ye+_n*$t,ut+_n*Cr,ht*Ma/Bt(Zt*qa+Ta)]}}return Vr.duration=Kr*1e3,Vr},d.behavior.zoom=function(){var pe={x:0,y:0,k:1},Le,Ye,ut,ht=[960,500],xt=da,zt=250,Dt=0,$t="mousedown.zoom",Cr="mousemove.zoom",Ar="mouseup.zoom",Vr,Kr="touchstart.zoom",aa,ja=oe(qa,"zoomstart","zoom","zoomend"),la,Ta,ka,Na;ma||(ma="onwheel"in E?(wa=function(){return-d.event.deltaY*(d.event.deltaMode?120:1)},"wheel"):"onmousewheel"in E?(wa=function(){return d.event.wheelDelta},"mousewheel"):(wa=function(){return-d.event.detail},"MozMousePixelScroll"));function qa($n){$n.on($t,to).on(ma+".zoom",fl).on("dblclick.zoom",Is).on(Kr,Wo)}qa.event=function($n){$n.each(function(){var mo=ja.of(this,arguments),Bo=pe;yi?d.select(this).transition().each("start.zoom",function(){pe=this.__chart__||{x:0,y:0,k:1},bi(mo)}).tween("zoom:zoom",function(){var Rs=ht[0],ms=ht[1],$l=Ye?Ye[0]:Rs/2,as=Ye?Ye[1]:ms/2,Ss=d.interpolateZoom([($l-pe.x)/pe.k,(as-pe.y)/pe.k,Rs/pe.k],[($l-Bo.x)/Bo.k,(as-Bo.y)/Bo.k,Rs/Bo.k]);return function(Au){var nl=Ss(Au),cr=Rs/nl[2];this.__chart__=pe={x:$l-nl[0]*cr,y:as-nl[1]*cr,k:cr},Ro(mo)}}).each("interrupt.zoom",function(){Ai(mo)}).each("end.zoom",function(){Ai(mo)}):(this.__chart__=pe,bi(mo),Ro(mo),Ai(mo))})},qa.translate=function($n){return arguments.length?(pe={x:+$n[0],y:+$n[1],k:pe.k},vi(),qa):[pe.x,pe.y]},qa.scale=function($n){return arguments.length?(pe={x:pe.x,y:pe.y,k:null},Zn(+$n),vi(),qa):pe.k},qa.scaleExtent=function($n){return arguments.length?(xt=$n==null?da:[+$n[0],+$n[1]],qa):xt},qa.center=function($n){return arguments.length?(ut=$n&&[+$n[0],+$n[1]],qa):ut},qa.size=function($n){return arguments.length?(ht=$n&&[+$n[0],+$n[1]],qa):ht},qa.duration=function($n){return arguments.length?(zt=+$n,qa):zt},qa.x=function($n){return arguments.length?(Ta=$n,la=$n.copy(),pe={x:0,y:0,k:1},qa):Ta},qa.y=function($n){return arguments.length?(Na=$n,ka=$n.copy(),pe={x:0,y:0,k:1},qa):Na};function Ma($n){return[($n[0]-pe.x)/pe.k,($n[1]-pe.y)/pe.k]}function _n($n){return[$n[0]*pe.k+pe.x,$n[1]*pe.k+pe.y]}function Zn($n){pe.k=Math.max(xt[0],Math.min(xt[1],$n))}function Vn($n,mo){mo=_n(mo),pe.x+=$n[0]-mo[0],pe.y+=$n[1]-mo[1]}function Xn($n,mo,Bo,Rs){$n.__chart__={x:pe.x,y:pe.y,k:pe.k},Zn(Math.pow(2,Rs)),Vn(Ye=mo,Bo),$n=d.select($n),zt>0&&($n=$n.transition().duration(zt)),$n.call(qa.event)}function vi(){Ta&&Ta.domain(la.range().map(function($n){return($n-pe.x)/pe.k}).map(la.invert)),Na&&Na.domain(ka.range().map(function($n){return($n-pe.y)/pe.k}).map(ka.invert))}function bi($n){Dt++||$n({type:"zoomstart"})}function Ro($n){vi(),$n({type:"zoom",scale:pe.k,translate:[pe.x,pe.y]})}function Ai($n){--Dt||($n({type:"zoomend"}),Ye=null)}function to(){var $n=this,mo=ja.of($n,arguments),Bo=0,Rs=d.select(t($n)).on(Cr,as).on(Ar,Ss),ms=Ma(d.mouse($n)),$l=fr($n);Fa.call($n),bi(mo);function as(){Bo=1,Vn(d.mouse($n),ms),Ro(mo)}function Ss(){Rs.on(Cr,null).on(Ar,null),$l(Bo),Ai(mo)}}function Wo(){var $n=this,mo=ja.of($n,arguments),Bo={},Rs=0,ms,$l=".zoom-"+d.event.changedTouches[0].identifier,as="touchmove"+$l,Ss="touchend"+$l,Au=[],nl=d.select($n),cr=fr($n);xa(),bi(mo),nl.on($t,null).on(Kr,xa);function fa(){var Da=d.touches($n);return ms=pe.k,Da.forEach(function(Ua){Ua.identifier in Bo&&(Bo[Ua.identifier]=Ma(Ua))}),Da}function xa(){var Da=d.event.target;d.select(Da).on(as,fn).on(Ss,Rn),Au.push(Da);for(var Ua=d.event.changedTouches,Gn=0,jn=Ua.length;Gn<jn;++Gn)Bo[Ua[Gn].identifier]=null;var Wn=fa(),ri=Date.now();if(Wn.length===1){if(ri-aa<500){var Ki=Wn[0];Xn($n,Ki,Bo[Ki.identifier],Math.floor(Math.log(pe.k)/Math.LN2)+1),Q()}aa=ri}else if(Wn.length>1){var Ki=Wn[0],Si=Wn[1],ui=Ki[0]-Si[0],On=Ki[1]-Si[1];Rs=ui*ui+On*On}}function fn(){var Da=d.touches($n),Ua,Gn,jn,Wn;Fa.call($n);for(var ri=0,Ki=Da.length;ri<Ki;++ri,Wn=null)if(jn=Da[ri],Wn=Bo[jn.identifier]){if(Gn)break;Ua=jn,Gn=Wn}if(Wn){var Si=(Si=jn[0]-Ua[0])*Si+(Si=jn[1]-Ua[1])*Si,ui=Rs&&Math.sqrt(Si/Rs);Ua=[(Ua[0]+jn[0])/2,(Ua[1]+jn[1])/2],Gn=[(Gn[0]+Wn[0])/2,(Gn[1]+Wn[1])/2],Zn(ui*ms)}aa=null,Vn(Ua,Gn),Ro(mo)}function Rn(){if(d.event.touches.length){for(var Da=d.event.changedTouches,Ua=0,Gn=Da.length;Ua<Gn;++Ua)delete Bo[Da[Ua].identifier];for(var jn in Bo)return void fa()}d.selectAll(Au).on($l,null),nl.on($t,to).on(Kr,Wo),cr(),Ai(mo)}}function fl(){var $n=ja.of(this,arguments);Vr?clearTimeout(Vr):(Fa.call(this),Le=Ma(Ye=ut||d.mouse(this)),bi($n)),Vr=setTimeout(function(){Vr=null,Ai($n)},50),Q(),Zn(Math.pow(2,wa()*.002)*pe.k),Vn(Ye,Le),Ro($n)}function Is(){var $n=d.mouse(this),mo=Math.log(pe.k)/Math.LN2;Xn(this,$n,Ma($n),d.event.shiftKey?Math.ceil(mo)-1:Math.floor(mo)+1)}return d.rebind(qa,ja,"on")};var da=[0,1/0],wa,ma;d.color=Ia;function Ia(){}Ia.prototype.toString=function(){return this.rgb()+""},d.hsl=va;function va(pe,Le,Ye){return this instanceof va?(this.h=+pe,this.s=+Le,void(this.l=+Ye)):arguments.length<2?pe instanceof va?new va(pe.h,pe.s,pe.l):kr(""+pe,zr,va):new va(pe,Le,Ye)}var La=va.prototype=new Ia;La.brighter=function(pe){return pe=Math.pow(.7,arguments.length?pe:1),new va(this.h,this.s,this.l/pe)},La.darker=function(pe){return pe=Math.pow(.7,arguments.length?pe:1),new va(this.h,this.s,pe*this.l)},La.rgb=function(){return Ja(this.h,this.s,this.l)};function Ja(pe,Le,Ye){var ut,ht;pe=isNaN(pe)?0:(pe%=360)<0?pe+360:pe,Le=isNaN(Le)||Le<0?0:Le>1?1:Le,Ye=Ye<0?0:Ye>1?1:Ye,ht=Ye<=.5?Ye*(1+Le):Ye+Le-Ye*Le,ut=2*Ye-ht;function xt(Dt){return Dt>360?Dt-=360:Dt<0&&(Dt+=360),Dt<60?ut+(ht-ut)*Dt/60:Dt<180?ht:Dt<240?ut+(ht-ut)*(240-Dt)/60:ut}function zt(Dt){return Math.round(xt(Dt)*255)}return new vt(zt(pe+120),zt(pe),zt(pe-120))}d.hcl=Vt;function Vt(pe,Le,Ye){return this instanceof Vt?(this.h=+pe,this.c=+Le,void(this.l=+Ye)):arguments.length<2?pe instanceof Vt?new Vt(pe.h,pe.c,pe.l):pe instanceof Ot?Pa(pe.l,pe.a,pe.b):Pa((pe=Pr((pe=d.rgb(pe)).r,pe.g,pe.b)).l,pe.a,pe.b):new Vt(pe,Le,Ye)}var Lt=Vt.prototype=new Ia;Lt.brighter=function(pe){return new Vt(this.h,this.c,Math.min(100,this.l+gr*(arguments.length?pe:1)))},Lt.darker=function(pe){return new Vt(this.h,this.c,Math.max(0,this.l-gr*(arguments.length?pe:1)))},Lt.rgb=function(){return jt(this.h,this.c,this.l).rgb()};function jt(pe,Le,Ye){return isNaN(pe)&&(pe=0),isNaN(Le)&&(Le=0),new Ot(Ye,Math.cos(pe*=We)*Le,Math.sin(pe)*Le)}d.lab=Ot;function Ot(pe,Le,Ye){return this instanceof Ot?(this.l=+pe,this.a=+Le,void(this.b=+Ye)):arguments.length<2?pe instanceof Ot?new Ot(pe.l,pe.a,pe.b):pe instanceof Vt?jt(pe.h,pe.c,pe.l):Pr((pe=vt(pe)).r,pe.g,pe.b):new Ot(pe,Le,Ye)}var gr=18,Br=.95047,na=1,Ur=1.08883,pa=Ot.prototype=new Ia;pa.brighter=function(pe){return new Ot(Math.min(100,this.l+gr*(arguments.length?pe:1)),this.a,this.b)},pa.darker=function(pe){return new Ot(Math.max(0,this.l-gr*(arguments.length?pe:1)),this.a,this.b)},pa.rgb=function(){return Aa(this.l,this.a,this.b)};function Aa(pe,Le,Ye){var ut=(pe+16)/116,ht=ut+Le/500,xt=ut-Ye/200;return ht=sa(ht)*Br,ut=sa(ut)*na,xt=sa(xt)*Ur,new vt(dt(3.2404542*ht-1.5371385*ut-.4985314*xt),dt(-.969266*ht+1.8760108*ut+.041556*xt),dt(.0556434*ht-.2040259*ut+1.0572252*xt))}function Pa(pe,Le,Ye){return pe>0?new Vt(Math.atan2(Ye,Le)*ct,Math.sqrt(Le*Le+Ye*Ye),pe):new Vt(NaN,NaN,pe)}function sa(pe){return pe>.206893034?pe*pe*pe:(pe-4/29)/7.787037}function Ba(pe){return pe>.008856?Math.pow(pe,1/3):7.787037*pe+4/29}function dt(pe){return Math.round(255*(pe<=.00304?12.92*pe:1.055*Math.pow(pe,1/2.4)-.055))}d.rgb=vt;function vt(pe,Le,Ye){return this instanceof vt?(this.r=~~pe,this.g=~~Le,void(this.b=~~Ye)):arguments.length<2?pe instanceof vt?new vt(pe.r,pe.g,pe.b):kr(""+pe,vt,Ja):new vt(pe,Le,Ye)}function Lr(pe){return new vt(pe>>16,pe>>8&255,pe&255)}function Er(pe){return Lr(pe)+""}var _r=vt.prototype=new Ia;_r.brighter=function(pe){pe=Math.pow(.7,arguments.length?pe:1);var Le=this.r,Ye=this.g,ut=this.b,ht=30;return!Le&&!Ye&&!ut?new vt(ht,ht,ht):(Le&&Le<ht&&(Le=ht),Ye&&Ye<ht&&(Ye=ht),ut&&ut<ht&&(ut=ht),new vt(Math.min(255,Le/pe),Math.min(255,Ye/pe),Math.min(255,ut/pe)))},_r.darker=function(pe){return pe=Math.pow(.7,arguments.length?pe:1),new vt(pe*this.r,pe*this.g,pe*this.b)},_r.hsl=function(){return zr(this.r,this.g,this.b)},_r.toString=function(){return"#"+yr(this.r)+yr(this.g)+yr(this.b)};function yr(pe){return pe<16?"0"+Math.max(0,pe).toString(16):Math.min(255,pe).toString(16)}function kr(pe,Le,Ye){var ut=0,ht=0,xt=0,zt,Dt,$t;if(zt=/([a-z]+)\((.*)\)/.exec(pe=pe.toLowerCase()),zt)switch(Dt=zt[2].split(","),zt[1]){case"hsl":return Ye(parseFloat(Dt[0]),parseFloat(Dt[1])/100,parseFloat(Dt[2])/100);case"rgb":return Le(Zr(Dt[0]),Zr(Dt[1]),Zr(Dt[2]))}return($t=Jr.get(pe))?Le($t.r,$t.g,$t.b):(pe!=null&&pe.charAt(0)==="#"&&!isNaN($t=parseInt(pe.slice(1),16))&&(pe.length===4?(ut=($t&3840)>>4,ut=ut>>4|ut,ht=$t&240,ht=ht>>4|ht,xt=$t&15,xt=xt<<4|xt):pe.length===7&&(ut=($t&16711680)>>16,ht=($t&65280)>>8,xt=$t&255)),Le(ut,ht,xt))}function zr(pe,Le,Ye){var ut=Math.min(pe/=255,Le/=255,Ye/=255),ht=Math.max(pe,Le,Ye),xt=ht-ut,zt,Dt,$t=(ht+ut)/2;return xt?(Dt=$t<.5?xt/(ht+ut):xt/(2-ht-ut),pe==ht?zt=(Le-Ye)/xt+(Le<Ye?6:0):Le==ht?zt=(Ye-pe)/xt+2:zt=(pe-Le)/xt+4,zt*=60):(zt=NaN,Dt=$t>0&&$t<1?0:zt),new va(zt,Dt,$t)}function Pr(pe,Le,Ye){pe=Hr(pe),Le=Hr(Le),Ye=Hr(Ye);var ut=Ba((.4124564*pe+.3575761*Le+.1804375*Ye)/Br),ht=Ba((.2126729*pe+.7151522*Le+.072175*Ye)/na),xt=Ba((.0193339*pe+.119192*Le+.9503041*Ye)/Ur);return Ot(116*ht-16,500*(ut-ht),200*(ht-xt))}function Hr(pe){return(pe/=255)<=.04045?pe/12.92:Math.pow((pe+.055)/1.055,2.4)}function Zr(pe){var Le=parseFloat(pe);return pe.charAt(pe.length-1)==="%"?Math.round(Le*2.55):Le}var Jr=d.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});Jr.forEach(function(pe,Le){Jr.set(pe,Lr(Le))});function wt(pe){return typeof pe=="function"?pe:function(){return pe}}d.functor=wt,d.xhr=Qt(F);function Qt(pe){return function(Le,Ye,ut){return arguments.length===2&&typeof Ye=="function"&&(ut=Ye,Ye=null),mr(Le,Ye,pe,ut)}}function mr(pe,Le,Ye,ut){var ht={},xt=d.dispatch("beforesend","progress","load","error"),zt={},Dt=new XMLHttpRequest,$t=null;self.XDomainRequest&&!("withCredentials"in Dt)&&/^(http(s)?:)?\/\//.test(pe)&&(Dt=new XDomainRequest),"onload"in Dt?Dt.onload=Dt.onerror=Cr:Dt.onreadystatechange=function(){Dt.readyState>3&&Cr()};function Cr(){var Ar=Dt.status,Vr;if(!Ar&&oa(Dt)||Ar>=200&&Ar<300||Ar===304){try{Vr=Ye.call(ht,Dt)}catch(Kr){xt.error.call(ht,Kr);return}xt.load.call(ht,Vr)}else xt.error.call(ht,Dt)}return Dt.onprogress=function(Ar){var Vr=d.event;d.event=Ar;try{xt.progress.call(ht,Dt)}finally{d.event=Vr}},ht.header=function(Ar,Vr){return Ar=(Ar+"").toLowerCase(),arguments.length<2?zt[Ar]:(Vr==null?delete zt[Ar]:zt[Ar]=Vr+"",ht)},ht.mimeType=function(Ar){return arguments.length?(Le=Ar==null?null:Ar+"",ht):Le},ht.responseType=function(Ar){return arguments.length?($t=Ar,ht):$t},ht.response=function(Ar){return Ye=Ar,ht},["get","post"].forEach(function(Ar){ht[Ar]=function(){return ht.send.apply(ht,[Ar].concat(A(arguments)))}}),ht.send=function(Ar,Vr,Kr){if(arguments.length===2&&typeof Vr=="function"&&(Kr=Vr,Vr=null),Dt.open(Ar,pe,!0),Le!=null&&!("accept"in zt)&&(zt.accept=Le+",*/*"),Dt.setRequestHeader)for(var aa in zt)Dt.setRequestHeader(aa,zt[aa]);return Le!=null&&Dt.overrideMimeType&&Dt.overrideMimeType(Le),$t!=null&&(Dt.responseType=$t),Kr!=null&&ht.on("error",Kr).on("load",function(ja){Kr(null,ja)}),xt.beforesend.call(ht,Dt),Dt.send(Vr??null),ht},ht.abort=function(){return Dt.abort(),ht},d.rebind(ht,xt,"on"),ut==null?ht:ht.get($r(ut))}function $r(pe){return pe.length===1?function(Le,Ye){pe(Le==null?Ye:null)}:pe}function oa(pe){var Le=pe.responseType;return Le&&Le!=="text"?pe.response:pe.responseText}d.dsv=function(pe,Le){var Ye=new RegExp('["'+pe+`
|
2
2
|
]`),ut=pe.charCodeAt(0);function ht(Cr,Ar,Vr){arguments.length<3&&(Vr=Ar,Ar=null);var Kr=mr(Cr,Le,Ar==null?xt:zt(Ar),Vr);return Kr.row=function(aa){return arguments.length?Kr.response((Ar=aa)==null?xt:zt(aa)):Ar},Kr}function xt(Cr){return ht.parse(Cr.responseText)}function zt(Cr){return function(Ar){return ht.parse(Ar.responseText,Cr)}}ht.parse=function(Cr,Ar){var Vr;return ht.parseRows(Cr,function(Kr,aa){if(Vr)return Vr(Kr,aa-1);var ja=function(la){for(var Ta={},ka=Kr.length,Na=0;Na<ka;++Na)Ta[Kr[Na]]=la[Na];return Ta};Vr=Ar?function(la,Ta){return Ar(ja(la),Ta)}:ja})},ht.parseRows=function(Cr,Ar){var Vr={},Kr={},aa=[],ja=Cr.length,la=0,Ta=0,ka,Na;function qa(){if(la>=ja)return Kr;if(Na)return Na=!1,Vr;var _n=la;if(Cr.charCodeAt(_n)===34){for(var Zn=_n;Zn++<ja;)if(Cr.charCodeAt(Zn)===34){if(Cr.charCodeAt(Zn+1)!==34)break;++Zn}la=Zn+2;var Vn=Cr.charCodeAt(Zn+1);return Vn===13?(Na=!0,Cr.charCodeAt(Zn+2)===10&&++la):Vn===10&&(Na=!0),Cr.slice(_n+1,Zn).replace(/""/g,'"')}for(;la<ja;){var Vn=Cr.charCodeAt(la++),Xn=1;if(Vn===10)Na=!0;else if(Vn===13)Na=!0,Cr.charCodeAt(la)===10&&(++la,++Xn);else if(Vn!==ut)continue;return Cr.slice(_n,la-Xn)}return Cr.slice(_n)}for(;(ka=qa())!==Kr;){for(var Ma=[];ka!==Vr&&ka!==Kr;)Ma.push(ka),ka=qa();Ar&&(Ma=Ar(Ma,Ta++))==null||aa.push(Ma)}return aa},ht.format=function(Cr){if(Array.isArray(Cr[0]))return ht.formatRows(Cr);var Ar=new z,Vr=[];return Cr.forEach(function(Kr){for(var aa in Kr)Ar.has(aa)||Vr.push(Ar.add(aa))}),[Vr.map($t).join(pe)].concat(Cr.map(function(Kr){return Vr.map(function(aa){return $t(Kr[aa])}).join(pe)})).join(`
|
3
3
|
`)},ht.formatRows=function(Cr){return Cr.map(Dt).join(`
|
4
4
|
`)};function Dt(Cr){return Cr.map($t).join(pe)}function $t(Cr){return Ye.test(Cr)?'"'+Cr.replace(/\"/g,'""')+'"':Cr}return ht},d.csv=d.dsv(",","text/csv"),d.tsv=d.dsv(" ","text/tab-separated-values");var Sa,ga,ra,ya,gn=this[O(this,"requestAnimationFrame")]||function(pe){setTimeout(pe,17)};d.timer=function(){Wa.apply(this,arguments)};function Wa(pe,Le,Ye){var ut=arguments.length;ut<2&&(Le=0),ut<3&&(Ye=Date.now());var ht=Ye+Le,xt={c:pe,t:ht,n:null};return ga?ga.n=xt:Sa=xt,ga=xt,ra||(ya=clearTimeout(ya),ra=1,gn(Hn)),xt}function Hn(){var pe=qn(),Le=pi()-pe;Le>24?(isFinite(Le)&&(clearTimeout(ya),ya=setTimeout(Hn,Le)),ra=0):(ra=1,gn(Hn))}d.timer.flush=function(){qn(),pi()};function qn(){for(var pe=Date.now(),Le=Sa;Le;)pe>=Le.t&&Le.c(pe-Le.t)&&(Le.c=null),Le=Le.n;return pe}function pi(){for(var pe,Le=Sa,Ye=1/0;Le;)Le.c?(Le.t<Ye&&(Ye=Le.t),Le=(pe=Le).n):Le=pe?pe.n=Le.n:Sa=Le.n;return ga=pe,Ye}d.round=function(pe,Le){return Le?Math.round(pe*(Le=Math.pow(10,Le)))/Le:Math.round(pe)},d.geom={};function _i(pe){return pe[0]}function Ii(pe){return pe[1]}d.geom.hull=function(pe){var Le=_i,Ye=Ii;if(arguments.length)return ut(pe);function ut(ht){if(ht.length<3)return[];var xt=wt(Le),zt=wt(Ye),Dt,$t=ht.length,Cr=[],Ar=[];for(Dt=0;Dt<$t;Dt++)Cr.push([+xt.call(this,ht[Dt],Dt),+zt.call(this,ht[Dt],Dt),Dt]);for(Cr.sort(ti),Dt=0;Dt<$t;Dt++)Ar.push([Cr[Dt][0],-Cr[Dt][1]]);var Vr=fi(Cr),Kr=fi(Ar),aa=Kr[0]===Vr[0],ja=Kr[Kr.length-1]===Vr[Vr.length-1],la=[];for(Dt=Vr.length-1;Dt>=0;--Dt)la.push(ht[Cr[Vr[Dt]][2]]);for(Dt=+aa;Dt<Kr.length-ja;++Dt)la.push(ht[Cr[Kr[Dt]][2]]);return la}return ut.x=function(ht){return arguments.length?(Le=ht,ut):Le},ut.y=function(ht){return arguments.length?(Ye=ht,ut):Ye},ut};function fi(pe){for(var Le=pe.length,Ye=[0,1],ut=2,ht=2;ht<Le;ht++){for(;ut>1&&_t(pe[Ye[ut-2]],pe[Ye[ut-1]],pe[ht])<=0;)--ut;Ye[ut++]=ht}return Ye.slice(0,ut)}function ti(pe,Le){return pe[0]-Le[0]||pe[1]-Le[1]}d.geom.polygon=function(pe){return j(pe,xi),pe};var xi=d.geom.polygon.prototype=[];xi.area=function(){for(var pe=-1,Le=this.length,Ye,ut=this[Le-1],ht=0;++pe<Le;)Ye=ut,ut=this[pe],ht+=Ye[1]*ut[0]-Ye[0]*ut[1];return ht*.5},xi.centroid=function(pe){var Le=-1,Ye=this.length,ut=0,ht=0,xt,zt=this[Ye-1],Dt;for(arguments.length||(pe=-1/(6*this.area()));++Le<Ye;)xt=zt,zt=this[Le],Dt=xt[0]*zt[1]-zt[0]*xt[1],ut+=(xt[0]+zt[0])*Dt,ht+=(xt[1]+zt[1])*Dt;return[ut*pe,ht*pe]},xi.clip=function(pe){for(var Le,Ye=Yo(pe),ut=-1,ht=this.length-Yo(this),xt,zt,Dt=this[ht-1],$t,Cr,Ar;++ut<ht;){for(Le=pe.slice(),pe.length=0,$t=this[ut],Cr=Le[(zt=Le.length-Ye)-1],xt=-1;++xt<zt;)Ar=Le[xt],ho(Ar,Dt,$t)?(ho(Cr,Dt,$t)||pe.push(Io(Cr,Ar,Dt,$t)),pe.push(Ar)):ho(Cr,Dt,$t)&&pe.push(Io(Cr,Ar,Dt,$t)),Cr=Ar;Ye&&pe.push(pe[0]),Dt=$t}return pe};function ho(pe,Le,Ye){return(Ye[0]-Le[0])*(pe[1]-Le[1])<(Ye[1]-Le[1])*(pe[0]-Le[0])}function Io(pe,Le,Ye,ut){var ht=pe[0],xt=Ye[0],zt=Le[0]-ht,Dt=ut[0]-xt,$t=pe[1],Cr=Ye[1],Ar=Le[1]-$t,Vr=ut[1]-Cr,Kr=(Dt*($t-Cr)-Vr*(ht-xt))/(Vr*zt-Dt*Ar);return[ht+Kr*zt,$t+Kr*Ar]}function Yo(pe){var Le=pe[0],Ye=pe[pe.length-1];return!(Le[0]-Ye[0]||Le[1]-Ye[1])}var gi,Fi,wi,Eo=[],ko,Fo,Ri=[];function Qi(){rl(this),this.edge=this.site=this.circle=null}function Es(pe){var Le=Eo.pop()||new Qi;return Le.site=pe,Le}function ls(pe){ks(pe),wi.remove(pe),Eo.push(pe),rl(pe)}function ys(pe){var Le=pe.circle,Ye=Le.x,ut=Le.cy,ht={x:Ye,y:ut},xt=pe.P,zt=pe.N,Dt=[pe];ls(pe);for(var $t=xt;$t.circle&&l(Ye-$t.circle.x)<Ge&&l(ut-$t.circle.cy)<Ge;)xt=$t.P,Dt.unshift($t),ls($t),$t=xt;Dt.unshift($t),ks($t);for(var Cr=zt;Cr.circle&&l(Ye-Cr.circle.x)<Ge&&l(ut-Cr.circle.cy)<Ge;)zt=Cr.N,Dt.push(Cr),ls(Cr),Cr=zt;Dt.push(Cr),ks(Cr);var Ar=Dt.length,Vr;for(Vr=1;Vr<Ar;++Vr)Cr=Dt[Vr],$t=Dt[Vr-1],Ti(Cr.edge,$t.site,Cr.site,ht);$t=Dt[0],Cr=Dt[Ar-1],Cr.edge=No($t.site,Cr.site,null,ht),Co($t),Co(Cr)}function Oo(pe){for(var Le=pe.x,Ye=pe.y,ut,ht,xt,zt,Dt=wi._;Dt;)if(xt=an(Dt,Ye)-Le,xt>Ge)Dt=Dt.L;else if(zt=Le-Qn(Dt,Ye),zt>Ge){if(!Dt.R){ut=Dt;break}Dt=Dt.R}else{xt>-1e-6?(ut=Dt.P,ht=Dt):zt>-1e-6?(ut=Dt,ht=Dt.N):ut=ht=Dt;break}var $t=Es(pe);if(wi.insert(ut,$t),!(!ut&&!ht)){if(ut===ht){ks(ut),ht=Es(ut.site),wi.insert($t,ht),$t.edge=ht.edge=No(ut.site,$t.site),Co(ut),Co(ht);return}if(!ht){$t.edge=No(ut.site,$t.site);return}ks(ut),ks(ht);var Cr=ut.site,Ar=Cr.x,Vr=Cr.y,Kr=pe.x-Ar,aa=pe.y-Vr,ja=ht.site,la=ja.x-Ar,Ta=ja.y-Vr,ka=2*(Kr*Ta-aa*la),Na=Kr*Kr+aa*aa,qa=la*la+Ta*Ta,Ma={x:(Ta*Na-aa*qa)/ka+Ar,y:(Kr*qa-la*Na)/ka+Vr};Ti(ht.edge,Cr,ja,Ma),$t.edge=No(Cr,pe,null,Ma),ht.edge=No(pe,ja,null,Ma),Co(ut),Co(ht)}}function an(pe,Le){var Ye=pe.site,ut=Ye.x,ht=Ye.y,xt=ht-Le;if(!xt)return ut;var zt=pe.P;if(!zt)return-1/0;Ye=zt.site;var Dt=Ye.x,$t=Ye.y,Cr=$t-Le;if(!Cr)return Dt;var Ar=Dt-ut,Vr=1/xt-1/Cr,Kr=Ar/Cr;return Vr?(-Kr+Math.sqrt(Kr*Kr-2*Vr*(Ar*Ar/(-2*Cr)-$t+Cr/2+ht-xt/2)))/Vr+ut:(ut+Dt)/2}function Qn(pe,Le){var Ye=pe.N;if(Ye)return an(Ye,Le);var ut=pe.site;return ut.y===Le?ut.x:1/0}function qs(pe){this.site=pe,this.edges=[]}qs.prototype.prepare=function(){for(var pe=this.edges,Le=pe.length,Ye;Le--;)Ye=pe[Le].edge,(!Ye.b||!Ye.a)&&pe.splice(Le,1);return pe.sort(Gi),pe.length};function xs(pe){for(var Le=pe[0][0],Ye=pe[1][0],ut=pe[0][1],ht=pe[1][1],xt,zt,Dt,$t,Cr=Fi,Ar=Cr.length,Vr,Kr,aa,ja,la,Ta;Ar--;)if(Vr=Cr[Ar],!(!Vr||!Vr.prepare()))for(aa=Vr.edges,ja=aa.length,Kr=0;Kr<ja;)Ta=aa[Kr].end(),Dt=Ta.x,$t=Ta.y,la=aa[++Kr%ja].start(),xt=la.x,zt=la.y,(l(Dt-xt)>Ge||l($t-zt)>Ge)&&(aa.splice(Kr,0,new Cl(So(Vr.site,Ta,l(Dt-Le)<Ge&&ht-$t>Ge?{x:Le,y:l(xt-Le)<Ge?zt:ht}:l($t-ht)<Ge&&Ye-Dt>Ge?{x:l(zt-ht)<Ge?xt:Ye,y:ht}:l(Dt-Ye)<Ge&&$t-ut>Ge?{x:Ye,y:l(xt-Ye)<Ge?zt:ut}:l($t-ut)<Ge&&Dt-Le>Ge?{x:l(zt-ut)<Ge?xt:Le,y:ut}:null),Vr.site,null)),++ja)}function Gi(pe,Le){return Le.angle-pe.angle}function As(){rl(this),this.x=this.y=this.arc=this.site=this.cy=null}function Co(pe){var Le=pe.P,Ye=pe.N;if(!(!Le||!Ye)){var ut=Le.site,ht=pe.site,xt=Ye.site;if(ut!==xt){var zt=ht.x,Dt=ht.y,$t=ut.x-zt,Cr=ut.y-Dt,Ar=xt.x-zt,Ta=xt.y-Dt,Vr=2*($t*Ta-Cr*Ar);if(!(Vr>=-1e-12)){var Kr=$t*$t+Cr*Cr,aa=Ar*Ar+Ta*Ta,ja=(Ta*Kr-Cr*aa)/Vr,la=($t*aa-Ar*Kr)/Vr,Ta=la+Dt,ka=Ri.pop()||new As;ka.arc=pe,ka.site=ht,ka.x=ja+zt,ka.y=Ta+Math.sqrt(ja*ja+la*la),ka.cy=Ta,pe.circle=ka;for(var Na=null,qa=Fo._;qa;)if(ka.y<qa.y||ka.y===qa.y&&ka.x<=qa.x)if(qa.L)qa=qa.L;else{Na=qa.P;break}else if(qa.R)qa=qa.R;else{Na=qa;break}Fo.insert(Na,ka),Na||(ko=ka)}}}}function ks(pe){var Le=pe.circle;Le&&(Le.P||(ko=Le.N),Fo.remove(Le),Ri.push(Le),rl(Le),pe.circle=null)}function tl(pe,Le,Ye,ut){return function(ht){var xt=ht.a,zt=ht.b,Dt=xt.x,$t=xt.y,Cr=zt.x,Ar=zt.y,Vr=0,Kr=1,aa=Cr-Dt,ja=Ar-$t,la;if(la=pe-Dt,!(!aa&&la>0)){if(la/=aa,aa<0){if(la<Vr)return;la<Kr&&(Kr=la)}else if(aa>0){if(la>Kr)return;la>Vr&&(Vr=la)}if(la=Ye-Dt,!(!aa&&la<0)){if(la/=aa,aa<0){if(la>Kr)return;la>Vr&&(Vr=la)}else if(aa>0){if(la<Vr)return;la<Kr&&(Kr=la)}if(la=Le-$t,!(!ja&&la>0)){if(la/=ja,ja<0){if(la<Vr)return;la<Kr&&(Kr=la)}else if(ja>0){if(la>Kr)return;la>Vr&&(Vr=la)}if(la=ut-$t,!(!ja&&la<0)){if(la/=ja,ja<0){if(la>Kr)return;la>Vr&&(Vr=la)}else if(ja>0){if(la<Vr)return;la<Kr&&(Kr=la)}return Vr>0&&(ht.a={x:Dt+Vr*aa,y:$t+Vr*ja}),Kr<1&&(ht.b={x:Dt+Kr*aa,y:$t+Kr*ja}),ht}}}}}}function Dn(pe){for(var Le=gi,Ye=tl(pe[0][0],pe[0][1],pe[1][0],pe[1][1]),ut=Le.length,ht;ut--;)ht=Le[ut],(!vo(ht,pe)||!Ye(ht)||l(ht.a.x-ht.b.x)<Ge&&l(ht.a.y-ht.b.y)<Ge)&&(ht.a=ht.b=null,Le.splice(ut,1))}function vo(pe,Le){var Ye=pe.b;if(Ye)return!0;var ut=pe.a,ht=Le[0][0],xt=Le[1][0],zt=Le[0][1],Dt=Le[1][1],$t=pe.l,Cr=pe.r,Ar=$t.x,Vr=$t.y,Kr=Cr.x,aa=Cr.y,ja=(Ar+Kr)/2,la=(Vr+aa)/2,Ta,ka;if(aa===Vr){if(ja<ht||ja>=xt)return;if(Ar>Kr){if(!ut)ut={x:ja,y:zt};else if(ut.y>=Dt)return;Ye={x:ja,y:Dt}}else{if(!ut)ut={x:ja,y:Dt};else if(ut.y<zt)return;Ye={x:ja,y:zt}}}else if(Ta=(Ar-Kr)/(aa-Vr),ka=la-Ta*ja,Ta<-1||Ta>1)if(Ar>Kr){if(!ut)ut={x:(zt-ka)/Ta,y:zt};else if(ut.y>=Dt)return;Ye={x:(Dt-ka)/Ta,y:Dt}}else{if(!ut)ut={x:(Dt-ka)/Ta,y:Dt};else if(ut.y<zt)return;Ye={x:(zt-ka)/Ta,y:zt}}else if(Vr<aa){if(!ut)ut={x:ht,y:Ta*ht+ka};else if(ut.x>=xt)return;Ye={x:xt,y:Ta*xt+ka}}else{if(!ut)ut={x:xt,y:Ta*xt+ka};else if(ut.x<ht)return;Ye={x:ht,y:Ta*ht+ka}}return pe.a=ut,pe.b=Ye,!0}function Di(pe,Le){this.l=pe,this.r=Le,this.a=this.b=null}function No(pe,Le,Ye,ut){var ht=new Di(pe,Le);return gi.push(ht),Ye&&Ti(ht,pe,Le,Ye),ut&&Ti(ht,Le,pe,ut),Fi[pe.i].edges.push(new Cl(ht,pe,Le)),Fi[Le.i].edges.push(new Cl(ht,Le,pe)),ht}function So(pe,Le,Ye){var ut=new Di(pe,null);return ut.a=Le,ut.b=Ye,gi.push(ut),ut}function Ti(pe,Le,Ye,ut){!pe.a&&!pe.b?(pe.a=ut,pe.l=Le,pe.r=Ye):pe.l===Ye?pe.b=ut:pe.a=ut}function Cl(pe,Le,Ye){var ut=pe.a,ht=pe.b;this.edge=pe,this.site=Le,this.angle=Ye?Math.atan2(Ye.y-Le.y,Ye.x-Le.x):pe.l===Le?Math.atan2(ht.x-ut.x,ut.y-ht.y):Math.atan2(ut.x-ht.x,ht.y-ut.y)}Cl.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}};function ou(){this._=null}function rl(pe){pe.U=pe.C=pe.L=pe.R=pe.P=pe.N=null}ou.prototype={insert:function(pe,Le){var Ye,ut,ht;if(pe){if(Le.P=pe,Le.N=pe.N,pe.N&&(pe.N.P=Le),pe.N=Le,pe.R){for(pe=pe.R;pe.L;)pe=pe.L;pe.L=Le}else pe.R=Le;Ye=pe}else this._?(pe=Ns(this._),Le.P=null,Le.N=pe,pe.P=pe.L=Le,Ye=pe):(Le.P=Le.N=null,this._=Le,Ye=null);for(Le.L=Le.R=null,Le.U=Ye,Le.C=!0,pe=Le;Ye&&Ye.C;)ut=Ye.U,Ye===ut.L?(ht=ut.R,ht&&ht.C?(Ye.C=ht.C=!1,ut.C=!0,pe=ut):(pe===Ye.R&&(su(this,Ye),pe=Ye,Ye=pe.U),Ye.C=!1,ut.C=!0,Js(this,ut))):(ht=ut.L,ht&&ht.C?(Ye.C=ht.C=!1,ut.C=!0,pe=ut):(pe===Ye.L&&(Js(this,Ye),pe=Ye,Ye=pe.U),Ye.C=!1,ut.C=!0,su(this,ut))),Ye=pe.U;this._.C=!1},remove:function(pe){pe.N&&(pe.N.P=pe.P),pe.P&&(pe.P.N=pe.N),pe.N=pe.P=null;var Le=pe.U,Ye,ut=pe.L,ht=pe.R,xt,zt;if(ut?ht?xt=Ns(ht):xt=ut:xt=ht,Le?Le.L===pe?Le.L=xt:Le.R=xt:this._=xt,ut&&ht?(zt=xt.C,xt.C=pe.C,xt.L=ut,ut.U=xt,xt!==ht?(Le=xt.U,xt.U=pe.U,pe=xt.R,Le.L=pe,xt.R=ht,ht.U=xt):(xt.U=Le,Le=xt,pe=xt.R)):(zt=pe.C,pe=xt),pe&&(pe.U=Le),!zt){if(pe&&pe.C){pe.C=!1;return}do{if(pe===this._)break;if(pe===Le.L){if(Ye=Le.R,Ye.C&&(Ye.C=!1,Le.C=!0,su(this,Le),Ye=Le.R),Ye.L&&Ye.L.C||Ye.R&&Ye.R.C){(!Ye.R||!Ye.R.C)&&(Ye.L.C=!1,Ye.C=!0,Js(this,Ye),Ye=Le.R),Ye.C=Le.C,Le.C=Ye.R.C=!1,su(this,Le),pe=this._;break}}else if(Ye=Le.L,Ye.C&&(Ye.C=!1,Le.C=!0,Js(this,Le),Ye=Le.L),Ye.L&&Ye.L.C||Ye.R&&Ye.R.C){(!Ye.L||!Ye.L.C)&&(Ye.R.C=!1,Ye.C=!0,su(this,Ye),Ye=Le.L),Ye.C=Le.C,Le.C=Ye.L.C=!1,Js(this,Le),pe=this._;break}Ye.C=!0,pe=Le,Le=Le.U}while(!pe.C);pe&&(pe.C=!1)}}};function su(pe,Le){var Ye=Le,ut=Le.R,ht=Ye.U;ht?ht.L===Ye?ht.L=ut:ht.R=ut:pe._=ut,ut.U=ht,Ye.U=ut,Ye.R=ut.L,Ye.R&&(Ye.R.U=Ye),ut.L=Ye}function Js(pe,Le){var Ye=Le,ut=Le.L,ht=Ye.U;ht?ht.L===Ye?ht.L=ut:ht.R=ut:pe._=ut,ut.U=ht,Ye.U=ut,Ye.L=ut.R,Ye.L&&(Ye.L.U=Ye),ut.R=Ye}function Ns(pe){for(;pe.L;)pe=pe.L;return pe}function Vl(pe,Le){var Ye=pe.sort(nc).pop(),ut,ht,xt;for(gi=[],Fi=new Array(pe.length),wi=new ou,Fo=new ou;;)if(xt=ko,Ye&&(!xt||Ye.y<xt.y||Ye.y===xt.y&&Ye.x<xt.x))(Ye.x!==ut||Ye.y!==ht)&&(Fi[Ye.i]=new qs(Ye),Oo(Ye),ut=Ye.x,ht=Ye.y),Ye=pe.pop();else if(xt)ys(xt.arc);else break;Le&&(Dn(Le),xs(Le));var zt={cells:Fi,edges:gi};return wi=Fo=gi=Fi=null,zt}function nc(pe,Le){return Le.y-pe.y||Le.x-pe.x}d.geom.voronoi=function(pe){var Le=_i,Ye=Ii,ut=Le,ht=Ye,xt=Uu;if(pe)return zt(pe);function zt($t){var Cr=new Array($t.length),Ar=xt[0][0],Vr=xt[0][1],Kr=xt[1][0],aa=xt[1][1];return Vl(Dt($t),xt).cells.forEach(function(ja,la){var Ta=ja.edges,ka=ja.site,Na=Cr[la]=Ta.length?Ta.map(function(qa){var Ma=qa.start();return[Ma.x,Ma.y]}):ka.x>=Ar&&ka.x<=Kr&&ka.y>=Vr&&ka.y<=aa?[[Ar,aa],[Kr,aa],[Kr,Vr],[Ar,Vr]]:[];Na.point=$t[la]}),Cr}function Dt($t){return $t.map(function(Cr,Ar){return{x:Math.round(ut(Cr,Ar)/Ge)*Ge,y:Math.round(ht(Cr,Ar)/Ge)*Ge,i:Ar}})}return zt.links=function($t){return Vl(Dt($t)).edges.filter(function(Cr){return Cr.l&&Cr.r}).map(function(Cr){return{source:$t[Cr.l.i],target:$t[Cr.r.i]}})},zt.triangles=function($t){var Cr=[];return Vl(Dt($t)).cells.forEach(function(Ar,Vr){for(var Kr=Ar.site,aa=Ar.edges.sort(Gi),ja=-1,la=aa.length,Ta,ka=aa[la-1].edge,Na=ka.l===Kr?ka.r:ka.l;++ja<la;)Ta=Na,ka=aa[ja].edge,Na=ka.l===Kr?ka.r:ka.l,Vr<Ta.i&&Vr<Na.i&&Xu(Kr,Ta,Na)<0&&Cr.push([$t[Vr],$t[Ta.i],$t[Na.i]])}),Cr},zt.x=function($t){return arguments.length?(ut=wt(Le=$t),zt):Le},zt.y=function($t){return arguments.length?(ht=wt(Ye=$t),zt):Ye},zt.clipExtent=function($t){return arguments.length?(xt=$t??Uu,zt):xt===Uu?null:xt},zt.size=function($t){return arguments.length?zt.clipExtent($t&&[[0,0],$t]):xt===Uu?null:xt&&xt[1]},zt};var Uu=[[-1e6,-1e6],[1e6,1e6]];function Xu(pe,Le,Ye){return(pe.x-Ye.x)*(Le.y-pe.y)-(pe.x-Le.x)*(Ye.y-pe.y)}d.geom.delaunay=function(pe){return d.geom.voronoi().triangles(pe)},d.geom.quadtree=function(pe,Le,Ye,ut,ht){var xt=_i,zt=Ii,Dt;if(Dt=arguments.length)return xt=qf,zt=Cf,Dt===3&&(ht=Ye,ut=Le,Ye=Le=0),$t(pe);function $t(Cr){var Ar,Vr=wt(xt),Kr=wt(zt),aa,ja,la,Ta,ka,Na,qa,Ma;if(Le!=null)ka=Le,Na=Ye,qa=ut,Ma=ht;else if(qa=Ma=-(ka=Na=1/0),aa=[],ja=[],Ta=Cr.length,Dt)for(la=0;la<Ta;++la)Ar=Cr[la],Ar.x<ka&&(ka=Ar.x),Ar.y<Na&&(Na=Ar.y),Ar.x>qa&&(qa=Ar.x),Ar.y>Ma&&(Ma=Ar.y),aa.push(Ar.x),ja.push(Ar.y);else for(la=0;la<Ta;++la){var _n=+Vr(Ar=Cr[la],la),Zn=+Kr(Ar,la);_n<ka&&(ka=_n),Zn<Na&&(Na=Zn),_n>qa&&(qa=_n),Zn>Ma&&(Ma=Zn),aa.push(_n),ja.push(Zn)}var Vn=qa-ka,Xn=Ma-Na;Vn>Xn?Ma=Na+Vn:qa=ka+Xn;function vi(Ai,to,Wo,fl,Is,$n,mo,Bo){if(!(isNaN(Wo)||isNaN(fl)))if(Ai.leaf){var Rs=Ai.x,ms=Ai.y;if(Rs!=null)if(l(Rs-Wo)+l(ms-fl)<.01)bi(Ai,to,Wo,fl,Is,$n,mo,Bo);else{var $l=Ai.point;Ai.x=Ai.y=Ai.point=null,bi(Ai,$l,Rs,ms,Is,$n,mo,Bo),bi(Ai,to,Wo,fl,Is,$n,mo,Bo)}else Ai.x=Wo,Ai.y=fl,Ai.point=to}else bi(Ai,to,Wo,fl,Is,$n,mo,Bo)}function bi(Ai,to,Wo,fl,Is,$n,mo,Bo){var Rs=(Is+mo)*.5,ms=($n+Bo)*.5,$l=Wo>=Rs,as=fl>=ms,Ss=as<<1|$l;Ai.leaf=!1,Ai=Ai.nodes[Ss]||(Ai.nodes[Ss]=us()),$l?Is=Rs:mo=Rs,as?$n=ms:Bo=ms,vi(Ai,to,Wo,fl,Is,$n,mo,Bo)}var Ro=us();if(Ro.add=function(Ai){vi(Ro,Ai,+Vr(Ai,++la),+Kr(Ai,la),ka,Na,qa,Ma)},Ro.visit=function(Ai){ku(Ai,Ro,ka,Na,qa,Ma)},Ro.find=function(Ai){return Yc(Ro,Ai[0],Ai[1],ka,Na,qa,Ma)},la=-1,Le==null){for(;++la<Ta;)vi(Ro,Cr[la],aa[la],ja[la],ka,Na,qa,Ma);--la}else Cr.forEach(Ro.add);return aa=ja=Cr=Ar=null,Ro}return $t.x=function(Cr){return arguments.length?(xt=Cr,$t):xt},$t.y=function(Cr){return arguments.length?(zt=Cr,$t):zt},$t.extent=function(Cr){return arguments.length?(Cr==null?Le=Ye=ut=ht=null:(Le=+Cr[0][0],Ye=+Cr[0][1],ut=+Cr[1][0],ht=+Cr[1][1]),$t):Le==null?null:[[Le,Ye],[ut,ht]]},$t.size=function(Cr){return arguments.length?(Cr==null?Le=Ye=ut=ht=null:(Le=Ye=0,ut=+Cr[0],ht=+Cr[1]),$t):Le==null?null:[ut-Le,ht-Ye]},$t};function qf(pe){return pe.x}function Cf(pe){return pe.y}function us(){return{leaf:!0,nodes:[],point:null,x:null,y:null}}function ku(pe,Le,Ye,ut,ht,xt){if(!pe(Le,Ye,ut,ht,xt)){var zt=(Ye+ht)*.5,Dt=(ut+xt)*.5,$t=Le.nodes;$t[0]&&ku(pe,$t[0],Ye,ut,zt,Dt),$t[1]&&ku(pe,$t[1],zt,ut,ht,Dt),$t[2]&&ku(pe,$t[2],Ye,Dt,zt,xt),$t[3]&&ku(pe,$t[3],zt,Dt,ht,xt)}}function Yc(pe,Le,Ye,ut,ht,xt,zt){var Dt=1/0,$t;return function Cr(Ar,Vr,Kr,aa,ja){if(!(Vr>xt||Kr>zt||aa<ut||ja<ht)){if(la=Ar.point){var la,Ta=Le-Ar.x,ka=Ye-Ar.y,Na=Ta*Ta+ka*ka;if(Na<Dt){var qa=Math.sqrt(Dt=Na);ut=Le-qa,ht=Ye-qa,xt=Le+qa,zt=Ye+qa,$t=la}}for(var Ma=Ar.nodes,_n=(Vr+aa)*.5,Zn=(Kr+ja)*.5,Vn=Le>=_n,Xn=Ye>=Zn,vi=Xn<<1|Vn,bi=vi+4;vi<bi;++vi)if(Ar=Ma[vi&3])switch(vi&3){case 0:Cr(Ar,Vr,Kr,_n,Zn);break;case 1:Cr(Ar,_n,Kr,aa,Zn);break;case 2:Cr(Ar,Vr,Zn,_n,ja);break;case 3:Cr(Ar,_n,Zn,aa,ja);break}}}(pe,ut,ht,xt,zt),$t}d.interpolateRgb=Sl;function Sl(pe,Le){pe=d.rgb(pe),Le=d.rgb(Le);var Ye=pe.r,ut=pe.g,ht=pe.b,xt=Le.r-Ye,zt=Le.g-ut,Dt=Le.b-ht;return function($t){return"#"+yr(Math.round(Ye+xt*$t))+yr(Math.round(ut+zt*$t))+yr(Math.round(ht+Dt*$t))}}d.interpolateObject=ml;function ml(pe,Le){var Ye={},ut={},ht;for(ht in pe)ht in Le?Ye[ht]=es(pe[ht],Le[ht]):ut[ht]=pe[ht];for(ht in Le)ht in pe||(ut[ht]=Le[ht]);return function(xt){for(ht in Ye)ut[ht]=Ye[ht](xt);return ut}}d.interpolateNumber=Ml;function Ml(pe,Le){return pe=+pe,Le=+Le,function(Ye){return pe*(1-Ye)+Le*Ye}}d.interpolateString=ic;function ic(pe,Le){var Ye=Cs.lastIndex=Ll.lastIndex=0,ut,ht,xt,zt=-1,Dt=[],$t=[];for(pe=pe+"",Le=Le+"";(ut=Cs.exec(pe))&&(ht=Ll.exec(Le));)(xt=ht.index)>Ye&&(xt=Le.slice(Ye,xt),Dt[zt]?Dt[zt]+=xt:Dt[++zt]=xt),(ut=ut[0])===(ht=ht[0])?Dt[zt]?Dt[zt]+=ht:Dt[++zt]=ht:(Dt[++zt]=null,$t.push({i:zt,x:Ml(ut,ht)})),Ye=Ll.lastIndex;return Ye<Le.length&&(xt=Le.slice(Ye),Dt[zt]?Dt[zt]+=xt:Dt[++zt]=xt),Dt.length<2?$t[0]?(Le=$t[0].x,function(Cr){return Le(Cr)+""}):function(){return Le}:(Le=$t.length,function(Cr){for(var Ar=0,Vr;Ar<Le;++Ar)Dt[(Vr=$t[Ar]).i]=Vr.x(Cr);return Dt.join("")})}var Cs=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Ll=new RegExp(Cs.source,"g");d.interpolate=es;function es(pe,Le){for(var Ye=d.interpolators.length,ut;--Ye>=0&&!(ut=d.interpolators[Ye](pe,Le)););return ut}d.interpolators=[function(pe,Le){var Ye=typeof Le;return(Ye==="string"?Jr.has(Le.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(Le)?Sl:ic:Le instanceof Ia?Sl:Array.isArray(Le)?zs:Ye==="object"&&isNaN(Le)?ml:Ml)(pe,Le)}],d.interpolateArray=zs;function zs(pe,Le){var Ye=[],ut=[],ht=pe.length,xt=Le.length,zt=Math.min(pe.length,Le.length),Dt;for(Dt=0;Dt<zt;++Dt)Ye.push(es(pe[Dt],Le[Dt]));for(;Dt<ht;++Dt)ut[Dt]=pe[Dt];for(;Dt<xt;++Dt)ut[Dt]=Le[Dt];return function($t){for(Dt=0;Dt<zt;++Dt)ut[Dt]=Ye[Dt]($t);return ut}}var Yu=function(){return F},Xl=d.map({linear:Yu,poly:Mc,quad:function(){return oh},cubic:function(){return cs},sin:function(){return Cu},exp:function(){return ql},circle:function(){return hf},elastic:sc,back:Ec,bounce:function(){return _l}}),oc=d.map({in:F,out:ih,"in-out":Lo,"out-in":function(pe){return Lo(ih(pe))}});d.ease=function(pe){var Le=pe.indexOf("-"),Ye=Le>=0?pe.slice(0,Le):pe,ut=Le>=0?pe.slice(Le+1):"in";return Ye=Xl.get(Ye)||Yu,ut=oc.get(ut)||F,Hs(ut(Ye.apply(null,x.call(arguments,1))))};function Hs(pe){return function(Le){return Le<=0?0:Le>=1?1:pe(Le)}}function ih(pe){return function(Le){return 1-pe(1-Le)}}function Lo(pe){return function(Le){return .5*(Le<.5?pe(2*Le):2-pe(2-2*Le))}}function oh(pe){return pe*pe}function cs(pe){return pe*pe*pe}function co(pe){if(pe<=0)return 0;if(pe>=1)return 1;var Le=pe*pe,Ye=Le*pe;return 4*(pe<.5?Ye:3*(pe-Le)+Ye-.75)}function Mc(pe){return function(Le){return Math.pow(Le,pe)}}function Cu(pe){return 1-Math.cos(pe*Pe)}function ql(pe){return Math.pow(2,10*(pe-1))}function hf(pe){return 1-Math.sqrt(1-pe*pe)}function sc(pe,Le){var Ye;return arguments.length<2&&(Le=.45),arguments.length?Ye=Le/ye*Math.asin(1/pe):(pe=1,Ye=Le/4),function(ut){return 1+pe*Math.pow(2,-10*ut)*Math.sin((ut-Ye)*ye/Le)}}function Ec(pe){return pe||(pe=1.70158),function(Le){return Le*Le*((pe+1)*Le-pe)}}function _l(pe){return pe<1/2.75?7.5625*pe*pe:pe<2/2.75?7.5625*(pe-=1.5/2.75)*pe+.75:pe<2.5/2.75?7.5625*(pe-=2.25/2.75)*pe+.9375:7.5625*(pe-=2.625/2.75)*pe+.984375}d.interpolateHcl=Lf;function Lf(pe,Le){pe=d.hcl(pe),Le=d.hcl(Le);var Ye=pe.h,ut=pe.c,ht=pe.l,xt=Le.h-Ye,zt=Le.c-ut,Dt=Le.l-ht;return isNaN(zt)&&(zt=0,ut=isNaN(ut)?Le.c:ut),isNaN(xt)?(xt=0,Ye=isNaN(Ye)?Le.h:Ye):xt>180?xt-=360:xt<-180&&(xt+=360),function($t){return jt(Ye+xt*$t,ut+zt*$t,ht+Dt*$t)+""}}d.interpolateHsl=vf;function vf(pe,Le){pe=d.hsl(pe),Le=d.hsl(Le);var Ye=pe.h,ut=pe.s,ht=pe.l,xt=Le.h-Ye,zt=Le.s-ut,Dt=Le.l-ht;return isNaN(zt)&&(zt=0,ut=isNaN(ut)?Le.s:ut),isNaN(xt)?(xt=0,Ye=isNaN(Ye)?Le.h:Ye):xt>180?xt-=360:xt<-180&&(xt+=360),function($t){return Ja(Ye+xt*$t,ut+zt*$t,ht+Dt*$t)+""}}d.interpolateLab=Kc;function Kc(pe,Le){pe=d.lab(pe),Le=d.lab(Le);var Ye=pe.l,ut=pe.a,ht=pe.b,xt=Le.l-Ye,zt=Le.a-ut,Dt=Le.b-ht;return function($t){return Aa(Ye+xt*$t,ut+zt*$t,ht+Dt*$t)+""}}d.interpolateRound=lc;function lc(pe,Le){return Le-=pe,function(Ye){return Math.round(pe+Le*Ye)}}d.transform=function(pe){var Le=E.createElementNS(d.ns.prefix.svg,"g");return(d.transform=function(Ye){if(Ye!=null){Le.setAttribute("transform",Ye);var ut=Le.transform.baseVal.consolidate()}return new Jc(ut?ut.matrix:mc)})(pe)};function Jc(pe){var Le=[pe.a,pe.b],Ye=[pe.c,pe.d],ut=Lu(Le),ht=df(Le,Ye),xt=Lu(pf(Ye,Le,-ht))||0;Le[0]*Ye[1]<Ye[0]*Le[1]&&(Le[0]*=-1,Le[1]*=-1,ut*=-1,ht*=-1),this.rotate=(ut?Math.atan2(Le[1],Le[0]):Math.atan2(-Ye[0],Ye[1]))*ct,this.translate=[pe.e,pe.f],this.scale=[ut,xt],this.skew=xt?Math.atan2(ht,xt)*ct:0}Jc.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};function df(pe,Le){return pe[0]*Le[0]+pe[1]*Le[1]}function Lu(pe){var Le=Math.sqrt(df(pe,pe));return Le&&(pe[0]/=Le,pe[1]/=Le),Le}function pf(pe,Le,Ye){return pe[0]+=Ye*Le[0],pe[1]+=Ye*Le[1],pe}var mc={a:1,b:0,c:0,d:1,e:0,f:0};d.interpolateTransform=$c;function Pu(pe){return pe.length?pe.pop()+",":""}function lu(pe,Le,Ye,ut){if(pe[0]!==Le[0]||pe[1]!==Le[1]){var ht=Ye.push("translate(",null,",",null,")");ut.push({i:ht-4,x:Ml(pe[0],Le[0])},{i:ht-2,x:Ml(pe[1],Le[1])})}else(Le[0]||Le[1])&&Ye.push("translate("+Le+")")}function zc(pe,Le,Ye,ut){pe!==Le?(pe-Le>180?Le+=360:Le-pe>180&&(pe+=360),ut.push({i:Ye.push(Pu(Ye)+"rotate(",null,")")-2,x:Ml(pe,Le)})):Le&&Ye.push(Pu(Ye)+"rotate("+Le+")")}function gf(pe,Le,Ye,ut){pe!==Le?ut.push({i:Ye.push(Pu(Ye)+"skewX(",null,")")-2,x:Ml(pe,Le)}):Le&&Ye.push(Pu(Ye)+"skewX("+Le+")")}function bs(pe,Le,Ye,ut){if(pe[0]!==Le[0]||pe[1]!==Le[1]){var ht=Ye.push(Pu(Ye)+"scale(",null,",",null,")");ut.push({i:ht-4,x:Ml(pe[0],Le[0])},{i:ht-2,x:Ml(pe[1],Le[1])})}else(Le[0]!==1||Le[1]!==1)&&Ye.push(Pu(Ye)+"scale("+Le+")")}function $c(pe,Le){var Ye=[],ut=[];return pe=d.transform(pe),Le=d.transform(Le),lu(pe.translate,Le.translate,Ye,ut),zc(pe.rotate,Le.rotate,Ye,ut),gf(pe.skew,Le.skew,Ye,ut),bs(pe.scale,Le.scale,Ye,ut),pe=Le=null,function(ht){for(var xt=-1,zt=ut.length,Dt;++xt<zt;)Ye[(Dt=ut[xt]).i]=Dt.x(ht);return Ye.join("")}}function sh(pe,Le){return Le=(Le-=pe=+pe)||1/Le,function(Ye){return(Ye-pe)/Le}}function Pf(pe,Le){return Le=(Le-=pe=+pe)||1/Le,function(Ye){return Math.max(0,Math.min(1,(Ye-pe)/Le))}}d.layout={},d.layout.bundle=function(){return function(pe){for(var Le=[],Ye=-1,ut=pe.length;++Ye<ut;)Le.push(Fc(pe[Ye]));return Le}};function Fc(pe){for(var Le=pe.source,Ye=pe.target,ut=uu(Le,Ye),ht=[Le];Le!==ut;)Le=Le.parent,ht.push(Le);for(var xt=ht.length;Ye!==ut;)ht.splice(xt,0,Ye),Ye=Ye.parent;return ht}function If(pe){for(var Le=[],Ye=pe.parent;Ye!=null;)Le.push(pe),pe=Ye,Ye=Ye.parent;return Le.push(pe),Le}function uu(pe,Le){if(pe===Le)return pe;for(var Ye=If(pe),ut=If(Le),ht=Ye.pop(),xt=ut.pop(),zt=null;ht===xt;)zt=ht,ht=Ye.pop(),xt=ut.pop();return zt}d.layout.chord=function(){var pe={},Le,Ye,ut,ht,xt=0,zt,Dt,$t;function Cr(){var Vr={},Kr=[],aa=d.range(ht),ja=[],la,Ta,ka,Na,qa;for(Le=[],Ye=[],la=0,Na=-1;++Na<ht;){for(Ta=0,qa=-1;++qa<ht;)Ta+=ut[Na][qa];Kr.push(Ta),ja.push(d.range(ht)),la+=Ta}for(zt&&aa.sort(function(Ro,Ai){return zt(Kr[Ro],Kr[Ai])}),Dt&&ja.forEach(function(Ro,Ai){Ro.sort(function(to,Wo){return Dt(ut[Ai][to],ut[Ai][Wo])})}),la=(ye-xt*ht)/la,Ta=0,Na=-1;++Na<ht;){for(ka=Ta,qa=-1;++qa<ht;){var Ma=aa[Na],_n=ja[Ma][qa],Zn=ut[Ma][_n],Vn=Ta,Xn=Ta+=Zn*la;Vr[Ma+"-"+_n]={index:Ma,subindex:_n,startAngle:Vn,endAngle:Xn,value:Zn}}Ye[Ma]={index:Ma,startAngle:ka,endAngle:Ta,value:Kr[Ma]},Ta+=xt}for(Na=-1;++Na<ht;)for(qa=Na-1;++qa<ht;){var vi=Vr[Na+"-"+qa],bi=Vr[qa+"-"+Na];(vi.value||bi.value)&&Le.push(vi.value<bi.value?{source:bi,target:vi}:{source:vi,target:bi})}$t&&Ar()}function Ar(){Le.sort(function(Vr,Kr){return $t((Vr.source.value+Vr.target.value)/2,(Kr.source.value+Kr.target.value)/2)})}return pe.matrix=function(Vr){return arguments.length?(ht=(ut=Vr)&&ut.length,Le=Ye=null,pe):ut},pe.padding=function(Vr){return arguments.length?(xt=Vr,Le=Ye=null,pe):xt},pe.sortGroups=function(Vr){return arguments.length?(zt=Vr,Le=Ye=null,pe):zt},pe.sortSubgroups=function(Vr){return arguments.length?(Dt=Vr,Le=null,pe):Dt},pe.sortChords=function(Vr){return arguments.length?($t=Vr,Le&&Ar(),pe):$t},pe.chords=function(){return Le||Cr(),Le},pe.groups=function(){return Ye||Cr(),Ye},pe},d.layout.force=function(){var pe={},Le=d.dispatch("start","tick","end"),Ye,ut=[1,1],ht,xt,zt=.9,Dt=uc,$t=Iu,Cr=-30,Ar=fu,Vr=.1,Kr=.64,aa=[],ja=[],la,Ta,ka;function Na(Ma){return function(_n,Zn,Vn,Xn){if(_n.point!==Ma){var vi=_n.cx-Ma.x,bi=_n.cy-Ma.y,Ro=Xn-Zn,Ai=vi*vi+bi*bi;if(Ro*Ro/Kr<Ai){if(Ai<Ar){var to=_n.charge/Ai;Ma.px-=vi*to,Ma.py-=bi*to}return!0}if(_n.point&&Ai&&Ai<Ar){var to=_n.pointCharge/Ai;Ma.px-=vi*to,Ma.py-=bi*to}}return!_n.charge}}pe.tick=function(){if((xt*=.99)<.005)return Ye=null,Le.end({type:"end",alpha:xt=0}),!0;var Ma=aa.length,_n=ja.length,Zn,Vn,Xn,vi,bi,Ro,Ai,to,Wo;for(Vn=0;Vn<_n;++Vn)Xn=ja[Vn],vi=Xn.source,bi=Xn.target,to=bi.x-vi.x,Wo=bi.y-vi.y,(Ro=to*to+Wo*Wo)&&(Ro=xt*Ta[Vn]*((Ro=Math.sqrt(Ro))-la[Vn])/Ro,to*=Ro,Wo*=Ro,bi.x-=to*(Ai=vi.weight+bi.weight?vi.weight/(vi.weight+bi.weight):.5),bi.y-=Wo*Ai,vi.x+=to*(Ai=1-Ai),vi.y+=Wo*Ai);if((Ai=xt*Vr)&&(to=ut[0]/2,Wo=ut[1]/2,Vn=-1,Ai))for(;++Vn<Ma;)Xn=aa[Vn],Xn.x+=(to-Xn.x)*Ai,Xn.y+=(Wo-Xn.y)*Ai;if(Cr)for(yl(Zn=d.geom.quadtree(aa),xt,ka),Vn=-1;++Vn<Ma;)(Xn=aa[Vn]).fixed||Zn.visit(Na(Xn));for(Vn=-1;++Vn<Ma;)Xn=aa[Vn],Xn.fixed?(Xn.x=Xn.px,Xn.y=Xn.py):(Xn.x-=(Xn.px-(Xn.px=Xn.x))*zt,Xn.y-=(Xn.py-(Xn.py=Xn.y))*zt);Le.tick({type:"tick",alpha:xt})},pe.nodes=function(Ma){return arguments.length?(aa=Ma,pe):aa},pe.links=function(Ma){return arguments.length?(ja=Ma,pe):ja},pe.size=function(Ma){return arguments.length?(ut=Ma,pe):ut},pe.linkDistance=function(Ma){return arguments.length?(Dt=typeof Ma=="function"?Ma:+Ma,pe):Dt},pe.distance=pe.linkDistance,pe.linkStrength=function(Ma){return arguments.length?($t=typeof Ma=="function"?Ma:+Ma,pe):$t},pe.friction=function(Ma){return arguments.length?(zt=+Ma,pe):zt},pe.charge=function(Ma){return arguments.length?(Cr=typeof Ma=="function"?Ma:+Ma,pe):Cr},pe.chargeDistance=function(Ma){return arguments.length?(Ar=Ma*Ma,pe):Math.sqrt(Ar)},pe.gravity=function(Ma){return arguments.length?(Vr=+Ma,pe):Vr},pe.theta=function(Ma){return arguments.length?(Kr=Ma*Ma,pe):Math.sqrt(Kr)},pe.alpha=function(Ma){return arguments.length?(Ma=+Ma,xt?Ma>0?xt=Ma:(Ye.c=null,Ye.t=NaN,Ye=null,Le.end({type:"end",alpha:xt=0})):Ma>0&&(Le.start({type:"start",alpha:xt=Ma}),Ye=Wa(pe.tick)),pe):xt},pe.start=function(){var Ma,_n=aa.length,Zn=ja.length,Vn=ut[0],Xn=ut[1],vi,bi;for(Ma=0;Ma<_n;++Ma)(bi=aa[Ma]).index=Ma,bi.weight=0;for(Ma=0;Ma<Zn;++Ma)bi=ja[Ma],typeof bi.source=="number"&&(bi.source=aa[bi.source]),typeof bi.target=="number"&&(bi.target=aa[bi.target]),++bi.source.weight,++bi.target.weight;for(Ma=0;Ma<_n;++Ma)bi=aa[Ma],isNaN(bi.x)&&(bi.x=Ro("x",Vn)),isNaN(bi.y)&&(bi.y=Ro("y",Xn)),isNaN(bi.px)&&(bi.px=bi.x),isNaN(bi.py)&&(bi.py=bi.y);if(la=[],typeof Dt=="function")for(Ma=0;Ma<Zn;++Ma)la[Ma]=+Dt.call(this,ja[Ma],Ma);else for(Ma=0;Ma<Zn;++Ma)la[Ma]=Dt;if(Ta=[],typeof $t=="function")for(Ma=0;Ma<Zn;++Ma)Ta[Ma]=+$t.call(this,ja[Ma],Ma);else for(Ma=0;Ma<Zn;++Ma)Ta[Ma]=$t;if(ka=[],typeof Cr=="function")for(Ma=0;Ma<_n;++Ma)ka[Ma]=+Cr.call(this,aa[Ma],Ma);else for(Ma=0;Ma<_n;++Ma)ka[Ma]=Cr;function Ro(Ai,to){if(!vi){for(vi=new Array(_n),Is=0;Is<_n;++Is)vi[Is]=[];for(Is=0;Is<Zn;++Is){var Wo=ja[Is];vi[Wo.source.index].push(Wo.target),vi[Wo.target.index].push(Wo.source)}}for(var fl=vi[Ma],Is=-1,$n=fl.length,mo;++Is<$n;)if(!isNaN(mo=fl[Is][Ai]))return mo;return Math.random()*to}return pe.resume()},pe.resume=function(){return pe.alpha(.1)},pe.stop=function(){return pe.alpha(0)},pe.drag=function(){if(ht||(ht=d.behavior.drag().origin(F).on("dragstart.force",Rf).on("drag.force",qa).on("dragend.force",Hl)),!arguments.length)return ht;this.on("mouseover.force",cu).on("mouseout.force",Ku).call(ht)};function qa(Ma){Ma.px=d.event.x,Ma.py=d.event.y,pe.resume()}return d.rebind(pe,Le,"on")};function Rf(pe){pe.fixed|=2}function Hl(pe){pe.fixed&=-7}function cu(pe){pe.fixed|=4,pe.px=pe.x,pe.py=pe.y}function Ku(pe){pe.fixed&=-5}function yl(pe,Le,Ye){var ut=0,ht=0;if(pe.charge=0,!pe.leaf)for(var xt=pe.nodes,zt=xt.length,Dt=-1,$t;++Dt<zt;)$t=xt[Dt],$t!=null&&(yl($t,Le,Ye),pe.charge+=$t.charge,ut+=$t.charge*$t.cx,ht+=$t.charge*$t.cy);if(pe.point){pe.leaf||(pe.point.x+=Math.random()-.5,pe.point.y+=Math.random()-.5);var Cr=Le*Ye[pe.point.index];pe.charge+=pe.pointCharge=Cr,ut+=Cr*pe.point.x,ht+=Cr*pe.point.y}pe.cx=ut/pe.charge,pe.cy=ht/pe.charge}var uc=20,Iu=1,fu=1/0;d.layout.hierarchy=function(){var pe=Hf,Le=cc,Ye=Oc;function ut(ht){var xt=[ht],zt=[],Dt;for(ht.depth=0;(Dt=xt.pop())!=null;)if(zt.push(Dt),(Cr=Le.call(ut,Dt,Dt.depth))&&($t=Cr.length)){for(var $t,Cr,Ar;--$t>=0;)xt.push(Ar=Cr[$t]),Ar.parent=Dt,Ar.depth=Dt.depth+1;Ye&&(Dt.value=0),Dt.children=Cr}else Ye&&(Dt.value=+Ye.call(ut,Dt,Dt.depth)||0),delete Dt.children;return ju(ht,function(Vr){var Kr,aa;pe&&(Kr=Vr.children)&&Kr.sort(pe),Ye&&(aa=Vr.parent)&&(aa.value+=Vr.value)}),zt}return ut.sort=function(ht){return arguments.length?(pe=ht,ut):pe},ut.children=function(ht){return arguments.length?(Le=ht,ut):Le},ut.value=function(ht){return arguments.length?(Ye=ht,ut):Ye},ut.revalue=function(ht){return Ye&&(kc(ht,function(xt){xt.children&&(xt.value=0)}),ju(ht,function(xt){var zt;xt.children||(xt.value=+Ye.call(ut,xt,xt.depth)||0),(zt=xt.parent)&&(zt.value+=xt.value)})),ht},ut};function Gs(pe,Le){return d.rebind(pe,Le,"sort","children","value"),pe.nodes=pe,pe.links=_h,pe}function kc(pe,Le){for(var Ye=[pe];(pe=Ye.pop())!=null;)if(Le(pe),(ht=pe.children)&&(ut=ht.length))for(var ut,ht;--ut>=0;)Ye.push(ht[ut])}function ju(pe,Le){for(var Ye=[pe],ut=[];(pe=Ye.pop())!=null;)if(ut.push(pe),(zt=pe.children)&&(xt=zt.length))for(var ht=-1,xt,zt;++ht<xt;)Ye.push(zt[ht]);for(;(pe=ut.pop())!=null;)Le(pe)}function cc(pe){return pe.children}function Oc(pe){return pe.value}function Hf(pe,Le){return Le.value-pe.value}function _h(pe){return d.merge(pe.map(function(Le){return(Le.children||[]).map(function(Ye){return{source:Le,target:Ye}})}))}d.layout.partition=function(){var pe=d.layout.hierarchy(),Le=[1,1];function Ye(xt,zt,Dt,$t){var Cr=xt.children;if(xt.x=zt,xt.y=xt.depth*$t,xt.dx=Dt,xt.dy=$t,Cr&&(Vr=Cr.length)){var Ar=-1,Vr,Kr,aa;for(Dt=xt.value?Dt/xt.value:0;++Ar<Vr;)Ye(Kr=Cr[Ar],zt,aa=Kr.value*Dt,$t),zt+=aa}}function ut(xt){var zt=xt.children,Dt=0;if(zt&&(Cr=zt.length))for(var $t=-1,Cr;++$t<Cr;)Dt=Math.max(Dt,ut(zt[$t]));return 1+Dt}function ht(xt,zt){var Dt=pe.call(this,xt,zt);return Ye(Dt[0],0,Le[0],Le[1]/ut(Dt[0])),Dt}return ht.size=function(xt){return arguments.length?(Le=xt,ht):Le},Gs(ht,pe)},d.layout.pie=function(){var pe=Number,Le=_c,Ye=0,ut=ye,ht=0;function xt(zt){var Dt=zt.length,$t=zt.map(function(Na,qa){return+pe.call(xt,Na,qa)}),Cr=+(typeof Ye=="function"?Ye.apply(this,arguments):Ye),Ar=(typeof ut=="function"?ut.apply(this,arguments):ut)-Cr,Vr=Math.min(Math.abs(Ar)/Dt,+(typeof ht=="function"?ht.apply(this,arguments):ht)),Kr=Vr*(Ar<0?-1:1),aa=d.sum($t),ja=aa?(Ar-Dt*Kr)/aa:0,la=d.range(Dt),Ta=[],ka;return Le!=null&&la.sort(Le===_c?function(Na,qa){return $t[qa]-$t[Na]}:function(Na,qa){return Le(zt[Na],zt[qa])}),la.forEach(function(Na){Ta[Na]={data:zt[Na],value:ka=$t[Na],startAngle:Cr,endAngle:Cr+=ka*ja+Kr,padAngle:Vr}}),Ta}return xt.value=function(zt){return arguments.length?(pe=zt,xt):pe},xt.sort=function(zt){return arguments.length?(Le=zt,xt):Le},xt.startAngle=function(zt){return arguments.length?(Ye=zt,xt):Ye},xt.endAngle=function(zt){return arguments.length?(ut=zt,xt):ut},xt.padAngle=function(zt){return arguments.length?(ht=zt,xt):ht},xt};var _c={};d.layout.stack=function(){var pe=F,Le=mf,Ye=Cc,ut=yf,ht=Bc,xt=hu;function zt(Dt,$t){if(!(ja=Dt.length))return Dt;var Cr=Dt.map(function(Na,qa){return pe.call(zt,Na,qa)}),Ar=Cr.map(function(Na){return Na.map(function(qa,Ma){return[ht.call(zt,qa,Ma),xt.call(zt,qa,Ma)]})}),Vr=Le.call(zt,Ar,$t);Cr=d.permute(Cr,Vr),Ar=d.permute(Ar,Vr);var Kr=Ye.call(zt,Ar,$t),aa=Cr[0].length,ja,la,Ta,ka;for(Ta=0;Ta<aa;++Ta)for(ut.call(zt,Cr[0][Ta],ka=Kr[Ta],Ar[0][Ta][1]),la=1;la<ja;++la)ut.call(zt,Cr[la][Ta],ka+=Ar[la-1][Ta][1],Ar[la][Ta][1]);return Dt}return zt.values=function(Dt){return arguments.length?(pe=Dt,zt):pe},zt.order=function(Dt){return arguments.length?(Le=typeof Dt=="function"?Dt:Ol.get(Dt)||mf,zt):Le},zt.offset=function(Dt){return arguments.length?(Ye=typeof Dt=="function"?Dt:xc.get(Dt)||Cc,zt):Ye},zt.x=function(Dt){return arguments.length?(ht=Dt,zt):ht},zt.y=function(Dt){return arguments.length?(xt=Dt,zt):xt},zt.out=function(Dt){return arguments.length?(ut=Dt,zt):ut},zt};function Bc(pe){return pe.x}function hu(pe){return pe.y}function yf(pe,Le,Ye){pe.y0=Le,pe.y=Ye}var Ol=d.map({"inside-out":function(pe){var Le=pe.length,Ye,ut,ht=pe.map(Ws),xt=pe.map(bu),zt=d.range(Le).sort(function(Vr,Kr){return ht[Vr]-ht[Kr]}),Dt=0,$t=0,Cr=[],Ar=[];for(Ye=0;Ye<Le;++Ye)ut=zt[Ye],Dt<$t?(Dt+=xt[ut],Cr.push(ut)):($t+=xt[ut],Ar.push(ut));return Ar.reverse().concat(Cr)},reverse:function(pe){return d.range(pe.length).reverse()},default:mf}),xc=d.map({silhouette:function(pe){var Le=pe.length,Ye=pe[0].length,ut=[],ht=0,xt,zt,Dt,$t=[];for(zt=0;zt<Ye;++zt){for(xt=0,Dt=0;xt<Le;xt++)Dt+=pe[xt][zt][1];Dt>ht&&(ht=Dt),ut.push(Dt)}for(zt=0;zt<Ye;++zt)$t[zt]=(ht-ut[zt])/2;return $t},wiggle:function(pe){var Le=pe.length,Ye=pe[0],ut=Ye.length,ht,xt,zt,Dt,$t,Cr,Ar,Vr,Kr,aa=[];for(aa[0]=Vr=Kr=0,xt=1;xt<ut;++xt){for(ht=0,Dt=0;ht<Le;++ht)Dt+=pe[ht][xt][1];for(ht=0,$t=0,Ar=Ye[xt][0]-Ye[xt-1][0];ht<Le;++ht){for(zt=0,Cr=(pe[ht][xt][1]-pe[ht][xt-1][1])/(2*Ar);zt<ht;++zt)Cr+=(pe[zt][xt][1]-pe[zt][xt-1][1])/Ar;$t+=Cr*pe[ht][xt][1]}aa[xt]=Vr-=Dt?$t/Dt*Ar:0,Vr<Kr&&(Kr=Vr)}for(xt=0;xt<ut;++xt)aa[xt]-=Kr;return aa},expand:function(pe){var Le=pe.length,Ye=pe[0].length,ut=1/Le,ht,xt,zt,Dt=[];for(xt=0;xt<Ye;++xt){for(ht=0,zt=0;ht<Le;ht++)zt+=pe[ht][xt][1];if(zt)for(ht=0;ht<Le;ht++)pe[ht][xt][1]/=zt;else for(ht=0;ht<Le;ht++)pe[ht][xt][1]=ut}for(xt=0;xt<Ye;++xt)Dt[xt]=0;return Dt},zero:Cc});function mf(pe){return d.range(pe.length)}function Cc(pe){for(var Le=-1,Ye=pe[0].length,ut=[];++Le<Ye;)ut[Le]=0;return ut}function Ws(pe){for(var Le=1,Ye=0,ut=pe[0][1],ht,xt=pe.length;Le<xt;++Le)(ht=pe[Le][1])>ut&&(Ye=Le,ut=ht);return Ye}function bu(pe){return pe.reduce(wu,0)}function wu(pe,Le){return pe+Le[1]}d.layout.histogram=function(){var pe=!0,Le=Number,Ye=Lc,ut=_f;function ht(xt,Kr){for(var Dt=[],$t=xt.map(Le,this),Cr=Ye.call(this,$t,Kr),Ar=ut.call(this,Cr,$t,Kr),Vr,Kr=-1,aa=$t.length,ja=Ar.length-1,la=pe?1:1/aa,Ta;++Kr<ja;)Vr=Dt[Kr]=[],Vr.dx=Ar[Kr+1]-(Vr.x=Ar[Kr]),Vr.y=0;if(ja>0)for(Kr=-1;++Kr<aa;)Ta=$t[Kr],Ta>=Cr[0]&&Ta<=Cr[1]&&(Vr=Dt[d.bisect(Ar,Ta,1,ja)-1],Vr.y+=la,Vr.push(xt[Kr]));return Dt}return ht.value=function(xt){return arguments.length?(Le=xt,ht):Le},ht.range=function(xt){return arguments.length?(Ye=wt(xt),ht):Ye},ht.bins=function(xt){return arguments.length?(ut=typeof xt=="number"?function(zt){return Us(zt,xt)}:wt(xt),ht):ut},ht.frequency=function(xt){return arguments.length?(pe=!!xt,ht):pe},ht};function _f(pe,Le){return Us(pe,Math.ceil(Math.log(Le.length)/Math.LN2+1))}function Us(pe,Le){for(var Ye=-1,ut=+pe[0],ht=(pe[1]-ut)/Le,xt=[];++Ye<=Le;)xt[Ye]=ht*Ye+ut;return xt}function Lc(pe){return[d.min(pe),d.max(pe)]}d.layout.pack=function(){var pe=d.layout.hierarchy().sort(Ju),Le=0,Ye=[1,1],ut;function ht(xt,zt){var Dt=pe.call(this,xt,zt),$t=Dt[0],Cr=Ye[0],Ar=Ye[1],Vr=ut==null?Math.sqrt:typeof ut=="function"?ut:function(){return ut};if($t.x=$t.y=0,ju($t,function(aa){aa.r=+Vr(aa.value)}),ju($t,Ic),Le){var Kr=Le*(ut?1:Math.max(2*$t.r/Cr,2*$t.r/Ar))/2;ju($t,function(aa){aa.r+=Kr}),ju($t,Ic),ju($t,function(aa){aa.r-=Kr})}return xf($t,Cr/2,Ar/2,ut?1:1/Math.max(2*$t.r/Cr,2*$t.r/Ar)),Dt}return ht.size=function(xt){return arguments.length?(Ye=xt,ht):Ye},ht.radius=function(xt){return arguments.length?(ut=xt==null||typeof xt=="function"?xt:+xt,ht):ut},ht.padding=function(xt){return arguments.length?(Le=+xt,ht):Le},Gs(ht,pe)};function Ju(pe,Le){return pe.value-Le.value}function vu(pe,Le){var Ye=pe._pack_next;pe._pack_next=Le,Le._pack_prev=pe,Le._pack_next=Ye,Ye._pack_prev=Le}function Pc(pe,Le){pe._pack_next=Le,Le._pack_prev=pe}function Vu(pe,Le){var Ye=Le.x-pe.x,ut=Le.y-pe.y,ht=pe.r+Le.r;return .999*ht*ht>Ye*Ye+ut*ut}function Ic(pe){if(!(Le=pe.children)||!(Kr=Le.length))return;var Le,Ye=1/0,ut=-1/0,ht=1/0,xt=-1/0,zt,Dt,$t,Cr,Ar,Vr,Kr;function aa(Ma){Ye=Math.min(Ma.x-Ma.r,Ye),ut=Math.max(Ma.x+Ma.r,ut),ht=Math.min(Ma.y-Ma.r,ht),xt=Math.max(Ma.y+Ma.r,xt)}if(Le.forEach(Gf),zt=Le[0],zt.x=-zt.r,zt.y=0,aa(zt),Kr>1&&(Dt=Le[1],Dt.x=Dt.r,Dt.y=0,aa(Dt),Kr>2))for($t=Le[2],du(zt,Dt,$t),aa($t),vu(zt,$t),zt._pack_prev=$t,vu($t,Dt),Dt=zt._pack_next,Cr=3;Cr<Kr;Cr++){du(zt,Dt,$t=Le[Cr]);var ja=0,la=1,Ta=1;for(Ar=Dt._pack_next;Ar!==Dt;Ar=Ar._pack_next,la++)if(Vu(Ar,$t)){ja=1;break}if(ja==1)for(Vr=zt._pack_prev;Vr!==Ar._pack_prev&&!Vu(Vr,$t);Vr=Vr._pack_prev,Ta++);ja?(la<Ta||la==Ta&&Dt.r<zt.r?Pc(zt,Dt=Ar):Pc(zt=Vr,Dt),Cr--):(vu(zt,$t),Dt=$t,aa($t))}var ka=(Ye+ut)/2,Na=(ht+xt)/2,qa=0;for(Cr=0;Cr<Kr;Cr++)$t=Le[Cr],$t.x-=ka,$t.y-=Na,qa=Math.max(qa,$t.r+Math.sqrt($t.x*$t.x+$t.y*$t.y));pe.r=qa,Le.forEach(El)}function Gf(pe){pe._pack_next=pe._pack_prev=pe}function El(pe){delete pe._pack_next,delete pe._pack_prev}function xf(pe,Le,Ye,ut){var ht=pe.children;if(pe.x=Le+=ut*pe.x,pe.y=Ye+=ut*pe.y,pe.r*=ut,ht)for(var xt=-1,zt=ht.length;++xt<zt;)xf(ht[xt],Le,Ye,ut)}function du(pe,Le,Ye){var ut=pe.r+Ye.r,ht=Le.x-pe.x,xt=Le.y-pe.y;if(ut&&(ht||xt)){var zt=Le.r+Ye.r,Dt=ht*ht+xt*xt;zt*=zt,ut*=ut;var $t=.5+(ut-zt)/(2*Dt),Cr=Math.sqrt(Math.max(0,2*zt*(ut+Dt)-(ut-=Dt)*ut-zt*zt))/(2*Dt);Ye.x=pe.x+$t*ht+Cr*xt,Ye.y=pe.y+$t*xt-Cr*ht}else Ye.x=pe.x+ut,Ye.y=pe.y}d.layout.tree=function(){var pe=d.layout.hierarchy().sort(null).value(null),Le=qu,Ye=[1,1],ut=null;function ht(Ar,Vr){var Kr=pe.call(this,Ar,Vr),aa=Kr[0],ja=xt(aa);if(ju(ja,zt),ja.parent.m=-ja.z,kc(ja,Dt),ut)kc(aa,Cr);else{var la=aa,Ta=aa,ka=aa;kc(aa,function(_n){_n.x<la.x&&(la=_n),_n.x>Ta.x&&(Ta=_n),_n.depth>ka.depth&&(ka=_n)});var Na=Le(la,Ta)/2-la.x,qa=Ye[0]/(Ta.x+Le(Ta,la)/2+Na),Ma=Ye[1]/(ka.depth||1);kc(aa,function(_n){_n.x=(_n.x+Na)*qa,_n.y=_n.depth*Ma})}return Kr}function xt(Ar){for(var Vr={A:null,children:[Ar]},Kr=[Vr],aa;(aa=Kr.pop())!=null;)for(var ja=aa.children,la,Ta=0,ka=ja.length;Ta<ka;++Ta)Kr.push((ja[Ta]=la={_:ja[Ta],parent:aa,children:(la=ja[Ta].children)&&la.slice()||[],A:null,a:null,z:0,m:0,c:0,s:0,t:null,i:Ta}).a=la);return Vr.children[0]}function zt(Ar){var Vr=Ar.children,Kr=Ar.parent.children,aa=Ar.i?Kr[Ar.i-1]:null;if(Vr.length){kl(Ar);var ja=(Vr[0].z+Vr[Vr.length-1].z)/2;aa?(Ar.z=aa.z+Le(Ar._,aa._),Ar.m=Ar.z-ja):Ar.z=ja}else aa&&(Ar.z=aa.z+Le(Ar._,aa._));Ar.parent.A=$t(Ar,aa,Ar.parent.A||Kr[0])}function Dt(Ar){Ar._.x=Ar.z+Ar.parent.m,Ar.m+=Ar.parent.m}function $t(Ar,Vr,Kr){if(Vr){for(var aa=Ar,ja=Ar,la=Vr,Ta=aa.parent.children[0],ka=aa.m,Na=ja.m,qa=la.m,Ma=Ta.m,_n;la=$s(la),aa=Ru(aa),la&&aa;)Ta=Ru(Ta),ja=$s(ja),ja.a=Ar,_n=la.z+qa-aa.z-ka+Le(la._,aa._),_n>0&&(Gl(fc(la,Ar,Kr),Ar,_n),ka+=_n,Na+=_n),qa+=la.m,ka+=aa.m,Ma+=Ta.m,Na+=ja.m;la&&!$s(ja)&&(ja.t=la,ja.m+=qa-Na),aa&&!Ru(Ta)&&(Ta.t=aa,Ta.m+=ka-Ma,Kr=Ar)}return Kr}function Cr(Ar){Ar.x*=Ye[0],Ar.y=Ar.depth*Ye[1]}return ht.separation=function(Ar){return arguments.length?(Le=Ar,ht):Le},ht.size=function(Ar){return arguments.length?(ut=(Ye=Ar)==null?Cr:null,ht):ut?null:Ye},ht.nodeSize=function(Ar){return arguments.length?(ut=(Ye=Ar)==null?null:Cr,ht):ut?Ye:null},Gs(ht,pe)};function qu(pe,Le){return pe.parent==Le.parent?1:2}function Ru(pe){var Le=pe.children;return Le.length?Le[0]:pe.t}function $s(pe){var Le=pe.children,Ye;return(Ye=Le.length)?Le[Ye-1]:pe.t}function Gl(pe,Le,Ye){var ut=Ye/(Le.i-pe.i);Le.c-=ut,Le.s+=Ye,pe.c+=ut,Le.z+=Ye,Le.m+=Ye}function kl(pe){for(var Le=0,Ye=0,ut=pe.children,ht=ut.length,xt;--ht>=0;)xt=ut[ht],xt.z+=Le,xt.m+=Le,Le+=xt.s+(Ye+=xt.c)}function fc(pe,Le,Ye){return pe.a.parent===Le.parent?pe.a:Ye}d.layout.cluster=function(){var pe=d.layout.hierarchy().sort(null).value(null),Le=qu,Ye=[1,1],ut=!1;function ht(xt,zt){var Dt=pe.call(this,xt,zt),$t=Dt[0],Cr,Ar=0;ju($t,function(la){var Ta=la.children;Ta&&Ta.length?(la.x=Qc(Ta),la.y=Du(Ta)):(la.x=Cr?Ar+=Le(la,Cr):0,la.y=0,Cr=la)});var Vr=Ht($t),Kr=ur($t),aa=Vr.x-Le(Vr,Kr)/2,ja=Kr.x+Le(Kr,Vr)/2;return ju($t,ut?function(la){la.x=(la.x-$t.x)*Ye[0],la.y=($t.y-la.y)*Ye[1]}:function(la){la.x=(la.x-aa)/(ja-aa)*Ye[0],la.y=(1-($t.y?la.y/$t.y:1))*Ye[1]}),Dt}return ht.separation=function(xt){return arguments.length?(Le=xt,ht):Le},ht.size=function(xt){return arguments.length?(ut=(Ye=xt)==null,ht):ut?null:Ye},ht.nodeSize=function(xt){return arguments.length?(ut=(Ye=xt)!=null,ht):ut?Ye:null},Gs(ht,pe)};function Du(pe){return 1+d.max(pe,function(Le){return Le.y})}function Qc(pe){return pe.reduce(function(Le,Ye){return Le+Ye.x},0)/pe.length}function Ht(pe){var Le=pe.children;return Le&&Le.length?Ht(Le[0]):pe}function ur(pe){var Le=pe.children,Ye;return Le&&(Ye=Le.length)?ur(Le[Ye-1]):pe}d.layout.treemap=function(){var pe=d.layout.hierarchy(),Le=Math.round,Ye=[1,1],ut=null,ht=qr,xt=!1,zt,Dt="squarify",$t=.5*(1+Math.sqrt(5));function Cr(la,Ta){for(var ka=-1,Na=la.length,qa,Ma;++ka<Na;)Ma=(qa=la[ka]).value*(Ta<0?0:Ta),qa.area=isNaN(Ma)||Ma<=0?0:Ma}function Ar(la){var Ta=la.children;if(Ta&&Ta.length){var ka=ht(la),Na=[],qa=Ta.slice(),Ma,_n=1/0,Zn,Vn=Dt==="slice"?ka.dx:Dt==="dice"?ka.dy:Dt==="slice-dice"?la.depth&1?ka.dy:ka.dx:Math.min(ka.dx,ka.dy),Xn;for(Cr(qa,ka.dx*ka.dy/la.value),Na.area=0;(Xn=qa.length)>0;)Na.push(Ma=qa[Xn-1]),Na.area+=Ma.area,Dt!=="squarify"||(Zn=Kr(Na,Vn))<=_n?(qa.pop(),_n=Zn):(Na.area-=Na.pop().area,aa(Na,Vn,ka,!1),Vn=Math.min(ka.dx,ka.dy),Na.length=Na.area=0,_n=1/0);Na.length&&(aa(Na,Vn,ka,!0),Na.length=Na.area=0),Ta.forEach(Ar)}}function Vr(la){var Ta=la.children;if(Ta&&Ta.length){var ka=ht(la),Na=Ta.slice(),qa,Ma=[];for(Cr(Na,ka.dx*ka.dy/la.value),Ma.area=0;qa=Na.pop();)Ma.push(qa),Ma.area+=qa.area,qa.z!=null&&(aa(Ma,qa.z?ka.dx:ka.dy,ka,!Na.length),Ma.length=Ma.area=0);Ta.forEach(Vr)}}function Kr(la,Ta){for(var ka=la.area,Na,qa=0,Ma=1/0,_n=-1,Zn=la.length;++_n<Zn;)(Na=la[_n].area)&&(Na<Ma&&(Ma=Na),Na>qa&&(qa=Na));return ka*=ka,Ta*=Ta,ka?Math.max(Ta*qa*$t/ka,ka/(Ta*Ma*$t)):1/0}function aa(la,Ta,ka,Na){var qa=-1,Ma=la.length,_n=ka.x,Zn=ka.y,Vn=Ta?Le(la.area/Ta):0,Xn;if(Ta==ka.dx){for((Na||Vn>ka.dy)&&(Vn=ka.dy);++qa<Ma;)Xn=la[qa],Xn.x=_n,Xn.y=Zn,Xn.dy=Vn,_n+=Xn.dx=Math.min(ka.x+ka.dx-_n,Vn?Le(Xn.area/Vn):0);Xn.z=!0,Xn.dx+=ka.x+ka.dx-_n,ka.y+=Vn,ka.dy-=Vn}else{for((Na||Vn>ka.dx)&&(Vn=ka.dx);++qa<Ma;)Xn=la[qa],Xn.x=_n,Xn.y=Zn,Xn.dx=Vn,Zn+=Xn.dy=Math.min(ka.y+ka.dy-Zn,Vn?Le(Xn.area/Vn):0);Xn.z=!1,Xn.dy+=ka.y+ka.dy-Zn,ka.x+=Vn,ka.dx-=Vn}}function ja(la){var Ta=zt||pe(la),ka=Ta[0];return ka.x=ka.y=0,ka.value?(ka.dx=Ye[0],ka.dy=Ye[1]):ka.dx=ka.dy=0,zt&&pe.revalue(ka),Cr([ka],ka.dx*ka.dy/ka.value),(zt?Vr:Ar)(ka),xt&&(zt=Ta),Ta}return ja.size=function(la){return arguments.length?(Ye=la,ja):Ye},ja.padding=function(la){if(!arguments.length)return ut;function Ta(qa){var Ma=la.call(ja,qa,qa.depth);return Ma==null?qr(qa):Or(qa,typeof Ma=="number"?[Ma,Ma,Ma,Ma]:Ma)}function ka(qa){return Or(qa,la)}var Na;return ht=(ut=la)==null?qr:(Na=typeof la)=="function"?Ta:(Na==="number"&&(la=[la,la,la,la]),ka),ja},ja.round=function(la){return arguments.length?(Le=la?Math.round:Number,ja):Le!=Number},ja.sticky=function(la){return arguments.length?(xt=la,zt=null,ja):xt},ja.ratio=function(la){return arguments.length?($t=la,ja):$t},ja.mode=function(la){return arguments.length?(Dt=la+"",ja):Dt},Gs(ja,pe)};function qr(pe){return{x:pe.x,y:pe.y,dx:pe.dx,dy:pe.dy}}function Or(pe,Le){var Ye=pe.x+Le[3],ut=pe.y+Le[0],ht=pe.dx-Le[1]-Le[3],xt=pe.dy-Le[0]-Le[2];return ht<0&&(Ye+=ht/2,ht=0),xt<0&&(ut+=xt/2,xt=0),{x:Ye,y:ut,dx:ht,dy:xt}}d.random={normal:function(pe,Le){var Ye=arguments.length;return Ye<2&&(Le=1),Ye<1&&(pe=0),function(){var ut,ht,xt;do ut=Math.random()*2-1,ht=Math.random()*2-1,xt=ut*ut+ht*ht;while(!xt||xt>1);return pe+Le*ut*Math.sqrt(-2*Math.log(xt)/xt)}},logNormal:function(){var pe=d.random.normal.apply(d,arguments);return function(){return Math.exp(pe())}},bates:function(pe){var Le=d.random.irwinHall(pe);return function(){return Le()/pe}},irwinHall:function(pe){return function(){for(var Le=0,Ye=0;Ye<pe;Ye++)Le+=Math.random();return Le}}},d.scale={};function ua(pe){var Le=pe[0],Ye=pe[pe.length-1];return Le<Ye?[Le,Ye]:[Ye,Le]}function Oa(pe){return pe.rangeExtent?pe.rangeExtent():ua(pe.range())}function Va(pe,Le,Ye,ut){var ht=Ye(pe[0],pe[1]),xt=ut(Le[0],Le[1]);return function(zt){return xt(ht(zt))}}function ln(pe,Le){var Ye=0,ut=pe.length-1,ht=pe[Ye],xt=pe[ut],zt;return xt<ht&&(zt=Ye,Ye=ut,ut=zt,zt=ht,ht=xt,xt=zt),pe[Ye]=Le.floor(ht),pe[ut]=Le.ceil(xt),pe}function yn(pe){return pe?{floor:function(Le){return Math.floor(Le/pe)*pe},ceil:function(Le){return Math.ceil(Le/pe)*pe}}:Cn}var Cn={floor:F,ceil:F};function $a(pe,Le,Ye,ut){var ht=[],xt=[],zt=0,Dt=Math.min(pe.length,Le.length)-1;for(pe[Dt]<pe[0]&&(pe=pe.slice().reverse(),Le=Le.slice().reverse());++zt<=Dt;)ht.push(Ye(pe[zt-1],pe[zt])),xt.push(ut(Le[zt-1],Le[zt]));return function($t){var Cr=d.bisect(pe,$t,1,Dt)-1;return xt[Cr](ht[Cr]($t))}}d.scale.linear=function(){return xn([0,1],[0,1],es,!1)};function xn(pe,Le,Ye,ut){var ht,xt;function zt(){var $t=Math.min(pe.length,Le.length)>2?$a:Va,Cr=ut?Pf:sh;return ht=$t(pe,Le,Cr,Ye),xt=$t(Le,pe,Cr,es),Dt}function Dt($t){return ht($t)}return Dt.invert=function($t){return xt($t)},Dt.domain=function($t){return arguments.length?(pe=$t.map(Number),zt()):pe},Dt.range=function($t){return arguments.length?(Le=$t,zt()):Le},Dt.rangeRound=function($t){return Dt.range($t).interpolate(lc)},Dt.clamp=function($t){return arguments.length?(ut=$t,zt()):ut},Dt.interpolate=function($t){return arguments.length?(Ye=$t,zt()):Ye},Dt.ticks=function($t){return Ni(pe,$t)},Dt.tickFormat=function($t,Cr){return d3_scale_linearTickFormat(pe,$t,Cr)},Dt.nice=function($t){return Za(pe,$t),zt()},Dt.copy=function(){return xn(pe,Le,Ye,ut)},zt()}function sn(pe,Le){return d.rebind(pe,Le,"range","rangeRound","interpolate","clamp")}function Za(pe,Le){return ln(pe,yn(Bn(pe,Le)[2])),ln(pe,yn(Bn(pe,Le)[2])),pe}function Bn(pe,Le){Le==null&&(Le=10);var Ye=ua(pe),ut=Ye[1]-Ye[0],ht=Math.pow(10,Math.floor(Math.log(ut/Le)/Math.LN10)),xt=Le/ut*ht;return xt<=.15?ht*=10:xt<=.35?ht*=5:xt<=.75&&(ht*=2),Ye[0]=Math.ceil(Ye[0]/ht)*ht,Ye[1]=Math.floor(Ye[1]/ht)*ht+ht*.5,Ye[2]=ht,Ye}function Ni(pe,Le){return d.range.apply(d,Bn(pe,Le))}d.scale.log=function(){return Pi(d.scale.linear().domain([0,1]),10,!0,[1,10])};function Pi(pe,Le,Ye,ut){function ht(Dt){return(Ye?Math.log(Dt<0?0:Dt):-Math.log(Dt>0?0:-Dt))/Math.log(Le)}function xt(Dt){return Ye?Math.pow(Le,Dt):-Math.pow(Le,-Dt)}function zt(Dt){return pe(ht(Dt))}return zt.invert=function(Dt){return xt(pe.invert(Dt))},zt.domain=function(Dt){return arguments.length?(Ye=Dt[0]>=0,pe.domain((ut=Dt.map(Number)).map(ht)),zt):ut},zt.base=function(Dt){return arguments.length?(Le=+Dt,pe.domain(ut.map(ht)),zt):Le},zt.nice=function(){var Dt=ln(ut.map(ht),Ye?Math:Wi);return pe.domain(Dt),ut=Dt.map(xt),zt},zt.ticks=function(){var Dt=ua(ut),$t=[],Cr=Dt[0],Ar=Dt[1],Vr=Math.floor(ht(Cr)),Kr=Math.ceil(ht(Ar)),aa=Le%1?2:Le;if(isFinite(Kr-Vr)){if(Ye){for(;Vr<Kr;Vr++)for(var ja=1;ja<aa;ja++)$t.push(xt(Vr)*ja);$t.push(xt(Vr))}else for($t.push(xt(Vr));Vr++<Kr;)for(var ja=aa-1;ja>0;ja--)$t.push(xt(Vr)*ja);for(Vr=0;$t[Vr]<Cr;Vr++);for(Kr=$t.length;$t[Kr-1]>Ar;Kr--);$t=$t.slice(Vr,Kr)}return $t},zt.copy=function(){return Pi(pe.copy(),Le,Ye,ut)},sn(zt,pe)}var Wi={floor:function(pe){return-Math.ceil(-pe)},ceil:function(pe){return-Math.floor(-pe)}};d.scale.pow=function(){return qi(d.scale.linear(),1,[0,1])};function qi(pe,Le,Ye){var ut=Nn(Le),ht=Nn(1/Le);function xt(zt){return pe(ut(zt))}return xt.invert=function(zt){return ht(pe.invert(zt))},xt.domain=function(zt){return arguments.length?(pe.domain((Ye=zt.map(Number)).map(ut)),xt):Ye},xt.ticks=function(zt){return Ni(Ye,zt)},xt.tickFormat=function(zt,Dt){return d3_scale_linearTickFormat(Ye,zt,Dt)},xt.nice=function(zt){return xt.domain(Za(Ye,zt))},xt.exponent=function(zt){return arguments.length?(ut=Nn(Le=zt),ht=Nn(1/Le),pe.domain(Ye.map(ut)),xt):Le},xt.copy=function(){return qi(pe.copy(),Le,Ye)},sn(xt,pe)}function Nn(pe){return function(Le){return Le<0?-Math.pow(-Le,pe):Math.pow(Le,pe)}}d.scale.sqrt=function(){return d.scale.pow().exponent(.5)},d.scale.ordinal=function(){return Sn([],{t:"range",a:[[]]})};function Sn(pe,Le){var Ye,ut,ht;function xt(Dt){return ut[((Ye.get(Dt)||(Le.t==="range"?Ye.set(Dt,pe.push(Dt)):NaN))-1)%ut.length]}function zt(Dt,$t){return d.range(pe.length).map(function(Cr){return Dt+$t*Cr})}return xt.domain=function(Dt){if(!arguments.length)return pe;pe=[],Ye=new S;for(var $t=-1,Cr=Dt.length,Ar;++$t<Cr;)Ye.has(Ar=Dt[$t])||Ye.set(Ar,pe.push(Ar));return xt[Le.t].apply(xt,Le.a)},xt.range=function(Dt){return arguments.length?(ut=Dt,ht=0,Le={t:"range",a:arguments},xt):ut},xt.rangePoints=function(Dt,$t){arguments.length<2&&($t=0);var Cr=Dt[0],Ar=Dt[1],Vr=pe.length<2?(Cr=(Cr+Ar)/2,0):(Ar-Cr)/(pe.length-1+$t);return ut=zt(Cr+Vr*$t/2,Vr),ht=0,Le={t:"rangePoints",a:arguments},xt},xt.rangeRoundPoints=function(Dt,$t){arguments.length<2&&($t=0);var Cr=Dt[0],Ar=Dt[1],Vr=pe.length<2?(Cr=Ar=Math.round((Cr+Ar)/2),0):(Ar-Cr)/(pe.length-1+$t)|0;return ut=zt(Cr+Math.round(Vr*$t/2+(Ar-Cr-(pe.length-1+$t)*Vr)/2),Vr),ht=0,Le={t:"rangeRoundPoints",a:arguments},xt},xt.rangeBands=function(Dt,$t,Cr){arguments.length<2&&($t=0),arguments.length<3&&(Cr=$t);var Ar=Dt[1]<Dt[0],Vr=Dt[Ar-0],Kr=Dt[1-Ar],aa=(Kr-Vr)/(pe.length-$t+2*Cr);return ut=zt(Vr+aa*Cr,aa),Ar&&ut.reverse(),ht=aa*(1-$t),Le={t:"rangeBands",a:arguments},xt},xt.rangeRoundBands=function(Dt,$t,Cr){arguments.length<2&&($t=0),arguments.length<3&&(Cr=$t);var Ar=Dt[1]<Dt[0],Vr=Dt[Ar-0],Kr=Dt[1-Ar],aa=Math.floor((Kr-Vr)/(pe.length-$t+2*Cr));return ut=zt(Vr+Math.round((Kr-Vr-(pe.length-$t)*aa)/2),aa),Ar&&ut.reverse(),ht=Math.round(aa*(1-$t)),Le={t:"rangeRoundBands",a:arguments},xt},xt.rangeBand=function(){return ht},xt.rangeExtent=function(){return ua(Le.a[0])},xt.copy=function(){return Sn(pe,Le)},xt.domain(pe)}d.scale.category10=function(){return d.scale.ordinal().range(eo)},d.scale.category20=function(){return d.scale.ordinal().range(Po)},d.scale.category20b=function(){return d.scale.ordinal().range(rs)},d.scale.category20c=function(){return d.scale.ordinal().range(Fs)};var eo=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map(Er),Po=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map(Er),rs=[3750777,5395619,7040719,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map(Er),Fs=[3244733,7057110,10406625,13032431,15095053,16616764,16625259,16634018,3253076,7652470,10607003,13101504,7695281,10394312,12369372,14342891,6513507,9868950,12434877,14277081].map(Er);d.scale.quantile=function(){return fs([],[])};function fs(pe,Le){var Ye;function ut(){var xt=0,zt=Le.length;for(Ye=[];++xt<zt;)Ye[xt-1]=d.quantile(pe,xt/zt);return ht}function ht(xt){if(!isNaN(xt=+xt))return Le[d.bisect(Ye,xt)]}return ht.domain=function(xt){return arguments.length?(pe=xt.map(c).filter(f).sort(s),ut()):pe},ht.range=function(xt){return arguments.length?(Le=xt,ut()):Le},ht.quantiles=function(){return Ye},ht.invertExtent=function(xt){return xt=Le.indexOf(xt),xt<0?[NaN,NaN]:[xt>0?Ye[xt-1]:pe[0],xt<Ye.length?Ye[xt]:pe[pe.length-1]]},ht.copy=function(){return fs(pe,Le)},ut()}d.scale.quantize=function(){return Ls(0,1,[0,1])};function Ls(pe,Le,Ye){var ut,ht;function xt(Dt){return Ye[Math.max(0,Math.min(ht,Math.floor(ut*(Dt-pe))))]}function zt(){return ut=Ye.length/(Le-pe),ht=Ye.length-1,xt}return xt.domain=function(Dt){return arguments.length?(pe=+Dt[0],Le=+Dt[Dt.length-1],zt()):[pe,Le]},xt.range=function(Dt){return arguments.length?(Ye=Dt,zt()):Ye},xt.invertExtent=function(Dt){return Dt=Ye.indexOf(Dt),Dt=Dt<0?NaN:Dt/ut+pe,[Dt,Dt+1/ut]},xt.copy=function(){return Ls(pe,Le,Ye)},zt()}d.scale.threshold=function(){return Go([.5],[0,1])};function Go(pe,Le){function Ye(ut){if(ut<=ut)return Le[d.bisect(pe,ut)]}return Ye.domain=function(ut){return arguments.length?(pe=ut,Ye):pe},Ye.range=function(ut){return arguments.length?(Le=ut,Ye):Le},Ye.invertExtent=function(ut){return ut=Le.indexOf(ut),[pe[ut-1],pe[ut]]},Ye.copy=function(){return Go(pe,Le)},Ye}d.scale.identity=function(){return ul([0,1])};function ul(pe){function Le(Ye){return+Ye}return Le.invert=Le,Le.domain=Le.range=function(Ye){return arguments.length?(pe=Ye.map(Le),Le):pe},Le.ticks=function(Ye){return Ni(pe,Ye)},Le.tickFormat=function(Ye,ut){return d3_scale_linearTickFormat(pe,Ye,ut)},Le.copy=function(){return ul(pe)},Le}d.svg={};function al(){return 0}d.svg.arc=function(){var pe=hi,Le=so,Ye=al,ut=Ps,ht=ws,xt=ts,zt=Wl;function Dt(){var Cr=Math.max(0,+pe.apply(this,arguments)),Ar=Math.max(0,+Le.apply(this,arguments)),Vr=ht.apply(this,arguments)-Pe,Kr=xt.apply(this,arguments)-Pe,aa=Math.abs(Kr-Vr),ja=Vr>Kr?0:1;if(Ar<Cr&&(la=Ar,Ar=Cr,Cr=la),aa>=be)return $t(Ar,ja)+(Cr?$t(Cr,1-ja):"")+"Z";var la,Ta,ka,Na,qa=0,Ma=0,_n,Zn,Vn,Xn,vi,bi,Ro,Ai,to=[];if((Na=(+zt.apply(this,arguments)||0)/2)&&(ka=ut===Ps?Math.sqrt(Cr*Cr+Ar*Ar):+ut.apply(this,arguments),ja||(Ma*=-1),Ar&&(Ma=Mt(ka/Ar*Math.sin(Na))),Cr&&(qa=Mt(ka/Cr*Math.sin(Na)))),Ar){_n=Ar*Math.cos(Vr+Ma),Zn=Ar*Math.sin(Vr+Ma),Vn=Ar*Math.cos(Kr-Ma),Xn=Ar*Math.sin(Kr-Ma);var Wo=Math.abs(Kr-Vr-2*Ma)<=ve?0:1;if(Ma&&Yl(_n,Zn,Vn,Xn)===ja^Wo){var fl=(Vr+Kr)/2;_n=Ar*Math.cos(fl),Zn=Ar*Math.sin(fl),Vn=Xn=null}}else _n=Zn=0;if(Cr){vi=Cr*Math.cos(Kr-qa),bi=Cr*Math.sin(Kr-qa),Ro=Cr*Math.cos(Vr+qa),Ai=Cr*Math.sin(Vr+qa);var Is=Math.abs(Vr-Kr+2*qa)<=ve?0:1;if(qa&&Yl(vi,bi,Ro,Ai)===1-ja^Is){var $n=(Vr+Kr)/2;vi=Cr*Math.cos($n),bi=Cr*Math.sin($n),Ro=Ai=null}}else vi=bi=0;if(aa>Ge&&(la=Math.min(Math.abs(Ar-Cr)/2,+Ye.apply(this,arguments)))>.001){Ta=Cr<Ar^ja?0:1;var mo=la,Bo=la;if(aa<ve){var Rs=Ro==null?[vi,bi]:Vn==null?[_n,Zn]:Io([_n,Zn],[Ro,Ai],[Vn,Xn],[vi,bi]),ms=_n-Rs[0],$l=Zn-Rs[1],as=Vn-Rs[0],Ss=Xn-Rs[1],Au=1/Math.sin(Math.acos((ms*as+$l*Ss)/(Math.sqrt(ms*ms+$l*$l)*Math.sqrt(as*as+Ss*Ss)))/2),nl=Math.sqrt(Rs[0]*Rs[0]+Rs[1]*Rs[1]);Bo=Math.min(la,(Cr-nl)/(Au-1)),mo=Math.min(la,(Ar-nl)/(Au+1))}if(Vn!=null){var cr=Kl(Ro==null?[vi,bi]:[Ro,Ai],[_n,Zn],Ar,mo,ja),fa=Kl([Vn,Xn],[vi,bi],Ar,mo,ja);la===mo?to.push("M",cr[0],"A",mo,",",mo," 0 0,",Ta," ",cr[1],"A",Ar,",",Ar," 0 ",1-ja^Yl(cr[1][0],cr[1][1],fa[1][0],fa[1][1]),",",ja," ",fa[1],"A",mo,",",mo," 0 0,",Ta," ",fa[0]):to.push("M",cr[0],"A",mo,",",mo," 0 1,",Ta," ",fa[0])}else to.push("M",_n,",",Zn);if(Ro!=null){var xa=Kl([_n,Zn],[Ro,Ai],Cr,-Bo,ja),fn=Kl([vi,bi],Vn==null?[_n,Zn]:[Vn,Xn],Cr,-Bo,ja);la===Bo?to.push("L",fn[0],"A",Bo,",",Bo," 0 0,",Ta," ",fn[1],"A",Cr,",",Cr," 0 ",ja^Yl(fn[1][0],fn[1][1],xa[1][0],xa[1][1]),",",1-ja," ",xa[1],"A",Bo,",",Bo," 0 0,",Ta," ",xa[0]):to.push("L",fn[0],"A",Bo,",",Bo," 0 0,",Ta," ",xa[0])}else to.push("L",vi,",",bi)}else to.push("M",_n,",",Zn),Vn!=null&&to.push("A",Ar,",",Ar," 0 ",Wo,",",ja," ",Vn,",",Xn),to.push("L",vi,",",bi),Ro!=null&&to.push("A",Cr,",",Cr," 0 ",Is,",",1-ja," ",Ro,",",Ai);return to.push("Z"),to.join("")}function $t(Cr,Ar){return"M0,"+Cr+"A"+Cr+","+Cr+" 0 1,"+Ar+" 0,"+-Cr+"A"+Cr+","+Cr+" 0 1,"+Ar+" 0,"+Cr}return Dt.innerRadius=function(Cr){return arguments.length?(pe=wt(Cr),Dt):pe},Dt.outerRadius=function(Cr){return arguments.length?(Le=wt(Cr),Dt):Le},Dt.cornerRadius=function(Cr){return arguments.length?(Ye=wt(Cr),Dt):Ye},Dt.padRadius=function(Cr){return arguments.length?(ut=Cr==Ps?Ps:wt(Cr),Dt):ut},Dt.startAngle=function(Cr){return arguments.length?(ht=wt(Cr),Dt):ht},Dt.endAngle=function(Cr){return arguments.length?(xt=wt(Cr),Dt):xt},Dt.padAngle=function(Cr){return arguments.length?(zt=wt(Cr),Dt):zt},Dt.centroid=function(){var Cr=(+pe.apply(this,arguments)+ +Le.apply(this,arguments))/2,Ar=(+ht.apply(this,arguments)+ +xt.apply(this,arguments))/2-Pe;return[Math.cos(Ar)*Cr,Math.sin(Ar)*Cr]},Dt};var Ps="auto";function hi(pe){return pe.innerRadius}function so(pe){return pe.outerRadius}function ws(pe){return pe.startAngle}function ts(pe){return pe.endAngle}function Wl(pe){return pe&&pe.padAngle}function Yl(pe,Le,Ye,ut){return(pe-Ye)*Le-(Le-ut)*pe>0?0:1}function Kl(pe,Le,Ye,ut,ht){var xt=pe[0]-Le[0],zt=pe[1]-Le[1],Dt=(ht?ut:-ut)/Math.sqrt(xt*xt+zt*zt),$t=Dt*zt,Cr=-Dt*xt,Ar=pe[0]+$t,Vr=pe[1]+Cr,Kr=Le[0]+$t,aa=Le[1]+Cr,ja=(Ar+Kr)/2,la=(Vr+aa)/2,Ta=Kr-Ar,ka=aa-Vr,Na=Ta*Ta+ka*ka,qa=Ye-ut,Ma=Ar*aa-Kr*Vr,_n=(ka<0?-1:1)*Math.sqrt(Math.max(0,qa*qa*Na-Ma*Ma)),Zn=(Ma*ka-Ta*_n)/Na,Vn=(-Ma*Ta-ka*_n)/Na,Xn=(Ma*ka+Ta*_n)/Na,vi=(-Ma*Ta+ka*_n)/Na,bi=Zn-ja,Ro=Vn-la,Ai=Xn-ja,to=vi-la;return bi*bi+Ro*Ro>Ai*Ai+to*to&&(Zn=Xn,Vn=vi),[[Zn-$t,Vn-Cr],[Zn*Ye/qa,Vn*Ye/qa]]}function bc(){return!0}function Jl(pe){var Le=_i,Ye=Ii,ut=bc,ht=cl,xt=ht.key,zt=.7;function Dt($t){var Cr=[],Ar=[],Vr=-1,Kr=$t.length,aa,ja=wt(Le),la=wt(Ye);function Ta(){Cr.push("M",ht(pe(Ar),zt))}for(;++Vr<Kr;)ut.call(this,aa=$t[Vr],Vr)?Ar.push([+ja.call(this,aa,Vr),+la.call(this,aa,Vr)]):Ar.length&&(Ta(),Ar=[]);return Ar.length&&Ta(),Cr.length?Cr.join(""):null}return Dt.x=function($t){return arguments.length?(Le=$t,Dt):Le},Dt.y=function($t){return arguments.length?(Ye=$t,Dt):Ye},Dt.defined=function($t){return arguments.length?(ut=$t,Dt):ut},Dt.interpolate=function($t){return arguments.length?(typeof $t=="function"?xt=ht=$t:xt=(ht=$u.get($t)||cl).key,Dt):xt},Dt.tension=function($t){return arguments.length?(zt=$t,Dt):zt},Dt}d.svg.line=function(){return Jl(F)};var $u=d.map({linear:cl,"linear-closed":hc,step:Zi,"step-before":no,"step-after":Qu,basis:Te,"basis-open":Se,"basis-closed":Ie,bundle:ot,cardinal:De,"cardinal-open":Hu,"cardinal-closed":Rc,monotone:Ze});$u.forEach(function(pe,Le){Le.key=pe,Le.closed=/-closed$/.test(pe)});function cl(pe){return pe.length>1?pe.join("L"):pe+"Z"}function hc(pe){return pe.join("L")+"Z"}function Zi(pe){for(var Le=0,Ye=pe.length,ut=pe[0],ht=[ut[0],",",ut[1]];++Le<Ye;)ht.push("H",(ut[0]+(ut=pe[Le])[0])/2,"V",ut[1]);return Ye>1&&ht.push("H",ut[0]),ht.join("")}function no(pe){for(var Le=0,Ye=pe.length,ut=pe[0],ht=[ut[0],",",ut[1]];++Le<Ye;)ht.push("V",(ut=pe[Le])[1],"H",ut[0]);return ht.join("")}function Qu(pe){for(var Le=0,Ye=pe.length,ut=pe[0],ht=[ut[0],",",ut[1]];++Le<Ye;)ht.push("H",(ut=pe[Le])[0],"V",ut[1]);return ht.join("")}function Hu(pe,Le){return pe.length<4?cl(pe):pe[1]+I(pe.slice(1,-1),ne(pe,Le))}function Rc(pe,Le){return pe.length<3?hc(pe):pe[0]+I((pe.push(pe[0]),pe),ne([pe[pe.length-2]].concat(pe,[pe[1]]),Le))}function De(pe,Le){return pe.length<3?cl(pe):pe[0]+I(pe,ne(pe,Le))}function I(pe,Le){if(Le.length<1||pe.length!=Le.length&&pe.length!=Le.length+2)return cl(pe);var Ye=pe.length!=Le.length,ut="",ht=pe[0],xt=pe[1],zt=Le[0],Dt=zt,$t=1;if(Ye&&(ut+="Q"+(xt[0]-zt[0]*2/3)+","+(xt[1]-zt[1]*2/3)+","+xt[0]+","+xt[1],ht=pe[1],$t=2),Le.length>1){Dt=Le[1],xt=pe[$t],$t++,ut+="C"+(ht[0]+zt[0])+","+(ht[1]+zt[1])+","+(xt[0]-Dt[0])+","+(xt[1]-Dt[1])+","+xt[0]+","+xt[1];for(var Cr=2;Cr<Le.length;Cr++,$t++)xt=pe[$t],Dt=Le[Cr],ut+="S"+(xt[0]-Dt[0])+","+(xt[1]-Dt[1])+","+xt[0]+","+xt[1]}if(Ye){var Ar=pe[$t];ut+="Q"+(xt[0]+Dt[0]*2/3)+","+(xt[1]+Dt[1]*2/3)+","+Ar[0]+","+Ar[1]}return ut}function ne(pe,Le){for(var Ye=[],ut=(1-Le)/2,ht,xt=pe[0],zt=pe[1],Dt=1,$t=pe.length;++Dt<$t;)ht=xt,xt=zt,zt=pe[Dt],Ye.push([ut*(zt[0]-ht[0]),ut*(zt[1]-ht[1])]);return Ye}function Te(pe){if(pe.length<3)return cl(pe);var Le=1,Ye=pe.length,ut=pe[0],ht=ut[0],xt=ut[1],zt=[ht,ht,ht,(ut=pe[1])[0]],Dt=[xt,xt,xt,ut[1]],$t=[ht,",",xt,"L",yt(nr,zt),",",yt(nr,Dt)];for(pe.push(pe[Ye-1]);++Le<=Ye;)ut=pe[Le],zt.shift(),zt.push(ut[0]),Dt.shift(),Dt.push(ut[1]),or($t,zt,Dt);return pe.pop(),$t.push("L",ut),$t.join("")}function Se(pe){if(pe.length<4)return cl(pe);for(var Le=[],Ye=-1,ut=pe.length,ht,xt=[0],zt=[0];++Ye<3;)ht=pe[Ye],xt.push(ht[0]),zt.push(ht[1]);for(Le.push(yt(nr,xt)+","+yt(nr,zt)),--Ye;++Ye<ut;)ht=pe[Ye],xt.shift(),xt.push(ht[0]),zt.shift(),zt.push(ht[1]),or(Le,xt,zt);return Le.join("")}function Ie(pe){for(var Le,Ye=-1,ut=pe.length,ht=ut+4,xt,zt=[],Dt=[];++Ye<4;)xt=pe[Ye%ut],zt.push(xt[0]),Dt.push(xt[1]);for(Le=[yt(nr,zt),",",yt(nr,Dt)],--Ye;++Ye<ht;)xt=pe[Ye%ut],zt.shift(),zt.push(xt[0]),Dt.shift(),Dt.push(xt[1]),or(Le,zt,Dt);return Le.join("")}function ot(pe,Le){var Ye=pe.length-1;if(Ye)for(var ut=pe[0][0],ht=pe[0][1],xt=pe[Ye][0]-ut,zt=pe[Ye][1]-ht,Dt=-1,$t,Cr;++Dt<=Ye;)$t=pe[Dt],Cr=Dt/Ye,$t[0]=Le*$t[0]+(1-Le)*(ut+Cr*xt),$t[1]=Le*$t[1]+(1-Le)*(ht+Cr*zt);return Te(pe)}function yt(pe,Le){return pe[0]*Le[0]+pe[1]*Le[1]+pe[2]*Le[2]+pe[3]*Le[3]}var Ct=[0,2/3,1/3,0],Wt=[0,1/3,2/3,0],nr=[0,1/6,2/3,1/6];function or(pe,Le,Ye){pe.push("C",yt(Ct,Le),",",yt(Ct,Ye),",",yt(Wt,Le),",",yt(Wt,Ye),",",yt(nr,Le),",",yt(nr,Ye))}function Fr(pe,Le){return(Le[1]-pe[1])/(Le[0]-pe[0])}function Wr(pe){for(var Le=0,Ye=pe.length-1,ut=[],ht=pe[0],xt=pe[1],zt=ut[0]=Fr(ht,xt);++Le<Ye;)ut[Le]=(zt+(zt=Fr(ht=xt,xt=pe[Le+1])))/2;return ut[Le]=zt,ut}function je(pe){for(var Le=[],Ye,ut,ht,xt,zt=Wr(pe),Dt=-1,$t=pe.length-1;++Dt<$t;)Ye=Fr(pe[Dt],pe[Dt+1]),l(Ye)<Ge?zt[Dt]=zt[Dt+1]=0:(ut=zt[Dt]/Ye,ht=zt[Dt+1]/Ye,xt=ut*ut+ht*ht,xt>9&&(xt=Ye*3/Math.sqrt(xt),zt[Dt]=xt*ut,zt[Dt+1]=xt*ht));for(Dt=-1;++Dt<=$t;)xt=(pe[Math.min($t,Dt+1)][0]-pe[Math.max(0,Dt-1)][0])/(6*(1+zt[Dt]*zt[Dt])),Le.push([xt||0,zt[Dt]*xt||0]);return Le}function Ze(pe){return pe.length<3?cl(pe):pe[0]+I(pe,je(pe))}d.svg.line.radial=function(){var pe=Jl(at);return pe.radius=pe.x,delete pe.x,pe.angle=pe.y,delete pe.y,pe};function at(pe){for(var Le,Ye=-1,ut=pe.length,ht,xt;++Ye<ut;)Le=pe[Ye],ht=Le[0],xt=Le[1]-Pe,Le[0]=ht*Math.cos(xt),Le[1]=ht*Math.sin(xt);return pe}function lt(pe){var Le=_i,Ye=_i,ut=0,ht=Ii,xt=bc,zt=cl,Dt=zt.key,$t=zt,Cr="L",Ar=.7;function Vr(Kr){var aa=[],ja=[],la=[],Ta=-1,ka=Kr.length,Na,qa=wt(Le),Ma=wt(ut),_n=Le===Ye?function(){return Vn}:wt(Ye),Zn=ut===ht?function(){return Xn}:wt(ht),Vn,Xn;function vi(){aa.push("M",zt(pe(la),Ar),Cr,$t(pe(ja.reverse()),Ar),"Z")}for(;++Ta<ka;)xt.call(this,Na=Kr[Ta],Ta)?(ja.push([Vn=+qa.call(this,Na,Ta),Xn=+Ma.call(this,Na,Ta)]),la.push([+_n.call(this,Na,Ta),+Zn.call(this,Na,Ta)])):ja.length&&(vi(),ja=[],la=[]);return ja.length&&vi(),aa.length?aa.join(""):null}return Vr.x=function(Kr){return arguments.length?(Le=Ye=Kr,Vr):Ye},Vr.x0=function(Kr){return arguments.length?(Le=Kr,Vr):Le},Vr.x1=function(Kr){return arguments.length?(Ye=Kr,Vr):Ye},Vr.y=function(Kr){return arguments.length?(ut=ht=Kr,Vr):ht},Vr.y0=function(Kr){return arguments.length?(ut=Kr,Vr):ut},Vr.y1=function(Kr){return arguments.length?(ht=Kr,Vr):ht},Vr.defined=function(Kr){return arguments.length?(xt=Kr,Vr):xt},Vr.interpolate=function(Kr){return arguments.length?(typeof Kr=="function"?Dt=zt=Kr:Dt=(zt=$u.get(Kr)||cl).key,$t=zt.reverse||zt,Cr=zt.closed?"M":"L",Vr):Dt},Vr.tension=function(Kr){return arguments.length?(Ar=Kr,Vr):Ar},Vr}no.reverse=Qu,Qu.reverse=no,d.svg.area=function(){return lt(F)},d.svg.area.radial=function(){var pe=lt(at);return pe.radius=pe.x,delete pe.x,pe.innerRadius=pe.x0,delete pe.x0,pe.outerRadius=pe.x1,delete pe.x1,pe.angle=pe.y,delete pe.y,pe.startAngle=pe.y0,delete pe.y0,pe.endAngle=pe.y1,delete pe.y1,pe};function Tt(pe){return pe.source}function gt(pe){return pe.target}d.svg.chord=function(){var pe=Tt,Le=gt,Ye=Et,ut=ws,ht=ts;function xt(Ar,Vr){var Kr=zt(this,pe,Ar,Vr),aa=zt(this,Le,Ar,Vr);return"M"+Kr.p0+$t(Kr.r,Kr.p1,Kr.a1-Kr.a0)+(Dt(Kr,aa)?Cr(Kr.r,Kr.p1,Kr.r,Kr.p0):Cr(Kr.r,Kr.p1,aa.r,aa.p0)+$t(aa.r,aa.p1,aa.a1-aa.a0)+Cr(aa.r,aa.p1,Kr.r,Kr.p0))+"Z"}function zt(Ar,Vr,Kr,aa){var ja=Vr.call(Ar,Kr,aa),la=Ye.call(Ar,ja,aa),Ta=ut.call(Ar,ja,aa)-Pe,ka=ht.call(Ar,ja,aa)-Pe;return{r:la,a0:Ta,a1:ka,p0:[la*Math.cos(Ta),la*Math.sin(Ta)],p1:[la*Math.cos(ka),la*Math.sin(ka)]}}function Dt(Ar,Vr){return Ar.a0==Vr.a0&&Ar.a1==Vr.a1}function $t(Ar,Vr,Kr){return"A"+Ar+","+Ar+" 0 "+ +(Kr>ve)+",1 "+Vr}function Cr(Ar,Vr,Kr,aa){return"Q 0,0 "+aa}return xt.radius=function(Ar){return arguments.length?(Ye=wt(Ar),xt):Ye},xt.source=function(Ar){return arguments.length?(pe=wt(Ar),xt):pe},xt.target=function(Ar){return arguments.length?(Le=wt(Ar),xt):Le},xt.startAngle=function(Ar){return arguments.length?(ut=wt(Ar),xt):ut},xt.endAngle=function(Ar){return arguments.length?(ht=wt(Ar),xt):ht},xt};function Et(pe){return pe.radius}d.svg.diagonal=function(){var pe=Tt,Le=gt,Ye=Yt;function ut(ht,xt){var zt=pe.call(this,ht,xt),Dt=Le.call(this,ht,xt),$t=(zt.y+Dt.y)/2,Cr=[zt,{x:zt.x,y:$t},{x:Dt.x,y:$t},Dt];return Cr=Cr.map(Ye),"M"+Cr[0]+"C"+Cr[1]+" "+Cr[2]+" "+Cr[3]}return ut.source=function(ht){return arguments.length?(pe=wt(ht),ut):pe},ut.target=function(ht){return arguments.length?(Le=wt(ht),ut):Le},ut.projection=function(ht){return arguments.length?(Ye=ht,ut):Ye},ut};function Yt(pe){return[pe.x,pe.y]}d.svg.diagonal.radial=function(){var pe=d.svg.diagonal(),Le=Yt,Ye=pe.projection;return pe.projection=function(ut){return arguments.length?Ye(rr(Le=ut)):Le},pe};function rr(pe){return function(){var Le=pe.apply(this,arguments),Ye=Le[0],ut=Le[1]-Pe;return[Ye*Math.cos(ut),Ye*Math.sin(ut)]}}d.svg.symbol=function(){var pe=Sr,Le=sr;function Ye(ut,ht){return(Qr.get(pe.call(this,ut,ht))||Nr)(Le.call(this,ut,ht))}return Ye.type=function(ut){return arguments.length?(pe=wt(ut),Ye):pe},Ye.size=function(ut){return arguments.length?(Le=wt(ut),Ye):Le},Ye};function sr(){return 64}function Sr(){return"circle"}function Nr(pe){var Le=Math.sqrt(pe/ve);return"M0,"+Le+"A"+Le+","+Le+" 0 1,1 0,"+-Le+"A"+Le+","+Le+" 0 1,1 0,"+Le+"Z"}var Qr=d.map({circle:Nr,cross:function(pe){var Le=Math.sqrt(pe/5)/2;return"M"+-3*Le+","+-Le+"H"+-Le+"V"+-3*Le+"H"+Le+"V"+-Le+"H"+3*Le+"V"+Le+"H"+Le+"V"+3*Le+"H"+-Le+"V"+Le+"H"+-3*Le+"Z"},diamond:function(pe){var Le=Math.sqrt(pe/(2*_a)),Ye=Le*_a;return"M0,"+-Le+"L"+Ye+",0 0,"+Le+" "+-Ye+",0Z"},square:function(pe){var Le=Math.sqrt(pe)/2;return"M"+-Le+","+-Le+"L"+Le+","+-Le+" "+Le+","+Le+" "+-Le+","+Le+"Z"},"triangle-down":function(pe){var Le=Math.sqrt(pe/ia),Ye=Le*ia/2;return"M0,"+Ye+"L"+Le+","+-Ye+" "+-Le+","+-Ye+"Z"},"triangle-up":function(pe){var Le=Math.sqrt(pe/ia),Ye=Le*ia/2;return"M0,"+-Ye+"L"+Le+","+Ye+" "+-Le+","+Ye+"Z"}});d.svg.symbolTypes=Qr.keys();var ia=Math.sqrt(3),_a=Math.tan(30*We);ee.transition=function(pe){for(var Le=yi||++Un,Ye=qo(pe),ut=[],ht,xt,zt=si||{time:Date.now(),ease:co,delay:0,duration:250},Dt=-1,$t=this.length;++Dt<$t;){ut.push(ht=[]);for(var Cr=this[Dt],Ar=-1,Vr=Cr.length;++Ar<Vr;)(xt=Cr[Ar])&&yo(xt,Ar,Ye,Le,zt),ht.push(xt)}return en(ut,Ye,Le)},ee.interrupt=function(pe){return this.each(pe==null?Fa:on(qo(pe)))};var Fa=on(qo());function on(pe){return function(){var Le,Ye,ut;(Le=this[pe])&&(ut=Le[Ye=Le.active])&&(ut.timer.c=null,ut.timer.t=NaN,--Le.count?delete Le[Ye]:delete this[pe],Le.active+=.5,ut.event&&ut.event.interrupt.call(this,this.__data__,ut.index))}}function en(pe,Le,Ye){return j(pe,un),pe.namespace=Le,pe.id=Ye,pe}var un=[],Un=0,yi,si;un.call=ee.call,un.empty=ee.empty,un.node=ee.node,un.size=ee.size,d.transition=function(pe,Le){return pe&&pe.transition?yi?pe.transition(Le):pe:d.selection().transition(pe)},d.transition.prototype=un,un.select=function(pe){var Le=this.id,Ye=this.namespace,ut=[],ht,xt,zt;pe=q(pe);for(var Dt=-1,$t=this.length;++Dt<$t;){ut.push(ht=[]);for(var Cr=this[Dt],Ar=-1,Vr=Cr.length;++Ar<Vr;)(zt=Cr[Ar])&&(xt=pe.call(zt,zt.__data__,Ar,Dt))?("__data__"in zt&&(xt.__data__=zt.__data__),yo(xt,Ar,Ye,Le,zt[Ye][Le]),ht.push(xt)):ht.push(null)}return en(ut,Ye,Le)},un.selectAll=function(pe){var Le=this.id,Ye=this.namespace,ut=[],ht,xt,zt,Dt,$t;pe=ae(pe);for(var Cr=-1,Ar=this.length;++Cr<Ar;)for(var Vr=this[Cr],Kr=-1,aa=Vr.length;++Kr<aa;)if(zt=Vr[Kr]){$t=zt[Ye][Le],xt=pe.call(zt,zt.__data__,Kr,Cr),ut.push(ht=[]);for(var ja=-1,la=xt.length;++ja<la;)(Dt=xt[ja])&&yo(Dt,ja,Ye,Le,$t),ht.push(Dt)}return en(ut,Ye,Le)},un.filter=function(pe){var Le=[],Ye,ut,ht;typeof pe!="function"&&(pe=ce(pe));for(var xt=0,zt=this.length;xt<zt;xt++){Le.push(Ye=[]);for(var ut=this[xt],Dt=0,$t=ut.length;Dt<$t;Dt++)(ht=ut[Dt])&&pe.call(ht,ht.__data__,Dt,xt)&&Ye.push(ht)}return en(Le,this.namespace,this.id)},un.tween=function(pe,Le){var Ye=this.id,ut=this.namespace;return arguments.length<2?this.node()[ut][Ye].tween.get(pe):$e(this,Le==null?function(ht){ht[ut][Ye].tween.remove(pe)}:function(ht){ht[ut][Ye].tween.set(pe,Le)})};function Yi(pe,Le,Ye,ut){var ht=pe.id,xt=pe.namespace;return $e(pe,typeof Ye=="function"?function(zt,Dt,$t){zt[xt][ht].tween.set(Le,ut(Ye.call(zt,zt.__data__,Dt,$t)))}:(Ye=ut(Ye),function(zt){zt[xt][ht].tween.set(Le,Ye)}))}un.attr=function(pe,Le){if(arguments.length<2){for(Le in pe)this.attr(Le,pe[Le]);return this}var Ye=pe=="transform"?$c:es,ut=d.ns.qualify(pe);function ht(){this.removeAttribute(ut)}function xt(){this.removeAttributeNS(ut.space,ut.local)}function zt($t){return $t==null?ht:($t+="",function(){var Cr=this.getAttribute(ut),Ar;return Cr!==$t&&(Ar=Ye(Cr,$t),function(Vr){this.setAttribute(ut,Ar(Vr))})})}function Dt($t){return $t==null?xt:($t+="",function(){var Cr=this.getAttributeNS(ut.space,ut.local),Ar;return Cr!==$t&&(Ar=Ye(Cr,$t),function(Vr){this.setAttributeNS(ut.space,ut.local,Ar(Vr))})})}return Yi(this,"attr."+pe,Le,ut.local?Dt:zt)},un.attrTween=function(pe,Le){var Ye=d.ns.qualify(pe);function ut(xt,zt){var Dt=Le.call(this,xt,zt,this.getAttribute(Ye));return Dt&&function($t){this.setAttribute(Ye,Dt($t))}}function ht(xt,zt){var Dt=Le.call(this,xt,zt,this.getAttributeNS(Ye.space,Ye.local));return Dt&&function($t){this.setAttributeNS(Ye.space,Ye.local,Dt($t))}}return this.tween("attr."+pe,Ye.local?ht:ut)},un.style=function(pe,Le,Ye){var ut=arguments.length;if(ut<3){if(typeof pe!="string"){ut<2&&(Le="");for(Ye in pe)this.style(Ye,pe[Ye],Le);return this}Ye=""}function ht(){this.style.removeProperty(pe)}function xt(zt){return zt==null?ht:(zt+="",function(){var Dt=t(this).getComputedStyle(this,null).getPropertyValue(pe),$t;return Dt!==zt&&($t=es(Dt,zt),function(Cr){this.style.setProperty(pe,$t(Cr),Ye)})})}return Yi(this,"style."+pe,Le,xt)},un.styleTween=function(pe,Le,Ye){arguments.length<3&&(Ye="");function ut(ht,xt){var zt=Le.call(this,ht,xt,t(this).getComputedStyle(this,null).getPropertyValue(pe));return zt&&function(Dt){this.style.setProperty(pe,zt(Dt),Ye)}}return this.tween("style."+pe,ut)},un.text=function(pe){return Yi(this,"text",pe,Vo)};function Vo(pe){return pe==null&&(pe=""),function(){this.textContent=pe}}un.remove=function(){var pe=this.namespace;return this.each("end.transition",function(){var Le;this[pe].count<2&&(Le=this.parentNode)&&Le.removeChild(this)})},un.ease=function(pe){var Le=this.id,Ye=this.namespace;return arguments.length<1?this.node()[Ye][Le].ease:(typeof pe!="function"&&(pe=d.ease.apply(d,arguments)),$e(this,function(ut){ut[Ye][Le].ease=pe}))},un.delay=function(pe){var Le=this.id,Ye=this.namespace;return arguments.length<1?this.node()[Ye][Le].delay:$e(this,typeof pe=="function"?function(ut,ht,xt){ut[Ye][Le].delay=+pe.call(ut,ut.__data__,ht,xt)}:(pe=+pe,function(ut){ut[Ye][Le].delay=pe}))},un.duration=function(pe){var Le=this.id,Ye=this.namespace;return arguments.length<1?this.node()[Ye][Le].duration:$e(this,typeof pe=="function"?function(ut,ht,xt){ut[Ye][Le].duration=Math.max(1,pe.call(ut,ut.__data__,ht,xt))}:(pe=Math.max(1,pe),function(ut){ut[Ye][Le].duration=pe}))},un.each=function(pe,Le){var Ye=this.id,ut=this.namespace;if(arguments.length<2){var ht=si,xt=yi;try{yi=Ye,$e(this,function(zt,Dt,$t){si=zt[ut][Ye],pe.call(zt,zt.__data__,Dt,$t)})}finally{si=ht,yi=xt}}else $e(this,function(zt){var Dt=zt[ut][Ye];(Dt.event||(Dt.event=d.dispatch("start","end","interrupt"))).on(pe,Le)});return this},un.transition=function(){for(var pe=this.id,Le=++Un,Ye=this.namespace,ut=[],ht,xt,zt,Dt,$t=0,Cr=this.length;$t<Cr;$t++){ut.push(ht=[]);for(var xt=this[$t],Ar=0,Vr=xt.length;Ar<Vr;Ar++)(zt=xt[Ar])&&(Dt=zt[Ye][pe],yo(zt,Ar,Ye,Le,{time:Dt.time,ease:Dt.ease,delay:Dt.delay+Dt.duration,duration:Dt.duration})),ht.push(zt)}return en(ut,Ye,Le)};function qo(pe){return pe==null?"__transition__":"__transition_"+pe+"__"}function yo(pe,Le,Ye,ut,ht){var xt=pe[Ye]||(pe[Ye]={active:0,count:0}),zt=xt[ut],Dt,$t,Cr,Ar,Vr;function Kr(la){var Ta=zt.delay;if($t.t=Ta+Dt,Ta<=la)return aa(la-Ta);$t.c=aa}function aa(la){var Ta=xt.active,ka=xt[Ta];ka&&(ka.timer.c=null,ka.timer.t=NaN,--xt.count,delete xt[Ta],ka.event&&ka.event.interrupt.call(pe,pe.__data__,ka.index));for(var Na in xt)if(+Na<ut){var qa=xt[Na];qa.timer.c=null,qa.timer.t=NaN,--xt.count,delete xt[Na]}$t.c=ja,Wa(function(){return $t.c&&ja(la||1)&&($t.c=null,$t.t=NaN),1},0,Dt),xt.active=ut,zt.event&&zt.event.start.call(pe,pe.__data__,Le),Vr=[],zt.tween.forEach(function(Ma,_n){(_n=_n.call(pe,pe.__data__,Le))&&Vr.push(_n)}),Ar=zt.ease,Cr=zt.duration}function ja(la){for(var Ta=la/Cr,ka=Ar(Ta),Na=Vr.length;Na>0;)Vr[--Na].call(pe,ka);if(Ta>=1)return zt.event&&zt.event.end.call(pe,pe.__data__,Le),--xt.count?delete xt[ut]:delete pe[Ye],1}zt||(Dt=ht.time,$t=Wa(Kr,0,Dt),zt=xt[ut]={tween:new S,time:Dt,timer:$t,delay:ht.delay,duration:ht.duration,ease:ht.ease,index:Le},ht=null,++xt.count)}d.svg.axis=function(){var pe=d.scale.linear(),Le=Jo,Ye=6,ut=6,ht=3,xt=[10],zt=null,Dt;function $t(Cr){Cr.each(function(){var Ar=d.select(this),Vr=this.__chart__||pe,Kr=this.__chart__=pe.copy(),aa=zt??(Kr.ticks?Kr.ticks.apply(Kr,xt):Kr.domain()),ja=Dt??(Kr.tickFormat?Kr.tickFormat.apply(Kr,xt):F),la=Ar.selectAll(".tick").data(aa,Kr),Ta=la.enter().insert("g",".domain").attr("class","tick").style("opacity",Ge),ka=d.transition(la.exit()).style("opacity",Ge).remove(),Na=d.transition(la.order()).style("opacity",1),qa=Math.max(Ye,0)+ht,Ma,_n=Oa(Kr),Zn=Ar.selectAll(".domain").data([0]),Vn=(Zn.enter().append("path").attr("class","domain"),d.transition(Zn));Ta.append("line"),Ta.append("text");var Xn=Ta.select("line"),vi=Na.select("line"),bi=la.select("text").text(ja),Ro=Ta.select("text"),Ai=Na.select("text"),to=Le==="top"||Le==="left"?-1:1,Wo,fl,Is,$n;if(Le==="bottom"||Le==="top"?(Ma=Vs,Wo="x",Is="y",fl="x2",$n="y2",bi.attr("dy",to<0?"0em":".71em").style("text-anchor","middle"),Vn.attr("d","M"+_n[0]+","+to*ut+"V0H"+_n[1]+"V"+to*ut)):(Ma=To,Wo="y",Is="x",fl="y2",$n="x2",bi.attr("dy",".32em").style("text-anchor",to<0?"end":"start"),Vn.attr("d","M"+to*ut+","+_n[0]+"H0V"+_n[1]+"H"+to*ut)),Xn.attr($n,to*Ye),Ro.attr(Is,to*qa),vi.attr(fl,0).attr($n,to*Ye),Ai.attr(Wo,0).attr(Is,to*qa),Kr.rangeBand){var mo=Kr,Bo=mo.rangeBand()/2;Vr=Kr=function(Rs){return mo(Rs)+Bo}}else Vr.rangeBand?Vr=Kr:ka.call(Ma,Kr,Vr);Ta.call(Ma,Vr,Kr),Na.call(Ma,Kr,Kr)})}return $t.scale=function(Cr){return arguments.length?(pe=Cr,$t):pe},$t.orient=function(Cr){return arguments.length?(Le=Cr in Ys?Cr+"":Jo,$t):Le},$t.ticks=function(){return arguments.length?(xt=A(arguments),$t):xt},$t.tickValues=function(Cr){return arguments.length?(zt=Cr,$t):zt},$t.tickFormat=function(Cr){return arguments.length?(Dt=Cr,$t):Dt},$t.tickSize=function(Cr){var Ar=arguments.length;return Ar?(Ye=+Cr,ut=+arguments[Ar-1],$t):Ye},$t.innerTickSize=function(Cr){return arguments.length?(Ye=+Cr,$t):Ye},$t.outerTickSize=function(Cr){return arguments.length?(ut=+Cr,$t):ut},$t.tickPadding=function(Cr){return arguments.length?(ht=+Cr,$t):ht},$t.tickSubdivide=function(){return arguments.length&&$t},$t};var Jo="bottom",Ys={top:1,right:1,bottom:1,left:1};function Vs(pe,Le,Ye){pe.attr("transform",function(ut){var ht=Le(ut);return"translate("+(isFinite(ht)?ht:Ye(ut))+",0)"})}function To(pe,Le,Ye){pe.attr("transform",function(ut){var ht=Le(ut);return"translate(0,"+(isFinite(ht)?ht:Ye(ut))+")"})}d.svg.brush=function(){var pe=oe(Ar,"brushstart","brush","brushend"),Le=null,Ye=null,ut=[0,0],ht=[0,0],xt,zt,Dt=!0,$t=!0,Cr=xl[0];function Ar(la){la.each(function(){var Ta=d.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",ja).on("touchstart.brush",ja),ka=Ta.selectAll(".background").data([0]);ka.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),Ta.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var Na=Ta.selectAll(".resize").data(Cr,F);Na.exit().remove(),Na.enter().append("g").attr("class",function(Zn){return"resize "+Zn}).style("cursor",function(Zn){return Ao[Zn]}).append("rect").attr("x",function(Zn){return/[ew]$/.test(Zn)?-3:null}).attr("y",function(Zn){return/^[ns]/.test(Zn)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),Na.style("display",Ar.empty()?"none":null);var qa=d.transition(Ta),Ma=d.transition(ka),_n;Le&&(_n=Oa(Le),Ma.attr("x",_n[0]).attr("width",_n[1]-_n[0]),Kr(qa)),Ye&&(_n=Oa(Ye),Ma.attr("y",_n[0]).attr("height",_n[1]-_n[0]),aa(qa)),Vr(qa)})}Ar.event=function(la){la.each(function(){var Ta=pe.of(this,arguments),ka={x:ut,y:ht,i:xt,j:zt},Na=this.__chart__||ka;this.__chart__=ka,yi?d.select(this).transition().each("start.brush",function(){xt=Na.i,zt=Na.j,ut=Na.x,ht=Na.y,Ta({type:"brushstart"})}).tween("brush:brush",function(){var qa=zs(ut,ka.x),Ma=zs(ht,ka.y);return xt=zt=null,function(_n){ut=ka.x=qa(_n),ht=ka.y=Ma(_n),Ta({type:"brush",mode:"resize"})}}).each("end.brush",function(){xt=ka.i,zt=ka.j,Ta({type:"brush",mode:"resize"}),Ta({type:"brushend"})}):(Ta({type:"brushstart"}),Ta({type:"brush",mode:"resize"}),Ta({type:"brushend"}))})};function Vr(la){la.selectAll(".resize").attr("transform",function(Ta){return"translate("+ut[+/e$/.test(Ta)]+","+ht[+/^s/.test(Ta)]+")"})}function Kr(la){la.select(".extent").attr("x",ut[0]),la.selectAll(".extent,.n>rect,.s>rect").attr("width",ut[1]-ut[0])}function aa(la){la.select(".extent").attr("y",ht[0]),la.selectAll(".extent,.e>rect,.w>rect").attr("height",ht[1]-ht[0])}function ja(){var la=this,Ta=d.select(d.event.target),ka=pe.of(la,arguments),Na=d.select(la),qa=Ta.datum(),Ma=!/^(n|s)$/.test(qa)&&Le,_n=!/^(e|w)$/.test(qa)&&Ye,Zn=Ta.classed("extent"),Vn=fr(la),Xn,vi=d.mouse(la),bi,Ro=d.select(t(la)).on("keydown.brush",Wo).on("keyup.brush",fl);if(d.event.changedTouches?Ro.on("touchmove.brush",Is).on("touchend.brush",mo):Ro.on("mousemove.brush",Is).on("mouseup.brush",mo),Na.interrupt().selectAll("*").interrupt(),Zn)vi[0]=ut[0]-vi[0],vi[1]=ht[0]-vi[1];else if(qa){var Ai=+/w$/.test(qa),to=+/^n/.test(qa);bi=[ut[1-Ai]-vi[0],ht[1-to]-vi[1]],vi[0]=ut[Ai],vi[1]=ht[to]}else d.event.altKey&&(Xn=vi.slice());Na.style("pointer-events","none").selectAll(".resize").style("display",null),d.select("body").style("cursor",Ta.style("cursor")),ka({type:"brushstart"}),Is();function Wo(){d.event.keyCode==32&&(Zn||(Xn=null,vi[0]-=ut[1],vi[1]-=ht[1],Zn=2),Q())}function fl(){d.event.keyCode==32&&Zn==2&&(vi[0]+=ut[1],vi[1]+=ht[1],Zn=0,Q())}function Is(){var Bo=d.mouse(la),Rs=!1;bi&&(Bo[0]+=bi[0],Bo[1]+=bi[1]),Zn||(d.event.altKey?(Xn||(Xn=[(ut[0]+ut[1])/2,(ht[0]+ht[1])/2]),vi[0]=ut[+(Bo[0]<Xn[0])],vi[1]=ht[+(Bo[1]<Xn[1])]):Xn=null),Ma&&$n(Bo,Le,0)&&(Kr(Na),Rs=!0),_n&&$n(Bo,Ye,1)&&(aa(Na),Rs=!0),Rs&&(Vr(Na),ka({type:"brush",mode:Zn?"move":"resize"}))}function $n(Bo,Rs,ms){var $l=Oa(Rs),as=$l[0],Ss=$l[1],Au=vi[ms],nl=ms?ht:ut,cr=nl[1]-nl[0],fa,xa;if(Zn&&(as-=Au,Ss-=cr+Au),fa=(ms?$t:Dt)?Math.max(as,Math.min(Ss,Bo[ms])):Bo[ms],Zn?xa=(fa+=Au)+cr:(Xn&&(Au=Math.max(as,Math.min(Ss,2*Xn[ms]-fa))),Au<fa?(xa=fa,fa=Au):xa=Au),nl[0]!=fa||nl[1]!=xa)return ms?zt=null:xt=null,nl[0]=fa,nl[1]=xa,!0}function mo(){Is(),Na.style("pointer-events","all").selectAll(".resize").style("display",Ar.empty()?"none":null),d.select("body").style("cursor",null),Ro.on("mousemove.brush",null).on("mouseup.brush",null).on("touchmove.brush",null).on("touchend.brush",null).on("keydown.brush",null).on("keyup.brush",null),Vn(),ka({type:"brushend"})}}return Ar.x=function(la){return arguments.length?(Le=la,Cr=xl[!Le<<1|!Ye],Ar):Le},Ar.y=function(la){return arguments.length?(Ye=la,Cr=xl[!Le<<1|!Ye],Ar):Ye},Ar.clamp=function(la){return arguments.length?(Le&&Ye?(Dt=!!la[0],$t=!!la[1]):Le?Dt=!!la:Ye&&($t=!!la),Ar):Le&&Ye?[Dt,$t]:Le?Dt:Ye?$t:null},Ar.extent=function(la){var Ta,ka,Na,qa,Ma;return arguments.length?(Le&&(Ta=la[0],ka=la[1],Ye&&(Ta=Ta[0],ka=ka[0]),xt=[Ta,ka],Le.invert&&(Ta=Le(Ta),ka=Le(ka)),ka<Ta&&(Ma=Ta,Ta=ka,ka=Ma),(Ta!=ut[0]||ka!=ut[1])&&(ut=[Ta,ka])),Ye&&(Na=la[0],qa=la[1],Le&&(Na=Na[1],qa=qa[1]),zt=[Na,qa],Ye.invert&&(Na=Ye(Na),qa=Ye(qa)),qa<Na&&(Ma=Na,Na=qa,qa=Ma),(Na!=ht[0]||qa!=ht[1])&&(ht=[Na,qa])),Ar):(Le&&(xt?(Ta=xt[0],ka=xt[1]):(Ta=ut[0],ka=ut[1],Le.invert&&(Ta=Le.invert(Ta),ka=Le.invert(ka)),ka<Ta&&(Ma=Ta,Ta=ka,ka=Ma))),Ye&&(zt?(Na=zt[0],qa=zt[1]):(Na=ht[0],qa=ht[1],Ye.invert&&(Na=Ye.invert(Na),qa=Ye.invert(qa)),qa<Na&&(Ma=Na,Na=qa,qa=Ma))),Le&&Ye?[[Ta,Na],[ka,qa]]:Le?[Ta,ka]:Ye&&[Na,qa])},Ar.clear=function(){return Ar.empty()||(ut=[0,0],ht=[0,0],xt=zt=null),Ar},Ar.empty=function(){return!!Le&&ut[0]==ut[1]||!!Ye&&ht[0]==ht[1]},d.rebind(Ar,pe,"on")};var Ao={n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},xl=[["n","e","s","w","nw","ne","se","sw"],["e","w"],["n","s"],[]];d.text=Qt(function(pe){return pe.responseText}),d.json=function(pe,Le){return mr(pe,"application/json",Pl,Le)};function Pl(pe){return JSON.parse(pe.responseText)}d.html=function(pe,Le){return mr(pe,"text/html",Tu,Le)};function Tu(pe){var Le=E.createRange();return Le.selectNode(E.body),Le.createContextualFragment(pe.responseText)}d.xml=Qt(function(pe){return pe.responseXML}),typeof G=="object"&&G.exports?G.exports=d:this.d3=d}).apply(self)}}),uf=He({"node_modules/d3-time/dist/d3-time.js"(Y,G){(function(d,x){typeof Y=="object"&&typeof G<"u"?x(Y):(d=d||self,x(d.d3=d.d3||{}))})(Y,function(d){var x=new Date,A=new Date;function E(ce,Re,$e,rt){function Je(At){return ce(At=arguments.length===0?new Date:new Date(+At)),At}return Je.floor=function(At){return ce(At=new Date(+At)),At},Je.ceil=function(At){return ce(At=new Date(At-1)),Re(At,1),ce(At),At},Je.round=function(At){var St=Je(At),Rt=Je.ceil(At);return At-St<Rt-At?St:Rt},Je.offset=function(At,St){return Re(At=new Date(+At),St==null?1:Math.floor(St)),At},Je.range=function(At,St,Rt){var Ut=[],ir;if(At=Je.ceil(At),Rt=Rt==null?1:Math.floor(Rt),!(At<St)||!(Rt>0))return Ut;do Ut.push(ir=new Date(+At)),Re(At,Rt),ce(At);while(ir<At&&At<St);return Ut},Je.filter=function(At){return E(function(St){if(St>=St)for(;ce(St),!At(St);)St.setTime(St-1)},function(St,Rt){if(St>=St)if(Rt<0)for(;++Rt<=0;)for(;Re(St,-1),!At(St););else for(;--Rt>=0;)for(;Re(St,1),!At(St););})},$e&&(Je.count=function(At,St){return x.setTime(+At),A.setTime(+St),ce(x),ce(A),Math.floor($e(x,A))},Je.every=function(At){return At=Math.floor(At),!isFinite(At)||!(At>0)?null:At>1?Je.filter(rt?function(St){return rt(St)%At===0}:function(St){return Je.count(0,St)%At===0}):Je}),Je}var e=E(function(){},function(ce,Re){ce.setTime(+ce+Re)},function(ce,Re){return Re-ce});e.every=function(ce){return ce=Math.floor(ce),!isFinite(ce)||!(ce>0)?null:ce>1?E(function(Re){Re.setTime(Math.floor(Re/ce)*ce)},function(Re,$e){Re.setTime(+Re+$e*ce)},function(Re,$e){return($e-Re)/ce}):e};var t=e.range,r=1e3,o=6e4,a=36e5,i=864e5,n=6048e5,s=E(function(ce){ce.setTime(ce-ce.getMilliseconds())},function(ce,Re){ce.setTime(+ce+Re*r)},function(ce,Re){return(Re-ce)/r},function(ce){return ce.getUTCSeconds()}),c=s.range,f=E(function(ce){ce.setTime(ce-ce.getMilliseconds()-ce.getSeconds()*r)},function(ce,Re){ce.setTime(+ce+Re*o)},function(ce,Re){return(Re-ce)/o},function(ce){return ce.getMinutes()}),v=f.range,h=E(function(ce){ce.setTime(ce-ce.getMilliseconds()-ce.getSeconds()*r-ce.getMinutes()*o)},function(ce,Re){ce.setTime(+ce+Re*a)},function(ce,Re){return(Re-ce)/a},function(ce){return ce.getHours()}),T=h.range,l=E(function(ce){ce.setHours(0,0,0,0)},function(ce,Re){ce.setDate(ce.getDate()+Re)},function(ce,Re){return(Re-ce-(Re.getTimezoneOffset()-ce.getTimezoneOffset())*o)/i},function(ce){return ce.getDate()-1}),y=l.range;function b(ce){return E(function(Re){Re.setDate(Re.getDate()-(Re.getDay()+7-ce)%7),Re.setHours(0,0,0,0)},function(Re,$e){Re.setDate(Re.getDate()+$e*7)},function(Re,$e){return($e-Re-($e.getTimezoneOffset()-Re.getTimezoneOffset())*o)/n})}var S=b(0),M=b(1),_=b(2),w=b(3),p=b(4),u=b(5),g=b(6),m=S.range,R=M.range,P=_.range,z=w.range,F=p.range,B=u.range,O=g.range,L=E(function(ce){ce.setDate(1),ce.setHours(0,0,0,0)},function(ce,Re){ce.setMonth(ce.getMonth()+Re)},function(ce,Re){return Re.getMonth()-ce.getMonth()+(Re.getFullYear()-ce.getFullYear())*12},function(ce){return ce.getMonth()}),N=L.range,U=E(function(ce){ce.setMonth(0,1),ce.setHours(0,0,0,0)},function(ce,Re){ce.setFullYear(ce.getFullYear()+Re)},function(ce,Re){return Re.getFullYear()-ce.getFullYear()},function(ce){return ce.getFullYear()});U.every=function(ce){return!isFinite(ce=Math.floor(ce))||!(ce>0)?null:E(function(Re){Re.setFullYear(Math.floor(Re.getFullYear()/ce)*ce),Re.setMonth(0,1),Re.setHours(0,0,0,0)},function(Re,$e){Re.setFullYear(Re.getFullYear()+$e*ce)})};var Z=U.range,Q=E(function(ce){ce.setUTCSeconds(0,0)},function(ce,Re){ce.setTime(+ce+Re*o)},function(ce,Re){return(Re-ce)/o},function(ce){return ce.getUTCMinutes()}),ue=Q.range,oe=E(function(ce){ce.setUTCMinutes(0,0,0)},function(ce,Re){ce.setTime(+ce+Re*a)},function(ce,Re){return(Re-ce)/a},function(ce){return ce.getUTCHours()}),le=oe.range,j=E(function(ce){ce.setUTCHours(0,0,0,0)},function(ce,Re){ce.setUTCDate(ce.getUTCDate()+Re)},function(ce,Re){return(Re-ce)/i},function(ce){return ce.getUTCDate()-1}),J=j.range;function $(ce){return E(function(Re){Re.setUTCDate(Re.getUTCDate()-(Re.getUTCDay()+7-ce)%7),Re.setUTCHours(0,0,0,0)},function(Re,$e){Re.setUTCDate(Re.getUTCDate()+$e*7)},function(Re,$e){return($e-Re)/n})}var X=$(0),re=$(1),ee=$(2),q=$(3),ae=$(4),ie=$(5),fe=$(6),we=X.range,Ae=re.range,Fe=ee.range,Ce=q.range,qe=ae.range,et=ie.range,Qe=fe.range,Ke=E(function(ce){ce.setUTCDate(1),ce.setUTCHours(0,0,0,0)},function(ce,Re){ce.setUTCMonth(ce.getUTCMonth()+Re)},function(ce,Re){return Re.getUTCMonth()-ce.getUTCMonth()+(Re.getUTCFullYear()-ce.getUTCFullYear())*12},function(ce){return ce.getUTCMonth()}),Xe=Ke.range,Me=E(function(ce){ce.setUTCMonth(0,1),ce.setUTCHours(0,0,0,0)},function(ce,Re){ce.setUTCFullYear(ce.getUTCFullYear()+Re)},function(ce,Re){return Re.getUTCFullYear()-ce.getUTCFullYear()},function(ce){return ce.getUTCFullYear()});Me.every=function(ce){return!isFinite(ce=Math.floor(ce))||!(ce>0)?null:E(function(Re){Re.setUTCFullYear(Math.floor(Re.getUTCFullYear()/ce)*ce),Re.setUTCMonth(0,1),Re.setUTCHours(0,0,0,0)},function(Re,$e){Re.setUTCFullYear(Re.getUTCFullYear()+$e*ce)})};var xe=Me.range;d.timeDay=l,d.timeDays=y,d.timeFriday=u,d.timeFridays=B,d.timeHour=h,d.timeHours=T,d.timeInterval=E,d.timeMillisecond=e,d.timeMilliseconds=t,d.timeMinute=f,d.timeMinutes=v,d.timeMonday=M,d.timeMondays=R,d.timeMonth=L,d.timeMonths=N,d.timeSaturday=g,d.timeSaturdays=O,d.timeSecond=s,d.timeSeconds=c,d.timeSunday=S,d.timeSundays=m,d.timeThursday=p,d.timeThursdays=F,d.timeTuesday=_,d.timeTuesdays=P,d.timeWednesday=w,d.timeWednesdays=z,d.timeWeek=S,d.timeWeeks=m,d.timeYear=U,d.timeYears=Z,d.utcDay=j,d.utcDays=J,d.utcFriday=ie,d.utcFridays=et,d.utcHour=oe,d.utcHours=le,d.utcMillisecond=e,d.utcMilliseconds=t,d.utcMinute=Q,d.utcMinutes=ue,d.utcMonday=re,d.utcMondays=Ae,d.utcMonth=Ke,d.utcMonths=Xe,d.utcSaturday=fe,d.utcSaturdays=Qe,d.utcSecond=s,d.utcSeconds=c,d.utcSunday=X,d.utcSundays=we,d.utcThursday=ae,d.utcThursdays=qe,d.utcTuesday=ee,d.utcTuesdays=Fe,d.utcWednesday=q,d.utcWednesdays=Ce,d.utcWeek=X,d.utcWeeks=we,d.utcYear=Me,d.utcYears=xe,Object.defineProperty(d,"__esModule",{value:!0})})}}),zl=He({"node_modules/d3-time-format/dist/d3-time-format.js"(Y,G){(function(d,x){typeof Y=="object"&&typeof G<"u"?x(Y,uf()):(d=d||self,x(d.d3=d.d3||{},d.d3))})(Y,function(d,x){function A(ze){if(0<=ze.y&&ze.y<100){var Ge=new Date(-1,ze.m,ze.d,ze.H,ze.M,ze.S,ze.L);return Ge.setFullYear(ze.y),Ge}return new Date(ze.y,ze.m,ze.d,ze.H,ze.M,ze.S,ze.L)}function E(ze){if(0<=ze.y&&ze.y<100){var Ge=new Date(Date.UTC(-1,ze.m,ze.d,ze.H,ze.M,ze.S,ze.L));return Ge.setUTCFullYear(ze.y),Ge}return new Date(Date.UTC(ze.y,ze.m,ze.d,ze.H,ze.M,ze.S,ze.L))}function e(ze,Ge,Oe){return{y:ze,m:Ge,d:Oe,H:0,M:0,S:0,L:0}}function t(ze){var Ge=ze.dateTime,Oe=ze.date,ve=ze.time,ye=ze.periods,be=ze.days,Pe=ze.shortDays,We=ze.months,ct=ze.shortMonths,_t=c(ye),Mt=f(ye),Nt=c(be),Bt=f(be),qt=c(Pe),Zt=f(Pe),lr=c(We),ta=f(We),da=c(ct),wa=f(ct),ma={a:Aa,A:Pa,b:sa,B:Ba,c:null,d:L,e:L,f:ue,H:N,I:U,j:Z,L:Q,m:oe,M:le,p:dt,q:vt,Q:St,s:Rt,S:j,u:J,U:$,V:X,w:re,W:ee,x:null,X:null,y:q,Y:ae,Z:ie,"%":At},Ia={a:Lr,A:Er,b:_r,B:yr,c:null,d:fe,e:fe,f:qe,H:we,I:Ae,j:Fe,L:Ce,m:et,M:Qe,p:kr,q:zr,Q:St,s:Rt,S:Ke,u:Xe,U:Me,V:xe,w:ce,W:Re,x:null,X:null,y:$e,Y:rt,Z:Je,"%":At},va={a:jt,A:Ot,b:gr,B:Br,c:na,d:p,e:p,f:z,H:g,I:g,j:u,L:P,m:w,M:m,p:Lt,q:_,Q:B,s:O,S:R,u:h,U:T,V:l,w:v,W:y,x:Ur,X:pa,y:S,Y:b,Z:M,"%":F};ma.x=La(Oe,ma),ma.X=La(ve,ma),ma.c=La(Ge,ma),Ia.x=La(Oe,Ia),Ia.X=La(ve,Ia),Ia.c=La(Ge,Ia);function La(Pr,Hr){return function(Zr){var Jr=[],wt=-1,Qt=0,mr=Pr.length,$r,oa,Sa;for(Zr instanceof Date||(Zr=new Date(+Zr));++wt<mr;)Pr.charCodeAt(wt)===37&&(Jr.push(Pr.slice(Qt,wt)),(oa=r[$r=Pr.charAt(++wt)])!=null?$r=Pr.charAt(++wt):oa=$r==="e"?" ":"0",(Sa=Hr[$r])&&($r=Sa(Zr,oa)),Jr.push($r),Qt=wt+1);return Jr.push(Pr.slice(Qt,wt)),Jr.join("")}}function Ja(Pr,Hr){return function(Zr){var Jr=e(1900,void 0,1),wt=Vt(Jr,Pr,Zr+="",0),Qt,mr;if(wt!=Zr.length)return null;if("Q"in Jr)return new Date(Jr.Q);if("s"in Jr)return new Date(Jr.s*1e3+("L"in Jr?Jr.L:0));if(Hr&&!("Z"in Jr)&&(Jr.Z=0),"p"in Jr&&(Jr.H=Jr.H%12+Jr.p*12),Jr.m===void 0&&(Jr.m="q"in Jr?Jr.q:0),"V"in Jr){if(Jr.V<1||Jr.V>53)return null;"w"in Jr||(Jr.w=1),"Z"in Jr?(Qt=E(e(Jr.y,0,1)),mr=Qt.getUTCDay(),Qt=mr>4||mr===0?x.utcMonday.ceil(Qt):x.utcMonday(Qt),Qt=x.utcDay.offset(Qt,(Jr.V-1)*7),Jr.y=Qt.getUTCFullYear(),Jr.m=Qt.getUTCMonth(),Jr.d=Qt.getUTCDate()+(Jr.w+6)%7):(Qt=A(e(Jr.y,0,1)),mr=Qt.getDay(),Qt=mr>4||mr===0?x.timeMonday.ceil(Qt):x.timeMonday(Qt),Qt=x.timeDay.offset(Qt,(Jr.V-1)*7),Jr.y=Qt.getFullYear(),Jr.m=Qt.getMonth(),Jr.d=Qt.getDate()+(Jr.w+6)%7)}else("W"in Jr||"U"in Jr)&&("w"in Jr||(Jr.w="u"in Jr?Jr.u%7:"W"in Jr?1:0),mr="Z"in Jr?E(e(Jr.y,0,1)).getUTCDay():A(e(Jr.y,0,1)).getDay(),Jr.m=0,Jr.d="W"in Jr?(Jr.w+6)%7+Jr.W*7-(mr+5)%7:Jr.w+Jr.U*7-(mr+6)%7);return"Z"in Jr?(Jr.H+=Jr.Z/100|0,Jr.M+=Jr.Z%100,E(Jr)):A(Jr)}}function Vt(Pr,Hr,Zr,Jr){for(var wt=0,Qt=Hr.length,mr=Zr.length,$r,oa;wt<Qt;){if(Jr>=mr)return-1;if($r=Hr.charCodeAt(wt++),$r===37){if($r=Hr.charAt(wt++),oa=va[$r in r?Hr.charAt(wt++):$r],!oa||(Jr=oa(Pr,Zr,Jr))<0)return-1}else if($r!=Zr.charCodeAt(Jr++))return-1}return Jr}function Lt(Pr,Hr,Zr){var Jr=_t.exec(Hr.slice(Zr));return Jr?(Pr.p=Mt[Jr[0].toLowerCase()],Zr+Jr[0].length):-1}function jt(Pr,Hr,Zr){var Jr=qt.exec(Hr.slice(Zr));return Jr?(Pr.w=Zt[Jr[0].toLowerCase()],Zr+Jr[0].length):-1}function Ot(Pr,Hr,Zr){var Jr=Nt.exec(Hr.slice(Zr));return Jr?(Pr.w=Bt[Jr[0].toLowerCase()],Zr+Jr[0].length):-1}function gr(Pr,Hr,Zr){var Jr=da.exec(Hr.slice(Zr));return Jr?(Pr.m=wa[Jr[0].toLowerCase()],Zr+Jr[0].length):-1}function Br(Pr,Hr,Zr){var Jr=lr.exec(Hr.slice(Zr));return Jr?(Pr.m=ta[Jr[0].toLowerCase()],Zr+Jr[0].length):-1}function na(Pr,Hr,Zr){return Vt(Pr,Ge,Hr,Zr)}function Ur(Pr,Hr,Zr){return Vt(Pr,Oe,Hr,Zr)}function pa(Pr,Hr,Zr){return Vt(Pr,ve,Hr,Zr)}function Aa(Pr){return Pe[Pr.getDay()]}function Pa(Pr){return be[Pr.getDay()]}function sa(Pr){return ct[Pr.getMonth()]}function Ba(Pr){return We[Pr.getMonth()]}function dt(Pr){return ye[+(Pr.getHours()>=12)]}function vt(Pr){return 1+~~(Pr.getMonth()/3)}function Lr(Pr){return Pe[Pr.getUTCDay()]}function Er(Pr){return be[Pr.getUTCDay()]}function _r(Pr){return ct[Pr.getUTCMonth()]}function yr(Pr){return We[Pr.getUTCMonth()]}function kr(Pr){return ye[+(Pr.getUTCHours()>=12)]}function zr(Pr){return 1+~~(Pr.getUTCMonth()/3)}return{format:function(Pr){var Hr=La(Pr+="",ma);return Hr.toString=function(){return Pr},Hr},parse:function(Pr){var Hr=Ja(Pr+="",!1);return Hr.toString=function(){return Pr},Hr},utcFormat:function(Pr){var Hr=La(Pr+="",Ia);return Hr.toString=function(){return Pr},Hr},utcParse:function(Pr){var Hr=Ja(Pr+="",!0);return Hr.toString=function(){return Pr},Hr}}}var r={"-":"",_:" ",0:"0"},o=/^\s*\d+/,a=/^%/,i=/[\\^$*+?|[\]().{}]/g;function n(ze,Ge,Oe){var ve=ze<0?"-":"",ye=(ve?-ze:ze)+"",be=ye.length;return ve+(be<Oe?new Array(Oe-be+1).join(Ge)+ye:ye)}function s(ze){return ze.replace(i,"\\$&")}function c(ze){return new RegExp("^(?:"+ze.map(s).join("|")+")","i")}function f(ze){for(var Ge={},Oe=-1,ve=ze.length;++Oe<ve;)Ge[ze[Oe].toLowerCase()]=Oe;return Ge}function v(ze,Ge,Oe){var ve=o.exec(Ge.slice(Oe,Oe+1));return ve?(ze.w=+ve[0],Oe+ve[0].length):-1}function h(ze,Ge,Oe){var ve=o.exec(Ge.slice(Oe,Oe+1));return ve?(ze.u=+ve[0],Oe+ve[0].length):-1}function T(ze,Ge,Oe){var ve=o.exec(Ge.slice(Oe,Oe+2));return ve?(ze.U=+ve[0],Oe+ve[0].length):-1}function l(ze,Ge,Oe){var ve=o.exec(Ge.slice(Oe,Oe+2));return ve?(ze.V=+ve[0],Oe+ve[0].length):-1}function y(ze,Ge,Oe){var ve=o.exec(Ge.slice(Oe,Oe+2));return ve?(ze.W=+ve[0],Oe+ve[0].length):-1}function b(ze,Ge,Oe){var ve=o.exec(Ge.slice(Oe,Oe+4));return ve?(ze.y=+ve[0],Oe+ve[0].length):-1}function S(ze,Ge,Oe){var ve=o.exec(Ge.slice(Oe,Oe+2));return ve?(ze.y=+ve[0]+(+ve[0]>68?1900:2e3),Oe+ve[0].length):-1}function M(ze,Ge,Oe){var ve=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(Ge.slice(Oe,Oe+6));return ve?(ze.Z=ve[1]?0:-(ve[2]+(ve[3]||"00")),Oe+ve[0].length):-1}function _(ze,Ge,Oe){var ve=o.exec(Ge.slice(Oe,Oe+1));return ve?(ze.q=ve[0]*3-3,Oe+ve[0].length):-1}function w(ze,Ge,Oe){var ve=o.exec(Ge.slice(Oe,Oe+2));return ve?(ze.m=ve[0]-1,Oe+ve[0].length):-1}function p(ze,Ge,Oe){var ve=o.exec(Ge.slice(Oe,Oe+2));return ve?(ze.d=+ve[0],Oe+ve[0].length):-1}function u(ze,Ge,Oe){var ve=o.exec(Ge.slice(Oe,Oe+3));return ve?(ze.m=0,ze.d=+ve[0],Oe+ve[0].length):-1}function g(ze,Ge,Oe){var ve=o.exec(Ge.slice(Oe,Oe+2));return ve?(ze.H=+ve[0],Oe+ve[0].length):-1}function m(ze,Ge,Oe){var ve=o.exec(Ge.slice(Oe,Oe+2));return ve?(ze.M=+ve[0],Oe+ve[0].length):-1}function R(ze,Ge,Oe){var ve=o.exec(Ge.slice(Oe,Oe+2));return ve?(ze.S=+ve[0],Oe+ve[0].length):-1}function P(ze,Ge,Oe){var ve=o.exec(Ge.slice(Oe,Oe+3));return ve?(ze.L=+ve[0],Oe+ve[0].length):-1}function z(ze,Ge,Oe){var ve=o.exec(Ge.slice(Oe,Oe+6));return ve?(ze.L=Math.floor(ve[0]/1e3),Oe+ve[0].length):-1}function F(ze,Ge,Oe){var ve=a.exec(Ge.slice(Oe,Oe+1));return ve?Oe+ve[0].length:-1}function B(ze,Ge,Oe){var ve=o.exec(Ge.slice(Oe));return ve?(ze.Q=+ve[0],Oe+ve[0].length):-1}function O(ze,Ge,Oe){var ve=o.exec(Ge.slice(Oe));return ve?(ze.s=+ve[0],Oe+ve[0].length):-1}function L(ze,Ge){return n(ze.getDate(),Ge,2)}function N(ze,Ge){return n(ze.getHours(),Ge,2)}function U(ze,Ge){return n(ze.getHours()%12||12,Ge,2)}function Z(ze,Ge){return n(1+x.timeDay.count(x.timeYear(ze),ze),Ge,3)}function Q(ze,Ge){return n(ze.getMilliseconds(),Ge,3)}function ue(ze,Ge){return Q(ze,Ge)+"000"}function oe(ze,Ge){return n(ze.getMonth()+1,Ge,2)}function le(ze,Ge){return n(ze.getMinutes(),Ge,2)}function j(ze,Ge){return n(ze.getSeconds(),Ge,2)}function J(ze){var Ge=ze.getDay();return Ge===0?7:Ge}function $(ze,Ge){return n(x.timeSunday.count(x.timeYear(ze)-1,ze),Ge,2)}function X(ze,Ge){var Oe=ze.getDay();return ze=Oe>=4||Oe===0?x.timeThursday(ze):x.timeThursday.ceil(ze),n(x.timeThursday.count(x.timeYear(ze),ze)+(x.timeYear(ze).getDay()===4),Ge,2)}function re(ze){return ze.getDay()}function ee(ze,Ge){return n(x.timeMonday.count(x.timeYear(ze)-1,ze),Ge,2)}function q(ze,Ge){return n(ze.getFullYear()%100,Ge,2)}function ae(ze,Ge){return n(ze.getFullYear()%1e4,Ge,4)}function ie(ze){var Ge=ze.getTimezoneOffset();return(Ge>0?"-":(Ge*=-1,"+"))+n(Ge/60|0,"0",2)+n(Ge%60,"0",2)}function fe(ze,Ge){return n(ze.getUTCDate(),Ge,2)}function we(ze,Ge){return n(ze.getUTCHours(),Ge,2)}function Ae(ze,Ge){return n(ze.getUTCHours()%12||12,Ge,2)}function Fe(ze,Ge){return n(1+x.utcDay.count(x.utcYear(ze),ze),Ge,3)}function Ce(ze,Ge){return n(ze.getUTCMilliseconds(),Ge,3)}function qe(ze,Ge){return Ce(ze,Ge)+"000"}function et(ze,Ge){return n(ze.getUTCMonth()+1,Ge,2)}function Qe(ze,Ge){return n(ze.getUTCMinutes(),Ge,2)}function Ke(ze,Ge){return n(ze.getUTCSeconds(),Ge,2)}function Xe(ze){var Ge=ze.getUTCDay();return Ge===0?7:Ge}function Me(ze,Ge){return n(x.utcSunday.count(x.utcYear(ze)-1,ze),Ge,2)}function xe(ze,Ge){var Oe=ze.getUTCDay();return ze=Oe>=4||Oe===0?x.utcThursday(ze):x.utcThursday.ceil(ze),n(x.utcThursday.count(x.utcYear(ze),ze)+(x.utcYear(ze).getUTCDay()===4),Ge,2)}function ce(ze){return ze.getUTCDay()}function Re(ze,Ge){return n(x.utcMonday.count(x.utcYear(ze)-1,ze),Ge,2)}function $e(ze,Ge){return n(ze.getUTCFullYear()%100,Ge,2)}function rt(ze,Ge){return n(ze.getUTCFullYear()%1e4,Ge,4)}function Je(){return"+0000"}function At(){return"%"}function St(ze){return+ze}function Rt(ze){return Math.floor(+ze/1e3)}var Ut;ir({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"]});function ir(ze){return Ut=t(ze),d.timeFormat=Ut.format,d.timeParse=Ut.parse,d.utcFormat=Ut.utcFormat,d.utcParse=Ut.utcParse,Ut}var ar="%Y-%m-%dT%H:%M:%S.%LZ";function Mr(ze){return ze.toISOString()}var fr=Date.prototype.toISOString?Mr:d.utcFormat(ar);function dr(ze){var Ge=new Date(ze);return isNaN(Ge)?null:Ge}var pt=+new Date("2000-01-01T00:00:00.000Z")?dr:d.utcParse(ar);d.isoFormat=fr,d.isoParse=pt,d.timeFormatDefaultLocale=ir,d.timeFormatLocale=t,Object.defineProperty(d,"__esModule",{value:!0})})}}),ni=He({"node_modules/d3-format/dist/d3-format.js"(Y,G){(function(d,x){typeof Y=="object"&&typeof G<"u"?x(Y):(d=typeof globalThis<"u"?globalThis:d||self,x(d.d3=d.d3||{}))})(Y,function(d){function x(w){return Math.abs(w=Math.round(w))>=1e21?w.toLocaleString("en").replace(/,/g,""):w.toString(10)}function A(w,p){if((u=(w=p?w.toExponential(p-1):w.toExponential()).indexOf("e"))<0)return null;var u,g=w.slice(0,u);return[g.length>1?g[0]+g.slice(2):g,+w.slice(u+1)]}function E(w){return w=A(Math.abs(w)),w?w[1]:NaN}function e(w,p){return function(u,g){for(var m=u.length,R=[],P=0,z=w[0],F=0;m>0&&z>0&&(F+z+1>g&&(z=Math.max(1,g-F)),R.push(u.substring(m-=z,m+z)),!((F+=z+1)>g));)z=w[P=(P+1)%w.length];return R.reverse().join(p)}}function t(w){return function(p){return p.replace(/[0-9]/g,function(u){return w[+u]})}}var r=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function o(w){if(!(p=r.exec(w)))throw new Error("invalid format: "+w);var p;return new a({fill:p[1],align:p[2],sign:p[3],symbol:p[4],zero:p[5],width:p[6],comma:p[7],precision:p[8]&&p[8].slice(1),trim:p[9],type:p[10]})}o.prototype=a.prototype;function a(w){this.fill=w.fill===void 0?" ":w.fill+"",this.align=w.align===void 0?">":w.align+"",this.sign=w.sign===void 0?"-":w.sign+"",this.symbol=w.symbol===void 0?"":w.symbol+"",this.zero=!!w.zero,this.width=w.width===void 0?void 0:+w.width,this.comma=!!w.comma,this.precision=w.precision===void 0?void 0:+w.precision,this.trim=!!w.trim,this.type=w.type===void 0?"":w.type+""}a.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function i(w){e:for(var p=w.length,u=1,g=-1,m;u<p;++u)switch(w[u]){case".":g=m=u;break;case"0":g===0&&(g=u),m=u;break;default:if(!+w[u])break e;g>0&&(g=0);break}return g>0?w.slice(0,g)+w.slice(m+1):w}var n;function s(w,p){var u=A(w,p);if(!u)return w+"";var g=u[0],m=u[1],R=m-(n=Math.max(-8,Math.min(8,Math.floor(m/3)))*3)+1,P=g.length;return R===P?g:R>P?g+new Array(R-P+1).join("0"):R>0?g.slice(0,R)+"."+g.slice(R):"0."+new Array(1-R).join("0")+A(w,Math.max(0,p+R-1))[0]}function c(w,p){var u=A(w,p);if(!u)return w+"";var g=u[0],m=u[1];return m<0?"0."+new Array(-m).join("0")+g:g.length>m+1?g.slice(0,m+1)+"."+g.slice(m+1):g+new Array(m-g.length+2).join("0")}var f={"%":function(w,p){return(w*100).toFixed(p)},b:function(w){return Math.round(w).toString(2)},c:function(w){return w+""},d:x,e:function(w,p){return w.toExponential(p)},f:function(w,p){return w.toFixed(p)},g:function(w,p){return w.toPrecision(p)},o:function(w){return Math.round(w).toString(8)},p:function(w,p){return c(w*100,p)},r:c,s,X:function(w){return Math.round(w).toString(16).toUpperCase()},x:function(w){return Math.round(w).toString(16)}};function v(w){return w}var h=Array.prototype.map,T=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function l(w){var p=w.grouping===void 0||w.thousands===void 0?v:e(h.call(w.grouping,Number),w.thousands+""),u=w.currency===void 0?"":w.currency[0]+"",g=w.currency===void 0?"":w.currency[1]+"",m=w.decimal===void 0?".":w.decimal+"",R=w.numerals===void 0?v:t(h.call(w.numerals,String)),P=w.percent===void 0?"%":w.percent+"",z=w.minus===void 0?"-":w.minus+"",F=w.nan===void 0?"NaN":w.nan+"";function B(L){L=o(L);var N=L.fill,U=L.align,Z=L.sign,Q=L.symbol,ue=L.zero,oe=L.width,le=L.comma,j=L.precision,J=L.trim,$=L.type;$==="n"?(le=!0,$="g"):f[$]||(j===void 0&&(j=12),J=!0,$="g"),(ue||N==="0"&&U==="=")&&(ue=!0,N="0",U="=");var X=Q==="$"?u:Q==="#"&&/[boxX]/.test($)?"0"+$.toLowerCase():"",re=Q==="$"?g:/[%p]/.test($)?P:"",ee=f[$],q=/[defgprs%]/.test($);j=j===void 0?6:/[gprs]/.test($)?Math.max(1,Math.min(21,j)):Math.max(0,Math.min(20,j));function ae(ie){var fe=X,we=re,Ae,Fe,Ce;if($==="c")we=ee(ie)+we,ie="";else{ie=+ie;var qe=ie<0||1/ie<0;if(ie=isNaN(ie)?F:ee(Math.abs(ie),j),J&&(ie=i(ie)),qe&&+ie==0&&Z!=="+"&&(qe=!1),fe=(qe?Z==="("?Z:z:Z==="-"||Z==="("?"":Z)+fe,we=($==="s"?T[8+n/3]:"")+we+(qe&&Z==="("?")":""),q){for(Ae=-1,Fe=ie.length;++Ae<Fe;)if(Ce=ie.charCodeAt(Ae),48>Ce||Ce>57){we=(Ce===46?m+ie.slice(Ae+1):ie.slice(Ae))+we,ie=ie.slice(0,Ae);break}}}le&&!ue&&(ie=p(ie,1/0));var et=fe.length+ie.length+we.length,Qe=et<oe?new Array(oe-et+1).join(N):"";switch(le&&ue&&(ie=p(Qe+ie,Qe.length?oe-we.length:1/0),Qe=""),U){case"<":ie=fe+ie+we+Qe;break;case"=":ie=fe+Qe+ie+we;break;case"^":ie=Qe.slice(0,et=Qe.length>>1)+fe+ie+we+Qe.slice(et);break;default:ie=Qe+fe+ie+we;break}return R(ie)}return ae.toString=function(){return L+""},ae}function O(L,N){var U=B((L=o(L),L.type="f",L)),Z=Math.max(-8,Math.min(8,Math.floor(E(N)/3)))*3,Q=Math.pow(10,-Z),ue=T[8+Z/3];return function(oe){return U(Q*oe)+ue}}return{format:B,formatPrefix:O}}var y;b({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function b(w){return y=l(w),d.format=y.format,d.formatPrefix=y.formatPrefix,y}function S(w){return Math.max(0,-E(Math.abs(w)))}function M(w,p){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(E(p)/3)))*3-E(Math.abs(w)))}function _(w,p){return w=Math.abs(w),p=Math.abs(p)-w,Math.max(0,E(p)-E(w))+1}d.FormatSpecifier=a,d.formatDefaultLocale=b,d.formatLocale=l,d.formatSpecifier=o,d.precisionFixed=S,d.precisionPrefix=M,d.precisionRound=_,Object.defineProperty(d,"__esModule",{value:!0})})}}),dl=He({"node_modules/is-string-blank/index.js"(Y,G){G.exports=function(d){for(var x=d.length,A,E=0;E<x;E++)if(A=d.charCodeAt(E),(A<9||A>13)&&A!==32&&A!==133&&A!==160&&A!==5760&&A!==6158&&(A<8192||A>8205)&&A!==8232&&A!==8233&&A!==8239&&A!==8287&&A!==8288&&A!==12288&&A!==65279)return!1;return!0}}}),Mi=He({"node_modules/fast-isnumeric/index.js"(Y,G){var d=dl();G.exports=function(x){var A=typeof x;if(A==="string"){var E=x;if(x=+x,x===0&&d(E))return!1}else if(A!=="number")return!1;return x-x<1}}}),Hi=He({"src/constants/numerical.js"(Y,G){G.exports={BADNUM:void 0,FP_SAFE:Number.MAX_VALUE*1e-4,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,ONEMILLI:1,ONEMICROSEC:.001,EPOCHJD:24405875e-1,ALMOST_EQUAL:1-1e-6,LOG_CLIP:10,MINUS_SIGN:"−"}}}),Ah=He({"node_modules/base64-arraybuffer/dist/base64-arraybuffer.umd.js"(Y,G){(function(d,x){typeof Y=="object"&&typeof G<"u"?x(Y):(d=typeof globalThis<"u"?globalThis:d||self,x(d["base64-arraybuffer"]={}))})(Y,function(d){for(var x="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",A=typeof Uint8Array>"u"?[]:new Uint8Array(256),E=0;E<x.length;E++)A[x.charCodeAt(E)]=E;var e=function(r){var o=new Uint8Array(r),a,i=o.length,n="";for(a=0;a<i;a+=3)n+=x[o[a]>>2],n+=x[(o[a]&3)<<4|o[a+1]>>4],n+=x[(o[a+1]&15)<<2|o[a+2]>>6],n+=x[o[a+2]&63];return i%3===2?n=n.substring(0,n.length-1)+"=":i%3===1&&(n=n.substring(0,n.length-2)+"=="),n},t=function(r){var o=r.length*.75,a=r.length,i,n=0,s,c,f,v;r[r.length-1]==="="&&(o--,r[r.length-2]==="="&&o--);var h=new ArrayBuffer(o),T=new Uint8Array(h);for(i=0;i<a;i+=4)s=A[r.charCodeAt(i)],c=A[r.charCodeAt(i+1)],f=A[r.charCodeAt(i+2)],v=A[r.charCodeAt(i+3)],T[n++]=s<<2|c>>4,T[n++]=(c&15)<<4|f>>2,T[n++]=(f&3)<<6|v&63;return h};d.decode=t,d.encode=e,Object.defineProperty(d,"__esModule",{value:!0})})}}),tv=He({"src/lib/is_plain_object.js"(Y,G){G.exports=function(x){return window&&window.process&&window.process.versions?Object.prototype.toString.call(x)==="[object Object]":Object.prototype.toString.call(x)==="[object Object]"&&Object.getPrototypeOf(x).hasOwnProperty("hasOwnProperty")}}}),Sh=He({"src/lib/array.js"(Y){var G=Ah().decode,d=tv(),x=Array.isArray,A=ArrayBuffer,E=DataView;function e(s){return A.isView(s)&&!(s instanceof E)}Y.isTypedArray=e;function t(s){return x(s)||e(s)}Y.isArrayOrTypedArray=t;function r(s){return!t(s[0])}Y.isArray1D=r,Y.ensureArray=function(s,c){return x(s)||(s=[]),s.length=c,s};var o={u1c:typeof Uint8ClampedArray>"u"?void 0:Uint8ClampedArray,i1:typeof Int8Array>"u"?void 0:Int8Array,u1:typeof Uint8Array>"u"?void 0:Uint8Array,i2:typeof Int16Array>"u"?void 0:Int16Array,u2:typeof Uint16Array>"u"?void 0:Uint16Array,i4:typeof Int32Array>"u"?void 0:Int32Array,u4:typeof Uint32Array>"u"?void 0:Uint32Array,f4:typeof Float32Array>"u"?void 0:Float32Array,f8:typeof Float64Array>"u"?void 0:Float64Array};o.uint8c=o.u1c,o.uint8=o.u1,o.int8=o.i1,o.uint16=o.u2,o.int16=o.i2,o.uint32=o.u4,o.int32=o.i4,o.float32=o.f4,o.float64=o.f8;function a(s){return s.constructor===ArrayBuffer}Y.isArrayBuffer=a,Y.decodeTypedArraySpec=function(s){var c=[],f=i(s),v=f.dtype,h=o[v];if(!h)throw new Error('Error in dtype: "'+v+'"');var T=h.BYTES_PER_ELEMENT,l=f.bdata;a(l)||(l=G(l));var y=f.shape===void 0?[l.byteLength/T]:(""+f.shape).split(",");y.reverse();var b=y.length,S,M,_=+y[0],w=T*_,p=0;if(b===1)c=new h(l);else if(b===2)for(S=+y[1],M=0;M<S;M++)c[M]=new h(l,p,_),p+=w;else if(b===3){S=+y[1];for(var u=+y[2],g=0;g<u;g++)for(c[g]=[],M=0;M<S;M++)c[g][M]=new h(l,p,_),p+=w}else throw new Error("ndim: "+b+'is not supported with the shape:"'+f.shape+'"');return c.bdata=f.bdata,c.dtype=f.dtype,c.shape=y.reverse().join(","),s._inputArray=c,c},Y.isTypedArraySpec=function(s){return d(s)&&s.hasOwnProperty("dtype")&&typeof s.dtype=="string"&&s.hasOwnProperty("bdata")&&(typeof s.bdata=="string"||a(s.bdata))&&(s.shape===void 0||s.hasOwnProperty("shape")&&(typeof s.shape=="string"||typeof s.shape=="number"))};function i(s){return{bdata:s.bdata,dtype:s.dtype,shape:s.shape}}Y.concat=function(){var s=[],c=!0,f=0,v,h,T,l,y,b,S,M;for(T=0;T<arguments.length;T++)l=arguments[T],b=l.length,b&&(h?s.push(l):(h=l,y=b),x(l)?v=!1:(c=!1,f?v!==l.constructor&&(v=!1):v=l.constructor),f+=b);if(!f)return[];if(!s.length)return h;if(c)return h.concat.apply(h,s);if(v){for(S=new v(f),S.set(h),T=0;T<s.length;T++)l=s[T],S.set(l,y),y+=l.length;return S}for(S=new Array(f),M=0;M<h.length;M++)S[M]=h[M];for(T=0;T<s.length;T++){for(l=s[T],M=0;M<l.length;M++)S[y+M]=l[M];y+=M}return S},Y.maxRowLength=function(s){return n(s,Math.max,0)},Y.minRowLength=function(s){return n(s,Math.min,1/0)};function n(s,c,f){if(t(s))if(t(s[0])){for(var v=f,h=0;h<s.length;h++)v=c(v,s[h].length);return v}else return s.length;return 0}}}),Zg=He({"src/lib/nested_property.js"(Y,G){var d=Mi(),x=Sh().isArrayOrTypedArray;G.exports=function(s,c){if(d(c))c=String(c);else if(typeof c!="string"||c.substr(c.length-4)==="[-1]")throw"bad property string";var f=c.split("."),v,h,T,l;for(l=0;l<f.length;l++)if(String(f[l]).slice(0,2)==="__")throw"bad property string";for(l=0;l<f.length;){if(v=String(f[l]).match(/^([^\[\]]*)((\[\-?[0-9]*\])+)$/),v){if(v[1])f[l]=v[1];else if(l===0)f.splice(0,1);else throw"bad property string";for(h=v[2].substr(1,v[2].length-2).split("]["),T=0;T<h.length;T++)l++,f.splice(l,0,Number(h[T]))}l++}return typeof s!="object"?i(s,c,f):{set:t(s,f,c),get:A(s,f),astr:c,parts:f,obj:s}};function A(n,s){return function(c){var f=n,v,h,T,l,y;for(l=0;l<s.length-1;l++){if(v=s[l],v===-1){for(h=!0,T=[],y=0;y<f.length;y++)T[y]=A(f[y],s.slice(l+1))(c),T[y]!==T[0]&&(h=!1);return h?T[0]:T}if(typeof v=="number"&&!x(f)||(f=f[v],typeof f!="object"||f===null))return}if(!(typeof f!="object"||f===null)&&(T=f[s[l]],!(!c&&T===null)))return T}}var E=/(^|\.)args\[/;function e(n,s){return n===void 0||n===null&&!s.match(E)}function t(n,s,c){return function(f){var v=n,h="",T=e(f,c),l,y;for(y=0;y<s.length-1;y++){if(l=s[y],typeof l=="number"&&!x(v))throw"array index but container is not an array";if(l===-1){if(T=!o(v,s.slice(y+1),f,c),T)break;return}if(!a(v,l,s[y+1],T))break;if(v=v[l],typeof v!="object"||v===null)throw"container is not an object";h=r(h,l)}if(T){if(y===s.length-1&&(delete v[s[y]],Array.isArray(v)&&+s[y]===v.length-1))for(;v.length&&v[v.length-1]===void 0;)v.pop()}else v[s[y]]=f}}function r(n,s){var c=s;return d(s)?c="["+s+"]":n&&(c="."+s),n+c}function o(n,s,c,f){var v=x(c),h=!0,T=c,l=f.replace("-1",0),y=v?!1:e(c,l),b=s[0],S;for(S=0;S<n.length;S++)l=f.replace("-1",S),v&&(T=c[S%c.length],y=e(T,l)),y&&(h=!1),a(n,S,b,y)&&t(n[S],s,f.replace("-1",S))(T);return h}function a(n,s,c,f){if(n[s]===void 0){if(f)return!1;typeof c=="number"?n[s]=[]:n[s]={}}return!0}function i(n,s,c){return{set:function(){throw"bad container"},get:function(){},astr:s,parts:c,obj:n}}}}),rS=He({"src/lib/keyed_container.js"(Y,G){var d=Zg(),x=/^\w*$/,A=0,E=1,e=2,t=3,r=4;G.exports=function(a,i,n,s){n=n||"name",s=s||"value";var c,f,v,h={};i&&i.length?(v=d(a,i),f=v.get()):f=a,i=i||"";var T={};if(f)for(c=0;c<f.length;c++)T[f[c][n]]=c;var l=x.test(s),y={set:function(b,S){var M=S===null?r:A;if(!f){if(!v||M===r)return;f=[],v.set(f)}var _=T[b];if(_===void 0){if(M===r)return;M=M|t,_=f.length,T[b]=_}else S!==(l?f[_][s]:d(f[_],s).get())&&(M=M|e);var w=f[_]=f[_]||{};return w[n]=b,l?w[s]=S:d(w,s).set(S),S!==null&&(M=M&-5),h[_]=h[_]|M,y},get:function(b){if(f){var S=T[b];if(S!==void 0)return l?f[S][s]:d(f[S],s).get()}},rename:function(b,S){var M=T[b];return M===void 0||(h[M]=h[M]|E,T[S]=M,delete T[b],f[M][n]=S),y},remove:function(b){var S=T[b];if(S===void 0)return y;var M=f[S];if(Object.keys(M).length>2)return h[S]=h[S]|e,y.set(b,null);if(l){for(c=S;c<f.length;c++)h[c]=h[c]|t;for(c=S;c<f.length;c++)T[f[c][n]]--;f.splice(S,1),delete T[b]}else d(M,s).set(null),h[S]=h[S]|e|r;return y},constructUpdate:function(){for(var b,S,M={},_=Object.keys(h),w=0;w<_.length;w++)S=_[w],b=i+"["+S+"]",f[S]?(h[S]&E&&(M[b+"."+n]=f[S][n]),h[S]&e&&(l?M[b+"."+s]=h[S]&r?null:f[S][s]:M[b+"."+s]=h[S]&r?null:d(f[S],s).get())):M[b]=null;return M}};return y}}}),aS=He({"src/lib/relative_attr.js"(Y,G){var d=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,x=/^[^\.\[\]]+$/;G.exports=function(A,E){for(;E;){var e=A.match(d);if(e)A=e[1];else if(A.match(x))A="";else throw new Error("bad relativeAttr call:"+[A,E]);if(E.charAt(0)==="^")E=E.slice(1);else break}return A&&E.charAt(0)!=="["?A+"."+E:A+E}}}),Km=He({"src/lib/to_log_range.js"(Y,G){var d=Mi();G.exports=function(A,E){if(A>0)return Math.log(A)/Math.LN10;var e=Math.log(Math.min(E[0],E[1]))/Math.LN10;return d(e)||(e=Math.log(Math.max(E[0],E[1]))/Math.LN10-6),e}}}),nS=He({"src/lib/relink_private.js"(Y,G){var d=Sh().isArrayOrTypedArray,x=tv();G.exports=function A(E,e){for(var t in e){var r=e[t],o=E[t];if(o!==r)if(t.charAt(0)==="_"||typeof r=="function"){if(t in E)continue;E[t]=r}else if(d(r)&&d(o)&&x(r[0])){if(t==="customdata"||t==="ids")continue;for(var a=Math.min(r.length,o.length),i=0;i<a;i++)o[i]!==r[i]&&x(r[i])&&x(o[i])&&A(o[i],r[i])}else x(r)&&x(o)&&(A(o,r),Object.keys(o).length||delete E[t])}}}}),R0=He({"src/lib/mod.js"(Y,G){function d(A,E){var e=A%E;return e<0?e+E:e}function x(A,E){return Math.abs(A)>E/2?A-Math.round(A/E)*E:A}G.exports={mod:d,modHalf:x}}}),jf=He({"node_modules/tinycolor2/tinycolor.js"(Y,G){(function(d){var x=/^\s+/,A=/\s+$/,E=0,e=d.round,t=d.min,r=d.max,o=d.random;function a(q,ae){if(q=q||"",ae=ae||{},q instanceof a)return q;if(!(this instanceof a))return new a(q,ae);var ie=i(q);this._originalInput=q,this._r=ie.r,this._g=ie.g,this._b=ie.b,this._a=ie.a,this._roundA=e(100*this._a)/100,this._format=ae.format||ie.format,this._gradientType=ae.gradientType,this._r<1&&(this._r=e(this._r)),this._g<1&&(this._g=e(this._g)),this._b<1&&(this._b=e(this._b)),this._ok=ie.ok,this._tc_id=E++}a.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 q=this.toRgb();return(q.r*299+q.g*587+q.b*114)/1e3},getLuminance:function(){var q=this.toRgb(),ae,ie,fe,we,Ae,Fe;return ae=q.r/255,ie=q.g/255,fe=q.b/255,ae<=.03928?we=ae/12.92:we=d.pow((ae+.055)/1.055,2.4),ie<=.03928?Ae=ie/12.92:Ae=d.pow((ie+.055)/1.055,2.4),fe<=.03928?Fe=fe/12.92:Fe=d.pow((fe+.055)/1.055,2.4),.2126*we+.7152*Ae+.0722*Fe},setAlpha:function(q){return this._a=L(q),this._roundA=e(100*this._a)/100,this},toHsv:function(){var q=f(this._r,this._g,this._b);return{h:q.h*360,s:q.s,v:q.v,a:this._a}},toHsvString:function(){var q=f(this._r,this._g,this._b),ae=e(q.h*360),ie=e(q.s*100),fe=e(q.v*100);return this._a==1?"hsv("+ae+", "+ie+"%, "+fe+"%)":"hsva("+ae+", "+ie+"%, "+fe+"%, "+this._roundA+")"},toHsl:function(){var q=s(this._r,this._g,this._b);return{h:q.h*360,s:q.s,l:q.l,a:this._a}},toHslString:function(){var q=s(this._r,this._g,this._b),ae=e(q.h*360),ie=e(q.s*100),fe=e(q.l*100);return this._a==1?"hsl("+ae+", "+ie+"%, "+fe+"%)":"hsla("+ae+", "+ie+"%, "+fe+"%, "+this._roundA+")"},toHex:function(q){return h(this._r,this._g,this._b,q)},toHexString:function(q){return"#"+this.toHex(q)},toHex8:function(q){return T(this._r,this._g,this._b,this._a,q)},toHex8String:function(q){return"#"+this.toHex8(q)},toRgb:function(){return{r:e(this._r),g:e(this._g),b:e(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+e(this._r)+", "+e(this._g)+", "+e(this._b)+")":"rgba("+e(this._r)+", "+e(this._g)+", "+e(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:e(N(this._r,255)*100)+"%",g:e(N(this._g,255)*100)+"%",b:e(N(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+e(N(this._r,255)*100)+"%, "+e(N(this._g,255)*100)+"%, "+e(N(this._b,255)*100)+"%)":"rgba("+e(N(this._r,255)*100)+"%, "+e(N(this._g,255)*100)+"%, "+e(N(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:B[h(this._r,this._g,this._b,!0)]||!1},toFilter:function(q){var ae="#"+l(this._r,this._g,this._b,this._a),ie=ae,fe=this._gradientType?"GradientType = 1, ":"";if(q){var we=a(q);ie="#"+l(we._r,we._g,we._b,we._a)}return"progid:DXImageTransform.Microsoft.gradient("+fe+"startColorstr="+ae+",endColorstr="+ie+")"},toString:function(q){var ae=!!q;q=q||this._format;var ie=!1,fe=this._a<1&&this._a>=0,we=!ae&&fe&&(q==="hex"||q==="hex6"||q==="hex3"||q==="hex4"||q==="hex8"||q==="name");return we?q==="name"&&this._a===0?this.toName():this.toRgbString():(q==="rgb"&&(ie=this.toRgbString()),q==="prgb"&&(ie=this.toPercentageRgbString()),(q==="hex"||q==="hex6")&&(ie=this.toHexString()),q==="hex3"&&(ie=this.toHexString(!0)),q==="hex4"&&(ie=this.toHex8String(!0)),q==="hex8"&&(ie=this.toHex8String()),q==="name"&&(ie=this.toName()),q==="hsl"&&(ie=this.toHslString()),q==="hsv"&&(ie=this.toHsvString()),ie||this.toHexString())},clone:function(){return a(this.toString())},_applyModification:function(q,ae){var ie=q.apply(null,[this].concat([].slice.call(ae)));return this._r=ie._r,this._g=ie._g,this._b=ie._b,this.setAlpha(ie._a),this},lighten:function(){return this._applyModification(M,arguments)},brighten:function(){return this._applyModification(_,arguments)},darken:function(){return this._applyModification(w,arguments)},desaturate:function(){return this._applyModification(y,arguments)},saturate:function(){return this._applyModification(b,arguments)},greyscale:function(){return this._applyModification(S,arguments)},spin:function(){return this._applyModification(p,arguments)},_applyCombination:function(q,ae){return q.apply(null,[this].concat([].slice.call(ae)))},analogous:function(){return this._applyCombination(P,arguments)},complement:function(){return this._applyCombination(u,arguments)},monochromatic:function(){return this._applyCombination(z,arguments)},splitcomplement:function(){return this._applyCombination(R,arguments)},triad:function(){return this._applyCombination(g,arguments)},tetrad:function(){return this._applyCombination(m,arguments)}},a.fromRatio=function(q,ae){if(typeof q=="object"){var ie={};for(var fe in q)q.hasOwnProperty(fe)&&(fe==="a"?ie[fe]=q[fe]:ie[fe]=le(q[fe]));q=ie}return a(q,ae)};function i(q){var ae={r:0,g:0,b:0},ie=1,fe=null,we=null,Ae=null,Fe=!1,Ce=!1;return typeof q=="string"&&(q=re(q)),typeof q=="object"&&(X(q.r)&&X(q.g)&&X(q.b)?(ae=n(q.r,q.g,q.b),Fe=!0,Ce=String(q.r).substr(-1)==="%"?"prgb":"rgb"):X(q.h)&&X(q.s)&&X(q.v)?(fe=le(q.s),we=le(q.v),ae=v(q.h,fe,we),Fe=!0,Ce="hsv"):X(q.h)&&X(q.s)&&X(q.l)&&(fe=le(q.s),Ae=le(q.l),ae=c(q.h,fe,Ae),Fe=!0,Ce="hsl"),q.hasOwnProperty("a")&&(ie=q.a)),ie=L(ie),{ok:Fe,format:q.format||Ce,r:t(255,r(ae.r,0)),g:t(255,r(ae.g,0)),b:t(255,r(ae.b,0)),a:ie}}function n(q,ae,ie){return{r:N(q,255)*255,g:N(ae,255)*255,b:N(ie,255)*255}}function s(q,ae,ie){q=N(q,255),ae=N(ae,255),ie=N(ie,255);var fe=r(q,ae,ie),we=t(q,ae,ie),Ae,Fe,Ce=(fe+we)/2;if(fe==we)Ae=Fe=0;else{var qe=fe-we;switch(Fe=Ce>.5?qe/(2-fe-we):qe/(fe+we),fe){case q:Ae=(ae-ie)/qe+(ae<ie?6:0);break;case ae:Ae=(ie-q)/qe+2;break;case ie:Ae=(q-ae)/qe+4;break}Ae/=6}return{h:Ae,s:Fe,l:Ce}}function c(q,ae,ie){var fe,we,Ae;q=N(q,360),ae=N(ae,100),ie=N(ie,100);function Fe(et,Qe,Ke){return Ke<0&&(Ke+=1),Ke>1&&(Ke-=1),Ke<1/6?et+(Qe-et)*6*Ke:Ke<1/2?Qe:Ke<2/3?et+(Qe-et)*(2/3-Ke)*6:et}if(ae===0)fe=we=Ae=ie;else{var Ce=ie<.5?ie*(1+ae):ie+ae-ie*ae,qe=2*ie-Ce;fe=Fe(qe,Ce,q+1/3),we=Fe(qe,Ce,q),Ae=Fe(qe,Ce,q-1/3)}return{r:fe*255,g:we*255,b:Ae*255}}function f(q,ae,ie){q=N(q,255),ae=N(ae,255),ie=N(ie,255);var fe=r(q,ae,ie),we=t(q,ae,ie),Ae,Fe,Ce=fe,qe=fe-we;if(Fe=fe===0?0:qe/fe,fe==we)Ae=0;else{switch(fe){case q:Ae=(ae-ie)/qe+(ae<ie?6:0);break;case ae:Ae=(ie-q)/qe+2;break;case ie:Ae=(q-ae)/qe+4;break}Ae/=6}return{h:Ae,s:Fe,v:Ce}}function v(q,ae,ie){q=N(q,360)*6,ae=N(ae,100),ie=N(ie,100);var fe=d.floor(q),we=q-fe,Ae=ie*(1-ae),Fe=ie*(1-we*ae),Ce=ie*(1-(1-we)*ae),qe=fe%6,et=[ie,Fe,Ae,Ae,Ce,ie][qe],Qe=[Ce,ie,ie,Fe,Ae,Ae][qe],Ke=[Ae,Ae,Ce,ie,ie,Fe][qe];return{r:et*255,g:Qe*255,b:Ke*255}}function h(q,ae,ie,fe){var we=[oe(e(q).toString(16)),oe(e(ae).toString(16)),oe(e(ie).toString(16))];return fe&&we[0].charAt(0)==we[0].charAt(1)&&we[1].charAt(0)==we[1].charAt(1)&&we[2].charAt(0)==we[2].charAt(1)?we[0].charAt(0)+we[1].charAt(0)+we[2].charAt(0):we.join("")}function T(q,ae,ie,fe,we){var Ae=[oe(e(q).toString(16)),oe(e(ae).toString(16)),oe(e(ie).toString(16)),oe(j(fe))];return we&&Ae[0].charAt(0)==Ae[0].charAt(1)&&Ae[1].charAt(0)==Ae[1].charAt(1)&&Ae[2].charAt(0)==Ae[2].charAt(1)&&Ae[3].charAt(0)==Ae[3].charAt(1)?Ae[0].charAt(0)+Ae[1].charAt(0)+Ae[2].charAt(0)+Ae[3].charAt(0):Ae.join("")}function l(q,ae,ie,fe){var we=[oe(j(fe)),oe(e(q).toString(16)),oe(e(ae).toString(16)),oe(e(ie).toString(16))];return we.join("")}a.equals=function(q,ae){return!q||!ae?!1:a(q).toRgbString()==a(ae).toRgbString()},a.random=function(){return a.fromRatio({r:o(),g:o(),b:o()})};function y(q,ae){ae=ae===0?0:ae||10;var ie=a(q).toHsl();return ie.s-=ae/100,ie.s=U(ie.s),a(ie)}function b(q,ae){ae=ae===0?0:ae||10;var ie=a(q).toHsl();return ie.s+=ae/100,ie.s=U(ie.s),a(ie)}function S(q){return a(q).desaturate(100)}function M(q,ae){ae=ae===0?0:ae||10;var ie=a(q).toHsl();return ie.l+=ae/100,ie.l=U(ie.l),a(ie)}function _(q,ae){ae=ae===0?0:ae||10;var ie=a(q).toRgb();return ie.r=r(0,t(255,ie.r-e(255*-(ae/100)))),ie.g=r(0,t(255,ie.g-e(255*-(ae/100)))),ie.b=r(0,t(255,ie.b-e(255*-(ae/100)))),a(ie)}function w(q,ae){ae=ae===0?0:ae||10;var ie=a(q).toHsl();return ie.l-=ae/100,ie.l=U(ie.l),a(ie)}function p(q,ae){var ie=a(q).toHsl(),fe=(ie.h+ae)%360;return ie.h=fe<0?360+fe:fe,a(ie)}function u(q){var ae=a(q).toHsl();return ae.h=(ae.h+180)%360,a(ae)}function g(q){var ae=a(q).toHsl(),ie=ae.h;return[a(q),a({h:(ie+120)%360,s:ae.s,l:ae.l}),a({h:(ie+240)%360,s:ae.s,l:ae.l})]}function m(q){var ae=a(q).toHsl(),ie=ae.h;return[a(q),a({h:(ie+90)%360,s:ae.s,l:ae.l}),a({h:(ie+180)%360,s:ae.s,l:ae.l}),a({h:(ie+270)%360,s:ae.s,l:ae.l})]}function R(q){var ae=a(q).toHsl(),ie=ae.h;return[a(q),a({h:(ie+72)%360,s:ae.s,l:ae.l}),a({h:(ie+216)%360,s:ae.s,l:ae.l})]}function P(q,ae,ie){ae=ae||6,ie=ie||30;var fe=a(q).toHsl(),we=360/ie,Ae=[a(q)];for(fe.h=(fe.h-(we*ae>>1)+720)%360;--ae;)fe.h=(fe.h+we)%360,Ae.push(a(fe));return Ae}function z(q,ae){ae=ae||6;for(var ie=a(q).toHsv(),fe=ie.h,we=ie.s,Ae=ie.v,Fe=[],Ce=1/ae;ae--;)Fe.push(a({h:fe,s:we,v:Ae})),Ae=(Ae+Ce)%1;return Fe}a.mix=function(q,ae,ie){ie=ie===0?0:ie||50;var fe=a(q).toRgb(),we=a(ae).toRgb(),Ae=ie/100,Fe={r:(we.r-fe.r)*Ae+fe.r,g:(we.g-fe.g)*Ae+fe.g,b:(we.b-fe.b)*Ae+fe.b,a:(we.a-fe.a)*Ae+fe.a};return a(Fe)},a.readability=function(q,ae){var ie=a(q),fe=a(ae);return(d.max(ie.getLuminance(),fe.getLuminance())+.05)/(d.min(ie.getLuminance(),fe.getLuminance())+.05)},a.isReadable=function(q,ae,ie){var fe=a.readability(q,ae),we,Ae;switch(Ae=!1,we=ee(ie),we.level+we.size){case"AAsmall":case"AAAlarge":Ae=fe>=4.5;break;case"AAlarge":Ae=fe>=3;break;case"AAAsmall":Ae=fe>=7;break}return Ae},a.mostReadable=function(q,ae,ie){var fe=null,we=0,Ae,Fe,Ce,qe;ie=ie||{},Fe=ie.includeFallbackColors,Ce=ie.level,qe=ie.size;for(var et=0;et<ae.length;et++)Ae=a.readability(q,ae[et]),Ae>we&&(we=Ae,fe=a(ae[et]));return a.isReadable(q,fe,{level:Ce,size:qe})||!Fe?fe:(ie.includeFallbackColors=!1,a.mostReadable(q,["#fff","#000"],ie))};var F=a.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"},B=a.hexNames=O(F);function O(q){var ae={};for(var ie in q)q.hasOwnProperty(ie)&&(ae[q[ie]]=ie);return ae}function L(q){return q=parseFloat(q),(isNaN(q)||q<0||q>1)&&(q=1),q}function N(q,ae){Q(q)&&(q="100%");var ie=ue(q);return q=t(ae,r(0,parseFloat(q))),ie&&(q=parseInt(q*ae,10)/100),d.abs(q-ae)<1e-6?1:q%ae/parseFloat(ae)}function U(q){return t(1,r(0,q))}function Z(q){return parseInt(q,16)}function Q(q){return typeof q=="string"&&q.indexOf(".")!=-1&&parseFloat(q)===1}function ue(q){return typeof q=="string"&&q.indexOf("%")!=-1}function oe(q){return q.length==1?"0"+q:""+q}function le(q){return q<=1&&(q=q*100+"%"),q}function j(q){return d.round(parseFloat(q)*255).toString(16)}function J(q){return Z(q)/255}var $=function(){var q="[-\\+]?\\d+%?",ae="[-\\+]?\\d*\\.\\d+%?",ie="(?:"+ae+")|(?:"+q+")",fe="[\\s|\\(]+("+ie+")[,|\\s]+("+ie+")[,|\\s]+("+ie+")\\s*\\)?",we="[\\s|\\(]+("+ie+")[,|\\s]+("+ie+")[,|\\s]+("+ie+")[,|\\s]+("+ie+")\\s*\\)?";return{CSS_UNIT:new RegExp(ie),rgb:new RegExp("rgb"+fe),rgba:new RegExp("rgba"+we),hsl:new RegExp("hsl"+fe),hsla:new RegExp("hsla"+we),hsv:new RegExp("hsv"+fe),hsva:new RegExp("hsva"+we),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 X(q){return!!$.CSS_UNIT.exec(q)}function re(q){q=q.replace(x,"").replace(A,"").toLowerCase();var ae=!1;if(F[q])q=F[q],ae=!0;else if(q=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var ie;return(ie=$.rgb.exec(q))?{r:ie[1],g:ie[2],b:ie[3]}:(ie=$.rgba.exec(q))?{r:ie[1],g:ie[2],b:ie[3],a:ie[4]}:(ie=$.hsl.exec(q))?{h:ie[1],s:ie[2],l:ie[3]}:(ie=$.hsla.exec(q))?{h:ie[1],s:ie[2],l:ie[3],a:ie[4]}:(ie=$.hsv.exec(q))?{h:ie[1],s:ie[2],v:ie[3]}:(ie=$.hsva.exec(q))?{h:ie[1],s:ie[2],v:ie[3],a:ie[4]}:(ie=$.hex8.exec(q))?{r:Z(ie[1]),g:Z(ie[2]),b:Z(ie[3]),a:J(ie[4]),format:ae?"name":"hex8"}:(ie=$.hex6.exec(q))?{r:Z(ie[1]),g:Z(ie[2]),b:Z(ie[3]),format:ae?"name":"hex"}:(ie=$.hex4.exec(q))?{r:Z(ie[1]+""+ie[1]),g:Z(ie[2]+""+ie[2]),b:Z(ie[3]+""+ie[3]),a:J(ie[4]+""+ie[4]),format:ae?"name":"hex8"}:(ie=$.hex3.exec(q))?{r:Z(ie[1]+""+ie[1]),g:Z(ie[2]+""+ie[2]),b:Z(ie[3]+""+ie[3]),format:ae?"name":"hex"}:!1}function ee(q){var ae,ie;return q=q||{level:"AA",size:"small"},ae=(q.level||"AA").toUpperCase(),ie=(q.size||"small").toLowerCase(),ae!=="AA"&&ae!=="AAA"&&(ae="AA"),ie!=="small"&&ie!=="large"&&(ie="small"),{level:ae,size:ie}}typeof G<"u"&&G.exports?G.exports=a:window.tinycolor=a})(Math)}}),po=He({"src/lib/extend.js"(Y){var G=tv(),d=Array.isArray;function x(E,e){var t,r;for(t=0;t<E.length;t++){if(r=E[t],r!==null&&typeof r=="object")return!1;r!==void 0&&(e[t]=r)}return!0}Y.extendFlat=function(){return A(arguments,!1,!1,!1)},Y.extendDeep=function(){return A(arguments,!0,!1,!1)},Y.extendDeepAll=function(){return A(arguments,!0,!0,!1)},Y.extendDeepNoArrays=function(){return A(arguments,!0,!1,!0)};function A(E,e,t,r){var o=E[0],a=E.length,i,n,s,c,f,v,h;if(a===2&&d(o)&&d(E[1])&&o.length===0){if(h=x(E[1],o),h)return o;o.splice(0,o.length)}for(var T=1;T<a;T++){i=E[T];for(n in i)s=o[n],c=i[n],r&&d(c)?o[n]=c:e&&c&&(G(c)||(f=d(c)))?(f?(f=!1,v=s&&d(s)?s:[]):v=s&&G(s)?s:{},o[n]=A([v,c],e,t,r)):(typeof c<"u"||t)&&(o[n]=c)}return o}}}),au=He({"src/plots/font_attributes.js"(Y,G){G.exports=function(d){var x=d.variantValues,A=d.editType,E=d.colorEditType;E===void 0&&(E=A);var e={editType:A,valType:"integer",min:1,max:1e3,extras:["normal","bold"],dflt:"normal"};d.noNumericWeightValues&&(e.valType="enumerated",e.values=e.extras,e.extras=void 0,e.min=void 0,e.max=void 0);var t={family:{valType:"string",noBlank:!0,strict:!0,editType:A},size:{valType:"number",min:1,editType:A},color:{valType:"color",editType:E},weight:e,style:{editType:A,valType:"enumerated",values:["normal","italic"],dflt:"normal"},variant:d.noFontVariant?void 0:{editType:A,valType:"enumerated",values:x||["normal","small-caps","all-small-caps","all-petite-caps","petite-caps","unicase"],dflt:"normal"},textcase:d.noFontTextcase?void 0:{editType:A,valType:"enumerated",values:["normal","word caps","upper","lower"],dflt:"normal"},lineposition:d.noFontLineposition?void 0:{editType:A,valType:"flaglist",flags:["under","over","through"],extras:["none"],dflt:"none"},shadow:d.noFontShadow?void 0:{editType:A,valType:"string",dflt:d.autoShadowDflt?"auto":"none"},editType:A};return d.autoSize&&(t.size.dflt="auto"),d.autoColor&&(t.color.dflt="auto"),d.arrayOk&&(t.family.arrayOk=!0,t.weight.arrayOk=!0,t.style.arrayOk=!0,d.noFontVariant||(t.variant.arrayOk=!0),d.noFontTextcase||(t.textcase.arrayOk=!0),d.noFontLineposition||(t.lineposition.arrayOk=!0),d.noFontShadow||(t.shadow.arrayOk=!0),t.size.arrayOk=!0,t.color.arrayOk=!0),t}}}),Xg=He({"src/components/fx/constants.js"(Y,G){G.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50,HOVERID:"-hover"}}}),qd=He({"src/components/fx/layout_attributes.js"(Y,G){var d=Xg(),x=au(),A=x({editType:"none"});A.family.dflt=d.HOVERFONT,A.size.dflt=d.HOVERFONTSIZE,G.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar"},hoversubplots:{valType:"enumerated",values:["single","overlaying","axis"],dflt:"overlaying",editType:"none"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:A,grouptitlefont:x({editType:"none"}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none"},namelength:{valType:"integer",min:-1,dflt:15,editType:"none"},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",editType:"none"}}}}),D0=He({"src/components/fx/attributes.js"(Y,G){var d=au(),x=qd().hoverlabel,A=po().extendFlat;G.exports={hoverlabel:{bgcolor:A({},x.bgcolor,{arrayOk:!0}),bordercolor:A({},x.bordercolor,{arrayOk:!0}),font:d({arrayOk:!0,editType:"none"}),align:A({},x.align,{arrayOk:!0}),namelength:A({},x.namelength,{arrayOk:!0}),editType:"none"}}}}),pl=He({"src/plots/attributes.js"(Y,G){var d=au(),x=D0();G.exports={type:{valType:"enumerated",values:[],dflt:"scatter",editType:"calc+clearAxisTypes",_noTemplating:!0},visible:{valType:"enumerated",values:[!0,!1,"legendonly"],dflt:!0,editType:"calc"},showlegend:{valType:"boolean",dflt:!0,editType:"style"},legend:{valType:"subplotid",dflt:"legend",editType:"style"},legendgroup:{valType:"string",dflt:"",editType:"style"},legendgrouptitle:{text:{valType:"string",dflt:"",editType:"style"},font:d({editType:"style"}),editType:"style"},legendrank:{valType:"number",dflt:1e3,editType:"style"},legendwidth:{valType:"number",min:0,editType:"style"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"style"},name:{valType:"string",editType:"style"},uid:{valType:"string",editType:"plot",anim:!0},ids:{valType:"data_array",editType:"calc",anim:!0},customdata:{valType:"data_array",editType:"calc"},meta:{valType:"any",arrayOk:!0,editType:"plot"},selectedpoints:{valType:"any",editType:"calc"},hoverinfo:{valType:"flaglist",flags:["x","y","z","text","name"],extras:["all","none","skip"],arrayOk:!0,dflt:"all",editType:"none"},hoverlabel:x.hoverlabel,stream:{token:{valType:"string",noBlank:!0,strict:!0,editType:"calc"},maxpoints:{valType:"number",min:0,max:1e4,dflt:500,editType:"calc"},editType:"calc"},uirevision:{valType:"any",editType:"none"}}}}),Cp=He({"src/components/colorscale/scales.js"(Y,G){var d=jf(),x={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)"]]},A=x.RdBu;function E(r,o){if(o||(o=A),!r)return o;function a(){try{r=x[r]||JSON.parse(r)}catch{r=o}}return typeof r=="string"&&(a(),typeof r=="string"&&a()),e(r)?r:o}function e(r){var o=0;if(!Array.isArray(r)||r.length<2||!r[0]||!r[r.length-1]||+r[0][0]!=0||+r[r.length-1][0]!=1)return!1;for(var a=0;a<r.length;a++){var i=r[a];if(i.length!==2||+i[0]<o||!d(i[1]).isValid())return!1;o=+i[0]}return!0}function t(r){return x[r]!==void 0?!0:e(r)}G.exports={scales:x,defaultScale:A,get:E,isValid:t}}}),cf=He({"src/components/color/attributes.js"(Y){Y.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"],Y.defaultLine="#444",Y.lightLine="#eee",Y.background="#fff",Y.borderLine="#BEC8D9",Y.lightFraction=100*10/11}}),Ei=He({"src/components/color/index.js"(Y,G){var d=jf(),x=Mi(),A=Sh().isTypedArray,E=G.exports={},e=cf();E.defaults=e.defaults;var t=E.defaultLine=e.defaultLine;E.lightLine=e.lightLine;var r=E.background=e.background;E.tinyRGB=function(a){var i=a.toRgb();return"rgb("+Math.round(i.r)+", "+Math.round(i.g)+", "+Math.round(i.b)+")"},E.rgb=function(a){return E.tinyRGB(d(a))},E.opacity=function(a){return a?d(a).getAlpha():0},E.addOpacity=function(a,i){var n=d(a).toRgb();return"rgba("+Math.round(n.r)+", "+Math.round(n.g)+", "+Math.round(n.b)+", "+i+")"},E.combine=function(a,i){var n=d(a).toRgb();if(n.a===1)return d(a).toRgbString();var s=d(i||r).toRgb(),c=s.a===1?s:{r:255*(1-s.a)+s.r*s.a,g:255*(1-s.a)+s.g*s.a,b:255*(1-s.a)+s.b*s.a},f={r:c.r*(1-n.a)+n.r*n.a,g:c.g*(1-n.a)+n.g*n.a,b:c.b*(1-n.a)+n.b*n.a};return d(f).toRgbString()},E.interpolate=function(a,i,n){var s=d(a).toRgb(),c=d(i).toRgb(),f={r:n*s.r+(1-n)*c.r,g:n*s.g+(1-n)*c.g,b:n*s.b+(1-n)*c.b};return d(f).toRgbString()},E.contrast=function(a,i,n){var s=d(a);s.getAlpha()!==1&&(s=d(E.combine(a,r)));var c=s.isDark()?i?s.lighten(i):r:n?s.darken(n):t;return c.toString()},E.stroke=function(a,i){var n=d(i);a.style({stroke:E.tinyRGB(n),"stroke-opacity":n.getAlpha()})},E.fill=function(a,i){var n=d(i);a.style({fill:E.tinyRGB(n),"fill-opacity":n.getAlpha()})},E.clean=function(a){if(!(!a||typeof a!="object")){var i=Object.keys(a),n,s,c,f;for(n=0;n<i.length;n++)if(c=i[n],f=a[c],c.substr(c.length-5)==="color")if(Array.isArray(f))for(s=0;s<f.length;s++)f[s]=o(f[s]);else a[c]=o(f);else if(c.substr(c.length-10)==="colorscale"&&Array.isArray(f))for(s=0;s<f.length;s++)Array.isArray(f[s])&&(f[s][1]=o(f[s][1]));else if(Array.isArray(f)){var v=f[0];if(!Array.isArray(v)&&v&&typeof v=="object")for(s=0;s<f.length;s++)E.clean(f[s])}else f&&typeof f=="object"&&!A(f)&&E.clean(f)}};function o(a){if(x(a)||typeof a!="string")return a;var i=a.trim();if(i.substr(0,3)!=="rgb")return a;var n=i.match(/^rgba?\s*\(([^()]*)\)$/);if(!n)return a;var s=n[1].trim().split(/\s*[\s,]\s*/),c=i.charAt(3)==="a"&&s.length===4;if(!c&&s.length!==3)return a;for(var f=0;f<s.length;f++){if(!s[f].length||(s[f]=Number(s[f]),!(s[f]>=0)))return a;if(f===3)s[f]>1&&(s[f]=1);else if(s[f]>=1)return a}var v=Math.round(s[0]*255)+", "+Math.round(s[1]*255)+", "+Math.round(s[2]*255);return c?"rgba("+v+", "+s[3]+")":"rgb("+v+")"}}}),Hd=He({"src/constants/interactions.js"(Y,G){G.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}}}),z0=He({"src/lib/regex.js"(Y){Y.counter=function(G,d,x,A){var E=(d||"")+(x?"":"$"),e=A===!1?"":"^";return G==="xy"?new RegExp(e+"x([2-9]|[1-9][0-9]+)?y([2-9]|[1-9][0-9]+)?"+E):new RegExp(e+G+"([2-9]|[1-9][0-9]+)?"+E)}}}),iS=He({"src/lib/coerce.js"(Y){var G=Mi(),d=jf(),x=po().extendFlat,A=pl(),E=Cp(),e=Ei(),t=Hd().DESELECTDIM,r=Zg(),o=z0().counter,a=R0().modHalf,i=Sh().isArrayOrTypedArray,n=Sh().isTypedArraySpec,s=Sh().decodeTypedArraySpec;Y.valObjectMeta={data_array:{coerceFunction:function(f,v,h){v.set(i(f)?f:n(f)?s(f):h)}},enumerated:{coerceFunction:function(f,v,h,T){T.coerceNumber&&(f=+f),T.values.indexOf(f)===-1?v.set(h):v.set(f)},validateFunction:function(f,v){v.coerceNumber&&(f=+f);for(var h=v.values,T=0;T<h.length;T++){var l=String(h[T]);if(l.charAt(0)==="/"&&l.charAt(l.length-1)==="/"){var y=new RegExp(l.substr(1,l.length-2));if(y.test(f))return!0}else if(f===h[T])return!0}return!1}},boolean:{coerceFunction:function(f,v,h){f===!0||f===!1?v.set(f):v.set(h)}},number:{coerceFunction:function(f,v,h,T){n(f)&&(f=s(f)),!G(f)||T.min!==void 0&&f<T.min||T.max!==void 0&&f>T.max?v.set(h):v.set(+f)}},integer:{coerceFunction:function(f,v,h,T){if((T.extras||[]).indexOf(f)!==-1){v.set(f);return}n(f)&&(f=s(f)),f%1||!G(f)||T.min!==void 0&&f<T.min||T.max!==void 0&&f>T.max?v.set(h):v.set(+f)}},string:{coerceFunction:function(f,v,h,T){if(typeof f!="string"){var l=typeof f=="number";T.strict===!0||!l?v.set(h):v.set(String(f))}else T.noBlank&&!f?v.set(h):v.set(f)}},color:{coerceFunction:function(f,v,h){n(f)&&(f=s(f)),d(f).isValid()?v.set(f):v.set(h)}},colorlist:{coerceFunction:function(f,v,h){function T(l){return d(l).isValid()}!Array.isArray(f)||!f.length?v.set(h):f.every(T)?v.set(f):v.set(h)}},colorscale:{coerceFunction:function(f,v,h){v.set(E.get(f,h))}},angle:{coerceFunction:function(f,v,h){n(f)&&(f=s(f)),f==="auto"?v.set("auto"):G(f)?v.set(a(+f,360)):v.set(h)}},subplotid:{coerceFunction:function(f,v,h,T){var l=T.regex||o(h);if(typeof f=="string"&&l.test(f)){v.set(f);return}v.set(h)},validateFunction:function(f,v){var h=v.dflt;return f===h?!0:typeof f!="string"?!1:!!o(h).test(f)}},flaglist:{coerceFunction:function(f,v,h,T){if((T.extras||[]).indexOf(f)!==-1){v.set(f);return}if(typeof f!="string"){v.set(h);return}for(var l=f.split("+"),y=0;y<l.length;){var b=l[y];T.flags.indexOf(b)===-1||l.indexOf(b)<y?l.splice(y,1):y++}l.length?v.set(l.join("+")):v.set(h)}},any:{coerceFunction:function(f,v,h){f===void 0?v.set(h):v.set(n(f)?s(f):f)}},info_array:{coerceFunction:function(f,v,h,T){function l(F,B,O){var L,N={set:function(U){L=U}};return O===void 0&&(O=B.dflt),Y.valObjectMeta[B.valType].coerceFunction(F,N,O,B),L}if(n(f)&&(f=s(f)),!i(f)){v.set(h);return}var y=T.dimensions===2||T.dimensions==="1-2"&&Array.isArray(f)&&i(f[0]),b=T.items,S=[],M=Array.isArray(b),_=M&&y&&i(b[0]),w=y&&M&&!_,p=M&&!w?b.length:f.length,u,g,m,R,P,z;if(h=Array.isArray(h)?h:[],y)for(u=0;u<p;u++)for(S[u]=[],m=i(f[u])?f[u]:[],w?P=b.length:M?P=b[u].length:P=m.length,g=0;g<P;g++)w?R=b[g]:M?R=b[u][g]:R=b,z=l(m[g],R,(h[u]||[])[g]),z!==void 0&&(S[u][g]=z);else for(u=0;u<p;u++)z=l(f[u],M?b[u]:b,h[u]),z!==void 0&&(S[u]=z);v.set(S)},validateFunction:function(f,v){if(!i(f))return!1;var h=v.items,T=Array.isArray(h),l=v.dimensions===2;if(!v.freeLength&&f.length!==h.length)return!1;for(var y=0;y<f.length;y++)if(l){if(!i(f[y])||!v.freeLength&&f[y].length!==h[y].length)return!1;for(var b=0;b<f[y].length;b++)if(!c(f[y][b],T?h[y][b]:h))return!1}else if(!c(f[y],T?h[y]:h))return!1;return!0}}},Y.coerce=function(f,v,h,T,l){var y=r(h,T).get(),b=r(f,T),S=r(v,T),M=b.get(),_=v._template;if(M===void 0&&_&&(M=r(_,T).get(),_=0),l===void 0&&(l=y.dflt),y.arrayOk){if(i(M))return S.set(M),M;if(n(M))return M=s(M),S.set(M),M}var w=Y.valObjectMeta[y.valType].coerceFunction;w(M,S,l,y);var p=S.get();return _&&p===l&&!c(M,y)&&(M=r(_,T).get(),w(M,S,l,y),p=S.get()),p},Y.coerce2=function(f,v,h,T,l){var y=r(f,T),b=Y.coerce(f,v,h,T,l),S=y.get();return S!=null?b:!1},Y.coerceFont=function(f,v,h,T){T||(T={}),h=x({},h),h=x(h,T.overrideDflt||{});var l={family:f(v+".family",h.family),size:f(v+".size",h.size),color:f(v+".color",h.color),weight:f(v+".weight",h.weight),style:f(v+".style",h.style)};if(T.noFontVariant||(l.variant=f(v+".variant",h.variant)),T.noFontLineposition||(l.lineposition=f(v+".lineposition",h.lineposition)),T.noFontTextcase||(l.textcase=f(v+".textcase",h.textcase)),!T.noFontShadow){var y=h.shadow;y==="none"&&T.autoShadowDflt&&(y="auto"),l.shadow=f(v+".shadow",y)}return l},Y.coercePattern=function(f,v,h,T){var l=f(v+".shape");if(l){f(v+".solidity"),f(v+".size");var y=f(v+".fillmode"),b=y==="overlay";if(!T){var S=f(v+".bgcolor",b?h:void 0);f(v+".fgcolor",b?e.contrast(S):h)}f(v+".fgopacity",b?.5:1)}},Y.coerceHoverinfo=function(f,v,h){var T=v._module.attributes,l=T.hoverinfo?T:A,y=l.hoverinfo,b;if(h._dataLength===1){var S=y.dflt==="all"?y.flags.slice():y.dflt.split("+");S.splice(S.indexOf("name"),1),b=S.join("+")}return Y.coerce(f,v,l,"hoverinfo",b)},Y.coerceSelectionMarkerOpacity=function(f,v){if(f.marker){var h=f.marker.opacity;if(h!==void 0){var T,l;!i(h)&&!f.selected&&!f.unselected&&(T=h,l=t*h),v("selected.marker.opacity",T),v("unselected.marker.opacity",l)}}};function c(f,v){var h=Y.valObjectMeta[v.valType];if(v.arrayOk&&i(f))return!0;if(h.validateFunction)return h.validateFunction(f,v);var T={},l=T,y={set:function(b){l=b}};return h.coerceFunction(f,y,T,v),l!==T}Y.validate=c}}),Lp=He({"src/plot_api/plot_config.js"(Y,G){var d={staticPlot:{valType:"boolean",dflt:!1},typesetMath:{valType:"boolean",dflt:!0},plotlyServerURL:{valType:"string",dflt:""},editable:{valType:"boolean",dflt:!1},edits:{annotationPosition:{valType:"boolean",dflt:!1},annotationTail:{valType:"boolean",dflt:!1},annotationText:{valType:"boolean",dflt:!1},axisTitleText:{valType:"boolean",dflt:!1},colorbarPosition:{valType:"boolean",dflt:!1},colorbarTitleText:{valType:"boolean",dflt:!1},legendPosition:{valType:"boolean",dflt:!1},legendText:{valType:"boolean",dflt:!1},shapePosition:{valType:"boolean",dflt:!1},titleText:{valType:"boolean",dflt:!1}},editSelection:{valType:"boolean",dflt:!0},autosizable:{valType:"boolean",dflt:!1},responsive:{valType:"boolean",dflt:!1},fillFrame:{valType:"boolean",dflt:!1},frameMargins:{valType:"number",dflt:0,min:0,max:.5},scrollZoom:{valType:"flaglist",flags:["cartesian","gl3d","geo","mapbox","map"],extras:[!0,!1],dflt:"gl3d+geo+map"},doubleClick:{valType:"enumerated",values:[!1,"reset","autosize","reset+autosize"],dflt:"reset+autosize"},doubleClickDelay:{valType:"number",dflt:300,min:0},showAxisDragHandles:{valType:"boolean",dflt:!0},showAxisRangeEntryBoxes:{valType:"boolean",dflt:!0},showTips:{valType:"boolean",dflt:!0},showLink:{valType:"boolean",dflt:!1},linkText:{valType:"string",dflt:"Edit chart",noBlank:!0},sendData:{valType:"boolean",dflt:!0},showSources:{valType:"any",dflt:!1},displayModeBar:{valType:"enumerated",values:["hover",!0,!1],dflt:"hover"},showSendToCloud:{valType:"boolean",dflt:!1},showEditInChartStudio:{valType:"boolean",dflt:!1},modeBarButtonsToRemove:{valType:"any",dflt:[]},modeBarButtonsToAdd:{valType:"any",dflt:[]},modeBarButtons:{valType:"any",dflt:!1},toImageButtonOptions:{valType:"any",dflt:{}},displaylogo:{valType:"boolean",dflt:!0},watermark:{valType:"boolean",dflt:!1},plotGlPixelRatio:{valType:"number",dflt:2,min:1,max:4},setBackground:{valType:"any",dflt:"transparent"},topojsonURL:{valType:"string",noBlank:!0,dflt:"https://cdn.plot.ly/"},mapboxAccessToken:{valType:"string",dflt:null},logging:{valType:"integer",min:0,max:2,dflt:1},notifyOnLogging:{valType:"integer",min:0,max:2,dflt:0},queueLength:{valType:"integer",min:0,dflt:0},locale:{valType:"string",dflt:"en-US"},locales:{valType:"any",dflt:{}}},x={};function A(E,e){for(var t in E){var r=E[t];r.valType?e[t]=r.dflt:(e[t]||(e[t]={}),A(r,e[t]))}}A(d,x),G.exports={configAttributes:d,dfltConfig:x}}}),ub=He({"src/lib/notifier.js"(Y,G){var d=Kn(),x=Mi(),A=[];G.exports=function(E,e){if(A.indexOf(E)!==-1)return;A.push(E);var t=1e3;x(e)?t=e:e==="long"&&(t=3e3);var r=d.select("body").selectAll(".plotly-notifier").data([0]);r.enter().append("div").classed("plotly-notifier",!0);var o=r.selectAll(".notifier-note").data(A);function a(i){i.duration(700).style("opacity",0).each("end",function(n){var s=A.indexOf(n);s!==-1&&A.splice(s,1),d.select(this).remove()})}o.enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(i){var n=d.select(this);n.append("button").classed("notifier-close",!0).html("×").on("click",function(){n.transition().call(a)});for(var s=n.append("p"),c=i.split(/<br\s*\/?>/g),f=0;f<c.length;f++)f&&s.append("br"),s.append("span").text(c[f]);e==="stick"?n.transition().duration(350).style("opacity",1):n.transition().duration(700).style("opacity",1).transition().delay(t).call(a)})}}}),Gd=He({"src/lib/loggers.js"(Y,G){var d=Lp().dfltConfig,x=ub(),A=G.exports={};A.log=function(){var E;if(d.logging>1){var e=["LOG:"];for(E=0;E<arguments.length;E++)e.push(arguments[E]);console.trace.apply(console,e)}if(d.notifyOnLogging>1){var t=[];for(E=0;E<arguments.length;E++)t.push(arguments[E]);x(t.join("<br>"),"long")}},A.warn=function(){var E;if(d.logging>0){var e=["WARN:"];for(E=0;E<arguments.length;E++)e.push(arguments[E]);console.trace.apply(console,e)}if(d.notifyOnLogging>0){var t=[];for(E=0;E<arguments.length;E++)t.push(arguments[E]);x(t.join("<br>"),"stick")}},A.error=function(){var E;if(d.logging>0){var e=["ERROR:"];for(E=0;E<arguments.length;E++)e.push(arguments[E]);console.error.apply(console,e)}if(d.notifyOnLogging>0){var t=[];for(E=0;E<arguments.length;E++)t.push(arguments[E]);x(t.join("<br>"),"stick")}}}}),Jm=He({"src/lib/noop.js"(Y,G){G.exports=function(){}}}),cb=He({"src/lib/push_unique.js"(Y,G){G.exports=function(x,A){if(A instanceof RegExp){for(var E=A.toString(),e=0;e<x.length;e++)if(x[e]instanceof RegExp&&x[e].toString()===E)return x;x.push(A)}else(A||A===0)&&x.indexOf(A)===-1&&x.push(A);return x}}}),oS=He({"node_modules/gl-mat4/create.js"(Y,G){G.exports=d;function d(){var x=new Float32Array(16);return x[0]=1,x[1]=0,x[2]=0,x[3]=0,x[4]=0,x[5]=1,x[6]=0,x[7]=0,x[8]=0,x[9]=0,x[10]=1,x[11]=0,x[12]=0,x[13]=0,x[14]=0,x[15]=1,x}}}),sS=He({"node_modules/gl-mat4/clone.js"(Y,G){G.exports=d;function d(x){var A=new Float32Array(16);return A[0]=x[0],A[1]=x[1],A[2]=x[2],A[3]=x[3],A[4]=x[4],A[5]=x[5],A[6]=x[6],A[7]=x[7],A[8]=x[8],A[9]=x[9],A[10]=x[10],A[11]=x[11],A[12]=x[12],A[13]=x[13],A[14]=x[14],A[15]=x[15],A}}}),lS=He({"node_modules/gl-mat4/copy.js"(Y,G){G.exports=d;function d(x,A){return x[0]=A[0],x[1]=A[1],x[2]=A[2],x[3]=A[3],x[4]=A[4],x[5]=A[5],x[6]=A[6],x[7]=A[7],x[8]=A[8],x[9]=A[9],x[10]=A[10],x[11]=A[11],x[12]=A[12],x[13]=A[13],x[14]=A[14],x[15]=A[15],x}}}),fb=He({"node_modules/gl-mat4/identity.js"(Y,G){G.exports=d;function d(x){return x[0]=1,x[1]=0,x[2]=0,x[3]=0,x[4]=0,x[5]=1,x[6]=0,x[7]=0,x[8]=0,x[9]=0,x[10]=1,x[11]=0,x[12]=0,x[13]=0,x[14]=0,x[15]=1,x}}}),uS=He({"node_modules/gl-mat4/transpose.js"(Y,G){G.exports=d;function d(x,A){if(x===A){var E=A[1],e=A[2],t=A[3],r=A[6],o=A[7],a=A[11];x[1]=A[4],x[2]=A[8],x[3]=A[12],x[4]=E,x[6]=A[9],x[7]=A[13],x[8]=e,x[9]=r,x[11]=A[14],x[12]=t,x[13]=o,x[14]=a}else x[0]=A[0],x[1]=A[4],x[2]=A[8],x[3]=A[12],x[4]=A[1],x[5]=A[5],x[6]=A[9],x[7]=A[13],x[8]=A[2],x[9]=A[6],x[10]=A[10],x[11]=A[14],x[12]=A[3],x[13]=A[7],x[14]=A[11],x[15]=A[15];return x}}}),cS=He({"node_modules/gl-mat4/invert.js"(Y,G){G.exports=d;function d(x,A){var E=A[0],e=A[1],t=A[2],r=A[3],o=A[4],a=A[5],i=A[6],n=A[7],s=A[8],c=A[9],f=A[10],v=A[11],h=A[12],T=A[13],l=A[14],y=A[15],b=E*a-e*o,S=E*i-t*o,M=E*n-r*o,_=e*i-t*a,w=e*n-r*a,p=t*n-r*i,u=s*T-c*h,g=s*l-f*h,m=s*y-v*h,R=c*l-f*T,P=c*y-v*T,z=f*y-v*l,F=b*z-S*P+M*R+_*m-w*g+p*u;return F?(F=1/F,x[0]=(a*z-i*P+n*R)*F,x[1]=(t*P-e*z-r*R)*F,x[2]=(T*p-l*w+y*_)*F,x[3]=(f*w-c*p-v*_)*F,x[4]=(i*m-o*z-n*g)*F,x[5]=(E*z-t*m+r*g)*F,x[6]=(l*M-h*p-y*S)*F,x[7]=(s*p-f*M+v*S)*F,x[8]=(o*P-a*m+n*u)*F,x[9]=(e*m-E*P-r*u)*F,x[10]=(h*w-T*M+y*b)*F,x[11]=(c*M-s*w-v*b)*F,x[12]=(a*g-o*R-i*u)*F,x[13]=(E*R-e*g+t*u)*F,x[14]=(T*S-h*_-l*b)*F,x[15]=(s*_-c*S+f*b)*F,x):null}}}),fS=He({"node_modules/gl-mat4/adjoint.js"(Y,G){G.exports=d;function d(x,A){var E=A[0],e=A[1],t=A[2],r=A[3],o=A[4],a=A[5],i=A[6],n=A[7],s=A[8],c=A[9],f=A[10],v=A[11],h=A[12],T=A[13],l=A[14],y=A[15];return x[0]=a*(f*y-v*l)-c*(i*y-n*l)+T*(i*v-n*f),x[1]=-(e*(f*y-v*l)-c*(t*y-r*l)+T*(t*v-r*f)),x[2]=e*(i*y-n*l)-a*(t*y-r*l)+T*(t*n-r*i),x[3]=-(e*(i*v-n*f)-a*(t*v-r*f)+c*(t*n-r*i)),x[4]=-(o*(f*y-v*l)-s*(i*y-n*l)+h*(i*v-n*f)),x[5]=E*(f*y-v*l)-s*(t*y-r*l)+h*(t*v-r*f),x[6]=-(E*(i*y-n*l)-o*(t*y-r*l)+h*(t*n-r*i)),x[7]=E*(i*v-n*f)-o*(t*v-r*f)+s*(t*n-r*i),x[8]=o*(c*y-v*T)-s*(a*y-n*T)+h*(a*v-n*c),x[9]=-(E*(c*y-v*T)-s*(e*y-r*T)+h*(e*v-r*c)),x[10]=E*(a*y-n*T)-o*(e*y-r*T)+h*(e*n-r*a),x[11]=-(E*(a*v-n*c)-o*(e*v-r*c)+s*(e*n-r*a)),x[12]=-(o*(c*l-f*T)-s*(a*l-i*T)+h*(a*f-i*c)),x[13]=E*(c*l-f*T)-s*(e*l-t*T)+h*(e*f-t*c),x[14]=-(E*(a*l-i*T)-o*(e*l-t*T)+h*(e*i-t*a)),x[15]=E*(a*f-i*c)-o*(e*f-t*c)+s*(e*i-t*a),x}}}),hS=He({"node_modules/gl-mat4/determinant.js"(Y,G){G.exports=d;function d(x){var A=x[0],E=x[1],e=x[2],t=x[3],r=x[4],o=x[5],a=x[6],i=x[7],n=x[8],s=x[9],c=x[10],f=x[11],v=x[12],h=x[13],T=x[14],l=x[15],y=A*o-E*r,b=A*a-e*r,S=A*i-t*r,M=E*a-e*o,_=E*i-t*o,w=e*i-t*a,p=n*h-s*v,u=n*T-c*v,g=n*l-f*v,m=s*T-c*h,R=s*l-f*h,P=c*l-f*T;return y*P-b*R+S*m+M*g-_*u+w*p}}}),vS=He({"node_modules/gl-mat4/multiply.js"(Y,G){G.exports=d;function d(x,A,E){var e=A[0],t=A[1],r=A[2],o=A[3],a=A[4],i=A[5],n=A[6],s=A[7],c=A[8],f=A[9],v=A[10],h=A[11],T=A[12],l=A[13],y=A[14],b=A[15],S=E[0],M=E[1],_=E[2],w=E[3];return x[0]=S*e+M*a+_*c+w*T,x[1]=S*t+M*i+_*f+w*l,x[2]=S*r+M*n+_*v+w*y,x[3]=S*o+M*s+_*h+w*b,S=E[4],M=E[5],_=E[6],w=E[7],x[4]=S*e+M*a+_*c+w*T,x[5]=S*t+M*i+_*f+w*l,x[6]=S*r+M*n+_*v+w*y,x[7]=S*o+M*s+_*h+w*b,S=E[8],M=E[9],_=E[10],w=E[11],x[8]=S*e+M*a+_*c+w*T,x[9]=S*t+M*i+_*f+w*l,x[10]=S*r+M*n+_*v+w*y,x[11]=S*o+M*s+_*h+w*b,S=E[12],M=E[13],_=E[14],w=E[15],x[12]=S*e+M*a+_*c+w*T,x[13]=S*t+M*i+_*f+w*l,x[14]=S*r+M*n+_*v+w*y,x[15]=S*o+M*s+_*h+w*b,x}}}),dS=He({"node_modules/gl-mat4/translate.js"(Y,G){G.exports=d;function d(x,A,E){var e=E[0],t=E[1],r=E[2],o,a,i,n,s,c,f,v,h,T,l,y;return A===x?(x[12]=A[0]*e+A[4]*t+A[8]*r+A[12],x[13]=A[1]*e+A[5]*t+A[9]*r+A[13],x[14]=A[2]*e+A[6]*t+A[10]*r+A[14],x[15]=A[3]*e+A[7]*t+A[11]*r+A[15]):(o=A[0],a=A[1],i=A[2],n=A[3],s=A[4],c=A[5],f=A[6],v=A[7],h=A[8],T=A[9],l=A[10],y=A[11],x[0]=o,x[1]=a,x[2]=i,x[3]=n,x[4]=s,x[5]=c,x[6]=f,x[7]=v,x[8]=h,x[9]=T,x[10]=l,x[11]=y,x[12]=o*e+s*t+h*r+A[12],x[13]=a*e+c*t+T*r+A[13],x[14]=i*e+f*t+l*r+A[14],x[15]=n*e+v*t+y*r+A[15]),x}}}),pS=He({"node_modules/gl-mat4/scale.js"(Y,G){G.exports=d;function d(x,A,E){var e=E[0],t=E[1],r=E[2];return x[0]=A[0]*e,x[1]=A[1]*e,x[2]=A[2]*e,x[3]=A[3]*e,x[4]=A[4]*t,x[5]=A[5]*t,x[6]=A[6]*t,x[7]=A[7]*t,x[8]=A[8]*r,x[9]=A[9]*r,x[10]=A[10]*r,x[11]=A[11]*r,x[12]=A[12],x[13]=A[13],x[14]=A[14],x[15]=A[15],x}}}),gS=He({"node_modules/gl-mat4/rotate.js"(Y,G){G.exports=d;function d(x,A,E,e){var t=e[0],r=e[1],o=e[2],a=Math.sqrt(t*t+r*r+o*o),i,n,s,c,f,v,h,T,l,y,b,S,M,_,w,p,u,g,m,R,P,z,F,B;return Math.abs(a)<1e-6?null:(a=1/a,t*=a,r*=a,o*=a,i=Math.sin(E),n=Math.cos(E),s=1-n,c=A[0],f=A[1],v=A[2],h=A[3],T=A[4],l=A[5],y=A[6],b=A[7],S=A[8],M=A[9],_=A[10],w=A[11],p=t*t*s+n,u=r*t*s+o*i,g=o*t*s-r*i,m=t*r*s-o*i,R=r*r*s+n,P=o*r*s+t*i,z=t*o*s+r*i,F=r*o*s-t*i,B=o*o*s+n,x[0]=c*p+T*u+S*g,x[1]=f*p+l*u+M*g,x[2]=v*p+y*u+_*g,x[3]=h*p+b*u+w*g,x[4]=c*m+T*R+S*P,x[5]=f*m+l*R+M*P,x[6]=v*m+y*R+_*P,x[7]=h*m+b*R+w*P,x[8]=c*z+T*F+S*B,x[9]=f*z+l*F+M*B,x[10]=v*z+y*F+_*B,x[11]=h*z+b*F+w*B,A!==x&&(x[12]=A[12],x[13]=A[13],x[14]=A[14],x[15]=A[15]),x)}}}),yS=He({"node_modules/gl-mat4/rotateX.js"(Y,G){G.exports=d;function d(x,A,E){var e=Math.sin(E),t=Math.cos(E),r=A[4],o=A[5],a=A[6],i=A[7],n=A[8],s=A[9],c=A[10],f=A[11];return A!==x&&(x[0]=A[0],x[1]=A[1],x[2]=A[2],x[3]=A[3],x[12]=A[12],x[13]=A[13],x[14]=A[14],x[15]=A[15]),x[4]=r*t+n*e,x[5]=o*t+s*e,x[6]=a*t+c*e,x[7]=i*t+f*e,x[8]=n*t-r*e,x[9]=s*t-o*e,x[10]=c*t-a*e,x[11]=f*t-i*e,x}}}),mS=He({"node_modules/gl-mat4/rotateY.js"(Y,G){G.exports=d;function d(x,A,E){var e=Math.sin(E),t=Math.cos(E),r=A[0],o=A[1],a=A[2],i=A[3],n=A[8],s=A[9],c=A[10],f=A[11];return A!==x&&(x[4]=A[4],x[5]=A[5],x[6]=A[6],x[7]=A[7],x[12]=A[12],x[13]=A[13],x[14]=A[14],x[15]=A[15]),x[0]=r*t-n*e,x[1]=o*t-s*e,x[2]=a*t-c*e,x[3]=i*t-f*e,x[8]=r*e+n*t,x[9]=o*e+s*t,x[10]=a*e+c*t,x[11]=i*e+f*t,x}}}),_S=He({"node_modules/gl-mat4/rotateZ.js"(Y,G){G.exports=d;function d(x,A,E){var e=Math.sin(E),t=Math.cos(E),r=A[0],o=A[1],a=A[2],i=A[3],n=A[4],s=A[5],c=A[6],f=A[7];return A!==x&&(x[8]=A[8],x[9]=A[9],x[10]=A[10],x[11]=A[11],x[12]=A[12],x[13]=A[13],x[14]=A[14],x[15]=A[15]),x[0]=r*t+n*e,x[1]=o*t+s*e,x[2]=a*t+c*e,x[3]=i*t+f*e,x[4]=n*t-r*e,x[5]=s*t-o*e,x[6]=c*t-a*e,x[7]=f*t-i*e,x}}}),xS=He({"node_modules/gl-mat4/fromRotation.js"(Y,G){G.exports=d;function d(x,A,E){var e,t,r,o=E[0],a=E[1],i=E[2],n=Math.sqrt(o*o+a*a+i*i);return Math.abs(n)<1e-6?null:(n=1/n,o*=n,a*=n,i*=n,e=Math.sin(A),t=Math.cos(A),r=1-t,x[0]=o*o*r+t,x[1]=a*o*r+i*e,x[2]=i*o*r-a*e,x[3]=0,x[4]=o*a*r-i*e,x[5]=a*a*r+t,x[6]=i*a*r+o*e,x[7]=0,x[8]=o*i*r+a*e,x[9]=a*i*r-o*e,x[10]=i*i*r+t,x[11]=0,x[12]=0,x[13]=0,x[14]=0,x[15]=1,x)}}}),bS=He({"node_modules/gl-mat4/fromRotationTranslation.js"(Y,G){G.exports=d;function d(x,A,E){var e=A[0],t=A[1],r=A[2],o=A[3],a=e+e,i=t+t,n=r+r,s=e*a,c=e*i,f=e*n,v=t*i,h=t*n,T=r*n,l=o*a,y=o*i,b=o*n;return x[0]=1-(v+T),x[1]=c+b,x[2]=f-y,x[3]=0,x[4]=c-b,x[5]=1-(s+T),x[6]=h+l,x[7]=0,x[8]=f+y,x[9]=h-l,x[10]=1-(s+v),x[11]=0,x[12]=E[0],x[13]=E[1],x[14]=E[2],x[15]=1,x}}}),wS=He({"node_modules/gl-mat4/fromScaling.js"(Y,G){G.exports=d;function d(x,A){return x[0]=A[0],x[1]=0,x[2]=0,x[3]=0,x[4]=0,x[5]=A[1],x[6]=0,x[7]=0,x[8]=0,x[9]=0,x[10]=A[2],x[11]=0,x[12]=0,x[13]=0,x[14]=0,x[15]=1,x}}}),TS=He({"node_modules/gl-mat4/fromTranslation.js"(Y,G){G.exports=d;function d(x,A){return x[0]=1,x[1]=0,x[2]=0,x[3]=0,x[4]=0,x[5]=1,x[6]=0,x[7]=0,x[8]=0,x[9]=0,x[10]=1,x[11]=0,x[12]=A[0],x[13]=A[1],x[14]=A[2],x[15]=1,x}}}),AS=He({"node_modules/gl-mat4/fromXRotation.js"(Y,G){G.exports=d;function d(x,A){var E=Math.sin(A),e=Math.cos(A);return x[0]=1,x[1]=0,x[2]=0,x[3]=0,x[4]=0,x[5]=e,x[6]=E,x[7]=0,x[8]=0,x[9]=-E,x[10]=e,x[11]=0,x[12]=0,x[13]=0,x[14]=0,x[15]=1,x}}}),SS=He({"node_modules/gl-mat4/fromYRotation.js"(Y,G){G.exports=d;function d(x,A){var E=Math.sin(A),e=Math.cos(A);return x[0]=e,x[1]=0,x[2]=-E,x[3]=0,x[4]=0,x[5]=1,x[6]=0,x[7]=0,x[8]=E,x[9]=0,x[10]=e,x[11]=0,x[12]=0,x[13]=0,x[14]=0,x[15]=1,x}}}),MS=He({"node_modules/gl-mat4/fromZRotation.js"(Y,G){G.exports=d;function d(x,A){var E=Math.sin(A),e=Math.cos(A);return x[0]=e,x[1]=E,x[2]=0,x[3]=0,x[4]=-E,x[5]=e,x[6]=0,x[7]=0,x[8]=0,x[9]=0,x[10]=1,x[11]=0,x[12]=0,x[13]=0,x[14]=0,x[15]=1,x}}}),hb=He({"node_modules/gl-mat4/fromQuat.js"(Y,G){G.exports=d;function d(x,A){var E=A[0],e=A[1],t=A[2],r=A[3],o=E+E,a=e+e,i=t+t,n=E*o,s=e*o,c=e*a,f=t*o,v=t*a,h=t*i,T=r*o,l=r*a,y=r*i;return x[0]=1-c-h,x[1]=s+y,x[2]=f-l,x[3]=0,x[4]=s-y,x[5]=1-n-h,x[6]=v+T,x[7]=0,x[8]=f+l,x[9]=v-T,x[10]=1-n-c,x[11]=0,x[12]=0,x[13]=0,x[14]=0,x[15]=1,x}}}),ES=He({"node_modules/gl-mat4/frustum.js"(Y,G){G.exports=d;function d(x,A,E,e,t,r,o){var a=1/(E-A),i=1/(t-e),n=1/(r-o);return x[0]=r*2*a,x[1]=0,x[2]=0,x[3]=0,x[4]=0,x[5]=r*2*i,x[6]=0,x[7]=0,x[8]=(E+A)*a,x[9]=(t+e)*i,x[10]=(o+r)*n,x[11]=-1,x[12]=0,x[13]=0,x[14]=o*r*2*n,x[15]=0,x}}}),kS=He({"node_modules/gl-mat4/perspective.js"(Y,G){G.exports=d;function d(x,A,E,e,t){var r=1/Math.tan(A/2),o=1/(e-t);return x[0]=r/E,x[1]=0,x[2]=0,x[3]=0,x[4]=0,x[5]=r,x[6]=0,x[7]=0,x[8]=0,x[9]=0,x[10]=(t+e)*o,x[11]=-1,x[12]=0,x[13]=0,x[14]=2*t*e*o,x[15]=0,x}}}),CS=He({"node_modules/gl-mat4/perspectiveFromFieldOfView.js"(Y,G){G.exports=d;function d(x,A,E,e){var t=Math.tan(A.upDegrees*Math.PI/180),r=Math.tan(A.downDegrees*Math.PI/180),o=Math.tan(A.leftDegrees*Math.PI/180),a=Math.tan(A.rightDegrees*Math.PI/180),i=2/(o+a),n=2/(t+r);return x[0]=i,x[1]=0,x[2]=0,x[3]=0,x[4]=0,x[5]=n,x[6]=0,x[7]=0,x[8]=-((o-a)*i*.5),x[9]=(t-r)*n*.5,x[10]=e/(E-e),x[11]=-1,x[12]=0,x[13]=0,x[14]=e*E/(E-e),x[15]=0,x}}}),LS=He({"node_modules/gl-mat4/ortho.js"(Y,G){G.exports=d;function d(x,A,E,e,t,r,o){var a=1/(A-E),i=1/(e-t),n=1/(r-o);return x[0]=-2*a,x[1]=0,x[2]=0,x[3]=0,x[4]=0,x[5]=-2*i,x[6]=0,x[7]=0,x[8]=0,x[9]=0,x[10]=2*n,x[11]=0,x[12]=(A+E)*a,x[13]=(t+e)*i,x[14]=(o+r)*n,x[15]=1,x}}}),PS=He({"node_modules/gl-mat4/lookAt.js"(Y,G){var d=fb();G.exports=x;function x(A,E,e,t){var r,o,a,i,n,s,c,f,v,h,T=E[0],l=E[1],y=E[2],b=t[0],S=t[1],M=t[2],_=e[0],w=e[1],p=e[2];return Math.abs(T-_)<1e-6&&Math.abs(l-w)<1e-6&&Math.abs(y-p)<1e-6?d(A):(c=T-_,f=l-w,v=y-p,h=1/Math.sqrt(c*c+f*f+v*v),c*=h,f*=h,v*=h,r=S*v-M*f,o=M*c-b*v,a=b*f-S*c,h=Math.sqrt(r*r+o*o+a*a),h?(h=1/h,r*=h,o*=h,a*=h):(r=0,o=0,a=0),i=f*a-v*o,n=v*r-c*a,s=c*o-f*r,h=Math.sqrt(i*i+n*n+s*s),h?(h=1/h,i*=h,n*=h,s*=h):(i=0,n=0,s=0),A[0]=r,A[1]=i,A[2]=c,A[3]=0,A[4]=o,A[5]=n,A[6]=f,A[7]=0,A[8]=a,A[9]=s,A[10]=v,A[11]=0,A[12]=-(r*T+o*l+a*y),A[13]=-(i*T+n*l+s*y),A[14]=-(c*T+f*l+v*y),A[15]=1,A)}}}),IS=He({"node_modules/gl-mat4/str.js"(Y,G){G.exports=d;function d(x){return"mat4("+x[0]+", "+x[1]+", "+x[2]+", "+x[3]+", "+x[4]+", "+x[5]+", "+x[6]+", "+x[7]+", "+x[8]+", "+x[9]+", "+x[10]+", "+x[11]+", "+x[12]+", "+x[13]+", "+x[14]+", "+x[15]+")"}}}),vb=He({"node_modules/gl-mat4/index.js"(Y,G){G.exports={create:oS(),clone:sS(),copy:lS(),identity:fb(),transpose:uS(),invert:cS(),adjoint:fS(),determinant:hS(),multiply:vS(),translate:dS(),scale:pS(),rotate:gS(),rotateX:yS(),rotateY:mS(),rotateZ:_S(),fromRotation:xS(),fromRotationTranslation:bS(),fromScaling:wS(),fromTranslation:TS(),fromXRotation:AS(),fromYRotation:SS(),fromZRotation:MS(),fromQuat:hb(),frustum:ES(),perspective:kS(),perspectiveFromFieldOfView:CS(),ortho:LS(),lookAt:PS(),str:IS()}}}),$m=He({"src/lib/matrix.js"(Y){var G=vb();Y.init2dArray=function(d,x){for(var A=new Array(d),E=0;E<d;E++)A[E]=new Array(x);return A},Y.transposeRagged=function(d){var x=0,A=d.length,E,e;for(E=0;E<A;E++)x=Math.max(x,d[E].length);var t=new Array(x);for(E=0;E<x;E++)for(t[E]=new Array(A),e=0;e<A;e++)t[E][e]=d[e][E];return t},Y.dot=function(d,x){if(!(d.length&&x.length)||d.length!==x.length)return null;var A=d.length,E,e;if(d[0].length)for(E=new Array(A),e=0;e<A;e++)E[e]=Y.dot(d[e],x);else if(x[0].length){var t=Y.transposeRagged(x);for(E=new Array(t.length),e=0;e<t.length;e++)E[e]=Y.dot(d,t[e])}else for(E=0,e=0;e<A;e++)E+=d[e]*x[e];return E},Y.translationMatrix=function(d,x){return[[1,0,d],[0,1,x],[0,0,1]]},Y.rotationMatrix=function(d){var x=d*Math.PI/180;return[[Math.cos(x),-Math.sin(x),0],[Math.sin(x),Math.cos(x),0],[0,0,1]]},Y.rotationXYMatrix=function(d,x,A){return Y.dot(Y.dot(Y.translationMatrix(x,A),Y.rotationMatrix(d)),Y.translationMatrix(-x,-A))},Y.apply3DTransform=function(d){return function(){var x=arguments,A=arguments.length===1?x[0]:[x[0],x[1],x[2]||0];return Y.dot(d,[A[0],A[1],A[2],1]).slice(0,3)}},Y.apply2DTransform=function(d){return function(){var x=arguments;x.length===3&&(x=x[0]);var A=arguments.length===1?x[0]:[x[0],x[1]];return Y.dot(d,[A[0],A[1],1]).slice(0,2)}},Y.apply2DTransform2=function(d){var x=Y.apply2DTransform(d);return function(A){return x(A.slice(0,2)).concat(x(A.slice(2,4)))}},Y.convertCssMatrix=function(d){if(d){var x=d.length;if(x===16)return d;if(x===6)return[d[0],d[1],0,0,d[2],d[3],0,0,0,0,1,0,d[4],d[5],0,1]}return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]},Y.inverseTransformMatrix=function(d){var x=[];return G.invert(x,d),[[x[0],x[1],x[2],x[3]],[x[4],x[5],x[6],x[7]],[x[8],x[9],x[10],x[11]],[x[12],x[13],x[14],x[15]]]}}}),Yg=He({"src/lib/dom.js"(Y,G){var d=Kn(),x=Gd(),A=$m(),E=vb();function e(T){var l;if(typeof T=="string"){if(l=document.getElementById(T),l===null)throw new Error("No DOM element with id '"+T+"' exists on the page.");return l}else if(T==null)throw new Error("DOM element provided is null or undefined");return T}function t(T){var l=d.select(T);return l.node()instanceof HTMLElement&&l.size()&&l.classed("js-plotly-plot")}function r(T){var l=T&&T.parentNode;l&&l.removeChild(T)}function o(T,l){a("global",T,l)}function a(T,l,y){var b="plotly.js-style-"+T,S=document.getElementById(b);if(!(S&&S.matches(".no-inline-styles"))){S||(S=document.createElement("style"),S.setAttribute("id",b),S.appendChild(document.createTextNode("")),document.head.appendChild(S));var M=S.sheet;M?M.insertRule?M.insertRule(l+"{"+y+"}",0):M.addRule?M.addRule(l,y,0):x.warn("addStyleRule failed"):x.warn("Cannot addRelatedStyleRule, probably due to strict CSP...")}}function i(T){var l="plotly.js-style-"+T,y=document.getElementById(l);y&&r(y)}function n(T,l,y,b,S,M){var _=b.split(":"),w=S.split(":"),p="data-btn-style-event-added";M||(M=document),M.querySelectorAll(T).forEach(function(u){u.getAttribute(p)||(u.addEventListener("mouseenter",function(){var g=this.querySelector(y);g&&(g.style[_[0]]=_[1])}),u.addEventListener("mouseleave",function(){var g=this.querySelector(y);g&&(l&&this.matches(l)?g.style[_[0]]=_[1]:g.style[w[0]]=w[1])}),u.setAttribute(p,!0))})}function s(T){var l=f(T),y=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return l.forEach(function(b){var S=c(b);if(S){var M=A.convertCssMatrix(S);y=E.multiply(y,y,M)}}),y}function c(T){var l=window.getComputedStyle(T,null),y=l.getPropertyValue("-webkit-transform")||l.getPropertyValue("-moz-transform")||l.getPropertyValue("-ms-transform")||l.getPropertyValue("-o-transform")||l.getPropertyValue("transform");return y==="none"?null:y.replace("matrix","").replace("3d","").slice(1,-1).split(",").map(function(b){return+b})}function f(T){for(var l=[];v(T);)l.push(T),T=T.parentNode,typeof ShadowRoot=="function"&&T instanceof ShadowRoot&&(T=T.host);return l}function v(T){return T&&(T instanceof Element||T instanceof HTMLElement)}function h(T,l){return T&&l&&T.top===l.top&&T.left===l.left&&T.right===l.right&&T.bottom===l.bottom}G.exports={getGraphDiv:e,isPlotDiv:t,removeElement:r,addStyleRule:o,addRelatedStyleRule:a,deleteRelatedStyleRule:i,setStyleOnHover:n,getFullTransformMatrix:s,getElementTransformMatrix:c,getElementAndAncestors:f,equalDomRects:h}}}),Kg=He({"src/plots/animation_attributes.js"(Y,G){G.exports={mode:{valType:"enumerated",dflt:"afterall",values:["immediate","next","afterall"]},direction:{valType:"enumerated",values:["forward","reverse"],dflt:"forward"},fromcurrent:{valType:"boolean",dflt:!1},frame:{duration:{valType:"number",min:0,dflt:500},redraw:{valType:"boolean",dflt:!0}},transition:{duration:{valType:"number",min:0,dflt:500,editType:"none"},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"},ordering:{valType:"enumerated",values:["layout first","traces first"],dflt:"layout first",editType:"none"}}}}}),xu=He({"src/plot_api/edit_types.js"(Y,G){var d=po().extendFlat,x=tv(),A={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},E={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},e=A.flags.slice().concat(["fullReplot"]),t=E.flags.slice().concat("layoutReplot");G.exports={traces:A,layout:E,traceFlags:function(){return r(e)},layoutFlags:function(){return r(t)},update:function(i,n){var s=n.editType;if(s&&s!=="none")for(var c=s.split("+"),f=0;f<c.length;f++)i[c[f]]=!0},overrideAll:o};function r(i){for(var n={},s=0;s<i.length;s++)n[i[s]]=!1;return n}function o(i,n,s){var c=d({},i);for(var f in c){var v=c[f];x(v)&&(c[f]=a(v,n,s,f))}return s==="from-root"&&(c.editType=n),c}function a(i,n,s,c){if(i.valType){var f=d({},i);if(f.editType=n,Array.isArray(i.items)){f.items=new Array(i.items.length);for(var v=0;v<i.items.length;v++)f.items[v]=a(i.items[v],n)}return f}else return o(i,n,c.charAt(0)==="_"?"nested":"from-root")}}}),Qf=He({"src/components/drawing/attributes.js"(Y){Y.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"},Y.pattern={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},fillmode:{valType:"enumerated",values:["replace","overlay"],dflt:"replace",editType:"style"},bgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgopacity:{valType:"number",editType:"style",min:0,max:1},size:{valType:"number",min:0,dflt:8,arrayOk:!0,editType:"style"},solidity:{valType:"number",min:0,max:1,dflt:.3,arrayOk:!0,editType:"style"},editType:"style"}}}),db=He({"src/constants/docs.js"(Y,G){G.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"}}}),Qo=He({"src/plots/template_attributes.js"(Y){var G=db();G.FORMAT_LINK,G.DATE_FORMAT_LINK;function d(x){var A=x.description?" "+x.description:"",E=x.keys||[];if(E.length>0){for(var e=[],t=0;t<E.length;t++)e[t]="`"+E[t]+"`";A=A+"Finally, the template string has access to ",E.length===1?A=A+"variable "+e[0]:A=A+"variables "+e.slice(0,-1).join(", ")+" and "+e.slice(-1)+"."}return A}Y.hovertemplateAttrs=function(x,A){x=x||{},A=A||{},d(A);var E={valType:"string",dflt:"",editType:x.editType||"none"};return x.arrayOk!==!1&&(E.arrayOk=!0),E},Y.texttemplateAttrs=function(x,A){x=x||{},A=A||{},d(A);var E={valType:"string",dflt:"",editType:x.editType||"calc"};return x.arrayOk!==!1&&(E.arrayOk=!0),E},Y.shapeTexttemplateAttrs=function(x,A){x=x||{},A=A||{},x.newshape,d(A);var E={valType:"string",dflt:"",editType:x.editType||"arraydraw"};return E}}}),Qm=He({"src/components/shapes/label_texttemplate.js"(Y,G){function d(y,b){return b?b.d2l(y):y}function x(y,b){return b?b.l2d(y):y}function A(y){return y.x0}function E(y){return y.x1}function e(y){return y.y0}function t(y){return y.y1}function r(y){return y.x0shift||0}function o(y){return y.x1shift||0}function a(y){return y.y0shift||0}function i(y){return y.y1shift||0}function n(y,b){return d(y.x1,b)+o(y)-d(y.x0,b)-r(y)}function s(y,b,S){return d(y.y1,S)+i(y)-d(y.y0,S)-a(y)}function c(y,b){return Math.abs(n(y,b))}function f(y,b,S){return Math.abs(s(y,b,S))}function v(y,b,S){return y.type!=="line"?void 0:Math.sqrt(Math.pow(n(y,b),2)+Math.pow(s(y,b,S),2))}function h(y,b){return x((d(y.x1,b)+o(y)+d(y.x0,b)+r(y))/2,b)}function T(y,b,S){return x((d(y.y1,S)+i(y)+d(y.y0,S)+a(y))/2,S)}function l(y,b,S){return y.type!=="line"?void 0:s(y,b,S)/n(y,b)}G.exports={x0:A,x1:E,y0:e,y1:t,slope:l,dx:n,dy:s,width:c,height:f,length:v,xcenter:h,ycenter:T}}}),RS=He({"src/components/shapes/draw_newshape/attributes.js"(Y,G){var d=xu().overrideAll,x=pl(),A=au(),E=Qf().dash,e=po().extendFlat,t=Qo().shapeTexttemplateAttrs,r=Qm();G.exports=d({newshape:{visible:e({},x.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:e({},x.legend,{}),legendgroup:e({},x.legendgroup,{}),legendgrouptitle:{text:e({},x.legendgrouptitle.text,{}),font:A({})},legendrank:e({},x.legendrank,{}),legendwidth:e({},x.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:e({},E,{dflt:"solid"})},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd"},opacity:{valType:"number",min:0,max:1,dflt:1},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above"},drawdirection:{valType:"enumerated",values:["ortho","horizontal","vertical","diagonal"],dflt:"diagonal"},name:e({},x.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:t({newshape:!0},{keys:Object.keys(r)}),font:A({}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"]},textangle:{valType:"angle",dflt:"auto"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},padding:{valType:"number",dflt:3,min:0}}},activeshape:{fillcolor:{valType:"color",dflt:"rgb(255,0,255)"},opacity:{valType:"number",min:0,max:1,dflt:.5}}},"none","from-root")}}),DS=He({"src/components/selections/draw_newselection/attributes.js"(Y,G){var d=Qf().dash,x=po().extendFlat;G.exports={newselection:{mode:{valType:"enumerated",values:["immediate","gradual"],dflt:"immediate",editType:"none"},line:{color:{valType:"color",editType:"none"},width:{valType:"number",min:1,dflt:1,editType:"none"},dash:x({},d,{dflt:"dot",editType:"none"}),editType:"none"},editType:"none"},activeselection:{fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"none"},opacity:{valType:"number",min:0,max:1,dflt:.5,editType:"none"},editType:"none"}}}}),e1=He({"src/plots/pad_attributes.js"(Y,G){G.exports=function(d){var x=d.editType;return{t:{valType:"number",dflt:0,editType:x},r:{valType:"number",dflt:0,editType:x},b:{valType:"number",dflt:0,editType:x},l:{valType:"number",dflt:0,editType:x},editType:x}}}}),F0=He({"src/plots/layout_attributes.js"(Y,G){var d=au(),x=Kg(),A=cf(),E=RS(),e=DS(),t=e1(),r=po().extendFlat,o=d({editType:"calc"});o.family.dflt='"Open Sans", verdana, arial, sans-serif',o.size.dflt=12,o.color.dflt=A.defaultLine,G.exports={font:o,title:{text:{valType:"string",editType:"layoutstyle"},font:d({editType:"layoutstyle"}),subtitle:{text:{valType:"string",editType:"layoutstyle"},font:d({editType:"layoutstyle"}),editType:"layoutstyle"},xref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},yref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},x:{valType:"number",min:0,max:1,dflt:.5,editType:"layoutstyle"},y:{valType:"number",min:0,max:1,dflt:"auto",editType:"layoutstyle"},xanchor:{valType:"enumerated",dflt:"auto",values:["auto","left","center","right"],editType:"layoutstyle"},yanchor:{valType:"enumerated",dflt:"auto",values:["auto","top","middle","bottom"],editType:"layoutstyle"},pad:r(t({editType:"layoutstyle"}),{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},editType:"layoutstyle"},uniformtext:{mode:{valType:"enumerated",values:[!1,"hide","show"],dflt:!1,editType:"plot"},minsize:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"},autosize:{valType:"boolean",dflt:!1,editType:"none"},width:{valType:"number",min:10,dflt:700,editType:"plot"},height:{valType:"number",min:10,dflt:450,editType:"plot"},minreducedwidth:{valType:"number",min:2,dflt:64,editType:"plot"},minreducedheight:{valType:"number",min:2,dflt:64,editType:"plot"},margin:{l:{valType:"number",min:0,dflt:80,editType:"plot"},r:{valType:"number",min:0,dflt:80,editType:"plot"},t:{valType:"number",min:0,dflt:100,editType:"plot"},b:{valType:"number",min:0,dflt:80,editType:"plot"},pad:{valType:"number",min:0,dflt:0,editType:"plot"},autoexpand:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},computed:{valType:"any",editType:"none"},paper_bgcolor:{valType:"color",dflt:A.background,editType:"plot"},plot_bgcolor:{valType:"color",dflt:A.background,editType:"layoutstyle"},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},separators:{valType:"string",editType:"plot"},hidesources:{valType:"boolean",dflt:!1,editType:"plot"},showlegend:{valType:"boolean",editType:"legend"},colorway:{valType:"colorlist",dflt:A.defaults,editType:"calc"},datarevision:{valType:"any",editType:"calc"},uirevision:{valType:"any",editType:"none"},editrevision:{valType:"any",editType:"none"},selectionrevision:{valType:"any",editType:"none"},template:{valType:"any",editType:"calc"},newshape:E.newshape,activeshape:E.activeshape,newselection:e.newselection,activeselection:e.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:r({},x.transition,{editType:"none"})}}}),zS=Ds({"temp_stylePlugin:node_modules/maplibre-gl/dist/maplibre-gl.css"(){}}),FS=Ds({"stylePlugin:/Users/ekl/code/plotly.js/node_modules/maplibre-gl/dist/maplibre-gl.css"(){zS()}}),Li=He({"src/registry.js"(Y){var G=Gd(),d=Jm(),x=cb(),A=tv(),E=Yg().addStyleRule,e=po(),t=pl(),r=F0(),o=e.extendFlat,a=e.extendDeepAll;Y.modules={},Y.allCategories={},Y.allTypes=[],Y.subplotsRegistry={},Y.componentsRegistry={},Y.layoutArrayContainers=[],Y.layoutArrayRegexes=[],Y.traceLayoutAttributes={},Y.localeRegistry={},Y.apiMethodRegistry={},Y.collectableSubplotTypes=null,Y.register=function(b){if(Y.collectableSubplotTypes=null,b)b&&!Array.isArray(b)&&(b=[b]);else throw new Error("No argument passed to Plotly.register.");for(var S=0;S<b.length;S++){var M=b[S];if(!M)throw new Error("Invalid module was attempted to be registered!");switch(M.moduleType){case"trace":i(M);break;case"transform":c(M);break;case"component":s(M);break;case"locale":f(M);break;case"apiMethod":var _=M.name;Y.apiMethodRegistry[_]=M.fn;break;default:throw new Error("Invalid module was attempted to be registered!")}}},Y.getModule=function(y){var b=Y.modules[l(y)];return b?b._module:!1},Y.traceIs=function(y,b){if(y=l(y),y==="various")return!1;var S=Y.modules[y];return S||(y&&G.log("Unrecognized trace type "+y+"."),S=Y.modules[t.type.dflt]),!!S.categories[b]},Y.getComponentMethod=function(y,b){var S=Y.componentsRegistry[y];return S&&S[b]||d},Y.call=function(){var y=arguments[0],b=[].slice.call(arguments,1);return Y.apiMethodRegistry[y].apply(null,b)};function i(y){var b=y.name,S=y.categories,M=y.meta;if(Y.modules[b]){G.log("Type "+b+" already registered");return}Y.subplotsRegistry[y.basePlotModule.name]||n(y.basePlotModule);for(var _={},w=0;w<S.length;w++)_[S[w]]=!0,Y.allCategories[S[w]]=!0;Y.modules[b]={_module:y,categories:_},M&&Object.keys(M).length&&(Y.modules[b].meta=M),Y.allTypes.push(b);for(var p in Y.componentsRegistry)h(p,b);y.layoutAttributes&&o(Y.traceLayoutAttributes,y.layoutAttributes);var u=y.basePlotModule,g=u.name;if(g==="mapbox"){var m=u.constants.styleRules;for(var R in m)E(".js-plotly-plot .plotly .mapboxgl-"+R,m[R])}g==="map"&&FS(),(g==="geo"||g==="mapbox"||g==="map")&&window.PlotlyGeoAssets===void 0&&(window.PlotlyGeoAssets={topojson:{}})}function n(y){var b=y.name;if(Y.subplotsRegistry[b]){G.log("Plot type "+b+" already registered.");return}v(y),Y.subplotsRegistry[b]=y;for(var S in Y.componentsRegistry)T(S,y.name)}function s(y){if(typeof y.name!="string")throw new Error("Component module *name* must be a string.");var b=y.name;Y.componentsRegistry[b]=y,y.layoutAttributes&&(y.layoutAttributes._isLinkedToArray&&x(Y.layoutArrayContainers,b),v(y));for(var S in Y.modules)h(b,S);for(var M in Y.subplotsRegistry)T(b,M);y.schema&&y.schema.layout&&a(r,y.schema.layout)}function c(y){if(typeof y.name!="string")throw new Error("Transform module *name* must be a string.");var b="Transform module "+y.name,S=typeof y.transform=="function",M=typeof y.calcTransform=="function";if(!S&&!M)throw new Error(b+" is missing a *transform* or *calcTransform* method.");S&&M&&G.log([b+" has both a *transform* and *calcTransform* methods.","Please note that all *transform* methods are executed","before all *calcTransform* methods."].join(" ")),A(y.attributes)||G.log(b+" registered without an *attributes* object."),typeof y.supplyDefaults!="function"&&G.log(b+" registered without a *supplyDefaults* method.")}function f(y){var b=y.name,S=b.split("-")[0],M=y.dictionary,_=y.format,w=M&&Object.keys(M).length,p=_&&Object.keys(_).length,u=Y.localeRegistry,g=u[b];if(g||(u[b]=g={}),S!==b){var m=u[S];m||(u[S]=m={}),w&&m.dictionary===g.dictionary&&(m.dictionary=M),p&&m.format===g.format&&(m.format=_)}w&&(g.dictionary=M),p&&(g.format=_)}function v(y){if(y.layoutAttributes){var b=y.layoutAttributes._arrayAttrRegexps;if(b)for(var S=0;S<b.length;S++)x(Y.layoutArrayRegexes,b[S])}}function h(y,b){var S=Y.componentsRegistry[y].schema;if(!(!S||!S.traces)){var M=S.traces[b];M&&a(Y.modules[b]._module.attributes,M)}}function T(y,b){var S=Y.componentsRegistry[y].schema;if(!(!S||!S.subplots)){var M=Y.subplotsRegistry[b],_=M.layoutAttributes,w=M.attr==="subplot"?M.name:M.attr;Array.isArray(w)&&(w=w[0]);var p=S.subplots[w];_&&p&&a(_,p)}}function l(y){return typeof y=="object"&&(y=y.type),y}}}),OS=He({"src/lib/dates.js"(Y){var G=zl().timeFormat,d=Mi(),x=Gd(),A=R0().mod,E=Hi(),e=E.BADNUM,t=E.ONEDAY,r=E.ONEHOUR,o=E.ONEMIN,a=E.ONESEC,i=E.EPOCHJD,n=Li(),s=zl().utcFormat,c=/^\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,f=/^\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,v=new Date().getFullYear()-70;function h(F){return F&&n.componentsRegistry.calendars&&typeof F=="string"&&F!=="gregorian"}Y.dateTick0=function(F,B){var O=T(F,!!B);if(B<2)return O;var L=Y.dateTime2ms(O,F);return L+=t*(B-1),Y.ms2DateTime(L,0,F)};function T(F,B){return h(F)?B?n.getComponentMethod("calendars","CANONICAL_SUNDAY")[F]:n.getComponentMethod("calendars","CANONICAL_TICK")[F]:B?"2000-01-02":"2000-01-01"}Y.dfltRange=function(F){return h(F)?n.getComponentMethod("calendars","DFLTRANGE")[F]:["2000-01-01","2001-01-01"]},Y.isJSDate=function(F){return typeof F=="object"&&F!==null&&typeof F.getTime=="function"};var l,y;Y.dateTime2ms=function(F,B){if(Y.isJSDate(F)){var O=F.getTimezoneOffset()*o,L=(F.getUTCMinutes()-F.getMinutes())*o+(F.getUTCSeconds()-F.getSeconds())*a+(F.getUTCMilliseconds()-F.getMilliseconds());if(L){var N=3*o;O=O-N/2+A(L-O+N/2,N)}return F=Number(F)-O,F>=l&&F<=y?F:e}if(typeof F!="string"&&typeof F!="number")return e;F=String(F);var U=h(B),Z=F.charAt(0);U&&(Z==="G"||Z==="g")&&(F=F.substr(1),B="");var Q=U&&B.substr(0,7)==="chinese",ue=F.match(Q?f:c);if(!ue)return e;var oe=ue[1],le=ue[3]||"1",j=Number(ue[5]||1),J=Number(ue[7]||0),$=Number(ue[9]||0),X=Number(ue[11]||0);if(U){if(oe.length===2)return e;oe=Number(oe);var re;try{var ee=n.getComponentMethod("calendars","getCal")(B);if(Q){var q=le.charAt(le.length-1)==="i";le=parseInt(le,10),re=ee.newDate(oe,ee.toMonthIndex(oe,le,q),j)}else re=ee.newDate(oe,Number(le),j)}catch{return e}return re?(re.toJD()-i)*t+J*r+$*o+X*a:e}oe.length===2?oe=(Number(oe)+2e3-v)%100+v:oe=Number(oe),le-=1;var ae=new Date(Date.UTC(2e3,le,j,J,$));return ae.setUTCFullYear(oe),ae.getUTCMonth()!==le||ae.getUTCDate()!==j?e:ae.getTime()+X*a},l=Y.MIN_MS=Y.dateTime2ms("-9999"),y=Y.MAX_MS=Y.dateTime2ms("9999-12-31 23:59:59.9999"),Y.isDateTime=function(F,B){return Y.dateTime2ms(F,B)!==e};function b(F,B){return String(F+Math.pow(10,B)).substr(1)}var S=90*t,M=3*r,_=5*o;Y.ms2DateTime=function(F,B,O){if(typeof F!="number"||!(F>=l&&F<=y))return e;B||(B=0);var L=Math.floor(A(F+.05,1)*10),N=Math.round(F-L/10),U,Z,Q,ue,oe,le;if(h(O)){var j=Math.floor(N/t)+i,J=Math.floor(A(F,t));try{U=n.getComponentMethod("calendars","getCal")(O).fromJD(j).formatDate("yyyy-mm-dd")}catch{U=s("G%Y-%m-%d")(new Date(N))}if(U.charAt(0)==="-")for(;U.length<11;)U="-0"+U.substr(1);else for(;U.length<10;)U="0"+U;Z=B<S?Math.floor(J/r):0,Q=B<S?Math.floor(J%r/o):0,ue=B<M?Math.floor(J%o/a):0,oe=B<_?J%a*10+L:0}else le=new Date(N),U=s("%Y-%m-%d")(le),Z=B<S?le.getUTCHours():0,Q=B<S?le.getUTCMinutes():0,ue=B<M?le.getUTCSeconds():0,oe=B<_?le.getUTCMilliseconds()*10+L:0;return w(U,Z,Q,ue,oe)},Y.ms2DateTimeLocal=function(F){if(!(F>=l+t&&F<=y-t))return e;var B=Math.floor(A(F+.05,1)*10),O=new Date(Math.round(F-B/10)),L=G("%Y-%m-%d")(O),N=O.getHours(),U=O.getMinutes(),Z=O.getSeconds(),Q=O.getUTCMilliseconds()*10+B;return w(L,N,U,Z,Q)};function w(F,B,O,L,N){if((B||O||L||N)&&(F+=" "+b(B,2)+":"+b(O,2),(L||N)&&(F+=":"+b(L,2),N))){for(var U=4;N%10===0;)U-=1,N/=10;F+="."+b(N,U)}return F}Y.cleanDate=function(F,B,O){if(F===e)return B;if(Y.isJSDate(F)||typeof F=="number"&&isFinite(F)){if(h(O))return x.error("JS Dates and milliseconds are incompatible with world calendars",F),B;if(F=Y.ms2DateTimeLocal(+F),!F&&B!==void 0)return B}else if(!Y.isDateTime(F,O))return x.error("unrecognized date",F),B;return F};var p=/%\d?f/g,u=/%h/g,g={1:"1",2:"1",3:"2",4:"2"};function m(F,B,O,L){F=F.replace(p,function(U){var Z=Math.min(+U.charAt(1)||6,6),Q=(B/1e3%1+2).toFixed(Z).substr(2).replace(/0+$/,"")||"0";return Q});var N=new Date(Math.floor(B+.05));if(F=F.replace(u,function(){return g[O("%q")(N)]}),h(L))try{F=n.getComponentMethod("calendars","worldCalFmt")(F,B,L)}catch{return"Invalid"}return O(F)(N)}var R=[59,59.9,59.99,59.999,59.9999];function P(F,B){var O=A(F+.05,t),L=b(Math.floor(O/r),2)+":"+b(A(Math.floor(O/o),60),2);if(B!=="M"){d(B)||(B=0);var N=Math.min(A(F/a,60),R[B]),U=(100+N).toFixed(B).substr(1);B>0&&(U=U.replace(/0+$/,"").replace(/[\.]$/,"")),L+=":"+U}return L}Y.formatDate=function(F,B,O,L,N,U){if(N=h(N)&&N,!B)if(O==="y")B=U.year;else if(O==="m")B=U.month;else if(O==="d")B=U.dayMonth+`
|