diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 858726a..83df349 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,5 +1,5 @@ repos: - repo: https://github.com/ambv/black - rev: 21.7b0 + rev: 22.3.0 hooks: - id: black \ No newline at end of file diff --git a/backend/beastiary/cli.py b/backend/beastiary/cli.py index 97667d9..113320f 100644 --- a/backend/beastiary/cli.py +++ b/backend/beastiary/cli.py @@ -1,5 +1,3 @@ -import errno -import os import pkg_resources import uuid import typer diff --git a/backend/beastiary/webapp-dist/css/main-dashboard.21941226.css b/backend/beastiary/webapp-dist/css/main-dashboard.7957e248.css similarity index 78% rename from backend/beastiary/webapp-dist/css/main-dashboard.21941226.css rename to backend/beastiary/webapp-dist/css/main-dashboard.7957e248.css index 7b51a85..96e8927 100644 --- a/backend/beastiary/webapp-dist/css/main-dashboard.21941226.css +++ b/backend/beastiary/webapp-dist/css/main-dashboard.7957e248.css @@ -1 +1 @@ -.wrap-text{-webkit-line-clamp:unset!important;word-wrap:break-word;white-space:normal}.v-dialog{border-radius:4px;margin:24px;overflow-y:auto;pointer-events:auto;-webkit-transition:.3s cubic-bezier(.25,.8,.25,1);transition:.3s cubic-bezier(.25,.8,.25,1);width:100%;z-index:inherit;-webkit-box-shadow:0 11px 15px -7px rgba(0,0,0,.2),0 24px 38px 3px rgba(0,0,0,.14),0 9px 46px 8px rgba(0,0,0,.12);box-shadow:0 11px 15px -7px rgba(0,0,0,.2),0 24px 38px 3px rgba(0,0,0,.14),0 9px 46px 8px rgba(0,0,0,.12)}.v-dialog:not(.v-dialog--fullscreen){max-height:90%}.v-dialog>*{width:100%}.v-dialog>.v-card>.v-card__title{font-size:1.25rem;font-weight:500;letter-spacing:.0125em;padding:16px 24px 10px}.v-dialog>.v-card>.v-card__subtitle,.v-dialog>.v-card>.v-card__text{padding:0 24px 20px}.v-dialog>.v-card>.v-card__actions{padding:8px 16px}.v-dialog__content{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;height:100%;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;left:0;pointer-events:none;position:fixed;top:0;-webkit-transition:.2s cubic-bezier(.25,.8,.25,1),z-index 1ms;transition:.2s cubic-bezier(.25,.8,.25,1),z-index 1ms;width:100%;z-index:6;outline:none}.v-dialog__container{display:none}.v-dialog__container--attached{display:inline}.v-dialog--animated{-webkit-animation-duration:.15s;animation-duration:.15s;-webkit-animation-name:animate-dialog;animation-name:animate-dialog;-webkit-animation-timing-function:cubic-bezier(.25,.8,.25,1);animation-timing-function:cubic-bezier(.25,.8,.25,1)}.v-dialog--fullscreen{border-radius:0;margin:0;height:100%;position:fixed;overflow-y:auto;top:0;left:0}.v-dialog--fullscreen>.v-card{min-height:100%;min-width:100%;margin:0!important;padding:0!important}.v-dialog--scrollable,.v-dialog--scrollable>form{display:-webkit-box;display:-ms-flexbox;display:flex}.v-dialog--scrollable>.v-card,.v-dialog--scrollable>form>.v-card{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-ms-flex:1 1 100%;flex:1 1 100%;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;max-height:100%;max-width:100%}.v-dialog--scrollable>.v-card>.v-card__actions,.v-dialog--scrollable>.v-card>.v-card__title,.v-dialog--scrollable>form>.v-card>.v-card__actions,.v-dialog--scrollable>form>.v-card>.v-card__title{-webkit-box-flex:0;-ms-flex:0 0 auto;flex:0 0 auto}.v-dialog--scrollable>.v-card>.v-card__text,.v-dialog--scrollable>form>.v-card>.v-card__text{-webkit-backface-visibility:hidden;backface-visibility:hidden;-webkit-box-flex:1;-ms-flex:1 1 auto;flex:1 1 auto;overflow-y:auto}@-webkit-keyframes animate-dialog{0%{-webkit-transform:scale(1);transform:scale(1)}50%{-webkit-transform:scale(1.03);transform:scale(1.03)}to{-webkit-transform:scale(1);transform:scale(1)}}@keyframes animate-dialog{0%{-webkit-transform:scale(1);transform:scale(1)}50%{-webkit-transform:scale(1.03);transform:scale(1.03)}to{-webkit-transform:scale(1);transform:scale(1)}}.v-chip:not(.v-chip--outlined).accent,.v-chip:not(.v-chip--outlined).error,.v-chip:not(.v-chip--outlined).info,.v-chip:not(.v-chip--outlined).primary,.v-chip:not(.v-chip--outlined).secondary,.v-chip:not(.v-chip--outlined).success,.v-chip:not(.v-chip--outlined).warning{color:#fff}.theme--light.v-chip{border-color:rgba(0,0,0,.12);color:rgba(0,0,0,.87)}.theme--light.v-chip:not(.v-chip--active){background:#e0e0e0}.theme--light.v-chip:hover:before{opacity:.04}.theme--light.v-chip--active:before,.theme--light.v-chip--active:hover:before,.theme--light.v-chip:focus:before{opacity:.12}.theme--light.v-chip--active:focus:before{opacity:.16}.theme--dark.v-chip{border-color:hsla(0,0%,100%,.12);color:#fff}.theme--dark.v-chip:not(.v-chip--active){background:#555}.theme--dark.v-chip:hover:before{opacity:.08}.theme--dark.v-chip--active:before,.theme--dark.v-chip--active:hover:before,.theme--dark.v-chip:focus:before{opacity:.24}.theme--dark.v-chip--active:focus:before{opacity:.32}.v-chip{-webkit-box-align:center;-ms-flex-align:center;align-items:center;cursor:default;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;line-height:20px;max-width:100%;outline:none;overflow:hidden;padding:0 12px;position:relative;text-decoration:none;-webkit-transition-duration:.28s;transition-duration:.28s;-webkit-transition-property:opacity,-webkit-box-shadow;transition-property:opacity,-webkit-box-shadow;transition-property:box-shadow,opacity;transition-property:box-shadow,opacity,-webkit-box-shadow;-webkit-transition-timing-function:cubic-bezier(.4,0,.2,1);transition-timing-function:cubic-bezier(.4,0,.2,1);vertical-align:middle;white-space:nowrap}.v-chip:before{background-color:currentColor;bottom:0;border-radius:inherit;content:"";left:0;opacity:0;position:absolute;pointer-events:none;right:0;top:0}.v-chip .v-avatar{height:24px!important;min-width:24px!important;width:24px!important}.v-chip .v-icon{font-size:24px}.v-application--is-ltr .v-chip .v-avatar--left,.v-application--is-ltr .v-chip .v-icon--left{margin-left:-6px;margin-right:6px}.v-application--is-ltr .v-chip .v-avatar--right,.v-application--is-ltr .v-chip .v-icon--right,.v-application--is-rtl .v-chip .v-avatar--left,.v-application--is-rtl .v-chip .v-icon--left{margin-left:6px;margin-right:-6px}.v-application--is-rtl .v-chip .v-avatar--right,.v-application--is-rtl .v-chip .v-icon--right{margin-left:-6px;margin-right:6px}.v-chip:not(.v-chip--no-color) .v-icon{color:inherit}.v-chip .v-chip__close.v-icon{font-size:18px;max-height:18px;max-width:18px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.v-application--is-ltr .v-chip .v-chip__close.v-icon.v-icon--right{margin-right:-4px}.v-application--is-rtl .v-chip .v-chip__close.v-icon.v-icon--right{margin-left:-4px}.v-chip .v-chip__close.v-icon:active,.v-chip .v-chip__close.v-icon:focus,.v-chip .v-chip__close.v-icon:hover{opacity:.72}.v-chip .v-chip__content{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;height:100%;max-width:100%}.v-chip--active .v-icon{color:inherit}.v-chip--link:before{-webkit-transition:opacity .3s cubic-bezier(.25,.8,.5,1);transition:opacity .3s cubic-bezier(.25,.8,.5,1)}.v-chip--link:focus:before{opacity:.32}.v-chip--clickable{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.v-chip--clickable:active{-webkit-box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12);box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12)}.v-chip--disabled{opacity:.4;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.v-chip__filter{max-width:24px}.v-chip__filter.v-icon{color:inherit}.v-chip__filter.expand-x-transition-enter,.v-chip__filter.expand-x-transition-leave-active{margin:0}.v-chip--pill .v-chip__filter{margin-right:0 16px 0 0}.v-chip--pill .v-avatar{height:32px!important;width:32px!important}.v-application--is-ltr .v-chip--pill .v-avatar--left{margin-left:-12px}.v-application--is-ltr .v-chip--pill .v-avatar--right,.v-application--is-rtl .v-chip--pill .v-avatar--left{margin-right:-12px}.v-application--is-rtl .v-chip--pill .v-avatar--right{margin-left:-12px}.v-chip--label{border-radius:4px!important}.v-chip.v-chip--outlined{border-width:thin;border-style:solid}.v-chip.v-chip--outlined.v-chip--active:before{opacity:.08}.v-chip.v-chip--outlined .v-icon{color:inherit}.v-chip.v-chip--outlined.v-chip.v-chip{background-color:transparent!important}.v-chip.v-chip--selected{background:transparent}.v-chip.v-chip--selected:after{opacity:.28}.v-chip.v-size--x-small{border-radius:8px;font-size:10px;height:16px}.v-chip.v-size--x-small .v-icon{font-size:10px;height:10px;width:10px}.v-chip.v-size--small{border-radius:12px;font-size:12px;height:24px}.v-chip.v-size--small .v-icon{font-size:12px;height:12px;width:12px}.v-chip.v-size--default{border-radius:16px;font-size:14px;height:32px}.v-chip.v-size--default .v-icon{font-size:14px;height:14px;width:14px}.v-chip.v-size--large{border-radius:27px;font-size:16px;height:54px}.v-chip.v-size--large .v-icon{font-size:16px;height:16px;width:16px}.v-chip.v-size--x-large{border-radius:33px;font-size:18px;height:66px}.v-chip.v-size--x-large .v-icon{font-size:18px;height:18px;width:18px}.v-tooltip{display:none}.v-tooltip--attached{display:inline}.v-tooltip__content{background:rgba(97,97,97,.9);color:#fff;border-radius:4px;font-size:14px;line-height:22px;display:inline-block;padding:5px 16px;position:absolute;text-transform:none;width:auto;opacity:1;pointer-events:none}.v-tooltip__content--fixed{position:fixed}.v-tooltip__content[class*=-active]{-webkit-transition-timing-function:cubic-bezier(0,0,.2,1);transition-timing-function:cubic-bezier(0,0,.2,1)}.v-tooltip__content[class*=enter-active]{-webkit-transition-duration:.15s;transition-duration:.15s}.v-tooltip__content[class*=leave-active]{-webkit-transition-duration:75ms;transition-duration:75ms}.v-input--checkbox.v-input--indeterminate.v-input--is-disabled{opacity:.6}.v-input--checkbox.v-input--dense{margin-top:4px}.theme--light.v-data-table tbody tr.v-data-table__selected{background:#f5f5f5}.theme--light.v-data-table .v-row-group__header,.theme--light.v-data-table .v-row-group__summary{background:#eee}.theme--light.v-data-table .v-data-footer{border-top:thin solid rgba(0,0,0,.12)}.theme--light.v-data-table .v-data-table__empty-wrapper{color:rgba(0,0,0,.38)}.theme--dark.v-data-table tbody tr.v-data-table__selected{background:#505050}.theme--dark.v-data-table .v-row-group__header,.theme--dark.v-data-table .v-row-group__summary{background:#616161}.theme--dark.v-data-table .v-data-footer{border-top:thin solid hsla(0,0%,100%,.12)}.theme--dark.v-data-table .v-data-table__empty-wrapper{color:hsla(0,0%,100%,.5)}.v-data-table{border-radius:4px}.v-data-table--mobile>.v-data-table__wrapper tbody{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.v-data-table>.v-data-table__wrapper tbody tr.v-data-table__expanded{border-bottom:0}.v-data-table>.v-data-table__wrapper tbody tr.v-data-table__expanded__content{-webkit-box-shadow:inset 0 4px 8px -5px rgba(50,50,50,.75),inset 0 -4px 8px -5px rgba(50,50,50,.75);box-shadow:inset 0 4px 8px -5px rgba(50,50,50,.75),inset 0 -4px 8px -5px rgba(50,50,50,.75)}.v-data-table>.v-data-table__wrapper tbody tr:first-child:hover td:first-child{border-top-left-radius:4px}.v-data-table>.v-data-table__wrapper tbody tr:first-child:hover td:last-child{border-top-right-radius:4px}.v-data-table>.v-data-table__wrapper tbody tr:last-child:hover td:first-child{border-bottom-left-radius:4px}.v-data-table>.v-data-table__wrapper tbody tr:last-child:hover td:last-child{border-bottom-right-radius:4px}.v-data-table>.v-data-table__wrapper .v-data-table__mobile-table-row{display:initial}.v-data-table>.v-data-table__wrapper .v-data-table__mobile-row{height:auto;min-height:48px}.v-data-table__empty-wrapper{text-align:center}.v-data-table__mobile-row{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.v-data-table__mobile-row__header{font-weight:600}.v-application--is-ltr .v-data-table__mobile-row__header{padding-right:16px}.v-application--is-rtl .v-data-table__mobile-row__header{padding-left:16px}.v-application--is-ltr .v-data-table__mobile-row__cell{text-align:right}.v-application--is-rtl .v-data-table__mobile-row__cell{text-align:left}.v-row-group__header td,.v-row-group__summary td{height:35px}.v-data-table__expand-icon{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer}.v-data-table__expand-icon--active{-webkit-transform:rotate(-180deg);transform:rotate(-180deg)}.v-data-footer{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-align:center;-ms-flex-align:center;align-items:center;font-size:.75rem;padding:0 8px}.v-data-footer .v-btn{color:inherit}.v-application--is-ltr .v-data-footer__icons-before .v-btn:last-child{margin-right:7px}.v-application--is-ltr .v-data-footer__icons-after .v-btn:first-child,.v-application--is-rtl .v-data-footer__icons-before .v-btn:last-child{margin-left:7px}.v-application--is-rtl .v-data-footer__icons-after .v-btn:first-child{margin-right:7px}.v-data-footer__pagination{display:block;text-align:center}.v-application--is-ltr .v-data-footer__pagination{margin:0 32px 0 24px}.v-application--is-rtl .v-data-footer__pagination{margin:0 24px 0 32px}.v-data-footer__select{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-flex:0;-ms-flex:0 0 0px;flex:0 0 0;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end;white-space:nowrap}.v-application--is-ltr .v-data-footer__select{margin-left:auto;margin-right:14px}.v-application--is-rtl .v-data-footer__select{margin-left:14px;margin-right:auto}.v-data-footer__select .v-select{-webkit-box-flex:0;-ms-flex:0 1 0px;flex:0 1 0;padding:0;position:static}.v-application--is-ltr .v-data-footer__select .v-select{margin:13px 0 13px 34px}.v-application--is-rtl .v-data-footer__select .v-select{margin:13px 34px 13px 0}.v-data-footer__select .v-select__selections{-ms-flex-wrap:nowrap;flex-wrap:nowrap}.v-data-footer__select .v-select__selections .v-select__selection--comma{font-size:.75rem}.theme--light.v-select .v-select__selections{color:rgba(0,0,0,.87);min-height:10px}.theme--light.v-select.v-input--is-disabled .v-select__selections,.theme--light.v-select .v-select__selection--disabled{color:rgba(0,0,0,.38)}.theme--light.v-select.v-text-field--solo-inverted.v-input--is-focused .v-select__selections{color:#fff}.theme--dark.v-select .v-select__selections{color:#fff;min-height:10px}.theme--dark.v-select.v-input--is-disabled .v-select__selections,.theme--dark.v-select .v-select__selection--disabled{color:hsla(0,0%,100%,.5)}.theme--dark.v-select.v-text-field--solo-inverted.v-input--is-focused .v-select__selections{color:rgba(0,0,0,.87)}.v-select{position:relative}.v-select:not(.v-select--is-multi).v-text-field--single-line .v-select__selections{-ms-flex-wrap:nowrap;flex-wrap:nowrap}.v-select>.v-input__control>.v-input__slot{cursor:pointer}.v-select .v-chip{-webkit-box-flex:0;-ms-flex:0 1 auto;flex:0 1 auto;margin:4px}.v-select .v-chip--selected:after{opacity:.22}.v-select .fade-transition-leave-active{position:absolute;left:0}.v-select.v-input--is-dirty ::-webkit-input-placeholder{color:transparent!important}.v-select.v-input--is-dirty ::-moz-placeholder{color:transparent!important}.v-select.v-input--is-dirty :-ms-input-placeholder{color:transparent!important}.v-select.v-input--is-dirty ::-ms-input-placeholder{color:transparent!important}.v-select.v-input--is-dirty ::placeholder{color:transparent!important}.v-select:not(.v-input--is-dirty):not(.v-input--is-focused) .v-text-field__prefix{line-height:20px;top:7px;-webkit-transition:.3s cubic-bezier(.25,.8,.5,1);transition:.3s cubic-bezier(.25,.8,.5,1)}.v-select.v-text-field--enclosed:not(.v-text-field--single-line):not(.v-text-field--outlined) .v-select__selections{padding-top:20px}.v-select.v-text-field--outlined:not(.v-text-field--single-line) .v-select__selections{padding:8px 0}.v-select.v-text-field--outlined:not(.v-text-field--single-line).v-input--dense .v-select__selections{padding:4px 0}.v-select.v-text-field input{-webkit-box-flex:1;-ms-flex:1 1;flex:1 1;min-width:0;pointer-events:none;position:relative}.v-select.v-text-field:not(.v-text-field--single-line) input{margin-top:0}.v-select.v-select--is-menu-active .v-input__icon--append .v-icon{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.v-select.v-select--chips input{margin:0}.v-select.v-select--chips .v-select__selections{min-height:42px}.v-select.v-select--chips.v-input--dense .v-select__selections{min-height:40px}.v-select.v-select--chips .v-chip--select.v-chip--active:before{opacity:.2}.v-select.v-select--chips.v-select--chips--small .v-select__selections{min-height:26px}.v-select.v-select--chips:not(.v-text-field--single-line).v-text-field--box .v-select__selections,.v-select.v-select--chips:not(.v-text-field--single-line).v-text-field--enclosed .v-select__selections{min-height:68px}.v-select.v-select--chips:not(.v-text-field--single-line).v-text-field--box.v-input--dense .v-select__selections,.v-select.v-select--chips:not(.v-text-field--single-line).v-text-field--enclosed.v-input--dense .v-select__selections{min-height:40px}.v-select.v-select--chips:not(.v-text-field--single-line).v-text-field--box.v-select--chips--small .v-select__selections,.v-select.v-select--chips:not(.v-text-field--single-line).v-text-field--enclosed.v-select--chips--small .v-select__selections{min-height:26px}.v-select.v-select--chips:not(.v-text-field--single-line).v-text-field--box.v-select--chips--small.v-input--dense .v-select__selections,.v-select.v-select--chips:not(.v-text-field--single-line).v-text-field--enclosed.v-select--chips--small.v-input--dense .v-select__selections{min-height:38px}.v-select.v-text-field--reverse .v-select__selections,.v-select.v-text-field--reverse .v-select__slot{-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}.v-select__selections{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-ms-flex:1 1;flex:1 1;-ms-flex-wrap:wrap;flex-wrap:wrap;line-height:18px;max-width:100%;min-width:0}.v-select__selection{max-width:90%}.v-select__selection--comma{margin:7px 4px 7px 0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v-select.v-input--dense .v-select__selection--comma{margin:5px 4px 3px 0}.v-select.v-input--dense .v-chip{margin:0 4px 0 4px}.v-select__slot{position:relative;-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;max-width:100%;min-width:0;width:100%}.v-select:not(.v-text-field--single-line):not(.v-text-field--outlined) .v-select__slot>input{-ms-flex-item-align:end;align-self:flex-end}.v-simple-checkbox{-ms-flex-item-align:center;align-self:center;line-height:normal;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.v-simple-checkbox .v-icon{cursor:pointer}.v-simple-checkbox--disabled{cursor:default}.v-menu{display:none}.v-menu--attached{display:inline}.v-menu__content{position:absolute;display:inline-block;max-width:80%;overflow-y:auto;overflow-x:hidden;contain:content;-webkit-box-shadow:0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12);box-shadow:0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12);border-radius:4px}.v-menu__content--active{pointer-events:none}.v-menu__content--auto .v-list-item{-webkit-transition-property:opacity,-webkit-transform;transition-property:opacity,-webkit-transform;transition-property:transform,opacity;transition-property:transform,opacity,-webkit-transform;-webkit-transition-duration:.3s;transition-duration:.3s;-webkit-transition-timing-function:cubic-bezier(.25,.8,.25,1);transition-timing-function:cubic-bezier(.25,.8,.25,1)}.v-menu__content--fixed{position:fixed}.v-menu__content>.card{contain:content;-webkit-backface-visibility:hidden;backface-visibility:hidden}.v-menu>.v-menu__content{max-width:none}.v-menu-transition-enter .v-list-item{min-width:0;pointer-events:none}.v-menu-transition-enter-to .v-list-item{-webkit-transition-delay:.1s;transition-delay:.1s}.v-menu-transition-leave-active,.v-menu-transition-leave-to{pointer-events:none}.v-menu-transition-enter,.v-menu-transition-leave-to{opacity:0}.v-menu-transition-enter-active,.v-menu-transition-leave-active{-webkit-transition:all .3s cubic-bezier(.25,.8,.25,1);transition:all .3s cubic-bezier(.25,.8,.25,1)}.v-menu-transition-enter.v-menu__content--auto{-webkit-transition:none!important;transition:none!important}.v-menu-transition-enter.v-menu__content--auto .v-list-item{opacity:0;-webkit-transform:translateY(-15px);transform:translateY(-15px)}.v-menu-transition-enter.v-menu__content--auto .v-list-item--active{opacity:1;-webkit-transform:none!important;transform:none!important;pointer-events:auto}.theme--light.v-data-table .v-data-table-header th.sortable .v-data-table-header__icon{color:rgba(0,0,0,.38)}.theme--light.v-data-table .v-data-table-header th.sortable.active,.theme--light.v-data-table .v-data-table-header th.sortable.active .v-data-table-header__icon,.theme--light.v-data-table .v-data-table-header th.sortable:hover{color:rgba(0,0,0,.87)}.theme--light.v-data-table .v-data-table-header__sort-badge{background-color:rgba(0,0,0,.12);color:rgba(0,0,0,.87)}.theme--dark.v-data-table .v-data-table-header th.sortable .v-data-table-header__icon{color:hsla(0,0%,100%,.5)}.theme--dark.v-data-table .v-data-table-header th.sortable.active,.theme--dark.v-data-table .v-data-table-header th.sortable.active .v-data-table-header__icon,.theme--dark.v-data-table .v-data-table-header th.sortable:hover{color:#fff}.theme--dark.v-data-table .v-data-table-header__sort-badge{background-color:hsla(0,0%,100%,.12);color:#fff}.v-data-table-header th.sortable{pointer-events:auto;cursor:pointer;outline:0}.v-data-table-header th.sortable .v-data-table-header__icon{line-height:.9}.v-data-table-header th.active .v-data-table-header__icon,.v-data-table-header th:hover .v-data-table-header__icon{-webkit-transform:none;transform:none;opacity:1}.v-data-table-header th.desc .v-data-table-header__icon{-webkit-transform:rotate(-180deg);transform:rotate(-180deg)}.v-data-table-header__icon{display:inline-block;opacity:0;-webkit-transition:.3s cubic-bezier(.25,.8,.5,1);transition:.3s cubic-bezier(.25,.8,.5,1)}.v-data-table-header__sort-badge{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;border:0;border-radius:50%;min-width:18px;min-height:18px;height:18px;width:18px}.v-data-table-header-mobile th{height:auto}.v-data-table-header-mobile__wrapper{display:-webkit-box;display:-ms-flexbox;display:flex}.v-data-table-header-mobile__wrapper .v-select{margin-bottom:8px}.v-data-table-header-mobile__wrapper .v-select .v-chip{height:24px}.v-data-table-header-mobile__wrapper .v-select .v-chip__close.desc .v-icon{-webkit-transform:rotate(-180deg);transform:rotate(-180deg)}.v-data-table-header-mobile__select{min-width:56px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.theme--light.v-data-table{background-color:#fff;color:rgba(0,0,0,.87)}.theme--light.v-data-table .v-data-table__divider{border-right:thin solid rgba(0,0,0,.12)}.theme--light.v-data-table.v-data-table--fixed-header thead th{background:#fff;-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,.12);box-shadow:inset 0 -1px 0 rgba(0,0,0,.12)}.theme--light.v-data-table>.v-data-table__wrapper>table>thead>tr>th{color:rgba(0,0,0,.6)}.theme--light.v-data-table>.v-data-table__wrapper>table>tbody>tr:not(:last-child)>td:last-child,.theme--light.v-data-table>.v-data-table__wrapper>table>tbody>tr:not(:last-child)>td:not(.v-data-table__mobile-row),.theme--light.v-data-table>.v-data-table__wrapper>table>tbody>tr:not(:last-child)>th:last-child,.theme--light.v-data-table>.v-data-table__wrapper>table>tbody>tr:not(:last-child)>th:not(.v-data-table__mobile-row),.theme--light.v-data-table>.v-data-table__wrapper>table>thead>tr:last-child>th{border-bottom:thin solid rgba(0,0,0,.12)}.theme--light.v-data-table>.v-data-table__wrapper>table>tbody>tr.active{background:#f5f5f5}.theme--light.v-data-table>.v-data-table__wrapper>table>tbody>tr:hover:not(.v-data-table__expanded__content):not(.v-data-table__empty-wrapper){background:#eee}.theme--light.v-data-table>.v-data-table__wrapper>table>tfoot>tr>td:not(.v-data-table__mobile-row),.theme--light.v-data-table>.v-data-table__wrapper>table>tfoot>tr>th:not(.v-data-table__mobile-row){border-top:thin solid rgba(0,0,0,.12)}.theme--dark.v-data-table{background-color:#1e1e1e;color:#fff}.theme--dark.v-data-table .v-data-table__divider{border-right:thin solid hsla(0,0%,100%,.12)}.theme--dark.v-data-table.v-data-table--fixed-header thead th{background:#1e1e1e;-webkit-box-shadow:inset 0 -1px 0 hsla(0,0%,100%,.12);box-shadow:inset 0 -1px 0 hsla(0,0%,100%,.12)}.theme--dark.v-data-table>.v-data-table__wrapper>table>thead>tr>th{color:hsla(0,0%,100%,.7)}.theme--dark.v-data-table>.v-data-table__wrapper>table>tbody>tr:not(:last-child)>td:last-child,.theme--dark.v-data-table>.v-data-table__wrapper>table>tbody>tr:not(:last-child)>td:not(.v-data-table__mobile-row),.theme--dark.v-data-table>.v-data-table__wrapper>table>tbody>tr:not(:last-child)>th:last-child,.theme--dark.v-data-table>.v-data-table__wrapper>table>tbody>tr:not(:last-child)>th:not(.v-data-table__mobile-row),.theme--dark.v-data-table>.v-data-table__wrapper>table>thead>tr:last-child>th{border-bottom:thin solid hsla(0,0%,100%,.12)}.theme--dark.v-data-table>.v-data-table__wrapper>table>tbody>tr.active{background:#505050}.theme--dark.v-data-table>.v-data-table__wrapper>table>tbody>tr:hover:not(.v-data-table__expanded__content):not(.v-data-table__empty-wrapper){background:#616161}.theme--dark.v-data-table>.v-data-table__wrapper>table>tfoot>tr>td:not(.v-data-table__mobile-row),.theme--dark.v-data-table>.v-data-table__wrapper>table>tfoot>tr>th:not(.v-data-table__mobile-row){border-top:thin solid hsla(0,0%,100%,.12)}.v-data-table{line-height:1.5;max-width:100%}.v-data-table>.v-data-table__wrapper>table{width:100%;border-spacing:0}.v-data-table>.v-data-table__wrapper>table>tbody>tr>td,.v-data-table>.v-data-table__wrapper>table>tbody>tr>th,.v-data-table>.v-data-table__wrapper>table>tfoot>tr>td,.v-data-table>.v-data-table__wrapper>table>tfoot>tr>th,.v-data-table>.v-data-table__wrapper>table>thead>tr>td,.v-data-table>.v-data-table__wrapper>table>thead>tr>th{padding:0 16px;-webkit-transition:height .2s cubic-bezier(.4,0,.6,1);transition:height .2s cubic-bezier(.4,0,.6,1)}.v-data-table>.v-data-table__wrapper>table>tbody>tr>th,.v-data-table>.v-data-table__wrapper>table>tfoot>tr>th,.v-data-table>.v-data-table__wrapper>table>thead>tr>th{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-size:.75rem;height:48px}.v-application--is-ltr .v-data-table>.v-data-table__wrapper>table>tbody>tr>th,.v-application--is-ltr .v-data-table>.v-data-table__wrapper>table>tfoot>tr>th,.v-application--is-ltr .v-data-table>.v-data-table__wrapper>table>thead>tr>th{text-align:left}.v-application--is-rtl .v-data-table>.v-data-table__wrapper>table>tbody>tr>th,.v-application--is-rtl .v-data-table>.v-data-table__wrapper>table>tfoot>tr>th,.v-application--is-rtl .v-data-table>.v-data-table__wrapper>table>thead>tr>th{text-align:right}.v-data-table>.v-data-table__wrapper>table>tbody>tr>td,.v-data-table>.v-data-table__wrapper>table>tfoot>tr>td,.v-data-table>.v-data-table__wrapper>table>thead>tr>td{font-size:.875rem;height:48px}.v-data-table__wrapper{overflow-x:auto;overflow-y:hidden}.v-data-table__progress{height:auto!important}.v-data-table__progress th{height:auto!important;border:none!important;padding:0;position:relative}.v-data-table--dense>.v-data-table__wrapper>table>tbody>tr>td,.v-data-table--dense>.v-data-table__wrapper>table>tbody>tr>th,.v-data-table--dense>.v-data-table__wrapper>table>tfoot>tr>td,.v-data-table--dense>.v-data-table__wrapper>table>tfoot>tr>th,.v-data-table--dense>.v-data-table__wrapper>table>thead>tr>td,.v-data-table--dense>.v-data-table__wrapper>table>thead>tr>th{height:32px}.v-data-table--has-top>.v-data-table__wrapper>table>tbody>tr:first-child:hover>td:first-child{border-top-left-radius:0}.v-data-table--has-top>.v-data-table__wrapper>table>tbody>tr:first-child:hover>td:last-child{border-top-right-radius:0}.v-data-table--has-bottom>.v-data-table__wrapper>table>tbody>tr:last-child:hover>td:first-child{border-bottom-left-radius:0}.v-data-table--has-bottom>.v-data-table__wrapper>table>tbody>tr:last-child:hover>td:last-child{border-bottom-right-radius:0}.v-data-table--fixed-header>.v-data-table__wrapper,.v-data-table--fixed-height .v-data-table__wrapper{overflow-y:auto}.v-data-table--fixed-header>.v-data-table__wrapper>table>thead>tr>th{border-bottom:0!important;position:sticky;top:0;z-index:2}.v-data-table--fixed-header>.v-data-table__wrapper>table>thead>tr:nth-child(2)>th{top:48px}.v-application--is-ltr .v-data-table--fixed-header .v-data-footer{margin-right:17px}.v-application--is-rtl .v-data-table--fixed-header .v-data-footer{margin-left:17px}.v-data-table--fixed-header.v-data-table--dense>.v-data-table__wrapper>table>thead>tr:nth-child(2)>th{top:32px}.no-scrollbar{overflow-y:scroll}.no-scrollbar::-webkit-scrollbar{display:none}.no-scrollbar{-ms-overflow-style:none;scrollbar-width:none}.v-chip-group .v-chip{margin:4px 8px 4px 0}.v-chip-group .v-chip--active{color:inherit}.v-chip-group .v-chip--active.v-chip--no-color:after{opacity:.22}.v-chip-group .v-chip--active.v-chip--no-color:focus:after{opacity:.32}.v-chip-group .v-slide-group__content{padding:4px 0}.v-chip-group--column .v-slide-group__content{white-space:normal;-ms-flex-wrap:wrap;flex-wrap:wrap;max-width:100%}.v-slide-group{display:-webkit-box;display:-ms-flexbox;display:flex}.v-slide-group:not(.v-slide-group--has-affixes)>.v-slide-group__next,.v-slide-group:not(.v-slide-group--has-affixes)>.v-slide-group__prev{display:none}.v-slide-group.v-item-group>.v-slide-group__next,.v-slide-group.v-item-group>.v-slide-group__prev{cursor:pointer}.v-slide-item{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-flex:0;-ms-flex:0 1 auto;flex:0 1 auto}.v-slide-group__next,.v-slide-group__prev{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:0;-ms-flex:0 1 52px;flex:0 1 52px;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;min-width:52px}.v-slide-group__content{-ms-flex:1 0 auto;flex:1 0 auto;position:relative;-webkit-transition:.3s cubic-bezier(.25,.8,.5,1);transition:.3s cubic-bezier(.25,.8,.5,1);white-space:nowrap}.v-slide-group__content,.v-slide-group__wrapper{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:1}.v-slide-group__wrapper{contain:content;-ms-flex:1 1 auto;flex:1 1 auto;overflow:hidden}.v-slide-group__next--disabled,.v-slide-group__prev--disabled{pointer-events:none}.theme--light.v-slider .v-slider__thumb,.theme--light.v-slider .v-slider__track-background,.theme--light.v-slider .v-slider__track-fill{background:rgba(0,0,0,.26)}.theme--dark.v-slider .v-slider__thumb,.theme--dark.v-slider .v-slider__track-background,.theme--dark.v-slider .v-slider__track-fill{background:hsla(0,0%,100%,.2)}.v-slider{cursor:default;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;position:relative;-webkit-box-flex:1;-ms-flex:1;flex:1;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.v-slider input{cursor:default;padding:0;width:100%;display:none}.v-slider__track-container{position:absolute;border-radius:0}.v-slider__thumb-container,.v-slider__track-background,.v-slider__track-fill{position:absolute;-webkit-transition:.3s cubic-bezier(.25,.8,.5,1);transition:.3s cubic-bezier(.25,.8,.5,1)}.v-slider__thumb-container{outline:none;top:50%}.v-slider__thumb-container:hover .v-slider__thumb:before{-webkit-transform:scale(1);transform:scale(1)}.v-slider__thumb{width:12px;height:12px;left:-6px;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.v-slider__thumb,.v-slider__thumb:before{position:absolute;border-radius:50%;-webkit-transition:.3s cubic-bezier(.25,.8,.5,1);transition:.3s cubic-bezier(.25,.8,.5,1)}.v-slider__thumb:before{content:"";color:inherit;width:36px;height:36px;background:currentColor;opacity:.3;left:-12px;top:-12px;-webkit-transform:scale(.1);transform:scale(.1);pointer-events:none}.v-slider__thumb:after{content:"";width:42px;height:42px;position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.v-slider__tick,.v-slider__ticks-container{position:absolute}.v-slider__tick{opacity:0;background-color:rgba(0,0,0,.5);-webkit-transition:.3s cubic-bezier(.25,.8,.5,1);transition:.3s cubic-bezier(.25,.8,.5,1);border-radius:0}.v-slider__tick--filled{background-color:hsla(0,0%,100%,.5)}.v-application--is-ltr .v-slider__tick:first-child .v-slider__tick-label{-webkit-transform:none;transform:none}.v-application--is-rtl .v-slider__tick:first-child .v-slider__tick-label{-webkit-transform:translateX(100%);transform:translateX(100%)}.v-application--is-ltr .v-slider__tick:last-child .v-slider__tick-label{-webkit-transform:translateX(-100%);transform:translateX(-100%)}.v-application--is-rtl .v-slider__tick:last-child .v-slider__tick-label{-webkit-transform:none;transform:none}.v-slider__tick-label{position:absolute;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;white-space:nowrap}.v-slider__thumb-label-container{top:0}.v-slider__thumb-label,.v-slider__thumb-label-container{position:absolute;left:0;-webkit-transition:.3s cubic-bezier(.25,.8,.25,1);transition:.3s cubic-bezier(.25,.8,.25,1)}.v-slider__thumb-label{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;font-size:.75rem;color:#fff;width:32px;height:32px;border-radius:50% 50% 0;bottom:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.v-slider--horizontal{min-height:32px;margin-left:8px;margin-right:8px}.v-slider--horizontal .v-slider__track-container{width:100%;height:2px;left:0;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.v-slider--horizontal .v-slider__track-background,.v-slider--horizontal .v-slider__track-fill{height:100%}.v-slider--horizontal .v-slider__ticks-container{left:0;height:2px;width:100%}.v-application--is-ltr .v-slider--horizontal .v-slider__tick:first-child .v-slider__tick-label,.v-application--is-rtl .v-slider--horizontal .v-slider__tick:first-child .v-slider__tick-label{-webkit-transform:translateX(0);transform:translateX(0)}.v-application--is-ltr .v-slider--horizontal .v-slider__tick:last-child .v-slider__tick-label{-webkit-transform:translateX(-100%);transform:translateX(-100%)}.v-application--is-rtl .v-slider--horizontal .v-slider__tick:last-child .v-slider__tick-label{-webkit-transform:translateX(100%);transform:translateX(100%)}.v-slider--horizontal .v-slider__tick .v-slider__tick-label{top:8px}.v-application--is-ltr .v-slider--horizontal .v-slider__tick .v-slider__tick-label{-webkit-transform:translateX(-50%);transform:translateX(-50%)}.v-application--is-rtl .v-slider--horizontal .v-slider__tick .v-slider__tick-label{-webkit-transform:translateX(50%);transform:translateX(50%)}.v-slider--horizontal .v-slider__thumb-label{-webkit-transform:translateY(-20%) translateY(-12px) translateX(-50%) rotate(45deg);transform:translateY(-20%) translateY(-12px) translateX(-50%) rotate(45deg)}.v-slider--horizontal .v-slider__thumb-label>*{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.v-slider--vertical{min-height:150px;margin-top:12px;margin-bottom:12px}.v-slider--vertical .v-slider__track-container{height:100%;width:2px;left:50%;top:0;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.v-slider--vertical .v-slider__track-background,.v-slider--vertical .v-slider__track-fill{width:100%}.v-slider--vertical .v-slider__thumb-container{left:50%}.v-slider--vertical .v-slider__ticks-container{top:0;width:2px;height:100%;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.v-application--is-ltr .v-slider--vertical .v-slider__tick .v-slider__tick-label,.v-application--is-ltr .v-slider--vertical .v-slider__tick:first-child .v-slider__tick-label,.v-application--is-ltr .v-slider--vertical .v-slider__tick:last-child .v-slider__tick-label{-webkit-transform:translateY(-50%);transform:translateY(-50%);left:12px}.v-application--is-rtl .v-slider--vertical .v-slider__tick .v-slider__tick-label,.v-application--is-rtl .v-slider--vertical .v-slider__tick:first-child .v-slider__tick-label,.v-application--is-rtl .v-slider--vertical .v-slider__tick:last-child .v-slider__tick-label{-webkit-transform:translateY(-50%);transform:translateY(-50%);right:12px}.v-slider--vertical .v-slider__thumb-label>*{-webkit-transform:rotate(-135deg);transform:rotate(-135deg)}.v-slider__thumb-container--focused .v-slider__thumb:before{-webkit-transform:scale(1);transform:scale(1)}.v-slider--active .v-slider__tick{opacity:1}.v-slider__thumb-container--active .v-slider__thumb:before{-webkit-transform:scale(1.5)!important;transform:scale(1.5)!important}.v-slider--disabled{pointer-events:none}.v-slider--disabled .v-slider__thumb{width:8px;height:8px;left:-4px}.v-slider--disabled .v-slider__thumb:before{display:none}.v-slider__ticks-container--always-show .v-slider__tick{opacity:1}.v-input__slider.v-input--is-readonly>.v-input__control{pointer-events:none}.v-application--is-ltr .v-input__slider .v-input__slot .v-label{margin-left:0;margin-right:12px}.v-application--is-ltr .v-input__slider--inverse-label .v-input__slot .v-label,.v-application--is-rtl .v-input__slider .v-input__slot .v-label{margin-right:0;margin-left:12px}.v-application--is-rtl .v-input__slider--inverse-label .v-input__slot .v-label{margin-left:0;margin-right:12px}.v-input__slider--vertical{-webkit-box-align:center;-ms-flex-align:center;align-items:center}.v-application--is-ltr .v-input__slider--vertical{-webkit-box-orient:vertical;-webkit-box-direction:reverse;-ms-flex-direction:column-reverse;flex-direction:column-reverse}.v-application--is-rtl .v-input__slider--vertical{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.v-input__slider--vertical .v-input__append-outer,.v-input__slider--vertical .v-input__prepend-outer,.v-input__slider--vertical .v-input__slot{margin:0}.v-input__slider--vertical .v-messages{display:none}.v-input--has-state .v-slider__track-background{opacity:.4}.theme--light.v-tabs>.v-tabs-bar{background-color:#fff}.theme--light.v-tabs>.v-tabs-bar .v-tab--disabled,.theme--light.v-tabs>.v-tabs-bar .v-tab:not(.v-tab--active),.theme--light.v-tabs>.v-tabs-bar .v-tab:not(.v-tab--active)>.v-btn,.theme--light.v-tabs>.v-tabs-bar .v-tab:not(.v-tab--active)>.v-icon{color:rgba(0,0,0,.54)}.theme--light.v-tabs .v-tab:hover:before{opacity:.04}.theme--light.v-tabs .v-tab--active:before,.theme--light.v-tabs .v-tab--active:hover:before,.theme--light.v-tabs .v-tab:focus:before{opacity:.12}.theme--light.v-tabs .v-tab--active:focus:before{opacity:.16}.theme--dark.v-tabs>.v-tabs-bar{background-color:#1e1e1e}.theme--dark.v-tabs>.v-tabs-bar .v-tab--disabled,.theme--dark.v-tabs>.v-tabs-bar .v-tab:not(.v-tab--active),.theme--dark.v-tabs>.v-tabs-bar .v-tab:not(.v-tab--active)>.v-btn,.theme--dark.v-tabs>.v-tabs-bar .v-tab:not(.v-tab--active)>.v-icon{color:hsla(0,0%,100%,.6)}.theme--dark.v-tabs .v-tab:hover:before{opacity:.08}.theme--dark.v-tabs .v-tab--active:before,.theme--dark.v-tabs .v-tab--active:hover:before,.theme--dark.v-tabs .v-tab:focus:before{opacity:.24}.theme--dark.v-tabs .v-tab--active:focus:before{opacity:.32}.theme--light.v-tabs-items{background-color:#fff}.theme--dark.v-tabs-items{background-color:#1e1e1e}.v-tabs-bar.accent .v-tab,.v-tabs-bar.accent .v-tabs-slider,.v-tabs-bar.error .v-tab,.v-tabs-bar.error .v-tabs-slider,.v-tabs-bar.info .v-tab,.v-tabs-bar.info .v-tabs-slider,.v-tabs-bar.primary .v-tab,.v-tabs-bar.primary .v-tabs-slider,.v-tabs-bar.secondary .v-tab,.v-tabs-bar.secondary .v-tabs-slider,.v-tabs-bar.success .v-tab,.v-tabs-bar.success .v-tabs-slider,.v-tabs-bar.warning .v-tab,.v-tabs-bar.warning .v-tabs-slider{color:#fff}.v-tabs{-webkit-box-flex:1;-ms-flex:1 1 auto;flex:1 1 auto;width:100%}.v-tabs .v-menu__activator{height:100%}.v-tabs.v.tabs--vertical.v-tabs--right{-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}.v-tabs:not(.v-tabs--vertical) .v-tab{white-space:normal}.v-tabs:not(.v-tabs--vertical).v-tabs--right>.v-slide-group--is-overflowing.v-tabs-bar--is-mobile:not(.v-slide-group--has-affixes) .v-slide-group__next,.v-tabs:not(.v-tabs--vertical):not(.v-tabs--right)>.v-slide-group--is-overflowing.v-tabs-bar--is-mobile:not(.v-slide-group--has-affixes) .v-slide-group__prev{display:initial;visibility:hidden}.v-tabs-bar{border-radius:inherit;height:48px}.v-tabs-bar.v-item-group>*{cursor:auto}.v-tab{-webkit-box-align:center;-ms-flex-align:center;align-items:center;cursor:pointer;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:0;-ms-flex:0 1 auto;flex:0 1 auto;font-size:.875rem;font-weight:500;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;letter-spacing:.0892857143em;line-height:normal;min-width:90px;max-width:360px;outline:none;padding:0 16px;position:relative;text-align:center;text-decoration:none;text-transform:uppercase;-webkit-transition:none;transition:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.v-tab.v-tab{color:inherit}.v-tab:before{bottom:0;content:"";left:0;opacity:0;pointer-events:none;position:absolute;right:0;top:0;-webkit-transition:.3s cubic-bezier(.25,.8,.5,1);transition:.3s cubic-bezier(.25,.8,.5,1)}.v-tab:before,.v-tabs-slider{background-color:currentColor}.v-tabs-slider{height:100%;width:100%}.v-tabs-slider-wrapper{bottom:0;margin:0!important;position:absolute;-webkit-transition:.3s cubic-bezier(.25,.8,.5,1);transition:.3s cubic-bezier(.25,.8,.5,1);z-index:1}.v-application--is-ltr .v-tabs--align-with-title>.v-tabs-bar:not(.v-tabs-bar--show-arrows):not(.v-slide-group--is-overflowing)>.v-slide-group__wrapper>.v-tabs-bar__content>.v-tab:first-child,.v-application--is-ltr .v-tabs--align-with-title>.v-tabs-bar:not(.v-tabs-bar--show-arrows):not(.v-slide-group--is-overflowing)>.v-slide-group__wrapper>.v-tabs-bar__content>.v-tabs-slider-wrapper+.v-tab{margin-left:42px}.v-application--is-rtl .v-tabs--align-with-title>.v-tabs-bar:not(.v-tabs-bar--show-arrows):not(.v-slide-group--is-overflowing)>.v-slide-group__wrapper>.v-tabs-bar__content>.v-tab:first-child,.v-application--is-rtl .v-tabs--align-with-title>.v-tabs-bar:not(.v-tabs-bar--show-arrows):not(.v-slide-group--is-overflowing)>.v-slide-group__wrapper>.v-tabs-bar__content>.v-tabs-slider-wrapper+.v-tab{margin-right:42px}.v-application--is-ltr .v-tabs--centered>.v-tabs-bar .v-tabs-bar__content>:last-child,.v-application--is-ltr .v-tabs--fixed-tabs>.v-tabs-bar .v-tabs-bar__content>:last-child{margin-right:auto}.v-application--is-ltr .v-tabs--centered>.v-tabs-bar .v-tabs-bar__content>:first-child:not(.v-tabs-slider-wrapper),.v-application--is-ltr .v-tabs--centered>.v-tabs-bar .v-tabs-slider-wrapper+*,.v-application--is-ltr .v-tabs--fixed-tabs>.v-tabs-bar .v-tabs-bar__content>:first-child:not(.v-tabs-slider-wrapper),.v-application--is-ltr .v-tabs--fixed-tabs>.v-tabs-bar .v-tabs-slider-wrapper+*,.v-application--is-rtl .v-tabs--centered>.v-tabs-bar .v-tabs-bar__content>:last-child,.v-application--is-rtl .v-tabs--fixed-tabs>.v-tabs-bar .v-tabs-bar__content>:last-child{margin-left:auto}.v-application--is-rtl .v-tabs--centered>.v-tabs-bar .v-tabs-bar__content>:first-child:not(.v-tabs-slider-wrapper),.v-application--is-rtl .v-tabs--centered>.v-tabs-bar .v-tabs-slider-wrapper+*,.v-application--is-rtl .v-tabs--fixed-tabs>.v-tabs-bar .v-tabs-bar__content>:first-child:not(.v-tabs-slider-wrapper),.v-application--is-rtl .v-tabs--fixed-tabs>.v-tabs-bar .v-tabs-slider-wrapper+*{margin-right:auto}.v-tabs--fixed-tabs>.v-tabs-bar .v-tab{-webkit-box-flex:1;-ms-flex:1 1 auto;flex:1 1 auto;width:100%}.v-tabs--grow>.v-tabs-bar .v-tab{-webkit-box-flex:1;-ms-flex:1 0 auto;flex:1 0 auto;max-width:none}.v-tabs--icons-and-text>.v-tabs-bar{height:72px}.v-tabs--icons-and-text>.v-tabs-bar .v-tab{-webkit-box-orient:vertical;-webkit-box-direction:reverse;-ms-flex-direction:column-reverse;flex-direction:column-reverse}.v-tabs--icons-and-text>.v-tabs-bar .v-tab>:first-child{margin-bottom:6px}.v-tabs--overflow>.v-tabs-bar .v-tab{-webkit-box-flex:1;-ms-flex:1 0 auto;flex:1 0 auto}.v-application--is-ltr .v-tabs--right>.v-tabs-bar .v-tab:first-child,.v-application--is-ltr .v-tabs--right>.v-tabs-bar .v-tabs-slider-wrapper+.v-tab{margin-left:auto}.v-application--is-rtl .v-tabs--right>.v-tabs-bar .v-tab:first-child,.v-application--is-rtl .v-tabs--right>.v-tabs-bar .v-tabs-slider-wrapper+.v-tab{margin-right:auto}.v-application--is-ltr .v-tabs--right>.v-tabs-bar .v-tab:last-child{margin-right:0}.v-application--is-rtl .v-tabs--right>.v-tabs-bar .v-tab:last-child{margin-left:0}.v-tabs--vertical{display:-webkit-box;display:-ms-flexbox;display:flex}.v-tabs--vertical>.v-tabs-bar{-webkit-box-flex:1;-ms-flex:1 0 auto;flex:1 0 auto;height:auto}.v-tabs--vertical>.v-tabs-bar .v-slide-group__next,.v-tabs--vertical>.v-tabs-bar .v-slide-group__prev{display:none}.v-tabs--vertical>.v-tabs-bar .v-tabs-bar__content{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.v-tabs--vertical>.v-tabs-bar .v-tab{height:48px}.v-tabs--vertical>.v-tabs-bar .v-tabs-slider{height:100%}.v-tabs--vertical>.v-window{-webkit-box-flex:0;-ms-flex:0 1 100%;flex:0 1 100%}.v-tabs--vertical.v-tabs--icons-and-text>.v-tabs-bar .v-tab{height:72px}.v-tab--active{color:inherit}.v-tab--active.v-tab:not(:focus):before{opacity:0}.v-tab--active .v-btn.v-btn--flat,.v-tab--active .v-icon{color:inherit}.v-tab--disabled{pointer-events:none;opacity:.5}.v-window{overflow:hidden}.v-window__container{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;height:inherit;position:relative;-webkit-transition:.3s cubic-bezier(.25,.8,.5,1);transition:.3s cubic-bezier(.25,.8,.5,1)}.v-window__container--is-active{overflow:hidden}.v-window__next,.v-window__prev{background:rgba(0,0,0,.3);border-radius:50%;position:absolute;margin:0 16px;top:calc(50% - 20px);z-index:1}.v-window__next .v-btn:hover,.v-window__prev .v-btn:hover{background:none}.v-application--is-ltr .v-window__prev{left:0}.v-application--is-ltr .v-window__next,.v-application--is-rtl .v-window__prev{right:0}.v-application--is-rtl .v-window__next{left:0}.v-window--show-arrows-on-hover{overflow:hidden}.v-window--show-arrows-on-hover .v-window__next,.v-window--show-arrows-on-hover .v-window__prev{-webkit-transition:transform .2s cubic-bezier(.25,.8,.5,1);transition:transform .2s cubic-bezier(.25,.8,.5,1)}.v-application--is-ltr .v-window--show-arrows-on-hover .v-window__prev{-webkit-transform:translateX(-200%);transform:translateX(-200%)}.v-application--is-ltr .v-window--show-arrows-on-hover .v-window__next,.v-application--is-rtl .v-window--show-arrows-on-hover .v-window__prev{-webkit-transform:translateX(200%);transform:translateX(200%)}.v-application--is-rtl .v-window--show-arrows-on-hover .v-window__next{-webkit-transform:translateX(-200%);transform:translateX(-200%)}.v-window--show-arrows-on-hover:hover .v-window__next,.v-window--show-arrows-on-hover:hover .v-window__prev{-webkit-transform:translateX(0);transform:translateX(0)}.v-window-x-reverse-transition-enter-active,.v-window-x-reverse-transition-leave-active,.v-window-x-transition-enter-active,.v-window-x-transition-leave-active,.v-window-y-reverse-transition-enter-active,.v-window-y-reverse-transition-leave-active,.v-window-y-transition-enter-active,.v-window-y-transition-leave-active{-webkit-transition:.3s cubic-bezier(.25,.8,.5,1);transition:.3s cubic-bezier(.25,.8,.5,1)}.v-window-x-reverse-transition-leave,.v-window-x-reverse-transition-leave-to,.v-window-x-transition-leave,.v-window-x-transition-leave-to,.v-window-y-reverse-transition-leave,.v-window-y-reverse-transition-leave-to,.v-window-y-transition-leave,.v-window-y-transition-leave-to{position:absolute!important;top:0;width:100%}.v-window-x-transition-enter{-webkit-transform:translateX(100%);transform:translateX(100%)}.v-window-x-reverse-transition-enter,.v-window-x-transition-leave-to{-webkit-transform:translateX(-100%);transform:translateX(-100%)}.v-window-x-reverse-transition-leave-to{-webkit-transform:translateX(100%);transform:translateX(100%)}.v-window-y-transition-enter{-webkit-transform:translateY(100%);transform:translateY(100%)}.v-window-y-reverse-transition-enter,.v-window-y-transition-leave-to{-webkit-transform:translateY(-100%);transform:translateY(-100%)}.v-window-y-reverse-transition-leave-to{-webkit-transform:translateY(100%);transform:translateY(100%)} \ No newline at end of file +.wrap-text{-webkit-line-clamp:unset!important;word-wrap:break-word;white-space:normal}.v-dialog{border-radius:4px;margin:24px;overflow-y:auto;pointer-events:auto;-webkit-transition:.3s cubic-bezier(.25,.8,.25,1);transition:.3s cubic-bezier(.25,.8,.25,1);width:100%;z-index:inherit;-webkit-box-shadow:0 11px 15px -7px rgba(0,0,0,.2),0 24px 38px 3px rgba(0,0,0,.14),0 9px 46px 8px rgba(0,0,0,.12);box-shadow:0 11px 15px -7px rgba(0,0,0,.2),0 24px 38px 3px rgba(0,0,0,.14),0 9px 46px 8px rgba(0,0,0,.12)}.v-dialog:not(.v-dialog--fullscreen){max-height:90%}.v-dialog>*{width:100%}.v-dialog>.v-card>.v-card__title{font-size:1.25rem;font-weight:500;letter-spacing:.0125em;padding:16px 24px 10px}.v-dialog>.v-card>.v-card__subtitle,.v-dialog>.v-card>.v-card__text{padding:0 24px 20px}.v-dialog>.v-card>.v-card__actions{padding:8px 16px}.v-dialog__content{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;height:100%;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;left:0;pointer-events:none;position:fixed;top:0;-webkit-transition:.2s cubic-bezier(.25,.8,.25,1),z-index 1ms;transition:.2s cubic-bezier(.25,.8,.25,1),z-index 1ms;width:100%;z-index:6;outline:none}.v-dialog__container{display:none}.v-dialog__container--attached{display:inline}.v-dialog--animated{-webkit-animation-duration:.15s;animation-duration:.15s;-webkit-animation-name:animate-dialog;animation-name:animate-dialog;-webkit-animation-timing-function:cubic-bezier(.25,.8,.25,1);animation-timing-function:cubic-bezier(.25,.8,.25,1)}.v-dialog--fullscreen{border-radius:0;margin:0;height:100%;position:fixed;overflow-y:auto;top:0;left:0}.v-dialog--fullscreen>.v-card{min-height:100%;min-width:100%;margin:0!important;padding:0!important}.v-dialog--scrollable,.v-dialog--scrollable>form{display:-webkit-box;display:-ms-flexbox;display:flex}.v-dialog--scrollable>.v-card,.v-dialog--scrollable>form>.v-card{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-ms-flex:1 1 100%;flex:1 1 100%;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;max-height:100%;max-width:100%}.v-dialog--scrollable>.v-card>.v-card__actions,.v-dialog--scrollable>.v-card>.v-card__title,.v-dialog--scrollable>form>.v-card>.v-card__actions,.v-dialog--scrollable>form>.v-card>.v-card__title{-webkit-box-flex:0;-ms-flex:0 0 auto;flex:0 0 auto}.v-dialog--scrollable>.v-card>.v-card__text,.v-dialog--scrollable>form>.v-card>.v-card__text{-webkit-backface-visibility:hidden;backface-visibility:hidden;-webkit-box-flex:1;-ms-flex:1 1 auto;flex:1 1 auto;overflow-y:auto}@-webkit-keyframes animate-dialog{0%{-webkit-transform:scale(1);transform:scale(1)}50%{-webkit-transform:scale(1.03);transform:scale(1.03)}to{-webkit-transform:scale(1);transform:scale(1)}}@keyframes animate-dialog{0%{-webkit-transform:scale(1);transform:scale(1)}50%{-webkit-transform:scale(1.03);transform:scale(1.03)}to{-webkit-transform:scale(1);transform:scale(1)}}.v-chip:not(.v-chip--outlined).accent,.v-chip:not(.v-chip--outlined).error,.v-chip:not(.v-chip--outlined).info,.v-chip:not(.v-chip--outlined).primary,.v-chip:not(.v-chip--outlined).secondary,.v-chip:not(.v-chip--outlined).success,.v-chip:not(.v-chip--outlined).warning{color:#fff}.theme--light.v-chip{border-color:rgba(0,0,0,.12);color:rgba(0,0,0,.87)}.theme--light.v-chip:not(.v-chip--active){background:#e0e0e0}.theme--light.v-chip:hover:before{opacity:.04}.theme--light.v-chip--active:before,.theme--light.v-chip--active:hover:before,.theme--light.v-chip:focus:before{opacity:.12}.theme--light.v-chip--active:focus:before{opacity:.16}.theme--dark.v-chip{border-color:hsla(0,0%,100%,.12);color:#fff}.theme--dark.v-chip:not(.v-chip--active){background:#555}.theme--dark.v-chip:hover:before{opacity:.08}.theme--dark.v-chip--active:before,.theme--dark.v-chip--active:hover:before,.theme--dark.v-chip:focus:before{opacity:.24}.theme--dark.v-chip--active:focus:before{opacity:.32}.v-chip{-webkit-box-align:center;-ms-flex-align:center;align-items:center;cursor:default;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;line-height:20px;max-width:100%;outline:none;overflow:hidden;padding:0 12px;position:relative;text-decoration:none;-webkit-transition-duration:.28s;transition-duration:.28s;-webkit-transition-property:opacity,-webkit-box-shadow;transition-property:opacity,-webkit-box-shadow;transition-property:box-shadow,opacity;transition-property:box-shadow,opacity,-webkit-box-shadow;-webkit-transition-timing-function:cubic-bezier(.4,0,.2,1);transition-timing-function:cubic-bezier(.4,0,.2,1);vertical-align:middle;white-space:nowrap}.v-chip:before{background-color:currentColor;bottom:0;border-radius:inherit;content:"";left:0;opacity:0;position:absolute;pointer-events:none;right:0;top:0}.v-chip .v-avatar{height:24px!important;min-width:24px!important;width:24px!important}.v-chip .v-icon{font-size:24px}.v-application--is-ltr .v-chip .v-avatar--left,.v-application--is-ltr .v-chip .v-icon--left{margin-left:-6px;margin-right:6px}.v-application--is-ltr .v-chip .v-avatar--right,.v-application--is-ltr .v-chip .v-icon--right,.v-application--is-rtl .v-chip .v-avatar--left,.v-application--is-rtl .v-chip .v-icon--left{margin-left:6px;margin-right:-6px}.v-application--is-rtl .v-chip .v-avatar--right,.v-application--is-rtl .v-chip .v-icon--right{margin-left:-6px;margin-right:6px}.v-chip:not(.v-chip--no-color) .v-icon{color:inherit}.v-chip .v-chip__close.v-icon{font-size:18px;max-height:18px;max-width:18px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.v-application--is-ltr .v-chip .v-chip__close.v-icon.v-icon--right{margin-right:-4px}.v-application--is-rtl .v-chip .v-chip__close.v-icon.v-icon--right{margin-left:-4px}.v-chip .v-chip__close.v-icon:active,.v-chip .v-chip__close.v-icon:focus,.v-chip .v-chip__close.v-icon:hover{opacity:.72}.v-chip .v-chip__content{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;height:100%;max-width:100%}.v-chip--active .v-icon{color:inherit}.v-chip--link:before{-webkit-transition:opacity .3s cubic-bezier(.25,.8,.5,1);transition:opacity .3s cubic-bezier(.25,.8,.5,1)}.v-chip--link:focus:before{opacity:.32}.v-chip--clickable{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.v-chip--clickable:active{-webkit-box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12);box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12)}.v-chip--disabled{opacity:.4;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.v-chip__filter{max-width:24px}.v-chip__filter.v-icon{color:inherit}.v-chip__filter.expand-x-transition-enter,.v-chip__filter.expand-x-transition-leave-active{margin:0}.v-chip--pill .v-chip__filter{margin-right:0 16px 0 0}.v-chip--pill .v-avatar{height:32px!important;width:32px!important}.v-application--is-ltr .v-chip--pill .v-avatar--left{margin-left:-12px}.v-application--is-ltr .v-chip--pill .v-avatar--right,.v-application--is-rtl .v-chip--pill .v-avatar--left{margin-right:-12px}.v-application--is-rtl .v-chip--pill .v-avatar--right{margin-left:-12px}.v-chip--label{border-radius:4px!important}.v-chip.v-chip--outlined{border-width:thin;border-style:solid}.v-chip.v-chip--outlined.v-chip--active:before{opacity:.08}.v-chip.v-chip--outlined .v-icon{color:inherit}.v-chip.v-chip--outlined.v-chip.v-chip{background-color:transparent!important}.v-chip.v-chip--selected{background:transparent}.v-chip.v-chip--selected:after{opacity:.28}.v-chip.v-size--x-small{border-radius:8px;font-size:10px;height:16px}.v-chip.v-size--x-small .v-icon{font-size:10px;height:10px;width:10px}.v-chip.v-size--small{border-radius:12px;font-size:12px;height:24px}.v-chip.v-size--small .v-icon{font-size:12px;height:12px;width:12px}.v-chip.v-size--default{border-radius:16px;font-size:14px;height:32px}.v-chip.v-size--default .v-icon{font-size:14px;height:14px;width:14px}.v-chip.v-size--large{border-radius:27px;font-size:16px;height:54px}.v-chip.v-size--large .v-icon{font-size:16px;height:16px;width:16px}.v-chip.v-size--x-large{border-radius:33px;font-size:18px;height:66px}.v-chip.v-size--x-large .v-icon{font-size:18px;height:18px;width:18px}.v-tooltip{display:none}.v-tooltip--attached{display:inline}.v-tooltip__content{background:rgba(97,97,97,.9);color:#fff;border-radius:4px;font-size:14px;line-height:22px;display:inline-block;padding:5px 16px;position:absolute;text-transform:none;width:auto;opacity:1;pointer-events:none}.v-tooltip__content--fixed{position:fixed}.v-tooltip__content[class*=-active]{-webkit-transition-timing-function:cubic-bezier(0,0,.2,1);transition-timing-function:cubic-bezier(0,0,.2,1)}.v-tooltip__content[class*=enter-active]{-webkit-transition-duration:.15s;transition-duration:.15s}.v-tooltip__content[class*=leave-active]{-webkit-transition-duration:75ms;transition-duration:75ms}.v-input--checkbox.v-input--indeterminate.v-input--is-disabled{opacity:.6}.v-input--checkbox.v-input--dense{margin-top:4px}.theme--light.v-data-table tbody tr.v-data-table__selected{background:#f5f5f5}.theme--light.v-data-table .v-row-group__header,.theme--light.v-data-table .v-row-group__summary{background:#eee}.theme--light.v-data-table .v-data-footer{border-top:thin solid rgba(0,0,0,.12)}.theme--light.v-data-table .v-data-table__empty-wrapper{color:rgba(0,0,0,.38)}.theme--dark.v-data-table tbody tr.v-data-table__selected{background:#505050}.theme--dark.v-data-table .v-row-group__header,.theme--dark.v-data-table .v-row-group__summary{background:#616161}.theme--dark.v-data-table .v-data-footer{border-top:thin solid hsla(0,0%,100%,.12)}.theme--dark.v-data-table .v-data-table__empty-wrapper{color:hsla(0,0%,100%,.5)}.v-data-table{border-radius:4px}.v-data-table--mobile>.v-data-table__wrapper tbody{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.v-data-table>.v-data-table__wrapper tbody tr.v-data-table__expanded{border-bottom:0}.v-data-table>.v-data-table__wrapper tbody tr.v-data-table__expanded__content{-webkit-box-shadow:inset 0 4px 8px -5px rgba(50,50,50,.75),inset 0 -4px 8px -5px rgba(50,50,50,.75);box-shadow:inset 0 4px 8px -5px rgba(50,50,50,.75),inset 0 -4px 8px -5px rgba(50,50,50,.75)}.v-data-table>.v-data-table__wrapper tbody tr:first-child:hover td:first-child{border-top-left-radius:4px}.v-data-table>.v-data-table__wrapper tbody tr:first-child:hover td:last-child{border-top-right-radius:4px}.v-data-table>.v-data-table__wrapper tbody tr:last-child:hover td:first-child{border-bottom-left-radius:4px}.v-data-table>.v-data-table__wrapper tbody tr:last-child:hover td:last-child{border-bottom-right-radius:4px}.v-data-table>.v-data-table__wrapper .v-data-table__mobile-table-row{display:initial}.v-data-table>.v-data-table__wrapper .v-data-table__mobile-row{height:auto;min-height:48px}.v-data-table__empty-wrapper{text-align:center}.v-data-table__mobile-row{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.v-data-table__mobile-row__header{font-weight:600}.v-application--is-ltr .v-data-table__mobile-row__header{padding-right:16px}.v-application--is-rtl .v-data-table__mobile-row__header{padding-left:16px}.v-application--is-ltr .v-data-table__mobile-row__cell{text-align:right}.v-application--is-rtl .v-data-table__mobile-row__cell{text-align:left}.v-row-group__header td,.v-row-group__summary td{height:35px}.v-data-table__expand-icon{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer}.v-data-table__expand-icon--active{-webkit-transform:rotate(-180deg);transform:rotate(-180deg)}.v-data-footer{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-align:center;-ms-flex-align:center;align-items:center;font-size:.75rem;padding:0 8px}.v-data-footer .v-btn{color:inherit}.v-application--is-ltr .v-data-footer__icons-before .v-btn:last-child{margin-right:7px}.v-application--is-ltr .v-data-footer__icons-after .v-btn:first-child,.v-application--is-rtl .v-data-footer__icons-before .v-btn:last-child{margin-left:7px}.v-application--is-rtl .v-data-footer__icons-after .v-btn:first-child{margin-right:7px}.v-data-footer__pagination{display:block;text-align:center}.v-application--is-ltr .v-data-footer__pagination{margin:0 32px 0 24px}.v-application--is-rtl .v-data-footer__pagination{margin:0 24px 0 32px}.v-data-footer__select{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-flex:0;-ms-flex:0 0 0px;flex:0 0 0;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end;white-space:nowrap}.v-application--is-ltr .v-data-footer__select{margin-left:auto;margin-right:14px}.v-application--is-rtl .v-data-footer__select{margin-left:14px;margin-right:auto}.v-data-footer__select .v-select{-webkit-box-flex:0;-ms-flex:0 1 0px;flex:0 1 0;padding:0;position:static}.v-application--is-ltr .v-data-footer__select .v-select{margin:13px 0 13px 34px}.v-application--is-rtl .v-data-footer__select .v-select{margin:13px 34px 13px 0}.v-data-footer__select .v-select__selections{-ms-flex-wrap:nowrap;flex-wrap:nowrap}.v-data-footer__select .v-select__selections .v-select__selection--comma{font-size:.75rem}.theme--light.v-select .v-select__selections{color:rgba(0,0,0,.87);min-height:10px}.theme--light.v-select.v-input--is-disabled .v-select__selections,.theme--light.v-select .v-select__selection--disabled{color:rgba(0,0,0,.38)}.theme--light.v-select.v-text-field--solo-inverted.v-input--is-focused .v-select__selections{color:#fff}.theme--dark.v-select .v-select__selections{color:#fff;min-height:10px}.theme--dark.v-select.v-input--is-disabled .v-select__selections,.theme--dark.v-select .v-select__selection--disabled{color:hsla(0,0%,100%,.5)}.theme--dark.v-select.v-text-field--solo-inverted.v-input--is-focused .v-select__selections{color:rgba(0,0,0,.87)}.v-select{position:relative}.v-select:not(.v-select--is-multi).v-text-field--single-line .v-select__selections{-ms-flex-wrap:nowrap;flex-wrap:nowrap}.v-select>.v-input__control>.v-input__slot{cursor:pointer}.v-select .v-chip{-webkit-box-flex:0;-ms-flex:0 1 auto;flex:0 1 auto;margin:4px}.v-select .v-chip--selected:after{opacity:.22}.v-select .fade-transition-leave-active{position:absolute;left:0}.v-select.v-input--is-dirty ::-webkit-input-placeholder{color:transparent!important}.v-select.v-input--is-dirty ::-moz-placeholder{color:transparent!important}.v-select.v-input--is-dirty :-ms-input-placeholder{color:transparent!important}.v-select.v-input--is-dirty ::-ms-input-placeholder{color:transparent!important}.v-select.v-input--is-dirty ::placeholder{color:transparent!important}.v-select:not(.v-input--is-dirty):not(.v-input--is-focused) .v-text-field__prefix{line-height:20px;top:7px;-webkit-transition:.3s cubic-bezier(.25,.8,.5,1);transition:.3s cubic-bezier(.25,.8,.5,1)}.v-select.v-text-field--enclosed:not(.v-text-field--single-line):not(.v-text-field--outlined) .v-select__selections{padding-top:20px}.v-select.v-text-field--outlined:not(.v-text-field--single-line) .v-select__selections{padding:8px 0}.v-select.v-text-field--outlined:not(.v-text-field--single-line).v-input--dense .v-select__selections{padding:4px 0}.v-select.v-text-field input{-webkit-box-flex:1;-ms-flex:1 1;flex:1 1;min-width:0;pointer-events:none;position:relative}.v-select.v-text-field:not(.v-text-field--single-line) input{margin-top:0}.v-select.v-select--is-menu-active .v-input__icon--append .v-icon{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.v-select.v-select--chips input{margin:0}.v-select.v-select--chips .v-select__selections{min-height:42px}.v-select.v-select--chips.v-input--dense .v-select__selections{min-height:40px}.v-select.v-select--chips .v-chip--select.v-chip--active:before{opacity:.2}.v-select.v-select--chips.v-select--chips--small .v-select__selections{min-height:26px}.v-select.v-select--chips:not(.v-text-field--single-line).v-text-field--box .v-select__selections,.v-select.v-select--chips:not(.v-text-field--single-line).v-text-field--enclosed .v-select__selections{min-height:68px}.v-select.v-select--chips:not(.v-text-field--single-line).v-text-field--box.v-input--dense .v-select__selections,.v-select.v-select--chips:not(.v-text-field--single-line).v-text-field--enclosed.v-input--dense .v-select__selections{min-height:40px}.v-select.v-select--chips:not(.v-text-field--single-line).v-text-field--box.v-select--chips--small .v-select__selections,.v-select.v-select--chips:not(.v-text-field--single-line).v-text-field--enclosed.v-select--chips--small .v-select__selections{min-height:26px}.v-select.v-select--chips:not(.v-text-field--single-line).v-text-field--box.v-select--chips--small.v-input--dense .v-select__selections,.v-select.v-select--chips:not(.v-text-field--single-line).v-text-field--enclosed.v-select--chips--small.v-input--dense .v-select__selections{min-height:38px}.v-select.v-text-field--reverse .v-select__selections,.v-select.v-text-field--reverse .v-select__slot{-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}.v-select__selections{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-ms-flex:1 1;flex:1 1;-ms-flex-wrap:wrap;flex-wrap:wrap;line-height:18px;max-width:100%;min-width:0}.v-select__selection{max-width:90%}.v-select__selection--comma{margin:7px 4px 7px 0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v-select.v-input--dense .v-select__selection--comma{margin:5px 4px 3px 0}.v-select.v-input--dense .v-chip{margin:0 4px 0 4px}.v-select__slot{position:relative;-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;max-width:100%;min-width:0;width:100%}.v-select:not(.v-text-field--single-line):not(.v-text-field--outlined) .v-select__slot>input{-ms-flex-item-align:end;align-self:flex-end}.v-simple-checkbox{-ms-flex-item-align:center;align-self:center;line-height:normal;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.v-simple-checkbox .v-icon{cursor:pointer}.v-simple-checkbox--disabled{cursor:default}.v-menu{display:none}.v-menu--attached{display:inline}.v-menu__content{position:absolute;display:inline-block;max-width:80%;overflow-y:auto;overflow-x:hidden;contain:content;-webkit-box-shadow:0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12);box-shadow:0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12);border-radius:4px}.v-menu__content--active{pointer-events:none}.v-menu__content--auto .v-list-item{-webkit-transition-property:opacity,-webkit-transform;transition-property:opacity,-webkit-transform;transition-property:transform,opacity;transition-property:transform,opacity,-webkit-transform;-webkit-transition-duration:.3s;transition-duration:.3s;-webkit-transition-timing-function:cubic-bezier(.25,.8,.25,1);transition-timing-function:cubic-bezier(.25,.8,.25,1)}.v-menu__content--fixed{position:fixed}.v-menu__content>.card{contain:content;-webkit-backface-visibility:hidden;backface-visibility:hidden}.v-menu>.v-menu__content{max-width:none}.v-menu-transition-enter .v-list-item{min-width:0;pointer-events:none}.v-menu-transition-enter-to .v-list-item{-webkit-transition-delay:.1s;transition-delay:.1s}.v-menu-transition-leave-active,.v-menu-transition-leave-to{pointer-events:none}.v-menu-transition-enter,.v-menu-transition-leave-to{opacity:0}.v-menu-transition-enter-active,.v-menu-transition-leave-active{-webkit-transition:all .3s cubic-bezier(.25,.8,.25,1);transition:all .3s cubic-bezier(.25,.8,.25,1)}.v-menu-transition-enter.v-menu__content--auto{-webkit-transition:none!important;transition:none!important}.v-menu-transition-enter.v-menu__content--auto .v-list-item{opacity:0;-webkit-transform:translateY(-15px);transform:translateY(-15px)}.v-menu-transition-enter.v-menu__content--auto .v-list-item--active{opacity:1;-webkit-transform:none!important;transform:none!important;pointer-events:auto}.theme--light.v-data-table .v-data-table-header th.sortable .v-data-table-header__icon{color:rgba(0,0,0,.38)}.theme--light.v-data-table .v-data-table-header th.sortable.active,.theme--light.v-data-table .v-data-table-header th.sortable.active .v-data-table-header__icon,.theme--light.v-data-table .v-data-table-header th.sortable:hover{color:rgba(0,0,0,.87)}.theme--light.v-data-table .v-data-table-header__sort-badge{background-color:rgba(0,0,0,.12);color:rgba(0,0,0,.87)}.theme--dark.v-data-table .v-data-table-header th.sortable .v-data-table-header__icon{color:hsla(0,0%,100%,.5)}.theme--dark.v-data-table .v-data-table-header th.sortable.active,.theme--dark.v-data-table .v-data-table-header th.sortable.active .v-data-table-header__icon,.theme--dark.v-data-table .v-data-table-header th.sortable:hover{color:#fff}.theme--dark.v-data-table .v-data-table-header__sort-badge{background-color:hsla(0,0%,100%,.12);color:#fff}.v-data-table-header th.sortable{pointer-events:auto;cursor:pointer;outline:0}.v-data-table-header th.sortable .v-data-table-header__icon{line-height:.9}.v-data-table-header th.active .v-data-table-header__icon,.v-data-table-header th:hover .v-data-table-header__icon{-webkit-transform:none;transform:none;opacity:1}.v-data-table-header th.desc .v-data-table-header__icon{-webkit-transform:rotate(-180deg);transform:rotate(-180deg)}.v-data-table-header__icon{display:inline-block;opacity:0;-webkit-transition:.3s cubic-bezier(.25,.8,.5,1);transition:.3s cubic-bezier(.25,.8,.5,1)}.v-data-table-header__sort-badge{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;border:0;border-radius:50%;min-width:18px;min-height:18px;height:18px;width:18px}.v-data-table-header-mobile th{height:auto}.v-data-table-header-mobile__wrapper{display:-webkit-box;display:-ms-flexbox;display:flex}.v-data-table-header-mobile__wrapper .v-select{margin-bottom:8px}.v-data-table-header-mobile__wrapper .v-select .v-chip{height:24px}.v-data-table-header-mobile__wrapper .v-select .v-chip__close.desc .v-icon{-webkit-transform:rotate(-180deg);transform:rotate(-180deg)}.v-data-table-header-mobile__select{min-width:56px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.theme--light.v-data-table{background-color:#fff;color:rgba(0,0,0,.87)}.theme--light.v-data-table .v-data-table__divider{border-right:thin solid rgba(0,0,0,.12)}.theme--light.v-data-table.v-data-table--fixed-header thead th{background:#fff;-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,.12);box-shadow:inset 0 -1px 0 rgba(0,0,0,.12)}.theme--light.v-data-table>.v-data-table__wrapper>table>thead>tr>th{color:rgba(0,0,0,.6)}.theme--light.v-data-table>.v-data-table__wrapper>table>tbody>tr:not(:last-child)>td:last-child,.theme--light.v-data-table>.v-data-table__wrapper>table>tbody>tr:not(:last-child)>td:not(.v-data-table__mobile-row),.theme--light.v-data-table>.v-data-table__wrapper>table>tbody>tr:not(:last-child)>th:last-child,.theme--light.v-data-table>.v-data-table__wrapper>table>tbody>tr:not(:last-child)>th:not(.v-data-table__mobile-row),.theme--light.v-data-table>.v-data-table__wrapper>table>thead>tr:last-child>th{border-bottom:thin solid rgba(0,0,0,.12)}.theme--light.v-data-table>.v-data-table__wrapper>table>tbody>tr.active{background:#f5f5f5}.theme--light.v-data-table>.v-data-table__wrapper>table>tbody>tr:hover:not(.v-data-table__expanded__content):not(.v-data-table__empty-wrapper){background:#eee}.theme--light.v-data-table>.v-data-table__wrapper>table>tfoot>tr>td:not(.v-data-table__mobile-row),.theme--light.v-data-table>.v-data-table__wrapper>table>tfoot>tr>th:not(.v-data-table__mobile-row){border-top:thin solid rgba(0,0,0,.12)}.theme--dark.v-data-table{background-color:#1e1e1e;color:#fff}.theme--dark.v-data-table .v-data-table__divider{border-right:thin solid hsla(0,0%,100%,.12)}.theme--dark.v-data-table.v-data-table--fixed-header thead th{background:#1e1e1e;-webkit-box-shadow:inset 0 -1px 0 hsla(0,0%,100%,.12);box-shadow:inset 0 -1px 0 hsla(0,0%,100%,.12)}.theme--dark.v-data-table>.v-data-table__wrapper>table>thead>tr>th{color:hsla(0,0%,100%,.7)}.theme--dark.v-data-table>.v-data-table__wrapper>table>tbody>tr:not(:last-child)>td:last-child,.theme--dark.v-data-table>.v-data-table__wrapper>table>tbody>tr:not(:last-child)>td:not(.v-data-table__mobile-row),.theme--dark.v-data-table>.v-data-table__wrapper>table>tbody>tr:not(:last-child)>th:last-child,.theme--dark.v-data-table>.v-data-table__wrapper>table>tbody>tr:not(:last-child)>th:not(.v-data-table__mobile-row),.theme--dark.v-data-table>.v-data-table__wrapper>table>thead>tr:last-child>th{border-bottom:thin solid hsla(0,0%,100%,.12)}.theme--dark.v-data-table>.v-data-table__wrapper>table>tbody>tr.active{background:#505050}.theme--dark.v-data-table>.v-data-table__wrapper>table>tbody>tr:hover:not(.v-data-table__expanded__content):not(.v-data-table__empty-wrapper){background:#616161}.theme--dark.v-data-table>.v-data-table__wrapper>table>tfoot>tr>td:not(.v-data-table__mobile-row),.theme--dark.v-data-table>.v-data-table__wrapper>table>tfoot>tr>th:not(.v-data-table__mobile-row){border-top:thin solid hsla(0,0%,100%,.12)}.v-data-table{line-height:1.5;max-width:100%}.v-data-table>.v-data-table__wrapper>table{width:100%;border-spacing:0}.v-data-table>.v-data-table__wrapper>table>tbody>tr>td,.v-data-table>.v-data-table__wrapper>table>tbody>tr>th,.v-data-table>.v-data-table__wrapper>table>tfoot>tr>td,.v-data-table>.v-data-table__wrapper>table>tfoot>tr>th,.v-data-table>.v-data-table__wrapper>table>thead>tr>td,.v-data-table>.v-data-table__wrapper>table>thead>tr>th{padding:0 16px;-webkit-transition:height .2s cubic-bezier(.4,0,.6,1);transition:height .2s cubic-bezier(.4,0,.6,1)}.v-data-table>.v-data-table__wrapper>table>tbody>tr>th,.v-data-table>.v-data-table__wrapper>table>tfoot>tr>th,.v-data-table>.v-data-table__wrapper>table>thead>tr>th{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-size:.75rem;height:48px}.v-application--is-ltr .v-data-table>.v-data-table__wrapper>table>tbody>tr>th,.v-application--is-ltr .v-data-table>.v-data-table__wrapper>table>tfoot>tr>th,.v-application--is-ltr .v-data-table>.v-data-table__wrapper>table>thead>tr>th{text-align:left}.v-application--is-rtl .v-data-table>.v-data-table__wrapper>table>tbody>tr>th,.v-application--is-rtl .v-data-table>.v-data-table__wrapper>table>tfoot>tr>th,.v-application--is-rtl .v-data-table>.v-data-table__wrapper>table>thead>tr>th{text-align:right}.v-data-table>.v-data-table__wrapper>table>tbody>tr>td,.v-data-table>.v-data-table__wrapper>table>tfoot>tr>td,.v-data-table>.v-data-table__wrapper>table>thead>tr>td{font-size:.875rem;height:48px}.v-data-table__wrapper{overflow-x:auto;overflow-y:hidden}.v-data-table__progress{height:auto!important}.v-data-table__progress th{height:auto!important;border:none!important;padding:0;position:relative}.v-data-table--dense>.v-data-table__wrapper>table>tbody>tr>td,.v-data-table--dense>.v-data-table__wrapper>table>tbody>tr>th,.v-data-table--dense>.v-data-table__wrapper>table>tfoot>tr>td,.v-data-table--dense>.v-data-table__wrapper>table>tfoot>tr>th,.v-data-table--dense>.v-data-table__wrapper>table>thead>tr>td,.v-data-table--dense>.v-data-table__wrapper>table>thead>tr>th{height:32px}.v-data-table--has-top>.v-data-table__wrapper>table>tbody>tr:first-child:hover>td:first-child{border-top-left-radius:0}.v-data-table--has-top>.v-data-table__wrapper>table>tbody>tr:first-child:hover>td:last-child{border-top-right-radius:0}.v-data-table--has-bottom>.v-data-table__wrapper>table>tbody>tr:last-child:hover>td:first-child{border-bottom-left-radius:0}.v-data-table--has-bottom>.v-data-table__wrapper>table>tbody>tr:last-child:hover>td:last-child{border-bottom-right-radius:0}.v-data-table--fixed-header>.v-data-table__wrapper,.v-data-table--fixed-height .v-data-table__wrapper{overflow-y:auto}.v-data-table--fixed-header>.v-data-table__wrapper>table>thead>tr>th{border-bottom:0!important;position:sticky;top:0;z-index:2}.v-data-table--fixed-header>.v-data-table__wrapper>table>thead>tr:nth-child(2)>th{top:48px}.v-application--is-ltr .v-data-table--fixed-header .v-data-footer{margin-right:17px}.v-application--is-rtl .v-data-table--fixed-header .v-data-footer{margin-left:17px}.v-data-table--fixed-header.v-data-table--dense>.v-data-table__wrapper>table>thead>tr:nth-child(2)>th{top:32px}.no-scrollbar{overflow-y:scroll}.no-scrollbar::-webkit-scrollbar{display:none}.no-scrollbar{-ms-overflow-style:none;scrollbar-width:none}.v-chip-group .v-chip{margin:4px 8px 4px 0}.v-chip-group .v-chip--active{color:inherit}.v-chip-group .v-chip--active.v-chip--no-color:after{opacity:.22}.v-chip-group .v-chip--active.v-chip--no-color:focus:after{opacity:.32}.v-chip-group .v-slide-group__content{padding:4px 0}.v-chip-group--column .v-slide-group__content{white-space:normal;-ms-flex-wrap:wrap;flex-wrap:wrap;max-width:100%}.v-slide-group{display:-webkit-box;display:-ms-flexbox;display:flex}.v-slide-group:not(.v-slide-group--has-affixes)>.v-slide-group__next,.v-slide-group:not(.v-slide-group--has-affixes)>.v-slide-group__prev{display:none}.v-slide-group.v-item-group>.v-slide-group__next,.v-slide-group.v-item-group>.v-slide-group__prev{cursor:pointer}.v-slide-item{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-flex:0;-ms-flex:0 1 auto;flex:0 1 auto}.v-slide-group__next,.v-slide-group__prev{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:0;-ms-flex:0 1 52px;flex:0 1 52px;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;min-width:52px}.v-slide-group__content{-ms-flex:1 0 auto;flex:1 0 auto;position:relative;-webkit-transition:.3s cubic-bezier(.25,.8,.5,1);transition:.3s cubic-bezier(.25,.8,.5,1);white-space:nowrap}.v-slide-group__content,.v-slide-group__wrapper{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:1}.v-slide-group__wrapper{contain:content;-ms-flex:1 1 auto;flex:1 1 auto;overflow:hidden}.v-slide-group__next--disabled,.v-slide-group__prev--disabled{pointer-events:none}.theme--light.v-slider .v-slider__thumb,.theme--light.v-slider .v-slider__track-background,.theme--light.v-slider .v-slider__track-fill{background:rgba(0,0,0,.26)}.theme--dark.v-slider .v-slider__thumb,.theme--dark.v-slider .v-slider__track-background,.theme--dark.v-slider .v-slider__track-fill{background:hsla(0,0%,100%,.2)}.v-slider{cursor:default;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;position:relative;-webkit-box-flex:1;-ms-flex:1;flex:1;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.v-slider input{cursor:default;padding:0;width:100%;display:none}.v-slider__track-container{position:absolute;border-radius:0}.v-slider__thumb-container,.v-slider__track-background,.v-slider__track-fill{position:absolute;-webkit-transition:.3s cubic-bezier(.25,.8,.5,1);transition:.3s cubic-bezier(.25,.8,.5,1)}.v-slider__thumb-container{outline:none;top:50%}.v-slider__thumb-container:hover .v-slider__thumb:before{-webkit-transform:scale(1);transform:scale(1)}.v-slider__thumb{width:12px;height:12px;left:-6px;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.v-slider__thumb,.v-slider__thumb:before{position:absolute;border-radius:50%;-webkit-transition:.3s cubic-bezier(.25,.8,.5,1);transition:.3s cubic-bezier(.25,.8,.5,1)}.v-slider__thumb:before{content:"";color:inherit;width:36px;height:36px;background:currentColor;opacity:.3;left:-12px;top:-12px;-webkit-transform:scale(.1);transform:scale(.1);pointer-events:none}.v-slider__thumb:after{content:"";width:42px;height:42px;position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.v-slider__tick,.v-slider__ticks-container{position:absolute}.v-slider__tick{opacity:0;background-color:rgba(0,0,0,.5);-webkit-transition:.3s cubic-bezier(.25,.8,.5,1);transition:.3s cubic-bezier(.25,.8,.5,1);border-radius:0}.v-slider__tick--filled{background-color:hsla(0,0%,100%,.5)}.v-application--is-ltr .v-slider__tick:first-child .v-slider__tick-label{-webkit-transform:none;transform:none}.v-application--is-rtl .v-slider__tick:first-child .v-slider__tick-label{-webkit-transform:translateX(100%);transform:translateX(100%)}.v-application--is-ltr .v-slider__tick:last-child .v-slider__tick-label{-webkit-transform:translateX(-100%);transform:translateX(-100%)}.v-application--is-rtl .v-slider__tick:last-child .v-slider__tick-label{-webkit-transform:none;transform:none}.v-slider__tick-label{position:absolute;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;white-space:nowrap}.v-slider__thumb-label-container{top:0}.v-slider__thumb-label,.v-slider__thumb-label-container{position:absolute;left:0;-webkit-transition:.3s cubic-bezier(.25,.8,.25,1);transition:.3s cubic-bezier(.25,.8,.25,1)}.v-slider__thumb-label{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;font-size:.75rem;color:#fff;width:32px;height:32px;border-radius:50% 50% 0;bottom:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.v-slider--horizontal{min-height:32px;margin-left:8px;margin-right:8px}.v-slider--horizontal .v-slider__track-container{width:100%;height:2px;left:0;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.v-slider--horizontal .v-slider__track-background,.v-slider--horizontal .v-slider__track-fill{height:100%}.v-slider--horizontal .v-slider__ticks-container{left:0;height:2px;width:100%}.v-application--is-ltr .v-slider--horizontal .v-slider__tick:first-child .v-slider__tick-label,.v-application--is-rtl .v-slider--horizontal .v-slider__tick:first-child .v-slider__tick-label{-webkit-transform:translateX(0);transform:translateX(0)}.v-application--is-ltr .v-slider--horizontal .v-slider__tick:last-child .v-slider__tick-label{-webkit-transform:translateX(-100%);transform:translateX(-100%)}.v-application--is-rtl .v-slider--horizontal .v-slider__tick:last-child .v-slider__tick-label{-webkit-transform:translateX(100%);transform:translateX(100%)}.v-slider--horizontal .v-slider__tick .v-slider__tick-label{top:8px}.v-application--is-ltr .v-slider--horizontal .v-slider__tick .v-slider__tick-label{-webkit-transform:translateX(-50%);transform:translateX(-50%)}.v-application--is-rtl .v-slider--horizontal .v-slider__tick .v-slider__tick-label{-webkit-transform:translateX(50%);transform:translateX(50%)}.v-slider--horizontal .v-slider__thumb-label{-webkit-transform:translateY(-20%) translateY(-12px) translateX(-50%) rotate(45deg);transform:translateY(-20%) translateY(-12px) translateX(-50%) rotate(45deg)}.v-slider--horizontal .v-slider__thumb-label>*{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.v-slider--vertical{min-height:150px;margin-top:12px;margin-bottom:12px}.v-slider--vertical .v-slider__track-container{height:100%;width:2px;left:50%;top:0;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.v-slider--vertical .v-slider__track-background,.v-slider--vertical .v-slider__track-fill{width:100%}.v-slider--vertical .v-slider__thumb-container{left:50%}.v-slider--vertical .v-slider__ticks-container{top:0;width:2px;height:100%;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.v-application--is-ltr .v-slider--vertical .v-slider__tick .v-slider__tick-label,.v-application--is-ltr .v-slider--vertical .v-slider__tick:first-child .v-slider__tick-label,.v-application--is-ltr .v-slider--vertical .v-slider__tick:last-child .v-slider__tick-label{-webkit-transform:translateY(-50%);transform:translateY(-50%);left:12px}.v-application--is-rtl .v-slider--vertical .v-slider__tick .v-slider__tick-label,.v-application--is-rtl .v-slider--vertical .v-slider__tick:first-child .v-slider__tick-label,.v-application--is-rtl .v-slider--vertical .v-slider__tick:last-child .v-slider__tick-label{-webkit-transform:translateY(-50%);transform:translateY(-50%);right:12px}.v-slider--vertical .v-slider__thumb-label>*{-webkit-transform:rotate(-135deg);transform:rotate(-135deg)}.v-slider__thumb-container--focused .v-slider__thumb:before{-webkit-transform:scale(1);transform:scale(1)}.v-slider--active .v-slider__tick{opacity:1}.v-slider__thumb-container--active .v-slider__thumb:before{-webkit-transform:scale(1.5)!important;transform:scale(1.5)!important}.v-slider--disabled{pointer-events:none}.v-slider--disabled .v-slider__thumb{width:8px;height:8px;left:-4px}.v-slider--disabled .v-slider__thumb:before{display:none}.v-slider__ticks-container--always-show .v-slider__tick{opacity:1}.v-input__slider.v-input--is-readonly>.v-input__control{pointer-events:none}.v-application--is-ltr .v-input__slider .v-input__slot .v-label{margin-left:0;margin-right:12px}.v-application--is-ltr .v-input__slider--inverse-label .v-input__slot .v-label,.v-application--is-rtl .v-input__slider .v-input__slot .v-label{margin-right:0;margin-left:12px}.v-application--is-rtl .v-input__slider--inverse-label .v-input__slot .v-label{margin-left:0;margin-right:12px}.v-input__slider--vertical{-webkit-box-align:center;-ms-flex-align:center;align-items:center}.v-application--is-ltr .v-input__slider--vertical{-webkit-box-orient:vertical;-webkit-box-direction:reverse;-ms-flex-direction:column-reverse;flex-direction:column-reverse}.v-application--is-rtl .v-input__slider--vertical{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.v-input__slider--vertical .v-input__append-outer,.v-input__slider--vertical .v-input__prepend-outer,.v-input__slider--vertical .v-input__slot{margin:0}.v-input__slider--vertical .v-messages{display:none}.v-input--has-state .v-slider__track-background{opacity:.4}.resizable-content[data-v-4d945b84]{height:450px;width:100%;background-color:#0ff}.theme--light.v-tabs>.v-tabs-bar{background-color:#fff}.theme--light.v-tabs>.v-tabs-bar .v-tab--disabled,.theme--light.v-tabs>.v-tabs-bar .v-tab:not(.v-tab--active),.theme--light.v-tabs>.v-tabs-bar .v-tab:not(.v-tab--active)>.v-btn,.theme--light.v-tabs>.v-tabs-bar .v-tab:not(.v-tab--active)>.v-icon{color:rgba(0,0,0,.54)}.theme--light.v-tabs .v-tab:hover:before{opacity:.04}.theme--light.v-tabs .v-tab--active:before,.theme--light.v-tabs .v-tab--active:hover:before,.theme--light.v-tabs .v-tab:focus:before{opacity:.12}.theme--light.v-tabs .v-tab--active:focus:before{opacity:.16}.theme--dark.v-tabs>.v-tabs-bar{background-color:#1e1e1e}.theme--dark.v-tabs>.v-tabs-bar .v-tab--disabled,.theme--dark.v-tabs>.v-tabs-bar .v-tab:not(.v-tab--active),.theme--dark.v-tabs>.v-tabs-bar .v-tab:not(.v-tab--active)>.v-btn,.theme--dark.v-tabs>.v-tabs-bar .v-tab:not(.v-tab--active)>.v-icon{color:hsla(0,0%,100%,.6)}.theme--dark.v-tabs .v-tab:hover:before{opacity:.08}.theme--dark.v-tabs .v-tab--active:before,.theme--dark.v-tabs .v-tab--active:hover:before,.theme--dark.v-tabs .v-tab:focus:before{opacity:.24}.theme--dark.v-tabs .v-tab--active:focus:before{opacity:.32}.theme--light.v-tabs-items{background-color:#fff}.theme--dark.v-tabs-items{background-color:#1e1e1e}.v-tabs-bar.accent .v-tab,.v-tabs-bar.accent .v-tabs-slider,.v-tabs-bar.error .v-tab,.v-tabs-bar.error .v-tabs-slider,.v-tabs-bar.info .v-tab,.v-tabs-bar.info .v-tabs-slider,.v-tabs-bar.primary .v-tab,.v-tabs-bar.primary .v-tabs-slider,.v-tabs-bar.secondary .v-tab,.v-tabs-bar.secondary .v-tabs-slider,.v-tabs-bar.success .v-tab,.v-tabs-bar.success .v-tabs-slider,.v-tabs-bar.warning .v-tab,.v-tabs-bar.warning .v-tabs-slider{color:#fff}.v-tabs{-webkit-box-flex:1;-ms-flex:1 1 auto;flex:1 1 auto;width:100%}.v-tabs .v-menu__activator{height:100%}.v-tabs.v.tabs--vertical.v-tabs--right{-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}.v-tabs:not(.v-tabs--vertical) .v-tab{white-space:normal}.v-tabs:not(.v-tabs--vertical).v-tabs--right>.v-slide-group--is-overflowing.v-tabs-bar--is-mobile:not(.v-slide-group--has-affixes) .v-slide-group__next,.v-tabs:not(.v-tabs--vertical):not(.v-tabs--right)>.v-slide-group--is-overflowing.v-tabs-bar--is-mobile:not(.v-slide-group--has-affixes) .v-slide-group__prev{display:initial;visibility:hidden}.v-tabs-bar{border-radius:inherit;height:48px}.v-tabs-bar.v-item-group>*{cursor:auto}.v-tab{-webkit-box-align:center;-ms-flex-align:center;align-items:center;cursor:pointer;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:0;-ms-flex:0 1 auto;flex:0 1 auto;font-size:.875rem;font-weight:500;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;letter-spacing:.0892857143em;line-height:normal;min-width:90px;max-width:360px;outline:none;padding:0 16px;position:relative;text-align:center;text-decoration:none;text-transform:uppercase;-webkit-transition:none;transition:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.v-tab.v-tab{color:inherit}.v-tab:before{bottom:0;content:"";left:0;opacity:0;pointer-events:none;position:absolute;right:0;top:0;-webkit-transition:.3s cubic-bezier(.25,.8,.5,1);transition:.3s cubic-bezier(.25,.8,.5,1)}.v-tab:before,.v-tabs-slider{background-color:currentColor}.v-tabs-slider{height:100%;width:100%}.v-tabs-slider-wrapper{bottom:0;margin:0!important;position:absolute;-webkit-transition:.3s cubic-bezier(.25,.8,.5,1);transition:.3s cubic-bezier(.25,.8,.5,1);z-index:1}.v-application--is-ltr .v-tabs--align-with-title>.v-tabs-bar:not(.v-tabs-bar--show-arrows):not(.v-slide-group--is-overflowing)>.v-slide-group__wrapper>.v-tabs-bar__content>.v-tab:first-child,.v-application--is-ltr .v-tabs--align-with-title>.v-tabs-bar:not(.v-tabs-bar--show-arrows):not(.v-slide-group--is-overflowing)>.v-slide-group__wrapper>.v-tabs-bar__content>.v-tabs-slider-wrapper+.v-tab{margin-left:42px}.v-application--is-rtl .v-tabs--align-with-title>.v-tabs-bar:not(.v-tabs-bar--show-arrows):not(.v-slide-group--is-overflowing)>.v-slide-group__wrapper>.v-tabs-bar__content>.v-tab:first-child,.v-application--is-rtl .v-tabs--align-with-title>.v-tabs-bar:not(.v-tabs-bar--show-arrows):not(.v-slide-group--is-overflowing)>.v-slide-group__wrapper>.v-tabs-bar__content>.v-tabs-slider-wrapper+.v-tab{margin-right:42px}.v-application--is-ltr .v-tabs--centered>.v-tabs-bar .v-tabs-bar__content>:last-child,.v-application--is-ltr .v-tabs--fixed-tabs>.v-tabs-bar .v-tabs-bar__content>:last-child{margin-right:auto}.v-application--is-ltr .v-tabs--centered>.v-tabs-bar .v-tabs-bar__content>:first-child:not(.v-tabs-slider-wrapper),.v-application--is-ltr .v-tabs--centered>.v-tabs-bar .v-tabs-slider-wrapper+*,.v-application--is-ltr .v-tabs--fixed-tabs>.v-tabs-bar .v-tabs-bar__content>:first-child:not(.v-tabs-slider-wrapper),.v-application--is-ltr .v-tabs--fixed-tabs>.v-tabs-bar .v-tabs-slider-wrapper+*,.v-application--is-rtl .v-tabs--centered>.v-tabs-bar .v-tabs-bar__content>:last-child,.v-application--is-rtl .v-tabs--fixed-tabs>.v-tabs-bar .v-tabs-bar__content>:last-child{margin-left:auto}.v-application--is-rtl .v-tabs--centered>.v-tabs-bar .v-tabs-bar__content>:first-child:not(.v-tabs-slider-wrapper),.v-application--is-rtl .v-tabs--centered>.v-tabs-bar .v-tabs-slider-wrapper+*,.v-application--is-rtl .v-tabs--fixed-tabs>.v-tabs-bar .v-tabs-bar__content>:first-child:not(.v-tabs-slider-wrapper),.v-application--is-rtl .v-tabs--fixed-tabs>.v-tabs-bar .v-tabs-slider-wrapper+*{margin-right:auto}.v-tabs--fixed-tabs>.v-tabs-bar .v-tab{-webkit-box-flex:1;-ms-flex:1 1 auto;flex:1 1 auto;width:100%}.v-tabs--grow>.v-tabs-bar .v-tab{-webkit-box-flex:1;-ms-flex:1 0 auto;flex:1 0 auto;max-width:none}.v-tabs--icons-and-text>.v-tabs-bar{height:72px}.v-tabs--icons-and-text>.v-tabs-bar .v-tab{-webkit-box-orient:vertical;-webkit-box-direction:reverse;-ms-flex-direction:column-reverse;flex-direction:column-reverse}.v-tabs--icons-and-text>.v-tabs-bar .v-tab>:first-child{margin-bottom:6px}.v-tabs--overflow>.v-tabs-bar .v-tab{-webkit-box-flex:1;-ms-flex:1 0 auto;flex:1 0 auto}.v-application--is-ltr .v-tabs--right>.v-tabs-bar .v-tab:first-child,.v-application--is-ltr .v-tabs--right>.v-tabs-bar .v-tabs-slider-wrapper+.v-tab{margin-left:auto}.v-application--is-rtl .v-tabs--right>.v-tabs-bar .v-tab:first-child,.v-application--is-rtl .v-tabs--right>.v-tabs-bar .v-tabs-slider-wrapper+.v-tab{margin-right:auto}.v-application--is-ltr .v-tabs--right>.v-tabs-bar .v-tab:last-child{margin-right:0}.v-application--is-rtl .v-tabs--right>.v-tabs-bar .v-tab:last-child{margin-left:0}.v-tabs--vertical{display:-webkit-box;display:-ms-flexbox;display:flex}.v-tabs--vertical>.v-tabs-bar{-webkit-box-flex:1;-ms-flex:1 0 auto;flex:1 0 auto;height:auto}.v-tabs--vertical>.v-tabs-bar .v-slide-group__next,.v-tabs--vertical>.v-tabs-bar .v-slide-group__prev{display:none}.v-tabs--vertical>.v-tabs-bar .v-tabs-bar__content{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.v-tabs--vertical>.v-tabs-bar .v-tab{height:48px}.v-tabs--vertical>.v-tabs-bar .v-tabs-slider{height:100%}.v-tabs--vertical>.v-window{-webkit-box-flex:0;-ms-flex:0 1 100%;flex:0 1 100%}.v-tabs--vertical.v-tabs--icons-and-text>.v-tabs-bar .v-tab{height:72px}.v-tab--active{color:inherit}.v-tab--active.v-tab:not(:focus):before{opacity:0}.v-tab--active .v-btn.v-btn--flat,.v-tab--active .v-icon{color:inherit}.v-tab--disabled{pointer-events:none;opacity:.5}.v-window{overflow:hidden}.v-window__container{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;height:inherit;position:relative;-webkit-transition:.3s cubic-bezier(.25,.8,.5,1);transition:.3s cubic-bezier(.25,.8,.5,1)}.v-window__container--is-active{overflow:hidden}.v-window__next,.v-window__prev{background:rgba(0,0,0,.3);border-radius:50%;position:absolute;margin:0 16px;top:calc(50% - 20px);z-index:1}.v-window__next .v-btn:hover,.v-window__prev .v-btn:hover{background:none}.v-application--is-ltr .v-window__prev{left:0}.v-application--is-ltr .v-window__next,.v-application--is-rtl .v-window__prev{right:0}.v-application--is-rtl .v-window__next{left:0}.v-window--show-arrows-on-hover{overflow:hidden}.v-window--show-arrows-on-hover .v-window__next,.v-window--show-arrows-on-hover .v-window__prev{-webkit-transition:transform .2s cubic-bezier(.25,.8,.5,1);transition:transform .2s cubic-bezier(.25,.8,.5,1)}.v-application--is-ltr .v-window--show-arrows-on-hover .v-window__prev{-webkit-transform:translateX(-200%);transform:translateX(-200%)}.v-application--is-ltr .v-window--show-arrows-on-hover .v-window__next,.v-application--is-rtl .v-window--show-arrows-on-hover .v-window__prev{-webkit-transform:translateX(200%);transform:translateX(200%)}.v-application--is-rtl .v-window--show-arrows-on-hover .v-window__next{-webkit-transform:translateX(-200%);transform:translateX(-200%)}.v-window--show-arrows-on-hover:hover .v-window__next,.v-window--show-arrows-on-hover:hover .v-window__prev{-webkit-transform:translateX(0);transform:translateX(0)}.v-window-x-reverse-transition-enter-active,.v-window-x-reverse-transition-leave-active,.v-window-x-transition-enter-active,.v-window-x-transition-leave-active,.v-window-y-reverse-transition-enter-active,.v-window-y-reverse-transition-leave-active,.v-window-y-transition-enter-active,.v-window-y-transition-leave-active{-webkit-transition:.3s cubic-bezier(.25,.8,.5,1);transition:.3s cubic-bezier(.25,.8,.5,1)}.v-window-x-reverse-transition-leave,.v-window-x-reverse-transition-leave-to,.v-window-x-transition-leave,.v-window-x-transition-leave-to,.v-window-y-reverse-transition-leave,.v-window-y-reverse-transition-leave-to,.v-window-y-transition-leave,.v-window-y-transition-leave-to{position:absolute!important;top:0;width:100%}.v-window-x-transition-enter{-webkit-transform:translateX(100%);transform:translateX(100%)}.v-window-x-reverse-transition-enter,.v-window-x-transition-leave-to{-webkit-transform:translateX(-100%);transform:translateX(-100%)}.v-window-x-reverse-transition-leave-to{-webkit-transform:translateX(100%);transform:translateX(100%)}.v-window-y-transition-enter{-webkit-transform:translateY(100%);transform:translateY(100%)}.v-window-y-reverse-transition-enter,.v-window-y-transition-leave-to{-webkit-transform:translateY(-100%);transform:translateY(-100%)}.v-window-y-reverse-transition-leave-to{-webkit-transform:translateY(100%);transform:translateY(100%)} \ No newline at end of file diff --git a/backend/beastiary/webapp-dist/index.html b/backend/beastiary/webapp-dist/index.html index 9fe0013..ab46177 100644 --- a/backend/beastiary/webapp-dist/index.html +++ b/backend/beastiary/webapp-dist/index.html @@ -1,3 +1,3 @@ Beastiary
\ No newline at end of file + }
\ No newline at end of file diff --git a/backend/beastiary/webapp-dist/js/app.3a8a8e57.js b/backend/beastiary/webapp-dist/js/app.eebf47d0.js similarity index 99% rename from backend/beastiary/webapp-dist/js/app.3a8a8e57.js rename to backend/beastiary/webapp-dist/js/app.eebf47d0.js index 9c8b154..1ea587f 100644 --- a/backend/beastiary/webapp-dist/js/app.3a8a8e57.js +++ b/backend/beastiary/webapp-dist/js/app.eebf47d0.js @@ -1,2 +1,2 @@ -!function(t){function webpackJsonpCallback(r){for(var a,i,u=r[0],l=r[1],_=r[2],d=0,h=[];d0&&t.notifications[0]}},i=Object(o.getStoreAccessors)("").read,u=i(c.dashboardMiniDrawer),l=i(c.dashboardShowDrawer),p=i(c.isLoggedIn),_=i(c.loginError),d=(i(c.token),i(c.firstNotification))},"5f03":function(t,r,a){"use strict";a.d(r,"a",(function(){return o})),a.d(r,"b",(function(){return c}));var o="".concat(""),c="Beastiary"},"5f86":function(t,r,a){"use strict";var o=a("2b0e"),c=a("8c4f");o.default.use(c.a),r.a=new c.a({mode:"history",base:"/",routes:[{path:"/",component:function component(){return a.e("start").then(a.bind(null,"cd28"))},children:[{path:"login",component:function component(){return Promise.all([a.e("login~main~main-dashboard"),a.e("login~main-dashboard"),a.e("login")]).then(a.bind(null,"a55b"))}},{path:"404",component:function component(){return a.e("reset-password").then(a.bind(null,"8cdb"))}},{path:"main",component:function component(){return Promise.all([a.e("login~main~main-dashboard"),a.e("main~main-dashboard"),a.e("main")]).then(a.bind(null,"6b61"))},children:[{path:"dashboard",component:function component(){return Promise.all([a.e("login~main~main-dashboard"),a.e("main~main-dashboard"),a.e("login~main-dashboard"),a.e("main-dashboard")]).then(a.bind(null,"f021"))}}]}]},{path:"/*",redirect:"/404"}]})},"635a":function(t,r,a){"use strict";a.d(r,"h",(function(){return c})),a.d(r,"c",(function(){return u})),a.d(r,"d",(function(){return l})),a.d(r,"f",(function(){return p})),a.d(r,"e",(function(){return _})),a.d(r,"g",(function(){return d})),a.d(r,"a",(function(){return h})),a.d(r,"b",(function(){return b}));var o=a("e8fb"),c={setToken:function setToken(t,r){t.token=r},setLoggedIn:function setLoggedIn(t,r){t.isLoggedIn=r},setLogInError:function setLogInError(t,r){t.logInError=r},setDashboardMiniDrawer:function setDashboardMiniDrawer(t,r){t.dashboardMiniDrawer=r},setDashboardShowDrawer:function setDashboardShowDrawer(t,r){t.dashboardShowDrawer=r},addNotification:function addNotification(t,r){t.notifications.push(r)},removeNotification:function removeNotification(t,r){t.notifications=t.notifications.filter((function(t){return t!==r}))}},i=Object(o.getStoreAccessors)("").commit,u=i(c.setDashboardMiniDrawer),l=i(c.setDashboardShowDrawer),p=i(c.setLoggedIn),_=i(c.setLogInError),d=i(c.setToken),h=i(c.addNotification),b=i(c.removeNotification)},"72e7":function(t,r,a){"use strict";a.d(r,"a",(function(){return c})),a.d(r,"d",(function(){return u})),a.d(r,"c",(function(){return l})),a.d(r,"b",(function(){return p}));var o=a("e8fb"),c={traces:function traces(t){return t.traces},loadingSamples:function loadingSamples(t){return t.loadingSamples},activeTraceIDs:function activeTraceIDs(t){return Object.values(t.traces).filter((function(t){return t.isActive})).map((function(t){return t.id}))}},i=Object(o.getStoreAccessors)("").read,u=i(c.traces),l=i(c.loadingSamples),p=i(c.activeTraceIDs)},"7f5d":function(t,r,a){"use strict";a.d(r,"a",(function(){return p}));var o=a("a34a"),c=a.n(o),i=a("5f03"),u=a("bc3a"),l=a.n(u);function asyncGeneratorStep(t,r,a,o,c,i,u){try{var l=t[i](u),p=l.value}catch(t){return void a(t)}l.done?r(p):Promise.resolve(p).then(o,c)}function _asyncToGenerator(t){return function(){var r=this,a=arguments;return new Promise((function(o,c){var i=t.apply(r,a);function _next(t){asyncGeneratorStep(i,o,c,_next,_throw,"next",t)}function _throw(t){asyncGeneratorStep(i,o,c,_next,_throw,"throw",t)}_next(void 0)}))}}function authHeaders(t){return{headers:{Authorization:"Bearer ".concat(t)},params:{}}}var p={getToken:function getToken(t){return _asyncToGenerator(c.a.mark((function _callee(){return c.a.wrap((function _callee$(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",l.a.get("".concat(i.a,"/api/security/token"),authHeaders(t)));case 1:case"end":return r.stop()}}),_callee)})))()},getTraces:function getTraces(t){return _asyncToGenerator(c.a.mark((function _callee2(){return c.a.wrap((function _callee2$(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",l.a.get("".concat(i.a,"/api/traces/"),authHeaders(t)));case 1:case"end":return r.stop()}}),_callee2)})))()},createTrace:function createTrace(t,r){return _asyncToGenerator(c.a.mark((function _callee3(){return c.a.wrap((function _callee3$(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",l.a.post("".concat(i.a,"/api/traces/"),r,authHeaders(t)));case 1:case"end":return a.stop()}}),_callee3)})))()},getSamples:function getSamples(t,r){var a=arguments;return _asyncToGenerator(c.a.mark((function _callee4(){var o,u,p;return c.a.wrap((function _callee4$(c){for(;;)switch(c.prev=c.next){case 0:return o=a.length>2&&void 0!==a[2]?a[2]:0,u=a.length>3&&void 0!==a[3]?a[3]:100,(p=authHeaders(t)).params={trace_id:r.id,skip:o,limit:u},c.abrupt("return",l.a.get("".concat(i.a,"/api/samples/"),p));case 5:case"end":return c.stop()}}),_callee4)})))()},listDirectory:function listDirectory(t,r){return _asyncToGenerator(c.a.mark((function _callee5(){var a;return c.a.wrap((function _callee5$(o){for(;;)switch(o.prev=o.next){case 0:return(a=authHeaders(t)).params={path:r},o.abrupt("return",l.a.get("".concat(i.a,"/api/explorer/"),a));case 3:case"end":return o.stop()}}),_callee5)})))()}}},8041:function(t,r,a){"use strict";a.d(r,"h",(function(){return i})),a.d(r,"g",(function(){return l})),a.d(r,"f",(function(){return p})),a.d(r,"b",(function(){return _})),a.d(r,"e",(function(){return d})),a.d(r,"a",(function(){return h})),a.d(r,"c",(function(){return b})),a.d(r,"d",(function(){return v}));var o=a("e8fb"),c=a("2b0e");function _createForOfIteratorHelper(t,r){var a="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!a){if(Array.isArray(t)||(a=function _unsupportedIterableToArray(t,r){if(!t)return;if("string"==typeof t)return _arrayLikeToArray(t,r);var a=Object.prototype.toString.call(t).slice(8,-1);"Object"===a&&t.constructor&&(a=t.constructor.name);if("Map"===a||"Set"===a)return Array.from(t);if("Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return _arrayLikeToArray(t,r)}(t))||r&&t&&"number"==typeof t.length){a&&(t=a);var o=0,c=function F(){};return{s:c,n:function n(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function e(t){throw t},f:c}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,u=!0,l=!1;return{s:function s(){a=a.call(t)},n:function n(){var t=a.next();return u=t.done,t},e:function e(t){l=!0,i=t},f:function f(){try{u||null==a.return||a.return()}finally{if(l)throw i}}}}function _arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var a=0,o=new Array(r);a0&&t.notifications[0]}},i=Object(o.getStoreAccessors)("").read,u=i(c.dashboardMiniDrawer),l=i(c.dashboardShowDrawer),p=i(c.isLoggedIn),_=i(c.loginError),d=(i(c.token),i(c.firstNotification))},"5f03":function(t,r,a){"use strict";a.d(r,"a",(function(){return o})),a.d(r,"b",(function(){return c}));var o="".concat(""),c="Beastiary"},"5f86":function(t,r,a){"use strict";var o=a("2b0e"),c=a("8c4f");o.default.use(c.a),r.a=new c.a({mode:"history",base:"/",routes:[{path:"/",component:function component(){return a.e("start").then(a.bind(null,"cd28"))},children:[{path:"login",component:function component(){return Promise.all([a.e("login~main~main-dashboard"),a.e("login~main-dashboard"),a.e("login")]).then(a.bind(null,"a55b"))}},{path:"404",component:function component(){return a.e("reset-password").then(a.bind(null,"8cdb"))}},{path:"main",component:function component(){return Promise.all([a.e("login~main~main-dashboard"),a.e("main~main-dashboard"),a.e("main")]).then(a.bind(null,"6b61"))},children:[{path:"dashboard",component:function component(){return Promise.all([a.e("login~main~main-dashboard"),a.e("main~main-dashboard"),a.e("login~main-dashboard"),a.e("main-dashboard")]).then(a.bind(null,"f021"))}}]}]},{path:"/*",redirect:"/404"}]})},"635a":function(t,r,a){"use strict";a.d(r,"h",(function(){return c})),a.d(r,"c",(function(){return u})),a.d(r,"d",(function(){return l})),a.d(r,"f",(function(){return p})),a.d(r,"e",(function(){return _})),a.d(r,"g",(function(){return d})),a.d(r,"a",(function(){return h})),a.d(r,"b",(function(){return b}));var o=a("e8fb"),c={setToken:function setToken(t,r){t.token=r},setLoggedIn:function setLoggedIn(t,r){t.isLoggedIn=r},setLogInError:function setLogInError(t,r){t.logInError=r},setDashboardMiniDrawer:function setDashboardMiniDrawer(t,r){t.dashboardMiniDrawer=r},setDashboardShowDrawer:function setDashboardShowDrawer(t,r){t.dashboardShowDrawer=r},addNotification:function addNotification(t,r){t.notifications.push(r)},removeNotification:function removeNotification(t,r){t.notifications=t.notifications.filter((function(t){return t!==r}))}},i=Object(o.getStoreAccessors)("").commit,u=i(c.setDashboardMiniDrawer),l=i(c.setDashboardShowDrawer),p=i(c.setLoggedIn),_=i(c.setLogInError),d=i(c.setToken),h=i(c.addNotification),b=i(c.removeNotification)},"72e7":function(t,r,a){"use strict";a.d(r,"a",(function(){return c})),a.d(r,"d",(function(){return u})),a.d(r,"c",(function(){return l})),a.d(r,"b",(function(){return p}));var o=a("e8fb"),c={traces:function traces(t){return t.traces},loadingSamples:function loadingSamples(t){return t.loadingSamples},activeTraceIDs:function activeTraceIDs(t){return Object.values(t.traces).filter((function(t){return t.isActive})).map((function(t){return t.id}))}},i=Object(o.getStoreAccessors)("").read,u=i(c.traces),l=i(c.loadingSamples),p=i(c.activeTraceIDs)},"7f5d":function(t,r,a){"use strict";a.d(r,"a",(function(){return p}));var o=a("a34a"),c=a.n(o),i=a("5f03"),u=a("bc3a"),l=a.n(u);function asyncGeneratorStep(t,r,a,o,c,i,u){try{var l=t[i](u),p=l.value}catch(t){return void a(t)}l.done?r(p):Promise.resolve(p).then(o,c)}function _asyncToGenerator(t){return function(){var r=this,a=arguments;return new Promise((function(o,c){var i=t.apply(r,a);function _next(t){asyncGeneratorStep(i,o,c,_next,_throw,"next",t)}function _throw(t){asyncGeneratorStep(i,o,c,_next,_throw,"throw",t)}_next(void 0)}))}}function authHeaders(t){return{headers:{Authorization:"Bearer ".concat(t)},params:{}}}var p={getToken:function getToken(t){return _asyncToGenerator(c.a.mark((function _callee(){return c.a.wrap((function _callee$(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",l.a.get("".concat(i.a,"/api/security/token"),authHeaders(t)));case 1:case"end":return r.stop()}}),_callee)})))()},getTraces:function getTraces(t){return _asyncToGenerator(c.a.mark((function _callee2(){return c.a.wrap((function _callee2$(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",l.a.get("".concat(i.a,"/api/traces/"),authHeaders(t)));case 1:case"end":return r.stop()}}),_callee2)})))()},createTrace:function createTrace(t,r){return _asyncToGenerator(c.a.mark((function _callee3(){return c.a.wrap((function _callee3$(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",l.a.post("".concat(i.a,"/api/traces/"),r,authHeaders(t)));case 1:case"end":return a.stop()}}),_callee3)})))()},getSamples:function getSamples(t,r){var a=arguments;return _asyncToGenerator(c.a.mark((function _callee4(){var o,u,p;return c.a.wrap((function _callee4$(c){for(;;)switch(c.prev=c.next){case 0:return o=a.length>2&&void 0!==a[2]?a[2]:0,u=a.length>3&&void 0!==a[3]?a[3]:100,(p=authHeaders(t)).params={trace_id:r.id,skip:o,limit:u},c.abrupt("return",l.a.get("".concat(i.a,"/api/samples/"),p));case 5:case"end":return c.stop()}}),_callee4)})))()},listDirectory:function listDirectory(t,r){return _asyncToGenerator(c.a.mark((function _callee5(){var a;return c.a.wrap((function _callee5$(o){for(;;)switch(o.prev=o.next){case 0:return(a=authHeaders(t)).params={path:r},o.abrupt("return",l.a.get("".concat(i.a,"/api/explorer/"),a));case 3:case"end":return o.stop()}}),_callee5)})))()}}},8041:function(t,r,a){"use strict";a.d(r,"h",(function(){return i})),a.d(r,"g",(function(){return l})),a.d(r,"f",(function(){return p})),a.d(r,"b",(function(){return _})),a.d(r,"e",(function(){return d})),a.d(r,"a",(function(){return h})),a.d(r,"c",(function(){return b})),a.d(r,"d",(function(){return v}));var o=a("e8fb"),c=a("2b0e");function _createForOfIteratorHelper(t,r){var a="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!a){if(Array.isArray(t)||(a=function _unsupportedIterableToArray(t,r){if(!t)return;if("string"==typeof t)return _arrayLikeToArray(t,r);var a=Object.prototype.toString.call(t).slice(8,-1);"Object"===a&&t.constructor&&(a=t.constructor.name);if("Map"===a||"Set"===a)return Array.from(t);if("Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return _arrayLikeToArray(t,r)}(t))||r&&t&&"number"==typeof t.length){a&&(t=a);var o=0,c=function F(){};return{s:c,n:function n(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function e(t){throw t},f:c}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,u=!0,l=!1;return{s:function s(){a=a.call(t)},n:function n(){var t=a.next();return u=t.done,t},e:function e(t){l=!0,i=t},f:function f(){try{u||null==a.return||a.return()}finally{if(l)throw i}}}}function _arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var a=0,o=new Array(r);a = {\n modules: {\n main: mainModule,\n data: dataModule,\n },\n};\n\nexport const store = new Vuex.Store(storeOptions);\n\nexport default store;\n","import { getStoreAccessors } from 'typesafe-vuex';\nimport { State } from '../state';\nimport { MainState } from './state';\n\nexport const getters = {\n loginError: (state: MainState) => state.logInError,\n dashboardShowDrawer: (state: MainState) => state.dashboardShowDrawer,\n dashboardMiniDrawer: (state: MainState) => state.dashboardMiniDrawer,\n token: (state: MainState) => state.token,\n isLoggedIn: (state: MainState) => state.isLoggedIn,\n firstNotification: (state: MainState) => state.notifications.length > 0 && state.notifications[0],\n};\n\nconst {read} = getStoreAccessors('');\n\nexport const readDashboardMiniDrawer = read(getters.dashboardMiniDrawer);\nexport const readDashboardShowDrawer = read(getters.dashboardShowDrawer);\nexport const readIsLoggedIn = read(getters.isLoggedIn);\nexport const readLoginError = read(getters.loginError);\nexport const readToken = read(getters.token);\nexport const readFirstNotification = read(getters.firstNotification);\n","const env = process.env.VUE_APP_ENV;\n\nlet envApiUrl = '';\n\nif (env === 'production') {\n envApiUrl = `${process.env.VUE_APP_DOMAIN_PROD}`;\n} else if (env === 'staging') {\n envApiUrl = `${process.env.VUE_APP_DOMAIN_STAG}`;\n} else {\n envApiUrl = `${process.env.VUE_APP_DOMAIN_DEV}`;\n}\n\nexport const apiUrl = envApiUrl;\nexport const appName = process.env.VUE_APP_NAME;\n","import Vue from 'vue';\nimport Router from 'vue-router';\n\nimport RouterComponent from './components/RouterComponent.vue';\n\nVue.use(Router);\n\nexport default new Router({\n mode: 'history',\n base: process.env.BASE_URL,\n routes: [\n {\n path: '/',\n component: () => import(/* webpackChunkName: \"start\" */ './views/main/Start.vue'),\n children: [\n {\n path: 'login',\n // route level code-splitting\n // this generates a separate chunk (about.[hash].js) for this route\n // which is lazy-loaded when the route is visited.\n component: () => import(/* webpackChunkName: \"login\" */ './views/Login.vue'),\n },\n {\n path: '404',\n component: () => import(/* webpackChunkName: \"reset-password\" */ './views/404.vue'),\n },\n {\n path: 'main',\n component: () => import(/* webpackChunkName: \"main\" */ './views/main/Main.vue'),\n children: [\n {\n path: 'dashboard',\n component: () => import(/* webpackChunkName: \"main-dashboard\" */ './views/main/Dashboard.vue'),\n },\n ],\n },\n ],\n },\n {\n path: '/*', redirect: '/404',\n },\n ],\n});\n","import { getStoreAccessors } from 'typesafe-vuex';\nimport { State } from '../state';\nimport { AppNotification, MainState } from './state';\n\n\nexport const mutations = {\n setToken(state: MainState, payload: string) {\n state.token = payload;\n },\n setLoggedIn(state: MainState, payload: boolean) {\n state.isLoggedIn = payload;\n },\n setLogInError(state: MainState, payload: boolean) {\n state.logInError = payload;\n },\n setDashboardMiniDrawer(state: MainState, payload: boolean) {\n state.dashboardMiniDrawer = payload;\n },\n setDashboardShowDrawer(state: MainState, payload: boolean) {\n state.dashboardShowDrawer = payload;\n },\n addNotification(state: MainState, payload: AppNotification) {\n state.notifications.push(payload);\n },\n removeNotification(state: MainState, payload: AppNotification) {\n state.notifications = state.notifications.filter((notification) => notification !== payload);\n },\n};\n\nconst {commit} = getStoreAccessors('');\n\nexport const commitSetDashboardMiniDrawer = commit(mutations.setDashboardMiniDrawer);\nexport const commitSetDashboardShowDrawer = commit(mutations.setDashboardShowDrawer);\nexport const commitSetLoggedIn = commit(mutations.setLoggedIn);\nexport const commitSetLogInError = commit(mutations.setLogInError);\nexport const commitSetToken = commit(mutations.setToken);\nexport const commitAddNotification = commit(mutations.addNotification);\nexport const commitRemoveNotification = commit(mutations.removeNotification);\n","import { getStoreAccessors } from 'typesafe-vuex';\nimport { State } from '../state';\nimport { DataState } from './state';\n\nexport const getters = {\n traces: (state: DataState) => state.traces,\n loadingSamples: (state: DataState) => state.loadingSamples,\n activeTraceIDs: (state: DataState) => Object.values(state.traces).filter((t) => t.isActive).map((t) => t.id),\n};\nconst {read} = getStoreAccessors('');\n\nexport const readTraces = read(getters.traces);\nexport const readLoadingSamples = read(getters.loadingSamples);\nexport const readActiveTraceIDs = read(getters.activeTraceIDs);\n\n","import { apiUrl } from '@/env';\nimport { InSample, Trace, TraceCreate } from '@/interfaces';\nimport axios from 'axios';\nimport { config } from 'vue/types/umd';\n\nfunction authHeaders(token: string) {\n return {\n headers: {\n Authorization: `Bearer ${token}`,\n },\n params: {},\n };\n}\n\nexport const api = {\n async getToken(token: string) {\n return axios.get(`${apiUrl}/api/security/token`, authHeaders(token));\n },\n async getTraces(token: string) {\n return axios.get(`${apiUrl}/api/traces/`, authHeaders(token));\n },\n async createTrace(token: string, data: TraceCreate) {\n return axios.post(`${apiUrl}/api/traces/`, data, authHeaders(token));\n },\n async getSamples(token: string, trace: Trace, skip: number = 0, limit: number = 100) {\n const options = authHeaders(token);\n options.params = {trace_id: trace.id, skip, limit};\n return axios.get(`${apiUrl}/api/samples/`, options);\n },\n async listDirectory(token: string, path: string) {\n const options = authHeaders(token);\n options.params = {path};\n return axios.get(`${apiUrl}/api/explorer/`, options);\n },\n};\n","import { Data, InSample, SetSample, Trace } from '@/interfaces';\nimport { getStoreAccessors } from 'typesafe-vuex';\nimport Vue from 'vue';\nimport { State } from '../state';\nimport { DataState } from './state';\n\nfunction formatData(samples: InSample[]) {\n const parameters: { [key: string]: Data[] } = {};\n for (let index = 0; index < samples.length; index++) {\n const row = samples[index].data;\n const state = samples[index].state;\n for (const param in row) {\n if (param) {\n if (index === 0) {\n parameters[param] = [];\n }\n parameters[param].push({ state, value: row[param] });\n }\n }\n\n }\n\n return parameters;\n}\n\nfunction setTraceDefaults(trace: Trace) {\n trace.parameters = {};\n trace.activeParams = [];\n trace.isActive = false;\n trace.burnIn = 10;\n trace.isLoading = false;\n}\n\nexport const mutations = {\n setTraces(state: DataState, payload: Trace[]) {\n for (const trace of payload) {\n setTraceDefaults(trace);\n }\n const traces = payload.reduce((obj, trace) => {\n obj[trace.id] = trace;\n return obj;\n }, {});\n state.traces = traces;\n },\n setTrace(state: DataState, payload: Trace) {\n setTraceDefaults(payload);\n // https://vuex.vuejs.org/guide/mutations.html#mutations-follow-vue-s-reactivity-rules\n Vue.set(state.traces, payload.id, payload);\n },\n setActiveTrace(state: DataState, payload: Trace) {\n state.traces[payload.id].isActive = true;\n\n },\n setActiveParams(state: DataState, payload: {traceID: number, params: string[]}) {\n state.traces[payload.traceID].activeParams = payload.params;\n },\n setBurnIn(state: DataState, payload: {traceID: number, burnIn: number}) {\n state.traces[payload.traceID].burnIn = payload.burnIn;\n },\n setLoadingSamples(state: DataState, payload: {traceID: number, loading: boolean}) {\n state.loadingSamples = payload.loading;\n state.traces[payload.traceID].isLoading = payload.loading;\n },\n setSetSamples(state: DataState, payload: {traceID: number, data: InSample[]}) {\n const data = formatData(payload.data);\n const trace = state.traces[payload.traceID];\n if (Object.keys(trace.parameters).length === 0) {\n trace.parameters = data;\n } else {\n for (const paramName in data) {\n if (paramName) {\n trace.parameters[paramName] = trace.parameters[paramName].concat(\n data[paramName], // ).sort((a, b) => a.state - b.state,\n );\n }\n }\n }\n },\n};\n\nconst {commit} = getStoreAccessors('');\n\nexport const commitSetTraces = commit(mutations.setTraces);\nexport const commitSetTrace = commit(mutations.setTrace);\nexport const commitSetActiveTrace = commit(mutations.setActiveTrace);\nexport const commitSetSamples = commit(mutations.setSetSamples);\nexport const commitSetActiveParams = commit(mutations.setActiveParams);\nexport const commitSetBurnIn = commit(mutations.setBurnIn);\nexport const commitSetLoadingSamples = commit(mutations.setLoadingSamples);\n\n","import { api } from '@/api';\nimport { Trace, TraceCreate } from '@/interfaces';\nimport { AxiosResponse } from 'axios';\nimport { getStoreAccessors } from 'typesafe-vuex';\nimport { ActionContext } from 'vuex';\nimport { dispatchCheckApiError } from '../main/actions';\nimport { commitAddNotification, commitRemoveNotification } from '../main/mutations';\nimport { State } from '../state';\nimport {\n commitSetActiveParams,\n commitSetActiveTrace,\n commitSetBurnIn,\n commitSetLoadingSamples,\n commitSetSamples,\n commitSetTrace,\n commitSetTraces,\n} from './mutations';\nimport { DataState } from './state';\n\ntype MainContext = ActionContext;\n\nexport const actions = {\n async actionGetTraces(context: MainContext) {\n let response: AxiosResponse | null = null;\n try {\n response = await api.getTraces(context.rootState.main.token);\n } catch (error) {\n await dispatchCheckApiError(context, error);\n }\n if (response) {\n commitSetTraces(context, response.data);\n }\n },\n async actionCreateTrace(context: MainContext, payload: TraceCreate) {\n const loadingNotification = { content: 'saving', showProgress: true };\n commitAddNotification(context, loadingNotification);\n let response: AxiosResponse | null = null;\n try {\n response = await api.createTrace(context.rootState.main.token, payload);\n } catch (error) {\n await dispatchCheckApiError(context, error);\n }\n commitRemoveNotification(context, loadingNotification);\n if (response != null) {\n commitSetTrace(context, response.data);\n commitAddNotification(context, { content: 'Trace successfully created', color: 'success' });\n }\n },\n async actionSetActiveTrace(context: MainContext, payload: Trace) {\n commitSetActiveTrace(context, payload);\n },\n async actionSetActiveParams(context: MainContext, payload: {traceID: number, params: string[]}) {\n commitSetActiveParams(context, payload);\n },\n async actionGetSamples(\n context: MainContext,\n payload: {trace: Trace,\n skip?: number,\n limit?: number,\n all?: boolean}) {\n const trace = payload.trace;\n const skip = payload.skip ? payload.skip : 0;\n const limit = payload.limit ? payload.limit : 100;\n const all = payload.all ? payload.all : false;\n const loadingNotification = { content: 'Loading samples...', showProgress: true };\n if (skip === 0) {\n commitAddNotification(context, loadingNotification);\n }\n let response: AxiosResponse | null = null;\n try {\n response = await api.getSamples(context.rootState.main.token, trace, skip, limit);\n } catch (error) {\n await dispatchCheckApiError(context, error);\n }\n if (response != null) {\n commitSetSamples(context, {traceID: trace.id, data: response.data});\n if (all === true && response.data.length === limit) {\n // if you get back what you request go again\n await dispatchGetSamples(context, {trace, skip: skip + limit, limit, all: true});\n }}\n commitRemoveNotification(context, loadingNotification);\n },\n async actionSetBurnIn(context: MainContext, payload: {traceID: number, burnIn: number}) {\n commitSetBurnIn(context, payload);\n },\n async actionSetLoadingSamples(context: MainContext, payload: {traceID: number, loading: boolean}) {\n commitSetLoadingSamples(context, payload);\n },\n};\n\nconst { dispatch } = getStoreAccessors('');\n\nexport const dispatchGetTraces = dispatch(actions.actionGetTraces);\nexport const dispatchCreateTrace = dispatch(actions.actionCreateTrace);\nexport const dispatchSetActiveTrace = dispatch(actions.actionSetActiveTrace);\nexport const dispatchGetSamples = dispatch(actions.actionGetSamples);\nexport const dispatchSetActiveParams = dispatch(actions.actionSetActiveParams);\nexport const dispatchSetBurnIn = dispatch(actions.actionSetBurnIn);\nexport const dispatchSetLoadingSamples = dispatch(actions.actionSetLoadingSamples);\n\n\n","\n\n\n\n\n\n\n\n\n\n\n\n\nimport { dispatchRemoveNotification } from '@/store/main/actions';\nimport { readFirstNotification } from '@/store/main/getters';\nimport { commitRemoveNotification } from '@/store/main/mutations';\nimport { AppNotification } from '@/store/main/state';\nimport { Component, Prop, Vue, Watch } from 'vue-property-decorator';\n\n@Component\nexport default class NotificationsManager extends Vue {\n public show: boolean = false;\n public text: string = '';\n public showProgress: boolean = false;\n public notFound: boolean = false;\n public currentNotification: AppNotification | false = false;\n\n public async hide() {\n this.show = false;\n await new Promise((resolve, reject) => setTimeout(() => resolve(), 500));\n }\n\n public async close() {\n await this.hide();\n await this.removeCurrentNotification();\n }\n\n public async removeCurrentNotification() {\n if (this.currentNotification) {\n commitRemoveNotification(this.$store, this.currentNotification);\n }\n }\n\n public get firstNotification() {\n return readFirstNotification(this.$store);\n }\n\n public async setNotification(notification: AppNotification | false) {\n if (this.show) {\n await this.hide();\n }\n if (notification) {\n this.currentNotification = notification;\n this.showProgress = notification.showProgress || false;\n this.notFound = notification.notFound || false;\n this.show = true;\n } else {\n this.currentNotification = false;\n }\n }\n\n @Watch('firstNotification')\n public async onNotificationChange(\n newNotification: AppNotification | false,\n oldNotification: AppNotification | false,\n ) {\n if (newNotification !== this.currentNotification) {\n await this.setNotification(newNotification);\n if (newNotification) {\n dispatchRemoveNotification(this.$store, { notification: newNotification, timeout: 10000 });\n }\n }\n }\n\n public get currentNotificationContent() {\n return this.currentNotification && this.currentNotification.content || '';\n }\n\n public get currentNotificationColor() {\n return this.currentNotification && this.currentNotification.color || 'info';\n }\n}\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--13-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./NotificationsManager.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--13-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./NotificationsManager.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./NotificationsManager.vue?vue&type=template&id=2b4f56c1&\"\nimport script from \"./NotificationsManager.vue?vue&type=script&lang=ts&\"\nexport * from \"./NotificationsManager.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports\n\n/* vuetify-loader */\nimport installComponents from \"!../../node_modules/vuetify-loader/lib/runtime/installComponents.js\"\nimport { VBtn } from 'vuetify/lib/components/VBtn';\nimport { VIcon } from 'vuetify/lib/components/VIcon';\nimport { VProgressCircular } from 'vuetify/lib/components/VProgressCircular';\nimport { VSnackbar } from 'vuetify/lib/components/VSnackbar';\ninstallComponents(component, {VBtn,VIcon,VProgressCircular,VSnackbar})\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('v-snackbar',{attrs:{\"color\":_vm.currentNotificationColor},model:{value:(_vm.show),callback:function ($$v) {_vm.show=$$v},expression:\"show\"}},[_c('div',{staticClass:\"d-flex justify-space-between align-center \"},[_c('v-progress-circular',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.showProgress),expression:\"showProgress\"}],staticClass:\"ma-1\",attrs:{\"indeterminate\":\"\"}}),_c('v-icon',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.notFound),expression:\"notFound\"}],staticClass:\"ma-1\",attrs:{\"large\":\"\"}},[_vm._v(\"mdi-cancel\")]),_vm._v(\" \"+_vm._s(_vm.currentNotificationContent)+\" \"),_c('v-btn',{attrs:{\"text\":\"\"},nativeOn:{\"click\":function($event){return _vm.close.apply(null, arguments)}}},[_vm._v(\"Close\")])],1)])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport NotificationsManager from '@/components/NotificationsManager.vue';\nimport { dispatchCheckLoggedIn } from '@/store/main/actions';\nimport { readIsLoggedIn } from '@/store/main/getters';\nimport { Component, Vue } from 'vue-property-decorator';\n\n@Component({\n components: {\n NotificationsManager,\n },\n})\nexport default class App extends Vue {\n\n get loggedIn() {\n return readIsLoggedIn(this.$store);\n }\n\n public async created() {\n await dispatchCheckLoggedIn(this.$store);\n }\n}\n","import mod from \"-!../node_modules/cache-loader/dist/cjs.js??ref--13-0!../node_modules/thread-loader/dist/cjs.js!../node_modules/babel-loader/lib/index.js!../node_modules/ts-loader/index.js??ref--13-3!../node_modules/cache-loader/dist/cjs.js??ref--0-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./App.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../node_modules/cache-loader/dist/cjs.js??ref--13-0!../node_modules/thread-loader/dist/cjs.js!../node_modules/babel-loader/lib/index.js!../node_modules/ts-loader/index.js??ref--13-3!../node_modules/cache-loader/dist/cjs.js??ref--0-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./App.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./App.vue?vue&type=template&id=12c528ee&\"\nimport script from \"./App.vue?vue&type=script&lang=ts&\"\nexport * from \"./App.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports\n\n/* vuetify-loader */\nimport installComponents from \"!../node_modules/vuetify-loader/lib/runtime/installComponents.js\"\nimport { VApp } from 'vuetify/lib/components/VApp';\nimport { VContainer } from 'vuetify/lib/components/VGrid';\nimport { VContent } from 'vuetify/lib/components/VContent';\nimport { VFlex } from 'vuetify/lib/components/VGrid';\nimport { VProgressCircular } from 'vuetify/lib/components/VProgressCircular';\nimport { VRow } from 'vuetify/lib/components/VGrid';\ninstallComponents(component, {VApp,VContainer,VContent,VFlex,VProgressCircular,VRow})\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{attrs:{\"id\":\"app\"}},[_c('v-app',[(_vm.loggedIn===null)?_c('v-content',[_c('v-container',{attrs:{\"fill-height\":\"\"}},[_c('v-row',{attrs:{\"align-center\":\"\",\"justify-center\":\"\"}},[_c('v-flex',[_c('div',{staticClass:\"text-xs-center\"},[_c('div',{staticClass:\"headline my-5\"},[_vm._v(\"Loading...\")]),_c('v-progress-circular',{attrs:{\"size\":\"100\",\"indeterminate\":\"\",\"color\":\"primary\"}})],1)])],1)],1)],1):_c('router-view'),_c('NotificationsManager')],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import Component from 'vue-class-component';\n\n// Register the router hooks with their names\nComponent.registerHooks([\n 'beforeRouteEnter',\n 'beforeRouteLeave',\n 'beforeRouteUpdate', // for vue-router 2.2+\n]);\n","import VeeValidate from 'vee-validate';\nimport Vue from 'vue';\n\nVue.use(VeeValidate);\n","import Vue from 'vue';\nimport Vuetify from 'vuetify/lib/framework';\nimport colors from 'vuetify/lib/util/colors';\n\nVue.use(Vuetify);\n\nexport default new Vuetify({\n theme: {\n themes: {\n light: {\n primary: colors.teal.lighten1,\n },\n dark: {\n primary: colors.teal.lighten1,\n },\n },\n },\n});\n","import store from '@/store';\nimport '@babel/polyfill';\nimport Vue from 'vue';\nimport VueWorker from 'vue-worker';\nimport App from './App.vue';\n// Import Component hooks before component definitions\nimport './component-hooks';\nimport './plugins/vee-validate';\nimport vuetify from './plugins/vuetify';\nimport router from './router';\n\nVue.config.productionTip = false;\n\nVue.use(VueWorker);\n\nnew Vue({\n router,\n store,\n vuetify,\n render: (h) => h(App),\n}).$mount('#app');\n","import { api } from '@/api';\nimport router from '@/router';\nimport { AxiosError } from 'axios';\nimport { getStoreAccessors } from 'typesafe-vuex';\nimport { ActionContext } from 'vuex';\nimport { State } from '../state';\nimport {\n commitAddNotification,\n commitRemoveNotification,\n commitSetLoggedIn,\n commitSetLogInError,\n commitSetToken,\n} from './mutations';\nimport { AppNotification, MainState } from './state';\n\ntype MainContext = ActionContext;\n\nexport const actions = {\n async actionCheckToken(context: MainContext, payload: { token: string }) {\n try {\n const response = await api.getToken(payload.token);\n const token = response.data.token;\n if (token) {\n commitSetToken(context, token);\n commitSetLoggedIn(context, true);\n commitSetLogInError(context, false);\n await dispatchRouteLoggedIn(context);\n commitAddNotification(context, { content: 'Logged in', color: 'success' });\n } else {\n await dispatchLogOut(context);\n }\n } catch (err) {\n commitSetLogInError(context, true);\n await dispatchLogOut(context);\n }\n },\n async actionCheckLoggedIn(context: MainContext) {\n if (!context.state.isLoggedIn) {\n const token = context.state.token;\n if (token) {\n try {\n commitSetLoggedIn(context, true);\n } catch (error) {\n await dispatchRemoveLogIn(context);\n }\n } else {\n await dispatchRemoveLogIn(context);\n }\n }\n },\n async actionRemoveLogIn(context: MainContext) {\n commitSetToken(context, '');\n commitSetLoggedIn(context, false);\n },\n async actionLogOut(context: MainContext) {\n await dispatchRemoveLogIn(context);\n await dispatchRouteLogOut(context);\n },\n async actionUserLogOut(context: MainContext) {\n await dispatchLogOut(context);\n commitAddNotification(context, { content: 'Logged out', color: 'success' });\n },\n actionRouteLogOut(context: MainContext) {\n if (router.currentRoute.path !== '/login') {\n router.push('/login');\n }\n },\n async actionCheckApiError(context: MainContext, payload: AxiosError) {\n if (payload.response!.status === 401) {\n await dispatchLogOut(context);\n }\n if (payload.response!.status === 404) {\n commitAddNotification(context, { content: payload.response!.data.detail, color: 'error', notFound: true});\n }\n if (payload.response!.status === 500) {\n commitAddNotification(context, { content: payload.response!.data.detail, color: 'error', notFound: true});\n }\n },\n actionRouteLoggedIn(context: MainContext) {\n if (router.currentRoute.path === '/login' || router.currentRoute.path === '/') {\n router.push('/main/dashboard');\n }\n },\n async removeNotification(context: MainContext, payload: { notification: AppNotification, timeout: number }) {\n return new Promise((resolve, reject) => {\n setTimeout(() => {\n commitRemoveNotification(context, payload.notification);\n resolve(true);\n }, payload.timeout);\n });\n },\n};\n\nconst { dispatch } = getStoreAccessors('');\n\nexport const dispatchCheckApiError = dispatch(actions.actionCheckApiError);\nexport const dispatchCheckLoggedIn = dispatch(actions.actionCheckLoggedIn);\nexport const dispatchCheckToken = dispatch(actions.actionCheckToken);\nexport const dispatchLogOut = dispatch(actions.actionLogOut);\nexport const dispatchUserLogOut = dispatch(actions.actionUserLogOut);\nexport const dispatchRemoveLogIn = dispatch(actions.actionRemoveLogIn);\nexport const dispatchRouteLoggedIn = dispatch(actions.actionRouteLoggedIn);\nexport const dispatchRouteLogOut = dispatch(actions.actionRouteLogOut);\nexport const dispatchRemoveNotification = dispatch(actions.removeNotification);\n"],"sourceRoot":""} \ No newline at end of file +{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/store/data/index.ts","webpack:///./src/store/main/index.ts","webpack:///./src/store/index.ts","webpack:///./src/store/main/getters.ts","webpack:///./src/env.ts","webpack:///./src/router.ts","webpack:///./src/store/main/mutations.ts","webpack:///./src/store/data/getters.ts","webpack:///./src/api.ts","webpack:///./src/store/data/mutations.ts","webpack:///./src/store/data/actions.ts","webpack:///./src/components/NotificationsManager.vue","webpack:///./src/components/NotificationsManager.vue?820d","webpack:///./src/components/NotificationsManager.vue?c2a9","webpack:///./src/components/NotificationsManager.vue?1286","webpack:///./src/App.vue","webpack:///./src/App.vue?640d","webpack:///./src/App.vue?b1ee","webpack:///./src/App.vue?6904","webpack:///./src/component-hooks.ts","webpack:///./src/plugins/vee-validate.ts","webpack:///./src/plugins/vuetify.ts","webpack:///./src/main.ts","webpack:///./src/store/main/actions.ts"],"names":["webpackJsonpCallback","data","moduleId","chunkId","chunkIds","moreModules","executeModules","i","resolves","length","Object","prototype","hasOwnProperty","call","installedChunks","push","modules","parentJsonpFunction","shift","deferredModules","apply","checkDeferredModules","result","deferredModule","fulfilled","j","depId","splice","__webpack_require__","s","installedModules","installedCssChunks","exports","module","l","e","requireEnsure","promises","Promise","resolve","reject","href","fullhref","p","existingLinkTags","document","getElementsByTagName","dataHref","tag","getAttribute","rel","existingStyleTags","linkTag","createElement","type","onload","onerror","event","request","target","src","err","Error","code","parentNode","removeChild","appendChild","then","installedChunkData","promise","onScriptComplete","script","charset","timeout","nc","setAttribute","jsonpScriptSrc","error","clearTimeout","chunk","errorType","realSrc","message","name","undefined","setTimeout","head","all","m","c","d","getter","o","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","getDefault","getModuleExports","object","property","oe","console","jsonpArray","window","oldJsonpFunction","slice","dataModule","state","traces","loadingSamples","mutations","actions","getters","mainModule","isLoggedIn","token","logInError","dashboardMiniDrawer","dashboardShowDrawer","notifications","use","storeOptions","main","store","Store","loginError","firstNotification","read","readDashboardMiniDrawer","readDashboardShowDrawer","readIsLoggedIn","readLoginError","readFirstNotification","apiUrl","appName","base","routes","path","component","children","redirect","setToken","payload","setLoggedIn","setLogInError","setDashboardMiniDrawer","setDashboardShowDrawer","addNotification","removeNotification","filter","notification","commit","commitSetDashboardMiniDrawer","commitSetDashboardShowDrawer","commitSetLoggedIn","commitSetLogInError","commitSetToken","commitAddNotification","commitRemoveNotification","activeTraceIDs","values","isActive","map","id","readTraces","readLoadingSamples","readActiveTraceIDs","authHeaders","headers","Authorization","params","api","getToken","a","getTraces","createTrace","post","getSamples","trace","skip","limit","options","trace_id","listDirectory","setTraceDefaults","parameters","activeParams","burnIn","isLoading","setTraces","reduce","obj","setTrace","set","setActiveTrace","setActiveParams","traceID","setBurnIn","setLoadingSamples","loading","setSetSamples","formatData","samples","index","row","param","keys","paramName","concat","commitSetTraces","commitSetTrace","commitSetActiveTrace","commitSetSamples","commitSetActiveParams","commitSetBurnIn","commitSetLoadingSamples","actionGetTraces","context","response","rootState","actionCreateTrace","loadingNotification","content","showProgress","color","actionSetActiveTrace","actionSetActiveParams","actionGetSamples","dispatchGetSamples","actionSetBurnIn","actionSetLoadingSamples","dispatch","dispatchGetTraces","dispatchCreateTrace","dispatchSetActiveTrace","dispatchSetActiveParams","dispatchSetBurnIn","dispatchSetLoadingSamples","show","text","notFound","currentNotification","this","hide","removeCurrentNotification","$store","newNotification","oldNotification","setNotification","_vm","_h","$createElement","_c","_self","attrs","currentNotificationColor","model","callback","$$v","expression","staticClass","directives","rawName","_v","_s","currentNotificationContent","nativeOn","$event","close","arguments","VBtn","VIcon","VProgressCircular","VSnackbar","components","NotificationsManager","loggedIn","VApp","VContainer","VContent","VFlex","VRow","registerHooks","theme","themes","light","primary","colors","teal","lighten1","dark","config","productionTip","router","vuetify","render","h","$mount","actionCheckToken","dispatchRouteLoggedIn","dispatchLogOut","actionCheckLoggedIn","dispatchRemoveLogIn","actionRemoveLogIn","actionLogOut","dispatchRouteLogOut","actionUserLogOut","actionRouteLogOut","currentRoute","actionCheckApiError","status","detail","actionRouteLoggedIn","dispatchCheckApiError","dispatchCheckLoggedIn","dispatchCheckToken","dispatchUserLogOut","dispatchRemoveNotification"],"mappings":"aACE,SAASA,qBAAqBC,GAQ7B,IAPA,IAMIC,EAAUC,EANVC,EAAWH,EAAK,GAChBI,EAAcJ,EAAK,GACnBK,EAAiBL,EAAK,GAIHM,EAAI,EAAGC,EAAW,GACpCD,EAAIH,EAASK,OAAQF,IACzBJ,EAAUC,EAASG,GAChBG,OAAOC,UAAUC,eAAeC,KAAKC,EAAiBX,IAAYW,EAAgBX,IACpFK,EAASO,KAAKD,EAAgBX,GAAS,IAExCW,EAAgBX,GAAW,EAE5B,IAAID,KAAYG,EACZK,OAAOC,UAAUC,eAAeC,KAAKR,EAAaH,KACpDc,EAAQd,GAAYG,EAAYH,IAKlC,IAFGe,GAAqBA,EAAoBhB,GAEtCO,EAASC,QACdD,EAASU,OAATV,GAOD,OAHAW,EAAgBJ,KAAKK,MAAMD,EAAiBb,GAAkB,IAGvDe,uBAER,SAASA,uBAER,IADA,IAAIC,EACIf,EAAI,EAAGA,EAAIY,EAAgBV,OAAQF,IAAK,CAG/C,IAFA,IAAIgB,EAAiBJ,EAAgBZ,GACjCiB,GAAY,EACRC,EAAI,EAAGA,EAAIF,EAAed,OAAQgB,IAAK,CAC9C,IAAIC,EAAQH,EAAeE,GACG,IAA3BX,EAAgBY,KAAcF,GAAY,GAE3CA,IACFL,EAAgBQ,OAAOpB,IAAK,GAC5Be,EAASM,oBAAoBA,oBAAoBC,EAAIN,EAAe,KAItE,OAAOD,EAIR,IAAIQ,EAAmB,GAGnBC,EAAqB,CACxB,IAAO,GAMJjB,EAAkB,CACrB,IAAO,GAGJK,EAAkB,GAQtB,SAASS,oBAAoB1B,GAG5B,GAAG4B,EAAiB5B,GACnB,OAAO4B,EAAiB5B,GAAU8B,QAGnC,IAAIC,EAASH,EAAiB5B,GAAY,CACzCK,EAAGL,EACHgC,GAAG,EACHF,QAAS,IAUV,OANAhB,EAAQd,GAAUW,KAAKoB,EAAOD,QAASC,EAAQA,EAAOD,QAASJ,qBAG/DK,EAAOC,GAAI,EAGJD,EAAOD,QAKfJ,oBAAoBO,EAAI,SAASC,cAAcjC,GAC9C,IAAIkC,EAAW,GAKZN,EAAmB5B,GAAUkC,EAAStB,KAAKgB,EAAmB5B,IACzB,IAAhC4B,EAAmB5B,IAFX,CAAC,4BAA4B,EAAE,uBAAuB,EAAE,MAAQ,EAAE,sBAAsB,EAAE,iBAAiB,EAAE,KAAO,GAE7EA,IACtDkC,EAAStB,KAAKgB,EAAmB5B,GAAW,IAAImC,SAAQ,SAASC,EAASC,GAIzE,IAHA,IAAIC,EAAO,QAAU,CAAC,4BAA4B,4BAA4B,uBAAuB,uBAAuB,MAAQ,QAAQ,sBAAsB,sBAAsB,iBAAiB,iBAAiB,KAAO,OAAO,iBAAiB,iBAAiB,MAAQ,SAAStC,IAAUA,GAAW,IAAM,CAAC,4BAA4B,WAAW,uBAAuB,WAAW,MAAQ,WAAW,sBAAsB,WAAW,iBAAiB,WAAW,KAAO,WAAW,iBAAiB,WAAW,MAAQ,YAAYA,GAAW,OACzhBuC,EAAWd,oBAAoBe,EAAIF,EACnCG,EAAmBC,SAASC,qBAAqB,QAC7CvC,EAAI,EAAGA,EAAIqC,EAAiBnC,OAAQF,IAAK,CAChD,IACIwC,GADAC,EAAMJ,EAAiBrC,IACR0C,aAAa,cAAgBD,EAAIC,aAAa,QACjE,GAAe,eAAZD,EAAIE,MAAyBH,IAAaN,GAAQM,IAAaL,GAAW,OAAOH,IAErF,IAAIY,EAAoBN,SAASC,qBAAqB,SACtD,IAAQvC,EAAI,EAAGA,EAAI4C,EAAkB1C,OAAQF,IAAK,CACjD,IAAIyC,EAEJ,IADID,GADAC,EAAMG,EAAkB5C,IACT0C,aAAa,gBAChBR,GAAQM,IAAaL,EAAU,OAAOH,IAEvD,IAAIa,EAAUP,SAASQ,cAAc,QACrCD,EAAQF,IAAM,aACdE,EAAQE,KAAO,WACfF,EAAQG,OAAShB,EACjBa,EAAQI,QAAU,SAASC,GAC1B,IAAIC,EAAUD,GAASA,EAAME,QAAUF,EAAME,OAAOC,KAAOlB,EACvDmB,EAAM,IAAIC,MAAM,qBAAuB3D,EAAU,cAAgBuD,EAAU,KAC/EG,EAAIE,KAAO,wBACXF,EAAIH,QAAUA,SACP3B,EAAmB5B,GAC1BiD,EAAQY,WAAWC,YAAYb,GAC/BZ,EAAOqB,IAERT,EAAQX,KAAOC,EAEJG,SAASC,qBAAqB,QAAQ,GAC5CoB,YAAYd,MACfe,MAAK,WACPpC,EAAmB5B,GAAW,MAMhC,IAAIiE,EAAqBtD,EAAgBX,GACzC,GAA0B,IAAvBiE,EAGF,GAAGA,EACF/B,EAAStB,KAAKqD,EAAmB,QAC3B,CAEN,IAAIC,EAAU,IAAI/B,SAAQ,SAASC,EAASC,GAC3C4B,EAAqBtD,EAAgBX,GAAW,CAACoC,EAASC,MAE3DH,EAAStB,KAAKqD,EAAmB,GAAKC,GAGtC,IACIC,EADAC,EAAS1B,SAASQ,cAAc,UAGpCkB,EAAOC,QAAU,QACjBD,EAAOE,QAAU,IACb7C,oBAAoB8C,IACvBH,EAAOI,aAAa,QAAS/C,oBAAoB8C,IAElDH,EAAOX,IAnGV,SAASgB,eAAezE,GACvB,OAAOyB,oBAAoBe,EAAI,OAAS,CAAC,4BAA4B,4BAA4B,uBAAuB,uBAAuB,MAAQ,QAAQ,sBAAsB,sBAAsB,iBAAiB,iBAAiB,KAAO,OAAO,iBAAiB,iBAAiB,MAAQ,SAASxC,IAAUA,GAAW,IAAM,CAAC,4BAA4B,WAAW,uBAAuB,WAAW,MAAQ,WAAW,sBAAsB,WAAW,iBAAiB,WAAW,KAAO,WAAW,iBAAiB,WAAW,MAAQ,YAAYA,GAAW,MAkGjiByE,CAAezE,GAG5B,IAAI0E,EAAQ,IAAIf,MAChBQ,EAAmB,SAAUb,GAE5Bc,EAAOf,QAAUe,EAAOhB,OAAS,KACjCuB,aAAaL,GACb,IAAIM,EAAQjE,EAAgBX,GAC5B,GAAa,IAAV4E,EAAa,CACf,GAAGA,EAAO,CACT,IAAIC,EAAYvB,IAAyB,SAAfA,EAAMH,KAAkB,UAAYG,EAAMH,MAChE2B,EAAUxB,GAASA,EAAME,QAAUF,EAAME,OAAOC,IACpDiB,EAAMK,QAAU,iBAAmB/E,EAAU,cAAgB6E,EAAY,KAAOC,EAAU,IAC1FJ,EAAMM,KAAO,iBACbN,EAAMvB,KAAO0B,EACbH,EAAMnB,QAAUuB,EAChBF,EAAM,GAAGF,GAEV/D,EAAgBX,QAAWiF,IAG7B,IAAIX,EAAUY,YAAW,WACxBf,EAAiB,CAAEhB,KAAM,UAAWK,OAAQY,MAC1C,MACHA,EAAOf,QAAUe,EAAOhB,OAASe,EACjCzB,SAASyC,KAAKpB,YAAYK,GAG5B,OAAOjC,QAAQiD,IAAIlD,IAIpBT,oBAAoB4D,EAAIxE,EAGxBY,oBAAoB6D,EAAI3D,EAGxBF,oBAAoB8D,EAAI,SAAS1D,EAASmD,EAAMQ,GAC3C/D,oBAAoBgE,EAAE5D,EAASmD,IAClCzE,OAAOmF,eAAe7D,EAASmD,EAAM,CAAEW,YAAY,EAAMC,IAAKJ,KAKhE/D,oBAAoBoE,EAAI,SAAShE,GACX,oBAAXiE,QAA0BA,OAAOC,aAC1CxF,OAAOmF,eAAe7D,EAASiE,OAAOC,YAAa,CAAEC,MAAO,WAE7DzF,OAAOmF,eAAe7D,EAAS,aAAc,CAAEmE,OAAO,KAQvDvE,oBAAoBwE,EAAI,SAASD,EAAOE,GAEvC,GADU,EAAPA,IAAUF,EAAQvE,oBAAoBuE,IAC/B,EAAPE,EAAU,OAAOF,EACpB,GAAW,EAAPE,GAA8B,iBAAVF,GAAsBA,GAASA,EAAMG,WAAY,OAAOH,EAChF,IAAII,EAAK7F,OAAO8F,OAAO,MAGvB,GAFA5E,oBAAoBoE,EAAEO,GACtB7F,OAAOmF,eAAeU,EAAI,UAAW,CAAET,YAAY,EAAMK,MAAOA,IACtD,EAAPE,GAA4B,iBAATF,EAAmB,IAAI,IAAIM,KAAON,EAAOvE,oBAAoB8D,EAAEa,EAAIE,EAAK,SAASA,GAAO,OAAON,EAAMM,IAAQC,KAAK,KAAMD,IAC9I,OAAOF,GAIR3E,oBAAoB+E,EAAI,SAAS1E,GAChC,IAAI0D,EAAS1D,GAAUA,EAAOqE,WAC7B,SAASM,aAAe,OAAO3E,EAAgB,SAC/C,SAAS4E,mBAAqB,OAAO5E,GAEtC,OADAL,oBAAoB8D,EAAEC,EAAQ,IAAKA,GAC5BA,GAIR/D,oBAAoBgE,EAAI,SAASkB,EAAQC,GAAY,OAAOrG,OAAOC,UAAUC,eAAeC,KAAKiG,EAAQC,IAGzGnF,oBAAoBe,EAAI,IAGxBf,oBAAoBoF,GAAK,SAASnD,GAA2B,MAApBoD,QAAQpC,MAAMhB,GAAYA,GAEnE,IAAIqD,EAAaC,OAAqB,aAAIA,OAAqB,cAAK,GAChEC,EAAmBF,EAAWnG,KAAK2F,KAAKQ,GAC5CA,EAAWnG,KAAOf,qBAClBkH,EAAaA,EAAWG,QACxB,IAAI,IAAI9G,EAAI,EAAGA,EAAI2G,EAAWzG,OAAQF,IAAKP,qBAAqBkH,EAAW3G,IAC3E,IAAIU,EAAsBmG,EAI1BjG,EAAgBJ,KAAK,CAAC,EAAE,kBAEjBM,uB,mKChQIiG,EAAa,CACxBC,MAN8B,CAC5BC,OAAQ,GACRC,gBAAgB,GAKlBC,U,UAAA,EACAC,UAAA,EACAC,UAAA,G,wBCAWC,EAAa,CACxBN,MAV8B,CAC9BO,WAAY,KACZC,MAAO,GACPC,YAAY,EACZC,qBAAqB,EACrBC,qBAAqB,EACrBC,cAAe,IAKfT,U,UAAA,EACAC,QAAA,IACAC,QAAA,KCXF,UAAIQ,IAAI,KAER,IAAMC,EAAoC,CACxCrH,QAAS,CACPsH,KAAMT,EACN5H,KAAMqH,IAIGiB,EAAQ,IAAI,IAAKC,MAAaH,GAE5B,O,kCClBf,4NAIaT,EAAU,CACnBa,WAAY,oBAAClB,GAAD,OAAsBA,EAAMS,YACxCE,oBAAqB,6BAACX,GAAD,OAAsBA,EAAMW,qBACjDD,oBAAqB,6BAACV,GAAD,OAAsBA,EAAMU,qBACjDF,MAAO,eAACR,GAAD,OAAsBA,EAAMQ,OACnCD,WAAY,oBAACP,GAAD,OAAsBA,EAAMO,YACxCY,kBAAmB,2BAACnB,GAAD,OAAsBA,EAAMY,cAAc1H,OAAS,GAAK8G,EAAMY,cAAc,KAG5FQ,EAAQ,4BAAoC,IAA5CA,KAEMC,EAA0BD,EAAKf,EAAQK,qBACvCY,EAA0BF,EAAKf,EAAQM,qBACvCY,EAAiBH,EAAKf,EAAQE,YAC9BiB,EAAiBJ,EAAKf,EAAQa,YAE9BO,GADYL,EAAKf,EAAQG,OACDY,EAAKf,EAAQc,qB,oCCpBlD,wEAYaO,EAPC,GAAH,OAAM,IAQJC,EAAU,a,oCCbvB,4BAKA,UAAId,IAAI,KAEO,QAAI,IAAO,CACxB/B,KAAM,UACN8C,KAAM,IACNC,OAAQ,CACN,CACEC,KAAM,IACNC,UAAW,4BAAM,wCACjBC,SAAU,CACR,CACEF,KAAM,QAINC,UAAW,4BAAM,qHAEnB,CACED,KAAM,MACNC,UAAW,4BAAM,kDAEnB,CACED,KAAM,OACNC,UAAW,4BAAM,kHACjBC,SAAU,CACR,CACEF,KAAM,YACNC,UAAW,4BAAM,6JAM3B,CACED,KAAM,KAAMG,SAAU,Y,oCCvC5B,gSAKa9B,EAAY,CACrB+B,SADqB,kBACZlC,EAAkBmC,GACvBnC,EAAMQ,MAAQ2B,GAElBC,YAJqB,qBAITpC,EAAkBmC,GAC1BnC,EAAMO,WAAa4B,GAEvBE,cAPqB,uBAOPrC,EAAkBmC,GAC5BnC,EAAMS,WAAa0B,GAEvBG,uBAVqB,gCAUEtC,EAAkBmC,GACrCnC,EAAMU,oBAAsByB,GAEhCI,uBAbqB,gCAaEvC,EAAkBmC,GACrCnC,EAAMW,oBAAsBwB,GAEhCK,gBAhBqB,yBAgBLxC,EAAkBmC,GAC9BnC,EAAMY,cAAcpH,KAAK2I,IAE7BM,mBAnBqB,4BAmBFzC,EAAkBmC,GACjCnC,EAAMY,cAAgBZ,EAAMY,cAAc8B,QAAO,SAACC,GAAD,OAAkBA,IAAiBR,OAIrFS,EAAU,4BAA0C,IAApDA,OAEMC,EAA+BD,EAAOzC,EAAUmC,wBAChDQ,EAA+BF,EAAOzC,EAAUoC,wBAChDQ,EAAoBH,EAAOzC,EAAUiC,aACrCY,EAAsBJ,EAAOzC,EAAUkC,eACvCY,EAAiBL,EAAOzC,EAAU+B,UAClCgB,EAAwBN,EAAOzC,EAAUqC,iBACzCW,EAA2BP,EAAOzC,EAAUsC,qB,oCCrCzD,wJAIapC,EAAU,CACnBJ,OAAQ,gBAACD,GAAD,OAAsBA,EAAMC,QACpCC,eAAgB,wBAACF,GAAD,OAAsBA,EAAME,gBAC5CkD,eAAgB,wBAACpD,GAAD,OAAsB7G,OAAOkK,OAAOrD,EAAMC,QAAQyC,QAAO,SAAC7D,GAAD,OAAOA,EAAEyE,YAAUC,KAAI,SAAC1E,GAAD,OAAOA,EAAE2E,QAEtGpC,EAAQ,4BAAoC,IAA5CA,KAEMqC,EAAarC,EAAKf,EAAQJ,QAC1ByD,EAAqBtC,EAAKf,EAAQH,gBAClCyD,EAAqBvC,EAAKf,EAAQ+C,iB,8hBCR/C,SAASQ,YAAYpD,GACnB,MAAO,CACLqD,QAAS,CACPC,cAAe,UAAF,OAAYtD,IAE3BuD,OAAQ,IAIL,IAAMC,EAAM,CACXC,SADW,kBACFzD,GAAa,yJACnB,EAAA0D,EAAM1F,IAAN,UAAa,IAAb,uBAA0CoF,YAAYpD,KADnC,oDAGtB2D,UAJW,mBAID3D,GAAa,2JACpB,EAAA0D,EAAM1F,IAAN,UAAsB,IAAtB,gBAA4CoF,YAAYpD,KADpC,qDAGvB4D,YAPW,qBAOC5D,EAAgB9H,GAAiB,2JAC1C,EAAAwL,EAAMG,KAAN,UAAqB,IAArB,gBAA2C3L,EAAMkL,YAAYpD,KADnB,qDAG7C8D,WAVW,oBAUA9D,EAAe+D,GAAmD,mKAArCC,EAAqC,+BAAtB,EAAGC,EAAmB,+BAAH,KACxEC,EAAUd,YAAYpD,IACpBuD,OAAS,CAACY,SAAUJ,EAAMf,GAAIgB,OAAMC,SAFqC,kBAG1E,EAAAP,EAAM1F,IAAN,UAAyB,IAAzB,iBAAgDkG,IAH0B,qDAK7EE,cAfW,uBAeGpE,EAAesB,GAAY,+IACvC4C,EAAUd,YAAYpD,IACpBuD,OAAS,CAACjC,QAF2B,kBAGtC,EAAAoC,EAAM1F,IAAN,UAAa,IAAb,kBAAqCkG,IAHC,uD,q9CCJjD,SAASG,iBAAiBN,GACtBA,EAAMO,WAAa,GACnBP,EAAMQ,aAAe,GACrBR,EAAMjB,UAAW,EACjBiB,EAAMS,OAAS,GACfT,EAAMU,WAAY,EAGf,IAAM9E,EAAY,CACrB+E,UADqB,mBACXlF,EAAkBmC,GAAgB,mCACpBA,GADoB,IACxC,2BAA6B,CACzB0C,iBADyB,UADW,8BAIxC,IAAM5E,EAASkC,EAAQgD,QAAO,SAACC,EAAKb,GAEhC,OADAa,EAAIb,EAAMf,IAAMe,EACTa,IACN,IACLpF,EAAMC,OAASA,GAEnBoF,SAXqB,kBAWZrF,EAAkBmC,GACvB0C,iBAAiB1C,GAEjB,UAAImD,IAAItF,EAAMC,OAAQkC,EAAQqB,GAAIrB,IAEtCoD,eAhBqB,wBAgBNvF,EAAkBmC,GAC7BnC,EAAMC,OAAOkC,EAAQqB,IAAIF,UAAW,GAGxCkC,gBApBqB,yBAoBLxF,EAAkBmC,GAC9BnC,EAAMC,OAAOkC,EAAQsD,SAASV,aAAe5C,EAAQ4B,QAEzD2B,UAvBqB,mBAuBX1F,EAAkBmC,GACxBnC,EAAMC,OAAOkC,EAAQsD,SAAST,OAAS7C,EAAQ6C,QAEnDW,kBA1BqB,2BA0BH3F,EAAkBmC,GAChCnC,EAAME,eAAiBiC,EAAQyD,QAC/B5F,EAAMC,OAAOkC,EAAQsD,SAASR,UAAY9C,EAAQyD,SAEtDC,cA9BqB,uBA8BP7F,EAAkBmC,GAC5B,IAAMzJ,EA1Dd,SAASoN,WAAWC,GAEhB,IADA,IAAMjB,EAAwC,GACrCkB,EAAQ,EAAGA,EAAQD,EAAQ7M,OAAQ8M,IAAS,CACjD,IAAMC,EAAMF,EAAQC,GAAOtN,KACrBsH,EAAQ+F,EAAQC,GAAOhG,MAC7B,IAAK,IAAMkG,KAASD,EACZC,IACc,IAAVF,IACAlB,EAAWoB,GAAS,IAExBpB,EAAWoB,GAAO1M,KAAK,CAAEwG,QAAOpB,MAAOqH,EAAIC,MAMvD,OAAOpB,EA0CUgB,CAAW3D,EAAQzJ,MAC1B6L,EAAQvE,EAAMC,OAAOkC,EAAQsD,SACnC,GAA6C,IAAzCtM,OAAOgN,KAAK5B,EAAMO,YAAY5L,OAC9BqL,EAAMO,WAAapM,OAEnB,IAAK,IAAM0N,KAAa1N,EAChB0N,IACA7B,EAAMO,WAAWsB,GAAa7B,EAAMO,WAAWsB,GAAWC,OACtD3N,EAAK0N,OAQtBxD,EAAU,4BAA0C,IAApDA,OAEM0D,EAAkB1D,EAAOzC,EAAU+E,WACnCqB,EAAiB3D,EAAOzC,EAAUkF,UAClCmB,EAAuB5D,EAAOzC,EAAUoF,gBACxCkB,EAAmB7D,EAAOzC,EAAU0F,eACpCa,EAAwB9D,EAAOzC,EAAUqF,iBACzCmB,EAAkB/D,EAAOzC,EAAUuF,WACnCkB,EAA0BhE,EAAOzC,EAAUwF,oB,uyBCnEjD,IAAMvF,EAAU,CACbyG,gBADa,yBACGC,GAAoB,6IAClCC,EAAiC,KADC,kBAGjB,IAAI5C,UAAU2C,EAAQE,UAAUjG,KAAKP,OAHpB,OAGlCuG,EAHkC,wEAK5B,YAAsBD,EAAD,MALO,QAOlCC,GACA,YAAgBD,EAASC,EAASrO,MARA,kEAWpCuO,kBAZa,2BAYKH,EAAsB3E,GAAoB,iJACxD+E,EAAsB,CAAEC,QAAS,SAAUC,cAAc,GAC/D,YAAsBN,EAASI,GAC3BH,EAAiC,KAHyB,kBAKzC,IAAI3C,YAAY0C,EAAQE,UAAUjG,KAAKP,MAAO2B,GALL,OAK1D4E,EAL0D,wEAOpD,YAAsBD,EAAD,MAP+B,QAS9D,YAAyBA,EAASI,GAClB,MAAZH,IACA,YAAeD,EAASC,EAASrO,MACjC,YAAsBoO,EAAS,CAAEK,QAAS,6BAA8BE,MAAO,aAZrB,mEAe5DC,qBA3Ba,8BA2BQR,EAAsB3E,GAAc,kIAC3D,YAAqB2E,EAAS3E,GAD6B,qDAGzDoF,sBA9Ba,+BA8BST,EAAsB3E,GAA4C,kIAC1F,YAAsB2E,EAAS3E,GAD2D,qDAGxFqF,iBAjCa,0BAkCfV,EACA3E,GAGkB,yJACZoC,EAAQpC,EAAQoC,MAChBC,EAAOrC,EAAQqC,KAAOrC,EAAQqC,KAAO,EACrCC,EAAQtC,EAAQsC,MAAQtC,EAAQsC,MAAQ,IACxCzG,IAAMmE,EAAQnE,KAAMmE,EAAQnE,IAC5BkJ,EAAsB,CAAEC,QAAS,qBAAsBC,cAAc,GAC9D,IAAT5C,GACA,YAAsBsC,EAASI,GAE/BH,EAAiC,KATnB,mBAWG,IAAIzC,WAAWwC,EAAQE,UAAUjG,KAAKP,MAAO+D,EAAOC,EAAMC,GAX7D,QAWdsC,EAXc,0EAaR,YAAsBD,EAAD,MAbb,WAeF,MAAZC,EAfc,oBAgBd,YAAiBD,EAAS,CAACrB,QAASlB,EAAMf,GAAI9K,KAAMqO,EAASrO,QACjD,IAARsF,GAAgB+I,EAASrO,KAAKQ,SAAWuL,EAjB/B,kCAmBJgD,EAAmBX,EAAS,CAACvC,QAAOC,KAAMA,EAAOC,EAAOA,QAAOzG,KAAK,IAnBhE,QAqBlB,YAAyB8I,EAASI,GArBhB,oEAuBhBQ,gBA7Da,yBA6DGZ,EAAsB3E,GAA0C,kIAClF,YAAgB2E,EAAS3E,GADyD,qDAGhFwF,wBAhEa,iCAgEWb,EAAsB3E,GAA4C,kIAC5F,YAAwB2E,EAAS3E,GAD2D,sDAK5FyF,EAAa,4BAA0C,IAAvDA,SAEKC,EAAoBD,EAASxH,EAAQyG,iBACrCiB,EAAsBF,EAASxH,EAAQ6G,mBACvCc,EAAyBH,EAASxH,EAAQkH,sBAC1CG,EAAqBG,EAASxH,EAAQoH,kBACtCQ,EAA0BJ,EAASxH,EAAQmH,uBAC3CU,EAAoBL,EAASxH,EAAQsH,iBACrCQ,EAA4BN,EAASxH,EAAQuH,0B,+qEC9E1D,IAAqB,EAArB,a,0PAAA,qK,2BACWQ,MAAgB,EAChB,EAAAC,KAAe,GACf,EAAAhB,cAAwB,EACxB,EAAAiB,UAAoB,EACpB,EAAAC,qBAA+C,EAL1D,S,oGAAA,wEAOW,4BAAApE,EAAA,sEACHqE,KAAKJ,MAAO,EADT,SAEG,IAAIpN,SAAQ,SAACC,EAASC,GAAV,OAAqB6C,YAAW,kBAAM9C,MAAW,QAFhE,sDAPX,oGAYW,6BAAAkJ,EAAA,gFACGqE,KAAKC,OADR,uBAEGD,KAAKE,4BAFR,uDAZX,yHAiBW,6BAAAvE,EAAA,gEACCqE,KAAKD,qBACL,YAAyBC,KAAKG,OAAQH,KAAKD,qBAF5C,uDAjBX,oGAuBI,eACI,OAAO,YAAsBC,KAAKG,UAxB1C,4DA2BW,kBAAsB/F,GAAtB,SAAAuB,EAAA,oEACCqE,KAAKJ,KADN,gCAEOI,KAAKC,OAFZ,OAIC7F,GACA4F,KAAKD,oBAAsB3F,EAC3B4F,KAAKnB,aAAezE,EAAayE,eAAgB,EACjDmB,KAAKF,SAAW1F,EAAa0F,WAAY,EACzCE,KAAKJ,MAAO,GAEZI,KAAKD,qBAAsB,EAV5B,uDA3BX,+HA0CW,kBACHK,EACAC,GAFG,SAAA1E,EAAA,mEAICyE,IAAoBJ,KAAKD,oBAJ1B,gCAKOC,KAAKM,gBAAgBF,GAL5B,OAMKA,GACA,YAA2BJ,KAAKG,OAAQ,CAAE/F,aAAcgG,EAAiBzL,QAAS,MAPvF,uDA1CX,2GAsDI,eACI,OAAOqL,KAAKD,qBAAuBC,KAAKD,oBAAoBnB,SAAW,KAvD/E,oCA0DI,eACI,OAAOoB,KAAKD,qBAAuBC,KAAKD,oBAAoBjB,OAAS,WA3D7E,sBAAkD,KA0C9C,aADC,YAAM,sB,mCAWN,MApDgB,ICpB0X,EDoB1X,EAAoB,aADxC,KACoB,G,iFEbjBtF,EAAY,YACd,GCRW,WAAa,IAAI+G,EAAIP,KAASQ,EAAGD,EAAIE,eAAmBC,EAAGH,EAAII,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACA,EAAG,aAAa,CAACE,MAAM,CAAC,MAAQL,EAAIM,0BAA0BC,MAAM,CAACzK,MAAOkK,EAAQ,KAAEQ,SAAS,SAAUC,GAAMT,EAAIX,KAAKoB,GAAKC,WAAW,SAAS,CAACP,EAAG,MAAM,CAACQ,YAAY,8CAA8C,CAACR,EAAG,sBAAsB,CAACS,WAAW,CAAC,CAAC9L,KAAK,OAAO+L,QAAQ,SAAS/K,MAAOkK,EAAgB,aAAEU,WAAW,iBAAiBC,YAAY,OAAON,MAAM,CAAC,cAAgB,MAAMF,EAAG,SAAS,CAACS,WAAW,CAAC,CAAC9L,KAAK,OAAO+L,QAAQ,SAAS/K,MAAOkK,EAAY,SAAEU,WAAW,aAAaC,YAAY,OAAON,MAAM,CAAC,MAAQ,KAAK,CAACL,EAAIc,GAAG,gBAAgBd,EAAIc,GAAG,IAAId,EAAIe,GAAGf,EAAIgB,4BAA4B,KAAKb,EAAG,QAAQ,CAACE,MAAM,CAAC,KAAO,IAAIY,SAAS,CAAC,MAAQ,SAASC,GAAQ,OAAOlB,EAAImB,MAAMpQ,MAAM,KAAMqQ,cAAc,CAACpB,EAAIc,GAAG,YAAY,MAAM,KACpzB,IDUpB,EACA,KACA,KACA,MAIa,EAAA7H,EAAiB,Q,wqEAQhC,IAAkBA,EAAW,CAACoI,OAAA,EAAKC,QAAA,EAAMC,oBAAA,EAAkBC,YAAA,IEM3D,IAAqB,EAArB,a,8SAAA,qK,kLAAA,0BAEE,SAAA9L,MACE,OAAO,YAAe+J,KAAKG,UAH/B,wB,oWAAA,WAMS,4BAAAxE,EAAA,+EACC,YAAsBqE,KAAKG,QAD5B,sDANT,4DAAiC,KChC2U,EDgCvV,EAAG,aALvB,YAAU,CACT6B,WAAY,CACVC,qBAAA,MAGiB,G,4DEzBjB,EAAY,YACd,GCRW,WAAa,IAAiBzB,EAATR,KAAgBS,eAAmBC,EAAnCV,KAA0CW,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,MAAM,CAAC,GAAK,QAAQ,CAACF,EAAG,QAAQ,CAAiB,OAAzHV,KAA8GkC,SAAiBxB,EAAG,YAAY,CAACA,EAAG,cAAc,CAACE,MAAM,CAAC,cAAc,KAAK,CAACF,EAAG,QAAQ,CAACE,MAAM,CAAC,eAAe,GAAG,iBAAiB,KAAK,CAACF,EAAG,SAAS,CAACA,EAAG,MAAM,CAACQ,YAAY,kBAAkB,CAACR,EAAG,MAAM,CAACQ,YAAY,iBAAiB,CAArVlB,KAA0VqB,GAAG,gBAAgBX,EAAG,sBAAsB,CAACE,MAAM,CAAC,KAAO,MAAM,cAAgB,GAAG,MAAQ,cAAc,MAAM,IAAI,IAAI,GAAGF,EAAG,eAAeA,EAAG,yBAAyB,IAAI,KACnhB,IDUpB,EACA,KACA,KACA,MAIa,IAAiB,QAUhC,IAAkB,EAAW,CAACyB,OAAA,EAAKC,aAAA,EAAWC,WAAA,EAASC,QAAA,EAAMR,oBAAA,EAAkBS,OAAA,I,uBEzB/E,EAAUC,cAAc,CACtB,mBACA,mBACA,sB,gBCHF,UAAIlK,IAAI,K,4BCCR,UAAIA,IAAI,KAEO,UAAI,IAAQ,CACvBmK,MAAO,CACHC,OAAQ,CACJC,MAAO,CACHC,QAASC,EAAA,EAAOC,KAAKC,UAEzBC,KAAM,CACFJ,QAASC,EAAA,EAAOC,KAAKC,c,YCFrC,UAAIE,OAAOC,eAAgB,EAE3B,UAAI5K,IAAI,KAER,IAAI,UAAI,CACN6K,SAAA,EACA1K,QAAA,EACA2K,UACAC,OAAQ,gBAACC,GAAD,OAAOA,EAAE,MAChBC,OAAO,S,qtBCHH,IAAM1L,EAAU,CACb2L,iBADa,0BACIjF,EAAsB3E,GAA0B,iKAExC,IAAI8B,SAAS9B,EAAQ3B,OAFmB,UAEzDuG,EAFyD,SAGzDvG,EAAQuG,EAASrO,KAAK8H,OAHqC,CAAF,uBAK3D,YAAesG,EAAStG,GACxB,YAAkBsG,GAAS,GAC3B,YAAoBA,GAAS,GAP8B,UAQrDkF,EAAsBlF,GAR+B,QAS3D,YAAsBA,EAAS,CAAEK,QAAS,YAAaE,MAAO,YATH,yCAWrD4E,EAAenF,GAXsC,iEAc/D,YAAoBA,GAAS,GAdkC,UAezDmF,EAAenF,GAf0C,mEAkBjEoF,oBAnBa,6BAmBOpF,GAAoB,qIACrCA,EAAQ9G,MAAMO,WADyB,CAAF,oBAExBuG,EAAQ9G,MAAMQ,MAFY,CAAF,yBAK9B,YAAkBsG,GAAS,GALG,iEAOxBqF,EAAoBrF,GAPI,iDAU5BqF,EAAoBrF,GAVQ,mEAcxCsF,kBAjCa,2BAiCKtF,GAAoB,kIACxC,YAAeA,EAAS,IACxB,YAAkBA,GAAS,GAFa,qDAItCuF,aArCa,sBAqCAvF,GAAoB,kJAC7BqF,EAAoBrF,GADS,uBAE7BwF,EAAoBxF,GAFS,qDAIjCyF,iBAzCa,0BAyCIzF,GAAoB,kJACjCmF,EAAenF,GADkB,OAEvC,YAAsBA,EAAS,CAAEK,QAAS,aAAcE,MAAO,YAFxB,qDAI3CmF,kBA7CmB,2BA6CD1F,GACmB,WAA7B,IAAO2F,aAAa3K,MACpB,IAAOtI,KAAK,WAGdkT,oBAlDa,6BAkDO5F,EAAsB3E,GAAmB,qIAC9B,MAA7BA,EAAQ4E,SAAU4F,OADyC,gCAErDV,EAAenF,GAFsC,OAI9B,MAA7B3E,EAAQ4E,SAAU4F,QAClB,YAAsB7F,EAAS,CAAEK,QAAShF,EAAQ4E,SAAUrO,KAAKkU,OAAQvF,MAAO,QAASgB,UAAU,IAEtE,MAA7BlG,EAAQ4E,SAAU4F,QAClB,YAAsB7F,EAAS,CAAEK,QAAShF,EAAQ4E,SAAUrO,KAAKkU,OAAQvF,MAAO,QAASgB,UAAU,IARxC,qDAWnEwE,oBA7DmB,6BA6DC/F,GACiB,WAA7B,IAAO2F,aAAa3K,MAAkD,MAA7B,IAAO2K,aAAa3K,MAC7D,IAAOtI,KAAK,oBAGdiJ,mBAlEa,4BAkEMqE,EAAsB3E,GAA2D,2JAC/F,IAAIpH,SAAQ,SAACC,EAASC,GACzB6C,YAAW,WACP,YAAyBgJ,EAAS3E,EAAQQ,cAC1C3H,GAAQ,KACTmH,EAAQjF,aALuF,sDAUtG0K,EAAa,4BAA0C,IAAvDA,SAEKkF,EAAwBlF,EAASxH,EAAQsM,qBACzCK,EAAwBnF,EAASxH,EAAQ8L,qBACzCc,EAAqBpF,EAASxH,EAAQ2L,kBACtCE,EAAiBrE,EAASxH,EAAQiM,cAClCY,EAAqBrF,EAASxH,EAAQmM,kBACtCJ,EAAsBvE,EAASxH,EAAQgM,mBACvCJ,EAAwBpE,EAASxH,EAAQyM,qBACzCP,EAAsB1E,EAASxH,EAAQoM,mBACvCU,EAA6BtF,EAASxH,EAAQqC","file":"js/app.eebf47d0.js","sourcesContent":[" \t// install a JSONP callback for chunk loading\n \tfunction webpackJsonpCallback(data) {\n \t\tvar chunkIds = data[0];\n \t\tvar moreModules = data[1];\n \t\tvar executeModules = data[2];\n\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, resolves = [];\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && installedChunks[chunkId]) {\n \t\t\t\tresolves.push(installedChunks[chunkId][0]);\n \t\t\t}\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\n \t\t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(data);\n\n \t\twhile(resolves.length) {\n \t\t\tresolves.shift()();\n \t\t}\n\n \t\t// add entry modules from loaded chunk to deferred list\n \t\tdeferredModules.push.apply(deferredModules, executeModules || []);\n\n \t\t// run deferred modules when all chunks ready\n \t\treturn checkDeferredModules();\n \t};\n \tfunction checkDeferredModules() {\n \t\tvar result;\n \t\tfor(var i = 0; i < deferredModules.length; i++) {\n \t\t\tvar deferredModule = deferredModules[i];\n \t\t\tvar fulfilled = true;\n \t\t\tfor(var j = 1; j < deferredModule.length; j++) {\n \t\t\t\tvar depId = deferredModule[j];\n \t\t\t\tif(installedChunks[depId] !== 0) fulfilled = false;\n \t\t\t}\n \t\t\tif(fulfilled) {\n \t\t\t\tdeferredModules.splice(i--, 1);\n \t\t\t\tresult = __webpack_require__(__webpack_require__.s = deferredModule[0]);\n \t\t\t}\n \t\t}\n\n \t\treturn result;\n \t}\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// object to store loaded CSS chunks\n \tvar installedCssChunks = {\n \t\t\"app\": 0\n \t}\n\n \t// object to store loaded and loading chunks\n \t// undefined = chunk not loaded, null = chunk preloaded/prefetched\n \t// Promise = chunk loading, 0 = chunk loaded\n \tvar installedChunks = {\n \t\t\"app\": 0\n \t};\n\n \tvar deferredModules = [];\n\n \t// script path function\n \tfunction jsonpScriptSrc(chunkId) {\n \t\treturn __webpack_require__.p + \"js/\" + ({\"login~main~main-dashboard\":\"login~main~main-dashboard\",\"login~main-dashboard\":\"login~main-dashboard\",\"login\":\"login\",\"main~main-dashboard\":\"main~main-dashboard\",\"main-dashboard\":\"main-dashboard\",\"main\":\"main\",\"reset-password\":\"reset-password\",\"start\":\"start\"}[chunkId]||chunkId) + \".\" + {\"login~main~main-dashboard\":\"3a1f6d10\",\"login~main-dashboard\":\"3ae3e551\",\"login\":\"cc7a4294\",\"main~main-dashboard\":\"80ebc61e\",\"main-dashboard\":\"8e408680\",\"main\":\"81fff8c5\",\"reset-password\":\"3c459bed\",\"start\":\"2c12b0d6\"}[chunkId] + \".js\"\n \t}\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n \t// This file contains only the entry chunk.\n \t// The chunk loading function for additional chunks\n \t__webpack_require__.e = function requireEnsure(chunkId) {\n \t\tvar promises = [];\n\n\n \t\t// mini-css-extract-plugin CSS loading\n \t\tvar cssChunks = {\"login~main~main-dashboard\":1,\"login~main-dashboard\":1,\"login\":1,\"main~main-dashboard\":1,\"main-dashboard\":1,\"main\":1};\n \t\tif(installedCssChunks[chunkId]) promises.push(installedCssChunks[chunkId]);\n \t\telse if(installedCssChunks[chunkId] !== 0 && cssChunks[chunkId]) {\n \t\t\tpromises.push(installedCssChunks[chunkId] = new Promise(function(resolve, reject) {\n \t\t\t\tvar href = \"css/\" + ({\"login~main~main-dashboard\":\"login~main~main-dashboard\",\"login~main-dashboard\":\"login~main-dashboard\",\"login\":\"login\",\"main~main-dashboard\":\"main~main-dashboard\",\"main-dashboard\":\"main-dashboard\",\"main\":\"main\",\"reset-password\":\"reset-password\",\"start\":\"start\"}[chunkId]||chunkId) + \".\" + {\"login~main~main-dashboard\":\"87cb79bc\",\"login~main-dashboard\":\"49552835\",\"login\":\"4b7f13da\",\"main~main-dashboard\":\"27813474\",\"main-dashboard\":\"7957e248\",\"main\":\"38cd41ea\",\"reset-password\":\"31d6cfe0\",\"start\":\"31d6cfe0\"}[chunkId] + \".css\";\n \t\t\t\tvar fullhref = __webpack_require__.p + href;\n \t\t\t\tvar existingLinkTags = document.getElementsByTagName(\"link\");\n \t\t\t\tfor(var i = 0; i < existingLinkTags.length; i++) {\n \t\t\t\t\tvar tag = existingLinkTags[i];\n \t\t\t\t\tvar dataHref = tag.getAttribute(\"data-href\") || tag.getAttribute(\"href\");\n \t\t\t\t\tif(tag.rel === \"stylesheet\" && (dataHref === href || dataHref === fullhref)) return resolve();\n \t\t\t\t}\n \t\t\t\tvar existingStyleTags = document.getElementsByTagName(\"style\");\n \t\t\t\tfor(var i = 0; i < existingStyleTags.length; i++) {\n \t\t\t\t\tvar tag = existingStyleTags[i];\n \t\t\t\t\tvar dataHref = tag.getAttribute(\"data-href\");\n \t\t\t\t\tif(dataHref === href || dataHref === fullhref) return resolve();\n \t\t\t\t}\n \t\t\t\tvar linkTag = document.createElement(\"link\");\n \t\t\t\tlinkTag.rel = \"stylesheet\";\n \t\t\t\tlinkTag.type = \"text/css\";\n \t\t\t\tlinkTag.onload = resolve;\n \t\t\t\tlinkTag.onerror = function(event) {\n \t\t\t\t\tvar request = event && event.target && event.target.src || fullhref;\n \t\t\t\t\tvar err = new Error(\"Loading CSS chunk \" + chunkId + \" failed.\\n(\" + request + \")\");\n \t\t\t\t\terr.code = \"CSS_CHUNK_LOAD_FAILED\";\n \t\t\t\t\terr.request = request;\n \t\t\t\t\tdelete installedCssChunks[chunkId]\n \t\t\t\t\tlinkTag.parentNode.removeChild(linkTag)\n \t\t\t\t\treject(err);\n \t\t\t\t};\n \t\t\t\tlinkTag.href = fullhref;\n\n \t\t\t\tvar head = document.getElementsByTagName(\"head\")[0];\n \t\t\t\thead.appendChild(linkTag);\n \t\t\t}).then(function() {\n \t\t\t\tinstalledCssChunks[chunkId] = 0;\n \t\t\t}));\n \t\t}\n\n \t\t// JSONP chunk loading for javascript\n\n \t\tvar installedChunkData = installedChunks[chunkId];\n \t\tif(installedChunkData !== 0) { // 0 means \"already installed\".\n\n \t\t\t// a Promise means \"currently loading\".\n \t\t\tif(installedChunkData) {\n \t\t\t\tpromises.push(installedChunkData[2]);\n \t\t\t} else {\n \t\t\t\t// setup Promise in chunk cache\n \t\t\t\tvar promise = new Promise(function(resolve, reject) {\n \t\t\t\t\tinstalledChunkData = installedChunks[chunkId] = [resolve, reject];\n \t\t\t\t});\n \t\t\t\tpromises.push(installedChunkData[2] = promise);\n\n \t\t\t\t// start chunk loading\n \t\t\t\tvar script = document.createElement('script');\n \t\t\t\tvar onScriptComplete;\n\n \t\t\t\tscript.charset = 'utf-8';\n \t\t\t\tscript.timeout = 120;\n \t\t\t\tif (__webpack_require__.nc) {\n \t\t\t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n \t\t\t\t}\n \t\t\t\tscript.src = jsonpScriptSrc(chunkId);\n\n \t\t\t\t// create error before stack unwound to get useful stacktrace later\n \t\t\t\tvar error = new Error();\n \t\t\t\tonScriptComplete = function (event) {\n \t\t\t\t\t// avoid mem leaks in IE.\n \t\t\t\t\tscript.onerror = script.onload = null;\n \t\t\t\t\tclearTimeout(timeout);\n \t\t\t\t\tvar chunk = installedChunks[chunkId];\n \t\t\t\t\tif(chunk !== 0) {\n \t\t\t\t\t\tif(chunk) {\n \t\t\t\t\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n \t\t\t\t\t\t\tvar realSrc = event && event.target && event.target.src;\n \t\t\t\t\t\t\terror.message = 'Loading chunk ' + chunkId + ' failed.\\n(' + errorType + ': ' + realSrc + ')';\n \t\t\t\t\t\t\terror.name = 'ChunkLoadError';\n \t\t\t\t\t\t\terror.type = errorType;\n \t\t\t\t\t\t\terror.request = realSrc;\n \t\t\t\t\t\t\tchunk[1](error);\n \t\t\t\t\t\t}\n \t\t\t\t\t\tinstalledChunks[chunkId] = undefined;\n \t\t\t\t\t}\n \t\t\t\t};\n \t\t\t\tvar timeout = setTimeout(function(){\n \t\t\t\t\tonScriptComplete({ type: 'timeout', target: script });\n \t\t\t\t}, 120000);\n \t\t\t\tscript.onerror = script.onload = onScriptComplete;\n \t\t\t\tdocument.head.appendChild(script);\n \t\t\t}\n \t\t}\n \t\treturn Promise.all(promises);\n \t};\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/\";\n\n \t// on error function for async loading\n \t__webpack_require__.oe = function(err) { console.error(err); throw err; };\n\n \tvar jsonpArray = window[\"webpackJsonp\"] = window[\"webpackJsonp\"] || [];\n \tvar oldJsonpFunction = jsonpArray.push.bind(jsonpArray);\n \tjsonpArray.push = webpackJsonpCallback;\n \tjsonpArray = jsonpArray.slice();\n \tfor(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]);\n \tvar parentJsonpFunction = oldJsonpFunction;\n\n\n \t// add entry module to deferred list\n \tdeferredModules.push([0,\"chunk-vendors\"]);\n \t// run deferred modules when ready\n \treturn checkDeferredModules();\n","import { actions } from './actions';\nimport { getters } from './getters';\nimport { mutations } from './mutations';\nimport { DataState } from './state';\n\nconst defaultState: DataState = {\n traces: {},\n loadingSamples: false,\n};\n\nexport const dataModule = {\n state: defaultState,\n mutations,\n actions,\n getters,\n};\n","import { actions } from './actions';\nimport { getters } from './getters';\nimport { mutations } from './mutations';\nimport { MainState } from './state';\n\nconst defaultState: MainState = {\n isLoggedIn: null,\n token: '',\n logInError: false,\n dashboardMiniDrawer: false,\n dashboardShowDrawer: false,\n notifications: [],\n};\n\nexport const mainModule = {\n state: defaultState,\n mutations,\n actions,\n getters,\n};\n","import Vue from 'vue';\nimport Vuex, { StoreOptions } from 'vuex';\n\nimport { dataModule } from './data';\nimport { mainModule } from './main';\nimport { State } from './state';\n\nVue.use(Vuex);\n\nconst storeOptions: StoreOptions = {\n modules: {\n main: mainModule,\n data: dataModule,\n },\n};\n\nexport const store = new Vuex.Store(storeOptions);\n\nexport default store;\n","import { getStoreAccessors } from 'typesafe-vuex';\nimport { State } from '../state';\nimport { MainState } from './state';\n\nexport const getters = {\n loginError: (state: MainState) => state.logInError,\n dashboardShowDrawer: (state: MainState) => state.dashboardShowDrawer,\n dashboardMiniDrawer: (state: MainState) => state.dashboardMiniDrawer,\n token: (state: MainState) => state.token,\n isLoggedIn: (state: MainState) => state.isLoggedIn,\n firstNotification: (state: MainState) => state.notifications.length > 0 && state.notifications[0],\n};\n\nconst {read} = getStoreAccessors('');\n\nexport const readDashboardMiniDrawer = read(getters.dashboardMiniDrawer);\nexport const readDashboardShowDrawer = read(getters.dashboardShowDrawer);\nexport const readIsLoggedIn = read(getters.isLoggedIn);\nexport const readLoginError = read(getters.loginError);\nexport const readToken = read(getters.token);\nexport const readFirstNotification = read(getters.firstNotification);\n","const env = process.env.VUE_APP_ENV;\n\nlet envApiUrl = '';\n\nif (env === 'production') {\n envApiUrl = `${process.env.VUE_APP_DOMAIN_PROD}`;\n} else if (env === 'staging') {\n envApiUrl = `${process.env.VUE_APP_DOMAIN_STAG}`;\n} else {\n envApiUrl = `${process.env.VUE_APP_DOMAIN_DEV}`;\n}\n\nexport const apiUrl = envApiUrl;\nexport const appName = process.env.VUE_APP_NAME;\n","import Vue from 'vue';\nimport Router from 'vue-router';\n\nimport RouterComponent from './components/RouterComponent.vue';\n\nVue.use(Router);\n\nexport default new Router({\n mode: 'history',\n base: process.env.BASE_URL,\n routes: [\n {\n path: '/',\n component: () => import(/* webpackChunkName: \"start\" */ './views/main/Start.vue'),\n children: [\n {\n path: 'login',\n // route level code-splitting\n // this generates a separate chunk (about.[hash].js) for this route\n // which is lazy-loaded when the route is visited.\n component: () => import(/* webpackChunkName: \"login\" */ './views/Login.vue'),\n },\n {\n path: '404',\n component: () => import(/* webpackChunkName: \"reset-password\" */ './views/404.vue'),\n },\n {\n path: 'main',\n component: () => import(/* webpackChunkName: \"main\" */ './views/main/Main.vue'),\n children: [\n {\n path: 'dashboard',\n component: () => import(/* webpackChunkName: \"main-dashboard\" */ './views/main/Dashboard.vue'),\n },\n ],\n },\n ],\n },\n {\n path: '/*', redirect: '/404',\n },\n ],\n});\n","import { getStoreAccessors } from 'typesafe-vuex';\nimport { State } from '../state';\nimport { AppNotification, MainState } from './state';\n\n\nexport const mutations = {\n setToken(state: MainState, payload: string) {\n state.token = payload;\n },\n setLoggedIn(state: MainState, payload: boolean) {\n state.isLoggedIn = payload;\n },\n setLogInError(state: MainState, payload: boolean) {\n state.logInError = payload;\n },\n setDashboardMiniDrawer(state: MainState, payload: boolean) {\n state.dashboardMiniDrawer = payload;\n },\n setDashboardShowDrawer(state: MainState, payload: boolean) {\n state.dashboardShowDrawer = payload;\n },\n addNotification(state: MainState, payload: AppNotification) {\n state.notifications.push(payload);\n },\n removeNotification(state: MainState, payload: AppNotification) {\n state.notifications = state.notifications.filter((notification) => notification !== payload);\n },\n};\n\nconst {commit} = getStoreAccessors('');\n\nexport const commitSetDashboardMiniDrawer = commit(mutations.setDashboardMiniDrawer);\nexport const commitSetDashboardShowDrawer = commit(mutations.setDashboardShowDrawer);\nexport const commitSetLoggedIn = commit(mutations.setLoggedIn);\nexport const commitSetLogInError = commit(mutations.setLogInError);\nexport const commitSetToken = commit(mutations.setToken);\nexport const commitAddNotification = commit(mutations.addNotification);\nexport const commitRemoveNotification = commit(mutations.removeNotification);\n","import { getStoreAccessors } from 'typesafe-vuex';\nimport { State } from '../state';\nimport { DataState } from './state';\n\nexport const getters = {\n traces: (state: DataState) => state.traces,\n loadingSamples: (state: DataState) => state.loadingSamples,\n activeTraceIDs: (state: DataState) => Object.values(state.traces).filter((t) => t.isActive).map((t) => t.id),\n};\nconst {read} = getStoreAccessors('');\n\nexport const readTraces = read(getters.traces);\nexport const readLoadingSamples = read(getters.loadingSamples);\nexport const readActiveTraceIDs = read(getters.activeTraceIDs);\n\n","import { apiUrl } from '@/env';\nimport { InSample, Trace, TraceCreate } from '@/interfaces';\nimport axios from 'axios';\nimport { config } from 'vue/types/umd';\n\nfunction authHeaders(token: string) {\n return {\n headers: {\n Authorization: `Bearer ${token}`,\n },\n params: {},\n };\n}\n\nexport const api = {\n async getToken(token: string) {\n return axios.get(`${apiUrl}/api/security/token`, authHeaders(token));\n },\n async getTraces(token: string) {\n return axios.get(`${apiUrl}/api/traces/`, authHeaders(token));\n },\n async createTrace(token: string, data: TraceCreate) {\n return axios.post(`${apiUrl}/api/traces/`, data, authHeaders(token));\n },\n async getSamples(token: string, trace: Trace, skip: number = 0, limit: number = 100) {\n const options = authHeaders(token);\n options.params = {trace_id: trace.id, skip, limit};\n return axios.get(`${apiUrl}/api/samples/`, options);\n },\n async listDirectory(token: string, path: string) {\n const options = authHeaders(token);\n options.params = {path};\n return axios.get(`${apiUrl}/api/explorer/`, options);\n },\n};\n","import { Data, InSample, SetSample, Trace } from '@/interfaces';\nimport { getStoreAccessors } from 'typesafe-vuex';\nimport Vue from 'vue';\nimport { State } from '../state';\nimport { DataState } from './state';\n\nfunction formatData(samples: InSample[]) {\n const parameters: { [key: string]: Data[] } = {};\n for (let index = 0; index < samples.length; index++) {\n const row = samples[index].data;\n const state = samples[index].state;\n for (const param in row) {\n if (param) {\n if (index === 0) {\n parameters[param] = [];\n }\n parameters[param].push({ state, value: row[param] });\n }\n }\n\n }\n\n return parameters;\n}\n\nfunction setTraceDefaults(trace: Trace) {\n trace.parameters = {};\n trace.activeParams = [];\n trace.isActive = false;\n trace.burnIn = 10;\n trace.isLoading = false;\n}\n\nexport const mutations = {\n setTraces(state: DataState, payload: Trace[]) {\n for (const trace of payload) {\n setTraceDefaults(trace);\n }\n const traces = payload.reduce((obj, trace) => {\n obj[trace.id] = trace;\n return obj;\n }, {});\n state.traces = traces;\n },\n setTrace(state: DataState, payload: Trace) {\n setTraceDefaults(payload);\n // https://vuex.vuejs.org/guide/mutations.html#mutations-follow-vue-s-reactivity-rules\n Vue.set(state.traces, payload.id, payload);\n },\n setActiveTrace(state: DataState, payload: Trace) {\n state.traces[payload.id].isActive = true;\n\n },\n setActiveParams(state: DataState, payload: {traceID: number, params: string[]}) {\n state.traces[payload.traceID].activeParams = payload.params;\n },\n setBurnIn(state: DataState, payload: {traceID: number, burnIn: number}) {\n state.traces[payload.traceID].burnIn = payload.burnIn;\n },\n setLoadingSamples(state: DataState, payload: {traceID: number, loading: boolean}) {\n state.loadingSamples = payload.loading;\n state.traces[payload.traceID].isLoading = payload.loading;\n },\n setSetSamples(state: DataState, payload: {traceID: number, data: InSample[]}) {\n const data = formatData(payload.data);\n const trace = state.traces[payload.traceID];\n if (Object.keys(trace.parameters).length === 0) {\n trace.parameters = data;\n } else {\n for (const paramName in data) {\n if (paramName) {\n trace.parameters[paramName] = trace.parameters[paramName].concat(\n data[paramName], // ).sort((a, b) => a.state - b.state,\n );\n }\n }\n }\n },\n};\n\nconst {commit} = getStoreAccessors('');\n\nexport const commitSetTraces = commit(mutations.setTraces);\nexport const commitSetTrace = commit(mutations.setTrace);\nexport const commitSetActiveTrace = commit(mutations.setActiveTrace);\nexport const commitSetSamples = commit(mutations.setSetSamples);\nexport const commitSetActiveParams = commit(mutations.setActiveParams);\nexport const commitSetBurnIn = commit(mutations.setBurnIn);\nexport const commitSetLoadingSamples = commit(mutations.setLoadingSamples);\n\n","import { api } from '@/api';\nimport { Trace, TraceCreate } from '@/interfaces';\nimport { AxiosResponse } from 'axios';\nimport { getStoreAccessors } from 'typesafe-vuex';\nimport { ActionContext } from 'vuex';\nimport { dispatchCheckApiError } from '../main/actions';\nimport { commitAddNotification, commitRemoveNotification } from '../main/mutations';\nimport { State } from '../state';\nimport {\n commitSetActiveParams,\n commitSetActiveTrace,\n commitSetBurnIn,\n commitSetLoadingSamples,\n commitSetSamples,\n commitSetTrace,\n commitSetTraces,\n} from './mutations';\nimport { DataState } from './state';\n\ntype MainContext = ActionContext;\n\nexport const actions = {\n async actionGetTraces(context: MainContext) {\n let response: AxiosResponse | null = null;\n try {\n response = await api.getTraces(context.rootState.main.token);\n } catch (error) {\n await dispatchCheckApiError(context, error);\n }\n if (response) {\n commitSetTraces(context, response.data);\n }\n },\n async actionCreateTrace(context: MainContext, payload: TraceCreate) {\n const loadingNotification = { content: 'saving', showProgress: true };\n commitAddNotification(context, loadingNotification);\n let response: AxiosResponse | null = null;\n try {\n response = await api.createTrace(context.rootState.main.token, payload);\n } catch (error) {\n await dispatchCheckApiError(context, error);\n }\n commitRemoveNotification(context, loadingNotification);\n if (response != null) {\n commitSetTrace(context, response.data);\n commitAddNotification(context, { content: 'Trace successfully created', color: 'success' });\n }\n },\n async actionSetActiveTrace(context: MainContext, payload: Trace) {\n commitSetActiveTrace(context, payload);\n },\n async actionSetActiveParams(context: MainContext, payload: {traceID: number, params: string[]}) {\n commitSetActiveParams(context, payload);\n },\n async actionGetSamples(\n context: MainContext,\n payload: {trace: Trace,\n skip?: number,\n limit?: number,\n all?: boolean}) {\n const trace = payload.trace;\n const skip = payload.skip ? payload.skip : 0;\n const limit = payload.limit ? payload.limit : 100;\n const all = payload.all ? payload.all : false;\n const loadingNotification = { content: 'Loading samples...', showProgress: true };\n if (skip === 0) {\n commitAddNotification(context, loadingNotification);\n }\n let response: AxiosResponse | null = null;\n try {\n response = await api.getSamples(context.rootState.main.token, trace, skip, limit);\n } catch (error) {\n await dispatchCheckApiError(context, error);\n }\n if (response != null) {\n commitSetSamples(context, {traceID: trace.id, data: response.data});\n if (all === true && response.data.length === limit) {\n // if you get back what you request go again\n await dispatchGetSamples(context, {trace, skip: skip + limit, limit, all: true});\n }}\n commitRemoveNotification(context, loadingNotification);\n },\n async actionSetBurnIn(context: MainContext, payload: {traceID: number, burnIn: number}) {\n commitSetBurnIn(context, payload);\n },\n async actionSetLoadingSamples(context: MainContext, payload: {traceID: number, loading: boolean}) {\n commitSetLoadingSamples(context, payload);\n },\n};\n\nconst { dispatch } = getStoreAccessors('');\n\nexport const dispatchGetTraces = dispatch(actions.actionGetTraces);\nexport const dispatchCreateTrace = dispatch(actions.actionCreateTrace);\nexport const dispatchSetActiveTrace = dispatch(actions.actionSetActiveTrace);\nexport const dispatchGetSamples = dispatch(actions.actionGetSamples);\nexport const dispatchSetActiveParams = dispatch(actions.actionSetActiveParams);\nexport const dispatchSetBurnIn = dispatch(actions.actionSetBurnIn);\nexport const dispatchSetLoadingSamples = dispatch(actions.actionSetLoadingSamples);\n\n\n","\n\n\n\n\n\n\n\n\n\n\n\n\nimport { dispatchRemoveNotification } from '@/store/main/actions';\nimport { readFirstNotification } from '@/store/main/getters';\nimport { commitRemoveNotification } from '@/store/main/mutations';\nimport { AppNotification } from '@/store/main/state';\nimport { Component, Prop, Vue, Watch } from 'vue-property-decorator';\n\n@Component\nexport default class NotificationsManager extends Vue {\n public show: boolean = false;\n public text: string = '';\n public showProgress: boolean = false;\n public notFound: boolean = false;\n public currentNotification: AppNotification | false = false;\n\n public async hide() {\n this.show = false;\n await new Promise((resolve, reject) => setTimeout(() => resolve(), 500));\n }\n\n public async close() {\n await this.hide();\n await this.removeCurrentNotification();\n }\n\n public async removeCurrentNotification() {\n if (this.currentNotification) {\n commitRemoveNotification(this.$store, this.currentNotification);\n }\n }\n\n public get firstNotification() {\n return readFirstNotification(this.$store);\n }\n\n public async setNotification(notification: AppNotification | false) {\n if (this.show) {\n await this.hide();\n }\n if (notification) {\n this.currentNotification = notification;\n this.showProgress = notification.showProgress || false;\n this.notFound = notification.notFound || false;\n this.show = true;\n } else {\n this.currentNotification = false;\n }\n }\n\n @Watch('firstNotification')\n public async onNotificationChange(\n newNotification: AppNotification | false,\n oldNotification: AppNotification | false,\n ) {\n if (newNotification !== this.currentNotification) {\n await this.setNotification(newNotification);\n if (newNotification) {\n dispatchRemoveNotification(this.$store, { notification: newNotification, timeout: 10000 });\n }\n }\n }\n\n public get currentNotificationContent() {\n return this.currentNotification && this.currentNotification.content || '';\n }\n\n public get currentNotificationColor() {\n return this.currentNotification && this.currentNotification.color || 'info';\n }\n}\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--13-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./NotificationsManager.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--13-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./NotificationsManager.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./NotificationsManager.vue?vue&type=template&id=2b4f56c1&\"\nimport script from \"./NotificationsManager.vue?vue&type=script&lang=ts&\"\nexport * from \"./NotificationsManager.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports\n\n/* vuetify-loader */\nimport installComponents from \"!../../node_modules/vuetify-loader/lib/runtime/installComponents.js\"\nimport { VBtn } from 'vuetify/lib/components/VBtn';\nimport { VIcon } from 'vuetify/lib/components/VIcon';\nimport { VProgressCircular } from 'vuetify/lib/components/VProgressCircular';\nimport { VSnackbar } from 'vuetify/lib/components/VSnackbar';\ninstallComponents(component, {VBtn,VIcon,VProgressCircular,VSnackbar})\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('v-snackbar',{attrs:{\"color\":_vm.currentNotificationColor},model:{value:(_vm.show),callback:function ($$v) {_vm.show=$$v},expression:\"show\"}},[_c('div',{staticClass:\"d-flex justify-space-between align-center \"},[_c('v-progress-circular',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.showProgress),expression:\"showProgress\"}],staticClass:\"ma-1\",attrs:{\"indeterminate\":\"\"}}),_c('v-icon',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.notFound),expression:\"notFound\"}],staticClass:\"ma-1\",attrs:{\"large\":\"\"}},[_vm._v(\"mdi-cancel\")]),_vm._v(\" \"+_vm._s(_vm.currentNotificationContent)+\" \"),_c('v-btn',{attrs:{\"text\":\"\"},nativeOn:{\"click\":function($event){return _vm.close.apply(null, arguments)}}},[_vm._v(\"Close\")])],1)])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport NotificationsManager from '@/components/NotificationsManager.vue';\nimport { dispatchCheckLoggedIn } from '@/store/main/actions';\nimport { readIsLoggedIn } from '@/store/main/getters';\nimport { Component, Vue } from 'vue-property-decorator';\n\n@Component({\n components: {\n NotificationsManager,\n },\n})\nexport default class App extends Vue {\n\n get loggedIn() {\n return readIsLoggedIn(this.$store);\n }\n\n public async created() {\n await dispatchCheckLoggedIn(this.$store);\n }\n}\n","import mod from \"-!../node_modules/cache-loader/dist/cjs.js??ref--13-0!../node_modules/thread-loader/dist/cjs.js!../node_modules/babel-loader/lib/index.js!../node_modules/ts-loader/index.js??ref--13-3!../node_modules/cache-loader/dist/cjs.js??ref--0-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./App.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../node_modules/cache-loader/dist/cjs.js??ref--13-0!../node_modules/thread-loader/dist/cjs.js!../node_modules/babel-loader/lib/index.js!../node_modules/ts-loader/index.js??ref--13-3!../node_modules/cache-loader/dist/cjs.js??ref--0-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./App.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./App.vue?vue&type=template&id=12c528ee&\"\nimport script from \"./App.vue?vue&type=script&lang=ts&\"\nexport * from \"./App.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports\n\n/* vuetify-loader */\nimport installComponents from \"!../node_modules/vuetify-loader/lib/runtime/installComponents.js\"\nimport { VApp } from 'vuetify/lib/components/VApp';\nimport { VContainer } from 'vuetify/lib/components/VGrid';\nimport { VContent } from 'vuetify/lib/components/VContent';\nimport { VFlex } from 'vuetify/lib/components/VGrid';\nimport { VProgressCircular } from 'vuetify/lib/components/VProgressCircular';\nimport { VRow } from 'vuetify/lib/components/VGrid';\ninstallComponents(component, {VApp,VContainer,VContent,VFlex,VProgressCircular,VRow})\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{attrs:{\"id\":\"app\"}},[_c('v-app',[(_vm.loggedIn===null)?_c('v-content',[_c('v-container',{attrs:{\"fill-height\":\"\"}},[_c('v-row',{attrs:{\"align-center\":\"\",\"justify-center\":\"\"}},[_c('v-flex',[_c('div',{staticClass:\"text-xs-center\"},[_c('div',{staticClass:\"headline my-5\"},[_vm._v(\"Loading...\")]),_c('v-progress-circular',{attrs:{\"size\":\"100\",\"indeterminate\":\"\",\"color\":\"primary\"}})],1)])],1)],1)],1):_c('router-view'),_c('NotificationsManager')],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import Component from 'vue-class-component';\n\n// Register the router hooks with their names\nComponent.registerHooks([\n 'beforeRouteEnter',\n 'beforeRouteLeave',\n 'beforeRouteUpdate', // for vue-router 2.2+\n]);\n","import VeeValidate from 'vee-validate';\nimport Vue from 'vue';\n\nVue.use(VeeValidate);\n","import Vue from 'vue';\nimport Vuetify from 'vuetify/lib/framework';\nimport colors from 'vuetify/lib/util/colors';\n\nVue.use(Vuetify);\n\nexport default new Vuetify({\n theme: {\n themes: {\n light: {\n primary: colors.teal.lighten1,\n },\n dark: {\n primary: colors.teal.lighten1,\n },\n },\n },\n});\n","import store from '@/store';\nimport '@babel/polyfill';\nimport Vue from 'vue';\nimport VueWorker from 'vue-worker';\nimport App from './App.vue';\n// Import Component hooks before component definitions\nimport './component-hooks';\nimport './plugins/vee-validate';\nimport vuetify from './plugins/vuetify';\nimport router from './router';\n\nVue.config.productionTip = false;\n\nVue.use(VueWorker);\n\nnew Vue({\n router,\n store,\n vuetify,\n render: (h) => h(App),\n}).$mount('#app');\n","import { api } from '@/api';\nimport router from '@/router';\nimport { AxiosError } from 'axios';\nimport { getStoreAccessors } from 'typesafe-vuex';\nimport { ActionContext } from 'vuex';\nimport { State } from '../state';\nimport {\n commitAddNotification,\n commitRemoveNotification,\n commitSetLoggedIn,\n commitSetLogInError,\n commitSetToken,\n} from './mutations';\nimport { AppNotification, MainState } from './state';\n\ntype MainContext = ActionContext;\n\nexport const actions = {\n async actionCheckToken(context: MainContext, payload: { token: string }) {\n try {\n const response = await api.getToken(payload.token);\n const token = response.data.token;\n if (token) {\n commitSetToken(context, token);\n commitSetLoggedIn(context, true);\n commitSetLogInError(context, false);\n await dispatchRouteLoggedIn(context);\n commitAddNotification(context, { content: 'Logged in', color: 'success' });\n } else {\n await dispatchLogOut(context);\n }\n } catch (err) {\n commitSetLogInError(context, true);\n await dispatchLogOut(context);\n }\n },\n async actionCheckLoggedIn(context: MainContext) {\n if (!context.state.isLoggedIn) {\n const token = context.state.token;\n if (token) {\n try {\n commitSetLoggedIn(context, true);\n } catch (error) {\n await dispatchRemoveLogIn(context);\n }\n } else {\n await dispatchRemoveLogIn(context);\n }\n }\n },\n async actionRemoveLogIn(context: MainContext) {\n commitSetToken(context, '');\n commitSetLoggedIn(context, false);\n },\n async actionLogOut(context: MainContext) {\n await dispatchRemoveLogIn(context);\n await dispatchRouteLogOut(context);\n },\n async actionUserLogOut(context: MainContext) {\n await dispatchLogOut(context);\n commitAddNotification(context, { content: 'Logged out', color: 'success' });\n },\n actionRouteLogOut(context: MainContext) {\n if (router.currentRoute.path !== '/login') {\n router.push('/login');\n }\n },\n async actionCheckApiError(context: MainContext, payload: AxiosError) {\n if (payload.response!.status === 401) {\n await dispatchLogOut(context);\n }\n if (payload.response!.status === 404) {\n commitAddNotification(context, { content: payload.response!.data.detail, color: 'error', notFound: true});\n }\n if (payload.response!.status === 500) {\n commitAddNotification(context, { content: payload.response!.data.detail, color: 'error', notFound: true});\n }\n },\n actionRouteLoggedIn(context: MainContext) {\n if (router.currentRoute.path === '/login' || router.currentRoute.path === '/') {\n router.push('/main/dashboard');\n }\n },\n async removeNotification(context: MainContext, payload: { notification: AppNotification, timeout: number }) {\n return new Promise((resolve, reject) => {\n setTimeout(() => {\n commitRemoveNotification(context, payload.notification);\n resolve(true);\n }, payload.timeout);\n });\n },\n};\n\nconst { dispatch } = getStoreAccessors('');\n\nexport const dispatchCheckApiError = dispatch(actions.actionCheckApiError);\nexport const dispatchCheckLoggedIn = dispatch(actions.actionCheckLoggedIn);\nexport const dispatchCheckToken = dispatch(actions.actionCheckToken);\nexport const dispatchLogOut = dispatch(actions.actionLogOut);\nexport const dispatchUserLogOut = dispatch(actions.actionUserLogOut);\nexport const dispatchRemoveLogIn = dispatch(actions.actionRemoveLogIn);\nexport const dispatchRouteLoggedIn = dispatch(actions.actionRouteLoggedIn);\nexport const dispatchRouteLogOut = dispatch(actions.actionRouteLogOut);\nexport const dispatchRemoveNotification = dispatch(actions.removeNotification);\n"],"sourceRoot":""} \ No newline at end of file diff --git a/backend/beastiary/webapp-dist/js/login.aa85044f.js.map b/backend/beastiary/webapp-dist/js/login.aa85044f.js.map deleted file mode 100644 index bfd5988..0000000 --- a/backend/beastiary/webapp-dist/js/login.aa85044f.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["webpack:///./src/views/Login.vue?50c1","webpack:///./src/views/Login.vue","webpack:///./src/views/Login.vue?5134","webpack:///../../../src/mixins/transitionable/index.ts","webpack:///../../../src/components/VAlert/VAlert.ts","webpack:///./src/views/Login.vue?9d73"],"names":["token","appName","this","$store","submit","getTokenFromUrl","$router","history","current","query","mounted","name","props","mode","origin","transition","String","mixins","border","type","validator","closeLabel","default","coloredBorder","dense","dismissible","closeIcon","icon","Boolean","val","outlined","prominent","text","value","computed","__cachedBorder","data","staticClass","class","setBackgroundColor","$createElement","__cachedDismissible","color","VBtn","small","attrs","$vuetify","lang","t","on","click","VIcon","__cachedIcon","iconColor","classes","VSheet","computedColor","computedIcon","includes","hasColoredIcon","hasText","isDark","created","$attrs","hasOwnProperty","methods","genWrapper","children","$slots","prepend","$scopedSlots","close","toggle","genContent","genAlert","role","style","directives","isActive","render","h","component","_vm","_h","_c","_self","_v","_s","$event","indexOf","_k","keyCode","key","apply","arguments","model","callback","$$v","expression","loginError","_e","preventDefault","VAlert","VCard","VCardActions","VCardText","VContainer","VContent","VFlex","VForm","VLayout","VSpacer","VTextField","VToolbar","VToolbarTitle"],"mappings":"iIAAA,I,+pDCuCA,IAAqB,EAArB,a,0PAAA,+F,2BACSA,MAAgB,GAChB,EAAAC,QAAU,IAFnB,S,oGAAA,8BAGE,eACE,OAAO,YAAeC,KAAKC,UAJ/B,oBAOS,SAAAC,SACL,YAAmBF,KAAKC,OAAQ,CAACH,MAAOE,KAAKF,UARjD,6BAUU,SAAAK,kBAEN,OAAOH,KAAKI,QAAQC,QAAQC,QAAQC,MAAMT,QAZ9C,qBAcU,SAAAU,UACNR,KAAKF,MAAQE,KAAKG,kBACdH,KAAKF,OACPE,KAAKE,aAjBX,OAAmC,KCvC6V,EDuC3W,EAAK,aADzB,KACoB,G,yGErCN,E,UAAA,eAAW,CACxBO,KADwB,iBAGxBC,MAAO,CACLC,KADK,OAELC,OAFK,OAGLC,WAAYC,U,ywBCgBD,aAAAC,EAAA,GAAO,EAAD,MAAN,UAIN,CACPN,KADO,UAGPC,MAAO,CACLM,OAAQ,CACNC,KADM,OAENC,UAFM,mBAEG,GACP,MAAO,CAAC,MAAD,kCAAP,KAQJC,WAAY,CACVF,KADU,OAEVG,QAAS,kBAEXC,cAhBK,QAiBLC,MAjBK,QAkBLC,YAlBK,QAmBLC,UAAW,CACTP,KADS,OAETG,QAAS,WAEXK,KAAM,CACJL,QADI,GAEJH,KAAM,CAACS,QAFH,QAGJR,UAHI,mBAGK,GACP,MAAsB,iBAARS,IAAd,IAAkCA,IAGtCC,SA9BK,QA+BLC,UA/BK,QAgCLC,KAhCK,QAiCLb,KAAM,CACJA,KADI,OAEJC,UAFI,mBAEK,GACP,MAAO,CAAC,OAAD,sCAAP,KAQJa,MAAO,CACLd,KADK,QAELG,SAAS,IAIbY,SAAU,CACRC,eADQ,0BAEN,IAAKjC,KAAL,OAAkB,OAAO,KAEzB,IAAIkC,EAAkB,CACpBC,YADoB,kBAEpBC,MAAO,gBAAF,8BACkBpC,KAArB,SAAqC,IASzC,OALIA,KAAJ,iBACEkC,EAAOlC,KAAKqC,mBAAmBrC,KAAxB,cAAPkC,IACA,wCAGKlC,KAAKsC,eAAe,MAA3B,IAEFC,oBAlBQ,+BAkBW,WACjB,IAAKvC,KAAL,YAAuB,OAAO,KAE9B,IAAMwC,EAAQxC,KAAd,UAEA,OAAOA,KAAKsC,eAAeG,EAApB,EAA0B,CAC/BN,YAD+B,uBAE/BzB,MAAO,CACL8B,QACAf,MAFK,EAGLiB,OAAO,GAETC,MAAO,CACL,aAAc3C,KAAK4C,SAASC,KAAKC,EAAE9C,KAArB,aAEhB+C,GAAI,CACFC,MAAO,wBAAO,YAAgB,KAE/B,CACDhD,KAAKsC,eAAeW,EAApB,EAA2B,CACzBvC,MAAO,CAAE8B,UACRxC,KAhBL,cAmBFkD,aA1CQ,wBA2CN,OAAKlD,KAAL,aAEOA,KAAKsC,eAAeW,EAApB,EAA2B,CAChCd,YADgC,gBAEhCzB,MAAO,CAAE8B,MAAOxC,KAAKmD,YACpBnD,KAHH,cAF+B,MAOjCoD,QAlDQ,mBAmDN,IAAMA,QAAO,+BACRC,EAAA,gCADoC,OAA5B,IAEX,kBAAmB3B,QAAQ1B,KAFY,QAGvC,iBAAkBA,KAHqB,MAIvC,oBAAqBA,KAJkB,SAKvC,qBAAsBA,KALiB,UAMvC,gBAAiBA,KAAK8B,OAOxB,OAJI9B,KAAJ,SACEoD,QAAQ,mBAAD,OAAoBpD,KAA3B,aAGF,SAEFsD,cAlEQ,yBAmEN,OAAOtD,KAAKwC,OAASxC,KAArB,MAEFuD,aArEQ,wBAsEN,WAAIvD,KAAKyB,OACL,iBAAOzB,KAAP,MAAiCA,KAArC,KAAuDA,KAAP,OAC3C,CAAC,QAAS,OAAQ,UAAW,WAAWwD,SAASxD,KAAtD,OAEA,WAAWA,KAAX,QAEFyD,eA5EQ,0BA6EN,OACEzD,KAAK0D,SACJhC,QAAQ1B,KAAR,SAAwBA,KAF3B,eAKF0D,QAlFQ,mBAmFN,OAAO1D,KAAK8B,MAAQ9B,KAApB,UAEFmD,UArFQ,qBAsFN,OAAOnD,KAAKyD,eAAiBzD,KAAtB,mBAAP,GAEF2D,OAxFQ,kBAyFN,SACE3D,KAAKiB,MACJjB,KADD,eAECA,KAHH,WAMO,iCAAP,QAIJ4D,QAxJO,mBA0JD5D,KAAK6D,OAAOC,eAAhB,YACE,YAAS,UAAW,WAApB,OAIJC,QAAS,CACPC,WADO,sBAEL,IAAMC,EAAW,CACfjE,KAAKkE,OAAOC,SAAWnE,KADR,aAEfA,KAFe,aAGfA,KAHe,eAIfA,KAAKkE,OAJU,OAKflE,KAAKoE,aAAaC,MACdrE,KAAKoE,aAAaC,MAAM,CAAEC,OAAQtE,KAAKsE,SACvCtE,KAPN,qBAcA,OAAOA,KAAKsC,eAAe,MAJH,CACtBH,YAAa,oBAGf,IAEFoC,WAlBO,sBAmBL,OAAOvE,KAAKsC,eAAe,MAAO,CAChCH,YAAa,oBACZnC,KAAKkE,OAFR,UAIFM,SAvBO,oBAwBL,IAAItC,EAAkB,CACpBC,YADoB,UAEpBQ,MAAO,CACL8B,KAAM,SAER1B,GAAI/C,KALgB,WAMpBoC,MAAOpC,KANa,QAOpB0E,MAAO1E,KAPa,OAQpB2E,WAAY,CAAC,CACXlE,KADW,OAEXsB,MAAO/B,KAAK4E,YAIX5E,KAAL,gBAEEkC,GADiBlC,KAAK0D,QAAU1D,KAAf,aAAmCA,KAApD,oBACgBA,KAAD,cAAfkC,IAGF,OAAOlC,KAAKsC,eAAe,MAAOJ,EAAM,CAAClC,KAAzC,gBAGFsE,OA9CO,kBA+CLtE,KAAA,UAAiBA,KAAjB,WAIJ6E,OAlNO,gBAkND,GACJ,IAAMA,OAAS7E,KAAf,WAEA,OAAKA,KAAL,WAEO8E,EAAE,aAAc,CACrBpE,MAAO,CACLD,KAAMT,KADD,WAELY,OAAQZ,KAFH,OAGLW,KAAMX,KAAKW,OAEZ,CANH,SAF6BkE,U,gJC1O7BE,EAAY,YACd,GLRW,WAAa,IAAIC,EAAIhF,KAASiF,EAAGD,EAAI1C,eAAmB4C,EAAGF,EAAIG,MAAMD,IAAID,EAAG,OAAOC,EAAG,YAAY,CAACA,EAAG,cAAc,CAACvC,MAAM,CAAC,MAAQ,GAAG,cAAc,KAAK,CAACuC,EAAG,WAAW,CAACvC,MAAM,CAAC,eAAe,GAAG,iBAAiB,KAAK,CAACuC,EAAG,SAAS,CAACvC,MAAM,CAAC,KAAO,GAAG,IAAM,GAAG,IAAM,KAAK,CAACuC,EAAG,SAAS,CAAC/C,YAAY,gBAAgB,CAAC+C,EAAG,YAAY,CAACvC,MAAM,CAAC,KAAO,GAAG,MAAQ,mBAAmB,CAACuC,EAAG,kBAAkB,CAACF,EAAII,GAAGJ,EAAIK,GAAGL,EAAIjF,YAAYmF,EAAG,aAAa,GAAGA,EAAG,cAAc,CAACA,EAAG,SAAS,CAACnC,GAAG,CAAC,MAAQ,SAASuC,GAAQ,OAAIA,EAAOrE,KAAKsE,QAAQ,QAAQP,EAAIQ,GAAGF,EAAOG,QAAQ,QAAQ,GAAGH,EAAOI,IAAI,SAAkB,KAAcV,EAAI9E,OAAOyF,MAAM,KAAMC,cAAc,CAACV,EAAG,eAAe,CAACvC,MAAM,CAAC,eAAe,SAAS,KAAO,QAAQ,MAAQ,QAAQ,KAAO,QAAQI,GAAG,CAAC,MAAQ,SAASuC,GAAQ,OAAIA,EAAOrE,KAAKsE,QAAQ,QAAQP,EAAIQ,GAAGF,EAAOG,QAAQ,QAAQ,GAAGH,EAAOI,IAAI,SAAkB,KAAcV,EAAI9E,OAAOyF,MAAM,KAAMC,aAAaC,MAAM,CAAC9D,MAAOiD,EAAS,MAAEc,SAAS,SAAUC,GAAMf,EAAIlF,MAAMiG,GAAKC,WAAW,YAAY,GAAIhB,EAAc,WAAEE,EAAG,MAAM,CAACA,EAAG,UAAU,CAACvC,MAAM,CAAC,MAAQqC,EAAIiB,WAAW,WAAa,kBAAkB,KAAO,UAAU,CAACjB,EAAII,GAAG,iCAAiC,GAAGJ,EAAIkB,MAAM,GAAGhB,EAAG,iBAAiB,CAACA,EAAG,YAAYA,EAAG,QAAQ,CAACnC,GAAG,CAAC,MAAQ,SAASuC,GAAgC,OAAxBA,EAAOa,iBAAwBnB,EAAI9E,OAAOyF,MAAM,KAAMC,cAAc,CAACZ,EAAII,GAAG,YAAY,IAAI,IAAI,IAAI,IAAI,IAAI,KACj1C,IKUpB,EACA,KACA,KACA,MAIa,UAAAL,EAAiB,QAkBhC,IAAkBA,EAAW,CAACqB,OAAA,EAAO3D,KAAA,IAAK4D,QAAA,EAAMC,aAAA,IAAaC,UAAA,IAAUC,aAAA,EAAWC,WAAA,EAASC,QAAA,EAAMC,QAAA,EAAMC,UAAA,EAAQC,UAAA,EAAQC,aAAA,EAAWC,WAAA,EAASC,cAAA","file":"js/login.aa85044f.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-content',[_c('v-container',{attrs:{\"fluid\":\"\",\"fill-height\":\"\"}},[_c('v-layout',{attrs:{\"align-center\":\"\",\"justify-center\":\"\"}},[_c('v-flex',{attrs:{\"xs12\":\"\",\"sm8\":\"\",\"md4\":\"\"}},[_c('v-card',{staticClass:\"elevation-12\"},[_c('v-toolbar',{attrs:{\"dark\":\"\",\"color\":\"teal lighten-2\"}},[_c('v-toolbar-title',[_vm._v(_vm._s(_vm.appName))]),_c('v-spacer')],1),_c('v-card-text',[_c('v-form',{on:{\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }return _vm.submit.apply(null, arguments)}}},[_c('v-text-field',{attrs:{\"prepend-icon\":\"person\",\"name\":\"token\",\"label\":\"Token\",\"type\":\"text\"},on:{\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }return _vm.submit.apply(null, arguments)}},model:{value:(_vm.token),callback:function ($$v) {_vm.token=$$v},expression:\"token\"}})],1),(_vm.loginError)?_c('div',[_c('v-alert',{attrs:{\"value\":_vm.loginError,\"transition\":\"fade-transition\",\"type\":\"error\"}},[_vm._v(\" Could not validate token \")])],1):_vm._e()],1),_c('v-card-actions',[_c('v-spacer'),_c('v-btn',{on:{\"click\":function($event){$event.preventDefault();return _vm.submit.apply(null, arguments)}}},[_vm._v(\"Login\")])],1)],1)],1)],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport { appName } from '@/env';\nimport { dispatchCheckToken } from '@/store/main/actions';\nimport { readLoginError } from '@/store/main/getters';\nimport { Component, Vue } from 'vue-property-decorator';\n\n\n@Component\nexport default class Login extends Vue {\n public token: string = '';\n public appName = appName;\n public get loginError() {\n return readLoginError(this.$store);\n }\n\n public submit() {\n dispatchCheckToken(this.$store, {token: this.token});\n }\n private getTokenFromUrl() {\n // @ts-ignore\n return this.$router.history.current.query.token;\n }\n private mounted() {\n this.token = this.getTokenFromUrl();\n if (this.token) {\n this.submit();\n } \n }\n}\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--13-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Login.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--13-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Login.vue?vue&type=script&lang=ts&\"","import Vue from 'vue'\n\nexport default Vue.extend({\n name: 'transitionable',\n\n props: {\n mode: String,\n origin: String,\n transition: String,\n },\n})\n","// Styles\nimport './VAlert.sass'\n\n// Extensions\nimport VSheet from '../VSheet'\n\n// Components\nimport VBtn from '../VBtn'\nimport VIcon from '../VIcon'\n\n// Mixins\nimport Toggleable from '../../mixins/toggleable'\nimport Themeable from '../../mixins/themeable'\nimport Transitionable from '../../mixins/transitionable'\n\n// Utilities\nimport mixins from '../../util/mixins'\nimport { breaking } from '../../util/console'\n\n// Types\nimport { VNodeData } from 'vue'\nimport { VNode } from 'vue/types'\n\n/* @vue/component */\nexport default mixins(\n VSheet,\n Toggleable,\n Transitionable\n).extend({\n name: 'v-alert',\n\n props: {\n border: {\n type: String,\n validator (val: string) {\n return [\n 'top',\n 'right',\n 'bottom',\n 'left',\n ].includes(val)\n },\n },\n closeLabel: {\n type: String,\n default: '$vuetify.close',\n },\n coloredBorder: Boolean,\n dense: Boolean,\n dismissible: Boolean,\n closeIcon: {\n type: String,\n default: '$cancel',\n },\n icon: {\n default: '',\n type: [Boolean, String],\n validator (val: boolean | string) {\n return typeof val === 'string' || val === false\n },\n },\n outlined: Boolean,\n prominent: Boolean,\n text: Boolean,\n type: {\n type: String,\n validator (val: string) {\n return [\n 'info',\n 'error',\n 'success',\n 'warning',\n ].includes(val)\n },\n },\n value: {\n type: Boolean,\n default: true,\n },\n },\n\n computed: {\n __cachedBorder (): VNode | null {\n if (!this.border) return null\n\n let data: VNodeData = {\n staticClass: 'v-alert__border',\n class: {\n [`v-alert__border--${this.border}`]: true,\n },\n }\n\n if (this.coloredBorder) {\n data = this.setBackgroundColor(this.computedColor, data)\n data.class['v-alert__border--has-color'] = true\n }\n\n return this.$createElement('div', data)\n },\n __cachedDismissible (): VNode | null {\n if (!this.dismissible) return null\n\n const color = this.iconColor\n\n return this.$createElement(VBtn, {\n staticClass: 'v-alert__dismissible',\n props: {\n color,\n icon: true,\n small: true,\n },\n attrs: {\n 'aria-label': this.$vuetify.lang.t(this.closeLabel),\n },\n on: {\n click: () => (this.isActive = false),\n },\n }, [\n this.$createElement(VIcon, {\n props: { color },\n }, this.closeIcon),\n ])\n },\n __cachedIcon (): VNode | null {\n if (!this.computedIcon) return null\n\n return this.$createElement(VIcon, {\n staticClass: 'v-alert__icon',\n props: { color: this.iconColor },\n }, this.computedIcon)\n },\n classes (): object {\n const classes: Record = {\n ...VSheet.options.computed.classes.call(this),\n 'v-alert--border': Boolean(this.border),\n 'v-alert--dense': this.dense,\n 'v-alert--outlined': this.outlined,\n 'v-alert--prominent': this.prominent,\n 'v-alert--text': this.text,\n }\n\n if (this.border) {\n classes[`v-alert--border-${this.border}`] = true\n }\n\n return classes\n },\n computedColor (): string {\n return this.color || this.type\n },\n computedIcon (): string | boolean {\n if (this.icon === false) return false\n if (typeof this.icon === 'string' && this.icon) return this.icon\n if (!['error', 'info', 'success', 'warning'].includes(this.type)) return false\n\n return `$${this.type}`\n },\n hasColoredIcon (): boolean {\n return (\n this.hasText ||\n (Boolean(this.border) && this.coloredBorder)\n )\n },\n hasText (): boolean {\n return this.text || this.outlined\n },\n iconColor (): string | undefined {\n return this.hasColoredIcon ? this.computedColor : undefined\n },\n isDark (): boolean {\n if (\n this.type &&\n !this.coloredBorder &&\n !this.outlined\n ) return true\n\n return Themeable.options.computed.isDark.call(this)\n },\n },\n\n created () {\n /* istanbul ignore next */\n if (this.$attrs.hasOwnProperty('outline')) {\n breaking('outline', 'outlined', this)\n }\n },\n\n methods: {\n genWrapper (): VNode {\n const children = [\n this.$slots.prepend || this.__cachedIcon,\n this.genContent(),\n this.__cachedBorder,\n this.$slots.append,\n this.$scopedSlots.close\n ? this.$scopedSlots.close({ toggle: this.toggle })\n : this.__cachedDismissible,\n ]\n\n const data: VNodeData = {\n staticClass: 'v-alert__wrapper',\n }\n\n return this.$createElement('div', data, children)\n },\n genContent (): VNode {\n return this.$createElement('div', {\n staticClass: 'v-alert__content',\n }, this.$slots.default)\n },\n genAlert (): VNode {\n let data: VNodeData = {\n staticClass: 'v-alert',\n attrs: {\n role: 'alert',\n },\n on: this.listeners$,\n class: this.classes,\n style: this.styles,\n directives: [{\n name: 'show',\n value: this.isActive,\n }],\n }\n\n if (!this.coloredBorder) {\n const setColor = this.hasText ? this.setTextColor : this.setBackgroundColor\n data = setColor(this.computedColor, data)\n }\n\n return this.$createElement('div', data, [this.genWrapper()])\n },\n /** @public */\n toggle () {\n this.isActive = !this.isActive\n },\n },\n\n render (h): VNode {\n const render = this.genAlert()\n\n if (!this.transition) return render\n\n return h('transition', {\n props: {\n name: this.transition,\n origin: this.origin,\n mode: this.mode,\n },\n }, [render])\n },\n})\n","import { render, staticRenderFns } from \"./Login.vue?vue&type=template&id=7b62d0b9&\"\nimport script from \"./Login.vue?vue&type=script&lang=ts&\"\nexport * from \"./Login.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports\n\n/* vuetify-loader */\nimport installComponents from \"!../../node_modules/vuetify-loader/lib/runtime/installComponents.js\"\nimport { VAlert } from 'vuetify/lib/components/VAlert';\nimport { VBtn } from 'vuetify/lib/components/VBtn';\nimport { VCard } from 'vuetify/lib/components/VCard';\nimport { VCardActions } from 'vuetify/lib/components/VCard';\nimport { VCardText } from 'vuetify/lib/components/VCard';\nimport { VContainer } from 'vuetify/lib/components/VGrid';\nimport { VContent } from 'vuetify/lib/components/VContent';\nimport { VFlex } from 'vuetify/lib/components/VGrid';\nimport { VForm } from 'vuetify/lib/components/VForm';\nimport { VLayout } from 'vuetify/lib/components/VGrid';\nimport { VSpacer } from 'vuetify/lib/components/VGrid';\nimport { VTextField } from 'vuetify/lib/components/VTextField';\nimport { VToolbar } from 'vuetify/lib/components/VToolbar';\nimport { VToolbarTitle } from 'vuetify/lib/components/VToolbar';\ninstallComponents(component, {VAlert,VBtn,VCard,VCardActions,VCardText,VContainer,VContent,VFlex,VForm,VLayout,VSpacer,VTextField,VToolbar,VToolbarTitle})\n"],"sourceRoot":""} \ No newline at end of file diff --git a/backend/beastiary/webapp-dist/js/login.aa85044f.js b/backend/beastiary/webapp-dist/js/login.cc7a4294.js similarity index 99% rename from backend/beastiary/webapp-dist/js/login.aa85044f.js rename to backend/beastiary/webapp-dist/js/login.cc7a4294.js index 12f9ee1..d2214c5 100644 --- a/backend/beastiary/webapp-dist/js/login.aa85044f.js +++ b/backend/beastiary/webapp-dist/js/login.cc7a4294.js @@ -1,2 +1,2 @@ (window.webpackJsonp=window.webpackJsonp||[]).push([["login"],{"0c18":function(t,e,r){},a55b:function(t,e,r){"use strict";r.r(e);var o=r("9ab4"),n=r("5f03"),i=r("d568"),s=r("2963"),a=r("60a3");function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(t){return typeof t}:function _typeof(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,e){for(var r=0;r (this.isActive = false),\n },\n }, [\n this.$createElement(VIcon, {\n props: { color },\n }, this.closeIcon),\n ])\n },\n __cachedIcon (): VNode | null {\n if (!this.computedIcon) return null\n\n return this.$createElement(VIcon, {\n staticClass: 'v-alert__icon',\n props: { color: this.iconColor },\n }, this.computedIcon)\n },\n classes (): object {\n const classes: Record = {\n ...VSheet.options.computed.classes.call(this),\n 'v-alert--border': Boolean(this.border),\n 'v-alert--dense': this.dense,\n 'v-alert--outlined': this.outlined,\n 'v-alert--prominent': this.prominent,\n 'v-alert--text': this.text,\n }\n\n if (this.border) {\n classes[`v-alert--border-${this.border}`] = true\n }\n\n return classes\n },\n computedColor (): string {\n return this.color || this.type\n },\n computedIcon (): string | boolean {\n if (this.icon === false) return false\n if (typeof this.icon === 'string' && this.icon) return this.icon\n if (!['error', 'info', 'success', 'warning'].includes(this.type)) return false\n\n return `$${this.type}`\n },\n hasColoredIcon (): boolean {\n return (\n this.hasText ||\n (Boolean(this.border) && this.coloredBorder)\n )\n },\n hasText (): boolean {\n return this.text || this.outlined\n },\n iconColor (): string | undefined {\n return this.hasColoredIcon ? this.computedColor : undefined\n },\n isDark (): boolean {\n if (\n this.type &&\n !this.coloredBorder &&\n !this.outlined\n ) return true\n\n return Themeable.options.computed.isDark.call(this)\n },\n },\n\n created () {\n /* istanbul ignore next */\n if (this.$attrs.hasOwnProperty('outline')) {\n breaking('outline', 'outlined', this)\n }\n },\n\n methods: {\n genWrapper (): VNode {\n const children = [\n this.$slots.prepend || this.__cachedIcon,\n this.genContent(),\n this.__cachedBorder,\n this.$slots.append,\n this.$scopedSlots.close\n ? this.$scopedSlots.close({ toggle: this.toggle })\n : this.__cachedDismissible,\n ]\n\n const data: VNodeData = {\n staticClass: 'v-alert__wrapper',\n }\n\n return this.$createElement('div', data, children)\n },\n genContent (): VNode {\n return this.$createElement('div', {\n staticClass: 'v-alert__content',\n }, this.$slots.default)\n },\n genAlert (): VNode {\n let data: VNodeData = {\n staticClass: 'v-alert',\n attrs: {\n role: 'alert',\n },\n on: this.listeners$,\n class: this.classes,\n style: this.styles,\n directives: [{\n name: 'show',\n value: this.isActive,\n }],\n }\n\n if (!this.coloredBorder) {\n const setColor = this.hasText ? this.setTextColor : this.setBackgroundColor\n data = setColor(this.computedColor, data)\n }\n\n return this.$createElement('div', data, [this.genWrapper()])\n },\n /** @public */\n toggle () {\n this.isActive = !this.isActive\n },\n },\n\n render (h): VNode {\n const render = this.genAlert()\n\n if (!this.transition) return render\n\n return h('transition', {\n props: {\n name: this.transition,\n origin: this.origin,\n mode: this.mode,\n },\n }, [render])\n },\n})\n","import { render, staticRenderFns } from \"./Login.vue?vue&type=template&id=59e208b9&\"\nimport script from \"./Login.vue?vue&type=script&lang=ts&\"\nexport * from \"./Login.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports\n\n/* vuetify-loader */\nimport installComponents from \"!../../node_modules/vuetify-loader/lib/runtime/installComponents.js\"\nimport { VAlert } from 'vuetify/lib/components/VAlert';\nimport { VBtn } from 'vuetify/lib/components/VBtn';\nimport { VCard } from 'vuetify/lib/components/VCard';\nimport { VCardActions } from 'vuetify/lib/components/VCard';\nimport { VCardText } from 'vuetify/lib/components/VCard';\nimport { VContainer } from 'vuetify/lib/components/VGrid';\nimport { VContent } from 'vuetify/lib/components/VContent';\nimport { VFlex } from 'vuetify/lib/components/VGrid';\nimport { VForm } from 'vuetify/lib/components/VForm';\nimport { VLayout } from 'vuetify/lib/components/VGrid';\nimport { VSpacer } from 'vuetify/lib/components/VGrid';\nimport { VTextField } from 'vuetify/lib/components/VTextField';\nimport { VToolbar } from 'vuetify/lib/components/VToolbar';\nimport { VToolbarTitle } from 'vuetify/lib/components/VToolbar';\ninstallComponents(component, {VAlert,VBtn,VCard,VCardActions,VCardText,VContainer,VContent,VFlex,VForm,VLayout,VSpacer,VTextField,VToolbar,VToolbarTitle})\n"],"sourceRoot":""} \ No newline at end of file diff --git a/backend/beastiary/webapp-dist/js/main-dashboard.06a298e8.js b/backend/beastiary/webapp-dist/js/main-dashboard.8e408680.js similarity index 91% rename from backend/beastiary/webapp-dist/js/main-dashboard.06a298e8.js rename to backend/beastiary/webapp-dist/js/main-dashboard.8e408680.js index 0727647..28b2316 100644 --- a/backend/beastiary/webapp-dist/js/main-dashboard.06a298e8.js +++ b/backend/beastiary/webapp-dist/js/main-dashboard.8e408680.js @@ -42,13 +42,13 @@ object-assign * @author Feross Aboukhadijeh * @license MIT */ -var Ue=Be("1fb5"),We=Be("9152"),$e=Be("2335");function kMaxLength(){return Buffer.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function createBuffer(Ee,ze){if(kMaxLength()=kMaxLength())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+kMaxLength().toString(16)+" bytes");return 0|Ee}function byteLength(Ee,ze){if(Buffer.isBuffer(Ee))return Ee.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(Ee)||Ee instanceof ArrayBuffer))return Ee.byteLength;"string"!=typeof Ee&&(Ee=""+Ee);var Be=Ee.length;if(0===Be)return 0;for(var Ue=!1;;)switch(ze){case"ascii":case"latin1":case"binary":return Be;case"utf8":case"utf-8":case void 0:return utf8ToBytes(Ee).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*Be;case"hex":return Be>>>1;case"base64":return base64ToBytes(Ee).length;default:if(Ue)return utf8ToBytes(Ee).length;ze=(""+ze).toLowerCase(),Ue=!0}}function slowToString(Ee,ze,Be){var Ue=!1;if((void 0===ze||ze<0)&&(ze=0),ze>this.length)return"";if((void 0===Be||Be>this.length)&&(Be=this.length),Be<=0)return"";if((Be>>>=0)<=(ze>>>=0))return"";for(Ee||(Ee="utf8");;)switch(Ee){case"hex":return hexSlice(this,ze,Be);case"utf8":case"utf-8":return utf8Slice(this,ze,Be);case"ascii":return asciiSlice(this,ze,Be);case"latin1":case"binary":return latin1Slice(this,ze,Be);case"base64":return base64Slice(this,ze,Be);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return utf16leSlice(this,ze,Be);default:if(Ue)throw new TypeError("Unknown encoding: "+Ee);Ee=(Ee+"").toLowerCase(),Ue=!0}}function swap(Ee,ze,Be){var Ue=Ee[ze];Ee[ze]=Ee[Be],Ee[Be]=Ue}function bidirectionalIndexOf(Ee,ze,Be,Ue,We){if(0===Ee.length)return-1;if("string"==typeof Be?(Ue=Be,Be=0):Be>2147483647?Be=2147483647:Be<-2147483648&&(Be=-2147483648),Be=+Be,isNaN(Be)&&(Be=We?0:Ee.length-1),Be<0&&(Be=Ee.length+Be),Be>=Ee.length){if(We)return-1;Be=Ee.length-1}else if(Be<0){if(!We)return-1;Be=0}if("string"==typeof ze&&(ze=Buffer.from(ze,Ue)),Buffer.isBuffer(ze))return 0===ze.length?-1:arrayIndexOf(Ee,ze,Be,Ue,We);if("number"==typeof ze)return ze&=255,Buffer.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?We?Uint8Array.prototype.indexOf.call(Ee,ze,Be):Uint8Array.prototype.lastIndexOf.call(Ee,ze,Be):arrayIndexOf(Ee,[ze],Be,Ue,We);throw new TypeError("val must be string, number or Buffer")}function arrayIndexOf(Ee,ze,Be,Ue,We){var $e,Qe=1,rt=Ee.length,it=ze.length;if(void 0!==Ue&&("ucs2"===(Ue=String(Ue).toLowerCase())||"ucs-2"===Ue||"utf16le"===Ue||"utf-16le"===Ue)){if(Ee.length<2||ze.length<2)return-1;Qe=2,rt/=2,it/=2,Be/=2}function read(Ee,ze){return 1===Qe?Ee[ze]:Ee.readUInt16BE(ze*Qe)}if(We){var at=-1;for($e=Be;$ert&&(Be=rt-it),$e=Be;$e>=0;$e--){for(var ct=!0,ft=0;ftWe&&(Ue=We):Ue=We;var $e=ze.length;if($e%2!=0)throw new TypeError("Invalid hex string");Ue>$e/2&&(Ue=$e/2);for(var Qe=0;Qe>8,We=Be%256,$e.push(We),$e.push(Ue);return $e}(ze,Ee.length-Be),Ee,Be,Ue)}function base64Slice(Ee,ze,Be){return 0===ze&&Be===Ee.length?Ue.fromByteArray(Ee):Ue.fromByteArray(Ee.slice(ze,Be))}function utf8Slice(Ee,ze,Be){Be=Math.min(Ee.length,Be);for(var Ue=[],We=ze;We239?4:at>223?3:at>191?2:1;if(We+ft<=Be)switch(ft){case 1:at<128&&(ct=at);break;case 2:128==(192&($e=Ee[We+1]))&&(it=(31&at)<<6|63&$e)>127&&(ct=it);break;case 3:$e=Ee[We+1],Qe=Ee[We+2],128==(192&$e)&&128==(192&Qe)&&(it=(15&at)<<12|(63&$e)<<6|63&Qe)>2047&&(it<55296||it>57343)&&(ct=it);break;case 4:$e=Ee[We+1],Qe=Ee[We+2],rt=Ee[We+3],128==(192&$e)&&128==(192&Qe)&&128==(192&rt)&&(it=(15&at)<<18|(63&$e)<<12|(63&Qe)<<6|63&rt)>65535&&it<1114112&&(ct=it)}null===ct?(ct=65533,ft=1):ct>65535&&(ct-=65536,Ue.push(ct>>>10&1023|55296),ct=56320|1023&ct),Ue.push(ct),We+=ft}return function decodeCodePointsArray(Ee){var ze=Ee.length;if(ze<=4096)return String.fromCharCode.apply(String,Ee);var Be="",Ue=0;for(;Ue0&&(Ee=this.toString("hex",0,Be).match(/.{2}/g).join(" "),this.length>Be&&(Ee+=" ... ")),""},Buffer.prototype.compare=function compare(Ee,ze,Be,Ue,We){if(!Buffer.isBuffer(Ee))throw new TypeError("Argument must be a Buffer");if(void 0===ze&&(ze=0),void 0===Be&&(Be=Ee?Ee.length:0),void 0===Ue&&(Ue=0),void 0===We&&(We=this.length),ze<0||Be>Ee.length||Ue<0||We>this.length)throw new RangeError("out of range index");if(Ue>=We&&ze>=Be)return 0;if(Ue>=We)return-1;if(ze>=Be)return 1;if(this===Ee)return 0;for(var $e=(We>>>=0)-(Ue>>>=0),Qe=(Be>>>=0)-(ze>>>=0),rt=Math.min($e,Qe),it=this.slice(Ue,We),at=Ee.slice(ze,Be),ct=0;ctWe)&&(Be=We),Ee.length>0&&(Be<0||ze<0)||ze>this.length)throw new RangeError("Attempt to write outside buffer bounds");Ue||(Ue="utf8");for(var $e=!1;;)switch(Ue){case"hex":return hexWrite(this,Ee,ze,Be);case"utf8":case"utf-8":return utf8Write(this,Ee,ze,Be);case"ascii":return asciiWrite(this,Ee,ze,Be);case"latin1":case"binary":return latin1Write(this,Ee,ze,Be);case"base64":return base64Write(this,Ee,ze,Be);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ucs2Write(this,Ee,ze,Be);default:if($e)throw new TypeError("Unknown encoding: "+Ue);Ue=(""+Ue).toLowerCase(),$e=!0}},Buffer.prototype.toJSON=function toJSON(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function asciiSlice(Ee,ze,Be){var Ue="";Be=Math.min(Ee.length,Be);for(var We=ze;WeUe)&&(Be=Ue);for(var We="",$e=ze;$eBe)throw new RangeError("Trying to access beyond buffer length")}function checkInt(Ee,ze,Be,Ue,We,$e){if(!Buffer.isBuffer(Ee))throw new TypeError('"buffer" argument must be a Buffer instance');if(ze>We||ze<$e)throw new RangeError('"value" argument is out of bounds');if(Be+Ue>Ee.length)throw new RangeError("Index out of range")}function objectWriteUInt16(Ee,ze,Be,Ue){ze<0&&(ze=65535+ze+1);for(var We=0,$e=Math.min(Ee.length-Be,2);We<$e;++We)Ee[Be+We]=(ze&255<<8*(Ue?We:1-We))>>>8*(Ue?We:1-We)}function objectWriteUInt32(Ee,ze,Be,Ue){ze<0&&(ze=4294967295+ze+1);for(var We=0,$e=Math.min(Ee.length-Be,4);We<$e;++We)Ee[Be+We]=ze>>>8*(Ue?We:3-We)&255}function checkIEEE754(Ee,ze,Be,Ue,We,$e){if(Be+Ue>Ee.length)throw new RangeError("Index out of range");if(Be<0)throw new RangeError("Index out of range")}function writeFloat(Ee,ze,Be,Ue,$e){return $e||checkIEEE754(Ee,0,Be,4),We.write(Ee,ze,Be,Ue,23,4),Be+4}function writeDouble(Ee,ze,Be,Ue,$e){return $e||checkIEEE754(Ee,0,Be,8),We.write(Ee,ze,Be,Ue,52,8),Be+8}Buffer.prototype.slice=function slice(Ee,ze){var Be,Ue=this.length;if((Ee=~~Ee)<0?(Ee+=Ue)<0&&(Ee=0):Ee>Ue&&(Ee=Ue),(ze=void 0===ze?Ue:~~ze)<0?(ze+=Ue)<0&&(ze=0):ze>Ue&&(ze=Ue),ze0&&(We*=256);)Ue+=this[Ee+--ze]*We;return Ue},Buffer.prototype.readUInt8=function readUInt8(Ee,ze){return ze||checkOffset(Ee,1,this.length),this[Ee]},Buffer.prototype.readUInt16LE=function readUInt16LE(Ee,ze){return ze||checkOffset(Ee,2,this.length),this[Ee]|this[Ee+1]<<8},Buffer.prototype.readUInt16BE=function readUInt16BE(Ee,ze){return ze||checkOffset(Ee,2,this.length),this[Ee]<<8|this[Ee+1]},Buffer.prototype.readUInt32LE=function readUInt32LE(Ee,ze){return ze||checkOffset(Ee,4,this.length),(this[Ee]|this[Ee+1]<<8|this[Ee+2]<<16)+16777216*this[Ee+3]},Buffer.prototype.readUInt32BE=function readUInt32BE(Ee,ze){return ze||checkOffset(Ee,4,this.length),16777216*this[Ee]+(this[Ee+1]<<16|this[Ee+2]<<8|this[Ee+3])},Buffer.prototype.readIntLE=function readIntLE(Ee,ze,Be){Ee|=0,ze|=0,Be||checkOffset(Ee,ze,this.length);for(var Ue=this[Ee],We=1,$e=0;++$e=(We*=128)&&(Ue-=Math.pow(2,8*ze)),Ue},Buffer.prototype.readIntBE=function readIntBE(Ee,ze,Be){Ee|=0,ze|=0,Be||checkOffset(Ee,ze,this.length);for(var Ue=ze,We=1,$e=this[Ee+--Ue];Ue>0&&(We*=256);)$e+=this[Ee+--Ue]*We;return $e>=(We*=128)&&($e-=Math.pow(2,8*ze)),$e},Buffer.prototype.readInt8=function readInt8(Ee,ze){return ze||checkOffset(Ee,1,this.length),128&this[Ee]?-1*(255-this[Ee]+1):this[Ee]},Buffer.prototype.readInt16LE=function readInt16LE(Ee,ze){ze||checkOffset(Ee,2,this.length);var Be=this[Ee]|this[Ee+1]<<8;return 32768&Be?4294901760|Be:Be},Buffer.prototype.readInt16BE=function readInt16BE(Ee,ze){ze||checkOffset(Ee,2,this.length);var Be=this[Ee+1]|this[Ee]<<8;return 32768&Be?4294901760|Be:Be},Buffer.prototype.readInt32LE=function readInt32LE(Ee,ze){return ze||checkOffset(Ee,4,this.length),this[Ee]|this[Ee+1]<<8|this[Ee+2]<<16|this[Ee+3]<<24},Buffer.prototype.readInt32BE=function readInt32BE(Ee,ze){return ze||checkOffset(Ee,4,this.length),this[Ee]<<24|this[Ee+1]<<16|this[Ee+2]<<8|this[Ee+3]},Buffer.prototype.readFloatLE=function readFloatLE(Ee,ze){return ze||checkOffset(Ee,4,this.length),We.read(this,Ee,!0,23,4)},Buffer.prototype.readFloatBE=function readFloatBE(Ee,ze){return ze||checkOffset(Ee,4,this.length),We.read(this,Ee,!1,23,4)},Buffer.prototype.readDoubleLE=function readDoubleLE(Ee,ze){return ze||checkOffset(Ee,8,this.length),We.read(this,Ee,!0,52,8)},Buffer.prototype.readDoubleBE=function readDoubleBE(Ee,ze){return ze||checkOffset(Ee,8,this.length),We.read(this,Ee,!1,52,8)},Buffer.prototype.writeUIntLE=function writeUIntLE(Ee,ze,Be,Ue){(Ee=+Ee,ze|=0,Be|=0,Ue)||checkInt(this,Ee,ze,Be,Math.pow(2,8*Be)-1,0);var We=1,$e=0;for(this[ze]=255&Ee;++$e=0&&($e*=256);)this[ze+We]=Ee/$e&255;return ze+Be},Buffer.prototype.writeUInt8=function writeUInt8(Ee,ze,Be){return Ee=+Ee,ze|=0,Be||checkInt(this,Ee,ze,1,255,0),Buffer.TYPED_ARRAY_SUPPORT||(Ee=Math.floor(Ee)),this[ze]=255&Ee,ze+1},Buffer.prototype.writeUInt16LE=function writeUInt16LE(Ee,ze,Be){return Ee=+Ee,ze|=0,Be||checkInt(this,Ee,ze,2,65535,0),Buffer.TYPED_ARRAY_SUPPORT?(this[ze]=255&Ee,this[ze+1]=Ee>>>8):objectWriteUInt16(this,Ee,ze,!0),ze+2},Buffer.prototype.writeUInt16BE=function writeUInt16BE(Ee,ze,Be){return Ee=+Ee,ze|=0,Be||checkInt(this,Ee,ze,2,65535,0),Buffer.TYPED_ARRAY_SUPPORT?(this[ze]=Ee>>>8,this[ze+1]=255&Ee):objectWriteUInt16(this,Ee,ze,!1),ze+2},Buffer.prototype.writeUInt32LE=function writeUInt32LE(Ee,ze,Be){return Ee=+Ee,ze|=0,Be||checkInt(this,Ee,ze,4,4294967295,0),Buffer.TYPED_ARRAY_SUPPORT?(this[ze+3]=Ee>>>24,this[ze+2]=Ee>>>16,this[ze+1]=Ee>>>8,this[ze]=255&Ee):objectWriteUInt32(this,Ee,ze,!0),ze+4},Buffer.prototype.writeUInt32BE=function writeUInt32BE(Ee,ze,Be){return Ee=+Ee,ze|=0,Be||checkInt(this,Ee,ze,4,4294967295,0),Buffer.TYPED_ARRAY_SUPPORT?(this[ze]=Ee>>>24,this[ze+1]=Ee>>>16,this[ze+2]=Ee>>>8,this[ze+3]=255&Ee):objectWriteUInt32(this,Ee,ze,!1),ze+4},Buffer.prototype.writeIntLE=function writeIntLE(Ee,ze,Be,Ue){if(Ee=+Ee,ze|=0,!Ue){var We=Math.pow(2,8*Be-1);checkInt(this,Ee,ze,Be,We-1,-We)}var $e=0,Qe=1,rt=0;for(this[ze]=255&Ee;++$e>0)-rt&255;return ze+Be},Buffer.prototype.writeIntBE=function writeIntBE(Ee,ze,Be,Ue){if(Ee=+Ee,ze|=0,!Ue){var We=Math.pow(2,8*Be-1);checkInt(this,Ee,ze,Be,We-1,-We)}var $e=Be-1,Qe=1,rt=0;for(this[ze+$e]=255&Ee;--$e>=0&&(Qe*=256);)Ee<0&&0===rt&&0!==this[ze+$e+1]&&(rt=1),this[ze+$e]=(Ee/Qe>>0)-rt&255;return ze+Be},Buffer.prototype.writeInt8=function writeInt8(Ee,ze,Be){return Ee=+Ee,ze|=0,Be||checkInt(this,Ee,ze,1,127,-128),Buffer.TYPED_ARRAY_SUPPORT||(Ee=Math.floor(Ee)),Ee<0&&(Ee=255+Ee+1),this[ze]=255&Ee,ze+1},Buffer.prototype.writeInt16LE=function writeInt16LE(Ee,ze,Be){return Ee=+Ee,ze|=0,Be||checkInt(this,Ee,ze,2,32767,-32768),Buffer.TYPED_ARRAY_SUPPORT?(this[ze]=255&Ee,this[ze+1]=Ee>>>8):objectWriteUInt16(this,Ee,ze,!0),ze+2},Buffer.prototype.writeInt16BE=function writeInt16BE(Ee,ze,Be){return Ee=+Ee,ze|=0,Be||checkInt(this,Ee,ze,2,32767,-32768),Buffer.TYPED_ARRAY_SUPPORT?(this[ze]=Ee>>>8,this[ze+1]=255&Ee):objectWriteUInt16(this,Ee,ze,!1),ze+2},Buffer.prototype.writeInt32LE=function writeInt32LE(Ee,ze,Be){return Ee=+Ee,ze|=0,Be||checkInt(this,Ee,ze,4,2147483647,-2147483648),Buffer.TYPED_ARRAY_SUPPORT?(this[ze]=255&Ee,this[ze+1]=Ee>>>8,this[ze+2]=Ee>>>16,this[ze+3]=Ee>>>24):objectWriteUInt32(this,Ee,ze,!0),ze+4},Buffer.prototype.writeInt32BE=function writeInt32BE(Ee,ze,Be){return Ee=+Ee,ze|=0,Be||checkInt(this,Ee,ze,4,2147483647,-2147483648),Ee<0&&(Ee=4294967295+Ee+1),Buffer.TYPED_ARRAY_SUPPORT?(this[ze]=Ee>>>24,this[ze+1]=Ee>>>16,this[ze+2]=Ee>>>8,this[ze+3]=255&Ee):objectWriteUInt32(this,Ee,ze,!1),ze+4},Buffer.prototype.writeFloatLE=function writeFloatLE(Ee,ze,Be){return writeFloat(this,Ee,ze,!0,Be)},Buffer.prototype.writeFloatBE=function writeFloatBE(Ee,ze,Be){return writeFloat(this,Ee,ze,!1,Be)},Buffer.prototype.writeDoubleLE=function writeDoubleLE(Ee,ze,Be){return writeDouble(this,Ee,ze,!0,Be)},Buffer.prototype.writeDoubleBE=function writeDoubleBE(Ee,ze,Be){return writeDouble(this,Ee,ze,!1,Be)},Buffer.prototype.copy=function copy(Ee,ze,Be,Ue){if(Be||(Be=0),Ue||0===Ue||(Ue=this.length),ze>=Ee.length&&(ze=Ee.length),ze||(ze=0),Ue>0&&Ue=this.length)throw new RangeError("sourceStart out of bounds");if(Ue<0)throw new RangeError("sourceEnd out of bounds");Ue>this.length&&(Ue=this.length),Ee.length-ze=0;--We)Ee[We+ze]=this[We+Be];else if($e<1e3||!Buffer.TYPED_ARRAY_SUPPORT)for(We=0;We<$e;++We)Ee[We+ze]=this[We+Be];else Uint8Array.prototype.set.call(Ee,this.subarray(Be,Be+$e),ze);return $e},Buffer.prototype.fill=function fill(Ee,ze,Be,Ue){if("string"==typeof Ee){if("string"==typeof ze?(Ue=ze,ze=0,Be=this.length):"string"==typeof Be&&(Ue=Be,Be=this.length),1===Ee.length){var We=Ee.charCodeAt(0);We<256&&(Ee=We)}if(void 0!==Ue&&"string"!=typeof Ue)throw new TypeError("encoding must be a string");if("string"==typeof Ue&&!Buffer.isEncoding(Ue))throw new TypeError("Unknown encoding: "+Ue)}else"number"==typeof Ee&&(Ee&=255);if(ze<0||this.length>>=0,Be=void 0===Be?this.length:Be>>>0,Ee||(Ee=0),"number"==typeof Ee)for($e=ze;$e55295&&Be<57344){if(!We){if(Be>56319){(ze-=3)>-1&&$e.push(239,191,189);continue}if(Qe+1===Ue){(ze-=3)>-1&&$e.push(239,191,189);continue}We=Be;continue}if(Be<56320){(ze-=3)>-1&&$e.push(239,191,189),We=Be;continue}Be=65536+(We-55296<<10|Be-56320)}else We&&(ze-=3)>-1&&$e.push(239,191,189);if(We=null,Be<128){if((ze-=1)<0)break;$e.push(Be)}else if(Be<2048){if((ze-=2)<0)break;$e.push(Be>>6|192,63&Be|128)}else if(Be<65536){if((ze-=3)<0)break;$e.push(Be>>12|224,Be>>6&63|128,63&Be|128)}else{if(!(Be<1114112))throw new Error("Invalid code point");if((ze-=4)<0)break;$e.push(Be>>18|240,Be>>12&63|128,Be>>6&63|128,63&Be|128)}}return $e}function base64ToBytes(Ee){return Ue.toByteArray(function base64clean(Ee){if((Ee=function stringtrim(Ee){return Ee.trim?Ee.trim():Ee.replace(/^\s+|\s+$/g,"")}(Ee).replace(Qe,"")).length<2)return"";for(;Ee.length%4!=0;)Ee+="=";return Ee}(Ee))}function blitBuffer(Ee,ze,Be,Ue){for(var We=0;We=ze.length||We>=Ee.length);++We)ze[We+Be]=Ee[We];return We}}).call(this,Be("c8ba"))},b64b:function(Ee,ze,Be){var Ue=Be("23e7"),We=Be("7b0b"),$e=Be("df75");Ue({target:"Object",stat:!0,forced:Be("d039")((function(){$e(1)}))},{keys:function keys(Ee){return $e(We(Ee))}})},b68b:function(Ee,ze,Be){"use strict";var Ue=Be("ec20").dot,We=Be("e806").BADNUM,$e=Ee.exports={};$e.tester=function tester(Ee){var ze,Be=Ee.slice(),Ue=Be[0][0],$e=Ue,Qe=Be[0][1],rt=Qe;for(Be.push(Be[0]),ze=1;ze$e||at===We||atrt)&&(!ze||!it(Ee))}:function contains(Ee,ze){var it=Ee[0],at=Ee[1];if(it===We||it$e||at===We||atrt)return!1;var ct,ft,xt,kt,Lt,Ut=Be.length,er=Be[0][0],tr=Be[0][1],rr=0;for(ct=1;ctMath.max(ft,er)||at>Math.max(xt,tr)))if(atct||Math.abs(Ue(Qe,xt))>We)return!0;return!1},$e.filter=function filter(Ee,ze){var Be=[Ee[0]],Ue=0,We=0;function addPt(Qe){Ee.push(Qe);var rt=Be.length,it=Ue;Be.splice(We+1);for(var at=it+1;at1&&addPt(Ee.pop());return{addPt:addPt,raw:Ee,filtered:Be}}},b6de:function(Ee,ze,Be){"use strict";var Ue=Be("bb71");ze.name="treemap",ze.plot=function(Ee,Be,We,$e){Ue.plotBasePlot(ze.name,Ee,Be,We,$e)},ze.clean=function(Ee,Be,We,$e){Ue.cleanBasePlot(ze.name,Ee,Be,We,$e)}},b6f7:function(Ee,ze,Be){"use strict";var Ue=Be("371e"),We=Be("fc26"),$e=Be("4183"),Qe=Be("6b50");Ee.exports=function supplyDefaults(Ee,ze,Be,rt){function coerce(Be,Ue){return We.coerce(Ee,ze,Qe,Be,Ue)}function readComponents(Ee){var ze=Ee.map((function(Ee){var ze=coerce(Ee);return ze&&We.isArrayOrTypedArray(ze)?ze:null}));return ze.every((function(Ee){return Ee&&Ee.length===ze[0].length}))&&ze}readComponents(["x","y","z"])?(readComponents(["i","j","k"]),(!ze.i||ze.j&&ze.k)&&(!ze.j||ze.k&&ze.i)&&(!ze.k||ze.i&&ze.j)?(Ue.getComponentMethod("calendars","handleTraceDefaults")(Ee,ze,["x","y","z"],rt),["lighting.ambient","lighting.diffuse","lighting.specular","lighting.roughness","lighting.fresnel","lighting.vertexnormalsepsilon","lighting.facenormalsepsilon","lightposition.x","lightposition.y","lightposition.z","flatshading","alphahull","delaunayaxis","opacity"].forEach((function(Ee){coerce(Ee)})),coerce("contour.show")&&(coerce("contour.color"),coerce("contour.width")),"intensity"in Ee?(coerce("intensity"),coerce("intensitymode"),$e(Ee,ze,rt,coerce,{prefix:"",cLetter:"c"})):(ze.showscale=!1,"facecolor"in Ee?coerce("facecolor"):"vertexcolor"in Ee?coerce("vertexcolor"):coerce("color",Be)),coerce("text"),coerce("hovertext"),coerce("hovertemplate"),ze._length=null):ze.visible=!1):ze.visible=!1}},b707:function(Ee,ze,Be){"use strict";function compileSearch(Ee,ze,Be,Ue,We,$e){var Qe=["function ",Ee,"(a,l,h,",Ue.join(","),"){",$e?"":"var i=",Be?"l-1":"h+1",";while(l<=h){var m=(l+h)>>>1,x=a",We?".get(m)":"[m]"];return $e?ze.indexOf("c")<0?Qe.push(";if(x===y){return m}else if(x<=y){"):Qe.push(";var p=c(x,y);if(p===0){return m}else if(p<=0){"):Qe.push(";if(",ze,"){i=m;"),Be?Qe.push("l=m+1}else{h=m-1}"):Qe.push("h=m-1}else{l=m+1}"),Qe.push("}"),$e?Qe.push("return -1};"):Qe.push("return i};"),Qe.join("")}function compileBoundsSearch(Ee,ze,Be,Ue){return new Function([compileSearch("A","x"+Ee+"y",ze,["y"],!1,Ue),compileSearch("B","x"+Ee+"y",ze,["y"],!0,Ue),compileSearch("P","c(x,y)"+Ee+"0",ze,["y","c"],!1,Ue),compileSearch("Q","c(x,y)"+Ee+"0",ze,["y","c"],!0,Ue),"function dispatchBsearch",Be,"(a,y,c,l,h){if(a.shape){if(typeof(c)==='function'){return Q(a,(l===undefined)?0:l|0,(h===undefined)?a.shape[0]-1:h|0,y,c)}else{return B(a,(c===undefined)?0:c|0,(l===undefined)?a.shape[0]-1:l|0,y)}}else{if(typeof(c)==='function'){return P(a,(l===undefined)?0:l|0,(h===undefined)?a.length-1:h|0,y,c)}else{return A(a,(c===undefined)?0:c|0,(l===undefined)?a.length-1:l|0,y)}}}return dispatchBsearch",Be].join(""))()}Ee.exports={ge:compileBoundsSearch(">=",!1,"GE"),gt:compileBoundsSearch(">",!1,"GT"),lt:compileBoundsSearch("<",!0,"LT"),le:compileBoundsSearch("<=",!0,"LE"),eq:compileBoundsSearch("-",!0,"EQ",!0)}},b727:function(Ee,ze,Be){var Ue=Be("0366"),We=Be("44ad"),$e=Be("7b0b"),Qe=Be("50c4"),rt=Be("65f0"),it=[].push,createMethod=function(Ee){var ze=1==Ee,Be=2==Ee,at=3==Ee,ct=4==Ee,ft=6==Ee,xt=5==Ee||ft;return function(kt,Lt,Ut,er){for(var tr,rr,ar=$e(kt),Lr=We(ar),Qr=Ue(Lt,Ut,3),on=Qe(Lr.length),sn=0,cn=er||rt,un=ze?cn(kt,on):Be?cn(kt,0):void 0;on>sn;sn++)if((xt||sn in Lr)&&(rr=Qr(tr=Lr[sn],sn,ar),Ee))if(ze)un[sn]=rr;else if(rr)switch(Ee){case 3:return!0;case 5:return tr;case 6:return sn;case 2:it.call(un,tr)}else if(ct)return!1;return ft?-1:at||ct?ct:un}};Ee.exports={forEach:createMethod(0),map:createMethod(1),filter:createMethod(2),some:createMethod(3),every:createMethod(4),find:createMethod(5),findIndex:createMethod(6)}},b73f:function(Ee,ze){Ee.exports=function rotateZ(Ee,ze,Be,Ue){var We=Be[0],$e=Be[1],Qe=ze[0]-We,rt=ze[1]-$e,it=Math.sin(Ue),at=Math.cos(Ue);return Ee[0]=We+Qe*at-rt*it,Ee[1]=$e+Qe*it+rt*at,Ee[2]=ze[2],Ee}},b778:function(Ee,ze,Be){"use strict";Ee.exports=function noop(){}},b791:function(Ee,ze,Be){"use strict";var Ue=Be("19b2"),We=Be("fc26"),$e=Be("c258"),Qe=Be("83d1"),rt=Be("2169").makeBlank,it=Be("0919");function convertOnSelect(Ee){var ze,Be=Ee[0].trace,Ue=Be._opts;if(Be.selectedpoints){for(var $e=Qe.makeSelectedPointStyleFns(Be),rt=0;rt1.0001)return null;Ut+=Lt[at]}if(Math.abs(Ut-1)>.001)return null;return[ct,interpolate(Ee,Lt),Lt]}},b83d:function(Ee,ze,Be){"use strict";var Ue=["d","ax","vv","rs","re","rb","ri","bs","be","bb","bi"];function bruteForcePlanner(Ee){var ze="bruteForce"+(Ee?"Full":"Partial"),Be=[],We=Ue.slice();Ee||We.splice(3,0,"fp");var $e=["function "+ze+"("+We.join()+"){"];function invoke(ze,We){var Qe=function generateBruteForce(Ee,ze,Be){var We="bruteForce"+(Ee?"Red":"Blue")+(ze?"Flip":"")+(Be?"Full":""),$e=["function ",We,"(",Ue.join(),"){","var ","es","=2*","d",";"],Qe="for(var i=rs,rp=es*rs;ibe-bs){"),Ee?(invoke(!0,!1),$e.push("}else{"),invoke(!1,!1)):($e.push("if(fp){"),invoke(!0,!0),$e.push("}else{"),invoke(!0,!1),$e.push("}}else{if(fp){"),invoke(!1,!0),$e.push("}else{"),invoke(!1,!1),$e.push("}")),$e.push("}}return "+ze);var Qe=Be.join("")+$e.join("");return new Function(Qe)()}ze.partial=bruteForcePlanner(!1),ze.full=bruteForcePlanner(!0)},b882:function(Ee,ze,Be){Ee.exports=function forEach(Ee,ze,Be,We,$e,Qe){var rt,it;ze||(ze=3);Be||(Be=0);it=We?Math.min(We*ze+Be,Ee.length):Ee.length;for(rt=Be;rt0){Be=Lt[Ue];break}return Be}function leastCommonMultiple(Ee,ze){if(!(Ee<1||ze<1)){for(var Be=getFactors(Ee),Ue=getFactors(ze),We=1,$e=0;$etr;)Be--,Be/=smallestDivisor(Be),++Be1?Ue:1},kt.refineCoords=function(Ee){for(var ze=this.dataScaleX,Be=this.dataScaleY,Ue=Ee[0].shape[0],Qe=Ee[0].shape[1],rt=0|Math.floor(Ee[0].shape[0]*ze+1),it=0|Math.floor(Ee[0].shape[1]*Be+1),at=1+Ue+1,ct=1+Qe+1,ft=We(new Float32Array(at*ct),[at,ct]),xt=0;xt0&&null!==this.contourStart[Ee]&&null!==this.contourEnd[Ee]&&this.contourEnd[Ee]>this.contourStart[Ee]))for(We[Ee]=!0,ze=this.contourStart[Ee];ze$e&&(this.minValues[ze]=$e),this.maxValues[ze]<$e&&(this.maxValues[ze]=$e));for(ze=0;ze<3;ze++)this.objectOffset[ze]=.5*(this.minValues[ze]+this.maxValues[ze]);for(ze=0;ze<3;ze++)for(Be=0;Be":return function(Ee){return d2cTarget(Ee)>Qe};case">=":return function(Ee){return d2cTarget(Ee)>=Qe};case"[]":return function(Ee){var ze=d2cTarget(Ee);return ze>=Qe[0]&&ze<=Qe[1]};case"()":return function(Ee){var ze=d2cTarget(Ee);return ze>Qe[0]&&ze=Qe[0]&&zeQe[0]&&ze<=Qe[1]};case"][":return function(Ee){var ze=d2cTarget(Ee);return ze<=Qe[0]||ze>=Qe[1]};case")(":return function(Ee){var ze=d2cTarget(Ee);return zeQe[1]};case"](":return function(Ee){var ze=d2cTarget(Ee);return ze<=Qe[0]||ze>Qe[1]};case")[":return function(Ee){var ze=d2cTarget(Ee);return ze=Qe[1]};case"{}":return function(Ee){return-1!==Qe.indexOf(d2cTarget(Ee))};case"}{":return function(Ee){return-1===Qe.indexOf(d2cTarget(Ee))}}}(Be,$e.getDataToCoordFunc(Ee,ze,rt,We),xt),ar={},Lr={},Qr=0;Lt?(er=function(Ee){ar[Ee.astr]=Ue.extendDeep([],Ee.get()),Ee.set(new Array(ft))},tr=function(Ee,ze){var Be=ar[Ee.astr][ze];Ee.get()[ze]=Be}):(er=function(Ee){ar[Ee.astr]=Ue.extendDeep([],Ee.get()),Ee.set([])},tr=function(Ee,ze){var Be=ar[Ee.astr][ze];Ee.get().push(Be)}),forAllAttrs(er);for(var on=Qe(ze.transforms,Be),sn=0;snWe._length&&(on=on.slice(0,We._length));var sn,cn=We.tickvals;function makeTickItem(Ee,ze){return{val:Ee,text:sn[ze]}}function sortTickItem(Ee,ze){return Ee.val-ze.val}if(Array.isArray(cn)&&cn.length){sn=We.ticktext,Array.isArray(sn)&&sn.length?sn.length>cn.length?sn=sn.slice(0,cn.length):cn.length>sn.length&&(cn=cn.slice(0,sn.length)):sn=cn.map(Ue.format(We.tickformat));for(var un=1;un=Be||it>=$e)return;var at=Ee.lineLayer.readPixel(rt,$e-1-it),ct=0!==at[3],ft=ct?at[2]+256*(at[1]+256*at[0]):null,xt={x:rt,y:it,clientX:ze.clientX,clientY:ze.clientY,dataIndex:Ee.model.key,curveNumber:ft};ft!==on&&(ct?We.hover(xt):We.unhover&&We.unhover(xt),on=ft)}})),Qr.style("opacity",(function(Ee){return Ee.pick?0:1})),ct.style("background","rgba(255, 255, 255, 0)");var sn=ct.selectAll("."+Ut.cn.parcoords).data(Lr,ft);sn.exit().remove(),sn.enter().append("g").classed(Ut.cn.parcoords,!0).style("shape-rendering","crispEdges").style("pointer-events","none"),sn.attr("transform",(function(Ee){return"translate("+Ee.model.translateX+","+Ee.model.translateY+")"}));var cn=sn.selectAll("."+Ut.cn.parcoordsControlView).data(xt,ft);cn.enter().append("g").classed(Ut.cn.parcoordsControlView,!0),cn.attr("transform",(function(Ee){return"translate("+Ee.model.pad.l+","+Ee.model.pad.t+")"}));var un=cn.selectAll("."+Ut.cn.yAxis).data((function(Ee){return Ee.dimensions}),ft);un.enter().append("g").classed(Ut.cn.yAxis,!0),cn.each((function(Ee){updatePanelLayout(un,Ee)})),Qr.each((function(Ee){if(Ee.viewModel){!Ee.lineLayer||We?Ee.lineLayer=tr(this,Ee):Ee.lineLayer.update(Ee),(Ee.key||0===Ee.key)&&(Ee.viewModel[Ee.key]=Ee.lineLayer);var ze=!Ee.context||We;Ee.lineLayer.render(Ee.viewModel.panels,ze)}})),un.attr("transform",(function(Ee){return"translate("+Ee.xScale(Ee.xIndex)+", 0)"})),un.call(Ue.behavior.drag().origin((function(Ee){return Ee})).on("drag",(function(Ee){var ze=Ee.parent;ar.linePickActive(!1),Ee.x=Math.max(-Ut.overdrag,Math.min(Ee.model.width+Ut.overdrag,Ue.event.x)),Ee.canvasX=Ee.x*Ee.model.canvasPixelRatio,un.sort((function(Ee,ze){return Ee.x-ze.x})).each((function(ze,Be){ze.xIndex=Be,ze.x=Ee===ze?ze.x:ze.xScale(ze.xIndex),ze.canvasX=ze.x*ze.model.canvasPixelRatio})),updatePanelLayout(un,ze),un.filter((function(ze){return 0!==Math.abs(Ee.xIndex-ze.xIndex)})).attr("transform",(function(Ee){return"translate("+Ee.xScale(Ee.xIndex)+", 0)"})),Ue.select(this).attr("transform","translate("+Ee.x+", 0)"),un.each((function(Be,Ue,We){We===Ee.parent.key&&(ze.dimensions[Ue]=Be)})),ze.contextLayer&&ze.contextLayer.render(ze.panels,!1,!someFiltersActive(ze)),ze.focusLayer.render&&ze.focusLayer.render(ze.panels)})).on("dragend",(function(Ee){var ze=Ee.parent;Ee.x=Ee.xScale(Ee.xIndex),Ee.canvasX=Ee.x*Ee.model.canvasPixelRatio,updatePanelLayout(un,ze),Ue.select(this).attr("transform",(function(Ee){return"translate("+Ee.x+", 0)"})),ze.contextLayer&&ze.contextLayer.render(ze.panels,!1,!someFiltersActive(ze)),ze.focusLayer&&ze.focusLayer.render(ze.panels),ze.pickLayer&&ze.pickLayer.render(ze.panels,!0),ar.linePickActive(!0),We&&We.axesMoved&&We.axesMoved(ze.key,ze.dimensions.map((function(Ee){return Ee.crossfilterDimensionIndex})))}))),un.exit().remove();var hn=un.selectAll("."+Ut.cn.axisOverlays).data(xt,ft);hn.enter().append("g").classed(Ut.cn.axisOverlays,!0),hn.selectAll("."+Ut.cn.axis).remove();var dn=hn.selectAll("."+Ut.cn.axis).data(xt,ft);dn.enter().append("g").classed(Ut.cn.axis,!0),dn.each((function(Ee){var ze=Ee.model.height/Ee.model.tickDistance,Be=Ee.domainScale,We=Be.domain();Ue.select(this).call(Ue.svg.axis().orient("left").tickSize(4).outerTickSize(2).ticks(ze,Ee.tickFormat).tickValues(Ee.ordinal?We:null).tickFormat((function(ze){return Lt.isOrdinal(Ee)?ze:linearFormat(Ee.model.dimensions[Ee.visibleIndex],ze)})).scale(Be)),it.font(dn.selectAll("text"),Ee.model.tickFont)})),dn.selectAll(".domain, .tick>line").attr("fill","none").attr("stroke","black").attr("stroke-opacity",.25).attr("stroke-width","1px"),dn.selectAll("text").style("text-shadow","1px 1px 1px #fff, -1px -1px 1px #fff, 1px -1px 1px #fff, -1px 1px 1px #fff").style("cursor","default").style("user-select","none");var vn=hn.selectAll("."+Ut.cn.axisHeading).data(xt,ft);vn.enter().append("g").classed(Ut.cn.axisHeading,!0);var yn=vn.selectAll("."+Ut.cn.axisTitle).data(xt,ft);yn.enter().append("text").classed(Ut.cn.axisTitle,!0).attr("text-anchor","middle").style("cursor","ew-resize").style("user-select","none").style("pointer-events","auto"),yn.text((function(Ee){return Ee.label})).each((function(ze){var Be=Ue.select(this);it.font(Be,ze.model.labelFont),rt.convertToTspans(Be,Ee)})).attr("transform",(function(Ee){var ze=calcTilt(Ee.model.labelAngle,Ee.model.labelSide),Be=Ut.axisTitleOffset;return(ze.dir>0?"":"translate(0,"+(2*Be+Ee.model.height)+")")+"rotate("+ze.degrees+")translate("+-Be*ze.dx+","+-Be*ze.dy+")"})).attr("text-anchor",(function(Ee){var ze=calcTilt(Ee.model.labelAngle,Ee.model.labelSide);return 2*Math.abs(ze.dx)>Math.abs(ze.dy)?ze.dir*ze.dx<0?"start":"end":"middle"}));var _n=hn.selectAll("."+Ut.cn.axisExtent).data(xt,ft);_n.enter().append("g").classed(Ut.cn.axisExtent,!0);var Mn=_n.selectAll("."+Ut.cn.axisExtentTop).data(xt,ft);Mn.enter().append("g").classed(Ut.cn.axisExtentTop,!0),Mn.attr("transform","translate(0,"+-Ut.axisExtentOffset+")");var Cn=Mn.selectAll("."+Ut.cn.axisExtentTopText).data(xt,ft);Cn.enter().append("text").classed(Ut.cn.axisExtentTopText,!0).call(styleExtentTexts),Cn.text((function(Ee){return extremeText(Ee,!0)})).each((function(Ee){it.font(Ue.select(this),Ee.model.rangeFont)}));var En=_n.selectAll("."+Ut.cn.axisExtentBottom).data(xt,ft);En.enter().append("g").classed(Ut.cn.axisExtentBottom,!0),En.attr("transform",(function(Ee){return"translate(0,"+(Ee.model.height+Ut.axisExtentOffset)+")"}));var Pn=En.selectAll("."+Ut.cn.axisExtentBottomText).data(xt,ft);Pn.enter().append("text").classed(Ut.cn.axisExtentBottomText,!0).attr("dy","0.75em").call(styleExtentTexts),Pn.text((function(Ee){return extremeText(Ee,!1)})).each((function(Ee){it.font(Ue.select(this),Ee.model.rangeFont)})),er.ensureAxisBrush(hn)}},baf5:function(Ee,ze,Be){"use strict";Ee.exports={scrollBarWidth:6,scrollBarMinHeight:20,scrollBarColor:"#808BA4",scrollBarMargin:4,scrollBarEnterAttrs:{rx:20,ry:3,width:0,height:0},titlePad:2,textGap:40,itemGap:5}},bb14:function(Ee,ze,Be){"use strict";var Ue=Be("fc26"),We=Ue._,$e=Be("0642"),Qe=Be("e806").BADNUM;function ptFunc(Ee,ze,Be,Ue){return{o:Ee,h:ze,l:Be,c:Ue}}function calcCommon(Ee,ze,Be,rt,it){for(var at=rt.makeCalcdata(ze,"open"),ct=rt.makeCalcdata(ze,"high"),ft=rt.makeCalcdata(ze,"low"),xt=rt.makeCalcdata(ze,"close"),kt=Array.isArray(ze.text),Lt=Array.isArray(ze.hovertext),Ut=!0,er=null,tr=[],rr=0;rrer):Ut=sn>Lr,er=sn;var cn=it(Lr,Qr,on,sn);cn.pos=ar,cn.yc=(Lr+sn)/2,cn.i=rr,cn.dir=Ut?"increasing":"decreasing",cn.x=cn.pos,cn.y=[on,Qr],kt&&(cn.tx=ze.text[rr]),Lt&&(cn.htx=ze.hovertext[rr]),tr.push(cn)}else tr.push({pos:ar,empty:!0})}return ze._extremes[rt._id]=$e.findExtremes(rt,Ue.concat(ft,ct),{padded:!0}),tr.length&&(tr[0].t={labels:{open:We(Ee,"open:")+" ",high:We(Ee,"high:")+" ",low:We(Ee,"low:")+" ",close:We(Ee,"close:")+" "}}),tr}Ee.exports={calc:function calc(Ee,ze){var Be=$e.getFromId(Ee,ze.xaxis),We=$e.getFromId(Ee,ze.yaxis),Qe=function convertTickWidth(Ee,ze,Be){var We=Be._minDiff;if(!We){var $e,Qe=Ee._fullData,rt=[];for(We=1/0,$e=0;$e=ze.width-20?($e["text-anchor"]="start",$e.x=5):($e["text-anchor"]="end",$e.x=ze._paper.attr("width")-7),Be.attr($e);var Qe=Be.select(".js-link-to-tool"),rt=Be.select(".js-link-spacer"),ct=Be.select(".js-sourcelinks");Ee._context.showSources&&Ee._context.showSources(Ee),Ee._context.showLink&&function positionPlayWithData(Ee,ze){ze.text("");var Be=ze.append("a").attr({"xlink:xlink:href":"#",class:"link--impt link--embedview","font-weight":"bold"}).text(Ee._context.linkText+" "+String.fromCharCode(187));if(Ee._context.sendData)Be.on("click",(function(){tr.sendDataToCloud(Ee)}));else{var Ue=window.location.pathname.split("/"),We=window.location.search;Be.attr({"xlink:xlink:show":"new","xlink:xlink:href":"/"+Ue[2].split(".")[0]+"/"+Ue[1]+We})}}(Ee,Qe),rt.text(Qe.text()&&ct.text()?" - ":"")}},tr.sendDataToCloud=function(Ee){Ee.emit("plotly_beforeexport");var ze=(window.PLOTLYENV||{}).BASE_URL||Ee._context.plotlyServerURL,Be=Ue.select(Ee).append("div").attr("id","hiddenform").style("display","none"),We=Be.append("form").attr({action:ze+"/external",method:"post",target:"_blank"});return We.append("input").attr({type:"text",name:"data"}).node().value=tr.graphJson(Ee,!1,"keepdata"),We.node().submit(),Be.remove(),Ee.emit("plotly_afterexport"),!1};var Lr=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],Qr=["year","month","dayMonth","dayMonthYear"];function getFormatObj(Ee,ze){var Be=Ee._context.locale,Ue=!1,We={};function includeFormat(Ee){for(var Be=!0,$e=0;$e1&&_n.length>1){for($e.getComponentMethod("grid","sizeDefaults")(at,rt),Qe=0;Qe15&&_n.length>15&&0===rt.shapes.length&&0===rt.images.length,rt._hasCartesian=rt._has("cartesian"),rt._hasGeo=rt._has("geo"),rt._hasGL3D=rt._has("gl3d"),rt._hasGL2D=rt._has("gl2d"),rt._hasTernary=rt._has("ternary"),rt._hasPie=rt._has("pie"),tr.linkSubplots(ft,rt,ct,We),tr.cleanPlot(ft,rt,ct,We),We._zoomlayer&&!Ee._dragging&&We._zoomlayer.selectAll(".select-outline").remove(),function fillMetaTextHelpers(Ee,ze){var Be,Ue=[];ze.meta&&(Be=ze._meta={meta:ze.meta,layout:{meta:ze.meta}});for(var We=0;We0){var ft=1-2*rt;Ue=Math.round(ft*Ue),$e=Math.round(ft*$e)}}var xt=tr.layoutAttributes.width.min,kt=tr.layoutAttributes.height.min;Ue1,Ut=!ze.height&&Math.abs(Be.height-$e)>1;(Ut||Lt)&&(Lt&&(Be.width=Ue),Ut&&(Be.height=$e)),Ee._initialAutoSize||(Ee._initialAutoSize={width:Ue,height:$e}),tr.sanitizeMargins(Be)},tr.supplyLayoutModuleDefaults=function(Ee,ze,Be,Ue){var We,Qe,rt,at=$e.componentsRegistry,ct=ze._basePlotModules,ft=$e.subplotsRegistry.cartesian;for(We in at)(rt=at[We]).includeBasePlot&&rt.includeBasePlot(Ee,ze);for(var xt in ct.length||ct.push(ft),ze._has("cartesian")&&($e.getComponentMethod("grid","contentDefaults")(Ee,ze),ft.finalizeSubplots(Ee,ze)),ze._subplots)ze._subplots[xt].sort(it.subplotSort);for(Qe=0;Qe.5*Ue.width&&(it.log("Margin push",ze,"is too big in x, dropping"),Be.l=Be.r=0),Be.b+Be.t>.5*Ue.height&&(it.log("Margin push",ze,"is too big in y, dropping"),Be.b=Be.t=0);var at=void 0!==Be.xl?Be.xl:Be.x,ct=void 0!==Be.xr?Be.xr:Be.x,ft=void 0!==Be.yt?Be.yt:Be.y,xt=void 0!==Be.yb?Be.yb:Be.y;We[ze]={l:{val:at,size:Be.l+Qe},r:{val:ct,size:Be.r+Qe},b:{val:xt,size:Be.b+Qe},t:{val:ft,size:Be.t+Qe}},$e[ze]=1}else delete We[ze],delete $e[ze];if(!Ue._replotting)return tr.doAutoMargin(Ee)}},tr.doAutoMargin=function(Ee){var ze=Ee._fullLayout;ze._size||(ze._size={}),initMargins(ze);var Be=ze._size,Ue=ze.margin,Qe=it.extendFlat({},Be),rt=Ue.l,at=Ue.r,ct=Ue.t,ft=Ue.b,xt=ze.width,kt=ze.height,Lt=ze._pushmargin,Ut=ze._pushmarginIds;if(!1!==ze.margin.autoexpand){for(var er in Lt)Ut[er]||delete Lt[er];for(var rr in Lt.base={l:{val:0,size:rt},r:{val:1,size:at},t:{val:1,size:ct},b:{val:0,size:ft}},Lt){var ar=Lt[rr].l||{},Lr=Lt[rr].b||{},Qr=ar.val,on=ar.size,sn=Lr.val,cn=Lr.size;for(var un in Lt){if(We(on)&&Lt[un].r){var hn=Lt[un].r.val,dn=Lt[un].r.size;if(hn>Qr){var vn=(on*hn+(dn-xt)*Qr)/(hn-Qr),yn=(dn*(1-Qr)+(on-xt)*(1-hn))/(hn-Qr);vn>=0&&yn>=0&&xt-(vn+yn)>0&&vn+yn>rt+at&&(rt=vn,at=yn)}}if(We(cn)&&Lt[un].t){var _n=Lt[un].t.val,Mn=Lt[un].t.size;if(_n>sn){var Cn=(cn*_n+(Mn-kt)*sn)/(_n-sn),En=(Mn*(1-sn)+(cn-kt)*(1-_n))/(_n-sn);Cn>=0&&En>=0&&kt-(En+Cn)>0&&Cn+En>ft+ct&&(ft=Cn,ct=En)}}}}}if(Be.l=Math.round(rt),Be.r=Math.round(at),Be.t=Math.round(ct),Be.b=Math.round(ft),Be.p=Math.round(Ue.pad),Be.w=Math.round(xt)-Be.l-Be.r,Be.h=Math.round(kt)-Be.t-Be.b,!ze._replotting&&tr.didMarginChange(Qe,Be)){"_redrawFromAutoMarginCount"in ze?ze._redrawFromAutoMarginCount++:ze._redrawFromAutoMarginCount=1;var Pn=3*(1+Object.keys(Ut).length);if(ze._redrawFromAutoMarginCount0&&(Ee._transitioningWithDuration=!0),Ee._transitionData._interruptCallbacks.push((function(){Ue=!0})),Be.redraw&&Ee._transitionData._interruptCallbacks.push((function(){return $e.call("redraw",Ee)})),Ee._transitionData._interruptCallbacks.push((function(){Ee.emit("plotly_transitioninterrupted",[])}));var Qe=0,rt=0;function makeCallback(){return Qe++,function(){rt++,Ue||rt!==Qe||function completeTransition(ze){if(!Ee._transitionData)return;return function flushCallbacks(Ee){if(Ee)for(;Ee.length;)Ee.shift()}(Ee._transitionData._interruptCallbacks),Promise.resolve().then((function(){if(Be.redraw)return $e.call("redraw",Ee)})).then((function(){Ee._transitioning=!1,Ee._transitioningWithDuration=!1,Ee.emit("plotly_transitioned",[])})).then(ze)}(We)}}Be.runFn(makeCallback),setTimeout(makeCallback())}))}],Qe=it.syncOrAsync(We,Ee);return Qe&&Qe.then||(Qe=Promise.resolve()),Qe.then((function(){return Ee}))}tr.didMarginChange=function(Ee,ze){for(var Be=0;Be1)return!0}return!1},tr.graphJson=function(Ee,ze,Be,Ue,We){(We&&ze&&!Ee._fullData||We&&!ze&&!Ee._fullLayout)&&tr.supplyDefaults(Ee);var $e=We?Ee._fullData:Ee.data,Qe=We?Ee._fullLayout:Ee.layout,rt=(Ee._transitionData||{})._frames;function stripObj(Ee){if("function"==typeof Ee)return null;if(it.isPlainObject(Ee)){var ze,Ue,We={};for(ze in Ee)if("function"!=typeof Ee[ze]&&-1===["_","["].indexOf(ze.charAt(0))){if("keepdata"===Be){if("src"===ze.substr(ze.length-3))continue}else if("keepstream"===Be){if("string"==typeof(Ue=Ee[ze+"src"])&&Ue.indexOf(":")>0&&!it.isPlainObject(Ee.stream))continue}else if("keepall"!==Be&&"string"==typeof(Ue=Ee[ze+"src"])&&Ue.indexOf(":")>0)continue;We[ze]=stripObj(Ee[ze])}return We}return Array.isArray(Ee)?Ee.map(stripObj):it.isTypedArray(Ee)?it.simpleMap(Ee,it.identity):it.isJSDate(Ee)?it.ms2DateTimeLocal(+Ee):Ee}var at={data:($e||[]).map((function(Ee){var Be=stripObj(Ee);return ze&&delete Be.fit,Be}))};return ze||(at.layout=stripObj(Qe)),Ee.framework&&Ee.framework.isPolar&&(at=Ee.framework.getConfig()),rt&&(at.frames=stripObj(rt)),"object"===Ue?at:JSON.stringify(at)},tr.modifyFrames=function(Ee,ze){var Be,Ue,We,$e=Ee._transitionData._frames,Qe=Ee._transitionData._frameHash;for(Be=0;Be=0;rt--)if(Qe[rt].enabled){Be._indexToPoints=Qe[rt]._indexToPoints;break}Ue&&Ue.calc&&($e=Ue.calc(Ee,Be))}Array.isArray($e)&&$e[0]||($e=[{x:ct,y:ct}]),$e[0].t||($e[0].t={}),$e[0].trace=Be,Lt[ze]=$e}}for(setupAxisCategories(at,xt),We=0;We")):"isosurface"===ze.type||"volume"===ze.type?(Qr.valueLabel=xt.tickText(Ee.mockAxis,Ee.mockAxis.d2l(ct.traceCoordinate[3]),"hover").text,un.push("value: "+Qr.valueLabel),ct.textLabel&&un.push(ct.textLabel),tr=un.join("
")):tr=ct.textLabel;var hn={x:ct.traceCoordinate[0],y:ct.traceCoordinate[1],z:ct.traceCoordinate[2],data:rr._input,fullData:rr,curveNumber:rr.index,pointNumber:Lr};kt.appendArrayPointValue(hn,rr,Lr),ze._module.eventData&&(hn=rr._module.eventData(hn,ct,rr,{},Lr));var dn={points:[hn]};Ee.fullSceneLayout.hovermode&&kt.loneHover({trace:rr,x:(.5+.5*Ut[0]/Ut[3])*$e,y:(.5-.5*Ut[1]/Ut[3])*Qe,xLabel:Qr.xLabel,yLabel:Qr.yLabel,zLabel:Qr.zLabel,text:tr,name:at.name,color:kt.castHoverOption(rr,Lr,"bgcolor")||at.color,borderColor:kt.castHoverOption(rr,Lr,"bordercolor"),fontFamily:kt.castHoverOption(rr,Lr,"font.family"),fontSize:kt.castHoverOption(rr,Lr,"font.size"),fontColor:kt.castHoverOption(rr,Lr,"font.color"),nameLength:kt.castHoverOption(rr,Lr,"namelength"),textAlign:kt.castHoverOption(rr,Lr,"align"),hovertemplate:ft.castOption(rr,Lr,"hovertemplate"),hovertemplateLabels:ft.extendFlat({},hn,Qr),eventData:[hn]},{container:Ue,gd:Be}),ct.buttons&&ct.distance<5?Be.emit("plotly_click",dn):Be.emit("plotly_hover",dn),rt=dn}else kt.loneUnhover(Ue),Be.emit("plotly_unhover",rt);Ee.drawAnnotations(Ee)}function initializeGLPlot(Ee,ze,Be){if(Ee.initializeGLCamera(),!function tryCreatePlot(Ee,ze,Be,$e,Qe){var at={canvas:$e,gl:Qe,container:Ee.container,axes:Ee.axesOptions,spikes:Ee.spikeOptions,pickRadius:10,snapToData:!0,autoScale:!0,autoBounds:!1,cameraObject:ze,pixelRatio:Be};if(Ee.staticMode){if(!(We||(Ue=document.createElement("canvas"),We=it({canvas:Ue,preserveDrawingBuffer:!0,premultipliedAlpha:!0,antialias:!0}))))throw new Error("error creating static canvas/context for image server");at.pixelRatio=Ee.pixelRatio,at.gl=We,at.canvas=Ue}var ct=0;try{Ee.glplot=rt(at)}catch(ze){ct++;try{Ee.glplot=rt(at)}catch(Ee){ct++}}return ct<2}(Ee,Ee.camera,Ee.pixelRatio,ze,Be))return Ut(Ee);var $e=Ee.graphDiv,Qe=$e.layout,makeUpdate=function(){var ze={};return Ee.isCameraChanged(Qe)&&(ze[Ee.id+".camera"]=Ee.getCamera()),Ee.isAspectChanged(Qe)&&(ze[Ee.id+".aspectratio"]=Ee.glplot.getAspectratio()),ze},relayoutCallback=function(Ee){if(!1!==Ee.fullSceneLayout.dragmode){var ze=makeUpdate();Ee.saveLayout(Qe),Ee.graphDiv.emit("plotly_relayout",ze)}};return Ee.glplot.canvas.addEventListener("mouseup",(function(){relayoutCallback(Ee)})),Ee.glplot.canvas.addEventListener("wheel",(function(ze){if($e._context._scrollZoom.gl3d){if(Ee.glplot.camera._ortho){var Be=ze.deltaX>ze.deltaY?1.1:1/1.1,Ue=Ee.glplot.getAspectratio();Ee.glplot.setAspectratio({x:Be*Ue.x,y:Be*Ue.y,z:Be*Ue.z})}relayoutCallback(Ee)}}),!!at&&{passive:!1}),Ee.glplot.canvas.addEventListener("mousemove",(function(){if(!1!==Ee.fullSceneLayout.dragmode&&0!==Ee.camera.mouseListener.buttons){var ze=makeUpdate();Ee.graphDiv.emit("plotly_relayouting",ze)}})),Ee.staticMode||Ee.glplot.canvas.addEventListener("webglcontextlost",(function(ze){$e&&$e.emit&&$e.emit("plotly_webglcontextlost",{event:ze,layer:Ee.id})}),!1),Ee.glplot.camera=Ee.camera,Ee.glplot.oncontextloss=function(){Ee.recoverContext()},Ee.glplot.onrender=render.bind(null,Ee),Ee.traces={},Ee.make4thDimension(),!0}function Scene(Ee,ze){var Be=document.createElement("div"),Ue=Ee.container;this.graphDiv=Ee.graphDiv;var We=document.createElementNS("http://www.w3.org/2000/svg","svg");We.style.position="absolute",We.style.top=We.style.left="0px",We.style.width=We.style.height="100%",We.style["z-index"]=20,We.style["pointer-events"]="none",Be.appendChild(We),this.svgContainer=We,Be.id=Ee.id,Be.style.position="absolute",Be.style.top=Be.style.left="0px",Be.style.width=Be.style.height="100%",Ue.appendChild(Be),this.fullLayout=ze,this.id=Ee.id||"scene",this.fullSceneLayout=ze[this.id],this.plotArgs=[[],{},{}],this.axesOptions=tr(ze,ze[this.id]),this.spikeOptions=rr(ze[this.id]),this.container=Be,this.staticMode=!!Ee.staticPlot,this.pixelRatio=this.pixelRatio||Ee.plotGlPixelRatio||2,this.dataScale=[1,1,1],this.contourLevels=[[],[],[]],this.convertAnnotations=ct.getComponentMethod("annotations3d","convert"),this.drawAnnotations=ct.getComponentMethod("annotations3d","draw"),initializeGLPlot(this)}var Lr=Scene.prototype;Lr.initializeGLCamera=function(){var Ee=this.fullSceneLayout.camera,ze="orthographic"===Ee.projection.type;this.camera=Qe(this.container,{center:[Ee.center.x,Ee.center.y,Ee.center.z],eye:[Ee.eye.x,Ee.eye.y,Ee.eye.z],up:[Ee.up.x,Ee.up.y,Ee.up.z],_ortho:ze,zoomMin:.01,zoomMax:100,mode:"orbit"})},Lr.recoverContext=function(){var Ee=this,ze=this.glplot.gl,Be=this.glplot.canvas;this.glplot.dispose(),requestAnimationFrame((function tryRecover(){ze.isContextLost()?requestAnimationFrame(tryRecover):initializeGLPlot(Ee,Be,ze)?Ee.plot.apply(Ee,Ee.plotArgs):ft.error("Catastrophic and unrecoverable WebGL error. Context lost.")}))};var Qr=["xaxis","yaxis","zaxis"];function computeTraceBounds(Ee,ze,Be){for(var Ue=Ee.fullSceneLayout,We=0;We<3;We++){var $e=Qr[We],Qe=$e.charAt(0),rt=Ue[$e],it=ze[Qe],at=ze[Qe+"calendar"],ct=ze["_"+Qe+"length"];if(ft.isArrayOrTypedArray(it))for(var xt,kt=0;kt<(ct||it.length);kt++)if(ft.isArrayOrTypedArray(it[kt]))for(var Lt=0;LtUt[1][$e])Ut[0][$e]=-1,Ut[1][$e]=1;else{var dn=Ut[1][$e]-Ut[0][$e];Ut[0][$e]-=dn/32,Ut[1][$e]+=dn/32}if("reversed"===rt.autorange){var vn=Ut[0][$e];Ut[0][$e]=Ut[1][$e],Ut[1][$e]=vn}}else{var yn=rt.range;Ut[0][$e]=rt.r2l(yn[0]),Ut[1][$e]=rt.r2l(yn[1])}Ut[0][$e]===Ut[1][$e]&&(Ut[0][$e]-=1,Ut[1][$e]+=1),er[$e]=Ut[1][$e]-Ut[0][$e],this.glplot.bounds[0][$e]=Ut[0][$e]*xt[$e],this.glplot.bounds[1][$e]=Ut[1][$e]*xt[$e]}var _n=[1,1,1];for($e=0;$e<3;++$e){var Mn=tr[it=(rt=at[Qr[$e]]).type];_n[$e]=Math.pow(Mn.acc,1/Mn.count)/xt[$e]}var Cn;if("auto"===at.aspectmode)Cn=Math.max.apply(null,_n)/Math.min.apply(null,_n)<=4?_n:[1,1,1];else if("cube"===at.aspectmode)Cn=[1,1,1];else if("data"===at.aspectmode)Cn=_n;else{if("manual"!==at.aspectmode)throw new Error("scene.js aspectRatio was not one of the enumerated types");var En=at.aspectratio;Cn=[En.x,En.y,En.z]}at.aspectratio.x=ct.aspectratio.x=Cn[0],at.aspectratio.y=ct.aspectratio.y=Cn[1],at.aspectratio.z=ct.aspectratio.z=Cn[2],this.glplot.setAspectratio(at.aspectratio),this.viewInitial.aspectratio||(this.viewInitial.aspectratio={x:at.aspectratio.x,y:at.aspectratio.y,z:at.aspectratio.z});var Pn=at.domain||null,In=ze._size||null;if(Pn&&In){var Bn=this.container.style;Bn.position="absolute",Bn.left=In.l+Pn.x[0]*In.w+"px",Bn.top=In.t+(1-Pn.y[1])*In.h+"px",Bn.width=In.w*(Pn.x[1]-Pn.x[0])+"px",Bn.height=In.h*(Pn.y[1]-Pn.y[0])+"px"}this.glplot.redraw()}},Lr.destroy=function(){this.glplot&&(this.camera.mouseListener.enabled=!1,this.container.removeEventListener("wheel",this.camera.wheelListener),this.camera=this.glplot.camera=null,this.glplot.dispose(),this.container.parentNode.removeChild(this.container),this.glplot=null)},Lr.getCamera=function(){return this.glplot.camera.view.recalcMatrix(this.camera.view.lastT()),function getLayoutCamera(Ee){return{up:{x:Ee.up[0],y:Ee.up[1],z:Ee.up[2]},center:{x:Ee.center[0],y:Ee.center[1],z:Ee.center[2]},eye:{x:Ee.eye[0],y:Ee.eye[1],z:Ee.eye[2]},projection:{type:!0===Ee._ortho?"orthographic":"perspective"}}}(this.glplot.camera)},Lr.setViewport=function(Ee){var ze=Ee.camera;this.glplot.camera.lookAt.apply(this,function getCameraArrays(Ee){return[[Ee.eye.x,Ee.eye.y,Ee.eye.z],[Ee.center.x,Ee.center.y,Ee.center.z],[Ee.up.x,Ee.up.y,Ee.up.z]]}(ze)),this.glplot.setAspectratio(Ee.aspectratio);var Be="orthographic"===ze.projection.type;if(Be!==this.glplot.camera._ortho){this.glplot.redraw();var Ue=this.glplot.clearColor;this.glplot.gl.clearColor(Ue[0],Ue[1],Ue[2],Ue[3]),this.glplot.gl.clear(this.glplot.gl.DEPTH_BUFFER_BIT|this.glplot.gl.COLOR_BUFFER_BIT),this.glplot.dispose(),initializeGLPlot(this),this.glplot.camera._ortho=Be}},Lr.isCameraChanged=function(Ee){var ze=this.getCamera(),Be=ft.nestedProperty(Ee,this.id+".camera").get();function same(Ee,ze,Be,Ue){var We=["up","center","eye"],$e=["x","y","z"];return ze[We[Be]]&&Ee[We[Be]][$e[Ue]]===ze[We[Be]][$e[Ue]]}var Ue=!1;if(void 0===Be)Ue=!0;else{for(var We=0;We<3;We++)for(var $e=0;$e<3;$e++)if(!same(ze,Be,We,$e)){Ue=!0;break}(!Be.projection||ze.projection&&ze.projection.type!==Be.projection.type)&&(Ue=!0)}return Ue},Lr.isAspectChanged=function(Ee){var ze=this.glplot.getAspectratio(),Be=ft.nestedProperty(Ee,this.id+".aspectratio").get();return void 0===Be||Be.x!==ze.x||Be.y!==ze.y||Be.z!==ze.z},Lr.saveLayout=function(Ee){var ze,Be,Ue,We,$e,Qe,rt=this.fullLayout,it=this.isCameraChanged(Ee),at=this.isAspectChanged(Ee),xt=it||at;if(xt){var kt={};if(it&&(ze=this.getCamera(),Ue=(Be=ft.nestedProperty(Ee,this.id+".camera")).get(),kt[this.id+".camera"]=Ue),at&&(We=this.glplot.getAspectratio(),Qe=($e=ft.nestedProperty(Ee,this.id+".aspectratio")).get(),kt[this.id+".aspectratio"]=Qe),ct.call("_storeDirectGUIEdit",Ee,rt._preGUI,kt),it)Be.set(ze),ft.nestedProperty(rt,this.id+".camera").set(ze);if(at)$e.set(We),ft.nestedProperty(rt,this.id+".aspectratio").set(We),this.glplot.redraw()}return xt},Lr.updateFx=function(Ee,ze){var Be=this.camera;if(Be)if("orbit"===Ee)Be.mode="orbit",Be.keyBindingMode="rotate";else if("turntable"===Ee){Be.up=[0,0,1],Be.mode="turntable",Be.keyBindingMode="rotate";var Ue=this.graphDiv,We=Ue._fullLayout,$e=this.fullSceneLayout.camera,Qe=$e.up.x,rt=$e.up.y,it=$e.up.z;if(it/Math.sqrt(Qe*Qe+rt*rt+it*it)<.999){var at=this.id+".camera.up",xt={x:0,y:0,z:1},kt={};kt[at]=xt;var Lt=Ue.layout;ct.call("_storeDirectGUIEdit",Lt,We._preGUI,kt),$e.up=xt,ft.nestedProperty(Lt,at).set(xt)}}else Be.keyBindingMode=Ee;this.fullSceneLayout.hovermode=ze},Lr.toImage=function(Ee){Ee||(Ee="png"),this.staticMode&&this.container.appendChild(Ue),this.glplot.redraw();var ze=this.glplot.gl,Be=ze.drawingBufferWidth,We=ze.drawingBufferHeight;ze.bindFramebuffer(ze.FRAMEBUFFER,null);var $e=new Uint8Array(Be*We*4);ze.readPixels(0,0,Be,We,ze.RGBA,ze.UNSIGNED_BYTE,$e);for(var Qe=0,rt=We-1;Qeze?1:Ee>=ze?0:NaN};var Ue;1===(Ue=ascending).length&&(Ue=function ascendingComparator(Ee){return function(ze,Be){return ascending(Ee(ze),Be)}}(Ue));var number=function(Ee){return null===Ee?NaN:+Ee},We=Array.prototype;We.slice,We.map,Math.sqrt(50),Math.sqrt(10),Math.sqrt(2);var src_max=function(Ee,ze){var Be,Ue,We=Ee.length,$e=-1;if(null==ze){for(;++$e=Be)for(Ue=Be;++$eUe&&(Ue=Be)}else for(;++$e=Be)for(Ue=Be;++$eUe&&(Ue=Be);return Ue},src_mean=function(Ee,ze){var Be,Ue=Ee.length,We=Ue,$e=-1,Qe=0;if(null==ze)for(;++$e=Be)for(Ue=Be;++$eBe&&(Ue=Be)}else for(;++$e=Be)for(Ue=Be;++$eBe&&(Ue=Be);return Ue},src_sum=function(Ee,ze){var Be,Ue=Ee.length,We=-1,$e=0;if(null==ze)for(;++WeWe&&(We=Ee[Qe]),Ee[Qe]<$e&&($e=Ee[Qe]);Be[Ue]=$e,Be[ze+Ue]=We}return Be}},be2a:function(Ee,ze,Be){"use strict";var Ue=Be("f4e9"),We=Be("94d5").hovertemplateAttrs,$e=Be("6b50"),Qe=Be("a876"),rt=Be("9092").extendFlat,it={x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},z:{valType:"data_array",editType:"calc+clearAxisTypes"},u:{valType:"data_array",editType:"calc"},v:{valType:"data_array",editType:"calc"},w:{valType:"data_array",editType:"calc"},starts:{x:{valType:"data_array",editType:"calc"},y:{valType:"data_array",editType:"calc"},z:{valType:"data_array",editType:"calc"},editType:"calc"},maxdisplayed:{valType:"integer",min:0,dflt:1e3,editType:"calc"},sizeref:{valType:"number",editType:"calc",min:0,dflt:1},text:{valType:"string",dflt:"",editType:"calc"},hovertext:{valType:"string",dflt:"",editType:"calc"},hovertemplate:We({editType:"calc"},{keys:["tubex","tubey","tubez","tubeu","tubev","tubew","norm","divergence"]}),showlegend:rt({},Qe.showlegend,{dflt:!1})};rt(it,Ue("",{colorAttr:"u/v/w norm",showScaleDflt:!0,editTypeOverride:"calc"}));["opacity","lightposition","lighting"].forEach((function(Ee){it[Ee]=$e[Ee]})),it.hoverinfo=rt({},Qe.hoverinfo,{editType:"calc",flags:["x","y","z","u","v","w","norm","divergence","text","name"],dflt:"x+y+z+norm+text+name"}),it.transforms=void 0,Ee.exports=it},be64:function(Ee,ze,Be){"use strict";var Ue=Be("6e58"),We=Be("fc26"),$e=Be("371e"),Qe=Math.PI/180,rt=180/Math.PI,it={cursor:"pointer"},at={cursor:"auto"};function initZoom(Ee,ze){return Ue.behavior.zoom().translate(ze.translate()).scale(ze.scale())}function sync(Ee,ze,Be){var Ue=Ee.id,Qe=Ee.graphDiv,rt=Qe.layout,it=rt[Ue],at=Qe._fullLayout,ct=at[Ue],ft={},xt={};function set(Ee,ze){ft[Ue+"."+Ee]=We.nestedProperty(it,Ee).get(),$e.call("_storeDirectGUIEdit",rt,at._preGUI,ft);var Be=We.nestedProperty(ct,Ee);Be.get()!==ze&&(Be.set(ze),We.nestedProperty(it,Ee).set(ze),xt[Ue+"."+Ee]=ze)}Be(set),set("projection.scale",ze.scale()/Ee.fitScale),set("fitbounds",!1),Qe.emit("plotly_relayout",xt)}function zoomScoped(Ee,ze){var Be=initZoom(0,ze);function syncCb(Be){var Ue=ze.invert(Ee.midPt);Be("center.lon",Ue[0]),Be("center.lat",Ue[1])}return Be.on("zoomstart",(function handleZoomstart(){Ue.select(this).style(it)})).on("zoom",(function handleZoom(){ze.scale(Ue.event.scale).translate(Ue.event.translate),Ee.render();var Be=ze.invert(Ee.midPt);Ee.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":ze.scale()/Ee.fitScale,"geo.center.lon":Be[0],"geo.center.lat":Be[1]})})).on("zoomend",(function handleZoomend(){Ue.select(this).style(at),sync(Ee,ze,syncCb)})),Be}function zoomNonClipped(Ee,ze){var Be,We,$e,Qe,rt,ct,ft,xt,kt,Lt=initZoom(0,ze);function position(Ee){return ze.invert(Ee)}function syncCb(Be){var Ue=ze.rotate(),We=ze.invert(Ee.midPt);Be("projection.rotation.lon",-Ue[0]),Be("center.lon",We[0]),Be("center.lat",We[1])}return Lt.on("zoomstart",(function handleZoomstart(){Ue.select(this).style(it),Be=Ue.mouse(this),We=ze.rotate(),$e=ze.translate(),Qe=We,rt=position(Be)})).on("zoom",(function handleZoom(){if(ct=Ue.mouse(this),function outside(Ee){var Be=position(Ee);if(!Be)return!0;var Ue=ze(Be);return Math.abs(Ue[0]-Ee[0])>2||Math.abs(Ue[1]-Ee[1])>2}(Be))return Lt.scale(ze.scale()),void Lt.translate(ze.translate());ze.scale(Ue.event.scale),ze.translate([$e[0],Ue.event.translate[1]]),rt?position(ct)&&(xt=position(ct),ft=[Qe[0]+(xt[0]-rt[0]),We[1],We[2]],ze.rotate(ft),Qe=ft):rt=position(Be=ct),kt=!0,Ee.render();var it=ze.rotate(),at=ze.invert(Ee.midPt);Ee.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":ze.scale()/Ee.fitScale,"geo.center.lon":at[0],"geo.center.lat":at[1],"geo.projection.rotation.lon":-it[0]})})).on("zoomend",(function handleZoomend(){Ue.select(this).style(at),kt&&sync(Ee,ze,syncCb)})),Lt}function zoomClipped(Ee,ze){var Be,We={r:ze.rotate(),k:ze.scale()},$e=initZoom(0,ze),Qe=function d3eventDispatch(Ee){var ze=0,Be=arguments.length,We=[];for(;++zeLt?($e=(ft>0?90:-90)-kt,We=0):($e=Math.asin(ft/Lt)*rt-kt,We=Math.sqrt(Lt*Lt-ft*ft));var Ut=180-$e-2*kt,er=(Math.atan2(xt,ct)-Math.atan2(at,We))*rt,tr=(Math.atan2(xt,ct)-Math.atan2(at,-We))*rt;return angleDistance(Be[0],Be[1],$e,er)<=angleDistance(Be[0],Be[1],Ut,tr)?[$e,er,Be[2]]:[Ut,tr,Be[2]]}function angleDistance(Ee,ze,Be,Ue){var We=angleMod(Be-Ee),$e=angleMod(Ue-ze);return Math.sqrt(We*We+$e*$e)}function angleMod(Ee){return(Ee%360+540)%360-180}function rotateCartesian(Ee,ze,Be){var Ue=Be*Qe,We=Ee.slice(),$e=0===ze?1:0,rt=2===ze?1:2,it=Math.cos(Ue),at=Math.sin(Ue);return We[$e]=Ee[$e]*it-Ee[rt]*at,We[rt]=Ee[rt]*it+Ee[$e]*at,We}function eulerFromQuaternion(Ee){return[Math.atan2(2*(Ee[0]*Ee[1]+Ee[2]*Ee[3]),1-2*(Ee[1]*Ee[1]+Ee[2]*Ee[2]))*rt,Math.asin(Math.max(-1,Math.min(1,2*(Ee[0]*Ee[2]-Ee[3]*Ee[1]))))*rt,Math.atan2(2*(Ee[0]*Ee[3]+Ee[1]*Ee[2]),1-2*(Ee[2]*Ee[2]+Ee[3]*Ee[3]))*rt]}function dot(Ee,ze){for(var Be=0,Ue=0,We=Ee.length;Ue=this.toJD(-1===ze?1:ze+1,7,1);)ze++;for(var Be=Eethis.toJD(ze,Be,this.daysInMonth(ze,Be));)Be++;var Ue=Ee-this.toJD(ze,Be,1)+1;return this.newDate(ze,Be,Ue)}}),Ue.calendars.hebrew=HebrewCalendar},bf14:function(Ee,ze,Be){"use strict";Ee.exports={moduleType:"trace",name:"cone",basePlotModule:Be("134c"),categories:["gl3d","showLegend"],attributes:Be("24fd"),supplyDefaults:Be("e00d"),colorbar:{min:"cmin",max:"cmax"},calc:Be("e2d7"),plot:Be("a5fa"),eventData:function(Ee,ze){return Ee.norm=ze.traceCoordinate[6],Ee},meta:{}}},bf38:function(Ee,ze,Be){"use strict";var Ue=Be("d115"),We=Be("d798"),$e=Be("9092").extendFlat,Qe=Be("cb34").overrideAll;Ee.exports=Qe({visible:We.visible,showspikes:{valType:"boolean",dflt:!0},spikesides:{valType:"boolean",dflt:!0},spikethickness:{valType:"number",min:0,dflt:2},spikecolor:{valType:"color",dflt:Ue.defaultLine},showbackground:{valType:"boolean",dflt:!1},backgroundcolor:{valType:"color",dflt:"rgba(204, 204, 204, 0.5)"},showaxeslabels:{valType:"boolean",dflt:!0},color:We.color,categoryorder:We.categoryorder,categoryarray:We.categoryarray,title:{text:We.title.text,font:We.title.font},type:$e({},We.type,{values:["-","linear","log","date","category"]}),autorange:We.autorange,rangemode:We.rangemode,range:$e({},We.range,{items:[{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}}],anim:!1}),tickmode:We.tickmode,nticks:We.nticks,tick0:We.tick0,dtick:We.dtick,tickvals:We.tickvals,ticktext:We.ticktext,ticks:We.ticks,mirror:We.mirror,ticklen:We.ticklen,tickwidth:We.tickwidth,tickcolor:We.tickcolor,showticklabels:We.showticklabels,tickfont:We.tickfont,tickangle:We.tickangle,tickprefix:We.tickprefix,showtickprefix:We.showtickprefix,ticksuffix:We.ticksuffix,showticksuffix:We.showticksuffix,showexponent:We.showexponent,exponentformat:We.exponentformat,separatethousands:We.separatethousands,tickformat:We.tickformat,tickformatstops:We.tickformatstops,hoverformat:We.hoverformat,showline:We.showline,linecolor:We.linecolor,linewidth:We.linewidth,showgrid:We.showgrid,gridcolor:$e({},We.gridcolor,{dflt:"rgb(204, 204, 204)"}),gridwidth:We.gridwidth,zeroline:We.zeroline,zerolinecolor:We.zerolinecolor,zerolinewidth:We.zerolinewidth,_deprecated:{title:We._deprecated.title,titlefont:We._deprecated.titlefont}},"plot","from-root")},bf66:function(Ee,ze){Ee.exports=function squaredDistance(Ee,ze){var Be=ze[0]-Ee[0],Ue=ze[1]-Ee[1],We=ze[2]-Ee[2],$e=ze[3]-Ee[3];return Be*Be+Ue*Ue+We*We+$e*$e}},bfb6:function(Ee,ze,Be){"use strict";var Ue=Be("6e58"),We=Be("fc26"),$e=Be("83d1"),Qe=Be("0379"),rt=Be("c8b8"),it=Be("da8c").styleOne,at=Be("23cc"),ct=Be("fb56"),ft=Be("6962"),xt=Be("e17d").formatSliceLabel;Ee.exports=function drawDescendants(Ee,ze,Be,kt,Lt){var Ut=Lt.width,er=Lt.height,tr=Lt.viewX,rr=Lt.viewY,ar=Lt.pathSlice,Lr=Lt.toMoveInsideSlice,Qr=Lt.strTransform,on=Lt.hasTransition,sn=Lt.handleSlicesExit,cn=Lt.makeUpdateSliceInterpolator,un=Lt.makeUpdateTextInterpolator,hn=Lt.prevEntry,dn=Ee._fullLayout,vn=ze[0].trace,yn=-1!==vn.textposition.indexOf("left"),_n=-1!==vn.textposition.indexOf("right"),Mn=-1!==vn.textposition.indexOf("bottom"),Cn=!Mn&&!vn.marker.pad.t||Mn&&!vn.marker.pad.b,En=rt(Be,[Ut,er],{packing:vn.tiling.packing,squarifyratio:vn.tiling.squarifyratio,flipX:vn.tiling.flip.indexOf("x")>-1,flipY:vn.tiling.flip.indexOf("y")>-1,pad:{inner:vn.tiling.pad,top:vn.marker.pad.t,left:vn.marker.pad.l,right:vn.marker.pad.r,bottom:vn.marker.pad.b}}).descendants(),Pn=1/0,In=-1/0;En.forEach((function(Ee){var ze=Ee.depth;ze>=vn._maxDepth?(Ee.x0=Ee.x1=(Ee.x0+Ee.x1)/2,Ee.y0=Ee.y1=(Ee.y0+Ee.y1)/2):(Pn=Math.min(Pn,ze),In=Math.max(In,ze))})),kt=kt.data(En,ct.getPtId),vn._maxVisibleLayers=isFinite(In)?In-Pn+1:0,kt.enter().append("g").classed("slice",!0),sn(kt,!1,{},[Ut,er],ar),kt.order();var Bn=null;if(on&&hn){var Hn=ct.getPtId(hn);kt.each((function(Ee){null===Bn&&ct.getPtId(Ee)===Hn&&(Bn={x0:Ee.x0,x1:Ee.x1,y0:Ee.y0,y1:Ee.y1})}))}var getRefRect=function(){return Bn||{x0:0,x1:Ut,y0:0,y1:er}},Kn=kt;return on&&(Kn=Kn.transition().each("end",(function(){var ze=Ue.select(this);ct.setSliceCursor(ze,Ee,{hideOnRoot:!0,hideOnLeaves:!1,isTransitioning:!1})}))),Kn.each((function(rt){var kt=ct.isHeader(rt,vn);rt._hoverX=tr(rt.x1-vn.marker.pad.r),rt._hoverY=rr(Mn?rt.y1-vn.marker.pad.b/2:rt.y0+vn.marker.pad.t/2);var Lt=Ue.select(this),sn=We.ensureSingle(Lt,"path","surface",(function(Ee){Ee.style("pointer-events","all")}));on?sn.transition().attrTween("d",(function(Ee){var ze=cn(Ee,!1,getRefRect(),[Ut,er]);return function(Ee){return ar(ze(Ee))}})):sn.attr("d",ar),Lt.call(ft,Be,Ee,ze,{styleOne:it,eventDataKeys:at.eventDataKeys,transitionTime:at.CLICK_TRANSITION_TIME,transitionEasing:at.CLICK_TRANSITION_EASING}).call(ct.setSliceCursor,Ee,{isTransitioning:Ee._transitioning}),sn.call(it,rt,vn,{hovered:!1}),rt.x0===rt.x1||rt.y0===rt.y1?rt._text="":rt._text=kt?Cn?"":ct.getPtLabel(rt)||"":xt(rt,Be,vn,ze,dn)||"";var hn=We.ensureSingle(Lt,"g","slicetext"),En=We.ensureSingle(hn,"text","",(function(Ee){Ee.attr("data-notex",1)})),Pn=We.ensureUniformFontSize(Ee,ct.determineTextFont(vn,rt,dn.font));En.text(rt._text||" ").classed("slicetext",!0).attr("text-anchor",_n?"end":yn||kt?"start":"middle").call($e.font,Pn).call(Qe.convertToTspans,Ee),rt.textBB=$e.bBox(En.node()),rt.transform=Lr(rt,{fontSize:Pn.size,isHeader:kt}),rt.transform.fontSize=Pn.size,on?En.transition().attrTween("transform",(function(Ee){var ze=un(Ee,!1,getRefRect(),[Ut,er]);return function(Ee){return Qr(ze(Ee))}})):En.attr("transform",Qr(rt))})),Bn}},c005:function(Ee,ze,Be){"use strict";Ee.exports={percent:function(Ee,ze){for(var Be=Ee.length,Ue=100/ze,We=0;We=at?(cn=1,rr=at+2*xt+Lt):rr=xt*(cn=-xt/at)+Lt):(cn=0,kt>=0?(un=0,rr=Lt):-kt>=ft?(un=1,rr=ft+2*kt+Lt):rr=kt*(un=-kt/ft)+Lt);else if(un<0)un=0,xt>=0?(cn=0,rr=Lt):-xt>=at?(cn=1,rr=at+2*xt+Lt):rr=xt*(cn=-xt/at)+Lt;else{var hn=1/sn;rr=(cn*=hn)*(at*cn+ct*(un*=hn)+2*xt)+un*(ct*cn+ft*un+2*kt)+Lt}else cn<0?(Lr=ft+kt)>(ar=ct+xt)?(Qr=Lr-ar)>=(on=at-2*ct+ft)?(cn=1,un=0,rr=at+2*xt+Lt):rr=(cn=Qr/on)*(at*cn+ct*(un=1-cn)+2*xt)+un*(ct*cn+ft*un+2*kt)+Lt:(cn=0,Lr<=0?(un=1,rr=ft+2*kt+Lt):kt>=0?(un=0,rr=Lt):rr=kt*(un=-kt/ft)+Lt):un<0?(Lr=at+xt)>(ar=ct+kt)?(Qr=Lr-ar)>=(on=at-2*ct+ft)?(un=1,cn=0,rr=ft+2*kt+Lt):rr=(cn=1-(un=Qr/on))*(at*cn+ct*un+2*xt)+un*(ct*cn+ft*un+2*kt)+Lt:(un=0,Lr<=0?(cn=1,rr=at+2*xt+Lt):xt>=0?(cn=0,rr=Lt):rr=xt*(cn=-xt/at)+Lt):(Qr=ft+kt-ct-xt)<=0?(cn=0,un=1,rr=ft+2*kt+Lt):Qr>=(on=at-2*ct+ft)?(cn=1,un=0,rr=at+2*xt+Lt):rr=(cn=Qr/on)*(at*cn+ct*(un=1-cn)+2*xt)+un*(ct*cn+ft*un+2*kt)+Lt;var dn=1-cn-un;for(it=0;it"),name:ct.hovertemplate||-1!==ft.indexOf("name")?ct.name:void 0,idealAlign:Ee.pxmid[0]<0?"left":"right",color:kt.castOption(Lr.bgcolor,Ee.pts)||Ee.color,borderColor:kt.castOption(Lr.bordercolor,Ee.pts),fontFamily:kt.castOption(Qr.family,Ee.pts),fontSize:kt.castOption(Qr.size,Ee.pts),fontColor:kt.castOption(Qr.color,Ee.pts),nameLength:kt.castOption(Lr.namelength,Ee.pts),textAlign:kt.castOption(Lr.align,Ee.pts),hovertemplate:kt.castOption(ct.hovertemplate,Ee.pts),hovertemplateLabels:Ee,eventData:[Lt(Ee,ct)]},{container:Be._hoverlayer.node(),outerContainer:Be._paper.node(),gd:ze}),Qe._hasHoverLabel=!0}Qe._hasHoverEvent=!0,ze.emit("plotly_hover",{points:[Lt(Ee,ct)],event:Ue.event})}})),Ee.on("mouseout",(function(Ee){var Be=ze._fullLayout,We=ze._fullData[Qe.index],rt=Ue.select(this).datum();Qe._hasHoverEvent&&(Ee.originalEvent=Ue.event,ze.emit("plotly_unhover",{points:[Lt(rt,We)],event:Ue.event}),Qe._hasHoverEvent=!1),Qe._hasHoverLabel&&($e.loneUnhover(Be._hoverlayer.node()),Qe._hasHoverLabel=!1)})),Ee.on("click",(function(Ee){var Be=ze._fullLayout,We=ze._fullData[Qe.index];ze._dragging||!1===Be.hovermode||(ze._hoverdata=[Lt(Ee,We)],$e.click(ze,Ue.event))}))}function determineInsideTextFont(Ee,ze,Be){var Ue=kt.castOption(Ee.insidetextfont.color,ze.pts);!Ue&&Ee._input.textfont&&(Ue=kt.castOption(Ee._input.textfont.color,ze.pts));var We=kt.castOption(Ee.insidetextfont.family,ze.pts)||kt.castOption(Ee.textfont.family,ze.pts)||Be.family,$e=kt.castOption(Ee.insidetextfont.size,ze.pts)||kt.castOption(Ee.textfont.size,ze.pts)||Be.size;return{color:Ue||Qe.contrast(ze.color),family:We,size:$e}}function prerenderTitles(Ee,ze){for(var Be,Ue,We=0;Weze&&ze>Ue||Be=-4;tr-=2)considerCrossing(Math.PI*tr,"tan");for(tr=4;tr>=-4;tr-=2)considerCrossing(Math.PI*(tr+1),"tan")}if(ft||kt){for(tr=4;tr>=-4;tr-=2)considerCrossing(Math.PI*(tr+1.5),"rad");for(tr=4;tr>=-4;tr-=2)considerCrossing(Math.PI*(tr+.5),"rad")}}if(Ut||Lt||ft){if((Ue={scale:it*at*2/We,rCenter:1-it,rotate:0}).textPosAngle=(ze.startangle+ze.stopangle)/2,Ue.scale>=1)return Ue;er.push(Ue)}(Lt||kt)&&((Ue=calcRadTransform(Ee,at,rt,$e,Qe)).textPosAngle=(ze.startangle+ze.stopangle)/2,er.push(Ue)),(Lt||xt)&&((Ue=calcTanTransform(Ee,at,rt,$e,Qe)).textPosAngle=(ze.startangle+ze.stopangle)/2,er.push(Ue));for(var rr=0,ar=0,Lr=0;Lr=1)break}return er[rr]}function calcRadTransform(Ee,ze,Be,Ue,We){var $e=Ee.width/Ee.height,Qe=calcMaxHalfSize($e,Ue,ze,Be);return{scale:2*Qe/Ee.height,rCenter:calcRCenter($e,Qe/ze),rotate:calcRotate(We)}}function calcTanTransform(Ee,ze,Be,Ue,We){var $e=Ee.height/Ee.width,Qe=calcMaxHalfSize($e,Ue,ze,Be);return{scale:2*Qe/Ee.width,rCenter:calcRCenter($e,Qe/ze),rotate:calcRotate(We+Math.PI/2)}}function calcRCenter(Ee,ze){return Math.cos(ze)-Ee*ze}function calcRotate(Ee){return(180/Math.PI*Ee+720)%180-90}function calcMaxHalfSize(Ee,ze,Be,Ue){var We=Ee+1/(2*Math.tan(ze));return Be*Math.min(1/(Math.sqrt(We*We+.5)+We),Ue/(Math.sqrt(Ee*Ee+Ue/2)+Ee))}function getInscribedRadiusFraction(Ee,ze){return Ee.v!==ze.vTotal||ze.trace.hole?Math.min(1/(1+1/Math.sin(Ee.halfangle)),Ee.ring/2):1}function transformOutsideText(Ee,ze){var Be=ze.pxmid[0],Ue=ze.pxmid[1],We=Ee.width/2,$e=Ee.height/2;return Be<0&&(We*=-1),Ue<0&&($e*=-1),{scale:1,rCenter:1,rotate:0,x:We+Math.abs($e)*(We>0?1:-1)/2,y:$e/(1+Be*Be/(Ue*Ue)),outside:!0}}function positionTitleOutside(Ee,ze){var Be,Ue,We,$e=Ee.trace,Qe={x:Ee.cx,y:Ee.cy},rt={tx:0,ty:0};rt.ty+=$e.title.font.size,We=getMaxPull($e),-1!==$e.title.position.indexOf("top")?(Qe.y-=(1+We)*Ee.r,rt.ty-=Ee.titleBox.height):-1!==$e.title.position.indexOf("bottom")&&(Qe.y+=(1+We)*Ee.r);var it=function applyAspectRatio(Ee,ze){return Ee/(void 0===ze?1:ze)}(Ee.r,Ee.trace.aspectratio),at=ze.w*($e.domain.x[1]-$e.domain.x[0])/2;return-1!==$e.title.position.indexOf("left")?(at+=it,Qe.x-=(1+We)*it,rt.tx+=Ee.titleBox.width/2):-1!==$e.title.position.indexOf("center")?at*=2:-1!==$e.title.position.indexOf("right")&&(at+=it,Qe.x+=(1+We)*it,rt.tx-=Ee.titleBox.width/2),Be=at/Ee.titleBox.width,Ue=getTitleSpace(Ee,ze)/Ee.titleBox.height,{x:Qe.x,y:Qe.y,scale:Math.min(Be,Ue),tx:rt.tx,ty:rt.ty}}function getTitleSpace(Ee,ze){var Be=Ee.trace,Ue=ze.h*(Be.domain.y[1]-Be.domain.y[0]);return Math.min(Ee.titleBox.height,Ue/2)}function getMaxPull(Ee){var ze,Be=Ee.pull;if(!Be)return 0;if(Array.isArray(Be))for(Be=0,ze=0;zeBe&&(Be=Ee.pull[ze]);return Be}function layoutAreas(Ee,ze){for(var Be=[],Ue=0;Ue1?(at=Be.r,ct=at/We.aspectratio):(ct=Be.r,at=ct*We.aspectratio),at*=(1+We.baseratio)/2,it=at*ct}Qe=Math.min(Qe,it/Be.vTotal)}for(Ue=0;Ue")}if($e){var rr=it.castOption(We,ze.i,"texttemplate");if(rr){var ar=function makeTemplateVariables(Ee){return{label:Ee.label,value:Ee.v,valueLabel:kt.formatPieValue(Ee.v,Ue.separators),percent:Ee.v/Be.vTotal,percentLabel:kt.formatPiePercent(Ee.v/Be.vTotal,Ue.separators),color:Ee.color,text:Ee.text,customdata:it.castOption(We,Ee.i,"customdata")}}(ze),Lr=kt.getFirstFilled(We.text,ze.pts);(Ut(Lr)||""===Lr)&&(ar.text=Lr),ze.text=it.texttemplateString(rr,ar,Ee._fullLayout._d3locale,ar,We._meta||{})}else ze.text=""}}function computeTransform(Ee,ze){var Be=Ee.rotate,Ue=Ee.scale;Ue>1&&(Ue=1);var We=Be*Math.PI/180,$e=Math.cos(We),Qe=Math.sin(We),rt=(ze.left+ze.right)/2,it=(ze.top+ze.bottom)/2;Ee.textX=rt*$e-it*Qe,Ee.textY=rt*Qe+it*$e,Ee.noCenter=!0}Ee.exports={plot:function plot(Ee,ze){var Be=Ee._fullLayout,$e=Be._size;xt("pie",Be),prerenderTitles(ze,Ee),layoutAreas(ze,$e);var ct=it.makeTraceGroups(Be._pielayer,ze,"trace").each((function(ze){var ct=Ue.select(this),xt=ze[0],Lt=xt.trace;!function setCoords(Ee){var ze,Be,Ue,We=Ee[0],$e=We.r,Qe=We.trace,rt=Qe.rotation*Math.PI/180,it=2*Math.PI/We.vTotal,at="px0",ct="px1";if("counterclockwise"===Qe.direction){for(ze=0;zeWe.vTotal/2?1:0,Be.halfangle=Math.PI*Math.min(Be.v/We.vTotal,.5),Be.ring=1-Qe.hole,Be.rInscribed=getInscribedRadiusFraction(Be,We))}(ze),ct.attr("stroke-linejoin","round"),ct.each((function(){var Ut=Ue.select(this).selectAll("g.slice").data(ze);Ut.enter().append("g").classed("slice",!0),Ut.exit().remove();var er=[[[],[]],[[],[]]],tr=!1;Ut.each((function(We,$e){if(We.hidden)Ue.select(this).selectAll("path,g").remove();else{We.pointNumber=We.i,We.curveNumber=Lt.index,er[We.pxmid[1]<0?0:1][We.pxmid[0]<0?0:1].push(We);var Qe=xt.cx,ct=xt.cy,Ut=Ue.select(this),rr=Ut.selectAll("path.surface").data([We]);if(rr.enter().append("path").classed("surface",!0).style({"pointer-events":"all"}),Ut.call(attachFxHandlers,Ee,ze),Lt.pull){var ar=+kt.castOption(Lt.pull,We.pts)||0;ar>0&&(Qe+=ar*We.pxmid[0],ct+=ar*We.pxmid[1])}We.cxFinal=Qe,We.cyFinal=ct;var Lr=Lt.hole;if(We.v===xt.vTotal){var Qr="M"+(Qe+We.px0[0])+","+(ct+We.px0[1])+arc(We.px0,We.pxmid,!0,1)+arc(We.pxmid,We.px0,!0,1)+"Z";Lr?rr.attr("d","M"+(Qe+Lr*We.px0[0])+","+(ct+Lr*We.px0[1])+arc(We.px0,We.pxmid,!1,Lr)+arc(We.pxmid,We.px0,!1,Lr)+"Z"+Qr):rr.attr("d",Qr)}else{var on=arc(We.px0,We.px1,!0,1);if(Lr){var sn=1-Lr;rr.attr("d","M"+(Qe+Lr*We.px1[0])+","+(ct+Lr*We.px1[1])+arc(We.px1,We.px0,!1,Lr)+"l"+sn*We.px0[0]+","+sn*We.px0[1]+on+"Z")}else rr.attr("d","M"+Qe+","+ct+"l"+We.px0[0]+","+We.px0[1]+on+"Z")}formatSliceLabel(Ee,We,xt);var cn=kt.castOption(Lt.textposition,We.pts),un=Ut.selectAll("g.slicetext").data(We.text&&"none"!==cn?[0]:[]);un.enter().append("g").classed("slicetext",!0),un.exit().remove(),un.each((function(){var Ut=it.ensureSingle(Ue.select(this),"text","",(function(Ee){Ee.attr("data-notex",1)})),er=it.ensureUniformFontSize(Ee,"outside"===cn?function determineOutsideTextFont(Ee,ze,Be){var Ue=kt.castOption(Ee.outsidetextfont.color,ze.pts)||kt.castOption(Ee.textfont.color,ze.pts)||Be.color,We=kt.castOption(Ee.outsidetextfont.family,ze.pts)||kt.castOption(Ee.textfont.family,ze.pts)||Be.family,$e=kt.castOption(Ee.outsidetextfont.size,ze.pts)||kt.castOption(Ee.textfont.size,ze.pts)||Be.size;return{color:Ue,family:We,size:$e}}(Lt,We,Be.font):determineInsideTextFont(Lt,We,Be.font));Ut.text(We.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(rt.font,er).call(at.convertToTspans,Ee);var rr,ar=rt.bBox(Ut.node());if("outside"===cn)rr=transformOutsideText(ar,We);else if(rr=transformInsideText(ar,We,xt),"auto"===cn&&rr.scale<1){var Lr=it.ensureUniformFontSize(Ee,Lt.outsidetextfont);Ut.call(rt.font,Lr),rr=transformOutsideText(ar=rt.bBox(Ut.node()),We)}var Qr=rr.textPosAngle,on=void 0===Qr?We.pxmid:getCoords(xt.r,Qr);if(rr.targetX=Qe+on[0]*rr.rCenter+(rr.x||0),rr.targetY=ct+on[1]*rr.rCenter+(rr.y||0),computeTransform(rr,ar),rr.outside){var sn=rr.targetY;We.yLabelMin=sn-ar.height/2,We.yLabelMid=sn,We.yLabelMax=sn+ar.height/2,We.labelExtraX=0,We.labelExtraY=0,tr=!0}rr.fontSize=er.size,ft(Lt.type,rr,Be),ze[$e].transform=rr,Ut.attr("transform",it.getTextTransform(rr))}))}function arc(Ee,ze,Be,Ue){var $e=Ue*(ze[0]-Ee[0]),Qe=Ue*(ze[1]-Ee[1]);return"a"+Ue*xt.r+","+Ue*xt.r+" 0 "+We.largeArc+(Be?" 1 ":" 0 ")+$e+","+Qe}}));var rr=Ue.select(this).selectAll("g.titletext").data(Lt.title.text?[0]:[]);if(rr.enter().append("g").classed("titletext",!0),rr.exit().remove(),rr.each((function(){var ze,Be=it.ensureSingle(Ue.select(this),"text","",(function(Ee){Ee.attr("data-notex",1)})),We=Lt.title.text;Lt._meta&&(We=it.templateString(We,Lt._meta)),Be.text(We).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(rt.font,Lt.title.font).call(at.convertToTspans,Ee),ze="middle center"===Lt.title.position?function positionTitleInside(Ee){var ze=Math.sqrt(Ee.titleBox.width*Ee.titleBox.width+Ee.titleBox.height*Ee.titleBox.height);return{x:Ee.cx,y:Ee.cy,scale:Ee.trace.hole*Ee.r*2/ze,tx:0,ty:-Ee.titleBox.height/2+Ee.trace.title.font.size}}(xt):positionTitleOutside(xt,$e),Be.attr("transform","translate("+ze.x+","+ze.y+")"+(ze.scale<1?"scale("+ze.scale+")":"")+"translate("+ze.tx+","+ze.ty+")")})),tr&&function scootLabels(Ee,ze){var Be,Ue,We,$e,Qe,rt,it,at,ct,ft,xt,Lt,Ut;function topFirst(Ee,ze){return Ee.pxmid[1]-ze.pxmid[1]}function bottomFirst(Ee,ze){return ze.pxmid[1]-Ee.pxmid[1]}function scootOneLabel(Ee,Be){Be||(Be={});var We,at,ct,xt,Lt=Be.labelExtraY+(Ue?Be.yLabelMax:Be.yLabelMin),Ut=Ue?Ee.yLabelMin:Ee.yLabelMax,er=Ue?Ee.yLabelMax:Ee.yLabelMin,tr=Ee.cyFinal+Qe(Ee.px0[1],Ee.px1[1]),rr=Lt-Ut;if(rr*it>0&&(Ee.labelExtraY=rr),Array.isArray(ze.pull))for(at=0;at=(kt.castOption(ze.pull,ct.pts)||0)||((Ee.pxmid[1]-ct.pxmid[1])*it>0?(rr=ct.cyFinal+Qe(ct.px0[1],ct.px1[1])-Ut-Ee.labelExtraY)*it>0&&(Ee.labelExtraY+=rr):(er+Ee.labelExtraY-tr)*it>0&&(We=3*rt*Math.abs(at-ft.indexOf(Ee)),(xt=ct.cxFinal+$e(ct.px0[0],ct.px1[0])+We-(Ee.cxFinal+Ee.pxmid[0])-Ee.labelExtraX)*rt>0&&(Ee.labelExtraX+=xt)))}for(Ue=0;Ue<2;Ue++)for(We=Ue?topFirst:bottomFirst,Qe=Ue?Math.max:Math.min,it=Ue?1:-1,Be=0;Be<2;Be++){for($e=Be?Math.max:Math.min,rt=Be?1:-1,(at=Ee[Ue][Be]).sort(We),ct=Ee[1-Ue][Be],ft=ct.concat(at),Lt=[],xt=0;xtMath.abs(ft)?rt+="l"+ft*Ee.pxmid[0]/Ee.pxmid[1]+","+ft+"H"+($e+Ee.labelExtraX+at):rt+="l"+Ee.labelExtraX+","+ct+"v"+(ft-ct)+"h"+at}else rt+="V"+(Ee.yLabelMid+Ee.labelExtraY)+"h"+at;it.ensureSingle(Be,"path","textline").call(Qe.stroke,ze.outsidetextfont.color).attr({"stroke-width":Math.min(2,ze.outsidetextfont.size/8),d:rt,fill:"none"})}else Be.select("path.textline").remove()}))}(Ut,Lt),tr&&Lt.automargin){var ar=rt.bBox(ct.node()),Lr=Lt.domain,Qr=$e.w*(Lr.x[1]-Lr.x[0]),on=$e.h*(Lr.y[1]-Lr.y[0]),sn=(.5*Qr-xt.r)/$e.w,cn=(.5*on-xt.r)/$e.h;We.autoMargin(Ee,"pie."+Lt.uid+".automargin",{xl:Lr.x[0]-sn,xr:Lr.x[1]+sn,yb:Lr.y[0]-cn,yt:Lr.y[1]+cn,l:Math.max(xt.cx-xt.r-ar.left,0),r:Math.max(ar.right-(xt.cx+xt.r),0),b:Math.max(ar.bottom-(xt.cy+xt.r),0),t:Math.max(xt.cy-xt.r-ar.top,0),pad:5})}}))}));setTimeout((function(){ct.selectAll("tspan").each((function(){var Ee=Ue.select(this);Ee.attr("dy")&&Ee.attr("dy",Ee.attr("dy"))}))}),0)},formatSliceLabel:formatSliceLabel,transformInsideText:transformInsideText,determineInsideTextFont:determineInsideTextFont,positionTitleOutside:positionTitleOutside,prerenderTitles:prerenderTitles,layoutAreas:layoutAreas,attachFxHandlers:attachFxHandlers,computeTransform:computeTransform}},c107:function(Ee,ze,Be){var Ue=Be("0230"),We=Be("320c");function NepaliCalendar(Ee){this.local=this.regionalOptions[Ee||""]||this.regionalOptions[""]}NepaliCalendar.prototype=new Ue.baseCalendar,We(NepaliCalendar.prototype,{name:"Nepali",jdEpoch:1700709.5,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{"":{name:"Nepali",epochs:["BBS","ABS"],monthNames:["Baisakh","Jestha","Ashadh","Shrawan","Bhadra","Ashwin","Kartik","Mangsir","Paush","Mangh","Falgun","Chaitra"],monthNamesShort:["Bai","Je","As","Shra","Bha","Ash","Kar","Mang","Pau","Ma","Fal","Chai"],dayNames:["Aaitabaar","Sombaar","Manglbaar","Budhabaar","Bihibaar","Shukrabaar","Shanibaar"],dayNamesShort:["Aaita","Som","Mangl","Budha","Bihi","Shukra","Shani"],dayNamesMin:["Aai","So","Man","Bu","Bi","Shu","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:1,isRTL:!1}},leapYear:function(Ee){return this.daysInYear(Ee)!==this.daysPerYear},weekOfYear:function(Ee,ze,Be){var Ue=this.newDate(Ee,ze,Be);return Ue.add(-Ue.dayOfWeek(),"d"),Math.floor((Ue.dayOfYear()-1)/7)+1},daysInYear:function(Ee){if(Ee=this._validate(Ee,this.minMonth,this.minDay,Ue.local.invalidYear).year(),void 0===this.NEPALI_CALENDAR_DATA[Ee])return this.daysPerYear;for(var ze=0,Be=this.minMonth;Be<=12;Be++)ze+=this.NEPALI_CALENDAR_DATA[Ee][Be];return ze},daysInMonth:function(Ee,ze){return Ee.year&&(ze=Ee.month(),Ee=Ee.year()),this._validate(Ee,ze,this.minDay,Ue.local.invalidMonth),void 0===this.NEPALI_CALENDAR_DATA[Ee]?this.daysPerMonth[ze-1]:this.NEPALI_CALENDAR_DATA[Ee][ze]},weekDay:function(Ee,ze,Be){return 6!==this.dayOfWeek(Ee,ze,Be)},toJD:function(Ee,ze,Be){var We=this._validate(Ee,ze,Be,Ue.local.invalidDate);Ee=We.year(),ze=We.month(),Be=We.day();var $e=Ue.instance(),Qe=0,rt=ze,it=Ee;this._createMissingCalendarData(Ee);var at=Ee-(rt>9||9===rt&&Be>=this.NEPALI_CALENDAR_DATA[it][0]?56:57);for(9!==ze&&(Qe=Be,rt--);9!==rt;)rt<=0&&(rt=12,it--),Qe+=this.NEPALI_CALENDAR_DATA[it][rt],rt--;return 9===ze?(Qe+=Be-this.NEPALI_CALENDAR_DATA[it][0])<0&&(Qe+=$e.daysInYear(at)):Qe+=this.NEPALI_CALENDAR_DATA[it][9]-this.NEPALI_CALENDAR_DATA[it][0],$e.newDate(at,1,1).add(Qe,"d").toJD()},fromJD:function(Ee){var ze=Ue.instance().fromJD(Ee),Be=ze.year(),We=ze.dayOfYear(),$e=Be+56;this._createMissingCalendarData($e);for(var Qe=9,rt=this.NEPALI_CALENDAR_DATA[$e][0],it=this.NEPALI_CALENDAR_DATA[$e][Qe]-rt+1;We>it;)++Qe>12&&(Qe=1,$e++),it+=this.NEPALI_CALENDAR_DATA[$e][Qe];var at=this.NEPALI_CALENDAR_DATA[$e][Qe]-(it-We);return this.newDate($e,Qe,at)},_createMissingCalendarData:function(Ee){var ze=this.daysPerMonth.slice(0);ze.unshift(17);for(var Be=Ee-1;Be HALF_PI) && (b <= ONE_AND_HALF_PI)) ?\n b - PI :\n b;\n}\n\nfloat look_horizontal_or_vertical(float a, float ratio) {\n // ratio controls the ratio between being horizontal to (vertical + horizontal)\n // if ratio is set to 0.5 then it is 50%, 50%.\n // when using a higher ratio e.g. 0.75 the result would\n // likely be more horizontal than vertical.\n\n float b = positive_angle(a);\n\n return\n (b < ( ratio) * HALF_PI) ? 0.0 :\n (b < (2.0 - ratio) * HALF_PI) ? -HALF_PI :\n (b < (2.0 + ratio) * HALF_PI) ? 0.0 :\n (b < (4.0 - ratio) * HALF_PI) ? HALF_PI :\n 0.0;\n}\n\nfloat roundTo(float a, float b) {\n return float(b * floor((a + 0.5 * b) / b));\n}\n\nfloat look_round_n_directions(float a, int n) {\n float b = positive_angle(a);\n float div = TWO_PI / float(n);\n float c = roundTo(b, div);\n return look_upwards(c);\n}\n\nfloat applyAlignOption(float rawAngle, float delta) {\n return\n (option > 2) ? look_round_n_directions(rawAngle + delta, option) : // option 3-n: round to n directions\n (option == 2) ? look_horizontal_or_vertical(rawAngle + delta, hv_ratio) : // horizontal or vertical\n (option == 1) ? rawAngle + delta : // use free angle, and flip to align with one direction of the axis\n (option == 0) ? look_upwards(rawAngle) : // use free angle, and stay upwards\n (option ==-1) ? 0.0 : // useful for backward compatibility, all texts remains horizontal\n rawAngle; // otherwise return back raw input angle\n}\n\nbool isAxisTitle = (axis.x == 0.0) &&\n (axis.y == 0.0) &&\n (axis.z == 0.0);\n\nvoid main() {\n //Compute world offset\n float axisDistance = position.z;\n vec3 dataPosition = axisDistance * axis + offset;\n\n float beta = angle; // i.e. user defined attributes for each tick\n\n float axisAngle;\n float clipAngle;\n float flip;\n\n if (enableAlign) {\n axisAngle = (isAxisTitle) ? HALF_PI :\n computeViewAngle(dataPosition, dataPosition + axis);\n clipAngle = computeViewAngle(dataPosition, dataPosition + alignDir);\n\n axisAngle += (sin(axisAngle) < 0.0) ? PI : 0.0;\n clipAngle += (sin(clipAngle) < 0.0) ? PI : 0.0;\n\n flip = (dot(vec2(cos(axisAngle), sin(axisAngle)),\n vec2(sin(clipAngle),-cos(clipAngle))) > 0.0) ? 1.0 : 0.0;\n\n beta += applyAlignOption(clipAngle, flip * PI);\n }\n\n //Compute plane offset\n vec2 planeCoord = position.xy * pixelScale;\n\n mat2 planeXform = scale * mat2(\n cos(beta), sin(beta),\n -sin(beta), cos(beta)\n );\n\n vec2 viewOffset = 2.0 * planeXform * planeCoord / resolution;\n\n //Compute clip position\n vec3 clipPosition = project(dataPosition);\n\n //Apply text offset in clip coordinates\n clipPosition += vec3(viewOffset, 0.0);\n\n //Done\n gl_Position = vec4(clipPosition, 1.0);\n}"]),it=Ue(["precision highp float;\n#define GLSLIFY 1\n\nuniform vec4 color;\nvoid main() {\n gl_FragColor = color;\n}"]);ze.text=function(Ee){return We(Ee,rt,it,null,[{name:"position",type:"vec3"}])};var at=Ue(["precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position;\nattribute vec3 normal;\n\nuniform mat4 model, view, projection;\nuniform vec3 enable;\nuniform vec3 bounds[2];\n\nvarying vec3 colorChannel;\n\nvoid main() {\n\n vec3 signAxis = sign(bounds[1] - bounds[0]);\n\n vec3 realNormal = signAxis * normal;\n\n if(dot(realNormal, enable) > 0.0) {\n vec3 minRange = min(bounds[0], bounds[1]);\n vec3 maxRange = max(bounds[0], bounds[1]);\n vec3 nPosition = mix(minRange, maxRange, 0.5 * (position + 1.0));\n gl_Position = projection * view * model * vec4(nPosition, 1.0);\n } else {\n gl_Position = vec4(0,0,0,0);\n }\n\n colorChannel = abs(realNormal);\n}"]),ct=Ue(["precision highp float;\n#define GLSLIFY 1\n\nuniform vec4 colors[3];\n\nvarying vec3 colorChannel;\n\nvoid main() {\n gl_FragColor = colorChannel.x * colors[0] +\n colorChannel.y * colors[1] +\n colorChannel.z * colors[2];\n}"]);ze.bg=function(Ee){return We(Ee,at,ct,null,[{name:"position",type:"vec3"},{name:"normal",type:"vec3"}])}},c1a7:function(Ee,ze,Be){"use strict";var Ue=Be("8c75");function VertexAttribute(Ee,ze,Be,Ue,We,$e){this.location=Ee,this.dimension=ze,this.a=Be,this.b=Ue,this.c=We,this.d=$e}function VAONative(Ee,ze,Be){this.gl=Ee,this._ext=ze,this.handle=Be,this._attribs=[],this._useElements=!1,this._elementsType=Ee.UNSIGNED_SHORT}VertexAttribute.prototype.bind=function(Ee){switch(this.dimension){case 1:Ee.vertexAttrib1f(this.location,this.a);break;case 2:Ee.vertexAttrib2f(this.location,this.a,this.b);break;case 3:Ee.vertexAttrib3f(this.location,this.a,this.b,this.c);break;case 4:Ee.vertexAttrib4f(this.location,this.a,this.b,this.c,this.d)}},VAONative.prototype.bind=function(){this._ext.bindVertexArrayOES(this.handle);for(var Ee=0;Ee>1;return["sum(",generateSum(Ee.slice(0,ze)),",",generateSum(Ee.slice(ze)),")"].join("")}(ze);var Ue}function compileDeterminant(Ee){return new Function("sum","scale","prod","compress",["function robustDeterminant",Ee,"(m){return compress(",determinant(matrix(Ee)),")};return robustDeterminant",Ee].join(""))(We,$e,Ue,Qe)}var rt=[function robustDeterminant0(){return[0]},function robustDeterminant1(Ee){return[Ee[0][0]]}];!function generateDispatch(){for(;rt.length<6;)rt.push(compileDeterminant(rt.length));for(var ze=[],Be=["function robustDeterminant(m){switch(m.length){"],Ue=0;Ue<6;++Ue)ze.push("det"+Ue),Be.push("case ",Ue,":return det",Ue,"(m);");Be.push("}var det=CACHE[m.length];if(!det)det=CACHE[m.length]=gen(m.length);return det(m);}return robustDeterminant"),ze.push("CACHE","gen",Be.join(""));var We=Function.apply(void 0,ze);for(Ee.exports=We.apply(void 0,rt.concat([rt,compileDeterminant])),Ue=0;Ue=55296&&er<=56319&&(Ut+=Ee[++kt]),it.call(ze,tr,Ut,ft),!xt);++kt);else at.call(Ee,(function(Ee){return it.call(ze,tr,Ee,ft),xt}))}},c3a9:function(Ee,ze){Ee.exports=function add(Ee,ze,Be){return Ee[0]=ze[0]+Be[0],Ee[1]=ze[1]+Be[1],Ee[2]=ze[2]+Be[2],Ee[3]=ze[3]+Be[3],Ee}},c3de:function(Ee,ze,Be){"use strict";var Ue=Be("fc26"),We=Be("0642"),$e=Be("b1a4").pointsAccessorFunction;ze.moduleType="transform",ze.name="sort",ze.attributes={enabled:{valType:"boolean",dflt:!0,editType:"calc"},target:{valType:"string",strict:!0,noBlank:!0,arrayOk:!0,dflt:"x",editType:"calc"},order:{valType:"enumerated",values:["ascending","descending"],dflt:"ascending",editType:"calc"},editType:"calc"},ze.supplyDefaults=function(Ee){var Be={};function coerce(We,$e){return Ue.coerce(Ee,Be,ze.attributes,We,$e)}return coerce("enabled")&&(coerce("target"),coerce("order")),Be},ze.calcTransform=function(Ee,ze,Be){if(Be.enabled){var Qe=Ue.getTargetArray(ze,Be);if(Qe){var rt=Be.target,it=Qe.length;ze._length&&(it=Math.min(it,ze._length));var at,ct,ft=ze._arrayAttrs,xt=function getIndices(Ee,ze,Be,Ue){var We,$e=new Array(Ue),Qe=new Array(Ue);for(We=0;We=0;Be--)Ee.removeLayer(ze[Be][1])},$e.dispose=function(){var Ee=this.subplot.map;this._removeLayers(),Ee.removeSource(this.sourceId)},Ee.exports=function createDensityMapbox(Ee,ze){var Be=ze[0].trace,We=new DensityMapbox(Ee,Be.uid),$e=We.sourceId,Qe=Ue(ze),rt=We.below=Ee.belowLookup["trace-"+Be.uid];return Ee.map.addSource($e,{type:"geojson",data:Qe.geojson}),We._addLayers(Qe,rt),We}},c400:function(Ee,ze,Be){"use strict";var Ue=Ee.exports={},We=Be("0804").locationmodeToLayer,$e=Be("e018").feature;Ue.getTopojsonName=function(Ee){return[Ee.scope.replace(/ /g,"-"),"_",Ee.resolution.toString(),"m"].join("")},Ue.getTopojsonPath=function(Ee,ze){return Ee+ze+".json"},Ue.getTopojsonFeatures=function(Ee,ze){var Be=We[Ee.locationmode],Ue=ze.objects[Be];return $e(ze,Ue).features}},c430:function(Ee,ze){Ee.exports=!1},c437:function(Ee,ze,Be){"use strict";var Ue=Be("6e58");Ee.exports=function style(Ee){Ue.select(Ee).selectAll(".hm image").style("opacity",(function(Ee){return Ee.trace.opacity}))}},c449:function(Ee,ze,Be){(function(ze){for(var Ue=Be("6d08"),We="undefined"==typeof window?ze:window,$e=["moz","webkit"],Qe="AnimationFrame",rt=We["request"+Qe],it=We["cancel"+Qe]||We["cancelRequest"+Qe],at=0;!rt&&at<$e.length;at++)rt=We[$e[at]+"Request"+Qe],it=We[$e[at]+"Cancel"+Qe]||We[$e[at]+"CancelRequest"+Qe];if(!rt||!it){var ct=0,ft=0,xt=[];rt=function(Ee){if(0===xt.length){var ze=Ue(),Be=Math.max(0,1e3/60-(ze-ct));ct=Be+ze,setTimeout((function(){var Ee=xt.slice(0);xt.length=0;for(var ze=0;ze0&&Qe.log("Clearing previous rejected promises from queue."),Ee._promises=[]},ze.cleanLayout=function(Ee){var Be,Ue;Ee||(Ee={}),Ee.xaxis1&&(Ee.xaxis||(Ee.xaxis=Ee.xaxis1),delete Ee.xaxis1),Ee.yaxis1&&(Ee.yaxis||(Ee.yaxis=Ee.yaxis1),delete Ee.yaxis1),Ee.scene1&&(Ee.scene||(Ee.scene=Ee.scene1),delete Ee.scene1);var $e=(rt.subplotsRegistry.cartesian||{}).attrRegex,it=(rt.subplotsRegistry.polar||{}).attrRegex,ft=(rt.subplotsRegistry.ternary||{}).attrRegex,xt=(rt.subplotsRegistry.gl3d||{}).attrRegex,kt=Object.keys(Ee);for(Be=0;Be3?(vn.x=1.02,vn.xanchor="left"):vn.x<-2&&(vn.x=-.02,vn.xanchor="right"),vn.y>3?(vn.y=1.02,vn.yanchor="bottom"):vn.y<-2&&(vn.y=-.02,vn.yanchor="top")),cleanTitle(Ee),"rotate"===Ee.dragmode&&(Ee.dragmode="orbit"),at.clean(Ee),Ee.template&&Ee.template.layout&&ze.cleanLayout(Ee.template.layout),Ee},ze.cleanData=function(Ee){for(var Be=0;Be0)return Ee.substr(0,ze)}ze.hasParent=function(Ee,ze){for(var Be=getParent(ze);Be;){if(Be in Ee)return!0;Be=getParent(Be)}return!1};var Lt=["x","y","z"];ze.clearAxisTypes=function(Ee,ze,Be){for(var Ue=0;Ue=0&&Be.index0?$e.push(["d",xt,"=s",xt,"-d",at,"*n",at].join("")):$e.push(["d",xt,"=s",xt].join("")),at=xt),0!==(ft=Ee.length-1-Qe)&&(ct>0?$e.push(["e",ft,"=s",ft,"-e",ct,"*n",ct,",f",ft,"=",rt[ft],"-f",ct,"*n",ct].join("")):$e.push(["e",ft,"=s",ft,",f",ft,"=",rt[ft]].join("")),ct=ft)}Be.push("var "+$e.join(","));var kt=["0","n0-1","data","offset"].concat(shapeArgs(Ee.length));Be.push(["if(n0<=",We,"){","insertionSort(",kt.join(","),")}else{","quickSort(",kt.join(","),")}"].join("")),Be.push("}return "+Ue);var Lt=new Function("insertionSort","quickSort",Be.join("\n")),Ut=function createInsertionSort(Ee,ze){var Be=["'use strict'"],Ue=["ndarrayInsertionSort",Ee.join("d"),ze].join(""),We=["left","right","data","offset"].concat(shapeArgs(Ee.length)),$e=getMallocFree(ze),Qe=["i,j,cptr,ptr=left*s0+offset"];if(Ee.length>1){for(var rt=[],it=1;it1){Be.push("dptr=0;sptr=ptr");for(it=Ee.length-1;it>=0;--it){0!==(at=Ee[it])&&Be.push(["for(i",at,"=0;i",at,"b){break __l}"].join(""));for(it=Ee.length-1;it>=1;--it)Be.push("sptr+=e"+it,"dptr+=f"+it,"}");Be.push("dptr=cptr;sptr=cptr-s0");for(it=Ee.length-1;it>=0;--it){0!==(at=Ee[it])&&Be.push(["for(i",at,"=0;i",at,"=0;--it){0!==(at=Ee[it])&&Be.push(["for(i",at,"=0;i",at,"scratch)){",dataWrite("cptr",dataRead("cptr-s0")),"cptr-=s0","}",dataWrite("cptr","scratch"));return Be.push("}"),Ee.length>1&&$e&&Be.push("free(scratch)"),Be.push("} return "+Ue),$e?new Function("malloc","free",Be.join("\n"))($e[0],$e[1]):new Function(Be.join("\n"))()}(Ee,ze),er=function createQuickSort(Ee,ze,Be){var Ue=["'use strict'"],$e=["ndarrayQuickSort",Ee.join("d"),ze].join(""),Qe=["left","right","data","offset"].concat(shapeArgs(Ee.length)),rt=getMallocFree(ze),it=0;Ue.push(["function ",$e,"(",Qe.join(","),"){"].join(""));var at=["sixth=((right-left+1)/6)|0","index1=left+sixth","index5=right-sixth","index3=(left+right)>>1","index2=index3-sixth","index4=index3+sixth","el1=index1","el2=index2","el3=index3","el4=index4","el5=index5","less=left+1","great=right-1","pivots_are_equal=true","tmp","tmp0","x","y","z","k","ptr0","ptr1","ptr2","comp_pivot1=0","comp_pivot2=0","comp=0"];if(Ee.length>1){for(var ct=[],ft=1;ft=0;--$e){0!==(Qe=Ee[$e])&&Ue.push(["for(i",Qe,"=0;i",Qe,"1)for($e=0;$e1?Ue.push("ptr_shift+=d"+Qe):Ue.push("ptr0+=d"+Qe),Ue.push("}"))}}function lexicoLoop(ze,Be,We,$e){if(1===Be.length)Ue.push("ptr0="+toPointer(Be[0]));else{for(var Qe=0;Qe1)for(Qe=0;Qe=1;--Qe)We&&Ue.push("pivot_ptr+=f"+Qe),Be.length>1?Ue.push("ptr_shift+=e"+Qe):Ue.push("ptr0+=e"+Qe),Ue.push("}")}function cleanUp(){Ee.length>1&&rt&&Ue.push("free(pivot1)","free(pivot2)")}function compareSwap(ze,Be){var We="el"+ze,$e="el"+Be;if(Ee.length>1){var Qe="__l"+ ++it;lexicoLoop(Qe,[We,$e],!1,["comp=",dataRead("ptr0"),"-",dataRead("ptr1"),"\n","if(comp>0){tmp0=",We,";",We,"=",$e,";",$e,"=tmp0;break ",Qe,"}\n","if(comp<0){break ",Qe,"}"].join(""))}else Ue.push(["if(",dataRead(toPointer(We)),">",dataRead(toPointer($e)),"){tmp0=",We,";",We,"=",$e,";",$e,"=tmp0}"].join(""))}function moveElement(ze,Be){Ee.length>1?cacheLoop([ze,Be],!1,dataWrite("ptr0",dataRead("ptr1"))):Ue.push(dataWrite(toPointer(ze),dataRead(toPointer(Be))))}function comparePivot(ze,Be,We){if(Ee.length>1){var $e="__l"+ ++it;lexicoLoop($e,[Be],!0,[ze,"=",dataRead("ptr0"),"-pivot",We,"[pivot_ptr]\n","if(",ze,"!==0){break ",$e,"}"].join(""))}else Ue.push([ze,"=",dataRead(toPointer(Be)),"-pivot",We].join(""))}function swapElements(ze,Be){Ee.length>1?cacheLoop([ze,Be],!1,["tmp=",dataRead("ptr0"),"\n",dataWrite("ptr0",dataRead("ptr1")),"\n",dataWrite("ptr1","tmp")].join("")):Ue.push(["ptr0=",toPointer(ze),"\n","ptr1=",toPointer(Be),"\n","tmp=",dataRead("ptr0"),"\n",dataWrite("ptr0",dataRead("ptr1")),"\n",dataWrite("ptr1","tmp")].join(""))}function tripleSwap(ze,Be,We){Ee.length>1?(cacheLoop([ze,Be,We],!1,["tmp=",dataRead("ptr0"),"\n",dataWrite("ptr0",dataRead("ptr1")),"\n",dataWrite("ptr1",dataRead("ptr2")),"\n",dataWrite("ptr2","tmp")].join("")),Ue.push("++"+Be,"--"+We)):Ue.push(["ptr0=",toPointer(ze),"\n","ptr1=",toPointer(Be),"\n","ptr2=",toPointer(We),"\n","++",Be,"\n","--",We,"\n","tmp=",dataRead("ptr0"),"\n",dataWrite("ptr0",dataRead("ptr1")),"\n",dataWrite("ptr1",dataRead("ptr2")),"\n",dataWrite("ptr2","tmp")].join(""))}function swapAndDecrement(Ee,ze){swapElements(Ee,ze),Ue.push("--"+ze)}function storePivot(ze,Be,We){Ee.length>1?cacheLoop([ze,Be],!0,[dataWrite("ptr0",dataRead("ptr1")),"\n",dataWrite("ptr1",["pivot",We,"[pivot_ptr]"].join(""))].join("")):Ue.push(dataWrite(toPointer(ze),dataRead(toPointer(Be))),dataWrite(toPointer(Be),"pivot"+We))}function doSort(ze,Be){Ue.push(["if((",Be,"-",ze,")<=",We,"){\n","insertionSort(",ze,",",Be,",data,offset,",shapeArgs(Ee.length).join(","),")\n","}else{\n",$e,"(",ze,",",Be,",data,offset,",shapeArgs(Ee.length).join(","),")\n","}"].join(""))}function walkPointer(ze,Be,We){Ee.length>1?(Ue.push(["__l",++it,":while(true){"].join("")),cacheLoop([ze],!0,["if(",dataRead("ptr0"),"!==pivot",Be,"[pivot_ptr]){break __l",it,"}"].join("")),Ue.push(We,"}")):Ue.push(["while(",dataRead(toPointer(ze)),"===pivot",Be,"){",We,"}"].join(""))}return Ue.push("var "+at.join(",")),compareSwap(1,2),compareSwap(4,5),compareSwap(1,3),compareSwap(2,3),compareSwap(1,4),compareSwap(3,4),compareSwap(2,5),compareSwap(2,3),compareSwap(4,5),Ee.length>1?cacheLoop(["el1","el2","el3","el4","el5","index1","index3","index5"],!0,["pivot1[pivot_ptr]=",dataRead("ptr1"),"\n","pivot2[pivot_ptr]=",dataRead("ptr3"),"\n","pivots_are_equal=pivots_are_equal&&(pivot1[pivot_ptr]===pivot2[pivot_ptr])\n","x=",dataRead("ptr0"),"\n","y=",dataRead("ptr2"),"\n","z=",dataRead("ptr4"),"\n",dataWrite("ptr5","x"),"\n",dataWrite("ptr6","y"),"\n",dataWrite("ptr7","z")].join("")):Ue.push(["pivot1=",dataRead(toPointer("el2")),"\n","pivot2=",dataRead(toPointer("el4")),"\n","pivots_are_equal=pivot1===pivot2\n","x=",dataRead(toPointer("el1")),"\n","y=",dataRead(toPointer("el3")),"\n","z=",dataRead(toPointer("el5")),"\n",dataWrite(toPointer("index1"),"x"),"\n",dataWrite(toPointer("index3"),"y"),"\n",dataWrite(toPointer("index5"),"z")].join("")),moveElement("index2","left"),moveElement("index4","right"),Ue.push("if(pivots_are_equal){"),Ue.push("for(k=less;k<=great;++k){"),comparePivot("comp","k",1),Ue.push("if(comp===0){continue}"),Ue.push("if(comp<0){"),Ue.push("if(k!==less){"),swapElements("k","less"),Ue.push("}"),Ue.push("++less"),Ue.push("}else{"),Ue.push("while(true){"),comparePivot("comp","great",1),Ue.push("if(comp>0){"),Ue.push("great--"),Ue.push("}else if(comp<0){"),tripleSwap("k","less","great"),Ue.push("break"),Ue.push("}else{"),swapAndDecrement("k","great"),Ue.push("break"),Ue.push("}"),Ue.push("}"),Ue.push("}"),Ue.push("}"),Ue.push("}else{"),Ue.push("for(k=less;k<=great;++k){"),comparePivot("comp_pivot1","k",1),Ue.push("if(comp_pivot1<0){"),Ue.push("if(k!==less){"),swapElements("k","less"),Ue.push("}"),Ue.push("++less"),Ue.push("}else{"),comparePivot("comp_pivot2","k",2),Ue.push("if(comp_pivot2>0){"),Ue.push("while(true){"),comparePivot("comp","great",2),Ue.push("if(comp>0){"),Ue.push("if(--greatindex5){"),walkPointer("less",1,"++less"),walkPointer("great",2,"--great"),Ue.push("for(k=less;k<=great;++k){"),comparePivot("comp_pivot1","k",1),Ue.push("if(comp_pivot1===0){"),Ue.push("if(k!==less){"),swapElements("k","less"),Ue.push("}"),Ue.push("++less"),Ue.push("}else{"),comparePivot("comp_pivot2","k",2),Ue.push("if(comp_pivot2===0){"),Ue.push("while(true){"),comparePivot("comp","great",2),Ue.push("if(comp===0){"),Ue.push("if(--great1&&rt?new Function("insertionSort","malloc","free",Ue.join("\n"))(Be,rt[0],rt[1]):new Function("insertionSort",Ue.join("\n"))(Be)}(Ee,ze,Ut);return Lt(Ut,er)}},c586:function(Ee,ze,Be){"use strict";Ee.exports=function edgeToAdjacency(Ee,ze){var Be=Ee.length;if("number"!=typeof ze){ze=0;for(var We=0;We>>1,xt)Lt[0]=Ee.xbounds[0],Lt[2]=Ee.xbounds[1],Lt[1]=Ee.ybounds[0],Lt[3]=Ee.ybounds[1];else for(it=0;itLt[2]&&(Lt[2]=Qe),rtLt[3]&&(Lt[3]=rt);if(kt)Be=kt;else for(Be=new Int32Array(ze),it=0;itLt[2]&&(Lt[2]=Qe),rtLt[3]&&(Lt[3]=rt);this.idToIndex=Be,this.pointcloudOptions.idToIndex=Be,this.pointcloudOptions.positions=Ue;var Ut=We(Ee.marker.color),er=We(Ee.marker.border.color),tr=Ee.opacity*Ee.marker.opacity;Ut[3]*=tr,this.pointcloudOptions.color=Ut;var rr=Ee.marker.blend;if(null===rr){rr=at.length<100||ct.length<100}this.pointcloudOptions.blend=rr,er[3]*=tr,this.pointcloudOptions.borderColor=er;var ar=Ee.marker.sizemin,Lr=Math.max(Ee.marker.sizemax,Ee.marker.sizemin);this.pointcloudOptions.sizeMin=ar,this.pointcloudOptions.sizeMax=Lr,this.pointcloudOptions.areaRatio=Ee.marker.border.arearatio,this.pointcloud.update(this.pointcloudOptions);var Qr=this.scene.xaxis,on=this.scene.yaxis,sn=Lr/2||.5;Ee._extremes[Qr._id]=$e(Qr,[Lt[0],Lt[2]],{ppad:sn}),Ee._extremes[on._id]=$e(on,[Lt[1],Lt[3]],{ppad:sn})},rt.dispose=function(){this.pointcloud.dispose()},Ee.exports=function createPointcloud(Ee,ze){var Be=new Pointcloud(Ee,ze.uid);return Be.update(ze),Be}},c6b6:function(Ee,ze){var Be={}.toString;Ee.exports=function(Ee){return Be.call(Ee).slice(8,-1)}},c6b6b:function(Ee,ze,Be){"use strict";var Ue=Be("fc26"),We=Be("3ff5").dfltConfig;var $e={add:function(Ee,ze,Be,Ue,$e){var Qe,rt;Ee.undoQueue=Ee.undoQueue||{index:0,queue:[],sequence:!1},rt=Ee.undoQueue.index,Ee.autoplay?Ee.undoQueue.inSequence||(Ee.autoplay=!1):(!Ee.undoQueue.sequence||Ee.undoQueue.beginSequence?(Qe={undo:{calls:[],args:[]},redo:{calls:[],args:[]}},Ee.undoQueue.queue.splice(rt,Ee.undoQueue.queue.length-rt,Qe),Ee.undoQueue.index+=1):Qe=Ee.undoQueue.queue[rt-1],Ee.undoQueue.beginSequence=!1,Qe&&(Qe.undo.calls.unshift(ze),Qe.undo.args.unshift(Be),Qe.redo.calls.push(Ue),Qe.redo.args.push($e)),Ee.undoQueue.queue.length>We.queueLength&&(Ee.undoQueue.queue.shift(),Ee.undoQueue.index--))},startSequence:function(Ee){Ee.undoQueue=Ee.undoQueue||{index:0,queue:[],sequence:!1},Ee.undoQueue.sequence=!0,Ee.undoQueue.beginSequence=!0},stopSequence:function(Ee){Ee.undoQueue=Ee.undoQueue||{index:0,queue:[],sequence:!1},Ee.undoQueue.sequence=!1,Ee.undoQueue.beginSequence=!1},undo:function undo(Ee){var ze,Be;if(Ee.framework&&Ee.framework.isPolar)Ee.framework.undo();else if(!(void 0===Ee.undoQueue||isNaN(Ee.undoQueue.index)||Ee.undoQueue.index<=0)){for(Ee.undoQueue.index--,ze=Ee.undoQueue.queue[Ee.undoQueue.index],Ee.undoQueue.inSequence=!0,Be=0;Be=Ee.undoQueue.queue.length)){for(ze=Ee.undoQueue.queue[Ee.undoQueue.index],Ee.undoQueue.inSequence=!0,Be=0;Be0}function getRotateFromAngle(Ee){return"auto"===Ee?0:Ee}function getRotatedTextSize(Ee,ze){var Be=Math.PI/180*ze,Ue=Math.abs(Math.sin(Be)),We=Math.abs(Math.cos(Be));return{x:Ee.width*We+Ee.height*Ue,y:Ee.width*Ue+Ee.height*We}}function toMoveInsideBar(Ee,ze,Be,Ue,We,$e){var Qe=!!$e.isHorizontal,rt=!!$e.constrained,it=$e.angle||0,at=$e.anchor||"end",ct="end"===at,ft="start"===at,xt=(($e.leftToRight||0)+1)/2,kt=1-xt,Lt=We.width,Ut=We.height,er=Math.abs(ze-Ee),tr=Math.abs(Ue-Be),rr=er>2*Qr&&tr>2*Qr?Qr:0;er-=2*rr,tr-=2*rr;var ar=getRotateFromAngle(it);"auto"!==it||Lt<=er&&Ut<=tr||!(Lt>er||Ut>tr)||(Lt>tr||Ut>er)&&Lt.01?roundWithLine:function expandToVisible(Ee,ze){return Math.abs(Ee-ze)>=2?roundWithLine(Ee):Ee>ze?Math.ceil(Ee):Math.floor(Ee)};Cn=Jn(Cn,En),En=Jn(En,Cn),Pn=Jn(Pn,In),In=Jn(In,Pn)}var ei=transition($e.ensureSingle(_n,"path"),cn,er,tr);if(ei.style("vector-effect","non-scaling-stroke").attr("d","M"+Cn+","+Pn+"V"+In+"H"+En+"V"+Pn+"Z").call(it.setClipUrl,ze.layerClipId,Ee),!cn.uniformtext.mode&&hasTransition(er)){var ti=it.makePointStyleFns(ft);it.singlePointStyle(at,ei,ft,ti,Ee)}!function appendBarText(Ee,ze,Be,Ue,We,rt,at,ft,kt,er,tr){var on,sn=ze.xaxis,cn=ze.yaxis,un=Ee._fullLayout;function appendTextNode(ze,Be,Ue){return $e.ensureSingle(ze,"text").text(Be).attr({class:"bartext bartext-"+on,"text-anchor":"middle","data-notex":1}).call(it.font,Ue).call(Qe.convertToTspans,Ee)}var hn=Ue[0].trace,dn="h"===hn.orientation,vn=function getText(Ee,ze,Be,Ue,We){var Qe,rt=ze[0].trace;Qe=rt.texttemplate?function calcTexttemplate(Ee,ze,Be,Ue,We){var Qe=ze[0].trace,rt=$e.castOption(Qe,Be,"texttemplate");if(!rt)return"";var it,at,ft,xt,kt="waterfall"===Qe.type,Lt="funnel"===Qe.type;"h"===Qe.orientation?(it="y",at=We,ft="x",xt=Ue):(it="x",at=Ue,ft="y",xt=We);function formatNumber(Ee){return ct(xt,+Ee,!0).text}var Ut=ze[Be],er={};er.label=Ut.p,er.labelLabel=er[it+"Label"]=function formatLabel(Ee){return ct(at,Ee,!0).text}(Ut.p);var tr=$e.castOption(Qe,Ut.i,"text");(0===tr||tr)&&(er.text=tr);er.value=Ut.s,er.valueLabel=er[ft+"Label"]=formatNumber(Ut.s);var rr={};Lr(rr,Qe,Ut.i),kt&&(er.delta=+Ut.rawS||Ut.s,er.deltaLabel=formatNumber(er.delta),er.final=Ut.v,er.finalLabel=formatNumber(er.final),er.initial=er.final-er.delta,er.initialLabel=formatNumber(er.initial));Lt&&(er.value=Ut.s,er.valueLabel=formatNumber(er.value),er.percentInitial=Ut.begR,er.percentInitialLabel=$e.formatPercent(Ut.begR),er.percentPrevious=Ut.difR,er.percentPreviousLabel=$e.formatPercent(Ut.difR),er.percentTotal=Ut.sumR,er.percenTotalLabel=$e.formatPercent(Ut.sumR));var ar=$e.castOption(Qe,Ut.i,"customdata");ar&&(er.customdata=ar);return $e.texttemplateString(rt,er,Ee._d3locale,rr,er,Qe._meta||{})}(Ee,ze,Be,Ue,We):rt.textinfo?function calcTextinfo(Ee,ze,Be,Ue){var We=Ee[0].trace,Qe="h"===We.orientation,rt="waterfall"===We.type,it="funnel"===We.type;function formatNumber(Ee){return ct(Qe?Be:Ue,+Ee,!0).text}var at,ft=We.textinfo,xt=Ee[ze],kt=ft.split("+"),Lt=[],hasFlag=function(Ee){return-1!==kt.indexOf(Ee)};hasFlag("label")&&Lt.push(function formatLabel(Ee){return ct(Qe?Ue:Be,Ee,!0).text}(Ee[ze].p));hasFlag("text")&&(0===(at=$e.castOption(We,xt.i,"text"))||at)&&Lt.push(at);if(rt){var Ut=+xt.rawS||xt.s,er=xt.v,tr=er-Ut;hasFlag("initial")&&Lt.push(formatNumber(tr)),hasFlag("delta")&&Lt.push(formatNumber(Ut)),hasFlag("final")&&Lt.push(formatNumber(er))}if(it){hasFlag("value")&&Lt.push(formatNumber(xt.s));var rr=0;hasFlag("percent initial")&&rr++,hasFlag("percent previous")&&rr++,hasFlag("percent total")&&rr++;var ar=rr>1;hasFlag("percent initial")&&(at=$e.formatPercent(xt.begR),ar&&(at+=" of initial"),Lt.push(at)),hasFlag("percent previous")&&(at=$e.formatPercent(xt.difR),ar&&(at+=" of previous"),Lt.push(at)),hasFlag("percent total")&&(at=$e.formatPercent(xt.sumR),ar&&(at+=" of total"),Lt.push(at))}return Lt.join("
")}(ze,Be,Ue,We):Ut.getValue(rt.text,Be);return Ut.coerceString(rr,Qe)}(un,Ue,We,sn,cn);on=function getTextPosition(Ee,ze){var Be=Ut.getValue(Ee.textposition,ze);return Ut.coerceEnumerated(ar,Be)}(hn,We);var yn="stack"===er.mode||"relative"===er.mode,_n=Ue[We],Mn=!yn||_n._outmost;if(!vn||"none"===on||(_n.isBlank||rt===at||ft===kt)&&("auto"===on||"inside"===on))return void Be.select("text").remove();var Cn=un.font,En=Lt.getBarColor(Ue[We],hn),Pn=Lt.getInsideTextFont(hn,We,Cn,En),In=Lt.getOutsideTextFont(hn,We,Cn),Bn=Be.datum();dn?"log"===sn.type&&Bn.s0<=0&&(rt=sn.range[0]=Jn*(ni/ei):ni>=ei*(ri/Jn);Jn>0&&ei>0&&(ii||ai||oi)?on="inside":(on="outside",Hn.remove(),Hn=null)}else on="inside";if(!Hn){ti=$e.ensureUniformFontSize(Ee,"outside"===on?In:Pn);var si=(Hn=appendTextNode(Be,vn,ti)).attr("transform");if(Hn.attr("transform",""),Kn=it.bBox(Hn.node()),Jn=Kn.width,ei=Kn.height,Hn.attr("transform",si),Jn<=0||ei<=0)return void Hn.remove()}var li,ci,hi=hn.textangle;"outside"===on?(ci="both"===hn.constraintext||"outside"===hn.constraintext,li=function toMoveOutsideBar(Ee,ze,Be,Ue,We,$e){var Qe,rt=!!$e.isHorizontal,it=!!$e.constrained,at=$e.angle||0,ct=We.width,ft=We.height,xt=Math.abs(ze-Ee),kt=Math.abs(Ue-Be);Qe=rt?kt>2*Qr?Qr:0:xt>2*Qr?Qr:0;var Lt=1;it&&(Lt=rt?Math.min(1,kt/ft):Math.min(1,xt/ct));var Ut=getRotateFromAngle(at),er=getRotatedTextSize(We,Ut),tr=(rt?er.x:er.y)/2,rr=(We.left+We.right)/2,ar=(We.top+We.bottom)/2,Lr=(Ee+ze)/2,on=(Be+Ue)/2,sn=0,cn=0,un=rt?dirSign(ze,Ee):dirSign(Be,Ue);rt?(Lr=ze-un*Qe,sn=un*tr):(on=Ue+un*Qe,cn=-un*tr);return{textX:rr,textY:ar,targetX:Lr,targetY:on,anchorX:sn,anchorY:cn,scale:Lt,rotate:Ut}}(rt,at,ft,kt,Kn,{isHorizontal:dn,constrained:ci,angle:hi})):(ci="both"===hn.constraintext||"inside"===hn.constraintext,li=toMoveInsideBar(rt,at,ft,kt,Kn,{isHorizontal:dn,constrained:ci,angle:hi,anchor:hn.insidetextanchor}));li.fontSize=ti.size,xt(hn.type,li,un),_n.transform=li,transition(Hn,un,er,tr).attr("transform",$e.getTextTransform(li))}(Ee,ze,_n,Be,kt,Cn,En,Pn,In,er,tr),ze.layerClipId&&it.hideOutsideRangePoint(at,_n.select("text"),on,sn,ft.xcalendar,ft.ycalendar)}));var Cn=!1===ft.cliponaxis;it.setClipUrl(at,Cn?null:ze.layerClipId,Ee)}));at.getComponentMethod("errorbars","plot")(Ee,un,ze,er)},toMoveInsideBar:toMoveInsideBar}},c7c2:function(Ee,ze,Be){"use strict";Ee.exports={moduleType:"trace",name:"treemap",basePlotModule:Be("b6de"),categories:[],animatable:!0,attributes:Be("97d1"),layoutAttributes:Be("3e8e"),supplyDefaults:Be("2a27"),supplyLayoutDefaults:Be("4aa8"),calc:Be("fc7b").calc,crossTraceCalc:Be("fc7b").crossTraceCalc,plot:Be("57da"),style:Be("da8c").style,colorbar:Be("f3cf"),meta:{}}},c808:function(Ee,ze,Be){Ee.exports=Be("40ce")({args:["array","scalar","index"],pre:{body:"{}",args:[],thisVars:[],localVars:[]},body:{body:"{\nvar _inline_1_v=_inline_1_arg1_,_inline_1_i\nfor(_inline_1_i=0;_inline_1_i<_inline_1_arg2_.length-1;++_inline_1_i) {\n_inline_1_v=_inline_1_v[_inline_1_arg2_[_inline_1_i]]\n}\n_inline_1_arg0_=_inline_1_v[_inline_1_arg2_[_inline_1_arg2_.length-1]]\n}",args:[{name:"_inline_1_arg0_",lvalue:!0,rvalue:!1,count:1},{name:"_inline_1_arg1_",lvalue:!1,rvalue:!0,count:1},{name:"_inline_1_arg2_",lvalue:!1,rvalue:!0,count:4}],thisVars:[],localVars:["_inline_1_i","_inline_1_v"]},post:{body:"{}",args:[],thisVars:[],localVars:[]},funcName:"convert",blockSize:64})},c80f:function(Ee,ze,Be){"use strict";Ee.exports=Be("7a7d")},c879:function(Ee,ze,Be){"use strict";var Ue=Be("19b2"),We=Be("d7f3"),$e=Be("0103"),Qe=Be("371e"),rt=Be("fc26"),it=Be("83d1"),at=Be("3c1c"),ct=Be("765f").formatColor,ft=Be("de81"),xt=Be("1978"),kt=Be("50da"),Lt=Be("b326"),Ut=Be("72a4").DESELECTDIM,er={start:1,left:1,end:-1,right:-1,middle:0,center:0,bottom:1,top:-1},tr=Be("c4c7").appendArrayPointValue;function convertTextStyle(Ee,ze){var Be,We=Ee._fullLayout,$e=ze._length,Qe=ze.textfont,it=ze.textposition,at=Array.isArray(it)?it:[it],ct=Qe.color,ft=Qe.size,xt=Qe.family,kt={},Lt=ze.texttemplate;if(Lt){kt.text=[];var Ut=We._d3locale,er=Array.isArray(Lt),rr=er?Math.min(Lt.length,$e):$e,ar=er?function(Ee){return Lt[Ee]}:function(){return Lt};for(Be=0;BeLt.TOO_MANY_POINTS||ft.hasMarkers(ze)?"rect":"round";if(at&&ze.connectgaps){var xt=Ue[0],kt=Ue[1];for(We=0;We1?it[We]:it[0]:it,Lt=Array.isArray(at)?at.length>1?at[We]:at[0]:at,Ut=er[kt],tr=er[Lt],rr=ct?ct/.8+1:0,ar=-tr*rr-.5*tr;Qe.offset[We]=[Ut*rr/xt,ar/xt]}}return Qe}}},c8ac:function(Ee,ze,Be){"use strict";Ee.exports=function createRBTree(Ee){return new RedBlackTree(Ee||defaultCompare,null)};function RBNode(Ee,ze,Be,Ue,We,$e){this._color=Ee,this.key=ze,this.value=Be,this.left=Ue,this.right=We,this._count=$e}function cloneNode(Ee){return new RBNode(Ee._color,Ee.key,Ee.value,Ee.left,Ee.right,Ee._count)}function repaint(Ee,ze){return new RBNode(Ee,ze.key,ze.value,ze.left,ze.right,ze._count)}function recount(Ee){Ee._count=1+(Ee.left?Ee.left._count:0)+(Ee.right?Ee.right._count:0)}function RedBlackTree(Ee,ze){this._compare=Ee,this.root=ze}var Ue=RedBlackTree.prototype;function doVisitFull(Ee,ze){var Be;if(ze.left&&(Be=doVisitFull(Ee,ze.left)))return Be;return(Be=Ee(ze.key,ze.value))||(ze.right?doVisitFull(Ee,ze.right):void 0)}function doVisitHalf(Ee,ze,Be,Ue){if(ze(Ee,Ue.key)<=0){var We;if(Ue.left)if(We=doVisitHalf(Ee,ze,Be,Ue.left))return We;if(We=Be(Ue.key,Ue.value))return We}if(Ue.right)return doVisitHalf(Ee,ze,Be,Ue.right)}function doVisit(Ee,ze,Be,Ue,We){var $e,Qe=Be(Ee,We.key),rt=Be(ze,We.key);if(Qe<=0){if(We.left&&($e=doVisit(Ee,ze,Be,Ue,We.left)))return $e;if(rt>0&&($e=Ue(We.key,We.value)))return $e}if(rt>0&&We.right)return doVisit(Ee,ze,Be,Ue,We.right)}function RedBlackTreeIterator(Ee,ze){this.tree=Ee,this._stack=ze}Object.defineProperty(Ue,"keys",{get:function(){var Ee=[];return this.forEach((function(ze,Be){Ee.push(ze)})),Ee}}),Object.defineProperty(Ue,"values",{get:function(){var Ee=[];return this.forEach((function(ze,Be){Ee.push(Be)})),Ee}}),Object.defineProperty(Ue,"length",{get:function(){return this.root?this.root._count:0}}),Ue.insert=function(Ee,ze){for(var Be=this._compare,Ue=this.root,We=[],$e=[];Ue;){var Qe=Be(Ee,Ue.key);We.push(Ue),$e.push(Qe),Ue=Qe<=0?Ue.left:Ue.right}We.push(new RBNode(0,Ee,ze,null,null,1));for(var rt=We.length-2;rt>=0;--rt){Ue=We[rt];$e[rt]<=0?We[rt]=new RBNode(Ue._color,Ue.key,Ue.value,We[rt+1],Ue.right,Ue._count+1):We[rt]=new RBNode(Ue._color,Ue.key,Ue.value,Ue.left,We[rt+1],Ue._count+1)}for(rt=We.length-1;rt>1;--rt){var it=We[rt-1];Ue=We[rt];if(1===it._color||1===Ue._color)break;var at=We[rt-2];if(at.left===it)if(it.left===Ue){if(!(ct=at.right)||0!==ct._color){if(at._color=0,at.left=it.right,it._color=1,it.right=at,We[rt-2]=it,We[rt-1]=Ue,recount(at),recount(it),rt>=3)(ft=We[rt-3]).left===at?ft.left=it:ft.right=it;break}it._color=1,at.right=repaint(1,ct),at._color=0,rt-=1}else{if(!(ct=at.right)||0!==ct._color){if(it.right=Ue.left,at._color=0,at.left=Ue.right,Ue._color=1,Ue.left=it,Ue.right=at,We[rt-2]=Ue,We[rt-1]=it,recount(at),recount(it),recount(Ue),rt>=3)(ft=We[rt-3]).left===at?ft.left=Ue:ft.right=Ue;break}it._color=1,at.right=repaint(1,ct),at._color=0,rt-=1}else if(it.right===Ue){if(!(ct=at.left)||0!==ct._color){if(at._color=0,at.right=it.left,it._color=1,it.left=at,We[rt-2]=it,We[rt-1]=Ue,recount(at),recount(it),rt>=3)(ft=We[rt-3]).right===at?ft.right=it:ft.left=it;break}it._color=1,at.left=repaint(1,ct),at._color=0,rt-=1}else{var ct;if(!(ct=at.left)||0!==ct._color){var ft;if(it.left=Ue.right,at._color=0,at.right=Ue.left,Ue._color=1,Ue.right=it,Ue.left=at,We[rt-2]=Ue,We[rt-1]=it,recount(at),recount(it),recount(Ue),rt>=3)(ft=We[rt-3]).right===at?ft.right=Ue:ft.left=Ue;break}it._color=1,at.left=repaint(1,ct),at._color=0,rt-=1}}return We[0]._color=1,new RedBlackTree(Be,We[0])},Ue.forEach=function rbTreeForEach(Ee,ze,Be){if(this.root)switch(arguments.length){case 1:return doVisitFull(Ee,this.root);case 2:return doVisitHalf(ze,this._compare,Ee,this.root);case 3:if(this._compare(ze,Be)>=0)return;return doVisit(ze,Be,this._compare,Ee,this.root)}},Object.defineProperty(Ue,"begin",{get:function(){for(var Ee=[],ze=this.root;ze;)Ee.push(ze),ze=ze.left;return new RedBlackTreeIterator(this,Ee)}}),Object.defineProperty(Ue,"end",{get:function(){for(var Ee=[],ze=this.root;ze;)Ee.push(ze),ze=ze.right;return new RedBlackTreeIterator(this,Ee)}}),Ue.at=function(Ee){if(Ee<0)return new RedBlackTreeIterator(this,[]);for(var ze=this.root,Be=[];;){if(Be.push(ze),ze.left){if(Ee=ze.right._count)break;ze=ze.right}return new RedBlackTreeIterator(this,[])},Ue.ge=function(Ee){for(var ze=this._compare,Be=this.root,Ue=[],We=0;Be;){var $e=ze(Ee,Be.key);Ue.push(Be),$e<=0&&(We=Ue.length),Be=$e<=0?Be.left:Be.right}return Ue.length=We,new RedBlackTreeIterator(this,Ue)},Ue.gt=function(Ee){for(var ze=this._compare,Be=this.root,Ue=[],We=0;Be;){var $e=ze(Ee,Be.key);Ue.push(Be),$e<0&&(We=Ue.length),Be=$e<0?Be.left:Be.right}return Ue.length=We,new RedBlackTreeIterator(this,Ue)},Ue.lt=function(Ee){for(var ze=this._compare,Be=this.root,Ue=[],We=0;Be;){var $e=ze(Ee,Be.key);Ue.push(Be),$e>0&&(We=Ue.length),Be=$e<=0?Be.left:Be.right}return Ue.length=We,new RedBlackTreeIterator(this,Ue)},Ue.le=function(Ee){for(var ze=this._compare,Be=this.root,Ue=[],We=0;Be;){var $e=ze(Ee,Be.key);Ue.push(Be),$e>=0&&(We=Ue.length),Be=$e<0?Be.left:Be.right}return Ue.length=We,new RedBlackTreeIterator(this,Ue)},Ue.find=function(Ee){for(var ze=this._compare,Be=this.root,Ue=[];Be;){var We=ze(Ee,Be.key);if(Ue.push(Be),0===We)return new RedBlackTreeIterator(this,Ue);Be=We<=0?Be.left:Be.right}return new RedBlackTreeIterator(this,[])},Ue.remove=function(Ee){var ze=this.find(Ee);return ze?ze.remove():this},Ue.get=function(Ee){for(var ze=this._compare,Be=this.root;Be;){var Ue=ze(Ee,Be.key);if(0===Ue)return Be.value;Be=Ue<=0?Be.left:Be.right}};var We=RedBlackTreeIterator.prototype;function swapNode(Ee,ze){Ee.key=ze.key,Ee.value=ze.value,Ee.left=ze.left,Ee.right=ze.right,Ee._color=ze._color,Ee._count=ze._count}function defaultCompare(Ee,ze){return Eeze?1:0}Object.defineProperty(We,"valid",{get:function(){return this._stack.length>0}}),Object.defineProperty(We,"node",{get:function(){return this._stack.length>0?this._stack[this._stack.length-1]:null},enumerable:!0}),We.clone=function(){return new RedBlackTreeIterator(this.tree,this._stack.slice())},We.remove=function(){var Ee=this._stack;if(0===Ee.length)return this.tree;var ze=new Array(Ee.length),Be=Ee[Ee.length-1];ze[ze.length-1]=new RBNode(Be._color,Be.key,Be.value,Be.left,Be.right,Be._count);for(var Ue=Ee.length-2;Ue>=0;--Ue){(Be=Ee[Ue]).left===Ee[Ue+1]?ze[Ue]=new RBNode(Be._color,Be.key,Be.value,ze[Ue+1],Be.right,Be._count):ze[Ue]=new RBNode(Be._color,Be.key,Be.value,Be.left,ze[Ue+1],Be._count)}if((Be=ze[ze.length-1]).left&&Be.right){var We=ze.length;for(Be=Be.left;Be.right;)ze.push(Be),Be=Be.right;var $e=ze[We-1];ze.push(new RBNode(Be._color,$e.key,$e.value,Be.left,Be.right,Be._count)),ze[We-1].key=Be.key,ze[We-1].value=Be.value;for(Ue=ze.length-2;Ue>=We;--Ue)Be=ze[Ue],ze[Ue]=new RBNode(Be._color,Be.key,Be.value,Be.left,ze[Ue+1],Be._count);ze[We-1].left=ze[We]}if(0===(Be=ze[ze.length-1])._color){var Qe=ze[ze.length-2];Qe.left===Be?Qe.left=null:Qe.right===Be&&(Qe.right=null),ze.pop();for(Ue=0;Ue=0;--$e){if(ze=Ee[$e],0===$e)return void(ze._color=1);if((Be=Ee[$e-1]).left===ze){if((Ue=Be.right).right&&0===Ue.right._color){if(We=(Ue=Be.right=cloneNode(Ue)).right=cloneNode(Ue.right),Be.right=Ue.left,Ue.left=Be,Ue.right=We,Ue._color=Be._color,ze._color=1,Be._color=1,We._color=1,recount(Be),recount(Ue),$e>1)(Qe=Ee[$e-2]).left===Be?Qe.left=Ue:Qe.right=Ue;return void(Ee[$e-1]=Ue)}if(Ue.left&&0===Ue.left._color){if(We=(Ue=Be.right=cloneNode(Ue)).left=cloneNode(Ue.left),Be.right=We.left,Ue.left=We.right,We.left=Be,We.right=Ue,We._color=Be._color,Be._color=1,Ue._color=1,ze._color=1,recount(Be),recount(Ue),recount(We),$e>1)(Qe=Ee[$e-2]).left===Be?Qe.left=We:Qe.right=We;return void(Ee[$e-1]=We)}if(1===Ue._color){if(0===Be._color)return Be._color=1,void(Be.right=repaint(0,Ue));Be.right=repaint(0,Ue);continue}Ue=cloneNode(Ue),Be.right=Ue.left,Ue.left=Be,Ue._color=Be._color,Be._color=0,recount(Be),recount(Ue),$e>1&&((Qe=Ee[$e-2]).left===Be?Qe.left=Ue:Qe.right=Ue),Ee[$e-1]=Ue,Ee[$e]=Be,$e+11)(Qe=Ee[$e-2]).right===Be?Qe.right=Ue:Qe.left=Ue;return void(Ee[$e-1]=Ue)}if(Ue.right&&0===Ue.right._color){if(We=(Ue=Be.left=cloneNode(Ue)).right=cloneNode(Ue.right),Be.left=We.right,Ue.right=We.left,We.right=Be,We.left=Ue,We._color=Be._color,Be._color=1,Ue._color=1,ze._color=1,recount(Be),recount(Ue),recount(We),$e>1)(Qe=Ee[$e-2]).right===Be?Qe.right=We:Qe.left=We;return void(Ee[$e-1]=We)}if(1===Ue._color){if(0===Be._color)return Be._color=1,void(Be.left=repaint(0,Ue));Be.left=repaint(0,Ue);continue}var Qe;Ue=cloneNode(Ue),Be.left=Ue.right,Ue.right=Be,Ue._color=Be._color,Be._color=0,recount(Be),recount(Ue),$e>1&&((Qe=Ee[$e-2]).right===Be?Qe.right=Ue:Qe.left=Ue),Ee[$e-1]=Ue,Ee[$e]=Be,$e+10)return this._stack[this._stack.length-1].key},enumerable:!0}),Object.defineProperty(We,"value",{get:function(){if(this._stack.length>0)return this._stack[this._stack.length-1].value},enumerable:!0}),Object.defineProperty(We,"index",{get:function(){var Ee=0,ze=this._stack;if(0===ze.length){var Be=this.tree.root;return Be?Be._count:0}ze[ze.length-1].left&&(Ee=ze[ze.length-1].left._count);for(var Ue=ze.length-2;Ue>=0;--Ue)ze[Ue+1]===ze[Ue].right&&(++Ee,ze[Ue].left&&(Ee+=ze[Ue].left._count));return Ee},enumerable:!0}),We.next=function(){var Ee=this._stack;if(0!==Ee.length){var ze=Ee[Ee.length-1];if(ze.right)for(ze=ze.right;ze;)Ee.push(ze),ze=ze.left;else for(Ee.pop();Ee.length>0&&Ee[Ee.length-1].right===ze;)ze=Ee[Ee.length-1],Ee.pop()}},Object.defineProperty(We,"hasNext",{get:function(){var Ee=this._stack;if(0===Ee.length)return!1;if(Ee[Ee.length-1].right)return!0;for(var ze=Ee.length-1;ze>0;--ze)if(Ee[ze-1].left===Ee[ze])return!0;return!1}}),We.update=function(Ee){var ze=this._stack;if(0===ze.length)throw new Error("Can't update empty node!");var Be=new Array(ze.length),Ue=ze[ze.length-1];Be[Be.length-1]=new RBNode(Ue._color,Ue.key,Ee,Ue.left,Ue.right,Ue._count);for(var We=ze.length-2;We>=0;--We)(Ue=ze[We]).left===ze[We+1]?Be[We]=new RBNode(Ue._color,Ue.key,Ue.value,Be[We+1],Ue.right,Ue._count):Be[We]=new RBNode(Ue._color,Ue.key,Ue.value,Ue.left,Be[We+1],Ue._count);return new RedBlackTree(this.tree._compare,Be[0])},We.prev=function(){var Ee=this._stack;if(0!==Ee.length){var ze=Ee[Ee.length-1];if(ze.left)for(ze=ze.left;ze;)Ee.push(ze),ze=ze.right;else for(Ee.pop();Ee.length>0&&Ee[Ee.length-1].left===ze;)ze=Ee[Ee.length-1],Ee.pop()}},Object.defineProperty(We,"hasPrev",{get:function(){var Ee=this._stack;if(0===Ee.length)return!1;if(Ee[Ee.length-1].left)return!0;for(var ze=Ee.length-1;ze>0;--ze)if(Ee[ze-1].right===Ee[ze])return!0;return!1}})},c8b8:function(Ee,ze,Be){"use strict";var Ue=Be("c947");Ee.exports=function partition(Ee,ze,Be){var We,$e=Be.flipX,Qe=Be.flipY,rt="dice-slice"===Be.packing,it=Be.pad[Qe?"bottom":"top"],at=Be.pad[$e?"right":"left"],ct=Be.pad[$e?"left":"right"],ft=Be.pad[Qe?"top":"bottom"];rt&&(We=at,at=it,it=We,We=ct,ct=ft,ft=We);var xt=Ue.treemap().tile(function getTilingMethod(Ee,ze){switch(Ee){case"squarify":return Ue.treemapSquarify.ratio(ze);case"binary":return Ue.treemapBinary;case"dice":return Ue.treemapDice;case"slice":return Ue.treemapSlice;default:return Ue.treemapSliceDice}}(Be.packing,Be.squarifyratio)).paddingInner(Be.pad.inner).paddingLeft(at).paddingRight(ct).paddingTop(it).paddingBottom(ft).size(rt?[ze[1],ze[0]]:ze)(Ee);return(rt||$e||Qe)&&function flipTree(Ee,ze,Be){var Ue;Be.swapXY&&(Ue=Ee.x0,Ee.x0=Ee.y0,Ee.y0=Ue,Ue=Ee.x1,Ee.x1=Ee.y1,Ee.y1=Ue);Be.flipX&&(Ue=Ee.x0,Ee.x0=ze[0]-Ee.x1,Ee.x1=ze[0]-Ue);Be.flipY&&(Ue=Ee.y0,Ee.y0=ze[1]-Ee.y1,Ee.y1=ze[1]-Ue);var We=Ee.children;if(We)for(var $e=0;$e=0;)ze+=Be[Ue].value;else ze=1;Ee.value=ze}function hierarchy(Ee,ze){var Be,Ue,We,$e,Qe,rt=new Node(Ee),it=+Ee.value&&(rt.value=Ee.value),at=[rt];for(null==ze&&(ze=defaultChildren);Be=at.pop();)if(it&&(Be.value=+Be.data.value),(We=ze(Be.data))&&(Qe=We.length))for(Be.children=new Array(Qe),$e=Qe-1;$e>=0;--$e)at.push(Ue=Be.children[$e]=new Node(We[$e])),Ue.parent=Be,Ue.depth=Be.depth+1;return rt.eachBefore(computeHeight)}function defaultChildren(Ee){return Ee.children}function copyData(Ee){Ee.data=Ee.data.data}function computeHeight(Ee){var ze=0;do{Ee.height=ze}while((Ee=Ee.parent)&&Ee.height<++ze)}function Node(Ee){this.data=Ee,this.depth=this.height=0,this.parent=null}Node.prototype=hierarchy.prototype={constructor:Node,count:function(){return this.eachAfter(count)},each:function(Ee){var ze,Be,Ue,We,$e=this,Qe=[$e];do{for(ze=Qe.reverse(),Qe=[];$e=ze.pop();)if(Ee($e),Be=$e.children)for(Ue=0,We=Be.length;Ue=0;--Be)We.push(ze[Be]);return this},sum:function(Ee){return this.eachAfter((function(ze){for(var Be=+Ee(ze.data)||0,Ue=ze.children,We=Ue&&Ue.length;--We>=0;)Be+=Ue[We].value;ze.value=Be}))},sort:function(Ee){return this.eachBefore((function(ze){ze.children&&ze.children.sort(Ee)}))},path:function(Ee){for(var ze=this,Be=function leastCommonAncestor(Ee,ze){if(Ee===ze)return Ee;var Be=Ee.ancestors(),Ue=ze.ancestors(),We=null;Ee=Be.pop(),ze=Ue.pop();for(;Ee===ze;)We=Ee,Ee=Be.pop(),ze=Ue.pop();return We}(ze,Ee),Ue=[ze];ze!==Be;)ze=ze.parent,Ue.push(ze);for(var We=Ue.length;Ee!==Be;)Ue.splice(We,0,Ee),Ee=Ee.parent;return Ue},ancestors:function(){for(var Ee=this,ze=[Ee];Ee=Ee.parent;)ze.push(Ee);return ze},descendants:function(){var Ee=[];return this.each((function(ze){Ee.push(ze)})),Ee},leaves:function(){var Ee=[];return this.eachBefore((function(ze){ze.children||Ee.push(ze)})),Ee},links:function(){var Ee=this,ze=[];return Ee.each((function(Be){Be!==Ee&&ze.push({source:Be.parent,target:Be})})),ze},copy:function node_copy(){return hierarchy(this).eachBefore(copyData)}};var Ue=Array.prototype.slice;var enclose=function(Ee){for(var ze,Be,We=0,$e=(Ee=function shuffle(Ee){for(var ze,Be,Ue=Ee.length;Ue;)Be=Math.random()*Ue--|0,ze=Ee[Ue],Ee[Ue]=Ee[Be],Ee[Be]=ze;return Ee}(Ue.call(Ee))).length,Qe=[];We<$e;)ze=Ee[We],Be&&enclosesWeak(Be,ze)?++We:(Be=encloseBasis(Qe=extendBasis(Qe,ze)),We=0);return Be};function extendBasis(Ee,ze){var Be,Ue;if(enclosesWeakAll(ze,Ee))return[ze];for(Be=0;Be0&&Be*Be>Ue*Ue+We*We}function enclosesWeakAll(Ee,ze){for(var Be=0;Be(Qe*=Qe)?(Ue=(at+Qe-We)/(2*at),$e=Math.sqrt(Math.max(0,Qe/at-Ue*Ue)),Be.x=Ee.x-Ue*rt-$e*it,Be.y=Ee.y-Ue*it+$e*rt):(Ue=(at+We-Qe)/(2*at),$e=Math.sqrt(Math.max(0,We/at-Ue*Ue)),Be.x=ze.x+Ue*rt-$e*it,Be.y=ze.y+Ue*it+$e*rt)):(Be.x=ze.x+Be.r,Be.y=ze.y)}function intersects(Ee,ze){var Be=Ee.r+ze.r-1e-6,Ue=ze.x-Ee.x,We=ze.y-Ee.y;return Be>0&&Be*Be>Ue*Ue+We*We}function score(Ee){var ze=Ee._,Be=Ee.next._,Ue=ze.r+Be.r,We=(ze.x*Be.r+Be.x*ze.r)/Ue,$e=(ze.y*Be.r+Be.y*ze.r)/Ue;return We*We+$e*$e}function siblings_Node(Ee){this._=Ee,this.next=null,this.previous=null}function packEnclose(Ee){if(!(We=Ee.length))return 0;var ze,Be,Ue,We,$e,Qe,rt,it,at,ct,ft;if((ze=Ee[0]).x=0,ze.y=0,!(We>1))return ze.r;if(Be=Ee[1],ze.x=-Be.r,Be.x=ze.r,Be.y=0,!(We>2))return ze.r+Be.r;place(Be,ze,Ue=Ee[2]),ze=new siblings_Node(ze),Be=new siblings_Node(Be),Ue=new siblings_Node(Ue),ze.next=Ue.previous=Be,Be.next=ze.previous=Ue,Ue.next=Be.previous=ze;e:for(rt=3;rt0)throw new Error("cycle");return rt}return stratify.id=function(ze){return arguments.length?(Ee=required(ze),stratify):Ee},stratify.parentId=function(Ee){return arguments.length?(ze=required(Ee),stratify):ze},stratify};function tree_defaultSeparation(Ee,ze){return Ee.parent===ze.parent?1:2}function nextLeft(Ee){var ze=Ee.children;return ze?ze[0]:Ee.t}function nextRight(Ee){var ze=Ee.children;return ze?ze[ze.length-1]:Ee.t}function moveSubtree(Ee,ze,Be){var Ue=Be/(ze.i-Ee.i);ze.c-=Ue,ze.s+=Be,Ee.c+=Ue,ze.z+=Be,ze.m+=Be}function nextAncestor(Ee,ze,Be){return Ee.a.parent===ze.parent?Ee.a:Be}function TreeNode(Ee,ze){this._=Ee,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=ze}TreeNode.prototype=Object.create(Node.prototype);var tree=function(){var Ee=tree_defaultSeparation,ze=1,Be=1,Ue=null;function tree(We){var $e=function treeRoot(Ee){for(var ze,Be,Ue,We,$e,Qe=new TreeNode(Ee,0),rt=[Qe];ze=rt.pop();)if(Ue=ze._.children)for(ze.children=new Array($e=Ue.length),We=$e-1;We>=0;--We)rt.push(Be=ze.children[We]=new TreeNode(Ue[We],We)),Be.parent=ze;return(Qe.parent=new TreeNode(null,0)).children=[Qe],Qe}(We);if($e.eachAfter(firstWalk),$e.parent.m=-$e.z,$e.eachBefore(secondWalk),Ue)We.eachBefore(sizeNode);else{var Qe=We,rt=We,it=We;We.eachBefore((function(Ee){Ee.xrt.x&&(rt=Ee),Ee.depth>it.depth&&(it=Ee)}));var at=Qe===rt?1:Ee(Qe,rt)/2,ct=at-Qe.x,ft=ze/(rt.x+at+ct),xt=Be/(it.depth||1);We.eachBefore((function(Ee){Ee.x=(Ee.x+ct)*ft,Ee.y=Ee.depth*xt}))}return We}function firstWalk(ze){var Be=ze.children,Ue=ze.parent.children,We=ze.i?Ue[ze.i-1]:null;if(Be){!function executeShifts(Ee){for(var ze,Be=0,Ue=0,We=Ee.children,$e=We.length;--$e>=0;)(ze=We[$e]).z+=Be,ze.m+=Be,Be+=ze.s+(Ue+=ze.c)}(ze);var $e=(Be[0].z+Be[Be.length-1].z)/2;We?(ze.z=We.z+Ee(ze._,We._),ze.m=ze.z-$e):ze.z=$e}else We&&(ze.z=We.z+Ee(ze._,We._));ze.parent.A=function apportion(ze,Be,Ue){if(Be){for(var We,$e=ze,Qe=ze,rt=Be,it=$e.parent.children[0],at=$e.m,ct=Qe.m,ft=rt.m,xt=it.m;rt=nextRight(rt),$e=nextLeft($e),rt&&$e;)it=nextLeft(it),(Qe=nextRight(Qe)).a=ze,(We=rt.z+ft-$e.z-at+Ee(rt._,$e._))>0&&(moveSubtree(nextAncestor(rt,ze,Ue),ze,We),at+=We,ct+=We),ft+=rt.m,at+=$e.m,xt+=it.m,ct+=Qe.m;rt&&!nextRight(Qe)&&(Qe.t=rt,Qe.m+=ft-ct),$e&&!nextLeft(it)&&(it.t=$e,it.m+=at-xt,Ue=ze)}return Ue}(ze,We,ze.parent.A||Ue[0])}function secondWalk(Ee){Ee._.x=Ee.z+Ee.parent.m,Ee.m+=Ee.parent.m}function sizeNode(Ee){Ee.x*=ze,Ee.y=Ee.depth*Be}return tree.separation=function(ze){return arguments.length?(Ee=ze,tree):Ee},tree.size=function(Ee){return arguments.length?(Ue=!1,ze=+Ee[0],Be=+Ee[1],tree):Ue?null:[ze,Be]},tree.nodeSize=function(Ee){return arguments.length?(Ue=!0,ze=+Ee[0],Be=+Ee[1],tree):Ue?[ze,Be]:null},tree},treemap_slice=function(Ee,ze,Be,Ue,We){for(var $e,Qe=Ee.children,rt=-1,it=Qe.length,at=Ee.value&&(We-Be)/Ee.value;++rtxt&&(xt=rt),er=ct*ct*Ut,(kt=Math.max(xt/er,er/ft))>Lt){ct-=rt;break}Lt=kt}tr.push(Qe={value:ct,dice:it1?Ee:1)},squarify}(Qe),src_treemap=function(){var Ee=rt,ze=!1,Be=1,Ue=1,We=[0],$e=constantZero,Qe=constantZero,it=constantZero,at=constantZero,ct=constantZero;function treemap(Ee){return Ee.x0=Ee.y0=0,Ee.x1=Be,Ee.y1=Ue,Ee.eachBefore(positionNode),We=[0],ze&&Ee.eachBefore(treemap_round),Ee}function positionNode(ze){var Be=We[ze.depth],Ue=ze.x0+Be,rt=ze.y0+Be,ft=ze.x1-Be,xt=ze.y1-Be;ft=ze-1){var it=rt[Ee];return it.x0=Ue,it.y0=We,it.x1=$e,void(it.y1=Qe)}var ct=at[Ee],ft=Be/2+ct,xt=Ee+1,kt=ze-1;for(;xt>>1;at[Lt]Qe-We){var tr=(Ue*er+$e*Ut)/Be;partition(Ee,xt,Ut,Ue,We,tr,Qe),partition(xt,ze,er,tr,We,$e,Qe)}else{var rr=(We*er+Qe*Ut)/Be;partition(Ee,xt,Ut,Ue,We,$e,rr),partition(xt,ze,er,Ue,rr,$e,Qe)}}(0,it,Ee.value,ze,Be,Ue,We)},sliceDice=function(Ee,ze,Be,Ue,We){(1&Ee.depth?treemap_slice:dice)(Ee,ze,Be,Ue,We)},it=function custom(Ee){function resquarify(ze,Be,Ue,We,$e){if((Qe=ze._squarify)&&Qe.ratio===Ee)for(var Qe,rt,it,at,ct,ft=-1,xt=Qe.length,kt=ze.value;++ft1?Ee:1)},resquarify}(Qe);Be.d(ze,"cluster",(function(){return cluster})),Be.d(ze,"hierarchy",(function(){return hierarchy})),Be.d(ze,"pack",(function(){return src_pack})),Be.d(ze,"packSiblings",(function(){return siblings})),Be.d(ze,"packEnclose",(function(){return enclose})),Be.d(ze,"partition",(function(){return src_partition})),Be.d(ze,"stratify",(function(){return src_stratify})),Be.d(ze,"tree",(function(){return tree})),Be.d(ze,"treemap",(function(){return src_treemap})),Be.d(ze,"treemapBinary",(function(){return binary})),Be.d(ze,"treemapDice",(function(){return dice})),Be.d(ze,"treemapSlice",(function(){return treemap_slice})),Be.d(ze,"treemapSliceDice",(function(){return sliceDice})),Be.d(ze,"treemapSquarify",(function(){return rt})),Be.d(ze,"treemapResquarify",(function(){return it}))},c953:function(Ee,ze,Be){"use strict";var Ue=Be("0f37"),We="data-savedcursor";Ee.exports=function overrideCursor(Ee,ze){var Be=Ee.attr(We);if(ze){if(!Be){for(var $e=(Ee.attr("class")||"").split(" "),Qe=0;Qe<$e.length;Qe++){var rt=$e[Qe];0===rt.indexOf("cursor-")&&Ee.attr(We,rt.substr(7)).classed(rt,!1)}Ee.attr(We)||Ee.attr(We,"!!")}Ue(Ee,ze)}else Be&&(Ee.attr(We,null),"!!"===Be?Ue(Ee):Ue(Ee,Be))}},c997:function(Ee,ze,Be){"use strict";Ee.exports=function(Ee,ze){var Be,Ue=Ee[0],We=Ue.z;switch(ze.type){case"levels":var $e=Math.min(We[0][0],We[0][1]);for(Be=0;BeQe.level||Qe.starts.length&&$e===Qe.level)}break;case"constraint":if(Ue.prefixBoundary=!1,Ue.edgepaths.length)return;var rt=Ue.x.length,it=Ue.y.length,at=-1/0,ct=1/0;for(Be=0;Be":kt>at&&(Ue.prefixBoundary=!0);break;case"<":(ktat||Ue.starts.length&&xt===ct)&&(Ue.prefixBoundary=!0);break;case"][":ft=Math.min(kt[0],kt[1]),xt=Math.max(kt[0],kt[1]),ftat&&(Ue.prefixBoundary=!0)}}}},c99f:function(Ee,ze,Be){"use strict";var Ue=Be("fb5a"),We=Be("107c").line,$e=Be("a876"),Qe=Be("94d5").hovertemplateAttrs,rt=Be("94d5").texttemplateAttrs,it=Be("b205c"),at=Be("9092").extendFlat,ct=Be("d115");Ee.exports={x:Ue.x,x0:Ue.x0,dx:Ue.dx,y:Ue.y,y0:Ue.y0,dy:Ue.dy,hovertext:Ue.hovertext,hovertemplate:Qe({},{keys:it.eventDataKeys}),hoverinfo:at({},$e.hoverinfo,{flags:["name","x","y","text","percent initial","percent previous","percent total"]}),textinfo:{valType:"flaglist",flags:["label","text","percent initial","percent previous","percent total","value"],extras:["none"],editType:"plot",arrayOk:!1},texttemplate:rt({editType:"plot"},{keys:it.eventDataKeys.concat(["label","value"])}),text:Ue.text,textposition:at({},Ue.textposition,{dflt:"auto"}),insidetextanchor:at({},Ue.insidetextanchor,{dflt:"middle"}),textangle:at({},Ue.textangle,{dflt:0}),textfont:Ue.textfont,insidetextfont:Ue.insidetextfont,outsidetextfont:Ue.outsidetextfont,constraintext:Ue.constraintext,cliponaxis:Ue.cliponaxis,orientation:at({},Ue.orientation,{}),offset:at({},Ue.offset,{arrayOk:!1}),width:at({},Ue.width,{arrayOk:!1}),marker:Ue.marker,connector:{fillcolor:{valType:"color",editType:"style"},line:{color:at({},We.color,{dflt:ct.defaultLine}),width:at({},We.width,{dflt:0,editType:"plot"}),dash:We.dash,editType:"style"},visible:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},offsetgroup:Ue.offsetgroup,alignmentgroup:Ue.alignmentgroup}},c9bc:function(Ee,ze,Be){"use strict";var Ue=Be("371e"),We=Be("fc26");Ee.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:Be("14b6")}}},layoutAttributes:Be("14b6"),handleDefaults:Be("c4f4"),includeBasePlot:function includeGL3D(Ee,ze){var Be=Ue.subplotsRegistry.gl3d;if(!Be)return;for(var $e=Be.attrRegex,Qe=Object.keys(Ee),rt=0;rt"),color:castHoverOption(rt,"bgcolor")||Qe.addOpacity(ft.color,1),borderColor:castHoverOption(rt,"bordercolor"),fontFamily:castHoverOption(rt,"font.family"),fontSize:castHoverOption(rt,"font.size"),fontColor:castHoverOption(rt,"font.color"),nameLength:castHoverOption(rt,"namelength"),textAlign:castHoverOption(rt,"align"),idealAlign:Ue.event.x"),color:castHoverOption(Qe,"bgcolor")||We.tinyColorHue,borderColor:castHoverOption(Qe,"bordercolor"),fontFamily:castHoverOption(Qe,"font.family"),fontSize:castHoverOption(Qe,"font.size"),fontColor:castHoverOption(Qe,"font.color"),nameLength:castHoverOption(Qe,"namelength"),textAlign:castHoverOption(Qe,"align"),idealAlign:"left",hovertemplate:Qe.hovertemplate,hovertemplateLabels:Lt,eventData:[We.node]},{container:Be._hoverlayer.node(),outerContainer:Be._paper.node(),gd:Ee});makeTranslucent(Ut,.85),makeTextContrasty(Ut)}}},unhover:function(ze,We,Qe){!1!==Ee._fullLayout.hovermode&&(Ue.select(ze).call(nodeNonHoveredStyle,We,Qe),"skip"!==We.node.trace.node.hoverinfo&&(We.node.fullData=We.node.trace,Ee.emit("plotly_unhover",{event:Ue.event,points:[We.node]})),$e.loneUnhover(Be._hoverlayer.node()))},select:function(ze,Be,We){var Qe=Be.node;Qe.originalEvent=Ue.event,Ee._hoverdata=[Qe],Ue.select(ze).call(nodeNonHoveredStyle,Be,We),$e.click(Ee,{target:!0})}}})}},c9eb:function(Ee,ze,Be){var Ue=Be("e98f");ze.pointVertex=Ue(["precision mediump float;\n#define GLSLIFY 1\n\nattribute vec2 position;\n\nuniform mat3 matrix;\nuniform float pointSize;\nuniform float pointCloud;\n\nhighp float rand(vec2 co) {\n highp float a = 12.9898;\n highp float b = 78.233;\n highp float c = 43758.5453;\n highp float d = dot(co.xy, vec2(a, b));\n highp float e = mod(d, 3.14);\n return fract(sin(e) * c);\n}\n\nvoid main() {\n vec3 hgPosition = matrix * vec3(position, 1);\n gl_Position = vec4(hgPosition.xy, 0, hgPosition.z);\n // if we don't jitter the point size a bit, overall point cloud\n // saturation 'jumps' on zooming, which is disturbing and confusing\n gl_PointSize = pointSize * ((19.5 + rand(position)) / 20.0);\n if(pointCloud != 0.0) { // pointCloud is truthy\n // get the same square surface as circle would be\n gl_PointSize *= 0.886;\n }\n}"]),ze.pointFragment=Ue(["precision mediump float;\n#define GLSLIFY 1\n\nuniform vec4 color, borderColor;\nuniform float centerFraction;\nuniform float pointCloud;\n\nvoid main() {\n float radius;\n vec4 baseColor;\n if(pointCloud != 0.0) { // pointCloud is truthy\n if(centerFraction == 1.0) {\n gl_FragColor = color;\n } else {\n gl_FragColor = mix(borderColor, color, centerFraction);\n }\n } else {\n radius = length(2.0 * gl_PointCoord.xy - 1.0);\n if(radius > 1.0) {\n discard;\n }\n baseColor = mix(borderColor, color, step(radius, centerFraction));\n gl_FragColor = vec4(baseColor.rgb * baseColor.a, baseColor.a);\n }\n}\n"]),ze.pickVertex=Ue(["precision mediump float;\n#define GLSLIFY 1\n\nattribute vec2 position;\nattribute vec4 pickId;\n\nuniform mat3 matrix;\nuniform float pointSize;\nuniform vec4 pickOffset;\n\nvarying vec4 fragId;\n\nvoid main() {\n vec3 hgPosition = matrix * vec3(position, 1);\n gl_Position = vec4(hgPosition.xy, 0, hgPosition.z);\n gl_PointSize = pointSize;\n\n vec4 id = pickId + pickOffset;\n id.y += floor(id.x / 256.0);\n id.x -= floor(id.x / 256.0) * 256.0;\n\n id.z += floor(id.y / 256.0);\n id.y -= floor(id.y / 256.0) * 256.0;\n\n id.w += floor(id.z / 256.0);\n id.z -= floor(id.z / 256.0) * 256.0;\n\n fragId = id;\n}\n"]),ze.pickFragment=Ue(["precision mediump float;\n#define GLSLIFY 1\n\nvarying vec4 fragId;\n\nvoid main() {\n float radius = length(2.0 * gl_PointCoord.xy - 1.0);\n if(radius > 1.0) {\n discard;\n }\n gl_FragColor = fragId / 255.0;\n}\n"])},ca23:function(Ee,ze,Be){"use strict";Ee.exports=function monotoneConvexHull2D(Ee){var ze=Ee.length;if(ze<3){for(var Be=new Array(ze),We=0;We1&&Ue(Ee[Qe[ct-2]],Ee[Qe[ct-1]],at)<=0;)ct-=1,Qe.pop();for(Qe.push(it),ct=rt.length;ct>1&&Ue(Ee[rt[ct-2]],Ee[rt[ct-1]],at)>=0;)ct-=1,rt.pop();rt.push(it)}Be=new Array(rt.length+Qe.length-2);for(var ft=0,xt=(We=0,Qe.length);We0;--kt)Be[ft++]=rt[kt];return Be};var Ue=Be("92ba")[3]},ca39:function(Ee,ze,Be){"use strict";Ee.exports=function convexHullnD(Ee,ze){try{return Ue(Ee,!0)}catch(Qe){var Be=We(Ee);if(Be.length<=ze)return[];var $e=function permute(Ee,ze){for(var Be=Ee.length,Ue=new Array(Be),We=0;We=ze[it]&&(rt+=1);$e[Qe]=rt}}return Ee}(Ue($e,!0),Be)}};var Ue=Be("0000"),We=Be("7899")},ca67:function(Ee,ze,Be){"use strict";var Ue=Be("4248"),We={getDelay:Ue.getDelay,getRedrawFunc:Ue.getRedrawFunc,clone:Be("d18e"),toSVG:Be("cb04"),svgToImg:Be("4ebd"),toImage:Be("ee92"),downloadImage:Be("ad91")};Ee.exports=We},ca84:function(Ee,ze,Be){var Ue=Be("5135"),We=Be("fc6a"),$e=Be("4d64").indexOf,Qe=Be("d012");Ee.exports=function(Ee,ze){var Be,rt=We(Ee),it=0,at=[];for(Be in rt)!Ue(Qe,Be)&&Ue(rt,Be)&&at.push(Be);for(;ze.length>it;)Ue(rt,Be=ze[it++])&&(~$e(at,Be)||at.push(Be));return at}},ca92:function(Ee,ze,Be){"use strict";var Ue=Be("fc26"),We=Be("0642"),$e=Be("fa10"),Qe=Be("0681");Ee.exports=function hoverPoints(Ee,ze,Be,rt,it){var at,ct,ft=Ee.cd,xt=ft[0].trace,kt=xt.hoveron,Lt=-1!==kt.indexOf("violins"),Ut=-1!==kt.indexOf("kde"),er=[];if(Lt||Ut){var tr=$e.hoverOnBoxes(Ee,ze,Be,rt);if(Ut&&tr.length>0){var rr,ar,Lr,Qr,on,sn=Ee.xa,cn=Ee.ya;"h"===xt.orientation?(on=ze,rr="y",Lr=cn,ar="x",Qr=sn):(on=Be,rr="x",Lr=sn,ar="y",Qr=cn);var un=ft[Ee.index];if(on>=un.span[0]&&on<=un.span[1]){var hn=Ue.extendFlat({},Ee),dn=Qr.c2p(on,!0),vn=Qe.getKdeValue(un,xt,on),yn=Qe.getPositionOnKdePath(un,xt,dn),_n=Lr._offset,Mn=Lr._length;hn[rr+"0"]=yn[0],hn[rr+"1"]=yn[1],hn[ar+"0"]=hn[ar+"1"]=dn,hn[ar+"Label"]=ar+": "+We.hoverLabelText(Qr,on)+", "+ft[0].t.labels.kde+" "+vn.toFixed(3),hn.spikeDistance=tr[0].spikeDistance;var Cn=rr+"Spike";hn[Cn]=tr[0][Cn],tr[0].spikeDistance=void 0,tr[0][Cn]=void 0,hn.hovertemplate=!1,er.push(hn),(ct={stroke:Ee.color})[rr+"1"]=Ue.constrain(_n+yn[0],_n,_n+Mn),ct[rr+"2"]=Ue.constrain(_n+yn[1],_n,_n+Mn),ct[ar+"1"]=ct[ar+"2"]=Qr._offset+dn}}Lt&&(er=er.concat(tr))}-1!==kt.indexOf("points")&&(at=$e.hoverOnPoints(Ee,ze,Be));var En=it.selectAll(".violinline-"+xt.uid).data(ct?[0]:[]);return En.enter().append("line").classed("violinline-"+xt.uid,!0).attr("stroke-width",1.5),En.exit().remove(),En.attr(ct),"closest"===rt?at?[at]:er:at?(er.push(at),er):er}},cac1:function(Ee,ze,Be){Ee.exports=Be("615d")},caf7:function(Ee,ze,Be){"use strict";var Ue=Be("551a"),We=Be("765f").parseColorScale,$e=Be("f977"),Qe=Be("c258").extractOpts,rt=Be("569b"),findNearestOnAxis=function(Ee,ze){for(var Be=ze.length-1;Be>0;Be--){var Ue=Math.min(ze[Be],ze[Be-1]),We=Math.max(ze[Be],ze[Be-1]);if(We>Ue&&Ue-1}function mapValue(Ee,ze){return null===Ee?ze:Ee}function drawTri(ze,Be,Ue){beginGroup();var We,$e,Qe,it=[Be],at=[Ue];if(rt>=1)it=[Be],at=[Ue];else if(rt>0){var ct=function createOpenTri(Ee,ze){var Be=Ee[0],Ue=Ee[1],We=Ee[2],$e=function getCenter(Ee,ze,Be){for(var Ue=[],We=0;We-1?Ue[kt]:findVertexId(Lt,er,tr);xt[kt]=ar>-1?ar:addVertex(Lt,er,tr,mapValue(ze,rr))}We=xt[0],$e=xt[1],Qe=xt[2],Ee._meshI.push(We),Ee._meshJ.push($e),Ee._meshK.push(Qe),++Ut}}function calcIntersection(Ee,ze,Be,Ue){var We=Ee[3];WeUe&&(We=Ue);for(var $e=(Ee[3]-We)/(Ee[3]-ze[3]+1e-9),Qe=[],rt=0;rt<4;rt++)Qe[rt]=(1-$e)*Ee[rt]+$e*ze[rt];return Qe}function inRange(Ee,ze,Be){return Ee>=ze&&Ee<=Be}function almostInFinalRange(Ee){var ze=.001*(hn-un);return Ee>=un-ze&&Ee<=hn+ze}function getXYZV(ze){for(var Be=[],Ue=0;Ue<4;Ue++){var We=ze[Ue];Be.push([Ee._x[We],Ee._y[We],Ee._z[We],Ee._value[We]])}return Be}function tryCreateTri(Ee,ze,Be,Ue,We,$e){$e||($e=1),Be=[-1,-1,-1];var Qe=!1,rt=[inRange(ze[0][3],Ue,We),inRange(ze[1][3],Ue,We),inRange(ze[2][3],Ue,We)];if(!rt[0]&&!rt[1]&&!rt[2])return!1;var tryDrawTri=function(Ee,ze,Be){return almostInFinalRange(ze[0][3])&&almostInFinalRange(ze[1][3])&&almostInFinalRange(ze[2][3])?(drawTri(Ee,ze,Be),!0):$e<3&&tryCreateTri(Ee,ze,Be,un,hn,++$e)};if(rt[0]&&rt[1]&&rt[2])return tryDrawTri(Ee,ze,Be)||Qe;var it=!1;return[[0,1,2],[2,0,1],[1,2,0]].forEach((function($e){if(rt[$e[0]]&&rt[$e[1]]&&!rt[$e[2]]){var at=ze[$e[0]],ct=ze[$e[1]],ft=ze[$e[2]],xt=calcIntersection(ft,at,Ue,We),kt=calcIntersection(ft,ct,Ue,We);Qe=tryDrawTri(Ee,[kt,xt,at],[-1,-1,Be[$e[0]]])||Qe,Qe=tryDrawTri(Ee,[at,ct,kt],[Be[$e[0]],Be[$e[1]],-1])||Qe,it=!0}})),it||[[0,1,2],[1,2,0],[2,0,1]].forEach((function($e){if(rt[$e[0]]&&!rt[$e[1]]&&!rt[$e[2]]){var at=ze[$e[0]],ct=ze[$e[1]],ft=ze[$e[2]],xt=calcIntersection(ct,at,Ue,We),kt=calcIntersection(ft,at,Ue,We);Qe=tryDrawTri(Ee,[kt,xt,at],[-1,-1,Be[$e[0]]])||Qe,it=!0}})),Qe}function tryCreateTetra(Ee,ze,Be,Ue){var We=!1,$e=getXYZV(ze),Qe=[inRange($e[0][3],Be,Ue),inRange($e[1][3],Be,Ue),inRange($e[2][3],Be,Ue),inRange($e[3][3],Be,Ue)];if(!(Qe[0]||Qe[1]||Qe[2]||Qe[3]))return We;if(Qe[0]&&Qe[1]&&Qe[2]&&Qe[3])return Lt&&(We=function drawTetra(Ee,ze,Be){var makeTri=function(Ue,We,$e){drawTri(Ee,[ze[Ue],ze[We],ze[$e]],[Be[Ue],Be[We],Be[$e]])};makeTri(0,1,2),makeTri(3,0,1),makeTri(2,3,0),makeTri(1,2,3)}(Ee,$e,ze)||We),We;var rt=!1;return[[0,1,2,3],[3,0,1,2],[2,3,0,1],[1,2,3,0]].forEach((function(it){if(Qe[it[0]]&&Qe[it[1]]&&Qe[it[2]]&&!Qe[it[3]]){var at=$e[it[0]],ct=$e[it[1]],ft=$e[it[2]],xt=$e[it[3]];if(Lt)We=drawTri(Ee,[at,ct,ft],[ze[it[0]],ze[it[1]],ze[it[2]]])||We;else{var kt=calcIntersection(xt,at,Be,Ue),Ut=calcIntersection(xt,ct,Be,Ue),er=calcIntersection(xt,ft,Be,Ue);We=drawTri(null,[kt,Ut,er],[-1,-1,-1])||We}rt=!0}})),rt?We:([[0,1,2,3],[1,2,3,0],[2,3,0,1],[3,0,1,2],[0,2,3,1],[1,3,2,0]].forEach((function(it){if(Qe[it[0]]&&Qe[it[1]]&&!Qe[it[2]]&&!Qe[it[3]]){var at=$e[it[0]],ct=$e[it[1]],ft=$e[it[2]],xt=$e[it[3]],kt=calcIntersection(ft,at,Be,Ue),Ut=calcIntersection(ft,ct,Be,Ue),er=calcIntersection(xt,ct,Be,Ue),tr=calcIntersection(xt,at,Be,Ue);Lt?(We=drawTri(Ee,[at,tr,kt],[ze[it[0]],-1,-1])||We,We=drawTri(Ee,[ct,Ut,er],[ze[it[1]],-1,-1])||We):We=function drawQuad(Ee,ze,Be){var makeTri=function(Ue,We,$e){drawTri(Ee,[ze[Ue],ze[We],ze[$e]],[Be[Ue],Be[We],Be[$e]])};makeTri(0,1,2),makeTri(2,3,0)}(null,[kt,Ut,er,tr],[-1,-1,-1,-1])||We,rt=!0}})),rt||[[0,1,2,3],[1,2,3,0],[2,3,0,1],[3,0,1,2]].forEach((function(it){if(Qe[it[0]]&&!Qe[it[1]]&&!Qe[it[2]]&&!Qe[it[3]]){var at=$e[it[0]],ct=$e[it[1]],ft=$e[it[2]],xt=$e[it[3]],kt=calcIntersection(ct,at,Be,Ue),Ut=calcIntersection(ft,at,Be,Ue),er=calcIntersection(xt,at,Be,Ue);Lt?(We=drawTri(Ee,[at,kt,Ut],[ze[it[0]],-1,-1])||We,We=drawTri(Ee,[at,Ut,er],[ze[it[0]],-1,-1])||We,We=drawTri(Ee,[at,er,kt],[ze[it[0]],-1,-1])||We):We=drawTri(null,[kt,Ut,er],[-1,-1,-1])||We,rt=!0}})),We)}function addCube(Ee,ze,Be,Ue,We,$e,Qe,rt,it,at,ct){var ft=!1;return kt&&(styleIncludes(Ee,"A")&&(ft=tryCreateTetra(null,[ze,Be,Ue,$e],at,ct)||ft),styleIncludes(Ee,"B")&&(ft=tryCreateTetra(null,[Be,Ue,We,it],at,ct)||ft),styleIncludes(Ee,"C")&&(ft=tryCreateTetra(null,[Be,$e,Qe,it],at,ct)||ft),styleIncludes(Ee,"D")&&(ft=tryCreateTetra(null,[Ue,$e,rt,it],at,ct)||ft),styleIncludes(Ee,"E")&&(ft=tryCreateTetra(null,[Be,Ue,$e,it],at,ct)||ft)),Lt&&(ft=tryCreateTetra(Ee,[Be,Ue,$e,it],at,ct)||ft),ft}function addRect(Ee,ze,Be,Ue,We,$e,Qe,rt){return[!0===rt[0]||tryCreateTri(Ee,getXYZV([ze,Be,Ue]),[ze,Be,Ue],$e,Qe),!0===rt[1]||tryCreateTri(Ee,getXYZV([Ue,We,ze]),[Ue,We,ze],$e,Qe)]}function begin2dCell(Ee,ze,Be,Ue,We,$e,Qe,rt,it){return rt?addRect(Ee,ze,Be,We,Ue,$e,Qe,it):addRect(Ee,Be,We,Ue,ze,$e,Qe,it)}function beginSection(Ee,ze,Be,Ue,We,$e,Qe){var rt,it,at,ct,ft=!1,makeSection=function(){ft=tryCreateTri(Ee,[rt,it,at],[-1,-1,-1],We,$e)||ft,ft=tryCreateTri(Ee,[at,ct,rt],[-1,-1,-1],We,$e)||ft},xt=Qe[0],kt=Qe[1],Lt=Qe[2];return xt&&(rt=getBetween(getXYZV([getIndex(ze,Be-0,Ue-0)])[0],getXYZV([getIndex(ze-1,Be-0,Ue-0)])[0],xt),it=getBetween(getXYZV([getIndex(ze,Be-0,Ue-1)])[0],getXYZV([getIndex(ze-1,Be-0,Ue-1)])[0],xt),at=getBetween(getXYZV([getIndex(ze,Be-1,Ue-1)])[0],getXYZV([getIndex(ze-1,Be-1,Ue-1)])[0],xt),ct=getBetween(getXYZV([getIndex(ze,Be-1,Ue-0)])[0],getXYZV([getIndex(ze-1,Be-1,Ue-0)])[0],xt),makeSection()),kt&&(rt=getBetween(getXYZV([getIndex(ze-0,Be,Ue-0)])[0],getXYZV([getIndex(ze-0,Be-1,Ue-0)])[0],kt),it=getBetween(getXYZV([getIndex(ze-0,Be,Ue-1)])[0],getXYZV([getIndex(ze-0,Be-1,Ue-1)])[0],kt),at=getBetween(getXYZV([getIndex(ze-1,Be,Ue-1)])[0],getXYZV([getIndex(ze-1,Be-1,Ue-1)])[0],kt),ct=getBetween(getXYZV([getIndex(ze-1,Be,Ue-0)])[0],getXYZV([getIndex(ze-1,Be-1,Ue-0)])[0],kt),makeSection()),Lt&&(rt=getBetween(getXYZV([getIndex(ze-0,Be-0,Ue)])[0],getXYZV([getIndex(ze-0,Be-0,Ue-1)])[0],Lt),it=getBetween(getXYZV([getIndex(ze-0,Be-1,Ue)])[0],getXYZV([getIndex(ze-0,Be-1,Ue-1)])[0],Lt),at=getBetween(getXYZV([getIndex(ze-1,Be-1,Ue)])[0],getXYZV([getIndex(ze-1,Be-1,Ue-1)])[0],Lt),ct=getBetween(getXYZV([getIndex(ze-1,Be-0,Ue)])[0],getXYZV([getIndex(ze-1,Be-0,Ue-1)])[0],Lt),makeSection()),ft}function begin3dCell(Ee,ze,Be,Ue,We,$e,Qe,rt,it,at,ct,ft){var xt=Ee;return ft?(kt&&"even"===Ee&&(xt=null),addCube(xt,ze,Be,Ue,We,$e,Qe,rt,it,at,ct)):(kt&&"odd"===Ee&&(xt=null),addCube(xt,it,rt,Qe,$e,We,Ue,Be,ze,at,ct))}function draw2dX(Ee,ze,Be,Ue,We){for(var $e=[],Qe=0,rt=0;rtMath.abs(on-cn)?[sn,on]:[on,cn];kt=!0,draw3d(ze,dn[0],dn[1]),kt=!1}}var vn=[[Math.min(un,cn),Math.max(un,cn)],[Math.min(sn,hn),Math.max(sn,hn)]];["x","y","z"].forEach((function(ze){for(var Be=[],Ue=0;Ue0&&(at.push(xt.id),"x"===ze?ct.push([xt.distRatio,0,0]):"y"===ze?ct.push([0,xt.distRatio,0]):ct.push([0,0,xt.distRatio]))}else it=createRange(1,"x"===ze?ar-1:"y"===ze?Lr-1:Qr-1);at.length>0&&(Be[We]="x"===ze?drawSectionX(null,at,$e,Qe,ct,Be[We]):"y"===ze?drawSectionY(null,at,$e,Qe,ct,Be[We]):drawSectionZ(null,at,$e,Qe,ct,Be[We]),We++),it.length>0&&(Be[We]="x"===ze?draw2dX(null,it,$e,Qe,Be[We]):"y"===ze?draw2dY(null,it,$e,Qe,Be[We]):draw2dZ(null,it,$e,Qe,Be[We]),We++)}var kt=Ee.caps[ze];kt.show&&kt.fill&&(setFill(kt.fill),Be[We]="x"===ze?draw2dX(null,[0,ar-1],$e,Qe,Be[We]):"y"===ze?draw2dY(null,[0,Lr-1],$e,Qe,Be[We]):draw2dZ(null,[0,Qr-1],$e,Qe,Be[We]),We++)}})),0===Ut&&emptyVertices(),Ee._meshX=Ue,Ee._meshY=We,Ee._meshZ=$e,Ee._meshIntensity=Qe,Ee._Xs=er,Ee._Ys=tr,Ee._Zs=rr}(),Ee}Ee.exports={findNearestOnAxis:findNearestOnAxis,generateIsoMeshes:generateIsoMeshes,createIsosurfaceTrace:function createIsosurfaceTrace(Ee,ze){var Be=Ee.glplot.gl,We=Ue({gl:Be}),$e=new IsosurfaceTrace(Ee,We,ze.uid);return We._trace=$e,$e.update(ze),Ee.glplot.add(We),$e}}},caff:function(Ee,ze,Be){"use strict";var Ue=Be("fc26"),We=Be("1c1c").handleGroupingDefaults,$e=Be("1c1c").handleText,Qe=Be("076f"),rt=Be("c99f"),it=Be("d115");Ee.exports={supplyDefaults:function supplyDefaults(Ee,ze,Be,We){function coerce(Be,We){return Ue.coerce(Ee,ze,rt,Be,We)}if(Qe(Ee,ze,We,coerce)){coerce("orientation",ze.y&&!ze.x?"v":"h"),coerce("offset"),coerce("width");var at=coerce("text");coerce("hovertext"),coerce("hovertemplate");var ct=coerce("textposition");$e(Ee,ze,We,coerce,ct,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),"none"===ze.textposition||ze.texttemplate||coerce("textinfo",Array.isArray(at)?"text+value":"value");var ft=coerce("marker.color",Be);if(coerce("marker.line.color",it.defaultLine),coerce("marker.line.width"),coerce("connector.visible"))coerce("connector.fillcolor",function defaultFillColor(Ee){var ze=Ue.isArrayOrTypedArray(Ee)?"#000":Ee;return it.addOpacity(ze,.5*it.opacity(ze))}(ft)),coerce("connector.line.width")&&(coerce("connector.line.color"),coerce("connector.line.dash"))}else ze.visible=!1},crossTraceDefaults:function crossTraceDefaults(Ee,ze){var Be,$e;function coerce(Ee){return Ue.coerce($e._input,$e,rt,Ee)}if("group"===ze.funnelmode)for(var Qe=0;Qe")?"":ze.html(Ee).text()}));return ze.remove(),Be}(sn))).replace(at,"'"),We.isIE()&&(sn=(sn=(sn=sn.replace(/"/gi,"'")).replace(/(\('#)([^']*)('\))/gi,'("#$2")')).replace(/(\\')/gi,'"')),sn}},cb34:function(Ee,ze,Be){"use strict";var Ue=Be("fc26"),We=Ue.extendFlat,$e=Ue.isPlainObject,Qe={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},rt={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},it=Qe.flags.slice().concat(["fullReplot"]),at=rt.flags.slice().concat("layoutReplot");function falseObj(Ee){for(var ze={},Be=0;Be0||Ue.inbox(Be-Qe.y0,Be-(Qe.y0+Qe.h*rt.dy),0)>0)){var ct=Math.floor((ze-Qe.x0)/rt.dx),ft=Math.floor(Math.abs(Be-Qe.y0)/rt.dy);if(Qe.z[ft][ct]){var xt,kt=Qe.hi||rt.hoverinfo;if(kt){var Lt=kt.split("+");-1!==Lt.indexOf("all")&&(Lt=["color"]),-1!==Lt.indexOf("color")&&(xt=!0)}var Ut,er=rt.colormodel,tr=er.length,rr=rt._scaler(Qe.z[ft][ct]),ar=$e.colormodel[er].suffix,Lr=[];(rt.hovertemplate||xt)&&(Lr.push("["+[rr[0]+ar[0],rr[1]+ar[1],rr[2]+ar[2]].join(", ")),4===tr&&Lr.push(", "+rr[3]+ar[3]),Lr.push("]"),Lr=Lr.join(""),Ee.extraText=er.toUpperCase()+": "+Lr),Array.isArray(rt.hovertext)&&Array.isArray(rt.hovertext[ft])?Ut=rt.hovertext[ft][ct]:Array.isArray(rt.text)&&Array.isArray(rt.text[ft])&&(Ut=rt.text[ft][ct]);var Qr=at.c2p(Qe.y0+(ft+.5)*rt.dy),on=Qe.x0+(ct+.5)*rt.dx,sn=Qe.y0+(ft+.5)*rt.dy,cn="["+Qe.z[ft][ct].slice(0,rt.colormodel.length).join(", ")+"]";return[We.extendFlat(Ee,{index:[ft,ct],x0:it.c2p(Qe.x0+ct*rt.dx),x1:it.c2p(Qe.x0+(ct+1)*rt.dx),y0:Qr,y1:Qr,color:rr,xVal:on,xLabelVal:on,yVal:sn,yLabelVal:sn,zLabelVal:cn,text:Ut,hovertemplateLabels:{zLabel:cn,colorLabel:Lr,"color[0]Label":rr[0]+ar[0],"color[1]Label":rr[1]+ar[1],"color[2]Label":rr[2]+ar[2],"color[3]Label":rr[3]+ar[3]}})]}}}},cbbe:function(Ee,ze,Be){"use strict";Ee.exports=function(Ee){return Ee||0===Ee?Ee.toString():""}},cbc3:function(Ee){Ee.exports=JSON.parse('["normal","condensed","semi-condensed","extra-condensed","ultra-condensed","expanded","semi-expanded","extra-expanded","ultra-expanded"]')},cbd4:function(Ee,ze,Be){"use strict";var Ue=Be("fc26"),We=Be("a462"),$e=Be("2093");Ee.exports=function supplyDefaults(Ee,ze,Be,Qe){var rt=Ue.extendFlat({},Qe.hoverlabel);ze.hovertemplate&&(rt.namelength=-1),$e(Ee,ze,(function coerce(Be,$e){return Ue.coerce(Ee,ze,We,Be,$e)}),rt)}},cbeb:function(Ee,ze,Be){"use strict";var Ue=Be("c01c"),We=Be("a026");Ee.exports=function robustDotProduct(Ee,ze){for(var Be=Ue(Ee[0],ze[0]),$e=1;$e>>1,x=a[m]"];return We?ze.indexOf("c")<0?$e.push(";if(x===y){return m}else if(x<=y){"):$e.push(";var p=c(x,y);if(p===0){return m}else if(p<=0){"):$e.push(";if(",ze,"){i=m;"),Be?$e.push("l=m+1}else{h=m-1}"):$e.push("h=m-1}else{l=m+1}"),$e.push("}"),We?$e.push("return -1};"):$e.push("return i};"),$e.join("")}function compileBoundsSearch(Ee,ze,Be,Ue){return new Function([compileSearch("A","x"+Ee+"y",ze,["y"],Ue),compileSearch("P","c(x,y)"+Ee+"0",ze,["y","c"],Ue),"function dispatchBsearch",Be,"(a,y,c,l,h){if(typeof(c)==='function'){return P(a,(l===void 0)?0:l|0,(h===void 0)?a.length-1:h|0,y,c)}else{return A(a,(c===void 0)?0:c|0,(l===void 0)?a.length-1:l|0,y)}}return dispatchBsearch",Be].join(""))()}Ee.exports={ge:compileBoundsSearch(">=",!1,"GE"),gt:compileBoundsSearch(">",!1,"GT"),lt:compileBoundsSearch("<",!0,"LT"),le:compileBoundsSearch("<=",!0,"LE"),eq:compileBoundsSearch("-",!0,"EQ",!0)}},cca6:function(Ee,ze,Be){var Ue=Be("23e7"),We=Be("60da");Ue({target:"Object",stat:!0,forced:Object.assign!==We},{assign:We})},cd19:function(Ee,ze,Be){"use strict";var Ue=Be("3d2e");Ee.exports={moduleType:"component",name:Ue.name,layoutAttributes:Be("42dc"),supplyLayoutDefaults:Be("dcc2"),draw:Be("fd80")}},cd84:function(Ee,ze,Be){"use strict";var Ue=Be("fc26"),We=Be("0642"),$e=Be("2595").draw;function annAutorange(Ee){var ze=Ee._fullLayout;Ue.filterVisible(ze.annotations).forEach((function(ze){var Be=We.getFromId(Ee,ze.xref),Ue=We.getFromId(Ee,ze.yref);ze._extremes={},Be&&calcAxisExpansion(ze,Be),Ue&&calcAxisExpansion(ze,Ue)}))}function calcAxisExpansion(Ee,ze){var Be,Ue=ze._id,$e=Ue.charAt(0),Qe=Ee[$e],rt=Ee["a"+$e],it=Ee[$e+"ref"],at=Ee["a"+$e+"ref"],ct=Ee["_"+$e+"padplus"],ft=Ee["_"+$e+"padminus"],xt={x:1,y:-1}[$e]*Ee[$e+"shift"],kt=3*Ee.arrowsize*Ee.arrowwidth||0,Lt=kt+xt,Ut=kt-xt,er=3*Ee.startarrowsize*Ee.arrowwidth||0,tr=er+xt,rr=er-xt;if(at===it){var ar=We.findExtremes(ze,[ze.r2c(Qe)],{ppadplus:Lt,ppadminus:Ut}),Lr=We.findExtremes(ze,[ze.r2c(rt)],{ppadplus:Math.max(ct,tr),ppadminus:Math.max(ft,rr)});Be={min:[ar.min[0],Lr.min[0]],max:[ar.max[0],Lr.max[0]]}}else tr=rt?tr+rt:tr,rr=rt?rr-rt:rr,Be=We.findExtremes(ze,[ze.r2c(Qe)],{ppadplus:Math.max(ct,Lt,tr),ppadminus:Math.max(ft,Ut,rr)});Ee._extremes[Ue]=Be}Ee.exports=function calcAutorange(Ee){var ze=Ee._fullLayout;if(Ue.filterVisible(ze.annotations).length&&Ee._fullData.length)return Ue.syncOrAsync([$e,annAutorange],Ee)}},cdaf:function(Ee,ze,Be){"use strict";Ee.exports={scene:{valType:"subplotid",dflt:"scene",editType:"calc+clearAxisTypes"}}},ce20:function(Ee,ze,Be){"use strict";var Ue=Be("215c").hasColorscale,We=Be("3aa8"),$e=Be("424b"),Qe=Be("0cec").setGroupPositions,rt=Be("4136"),it=Be("371e").traceIs,at=Be("fc26").extendFlat;Ee.exports={calc:function calc(Ee,ze){for(var Be=Ee._fullLayout,Qe=ze.subplot,it=Be[Qe].radialaxis,at=Be[Qe].angularaxis,ct=it.makeCalcdata(ze,"r"),ft=at.makeCalcdata(ze,"theta"),xt=ze._length,kt=new Array(xt),Lt=ct,Ut=ft,er=0;er0&&((rr=sn-Qe(Lt)-Qe(Ut))>cn?ar/rr>un&&(er=Lt,tr=Ut,un=ar/rr):ar/sn>un&&(er={val:Lt.val,pad:0},tr={val:Ut.val,pad:0},un=ar/sn));if(ct===ft){var hn=ct-1,dn=ct+1;if(Qr)if(0===ct)$e=[0,1];else{var vn=(ct>0?at:it).reduce((function getMaxPad(Ee,ze){return Math.max(Ee,Qe(ze))}),0),yn=ct/(1-Math.min(.5,vn/sn));$e=ct>0?[0,yn]:[yn,0]}else $e=on?[Math.max(0,hn),Math.max(1,dn)]:[hn,dn]}else Qr?(er.val>=0&&(er={val:0,pad:0}),tr.val<=0&&(tr={val:0,pad:0})):on&&(er.val-un*Qe(er)<0&&(er={val:0,pad:0}),tr.val<=0&&(tr={val:1,pad:0})),un=(tr.val-er.val)/(sn-Qe(er)-Qe(tr)),$e=[er.val-un*Qe(er),tr.val+un*Qe(tr)];return xt&&$e.reverse(),We.simpleMap($e,ze.l2r||Number)}function makePadFn(Ee){var ze=Ee._length/20;return"domain"===Ee.constrain&&Ee._inputDomain&&(ze*=(Ee._inputDomain[1]-Ee._inputDomain[0])/(Ee.domain[1]-Ee.domain[0])),function getPad(Ee){return Ee.pad+(Ee.extrapad?ze:0)}}function concatExtremes(Ee,ze){var Be,Ue,We,$e=ze._id,Qe=Ee._fullData,rt=Ee._fullLayout,it=[],at=[];function _concat(Ee,ze){for(Be=0;Be=Be&&(at.extrapad||!Qe)){rt=!1;break}We(ze,at.val)&&at.pad<=Be&&(Qe||!at.extrapad)&&(Ee.splice(it,1),it--)}if(rt){var ct=$e&&0===ze;Ee.push({val:ze,pad:ct?0:Be,extrapad:!ct&&Qe})}}function goodNumber(Ee){return Ue(Ee)&&Math.abs(Ee)<$e}function lessOrEqual(Ee,ze){return Ee<=ze}function greaterOrEqual(Ee,ze){return Ee>=ze}Ee.exports={getAutoRange:getAutoRange,makePadFn:makePadFn,doAutoRange:function doAutoRange(Ee,ze){if(ze.setScale(),ze.autorange){ze.range=getAutoRange(Ee,ze),ze._r=ze.range.slice(),ze._rl=We.simpleMap(ze._r,ze.r2l);var Be=ze._input,Ue={};Ue[ze._attr+".range"]=ze.range,Ue[ze._attr+".autorange"]=ze.autorange,Qe.call("_storeDirectGUIEdit",Ee.layout,Ee._fullLayout._preGUI,Ue),Be.range=ze.range.slice(),Be.autorange=ze.autorange}var $e=ze._anchorAxis;if($e&&$e.rangeslider){var rt=$e.rangeslider[ze._name];rt&&"auto"===rt.rangemode&&(rt.range=getAutoRange(Ee,ze)),$e._input.rangeslider[ze._name]=We.extendFlat({},rt)}},findExtremes:function findExtremes(Ee,ze,Be){Be||(Be={});Ee._m||Ee.setScale();var We,Qe,rt,it,at,ct,ft,xt,kt,Lt=[],Ut=[],er=ze.length,tr=Be.padded||!1,rr=Be.tozero&&("linear"===Ee.type||"-"===Ee.type),ar="log"===Ee.type,Lr=!1,Qr=Be.vpadLinearized||!1;function makePadAccessor(Ee){if(Array.isArray(Ee))return Lr=!0,function(ze){return Math.max(Number(Ee[ze]||0),0)};var ze=Math.max(Number(Ee||0),0);return function(){return ze}}var on=makePadAccessor((Ee._m>0?Be.ppadplus:Be.ppadminus)||Be.ppad||0),sn=makePadAccessor((Ee._m>0?Be.ppadminus:Be.ppadplus)||Be.ppad||0),cn=makePadAccessor(Be.vpadplus||Be.vpad),un=makePadAccessor(Be.vpadminus||Be.vpad);if(!Lr){if(xt=1/0,kt=-1/0,ar)for(We=0;We0&&(xt=Qe),Qe>kt&&Qe<$e&&(kt=Qe);else for(We=0;We-$e&&(xt=Qe),Qe>kt&&Qe<$e&&(kt=Qe);ze=[xt,kt],er=2}var hn={tozero:rr,extrapad:tr};function addItem(Be){rt=ze[Be],Ue(rt)&&(ct=on(Be),ft=sn(Be),Qr?(it=Ee.c2l(rt)-un(Be),at=Ee.c2l(rt)+cn(Be)):(xt=rt-un(Be),kt=rt+cn(Be),ar&&xt=dn;We--)addItem(We);return{min:Lt,max:Ut,opts:Be}},concatExtremes:concatExtremes}},ce65:function(Ee,ze,Be){"use strict";var Ue=Be("94d5").hovertemplateAttrs,We=Be("94d5").texttemplateAttrs,$e=Be("107c"),Qe=Be("a876"),rt=Be("f4e9"),it=Be("db54").dash,at=Be("9092").extendFlat,ct=$e.marker,ft=$e.line,xt=ct.line;Ee.exports={a:{valType:"data_array",editType:"calc"},b:{valType:"data_array",editType:"calc"},c:{valType:"data_array",editType:"calc"},sum:{valType:"number",dflt:0,min:0,editType:"calc"},mode:at({},$e.mode,{dflt:"markers"}),text:at({},$e.text,{}),texttemplate:We({editType:"plot"},{keys:["a","b","c","text"]}),hovertext:at({},$e.hovertext,{}),line:{color:ft.color,width:ft.width,dash:it,shape:at({},ft.shape,{values:["linear","spline"]}),smoothing:ft.smoothing,editType:"calc"},connectgaps:$e.connectgaps,cliponaxis:$e.cliponaxis,fill:at({},$e.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:$e.fillcolor,marker:at({symbol:ct.symbol,opacity:ct.opacity,maxdisplayed:ct.maxdisplayed,size:ct.size,sizeref:ct.sizeref,sizemin:ct.sizemin,sizemode:ct.sizemode,line:at({width:xt.width,editType:"calc"},rt("marker.line")),gradient:ct.gradient,editType:"calc"},rt("marker")),textfont:$e.textfont,textposition:$e.textposition,selected:$e.selected,unselected:$e.unselected,hoverinfo:at({},Qe.hoverinfo,{flags:["a","b","c","text","name"]}),hoveron:$e.hoveron,hovertemplate:Ue()}},ce83:function(Ee,ze){Ee.exports=function min(Ee,ze,Be){return Ee[0]=Math.min(ze[0],Be[0]),Ee[1]=Math.min(ze[1],Be[1]),Ee[2]=Math.min(ze[2],Be[2]),Ee}},ce8f:function(Ee,ze,Be){"use strict";Ee.exports=function trimLeaves(Ee,ze){for(var Be=Ue(Ee,ze.length),We=new Array(ze.length),$e=new Array(ze.length),Qe=[],rt=0;rt0;){var at=Qe.pop();We[at]=!1;var ct=Be[at];for(rt=0;rt0?Be.pop():new ArrayBuffer(Ee)}function mallocUint8(Ee){return new Uint8Array(mallocArrayBuffer(Ee),0,Ee)}function mallocUint16(Ee){return new Uint16Array(mallocArrayBuffer(2*Ee),0,Ee)}function mallocUint32(Ee){return new Uint32Array(mallocArrayBuffer(4*Ee),0,Ee)}function mallocInt8(Ee){return new Int8Array(mallocArrayBuffer(Ee),0,Ee)}function mallocInt16(Ee){return new Int16Array(mallocArrayBuffer(2*Ee),0,Ee)}function mallocInt32(Ee){return new Int32Array(mallocArrayBuffer(4*Ee),0,Ee)}function mallocFloat(Ee){return new Float32Array(mallocArrayBuffer(4*Ee),0,Ee)}function mallocDouble(Ee){return new Float64Array(mallocArrayBuffer(8*Ee),0,Ee)}function mallocUint8Clamped(Ee){return Qe?new Uint8ClampedArray(mallocArrayBuffer(Ee),0,Ee):mallocUint8(Ee)}function mallocBigUint64(Ee){return rt?new BigUint64Array(mallocArrayBuffer(8*Ee),0,Ee):null}function mallocBigInt64(Ee){return it?new BigInt64Array(mallocArrayBuffer(8*Ee),0,Ee):null}function mallocDataView(Ee){return new DataView(mallocArrayBuffer(Ee),0,Ee)}function mallocBuffer(Ee){Ee=Ue.nextPow2(Ee);var ze=Ue.log2(Ee),Be=ft[ze];return Be.length>0?Be.pop():new $e(Ee)}ze.free=function free(Ee){if($e.isBuffer(Ee))ft[Ue.log2(Ee.length)].push(Ee);else{if("[object ArrayBuffer]"!==Object.prototype.toString.call(Ee)&&(Ee=Ee.buffer),!Ee)return;var ze=Ee.length||Ee.byteLength,Be=0|Ue.log2(ze);ct[Be].push(Ee)}},ze.freeUint8=ze.freeUint16=ze.freeUint32=ze.freeBigUint64=ze.freeInt8=ze.freeInt16=ze.freeInt32=ze.freeBigInt64=ze.freeFloat32=ze.freeFloat=ze.freeFloat64=ze.freeDouble=ze.freeUint8Clamped=ze.freeDataView=function freeTypedArray(Ee){freeArrayBuffer(Ee.buffer)},ze.freeArrayBuffer=freeArrayBuffer,ze.freeBuffer=function freeBuffer(Ee){ft[Ue.log2(Ee.length)].push(Ee)},ze.malloc=function malloc(Ee,ze){if(void 0===ze||"arraybuffer"===ze)return mallocArrayBuffer(Ee);switch(ze){case"uint8":return mallocUint8(Ee);case"uint16":return mallocUint16(Ee);case"uint32":return mallocUint32(Ee);case"int8":return mallocInt8(Ee);case"int16":return mallocInt16(Ee);case"int32":return mallocInt32(Ee);case"float":case"float32":return mallocFloat(Ee);case"double":case"float64":return mallocDouble(Ee);case"uint8_clamped":return mallocUint8Clamped(Ee);case"bigint64":return mallocBigInt64(Ee);case"biguint64":return mallocBigUint64(Ee);case"buffer":return mallocBuffer(Ee);case"data":case"dataview":return mallocDataView(Ee);default:return null}return null},ze.mallocArrayBuffer=mallocArrayBuffer,ze.mallocUint8=mallocUint8,ze.mallocUint16=mallocUint16,ze.mallocUint32=mallocUint32,ze.mallocInt8=mallocInt8,ze.mallocInt16=mallocInt16,ze.mallocInt32=mallocInt32,ze.mallocFloat32=ze.mallocFloat=mallocFloat,ze.mallocFloat64=ze.mallocDouble=mallocDouble,ze.mallocUint8Clamped=mallocUint8Clamped,ze.mallocBigUint64=mallocBigUint64,ze.mallocBigInt64=mallocBigInt64,ze.mallocDataView=mallocDataView,ze.mallocBuffer=mallocBuffer,ze.clearCache=function clearCache(){for(var Ee=0;Ee<32;++Ee)at.UINT8[Ee].length=0,at.UINT16[Ee].length=0,at.UINT32[Ee].length=0,at.INT8[Ee].length=0,at.INT16[Ee].length=0,at.INT32[Ee].length=0,at.FLOAT[Ee].length=0,at.DOUBLE[Ee].length=0,at.BIGUINT64[Ee].length=0,at.BIGINT64[Ee].length=0,at.UINT8C[Ee].length=0,ct[Ee].length=0,ft[Ee].length=0}}).call(this,Be("c8ba"))},cebf:function(Ee,ze,Be){"use strict";var Ue=Be("6e58"),We=Be("83d1"),$e=Be("d115"),Qe=Be("52e8"),rt=Qe.stylePoints,it=Qe.styleText;Ee.exports=function style(Ee,ze){ze&&function styleTrace(Ee,ze){var Be=ze[0].trace,Qe=ze[0].node3;Qe.style("opacity",ze[0].trace.opacity),rt(Qe,Be,Ee),it(Qe,Be,Ee),Qe.selectAll("path.js-line").style("fill","none").each((function(Ee){var ze=Ue.select(this),Be=Ee.trace,Qe=Be.line||{};ze.call($e.stroke,Qe.color).call(We.dashLine,Qe.dash||"",Qe.width||0),"none"!==Be.fill&&ze.call($e.fill,Be.fillcolor)}))}(Ee,ze)}},cec7:function(Ee,ze){Ee.exports={AFG:"afghan",ALA:"\\b\\wland",ALB:"albania",DZA:"algeria",ASM:"^(?=.*americ).*samoa",AND:"andorra",AGO:"angola",AIA:"anguill?a",ATA:"antarctica",ATG:"antigua",ARG:"argentin",ARM:"armenia",ABW:"^(?!.*bonaire).*\\baruba",AUS:"australia",AUT:"^(?!.*hungary).*austria|\\baustri.*\\bemp",AZE:"azerbaijan",BHS:"bahamas",BHR:"bahrain",BGD:"bangladesh|^(?=.*east).*paki?stan",BRB:"barbados",BLR:"belarus|byelo",BEL:"^(?!.*luxem).*belgium",BLZ:"belize|^(?=.*british).*honduras",BEN:"benin|dahome",BMU:"bermuda",BTN:"bhutan",BOL:"bolivia",BES:"^(?=.*bonaire).*eustatius|^(?=.*carib).*netherlands|\\bbes.?islands",BIH:"herzegovina|bosnia",BWA:"botswana|bechuana",BVT:"bouvet",BRA:"brazil",IOT:"british.?indian.?ocean",BRN:"brunei",BGR:"bulgaria",BFA:"burkina|\\bfaso|upper.?volta",BDI:"burundi",CPV:"verde",KHM:"cambodia|kampuchea|khmer",CMR:"cameroon",CAN:"canada",CYM:"cayman",CAF:"\\bcentral.african.republic",TCD:"\\bchad",CHL:"\\bchile",CHN:"^(?!.*\\bmac)(?!.*\\bhong)(?!.*\\btai)(?!.*\\brep).*china|^(?=.*peo)(?=.*rep).*china",CXR:"christmas",CCK:"\\bcocos|keeling",COL:"colombia",COM:"comoro",COG:"^(?!.*\\bdem)(?!.*\\bd[\\.]?r)(?!.*kinshasa)(?!.*zaire)(?!.*belg)(?!.*l.opoldville)(?!.*free).*\\bcongo",COK:"\\bcook",CRI:"costa.?rica",CIV:"ivoire|ivory",HRV:"croatia",CUB:"\\bcuba",CUW:"^(?!.*bonaire).*\\bcura(c|ç)ao",CYP:"cyprus",CSK:"czechoslovakia",CZE:"^(?=.*rep).*czech|czechia|bohemia",COD:"\\bdem.*congo|congo.*\\bdem|congo.*\\bd[\\.]?r|\\bd[\\.]?r.*congo|belgian.?congo|congo.?free.?state|kinshasa|zaire|l.opoldville|drc|droc|rdc",DNK:"denmark",DJI:"djibouti",DMA:"dominica(?!n)",DOM:"dominican.rep",ECU:"ecuador",EGY:"egypt",SLV:"el.?salvador",GNQ:"guine.*eq|eq.*guine|^(?=.*span).*guinea",ERI:"eritrea",EST:"estonia",ETH:"ethiopia|abyssinia",FLK:"falkland|malvinas",FRO:"faroe|faeroe",FJI:"fiji",FIN:"finland",FRA:"^(?!.*\\bdep)(?!.*martinique).*france|french.?republic|\\bgaul",GUF:"^(?=.*french).*guiana",PYF:"french.?polynesia|tahiti",ATF:"french.?southern",GAB:"gabon",GMB:"gambia",GEO:"^(?!.*south).*georgia",DDR:"german.?democratic.?republic|democratic.?republic.*germany|east.germany",DEU:"^(?!.*east).*germany|^(?=.*\\bfed.*\\brep).*german",GHA:"ghana|gold.?coast",GIB:"gibraltar",GRC:"greece|hellenic|hellas",GRL:"greenland",GRD:"grenada",GLP:"guadeloupe",GUM:"\\bguam",GTM:"guatemala",GGY:"guernsey",GIN:"^(?!.*eq)(?!.*span)(?!.*bissau)(?!.*portu)(?!.*new).*guinea",GNB:"bissau|^(?=.*portu).*guinea",GUY:"guyana|british.?guiana",HTI:"haiti",HMD:"heard.*mcdonald",VAT:"holy.?see|vatican|papal.?st",HND:"^(?!.*brit).*honduras",HKG:"hong.?kong",HUN:"^(?!.*austr).*hungary",ISL:"iceland",IND:"india(?!.*ocea)",IDN:"indonesia",IRN:"\\biran|persia",IRQ:"\\biraq|mesopotamia",IRL:"(^ireland)|(^republic.*ireland)",IMN:"^(?=.*isle).*\\bman",ISR:"israel",ITA:"italy",JAM:"jamaica",JPN:"japan",JEY:"jersey",JOR:"jordan",KAZ:"kazak",KEN:"kenya|british.?east.?africa|east.?africa.?prot",KIR:"kiribati",PRK:"^(?=.*democrat|people|north|d.*p.*.r).*\\bkorea|dprk|korea.*(d.*p.*r)",KWT:"kuwait",KGZ:"kyrgyz|kirghiz",LAO:"\\blaos?\\b",LVA:"latvia",LBN:"lebanon",LSO:"lesotho|basuto",LBR:"liberia",LBY:"libya",LIE:"liechtenstein",LTU:"lithuania",LUX:"^(?!.*belg).*luxem",MAC:"maca(o|u)",MDG:"madagascar|malagasy",MWI:"malawi|nyasa",MYS:"malaysia",MDV:"maldive",MLI:"\\bmali\\b",MLT:"\\bmalta",MHL:"marshall",MTQ:"martinique",MRT:"mauritania",MUS:"mauritius",MYT:"\\bmayotte",MEX:"\\bmexic",FSM:"fed.*micronesia|micronesia.*fed",MCO:"monaco",MNG:"mongolia",MNE:"^(?!.*serbia).*montenegro",MSR:"montserrat",MAR:"morocco|\\bmaroc",MOZ:"mozambique",MMR:"myanmar|burma",NAM:"namibia",NRU:"nauru",NPL:"nepal",NLD:"^(?!.*\\bant)(?!.*\\bcarib).*netherlands",ANT:"^(?=.*\\bant).*(nether|dutch)",NCL:"new.?caledonia",NZL:"new.?zealand",NIC:"nicaragua",NER:"\\bniger(?!ia)",NGA:"nigeria",NIU:"niue",NFK:"norfolk",MNP:"mariana",NOR:"norway",OMN:"\\boman|trucial",PAK:"^(?!.*east).*paki?stan",PLW:"palau",PSE:"palestin|\\bgaza|west.?bank",PAN:"panama",PNG:"papua|new.?guinea",PRY:"paraguay",PER:"peru",PHL:"philippines",PCN:"pitcairn",POL:"poland",PRT:"portugal",PRI:"puerto.?rico",QAT:"qatar",KOR:"^(?!.*d.*p.*r)(?!.*democrat)(?!.*people)(?!.*north).*\\bkorea(?!.*d.*p.*r)",MDA:"moldov|b(a|e)ssarabia",REU:"r(e|é)union",ROU:"r(o|u|ou)mania",RUS:"\\brussia|soviet.?union|u\\.?s\\.?s\\.?r|socialist.?republics",RWA:"rwanda",BLM:"barth(e|é)lemy",SHN:"helena",KNA:"kitts|\\bnevis",LCA:"\\blucia",MAF:"^(?=.*collectivity).*martin|^(?=.*france).*martin(?!ique)|^(?=.*french).*martin(?!ique)",SPM:"miquelon",VCT:"vincent",WSM:"^(?!.*amer).*samoa",SMR:"san.?marino",STP:"\\bs(a|ã)o.?tom(e|é)",SAU:"\\bsa\\w*.?arabia",SEN:"senegal",SRB:"^(?!.*monte).*serbia",SYC:"seychell",SLE:"sierra",SGP:"singapore",SXM:"^(?!.*martin)(?!.*saba).*maarten",SVK:"^(?!.*cze).*slovak",SVN:"slovenia",SLB:"solomon",SOM:"somali",ZAF:"south.africa|s\\\\..?africa",SGS:"south.?georgia|sandwich",SSD:"\\bs\\w*.?sudan",ESP:"spain",LKA:"sri.?lanka|ceylon",SDN:"^(?!.*\\bs(?!u)).*sudan",SUR:"surinam|dutch.?guiana",SJM:"svalbard",SWZ:"swaziland",SWE:"sweden",CHE:"switz|swiss",SYR:"syria",TWN:"taiwan|taipei|formosa|^(?!.*peo)(?=.*rep).*china",TJK:"tajik",THA:"thailand|\\bsiam",MKD:"macedonia|fyrom",TLS:"^(?=.*leste).*timor|^(?=.*east).*timor",TGO:"togo",TKL:"tokelau",TON:"tonga",TTO:"trinidad|tobago",TUN:"tunisia",TUR:"turkey",TKM:"turkmen",TCA:"turks",TUV:"tuvalu",UGA:"uganda",UKR:"ukrain",ARE:"emirates|^u\\.?a\\.?e\\.?$|united.?arab.?em",GBR:"united.?kingdom|britain|^u\\.?k\\.?$",TZA:"tanzania",USA:"united.?states\\b(?!.*islands)|\\bu\\.?s\\.?a\\.?\\b|^\\s*u\\.?s\\.?\\b(?!.*islands)",UMI:"minor.?outlying.?is",URY:"uruguay",UZB:"uzbek",VUT:"vanuatu|new.?hebrides",VEN:"venezuela",VNM:"^(?!.*republic).*viet.?nam|^(?=.*socialist).*viet.?nam",VGB:"^(?=.*\\bu\\.?\\s?k).*virgin|^(?=.*brit).*virgin|^(?=.*kingdom).*virgin",VIR:"^(?=.*\\bu\\.?\\s?s).*virgin|^(?=.*states).*virgin",WLF:"futuna|wallis",ESH:"western.sahara",YEM:"^(?!.*arab)(?!.*north)(?!.*sana)(?!.*peo)(?!.*dem)(?!.*south)(?!.*aden)(?!.*\\bp\\.?d\\.?r).*yemen",YMD:"^(?=.*peo).*yemen|^(?!.*rep)(?=.*dem).*yemen|^(?=.*south).*yemen|^(?=.*aden).*yemen|^(?=.*\\bp\\.?d\\.?r).*yemen",YUG:"yugoslavia",ZMB:"zambia|northern.?rhodesia",EAZ:"zanzibar",ZWE:"zimbabwe|^(?!.*northern).*rhodesia"}},cecf:function(Ee,ze,Be){"use strict";var Ue=Be("1a94"),We=Be("96ae"),$e=Function.prototype.bind,Qe=Function.prototype.call,rt=Object.keys,it=Object.prototype.propertyIsEnumerable;Ee.exports=function(Ee,ze){return function(Be,at){var ct,ft=arguments[2],xt=arguments[3];return Be=Object(We(Be)),Ue(at),ct=rt(Be),xt&&ct.sort("function"==typeof xt?$e.call(xt,Be):void 0),"function"!=typeof Ee&&(Ee=ct[Ee]),Qe.call(Ee,ct,(function(Ee,Ue){return it.call(Be,Ee)?Qe.call(at,ft,Be[Ee],Ee,Be,Ue):ze}))}}},cee0:function(Ee,ze,Be){"use strict";Ee.exports=function simplifyPolygon(Ee,ze,Be){for(var $e=ze.length,Qe=Ee.length,rt=new Array($e),it=new Array($e),at=new Array($e),ct=new Array($e),ft=0;ft<$e;++ft)rt[ft]=it[ft]=-1,at[ft]=1/0,ct[ft]=!1;for(ft=0;ft>1:(Ee>>1)-1}function heapDown(Ee){for(var ze=heapWeight(Ee);;){var Be=ze,Ue=2*Ee+1,We=2*(Ee+1),$e=Ee;if(Ue0;){var Be=heapParent(Ee);if(Be>=0)if(ze0){var Ee=Ut[0];return heapSwap(0,tr-1),tr-=1,heapDown(0),Ee}return-1}function heapUpdate(Ee,ze){var Be=Ut[Ee];return at[Be]===ze?Ee:(at[Be]=-1/0,heapUp(Ee),heapPop(),at[Be]=ze,heapUp((tr+=1)-1))}function kill(Ee){if(!ct[Ee]){ct[Ee]=!0;var ze=rt[Ee],Be=it[Ee];rt[Be]>=0&&(rt[Be]=ze),it[ze]>=0&&(it[ze]=Be),er[ze]>=0&&heapUpdate(er[ze],computeWeight(ze)),er[Be]>=0&&heapUpdate(er[Be],computeWeight(Be))}}var Ut=[],er=new Array($e);for(ft=0;ft<$e;++ft){(at[ft]=computeWeight(ft))<1/0?(er[ft]=Ut.length,Ut.push(ft)):er[ft]=-1}var tr=Ut.length;for(ft=tr>>1;ft>=0;--ft)heapDown(ft);for(;;){var rr=heapPop();if(rr<0||at[rr]>Be)break;kill(rr)}var ar=[];for(ft=0;ft<$e;++ft)ct[ft]||(er[ft]=ar.length,ar.push(ze[ft].slice()));ar.length;function tortoiseHare(Ee,ze){if(Ee[ze]<0)return ze;var Be=ze,Ue=ze;do{var We=Ee[Ue];if(!ct[Ue]||We<0||We===Ue)break;if(We=Ee[Ue=We],!ct[Ue]||We<0||We===Ue)break;Ue=We,Be=Ee[Be]}while(Be!==Ue);for(var $e=ze;$e!==Ue;$e=Ee[$e])Ee[$e]=Ue;return Ue}var Lr=[];return Ee.forEach((function(Ee){var ze=tortoiseHare(rt,Ee[0]),Be=tortoiseHare(it,Ee[1]);if(ze>=0&&Be>=0&&ze!==Be){var Ue=er[ze],We=er[Be];Ue!==We&&Lr.push([Ue,We])}})),We.unique(We.normalize(Lr)),{positions:ar,edges:Lr}};var Ue=Be("92ba"),We=Be("ff85")},cef0:function(Ee,ze,Be){"use strict";var Ue=Be("fc26"),We=Be("0642"),$e=Be("d858"),Qe=Be("fdc7");function calcXPaddingOptions(Ee){return calcPaddingOptions(Ee.line.width,Ee.xsizemode,Ee.x0,Ee.x1,Ee.path,!1)}function calcYPaddingOptions(Ee){return calcPaddingOptions(Ee.line.width,Ee.ysizemode,Ee.y0,Ee.y1,Ee.path,!0)}function calcPaddingOptions(Ee,ze,Be,We,rt,it){var at=Ee/2,ct=it;if("pixel"===ze){var ft=rt?Qe.extractPathCoords(rt,it?$e.paramIsY:$e.paramIsX):[Be,We],xt=Ue.aggNums(Math.max,null,ft),kt=Ue.aggNums(Math.min,null,ft),Lt=kt<0?Math.abs(kt)+at:at,Ut=xt>0?xt+at:at;return{ppad:at,ppadplus:ct?Lt:Ut,ppadminus:ct?Ut:Lt}}return{ppad:at}}function shapeBounds(Ee,ze,Be,Ue,We){var rt="category"===Ee.type||"multicategory"===Ee.type?Ee.r2c:Ee.d2c;if(void 0!==ze)return[rt(ze),rt(Be)];if(Ue){var it,at,ct,ft,xt=1/0,kt=-1/0,Lt=Ue.match($e.segmentRE);for("date"===Ee.type&&(rt=Qe.decodeDate(rt)),it=0;itkt&&(kt=ft)));return kt>=xt?[xt,kt]:void 0}}Ee.exports=function calcAutorange(Ee){var ze=Ee._fullLayout,Be=Ue.filterVisible(ze.shapes);if(Be.length&&Ee._fullData.length)for(var Qe=0;Qe>>1,x=a",We?".get(m)":"[m]"];return $e?ze.indexOf("c")<0?Qe.push(";if(x===y){return m}else if(x<=y){"):Qe.push(";var p=c(x,y);if(p===0){return m}else if(p<=0){"):Qe.push(";if(",ze,"){i=m;"),Be?Qe.push("l=m+1}else{h=m-1}"):Qe.push("h=m-1}else{l=m+1}"),Qe.push("}"),$e?Qe.push("return -1};"):Qe.push("return i};"),Qe.join("")}function compileBoundsSearch(Ee,ze,Be,Ue){return new Function([compileSearch("A","x"+Ee+"y",ze,["y"],!1,Ue),compileSearch("B","x"+Ee+"y",ze,["y"],!0,Ue),compileSearch("P","c(x,y)"+Ee+"0",ze,["y","c"],!1,Ue),compileSearch("Q","c(x,y)"+Ee+"0",ze,["y","c"],!0,Ue),"function dispatchBsearch",Be,"(a,y,c,l,h){if(a.shape){if(typeof(c)==='function'){return Q(a,(l===undefined)?0:l|0,(h===undefined)?a.shape[0]-1:h|0,y,c)}else{return B(a,(c===undefined)?0:c|0,(l===undefined)?a.shape[0]-1:l|0,y)}}else{if(typeof(c)==='function'){return P(a,(l===undefined)?0:l|0,(h===undefined)?a.length-1:h|0,y,c)}else{return A(a,(c===undefined)?0:c|0,(l===undefined)?a.length-1:l|0,y)}}}return dispatchBsearch",Be].join(""))()}Ee.exports={ge:compileBoundsSearch(">=",!1,"GE"),gt:compileBoundsSearch(">",!1,"GT"),lt:compileBoundsSearch("<",!0,"LT"),le:compileBoundsSearch("<=",!0,"LE"),eq:compileBoundsSearch("-",!0,"EQ",!0)}},cf8b:function(Ee,ze){Ee.exports=function create(){var Ee=new Float32Array(3);return Ee[0]=0,Ee[1]=0,Ee[2]=0,Ee}},cf9f:function(Ee,ze,Be){"use strict";var Ue=Be("6e58"),We=Be("b5e3"),$e=Be("a5c4"),Qe=Be("fc26"),rt=Be("83d1"),it=Be("66cb"),at=Be("0379");function performPlot(Ee,ze,Be,We){var $e=Ee.map(createParcatsViewModel.bind(0,ze,Be)),it=We.selectAll("g.parcatslayer").data([null]);it.enter().append("g").attr("class","parcatslayer").style("pointer-events","all");var ct=it.selectAll("g.trace.parcats").data($e,key),ft=ct.enter().append("g").attr("class","trace parcats");ct.attr("transform",(function(Ee){return"translate("+Ee.x+", "+Ee.y+")"})),ft.append("g").attr("class","paths");var xt=ct.select("g.paths").selectAll("path.path").data((function(Ee){return Ee.paths}),key);xt.attr("fill",(function(Ee){return Ee.model.color}));var kt=xt.enter().append("path").attr("class","path").attr("stroke-opacity",0).attr("fill",(function(Ee){return Ee.model.color})).attr("fill-opacity",0);stylePathsNoHover(kt),xt.attr("d",(function(Ee){return Ee.svgD})),kt.empty()||xt.sort(compareRawColor),xt.exit().remove(),xt.on("mouseover",mouseoverPath).on("mouseout",mouseoutPath).on("click",clickPath),ft.append("g").attr("class","dimensions");var Lt=ct.select("g.dimensions").selectAll("g.dimension").data((function(Ee){return Ee.dimensions}),key);Lt.enter().append("g").attr("class","dimension"),Lt.attr("transform",(function(Ee){return"translate("+Ee.x+", 0)"})),Lt.exit().remove();var Ut=Lt.selectAll("g.category").data((function(Ee){return Ee.categories}),key),er=Ut.enter().append("g").attr("class","category");Ut.attr("transform",(function(Ee){return"translate(0, "+Ee.y+")"})),er.append("rect").attr("class","catrect").attr("pointer-events","none"),Ut.select("rect.catrect").attr("fill","none").attr("width",(function(Ee){return Ee.width})).attr("height",(function(Ee){return Ee.height})),styleCategoriesNoHover(er);var tr=Ut.selectAll("rect.bandrect").data((function(Ee){return Ee.bands}),key);tr.each((function(){Qe.raiseToTop(this)})),tr.attr("fill",(function(Ee){return Ee.color}));var rr=tr.enter().append("rect").attr("class","bandrect").attr("stroke-opacity",0).attr("fill",(function(Ee){return Ee.color})).attr("fill-opacity",0);tr.attr("fill",(function(Ee){return Ee.color})).attr("width",(function(Ee){return Ee.width})).attr("height",(function(Ee){return Ee.height})).attr("y",(function(Ee){return Ee.y})).attr("cursor",(function(Ee){return"fixed"===Ee.parcatsViewModel.arrangement?"default":"perpendicular"===Ee.parcatsViewModel.arrangement?"ns-resize":"move"})),styleBandsNoHover(rr),tr.exit().remove(),er.append("text").attr("class","catlabel").attr("pointer-events","none");var ar=ze._fullLayout.paper_bgcolor;Ut.select("text.catlabel").attr("text-anchor",(function(Ee){return catInRightDim(Ee)?"start":"end"})).attr("alignment-baseline","middle").style("text-shadow",ar+" -1px 1px 2px, "+ar+" 1px 1px 2px, "+ar+" 1px -1px 2px, "+ar+" -1px -1px 2px").style("fill","rgb(0, 0, 0)").attr("x",(function(Ee){return catInRightDim(Ee)?Ee.width+5:-5})).attr("y",(function(Ee){return Ee.height/2})).text((function(Ee){return Ee.model.categoryLabel})).each((function(Ee){rt.font(Ue.select(this),Ee.parcatsViewModel.categorylabelfont),at.convertToTspans(Ue.select(this),ze)})),er.append("text").attr("class","dimlabel"),Ut.select("text.dimlabel").attr("text-anchor","middle").attr("alignment-baseline","baseline").attr("cursor",(function(Ee){return"fixed"===Ee.parcatsViewModel.arrangement?"default":"ew-resize"})).attr("x",(function(Ee){return Ee.width/2})).attr("y",-5).text((function(Ee,ze){return 0===ze?Ee.parcatsViewModel.model.dimensions[Ee.model.dimensionInd].dimensionLabel:null})).each((function(Ee){rt.font(Ue.select(this),Ee.parcatsViewModel.labelfont)})),Ut.selectAll("rect.bandrect").on("mouseover",mouseoverCategoryBand).on("mouseout",mouseoutCategory),Ut.exit().remove(),Lt.call(Ue.behavior.drag().origin((function(Ee){return{x:Ee.x,y:0}})).on("dragstart",dragDimensionStart).on("drag",dragDimension).on("dragend",dragDimensionEnd)),ct.each((function(Ee){Ee.traceSelection=Ue.select(this),Ee.pathSelection=Ue.select(this).selectAll("g.paths").selectAll("path.path"),Ee.dimensionSelection=Ue.select(this).selectAll("g.dimensions").selectAll("g.dimension")})),ct.exit().remove()}function key(Ee){return Ee.key}function catInRightDim(Ee){var ze=Ee.parcatsViewModel.dimensions.length,Be=Ee.parcatsViewModel.dimensions[ze-1].model.dimensionInd;return Ee.model.dimensionInd===Be}function compareRawColor(Ee,ze){return Ee.model.rawColor>ze.model.rawColor?1:Ee.model.rawColor"),hn=Ue.mouse(ft)[0];$e.loneHover({trace:xt,x:rr-Lt.left+Ut.left,y:ar-Lt.top+Ut.top,text:un,color:Ee.model.color,borderColor:"black",fontFamily:'Monaco, "Courier New", monospace',fontSize:10,fontColor:Lr,idealAlign:hn1&&at.displayInd===it.dimensions.length-1?(Be=Qe.left,We="left"):(Be=Qe.left+Qe.width,We="right");var xt=rt.model.count,kt=rt.model.categoryLabel,Lt=xt/rt.parcatsViewModel.model.count,Ut={countLabel:xt,categoryLabel:kt,probabilityLabel:Lt.toFixed(3)},er=[];-1!==rt.parcatsViewModel.hoverinfoItems.indexOf("count")&&er.push(["Count:",Ut.countLabel].join(" ")),-1!==rt.parcatsViewModel.hoverinfoItems.indexOf("probability")&&er.push(["P("+Ut.categoryLabel+"):",Ut.probabilityLabel].join(" "));var tr=er.join("
");return{trace:ct,x:Be-Ee.left,y:ft-Ee.top,text:tr,color:"lightgray",borderColor:"black",fontFamily:'Monaco, "Courier New", monospace',fontSize:12,fontColor:"black",idealAlign:We,hovertemplate:ct.hovertemplate,hovertemplateLabels:Ut,eventData:[{data:ct._input,fullData:ct,count:xt,category:kt,probability:Lt}]}}function mouseoverCategoryBand(Ee){if(!Ee.parcatsViewModel.dragDimension&&-1===Ee.parcatsViewModel.hoverinfoItems.indexOf("skip")){if(Ue.mouse(this)[1]<-1)return;var ze,Be=Ee.parcatsViewModel.graphDiv,We=Be._fullLayout,rt=We._paperdiv.node().getBoundingClientRect(),at=Ee.parcatsViewModel.hoveron;if("color"===at?(!function styleForColorHovermode(Ee){var ze=Ue.select(Ee).datum(),Be=selectPathsThroughCategoryBandColor(ze);stylePathsHover(Be),Be.each((function(){Qe.raiseToTop(this)})),Ue.select(Ee.parentNode).selectAll("rect.bandrect").filter((function(Ee){return Ee.color===ze.color})).each((function(){Qe.raiseToTop(this),function styleBandsHover(Ee){Ee.attr("stroke","black").attr("stroke-width",1.5)}(Ue.select(this))}))}(this),emitPointsEventColorHovermode(this,"plotly_hover",Ue.event)):(!function styleForCategoryHovermode(Ee){Ue.select(Ee.parentNode).selectAll("rect.bandrect").each((function(Ee){var ze=selectPathsThroughCategoryBandColor(Ee);stylePathsHover(ze),ze.each((function(){Qe.raiseToTop(this)}))})),function styleCategoryHover(Ee){Ee.select("rect.catrect").attr("stroke","black").attr("stroke-width",2.5)}(Ue.select(Ee.parentNode))}(this),emitPointsEventCategoryHovermode(this,"plotly_hover",Ue.event)),-1===Ee.parcatsViewModel.hoverinfoItems.indexOf("none"))"category"===at?ze=createHoverLabelForCategoryHovermode(rt,this):"color"===at?ze=function createHoverLabelForColorHovermode(Ee,ze){var Be,We,$e=ze.getBoundingClientRect(),Qe=Ue.select(ze).datum(),rt=Qe.categoryViewModel,at=rt.parcatsViewModel,ct=at.model.dimensions[rt.model.dimensionInd],ft=at.trace,xt=$e.y+$e.height/2;at.dimensions.length>1&&ct.displayInd===at.dimensions.length-1?(Be=$e.left,We="left"):(Be=$e.left+$e.width,We="right");var kt=rt.model.categoryLabel,Lt=Qe.parcatsViewModel.model.count,Ut=0;Qe.categoryViewModel.bands.forEach((function(Ee){Ee.color===Qe.color&&(Ut+=Ee.count)}));var er=rt.model.count,tr=0;at.pathSelection.each((function(Ee){Ee.model.color===Qe.color&&(tr+=Ee.model.count)}));var rr=Ut/Lt,ar=Ut/tr,Lr=Ut/er,Qr={countLabel:Lt,categoryLabel:kt,probabilityLabel:rr.toFixed(3)},on=[];-1!==rt.parcatsViewModel.hoverinfoItems.indexOf("count")&&on.push(["Count:",Qr.countLabel].join(" ")),-1!==rt.parcatsViewModel.hoverinfoItems.indexOf("probability")&&(on.push("P(color ∩ "+kt+"): "+Qr.probabilityLabel),on.push("P("+kt+" | color): "+ar.toFixed(3)),on.push("P(color | "+kt+"): "+Lr.toFixed(3)));var sn=on.join("
"),cn=it.mostReadable(Qe.color,["black","white"]);return{trace:ft,x:Be-Ee.left,y:xt-Ee.top,text:sn,color:Qe.color,borderColor:"black",fontFamily:'Monaco, "Courier New", monospace',fontColor:cn,fontSize:10,idealAlign:We,hovertemplate:ft.hovertemplate,hovertemplateLabels:Qr,eventData:[{data:ft._input,fullData:ft,category:kt,count:Lt,probability:rr,categorycount:er,colorcount:tr,bandcolorcount:Ut}]}}(rt,this):"dimension"===at&&(ze=function createHoverLabelForDimensionHovermode(Ee,ze){var Be=[];return Ue.select(ze.parentNode.parentNode).selectAll("g.category").select("rect.catrect").each((function(){Be.push(createHoverLabelForCategoryHovermode(Ee,this))})),Be}(rt,this)),ze&&$e.loneHover(ze,{container:We._hoverlayer.node(),outerContainer:We._paper.node(),gd:Be})}}function mouseoutCategory(Ee){var ze=Ee.parcatsViewModel;if(!ze.dragDimension&&(stylePathsNoHover(ze.pathSelection),styleCategoriesNoHover(ze.dimensionSelection.selectAll("g.category")),styleBandsNoHover(ze.dimensionSelection.selectAll("g.category").selectAll("rect.bandrect")),$e.loneUnhover(ze.graphDiv._fullLayout._hoverlayer.node()),ze.pathSelection.sort(compareRawColor),-1===ze.hoverinfoItems.indexOf("skip"))){"color"===Ee.parcatsViewModel.hoveron?emitPointsEventColorHovermode(this,"plotly_unhover",Ue.event):emitPointsEventCategoryHovermode(this,"plotly_unhover",Ue.event)}}function dragDimensionStart(Ee){"fixed"!==Ee.parcatsViewModel.arrangement&&(Ee.dragDimensionDisplayInd=Ee.model.displayInd,Ee.initialDragDimensionDisplayInds=Ee.parcatsViewModel.model.dimensions.map((function(Ee){return Ee.displayInd})),Ee.dragHasMoved=!1,Ee.dragCategoryDisplayInd=null,Ue.select(this).selectAll("g.category").select("rect.catrect").each((function(ze){var Be=Ue.mouse(this)[0],We=Ue.mouse(this)[1];-2<=Be&&Be<=ze.width+2&&-2<=We&&We<=ze.height+2&&(Ee.dragCategoryDisplayInd=ze.model.displayInd,Ee.initialDragCategoryDisplayInds=Ee.model.categories.map((function(Ee){return Ee.displayInd})),ze.model.dragY=ze.y,Qe.raiseToTop(this.parentNode),Ue.select(this.parentNode).selectAll("rect.bandrect").each((function(ze){ze.yft.y+ft.height/2&&(Qe.model.displayInd=ft.model.displayInd,ft.model.displayInd=it),Ee.dragCategoryDisplayInd=Qe.model.displayInd}if(null===Ee.dragCategoryDisplayInd||"freeform"===Ee.parcatsViewModel.arrangement){$e.model.dragX=Ue.event.x;var xt=Ee.parcatsViewModel.dimensions[Be],kt=Ee.parcatsViewModel.dimensions[We];void 0!==xt&&$e.model.dragXkt.x&&($e.model.displayInd=kt.model.displayInd,kt.model.displayInd=Ee.dragDimensionDisplayInd),Ee.dragDimensionDisplayInd=$e.model.displayInd}updateDimensionViewModels(Ee.parcatsViewModel),updatePathViewModels(Ee.parcatsViewModel),updateSvgCategories(Ee.parcatsViewModel),updateSvgPaths(Ee.parcatsViewModel)}}function dragDimensionEnd(Ee){if("fixed"!==Ee.parcatsViewModel.arrangement&&null!==Ee.dragDimensionDisplayInd){Ue.select(this).selectAll("text").attr("font-weight","normal");var ze={},Be=getTraceIndex(Ee.parcatsViewModel),$e=Ee.parcatsViewModel.model.dimensions.map((function(Ee){return Ee.displayInd})),Qe=Ee.initialDragDimensionDisplayInds.some((function(Ee,ze){return Ee!==$e[ze]}));Qe&&$e.forEach((function(Be,Ue){var We=Ee.parcatsViewModel.model.dimensions[Ue].containerInd;ze["dimensions["+We+"].displayindex"]=Be}));var rt=!1;if(null!==Ee.dragCategoryDisplayInd){var it=Ee.model.categories.map((function(Ee){return Ee.displayInd}));if(rt=Ee.initialDragCategoryDisplayInds.some((function(Ee,ze){return Ee!==it[ze]}))){var at=Ee.model.categories.slice().sort((function(Ee,ze){return Ee.displayInd-ze.displayInd})),ct=at.map((function(Ee){return Ee.categoryValue})),ft=at.map((function(Ee){return Ee.categoryLabel}));ze["dimensions["+Ee.model.containerInd+"].categoryarray"]=[ct],ze["dimensions["+Ee.model.containerInd+"].ticktext"]=[ft],ze["dimensions["+Ee.model.containerInd+"].categoryorder"]="array"}}if(-1===Ee.parcatsViewModel.hoverinfoItems.indexOf("skip")&&!Ee.dragHasMoved&&Ee.potentialClickBand&&("color"===Ee.parcatsViewModel.hoveron?emitPointsEventColorHovermode(Ee.potentialClickBand,"plotly_click",Ue.event.sourceEvent):emitPointsEventCategoryHovermode(Ee.potentialClickBand,"plotly_click",Ue.event.sourceEvent)),Ee.model.dragX=null,null!==Ee.dragCategoryDisplayInd)Ee.parcatsViewModel.dimensions[Ee.dragDimensionDisplayInd].categories[Ee.dragCategoryDisplayInd].model.dragY=null,Ee.dragCategoryDisplayInd=null;Ee.dragDimensionDisplayInd=null,Ee.parcatsViewModel.dragDimension=null,Ee.dragHasMoved=null,Ee.potentialClickBand=null,updateDimensionViewModels(Ee.parcatsViewModel),updatePathViewModels(Ee.parcatsViewModel),Ue.transition().duration(300).ease("cubic-in-out").each((function(){updateSvgCategories(Ee.parcatsViewModel,!0),updateSvgPaths(Ee.parcatsViewModel,!0)})).each("end",(function(){(Qe||rt)&&We.restyle(Ee.parcatsViewModel.graphDiv,ze,[Be])}))}}function getTraceIndex(Ee){for(var ze,Be=Ee.graphDiv._fullData,Ue=0;Ue=0;rt--)ct+="C"+at[rt]+","+(ze[rt+1]+We)+" "+it[rt]+","+(ze[rt]+We)+" "+(Ee[rt]+Be[rt])+","+(ze[rt]+We),ct+="l-"+Be[rt]+",0 ";return ct+="Z"}function updatePathViewModels(Ee){var ze=Ee.dimensions,Be=Ee.model,Ue=ze.map((function(Ee){return Ee.categories.map((function(Ee){return Ee.y}))})),We=Ee.model.dimensions.map((function(Ee){return Ee.categories.map((function(Ee){return Ee.displayInd}))})),$e=Ee.model.dimensions.map((function(Ee){return Ee.displayInd})),Qe=Ee.dimensions.map((function(Ee){return Ee.model.dimensionInd})),rt=ze.map((function(Ee){return Ee.x})),it=ze.map((function(Ee){return Ee.width})),at=[];for(var ct in Be.paths)Be.paths.hasOwnProperty(ct)&&at.push(Be.paths[ct]);function pathDisplayCategoryInds(Ee){var ze=Ee.categoryInds.map((function(Ee,ze){return We[ze][Ee]}));return Qe.map((function(Ee){return ze[Ee]}))}at.sort((function(ze,Be){var Ue=pathDisplayCategoryInds(ze),We=pathDisplayCategoryInds(Be);return"backward"===Ee.sortpaths&&(Ue.reverse(),We.reverse()),Ue.push(ze.valueInds[0]),We.push(Be.valueInds[0]),Ee.bundlecolors&&(Ue.unshift(ze.rawColor),We.unshift(Be.rawColor)),UeWe?1:0}));for(var ft=new Array(at.length),xt=ze[0].model.count,kt=ze[0].categories.map((function(Ee){return Ee.height})).reduce((function(Ee,ze){return Ee+ze})),Lt=0;Lt0?kt*(er.count/xt):0;for(var tr,rr=new Array(Ue.length),ar=0;ar1?(Ee.width-80-16)/(Ue-1):0)*We;var $e,Qe,rt,it,at,ct=[],ft=Ee.model.maxCats,xt=ze.categories.length,kt=ze.count,Lt=Ee.height-8*(ft-1),Ut=8*(ft-xt)/2,er=ze.categories.map((function(Ee){return{displayInd:Ee.displayInd,categoryInd:Ee.categoryInd}}));for(er.sort((function(Ee,ze){return Ee.displayInd-ze.displayInd})),at=0;at0?Qe.count/kt*Lt:0,rt={key:Qe.valueInds[0],model:Qe,width:16,height:$e,y:null!==Qe.dragY?Qe.dragY:Ut,bands:[],parcatsViewModel:Ee},Ut=Ut+$e+8,ct.push(rt);return{key:ze.dimensionInd,x:null!==ze.dragX?ze.dragX:Be,y:0,width:16,model:ze,categories:ct,parcatsViewModel:Ee,dragCategoryDisplayInd:null,dragDimensionDisplayInd:null,initialDragDimensionDisplayInds:null,initialDragCategoryDisplayInds:null,dragHasMoved:null,potentialClickBand:null}}Ee.exports=function(Ee,ze,Be,Ue){performPlot(Be,Ee,Ue,ze)}},d012:function(Ee,ze){Ee.exports={}},d039:function(Ee,ze){Ee.exports=function(Ee){try{return!!Ee()}catch(Ee){return!0}}},d064:function(Ee,ze,Be){"use strict";var Ue=Be("fc26"),We=Be("e806").BADNUM;Ee.exports=function convertColumnData(Ee,ze,Be,$e,Qe,rt){var it,at,ct,ft,xt=Ee._length,kt=ze.makeCalcdata(Ee,$e),Lt=Be.makeCalcdata(Ee,Qe),Ut=Ee.text,er=void 0!==Ut&&Ue.isArray1D(Ut),tr=Ee.hovertext,rr=void 0!==tr&&Ue.isArray1D(tr),ar=Ue.distinctVals(kt),Lr=ar.vals,Qr=Ue.distinctVals(Lt),on=Qr.vals,sn=[];for(it=0;it4)throw new We("","Invalid uniform dimension type for matrix "+name+": "+Be);return"gl.uniformMatrix"+$e+"fv(locations["+ze+"],false,obj"+Ee+")"}throw new We("","Unknown uniform data type for "+name+": "+Be)}if(($e=Be.charCodeAt(Be.length-1)-48)<2||$e>4)throw new We("","Invalid data type");switch(Be.charAt(0)){case"b":case"i":return"gl.uniform"+$e+"iv(locations["+ze+"],obj"+Ee+")";case"v":return"gl.uniform"+$e+"fv(locations["+ze+"],obj"+Ee+")";default:throw new We("","Unrecognized data type for vector "+name+": "+Be)}}}function makeSetter(ze){for(var Ue=["return function updateProperty(obj){"],We=function enumerateIndices(Ee,ze){if("object"!=typeof ze)return[[Ee,ze]];var Be=[];for(var Ue in ze){var We=ze[Ue],$e=Ee;parseInt(Ue)+""===Ue?$e+="["+Ue+"]":$e+="."+Ue,"object"==typeof We?Be.push.apply(Be,enumerateIndices($e,We)):Be.push([$e,We])}return Be}("",ze),Qe=0;Qe4)throw new We("","Invalid data type");return"b"===Ee.charAt(0)?makeVector(Be,!1):makeVector(Be,0)}if(0===Ee.indexOf("mat")&&4===Ee.length){var Be;if((Be=Ee.charCodeAt(Ee.length-1)-48)<2||Be>4)throw new We("","Invalid uniform dimension type for matrix "+name+": "+Ee);return makeVector(Be*Be,0)}throw new We("","Unknown uniform data type for "+name+": "+Ee)}}(Be[rt].type);var at}function processObject(Ee){var ze;if(Array.isArray(Ee)){ze=new Array(Ee.length);for(var Be=0;Be=0&&coerce("surfacecolor",ft||xt);for(var kt=["x","y","z"],Lt=0;Lt<3;++Lt){var Ut="projection."+kt[Lt];coerce(Ut+".show")&&(coerce(Ut+".opacity"),coerce(Ut+".scale"))}var er=Ue.getComponentMethod("errorbars","supplyDefaults");er(Ee,ze,ft||xt||Be,{axis:"z"}),er(Ee,ze,ft||xt||Be,{axis:"y",inherit:"z"}),er(Ee,ze,ft||xt||Be,{axis:"x",inherit:"z"})}else ze.visible=!1}},d0ad:function(Ee,ze,Be){"use strict";var Ue=Be("19b2"),We=Be("e806").BADNUM,$e=Be("3aa8"),Qe=Be("106b"),rt=Be("4136");function isNonBlankString(Ee){return Ee&&"string"==typeof Ee}Ee.exports=function calc(Ee,ze){var Be,it=ze._length,at=new Array(it);Be=ze.geojson?function(Ee){return isNonBlankString(Ee)||Ue(Ee)}:isNonBlankString;for(var ct=0;ct0){for(var Be=0;Be0}function convertOpts(Ee){var ze={},Be={};switch(Ee.type){case"circle":Ue.extendFlat(Be,{"circle-radius":Ee.circle.radius,"circle-color":Ee.color,"circle-opacity":Ee.opacity});break;case"line":Ue.extendFlat(Be,{"line-width":Ee.line.width,"line-color":Ee.color,"line-opacity":Ee.opacity,"line-dasharray":Ee.line.dash});break;case"fill":Ue.extendFlat(Be,{"fill-color":Ee.color,"fill-outline-color":Ee.fill.outlinecolor,"fill-opacity":Ee.opacity});break;case"symbol":var $e=Ee.symbol,Qe=We($e.textposition,$e.iconsize);Ue.extendFlat(ze,{"icon-image":$e.icon+"-15","icon-size":$e.iconsize/10,"text-field":$e.text,"text-size":$e.textfont.size,"text-anchor":Qe.anchor,"text-offset":Qe.offset,"symbol-placement":$e.placement}),Ue.extendFlat(Be,{"icon-color":Ee.color,"text-color":$e.textfont.color,"text-opacity":Ee.opacity});break;case"raster":Ue.extendFlat(Be,{"raster-fade-duration":0})}return{layout:ze,paint:Be}}Qe.update=function update(Ee){this.visible?this.needsNewImage(Ee)?this.updateImage(Ee):this.needsNewSource(Ee)?(this.removeLayer(),this.updateSource(Ee),this.updateLayer(Ee)):this.needsNewLayer(Ee)?this.updateLayer(Ee):this.updateStyle(Ee):(this.updateSource(Ee),this.updateLayer(Ee)),this.visible=isVisible(Ee)},Qe.needsNewImage=function(Ee){return this.subplot.map.getSource(this.idSource)&&"image"===this.sourceType&&"image"===Ee.sourcetype&&(this.source!==Ee.source||JSON.stringify(this.coordinates)!==JSON.stringify(Ee.coordinates))},Qe.needsNewSource=function(Ee){return this.sourceType!==Ee.sourcetype||this.source!==Ee.source||this.layerType!==Ee.type},Qe.needsNewLayer=function(Ee){return this.layerType!==Ee.type||this.below!==this.subplot.belowLookup["layout-"+this.index]},Qe.updateImage=function(Ee){this.subplot.map.getSource(this.idSource).updateImage({url:Ee.source,coordinates:Ee.coordinates})},Qe.updateSource=function(Ee){var ze=this.subplot.map;if(ze.getSource(this.idSource)&&ze.removeSource(this.idSource),this.sourceType=Ee.sourcetype,this.source=Ee.source,isVisible(Ee)){var Be=function convertSourceOpts(Ee){var ze,Be=Ee.sourcetype,Ue=Ee.source,We={type:Be};"geojson"===Be?ze="data":"vector"===Be?ze="string"==typeof Ue?"url":"tiles":"raster"===Be?(ze="tiles",We.tileSize=256):"image"===Be&&(ze="url",We.coordinates=Ee.coordinates);We[ze]=Ue,Ee.sourceattribution&&(We.attribution=Ee.sourceattribution);return We}(Ee);ze.addSource(this.idSource,Be)}},Qe.updateLayer=function(Ee){var ze,Be=this.subplot,Ue=convertOpts(Ee),We=this.subplot.belowLookup["layout-"+this.index];if("traces"===We)for(var Qe=Be.getMapLayers(),rt=0;rt=0))return Ee;if(3===Qe)Ue[Qe]>1&&(Ue[Qe]=1);else if(Ue[Qe]>=1)return Ee}var rt=Math.round(255*Ue[0])+", "+Math.round(255*Ue[1])+", "+Math.round(255*Ue[2]);return $e?"rgba("+rt+", "+Ue[3]+")":"rgb("+rt+")"}$e.tinyRGB=function(Ee){var ze=Ee.toRgb();return"rgb("+Math.round(ze.r)+", "+Math.round(ze.g)+", "+Math.round(ze.b)+")"},$e.rgb=function(Ee){return $e.tinyRGB(Ue(Ee))},$e.opacity=function(Ee){return Ee?Ue(Ee).getAlpha():0},$e.addOpacity=function(Ee,ze){var Be=Ue(Ee).toRgb();return"rgba("+Math.round(Be.r)+", "+Math.round(Be.g)+", "+Math.round(Be.b)+", "+ze+")"},$e.combine=function(Ee,ze){var Be=Ue(Ee).toRgb();if(1===Be.a)return Ue(Ee).toRgbString();var We=Ue(ze||it).toRgb(),$e=1===We.a?We:{r:255*(1-We.a)+We.r*We.a,g:255*(1-We.a)+We.g*We.a,b:255*(1-We.a)+We.b*We.a},Qe={r:$e.r*(1-Be.a)+Be.r*Be.a,g:$e.g*(1-Be.a)+Be.g*Be.a,b:$e.b*(1-Be.a)+Be.b*Be.a};return Ue(Qe).toRgbString()},$e.contrast=function(Ee,ze,Be){var We=Ue(Ee);return 1!==We.getAlpha()&&(We=Ue($e.combine(Ee,it))),(We.isDark()?ze?We.lighten(ze):it:Be?We.darken(Be):rt).toString()},$e.stroke=function(Ee,ze){var Be=Ue(ze);Ee.style({stroke:$e.tinyRGB(Be),"stroke-opacity":Be.getAlpha()})},$e.fill=function(Ee,ze){var Be=Ue(ze);Ee.style({fill:$e.tinyRGB(Be),"fill-opacity":Be.getAlpha()})},$e.clean=function(Ee){if(Ee&&"object"==typeof Ee){var ze,Be,Ue,We,Qe=Object.keys(Ee);for(ze=0;ze0;Qe&&(We="array");var rt,it=Be("categoryorder",We);"array"===it&&(rt=Be("categoryarray")),Qe||"array"!==it||(it=ze.categoryorder="trace"),"trace"===it?ze._initialCategories=[]:"array"===it?ze._initialCategories=rt.slice():(rt=function findCategories(Ee,ze){var Be,Ue,We,$e=ze.dataAttr||Ee._id.charAt(0),Qe={};if(ze.axData)Be=ze.axData;else for(Be=[],Ue=0;Ue-1&&(ct[xt[Be]].title={text:""});for(Be=0;BeEe.lo&&(ar.so=!0)}return $e}));xt.enter().append("path").classed("point",!0),xt.exit().remove(),xt.call($e.translatePoints,Qe,rt)}function plotBoxMean(Ee,ze,Be,$e){var Qe,rt,it=ze.pos,at=ze.val,ct=$e.bPos,ft=$e.bPosPxOffset||0,xt=Be.boxmean||(Be.meanline||{}).visible;Array.isArray($e.bdPos)?(Qe=$e.bdPos[0],rt=$e.bdPos[1]):(Qe=$e.bdPos,rt=$e.bdPos);var kt=Ee.selectAll("path.mean").data("box"===Be.type&&Be.boxmean||"violin"===Be.type&&Be.box.visible&&Be.meanline.visible?We.identity:[]);kt.enter().append("path").attr("class","mean").style({fill:"none","vector-effect":"non-scaling-stroke"}),kt.exit().remove(),kt.each((function(Ee){var ze=it.c2l(Ee.pos+ct,!0),We=it.l2p(ze)+ft,$e=it.l2p(ze-Qe)+ft,kt=it.l2p(ze+rt)+ft,Lt=at.c2p(Ee.mean,!0),Ut=at.c2p(Ee.mean-Ee.sd,!0),er=at.c2p(Ee.mean+Ee.sd,!0);"h"===Be.orientation?Ue.select(this).attr("d","M"+Lt+","+$e+"V"+kt+("sd"===xt?"m0,0L"+Ut+","+We+"L"+Lt+","+$e+"L"+er+","+We+"Z":"")):Ue.select(this).attr("d","M"+$e+","+Lt+"H"+kt+("sd"===xt?"m0,0L"+We+","+Ut+"L"+$e+","+Lt+"L"+We+","+er+"Z":""))}))}Ee.exports={plot:function plot(Ee,ze,Be,$e){var Qe=ze.xaxis,rt=ze.yaxis;We.makeTraceGroups($e,Be,"trace boxes").each((function(Ee){var ze,Be,We=Ue.select(this),$e=Ee[0],it=$e.t,at=$e.trace;(it.wdPos=it.bdPos*at.whiskerwidth,!0!==at.visible||it.empty)?We.remove():("h"===at.orientation?(ze=rt,Be=Qe):(ze=Qe,Be=rt),plotBoxAndWhiskers(We,{pos:ze,val:Be},at,it),plotPoints(We,{x:Qe,y:rt},at,it),plotBoxMean(We,{pos:ze,val:Be},at,it))}))},plotBoxAndWhiskers:plotBoxAndWhiskers,plotPoints:plotPoints,plotBoxMean:plotBoxMean}},d37d:function(Ee,ze,Be){"use strict";var Ue=Be("4c18");Ee.exports=function createThunk(Ee){var ze=["'use strict'","var CACHED={}"],Be=[],We=Ee.funcName+"_cwise_thunk";ze.push(["return function ",We,"(",Ee.shimArgs.join(","),"){"].join(""));for(var $e=[],Qe=[],rt=[["array",Ee.arrayArgs[0],".shape.slice(",Math.max(0,Ee.arrayBlockIndices[0]),Ee.arrayBlockIndices[0]<0?","+Ee.arrayBlockIndices[0]+")":")"].join("")],it=[],at=[],ct=0;ct0&&(it.push("array"+Ee.arrayArgs[0]+".shape.length===array"+ft+".shape.length+"+(Math.abs(Ee.arrayBlockIndices[0])-Math.abs(Ee.arrayBlockIndices[ct]))),at.push("array"+Ee.arrayArgs[0]+".shape[shapeIndex+"+Math.max(0,Ee.arrayBlockIndices[0])+"]===array"+ft+".shape[shapeIndex+"+Math.max(0,Ee.arrayBlockIndices[ct])+"]"))}for(Ee.arrayArgs.length>1&&(ze.push("if (!("+it.join(" && ")+")) throw new Error('cwise: Arrays do not all have the same dimensionality!')"),ze.push("for(var shapeIndex=array"+Ee.arrayArgs[0]+".shape.length-"+Math.abs(Ee.arrayBlockIndices[0])+"; shapeIndex--\x3e0;) {"),ze.push("if (!("+at.join(" && ")+")) throw new Error('cwise: Arrays do not all have the same shape!')"),ze.push("}")),ct=0;ct=0;--kt)$e[kt]=at*Ee[kt]+ct*ze[kt]+ft*Be[kt]+xt*Ue[kt];return $e}return at*Ee+ct*ze+ft*Be+xt*Ue},Ee.exports.derivative=function dcubicHermite(Ee,ze,Be,Ue,We,$e){var Qe=6*We*We-6*We,rt=3*We*We-4*We+1,it=-6*We*We+6*We,at=3*We*We-2*We;if(Ee.length){$e||($e=new Array(Ee.length));for(var ct=Ee.length-1;ct>=0;--ct)$e[ct]=Qe*Ee[ct]+rt*ze[ct]+it*Be[ct]+at*Ue[ct];return $e}return Qe*Ee+rt*ze+it*Be[ct]+at*Ue}},d3d4:function(Ee,ze,Be){"use strict";var Ue=Be("0642"),We=Be("f977");function Axes2DOptions(Ee){this.scene=Ee,this.gl=Ee.gl,this.pixelRatio=Ee.pixelRatio,this.screenBox=[0,0,1,1],this.viewBox=[0,0,1,1],this.dataBox=[-1,-1,1,1],this.borderLineEnable=[!1,!1,!1,!1],this.borderLineWidth=[1,1,1,1],this.borderLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.ticks=[[],[]],this.tickEnable=[!0,!0,!1,!1],this.tickPad=[15,15,15,15],this.tickAngle=[0,0,0,0],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickMarkLength=[0,0,0,0],this.tickMarkWidth=[0,0,0,0],this.tickMarkColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labels=["x","y"],this.labelEnable=[!0,!0,!1,!1],this.labelAngle=[0,Math.PI/2,0,3*Math.PI/2],this.labelPad=[15,15,15,15],this.labelSize=[12,12],this.labelFont=["sans-serif","sans-serif"],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.title="",this.titleEnable=!0,this.titleCenter=[0,0,0,0],this.titleAngle=0,this.titleColor=[0,0,0,1],this.titleFont="sans-serif",this.titleSize=18,this.gridLineEnable=[!0,!0],this.gridLineColor=[[0,0,0,.5],[0,0,0,.5]],this.gridLineWidth=[1,1],this.zeroLineEnable=[!0,!0],this.zeroLineWidth=[1,1],this.zeroLineColor=[[0,0,0,1],[0,0,0,1]],this.borderColor=[0,0,0,0],this.backgroundColor=[0,0,0,0],this.static=this.scene.staticPlot}var $e=Axes2DOptions.prototype,Qe=["xaxis","yaxis"];$e.merge=function(Ee){var ze,Be,Ue,$e,rt,it,at,ct,ft,xt,kt;for(this.titleEnable=!1,this.backgroundColor=We(Ee.plot_bgcolor),xt=0;xt<2;++xt){var Lt=(ze=Qe[xt]).charAt(0);for(Ue=(Be=Ee[this.scene[ze]._name]).title.text===this.scene.fullLayout._dfltTitle[Lt]?"":Be.title.text,kt=0;kt<=2;kt+=2)this.labelEnable[xt+kt]=!1,this.labels[xt+kt]=Ue,this.labelColor[xt+kt]=We(Be.title.font.color),this.labelFont[xt+kt]=Be.title.font.family,this.labelSize[xt+kt]=Be.title.font.size,this.labelPad[xt+kt]=this.getLabelPad(ze,Be),this.tickEnable[xt+kt]=!1,this.tickColor[xt+kt]=We((Be.tickfont||{}).color),this.tickAngle[xt+kt]="auto"===Be.tickangle?0:Math.PI*-Be.tickangle/180,this.tickPad[xt+kt]=this.getTickPad(Be),this.tickMarkLength[xt+kt]=0,this.tickMarkWidth[xt+kt]=Be.tickwidth||0,this.tickMarkColor[xt+kt]=We(Be.tickcolor),this.borderLineEnable[xt+kt]=!1,this.borderLineColor[xt+kt]=We(Be.linecolor),this.borderLineWidth[xt+kt]=Be.linewidth||0;at=this.hasSharedAxis(Be),rt=this.hasAxisInDfltPos(ze,Be)&&!at,it=this.hasAxisInAltrPos(ze,Be)&&!at,$e=Be.mirror||!1,ct=at?-1!==String($e).indexOf("all"):!!$e,ft=at?"allticks"===$e:-1!==String($e).indexOf("ticks"),rt?this.labelEnable[xt]=!0:it&&(this.labelEnable[xt+2]=!0),rt?this.tickEnable[xt]=Be.showticklabels:it&&(this.tickEnable[xt+2]=Be.showticklabels),(rt||ct)&&(this.borderLineEnable[xt]=Be.showline),(it||ct)&&(this.borderLineEnable[xt+2]=Be.showline),(rt||ft)&&(this.tickMarkLength[xt]=this.getTickMarkLength(Be)),(it||ft)&&(this.tickMarkLength[xt+2]=this.getTickMarkLength(Be)),this.gridLineEnable[xt]=Be.showgrid,this.gridLineColor[xt]=We(Be.gridcolor),this.gridLineWidth[xt]=Be.gridwidth,this.zeroLineEnable[xt]=Be.zeroline,this.zeroLineColor[xt]=We(Be.zerolinecolor),this.zeroLineWidth[xt]=Be.zerolinewidth}},$e.hasSharedAxis=function(Ee){var ze=this.scene,Be=ze.fullLayout._subplots.gl2d;return 0!==Ue.findSubplotsWithAxis(Be,Ee).indexOf(ze.id)},$e.hasAxisInDfltPos=function(Ee,ze){var Be=ze.side;return"xaxis"===Ee?"bottom"===Be:"yaxis"===Ee?"left"===Be:void 0},$e.hasAxisInAltrPos=function(Ee,ze){var Be=ze.side;return"xaxis"===Ee?"top"===Be:"yaxis"===Ee?"right"===Be:void 0},$e.getLabelPad=function(Ee,ze){var Be=ze.title.font.size,Ue=ze.showticklabels;return"xaxis"===Ee?"top"===ze.side?Be*(1.5+(Ue?1:0))-10:Be*(1.5+(Ue?.5:0))-10:"yaxis"===Ee?"right"===ze.side?10+Be*(1.5+(Ue?1:.5)):10+Be*(1.5+(Ue?.5:0)):void 0},$e.getTickPad=function(Ee){return"outside"===Ee.ticks?10+Ee.ticklen:15},$e.getTickMarkLength=function(Ee){if(!Ee.ticks)return 0;var ze=Ee.ticklen;return"inside"===Ee.ticks?-ze:ze},Ee.exports=function createAxes2D(Ee){return new Axes2DOptions(Ee)}},d3dc:function(Ee,ze,Be){"use strict";Ee.exports={mod:function mod(Ee,ze){var Be=Ee%ze;return Be<0?Be+ze:Be},modHalf:function modHalf(Ee,ze){return Math.abs(Ee)>ze/2?Ee-Math.round(Ee/ze)*ze:Ee}}},d402:function(Ee,ze,Be){var Ue=Be("0230"),We=Be("320c");function DiscworldCalendar(Ee){this.local=this.regionalOptions[Ee||""]||this.regionalOptions[""]}DiscworldCalendar.prototype=new Ue.baseCalendar,We(DiscworldCalendar.prototype,{name:"Discworld",jdEpoch:1721425.5,daysPerMonth:[16,32,32,32,32,32,32,32,32,32,32,32,32],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Discworld",epochs:["BUC","UC"],monthNames:["Ick","Offle","February","March","April","May","June","Grune","August","Spune","Sektober","Ember","December"],monthNamesShort:["Ick","Off","Feb","Mar","Apr","May","Jun","Gru","Aug","Spu","Sek","Emb","Dec"],dayNames:["Sunday","Octeday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Oct","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Oc","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:2,isRTL:!1}},leapYear:function(Ee){return this._validate(Ee,this.minMonth,this.minDay,Ue.local.invalidYear),!1},monthsInYear:function(Ee){return this._validate(Ee,this.minMonth,this.minDay,Ue.local.invalidYear),13},daysInYear:function(Ee){return this._validate(Ee,this.minMonth,this.minDay,Ue.local.invalidYear),400},weekOfYear:function(Ee,ze,Be){var Ue=this.newDate(Ee,ze,Be);return Ue.add(-Ue.dayOfWeek(),"d"),Math.floor((Ue.dayOfYear()-1)/8)+1},daysInMonth:function(Ee,ze){var Be=this._validate(Ee,ze,this.minDay,Ue.local.invalidMonth);return this.daysPerMonth[Be.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(Ee,ze,Be){return(this._validate(Ee,ze,Be,Ue.local.invalidDate).day()+1)%8},weekDay:function(Ee,ze,Be){var Ue=this.dayOfWeek(Ee,ze,Be);return Ue>=2&&Ue<=6},extraInfo:function(Ee,ze,Be){var We=this._validate(Ee,ze,Be,Ue.local.invalidDate);return{century:$e[Math.floor((We.year()-1)/100)+1]||""}},toJD:function(Ee,ze,Be){var We=this._validate(Ee,ze,Be,Ue.local.invalidDate);return Ee=We.year()+(We.year()<0?1:0),ze=We.month(),(Be=We.day())+(ze>1?16:0)+(ze>2?32*(ze-2):0)+400*(Ee-1)+this.jdEpoch-1},fromJD:function(Ee){Ee=Math.floor(Ee+.5)-Math.floor(this.jdEpoch)-1;var ze=Math.floor(Ee/400)+1;Ee-=400*(ze-1),Ee+=Ee>15?16:0;var Be=Math.floor(Ee/32)+1,Ue=Ee-32*(Be-1)+1;return this.newDate(ze<=0?ze-1:ze,Be,Ue)}});var $e={20:"Fruitbat",21:"Anchovy"};Ue.calendars.discworld=DiscworldCalendar},d40d:function(Ee,ze,Be){Ee.exports=Be("ef49")},d41a:function(Ee,ze,Be){"use strict";ze.uniforms=function runtimeUniforms(Ee,ze){for(var Be=Ee.getProgramParameter(ze,Ee.ACTIVE_UNIFORMS),Ue=[],We=0;We1)for(var rt=0;rt<$e.size;++rt)Ue.push({name:$e.name.replace("[0]","["+rt+"]"),type:Qe});else Ue.push({name:$e.name,type:Qe})}}return Ue},ze.attributes=function runtimeAttributes(Ee,ze){for(var Be=Ee.getProgramParameter(ze,Ee.ACTIVE_ATTRIBUTES),Ue=[],We=0;Weft&&(Ue.log("parcoords traces support up to "+ft+" dimensions at the moment"),ct.splice(ft));var kt=rt(Ee,ze,{name:"dimensions",layout:it,handleItemDefaults:dimensionDefaults}),Lt=function handleLineDefaults(Ee,ze,Be,Qe,rt){var it=rt("line.color",Be);if(We(Ee,"line")&&Ue.isArrayOrTypedArray(it)){if(it.length)return rt("line.colorscale"),$e(Ee,ze,Qe,rt,{prefix:"line.",cLetter:"c"}),it.length;ze.line.color=Be}return 1/0}(Ee,ze,Be,it,coerce);Qe(ze,it,coerce),Array.isArray(kt)&&kt.length||(ze.visible=!1),xt(ze,kt,"values",Lt);var Ut={family:it.font.family,size:Math.round(it.font.size/1.2),color:it.font.color};Ue.coerceFont(coerce,"labelfont",Ut),Ue.coerceFont(coerce,"tickfont",Ut),Ue.coerceFont(coerce,"rangefont",Ut),coerce("labelangle"),coerce("labelside")}},d4b5:function(Ee,ze,Be){"use strict";Ee.exports=function isPath(Ee){return"string"==typeof Ee&&(Ee=Ee.trim(),!!(/^[mzlhvcsqta]\s*[-+.0-9][^mlhvzcsqta]+/i.test(Ee)&&/[\dz]$/i.test(Ee)&&Ee.length>4))}},d53b:function(Ee,ze,Be){"use strict";var Ue=Be("c5f4"),We=Math.max;Ee.exports=function(Ee){return We(0,Ue(Ee))}},d577:function(Ee,ze,Be){"use strict";Ee.exports=function makeClipPath(Ee,ze,Be,Ue){var We,$e,Qe,rt=[],it=!!Be.smoothing,at=!!Ue.smoothing,ct=Ee[0].length-1,ft=Ee.length-1;for(We=0,$e=[],Qe=[];We<=ct;We++)$e[We]=Ee[0][We],Qe[We]=ze[0][We];for(rt.push({x:$e,y:Qe,bicubic:it}),We=0,$e=[],Qe=[];We<=ft;We++)$e[We]=Ee[We][ct],Qe[We]=ze[We][ct];for(rt.push({x:$e,y:Qe,bicubic:at}),We=ct,$e=[],Qe=[];We>=0;We--)$e[ct-We]=Ee[ft][We],Qe[ct-We]=ze[ft][We];for(rt.push({x:$e,y:Qe,bicubic:it}),We=ft,$e=[],Qe=[];We>=0;We--)$e[ft-We]=Ee[We][0],Qe[ft-We]=ze[We][0];return rt.push({x:$e,y:Qe,bicubic:at}),rt}},d58b:function(Ee,ze,Be){"use strict";var Ue=Be("fc26"),We=Be("7678");Ee.exports=function(Ee,ze,Be){var $e=!1;function coerce(Be,$e){return Ue.coerce(Ee,ze,We,Be,$e)}for(var Qe=0;Qe=0:ft>xt;xt+=kt)xt in ct&&(it=Be(it,ct[xt],xt,at));return it}};Ee.exports={left:createMethod(!1),right:createMethod(!0)}},d5e3:function(Ee,ze,Be){"use strict";(function(ze){Ee.exports=function createTextSprites(Ee,ze,Be,$e,rt,it){var at=Ue(Ee),ct=We(Ee,[{buffer:at,size:3}]),ft=Qe(Ee);ft.attributes.position.location=0;var xt=new TextSprites(Ee,ft,at,ct);return xt.update(ze,Be,$e,rt,it),xt};var Ue=Be("efce"),We=Be("b205"),$e=Be("b993"),Qe=Be("c185").text,rt=window||ze.global||{},it=rt.__TEXT_CACHE||{};rt.__TEXT_CACHE={};function TextSprites(Ee,ze,Be,Ue){this.gl=Ee,this.shader=ze,this.buffer=Be,this.vao=Ue,this.tickOffset=this.tickCount=this.labelOffset=this.labelCount=null}var at=TextSprites.prototype,ct=[0,0];at.bind=function(Ee,ze,Be,Ue){this.vao.bind(),this.shader.bind();var We=this.shader.uniforms;We.model=Ee,We.view=ze,We.projection=Be,We.pixelScale=Ue,ct[0]=this.gl.drawingBufferWidth,ct[1]=this.gl.drawingBufferHeight,this.shader.uniforms.resolution=ct},at.unbind=function(){this.vao.unbind()},at.update=function(Ee,ze,Be,Ue,We){var Qe=[];function addItem(Ee,ze,Be,Ue,We,rt){var at=it[Be];at||(at=it[Be]={});var ct=at[ze];ct||(ct=at[ze]=function tryVectorizeText(Ee,ze){try{return $e(Ee,ze)}catch(ze){return console.warn('error vectorizing text:"'+Ee+'" error:',ze),{cells:[],positions:[]}}}(ze,{triangles:!0,font:Be,textAlign:"center",textBaseline:"middle",lineSpacing:We,styletags:rt}));for(var ft=(Ue||12)/12,xt=ct.positions,kt=ct.cells,Lt=0,Ut=kt.length;Lt=0;--tr){var rr=xt[er[tr]];Qe.push(ft*rr[0],-ft*rr[1],Ee)}}for(var rt=[0,0,0],at=[0,0,0],ct=[0,0,0],ft=[0,0,0],xt={breaklines:!0,bolds:!0,italics:!0,subscripts:!0,superscripts:!0},kt=0;kt<3;++kt){ct[kt]=Qe.length/3|0,addItem(.5*(Ee[0][kt]+Ee[1][kt]),ze[kt],Be[kt],12,1.25,xt),ft[kt]=(Qe.length/3|0)-ct[kt],rt[kt]=Qe.length/3|0;for(var Lt=0;Lt4?(We=Lt[Lt.length-4],$e=Lt[Lt.length-3]):(We=ct,$e=ft),Be.push(Lt)}return Be};var Ue=Be("0b89");function line(Ee,ze,Be,Ue){return["C",Ee,ze,Be,Ue,Be,Ue]}function quadratic(Ee,ze,Be,Ue,We,$e){return["C",Ee/3+2/3*Be,ze/3+2/3*Ue,We/3+2/3*Be,$e/3+2/3*Ue,We,$e]}},d6d8:function(Ee,ze,Be){"use strict";var Ue=Be("ef33"),We=Be("fc26").ensureArray;function inferCubicControlPoint(Ee,ze,Be){var Ue=-.5*Be[0]+1.5*ze[0],We=-.5*Be[1]+1.5*ze[1];return[(2*Ue+Ee[0])/3,(2*We+Ee[1])/3]}Ee.exports=function computeControlPoints(Ee,ze,Be,$e,Qe,rt){var it,at,ct,ft,xt,kt,Lt,Ut,er,tr,rr=Be[0].length,ar=Be.length,Lr=Qe?3*rr-2:rr,Qr=rt?3*ar-2:ar;for(Ee=We(Ee,Qr),ze=We(ze,Qr),ct=0;ct=Lr[0].length||kt<0||kt>Lr.length)return}else{if(Ue.inbox(ze-rr[0],ze-rr[rr.length-1],0)>0||Ue.inbox(Be-ar[0],Be-ar[ar.length-1],0)>0)return;if(at){var dn;for(un=[2*rr[0]-rr[1]],dn=1;dn1&&!kt&&"category"!==rt.type){var Ut=ze.length;if(!(Ut<=Qe))return xt?ze.slice(0,Qe):ze.slice(0,Qe+1);if(xt||Lt)ft=ze.slice(0,Qe);else if(1===Qe)ft=[ze[0]-.5,ze[0]+.5];else{for(ft=[1.5*ze[0]-.5*ze[1]],ct=1;ct")})),ct="$0"==="a".replace(/./,"$0"),ft=$e("replace"),xt=!!/./[ft]&&""===/./[ft]("a","$0"),kt=!We((function(){var Ee=/(?:)/,ze=Ee.exec;Ee.exec=function(){return ze.apply(this,arguments)};var Be="ab".split(Ee);return 2!==Be.length||"a"!==Be[0]||"b"!==Be[1]}));Ee.exports=function(Ee,ze,Be,ft){var Lt=$e(Ee),Ut=!We((function(){var ze={};return ze[Lt]=function(){return 7},7!=""[Ee](ze)})),er=Ut&&!We((function(){var ze=!1,Be=/a/;return"split"===Ee&&((Be={}).constructor={},Be.constructor[it]=function(){return Be},Be.flags="",Be[Lt]=/./[Lt]),Be.exec=function(){return ze=!0,null},Be[Lt](""),!ze}));if(!Ut||!er||"replace"===Ee&&(!at||!ct||xt)||"split"===Ee&&!kt){var tr=/./[Lt],rr=Be(Lt,""[Ee],(function(Ee,ze,Be,Ue,We){return ze.exec===Qe?Ut&&!We?{done:!0,value:tr.call(ze,Be,Ue)}:{done:!0,value:Ee.call(Be,ze,Ue)}:{done:!1}}),{REPLACE_KEEPS_$0:ct,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:xt}),ar=rr[0],Lr=rr[1];Ue(String.prototype,Ee,ar),Ue(RegExp.prototype,Lt,2==ze?function(Ee,ze){return Lr.call(Ee,this,ze)}:function(Ee){return Lr.call(Ee,this)})}ft&&rt(RegExp.prototype[Lt],"sham",!0)}},d78f:function(Ee,ze,Be){"use strict";var Ue=Be("0642"),We=Be("215c").hasColorscale,$e=Be("3aa8"),Qe=Be("424b"),rt=Be("4136");Ee.exports=function calc(Ee,ze){var Be,it,at=Ue.getFromId(Ee,ze.xaxis||"x"),ct=Ue.getFromId(Ee,ze.yaxis||"y");"h"===ze.orientation?(Be=at.makeCalcdata(ze,"x"),it=ct.makeCalcdata(ze,"y")):(Be=ct.makeCalcdata(ze,"y"),it=at.makeCalcdata(ze,"x"));for(var ft=Math.min(it.length,Be.length),xt=new Array(ft),kt=0;ktMath.abs(rt)?(it.boxEnd[1]=it.boxStart[1]+Math.abs($e)*ar*(rt>=0?1:-1),it.boxEnd[1]at[3]&&(it.boxEnd[1]=at[3],it.boxEnd[0]=it.boxStart[0]+(at[3]-it.boxStart[1])/Math.abs(ar))):(it.boxEnd[0]=it.boxStart[0]+Math.abs(rt)/ar*($e>=0?1:-1),it.boxEnd[0]at[2]&&(it.boxEnd[0]=at[2],it.boxEnd[1]=it.boxStart[1]+(at[2]-it.boxStart[0])*Math.abs(ar)))}}else it.boxEnabled?($e=it.boxStart[0]!==it.boxEnd[0],rt=it.boxStart[1]!==it.boxEnd[1],$e||rt?($e&&(updateRange(0,it.boxStart[0],it.boxEnd[0]),Ee.xaxis.autorange=!1),rt&&(updateRange(1,it.boxStart[1],it.boxEnd[1]),Ee.yaxis.autorange=!1),Ee.relayoutCallback()):Ee.glplot.setDirty(),it.boxEnabled=!1,it.boxInited=!1):it.boxInited&&(it.boxInited=!1);break;case"pan":it.boxEnabled=!1,it.boxInited=!1,ze?(it.panning||(it.dragStart[0]=Ue,it.dragStart[1]=We),Math.abs(it.dragStart[0]-Ue)0?"white":"black",ct.lineWidth=Math.abs(kt));if(ct.translate(.5*Be,.5*ft),ct.scale(er,er),function isPath2DSupported(){if(null!=Ue)return Ue;var Ee=document.createElement("canvas").getContext("2d");if(Ee.canvas.width=Ee.canvas.height=1,!window.Path2D)return Ue=!1;var ze=new Path2D("M0,0h1v1h-1v-1Z");Ee.fillStyle="black",Ee.fill(ze);var Be=Ee.getImageData(0,0,1,1);return Ue=Be&&Be.data&&255===Be.data[3]}()){var tr=new Path2D(Ee);ct.fill(tr),kt&&ct.stroke(tr)}else{var rr=$e(Ee);Qe(ct,rr),ct.fill(),kt&&ct.stroke()}return ct.setTransform(1,0,0,1,0,0),it(ct,{cutoff:null!=ze.cutoff?ze.cutoff:.5,radius:null!=ze.radius?ze.radius:.5*xt})}},d81d:function(Ee,ze,Be){"use strict";var Ue=Be("23e7"),We=Be("b727").map,$e=Be("1dde"),Qe=Be("ae40"),rt=$e("map"),it=Qe("map");Ue({target:"Array",proto:!0,forced:!rt||!it},{map:function map(Ee){return We(this,Ee,arguments.length>1?arguments[1]:void 0)}})},d831:function(Ee,ze,Be){"use strict";Ee.exports={moduleType:"trace",name:"funnelarea",basePlotModule:Be("a8f9"),categories:["pie-like","funnelarea","showLegend"],attributes:Be("ecc5"),layoutAttributes:Be("f3df"),supplyDefaults:Be("e485"),supplyLayoutDefaults:Be("fcd6"),calc:Be("3936").calc,crossTraceCalc:Be("3936").crossTraceCalc,plot:Be("7c43"),style:Be("a41d"),styleOne:Be("a708"),meta:{}}},d844:function(Ee,ze,Be){"use strict";Ee.exports=function eventData(Ee,ze,Be,Ue,We){if(ze.xa&&(Ee.xaxis=ze.xa),ze.ya&&(Ee.yaxis=ze.ya),Ue[We]){var $e=Ue[We];Ee.a=$e.a,Ee.b=$e.b,Ee.c=$e.c}else Ee.a=ze.a,Ee.b=ze.b,Ee.c=ze.c;return Ee}},d858:function(Ee,ze,Be){"use strict";Ee.exports={segmentRE:/[MLHVQCTSZ][^MLHVQCTSZ]*/g,paramRE:/[^\s,]+/g,paramIsX:{M:{0:!0,drawn:0},L:{0:!0,drawn:0},H:{0:!0,drawn:0},V:{},Q:{0:!0,2:!0,drawn:2},C:{0:!0,2:!0,4:!0,drawn:4},T:{0:!0,drawn:0},S:{0:!0,2:!0,drawn:2},Z:{}},paramIsY:{M:{1:!0,drawn:1},L:{1:!0,drawn:1},H:{},V:{0:!0,drawn:0},Q:{1:!0,3:!0,drawn:3},C:{1:!0,3:!0,5:!0,drawn:5},T:{1:!0,drawn:1},S:{1:!0,3:!0,drawn:5},Z:{}},numParams:{M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}}},d92f:function(Ee,ze,Be){"use strict";var Ue=Be("da6a");Ee.exports=function handleTickValueDefaults(Ee,ze,Be,We){var $e;"array"!==Ee.tickmode||"log"!==We&&"date"!==We?$e=Be("tickmode",Array.isArray(Ee.tickvals)?"array":Ee.dtick?"linear":"auto"):$e=ze.tickmode="auto";if("auto"===$e)Be("nticks");else if("linear"===$e){var Qe=ze.dtick=Ue.dtick(Ee.dtick,We);ze.tick0=Ue.tick0(Ee.tick0,We,ze.calendar,Qe)}else if("multicategory"!==We){void 0===Be("tickvals")?ze.tickmode="auto":Be("ticktext")}}},d945:function(Ee,ze,Be){"use strict";var Ue=Be("0642"),We=Be("fc26"),$e=Be("a5c4"),Qe=Be("d115"),rt=Be("fc26").fillText,it=Be("b8ce"),at={increasing:it.INCREASING.SYMBOL,decreasing:it.DECREASING.SYMBOL};function getClosestPoint(Ee,ze,Be,Ue){var We,rt,it=Ee.cd,at=Ee.xa,ct=it[0].trace,ft=it[0].t,xt=ct.type,kt="ohlc"===xt?"l":"min",Lt="ohlc"===xt?"h":"max",Ut=ft.bPos||0,er=ft.bdPos||ft.tickLen,tr=ft.wHover,rr=Math.min(1,er/Math.abs(at.r2c(at.range[1])-at.r2c(at.range[0])));function dx(Ee){var Be=function(Ee){return Ee.pos+Ut-ze}(Ee);return $e.inbox(Be-tr,Be+tr,We)}function dy(Ee){var ze=Ee[kt],Ue=Ee[Lt];return ze===Ue||$e.inbox(ze-Be,Ue-Be,We)}function dxy(Ee){return(dx(Ee)+dy(Ee))/2}We=Ee.maxHoverDistance-rr,rt=Ee.maxSpikeDistance-rr;var ar=$e.getDistanceFunction(Ue,dx,dy,dxy);if($e.getClosest(it,ar,Ee),!1===Ee.index)return null;var Lr=it[Ee.index];if(Lr.empty)return null;var Qr=ct[Lr.dir],on=Qr.line.color;return Qe.opacity(on)&&Qr.line.width?Ee.color=on:Ee.color=Qr.fillcolor,Ee.x0=at.c2p(Lr.pos+Ut-er,!0),Ee.x1=at.c2p(Lr.pos+Ut+er,!0),Ee.xLabelVal=Lr.pos,Ee.spikeDistance=dxy(Lr)*rt/We,Ee.xSpike=at.c2p(Lr.pos,!0),Ee}function hoverSplit(Ee,ze,Be,$e){var Qe=Ee.cd,rt=Ee.ya,it=Qe[0].trace,at=Qe[0].t,ct=[],ft=getClosestPoint(Ee,ze,Be,$e);if(!ft)return[];var xt=Qe[ft.index].hi||it.hoverinfo,kt=xt.split("+");if(!("all"===xt||-1!==kt.indexOf("y")))return[];for(var Lt=["high","open","close","low"],Ut={},er=0;er"+at.labels[rr]+Ue.hoverLabelText(rt,ar):((tr=We.extendFlat({},ft)).y0=tr.y1=Lr,tr.yLabelVal=ar,tr.yLabel=at.labels[rr]+Ue.hoverLabelText(rt,ar),tr.name="",ct.push(tr),Ut[ar]=tr)}return ct}function hoverOnPoints(Ee,ze,Be,We){var $e=Ee.cd,Qe=Ee.ya,it=$e[0].trace,ct=$e[0].t,ft=getClosestPoint(Ee,ze,Be,We);if(!ft)return[];var xt=$e[ft.index],kt=ft.index=xt.i,Lt=xt.dir;function getLabelLine(Ee){return ct.labels[Ee]+Ue.hoverLabelText(Qe,it[Ee][kt])}var Ut=xt.hi||it.hoverinfo,er=Ut.split("+"),tr="all"===Ut,rr=tr||-1!==er.indexOf("y"),ar=tr||-1!==er.indexOf("text"),Lr=rr?[getLabelLine("open"),getLabelLine("high"),getLabelLine("low"),getLabelLine("close")+" "+at[Lt]]:[];return ar&&rt(xt,it,Lr),ft.extraText=Lr.join("
"),ft.y0=ft.y1=Qe.c2p(xt.yc,!0),[ft]}Ee.exports={hoverPoints:function hoverPoints(Ee,ze,Be,Ue){return Ee.cd[0].trace.hoverlabel.split?hoverSplit(Ee,ze,Be,Ue):hoverOnPoints(Ee,ze,Be,Ue)},hoverSplit:hoverSplit,hoverOnPoints:hoverOnPoints}},d9c2:function(Ee,ze){Ee.exports=function scale(Ee,ze,Be){return Ee[0]=ze[0]*Be,Ee[1]=ze[1]*Be,Ee[2]=ze[2]*Be,Ee[3]=ze[3]*Be,Ee}},da69:function(Ee,ze,Be){"use strict";var Ue,We=Be("cc77");function FaceIndex(Ee,ze,Be,Ue,We,$e,Qe){this.cells=Ee,this.neighbor=ze,this.flags=Ue,this.constraint=Be,this.active=We,this.next=$e,this.boundary=Qe}function compareCell(Ee,ze){return Ee[0]-ze[0]||Ee[1]-ze[1]||Ee[2]-ze[2]}Ee.exports=function classifyFaces(Ee,ze,Be){var Ue=function indexCells(Ee,ze){for(var Be=Ee.cells(),Ue=Be.length,We=0;We0||Qe.length>0;){for(;$e.length>0;){var ft=$e.pop();if(rt[ft]!==-We){rt[ft]=We;it[ft];for(var xt=0;xt<3;++xt){var kt=ct[3*ft+xt];kt>=0&&0===rt[kt]&&(at[3*ft+xt]?Qe.push(kt):($e.push(kt),rt[kt]=We))}}}var Lt=Qe;Qe=$e,$e=Lt,Qe.length=0,We=-We}var Ut=function filterCells(Ee,ze,Be){for(var Ue=0,We=0;WeEe?0:1)+(ze[0][1]>Ee?0:2)+(ze[1][1]>Ee?0:4)+(ze[1][0]>Ee?0:8);return 5===Be||10===Be?Ee>(ze[0][0]+ze[0][1]+ze[1][0]+ze[1][1])/4?5===Be?713:1114:5===Be?104:208:15===Be?0:Be}Ee.exports=function makeCrossings(Ee){var ze,Be,We,$e,Qe,rt,it,at,ct,ft=Ee[0].z,xt=ft.length,kt=ft[0].length,Lt=2===xt||2===kt;for(Be=0;Be0)for(var ar=0;arft;)void 0!==(Be=We(Ue,ze=at[ft++]))&&it(ct,ze,Be);return ct}})},dbc7:function(Ee,ze,Be){"use strict";var Ue=Be("6e58"),We=Be("371e"),$e=Be("fc26"),Qe=Be("d115"),rt=Be("83d1"),it=Be("a5c4"),at=Be("bb71"),ct=Be("0642"),ft=Be("ce56").getAutoRange,xt=Be("4efe"),kt=Be("1876").prepSelect,Lt=Be("1876").selectOnClick,Ut=Be("be64"),er=Be("0804"),tr=Be("0919"),rr=Be("c400"),ar=Be("e018").feature;function Geo(Ee){this.id=Ee.id,this.graphDiv=Ee.graphDiv,this.container=Ee.container,this.topojsonURL=Ee.topojsonURL,this.isStatic=Ee.staticPlot,this.topojsonName=null,this.topojson=null,this.projection=null,this.scope=null,this.viewInitial=null,this.fitScale=null,this.bounds=null,this.midPt=null,this.hasChoropleth=!1,this.traceHash={},this.layers={},this.basePaths={},this.dataPaths={},this.dataPoints={},this.clipDef=null,this.clipRect=null,this.bgRect=null,this.makeFramework()}Be("4b8c")(Ue);var Lr=Geo.prototype;function makeRangeBox(Ee,ze){var Be=er.clipPad,Ue=Ee[0]+Be,We=Ee[1]-Be,$e=ze[0]+Be,Qe=ze[1]-Be;Ue>0&&We<0&&(We+=360);var rt=(We-Ue)/4;return{type:"Polygon",coordinates:[[[Ue,$e],[Ue,Qe],[Ue+rt,Qe],[Ue+2*rt,Qe],[Ue+3*rt,Qe],[We,Qe],[We,$e],[We-rt,$e],[We-2*rt,$e],[We-3*rt,$e],[Ue,$e]]]}}Ee.exports=function createGeo(Ee){return new Geo(Ee)},Lr.plot=function(Ee,ze,Be){var Ue=this,We=ze[this.id],$e=[],Qe=!1;for(var rt in er.layerNameToAdjective)if("frame"!==rt&&We["show"+rt]){Qe=!0;break}for(var it=0;it0&&$e._module.calcGeoJSON(We,ze)}if(!this.updateProjection(Ee,ze)){this.viewInitial&&this.scope===Be.scope||this.saveViewInitial(Be),this.scope=Be.scope,this.updateBaseLayers(ze,Be),this.updateDims(ze,Be),this.updateFx(ze,Be),at.generalUpdatePerTraceModule(this.graphDiv,this,Ee,Be);var Qe=this.layers.frontplot.select(".scatterlayer");this.dataPoints.point=Qe.selectAll(".point"),this.dataPoints.text=Qe.selectAll("text"),this.dataPaths.line=Qe.selectAll(".js-line");var rt=this.layers.backplot.select(".choroplethlayer");this.dataPaths.choropleth=rt.selectAll("path"),this.render()}},Lr.updateProjection=function(Ee,ze){var Be=this.graphDiv,Qe=ze[this.id],rt=ze._size,it=Qe.domain,at=Qe.projection,ct=Qe.lonaxis,xt=Qe.lataxis,kt=ct._ax,Lt=xt._ax,Ut=this.projection=function getProjection(Ee){for(var ze=Ee.projection.type,Be=Ue.geo[er.projNames[ze]](),We=Ee._isClipped?er.lonaxisSpan[ze]/2:null,$e=["center","rotate","parallels","clipExtent"],dummyFn=function(Ee){return Ee?Be:[]},Qe=0;Qe<$e.length;Qe++){var rt=$e[Qe];"function"!=typeof Be[rt]&&(Be[rt]=dummyFn)}Be.isLonLatOverEdges=function(Ee){if(null===Be(Ee))return!0;if(We){var ze=Be.rotate();return Ue.geo.distance(Ee,[-ze[0],-ze[1]])>We*Math.PI/180}return!1},Be.getPath=function(){return Ue.geo.path().projection(Be)},Be.getBounds=function(Ee){return Be.getPath().bounds(Ee)},Be.fitExtent=function(Ee,ze){var Ue=Ee[1][0]-Ee[0][0],We=Ee[1][1]-Ee[0][1],$e=Be.clipExtent&&Be.clipExtent();Be.scale(150).translate([0,0]),$e&&Be.clipExtent(null);var Qe=Be.getBounds(ze),rt=Math.min(Ue/(Qe[1][0]-Qe[0][0]),We/(Qe[1][1]-Qe[0][1])),it=+Ee[0][0]+(Ue-rt*(Qe[1][0]+Qe[0][0]))/2,at=+Ee[0][1]+(We-rt*(Qe[1][1]+Qe[0][1]))/2;return $e&&Be.clipExtent($e),Be.scale(150*rt).translate([it,at])},Be.precision(er.precision),We&&Be.clipAngle(We-er.clipPad);return Be}(Qe),tr=[[rt.l+rt.w*it.x[0],rt.t+rt.h*(1-it.y[1])],[rt.l+rt.w*it.x[1],rt.t+rt.h*(1-it.y[0])]],rr=Qe.center||{},ar=at.rotation||{},Lr=ct.range||[],Qr=xt.range||[];if(Qe.fitbounds){kt._length=tr[1][0]-tr[0][0],Lt._length=tr[1][1]-tr[0][1],kt.range=ft(Be,kt),Lt.range=ft(Be,Lt);var on=(kt.range[0]+kt.range[1])/2,sn=(Lt.range[0]+Lt.range[1])/2;if(Qe._isScoped)rr={lon:on,lat:sn};else if(Qe._isClipped){rr={lon:on,lat:sn},ar={lon:on,lat:sn,roll:ar.roll};var cn=at.type,un=er.lonaxisSpan[cn]/2||180,hn=er.lataxisSpan[cn]/2||180;Lr=[on-un,on+un],Qr=[sn-hn,sn+hn]}else rr={lon:on,lat:sn},ar={lon:on,lat:ar.lat,roll:ar.roll}}Ut.center([rr.lon-ar.lon,rr.lat-ar.lat]).rotate([-ar.lon,-ar.lat,ar.roll]).parallels(at.parallels);var dn=makeRangeBox(Lr,Qr);Ut.fitExtent(tr,dn);var vn=this.bounds=Ut.getBounds(dn),yn=this.fitScale=Ut.scale(),_n=Ut.translate();if(!isFinite(vn[0][0])||!isFinite(vn[0][1])||!isFinite(vn[1][0])||!isFinite(vn[1][1])||isNaN(_n[0])||isNaN(_n[0])){for(var Mn=["fitbounds","projection.rotation","center","lonaxis.range","lataxis.range"],Cn="Invalid geo settings, relayout'ing to default view.",En={},Pn=0;Pn-1&&Lt(Ue.event,$e,[Be.xaxis],[Be.yaxis],Be.id,ft),at.indexOf("event")>-1&&it.click($e,Ue.event))}))}function invert(Ee){return Be.projection.invert([Ee[0]+Be.xaxis._offset,Ee[1]+Be.yaxis._offset])}},Lr.makeFramework=function(){var Ee=this,ze=Ee.graphDiv,Be=ze._fullLayout,We="clip"+Be._uid+Ee.id;Ee.clipDef=Be._clips.append("clipPath").attr("id",We),Ee.clipRect=Ee.clipDef.append("rect"),Ee.framework=Ue.select(Ee.container).append("g").attr("class","geo "+Ee.id).call(rt.setClipUrl,We,ze),Ee.project=function(ze){var Be=Ee.projection(ze);return Be?[Be[0]-Ee.xaxis._offset,Be[1]-Ee.yaxis._offset]:[null,null]},Ee.xaxis={_id:"x",c2p:function(ze){return Ee.project(ze)[0]}},Ee.yaxis={_id:"y",c2p:function(ze){return Ee.project(ze)[1]}},Ee.mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},ct.setConvert(Ee.mockAxis,Be)},Lr.saveViewInitial=function(Ee){var ze,Be=Ee.center||{},Ue=Ee.projection,We=Ue.rotation||{};this.viewInitial={fitbounds:Ee.fitbounds,"projection.scale":Ue.scale},ze=Ee._isScoped?{"center.lon":Be.lon,"center.lat":Be.lat}:Ee._isClipped?{"projection.rotation.lon":We.lon,"projection.rotation.lat":We.lat}:{"center.lon":Be.lon,"center.lat":Be.lat,"projection.rotation.lon":We.lon},$e.extendFlat(this.viewInitial,ze)},Lr.render=function(){var Ee,ze=this.projection,Be=ze.getPath();function translatePoints(Ee){var Be=ze(Ee.lonlat);return Be?"translate("+Be[0]+","+Be[1]+")":null}function hideShowPoints(Ee){return ze.isLonLatOverEdges(Ee.lonlat)?"none":null}for(Ee in this.basePaths)this.basePaths[Ee].attr("d",Be);for(Ee in this.dataPaths)this.dataPaths[Ee].attr("d",(function(Ee){return Be(Ee.geojson)}));for(Ee in this.dataPoints)this.dataPoints[Ee].attr("display",hideShowPoints).attr("transform",translatePoints)}},dbd1:function(Ee,ze,Be){"use strict";Ee.exports=function createAxes(Ee,ze){var Be=new Axes(Ee);return Be.update(ze),Be};var Ue=Be("d5e3"),We=Be("487e"),$e=Be("3146"),Qe=Be("a4f3"),rt=Be("605a"),it=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]);function copyVec3(Ee,ze){return Ee[0]=ze[0],Ee[1]=ze[1],Ee[2]=ze[2],Ee}function Axes(Ee){this.gl=Ee,this.pixelRatio=1,this.bounds=[[-10,-10,-10],[10,10,10]],this.ticks=[[],[],[]],this.autoTicks=!0,this.tickSpacing=[1,1,1],this.tickEnable=[!0,!0,!0],this.tickFont=["sans-serif","sans-serif","sans-serif"],this.tickSize=[12,12,12],this.tickAngle=[0,0,0],this.tickAlign=["auto","auto","auto"],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickPad=[10,10,10],this.lastCubeProps={cubeEdges:[0,0,0],axis:[0,0,0]},this.labels=["x","y","z"],this.labelEnable=[!0,!0,!0],this.labelFont="sans-serif",this.labelSize=[20,20,20],this.labelAngle=[0,0,0],this.labelAlign=["auto","auto","auto"],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labelPad=[10,10,10],this.lineEnable=[!0,!0,!0],this.lineMirror=[!1,!1,!1],this.lineWidth=[1,1,1],this.lineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.lineTickEnable=[!0,!0,!0],this.lineTickMirror=[!1,!1,!1],this.lineTickLength=[0,0,0],this.lineTickWidth=[1,1,1],this.lineTickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.gridEnable=[!0,!0,!0],this.gridWidth=[1,1,1],this.gridColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroEnable=[!0,!0,!0],this.zeroLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroLineWidth=[2,2,2],this.backgroundEnable=[!1,!1,!1],this.backgroundColor=[[.8,.8,.8,.5],[.8,.8,.8,.5],[.8,.8,.8,.5]],this._firstInit=!0,this._text=null,this._lines=null,this._background=$e(Ee)}var at=Axes.prototype;function OffsetInfo(){this.primalOffset=[0,0,0],this.primalMinor=[0,0,0],this.mirrorOffset=[0,0,0],this.mirrorMinor=[0,0,0]}at.update=function(Ee){function parseOption(ze,Be,Ue){if(Ue in Ee){var We,$e=Ee[Ue],Qe=this[Ue];(ze?Array.isArray($e)&&Array.isArray($e[0]):Array.isArray($e))?this[Ue]=We=[Be($e[0]),Be($e[1]),Be($e[2])]:this[Ue]=We=[Be($e),Be($e),Be($e)];for(var rt=0;rt<3;++rt)if(We[rt]!==Qe[rt])return!0}return!1}Ee=Ee||{};var ze,Be=parseOption.bind(this,!1,Number),$e=parseOption.bind(this,!1,Boolean),Qe=parseOption.bind(this,!1,String),it=parseOption.bind(this,!0,(function(Ee){if(Array.isArray(Ee)){if(3===Ee.length)return[+Ee[0],+Ee[1],+Ee[2],1];if(4===Ee.length)return[+Ee[0],+Ee[1],+Ee[2],+Ee[3]]}return[0,0,0,1]})),at=!1,ct=!1;if("bounds"in Ee)for(var ft=Ee.bounds,xt=0;xt<2;++xt)for(var kt=0;kt<3;++kt)ft[xt][kt]!==this.bounds[xt][kt]&&(ct=!0),this.bounds[xt][kt]=ft[xt][kt];if("ticks"in Ee){ze=Ee.ticks,at=!0,this.autoTicks=!1;for(xt=0;xt<3;++xt)this.tickSpacing[xt]=0}else Be("tickSpacing")&&(this.autoTicks=!0,ct=!0);if(this._firstInit&&("ticks"in Ee||"tickSpacing"in Ee||(this.autoTicks=!0),ct=!0,at=!0,this._firstInit=!1),ct&&this.autoTicks&&(ze=rt.create(this.bounds,this.tickSpacing),at=!0),at){for(xt=0;xt<3;++xt)ze[xt].sort((function(Ee,ze){return Ee.x-ze.x}));rt.equal(ze,this.ticks)?at=!1:this.ticks=ze}$e("tickEnable"),Qe("tickFont")&&(at=!0),Be("tickSize"),Be("tickAngle"),Be("tickPad"),it("tickColor");var Lt=Qe("labels");Qe("labelFont")&&(Lt=!0),$e("labelEnable"),Be("labelSize"),Be("labelPad"),it("labelColor"),$e("lineEnable"),$e("lineMirror"),Be("lineWidth"),it("lineColor"),$e("lineTickEnable"),$e("lineTickMirror"),Be("lineTickLength"),Be("lineTickWidth"),it("lineTickColor"),$e("gridEnable"),Be("gridWidth"),it("gridColor"),$e("zeroEnable"),it("zeroLineColor"),Be("zeroLineWidth"),$e("backgroundEnable"),it("backgroundColor"),this._text?this._text&&(Lt||at)&&this._text.update(this.bounds,this.labels,this.labelFont,this.ticks,this.tickFont):this._text=Ue(this.gl,this.bounds,this.labels,this.labelFont,this.ticks,this.tickFont),this._lines&&at&&(this._lines.dispose(),this._lines=null),this._lines||(this._lines=We(this.gl,this.bounds,this.ticks))};var ct=[new OffsetInfo,new OffsetInfo,new OffsetInfo];function computeLineOffset(Ee,ze,Be,Ue,We){for(var $e=Ee.primalOffset,Qe=Ee.primalMinor,rt=Ee.mirrorOffset,it=Ee.mirrorMinor,at=Ue[ze],ct=0;ct<3;++ct)if(ze!==ct){var ft=$e,xt=rt,kt=Qe,Lt=it;at&1<0?(kt[ct]=-1,Lt[ct]=0):(kt[ct]=0,Lt[ct]=1)}}var ft=[0,0,0],xt={model:it,view:it,projection:it,_ortho:!1};at.isOpaque=function(){return!0},at.isTransparent=function(){return!1},at.drawTransparent=function(Ee){};var kt=[0,0,0],Lt=[0,0,0],Ut=[0,0,0];at.draw=function(Ee){Ee=Ee||xt;for(var ze=this.gl,Be=Ee.model||it,Ue=Ee.view||it,We=Ee.projection||it,$e=this.bounds,rt=Ee._ortho||!1,at=Qe(Be,Ue,We,$e,rt),er=at.cubeEdges,tr=at.axis,rr=Ue[12],ar=Ue[13],Lr=Ue[14],Qr=Ue[15],on=(rt?2:1)*this.pixelRatio*(We[3]*rr+We[7]*ar+We[11]*Lr+We[15]*Qr)/ze.drawingBufferHeight,sn=0;sn<3;++sn)this.lastCubeProps.cubeEdges[sn]=er[sn],this.lastCubeProps.axis[sn]=tr[sn];var cn=ct;for(sn=0;sn<3;++sn)computeLineOffset(ct[sn],sn,this.bounds,er,tr);ze=this.gl;var un,hn=ft;for(sn=0;sn<3;++sn)this.backgroundEnable[sn]?hn[sn]=tr[sn]:hn[sn]=0;this._background.draw(Be,Ue,We,$e,hn,this.backgroundColor),this._lines.bind(Be,Ue,We,this);for(sn=0;sn<3;++sn){var dn=[0,0,0];tr[sn]>0?dn[sn]=$e[1][sn]:dn[sn]=$e[0][sn];for(var vn=0;vn<2;++vn){var yn=(sn+1+vn)%3,_n=(sn+1+(1^vn))%3;this.gridEnable[yn]&&this._lines.drawGrid(yn,_n,this.bounds,dn,this.gridColor[yn],this.gridWidth[yn]*this.pixelRatio)}for(vn=0;vn<2;++vn){yn=(sn+1+vn)%3,_n=(sn+1+(1^vn))%3;this.zeroEnable[_n]&&Math.min($e[0][_n],$e[1][_n])<=0&&Math.max($e[0][_n],$e[1][_n])>=0&&this._lines.drawZero(yn,_n,this.bounds,dn,this.zeroLineColor[_n],this.zeroLineWidth[_n]*this.pixelRatio)}}for(sn=0;sn<3;++sn){this.lineEnable[sn]&&this._lines.drawAxisLine(sn,this.bounds,cn[sn].primalOffset,this.lineColor[sn],this.lineWidth[sn]*this.pixelRatio),this.lineMirror[sn]&&this._lines.drawAxisLine(sn,this.bounds,cn[sn].mirrorOffset,this.lineColor[sn],this.lineWidth[sn]*this.pixelRatio);var Mn=copyVec3(kt,cn[sn].primalMinor),Cn=copyVec3(Lt,cn[sn].mirrorMinor),En=this.lineTickLength;for(vn=0;vn<3;++vn){var Pn=on/Be[5*vn];Mn[vn]*=En[vn]*Pn,Cn[vn]*=En[vn]*Pn}this.lineTickEnable[sn]&&this._lines.drawAxisTicks(sn,cn[sn].primalOffset,Mn,this.lineTickColor[sn],this.lineTickWidth[sn]*this.pixelRatio),this.lineTickMirror[sn]&&this._lines.drawAxisTicks(sn,cn[sn].mirrorOffset,Cn,this.lineTickColor[sn],this.lineTickWidth[sn]*this.pixelRatio)}this._lines.unbind(),this._text.bind(Be,Ue,We,this.pixelRatio);var In,Bn;function alignTo(Ee){(Bn=[0,0,0])[Ee]=1}function solveTickAlignments(Ee,ze,Be){var Ue=(Ee+1)%3,We=(Ee+2)%3,$e=ze[Ue],Qe=ze[We],rt=Be[Ue],it=Be[We];$e>0&&it>0||$e>0&&it<0||$e<0&&it>0||$e<0&&it<0?alignTo(Ue):(Qe>0&&rt>0||Qe>0&&rt<0||Qe<0&&rt>0||Qe<0&&rt<0)&&alignTo(We)}for(sn=0;sn<3;++sn){var Hn=cn[sn].primalMinor,Kn=cn[sn].mirrorMinor,Jn=copyVec3(Ut,cn[sn].primalOffset);for(vn=0;vn<3;++vn)this.lineTickEnable[sn]&&(Jn[vn]+=on*Hn[vn]*Math.max(this.lineTickLength[vn],0)/Be[5*vn]);var ei=[0,0,0];if(ei[sn]=1,this.tickEnable[sn]){-3600===this.tickAngle[sn]?(this.tickAngle[sn]=0,this.tickAlign[sn]="auto"):this.tickAlign[sn]=-1,In=1,"auto"===(un=[this.tickAlign[sn],.5,In])[0]?un[0]=0:un[0]=parseInt(""+un[0]),Bn=[0,0,0],solveTickAlignments(sn,Hn,Kn);for(vn=0;vn<3;++vn)Jn[vn]+=on*Hn[vn]*this.tickPad[vn]/Be[5*vn];this._text.drawTicks(sn,this.tickSize[sn],this.tickAngle[sn],Jn,this.tickColor[sn],ei,Bn,un)}if(this.labelEnable[sn]){In=0,Bn=[0,0,0],this.labels[sn].length>4&&(alignTo(sn),In=1),"auto"===(un=[this.labelAlign[sn],.5,In])[0]?un[0]=0:un[0]=parseInt(""+un[0]);for(vn=0;vn<3;++vn)Jn[vn]+=on*Hn[vn]*this.labelPad[vn]/Be[5*vn];Jn[sn]+=.5*($e[0][sn]+$e[1][sn]),this._text.drawLabel(sn,this.labelSize[sn],this.labelAngle[sn],Jn,this.labelColor[sn],[0,0,0],Bn,un)}}this._text.unbind()},at.dispose=function(){this._text.dispose(),this._lines.dispose(),this._background.dispose(),this._lines=null,this._text=null,this._background=null,this.gl=null}},dc6f:function(Ee,ze,Be){Ee.exports=function equals(Ee,ze){var Be=Ee[0],We=Ee[1],$e=Ee[2],Qe=ze[0],rt=ze[1],it=ze[2];return Math.abs(Be-Qe)<=Ue*Math.max(1,Math.abs(Be),Math.abs(Qe))&&Math.abs(We-rt)<=Ue*Math.max(1,Math.abs(We),Math.abs(rt))&&Math.abs($e-it)<=Ue*Math.max(1,Math.abs($e),Math.abs(it))};var Ue=Be("cc12a")},dc75:function(Ee,ze,Be){"use strict";var Ue=Be("19b2"),We=Be("ae13"),$e=Be("306c");function lessThan(Ee,ze){return Eeze}function greaterOrEqual(Ee,ze){return Ee>=ze}ze.findBin=function(Ee,ze,Be){if(Ue(ze.start))return Be?Math.ceil((Ee-ze.start)/ze.size-1e-9)-1:Math.floor((Ee-ze.start)/ze.size+1e-9);var $e,Qe,rt=0,it=ze.length,at=0,ct=it>1?(ze[it-1]-ze[0])/(it-1):1;for(Qe=ct>=0?Be?lessThan:lessOrEqual:Be?greaterOrEqual:greaterThan,Ee+=1e-9*ct*(Be?-1:1)*(ct>=0?1:-1);rt90&&We.log("Long binary search..."),rt-1},ze.sorterAsc=function(Ee,ze){return Ee-ze},ze.sorterDes=function(Ee,ze){return ze-Ee},ze.distinctVals=function(Ee){var Be=Ee.slice();Be.sort(ze.sorterAsc);for(var Ue=Be.length-1,We=Be[Ue]-Be[0]||1,$e=We/(Ue||1)/1e4,Qe=[Be[0]],rt=0;rtBe[rt]+$e&&(We=Math.min(We,Be[rt+1]-Be[rt]),Qe.push(Be[rt+1]));return{vals:Qe,minDiff:We}},ze.roundUp=function(Ee,ze,Be){for(var Ue,We=0,$e=ze.length-1,Qe=0,rt=Be?0:1,it=Be?1:0,at=Be?Math.ceil:Math.floor;We<$e&&Qe++<100;)ze[Ue=at((We+$e)/2)]<=Ee?We=Ue+rt:$e=Ue-it;return ze[We]},ze.sort=function(Ee,ze){for(var Be=0,Ue=0,We=1;We0&&(Ue=1),Be&&Ue)return Ee.sort(ze)}return Ue?Ee:Ee.reverse()},ze.findIndexOfMin=function(Ee,ze){ze=ze||$e;for(var Be,Ue=1/0,We=0;We0)&&(coerce("active"),coerce("direction"),coerce("type"),coerce("showactive"),coerce("x"),coerce("y"),Ue.noneOrAll(Ee,ze,["x","y"]),coerce("xanchor"),coerce("yanchor"),coerce("pad.t"),coerce("pad.r"),coerce("pad.b"),coerce("pad.l"),Ue.coerceFont(coerce,"font",Be.font),coerce("bgcolor",Be.paper_bgcolor),coerce("bordercolor"),coerce("borderwidth"))}function buttonDefaults(Ee,ze){function coerce(Be,We){return Ue.coerce(Ee,ze,rt,Be,We)}coerce("visible","skip"===Ee.method||Array.isArray(Ee.args))&&(coerce("method"),coerce("args"),coerce("args2"),coerce("label"),coerce("execute"))}Ee.exports=function updateMenusDefaults(Ee,ze){We(Ee,ze,{name:Qe,handleItemDefaults:menuDefaults})}},dcc8:function(Ee,ze){Ee.exports=function create(){var Ee=new Float32Array(16);return Ee[0]=1,Ee[1]=0,Ee[2]=0,Ee[3]=0,Ee[4]=0,Ee[5]=1,Ee[6]=0,Ee[7]=0,Ee[8]=0,Ee[9]=0,Ee[10]=1,Ee[11]=0,Ee[12]=0,Ee[13]=0,Ee[14]=0,Ee[15]=1,Ee}},dcf3:function(Ee,ze){Ee.exports=!0},dd05:function(Ee,ze){Ee.exports=function max(Ee,ze,Be){return Ee[0]=Math.max(ze[0],Be[0]),Ee[1]=Math.max(ze[1],Be[1]),Ee[2]=Math.max(ze[2],Be[2]),Ee[3]=Math.max(ze[3],Be[3]),Ee}},dd86:function(Ee,ze){Ee.exports=function multiply(Ee,ze,Be){return Ee[0]=ze[0]*Be[0],Ee[1]=ze[1]*Be[1],Ee[2]=ze[2]*Be[2],Ee[3]=ze[3]*Be[3],Ee}},dd8f:function(Ee,ze,Be){Ee.exports=Be("40ce")},dda6:function(Ee,ze,Be){"use strict";var Ue=Be("53a5");Ee.exports=function calcSDF(Ee,ze){ze||(ze={});var Be,$e,Qe,rt,it,at,ct,ft,xt,kt,Lt,Ut=null==ze.cutoff?.25:ze.cutoff,er=null==ze.radius?8:ze.radius,tr=ze.channel||0;if(ArrayBuffer.isView(Ee)||Array.isArray(Ee)){if(!ze.width||!ze.height)throw Error("For raw data width and height should be provided by options");Be=ze.width,$e=ze.height,rt=Ee,at=ze.stride?ze.stride:Math.floor(Ee.length/Be/$e)}else window.HTMLCanvasElement&&Ee instanceof window.HTMLCanvasElement?(ct=(ft=Ee).getContext("2d"),Be=ft.width,$e=ft.height,xt=ct.getImageData(0,0,Be,$e),rt=xt.data,at=4):window.CanvasRenderingContext2D&&Ee instanceof window.CanvasRenderingContext2D?(ft=Ee.canvas,ct=Ee,Be=ft.width,$e=ft.height,xt=ct.getImageData(0,0,Be,$e),rt=xt.data,at=4):window.ImageData&&Ee instanceof window.ImageData&&(xt=Ee,Be=Ee.width,$e=Ee.height,rt=xt.data,at=4);if(Qe=Math.max(Be,$e),window.Uint8ClampedArray&&rt instanceof window.Uint8ClampedArray||window.Uint8Array&&rt instanceof window.Uint8Array)for(it=rt,rt=Array(Be*$e),kt=0,Lt=it.length;kt0&&($e=Ue.size),Ue.lineSpacing&&Ue.lineSpacing>0&&(Qe=Ue.lineSpacing),Ue.styletags&&Ue.styletags.breaklines&&(rt.breaklines=!!Ue.styletags.breaklines),Ue.styletags&&Ue.styletags.bolds&&(rt.bolds=!!Ue.styletags.bolds),Ue.styletags&&Ue.styletags.italics&&(rt.italics=!!Ue.styletags.italics),Ue.styletags&&Ue.styletags.subscripts&&(rt.subscripts=!!Ue.styletags.subscripts),Ue.styletags&&Ue.styletags.superscripts&&(rt.superscripts=!!Ue.styletags.superscripts));return Be.font=[Ue.fontStyle,Ue.fontVariant,Ue.fontWeight,$e+"px",Ue.font].filter((function(Ee){return Ee})).join(" "),Be.textAlign="start",Be.textBaseline="alphabetic",Be.direction="ltr",processPixels(function getPixels(Ee,ze,Be,Ue,$e,Qe){Be=Be.replace(/\n/g,""),Be=!0===Qe.breaklines?Be.replace(/\/g,"\n"):Be.replace(/\/g," ");var rt="",it=[];for(xt=0;xt-1?parseInt(Ee[1+We]):0,it=$e>-1?parseInt(Be[1+$e]):0;rt!==it&&(Ue=Ue.replace(getTextFontSize(),"?px "),Ut*=Math.pow(.75,it-rt),Ue=Ue.replace("?px ",getTextFontSize())),Lt+=.25*rr*(it-rt)}if(!0===Qe.superscripts){var at=Ee.indexOf("+"),ct=Be.indexOf("+"),ft=at>-1?parseInt(Ee[1+at]):0,xt=ct>-1?parseInt(Be[1+ct]):0;ft!==xt&&(Ue=Ue.replace(getTextFontSize(),"?px "),Ut*=Math.pow(.75,xt-ft),Ue=Ue.replace("?px ",getTextFontSize())),Lt-=.25*rr*(xt-ft)}if(!0===Qe.bolds){var kt=Ee.indexOf("b|")>-1,er=Be.indexOf("b|")>-1;!kt&&er&&(Ue=tr?Ue.replace("italic ","italic bold "):"bold "+Ue),kt&&!er&&(Ue=Ue.replace("bold ",""))}if(!0===Qe.italics){var tr=Ee.indexOf("i|")>-1,ar=Be.indexOf("i|")>-1;!tr&&ar&&(Ue="italic "+Ue),tr&&!ar&&(Ue=Ue.replace("italic ",""))}ze.font=Ue}for(ft=0;ft",$e="",Qe=We.length,rt=$e.length,it="+"===ze[0]||"-"===ze[0],at=0,ct=-rt;at>-1&&-1!==(at=Be.indexOf(We,at))&&-1!==(ct=Be.indexOf($e,at+Qe))&&!(ct<=at);){for(var ft=at;ft=ct)Ue[ft]=null,Be=Be.substr(0,ft)+" "+Be.substr(ft+1);else if(null!==Ue[ft]){var xt=Ue[ft].indexOf(ze[0]);-1===xt?Ue[ft]+=ze:it&&(Ue[ft]=Ue[ft].substr(0,xt+1)+(1+parseInt(Ue[ft][xt+1]))+Ue[ft].substr(xt+2))}var kt=at+Qe,Lt=Be.substr(kt,ct-kt).indexOf(We);at=-1!==Lt?Lt:ct+rt}return Ue}function getContour(Ee,ze){var Be=Ue(Ee,128);return ze?$e(Be.cells,Be.positions,.25):{edges:Be.cells,positions:Be.positions}}function processPixelsImpl(Ee,ze,Be,Ue){var We=getContour(Ee,Ue),$e=function transformPositions(Ee,ze,Be){for(var Ue=ze.textAlign||"start",We=ze.textBaseline||"alphabetic",$e=[1<<30,1<<30],Qe=[0,0],rt=Ee.length,it=0;it=0;Ue--){var We=Ee[Ue];"."===We?Ee.splice(Ue,1):".."===We?(Ee.splice(Ue,1),Be++):Be&&(Ee.splice(Ue,1),Be--)}if(ze)for(;Be--;Be)Ee.unshift("..");return Ee}function filter(Ee,ze){if(Ee.filter)return Ee.filter(ze);for(var Be=[],Ue=0;Ue=-1&&!Be;Ue--){var We=Ue>=0?arguments[Ue]:Ee.cwd();if("string"!=typeof We)throw new TypeError("Arguments to path.resolve must be strings");We&&(ze=We+"/"+ze,Be="/"===We.charAt(0))}return(Be?"/":"")+(ze=normalizeArray(filter(ze.split("/"),(function(Ee){return!!Ee})),!Be).join("/"))||"."},ze.normalize=function(Ee){var Ue=ze.isAbsolute(Ee),We="/"===Be(Ee,-1);return(Ee=normalizeArray(filter(Ee.split("/"),(function(Ee){return!!Ee})),!Ue).join("/"))||Ue||(Ee="."),Ee&&We&&(Ee+="/"),(Ue?"/":"")+Ee},ze.isAbsolute=function(Ee){return"/"===Ee.charAt(0)},ze.join=function(){var Ee=Array.prototype.slice.call(arguments,0);return ze.normalize(filter(Ee,(function(Ee,ze){if("string"!=typeof Ee)throw new TypeError("Arguments to path.join must be strings");return Ee})).join("/"))},ze.relative=function(Ee,Be){function trim(Ee){for(var ze=0;ze=0&&""===Ee[Be];Be--);return ze>Be?[]:Ee.slice(ze,Be-ze+1)}Ee=ze.resolve(Ee).substr(1),Be=ze.resolve(Be).substr(1);for(var Ue=trim(Ee.split("/")),We=trim(Be.split("/")),$e=Math.min(Ue.length,We.length),Qe=$e,rt=0;rt<$e;rt++)if(Ue[rt]!==We[rt]){Qe=rt;break}var it=[];for(rt=Qe;rt=1;--$e)if(47===(ze=Ee.charCodeAt($e))){if(!We){Ue=$e;break}}else We=!1;return-1===Ue?Be?"/":".":Be&&1===Ue?"/":Ee.slice(0,Ue)},ze.basename=function(Ee,ze){var Be=function basename(Ee){"string"!=typeof Ee&&(Ee+="");var ze,Be=0,Ue=-1,We=!0;for(ze=Ee.length-1;ze>=0;--ze)if(47===Ee.charCodeAt(ze)){if(!We){Be=ze+1;break}}else-1===Ue&&(We=!1,Ue=ze+1);return-1===Ue?"":Ee.slice(Be,Ue)}(Ee);return ze&&Be.substr(-1*ze.length)===ze&&(Be=Be.substr(0,Be.length-ze.length)),Be},ze.extname=function(Ee){"string"!=typeof Ee&&(Ee+="");for(var ze=-1,Be=0,Ue=-1,We=!0,$e=0,Qe=Ee.length-1;Qe>=0;--Qe){var rt=Ee.charCodeAt(Qe);if(47!==rt)-1===Ue&&(We=!1,Ue=Qe+1),46===rt?-1===ze?ze=Qe:1!==$e&&($e=1):-1!==ze&&($e=-1);else if(!We){Be=Qe+1;break}}return-1===ze||-1===Ue||0===$e||1===$e&&ze===Ue-1&&ze===Be+1?"":Ee.slice(ze,Ue)};var Be="b"==="ab".substr(-1)?function(Ee,ze,Be){return Ee.substr(ze,Be)}:function(Ee,ze,Be){return ze<0&&(ze=Ee.length+ze),Ee.substr(ze,Be)}}).call(this,Be("4362"))},dfb0:function(Ee,ze,Be){"use strict";var Ue=Be("4cd5"),We=Be("dc75").findBin,$e=Be("d6d8"),Qe=Be("56fc"),rt=Be("f09f"),it=Be("f5e6");Ee.exports=function setConvert(Ee){var ze=Ee._a,Be=Ee._b,at=ze.length,ct=Be.length,ft=Ee.aaxis,xt=Ee.baxis,kt=ze[0],Lt=ze[at-1],Ut=Be[0],er=Be[ct-1],tr=ze[ze.length-1]-ze[0],rr=Be[Be.length-1]-Be[0],ar=tr*Ue.RELATIVE_CULL_TOLERANCE,Lr=rr*Ue.RELATIVE_CULL_TOLERANCE;kt-=ar,Lt+=ar,Ut-=Lr,er+=Lr,Ee.isVisible=function(Ee,ze){return Ee>kt&&EeUt&&zeLt||zeer},Ee.setScale=function(){var ze=Ee._x,Be=Ee._y,Ue=$e(Ee._xctrl,Ee._yctrl,ze,Be,ft.smoothing,xt.smoothing);Ee._xctrl=Ue[0],Ee._yctrl=Ue[1],Ee.evalxy=Qe([Ee._xctrl,Ee._yctrl],at,ct,ft.smoothing,xt.smoothing),Ee.dxydi=rt([Ee._xctrl,Ee._yctrl],ft.smoothing,xt.smoothing),Ee.dxydj=it([Ee._xctrl,Ee._yctrl],ft.smoothing,xt.smoothing)},Ee.i2a=function(Ee){var Be=Math.max(0,Math.floor(Ee[0]),at-2),Ue=Ee[0]-Be;return(1-Ue)*ze[Be]+Ue*ze[Be+1]},Ee.j2b=function(Ee){var ze=Math.max(0,Math.floor(Ee[1]),at-2),Ue=Ee[1]-ze;return(1-Ue)*Be[ze]+Ue*Be[ze+1]},Ee.ij2ab=function(ze){return[Ee.i2a(ze[0]),Ee.j2b(ze[1])]},Ee.a2i=function(Ee){var Be=Math.max(0,Math.min(We(Ee,ze),at-2)),Ue=ze[Be],$e=ze[Be+1];return Math.max(0,Math.min(at-1,Be+(Ee-Ue)/($e-Ue)))},Ee.b2j=function(Ee){var ze=Math.max(0,Math.min(We(Ee,Be),ct-2)),Ue=Be[ze],$e=Be[ze+1];return Math.max(0,Math.min(ct-1,ze+(Ee-Ue)/($e-Ue)))},Ee.ab2ij=function(ze){return[Ee.a2i(ze[0]),Ee.b2j(ze[1])]},Ee.i2c=function(ze,Be){return Ee.evalxy([],ze,Be)},Ee.ab2xy=function(Ue,We,$e){if(!$e&&(Ueze[at-1]|WeBe[ct-1]))return[!1,!1];var Qe=Ee.a2i(Ue),rt=Ee.b2j(We),it=Ee.evalxy([],Qe,rt);if($e){var ft,xt,kt,Lt,Ut=0,er=0,tr=[];Ueze[at-1]?(ft=at-2,xt=1,Ut=(Ue-ze[at-1])/(ze[at-1]-ze[at-2])):xt=Qe-(ft=Math.max(0,Math.min(at-2,Math.floor(Qe)))),WeBe[ct-1]?(kt=ct-2,Lt=1,er=(We-Be[ct-1])/(Be[ct-1]-Be[ct-2])):Lt=rt-(kt=Math.max(0,Math.min(ct-2,Math.floor(rt)))),Ut&&(Ee.dxydi(tr,ft,kt,xt,Lt),it[0]+=tr[0]*Ut,it[1]+=tr[1]*Ut),er&&(Ee.dxydj(tr,ft,kt,xt,Lt),it[0]+=tr[0]*er,it[1]+=tr[1]*er)}return it},Ee.c2p=function(Ee,ze,Be){return[ze.c2p(Ee[0]),Be.c2p(Ee[1])]},Ee.p2x=function(Ee,ze,Be){return[ze.p2c(Ee[0]),Be.p2c(Ee[1])]},Ee.dadi=function(Ee){var Be=Math.max(0,Math.min(ze.length-2,Ee));return ze[Be+1]-ze[Be]},Ee.dbdj=function(Ee){var ze=Math.max(0,Math.min(Be.length-2,Ee));return Be[ze+1]-Be[ze]},Ee.dxyda=function(ze,Be,Ue,We){var $e=Ee.dxydi(null,ze,Be,Ue,We),Qe=Ee.dadi(ze,Ue);return[$e[0]/Qe,$e[1]/Qe]},Ee.dxydb=function(ze,Be,Ue,We){var $e=Ee.dxydj(null,ze,Be,Ue,We),Qe=Ee.dbdj(Be,We);return[$e[0]/Qe,$e[1]/Qe]},Ee.dxyda_rough=function(ze,Be,Ue){var We=tr*(Ue||.1),$e=Ee.ab2xy(ze+We,Be,!0),Qe=Ee.ab2xy(ze-We,Be,!0);return[.5*($e[0]-Qe[0])/We,.5*($e[1]-Qe[1])/We]},Ee.dxydb_rough=function(ze,Be,Ue){var We=rr*(Ue||.1),$e=Ee.ab2xy(ze,Be+We,!0),Qe=Ee.ab2xy(ze,Be-We,!0);return[.5*($e[0]-Qe[0])/We,.5*($e[1]-Qe[1])/We]},Ee.dpdx=function(Ee){return Ee._m},Ee.dpdy=function(Ee){return Ee._m}}},dfb3:function(Ee,ze,Be){"use strict";ze.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"],ze.defaultLine="#444",ze.lightLine="#eee",ze.background="#fff",ze.borderLine="#BEC8D9",ze.lightFraction=1e3/11},dfdf:function(Ee,ze,Be){"use strict";Ee.exports=function createViewController(Ee){var ze=(Ee=Ee||{}).eye||[0,0,1],Be=Ee.center||[0,0,0],Qe=Ee.up||[0,1,0],rt=Ee.distanceLimits||[0,1/0],it=Ee.mode||"turntable",at=Ue(),ct=We(),ft=$e();return at.setDistanceLimits(rt[0],rt[1]),at.lookAt(0,ze,Be,Qe),ct.setDistanceLimits(rt[0],rt[1]),ct.lookAt(0,ze,Be,Qe),ft.setDistanceLimits(rt[0],rt[1]),ft.lookAt(0,ze,Be,Qe),new ViewController({turntable:at,orbit:ct,matrix:ft},it)};var Ue=Be("ec76"),We=Be("61e6"),$e=Be("4168");function ViewController(Ee,ze){this._controllerNames=Object.keys(Ee),this._controllerList=this._controllerNames.map((function(ze){return Ee[ze]})),this._mode=ze,this._active=Ee[ze],this._active||(this._mode="turntable",this._active=Ee.turntable),this.modes=this._controllerNames,this.computedMatrix=this._active.computedMatrix,this.computedEye=this._active.computedEye,this.computedUp=this._active.computedUp,this.computedCenter=this._active.computedCenter,this.computedRadius=this._active.computedRadius}var Qe=ViewController.prototype;[["flush",1],["idle",1],["lookAt",4],["rotate",4],["pan",4],["translate",4],["setMatrix",2],["setDistanceLimits",2],["setDistance",2]].forEach((function(Ee){for(var ze=Ee[0],Be=[],Ue=0;Ueit&&(it=$e[0]),$e[1]at&&(at=$e[1])}function bboxGeometry(Ee){switch(Ee.type){case"GeometryCollection":Ee.geometries.forEach(bboxGeometry);break;case"Point":bboxPoint(Ee.coordinates);break;case"MultiPoint":Ee.coordinates.forEach(bboxPoint)}}if(!ze){var Be,Ue,We=src_transform(Ee),$e=new Array(2),Qe=1/0,rt=Qe,it=-Qe,at=-Qe;for(Ue in Ee.arcs.forEach((function(Ee){for(var ze=-1,Ue=Ee.length;++zeit&&(it=$e[0]),$e[1]at&&(at=$e[1])})),Ee.objects)bboxGeometry(Ee.objects[Ue]);ze=Ee.bbox=[Qe,rt,it,at]}return ze},feature=function(Ee,ze){return"GeometryCollection"===ze.type?{type:"FeatureCollection",features:ze.geometries.map((function(ze){return feature_feature(Ee,ze)}))}:feature_feature(Ee,ze)};function feature_feature(Ee,ze){var Be=ze.id,Ue=ze.bbox,We=null==ze.properties?{}:ze.properties,$e=feature_object(Ee,ze);return null==Be&&null==Ue?{type:"Feature",properties:We,geometry:$e}:null==Ue?{type:"Feature",id:Be,properties:We,geometry:$e}:{type:"Feature",id:Be,bbox:Ue,properties:We,geometry:$e}}function feature_object(Ee,ze){var Be=src_transform(Ee),Ue=Ee.arcs;function arc(Ee,ze){ze.length&&ze.pop();for(var We=Ue[Ee<0?~Ee:Ee],$e=0,Qe=We.length;$e1)Ue=extractArcs(Ee,ze,Be);else for(We=0,Ue=new Array($e=Ee.arcs.length);We<$e;++We)Ue[We]=We;return{type:"MultiLineString",arcs:stitch(Ee,Ue)}}function extractArcs(Ee,ze,Be){var Ue,We=[],$e=[];function extract0(Ee){var ze=Ee<0?~Ee:Ee;($e[ze]||($e[ze]=[])).push({i:Ee,g:Ue})}function extract1(Ee){Ee.forEach(extract0)}function extract2(Ee){Ee.forEach(extract1)}return function geometry(Ee){switch(Ue=Ee,Ee.type){case"GeometryCollection":Ee.geometries.forEach(geometry);break;case"LineString":extract1(Ee.arcs);break;case"MultiLineString":case"Polygon":extract2(Ee.arcs);break;case"MultiPolygon":!function extract3(Ee){Ee.forEach(extract2)}(Ee.arcs)}}(ze),$e.forEach(null==Be?function(Ee){We.push(Ee[0].i)}:function(Ee){Be(Ee[0].g,Ee[Ee.length-1].g)&&We.push(Ee[0].i)}),We}var merge=function(Ee){return feature_object(Ee,mergeArcs.apply(this,arguments))};function mergeArcs(Ee,ze){var Be={},Ue=[],We=[];function extract(Ee){Ee.forEach((function(ze){ze.forEach((function(ze){(Be[ze=ze<0?~ze:ze]||(Be[ze]=[])).push(Ee)}))})),Ue.push(Ee)}function area(ze){return function planarRingArea(Ee){for(var ze,Be=-1,Ue=Ee.length,We=Ee[Ue-1],$e=0;++Be1)for(var $e,Qe,rt=1,it=area(We[0]);rtit&&(Qe=We[0],We[0]=We[rt],We[rt]=Qe,it=$e);return We}))}}var bisect=function(Ee,ze){for(var Be=0,Ue=Ee.length;Be>>1;Ee[We]=2))throw new Error("n must be ≥2");if(Ee.transform)throw new Error("already quantized");var Be,Ue=src_bbox(Ee),We=Ue[0],$e=(Ue[2]-We)/(ze-1)||1,Qe=Ue[1],rt=(Ue[3]-Qe)/(ze-1)||1;function quantizePoint(Ee){Ee[0]=Math.round((Ee[0]-We)/$e),Ee[1]=Math.round((Ee[1]-Qe)/rt)}function quantizeGeometry(Ee){switch(Ee.type){case"GeometryCollection":Ee.geometries.forEach(quantizeGeometry);break;case"Point":quantizePoint(Ee.coordinates);break;case"MultiPoint":Ee.coordinates.forEach(quantizePoint)}}for(Be in Ee.arcs.forEach((function(Ee){for(var ze,Be,Ue,it=1,at=1,ct=Ee.length,ft=Ee[0],xt=ft[0]=Math.round((ft[0]-We)/$e),kt=ft[1]=Math.round((ft[1]-Qe)/rt);it",'""',"''","``","“”","«»"]:("string"==typeof Be.ignore&&(Be.ignore=[Be.ignore]),Be.ignore=Be.ignore.map((function(Ee){return 1===Ee.length&&(Ee+=Ee),Ee})));var We=Ue.parse(Ee,{flat:!0,brackets:Be.ignore}),$e=We[0].split(ze);if(Be.escape){for(var Qe=[],rt=0;rt<$e.length;rt++){var it=$e[rt],at=$e[rt+1];"\\"===it[it.length-1]&&"\\"!==it[it.length-2]?(Qe.push(it+ze+at),rt++):Qe.push(it)}$e=Qe}for(rt=0;rt<$e.length;rt++)We[0]=$e[rt],$e[rt]=Ue.stringify(We,{flat:!0});return $e}},e0d7:function(Ee,ze,Be){var Ue=Be("c2e7"),We=Be("7c72"),$e={M:"moveTo",C:"bezierCurveTo"};Ee.exports=function(Ee,ze){Ee.beginPath(),We(Ue(ze)).forEach((function(ze){var Be=ze[0],Ue=ze.slice(1);Ee[$e[Be]].apply(Ee,Ue)})),Ee.closePath()}},e0f6:function(Ee,ze,Be){"use strict";Ee.exports=Be("9df0")()?Object.setPrototypeOf:Be("e19c")},e100:function(Ee,ze,Be){"use strict";Ee.exports=function robustSubtract(Ee,ze){var Be=0|Ee.length,Ue=0|ze.length;if(1===Be&&1===Ue)return function scalarScalar(Ee,ze){var Be=Ee+ze,Ue=Be-Ee,We=Ee-(Be-Ue)+(ze-Ue);if(We)return[We,Be];return[Be]}(Ee[0],-ze[0]);var We,$e,Qe=new Array(Be+Ue),rt=0,it=0,at=0,ct=Math.abs,ft=Ee[it],xt=ct(ft),kt=-ze[at],Lt=ct(kt);xt=Ue?(We=ft,(it+=1)$e.x1?2*Math.PI:0;ze=Ee.rpx1<$e.rpx1?{rpx0:0,rpx1:0}:{x0:Qe,x1:Qe}}else{var rt,it=rr.getPtId(Ee.parent);ar.each((function(Ee){if(rr.getPtId(Ee)===it)return rt=Ee}));var at,ct=rt.children;ct.forEach((function(Ee,ze){if(rr.getPtId(Ee)===Be)return at=ze}));var ft=ct.length,xt=Ue.interpolate(rt.x0,rt.x1);ze={rpx0:yn,rpx1:yn,x0:xt(at/ft),x1:xt((at+1)/ft)}}return Ue.interpolate(We,ze)}(Ee);return function(Ee){return pathSlice(ze(Ee))}})),Ee.select("g.slicetext").attr("opacity",0)})).remove():ar.exit().remove(),ar.order();var Jn=null;if(Ut&&Cn){var ei=rr.getPtId(Cn);ar.each((function(Ee){null===Jn&&rr.getPtId(Ee)===ei&&(Jn=Ee.x1)}))}var ti=ar;function interpX0X1FromParent(Ee){var ze=Ee.parent,Be=En[rr.getPtId(ze)],We={};if(Be){var $e=ze.children,Qe=$e.indexOf(Ee),rt=$e.length,it=Ue.interpolate(Be.x0,Be.x1);We.x0=it(Qe/rt),We.x1=it(Qe/rt)}else We.x0=We.x1=0;return We}Ut&&(ti=ti.transition().each("end",(function(){var ze=Ue.select(this);rr.setSliceCursor(ze,Ee,{hideOnRoot:!0,hideOnLeaves:!0,isTransitioning:!1})}))),ti.each((function(We){var it=Ue.select(this),ct=Qe.ensureSingle(it,"path","surface",(function(Ee){Ee.style("pointer-events","all")}));We.rpx0=y2rpx(We.y0),We.rpx1=y2rpx(We.y1),We.xmid=(We.x0+We.x1)/2,We.pxmid=rx2px(We.rpx1,We.xmid),We.midangle=-(We.xmid-Math.PI/2),We.startangle=-(We.x0-Math.PI/2),We.stopangle=-(We.x1-Math.PI/2),We.halfangle=.5*Math.min(Qe.angleDelta(We.x0,We.x1)||Math.PI,Math.PI),We.ring=1-We.rpx0/We.rpx1,We.rInscribed=function getInscribedRadiusFraction(Ee){return 0===Ee.rpx0&&Qe.isFullCircle([Ee.x0,Ee.x1])?1:Math.max(0,Math.min(1/(1+1/Math.sin(Ee.halfangle)),Ee.ring/2))}(We),Ut?ct.transition().attrTween("d",(function(Ee){var ze=function makeUpdateSliceInterpolator(Ee){var ze,Be=En[rr.getPtId(Ee)],We={x0:Ee.x0,x1:Ee.x1,rpx0:Ee.rpx0,rpx1:Ee.rpx1};if(Be)ze=Be;else if(Cn)if(Ee.parent)if(Jn){var $e=Ee.x1>Jn?2*Math.PI:0;ze={x0:$e,x1:$e}}else ze={rpx0:yn,rpx1:yn},Qe.extendFlat(ze,interpX0X1FromParent(Ee));else ze={rpx0:0,rpx1:0};else ze={x0:0,x1:0};return Ue.interpolate(ze,We)}(Ee);return function(Ee){return pathSlice(ze(Ee))}})):ct.attr("d",pathSlice),it.call(er,sn,Ee,Be,{eventDataKeys:tr.eventDataKeys,transitionTime:tr.CLICK_TRANSITION_TIME,transitionEasing:tr.CLICK_TRANSITION_EASING}).call(rr.setSliceCursor,Ee,{hideOnRoot:!0,hideOnLeaves:!0,isTransitioning:Ee._transitioning}),ct.call(Lt,We,Qr);var ar=Qe.ensureSingle(it,"g","slicetext"),on=Qe.ensureSingle(ar,"text","",(function(Ee){Ee.attr("data-notex",1)})),cn=Qe.ensureUniformFontSize(Ee,rr.determineTextFont(Qr,We,ft.font));on.text(ze.formatSliceLabel(We,sn,Qr,Be,ft)).classed("slicetext",!0).attr("text-anchor","middle").call($e.font,cn).call(rt.convertToTspans,Ee);var un=$e.bBox(on.node());We.transform=kt(un,We,Lr),We.transform.targetX=getTargetX(We),We.transform.targetY=getTargetY(We);var strTransform=function(Ee,ze){var Be=Ee.transform;return xt(Be,ze),Be.fontSize=cn.size,at(Qr.type,Be,ft),Qe.getTextTransform(Be)};Ut?on.transition().attrTween("transform",(function(Ee){var ze=function makeUpdateTextInterpolator(Ee){var ze,Be=En[rr.getPtId(Ee)],We=Ee.transform;if(Be)ze=Be;else if(ze={rpx1:Ee.rpx1,transform:{textPosAngle:We.textPosAngle,scale:0,rotate:We.rotate,rCenter:We.rCenter,x:We.x,y:We.y}},Cn)if(Ee.parent)if(Jn){var $e=Ee.x1>Jn?2*Math.PI:0;ze.x0=ze.x1=$e}else Qe.extendFlat(ze,interpX0X1FromParent(Ee));else ze.x0=ze.x1=0;else ze.x0=ze.x1=0;var rt=Ue.interpolate(ze.transform.textPosAngle,Ee.transform.textPosAngle),it=Ue.interpolate(ze.rpx1,Ee.rpx1),ct=Ue.interpolate(ze.x0,Ee.x0),xt=Ue.interpolate(ze.x1,Ee.x1),kt=Ue.interpolate(ze.transform.scale,We.scale),Lt=Ue.interpolate(ze.transform.rotate,We.rotate),Ut=0===We.rCenter?3:0===ze.transform.rCenter?1/3:1,er=Ue.interpolate(ze.transform.rCenter,We.rCenter);return function(Ee){var ze=it(Ee),Be=ct(Ee),Ue=xt(Ee),$e=function(Ee){return er(Math.pow(Ee,Ut))}(Ee),Qe={pxmid:rx2px(ze,(Be+Ue)/2),rpx1:ze,transform:{textPosAngle:rt(Ee),rCenter:$e,x:We.x,y:We.y}};return at(Qr.type,We,ft),{transform:{targetX:getTargetX(Qe),targetY:getTargetY(Qe),scale:kt(Ee),rotate:Lt(Ee),rCenter:$e}}}}(Ee);return function(Ee){return strTransform(ze(Ee),un)}})):on.attr("transform",strTransform(We,un))}))}function getTextXY(Ee){return function getCoords(Ee,ze){return[Ee*Math.sin(ze),-Ee*Math.cos(ze)]}(Ee.rpx1,Ee.transform.textPosAngle)}ze.plot=function(Ee,ze,Be,We){var $e,Qe,rt=Ee._fullLayout,it=rt._sunburstlayer,at=!Be,ft=!rt.uniformtext.mode&&rr.hasTransition(Be);(ct("sunburst",rt),($e=it.selectAll("g.trace.sunburst").data(ze,(function(Ee){return Ee[0].trace.uid}))).enter().append("g").classed("trace",!0).classed("sunburst",!0).attr("stroke-linejoin","round"),$e.order(),ft)?(We&&(Qe=We()),Ue.transition().duration(Be.duration).ease(Be.easing).each("end",(function(){Qe&&Qe()})).each("interrupt",(function(){Qe&&Qe()})).each((function(){it.selectAll("g.trace").each((function(ze){plotOne(Ee,ze,this,Be)}))}))):($e.each((function(ze){plotOne(Ee,ze,this,Be)})),rt.uniformtext.mode&&Ut(Ee,rt._sunburstlayer.selectAll(".trace"),"sunburst"));at&&$e.exit().remove()},ze.formatSliceLabel=function(Ee,ze,Be,Ue,We){var $e=Be.texttemplate,rt=Be.textinfo;if(!($e||rt&&"none"!==rt))return"";var it=We.separators,at=Ue[0],ct=Ee.data.data,ft=at.hierarchy,xt=rr.isHierarchyRoot(Ee),kt=rr.getParent(ft,Ee),Lt=rr.getValue(Ee);if(!$e){var Ut,er=rt.split("+"),hasFlag=function(Ee){return-1!==er.indexOf(Ee)},tr=[];if(hasFlag("label")&&ct.label&&tr.push(ct.label),ct.hasOwnProperty("v")&&hasFlag("value")&&tr.push(rr.formatValue(ct.v,it)),!xt){hasFlag("current path")&&tr.push(rr.getPath(Ee.data));var ar=0;hasFlag("percent parent")&&ar++,hasFlag("percent entry")&&ar++,hasFlag("percent root")&&ar++;var Lr=ar>1;if(ar){var Qr,addPercent=function(Ee){Ut=rr.formatPercent(Qr,it),Lr&&(Ut+=" of "+Ee),tr.push(Ut)};hasFlag("percent parent")&&!xt&&(Qr=Lt/rr.getValue(kt),addPercent("parent")),hasFlag("percent entry")&&(Qr=Lt/rr.getValue(ze),addPercent("entry")),hasFlag("percent root")&&(Qr=Lt/rr.getValue(ft),addPercent("root"))}}return hasFlag("text")&&(Ut=Qe.castOption(Be,ct.i,"text"),Qe.isValidTextValue(Ut)&&tr.push(Ut)),tr.join("
")}var on=Qe.castOption(Be,ct.i,"texttemplate");if(!on)return"";var sn={};ct.label&&(sn.label=ct.label),ct.hasOwnProperty("v")&&(sn.value=ct.v,sn.valueLabel=rr.formatValue(ct.v,it)),sn.currentPath=rr.getPath(Ee.data),xt||(sn.percentParent=Lt/rr.getValue(kt),sn.percentParentLabel=rr.formatPercent(sn.percentParent,it),sn.parent=rr.getPtLabel(kt)),sn.percentEntry=Lt/rr.getValue(ze),sn.percentEntryLabel=rr.formatPercent(sn.percentEntry,it),sn.entry=rr.getPtLabel(ze),sn.percentRoot=Lt/rr.getValue(ft),sn.percentRootLabel=rr.formatPercent(sn.percentRoot,it),sn.root=rr.getPtLabel(ft),ct.hasOwnProperty("color")&&(sn.color=ct.color);var cn=Qe.castOption(Be,ct.i,"text");return(Qe.isValidTextValue(cn)||""===cn)&&(sn.text=cn),sn.customdata=Qe.castOption(Be,ct.i,"customdata"),Qe.texttemplateString(on,sn,We._d3locale,sn,Be._meta||{})}},e192:function(Ee,ze,Be){Ee.exports=function(){"use strict";var Ee,ze,Be;function define(Ue,We){if(Ee)if(ze){var $e="var sharedChunk = {}; ("+Ee+")(sharedChunk); ("+ze+")(sharedChunk);",Qe={};Ee(Qe),(Be=We(Qe)).workerUrl=window.URL.createObjectURL(new Blob([$e],{type:"text/javascript"}))}else ze=We;else Ee=We}return define(0,(function(Ee){function e(Ee,ze){return Ee(ze={exports:{}},ze.exports),ze.exports}var ze=n;function n(Ee,ze,Be,Ue){this.cx=3*Ee,this.bx=3*(Be-Ee)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*ze,this.by=3*(Ue-ze)-this.cy,this.ay=1-this.cy-this.by,this.p1x=Ee,this.p1y=Ue,this.p2x=Be,this.p2y=Ue}n.prototype.sampleCurveX=function(Ee){return((this.ax*Ee+this.bx)*Ee+this.cx)*Ee},n.prototype.sampleCurveY=function(Ee){return((this.ay*Ee+this.by)*Ee+this.cy)*Ee},n.prototype.sampleCurveDerivativeX=function(Ee){return(3*this.ax*Ee+2*this.bx)*Ee+this.cx},n.prototype.solveCurveX=function(Ee,ze){var Be,Ue,We,$e,Qe;for(void 0===ze&&(ze=1e-6),We=Ee,Qe=0;Qe<8;Qe++){if($e=this.sampleCurveX(We)-Ee,Math.abs($e)(Ue=1))return Ue;for(;Be$e?Be=We:Ue=We,We=.5*(Ue-Be)+Be}return We},n.prototype.solve=function(Ee,ze){return this.sampleCurveY(this.solveCurveX(Ee,ze))};var Be=a;function a(Ee,ze){this.x=Ee,this.y=ze}function o(Ee,ze){if(Array.isArray(Ee)){if(!Array.isArray(ze)||Ee.length!==ze.length)return!1;for(var Be=0;Be0;)ze[Be]=arguments[Be+1];for(var Ue=0,We=ze;Ue>Ee/4).toString(16):([1e7]+-[1e3]+-4e3+-8e3+-1e11).replace(/[018]/g,t)}()}function d(Ee){return!!Ee&&/^[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(Ee)}function m(Ee,ze){Ee.forEach((function(Ee){ze[Ee]&&(ze[Ee]=ze[Ee].bind(ze))}))}function v(Ee,ze){return-1!==Ee.indexOf(ze,Ee.length-ze.length)}function g(Ee,ze,Be){var Ue={};for(var We in Ee)Ue[We]=ze.call(Be||this,Ee[We],We,Ee);return Ue}function x(Ee,ze,Be){var Ue={};for(var We in Ee)ze.call(Be||this,Ee[We],We,Ee)&&(Ue[We]=Ee[We]);return Ue}function b(Ee){return Array.isArray(Ee)?Ee.map(b):"object"==typeof Ee&&Ee?g(Ee,b):Ee}var $e={};function w(Ee){$e[Ee]||("undefined"!=typeof console&&console.warn(Ee),$e[Ee]=!0)}function A(Ee,ze,Be){return(Be.y-Ee.y)*(ze.x-Ee.x)>(ze.y-Ee.y)*(Be.x-Ee.x)}function k(Ee){for(var ze=0,Be=0,Ue=Ee.length,We=Ue-1,$e=void 0,Qe=void 0;Be@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,(function(Ee,Be,Ue,We){var $e=Ue||We;return ze[Be]=!$e||$e.toLowerCase(),""})),ze["max-age"]){var Be=parseInt(ze["max-age"],10);isNaN(Be)?delete ze["max-age"]:ze["max-age"]=Be}return ze}function z(Ee){try{var ze=self[Ee];return ze.setItem("_mapbox_test_",1),ze.removeItem("_mapbox_test_"),!0}catch(Ee){return!1}}var Qe,rt,it,at,ct=self.performance&&self.performance.now?self.performance.now.bind(self.performance):Date.now.bind(Date),ft=self.requestAnimationFrame||self.mozRequestAnimationFrame||self.webkitRequestAnimationFrame||self.msRequestAnimationFrame,xt=self.cancelAnimationFrame||self.mozCancelAnimationFrame||self.webkitCancelAnimationFrame||self.msCancelAnimationFrame,kt={now:ct,frame:function(Ee){var ze=ft(Ee);return{cancel:function(){return xt(ze)}}},getImageData:function(Ee){var ze=self.document.createElement("canvas"),Be=ze.getContext("2d");if(!Be)throw new Error("failed to create canvas 2d context");return ze.width=Ee.width,ze.height=Ee.height,Be.drawImage(Ee,0,0,Ee.width,Ee.height),Be.getImageData(0,0,Ee.width,Ee.height)},resolveURL:function(Ee){return Qe||(Qe=self.document.createElement("a")),Qe.href=Ee,Qe.href},hardwareConcurrency:self.navigator.hardwareConcurrency||4,get devicePixelRatio(){return self.devicePixelRatio},get prefersReducedMotion(){return!!self.matchMedia&&(null==rt&&(rt=self.matchMedia("(prefers-reduced-motion: reduce)")),rt.matches)}},Lt={API_URL:"https://api.mapbox.com",get EVENTS_URL(){return this.API_URL?0===this.API_URL.indexOf("https://api.mapbox.cn")?"https://events.mapbox.cn/events/v2":0===this.API_URL.indexOf("https://api.mapbox.com")?"https://events.mapbox.com/events/v2":null:null},FEEDBACK_URL:"https://apps.mapbox.com/feedback",REQUIRE_ACCESS_TOKEN:!0,ACCESS_TOKEN:null,MAX_PARALLEL_IMAGE_REQUESTS:16},Ut={supported:!1,testSupport:function(Ee){!er&&at&&(tr?U(Ee):it=Ee)}},er=!1,tr=!1;function U(Ee){var ze=Ee.createTexture();Ee.bindTexture(Ee.TEXTURE_2D,ze);try{if(Ee.texImage2D(Ee.TEXTURE_2D,0,Ee.RGBA,Ee.RGBA,Ee.UNSIGNED_BYTE,at),Ee.isContextLost())return;Ut.supported=!0}catch(Ee){}Ee.deleteTexture(ze),er=!0}self.document&&((at=self.document.createElement("img")).onload=function(){it&&U(it),it=null,tr=!0},at.onerror=function(){er=!0,it=null},at.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");var rr="01",j=function(Ee,ze){this._transformRequestFn=Ee,this._customAccessToken=ze,this._createSkuToken()};function q(Ee){return 0===Ee.indexOf("mapbox:")}j.prototype._createSkuToken=function(){var Ee=function(){for(var Ee="",ze=0;ze<10;ze++)Ee+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[Math.floor(62*Math.random())];return{token:["1",rr,Ee].join(""),tokenExpiresAt:Date.now()+432e5}}();this._skuToken=Ee.token,this._skuTokenExpiresAt=Ee.tokenExpiresAt},j.prototype._isSkuTokenExpired=function(){return Date.now()>this._skuTokenExpiresAt},j.prototype.transformRequest=function(Ee,ze){return this._transformRequestFn&&this._transformRequestFn(Ee,ze)||{url:Ee}},j.prototype.normalizeStyleURL=function(Ee,ze){if(!q(Ee))return Ee;var Be=X(Ee);return Be.path="/styles/v1"+Be.path,this._makeAPIURL(Be,this._customAccessToken||ze)},j.prototype.normalizeGlyphsURL=function(Ee,ze){if(!q(Ee))return Ee;var Be=X(Ee);return Be.path="/fonts/v1"+Be.path,this._makeAPIURL(Be,this._customAccessToken||ze)},j.prototype.normalizeSourceURL=function(Ee,ze){if(!q(Ee))return Ee;var Be=X(Ee);return Be.path="/v4/"+Be.authority+".json",Be.params.push("secure"),this._makeAPIURL(Be,this._customAccessToken||ze)},j.prototype.normalizeSpriteURL=function(Ee,ze,Be,Ue){var We=X(Ee);return q(Ee)?(We.path="/styles/v1"+We.path+"/sprite"+ze+Be,this._makeAPIURL(We,this._customAccessToken||Ue)):(We.path+=""+ze+Be,G(We))},j.prototype.normalizeTileURL=function(Ee,ze,Be){if(this._isSkuTokenExpired()&&this._createSkuToken(),!ze||!q(ze))return Ee;var Ue=X(Ee),We=kt.devicePixelRatio>=2||512===Be?"@2x":"",$e=Ut.supported?".webp":"$1";return Ue.path=Ue.path.replace(/(\.(png|jpg)\d*)(?=$)/,""+We+$e),Ue.path=Ue.path.replace(/^.+\/v4\//,"/"),Ue.path="/v4"+Ue.path,Lt.REQUIRE_ACCESS_TOKEN&&(Lt.ACCESS_TOKEN||this._customAccessToken)&&this._skuToken&&Ue.params.push("sku="+this._skuToken),this._makeAPIURL(Ue,this._customAccessToken)},j.prototype.canonicalizeTileURL=function(Ee){var ze=X(Ee);if(!ze.path.match(/(^\/v4\/)/)||!ze.path.match(/\.[\w]+$/))return Ee;var Be="mapbox://tiles/";Be+=ze.path.replace("/v4/","");var Ue=ze.params.filter((function(Ee){return!Ee.match(/^access_token=/)}));return Ue.length&&(Be+="?"+Ue.join("&")),Be},j.prototype.canonicalizeTileset=function(Ee,ze){if(!q(ze))return Ee.tiles||[];for(var Be=[],Ue=0,We=Ee.tiles;Ue=1&&self.localStorage.setItem(ze,JSON.stringify(this.eventData))}catch(Ee){w("Unable to write to LocalStorage")}},H.prototype.processRequests=function(Ee){},H.prototype.postEvent=function(Ee,ze,Be,Ue){var We=this;if(Lt.EVENTS_URL){var $e=X(Lt.EVENTS_URL);$e.params.push("access_token="+(Ue||Lt.ACCESS_TOKEN||""));var Qe={event:this.type,created:new Date(Ee).toISOString(),sdkIdentifier:"mapbox-gl-js",sdkVersion:"1.3.2",skuId:rr,userId:this.anonId},rt=ze?c(Qe,ze):Qe,it={url:G($e),headers:{"Content-Type":"text/plain"},body:JSON.stringify([rt])};this.pendingRequest=vt(it,(function(Ee){We.pendingRequest=null,Be(Ee),We.saveEventData(),We.processRequests(Ue)}))}},H.prototype.queueRequest=function(Ee,ze){this.queue.push(Ee),this.processRequests(ze)};var Qr,on=function(Ee){function e(){Ee.call(this,"map.load"),this.success={},this.skuToken=""}return Ee&&(e.__proto__=Ee),e.prototype=Object.create(Ee&&Ee.prototype),e.prototype.constructor=e,e.prototype.postMapLoadEvent=function(Ee,ze,Be,Ue){this.skuToken=Be,(Lt.EVENTS_URL&&Ue||Lt.ACCESS_TOKEN&&Array.isArray(Ee)&&Ee.some((function(Ee){return q(Ee)||K(Ee)})))&&this.queueRequest({id:ze,timestamp:Date.now()},Ue)},e.prototype.processRequests=function(Ee){var ze=this;if(!this.pendingRequest&&0!==this.queue.length){var Be=this.queue.shift(),Ue=Be.id,We=Be.timestamp;Ue&&this.success[Ue]||(this.anonId||this.fetchEventData(),d(this.anonId)||(this.anonId=y()),this.postEvent(We,{skuToken:this.skuToken},(function(Ee){Ee||Ue&&(ze.success[Ue]=!0)}),Ee))}},e}(H),sn=new(function(Ee){function e(ze){Ee.call(this,"appUserTurnstile"),this._customAccessToken=ze}return Ee&&(e.__proto__=Ee),e.prototype=Object.create(Ee&&Ee.prototype),e.prototype.constructor=e,e.prototype.postTurnstileEvent=function(Ee,ze){Lt.EVENTS_URL&&Lt.ACCESS_TOKEN&&Array.isArray(Ee)&&Ee.some((function(Ee){return q(Ee)||K(Ee)}))&&this.queueRequest(Date.now(),ze)},e.prototype.processRequests=function(Ee){var ze=this;if(!this.pendingRequest&&0!==this.queue.length){this.anonId&&this.eventData.lastSuccess&&this.eventData.tokenU||this.fetchEventData();var Be=J(Lt.ACCESS_TOKEN),Ue=Be?Be.u:Lt.ACCESS_TOKEN,We=Ue!==this.eventData.tokenU;d(this.anonId)||(this.anonId=y(),We=!0);var $e=this.queue.shift();if(this.eventData.lastSuccess){var Qe=new Date(this.eventData.lastSuccess),rt=new Date($e),it=($e-this.eventData.lastSuccess)/864e5;We=We||it>=1||it<-1||Qe.getDate()!==rt.getDate()}else We=!0;if(!We)return this.processRequests();this.postEvent($e,{"enabled.telemetry":!1},(function(Ee){Ee||(ze.eventData.lastSuccess=$e,ze.eventData.tokenU=Ue)}),Ee)}},e}(H)),cn=sn.postTurnstileEvent.bind(sn),un=new on,hn=un.postMapLoadEvent.bind(un),dn="mapbox-tiles",vn=500,yn=50;function st(Ee){var ze=Ee.indexOf("?");return ze<0?Ee:Ee.slice(0,ze)}var _n=1/0,Mn={Unknown:"Unknown",Style:"Style",Source:"Source",Tile:"Tile",Glyphs:"Glyphs",SpriteImage:"SpriteImage",SpriteJSON:"SpriteJSON",Image:"Image"};"function"==typeof Object.freeze&&Object.freeze(Mn);var Cn=function(Ee){function e(ze,Be,Ue){401===Be&&K(Ue)&&(ze+=": you may have provided an invalid Mapbox access token. See https://www.mapbox.com/api-documentation/#access-tokens-and-token-scopes"),Ee.call(this,ze),this.status=Be,this.url=Ue,this.name=this.constructor.name,this.message=ze}return Ee&&(e.__proto__=Ee),e.prototype=Object.create(Ee&&Ee.prototype),e.prototype.constructor=e,e.prototype.toString=function(){return this.name+": "+this.message+" ("+this.status+"): "+this.url},e}(Error);function ht(){return"undefined"!=typeof WorkerGlobalScope&&"undefined"!=typeof self&&self instanceof WorkerGlobalScope}var En=ht()?function(){return self.worker&&self.worker.referrer}:function(){return("blob:"===self.location.protocol?self.parent:self).location.href};function yt(Ee,ze){var Be,Ue=new self.AbortController,We=new self.Request(Ee.url,{method:Ee.method||"GET",body:Ee.body,credentials:Ee.credentials,headers:Ee.headers,referrer:En(),signal:Ue.signal}),$e=!1,Qe=!1,rt=(Be=We.url).indexOf("sku=")>0&&K(Be);"json"===Ee.type&&We.headers.set("Accept","application/json");var u=function(Be,Ue,$e){if(!Qe){if(Be&&"SecurityError"!==Be.message&&w(Be),Ue&&$e)return l(Ue);var it=Date.now();self.fetch(We).then((function(Be){if(Be.ok){var Ue=rt?Be.clone():null;return l(Be,Ue,it)}return ze(new Cn(Be.statusText,Be.status,Ee.url))})).catch((function(Ee){20!==Ee.code&&ze(new Error(Ee.message))}))}},l=function(Be,Ue,rt){("arrayBuffer"===Ee.type?Be.arrayBuffer():"json"===Ee.type?Be.json():Be.text()).then((function(Ee){Qe||(Ue&&rt&&function ot(Ee,ze,Be){if(self.caches){var Ue={status:ze.status,statusText:ze.statusText,headers:new self.Headers};ze.headers.forEach((function(Ee,ze){return Ue.headers.set(ze,Ee)}));var We=S(ze.headers.get("Cache-Control")||"");We["no-store"]||(We["max-age"]&&Ue.headers.set("Expires",new Date(Be+1e3*We["max-age"]).toUTCString()),new Date(Ue.headers.get("Expires")).getTime()-Be<42e4||function(Ee,ze){if(void 0===Qr)try{new Response(new ReadableStream),Qr=!0}catch(Ee){Qr=!1}Qr?ze(Ee.body):Ee.blob().then(ze)}(ze,(function(ze){var Be=new self.Response(ze,Ue);self.caches.open(dn).then((function(ze){return ze.put(st(Ee.url),Be)})).catch((function(Ee){return w(Ee.message)}))})))}}(We,Ue,rt),$e=!0,ze(null,Ee,Be.headers.get("Cache-Control"),Be.headers.get("Expires")))})).catch((function(Ee){return ze(new Error(Ee.message))}))};return rt?function ut(Ee,ze){if(!self.caches)return ze(null);var Be=st(Ee.url);self.caches.open(dn).then((function(Ee){Ee.match(Be).then((function(Ue){var We=function(Ee){if(!Ee)return!1;var ze=new Date(Ee.headers.get("Expires")),Be=S(Ee.headers.get("Cache-Control")||"");return ze>Date.now()&&!Be["no-cache"]}(Ue);Ee.delete(Be),We&&Ee.put(Be,Ue.clone()),ze(null,Ue,We)})).catch(ze)})).catch(ze)}(We,u):u(null,null),{cancel:function(){Qe=!0,$e||Ue.abort()}}}var Pn,In,dt=function(Ee,ze){if(Be=Ee.url,!(/^file:/.test(Be)||/^file:/.test(En())&&!/^\w+:/.test(Be))){if(self.fetch&&self.Request&&self.AbortController&&self.Request.prototype.hasOwnProperty("signal"))return yt(Ee,ze);if(ht()&&self.worker&&self.worker.actor)return self.worker.actor.send("getResource",Ee,ze)}var Be;return function(Ee,ze){var Be=new self.XMLHttpRequest;for(var Ue in Be.open(Ee.method||"GET",Ee.url,!0),"arrayBuffer"===Ee.type&&(Be.responseType="arraybuffer"),Ee.headers)Be.setRequestHeader(Ue,Ee.headers[Ue]);return"json"===Ee.type&&(Be.responseType="text",Be.setRequestHeader("Accept","application/json")),Be.withCredentials="include"===Ee.credentials,Be.onerror=function(){ze(new Error(Be.statusText))},Be.onload=function(){if((Be.status>=200&&Be.status<300||0===Be.status)&&null!==Be.response){var Ue=Be.response;if("json"===Ee.type)try{Ue=JSON.parse(Be.response)}catch(Ee){return ze(Ee)}ze(null,Ue,Be.getResponseHeader("Cache-Control"),Be.getResponseHeader("Expires"))}else ze(new Cn(Be.statusText,Be.status,Ee.url))},Be.send(Ee.body),{cancel:function(){return Be.abort()}}}(Ee,ze)},mt=function(Ee,ze){return dt(c(Ee,{type:"arrayBuffer"}),ze)},vt=function(Ee,ze){return dt(c(Ee,{method:"POST"}),ze)};Pn=[],In=0;var bt=function(Ee,ze){if(In>=Lt.MAX_PARALLEL_IMAGE_REQUESTS){var Be={requestParameters:Ee,callback:ze,cancelled:!1,cancel:function(){this.cancelled=!0}};return Pn.push(Be),Be}In++;var Ue=!1,i=function(){if(!Ue)for(Ue=!0,In--;Pn.length&&In0||this._oneTimeListeners&&this._oneTimeListeners[Ee]&&this._oneTimeListeners[Ee].length>0||this._eventedParent&&this._eventedParent.listens(Ee)},St.prototype.setEventedParent=function(Ee,ze){return this._eventedParent=Ee,this._eventedParentData=ze,this};var Hn={$version:8,$root:{version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},light:{type:"light"},sources:{required:!0,type:"sources"},sprite:{type:"string"},glyphs:{type:"string"},transition:{type:"transition"},layers:{required:!0,type:"array",value:"layer"}},sources:{"*":{type:"source"}},source:["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],source_vector:{type:{required:!0,type:"enum",values:{vector:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},attribution:{type:"string"},"*":{type:"*"}},source_raster:{type:{required:!0,type:"enum",values:{raster:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},attribution:{type:"string"},"*":{type:"*"}},source_raster_dem:{type:{required:!0,type:"enum",values:{"raster-dem":{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},attribution:{type:"string"},encoding:{type:"enum",values:{terrarium:{},mapbox:{}},default:"mapbox"},"*":{type:"*"}},source_geojson:{type:{required:!0,type:"enum",values:{geojson:{}}},data:{type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},tolerance:{type:"number",default:.375},cluster:{type:"boolean",default:!1},clusterRadius:{type:"number",default:50,minimum:0},clusterMaxZoom:{type:"number"},clusterProperties:{type:"*"},lineMetrics:{type:"boolean",default:!1},generateId:{type:"boolean",default:!1}},source_video:{type:{required:!0,type:"enum",values:{video:{}}},urls:{required:!0,type:"array",value:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},source_image:{type:{required:!0,type:"enum",values:{image:{}}},url:{required:!0,type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},layer:{id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},background:{}},required:!0},metadata:{type:"*"},source:{type:"string"},"source-layer":{type:"string"},minzoom:{type:"number",minimum:0,maximum:24},maxzoom:{type:"number",minimum:0,maximum:24},filter:{type:"filter"},layout:{type:"layout"},paint:{type:"paint"}},layout:["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background"],layout_background:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_fill:{"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_circle:{"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_heatmap:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_line:{"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-join":{type:"enum",values:{bevel:{},round:{},miter:{}},default:"miter",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,requires:[{"line-join":"miter"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_symbol:{"symbol-placement":{type:"enum",values:{point:{},line:{},"line-center":{}},default:"point",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",requires:[{"symbol-placement":"line"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{type:"enum",values:{auto:{},"viewport-y":{},source:{}},default:"auto",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{},width:{},height:{},both:{}},default:"none",requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{type:"array",value:"number",length:4,default:[0,0,0,0],units:"pixels",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"string",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-keep-upright":{type:"boolean",default:!1,requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"],requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-letter-spacing":{type:"number",default:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{auto:{},left:{},center:{},right:{}},default:"center",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{type:"number",units:"ems",default:0,requires:["text-field"],"property-type":"data-driven",expression:{interpolated:!0,parameters:["zoom","feature"]}},"text-variable-anchor":{type:"array",value:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["text-field",{"!":"text-variable-anchor"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",requires:["text-field",{"symbol-placement":["line","line-center"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-writing-mode":{type:"array",value:"enum",values:{horizontal:{},vertical:{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{},uppercase:{},lowercase:{}},default:"none",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field",{"!":"text-radial-offset"},{"!":"text-variable-anchor"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,requires:["text-field","icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_raster:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_hillshade:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},filter:{type:"array",value:"*"},filter_operator:{type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{}}},geometry_type:{type:"enum",values:{Point:{},LineString:{},Polygon:{}}},function:{expression:{type:"expression"},stops:{type:"array",value:"function_stop"},base:{type:"number",default:1,minimum:0},property:{type:"string",default:"$zoom"},type:{type:"enum",values:{identity:{},exponential:{},interval:{},categorical:{}},default:"exponential"},colorSpace:{type:"enum",values:{rgb:{},lab:{},hcl:{}},default:"rgb"},default:{type:"*",required:!1}},function_stop:{type:"array",minimum:0,maximum:22,value:["number","color"],length:2},expression:{type:"array",value:"*",minimum:1},expression_name:{type:"enum",values:{let:{group:"Variable binding"},var:{group:"Variable binding"},literal:{group:"Types"},array:{group:"Types"},at:{group:"Lookup"},case:{group:"Decision"},match:{group:"Decision"},coalesce:{group:"Decision"},step:{group:"Ramps, scales, curves"},interpolate:{group:"Ramps, scales, curves"},"interpolate-hcl":{group:"Ramps, scales, curves"},"interpolate-lab":{group:"Ramps, scales, curves"},ln2:{group:"Math"},pi:{group:"Math"},e:{group:"Math"},typeof:{group:"Types"},string:{group:"Types"},number:{group:"Types"},boolean:{group:"Types"},object:{group:"Types"},collator:{group:"Types"},format:{group:"Types"},"number-format":{group:"Types"},"to-string":{group:"Types"},"to-number":{group:"Types"},"to-boolean":{group:"Types"},"to-rgba":{group:"Color"},"to-color":{group:"Types"},rgb:{group:"Color"},rgba:{group:"Color"},get:{group:"Lookup"},has:{group:"Lookup"},length:{group:"Lookup"},properties:{group:"Feature data"},"feature-state":{group:"Feature data"},"geometry-type":{group:"Feature data"},id:{group:"Feature data"},zoom:{group:"Zoom"},"heatmap-density":{group:"Heatmap"},"line-progress":{group:"Feature data"},accumulated:{group:"Feature data"},"+":{group:"Math"},"*":{group:"Math"},"-":{group:"Math"},"/":{group:"Math"},"%":{group:"Math"},"^":{group:"Math"},sqrt:{group:"Math"},log10:{group:"Math"},ln:{group:"Math"},log2:{group:"Math"},sin:{group:"Math"},cos:{group:"Math"},tan:{group:"Math"},asin:{group:"Math"},acos:{group:"Math"},atan:{group:"Math"},min:{group:"Math"},max:{group:"Math"},round:{group:"Math"},abs:{group:"Math"},ceil:{group:"Math"},floor:{group:"Math"},"==":{group:"Decision"},"!=":{group:"Decision"},">":{group:"Decision"},"<":{group:"Decision"},">=":{group:"Decision"},"<=":{group:"Decision"},all:{group:"Decision"},any:{group:"Decision"},"!":{group:"Decision"},"is-supported-script":{group:"String"},upcase:{group:"String"},downcase:{group:"String"},concat:{group:"String"},"resolved-locale":{group:"String"}}},light:{anchor:{type:"enum",default:"viewport",values:{map:{},viewport:{}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},paint:["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background"],paint_fill:{"fill-antialias":{type:"boolean",default:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"string",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-extrusion-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"string",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",transition:!0,requires:["fill-extrusion-height"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:{"line-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["line-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",minimum:0,transition:!0,units:"line widths",requires:[{"!":"line-pattern"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"line-pattern":{type:"string",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-gradient":{type:"color",transition:!1,requires:[{"!":"line-dasharray"},{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"}},paint_circle:{"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["circle-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{},viewport:{}},default:"map",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}},paint_heatmap:{"heatmap-radius":{type:"number",default:30,minimum:1,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"heatmap-color":{type:"color",default:["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",.1,"royalblue",.3,"cyan",.5,"lime",.7,"yellow",1,"red"],transition:!1,expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_symbol:{"icon-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["icon-image","icon-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",default:"#000000",transition:!0,overridable:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["text-field","text-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_raster:{"raster-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_hillshade:{"hillshade-illumination-direction":{type:"number",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",default:"#FFFFFF",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_background:{"background-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"background-pattern"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"string",transition:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},transition:{duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},"property-type":{"data-driven":{type:"property-type"},"cross-faded":{type:"property-type"},"cross-faded-data-driven":{type:"property-type"},"color-ramp":{type:"property-type"},"data-constant":{type:"property-type"},constant:{type:"property-type"}}},It=function(Ee,ze,Be,Ue){this.message=(Ee?Ee+": ":"")+Be,Ue&&(this.identifier=Ue),null!=ze&&ze.__line__&&(this.line=ze.__line__)};function Ct(Ee){var ze=Ee.key,Be=Ee.value;return Be?[new It(ze,Be,"constants have been deprecated as of v8")]:[]}function Bt(Ee){for(var ze=[],Be=arguments.length-1;Be-- >0;)ze[Be]=arguments[Be+1];for(var Ue=0,We=ze;Ue":"value"===Ee.itemType.kind?"array":"array<"+ze+">"}return Ee.kind}var li=[Jn,ei,ti,ri,ni,si,ii,Kt(ai)];function Gt(Ee,ze){if("error"===ze.kind)return null;if("array"===Ee.kind){if("array"===ze.kind&&(0===ze.N&&"value"===ze.itemType.kind||!Gt(Ee.itemType,ze.itemType))&&("number"!=typeof Ee.N||Ee.N===ze.N))return null}else{if(Ee.kind===ze.kind)return null;if("value"===Ee.kind)for(var Be=0,Ue=li;Be255?255:Ee}function i(Ee){return Ee<0?0:Ee>1?1:Ee}function a(Ee){return"%"===Ee[Ee.length-1]?n(parseFloat(Ee)/100*255):n(parseInt(Ee))}function o(Ee){return"%"===Ee[Ee.length-1]?i(parseFloat(Ee)/100):i(parseFloat(Ee))}function s(Ee,ze,Be){return Be<0?Be+=1:Be>1&&(Be-=1),6*Be<1?Ee+(ze-Ee)*Be*6:2*Be<1?ze:3*Be<2?Ee+(ze-Ee)*(2/3-Be)*6:Ee}try{ze.parseCSSColor=function(Ee){var ze,Ue=Ee.replace(/ /g,"").toLowerCase();if(Ue in Be)return Be[Ue].slice();if("#"===Ue[0])return 4===Ue.length?(ze=parseInt(Ue.substr(1),16))>=0&&ze<=4095?[(3840&ze)>>4|(3840&ze)>>8,240&ze|(240&ze)>>4,15&ze|(15&ze)<<4,1]:null:7===Ue.length&&(ze=parseInt(Ue.substr(1),16))>=0&&ze<=16777215?[(16711680&ze)>>16,(65280&ze)>>8,255&ze,1]:null;var We=Ue.indexOf("("),$e=Ue.indexOf(")");if(-1!==We&&$e+1===Ue.length){var Qe=Ue.substr(0,We),rt=Ue.substr(We+1,$e-(We+1)).split(","),it=1;switch(Qe){case"rgba":if(4!==rt.length)return null;it=o(rt.pop());case"rgb":return 3!==rt.length?null:[a(rt[0]),a(rt[1]),a(rt[2]),it];case"hsla":if(4!==rt.length)return null;it=o(rt.pop());case"hsl":if(3!==rt.length)return null;var at=(parseFloat(rt[0])%360+360)%360/360,ct=o(rt[1]),ft=o(rt[2]),xt=ft<=.5?ft*(ct+1):ft+ct-ft*ct,kt=2*ft-xt;return[n(255*s(kt,xt,at+1/3)),n(255*s(kt,xt,at)),n(255*s(kt,xt,at-1/3)),it];default:return null}}return null}}catch(Ee){}})).parseCSSColor,Ht=function(Ee,ze,Be,Ue){void 0===Ue&&(Ue=1),this.r=Ee,this.g=ze,this.b=Be,this.a=Ue};Ht.parse=function(Ee){if(Ee){if(Ee instanceof Ht)return Ee;if("string"==typeof Ee){var ze=ci(Ee);if(ze)return new Ht(ze[0]/255*ze[3],ze[1]/255*ze[3],ze[2]/255*ze[3],ze[3])}}},Ht.prototype.toString=function(){var Ee=this.toArray(),ze=Ee[0],Be=Ee[1],Ue=Ee[2],We=Ee[3];return"rgba("+Math.round(ze)+","+Math.round(Be)+","+Math.round(Ue)+","+We+")"},Ht.prototype.toArray=function(){var Ee=this.r,ze=this.g,Be=this.b,Ue=this.a;return 0===Ue?[0,0,0,0]:[255*Ee/Ue,255*ze/Ue,255*Be/Ue,Ue]},Ht.black=new Ht(0,0,0,1),Ht.white=new Ht(1,1,1,1),Ht.transparent=new Ht(0,0,0,0),Ht.red=new Ht(1,0,0,1);var Yt=function(Ee,ze,Be){this.sensitivity=Ee?ze?"variant":"case":ze?"accent":"base",this.locale=Be,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})};Yt.prototype.compare=function(Ee,ze){return this.collator.compare(Ee,ze)},Yt.prototype.resolvedLocale=function(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale};var $t=function(Ee,ze,Be,Ue){this.text=Ee,this.scale=ze,this.fontStack=Be,this.textColor=Ue},Wt=function(Ee){this.sections=Ee};function Qt(Ee,ze,Be,Ue){return"number"==typeof Ee&&Ee>=0&&Ee<=255&&"number"==typeof ze&&ze>=0&&ze<=255&&"number"==typeof Be&&Be>=0&&Be<=255?void 0===Ue||"number"==typeof Ue&&Ue>=0&&Ue<=1?null:"Invalid rgba value ["+[Ee,ze,Be,Ue].join(", ")+"]: 'a' must be between 0 and 1.":"Invalid rgba value ["+("number"==typeof Ue?[Ee,ze,Be,Ue]:[Ee,ze,Be]).join(", ")+"]: 'r', 'g', and 'b' must be between 0 and 255."}function te(Ee){if(null===Ee)return Jn;if("string"==typeof Ee)return ti;if("boolean"==typeof Ee)return ri;if("number"==typeof Ee)return ei;if(Ee instanceof Ht)return ni;if(Ee instanceof Yt)return oi;if(Ee instanceof Wt)return si;if(Array.isArray(Ee)){for(var ze,Be=Ee.length,Ue=0,We=Ee;Ue2){var rt=Ee[1];if("string"!=typeof rt||!(rt in hi)||"object"===rt)return ze.error('The item type argument of "array" must be one of string, number, boolean',1);$e=hi[rt],Ue++}else $e=ai;if(Ee.length>3){if(null!==Ee[2]&&("number"!=typeof Ee[2]||Ee[2]<0||Ee[2]!==Math.floor(Ee[2])))return ze.error('The length argument to "array" must be a positive integer literal',2);Qe=Ee[2],Ue++}Be=Kt($e,Qe)}else Be=hi[We];for(var it=[];Ue1)&&ze.push(Ue)}}return ze.concat(this.args.map((function(Ee){return Ee.serialize()})))};var oe=function(Ee){this.type=si,this.sections=Ee};oe.parse=function(Ee,ze){if(Ee.length<3)return ze.error("Expected at least two arguments.");if((Ee.length-1)%2!=0)return ze.error("Expected an even number of arguments.");for(var Be=[],Ue=1;Ue4?"Invalid rbga value "+JSON.stringify(ze)+": expected an array containing either three or four numeric values.":Qt(ze[0],ze[1],ze[2],ze[3])))return new Ht(ze[0]/255,ze[1]/255,ze[2]/255,ze[3])}throw new ne(Be||"Could not parse color from value '"+("string"==typeof ze?ze:String(JSON.stringify(ze)))+"'")}if("number"===this.type.kind){for(var Qe=null,rt=0,it=this.args;rt=0)return!1;var Be=!0;return Ee.eachChild((function(Ee){Be&&!de(Ee,ze)&&(Be=!1)})),Be}he.parse=function(Ee,ze){if(2!==Ee.length)return ze.error("Expected one argument.");var Be=Ee[1];if("object"!=typeof Be||Array.isArray(Be))return ze.error("Collator options argument must be an object.");var Ue=ze.parse(void 0!==Be["case-sensitive"]&&Be["case-sensitive"],1,ri);if(!Ue)return null;var We=ze.parse(void 0!==Be["diacritic-sensitive"]&&Be["diacritic-sensitive"],1,ri);if(!We)return null;var $e=null;return Be.locale&&!($e=ze.parse(Be.locale,1,ti))?null:new he(Ue,We,$e)},he.prototype.evaluate=function(Ee){return new Yt(this.caseSensitive.evaluate(Ee),this.diacriticSensitive.evaluate(Ee),this.locale?this.locale.evaluate(Ee):null)},he.prototype.eachChild=function(Ee){Ee(this.caseSensitive),Ee(this.diacriticSensitive),this.locale&&Ee(this.locale)},he.prototype.possibleOutputs=function(){return[void 0]},he.prototype.serialize=function(){var Ee={};return Ee["case-sensitive"]=this.caseSensitive.serialize(),Ee["diacritic-sensitive"]=this.diacriticSensitive.serialize(),this.locale&&(Ee.locale=this.locale.serialize()),["collator",Ee]};var me=function(Ee,ze){this.type=ze.type,this.name=Ee,this.boundExpression=ze};me.parse=function(Ee,ze){if(2!==Ee.length||"string"!=typeof Ee[1])return ze.error("'var' expression requires exactly one string literal argument.");var Be=Ee[1];return ze.scope.has(Be)?new me(Be,ze.scope.get(Be)):ze.error('Unknown variable "'+Be+'". Make sure "'+Be+'" has been bound in an enclosing "let" expression before using it.',1)},me.prototype.evaluate=function(Ee){return this.boundExpression.evaluate(Ee)},me.prototype.eachChild=function(){},me.prototype.possibleOutputs=function(){return[void 0]},me.prototype.serialize=function(){return["var",this.name]};var ve=function(Ee,ze,Be,Ue,We){void 0===ze&&(ze=[]),void 0===Ue&&(Ue=new Vt),void 0===We&&(We=[]),this.registry=Ee,this.path=ze,this.key=ze.map((function(Ee){return"["+Ee+"]"})).join(""),this.scope=Ue,this.errors=We,this.expectedType=Be};function ge(Ee,ze){for(var Be,Ue,We=Ee.length-1,$e=0,Qe=We,rt=0;$e<=Qe;)if(Be=Ee[rt=Math.floor(($e+Qe)/2)],Ue=Ee[rt+1],Be<=ze){if(rt===We||zeze))throw new ne("Input is not a number.");Qe=rt-1}return 0}ve.prototype.parse=function(Ee,ze,Be,Ue,We){return void 0===We&&(We={}),ze?this.concat(ze,Be,Ue)._parse(Ee,We):this._parse(Ee,We)},ve.prototype._parse=function(Ee,ze){function r(Ee,ze,Be){return"assert"===Be?new ae(ze,[Ee]):"coerce"===Be?new ue(ze,[Ee]):Ee}if(null!==Ee&&"string"!=typeof Ee&&"boolean"!=typeof Ee&&"number"!=typeof Ee||(Ee=["literal",Ee]),Array.isArray(Ee)){if(0===Ee.length)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');var Be=Ee[0];if("string"!=typeof Be)return this.error("Expression name must be a string, but found "+typeof Be+' instead. If you wanted a literal array, use ["literal", [...]].',0),null;var Ue=this.registry[Be];if(Ue){var We=Ue.parse(Ee,this);if(!We)return null;if(this.expectedType){var $e=this.expectedType,Qe=We.type;if("string"!==$e.kind&&"number"!==$e.kind&&"boolean"!==$e.kind&&"object"!==$e.kind&&"array"!==$e.kind||"value"!==Qe.kind)if("color"!==$e.kind&&"formatted"!==$e.kind||"value"!==Qe.kind&&"string"!==Qe.kind){if(this.checkSubtype($e,Qe))return null}else We=r(We,$e,ze.typeAnnotation||"coerce");else We=r(We,$e,ze.typeAnnotation||"assert")}if(!(We instanceof re)&&function t(Ee){if(Ee instanceof me)return t(Ee.boundExpression);if(Ee instanceof ce&&"error"===Ee.name)return!1;if(Ee instanceof he)return!1;var ze=Ee instanceof ue||Ee instanceof ae,Be=!0;return Ee.eachChild((function(Ee){Be=ze?Be&&t(Ee):Be&&Ee instanceof re})),!!Be&&fe(Ee)&&de(Ee,["zoom","heatmap-density","line-progress","accumulated","is-supported-script"])}(We)){var rt=new pe;try{We=new re(We.type,We.evaluate(rt))}catch(Ee){return this.error(Ee.message),null}}return We}return this.error('Unknown expression "'+Be+'". If you wanted a literal array, use ["literal", [...]].',0)}return void 0===Ee?this.error("'undefined' value invalid. Use null instead."):"object"==typeof Ee?this.error('Bare objects invalid. Use ["literal", {...}] instead.'):this.error("Expected an array, but found "+typeof Ee+" instead.")},ve.prototype.concat=function(Ee,ze,Be){var Ue="number"==typeof Ee?this.path.concat(Ee):this.path,We=Be?this.scope.concat(Be):this.scope;return new ve(this.registry,Ue,ze||null,We,this.errors)},ve.prototype.error=function(Ee){for(var ze=[],Be=arguments.length-1;Be-- >0;)ze[Be]=arguments[Be+1];var Ue=""+this.key+ze.map((function(Ee){return"["+Ee+"]"})).join("");this.errors.push(new Kn(Ue,Ee))},ve.prototype.checkSubtype=function(Ee,ze){var Be=Gt(Ee,ze);return Be&&this.error(Be),Be};var xe=function(Ee,ze,Be){this.type=Ee,this.input=ze,this.labels=[],this.outputs=[];for(var Ue=0,We=Be;Ue=Qe)return ze.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',it);var ct=ze.parse(rt,at,We);if(!ct)return null;We=We||ct.type,Ue.push([Qe,ct])}return new xe(We,Be,Ue)},xe.prototype.evaluate=function(Ee){var ze=this.labels,Be=this.outputs;if(1===ze.length)return Be[0].evaluate(Ee);var Ue=this.input.evaluate(Ee);if(Ue<=ze[0])return Be[0].evaluate(Ee);var We=ze.length;return Ue>=ze[We-1]?Be[We-1].evaluate(Ee):Be[ge(ze,Ue)].evaluate(Ee)},xe.prototype.eachChild=function(Ee){Ee(this.input);for(var ze=0,Be=this.outputs;ze0&&Ee.push(this.labels[ze]),Ee.push(this.outputs[ze].serialize());return Ee};var zi=Object.freeze({number:be,color:function(Ee,ze,Be){return new Ht(be(Ee.r,ze.r,Be),be(Ee.g,ze.g,Be),be(Ee.b,ze.b,Be),be(Ee.a,ze.a,Be))},array:function(Ee,ze,Be){return Ee.map((function(Ee,Ue){return be(Ee,ze[Ue],Be)}))}}),ji=6/29,Xi=3*ji*ji,Ma=Math.PI/180,Sa=180/Math.PI;function Me(Ee){return Ee>.008856451679035631?Math.pow(Ee,1/3):Ee/Xi+4/29}function Pe(Ee){return Ee>ji?Ee*Ee*Ee:Xi*(Ee-4/29)}function Te(Ee){return 255*(Ee<=.0031308?12.92*Ee:1.055*Math.pow(Ee,1/2.4)-.055)}function Ve(Ee){return(Ee/=255)<=.04045?Ee/12.92:Math.pow((Ee+.055)/1.055,2.4)}function Fe(Ee){var ze=Ve(Ee.r),Be=Ve(Ee.g),Ue=Ve(Ee.b),We=Me((.4124564*ze+.3575761*Be+.1804375*Ue)/.95047),$e=Me((.2126729*ze+.7151522*Be+.072175*Ue)/1);return{l:116*$e-16,a:500*(We-$e),b:200*($e-Me((.0193339*ze+.119192*Be+.9503041*Ue)/1.08883)),alpha:Ee.a}}function Oe(Ee){var ze=(Ee.l+16)/116,Be=isNaN(Ee.a)?ze:ze+Ee.a/500,Ue=isNaN(Ee.b)?ze:ze-Ee.b/200;return ze=1*Pe(ze),Be=.95047*Pe(Be),Ue=1.08883*Pe(Ue),new Ht(Te(3.2404542*Be-1.5371385*ze-.4985314*Ue),Te(-.969266*Be+1.8760108*ze+.041556*Ue),Te(.0556434*Be-.2040259*ze+1.0572252*Ue),Ee.alpha)}function Le(Ee,ze,Be){var Ue=ze-Ee;return Ee+Be*(Ue>180||Ue<-180?Ue-360*Math.round(Ue/360):Ue)}var La={forward:Fe,reverse:Oe,interpolate:function(Ee,ze,Be){return{l:be(Ee.l,ze.l,Be),a:be(Ee.a,ze.a,Be),b:be(Ee.b,ze.b,Be),alpha:be(Ee.alpha,ze.alpha,Be)}}},Ia={forward:function(Ee){var ze=Fe(Ee),Be=ze.l,Ue=ze.a,We=ze.b,$e=Math.atan2(We,Ue)*Sa;return{h:$e<0?$e+360:$e,c:Math.sqrt(Ue*Ue+We*We),l:Be,alpha:Ee.a}},reverse:function(Ee){var ze=Ee.h*Ma,Be=Ee.c;return Oe({l:Ee.l,a:Math.cos(ze)*Be,b:Math.sin(ze)*Be,alpha:Ee.alpha})},interpolate:function(Ee,ze,Be){return{h:Le(Ee.h,ze.h,Be),c:be(Ee.c,ze.c,Be),l:be(Ee.l,ze.l,Be),alpha:be(Ee.alpha,ze.alpha,Be)}}},Ra=Object.freeze({lab:La,hcl:Ia}),je=function(Ee,ze,Be,Ue,We){this.type=Ee,this.operator=ze,this.interpolation=Be,this.input=Ue,this.labels=[],this.outputs=[];for(var $e=0,Qe=We;$e1})))return ze.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);Ue={name:"cubic-bezier",controlPoints:rt}}if(Ee.length-1<4)return ze.error("Expected at least 4 arguments, but found only "+(Ee.length-1)+".");if((Ee.length-1)%2!=0)return ze.error("Expected an even number of arguments.");if(!(We=ze.parse(We,2,ei)))return null;var it=[],at=null;"interpolate-hcl"===Be||"interpolate-lab"===Be?at=ni:ze.expectedType&&"value"!==ze.expectedType.kind&&(at=ze.expectedType);for(var ct=0;ct<$e.length;ct+=2){var ft=$e[ct],xt=$e[ct+1],kt=ct+3,Lt=ct+4;if("number"!=typeof ft)return ze.error('Input/output pairs for "interpolate" expressions must be defined using literal numeric values (not computed expressions) for the input values.',kt);if(it.length&&it[it.length-1][0]>=ft)return ze.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',kt);var Ut=ze.parse(xt,Lt,at);if(!Ut)return null;at=at||Ut.type,it.push([ft,Ut])}return"number"===at.kind||"color"===at.kind||"array"===at.kind&&"number"===at.itemType.kind&&"number"==typeof at.N?new je(at,Be,Ue,We,it):ze.error("Type "+Zt(at)+" is not interpolatable.")},je.prototype.evaluate=function(Ee){var ze=this.labels,Be=this.outputs;if(1===ze.length)return Be[0].evaluate(Ee);var Ue=this.input.evaluate(Ee);if(Ue<=ze[0])return Be[0].evaluate(Ee);var We=ze.length;if(Ue>=ze[We-1])return Be[We-1].evaluate(Ee);var $e=ge(ze,Ue),Qe=ze[$e],rt=ze[$e+1],it=je.interpolationFactor(this.interpolation,Ue,Qe,rt),at=Be[$e].evaluate(Ee),ct=Be[$e+1].evaluate(Ee);return"interpolate"===this.operator?zi[this.type.kind.toLowerCase()](at,ct,it):"interpolate-hcl"===this.operator?Ia.reverse(Ia.interpolate(Ia.forward(at),Ia.forward(ct),it)):La.reverse(La.interpolate(La.forward(at),La.forward(ct),it))},je.prototype.eachChild=function(Ee){Ee(this.input);for(var ze=0,Be=this.outputs;ze=Be.length)throw new ne("Array index out of bounds: "+ze+" > "+(Be.length-1)+".");if(ze!==Math.floor(ze))throw new ne("Array index must be an integer, but found "+ze+" instead.");return Be[ze]},Ze.prototype.eachChild=function(Ee){Ee(this.index),Ee(this.input)},Ze.prototype.possibleOutputs=function(){return[void 0]},Ze.prototype.serialize=function(){return["at",this.index.serialize(),this.input.serialize()]};var Xe=function(Ee,ze,Be,Ue,We,$e){this.inputType=Ee,this.type=ze,this.input=Be,this.cases=Ue,this.outputs=We,this.otherwise=$e};Xe.parse=function(Ee,ze){if(Ee.length<5)return ze.error("Expected at least 4 arguments, but found only "+(Ee.length-1)+".");if(Ee.length%2!=1)return ze.error("Expected an even number of arguments.");var Be,Ue;ze.expectedType&&"value"!==ze.expectedType.kind&&(Ue=ze.expectedType);for(var We={},$e=[],Qe=2;QeNumber.MAX_SAFE_INTEGER)return at.error("Branch labels must be integers no larger than "+Number.MAX_SAFE_INTEGER+".");if("number"==typeof xt&&Math.floor(xt)!==xt)return at.error("Numeric branch labels must be integer values.");if(Be){if(at.checkSubtype(Be,te(xt)))return null}else Be=te(xt);if(void 0!==We[String(xt)])return at.error("Branch labels must be unique.");We[String(xt)]=$e.length}var kt=ze.parse(it,Qe,Ue);if(!kt)return null;Ue=Ue||kt.type,$e.push(kt)}var Lt=ze.parse(Ee[1],1,ai);if(!Lt)return null;var Ut=ze.parse(Ee[Ee.length-1],Ee.length-1,Ue);return Ut?"value"!==Lt.type.kind&&ze.concat(1).checkSubtype(Be,Lt.type)?null:new Xe(Be,Ue,Lt,We,$e,Ut):null},Xe.prototype.evaluate=function(Ee){var ze=this.input.evaluate(Ee);return(te(ze)===this.inputType&&this.outputs[this.cases[ze]]||this.otherwise).evaluate(Ee)},Xe.prototype.eachChild=function(Ee){Ee(this.input),this.outputs.forEach(Ee),Ee(this.otherwise)},Xe.prototype.possibleOutputs=function(){var Ee;return(Ee=[]).concat.apply(Ee,this.outputs.map((function(Ee){return Ee.possibleOutputs()}))).concat(this.otherwise.possibleOutputs())},Xe.prototype.serialize=function(){for(var Ee=this,ze=["match",this.input.serialize()],Be=[],Ue={},We=0,$e=Object.keys(this.cases).sort();We<$e.length;We+=1){var Qe=$e[We];void 0===(ct=Ue[this.cases[Qe]])?(Ue[this.cases[Qe]]=Be.length,Be.push([this.cases[Qe],[Qe]])):Be[ct][1].push(Qe)}for(var s=function(ze){return"number"===Ee.inputType.kind?Number(ze):ze},rt=0,it=Be;rt",(function(Ee,ze,Be){return ze>Be}),(function(Ee,ze,Be,Ue){return Ue.compare(ze,Be)>0})),Co=Ye("<=",(function(Ee,ze,Be){return ze<=Be}),(function(Ee,ze,Be,Ue){return Ue.compare(ze,Be)<=0})),zo=Ye(">=",(function(Ee,ze,Be){return ze>=Be}),(function(Ee,ze,Be,Ue){return Ue.compare(ze,Be)>=0})),nr=function(Ee,ze,Be,Ue,We){this.type=ti,this.number=Ee,this.locale=ze,this.currency=Be,this.minFractionDigits=Ue,this.maxFractionDigits=We};nr.parse=function(Ee,ze){if(3!==Ee.length)return ze.error("Expected two arguments.");var Be=ze.parse(Ee[1],1,ei);if(!Be)return null;var Ue=Ee[2];if("object"!=typeof Ue||Array.isArray(Ue))return ze.error("NumberFormat options argument must be an object.");var We=null;if(Ue.locale&&!(We=ze.parse(Ue.locale,1,ti)))return null;var $e=null;if(Ue.currency&&!($e=ze.parse(Ue.currency,1,ti)))return null;var Qe=null;if(Ue["min-fraction-digits"]&&!(Qe=ze.parse(Ue["min-fraction-digits"],1,ei)))return null;var rt=null;return Ue["max-fraction-digits"]&&!(rt=ze.parse(Ue["max-fraction-digits"],1,ei))?null:new nr(Be,We,$e,Qe,rt)},nr.prototype.evaluate=function(Ee){return new Intl.NumberFormat(this.locale?this.locale.evaluate(Ee):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(Ee):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(Ee):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(Ee):void 0}).format(this.number.evaluate(Ee))},nr.prototype.eachChild=function(Ee){Ee(this.number),this.locale&&Ee(this.locale),this.currency&&Ee(this.currency),this.minFractionDigits&&Ee(this.minFractionDigits),this.maxFractionDigits&&Ee(this.maxFractionDigits)},nr.prototype.possibleOutputs=function(){return[void 0]},nr.prototype.serialize=function(){var Ee={};return this.locale&&(Ee.locale=this.locale.serialize()),this.currency&&(Ee.currency=this.currency.serialize()),this.minFractionDigits&&(Ee["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(Ee["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),Ee]};var ir=function(Ee){this.type=ei,this.input=Ee};ir.parse=function(Ee,ze){if(2!==Ee.length)return ze.error("Expected 1 argument, but found "+(Ee.length-1)+" instead.");var Be=ze.parse(Ee[1],1);return Be?"array"!==Be.type.kind&&"string"!==Be.type.kind&&"value"!==Be.type.kind?ze.error("Expected argument of type string or array, but found "+Zt(Be.type)+" instead."):new ir(Be):null},ir.prototype.evaluate=function(Ee){var ze=this.input.evaluate(Ee);if("string"==typeof ze)return ze.length;if(Array.isArray(ze))return ze.length;throw new ne("Expected value to be of type string or array, but found "+Zt(te(ze))+" instead.")},ir.prototype.eachChild=function(Ee){Ee(this.input)},ir.prototype.possibleOutputs=function(){return[void 0]},ir.prototype.serialize=function(){var Ee=["length"];return this.eachChild((function(ze){Ee.push(ze.serialize())})),Ee};var Bo={"==":Na,"!=":Ua,">":Ka,"<":qa,">=":zo,"<=":Co,array:ae,at:Ze,boolean:ae,case:Ge,coalesce:Ne,collator:he,format:oe,interpolate:je,"interpolate-hcl":je,"interpolate-lab":je,length:ir,let:Ke,literal:re,match:Xe,number:ae,"number-format":nr,object:ae,step:xe,string:ae,"to-boolean":ue,"to-color":ue,"to-number":ue,"to-string":ue,var:me};function or(Ee,ze){var Be=ze[0],Ue=ze[1],We=ze[2],$e=ze[3];Be=Be.evaluate(Ee),Ue=Ue.evaluate(Ee),We=We.evaluate(Ee);var Qe=$e?$e.evaluate(Ee):1,rt=Qt(Be,Ue,We,Qe);if(rt)throw new ne(rt);return new Ht(Be/255*Qe,Ue/255*Qe,We/255*Qe,Qe)}function sr(Ee,ze){return Ee in ze}function ur(Ee,ze){var Be=ze[Ee];return void 0===Be?null:Be}function lr(Ee){return{type:Ee}}function pr(Ee){return{result:"success",value:Ee}}function cr(Ee){return{result:"error",value:Ee}}function hr(Ee){return"data-driven"===Ee["property-type"]||"cross-faded-data-driven"===Ee["property-type"]}function fr(Ee){return!!Ee.expression&&Ee.expression.parameters.indexOf("zoom")>-1}function yr(Ee){return!!Ee.expression&&Ee.expression.interpolated}function dr(Ee){return Ee instanceof Number?"number":Ee instanceof String?"string":Ee instanceof Boolean?"boolean":Array.isArray(Ee)?"array":null===Ee?"null":typeof Ee}function mr(Ee){return"object"==typeof Ee&&null!==Ee&&!Array.isArray(Ee)}function vr(Ee){return Ee}function gr(Ee,ze,Be){return void 0!==Ee?Ee:void 0!==ze?ze:void 0!==Be?Be:void 0}function xr(Ee,ze,Be,Ue,We){return gr(typeof Be===We?Ue[Be]:void 0,Ee.default,ze.default)}function br(Ee,ze,Be){if("number"!==dr(Be))return gr(Ee.default,ze.default);var Ue=Ee.stops.length;if(1===Ue)return Ee.stops[0][1];if(Be<=Ee.stops[0][0])return Ee.stops[0][1];if(Be>=Ee.stops[Ue-1][0])return Ee.stops[Ue-1][1];var We=ge(Ee.stops.map((function(Ee){return Ee[0]})),Be);return Ee.stops[We][1]}function _r(Ee,ze,Be){var Ue=void 0!==Ee.base?Ee.base:1;if("number"!==dr(Be))return gr(Ee.default,ze.default);var We=Ee.stops.length;if(1===We)return Ee.stops[0][1];if(Be<=Ee.stops[0][0])return Ee.stops[0][1];if(Be>=Ee.stops[We-1][0])return Ee.stops[We-1][1];var $e=ge(Ee.stops.map((function(Ee){return Ee[0]})),Be),Qe=function(Ee,ze,Be,Ue){var We=Ue-Be,$e=Ee-Be;return 0===We?0:1===ze?$e/We:(Math.pow(ze,$e)-1)/(Math.pow(ze,We)-1)}(Be,Ue,Ee.stops[$e][0],Ee.stops[$e+1][0]),rt=Ee.stops[$e][1],it=Ee.stops[$e+1][1],at=zi[ze.type]||vr;if(Ee.colorSpace&&"rgb"!==Ee.colorSpace){var ct=Ra[Ee.colorSpace];at=function(Ee,ze){return ct.reverse(ct.interpolate(ct.forward(Ee),ct.forward(ze),Qe))}}return"function"==typeof rt.evaluate?{evaluate:function(){for(var Ee=[],ze=arguments.length;ze--;)Ee[ze]=arguments[ze];var Be=rt.evaluate.apply(void 0,Ee),Ue=it.evaluate.apply(void 0,Ee);if(void 0!==Be&&void 0!==Ue)return at(Be,Ue,Qe)}}:at(rt,it,Qe)}function wr(Ee,ze,Be){return"color"===ze.type?Be=Ht.parse(Be):"formatted"===ze.type?Be=Wt.fromString(Be.toString()):dr(Be)===ze.type||"enum"===ze.type&&ze.values[Be]||(Be=void 0),gr(Be,Ee.default,ze.default)}ce.register(Bo,{error:[{kind:"error"},[ti],function(Ee,ze){var Be=ze[0];throw new ne(Be.evaluate(Ee))}],typeof:[ti,[ai],function(Ee,ze){return Zt(te(ze[0].evaluate(Ee)))}],"to-rgba":[Kt(ei,4),[ni],function(Ee,ze){return ze[0].evaluate(Ee).toArray()}],rgb:[ni,[ei,ei,ei],or],rgba:[ni,[ei,ei,ei,ei],or],has:{type:ri,overloads:[[[ti],function(Ee,ze){return sr(ze[0].evaluate(Ee),Ee.properties())}],[[ti,ii],function(Ee,ze){var Be=ze[0],Ue=ze[1];return sr(Be.evaluate(Ee),Ue.evaluate(Ee))}]]},get:{type:ai,overloads:[[[ti],function(Ee,ze){return ur(ze[0].evaluate(Ee),Ee.properties())}],[[ti,ii],function(Ee,ze){var Be=ze[0],Ue=ze[1];return ur(Be.evaluate(Ee),Ue.evaluate(Ee))}]]},"feature-state":[ai,[ti],function(Ee,ze){return ur(ze[0].evaluate(Ee),Ee.featureState||{})}],properties:[ii,[],function(Ee){return Ee.properties()}],"geometry-type":[ti,[],function(Ee){return Ee.geometryType()}],id:[ai,[],function(Ee){return Ee.id()}],zoom:[ei,[],function(Ee){return Ee.globals.zoom}],"heatmap-density":[ei,[],function(Ee){return Ee.globals.heatmapDensity||0}],"line-progress":[ei,[],function(Ee){return Ee.globals.lineProgress||0}],accumulated:[ai,[],function(Ee){return void 0===Ee.globals.accumulated?null:Ee.globals.accumulated}],"+":[ei,lr(ei),function(Ee,ze){for(var Be=0,Ue=0,We=ze;Ue":[ri,[ti,ai],function(Ee,ze){var Be=ze[0],Ue=ze[1],We=Ee.properties()[Be.value],$e=Ue.value;return typeof We==typeof $e&&We>$e}],"filter-id->":[ri,[ai],function(Ee,ze){var Be=ze[0],Ue=Ee.id(),We=Be.value;return typeof Ue==typeof We&&Ue>We}],"filter-<=":[ri,[ti,ai],function(Ee,ze){var Be=ze[0],Ue=ze[1],We=Ee.properties()[Be.value],$e=Ue.value;return typeof We==typeof $e&&We<=$e}],"filter-id-<=":[ri,[ai],function(Ee,ze){var Be=ze[0],Ue=Ee.id(),We=Be.value;return typeof Ue==typeof We&&Ue<=We}],"filter->=":[ri,[ti,ai],function(Ee,ze){var Be=ze[0],Ue=ze[1],We=Ee.properties()[Be.value],$e=Ue.value;return typeof We==typeof $e&&We>=$e}],"filter-id->=":[ri,[ai],function(Ee,ze){var Be=ze[0],Ue=Ee.id(),We=Be.value;return typeof Ue==typeof We&&Ue>=We}],"filter-has":[ri,[ai],function(Ee,ze){return ze[0].value in Ee.properties()}],"filter-has-id":[ri,[],function(Ee){return null!==Ee.id()}],"filter-type-in":[ri,[Kt(ti)],function(Ee,ze){return ze[0].value.indexOf(Ee.geometryType())>=0}],"filter-id-in":[ri,[Kt(ai)],function(Ee,ze){return ze[0].value.indexOf(Ee.id())>=0}],"filter-in-small":[ri,[ti,Kt(ai)],function(Ee,ze){var Be=ze[0];return ze[1].value.indexOf(Ee.properties()[Be.value])>=0}],"filter-in-large":[ri,[ti,Kt(ai)],function(Ee,ze){var Be=ze[0],Ue=ze[1];return function(Ee,ze,Be,Ue){for(;Be<=Ue;){var We=Be+Ue>>1;if(ze[We]===Ee)return!0;ze[We]>Ee?Ue=We-1:Be=We+1}return!1}(Ee.properties()[Be.value],Ue.value,0,Ue.value.length-1)}],all:{type:ri,overloads:[[[ri,ri],function(Ee,ze){var Be=ze[0],Ue=ze[1];return Be.evaluate(Ee)&&Ue.evaluate(Ee)}],[lr(ri),function(Ee,ze){for(var Be=0,Ue=ze;Be0&&"string"==typeof Ee[0]&&Ee[0]in Bo}function Sr(Ee,ze){var Be=new ve(Bo,[],ze?function(Ee){var ze={color:ni,string:ti,number:ei,enum:ti,boolean:ri,formatted:si};return"array"===Ee.type?Kt(ze[Ee.value]||ai,Ee.length):ze[Ee.type]}(ze):void 0),Ue=Be.parse(Ee,void 0,void 0,void 0,ze&&"string"===ze.type?{typeAnnotation:"coerce"}:void 0);return Ue?pr(new Ar(Ue,ze)):cr(Be.errors)}Ar.prototype.evaluateWithoutErrorHandling=function(Ee,ze,Be,Ue){return this._evaluator.globals=Ee,this._evaluator.feature=ze,this._evaluator.featureState=Be,this._evaluator.formattedSection=Ue,this.expression.evaluate(this._evaluator)},Ar.prototype.evaluate=function(Ee,ze,Be,Ue){this._evaluator.globals=Ee,this._evaluator.feature=ze||null,this._evaluator.featureState=Be||null,this._evaluator.formattedSection=Ue||null;try{var We=this.expression.evaluate(this._evaluator);if(null==We)return this._defaultValue;if(this._enumValues&&!(We in this._enumValues))throw new ne("Expected value to be one of "+Object.keys(this._enumValues).map((function(Ee){return JSON.stringify(Ee)})).join(", ")+", but found "+JSON.stringify(We)+" instead.");return We}catch(Ee){return this._warningHistory[Ee.message]||(this._warningHistory[Ee.message]=!0,"undefined"!=typeof console&&console.warn(Ee.message)),this._defaultValue}};var zr=function(Ee,ze){this.kind=Ee,this._styleExpression=ze,this.isStateDependent="constant"!==Ee&&!ye(ze.expression)};zr.prototype.evaluateWithoutErrorHandling=function(Ee,ze,Be,Ue){return this._styleExpression.evaluateWithoutErrorHandling(Ee,ze,Be,Ue)},zr.prototype.evaluate=function(Ee,ze,Be,Ue){return this._styleExpression.evaluate(Ee,ze,Be,Ue)};var Ir=function(Ee,ze,Be,Ue){this.kind=Ee,this.zoomStops=Be,this._styleExpression=ze,this.isStateDependent="camera"!==Ee&&!ye(ze.expression),this.interpolationType=Ue};function Cr(Ee,ze){if("error"===(Ee=Sr(Ee,ze)).result)return Ee;var Be=Ee.value.expression,Ue=fe(Be);if(!Ue&&!hr(ze))return cr([new Kn("","data expressions not supported")]);var We=de(Be,["zoom"]);if(!We&&!fr(ze))return cr([new Kn("","zoom expressions not supported")]);var $e=function t(Ee){var ze=null;if(Ee instanceof Ke)ze=t(Ee.result);else if(Ee instanceof Ne)for(var Be=0,Ue=Ee.args;BeUe.maximum?[new It(ze,Be,Be+" is greater than the maximum value "+Ue.maximum)]:[]}function Tr(Ee){var ze,Be,Ue,We=Ee.valueSpec,$e=Mt(Ee.value.type),Qe={},rt="categorical"!==$e&&void 0===Ee.value.property,it=!rt,at="array"===dr(Ee.value.stops)&&"array"===dr(Ee.value.stops[0])&&"object"===dr(Ee.value.stops[0][0]),ct=Er({key:Ee.key,value:Ee.value,valueSpec:Ee.styleSpec.function,style:Ee.style,styleSpec:Ee.styleSpec,objectElementValidators:{stops:function(Ee){if("identity"===$e)return[new It(Ee.key,Ee.value,'identity function may not have a "stops" property')];var ze=[],Be=Ee.value;return ze=ze.concat(Mr({key:Ee.key,value:Be,valueSpec:Ee.valueSpec,style:Ee.style,styleSpec:Ee.styleSpec,arrayElementValidator:c})),"array"===dr(Be)&&0===Be.length&&ze.push(new It(Ee.key,Be,"array must have at least one stop")),ze},default:function(Ee){return tn({key:Ee.key,value:Ee.value,valueSpec:We,style:Ee.style,styleSpec:Ee.styleSpec})}}});return"identity"===$e&&rt&&ct.push(new It(Ee.key,Ee.value,'missing required property "property"')),"identity"===$e||Ee.value.stops||ct.push(new It(Ee.key,Ee.value,'missing required property "stops"')),"exponential"===$e&&Ee.valueSpec.expression&&!yr(Ee.valueSpec)&&ct.push(new It(Ee.key,Ee.value,"exponential functions not supported")),Ee.styleSpec.$version>=8&&(it&&!hr(Ee.valueSpec)?ct.push(new It(Ee.key,Ee.value,"property functions not supported")):rt&&!fr(Ee.valueSpec)&&ct.push(new It(Ee.key,Ee.value,"zoom functions not supported"))),"categorical"!==$e&&!at||void 0!==Ee.value.property||ct.push(new It(Ee.key,Ee.value,'"property" property is required')),ct;function c(Ee){var ze=[],$e=Ee.value,rt=Ee.key;if("array"!==dr($e))return[new It(rt,$e,"array expected, "+dr($e)+" found")];if(2!==$e.length)return[new It(rt,$e,"array length 2 expected, length "+$e.length+" found")];if(at){if("object"!==dr($e[0]))return[new It(rt,$e,"object expected, "+dr($e[0])+" found")];if(void 0===$e[0].zoom)return[new It(rt,$e,"object stop key must have zoom")];if(void 0===$e[0].value)return[new It(rt,$e,"object stop key must have value")];if(Ue&&Ue>Mt($e[0].zoom))return[new It(rt,$e[0].zoom,"stop zoom values must appear in ascending order")];Mt($e[0].zoom)!==Ue&&(Ue=Mt($e[0].zoom),Be=void 0,Qe={}),ze=ze.concat(Er({key:rt+"[0]",value:$e[0],valueSpec:{zoom:{}},style:Ee.style,styleSpec:Ee.styleSpec,objectElementValidators:{zoom:Pr,value:h}}))}else ze=ze.concat(h({key:rt+"[0]",value:$e[0],valueSpec:{},style:Ee.style,styleSpec:Ee.styleSpec},$e));return kr(Pt($e[1]))?ze.concat([new It(rt+"[1]",$e[1],"expressions are not allowed in function stops.")]):ze.concat(tn({key:rt+"[1]",value:$e[1],valueSpec:We,style:Ee.style,styleSpec:Ee.styleSpec}))}function h(Ee,Ue){var rt=dr(Ee.value),it=Mt(Ee.value),at=null!==Ee.value?Ee.value:Ue;if(ze){if(rt!==ze)return[new It(Ee.key,at,rt+" stop domain type must match previous stop domain type "+ze)]}else ze=rt;if("number"!==rt&&"string"!==rt&&"boolean"!==rt)return[new It(Ee.key,at,"stop domain value must be a number, string, or boolean")];if("number"!==rt&&"categorical"!==$e){var ct="number expected, "+rt+" found";return hr(We)&&void 0===$e&&(ct+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new It(Ee.key,at,ct)]}return"categorical"!==$e||"number"!==rt||isFinite(it)&&Math.floor(it)===it?"categorical"!==$e&&"number"===rt&&void 0!==Be&&it=2&&"$id"!==Ee[1]&&"$type"!==Ee[1];case"in":case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return 3!==Ee.length||Array.isArray(Ee[1])||Array.isArray(Ee[2]);case"any":case"all":for(var ze=0,Be=Ee.slice(1);zeze?1:0}function Rr(Ee){if(!Ee)return!0;var ze,Be=Ee[0];return Ee.length<=1?"any"!==Be:"=="===Be?jr(Ee[1],Ee[2],"=="):"!="===Be?Kr(jr(Ee[1],Ee[2],"==")):"<"===Be||">"===Be||"<="===Be||">="===Be?jr(Ee[1],Ee[2],Be):"any"===Be?(ze=Ee.slice(1),["any"].concat(ze.map(Rr))):"all"===Be?["all"].concat(Ee.slice(1).map(Rr)):"none"===Be?["all"].concat(Ee.slice(1).map(Rr).map(Kr)):"in"===Be?qr(Ee[1],Ee.slice(2)):"!in"===Be?Kr(qr(Ee[1],Ee.slice(2))):"has"===Be?Nr(Ee[1]):"!has"!==Be||Kr(Nr(Ee[1]))}function jr(Ee,ze,Be){switch(Ee){case"$type":return["filter-type-"+Be,ze];case"$id":return["filter-id-"+Be,ze];default:return["filter-"+Be,Ee,ze]}}function qr(Ee,ze){if(0===ze.length)return!1;switch(Ee){case"$type":return["filter-type-in",["literal",ze]];case"$id":return["filter-id-in",["literal",ze]];default:return ze.length>200&&!ze.some((function(Ee){return typeof Ee!=typeof ze[0]}))?["filter-in-large",Ee,["literal",ze.sort(Ur)]]:["filter-in-small",Ee,["literal",ze]]}}function Nr(Ee){switch(Ee){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",Ee]}}function Kr(Ee){return["!",Ee]}function Zr(Ee){return Or(Pt(Ee.value))?Vr(Bt({},Ee,{expressionContext:"filter",valueSpec:{value:"boolean"}})):function t(Ee){var ze=Ee.value,Be=Ee.key;if("array"!==dr(ze))return[new It(Be,ze,"array expected, "+dr(ze)+" found")];var Ue,We=Ee.styleSpec,$e=[];if(ze.length<1)return[new It(Be,ze,"filter array must have at least 1 element")];switch($e=$e.concat(Fr({key:Be+"[0]",value:ze[0],valueSpec:We.filter_operator,style:Ee.style,styleSpec:Ee.styleSpec})),Mt(ze[0])){case"<":case"<=":case">":case">=":ze.length>=2&&"$type"===Mt(ze[1])&&$e.push(new It(Be,ze,'"$type" cannot be use with operator "'+ze[0]+'"'));case"==":case"!=":3!==ze.length&&$e.push(new It(Be,ze,'filter array for operator "'+ze[0]+'" must have 3 elements'));case"in":case"!in":ze.length>=2&&"string"!==(Ue=dr(ze[1]))&&$e.push(new It(Be+"[1]",ze[1],"string expected, "+Ue+" found"));for(var Qe=2;Qe=ct[kt+0]&&Ue>=ct[kt+1])?(Qe[xt]=!0,$e.push(at[xt])):Qe[xt]=!1}}},fn.prototype._forEachCell=function(Ee,ze,Be,Ue,We,$e,Qe,rt){for(var it=this._convertToCellCoord(Ee),at=this._convertToCellCoord(ze),ct=this._convertToCellCoord(Be),ft=this._convertToCellCoord(Ue),xt=it;xt<=ct;xt++)for(var kt=at;kt<=ft;kt++){var Lt=this.d*kt+xt;if((!rt||rt(this._convertFromCellCoord(xt),this._convertFromCellCoord(kt),this._convertFromCellCoord(xt+1),this._convertFromCellCoord(kt+1)))&&We.call(this,Ee,ze,Be,Ue,Lt,$e,Qe,rt))return}},fn.prototype._convertFromCellCoord=function(Ee){return(Ee-this.padding)/this.scale},fn.prototype._convertToCellCoord=function(Ee){return Math.max(0,Math.min(this.d-1,Math.floor(Ee*this.scale)+this.padding))},fn.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var Ee=this.cells,ze=3+this.cells.length+1+1,Be=0,Ue=0;Ue=0)){var ft=Ee[ct];at[ct]=rs[it].shallow.indexOf(ct)>=0?ft:gn(ft,ze)}Ee instanceof Error&&(at.message=Ee.message)}if(at.$name)throw new Error("$name property is reserved for worker serialization logic.");return"Object"!==it&&(at.$name=it),at}throw new Error("can't serialize object of type "+typeof Ee)}function xn(Ee){if(null==Ee||"boolean"==typeof Ee||"number"==typeof Ee||"string"==typeof Ee||Ee instanceof Boolean||Ee instanceof Number||Ee instanceof String||Ee instanceof Date||Ee instanceof RegExp||Ee instanceof ArrayBuffer||ArrayBuffer.isView(Ee)||Ee instanceof ts)return Ee;if(Array.isArray(Ee))return Ee.map(xn);if("object"==typeof Ee){var ze=Ee.$name||"Object",Be=rs[ze].klass;if(!Be)throw new Error("can't deserialize unregistered class "+ze);if(Be.deserialize)return Be.deserialize(Ee);for(var Ue=Object.create(Be.prototype),We=0,$e=Object.keys(Ee);We<$e.length;We+=1){var Qe=$e[We];if("$name"!==Qe){var rt=Ee[Qe];Ue[Qe]=rs[ze].shallow.indexOf(Qe)>=0?rt:xn(rt)}}return Ue}throw new Error("can't deserialize object of type "+typeof Ee)}var bn=function(){this.first=!0};bn.prototype.update=function(Ee,ze){var Be=Math.floor(Ee);return this.first?(this.first=!1,this.lastIntegerZoom=Be,this.lastIntegerZoomTime=0,this.lastZoom=Ee,this.lastFloorZoom=Be,!0):(this.lastFloorZoom>Be?(this.lastIntegerZoom=Be+1,this.lastIntegerZoomTime=ze):this.lastFloorZoom=128&&Ee<=255},Arabic:function(Ee){return Ee>=1536&&Ee<=1791},"Arabic Supplement":function(Ee){return Ee>=1872&&Ee<=1919},"Arabic Extended-A":function(Ee){return Ee>=2208&&Ee<=2303},"Hangul Jamo":function(Ee){return Ee>=4352&&Ee<=4607},"Unified Canadian Aboriginal Syllabics":function(Ee){return Ee>=5120&&Ee<=5759},Khmer:function(Ee){return Ee>=6016&&Ee<=6143},"Unified Canadian Aboriginal Syllabics Extended":function(Ee){return Ee>=6320&&Ee<=6399},"General Punctuation":function(Ee){return Ee>=8192&&Ee<=8303},"Letterlike Symbols":function(Ee){return Ee>=8448&&Ee<=8527},"Number Forms":function(Ee){return Ee>=8528&&Ee<=8591},"Miscellaneous Technical":function(Ee){return Ee>=8960&&Ee<=9215},"Control Pictures":function(Ee){return Ee>=9216&&Ee<=9279},"Optical Character Recognition":function(Ee){return Ee>=9280&&Ee<=9311},"Enclosed Alphanumerics":function(Ee){return Ee>=9312&&Ee<=9471},"Geometric Shapes":function(Ee){return Ee>=9632&&Ee<=9727},"Miscellaneous Symbols":function(Ee){return Ee>=9728&&Ee<=9983},"Miscellaneous Symbols and Arrows":function(Ee){return Ee>=11008&&Ee<=11263},"CJK Radicals Supplement":function(Ee){return Ee>=11904&&Ee<=12031},"Kangxi Radicals":function(Ee){return Ee>=12032&&Ee<=12255},"Ideographic Description Characters":function(Ee){return Ee>=12272&&Ee<=12287},"CJK Symbols and Punctuation":function(Ee){return Ee>=12288&&Ee<=12351},Hiragana:function(Ee){return Ee>=12352&&Ee<=12447},Katakana:function(Ee){return Ee>=12448&&Ee<=12543},Bopomofo:function(Ee){return Ee>=12544&&Ee<=12591},"Hangul Compatibility Jamo":function(Ee){return Ee>=12592&&Ee<=12687},Kanbun:function(Ee){return Ee>=12688&&Ee<=12703},"Bopomofo Extended":function(Ee){return Ee>=12704&&Ee<=12735},"CJK Strokes":function(Ee){return Ee>=12736&&Ee<=12783},"Katakana Phonetic Extensions":function(Ee){return Ee>=12784&&Ee<=12799},"Enclosed CJK Letters and Months":function(Ee){return Ee>=12800&&Ee<=13055},"CJK Compatibility":function(Ee){return Ee>=13056&&Ee<=13311},"CJK Unified Ideographs Extension A":function(Ee){return Ee>=13312&&Ee<=19903},"Yijing Hexagram Symbols":function(Ee){return Ee>=19904&&Ee<=19967},"CJK Unified Ideographs":function(Ee){return Ee>=19968&&Ee<=40959},"Yi Syllables":function(Ee){return Ee>=40960&&Ee<=42127},"Yi Radicals":function(Ee){return Ee>=42128&&Ee<=42191},"Hangul Jamo Extended-A":function(Ee){return Ee>=43360&&Ee<=43391},"Hangul Syllables":function(Ee){return Ee>=44032&&Ee<=55215},"Hangul Jamo Extended-B":function(Ee){return Ee>=55216&&Ee<=55295},"Private Use Area":function(Ee){return Ee>=57344&&Ee<=63743},"CJK Compatibility Ideographs":function(Ee){return Ee>=63744&&Ee<=64255},"Arabic Presentation Forms-A":function(Ee){return Ee>=64336&&Ee<=65023},"Vertical Forms":function(Ee){return Ee>=65040&&Ee<=65055},"CJK Compatibility Forms":function(Ee){return Ee>=65072&&Ee<=65103},"Small Form Variants":function(Ee){return Ee>=65104&&Ee<=65135},"Arabic Presentation Forms-B":function(Ee){return Ee>=65136&&Ee<=65279},"Halfwidth and Fullwidth Forms":function(Ee){return Ee>=65280&&Ee<=65519}};function wn(Ee){for(var ze=0,Be=Ee;ze=65097&&Ee<=65103)||as["CJK Compatibility Ideographs"](Ee)||as["CJK Compatibility"](Ee)||as["CJK Radicals Supplement"](Ee)||as["CJK Strokes"](Ee)||!(!as["CJK Symbols and Punctuation"](Ee)||Ee>=12296&&Ee<=12305||Ee>=12308&&Ee<=12319||12336===Ee)||as["CJK Unified Ideographs Extension A"](Ee)||as["CJK Unified Ideographs"](Ee)||as["Enclosed CJK Letters and Months"](Ee)||as["Hangul Compatibility Jamo"](Ee)||as["Hangul Jamo Extended-A"](Ee)||as["Hangul Jamo Extended-B"](Ee)||as["Hangul Jamo"](Ee)||as["Hangul Syllables"](Ee)||as.Hiragana(Ee)||as["Ideographic Description Characters"](Ee)||as.Kanbun(Ee)||as["Kangxi Radicals"](Ee)||as["Katakana Phonetic Extensions"](Ee)||as.Katakana(Ee)&&12540!==Ee||!(!as["Halfwidth and Fullwidth Forms"](Ee)||65288===Ee||65289===Ee||65293===Ee||Ee>=65306&&Ee<=65310||65339===Ee||65341===Ee||65343===Ee||Ee>=65371&&Ee<=65503||65507===Ee||Ee>=65512&&Ee<=65519)||!(!as["Small Form Variants"](Ee)||Ee>=65112&&Ee<=65118||Ee>=65123&&Ee<=65126)||as["Unified Canadian Aboriginal Syllabics"](Ee)||as["Unified Canadian Aboriginal Syllabics Extended"](Ee)||as["Vertical Forms"](Ee)||as["Yijing Hexagram Symbols"](Ee)||as["Yi Syllables"](Ee)||as["Yi Radicals"](Ee))))}function Sn(Ee){return!(kn(Ee)||function(Ee){return!!(as["Latin-1 Supplement"](Ee)&&(167===Ee||169===Ee||174===Ee||177===Ee||188===Ee||189===Ee||190===Ee||215===Ee||247===Ee)||as["General Punctuation"](Ee)&&(8214===Ee||8224===Ee||8225===Ee||8240===Ee||8241===Ee||8251===Ee||8252===Ee||8258===Ee||8263===Ee||8264===Ee||8265===Ee||8273===Ee)||as["Letterlike Symbols"](Ee)||as["Number Forms"](Ee)||as["Miscellaneous Technical"](Ee)&&(Ee>=8960&&Ee<=8967||Ee>=8972&&Ee<=8991||Ee>=8996&&Ee<=9e3||9003===Ee||Ee>=9085&&Ee<=9114||Ee>=9150&&Ee<=9165||9167===Ee||Ee>=9169&&Ee<=9179||Ee>=9186&&Ee<=9215)||as["Control Pictures"](Ee)&&9251!==Ee||as["Optical Character Recognition"](Ee)||as["Enclosed Alphanumerics"](Ee)||as["Geometric Shapes"](Ee)||as["Miscellaneous Symbols"](Ee)&&!(Ee>=9754&&Ee<=9759)||as["Miscellaneous Symbols and Arrows"](Ee)&&(Ee>=11026&&Ee<=11055||Ee>=11088&&Ee<=11097||Ee>=11192&&Ee<=11243)||as["CJK Symbols and Punctuation"](Ee)||as.Katakana(Ee)||as["Private Use Area"](Ee)||as["CJK Compatibility Forms"](Ee)||as["Small Form Variants"](Ee)||as["Halfwidth and Fullwidth Forms"](Ee)||8734===Ee||8756===Ee||8757===Ee||Ee>=9984&&Ee<=10087||Ee>=10102&&Ee<=10131||65532===Ee||65533===Ee)}(Ee))}function zn(Ee,ze){return!(!ze&&(Ee>=1424&&Ee<=2303||as["Arabic Presentation Forms-A"](Ee)||as["Arabic Presentation Forms-B"](Ee))||Ee>=2304&&Ee<=3583||Ee>=3840&&Ee<=4255||as.Khmer(Ee))}var os,ss=!1,ls=null,cs=!1,us=new St,fs={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:function(){return cs||null!=fs.applyArabicShaping}},Tn=function(Ee,ze){this.zoom=Ee,ze?(this.now=ze.now,this.fadeDuration=ze.fadeDuration,this.zoomHistory=ze.zoomHistory,this.transition=ze.transition):(this.now=0,this.fadeDuration=0,this.zoomHistory=new bn,this.transition={})};Tn.prototype.isSupportedScript=function(Ee){return function(Ee,ze){for(var Be=0,Ue=Ee;Bethis.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:ze+(1-ze)*Be}:{fromScale:.5,toScale:1,t:1-(1-Be)*ze}};var Vn=function(Ee,ze){this.property=Ee,this.value=ze,this.expression=function(Ee,ze){if(mr(Ee))return new Br(Ee,ze);if(kr(Ee)){var Be=Cr(Ee,ze);if("error"===Be.result)throw new Error(Be.value.map((function(Ee){return Ee.key+": "+Ee.message})).join(", "));return Be.value}var Ue=Ee;return"string"==typeof Ee&&"color"===ze.type&&(Ue=Ht.parse(Ee)),{kind:"constant",evaluate:function(){return Ue}}}(void 0===ze?Ee.specification.default:ze,Ee.specification)};Vn.prototype.isDataDriven=function(){return"source"===this.expression.kind||"composite"===this.expression.kind},Vn.prototype.possiblyEvaluate=function(Ee){return this.property.possiblyEvaluate(this,Ee)};var Fn=function(Ee){this.property=Ee,this.value=new Vn(Ee,void 0)};Fn.prototype.transitioned=function(Ee,ze){return new Ln(this.property,this.value,ze,c({},Ee.transition,this.transition),Ee.now)},Fn.prototype.untransitioned=function(){return new Ln(this.property,this.value,null,{},0)};var On=function(Ee){this._properties=Ee,this._values=Object.create(Ee.defaultTransitionablePropertyValues)};On.prototype.getValue=function(Ee){return b(this._values[Ee].value.value)},On.prototype.setValue=function(Ee,ze){this._values.hasOwnProperty(Ee)||(this._values[Ee]=new Fn(this._values[Ee].property)),this._values[Ee].value=new Vn(this._values[Ee].property,null===ze?void 0:b(ze))},On.prototype.getTransition=function(Ee){return b(this._values[Ee].transition)},On.prototype.setTransition=function(Ee,ze){this._values.hasOwnProperty(Ee)||(this._values[Ee]=new Fn(this._values[Ee].property)),this._values[Ee].transition=b(ze)||void 0},On.prototype.serialize=function(){for(var Ee={},ze=0,Be=Object.keys(this._values);zethis.end)return this.prior=null,Be;if(this.value.isDataDriven())return this.prior=null,Be;if(ze=1)return 1;var ze=Ee*Ee,Be=ze*Ee;return 4*(Ee<.5?Be:3*(Ee-ze)+Be-.75)}(We))}return Be};var Dn=function(Ee){this._properties=Ee,this._values=Object.create(Ee.defaultTransitioningPropertyValues)};Dn.prototype.possiblyEvaluate=function(Ee){for(var ze=new jn(this._properties),Be=0,Ue=Object.keys(this._values);BeUe.zoomHistory.lastIntegerZoom?{from:Ee,to:ze}:{from:Be,to:ze}},e.prototype.interpolate=function(Ee){return Ee},e}(Nn),Zn=function(Ee){this.specification=Ee};Zn.prototype.possiblyEvaluate=function(Ee,ze){if(void 0!==Ee.value){if("constant"===Ee.expression.kind){var Be=Ee.expression.evaluate(ze);return this._calculate(Be,Be,Be,ze)}return this._calculate(Ee.expression.evaluate(new Tn(Math.floor(ze.zoom-1),ze)),Ee.expression.evaluate(new Tn(Math.floor(ze.zoom),ze)),Ee.expression.evaluate(new Tn(Math.floor(ze.zoom+1),ze)),ze)}},Zn.prototype._calculate=function(Ee,ze,Be,Ue){return Ue.zoom>Ue.zoomHistory.lastIntegerZoom?{from:Ee,to:ze}:{from:Be,to:ze}},Zn.prototype.interpolate=function(Ee){return Ee};var Xn=function(Ee){this.specification=Ee};Xn.prototype.possiblyEvaluate=function(Ee,ze){return!!Ee.expression.evaluate(ze)},Xn.prototype.interpolate=function(){return!1};var Gn=function(Ee){for(var ze in this.properties=Ee,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[],Ee){var Be=Ee[ze];Be.specification.overridable&&this.overridableProperties.push(ze);var Ue=this.defaultPropertyValues[ze]=new Vn(Be,void 0),We=this.defaultTransitionablePropertyValues[ze]=new Fn(Be);this.defaultTransitioningPropertyValues[ze]=We.untransitioned(),this.defaultPossiblyEvaluatedValues[ze]=Ue.possiblyEvaluate({})}};mn("DataDrivenProperty",Nn),mn("DataConstantProperty",qn),mn("CrossFadedDataDrivenProperty",hs),mn("CrossFadedProperty",Zn),mn("ColorRampProperty",Xn);var ms=function(Ee){function e(ze,Be){if(Ee.call(this),this.id=ze.id,this.type=ze.type,this._featureFilter=function(){return!0},"custom"!==ze.type&&(ze=ze,this.metadata=ze.metadata,this.minzoom=ze.minzoom,this.maxzoom=ze.maxzoom,"background"!==ze.type&&(this.source=ze.source,this.sourceLayer=ze["source-layer"],this.filter=ze.filter),Be.layout&&(this._unevaluatedLayout=new Un(Be.layout)),Be.paint)){for(var Ue in this._transitionablePaint=new On(Be.paint),ze.paint)this.setPaintProperty(Ue,ze.paint[Ue],{validate:!1});for(var We in ze.layout)this.setLayoutProperty(We,ze.layout[We],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned()}}return Ee&&(e.__proto__=Ee),e.prototype=Object.create(Ee&&Ee.prototype),e.prototype.constructor=e,e.prototype.getCrossfadeParameters=function(){return this._crossfadeParameters},e.prototype.getLayoutProperty=function(Ee){return"visibility"===Ee?this.visibility:this._unevaluatedLayout.getValue(Ee)},e.prototype.setLayoutProperty=function(Ee,ze,Be){if(void 0===Be&&(Be={}),null!=ze){var Ue="layers."+this.id+".layout."+Ee;if(this._validate($o,Ue,Ee,ze,Be))return}"visibility"!==Ee?this._unevaluatedLayout.setValue(Ee,ze):this.visibility=ze},e.prototype.getPaintProperty=function(Ee){return v(Ee,"-transition")?this._transitionablePaint.getTransition(Ee.slice(0,-"-transition".length)):this._transitionablePaint.getValue(Ee)},e.prototype.setPaintProperty=function(Ee,ze,Be){if(void 0===Be&&(Be={}),null!=ze){var Ue="layers."+this.id+".paint."+Ee;if(this._validate(Xo,Ue,Ee,ze,Be))return!1}if(v(Ee,"-transition"))return this._transitionablePaint.setTransition(Ee.slice(0,-"-transition".length),ze||void 0),!1;var We=this._transitionablePaint._values[Ee],$e="cross-faded-data-driven"===We.property.specification["property-type"],Qe=We.value.isDataDriven(),rt=We.value;this._transitionablePaint.setValue(Ee,ze),this._handleSpecialPaintPropertyUpdate(Ee);var it=this._transitionablePaint._values[Ee].value;return it.isDataDriven()||Qe||$e||this._handleOverridablePaintPropertyUpdate(Ee,rt,it)},e.prototype._handleSpecialPaintPropertyUpdate=function(Ee){},e.prototype._handleOverridablePaintPropertyUpdate=function(Ee,ze,Be){return!1},e.prototype.isHidden=function(Ee){return!!(this.minzoom&&Ee=this.maxzoom)||"none"===this.visibility},e.prototype.updateTransitions=function(Ee){this._transitioningPaint=this._transitionablePaint.transitioned(Ee,this._transitioningPaint)},e.prototype.hasTransition=function(){return this._transitioningPaint.hasTransition()},e.prototype.recalculate=function(Ee){Ee.getCrossfadeParameters&&(this._crossfadeParameters=Ee.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(Ee)),this.paint=this._transitioningPaint.possiblyEvaluate(Ee)},e.prototype.serialize=function(){var Ee={id:this.id,type:this.type,source:this.source,"source-layer":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&&this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&&this._transitionablePaint.serialize()};return this.visibility&&(Ee.layout=Ee.layout||{},Ee.layout.visibility=this.visibility),x(Ee,(function(Ee,ze){return!(void 0===Ee||"layout"===ze&&!Object.keys(Ee).length||"paint"===ze&&!Object.keys(Ee).length)}))},e.prototype._validate=function(Ee,ze,Be,Ue,We){return void 0===We&&(We={}),(!We||!1!==We.validate)&&pn(this,Ee.call(Ho,{key:ze,layerType:this.type,objectKey:Be,value:Ue,styleSpec:Hn,style:{glyphs:!0,sprite:!0}}))},e.prototype.is3D=function(){return!1},e.prototype.isTileClipped=function(){return!1},e.prototype.hasOffscreenPass=function(){return!1},e.prototype.resize=function(){},e.prototype.isStateDependent=function(){for(var Ee in this.paint._values){var ze=this.paint.get(Ee);if(ze instanceof Rn&&hr(ze.property.specification)&&("source"===ze.value.kind||"composite"===ze.value.kind)&&ze.value.isStateDependent)return!0}return!1},e}(St),vs={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array},Yn=function(Ee,ze){this._structArray=Ee,this._pos1=ze*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8},$n=function(){this.isTransferred=!1,this.capacity=-1,this.resize(0)};function Wn(Ee,ze){void 0===ze&&(ze=1);var Be=0,Ue=0;return{members:Ee.map((function(Ee){var We,$e=(We=Ee.type,vs[We].BYTES_PER_ELEMENT),Qe=Be=Qn(Be,Math.max(ze,$e)),rt=Ee.components||1;return Ue=Math.max(Ue,$e),Be+=$e*rt,{name:Ee.name,type:Ee.type,components:rt,offset:Qe}})),size:Qn(Be,Math.max(Ue,ze)),alignment:ze}}function Qn(Ee,ze){return Math.ceil(Ee/ze)*ze}$n.serialize=function(Ee,ze){return Ee._trim(),ze&&(Ee.isTransferred=!0,ze.push(Ee.arrayBuffer)),{length:Ee.length,arrayBuffer:Ee.arrayBuffer}},$n.deserialize=function(Ee){var ze=Object.create(this.prototype);return ze.arrayBuffer=Ee.arrayBuffer,ze.length=Ee.length,ze.capacity=Ee.arrayBuffer.byteLength/ze.bytesPerElement,ze._refreshViews(),ze},$n.prototype._trim=function(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())},$n.prototype.clear=function(){this.length=0},$n.prototype.resize=function(Ee){this.reserve(Ee),this.length=Ee},$n.prototype.reserve=function(Ee){if(Ee>this.capacity){this.capacity=Math.max(Ee,Math.floor(5*this.capacity),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);var ze=this.uint8;this._refreshViews(),ze&&this.uint8.set(ze)}},$n.prototype._refreshViews=function(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")};var ks=function(Ee){function e(){Ee.apply(this,arguments)}return Ee&&(e.__proto__=Ee),e.prototype=Object.create(Ee&&Ee.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(Ee,ze){var Be=this.length;return this.resize(Be+1),this.emplace(Be,Ee,ze)},e.prototype.emplace=function(Ee,ze,Be){var Ue=2*Ee;return this.int16[Ue+0]=ze,this.int16[Ue+1]=Be,Ee},e}($n);ks.prototype.bytesPerElement=4,mn("StructArrayLayout2i4",ks);var Ms=function(Ee){function e(){Ee.apply(this,arguments)}return Ee&&(e.__proto__=Ee),e.prototype=Object.create(Ee&&Ee.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(Ee,ze,Be,Ue){var We=this.length;return this.resize(We+1),this.emplace(We,Ee,ze,Be,Ue)},e.prototype.emplace=function(Ee,ze,Be,Ue,We){var $e=4*Ee;return this.int16[$e+0]=ze,this.int16[$e+1]=Be,this.int16[$e+2]=Ue,this.int16[$e+3]=We,Ee},e}($n);Ms.prototype.bytesPerElement=8,mn("StructArrayLayout4i8",Ms);var Ss=function(Ee){function e(){Ee.apply(this,arguments)}return Ee&&(e.__proto__=Ee),e.prototype=Object.create(Ee&&Ee.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(Ee,ze,Be,Ue,We,$e){var Qe=this.length;return this.resize(Qe+1),this.emplace(Qe,Ee,ze,Be,Ue,We,$e)},e.prototype.emplace=function(Ee,ze,Be,Ue,We,$e,Qe){var rt=6*Ee;return this.int16[rt+0]=ze,this.int16[rt+1]=Be,this.int16[rt+2]=Ue,this.int16[rt+3]=We,this.int16[rt+4]=$e,this.int16[rt+5]=Qe,Ee},e}($n);Ss.prototype.bytesPerElement=12,mn("StructArrayLayout2i4i12",Ss);var Es=function(Ee){function e(){Ee.apply(this,arguments)}return Ee&&(e.__proto__=Ee),e.prototype=Object.create(Ee&&Ee.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(Ee,ze,Be,Ue,We,$e){var Qe=this.length;return this.resize(Qe+1),this.emplace(Qe,Ee,ze,Be,Ue,We,$e)},e.prototype.emplace=function(Ee,ze,Be,Ue,We,$e,Qe){var rt=4*Ee,it=8*Ee;return this.int16[rt+0]=ze,this.int16[rt+1]=Be,this.uint8[it+4]=Ue,this.uint8[it+5]=We,this.uint8[it+6]=$e,this.uint8[it+7]=Qe,Ee},e}($n);Es.prototype.bytesPerElement=8,mn("StructArrayLayout2i4ub8",Es);var Ls=function(Ee){function e(){Ee.apply(this,arguments)}return Ee&&(e.__proto__=Ee),e.prototype=Object.create(Ee&&Ee.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(Ee,ze,Be,Ue,We,$e,Qe,rt){var it=this.length;return this.resize(it+1),this.emplace(it,Ee,ze,Be,Ue,We,$e,Qe,rt)},e.prototype.emplace=function(Ee,ze,Be,Ue,We,$e,Qe,rt,it){var at=8*Ee;return this.uint16[at+0]=ze,this.uint16[at+1]=Be,this.uint16[at+2]=Ue,this.uint16[at+3]=We,this.uint16[at+4]=$e,this.uint16[at+5]=Qe,this.uint16[at+6]=rt,this.uint16[at+7]=it,Ee},e}($n);Ls.prototype.bytesPerElement=16,mn("StructArrayLayout8ui16",Ls);var Ds=function(Ee){function e(){Ee.apply(this,arguments)}return Ee&&(e.__proto__=Ee),e.prototype=Object.create(Ee&&Ee.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(Ee,ze,Be,Ue,We,$e,Qe,rt){var it=this.length;return this.resize(it+1),this.emplace(it,Ee,ze,Be,Ue,We,$e,Qe,rt)},e.prototype.emplace=function(Ee,ze,Be,Ue,We,$e,Qe,rt,it){var at=8*Ee;return this.int16[at+0]=ze,this.int16[at+1]=Be,this.int16[at+2]=Ue,this.int16[at+3]=We,this.uint16[at+4]=$e,this.uint16[at+5]=Qe,this.uint16[at+6]=rt,this.uint16[at+7]=it,Ee},e}($n);Ds.prototype.bytesPerElement=16,mn("StructArrayLayout4i4ui16",Ds);var Rs=function(Ee){function e(){Ee.apply(this,arguments)}return Ee&&(e.__proto__=Ee),e.prototype=Object.create(Ee&&Ee.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(Ee,ze,Be){var Ue=this.length;return this.resize(Ue+1),this.emplace(Ue,Ee,ze,Be)},e.prototype.emplace=function(Ee,ze,Be,Ue){var We=3*Ee;return this.float32[We+0]=ze,this.float32[We+1]=Be,this.float32[We+2]=Ue,Ee},e}($n);Rs.prototype.bytesPerElement=12,mn("StructArrayLayout3f12",Rs);var Bs=function(Ee){function e(){Ee.apply(this,arguments)}return Ee&&(e.__proto__=Ee),e.prototype=Object.create(Ee&&Ee.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(Ee){var ze=this.length;return this.resize(ze+1),this.emplace(ze,Ee)},e.prototype.emplace=function(Ee,ze){var Be=1*Ee;return this.uint32[Be+0]=ze,Ee},e}($n);Bs.prototype.bytesPerElement=4,mn("StructArrayLayout1ul4",Bs);var Ns=function(Ee){function e(){Ee.apply(this,arguments)}return Ee&&(e.__proto__=Ee),e.prototype=Object.create(Ee&&Ee.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(Ee,ze,Be,Ue,We,$e,Qe,rt,it,at,ct){var ft=this.length;return this.resize(ft+1),this.emplace(ft,Ee,ze,Be,Ue,We,$e,Qe,rt,it,at,ct)},e.prototype.emplace=function(Ee,ze,Be,Ue,We,$e,Qe,rt,it,at,ct,ft){var xt=12*Ee,kt=6*Ee;return this.int16[xt+0]=ze,this.int16[xt+1]=Be,this.int16[xt+2]=Ue,this.int16[xt+3]=We,this.int16[xt+4]=$e,this.int16[xt+5]=Qe,this.uint32[kt+3]=rt,this.uint16[xt+8]=it,this.uint16[xt+9]=at,this.int16[xt+10]=ct,this.int16[xt+11]=ft,Ee},e}($n);Ns.prototype.bytesPerElement=24,mn("StructArrayLayout6i1ul2ui2i24",Ns);var js=function(Ee){function e(){Ee.apply(this,arguments)}return Ee&&(e.__proto__=Ee),e.prototype=Object.create(Ee&&Ee.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(Ee,ze,Be,Ue,We,$e){var Qe=this.length;return this.resize(Qe+1),this.emplace(Qe,Ee,ze,Be,Ue,We,$e)},e.prototype.emplace=function(Ee,ze,Be,Ue,We,$e,Qe){var rt=6*Ee;return this.int16[rt+0]=ze,this.int16[rt+1]=Be,this.int16[rt+2]=Ue,this.int16[rt+3]=We,this.int16[rt+4]=$e,this.int16[rt+5]=Qe,Ee},e}($n);js.prototype.bytesPerElement=12,mn("StructArrayLayout2i2i2i12",js);var Hs=function(Ee){function e(){Ee.apply(this,arguments)}return Ee&&(e.__proto__=Ee),e.prototype=Object.create(Ee&&Ee.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(Ee,ze,Be,Ue){var We=this.length;return this.resize(We+1),this.emplace(We,Ee,ze,Be,Ue)},e.prototype.emplace=function(Ee,ze,Be,Ue,We){var $e=12*Ee,Qe=3*Ee;return this.uint8[$e+0]=ze,this.uint8[$e+1]=Be,this.float32[Qe+1]=Ue,this.float32[Qe+2]=We,Ee},e}($n);Hs.prototype.bytesPerElement=12,mn("StructArrayLayout2ub2f12",Hs);var qs=function(Ee){function e(){Ee.apply(this,arguments)}return Ee&&(e.__proto__=Ee),e.prototype=Object.create(Ee&&Ee.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(Ee,ze,Be,Ue,We,$e,Qe,rt,it,at,ct,ft,xt,kt,Lt,Ut){var er=this.length;return this.resize(er+1),this.emplace(er,Ee,ze,Be,Ue,We,$e,Qe,rt,it,at,ct,ft,xt,kt,Lt,Ut)},e.prototype.emplace=function(Ee,ze,Be,Ue,We,$e,Qe,rt,it,at,ct,ft,xt,kt,Lt,Ut,er){var tr=22*Ee,rr=11*Ee,ar=44*Ee;return this.int16[tr+0]=ze,this.int16[tr+1]=Be,this.uint16[tr+2]=Ue,this.uint16[tr+3]=We,this.uint32[rr+2]=$e,this.uint32[rr+3]=Qe,this.uint32[rr+4]=rt,this.uint16[tr+10]=it,this.uint16[tr+11]=at,this.uint16[tr+12]=ct,this.float32[rr+7]=ft,this.float32[rr+8]=xt,this.uint8[ar+36]=kt,this.uint8[ar+37]=Lt,this.uint8[ar+38]=Ut,this.uint32[rr+10]=er,Ee},e}($n);qs.prototype.bytesPerElement=44,mn("StructArrayLayout2i2ui3ul3ui2f3ub1ul44",qs);var Ws=function(Ee){function e(){Ee.apply(this,arguments)}return Ee&&(e.__proto__=Ee),e.prototype=Object.create(Ee&&Ee.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(Ee,ze,Be,Ue,We,$e,Qe,rt,it,at,ct,ft,xt,kt,Lt,Ut,er,tr,rr,ar){var Lr=this.length;return this.resize(Lr+1),this.emplace(Lr,Ee,ze,Be,Ue,We,$e,Qe,rt,it,at,ct,ft,xt,kt,Lt,Ut,er,tr,rr,ar)},e.prototype.emplace=function(Ee,ze,Be,Ue,We,$e,Qe,rt,it,at,ct,ft,xt,kt,Lt,Ut,er,tr,rr,ar,Lr){var Qr=24*Ee,on=12*Ee;return this.int16[Qr+0]=ze,this.int16[Qr+1]=Be,this.int16[Qr+2]=Ue,this.int16[Qr+3]=We,this.int16[Qr+4]=$e,this.int16[Qr+5]=Qe,this.uint16[Qr+6]=rt,this.uint16[Qr+7]=it,this.uint16[Qr+8]=at,this.uint16[Qr+9]=ct,this.uint16[Qr+10]=ft,this.uint16[Qr+11]=xt,this.uint16[Qr+12]=kt,this.uint16[Qr+13]=Lt,this.uint16[Qr+14]=Ut,this.uint16[Qr+15]=er,this.uint16[Qr+16]=tr,this.uint32[on+9]=rr,this.float32[on+10]=ar,this.float32[on+11]=Lr,Ee},e}($n);Ws.prototype.bytesPerElement=48,mn("StructArrayLayout6i11ui1ul2f48",Ws);var Zs=function(Ee){function e(){Ee.apply(this,arguments)}return Ee&&(e.__proto__=Ee),e.prototype=Object.create(Ee&&Ee.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(Ee){var ze=this.length;return this.resize(ze+1),this.emplace(ze,Ee)},e.prototype.emplace=function(Ee,ze){var Be=1*Ee;return this.float32[Be+0]=ze,Ee},e}($n);Zs.prototype.bytesPerElement=4,mn("StructArrayLayout1f4",Zs);var Xs=function(Ee){function e(){Ee.apply(this,arguments)}return Ee&&(e.__proto__=Ee),e.prototype=Object.create(Ee&&Ee.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(Ee,ze,Be){var Ue=this.length;return this.resize(Ue+1),this.emplace(Ue,Ee,ze,Be)},e.prototype.emplace=function(Ee,ze,Be,Ue){var We=3*Ee;return this.int16[We+0]=ze,this.int16[We+1]=Be,this.int16[We+2]=Ue,Ee},e}($n);Xs.prototype.bytesPerElement=6,mn("StructArrayLayout3i6",Xs);var $s=function(Ee){function e(){Ee.apply(this,arguments)}return Ee&&(e.__proto__=Ee),e.prototype=Object.create(Ee&&Ee.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(Ee,ze,Be){var Ue=this.length;return this.resize(Ue+1),this.emplace(Ue,Ee,ze,Be)},e.prototype.emplace=function(Ee,ze,Be,Ue){var We=2*Ee,$e=4*Ee;return this.uint32[We+0]=ze,this.uint16[$e+2]=Be,this.uint16[$e+3]=Ue,Ee},e}($n);$s.prototype.bytesPerElement=8,mn("StructArrayLayout1ul2ui8",$s);var Ks=function(Ee){function e(){Ee.apply(this,arguments)}return Ee&&(e.__proto__=Ee),e.prototype=Object.create(Ee&&Ee.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(Ee,ze,Be){var Ue=this.length;return this.resize(Ue+1),this.emplace(Ue,Ee,ze,Be)},e.prototype.emplace=function(Ee,ze,Be,Ue){var We=3*Ee;return this.uint16[We+0]=ze,this.uint16[We+1]=Be,this.uint16[We+2]=Ue,Ee},e}($n);Ks.prototype.bytesPerElement=6,mn("StructArrayLayout3ui6",Ks);var Qs=function(Ee){function e(){Ee.apply(this,arguments)}return Ee&&(e.__proto__=Ee),e.prototype=Object.create(Ee&&Ee.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(Ee,ze){var Be=this.length;return this.resize(Be+1),this.emplace(Be,Ee,ze)},e.prototype.emplace=function(Ee,ze,Be){var Ue=2*Ee;return this.uint16[Ue+0]=ze,this.uint16[Ue+1]=Be,Ee},e}($n);Qs.prototype.bytesPerElement=4,mn("StructArrayLayout2ui4",Qs);var cl=function(Ee){function e(){Ee.apply(this,arguments)}return Ee&&(e.__proto__=Ee),e.prototype=Object.create(Ee&&Ee.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(Ee){var ze=this.length;return this.resize(ze+1),this.emplace(ze,Ee)},e.prototype.emplace=function(Ee,ze){var Be=1*Ee;return this.uint16[Be+0]=ze,Ee},e}($n);cl.prototype.bytesPerElement=2,mn("StructArrayLayout1ui2",cl);var fl=function(Ee){function e(){Ee.apply(this,arguments)}return Ee&&(e.__proto__=Ee),e.prototype=Object.create(Ee&&Ee.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(Ee,ze){var Be=this.length;return this.resize(Be+1),this.emplace(Be,Ee,ze)},e.prototype.emplace=function(Ee,ze,Be){var Ue=2*Ee;return this.float32[Ue+0]=ze,this.float32[Ue+1]=Be,Ee},e}($n);fl.prototype.bytesPerElement=8,mn("StructArrayLayout2f8",fl);var hl=function(Ee){function e(){Ee.apply(this,arguments)}return Ee&&(e.__proto__=Ee),e.prototype=Object.create(Ee&&Ee.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(Ee,ze,Be,Ue){var We=this.length;return this.resize(We+1),this.emplace(We,Ee,ze,Be,Ue)},e.prototype.emplace=function(Ee,ze,Be,Ue,We){var $e=4*Ee;return this.float32[$e+0]=ze,this.float32[$e+1]=Be,this.float32[$e+2]=Ue,this.float32[$e+3]=We,Ee},e}($n);hl.prototype.bytesPerElement=16,mn("StructArrayLayout4f16",hl);var pl=function(Ee){function e(){Ee.apply(this,arguments)}Ee&&(e.__proto__=Ee),e.prototype=Object.create(Ee&&Ee.prototype),e.prototype.constructor=e;var ze={anchorPointX:{configurable:!0},anchorPointY:{configurable:!0},x1:{configurable:!0},y1:{configurable:!0},x2:{configurable:!0},y2:{configurable:!0},featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0},radius:{configurable:!0},signedDistanceFromAnchor:{configurable:!0},anchorPoint:{configurable:!0}};return ze.anchorPointX.get=function(){return this._structArray.int16[this._pos2+0]},ze.anchorPointX.set=function(Ee){this._structArray.int16[this._pos2+0]=Ee},ze.anchorPointY.get=function(){return this._structArray.int16[this._pos2+1]},ze.anchorPointY.set=function(Ee){this._structArray.int16[this._pos2+1]=Ee},ze.x1.get=function(){return this._structArray.int16[this._pos2+2]},ze.x1.set=function(Ee){this._structArray.int16[this._pos2+2]=Ee},ze.y1.get=function(){return this._structArray.int16[this._pos2+3]},ze.y1.set=function(Ee){this._structArray.int16[this._pos2+3]=Ee},ze.x2.get=function(){return this._structArray.int16[this._pos2+4]},ze.x2.set=function(Ee){this._structArray.int16[this._pos2+4]=Ee},ze.y2.get=function(){return this._structArray.int16[this._pos2+5]},ze.y2.set=function(Ee){this._structArray.int16[this._pos2+5]=Ee},ze.featureIndex.get=function(){return this._structArray.uint32[this._pos4+3]},ze.featureIndex.set=function(Ee){this._structArray.uint32[this._pos4+3]=Ee},ze.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+8]},ze.sourceLayerIndex.set=function(Ee){this._structArray.uint16[this._pos2+8]=Ee},ze.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+9]},ze.bucketIndex.set=function(Ee){this._structArray.uint16[this._pos2+9]=Ee},ze.radius.get=function(){return this._structArray.int16[this._pos2+10]},ze.radius.set=function(Ee){this._structArray.int16[this._pos2+10]=Ee},ze.signedDistanceFromAnchor.get=function(){return this._structArray.int16[this._pos2+11]},ze.signedDistanceFromAnchor.set=function(Ee){this._structArray.int16[this._pos2+11]=Ee},ze.anchorPoint.get=function(){return new Be(this.anchorPointX,this.anchorPointY)},Object.defineProperties(e.prototype,ze),e}(Yn);pl.prototype.size=24;var dl=function(Ee){function e(){Ee.apply(this,arguments)}return Ee&&(e.__proto__=Ee),e.prototype=Object.create(Ee&&Ee.prototype),e.prototype.constructor=e,e.prototype.get=function(Ee){return new pl(this,Ee)},e}(Ns);mn("CollisionBoxArray",dl);var gl=function(Ee){function e(){Ee.apply(this,arguments)}Ee&&(e.__proto__=Ee),e.prototype=Object.create(Ee&&Ee.prototype),e.prototype.constructor=e;var ze={anchorX:{configurable:!0},anchorY:{configurable:!0},glyphStartIndex:{configurable:!0},numGlyphs:{configurable:!0},vertexStartIndex:{configurable:!0},lineStartIndex:{configurable:!0},lineLength:{configurable:!0},segment:{configurable:!0},lowerSize:{configurable:!0},upperSize:{configurable:!0},lineOffsetX:{configurable:!0},lineOffsetY:{configurable:!0},writingMode:{configurable:!0},placedOrientation:{configurable:!0},hidden:{configurable:!0},crossTileID:{configurable:!0}};return ze.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},ze.anchorX.set=function(Ee){this._structArray.int16[this._pos2+0]=Ee},ze.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},ze.anchorY.set=function(Ee){this._structArray.int16[this._pos2+1]=Ee},ze.glyphStartIndex.get=function(){return this._structArray.uint16[this._pos2+2]},ze.glyphStartIndex.set=function(Ee){this._structArray.uint16[this._pos2+2]=Ee},ze.numGlyphs.get=function(){return this._structArray.uint16[this._pos2+3]},ze.numGlyphs.set=function(Ee){this._structArray.uint16[this._pos2+3]=Ee},ze.vertexStartIndex.get=function(){return this._structArray.uint32[this._pos4+2]},ze.vertexStartIndex.set=function(Ee){this._structArray.uint32[this._pos4+2]=Ee},ze.lineStartIndex.get=function(){return this._structArray.uint32[this._pos4+3]},ze.lineStartIndex.set=function(Ee){this._structArray.uint32[this._pos4+3]=Ee},ze.lineLength.get=function(){return this._structArray.uint32[this._pos4+4]},ze.lineLength.set=function(Ee){this._structArray.uint32[this._pos4+4]=Ee},ze.segment.get=function(){return this._structArray.uint16[this._pos2+10]},ze.segment.set=function(Ee){this._structArray.uint16[this._pos2+10]=Ee},ze.lowerSize.get=function(){return this._structArray.uint16[this._pos2+11]},ze.lowerSize.set=function(Ee){this._structArray.uint16[this._pos2+11]=Ee},ze.upperSize.get=function(){return this._structArray.uint16[this._pos2+12]},ze.upperSize.set=function(Ee){this._structArray.uint16[this._pos2+12]=Ee},ze.lineOffsetX.get=function(){return this._structArray.float32[this._pos4+7]},ze.lineOffsetX.set=function(Ee){this._structArray.float32[this._pos4+7]=Ee},ze.lineOffsetY.get=function(){return this._structArray.float32[this._pos4+8]},ze.lineOffsetY.set=function(Ee){this._structArray.float32[this._pos4+8]=Ee},ze.writingMode.get=function(){return this._structArray.uint8[this._pos1+36]},ze.writingMode.set=function(Ee){this._structArray.uint8[this._pos1+36]=Ee},ze.placedOrientation.get=function(){return this._structArray.uint8[this._pos1+37]},ze.placedOrientation.set=function(Ee){this._structArray.uint8[this._pos1+37]=Ee},ze.hidden.get=function(){return this._structArray.uint8[this._pos1+38]},ze.hidden.set=function(Ee){this._structArray.uint8[this._pos1+38]=Ee},ze.crossTileID.get=function(){return this._structArray.uint32[this._pos4+10]},ze.crossTileID.set=function(Ee){this._structArray.uint32[this._pos4+10]=Ee},Object.defineProperties(e.prototype,ze),e}(Yn);gl.prototype.size=44;var yl=function(Ee){function e(){Ee.apply(this,arguments)}return Ee&&(e.__proto__=Ee),e.prototype=Object.create(Ee&&Ee.prototype),e.prototype.constructor=e,e.prototype.get=function(Ee){return new gl(this,Ee)},e}(qs);mn("PlacedSymbolArray",yl);var wl=function(Ee){function e(){Ee.apply(this,arguments)}Ee&&(e.__proto__=Ee),e.prototype=Object.create(Ee&&Ee.prototype),e.prototype.constructor=e;var ze={anchorX:{configurable:!0},anchorY:{configurable:!0},rightJustifiedTextSymbolIndex:{configurable:!0},centerJustifiedTextSymbolIndex:{configurable:!0},leftJustifiedTextSymbolIndex:{configurable:!0},verticalPlacedTextSymbolIndex:{configurable:!0},key:{configurable:!0},textBoxStartIndex:{configurable:!0},textBoxEndIndex:{configurable:!0},verticalTextBoxStartIndex:{configurable:!0},verticalTextBoxEndIndex:{configurable:!0},iconBoxStartIndex:{configurable:!0},iconBoxEndIndex:{configurable:!0},featureIndex:{configurable:!0},numHorizontalGlyphVertices:{configurable:!0},numVerticalGlyphVertices:{configurable:!0},numIconVertices:{configurable:!0},crossTileID:{configurable:!0},textBoxScale:{configurable:!0},radialTextOffset:{configurable:!0}};return ze.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},ze.anchorX.set=function(Ee){this._structArray.int16[this._pos2+0]=Ee},ze.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},ze.anchorY.set=function(Ee){this._structArray.int16[this._pos2+1]=Ee},ze.rightJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+2]},ze.rightJustifiedTextSymbolIndex.set=function(Ee){this._structArray.int16[this._pos2+2]=Ee},ze.centerJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+3]},ze.centerJustifiedTextSymbolIndex.set=function(Ee){this._structArray.int16[this._pos2+3]=Ee},ze.leftJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+4]},ze.leftJustifiedTextSymbolIndex.set=function(Ee){this._structArray.int16[this._pos2+4]=Ee},ze.verticalPlacedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+5]},ze.verticalPlacedTextSymbolIndex.set=function(Ee){this._structArray.int16[this._pos2+5]=Ee},ze.key.get=function(){return this._structArray.uint16[this._pos2+6]},ze.key.set=function(Ee){this._structArray.uint16[this._pos2+6]=Ee},ze.textBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+7]},ze.textBoxStartIndex.set=function(Ee){this._structArray.uint16[this._pos2+7]=Ee},ze.textBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+8]},ze.textBoxEndIndex.set=function(Ee){this._structArray.uint16[this._pos2+8]=Ee},ze.verticalTextBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+9]},ze.verticalTextBoxStartIndex.set=function(Ee){this._structArray.uint16[this._pos2+9]=Ee},ze.verticalTextBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+10]},ze.verticalTextBoxEndIndex.set=function(Ee){this._structArray.uint16[this._pos2+10]=Ee},ze.iconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+11]},ze.iconBoxStartIndex.set=function(Ee){this._structArray.uint16[this._pos2+11]=Ee},ze.iconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+12]},ze.iconBoxEndIndex.set=function(Ee){this._structArray.uint16[this._pos2+12]=Ee},ze.featureIndex.get=function(){return this._structArray.uint16[this._pos2+13]},ze.featureIndex.set=function(Ee){this._structArray.uint16[this._pos2+13]=Ee},ze.numHorizontalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+14]},ze.numHorizontalGlyphVertices.set=function(Ee){this._structArray.uint16[this._pos2+14]=Ee},ze.numVerticalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+15]},ze.numVerticalGlyphVertices.set=function(Ee){this._structArray.uint16[this._pos2+15]=Ee},ze.numIconVertices.get=function(){return this._structArray.uint16[this._pos2+16]},ze.numIconVertices.set=function(Ee){this._structArray.uint16[this._pos2+16]=Ee},ze.crossTileID.get=function(){return this._structArray.uint32[this._pos4+9]},ze.crossTileID.set=function(Ee){this._structArray.uint32[this._pos4+9]=Ee},ze.textBoxScale.get=function(){return this._structArray.float32[this._pos4+10]},ze.textBoxScale.set=function(Ee){this._structArray.float32[this._pos4+10]=Ee},ze.radialTextOffset.get=function(){return this._structArray.float32[this._pos4+11]},ze.radialTextOffset.set=function(Ee){this._structArray.float32[this._pos4+11]=Ee},Object.defineProperties(e.prototype,ze),e}(Yn);wl.prototype.size=48;var Tl=function(Ee){function e(){Ee.apply(this,arguments)}return Ee&&(e.__proto__=Ee),e.prototype=Object.create(Ee&&Ee.prototype),e.prototype.constructor=e,e.prototype.get=function(Ee){return new wl(this,Ee)},e}(Ws);mn("SymbolInstanceArray",Tl);var kl=function(Ee){function e(){Ee.apply(this,arguments)}Ee&&(e.__proto__=Ee),e.prototype=Object.create(Ee&&Ee.prototype),e.prototype.constructor=e;var ze={offsetX:{configurable:!0}};return ze.offsetX.get=function(){return this._structArray.float32[this._pos4+0]},ze.offsetX.set=function(Ee){this._structArray.float32[this._pos4+0]=Ee},Object.defineProperties(e.prototype,ze),e}(Yn);kl.prototype.size=4;var Al=function(Ee){function e(){Ee.apply(this,arguments)}return Ee&&(e.__proto__=Ee),e.prototype=Object.create(Ee&&Ee.prototype),e.prototype.constructor=e,e.prototype.getoffsetX=function(Ee){return this.float32[1*Ee+0]},e.prototype.get=function(Ee){return new kl(this,Ee)},e}(Zs);mn("GlyphOffsetArray",Al);var Ml=function(Ee){function e(){Ee.apply(this,arguments)}Ee&&(e.__proto__=Ee),e.prototype=Object.create(Ee&&Ee.prototype),e.prototype.constructor=e;var ze={x:{configurable:!0},y:{configurable:!0},tileUnitDistanceFromAnchor:{configurable:!0}};return ze.x.get=function(){return this._structArray.int16[this._pos2+0]},ze.x.set=function(Ee){this._structArray.int16[this._pos2+0]=Ee},ze.y.get=function(){return this._structArray.int16[this._pos2+1]},ze.y.set=function(Ee){this._structArray.int16[this._pos2+1]=Ee},ze.tileUnitDistanceFromAnchor.get=function(){return this._structArray.int16[this._pos2+2]},ze.tileUnitDistanceFromAnchor.set=function(Ee){this._structArray.int16[this._pos2+2]=Ee},Object.defineProperties(e.prototype,ze),e}(Yn);Ml.prototype.size=6;var Sl=function(Ee){function e(){Ee.apply(this,arguments)}return Ee&&(e.__proto__=Ee),e.prototype=Object.create(Ee&&Ee.prototype),e.prototype.constructor=e,e.prototype.getx=function(Ee){return this.int16[3*Ee+0]},e.prototype.gety=function(Ee){return this.int16[3*Ee+1]},e.prototype.gettileUnitDistanceFromAnchor=function(Ee){return this.int16[3*Ee+2]},e.prototype.get=function(Ee){return new Ml(this,Ee)},e}(Xs);mn("SymbolLineVertexArray",Sl);var Cl=function(Ee){function e(){Ee.apply(this,arguments)}Ee&&(e.__proto__=Ee),e.prototype=Object.create(Ee&&Ee.prototype),e.prototype.constructor=e;var ze={featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0}};return ze.featureIndex.get=function(){return this._structArray.uint32[this._pos4+0]},ze.featureIndex.set=function(Ee){this._structArray.uint32[this._pos4+0]=Ee},ze.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+2]},ze.sourceLayerIndex.set=function(Ee){this._structArray.uint16[this._pos2+2]=Ee},ze.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+3]},ze.bucketIndex.set=function(Ee){this._structArray.uint16[this._pos2+3]=Ee},Object.defineProperties(e.prototype,ze),e}(Yn);Cl.prototype.size=8;var El=function(Ee){function e(){Ee.apply(this,arguments)}return Ee&&(e.__proto__=Ee),e.prototype=Object.create(Ee&&Ee.prototype),e.prototype.constructor=e,e.prototype.get=function(Ee){return new Cl(this,Ee)},e}($s);mn("FeatureIndexArray",El);var Pl=Wn([{name:"a_pos",components:2,type:"Int16"}],4).members,Vi=function(Ee){void 0===Ee&&(Ee=[]),this.segments=Ee};function Fi(Ee,ze){return 256*(Ee=l(Math.floor(Ee),0,255))+l(Math.floor(ze),0,255)}Vi.prototype.prepareSegment=function(Ee,ze,Be,Ue){var We=this.segments[this.segments.length-1];return Ee>Vi.MAX_VERTEX_ARRAY_LENGTH&&w("Max vertices per segment is "+Vi.MAX_VERTEX_ARRAY_LENGTH+": bucket requested "+Ee),(!We||We.vertexLength+Ee>Vi.MAX_VERTEX_ARRAY_LENGTH||We.sortKey!==Ue)&&(We={vertexOffset:ze.length,primitiveOffset:Be.length,vertexLength:0,primitiveLength:0},void 0!==Ue&&(We.sortKey=Ue),this.segments.push(We)),We},Vi.prototype.get=function(){return this.segments},Vi.prototype.destroy=function(){for(var Ee=0,ze=this.segments;Ee>1;this.ids[Ue]>=Ee?Be=Ue:ze=Ue+1}for(var We=[];this.ids[ze]===Ee;){var $e=this.positions[3*ze],Qe=this.positions[3*ze+1],rt=this.positions[3*ze+2];We.push({index:$e,start:Qe,end:rt}),ze++}return We},Oi.serialize=function(Ee,ze){var Be=new Float64Array(Ee.ids),Ue=new Uint32Array(Ee.positions);return function t(Ee,ze,Be,Ue){if(!(Be>=Ue)){for(var We=Ee[Be+Ue>>1],$e=Be-1,Qe=Ue+1;;){do{$e++}while(Ee[$e]We);if($e>=Qe)break;Li(Ee,$e,Qe),Li(ze,3*$e,3*Qe),Li(ze,3*$e+1,3*Qe+1),Li(ze,3*$e+2,3*Qe+2)}t(Ee,ze,Be,Qe),t(Ee,ze,Qe+1,Ue)}}(Be,Ue,0,Be.length-1),ze.push(Be.buffer,Ue.buffer),{ids:Be,positions:Ue}},Oi.deserialize=function(Ee){var ze=new Oi;return ze.ids=Ee.ids,ze.positions=Ee.positions,ze.indexed=!0,ze},mn("FeaturePositionMap",Oi);var Di=function(Ee,ze){this.gl=Ee.gl,this.location=ze},Ol=function(Ee){function e(ze,Be){Ee.call(this,ze,Be),this.current=0}return Ee&&(e.__proto__=Ee),e.prototype=Object.create(Ee&&Ee.prototype),e.prototype.constructor=e,e.prototype.set=function(Ee){this.current!==Ee&&(this.current=Ee,this.gl.uniform1i(this.location,Ee))},e}(Di),Ll=function(Ee){function e(ze,Be){Ee.call(this,ze,Be),this.current=0}return Ee&&(e.__proto__=Ee),e.prototype=Object.create(Ee&&Ee.prototype),e.prototype.constructor=e,e.prototype.set=function(Ee){this.current!==Ee&&(this.current=Ee,this.gl.uniform1f(this.location,Ee))},e}(Di),Dl=function(Ee){function e(ze,Be){Ee.call(this,ze,Be),this.current=[0,0]}return Ee&&(e.__proto__=Ee),e.prototype=Object.create(Ee&&Ee.prototype),e.prototype.constructor=e,e.prototype.set=function(Ee){Ee[0]===this.current[0]&&Ee[1]===this.current[1]||(this.current=Ee,this.gl.uniform2f(this.location,Ee[0],Ee[1]))},e}(Di),Il=function(Ee){function e(ze,Be){Ee.call(this,ze,Be),this.current=[0,0,0]}return Ee&&(e.__proto__=Ee),e.prototype=Object.create(Ee&&Ee.prototype),e.prototype.constructor=e,e.prototype.set=function(Ee){Ee[0]===this.current[0]&&Ee[1]===this.current[1]&&Ee[2]===this.current[2]||(this.current=Ee,this.gl.uniform3f(this.location,Ee[0],Ee[1],Ee[2]))},e}(Di),zl=function(Ee){function e(ze,Be){Ee.call(this,ze,Be),this.current=[0,0,0,0]}return Ee&&(e.__proto__=Ee),e.prototype=Object.create(Ee&&Ee.prototype),e.prototype.constructor=e,e.prototype.set=function(Ee){Ee[0]===this.current[0]&&Ee[1]===this.current[1]&&Ee[2]===this.current[2]&&Ee[3]===this.current[3]||(this.current=Ee,this.gl.uniform4f(this.location,Ee[0],Ee[1],Ee[2],Ee[3]))},e}(Di),Rl=function(Ee){function e(ze,Be){Ee.call(this,ze,Be),this.current=Ht.transparent}return Ee&&(e.__proto__=Ee),e.prototype=Object.create(Ee&&Ee.prototype),e.prototype.constructor=e,e.prototype.set=function(Ee){Ee.r===this.current.r&&Ee.g===this.current.g&&Ee.b===this.current.b&&Ee.a===this.current.a||(this.current=Ee,this.gl.uniform4f(this.location,Ee.r,Ee.g,Ee.b,Ee.a))},e}(Di),Bl=new Float32Array(16),Nl=function(Ee){function e(ze,Be){Ee.call(this,ze,Be),this.current=Bl}return Ee&&(e.__proto__=Ee),e.prototype=Object.create(Ee&&Ee.prototype),e.prototype.constructor=e,e.prototype.set=function(Ee){if(Ee[12]!==this.current[12]||Ee[0]!==this.current[0])return this.current=Ee,void this.gl.uniformMatrix4fv(this.location,!1,Ee);for(var ze=1;ze<16;ze++)if(Ee[ze]!==this.current[ze]){this.current=Ee,this.gl.uniformMatrix4fv(this.location,!1,Ee);break}},e}(Di);function Gi(Ee){return[Fi(255*Ee.r,255*Ee.g),Fi(255*Ee.b,255*Ee.a)]}var Ji=function(Ee,ze,Be){this.value=Ee,this.names=ze,this.uniformNames=this.names.map((function(Ee){return"u_"+Ee})),this.type=Be,this.maxValue=-1/0};Ji.prototype.defines=function(){return this.names.map((function(Ee){return"#define HAS_UNIFORM_u_"+Ee}))},Ji.prototype.setConstantPatternPositions=function(){},Ji.prototype.populatePaintArray=function(){},Ji.prototype.updatePaintArray=function(){},Ji.prototype.upload=function(){},Ji.prototype.destroy=function(){},Ji.prototype.setUniforms=function(Ee,ze,Be,Ue){ze.set(Ue.constantOr(this.value))},Ji.prototype.getBinding=function(Ee,ze){return"color"===this.type?new Rl(Ee,ze):new Ll(Ee,ze)},Ji.serialize=function(Ee){var ze=Ee.value,Be=Ee.names,Ue=Ee.type;return{value:gn(ze),names:Be,type:Ue}},Ji.deserialize=function(Ee){var ze=Ee.value,Be=Ee.names,Ue=Ee.type;return new Ji(xn(ze),Be,Ue)};var Hi=function(Ee,ze,Be){this.value=Ee,this.names=ze,this.uniformNames=this.names.map((function(Ee){return"u_"+Ee})),this.type=Be,this.maxValue=-1/0,this.patternPositions={patternTo:null,patternFrom:null}};Hi.prototype.defines=function(){return this.names.map((function(Ee){return"#define HAS_UNIFORM_u_"+Ee}))},Hi.prototype.populatePaintArray=function(){},Hi.prototype.updatePaintArray=function(){},Hi.prototype.upload=function(){},Hi.prototype.destroy=function(){},Hi.prototype.setConstantPatternPositions=function(Ee,ze){this.patternPositions.patternTo=Ee.tlbr,this.patternPositions.patternFrom=ze.tlbr},Hi.prototype.setUniforms=function(Ee,ze,Be,Ue,We){var $e=this.patternPositions;"u_pattern_to"===We&&$e.patternTo&&ze.set($e.patternTo),"u_pattern_from"===We&&$e.patternFrom&&ze.set($e.patternFrom)},Hi.prototype.getBinding=function(Ee,ze){return new zl(Ee,ze)};var Yi=function(Ee,ze,Be,Ue){this.expression=Ee,this.names=ze,this.type=Be,this.uniformNames=this.names.map((function(Ee){return"a_"+Ee})),this.maxValue=-1/0,this.paintVertexAttributes=ze.map((function(Ee){return{name:"a_"+Ee,type:"Float32",components:"color"===Be?2:1,offset:0}})),this.paintVertexArray=new Ue};Yi.prototype.defines=function(){return[]},Yi.prototype.setConstantPatternPositions=function(){},Yi.prototype.populatePaintArray=function(Ee,ze,Be,Ue){var We=this.paintVertexArray,$e=We.length;We.reserve(Ee);var Qe=this.expression.evaluate(new Tn(0),ze,{},Ue);if("color"===this.type)for(var rt=Gi(Qe),it=$e;itjl.max||Qe.yjl.max)&&(w("Geometry exceeds allowed extent, reduce your vector tile buffer size"),Qe.x=l(Qe.x,jl.min,jl.max),Qe.y=l(Qe.y,jl.min,jl.max))}return Be}function sa(Ee,ze,Be,Ue,We){Ee.emplaceBack(2*ze+(Ue+1)/2,2*Be+(We+1)/2)}var ua=function(Ee){this.zoom=Ee.zoom,this.overscaling=Ee.overscaling,this.layers=Ee.layers,this.layerIds=this.layers.map((function(Ee){return Ee.id})),this.index=Ee.index,this.hasPattern=!1,this.layoutVertexArray=new ks,this.indexArray=new Ks,this.segments=new Vi,this.programConfigurations=new ta(Pl,Ee.layers,Ee.zoom),this.stateDependentLayerIds=this.layers.filter((function(Ee){return Ee.isStateDependent()})).map((function(Ee){return Ee.id}))};function la(Ee,ze){for(var Be=0;Be1){if(fa(Ee,ze))return!0;for(var Ue=0;Ue1?Ee.distSqr(Be):Ee.distSqr(Be.sub(ze)._mult(We)._add(ze))}function va(Ee,ze){for(var Be,Ue,We,$e=!1,Qe=0;Qeze.y!=We.y>ze.y&&ze.x<(We.x-Ue.x)*(ze.y-Ue.y)/(We.y-Ue.y)+Ue.x&&($e=!$e);return $e}function ga(Ee,ze){for(var Be=!1,Ue=0,We=Ee.length-1;Ueze.y!=Qe.y>ze.y&&ze.x<(Qe.x-$e.x)*(ze.y-$e.y)/(Qe.y-$e.y)+$e.x&&(Be=!Be)}return Be}function xa(Ee,ze,Be){var Ue=Be[0],We=Be[2];if(Ee.xWe.x&&ze.x>We.x||Ee.yWe.y&&ze.y>We.y)return!1;var $e=A(Ee,ze,Be[0]);return $e!==A(Ee,ze,Be[1])||$e!==A(Ee,ze,Be[2])||$e!==A(Ee,ze,Be[3])}function ba(Ee,ze,Be){var Ue=ze.paint.get(Ee).value;return"constant"===Ue.kind?Ue.value:Be.programConfigurations.get(ze.id).binders[Ee].maxValue}function _a(Ee){return Math.sqrt(Ee[0]*Ee[0]+Ee[1]*Ee[1])}function wa(Ee,ze,Ue,We,$e){if(!ze[0]&&!ze[1])return Ee;var Qe=Be.convert(ze)._mult($e);"viewport"===Ue&&Qe._rotate(-We);for(var rt=[],it=0;it=Fl||at<0||at>=Fl)){var ct=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,Ee.sortKey),ft=ct.vertexLength;sa(this.layoutVertexArray,it,at,-1,-1),sa(this.layoutVertexArray,it,at,1,-1),sa(this.layoutVertexArray,it,at,1,1),sa(this.layoutVertexArray,it,at,-1,1),this.indexArray.emplaceBack(ft,ft+1,ft+2),this.indexArray.emplaceBack(ft,ft+3,ft+2),ct.vertexLength+=4,ct.primitiveLength+=2}}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,Ee,Be,{})},mn("CircleBucket",ua,{omit:["layers"]});var Vl,Ul=new Gn({"circle-sort-key":new Nn(Hn.layout_circle["circle-sort-key"])}),Hl={paint:new Gn({"circle-radius":new Nn(Hn.paint_circle["circle-radius"]),"circle-color":new Nn(Hn.paint_circle["circle-color"]),"circle-blur":new Nn(Hn.paint_circle["circle-blur"]),"circle-opacity":new Nn(Hn.paint_circle["circle-opacity"]),"circle-translate":new qn(Hn.paint_circle["circle-translate"]),"circle-translate-anchor":new qn(Hn.paint_circle["circle-translate-anchor"]),"circle-pitch-scale":new qn(Hn.paint_circle["circle-pitch-scale"]),"circle-pitch-alignment":new qn(Hn.paint_circle["circle-pitch-alignment"]),"circle-stroke-width":new Nn(Hn.paint_circle["circle-stroke-width"]),"circle-stroke-color":new Nn(Hn.paint_circle["circle-stroke-color"]),"circle-stroke-opacity":new Nn(Hn.paint_circle["circle-stroke-opacity"])}),layout:Ul},ql="undefined"!=typeof Float32Array?Float32Array:Array;function Ca(Ee,ze,Be){var Ue=ze[0],We=ze[1],$e=ze[2],Qe=ze[3];return Ee[0]=Be[0]*Ue+Be[4]*We+Be[8]*$e+Be[12]*Qe,Ee[1]=Be[1]*Ue+Be[5]*We+Be[9]*$e+Be[13]*Qe,Ee[2]=Be[2]*Ue+Be[6]*We+Be[10]*$e+Be[14]*Qe,Ee[3]=Be[3]*Ue+Be[7]*We+Be[11]*$e+Be[15]*Qe,Ee}Math.hypot||(Math.hypot=function(){for(var Ee=arguments,ze=0,Be=arguments.length;Be--;)ze+=Ee[Be]*Ee[Be];return Math.sqrt(ze)}),Vl=new ql(3),ql!=Float32Array&&(Vl[0]=0,Vl[1]=0,Vl[2]=0),function(){var Ee=new ql(4);ql!=Float32Array&&(Ee[0]=0,Ee[1]=0,Ee[2]=0,Ee[3]=0)}();var Gl=function(Ee){function e(ze){Ee.call(this,ze,Hl)}return Ee&&(e.__proto__=Ee),e.prototype=Object.create(Ee&&Ee.prototype),e.prototype.constructor=e,e.prototype.createBucket=function(Ee){return new ua(Ee)},e.prototype.queryRadius=function(Ee){var ze=Ee;return ba("circle-radius",this,ze)+ba("circle-stroke-width",this,ze)+_a(this.paint.get("circle-translate"))},e.prototype.queryIntersectsFeature=function(Ee,ze,Be,Ue,We,$e,Qe,rt){for(var it=wa(Ee,this.paint.get("circle-translate"),this.paint.get("circle-translate-anchor"),$e.angle,Qe),at=this.paint.get("circle-radius").evaluate(ze,Be)+this.paint.get("circle-stroke-width").evaluate(ze,Be),ct="map"===this.paint.get("circle-pitch-alignment"),ft=ct?it:function(Ee,ze){return Ee.map((function(Ee){return Ea(Ee,ze)}))}(it,rt),xt=ct?at*Qe:at,kt=0,Lt=Ue;ktEe.width||We.height>Ee.height||Be.x>Ee.width-We.width||Be.y>Ee.height-We.height)throw new RangeError("out of range source coordinates for image copy");if(We.width>ze.width||We.height>ze.height||Ue.x>ze.width-We.width||Ue.y>ze.height-We.height)throw new RangeError("out of range destination coordinates for image copy");for(var Qe=Ee.data,rt=ze.data,it=0;it80*Be){Ue=$e=Ee[0],We=Qe=Ee[1];for(var Lt=Be;Lt$e&&($e=rt),it>Qe&&(Qe=it);at=0!==(at=Math.max($e-Ue,Qe-We))?1/at:0}return Ja(xt,kt,Be,Ue,We,at),kt}function Xa(Ee,ze,Be,Ue,We){var $e,Qe;if(We===vo(Ee,ze,Be,Ue)>0)for($e=ze;$e=ze;$e-=Ue)Qe=fo($e,Ee[$e],Ee[$e+1],Qe);return Qe&&so(Qe,Qe.next)&&(yo(Qe),Qe=Qe.next),Qe}function Ga(Ee,ze){if(!Ee)return Ee;ze||(ze=Ee);var Be,Ue=Ee;do{if(Be=!1,Ue.steiner||!so(Ue,Ue.next)&&0!==oo(Ue.prev,Ue,Ue.next))Ue=Ue.next;else{if(yo(Ue),(Ue=ze=Ue.prev)===Ue.next)break;Be=!0}}while(Be||Ue!==ze);return ze}function Ja(Ee,ze,Be,Ue,We,$e,Qe){if(Ee){!Qe&&$e&&function(Ee,ze,Be,Ue){var We=Ee;do{null===We.z&&(We.z=ro(We.x,We.y,ze,Be,Ue)),We.prevZ=We.prev,We.nextZ=We.next,We=We.next}while(We!==Ee);We.prevZ.nextZ=null,We.prevZ=null,function(Ee){var ze,Be,Ue,We,$e,Qe,rt,it,at=1;do{for(Be=Ee,Ee=null,$e=null,Qe=0;Be;){for(Qe++,Ue=Be,rt=0,ze=0;ze0||it>0&&Ue;)0!==rt&&(0===it||!Ue||Be.z<=Ue.z)?(We=Be,Be=Be.nextZ,rt--):(We=Ue,Ue=Ue.nextZ,it--),$e?$e.nextZ=We:Ee=We,We.prevZ=$e,$e=We;Be=Ue}$e.nextZ=null,at*=2}while(Qe>1)}(We)}(Ee,Ue,We,$e);for(var rt,it,at=Ee;Ee.prev!==Ee.next;)if(rt=Ee.prev,it=Ee.next,$e?Ya(Ee,Ue,We,$e):Ha(Ee))ze.push(rt.i/Be),ze.push(Ee.i/Be),ze.push(it.i/Be),yo(Ee),Ee=it.next,at=it.next;else if((Ee=it)===at){Qe?1===Qe?Ja(Ee=$a(Ga(Ee),ze,Be),ze,Be,Ue,We,$e,2):2===Qe&&Wa(Ee,ze,Be,Ue,We,$e):Ja(Ga(Ee),ze,Be,Ue,We,$e,1);break}}}function Ha(Ee){var ze=Ee.prev,Be=Ee,Ue=Ee.next;if(oo(ze,Be,Ue)>=0)return!1;for(var We=Ee.next.next;We!==Ee.prev;){if(io(ze.x,ze.y,Be.x,Be.y,Ue.x,Ue.y,We.x,We.y)&&oo(We.prev,We,We.next)>=0)return!1;We=We.next}return!0}function Ya(Ee,ze,Be,Ue){var We=Ee.prev,$e=Ee,Qe=Ee.next;if(oo(We,$e,Qe)>=0)return!1;for(var rt=We.x<$e.x?We.x$e.x?We.x>Qe.x?We.x:Qe.x:$e.x>Qe.x?$e.x:Qe.x,ct=We.y>$e.y?We.y>Qe.y?We.y:Qe.y:$e.y>Qe.y?$e.y:Qe.y,ft=ro(rt,it,ze,Be,Ue),xt=ro(at,ct,ze,Be,Ue),kt=Ee.prevZ,Lt=Ee.nextZ;kt&&kt.z>=ft&&Lt&&Lt.z<=xt;){if(kt!==Ee.prev&&kt!==Ee.next&&io(We.x,We.y,$e.x,$e.y,Qe.x,Qe.y,kt.x,kt.y)&&oo(kt.prev,kt,kt.next)>=0)return!1;if(kt=kt.prevZ,Lt!==Ee.prev&&Lt!==Ee.next&&io(We.x,We.y,$e.x,$e.y,Qe.x,Qe.y,Lt.x,Lt.y)&&oo(Lt.prev,Lt,Lt.next)>=0)return!1;Lt=Lt.nextZ}for(;kt&&kt.z>=ft;){if(kt!==Ee.prev&&kt!==Ee.next&&io(We.x,We.y,$e.x,$e.y,Qe.x,Qe.y,kt.x,kt.y)&&oo(kt.prev,kt,kt.next)>=0)return!1;kt=kt.prevZ}for(;Lt&&Lt.z<=xt;){if(Lt!==Ee.prev&&Lt!==Ee.next&&io(We.x,We.y,$e.x,$e.y,Qe.x,Qe.y,Lt.x,Lt.y)&&oo(Lt.prev,Lt,Lt.next)>=0)return!1;Lt=Lt.nextZ}return!0}function $a(Ee,ze,Be){var Ue=Ee;do{var We=Ue.prev,$e=Ue.next.next;!so(We,$e)&&uo(We,Ue,Ue.next,$e)&&co(We,$e)&&co($e,We)&&(ze.push(We.i/Be),ze.push(Ue.i/Be),ze.push($e.i/Be),yo(Ue),yo(Ue.next),Ue=Ee=$e),Ue=Ue.next}while(Ue!==Ee);return Ga(Ue)}function Wa(Ee,ze,Be,Ue,We,$e){var Qe=Ee;do{for(var rt=Qe.next.next;rt!==Qe.prev;){if(Qe.i!==rt.i&&ao(Qe,rt)){var it=ho(Qe,rt);return Qe=Ga(Qe,Qe.next),it=Ga(it,it.next),Ja(Qe,ze,Be,Ue,We,$e),void Ja(it,ze,Be,Ue,We,$e)}rt=rt.next}Qe=Qe.next}while(Qe!==Ee)}function Qa(Ee,ze){return Ee.x-ze.x}function to(Ee,ze){if(ze=function(Ee,ze){var Be,Ue=ze,We=Ee.x,$e=Ee.y,Qe=-1/0;do{if($e<=Ue.y&&$e>=Ue.next.y&&Ue.next.y!==Ue.y){var rt=Ue.x+($e-Ue.y)*(Ue.next.x-Ue.x)/(Ue.next.y-Ue.y);if(rt<=We&&rt>Qe){if(Qe=rt,rt===We){if($e===Ue.y)return Ue;if($e===Ue.next.y)return Ue.next}Be=Ue.x=Ue.x&&Ue.x>=ct&&We!==Ue.x&&io($eBe.x||Ue.x===Be.x&&eo(Be,Ue)))&&(Be=Ue,xt=it)),Ue=Ue.next}while(Ue!==at);return Be}(Ee,ze)){var Be=ho(ze,Ee);Ga(Be,Be.next)}}function eo(Ee,ze){return oo(Ee.prev,Ee,ze.prev)<0&&oo(ze.next,Ee,Ee.next)<0}function ro(Ee,ze,Be,Ue,We){return(Ee=1431655765&((Ee=858993459&((Ee=252645135&((Ee=16711935&((Ee=32767*(Ee-Be)*We)|Ee<<8))|Ee<<4))|Ee<<2))|Ee<<1))|(ze=1431655765&((ze=858993459&((ze=252645135&((ze=16711935&((ze=32767*(ze-Ue)*We)|ze<<8))|ze<<4))|ze<<2))|ze<<1))<<1}function no(Ee){var ze=Ee,Be=Ee;do{(ze.x=0&&(Ee-Qe)*(Ue-rt)-(Be-Qe)*(ze-rt)>=0&&(Be-Qe)*($e-rt)-(We-Qe)*(Ue-rt)>=0}function ao(Ee,ze){return Ee.next.i!==ze.i&&Ee.prev.i!==ze.i&&!function(Ee,ze){var Be=Ee;do{if(Be.i!==Ee.i&&Be.next.i!==Ee.i&&Be.i!==ze.i&&Be.next.i!==ze.i&&uo(Be,Be.next,Ee,ze))return!0;Be=Be.next}while(Be!==Ee);return!1}(Ee,ze)&&(co(Ee,ze)&&co(ze,Ee)&&function(Ee,ze){var Be=Ee,Ue=!1,We=(Ee.x+ze.x)/2,$e=(Ee.y+ze.y)/2;do{Be.y>$e!=Be.next.y>$e&&Be.next.y!==Be.y&&We<(Be.next.x-Be.x)*($e-Be.y)/(Be.next.y-Be.y)+Be.x&&(Ue=!Ue),Be=Be.next}while(Be!==Ee);return Ue}(Ee,ze)&&(oo(Ee.prev,Ee,ze.prev)||oo(Ee,ze.prev,ze))||so(Ee,ze)&&oo(Ee.prev,Ee,Ee.next)>0&&oo(ze.prev,ze,ze.next)>0)}function oo(Ee,ze,Be){return(ze.y-Ee.y)*(Be.x-ze.x)-(ze.x-Ee.x)*(Be.y-ze.y)}function so(Ee,ze){return Ee.x===ze.x&&Ee.y===ze.y}function uo(Ee,ze,Be,Ue){var We=po(oo(Ee,ze,Be)),$e=po(oo(Ee,ze,Ue)),Qe=po(oo(Be,Ue,Ee)),rt=po(oo(Be,Ue,ze));return We!==$e&&Qe!==rt||!(0!==We||!lo(Ee,Be,ze))||!(0!==$e||!lo(Ee,Ue,ze))||!(0!==Qe||!lo(Be,Ee,Ue))||!(0!==rt||!lo(Be,ze,Ue))}function lo(Ee,ze,Be){return ze.x<=Math.max(Ee.x,Be.x)&&ze.x>=Math.min(Ee.x,Be.x)&&ze.y<=Math.max(Ee.y,Be.y)&&ze.y>=Math.min(Ee.y,Be.y)}function po(Ee){return Ee>0?1:Ee<0?-1:0}function co(Ee,ze){return oo(Ee.prev,Ee,Ee.next)<0?oo(Ee,ze,Ee.next)>=0&&oo(Ee,Ee.prev,ze)>=0:oo(Ee,ze,Ee.prev)<0||oo(Ee,Ee.next,ze)<0}function ho(Ee,ze){var Be=new mo(Ee.i,Ee.x,Ee.y),Ue=new mo(ze.i,ze.x,ze.y),We=Ee.next,$e=ze.prev;return Ee.next=ze,ze.prev=Ee,Be.next=We,We.prev=Be,Ue.next=Be,Be.prev=Ue,$e.next=Ue,Ue.prev=$e,Ue}function fo(Ee,ze,Be,Ue){var We=new mo(Ee,ze,Be);return Ue?(We.next=Ue.next,We.prev=Ue,Ue.next.prev=We,Ue.next=We):(We.prev=We,We.next=We),We}function yo(Ee){Ee.next.prev=Ee.prev,Ee.prev.next=Ee.next,Ee.prevZ&&(Ee.prevZ.nextZ=Ee.nextZ),Ee.nextZ&&(Ee.nextZ.prevZ=Ee.prevZ)}function mo(Ee,ze,Be){this.i=Ee,this.x=ze,this.y=Be,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function vo(Ee,ze,Be,Ue){for(var We=0,$e=ze,Qe=Be-Ue;$eBe;){if(Ue-Be>600){var $e=Ue-Be+1,Qe=ze-Be+1,rt=Math.log($e),it=.5*Math.exp(2*rt/3),at=.5*Math.sqrt(rt*it*($e-it)/$e)*(Qe-$e/2<0?-1:1);t(Ee,ze,Math.max(Be,Math.floor(ze-Qe*it/$e+at)),Math.min(Ue,Math.floor(ze+($e-Qe)*it/$e+at)),We)}var ct=Ee[ze],ft=Be,xt=Ue;for(xo(Ee,Be,ze),We(Ee[Ue],ct)>0&&xo(Ee,Be,Ue);ft0;)xt--}0===We(Ee[Be],ct)?xo(Ee,Be,xt):xo(Ee,++xt,Ue),xt<=ze&&(Be=xt+1),ze<=xt&&(Ue=xt-1)}}(Ee,ze,Be||0,Ue||Ee.length-1,We||bo)}function xo(Ee,ze,Be){var Ue=Ee[ze];Ee[ze]=Ee[Be],Ee[Be]=Ue}function bo(Ee,ze){return Eeze?1:0}function _o(Ee,ze){var Be=Ee.length;if(Be<=1)return[Ee];for(var Ue,We,$e=[],Qe=0;Qe1)for(var it=0;it<$e.length;it++)$e[it].length<=ze||(go($e[it],ze,1,$e[it].length-1,wo),$e[it]=$e[it].slice(0,ze));return $e}function wo(Ee,ze){return ze.area-Ee.area}function Ao(Ee,ze,Be){for(var Ue=Be.patternDependencies,We=!1,$e=0,Qe=ze;$e0&&(Ue+=Ee[We-1].length,Be.holes.push(Ue))}return Be},Jl.default=Ql;var So=function(Ee){this.zoom=Ee.zoom,this.overscaling=Ee.overscaling,this.layers=Ee.layers,this.layerIds=this.layers.map((function(Ee){return Ee.id})),this.index=Ee.index,this.hasPattern=!1,this.patternFeatures=[],this.layoutVertexArray=new ks,this.indexArray=new Ks,this.indexArray2=new Qs,this.programConfigurations=new ta(Kl,Ee.layers,Ee.zoom),this.segments=new Vi,this.segments2=new Vi,this.stateDependentLayerIds=this.layers.filter((function(Ee){return Ee.isStateDependent()})).map((function(Ee){return Ee.id}))};So.prototype.populate=function(Ee,ze){this.hasPattern=Ao("fill",this.layers,ze);for(var Be=this.layers[0].layout.get("fill-sort-key"),Ue=[],We=0,$e=Ee;We<$e.length;We+=1){var Qe=$e[We],rt=Qe.feature,it=Qe.index,at=Qe.sourceLayerIndex;if(this.layers[0]._featureFilter(new Tn(this.zoom),rt)){var ct=oa(rt),ft=Be?Be.evaluate(rt,{}):void 0,xt={id:rt.id,properties:rt.properties,type:rt.type,sourceLayerIndex:at,index:it,geometry:ct,patterns:{},sortKey:ft};Ue.push(xt)}}Be&&Ue.sort((function(Ee,ze){return Ee.sortKey-ze.sortKey}));for(var kt=0,Lt=Ue;kt>3}if($e--,1===We||2===We)Qe+=Ee.readSVarint(),rt+=Ee.readSVarint(),1===We&&(ze&&it.push(ze),ze=[]),ze.push(new Be(Qe,rt));else{if(7!==We)throw new Error("unknown command "+We);ze&&ze.push(ze[0].clone())}}return ze&&it.push(ze),it},Mo.prototype.bbox=function(){var Ee=this._pbf;Ee.pos=this._geometry;for(var ze=Ee.readVarint()+Ee.pos,Be=1,Ue=0,We=0,$e=0,Qe=1/0,rt=-1/0,it=1/0,at=-1/0;Ee.pos>3}if(Ue--,1===Be||2===Be)(We+=Ee.readSVarint())rt&&(rt=We),($e+=Ee.readSVarint())at&&(at=$e);else if(7!==Be)throw new Error("unknown command "+Be)}return[Qe,it,rt,at]},Mo.prototype.toGeoJSON=function(Ee,ze,Be){var Ue,We,$e=this.extent*Math.pow(2,Be),Qe=this.extent*Ee,rt=this.extent*ze,it=this.loadGeometry(),at=Mo.types[this.type];function p(Ee){for(var ze=0;ze>3;ze=1===Ue?Ee.readString():2===Ue?Ee.readFloat():3===Ue?Ee.readDouble():4===Ue?Ee.readVarint64():5===Ue?Ee.readVarint():6===Ue?Ee.readSVarint():7===Ue?Ee.readBoolean():null}return ze}(Be))}function Lo(Ee,ze,Be){if(3===Ee){var Ue=new ac(Be,Be.readVarint()+Be.pos);Ue.length&&(ze[Ue.name]=Ue)}}Fo.prototype.feature=function(Ee){if(Ee<0||Ee>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[Ee];var ze=this._pbf.readVarint()+this._pbf.pos;return new ic(this._pbf,ze,this.extent,this._keys,this._values)};var oc={VectorTile:function(Ee,ze){this.layers=Ee.readFields(Lo,{},ze)},VectorTileFeature:ic,VectorTileLayer:ac},sc=oc.VectorTileFeature.types,lc=Math.pow(2,13);function jo(Ee,ze,Be,Ue,We,$e,Qe,rt){Ee.emplaceBack(ze,Be,2*Math.floor(Ue*lc)+Qe,We*lc*2,$e*lc*2,Math.round(rt))}var qo=function(Ee){this.zoom=Ee.zoom,this.overscaling=Ee.overscaling,this.layers=Ee.layers,this.layerIds=this.layers.map((function(Ee){return Ee.id})),this.index=Ee.index,this.hasPattern=!1,this.layoutVertexArray=new Ss,this.indexArray=new Ks,this.programConfigurations=new ta(nc,Ee.layers,Ee.zoom),this.segments=new Vi,this.stateDependentLayerIds=this.layers.filter((function(Ee){return Ee.isStateDependent()})).map((function(Ee){return Ee.id}))};function No(Ee,ze){return Ee.x===ze.x&&(Ee.x<0||Ee.x>Fl)||Ee.y===ze.y&&(Ee.y<0||Ee.y>Fl)}function Ko(Ee){return Ee.every((function(Ee){return Ee.x<0}))||Ee.every((function(Ee){return Ee.x>Fl}))||Ee.every((function(Ee){return Ee.y<0}))||Ee.every((function(Ee){return Ee.y>Fl}))}qo.prototype.populate=function(Ee,ze){this.features=[],this.hasPattern=Ao("fill-extrusion",this.layers,ze);for(var Be=0,Ue=Ee;Be=1){var tr=kt[Ut-1];if(!No(er,tr)){ct.vertexLength+4>Vi.MAX_VERTEX_ARRAY_LENGTH&&(ct=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));var rr=er.sub(tr)._perp()._unit(),ar=tr.dist(er);Lt+ar>32768&&(Lt=0),jo(this.layoutVertexArray,er.x,er.y,rr.x,rr.y,0,0,Lt),jo(this.layoutVertexArray,er.x,er.y,rr.x,rr.y,0,1,Lt),Lt+=ar,jo(this.layoutVertexArray,tr.x,tr.y,rr.x,rr.y,0,0,Lt),jo(this.layoutVertexArray,tr.x,tr.y,rr.x,rr.y,0,1,Lt);var Lr=ct.vertexLength;this.indexArray.emplaceBack(Lr,Lr+2,Lr+1),this.indexArray.emplaceBack(Lr+1,Lr+2,Lr+3),ct.vertexLength+=4,ct.primitiveLength+=2}}}}if(ct.vertexLength+rt>Vi.MAX_VERTEX_ARRAY_LENGTH&&(ct=this.segments.prepareSegment(rt,this.layoutVertexArray,this.indexArray)),"Polygon"===sc[Ee.type]){for(var Qr=[],on=[],sn=ct.vertexLength,cn=0,un=Qe;cn=2&&Ee[ct-1].equals(Ee[ct-2]);)ct--;for(var ft=0;ft0;if(un&&ar>ft){var dn=xt.dist(Ut);if(dn>2*kt){var vn=xt.sub(xt.sub(Ut)._mult(kt/dn)._round());this.updateDistance(Ut,vn),this.addCurrentVertex(vn,tr,0,0,Lt),Ut=vn}}var yn=Ut&&er,_n=yn?Be:at?"butt":Ue;if(yn&&"round"===_n&&(sn<$e?_n="miter":sn<=2&&(_n="fakeround")),"miter"===_n&&sn>We&&(_n="bevel"),"bevel"===_n&&(sn>2&&(_n="flipbevel"),sn100)Lr=rr.mult(-1);else{var Mn=sn*tr.add(rr).mag()/tr.sub(rr).mag();Lr._perp()._mult(Mn*(hn?-1:1))}this.addCurrentVertex(xt,Lr,0,0,Lt),this.addCurrentVertex(xt,Lr.mult(-1),0,0,Lt)}else if("bevel"===_n||"fakeround"===_n){var Cn=-Math.sqrt(sn*sn-1),En=hn?Cn:0,Pn=hn?0:Cn;if(Ut&&this.addCurrentVertex(xt,tr,En,Pn,Lt),"fakeround"===_n)for(var In=Math.round(180*cn/Math.PI/20),Bn=1;Bn2*kt){var ri=xt.add(er.sub(xt)._mult(kt/ti)._round());this.updateDistance(xt,ri),this.addCurrentVertex(ri,rr,0,0,Lt),xt=ri}}}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,ze,Qe,rt)}},Qo.prototype.addCurrentVertex=function(Ee,ze,Be,Ue,We,$e){void 0===$e&&($e=!1);var Qe=ze.x+ze.y*Be,rt=ze.y-ze.x*Be,it=-ze.x+ze.y*Ue,at=-ze.y-ze.x*Ue;this.addHalfVertex(Ee,Qe,rt,$e,!1,Be,We),this.addHalfVertex(Ee,it,at,$e,!0,-Ue,We),this.distance>dc/2&&0===this.totalDistance&&(this.distance=0,this.addCurrentVertex(Ee,ze,Be,Ue,We,$e))},Qo.prototype.addHalfVertex=function(Ee,ze,Be,Ue,We,$e,Qe){var rt=Ee.x,it=Ee.y,at=.5*this.scaledDistance;this.layoutVertexArray.emplaceBack((rt<<1)+(Ue?1:0),(it<<1)+(We?1:0),Math.round(63*ze)+128,Math.round(63*Be)+128,1+(0===$e?0:$e<0?-1:1)|(63&at)<<2,at>>6);var ct=Qe.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,ct),Qe.primitiveLength++),We?this.e2=ct:this.e1=ct},Qo.prototype.updateDistance=function(Ee,ze){this.distance+=Ee.dist(ze),this.scaledDistance=this.totalDistance>0?(this.clipStart+(this.clipEnd-this.clipStart)*this.distance/this.totalDistance)*(dc-1):this.distance},mn("LineBucket",Qo,{omit:["layers","patternFeatures"]});var gc=new Gn({"line-cap":new qn(Hn.layout_line["line-cap"]),"line-join":new Nn(Hn.layout_line["line-join"]),"line-miter-limit":new qn(Hn.layout_line["line-miter-limit"]),"line-round-limit":new qn(Hn.layout_line["line-round-limit"]),"line-sort-key":new Nn(Hn.layout_line["line-sort-key"])}),mc={paint:new Gn({"line-opacity":new Nn(Hn.paint_line["line-opacity"]),"line-color":new Nn(Hn.paint_line["line-color"]),"line-translate":new qn(Hn.paint_line["line-translate"]),"line-translate-anchor":new qn(Hn.paint_line["line-translate-anchor"]),"line-width":new Nn(Hn.paint_line["line-width"]),"line-gap-width":new Nn(Hn.paint_line["line-gap-width"]),"line-offset":new Nn(Hn.paint_line["line-offset"]),"line-blur":new Nn(Hn.paint_line["line-blur"]),"line-dasharray":new Zn(Hn.paint_line["line-dasharray"]),"line-pattern":new hs(Hn.paint_line["line-pattern"]),"line-gradient":new Xn(Hn.paint_line["line-gradient"])}),layout:gc},vc=new(function(Ee){function e(){Ee.apply(this,arguments)}return Ee&&(e.__proto__=Ee),e.prototype=Object.create(Ee&&Ee.prototype),e.prototype.constructor=e,e.prototype.possiblyEvaluate=function(ze,Be){return Be=new Tn(Math.floor(Be.zoom),{now:Be.now,fadeDuration:Be.fadeDuration,zoomHistory:Be.zoomHistory,transition:Be.transition}),Ee.prototype.possiblyEvaluate.call(this,ze,Be)},e.prototype.evaluate=function(ze,Be,Ue,We){return Be=c({},Be,{zoom:Math.floor(Be.zoom)}),Ee.prototype.evaluate.call(this,ze,Be,Ue,We)},e}(Nn))(mc.paint.properties["line-width"].specification);vc.useIntegerZoom=!0;var yc=function(Ee){function e(ze){Ee.call(this,ze,mc)}return Ee&&(e.__proto__=Ee),e.prototype=Object.create(Ee&&Ee.prototype),e.prototype.constructor=e,e.prototype._handleSpecialPaintPropertyUpdate=function(Ee){"line-gradient"===Ee&&this._updateGradient()},e.prototype._updateGradient=function(){var Ee=this._transitionablePaint._values["line-gradient"].value.expression;this.gradient=Da(Ee,"lineProgress"),this.gradientTexture=null},e.prototype.recalculate=function(ze){Ee.prototype.recalculate.call(this,ze),this.paint._values["line-floorwidth"]=vc.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,ze)},e.prototype.createBucket=function(Ee){return new Qo(Ee)},e.prototype.queryRadius=function(Ee){var ze=Ee,Be=is(ba("line-width",this,ze),ba("line-gap-width",this,ze)),Ue=ba("line-offset",this,ze);return Be/2+Math.abs(Ue)+_a(this.paint.get("line-translate"))},e.prototype.queryIntersectsFeature=function(Ee,ze,Ue,We,$e,Qe,rt){var it=wa(Ee,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),Qe.angle,rt),at=rt/2*is(this.paint.get("line-width").evaluate(ze,Ue),this.paint.get("line-gap-width").evaluate(ze,Ue)),ct=this.paint.get("line-offset").evaluate(ze,Ue);return ct&&(We=function(Ee,ze){for(var Ue=[],We=new Be(0,0),$e=0;$e=3)for(var $e=0;$e0?ze+2*Ee:Ee}var xc=Wn([{name:"a_pos_offset",components:4,type:"Int16"},{name:"a_data",components:4,type:"Uint16"}]),bc=Wn([{name:"a_projected_pos",components:3,type:"Float32"}],4),_c=(Wn([{name:"a_fade_opacity",components:1,type:"Uint32"}],4),Wn([{name:"a_placed",components:2,type:"Uint8"},{name:"a_shift",components:2,type:"Float32"}])),wc=(Wn([{type:"Int16",name:"anchorPointX"},{type:"Int16",name:"anchorPointY"},{type:"Int16",name:"x1"},{type:"Int16",name:"y1"},{type:"Int16",name:"x2"},{type:"Int16",name:"y2"},{type:"Uint32",name:"featureIndex"},{type:"Uint16",name:"sourceLayerIndex"},{type:"Uint16",name:"bucketIndex"},{type:"Int16",name:"radius"},{type:"Int16",name:"signedDistanceFromAnchor"}]),Wn([{name:"a_pos",components:2,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4)),Tc=Wn([{name:"a_pos",components:2,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4);function ps(Ee,ze,Be){return Ee.sections.forEach((function(Ee){Ee.text=function(Ee,ze,Be){var Ue=ze.layout.get("text-transform").evaluate(Be,{});return"uppercase"===Ue?Ee=Ee.toLocaleUpperCase():"lowercase"===Ue&&(Ee=Ee.toLocaleLowerCase()),fs.applyArabicShaping&&(Ee=fs.applyArabicShaping(Ee)),Ee}(Ee.text,ze,Be)})),Ee}Wn([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Uint16",name:"glyphStartIndex"},{type:"Uint16",name:"numGlyphs"},{type:"Uint32",name:"vertexStartIndex"},{type:"Uint32",name:"lineStartIndex"},{type:"Uint32",name:"lineLength"},{type:"Uint16",name:"segment"},{type:"Uint16",name:"lowerSize"},{type:"Uint16",name:"upperSize"},{type:"Float32",name:"lineOffsetX"},{type:"Float32",name:"lineOffsetY"},{type:"Uint8",name:"writingMode"},{type:"Uint8",name:"placedOrientation"},{type:"Uint8",name:"hidden"},{type:"Uint32",name:"crossTileID"}]),Wn([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Int16",name:"rightJustifiedTextSymbolIndex"},{type:"Int16",name:"centerJustifiedTextSymbolIndex"},{type:"Int16",name:"leftJustifiedTextSymbolIndex"},{type:"Int16",name:"verticalPlacedTextSymbolIndex"},{type:"Uint16",name:"key"},{type:"Uint16",name:"textBoxStartIndex"},{type:"Uint16",name:"textBoxEndIndex"},{type:"Uint16",name:"verticalTextBoxStartIndex"},{type:"Uint16",name:"verticalTextBoxEndIndex"},{type:"Uint16",name:"iconBoxStartIndex"},{type:"Uint16",name:"iconBoxEndIndex"},{type:"Uint16",name:"featureIndex"},{type:"Uint16",name:"numHorizontalGlyphVertices"},{type:"Uint16",name:"numVerticalGlyphVertices"},{type:"Uint16",name:"numIconVertices"},{type:"Uint32",name:"crossTileID"},{type:"Float32",name:"textBoxScale"},{type:"Float32",name:"radialTextOffset"}]),Wn([{type:"Float32",name:"offsetX"}]),Wn([{type:"Int16",name:"x"},{type:"Int16",name:"y"},{type:"Int16",name:"tileUnitDistanceFromAnchor"}]);var kc={"!":"︕","#":"#",$:"$","%":"%","&":"&","(":"︵",")":"︶","*":"*","+":"+",",":"︐","-":"︲",".":"・","/":"/",":":"︓",";":"︔","<":"︿","=":"=",">":"﹀","?":"︖","@":"@","[":"﹇","\\":"\","]":"﹈","^":"^",_:"︳","`":"`","{":"︷","|":"―","}":"︸","~":"~","¢":"¢","£":"£","¥":"¥","¦":"¦","¬":"¬","¯":" ̄","–":"︲","—":"︱","‘":"﹃","’":"﹄","“":"﹁","”":"﹂","…":"︙","‧":"・","₩":"₩","、":"︑","。":"︒","〈":"︿","〉":"﹀","《":"︽","》":"︾","「":"﹁","」":"﹂","『":"﹃","』":"﹄","【":"︻","】":"︼","〔":"︹","〕":"︺","〖":"︗","〗":"︘","!":"︕","(":"︵",")":"︶",",":"︐","-":"︲",".":"・",":":"︓",";":"︔","<":"︿",">":"﹀","?":"︖","[":"﹇","]":"﹈","_":"︳","{":"︷","|":"―","}":"︸","⦅":"︵","⦆":"︶","。":"︒","「":"﹁","」":"﹂"},Ac={horizontal:1,vertical:2,horizontalOnly:3},ys=function(){this.text="",this.sectionIndex=[],this.sections=[]};function ds(Ee,ze,Be,Ue,We,$e,Qe,rt,it,at,ct){var ft,xt=ys.fromFeature(Ee,Be);at===Ac.vertical&&xt.verticalizePunctuation();var kt=fs.processBidirectionalText,Lt=fs.processStyledBidirectionalText;if(kt&&1===xt.sections.length){ft=[];for(var Ut=0,er=kt(xt.toString(),_s(xt,rt,Ue,ze));Ut=0&&Ue>=Ee&&Mc[this.text.charCodeAt(Ue)];Ue--)Be--;this.text=this.text.substring(Ee,Be),this.sectionIndex=this.sectionIndex.slice(Ee,Be)},ys.prototype.substring=function(Ee,ze){var Be=new ys;return Be.text=this.text.substring(Ee,ze),Be.sectionIndex=this.sectionIndex.slice(Ee,ze),Be.sections=this.sections,Be},ys.prototype.toString=function(){return this.text},ys.prototype.getMaxScale=function(){var Ee=this;return this.sectionIndex.reduce((function(ze,Be){return Math.max(ze,Ee.sections[Be].scale)}),0)};var Mc={9:!0,10:!0,11:!0,12:!0,13:!0,32:!0},Sc={};function gs(Ee,ze,Be,Ue){var We=Math.pow(Ee-ze,2);return Ue?Ee=0,it=0,at=0;at0)&&("constant"!==We.value.kind||We.value.value.length>0),it="constant"!==Qe.value.kind||Qe.value.value&&Qe.value.value.length>0,at=Ue.get("symbol-sort-key");if(this.features=[],rt||it){for(var ct=ze.iconDependencies,ft=ze.glyphDependencies,xt=new Tn(this.zoom),kt=0,Lt=Ee;kt=0;for(var hn=0,dn=ar.sections;hn=0;rt--)$e[rt]={x:ze[rt].x,y:ze[rt].y,tileUnitDistanceFromAnchor:We},rt>0&&(We+=ze[rt-1].dist(ze[rt]));for(var it=0;it0;this.addCollisionDebugVertices($e,Qe,rt,it,at?this.collisionCircle:this.collisionBox,We.anchorPoint,Be,at)}},Os.prototype.generateCollisionDebugBuffers=function(){for(var Ee=0;Ee0},Os.prototype.hasIconData=function(){return this.icon.segments.get().length>0},Os.prototype.hasCollisionBoxData=function(){return this.collisionBox.segments.get().length>0},Os.prototype.hasCollisionCircleData=function(){return this.collisionCircle.segments.get().length>0},Os.prototype.addIndicesForPlacedTextSymbol=function(Ee){for(var ze=this.text.placedSymbolArray.get(Ee),Be=ze.vertexStartIndex+4*ze.numGlyphs,Ue=ze.vertexStartIndex;Ue1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(Ee),this.sortedAngle=Ee,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(var Be=0,Ue=this.symbolInstanceIndexes;Be=0&&Ue.indexOf(Ee)===Be&&ze.addIndicesForPlacedTextSymbol(Ee)})),$e.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedTextSymbol($e.verticalPlacedTextSymbolIndex);var Qe=this.icon.placedSymbolArray.get(We);if(Qe.numGlyphs){var rt=Qe.vertexStartIndex;this.icon.indexArray.emplaceBack(rt,rt+1,rt+2),this.icon.indexArray.emplaceBack(rt+1,rt+2,rt+3)}}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}},mn("SymbolBucket",Os,{omit:["layers","collisionBoxArray","features","compareText"]}),Os.MAX_GLYPHS=65535,Os.addDynamicAttributes=Ts;var Dc=new Gn({"symbol-placement":new qn(Hn.layout_symbol["symbol-placement"]),"symbol-spacing":new qn(Hn.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new qn(Hn.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new Nn(Hn.layout_symbol["symbol-sort-key"]),"symbol-z-order":new qn(Hn.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new qn(Hn.layout_symbol["icon-allow-overlap"]),"icon-ignore-placement":new qn(Hn.layout_symbol["icon-ignore-placement"]),"icon-optional":new qn(Hn.layout_symbol["icon-optional"]),"icon-rotation-alignment":new qn(Hn.layout_symbol["icon-rotation-alignment"]),"icon-size":new Nn(Hn.layout_symbol["icon-size"]),"icon-text-fit":new qn(Hn.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new qn(Hn.layout_symbol["icon-text-fit-padding"]),"icon-image":new Nn(Hn.layout_symbol["icon-image"]),"icon-rotate":new Nn(Hn.layout_symbol["icon-rotate"]),"icon-padding":new qn(Hn.layout_symbol["icon-padding"]),"icon-keep-upright":new qn(Hn.layout_symbol["icon-keep-upright"]),"icon-offset":new Nn(Hn.layout_symbol["icon-offset"]),"icon-anchor":new Nn(Hn.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new qn(Hn.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new qn(Hn.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new qn(Hn.layout_symbol["text-rotation-alignment"]),"text-field":new Nn(Hn.layout_symbol["text-field"]),"text-font":new Nn(Hn.layout_symbol["text-font"]),"text-size":new Nn(Hn.layout_symbol["text-size"]),"text-max-width":new Nn(Hn.layout_symbol["text-max-width"]),"text-line-height":new qn(Hn.layout_symbol["text-line-height"]),"text-letter-spacing":new Nn(Hn.layout_symbol["text-letter-spacing"]),"text-justify":new Nn(Hn.layout_symbol["text-justify"]),"text-radial-offset":new Nn(Hn.layout_symbol["text-radial-offset"]),"text-variable-anchor":new qn(Hn.layout_symbol["text-variable-anchor"]),"text-anchor":new Nn(Hn.layout_symbol["text-anchor"]),"text-max-angle":new qn(Hn.layout_symbol["text-max-angle"]),"text-writing-mode":new qn(Hn.layout_symbol["text-writing-mode"]),"text-rotate":new Nn(Hn.layout_symbol["text-rotate"]),"text-padding":new qn(Hn.layout_symbol["text-padding"]),"text-keep-upright":new qn(Hn.layout_symbol["text-keep-upright"]),"text-transform":new Nn(Hn.layout_symbol["text-transform"]),"text-offset":new Nn(Hn.layout_symbol["text-offset"]),"text-allow-overlap":new qn(Hn.layout_symbol["text-allow-overlap"]),"text-ignore-placement":new qn(Hn.layout_symbol["text-ignore-placement"]),"text-optional":new qn(Hn.layout_symbol["text-optional"])}),Ic={paint:new Gn({"icon-opacity":new Nn(Hn.paint_symbol["icon-opacity"]),"icon-color":new Nn(Hn.paint_symbol["icon-color"]),"icon-halo-color":new Nn(Hn.paint_symbol["icon-halo-color"]),"icon-halo-width":new Nn(Hn.paint_symbol["icon-halo-width"]),"icon-halo-blur":new Nn(Hn.paint_symbol["icon-halo-blur"]),"icon-translate":new qn(Hn.paint_symbol["icon-translate"]),"icon-translate-anchor":new qn(Hn.paint_symbol["icon-translate-anchor"]),"text-opacity":new Nn(Hn.paint_symbol["text-opacity"]),"text-color":new Nn(Hn.paint_symbol["text-color"],{runtimeType:ni,getOverride:function(Ee){return Ee.textColor},hasOverride:function(Ee){return!!Ee.textColor}}),"text-halo-color":new Nn(Hn.paint_symbol["text-halo-color"]),"text-halo-width":new Nn(Hn.paint_symbol["text-halo-width"]),"text-halo-blur":new Nn(Hn.paint_symbol["text-halo-blur"]),"text-translate":new qn(Hn.paint_symbol["text-translate"]),"text-translate-anchor":new qn(Hn.paint_symbol["text-translate-anchor"])}),layout:Dc},Us=function(Ee){this.type=Ee.property.overrides?Ee.property.overrides.runtimeType:Jn,this.defaultValue=Ee};Us.prototype.evaluate=function(Ee){if(Ee.formattedSection){var ze=this.defaultValue.property.overrides;if(ze&&ze.hasOverride(Ee.formattedSection))return ze.getOverride(Ee.formattedSection)}return Ee.feature&&Ee.featureState?this.defaultValue.evaluate(Ee.feature,Ee.featureState):this.defaultValue.property.specification.default},Us.prototype.eachChild=function(Ee){this.defaultValue.isConstant()||Ee(this.defaultValue.value._styleExpression.expression)},Us.prototype.possibleOutputs=function(){return[void 0]},Us.prototype.serialize=function(){return null},mn("FormatSectionOverride",Us,{omit:["defaultValue"]});var zc=function(Ee){function e(ze){Ee.call(this,ze,Ic)}return Ee&&(e.__proto__=Ee),e.prototype=Object.create(Ee&&Ee.prototype),e.prototype.constructor=e,e.prototype.recalculate=function(ze){if(Ee.prototype.recalculate.call(this,ze),"auto"===this.layout.get("icon-rotation-alignment")&&("point"!==this.layout.get("symbol-placement")?this.layout._values["icon-rotation-alignment"]="map":this.layout._values["icon-rotation-alignment"]="viewport"),"auto"===this.layout.get("text-rotation-alignment")&&("point"!==this.layout.get("symbol-placement")?this.layout._values["text-rotation-alignment"]="map":this.layout._values["text-rotation-alignment"]="viewport"),"auto"===this.layout.get("text-pitch-alignment")&&(this.layout._values["text-pitch-alignment"]=this.layout.get("text-rotation-alignment")),"auto"===this.layout.get("icon-pitch-alignment")&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment")),"point"===this.layout.get("symbol-placement")){var Be=this.layout.get("text-writing-mode");if(Be){for(var Ue=[],We=0,$e=Be;We<$e.length;We+=1){var Qe=$e[We];Ue.indexOf(Qe)<0&&Ue.push(Qe)}this.layout._values["text-writing-mode"]=Ue}else this.layout._values["text-writing-mode"]=["horizontal"]}this._setPaintOverrides()},e.prototype.getValueAndResolveTokens=function(Ee,ze){var Be=this.layout.get(Ee).evaluate(ze,{}),Ue=this._unevaluatedLayout._values[Ee];return Ue.isDataDriven()||kr(Ue.value)?Be:function(Ee,ze){return ze.replace(/{([^{}]+)}/g,(function(ze,Be){return Be in Ee?String(Ee[Be]):""}))}(ze.properties,Be)},e.prototype.createBucket=function(Ee){return new Os(Ee)},e.prototype.queryRadius=function(){return 0},e.prototype.queryIntersectsFeature=function(){return!1},e.prototype._setPaintOverrides=function(){for(var Ee=0,ze=Ic.paint.overridableProperties;Ee=0;xt--){var kt=Qe[xt];if(!(ft.w>kt.w||ft.h>kt.h)){if(ft.x=kt.x,ft.y=kt.y,it=Math.max(it,ft.y+ft.h),rt=Math.max(rt,ft.x+ft.w),ft.w===kt.w&&ft.h===kt.h){var Lt=Qe.pop();xt>1,ct=-7,ft=Be?We-1:0,xt=Be?-1:1,kt=Ee[ze+ft];for(ft+=xt,$e=kt&(1<<-ct)-1,kt>>=-ct,ct+=rt;ct>0;$e=256*$e+Ee[ze+ft],ft+=xt,ct-=8);for(Qe=$e&(1<<-ct)-1,$e>>=-ct,ct+=Ue;ct>0;Qe=256*Qe+Ee[ze+ft],ft+=xt,ct-=8);if(0===$e)$e=1-at;else{if($e===it)return Qe?NaN:1/0*(kt?-1:1);Qe+=Math.pow(2,Ue),$e-=at}return(kt?-1:1)*Qe*Math.pow(2,$e-Ue)},nu=function(Ee,ze,Be,Ue,We,$e){var Qe,rt,it,at=8*$e-We-1,ct=(1<>1,xt=23===We?Math.pow(2,-24)-Math.pow(2,-77):0,kt=Ue?0:$e-1,Lt=Ue?1:-1,Ut=ze<0||0===ze&&1/ze<0?1:0;for(ze=Math.abs(ze),isNaN(ze)||ze===1/0?(rt=isNaN(ze)?1:0,Qe=ct):(Qe=Math.floor(Math.log(ze)/Math.LN2),ze*(it=Math.pow(2,-Qe))<1&&(Qe--,it*=2),(ze+=Qe+ft>=1?xt/it:xt*Math.pow(2,1-ft))*it>=2&&(Qe++,it/=2),Qe+ft>=ct?(rt=0,Qe=ct):Qe+ft>=1?(rt=(ze*it-1)*Math.pow(2,We),Qe+=ft):(rt=ze*Math.pow(2,ft-1)*Math.pow(2,We),Qe=0));We>=8;Ee[Be+kt]=255&rt,kt+=Lt,rt/=256,We-=8);for(Qe=Qe<0;Ee[Be+kt]=255&Qe,kt+=Lt,Qe/=256,at-=8);Ee[Be+kt-Lt]|=128*Ut},Yc=au;function au(Ee){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(Ee)?Ee:new Uint8Array(Ee||0),this.pos=0,this.type=0,this.length=this.buf.length}function ou(Ee){return Ee.type===au.Bytes?Ee.readVarint()+Ee.pos:Ee.pos+1}function su(Ee,ze,Be){return Be?4294967296*ze+(Ee>>>0):4294967296*(ze>>>0)+(Ee>>>0)}function uu(Ee,ze,Be){var Ue=ze<=16383?1:ze<=2097151?2:ze<=268435455?3:Math.floor(Math.log(ze)/(7*Math.LN2));Be.realloc(Ue);for(var We=Be.pos-1;We>=Ee;We--)Be.buf[We+Ue]=Be.buf[We]}function lu(Ee,ze){for(var Be=0;Be>>8,Ee[Be+2]=ze>>>16,Ee[Be+3]=ze>>>24}function bu(Ee,ze){return(Ee[ze]|Ee[ze+1]<<8|Ee[ze+2]<<16)+(Ee[ze+3]<<24)}function wu(Ee,ze,Be){1===Ee&&Be.readMessage(Au,ze)}function Au(Ee,ze,Be){if(3===Ee){var Ue=Be.readMessage(ku,{}),We=Ue.id,$e=Ue.bitmap,Qe=Ue.width,rt=Ue.height,it=Ue.left,at=Ue.top,ct=Ue.advance;ze.push({id:We,bitmap:new Fa({width:Qe+6,height:rt+6},$e),metrics:{width:Qe,height:rt,left:it,top:at,advance:ct}})}}function ku(Ee,ze,Be){1===Ee?ze.id=Be.readVarint():2===Ee?ze.bitmap=Be.readBytes():3===Ee?ze.width=Be.readVarint():4===Ee?ze.height=Be.readVarint():5===Ee?ze.left=Be.readSVarint():6===Ee?ze.top=Be.readSVarint():7===Ee&&(ze.advance=Be.readVarint())}au.Varint=0,au.Fixed64=1,au.Bytes=2,au.Fixed32=5,au.prototype={destroy:function(){this.buf=null},readFields:function(Ee,ze,Be){for(Be=Be||this.length;this.pos>3,$e=this.pos;this.type=7&Ue,Ee(We,ze,this),this.pos===$e&&this.skip(Ue)}return ze},readMessage:function(Ee,ze){return this.readFields(Ee,ze,this.readVarint()+this.pos)},readFixed32:function(){var Ee=gu(this.buf,this.pos);return this.pos+=4,Ee},readSFixed32:function(){var Ee=bu(this.buf,this.pos);return this.pos+=4,Ee},readFixed64:function(){var Ee=gu(this.buf,this.pos)+4294967296*gu(this.buf,this.pos+4);return this.pos+=8,Ee},readSFixed64:function(){var Ee=gu(this.buf,this.pos)+4294967296*bu(this.buf,this.pos+4);return this.pos+=8,Ee},readFloat:function(){var Ee=ru(this.buf,this.pos,!0,23,4);return this.pos+=4,Ee},readDouble:function(){var Ee=ru(this.buf,this.pos,!0,52,8);return this.pos+=8,Ee},readVarint:function(Ee){var ze,Be,Ue=this.buf;return ze=127&(Be=Ue[this.pos++]),Be<128?ze:(ze|=(127&(Be=Ue[this.pos++]))<<7,Be<128?ze:(ze|=(127&(Be=Ue[this.pos++]))<<14,Be<128?ze:(ze|=(127&(Be=Ue[this.pos++]))<<21,Be<128?ze:function(Ee,ze,Be){var Ue,We,$e=Be.buf;if(Ue=(112&(We=$e[Be.pos++]))>>4,We<128)return su(Ee,Ue,ze);if(Ue|=(127&(We=$e[Be.pos++]))<<3,We<128)return su(Ee,Ue,ze);if(Ue|=(127&(We=$e[Be.pos++]))<<10,We<128)return su(Ee,Ue,ze);if(Ue|=(127&(We=$e[Be.pos++]))<<17,We<128)return su(Ee,Ue,ze);if(Ue|=(127&(We=$e[Be.pos++]))<<24,We<128)return su(Ee,Ue,ze);if(Ue|=(1&(We=$e[Be.pos++]))<<31,We<128)return su(Ee,Ue,ze);throw new Error("Expected varint not more than 10 bytes")}(ze|=(15&(Be=Ue[this.pos]))<<28,Ee,this))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var Ee=this.readVarint();return Ee%2==1?(Ee+1)/-2:Ee/2},readBoolean:function(){return Boolean(this.readVarint())},readString:function(){var Ee=this.readVarint()+this.pos,ze=function(Ee,ze,Be){for(var Ue="",We=ze;We239?4:it>223?3:it>191?2:1;if(We+ct>Be)break;1===ct?it<128&&(at=it):2===ct?128==(192&($e=Ee[We+1]))&&(at=(31&it)<<6|63&$e)<=127&&(at=null):3===ct?($e=Ee[We+1],Qe=Ee[We+2],128==(192&$e)&&128==(192&Qe)&&((at=(15&it)<<12|(63&$e)<<6|63&Qe)<=2047||at>=55296&&at<=57343)&&(at=null)):4===ct&&($e=Ee[We+1],Qe=Ee[We+2],rt=Ee[We+3],128==(192&$e)&&128==(192&Qe)&&128==(192&rt)&&((at=(15&it)<<18|(63&$e)<<12|(63&Qe)<<6|63&rt)<=65535||at>=1114112)&&(at=null)),null===at?(at=65533,ct=1):at>65535&&(at-=65536,Ue+=String.fromCharCode(at>>>10&1023|55296),at=56320|1023&at),Ue+=String.fromCharCode(at),We+=ct}return Ue}(this.buf,this.pos,Ee);return this.pos=Ee,ze},readBytes:function(){var Ee=this.readVarint()+this.pos,ze=this.buf.subarray(this.pos,Ee);return this.pos=Ee,ze},readPackedVarint:function(Ee,ze){if(this.type!==au.Bytes)return Ee.push(this.readVarint(ze));var Be=ou(this);for(Ee=Ee||[];this.pos127;);else if(ze===au.Bytes)this.pos=this.readVarint()+this.pos;else if(ze===au.Fixed32)this.pos+=4;else{if(ze!==au.Fixed64)throw new Error("Unimplemented type: "+ze);this.pos+=8}},writeTag:function(Ee,ze){this.writeVarint(Ee<<3|ze)},realloc:function(Ee){for(var ze=this.length||16;ze268435455||Ee<0?function(Ee,ze){var Be,Ue;if(Ee>=0?(Be=Ee%4294967296|0,Ue=Ee/4294967296|0):(Ue=~(-Ee/4294967296),4294967295^(Be=~(-Ee%4294967296))?Be=Be+1|0:(Be=0,Ue=Ue+1|0)),Ee>=0x10000000000000000||Ee<-0x10000000000000000)throw new Error("Given varint doesn't fit into 10 bytes");ze.realloc(10),function(Ee,ze,Be){Be.buf[Be.pos++]=127&Ee|128,Ee>>>=7,Be.buf[Be.pos++]=127&Ee|128,Ee>>>=7,Be.buf[Be.pos++]=127&Ee|128,Ee>>>=7,Be.buf[Be.pos++]=127&Ee|128,Ee>>>=7,Be.buf[Be.pos]=127&Ee}(Be,0,ze),function(Ee,ze){var Be=(7&Ee)<<4;ze.buf[ze.pos++]|=Be|((Ee>>>=3)?128:0),Ee&&(ze.buf[ze.pos++]=127&Ee|((Ee>>>=7)?128:0),Ee&&(ze.buf[ze.pos++]=127&Ee|((Ee>>>=7)?128:0),Ee&&(ze.buf[ze.pos++]=127&Ee|((Ee>>>=7)?128:0),Ee&&(ze.buf[ze.pos++]=127&Ee|((Ee>>>=7)?128:0),Ee&&(ze.buf[ze.pos++]=127&Ee)))))}(Ue,ze)}(Ee,this):(this.realloc(4),this.buf[this.pos++]=127&Ee|(Ee>127?128:0),Ee<=127||(this.buf[this.pos++]=127&(Ee>>>=7)|(Ee>127?128:0),Ee<=127||(this.buf[this.pos++]=127&(Ee>>>=7)|(Ee>127?128:0),Ee<=127||(this.buf[this.pos++]=Ee>>>7&127))))},writeSVarint:function(Ee){this.writeVarint(Ee<0?2*-Ee-1:2*Ee)},writeBoolean:function(Ee){this.writeVarint(Boolean(Ee))},writeString:function(Ee){Ee=String(Ee),this.realloc(4*Ee.length),this.pos++;var ze=this.pos;this.pos=function(Ee,ze,Be){for(var Ue,We,$e=0;$e55295&&Ue<57344){if(!We){Ue>56319||$e+1===ze.length?(Ee[Be++]=239,Ee[Be++]=191,Ee[Be++]=189):We=Ue;continue}if(Ue<56320){Ee[Be++]=239,Ee[Be++]=191,Ee[Be++]=189,We=Ue;continue}Ue=We-55296<<10|Ue-56320|65536,We=null}else We&&(Ee[Be++]=239,Ee[Be++]=191,Ee[Be++]=189,We=null);Ue<128?Ee[Be++]=Ue:(Ue<2048?Ee[Be++]=Ue>>6|192:(Ue<65536?Ee[Be++]=Ue>>12|224:(Ee[Be++]=Ue>>18|240,Ee[Be++]=Ue>>12&63|128),Ee[Be++]=Ue>>6&63|128),Ee[Be++]=63&Ue|128)}return Be}(this.buf,Ee,this.pos);var Be=this.pos-ze;Be>=128&&uu(ze,Be,this),this.pos=ze-1,this.writeVarint(Be),this.pos+=Be},writeFloat:function(Ee){this.realloc(4),nu(this.buf,Ee,this.pos,!0,23,4),this.pos+=4},writeDouble:function(Ee){this.realloc(8),nu(this.buf,Ee,this.pos,!0,52,8),this.pos+=8},writeBytes:function(Ee){var ze=Ee.length;this.writeVarint(ze),this.realloc(ze);for(var Be=0;Be=128&&uu(Be,Ue,this),this.pos=Be-1,this.writeVarint(Ue),this.pos+=Ue},writeMessage:function(Ee,ze,Be){this.writeTag(Ee,au.Bytes),this.writeRawMessage(ze,Be)},writePackedVarint:function(Ee,ze){ze.length&&this.writeMessage(Ee,lu,ze)},writePackedSVarint:function(Ee,ze){ze.length&&this.writeMessage(Ee,pu,ze)},writePackedBoolean:function(Ee,ze){ze.length&&this.writeMessage(Ee,fu,ze)},writePackedFloat:function(Ee,ze){ze.length&&this.writeMessage(Ee,cu,ze)},writePackedDouble:function(Ee,ze){ze.length&&this.writeMessage(Ee,hu,ze)},writePackedFixed32:function(Ee,ze){ze.length&&this.writeMessage(Ee,yu,ze)},writePackedSFixed32:function(Ee,ze){ze.length&&this.writeMessage(Ee,du,ze)},writePackedFixed64:function(Ee,ze){ze.length&&this.writeMessage(Ee,mu,ze)},writePackedSFixed64:function(Ee,ze){ze.length&&this.writeMessage(Ee,vu,ze)},writeBytesField:function(Ee,ze){this.writeTag(Ee,au.Bytes),this.writeBytes(ze)},writeFixed32Field:function(Ee,ze){this.writeTag(Ee,au.Fixed32),this.writeFixed32(ze)},writeSFixed32Field:function(Ee,ze){this.writeTag(Ee,au.Fixed32),this.writeSFixed32(ze)},writeFixed64Field:function(Ee,ze){this.writeTag(Ee,au.Fixed64),this.writeFixed64(ze)},writeSFixed64Field:function(Ee,ze){this.writeTag(Ee,au.Fixed64),this.writeSFixed64(ze)},writeVarintField:function(Ee,ze){this.writeTag(Ee,au.Varint),this.writeVarint(ze)},writeSVarintField:function(Ee,ze){this.writeTag(Ee,au.Varint),this.writeSVarint(ze)},writeStringField:function(Ee,ze){this.writeTag(Ee,au.Bytes),this.writeString(ze)},writeFloatField:function(Ee,ze){this.writeTag(Ee,au.Fixed32),this.writeFloat(ze)},writeDoubleField:function(Ee,ze){this.writeTag(Ee,au.Fixed64),this.writeDouble(ze)},writeBooleanField:function(Ee,ze){this.writeVarintField(Ee,Boolean(ze))}};var zu=function(Ee){var ze=this;this._callback=Ee,this._triggered=!1,"undefined"!=typeof MessageChannel&&(this._channel=new MessageChannel,this._channel.port2.onmessage=function(){ze._triggered=!1,ze._callback()})};zu.prototype.trigger=function(){var Ee=this;this._triggered||(this._triggered=!0,this._channel?this._channel.port1.postMessage(!0):setTimeout((function(){Ee._triggered=!1,Ee._callback()}),0))};var Iu=function(Ee,ze,Be){this.target=Ee,this.parent=ze,this.mapId=Be,this.callbacks={},this.tasks={},this.taskQueue=[],this.cancelCallbacks={},m(["receive","process"],this),this.invoker=new zu(this.process),this.target.addEventListener("message",this.receive,!1)};function Cu(Ee,ze,Be){var Ue=2*Math.PI*6378137/256/Math.pow(2,Be);return[Ee*Ue-2*Math.PI*6378137/2,ze*Ue-2*Math.PI*6378137/2]}Iu.prototype.send=function(Ee,ze,Be,Ue){var We=this,$e=Math.round(1e18*Math.random()).toString(36).substring(0,10);Be&&(this.callbacks[$e]=Be);var Qe=[];return this.target.postMessage({id:$e,type:Ee,hasCallback:!!Be,targetMapId:Ue,sourceMapId:this.mapId,data:gn(ze,Qe)},Qe),{cancel:function(){Be&&delete We.callbacks[$e],We.target.postMessage({id:$e,type:"",targetMapId:Ue,sourceMapId:We.mapId})}}},Iu.prototype.receive=function(Ee){var ze=Ee.data,Be=ze.id;if(Be&&(!ze.targetMapId||this.mapId===ze.targetMapId))if(""===ze.type){delete this.tasks[Be];var Ue=this.cancelCallbacks[Be];delete this.cancelCallbacks[Be],Ue&&Ue()}else this.tasks[Be]=ze,this.taskQueue.push(Be),this.invoker.trigger()},Iu.prototype.process=function(){var Ee=this;if(this.taskQueue.length){var ze=this.taskQueue.shift(),Be=this.tasks[ze];if(delete this.tasks[ze],this.taskQueue.length&&this.invoker.trigger(),Be)if(""===Be.type){var Ue=this.callbacks[ze];delete this.callbacks[ze],Ue&&(Be.error?Ue(xn(Be.error)):Ue(null,xn(Be.data)))}else{var We=!1,$e=Be.hasCallback?function(Be,Ue){We=!0,delete Ee.cancelCallbacks[ze];var $e=[];Ee.target.postMessage({id:ze,type:"",sourceMapId:Ee.mapId,error:Be?gn(Be):null,data:gn(Ue,$e)},$e)}:function(Ee){We=!0},Qe=null,rt=xn(Be.data);if(this.parent[Be.type])Qe=this.parent[Be.type](Be.sourceMapId,rt,$e);else if(this.parent.getWorkerSource){var it=Be.type.split(".");Qe=this.parent.getWorkerSource(Be.sourceMapId,it[0],rt.source)[it[1]](rt,$e)}else $e(new Error("Could not find function "+Be.type));!We&&Qe&&Qe.cancel&&(this.cancelCallbacks[ze]=Qe.cancel)}}},Iu.prototype.remove=function(){this.target.removeEventListener("message",this.receive,!1)};var Bu=function(Ee,ze){Ee&&(ze?this.setSouthWest(Ee).setNorthEast(ze):4===Ee.length?this.setSouthWest([Ee[0],Ee[1]]).setNorthEast([Ee[2],Ee[3]]):this.setSouthWest(Ee[0]).setNorthEast(Ee[1]))};Bu.prototype.setNorthEast=function(Ee){return this._ne=Ee instanceof Eu?new Eu(Ee.lng,Ee.lat):Eu.convert(Ee),this},Bu.prototype.setSouthWest=function(Ee){return this._sw=Ee instanceof Eu?new Eu(Ee.lng,Ee.lat):Eu.convert(Ee),this},Bu.prototype.extend=function(Ee){var ze,Be,Ue=this._sw,We=this._ne;if(Ee instanceof Eu)ze=Ee,Be=Ee;else{if(!(Ee instanceof Bu))return Array.isArray(Ee)?Ee.every(Array.isArray)?this.extend(Bu.convert(Ee)):this.extend(Eu.convert(Ee)):this;if(ze=Ee._sw,Be=Ee._ne,!ze||!Be)return this}return Ue||We?(Ue.lng=Math.min(ze.lng,Ue.lng),Ue.lat=Math.min(ze.lat,Ue.lat),We.lng=Math.max(Be.lng,We.lng),We.lat=Math.max(Be.lat,We.lat)):(this._sw=new Eu(ze.lng,ze.lat),this._ne=new Eu(Be.lng,Be.lat)),this},Bu.prototype.getCenter=function(){return new Eu((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)},Bu.prototype.getSouthWest=function(){return this._sw},Bu.prototype.getNorthEast=function(){return this._ne},Bu.prototype.getNorthWest=function(){return new Eu(this.getWest(),this.getNorth())},Bu.prototype.getSouthEast=function(){return new Eu(this.getEast(),this.getSouth())},Bu.prototype.getWest=function(){return this._sw.lng},Bu.prototype.getSouth=function(){return this._sw.lat},Bu.prototype.getEast=function(){return this._ne.lng},Bu.prototype.getNorth=function(){return this._ne.lat},Bu.prototype.toArray=function(){return[this._sw.toArray(),this._ne.toArray()]},Bu.prototype.toString=function(){return"LngLatBounds("+this._sw.toString()+", "+this._ne.toString()+")"},Bu.prototype.isEmpty=function(){return!(this._sw&&this._ne)},Bu.convert=function(Ee){return!Ee||Ee instanceof Bu?Ee:new Bu(Ee)};var Eu=function(Ee,ze){if(isNaN(Ee)||isNaN(ze))throw new Error("Invalid LngLat object: ("+Ee+", "+ze+")");if(this.lng=+Ee,this.lat=+ze,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")};Eu.prototype.wrap=function(){return new Eu(p(this.lng,-180,180),this.lat)},Eu.prototype.toArray=function(){return[this.lng,this.lat]},Eu.prototype.toString=function(){return"LngLat("+this.lng+", "+this.lat+")"},Eu.prototype.toBounds=function(Ee){void 0===Ee&&(Ee=0);var ze=360*Ee/40075017,Be=ze/Math.cos(Math.PI/180*this.lat);return new Bu(new Eu(this.lng-Be,this.lat-ze),new Eu(this.lng+Be,this.lat+ze))},Eu.convert=function(Ee){if(Ee instanceof Eu)return Ee;if(Array.isArray(Ee)&&(2===Ee.length||3===Ee.length))return new Eu(Number(Ee[0]),Number(Ee[1]));if(!Array.isArray(Ee)&&"object"==typeof Ee&&null!==Ee)return new Eu(Number("lng"in Ee?Ee.lng:Ee.lon),Number(Ee.lat));throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: , lat: }, an object {lon: , lat: }, or an array of [, ]")};var Zc=2*Math.PI*6378137;function Pu(Ee){return Zc*Math.cos(Ee*Math.PI/180)}function Tu(Ee){return(180+Ee)/360}function Vu(Ee){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+Ee*Math.PI/360)))/360}function Fu(Ee,ze){return Ee/Pu(ze)}function Ou(Ee){var ze=180-360*Ee;return 360/Math.PI*Math.atan(Math.exp(ze*Math.PI/180))-90}var Lu=function(Ee,ze,Be){void 0===Be&&(Be=0),this.x=+Ee,this.y=+ze,this.z=+Be};Lu.fromLngLat=function(Ee,ze){void 0===ze&&(ze=0);var Be=Eu.convert(Ee);return new Lu(Tu(Be.lng),Vu(Be.lat),Fu(ze,Be.lat))},Lu.prototype.toLngLat=function(){return new Eu(360*this.x-180,Ou(this.y))},Lu.prototype.toAltitude=function(){return this.z*Pu(Ou(this.y))},Lu.prototype.meterInMercatorCoordinateUnits=function(){return 1/Zc*(Ee=Ou(this.y),1/Math.cos(Ee*Math.PI/180));var Ee};var Du=function(Ee,ze,Be){this.z=Ee,this.x=ze,this.y=Be,this.key=ju(0,Ee,ze,Be)};Du.prototype.equals=function(Ee){return this.z===Ee.z&&this.x===Ee.x&&this.y===Ee.y},Du.prototype.url=function(Ee,ze){var Be,Ue,We,$e,Qe,rt=(Be=this.x,Ue=this.y,We=this.z,$e=Cu(256*Be,256*(Ue=Math.pow(2,We)-Ue-1),We),Qe=Cu(256*(Be+1),256*(Ue+1),We),$e[0]+","+$e[1]+","+Qe[0]+","+Qe[1]),it=function(Ee,ze,Be){for(var Ue,We="",$e=Ee;$e>0;$e--)We+=(ze&(Ue=1<<$e-1)?1:0)+(Be&Ue?2:0);return We}(this.z,this.x,this.y);return Ee[(this.x+this.y)%Ee.length].replace("{prefix}",(this.x%16).toString(16)+(this.y%16).toString(16)).replace("{z}",String(this.z)).replace("{x}",String(this.x)).replace("{y}",String("tms"===ze?Math.pow(2,this.z)-this.y-1:this.y)).replace("{quadkey}",it).replace("{bbox-epsg-3857}",rt)},Du.prototype.getTilePoint=function(Ee){var ze=Math.pow(2,this.z);return new Be((Ee.x*ze-this.x)*Fl,(Ee.y*ze-this.y)*Fl)};var Uu=function(Ee,ze){this.wrap=Ee,this.canonical=ze,this.key=ju(Ee,ze.z,ze.x,ze.y)},Ru=function(Ee,ze,Be,Ue,We){this.overscaledZ=Ee,this.wrap=ze,this.canonical=new Du(Be,+Ue,+We),this.key=ju(ze,Ee,Ue,We)};function ju(Ee,ze,Be,Ue){(Ee*=2)<0&&(Ee=-1*Ee-1);var We=1<this.canonical.z?new Ru(Ee,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new Ru(Ee,this.wrap,Ee,this.canonical.x>>ze,this.canonical.y>>ze)},Ru.prototype.isChildOf=function(Ee){if(Ee.wrap!==this.wrap)return!1;var ze=this.canonical.z-Ee.canonical.z;return 0===Ee.overscaledZ||Ee.overscaledZ>ze&&Ee.canonical.y===this.canonical.y>>ze},Ru.prototype.children=function(Ee){if(this.overscaledZ>=Ee)return[new Ru(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];var ze=this.canonical.z+1,Be=2*this.canonical.x,Ue=2*this.canonical.y;return[new Ru(ze,this.wrap,ze,Be,Ue),new Ru(ze,this.wrap,ze,Be+1,Ue),new Ru(ze,this.wrap,ze,Be,Ue+1),new Ru(ze,this.wrap,ze,Be+1,Ue+1)]},Ru.prototype.isLessThan=function(Ee){return this.wrapEe.wrap)&&(this.overscaledZEe.overscaledZ)&&(this.canonical.xEe.canonical.x)&&this.canonical.y=this.dim+1||ze<-1||ze>=this.dim+1)throw new RangeError("out of range source coordinates for DEM data");return(ze+1)*this.stride+(Ee+1)},qu.prototype._unpackMapbox=function(Ee,ze,Be){return(256*Ee*256+256*ze+Be)/10-1e4},qu.prototype._unpackTerrarium=function(Ee,ze,Be){return 256*Ee+ze+Be/256-32768},qu.prototype.getPixels=function(){return new Oa({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))},qu.prototype.backfillBorder=function(Ee,ze,Be){if(this.dim!==Ee.dim)throw new Error("dem dimension mismatch");var Ue=ze*this.dim,We=ze*this.dim+this.dim,$e=Be*this.dim,Qe=Be*this.dim+this.dim;switch(ze){case-1:Ue=We-1;break;case 1:We=Ue+1}switch(Be){case-1:$e=Qe-1;break;case 1:Qe=$e+1}for(var rt=-ze*this.dim,it=-Be*this.dim,at=$e;at=0)null!==this.deletedStates[Ee][Ue]&&(this.deletedStates[Ee][Ue]=this.deletedStates[Ee][Ue]||{},this.deletedStates[Ee][Ue][Be]=null);else if(void 0!==ze&&ze>=0)if(this.stateChanges[Ee]&&this.stateChanges[Ee][Ue])for(Be in this.deletedStates[Ee][Ue]={},this.stateChanges[Ee][Ue])this.deletedStates[Ee][Ue][Be]=null;else this.deletedStates[Ee][Ue]=null;else this.deletedStates[Ee]=null}},Gu.prototype.getState=function(Ee,ze){var Be=String(ze),Ue=this.state[Ee]||{},We=this.stateChanges[Ee]||{},$e=c({},Ue[Be],We[Be]);if(null===this.deletedStates[Ee])return{};if(this.deletedStates[Ee]){var Qe=this.deletedStates[Ee][ze];if(null===Qe)return{};for(var rt in Qe)delete $e[rt]}return $e},Gu.prototype.initializeTileState=function(Ee,ze){Ee.setFeatureState(this.state,ze)},Gu.prototype.coalesceChanges=function(Ee,ze){var Be={};for(var Ue in this.stateChanges){this.state[Ue]=this.state[Ue]||{};var We={};for(var $e in this.stateChanges[Ue])this.state[Ue][$e]||(this.state[Ue][$e]={}),c(this.state[Ue][$e],this.stateChanges[Ue][$e]),We[$e]=this.state[Ue][$e];Be[Ue]=We}for(var Qe in this.deletedStates){this.state[Qe]=this.state[Qe]||{};var rt={};if(null===this.deletedStates[Qe])for(var it in this.state[Qe])rt[it]={},this.state[Qe][it]={};else for(var at in this.deletedStates[Qe]){if(null===this.deletedStates[Qe][at])this.state[Qe][at]={};else for(var ct=0,ft=Object.keys(this.deletedStates[Qe][at]);ct=0&&ct[3]>=0&&rt.insert(Qe,ct[0],ct[1],ct[2],ct[3])}},Ju.prototype.loadVTLayers=function(){return this.vtLayers||(this.vtLayers=new oc.VectorTile(new Yc(this.rawTileData)).layers,this.sourceLayerCoder=new Ku(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"])),this.vtLayers},Ju.prototype.query=function(Ee,ze,Ue){var We=this;this.loadVTLayers();for(var $e=Ee.params||{},Qe=Fl/Ee.tileSize/Ee.scale,rt=Dr($e.filter),it=Ee.queryGeometry,at=Ee.queryPadding*Qe,ct=Hu(it),ft=this.grid.query(ct.minX-at,ct.minY-at,ct.maxX+at,ct.maxY+at),xt=Hu(Ee.cameraQueryGeometry),kt=0,Lt=this.grid3D.query(xt.minX-at,xt.minY-at,xt.maxX+at,xt.maxY+at,(function(ze,Ue,We,$e){return function(Ee,ze,Ue,We,$e){for(var Qe=0,rt=Ee;Qe=it.x&&$e>=it.y)return!0}var at=[new Be(ze,Ue),new Be(ze,$e),new Be(We,$e),new Be(We,Ue)];if(Ee.length>2)for(var ct=0,ft=at;ct=0)return!0;return!1}($e,it)){var at=this.sourceLayerCoder.decode(Be),ct=this.vtLayers[at].feature(Ue);if(We(new Tn(this.tileID.overscaledZ),ct))for(var ft=0;ft-Be/2;){if(--Qe<0)return!1;rt-=Ee[Qe].dist($e),$e=Ee[Qe]}rt+=Ee[Qe].dist(Ee[Qe+1]),Qe++;for(var it=[],at=0;rtUe;)at-=it.shift().angleDelta;if(at>We)return!1;Qe++,rt+=ft.dist(xt)}return!0}function Qu(Ee){for(var ze=0,Be=0;Beat){var Lt=(at-it)/kt,Ut=be(ft.x,xt.x,Lt),er=be(ft.y,xt.y,Lt),tr=new Cc(Ut,er,xt.angleTo(ft),ct);return tr._round(),!Qe||Wu(Ee,tr,rt,Qe,ze)?tr:void 0}it+=kt}}function nl(Ee,ze,Be,Ue,We,$e,Qe,rt,it){var at=tl(Ue,$e,Qe),ct=el(Ue,We),ft=ct*Qe,xt=0===Ee[0].x||Ee[0].x===it||0===Ee[0].y||Ee[0].y===it;return ze-ft=0&&Lr=0&&Qr=0&&xt+at<=ct){var on=new Cc(Lr,Qr,rr,Lt);on._round(),Ue&&!Wu(Ee,on,$e,Ue,We)||kt.push(on)}}ft+=tr}return rt||kt.length||Qe||(kt=t(Ee,ft/2,Be,Ue,We,$e,Qe,!0,it)),kt}(Ee,xt?ze/2*rt%ze:(ct/2+2*$e)*Qe*rt%ze,ze,at,Be,ft,xt,!1,it)}$u.prototype.registerFadeDuration=function(Ee){var ze=Ee+this.timeAdded;ze>rt.z,at=new Be(rt.x*it,rt.y*it),ct=new Be(at.x+it,at.y+it),ft=this.segments.prepareSegment(4,Ue,We);Ue.emplaceBack(at.x,at.y,at.x,at.y),Ue.emplaceBack(ct.x,at.y,ct.x,at.y),Ue.emplaceBack(at.x,ct.y,at.x,ct.y),Ue.emplaceBack(ct.x,ct.y,ct.x,ct.y);var xt=ft.vertexLength;We.emplaceBack(xt,xt+1,xt+2),We.emplaceBack(xt+1,xt+2,xt+3),ft.vertexLength+=4,ft.primitiveLength+=2}this.maskedBoundsBuffer=ze.createVertexBuffer(Ue,Xc.members),this.maskedIndexBuffer=ze.createIndexBuffer(We)}},$u.prototype.hasData=function(){return"loaded"===this.state||"reloading"===this.state||"expired"===this.state},$u.prototype.patternsLoaded=function(){return this.imageAtlas&&!!Object.keys(this.imageAtlas.patternPositions).length},$u.prototype.setExpiryData=function(Ee){var ze=this.expirationTime;if(Ee.cacheControl){var Be=S(Ee.cacheControl);Be["max-age"]&&(this.expirationTime=Date.now()+1e3*Be["max-age"])}else Ee.expires&&(this.expirationTime=new Date(Ee.expires).getTime());if(this.expirationTime){var Ue=Date.now(),We=!1;if(this.expirationTime>Ue)We=!1;else if(ze)if(this.expirationTime0&&(tr=Math.max(10*it,tr),this._addLineCollisionCircles(Ee,ze,Ue,Ue.segment,rr,tr,We,$e,Qe,ft))}else{if(xt){var ar=new Be(Ut,kt),Lr=new Be(er,kt),Qr=new Be(Ut,Lt),on=new Be(er,Lt),sn=xt*Math.PI/180;ar._rotate(sn),Lr._rotate(sn),Qr._rotate(sn),on._rotate(sn),Ut=Math.min(ar.x,Lr.x,Qr.x,on.x),er=Math.max(ar.x,Lr.x,Qr.x,on.x),kt=Math.min(ar.y,Lr.y,Qr.y,on.y),Lt=Math.max(ar.y,Lr.y,Qr.y,on.y)}Ee.emplaceBack(Ue.x,Ue.y,Ut,kt,er,Lt,We,$e,Qe,0,0)}this.boxEndIndex=Ee.length};il.prototype._addLineCollisionCircles=function(Ee,ze,Be,Ue,We,$e,Qe,rt,it,at){var ct=$e/2,ft=Math.floor(We/ct)||1,xt=1+.4*Math.log(at)/Math.LN2,kt=Math.floor(ft*xt/2),Lt=-$e/2,Ut=Be,er=Ue+1,tr=Lt,rr=-We/2,ar=rr-We/4;do{if(--er<0){if(tr>rr)return;er=0;break}tr-=ze[er].dist(Ut),Ut=ze[er]}while(tr>ar);for(var Lr=ze[er].dist(ze[er+1]),Qr=-kt;QrWe&&(sn+=on-We),!(sn=ze.length)return;Lr=ze[er].dist(ze[er+1])}var cn=sn-tr,un=ze[er],hn=ze[er+1].sub(un)._unit()._mult(cn)._add(un)._round(),dn=Math.abs(sn-Lt)0)for(var Be=(this.length>>1)-1;Be>=0;Be--)this._down(Be)};function ol(Ee,ze){return Eeze?1:0}function sl(Ee,ze,Ue){void 0===ze&&(ze=1),void 0===Ue&&(Ue=!1);for(var We=1/0,$e=1/0,Qe=-1/0,rt=-1/0,it=Ee[0],at=0;atQe)&&(Qe=ct.x),(!at||ct.y>rt)&&(rt=ct.y)}var ft=Qe-We,xt=rt-$e,kt=Math.min(ft,xt),Lt=kt/2,Ut=new al([],ul);if(0===kt)return new Be(We,$e);for(var er=We;errr.d||!rr.d)&&(rr=Lr,Ue&&console.log("found best %d after %d probes",Math.round(1e4*Lr.d)/1e4,ar)),Lr.max-rr.d<=ze||(Lt=Lr.h/2,Ut.push(new ll(Lr.p.x-Lt,Lr.p.y-Lt,Lt,Ee)),Ut.push(new ll(Lr.p.x+Lt,Lr.p.y-Lt,Lt,Ee)),Ut.push(new ll(Lr.p.x-Lt,Lr.p.y+Lt,Lt,Ee)),Ut.push(new ll(Lr.p.x+Lt,Lr.p.y+Lt,Lt,Ee)),ar+=4)}return Ue&&(console.log("num probes: "+ar),console.log("best distance: "+rr.d)),rr.p}function ul(Ee,ze){return ze.max-Ee.max}function ll(Ee,ze,Ue,We){this.p=new Be(Ee,ze),this.h=Ue,this.d=function(Ee,ze){for(var Be=!1,Ue=1/0,We=0;WeEe.y!=ct.y>Ee.y&&Ee.x<(ct.x-at.x)*(Ee.y-at.y)/(ct.y-at.y)+at.x&&(Be=!Be),Ue=Math.min(Ue,ma(Ee,at,ct))}return(Be?1:-1)*Math.sqrt(Ue)}(this.p,We),this.max=this.d+this.h*Math.SQRT2}al.prototype.push=function(Ee){this.data.push(Ee),this.length++,this._up(this.length-1)},al.prototype.pop=function(){if(0!==this.length){var Ee=this.data[0],ze=this.data.pop();return this.length--,this.length>0&&(this.data[0]=ze,this._down(0)),Ee}},al.prototype.peek=function(){return this.data[0]},al.prototype._up=function(Ee){for(var ze=this.data,Be=this.compare,Ue=ze[Ee];Ee>0;){var We=Ee-1>>1,$e=ze[We];if(Be(Ue,$e)>=0)break;ze[Ee]=$e,Ee=We}ze[Ee]=Ue},al.prototype._down=function(Ee){for(var ze=this.data,Be=this.compare,Ue=this.length>>1,We=ze[Ee];Ee=0)break;ze[Ee]=Qe,Ee=$e}ze[Ee]=We};var Kc=e((function(Ee){Ee.exports=function(Ee,ze){var Be,Ue,We,$e,Qe,rt,it,at;for(Be=3&Ee.length,Ue=Ee.length-Be,We=ze,Qe=3432918353,rt=461845907,at=0;at>>16)*Qe&65535)<<16)&4294967295)<<15|it>>>17))*rt+(((it>>>16)*rt&65535)<<16)&4294967295)<<13|We>>>19))+((5*(We>>>16)&65535)<<16)&4294967295))+((58964+($e>>>16)&65535)<<16);switch(it=0,Be){case 3:it^=(255&Ee.charCodeAt(at+2))<<16;case 2:it^=(255&Ee.charCodeAt(at+1))<<8;case 1:We^=it=(65535&(it=(it=(65535&(it^=255&Ee.charCodeAt(at)))*Qe+(((it>>>16)*Qe&65535)<<16)&4294967295)<<15|it>>>17))*rt+(((it>>>16)*rt&65535)<<16)&4294967295}return We^=Ee.length,We=2246822507*(65535&(We^=We>>>16))+((2246822507*(We>>>16)&65535)<<16)&4294967295,We=3266489909*(65535&(We^=We>>>13))+((3266489909*(We>>>16)&65535)<<16)&4294967295,(We^=We>>>16)>>>0}})),Jc=e((function(Ee){Ee.exports=function(Ee,ze){for(var Be,Ue=Ee.length,We=ze^Ue,$e=0;Ue>=4;)Be=1540483477*(65535&(Be=255&Ee.charCodeAt($e)|(255&Ee.charCodeAt(++$e))<<8|(255&Ee.charCodeAt(++$e))<<16|(255&Ee.charCodeAt(++$e))<<24))+((1540483477*(Be>>>16)&65535)<<16),We=1540483477*(65535&We)+((1540483477*(We>>>16)&65535)<<16)^(Be=1540483477*(65535&(Be^=Be>>>24))+((1540483477*(Be>>>16)&65535)<<16)),Ue-=4,++$e;switch(Ue){case 3:We^=(255&Ee.charCodeAt($e+2))<<16;case 2:We^=(255&Ee.charCodeAt($e+1))<<8;case 1:We=1540483477*(65535&(We^=255&Ee.charCodeAt($e)))+((1540483477*(We>>>16)&65535)<<16)}return We=1540483477*(65535&(We^=We>>>13))+((1540483477*(We>>>16)&65535)<<16),(We^=We>>>15)>>>0}})),Qc=Kc,tu=Kc,iu=Jc;function ml(Ee,ze){var Be=0,Ue=0,We=ze/Math.sqrt(2);switch(Ee){case"top-right":case"top-left":Ue=We-7;break;case"bottom-right":case"bottom-left":Ue=7-We;break;case"bottom":Ue=7-ze;break;case"top":Ue=ze-7}switch(Ee){case"top-right":case"bottom-right":Be=-We;break;case"top-left":case"bottom-left":Be=We;break;case"left":Be=ze;break;case"right":Be=-ze}return[Be,Ue]}function vl(Ee){switch(Ee){case"right":case"top-right":case"bottom-right":return"right";case"left":case"top-left":case"bottom-left":return"left"}return"center"}Qc.murmur3=tu,Qc.murmur2=iu;var _u=65535;function xl(Ee,ze,Ue,We,$e,Qe,rt,it,at,ct,ft,xt,kt){var Lt=function(Ee,ze,Ue,We,$e,Qe,rt,it){for(var at=We.layout.get("text-rotate").evaluate(Qe,{})*Math.PI/180,ct=ze.positionedGlyphs,ft=[],xt=0;xt_u&&w(Ee.layerIds[0]+': Value for "text-size" is >= 256. Reduce your "text-size".'):"composite"===Ut.kind&&((er=[Ec*kt.compositeTextSizes[0].evaluate(Qe,{}),Ec*kt.compositeTextSizes[1].evaluate(Qe,{})])[0]>_u||er[1]>_u)&&w(Ee.layerIds[0]+': Value for "text-size" is >= 256. Reduce your "text-size".'),Ee.addSymbols(Ee.text,Lt,er,rt,$e,Qe,at,ze,it.lineStartIndex,it.lineLength);for(var tr=0,rr=ct;tr=0;Qe--)if(Ue.dist($e[Qe])yn&&(Ee.getActor().send("enforceCacheSizeLimit",vn),_n=0)},Ee.clamp=l,Ee.clearTileCache=function(Ee){var ze=self.caches.delete(dn);Ee&&ze.catch(Ee).then((function(){return Ee()}))},Ee.clone=function(Ee){var ze=new ql(16);return ze[0]=Ee[0],ze[1]=Ee[1],ze[2]=Ee[2],ze[3]=Ee[3],ze[4]=Ee[4],ze[5]=Ee[5],ze[6]=Ee[6],ze[7]=Ee[7],ze[8]=Ee[8],ze[9]=Ee[9],ze[10]=Ee[10],ze[11]=Ee[11],ze[12]=Ee[12],ze[13]=Ee[13],ze[14]=Ee[14],ze[15]=Ee[15],ze},Ee.clone$1=b,Ee.config=Lt,Ee.create=function(){var Ee=new ql(16);return ql!=Float32Array&&(Ee[1]=0,Ee[2]=0,Ee[3]=0,Ee[4]=0,Ee[6]=0,Ee[7]=0,Ee[8]=0,Ee[9]=0,Ee[11]=0,Ee[12]=0,Ee[13]=0,Ee[14]=0),Ee[0]=1,Ee[5]=1,Ee[10]=1,Ee[15]=1,Ee},Ee.create$1=function(){var Ee=new ql(9);return ql!=Float32Array&&(Ee[1]=0,Ee[2]=0,Ee[3]=0,Ee[5]=0,Ee[6]=0,Ee[7]=0),Ee[0]=1,Ee[4]=1,Ee[8]=1,Ee},Ee.create$2=function(){var Ee=new ql(4);return ql!=Float32Array&&(Ee[1]=0,Ee[2]=0),Ee[0]=1,Ee[3]=1,Ee},Ee.createCommonjsModule=e,Ee.createExpression=Sr,Ee.createLayout=Wn,Ee.createStyleLayer=function(Ee){return"custom"===Ee.type?new jc(Ee):new Vc[Ee.type](Ee)},Ee.deepEqual=o,Ee.ease=Ue,Ee.emitValidationErrors=pn,Ee.endsWith=v,Ee.enforceCacheSizeLimit=function(Ee){self.caches&&self.caches.open(dn).then((function(ze){ze.keys().then((function(Be){for(var Ue=0;Ue=Fl||at.y<0||at.y>=Fl||function(Ee,ze,Ue,We,$e,Qe,rt,it,at,ct,ft,xt,kt,Lt,Ut,er,tr,rr,ar,Lr,Qr){var on,sn,cn,un=Ee.addToLineVertexArray(ze,Ue),hn=0,dn=0,vn=0,yn={},_n=Qc(""),Mn=24*(Qe.layout.get("text-radial-offset").evaluate(ar,{})||0);if(Ee.allowVerticalPlacement&&We.vertical){var Cn=Qe.layout.get("text-rotate").evaluate(ar,{})+90,En=We.vertical;cn=new il(rt,Ue,ze,it,at,ct,En,ft,xt,kt,Ee.overscaling,Cn)}for(var Pn in We.horizontal){var In=We.horizontal[Pn];if(!on){_n=Qc(In.text);var Bn=Qe.layout.get("text-rotate").evaluate(ar,{});on=new il(rt,Ue,ze,it,at,ct,In,ft,xt,kt,Ee.overscaling,Bn)}var Hn=1===In.lineCount;if(dn+=xl(Ee,ze,In,Qe,kt,ar,Lt,un,We.vertical?Ac.horizontal:Ac.horizontalOnly,Hn?Object.keys(We.horizontal):[Pn],yn,Lr,Qr),Hn)break}We.vertical&&(vn+=xl(Ee,ze,We.vertical,Qe,kt,ar,Lt,un,Ac.vertical,["vertical"],yn,Lr,Qr));var Kn=on?on.boxStartIndex:Ee.collisionBoxArray.length,Jn=on?on.boxEndIndex:Ee.collisionBoxArray.length,ei=cn?cn.boxStartIndex:Ee.collisionBoxArray.length,ti=cn?cn.boxEndIndex:Ee.collisionBoxArray.length;if($e){var ri=function(Ee,ze,Ue,We,$e,Qe){var rt,it,at,ct,ft=ze.image,xt=Ue.layout,kt=ze.top-1/ft.pixelRatio,Lt=ze.left-1/ft.pixelRatio,Ut=ze.bottom+1/ft.pixelRatio,er=ze.right+1/ft.pixelRatio;if("none"!==xt.get("icon-text-fit")&&$e){var tr=er-Lt,rr=Ut-kt,ar=xt.get("text-size").evaluate(Qe,{})/24,Lr=$e.left*ar,Qr=$e.right*ar,on=$e.top*ar,sn=Qr-Lr,cn=$e.bottom*ar-on,un=xt.get("icon-text-fit-padding")[0],hn=xt.get("icon-text-fit-padding")[1],dn=xt.get("icon-text-fit-padding")[2],vn=xt.get("icon-text-fit-padding")[3],yn="width"===xt.get("icon-text-fit")?.5*(cn-rr):0,_n="height"===xt.get("icon-text-fit")?.5*(sn-tr):0,Mn="width"===xt.get("icon-text-fit")||"both"===xt.get("icon-text-fit")?sn:tr,Cn="height"===xt.get("icon-text-fit")||"both"===xt.get("icon-text-fit")?cn:rr;rt=new Be(Lr+_n-vn,on+yn-un),it=new Be(Lr+_n+hn+Mn,on+yn-un),at=new Be(Lr+_n+hn+Mn,on+yn+dn+Cn),ct=new Be(Lr+_n-vn,on+yn+dn+Cn)}else rt=new Be(Lt,kt),it=new Be(er,kt),at=new Be(er,Ut),ct=new Be(Lt,Ut);var En=Ue.layout.get("icon-rotate").evaluate(Qe,{})*Math.PI/180;if(En){var Pn=Math.sin(En),In=Math.cos(En),Bn=[In,-Pn,Pn,In];rt._matMult(Bn),it._matMult(Bn),ct._matMult(Bn),at._matMult(Bn)}return[{tl:rt,tr:it,bl:ct,br:at,tex:ft.paddedRect,writingMode:void 0,glyphOffset:[0,0],sectionIndex:0}]}(0,$e,Qe,0,bl(We.horizontal),ar),ni=Qe.layout.get("icon-rotate").evaluate(ar,{});sn=new il(rt,Ue,ze,it,at,ct,$e,Ut,er,!1,Ee.overscaling,ni),hn=4*ri.length;var ii=Ee.iconSizeData,ai=null;"source"===ii.kind?(ai=[Ec*Qe.layout.get("icon-size").evaluate(ar,{})])[0]>_u&&w(Ee.layerIds[0]+': Value for "icon-size" is >= 256. Reduce your "icon-size".'):"composite"===ii.kind&&((ai=[Ec*Qr.compositeIconSizes[0].evaluate(ar,{}),Ec*Qr.compositeIconSizes[1].evaluate(ar,{})])[0]>_u||ai[1]>_u)&&w(Ee.layerIds[0]+': Value for "icon-size" is >= 256. Reduce your "icon-size".'),Ee.addSymbols(Ee.icon,ri,ai,rr,tr,ar,!1,ze,un.lineStartIndex,un.lineLength)}var oi=sn?sn.boxStartIndex:Ee.collisionBoxArray.length,si=sn?sn.boxEndIndex:Ee.collisionBoxArray.length;Ee.glyphOffsetArray.length>=Os.MAX_GLYPHS&&w("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),Ee.symbolInstances.emplaceBack(ze.x,ze.y,yn.right>=0?yn.right:-1,yn.center>=0?yn.center:-1,yn.left>=0?yn.left:-1,yn.vertical||-1,_n,Kn,Jn,ei,ti,oi,si,it,dn,vn,hn,0,ft,Mn)}(Ee,at,it,Ue,We,Ee.layers[0],Ee.collisionBoxArray,ze.index,ze.sourceLayerIndex,Ee.index,Ut,ar,on,rt,tr,Lr,sn,xt,ze,$e,Qe)};if("line"===cn)for(var hn=0,dn=function(Ee,ze,Ue,We,$e){for(var Qe=[],rt=0;rt=We&&xt.x>=We||(ft.x>=We?ft=new Be(We,ft.y+(xt.y-ft.y)*((We-ft.x)/(xt.x-ft.x)))._round():xt.x>=We&&(xt=new Be(We,ft.y+(xt.y-ft.y)*((We-ft.x)/(xt.x-ft.x)))._round()),ft.y>=$e&&xt.y>=$e||(ft.y>=$e?ft=new Be(ft.x+(xt.x-ft.x)*(($e-ft.y)/(xt.y-ft.y)),$e)._round():xt.y>=$e&&(xt=new Be(ft.x+(xt.x-ft.x)*(($e-ft.y)/(xt.y-ft.y)),$e)._round()),at&&ft.equals(at[at.length-1])||(at=[ft],Qe.push(at)),at.push(xt)))))}return Qe}(ze.geometry,0,0,Fl,Fl);hn1){var In=rl(Pn,Qr,Ue.vertical||kt,We,24,er);In&&I(Pn,In)}}else if("Polygon"===ze.type)for(var Bn=0,Hn=_o(ze.geometry,0);Bn=cn.maxzoom||"none"!==cn.visibility&&(a(sn,this.zoom),(xt[cn.id]=cn.createBucket({index:rt.bucketLayerIDs.length,layers:sn,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:tr,sourceID:this.source})).populate(rr,kt),rt.bucketLayerIDs.push(sn.map((function(Ee){return Ee.id}))))}}}var un=Ee.mapObject(kt.glyphDependencies,(function(Ee){return Object.keys(Ee).map(Number)}));Object.keys(un).length?Ue.send("getGlyphs",{uid:this.uid,stacks:un},(function(Ee,ze){it||(it=Ee,at=ze,D.call($e))})):at={};var hn=Object.keys(kt.iconDependencies);hn.length?Ue.send("getImages",{icons:hn},(function(Ee,ze){it||(it=Ee,ct=ze,D.call($e))})):ct={};var dn=Object.keys(kt.patternDependencies);function D(){if(it)return We(it);if(at&&ct&&ft){var ze=new i(at),Be=new Ee.ImageAtlas(ct,ft);for(var Ue in xt){var $e=xt[Ue];$e instanceof Ee.SymbolBucket?(a($e.layers,this.zoom),Ee.performSymbolLayout($e,at,ze.positions,ct,Be.iconPositions,this.showCollisionBoxes)):$e.hasPattern&&($e instanceof Ee.LineBucket||$e instanceof Ee.FillBucket||$e instanceof Ee.FillExtrusionBucket)&&(a($e.layers,this.zoom),$e.addFeatures(kt,Be.patternPositions))}this.status="done",We(null,{buckets:Ee.values(xt).filter((function(Ee){return!Ee.isEmpty()})),featureIndex:rt,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:ze.image,imageAtlas:Be,glyphMap:this.returnDependencies?at:null,iconMap:this.returnDependencies?ct:null,glyphPositions:this.returnDependencies?ze.positions:null})}}dn.length?Ue.send("getImages",{icons:dn},(function(Ee,ze){it||(it=Ee,ft=ze,D.call($e))})):ft={},D.call(this)};var ze="undefined"!=typeof performance,Be={getEntriesByName:function(Ee){return!!(ze&&performance&&performance.getEntriesByName)&&performance.getEntriesByName(Ee)},mark:function(Ee){return!!(ze&&performance&&performance.mark)&&performance.mark(Ee)},measure:function(Ee,Be,Ue){return!!(ze&&performance&&performance.measure)&&performance.measure(Ee,Be,Ue)},clearMarks:function(Ee){return!!(ze&&performance&&performance.clearMarks)&&performance.clearMarks(Ee)},clearMeasures:function(Ee){return!!(ze&&performance&&performance.clearMeasures)&&performance.clearMeasures(Ee)}},l=function(Ee){this._marks={start:[Ee.url,"start"].join("#"),end:[Ee.url,"end"].join("#"),measure:Ee.url.toString()},Be.mark(this._marks.start)};function h(ze,Be){var Ue=Ee.getArrayBuffer(ze.request,(function(ze,Ue,We,$e){ze?Be(ze):Ue&&Be(null,{vectorTile:new Ee.vectorTile.VectorTile(new Ee.pbf(Ue)),rawData:Ue,cacheControl:We,expires:$e})}));return function(){Ue.cancel(),Be()}}l.prototype.finish=function(){Be.mark(this._marks.end);var Ee=Be.getEntriesByName(this._marks.measure);return 0===Ee.length&&(Be.measure(this._marks.measure,this._marks.start,this._marks.end),Ee=Be.getEntriesByName(this._marks.measure),Be.clearMarks(this._marks.start),Be.clearMarks(this._marks.end),Be.clearMeasures(this._marks.measure)),Ee},Be.Performance=l;var c=function(Ee,ze,Be){this.actor=Ee,this.layerIndex=ze,this.loadVectorData=Be||h,this.loading={},this.loaded={}};c.prototype.loadTile=function(ze,Ue){var We=this,$e=ze.uid;this.loading||(this.loading={});var Qe=!!(ze&&ze.request&&ze.request.collectResourceTiming)&&new Be.Performance(ze.request),rt=this.loading[$e]=new n(ze);rt.abort=this.loadVectorData(ze,(function(ze,Be){if(delete We.loading[$e],ze||!Be)return rt.status="done",We.loaded[$e]=rt,Ue(ze);var it=Be.rawData,at={};Be.expires&&(at.expires=Be.expires),Be.cacheControl&&(at.cacheControl=Be.cacheControl);var ct={};if(Qe){var ft=Qe.finish();ft&&(ct.resourceTiming=JSON.parse(JSON.stringify(ft)))}rt.vectorTile=Be.vectorTile,rt.parse(Be.vectorTile,We.layerIndex,We.actor,(function(ze,Be){if(ze||!Be)return Ue(ze);Ue(null,Ee.extend({rawTileData:it.slice(0)},Be,at,ct))})),We.loaded=We.loaded||{},We.loaded[$e]=rt}))},c.prototype.reloadTile=function(Ee,ze){var Be=this.loaded,Ue=Ee.uid,We=this;if(Be&&Be[Ue]){var $e=Be[Ue];$e.showCollisionBoxes=Ee.showCollisionBoxes;var a=function(Ee,Be){var Ue=$e.reloadCallback;Ue&&(delete $e.reloadCallback,$e.parse($e.vectorTile,We.layerIndex,We.actor,Ue)),ze(Ee,Be)};"parsing"===$e.status?$e.reloadCallback=a:"done"===$e.status&&($e.vectorTile?$e.parse($e.vectorTile,this.layerIndex,this.actor,a):a())}},c.prototype.abortTile=function(Ee,ze){var Be=this.loading,Ue=Ee.uid;Be&&Be[Ue]&&Be[Ue].abort&&(Be[Ue].abort(),delete Be[Ue]),ze()},c.prototype.removeTile=function(Ee,ze){var Be=this.loaded,Ue=Ee.uid;Be&&Be[Ue]&&delete Be[Ue],ze()};var p=function(){this.loaded={}};p.prototype.loadTile=function(ze,Be){var Ue=ze.uid,We=ze.encoding,$e=ze.rawImageData,Qe=new Ee.DEMData(Ue,$e,We);this.loaded=this.loaded||{},this.loaded[Ue]=Qe,Be(null,Qe)},p.prototype.removeTile=function(Ee){var ze=this.loaded,Be=Ee.uid;ze&&ze[Be]&&delete ze[Be]};var Ue=6378137;function d(Ee){var ze=0;if(Ee&&Ee.length>0){ze+=Math.abs(g(Ee[0]));for(var Be=1;Be2){for(rt=0;rt=0}(Ee)===ze?Ee:Ee.reverse()}var $e=Ee.vectorTile.VectorTileFeature.prototype.toGeoJSON,k=function(ze){this._feature=ze,this.extent=Ee.EXTENT,this.type=ze.type,this.properties=ze.tags,"id"in ze&&!isNaN(ze.id)&&(this.id=parseInt(ze.id,10))};k.prototype.loadGeometry=function(){if(1===this._feature.type){for(var ze=[],Be=0,Ue=this._feature.geometry;Be>31}function J(Ee,ze){for(var Be=Ee.loadGeometry(),Ue=Ee.type,We=0,$e=0,Qe=Be.length,rt=0;rt>1;!function e(Ee,ze,Be,Ue,We,$e){for(;We>Ue;){if(We-Ue>600){var Qe=We-Ue+1,rt=Be-Ue+1,it=Math.log(Qe),at=.5*Math.exp(2*it/3),ct=.5*Math.sqrt(it*at*(Qe-at)/Qe)*(rt-Qe/2<0?-1:1);e(Ee,ze,Be,Math.max(Ue,Math.floor(Be-rt*at/Qe+ct)),Math.min(We,Math.floor(Be+(Qe-rt)*at/Qe+ct)),$e)}var ft=ze[2*Be+$e],xt=Ue,kt=We;for(j(Ee,ze,Ue,Be),ze[2*We+$e]>ft&&j(Ee,ze,Ue,We);xtft;)kt--}ze[2*Ue+$e]===ft?j(Ee,ze,Ue,kt):j(Ee,ze,++kt,We),kt<=Be&&(Ue=kt+1),Be<=kt&&(We=kt-1)}}(Ee,ze,Qe,Ue,We,$e%2),Z(Ee,ze,Be,Ue,Qe-1,$e+1),Z(Ee,ze,Be,Qe+1,We,$e+1)}}(Qe,rt,Ue,0,Qe.length-1,0)};R.prototype.range=function(Ee,ze,Be,Ue){return function(Ee,ze,Be,Ue,We,$e,Qe){for(var rt,it,at=[0,Ee.length-1,0],ct=[];at.length;){var ft=at.pop(),xt=at.pop(),kt=at.pop();if(xt-kt<=Qe)for(var Lt=kt;Lt<=xt;Lt++)rt=ze[2*Lt],it=ze[2*Lt+1],rt>=Be&&rt<=We&&it>=Ue&&it<=$e&&ct.push(Ee[Lt]);else{var Ut=Math.floor((kt+xt)/2);rt=ze[2*Ut],it=ze[2*Ut+1],rt>=Be&&rt<=We&&it>=Ue&&it<=$e&&ct.push(Ee[Ut]);var er=(ft+1)%2;(0===ft?Be<=rt:Ue<=it)&&(at.push(kt),at.push(Ut-1),at.push(er)),(0===ft?We>=rt:$e>=it)&&(at.push(Ut+1),at.push(xt),at.push(er))}}return ct}(this.ids,this.coords,Ee,ze,Be,Ue,this.nodeSize)},R.prototype.within=function(Ee,ze,Be){return function(Ee,ze,Be,Ue,We,$e){for(var Qe=[0,Ee.length-1,0],rt=[],it=We*We;Qe.length;){var at=Qe.pop(),ct=Qe.pop(),ft=Qe.pop();if(ct-ft<=$e)for(var xt=ft;xt<=ct;xt++)V(ze[2*xt],ze[2*xt+1],Be,Ue)<=it&&rt.push(Ee[xt]);else{var kt=Math.floor((ft+ct)/2),Lt=ze[2*kt],Ut=ze[2*kt+1];V(Lt,Ut,Be,Ue)<=it&&rt.push(Ee[kt]);var er=(at+1)%2;(0===at?Be-We<=Lt:Ue-We<=Ut)&&(Qe.push(ft),Qe.push(kt-1),Qe.push(er)),(0===at?Be+We>=Lt:Ue+We>=Ut)&&(Qe.push(kt+1),Qe.push(ct),Qe.push(er))}}return rt}(this.ids,this.coords,Ee,ze,Be,this.nodeSize)};var ft={minZoom:0,maxZoom:16,radius:40,extent:512,nodeSize:64,log:!1,reduce:null,map:function(Ee){return Ee}},U=function(Ee){this.options=re(Object.create(ft),Ee),this.trees=new Array(this.options.maxZoom+1)};function $(Ee,ze,Be,Ue,We){return{x:Ee,y:ze,zoom:1/0,id:Be,parentId:-1,numPoints:Ue,properties:We}}function H(Ee,ze){var Be=Ee.geometry.coordinates,Ue=Be[0],We=Be[1];return{x:ee(Ue),y:te(We),zoom:1/0,index:ze,parentId:-1}}function K(Ee){return{type:"Feature",id:Ee.id,properties:Q(Ee),geometry:{type:"Point",coordinates:[(Ue=Ee.x,360*(Ue-.5)),(ze=Ee.y,Be=(180-360*ze)*Math.PI/180,360*Math.atan(Math.exp(Be))/Math.PI-90)]}};var ze,Be,Ue}function Q(Ee){var ze=Ee.numPoints,Be=ze>=1e4?Math.round(ze/1e3)+"k":ze>=1e3?Math.round(ze/100)/10+"k":ze;return re(re({},Ee.properties),{cluster:!0,cluster_id:Ee.id,point_count:ze,point_count_abbreviated:Be})}function ee(Ee){return Ee/360+.5}function te(Ee){var ze=Math.sin(Ee*Math.PI/180),Be=.5-.25*Math.log((1+ze)/(1-ze))/Math.PI;return Be<0?0:Be>1?1:Be}function re(Ee,ze){for(var Be in ze)Ee[Be]=ze[Be];return Ee}function oe(Ee){return Ee.x}function ie(Ee){return Ee.y}function ne(Ee,ze,Be,Ue,We,$e){var Qe=We-Be,rt=$e-Ue;if(0!==Qe||0!==rt){var it=((Ee-Be)*Qe+(ze-Ue)*rt)/(Qe*Qe+rt*rt);it>1?(Be=We,Ue=$e):it>0&&(Be+=Qe*it,Ue+=rt*it)}return(Qe=Ee-Be)*Qe+(rt=ze-Ue)*rt}function ae(Ee,ze,Be,Ue){var We={id:void 0===Ee?null:Ee,type:ze,geometry:Be,tags:Ue,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return function(Ee){var ze=Ee.geometry,Be=Ee.type;if("Point"===Be||"MultiPoint"===Be||"LineString"===Be)se(Ee,ze);else if("Polygon"===Be||"MultiLineString"===Be)for(var Ue=0;Ue0&&(Qe+=Ue?(We*at-it*$e)/2:Math.sqrt(Math.pow(it-We,2)+Math.pow(at-$e,2))),We=it,$e=at}var ct=ze.length-3;ze[2]=1,function e(Ee,ze,Be,Ue){for(var We,$e=Ue,Qe=Be-ze>>1,rt=Be-ze,it=Ee[ze],at=Ee[ze+1],ct=Ee[Be],ft=Ee[Be+1],xt=ze+3;xt$e)We=xt,$e=kt;else if(kt===$e){var Lt=Math.abs(xt-Qe);LtUe&&(We-ze>3&&e(Ee,ze,We,Ue),Ee[We+2]=$e,Be-We>3&&e(Ee,We,Be,Ue))}(ze,0,ct,Be),ze[ct+2]=1,ze.size=Math.abs(Qe),ze.start=0,ze.end=ze.size}function ce(Ee,ze,Be,Ue){for(var We=0;We1?1:Be}function de(Ee,ze,Be,Ue,We,$e,Qe,rt){if(Ue/=ze,$e>=(Be/=ze)&&Qe=Ue)return null;for(var it=[],at=0;at=Be&&Lt=Ue)){var Ut=[];if("Point"===xt||"MultiPoint"===xt)ge(ft,Ut,Be,Ue,We);else if("LineString"===xt)me(ft,Ut,Be,Ue,We,!1,rt.lineMetrics);else if("MultiLineString"===xt)ye(ft,Ut,Be,Ue,We,!1);else if("Polygon"===xt)ye(ft,Ut,Be,Ue,We,!0);else if("MultiPolygon"===xt)for(var er=0;er=Be&&Qe<=Ue&&(ze.push(Ee[$e]),ze.push(Ee[$e+1]),ze.push(Ee[$e+2]))}}function me(Ee,ze,Be,Ue,We,$e,Qe){for(var rt,it,at=ve(Ee),ct=0===We?we:Se,ft=Ee.start,xt=0;xtBe&&(it=ct(at,kt,Lt,er,tr,Be),Qe&&(at.start=ft+rt*it)):rr>Ue?ar=Be&&(it=ct(at,kt,Lt,er,tr,Be),Lr=!0),ar>Ue&&rr<=Ue&&(it=ct(at,kt,Lt,er,tr,Ue),Lr=!0),!$e&&Lr&&(Qe&&(at.end=ft+rt*it),ze.push(at),at=ve(Ee)),Qe&&(ft+=rt)}var Qr=Ee.length-3;kt=Ee[Qr],Lt=Ee[Qr+1],Ut=Ee[Qr+2],(rr=0===We?kt:Lt)>=Be&&rr<=Ue&&xe(at,kt,Lt,Ut),Qr=at.length-3,$e&&Qr>=3&&(at[Qr]!==at[0]||at[Qr+1]!==at[1])&&xe(at,at[0],at[1],at[2]),at.length&&ze.push(at)}function ve(Ee){var ze=[];return ze.size=Ee.size,ze.start=Ee.start,ze.end=Ee.end,ze}function ye(Ee,ze,Be,Ue,We,$e){for(var Qe=0;QeQe.maxX&&(Qe.maxX=ct),ft>Qe.maxY&&(Qe.maxY=ft)}return Qe}function Ie(Ee,ze,Be,Ue){var We=ze.geometry,$e=ze.type,Qe=[];if("Point"===$e||"MultiPoint"===$e)for(var rt=0;rt0&&ze.size<(We?Qe:Ue))Be.numPoints+=ze.length/3;else{for(var rt=[],it=0;itQe)&&(Be.numSimplified++,rt.push(ze[it]),rt.push(ze[it+1])),Be.numPoints++;We&&function(Ee,ze){for(var Be=0,Ue=0,We=Ee.length,$e=We-2;Ue0===ze)for(Ue=0,We=Ee.length;Ue24)throw new Error("maxZoom should be in the 0-24 range");if(ze.promoteId&&ze.generateId)throw new Error("promoteId and generateId cannot be used together.");var Ue=function(Ee,ze){var Be=[];if("FeatureCollection"===Ee.type)for(var Ue=0;Ue=Ue;at--){var ct=+Date.now();rt=this._cluster(rt,at),this.trees[at]=new R(rt,oe,ie,$e,Float32Array),Be&&console.log("z%d: %d clusters in %dms",at,rt.length,+Date.now()-ct)}return Be&&console.timeEnd("total time"),this},U.prototype.getClusters=function(Ee,ze){var Be=((Ee[0]+180)%360+360)%360-180,Ue=Math.max(-90,Math.min(90,Ee[1])),We=180===Ee[2]?180:((Ee[2]+180)%360+360)%360-180,$e=Math.max(-90,Math.min(90,Ee[3]));if(Ee[2]-Ee[0]>=360)Be=-180,We=180;else if(Be>We){var Qe=this.getClusters([Be,Ue,180,$e],ze),rt=this.getClusters([-180,Ue,We,$e],ze);return Qe.concat(rt)}for(var it=this.trees[this._limitZoom(ze)],at=[],ct=0,ft=it.range(ee(Be),te($e),ee(We),te(Ue));ct>5,Be=Ee%32,Ue="No cluster with the specified id.",We=this.trees[Be];if(!We)throw new Error(Ue);var $e=We.points[ze];if(!$e)throw new Error(Ue);for(var Qe=this.options.radius/(this.options.extent*Math.pow(2,Be-1)),rt=[],it=0,at=We.within($e.x,$e.y,Qe);it1?this._map(at,!0):null,er=(it<<5)+(ze+1),tr=0,rr=ft;tr1&&console.time("creation"),xt=this.tiles[ft]=Pe(Ee,ze,Be,Ue,it),this.tileCoords.push({z:ze,x:Be,y:Ue}),at)){at>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",ze,Be,Ue,xt.numFeatures,xt.numPoints,xt.numSimplified),console.timeEnd("creation"));var kt="z"+ze;this.stats[kt]=(this.stats[kt]||0)+1,this.total++}if(xt.source=Ee,We){if(ze===it.maxZoom||ze===We)continue;var Lt=1<1&&console.time("clipping");var Ut,er,tr,rr,ar,Lr,Qr=.5*it.buffer/it.extent,on=.5-Qr,sn=.5+Qr,cn=1+Qr;Ut=er=tr=rr=null,ar=de(Ee,ct,Be-Qr,Be+sn,0,xt.minX,xt.maxX,it),Lr=de(Ee,ct,Be+on,Be+cn,0,xt.minX,xt.maxX,it),Ee=null,ar&&(Ut=de(ar,ct,Ue-Qr,Ue+sn,1,xt.minY,xt.maxY,it),er=de(ar,ct,Ue+on,Ue+cn,1,xt.minY,xt.maxY,it),ar=null),Lr&&(tr=de(Lr,ct,Ue-Qr,Ue+sn,1,xt.minY,xt.maxY,it),rr=de(Lr,ct,Ue+on,Ue+cn,1,xt.minY,xt.maxY,it),Lr=null),at>1&&console.timeEnd("clipping"),rt.push(Ut||[],ze+1,2*Be,2*Ue),rt.push(er||[],ze+1,2*Be,2*Ue+1),rt.push(tr||[],ze+1,2*Be+1,2*Ue),rt.push(rr||[],ze+1,2*Be+1,2*Ue+1)}}},Le.prototype.getTile=function(Ee,ze,Be){var Ue=this.options,We=Ue.extent,$e=Ue.debug;if(Ee<0||Ee>24)return null;var Qe=1<1&&console.log("drilling down to z%d-%d-%d",Ee,ze,Be);for(var it,at=Ee,ct=ze,ft=Be;!it&&at>0;)at--,ct=Math.floor(ct/2),ft=Math.floor(ft/2),it=this.tiles[De(at,ct,ft)];return it&&it.source?($e>1&&console.log("found parent tile z%d-%d-%d",at,ct,ft),$e>1&&console.time("drilling down"),this.splitTile(it.source,at,ct,ft,Ee,ze,Be),$e>1&&console.timeEnd("drilling down"),this.tiles[rt]?be(this.tiles[rt],We):null):null};var xt=function(ze){function r(Ee,Be,Ue){ze.call(this,Ee,Be,Ce),Ue&&(this.loadGeoJSON=Ue)}return ze&&(r.__proto__=ze),r.prototype=Object.create(ze&&ze.prototype),r.prototype.constructor=r,r.prototype.loadData=function(Ee,ze){this._pendingCallback&&this._pendingCallback(null,{abandoned:!0}),this._pendingCallback=ze,this._pendingLoadDataParams=Ee,this._state&&"Idle"!==this._state?this._state="NeedsLoadData":(this._state="Coalescing",this._loadData())},r.prototype._loadData=function(){var ze=this;if(this._pendingCallback&&this._pendingLoadDataParams){var Ue=this._pendingCallback,We=this._pendingLoadDataParams;delete this._pendingCallback,delete this._pendingLoadDataParams;var $e=!!(We&&We.request&&We.request.collectResourceTiming)&&new Be.Performance(We.request);this.loadGeoJSON(We,(function(Be,Qe){if(Be||!Qe)return Ue(Be);if("object"!=typeof Qe)return Ue(new Error("Input data given to '"+We.source+"' is not a valid GeoJSON object."));!function e(Ee,ze){switch(Ee&&Ee.type||null){case"FeatureCollection":return Ee.features=Ee.features.map(x(e,ze)),Ee;case"GeometryCollection":return Ee.geometries=Ee.geometries.map(x(e,ze)),Ee;case"Feature":return Ee.geometry=e(Ee.geometry,ze),Ee;case"Polygon":case"MultiPolygon":return function(Ee,ze){return"Polygon"===Ee.type?Ee.coordinates=w(Ee.coordinates,ze):"MultiPolygon"===Ee.type&&(Ee.coordinates=Ee.coordinates.map(x(w,ze))),Ee}(Ee,ze);default:return Ee}}(Qe,!0);try{ze._geoJSONIndex=We.cluster?new U(function(ze){var Be=ze.superclusterOptions,Ue=ze.clusterProperties;if(!Ue||!Be)return Be;for(var We={},$e={},Qe={accumulated:null,zoom:0},rt={properties:null},it=Object.keys(Ue),at=0,ct=it;at=0?0:ze.button},Be.remove=function(Ee){Ee.parentNode&&Ee.parentNode.removeChild(Ee)};var at=function(ze){function i(){ze.call(this),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new Ee.RGBAImage({width:1,height:1}),this.dirty=!0}return ze&&(i.__proto__=ze),i.prototype=Object.create(ze&&ze.prototype),i.prototype.constructor=i,i.prototype.isLoaded=function(){return this.loaded},i.prototype.setLoaded=function(Ee){if(this.loaded!==Ee&&(this.loaded=Ee,Ee)){for(var ze=0,Be=this.requestors;ze=0?1.2:1))}function g(Ee,ze,Be,Ue,We,$e,Qe){for(var rt=0;rt65535)ze(new Error("glyphs > 65535 not supported"));else{var it=$e.requests[rt];it||(it=$e.requests[rt]=[],y.loadGlyphRange(Be,rt,Ue.url,Ue.requestManager,(function(Ee,ze){if(ze)for(var Be in ze)Ue._doesCharSupportLocalGlyph(+Be)||($e.glyphs[+Be]=ze[+Be]);for(var We=0,Qe=it;Wethis.height)return Ee.warnOnce("LineAtlas out of space"),null;for(var $e=0,Qe=0;Qe=Ue&&ze.x<$e&&ze.y>=We&&ze.y0&&(it[new Ee.OverscaledTileID(ze.overscaledZ,$e,Be.z,We,Be.y-1).key]={backfilled:!1},it[new Ee.OverscaledTileID(ze.overscaledZ,ze.wrap,Be.z,Be.x,Be.y-1).key]={backfilled:!1},it[new Ee.OverscaledTileID(ze.overscaledZ,rt,Be.z,Qe,Be.y-1).key]={backfilled:!1}),Be.y+10&&(Ue.resourceTiming=ze._resourceTiming,ze._resourceTiming=[]),ze.fire(new Ee.Event("data",Ue))}}))},i.prototype.onAdd=function(Ee){this.map=Ee,this.load()},i.prototype.setData=function(ze){var Be=this;return this._data=ze,this.fire(new Ee.Event("dataloading",{dataType:"source"})),this._updateWorkerData((function(ze){if(ze)Be.fire(new Ee.ErrorEvent(ze));else{var Ue={dataType:"source",sourceDataType:"content"};Be._collectResourceTiming&&Be._resourceTiming&&Be._resourceTiming.length>0&&(Ue.resourceTiming=Be._resourceTiming,Be._resourceTiming=[]),Be.fire(new Ee.Event("data",Ue))}})),this},i.prototype.getClusterExpansionZoom=function(Ee,ze){return this.actor.send("geojson.getClusterExpansionZoom",{clusterId:Ee,source:this.id},ze),this},i.prototype.getClusterChildren=function(Ee,ze){return this.actor.send("geojson.getClusterChildren",{clusterId:Ee,source:this.id},ze),this},i.prototype.getClusterLeaves=function(Ee,ze,Be,Ue){return this.actor.send("geojson.getClusterLeaves",{source:this.id,clusterId:Ee,limit:ze,offset:Be},Ue),this},i.prototype._updateWorkerData=function(ze){var Be=this;this._loaded=!1;var Ue=Ee.extend({},this.workerOptions),We=this._data;"string"==typeof We?(Ue.request=this.map._requestManager.transformRequest(Ee.browser.resolveURL(We),Ee.ResourceType.Source),Ue.request.collectResourceTiming=this._collectResourceTiming):Ue.data=JSON.stringify(We),this.actor.send(this.type+".loadData",Ue,(function(Ee,We){Be._removed||We&&We.abandoned||(Be._loaded=!0,We&&We.resourceTiming&&We.resourceTiming[Be.id]&&(Be._resourceTiming=We.resourceTiming[Be.id].slice(0)),Be.actor.send(Be.type+".coalesce",{source:Ue.source},null),ze(Ee))}))},i.prototype.loaded=function(){return this._loaded},i.prototype.loadTile=function(ze,Be){var Ue=this,We=ze.actor?"reloadTile":"loadTile";ze.actor=this.actor;var $e={type:this.type,uid:ze.uid,tileID:ze.tileID,zoom:ze.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:Ee.browser.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes};ze.request=this.actor.send(We,$e,(function(Ee,$e){return delete ze.request,ze.unloadVectorData(),ze.aborted?Be(null):Ee?Be(Ee):(ze.loadVectorData($e,Ue.map.painter,"reloadTile"===We),Be(null))}))},i.prototype.abortTile=function(Ee){Ee.request&&(Ee.request.cancel(),delete Ee.request),Ee.aborted=!0},i.prototype.unloadTile=function(Ee){Ee.unloadVectorData(),this.actor.send("removeTile",{uid:Ee.uid,type:this.type,source:this.id})},i.prototype.onRemove=function(){this._removed=!0,this.actor.send("removeSource",{type:this.type,source:this.id})},i.prototype.serialize=function(){return Ee.extend({},this._options,{type:this.type,data:this._data})},i.prototype.hasTransition=function(){return!1},i}(Ee.Evented),Lr=function(ze){function i(Ee,Be,Ue,We){ze.call(this),this.id=Ee,this.dispatcher=Ue,this.coordinates=Be.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(We),this.options=Be}return ze&&(i.__proto__=ze),i.prototype=Object.create(ze&&ze.prototype),i.prototype.constructor=i,i.prototype.load=function(ze,Be){var Ue=this;this._loaded=!1,this.fire(new Ee.Event("dataloading",{dataType:"source"})),this.url=this.options.url,Ee.getImage(this.map._requestManager.transformRequest(this.url,Ee.ResourceType.Image),(function(We,$e){Ue._loaded=!0,We?Ue.fire(new Ee.ErrorEvent(We)):$e&&(Ue.image=$e,ze&&(Ue.coordinates=ze),Be&&Be(),Ue._finishLoading())}))},i.prototype.loaded=function(){return this._loaded},i.prototype.updateImage=function(Ee){var ze=this;return this.image&&Ee.url?(this.options.url=Ee.url,this.load(Ee.coordinates,(function(){ze.texture=null})),this):this},i.prototype._finishLoading=function(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new Ee.Event("data",{dataType:"source",sourceDataType:"metadata"})))},i.prototype.onAdd=function(Ee){this.map=Ee,this.load()},i.prototype.setCoordinates=function(ze){var Be=this;this.coordinates=ze;var Ue=ze.map(Ee.MercatorCoordinate.fromLngLat);this.tileID=function(ze){for(var Be=1/0,Ue=1/0,We=-1/0,$e=-1/0,Qe=0,rt=ze;QeBe.end(0)?this.fire(new Ee.ErrorEvent(new Ee.ValidationError("Playback for this video can be set only between the "+Be.start(0)+" and "+Be.end(0)+"-second mark."))):this.video.currentTime=ze}},i.prototype.getVideo=function(){return this.video},i.prototype.onAdd=function(Ee){this.map||(this.map=Ee,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))},i.prototype.prepare=function(){if(!(0===Object.keys(this.tiles).length||this.video.readyState<2)){var ze=this.map.painter.context,Be=ze.gl;for(var Ue in this.boundsBuffer||(this.boundsBuffer=ze.createVertexBuffer(this._boundsArray,Ee.rasterBoundsAttributes.members)),this.boundsSegments||(this.boundsSegments=Ee.SegmentVector.simpleSegment(0,0,4,2)),this.texture?this.video.paused||(this.texture.bind(Be.LINEAR,Be.CLAMP_TO_EDGE),Be.texSubImage2D(Be.TEXTURE_2D,0,0,0,Be.RGBA,Be.UNSIGNED_BYTE,this.video)):(this.texture=new Ee.Texture(ze,this.video,Be.RGBA),this.texture.bind(Be.LINEAR,Be.CLAMP_TO_EDGE)),this.tiles){var We=this.tiles[Ue];"loaded"!==We.state&&(We.state="loaded",We.texture=this.texture)}}},i.prototype.serialize=function(){return{type:"video",urls:this.urls,coordinates:this.coordinates}},i.prototype.hasTransition=function(){return this.video&&!this.video.paused},i}(Lr),on=function(ze){function i(Be,Ue,We,$e){ze.call(this,Be,Ue,We,$e),Ue.coordinates?Array.isArray(Ue.coordinates)&&4===Ue.coordinates.length&&!Ue.coordinates.some((function(Ee){return!Array.isArray(Ee)||2!==Ee.length||Ee.some((function(Ee){return"number"!=typeof Ee}))}))||this.fire(new Ee.ErrorEvent(new Ee.ValidationError("sources."+Be,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new Ee.ErrorEvent(new Ee.ValidationError("sources."+Be,null,'missing required property "coordinates"'))),Ue.animate&&"boolean"!=typeof Ue.animate&&this.fire(new Ee.ErrorEvent(new Ee.ValidationError("sources."+Be,null,'optional "animate" property must be a boolean value'))),Ue.canvas?"string"==typeof Ue.canvas||Ue.canvas instanceof Ee.window.HTMLCanvasElement||this.fire(new Ee.ErrorEvent(new Ee.ValidationError("sources."+Be,null,'"canvas" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))):this.fire(new Ee.ErrorEvent(new Ee.ValidationError("sources."+Be,null,'missing required property "canvas"'))),this.options=Ue,this.animate=void 0===Ue.animate||Ue.animate}return ze&&(i.__proto__=ze),i.prototype=Object.create(ze&&ze.prototype),i.prototype.constructor=i,i.prototype.load=function(){this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof Ee.window.HTMLCanvasElement?this.options.canvas:Ee.window.document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()?this.fire(new Ee.ErrorEvent(new Error("Canvas dimensions cannot be less than or equal to zero."))):(this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&&(this.prepare(),this._playing=!1)},this._finishLoading())},i.prototype.getCanvas=function(){return this.canvas},i.prototype.onAdd=function(Ee){this.map=Ee,this.load(),this.canvas&&this.animate&&this.play()},i.prototype.onRemove=function(){this.pause()},i.prototype.prepare=function(){var ze=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,ze=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,ze=!0),!this._hasInvalidDimensions()&&0!==Object.keys(this.tiles).length){var Be=this.map.painter.context,Ue=Be.gl;for(var We in this.boundsBuffer||(this.boundsBuffer=Be.createVertexBuffer(this._boundsArray,Ee.rasterBoundsAttributes.members)),this.boundsSegments||(this.boundsSegments=Ee.SegmentVector.simpleSegment(0,0,4,2)),this.texture?(ze||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):this.texture=new Ee.Texture(Be,this.canvas,Ue.RGBA,{premultiply:!0}),this.tiles){var $e=this.tiles[We];"loaded"!==$e.state&&($e.state="loaded",$e.texture=this.texture)}}},i.prototype.serialize=function(){return{type:"canvas",coordinates:this.coordinates}},i.prototype.hasTransition=function(){return this._playing},i.prototype._hasInvalidDimensions=function(){for(var Ee=0,ze=[this.canvas.width,this.canvas.height];Eethis.max){var Qe=this._getAndRemoveByKey(this.order[0]);Qe&&this.onRemove(Qe)}return this},U.prototype.has=function(Ee){return Ee.wrapped().key in this.data},U.prototype.getAndRemove=function(Ee){return this.has(Ee)?this._getAndRemoveByKey(Ee.wrapped().key):null},U.prototype._getAndRemoveByKey=function(Ee){var ze=this.data[Ee].shift();return ze.timeout&&clearTimeout(ze.timeout),0===this.data[Ee].length&&delete this.data[Ee],this.order.splice(this.order.indexOf(Ee),1),ze.value},U.prototype.get=function(Ee){return this.has(Ee)?this.data[Ee.wrapped().key][0].value:null},U.prototype.remove=function(Ee,ze){if(!this.has(Ee))return this;var Be=Ee.wrapped().key,Ue=void 0===ze?0:this.data[Be].indexOf(ze),We=this.data[Be][Ue];return this.data[Be].splice(Ue,1),We.timeout&&clearTimeout(We.timeout),0===this.data[Be].length&&delete this.data[Be],this.onRemove(We.value),this.order.splice(this.order.indexOf(Be),1),this},U.prototype.setMaxSize=function(Ee){for(this.max=Ee;this.order.length>this.max;){var ze=this._getAndRemoveByKey(this.order[0]);ze&&this.onRemove(ze)}return this};var N=function(Ee,ze,Be){this.context=Ee;var Ue=Ee.gl;this.buffer=Ue.createBuffer(),this.dynamicDraw=Boolean(Be),this.context.unbindVAO(),Ee.bindElementBuffer.set(this.buffer),Ue.bufferData(Ue.ELEMENT_ARRAY_BUFFER,ze.arrayBuffer,this.dynamicDraw?Ue.DYNAMIC_DRAW:Ue.STATIC_DRAW),this.dynamicDraw||delete ze.arrayBuffer};N.prototype.bind=function(){this.context.bindElementBuffer.set(this.buffer)},N.prototype.updateData=function(Ee){var ze=this.context.gl;this.context.unbindVAO(),this.bind(),ze.bufferSubData(ze.ELEMENT_ARRAY_BUFFER,0,Ee.arrayBuffer)},N.prototype.destroy=function(){var Ee=this.context.gl;this.buffer&&(Ee.deleteBuffer(this.buffer),delete this.buffer)};var cn={Int8:"BYTE",Uint8:"UNSIGNED_BYTE",Int16:"SHORT",Uint16:"UNSIGNED_SHORT",Int32:"INT",Uint32:"UNSIGNED_INT",Float32:"FLOAT"},q=function(Ee,ze,Be,Ue){this.length=ze.length,this.attributes=Be,this.itemSize=ze.bytesPerElement,this.dynamicDraw=Ue,this.context=Ee;var We=Ee.gl;this.buffer=We.createBuffer(),Ee.bindVertexBuffer.set(this.buffer),We.bufferData(We.ARRAY_BUFFER,ze.arrayBuffer,this.dynamicDraw?We.DYNAMIC_DRAW:We.STATIC_DRAW),this.dynamicDraw||delete ze.arrayBuffer};q.prototype.bind=function(){this.context.bindVertexBuffer.set(this.buffer)},q.prototype.updateData=function(Ee){var ze=this.context.gl;this.bind(),ze.bufferSubData(ze.ARRAY_BUFFER,0,Ee.arrayBuffer)},q.prototype.enableAttributes=function(Ee,ze){for(var Be=0;Be1||(Math.abs(Be)>1&&(1===Math.abs(Be+We)?Be+=We:1===Math.abs(Be-We)&&(Be-=We)),ze.dem&&Ee.dem&&(Ee.dem.backfillBorder(ze.dem,Be,Ue),Ee.neighboringTiles&&Ee.neighboringTiles[$e]&&(Ee.neighboringTiles[$e].backfilled=!0)))}},i.prototype.getTile=function(Ee){return this.getTileByID(Ee.key)},i.prototype.getTileByID=function(Ee){return this._tiles[Ee]},i.prototype.getZoom=function(Ee){return Ee.zoom+Ee.scaleZoom(Ee.tileSize/this._source.tileSize)},i.prototype._retainLoadedChildren=function(Ee,ze,Be,Ue){for(var We in this._tiles){var $e=this._tiles[We];if(!(Ue[We]||!$e.hasData()||$e.tileID.overscaledZ<=ze||$e.tileID.overscaledZ>Be)){for(var Qe=$e.tileID;$e&&$e.tileID.overscaledZ>ze+1;){var rt=$e.tileID.scaledTo($e.tileID.overscaledZ-1);($e=this._tiles[rt.key])&&$e.hasData()&&(Qe=rt)}for(var it=Qe;it.overscaledZ>ze;)if(Ee[(it=it.scaledTo(it.overscaledZ-1)).key]){Ue[Qe.key]=Qe;break}}}},i.prototype.findLoadedParent=function(Ee,ze){for(var Be=Ee.overscaledZ-1;Be>=ze;Be--){var Ue=Ee.scaledTo(Be);if(!Ue)return;var We=String(Ue.key),$e=this._tiles[We];if($e&&$e.hasData())return $e;if(this._cache.has(Ue))return this._cache.get(Ue)}},i.prototype.updateCacheSize=function(Ee){var ze=(Math.ceil(Ee.width/this._source.tileSize)+1)*(Math.ceil(Ee.height/this._source.tileSize)+1),Be=Math.floor(5*ze),Ue="number"==typeof this._maxTileCacheSize?Math.min(this._maxTileCacheSize,Be):Be;this._cache.setMaxSize(Ue)},i.prototype.handleWrapJump=function(Ee){var ze=(Ee-(void 0===this._prevLng?Ee:this._prevLng))/360,Be=Math.round(ze);if(this._prevLng=Ee,Be){var Ue={};for(var We in this._tiles){var $e=this._tiles[We];$e.tileID=$e.tileID.unwrapTo($e.tileID.wrap+Be),Ue[$e.tileID.key]=$e}for(var Qe in this._tiles=Ue,this._timers)clearTimeout(this._timers[Qe]),delete this._timers[Qe];for(var rt in this._tiles){var it=this._tiles[rt];this._setTileReloadTimer(rt,it)}}},i.prototype.update=function(ze){var Be=this;if(this.transform=ze,this._sourceLoaded&&!this._paused){var Ue;this.updateCacheSize(ze),this.handleWrapJump(this.transform.center.lng),this._coveredTiles={},this.used?this._source.tileID?Ue=ze.getVisibleUnwrappedCoordinates(this._source.tileID).map((function(ze){return new Ee.OverscaledTileID(ze.canonical.z,ze.wrap,ze.canonical.z,ze.canonical.x,ze.canonical.y)})):(Ue=ze.coveringTiles({tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled}),this._source.hasTile&&(Ue=Ue.filter((function(Ee){return Be._source.hasTile(Ee)})))):Ue=[];var We=(this._source.roundZoom?Math.round:Math.floor)(this.getZoom(ze)),$e=Math.max(We-i.maxOverzooming,this._source.minzoom),Qe=Math.max(We+i.maxUnderzooming,this._source.minzoom),rt=this._updateRetainedTiles(Ue,We);if(Dt(this._source.type)){for(var it={},at={},ct=0,ft=Object.keys(rt);ctthis._source.maxzoom){var Ut=kt.children(this._source.maxzoom)[0],er=this.getTile(Ut);if(er&&er.hasData()){Be[Ut.key]=Ut;continue}}else{var tr=kt.children(this._source.maxzoom);if(Be[tr[0].key]&&Be[tr[1].key]&&Be[tr[2].key]&&Be[tr[3].key])continue}for(var rr=Lt.wasRequested(),ar=kt.overscaledZ-1;ar>=We;--ar){var Lr=kt.scaledTo(ar);if(Ue[Lr.key])break;if(Ue[Lr.key]=!0,!(Lt=this.getTile(Lr))&&rr&&(Lt=this._addTile(Lr)),Lt&&(Be[Lr.key]=Lr,rr=Lt.wasRequested(),Lt.hasData()))break}}}return Be},i.prototype._addTile=function(ze){var Be=this._tiles[ze.key];if(Be)return Be;(Be=this._cache.getAndRemove(ze))&&(this._setTileReloadTimer(ze.key,Be),Be.tileID=ze,this._state.initializeTileState(Be,this.map?this.map.painter:null),this._cacheTimers[ze.key]&&(clearTimeout(this._cacheTimers[ze.key]),delete this._cacheTimers[ze.key],this._setTileReloadTimer(ze.key,Be)));var Ue=Boolean(Be);return Ue||(Be=new Ee.Tile(ze,this._source.tileSize*ze.overscaleFactor()),this._loadTile(Be,this._tileLoaded.bind(this,Be,ze.key,Be.state))),Be?(Be.uses++,this._tiles[ze.key]=Be,Ue||this._source.fire(new Ee.Event("dataloading",{tile:Be,coord:Be.tileID,dataType:"source"})),Be):null},i.prototype._setTileReloadTimer=function(Ee,ze){var Be=this;Ee in this._timers&&(clearTimeout(this._timers[Ee]),delete this._timers[Ee]);var Ue=ze.getExpiryTimeout();Ue&&(this._timers[Ee]=setTimeout((function(){Be._reloadTile(Ee,"expired"),delete Be._timers[Ee]}),Ue))},i.prototype._removeTile=function(Ee){var ze=this._tiles[Ee];ze&&(ze.uses--,delete this._tiles[Ee],this._timers[Ee]&&(clearTimeout(this._timers[Ee]),delete this._timers[Ee]),ze.uses>0||(ze.hasData()&&"reloading"!==ze.state?this._cache.add(ze.tileID,ze,ze.getExpiryTimeout()):(ze.aborted=!0,this._abortTile(ze),this._unloadTile(ze))))},i.prototype.clearTiles=function(){for(var Ee in this._shouldReloadOnResume=!1,this._paused=!1,this._tiles)this._removeTile(Ee);this._cache.reset()},i.prototype.tilesIn=function(ze,Be,Ue){var We=this,$e=[],Qe=this.transform;if(!Qe)return $e;for(var rt=Ue?Qe.getCameraQueryGeometry(ze):ze,it=ze.map((function(Ee){return Qe.pointCoordinate(Ee)})),at=rt.map((function(Ee){return Qe.pointCoordinate(Ee)})),ct=this.getIds(),ft=1/0,xt=1/0,kt=-1/0,Lt=-1/0,Ut=0,er=at;Ut=0&&tr[1].y+er>=0){var rr=it.map((function(Ee){return rt.getTilePoint(Ee)})),ar=at.map((function(Ee){return rt.getTilePoint(Ee)}));$e.push({tile:Ue,tileID:rt,queryGeometry:rr,cameraQueryGeometry:ar,scale:Ut})}}},rr=0;rr=Ee.browser.now())return!0}return!1},i.prototype.setFeatureState=function(Ee,ze,Be){Ee=Ee||"_geojsonTileLayer",this._state.updateState(Ee,ze,Be)},i.prototype.removeFeatureState=function(Ee,ze,Be){Ee=Ee||"_geojsonTileLayer",this._state.removeFeatureState(Ee,ze,Be)},i.prototype.getFeatureState=function(Ee,ze){return Ee=Ee||"_geojsonTileLayer",this._state.getState(Ee,ze)},i}(Ee.Evented);function Mt(Ee,ze){return Ee%32-ze%32||ze-Ee}function Dt(Ee){return"raster"===Ee||"image"===Ee||"video"===Ee}function Rt(){return new Ee.window.Worker(Bl.workerUrl)}Ia.maxOverzooming=10,Ia.maxUnderzooming=3;var At=function(){this.active={}};At.prototype.acquire=function(Ee){if(!this.workers)for(this.workers=[];this.workers.length=-ze[0]&&Be<=ze[0]&&Ue>=-ze[1]&&Ue<=ze[1]}function $t(ze,Be,Ue,We,$e,Qe,rt,it){var at=We?ze.textSizeData:ze.iconSizeData,ct=Ee.evaluateSizeForZoom(at,Ue.transform.zoom),ft=[256/Ue.width*2+1,256/Ue.height*2+1],xt=We?ze.text.dynamicLayoutVertexArray:ze.icon.dynamicLayoutVertexArray;xt.clear();for(var kt=ze.lineVertexArray,Lt=We?ze.text.placedSymbolArray:ze.icon.placedSymbolArray,Ut=Ue.transform.width/Ue.transform.height,er=!1,tr=0;trMath.abs(Ue.x-Be.x)*We?{useVertical:!0}:(ze===Ee.WritingMode.vertical?Be.yUe.x)?{needsFlipping:!0}:null}function ie(ze,Be,Ue,We,$e,Qe,rt,it,at,ct,ft,xt,kt,Lt){var Ut,er=Be/24,tr=ze.lineOffsetX*er,rr=ze.lineOffsetY*er;if(ze.numGlyphs>1){var ar=ze.glyphStartIndex+ze.numGlyphs,Lr=ze.lineStartIndex,Qr=ze.lineStartIndex+ze.lineLength,on=te(er,it,tr,rr,Ue,ft,xt,ze,at,Qe,kt,!1);if(!on)return{notEnoughRoom:!0};var sn=Yt(on.first.point,rt).point,cn=Yt(on.last.point,rt).point;if(We&&!Ue){var un=ee(ze.writingMode,sn,cn,Lt);if(un)return un}Ut=[on.first];for(var hn=ze.glyphStartIndex+1;hn0?_n.point:oe(xt,yn,dn,1,$e),Cn=ee(ze.writingMode,dn,Mn,Lt);if(Cn)return Cn}var En=re(er*it.getoffsetX(ze.glyphStartIndex),tr,rr,Ue,ft,xt,ze.segment,ze.lineStartIndex,ze.lineStartIndex+ze.lineLength,at,Qe,kt,!1);if(!En)return{notEnoughRoom:!0};Ut=[En]}for(var Pn=0,In=Ut;Pn0?1:-1,er=0;We&&(Ut*=-1,er=Math.PI),Ut<0&&(er+=Math.PI);for(var tr=Ut>0?it+rt:it+rt+1,rr=tr,ar=$e,Lr=$e,Qr=0,on=0,sn=Math.abs(Lt);Qr+on<=sn;){if((tr+=Ut)=at)return null;if(Lr=ar,void 0===(ar=xt[tr])){var cn=new Ee.Point(ct.getx(tr),ct.gety(tr)),un=Yt(cn,ft);if(un.signedDistanceFromCamera>0)ar=xt[tr]=un.point;else{var hn=tr-Ut;ar=oe(0===Qr?Qe:new Ee.Point(ct.getx(hn),ct.gety(hn)),cn,Lr,sn-Qr+1,ft)}}Qr+=on,on=Lr.dist(ar)}var dn=(sn-Qr)/on,vn=ar.sub(Lr),yn=vn.mult(dn)._add(Lr);return yn._add(vn._unit()._perp()._mult(Ue*Ut)),{point:yn,angle:er+Math.atan2(ar.y-Lr.y,ar.x-Lr.x),tileDistance:kt?{prevTileDistance:tr-Ut===rr?0:ct.gettileUnitDistanceFromAnchor(tr-Ut),lastSegmentViewportDistance:sn-Qr}:null}}Ht.prototype.keysLength=function(){return this.boxKeys.length+this.circleKeys.length},Ht.prototype.insert=function(Ee,ze,Be,Ue,We){this._forEachCell(ze,Be,Ue,We,this._insertBoxCell,this.boxUid++),this.boxKeys.push(Ee),this.bboxes.push(ze),this.bboxes.push(Be),this.bboxes.push(Ue),this.bboxes.push(We)},Ht.prototype.insertCircle=function(Ee,ze,Be,Ue){this._forEachCell(ze-Ue,Be-Ue,ze+Ue,Be+Ue,this._insertCircleCell,this.circleUid++),this.circleKeys.push(Ee),this.circles.push(ze),this.circles.push(Be),this.circles.push(Ue)},Ht.prototype._insertBoxCell=function(Ee,ze,Be,Ue,We,$e){this.boxCells[We].push($e)},Ht.prototype._insertCircleCell=function(Ee,ze,Be,Ue,We,$e){this.circleCells[We].push($e)},Ht.prototype._query=function(Ee,ze,Be,Ue,We,$e){if(Be<0||Ee>this.width||Ue<0||ze>this.height)return!We&&[];var Qe=[];if(Ee<=0&&ze<=0&&this.width<=Be&&this.height<=Ue){if(We)return!0;for(var rt=0;rt0:Qe},Ht.prototype._queryCircle=function(Ee,ze,Be,Ue,We){var $e=Ee-Be,Qe=Ee+Be,rt=ze-Be,it=ze+Be;if(Qe<0||$e>this.width||it<0||rt>this.height)return!Ue&&[];var at=[],ct={hitTest:Ue,circle:{x:Ee,y:ze,radius:Be},seenUids:{box:{},circle:{}}};return this._forEachCell($e,rt,Qe,it,this._queryCellCircle,at,ct,We),Ue?at.length>0:at},Ht.prototype.query=function(Ee,ze,Be,Ue,We){return this._query(Ee,ze,Be,Ue,!1,We)},Ht.prototype.hitTest=function(Ee,ze,Be,Ue,We){return this._query(Ee,ze,Be,Ue,!0,We)},Ht.prototype.hitTestCircle=function(Ee,ze,Be,Ue){return this._queryCircle(Ee,ze,Be,!0,Ue)},Ht.prototype._queryCell=function(Ee,ze,Be,Ue,We,$e,Qe,rt){var it=Qe.seenUids,at=this.boxCells[We];if(null!==at)for(var ct=this.bboxes,ft=0,xt=at;ft=ct[Lt+0]&&Ue>=ct[Lt+1]&&(!rt||rt(this.boxKeys[kt]))){if(Qe.hitTest)return $e.push(!0),!0;$e.push({key:this.boxKeys[kt],x1:ct[Lt],y1:ct[Lt+1],x2:ct[Lt+2],y2:ct[Lt+3]})}}}var Ut=this.circleCells[We];if(null!==Ut)for(var er=this.circles,tr=0,rr=Ut;trQe*Qe+rt*rt},Ht.prototype._circleAndRectCollide=function(Ee,ze,Be,Ue,We,$e,Qe){var rt=($e-Ue)/2,it=Math.abs(Ee-(Ue+rt));if(it>rt+Be)return!1;var at=(Qe-We)/2,ct=Math.abs(ze-(We+at));if(ct>at+Be)return!1;if(it<=rt||ct<=at)return!0;var ft=it-rt,xt=ct-at;return ft*ft+xt*xt<=Be*Be};var qa=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function ne(Ee,ze){for(var Be=0;Bedn)ce(ze,vn,!1);else{var En=this.projectPoint(at,yn,_n),Pn=Mn*cn;if(Lt.length>0){var In=En.x-Lt[Lt.length-4],Bn=En.y-Lt[Lt.length-3];if(Pn*Pn*2>In*In+Bn*Bn&&vn+8-hn&&Hn=this.screenRightBoundary||Ue<100||ze>this.screenBottomBoundary},le.prototype.isInsideGrid=function(Ee,ze,Be,Ue){return Be>=0&&Ee=0&&ze0)return this.prevPlacement&&this.prevPlacement.variableOffsets[kt.crossTileID]&&this.prevPlacement.placements[kt.crossTileID]&&this.prevPlacement.placements[kt.crossTileID].text&&(er=this.prevPlacement.variableOffsets[kt.crossTileID].anchor),this.variableOffsets[kt.crossTileID]={radialOffset:$e,width:Ue,height:We,anchor:ze,textBoxScale:Qe,prevAnchor:er},this.markUsedJustification(Lt,ze,kt,Ut),Lt.allowVerticalPlacement&&(this.markUsedOrientation(Lt,Ut,kt),this.placedOrientations[kt.crossTileID]=Ut),rr},ge.prototype.placeLayerBucket=function(ze,Be,Ue,We,$e,Qe,rt,it,at,ct){var ft=this,xt=ze.layers[0].layout,kt=Ee.evaluateSizeForZoom(ze.textSizeData,this.transform.zoom),Lt=xt.get("text-optional"),Ut=xt.get("icon-optional"),er=xt.get("text-allow-overlap"),tr=xt.get("icon-allow-overlap"),rr=er&&(tr||!ze.hasIconData()||Ut),ar=tr&&(er||!ze.hasTextData()||Lt),Lr=this.collisionGroups.get(ze.sourceID),Qr="map"===xt.get("text-rotation-alignment"),on="map"===xt.get("text-pitch-alignment"),sn="viewport-y"===xt.get("symbol-z-order");!ze.collisionArrays&&ct&&ze.deserializeCollisionBoxes(ct);var T=function(We,ct){if(!at[We.crossTileID])if(it)ft.placements[We.crossTileID]=new de(!1,!1,!1);else{var tr,sn=!1,cn=!1,un=!0,hn={box:null,offscreen:null},dn={box:null,offscreen:null},vn=null,yn=null,_n=0,Mn=0,Cn=0;ct.textFeatureIndex&&(_n=ct.textFeatureIndex),ct.verticalTextFeatureIndex&&(Mn=ct.verticalTextFeatureIndex);var En=ct.textBox;if(En){var A=function(Be){var Ue=Ee.WritingMode.horizontal;if(ze.allowVerticalPlacement&&!Be&&ft.prevPlacement){var $e=ft.prevPlacement.placedOrientations[We.crossTileID];$e&&(ft.placedOrientations[We.crossTileID]=$e,Ue=$e,ft.markUsedOrientation(ze,Ue,We))}return Ue},k=function(Be,Ue){if(ze.allowVerticalPlacement&&We.numVerticalGlyphVertices>0&&ct.verticalTextBox)for(var $e=0,Qe=ze.writingModes;$e0&&(Pn=Pn.filter((function(Ee){return Ee!==In.anchor}))).unshift(In.anchor)}var F=function(Ee,Ue){for(var $e=Ee.x2-Ee.x1,rt=Ee.y2-Ee.y1,it=We.textBoxScale,at={box:[],offscreen:!1},ct=er?2*Pn.length:Pn.length,xt=0;xt=Pn.length;if((at=ft.attemptAnchorPlacement(kt,Ee,$e,rt,We.radialTextOffset,it,Qr,on,Qe,Be,Lr,Lt,We,ze,Ue))&&at.box&&at.box.length){sn=!0;break}}return at};k((function(){return F(En,Ee.WritingMode.horizontal)}),(function(){var Be=ct.verticalTextBox,Ue=hn&&hn.box&&hn.box.length;return ze.allowVerticalPlacement&&!Ue&&We.numVerticalGlyphVertices>0&&Be?F(Be,Ee.WritingMode.vertical):{box:null,offscreen:null}})),hn&&(sn=hn.box,un=hn.offscreen);var Bn=A(hn&&hn.box);if(!sn&&ft.prevPlacement){var Hn=ft.prevPlacement.variableOffsets[We.crossTileID];Hn&&(ft.variableOffsets[We.crossTileID]=Hn,ft.markUsedJustification(ze,Hn.anchor,We,Bn))}}else{var Z=function(Ee,Ue){var $e=ft.collisionIndex.placeCollisionBox(Ee,xt.get("text-allow-overlap"),Qe,Be,Lr.predicate);return $e&&$e.box&&$e.box.length&&(ft.markUsedOrientation(ze,Ue,We),ft.placedOrientations[We.crossTileID]=Ue),$e};k((function(){return Z(En,Ee.WritingMode.horizontal)}),(function(){var Be=ct.verticalTextBox;return ze.allowVerticalPlacement&&We.numVerticalGlyphVertices>0&&Be?Z(Be,Ee.WritingMode.vertical):{box:null,offscreen:null}})),A(hn&&hn.box&&hn.box.length)}}sn=(tr=hn)&&tr.box&&tr.box.length>0,un=tr&&tr.offscreen;var Kn=ct.textCircles;if(Kn){var Jn=ze.text.placedSymbolArray.get(We.centerJustifiedTextSymbolIndex),ei=Ee.evaluateSizeForFeature(ze.textSizeData,kt,Jn);vn=ft.collisionIndex.placeCollisionCircles(Kn,xt.get("text-allow-overlap"),$e,Qe,Jn,ze.lineVertexArray,ze.glyphOffsetArray,ei,Be,Ue,rt,on,Lr.predicate),sn=xt.get("text-allow-overlap")||vn.circles.length>0,un=un&&vn.offscreen}ct.iconFeatureIndex&&(Cn=ct.iconFeatureIndex),ct.iconBox&&(cn=(yn=ft.collisionIndex.placeCollisionBox(ct.iconBox,xt.get("icon-allow-overlap"),Qe,Be,Lr.predicate)).box.length>0,un=un&&yn.offscreen);var ti=Lt||0===We.numHorizontalGlyphVertices&&0===We.numVerticalGlyphVertices,ri=Ut||0===We.numIconVertices;ti||ri?ri?ti||(cn=cn&&sn):sn=cn&&sn:cn=sn=cn&&sn,sn&&tr&&tr.box&&(dn&&dn.box&&Mn?ft.collisionIndex.insertCollisionBox(tr.box,xt.get("text-ignore-placement"),ze.bucketInstanceId,Mn,Lr.ID):ft.collisionIndex.insertCollisionBox(tr.box,xt.get("text-ignore-placement"),ze.bucketInstanceId,_n,Lr.ID)),cn&&yn&&ft.collisionIndex.insertCollisionBox(yn.box,xt.get("icon-ignore-placement"),ze.bucketInstanceId,Cn,Lr.ID),sn&&vn&&ft.collisionIndex.insertCollisionCircles(vn.circles,xt.get("text-ignore-placement"),ze.bucketInstanceId,_n,Lr.ID),ft.placements[We.crossTileID]=new de(sn||rr,cn||ar,un||ze.justReloaded),at[We.crossTileID]=!0}};if(sn)for(var cn=ze.getSortedSymbolIndexes(this.transform.angle),un=cn.length-1;un>=0;--un){var hn=cn[un];T(ze.symbolInstances.get(hn),ze.collisionArrays[hn])}else for(var dn=0;dn=0&&(ze.text.placedSymbolArray.get(at).crossTileID=$e>=0&&at!==$e?0:Ue.crossTileID)}},ge.prototype.markUsedOrientation=function(ze,Be,Ue){for(var We=Be===Ee.WritingMode.horizontal||Be===Ee.WritingMode.horizontalOnly?Be:0,$e=Be===Ee.WritingMode.vertical?Be:0,Qe=0,rt=[Ue.leftJustifiedTextSymbolIndex,Ue.centerJustifiedTextSymbolIndex,Ue.rightJustifiedTextSymbolIndex];Qe0||Ut>0,Lr=kt.numIconVertices>0;if(ar){for(var Qr=Se(rr.text),on=(Lt+Ut)/4,sn=0;sn=0&&(ze.text.placedSymbolArray.get(Ee).hidden=cn||dn)})),kt.verticalPlacedTextSymbolIndex>=0&&(ze.text.placedSymbolArray.get(kt.verticalPlacedTextSymbolIndex).hidden=cn||hn);var vn=this.variableOffsets[kt.crossTileID];vn&&this.markUsedJustification(ze,vn.anchor,kt,un);var yn=this.placedOrientations[kt.crossTileID];yn&&(this.markUsedJustification(ze,"left",kt,yn),this.markUsedOrientation(ze,yn,kt))}if(Lr){for(var _n=Se(rr.icon),Mn=0;MnEe},ge.prototype.setStale=function(){this.stale=!0};var Ka=Math.pow(2,25),Co=Math.pow(2,24),zo=Math.pow(2,17),Bo=Math.pow(2,16),Vo=Math.pow(2,9),Uo=Math.pow(2,8),Ho=Math.pow(2,1);function Se(Ee){if(0===Ee.opacity&&!Ee.placed)return 0;if(1===Ee.opacity&&Ee.placed)return 4294967295;var ze=Ee.placed?1:0,Be=Math.floor(127*Ee.opacity);return Be*Ka+ze*Co+Be*zo+ze*Bo+Be*Vo+ze*Uo+Be*Ho+ze}var Ce=function(){this._currentTileIndex=0,this._seenCrossTileIDs={}};Ce.prototype.continuePlacement=function(Ee,ze,Be,Ue,We){for(;this._currentTileIndex2};this._currentPlacementIndex>=0;){var Qe=Be[ze[this._currentPlacementIndex]],rt=this.placement.collisionIndex.transform.zoom;if("symbol"===Qe.type&&(!Qe.minzoom||Qe.minzoom<=rt)&&(!Qe.maxzoom||Qe.maxzoom>rt)){if(this._inProgressLayer||(this._inProgressLayer=new Ce),this._inProgressLayer.continuePlacement(Ue[Qe.source],this.placement,this._showCollisionBoxes,Qe,n))return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0},Pe.prototype.commit=function(Ee){return this.placement.commit(Ee),this.placement};var Wo=512/Ee.EXTENT/2,Le=function(Ee,ze,Be){this.tileID=Ee,this.indexedSymbolInstances={},this.bucketInstanceId=Be;for(var Ue=0;UeEe.overscaledZ)for(var rt in Qe){var it=Qe[rt];it.tileID.isChildOf(Ee)&&it.findMatches(ze.symbolInstances,Ee,We)}else{var at=Qe[Ee.scaledTo(Number($e)).key];at&&at.findMatches(ze.symbolInstances,Ee,We)}}for(var ct=0;ct1?"@2x":"",it=Ee.getJSON(Be.transformRequest(Be.normalizeSpriteURL(ze,rt,".json"),Ee.ResourceType.SpriteJSON),(function(Ee,ze){it=null,Qe||(Qe=Ee,We=ze,u())})),at=Ee.getImage(Be.transformRequest(Be.normalizeSpriteURL(ze,rt,".png"),Ee.ResourceType.SpriteImage),(function(Ee,ze){at=null,Qe||(Qe=Ee,$e=ze,u())}));function u(){if(Qe)Ue(Qe);else if(We&&$e){var ze=Ee.browser.getImageData($e),Be={};for(var rt in We){var it=We[rt],at=it.width,ct=it.height,ft=it.x,xt=it.y,kt=it.sdf,Lt=it.pixelRatio,Ut=new Ee.RGBAImage({width:at,height:ct});Ee.RGBAImage.copy(ze,Ut,{x:ft,y:xt},{x:0,y:0},{width:at,height:ct}),Be[rt]={data:Ut,pixelRatio:Lt,sdf:kt}}Ue(null,Be)}}return{cancel:function(){it&&(it.cancel(),it=null),at&&(at.cancel(),at=null)}}}(ze.sprite,this.map._requestManager,(function(ze,Be){if(Ue._spriteRequest=null,ze)Ue.fire(new Ee.ErrorEvent(ze));else if(Be)for(var We in Be)Ue.imageManager.addImage(We,Be[We]);Ue.imageManager.setLoaded(!0),Ue.fire(new Ee.Event("data",{dataType:"style"}))})):this.imageManager.setLoaded(!0),this.glyphManager.setURL(ze.glyphs);var $e=Ft(this.stylesheet.layers);this._order=$e.map((function(Ee){return Ee.id})),this._layers={};for(var Qe=0,rt=$e;Qe0)throw new Error("Unimplemented: "+We.map((function(Ee){return Ee.command})).join(", ")+".");return Ue.forEach((function(Ee){"setTransition"!==Ee.command&&Be[Ee.command].apply(Be,Ee.args)})),this.stylesheet=ze,!0},i.prototype.addImage=function(ze,Be){if(this.getImage(ze))return this.fire(new Ee.ErrorEvent(new Error("An image with this name already exists.")));this.imageManager.addImage(ze,Be),this.fire(new Ee.Event("data",{dataType:"style"}))},i.prototype.updateImage=function(Ee,ze){this.imageManager.updateImage(Ee,ze)},i.prototype.getImage=function(Ee){return this.imageManager.getImage(Ee)},i.prototype.removeImage=function(ze){if(!this.getImage(ze))return this.fire(new Ee.ErrorEvent(new Error("No image with this name exists.")));this.imageManager.removeImage(ze),this.fire(new Ee.Event("data",{dataType:"style"}))},i.prototype.listImages=function(){return this._checkLoaded(),this.imageManager.listImages()},i.prototype.addSource=function(ze,Be,Ue){var We=this;if(void 0===Ue&&(Ue={}),this._checkLoaded(),void 0!==this.sourceCaches[ze])throw new Error("There is already a source with this ID");if(!Be.type)throw new Error("The type property must be defined, but the only the following properties were given: "+Object.keys(Be).join(", ")+".");if(!(["vector","raster","geojson","video","image"].indexOf(Be.type)>=0&&this._validate(Ee.validateStyle.source,"sources."+ze,Be,null,Ue))){this.map&&this.map._collectResourceTiming&&(Be.collectResourceTiming=!0);var $e=this.sourceCaches[ze]=new Ia(ze,Be,this.dispatcher);$e.style=this,$e.setEventedParent(this,(function(){return{isSourceLoaded:We.loaded(),source:$e.serialize(),sourceId:ze}})),$e.onAdd(this.map),this._changed=!0}},i.prototype.removeSource=function(ze){if(this._checkLoaded(),void 0===this.sourceCaches[ze])throw new Error("There is no source with this ID");for(var Be in this._layers)if(this._layers[Be].source===ze)return this.fire(new Ee.ErrorEvent(new Error('Source "'+ze+'" cannot be removed while layer "'+Be+'" is using it.')));var Ue=this.sourceCaches[ze];delete this.sourceCaches[ze],delete this._updatedSources[ze],Ue.fire(new Ee.Event("data",{sourceDataType:"metadata",dataType:"source",sourceId:ze})),Ue.setEventedParent(null),Ue.clearTiles(),Ue.onRemove&&Ue.onRemove(this.map),this._changed=!0},i.prototype.setGeoJSONSourceData=function(Ee,ze){this._checkLoaded(),this.sourceCaches[Ee].getSource().setData(ze),this._changed=!0},i.prototype.getSource=function(Ee){return this.sourceCaches[Ee]&&this.sourceCaches[Ee].getSource()},i.prototype.addLayer=function(ze,Be,Ue){void 0===Ue&&(Ue={}),this._checkLoaded();var We=ze.id;if(this.getLayer(We))this.fire(new Ee.ErrorEvent(new Error('Layer with id "'+We+'" already exists on this map')));else{var $e;if("custom"===ze.type){if(Ae(this,Ee.validateCustomStyleLayer(ze)))return;$e=Ee.createStyleLayer(ze)}else{if("object"==typeof ze.source&&(this.addSource(We,ze.source),ze=Ee.clone$1(ze),ze=Ee.extend(ze,{source:We})),this._validate(Ee.validateStyle.layer,"layers."+We,ze,{arrayIndex:-1},Ue))return;$e=Ee.createStyleLayer(ze),this._validateLayer($e),$e.setEventedParent(this,{layer:{id:We}})}var Qe=Be?this._order.indexOf(Be):this._order.length;if(Be&&-1===Qe)this.fire(new Ee.ErrorEvent(new Error('Layer with id "'+Be+'" does not exist on this map.')));else{if(this._order.splice(Qe,0,We),this._layerOrderChanged=!0,this._layers[We]=$e,this._removedLayers[We]&&$e.source&&"custom"!==$e.type){var rt=this._removedLayers[We];delete this._removedLayers[We],rt.type!==$e.type?this._updatedSources[$e.source]="clear":(this._updatedSources[$e.source]="reload",this.sourceCaches[$e.source].pause())}this._updateLayer($e),$e.onAdd&&$e.onAdd(this.map)}}},i.prototype.moveLayer=function(ze,Be){if(this._checkLoaded(),this._changed=!0,this._layers[ze]){if(ze!==Be){var Ue=this._order.indexOf(ze);this._order.splice(Ue,1);var We=Be?this._order.indexOf(Be):this._order.length;Be&&-1===We?this.fire(new Ee.ErrorEvent(new Error('Layer with id "'+Be+'" does not exist on this map.'))):(this._order.splice(We,0,ze),this._layerOrderChanged=!0)}}else this.fire(new Ee.ErrorEvent(new Error("The layer '"+ze+"' does not exist in the map's style and cannot be moved.")))},i.prototype.removeLayer=function(ze){this._checkLoaded();var Be=this._layers[ze];if(Be){Be.setEventedParent(null);var Ue=this._order.indexOf(ze);this._order.splice(Ue,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[ze]=Be,delete this._layers[ze],delete this._updatedLayers[ze],delete this._updatedPaintProps[ze],Be.onRemove&&Be.onRemove(this.map)}else this.fire(new Ee.ErrorEvent(new Error("The layer '"+ze+"' does not exist in the map's style and cannot be removed.")))},i.prototype.getLayer=function(Ee){return this._layers[Ee]},i.prototype.setLayerZoomRange=function(ze,Be,Ue){this._checkLoaded();var We=this.getLayer(ze);We?We.minzoom===Be&&We.maxzoom===Ue||(null!=Be&&(We.minzoom=Be),null!=Ue&&(We.maxzoom=Ue),this._updateLayer(We)):this.fire(new Ee.ErrorEvent(new Error("The layer '"+ze+"' does not exist in the map's style and cannot have zoom extent.")))},i.prototype.setFilter=function(ze,Be,Ue){void 0===Ue&&(Ue={}),this._checkLoaded();var We=this.getLayer(ze);if(We){if(!Ee.deepEqual(We.filter,Be))return null==Be?(We.filter=void 0,void this._updateLayer(We)):void(this._validate(Ee.validateStyle.filter,"layers."+We.id+".filter",Be,null,Ue)||(We.filter=Ee.clone$1(Be),this._updateLayer(We)))}else this.fire(new Ee.ErrorEvent(new Error("The layer '"+ze+"' does not exist in the map's style and cannot be filtered.")))},i.prototype.getFilter=function(ze){return Ee.clone$1(this.getLayer(ze).filter)},i.prototype.setLayoutProperty=function(ze,Be,Ue,We){void 0===We&&(We={}),this._checkLoaded();var $e=this.getLayer(ze);$e?Ee.deepEqual($e.getLayoutProperty(Be),Ue)||($e.setLayoutProperty(Be,Ue,We),this._updateLayer($e)):this.fire(new Ee.ErrorEvent(new Error("The layer '"+ze+"' does not exist in the map's style and cannot be styled.")))},i.prototype.getLayoutProperty=function(ze,Be){var Ue=this.getLayer(ze);if(Ue)return Ue.getLayoutProperty(Be);this.fire(new Ee.ErrorEvent(new Error("The layer '"+ze+"' does not exist in the map's style.")))},i.prototype.setPaintProperty=function(ze,Be,Ue,We){void 0===We&&(We={}),this._checkLoaded();var $e=this.getLayer(ze);$e?Ee.deepEqual($e.getPaintProperty(Be),Ue)||($e.setPaintProperty(Be,Ue,We)&&this._updateLayer($e),this._changed=!0,this._updatedPaintProps[ze]=!0):this.fire(new Ee.ErrorEvent(new Error("The layer '"+ze+"' does not exist in the map's style and cannot be styled.")))},i.prototype.getPaintProperty=function(Ee,ze){return this.getLayer(Ee).getPaintProperty(ze)},i.prototype.setFeatureState=function(ze,Be){this._checkLoaded();var Ue=ze.source,We=ze.sourceLayer,$e=this.sourceCaches[Ue],Qe=parseInt(ze.id,10);if(void 0!==$e){var rt=$e.getSource().type;"geojson"===rt&&We?this.fire(new Ee.ErrorEvent(new Error("GeoJSON sources cannot have a sourceLayer parameter."))):"vector"!==rt||We?isNaN(Qe)||Qe<0?this.fire(new Ee.ErrorEvent(new Error("The feature id parameter must be provided and non-negative."))):$e.setFeatureState(We,Qe,Be):this.fire(new Ee.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new Ee.ErrorEvent(new Error("The source '"+Ue+"' does not exist in the map's style.")))},i.prototype.removeFeatureState=function(ze,Be){this._checkLoaded();var Ue=ze.source,We=this.sourceCaches[Ue];if(void 0!==We){var $e=We.getSource().type,Qe="vector"===$e?ze.sourceLayer:void 0,rt=parseInt(ze.id,10);"vector"!==$e||Qe?void 0!==ze.id&&isNaN(rt)||rt<0?this.fire(new Ee.ErrorEvent(new Error("The feature id parameter must be non-negative."))):Be&&"string"!=typeof ze.id&&"number"!=typeof ze.id?this.fire(new Ee.ErrorEvent(new Error("A feature id is requred to remove its specific state property."))):We.removeFeatureState(Qe,rt,Be):this.fire(new Ee.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new Ee.ErrorEvent(new Error("The source '"+Ue+"' does not exist in the map's style.")))},i.prototype.getFeatureState=function(ze){this._checkLoaded();var Be=ze.source,Ue=ze.sourceLayer,We=this.sourceCaches[Be],$e=parseInt(ze.id,10);if(void 0!==We)if("vector"!==We.getSource().type||Ue){if(!(isNaN($e)||$e<0))return We.getFeatureState(Ue,$e);this.fire(new Ee.ErrorEvent(new Error("The feature id parameter must be provided and non-negative.")))}else this.fire(new Ee.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));else this.fire(new Ee.ErrorEvent(new Error("The source '"+Be+"' does not exist in the map's style.")))},i.prototype.getTransition=function(){return Ee.extend({duration:300,delay:0},this.stylesheet&&this.stylesheet.transition)},i.prototype.serialize=function(){return Ee.filterObject({version:this.stylesheet.version,name:this.stylesheet.name,metadata:this.stylesheet.metadata,light:this.stylesheet.light,center:this.stylesheet.center,zoom:this.stylesheet.zoom,bearing:this.stylesheet.bearing,pitch:this.stylesheet.pitch,sprite:this.stylesheet.sprite,glyphs:this.stylesheet.glyphs,transition:this.stylesheet.transition,sources:Ee.mapObject(this.sourceCaches,(function(Ee){return Ee.serialize()})),layers:this._serializeLayers(this._order)},(function(Ee){return void 0!==Ee}))},i.prototype._updateLayer=function(Ee){this._updatedLayers[Ee.id]=!0,Ee.source&&!this._updatedSources[Ee.source]&&(this._updatedSources[Ee.source]="reload",this.sourceCaches[Ee.source].pause()),this._changed=!0},i.prototype._flattenAndSortRenderedFeatures=function(Ee){for(var ze=this,i=function(Ee){return"fill-extrusion"===ze._layers[Ee].type},Be={},Ue=[],We=this._order.length-1;We>=0;We--){var $e=this._order[We];if(i($e)){Be[$e]=We;for(var Qe=0,rt=Ee;Qe=0;kt--){var Lt=this._order[kt];if(i(Lt))for(var Ut=Ue.length-1;Ut>=0;Ut--){var er=Ue[Ut].feature;if(Be[er.layer.id] 0.5) {gl_FragColor=vec4(0.0,0.0,1.0,0.5)*alpha;}if (v_notUsed > 0.5) {gl_FragColor*=.1;}}","attribute vec2 a_pos;attribute vec2 a_anchor_pos;attribute vec2 a_extrude;attribute vec2 a_placed;attribute vec2 a_shift;uniform mat4 u_matrix;uniform vec2 u_extrude_scale;uniform float u_camera_to_center_distance;varying float v_placed;varying float v_notUsed;void main() {vec4 projectedPoint=u_matrix*vec4(a_anchor_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);gl_Position=u_matrix*vec4(a_pos,0.0,1.0);gl_Position.xy+=(a_extrude+a_shift)*u_extrude_scale*gl_Position.w*collision_perspective_ratio;v_placed=a_placed.x;v_notUsed=a_placed.y;}"),fs=ui("uniform float u_overscale_factor;varying float v_placed;varying float v_notUsed;varying float v_radius;varying vec2 v_extrude;varying vec2 v_extrude_scale;void main() {float alpha=0.5;vec4 color=vec4(1.0,0.0,0.0,1.0)*alpha;if (v_placed > 0.5) {color=vec4(0.0,0.0,1.0,0.5)*alpha;}if (v_notUsed > 0.5) {color*=.2;}float extrude_scale_length=length(v_extrude_scale);float extrude_length=length(v_extrude)*extrude_scale_length;float stroke_width=15.0*extrude_scale_length/u_overscale_factor;float radius=v_radius*extrude_scale_length;float distance_to_edge=abs(extrude_length-radius);float opacity_t=smoothstep(-stroke_width,0.0,-distance_to_edge);gl_FragColor=opacity_t*color;}","attribute vec2 a_pos;attribute vec2 a_anchor_pos;attribute vec2 a_extrude;attribute vec2 a_placed;uniform mat4 u_matrix;uniform vec2 u_extrude_scale;uniform float u_camera_to_center_distance;varying float v_placed;varying float v_notUsed;varying float v_radius;varying vec2 v_extrude;varying vec2 v_extrude_scale;void main() {vec4 projectedPoint=u_matrix*vec4(a_anchor_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);gl_Position=u_matrix*vec4(a_pos,0.0,1.0);highp float padding_factor=1.2;gl_Position.xy+=a_extrude*u_extrude_scale*padding_factor*gl_Position.w*collision_perspective_ratio;v_placed=a_placed.x;v_notUsed=a_placed.y;v_radius=abs(a_extrude.y);v_extrude=a_extrude*padding_factor;v_extrude_scale=u_extrude_scale*u_camera_to_center_distance*collision_perspective_ratio;}"),hs=ui("uniform highp vec4 u_color;void main() {gl_FragColor=u_color;}","attribute vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);}"),ms=ui("#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float opacity\ngl_FragColor=color*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec2 a_pos;uniform mat4 u_matrix;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float opacity\ngl_Position=u_matrix*vec4(a_pos,0,1);}"),vs=ui("varying vec2 v_pos;\n#pragma mapbox: define highp vec4 outline_color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 outline_color\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);gl_FragColor=outline_color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec2 a_pos;uniform mat4 u_matrix;uniform vec2 u_world;varying vec2 v_pos;\n#pragma mapbox: define highp vec4 outline_color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 outline_color\n#pragma mapbox: initialize lowp float opacity\ngl_Position=u_matrix*vec4(a_pos,0,1);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}"),ks=ui("uniform vec2 u_texsize;uniform sampler2D u_image;uniform float u_fade;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);float dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);gl_FragColor=mix(color1,color2,u_fade)*alpha*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_world;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec4 u_scale;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float pixelRatio=u_scale.x;float tileRatio=u_scale.y;float fromScale=u_scale.z;float toScale=u_scale.w;gl_Position=u_matrix*vec4(a_pos,0,1);vec2 display_size_a=vec2((pattern_br_a.x-pattern_tl_a.x)/pixelRatio,(pattern_br_a.y-pattern_tl_a.y)/pixelRatio);vec2 display_size_b=vec2((pattern_br_b.x-pattern_tl_b.x)/pixelRatio,(pattern_br_b.y-pattern_tl_b.y)/pixelRatio);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,a_pos);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}"),Ms=ui("uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);gl_FragColor=mix(color1,color2,u_fade)*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec4 u_scale;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float pixelRatio=u_scale.x;float tileZoomRatio=u_scale.y;float fromScale=u_scale.z;float toScale=u_scale.w;vec2 display_size_a=vec2((pattern_br_a.x-pattern_tl_a.x)/pixelRatio,(pattern_br_a.y-pattern_tl_a.y)/pixelRatio);vec2 display_size_b=vec2((pattern_br_b.x-pattern_tl_b.x)/pixelRatio,(pattern_br_b.y-pattern_tl_b.y)/pixelRatio);gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileZoomRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileZoomRatio,a_pos);}"),Ss=ui("varying vec4 v_color;void main() {gl_FragColor=v_color;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;uniform float u_vertical_gradient;uniform lowp float u_opacity;attribute vec2 a_pos;attribute vec4 a_normal_ed;varying vec4 v_color;\n#pragma mapbox: define highp float base\n#pragma mapbox: define highp float height\n#pragma mapbox: define highp vec4 color\nvoid main() {\n#pragma mapbox: initialize highp float base\n#pragma mapbox: initialize highp float height\n#pragma mapbox: initialize highp vec4 color\nvec3 normal=a_normal_ed.xyz;base=max(0.0,base);height=max(0.0,height);float t=mod(normal.x,2.0);gl_Position=u_matrix*vec4(a_pos,t > 0.0 ? height : base,1);float colorvalue=color.r*0.2126+color.g*0.7152+color.b*0.0722;v_color=vec4(0.0,0.0,0.0,1.0);vec4 ambientlight=vec4(0.03,0.03,0.03,1.0);color+=ambientlight;float directional=clamp(dot(normal/16384.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((1.0-colorvalue+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_color.r+=clamp(color.r*directional*u_lightcolor.r,mix(0.0,0.3,1.0-u_lightcolor.r),1.0);v_color.g+=clamp(color.g*directional*u_lightcolor.g,mix(0.0,0.3,1.0-u_lightcolor.g),1.0);v_color.b+=clamp(color.b*directional*u_lightcolor.b,mix(0.0,0.3,1.0-u_lightcolor.b),1.0);v_color*=u_opacity;}"),Es=ui("uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting;\n#pragma mapbox: define lowp float base\n#pragma mapbox: define lowp float height\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\nvoid main() {\n#pragma mapbox: initialize lowp float base\n#pragma mapbox: initialize lowp float height\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);vec4 mixedColor=mix(color1,color2,u_fade);gl_FragColor=mixedColor*v_lighting;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_height_factor;uniform vec4 u_scale;uniform float u_vertical_gradient;uniform lowp float u_opacity;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;attribute vec2 a_pos;attribute vec4 a_normal_ed;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting;\n#pragma mapbox: define lowp float base\n#pragma mapbox: define lowp float height\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\nvoid main() {\n#pragma mapbox: initialize lowp float base\n#pragma mapbox: initialize lowp float height\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float pixelRatio=u_scale.x;float tileRatio=u_scale.y;float fromScale=u_scale.z;float toScale=u_scale.w;vec3 normal=a_normal_ed.xyz;float edgedistance=a_normal_ed.w;vec2 display_size_a=vec2((pattern_br_a.x-pattern_tl_a.x)/pixelRatio,(pattern_br_a.y-pattern_tl_a.y)/pixelRatio);vec2 display_size_b=vec2((pattern_br_b.x-pattern_tl_b.x)/pixelRatio,(pattern_br_b.y-pattern_tl_b.y)/pixelRatio);base=max(0.0,base);height=max(0.0,height);float t=mod(normal.x,2.0);float z=t > 0.0 ? height : base;gl_Position=u_matrix*vec4(a_pos,z,1);vec2 pos=normal.x==1.0 && normal.y==0.0 && normal.z==16384.0\n? a_pos\n: vec2(edgedistance,z*u_height_factor);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,pos);v_lighting=vec4(0.0,0.0,0.0,1.0);float directional=clamp(dot(normal/16383.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((0.5+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_lighting.rgb+=clamp(directional*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_lighting*=u_opacity;}"),Ls=ui("#ifdef GL_ES\nprecision highp float;\n#endif\nuniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_dimension;uniform float u_zoom;uniform float u_maxzoom;float getElevation(vec2 coord,float bias) {vec4 data=texture2D(u_image,coord)*255.0;return (data.r+data.g*256.0+data.b*256.0*256.0)/4.0;}void main() {vec2 epsilon=1.0/u_dimension;float a=getElevation(v_pos+vec2(-epsilon.x,-epsilon.y),0.0);float b=getElevation(v_pos+vec2(0,-epsilon.y),0.0);float c=getElevation(v_pos+vec2(epsilon.x,-epsilon.y),0.0);float d=getElevation(v_pos+vec2(-epsilon.x,0),0.0);float e=getElevation(v_pos,0.0);float f=getElevation(v_pos+vec2(epsilon.x,0),0.0);float g=getElevation(v_pos+vec2(-epsilon.x,epsilon.y),0.0);float h=getElevation(v_pos+vec2(0,epsilon.y),0.0);float i=getElevation(v_pos+vec2(epsilon.x,epsilon.y),0.0);float exaggeration=u_zoom < 2.0 ? 0.4 : u_zoom < 4.5 ? 0.35 : 0.3;vec2 deriv=vec2((c+f+f+i)-(a+d+d+g),(g+h+h+i)-(a+b+b+c))/ pow(2.0,(u_zoom-u_maxzoom)*exaggeration+19.2562-u_zoom);gl_FragColor=clamp(vec4(deriv.x/2.0+0.5,deriv.y/2.0+0.5,1.0,1.0),0.0,1.0);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_dimension;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_texture_pos/8192.0)*scale+epsilon;}"),Ds=ui("uniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_latrange;uniform vec2 u_light;uniform vec4 u_shadow;uniform vec4 u_highlight;uniform vec4 u_accent;\n#define PI 3.141592653589793\nvoid main() {vec4 pixel=texture2D(u_image,v_pos);vec2 deriv=((pixel.rg*2.0)-1.0);float scaleFactor=cos(radians((u_latrange[0]-u_latrange[1])*(1.0-v_pos.y)+u_latrange[1]));float slope=atan(1.25*length(deriv)/scaleFactor);float aspect=deriv.x !=0.0 ? atan(deriv.y,-deriv.x) : PI/2.0*(deriv.y > 0.0 ? 1.0 :-1.0);float intensity=u_light.x;float azimuth=u_light.y+PI;float base=1.875-intensity*1.75;float maxValue=0.5*PI;float scaledSlope=intensity !=0.5 ? ((pow(base,slope)-1.0)/(pow(base,maxValue)-1.0))*maxValue : slope;float accent=cos(scaledSlope);vec4 accent_color=(1.0-accent)*u_accent*clamp(intensity*2.0,0.0,1.0);float shade=abs(mod((aspect+azimuth)/PI+0.5,2.0)-1.0);vec4 shade_color=mix(u_shadow,u_highlight,shade)*sin(scaledSlope)*clamp(intensity*2.0,0.0,1.0);gl_FragColor=accent_color*(1.0-shade_color.a)+shade_color;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=a_texture_pos/8192.0;}"),Rs=ui("uniform lowp float u_device_pixel_ratio;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);gl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define scale 0.015873016\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform vec2 u_units_to_pixels;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp float v_linesofar;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;v_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*2.0;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_width2=vec2(outset,inset);}"),Bs=ui("uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;varying highp float v_lineprogress;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);vec4 color=texture2D(u_image,vec2(v_lineprogress,0.5));gl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define MAX_LINE_DISTANCE 32767.0\n#define scale 0.015873016\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_units_to_pixels;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp float v_lineprogress;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;v_lineprogress=(floor(a_data.z/4.0)+a_data.w*64.0)*2.0/MAX_LINE_DISTANCE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_width2=vec2(outset,inset);}"),Ns=ui("uniform lowp float u_device_pixel_ratio;uniform vec2 u_texsize;uniform float u_fade;uniform mediump vec4 u_scale;uniform sampler2D u_image;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float pixelRatio=u_scale.x;float tileZoomRatio=u_scale.y;float fromScale=u_scale.z;float toScale=u_scale.w;vec2 display_size_a=vec2((pattern_br_a.x-pattern_tl_a.x)/pixelRatio,(pattern_br_a.y-pattern_tl_a.y)/pixelRatio);vec2 display_size_b=vec2((pattern_br_b.x-pattern_tl_b.x)/pixelRatio,(pattern_br_b.y-pattern_tl_b.y)/pixelRatio);vec2 pattern_size_a=vec2(display_size_a.x*fromScale/tileZoomRatio,display_size_a.y);vec2 pattern_size_b=vec2(display_size_b.x*toScale/tileZoomRatio,display_size_b.y);float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float x_a=mod(v_linesofar/pattern_size_a.x,1.0);float x_b=mod(v_linesofar/pattern_size_b.x,1.0);float y_a=0.5+(v_normal.y*clamp(v_width2.s,0.0,(pattern_size_a.y+2.0)/2.0)/pattern_size_a.y);float y_b=0.5+(v_normal.y*clamp(v_width2.s,0.0,(pattern_size_b.y+2.0)/2.0)/pattern_size_b.y);vec2 pos_a=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,vec2(x_a,y_a));vec2 pos_b=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,vec2(x_b,y_b));vec4 color=mix(texture2D(u_image,pos_a),texture2D(u_image,pos_b),u_fade);gl_FragColor=color*alpha*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define scale 0.015873016\n#define LINE_DISTANCE_SCALE 2.0\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform vec2 u_units_to_pixels;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_linesofar=a_linesofar;v_width2=vec2(outset,inset);}"),js=ui("uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;uniform float u_sdfgamma;uniform float u_mix;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float sdfdist_a=texture2D(u_image,v_tex_a).a;float sdfdist_b=texture2D(u_image,v_tex_b).a;float sdfdist=mix(sdfdist_a,sdfdist_b,u_mix);alpha*=smoothstep(0.5-u_sdfgamma/floorwidth,0.5+u_sdfgamma/floorwidth,sdfdist);gl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define scale 0.015873016\n#define LINE_DISTANCE_SCALE 2.0\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_patternscale_a;uniform float u_tex_y_a;uniform vec2 u_patternscale_b;uniform float u_tex_y_b;uniform vec2 u_units_to_pixels;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_tex_a=vec2(a_linesofar*u_patternscale_a.x/floorwidth,normal.y*u_patternscale_a.y+u_tex_y_a);v_tex_b=vec2(a_linesofar*u_patternscale_b.x/floorwidth,normal.y*u_patternscale_b.y+u_tex_y_b);v_width2=vec2(outset,inset);}"),Hs=ui("uniform float u_fade_t;uniform float u_opacity;uniform sampler2D u_image0;uniform sampler2D u_image1;varying vec2 v_pos0;varying vec2 v_pos1;uniform float u_brightness_low;uniform float u_brightness_high;uniform float u_saturation_factor;uniform float u_contrast_factor;uniform vec3 u_spin_weights;void main() {vec4 color0=texture2D(u_image0,v_pos0);vec4 color1=texture2D(u_image1,v_pos1);if (color0.a > 0.0) {color0.rgb=color0.rgb/color0.a;}if (color1.a > 0.0) {color1.rgb=color1.rgb/color1.a;}vec4 color=mix(color0,color1,u_fade_t);color.a*=u_opacity;vec3 rgb=color.rgb;rgb=vec3(dot(rgb,u_spin_weights.xyz),dot(rgb,u_spin_weights.zxy),dot(rgb,u_spin_weights.yzx));float average=(color.r+color.g+color.b)/3.0;rgb+=(average-rgb)*u_saturation_factor;rgb=(rgb-0.5)*u_contrast_factor+0.5;vec3 u_high_vec=vec3(u_brightness_low,u_brightness_low,u_brightness_low);vec3 u_low_vec=vec3(u_brightness_high,u_brightness_high,u_brightness_high);gl_FragColor=vec4(mix(u_high_vec,u_low_vec,rgb)*color.a,color.a);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_tl_parent;uniform float u_scale_parent;uniform float u_buffer_scale;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos0;varying vec2 v_pos1;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos0=(((a_texture_pos/8192.0)-0.5)/u_buffer_scale )+0.5;v_pos1=(v_pos0*u_scale_parent)+u_tl_parent;}"),qs=ui("uniform sampler2D u_texture;varying vec2 v_tex;varying float v_fade_opacity;\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\nlowp float alpha=opacity*v_fade_opacity;gl_FragColor=texture2D(u_texture,v_tex)*alpha;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform highp float u_camera_to_center_distance;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform float u_fade_change;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform vec2 u_texsize;varying vec2 v_tex;varying float v_fade_opacity;\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size[0],a_size[1],u_size_t)/256.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size[0]/256.0;} else if (!u_is_size_zoom_constant && u_is_size_feature_constant) {size=u_size;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale),0.0,1.0);v_tex=a_tex/u_texsize;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;v_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));}"),Ws=ui("#define SDF_PX 8.0\nuniform bool u_is_halo;uniform sampler2D u_texture;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;uniform bool u_is_text;varying vec2 v_data0;varying vec3 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nfloat EDGE_GAMMA=0.105/u_device_pixel_ratio;vec2 tex=v_data0.xy;float gamma_scale=v_data1.x;float size=v_data1.y;float fade_opacity=v_data1[2];float fontScale=u_is_text ? size/24.0 : size;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;varying vec2 v_data0;varying vec3 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size[0],a_size[1],u_size_t)/256.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size[0]/256.0;} else if (!u_is_size_zoom_constant && u_is_size_feature_constant) {size=u_size;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale),0.0,1.0);float gamma_scale=gl_Position.w;vec2 tex=a_tex/u_texsize;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0=vec2(tex.x,tex.y);v_data1=vec3(gamma_scale,size,interpolated_fade_opacity);}");function ui(Ee,ze){var Be=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,Ue={};return{fragmentSource:Ee=Ee.replace(Be,(function(Ee,ze,Be,We,$e){return Ue[$e]=!0,"define"===ze?"\n#ifndef HAS_UNIFORM_u_"+$e+"\nvarying "+Be+" "+We+" "+$e+";\n#else\nuniform "+Be+" "+We+" u_"+$e+";\n#endif\n":"\n#ifdef HAS_UNIFORM_u_"+$e+"\n "+Be+" "+We+" "+$e+" = u_"+$e+";\n#endif\n"})),vertexSource:ze=ze.replace(Be,(function(Ee,ze,Be,We,$e){var Qe="float"===We?"vec2":"vec4",rt=$e.match(/color/)?"color":Qe;return Ue[$e]?"define"===ze?"\n#ifndef HAS_UNIFORM_u_"+$e+"\nuniform lowp float u_"+$e+"_t;\nattribute "+Be+" "+Qe+" a_"+$e+";\nvarying "+Be+" "+We+" "+$e+";\n#else\nuniform "+Be+" "+We+" u_"+$e+";\n#endif\n":"vec4"===rt?"\n#ifndef HAS_UNIFORM_u_"+$e+"\n "+$e+" = a_"+$e+";\n#else\n "+Be+" "+We+" "+$e+" = u_"+$e+";\n#endif\n":"\n#ifndef HAS_UNIFORM_u_"+$e+"\n "+$e+" = unpack_mix_"+rt+"(a_"+$e+", u_"+$e+"_t);\n#else\n "+Be+" "+We+" "+$e+" = u_"+$e+";\n#endif\n":"define"===ze?"\n#ifndef HAS_UNIFORM_u_"+$e+"\nuniform lowp float u_"+$e+"_t;\nattribute "+Be+" "+Qe+" a_"+$e+";\n#else\nuniform "+Be+" "+We+" u_"+$e+";\n#endif\n":"vec4"===rt?"\n#ifndef HAS_UNIFORM_u_"+$e+"\n "+Be+" "+We+" "+$e+" = a_"+$e+";\n#else\n "+Be+" "+We+" "+$e+" = u_"+$e+";\n#endif\n":"\n#ifndef HAS_UNIFORM_u_"+$e+"\n "+Be+" "+We+" "+$e+" = unpack_mix_"+rt+"(a_"+$e+", u_"+$e+"_t);\n#else\n "+Be+" "+We+" "+$e+" = u_"+$e+";\n#endif\n"}))}}var Zs=Object.freeze({prelude:rs,background:ns,backgroundPattern:as,circle:os,clippingMask:ss,heatmap:ls,heatmapTexture:cs,collisionBox:us,collisionCircle:fs,debug:hs,fill:ms,fillOutline:vs,fillOutlinePattern:ks,fillPattern:Ms,fillExtrusion:Ss,fillExtrusionPattern:Es,hillshadePrepare:Ls,hillshade:Ds,line:Rs,lineGradient:Bs,linePattern:Ns,lineSDF:js,raster:Hs,symbolIcon:qs,symbolSDF:Ws}),pi=function(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null};pi.prototype.bind=function(Ee,ze,Be,Ue,We,$e,Qe,rt){this.context=Ee;for(var it=this.boundPaintVertexBuffers.length!==Ue.length,at=0;!it&&at>16,it>>16],u_pixel_coord_lower:[65535&rt,65535&it]}}di.prototype.draw=function(Ee,ze,Be,Ue,We,$e,Qe,rt,it,at,ct,ft,xt,kt,Lt,Ut){var er,tr=Ee.gl;for(var rr in Ee.program.set(this.program),Ee.setDepthMode(Be),Ee.setStencilMode(Ue),Ee.setColorMode(We),Ee.setCullFace($e),this.fixedUniforms)this.fixedUniforms[rr].set(Qe[rr]);kt&&kt.setUniforms(Ee,this.binderUniforms,ft,{zoom:xt});for(var ar=(er={},er[tr.LINES]=2,er[tr.TRIANGLES]=3,er[tr.LINE_STRIP]=1,er)[ze],Lr=0,Qr=ct.get();Lr0?1-1/(1.001-Qe):-Qe),u_contrast_factor:($e=We.paint.get("raster-contrast"),$e>0?1/(1-$e):1+$e),u_spin_weights:Fi(We.paint.get("raster-hue-rotate"))};var $e,Qe};function Fi(Ee){Ee*=Math.PI/180;var ze=Math.sin(Ee),Be=Math.cos(Ee);return[(2*Be+1)/3,(-Math.sqrt(3)*ze-Be+1)/3,(Math.sqrt(3)*ze-Be+1)/3]}var Ui=function(Ee,ze,Be,Ue,We,$e,Qe,rt,it,at){var ct=We.transform;return{u_is_size_zoom_constant:+("constant"===Ee||"source"===Ee),u_is_size_feature_constant:+("constant"===Ee||"camera"===Ee),u_size_t:ze?ze.uSizeT:0,u_size:ze?ze.uSize:0,u_camera_to_center_distance:ct.cameraToCenterDistance,u_pitch:ct.pitch/360*2*Math.PI,u_rotate_symbol:+Be,u_aspect_ratio:ct.width/ct.height,u_fade_change:We.options.fadeDuration?We.symbolFadeChange:1,u_matrix:$e,u_label_plane_matrix:Qe,u_coord_matrix:rt,u_is_text:+it,u_pitch_with_map:+Ue,u_texsize:at,u_texture:0}},Ni=function(ze,Be,Ue,We,$e,Qe,rt,it,at,ct,ft){var xt=$e.transform;return Ee.extend(Ui(ze,Be,Ue,We,$e,Qe,rt,it,at,ct),{u_gamma_scale:We?Math.cos(xt._pitch)*xt.cameraToCenterDistance:1,u_device_pixel_ratio:Ee.browser.devicePixelRatio,u_is_halo:+ft})},Zi=function(Ee,ze,Be){return{u_matrix:Ee,u_opacity:ze,u_color:Be}},qi=function(ze,Be,Ue,We,$e,Qe){return Ee.extend(function(Ee,ze,Be,Ue){var We=Be.imageManager.getPattern(Ee.from),$e=Be.imageManager.getPattern(Ee.to),Qe=Be.imageManager.getPixelSize(),rt=Qe.width,it=Qe.height,at=Math.pow(2,Ue.tileID.overscaledZ),ct=Ue.tileSize*Math.pow(2,Be.transform.tileZoom)/at,ft=ct*(Ue.tileID.canonical.x+Ue.tileID.wrap*at),xt=ct*Ue.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:We.tl,u_pattern_br_a:We.br,u_pattern_tl_b:$e.tl,u_pattern_br_b:$e.br,u_texsize:[rt,it],u_mix:ze.t,u_pattern_size_a:We.displaySize,u_pattern_size_b:$e.displaySize,u_scale_a:ze.fromScale,u_scale_b:ze.toScale,u_tile_units_to_pixels:1/ue(Ue,1,Be.transform.tileZoom),u_pixel_coord_upper:[ft>>16,xt>>16],u_pixel_coord_lower:[65535&ft,65535&xt]}}(We,Qe,Ue,$e),{u_matrix:ze,u_opacity:Be})},Xs={fillExtrusion:function(ze,Be){return{u_matrix:new Ee.UniformMatrix4f(ze,Be.u_matrix),u_lightpos:new Ee.Uniform3f(ze,Be.u_lightpos),u_lightintensity:new Ee.Uniform1f(ze,Be.u_lightintensity),u_lightcolor:new Ee.Uniform3f(ze,Be.u_lightcolor),u_vertical_gradient:new Ee.Uniform1f(ze,Be.u_vertical_gradient),u_opacity:new Ee.Uniform1f(ze,Be.u_opacity)}},fillExtrusionPattern:function(ze,Be){return{u_matrix:new Ee.UniformMatrix4f(ze,Be.u_matrix),u_lightpos:new Ee.Uniform3f(ze,Be.u_lightpos),u_lightintensity:new Ee.Uniform1f(ze,Be.u_lightintensity),u_lightcolor:new Ee.Uniform3f(ze,Be.u_lightcolor),u_vertical_gradient:new Ee.Uniform1f(ze,Be.u_vertical_gradient),u_height_factor:new Ee.Uniform1f(ze,Be.u_height_factor),u_image:new Ee.Uniform1i(ze,Be.u_image),u_texsize:new Ee.Uniform2f(ze,Be.u_texsize),u_pixel_coord_upper:new Ee.Uniform2f(ze,Be.u_pixel_coord_upper),u_pixel_coord_lower:new Ee.Uniform2f(ze,Be.u_pixel_coord_lower),u_scale:new Ee.Uniform4f(ze,Be.u_scale),u_fade:new Ee.Uniform1f(ze,Be.u_fade),u_opacity:new Ee.Uniform1f(ze,Be.u_opacity)}},fill:function(ze,Be){return{u_matrix:new Ee.UniformMatrix4f(ze,Be.u_matrix)}},fillPattern:function(ze,Be){return{u_matrix:new Ee.UniformMatrix4f(ze,Be.u_matrix),u_image:new Ee.Uniform1i(ze,Be.u_image),u_texsize:new Ee.Uniform2f(ze,Be.u_texsize),u_pixel_coord_upper:new Ee.Uniform2f(ze,Be.u_pixel_coord_upper),u_pixel_coord_lower:new Ee.Uniform2f(ze,Be.u_pixel_coord_lower),u_scale:new Ee.Uniform4f(ze,Be.u_scale),u_fade:new Ee.Uniform1f(ze,Be.u_fade)}},fillOutline:function(ze,Be){return{u_matrix:new Ee.UniformMatrix4f(ze,Be.u_matrix),u_world:new Ee.Uniform2f(ze,Be.u_world)}},fillOutlinePattern:function(ze,Be){return{u_matrix:new Ee.UniformMatrix4f(ze,Be.u_matrix),u_world:new Ee.Uniform2f(ze,Be.u_world),u_image:new Ee.Uniform1i(ze,Be.u_image),u_texsize:new Ee.Uniform2f(ze,Be.u_texsize),u_pixel_coord_upper:new Ee.Uniform2f(ze,Be.u_pixel_coord_upper),u_pixel_coord_lower:new Ee.Uniform2f(ze,Be.u_pixel_coord_lower),u_scale:new Ee.Uniform4f(ze,Be.u_scale),u_fade:new Ee.Uniform1f(ze,Be.u_fade)}},circle:function(ze,Be){return{u_camera_to_center_distance:new Ee.Uniform1f(ze,Be.u_camera_to_center_distance),u_scale_with_map:new Ee.Uniform1i(ze,Be.u_scale_with_map),u_pitch_with_map:new Ee.Uniform1i(ze,Be.u_pitch_with_map),u_extrude_scale:new Ee.Uniform2f(ze,Be.u_extrude_scale),u_device_pixel_ratio:new Ee.Uniform1f(ze,Be.u_device_pixel_ratio),u_matrix:new Ee.UniformMatrix4f(ze,Be.u_matrix)}},collisionBox:wi,collisionCircle:wi,debug:function(ze,Be){return{u_color:new Ee.UniformColor(ze,Be.u_color),u_matrix:new Ee.UniformMatrix4f(ze,Be.u_matrix)}},clippingMask:function(ze,Be){return{u_matrix:new Ee.UniformMatrix4f(ze,Be.u_matrix)}},heatmap:function(ze,Be){return{u_extrude_scale:new Ee.Uniform1f(ze,Be.u_extrude_scale),u_intensity:new Ee.Uniform1f(ze,Be.u_intensity),u_matrix:new Ee.UniformMatrix4f(ze,Be.u_matrix)}},heatmapTexture:function(ze,Be){return{u_matrix:new Ee.UniformMatrix4f(ze,Be.u_matrix),u_world:new Ee.Uniform2f(ze,Be.u_world),u_image:new Ee.Uniform1i(ze,Be.u_image),u_color_ramp:new Ee.Uniform1i(ze,Be.u_color_ramp),u_opacity:new Ee.Uniform1f(ze,Be.u_opacity)}},hillshade:function(ze,Be){return{u_matrix:new Ee.UniformMatrix4f(ze,Be.u_matrix),u_image:new Ee.Uniform1i(ze,Be.u_image),u_latrange:new Ee.Uniform2f(ze,Be.u_latrange),u_light:new Ee.Uniform2f(ze,Be.u_light),u_shadow:new Ee.UniformColor(ze,Be.u_shadow),u_highlight:new Ee.UniformColor(ze,Be.u_highlight),u_accent:new Ee.UniformColor(ze,Be.u_accent)}},hillshadePrepare:function(ze,Be){return{u_matrix:new Ee.UniformMatrix4f(ze,Be.u_matrix),u_image:new Ee.Uniform1i(ze,Be.u_image),u_dimension:new Ee.Uniform2f(ze,Be.u_dimension),u_zoom:new Ee.Uniform1f(ze,Be.u_zoom),u_maxzoom:new Ee.Uniform1f(ze,Be.u_maxzoom)}},line:function(ze,Be){return{u_matrix:new Ee.UniformMatrix4f(ze,Be.u_matrix),u_ratio:new Ee.Uniform1f(ze,Be.u_ratio),u_device_pixel_ratio:new Ee.Uniform1f(ze,Be.u_device_pixel_ratio),u_units_to_pixels:new Ee.Uniform2f(ze,Be.u_units_to_pixels)}},lineGradient:function(ze,Be){return{u_matrix:new Ee.UniformMatrix4f(ze,Be.u_matrix),u_ratio:new Ee.Uniform1f(ze,Be.u_ratio),u_device_pixel_ratio:new Ee.Uniform1f(ze,Be.u_device_pixel_ratio),u_units_to_pixels:new Ee.Uniform2f(ze,Be.u_units_to_pixels),u_image:new Ee.Uniform1i(ze,Be.u_image)}},linePattern:function(ze,Be){return{u_matrix:new Ee.UniformMatrix4f(ze,Be.u_matrix),u_texsize:new Ee.Uniform2f(ze,Be.u_texsize),u_ratio:new Ee.Uniform1f(ze,Be.u_ratio),u_device_pixel_ratio:new Ee.Uniform1f(ze,Be.u_device_pixel_ratio),u_image:new Ee.Uniform1i(ze,Be.u_image),u_units_to_pixels:new Ee.Uniform2f(ze,Be.u_units_to_pixels),u_scale:new Ee.Uniform4f(ze,Be.u_scale),u_fade:new Ee.Uniform1f(ze,Be.u_fade)}},lineSDF:function(ze,Be){return{u_matrix:new Ee.UniformMatrix4f(ze,Be.u_matrix),u_ratio:new Ee.Uniform1f(ze,Be.u_ratio),u_device_pixel_ratio:new Ee.Uniform1f(ze,Be.u_device_pixel_ratio),u_units_to_pixels:new Ee.Uniform2f(ze,Be.u_units_to_pixels),u_patternscale_a:new Ee.Uniform2f(ze,Be.u_patternscale_a),u_patternscale_b:new Ee.Uniform2f(ze,Be.u_patternscale_b),u_sdfgamma:new Ee.Uniform1f(ze,Be.u_sdfgamma),u_image:new Ee.Uniform1i(ze,Be.u_image),u_tex_y_a:new Ee.Uniform1f(ze,Be.u_tex_y_a),u_tex_y_b:new Ee.Uniform1f(ze,Be.u_tex_y_b),u_mix:new Ee.Uniform1f(ze,Be.u_mix)}},raster:function(ze,Be){return{u_matrix:new Ee.UniformMatrix4f(ze,Be.u_matrix),u_tl_parent:new Ee.Uniform2f(ze,Be.u_tl_parent),u_scale_parent:new Ee.Uniform1f(ze,Be.u_scale_parent),u_buffer_scale:new Ee.Uniform1f(ze,Be.u_buffer_scale),u_fade_t:new Ee.Uniform1f(ze,Be.u_fade_t),u_opacity:new Ee.Uniform1f(ze,Be.u_opacity),u_image0:new Ee.Uniform1i(ze,Be.u_image0),u_image1:new Ee.Uniform1i(ze,Be.u_image1),u_brightness_low:new Ee.Uniform1f(ze,Be.u_brightness_low),u_brightness_high:new Ee.Uniform1f(ze,Be.u_brightness_high),u_saturation_factor:new Ee.Uniform1f(ze,Be.u_saturation_factor),u_contrast_factor:new Ee.Uniform1f(ze,Be.u_contrast_factor),u_spin_weights:new Ee.Uniform3f(ze,Be.u_spin_weights)}},symbolIcon:function(ze,Be){return{u_is_size_zoom_constant:new Ee.Uniform1i(ze,Be.u_is_size_zoom_constant),u_is_size_feature_constant:new Ee.Uniform1i(ze,Be.u_is_size_feature_constant),u_size_t:new Ee.Uniform1f(ze,Be.u_size_t),u_size:new Ee.Uniform1f(ze,Be.u_size),u_camera_to_center_distance:new Ee.Uniform1f(ze,Be.u_camera_to_center_distance),u_pitch:new Ee.Uniform1f(ze,Be.u_pitch),u_rotate_symbol:new Ee.Uniform1i(ze,Be.u_rotate_symbol),u_aspect_ratio:new Ee.Uniform1f(ze,Be.u_aspect_ratio),u_fade_change:new Ee.Uniform1f(ze,Be.u_fade_change),u_matrix:new Ee.UniformMatrix4f(ze,Be.u_matrix),u_label_plane_matrix:new Ee.UniformMatrix4f(ze,Be.u_label_plane_matrix),u_coord_matrix:new Ee.UniformMatrix4f(ze,Be.u_coord_matrix),u_is_text:new Ee.Uniform1f(ze,Be.u_is_text),u_pitch_with_map:new Ee.Uniform1i(ze,Be.u_pitch_with_map),u_texsize:new Ee.Uniform2f(ze,Be.u_texsize),u_texture:new Ee.Uniform1i(ze,Be.u_texture)}},symbolSDF:function(ze,Be){return{u_is_size_zoom_constant:new Ee.Uniform1i(ze,Be.u_is_size_zoom_constant),u_is_size_feature_constant:new Ee.Uniform1i(ze,Be.u_is_size_feature_constant),u_size_t:new Ee.Uniform1f(ze,Be.u_size_t),u_size:new Ee.Uniform1f(ze,Be.u_size),u_camera_to_center_distance:new Ee.Uniform1f(ze,Be.u_camera_to_center_distance),u_pitch:new Ee.Uniform1f(ze,Be.u_pitch),u_rotate_symbol:new Ee.Uniform1i(ze,Be.u_rotate_symbol),u_aspect_ratio:new Ee.Uniform1f(ze,Be.u_aspect_ratio),u_fade_change:new Ee.Uniform1f(ze,Be.u_fade_change),u_matrix:new Ee.UniformMatrix4f(ze,Be.u_matrix),u_label_plane_matrix:new Ee.UniformMatrix4f(ze,Be.u_label_plane_matrix),u_coord_matrix:new Ee.UniformMatrix4f(ze,Be.u_coord_matrix),u_is_text:new Ee.Uniform1f(ze,Be.u_is_text),u_pitch_with_map:new Ee.Uniform1i(ze,Be.u_pitch_with_map),u_texsize:new Ee.Uniform2f(ze,Be.u_texsize),u_texture:new Ee.Uniform1i(ze,Be.u_texture),u_gamma_scale:new Ee.Uniform1f(ze,Be.u_gamma_scale),u_device_pixel_ratio:new Ee.Uniform1f(ze,Be.u_device_pixel_ratio),u_is_halo:new Ee.Uniform1f(ze,Be.u_is_halo)}},background:function(ze,Be){return{u_matrix:new Ee.UniformMatrix4f(ze,Be.u_matrix),u_opacity:new Ee.Uniform1f(ze,Be.u_opacity),u_color:new Ee.UniformColor(ze,Be.u_color)}},backgroundPattern:function(ze,Be){return{u_matrix:new Ee.UniformMatrix4f(ze,Be.u_matrix),u_opacity:new Ee.Uniform1f(ze,Be.u_opacity),u_image:new Ee.Uniform1i(ze,Be.u_image),u_pattern_tl_a:new Ee.Uniform2f(ze,Be.u_pattern_tl_a),u_pattern_br_a:new Ee.Uniform2f(ze,Be.u_pattern_br_a),u_pattern_tl_b:new Ee.Uniform2f(ze,Be.u_pattern_tl_b),u_pattern_br_b:new Ee.Uniform2f(ze,Be.u_pattern_br_b),u_texsize:new Ee.Uniform2f(ze,Be.u_texsize),u_mix:new Ee.Uniform1f(ze,Be.u_mix),u_pattern_size_a:new Ee.Uniform2f(ze,Be.u_pattern_size_a),u_pattern_size_b:new Ee.Uniform2f(ze,Be.u_pattern_size_b),u_scale_a:new Ee.Uniform1f(ze,Be.u_scale_a),u_scale_b:new Ee.Uniform1f(ze,Be.u_scale_b),u_pixel_coord_upper:new Ee.Uniform2f(ze,Be.u_pixel_coord_upper),u_pixel_coord_lower:new Ee.Uniform2f(ze,Be.u_pixel_coord_lower),u_tile_units_to_pixels:new Ee.Uniform1f(ze,Be.u_tile_units_to_pixels)}}};function Vi(ze,Be){for(var Ue=ze.sort((function(Ee,ze){return Ee.tileID.isLessThan(ze.tileID)?-1:ze.tileID.isLessThan(Ee.tileID)?1:0})),We=0;We0){var rt=Ee.browser.now(),it=(rt-ze.timeAdded)/Qe,at=Be?(rt-Be.timeAdded)/Qe:-1,ct=Ue.getSource(),ft=$e.coveringZoomLevel({tileSize:ct.tileSize,roundZoom:ct.roundZoom}),xt=!Be||Math.abs(Be.tileID.overscaledZ-ft)>Math.abs(ze.tileID.overscaledZ-ft),kt=xt&&ze.refreshedUponExpiration?1:Ee.clamp(xt?it:1-at,0,1);return ze.refreshedUponExpiration&&it>=1&&(ze.refreshedUponExpiration=!1),Be?{opacity:1,mix:1-kt}:{opacity:kt,mix:0}}return{opacity:1,mix:0}}function ro(ze,Be,Ue){var We=ze.context,$e=We.gl,Qe=Ue.posMatrix,rt=ze.useProgram("debug"),it=It.disabled,at=St.disabled,ct=ze.colorModeForRenderPass(),ft="$debug";rt.draw(We,$e.LINE_STRIP,it,at,ct,Pt.disabled,Ti(Qe,Ee.Color.red),ft,ze.debugBuffer,ze.tileBorderIndexBuffer,ze.debugSegments);for(var xt=Be.getTileByID(Ue.key).latestRawTileData,kt=xt&&xt.byteLength||0,Lt=Math.floor(kt/1024),Ut=Be.getTile(Ue).tileSize,er=512/Math.min(Ut,512),tr=function(Ee,ze,Be,Ue){Ue=Ue||1;var We,$e,Qe,rt,it,at,ct,ft,xt=[];for(We=0,$e=Ee.length;We<$e;We++)if(it=Ks[Ee[We]]){for(ft=null,Qe=0,rt=it[1].length;Qe":[24,[4,18,20,9,4,0]],"?":[18,[3,16,3,17,4,19,5,20,7,21,11,21,13,20,14,19,15,17,15,15,14,13,13,12,9,10,9,7,-1,-1,9,2,8,1,9,0,10,1,9,2]],"@":[27,[18,13,17,15,15,16,12,16,10,15,9,14,8,11,8,8,9,6,11,5,14,5,16,6,17,8,-1,-1,12,16,10,14,9,11,9,8,10,6,11,5,-1,-1,18,16,17,8,17,6,19,5,21,5,23,7,24,10,24,12,23,15,22,17,20,19,18,20,15,21,12,21,9,20,7,19,5,17,4,15,3,12,3,9,4,6,5,4,7,2,9,1,12,0,15,0,18,1,20,2,21,3,-1,-1,19,16,18,8,18,6,19,5]],A:[18,[9,21,1,0,-1,-1,9,21,17,0,-1,-1,4,7,14,7]],B:[21,[4,21,4,0,-1,-1,4,21,13,21,16,20,17,19,18,17,18,15,17,13,16,12,13,11,-1,-1,4,11,13,11,16,10,17,9,18,7,18,4,17,2,16,1,13,0,4,0]],C:[21,[18,16,17,18,15,20,13,21,9,21,7,20,5,18,4,16,3,13,3,8,4,5,5,3,7,1,9,0,13,0,15,1,17,3,18,5]],D:[21,[4,21,4,0,-1,-1,4,21,11,21,14,20,16,18,17,16,18,13,18,8,17,5,16,3,14,1,11,0,4,0]],E:[19,[4,21,4,0,-1,-1,4,21,17,21,-1,-1,4,11,12,11,-1,-1,4,0,17,0]],F:[18,[4,21,4,0,-1,-1,4,21,17,21,-1,-1,4,11,12,11]],G:[21,[18,16,17,18,15,20,13,21,9,21,7,20,5,18,4,16,3,13,3,8,4,5,5,3,7,1,9,0,13,0,15,1,17,3,18,5,18,8,-1,-1,13,8,18,8]],H:[22,[4,21,4,0,-1,-1,18,21,18,0,-1,-1,4,11,18,11]],I:[8,[4,21,4,0]],J:[16,[12,21,12,5,11,2,10,1,8,0,6,0,4,1,3,2,2,5,2,7]],K:[21,[4,21,4,0,-1,-1,18,21,4,7,-1,-1,9,12,18,0]],L:[17,[4,21,4,0,-1,-1,4,0,16,0]],M:[24,[4,21,4,0,-1,-1,4,21,12,0,-1,-1,20,21,12,0,-1,-1,20,21,20,0]],N:[22,[4,21,4,0,-1,-1,4,21,18,0,-1,-1,18,21,18,0]],O:[22,[9,21,7,20,5,18,4,16,3,13,3,8,4,5,5,3,7,1,9,0,13,0,15,1,17,3,18,5,19,8,19,13,18,16,17,18,15,20,13,21,9,21]],P:[21,[4,21,4,0,-1,-1,4,21,13,21,16,20,17,19,18,17,18,14,17,12,16,11,13,10,4,10]],Q:[22,[9,21,7,20,5,18,4,16,3,13,3,8,4,5,5,3,7,1,9,0,13,0,15,1,17,3,18,5,19,8,19,13,18,16,17,18,15,20,13,21,9,21,-1,-1,12,4,18,-2]],R:[21,[4,21,4,0,-1,-1,4,21,13,21,16,20,17,19,18,17,18,15,17,13,16,12,13,11,4,11,-1,-1,11,11,18,0]],S:[20,[17,18,15,20,12,21,8,21,5,20,3,18,3,16,4,14,5,13,7,12,13,10,15,9,16,8,17,6,17,3,15,1,12,0,8,0,5,1,3,3]],T:[16,[8,21,8,0,-1,-1,1,21,15,21]],U:[22,[4,21,4,6,5,3,7,1,10,0,12,0,15,1,17,3,18,6,18,21]],V:[18,[1,21,9,0,-1,-1,17,21,9,0]],W:[24,[2,21,7,0,-1,-1,12,21,7,0,-1,-1,12,21,17,0,-1,-1,22,21,17,0]],X:[20,[3,21,17,0,-1,-1,17,21,3,0]],Y:[18,[1,21,9,11,9,0,-1,-1,17,21,9,11]],Z:[20,[17,21,3,0,-1,-1,3,21,17,21,-1,-1,3,0,17,0]],"[":[14,[4,25,4,-7,-1,-1,5,25,5,-7,-1,-1,4,25,11,25,-1,-1,4,-7,11,-7]],"\\":[14,[0,21,14,-3]],"]":[14,[9,25,9,-7,-1,-1,10,25,10,-7,-1,-1,3,25,10,25,-1,-1,3,-7,10,-7]],"^":[16,[6,15,8,18,10,15,-1,-1,3,12,8,17,13,12,-1,-1,8,17,8,0]],_:[16,[0,-2,16,-2]],"`":[10,[6,21,5,20,4,18,4,16,5,15,6,16,5,17]],a:[19,[15,14,15,0,-1,-1,15,11,13,13,11,14,8,14,6,13,4,11,3,8,3,6,4,3,6,1,8,0,11,0,13,1,15,3]],b:[19,[4,21,4,0,-1,-1,4,11,6,13,8,14,11,14,13,13,15,11,16,8,16,6,15,3,13,1,11,0,8,0,6,1,4,3]],c:[18,[15,11,13,13,11,14,8,14,6,13,4,11,3,8,3,6,4,3,6,1,8,0,11,0,13,1,15,3]],d:[19,[15,21,15,0,-1,-1,15,11,13,13,11,14,8,14,6,13,4,11,3,8,3,6,4,3,6,1,8,0,11,0,13,1,15,3]],e:[18,[3,8,15,8,15,10,14,12,13,13,11,14,8,14,6,13,4,11,3,8,3,6,4,3,6,1,8,0,11,0,13,1,15,3]],f:[12,[10,21,8,21,6,20,5,17,5,0,-1,-1,2,14,9,14]],g:[19,[15,14,15,-2,14,-5,13,-6,11,-7,8,-7,6,-6,-1,-1,15,11,13,13,11,14,8,14,6,13,4,11,3,8,3,6,4,3,6,1,8,0,11,0,13,1,15,3]],h:[19,[4,21,4,0,-1,-1,4,10,7,13,9,14,12,14,14,13,15,10,15,0]],i:[8,[3,21,4,20,5,21,4,22,3,21,-1,-1,4,14,4,0]],j:[10,[5,21,6,20,7,21,6,22,5,21,-1,-1,6,14,6,-3,5,-6,3,-7,1,-7]],k:[17,[4,21,4,0,-1,-1,14,14,4,4,-1,-1,8,8,15,0]],l:[8,[4,21,4,0]],m:[30,[4,14,4,0,-1,-1,4,10,7,13,9,14,12,14,14,13,15,10,15,0,-1,-1,15,10,18,13,20,14,23,14,25,13,26,10,26,0]],n:[19,[4,14,4,0,-1,-1,4,10,7,13,9,14,12,14,14,13,15,10,15,0]],o:[19,[8,14,6,13,4,11,3,8,3,6,4,3,6,1,8,0,11,0,13,1,15,3,16,6,16,8,15,11,13,13,11,14,8,14]],p:[19,[4,14,4,-7,-1,-1,4,11,6,13,8,14,11,14,13,13,15,11,16,8,16,6,15,3,13,1,11,0,8,0,6,1,4,3]],q:[19,[15,14,15,-7,-1,-1,15,11,13,13,11,14,8,14,6,13,4,11,3,8,3,6,4,3,6,1,8,0,11,0,13,1,15,3]],r:[13,[4,14,4,0,-1,-1,4,8,5,11,7,13,9,14,12,14]],s:[17,[14,11,13,13,10,14,7,14,4,13,3,11,4,9,6,8,11,7,13,6,14,4,14,3,13,1,10,0,7,0,4,1,3,3]],t:[12,[5,21,5,4,6,1,8,0,10,0,-1,-1,2,14,9,14]],u:[19,[4,14,4,4,5,1,7,0,10,0,12,1,15,4,-1,-1,15,14,15,0]],v:[16,[2,14,8,0,-1,-1,14,14,8,0]],w:[22,[3,14,7,0,-1,-1,11,14,7,0,-1,-1,11,14,15,0,-1,-1,19,14,15,0]],x:[17,[3,14,14,0,-1,-1,14,14,3,0]],y:[16,[2,14,8,0,-1,-1,14,14,8,0,6,-4,4,-6,2,-7,1,-7]],z:[17,[14,14,3,0,-1,-1,3,14,14,14,-1,-1,3,0,14,0]],"{":[14,[9,25,7,24,6,23,5,21,5,19,6,17,7,16,8,14,8,12,6,10,-1,-1,7,24,6,22,6,20,7,18,8,17,9,15,9,13,8,11,4,9,8,7,9,5,9,3,8,1,7,0,6,-2,6,-4,7,-6,-1,-1,6,8,8,6,8,4,7,2,6,1,5,-1,5,-3,6,-5,7,-6,9,-7]],"|":[8,[4,25,4,-7]],"}":[14,[5,25,7,24,8,23,9,21,9,19,8,17,7,16,6,14,6,12,8,10,-1,-1,7,24,8,22,8,20,7,18,6,17,5,15,5,13,6,11,10,9,6,7,5,5,5,3,6,1,7,0,8,-2,8,-4,7,-6,-1,-1,8,8,6,6,6,4,7,2,8,1,9,-1,9,-3,8,-5,7,-6,5,-7]],"~":[24,[3,6,3,8,4,11,6,12,8,12,10,11,14,8,16,7,18,7,20,8,21,10,-1,-1,3,8,4,10,6,11,8,11,10,10,14,7,16,6,18,6,20,7,21,10,21,12]]},Qs={symbol:function(Ee,ze,Be,Ue,We){if("translucent"===Ee.renderPass){var $e=St.disabled,Qe=Ee.colorModeForRenderPass();0!==Be.paint.get("icon-opacity").constantOr(1)&&Yi(Ee,ze,Be,Ue,!1,Be.paint.get("icon-translate"),Be.paint.get("icon-translate-anchor"),Be.layout.get("icon-rotation-alignment"),Be.layout.get("icon-pitch-alignment"),Be.layout.get("icon-keep-upright"),$e,Qe,We),0!==Be.paint.get("text-opacity").constantOr(1)&&Yi(Ee,ze,Be,Ue,!0,Be.paint.get("text-translate"),Be.paint.get("text-translate-anchor"),Be.layout.get("text-rotation-alignment"),Be.layout.get("text-pitch-alignment"),Be.layout.get("text-keep-upright"),$e,Qe,We),ze.map.showCollisionBoxes&&function(Ee,ze,Be,Ue){Wi(Ee,ze,Be,Ue,!1),Wi(Ee,ze,Be,Ue,!0)}(Ee,ze,Be,Ue)}},circle:function(ze,Be,Ue,We){if("translucent"===ze.renderPass){var $e=Ue.paint.get("circle-opacity"),Qe=Ue.paint.get("circle-stroke-width"),rt=Ue.paint.get("circle-stroke-opacity"),it=void 0!==Ue.layout.get("circle-sort-key").constantOr(1);if(0!==$e.constantOr(1)||0!==Qe.constantOr(1)&&0!==rt.constantOr(1)){for(var at=ze.context,ct=at.gl,ft=ze.depthModeForSublayer(0,It.ReadOnly),xt=St.disabled,kt=ze.colorModeForRenderPass(),Lt=[],Ut=0;Utze.y){var Be=Ee;Ee=ze,ze=Be}return{x0:Ee.x,y0:Ee.y,x1:ze.x,y1:ze.y,dx:ze.x-Ee.x,dy:ze.y-Ee.y}}function co(Ee,ze,Be,Ue,We){var $e=Math.max(Be,Math.floor(ze.y0)),Qe=Math.min(Ue,Math.ceil(ze.y1));if(Ee.x0===ze.x0&&Ee.y0===ze.y0?Ee.x0+ze.dy/Ee.dy*Ee.dx0,ft=ze.dx<0,xt=$e;xtit.dy&&(Qe=rt,rt=it,it=Qe),rt.dy>at.dy&&(Qe=rt,rt=at,at=Qe),it.dy>at.dy&&(Qe=it,it=at,at=Qe),rt.dy&&co(at,rt,Ue,We,$e),it.dy&&co(at,it,Ue,We,$e)}so.prototype.resize=function(ze,Be){var Ue=this.context.gl;if(this.width=ze*Ee.browser.devicePixelRatio,this.height=Be*Ee.browser.devicePixelRatio,this.context.viewport.set([0,0,this.width,this.height]),this.style)for(var We=0,$e=this.style._order;We<$e.length;We+=1){var Qe=$e[We];this.style._layers[Qe].resize()}this.depthRbo&&(Ue.deleteRenderbuffer(this.depthRbo),this.depthRbo=null)},so.prototype.setup=function(){var ze=this.context,Be=new Ee.StructArrayLayout2i4;Be.emplaceBack(0,0),Be.emplaceBack(Ee.EXTENT,0),Be.emplaceBack(0,Ee.EXTENT),Be.emplaceBack(Ee.EXTENT,Ee.EXTENT),this.tileExtentBuffer=ze.createVertexBuffer(Be,ts.members),this.tileExtentSegments=Ee.SegmentVector.simpleSegment(0,0,4,2);var Ue=new Ee.StructArrayLayout2i4;Ue.emplaceBack(0,0),Ue.emplaceBack(Ee.EXTENT,0),Ue.emplaceBack(0,Ee.EXTENT),Ue.emplaceBack(Ee.EXTENT,Ee.EXTENT),this.debugBuffer=ze.createVertexBuffer(Ue,ts.members),this.debugSegments=Ee.SegmentVector.simpleSegment(0,0,4,5);var We=new Ee.StructArrayLayout4i8;We.emplaceBack(0,0,0,0),We.emplaceBack(Ee.EXTENT,0,Ee.EXTENT,0),We.emplaceBack(0,Ee.EXTENT,0,Ee.EXTENT),We.emplaceBack(Ee.EXTENT,Ee.EXTENT,Ee.EXTENT,Ee.EXTENT),this.rasterBoundsBuffer=ze.createVertexBuffer(We,Ee.rasterBoundsAttributes.members),this.rasterBoundsSegments=Ee.SegmentVector.simpleSegment(0,0,4,2);var $e=new Ee.StructArrayLayout2i4;$e.emplaceBack(0,0),$e.emplaceBack(1,0),$e.emplaceBack(0,1),$e.emplaceBack(1,1),this.viewportBuffer=ze.createVertexBuffer($e,ts.members),this.viewportSegments=Ee.SegmentVector.simpleSegment(0,0,4,2);var Qe=new Ee.StructArrayLayout1ui2;Qe.emplaceBack(0),Qe.emplaceBack(1),Qe.emplaceBack(3),Qe.emplaceBack(2),Qe.emplaceBack(0),this.tileBorderIndexBuffer=ze.createIndexBuffer(Qe);var rt=new Ee.StructArrayLayout3ui6;rt.emplaceBack(0,1,2),rt.emplaceBack(2,1,3),this.quadTriangleIndexBuffer=ze.createIndexBuffer(rt);var it=this.context.gl;this.stencilClearMode=new St({func:it.ALWAYS,mask:0},0,255,it.ZERO,it.ZERO,it.ZERO)},so.prototype.clearStencil=function(){var ze=this.context,Be=ze.gl;this.nextStencilID=1,this.currentStencilSource=void 0;var Ue=Ee.create();Ee.ortho(Ue,0,this.width,this.height,0,0,1),Ee.scale(Ue,Ue,[Be.drawingBufferWidth,Be.drawingBufferHeight,0]),this.useProgram("clippingMask").draw(ze,Be.TRIANGLES,It.disabled,this.stencilClearMode,Ct.disabled,Pt.disabled,Ii(Ue),"$clipping",this.viewportBuffer,this.quadTriangleIndexBuffer,this.viewportSegments)},so.prototype._renderTileClippingMasks=function(Ee,ze){if(this.currentStencilSource!==Ee.source&&Ee.isTileClipped()&&ze&&ze.length){this.currentStencilSource=Ee.source;var Be=this.context,Ue=Be.gl;this.nextStencilID+ze.length>256&&this.clearStencil(),Be.setColorMode(Ct.disabled),Be.setDepthMode(It.disabled);var We=this.useProgram("clippingMask");this._tileClippingMaskIDs={};for(var $e=0,Qe=ze;$e256&&this.clearStencil();var Ee=this.nextStencilID++,ze=this.context.gl;return new St({func:ze.NOTEQUAL,mask:255},Ee,255,ze.KEEP,ze.KEEP,ze.REPLACE)},so.prototype.stencilModeForClipping=function(Ee){var ze=this.context.gl;return new St({func:ze.EQUAL,mask:255},this._tileClippingMaskIDs[Ee.key],0,ze.KEEP,ze.KEEP,ze.REPLACE)},so.prototype.colorModeForRenderPass=function(){var ze=this.context.gl;return this._showOverdrawInspector?new Ct([ze.CONSTANT_COLOR,ze.ONE],new Ee.Color(1/8,1/8,1/8,0),[!0,!0,!0,!0]):"opaque"===this.renderPass?Ct.unblended:Ct.alphaBlended},so.prototype.depthModeForSublayer=function(Ee,ze,Be){if(!this.opaquePassEnabledForLayer())return It.disabled;var Ue=1-((1+this.currentLayer)*this.numSublayers+Ee)*this.depthEpsilon;return new It(Be||this.context.gl.LEQUAL,ze,[Ue,Ue])},so.prototype.opaquePassEnabledForLayer=function(){return this.currentLayer=0;this.currentLayer--){var hn=this.style._layers[Ue[this.currentLayer]],dn=We[hn.source],vn=rt[hn.source];this._renderTileClippingMasks(hn,vn),this.renderLayer(this,dn,hn,vn)}for(this.renderPass="translucent",this.currentLayer=0;this.currentLayer0?ze.pop():null},so.prototype.isPatternMissing=function(Ee){if(!Ee)return!1;var ze=this.imageManager.getPattern(Ee.from),Be=this.imageManager.getPattern(Ee.to);return!ze||!Be},so.prototype.useProgram=function(Ee,ze){void 0===ze&&(ze=this.emptyProgramConfiguration),this.cache=this.cache||{};var Be=""+Ee+(ze.cacheKey||"")+(this._showOverdrawInspector?"/overdraw":"");return this.cache[Be]||(this.cache[Be]=new di(this.context,Zs[Ee],ze,Xs[Ee],this._showOverdrawInspector)),this.cache[Be]},so.prototype.setCustomLayerDefaults=function(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()},so.prototype.setBaseState=function(){var Ee=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(Ee.FUNC_ADD)};var ho=function(ze,Be,Ue){this.tileSize=512,this.maxValidLatitude=85.051129,this._renderWorldCopies=void 0===Ue||Ue,this._minZoom=ze||0,this._maxZoom=Be||22,this.setMaxBounds(),this.width=0,this.height=0,this._center=new Ee.LngLat(0,0),this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._unmodified=!0,this._posMatrixCache={},this._alignedPosMatrixCache={}},cl={minZoom:{configurable:!0},maxZoom:{configurable:!0},renderWorldCopies:{configurable:!0},worldSize:{configurable:!0},centerPoint:{configurable:!0},size:{configurable:!0},bearing:{configurable:!0},pitch:{configurable:!0},fov:{configurable:!0},zoom:{configurable:!0},center:{configurable:!0},unmodified:{configurable:!0},point:{configurable:!0}};ho.prototype.clone=function(){var Ee=new ho(this._minZoom,this._maxZoom,this._renderWorldCopies);return Ee.tileSize=this.tileSize,Ee.latRange=this.latRange,Ee.width=this.width,Ee.height=this.height,Ee._center=this._center,Ee.zoom=this.zoom,Ee.angle=this.angle,Ee._fov=this._fov,Ee._pitch=this._pitch,Ee._unmodified=this._unmodified,Ee._calcMatrices(),Ee},cl.minZoom.get=function(){return this._minZoom},cl.minZoom.set=function(Ee){this._minZoom!==Ee&&(this._minZoom=Ee,this.zoom=Math.max(this.zoom,Ee))},cl.maxZoom.get=function(){return this._maxZoom},cl.maxZoom.set=function(Ee){this._maxZoom!==Ee&&(this._maxZoom=Ee,this.zoom=Math.min(this.zoom,Ee))},cl.renderWorldCopies.get=function(){return this._renderWorldCopies},cl.renderWorldCopies.set=function(Ee){void 0===Ee?Ee=!0:null===Ee&&(Ee=!1),this._renderWorldCopies=Ee},cl.worldSize.get=function(){return this.tileSize*this.scale},cl.centerPoint.get=function(){return this.size._div(2)},cl.size.get=function(){return new Ee.Point(this.width,this.height)},cl.bearing.get=function(){return-this.angle/Math.PI*180},cl.bearing.set=function(ze){var Be=-Ee.wrap(ze,-180,180)*Math.PI/180;this.angle!==Be&&(this._unmodified=!1,this.angle=Be,this._calcMatrices(),this.rotationMatrix=Ee.create$2(),Ee.rotate(this.rotationMatrix,this.rotationMatrix,this.angle))},cl.pitch.get=function(){return this._pitch/Math.PI*180},cl.pitch.set=function(ze){var Be=Ee.clamp(ze,0,60)/180*Math.PI;this._pitch!==Be&&(this._unmodified=!1,this._pitch=Be,this._calcMatrices())},cl.fov.get=function(){return this._fov/Math.PI*180},cl.fov.set=function(Ee){Ee=Math.max(.01,Math.min(60,Ee)),this._fov!==Ee&&(this._unmodified=!1,this._fov=Ee/180*Math.PI,this._calcMatrices())},cl.zoom.get=function(){return this._zoom},cl.zoom.set=function(Ee){var ze=Math.min(Math.max(Ee,this.minZoom),this.maxZoom);this._zoom!==ze&&(this._unmodified=!1,this._zoom=ze,this.scale=this.zoomScale(ze),this.tileZoom=Math.floor(ze),this.zoomFraction=ze-this.tileZoom,this._constrain(),this._calcMatrices())},cl.center.get=function(){return this._center},cl.center.set=function(Ee){Ee.lat===this._center.lat&&Ee.lng===this._center.lng||(this._unmodified=!1,this._center=Ee,this._constrain(),this._calcMatrices())},ho.prototype.coveringZoomLevel=function(Ee){return(Ee.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/Ee.tileSize))},ho.prototype.getVisibleUnwrappedCoordinates=function(ze){var Be=[new Ee.UnwrappedTileID(0,ze)];if(this._renderWorldCopies)for(var Ue=this.pointCoordinate(new Ee.Point(0,0)),We=this.pointCoordinate(new Ee.Point(this.width,0)),$e=this.pointCoordinate(new Ee.Point(this.width,this.height)),Qe=this.pointCoordinate(new Ee.Point(0,this.height)),rt=Math.floor(Math.min(Ue.x,We.x,$e.x,Qe.x)),it=Math.floor(Math.max(Ue.x,We.x,$e.x,Qe.x)),at=rt-1;at<=it+1;at++)0!==at&&Be.push(new Ee.UnwrappedTileID(at,ze));return Be},ho.prototype.coveringTiles=function(ze){var Be=this.coveringZoomLevel(ze),Ue=Be;if(void 0!==ze.minzoom&&Beze.maxzoom&&(Be=ze.maxzoom);var We=Ee.MercatorCoordinate.fromLngLat(this.center),$e=Math.pow(2,Be),Qe=new Ee.Point($e*We.x-.5,$e*We.y-.5);return function(ze,Be,Ue,We){void 0===We&&(We=!0);var $e=1<=0&&it<=$e)for(at=Be;atQe&&(We=Qe-er)}if(this.lngRange){var tr=kt.x,rr=at.x/2;tr-rrit&&(Ue=it-rr)}void 0===Ue&&void 0===We||(this.center=this.unproject(new Ee.Point(void 0!==Ue?Ue:kt.x,void 0!==We?We:kt.y))),this._unmodified=ct,this._constraining=!1}},ho.prototype._calcMatrices=function(){if(this.height){this.cameraToCenterDistance=.5/Math.tan(this._fov/2)*this.height;var ze=this._fov/2,Be=Math.PI/2+this._pitch,Ue=Math.sin(ze)*this.cameraToCenterDistance/Math.sin(Math.PI-Be-ze),We=this.point,$e=We.x,Qe=We.y,rt=1.01*(Math.cos(Math.PI/2-this._pitch)*Ue+this.cameraToCenterDistance),it=this.height/50,at=new Float64Array(16);Ee.perspective(at,this._fov,this.width/this.height,it,rt),Ee.scale(at,at,[1,-1,1]),Ee.translate(at,at,[0,0,-this.cameraToCenterDistance]),Ee.rotateX(at,at,this._pitch),Ee.rotateZ(at,at,this.angle),Ee.translate(at,at,[-$e,-Qe,0]),this.mercatorMatrix=Ee.scale([],at,[this.worldSize,this.worldSize,this.worldSize]),Ee.scale(at,at,[1,1,Ee.mercatorZfromAltitude(1,this.center.lat)*this.worldSize,1]),this.projMatrix=at;var ct=this.width%2/2,ft=this.height%2/2,xt=Math.cos(this.angle),kt=Math.sin(this.angle),Lt=$e-Math.round($e)+xt*ct+kt*ft,Ut=Qe-Math.round(Qe)+xt*ft+kt*ct,er=new Float64Array(at);if(Ee.translate(er,er,[Lt>.5?Lt-1:Lt,Ut>.5?Ut-1:Ut,0]),this.alignedProjMatrix=er,at=Ee.create(),Ee.scale(at,at,[this.width/2,-this.height/2,1]),Ee.translate(at,at,[1,-1,0]),this.labelPlaneMatrix=at,at=Ee.create(),Ee.scale(at,at,[1,-1,1]),Ee.translate(at,at,[-1,-1,0]),Ee.scale(at,at,[2/this.width,2/this.height,1]),this.glCoordMatrix=at,this.pixelMatrix=Ee.multiply(new Float64Array(16),this.labelPlaneMatrix,this.projMatrix),!(at=Ee.invert(new Float64Array(16),this.pixelMatrix)))throw new Error("failed to invert matrix");this.pixelMatrixInverse=at,this._posMatrixCache={},this._alignedPosMatrixCache={}}},ho.prototype.maxPitchScaleFactor=function(){if(!this.pixelMatrixInverse)return 1;var ze=this.pointCoordinate(new Ee.Point(0,0)),Be=[ze.x*this.worldSize,ze.y*this.worldSize,0,1];return Ee.transformMat4(Be,Be,this.pixelMatrix)[3]/this.cameraToCenterDistance},ho.prototype.getCameraPoint=function(){var ze=this._pitch,Be=Math.tan(ze)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new Ee.Point(0,Be))},ho.prototype.getCameraQueryGeometry=function(ze){var Be=this.getCameraPoint();if(1===ze.length)return[ze[0],Be];for(var Ue=Be.x,We=Be.y,$e=Be.x,Qe=Be.y,rt=0,it=ze;rt=3&&(this._map.jumpTo({center:[+ze[2],+ze[1]],zoom:+ze[0],bearing:+(ze[3]||0),pitch:+(ze[4]||0)}),!0)},_o.prototype._updateHashUnthrottled=function(){var ze=this.getHashString();try{Ee.window.history.replaceState(Ee.window.history.state,"",ze)}catch(Ee){}};var fl=function(ze){function o(Ue,We,$e,Qe){void 0===Qe&&(Qe={});var rt=Be.mousePos(We.getCanvasContainer(),$e),it=We.unproject(rt);ze.call(this,Ue,Ee.extend({point:rt,lngLat:it,originalEvent:$e},Qe)),this._defaultPrevented=!1,this.target=We}ze&&(o.__proto__=ze),o.prototype=Object.create(ze&&ze.prototype),o.prototype.constructor=o;var Ue={defaultPrevented:{configurable:!0}};return o.prototype.preventDefault=function(){this._defaultPrevented=!0},Ue.defaultPrevented.get=function(){return this._defaultPrevented},Object.defineProperties(o.prototype,Ue),o}(Ee.Event),hl=function(ze){function o(Ue,We,$e){var Qe=Be.touchPos(We.getCanvasContainer(),$e),rt=Qe.map((function(Ee){return We.unproject(Ee)})),it=Qe.reduce((function(Ee,ze,Be,Ue){return Ee.add(ze.div(Ue.length))}),new Ee.Point(0,0)),at=We.unproject(it);ze.call(this,Ue,{points:Qe,point:it,lngLats:rt,lngLat:at,originalEvent:$e}),this._defaultPrevented=!1}ze&&(o.__proto__=ze),o.prototype=Object.create(ze&&ze.prototype),o.prototype.constructor=o;var Ue={defaultPrevented:{configurable:!0}};return o.prototype.preventDefault=function(){this._defaultPrevented=!0},Ue.defaultPrevented.get=function(){return this._defaultPrevented},Object.defineProperties(o.prototype,Ue),o}(Ee.Event),pl=function(Ee){function e(ze,Be,Ue){Ee.call(this,ze,{originalEvent:Ue}),this._defaultPrevented=!1}Ee&&(e.__proto__=Ee),e.prototype=Object.create(Ee&&Ee.prototype),e.prototype.constructor=e;var ze={defaultPrevented:{configurable:!0}};return e.prototype.preventDefault=function(){this._defaultPrevented=!0},ze.defaultPrevented.get=function(){return this._defaultPrevented},Object.defineProperties(e.prototype,ze),e}(Ee.Event),vo=function(ze){this._map=ze,this._el=ze.getCanvasContainer(),this._delta=0,this._defaultZoomRate=.01,this._wheelZoomRate=1/450,Ee.bindAll(["_onWheel","_onTimeout","_onScrollFrame","_onScrollFinished"],this)};vo.prototype.setZoomRate=function(Ee){this._defaultZoomRate=Ee},vo.prototype.setWheelZoomRate=function(Ee){this._wheelZoomRate=Ee},vo.prototype.isEnabled=function(){return!!this._enabled},vo.prototype.isActive=function(){return!!this._active},vo.prototype.isZooming=function(){return!!this._zooming},vo.prototype.enable=function(Ee){this.isEnabled()||(this._enabled=!0,this._aroundCenter=Ee&&"center"===Ee.around)},vo.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},vo.prototype.onWheel=function(ze){if(this.isEnabled()){var Be=ze.deltaMode===Ee.window.WheelEvent.DOM_DELTA_LINE?40*ze.deltaY:ze.deltaY,Ue=Ee.browser.now(),We=Ue-(this._lastWheelEventTime||0);this._lastWheelEventTime=Ue,0!==Be&&Be%4.000244140625==0?this._type="wheel":0!==Be&&Math.abs(Be)<4?this._type="trackpad":We>400?(this._type=null,this._lastValue=Be,this._timeout=setTimeout(this._onTimeout,40,ze)):this._type||(this._type=Math.abs(We*Be)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,Be+=this._lastValue)),ze.shiftKey&&Be&&(Be/=4),this._type&&(this._lastWheelEvent=ze,this._delta-=Be,this.isActive()||this._start(ze)),ze.preventDefault()}},vo.prototype._onTimeout=function(Ee){this._type="wheel",this._delta-=this._lastValue,this.isActive()||this._start(Ee)},vo.prototype._start=function(ze){if(this._delta){this._frameId&&(this._map._cancelRenderFrame(this._frameId),this._frameId=null),this._active=!0,this.isZooming()||(this._zooming=!0,this._map.fire(new Ee.Event("movestart",{originalEvent:ze})),this._map.fire(new Ee.Event("zoomstart",{originalEvent:ze}))),this._finishTimeout&&clearTimeout(this._finishTimeout);var Ue=Be.mousePos(this._el,ze);this._around=Ee.LngLat.convert(this._aroundCenter?this._map.getCenter():this._map.unproject(Ue)),this._aroundPoint=this._map.transform.locationPoint(this._around),this._frameId||(this._frameId=this._map._requestRenderFrame(this._onScrollFrame))}},vo.prototype._onScrollFrame=function(){var ze=this;if(this._frameId=null,this.isActive()){var Be=this._map.transform;if(0!==this._delta){var Ue="wheel"===this._type&&Math.abs(this._delta)>4.000244140625?this._wheelZoomRate:this._defaultZoomRate,We=2/(1+Math.exp(-Math.abs(this._delta*Ue)));this._delta<0&&0!==We&&(We=1/We);var $e="number"==typeof this._targetZoom?Be.zoomScale(this._targetZoom):Be.scale;this._targetZoom=Math.min(Be.maxZoom,Math.max(Be.minZoom,Be.scaleZoom($e*We))),"wheel"===this._type&&(this._startZoom=Be.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}var Qe="number"==typeof this._targetZoom?this._targetZoom:Be.zoom,rt=this._startZoom,it=this._easing,at=!1;if("wheel"===this._type&&rt&&it){var ct=Math.min((Ee.browser.now()-this._lastWheelEventTime)/200,1),ft=it(ct);Be.zoom=Ee.number(rt,Qe,ft),ct<1?this._frameId||(this._frameId=this._map._requestRenderFrame(this._onScrollFrame)):at=!0}else Be.zoom=Qe,at=!0;Be.setLocationAtPoint(this._around,this._aroundPoint),this._map.fire(new Ee.Event("move",{originalEvent:this._lastWheelEvent})),this._map.fire(new Ee.Event("zoom",{originalEvent:this._lastWheelEvent})),at&&(this._active=!1,this._finishTimeout=setTimeout((function(){ze._zooming=!1,ze._map.fire(new Ee.Event("zoomend",{originalEvent:ze._lastWheelEvent})),ze._map.fire(new Ee.Event("moveend",{originalEvent:ze._lastWheelEvent})),delete ze._targetZoom}),200))}},vo.prototype._smoothOutEasing=function(ze){var Be=Ee.ease;if(this._prevEase){var Ue=this._prevEase,We=(Ee.browser.now()-Ue.start)/Ue.duration,$e=Ue.easing(We+.01)-Ue.easing(We),Qe=.27/Math.sqrt($e*$e+1e-4)*.01,rt=Math.sqrt(.0729-Qe*Qe);Be=Ee.bezier(Qe,rt,.25,1)}return this._prevEase={start:Ee.browser.now(),duration:ze,easing:Be},Be};var yo=function(ze,Be){this._map=ze,this._el=ze.getCanvasContainer(),this._container=ze.getContainer(),this._clickTolerance=Be.clickTolerance||1,Ee.bindAll(["_onMouseMove","_onMouseUp","_onKeyDown"],this)};yo.prototype.isEnabled=function(){return!!this._enabled},yo.prototype.isActive=function(){return!!this._active},yo.prototype.enable=function(){this.isEnabled()||(this._enabled=!0)},yo.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},yo.prototype.onMouseDown=function(ze){this.isEnabled()&&ze.shiftKey&&0===ze.button&&(Ee.window.document.addEventListener("mousemove",this._onMouseMove,!1),Ee.window.document.addEventListener("keydown",this._onKeyDown,!1),Ee.window.document.addEventListener("mouseup",this._onMouseUp,!1),Be.disableDrag(),this._startPos=this._lastPos=Be.mousePos(this._el,ze),this._active=!0)},yo.prototype._onMouseMove=function(Ee){var ze=Be.mousePos(this._el,Ee);if(!(this._lastPos.equals(ze)||!this._box&&ze.dist(this._startPos)180&&(xt=180);var kt=xt/180;it+=ct*xt*(kt/2),Math.abs(Be._normalizeBearing(it,0))0&&Be-ze[0][0]>160;)ze.shift()};var gl=Ee.bezier(0,0,.3,1),Eo=function(ze,Be){this._map=ze,this._el=ze.getCanvasContainer(),this._state="disabled",this._clickTolerance=Be.clickTolerance||1,Ee.bindAll(["_onMove","_onMouseUp","_onTouchEnd","_onBlur","_onDragFrame"],this)};Eo.prototype.isEnabled=function(){return"disabled"!==this._state},Eo.prototype.isActive=function(){return"active"===this._state},Eo.prototype.enable=function(){this.isEnabled()||(this._el.classList.add("mapboxgl-touch-drag-pan"),this._state="enabled")},Eo.prototype.disable=function(){if(this.isEnabled())switch(this._el.classList.remove("mapboxgl-touch-drag-pan"),this._state){case"active":this._state="disabled",this._unbind(),this._deactivate(),this._fireEvent("dragend"),this._fireEvent("moveend");break;case"pending":this._state="disabled",this._unbind();break;default:this._state="disabled"}},Eo.prototype.onMouseDown=function(ze){"enabled"===this._state&&(ze.ctrlKey||0!==Be.mouseButton(ze)||(Be.addEventListener(Ee.window.document,"mousemove",this._onMove,{capture:!0}),Be.addEventListener(Ee.window.document,"mouseup",this._onMouseUp),this._start(ze)))},Eo.prototype.onTouchStart=function(ze){"enabled"===this._state&&(ze.touches.length>1||(Be.addEventListener(Ee.window.document,"touchmove",this._onMove,{capture:!0,passive:!1}),Be.addEventListener(Ee.window.document,"touchend",this._onTouchEnd),this._start(ze)))},Eo.prototype._start=function(ze){Ee.window.addEventListener("blur",this._onBlur),this._state="pending",this._startPos=this._mouseDownPos=this._prevPos=this._lastPos=Be.mousePos(this._el,ze),this._inertia=[[Ee.browser.now(),this._startPos]]},Eo.prototype._onMove=function(ze){ze.preventDefault();var Ue=Be.mousePos(this._el,ze);this._lastPos.equals(Ue)||"pending"===this._state&&Ue.dist(this._mouseDownPos)1400&&(rt=1400,Qe._unit()._mult(rt));var it=rt/750,at=Qe.mult(-it/2);this._map.panBy(at,{duration:1e3*it,easing:gl,noMoveStart:!0},{originalEvent:Ee})}}},Eo.prototype._fireEvent=function(ze,Be){return this._map.fire(new Ee.Event(ze,Be?{originalEvent:Be}:{}))},Eo.prototype._drainInertiaBuffer=function(){for(var ze=this._inertia,Be=Ee.browser.now();ze.length>0&&Be-ze[0][0]>160;)ze.shift()};var To=function(ze){this._map=ze,this._el=ze.getCanvasContainer(),Ee.bindAll(["_onKeyDown"],this)};function Io(Ee){return Ee*(2-Ee)}To.prototype.isEnabled=function(){return!!this._enabled},To.prototype.enable=function(){this.isEnabled()||(this._el.addEventListener("keydown",this._onKeyDown,!1),this._enabled=!0)},To.prototype.disable=function(){this.isEnabled()&&(this._el.removeEventListener("keydown",this._onKeyDown),this._enabled=!1)},To.prototype._onKeyDown=function(Ee){if(!(Ee.altKey||Ee.ctrlKey||Ee.metaKey)){var ze=0,Be=0,Ue=0,We=0,$e=0;switch(Ee.keyCode){case 61:case 107:case 171:case 187:ze=1;break;case 189:case 109:case 173:ze=-1;break;case 37:Ee.shiftKey?Be=-1:(Ee.preventDefault(),We=-1);break;case 39:Ee.shiftKey?Be=1:(Ee.preventDefault(),We=1);break;case 38:Ee.shiftKey?Ue=1:(Ee.preventDefault(),$e=-1);break;case 40:Ee.shiftKey?Ue=-1:($e=1,Ee.preventDefault());break;default:return}var Qe=this._map,rt=Qe.getZoom(),it={duration:300,delayEndEvents:500,easing:Io,zoom:ze?Math.round(rt)+ze*(Ee.shiftKey?2:1):rt,bearing:Qe.getBearing()+15*Be,pitch:Qe.getPitch()+10*Ue,offset:[100*-We,100*-$e],center:Qe.getCenter()};Qe.easeTo(it,{originalEvent:Ee})}};var So=function(ze){this._map=ze,Ee.bindAll(["_onDblClick","_onZoomEnd"],this)};So.prototype.isEnabled=function(){return!!this._enabled},So.prototype.isActive=function(){return!!this._active},So.prototype.enable=function(){this.isEnabled()||(this._enabled=!0)},So.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},So.prototype.onTouchStart=function(Ee){var ze=this;if(this.isEnabled()&&!(Ee.points.length>1))if(this._tapped){var Be=Ee.points[0],Ue=this._tappedPoint;if(Ue&&Ue.dist(Be)<=30){Ee.originalEvent.preventDefault();var r=function(){ze._tapped&&ze._zoom(Ee),ze._map.off("touchcancel",a),ze._resetTapped()},a=function(){ze._map.off("touchend",r),ze._resetTapped()};this._map.once("touchend",r),this._map.once("touchcancel",a)}else this._resetTapped()}else this._tappedPoint=Ee.points[0],this._tapped=setTimeout((function(){ze._tapped=null,ze._tappedPoint=null}),300)},So.prototype._resetTapped=function(){clearTimeout(this._tapped),this._tapped=null,this._tappedPoint=null},So.prototype.onDblClick=function(Ee){this.isEnabled()&&(Ee.originalEvent.preventDefault(),this._zoom(Ee))},So.prototype._zoom=function(Ee){this._active=!0,this._map.on("zoomend",this._onZoomEnd),this._map.zoomTo(this._map.getZoom()+(Ee.originalEvent.shiftKey?-1:1),{around:Ee.lngLat},Ee)},So.prototype._onZoomEnd=function(){this._active=!1,this._map.off("zoomend",this._onZoomEnd)};var yl=Ee.bezier(0,0,.15,1),Po=function(ze){this._map=ze,this._el=ze.getCanvasContainer(),Ee.bindAll(["_onMove","_onEnd","_onTouchFrame"],this)};Po.prototype.isEnabled=function(){return!!this._enabled},Po.prototype.enable=function(Ee){this.isEnabled()||(this._el.classList.add("mapboxgl-touch-zoom-rotate"),this._enabled=!0,this._aroundCenter=!!Ee&&"center"===Ee.around)},Po.prototype.disable=function(){this.isEnabled()&&(this._el.classList.remove("mapboxgl-touch-zoom-rotate"),this._enabled=!1)},Po.prototype.disableRotation=function(){this._rotationDisabled=!0},Po.prototype.enableRotation=function(){this._rotationDisabled=!1},Po.prototype.onStart=function(ze){if(this.isEnabled()&&2===ze.touches.length){var Ue=Be.mousePos(this._el,ze.touches[0]),We=Be.mousePos(this._el,ze.touches[1]),$e=Ue.add(We).div(2);this._startVec=Ue.sub(We),this._startAround=this._map.transform.pointLocation($e),this._gestureIntent=void 0,this._inertia=[],Be.addEventListener(Ee.window.document,"touchmove",this._onMove,{passive:!1}),Be.addEventListener(Ee.window.document,"touchend",this._onEnd)}},Po.prototype._getTouchEventData=function(Ee){var ze=Be.mousePos(this._el,Ee.touches[0]),Ue=Be.mousePos(this._el,Ee.touches[1]),We=ze.sub(Ue);return{vec:We,center:ze.add(Ue).div(2),scale:We.mag()/this._startVec.mag(),bearing:this._rotationDisabled?0:180*We.angleWith(this._startVec)/Math.PI}},Po.prototype._onMove=function(ze){if(2===ze.touches.length){var Be=this._getTouchEventData(ze),Ue=Be.vec,We=Be.scale,$e=Be.bearing;if(!this._gestureIntent){var Qe=this._rotationDisabled&&1!==We||Math.abs(1-We)>.15;Math.abs($e)>10?this._gestureIntent="rotate":Qe&&(this._gestureIntent="zoom"),this._gestureIntent&&(this._map.fire(new Ee.Event(this._gestureIntent+"start",{originalEvent:ze})),this._map.fire(new Ee.Event("movestart",{originalEvent:ze})),this._startVec=Ue)}this._lastTouchEvent=ze,this._frameId||(this._frameId=this._map._requestRenderFrame(this._onTouchFrame)),ze.preventDefault()}},Po.prototype._onTouchFrame=function(){this._frameId=null;var ze=this._gestureIntent;if(ze){var Be=this._map.transform;this._startScale||(this._startScale=Be.scale,this._startBearing=Be.bearing);var Ue=this._getTouchEventData(this._lastTouchEvent),We=Ue.center,$e=Ue.bearing,Qe=Ue.scale,rt=Be.pointLocation(We),it=Be.locationPoint(rt);"rotate"===ze&&(Be.bearing=this._startBearing+$e),Be.zoom=Be.scaleZoom(this._startScale*Qe),Be.setLocationAtPoint(this._startAround,it),this._map.fire(new Ee.Event(ze,{originalEvent:this._lastTouchEvent})),this._map.fire(new Ee.Event("move",{originalEvent:this._lastTouchEvent})),this._drainInertiaBuffer(),this._inertia.push([Ee.browser.now(),Qe,We])}},Po.prototype._onEnd=function(ze){Be.removeEventListener(Ee.window.document,"touchmove",this._onMove,{passive:!1}),Be.removeEventListener(Ee.window.document,"touchend",this._onEnd);var Ue=this._gestureIntent,We=this._startScale;if(this._frameId&&(this._map._cancelRenderFrame(this._frameId),this._frameId=null),delete this._gestureIntent,delete this._startScale,delete this._startBearing,delete this._lastTouchEvent,Ue){this._map.fire(new Ee.Event(Ue+"end",{originalEvent:ze})),this._drainInertiaBuffer();var $e=this._inertia,Qe=this._map;if($e.length<2)Qe.snapToNorth({},{originalEvent:ze});else{var rt=$e[$e.length-1],it=$e[0],at=Qe.transform.scaleZoom(We*rt[1]),ct=Qe.transform.scaleZoom(We*it[1]),ft=at-ct,xt=(rt[0]-it[0])/1e3,kt=rt[2];if(0!==xt&&at!==ct){var Lt=.15*ft/xt;Math.abs(Lt)>2.5&&(Lt=Lt>0?2.5:-2.5);var Ut=1e3*Math.abs(Lt/(12*.15)),er=at+Lt*Ut/2e3;er<0&&(er=0),Qe.easeTo({zoom:er,duration:Ut,easing:yl,around:this._aroundCenter?Qe.getCenter():Qe.unproject(kt),noMoveStart:!0},{originalEvent:ze})}else Qe.snapToNorth({},{originalEvent:ze})}}},Po.prototype._drainInertiaBuffer=function(){for(var ze=this._inertia,Be=Ee.browser.now();ze.length>2&&Be-ze[0][0]>160;)ze.shift()};var wl={scrollZoom:vo,boxZoom:yo,dragRotate:bo,dragPan:Eo,keyboard:To,doubleClickZoom:So,touchZoomRotate:Po},Tl=function(ze){function i(Be,Ue){ze.call(this),this._moving=!1,this._zooming=!1,this.transform=Be,this._bearingSnap=Ue.bearingSnap,Ee.bindAll(["_renderFrameCallback"],this)}return ze&&(i.__proto__=ze),i.prototype=Object.create(ze&&ze.prototype),i.prototype.constructor=i,i.prototype.getCenter=function(){return new Ee.LngLat(this.transform.center.lng,this.transform.center.lat)},i.prototype.setCenter=function(Ee,ze){return this.jumpTo({center:Ee},ze)},i.prototype.panBy=function(ze,Be,Ue){return ze=Ee.Point.convert(ze).mult(-1),this.panTo(this.transform.center,Ee.extend({offset:ze},Be),Ue)},i.prototype.panTo=function(ze,Be,Ue){return this.easeTo(Ee.extend({center:ze},Be),Ue)},i.prototype.getZoom=function(){return this.transform.zoom},i.prototype.setZoom=function(Ee,ze){return this.jumpTo({zoom:Ee},ze),this},i.prototype.zoomTo=function(ze,Be,Ue){return this.easeTo(Ee.extend({zoom:ze},Be),Ue)},i.prototype.zoomIn=function(Ee,ze){return this.zoomTo(this.getZoom()+1,Ee,ze),this},i.prototype.zoomOut=function(Ee,ze){return this.zoomTo(this.getZoom()-1,Ee,ze),this},i.prototype.getBearing=function(){return this.transform.bearing},i.prototype.setBearing=function(Ee,ze){return this.jumpTo({bearing:Ee},ze),this},i.prototype.rotateTo=function(ze,Be,Ue){return this.easeTo(Ee.extend({bearing:ze},Be),Ue)},i.prototype.resetNorth=function(ze,Be){return this.rotateTo(0,Ee.extend({duration:1e3},ze),Be),this},i.prototype.resetNorthPitch=function(ze,Be){return this.easeTo(Ee.extend({bearing:0,pitch:0,duration:1e3},ze),Be),this},i.prototype.snapToNorth=function(Ee,ze){return Math.abs(this.getBearing())ze?1:0})),["bottom","left","right","top"])){var Qe=this.transform,rt=Qe.project(Ee.LngLat.convert(ze)),it=Qe.project(Ee.LngLat.convert(Be)),at=rt.rotate(-Ue*Math.PI/180),ct=it.rotate(-Ue*Math.PI/180),ft=new Ee.Point(Math.max(at.x,ct.x),Math.max(at.y,ct.y)),xt=new Ee.Point(Math.min(at.x,ct.x),Math.min(at.y,ct.y)),kt=ft.sub(xt),Lt=(Qe.width-We.padding.left-We.padding.right)/kt.x,Ut=(Qe.height-We.padding.top-We.padding.bottom)/kt.y;if(!(Ut<0||Lt<0)){var er=Math.min(Qe.scaleZoom(Qe.scale*Math.min(Lt,Ut)),We.maxZoom),tr=Ee.Point.convert(We.offset),rr=(We.padding.left-We.padding.right)/2,ar=(We.padding.top-We.padding.bottom)/2,Lr=new Ee.Point(tr.x+rr,tr.y+ar).mult(Qe.scale/Qe.zoomScale(er));return{center:Qe.unproject(rt.add(it).div(2).sub(Lr)),zoom:er,bearing:Ue}}Ee.warnOnce("Map cannot fit within canvas with the given bounds, padding, and/or offset.")}else Ee.warnOnce("options.padding must be a positive number, or an Object with keys 'bottom', 'left', 'right', 'top'")},i.prototype.fitBounds=function(Ee,ze,Be){return this._fitInternal(this.cameraForBounds(Ee,ze),ze,Be)},i.prototype.fitScreenCoordinates=function(ze,Be,Ue,We,$e){return this._fitInternal(this._cameraForBoxAndBearing(this.transform.pointLocation(Ee.Point.convert(ze)),this.transform.pointLocation(Ee.Point.convert(Be)),Ue,We),We,$e)},i.prototype._fitInternal=function(ze,Be,Ue){return ze?(Be=Ee.extend(ze,Be)).linear?this.easeTo(Be,Ue):this.flyTo(Be,Ue):this},i.prototype.jumpTo=function(ze,Be){this.stop();var Ue=this.transform,We=!1,$e=!1,Qe=!1;return"zoom"in ze&&Ue.zoom!==+ze.zoom&&(We=!0,Ue.zoom=+ze.zoom),void 0!==ze.center&&(Ue.center=Ee.LngLat.convert(ze.center)),"bearing"in ze&&Ue.bearing!==+ze.bearing&&($e=!0,Ue.bearing=+ze.bearing),"pitch"in ze&&Ue.pitch!==+ze.pitch&&(Qe=!0,Ue.pitch=+ze.pitch),this.fire(new Ee.Event("movestart",Be)).fire(new Ee.Event("move",Be)),We&&this.fire(new Ee.Event("zoomstart",Be)).fire(new Ee.Event("zoom",Be)).fire(new Ee.Event("zoomend",Be)),$e&&this.fire(new Ee.Event("rotatestart",Be)).fire(new Ee.Event("rotate",Be)).fire(new Ee.Event("rotateend",Be)),Qe&&this.fire(new Ee.Event("pitchstart",Be)).fire(new Ee.Event("pitch",Be)).fire(new Ee.Event("pitchend",Be)),this.fire(new Ee.Event("moveend",Be))},i.prototype.easeTo=function(ze,Be){var Ue=this;this.stop(),(!1===(ze=Ee.extend({offset:[0,0],duration:500,easing:Ee.ease},ze)).animate||Ee.browser.prefersReducedMotion)&&(ze.duration=0);var We=this.transform,$e=this.getZoom(),Qe=this.getBearing(),rt=this.getPitch(),it="zoom"in ze?+ze.zoom:$e,at="bearing"in ze?this._normalizeBearing(ze.bearing,Qe):Qe,ct="pitch"in ze?+ze.pitch:rt,ft=We.centerPoint.add(Ee.Point.convert(ze.offset)),xt=We.pointLocation(ft),kt=Ee.LngLat.convert(ze.center||xt);this._normalizeCenter(kt);var Lt,Ut,er=We.project(xt),tr=We.project(kt).sub(er),rr=We.zoomScale(it-$e);return ze.around&&(Lt=Ee.LngLat.convert(ze.around),Ut=We.locationPoint(Lt)),this._zooming=it!==$e,this._rotating=Qe!==at,this._pitching=ct!==rt,this._prepareEase(Be,ze.noMoveStart),clearTimeout(this._easeEndTimeoutID),this._ease((function(ze){if(Ue._zooming&&(We.zoom=Ee.number($e,it,ze)),Ue._rotating&&(We.bearing=Ee.number(Qe,at,ze)),Ue._pitching&&(We.pitch=Ee.number(rt,ct,ze)),Lt)We.setLocationAtPoint(Lt,Ut);else{var xt=We.zoomScale(We.zoom-$e),kt=it>$e?Math.min(2,rr):Math.max(.5,rr),ar=Math.pow(kt,1-ze),Lr=We.unproject(er.add(tr.mult(ze*ar)).mult(xt));We.setLocationAtPoint(We.renderWorldCopies?Lr.wrap():Lr,ft)}Ue._fireMoveEvents(Be)}),(function(){ze.delayEndEvents?Ue._easeEndTimeoutID=setTimeout((function(){return Ue._afterEase(Be)}),ze.delayEndEvents):Ue._afterEase(Be)}),ze),this},i.prototype._prepareEase=function(ze,Be){this._moving=!0,Be||this.fire(new Ee.Event("movestart",ze)),this._zooming&&this.fire(new Ee.Event("zoomstart",ze)),this._rotating&&this.fire(new Ee.Event("rotatestart",ze)),this._pitching&&this.fire(new Ee.Event("pitchstart",ze))},i.prototype._fireMoveEvents=function(ze){this.fire(new Ee.Event("move",ze)),this._zooming&&this.fire(new Ee.Event("zoom",ze)),this._rotating&&this.fire(new Ee.Event("rotate",ze)),this._pitching&&this.fire(new Ee.Event("pitch",ze))},i.prototype._afterEase=function(ze){var Be=this._zooming,Ue=this._rotating,We=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,Be&&this.fire(new Ee.Event("zoomend",ze)),Ue&&this.fire(new Ee.Event("rotateend",ze)),We&&this.fire(new Ee.Event("pitchend",ze)),this.fire(new Ee.Event("moveend",ze))},i.prototype.flyTo=function(ze,Be){var Ue=this;if(Ee.browser.prefersReducedMotion){var We=Ee.pick(ze,["center","zoom","bearing","pitch","around"]);return this.jumpTo(We,Be)}this.stop(),ze=Ee.extend({offset:[0,0],speed:1.2,curve:1.42,easing:Ee.ease},ze);var $e=this.transform,Qe=this.getZoom(),rt=this.getBearing(),it=this.getPitch(),at="zoom"in ze?Ee.clamp(+ze.zoom,$e.minZoom,$e.maxZoom):Qe,ct="bearing"in ze?this._normalizeBearing(ze.bearing,rt):rt,ft="pitch"in ze?+ze.pitch:it,xt=$e.zoomScale(at-Qe),kt=$e.centerPoint.add(Ee.Point.convert(ze.offset)),Lt=$e.pointLocation(kt),Ut=Ee.LngLat.convert(ze.center||Lt);this._normalizeCenter(Ut);var er=$e.project(Lt),tr=$e.project(Ut).sub(er),rr=ze.curve,ar=Math.max($e.width,$e.height),Lr=ar/xt,Qr=tr.mag();if("minZoom"in ze){var on=Ee.clamp(Math.min(ze.minZoom,Qe,at),$e.minZoom,$e.maxZoom),sn=ar/$e.zoomScale(on-Qe);rr=Math.sqrt(sn/Qr*2)}var cn=rr*rr;function I(Ee){var ze=(Lr*Lr-ar*ar+(Ee?-1:1)*cn*cn*Qr*Qr)/(2*(Ee?Lr:ar)*cn*Qr);return Math.log(Math.sqrt(ze*ze+1)-ze)}function S(Ee){return(Math.exp(Ee)-Math.exp(-Ee))/2}function C(Ee){return(Math.exp(Ee)+Math.exp(-Ee))/2}var un=I(0),z=function(Ee){return C(un)/C(un+rr*Ee)},L=function(Ee){return ar*((C(un)*(S(ze=un+rr*Ee)/C(ze))-S(un))/cn)/Qr;var ze},hn=(I(1)-un)/rr;if(Math.abs(Qr)<1e-6||!isFinite(hn)){if(Math.abs(ar-Lr)<1e-6)return this.easeTo(ze,Be);var dn=Lrze.maxDuration&&(ze.duration=0),this._zooming=!0,this._rotating=rt!==ct,this._pitching=ft!==it,this._prepareEase(Be,!1),this._ease((function(ze){var We=ze*hn,xt=1/z(We);$e.zoom=1===ze?at:Qe+$e.scaleZoom(xt),Ue._rotating&&($e.bearing=Ee.number(rt,ct,ze)),Ue._pitching&&($e.pitch=Ee.number(it,ft,ze));var Lt=1===ze?Ut:$e.unproject(er.add(tr.mult(L(We))).mult(xt));$e.setLocationAtPoint($e.renderWorldCopies?Lt.wrap():Lt,kt),Ue._fireMoveEvents(Be)}),(function(){return Ue._afterEase(Be)}),ze),this},i.prototype.isEasing=function(){return!!this._easeFrameId},i.prototype.stop=function(){if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){var Ee=this._onEaseEnd;delete this._onEaseEnd,Ee.call(this)}return this},i.prototype._ease=function(ze,Be,Ue){!1===Ue.animate||0===Ue.duration?(ze(1),Be()):(this._easeStart=Ee.browser.now(),this._easeOptions=Ue,this._onEaseFrame=ze,this._onEaseEnd=Be,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))},i.prototype._renderFrameCallback=function(){var ze=Math.min((Ee.browser.now()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(ze)),ze<1?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},i.prototype._normalizeBearing=function(ze,Be){ze=Ee.wrap(ze,-180,180);var Ue=Math.abs(ze-Be);return Math.abs(ze-360-Be)180?-360:Be<-180?360:0}},i}(Ee.Evented),Mo=function(ze){void 0===ze&&(ze={}),this.options=ze,Ee.bindAll(["_updateEditLink","_updateData","_updateCompact"],this)};Mo.prototype.getDefaultPosition=function(){return"bottom-right"},Mo.prototype.onAdd=function(Ee){var ze=this.options&&this.options.compact;return this._map=Ee,this._container=Be.create("div","mapboxgl-ctrl mapboxgl-ctrl-attrib"),this._innerContainer=Be.create("div","mapboxgl-ctrl-attrib-inner",this._container),ze&&this._container.classList.add("mapboxgl-compact"),this._updateAttributions(),this._updateEditLink(),this._map.on("styledata",this._updateData),this._map.on("sourcedata",this._updateData),this._map.on("moveend",this._updateEditLink),void 0===ze&&(this._map.on("resize",this._updateCompact),this._updateCompact()),this._container},Mo.prototype.onRemove=function(){Be.remove(this._container),this._map.off("styledata",this._updateData),this._map.off("sourcedata",this._updateData),this._map.off("moveend",this._updateEditLink),this._map.off("resize",this._updateCompact),this._map=void 0},Mo.prototype._updateEditLink=function(){var ze=this._editLink;ze||(ze=this._editLink=this._container.querySelector(".mapbox-improve-map"));var Be=[{key:"owner",value:this.styleOwner},{key:"id",value:this.styleId},{key:"access_token",value:this._map._requestManager._customAccessToken||Ee.config.ACCESS_TOKEN}];if(ze){var Ue=Be.reduce((function(Ee,ze,Ue){return ze.value&&(Ee+=ze.key+"="+ze.value+(Ue=0)return!1;return!0}))).join(" | ");Qe!==this._attribHTML&&(this._attribHTML=Qe,Ee.length?(this._innerContainer.innerHTML=Qe,this._container.classList.remove("mapboxgl-attrib-empty")):this._container.classList.add("mapboxgl-attrib-empty"),this._editLink=null)}},Mo.prototype._updateCompact=function(){this._map.getCanvasContainer().offsetWidth<=640?this._container.classList.add("mapboxgl-compact"):this._container.classList.remove("mapboxgl-compact")};var Do=function(){Ee.bindAll(["_updateLogo"],this),Ee.bindAll(["_updateCompact"],this)};Do.prototype.onAdd=function(Ee){this._map=Ee,this._container=Be.create("div","mapboxgl-ctrl");var ze=Be.create("a","mapboxgl-ctrl-logo");return ze.target="_blank",ze.rel="noopener nofollow",ze.href="https://www.mapbox.com/",ze.setAttribute("aria-label","Mapbox logo"),ze.setAttribute("rel","noopener nofollow"),this._container.appendChild(ze),this._container.style.display="none",this._map.on("sourcedata",this._updateLogo),this._updateLogo(),this._map.on("resize",this._updateCompact),this._updateCompact(),this._container},Do.prototype.onRemove=function(){Be.remove(this._container),this._map.off("sourcedata",this._updateLogo),this._map.off("resize",this._updateCompact)},Do.prototype.getDefaultPosition=function(){return"bottom-left"},Do.prototype._updateLogo=function(Ee){Ee&&"metadata"!==Ee.sourceDataType||(this._container.style.display=this._logoRequired()?"block":"none")},Do.prototype._logoRequired=function(){if(this._map.style){var Ee=this._map.style.sourceCaches;for(var ze in Ee)if(Ee[ze].getSource().mapbox_logo)return!0;return!1}},Do.prototype._updateCompact=function(){var Ee=this._container.children;if(Ee.length){var ze=Ee[0];this._map.getCanvasContainer().offsetWidth<250?ze.classList.add("mapboxgl-compact"):ze.classList.remove("mapboxgl-compact")}};var Ro=function(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1};Ro.prototype.add=function(Ee){var ze=++this._id;return this._queue.push({callback:Ee,id:ze,cancelled:!1}),ze},Ro.prototype.remove=function(Ee){for(var ze=this._currentlyRunning,Be=0,Ue=ze?this._queue.concat(ze):this._queue;Beze.maxZoom)throw new Error("maxZoom must be greater than minZoom");var $e=new ho(ze.minZoom,ze.maxZoom,ze.renderWorldCopies);if(Ue.call(this,$e,ze),this._interactive=ze.interactive,this._maxTileCacheSize=ze.maxTileCacheSize,this._failIfMajorPerformanceCaveat=ze.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=ze.preserveDrawingBuffer,this._antialias=ze.antialias,this._trackResize=ze.trackResize,this._bearingSnap=ze.bearingSnap,this._refreshExpiredTiles=ze.refreshExpiredTiles,this._fadeDuration=ze.fadeDuration,this._crossSourceCollisions=ze.crossSourceCollisions,this._crossFadingFactor=1,this._collectResourceTiming=ze.collectResourceTiming,this._renderTaskQueue=new Ro,this._controls=[],this._mapId=Ee.uniqueId(),this._requestManager=new Ee.RequestManager(ze.transformRequest,ze.accessToken),"string"==typeof ze.container){if(this._container=Ee.window.document.getElementById(ze.container),!this._container)throw new Error("Container '"+ze.container+"' not found.")}else{if(!(ze.container instanceof Al))throw new Error("Invalid type: 'container' must be a String or HTMLElement.");this._container=ze.container}if(ze.maxBounds&&this.setMaxBounds(ze.maxBounds),Ee.bindAll(["_onWindowOnline","_onWindowResize","_contextLost","_contextRestored"],this),this._setupContainer(),this._setupPainter(),void 0===this.painter)throw new Error("Failed to initialize WebGL.");this.on("move",(function(){return We._update(!1)})),this.on("moveend",(function(){return We._update(!1)})),this.on("zoom",(function(){return We._update(!0)})),void 0!==Ee.window&&(Ee.window.addEventListener("online",this._onWindowOnline,!1),Ee.window.addEventListener("resize",this._onWindowResize,!1)),function(Ee,ze){var Ue=Ee.getCanvasContainer(),We=null,$e=!1,Qe=null;for(var rt in wl)Ee[rt]=new wl[rt](Ee,ze),ze.interactive&&ze[rt]&&Ee[rt].enable(ze[rt]);Be.addEventListener(Ue,"mouseout",(function(ze){Ee.fire(new fl("mouseout",Ee,ze))})),Be.addEventListener(Ue,"mousedown",(function(We){$e=!0,Qe=Be.mousePos(Ue,We);var rt=new fl("mousedown",Ee,We);Ee.fire(rt),rt.defaultPrevented||(ze.interactive&&!Ee.doubleClickZoom.isActive()&&Ee.stop(),Ee.boxZoom.onMouseDown(We),Ee.boxZoom.isActive()||Ee.dragPan.isActive()||Ee.dragRotate.onMouseDown(We),Ee.boxZoom.isActive()||Ee.dragRotate.isActive()||Ee.dragPan.onMouseDown(We))})),Be.addEventListener(Ue,"mouseup",(function(ze){var Be=Ee.dragRotate.isActive();We&&!Be&&Ee.fire(new fl("contextmenu",Ee,We)),We=null,$e=!1,Ee.fire(new fl("mouseup",Ee,ze))})),Be.addEventListener(Ue,"mousemove",(function(ze){if(!Ee.dragPan.isActive()&&!Ee.dragRotate.isActive()){for(var Be=ze.target;Be&&Be!==Ue;)Be=Be.parentNode;Be===Ue&&Ee.fire(new fl("mousemove",Ee,ze))}})),Be.addEventListener(Ue,"mouseover",(function(ze){for(var Be=ze.target;Be&&Be!==Ue;)Be=Be.parentNode;Be===Ue&&Ee.fire(new fl("mouseover",Ee,ze))})),Be.addEventListener(Ue,"touchstart",(function(Be){var Ue=new hl("touchstart",Ee,Be);Ee.fire(Ue),Ue.defaultPrevented||(ze.interactive&&Ee.stop(),Ee.boxZoom.isActive()||Ee.dragRotate.isActive()||Ee.dragPan.onTouchStart(Be),Ee.touchZoomRotate.onStart(Be),Ee.doubleClickZoom.onTouchStart(Ue))}),{passive:!1}),Be.addEventListener(Ue,"touchmove",(function(ze){Ee.fire(new hl("touchmove",Ee,ze))}),{passive:!1}),Be.addEventListener(Ue,"touchend",(function(ze){Ee.fire(new hl("touchend",Ee,ze))})),Be.addEventListener(Ue,"touchcancel",(function(ze){Ee.fire(new hl("touchcancel",Ee,ze))})),Be.addEventListener(Ue,"click",(function(We){var $e=Be.mousePos(Ue,We);(!Qe||$e.equals(Qe)||$e.dist(Qe)-1&&this._controls.splice(Be,1),ze.onRemove(this),this},r.prototype.resize=function(ze){var Be=this._containerDimensions(),Ue=Be[0],We=Be[1];return this._resizeCanvas(Ue,We),this.transform.resize(Ue,We),this.painter.resize(Ue,We),this.fire(new Ee.Event("movestart",ze)).fire(new Ee.Event("move",ze)).fire(new Ee.Event("resize",ze)).fire(new Ee.Event("moveend",ze)),this},r.prototype.getBounds=function(){return this.transform.getBounds()},r.prototype.getMaxBounds=function(){return this.transform.getMaxBounds()},r.prototype.setMaxBounds=function(ze){return this.transform.setMaxBounds(Ee.LngLatBounds.convert(ze)),this._update()},r.prototype.setMinZoom=function(Ee){if((Ee=null==Ee?0:Ee)>=0&&Ee<=this.transform.maxZoom)return this.transform.minZoom=Ee,this._update(),this.getZoom()=this.transform.minZoom)return this.transform.maxZoom=Ee,this._update(),this.getZoom()>Ee&&this.setZoom(Ee),this;throw new Error("maxZoom must be greater than the current minZoom")},r.prototype.getRenderWorldCopies=function(){return this.transform.renderWorldCopies},r.prototype.setRenderWorldCopies=function(Ee){return this.transform.renderWorldCopies=Ee,this._update()},r.prototype.getMaxZoom=function(){return this.transform.maxZoom},r.prototype.project=function(ze){return this.transform.locationPoint(Ee.LngLat.convert(ze))},r.prototype.unproject=function(ze){return this.transform.pointLocation(Ee.Point.convert(ze))},r.prototype.isMoving=function(){return this._moving||this.dragPan.isActive()||this.dragRotate.isActive()||this.scrollZoom.isActive()},r.prototype.isZooming=function(){return this._zooming||this.scrollZoom.isZooming()},r.prototype.isRotating=function(){return this._rotating||this.dragRotate.isActive()},r.prototype.on=function(Ee,ze,Be){var We=this;if(void 0===Be)return Ue.prototype.on.call(this,Ee,ze);var $e=function(){var Ue;if("mouseenter"===Ee||"mouseover"===Ee){var $e=!1;return{layer:ze,listener:Be,delegates:{mousemove:function(Ue){var Qe=We.getLayer(ze)?We.queryRenderedFeatures(Ue.point,{layers:[ze]}):[];Qe.length?$e||($e=!0,Be.call(We,new fl(Ee,We,Ue.originalEvent,{features:Qe}))):$e=!1},mouseout:function(){$e=!1}}}}if("mouseleave"===Ee||"mouseout"===Ee){var Qe=!1;return{layer:ze,listener:Be,delegates:{mousemove:function(Ue){(We.getLayer(ze)?We.queryRenderedFeatures(Ue.point,{layers:[ze]}):[]).length?Qe=!0:Qe&&(Qe=!1,Be.call(We,new fl(Ee,We,Ue.originalEvent)))},mouseout:function(ze){Qe&&(Qe=!1,Be.call(We,new fl(Ee,We,ze.originalEvent)))}}}}return{layer:ze,listener:Be,delegates:(Ue={},Ue[Ee]=function(Ee){var Ue=We.getLayer(ze)?We.queryRenderedFeatures(Ee.point,{layers:[ze]}):[];Ue.length&&(Ee.features=Ue,Be.call(We,Ee),delete Ee.features)},Ue)}}();for(var Qe in this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[Ee]=this._delegatedListeners[Ee]||[],this._delegatedListeners[Ee].push($e),$e.delegates)this.on(Qe,$e.delegates[Qe]);return this},r.prototype.off=function(Ee,ze,Be){if(void 0===Be)return Ue.prototype.off.call(this,Ee,ze);if(this._delegatedListeners&&this._delegatedListeners[Ee])for(var We=this._delegatedListeners[Ee],$e=0;$e180;){var rt=Ue.locationPoint(ze);if(rt.x>=0&&rt.y>=0&&rt.x<=Ue.width&&rt.y<=Ue.height)break;ze.lng>Ue.center.lng?ze.lng-=360:ze.lng+=360}return ze}No.prototype._updateZoomButtons=function(){var Ee=this._map.getZoom();Ee===this._map.getMaxZoom()?this._zoomInButton.classList.add("mapboxgl-ctrl-icon-disabled"):this._zoomInButton.classList.remove("mapboxgl-ctrl-icon-disabled"),Ee===this._map.getMinZoom()?this._zoomOutButton.classList.add("mapboxgl-ctrl-icon-disabled"):this._zoomOutButton.classList.remove("mapboxgl-ctrl-icon-disabled")},No.prototype._rotateCompassArrow=function(){var Ee=this.options.visualizePitch?"scale("+1/Math.pow(Math.cos(this._map.transform.pitch*(Math.PI/180)),.5)+") rotateX("+this._map.transform.pitch+"deg) rotateZ("+this._map.transform.angle*(180/Math.PI)+"deg)":"rotate("+this._map.transform.angle*(180/Math.PI)+"deg)";this._compassArrow.style.transform=Ee},No.prototype.onAdd=function(Ee){return this._map=Ee,this.options.showZoom&&(this._map.on("zoom",this._updateZoomButtons),this._updateZoomButtons()),this.options.showCompass&&(this.options.visualizePitch&&this._map.on("pitch",this._rotateCompassArrow),this._map.on("rotate",this._rotateCompassArrow),this._rotateCompassArrow(),this._handler=new bo(Ee,{button:"left",element:this._compass}),Be.addEventListener(this._compass,"mousedown",this._handler.onMouseDown),Be.addEventListener(this._compass,"touchstart",this._handler.onMouseDown,{passive:!1}),this._handler.enable()),this._container},No.prototype.onRemove=function(){Be.remove(this._container),this.options.showZoom&&this._map.off("zoom",this._updateZoomButtons),this.options.showCompass&&(this.options.visualizePitch&&this._map.off("pitch",this._rotateCompassArrow),this._map.off("rotate",this._rotateCompassArrow),Be.removeEventListener(this._compass,"mousedown",this._handler.onMouseDown),Be.removeEventListener(this._compass,"touchstart",this._handler.onMouseDown,{passive:!1}),this._handler.disable(),delete this._handler),delete this._map},No.prototype._createButton=function(Ee,ze,Ue){var We=Be.create("button",Ee,this._container);return We.type="button",We.title=ze,We.setAttribute("aria-label",ze),We.addEventListener("click",Ue),We};var El={center:"translate(-50%,-50%)",top:"translate(-50%,0)","top-left":"translate(0,0)","top-right":"translate(-100%,0)",bottom:"translate(-50%,-100%)","bottom-left":"translate(0,-100%)","bottom-right":"translate(-100%,-100%)",left:"translate(0,-50%)",right:"translate(-100%,-50%)"};function jo(Ee,ze,Be){var Ue=Ee.classList;for(var We in El)Ue.remove("mapboxgl-"+Be+"-anchor-"+We);Ue.add("mapboxgl-"+Be+"-anchor-"+ze)}var Pl,Ol=function(ze){function o(Ue,We){if(ze.call(this),(Ue instanceof Ee.window.HTMLElement||We)&&(Ue=Ee.extend({element:Ue},We)),Ee.bindAll(["_update","_onMove","_onUp","_addDragHandler","_onMapClick"],this),this._anchor=Ue&&Ue.anchor||"center",this._color=Ue&&Ue.color||"#3FB1CE",this._draggable=Ue&&Ue.draggable||!1,this._state="inactive",Ue&&Ue.element)this._element=Ue.element,this._offset=Ee.Point.convert(Ue&&Ue.offset||[0,0]);else{this._defaultMarker=!0,this._element=Be.create("div");var $e=Be.createNS("http://www.w3.org/2000/svg","svg");$e.setAttributeNS(null,"display","block"),$e.setAttributeNS(null,"height","41px"),$e.setAttributeNS(null,"width","27px"),$e.setAttributeNS(null,"viewBox","0 0 27 41");var Qe=Be.createNS("http://www.w3.org/2000/svg","g");Qe.setAttributeNS(null,"stroke","none"),Qe.setAttributeNS(null,"stroke-width","1"),Qe.setAttributeNS(null,"fill","none"),Qe.setAttributeNS(null,"fill-rule","evenodd");var rt=Be.createNS("http://www.w3.org/2000/svg","g");rt.setAttributeNS(null,"fill-rule","nonzero");var it=Be.createNS("http://www.w3.org/2000/svg","g");it.setAttributeNS(null,"transform","translate(3.0, 29.0)"),it.setAttributeNS(null,"fill","#000000");for(var at=0,ct=[{rx:"10.5",ry:"5.25002273"},{rx:"10.5",ry:"5.25002273"},{rx:"9.5",ry:"4.77275007"},{rx:"8.5",ry:"4.29549936"},{rx:"7.5",ry:"3.81822308"},{rx:"6.5",ry:"3.34094679"},{rx:"5.5",ry:"2.86367051"},{rx:"4.5",ry:"2.38636864"}];at5280?Yo(ze,at,xt/5280,"mi"):Yo(ze,at,xt,"ft")}else Be&&"nautical"===Be.unit?Yo(ze,at,ft/1852,"nm"):Yo(ze,at,ft,"m")}function Yo(Ee,ze,Be,Ue){var We,$e,Qe,rt=(We=Be,($e=Math.pow(10,(""+Math.floor(We)).length-1))*(Qe=(Qe=We/$e)>=10?10:Qe>=5?5:Qe>=3?3:Qe>=2?2:Qe>=1?1:function(Ee){var ze=Math.pow(10,Math.ceil(-Math.log(Ee)/Math.LN10));return Math.round(Ee*ze)/ze}(Qe))),it=rt/Be;"m"===Ue&&rt>=1e3&&(rt/=1e3,Ue="km"),Ee.style.width=ze*it+"px",Ee.innerHTML=rt+Ue}Ko.prototype.getDefaultPosition=function(){return"bottom-left"},Ko.prototype._onMove=function(){Jo(this._map,this._container,this.options)},Ko.prototype.onAdd=function(Ee){return this._map=Ee,this._container=Be.create("div","mapboxgl-ctrl mapboxgl-ctrl-scale",Ee.getContainer()),this._map.on("move",this._onMove),this._onMove(),this._container},Ko.prototype.onRemove=function(){Be.remove(this._container),this._map.off("move",this._onMove),this._map=void 0},Ko.prototype.setUnit=function(Ee){this.options.unit=Ee,Jo(this._map,this._container,this.options)};var Qo=function(ze){this._fullscreen=!1,ze&&ze.container&&(ze.container instanceof Ee.window.HTMLElement?this._container=ze.container:Ee.warnOnce("Full screen control 'container' must be a DOM element.")),Ee.bindAll(["_onClickFullscreen","_changeIcon"],this),"onfullscreenchange"in Ee.window.document?this._fullscreenchange="fullscreenchange":"onmozfullscreenchange"in Ee.window.document?this._fullscreenchange="mozfullscreenchange":"onwebkitfullscreenchange"in Ee.window.document?this._fullscreenchange="webkitfullscreenchange":"onmsfullscreenchange"in Ee.window.document&&(this._fullscreenchange="MSFullscreenChange"),this._className="mapboxgl-ctrl"};Qo.prototype.onAdd=function(ze){return this._map=ze,this._container||(this._container=this._map.getContainer()),this._controlContainer=Be.create("div",this._className+" mapboxgl-ctrl-group"),this._checkFullscreenSupport()?this._setupUI():(this._controlContainer.style.display="none",Ee.warnOnce("This device does not support fullscreen mode.")),this._controlContainer},Qo.prototype.onRemove=function(){Be.remove(this._controlContainer),this._map=null,Ee.window.document.removeEventListener(this._fullscreenchange,this._changeIcon)},Qo.prototype._checkFullscreenSupport=function(){return!!(Ee.window.document.fullscreenEnabled||Ee.window.document.mozFullScreenEnabled||Ee.window.document.msFullscreenEnabled||Ee.window.document.webkitFullscreenEnabled)},Qo.prototype._setupUI=function(){(this._fullscreenButton=Be.create("button",this._className+"-icon "+this._className+"-fullscreen",this._controlContainer)).type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),Ee.window.document.addEventListener(this._fullscreenchange,this._changeIcon)},Qo.prototype._updateTitle=function(){var Ee=this._isFullscreen()?"Exit fullscreen":"Enter fullscreen";this._fullscreenButton.setAttribute("aria-label",Ee),this._fullscreenButton.title=Ee},Qo.prototype._isFullscreen=function(){return this._fullscreen},Qo.prototype._changeIcon=function(){(Ee.window.document.fullscreenElement||Ee.window.document.mozFullScreenElement||Ee.window.document.webkitFullscreenElement||Ee.window.document.msFullscreenElement)===this._container!==this._fullscreen&&(this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle(this._className+"-shrink"),this._fullscreenButton.classList.toggle(this._className+"-fullscreen"),this._updateTitle())},Qo.prototype._onClickFullscreen=function(){this._isFullscreen()?Ee.window.document.exitFullscreen?Ee.window.document.exitFullscreen():Ee.window.document.mozCancelFullScreen?Ee.window.document.mozCancelFullScreen():Ee.window.document.msExitFullscreen?Ee.window.document.msExitFullscreen():Ee.window.document.webkitCancelFullScreen&&Ee.window.document.webkitCancelFullScreen():this._container.requestFullscreen?this._container.requestFullscreen():this._container.mozRequestFullScreen?this._container.mozRequestFullScreen():this._container.msRequestFullscreen?this._container.msRequestFullscreen():this._container.webkitRequestFullscreen&&this._container.webkitRequestFullscreen()};var zl={closeButton:!0,closeOnClick:!0,className:"",maxWidth:"240px"},Rl=function(ze){function o(Be){ze.call(this),this.options=Ee.extend(Object.create(zl),Be),Ee.bindAll(["_update","_onClickClose","remove"],this)}return ze&&(o.__proto__=ze),o.prototype=Object.create(ze&&ze.prototype),o.prototype.constructor=o,o.prototype.addTo=function(ze){var Be=this;return this._map=ze,this.options.closeOnClick&&this._map.on("click",this._onClickClose),this._map.on("remove",this.remove),this._update(),this._trackPointer?(this._map.on("mousemove",(function(Ee){Be._update(Ee.point)})),this._map.on("mouseup",(function(Ee){Be._update(Ee.point)})),this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")):this._map.on("move",this._update),this.fire(new Ee.Event("open")),this},o.prototype.isOpen=function(){return!!this._map},o.prototype.remove=function(){return this._content&&Be.remove(this._content),this._container&&(Be.remove(this._container),delete this._container),this._map&&(this._map.off("move",this._update),this._map.off("click",this._onClickClose),this._map.off("remove",this.remove),this._map.off("mousemove"),delete this._map),this.fire(new Ee.Event("close")),this},o.prototype.getLngLat=function(){return this._lngLat},o.prototype.setLngLat=function(ze){return this._lngLat=Ee.LngLat.convert(ze),this._pos=null,this._trackPointer=!1,this._update(),this._map&&(this._map.on("move",this._update),this._map.off("mousemove"),this._container.classList.remove("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.remove("mapboxgl-track-pointer")),this},o.prototype.trackPointer=function(){var Ee=this;return this._trackPointer=!0,this._pos=null,this._map&&(this._map.off("move",this._update),this._map.on("mousemove",(function(ze){Ee._update(ze.point)})),this._map.on("drag",(function(ze){Ee._update(ze.point)})),this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")),this},o.prototype.getElement=function(){return this._container},o.prototype.setText=function(ze){return this.setDOMContent(Ee.window.document.createTextNode(ze))},o.prototype.setHTML=function(ze){var Be,Ue=Ee.window.document.createDocumentFragment(),We=Ee.window.document.createElement("body");for(We.innerHTML=ze;Be=We.firstChild;)Ue.appendChild(Be);return this.setDOMContent(Ue)},o.prototype.getMaxWidth=function(){return this._container.style.maxWidth},o.prototype.setMaxWidth=function(Ee){return this.options.maxWidth=Ee,this._update(),this},o.prototype.setDOMContent=function(Ee){return this._createContent(),this._content.appendChild(Ee),this._update(),this},o.prototype._createContent=function(){this._content&&Be.remove(this._content),this._content=Be.create("div","mapboxgl-popup-content",this._container),this.options.closeButton&&(this._closeButton=Be.create("button","mapboxgl-popup-close-button",this._content),this._closeButton.type="button",this._closeButton.setAttribute("aria-label","Close popup"),this._closeButton.innerHTML="×",this._closeButton.addEventListener("click",this._onClickClose))},o.prototype._update=function(ze){var Ue=this,We=this._lngLat||this._trackPointer;if(this._map&&We&&this._content&&(this._container||(this._container=Be.create("div","mapboxgl-popup",this._map.getContainer()),this._tip=Be.create("div","mapboxgl-popup-tip",this._container),this._container.appendChild(this._content),this.options.className&&this.options.className.split(" ").forEach((function(Ee){return Ue._container.classList.add(Ee)}))),this.options.maxWidth&&this._container.style.maxWidth!==this.options.maxWidth&&(this._container.style.maxWidth=this.options.maxWidth),this._map.transform.renderWorldCopies&&!this._trackPointer&&(this._lngLat=Zo(this._lngLat,this._pos,this._map.transform)),!this._trackPointer||ze)){var $e=this._pos=this._trackPointer&&ze?ze:this._map.project(this._lngLat),Qe=this.options.anchor,rt=function e(ze){if(ze){if("number"==typeof ze){var Be=Math.round(Math.sqrt(.5*Math.pow(ze,2)));return{center:new Ee.Point(0,0),top:new Ee.Point(0,ze),"top-left":new Ee.Point(Be,Be),"top-right":new Ee.Point(-Be,Be),bottom:new Ee.Point(0,-ze),"bottom-left":new Ee.Point(Be,-Be),"bottom-right":new Ee.Point(-Be,-Be),left:new Ee.Point(ze,0),right:new Ee.Point(-ze,0)}}if(ze instanceof Ee.Point||Array.isArray(ze)){var Ue=Ee.Point.convert(ze);return{center:Ue,top:Ue,"top-left":Ue,"top-right":Ue,bottom:Ue,"bottom-left":Ue,"bottom-right":Ue,left:Ue,right:Ue}}return{center:Ee.Point.convert(ze.center||[0,0]),top:Ee.Point.convert(ze.top||[0,0]),"top-left":Ee.Point.convert(ze["top-left"]||[0,0]),"top-right":Ee.Point.convert(ze["top-right"]||[0,0]),bottom:Ee.Point.convert(ze.bottom||[0,0]),"bottom-left":Ee.Point.convert(ze["bottom-left"]||[0,0]),"bottom-right":Ee.Point.convert(ze["bottom-right"]||[0,0]),left:Ee.Point.convert(ze.left||[0,0]),right:Ee.Point.convert(ze.right||[0,0])}}return e(new Ee.Point(0,0))}(this.options.offset);if(!Qe){var it,at=this._container.offsetWidth,ct=this._container.offsetHeight;it=$e.y+rt.bottom.ythis._map.transform.height-ct?["bottom"]:[],$e.xthis._map.transform.width-at/2&&it.push("right"),Qe=0===it.length?"bottom":it.join("-")}var ft=$e.add(rt[Qe]).round();Be.setTransform(this._container,El[Qe]+" translate("+ft.x+"px,"+ft.y+"px)"),jo(this._container,Qe,"popup")}},o.prototype._onClickClose=function(){this.remove()},o}(Ee.Evented),Bl={version:Ee.version,supported:ze,setRTLTextPlugin:Ee.setRTLTextPlugin,Map:Sl,NavigationControl:No,GeolocateControl:Dl,AttributionControl:Mo,ScaleControl:Ko,FullscreenControl:Qo,Popup:Rl,Marker:Ol,Style:es,LngLat:Ee.LngLat,LngLatBounds:Ee.LngLatBounds,Point:Ee.Point,MercatorCoordinate:Ee.MercatorCoordinate,Evented:Ee.Evented,config:Ee.config,get accessToken(){return Ee.config.ACCESS_TOKEN},set accessToken(ze){Ee.config.ACCESS_TOKEN=ze},get baseApiUrl(){return Ee.config.API_URL},set baseApiUrl(ze){Ee.config.API_URL=ze},get workerCount(){return At.workerCount},set workerCount(Ee){At.workerCount=Ee},get maxParallelImageRequests(){return Ee.config.MAX_PARALLEL_IMAGE_REQUESTS},set maxParallelImageRequests(ze){Ee.config.MAX_PARALLEL_IMAGE_REQUESTS=ze},clearStorage:function(ze){Ee.clearTileCache(ze)},workerUrl:""};return Bl})),Be}()},e19c:function(Ee,ze,Be){"use strict";var Ue,We=Be("2160"),$e=Be("96ae"),Qe=Object.prototype.isPrototypeOf,rt=Object.defineProperty,it={configurable:!0,enumerable:!1,writable:!0,value:void 0};Ue=function(Ee,ze){if($e(Ee),null===ze||We(ze))return Ee;throw new TypeError("Prototype must be null or an object")},Ee.exports=function(Ee){var ze,Be;return Ee?(2===Ee.level?Ee.set?(Be=Ee.set,ze=function(Ee,ze){return Be.call(Ue(Ee,ze),ze),Ee}):ze=function(Ee,ze){return Ue(Ee,ze).__proto__=ze,Ee}:ze=function self(Ee,ze){var Be;return Ue(Ee,ze),(Be=Qe.call(self.nullPolyfill,Ee))&&delete self.nullPolyfill.__proto__,null===ze&&(ze=self.nullPolyfill),Ee.__proto__=ze,Be&&rt(self.nullPolyfill,"__proto__",it),Ee},Object.defineProperty(ze,"level",{configurable:!1,enumerable:!1,writable:!1,value:Ee.level})):null}(function(){var Ee,ze=Object.create(null),Be={},Ue=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__");if(Ue){try{(Ee=Ue.set).call(ze,Be)}catch(Ee){}if(Object.getPrototypeOf(ze)===Be)return{set:Ee,level:2}}return ze.__proto__=Be,Object.getPrototypeOf(ze)===Be?{level:2}:((ze={}).__proto__=Be,Object.getPrototypeOf(ze)===Be&&{level:1})}()),Be("ba4b")},e19f:function(Ee,ze,Be){var Ue;!function(){"use strict";var We={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function sprintf(Ee){return sprintf_format(sprintf_parse(Ee),arguments)}function vsprintf(Ee,ze){return sprintf.apply(null,[Ee].concat(ze||[]))}function sprintf_format(Ee,ze){var Be,Ue,$e,Qe,rt,it,at,ct,ft,xt=1,kt=Ee.length,Lt="";for(Ue=0;Ue=0),Qe.type){case"b":Be=parseInt(Be,10).toString(2);break;case"c":Be=String.fromCharCode(parseInt(Be,10));break;case"d":case"i":Be=parseInt(Be,10);break;case"j":Be=JSON.stringify(Be,null,Qe.width?parseInt(Qe.width):0);break;case"e":Be=Qe.precision?parseFloat(Be).toExponential(Qe.precision):parseFloat(Be).toExponential();break;case"f":Be=Qe.precision?parseFloat(Be).toFixed(Qe.precision):parseFloat(Be);break;case"g":Be=Qe.precision?String(Number(Be.toPrecision(Qe.precision))):parseFloat(Be);break;case"o":Be=(parseInt(Be,10)>>>0).toString(8);break;case"s":Be=String(Be),Be=Qe.precision?Be.substring(0,Qe.precision):Be;break;case"t":Be=String(!!Be),Be=Qe.precision?Be.substring(0,Qe.precision):Be;break;case"T":Be=Object.prototype.toString.call(Be).slice(8,-1).toLowerCase(),Be=Qe.precision?Be.substring(0,Qe.precision):Be;break;case"u":Be=parseInt(Be,10)>>>0;break;case"v":Be=Be.valueOf(),Be=Qe.precision?Be.substring(0,Qe.precision):Be;break;case"x":Be=(parseInt(Be,10)>>>0).toString(16);break;case"X":Be=(parseInt(Be,10)>>>0).toString(16).toUpperCase()}We.json.test(Qe.type)?Lt+=Be:(!We.number.test(Qe.type)||ct&&!Qe.sign?ft="":(ft=ct?"+":"-",Be=Be.toString().replace(We.sign,"")),it=Qe.pad_char?"0"===Qe.pad_char?"0":Qe.pad_char.charAt(1):" ",at=Qe.width-(ft+Be).length,rt=Qe.width&&at>0?it.repeat(at):"",Lt+=Qe.align?ft+Be+rt:"0"===it?ft+rt+Be:rt+ft+Be)}return Lt}var $e=Object.create(null);function sprintf_parse(Ee){if($e[Ee])return $e[Ee];for(var ze,Be=Ee,Ue=[],Qe=0;Be;){if(null!==(ze=We.text.exec(Be)))Ue.push(ze[0]);else if(null!==(ze=We.modulo.exec(Be)))Ue.push("%");else{if(null===(ze=We.placeholder.exec(Be)))throw new SyntaxError("[sprintf] unexpected placeholder");if(ze[2]){Qe|=1;var rt=[],it=ze[2],at=[];if(null===(at=We.key.exec(it)))throw new SyntaxError("[sprintf] failed to parse named argument key");for(rt.push(at[1]);""!==(it=it.substring(at[0].length));)if(null!==(at=We.key_access.exec(it)))rt.push(at[1]);else{if(null===(at=We.index_access.exec(it)))throw new SyntaxError("[sprintf] failed to parse named argument key");rt.push(at[1])}ze[2]=rt}else Qe|=2;if(3===Qe)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");Ue.push({placeholder:ze[0],param_no:ze[1],keys:ze[2],sign:ze[3],pad_char:ze[4],align:ze[5],width:ze[6],precision:ze[7],type:ze[8]})}Be=Be.substring(ze[0].length)}return $e[Ee]=Ue}ze.sprintf=sprintf,ze.vsprintf=vsprintf,"undefined"!=typeof window&&(window.sprintf=sprintf,window.vsprintf=vsprintf,void 0===(Ue=function(){return{sprintf:sprintf,vsprintf:vsprintf}}.call(ze,Be,ze,Ee))||(Ee.exports=Ue))}()},e1e5:function(Ee,ze,Be){"use strict";var Ue=Be("fc26"),We=Be("3aa8");function processGrid(Ee){var ze,Be,We,$e,Qe,rt,it,at,ct,ft,xt,kt,Lt=Ee._x,Ut=Ee._y,er=Ee._z,tr=Ee._len,rr=-1/0,ar=1/0,Lr=-1/0,Qr=1/0,on=-1/0,sn=1/0,cn="";for(tr&&(it=Lt[0],ct=Ut[0],xt=er[0]),tr>1&&(at=Lt[tr-1],ft=Ut[tr-1],kt=er[tr-1]),ze=0;zeat?"-":"+")+"x")).replace("y",(ct>ft?"-":"+")+"y")).replace("z",(xt>kt?"-":"+")+"z");var empty=function(){tr=0,un=[],hn=[],dn=[]};(!tr||tr0){var xt=We.c2l(ct);We._lowerLogErrorBound||(We._lowerLogErrorBound=xt),We._lowerErrorBound=Math.min(We._lowerLogErrorBound,xt)}}else Qe[rt]=[-it[0]*Be,it[1]*Be]}return Qe}Ee.exports=function calculateErrors(Ee,ze,Be){var Ue=[calculateAxisErrors(Ee.x,Ee.error_x,ze[0],Be.xaxis),calculateAxisErrors(Ee.y,Ee.error_y,ze[1],Be.yaxis),calculateAxisErrors(Ee.z,Ee.error_z,ze[2],Be.zaxis)],We=function dataLength(Ee){for(var ze=0;ze$e&&($e=ct,Qe=at)}}return $e?We(Qe):rt};case"rms":return function(Ee,ze){for(var Be=0,$e=0,Qe=0;Qe2&&(ze.push([Ue].concat($e.splice(0,2))),Qe="l",Ue="m"==Ue?"l":"L");;){if($e.length==Be[Qe])return $e.unshift(Ue),ze.push($e);if($e.lengthxt?2*(Lr.sizeAvg||Math.max(Lr.size,3)):$e(ze,ar),kt=0;kt1e-6?(We=Math.acos($e),Qe=Math.sin(We),rt=Math.sin((1-Ue)*We)/Qe,it=Math.sin(Ue*We)/Qe):(rt=1-Ue,it=Ue);return Ee[0]=rt*at+it*kt,Ee[1]=rt*ct+it*Lt,Ee[2]=rt*ft+it*Ut,Ee[3]=rt*xt+it*er,Ee}},e5cb:function(Ee,ze,Be){"use strict";var Ue=Be("9776"),We=Be("0642"),$e=Be("f977");function Heatmap(Ee,ze){this.scene=Ee,this.uid=ze,this.type="heatmapgl",this.name="",this.hoverinfo="all",this.xData=[],this.yData=[],this.zData=[],this.textLabels=[],this.idToIndex=[],this.bounds=[0,0,0,0],this.options={z:[],x:[],y:[],shape:[0,0],colorLevels:[0],colorValues:[0,0,0,1]},this.heatmap=Ue(Ee.glplot,this.options),this.heatmap._trace=this}var Qe=Heatmap.prototype;Qe.handlePick=function(Ee){var ze=this.options,Be=ze.shape,Ue=Ee.pointId,We=Ue%Be[0],$e=Math.floor(Ue/Be[0]),Qe=Ue;return{trace:this,dataCoord:Ee.dataCoord,traceCoord:[ze.x[We],ze.y[$e],ze.z[Qe]],textLabel:this.textLabels[Ue],name:this.name,pointIndex:[$e,We],hoverinfo:this.hoverinfo}},Qe.update=function(Ee,ze){var Be=ze[0];this.index=Ee.index,this.name=Ee.name,this.hoverinfo=Ee.hoverinfo;var Ue=Be.z;this.options.z=[].concat.apply([],Ue);var Qe=Ue[0].length,rt=Ue.length;this.options.shape=[Qe,rt],this.options.x=Be.x,this.options.y=Be.y;var it=function convertColorscale(Ee){for(var ze=Ee.colorscale,Be=Ee.zmin,Ue=Ee.zmax,We=ze.length,Qe=new Array(We),rt=new Array(4*We),it=0;it0}))).length,Ut=new Array(Lt),er=new Array(Lt);for(xt=0;xt0;){var Bn=Pn.pop(),Hn=dn[Bn];it(Hn,(function(Ee,ze){return Ee-ze}));var Kn,Jn=Hn.length,ei=In[Bn];if(0===ei){var ti=kt[Bn];Kn=[ti]}for(xt=0;xt=0))if(In[ri]=1^ei,Pn.push(ri),0===ei)sharedBoundary(ti=kt[ri])||(ti.reverse(),Kn.push(ti))}0===ei&&Be.push(Kn)}return Be};var Ue=Be("c586"),We=Be("9915"),$e=Be("4ae2"),Qe=Be("c01c"),rt=Be("a026"),it=Be("175e"),at=Be("ce8f");function makeArray(Ee,ze){for(var Be=new Array(Ee),Ue=0;Ue")}(at,ct,it[0].t.labels),[rt]}}},e76c:function(Ee,ze,Be){"use strict";Ee.exports=function(){}},e7ab:function(Ee,ze,Be){"use strict";var Ue=Be("6e58"),We=Be("d115"),$e=Be("83d1"),Qe=Be("c258");function styleTrace(Ee,ze){var Be=ze[0].trace,rt=ze[0].node3.selectAll(".choroplethlocation"),it=Be.marker||{},at=it.line||{},ct=Qe.makeColorScaleFuncFromTrace(Be);rt.each((function(Ee){Ue.select(this).attr("fill",ct(Ee.z)).call(We.stroke,Ee.mlc||at.color).call($e.dashLine,"",Ee.mlw||at.width||0).style("opacity",it.opacity)})),$e.selectedPointStyle(rt,Be,Ee)}Ee.exports={style:function style(Ee,ze){ze&&styleTrace(Ee,ze)},styleOnSelect:function styleOnSelect(Ee,ze){var Be=ze[0].node3,Ue=ze[0].trace;Ue.selectedpoints?$e.selectedPointStyle(Be.selectAll(".choroplethlocation"),Ue,Ee):styleTrace(Ee,ze)}}},e7bd:function(Ee,ze,Be){"use strict";var Ue=Be("9845"),We=Be("c715"),$e=Be("dfb3"),Qe=Ue({editType:"calc"});Qe.family.dflt='"Open Sans", verdana, arial, sans-serif',Qe.size.dflt=12,Qe.color.dflt=$e.defaultLine,Ee.exports={carpet:{valType:"string",editType:"calc"},x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},a:{valType:"data_array",editType:"calc"},a0:{valType:"number",dflt:0,editType:"calc"},da:{valType:"number",dflt:1,editType:"calc"},b:{valType:"data_array",editType:"calc"},b0:{valType:"number",dflt:0,editType:"calc"},db:{valType:"number",dflt:1,editType:"calc"},cheaterslope:{valType:"number",dflt:1,editType:"calc"},aaxis:We,baxis:We,font:Qe,color:{valType:"color",dflt:$e.defaultLine,editType:"plot"},transforms:void 0}},e7cb:function(Ee,ze,Be){"use strict";(function(ze){var Ue=Be("4f4d"),We=Be("3642"),$e=Be("84a1");Ee.exports=function parse(Ee){var Be,rt,it=[],at=1;if("string"==typeof Ee)if(Ue[Ee])it=Ue[Ee].slice(),rt="rgb";else if("transparent"===Ee)at=0,rt="rgb",it=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(Ee)){var ct=(kt=Ee.slice(1)).length;at=1,ct<=4?(it=[parseInt(kt[0]+kt[0],16),parseInt(kt[1]+kt[1],16),parseInt(kt[2]+kt[2],16)],4===ct&&(at=parseInt(kt[3]+kt[3],16)/255)):(it=[parseInt(kt[0]+kt[1],16),parseInt(kt[2]+kt[3],16),parseInt(kt[4]+kt[5],16)],8===ct&&(at=parseInt(kt[6]+kt[7],16)/255)),it[0]||(it[0]=0),it[1]||(it[1]=0),it[2]||(it[2]=0),rt="rgb"}else if(Be=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(Ee)){var ft=Be[1],xt="rgb"===ft,kt=ft.replace(/a$/,"");rt=kt;ct="cmyk"===kt?4:"gray"===kt?1:3;it=Be[2].trim().split(/\s*,\s*/).map((function(Ee,ze){if(/%$/.test(Ee))return ze===ct?parseFloat(Ee)/100:"rgb"===kt?255*parseFloat(Ee)/100:parseFloat(Ee);if("h"===kt[ze]){if(/deg$/.test(Ee))return parseFloat(Ee);if(void 0!==Qe[Ee])return Qe[Ee]}return parseFloat(Ee)})),ft===kt&&it.push(1),at=xt||void 0===it[ct]?1:it[ct],it=it.slice(0,ct)}else Ee.length>10&&/[0-9](?:\s|\/)/.test(Ee)&&(it=Ee.match(/([0-9]+)/g).map((function(Ee){return parseFloat(Ee)})),rt=Ee.match(/([a-z])/gi).join("").toLowerCase());else if(isNaN(Ee))if(We(Ee)){var Lt=$e(Ee.r,Ee.red,Ee.R,null);null!==Lt?(rt="rgb",it=[Lt,$e(Ee.g,Ee.green,Ee.G),$e(Ee.b,Ee.blue,Ee.B)]):(rt="hsl",it=[$e(Ee.h,Ee.hue,Ee.H),$e(Ee.s,Ee.saturation,Ee.S),$e(Ee.l,Ee.lightness,Ee.L,Ee.b,Ee.brightness)]),at=$e(Ee.a,Ee.alpha,Ee.opacity,1),null!=Ee.opacity&&(at/=100)}else(Array.isArray(Ee)||ze.ArrayBuffer&&ArrayBuffer.isView&&ArrayBuffer.isView(Ee))&&(it=[Ee[0],Ee[1],Ee[2]],rt="rgb",at=4===Ee.length?Ee[3]:1);else rt="rgb",it=[Ee>>>16,(65280&Ee)>>>8,255&Ee];return{space:rt,values:it,alpha:at}};var Qe={red:0,orange:60,yellow:120,green:180,blue:240,purple:300}}).call(this,Be("c8ba"))},e7d5:function(Ee,ze,Be){"use strict";var Ue=Be("f118");Ee.exports=function plot(Ee,ze,Be){var We=ze.plotContainer;We.select(".scatterlayer").selectAll("*").remove();var $e={xaxis:ze.xaxis,yaxis:ze.yaxis,plot:We,layerClipId:ze._hasClipOnAxisFalse?ze.clipIdRelative:null},Qe=ze.layers.frontplot.select("g.scatterlayer");Ue(Ee,$e,Be,Qe)}},e806:function(Ee,ze,Be){"use strict";Ee.exports={BADNUM:void 0,FP_SAFE:Number.MAX_VALUE/1e4,ONEAVGYEAR:315576e5,ONEAVGMONTH:26298e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,EPOCHJD:2440587.5,ALMOST_EQUAL:.999999,LOG_CLIP:10,MINUS_SIGN:"−"}},e812:function(Ee,ze,Be){"use strict";var Ue=Be("6e58"),We=Be("19b2"),$e=Be("66cb"),Qe=Be("fc26"),rt=Be("8741"),it=Be("0379"),at=Be("c953"),ct=Be("83d1"),ft=Be("d115"),xt=Be("4efe"),kt=Be("0642"),Lt=Be("371e"),Ut=Be("c4c7"),er=Be("7fb7"),tr=er.YANGLE,rr=Math.PI*tr/180,ar=1/Math.sin(rr),Lr=Math.cos(rr),Qr=Math.sin(rr),on=er.HOVERARROWSIZE,sn=er.HOVERTEXTPAD;ze.hover=function hover(Ee,ze,Be,$e){Ee=Qe.getGraphDiv(Ee),Qe.throttle(Ee._fullLayout._uid+er.HOVERID,er.HOVERMINTIME,(function(){!function _hover(Ee,ze,Be,$e){Be||(Be="xy");var it=Array.isArray(Be)?Be:[Be],ct=Ee._fullLayout,kt=ct._plots||[],er=kt[Be],tr=ct._has("cartesian");if(er){var rr=er.overlays.map((function(Ee){return Ee.id}));it=it.concat(rr)}for(var Lr=it.length,Qr=new Array(Lr),on=new Array(Lr),sn=!1,cn=0;cnQr[0]._length||li<0||li>on[0]._length)return xt.unhoverRaw(Ee,ze)}if(ze.pointerX=si+Qr[0]._offset,ze.pointerY=li+on[0]._offset,vn="xval"in ze?Ut.flat(it,ze.xval):Ut.p2c(Qr,si),yn="yval"in ze?Ut.flat(it,ze.yval):Ut.p2c(on,li),!We(vn[0])||!We(yn[0]))return Qe.warn("Fx.hover failed",ze,Ee),xt.unhoverRaw(Ee,ze)}var hi=1/0;for(Mn=0;Mnei&&(ni.splice(0,ei),hi=ni[0].distance),tr&&0!==ri&&0===ni.length){Jn.distance=ri,Jn.index=!1;var Xi=En._module.hoverPoints(Jn,Hn,Kn,"closest",ct._hoverlayer);if(Xi&&(Xi=Xi.filter((function(Ee){return Ee.spikeDistance<=ri}))),Xi&&Xi.length){var Ma,Sa=Xi.filter((function(Ee){return Ee.xa.showspikes}));if(Sa.length){var La=Sa[0];We(La.x0)&&We(La.y0)&&(Ma=fillSpikePoint(La),(!ai.vLinePoint||ai.vLinePoint.spikeDistance>Ma.spikeDistance)&&(ai.vLinePoint=Ma))}var Ia=Xi.filter((function(Ee){return Ee.ya.showspikes}));if(Ia.length){var Ra=Ia[0];We(Ra.x0)&&We(Ra.y0)&&(Ma=fillSpikePoint(Ra),(!ai.hLinePoint||ai.hLinePoint.spikeDistance>Ma.spikeDistance)&&(ai.hLinePoint=Ma))}}}}function selectClosestPoint(Ee,ze){for(var Be,Ue=null,We=1/0,$e=0;$e1||ni.length>1)||"closest"===dn&&oi&&ni.length>1,$o=ft.combine(ct.plot_bgcolor||ft.background,ct.paper_bgcolor),es={hovermode:dn,rotateLabels:Xo,bgColor:$o,container:ct._hoverlayer,outerContainer:ct._paperdiv,commonLabelOpts:ct.hoverlabel,hoverdistance:ct.hoverdistance},ts=createHoverText(ni,es,Ee);if(function hoverAvoidOverlaps(Ee,ze,Be){var Ue,We,$e,Qe,rt,it,at,ct=0,ft=1,xt=Ee.size(),kt=new Array(xt),Lt=0;function constrainGroup(Ee){var ze=Ee[0],Be=Ee[Ee.length-1];if(We=ze.pmin-ze.pos-ze.dp+ze.size,$e=Be.pos+Be.dp+Be.size-ze.pmax,We>.01){for(rt=Ee.length-1;rt>=0;rt--)Ee[rt].dp+=We;Ue=!1}if(!($e<.01)){if(We<-.01){for(rt=Ee.length-1;rt>=0;rt--)Ee[rt].dp-=$e;Ue=!1}if(Ue){var at=0;for(Qe=0;Qeze.pmax&&at++;for(Qe=Ee.length-1;Qe>=0&&!(at<=0);Qe--)(it=Ee[Qe]).pos>ze.pmax-1&&(it.del=!0,at--);for(Qe=0;Qe=0;rt--)Ee[rt].dp-=$e;for(Qe=Ee.length-1;Qe>=0&&!(at<=0);Qe--)(it=Ee[Qe]).pos+it.dp+it.size>ze.pmax&&(it.del=!0,at--)}}}Ee.each((function(Ee){var Ue=Ee[ze],We="x"===Ue._id.charAt(0),$e=Ue.range;0===Lt&&$e&&$e[0]>$e[1]!==We&&(ft=-1),kt[Lt++]=[{datum:Ee,traceIndex:Ee.trace.index,dp:0,pos:Ee.pos,posref:Ee.posref,size:Ee.by*(We?ar:1)/2,pmin:0,pmax:We?Be.width:Be.height}]})),kt.sort((function(Ee,ze){return Ee[0].posref-ze[0].posref||ft*(ze[0].traceIndex-Ee[0].traceIndex)}));for(;!Ue&&ct<=xt;){for(ct++,Ue=!0,Qe=0;Qe.01&&tr.pmin===rr.pmin&&tr.pmax===rr.pmax){for(rt=er.length-1;rt>=0;rt--)er[rt].dp+=We;for(Ut.push.apply(Ut,er),kt.splice(Qe+1,1),at=0,rt=Ut.length-1;rt>=0;rt--)at+=Ut[rt].dp;for($e=at/Ut.length,rt=Ut.length-1;rt>=0;rt--)Ut[rt].dp-=$e;Ue=!1}else Qe++}kt.forEach(constrainGroup)}for(Qe=kt.length-1;Qe>=0;Qe--){var Lr=kt[Qe];for(rt=Lr.length-1;rt>=0;rt--){var Qr=Lr[rt],on=Qr.datum;on.offset=Qr.dp,on.del=Qr.del}}}(ts,Xo?"xa":"ya",ct),alignHoverText(ts,Xo),ze.target&&ze.target.tagName){var rs=Lt.getComponentMethod("annotations","hasClickToShow")(Ee,Vo);at(Ue.select(ze.target),rs?"pointer":"")}if(!ze.target||$e||!function hoverChanged(Ee,ze,Be){if(!Be||Be.length!==Ee._hoverdata.length)return!0;for(var Ue=Be.length-1;Ue>=0;Ue--){var We=Be[Ue],$e=Ee._hoverdata[Ue];if(We.curveNumber!==$e.curveNumber||String(We.pointNumber)!==String($e.pointNumber)||String(We.pointNumbers)!==String($e.pointNumbers))return!0}return!1}(Ee,0,Bo))return;Bo&&Ee.emit("plotly_unhover",{event:ze,points:Bo});Ee.emit("plotly_hover",{event:ze,points:Ee._hoverdata,xaxes:Qr,yaxes:on,xvals:vn,yvals:yn})}(Ee,ze,Be,$e)}))},ze.loneHover=function loneHover(Ee,ze){var Be=!0;Array.isArray(Ee)||(Be=!1,Ee=[Ee]);var We=Ee.map((function(Ee){return{color:Ee.color||ft.defaultLine,x0:Ee.x0||Ee.x||0,x1:Ee.x1||Ee.x||0,y0:Ee.y0||Ee.y||0,y1:Ee.y1||Ee.y||0,xLabel:Ee.xLabel,yLabel:Ee.yLabel,zLabel:Ee.zLabel,text:Ee.text,name:Ee.name,idealAlign:Ee.idealAlign,borderColor:Ee.borderColor,fontFamily:Ee.fontFamily,fontSize:Ee.fontSize,fontColor:Ee.fontColor,nameLength:Ee.nameLength,textAlign:Ee.textAlign,trace:Ee.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:Ee.hovertemplate||!1,eventData:Ee.eventData||!1,hovertemplateLabels:Ee.hovertemplateLabels||!1}})),$e=Ue.select(ze.container),Qe=ze.outerContainer?Ue.select(ze.outerContainer):$e,rt={hovermode:"closest",rotateLabels:!1,bgColor:ze.bgColor||ft.background,container:$e,outerContainer:Qe},it=createHoverText(We,rt,ze.gd),at=0,ct=0;return it.sort((function(Ee,ze){return Ee.y0-ze.y0})).each((function(Ee,Be){var Ue=Ee.y0-Ee.by/2;Ee.offset=Ue-5([\s\S]*)<\/extra>/;function createHoverText(Ee,ze,Be){var We=Be._fullLayout,$e=ze.hovermode,rt=ze.rotateLabels,at=ze.bgColor,xt=ze.container,kt=ze.outerContainer,Lt=ze.commonLabelOpts||{},Ut=ze.fontFamily||er.HOVERFONT,rr=ze.fontSize||er.HOVERFONTSIZE,ar=Ee[0],Lr=ar.xa,Qr=ar.ya,un="y"===$e?"yLabel":"xLabel",hn=ar[un],dn=(String(hn)||"").split(" ")[0],vn=kt.node().getBoundingClientRect(),yn=vn.top,_n=vn.width,Mn=vn.height,Cn=void 0!==hn&&ar.distance<=ze.hoverdistance&&("x"===$e||"y"===$e);if(Cn){var En,Pn,In=!0;for(En=0;EnWe.width-Cn?(cn=We.width-Cn,rt.attr("d","M"+(Cn-on)+",0L"+Cn+","+Mn+on+"v"+Mn+(2*sn+_n.height)+"H-"+Cn+"V"+Mn+on+"H"+(Cn-2*on)+"Z")):rt.attr("d","M0,0L"+on+","+Mn+on+"H"+(sn+_n.width/2)+"v"+Mn+(2*sn+_n.height)+"H-"+(sn+_n.width/2)+"V"+Mn+on+"H-"+on+"Z")}else{var En,Pn,In;"right"===Qr.side?(En="start",Pn=1,In="",cn=Lr._offset+Lr._length):(En="end",Pn=-1,In="-",cn=Lr._offset),vn=Qr._offset+(ar.y0+ar.y1)/2,at.attr("text-anchor",En),rt.attr("d","M0,0L"+In+on+","+on+"V"+(sn+_n.height/2)+"h"+In+(2*sn+_n.width)+"V-"+(sn+_n.height/2)+"H"+In+on+"V-"+on+"Z");var Bn,Hn=_n.height/2,Kn=yn-_n.top-Hn,Jn="clip"+We._uid+"commonlabel"+Qr._id;if(cn<_n.width+2*sn+on){Bn="M-"+(on+sn)+"-"+Hn+"h-"+(_n.width-sn)+"V"+Hn+"h"+(_n.width-sn)+"Z";var ei=_n.width-cn+sn;it.positionText(at,ei,Kn),"end"===En&&at.selectAll("tspan").each((function(){var Ee=Ue.select(this),ze=ct.tester.append("text").text(Ee.text()).call(ct.font,tr),Be=ze.node().getBoundingClientRect();Math.round(Be.width)"),void 0!==Ee.yLabel&&(kt+="y: "+Ee.yLabel+"
"),"choropleth"!==Ee.trace.type&&"choroplethmapbox"!==Ee.trace.type&&(kt+=(kt?"z: ":"")+Ee.zLabel)):Cn&&Ee[$e+"Label"]===hn?kt=Ee[("x"===$e?"y":"x")+"Label"]||"":void 0===Ee.xLabel?void 0!==Ee.yLabel&&"scattercarpet"!==Ee.trace.type&&(kt=Ee.yLabel):kt=void 0===Ee.yLabel?Ee.xLabel:"("+Ee.xLabel+", "+Ee.yLabel+")",!Ee.text&&0!==Ee.text||Array.isArray(Ee.text)||(kt+=(kt?"
":"")+Ee.text),void 0!==Ee.extraText&&(kt+=(kt?"
":"")+Ee.extraText),""!==kt||Ee.hovertemplate||(""===xt&&ze.remove(),kt=xt);var Qr=We._d3locale,un=Ee.hovertemplate||!1,dn=Ee.hovertemplateLabels||Ee,vn=Ee.eventData[0]||{};un&&(kt=(kt=Qe.hovertemplateString(un,dn,Qr,vn,Ee.trace._meta)).replace(cn,(function(ze,Be){return xt=plainText(Be,Ee.nameLength),""})));var En=ze.select("text.nums").call(ct.font,Ee.fontFamily||Ut,Ee.fontSize||rr,Ee.fontColor||Lr).text(kt).attr("data-notex",1).call(it.positionText,0,0).call(it.convertToTspans,Be),Pn=ze.select("text.name"),In=0,Bn=0;if(xt&&xt!==kt){Pn.call(ct.font,Ee.fontFamily||Ut,Ee.fontSize||rr,ar).text(xt).attr("data-notex",1).call(it.positionText,0,0).call(it.convertToTspans,Be);var Hn=Pn.node().getBoundingClientRect();In=Hn.width+2*sn,Bn=Hn.height+2*sn}else Pn.remove(),ze.select("rect").remove();ze.select("path").style({fill:er,stroke:Lr});var Kn,Jn,ei=En.node().getBoundingClientRect(),ti=Ee.xa._offset+(Ee.x0+Ee.x1)/2,ri=Ee.ya._offset+(Ee.y0+Ee.y1)/2,ni=Math.abs(Ee.x1-Ee.x0),ii=Math.abs(Ee.y1-Ee.y0),ai=ei.width+on+sn+In;if(Ee.ty0=yn-ei.top,Ee.bx=ei.width+2*sn,Ee.by=Math.max(ei.height+2*sn,Bn),Ee.anchor="start",Ee.txwidth=ei.width,Ee.tx2width=In,Ee.offset=0,rt)Ee.pos=ti,Kn=ri+ii/2+ai<=Mn,Jn=ri-ii/2-ai>=0,"top"!==Ee.idealAlign&&Kn||!Jn?Kn?(ri+=ii/2,Ee.anchor="start"):Ee.anchor="middle":(ri-=ii/2,Ee.anchor="end");else if(Ee.pos=ri,Kn=ti+ni/2+ai<=_n,Jn=ti-ni/2-ai>=0,"left"!==Ee.idealAlign&&Kn||!Jn)if(Kn)ti+=ni/2,Ee.anchor="start";else{Ee.anchor="middle";var oi=ai/2,si=ti+oi-_n,li=ti-oi;si>0&&(ti-=si),li<0&&(ti+=-li)}else ti-=ni/2,Ee.anchor="end";En.attr("text-anchor",Ee.anchor),In&&Pn.attr("text-anchor",Ee.anchor),ze.attr("transform","translate("+ti+","+ri+")"+(rt?"rotate("+tr+")":""))})),Kn}function alignHoverText(Ee,ze){Ee.each((function(Ee){var Be=Ue.select(this);if(Ee.del)return Be.remove();var We=Be.select("text.nums"),$e=Ee.anchor,Qe="end"===$e?-1:1,rt={start:1,end:-1,middle:0}[$e],at=rt*(on+sn),ft=at+rt*(Ee.txwidth+sn),xt=0,kt=Ee.offset;"middle"===$e&&(at-=Ee.tx2width/2,ft+=Ee.txwidth/2+sn),ze&&(kt*=-Qr,xt=Ee.offset*Lr),Be.select("path").attr("d","middle"===$e?"M-"+(Ee.bx/2+Ee.tx2width/2)+","+(kt-Ee.by/2)+"h"+Ee.bx+"v"+Ee.by+"h-"+Ee.bx+"Z":"M0,0L"+(Qe*on+xt)+","+(on+kt)+"v"+(Ee.by/2-on)+"h"+Qe*Ee.bx+"v-"+Ee.by+"H"+(Qe*on+xt)+"V"+(kt-on)+"Z");var Lt=at+xt,Ut=kt+Ee.ty0-Ee.by/2+sn,er=Ee.textAlign||"auto";"auto"!==er&&("left"===er&&"start"!==$e?(We.attr("text-anchor","start"),Lt="middle"===$e?-Ee.bx/2-Ee.tx2width/2+sn:-Ee.bx-sn):"right"===er&&"end"!==$e&&(We.attr("text-anchor","end"),Lt="middle"===$e?Ee.bx/2-Ee.tx2width/2-sn:Ee.bx+sn)),We.call(it.positionText,Lt,Ut),Ee.tx2width&&(Be.select("text.name").call(it.positionText,ft+rt*sn+xt,kt+Ee.ty0-Ee.by/2+sn),Be.select("rect").call(ct.setRect,ft+(rt-1)*Ee.tx2width/2+xt,kt-Ee.by/2-1,Ee.tx2width,Ee.by+2))}))}function cleanPoint(Ee,ze){var Be=Ee.index,Ue=Ee.trace||{},$e=Ee.cd[0],rt=Ee.cd[Be]||{};function pass(Ee){return Ee||We(Ee)&&0===Ee}var it=Array.isArray(Be)?function(Ee,ze){var We=Qe.castOption($e,Be,Ee);return pass(We)?We:Qe.extractOption({},Ue,"",ze)}:function(Ee,ze){return Qe.extractOption(rt,Ue,Ee,ze)};function fill(ze,Be,Ue){var We=it(Be,Ue);pass(We)&&(Ee[ze]=We)}if(fill("hoverinfo","hi","hoverinfo"),fill("bgcolor","hbg","hoverlabel.bgcolor"),fill("borderColor","hbc","hoverlabel.bordercolor"),fill("fontFamily","htf","hoverlabel.font.family"),fill("fontSize","hts","hoverlabel.font.size"),fill("fontColor","htc","hoverlabel.font.color"),fill("nameLength","hnl","hoverlabel.namelength"),fill("textAlign","hta","hoverlabel.align"),Ee.posref="y"===ze||"closest"===ze&&"h"===Ue.orientation?Ee.xa._offset+(Ee.x0+Ee.x1)/2:Ee.ya._offset+(Ee.y0+Ee.y1)/2,Ee.x0=Qe.constrain(Ee.x0,0,Ee.xa._length),Ee.x1=Qe.constrain(Ee.x1,0,Ee.xa._length),Ee.y0=Qe.constrain(Ee.y0,0,Ee.ya._length),Ee.y1=Qe.constrain(Ee.y1,0,Ee.ya._length),void 0!==Ee.xLabelVal&&(Ee.xLabel="xLabel"in Ee?Ee.xLabel:kt.hoverLabelText(Ee.xa,Ee.xLabelVal),Ee.xVal=Ee.xa.c2d(Ee.xLabelVal)),void 0!==Ee.yLabelVal&&(Ee.yLabel="yLabel"in Ee?Ee.yLabel:kt.hoverLabelText(Ee.ya,Ee.yLabelVal),Ee.yVal=Ee.ya.c2d(Ee.yLabelVal)),void 0!==Ee.zLabelVal&&void 0===Ee.zLabel&&(Ee.zLabel=String(Ee.zLabelVal)),!(isNaN(Ee.xerr)||"log"===Ee.xa.type&&Ee.xerr<=0)){var at=kt.tickText(Ee.xa,Ee.xa.c2l(Ee.xerr),"hover").text;void 0!==Ee.xerrneg?Ee.xLabel+=" +"+at+" / -"+kt.tickText(Ee.xa,Ee.xa.c2l(Ee.xerrneg),"hover").text:Ee.xLabel+=" ± "+at,"x"===ze&&(Ee.distance+=1)}if(!(isNaN(Ee.yerr)||"log"===Ee.ya.type&&Ee.yerr<=0)){var ct=kt.tickText(Ee.ya,Ee.ya.c2l(Ee.yerr),"hover").text;void 0!==Ee.yerrneg?Ee.yLabel+=" +"+ct+" / -"+kt.tickText(Ee.ya,Ee.ya.c2l(Ee.yerrneg),"hover").text:Ee.yLabel+=" ± "+ct,"y"===ze&&(Ee.distance+=1)}var ft=Ee.hoverinfo||Ee.trace.hoverinfo;return ft&&"all"!==ft&&(-1===(ft=Array.isArray(ft)?ft:ft.split("+")).indexOf("x")&&(Ee.xLabel=void 0),-1===ft.indexOf("y")&&(Ee.yLabel=void 0),-1===ft.indexOf("z")&&(Ee.zLabel=void 0),-1===ft.indexOf("text")&&(Ee.text=void 0),-1===ft.indexOf("name")&&(Ee.name=void 0)),Ee}function createSpikelines(Ee,ze,Be){var Ue,We,Qe=Be.container,rt=Be.fullLayout,it=rt._size,at=Be.event,xt=!!ze.hLinePoint,Lt=!!ze.vLinePoint;if(Qe.selectAll(".spikeline").remove(),Lt||xt){var Ut=ft.combine(rt.plot_bgcolor,rt.paper_bgcolor);if(xt){var er,tr,rr=ze.hLinePoint;Ue=rr&&rr.xa,"cursor"===(We=rr&&rr.ya).spikesnap?(er=at.pointerX,tr=at.pointerY):(er=Ue._offset+rr.x,tr=We._offset+rr.y);var ar,Lr,Qr=$e.readability(rr.color,Ut)<1.5?ft.contrast(Ut):rr.color,on=We.spikemode,sn=We.spikethickness,cn=We.spikecolor||Qr,un=kt.getPxPosition(Ee,We);if(-1!==on.indexOf("toaxis")||-1!==on.indexOf("across")){if(-1!==on.indexOf("toaxis")&&(ar=un,Lr=er),-1!==on.indexOf("across")){var hn=We._counterDomainMin,dn=We._counterDomainMax;"free"===We.anchor&&(hn=Math.min(hn,We.position),dn=Math.max(dn,We.position)),ar=it.l+hn*it.w,Lr=it.l+dn*it.w}Qe.insert("line",":first-child").attr({x1:ar,x2:Lr,y1:tr,y2:tr,"stroke-width":sn,stroke:cn,"stroke-dasharray":ct.dashStyle(We.spikedash,sn)}).classed("spikeline",!0).classed("crisp",!0),Qe.insert("line",":first-child").attr({x1:ar,x2:Lr,y1:tr,y2:tr,"stroke-width":sn+2,stroke:Ut}).classed("spikeline",!0).classed("crisp",!0)}-1!==on.indexOf("marker")&&Qe.insert("circle",":first-child").attr({cx:un+("right"!==We.side?sn:-sn),cy:tr,r:sn,fill:cn}).classed("spikeline",!0)}if(Lt){var vn,yn,_n=ze.vLinePoint;Ue=_n&&_n.xa,We=_n&&_n.ya,"cursor"===Ue.spikesnap?(vn=at.pointerX,yn=at.pointerY):(vn=Ue._offset+_n.x,yn=We._offset+_n.y);var Mn,Cn,En=$e.readability(_n.color,Ut)<1.5?ft.contrast(Ut):_n.color,Pn=Ue.spikemode,In=Ue.spikethickness,Bn=Ue.spikecolor||En,Hn=kt.getPxPosition(Ee,Ue);if(-1!==Pn.indexOf("toaxis")||-1!==Pn.indexOf("across")){if(-1!==Pn.indexOf("toaxis")&&(Mn=Hn,Cn=yn),-1!==Pn.indexOf("across")){var Kn=Ue._counterDomainMin,Jn=Ue._counterDomainMax;"free"===Ue.anchor&&(Kn=Math.min(Kn,Ue.position),Jn=Math.max(Jn,Ue.position)),Mn=it.t+(1-Jn)*it.h,Cn=it.t+(1-Kn)*it.h}Qe.insert("line",":first-child").attr({x1:vn,x2:vn,y1:Mn,y2:Cn,"stroke-width":In,stroke:Bn,"stroke-dasharray":ct.dashStyle(Ue.spikedash,In)}).classed("spikeline",!0).classed("crisp",!0),Qe.insert("line",":first-child").attr({x1:vn,x2:vn,y1:Mn,y2:Cn,"stroke-width":In+2,stroke:Ut}).classed("spikeline",!0).classed("crisp",!0)}-1!==Pn.indexOf("marker")&&Qe.insert("circle",":first-child").attr({cx:vn,cy:Hn-("top"!==Ue.side?In:-In),r:In,fill:Bn}).classed("spikeline",!0)}}}function spikesChanged(Ee,ze){return!ze||(ze.vLinePoint!==Ee._spikepoints.vLinePoint||ze.hLinePoint!==Ee._spikepoints.hLinePoint)}function plainText(Ee,ze){return it.plainText(Ee||"",{len:ze,allowedTags:["br","sub","sup","b","i","em"]})}},e813:function(Ee,ze,Be){"use strict";var Ue=Be("371e"),We=Be("fc26"),$e=Be("a651"),Qe=Be("e827"),rt=Be("a685"),it=Be("79f1");Ee.exports=function legendDefaults(Ee,ze,Be){for(var at=Ee.legend||{},ct=0,ft=!1,xt="normal",kt=0;kt1);if(!1!==Ut||at.uirevision){var er=$e.newContainer(ze,"legend");if(coerce("uirevision",ze.uirevision),!1!==Ut){coerce("bgcolor",ze.paper_bgcolor),coerce("bordercolor"),coerce("borderwidth"),We.coerceFont(coerce,"font",ze.font);var tr,rr,ar,Lr=coerce("orientation");"h"===Lr?(tr=0,Ue.getComponentMethod("rangeslider","isVisible")(Ee.xaxis)?(rr=1.1,ar="bottom"):(rr=-.1,ar="top")):(tr=1.02,rr=1,ar="auto"),coerce("traceorder",xt),it.isGrouped(ze.legend)&&coerce("tracegroupgap"),coerce("itemsizing"),coerce("itemclick"),coerce("itemdoubleclick"),coerce("x",tr),coerce("xanchor"),coerce("y",rr),coerce("yanchor",ar),coerce("valign"),We.noneOrAll(at,er,["x","y"]),coerce("title.text")&&(coerce("title.side","h"===Lr?"left":"top"),We.coerceFont(coerce,"title.font",ze.font))}}function coerce(Ee,ze){return We.coerce(at,er,Qe,Ee,ze)}}},e827:function(Ee,ze,Be){"use strict";var Ue=Be("9845"),We=Be("dfb3");Ee.exports={bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:We.defaultLine,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:Ue({editType:"legend"}),orientation:{valType:"enumerated",values:["v","h"],dflt:"v",editType:"legend"},traceorder:{valType:"flaglist",flags:["reversed","grouped"],extras:["normal"],editType:"legend"},tracegroupgap:{valType:"number",min:0,dflt:10,editType:"legend"},itemsizing:{valType:"enumerated",values:["trace","constant"],dflt:"trace",editType:"legend"},itemclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggle",editType:"legend"},itemdoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggleothers",editType:"legend"},x:{valType:"number",min:-2,max:3,editType:"legend"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"legend"},y:{valType:"number",min:-2,max:3,editType:"legend"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],editType:"legend"},uirevision:{valType:"any",editType:"none"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"legend"},title:{text:{valType:"string",dflt:"",editType:"legend"},font:Ue({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left"],editType:"legend"},editType:"legend"},editType:"legend"}},e893:function(Ee,ze,Be){var Ue=Be("5135"),We=Be("56ef"),$e=Be("06cf"),Qe=Be("9bf2");Ee.exports=function(Ee,ze){for(var Be=We(ze),rt=Qe.f,it=$e.f,at=0;at 0. && baClipping < length(normalWidth * endBotJoin)) {\n\t\t//handle miter clipping\n\t\tbTopCoord -= normalWidth * endTopJoin;\n\t\tbTopCoord += normalize(endTopJoin * normalWidth) * baClipping;\n\t}\n\n\tif (nextReverse) {\n\t\t//make join rectangular\n\t\tvec2 miterShift = normalWidth * endJoinDirection * miterLimit * .5;\n\t\tfloat normalAdjust = 1. - min(miterLimit / endMiterRatio, 1.);\n\t\tbBotCoord = bCoord + miterShift - normalAdjust * normalWidth * currNormal * .5;\n\t\tbTopCoord = bCoord + miterShift + normalAdjust * normalWidth * currNormal * .5;\n\t}\n\telse if (!prevReverse && abClipping > 0. && abClipping < length(normalWidth * startBotJoin)) {\n\t\t//handle miter clipping\n\t\taBotCoord -= normalWidth * startBotJoin;\n\t\taBotCoord += normalize(startBotJoin * normalWidth) * abClipping;\n\t}\n\n\tvec2 aTopPosition = (aTopCoord) * adjustedScale + translate;\n\tvec2 aBotPosition = (aBotCoord) * adjustedScale + translate;\n\n\tvec2 bTopPosition = (bTopCoord) * adjustedScale + translate;\n\tvec2 bBotPosition = (bBotCoord) * adjustedScale + translate;\n\n\t//position is normalized 0..1 coord on the screen\n\tvec2 position = (aTopPosition * lineTop + aBotPosition * lineBot) * lineStart + (bTopPosition * lineTop + bBotPosition * lineBot) * lineEnd;\n\n\tstartCoord = aCoord * scaleRatio + translate * viewport.zw + viewport.xy;\n\tendCoord = bCoord * scaleRatio + translate * viewport.zw + viewport.xy;\n\n\tgl_Position = vec4(position * 2.0 - 1.0, depth, 1);\n\n\tenableStartMiter = step(dot(currTangent, prevTangent), .5);\n\tenableEndMiter = step(dot(currTangent, nextTangent), .5);\n\n\t//bevel miter cutoffs\n\tif (miterMode == 1.) {\n\t\tif (enableStartMiter == 1.) {\n\t\t\tvec2 startMiterWidth = vec2(startJoinDirection) * thickness * miterLimit * .5;\n\t\t\tstartCutoff = vec4(aCoord, aCoord);\n\t\t\tstartCutoff.zw += vec2(-startJoinDirection.y, startJoinDirection.x) / scaleRatio;\n\t\t\tstartCutoff = startCutoff * scaleRatio.xyxy + translate.xyxy * viewport.zwzw;\n\t\t\tstartCutoff += viewport.xyxy;\n\t\t\tstartCutoff += startMiterWidth.xyxy;\n\t\t}\n\n\t\tif (enableEndMiter == 1.) {\n\t\t\tvec2 endMiterWidth = vec2(endJoinDirection) * thickness * miterLimit * .5;\n\t\t\tendCutoff = vec4(bCoord, bCoord);\n\t\t\tendCutoff.zw += vec2(-endJoinDirection.y, endJoinDirection.x) / scaleRatio;\n\t\t\tendCutoff = endCutoff * scaleRatio.xyxy + translate.xyxy * viewport.zwzw;\n\t\t\tendCutoff += viewport.xyxy;\n\t\t\tendCutoff += endMiterWidth.xyxy;\n\t\t}\n\t}\n\n\t//round miter cutoffs\n\telse if (miterMode == 2.) {\n\t\tif (enableStartMiter == 1.) {\n\t\t\tvec2 startMiterWidth = vec2(startJoinDirection) * thickness * abs(dot(startJoinDirection, currNormal)) * .5;\n\t\t\tstartCutoff = vec4(aCoord, aCoord);\n\t\t\tstartCutoff.zw += vec2(-startJoinDirection.y, startJoinDirection.x) / scaleRatio;\n\t\t\tstartCutoff = startCutoff * scaleRatio.xyxy + translate.xyxy * viewport.zwzw;\n\t\t\tstartCutoff += viewport.xyxy;\n\t\t\tstartCutoff += startMiterWidth.xyxy;\n\t\t}\n\n\t\tif (enableEndMiter == 1.) {\n\t\t\tvec2 endMiterWidth = vec2(endJoinDirection) * thickness * abs(dot(endJoinDirection, currNormal)) * .5;\n\t\t\tendCutoff = vec4(bCoord, bCoord);\n\t\t\tendCutoff.zw += vec2(-endJoinDirection.y, endJoinDirection.x) / scaleRatio;\n\t\t\tendCutoff = endCutoff * scaleRatio.xyxy + translate.xyxy * viewport.zwzw;\n\t\t\tendCutoff += viewport.xyxy;\n\t\t\tendCutoff += endMiterWidth.xyxy;\n\t\t}\n\t}\n}\n"]),frag:Qe(["precision highp float;\n#define GLSLIFY 1\n\nuniform sampler2D dashPattern;\nuniform float dashSize, pixelRatio, thickness, opacity, id, miterMode;\n\nvarying vec4 fragColor;\nvarying vec2 tangent;\nvarying vec4 startCutoff, endCutoff;\nvarying vec2 startCoord, endCoord;\nvarying float enableStartMiter, enableEndMiter;\n\nfloat distToLine(vec2 p, vec2 a, vec2 b) {\n\tvec2 diff = b - a;\n\tvec2 perp = normalize(vec2(-diff.y, diff.x));\n\treturn dot(p - a, perp);\n}\n\nvoid main() {\n\tfloat alpha = 1., distToStart, distToEnd;\n\tfloat cutoff = thickness * .5;\n\n\t//bevel miter\n\tif (miterMode == 1.) {\n\t\tif (enableStartMiter == 1.) {\n\t\t\tdistToStart = distToLine(gl_FragCoord.xy, startCutoff.xy, startCutoff.zw);\n\t\t\tif (distToStart < -1.) {\n\t\t\t\tdiscard;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\talpha *= min(max(distToStart + 1., 0.), 1.);\n\t\t}\n\n\t\tif (enableEndMiter == 1.) {\n\t\t\tdistToEnd = distToLine(gl_FragCoord.xy, endCutoff.xy, endCutoff.zw);\n\t\t\tif (distToEnd < -1.) {\n\t\t\t\tdiscard;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\talpha *= min(max(distToEnd + 1., 0.), 1.);\n\t\t}\n\t}\n\n\t// round miter\n\telse if (miterMode == 2.) {\n\t\tif (enableStartMiter == 1.) {\n\t\t\tdistToStart = distToLine(gl_FragCoord.xy, startCutoff.xy, startCutoff.zw);\n\t\t\tif (distToStart < 0.) {\n\t\t\t\tfloat radius = length(gl_FragCoord.xy - startCoord);\n\n\t\t\t\tif(radius > cutoff + .5) {\n\t\t\t\t\tdiscard;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\talpha -= smoothstep(cutoff - .5, cutoff + .5, radius);\n\t\t\t}\n\t\t}\n\n\t\tif (enableEndMiter == 1.) {\n\t\t\tdistToEnd = distToLine(gl_FragCoord.xy, endCutoff.xy, endCutoff.zw);\n\t\t\tif (distToEnd < 0.) {\n\t\t\t\tfloat radius = length(gl_FragCoord.xy - endCoord);\n\n\t\t\t\tif(radius > cutoff + .5) {\n\t\t\t\t\tdiscard;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\talpha -= smoothstep(cutoff - .5, cutoff + .5, radius);\n\t\t\t}\n\t\t}\n\t}\n\n\tfloat t = fract(dot(tangent, gl_FragCoord.xy) / dashSize) * .5 + .25;\n\tfloat dash = texture2D(dashPattern, vec2(t, .5)).r;\n\n\tgl_FragColor = fragColor;\n\tgl_FragColor.a *= alpha * opacity * dash;\n}\n"]),attributes:{lineEnd:{buffer:Be,divisor:0,stride:8,offset:0},lineTop:{buffer:Be,divisor:0,stride:8,offset:4},aColor:{buffer:Ee.prop("colorBuffer"),stride:4,offset:0,divisor:1},bColor:{buffer:Ee.prop("colorBuffer"),stride:4,offset:4,divisor:1},prevCoord:{buffer:Ee.prop("positionBuffer"),stride:8,offset:0,divisor:1},aCoord:{buffer:Ee.prop("positionBuffer"),stride:8,offset:8,divisor:1},bCoord:{buffer:Ee.prop("positionBuffer"),stride:8,offset:16,divisor:1},nextCoord:{buffer:Ee.prop("positionBuffer"),stride:8,offset:24,divisor:1}}},Ue))}catch(Ee){ze=We}return{fill:Ee({primitive:"triangle",elements:function(Ee,ze){return ze.triangles},offset:0,vert:Qe(["precision highp float;\n#define GLSLIFY 1\n\nattribute vec2 position, positionFract;\n\nuniform vec4 color;\nuniform vec2 scale, scaleFract, translate, translateFract;\nuniform float pixelRatio, id;\nuniform vec4 viewport;\nuniform float opacity;\n\nvarying vec4 fragColor;\n\nconst float MAX_LINES = 256.;\n\nvoid main() {\n\tfloat depth = (MAX_LINES - 4. - id) / (MAX_LINES);\n\n\tvec2 position = position * scale + translate\n + positionFract * scale + translateFract\n + position * scaleFract\n + positionFract * scaleFract;\n\n\tgl_Position = vec4(position * 2.0 - 1.0, depth, 1);\n\n\tfragColor = color / 255.;\n\tfragColor.a *= opacity;\n}\n"]),frag:Qe(["precision highp float;\n#define GLSLIFY 1\n\nvarying vec4 fragColor;\n\nvoid main() {\n\tgl_FragColor = fragColor;\n}\n"]),uniforms:{scale:Ee.prop("scale"),color:Ee.prop("fill"),scaleFract:Ee.prop("scaleFract"),translateFract:Ee.prop("translateFract"),translate:Ee.prop("translate"),opacity:Ee.prop("opacity"),pixelRatio:Ee.context("pixelRatio"),id:Ee.prop("id"),viewport:function(Ee,ze){return[ze.viewport.x,ze.viewport.y,Ee.viewportWidth,Ee.viewportHeight]}},attributes:{position:{buffer:Ee.prop("positionBuffer"),stride:8,offset:8},positionFract:{buffer:Ee.prop("positionFractBuffer"),stride:8,offset:8}},blend:Ue.blend,depth:{enable:!1},scissor:Ue.scissor,stencil:Ue.stencil,viewport:Ue.viewport}),rect:We,miter:ze}},Line2D.defaults={dashes:null,join:"miter",miterLimit:1,thickness:10,cap:"square",color:"black",opacity:1,overlay:!1,viewport:null,range:null,close:!1,fill:null},Line2D.prototype.render=function(){for(var Ee,ze=[],Be=arguments.length;Be--;)ze[Be]=arguments[Be];ze.length&&(Ee=this).update.apply(Ee,ze),this.draw()},Line2D.prototype.draw=function(){for(var Ee=this,ze=[],Be=arguments.length;Be--;)ze[Be]=arguments[Be];return(ze.length?ze:this.passes).forEach((function(ze,Be){var Ue;if(ze&&Array.isArray(ze))return(Ue=Ee).draw.apply(Ue,ze);"number"==typeof ze&&(ze=Ee.passes[ze]),ze&&ze.count>1&&ze.opacity&&(Ee.regl._refresh(),ze.fill&&ze.triangles&&ze.triangles.length>2&&Ee.shaders.fill(ze),ze.thickness&&(ze.scale[0]*ze.viewport.width>Line2D.precisionThreshold||ze.scale[1]*ze.viewport.height>Line2D.precisionThreshold||"rect"===ze.join||!ze.join&&(ze.thickness<=2||ze.count>=Line2D.maxPoints)?Ee.shaders.rect(ze):Ee.shaders.miter(ze)))})),this},Line2D.prototype.update=function(Ee){var ze=this;if(Ee){null!=Ee.length?"number"==typeof Ee[0]&&(Ee=[{positions:Ee}]):Array.isArray(Ee)||(Ee=[Ee]);var Be=this.regl,Qe=this.gl;if(Ee.forEach((function(Ee,ft){var Lt=ze.passes[ft];if(void 0!==Ee)if(null!==Ee){if("number"==typeof Ee[0]&&(Ee={positions:Ee}),Ee=rt(Ee,{positions:"positions points data coords",thickness:"thickness lineWidth lineWidths line-width linewidth width stroke-width strokewidth strokeWidth",join:"lineJoin linejoin join type mode",miterLimit:"miterlimit miterLimit",dashes:"dash dashes dasharray dash-array dashArray",color:"color colour stroke colors colours stroke-color strokeColor",fill:"fill fill-color fillColor",opacity:"alpha opacity",overlay:"overlay crease overlap intersect",close:"closed close closed-path closePath",range:"range dataBox",viewport:"viewport viewBox",hole:"holes hole hollow"}),Lt||(ze.passes[ft]=Lt={id:ft,scale:null,scaleFract:null,translate:null,translateFract:null,count:0,hole:[],depth:0,dashLength:1,dashTexture:Be.texture({channels:1,data:new Uint8Array([255]),width:1,height:1,mag:"linear",min:"linear"}),colorBuffer:Be.buffer({usage:"dynamic",type:"uint8",data:new Uint8Array}),positionBuffer:Be.buffer({usage:"dynamic",type:"float",data:new Uint8Array}),positionFractBuffer:Be.buffer({usage:"dynamic",type:"float",data:new Uint8Array})},Ee=$e({},Line2D.defaults,Ee)),null!=Ee.thickness&&(Lt.thickness=parseFloat(Ee.thickness)),null!=Ee.opacity&&(Lt.opacity=parseFloat(Ee.opacity)),null!=Ee.miterLimit&&(Lt.miterLimit=parseFloat(Ee.miterLimit)),null!=Ee.overlay&&(Lt.overlay=!!Ee.overlay,ft")}return Qe}function textPart(Ee,ze){var Be;Be=Ee.labelprefix&&Ee.labelprefix.length>0?Ee.labelprefix.replace(/ = $/,""):Ee._hovertitle,er.push(Be+": "+ze.toFixed(3)+Ee.labelsuffix)}}},e92d:function(Ee,ze,Be){"use strict";Be.r(ze);var Ue=Be("bc17"),We=Be("6f04");function targetDepth(Ee){return Ee.target.depth}function left(Ee){return Ee.depth}function right(Ee,ze){return ze-1-Ee.height}function justify(Ee,ze){return Ee.sourceLinks.length?Ee.depth:ze-1}function center(Ee){return Ee.targetLinks.length?Ee.depth:Ee.sourceLinks.length?Object(Ue.d)(Ee.sourceLinks,targetDepth)-1:0}function constant(Ee){return function(){return Ee}}function ascendingSourceBreadth(Ee,ze){return ascendingBreadth(Ee.source,ze.source)||Ee.index-ze.index}function ascendingTargetBreadth(Ee,ze){return ascendingBreadth(Ee.target,ze.target)||Ee.index-ze.index}function ascendingBreadth(Ee,ze){return Ee.y0-ze.y0}function value(Ee){return Ee.value}function nodeCenter(Ee){return(Ee.y0+Ee.y1)/2}function weightedSource(Ee){return nodeCenter(Ee.source)*Ee.value}function weightedTarget(Ee){return nodeCenter(Ee.target)*Ee.value}function defaultId(Ee){return Ee.index}function defaultNodes(Ee){return Ee.nodes}function defaultLinks(Ee){return Ee.links}function find(Ee,ze){var Be=Ee.get(ze);if(!Be)throw new Error("missing: "+ze);return Be}var src_sankey=function(){var Ee=0,ze=0,Be=1,$e=1,Qe=24,rt=8,it=defaultId,at=justify,ct=defaultNodes,ft=defaultLinks,xt=32;function sankey(){var Ee={nodes:ct.apply(null,arguments),links:ft.apply(null,arguments)};return computeNodeLinks(Ee),computeNodeValues(Ee),computeNodeDepths(Ee),computeNodeBreadths(Ee),computeLinkBreadths(Ee),Ee}function computeNodeLinks(Ee){Ee.nodes.forEach((function(Ee,ze){Ee.index=ze,Ee.sourceLinks=[],Ee.targetLinks=[]}));var ze=Object(We.a)(Ee.nodes,it);Ee.links.forEach((function(Ee,Be){Ee.index=Be;var Ue=Ee.source,We=Ee.target;"object"!=typeof Ue&&(Ue=Ee.source=find(ze,Ue)),"object"!=typeof We&&(We=Ee.target=find(ze,We)),Ue.sourceLinks.push(Ee),We.targetLinks.push(Ee)}))}function computeNodeValues(Ee){Ee.nodes.forEach((function(Ee){Ee.value=Math.max(Object(Ue.e)(Ee.sourceLinks,value),Object(Ue.e)(Ee.targetLinks,value))}))}function computeNodeDepths(ze){var Ue,We,$e;for(Ue=ze.nodes,We=[],$e=0;Ue.length;++$e,Ue=We,We=[])Ue.forEach((function(Ee){Ee.depth=$e,Ee.sourceLinks.forEach((function(Ee){We.indexOf(Ee.target)<0&&We.push(Ee.target)}))}));for(Ue=ze.nodes,We=[],$e=0;Ue.length;++$e,Ue=We,We=[])Ue.forEach((function(Ee){Ee.height=$e,Ee.targetLinks.forEach((function(Ee){We.indexOf(Ee.source)<0&&We.push(Ee.source)}))}));var rt=(Be-Ee-Qe)/($e-1);ze.nodes.forEach((function(ze){ze.x1=(ze.x0=Ee+Math.max(0,Math.min($e-1,Math.floor(at.call(null,ze,$e))))*rt)+Qe}))}function computeNodeBreadths(Ee){var Be=Object(We.b)().key((function(Ee){return Ee.x0})).sortKeys(Ue.a).entries(Ee.nodes).map((function(Ee){return Ee.values}));!function initializeNodeBreadth(){var We=Object(Ue.b)(Be,(function(Ee){return Ee.length})),Qe=2/3*($e-ze)/(We-1);rt>Qe&&(rt=Qe);var it=Object(Ue.d)(Be,(function(Ee){return($e-ze-(Ee.length-1)*rt)/Object(Ue.e)(Ee,value)}));Be.forEach((function(Ee){Ee.forEach((function(Ee,ze){Ee.y1=(Ee.y0=ze)+Ee.value*it}))})),Ee.links.forEach((function(Ee){Ee.width=Ee.value*it}))}(),resolveCollisions();for(var Qe=1,it=xt;it>0;--it)relaxRightToLeft(Qe*=.99),resolveCollisions(),relaxLeftToRight(Qe),resolveCollisions();function relaxLeftToRight(Ee){Be.forEach((function(ze){ze.forEach((function(ze){if(ze.targetLinks.length){var Be=(Object(Ue.e)(ze.targetLinks,weightedSource)/Object(Ue.e)(ze.targetLinks,value)-nodeCenter(ze))*Ee;ze.y0+=Be,ze.y1+=Be}}))}))}function relaxRightToLeft(Ee){Be.slice().reverse().forEach((function(ze){ze.forEach((function(ze){if(ze.sourceLinks.length){var Be=(Object(Ue.e)(ze.sourceLinks,weightedTarget)/Object(Ue.e)(ze.sourceLinks,value)-nodeCenter(ze))*Ee;ze.y0+=Be,ze.y1+=Be}}))}))}function resolveCollisions(){Be.forEach((function(Ee){var Be,Ue,We,Qe=ze,it=Ee.length;for(Ee.sort(ascendingBreadth),We=0;We0&&(Be.y0+=Ue,Be.y1+=Ue),Qe=Be.y1+rt;if((Ue=Qe-rt-$e)>0)for(Qe=Be.y0-=Ue,Be.y1-=Ue,We=it-2;We>=0;--We)(Ue=(Be=Ee[We]).y1+rt-Qe)>0&&(Be.y0-=Ue,Be.y1-=Ue),Qe=Be.y0}))}}function computeLinkBreadths(Ee){Ee.nodes.forEach((function(Ee){Ee.sourceLinks.sort(ascendingTargetBreadth),Ee.targetLinks.sort(ascendingSourceBreadth)})),Ee.nodes.forEach((function(Ee){var ze=Ee.y0,Be=ze;Ee.sourceLinks.forEach((function(Ee){Ee.y0=ze+Ee.width/2,ze+=Ee.width})),Ee.targetLinks.forEach((function(Ee){Ee.y1=Be+Ee.width/2,Be+=Ee.width}))}))}return sankey.update=function(Ee){return computeLinkBreadths(Ee),Ee},sankey.nodeId=function(Ee){return arguments.length?(it="function"==typeof Ee?Ee:constant(Ee),sankey):it},sankey.nodeAlign=function(Ee){return arguments.length?(at="function"==typeof Ee?Ee:constant(Ee),sankey):at},sankey.nodeWidth=function(Ee){return arguments.length?(Qe=+Ee,sankey):Qe},sankey.nodePadding=function(Ee){return arguments.length?(rt=+Ee,sankey):rt},sankey.nodes=function(Ee){return arguments.length?(ct="function"==typeof Ee?Ee:constant(Ee),sankey):ct},sankey.links=function(Ee){return arguments.length?(ft="function"==typeof Ee?Ee:constant(Ee),sankey):ft},sankey.size=function(Ue){return arguments.length?(Ee=ze=0,Be=+Ue[0],$e=+Ue[1],sankey):[Be-Ee,$e-ze]},sankey.extent=function(Ue){return arguments.length?(Ee=+Ue[0][0],Be=+Ue[1][0],ze=+Ue[0][1],$e=+Ue[1][1],sankey):[[Ee,ze],[Be,$e]]},sankey.iterations=function(Ee){return arguments.length?(xt=+Ee,sankey):xt},sankey},$e=Be("1a88");function horizontalSource(Ee){return[Ee.source.x1,Ee.y0]}function horizontalTarget(Ee){return[Ee.target.x0,Ee.y1]}var sankeyLinkHorizontal=function(){return Object($e.a)().source(horizontalSource).target(horizontalTarget)};Be.d(ze,"sankey",(function(){return src_sankey})),Be.d(ze,"sankeyCenter",(function(){return center})),Be.d(ze,"sankeyLeft",(function(){return left})),Be.d(ze,"sankeyRight",(function(){return right})),Be.d(ze,"sankeyJustify",(function(){return justify})),Be.d(ze,"sankeyLinkHorizontal",(function(){return sankeyLinkHorizontal}))},e98f:function(Ee,ze){Ee.exports=function(Ee){"string"==typeof Ee&&(Ee=[Ee]);for(var ze=[].slice.call(arguments,1),Be=[],Ue=0;Ue13)&&32!==ze&&133!==ze&&160!==ze&&5760!==ze&&6158!==ze&&(ze<8192||ze>8205)&&8232!==ze&&8233!==ze&&8239!==ze&&8287!==ze&&8288!==ze&&12288!==ze&&65279!==ze)return!1;return!0}},e9bd:function(Ee,ze,Be){"use strict";var Ue=Object.prototype.toString,We=Ue.call(function(){return arguments}());Ee.exports=function(Ee){return Ue.call(Ee)===We}},e9d4:function(Ee,ze,Be){"use strict";var Ue=Be("f4b3").setPositionOffset,We=["v","h"];Ee.exports=function crossTraceCalc(Ee,ze){for(var Be=Ee.calcdata,$e=ze.xaxis,Qe=ze.yaxis,rt=0;rt>1,v=E[2*m+1];","if(v===b){return m}","if(b0&&it.push(","),it.push("[");for(var Ue=0;Ue0&&it.push(","),it.push("B(C,E,c[",We[0],"],c[",We[1],"])")}it.push("]")}it.push(");")}}for($e=Ee+1;$e>1;--$e){$e1){rt[0]in $e||($e[rt[0]]=[]),$e=$e[rt[0]];for(var it=1;it=ct&&(kt.min=0,Lt.min=0,Ut.min=0,Ee.aaxis&&delete Ee.aaxis.min,Ee.baxis&&delete Ee.baxis.min,Ee.caxis&&delete Ee.caxis.min)}function handleAxisDefaults(Ee,ze,Be,Ue){var We=ft[ze._name];function coerce(Be,Ue){return $e.coerce(Ee,ze,We,Be,Ue)}coerce("uirevision",Ue.uirevision),ze.type="linear";var Qe=coerce("color"),xt=Qe!==We.color.dflt?Qe:Be.font.color,kt=ze._name.charAt(0).toUpperCase(),Lt="Component "+kt,Ut=coerce("title.text",Lt);ze._hovertitle=Ut===Lt?Ut:kt,$e.coerceFont(coerce,"title.font",{family:Be.font.family,size:Math.round(1.2*Be.font.size),color:xt}),coerce("min"),at(Ee,ze,coerce,"linear"),rt(Ee,ze,coerce,"linear",{}),it(Ee,ze,coerce,{outerTicks:!0}),coerce("showticklabels")&&($e.coerceFont(coerce,"tickfont",{family:Be.font.family,size:Be.font.size,color:xt}),coerce("tickangle"),coerce("tickformat")),ct(Ee,ze,coerce,{dfltColor:Qe,bgColor:Be.bgColor,blend:60,showLine:!0,showGrid:!0,noZeroLine:!0,attributes:We}),coerce("hoverformat"),coerce("layer")}Ee.exports=function supplyLayoutDefaults(Ee,ze,Be){Qe(Ee,ze,Be,{type:"ternary",attributes:ft,handleDefaults:handleTernaryDefaults,font:ze.font,paper_bgcolor:ze.paper_bgcolor})}},ec16:function(Ee,ze,Be){"use strict";var Ue=Be("6e58"),We=Be("19b2"),$e=Be("fc26"),Qe=Be("83d1"),rt=Be("a60f");Ee.exports=function plot(Ee,ze,Be){var it=ze.xaxis,at=ze.yaxis,ct=ze.radialAxis,ft=ze.angularAxis,xt=function makePathFn(Ee){var ze=Ee.cxx,Be=Ee.cyy;if(Ee.vangles)return function(Ue,We,Qe,it){var at,ct;$e.angleDelta(Qe,it)>0?(at=Qe,ct=it):(at=it,ct=Qe);var ft=[rt.findEnclosingVertexAngles(at,Ee.vangles)[0],(at+ct)/2,rt.findEnclosingVertexAngles(ct,Ee.vangles)[1]];return rt.pathPolygonAnnulus(Ue,We,at,ct,ft,ze,Be)};return function(Ee,Ue,We,Qe){return $e.pathAnnulus(Ee,Ue,We,Qe,ze,Be)}}(ze),kt=ze.layers.frontplot.select("g.barlayer");$e.makeTraceGroups(kt,Be,"trace bars").each((function(){var Be=Ue.select(this),rt=$e.ensureSingle(Be,"g","points").selectAll("g.point").data($e.identity);rt.enter().append("g").style("vector-effect","non-scaling-stroke").style("stroke-miterlimit",2).classed("point",!0),rt.exit().remove(),rt.each((function(Ee){var ze,Be=Ue.select(this),Qe=Ee.rp0=ct.c2p(Ee.s0),rt=Ee.rp1=ct.c2p(Ee.s1),kt=Ee.thetag0=ft.c2g(Ee.p0),Lt=Ee.thetag1=ft.c2g(Ee.p1);if(We(Qe)&&We(rt)&&We(kt)&&We(Lt)&&Qe!==rt&&kt!==Lt){var Ut=ct.c2g(Ee.s1),er=(kt+Lt)/2;Ee.ct=[it.c2p(Ut*Math.cos(er)),at.c2p(Ut*Math.sin(er))],ze=xt(Qe,rt,kt,Lt)}else ze="M0,0Z";$e.ensureSingle(Be,"path").attr("d",ze)})),Qe.setClipUrl(Be,ze._hasClipOnAxisFalse?ze.clipIds.forTraces:null,Ee)}))}},ec20:function(Ee,ze,Be){"use strict";ze.init2dArray=function(Ee,ze){for(var Be=new Array(Ee),Ue=0;UeMath.max(Be,Ue)?We[2]=1:Be>Math.max(ze,Ue)?We[0]=1:We[1]=1;for(var $e=0,Qe=0,it=0;it<3;++it)$e+=Ee[it]*Ee[it],Qe+=We[it]*Ee[it];for(it=0;it<3;++it)We[it]-=Qe/$e*Ee[it];return rt(We,We),We}function TurntableController(Ee,ze,Be,We,$e,Qe,rt,it){this.center=Ue(Be),this.up=Ue(We),this.right=Ue($e),this.radius=Ue([Qe]),this.angle=Ue([rt,it]),this.angle.bounds=[[-1/0,-Math.PI/2],[1/0,Math.PI/2]],this.setDistanceLimits(Ee,ze),this.computedCenter=this.center.curve(0),this.computedUp=this.up.curve(0),this.computedRight=this.right.curve(0),this.computedRadius=this.radius.curve(0),this.computedAngle=this.angle.curve(0),this.computedToward=[0,0,0],this.computedEye=[0,0,0],this.computedMatrix=new Array(16);for(var at=0;at<16;++at)this.computedMatrix[at]=.5;this.recalcMatrix(0)}var at=TurntableController.prototype;at.setDistanceLimits=function(Ee,ze){Ee=Ee>0?Math.log(Ee):-1/0,ze=ze>0?Math.log(ze):1/0,ze=Math.max(ze,Ee),this.radius.bounds[0][0]=Ee,this.radius.bounds[1][0]=ze},at.getDistanceLimits=function(Ee){var ze=this.radius.bounds[0];return Ee?(Ee[0]=Math.exp(ze[0][0]),Ee[1]=Math.exp(ze[1][0]),Ee):[Math.exp(ze[0][0]),Math.exp(ze[1][0])]},at.recalcMatrix=function(Ee){this.center.curve(Ee),this.up.curve(Ee),this.right.curve(Ee),this.radius.curve(Ee),this.angle.curve(Ee);for(var ze=this.computedUp,Be=this.computedRight,Ue=0,We=0,$e=0;$e<3;++$e)We+=ze[$e]*Be[$e],Ue+=ze[$e]*ze[$e];var it=Math.sqrt(Ue),at=0;for($e=0;$e<3;++$e)Be[$e]-=ze[$e]*We/Ue,at+=Be[$e]*Be[$e],ze[$e]/=it;var ct=Math.sqrt(at);for($e=0;$e<3;++$e)Be[$e]/=ct;var ft=this.computedToward;Qe(ft,ze,Be),rt(ft,ft);var xt=Math.exp(this.computedRadius[0]),kt=this.computedAngle[0],Lt=this.computedAngle[1],Ut=Math.cos(kt),er=Math.sin(kt),tr=Math.cos(Lt),rr=Math.sin(Lt),ar=this.computedCenter,Lr=Ut*tr,Qr=er*tr,on=rr,sn=-Ut*rr,cn=-er*rr,un=tr,hn=this.computedEye,dn=this.computedMatrix;for($e=0;$e<3;++$e){var vn=Lr*Be[$e]+Qr*ft[$e]+on*ze[$e];dn[4*$e+1]=sn*Be[$e]+cn*ft[$e]+un*ze[$e],dn[4*$e+2]=vn,dn[4*$e+3]=0}var yn=dn[1],_n=dn[5],Mn=dn[9],Cn=dn[2],En=dn[6],Pn=dn[10],In=_n*Pn-Mn*En,Bn=Mn*Cn-yn*Pn,Hn=yn*En-_n*Cn,Kn=len3(In,Bn,Hn);In/=Kn,Bn/=Kn,Hn/=Kn,dn[0]=In,dn[4]=Bn,dn[8]=Hn;for($e=0;$e<3;++$e)hn[$e]=ar[$e]+dn[2+4*$e]*xt;for($e=0;$e<3;++$e){at=0;for(var Jn=0;Jn<3;++Jn)at+=dn[$e+4*Jn]*hn[Jn];dn[12+$e]=-at}dn[15]=1},at.getMatrix=function(Ee,ze){this.recalcMatrix(Ee);var Be=this.computedMatrix;if(ze){for(var Ue=0;Ue<16;++Ue)ze[Ue]=Be[Ue];return ze}return Be};var ct=[0,0,0];at.rotate=function(Ee,ze,Be,Ue){if(this.angle.move(Ee,ze,Be),Ue){this.recalcMatrix(Ee);var We=this.computedMatrix;ct[0]=We[2],ct[1]=We[6],ct[2]=We[10];for(var Qe=this.computedUp,rt=this.computedRight,it=this.computedToward,at=0;at<3;++at)We[4*at]=Qe[at],We[4*at+1]=rt[at],We[4*at+2]=it[at];$e(We,We,Ue,ct);for(at=0;at<3;++at)Qe[at]=We[4*at],rt[at]=We[4*at+1];this.up.set(Ee,Qe[0],Qe[1],Qe[2]),this.right.set(Ee,rt[0],rt[1],rt[2])}},at.pan=function(Ee,ze,Be,Ue){ze=ze||0,Be=Be||0,Ue=Ue||0,this.recalcMatrix(Ee);var We=this.computedMatrix,$e=(Math.exp(this.computedRadius[0]),We[1]),Qe=We[5],rt=We[9],it=len3($e,Qe,rt);$e/=it,Qe/=it,rt/=it;var at=We[0],ct=We[4],ft=We[8],xt=at*$e+ct*Qe+ft*rt,kt=len3(at-=$e*xt,ct-=Qe*xt,ft-=rt*xt),Lt=(at/=kt)*ze+$e*Be,Ut=(ct/=kt)*ze+Qe*Be,er=(ft/=kt)*ze+rt*Be;this.center.move(Ee,Lt,Ut,er);var tr=Math.exp(this.computedRadius[0]);tr=Math.max(1e-4,tr+Ue),this.radius.set(Ee,Math.log(tr))},at.translate=function(Ee,ze,Be,Ue){this.center.move(Ee,ze||0,Be||0,Ue||0)},at.setMatrix=function(Ee,ze,Be,Ue){var $e=1;"number"==typeof Be&&($e=0|Be),($e<0||$e>3)&&($e=1);var Qe=($e+2)%3;ze||(this.recalcMatrix(Ee),ze=this.computedMatrix);var rt=ze[$e],it=ze[$e+4],at=ze[$e+8];if(Ue){var ct=Math.abs(rt),ft=Math.abs(it),xt=Math.abs(at),kt=Math.max(ct,ft,xt);ct===kt?(rt=rt<0?-1:1,it=at=0):xt===kt?(at=at<0?-1:1,rt=it=0):(it=it<0?-1:1,rt=at=0)}else{var Lt=len3(rt,it,at);rt/=Lt,it/=Lt,at/=Lt}var Ut,er,tr=ze[Qe],rr=ze[Qe+4],ar=ze[Qe+8],Lr=tr*rt+rr*it+ar*at,Qr=len3(tr-=rt*Lr,rr-=it*Lr,ar-=at*Lr),on=it*(ar/=Qr)-at*(rr/=Qr),sn=at*(tr/=Qr)-rt*ar,cn=rt*rr-it*tr,un=len3(on,sn,cn);if(on/=un,sn/=un,cn/=un,this.center.jump(Ee,ri,ni,ii),this.radius.idle(Ee),this.up.jump(Ee,rt,it,at),this.right.jump(Ee,tr,rr,ar),2===$e){var hn=ze[1],dn=ze[5],vn=ze[9],yn=hn*tr+dn*rr+vn*ar,_n=hn*on+dn*sn+vn*cn;Ut=Pn<0?-Math.PI/2:Math.PI/2,er=Math.atan2(_n,yn)}else{var Mn=ze[2],Cn=ze[6],En=ze[10],Pn=Mn*rt+Cn*it+En*at,In=Mn*tr+Cn*rr+En*ar,Bn=Mn*on+Cn*sn+En*cn;Ut=Math.asin(clamp1(Pn)),er=Math.atan2(Bn,In)}this.angle.jump(Ee,er,Ut),this.recalcMatrix(Ee);var Hn=ze[2],Kn=ze[6],Jn=ze[10],ei=this.computedMatrix;We(ei,ze);var ti=ei[15],ri=ei[12]/ti,ni=ei[13]/ti,ii=ei[14]/ti,ai=Math.exp(this.computedRadius[0]);this.center.jump(Ee,ri-Hn*ai,ni-Kn*ai,ii-Jn*ai)},at.lastT=function(){return Math.max(this.center.lastT(),this.up.lastT(),this.right.lastT(),this.radius.lastT(),this.angle.lastT())},at.idle=function(Ee){this.center.idle(Ee),this.up.idle(Ee),this.right.idle(Ee),this.radius.idle(Ee),this.angle.idle(Ee)},at.flush=function(Ee){this.center.flush(Ee),this.up.flush(Ee),this.right.flush(Ee),this.radius.flush(Ee),this.angle.flush(Ee)},at.setDistance=function(Ee,ze){ze>0&&this.radius.set(Ee,Math.log(ze))},at.lookAt=function(Ee,ze,Be,Ue){this.recalcMatrix(Ee),ze=ze||this.computedEye,Be=Be||this.computedCenter;var We=(Ue=Ue||this.computedUp)[0],$e=Ue[1],Qe=Ue[2],rt=len3(We,$e,Qe);if(!(rt<1e-6)){We/=rt,$e/=rt,Qe/=rt;var it=ze[0]-Be[0],at=ze[1]-Be[1],ct=ze[2]-Be[2],ft=len3(it,at,ct);if(!(ft<1e-6)){it/=ft,at/=ft,ct/=ft;var xt=this.computedRight,kt=xt[0],Lt=xt[1],Ut=xt[2],er=We*kt+$e*Lt+Qe*Ut,tr=len3(kt-=er*We,Lt-=er*$e,Ut-=er*Qe);if(!(tr<.01&&(tr=len3(kt=$e*ct-Qe*at,Lt=Qe*it-We*ct,Ut=We*at-$e*it))<1e-6)){kt/=tr,Lt/=tr,Ut/=tr,this.up.set(Ee,We,$e,Qe),this.right.set(Ee,kt,Lt,Ut),this.center.set(Ee,Be[0],Be[1],Be[2]),this.radius.set(Ee,Math.log(ft));var rr=$e*Ut-Qe*Lt,ar=Qe*kt-We*Ut,Lr=We*Lt-$e*kt,Qr=len3(rr,ar,Lr),on=We*it+$e*at+Qe*ct,sn=kt*it+Lt*at+Ut*ct,cn=(rr/=Qr)*it+(ar/=Qr)*at+(Lr/=Qr)*ct,un=Math.asin(clamp1(on)),hn=Math.atan2(cn,sn),dn=this.angle._state,vn=dn[dn.length-1],yn=dn[dn.length-2];vn%=2*Math.PI;var _n=Math.abs(vn+2*Math.PI-hn),Mn=Math.abs(vn-hn),Cn=Math.abs(vn-2*Math.PI-hn);_n0))return 0;We=ze.width}return xt?Ue:Math.min(We,Be)};function styleBarLike(Ee,ze,Be){var $e=Ee[0].trace,Qe=$e.marker||{},it=Qe.line||{},at=Be?$e.visible&&$e.type===Be:We.traceIs($e,"bar"),ct=Ue.select(ze).select("g.legendpoints").selectAll("path.legend"+Be).data(at?[Ee]:[]);ct.enter().append("path").classed("legend"+Be,!0).attr("d","M6,6H-6V-6H6Z").attr("transform","translate(20,0)"),ct.exit().remove(),ct.each((function(Ee){var ze=Ue.select(this),Be=Ee[0],We=boundLineWidth(Be.mlw,Qe.line,5,2);ze.style("stroke-width",We+"px").call(rt.fill,Be.mc||Qe.color),We&&rt.stroke(ze,Be.mlc||it.color)}))}function stylePieLike(Ee,ze,Be){var Qe=Ee[0],rt=Qe.trace,it=Be?rt.visible&&rt.type===Be:We.traceIs(rt,Be),at=Ue.select(ze).select("g.legendpoints").selectAll("path.legend"+Be).data(it?[Ee]:[]);if(at.enter().append("path").classed("legend"+Be,!0).attr("d","M6,6H-6V-6H6Z").attr("transform","translate(20,0)"),at.exit().remove(),at.size()){var xt=(rt.marker||{}).line,kt=boundLineWidth(ft(xt.width,Qe.pts),xt,5,2),Lt=$e.minExtend(rt,{marker:{line:{width:kt}}});Lt.marker.line.color=xt.color;var Ut=$e.minExtend(Qe,{trace:Lt});ct(at,Ut,Lt)}}Ee.each((function(Ee){var ze=Ue.select(this),We=$e.ensureSingle(ze,"g","layers");We.style("opacity",Ee[0].trace.opacity);var Qe=Be.valign,rt=Ee[0].lineHeight,it=Ee[0].height;if("middle"!==Qe&&rt&&it){var at={top:1,bottom:-1}[Qe]*(.5*(rt-it+3));We.attr("transform","translate(0,"+at+")")}else We.attr("transform",null);We.selectAll("g.legendfill").data([Ee]).enter().append("g").classed("legendfill",!0),We.selectAll("g.legendlines").data([Ee]).enter().append("g").classed("legendlines",!0);var ct=We.selectAll("g.legendsymbols").data([Ee]);ct.enter().append("g").classed("legendsymbols",!0),ct.selectAll("g.legendpoints").data([Ee]).enter().append("g").classed("legendpoints",!0)})).each((function styleSpatial(Ee){var Be,We=Ee[0].trace,at=[];if(We.visible)switch(We.type){case"histogram2d":case"heatmap":at=[["M-15,-2V4H15V-2Z"]],Be=!0;break;case"choropleth":case"choroplethmapbox":at=[["M-6,-6V6H6V-6Z"]],Be=!0;break;case"densitymapbox":at=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],Be="radial";break;case"cone":at=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],Be=!1;break;case"streamtube":at=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],Be=!1;break;case"surface":at=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],Be=!0;break;case"mesh3d":at=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],Be=!1;break;case"volume":at=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],Be=!0;break;case"isosurface":at=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],Be=!1}var ct=Ue.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(at);ct.enter().append("path").classed("legend3dandfriends",!0).attr("transform","translate(20,0)").style("stroke-miterlimit",1),ct.exit().remove(),ct.each((function(Ee,at){var ct,ft=Ue.select(this),xt=it(We),kt=xt.colorscale,Lt=xt.reversescale;if(kt){if(!Be){var Ut=kt.length;ct=0===at?kt[Lt?Ut-1:0][1]:1===at?kt[Lt?0:Ut-1][1]:kt[Math.floor((Ut-1)/2)][1]}}else{var er=We.vertexcolor||We.facecolor||We.color;ct=$e.isArrayOrTypedArray(er)?er[at]||er[0]:er}ft.attr("d",Ee[0]),ct?ft.call(rt.fill,ct):ft.call((function(Ee){if(Ee.size()){var Ue="legendfill-"+We.uid;Qe.gradient(Ee,ze,Ue,getGradientDirection(Lt,"radial"===Be),kt,"fill")}}))}))})).each((function styleWaterfalls(Ee){var ze=Ee[0].trace,Be=[];ze.visible&&"waterfall"===ze.type&&(Be=Ee[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var We=Ue.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(Be);We.enter().append("path").classed("legendwaterfall",!0).attr("transform","translate(20,0)").style("stroke-miterlimit",1),We.exit().remove(),We.each((function(Ee){var Be=Ue.select(this),We=ze[Ee[0]].marker,$e=boundLineWidth(void 0,We.line,5,2);Be.attr("d",Ee[1]).style("stroke-width",$e+"px").call(rt.fill,We.color),$e&&Be.call(rt.stroke,We.line.color)}))})).each((function styleFunnels(Ee){styleBarLike(Ee,this,"funnel")})).each((function styleBars(Ee){styleBarLike(Ee,this)})).each((function styleBoxes(Ee){var Be=Ee[0].trace,it=Ue.select(this).select("g.legendpoints").selectAll("path.legendbox").data(Be.visible&&We.traceIs(Be,"box-violin")?[Ee]:[]);it.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform","translate(20,0)"),it.exit().remove(),it.each((function(){var Ee=Ue.select(this);if("all"!==Be.boxpoints&&"all"!==Be.points||0!==rt.opacity(Be.fillcolor)||0!==rt.opacity((Be.line||{}).color)){var We=boundLineWidth(void 0,Be.line,5,2);Ee.style("stroke-width",We+"px").call(rt.fill,Be.fillcolor),We&&rt.stroke(Ee,Be.line.color)}else{var at=$e.minExtend(Be,{marker:{size:xt?12:$e.constrain(Be.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});it.call(Qe.pointStyle,at,ze)}}))})).each((function styleFunnelareas(Ee){stylePieLike(Ee,this,"funnelarea")})).each((function stylePies(Ee){stylePieLike(Ee,this,"pie")})).each((function styleLines(Ee){var Be,We,rt=Ee[0],ct=rt.trace,ft=ct.visible&&ct.fill&&"none"!==ct.fill,xt=at.hasLines(ct),kt=ct.contours,Lt=!1,Ut=!1,er=it(ct),tr=er.colorscale,rr=er.reversescale;if(kt){var ar=kt.coloring;"lines"===ar?Lt=!0:xt="none"===ar||"heatmap"===ar||kt.showlines,"constraint"===kt.type?ft="="!==kt._operation:"fill"!==ar&&"heatmap"!==ar||(Ut=!0)}var Lr=at.hasMarkers(ct)||at.hasText(ct),Qr=ft||Ut,on=xt||Lt,sn=Lr||!Qr?"M5,0":on?"M5,-2":"M5,-3",cn=Ue.select(this),un=cn.select(".legendfill").selectAll("path").data(ft||Ut?[Ee]:[]);if(un.enter().append("path").classed("js-fill",!0),un.exit().remove(),un.attr("d",sn+"h30v6h-30z").call(ft?Qe.fillGroupStyle:function(Ee){if(Ee.size()){var Be="legendfill-"+ct.uid;Qe.gradient(Ee,ze,Be,getGradientDirection(rr),tr,"fill")}}),xt||Lt){var hn=boundLineWidth(void 0,ct.line,10,5);We=$e.minExtend(ct,{line:{width:hn}}),Be=[$e.minExtend(rt,{trace:We})]}var dn=cn.select(".legendlines").selectAll("path").data(xt||Lt?[Be]:[]);dn.enter().append("path").classed("js-line",!0),dn.exit().remove(),dn.attr("d",sn+(Lt?"l30,0.0001":"h30")).call(xt?Qe.lineGroupStyle:function(Ee){if(Ee.size()){var Be="legendline-"+ct.uid;Qe.lineGroupStyle(Ee),Qe.gradient(Ee,ze,Be,getGradientDirection(rr),tr,"stroke")}})})).each((function stylePoints(Ee){var Be,We,rt=Ee[0],it=rt.trace,ct=at.hasMarkers(it),ft=at.hasText(it),kt=at.hasLines(it);function boundVal(Ee,ze,Be,Ue){var We=$e.nestedProperty(it,Ee).get(),Qe=$e.isArrayOrTypedArray(We)&&ze?ze(We):We;if(xt&&Qe&&void 0!==Ue&&(Qe=Ue),Be){if(QeBe[1])return Be[1]}return Qe}function pickFirst(Ee){return Ee[0]}if(ct||ft||kt){var Lt={},Ut={};if(ct){Lt.mc=boundVal("marker.color",pickFirst),Lt.mx=boundVal("marker.symbol",pickFirst),Lt.mo=boundVal("marker.opacity",$e.mean,[.2,1]),Lt.mlc=boundVal("marker.line.color",pickFirst),Lt.mlw=boundVal("marker.line.width",$e.mean,[0,5],2),Ut.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var er=boundVal("marker.size",$e.mean,[2,16],12);Lt.ms=er,Ut.marker.size=er}kt&&(Ut.line={width:boundVal("line.width",pickFirst,[0,10],5)}),ft&&(Lt.tx="Aa",Lt.tp=boundVal("textposition",pickFirst),Lt.ts=10,Lt.tc=boundVal("textfont.color",pickFirst),Lt.tf=boundVal("textfont.family",pickFirst)),Be=[$e.minExtend(rt,Lt)],(We=$e.minExtend(it,Ut)).selectedpoints=null,We.texttemplate=null}var tr=Ue.select(this).select("g.legendpoints"),rr=tr.selectAll("path.scatterpts").data(ct?Be:[]);rr.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform","translate(20,0)"),rr.exit().remove(),rr.call(Qe.pointStyle,We,ze),ct&&(Be[0].mrc=3);var ar=tr.selectAll("g.pointtext").data(ft?Be:[]);ar.enter().append("g").classed("pointtext",!0).append("text").attr("transform","translate(20,0)"),ar.exit().remove(),ar.selectAll("text").call(Qe.textPointStyle,We,ze)})).each((function styleCandles(Ee){var ze=Ee[0].trace,Be=Ue.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(ze.visible&&"candlestick"===ze.type?[Ee,Ee]:[]);Be.enter().append("path").classed("legendcandle",!0).attr("d",(function(Ee,ze){return ze?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"})).attr("transform","translate(20,0)").style("stroke-miterlimit",1),Be.exit().remove(),Be.each((function(Ee,Be){var We=Ue.select(this),$e=ze[Be?"increasing":"decreasing"],Qe=boundLineWidth(void 0,$e.line,5,2);We.style("stroke-width",Qe+"px").call(rt.fill,$e.fillcolor),Qe&&rt.stroke(We,$e.line.color)}))})).each((function styleOHLC(Ee){var ze=Ee[0].trace,Be=Ue.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(ze.visible&&"ohlc"===ze.type?[Ee,Ee]:[]);Be.enter().append("path").classed("legendohlc",!0).attr("d",(function(Ee,ze){return ze?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"})).attr("transform","translate(20,0)").style("stroke-miterlimit",1),Be.exit().remove(),Be.each((function(Ee,Be){var We=Ue.select(this),$e=ze[Be?"increasing":"decreasing"],it=boundLineWidth(void 0,$e.line,5,2);We.style("fill","none").call(Qe.dashLine,$e.line.dash,it),it&&rt.stroke(We,$e.line.color)}))}))}},ee92:function(Ee,ze,Be){"use strict";var Ue=Be("7e25").EventEmitter,We=Be("371e"),$e=Be("fc26"),Qe=Be("4248"),rt=Be("d18e"),it=Be("cb04"),at=Be("4ebd");Ee.exports=function toImage(Ee,ze){var Be=new Ue,ct=rt(Ee,{format:"png"}),ft=ct.gd;ft.style.position="absolute",ft.style.left="-5000px",document.body.appendChild(ft);var xt=Qe.getRedrawFunc(ft);return We.call("plot",ft,ct.data,ct.layout,ct.config).then(xt).then((function wait(){var Ee=Qe.getDelay(ft._fullLayout);setTimeout((function(){var Ee=it(ft),Ue=document.createElement("canvas");Ue.id=$e.randstr(),(Be=at({format:ze.format,width:ft._fullLayout.width,height:ft._fullLayout.height,canvas:Ue,emitter:Be,svg:Ee})).clean=function(){ft&&document.body.removeChild(ft)}}),Ee)})).catch((function(Ee){Be.emit("error",Ee)})),Be}},eeb3:function(Ee,ze,Be){"use strict";var Ue=Be("e639");Ee.exports={moduleType:"component",name:Ue.name,layoutAttributes:Be("9c5f"),supplyLayoutDefaults:Be("7210"),draw:Be("f103")}},eec7:function(Ee,ze,Be){"use strict";var Ue=Be("0642"),We=Be("fc26").isArray1D,$e=Be("4eee"),Qe=Be("7a4a"),rt=Be("7fbb"),it=Be("8b79"),at=Be("d577"),ct=Be("1b6a"),ft=Be("25f9"),xt=Be("d064"),kt=Be("dfb0");Ee.exports=function calc(Ee,ze){var Be=Ue.getFromId(Ee,ze.xaxis),Lt=Ue.getFromId(Ee,ze.yaxis),Ut=ze.aaxis,er=ze.baxis,tr=ze.x,rr=ze.y,ar=[];tr&&We(tr)&&ar.push("x"),rr&&We(rr)&&ar.push("y"),ar.length&&xt(ze,Ut,er,"a","b",ar);var Lr=ze._a=ze._a||ze.a,Qr=ze._b=ze._b||ze.b;tr=ze._x||ze.x,rr=ze._y||ze.y;var on={};if(ze._cheater){var sn="index"===Ut.cheatertype?Lr.length:Lr,cn="index"===er.cheatertype?Qr.length:Qr;tr=$e(sn,cn,ze.cheaterslope)}ze._x=tr=ct(tr),ze._y=rr=ct(rr),ft(tr,Lr,Qr),ft(rr,Lr,Qr),kt(ze),ze.setScale();var un=Qe(tr),hn=Qe(rr),dn=.5*(un[1]-un[0]),vn=.5*(un[1]+un[0]),yn=.5*(hn[1]-hn[0]),_n=.5*(hn[1]+hn[0]);return un=[vn-1.3*dn,vn+1.3*dn],hn=[_n-1.3*yn,_n+1.3*yn],ze._extremes[Be._id]=Ue.findExtremes(Be,un,{padded:!0}),ze._extremes[Lt._id]=Ue.findExtremes(Lt,hn,{padded:!0}),rt(ze,"a","b"),rt(ze,"b","a"),it(ze,Ut),it(ze,er),on.clipsegments=at(ze._xctrl,ze._yctrl,Ut,er),on.x=tr,on.y=rr,on.a=Lr,on.b=Qr,[on]}},ef33:function(Ee,ze,Be){"use strict";Ee.exports=function makeControlPoints(Ee,ze,Be,Ue){var We=Ee[0]-ze[0],$e=Ee[1]-ze[1],Qe=Be[0]-ze[0],rt=Be[1]-ze[1],it=Math.pow(We*We+$e*$e,.25),at=Math.pow(Qe*Qe+rt*rt,.25),ct=(at*at*We-it*it*Qe)*Ue,ft=(at*at*$e-it*it*rt)*Ue,xt=at*(it+at)*3,kt=it*(it+at)*3;return[[ze[0]+(xt&&ct/xt),ze[1]+(xt&&ft/xt)],[ze[0]-(kt&&ct/kt),ze[1]-(kt&&ft/kt)]]}},ef49:function(Ee,ze){Ee.exports=function multiply(Ee,ze,Be){return Ee[0]=ze[0]*Be[0],Ee[1]=ze[1]*Be[1],Ee[2]=ze[2]*Be[2],Ee}},ef6e:function(Ee,ze,Be){"use strict";Ee.exports=function selectPoints(Ee,ze){var Be,Ue,We,$e,Qe,rt=Ee.cd,it=Ee.xaxis,at=Ee.yaxis,ct=[];if(!1===ze)for(Be=0;Be0?1:-1}},efaa:function(Ee,ze,Be){"use strict";Ee.exports=function makePath(Ee,ze,Be){if(0===Ee.length)return"";var Ue,We=[],$e=Be?3:1;for(Ue=0;Ue")}}Ee.exports={hoverPoints:function hoverPoints(Ee,ze,Be,We){var $e=Ue(Ee,ze,Be,We);if($e&&!1!==$e[0].index){var Qe=$e[0];if(void 0===Qe.index)return $e;var rt=Ee.subplot,it=Qe.cd[Qe.index],at=Qe.trace;if(rt.isPtInside(it))return Qe.xLabelVal=void 0,Qe.yLabelVal=void 0,makeHoverPointText(it,at,rt,Qe),Qe.hovertemplate=at.hovertemplate,$e}},makeHoverPointText:makeHoverPointText}},efce:function(Ee,ze,Be){"use strict";var Ue=Be("cea5"),We=Be("62d6"),$e=Be("b5bb"),Qe=["uint8","uint8_clamped","uint16","uint32","int8","int16","int32","float32"];function GLBuffer(Ee,ze,Be,Ue,We){this.gl=Ee,this.type=ze,this.handle=Be,this.length=Ue,this.usage=We}var rt=GLBuffer.prototype;function updateTypeArray(Ee,ze,Be,Ue,We,$e){var Qe=We.length*We.BYTES_PER_ELEMENT;if($e<0)return Ee.bufferData(ze,We,Ue),Qe;if(Qe+$e>Be)throw new Error("gl-buffer: If resizing buffer, must not specify offset");return Ee.bufferSubData(ze,$e,We),Be}function makeScratchTypeArray(Ee,ze){for(var Be=Ue.malloc(Ee.length,ze),We=Ee.length,$e=0;$e=0;--Ue){if(ze[Ue]!==Be)return!1;Be*=Ee[Ue]}return!0}(Ee.shape,Ee.stride))0===Ee.offset&&Ee.data.length===Ee.shape[0]?this.length=updateTypeArray(this.gl,this.type,this.length,this.usage,Ee.data,ze):this.length=updateTypeArray(this.gl,this.type,this.length,this.usage,Ee.data.subarray(Ee.offset,Ee.shape[0]),ze);else{var rt=Ue.malloc(Ee.size,Be),it=$e(rt,Ee.shape);We.assign(it,Ee),this.length=updateTypeArray(this.gl,this.type,this.length,this.usage,ze<0?rt:rt.subarray(0,Ee.size),ze),Ue.free(rt)}}else if(Array.isArray(Ee)){var at;at=this.type===this.gl.ELEMENT_ARRAY_BUFFER?makeScratchTypeArray(Ee,"uint16"):makeScratchTypeArray(Ee,"float32"),this.length=updateTypeArray(this.gl,this.type,this.length,this.usage,ze<0?at:at.subarray(0,Ee.length),ze),Ue.free(at)}else if("object"==typeof Ee&&"number"==typeof Ee.length)this.length=updateTypeArray(this.gl,this.type,this.length,this.usage,Ee,ze);else{if("number"!=typeof Ee&&void 0!==Ee)throw new Error("gl-buffer: Invalid data type");if(ze>=0)throw new Error("gl-buffer: Cannot specify offset when resizing buffer");(Ee|=0)<=0&&(Ee=1),this.gl.bufferData(this.type,0|Ee,this.usage),this.length=Ee}},Ee.exports=function createBuffer(Ee,ze,Be,Ue){if(Be=Be||Ee.ARRAY_BUFFER,Ue=Ue||Ee.DYNAMIC_DRAW,Be!==Ee.ARRAY_BUFFER&&Be!==Ee.ELEMENT_ARRAY_BUFFER)throw new Error("gl-buffer: Invalid type for webgl buffer, must be either gl.ARRAY_BUFFER or gl.ELEMENT_ARRAY_BUFFER");if(Ue!==Ee.DYNAMIC_DRAW&&Ue!==Ee.STATIC_DRAW&&Ue!==Ee.STREAM_DRAW)throw new Error("gl-buffer: Invalid usage for buffer, must be either gl.DYNAMIC_DRAW, gl.STATIC_DRAW or gl.STREAM_DRAW");var We=Ee.createBuffer(),$e=new GLBuffer(Ee,Be,We,0,Ue);return $e.update(ze),$e}},f027:function(Ee,ze,Be){"use strict";var Ue=Be("e7bd"),We=Be("d115").addOpacity,$e=Be("371e"),Qe=Be("fc26"),rt=Be("d92f"),it=Be("5008"),at=Be("d18b"),ct=Be("1a40"),ft=Be("0b77");Ee.exports=function handleAxisDefaults(Ee,ze,Be){var xt=Be.letter,kt=Be.font||{},Lt=Ue[xt+"axis"];function coerce(Be,Ue){return Qe.coerce(Ee,ze,Lt,Be,Ue)}function coerce2(Be,Ue){return Qe.coerce2(Ee,ze,Lt,Be,Ue)}Be.name&&(ze._name=Be.name,ze._id=Be.name);var Ut=coerce("type");("-"===Ut&&(Be.data&&function setAutoType(Ee,ze){if("-"!==Ee.type)return;var Be=Ee._id.charAt(0),Ue=Ee[Be+"calendar"];Ee.type=ft(ze,Ue)}(ze,Be.data),"-"===ze.type?ze.type="linear":Ut=Ee.type=ze.type),coerce("smoothing"),coerce("cheatertype"),coerce("showticklabels"),coerce("labelprefix",xt+" = "),coerce("labelsuffix"),coerce("showtickprefix"),coerce("showticksuffix"),coerce("separatethousands"),coerce("tickformat"),coerce("exponentformat"),coerce("showexponent"),coerce("categoryorder"),coerce("tickmode"),coerce("tickvals"),coerce("ticktext"),coerce("tick0"),coerce("dtick"),"array"===ze.tickmode&&(coerce("arraytick0"),coerce("arraydtick")),coerce("labelpadding"),ze._hovertitle=xt,"date"===Ut)&&$e.getComponentMethod("calendars","handleDefaults")(Ee,ze,"calendar",Be.calendar);ct(ze,Be.fullLayout),ze.c2p=Qe.identity;var er=coerce("color",Be.dfltColor),tr=er===Ee.color?er:kt.color;coerce("title.text")&&(Qe.coerceFont(coerce,"title.font",{family:kt.family,size:Math.round(1.2*kt.size),color:tr}),coerce("title.offset")),coerce("tickangle"),coerce("autorange",!ze.isValidRange(Ee.range))&&coerce("rangemode"),coerce("range"),ze.cleanRange(),coerce("fixedrange"),rt(Ee,ze,coerce,Ut),it(Ee,ze,coerce,Ut,Be),at(Ee,ze,coerce,{data:Be.data,dataAttr:xt});var rr=coerce2("gridcolor",We(er,.3)),ar=coerce2("gridwidth"),Lr=coerce("showgrid");Lr||(delete ze.gridcolor,delete ze.gridwidth);var Qr=coerce2("startlinecolor",er),on=coerce2("startlinewidth",ar);coerce("startline",ze.showgrid||!!Qr||!!on)||(delete ze.startlinecolor,delete ze.startlinewidth);var sn=coerce2("endlinecolor",er),cn=coerce2("endlinewidth",ar);return coerce("endline",ze.showgrid||!!sn||!!cn)||(delete ze.endlinecolor,delete ze.endlinewidth),Lr?(coerce("minorgridcount"),coerce("minorgridwidth",ar),coerce("minorgridcolor",We(rr,.06)),ze.minorgridcount||(delete ze.minorgridwidth,delete ze.minorgridcolor)):(delete ze.gridcolor,delete ze.gridWidth),"none"===ze.showticklabels&&(delete ze.tickfont,delete ze.tickangle,delete ze.showexponent,delete ze.exponentformat,delete ze.tickformat,delete ze.showticksuffix,delete ze.showtickprefix),ze.showticksuffix||delete ze.ticksuffix,ze.showtickprefix||delete ze.tickprefix,coerce("tickmode"),ze}},f09f:function(Ee,ze,Be){"use strict";Ee.exports=function(Ee,ze,Be){return ze&&Be?function(ze,Be,Ue,We,$e){var Qe,rt,it,at,ct,ft;ze||(ze=[]),Be*=3,Ue*=3;var xt=We*We,kt=1-We,Lt=kt*kt,Ut=kt*We*2,er=-3*Lt,tr=3*(Lt-Ut),rr=3*(Ut-xt),ar=3*xt,Lr=$e*$e,Qr=Lr*$e,on=1-$e,sn=on*on,cn=sn*on;for(ft=0;ft0&&(rt=rt.transition().duration(ze.transition.duration).ease(ze.transition.easing)),rt.attr("transform","translate("+(Qe-.5*ct.gripWidth)+","+ze._dims.currentValueTotalHeight+")")}}function normalizedValueToPosition(Ee,ze){var Be=Ee._dims;return Be.inputAreaStart+ct.stepInset+(Be.inputAreaLength-2*ct.stepInset)*Math.min(1,Math.max(0,ze))}function positionToNormalizedValue(Ee,ze){var Be=Ee._dims;return Math.min(1,Math.max(0,(ze-ct.stepInset-Be.inputAreaStart)/(Be.inputAreaLength-2*ct.stepInset-2*Be.inputAreaStart)))}function drawTouchRect(Ee,ze,Be){var Ue=Be._dims,We=rt.ensureSingle(Ee,"rect",ct.railTouchRectClass,(function(Ue){Ue.call(attachGripEvents,ze,Ee,Be).style("pointer-events","all")}));We.attr({width:Ue.inputAreaLength,height:Math.max(Ue.inputAreaWidth,ct.tickOffset+Be.ticklen+Ue.labelHeight)}).call($e.fill,Be.bgcolor).attr("opacity",0),Qe.setTranslate(We,0,Ue.currentValueTotalHeight)}function drawRail(Ee,ze){var Be=ze._dims,Ue=Be.inputAreaLength-2*ct.railInset,We=rt.ensureSingle(Ee,"rect",ct.railRectClass);We.attr({width:Ue,height:ct.railWidth,rx:ct.railRadius,ry:ct.railRadius,"shape-rendering":"crispEdges"}).call($e.stroke,ze.bordercolor).call($e.fill,ze.bgcolor).style("stroke-width",ze.borderwidth+"px"),Qe.setTranslate(We,ct.railInset,.5*(Be.inputAreaWidth-ct.railWidth)+Be.currentValueTotalHeight)}Ee.exports=function draw(Ee){var ze=Ee._fullLayout,Be=function makeSliderData(Ee,ze){for(var Be=Ee[ct.name],Ue=[],We=0;We0?[0]:[]);function clearSlider(ze){ze._commandObserver&&(ze._commandObserver.remove(),delete ze._commandObserver),We.autoMargin(Ee,autoMarginId(ze))}if($e.enter().append("g").classed(ct.containerClassName,!0).style("cursor","ew-resize"),$e.exit().each((function(){Ue.select(this).selectAll("g."+ct.groupClassName).each(clearSlider)})).remove(),0!==Be.length){var rt=$e.selectAll("g."+ct.groupClassName).data(Be,keyFunction);rt.enter().append("g").classed(ct.groupClassName,!0),rt.exit().each(clearSlider).remove();for(var it=0;it=ct[0]&&Ee.x<=ct[1]&&Ee.y>=ft[0]&&Ee.y<=ft[1]})),Ut=Math.ceil(Lt.length/kt),er=0;Qe.forEach((function(Ee,Be){var Ue=Ee[0].trace;at.hasMarkers(Ue)&&Ue.marker.maxdisplayed>0&&Be0;function transition(Ee){return tr?Ee.transition():Ee}var rr=Be.xaxis,ar=Be.yaxis,Lr=ft[0].trace,Qr=Lr.line,on=Ue.select(Lt),sn=Qe(on,"g","errorbars"),cn=Qe(on,"g","lines"),un=Qe(on,"g","points"),hn=Qe(on,"g","text");if(We.getComponentMethod("errorbars","plot")(Ee,sn,Be,Ut),!0===Lr.visible){var dn,vn;transition(on).style("opacity",Lr.opacity);var yn=Lr.fill.charAt(Lr.fill.length-1);"x"!==yn&&"y"!==yn&&(yn=""),ft[0][Be.isRangePlot?"nodeRangePlot3":"node3"]=on;var _n,Mn,Cn="",En=[],Pn=Lr._prevtrace;Pn&&(Cn=Pn._prevRevpath||"",vn=Pn._nextFill,En=Pn._polygons);var In,Bn,Hn,Kn,Jn,ei,ti,ri="",ni="",ii=[],ai=$e.noop;if(dn=Lr._ownFill,at.hasLines(Lr)||"none"!==Lr.fill){for(vn&&vn.datum(ft),-1!==["hv","vh","hvh","vhv"].indexOf(Qr.shape)?(In=it.steps(Qr.shape),Bn=it.steps(Qr.shape.split("").reverse().join(""))):In=Bn="spline"===Qr.shape?function(Ee){var ze=Ee[Ee.length-1];return Ee.length>1&&Ee[0][0]===ze[0]&&Ee[0][1]===ze[1]?it.smoothclosed(Ee.slice(1),Qr.smoothing):it.smoothopen(Ee,Qr.smoothing)}:function(Ee){return"M"+Ee.join("L")},Hn=function(Ee){return Bn(Ee.reverse())},ii=ct(ft,{xaxis:rr,yaxis:ar,connectGaps:Lr.connectgaps,baseTolerance:Math.max(Qr.width||1,3)/4,shape:Qr.shape,simplify:Qr.simplify,fill:Lr.fill}),ti=Lr._polygons=new Array(ii.length),er=0;er1){var Be=Ue.select(this);if(Be.datum(ft),Ee)transition(Be.style("opacity",0).attr("d",_n).call(it.lineGroupStyle)).style("opacity",1);else{var We=transition(Be);We.attr("d",_n),it.singleLineStyle(ft,We)}}}}}var oi=cn.selectAll(".js-line").data(ii);transition(oi.exit()).style("opacity",0).remove(),oi.each(ai(!1)),oi.enter().append("path").classed("js-line",!0).style("vector-effect","non-scaling-stroke").call(it.lineGroupStyle).each(ai(!0)),it.setClipUrl(oi,Be.layerClipId,Ee),ii.length?(dn?(dn.datum(ft),Kn&&ei&&(yn?("y"===yn?Kn[1]=ei[1]=ar.c2p(0,!0):"x"===yn&&(Kn[0]=ei[0]=rr.c2p(0,!0)),transition(dn).attr("d","M"+ei+"L"+Kn+"L"+ri.substr(1)).call(it.singleFillStyle)):transition(dn).attr("d",ri+"Z").call(it.singleFillStyle))):vn&&("tonext"===Lr.fill.substr(0,6)&&ri&&Cn?("tonext"===Lr.fill?transition(vn).attr("d",ri+"Z"+Cn+"Z").call(it.singleFillStyle):transition(vn).attr("d",ri+"L"+Cn.substr(1)+"Z").call(it.singleFillStyle),Lr._polygons=Lr._polygons.concat(En)):(clearFill(vn),Lr._polygons=null)),Lr._prevRevpath=ni,Lr._prevPolygons=ti):(dn?clearFill(dn):vn&&clearFill(vn),Lr._polygons=Lr._prevRevpath=Lr._prevPolygons=null),un.datum(ft),hn.datum(ft),function makePoints(ze,We,$e){var Qe,ct=$e[0].trace,ft=at.hasMarkers(ct),xt=at.hasText(ct),kt=getKeyFunc(ct),Lt=hideFilter,Ut=hideFilter;if(ft||xt){var er=rt,Lr=ct.stackgroup,Qr=Lr&&"infer zero"===Ee._fullLayout._scatterStackOpts[rr._id+ar._id][Lr].stackgaps;ct.marker.maxdisplayed||ct._needsCull?er=Qr?visFilterWithGaps:visFilter:Lr&&!Qr&&(er=gapFilter),ft&&(Lt=er),xt&&(Ut=er)}var on,sn=(Qe=ze.selectAll("path.point").data(Lt,kt)).enter().append("path").classed("point",!0);tr&&sn.call(it.pointStyle,ct,Ee).call(it.translatePoints,rr,ar).style("opacity",0).transition().style("opacity",1),Qe.order(),ft&&(on=it.makePointStyleFns(ct)),Qe.each((function(ze){var We=Ue.select(this),$e=transition(We);it.translatePoint(ze,$e,rr,ar)?(it.singlePointStyle(ze,$e,ct,on,Ee),Be.layerClipId&&it.hideOutsideRangePoint(ze,$e,rr,ar,ct.xcalendar,ct.ycalendar),ct.customdata&&We.classed("plotly-customdata",null!==ze.data&&void 0!==ze.data)):$e.remove()})),tr?Qe.exit().transition().style("opacity",0).remove():Qe.exit().remove(),(Qe=We.selectAll("g").data(Ut,kt)).enter().append("g").classed("textpoint",!0).append("text"),Qe.order(),Qe.each((function(Ee){var ze=Ue.select(this),We=transition(ze.select("text"));it.translatePoint(Ee,We,rr,ar)?Be.layerClipId&&it.hideOutsideRangePoint(Ee,ze,rr,ar,ct.xcalendar,ct.ycalendar):ze.remove()})),Qe.selectAll("text").call(it.textPointStyle,ct,Ee).each((function(Ee){var ze=rr.c2p(Ee.x),Be=ar.c2p(Ee.y);Ue.select(this).selectAll("tspan.line").each((function(){transition(Ue.select(this)).attr({x:ze,y:Be})}))})),Qe.exit().remove()}(un,hn,ft);var si=!1===Lr.cliponaxis?null:Be.layerClipId;it.setClipUrl(un,si,Ee),it.setClipUrl(hn,si,Ee)}function clearFill(Ee){transition(Ee).attr("d","M0,0Z")}function visFilter(Ee){return Ee.filter((function(Ee){return!Ee.gap&&Ee.vis}))}function visFilterWithGaps(Ee){return Ee.filter((function(Ee){return Ee.vis}))}function gapFilter(Ee){return Ee.filter((function(Ee){return!Ee.gap}))}function keyFunc(Ee){return Ee.id}function getKeyFunc(Ee){if(Ee.ids)return keyFunc}function hideFilter(){return!1}}Ee.exports=function plot(Ee,ze,Be,We,$e,at){var ct,xt,kt=!$e,Lt=!!$e&&$e.duration>0,Ut=ft(Ee,ze,Be);((ct=We.selectAll("g.trace").data(Ut,(function(Ee){return Ee[0].trace.uid}))).enter().append("g").attr("class",(function(Ee){return"trace scatter trace"+Ee[0].trace.uid})).style("stroke-miterlimit",2),ct.order(),function createFills(Ee,ze,Be){ze.each((function(ze){var We=Qe(Ue.select(this),"g","fills");it.setClipUrl(We,Be.layerClipId,Ee);var $e=ze[0].trace,at=[];$e._ownfill&&at.push("_ownFill"),$e._nexttrace&&at.push("_nextFill");var ct=We.selectAll("g").data(at,rt);ct.enter().append("g"),ct.exit().each((function(Ee){$e[Ee]=null})).remove(),ct.order().each((function(Ee){$e[Ee]=Qe(Ue.select(this),"path","js-fill")}))}))}(Ee,ct,ze),Lt)?(at&&(xt=at()),Ue.transition().duration($e.duration).ease($e.easing).each("end",(function(){xt&&xt()})).each("interrupt",(function(){xt&&xt()})).each((function(){We.selectAll("g.trace").each((function(Be,Ue){plotOne(Ee,Ue,ze,Be,Ut,this,$e)}))}))):ct.each((function(Be,Ue){plotOne(Ee,Ue,ze,Be,Ut,this,$e)}));kt&&ct.exit().remove(),We.selectAll("path:not([d])").remove()}},f11b:function(Ee,ze,Be){"use strict";var Ue=Be("a5c4"),We=Be("fc26"),$e=Be("ac97").getTraceColor,Qe=We.fillText,rt=Be("efcd").makeHoverPointText,it=Be("a60f").isPtInsidePolygon;Ee.exports=function hoverPoints(Ee,ze,Be){var at=Ee.cd,ct=at[0].trace,ft=Ee.subplot,xt=ft.radialAxis,kt=ft.angularAxis,Lt=ft.vangles,Ut=Lt?it:We.isPtInsideSector,er=Ee.maxHoverDistance,tr=kt._period||2*Math.PI,rr=Math.abs(xt.g2p(Math.sqrt(ze*ze+Be*Be))),ar=Math.atan2(Be,ze);xt.range[0]>xt.range[1]&&(ar+=Math.PI);if(Ue.getClosest(at,(function(Ee){return Ut(rr,ar,[Ee.rp0,Ee.rp1],[Ee.thetag0,Ee.thetag1],Lt)?er+Math.min(1,Math.abs(Ee.thetag1-Ee.thetag0)/tr)-1+(Ee.rp1-rr)/(Ee.rp1-Ee.rp0)-1:1/0}),Ee),!1!==Ee.index){var Lr=at[Ee.index];Ee.x0=Ee.x1=Lr.ct[0],Ee.y0=Ee.y1=Lr.ct[1];var Qr=We.extendFlat({},Lr,{r:Lr.s,theta:Lr.p});return Qe(Lr,ct,Ee),rt(Qr,ct,ft,Ee),Ee.hovertemplate=ct.hovertemplate,Ee.color=$e(ct,Lr),Ee.xLabelVal=Ee.yLabelVal=void 0,Lr.s<0&&(Ee.idealAlign="left"),[Ee]}}},f144:function(Ee,ze,Be){"use strict";Ee.exports=function cleanPSLG(Ee,ze,Be){var Ue;if(Be){Ue=ze;for(var We=new Array(ze.length),$e=0;$eze[2]?1:0)}function dedupEdges(Ee,ze,Be){if(0!==Ee.length){if(ze)for(var Ue=0;Ue=0;--$e){var ar=ze[ct=(dn=Ue[$e])[0]],Lr=ar[0],Qr=ar[1],on=Ee[Lr],sn=Ee[Qr];if((on[0]-sn[0]||on[1]-sn[1])<0){var cn=Lr;Lr=Qr,Qr=cn}ar[0]=Lr;var un,hn=ar[1]=dn[1];for(We&&(un=ar[2]);$e>0&&Ue[$e-1][0]===ct;){var dn,vn=(dn=Ue[--$e])[1];We?ze.push([hn,vn,un]):ze.push([hn,vn]),hn=vn}We?ze.push([hn,Qr,un]):ze.push([hn,Qr])}return xt}(Ee,ze,xt,Lt,Be));return dedupEdges(ze,Ut,Be),!!Ut||(xt.length>0||Lt.length>0)}},f177:function(Ee,ze,Be){"use strict";var Ue=Be("de81"),We=Be("e38a").styleTextSelection;Ee.exports=function select(Ee,ze){var Be=Ee.cd,$e=[],Qe=Be[0].trace,rt=Be[0].t,it=Qe._length,at=rt.x,ct=rt.y,ft=rt._scene,xt=rt.index;if(!ft)return $e;var kt=Ue.hasText(Qe),Lt=Ue.hasMarkers(Qe),Ut=!Lt&&!kt;if(!0!==Qe.visible||Ut)return $e;var er=[],tr=[];if(!1!==ze&&!ze.degenerate)for(var rr=0;rrkt[1][2]&&(er[0]=-er[0]),kt[0][2]>kt[2][0]&&(er[1]=-er[1]),kt[1][0]>kt[0][1]&&(er[2]=-er[2]),!0}},f1c3:function(Ee,ze,Be){"use strict";var Ue=Be("371e"),We=Be("7974");Ee.exports={moduleType:"trace",name:"splom",basePlotModule:Be("f214"),categories:["gl","regl","cartesian","symbols","showLegend","scatter-like"],attributes:Be("26e4"),supplyDefaults:Be("22926"),colorbar:Be("f3cf"),calc:Be("e4d3"),plot:Be("9d8f"),hoverPoints:Be("4051").hoverPoints,selectPoints:Be("806e"),editStyle:Be("de96"),meta:{}},Ue.register(We)},f1cd:function(Ee,ze,Be){"use strict";Ee.exports={attributes:Be("e7bd"),supplyDefaults:Be("4190"),plot:Be("af2d"),calc:Be("eec7"),animatable:!0,isContainer:!0,moduleType:"trace",name:"carpet",basePlotModule:Be("91cd"),categories:["cartesian","svg","carpet","carpetAxis","notLegendIsolatable","noMultiCategory","noHover","noSortingByValue"],meta:{}}},f200:function(Ee,ze,Be){"use strict";var Ue=Be("a876"),We=Be("94d5").hovertemplateAttrs,$e=Be("94d5").texttemplateAttrs,Qe=Be("f4e9"),rt=Be("81f0").attributes,it=Be("919e"),at=Be("8ba9"),ct=Be("9092").extendFlat;Ee.exports={labels:{valType:"data_array",editType:"calc"},parents:{valType:"data_array",editType:"calc"},values:{valType:"data_array",editType:"calc"},branchvalues:{valType:"enumerated",values:["remainder","total"],dflt:"remainder",editType:"calc"},count:{valType:"flaglist",flags:["branches","leaves"],dflt:"leaves",editType:"calc"},level:{valType:"any",editType:"plot",anim:!0},maxdepth:{valType:"integer",editType:"plot",dflt:-1},marker:ct({colors:{valType:"data_array",editType:"calc"},line:{color:ct({},it.marker.line.color,{dflt:null}),width:ct({},it.marker.line.width,{dflt:1}),editType:"calc"},editType:"calc"},Qe("marker",{colorAttr:"colors",anim:!1})),leaf:{opacity:{valType:"number",editType:"style",min:0,max:1},editType:"plot"},text:it.text,textinfo:{valType:"flaglist",flags:["label","text","value","current path","percent root","percent entry","percent parent"],extras:["none"],editType:"plot"},texttemplate:$e({editType:"plot"},{keys:at.eventDataKeys.concat(["label","value"])}),hovertext:it.hovertext,hoverinfo:ct({},Ue.hoverinfo,{flags:["label","text","value","name","current path","percent root","percent entry","percent parent"],dflt:"label+text+value+name"}),hovertemplate:We({},{keys:at.eventDataKeys}),textfont:it.textfont,insidetextorientation:it.insidetextorientation,insidetextfont:it.insidetextfont,outsidetextfont:ct({},it.outsidetextfont,{}),domain:rt({name:"sunburst",trace:!0,editType:"calc"})}},f214:function(Ee,ze,Be){"use strict";var Ue=Be("e8ee"),We=Be("371e"),$e=Be("cf42"),Qe=Be("ad62").getModuleCalcData,rt=Be("91cd"),it=Be("3c1c").getFromId,at=Be("0642").shouldShowZeroLine;function dragOne(Ee,ze,Be){for(var Ue=Be.matrixOptions.data.length,We=ze._visibleDims,$e=Be.viewOpts.ranges=new Array(Ue),Qe=0;Qe 0 U ||b|| > 0.\n // Assign z = 0, x = -b, y = a:\n // a*-b + b*a + c*0 = -ba + ba + 0 = 0\n if (v.x*v.x > v.z*v.z || v.y*v.y > v.z*v.z) {\n return normalize(vec3(-v.y, v.x, 0.0));\n } else {\n return normalize(vec3(0.0, v.z, -v.y));\n }\n}\n\n// Calculate the cone vertex and normal at the given index.\n//\n// The returned vertex is for a cone with its top at origin and height of 1.0,\n// pointing in the direction of the vector attribute.\n//\n// Each cone is made up of a top vertex, a center base vertex and base perimeter vertices.\n// These vertices are used to make up the triangles of the cone by the following:\n// segment + 0 top vertex\n// segment + 1 perimeter vertex a+1\n// segment + 2 perimeter vertex a\n// segment + 3 center base vertex\n// segment + 4 perimeter vertex a\n// segment + 5 perimeter vertex a+1\n// Where segment is the number of the radial segment * 6 and a is the angle at that radial segment.\n// To go from index to segment, floor(index / 6)\n// To go from segment to angle, 2*pi * (segment/segmentCount)\n// To go from index to segment index, index - (segment*6)\n//\nvec3 getConePosition(vec3 d, float rawIndex, float coneOffset, out vec3 normal) {\n\n const float segmentCount = 8.0;\n\n float index = rawIndex - floor(rawIndex /\n (segmentCount * 6.0)) *\n (segmentCount * 6.0);\n\n float segment = floor(0.001 + index/6.0);\n float segmentIndex = index - (segment*6.0);\n\n normal = -normalize(d);\n\n if (segmentIndex > 2.99 && segmentIndex < 3.01) {\n return mix(vec3(0.0), -d, coneOffset);\n }\n\n float nextAngle = (\n (segmentIndex > 0.99 && segmentIndex < 1.01) ||\n (segmentIndex > 4.99 && segmentIndex < 5.01)\n ) ? 1.0 : 0.0;\n float angle = 2.0 * 3.14159 * ((segment + nextAngle) / segmentCount);\n\n vec3 v1 = mix(d, vec3(0.0), coneOffset);\n vec3 v2 = v1 - d;\n\n vec3 u = getOrthogonalVector(d);\n vec3 v = normalize(cross(u, d));\n\n vec3 x = u * cos(angle) * length(d)*0.25;\n vec3 y = v * sin(angle) * length(d)*0.25;\n vec3 v3 = v2 + x + y;\n if (segmentIndex < 3.0) {\n vec3 tx = u * sin(angle);\n vec3 ty = v * -cos(angle);\n vec3 tangent = tx + ty;\n normal = normalize(cross(v3 - v1, tangent));\n }\n\n if (segmentIndex == 0.0) {\n return mix(d, vec3(0.0), coneOffset);\n }\n return v3;\n}\n\nattribute vec3 vector;\nattribute vec4 color, position;\nattribute vec2 uv;\n\nuniform float vectorScale, coneScale, coneOffset;\nuniform mat4 model, view, projection, inverseModel;\nuniform vec3 eyePosition, lightPosition;\n\nvarying vec3 f_normal, f_lightDirection, f_eyeDirection, f_data, f_position;\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n // Scale the vector magnitude to stay constant with\n // model & view changes.\n vec3 normal;\n vec3 XYZ = getConePosition(mat3(model) * ((vectorScale * coneScale) * vector), position.w, coneOffset, normal);\n vec4 conePosition = model * vec4(position.xyz, 1.0) + vec4(XYZ, 0.0);\n\n //Lighting geometry parameters\n vec4 cameraCoordinate = view * conePosition;\n cameraCoordinate.xyz /= cameraCoordinate.w;\n f_lightDirection = lightPosition - cameraCoordinate.xyz;\n f_eyeDirection = eyePosition - cameraCoordinate.xyz;\n f_normal = normalize((vec4(normal, 0.0) * inverseModel).xyz);\n\n // vec4 m_position = model * vec4(conePosition, 1.0);\n vec4 t_position = view * conePosition;\n gl_Position = projection * t_position;\n\n f_color = color;\n f_data = conePosition.xyz;\n f_position = position.xyz;\n f_uv = uv;\n}\n"]),$e=Ue(["#extension GL_OES_standard_derivatives : enable\n\nprecision highp float;\n#define GLSLIFY 1\n\nfloat beckmannDistribution(float x, float roughness) {\n float NdotH = max(x, 0.0001);\n float cos2Alpha = NdotH * NdotH;\n float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha;\n float roughness2 = roughness * roughness;\n float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha;\n return exp(tan2Alpha / roughness2) / denom;\n}\n\nfloat cookTorranceSpecular(\n vec3 lightDirection,\n vec3 viewDirection,\n vec3 surfaceNormal,\n float roughness,\n float fresnel) {\n\n float VdotN = max(dot(viewDirection, surfaceNormal), 0.0);\n float LdotN = max(dot(lightDirection, surfaceNormal), 0.0);\n\n //Half angle vector\n vec3 H = normalize(lightDirection + viewDirection);\n\n //Geometric term\n float NdotH = max(dot(surfaceNormal, H), 0.0);\n float VdotH = max(dot(viewDirection, H), 0.000001);\n float LdotH = max(dot(lightDirection, H), 0.000001);\n float G1 = (2.0 * NdotH * VdotN) / VdotH;\n float G2 = (2.0 * NdotH * LdotN) / LdotH;\n float G = min(1.0, min(G1, G2));\n \n //Distribution term\n float D = beckmannDistribution(NdotH, roughness);\n\n //Fresnel term\n float F = pow(1.0 - VdotN, fresnel);\n\n //Multiply terms and done\n return G * F * D / max(3.14159265 * VdotN, 0.000001);\n}\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 clipBounds[2];\nuniform float roughness, fresnel, kambient, kdiffuse, kspecular, opacity;\nuniform sampler2D texture;\n\nvarying vec3 f_normal, f_lightDirection, f_eyeDirection, f_data, f_position;\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard;\n vec3 N = normalize(f_normal);\n vec3 L = normalize(f_lightDirection);\n vec3 V = normalize(f_eyeDirection);\n\n if(gl_FrontFacing) {\n N = -N;\n }\n\n float specular = min(1.0, max(0.0, cookTorranceSpecular(L, V, N, roughness, fresnel)));\n float diffuse = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0);\n\n vec4 surfaceColor = f_color * texture2D(texture, f_uv);\n vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular, 1.0);\n\n gl_FragColor = litColor * opacity;\n}\n"]),Qe=Ue(["precision highp float;\n\nprecision highp float;\n#define GLSLIFY 1\n\nvec3 getOrthogonalVector(vec3 v) {\n // Return up-vector for only-z vector.\n // Return ax + by + cz = 0, a point that lies on the plane that has v as a normal and that isn't (0,0,0).\n // From the above if-statement we have ||a|| > 0 U ||b|| > 0.\n // Assign z = 0, x = -b, y = a:\n // a*-b + b*a + c*0 = -ba + ba + 0 = 0\n if (v.x*v.x > v.z*v.z || v.y*v.y > v.z*v.z) {\n return normalize(vec3(-v.y, v.x, 0.0));\n } else {\n return normalize(vec3(0.0, v.z, -v.y));\n }\n}\n\n// Calculate the cone vertex and normal at the given index.\n//\n// The returned vertex is for a cone with its top at origin and height of 1.0,\n// pointing in the direction of the vector attribute.\n//\n// Each cone is made up of a top vertex, a center base vertex and base perimeter vertices.\n// These vertices are used to make up the triangles of the cone by the following:\n// segment + 0 top vertex\n// segment + 1 perimeter vertex a+1\n// segment + 2 perimeter vertex a\n// segment + 3 center base vertex\n// segment + 4 perimeter vertex a\n// segment + 5 perimeter vertex a+1\n// Where segment is the number of the radial segment * 6 and a is the angle at that radial segment.\n// To go from index to segment, floor(index / 6)\n// To go from segment to angle, 2*pi * (segment/segmentCount)\n// To go from index to segment index, index - (segment*6)\n//\nvec3 getConePosition(vec3 d, float rawIndex, float coneOffset, out vec3 normal) {\n\n const float segmentCount = 8.0;\n\n float index = rawIndex - floor(rawIndex /\n (segmentCount * 6.0)) *\n (segmentCount * 6.0);\n\n float segment = floor(0.001 + index/6.0);\n float segmentIndex = index - (segment*6.0);\n\n normal = -normalize(d);\n\n if (segmentIndex > 2.99 && segmentIndex < 3.01) {\n return mix(vec3(0.0), -d, coneOffset);\n }\n\n float nextAngle = (\n (segmentIndex > 0.99 && segmentIndex < 1.01) ||\n (segmentIndex > 4.99 && segmentIndex < 5.01)\n ) ? 1.0 : 0.0;\n float angle = 2.0 * 3.14159 * ((segment + nextAngle) / segmentCount);\n\n vec3 v1 = mix(d, vec3(0.0), coneOffset);\n vec3 v2 = v1 - d;\n\n vec3 u = getOrthogonalVector(d);\n vec3 v = normalize(cross(u, d));\n\n vec3 x = u * cos(angle) * length(d)*0.25;\n vec3 y = v * sin(angle) * length(d)*0.25;\n vec3 v3 = v2 + x + y;\n if (segmentIndex < 3.0) {\n vec3 tx = u * sin(angle);\n vec3 ty = v * -cos(angle);\n vec3 tangent = tx + ty;\n normal = normalize(cross(v3 - v1, tangent));\n }\n\n if (segmentIndex == 0.0) {\n return mix(d, vec3(0.0), coneOffset);\n }\n return v3;\n}\n\nattribute vec4 vector;\nattribute vec4 position;\nattribute vec4 id;\n\nuniform mat4 model, view, projection;\nuniform float vectorScale, coneScale, coneOffset;\n\nvarying vec3 f_position;\nvarying vec4 f_id;\n\nvoid main() {\n vec3 normal;\n vec3 XYZ = getConePosition(mat3(model) * ((vectorScale * coneScale) * vector.xyz), position.w, coneOffset, normal);\n vec4 conePosition = model * vec4(position.xyz, 1.0) + vec4(XYZ, 0.0);\n gl_Position = projection * view * conePosition;\n f_id = id;\n f_position = position.xyz;\n}\n"]),rt=Ue(["precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 clipBounds[2];\nuniform float pickId;\n\nvarying vec3 f_position;\nvarying vec4 f_id;\n\nvoid main() {\n if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard;\n\n gl_FragColor = vec4(pickId, f_id.xyz);\n}"]);ze.meshShader={vertex:We,fragment:$e,attributes:[{name:"position",type:"vec4"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"vector",type:"vec3"}]},ze.pickShader={vertex:Qe,fragment:rt,attributes:[{name:"position",type:"vec4"},{name:"id",type:"vec4"},{name:"vector",type:"vec3"}]}},f28b:function(Ee,ze){Ee.exports=function random(Ee,ze){ze=ze||1;var Be=2*Math.random()*Math.PI,Ue=2*Math.random()-1,We=Math.sqrt(1-Ue*Ue)*ze;return Ee[0]=Math.cos(Be)*We,Ee[1]=Math.sin(Be)*We,Ee[2]=Ue*ze,Ee}},f28e:function(Ee,ze,Be){"use strict";var Ue=Be("371e"),We=Be("79f1");Ee.exports=function getLegendData(Ee,ze){var Be,$e,Qe={},rt=[],it=!1,at={},ct=0,ft=0;function addOneItem(Ee,Be){if(""!==Ee&&We.isGrouped(ze))-1===rt.indexOf(Ee)?(rt.push(Ee),it=!0,Qe[Ee]=[[Be]]):Qe[Ee].push([Be]);else{var Ue="~~i"+ct;rt.push(Ue),Qe[Ue]=[[Be]],ct++}}for(Be=0;BeUt[1]-1/4096&&(ze.domain=rt),We.noneOrAll(Ee.domain,ze.domain,rt)}return Be("layer"),ze}},f3a4:function(Ee,ze,Be){"use strict";Ee.exports=function createTable(Ee){for(var ze=1<1){at=!0;break}}at?Ee.fullLayout._infolayer.select(".annotation-"+Ee.id+'[data-index="'+rt+'"]').remove():(it._pdata=We(Ee.glplot.cameraParams,[ze.xaxis.r2l(it.x)*Be[0],ze.yaxis.r2l(it.y)*Be[1],ze.zaxis.r2l(it.z)*Be[2]]),Ue(Ee.graphDiv,it,rt,Ee.id,it._xa,it._ya))}}},f4b3:function(Ee,ze,Be){"use strict";var Ue=Be("0642"),We=Be("fc26"),$e=Be("3c1c").getAxisGroup,Qe=["v","h"];function setPositionOffset(Ee,ze,Be,Qe){var rt,it,at,ct=ze.calcdata,ft=ze._fullLayout,xt=Qe._id,kt=xt.charAt(0),Lt=[],Ut=0;for(rt=0;rt1,Lr=1-ft[Ee+"gap"],Qr=1-ft[Ee+"groupgap"];for(rt=0;rt0){var ii=vn.pointpos,ai=vn.jitter,oi=vn.marker.size/2,si=0;ii+ai>=0&&((si=ri*(ii+ai))>hn?(ni=!0,ei=oi,Kn=si):si>Bn&&(ei=oi,Kn=hn)),si<=hn&&(Kn=hn);var li=0;ii-ai<=0&&((li=-ri*(ii-ai))>dn?(ni=!0,ti=oi,Jn=li):li>Hn&&(ti=oi,Jn=dn)),li<=dn&&(Jn=dn)}else Kn=hn,Jn=dn;var ci=new Array(at.length);for(it=0;it20&&ze?208===Ee||1114===Ee?Ue=0===Be[0]?1:-1:$e=0===Be[1]?1:-1:-1!==We.BOTTOMSTART.indexOf(Ee)?$e=1:-1!==We.LEFTSTART.indexOf(Ee)?Ue=1:-1!==We.TOPSTART.indexOf(Ee)?$e=-1:Ue=-1;return[Ue,$e]}(at,Be,ze),ft=[getInterpPx(Ee,ze,[-ct[0],-ct[1]])],xt=Ee.z.length,kt=Ee.z[0].length,Lt=ze.slice(),Ut=ct.slice();for(rt=0;rt<1e4;rt++){if(at>20?(at=We.CHOOSESADDLE[at][(ct[0]||ct[1])<0?0:1],Ee.crossings[it]=We.SADDLEREMAINDER[at]):delete Ee.crossings[it],!(ct=We.NEWDELTA[at])){Ue.log("Found bad marching index:",at,ze,Ee.level);break}ft.push(getInterpPx(Ee,ze,ct)),ze[0]+=ct[0],ze[1]+=ct[1],it=ze.join(","),equalPts(ft[ft.length-1],ft[ft.length-2],$e,Qe)&&ft.pop();var er=ct[0]&&(ze[0]<0||ze[0]>kt-2)||ct[1]&&(ze[1]<0||ze[1]>xt-2);if(ze[0]===Lt[0]&&ze[1]===Lt[1]&&ct[0]===Ut[0]&&ct[1]===Ut[1]||Be&&er)break;at=Ee.crossings[it]}1e4===rt&&Ue.log("Infinite loop in contour?");var tr,rr,ar,Lr,Qr,on,sn,cn,un,hn,dn,vn,yn,_n,Mn,Cn=equalPts(ft[0],ft[ft.length-1],$e,Qe),En=0,Pn=.2*Ee.smoothing,In=[],Bn=0;for(rt=1;rt=Bn;rt--)if((tr=In[rt])=Bn&&tr+In[rr]cn&&un--,Ee.edgepaths[un]=dn.concat(ft,hn));break}Jn||(Ee.edgepaths[cn]=ft.concat(hn))}for(cn=0;cn=We||(Be=We-ze.y0)>1e-6&&(ze.y0+=Be,ze.y1+=Be),We=ze.y1+kt}))}(function snapToColumns(Ee){var ze,Be,Ue=Ee.map((function(Ee,ze){return{x0:Ee.x0,index:ze}})).sort((function(Ee,ze){return Ee.x0-ze.x0})),We=[],$e=-1,Qe=-1/0;for(Qr=0;QrQe+Lt&&($e+=1,ze=rt.x0),Qe=rt.x0,We[$e]||(We[$e]=[]),We[$e].push(rt),Be=ze-rt.x0,rt.x0+=Be,rt.x1+=Be}return We}(rr=cn.nodes));We.update(cn)}return{circular:Lr,key:Be,trace:rt,guid:ft.randstr(),horizontal:xt,width:er,height:tr,nodePad:rt.node.pad,nodeLineColor:rt.node.line.color,nodeLineWidth:rt.node.line.width,linkLineColor:rt.link.line.color,linkLineWidth:rt.link.line.width,valueFormat:rt.valueformat,valueSuffix:rt.valuesuffix,textFont:rt.textfont,translateX:ct.x[0]*Ee.width+Ee.margin.l,translateY:Ee.height-ct.y[1]*Ee.height+Ee.margin.t,dragParallel:xt?tr:er,dragPerpendicular:xt?er:tr,arrangement:rt.arrangement,sankey:We,graph:cn,forceLayouts:{},interactionState:{dragInProgress:!1,hovered:!1}}}function linkModel(Ee,ze,Be){var Ue=$e(ze.color),We=ze.source.label+"|"+ze.target.label+"__"+Be;return ze.trace=Ee.trace,ze.curveNumber=Ee.trace.index,{circular:Ee.circular,key:We,traceId:Ee.key,pointNumber:ze.pointNumber,link:ze,tinyColorHue:Qe.tinyRGB(Ue),tinyColorAlpha:Ue.getAlpha(),linkPath:linkPath,linkLineColor:Ee.linkLineColor,linkLineWidth:Ee.linkLineWidth,valueFormat:Ee.valueFormat,valueSuffix:Ee.valueSuffix,sankey:Ee.sankey,parent:Ee,interactionState:Ee.interactionState,flow:ze.flow}}function linkPath(){return function path(Ee){if(Ee.link.circular)return function createCircularClosedPathString(Ee){var ze=Ee.width/2,Be=Ee.circularPathData;return"top"===Ee.circularLinkType?"M "+Be.targetX+" "+(Be.targetY+ze)+" L"+Be.rightInnerExtent+" "+(Be.targetY+ze)+"A"+(Be.rightLargeArcRadius+ze)+" "+(Be.rightSmallArcRadius+ze)+" 0 0 1 "+(Be.rightFullExtent-ze)+" "+(Be.targetY-Be.rightSmallArcRadius)+"L"+(Be.rightFullExtent-ze)+" "+Be.verticalRightInnerExtent+"A"+(Be.rightLargeArcRadius+ze)+" "+(Be.rightLargeArcRadius+ze)+" 0 0 1 "+Be.rightInnerExtent+" "+(Be.verticalFullExtent-ze)+"L"+Be.leftInnerExtent+" "+(Be.verticalFullExtent-ze)+"A"+(Be.leftLargeArcRadius+ze)+" "+(Be.leftLargeArcRadius+ze)+" 0 0 1 "+(Be.leftFullExtent+ze)+" "+Be.verticalLeftInnerExtent+"L"+(Be.leftFullExtent+ze)+" "+(Be.sourceY-Be.leftSmallArcRadius)+"A"+(Be.leftLargeArcRadius+ze)+" "+(Be.leftSmallArcRadius+ze)+" 0 0 1 "+Be.leftInnerExtent+" "+(Be.sourceY+ze)+"L"+Be.sourceX+" "+(Be.sourceY+ze)+"L"+Be.sourceX+" "+(Be.sourceY-ze)+"L"+Be.leftInnerExtent+" "+(Be.sourceY-ze)+"A"+(Be.leftLargeArcRadius-ze)+" "+(Be.leftSmallArcRadius-ze)+" 0 0 0 "+(Be.leftFullExtent-ze)+" "+(Be.sourceY-Be.leftSmallArcRadius)+"L"+(Be.leftFullExtent-ze)+" "+Be.verticalLeftInnerExtent+"A"+(Be.leftLargeArcRadius-ze)+" "+(Be.leftLargeArcRadius-ze)+" 0 0 0 "+Be.leftInnerExtent+" "+(Be.verticalFullExtent+ze)+"L"+Be.rightInnerExtent+" "+(Be.verticalFullExtent+ze)+"A"+(Be.rightLargeArcRadius-ze)+" "+(Be.rightLargeArcRadius-ze)+" 0 0 0 "+(Be.rightFullExtent+ze)+" "+Be.verticalRightInnerExtent+"L"+(Be.rightFullExtent+ze)+" "+(Be.targetY-Be.rightSmallArcRadius)+"A"+(Be.rightLargeArcRadius-ze)+" "+(Be.rightSmallArcRadius-ze)+" 0 0 0 "+Be.rightInnerExtent+" "+(Be.targetY-ze)+"L"+Be.targetX+" "+(Be.targetY-ze)+"Z":"M "+Be.targetX+" "+(Be.targetY-ze)+" L"+Be.rightInnerExtent+" "+(Be.targetY-ze)+"A"+(Be.rightLargeArcRadius+ze)+" "+(Be.rightSmallArcRadius+ze)+" 0 0 0 "+(Be.rightFullExtent-ze)+" "+(Be.targetY+Be.rightSmallArcRadius)+"L"+(Be.rightFullExtent-ze)+" "+Be.verticalRightInnerExtent+"A"+(Be.rightLargeArcRadius+ze)+" "+(Be.rightLargeArcRadius+ze)+" 0 0 0 "+Be.rightInnerExtent+" "+(Be.verticalFullExtent+ze)+"L"+Be.leftInnerExtent+" "+(Be.verticalFullExtent+ze)+"A"+(Be.leftLargeArcRadius+ze)+" "+(Be.leftLargeArcRadius+ze)+" 0 0 0 "+(Be.leftFullExtent+ze)+" "+Be.verticalLeftInnerExtent+"L"+(Be.leftFullExtent+ze)+" "+(Be.sourceY+Be.leftSmallArcRadius)+"A"+(Be.leftLargeArcRadius+ze)+" "+(Be.leftSmallArcRadius+ze)+" 0 0 0 "+Be.leftInnerExtent+" "+(Be.sourceY-ze)+"L"+Be.sourceX+" "+(Be.sourceY-ze)+"L"+Be.sourceX+" "+(Be.sourceY+ze)+"L"+Be.leftInnerExtent+" "+(Be.sourceY+ze)+"A"+(Be.leftLargeArcRadius-ze)+" "+(Be.leftSmallArcRadius-ze)+" 0 0 1 "+(Be.leftFullExtent-ze)+" "+(Be.sourceY+Be.leftSmallArcRadius)+"L"+(Be.leftFullExtent-ze)+" "+Be.verticalLeftInnerExtent+"A"+(Be.leftLargeArcRadius-ze)+" "+(Be.leftLargeArcRadius-ze)+" 0 0 1 "+Be.leftInnerExtent+" "+(Be.verticalFullExtent-ze)+"L"+Be.rightInnerExtent+" "+(Be.verticalFullExtent-ze)+"A"+(Be.rightLargeArcRadius-ze)+" "+(Be.rightLargeArcRadius-ze)+" 0 0 1 "+(Be.rightFullExtent+ze)+" "+Be.verticalRightInnerExtent+"L"+(Be.rightFullExtent+ze)+" "+(Be.targetY+Be.rightSmallArcRadius)+"A"+(Be.rightLargeArcRadius-ze)+" "+(Be.rightSmallArcRadius-ze)+" 0 0 1 "+Be.rightInnerExtent+" "+(Be.targetY+ze)+"L"+Be.targetX+" "+(Be.targetY+ze)+"Z"}(Ee.link);var ze=Ee.link.source.x1,Be=Ee.link.target.x0,Ue=er(ze,Be),We=Ue(.5),$e=Ue(.5),Qe=Ee.link.y0-Ee.link.width/2,rt=Ee.link.y0+Ee.link.width/2,it=Ee.link.y1-Ee.link.width/2,at=Ee.link.y1+Ee.link.width/2;return"M"+ze+","+Qe+"C"+We+","+Qe+" "+$e+","+it+" "+Be+","+it+"L"+Be+","+at+"C"+$e+","+at+" "+We+","+rt+" "+ze+","+rt+"Z"}}function nodeModel(Ee,ze){var Be=$e(ze.color),We=Ue.nodePadAcross,rt=Ee.nodePad/2;ze.dx=ze.x1-ze.x0,ze.dy=ze.y1-ze.y0;var it=ze.dx,at=Math.max(.5,ze.dy),ct="node_"+ze.pointNumber;return ze.group&&(ct=ft.randstr()),ze.trace=Ee.trace,ze.curveNumber=Ee.trace.index,{index:ze.pointNumber,key:ct,partOfGroup:ze.partOfGroup||!1,group:ze.group,traceId:Ee.key,trace:Ee.trace,node:ze,nodePad:Ee.nodePad,nodeLineColor:Ee.nodeLineColor,nodeLineWidth:Ee.nodeLineWidth,textFont:Ee.textFont,size:Ee.horizontal?Ee.height:Ee.width,visibleWidth:Math.ceil(it),visibleHeight:at,zoneX:-We,zoneY:-rt,zoneWidth:it+2*We,zoneHeight:at+2*rt,labelY:Ee.horizontal?ze.dy/2+1:ze.dx/2+1,left:1===ze.originalLayer,sizeAcross:Ee.width,forceLayouts:Ee.forceLayouts,horizontal:Ee.horizontal,darkBackground:Be.getBrightness()<=128,tinyColorHue:Qe.tinyRGB(Be),tinyColorAlpha:Be.getAlpha(),valueFormat:Ee.valueFormat,valueSuffix:Ee.valueSuffix,sankey:Ee.sankey,graph:Ee.graph,arrangement:Ee.arrangement,uniqueNodeLabelPathId:[Ee.guid,Ee.key,ct].join("_"),interactionState:Ee.interactionState,figure:Ee}}function updateNodePositions(Ee){Ee.attr("transform",(function(Ee){return"translate("+Ee.node.x0.toFixed(3)+", "+Ee.node.y0.toFixed(3)+")"}))}function updateNodeShapes(Ee){Ee.call(updateNodePositions)}function updateShapes(Ee,ze){Ee.call(updateNodeShapes),ze.attr("d",linkPath())}function sizeNode(Ee){Ee.attr("width",(function(Ee){return Ee.node.x1-Ee.node.x0})).attr("height",(function(Ee){return Ee.visibleHeight}))}function salientEnough(Ee){return Ee.link.width>1||Ee.linkLineWidth>0}function sankeyTransform(Ee){return"translate("+Ee.translateX+","+Ee.translateY+")"+(Ee.horizontal?"matrix(1 0 0 1 0 0)":"matrix(0 1 1 0 0 0)")}function nodeCentering(Ee){return"translate("+(Ee.horizontal?0:Ee.labelY)+" "+(Ee.horizontal?Ee.labelY:0)+")"}function textGuidePath(Ee){return We.svg.line()([[Ee.horizontal?Ee.left?-Ee.sizeAcross:Ee.visibleWidth+Ue.nodeTextOffsetHorizontal:Ue.nodeTextOffsetHorizontal,0],[Ee.horizontal?Ee.left?-Ue.nodeTextOffsetHorizontal:Ee.sizeAcross:Ee.visibleHeight-Ue.nodeTextOffsetHorizontal,0]])}function sankeyInverseTransform(Ee){return Ee.horizontal?"matrix(1 0 0 1 0 0)":"matrix(0 1 1 0 0 0)"}function textFlip(Ee){return Ee.horizontal?"scale(1 1)":"scale(-1 1)"}function nodeTextColor(Ee){return Ee.darkBackground&&!Ee.horizontal?"rgb(255,255,255)":"rgb(0,0,0)"}function nodeTextOffset(Ee){return Ee.horizontal&&Ee.left?"100%":"0%"}function attachPointerEvents(Ee,ze,Be){Ee.on(".basic",null).on("mouseover.basic",(function(Ee){Ee.interactionState.dragInProgress||Ee.partOfGroup||(Be.hover(this,Ee,ze),Ee.interactionState.hovered=[this,Ee])})).on("mousemove.basic",(function(Ee){Ee.interactionState.dragInProgress||Ee.partOfGroup||(Be.follow(this,Ee),Ee.interactionState.hovered=[this,Ee])})).on("mouseout.basic",(function(Ee){Ee.interactionState.dragInProgress||Ee.partOfGroup||(Be.unhover(this,Ee,ze),Ee.interactionState.hovered=!1)})).on("click.basic",(function(Ee){Ee.interactionState.hovered&&(Be.unhover(this,Ee,ze),Ee.interactionState.hovered=!1),Ee.interactionState.dragInProgress||Ee.partOfGroup||Be.select(this,Ee,ze)}))}function attachDragHandler(Ee,ze,Be,$e){var Qe=We.behavior.drag().origin((function(Ee){return{x:Ee.node.x0+Ee.visibleWidth/2,y:Ee.node.y0+Ee.visibleHeight/2}})).on("dragstart",(function(We){if("fixed"!==We.arrangement&&(ft.ensureSingle($e._fullLayout._infolayer,"g","dragcover",(function(Ee){$e._fullLayout._dragCover=Ee})),ft.raiseToTop(this),We.interactionState.dragInProgress=We.node,saveCurrentDragPosition(We.node),We.interactionState.hovered&&(Be.nodeEvents.unhover.apply(0,We.interactionState.hovered),We.interactionState.hovered=!1),"snap"===We.arrangement)){var Qe=We.traceId+"|"+We.key;We.forceLayouts[Qe]?We.forceLayouts[Qe].alpha(1):function attachForce(Ee,ze,Be,We){!function switchToForceFormat(Ee){for(var ze=0;ze0&&We.forceLayouts[ze].alpha(0)}}(0,ze,$e,Be)).stop()}(0,Qe,We),function startForce(Ee,ze,Be,We,$e){window.requestAnimationFrame((function faster(){var Qe;for(Qe=0;Qe0)window.requestAnimationFrame(faster);else{var rt=Be.node.originalX;Be.node.x0=rt-Be.visibleWidth/2,Be.node.x1=rt+Be.visibleWidth/2,persistFinalNodePositions(Be,$e)}}))}(Ee,ze,We,Qe,$e)}})).on("drag",(function(Be){if("fixed"!==Be.arrangement){var Ue=We.event.x,$e=We.event.y;"snap"===Be.arrangement?(Be.node.x0=Ue-Be.visibleWidth/2,Be.node.x1=Ue+Be.visibleWidth/2,Be.node.y0=$e-Be.visibleHeight/2,Be.node.y1=$e+Be.visibleHeight/2):("freeform"===Be.arrangement&&(Be.node.x0=Ue-Be.visibleWidth/2,Be.node.x1=Ue+Be.visibleWidth/2),$e=Math.max(0,Math.min(Be.size-Be.visibleHeight/2,$e)),Be.node.y0=$e-Be.visibleHeight/2,Be.node.y1=$e+Be.visibleHeight/2),saveCurrentDragPosition(Be.node),"snap"!==Be.arrangement&&(Be.sankey.update(Be.graph),updateShapes(Ee.filter(sameLayer(Be)),ze))}})).on("dragend",(function(Ee){if("fixed"!==Ee.arrangement){Ee.interactionState.dragInProgress=!1;for(var ze=0;ze5?Ee.node.label:""})).attr("text-anchor",(function(Ee){return Ee.horizontal&&Ee.left?"end":"start"})),dn.transition().ease(Ue.ease).duration(Ue.duration).attr("startOffset",nodeTextOffset).style("fill",nodeTextColor)}},f60e:function(Ee,ze,Be){"use strict";var Ue=Be("7bdf"),We=Be("96ae"),$e=Math.max;Ee.exports=function(Ee,ze){var Be,Qe,rt,it=$e(arguments.length,2);for(Ee=Object(We(Ee)),rt=function(Ue){try{Ee[Ue]=ze[Ue]}catch(Ee){Be||(Be=Ee)}},Qe=1;Qe=kMaxLength())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+kMaxLength().toString(16)+" bytes");return 0|Ee}function byteLength(Ee,ze){if(Buffer.isBuffer(Ee))return Ee.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(Ee)||Ee instanceof ArrayBuffer))return Ee.byteLength;"string"!=typeof Ee&&(Ee=""+Ee);var Be=Ee.length;if(0===Be)return 0;for(var Ue=!1;;)switch(ze){case"ascii":case"latin1":case"binary":return Be;case"utf8":case"utf-8":case void 0:return utf8ToBytes(Ee).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*Be;case"hex":return Be>>>1;case"base64":return base64ToBytes(Ee).length;default:if(Ue)return utf8ToBytes(Ee).length;ze=(""+ze).toLowerCase(),Ue=!0}}function slowToString(Ee,ze,Be){var Ue=!1;if((void 0===ze||ze<0)&&(ze=0),ze>this.length)return"";if((void 0===Be||Be>this.length)&&(Be=this.length),Be<=0)return"";if((Be>>>=0)<=(ze>>>=0))return"";for(Ee||(Ee="utf8");;)switch(Ee){case"hex":return hexSlice(this,ze,Be);case"utf8":case"utf-8":return utf8Slice(this,ze,Be);case"ascii":return asciiSlice(this,ze,Be);case"latin1":case"binary":return latin1Slice(this,ze,Be);case"base64":return base64Slice(this,ze,Be);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return utf16leSlice(this,ze,Be);default:if(Ue)throw new TypeError("Unknown encoding: "+Ee);Ee=(Ee+"").toLowerCase(),Ue=!0}}function swap(Ee,ze,Be){var Ue=Ee[ze];Ee[ze]=Ee[Be],Ee[Be]=Ue}function bidirectionalIndexOf(Ee,ze,Be,Ue,We){if(0===Ee.length)return-1;if("string"==typeof Be?(Ue=Be,Be=0):Be>2147483647?Be=2147483647:Be<-2147483648&&(Be=-2147483648),Be=+Be,isNaN(Be)&&(Be=We?0:Ee.length-1),Be<0&&(Be=Ee.length+Be),Be>=Ee.length){if(We)return-1;Be=Ee.length-1}else if(Be<0){if(!We)return-1;Be=0}if("string"==typeof ze&&(ze=Buffer.from(ze,Ue)),Buffer.isBuffer(ze))return 0===ze.length?-1:arrayIndexOf(Ee,ze,Be,Ue,We);if("number"==typeof ze)return ze&=255,Buffer.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?We?Uint8Array.prototype.indexOf.call(Ee,ze,Be):Uint8Array.prototype.lastIndexOf.call(Ee,ze,Be):arrayIndexOf(Ee,[ze],Be,Ue,We);throw new TypeError("val must be string, number or Buffer")}function arrayIndexOf(Ee,ze,Be,Ue,We){var $e,Qe=1,rt=Ee.length,it=ze.length;if(void 0!==Ue&&("ucs2"===(Ue=String(Ue).toLowerCase())||"ucs-2"===Ue||"utf16le"===Ue||"utf-16le"===Ue)){if(Ee.length<2||ze.length<2)return-1;Qe=2,rt/=2,it/=2,Be/=2}function read(Ee,ze){return 1===Qe?Ee[ze]:Ee.readUInt16BE(ze*Qe)}if(We){var at=-1;for($e=Be;$ert&&(Be=rt-it),$e=Be;$e>=0;$e--){for(var ct=!0,ft=0;ftWe&&(Ue=We):Ue=We;var $e=ze.length;if($e%2!=0)throw new TypeError("Invalid hex string");Ue>$e/2&&(Ue=$e/2);for(var Qe=0;Qe>8,We=Be%256,$e.push(We),$e.push(Ue);return $e}(ze,Ee.length-Be),Ee,Be,Ue)}function base64Slice(Ee,ze,Be){return 0===ze&&Be===Ee.length?Ue.fromByteArray(Ee):Ue.fromByteArray(Ee.slice(ze,Be))}function utf8Slice(Ee,ze,Be){Be=Math.min(Ee.length,Be);for(var Ue=[],We=ze;We239?4:at>223?3:at>191?2:1;if(We+ft<=Be)switch(ft){case 1:at<128&&(ct=at);break;case 2:128==(192&($e=Ee[We+1]))&&(it=(31&at)<<6|63&$e)>127&&(ct=it);break;case 3:$e=Ee[We+1],Qe=Ee[We+2],128==(192&$e)&&128==(192&Qe)&&(it=(15&at)<<12|(63&$e)<<6|63&Qe)>2047&&(it<55296||it>57343)&&(ct=it);break;case 4:$e=Ee[We+1],Qe=Ee[We+2],rt=Ee[We+3],128==(192&$e)&&128==(192&Qe)&&128==(192&rt)&&(it=(15&at)<<18|(63&$e)<<12|(63&Qe)<<6|63&rt)>65535&&it<1114112&&(ct=it)}null===ct?(ct=65533,ft=1):ct>65535&&(ct-=65536,Ue.push(ct>>>10&1023|55296),ct=56320|1023&ct),Ue.push(ct),We+=ft}return function decodeCodePointsArray(Ee){var ze=Ee.length;if(ze<=4096)return String.fromCharCode.apply(String,Ee);var Be="",Ue=0;for(;Ue0&&(Ee=this.toString("hex",0,Be).match(/.{2}/g).join(" "),this.length>Be&&(Ee+=" ... ")),""},Buffer.prototype.compare=function compare(Ee,ze,Be,Ue,We){if(!Buffer.isBuffer(Ee))throw new TypeError("Argument must be a Buffer");if(void 0===ze&&(ze=0),void 0===Be&&(Be=Ee?Ee.length:0),void 0===Ue&&(Ue=0),void 0===We&&(We=this.length),ze<0||Be>Ee.length||Ue<0||We>this.length)throw new RangeError("out of range index");if(Ue>=We&&ze>=Be)return 0;if(Ue>=We)return-1;if(ze>=Be)return 1;if(this===Ee)return 0;for(var $e=(We>>>=0)-(Ue>>>=0),Qe=(Be>>>=0)-(ze>>>=0),rt=Math.min($e,Qe),it=this.slice(Ue,We),at=Ee.slice(ze,Be),ct=0;ctWe)&&(Be=We),Ee.length>0&&(Be<0||ze<0)||ze>this.length)throw new RangeError("Attempt to write outside buffer bounds");Ue||(Ue="utf8");for(var $e=!1;;)switch(Ue){case"hex":return hexWrite(this,Ee,ze,Be);case"utf8":case"utf-8":return utf8Write(this,Ee,ze,Be);case"ascii":return asciiWrite(this,Ee,ze,Be);case"latin1":case"binary":return latin1Write(this,Ee,ze,Be);case"base64":return base64Write(this,Ee,ze,Be);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ucs2Write(this,Ee,ze,Be);default:if($e)throw new TypeError("Unknown encoding: "+Ue);Ue=(""+Ue).toLowerCase(),$e=!0}},Buffer.prototype.toJSON=function toJSON(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function asciiSlice(Ee,ze,Be){var Ue="";Be=Math.min(Ee.length,Be);for(var We=ze;WeUe)&&(Be=Ue);for(var We="",$e=ze;$eBe)throw new RangeError("Trying to access beyond buffer length")}function checkInt(Ee,ze,Be,Ue,We,$e){if(!Buffer.isBuffer(Ee))throw new TypeError('"buffer" argument must be a Buffer instance');if(ze>We||ze<$e)throw new RangeError('"value" argument is out of bounds');if(Be+Ue>Ee.length)throw new RangeError("Index out of range")}function objectWriteUInt16(Ee,ze,Be,Ue){ze<0&&(ze=65535+ze+1);for(var We=0,$e=Math.min(Ee.length-Be,2);We<$e;++We)Ee[Be+We]=(ze&255<<8*(Ue?We:1-We))>>>8*(Ue?We:1-We)}function objectWriteUInt32(Ee,ze,Be,Ue){ze<0&&(ze=4294967295+ze+1);for(var We=0,$e=Math.min(Ee.length-Be,4);We<$e;++We)Ee[Be+We]=ze>>>8*(Ue?We:3-We)&255}function checkIEEE754(Ee,ze,Be,Ue,We,$e){if(Be+Ue>Ee.length)throw new RangeError("Index out of range");if(Be<0)throw new RangeError("Index out of range")}function writeFloat(Ee,ze,Be,Ue,$e){return $e||checkIEEE754(Ee,0,Be,4),We.write(Ee,ze,Be,Ue,23,4),Be+4}function writeDouble(Ee,ze,Be,Ue,$e){return $e||checkIEEE754(Ee,0,Be,8),We.write(Ee,ze,Be,Ue,52,8),Be+8}Buffer.prototype.slice=function slice(Ee,ze){var Be,Ue=this.length;if((Ee=~~Ee)<0?(Ee+=Ue)<0&&(Ee=0):Ee>Ue&&(Ee=Ue),(ze=void 0===ze?Ue:~~ze)<0?(ze+=Ue)<0&&(ze=0):ze>Ue&&(ze=Ue),ze0&&(We*=256);)Ue+=this[Ee+--ze]*We;return Ue},Buffer.prototype.readUInt8=function readUInt8(Ee,ze){return ze||checkOffset(Ee,1,this.length),this[Ee]},Buffer.prototype.readUInt16LE=function readUInt16LE(Ee,ze){return ze||checkOffset(Ee,2,this.length),this[Ee]|this[Ee+1]<<8},Buffer.prototype.readUInt16BE=function readUInt16BE(Ee,ze){return ze||checkOffset(Ee,2,this.length),this[Ee]<<8|this[Ee+1]},Buffer.prototype.readUInt32LE=function readUInt32LE(Ee,ze){return ze||checkOffset(Ee,4,this.length),(this[Ee]|this[Ee+1]<<8|this[Ee+2]<<16)+16777216*this[Ee+3]},Buffer.prototype.readUInt32BE=function readUInt32BE(Ee,ze){return ze||checkOffset(Ee,4,this.length),16777216*this[Ee]+(this[Ee+1]<<16|this[Ee+2]<<8|this[Ee+3])},Buffer.prototype.readIntLE=function readIntLE(Ee,ze,Be){Ee|=0,ze|=0,Be||checkOffset(Ee,ze,this.length);for(var Ue=this[Ee],We=1,$e=0;++$e=(We*=128)&&(Ue-=Math.pow(2,8*ze)),Ue},Buffer.prototype.readIntBE=function readIntBE(Ee,ze,Be){Ee|=0,ze|=0,Be||checkOffset(Ee,ze,this.length);for(var Ue=ze,We=1,$e=this[Ee+--Ue];Ue>0&&(We*=256);)$e+=this[Ee+--Ue]*We;return $e>=(We*=128)&&($e-=Math.pow(2,8*ze)),$e},Buffer.prototype.readInt8=function readInt8(Ee,ze){return ze||checkOffset(Ee,1,this.length),128&this[Ee]?-1*(255-this[Ee]+1):this[Ee]},Buffer.prototype.readInt16LE=function readInt16LE(Ee,ze){ze||checkOffset(Ee,2,this.length);var Be=this[Ee]|this[Ee+1]<<8;return 32768&Be?4294901760|Be:Be},Buffer.prototype.readInt16BE=function readInt16BE(Ee,ze){ze||checkOffset(Ee,2,this.length);var Be=this[Ee+1]|this[Ee]<<8;return 32768&Be?4294901760|Be:Be},Buffer.prototype.readInt32LE=function readInt32LE(Ee,ze){return ze||checkOffset(Ee,4,this.length),this[Ee]|this[Ee+1]<<8|this[Ee+2]<<16|this[Ee+3]<<24},Buffer.prototype.readInt32BE=function readInt32BE(Ee,ze){return ze||checkOffset(Ee,4,this.length),this[Ee]<<24|this[Ee+1]<<16|this[Ee+2]<<8|this[Ee+3]},Buffer.prototype.readFloatLE=function readFloatLE(Ee,ze){return ze||checkOffset(Ee,4,this.length),We.read(this,Ee,!0,23,4)},Buffer.prototype.readFloatBE=function readFloatBE(Ee,ze){return ze||checkOffset(Ee,4,this.length),We.read(this,Ee,!1,23,4)},Buffer.prototype.readDoubleLE=function readDoubleLE(Ee,ze){return ze||checkOffset(Ee,8,this.length),We.read(this,Ee,!0,52,8)},Buffer.prototype.readDoubleBE=function readDoubleBE(Ee,ze){return ze||checkOffset(Ee,8,this.length),We.read(this,Ee,!1,52,8)},Buffer.prototype.writeUIntLE=function writeUIntLE(Ee,ze,Be,Ue){(Ee=+Ee,ze|=0,Be|=0,Ue)||checkInt(this,Ee,ze,Be,Math.pow(2,8*Be)-1,0);var We=1,$e=0;for(this[ze]=255&Ee;++$e=0&&($e*=256);)this[ze+We]=Ee/$e&255;return ze+Be},Buffer.prototype.writeUInt8=function writeUInt8(Ee,ze,Be){return Ee=+Ee,ze|=0,Be||checkInt(this,Ee,ze,1,255,0),Buffer.TYPED_ARRAY_SUPPORT||(Ee=Math.floor(Ee)),this[ze]=255&Ee,ze+1},Buffer.prototype.writeUInt16LE=function writeUInt16LE(Ee,ze,Be){return Ee=+Ee,ze|=0,Be||checkInt(this,Ee,ze,2,65535,0),Buffer.TYPED_ARRAY_SUPPORT?(this[ze]=255&Ee,this[ze+1]=Ee>>>8):objectWriteUInt16(this,Ee,ze,!0),ze+2},Buffer.prototype.writeUInt16BE=function writeUInt16BE(Ee,ze,Be){return Ee=+Ee,ze|=0,Be||checkInt(this,Ee,ze,2,65535,0),Buffer.TYPED_ARRAY_SUPPORT?(this[ze]=Ee>>>8,this[ze+1]=255&Ee):objectWriteUInt16(this,Ee,ze,!1),ze+2},Buffer.prototype.writeUInt32LE=function writeUInt32LE(Ee,ze,Be){return Ee=+Ee,ze|=0,Be||checkInt(this,Ee,ze,4,4294967295,0),Buffer.TYPED_ARRAY_SUPPORT?(this[ze+3]=Ee>>>24,this[ze+2]=Ee>>>16,this[ze+1]=Ee>>>8,this[ze]=255&Ee):objectWriteUInt32(this,Ee,ze,!0),ze+4},Buffer.prototype.writeUInt32BE=function writeUInt32BE(Ee,ze,Be){return Ee=+Ee,ze|=0,Be||checkInt(this,Ee,ze,4,4294967295,0),Buffer.TYPED_ARRAY_SUPPORT?(this[ze]=Ee>>>24,this[ze+1]=Ee>>>16,this[ze+2]=Ee>>>8,this[ze+3]=255&Ee):objectWriteUInt32(this,Ee,ze,!1),ze+4},Buffer.prototype.writeIntLE=function writeIntLE(Ee,ze,Be,Ue){if(Ee=+Ee,ze|=0,!Ue){var We=Math.pow(2,8*Be-1);checkInt(this,Ee,ze,Be,We-1,-We)}var $e=0,Qe=1,rt=0;for(this[ze]=255&Ee;++$e>0)-rt&255;return ze+Be},Buffer.prototype.writeIntBE=function writeIntBE(Ee,ze,Be,Ue){if(Ee=+Ee,ze|=0,!Ue){var We=Math.pow(2,8*Be-1);checkInt(this,Ee,ze,Be,We-1,-We)}var $e=Be-1,Qe=1,rt=0;for(this[ze+$e]=255&Ee;--$e>=0&&(Qe*=256);)Ee<0&&0===rt&&0!==this[ze+$e+1]&&(rt=1),this[ze+$e]=(Ee/Qe>>0)-rt&255;return ze+Be},Buffer.prototype.writeInt8=function writeInt8(Ee,ze,Be){return Ee=+Ee,ze|=0,Be||checkInt(this,Ee,ze,1,127,-128),Buffer.TYPED_ARRAY_SUPPORT||(Ee=Math.floor(Ee)),Ee<0&&(Ee=255+Ee+1),this[ze]=255&Ee,ze+1},Buffer.prototype.writeInt16LE=function writeInt16LE(Ee,ze,Be){return Ee=+Ee,ze|=0,Be||checkInt(this,Ee,ze,2,32767,-32768),Buffer.TYPED_ARRAY_SUPPORT?(this[ze]=255&Ee,this[ze+1]=Ee>>>8):objectWriteUInt16(this,Ee,ze,!0),ze+2},Buffer.prototype.writeInt16BE=function writeInt16BE(Ee,ze,Be){return Ee=+Ee,ze|=0,Be||checkInt(this,Ee,ze,2,32767,-32768),Buffer.TYPED_ARRAY_SUPPORT?(this[ze]=Ee>>>8,this[ze+1]=255&Ee):objectWriteUInt16(this,Ee,ze,!1),ze+2},Buffer.prototype.writeInt32LE=function writeInt32LE(Ee,ze,Be){return Ee=+Ee,ze|=0,Be||checkInt(this,Ee,ze,4,2147483647,-2147483648),Buffer.TYPED_ARRAY_SUPPORT?(this[ze]=255&Ee,this[ze+1]=Ee>>>8,this[ze+2]=Ee>>>16,this[ze+3]=Ee>>>24):objectWriteUInt32(this,Ee,ze,!0),ze+4},Buffer.prototype.writeInt32BE=function writeInt32BE(Ee,ze,Be){return Ee=+Ee,ze|=0,Be||checkInt(this,Ee,ze,4,2147483647,-2147483648),Ee<0&&(Ee=4294967295+Ee+1),Buffer.TYPED_ARRAY_SUPPORT?(this[ze]=Ee>>>24,this[ze+1]=Ee>>>16,this[ze+2]=Ee>>>8,this[ze+3]=255&Ee):objectWriteUInt32(this,Ee,ze,!1),ze+4},Buffer.prototype.writeFloatLE=function writeFloatLE(Ee,ze,Be){return writeFloat(this,Ee,ze,!0,Be)},Buffer.prototype.writeFloatBE=function writeFloatBE(Ee,ze,Be){return writeFloat(this,Ee,ze,!1,Be)},Buffer.prototype.writeDoubleLE=function writeDoubleLE(Ee,ze,Be){return writeDouble(this,Ee,ze,!0,Be)},Buffer.prototype.writeDoubleBE=function writeDoubleBE(Ee,ze,Be){return writeDouble(this,Ee,ze,!1,Be)},Buffer.prototype.copy=function copy(Ee,ze,Be,Ue){if(Be||(Be=0),Ue||0===Ue||(Ue=this.length),ze>=Ee.length&&(ze=Ee.length),ze||(ze=0),Ue>0&&Ue=this.length)throw new RangeError("sourceStart out of bounds");if(Ue<0)throw new RangeError("sourceEnd out of bounds");Ue>this.length&&(Ue=this.length),Ee.length-ze=0;--We)Ee[We+ze]=this[We+Be];else if($e<1e3||!Buffer.TYPED_ARRAY_SUPPORT)for(We=0;We<$e;++We)Ee[We+ze]=this[We+Be];else Uint8Array.prototype.set.call(Ee,this.subarray(Be,Be+$e),ze);return $e},Buffer.prototype.fill=function fill(Ee,ze,Be,Ue){if("string"==typeof Ee){if("string"==typeof ze?(Ue=ze,ze=0,Be=this.length):"string"==typeof Be&&(Ue=Be,Be=this.length),1===Ee.length){var We=Ee.charCodeAt(0);We<256&&(Ee=We)}if(void 0!==Ue&&"string"!=typeof Ue)throw new TypeError("encoding must be a string");if("string"==typeof Ue&&!Buffer.isEncoding(Ue))throw new TypeError("Unknown encoding: "+Ue)}else"number"==typeof Ee&&(Ee&=255);if(ze<0||this.length>>=0,Be=void 0===Be?this.length:Be>>>0,Ee||(Ee=0),"number"==typeof Ee)for($e=ze;$e55295&&Be<57344){if(!We){if(Be>56319){(ze-=3)>-1&&$e.push(239,191,189);continue}if(Qe+1===Ue){(ze-=3)>-1&&$e.push(239,191,189);continue}We=Be;continue}if(Be<56320){(ze-=3)>-1&&$e.push(239,191,189),We=Be;continue}Be=65536+(We-55296<<10|Be-56320)}else We&&(ze-=3)>-1&&$e.push(239,191,189);if(We=null,Be<128){if((ze-=1)<0)break;$e.push(Be)}else if(Be<2048){if((ze-=2)<0)break;$e.push(Be>>6|192,63&Be|128)}else if(Be<65536){if((ze-=3)<0)break;$e.push(Be>>12|224,Be>>6&63|128,63&Be|128)}else{if(!(Be<1114112))throw new Error("Invalid code point");if((ze-=4)<0)break;$e.push(Be>>18|240,Be>>12&63|128,Be>>6&63|128,63&Be|128)}}return $e}function base64ToBytes(Ee){return Ue.toByteArray(function base64clean(Ee){if((Ee=function stringtrim(Ee){return Ee.trim?Ee.trim():Ee.replace(/^\s+|\s+$/g,"")}(Ee).replace(Qe,"")).length<2)return"";for(;Ee.length%4!=0;)Ee+="=";return Ee}(Ee))}function blitBuffer(Ee,ze,Be,Ue){for(var We=0;We=ze.length||We>=Ee.length);++We)ze[We+Be]=Ee[We];return We}}).call(this,Be("c8ba"))},b64b:function(Ee,ze,Be){var Ue=Be("23e7"),We=Be("7b0b"),$e=Be("df75");Ue({target:"Object",stat:!0,forced:Be("d039")((function(){$e(1)}))},{keys:function keys(Ee){return $e(We(Ee))}})},b68b:function(Ee,ze,Be){"use strict";var Ue=Be("ec20").dot,We=Be("e806").BADNUM,$e=Ee.exports={};$e.tester=function tester(Ee){var ze,Be=Ee.slice(),Ue=Be[0][0],$e=Ue,Qe=Be[0][1],rt=Qe;for(Be.push(Be[0]),ze=1;ze$e||at===We||atrt)&&(!ze||!it(Ee))}:function contains(Ee,ze){var it=Ee[0],at=Ee[1];if(it===We||it$e||at===We||atrt)return!1;var ct,ft,xt,kt,Lt,Ut=Be.length,er=Be[0][0],tr=Be[0][1],rr=0;for(ct=1;ctMath.max(ft,er)||at>Math.max(xt,tr)))if(atct||Math.abs(Ue(Qe,xt))>We)return!0;return!1},$e.filter=function filter(Ee,ze){var Be=[Ee[0]],Ue=0,We=0;function addPt(Qe){Ee.push(Qe);var rt=Be.length,it=Ue;Be.splice(We+1);for(var at=it+1;at1&&addPt(Ee.pop());return{addPt:addPt,raw:Ee,filtered:Be}}},b6de:function(Ee,ze,Be){"use strict";var Ue=Be("bb71");ze.name="treemap",ze.plot=function(Ee,Be,We,$e){Ue.plotBasePlot(ze.name,Ee,Be,We,$e)},ze.clean=function(Ee,Be,We,$e){Ue.cleanBasePlot(ze.name,Ee,Be,We,$e)}},b6f7:function(Ee,ze,Be){"use strict";var Ue=Be("371e"),We=Be("fc26"),$e=Be("4183"),Qe=Be("6b50");Ee.exports=function supplyDefaults(Ee,ze,Be,rt){function coerce(Be,Ue){return We.coerce(Ee,ze,Qe,Be,Ue)}function readComponents(Ee){var ze=Ee.map((function(Ee){var ze=coerce(Ee);return ze&&We.isArrayOrTypedArray(ze)?ze:null}));return ze.every((function(Ee){return Ee&&Ee.length===ze[0].length}))&&ze}readComponents(["x","y","z"])?(readComponents(["i","j","k"]),(!ze.i||ze.j&&ze.k)&&(!ze.j||ze.k&&ze.i)&&(!ze.k||ze.i&&ze.j)?(Ue.getComponentMethod("calendars","handleTraceDefaults")(Ee,ze,["x","y","z"],rt),["lighting.ambient","lighting.diffuse","lighting.specular","lighting.roughness","lighting.fresnel","lighting.vertexnormalsepsilon","lighting.facenormalsepsilon","lightposition.x","lightposition.y","lightposition.z","flatshading","alphahull","delaunayaxis","opacity"].forEach((function(Ee){coerce(Ee)})),coerce("contour.show")&&(coerce("contour.color"),coerce("contour.width")),"intensity"in Ee?(coerce("intensity"),coerce("intensitymode"),$e(Ee,ze,rt,coerce,{prefix:"",cLetter:"c"})):(ze.showscale=!1,"facecolor"in Ee?coerce("facecolor"):"vertexcolor"in Ee?coerce("vertexcolor"):coerce("color",Be)),coerce("text"),coerce("hovertext"),coerce("hovertemplate"),ze._length=null):ze.visible=!1):ze.visible=!1}},b707:function(Ee,ze,Be){"use strict";function compileSearch(Ee,ze,Be,Ue,We,$e){var Qe=["function ",Ee,"(a,l,h,",Ue.join(","),"){",$e?"":"var i=",Be?"l-1":"h+1",";while(l<=h){var m=(l+h)>>>1,x=a",We?".get(m)":"[m]"];return $e?ze.indexOf("c")<0?Qe.push(";if(x===y){return m}else if(x<=y){"):Qe.push(";var p=c(x,y);if(p===0){return m}else if(p<=0){"):Qe.push(";if(",ze,"){i=m;"),Be?Qe.push("l=m+1}else{h=m-1}"):Qe.push("h=m-1}else{l=m+1}"),Qe.push("}"),$e?Qe.push("return -1};"):Qe.push("return i};"),Qe.join("")}function compileBoundsSearch(Ee,ze,Be,Ue){return new Function([compileSearch("A","x"+Ee+"y",ze,["y"],!1,Ue),compileSearch("B","x"+Ee+"y",ze,["y"],!0,Ue),compileSearch("P","c(x,y)"+Ee+"0",ze,["y","c"],!1,Ue),compileSearch("Q","c(x,y)"+Ee+"0",ze,["y","c"],!0,Ue),"function dispatchBsearch",Be,"(a,y,c,l,h){if(a.shape){if(typeof(c)==='function'){return Q(a,(l===undefined)?0:l|0,(h===undefined)?a.shape[0]-1:h|0,y,c)}else{return B(a,(c===undefined)?0:c|0,(l===undefined)?a.shape[0]-1:l|0,y)}}else{if(typeof(c)==='function'){return P(a,(l===undefined)?0:l|0,(h===undefined)?a.length-1:h|0,y,c)}else{return A(a,(c===undefined)?0:c|0,(l===undefined)?a.length-1:l|0,y)}}}return dispatchBsearch",Be].join(""))()}Ee.exports={ge:compileBoundsSearch(">=",!1,"GE"),gt:compileBoundsSearch(">",!1,"GT"),lt:compileBoundsSearch("<",!0,"LT"),le:compileBoundsSearch("<=",!0,"LE"),eq:compileBoundsSearch("-",!0,"EQ",!0)}},b727:function(Ee,ze,Be){var Ue=Be("0366"),We=Be("44ad"),$e=Be("7b0b"),Qe=Be("50c4"),rt=Be("65f0"),it=[].push,createMethod=function(Ee){var ze=1==Ee,Be=2==Ee,at=3==Ee,ct=4==Ee,ft=6==Ee,xt=5==Ee||ft;return function(kt,Lt,Ut,er){for(var tr,rr,ar=$e(kt),Lr=We(ar),Qr=Ue(Lt,Ut,3),on=Qe(Lr.length),sn=0,cn=er||rt,un=ze?cn(kt,on):Be?cn(kt,0):void 0;on>sn;sn++)if((xt||sn in Lr)&&(rr=Qr(tr=Lr[sn],sn,ar),Ee))if(ze)un[sn]=rr;else if(rr)switch(Ee){case 3:return!0;case 5:return tr;case 6:return sn;case 2:it.call(un,tr)}else if(ct)return!1;return ft?-1:at||ct?ct:un}};Ee.exports={forEach:createMethod(0),map:createMethod(1),filter:createMethod(2),some:createMethod(3),every:createMethod(4),find:createMethod(5),findIndex:createMethod(6)}},b73f:function(Ee,ze){Ee.exports=function rotateZ(Ee,ze,Be,Ue){var We=Be[0],$e=Be[1],Qe=ze[0]-We,rt=ze[1]-$e,it=Math.sin(Ue),at=Math.cos(Ue);return Ee[0]=We+Qe*at-rt*it,Ee[1]=$e+Qe*it+rt*at,Ee[2]=ze[2],Ee}},b778:function(Ee,ze,Be){"use strict";Ee.exports=function noop(){}},b791:function(Ee,ze,Be){"use strict";var Ue=Be("19b2"),We=Be("fc26"),$e=Be("c258"),Qe=Be("83d1"),rt=Be("2169").makeBlank,it=Be("0919");function convertOnSelect(Ee){var ze,Be=Ee[0].trace,Ue=Be._opts;if(Be.selectedpoints){for(var $e=Qe.makeSelectedPointStyleFns(Be),rt=0;rt1.0001)return null;Ut+=Lt[at]}if(Math.abs(Ut-1)>.001)return null;return[ct,interpolate(Ee,Lt),Lt]}},b83d:function(Ee,ze,Be){"use strict";var Ue=["d","ax","vv","rs","re","rb","ri","bs","be","bb","bi"];function bruteForcePlanner(Ee){var ze="bruteForce"+(Ee?"Full":"Partial"),Be=[],We=Ue.slice();Ee||We.splice(3,0,"fp");var $e=["function "+ze+"("+We.join()+"){"];function invoke(ze,We){var Qe=function generateBruteForce(Ee,ze,Be){var We="bruteForce"+(Ee?"Red":"Blue")+(ze?"Flip":"")+(Be?"Full":""),$e=["function ",We,"(",Ue.join(),"){","var ","es","=2*","d",";"],Qe="for(var i=rs,rp=es*rs;ibe-bs){"),Ee?(invoke(!0,!1),$e.push("}else{"),invoke(!1,!1)):($e.push("if(fp){"),invoke(!0,!0),$e.push("}else{"),invoke(!0,!1),$e.push("}}else{if(fp){"),invoke(!1,!0),$e.push("}else{"),invoke(!1,!1),$e.push("}")),$e.push("}}return "+ze);var Qe=Be.join("")+$e.join("");return new Function(Qe)()}ze.partial=bruteForcePlanner(!1),ze.full=bruteForcePlanner(!0)},b882:function(Ee,ze,Be){Ee.exports=function forEach(Ee,ze,Be,We,$e,Qe){var rt,it;ze||(ze=3);Be||(Be=0);it=We?Math.min(We*ze+Be,Ee.length):Ee.length;for(rt=Be;rt0){Be=Lt[Ue];break}return Be}function leastCommonMultiple(Ee,ze){if(!(Ee<1||ze<1)){for(var Be=getFactors(Ee),Ue=getFactors(ze),We=1,$e=0;$etr;)Be--,Be/=smallestDivisor(Be),++Be1?Ue:1},kt.refineCoords=function(Ee){for(var ze=this.dataScaleX,Be=this.dataScaleY,Ue=Ee[0].shape[0],Qe=Ee[0].shape[1],rt=0|Math.floor(Ee[0].shape[0]*ze+1),it=0|Math.floor(Ee[0].shape[1]*Be+1),at=1+Ue+1,ct=1+Qe+1,ft=We(new Float32Array(at*ct),[at,ct]),xt=0;xt0&&null!==this.contourStart[Ee]&&null!==this.contourEnd[Ee]&&this.contourEnd[Ee]>this.contourStart[Ee]))for(We[Ee]=!0,ze=this.contourStart[Ee];ze$e&&(this.minValues[ze]=$e),this.maxValues[ze]<$e&&(this.maxValues[ze]=$e));for(ze=0;ze<3;ze++)this.objectOffset[ze]=.5*(this.minValues[ze]+this.maxValues[ze]);for(ze=0;ze<3;ze++)for(Be=0;Be":return function(Ee){return d2cTarget(Ee)>Qe};case">=":return function(Ee){return d2cTarget(Ee)>=Qe};case"[]":return function(Ee){var ze=d2cTarget(Ee);return ze>=Qe[0]&&ze<=Qe[1]};case"()":return function(Ee){var ze=d2cTarget(Ee);return ze>Qe[0]&&ze=Qe[0]&&zeQe[0]&&ze<=Qe[1]};case"][":return function(Ee){var ze=d2cTarget(Ee);return ze<=Qe[0]||ze>=Qe[1]};case")(":return function(Ee){var ze=d2cTarget(Ee);return zeQe[1]};case"](":return function(Ee){var ze=d2cTarget(Ee);return ze<=Qe[0]||ze>Qe[1]};case")[":return function(Ee){var ze=d2cTarget(Ee);return ze=Qe[1]};case"{}":return function(Ee){return-1!==Qe.indexOf(d2cTarget(Ee))};case"}{":return function(Ee){return-1===Qe.indexOf(d2cTarget(Ee))}}}(Be,$e.getDataToCoordFunc(Ee,ze,rt,We),xt),ar={},Lr={},Qr=0;Lt?(er=function(Ee){ar[Ee.astr]=Ue.extendDeep([],Ee.get()),Ee.set(new Array(ft))},tr=function(Ee,ze){var Be=ar[Ee.astr][ze];Ee.get()[ze]=Be}):(er=function(Ee){ar[Ee.astr]=Ue.extendDeep([],Ee.get()),Ee.set([])},tr=function(Ee,ze){var Be=ar[Ee.astr][ze];Ee.get().push(Be)}),forAllAttrs(er);for(var on=Qe(ze.transforms,Be),sn=0;snWe._length&&(on=on.slice(0,We._length));var sn,cn=We.tickvals;function makeTickItem(Ee,ze){return{val:Ee,text:sn[ze]}}function sortTickItem(Ee,ze){return Ee.val-ze.val}if(Array.isArray(cn)&&cn.length){sn=We.ticktext,Array.isArray(sn)&&sn.length?sn.length>cn.length?sn=sn.slice(0,cn.length):cn.length>sn.length&&(cn=cn.slice(0,sn.length)):sn=cn.map(Ue.format(We.tickformat));for(var un=1;un=Be||it>=$e)return;var at=Ee.lineLayer.readPixel(rt,$e-1-it),ct=0!==at[3],ft=ct?at[2]+256*(at[1]+256*at[0]):null,xt={x:rt,y:it,clientX:ze.clientX,clientY:ze.clientY,dataIndex:Ee.model.key,curveNumber:ft};ft!==on&&(ct?We.hover(xt):We.unhover&&We.unhover(xt),on=ft)}})),Qr.style("opacity",(function(Ee){return Ee.pick?0:1})),ct.style("background","rgba(255, 255, 255, 0)");var sn=ct.selectAll("."+Ut.cn.parcoords).data(Lr,ft);sn.exit().remove(),sn.enter().append("g").classed(Ut.cn.parcoords,!0).style("shape-rendering","crispEdges").style("pointer-events","none"),sn.attr("transform",(function(Ee){return"translate("+Ee.model.translateX+","+Ee.model.translateY+")"}));var cn=sn.selectAll("."+Ut.cn.parcoordsControlView).data(xt,ft);cn.enter().append("g").classed(Ut.cn.parcoordsControlView,!0),cn.attr("transform",(function(Ee){return"translate("+Ee.model.pad.l+","+Ee.model.pad.t+")"}));var un=cn.selectAll("."+Ut.cn.yAxis).data((function(Ee){return Ee.dimensions}),ft);un.enter().append("g").classed(Ut.cn.yAxis,!0),cn.each((function(Ee){updatePanelLayout(un,Ee)})),Qr.each((function(Ee){if(Ee.viewModel){!Ee.lineLayer||We?Ee.lineLayer=tr(this,Ee):Ee.lineLayer.update(Ee),(Ee.key||0===Ee.key)&&(Ee.viewModel[Ee.key]=Ee.lineLayer);var ze=!Ee.context||We;Ee.lineLayer.render(Ee.viewModel.panels,ze)}})),un.attr("transform",(function(Ee){return"translate("+Ee.xScale(Ee.xIndex)+", 0)"})),un.call(Ue.behavior.drag().origin((function(Ee){return Ee})).on("drag",(function(Ee){var ze=Ee.parent;ar.linePickActive(!1),Ee.x=Math.max(-Ut.overdrag,Math.min(Ee.model.width+Ut.overdrag,Ue.event.x)),Ee.canvasX=Ee.x*Ee.model.canvasPixelRatio,un.sort((function(Ee,ze){return Ee.x-ze.x})).each((function(ze,Be){ze.xIndex=Be,ze.x=Ee===ze?ze.x:ze.xScale(ze.xIndex),ze.canvasX=ze.x*ze.model.canvasPixelRatio})),updatePanelLayout(un,ze),un.filter((function(ze){return 0!==Math.abs(Ee.xIndex-ze.xIndex)})).attr("transform",(function(Ee){return"translate("+Ee.xScale(Ee.xIndex)+", 0)"})),Ue.select(this).attr("transform","translate("+Ee.x+", 0)"),un.each((function(Be,Ue,We){We===Ee.parent.key&&(ze.dimensions[Ue]=Be)})),ze.contextLayer&&ze.contextLayer.render(ze.panels,!1,!someFiltersActive(ze)),ze.focusLayer.render&&ze.focusLayer.render(ze.panels)})).on("dragend",(function(Ee){var ze=Ee.parent;Ee.x=Ee.xScale(Ee.xIndex),Ee.canvasX=Ee.x*Ee.model.canvasPixelRatio,updatePanelLayout(un,ze),Ue.select(this).attr("transform",(function(Ee){return"translate("+Ee.x+", 0)"})),ze.contextLayer&&ze.contextLayer.render(ze.panels,!1,!someFiltersActive(ze)),ze.focusLayer&&ze.focusLayer.render(ze.panels),ze.pickLayer&&ze.pickLayer.render(ze.panels,!0),ar.linePickActive(!0),We&&We.axesMoved&&We.axesMoved(ze.key,ze.dimensions.map((function(Ee){return Ee.crossfilterDimensionIndex})))}))),un.exit().remove();var hn=un.selectAll("."+Ut.cn.axisOverlays).data(xt,ft);hn.enter().append("g").classed(Ut.cn.axisOverlays,!0),hn.selectAll("."+Ut.cn.axis).remove();var dn=hn.selectAll("."+Ut.cn.axis).data(xt,ft);dn.enter().append("g").classed(Ut.cn.axis,!0),dn.each((function(Ee){var ze=Ee.model.height/Ee.model.tickDistance,Be=Ee.domainScale,We=Be.domain();Ue.select(this).call(Ue.svg.axis().orient("left").tickSize(4).outerTickSize(2).ticks(ze,Ee.tickFormat).tickValues(Ee.ordinal?We:null).tickFormat((function(ze){return Lt.isOrdinal(Ee)?ze:linearFormat(Ee.model.dimensions[Ee.visibleIndex],ze)})).scale(Be)),it.font(dn.selectAll("text"),Ee.model.tickFont)})),dn.selectAll(".domain, .tick>line").attr("fill","none").attr("stroke","black").attr("stroke-opacity",.25).attr("stroke-width","1px"),dn.selectAll("text").style("text-shadow","1px 1px 1px #fff, -1px -1px 1px #fff, 1px -1px 1px #fff, -1px 1px 1px #fff").style("cursor","default").style("user-select","none");var vn=hn.selectAll("."+Ut.cn.axisHeading).data(xt,ft);vn.enter().append("g").classed(Ut.cn.axisHeading,!0);var yn=vn.selectAll("."+Ut.cn.axisTitle).data(xt,ft);yn.enter().append("text").classed(Ut.cn.axisTitle,!0).attr("text-anchor","middle").style("cursor","ew-resize").style("user-select","none").style("pointer-events","auto"),yn.text((function(Ee){return Ee.label})).each((function(ze){var Be=Ue.select(this);it.font(Be,ze.model.labelFont),rt.convertToTspans(Be,Ee)})).attr("transform",(function(Ee){var ze=calcTilt(Ee.model.labelAngle,Ee.model.labelSide),Be=Ut.axisTitleOffset;return(ze.dir>0?"":"translate(0,"+(2*Be+Ee.model.height)+")")+"rotate("+ze.degrees+")translate("+-Be*ze.dx+","+-Be*ze.dy+")"})).attr("text-anchor",(function(Ee){var ze=calcTilt(Ee.model.labelAngle,Ee.model.labelSide);return 2*Math.abs(ze.dx)>Math.abs(ze.dy)?ze.dir*ze.dx<0?"start":"end":"middle"}));var _n=hn.selectAll("."+Ut.cn.axisExtent).data(xt,ft);_n.enter().append("g").classed(Ut.cn.axisExtent,!0);var Mn=_n.selectAll("."+Ut.cn.axisExtentTop).data(xt,ft);Mn.enter().append("g").classed(Ut.cn.axisExtentTop,!0),Mn.attr("transform","translate(0,"+-Ut.axisExtentOffset+")");var Cn=Mn.selectAll("."+Ut.cn.axisExtentTopText).data(xt,ft);Cn.enter().append("text").classed(Ut.cn.axisExtentTopText,!0).call(styleExtentTexts),Cn.text((function(Ee){return extremeText(Ee,!0)})).each((function(Ee){it.font(Ue.select(this),Ee.model.rangeFont)}));var En=_n.selectAll("."+Ut.cn.axisExtentBottom).data(xt,ft);En.enter().append("g").classed(Ut.cn.axisExtentBottom,!0),En.attr("transform",(function(Ee){return"translate(0,"+(Ee.model.height+Ut.axisExtentOffset)+")"}));var Pn=En.selectAll("."+Ut.cn.axisExtentBottomText).data(xt,ft);Pn.enter().append("text").classed(Ut.cn.axisExtentBottomText,!0).attr("dy","0.75em").call(styleExtentTexts),Pn.text((function(Ee){return extremeText(Ee,!1)})).each((function(Ee){it.font(Ue.select(this),Ee.model.rangeFont)})),er.ensureAxisBrush(hn)}},baf5:function(Ee,ze,Be){"use strict";Ee.exports={scrollBarWidth:6,scrollBarMinHeight:20,scrollBarColor:"#808BA4",scrollBarMargin:4,scrollBarEnterAttrs:{rx:20,ry:3,width:0,height:0},titlePad:2,textGap:40,itemGap:5}},bb14:function(Ee,ze,Be){"use strict";var Ue=Be("fc26"),We=Ue._,$e=Be("0642"),Qe=Be("e806").BADNUM;function ptFunc(Ee,ze,Be,Ue){return{o:Ee,h:ze,l:Be,c:Ue}}function calcCommon(Ee,ze,Be,rt,it){for(var at=rt.makeCalcdata(ze,"open"),ct=rt.makeCalcdata(ze,"high"),ft=rt.makeCalcdata(ze,"low"),xt=rt.makeCalcdata(ze,"close"),kt=Array.isArray(ze.text),Lt=Array.isArray(ze.hovertext),Ut=!0,er=null,tr=[],rr=0;rrer):Ut=sn>Lr,er=sn;var cn=it(Lr,Qr,on,sn);cn.pos=ar,cn.yc=(Lr+sn)/2,cn.i=rr,cn.dir=Ut?"increasing":"decreasing",cn.x=cn.pos,cn.y=[on,Qr],kt&&(cn.tx=ze.text[rr]),Lt&&(cn.htx=ze.hovertext[rr]),tr.push(cn)}else tr.push({pos:ar,empty:!0})}return ze._extremes[rt._id]=$e.findExtremes(rt,Ue.concat(ft,ct),{padded:!0}),tr.length&&(tr[0].t={labels:{open:We(Ee,"open:")+" ",high:We(Ee,"high:")+" ",low:We(Ee,"low:")+" ",close:We(Ee,"close:")+" "}}),tr}Ee.exports={calc:function calc(Ee,ze){var Be=$e.getFromId(Ee,ze.xaxis),We=$e.getFromId(Ee,ze.yaxis),Qe=function convertTickWidth(Ee,ze,Be){var We=Be._minDiff;if(!We){var $e,Qe=Ee._fullData,rt=[];for(We=1/0,$e=0;$e=ze.width-20?($e["text-anchor"]="start",$e.x=5):($e["text-anchor"]="end",$e.x=ze._paper.attr("width")-7),Be.attr($e);var Qe=Be.select(".js-link-to-tool"),rt=Be.select(".js-link-spacer"),ct=Be.select(".js-sourcelinks");Ee._context.showSources&&Ee._context.showSources(Ee),Ee._context.showLink&&function positionPlayWithData(Ee,ze){ze.text("");var Be=ze.append("a").attr({"xlink:xlink:href":"#",class:"link--impt link--embedview","font-weight":"bold"}).text(Ee._context.linkText+" "+String.fromCharCode(187));if(Ee._context.sendData)Be.on("click",(function(){tr.sendDataToCloud(Ee)}));else{var Ue=window.location.pathname.split("/"),We=window.location.search;Be.attr({"xlink:xlink:show":"new","xlink:xlink:href":"/"+Ue[2].split(".")[0]+"/"+Ue[1]+We})}}(Ee,Qe),rt.text(Qe.text()&&ct.text()?" - ":"")}},tr.sendDataToCloud=function(Ee){Ee.emit("plotly_beforeexport");var ze=(window.PLOTLYENV||{}).BASE_URL||Ee._context.plotlyServerURL,Be=Ue.select(Ee).append("div").attr("id","hiddenform").style("display","none"),We=Be.append("form").attr({action:ze+"/external",method:"post",target:"_blank"});return We.append("input").attr({type:"text",name:"data"}).node().value=tr.graphJson(Ee,!1,"keepdata"),We.node().submit(),Be.remove(),Ee.emit("plotly_afterexport"),!1};var Lr=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],Qr=["year","month","dayMonth","dayMonthYear"];function getFormatObj(Ee,ze){var Be=Ee._context.locale,Ue=!1,We={};function includeFormat(Ee){for(var Be=!0,$e=0;$e1&&_n.length>1){for($e.getComponentMethod("grid","sizeDefaults")(at,rt),Qe=0;Qe15&&_n.length>15&&0===rt.shapes.length&&0===rt.images.length,rt._hasCartesian=rt._has("cartesian"),rt._hasGeo=rt._has("geo"),rt._hasGL3D=rt._has("gl3d"),rt._hasGL2D=rt._has("gl2d"),rt._hasTernary=rt._has("ternary"),rt._hasPie=rt._has("pie"),tr.linkSubplots(ft,rt,ct,We),tr.cleanPlot(ft,rt,ct,We),We._zoomlayer&&!Ee._dragging&&We._zoomlayer.selectAll(".select-outline").remove(),function fillMetaTextHelpers(Ee,ze){var Be,Ue=[];ze.meta&&(Be=ze._meta={meta:ze.meta,layout:{meta:ze.meta}});for(var We=0;We0){var ft=1-2*rt;Ue=Math.round(ft*Ue),$e=Math.round(ft*$e)}}var xt=tr.layoutAttributes.width.min,kt=tr.layoutAttributes.height.min;Ue1,Ut=!ze.height&&Math.abs(Be.height-$e)>1;(Ut||Lt)&&(Lt&&(Be.width=Ue),Ut&&(Be.height=$e)),Ee._initialAutoSize||(Ee._initialAutoSize={width:Ue,height:$e}),tr.sanitizeMargins(Be)},tr.supplyLayoutModuleDefaults=function(Ee,ze,Be,Ue){var We,Qe,rt,at=$e.componentsRegistry,ct=ze._basePlotModules,ft=$e.subplotsRegistry.cartesian;for(We in at)(rt=at[We]).includeBasePlot&&rt.includeBasePlot(Ee,ze);for(var xt in ct.length||ct.push(ft),ze._has("cartesian")&&($e.getComponentMethod("grid","contentDefaults")(Ee,ze),ft.finalizeSubplots(Ee,ze)),ze._subplots)ze._subplots[xt].sort(it.subplotSort);for(Qe=0;Qe.5*Ue.width&&(it.log("Margin push",ze,"is too big in x, dropping"),Be.l=Be.r=0),Be.b+Be.t>.5*Ue.height&&(it.log("Margin push",ze,"is too big in y, dropping"),Be.b=Be.t=0);var at=void 0!==Be.xl?Be.xl:Be.x,ct=void 0!==Be.xr?Be.xr:Be.x,ft=void 0!==Be.yt?Be.yt:Be.y,xt=void 0!==Be.yb?Be.yb:Be.y;We[ze]={l:{val:at,size:Be.l+Qe},r:{val:ct,size:Be.r+Qe},b:{val:xt,size:Be.b+Qe},t:{val:ft,size:Be.t+Qe}},$e[ze]=1}else delete We[ze],delete $e[ze];if(!Ue._replotting)return tr.doAutoMargin(Ee)}},tr.doAutoMargin=function(Ee){var ze=Ee._fullLayout;ze._size||(ze._size={}),initMargins(ze);var Be=ze._size,Ue=ze.margin,Qe=it.extendFlat({},Be),rt=Ue.l,at=Ue.r,ct=Ue.t,ft=Ue.b,xt=ze.width,kt=ze.height,Lt=ze._pushmargin,Ut=ze._pushmarginIds;if(!1!==ze.margin.autoexpand){for(var er in Lt)Ut[er]||delete Lt[er];for(var rr in Lt.base={l:{val:0,size:rt},r:{val:1,size:at},t:{val:1,size:ct},b:{val:0,size:ft}},Lt){var ar=Lt[rr].l||{},Lr=Lt[rr].b||{},Qr=ar.val,on=ar.size,sn=Lr.val,cn=Lr.size;for(var un in Lt){if(We(on)&&Lt[un].r){var hn=Lt[un].r.val,dn=Lt[un].r.size;if(hn>Qr){var vn=(on*hn+(dn-xt)*Qr)/(hn-Qr),yn=(dn*(1-Qr)+(on-xt)*(1-hn))/(hn-Qr);vn>=0&&yn>=0&&xt-(vn+yn)>0&&vn+yn>rt+at&&(rt=vn,at=yn)}}if(We(cn)&&Lt[un].t){var _n=Lt[un].t.val,Mn=Lt[un].t.size;if(_n>sn){var Cn=(cn*_n+(Mn-kt)*sn)/(_n-sn),En=(Mn*(1-sn)+(cn-kt)*(1-_n))/(_n-sn);Cn>=0&&En>=0&&kt-(En+Cn)>0&&Cn+En>ft+ct&&(ft=Cn,ct=En)}}}}}if(Be.l=Math.round(rt),Be.r=Math.round(at),Be.t=Math.round(ct),Be.b=Math.round(ft),Be.p=Math.round(Ue.pad),Be.w=Math.round(xt)-Be.l-Be.r,Be.h=Math.round(kt)-Be.t-Be.b,!ze._replotting&&tr.didMarginChange(Qe,Be)){"_redrawFromAutoMarginCount"in ze?ze._redrawFromAutoMarginCount++:ze._redrawFromAutoMarginCount=1;var Pn=3*(1+Object.keys(Ut).length);if(ze._redrawFromAutoMarginCount0&&(Ee._transitioningWithDuration=!0),Ee._transitionData._interruptCallbacks.push((function(){Ue=!0})),Be.redraw&&Ee._transitionData._interruptCallbacks.push((function(){return $e.call("redraw",Ee)})),Ee._transitionData._interruptCallbacks.push((function(){Ee.emit("plotly_transitioninterrupted",[])}));var Qe=0,rt=0;function makeCallback(){return Qe++,function(){rt++,Ue||rt!==Qe||function completeTransition(ze){if(!Ee._transitionData)return;return function flushCallbacks(Ee){if(Ee)for(;Ee.length;)Ee.shift()}(Ee._transitionData._interruptCallbacks),Promise.resolve().then((function(){if(Be.redraw)return $e.call("redraw",Ee)})).then((function(){Ee._transitioning=!1,Ee._transitioningWithDuration=!1,Ee.emit("plotly_transitioned",[])})).then(ze)}(We)}}Be.runFn(makeCallback),setTimeout(makeCallback())}))}],Qe=it.syncOrAsync(We,Ee);return Qe&&Qe.then||(Qe=Promise.resolve()),Qe.then((function(){return Ee}))}tr.didMarginChange=function(Ee,ze){for(var Be=0;Be1)return!0}return!1},tr.graphJson=function(Ee,ze,Be,Ue,We){(We&&ze&&!Ee._fullData||We&&!ze&&!Ee._fullLayout)&&tr.supplyDefaults(Ee);var $e=We?Ee._fullData:Ee.data,Qe=We?Ee._fullLayout:Ee.layout,rt=(Ee._transitionData||{})._frames;function stripObj(Ee){if("function"==typeof Ee)return null;if(it.isPlainObject(Ee)){var ze,Ue,We={};for(ze in Ee)if("function"!=typeof Ee[ze]&&-1===["_","["].indexOf(ze.charAt(0))){if("keepdata"===Be){if("src"===ze.substr(ze.length-3))continue}else if("keepstream"===Be){if("string"==typeof(Ue=Ee[ze+"src"])&&Ue.indexOf(":")>0&&!it.isPlainObject(Ee.stream))continue}else if("keepall"!==Be&&"string"==typeof(Ue=Ee[ze+"src"])&&Ue.indexOf(":")>0)continue;We[ze]=stripObj(Ee[ze])}return We}return Array.isArray(Ee)?Ee.map(stripObj):it.isTypedArray(Ee)?it.simpleMap(Ee,it.identity):it.isJSDate(Ee)?it.ms2DateTimeLocal(+Ee):Ee}var at={data:($e||[]).map((function(Ee){var Be=stripObj(Ee);return ze&&delete Be.fit,Be}))};return ze||(at.layout=stripObj(Qe)),Ee.framework&&Ee.framework.isPolar&&(at=Ee.framework.getConfig()),rt&&(at.frames=stripObj(rt)),"object"===Ue?at:JSON.stringify(at)},tr.modifyFrames=function(Ee,ze){var Be,Ue,We,$e=Ee._transitionData._frames,Qe=Ee._transitionData._frameHash;for(Be=0;Be=0;rt--)if(Qe[rt].enabled){Be._indexToPoints=Qe[rt]._indexToPoints;break}Ue&&Ue.calc&&($e=Ue.calc(Ee,Be))}Array.isArray($e)&&$e[0]||($e=[{x:ct,y:ct}]),$e[0].t||($e[0].t={}),$e[0].trace=Be,Lt[ze]=$e}}for(setupAxisCategories(at,xt),We=0;We")):"isosurface"===ze.type||"volume"===ze.type?(Qr.valueLabel=xt.tickText(Ee.mockAxis,Ee.mockAxis.d2l(ct.traceCoordinate[3]),"hover").text,un.push("value: "+Qr.valueLabel),ct.textLabel&&un.push(ct.textLabel),tr=un.join("
")):tr=ct.textLabel;var hn={x:ct.traceCoordinate[0],y:ct.traceCoordinate[1],z:ct.traceCoordinate[2],data:rr._input,fullData:rr,curveNumber:rr.index,pointNumber:Lr};kt.appendArrayPointValue(hn,rr,Lr),ze._module.eventData&&(hn=rr._module.eventData(hn,ct,rr,{},Lr));var dn={points:[hn]};Ee.fullSceneLayout.hovermode&&kt.loneHover({trace:rr,x:(.5+.5*Ut[0]/Ut[3])*$e,y:(.5-.5*Ut[1]/Ut[3])*Qe,xLabel:Qr.xLabel,yLabel:Qr.yLabel,zLabel:Qr.zLabel,text:tr,name:at.name,color:kt.castHoverOption(rr,Lr,"bgcolor")||at.color,borderColor:kt.castHoverOption(rr,Lr,"bordercolor"),fontFamily:kt.castHoverOption(rr,Lr,"font.family"),fontSize:kt.castHoverOption(rr,Lr,"font.size"),fontColor:kt.castHoverOption(rr,Lr,"font.color"),nameLength:kt.castHoverOption(rr,Lr,"namelength"),textAlign:kt.castHoverOption(rr,Lr,"align"),hovertemplate:ft.castOption(rr,Lr,"hovertemplate"),hovertemplateLabels:ft.extendFlat({},hn,Qr),eventData:[hn]},{container:Ue,gd:Be}),ct.buttons&&ct.distance<5?Be.emit("plotly_click",dn):Be.emit("plotly_hover",dn),rt=dn}else kt.loneUnhover(Ue),Be.emit("plotly_unhover",rt);Ee.drawAnnotations(Ee)}function initializeGLPlot(Ee,ze,Be){if(Ee.initializeGLCamera(),!function tryCreatePlot(Ee,ze,Be,$e,Qe){var at={canvas:$e,gl:Qe,container:Ee.container,axes:Ee.axesOptions,spikes:Ee.spikeOptions,pickRadius:10,snapToData:!0,autoScale:!0,autoBounds:!1,cameraObject:ze,pixelRatio:Be};if(Ee.staticMode){if(!(We||(Ue=document.createElement("canvas"),We=it({canvas:Ue,preserveDrawingBuffer:!0,premultipliedAlpha:!0,antialias:!0}))))throw new Error("error creating static canvas/context for image server");at.pixelRatio=Ee.pixelRatio,at.gl=We,at.canvas=Ue}var ct=0;try{Ee.glplot=rt(at)}catch(ze){ct++;try{Ee.glplot=rt(at)}catch(Ee){ct++}}return ct<2}(Ee,Ee.camera,Ee.pixelRatio,ze,Be))return Ut(Ee);var $e=Ee.graphDiv,Qe=$e.layout,makeUpdate=function(){var ze={};return Ee.isCameraChanged(Qe)&&(ze[Ee.id+".camera"]=Ee.getCamera()),Ee.isAspectChanged(Qe)&&(ze[Ee.id+".aspectratio"]=Ee.glplot.getAspectratio()),ze},relayoutCallback=function(Ee){if(!1!==Ee.fullSceneLayout.dragmode){var ze=makeUpdate();Ee.saveLayout(Qe),Ee.graphDiv.emit("plotly_relayout",ze)}};return Ee.glplot.canvas.addEventListener("mouseup",(function(){relayoutCallback(Ee)})),Ee.glplot.canvas.addEventListener("wheel",(function(ze){if($e._context._scrollZoom.gl3d){if(Ee.glplot.camera._ortho){var Be=ze.deltaX>ze.deltaY?1.1:1/1.1,Ue=Ee.glplot.getAspectratio();Ee.glplot.setAspectratio({x:Be*Ue.x,y:Be*Ue.y,z:Be*Ue.z})}relayoutCallback(Ee)}}),!!at&&{passive:!1}),Ee.glplot.canvas.addEventListener("mousemove",(function(){if(!1!==Ee.fullSceneLayout.dragmode&&0!==Ee.camera.mouseListener.buttons){var ze=makeUpdate();Ee.graphDiv.emit("plotly_relayouting",ze)}})),Ee.staticMode||Ee.glplot.canvas.addEventListener("webglcontextlost",(function(ze){$e&&$e.emit&&$e.emit("plotly_webglcontextlost",{event:ze,layer:Ee.id})}),!1),Ee.glplot.camera=Ee.camera,Ee.glplot.oncontextloss=function(){Ee.recoverContext()},Ee.glplot.onrender=render.bind(null,Ee),Ee.traces={},Ee.make4thDimension(),!0}function Scene(Ee,ze){var Be=document.createElement("div"),Ue=Ee.container;this.graphDiv=Ee.graphDiv;var We=document.createElementNS("http://www.w3.org/2000/svg","svg");We.style.position="absolute",We.style.top=We.style.left="0px",We.style.width=We.style.height="100%",We.style["z-index"]=20,We.style["pointer-events"]="none",Be.appendChild(We),this.svgContainer=We,Be.id=Ee.id,Be.style.position="absolute",Be.style.top=Be.style.left="0px",Be.style.width=Be.style.height="100%",Ue.appendChild(Be),this.fullLayout=ze,this.id=Ee.id||"scene",this.fullSceneLayout=ze[this.id],this.plotArgs=[[],{},{}],this.axesOptions=tr(ze,ze[this.id]),this.spikeOptions=rr(ze[this.id]),this.container=Be,this.staticMode=!!Ee.staticPlot,this.pixelRatio=this.pixelRatio||Ee.plotGlPixelRatio||2,this.dataScale=[1,1,1],this.contourLevels=[[],[],[]],this.convertAnnotations=ct.getComponentMethod("annotations3d","convert"),this.drawAnnotations=ct.getComponentMethod("annotations3d","draw"),initializeGLPlot(this)}var Lr=Scene.prototype;Lr.initializeGLCamera=function(){var Ee=this.fullSceneLayout.camera,ze="orthographic"===Ee.projection.type;this.camera=Qe(this.container,{center:[Ee.center.x,Ee.center.y,Ee.center.z],eye:[Ee.eye.x,Ee.eye.y,Ee.eye.z],up:[Ee.up.x,Ee.up.y,Ee.up.z],_ortho:ze,zoomMin:.01,zoomMax:100,mode:"orbit"})},Lr.recoverContext=function(){var Ee=this,ze=this.glplot.gl,Be=this.glplot.canvas;this.glplot.dispose(),requestAnimationFrame((function tryRecover(){ze.isContextLost()?requestAnimationFrame(tryRecover):initializeGLPlot(Ee,Be,ze)?Ee.plot.apply(Ee,Ee.plotArgs):ft.error("Catastrophic and unrecoverable WebGL error. Context lost.")}))};var Qr=["xaxis","yaxis","zaxis"];function computeTraceBounds(Ee,ze,Be){for(var Ue=Ee.fullSceneLayout,We=0;We<3;We++){var $e=Qr[We],Qe=$e.charAt(0),rt=Ue[$e],it=ze[Qe],at=ze[Qe+"calendar"],ct=ze["_"+Qe+"length"];if(ft.isArrayOrTypedArray(it))for(var xt,kt=0;kt<(ct||it.length);kt++)if(ft.isArrayOrTypedArray(it[kt]))for(var Lt=0;LtUt[1][$e])Ut[0][$e]=-1,Ut[1][$e]=1;else{var dn=Ut[1][$e]-Ut[0][$e];Ut[0][$e]-=dn/32,Ut[1][$e]+=dn/32}if("reversed"===rt.autorange){var vn=Ut[0][$e];Ut[0][$e]=Ut[1][$e],Ut[1][$e]=vn}}else{var yn=rt.range;Ut[0][$e]=rt.r2l(yn[0]),Ut[1][$e]=rt.r2l(yn[1])}Ut[0][$e]===Ut[1][$e]&&(Ut[0][$e]-=1,Ut[1][$e]+=1),er[$e]=Ut[1][$e]-Ut[0][$e],this.glplot.bounds[0][$e]=Ut[0][$e]*xt[$e],this.glplot.bounds[1][$e]=Ut[1][$e]*xt[$e]}var _n=[1,1,1];for($e=0;$e<3;++$e){var Mn=tr[it=(rt=at[Qr[$e]]).type];_n[$e]=Math.pow(Mn.acc,1/Mn.count)/xt[$e]}var Cn;if("auto"===at.aspectmode)Cn=Math.max.apply(null,_n)/Math.min.apply(null,_n)<=4?_n:[1,1,1];else if("cube"===at.aspectmode)Cn=[1,1,1];else if("data"===at.aspectmode)Cn=_n;else{if("manual"!==at.aspectmode)throw new Error("scene.js aspectRatio was not one of the enumerated types");var En=at.aspectratio;Cn=[En.x,En.y,En.z]}at.aspectratio.x=ct.aspectratio.x=Cn[0],at.aspectratio.y=ct.aspectratio.y=Cn[1],at.aspectratio.z=ct.aspectratio.z=Cn[2],this.glplot.setAspectratio(at.aspectratio),this.viewInitial.aspectratio||(this.viewInitial.aspectratio={x:at.aspectratio.x,y:at.aspectratio.y,z:at.aspectratio.z});var Pn=at.domain||null,In=ze._size||null;if(Pn&&In){var Bn=this.container.style;Bn.position="absolute",Bn.left=In.l+Pn.x[0]*In.w+"px",Bn.top=In.t+(1-Pn.y[1])*In.h+"px",Bn.width=In.w*(Pn.x[1]-Pn.x[0])+"px",Bn.height=In.h*(Pn.y[1]-Pn.y[0])+"px"}this.glplot.redraw()}},Lr.destroy=function(){this.glplot&&(this.camera.mouseListener.enabled=!1,this.container.removeEventListener("wheel",this.camera.wheelListener),this.camera=this.glplot.camera=null,this.glplot.dispose(),this.container.parentNode.removeChild(this.container),this.glplot=null)},Lr.getCamera=function(){return this.glplot.camera.view.recalcMatrix(this.camera.view.lastT()),function getLayoutCamera(Ee){return{up:{x:Ee.up[0],y:Ee.up[1],z:Ee.up[2]},center:{x:Ee.center[0],y:Ee.center[1],z:Ee.center[2]},eye:{x:Ee.eye[0],y:Ee.eye[1],z:Ee.eye[2]},projection:{type:!0===Ee._ortho?"orthographic":"perspective"}}}(this.glplot.camera)},Lr.setViewport=function(Ee){var ze=Ee.camera;this.glplot.camera.lookAt.apply(this,function getCameraArrays(Ee){return[[Ee.eye.x,Ee.eye.y,Ee.eye.z],[Ee.center.x,Ee.center.y,Ee.center.z],[Ee.up.x,Ee.up.y,Ee.up.z]]}(ze)),this.glplot.setAspectratio(Ee.aspectratio);var Be="orthographic"===ze.projection.type;if(Be!==this.glplot.camera._ortho){this.glplot.redraw();var Ue=this.glplot.clearColor;this.glplot.gl.clearColor(Ue[0],Ue[1],Ue[2],Ue[3]),this.glplot.gl.clear(this.glplot.gl.DEPTH_BUFFER_BIT|this.glplot.gl.COLOR_BUFFER_BIT),this.glplot.dispose(),initializeGLPlot(this),this.glplot.camera._ortho=Be}},Lr.isCameraChanged=function(Ee){var ze=this.getCamera(),Be=ft.nestedProperty(Ee,this.id+".camera").get();function same(Ee,ze,Be,Ue){var We=["up","center","eye"],$e=["x","y","z"];return ze[We[Be]]&&Ee[We[Be]][$e[Ue]]===ze[We[Be]][$e[Ue]]}var Ue=!1;if(void 0===Be)Ue=!0;else{for(var We=0;We<3;We++)for(var $e=0;$e<3;$e++)if(!same(ze,Be,We,$e)){Ue=!0;break}(!Be.projection||ze.projection&&ze.projection.type!==Be.projection.type)&&(Ue=!0)}return Ue},Lr.isAspectChanged=function(Ee){var ze=this.glplot.getAspectratio(),Be=ft.nestedProperty(Ee,this.id+".aspectratio").get();return void 0===Be||Be.x!==ze.x||Be.y!==ze.y||Be.z!==ze.z},Lr.saveLayout=function(Ee){var ze,Be,Ue,We,$e,Qe,rt=this.fullLayout,it=this.isCameraChanged(Ee),at=this.isAspectChanged(Ee),xt=it||at;if(xt){var kt={};if(it&&(ze=this.getCamera(),Ue=(Be=ft.nestedProperty(Ee,this.id+".camera")).get(),kt[this.id+".camera"]=Ue),at&&(We=this.glplot.getAspectratio(),Qe=($e=ft.nestedProperty(Ee,this.id+".aspectratio")).get(),kt[this.id+".aspectratio"]=Qe),ct.call("_storeDirectGUIEdit",Ee,rt._preGUI,kt),it)Be.set(ze),ft.nestedProperty(rt,this.id+".camera").set(ze);if(at)$e.set(We),ft.nestedProperty(rt,this.id+".aspectratio").set(We),this.glplot.redraw()}return xt},Lr.updateFx=function(Ee,ze){var Be=this.camera;if(Be)if("orbit"===Ee)Be.mode="orbit",Be.keyBindingMode="rotate";else if("turntable"===Ee){Be.up=[0,0,1],Be.mode="turntable",Be.keyBindingMode="rotate";var Ue=this.graphDiv,We=Ue._fullLayout,$e=this.fullSceneLayout.camera,Qe=$e.up.x,rt=$e.up.y,it=$e.up.z;if(it/Math.sqrt(Qe*Qe+rt*rt+it*it)<.999){var at=this.id+".camera.up",xt={x:0,y:0,z:1},kt={};kt[at]=xt;var Lt=Ue.layout;ct.call("_storeDirectGUIEdit",Lt,We._preGUI,kt),$e.up=xt,ft.nestedProperty(Lt,at).set(xt)}}else Be.keyBindingMode=Ee;this.fullSceneLayout.hovermode=ze},Lr.toImage=function(Ee){Ee||(Ee="png"),this.staticMode&&this.container.appendChild(Ue),this.glplot.redraw();var ze=this.glplot.gl,Be=ze.drawingBufferWidth,We=ze.drawingBufferHeight;ze.bindFramebuffer(ze.FRAMEBUFFER,null);var $e=new Uint8Array(Be*We*4);ze.readPixels(0,0,Be,We,ze.RGBA,ze.UNSIGNED_BYTE,$e);for(var Qe=0,rt=We-1;Qeze?1:Ee>=ze?0:NaN};var Ue;1===(Ue=ascending).length&&(Ue=function ascendingComparator(Ee){return function(ze,Be){return ascending(Ee(ze),Be)}}(Ue));var number=function(Ee){return null===Ee?NaN:+Ee},We=Array.prototype;We.slice,We.map,Math.sqrt(50),Math.sqrt(10),Math.sqrt(2);var src_max=function(Ee,ze){var Be,Ue,We=Ee.length,$e=-1;if(null==ze){for(;++$e=Be)for(Ue=Be;++$eUe&&(Ue=Be)}else for(;++$e=Be)for(Ue=Be;++$eUe&&(Ue=Be);return Ue},src_mean=function(Ee,ze){var Be,Ue=Ee.length,We=Ue,$e=-1,Qe=0;if(null==ze)for(;++$e=Be)for(Ue=Be;++$eBe&&(Ue=Be)}else for(;++$e=Be)for(Ue=Be;++$eBe&&(Ue=Be);return Ue},src_sum=function(Ee,ze){var Be,Ue=Ee.length,We=-1,$e=0;if(null==ze)for(;++WeWe&&(We=Ee[Qe]),Ee[Qe]<$e&&($e=Ee[Qe]);Be[Ue]=$e,Be[ze+Ue]=We}return Be}},be2a:function(Ee,ze,Be){"use strict";var Ue=Be("f4e9"),We=Be("94d5").hovertemplateAttrs,$e=Be("6b50"),Qe=Be("a876"),rt=Be("9092").extendFlat,it={x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},z:{valType:"data_array",editType:"calc+clearAxisTypes"},u:{valType:"data_array",editType:"calc"},v:{valType:"data_array",editType:"calc"},w:{valType:"data_array",editType:"calc"},starts:{x:{valType:"data_array",editType:"calc"},y:{valType:"data_array",editType:"calc"},z:{valType:"data_array",editType:"calc"},editType:"calc"},maxdisplayed:{valType:"integer",min:0,dflt:1e3,editType:"calc"},sizeref:{valType:"number",editType:"calc",min:0,dflt:1},text:{valType:"string",dflt:"",editType:"calc"},hovertext:{valType:"string",dflt:"",editType:"calc"},hovertemplate:We({editType:"calc"},{keys:["tubex","tubey","tubez","tubeu","tubev","tubew","norm","divergence"]}),showlegend:rt({},Qe.showlegend,{dflt:!1})};rt(it,Ue("",{colorAttr:"u/v/w norm",showScaleDflt:!0,editTypeOverride:"calc"}));["opacity","lightposition","lighting"].forEach((function(Ee){it[Ee]=$e[Ee]})),it.hoverinfo=rt({},Qe.hoverinfo,{editType:"calc",flags:["x","y","z","u","v","w","norm","divergence","text","name"],dflt:"x+y+z+norm+text+name"}),it.transforms=void 0,Ee.exports=it},be64:function(Ee,ze,Be){"use strict";var Ue=Be("6e58"),We=Be("fc26"),$e=Be("371e"),Qe=Math.PI/180,rt=180/Math.PI,it={cursor:"pointer"},at={cursor:"auto"};function initZoom(Ee,ze){return Ue.behavior.zoom().translate(ze.translate()).scale(ze.scale())}function sync(Ee,ze,Be){var Ue=Ee.id,Qe=Ee.graphDiv,rt=Qe.layout,it=rt[Ue],at=Qe._fullLayout,ct=at[Ue],ft={},xt={};function set(Ee,ze){ft[Ue+"."+Ee]=We.nestedProperty(it,Ee).get(),$e.call("_storeDirectGUIEdit",rt,at._preGUI,ft);var Be=We.nestedProperty(ct,Ee);Be.get()!==ze&&(Be.set(ze),We.nestedProperty(it,Ee).set(ze),xt[Ue+"."+Ee]=ze)}Be(set),set("projection.scale",ze.scale()/Ee.fitScale),set("fitbounds",!1),Qe.emit("plotly_relayout",xt)}function zoomScoped(Ee,ze){var Be=initZoom(0,ze);function syncCb(Be){var Ue=ze.invert(Ee.midPt);Be("center.lon",Ue[0]),Be("center.lat",Ue[1])}return Be.on("zoomstart",(function handleZoomstart(){Ue.select(this).style(it)})).on("zoom",(function handleZoom(){ze.scale(Ue.event.scale).translate(Ue.event.translate),Ee.render();var Be=ze.invert(Ee.midPt);Ee.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":ze.scale()/Ee.fitScale,"geo.center.lon":Be[0],"geo.center.lat":Be[1]})})).on("zoomend",(function handleZoomend(){Ue.select(this).style(at),sync(Ee,ze,syncCb)})),Be}function zoomNonClipped(Ee,ze){var Be,We,$e,Qe,rt,ct,ft,xt,kt,Lt=initZoom(0,ze);function position(Ee){return ze.invert(Ee)}function syncCb(Be){var Ue=ze.rotate(),We=ze.invert(Ee.midPt);Be("projection.rotation.lon",-Ue[0]),Be("center.lon",We[0]),Be("center.lat",We[1])}return Lt.on("zoomstart",(function handleZoomstart(){Ue.select(this).style(it),Be=Ue.mouse(this),We=ze.rotate(),$e=ze.translate(),Qe=We,rt=position(Be)})).on("zoom",(function handleZoom(){if(ct=Ue.mouse(this),function outside(Ee){var Be=position(Ee);if(!Be)return!0;var Ue=ze(Be);return Math.abs(Ue[0]-Ee[0])>2||Math.abs(Ue[1]-Ee[1])>2}(Be))return Lt.scale(ze.scale()),void Lt.translate(ze.translate());ze.scale(Ue.event.scale),ze.translate([$e[0],Ue.event.translate[1]]),rt?position(ct)&&(xt=position(ct),ft=[Qe[0]+(xt[0]-rt[0]),We[1],We[2]],ze.rotate(ft),Qe=ft):rt=position(Be=ct),kt=!0,Ee.render();var it=ze.rotate(),at=ze.invert(Ee.midPt);Ee.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":ze.scale()/Ee.fitScale,"geo.center.lon":at[0],"geo.center.lat":at[1],"geo.projection.rotation.lon":-it[0]})})).on("zoomend",(function handleZoomend(){Ue.select(this).style(at),kt&&sync(Ee,ze,syncCb)})),Lt}function zoomClipped(Ee,ze){var Be,We={r:ze.rotate(),k:ze.scale()},$e=initZoom(0,ze),Qe=function d3eventDispatch(Ee){var ze=0,Be=arguments.length,We=[];for(;++zeLt?($e=(ft>0?90:-90)-kt,We=0):($e=Math.asin(ft/Lt)*rt-kt,We=Math.sqrt(Lt*Lt-ft*ft));var Ut=180-$e-2*kt,er=(Math.atan2(xt,ct)-Math.atan2(at,We))*rt,tr=(Math.atan2(xt,ct)-Math.atan2(at,-We))*rt;return angleDistance(Be[0],Be[1],$e,er)<=angleDistance(Be[0],Be[1],Ut,tr)?[$e,er,Be[2]]:[Ut,tr,Be[2]]}function angleDistance(Ee,ze,Be,Ue){var We=angleMod(Be-Ee),$e=angleMod(Ue-ze);return Math.sqrt(We*We+$e*$e)}function angleMod(Ee){return(Ee%360+540)%360-180}function rotateCartesian(Ee,ze,Be){var Ue=Be*Qe,We=Ee.slice(),$e=0===ze?1:0,rt=2===ze?1:2,it=Math.cos(Ue),at=Math.sin(Ue);return We[$e]=Ee[$e]*it-Ee[rt]*at,We[rt]=Ee[rt]*it+Ee[$e]*at,We}function eulerFromQuaternion(Ee){return[Math.atan2(2*(Ee[0]*Ee[1]+Ee[2]*Ee[3]),1-2*(Ee[1]*Ee[1]+Ee[2]*Ee[2]))*rt,Math.asin(Math.max(-1,Math.min(1,2*(Ee[0]*Ee[2]-Ee[3]*Ee[1]))))*rt,Math.atan2(2*(Ee[0]*Ee[3]+Ee[1]*Ee[2]),1-2*(Ee[2]*Ee[2]+Ee[3]*Ee[3]))*rt]}function dot(Ee,ze){for(var Be=0,Ue=0,We=Ee.length;Ue=this.toJD(-1===ze?1:ze+1,7,1);)ze++;for(var Be=Eethis.toJD(ze,Be,this.daysInMonth(ze,Be));)Be++;var Ue=Ee-this.toJD(ze,Be,1)+1;return this.newDate(ze,Be,Ue)}}),Ue.calendars.hebrew=HebrewCalendar},bf14:function(Ee,ze,Be){"use strict";Ee.exports={moduleType:"trace",name:"cone",basePlotModule:Be("134c"),categories:["gl3d","showLegend"],attributes:Be("24fd"),supplyDefaults:Be("e00d"),colorbar:{min:"cmin",max:"cmax"},calc:Be("e2d7"),plot:Be("a5fa"),eventData:function(Ee,ze){return Ee.norm=ze.traceCoordinate[6],Ee},meta:{}}},bf38:function(Ee,ze,Be){"use strict";var Ue=Be("d115"),We=Be("d798"),$e=Be("9092").extendFlat,Qe=Be("cb34").overrideAll;Ee.exports=Qe({visible:We.visible,showspikes:{valType:"boolean",dflt:!0},spikesides:{valType:"boolean",dflt:!0},spikethickness:{valType:"number",min:0,dflt:2},spikecolor:{valType:"color",dflt:Ue.defaultLine},showbackground:{valType:"boolean",dflt:!1},backgroundcolor:{valType:"color",dflt:"rgba(204, 204, 204, 0.5)"},showaxeslabels:{valType:"boolean",dflt:!0},color:We.color,categoryorder:We.categoryorder,categoryarray:We.categoryarray,title:{text:We.title.text,font:We.title.font},type:$e({},We.type,{values:["-","linear","log","date","category"]}),autorange:We.autorange,rangemode:We.rangemode,range:$e({},We.range,{items:[{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}}],anim:!1}),tickmode:We.tickmode,nticks:We.nticks,tick0:We.tick0,dtick:We.dtick,tickvals:We.tickvals,ticktext:We.ticktext,ticks:We.ticks,mirror:We.mirror,ticklen:We.ticklen,tickwidth:We.tickwidth,tickcolor:We.tickcolor,showticklabels:We.showticklabels,tickfont:We.tickfont,tickangle:We.tickangle,tickprefix:We.tickprefix,showtickprefix:We.showtickprefix,ticksuffix:We.ticksuffix,showticksuffix:We.showticksuffix,showexponent:We.showexponent,exponentformat:We.exponentformat,separatethousands:We.separatethousands,tickformat:We.tickformat,tickformatstops:We.tickformatstops,hoverformat:We.hoverformat,showline:We.showline,linecolor:We.linecolor,linewidth:We.linewidth,showgrid:We.showgrid,gridcolor:$e({},We.gridcolor,{dflt:"rgb(204, 204, 204)"}),gridwidth:We.gridwidth,zeroline:We.zeroline,zerolinecolor:We.zerolinecolor,zerolinewidth:We.zerolinewidth,_deprecated:{title:We._deprecated.title,titlefont:We._deprecated.titlefont}},"plot","from-root")},bf66:function(Ee,ze){Ee.exports=function squaredDistance(Ee,ze){var Be=ze[0]-Ee[0],Ue=ze[1]-Ee[1],We=ze[2]-Ee[2],$e=ze[3]-Ee[3];return Be*Be+Ue*Ue+We*We+$e*$e}},bfb6:function(Ee,ze,Be){"use strict";var Ue=Be("6e58"),We=Be("fc26"),$e=Be("83d1"),Qe=Be("0379"),rt=Be("c8b8"),it=Be("da8c").styleOne,at=Be("23cc"),ct=Be("fb56"),ft=Be("6962"),xt=Be("e17d").formatSliceLabel;Ee.exports=function drawDescendants(Ee,ze,Be,kt,Lt){var Ut=Lt.width,er=Lt.height,tr=Lt.viewX,rr=Lt.viewY,ar=Lt.pathSlice,Lr=Lt.toMoveInsideSlice,Qr=Lt.strTransform,on=Lt.hasTransition,sn=Lt.handleSlicesExit,cn=Lt.makeUpdateSliceInterpolator,un=Lt.makeUpdateTextInterpolator,hn=Lt.prevEntry,dn=Ee._fullLayout,vn=ze[0].trace,yn=-1!==vn.textposition.indexOf("left"),_n=-1!==vn.textposition.indexOf("right"),Mn=-1!==vn.textposition.indexOf("bottom"),Cn=!Mn&&!vn.marker.pad.t||Mn&&!vn.marker.pad.b,En=rt(Be,[Ut,er],{packing:vn.tiling.packing,squarifyratio:vn.tiling.squarifyratio,flipX:vn.tiling.flip.indexOf("x")>-1,flipY:vn.tiling.flip.indexOf("y")>-1,pad:{inner:vn.tiling.pad,top:vn.marker.pad.t,left:vn.marker.pad.l,right:vn.marker.pad.r,bottom:vn.marker.pad.b}}).descendants(),Pn=1/0,In=-1/0;En.forEach((function(Ee){var ze=Ee.depth;ze>=vn._maxDepth?(Ee.x0=Ee.x1=(Ee.x0+Ee.x1)/2,Ee.y0=Ee.y1=(Ee.y0+Ee.y1)/2):(Pn=Math.min(Pn,ze),In=Math.max(In,ze))})),kt=kt.data(En,ct.getPtId),vn._maxVisibleLayers=isFinite(In)?In-Pn+1:0,kt.enter().append("g").classed("slice",!0),sn(kt,!1,{},[Ut,er],ar),kt.order();var Bn=null;if(on&&hn){var Hn=ct.getPtId(hn);kt.each((function(Ee){null===Bn&&ct.getPtId(Ee)===Hn&&(Bn={x0:Ee.x0,x1:Ee.x1,y0:Ee.y0,y1:Ee.y1})}))}var getRefRect=function(){return Bn||{x0:0,x1:Ut,y0:0,y1:er}},Kn=kt;return on&&(Kn=Kn.transition().each("end",(function(){var ze=Ue.select(this);ct.setSliceCursor(ze,Ee,{hideOnRoot:!0,hideOnLeaves:!1,isTransitioning:!1})}))),Kn.each((function(rt){var kt=ct.isHeader(rt,vn);rt._hoverX=tr(rt.x1-vn.marker.pad.r),rt._hoverY=rr(Mn?rt.y1-vn.marker.pad.b/2:rt.y0+vn.marker.pad.t/2);var Lt=Ue.select(this),sn=We.ensureSingle(Lt,"path","surface",(function(Ee){Ee.style("pointer-events","all")}));on?sn.transition().attrTween("d",(function(Ee){var ze=cn(Ee,!1,getRefRect(),[Ut,er]);return function(Ee){return ar(ze(Ee))}})):sn.attr("d",ar),Lt.call(ft,Be,Ee,ze,{styleOne:it,eventDataKeys:at.eventDataKeys,transitionTime:at.CLICK_TRANSITION_TIME,transitionEasing:at.CLICK_TRANSITION_EASING}).call(ct.setSliceCursor,Ee,{isTransitioning:Ee._transitioning}),sn.call(it,rt,vn,{hovered:!1}),rt.x0===rt.x1||rt.y0===rt.y1?rt._text="":rt._text=kt?Cn?"":ct.getPtLabel(rt)||"":xt(rt,Be,vn,ze,dn)||"";var hn=We.ensureSingle(Lt,"g","slicetext"),En=We.ensureSingle(hn,"text","",(function(Ee){Ee.attr("data-notex",1)})),Pn=We.ensureUniformFontSize(Ee,ct.determineTextFont(vn,rt,dn.font));En.text(rt._text||" ").classed("slicetext",!0).attr("text-anchor",_n?"end":yn||kt?"start":"middle").call($e.font,Pn).call(Qe.convertToTspans,Ee),rt.textBB=$e.bBox(En.node()),rt.transform=Lr(rt,{fontSize:Pn.size,isHeader:kt}),rt.transform.fontSize=Pn.size,on?En.transition().attrTween("transform",(function(Ee){var ze=un(Ee,!1,getRefRect(),[Ut,er]);return function(Ee){return Qr(ze(Ee))}})):En.attr("transform",Qr(rt))})),Bn}},c005:function(Ee,ze,Be){"use strict";Ee.exports={percent:function(Ee,ze){for(var Be=Ee.length,Ue=100/ze,We=0;We=at?(cn=1,rr=at+2*xt+Lt):rr=xt*(cn=-xt/at)+Lt):(cn=0,kt>=0?(un=0,rr=Lt):-kt>=ft?(un=1,rr=ft+2*kt+Lt):rr=kt*(un=-kt/ft)+Lt);else if(un<0)un=0,xt>=0?(cn=0,rr=Lt):-xt>=at?(cn=1,rr=at+2*xt+Lt):rr=xt*(cn=-xt/at)+Lt;else{var hn=1/sn;rr=(cn*=hn)*(at*cn+ct*(un*=hn)+2*xt)+un*(ct*cn+ft*un+2*kt)+Lt}else cn<0?(Lr=ft+kt)>(ar=ct+xt)?(Qr=Lr-ar)>=(on=at-2*ct+ft)?(cn=1,un=0,rr=at+2*xt+Lt):rr=(cn=Qr/on)*(at*cn+ct*(un=1-cn)+2*xt)+un*(ct*cn+ft*un+2*kt)+Lt:(cn=0,Lr<=0?(un=1,rr=ft+2*kt+Lt):kt>=0?(un=0,rr=Lt):rr=kt*(un=-kt/ft)+Lt):un<0?(Lr=at+xt)>(ar=ct+kt)?(Qr=Lr-ar)>=(on=at-2*ct+ft)?(un=1,cn=0,rr=ft+2*kt+Lt):rr=(cn=1-(un=Qr/on))*(at*cn+ct*un+2*xt)+un*(ct*cn+ft*un+2*kt)+Lt:(un=0,Lr<=0?(cn=1,rr=at+2*xt+Lt):xt>=0?(cn=0,rr=Lt):rr=xt*(cn=-xt/at)+Lt):(Qr=ft+kt-ct-xt)<=0?(cn=0,un=1,rr=ft+2*kt+Lt):Qr>=(on=at-2*ct+ft)?(cn=1,un=0,rr=at+2*xt+Lt):rr=(cn=Qr/on)*(at*cn+ct*(un=1-cn)+2*xt)+un*(ct*cn+ft*un+2*kt)+Lt;var dn=1-cn-un;for(it=0;it"),name:ct.hovertemplate||-1!==ft.indexOf("name")?ct.name:void 0,idealAlign:Ee.pxmid[0]<0?"left":"right",color:kt.castOption(Lr.bgcolor,Ee.pts)||Ee.color,borderColor:kt.castOption(Lr.bordercolor,Ee.pts),fontFamily:kt.castOption(Qr.family,Ee.pts),fontSize:kt.castOption(Qr.size,Ee.pts),fontColor:kt.castOption(Qr.color,Ee.pts),nameLength:kt.castOption(Lr.namelength,Ee.pts),textAlign:kt.castOption(Lr.align,Ee.pts),hovertemplate:kt.castOption(ct.hovertemplate,Ee.pts),hovertemplateLabels:Ee,eventData:[Lt(Ee,ct)]},{container:Be._hoverlayer.node(),outerContainer:Be._paper.node(),gd:ze}),Qe._hasHoverLabel=!0}Qe._hasHoverEvent=!0,ze.emit("plotly_hover",{points:[Lt(Ee,ct)],event:Ue.event})}})),Ee.on("mouseout",(function(Ee){var Be=ze._fullLayout,We=ze._fullData[Qe.index],rt=Ue.select(this).datum();Qe._hasHoverEvent&&(Ee.originalEvent=Ue.event,ze.emit("plotly_unhover",{points:[Lt(rt,We)],event:Ue.event}),Qe._hasHoverEvent=!1),Qe._hasHoverLabel&&($e.loneUnhover(Be._hoverlayer.node()),Qe._hasHoverLabel=!1)})),Ee.on("click",(function(Ee){var Be=ze._fullLayout,We=ze._fullData[Qe.index];ze._dragging||!1===Be.hovermode||(ze._hoverdata=[Lt(Ee,We)],$e.click(ze,Ue.event))}))}function determineInsideTextFont(Ee,ze,Be){var Ue=kt.castOption(Ee.insidetextfont.color,ze.pts);!Ue&&Ee._input.textfont&&(Ue=kt.castOption(Ee._input.textfont.color,ze.pts));var We=kt.castOption(Ee.insidetextfont.family,ze.pts)||kt.castOption(Ee.textfont.family,ze.pts)||Be.family,$e=kt.castOption(Ee.insidetextfont.size,ze.pts)||kt.castOption(Ee.textfont.size,ze.pts)||Be.size;return{color:Ue||Qe.contrast(ze.color),family:We,size:$e}}function prerenderTitles(Ee,ze){for(var Be,Ue,We=0;Weze&&ze>Ue||Be=-4;tr-=2)considerCrossing(Math.PI*tr,"tan");for(tr=4;tr>=-4;tr-=2)considerCrossing(Math.PI*(tr+1),"tan")}if(ft||kt){for(tr=4;tr>=-4;tr-=2)considerCrossing(Math.PI*(tr+1.5),"rad");for(tr=4;tr>=-4;tr-=2)considerCrossing(Math.PI*(tr+.5),"rad")}}if(Ut||Lt||ft){if((Ue={scale:it*at*2/We,rCenter:1-it,rotate:0}).textPosAngle=(ze.startangle+ze.stopangle)/2,Ue.scale>=1)return Ue;er.push(Ue)}(Lt||kt)&&((Ue=calcRadTransform(Ee,at,rt,$e,Qe)).textPosAngle=(ze.startangle+ze.stopangle)/2,er.push(Ue)),(Lt||xt)&&((Ue=calcTanTransform(Ee,at,rt,$e,Qe)).textPosAngle=(ze.startangle+ze.stopangle)/2,er.push(Ue));for(var rr=0,ar=0,Lr=0;Lr=1)break}return er[rr]}function calcRadTransform(Ee,ze,Be,Ue,We){var $e=Ee.width/Ee.height,Qe=calcMaxHalfSize($e,Ue,ze,Be);return{scale:2*Qe/Ee.height,rCenter:calcRCenter($e,Qe/ze),rotate:calcRotate(We)}}function calcTanTransform(Ee,ze,Be,Ue,We){var $e=Ee.height/Ee.width,Qe=calcMaxHalfSize($e,Ue,ze,Be);return{scale:2*Qe/Ee.width,rCenter:calcRCenter($e,Qe/ze),rotate:calcRotate(We+Math.PI/2)}}function calcRCenter(Ee,ze){return Math.cos(ze)-Ee*ze}function calcRotate(Ee){return(180/Math.PI*Ee+720)%180-90}function calcMaxHalfSize(Ee,ze,Be,Ue){var We=Ee+1/(2*Math.tan(ze));return Be*Math.min(1/(Math.sqrt(We*We+.5)+We),Ue/(Math.sqrt(Ee*Ee+Ue/2)+Ee))}function getInscribedRadiusFraction(Ee,ze){return Ee.v!==ze.vTotal||ze.trace.hole?Math.min(1/(1+1/Math.sin(Ee.halfangle)),Ee.ring/2):1}function transformOutsideText(Ee,ze){var Be=ze.pxmid[0],Ue=ze.pxmid[1],We=Ee.width/2,$e=Ee.height/2;return Be<0&&(We*=-1),Ue<0&&($e*=-1),{scale:1,rCenter:1,rotate:0,x:We+Math.abs($e)*(We>0?1:-1)/2,y:$e/(1+Be*Be/(Ue*Ue)),outside:!0}}function positionTitleOutside(Ee,ze){var Be,Ue,We,$e=Ee.trace,Qe={x:Ee.cx,y:Ee.cy},rt={tx:0,ty:0};rt.ty+=$e.title.font.size,We=getMaxPull($e),-1!==$e.title.position.indexOf("top")?(Qe.y-=(1+We)*Ee.r,rt.ty-=Ee.titleBox.height):-1!==$e.title.position.indexOf("bottom")&&(Qe.y+=(1+We)*Ee.r);var it=function applyAspectRatio(Ee,ze){return Ee/(void 0===ze?1:ze)}(Ee.r,Ee.trace.aspectratio),at=ze.w*($e.domain.x[1]-$e.domain.x[0])/2;return-1!==$e.title.position.indexOf("left")?(at+=it,Qe.x-=(1+We)*it,rt.tx+=Ee.titleBox.width/2):-1!==$e.title.position.indexOf("center")?at*=2:-1!==$e.title.position.indexOf("right")&&(at+=it,Qe.x+=(1+We)*it,rt.tx-=Ee.titleBox.width/2),Be=at/Ee.titleBox.width,Ue=getTitleSpace(Ee,ze)/Ee.titleBox.height,{x:Qe.x,y:Qe.y,scale:Math.min(Be,Ue),tx:rt.tx,ty:rt.ty}}function getTitleSpace(Ee,ze){var Be=Ee.trace,Ue=ze.h*(Be.domain.y[1]-Be.domain.y[0]);return Math.min(Ee.titleBox.height,Ue/2)}function getMaxPull(Ee){var ze,Be=Ee.pull;if(!Be)return 0;if(Array.isArray(Be))for(Be=0,ze=0;zeBe&&(Be=Ee.pull[ze]);return Be}function layoutAreas(Ee,ze){for(var Be=[],Ue=0;Ue1?(at=Be.r,ct=at/We.aspectratio):(ct=Be.r,at=ct*We.aspectratio),at*=(1+We.baseratio)/2,it=at*ct}Qe=Math.min(Qe,it/Be.vTotal)}for(Ue=0;Ue")}if($e){var rr=it.castOption(We,ze.i,"texttemplate");if(rr){var ar=function makeTemplateVariables(Ee){return{label:Ee.label,value:Ee.v,valueLabel:kt.formatPieValue(Ee.v,Ue.separators),percent:Ee.v/Be.vTotal,percentLabel:kt.formatPiePercent(Ee.v/Be.vTotal,Ue.separators),color:Ee.color,text:Ee.text,customdata:it.castOption(We,Ee.i,"customdata")}}(ze),Lr=kt.getFirstFilled(We.text,ze.pts);(Ut(Lr)||""===Lr)&&(ar.text=Lr),ze.text=it.texttemplateString(rr,ar,Ee._fullLayout._d3locale,ar,We._meta||{})}else ze.text=""}}function computeTransform(Ee,ze){var Be=Ee.rotate,Ue=Ee.scale;Ue>1&&(Ue=1);var We=Be*Math.PI/180,$e=Math.cos(We),Qe=Math.sin(We),rt=(ze.left+ze.right)/2,it=(ze.top+ze.bottom)/2;Ee.textX=rt*$e-it*Qe,Ee.textY=rt*Qe+it*$e,Ee.noCenter=!0}Ee.exports={plot:function plot(Ee,ze){var Be=Ee._fullLayout,$e=Be._size;xt("pie",Be),prerenderTitles(ze,Ee),layoutAreas(ze,$e);var ct=it.makeTraceGroups(Be._pielayer,ze,"trace").each((function(ze){var ct=Ue.select(this),xt=ze[0],Lt=xt.trace;!function setCoords(Ee){var ze,Be,Ue,We=Ee[0],$e=We.r,Qe=We.trace,rt=Qe.rotation*Math.PI/180,it=2*Math.PI/We.vTotal,at="px0",ct="px1";if("counterclockwise"===Qe.direction){for(ze=0;zeWe.vTotal/2?1:0,Be.halfangle=Math.PI*Math.min(Be.v/We.vTotal,.5),Be.ring=1-Qe.hole,Be.rInscribed=getInscribedRadiusFraction(Be,We))}(ze),ct.attr("stroke-linejoin","round"),ct.each((function(){var Ut=Ue.select(this).selectAll("g.slice").data(ze);Ut.enter().append("g").classed("slice",!0),Ut.exit().remove();var er=[[[],[]],[[],[]]],tr=!1;Ut.each((function(We,$e){if(We.hidden)Ue.select(this).selectAll("path,g").remove();else{We.pointNumber=We.i,We.curveNumber=Lt.index,er[We.pxmid[1]<0?0:1][We.pxmid[0]<0?0:1].push(We);var Qe=xt.cx,ct=xt.cy,Ut=Ue.select(this),rr=Ut.selectAll("path.surface").data([We]);if(rr.enter().append("path").classed("surface",!0).style({"pointer-events":"all"}),Ut.call(attachFxHandlers,Ee,ze),Lt.pull){var ar=+kt.castOption(Lt.pull,We.pts)||0;ar>0&&(Qe+=ar*We.pxmid[0],ct+=ar*We.pxmid[1])}We.cxFinal=Qe,We.cyFinal=ct;var Lr=Lt.hole;if(We.v===xt.vTotal){var Qr="M"+(Qe+We.px0[0])+","+(ct+We.px0[1])+arc(We.px0,We.pxmid,!0,1)+arc(We.pxmid,We.px0,!0,1)+"Z";Lr?rr.attr("d","M"+(Qe+Lr*We.px0[0])+","+(ct+Lr*We.px0[1])+arc(We.px0,We.pxmid,!1,Lr)+arc(We.pxmid,We.px0,!1,Lr)+"Z"+Qr):rr.attr("d",Qr)}else{var on=arc(We.px0,We.px1,!0,1);if(Lr){var sn=1-Lr;rr.attr("d","M"+(Qe+Lr*We.px1[0])+","+(ct+Lr*We.px1[1])+arc(We.px1,We.px0,!1,Lr)+"l"+sn*We.px0[0]+","+sn*We.px0[1]+on+"Z")}else rr.attr("d","M"+Qe+","+ct+"l"+We.px0[0]+","+We.px0[1]+on+"Z")}formatSliceLabel(Ee,We,xt);var cn=kt.castOption(Lt.textposition,We.pts),un=Ut.selectAll("g.slicetext").data(We.text&&"none"!==cn?[0]:[]);un.enter().append("g").classed("slicetext",!0),un.exit().remove(),un.each((function(){var Ut=it.ensureSingle(Ue.select(this),"text","",(function(Ee){Ee.attr("data-notex",1)})),er=it.ensureUniformFontSize(Ee,"outside"===cn?function determineOutsideTextFont(Ee,ze,Be){var Ue=kt.castOption(Ee.outsidetextfont.color,ze.pts)||kt.castOption(Ee.textfont.color,ze.pts)||Be.color,We=kt.castOption(Ee.outsidetextfont.family,ze.pts)||kt.castOption(Ee.textfont.family,ze.pts)||Be.family,$e=kt.castOption(Ee.outsidetextfont.size,ze.pts)||kt.castOption(Ee.textfont.size,ze.pts)||Be.size;return{color:Ue,family:We,size:$e}}(Lt,We,Be.font):determineInsideTextFont(Lt,We,Be.font));Ut.text(We.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(rt.font,er).call(at.convertToTspans,Ee);var rr,ar=rt.bBox(Ut.node());if("outside"===cn)rr=transformOutsideText(ar,We);else if(rr=transformInsideText(ar,We,xt),"auto"===cn&&rr.scale<1){var Lr=it.ensureUniformFontSize(Ee,Lt.outsidetextfont);Ut.call(rt.font,Lr),rr=transformOutsideText(ar=rt.bBox(Ut.node()),We)}var Qr=rr.textPosAngle,on=void 0===Qr?We.pxmid:getCoords(xt.r,Qr);if(rr.targetX=Qe+on[0]*rr.rCenter+(rr.x||0),rr.targetY=ct+on[1]*rr.rCenter+(rr.y||0),computeTransform(rr,ar),rr.outside){var sn=rr.targetY;We.yLabelMin=sn-ar.height/2,We.yLabelMid=sn,We.yLabelMax=sn+ar.height/2,We.labelExtraX=0,We.labelExtraY=0,tr=!0}rr.fontSize=er.size,ft(Lt.type,rr,Be),ze[$e].transform=rr,Ut.attr("transform",it.getTextTransform(rr))}))}function arc(Ee,ze,Be,Ue){var $e=Ue*(ze[0]-Ee[0]),Qe=Ue*(ze[1]-Ee[1]);return"a"+Ue*xt.r+","+Ue*xt.r+" 0 "+We.largeArc+(Be?" 1 ":" 0 ")+$e+","+Qe}}));var rr=Ue.select(this).selectAll("g.titletext").data(Lt.title.text?[0]:[]);if(rr.enter().append("g").classed("titletext",!0),rr.exit().remove(),rr.each((function(){var ze,Be=it.ensureSingle(Ue.select(this),"text","",(function(Ee){Ee.attr("data-notex",1)})),We=Lt.title.text;Lt._meta&&(We=it.templateString(We,Lt._meta)),Be.text(We).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(rt.font,Lt.title.font).call(at.convertToTspans,Ee),ze="middle center"===Lt.title.position?function positionTitleInside(Ee){var ze=Math.sqrt(Ee.titleBox.width*Ee.titleBox.width+Ee.titleBox.height*Ee.titleBox.height);return{x:Ee.cx,y:Ee.cy,scale:Ee.trace.hole*Ee.r*2/ze,tx:0,ty:-Ee.titleBox.height/2+Ee.trace.title.font.size}}(xt):positionTitleOutside(xt,$e),Be.attr("transform","translate("+ze.x+","+ze.y+")"+(ze.scale<1?"scale("+ze.scale+")":"")+"translate("+ze.tx+","+ze.ty+")")})),tr&&function scootLabels(Ee,ze){var Be,Ue,We,$e,Qe,rt,it,at,ct,ft,xt,Lt,Ut;function topFirst(Ee,ze){return Ee.pxmid[1]-ze.pxmid[1]}function bottomFirst(Ee,ze){return ze.pxmid[1]-Ee.pxmid[1]}function scootOneLabel(Ee,Be){Be||(Be={});var We,at,ct,xt,Lt=Be.labelExtraY+(Ue?Be.yLabelMax:Be.yLabelMin),Ut=Ue?Ee.yLabelMin:Ee.yLabelMax,er=Ue?Ee.yLabelMax:Ee.yLabelMin,tr=Ee.cyFinal+Qe(Ee.px0[1],Ee.px1[1]),rr=Lt-Ut;if(rr*it>0&&(Ee.labelExtraY=rr),Array.isArray(ze.pull))for(at=0;at=(kt.castOption(ze.pull,ct.pts)||0)||((Ee.pxmid[1]-ct.pxmid[1])*it>0?(rr=ct.cyFinal+Qe(ct.px0[1],ct.px1[1])-Ut-Ee.labelExtraY)*it>0&&(Ee.labelExtraY+=rr):(er+Ee.labelExtraY-tr)*it>0&&(We=3*rt*Math.abs(at-ft.indexOf(Ee)),(xt=ct.cxFinal+$e(ct.px0[0],ct.px1[0])+We-(Ee.cxFinal+Ee.pxmid[0])-Ee.labelExtraX)*rt>0&&(Ee.labelExtraX+=xt)))}for(Ue=0;Ue<2;Ue++)for(We=Ue?topFirst:bottomFirst,Qe=Ue?Math.max:Math.min,it=Ue?1:-1,Be=0;Be<2;Be++){for($e=Be?Math.max:Math.min,rt=Be?1:-1,(at=Ee[Ue][Be]).sort(We),ct=Ee[1-Ue][Be],ft=ct.concat(at),Lt=[],xt=0;xtMath.abs(ft)?rt+="l"+ft*Ee.pxmid[0]/Ee.pxmid[1]+","+ft+"H"+($e+Ee.labelExtraX+at):rt+="l"+Ee.labelExtraX+","+ct+"v"+(ft-ct)+"h"+at}else rt+="V"+(Ee.yLabelMid+Ee.labelExtraY)+"h"+at;it.ensureSingle(Be,"path","textline").call(Qe.stroke,ze.outsidetextfont.color).attr({"stroke-width":Math.min(2,ze.outsidetextfont.size/8),d:rt,fill:"none"})}else Be.select("path.textline").remove()}))}(Ut,Lt),tr&&Lt.automargin){var ar=rt.bBox(ct.node()),Lr=Lt.domain,Qr=$e.w*(Lr.x[1]-Lr.x[0]),on=$e.h*(Lr.y[1]-Lr.y[0]),sn=(.5*Qr-xt.r)/$e.w,cn=(.5*on-xt.r)/$e.h;We.autoMargin(Ee,"pie."+Lt.uid+".automargin",{xl:Lr.x[0]-sn,xr:Lr.x[1]+sn,yb:Lr.y[0]-cn,yt:Lr.y[1]+cn,l:Math.max(xt.cx-xt.r-ar.left,0),r:Math.max(ar.right-(xt.cx+xt.r),0),b:Math.max(ar.bottom-(xt.cy+xt.r),0),t:Math.max(xt.cy-xt.r-ar.top,0),pad:5})}}))}));setTimeout((function(){ct.selectAll("tspan").each((function(){var Ee=Ue.select(this);Ee.attr("dy")&&Ee.attr("dy",Ee.attr("dy"))}))}),0)},formatSliceLabel:formatSliceLabel,transformInsideText:transformInsideText,determineInsideTextFont:determineInsideTextFont,positionTitleOutside:positionTitleOutside,prerenderTitles:prerenderTitles,layoutAreas:layoutAreas,attachFxHandlers:attachFxHandlers,computeTransform:computeTransform}},c107:function(Ee,ze,Be){var Ue=Be("0230"),We=Be("320c");function NepaliCalendar(Ee){this.local=this.regionalOptions[Ee||""]||this.regionalOptions[""]}NepaliCalendar.prototype=new Ue.baseCalendar,We(NepaliCalendar.prototype,{name:"Nepali",jdEpoch:1700709.5,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{"":{name:"Nepali",epochs:["BBS","ABS"],monthNames:["Baisakh","Jestha","Ashadh","Shrawan","Bhadra","Ashwin","Kartik","Mangsir","Paush","Mangh","Falgun","Chaitra"],monthNamesShort:["Bai","Je","As","Shra","Bha","Ash","Kar","Mang","Pau","Ma","Fal","Chai"],dayNames:["Aaitabaar","Sombaar","Manglbaar","Budhabaar","Bihibaar","Shukrabaar","Shanibaar"],dayNamesShort:["Aaita","Som","Mangl","Budha","Bihi","Shukra","Shani"],dayNamesMin:["Aai","So","Man","Bu","Bi","Shu","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:1,isRTL:!1}},leapYear:function(Ee){return this.daysInYear(Ee)!==this.daysPerYear},weekOfYear:function(Ee,ze,Be){var Ue=this.newDate(Ee,ze,Be);return Ue.add(-Ue.dayOfWeek(),"d"),Math.floor((Ue.dayOfYear()-1)/7)+1},daysInYear:function(Ee){if(Ee=this._validate(Ee,this.minMonth,this.minDay,Ue.local.invalidYear).year(),void 0===this.NEPALI_CALENDAR_DATA[Ee])return this.daysPerYear;for(var ze=0,Be=this.minMonth;Be<=12;Be++)ze+=this.NEPALI_CALENDAR_DATA[Ee][Be];return ze},daysInMonth:function(Ee,ze){return Ee.year&&(ze=Ee.month(),Ee=Ee.year()),this._validate(Ee,ze,this.minDay,Ue.local.invalidMonth),void 0===this.NEPALI_CALENDAR_DATA[Ee]?this.daysPerMonth[ze-1]:this.NEPALI_CALENDAR_DATA[Ee][ze]},weekDay:function(Ee,ze,Be){return 6!==this.dayOfWeek(Ee,ze,Be)},toJD:function(Ee,ze,Be){var We=this._validate(Ee,ze,Be,Ue.local.invalidDate);Ee=We.year(),ze=We.month(),Be=We.day();var $e=Ue.instance(),Qe=0,rt=ze,it=Ee;this._createMissingCalendarData(Ee);var at=Ee-(rt>9||9===rt&&Be>=this.NEPALI_CALENDAR_DATA[it][0]?56:57);for(9!==ze&&(Qe=Be,rt--);9!==rt;)rt<=0&&(rt=12,it--),Qe+=this.NEPALI_CALENDAR_DATA[it][rt],rt--;return 9===ze?(Qe+=Be-this.NEPALI_CALENDAR_DATA[it][0])<0&&(Qe+=$e.daysInYear(at)):Qe+=this.NEPALI_CALENDAR_DATA[it][9]-this.NEPALI_CALENDAR_DATA[it][0],$e.newDate(at,1,1).add(Qe,"d").toJD()},fromJD:function(Ee){var ze=Ue.instance().fromJD(Ee),Be=ze.year(),We=ze.dayOfYear(),$e=Be+56;this._createMissingCalendarData($e);for(var Qe=9,rt=this.NEPALI_CALENDAR_DATA[$e][0],it=this.NEPALI_CALENDAR_DATA[$e][Qe]-rt+1;We>it;)++Qe>12&&(Qe=1,$e++),it+=this.NEPALI_CALENDAR_DATA[$e][Qe];var at=this.NEPALI_CALENDAR_DATA[$e][Qe]-(it-We);return this.newDate($e,Qe,at)},_createMissingCalendarData:function(Ee){var ze=this.daysPerMonth.slice(0);ze.unshift(17);for(var Be=Ee-1;Be HALF_PI) && (b <= ONE_AND_HALF_PI)) ?\n b - PI :\n b;\n}\n\nfloat look_horizontal_or_vertical(float a, float ratio) {\n // ratio controls the ratio between being horizontal to (vertical + horizontal)\n // if ratio is set to 0.5 then it is 50%, 50%.\n // when using a higher ratio e.g. 0.75 the result would\n // likely be more horizontal than vertical.\n\n float b = positive_angle(a);\n\n return\n (b < ( ratio) * HALF_PI) ? 0.0 :\n (b < (2.0 - ratio) * HALF_PI) ? -HALF_PI :\n (b < (2.0 + ratio) * HALF_PI) ? 0.0 :\n (b < (4.0 - ratio) * HALF_PI) ? HALF_PI :\n 0.0;\n}\n\nfloat roundTo(float a, float b) {\n return float(b * floor((a + 0.5 * b) / b));\n}\n\nfloat look_round_n_directions(float a, int n) {\n float b = positive_angle(a);\n float div = TWO_PI / float(n);\n float c = roundTo(b, div);\n return look_upwards(c);\n}\n\nfloat applyAlignOption(float rawAngle, float delta) {\n return\n (option > 2) ? look_round_n_directions(rawAngle + delta, option) : // option 3-n: round to n directions\n (option == 2) ? look_horizontal_or_vertical(rawAngle + delta, hv_ratio) : // horizontal or vertical\n (option == 1) ? rawAngle + delta : // use free angle, and flip to align with one direction of the axis\n (option == 0) ? look_upwards(rawAngle) : // use free angle, and stay upwards\n (option ==-1) ? 0.0 : // useful for backward compatibility, all texts remains horizontal\n rawAngle; // otherwise return back raw input angle\n}\n\nbool isAxisTitle = (axis.x == 0.0) &&\n (axis.y == 0.0) &&\n (axis.z == 0.0);\n\nvoid main() {\n //Compute world offset\n float axisDistance = position.z;\n vec3 dataPosition = axisDistance * axis + offset;\n\n float beta = angle; // i.e. user defined attributes for each tick\n\n float axisAngle;\n float clipAngle;\n float flip;\n\n if (enableAlign) {\n axisAngle = (isAxisTitle) ? HALF_PI :\n computeViewAngle(dataPosition, dataPosition + axis);\n clipAngle = computeViewAngle(dataPosition, dataPosition + alignDir);\n\n axisAngle += (sin(axisAngle) < 0.0) ? PI : 0.0;\n clipAngle += (sin(clipAngle) < 0.0) ? PI : 0.0;\n\n flip = (dot(vec2(cos(axisAngle), sin(axisAngle)),\n vec2(sin(clipAngle),-cos(clipAngle))) > 0.0) ? 1.0 : 0.0;\n\n beta += applyAlignOption(clipAngle, flip * PI);\n }\n\n //Compute plane offset\n vec2 planeCoord = position.xy * pixelScale;\n\n mat2 planeXform = scale * mat2(\n cos(beta), sin(beta),\n -sin(beta), cos(beta)\n );\n\n vec2 viewOffset = 2.0 * planeXform * planeCoord / resolution;\n\n //Compute clip position\n vec3 clipPosition = project(dataPosition);\n\n //Apply text offset in clip coordinates\n clipPosition += vec3(viewOffset, 0.0);\n\n //Done\n gl_Position = vec4(clipPosition, 1.0);\n}"]),it=Ue(["precision highp float;\n#define GLSLIFY 1\n\nuniform vec4 color;\nvoid main() {\n gl_FragColor = color;\n}"]);ze.text=function(Ee){return We(Ee,rt,it,null,[{name:"position",type:"vec3"}])};var at=Ue(["precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position;\nattribute vec3 normal;\n\nuniform mat4 model, view, projection;\nuniform vec3 enable;\nuniform vec3 bounds[2];\n\nvarying vec3 colorChannel;\n\nvoid main() {\n\n vec3 signAxis = sign(bounds[1] - bounds[0]);\n\n vec3 realNormal = signAxis * normal;\n\n if(dot(realNormal, enable) > 0.0) {\n vec3 minRange = min(bounds[0], bounds[1]);\n vec3 maxRange = max(bounds[0], bounds[1]);\n vec3 nPosition = mix(minRange, maxRange, 0.5 * (position + 1.0));\n gl_Position = projection * view * model * vec4(nPosition, 1.0);\n } else {\n gl_Position = vec4(0,0,0,0);\n }\n\n colorChannel = abs(realNormal);\n}"]),ct=Ue(["precision highp float;\n#define GLSLIFY 1\n\nuniform vec4 colors[3];\n\nvarying vec3 colorChannel;\n\nvoid main() {\n gl_FragColor = colorChannel.x * colors[0] +\n colorChannel.y * colors[1] +\n colorChannel.z * colors[2];\n}"]);ze.bg=function(Ee){return We(Ee,at,ct,null,[{name:"position",type:"vec3"},{name:"normal",type:"vec3"}])}},c1a7:function(Ee,ze,Be){"use strict";var Ue=Be("8c75");function VertexAttribute(Ee,ze,Be,Ue,We,$e){this.location=Ee,this.dimension=ze,this.a=Be,this.b=Ue,this.c=We,this.d=$e}function VAONative(Ee,ze,Be){this.gl=Ee,this._ext=ze,this.handle=Be,this._attribs=[],this._useElements=!1,this._elementsType=Ee.UNSIGNED_SHORT}VertexAttribute.prototype.bind=function(Ee){switch(this.dimension){case 1:Ee.vertexAttrib1f(this.location,this.a);break;case 2:Ee.vertexAttrib2f(this.location,this.a,this.b);break;case 3:Ee.vertexAttrib3f(this.location,this.a,this.b,this.c);break;case 4:Ee.vertexAttrib4f(this.location,this.a,this.b,this.c,this.d)}},VAONative.prototype.bind=function(){this._ext.bindVertexArrayOES(this.handle);for(var Ee=0;Ee>1;return["sum(",generateSum(Ee.slice(0,ze)),",",generateSum(Ee.slice(ze)),")"].join("")}(ze);var Ue}function compileDeterminant(Ee){return new Function("sum","scale","prod","compress",["function robustDeterminant",Ee,"(m){return compress(",determinant(matrix(Ee)),")};return robustDeterminant",Ee].join(""))(We,$e,Ue,Qe)}var rt=[function robustDeterminant0(){return[0]},function robustDeterminant1(Ee){return[Ee[0][0]]}];!function generateDispatch(){for(;rt.length<6;)rt.push(compileDeterminant(rt.length));for(var ze=[],Be=["function robustDeterminant(m){switch(m.length){"],Ue=0;Ue<6;++Ue)ze.push("det"+Ue),Be.push("case ",Ue,":return det",Ue,"(m);");Be.push("}var det=CACHE[m.length];if(!det)det=CACHE[m.length]=gen(m.length);return det(m);}return robustDeterminant"),ze.push("CACHE","gen",Be.join(""));var We=Function.apply(void 0,ze);for(Ee.exports=We.apply(void 0,rt.concat([rt,compileDeterminant])),Ue=0;Ue=55296&&er<=56319&&(Ut+=Ee[++kt]),it.call(ze,tr,Ut,ft),!xt);++kt);else at.call(Ee,(function(Ee){return it.call(ze,tr,Ee,ft),xt}))}},c3a9:function(Ee,ze){Ee.exports=function add(Ee,ze,Be){return Ee[0]=ze[0]+Be[0],Ee[1]=ze[1]+Be[1],Ee[2]=ze[2]+Be[2],Ee[3]=ze[3]+Be[3],Ee}},c3de:function(Ee,ze,Be){"use strict";var Ue=Be("fc26"),We=Be("0642"),$e=Be("b1a4").pointsAccessorFunction;ze.moduleType="transform",ze.name="sort",ze.attributes={enabled:{valType:"boolean",dflt:!0,editType:"calc"},target:{valType:"string",strict:!0,noBlank:!0,arrayOk:!0,dflt:"x",editType:"calc"},order:{valType:"enumerated",values:["ascending","descending"],dflt:"ascending",editType:"calc"},editType:"calc"},ze.supplyDefaults=function(Ee){var Be={};function coerce(We,$e){return Ue.coerce(Ee,Be,ze.attributes,We,$e)}return coerce("enabled")&&(coerce("target"),coerce("order")),Be},ze.calcTransform=function(Ee,ze,Be){if(Be.enabled){var Qe=Ue.getTargetArray(ze,Be);if(Qe){var rt=Be.target,it=Qe.length;ze._length&&(it=Math.min(it,ze._length));var at,ct,ft=ze._arrayAttrs,xt=function getIndices(Ee,ze,Be,Ue){var We,$e=new Array(Ue),Qe=new Array(Ue);for(We=0;We=0;Be--)Ee.removeLayer(ze[Be][1])},$e.dispose=function(){var Ee=this.subplot.map;this._removeLayers(),Ee.removeSource(this.sourceId)},Ee.exports=function createDensityMapbox(Ee,ze){var Be=ze[0].trace,We=new DensityMapbox(Ee,Be.uid),$e=We.sourceId,Qe=Ue(ze),rt=We.below=Ee.belowLookup["trace-"+Be.uid];return Ee.map.addSource($e,{type:"geojson",data:Qe.geojson}),We._addLayers(Qe,rt),We}},c400:function(Ee,ze,Be){"use strict";var Ue=Ee.exports={},We=Be("0804").locationmodeToLayer,$e=Be("e018").feature;Ue.getTopojsonName=function(Ee){return[Ee.scope.replace(/ /g,"-"),"_",Ee.resolution.toString(),"m"].join("")},Ue.getTopojsonPath=function(Ee,ze){return Ee+ze+".json"},Ue.getTopojsonFeatures=function(Ee,ze){var Be=We[Ee.locationmode],Ue=ze.objects[Be];return $e(ze,Ue).features}},c430:function(Ee,ze){Ee.exports=!1},c437:function(Ee,ze,Be){"use strict";var Ue=Be("6e58");Ee.exports=function style(Ee){Ue.select(Ee).selectAll(".hm image").style("opacity",(function(Ee){return Ee.trace.opacity}))}},c449:function(Ee,ze,Be){(function(ze){for(var Ue=Be("6d08"),We="undefined"==typeof window?ze:window,$e=["moz","webkit"],Qe="AnimationFrame",rt=We["request"+Qe],it=We["cancel"+Qe]||We["cancelRequest"+Qe],at=0;!rt&&at<$e.length;at++)rt=We[$e[at]+"Request"+Qe],it=We[$e[at]+"Cancel"+Qe]||We[$e[at]+"CancelRequest"+Qe];if(!rt||!it){var ct=0,ft=0,xt=[];rt=function(Ee){if(0===xt.length){var ze=Ue(),Be=Math.max(0,1e3/60-(ze-ct));ct=Be+ze,setTimeout((function(){var Ee=xt.slice(0);xt.length=0;for(var ze=0;ze0&&Qe.log("Clearing previous rejected promises from queue."),Ee._promises=[]},ze.cleanLayout=function(Ee){var Be,Ue;Ee||(Ee={}),Ee.xaxis1&&(Ee.xaxis||(Ee.xaxis=Ee.xaxis1),delete Ee.xaxis1),Ee.yaxis1&&(Ee.yaxis||(Ee.yaxis=Ee.yaxis1),delete Ee.yaxis1),Ee.scene1&&(Ee.scene||(Ee.scene=Ee.scene1),delete Ee.scene1);var $e=(rt.subplotsRegistry.cartesian||{}).attrRegex,it=(rt.subplotsRegistry.polar||{}).attrRegex,ft=(rt.subplotsRegistry.ternary||{}).attrRegex,xt=(rt.subplotsRegistry.gl3d||{}).attrRegex,kt=Object.keys(Ee);for(Be=0;Be3?(vn.x=1.02,vn.xanchor="left"):vn.x<-2&&(vn.x=-.02,vn.xanchor="right"),vn.y>3?(vn.y=1.02,vn.yanchor="bottom"):vn.y<-2&&(vn.y=-.02,vn.yanchor="top")),cleanTitle(Ee),"rotate"===Ee.dragmode&&(Ee.dragmode="orbit"),at.clean(Ee),Ee.template&&Ee.template.layout&&ze.cleanLayout(Ee.template.layout),Ee},ze.cleanData=function(Ee){for(var Be=0;Be0)return Ee.substr(0,ze)}ze.hasParent=function(Ee,ze){for(var Be=getParent(ze);Be;){if(Be in Ee)return!0;Be=getParent(Be)}return!1};var Lt=["x","y","z"];ze.clearAxisTypes=function(Ee,ze,Be){for(var Ue=0;Ue=0&&Be.index0?$e.push(["d",xt,"=s",xt,"-d",at,"*n",at].join("")):$e.push(["d",xt,"=s",xt].join("")),at=xt),0!==(ft=Ee.length-1-Qe)&&(ct>0?$e.push(["e",ft,"=s",ft,"-e",ct,"*n",ct,",f",ft,"=",rt[ft],"-f",ct,"*n",ct].join("")):$e.push(["e",ft,"=s",ft,",f",ft,"=",rt[ft]].join("")),ct=ft)}Be.push("var "+$e.join(","));var kt=["0","n0-1","data","offset"].concat(shapeArgs(Ee.length));Be.push(["if(n0<=",We,"){","insertionSort(",kt.join(","),")}else{","quickSort(",kt.join(","),")}"].join("")),Be.push("}return "+Ue);var Lt=new Function("insertionSort","quickSort",Be.join("\n")),Ut=function createInsertionSort(Ee,ze){var Be=["'use strict'"],Ue=["ndarrayInsertionSort",Ee.join("d"),ze].join(""),We=["left","right","data","offset"].concat(shapeArgs(Ee.length)),$e=getMallocFree(ze),Qe=["i,j,cptr,ptr=left*s0+offset"];if(Ee.length>1){for(var rt=[],it=1;it1){Be.push("dptr=0;sptr=ptr");for(it=Ee.length-1;it>=0;--it){0!==(at=Ee[it])&&Be.push(["for(i",at,"=0;i",at,"b){break __l}"].join(""));for(it=Ee.length-1;it>=1;--it)Be.push("sptr+=e"+it,"dptr+=f"+it,"}");Be.push("dptr=cptr;sptr=cptr-s0");for(it=Ee.length-1;it>=0;--it){0!==(at=Ee[it])&&Be.push(["for(i",at,"=0;i",at,"=0;--it){0!==(at=Ee[it])&&Be.push(["for(i",at,"=0;i",at,"scratch)){",dataWrite("cptr",dataRead("cptr-s0")),"cptr-=s0","}",dataWrite("cptr","scratch"));return Be.push("}"),Ee.length>1&&$e&&Be.push("free(scratch)"),Be.push("} return "+Ue),$e?new Function("malloc","free",Be.join("\n"))($e[0],$e[1]):new Function(Be.join("\n"))()}(Ee,ze),er=function createQuickSort(Ee,ze,Be){var Ue=["'use strict'"],$e=["ndarrayQuickSort",Ee.join("d"),ze].join(""),Qe=["left","right","data","offset"].concat(shapeArgs(Ee.length)),rt=getMallocFree(ze),it=0;Ue.push(["function ",$e,"(",Qe.join(","),"){"].join(""));var at=["sixth=((right-left+1)/6)|0","index1=left+sixth","index5=right-sixth","index3=(left+right)>>1","index2=index3-sixth","index4=index3+sixth","el1=index1","el2=index2","el3=index3","el4=index4","el5=index5","less=left+1","great=right-1","pivots_are_equal=true","tmp","tmp0","x","y","z","k","ptr0","ptr1","ptr2","comp_pivot1=0","comp_pivot2=0","comp=0"];if(Ee.length>1){for(var ct=[],ft=1;ft=0;--$e){0!==(Qe=Ee[$e])&&Ue.push(["for(i",Qe,"=0;i",Qe,"1)for($e=0;$e1?Ue.push("ptr_shift+=d"+Qe):Ue.push("ptr0+=d"+Qe),Ue.push("}"))}}function lexicoLoop(ze,Be,We,$e){if(1===Be.length)Ue.push("ptr0="+toPointer(Be[0]));else{for(var Qe=0;Qe1)for(Qe=0;Qe=1;--Qe)We&&Ue.push("pivot_ptr+=f"+Qe),Be.length>1?Ue.push("ptr_shift+=e"+Qe):Ue.push("ptr0+=e"+Qe),Ue.push("}")}function cleanUp(){Ee.length>1&&rt&&Ue.push("free(pivot1)","free(pivot2)")}function compareSwap(ze,Be){var We="el"+ze,$e="el"+Be;if(Ee.length>1){var Qe="__l"+ ++it;lexicoLoop(Qe,[We,$e],!1,["comp=",dataRead("ptr0"),"-",dataRead("ptr1"),"\n","if(comp>0){tmp0=",We,";",We,"=",$e,";",$e,"=tmp0;break ",Qe,"}\n","if(comp<0){break ",Qe,"}"].join(""))}else Ue.push(["if(",dataRead(toPointer(We)),">",dataRead(toPointer($e)),"){tmp0=",We,";",We,"=",$e,";",$e,"=tmp0}"].join(""))}function moveElement(ze,Be){Ee.length>1?cacheLoop([ze,Be],!1,dataWrite("ptr0",dataRead("ptr1"))):Ue.push(dataWrite(toPointer(ze),dataRead(toPointer(Be))))}function comparePivot(ze,Be,We){if(Ee.length>1){var $e="__l"+ ++it;lexicoLoop($e,[Be],!0,[ze,"=",dataRead("ptr0"),"-pivot",We,"[pivot_ptr]\n","if(",ze,"!==0){break ",$e,"}"].join(""))}else Ue.push([ze,"=",dataRead(toPointer(Be)),"-pivot",We].join(""))}function swapElements(ze,Be){Ee.length>1?cacheLoop([ze,Be],!1,["tmp=",dataRead("ptr0"),"\n",dataWrite("ptr0",dataRead("ptr1")),"\n",dataWrite("ptr1","tmp")].join("")):Ue.push(["ptr0=",toPointer(ze),"\n","ptr1=",toPointer(Be),"\n","tmp=",dataRead("ptr0"),"\n",dataWrite("ptr0",dataRead("ptr1")),"\n",dataWrite("ptr1","tmp")].join(""))}function tripleSwap(ze,Be,We){Ee.length>1?(cacheLoop([ze,Be,We],!1,["tmp=",dataRead("ptr0"),"\n",dataWrite("ptr0",dataRead("ptr1")),"\n",dataWrite("ptr1",dataRead("ptr2")),"\n",dataWrite("ptr2","tmp")].join("")),Ue.push("++"+Be,"--"+We)):Ue.push(["ptr0=",toPointer(ze),"\n","ptr1=",toPointer(Be),"\n","ptr2=",toPointer(We),"\n","++",Be,"\n","--",We,"\n","tmp=",dataRead("ptr0"),"\n",dataWrite("ptr0",dataRead("ptr1")),"\n",dataWrite("ptr1",dataRead("ptr2")),"\n",dataWrite("ptr2","tmp")].join(""))}function swapAndDecrement(Ee,ze){swapElements(Ee,ze),Ue.push("--"+ze)}function storePivot(ze,Be,We){Ee.length>1?cacheLoop([ze,Be],!0,[dataWrite("ptr0",dataRead("ptr1")),"\n",dataWrite("ptr1",["pivot",We,"[pivot_ptr]"].join(""))].join("")):Ue.push(dataWrite(toPointer(ze),dataRead(toPointer(Be))),dataWrite(toPointer(Be),"pivot"+We))}function doSort(ze,Be){Ue.push(["if((",Be,"-",ze,")<=",We,"){\n","insertionSort(",ze,",",Be,",data,offset,",shapeArgs(Ee.length).join(","),")\n","}else{\n",$e,"(",ze,",",Be,",data,offset,",shapeArgs(Ee.length).join(","),")\n","}"].join(""))}function walkPointer(ze,Be,We){Ee.length>1?(Ue.push(["__l",++it,":while(true){"].join("")),cacheLoop([ze],!0,["if(",dataRead("ptr0"),"!==pivot",Be,"[pivot_ptr]){break __l",it,"}"].join("")),Ue.push(We,"}")):Ue.push(["while(",dataRead(toPointer(ze)),"===pivot",Be,"){",We,"}"].join(""))}return Ue.push("var "+at.join(",")),compareSwap(1,2),compareSwap(4,5),compareSwap(1,3),compareSwap(2,3),compareSwap(1,4),compareSwap(3,4),compareSwap(2,5),compareSwap(2,3),compareSwap(4,5),Ee.length>1?cacheLoop(["el1","el2","el3","el4","el5","index1","index3","index5"],!0,["pivot1[pivot_ptr]=",dataRead("ptr1"),"\n","pivot2[pivot_ptr]=",dataRead("ptr3"),"\n","pivots_are_equal=pivots_are_equal&&(pivot1[pivot_ptr]===pivot2[pivot_ptr])\n","x=",dataRead("ptr0"),"\n","y=",dataRead("ptr2"),"\n","z=",dataRead("ptr4"),"\n",dataWrite("ptr5","x"),"\n",dataWrite("ptr6","y"),"\n",dataWrite("ptr7","z")].join("")):Ue.push(["pivot1=",dataRead(toPointer("el2")),"\n","pivot2=",dataRead(toPointer("el4")),"\n","pivots_are_equal=pivot1===pivot2\n","x=",dataRead(toPointer("el1")),"\n","y=",dataRead(toPointer("el3")),"\n","z=",dataRead(toPointer("el5")),"\n",dataWrite(toPointer("index1"),"x"),"\n",dataWrite(toPointer("index3"),"y"),"\n",dataWrite(toPointer("index5"),"z")].join("")),moveElement("index2","left"),moveElement("index4","right"),Ue.push("if(pivots_are_equal){"),Ue.push("for(k=less;k<=great;++k){"),comparePivot("comp","k",1),Ue.push("if(comp===0){continue}"),Ue.push("if(comp<0){"),Ue.push("if(k!==less){"),swapElements("k","less"),Ue.push("}"),Ue.push("++less"),Ue.push("}else{"),Ue.push("while(true){"),comparePivot("comp","great",1),Ue.push("if(comp>0){"),Ue.push("great--"),Ue.push("}else if(comp<0){"),tripleSwap("k","less","great"),Ue.push("break"),Ue.push("}else{"),swapAndDecrement("k","great"),Ue.push("break"),Ue.push("}"),Ue.push("}"),Ue.push("}"),Ue.push("}"),Ue.push("}else{"),Ue.push("for(k=less;k<=great;++k){"),comparePivot("comp_pivot1","k",1),Ue.push("if(comp_pivot1<0){"),Ue.push("if(k!==less){"),swapElements("k","less"),Ue.push("}"),Ue.push("++less"),Ue.push("}else{"),comparePivot("comp_pivot2","k",2),Ue.push("if(comp_pivot2>0){"),Ue.push("while(true){"),comparePivot("comp","great",2),Ue.push("if(comp>0){"),Ue.push("if(--greatindex5){"),walkPointer("less",1,"++less"),walkPointer("great",2,"--great"),Ue.push("for(k=less;k<=great;++k){"),comparePivot("comp_pivot1","k",1),Ue.push("if(comp_pivot1===0){"),Ue.push("if(k!==less){"),swapElements("k","less"),Ue.push("}"),Ue.push("++less"),Ue.push("}else{"),comparePivot("comp_pivot2","k",2),Ue.push("if(comp_pivot2===0){"),Ue.push("while(true){"),comparePivot("comp","great",2),Ue.push("if(comp===0){"),Ue.push("if(--great1&&rt?new Function("insertionSort","malloc","free",Ue.join("\n"))(Be,rt[0],rt[1]):new Function("insertionSort",Ue.join("\n"))(Be)}(Ee,ze,Ut);return Lt(Ut,er)}},c586:function(Ee,ze,Be){"use strict";Ee.exports=function edgeToAdjacency(Ee,ze){var Be=Ee.length;if("number"!=typeof ze){ze=0;for(var We=0;We>>1,xt)Lt[0]=Ee.xbounds[0],Lt[2]=Ee.xbounds[1],Lt[1]=Ee.ybounds[0],Lt[3]=Ee.ybounds[1];else for(it=0;itLt[2]&&(Lt[2]=Qe),rtLt[3]&&(Lt[3]=rt);if(kt)Be=kt;else for(Be=new Int32Array(ze),it=0;itLt[2]&&(Lt[2]=Qe),rtLt[3]&&(Lt[3]=rt);this.idToIndex=Be,this.pointcloudOptions.idToIndex=Be,this.pointcloudOptions.positions=Ue;var Ut=We(Ee.marker.color),er=We(Ee.marker.border.color),tr=Ee.opacity*Ee.marker.opacity;Ut[3]*=tr,this.pointcloudOptions.color=Ut;var rr=Ee.marker.blend;if(null===rr){rr=at.length<100||ct.length<100}this.pointcloudOptions.blend=rr,er[3]*=tr,this.pointcloudOptions.borderColor=er;var ar=Ee.marker.sizemin,Lr=Math.max(Ee.marker.sizemax,Ee.marker.sizemin);this.pointcloudOptions.sizeMin=ar,this.pointcloudOptions.sizeMax=Lr,this.pointcloudOptions.areaRatio=Ee.marker.border.arearatio,this.pointcloud.update(this.pointcloudOptions);var Qr=this.scene.xaxis,on=this.scene.yaxis,sn=Lr/2||.5;Ee._extremes[Qr._id]=$e(Qr,[Lt[0],Lt[2]],{ppad:sn}),Ee._extremes[on._id]=$e(on,[Lt[1],Lt[3]],{ppad:sn})},rt.dispose=function(){this.pointcloud.dispose()},Ee.exports=function createPointcloud(Ee,ze){var Be=new Pointcloud(Ee,ze.uid);return Be.update(ze),Be}},c6b6:function(Ee,ze){var Be={}.toString;Ee.exports=function(Ee){return Be.call(Ee).slice(8,-1)}},c6b6b:function(Ee,ze,Be){"use strict";var Ue=Be("fc26"),We=Be("3ff5").dfltConfig;var $e={add:function(Ee,ze,Be,Ue,$e){var Qe,rt;Ee.undoQueue=Ee.undoQueue||{index:0,queue:[],sequence:!1},rt=Ee.undoQueue.index,Ee.autoplay?Ee.undoQueue.inSequence||(Ee.autoplay=!1):(!Ee.undoQueue.sequence||Ee.undoQueue.beginSequence?(Qe={undo:{calls:[],args:[]},redo:{calls:[],args:[]}},Ee.undoQueue.queue.splice(rt,Ee.undoQueue.queue.length-rt,Qe),Ee.undoQueue.index+=1):Qe=Ee.undoQueue.queue[rt-1],Ee.undoQueue.beginSequence=!1,Qe&&(Qe.undo.calls.unshift(ze),Qe.undo.args.unshift(Be),Qe.redo.calls.push(Ue),Qe.redo.args.push($e)),Ee.undoQueue.queue.length>We.queueLength&&(Ee.undoQueue.queue.shift(),Ee.undoQueue.index--))},startSequence:function(Ee){Ee.undoQueue=Ee.undoQueue||{index:0,queue:[],sequence:!1},Ee.undoQueue.sequence=!0,Ee.undoQueue.beginSequence=!0},stopSequence:function(Ee){Ee.undoQueue=Ee.undoQueue||{index:0,queue:[],sequence:!1},Ee.undoQueue.sequence=!1,Ee.undoQueue.beginSequence=!1},undo:function undo(Ee){var ze,Be;if(Ee.framework&&Ee.framework.isPolar)Ee.framework.undo();else if(!(void 0===Ee.undoQueue||isNaN(Ee.undoQueue.index)||Ee.undoQueue.index<=0)){for(Ee.undoQueue.index--,ze=Ee.undoQueue.queue[Ee.undoQueue.index],Ee.undoQueue.inSequence=!0,Be=0;Be=Ee.undoQueue.queue.length)){for(ze=Ee.undoQueue.queue[Ee.undoQueue.index],Ee.undoQueue.inSequence=!0,Be=0;Be0}function getRotateFromAngle(Ee){return"auto"===Ee?0:Ee}function getRotatedTextSize(Ee,ze){var Be=Math.PI/180*ze,Ue=Math.abs(Math.sin(Be)),We=Math.abs(Math.cos(Be));return{x:Ee.width*We+Ee.height*Ue,y:Ee.width*Ue+Ee.height*We}}function toMoveInsideBar(Ee,ze,Be,Ue,We,$e){var Qe=!!$e.isHorizontal,rt=!!$e.constrained,it=$e.angle||0,at=$e.anchor||"end",ct="end"===at,ft="start"===at,xt=(($e.leftToRight||0)+1)/2,kt=1-xt,Lt=We.width,Ut=We.height,er=Math.abs(ze-Ee),tr=Math.abs(Ue-Be),rr=er>2*Qr&&tr>2*Qr?Qr:0;er-=2*rr,tr-=2*rr;var ar=getRotateFromAngle(it);"auto"!==it||Lt<=er&&Ut<=tr||!(Lt>er||Ut>tr)||(Lt>tr||Ut>er)&&Lt.01?roundWithLine:function expandToVisible(Ee,ze){return Math.abs(Ee-ze)>=2?roundWithLine(Ee):Ee>ze?Math.ceil(Ee):Math.floor(Ee)};Cn=Jn(Cn,En),En=Jn(En,Cn),Pn=Jn(Pn,In),In=Jn(In,Pn)}var ei=transition($e.ensureSingle(_n,"path"),cn,er,tr);if(ei.style("vector-effect","non-scaling-stroke").attr("d","M"+Cn+","+Pn+"V"+In+"H"+En+"V"+Pn+"Z").call(it.setClipUrl,ze.layerClipId,Ee),!cn.uniformtext.mode&&hasTransition(er)){var ti=it.makePointStyleFns(ft);it.singlePointStyle(at,ei,ft,ti,Ee)}!function appendBarText(Ee,ze,Be,Ue,We,rt,at,ft,kt,er,tr){var on,sn=ze.xaxis,cn=ze.yaxis,un=Ee._fullLayout;function appendTextNode(ze,Be,Ue){return $e.ensureSingle(ze,"text").text(Be).attr({class:"bartext bartext-"+on,"text-anchor":"middle","data-notex":1}).call(it.font,Ue).call(Qe.convertToTspans,Ee)}var hn=Ue[0].trace,dn="h"===hn.orientation,vn=function getText(Ee,ze,Be,Ue,We){var Qe,rt=ze[0].trace;Qe=rt.texttemplate?function calcTexttemplate(Ee,ze,Be,Ue,We){var Qe=ze[0].trace,rt=$e.castOption(Qe,Be,"texttemplate");if(!rt)return"";var it,at,ft,xt,kt="waterfall"===Qe.type,Lt="funnel"===Qe.type;"h"===Qe.orientation?(it="y",at=We,ft="x",xt=Ue):(it="x",at=Ue,ft="y",xt=We);function formatNumber(Ee){return ct(xt,+Ee,!0).text}var Ut=ze[Be],er={};er.label=Ut.p,er.labelLabel=er[it+"Label"]=function formatLabel(Ee){return ct(at,Ee,!0).text}(Ut.p);var tr=$e.castOption(Qe,Ut.i,"text");(0===tr||tr)&&(er.text=tr);er.value=Ut.s,er.valueLabel=er[ft+"Label"]=formatNumber(Ut.s);var rr={};Lr(rr,Qe,Ut.i),kt&&(er.delta=+Ut.rawS||Ut.s,er.deltaLabel=formatNumber(er.delta),er.final=Ut.v,er.finalLabel=formatNumber(er.final),er.initial=er.final-er.delta,er.initialLabel=formatNumber(er.initial));Lt&&(er.value=Ut.s,er.valueLabel=formatNumber(er.value),er.percentInitial=Ut.begR,er.percentInitialLabel=$e.formatPercent(Ut.begR),er.percentPrevious=Ut.difR,er.percentPreviousLabel=$e.formatPercent(Ut.difR),er.percentTotal=Ut.sumR,er.percenTotalLabel=$e.formatPercent(Ut.sumR));var ar=$e.castOption(Qe,Ut.i,"customdata");ar&&(er.customdata=ar);return $e.texttemplateString(rt,er,Ee._d3locale,rr,er,Qe._meta||{})}(Ee,ze,Be,Ue,We):rt.textinfo?function calcTextinfo(Ee,ze,Be,Ue){var We=Ee[0].trace,Qe="h"===We.orientation,rt="waterfall"===We.type,it="funnel"===We.type;function formatNumber(Ee){return ct(Qe?Be:Ue,+Ee,!0).text}var at,ft=We.textinfo,xt=Ee[ze],kt=ft.split("+"),Lt=[],hasFlag=function(Ee){return-1!==kt.indexOf(Ee)};hasFlag("label")&&Lt.push(function formatLabel(Ee){return ct(Qe?Ue:Be,Ee,!0).text}(Ee[ze].p));hasFlag("text")&&(0===(at=$e.castOption(We,xt.i,"text"))||at)&&Lt.push(at);if(rt){var Ut=+xt.rawS||xt.s,er=xt.v,tr=er-Ut;hasFlag("initial")&&Lt.push(formatNumber(tr)),hasFlag("delta")&&Lt.push(formatNumber(Ut)),hasFlag("final")&&Lt.push(formatNumber(er))}if(it){hasFlag("value")&&Lt.push(formatNumber(xt.s));var rr=0;hasFlag("percent initial")&&rr++,hasFlag("percent previous")&&rr++,hasFlag("percent total")&&rr++;var ar=rr>1;hasFlag("percent initial")&&(at=$e.formatPercent(xt.begR),ar&&(at+=" of initial"),Lt.push(at)),hasFlag("percent previous")&&(at=$e.formatPercent(xt.difR),ar&&(at+=" of previous"),Lt.push(at)),hasFlag("percent total")&&(at=$e.formatPercent(xt.sumR),ar&&(at+=" of total"),Lt.push(at))}return Lt.join("
")}(ze,Be,Ue,We):Ut.getValue(rt.text,Be);return Ut.coerceString(rr,Qe)}(un,Ue,We,sn,cn);on=function getTextPosition(Ee,ze){var Be=Ut.getValue(Ee.textposition,ze);return Ut.coerceEnumerated(ar,Be)}(hn,We);var yn="stack"===er.mode||"relative"===er.mode,_n=Ue[We],Mn=!yn||_n._outmost;if(!vn||"none"===on||(_n.isBlank||rt===at||ft===kt)&&("auto"===on||"inside"===on))return void Be.select("text").remove();var Cn=un.font,En=Lt.getBarColor(Ue[We],hn),Pn=Lt.getInsideTextFont(hn,We,Cn,En),In=Lt.getOutsideTextFont(hn,We,Cn),Bn=Be.datum();dn?"log"===sn.type&&Bn.s0<=0&&(rt=sn.range[0]=Jn*(ni/ei):ni>=ei*(ri/Jn);Jn>0&&ei>0&&(ii||ai||oi)?on="inside":(on="outside",Hn.remove(),Hn=null)}else on="inside";if(!Hn){ti=$e.ensureUniformFontSize(Ee,"outside"===on?In:Pn);var si=(Hn=appendTextNode(Be,vn,ti)).attr("transform");if(Hn.attr("transform",""),Kn=it.bBox(Hn.node()),Jn=Kn.width,ei=Kn.height,Hn.attr("transform",si),Jn<=0||ei<=0)return void Hn.remove()}var li,ci,hi=hn.textangle;"outside"===on?(ci="both"===hn.constraintext||"outside"===hn.constraintext,li=function toMoveOutsideBar(Ee,ze,Be,Ue,We,$e){var Qe,rt=!!$e.isHorizontal,it=!!$e.constrained,at=$e.angle||0,ct=We.width,ft=We.height,xt=Math.abs(ze-Ee),kt=Math.abs(Ue-Be);Qe=rt?kt>2*Qr?Qr:0:xt>2*Qr?Qr:0;var Lt=1;it&&(Lt=rt?Math.min(1,kt/ft):Math.min(1,xt/ct));var Ut=getRotateFromAngle(at),er=getRotatedTextSize(We,Ut),tr=(rt?er.x:er.y)/2,rr=(We.left+We.right)/2,ar=(We.top+We.bottom)/2,Lr=(Ee+ze)/2,on=(Be+Ue)/2,sn=0,cn=0,un=rt?dirSign(ze,Ee):dirSign(Be,Ue);rt?(Lr=ze-un*Qe,sn=un*tr):(on=Ue+un*Qe,cn=-un*tr);return{textX:rr,textY:ar,targetX:Lr,targetY:on,anchorX:sn,anchorY:cn,scale:Lt,rotate:Ut}}(rt,at,ft,kt,Kn,{isHorizontal:dn,constrained:ci,angle:hi})):(ci="both"===hn.constraintext||"inside"===hn.constraintext,li=toMoveInsideBar(rt,at,ft,kt,Kn,{isHorizontal:dn,constrained:ci,angle:hi,anchor:hn.insidetextanchor}));li.fontSize=ti.size,xt(hn.type,li,un),_n.transform=li,transition(Hn,un,er,tr).attr("transform",$e.getTextTransform(li))}(Ee,ze,_n,Be,kt,Cn,En,Pn,In,er,tr),ze.layerClipId&&it.hideOutsideRangePoint(at,_n.select("text"),on,sn,ft.xcalendar,ft.ycalendar)}));var Cn=!1===ft.cliponaxis;it.setClipUrl(at,Cn?null:ze.layerClipId,Ee)}));at.getComponentMethod("errorbars","plot")(Ee,un,ze,er)},toMoveInsideBar:toMoveInsideBar}},c7c2:function(Ee,ze,Be){"use strict";Ee.exports={moduleType:"trace",name:"treemap",basePlotModule:Be("b6de"),categories:[],animatable:!0,attributes:Be("97d1"),layoutAttributes:Be("3e8e"),supplyDefaults:Be("2a27"),supplyLayoutDefaults:Be("4aa8"),calc:Be("fc7b").calc,crossTraceCalc:Be("fc7b").crossTraceCalc,plot:Be("57da"),style:Be("da8c").style,colorbar:Be("f3cf"),meta:{}}},c808:function(Ee,ze,Be){Ee.exports=Be("40ce")({args:["array","scalar","index"],pre:{body:"{}",args:[],thisVars:[],localVars:[]},body:{body:"{\nvar _inline_1_v=_inline_1_arg1_,_inline_1_i\nfor(_inline_1_i=0;_inline_1_i<_inline_1_arg2_.length-1;++_inline_1_i) {\n_inline_1_v=_inline_1_v[_inline_1_arg2_[_inline_1_i]]\n}\n_inline_1_arg0_=_inline_1_v[_inline_1_arg2_[_inline_1_arg2_.length-1]]\n}",args:[{name:"_inline_1_arg0_",lvalue:!0,rvalue:!1,count:1},{name:"_inline_1_arg1_",lvalue:!1,rvalue:!0,count:1},{name:"_inline_1_arg2_",lvalue:!1,rvalue:!0,count:4}],thisVars:[],localVars:["_inline_1_i","_inline_1_v"]},post:{body:"{}",args:[],thisVars:[],localVars:[]},funcName:"convert",blockSize:64})},c80f:function(Ee,ze,Be){"use strict";Ee.exports=Be("7a7d")},c879:function(Ee,ze,Be){"use strict";var Ue=Be("19b2"),We=Be("d7f3"),$e=Be("0103"),Qe=Be("371e"),rt=Be("fc26"),it=Be("83d1"),at=Be("3c1c"),ct=Be("765f").formatColor,ft=Be("de81"),xt=Be("1978"),kt=Be("50da"),Lt=Be("b326"),Ut=Be("72a4").DESELECTDIM,er={start:1,left:1,end:-1,right:-1,middle:0,center:0,bottom:1,top:-1},tr=Be("c4c7").appendArrayPointValue;function convertTextStyle(Ee,ze){var Be,We=Ee._fullLayout,$e=ze._length,Qe=ze.textfont,it=ze.textposition,at=Array.isArray(it)?it:[it],ct=Qe.color,ft=Qe.size,xt=Qe.family,kt={},Lt=ze.texttemplate;if(Lt){kt.text=[];var Ut=We._d3locale,er=Array.isArray(Lt),rr=er?Math.min(Lt.length,$e):$e,ar=er?function(Ee){return Lt[Ee]}:function(){return Lt};for(Be=0;BeLt.TOO_MANY_POINTS||ft.hasMarkers(ze)?"rect":"round";if(at&&ze.connectgaps){var xt=Ue[0],kt=Ue[1];for(We=0;We1?it[We]:it[0]:it,Lt=Array.isArray(at)?at.length>1?at[We]:at[0]:at,Ut=er[kt],tr=er[Lt],rr=ct?ct/.8+1:0,ar=-tr*rr-.5*tr;Qe.offset[We]=[Ut*rr/xt,ar/xt]}}return Qe}}},c8ac:function(Ee,ze,Be){"use strict";Ee.exports=function createRBTree(Ee){return new RedBlackTree(Ee||defaultCompare,null)};function RBNode(Ee,ze,Be,Ue,We,$e){this._color=Ee,this.key=ze,this.value=Be,this.left=Ue,this.right=We,this._count=$e}function cloneNode(Ee){return new RBNode(Ee._color,Ee.key,Ee.value,Ee.left,Ee.right,Ee._count)}function repaint(Ee,ze){return new RBNode(Ee,ze.key,ze.value,ze.left,ze.right,ze._count)}function recount(Ee){Ee._count=1+(Ee.left?Ee.left._count:0)+(Ee.right?Ee.right._count:0)}function RedBlackTree(Ee,ze){this._compare=Ee,this.root=ze}var Ue=RedBlackTree.prototype;function doVisitFull(Ee,ze){var Be;if(ze.left&&(Be=doVisitFull(Ee,ze.left)))return Be;return(Be=Ee(ze.key,ze.value))||(ze.right?doVisitFull(Ee,ze.right):void 0)}function doVisitHalf(Ee,ze,Be,Ue){if(ze(Ee,Ue.key)<=0){var We;if(Ue.left)if(We=doVisitHalf(Ee,ze,Be,Ue.left))return We;if(We=Be(Ue.key,Ue.value))return We}if(Ue.right)return doVisitHalf(Ee,ze,Be,Ue.right)}function doVisit(Ee,ze,Be,Ue,We){var $e,Qe=Be(Ee,We.key),rt=Be(ze,We.key);if(Qe<=0){if(We.left&&($e=doVisit(Ee,ze,Be,Ue,We.left)))return $e;if(rt>0&&($e=Ue(We.key,We.value)))return $e}if(rt>0&&We.right)return doVisit(Ee,ze,Be,Ue,We.right)}function RedBlackTreeIterator(Ee,ze){this.tree=Ee,this._stack=ze}Object.defineProperty(Ue,"keys",{get:function(){var Ee=[];return this.forEach((function(ze,Be){Ee.push(ze)})),Ee}}),Object.defineProperty(Ue,"values",{get:function(){var Ee=[];return this.forEach((function(ze,Be){Ee.push(Be)})),Ee}}),Object.defineProperty(Ue,"length",{get:function(){return this.root?this.root._count:0}}),Ue.insert=function(Ee,ze){for(var Be=this._compare,Ue=this.root,We=[],$e=[];Ue;){var Qe=Be(Ee,Ue.key);We.push(Ue),$e.push(Qe),Ue=Qe<=0?Ue.left:Ue.right}We.push(new RBNode(0,Ee,ze,null,null,1));for(var rt=We.length-2;rt>=0;--rt){Ue=We[rt];$e[rt]<=0?We[rt]=new RBNode(Ue._color,Ue.key,Ue.value,We[rt+1],Ue.right,Ue._count+1):We[rt]=new RBNode(Ue._color,Ue.key,Ue.value,Ue.left,We[rt+1],Ue._count+1)}for(rt=We.length-1;rt>1;--rt){var it=We[rt-1];Ue=We[rt];if(1===it._color||1===Ue._color)break;var at=We[rt-2];if(at.left===it)if(it.left===Ue){if(!(ct=at.right)||0!==ct._color){if(at._color=0,at.left=it.right,it._color=1,it.right=at,We[rt-2]=it,We[rt-1]=Ue,recount(at),recount(it),rt>=3)(ft=We[rt-3]).left===at?ft.left=it:ft.right=it;break}it._color=1,at.right=repaint(1,ct),at._color=0,rt-=1}else{if(!(ct=at.right)||0!==ct._color){if(it.right=Ue.left,at._color=0,at.left=Ue.right,Ue._color=1,Ue.left=it,Ue.right=at,We[rt-2]=Ue,We[rt-1]=it,recount(at),recount(it),recount(Ue),rt>=3)(ft=We[rt-3]).left===at?ft.left=Ue:ft.right=Ue;break}it._color=1,at.right=repaint(1,ct),at._color=0,rt-=1}else if(it.right===Ue){if(!(ct=at.left)||0!==ct._color){if(at._color=0,at.right=it.left,it._color=1,it.left=at,We[rt-2]=it,We[rt-1]=Ue,recount(at),recount(it),rt>=3)(ft=We[rt-3]).right===at?ft.right=it:ft.left=it;break}it._color=1,at.left=repaint(1,ct),at._color=0,rt-=1}else{var ct;if(!(ct=at.left)||0!==ct._color){var ft;if(it.left=Ue.right,at._color=0,at.right=Ue.left,Ue._color=1,Ue.right=it,Ue.left=at,We[rt-2]=Ue,We[rt-1]=it,recount(at),recount(it),recount(Ue),rt>=3)(ft=We[rt-3]).right===at?ft.right=Ue:ft.left=Ue;break}it._color=1,at.left=repaint(1,ct),at._color=0,rt-=1}}return We[0]._color=1,new RedBlackTree(Be,We[0])},Ue.forEach=function rbTreeForEach(Ee,ze,Be){if(this.root)switch(arguments.length){case 1:return doVisitFull(Ee,this.root);case 2:return doVisitHalf(ze,this._compare,Ee,this.root);case 3:if(this._compare(ze,Be)>=0)return;return doVisit(ze,Be,this._compare,Ee,this.root)}},Object.defineProperty(Ue,"begin",{get:function(){for(var Ee=[],ze=this.root;ze;)Ee.push(ze),ze=ze.left;return new RedBlackTreeIterator(this,Ee)}}),Object.defineProperty(Ue,"end",{get:function(){for(var Ee=[],ze=this.root;ze;)Ee.push(ze),ze=ze.right;return new RedBlackTreeIterator(this,Ee)}}),Ue.at=function(Ee){if(Ee<0)return new RedBlackTreeIterator(this,[]);for(var ze=this.root,Be=[];;){if(Be.push(ze),ze.left){if(Ee=ze.right._count)break;ze=ze.right}return new RedBlackTreeIterator(this,[])},Ue.ge=function(Ee){for(var ze=this._compare,Be=this.root,Ue=[],We=0;Be;){var $e=ze(Ee,Be.key);Ue.push(Be),$e<=0&&(We=Ue.length),Be=$e<=0?Be.left:Be.right}return Ue.length=We,new RedBlackTreeIterator(this,Ue)},Ue.gt=function(Ee){for(var ze=this._compare,Be=this.root,Ue=[],We=0;Be;){var $e=ze(Ee,Be.key);Ue.push(Be),$e<0&&(We=Ue.length),Be=$e<0?Be.left:Be.right}return Ue.length=We,new RedBlackTreeIterator(this,Ue)},Ue.lt=function(Ee){for(var ze=this._compare,Be=this.root,Ue=[],We=0;Be;){var $e=ze(Ee,Be.key);Ue.push(Be),$e>0&&(We=Ue.length),Be=$e<=0?Be.left:Be.right}return Ue.length=We,new RedBlackTreeIterator(this,Ue)},Ue.le=function(Ee){for(var ze=this._compare,Be=this.root,Ue=[],We=0;Be;){var $e=ze(Ee,Be.key);Ue.push(Be),$e>=0&&(We=Ue.length),Be=$e<0?Be.left:Be.right}return Ue.length=We,new RedBlackTreeIterator(this,Ue)},Ue.find=function(Ee){for(var ze=this._compare,Be=this.root,Ue=[];Be;){var We=ze(Ee,Be.key);if(Ue.push(Be),0===We)return new RedBlackTreeIterator(this,Ue);Be=We<=0?Be.left:Be.right}return new RedBlackTreeIterator(this,[])},Ue.remove=function(Ee){var ze=this.find(Ee);return ze?ze.remove():this},Ue.get=function(Ee){for(var ze=this._compare,Be=this.root;Be;){var Ue=ze(Ee,Be.key);if(0===Ue)return Be.value;Be=Ue<=0?Be.left:Be.right}};var We=RedBlackTreeIterator.prototype;function swapNode(Ee,ze){Ee.key=ze.key,Ee.value=ze.value,Ee.left=ze.left,Ee.right=ze.right,Ee._color=ze._color,Ee._count=ze._count}function defaultCompare(Ee,ze){return Eeze?1:0}Object.defineProperty(We,"valid",{get:function(){return this._stack.length>0}}),Object.defineProperty(We,"node",{get:function(){return this._stack.length>0?this._stack[this._stack.length-1]:null},enumerable:!0}),We.clone=function(){return new RedBlackTreeIterator(this.tree,this._stack.slice())},We.remove=function(){var Ee=this._stack;if(0===Ee.length)return this.tree;var ze=new Array(Ee.length),Be=Ee[Ee.length-1];ze[ze.length-1]=new RBNode(Be._color,Be.key,Be.value,Be.left,Be.right,Be._count);for(var Ue=Ee.length-2;Ue>=0;--Ue){(Be=Ee[Ue]).left===Ee[Ue+1]?ze[Ue]=new RBNode(Be._color,Be.key,Be.value,ze[Ue+1],Be.right,Be._count):ze[Ue]=new RBNode(Be._color,Be.key,Be.value,Be.left,ze[Ue+1],Be._count)}if((Be=ze[ze.length-1]).left&&Be.right){var We=ze.length;for(Be=Be.left;Be.right;)ze.push(Be),Be=Be.right;var $e=ze[We-1];ze.push(new RBNode(Be._color,$e.key,$e.value,Be.left,Be.right,Be._count)),ze[We-1].key=Be.key,ze[We-1].value=Be.value;for(Ue=ze.length-2;Ue>=We;--Ue)Be=ze[Ue],ze[Ue]=new RBNode(Be._color,Be.key,Be.value,Be.left,ze[Ue+1],Be._count);ze[We-1].left=ze[We]}if(0===(Be=ze[ze.length-1])._color){var Qe=ze[ze.length-2];Qe.left===Be?Qe.left=null:Qe.right===Be&&(Qe.right=null),ze.pop();for(Ue=0;Ue=0;--$e){if(ze=Ee[$e],0===$e)return void(ze._color=1);if((Be=Ee[$e-1]).left===ze){if((Ue=Be.right).right&&0===Ue.right._color){if(We=(Ue=Be.right=cloneNode(Ue)).right=cloneNode(Ue.right),Be.right=Ue.left,Ue.left=Be,Ue.right=We,Ue._color=Be._color,ze._color=1,Be._color=1,We._color=1,recount(Be),recount(Ue),$e>1)(Qe=Ee[$e-2]).left===Be?Qe.left=Ue:Qe.right=Ue;return void(Ee[$e-1]=Ue)}if(Ue.left&&0===Ue.left._color){if(We=(Ue=Be.right=cloneNode(Ue)).left=cloneNode(Ue.left),Be.right=We.left,Ue.left=We.right,We.left=Be,We.right=Ue,We._color=Be._color,Be._color=1,Ue._color=1,ze._color=1,recount(Be),recount(Ue),recount(We),$e>1)(Qe=Ee[$e-2]).left===Be?Qe.left=We:Qe.right=We;return void(Ee[$e-1]=We)}if(1===Ue._color){if(0===Be._color)return Be._color=1,void(Be.right=repaint(0,Ue));Be.right=repaint(0,Ue);continue}Ue=cloneNode(Ue),Be.right=Ue.left,Ue.left=Be,Ue._color=Be._color,Be._color=0,recount(Be),recount(Ue),$e>1&&((Qe=Ee[$e-2]).left===Be?Qe.left=Ue:Qe.right=Ue),Ee[$e-1]=Ue,Ee[$e]=Be,$e+11)(Qe=Ee[$e-2]).right===Be?Qe.right=Ue:Qe.left=Ue;return void(Ee[$e-1]=Ue)}if(Ue.right&&0===Ue.right._color){if(We=(Ue=Be.left=cloneNode(Ue)).right=cloneNode(Ue.right),Be.left=We.right,Ue.right=We.left,We.right=Be,We.left=Ue,We._color=Be._color,Be._color=1,Ue._color=1,ze._color=1,recount(Be),recount(Ue),recount(We),$e>1)(Qe=Ee[$e-2]).right===Be?Qe.right=We:Qe.left=We;return void(Ee[$e-1]=We)}if(1===Ue._color){if(0===Be._color)return Be._color=1,void(Be.left=repaint(0,Ue));Be.left=repaint(0,Ue);continue}var Qe;Ue=cloneNode(Ue),Be.left=Ue.right,Ue.right=Be,Ue._color=Be._color,Be._color=0,recount(Be),recount(Ue),$e>1&&((Qe=Ee[$e-2]).right===Be?Qe.right=Ue:Qe.left=Ue),Ee[$e-1]=Ue,Ee[$e]=Be,$e+10)return this._stack[this._stack.length-1].key},enumerable:!0}),Object.defineProperty(We,"value",{get:function(){if(this._stack.length>0)return this._stack[this._stack.length-1].value},enumerable:!0}),Object.defineProperty(We,"index",{get:function(){var Ee=0,ze=this._stack;if(0===ze.length){var Be=this.tree.root;return Be?Be._count:0}ze[ze.length-1].left&&(Ee=ze[ze.length-1].left._count);for(var Ue=ze.length-2;Ue>=0;--Ue)ze[Ue+1]===ze[Ue].right&&(++Ee,ze[Ue].left&&(Ee+=ze[Ue].left._count));return Ee},enumerable:!0}),We.next=function(){var Ee=this._stack;if(0!==Ee.length){var ze=Ee[Ee.length-1];if(ze.right)for(ze=ze.right;ze;)Ee.push(ze),ze=ze.left;else for(Ee.pop();Ee.length>0&&Ee[Ee.length-1].right===ze;)ze=Ee[Ee.length-1],Ee.pop()}},Object.defineProperty(We,"hasNext",{get:function(){var Ee=this._stack;if(0===Ee.length)return!1;if(Ee[Ee.length-1].right)return!0;for(var ze=Ee.length-1;ze>0;--ze)if(Ee[ze-1].left===Ee[ze])return!0;return!1}}),We.update=function(Ee){var ze=this._stack;if(0===ze.length)throw new Error("Can't update empty node!");var Be=new Array(ze.length),Ue=ze[ze.length-1];Be[Be.length-1]=new RBNode(Ue._color,Ue.key,Ee,Ue.left,Ue.right,Ue._count);for(var We=ze.length-2;We>=0;--We)(Ue=ze[We]).left===ze[We+1]?Be[We]=new RBNode(Ue._color,Ue.key,Ue.value,Be[We+1],Ue.right,Ue._count):Be[We]=new RBNode(Ue._color,Ue.key,Ue.value,Ue.left,Be[We+1],Ue._count);return new RedBlackTree(this.tree._compare,Be[0])},We.prev=function(){var Ee=this._stack;if(0!==Ee.length){var ze=Ee[Ee.length-1];if(ze.left)for(ze=ze.left;ze;)Ee.push(ze),ze=ze.right;else for(Ee.pop();Ee.length>0&&Ee[Ee.length-1].left===ze;)ze=Ee[Ee.length-1],Ee.pop()}},Object.defineProperty(We,"hasPrev",{get:function(){var Ee=this._stack;if(0===Ee.length)return!1;if(Ee[Ee.length-1].left)return!0;for(var ze=Ee.length-1;ze>0;--ze)if(Ee[ze-1].right===Ee[ze])return!0;return!1}})},c8b8:function(Ee,ze,Be){"use strict";var Ue=Be("c947");Ee.exports=function partition(Ee,ze,Be){var We,$e=Be.flipX,Qe=Be.flipY,rt="dice-slice"===Be.packing,it=Be.pad[Qe?"bottom":"top"],at=Be.pad[$e?"right":"left"],ct=Be.pad[$e?"left":"right"],ft=Be.pad[Qe?"top":"bottom"];rt&&(We=at,at=it,it=We,We=ct,ct=ft,ft=We);var xt=Ue.treemap().tile(function getTilingMethod(Ee,ze){switch(Ee){case"squarify":return Ue.treemapSquarify.ratio(ze);case"binary":return Ue.treemapBinary;case"dice":return Ue.treemapDice;case"slice":return Ue.treemapSlice;default:return Ue.treemapSliceDice}}(Be.packing,Be.squarifyratio)).paddingInner(Be.pad.inner).paddingLeft(at).paddingRight(ct).paddingTop(it).paddingBottom(ft).size(rt?[ze[1],ze[0]]:ze)(Ee);return(rt||$e||Qe)&&function flipTree(Ee,ze,Be){var Ue;Be.swapXY&&(Ue=Ee.x0,Ee.x0=Ee.y0,Ee.y0=Ue,Ue=Ee.x1,Ee.x1=Ee.y1,Ee.y1=Ue);Be.flipX&&(Ue=Ee.x0,Ee.x0=ze[0]-Ee.x1,Ee.x1=ze[0]-Ue);Be.flipY&&(Ue=Ee.y0,Ee.y0=ze[1]-Ee.y1,Ee.y1=ze[1]-Ue);var We=Ee.children;if(We)for(var $e=0;$e=0;)ze+=Be[Ue].value;else ze=1;Ee.value=ze}function hierarchy(Ee,ze){var Be,Ue,We,$e,Qe,rt=new Node(Ee),it=+Ee.value&&(rt.value=Ee.value),at=[rt];for(null==ze&&(ze=defaultChildren);Be=at.pop();)if(it&&(Be.value=+Be.data.value),(We=ze(Be.data))&&(Qe=We.length))for(Be.children=new Array(Qe),$e=Qe-1;$e>=0;--$e)at.push(Ue=Be.children[$e]=new Node(We[$e])),Ue.parent=Be,Ue.depth=Be.depth+1;return rt.eachBefore(computeHeight)}function defaultChildren(Ee){return Ee.children}function copyData(Ee){Ee.data=Ee.data.data}function computeHeight(Ee){var ze=0;do{Ee.height=ze}while((Ee=Ee.parent)&&Ee.height<++ze)}function Node(Ee){this.data=Ee,this.depth=this.height=0,this.parent=null}Node.prototype=hierarchy.prototype={constructor:Node,count:function(){return this.eachAfter(count)},each:function(Ee){var ze,Be,Ue,We,$e=this,Qe=[$e];do{for(ze=Qe.reverse(),Qe=[];$e=ze.pop();)if(Ee($e),Be=$e.children)for(Ue=0,We=Be.length;Ue=0;--Be)We.push(ze[Be]);return this},sum:function(Ee){return this.eachAfter((function(ze){for(var Be=+Ee(ze.data)||0,Ue=ze.children,We=Ue&&Ue.length;--We>=0;)Be+=Ue[We].value;ze.value=Be}))},sort:function(Ee){return this.eachBefore((function(ze){ze.children&&ze.children.sort(Ee)}))},path:function(Ee){for(var ze=this,Be=function leastCommonAncestor(Ee,ze){if(Ee===ze)return Ee;var Be=Ee.ancestors(),Ue=ze.ancestors(),We=null;Ee=Be.pop(),ze=Ue.pop();for(;Ee===ze;)We=Ee,Ee=Be.pop(),ze=Ue.pop();return We}(ze,Ee),Ue=[ze];ze!==Be;)ze=ze.parent,Ue.push(ze);for(var We=Ue.length;Ee!==Be;)Ue.splice(We,0,Ee),Ee=Ee.parent;return Ue},ancestors:function(){for(var Ee=this,ze=[Ee];Ee=Ee.parent;)ze.push(Ee);return ze},descendants:function(){var Ee=[];return this.each((function(ze){Ee.push(ze)})),Ee},leaves:function(){var Ee=[];return this.eachBefore((function(ze){ze.children||Ee.push(ze)})),Ee},links:function(){var Ee=this,ze=[];return Ee.each((function(Be){Be!==Ee&&ze.push({source:Be.parent,target:Be})})),ze},copy:function node_copy(){return hierarchy(this).eachBefore(copyData)}};var Ue=Array.prototype.slice;var enclose=function(Ee){for(var ze,Be,We=0,$e=(Ee=function shuffle(Ee){for(var ze,Be,Ue=Ee.length;Ue;)Be=Math.random()*Ue--|0,ze=Ee[Ue],Ee[Ue]=Ee[Be],Ee[Be]=ze;return Ee}(Ue.call(Ee))).length,Qe=[];We<$e;)ze=Ee[We],Be&&enclosesWeak(Be,ze)?++We:(Be=encloseBasis(Qe=extendBasis(Qe,ze)),We=0);return Be};function extendBasis(Ee,ze){var Be,Ue;if(enclosesWeakAll(ze,Ee))return[ze];for(Be=0;Be0&&Be*Be>Ue*Ue+We*We}function enclosesWeakAll(Ee,ze){for(var Be=0;Be(Qe*=Qe)?(Ue=(at+Qe-We)/(2*at),$e=Math.sqrt(Math.max(0,Qe/at-Ue*Ue)),Be.x=Ee.x-Ue*rt-$e*it,Be.y=Ee.y-Ue*it+$e*rt):(Ue=(at+We-Qe)/(2*at),$e=Math.sqrt(Math.max(0,We/at-Ue*Ue)),Be.x=ze.x+Ue*rt-$e*it,Be.y=ze.y+Ue*it+$e*rt)):(Be.x=ze.x+Be.r,Be.y=ze.y)}function intersects(Ee,ze){var Be=Ee.r+ze.r-1e-6,Ue=ze.x-Ee.x,We=ze.y-Ee.y;return Be>0&&Be*Be>Ue*Ue+We*We}function score(Ee){var ze=Ee._,Be=Ee.next._,Ue=ze.r+Be.r,We=(ze.x*Be.r+Be.x*ze.r)/Ue,$e=(ze.y*Be.r+Be.y*ze.r)/Ue;return We*We+$e*$e}function siblings_Node(Ee){this._=Ee,this.next=null,this.previous=null}function packEnclose(Ee){if(!(We=Ee.length))return 0;var ze,Be,Ue,We,$e,Qe,rt,it,at,ct,ft;if((ze=Ee[0]).x=0,ze.y=0,!(We>1))return ze.r;if(Be=Ee[1],ze.x=-Be.r,Be.x=ze.r,Be.y=0,!(We>2))return ze.r+Be.r;place(Be,ze,Ue=Ee[2]),ze=new siblings_Node(ze),Be=new siblings_Node(Be),Ue=new siblings_Node(Ue),ze.next=Ue.previous=Be,Be.next=ze.previous=Ue,Ue.next=Be.previous=ze;e:for(rt=3;rt0)throw new Error("cycle");return rt}return stratify.id=function(ze){return arguments.length?(Ee=required(ze),stratify):Ee},stratify.parentId=function(Ee){return arguments.length?(ze=required(Ee),stratify):ze},stratify};function tree_defaultSeparation(Ee,ze){return Ee.parent===ze.parent?1:2}function nextLeft(Ee){var ze=Ee.children;return ze?ze[0]:Ee.t}function nextRight(Ee){var ze=Ee.children;return ze?ze[ze.length-1]:Ee.t}function moveSubtree(Ee,ze,Be){var Ue=Be/(ze.i-Ee.i);ze.c-=Ue,ze.s+=Be,Ee.c+=Ue,ze.z+=Be,ze.m+=Be}function nextAncestor(Ee,ze,Be){return Ee.a.parent===ze.parent?Ee.a:Be}function TreeNode(Ee,ze){this._=Ee,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=ze}TreeNode.prototype=Object.create(Node.prototype);var tree=function(){var Ee=tree_defaultSeparation,ze=1,Be=1,Ue=null;function tree(We){var $e=function treeRoot(Ee){for(var ze,Be,Ue,We,$e,Qe=new TreeNode(Ee,0),rt=[Qe];ze=rt.pop();)if(Ue=ze._.children)for(ze.children=new Array($e=Ue.length),We=$e-1;We>=0;--We)rt.push(Be=ze.children[We]=new TreeNode(Ue[We],We)),Be.parent=ze;return(Qe.parent=new TreeNode(null,0)).children=[Qe],Qe}(We);if($e.eachAfter(firstWalk),$e.parent.m=-$e.z,$e.eachBefore(secondWalk),Ue)We.eachBefore(sizeNode);else{var Qe=We,rt=We,it=We;We.eachBefore((function(Ee){Ee.xrt.x&&(rt=Ee),Ee.depth>it.depth&&(it=Ee)}));var at=Qe===rt?1:Ee(Qe,rt)/2,ct=at-Qe.x,ft=ze/(rt.x+at+ct),xt=Be/(it.depth||1);We.eachBefore((function(Ee){Ee.x=(Ee.x+ct)*ft,Ee.y=Ee.depth*xt}))}return We}function firstWalk(ze){var Be=ze.children,Ue=ze.parent.children,We=ze.i?Ue[ze.i-1]:null;if(Be){!function executeShifts(Ee){for(var ze,Be=0,Ue=0,We=Ee.children,$e=We.length;--$e>=0;)(ze=We[$e]).z+=Be,ze.m+=Be,Be+=ze.s+(Ue+=ze.c)}(ze);var $e=(Be[0].z+Be[Be.length-1].z)/2;We?(ze.z=We.z+Ee(ze._,We._),ze.m=ze.z-$e):ze.z=$e}else We&&(ze.z=We.z+Ee(ze._,We._));ze.parent.A=function apportion(ze,Be,Ue){if(Be){for(var We,$e=ze,Qe=ze,rt=Be,it=$e.parent.children[0],at=$e.m,ct=Qe.m,ft=rt.m,xt=it.m;rt=nextRight(rt),$e=nextLeft($e),rt&&$e;)it=nextLeft(it),(Qe=nextRight(Qe)).a=ze,(We=rt.z+ft-$e.z-at+Ee(rt._,$e._))>0&&(moveSubtree(nextAncestor(rt,ze,Ue),ze,We),at+=We,ct+=We),ft+=rt.m,at+=$e.m,xt+=it.m,ct+=Qe.m;rt&&!nextRight(Qe)&&(Qe.t=rt,Qe.m+=ft-ct),$e&&!nextLeft(it)&&(it.t=$e,it.m+=at-xt,Ue=ze)}return Ue}(ze,We,ze.parent.A||Ue[0])}function secondWalk(Ee){Ee._.x=Ee.z+Ee.parent.m,Ee.m+=Ee.parent.m}function sizeNode(Ee){Ee.x*=ze,Ee.y=Ee.depth*Be}return tree.separation=function(ze){return arguments.length?(Ee=ze,tree):Ee},tree.size=function(Ee){return arguments.length?(Ue=!1,ze=+Ee[0],Be=+Ee[1],tree):Ue?null:[ze,Be]},tree.nodeSize=function(Ee){return arguments.length?(Ue=!0,ze=+Ee[0],Be=+Ee[1],tree):Ue?[ze,Be]:null},tree},treemap_slice=function(Ee,ze,Be,Ue,We){for(var $e,Qe=Ee.children,rt=-1,it=Qe.length,at=Ee.value&&(We-Be)/Ee.value;++rtxt&&(xt=rt),er=ct*ct*Ut,(kt=Math.max(xt/er,er/ft))>Lt){ct-=rt;break}Lt=kt}tr.push(Qe={value:ct,dice:it1?Ee:1)},squarify}(Qe),src_treemap=function(){var Ee=rt,ze=!1,Be=1,Ue=1,We=[0],$e=constantZero,Qe=constantZero,it=constantZero,at=constantZero,ct=constantZero;function treemap(Ee){return Ee.x0=Ee.y0=0,Ee.x1=Be,Ee.y1=Ue,Ee.eachBefore(positionNode),We=[0],ze&&Ee.eachBefore(treemap_round),Ee}function positionNode(ze){var Be=We[ze.depth],Ue=ze.x0+Be,rt=ze.y0+Be,ft=ze.x1-Be,xt=ze.y1-Be;ft=ze-1){var it=rt[Ee];return it.x0=Ue,it.y0=We,it.x1=$e,void(it.y1=Qe)}var ct=at[Ee],ft=Be/2+ct,xt=Ee+1,kt=ze-1;for(;xt>>1;at[Lt]Qe-We){var tr=(Ue*er+$e*Ut)/Be;partition(Ee,xt,Ut,Ue,We,tr,Qe),partition(xt,ze,er,tr,We,$e,Qe)}else{var rr=(We*er+Qe*Ut)/Be;partition(Ee,xt,Ut,Ue,We,$e,rr),partition(xt,ze,er,Ue,rr,$e,Qe)}}(0,it,Ee.value,ze,Be,Ue,We)},sliceDice=function(Ee,ze,Be,Ue,We){(1&Ee.depth?treemap_slice:dice)(Ee,ze,Be,Ue,We)},it=function custom(Ee){function resquarify(ze,Be,Ue,We,$e){if((Qe=ze._squarify)&&Qe.ratio===Ee)for(var Qe,rt,it,at,ct,ft=-1,xt=Qe.length,kt=ze.value;++ft1?Ee:1)},resquarify}(Qe);Be.d(ze,"cluster",(function(){return cluster})),Be.d(ze,"hierarchy",(function(){return hierarchy})),Be.d(ze,"pack",(function(){return src_pack})),Be.d(ze,"packSiblings",(function(){return siblings})),Be.d(ze,"packEnclose",(function(){return enclose})),Be.d(ze,"partition",(function(){return src_partition})),Be.d(ze,"stratify",(function(){return src_stratify})),Be.d(ze,"tree",(function(){return tree})),Be.d(ze,"treemap",(function(){return src_treemap})),Be.d(ze,"treemapBinary",(function(){return binary})),Be.d(ze,"treemapDice",(function(){return dice})),Be.d(ze,"treemapSlice",(function(){return treemap_slice})),Be.d(ze,"treemapSliceDice",(function(){return sliceDice})),Be.d(ze,"treemapSquarify",(function(){return rt})),Be.d(ze,"treemapResquarify",(function(){return it}))},c953:function(Ee,ze,Be){"use strict";var Ue=Be("0f37"),We="data-savedcursor";Ee.exports=function overrideCursor(Ee,ze){var Be=Ee.attr(We);if(ze){if(!Be){for(var $e=(Ee.attr("class")||"").split(" "),Qe=0;Qe<$e.length;Qe++){var rt=$e[Qe];0===rt.indexOf("cursor-")&&Ee.attr(We,rt.substr(7)).classed(rt,!1)}Ee.attr(We)||Ee.attr(We,"!!")}Ue(Ee,ze)}else Be&&(Ee.attr(We,null),"!!"===Be?Ue(Ee):Ue(Ee,Be))}},c997:function(Ee,ze,Be){"use strict";Ee.exports=function(Ee,ze){var Be,Ue=Ee[0],We=Ue.z;switch(ze.type){case"levels":var $e=Math.min(We[0][0],We[0][1]);for(Be=0;BeQe.level||Qe.starts.length&&$e===Qe.level)}break;case"constraint":if(Ue.prefixBoundary=!1,Ue.edgepaths.length)return;var rt=Ue.x.length,it=Ue.y.length,at=-1/0,ct=1/0;for(Be=0;Be":kt>at&&(Ue.prefixBoundary=!0);break;case"<":(ktat||Ue.starts.length&&xt===ct)&&(Ue.prefixBoundary=!0);break;case"][":ft=Math.min(kt[0],kt[1]),xt=Math.max(kt[0],kt[1]),ftat&&(Ue.prefixBoundary=!0)}}}},c99f:function(Ee,ze,Be){"use strict";var Ue=Be("fb5a"),We=Be("107c").line,$e=Be("a876"),Qe=Be("94d5").hovertemplateAttrs,rt=Be("94d5").texttemplateAttrs,it=Be("b205c"),at=Be("9092").extendFlat,ct=Be("d115");Ee.exports={x:Ue.x,x0:Ue.x0,dx:Ue.dx,y:Ue.y,y0:Ue.y0,dy:Ue.dy,hovertext:Ue.hovertext,hovertemplate:Qe({},{keys:it.eventDataKeys}),hoverinfo:at({},$e.hoverinfo,{flags:["name","x","y","text","percent initial","percent previous","percent total"]}),textinfo:{valType:"flaglist",flags:["label","text","percent initial","percent previous","percent total","value"],extras:["none"],editType:"plot",arrayOk:!1},texttemplate:rt({editType:"plot"},{keys:it.eventDataKeys.concat(["label","value"])}),text:Ue.text,textposition:at({},Ue.textposition,{dflt:"auto"}),insidetextanchor:at({},Ue.insidetextanchor,{dflt:"middle"}),textangle:at({},Ue.textangle,{dflt:0}),textfont:Ue.textfont,insidetextfont:Ue.insidetextfont,outsidetextfont:Ue.outsidetextfont,constraintext:Ue.constraintext,cliponaxis:Ue.cliponaxis,orientation:at({},Ue.orientation,{}),offset:at({},Ue.offset,{arrayOk:!1}),width:at({},Ue.width,{arrayOk:!1}),marker:Ue.marker,connector:{fillcolor:{valType:"color",editType:"style"},line:{color:at({},We.color,{dflt:ct.defaultLine}),width:at({},We.width,{dflt:0,editType:"plot"}),dash:We.dash,editType:"style"},visible:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},offsetgroup:Ue.offsetgroup,alignmentgroup:Ue.alignmentgroup}},c9bc:function(Ee,ze,Be){"use strict";var Ue=Be("371e"),We=Be("fc26");Ee.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:Be("14b6")}}},layoutAttributes:Be("14b6"),handleDefaults:Be("c4f4"),includeBasePlot:function includeGL3D(Ee,ze){var Be=Ue.subplotsRegistry.gl3d;if(!Be)return;for(var $e=Be.attrRegex,Qe=Object.keys(Ee),rt=0;rt"),color:castHoverOption(rt,"bgcolor")||Qe.addOpacity(ft.color,1),borderColor:castHoverOption(rt,"bordercolor"),fontFamily:castHoverOption(rt,"font.family"),fontSize:castHoverOption(rt,"font.size"),fontColor:castHoverOption(rt,"font.color"),nameLength:castHoverOption(rt,"namelength"),textAlign:castHoverOption(rt,"align"),idealAlign:Ue.event.x"),color:castHoverOption(Qe,"bgcolor")||We.tinyColorHue,borderColor:castHoverOption(Qe,"bordercolor"),fontFamily:castHoverOption(Qe,"font.family"),fontSize:castHoverOption(Qe,"font.size"),fontColor:castHoverOption(Qe,"font.color"),nameLength:castHoverOption(Qe,"namelength"),textAlign:castHoverOption(Qe,"align"),idealAlign:"left",hovertemplate:Qe.hovertemplate,hovertemplateLabels:Lt,eventData:[We.node]},{container:Be._hoverlayer.node(),outerContainer:Be._paper.node(),gd:Ee});makeTranslucent(Ut,.85),makeTextContrasty(Ut)}}},unhover:function(ze,We,Qe){!1!==Ee._fullLayout.hovermode&&(Ue.select(ze).call(nodeNonHoveredStyle,We,Qe),"skip"!==We.node.trace.node.hoverinfo&&(We.node.fullData=We.node.trace,Ee.emit("plotly_unhover",{event:Ue.event,points:[We.node]})),$e.loneUnhover(Be._hoverlayer.node()))},select:function(ze,Be,We){var Qe=Be.node;Qe.originalEvent=Ue.event,Ee._hoverdata=[Qe],Ue.select(ze).call(nodeNonHoveredStyle,Be,We),$e.click(Ee,{target:!0})}}})}},c9eb:function(Ee,ze,Be){var Ue=Be("e98f");ze.pointVertex=Ue(["precision mediump float;\n#define GLSLIFY 1\n\nattribute vec2 position;\n\nuniform mat3 matrix;\nuniform float pointSize;\nuniform float pointCloud;\n\nhighp float rand(vec2 co) {\n highp float a = 12.9898;\n highp float b = 78.233;\n highp float c = 43758.5453;\n highp float d = dot(co.xy, vec2(a, b));\n highp float e = mod(d, 3.14);\n return fract(sin(e) * c);\n}\n\nvoid main() {\n vec3 hgPosition = matrix * vec3(position, 1);\n gl_Position = vec4(hgPosition.xy, 0, hgPosition.z);\n // if we don't jitter the point size a bit, overall point cloud\n // saturation 'jumps' on zooming, which is disturbing and confusing\n gl_PointSize = pointSize * ((19.5 + rand(position)) / 20.0);\n if(pointCloud != 0.0) { // pointCloud is truthy\n // get the same square surface as circle would be\n gl_PointSize *= 0.886;\n }\n}"]),ze.pointFragment=Ue(["precision mediump float;\n#define GLSLIFY 1\n\nuniform vec4 color, borderColor;\nuniform float centerFraction;\nuniform float pointCloud;\n\nvoid main() {\n float radius;\n vec4 baseColor;\n if(pointCloud != 0.0) { // pointCloud is truthy\n if(centerFraction == 1.0) {\n gl_FragColor = color;\n } else {\n gl_FragColor = mix(borderColor, color, centerFraction);\n }\n } else {\n radius = length(2.0 * gl_PointCoord.xy - 1.0);\n if(radius > 1.0) {\n discard;\n }\n baseColor = mix(borderColor, color, step(radius, centerFraction));\n gl_FragColor = vec4(baseColor.rgb * baseColor.a, baseColor.a);\n }\n}\n"]),ze.pickVertex=Ue(["precision mediump float;\n#define GLSLIFY 1\n\nattribute vec2 position;\nattribute vec4 pickId;\n\nuniform mat3 matrix;\nuniform float pointSize;\nuniform vec4 pickOffset;\n\nvarying vec4 fragId;\n\nvoid main() {\n vec3 hgPosition = matrix * vec3(position, 1);\n gl_Position = vec4(hgPosition.xy, 0, hgPosition.z);\n gl_PointSize = pointSize;\n\n vec4 id = pickId + pickOffset;\n id.y += floor(id.x / 256.0);\n id.x -= floor(id.x / 256.0) * 256.0;\n\n id.z += floor(id.y / 256.0);\n id.y -= floor(id.y / 256.0) * 256.0;\n\n id.w += floor(id.z / 256.0);\n id.z -= floor(id.z / 256.0) * 256.0;\n\n fragId = id;\n}\n"]),ze.pickFragment=Ue(["precision mediump float;\n#define GLSLIFY 1\n\nvarying vec4 fragId;\n\nvoid main() {\n float radius = length(2.0 * gl_PointCoord.xy - 1.0);\n if(radius > 1.0) {\n discard;\n }\n gl_FragColor = fragId / 255.0;\n}\n"])},ca23:function(Ee,ze,Be){"use strict";Ee.exports=function monotoneConvexHull2D(Ee){var ze=Ee.length;if(ze<3){for(var Be=new Array(ze),We=0;We1&&Ue(Ee[Qe[ct-2]],Ee[Qe[ct-1]],at)<=0;)ct-=1,Qe.pop();for(Qe.push(it),ct=rt.length;ct>1&&Ue(Ee[rt[ct-2]],Ee[rt[ct-1]],at)>=0;)ct-=1,rt.pop();rt.push(it)}Be=new Array(rt.length+Qe.length-2);for(var ft=0,xt=(We=0,Qe.length);We0;--kt)Be[ft++]=rt[kt];return Be};var Ue=Be("92ba")[3]},ca39:function(Ee,ze,Be){"use strict";Ee.exports=function convexHullnD(Ee,ze){try{return Ue(Ee,!0)}catch(Qe){var Be=We(Ee);if(Be.length<=ze)return[];var $e=function permute(Ee,ze){for(var Be=Ee.length,Ue=new Array(Be),We=0;We=ze[it]&&(rt+=1);$e[Qe]=rt}}return Ee}(Ue($e,!0),Be)}};var Ue=Be("0000"),We=Be("7899")},ca67:function(Ee,ze,Be){"use strict";var Ue=Be("4248"),We={getDelay:Ue.getDelay,getRedrawFunc:Ue.getRedrawFunc,clone:Be("d18e"),toSVG:Be("cb04"),svgToImg:Be("4ebd"),toImage:Be("ee92"),downloadImage:Be("ad91")};Ee.exports=We},ca84:function(Ee,ze,Be){var Ue=Be("5135"),We=Be("fc6a"),$e=Be("4d64").indexOf,Qe=Be("d012");Ee.exports=function(Ee,ze){var Be,rt=We(Ee),it=0,at=[];for(Be in rt)!Ue(Qe,Be)&&Ue(rt,Be)&&at.push(Be);for(;ze.length>it;)Ue(rt,Be=ze[it++])&&(~$e(at,Be)||at.push(Be));return at}},ca92:function(Ee,ze,Be){"use strict";var Ue=Be("fc26"),We=Be("0642"),$e=Be("fa10"),Qe=Be("0681");Ee.exports=function hoverPoints(Ee,ze,Be,rt,it){var at,ct,ft=Ee.cd,xt=ft[0].trace,kt=xt.hoveron,Lt=-1!==kt.indexOf("violins"),Ut=-1!==kt.indexOf("kde"),er=[];if(Lt||Ut){var tr=$e.hoverOnBoxes(Ee,ze,Be,rt);if(Ut&&tr.length>0){var rr,ar,Lr,Qr,on,sn=Ee.xa,cn=Ee.ya;"h"===xt.orientation?(on=ze,rr="y",Lr=cn,ar="x",Qr=sn):(on=Be,rr="x",Lr=sn,ar="y",Qr=cn);var un=ft[Ee.index];if(on>=un.span[0]&&on<=un.span[1]){var hn=Ue.extendFlat({},Ee),dn=Qr.c2p(on,!0),vn=Qe.getKdeValue(un,xt,on),yn=Qe.getPositionOnKdePath(un,xt,dn),_n=Lr._offset,Mn=Lr._length;hn[rr+"0"]=yn[0],hn[rr+"1"]=yn[1],hn[ar+"0"]=hn[ar+"1"]=dn,hn[ar+"Label"]=ar+": "+We.hoverLabelText(Qr,on)+", "+ft[0].t.labels.kde+" "+vn.toFixed(3),hn.spikeDistance=tr[0].spikeDistance;var Cn=rr+"Spike";hn[Cn]=tr[0][Cn],tr[0].spikeDistance=void 0,tr[0][Cn]=void 0,hn.hovertemplate=!1,er.push(hn),(ct={stroke:Ee.color})[rr+"1"]=Ue.constrain(_n+yn[0],_n,_n+Mn),ct[rr+"2"]=Ue.constrain(_n+yn[1],_n,_n+Mn),ct[ar+"1"]=ct[ar+"2"]=Qr._offset+dn}}Lt&&(er=er.concat(tr))}-1!==kt.indexOf("points")&&(at=$e.hoverOnPoints(Ee,ze,Be));var En=it.selectAll(".violinline-"+xt.uid).data(ct?[0]:[]);return En.enter().append("line").classed("violinline-"+xt.uid,!0).attr("stroke-width",1.5),En.exit().remove(),En.attr(ct),"closest"===rt?at?[at]:er:at?(er.push(at),er):er}},cac1:function(Ee,ze,Be){Ee.exports=Be("615d")},caf7:function(Ee,ze,Be){"use strict";var Ue=Be("551a"),We=Be("765f").parseColorScale,$e=Be("f977"),Qe=Be("c258").extractOpts,rt=Be("569b"),findNearestOnAxis=function(Ee,ze){for(var Be=ze.length-1;Be>0;Be--){var Ue=Math.min(ze[Be],ze[Be-1]),We=Math.max(ze[Be],ze[Be-1]);if(We>Ue&&Ue-1}function mapValue(Ee,ze){return null===Ee?ze:Ee}function drawTri(ze,Be,Ue){beginGroup();var We,$e,Qe,it=[Be],at=[Ue];if(rt>=1)it=[Be],at=[Ue];else if(rt>0){var ct=function createOpenTri(Ee,ze){var Be=Ee[0],Ue=Ee[1],We=Ee[2],$e=function getCenter(Ee,ze,Be){for(var Ue=[],We=0;We-1?Ue[kt]:findVertexId(Lt,er,tr);xt[kt]=ar>-1?ar:addVertex(Lt,er,tr,mapValue(ze,rr))}We=xt[0],$e=xt[1],Qe=xt[2],Ee._meshI.push(We),Ee._meshJ.push($e),Ee._meshK.push(Qe),++Ut}}function calcIntersection(Ee,ze,Be,Ue){var We=Ee[3];WeUe&&(We=Ue);for(var $e=(Ee[3]-We)/(Ee[3]-ze[3]+1e-9),Qe=[],rt=0;rt<4;rt++)Qe[rt]=(1-$e)*Ee[rt]+$e*ze[rt];return Qe}function inRange(Ee,ze,Be){return Ee>=ze&&Ee<=Be}function almostInFinalRange(Ee){var ze=.001*(hn-un);return Ee>=un-ze&&Ee<=hn+ze}function getXYZV(ze){for(var Be=[],Ue=0;Ue<4;Ue++){var We=ze[Ue];Be.push([Ee._x[We],Ee._y[We],Ee._z[We],Ee._value[We]])}return Be}function tryCreateTri(Ee,ze,Be,Ue,We,$e){$e||($e=1),Be=[-1,-1,-1];var Qe=!1,rt=[inRange(ze[0][3],Ue,We),inRange(ze[1][3],Ue,We),inRange(ze[2][3],Ue,We)];if(!rt[0]&&!rt[1]&&!rt[2])return!1;var tryDrawTri=function(Ee,ze,Be){return almostInFinalRange(ze[0][3])&&almostInFinalRange(ze[1][3])&&almostInFinalRange(ze[2][3])?(drawTri(Ee,ze,Be),!0):$e<3&&tryCreateTri(Ee,ze,Be,un,hn,++$e)};if(rt[0]&&rt[1]&&rt[2])return tryDrawTri(Ee,ze,Be)||Qe;var it=!1;return[[0,1,2],[2,0,1],[1,2,0]].forEach((function($e){if(rt[$e[0]]&&rt[$e[1]]&&!rt[$e[2]]){var at=ze[$e[0]],ct=ze[$e[1]],ft=ze[$e[2]],xt=calcIntersection(ft,at,Ue,We),kt=calcIntersection(ft,ct,Ue,We);Qe=tryDrawTri(Ee,[kt,xt,at],[-1,-1,Be[$e[0]]])||Qe,Qe=tryDrawTri(Ee,[at,ct,kt],[Be[$e[0]],Be[$e[1]],-1])||Qe,it=!0}})),it||[[0,1,2],[1,2,0],[2,0,1]].forEach((function($e){if(rt[$e[0]]&&!rt[$e[1]]&&!rt[$e[2]]){var at=ze[$e[0]],ct=ze[$e[1]],ft=ze[$e[2]],xt=calcIntersection(ct,at,Ue,We),kt=calcIntersection(ft,at,Ue,We);Qe=tryDrawTri(Ee,[kt,xt,at],[-1,-1,Be[$e[0]]])||Qe,it=!0}})),Qe}function tryCreateTetra(Ee,ze,Be,Ue){var We=!1,$e=getXYZV(ze),Qe=[inRange($e[0][3],Be,Ue),inRange($e[1][3],Be,Ue),inRange($e[2][3],Be,Ue),inRange($e[3][3],Be,Ue)];if(!(Qe[0]||Qe[1]||Qe[2]||Qe[3]))return We;if(Qe[0]&&Qe[1]&&Qe[2]&&Qe[3])return Lt&&(We=function drawTetra(Ee,ze,Be){var makeTri=function(Ue,We,$e){drawTri(Ee,[ze[Ue],ze[We],ze[$e]],[Be[Ue],Be[We],Be[$e]])};makeTri(0,1,2),makeTri(3,0,1),makeTri(2,3,0),makeTri(1,2,3)}(Ee,$e,ze)||We),We;var rt=!1;return[[0,1,2,3],[3,0,1,2],[2,3,0,1],[1,2,3,0]].forEach((function(it){if(Qe[it[0]]&&Qe[it[1]]&&Qe[it[2]]&&!Qe[it[3]]){var at=$e[it[0]],ct=$e[it[1]],ft=$e[it[2]],xt=$e[it[3]];if(Lt)We=drawTri(Ee,[at,ct,ft],[ze[it[0]],ze[it[1]],ze[it[2]]])||We;else{var kt=calcIntersection(xt,at,Be,Ue),Ut=calcIntersection(xt,ct,Be,Ue),er=calcIntersection(xt,ft,Be,Ue);We=drawTri(null,[kt,Ut,er],[-1,-1,-1])||We}rt=!0}})),rt?We:([[0,1,2,3],[1,2,3,0],[2,3,0,1],[3,0,1,2],[0,2,3,1],[1,3,2,0]].forEach((function(it){if(Qe[it[0]]&&Qe[it[1]]&&!Qe[it[2]]&&!Qe[it[3]]){var at=$e[it[0]],ct=$e[it[1]],ft=$e[it[2]],xt=$e[it[3]],kt=calcIntersection(ft,at,Be,Ue),Ut=calcIntersection(ft,ct,Be,Ue),er=calcIntersection(xt,ct,Be,Ue),tr=calcIntersection(xt,at,Be,Ue);Lt?(We=drawTri(Ee,[at,tr,kt],[ze[it[0]],-1,-1])||We,We=drawTri(Ee,[ct,Ut,er],[ze[it[1]],-1,-1])||We):We=function drawQuad(Ee,ze,Be){var makeTri=function(Ue,We,$e){drawTri(Ee,[ze[Ue],ze[We],ze[$e]],[Be[Ue],Be[We],Be[$e]])};makeTri(0,1,2),makeTri(2,3,0)}(null,[kt,Ut,er,tr],[-1,-1,-1,-1])||We,rt=!0}})),rt||[[0,1,2,3],[1,2,3,0],[2,3,0,1],[3,0,1,2]].forEach((function(it){if(Qe[it[0]]&&!Qe[it[1]]&&!Qe[it[2]]&&!Qe[it[3]]){var at=$e[it[0]],ct=$e[it[1]],ft=$e[it[2]],xt=$e[it[3]],kt=calcIntersection(ct,at,Be,Ue),Ut=calcIntersection(ft,at,Be,Ue),er=calcIntersection(xt,at,Be,Ue);Lt?(We=drawTri(Ee,[at,kt,Ut],[ze[it[0]],-1,-1])||We,We=drawTri(Ee,[at,Ut,er],[ze[it[0]],-1,-1])||We,We=drawTri(Ee,[at,er,kt],[ze[it[0]],-1,-1])||We):We=drawTri(null,[kt,Ut,er],[-1,-1,-1])||We,rt=!0}})),We)}function addCube(Ee,ze,Be,Ue,We,$e,Qe,rt,it,at,ct){var ft=!1;return kt&&(styleIncludes(Ee,"A")&&(ft=tryCreateTetra(null,[ze,Be,Ue,$e],at,ct)||ft),styleIncludes(Ee,"B")&&(ft=tryCreateTetra(null,[Be,Ue,We,it],at,ct)||ft),styleIncludes(Ee,"C")&&(ft=tryCreateTetra(null,[Be,$e,Qe,it],at,ct)||ft),styleIncludes(Ee,"D")&&(ft=tryCreateTetra(null,[Ue,$e,rt,it],at,ct)||ft),styleIncludes(Ee,"E")&&(ft=tryCreateTetra(null,[Be,Ue,$e,it],at,ct)||ft)),Lt&&(ft=tryCreateTetra(Ee,[Be,Ue,$e,it],at,ct)||ft),ft}function addRect(Ee,ze,Be,Ue,We,$e,Qe,rt){return[!0===rt[0]||tryCreateTri(Ee,getXYZV([ze,Be,Ue]),[ze,Be,Ue],$e,Qe),!0===rt[1]||tryCreateTri(Ee,getXYZV([Ue,We,ze]),[Ue,We,ze],$e,Qe)]}function begin2dCell(Ee,ze,Be,Ue,We,$e,Qe,rt,it){return rt?addRect(Ee,ze,Be,We,Ue,$e,Qe,it):addRect(Ee,Be,We,Ue,ze,$e,Qe,it)}function beginSection(Ee,ze,Be,Ue,We,$e,Qe){var rt,it,at,ct,ft=!1,makeSection=function(){ft=tryCreateTri(Ee,[rt,it,at],[-1,-1,-1],We,$e)||ft,ft=tryCreateTri(Ee,[at,ct,rt],[-1,-1,-1],We,$e)||ft},xt=Qe[0],kt=Qe[1],Lt=Qe[2];return xt&&(rt=getBetween(getXYZV([getIndex(ze,Be-0,Ue-0)])[0],getXYZV([getIndex(ze-1,Be-0,Ue-0)])[0],xt),it=getBetween(getXYZV([getIndex(ze,Be-0,Ue-1)])[0],getXYZV([getIndex(ze-1,Be-0,Ue-1)])[0],xt),at=getBetween(getXYZV([getIndex(ze,Be-1,Ue-1)])[0],getXYZV([getIndex(ze-1,Be-1,Ue-1)])[0],xt),ct=getBetween(getXYZV([getIndex(ze,Be-1,Ue-0)])[0],getXYZV([getIndex(ze-1,Be-1,Ue-0)])[0],xt),makeSection()),kt&&(rt=getBetween(getXYZV([getIndex(ze-0,Be,Ue-0)])[0],getXYZV([getIndex(ze-0,Be-1,Ue-0)])[0],kt),it=getBetween(getXYZV([getIndex(ze-0,Be,Ue-1)])[0],getXYZV([getIndex(ze-0,Be-1,Ue-1)])[0],kt),at=getBetween(getXYZV([getIndex(ze-1,Be,Ue-1)])[0],getXYZV([getIndex(ze-1,Be-1,Ue-1)])[0],kt),ct=getBetween(getXYZV([getIndex(ze-1,Be,Ue-0)])[0],getXYZV([getIndex(ze-1,Be-1,Ue-0)])[0],kt),makeSection()),Lt&&(rt=getBetween(getXYZV([getIndex(ze-0,Be-0,Ue)])[0],getXYZV([getIndex(ze-0,Be-0,Ue-1)])[0],Lt),it=getBetween(getXYZV([getIndex(ze-0,Be-1,Ue)])[0],getXYZV([getIndex(ze-0,Be-1,Ue-1)])[0],Lt),at=getBetween(getXYZV([getIndex(ze-1,Be-1,Ue)])[0],getXYZV([getIndex(ze-1,Be-1,Ue-1)])[0],Lt),ct=getBetween(getXYZV([getIndex(ze-1,Be-0,Ue)])[0],getXYZV([getIndex(ze-1,Be-0,Ue-1)])[0],Lt),makeSection()),ft}function begin3dCell(Ee,ze,Be,Ue,We,$e,Qe,rt,it,at,ct,ft){var xt=Ee;return ft?(kt&&"even"===Ee&&(xt=null),addCube(xt,ze,Be,Ue,We,$e,Qe,rt,it,at,ct)):(kt&&"odd"===Ee&&(xt=null),addCube(xt,it,rt,Qe,$e,We,Ue,Be,ze,at,ct))}function draw2dX(Ee,ze,Be,Ue,We){for(var $e=[],Qe=0,rt=0;rtMath.abs(on-cn)?[sn,on]:[on,cn];kt=!0,draw3d(ze,dn[0],dn[1]),kt=!1}}var vn=[[Math.min(un,cn),Math.max(un,cn)],[Math.min(sn,hn),Math.max(sn,hn)]];["x","y","z"].forEach((function(ze){for(var Be=[],Ue=0;Ue0&&(at.push(xt.id),"x"===ze?ct.push([xt.distRatio,0,0]):"y"===ze?ct.push([0,xt.distRatio,0]):ct.push([0,0,xt.distRatio]))}else it=createRange(1,"x"===ze?ar-1:"y"===ze?Lr-1:Qr-1);at.length>0&&(Be[We]="x"===ze?drawSectionX(null,at,$e,Qe,ct,Be[We]):"y"===ze?drawSectionY(null,at,$e,Qe,ct,Be[We]):drawSectionZ(null,at,$e,Qe,ct,Be[We]),We++),it.length>0&&(Be[We]="x"===ze?draw2dX(null,it,$e,Qe,Be[We]):"y"===ze?draw2dY(null,it,$e,Qe,Be[We]):draw2dZ(null,it,$e,Qe,Be[We]),We++)}var kt=Ee.caps[ze];kt.show&&kt.fill&&(setFill(kt.fill),Be[We]="x"===ze?draw2dX(null,[0,ar-1],$e,Qe,Be[We]):"y"===ze?draw2dY(null,[0,Lr-1],$e,Qe,Be[We]):draw2dZ(null,[0,Qr-1],$e,Qe,Be[We]),We++)}})),0===Ut&&emptyVertices(),Ee._meshX=Ue,Ee._meshY=We,Ee._meshZ=$e,Ee._meshIntensity=Qe,Ee._Xs=er,Ee._Ys=tr,Ee._Zs=rr}(),Ee}Ee.exports={findNearestOnAxis:findNearestOnAxis,generateIsoMeshes:generateIsoMeshes,createIsosurfaceTrace:function createIsosurfaceTrace(Ee,ze){var Be=Ee.glplot.gl,We=Ue({gl:Be}),$e=new IsosurfaceTrace(Ee,We,ze.uid);return We._trace=$e,$e.update(ze),Ee.glplot.add(We),$e}}},caff:function(Ee,ze,Be){"use strict";var Ue=Be("fc26"),We=Be("1c1c").handleGroupingDefaults,$e=Be("1c1c").handleText,Qe=Be("076f"),rt=Be("c99f"),it=Be("d115");Ee.exports={supplyDefaults:function supplyDefaults(Ee,ze,Be,We){function coerce(Be,We){return Ue.coerce(Ee,ze,rt,Be,We)}if(Qe(Ee,ze,We,coerce)){coerce("orientation",ze.y&&!ze.x?"v":"h"),coerce("offset"),coerce("width");var at=coerce("text");coerce("hovertext"),coerce("hovertemplate");var ct=coerce("textposition");$e(Ee,ze,We,coerce,ct,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),"none"===ze.textposition||ze.texttemplate||coerce("textinfo",Array.isArray(at)?"text+value":"value");var ft=coerce("marker.color",Be);if(coerce("marker.line.color",it.defaultLine),coerce("marker.line.width"),coerce("connector.visible"))coerce("connector.fillcolor",function defaultFillColor(Ee){var ze=Ue.isArrayOrTypedArray(Ee)?"#000":Ee;return it.addOpacity(ze,.5*it.opacity(ze))}(ft)),coerce("connector.line.width")&&(coerce("connector.line.color"),coerce("connector.line.dash"))}else ze.visible=!1},crossTraceDefaults:function crossTraceDefaults(Ee,ze){var Be,$e;function coerce(Ee){return Ue.coerce($e._input,$e,rt,Ee)}if("group"===ze.funnelmode)for(var Qe=0;Qe")?"":ze.html(Ee).text()}));return ze.remove(),Be}(sn))).replace(at,"'"),We.isIE()&&(sn=(sn=(sn=sn.replace(/"/gi,"'")).replace(/(\('#)([^']*)('\))/gi,'("#$2")')).replace(/(\\')/gi,'"')),sn}},cb34:function(Ee,ze,Be){"use strict";var Ue=Be("fc26"),We=Ue.extendFlat,$e=Ue.isPlainObject,Qe={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},rt={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},it=Qe.flags.slice().concat(["fullReplot"]),at=rt.flags.slice().concat("layoutReplot");function falseObj(Ee){for(var ze={},Be=0;Be0||Ue.inbox(Be-Qe.y0,Be-(Qe.y0+Qe.h*rt.dy),0)>0)){var ct=Math.floor((ze-Qe.x0)/rt.dx),ft=Math.floor(Math.abs(Be-Qe.y0)/rt.dy);if(Qe.z[ft][ct]){var xt,kt=Qe.hi||rt.hoverinfo;if(kt){var Lt=kt.split("+");-1!==Lt.indexOf("all")&&(Lt=["color"]),-1!==Lt.indexOf("color")&&(xt=!0)}var Ut,er=rt.colormodel,tr=er.length,rr=rt._scaler(Qe.z[ft][ct]),ar=$e.colormodel[er].suffix,Lr=[];(rt.hovertemplate||xt)&&(Lr.push("["+[rr[0]+ar[0],rr[1]+ar[1],rr[2]+ar[2]].join(", ")),4===tr&&Lr.push(", "+rr[3]+ar[3]),Lr.push("]"),Lr=Lr.join(""),Ee.extraText=er.toUpperCase()+": "+Lr),Array.isArray(rt.hovertext)&&Array.isArray(rt.hovertext[ft])?Ut=rt.hovertext[ft][ct]:Array.isArray(rt.text)&&Array.isArray(rt.text[ft])&&(Ut=rt.text[ft][ct]);var Qr=at.c2p(Qe.y0+(ft+.5)*rt.dy),on=Qe.x0+(ct+.5)*rt.dx,sn=Qe.y0+(ft+.5)*rt.dy,cn="["+Qe.z[ft][ct].slice(0,rt.colormodel.length).join(", ")+"]";return[We.extendFlat(Ee,{index:[ft,ct],x0:it.c2p(Qe.x0+ct*rt.dx),x1:it.c2p(Qe.x0+(ct+1)*rt.dx),y0:Qr,y1:Qr,color:rr,xVal:on,xLabelVal:on,yVal:sn,yLabelVal:sn,zLabelVal:cn,text:Ut,hovertemplateLabels:{zLabel:cn,colorLabel:Lr,"color[0]Label":rr[0]+ar[0],"color[1]Label":rr[1]+ar[1],"color[2]Label":rr[2]+ar[2],"color[3]Label":rr[3]+ar[3]}})]}}}},cbbe:function(Ee,ze,Be){"use strict";Ee.exports=function(Ee){return Ee||0===Ee?Ee.toString():""}},cbc3:function(Ee){Ee.exports=JSON.parse('["normal","condensed","semi-condensed","extra-condensed","ultra-condensed","expanded","semi-expanded","extra-expanded","ultra-expanded"]')},cbd4:function(Ee,ze,Be){"use strict";var Ue=Be("fc26"),We=Be("a462"),$e=Be("2093");Ee.exports=function supplyDefaults(Ee,ze,Be,Qe){var rt=Ue.extendFlat({},Qe.hoverlabel);ze.hovertemplate&&(rt.namelength=-1),$e(Ee,ze,(function coerce(Be,$e){return Ue.coerce(Ee,ze,We,Be,$e)}),rt)}},cbeb:function(Ee,ze,Be){"use strict";var Ue=Be("c01c"),We=Be("a026");Ee.exports=function robustDotProduct(Ee,ze){for(var Be=Ue(Ee[0],ze[0]),$e=1;$e>>1,x=a[m]"];return We?ze.indexOf("c")<0?$e.push(";if(x===y){return m}else if(x<=y){"):$e.push(";var p=c(x,y);if(p===0){return m}else if(p<=0){"):$e.push(";if(",ze,"){i=m;"),Be?$e.push("l=m+1}else{h=m-1}"):$e.push("h=m-1}else{l=m+1}"),$e.push("}"),We?$e.push("return -1};"):$e.push("return i};"),$e.join("")}function compileBoundsSearch(Ee,ze,Be,Ue){return new Function([compileSearch("A","x"+Ee+"y",ze,["y"],Ue),compileSearch("P","c(x,y)"+Ee+"0",ze,["y","c"],Ue),"function dispatchBsearch",Be,"(a,y,c,l,h){if(typeof(c)==='function'){return P(a,(l===void 0)?0:l|0,(h===void 0)?a.length-1:h|0,y,c)}else{return A(a,(c===void 0)?0:c|0,(l===void 0)?a.length-1:l|0,y)}}return dispatchBsearch",Be].join(""))()}Ee.exports={ge:compileBoundsSearch(">=",!1,"GE"),gt:compileBoundsSearch(">",!1,"GT"),lt:compileBoundsSearch("<",!0,"LT"),le:compileBoundsSearch("<=",!0,"LE"),eq:compileBoundsSearch("-",!0,"EQ",!0)}},cca6:function(Ee,ze,Be){var Ue=Be("23e7"),We=Be("60da");Ue({target:"Object",stat:!0,forced:Object.assign!==We},{assign:We})},cd19:function(Ee,ze,Be){"use strict";var Ue=Be("3d2e");Ee.exports={moduleType:"component",name:Ue.name,layoutAttributes:Be("42dc"),supplyLayoutDefaults:Be("dcc2"),draw:Be("fd80")}},cd84:function(Ee,ze,Be){"use strict";var Ue=Be("fc26"),We=Be("0642"),$e=Be("2595").draw;function annAutorange(Ee){var ze=Ee._fullLayout;Ue.filterVisible(ze.annotations).forEach((function(ze){var Be=We.getFromId(Ee,ze.xref),Ue=We.getFromId(Ee,ze.yref);ze._extremes={},Be&&calcAxisExpansion(ze,Be),Ue&&calcAxisExpansion(ze,Ue)}))}function calcAxisExpansion(Ee,ze){var Be,Ue=ze._id,$e=Ue.charAt(0),Qe=Ee[$e],rt=Ee["a"+$e],it=Ee[$e+"ref"],at=Ee["a"+$e+"ref"],ct=Ee["_"+$e+"padplus"],ft=Ee["_"+$e+"padminus"],xt={x:1,y:-1}[$e]*Ee[$e+"shift"],kt=3*Ee.arrowsize*Ee.arrowwidth||0,Lt=kt+xt,Ut=kt-xt,er=3*Ee.startarrowsize*Ee.arrowwidth||0,tr=er+xt,rr=er-xt;if(at===it){var ar=We.findExtremes(ze,[ze.r2c(Qe)],{ppadplus:Lt,ppadminus:Ut}),Lr=We.findExtremes(ze,[ze.r2c(rt)],{ppadplus:Math.max(ct,tr),ppadminus:Math.max(ft,rr)});Be={min:[ar.min[0],Lr.min[0]],max:[ar.max[0],Lr.max[0]]}}else tr=rt?tr+rt:tr,rr=rt?rr-rt:rr,Be=We.findExtremes(ze,[ze.r2c(Qe)],{ppadplus:Math.max(ct,Lt,tr),ppadminus:Math.max(ft,Ut,rr)});Ee._extremes[Ue]=Be}Ee.exports=function calcAutorange(Ee){var ze=Ee._fullLayout;if(Ue.filterVisible(ze.annotations).length&&Ee._fullData.length)return Ue.syncOrAsync([$e,annAutorange],Ee)}},cdaf:function(Ee,ze,Be){"use strict";Ee.exports={scene:{valType:"subplotid",dflt:"scene",editType:"calc+clearAxisTypes"}}},ce20:function(Ee,ze,Be){"use strict";var Ue=Be("215c").hasColorscale,We=Be("3aa8"),$e=Be("424b"),Qe=Be("0cec").setGroupPositions,rt=Be("4136"),it=Be("371e").traceIs,at=Be("fc26").extendFlat;Ee.exports={calc:function calc(Ee,ze){for(var Be=Ee._fullLayout,Qe=ze.subplot,it=Be[Qe].radialaxis,at=Be[Qe].angularaxis,ct=it.makeCalcdata(ze,"r"),ft=at.makeCalcdata(ze,"theta"),xt=ze._length,kt=new Array(xt),Lt=ct,Ut=ft,er=0;er0&&((rr=sn-Qe(Lt)-Qe(Ut))>cn?ar/rr>un&&(er=Lt,tr=Ut,un=ar/rr):ar/sn>un&&(er={val:Lt.val,pad:0},tr={val:Ut.val,pad:0},un=ar/sn));if(ct===ft){var hn=ct-1,dn=ct+1;if(Qr)if(0===ct)$e=[0,1];else{var vn=(ct>0?at:it).reduce((function getMaxPad(Ee,ze){return Math.max(Ee,Qe(ze))}),0),yn=ct/(1-Math.min(.5,vn/sn));$e=ct>0?[0,yn]:[yn,0]}else $e=on?[Math.max(0,hn),Math.max(1,dn)]:[hn,dn]}else Qr?(er.val>=0&&(er={val:0,pad:0}),tr.val<=0&&(tr={val:0,pad:0})):on&&(er.val-un*Qe(er)<0&&(er={val:0,pad:0}),tr.val<=0&&(tr={val:1,pad:0})),un=(tr.val-er.val)/(sn-Qe(er)-Qe(tr)),$e=[er.val-un*Qe(er),tr.val+un*Qe(tr)];return xt&&$e.reverse(),We.simpleMap($e,ze.l2r||Number)}function makePadFn(Ee){var ze=Ee._length/20;return"domain"===Ee.constrain&&Ee._inputDomain&&(ze*=(Ee._inputDomain[1]-Ee._inputDomain[0])/(Ee.domain[1]-Ee.domain[0])),function getPad(Ee){return Ee.pad+(Ee.extrapad?ze:0)}}function concatExtremes(Ee,ze){var Be,Ue,We,$e=ze._id,Qe=Ee._fullData,rt=Ee._fullLayout,it=[],at=[];function _concat(Ee,ze){for(Be=0;Be=Be&&(at.extrapad||!Qe)){rt=!1;break}We(ze,at.val)&&at.pad<=Be&&(Qe||!at.extrapad)&&(Ee.splice(it,1),it--)}if(rt){var ct=$e&&0===ze;Ee.push({val:ze,pad:ct?0:Be,extrapad:!ct&&Qe})}}function goodNumber(Ee){return Ue(Ee)&&Math.abs(Ee)<$e}function lessOrEqual(Ee,ze){return Ee<=ze}function greaterOrEqual(Ee,ze){return Ee>=ze}Ee.exports={getAutoRange:getAutoRange,makePadFn:makePadFn,doAutoRange:function doAutoRange(Ee,ze){if(ze.setScale(),ze.autorange){ze.range=getAutoRange(Ee,ze),ze._r=ze.range.slice(),ze._rl=We.simpleMap(ze._r,ze.r2l);var Be=ze._input,Ue={};Ue[ze._attr+".range"]=ze.range,Ue[ze._attr+".autorange"]=ze.autorange,Qe.call("_storeDirectGUIEdit",Ee.layout,Ee._fullLayout._preGUI,Ue),Be.range=ze.range.slice(),Be.autorange=ze.autorange}var $e=ze._anchorAxis;if($e&&$e.rangeslider){var rt=$e.rangeslider[ze._name];rt&&"auto"===rt.rangemode&&(rt.range=getAutoRange(Ee,ze)),$e._input.rangeslider[ze._name]=We.extendFlat({},rt)}},findExtremes:function findExtremes(Ee,ze,Be){Be||(Be={});Ee._m||Ee.setScale();var We,Qe,rt,it,at,ct,ft,xt,kt,Lt=[],Ut=[],er=ze.length,tr=Be.padded||!1,rr=Be.tozero&&("linear"===Ee.type||"-"===Ee.type),ar="log"===Ee.type,Lr=!1,Qr=Be.vpadLinearized||!1;function makePadAccessor(Ee){if(Array.isArray(Ee))return Lr=!0,function(ze){return Math.max(Number(Ee[ze]||0),0)};var ze=Math.max(Number(Ee||0),0);return function(){return ze}}var on=makePadAccessor((Ee._m>0?Be.ppadplus:Be.ppadminus)||Be.ppad||0),sn=makePadAccessor((Ee._m>0?Be.ppadminus:Be.ppadplus)||Be.ppad||0),cn=makePadAccessor(Be.vpadplus||Be.vpad),un=makePadAccessor(Be.vpadminus||Be.vpad);if(!Lr){if(xt=1/0,kt=-1/0,ar)for(We=0;We0&&(xt=Qe),Qe>kt&&Qe<$e&&(kt=Qe);else for(We=0;We-$e&&(xt=Qe),Qe>kt&&Qe<$e&&(kt=Qe);ze=[xt,kt],er=2}var hn={tozero:rr,extrapad:tr};function addItem(Be){rt=ze[Be],Ue(rt)&&(ct=on(Be),ft=sn(Be),Qr?(it=Ee.c2l(rt)-un(Be),at=Ee.c2l(rt)+cn(Be)):(xt=rt-un(Be),kt=rt+cn(Be),ar&&xt=dn;We--)addItem(We);return{min:Lt,max:Ut,opts:Be}},concatExtremes:concatExtremes}},ce65:function(Ee,ze,Be){"use strict";var Ue=Be("94d5").hovertemplateAttrs,We=Be("94d5").texttemplateAttrs,$e=Be("107c"),Qe=Be("a876"),rt=Be("f4e9"),it=Be("db54").dash,at=Be("9092").extendFlat,ct=$e.marker,ft=$e.line,xt=ct.line;Ee.exports={a:{valType:"data_array",editType:"calc"},b:{valType:"data_array",editType:"calc"},c:{valType:"data_array",editType:"calc"},sum:{valType:"number",dflt:0,min:0,editType:"calc"},mode:at({},$e.mode,{dflt:"markers"}),text:at({},$e.text,{}),texttemplate:We({editType:"plot"},{keys:["a","b","c","text"]}),hovertext:at({},$e.hovertext,{}),line:{color:ft.color,width:ft.width,dash:it,shape:at({},ft.shape,{values:["linear","spline"]}),smoothing:ft.smoothing,editType:"calc"},connectgaps:$e.connectgaps,cliponaxis:$e.cliponaxis,fill:at({},$e.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:$e.fillcolor,marker:at({symbol:ct.symbol,opacity:ct.opacity,maxdisplayed:ct.maxdisplayed,size:ct.size,sizeref:ct.sizeref,sizemin:ct.sizemin,sizemode:ct.sizemode,line:at({width:xt.width,editType:"calc"},rt("marker.line")),gradient:ct.gradient,editType:"calc"},rt("marker")),textfont:$e.textfont,textposition:$e.textposition,selected:$e.selected,unselected:$e.unselected,hoverinfo:at({},Qe.hoverinfo,{flags:["a","b","c","text","name"]}),hoveron:$e.hoveron,hovertemplate:Ue()}},ce83:function(Ee,ze){Ee.exports=function min(Ee,ze,Be){return Ee[0]=Math.min(ze[0],Be[0]),Ee[1]=Math.min(ze[1],Be[1]),Ee[2]=Math.min(ze[2],Be[2]),Ee}},ce8f:function(Ee,ze,Be){"use strict";Ee.exports=function trimLeaves(Ee,ze){for(var Be=Ue(Ee,ze.length),We=new Array(ze.length),$e=new Array(ze.length),Qe=[],rt=0;rt0;){var at=Qe.pop();We[at]=!1;var ct=Be[at];for(rt=0;rt0?Be.pop():new ArrayBuffer(Ee)}function mallocUint8(Ee){return new Uint8Array(mallocArrayBuffer(Ee),0,Ee)}function mallocUint16(Ee){return new Uint16Array(mallocArrayBuffer(2*Ee),0,Ee)}function mallocUint32(Ee){return new Uint32Array(mallocArrayBuffer(4*Ee),0,Ee)}function mallocInt8(Ee){return new Int8Array(mallocArrayBuffer(Ee),0,Ee)}function mallocInt16(Ee){return new Int16Array(mallocArrayBuffer(2*Ee),0,Ee)}function mallocInt32(Ee){return new Int32Array(mallocArrayBuffer(4*Ee),0,Ee)}function mallocFloat(Ee){return new Float32Array(mallocArrayBuffer(4*Ee),0,Ee)}function mallocDouble(Ee){return new Float64Array(mallocArrayBuffer(8*Ee),0,Ee)}function mallocUint8Clamped(Ee){return Qe?new Uint8ClampedArray(mallocArrayBuffer(Ee),0,Ee):mallocUint8(Ee)}function mallocBigUint64(Ee){return rt?new BigUint64Array(mallocArrayBuffer(8*Ee),0,Ee):null}function mallocBigInt64(Ee){return it?new BigInt64Array(mallocArrayBuffer(8*Ee),0,Ee):null}function mallocDataView(Ee){return new DataView(mallocArrayBuffer(Ee),0,Ee)}function mallocBuffer(Ee){Ee=Ue.nextPow2(Ee);var ze=Ue.log2(Ee),Be=ft[ze];return Be.length>0?Be.pop():new $e(Ee)}ze.free=function free(Ee){if($e.isBuffer(Ee))ft[Ue.log2(Ee.length)].push(Ee);else{if("[object ArrayBuffer]"!==Object.prototype.toString.call(Ee)&&(Ee=Ee.buffer),!Ee)return;var ze=Ee.length||Ee.byteLength,Be=0|Ue.log2(ze);ct[Be].push(Ee)}},ze.freeUint8=ze.freeUint16=ze.freeUint32=ze.freeBigUint64=ze.freeInt8=ze.freeInt16=ze.freeInt32=ze.freeBigInt64=ze.freeFloat32=ze.freeFloat=ze.freeFloat64=ze.freeDouble=ze.freeUint8Clamped=ze.freeDataView=function freeTypedArray(Ee){freeArrayBuffer(Ee.buffer)},ze.freeArrayBuffer=freeArrayBuffer,ze.freeBuffer=function freeBuffer(Ee){ft[Ue.log2(Ee.length)].push(Ee)},ze.malloc=function malloc(Ee,ze){if(void 0===ze||"arraybuffer"===ze)return mallocArrayBuffer(Ee);switch(ze){case"uint8":return mallocUint8(Ee);case"uint16":return mallocUint16(Ee);case"uint32":return mallocUint32(Ee);case"int8":return mallocInt8(Ee);case"int16":return mallocInt16(Ee);case"int32":return mallocInt32(Ee);case"float":case"float32":return mallocFloat(Ee);case"double":case"float64":return mallocDouble(Ee);case"uint8_clamped":return mallocUint8Clamped(Ee);case"bigint64":return mallocBigInt64(Ee);case"biguint64":return mallocBigUint64(Ee);case"buffer":return mallocBuffer(Ee);case"data":case"dataview":return mallocDataView(Ee);default:return null}return null},ze.mallocArrayBuffer=mallocArrayBuffer,ze.mallocUint8=mallocUint8,ze.mallocUint16=mallocUint16,ze.mallocUint32=mallocUint32,ze.mallocInt8=mallocInt8,ze.mallocInt16=mallocInt16,ze.mallocInt32=mallocInt32,ze.mallocFloat32=ze.mallocFloat=mallocFloat,ze.mallocFloat64=ze.mallocDouble=mallocDouble,ze.mallocUint8Clamped=mallocUint8Clamped,ze.mallocBigUint64=mallocBigUint64,ze.mallocBigInt64=mallocBigInt64,ze.mallocDataView=mallocDataView,ze.mallocBuffer=mallocBuffer,ze.clearCache=function clearCache(){for(var Ee=0;Ee<32;++Ee)at.UINT8[Ee].length=0,at.UINT16[Ee].length=0,at.UINT32[Ee].length=0,at.INT8[Ee].length=0,at.INT16[Ee].length=0,at.INT32[Ee].length=0,at.FLOAT[Ee].length=0,at.DOUBLE[Ee].length=0,at.BIGUINT64[Ee].length=0,at.BIGINT64[Ee].length=0,at.UINT8C[Ee].length=0,ct[Ee].length=0,ft[Ee].length=0}}).call(this,Be("c8ba"))},cebf:function(Ee,ze,Be){"use strict";var Ue=Be("6e58"),We=Be("83d1"),$e=Be("d115"),Qe=Be("52e8"),rt=Qe.stylePoints,it=Qe.styleText;Ee.exports=function style(Ee,ze){ze&&function styleTrace(Ee,ze){var Be=ze[0].trace,Qe=ze[0].node3;Qe.style("opacity",ze[0].trace.opacity),rt(Qe,Be,Ee),it(Qe,Be,Ee),Qe.selectAll("path.js-line").style("fill","none").each((function(Ee){var ze=Ue.select(this),Be=Ee.trace,Qe=Be.line||{};ze.call($e.stroke,Qe.color).call(We.dashLine,Qe.dash||"",Qe.width||0),"none"!==Be.fill&&ze.call($e.fill,Be.fillcolor)}))}(Ee,ze)}},cec7:function(Ee,ze){Ee.exports={AFG:"afghan",ALA:"\\b\\wland",ALB:"albania",DZA:"algeria",ASM:"^(?=.*americ).*samoa",AND:"andorra",AGO:"angola",AIA:"anguill?a",ATA:"antarctica",ATG:"antigua",ARG:"argentin",ARM:"armenia",ABW:"^(?!.*bonaire).*\\baruba",AUS:"australia",AUT:"^(?!.*hungary).*austria|\\baustri.*\\bemp",AZE:"azerbaijan",BHS:"bahamas",BHR:"bahrain",BGD:"bangladesh|^(?=.*east).*paki?stan",BRB:"barbados",BLR:"belarus|byelo",BEL:"^(?!.*luxem).*belgium",BLZ:"belize|^(?=.*british).*honduras",BEN:"benin|dahome",BMU:"bermuda",BTN:"bhutan",BOL:"bolivia",BES:"^(?=.*bonaire).*eustatius|^(?=.*carib).*netherlands|\\bbes.?islands",BIH:"herzegovina|bosnia",BWA:"botswana|bechuana",BVT:"bouvet",BRA:"brazil",IOT:"british.?indian.?ocean",BRN:"brunei",BGR:"bulgaria",BFA:"burkina|\\bfaso|upper.?volta",BDI:"burundi",CPV:"verde",KHM:"cambodia|kampuchea|khmer",CMR:"cameroon",CAN:"canada",CYM:"cayman",CAF:"\\bcentral.african.republic",TCD:"\\bchad",CHL:"\\bchile",CHN:"^(?!.*\\bmac)(?!.*\\bhong)(?!.*\\btai)(?!.*\\brep).*china|^(?=.*peo)(?=.*rep).*china",CXR:"christmas",CCK:"\\bcocos|keeling",COL:"colombia",COM:"comoro",COG:"^(?!.*\\bdem)(?!.*\\bd[\\.]?r)(?!.*kinshasa)(?!.*zaire)(?!.*belg)(?!.*l.opoldville)(?!.*free).*\\bcongo",COK:"\\bcook",CRI:"costa.?rica",CIV:"ivoire|ivory",HRV:"croatia",CUB:"\\bcuba",CUW:"^(?!.*bonaire).*\\bcura(c|ç)ao",CYP:"cyprus",CSK:"czechoslovakia",CZE:"^(?=.*rep).*czech|czechia|bohemia",COD:"\\bdem.*congo|congo.*\\bdem|congo.*\\bd[\\.]?r|\\bd[\\.]?r.*congo|belgian.?congo|congo.?free.?state|kinshasa|zaire|l.opoldville|drc|droc|rdc",DNK:"denmark",DJI:"djibouti",DMA:"dominica(?!n)",DOM:"dominican.rep",ECU:"ecuador",EGY:"egypt",SLV:"el.?salvador",GNQ:"guine.*eq|eq.*guine|^(?=.*span).*guinea",ERI:"eritrea",EST:"estonia",ETH:"ethiopia|abyssinia",FLK:"falkland|malvinas",FRO:"faroe|faeroe",FJI:"fiji",FIN:"finland",FRA:"^(?!.*\\bdep)(?!.*martinique).*france|french.?republic|\\bgaul",GUF:"^(?=.*french).*guiana",PYF:"french.?polynesia|tahiti",ATF:"french.?southern",GAB:"gabon",GMB:"gambia",GEO:"^(?!.*south).*georgia",DDR:"german.?democratic.?republic|democratic.?republic.*germany|east.germany",DEU:"^(?!.*east).*germany|^(?=.*\\bfed.*\\brep).*german",GHA:"ghana|gold.?coast",GIB:"gibraltar",GRC:"greece|hellenic|hellas",GRL:"greenland",GRD:"grenada",GLP:"guadeloupe",GUM:"\\bguam",GTM:"guatemala",GGY:"guernsey",GIN:"^(?!.*eq)(?!.*span)(?!.*bissau)(?!.*portu)(?!.*new).*guinea",GNB:"bissau|^(?=.*portu).*guinea",GUY:"guyana|british.?guiana",HTI:"haiti",HMD:"heard.*mcdonald",VAT:"holy.?see|vatican|papal.?st",HND:"^(?!.*brit).*honduras",HKG:"hong.?kong",HUN:"^(?!.*austr).*hungary",ISL:"iceland",IND:"india(?!.*ocea)",IDN:"indonesia",IRN:"\\biran|persia",IRQ:"\\biraq|mesopotamia",IRL:"(^ireland)|(^republic.*ireland)",IMN:"^(?=.*isle).*\\bman",ISR:"israel",ITA:"italy",JAM:"jamaica",JPN:"japan",JEY:"jersey",JOR:"jordan",KAZ:"kazak",KEN:"kenya|british.?east.?africa|east.?africa.?prot",KIR:"kiribati",PRK:"^(?=.*democrat|people|north|d.*p.*.r).*\\bkorea|dprk|korea.*(d.*p.*r)",KWT:"kuwait",KGZ:"kyrgyz|kirghiz",LAO:"\\blaos?\\b",LVA:"latvia",LBN:"lebanon",LSO:"lesotho|basuto",LBR:"liberia",LBY:"libya",LIE:"liechtenstein",LTU:"lithuania",LUX:"^(?!.*belg).*luxem",MAC:"maca(o|u)",MDG:"madagascar|malagasy",MWI:"malawi|nyasa",MYS:"malaysia",MDV:"maldive",MLI:"\\bmali\\b",MLT:"\\bmalta",MHL:"marshall",MTQ:"martinique",MRT:"mauritania",MUS:"mauritius",MYT:"\\bmayotte",MEX:"\\bmexic",FSM:"fed.*micronesia|micronesia.*fed",MCO:"monaco",MNG:"mongolia",MNE:"^(?!.*serbia).*montenegro",MSR:"montserrat",MAR:"morocco|\\bmaroc",MOZ:"mozambique",MMR:"myanmar|burma",NAM:"namibia",NRU:"nauru",NPL:"nepal",NLD:"^(?!.*\\bant)(?!.*\\bcarib).*netherlands",ANT:"^(?=.*\\bant).*(nether|dutch)",NCL:"new.?caledonia",NZL:"new.?zealand",NIC:"nicaragua",NER:"\\bniger(?!ia)",NGA:"nigeria",NIU:"niue",NFK:"norfolk",MNP:"mariana",NOR:"norway",OMN:"\\boman|trucial",PAK:"^(?!.*east).*paki?stan",PLW:"palau",PSE:"palestin|\\bgaza|west.?bank",PAN:"panama",PNG:"papua|new.?guinea",PRY:"paraguay",PER:"peru",PHL:"philippines",PCN:"pitcairn",POL:"poland",PRT:"portugal",PRI:"puerto.?rico",QAT:"qatar",KOR:"^(?!.*d.*p.*r)(?!.*democrat)(?!.*people)(?!.*north).*\\bkorea(?!.*d.*p.*r)",MDA:"moldov|b(a|e)ssarabia",REU:"r(e|é)union",ROU:"r(o|u|ou)mania",RUS:"\\brussia|soviet.?union|u\\.?s\\.?s\\.?r|socialist.?republics",RWA:"rwanda",BLM:"barth(e|é)lemy",SHN:"helena",KNA:"kitts|\\bnevis",LCA:"\\blucia",MAF:"^(?=.*collectivity).*martin|^(?=.*france).*martin(?!ique)|^(?=.*french).*martin(?!ique)",SPM:"miquelon",VCT:"vincent",WSM:"^(?!.*amer).*samoa",SMR:"san.?marino",STP:"\\bs(a|ã)o.?tom(e|é)",SAU:"\\bsa\\w*.?arabia",SEN:"senegal",SRB:"^(?!.*monte).*serbia",SYC:"seychell",SLE:"sierra",SGP:"singapore",SXM:"^(?!.*martin)(?!.*saba).*maarten",SVK:"^(?!.*cze).*slovak",SVN:"slovenia",SLB:"solomon",SOM:"somali",ZAF:"south.africa|s\\\\..?africa",SGS:"south.?georgia|sandwich",SSD:"\\bs\\w*.?sudan",ESP:"spain",LKA:"sri.?lanka|ceylon",SDN:"^(?!.*\\bs(?!u)).*sudan",SUR:"surinam|dutch.?guiana",SJM:"svalbard",SWZ:"swaziland",SWE:"sweden",CHE:"switz|swiss",SYR:"syria",TWN:"taiwan|taipei|formosa|^(?!.*peo)(?=.*rep).*china",TJK:"tajik",THA:"thailand|\\bsiam",MKD:"macedonia|fyrom",TLS:"^(?=.*leste).*timor|^(?=.*east).*timor",TGO:"togo",TKL:"tokelau",TON:"tonga",TTO:"trinidad|tobago",TUN:"tunisia",TUR:"turkey",TKM:"turkmen",TCA:"turks",TUV:"tuvalu",UGA:"uganda",UKR:"ukrain",ARE:"emirates|^u\\.?a\\.?e\\.?$|united.?arab.?em",GBR:"united.?kingdom|britain|^u\\.?k\\.?$",TZA:"tanzania",USA:"united.?states\\b(?!.*islands)|\\bu\\.?s\\.?a\\.?\\b|^\\s*u\\.?s\\.?\\b(?!.*islands)",UMI:"minor.?outlying.?is",URY:"uruguay",UZB:"uzbek",VUT:"vanuatu|new.?hebrides",VEN:"venezuela",VNM:"^(?!.*republic).*viet.?nam|^(?=.*socialist).*viet.?nam",VGB:"^(?=.*\\bu\\.?\\s?k).*virgin|^(?=.*brit).*virgin|^(?=.*kingdom).*virgin",VIR:"^(?=.*\\bu\\.?\\s?s).*virgin|^(?=.*states).*virgin",WLF:"futuna|wallis",ESH:"western.sahara",YEM:"^(?!.*arab)(?!.*north)(?!.*sana)(?!.*peo)(?!.*dem)(?!.*south)(?!.*aden)(?!.*\\bp\\.?d\\.?r).*yemen",YMD:"^(?=.*peo).*yemen|^(?!.*rep)(?=.*dem).*yemen|^(?=.*south).*yemen|^(?=.*aden).*yemen|^(?=.*\\bp\\.?d\\.?r).*yemen",YUG:"yugoslavia",ZMB:"zambia|northern.?rhodesia",EAZ:"zanzibar",ZWE:"zimbabwe|^(?!.*northern).*rhodesia"}},cecf:function(Ee,ze,Be){"use strict";var Ue=Be("1a94"),We=Be("96ae"),$e=Function.prototype.bind,Qe=Function.prototype.call,rt=Object.keys,it=Object.prototype.propertyIsEnumerable;Ee.exports=function(Ee,ze){return function(Be,at){var ct,ft=arguments[2],xt=arguments[3];return Be=Object(We(Be)),Ue(at),ct=rt(Be),xt&&ct.sort("function"==typeof xt?$e.call(xt,Be):void 0),"function"!=typeof Ee&&(Ee=ct[Ee]),Qe.call(Ee,ct,(function(Ee,Ue){return it.call(Be,Ee)?Qe.call(at,ft,Be[Ee],Ee,Be,Ue):ze}))}}},cee0:function(Ee,ze,Be){"use strict";Ee.exports=function simplifyPolygon(Ee,ze,Be){for(var $e=ze.length,Qe=Ee.length,rt=new Array($e),it=new Array($e),at=new Array($e),ct=new Array($e),ft=0;ft<$e;++ft)rt[ft]=it[ft]=-1,at[ft]=1/0,ct[ft]=!1;for(ft=0;ft>1:(Ee>>1)-1}function heapDown(Ee){for(var ze=heapWeight(Ee);;){var Be=ze,Ue=2*Ee+1,We=2*(Ee+1),$e=Ee;if(Ue0;){var Be=heapParent(Ee);if(Be>=0)if(ze0){var Ee=Ut[0];return heapSwap(0,tr-1),tr-=1,heapDown(0),Ee}return-1}function heapUpdate(Ee,ze){var Be=Ut[Ee];return at[Be]===ze?Ee:(at[Be]=-1/0,heapUp(Ee),heapPop(),at[Be]=ze,heapUp((tr+=1)-1))}function kill(Ee){if(!ct[Ee]){ct[Ee]=!0;var ze=rt[Ee],Be=it[Ee];rt[Be]>=0&&(rt[Be]=ze),it[ze]>=0&&(it[ze]=Be),er[ze]>=0&&heapUpdate(er[ze],computeWeight(ze)),er[Be]>=0&&heapUpdate(er[Be],computeWeight(Be))}}var Ut=[],er=new Array($e);for(ft=0;ft<$e;++ft){(at[ft]=computeWeight(ft))<1/0?(er[ft]=Ut.length,Ut.push(ft)):er[ft]=-1}var tr=Ut.length;for(ft=tr>>1;ft>=0;--ft)heapDown(ft);for(;;){var rr=heapPop();if(rr<0||at[rr]>Be)break;kill(rr)}var ar=[];for(ft=0;ft<$e;++ft)ct[ft]||(er[ft]=ar.length,ar.push(ze[ft].slice()));ar.length;function tortoiseHare(Ee,ze){if(Ee[ze]<0)return ze;var Be=ze,Ue=ze;do{var We=Ee[Ue];if(!ct[Ue]||We<0||We===Ue)break;if(We=Ee[Ue=We],!ct[Ue]||We<0||We===Ue)break;Ue=We,Be=Ee[Be]}while(Be!==Ue);for(var $e=ze;$e!==Ue;$e=Ee[$e])Ee[$e]=Ue;return Ue}var Lr=[];return Ee.forEach((function(Ee){var ze=tortoiseHare(rt,Ee[0]),Be=tortoiseHare(it,Ee[1]);if(ze>=0&&Be>=0&&ze!==Be){var Ue=er[ze],We=er[Be];Ue!==We&&Lr.push([Ue,We])}})),We.unique(We.normalize(Lr)),{positions:ar,edges:Lr}};var Ue=Be("92ba"),We=Be("ff85")},cef0:function(Ee,ze,Be){"use strict";var Ue=Be("fc26"),We=Be("0642"),$e=Be("d858"),Qe=Be("fdc7");function calcXPaddingOptions(Ee){return calcPaddingOptions(Ee.line.width,Ee.xsizemode,Ee.x0,Ee.x1,Ee.path,!1)}function calcYPaddingOptions(Ee){return calcPaddingOptions(Ee.line.width,Ee.ysizemode,Ee.y0,Ee.y1,Ee.path,!0)}function calcPaddingOptions(Ee,ze,Be,We,rt,it){var at=Ee/2,ct=it;if("pixel"===ze){var ft=rt?Qe.extractPathCoords(rt,it?$e.paramIsY:$e.paramIsX):[Be,We],xt=Ue.aggNums(Math.max,null,ft),kt=Ue.aggNums(Math.min,null,ft),Lt=kt<0?Math.abs(kt)+at:at,Ut=xt>0?xt+at:at;return{ppad:at,ppadplus:ct?Lt:Ut,ppadminus:ct?Ut:Lt}}return{ppad:at}}function shapeBounds(Ee,ze,Be,Ue,We){var rt="category"===Ee.type||"multicategory"===Ee.type?Ee.r2c:Ee.d2c;if(void 0!==ze)return[rt(ze),rt(Be)];if(Ue){var it,at,ct,ft,xt=1/0,kt=-1/0,Lt=Ue.match($e.segmentRE);for("date"===Ee.type&&(rt=Qe.decodeDate(rt)),it=0;itkt&&(kt=ft)));return kt>=xt?[xt,kt]:void 0}}Ee.exports=function calcAutorange(Ee){var ze=Ee._fullLayout,Be=Ue.filterVisible(ze.shapes);if(Be.length&&Ee._fullData.length)for(var Qe=0;Qe>>1,x=a",We?".get(m)":"[m]"];return $e?ze.indexOf("c")<0?Qe.push(";if(x===y){return m}else if(x<=y){"):Qe.push(";var p=c(x,y);if(p===0){return m}else if(p<=0){"):Qe.push(";if(",ze,"){i=m;"),Be?Qe.push("l=m+1}else{h=m-1}"):Qe.push("h=m-1}else{l=m+1}"),Qe.push("}"),$e?Qe.push("return -1};"):Qe.push("return i};"),Qe.join("")}function compileBoundsSearch(Ee,ze,Be,Ue){return new Function([compileSearch("A","x"+Ee+"y",ze,["y"],!1,Ue),compileSearch("B","x"+Ee+"y",ze,["y"],!0,Ue),compileSearch("P","c(x,y)"+Ee+"0",ze,["y","c"],!1,Ue),compileSearch("Q","c(x,y)"+Ee+"0",ze,["y","c"],!0,Ue),"function dispatchBsearch",Be,"(a,y,c,l,h){if(a.shape){if(typeof(c)==='function'){return Q(a,(l===undefined)?0:l|0,(h===undefined)?a.shape[0]-1:h|0,y,c)}else{return B(a,(c===undefined)?0:c|0,(l===undefined)?a.shape[0]-1:l|0,y)}}else{if(typeof(c)==='function'){return P(a,(l===undefined)?0:l|0,(h===undefined)?a.length-1:h|0,y,c)}else{return A(a,(c===undefined)?0:c|0,(l===undefined)?a.length-1:l|0,y)}}}return dispatchBsearch",Be].join(""))()}Ee.exports={ge:compileBoundsSearch(">=",!1,"GE"),gt:compileBoundsSearch(">",!1,"GT"),lt:compileBoundsSearch("<",!0,"LT"),le:compileBoundsSearch("<=",!0,"LE"),eq:compileBoundsSearch("-",!0,"EQ",!0)}},cf8b:function(Ee,ze){Ee.exports=function create(){var Ee=new Float32Array(3);return Ee[0]=0,Ee[1]=0,Ee[2]=0,Ee}},cf9f:function(Ee,ze,Be){"use strict";var Ue=Be("6e58"),We=Be("b5e3"),$e=Be("a5c4"),Qe=Be("fc26"),rt=Be("83d1"),it=Be("66cb"),at=Be("0379");function performPlot(Ee,ze,Be,We){var $e=Ee.map(createParcatsViewModel.bind(0,ze,Be)),it=We.selectAll("g.parcatslayer").data([null]);it.enter().append("g").attr("class","parcatslayer").style("pointer-events","all");var ct=it.selectAll("g.trace.parcats").data($e,key),ft=ct.enter().append("g").attr("class","trace parcats");ct.attr("transform",(function(Ee){return"translate("+Ee.x+", "+Ee.y+")"})),ft.append("g").attr("class","paths");var xt=ct.select("g.paths").selectAll("path.path").data((function(Ee){return Ee.paths}),key);xt.attr("fill",(function(Ee){return Ee.model.color}));var kt=xt.enter().append("path").attr("class","path").attr("stroke-opacity",0).attr("fill",(function(Ee){return Ee.model.color})).attr("fill-opacity",0);stylePathsNoHover(kt),xt.attr("d",(function(Ee){return Ee.svgD})),kt.empty()||xt.sort(compareRawColor),xt.exit().remove(),xt.on("mouseover",mouseoverPath).on("mouseout",mouseoutPath).on("click",clickPath),ft.append("g").attr("class","dimensions");var Lt=ct.select("g.dimensions").selectAll("g.dimension").data((function(Ee){return Ee.dimensions}),key);Lt.enter().append("g").attr("class","dimension"),Lt.attr("transform",(function(Ee){return"translate("+Ee.x+", 0)"})),Lt.exit().remove();var Ut=Lt.selectAll("g.category").data((function(Ee){return Ee.categories}),key),er=Ut.enter().append("g").attr("class","category");Ut.attr("transform",(function(Ee){return"translate(0, "+Ee.y+")"})),er.append("rect").attr("class","catrect").attr("pointer-events","none"),Ut.select("rect.catrect").attr("fill","none").attr("width",(function(Ee){return Ee.width})).attr("height",(function(Ee){return Ee.height})),styleCategoriesNoHover(er);var tr=Ut.selectAll("rect.bandrect").data((function(Ee){return Ee.bands}),key);tr.each((function(){Qe.raiseToTop(this)})),tr.attr("fill",(function(Ee){return Ee.color}));var rr=tr.enter().append("rect").attr("class","bandrect").attr("stroke-opacity",0).attr("fill",(function(Ee){return Ee.color})).attr("fill-opacity",0);tr.attr("fill",(function(Ee){return Ee.color})).attr("width",(function(Ee){return Ee.width})).attr("height",(function(Ee){return Ee.height})).attr("y",(function(Ee){return Ee.y})).attr("cursor",(function(Ee){return"fixed"===Ee.parcatsViewModel.arrangement?"default":"perpendicular"===Ee.parcatsViewModel.arrangement?"ns-resize":"move"})),styleBandsNoHover(rr),tr.exit().remove(),er.append("text").attr("class","catlabel").attr("pointer-events","none");var ar=ze._fullLayout.paper_bgcolor;Ut.select("text.catlabel").attr("text-anchor",(function(Ee){return catInRightDim(Ee)?"start":"end"})).attr("alignment-baseline","middle").style("text-shadow",ar+" -1px 1px 2px, "+ar+" 1px 1px 2px, "+ar+" 1px -1px 2px, "+ar+" -1px -1px 2px").style("fill","rgb(0, 0, 0)").attr("x",(function(Ee){return catInRightDim(Ee)?Ee.width+5:-5})).attr("y",(function(Ee){return Ee.height/2})).text((function(Ee){return Ee.model.categoryLabel})).each((function(Ee){rt.font(Ue.select(this),Ee.parcatsViewModel.categorylabelfont),at.convertToTspans(Ue.select(this),ze)})),er.append("text").attr("class","dimlabel"),Ut.select("text.dimlabel").attr("text-anchor","middle").attr("alignment-baseline","baseline").attr("cursor",(function(Ee){return"fixed"===Ee.parcatsViewModel.arrangement?"default":"ew-resize"})).attr("x",(function(Ee){return Ee.width/2})).attr("y",-5).text((function(Ee,ze){return 0===ze?Ee.parcatsViewModel.model.dimensions[Ee.model.dimensionInd].dimensionLabel:null})).each((function(Ee){rt.font(Ue.select(this),Ee.parcatsViewModel.labelfont)})),Ut.selectAll("rect.bandrect").on("mouseover",mouseoverCategoryBand).on("mouseout",mouseoutCategory),Ut.exit().remove(),Lt.call(Ue.behavior.drag().origin((function(Ee){return{x:Ee.x,y:0}})).on("dragstart",dragDimensionStart).on("drag",dragDimension).on("dragend",dragDimensionEnd)),ct.each((function(Ee){Ee.traceSelection=Ue.select(this),Ee.pathSelection=Ue.select(this).selectAll("g.paths").selectAll("path.path"),Ee.dimensionSelection=Ue.select(this).selectAll("g.dimensions").selectAll("g.dimension")})),ct.exit().remove()}function key(Ee){return Ee.key}function catInRightDim(Ee){var ze=Ee.parcatsViewModel.dimensions.length,Be=Ee.parcatsViewModel.dimensions[ze-1].model.dimensionInd;return Ee.model.dimensionInd===Be}function compareRawColor(Ee,ze){return Ee.model.rawColor>ze.model.rawColor?1:Ee.model.rawColor"),hn=Ue.mouse(ft)[0];$e.loneHover({trace:xt,x:rr-Lt.left+Ut.left,y:ar-Lt.top+Ut.top,text:un,color:Ee.model.color,borderColor:"black",fontFamily:'Monaco, "Courier New", monospace',fontSize:10,fontColor:Lr,idealAlign:hn1&&at.displayInd===it.dimensions.length-1?(Be=Qe.left,We="left"):(Be=Qe.left+Qe.width,We="right");var xt=rt.model.count,kt=rt.model.categoryLabel,Lt=xt/rt.parcatsViewModel.model.count,Ut={countLabel:xt,categoryLabel:kt,probabilityLabel:Lt.toFixed(3)},er=[];-1!==rt.parcatsViewModel.hoverinfoItems.indexOf("count")&&er.push(["Count:",Ut.countLabel].join(" ")),-1!==rt.parcatsViewModel.hoverinfoItems.indexOf("probability")&&er.push(["P("+Ut.categoryLabel+"):",Ut.probabilityLabel].join(" "));var tr=er.join("
");return{trace:ct,x:Be-Ee.left,y:ft-Ee.top,text:tr,color:"lightgray",borderColor:"black",fontFamily:'Monaco, "Courier New", monospace',fontSize:12,fontColor:"black",idealAlign:We,hovertemplate:ct.hovertemplate,hovertemplateLabels:Ut,eventData:[{data:ct._input,fullData:ct,count:xt,category:kt,probability:Lt}]}}function mouseoverCategoryBand(Ee){if(!Ee.parcatsViewModel.dragDimension&&-1===Ee.parcatsViewModel.hoverinfoItems.indexOf("skip")){if(Ue.mouse(this)[1]<-1)return;var ze,Be=Ee.parcatsViewModel.graphDiv,We=Be._fullLayout,rt=We._paperdiv.node().getBoundingClientRect(),at=Ee.parcatsViewModel.hoveron;if("color"===at?(!function styleForColorHovermode(Ee){var ze=Ue.select(Ee).datum(),Be=selectPathsThroughCategoryBandColor(ze);stylePathsHover(Be),Be.each((function(){Qe.raiseToTop(this)})),Ue.select(Ee.parentNode).selectAll("rect.bandrect").filter((function(Ee){return Ee.color===ze.color})).each((function(){Qe.raiseToTop(this),function styleBandsHover(Ee){Ee.attr("stroke","black").attr("stroke-width",1.5)}(Ue.select(this))}))}(this),emitPointsEventColorHovermode(this,"plotly_hover",Ue.event)):(!function styleForCategoryHovermode(Ee){Ue.select(Ee.parentNode).selectAll("rect.bandrect").each((function(Ee){var ze=selectPathsThroughCategoryBandColor(Ee);stylePathsHover(ze),ze.each((function(){Qe.raiseToTop(this)}))})),function styleCategoryHover(Ee){Ee.select("rect.catrect").attr("stroke","black").attr("stroke-width",2.5)}(Ue.select(Ee.parentNode))}(this),emitPointsEventCategoryHovermode(this,"plotly_hover",Ue.event)),-1===Ee.parcatsViewModel.hoverinfoItems.indexOf("none"))"category"===at?ze=createHoverLabelForCategoryHovermode(rt,this):"color"===at?ze=function createHoverLabelForColorHovermode(Ee,ze){var Be,We,$e=ze.getBoundingClientRect(),Qe=Ue.select(ze).datum(),rt=Qe.categoryViewModel,at=rt.parcatsViewModel,ct=at.model.dimensions[rt.model.dimensionInd],ft=at.trace,xt=$e.y+$e.height/2;at.dimensions.length>1&&ct.displayInd===at.dimensions.length-1?(Be=$e.left,We="left"):(Be=$e.left+$e.width,We="right");var kt=rt.model.categoryLabel,Lt=Qe.parcatsViewModel.model.count,Ut=0;Qe.categoryViewModel.bands.forEach((function(Ee){Ee.color===Qe.color&&(Ut+=Ee.count)}));var er=rt.model.count,tr=0;at.pathSelection.each((function(Ee){Ee.model.color===Qe.color&&(tr+=Ee.model.count)}));var rr=Ut/Lt,ar=Ut/tr,Lr=Ut/er,Qr={countLabel:Lt,categoryLabel:kt,probabilityLabel:rr.toFixed(3)},on=[];-1!==rt.parcatsViewModel.hoverinfoItems.indexOf("count")&&on.push(["Count:",Qr.countLabel].join(" ")),-1!==rt.parcatsViewModel.hoverinfoItems.indexOf("probability")&&(on.push("P(color ∩ "+kt+"): "+Qr.probabilityLabel),on.push("P("+kt+" | color): "+ar.toFixed(3)),on.push("P(color | "+kt+"): "+Lr.toFixed(3)));var sn=on.join("
"),cn=it.mostReadable(Qe.color,["black","white"]);return{trace:ft,x:Be-Ee.left,y:xt-Ee.top,text:sn,color:Qe.color,borderColor:"black",fontFamily:'Monaco, "Courier New", monospace',fontColor:cn,fontSize:10,idealAlign:We,hovertemplate:ft.hovertemplate,hovertemplateLabels:Qr,eventData:[{data:ft._input,fullData:ft,category:kt,count:Lt,probability:rr,categorycount:er,colorcount:tr,bandcolorcount:Ut}]}}(rt,this):"dimension"===at&&(ze=function createHoverLabelForDimensionHovermode(Ee,ze){var Be=[];return Ue.select(ze.parentNode.parentNode).selectAll("g.category").select("rect.catrect").each((function(){Be.push(createHoverLabelForCategoryHovermode(Ee,this))})),Be}(rt,this)),ze&&$e.loneHover(ze,{container:We._hoverlayer.node(),outerContainer:We._paper.node(),gd:Be})}}function mouseoutCategory(Ee){var ze=Ee.parcatsViewModel;if(!ze.dragDimension&&(stylePathsNoHover(ze.pathSelection),styleCategoriesNoHover(ze.dimensionSelection.selectAll("g.category")),styleBandsNoHover(ze.dimensionSelection.selectAll("g.category").selectAll("rect.bandrect")),$e.loneUnhover(ze.graphDiv._fullLayout._hoverlayer.node()),ze.pathSelection.sort(compareRawColor),-1===ze.hoverinfoItems.indexOf("skip"))){"color"===Ee.parcatsViewModel.hoveron?emitPointsEventColorHovermode(this,"plotly_unhover",Ue.event):emitPointsEventCategoryHovermode(this,"plotly_unhover",Ue.event)}}function dragDimensionStart(Ee){"fixed"!==Ee.parcatsViewModel.arrangement&&(Ee.dragDimensionDisplayInd=Ee.model.displayInd,Ee.initialDragDimensionDisplayInds=Ee.parcatsViewModel.model.dimensions.map((function(Ee){return Ee.displayInd})),Ee.dragHasMoved=!1,Ee.dragCategoryDisplayInd=null,Ue.select(this).selectAll("g.category").select("rect.catrect").each((function(ze){var Be=Ue.mouse(this)[0],We=Ue.mouse(this)[1];-2<=Be&&Be<=ze.width+2&&-2<=We&&We<=ze.height+2&&(Ee.dragCategoryDisplayInd=ze.model.displayInd,Ee.initialDragCategoryDisplayInds=Ee.model.categories.map((function(Ee){return Ee.displayInd})),ze.model.dragY=ze.y,Qe.raiseToTop(this.parentNode),Ue.select(this.parentNode).selectAll("rect.bandrect").each((function(ze){ze.yft.y+ft.height/2&&(Qe.model.displayInd=ft.model.displayInd,ft.model.displayInd=it),Ee.dragCategoryDisplayInd=Qe.model.displayInd}if(null===Ee.dragCategoryDisplayInd||"freeform"===Ee.parcatsViewModel.arrangement){$e.model.dragX=Ue.event.x;var xt=Ee.parcatsViewModel.dimensions[Be],kt=Ee.parcatsViewModel.dimensions[We];void 0!==xt&&$e.model.dragXkt.x&&($e.model.displayInd=kt.model.displayInd,kt.model.displayInd=Ee.dragDimensionDisplayInd),Ee.dragDimensionDisplayInd=$e.model.displayInd}updateDimensionViewModels(Ee.parcatsViewModel),updatePathViewModels(Ee.parcatsViewModel),updateSvgCategories(Ee.parcatsViewModel),updateSvgPaths(Ee.parcatsViewModel)}}function dragDimensionEnd(Ee){if("fixed"!==Ee.parcatsViewModel.arrangement&&null!==Ee.dragDimensionDisplayInd){Ue.select(this).selectAll("text").attr("font-weight","normal");var ze={},Be=getTraceIndex(Ee.parcatsViewModel),$e=Ee.parcatsViewModel.model.dimensions.map((function(Ee){return Ee.displayInd})),Qe=Ee.initialDragDimensionDisplayInds.some((function(Ee,ze){return Ee!==$e[ze]}));Qe&&$e.forEach((function(Be,Ue){var We=Ee.parcatsViewModel.model.dimensions[Ue].containerInd;ze["dimensions["+We+"].displayindex"]=Be}));var rt=!1;if(null!==Ee.dragCategoryDisplayInd){var it=Ee.model.categories.map((function(Ee){return Ee.displayInd}));if(rt=Ee.initialDragCategoryDisplayInds.some((function(Ee,ze){return Ee!==it[ze]}))){var at=Ee.model.categories.slice().sort((function(Ee,ze){return Ee.displayInd-ze.displayInd})),ct=at.map((function(Ee){return Ee.categoryValue})),ft=at.map((function(Ee){return Ee.categoryLabel}));ze["dimensions["+Ee.model.containerInd+"].categoryarray"]=[ct],ze["dimensions["+Ee.model.containerInd+"].ticktext"]=[ft],ze["dimensions["+Ee.model.containerInd+"].categoryorder"]="array"}}if(-1===Ee.parcatsViewModel.hoverinfoItems.indexOf("skip")&&!Ee.dragHasMoved&&Ee.potentialClickBand&&("color"===Ee.parcatsViewModel.hoveron?emitPointsEventColorHovermode(Ee.potentialClickBand,"plotly_click",Ue.event.sourceEvent):emitPointsEventCategoryHovermode(Ee.potentialClickBand,"plotly_click",Ue.event.sourceEvent)),Ee.model.dragX=null,null!==Ee.dragCategoryDisplayInd)Ee.parcatsViewModel.dimensions[Ee.dragDimensionDisplayInd].categories[Ee.dragCategoryDisplayInd].model.dragY=null,Ee.dragCategoryDisplayInd=null;Ee.dragDimensionDisplayInd=null,Ee.parcatsViewModel.dragDimension=null,Ee.dragHasMoved=null,Ee.potentialClickBand=null,updateDimensionViewModels(Ee.parcatsViewModel),updatePathViewModels(Ee.parcatsViewModel),Ue.transition().duration(300).ease("cubic-in-out").each((function(){updateSvgCategories(Ee.parcatsViewModel,!0),updateSvgPaths(Ee.parcatsViewModel,!0)})).each("end",(function(){(Qe||rt)&&We.restyle(Ee.parcatsViewModel.graphDiv,ze,[Be])}))}}function getTraceIndex(Ee){for(var ze,Be=Ee.graphDiv._fullData,Ue=0;Ue=0;rt--)ct+="C"+at[rt]+","+(ze[rt+1]+We)+" "+it[rt]+","+(ze[rt]+We)+" "+(Ee[rt]+Be[rt])+","+(ze[rt]+We),ct+="l-"+Be[rt]+",0 ";return ct+="Z"}function updatePathViewModels(Ee){var ze=Ee.dimensions,Be=Ee.model,Ue=ze.map((function(Ee){return Ee.categories.map((function(Ee){return Ee.y}))})),We=Ee.model.dimensions.map((function(Ee){return Ee.categories.map((function(Ee){return Ee.displayInd}))})),$e=Ee.model.dimensions.map((function(Ee){return Ee.displayInd})),Qe=Ee.dimensions.map((function(Ee){return Ee.model.dimensionInd})),rt=ze.map((function(Ee){return Ee.x})),it=ze.map((function(Ee){return Ee.width})),at=[];for(var ct in Be.paths)Be.paths.hasOwnProperty(ct)&&at.push(Be.paths[ct]);function pathDisplayCategoryInds(Ee){var ze=Ee.categoryInds.map((function(Ee,ze){return We[ze][Ee]}));return Qe.map((function(Ee){return ze[Ee]}))}at.sort((function(ze,Be){var Ue=pathDisplayCategoryInds(ze),We=pathDisplayCategoryInds(Be);return"backward"===Ee.sortpaths&&(Ue.reverse(),We.reverse()),Ue.push(ze.valueInds[0]),We.push(Be.valueInds[0]),Ee.bundlecolors&&(Ue.unshift(ze.rawColor),We.unshift(Be.rawColor)),UeWe?1:0}));for(var ft=new Array(at.length),xt=ze[0].model.count,kt=ze[0].categories.map((function(Ee){return Ee.height})).reduce((function(Ee,ze){return Ee+ze})),Lt=0;Lt0?kt*(er.count/xt):0;for(var tr,rr=new Array(Ue.length),ar=0;ar1?(Ee.width-80-16)/(Ue-1):0)*We;var $e,Qe,rt,it,at,ct=[],ft=Ee.model.maxCats,xt=ze.categories.length,kt=ze.count,Lt=Ee.height-8*(ft-1),Ut=8*(ft-xt)/2,er=ze.categories.map((function(Ee){return{displayInd:Ee.displayInd,categoryInd:Ee.categoryInd}}));for(er.sort((function(Ee,ze){return Ee.displayInd-ze.displayInd})),at=0;at0?Qe.count/kt*Lt:0,rt={key:Qe.valueInds[0],model:Qe,width:16,height:$e,y:null!==Qe.dragY?Qe.dragY:Ut,bands:[],parcatsViewModel:Ee},Ut=Ut+$e+8,ct.push(rt);return{key:ze.dimensionInd,x:null!==ze.dragX?ze.dragX:Be,y:0,width:16,model:ze,categories:ct,parcatsViewModel:Ee,dragCategoryDisplayInd:null,dragDimensionDisplayInd:null,initialDragDimensionDisplayInds:null,initialDragCategoryDisplayInds:null,dragHasMoved:null,potentialClickBand:null}}Ee.exports=function(Ee,ze,Be,Ue){performPlot(Be,Ee,Ue,ze)}},d012:function(Ee,ze){Ee.exports={}},d039:function(Ee,ze){Ee.exports=function(Ee){try{return!!Ee()}catch(Ee){return!0}}},d064:function(Ee,ze,Be){"use strict";var Ue=Be("fc26"),We=Be("e806").BADNUM;Ee.exports=function convertColumnData(Ee,ze,Be,$e,Qe,rt){var it,at,ct,ft,xt=Ee._length,kt=ze.makeCalcdata(Ee,$e),Lt=Be.makeCalcdata(Ee,Qe),Ut=Ee.text,er=void 0!==Ut&&Ue.isArray1D(Ut),tr=Ee.hovertext,rr=void 0!==tr&&Ue.isArray1D(tr),ar=Ue.distinctVals(kt),Lr=ar.vals,Qr=Ue.distinctVals(Lt),on=Qr.vals,sn=[];for(it=0;it4)throw new We("","Invalid uniform dimension type for matrix "+name+": "+Be);return"gl.uniformMatrix"+$e+"fv(locations["+ze+"],false,obj"+Ee+")"}throw new We("","Unknown uniform data type for "+name+": "+Be)}if(($e=Be.charCodeAt(Be.length-1)-48)<2||$e>4)throw new We("","Invalid data type");switch(Be.charAt(0)){case"b":case"i":return"gl.uniform"+$e+"iv(locations["+ze+"],obj"+Ee+")";case"v":return"gl.uniform"+$e+"fv(locations["+ze+"],obj"+Ee+")";default:throw new We("","Unrecognized data type for vector "+name+": "+Be)}}}function makeSetter(ze){for(var Ue=["return function updateProperty(obj){"],We=function enumerateIndices(Ee,ze){if("object"!=typeof ze)return[[Ee,ze]];var Be=[];for(var Ue in ze){var We=ze[Ue],$e=Ee;parseInt(Ue)+""===Ue?$e+="["+Ue+"]":$e+="."+Ue,"object"==typeof We?Be.push.apply(Be,enumerateIndices($e,We)):Be.push([$e,We])}return Be}("",ze),Qe=0;Qe4)throw new We("","Invalid data type");return"b"===Ee.charAt(0)?makeVector(Be,!1):makeVector(Be,0)}if(0===Ee.indexOf("mat")&&4===Ee.length){var Be;if((Be=Ee.charCodeAt(Ee.length-1)-48)<2||Be>4)throw new We("","Invalid uniform dimension type for matrix "+name+": "+Ee);return makeVector(Be*Be,0)}throw new We("","Unknown uniform data type for "+name+": "+Ee)}}(Be[rt].type);var at}function processObject(Ee){var ze;if(Array.isArray(Ee)){ze=new Array(Ee.length);for(var Be=0;Be=0&&coerce("surfacecolor",ft||xt);for(var kt=["x","y","z"],Lt=0;Lt<3;++Lt){var Ut="projection."+kt[Lt];coerce(Ut+".show")&&(coerce(Ut+".opacity"),coerce(Ut+".scale"))}var er=Ue.getComponentMethod("errorbars","supplyDefaults");er(Ee,ze,ft||xt||Be,{axis:"z"}),er(Ee,ze,ft||xt||Be,{axis:"y",inherit:"z"}),er(Ee,ze,ft||xt||Be,{axis:"x",inherit:"z"})}else ze.visible=!1}},d0ad:function(Ee,ze,Be){"use strict";var Ue=Be("19b2"),We=Be("e806").BADNUM,$e=Be("3aa8"),Qe=Be("106b"),rt=Be("4136");function isNonBlankString(Ee){return Ee&&"string"==typeof Ee}Ee.exports=function calc(Ee,ze){var Be,it=ze._length,at=new Array(it);Be=ze.geojson?function(Ee){return isNonBlankString(Ee)||Ue(Ee)}:isNonBlankString;for(var ct=0;ct0){for(var Be=0;Be0}function convertOpts(Ee){var ze={},Be={};switch(Ee.type){case"circle":Ue.extendFlat(Be,{"circle-radius":Ee.circle.radius,"circle-color":Ee.color,"circle-opacity":Ee.opacity});break;case"line":Ue.extendFlat(Be,{"line-width":Ee.line.width,"line-color":Ee.color,"line-opacity":Ee.opacity,"line-dasharray":Ee.line.dash});break;case"fill":Ue.extendFlat(Be,{"fill-color":Ee.color,"fill-outline-color":Ee.fill.outlinecolor,"fill-opacity":Ee.opacity});break;case"symbol":var $e=Ee.symbol,Qe=We($e.textposition,$e.iconsize);Ue.extendFlat(ze,{"icon-image":$e.icon+"-15","icon-size":$e.iconsize/10,"text-field":$e.text,"text-size":$e.textfont.size,"text-anchor":Qe.anchor,"text-offset":Qe.offset,"symbol-placement":$e.placement}),Ue.extendFlat(Be,{"icon-color":Ee.color,"text-color":$e.textfont.color,"text-opacity":Ee.opacity});break;case"raster":Ue.extendFlat(Be,{"raster-fade-duration":0})}return{layout:ze,paint:Be}}Qe.update=function update(Ee){this.visible?this.needsNewImage(Ee)?this.updateImage(Ee):this.needsNewSource(Ee)?(this.removeLayer(),this.updateSource(Ee),this.updateLayer(Ee)):this.needsNewLayer(Ee)?this.updateLayer(Ee):this.updateStyle(Ee):(this.updateSource(Ee),this.updateLayer(Ee)),this.visible=isVisible(Ee)},Qe.needsNewImage=function(Ee){return this.subplot.map.getSource(this.idSource)&&"image"===this.sourceType&&"image"===Ee.sourcetype&&(this.source!==Ee.source||JSON.stringify(this.coordinates)!==JSON.stringify(Ee.coordinates))},Qe.needsNewSource=function(Ee){return this.sourceType!==Ee.sourcetype||this.source!==Ee.source||this.layerType!==Ee.type},Qe.needsNewLayer=function(Ee){return this.layerType!==Ee.type||this.below!==this.subplot.belowLookup["layout-"+this.index]},Qe.updateImage=function(Ee){this.subplot.map.getSource(this.idSource).updateImage({url:Ee.source,coordinates:Ee.coordinates})},Qe.updateSource=function(Ee){var ze=this.subplot.map;if(ze.getSource(this.idSource)&&ze.removeSource(this.idSource),this.sourceType=Ee.sourcetype,this.source=Ee.source,isVisible(Ee)){var Be=function convertSourceOpts(Ee){var ze,Be=Ee.sourcetype,Ue=Ee.source,We={type:Be};"geojson"===Be?ze="data":"vector"===Be?ze="string"==typeof Ue?"url":"tiles":"raster"===Be?(ze="tiles",We.tileSize=256):"image"===Be&&(ze="url",We.coordinates=Ee.coordinates);We[ze]=Ue,Ee.sourceattribution&&(We.attribution=Ee.sourceattribution);return We}(Ee);ze.addSource(this.idSource,Be)}},Qe.updateLayer=function(Ee){var ze,Be=this.subplot,Ue=convertOpts(Ee),We=this.subplot.belowLookup["layout-"+this.index];if("traces"===We)for(var Qe=Be.getMapLayers(),rt=0;rt=0))return Ee;if(3===Qe)Ue[Qe]>1&&(Ue[Qe]=1);else if(Ue[Qe]>=1)return Ee}var rt=Math.round(255*Ue[0])+", "+Math.round(255*Ue[1])+", "+Math.round(255*Ue[2]);return $e?"rgba("+rt+", "+Ue[3]+")":"rgb("+rt+")"}$e.tinyRGB=function(Ee){var ze=Ee.toRgb();return"rgb("+Math.round(ze.r)+", "+Math.round(ze.g)+", "+Math.round(ze.b)+")"},$e.rgb=function(Ee){return $e.tinyRGB(Ue(Ee))},$e.opacity=function(Ee){return Ee?Ue(Ee).getAlpha():0},$e.addOpacity=function(Ee,ze){var Be=Ue(Ee).toRgb();return"rgba("+Math.round(Be.r)+", "+Math.round(Be.g)+", "+Math.round(Be.b)+", "+ze+")"},$e.combine=function(Ee,ze){var Be=Ue(Ee).toRgb();if(1===Be.a)return Ue(Ee).toRgbString();var We=Ue(ze||it).toRgb(),$e=1===We.a?We:{r:255*(1-We.a)+We.r*We.a,g:255*(1-We.a)+We.g*We.a,b:255*(1-We.a)+We.b*We.a},Qe={r:$e.r*(1-Be.a)+Be.r*Be.a,g:$e.g*(1-Be.a)+Be.g*Be.a,b:$e.b*(1-Be.a)+Be.b*Be.a};return Ue(Qe).toRgbString()},$e.contrast=function(Ee,ze,Be){var We=Ue(Ee);return 1!==We.getAlpha()&&(We=Ue($e.combine(Ee,it))),(We.isDark()?ze?We.lighten(ze):it:Be?We.darken(Be):rt).toString()},$e.stroke=function(Ee,ze){var Be=Ue(ze);Ee.style({stroke:$e.tinyRGB(Be),"stroke-opacity":Be.getAlpha()})},$e.fill=function(Ee,ze){var Be=Ue(ze);Ee.style({fill:$e.tinyRGB(Be),"fill-opacity":Be.getAlpha()})},$e.clean=function(Ee){if(Ee&&"object"==typeof Ee){var ze,Be,Ue,We,Qe=Object.keys(Ee);for(ze=0;ze0;Qe&&(We="array");var rt,it=Be("categoryorder",We);"array"===it&&(rt=Be("categoryarray")),Qe||"array"!==it||(it=ze.categoryorder="trace"),"trace"===it?ze._initialCategories=[]:"array"===it?ze._initialCategories=rt.slice():(rt=function findCategories(Ee,ze){var Be,Ue,We,$e=ze.dataAttr||Ee._id.charAt(0),Qe={};if(ze.axData)Be=ze.axData;else for(Be=[],Ue=0;Ue-1&&(ct[xt[Be]].title={text:""});for(Be=0;BeEe.lo&&(ar.so=!0)}return $e}));xt.enter().append("path").classed("point",!0),xt.exit().remove(),xt.call($e.translatePoints,Qe,rt)}function plotBoxMean(Ee,ze,Be,$e){var Qe,rt,it=ze.pos,at=ze.val,ct=$e.bPos,ft=$e.bPosPxOffset||0,xt=Be.boxmean||(Be.meanline||{}).visible;Array.isArray($e.bdPos)?(Qe=$e.bdPos[0],rt=$e.bdPos[1]):(Qe=$e.bdPos,rt=$e.bdPos);var kt=Ee.selectAll("path.mean").data("box"===Be.type&&Be.boxmean||"violin"===Be.type&&Be.box.visible&&Be.meanline.visible?We.identity:[]);kt.enter().append("path").attr("class","mean").style({fill:"none","vector-effect":"non-scaling-stroke"}),kt.exit().remove(),kt.each((function(Ee){var ze=it.c2l(Ee.pos+ct,!0),We=it.l2p(ze)+ft,$e=it.l2p(ze-Qe)+ft,kt=it.l2p(ze+rt)+ft,Lt=at.c2p(Ee.mean,!0),Ut=at.c2p(Ee.mean-Ee.sd,!0),er=at.c2p(Ee.mean+Ee.sd,!0);"h"===Be.orientation?Ue.select(this).attr("d","M"+Lt+","+$e+"V"+kt+("sd"===xt?"m0,0L"+Ut+","+We+"L"+Lt+","+$e+"L"+er+","+We+"Z":"")):Ue.select(this).attr("d","M"+$e+","+Lt+"H"+kt+("sd"===xt?"m0,0L"+We+","+Ut+"L"+$e+","+Lt+"L"+We+","+er+"Z":""))}))}Ee.exports={plot:function plot(Ee,ze,Be,$e){var Qe=ze.xaxis,rt=ze.yaxis;We.makeTraceGroups($e,Be,"trace boxes").each((function(Ee){var ze,Be,We=Ue.select(this),$e=Ee[0],it=$e.t,at=$e.trace;(it.wdPos=it.bdPos*at.whiskerwidth,!0!==at.visible||it.empty)?We.remove():("h"===at.orientation?(ze=rt,Be=Qe):(ze=Qe,Be=rt),plotBoxAndWhiskers(We,{pos:ze,val:Be},at,it),plotPoints(We,{x:Qe,y:rt},at,it),plotBoxMean(We,{pos:ze,val:Be},at,it))}))},plotBoxAndWhiskers:plotBoxAndWhiskers,plotPoints:plotPoints,plotBoxMean:plotBoxMean}},d37d:function(Ee,ze,Be){"use strict";var Ue=Be("4c18");Ee.exports=function createThunk(Ee){var ze=["'use strict'","var CACHED={}"],Be=[],We=Ee.funcName+"_cwise_thunk";ze.push(["return function ",We,"(",Ee.shimArgs.join(","),"){"].join(""));for(var $e=[],Qe=[],rt=[["array",Ee.arrayArgs[0],".shape.slice(",Math.max(0,Ee.arrayBlockIndices[0]),Ee.arrayBlockIndices[0]<0?","+Ee.arrayBlockIndices[0]+")":")"].join("")],it=[],at=[],ct=0;ct0&&(it.push("array"+Ee.arrayArgs[0]+".shape.length===array"+ft+".shape.length+"+(Math.abs(Ee.arrayBlockIndices[0])-Math.abs(Ee.arrayBlockIndices[ct]))),at.push("array"+Ee.arrayArgs[0]+".shape[shapeIndex+"+Math.max(0,Ee.arrayBlockIndices[0])+"]===array"+ft+".shape[shapeIndex+"+Math.max(0,Ee.arrayBlockIndices[ct])+"]"))}for(Ee.arrayArgs.length>1&&(ze.push("if (!("+it.join(" && ")+")) throw new Error('cwise: Arrays do not all have the same dimensionality!')"),ze.push("for(var shapeIndex=array"+Ee.arrayArgs[0]+".shape.length-"+Math.abs(Ee.arrayBlockIndices[0])+"; shapeIndex--\x3e0;) {"),ze.push("if (!("+at.join(" && ")+")) throw new Error('cwise: Arrays do not all have the same shape!')"),ze.push("}")),ct=0;ct=0;--kt)$e[kt]=at*Ee[kt]+ct*ze[kt]+ft*Be[kt]+xt*Ue[kt];return $e}return at*Ee+ct*ze+ft*Be+xt*Ue},Ee.exports.derivative=function dcubicHermite(Ee,ze,Be,Ue,We,$e){var Qe=6*We*We-6*We,rt=3*We*We-4*We+1,it=-6*We*We+6*We,at=3*We*We-2*We;if(Ee.length){$e||($e=new Array(Ee.length));for(var ct=Ee.length-1;ct>=0;--ct)$e[ct]=Qe*Ee[ct]+rt*ze[ct]+it*Be[ct]+at*Ue[ct];return $e}return Qe*Ee+rt*ze+it*Be[ct]+at*Ue}},d3d4:function(Ee,ze,Be){"use strict";var Ue=Be("0642"),We=Be("f977");function Axes2DOptions(Ee){this.scene=Ee,this.gl=Ee.gl,this.pixelRatio=Ee.pixelRatio,this.screenBox=[0,0,1,1],this.viewBox=[0,0,1,1],this.dataBox=[-1,-1,1,1],this.borderLineEnable=[!1,!1,!1,!1],this.borderLineWidth=[1,1,1,1],this.borderLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.ticks=[[],[]],this.tickEnable=[!0,!0,!1,!1],this.tickPad=[15,15,15,15],this.tickAngle=[0,0,0,0],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickMarkLength=[0,0,0,0],this.tickMarkWidth=[0,0,0,0],this.tickMarkColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labels=["x","y"],this.labelEnable=[!0,!0,!1,!1],this.labelAngle=[0,Math.PI/2,0,3*Math.PI/2],this.labelPad=[15,15,15,15],this.labelSize=[12,12],this.labelFont=["sans-serif","sans-serif"],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.title="",this.titleEnable=!0,this.titleCenter=[0,0,0,0],this.titleAngle=0,this.titleColor=[0,0,0,1],this.titleFont="sans-serif",this.titleSize=18,this.gridLineEnable=[!0,!0],this.gridLineColor=[[0,0,0,.5],[0,0,0,.5]],this.gridLineWidth=[1,1],this.zeroLineEnable=[!0,!0],this.zeroLineWidth=[1,1],this.zeroLineColor=[[0,0,0,1],[0,0,0,1]],this.borderColor=[0,0,0,0],this.backgroundColor=[0,0,0,0],this.static=this.scene.staticPlot}var $e=Axes2DOptions.prototype,Qe=["xaxis","yaxis"];$e.merge=function(Ee){var ze,Be,Ue,$e,rt,it,at,ct,ft,xt,kt;for(this.titleEnable=!1,this.backgroundColor=We(Ee.plot_bgcolor),xt=0;xt<2;++xt){var Lt=(ze=Qe[xt]).charAt(0);for(Ue=(Be=Ee[this.scene[ze]._name]).title.text===this.scene.fullLayout._dfltTitle[Lt]?"":Be.title.text,kt=0;kt<=2;kt+=2)this.labelEnable[xt+kt]=!1,this.labels[xt+kt]=Ue,this.labelColor[xt+kt]=We(Be.title.font.color),this.labelFont[xt+kt]=Be.title.font.family,this.labelSize[xt+kt]=Be.title.font.size,this.labelPad[xt+kt]=this.getLabelPad(ze,Be),this.tickEnable[xt+kt]=!1,this.tickColor[xt+kt]=We((Be.tickfont||{}).color),this.tickAngle[xt+kt]="auto"===Be.tickangle?0:Math.PI*-Be.tickangle/180,this.tickPad[xt+kt]=this.getTickPad(Be),this.tickMarkLength[xt+kt]=0,this.tickMarkWidth[xt+kt]=Be.tickwidth||0,this.tickMarkColor[xt+kt]=We(Be.tickcolor),this.borderLineEnable[xt+kt]=!1,this.borderLineColor[xt+kt]=We(Be.linecolor),this.borderLineWidth[xt+kt]=Be.linewidth||0;at=this.hasSharedAxis(Be),rt=this.hasAxisInDfltPos(ze,Be)&&!at,it=this.hasAxisInAltrPos(ze,Be)&&!at,$e=Be.mirror||!1,ct=at?-1!==String($e).indexOf("all"):!!$e,ft=at?"allticks"===$e:-1!==String($e).indexOf("ticks"),rt?this.labelEnable[xt]=!0:it&&(this.labelEnable[xt+2]=!0),rt?this.tickEnable[xt]=Be.showticklabels:it&&(this.tickEnable[xt+2]=Be.showticklabels),(rt||ct)&&(this.borderLineEnable[xt]=Be.showline),(it||ct)&&(this.borderLineEnable[xt+2]=Be.showline),(rt||ft)&&(this.tickMarkLength[xt]=this.getTickMarkLength(Be)),(it||ft)&&(this.tickMarkLength[xt+2]=this.getTickMarkLength(Be)),this.gridLineEnable[xt]=Be.showgrid,this.gridLineColor[xt]=We(Be.gridcolor),this.gridLineWidth[xt]=Be.gridwidth,this.zeroLineEnable[xt]=Be.zeroline,this.zeroLineColor[xt]=We(Be.zerolinecolor),this.zeroLineWidth[xt]=Be.zerolinewidth}},$e.hasSharedAxis=function(Ee){var ze=this.scene,Be=ze.fullLayout._subplots.gl2d;return 0!==Ue.findSubplotsWithAxis(Be,Ee).indexOf(ze.id)},$e.hasAxisInDfltPos=function(Ee,ze){var Be=ze.side;return"xaxis"===Ee?"bottom"===Be:"yaxis"===Ee?"left"===Be:void 0},$e.hasAxisInAltrPos=function(Ee,ze){var Be=ze.side;return"xaxis"===Ee?"top"===Be:"yaxis"===Ee?"right"===Be:void 0},$e.getLabelPad=function(Ee,ze){var Be=ze.title.font.size,Ue=ze.showticklabels;return"xaxis"===Ee?"top"===ze.side?Be*(1.5+(Ue?1:0))-10:Be*(1.5+(Ue?.5:0))-10:"yaxis"===Ee?"right"===ze.side?10+Be*(1.5+(Ue?1:.5)):10+Be*(1.5+(Ue?.5:0)):void 0},$e.getTickPad=function(Ee){return"outside"===Ee.ticks?10+Ee.ticklen:15},$e.getTickMarkLength=function(Ee){if(!Ee.ticks)return 0;var ze=Ee.ticklen;return"inside"===Ee.ticks?-ze:ze},Ee.exports=function createAxes2D(Ee){return new Axes2DOptions(Ee)}},d3dc:function(Ee,ze,Be){"use strict";Ee.exports={mod:function mod(Ee,ze){var Be=Ee%ze;return Be<0?Be+ze:Be},modHalf:function modHalf(Ee,ze){return Math.abs(Ee)>ze/2?Ee-Math.round(Ee/ze)*ze:Ee}}},d402:function(Ee,ze,Be){var Ue=Be("0230"),We=Be("320c");function DiscworldCalendar(Ee){this.local=this.regionalOptions[Ee||""]||this.regionalOptions[""]}DiscworldCalendar.prototype=new Ue.baseCalendar,We(DiscworldCalendar.prototype,{name:"Discworld",jdEpoch:1721425.5,daysPerMonth:[16,32,32,32,32,32,32,32,32,32,32,32,32],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Discworld",epochs:["BUC","UC"],monthNames:["Ick","Offle","February","March","April","May","June","Grune","August","Spune","Sektober","Ember","December"],monthNamesShort:["Ick","Off","Feb","Mar","Apr","May","Jun","Gru","Aug","Spu","Sek","Emb","Dec"],dayNames:["Sunday","Octeday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Oct","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Oc","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:2,isRTL:!1}},leapYear:function(Ee){return this._validate(Ee,this.minMonth,this.minDay,Ue.local.invalidYear),!1},monthsInYear:function(Ee){return this._validate(Ee,this.minMonth,this.minDay,Ue.local.invalidYear),13},daysInYear:function(Ee){return this._validate(Ee,this.minMonth,this.minDay,Ue.local.invalidYear),400},weekOfYear:function(Ee,ze,Be){var Ue=this.newDate(Ee,ze,Be);return Ue.add(-Ue.dayOfWeek(),"d"),Math.floor((Ue.dayOfYear()-1)/8)+1},daysInMonth:function(Ee,ze){var Be=this._validate(Ee,ze,this.minDay,Ue.local.invalidMonth);return this.daysPerMonth[Be.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(Ee,ze,Be){return(this._validate(Ee,ze,Be,Ue.local.invalidDate).day()+1)%8},weekDay:function(Ee,ze,Be){var Ue=this.dayOfWeek(Ee,ze,Be);return Ue>=2&&Ue<=6},extraInfo:function(Ee,ze,Be){var We=this._validate(Ee,ze,Be,Ue.local.invalidDate);return{century:$e[Math.floor((We.year()-1)/100)+1]||""}},toJD:function(Ee,ze,Be){var We=this._validate(Ee,ze,Be,Ue.local.invalidDate);return Ee=We.year()+(We.year()<0?1:0),ze=We.month(),(Be=We.day())+(ze>1?16:0)+(ze>2?32*(ze-2):0)+400*(Ee-1)+this.jdEpoch-1},fromJD:function(Ee){Ee=Math.floor(Ee+.5)-Math.floor(this.jdEpoch)-1;var ze=Math.floor(Ee/400)+1;Ee-=400*(ze-1),Ee+=Ee>15?16:0;var Be=Math.floor(Ee/32)+1,Ue=Ee-32*(Be-1)+1;return this.newDate(ze<=0?ze-1:ze,Be,Ue)}});var $e={20:"Fruitbat",21:"Anchovy"};Ue.calendars.discworld=DiscworldCalendar},d40d:function(Ee,ze,Be){Ee.exports=Be("ef49")},d41a:function(Ee,ze,Be){"use strict";ze.uniforms=function runtimeUniforms(Ee,ze){for(var Be=Ee.getProgramParameter(ze,Ee.ACTIVE_UNIFORMS),Ue=[],We=0;We1)for(var rt=0;rt<$e.size;++rt)Ue.push({name:$e.name.replace("[0]","["+rt+"]"),type:Qe});else Ue.push({name:$e.name,type:Qe})}}return Ue},ze.attributes=function runtimeAttributes(Ee,ze){for(var Be=Ee.getProgramParameter(ze,Ee.ACTIVE_ATTRIBUTES),Ue=[],We=0;Weft&&(Ue.log("parcoords traces support up to "+ft+" dimensions at the moment"),ct.splice(ft));var kt=rt(Ee,ze,{name:"dimensions",layout:it,handleItemDefaults:dimensionDefaults}),Lt=function handleLineDefaults(Ee,ze,Be,Qe,rt){var it=rt("line.color",Be);if(We(Ee,"line")&&Ue.isArrayOrTypedArray(it)){if(it.length)return rt("line.colorscale"),$e(Ee,ze,Qe,rt,{prefix:"line.",cLetter:"c"}),it.length;ze.line.color=Be}return 1/0}(Ee,ze,Be,it,coerce);Qe(ze,it,coerce),Array.isArray(kt)&&kt.length||(ze.visible=!1),xt(ze,kt,"values",Lt);var Ut={family:it.font.family,size:Math.round(it.font.size/1.2),color:it.font.color};Ue.coerceFont(coerce,"labelfont",Ut),Ue.coerceFont(coerce,"tickfont",Ut),Ue.coerceFont(coerce,"rangefont",Ut),coerce("labelangle"),coerce("labelside")}},d4b5:function(Ee,ze,Be){"use strict";Ee.exports=function isPath(Ee){return"string"==typeof Ee&&(Ee=Ee.trim(),!!(/^[mzlhvcsqta]\s*[-+.0-9][^mlhvzcsqta]+/i.test(Ee)&&/[\dz]$/i.test(Ee)&&Ee.length>4))}},d53b:function(Ee,ze,Be){"use strict";var Ue=Be("c5f4"),We=Math.max;Ee.exports=function(Ee){return We(0,Ue(Ee))}},d577:function(Ee,ze,Be){"use strict";Ee.exports=function makeClipPath(Ee,ze,Be,Ue){var We,$e,Qe,rt=[],it=!!Be.smoothing,at=!!Ue.smoothing,ct=Ee[0].length-1,ft=Ee.length-1;for(We=0,$e=[],Qe=[];We<=ct;We++)$e[We]=Ee[0][We],Qe[We]=ze[0][We];for(rt.push({x:$e,y:Qe,bicubic:it}),We=0,$e=[],Qe=[];We<=ft;We++)$e[We]=Ee[We][ct],Qe[We]=ze[We][ct];for(rt.push({x:$e,y:Qe,bicubic:at}),We=ct,$e=[],Qe=[];We>=0;We--)$e[ct-We]=Ee[ft][We],Qe[ct-We]=ze[ft][We];for(rt.push({x:$e,y:Qe,bicubic:it}),We=ft,$e=[],Qe=[];We>=0;We--)$e[ft-We]=Ee[We][0],Qe[ft-We]=ze[We][0];return rt.push({x:$e,y:Qe,bicubic:at}),rt}},d58b:function(Ee,ze,Be){"use strict";var Ue=Be("fc26"),We=Be("7678");Ee.exports=function(Ee,ze,Be){var $e=!1;function coerce(Be,$e){return Ue.coerce(Ee,ze,We,Be,$e)}for(var Qe=0;Qe=0:ft>xt;xt+=kt)xt in ct&&(it=Be(it,ct[xt],xt,at));return it}};Ee.exports={left:createMethod(!1),right:createMethod(!0)}},d5e3:function(Ee,ze,Be){"use strict";(function(ze){Ee.exports=function createTextSprites(Ee,ze,Be,$e,rt,it){var at=Ue(Ee),ct=We(Ee,[{buffer:at,size:3}]),ft=Qe(Ee);ft.attributes.position.location=0;var xt=new TextSprites(Ee,ft,at,ct);return xt.update(ze,Be,$e,rt,it),xt};var Ue=Be("efce"),We=Be("b205"),$e=Be("b993"),Qe=Be("c185").text,rt=window||ze.global||{},it=rt.__TEXT_CACHE||{};rt.__TEXT_CACHE={};function TextSprites(Ee,ze,Be,Ue){this.gl=Ee,this.shader=ze,this.buffer=Be,this.vao=Ue,this.tickOffset=this.tickCount=this.labelOffset=this.labelCount=null}var at=TextSprites.prototype,ct=[0,0];at.bind=function(Ee,ze,Be,Ue){this.vao.bind(),this.shader.bind();var We=this.shader.uniforms;We.model=Ee,We.view=ze,We.projection=Be,We.pixelScale=Ue,ct[0]=this.gl.drawingBufferWidth,ct[1]=this.gl.drawingBufferHeight,this.shader.uniforms.resolution=ct},at.unbind=function(){this.vao.unbind()},at.update=function(Ee,ze,Be,Ue,We){var Qe=[];function addItem(Ee,ze,Be,Ue,We,rt){var at=it[Be];at||(at=it[Be]={});var ct=at[ze];ct||(ct=at[ze]=function tryVectorizeText(Ee,ze){try{return $e(Ee,ze)}catch(ze){return console.warn('error vectorizing text:"'+Ee+'" error:',ze),{cells:[],positions:[]}}}(ze,{triangles:!0,font:Be,textAlign:"center",textBaseline:"middle",lineSpacing:We,styletags:rt}));for(var ft=(Ue||12)/12,xt=ct.positions,kt=ct.cells,Lt=0,Ut=kt.length;Lt=0;--tr){var rr=xt[er[tr]];Qe.push(ft*rr[0],-ft*rr[1],Ee)}}for(var rt=[0,0,0],at=[0,0,0],ct=[0,0,0],ft=[0,0,0],xt={breaklines:!0,bolds:!0,italics:!0,subscripts:!0,superscripts:!0},kt=0;kt<3;++kt){ct[kt]=Qe.length/3|0,addItem(.5*(Ee[0][kt]+Ee[1][kt]),ze[kt],Be[kt],12,1.25,xt),ft[kt]=(Qe.length/3|0)-ct[kt],rt[kt]=Qe.length/3|0;for(var Lt=0;Lt4?(We=Lt[Lt.length-4],$e=Lt[Lt.length-3]):(We=ct,$e=ft),Be.push(Lt)}return Be};var Ue=Be("0b89");function line(Ee,ze,Be,Ue){return["C",Ee,ze,Be,Ue,Be,Ue]}function quadratic(Ee,ze,Be,Ue,We,$e){return["C",Ee/3+2/3*Be,ze/3+2/3*Ue,We/3+2/3*Be,$e/3+2/3*Ue,We,$e]}},d6d8:function(Ee,ze,Be){"use strict";var Ue=Be("ef33"),We=Be("fc26").ensureArray;function inferCubicControlPoint(Ee,ze,Be){var Ue=-.5*Be[0]+1.5*ze[0],We=-.5*Be[1]+1.5*ze[1];return[(2*Ue+Ee[0])/3,(2*We+Ee[1])/3]}Ee.exports=function computeControlPoints(Ee,ze,Be,$e,Qe,rt){var it,at,ct,ft,xt,kt,Lt,Ut,er,tr,rr=Be[0].length,ar=Be.length,Lr=Qe?3*rr-2:rr,Qr=rt?3*ar-2:ar;for(Ee=We(Ee,Qr),ze=We(ze,Qr),ct=0;ct=Lr[0].length||kt<0||kt>Lr.length)return}else{if(Ue.inbox(ze-rr[0],ze-rr[rr.length-1],0)>0||Ue.inbox(Be-ar[0],Be-ar[ar.length-1],0)>0)return;if(at){var dn;for(un=[2*rr[0]-rr[1]],dn=1;dn1&&!kt&&"category"!==rt.type){var Ut=ze.length;if(!(Ut<=Qe))return xt?ze.slice(0,Qe):ze.slice(0,Qe+1);if(xt||Lt)ft=ze.slice(0,Qe);else if(1===Qe)ft=[ze[0]-.5,ze[0]+.5];else{for(ft=[1.5*ze[0]-.5*ze[1]],ct=1;ct")})),ct="$0"==="a".replace(/./,"$0"),ft=$e("replace"),xt=!!/./[ft]&&""===/./[ft]("a","$0"),kt=!We((function(){var Ee=/(?:)/,ze=Ee.exec;Ee.exec=function(){return ze.apply(this,arguments)};var Be="ab".split(Ee);return 2!==Be.length||"a"!==Be[0]||"b"!==Be[1]}));Ee.exports=function(Ee,ze,Be,ft){var Lt=$e(Ee),Ut=!We((function(){var ze={};return ze[Lt]=function(){return 7},7!=""[Ee](ze)})),er=Ut&&!We((function(){var ze=!1,Be=/a/;return"split"===Ee&&((Be={}).constructor={},Be.constructor[it]=function(){return Be},Be.flags="",Be[Lt]=/./[Lt]),Be.exec=function(){return ze=!0,null},Be[Lt](""),!ze}));if(!Ut||!er||"replace"===Ee&&(!at||!ct||xt)||"split"===Ee&&!kt){var tr=/./[Lt],rr=Be(Lt,""[Ee],(function(Ee,ze,Be,Ue,We){return ze.exec===Qe?Ut&&!We?{done:!0,value:tr.call(ze,Be,Ue)}:{done:!0,value:Ee.call(Be,ze,Ue)}:{done:!1}}),{REPLACE_KEEPS_$0:ct,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:xt}),ar=rr[0],Lr=rr[1];Ue(String.prototype,Ee,ar),Ue(RegExp.prototype,Lt,2==ze?function(Ee,ze){return Lr.call(Ee,this,ze)}:function(Ee){return Lr.call(Ee,this)})}ft&&rt(RegExp.prototype[Lt],"sham",!0)}},d78f:function(Ee,ze,Be){"use strict";var Ue=Be("0642"),We=Be("215c").hasColorscale,$e=Be("3aa8"),Qe=Be("424b"),rt=Be("4136");Ee.exports=function calc(Ee,ze){var Be,it,at=Ue.getFromId(Ee,ze.xaxis||"x"),ct=Ue.getFromId(Ee,ze.yaxis||"y");"h"===ze.orientation?(Be=at.makeCalcdata(ze,"x"),it=ct.makeCalcdata(ze,"y")):(Be=ct.makeCalcdata(ze,"y"),it=at.makeCalcdata(ze,"x"));for(var ft=Math.min(it.length,Be.length),xt=new Array(ft),kt=0;ktMath.abs(rt)?(it.boxEnd[1]=it.boxStart[1]+Math.abs($e)*ar*(rt>=0?1:-1),it.boxEnd[1]at[3]&&(it.boxEnd[1]=at[3],it.boxEnd[0]=it.boxStart[0]+(at[3]-it.boxStart[1])/Math.abs(ar))):(it.boxEnd[0]=it.boxStart[0]+Math.abs(rt)/ar*($e>=0?1:-1),it.boxEnd[0]at[2]&&(it.boxEnd[0]=at[2],it.boxEnd[1]=it.boxStart[1]+(at[2]-it.boxStart[0])*Math.abs(ar)))}}else it.boxEnabled?($e=it.boxStart[0]!==it.boxEnd[0],rt=it.boxStart[1]!==it.boxEnd[1],$e||rt?($e&&(updateRange(0,it.boxStart[0],it.boxEnd[0]),Ee.xaxis.autorange=!1),rt&&(updateRange(1,it.boxStart[1],it.boxEnd[1]),Ee.yaxis.autorange=!1),Ee.relayoutCallback()):Ee.glplot.setDirty(),it.boxEnabled=!1,it.boxInited=!1):it.boxInited&&(it.boxInited=!1);break;case"pan":it.boxEnabled=!1,it.boxInited=!1,ze?(it.panning||(it.dragStart[0]=Ue,it.dragStart[1]=We),Math.abs(it.dragStart[0]-Ue)0?"white":"black",ct.lineWidth=Math.abs(kt));if(ct.translate(.5*Be,.5*ft),ct.scale(er,er),function isPath2DSupported(){if(null!=Ue)return Ue;var Ee=document.createElement("canvas").getContext("2d");if(Ee.canvas.width=Ee.canvas.height=1,!window.Path2D)return Ue=!1;var ze=new Path2D("M0,0h1v1h-1v-1Z");Ee.fillStyle="black",Ee.fill(ze);var Be=Ee.getImageData(0,0,1,1);return Ue=Be&&Be.data&&255===Be.data[3]}()){var tr=new Path2D(Ee);ct.fill(tr),kt&&ct.stroke(tr)}else{var rr=$e(Ee);Qe(ct,rr),ct.fill(),kt&&ct.stroke()}return ct.setTransform(1,0,0,1,0,0),it(ct,{cutoff:null!=ze.cutoff?ze.cutoff:.5,radius:null!=ze.radius?ze.radius:.5*xt})}},d81d:function(Ee,ze,Be){"use strict";var Ue=Be("23e7"),We=Be("b727").map,$e=Be("1dde"),Qe=Be("ae40"),rt=$e("map"),it=Qe("map");Ue({target:"Array",proto:!0,forced:!rt||!it},{map:function map(Ee){return We(this,Ee,arguments.length>1?arguments[1]:void 0)}})},d831:function(Ee,ze,Be){"use strict";Ee.exports={moduleType:"trace",name:"funnelarea",basePlotModule:Be("a8f9"),categories:["pie-like","funnelarea","showLegend"],attributes:Be("ecc5"),layoutAttributes:Be("f3df"),supplyDefaults:Be("e485"),supplyLayoutDefaults:Be("fcd6"),calc:Be("3936").calc,crossTraceCalc:Be("3936").crossTraceCalc,plot:Be("7c43"),style:Be("a41d"),styleOne:Be("a708"),meta:{}}},d844:function(Ee,ze,Be){"use strict";Ee.exports=function eventData(Ee,ze,Be,Ue,We){if(ze.xa&&(Ee.xaxis=ze.xa),ze.ya&&(Ee.yaxis=ze.ya),Ue[We]){var $e=Ue[We];Ee.a=$e.a,Ee.b=$e.b,Ee.c=$e.c}else Ee.a=ze.a,Ee.b=ze.b,Ee.c=ze.c;return Ee}},d858:function(Ee,ze,Be){"use strict";Ee.exports={segmentRE:/[MLHVQCTSZ][^MLHVQCTSZ]*/g,paramRE:/[^\s,]+/g,paramIsX:{M:{0:!0,drawn:0},L:{0:!0,drawn:0},H:{0:!0,drawn:0},V:{},Q:{0:!0,2:!0,drawn:2},C:{0:!0,2:!0,4:!0,drawn:4},T:{0:!0,drawn:0},S:{0:!0,2:!0,drawn:2},Z:{}},paramIsY:{M:{1:!0,drawn:1},L:{1:!0,drawn:1},H:{},V:{0:!0,drawn:0},Q:{1:!0,3:!0,drawn:3},C:{1:!0,3:!0,5:!0,drawn:5},T:{1:!0,drawn:1},S:{1:!0,3:!0,drawn:5},Z:{}},numParams:{M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}}},d92f:function(Ee,ze,Be){"use strict";var Ue=Be("da6a");Ee.exports=function handleTickValueDefaults(Ee,ze,Be,We){var $e;"array"!==Ee.tickmode||"log"!==We&&"date"!==We?$e=Be("tickmode",Array.isArray(Ee.tickvals)?"array":Ee.dtick?"linear":"auto"):$e=ze.tickmode="auto";if("auto"===$e)Be("nticks");else if("linear"===$e){var Qe=ze.dtick=Ue.dtick(Ee.dtick,We);ze.tick0=Ue.tick0(Ee.tick0,We,ze.calendar,Qe)}else if("multicategory"!==We){void 0===Be("tickvals")?ze.tickmode="auto":Be("ticktext")}}},d945:function(Ee,ze,Be){"use strict";var Ue=Be("0642"),We=Be("fc26"),$e=Be("a5c4"),Qe=Be("d115"),rt=Be("fc26").fillText,it=Be("b8ce"),at={increasing:it.INCREASING.SYMBOL,decreasing:it.DECREASING.SYMBOL};function getClosestPoint(Ee,ze,Be,Ue){var We,rt,it=Ee.cd,at=Ee.xa,ct=it[0].trace,ft=it[0].t,xt=ct.type,kt="ohlc"===xt?"l":"min",Lt="ohlc"===xt?"h":"max",Ut=ft.bPos||0,er=ft.bdPos||ft.tickLen,tr=ft.wHover,rr=Math.min(1,er/Math.abs(at.r2c(at.range[1])-at.r2c(at.range[0])));function dx(Ee){var Be=function(Ee){return Ee.pos+Ut-ze}(Ee);return $e.inbox(Be-tr,Be+tr,We)}function dy(Ee){var ze=Ee[kt],Ue=Ee[Lt];return ze===Ue||$e.inbox(ze-Be,Ue-Be,We)}function dxy(Ee){return(dx(Ee)+dy(Ee))/2}We=Ee.maxHoverDistance-rr,rt=Ee.maxSpikeDistance-rr;var ar=$e.getDistanceFunction(Ue,dx,dy,dxy);if($e.getClosest(it,ar,Ee),!1===Ee.index)return null;var Lr=it[Ee.index];if(Lr.empty)return null;var Qr=ct[Lr.dir],on=Qr.line.color;return Qe.opacity(on)&&Qr.line.width?Ee.color=on:Ee.color=Qr.fillcolor,Ee.x0=at.c2p(Lr.pos+Ut-er,!0),Ee.x1=at.c2p(Lr.pos+Ut+er,!0),Ee.xLabelVal=Lr.pos,Ee.spikeDistance=dxy(Lr)*rt/We,Ee.xSpike=at.c2p(Lr.pos,!0),Ee}function hoverSplit(Ee,ze,Be,$e){var Qe=Ee.cd,rt=Ee.ya,it=Qe[0].trace,at=Qe[0].t,ct=[],ft=getClosestPoint(Ee,ze,Be,$e);if(!ft)return[];var xt=Qe[ft.index].hi||it.hoverinfo,kt=xt.split("+");if(!("all"===xt||-1!==kt.indexOf("y")))return[];for(var Lt=["high","open","close","low"],Ut={},er=0;er"+at.labels[rr]+Ue.hoverLabelText(rt,ar):((tr=We.extendFlat({},ft)).y0=tr.y1=Lr,tr.yLabelVal=ar,tr.yLabel=at.labels[rr]+Ue.hoverLabelText(rt,ar),tr.name="",ct.push(tr),Ut[ar]=tr)}return ct}function hoverOnPoints(Ee,ze,Be,We){var $e=Ee.cd,Qe=Ee.ya,it=$e[0].trace,ct=$e[0].t,ft=getClosestPoint(Ee,ze,Be,We);if(!ft)return[];var xt=$e[ft.index],kt=ft.index=xt.i,Lt=xt.dir;function getLabelLine(Ee){return ct.labels[Ee]+Ue.hoverLabelText(Qe,it[Ee][kt])}var Ut=xt.hi||it.hoverinfo,er=Ut.split("+"),tr="all"===Ut,rr=tr||-1!==er.indexOf("y"),ar=tr||-1!==er.indexOf("text"),Lr=rr?[getLabelLine("open"),getLabelLine("high"),getLabelLine("low"),getLabelLine("close")+" "+at[Lt]]:[];return ar&&rt(xt,it,Lr),ft.extraText=Lr.join("
"),ft.y0=ft.y1=Qe.c2p(xt.yc,!0),[ft]}Ee.exports={hoverPoints:function hoverPoints(Ee,ze,Be,Ue){return Ee.cd[0].trace.hoverlabel.split?hoverSplit(Ee,ze,Be,Ue):hoverOnPoints(Ee,ze,Be,Ue)},hoverSplit:hoverSplit,hoverOnPoints:hoverOnPoints}},d9c2:function(Ee,ze){Ee.exports=function scale(Ee,ze,Be){return Ee[0]=ze[0]*Be,Ee[1]=ze[1]*Be,Ee[2]=ze[2]*Be,Ee[3]=ze[3]*Be,Ee}},da69:function(Ee,ze,Be){"use strict";var Ue,We=Be("cc77");function FaceIndex(Ee,ze,Be,Ue,We,$e,Qe){this.cells=Ee,this.neighbor=ze,this.flags=Ue,this.constraint=Be,this.active=We,this.next=$e,this.boundary=Qe}function compareCell(Ee,ze){return Ee[0]-ze[0]||Ee[1]-ze[1]||Ee[2]-ze[2]}Ee.exports=function classifyFaces(Ee,ze,Be){var Ue=function indexCells(Ee,ze){for(var Be=Ee.cells(),Ue=Be.length,We=0;We0||Qe.length>0;){for(;$e.length>0;){var ft=$e.pop();if(rt[ft]!==-We){rt[ft]=We;it[ft];for(var xt=0;xt<3;++xt){var kt=ct[3*ft+xt];kt>=0&&0===rt[kt]&&(at[3*ft+xt]?Qe.push(kt):($e.push(kt),rt[kt]=We))}}}var Lt=Qe;Qe=$e,$e=Lt,Qe.length=0,We=-We}var Ut=function filterCells(Ee,ze,Be){for(var Ue=0,We=0;WeEe?0:1)+(ze[0][1]>Ee?0:2)+(ze[1][1]>Ee?0:4)+(ze[1][0]>Ee?0:8);return 5===Be||10===Be?Ee>(ze[0][0]+ze[0][1]+ze[1][0]+ze[1][1])/4?5===Be?713:1114:5===Be?104:208:15===Be?0:Be}Ee.exports=function makeCrossings(Ee){var ze,Be,We,$e,Qe,rt,it,at,ct,ft=Ee[0].z,xt=ft.length,kt=ft[0].length,Lt=2===xt||2===kt;for(Be=0;Be0)for(var ar=0;arft;)void 0!==(Be=We(Ue,ze=at[ft++]))&&it(ct,ze,Be);return ct}})},dbc7:function(Ee,ze,Be){"use strict";var Ue=Be("6e58"),We=Be("371e"),$e=Be("fc26"),Qe=Be("d115"),rt=Be("83d1"),it=Be("a5c4"),at=Be("bb71"),ct=Be("0642"),ft=Be("ce56").getAutoRange,xt=Be("4efe"),kt=Be("1876").prepSelect,Lt=Be("1876").selectOnClick,Ut=Be("be64"),er=Be("0804"),tr=Be("0919"),rr=Be("c400"),ar=Be("e018").feature;function Geo(Ee){this.id=Ee.id,this.graphDiv=Ee.graphDiv,this.container=Ee.container,this.topojsonURL=Ee.topojsonURL,this.isStatic=Ee.staticPlot,this.topojsonName=null,this.topojson=null,this.projection=null,this.scope=null,this.viewInitial=null,this.fitScale=null,this.bounds=null,this.midPt=null,this.hasChoropleth=!1,this.traceHash={},this.layers={},this.basePaths={},this.dataPaths={},this.dataPoints={},this.clipDef=null,this.clipRect=null,this.bgRect=null,this.makeFramework()}Be("4b8c")(Ue);var Lr=Geo.prototype;function makeRangeBox(Ee,ze){var Be=er.clipPad,Ue=Ee[0]+Be,We=Ee[1]-Be,$e=ze[0]+Be,Qe=ze[1]-Be;Ue>0&&We<0&&(We+=360);var rt=(We-Ue)/4;return{type:"Polygon",coordinates:[[[Ue,$e],[Ue,Qe],[Ue+rt,Qe],[Ue+2*rt,Qe],[Ue+3*rt,Qe],[We,Qe],[We,$e],[We-rt,$e],[We-2*rt,$e],[We-3*rt,$e],[Ue,$e]]]}}Ee.exports=function createGeo(Ee){return new Geo(Ee)},Lr.plot=function(Ee,ze,Be){var Ue=this,We=ze[this.id],$e=[],Qe=!1;for(var rt in er.layerNameToAdjective)if("frame"!==rt&&We["show"+rt]){Qe=!0;break}for(var it=0;it0&&$e._module.calcGeoJSON(We,ze)}if(!this.updateProjection(Ee,ze)){this.viewInitial&&this.scope===Be.scope||this.saveViewInitial(Be),this.scope=Be.scope,this.updateBaseLayers(ze,Be),this.updateDims(ze,Be),this.updateFx(ze,Be),at.generalUpdatePerTraceModule(this.graphDiv,this,Ee,Be);var Qe=this.layers.frontplot.select(".scatterlayer");this.dataPoints.point=Qe.selectAll(".point"),this.dataPoints.text=Qe.selectAll("text"),this.dataPaths.line=Qe.selectAll(".js-line");var rt=this.layers.backplot.select(".choroplethlayer");this.dataPaths.choropleth=rt.selectAll("path"),this.render()}},Lr.updateProjection=function(Ee,ze){var Be=this.graphDiv,Qe=ze[this.id],rt=ze._size,it=Qe.domain,at=Qe.projection,ct=Qe.lonaxis,xt=Qe.lataxis,kt=ct._ax,Lt=xt._ax,Ut=this.projection=function getProjection(Ee){for(var ze=Ee.projection.type,Be=Ue.geo[er.projNames[ze]](),We=Ee._isClipped?er.lonaxisSpan[ze]/2:null,$e=["center","rotate","parallels","clipExtent"],dummyFn=function(Ee){return Ee?Be:[]},Qe=0;Qe<$e.length;Qe++){var rt=$e[Qe];"function"!=typeof Be[rt]&&(Be[rt]=dummyFn)}Be.isLonLatOverEdges=function(Ee){if(null===Be(Ee))return!0;if(We){var ze=Be.rotate();return Ue.geo.distance(Ee,[-ze[0],-ze[1]])>We*Math.PI/180}return!1},Be.getPath=function(){return Ue.geo.path().projection(Be)},Be.getBounds=function(Ee){return Be.getPath().bounds(Ee)},Be.fitExtent=function(Ee,ze){var Ue=Ee[1][0]-Ee[0][0],We=Ee[1][1]-Ee[0][1],$e=Be.clipExtent&&Be.clipExtent();Be.scale(150).translate([0,0]),$e&&Be.clipExtent(null);var Qe=Be.getBounds(ze),rt=Math.min(Ue/(Qe[1][0]-Qe[0][0]),We/(Qe[1][1]-Qe[0][1])),it=+Ee[0][0]+(Ue-rt*(Qe[1][0]+Qe[0][0]))/2,at=+Ee[0][1]+(We-rt*(Qe[1][1]+Qe[0][1]))/2;return $e&&Be.clipExtent($e),Be.scale(150*rt).translate([it,at])},Be.precision(er.precision),We&&Be.clipAngle(We-er.clipPad);return Be}(Qe),tr=[[rt.l+rt.w*it.x[0],rt.t+rt.h*(1-it.y[1])],[rt.l+rt.w*it.x[1],rt.t+rt.h*(1-it.y[0])]],rr=Qe.center||{},ar=at.rotation||{},Lr=ct.range||[],Qr=xt.range||[];if(Qe.fitbounds){kt._length=tr[1][0]-tr[0][0],Lt._length=tr[1][1]-tr[0][1],kt.range=ft(Be,kt),Lt.range=ft(Be,Lt);var on=(kt.range[0]+kt.range[1])/2,sn=(Lt.range[0]+Lt.range[1])/2;if(Qe._isScoped)rr={lon:on,lat:sn};else if(Qe._isClipped){rr={lon:on,lat:sn},ar={lon:on,lat:sn,roll:ar.roll};var cn=at.type,un=er.lonaxisSpan[cn]/2||180,hn=er.lataxisSpan[cn]/2||180;Lr=[on-un,on+un],Qr=[sn-hn,sn+hn]}else rr={lon:on,lat:sn},ar={lon:on,lat:ar.lat,roll:ar.roll}}Ut.center([rr.lon-ar.lon,rr.lat-ar.lat]).rotate([-ar.lon,-ar.lat,ar.roll]).parallels(at.parallels);var dn=makeRangeBox(Lr,Qr);Ut.fitExtent(tr,dn);var vn=this.bounds=Ut.getBounds(dn),yn=this.fitScale=Ut.scale(),_n=Ut.translate();if(!isFinite(vn[0][0])||!isFinite(vn[0][1])||!isFinite(vn[1][0])||!isFinite(vn[1][1])||isNaN(_n[0])||isNaN(_n[0])){for(var Mn=["fitbounds","projection.rotation","center","lonaxis.range","lataxis.range"],Cn="Invalid geo settings, relayout'ing to default view.",En={},Pn=0;Pn-1&&Lt(Ue.event,$e,[Be.xaxis],[Be.yaxis],Be.id,ft),at.indexOf("event")>-1&&it.click($e,Ue.event))}))}function invert(Ee){return Be.projection.invert([Ee[0]+Be.xaxis._offset,Ee[1]+Be.yaxis._offset])}},Lr.makeFramework=function(){var Ee=this,ze=Ee.graphDiv,Be=ze._fullLayout,We="clip"+Be._uid+Ee.id;Ee.clipDef=Be._clips.append("clipPath").attr("id",We),Ee.clipRect=Ee.clipDef.append("rect"),Ee.framework=Ue.select(Ee.container).append("g").attr("class","geo "+Ee.id).call(rt.setClipUrl,We,ze),Ee.project=function(ze){var Be=Ee.projection(ze);return Be?[Be[0]-Ee.xaxis._offset,Be[1]-Ee.yaxis._offset]:[null,null]},Ee.xaxis={_id:"x",c2p:function(ze){return Ee.project(ze)[0]}},Ee.yaxis={_id:"y",c2p:function(ze){return Ee.project(ze)[1]}},Ee.mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},ct.setConvert(Ee.mockAxis,Be)},Lr.saveViewInitial=function(Ee){var ze,Be=Ee.center||{},Ue=Ee.projection,We=Ue.rotation||{};this.viewInitial={fitbounds:Ee.fitbounds,"projection.scale":Ue.scale},ze=Ee._isScoped?{"center.lon":Be.lon,"center.lat":Be.lat}:Ee._isClipped?{"projection.rotation.lon":We.lon,"projection.rotation.lat":We.lat}:{"center.lon":Be.lon,"center.lat":Be.lat,"projection.rotation.lon":We.lon},$e.extendFlat(this.viewInitial,ze)},Lr.render=function(){var Ee,ze=this.projection,Be=ze.getPath();function translatePoints(Ee){var Be=ze(Ee.lonlat);return Be?"translate("+Be[0]+","+Be[1]+")":null}function hideShowPoints(Ee){return ze.isLonLatOverEdges(Ee.lonlat)?"none":null}for(Ee in this.basePaths)this.basePaths[Ee].attr("d",Be);for(Ee in this.dataPaths)this.dataPaths[Ee].attr("d",(function(Ee){return Be(Ee.geojson)}));for(Ee in this.dataPoints)this.dataPoints[Ee].attr("display",hideShowPoints).attr("transform",translatePoints)}},dbd1:function(Ee,ze,Be){"use strict";Ee.exports=function createAxes(Ee,ze){var Be=new Axes(Ee);return Be.update(ze),Be};var Ue=Be("d5e3"),We=Be("487e"),$e=Be("3146"),Qe=Be("a4f3"),rt=Be("605a"),it=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]);function copyVec3(Ee,ze){return Ee[0]=ze[0],Ee[1]=ze[1],Ee[2]=ze[2],Ee}function Axes(Ee){this.gl=Ee,this.pixelRatio=1,this.bounds=[[-10,-10,-10],[10,10,10]],this.ticks=[[],[],[]],this.autoTicks=!0,this.tickSpacing=[1,1,1],this.tickEnable=[!0,!0,!0],this.tickFont=["sans-serif","sans-serif","sans-serif"],this.tickSize=[12,12,12],this.tickAngle=[0,0,0],this.tickAlign=["auto","auto","auto"],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickPad=[10,10,10],this.lastCubeProps={cubeEdges:[0,0,0],axis:[0,0,0]},this.labels=["x","y","z"],this.labelEnable=[!0,!0,!0],this.labelFont="sans-serif",this.labelSize=[20,20,20],this.labelAngle=[0,0,0],this.labelAlign=["auto","auto","auto"],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labelPad=[10,10,10],this.lineEnable=[!0,!0,!0],this.lineMirror=[!1,!1,!1],this.lineWidth=[1,1,1],this.lineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.lineTickEnable=[!0,!0,!0],this.lineTickMirror=[!1,!1,!1],this.lineTickLength=[0,0,0],this.lineTickWidth=[1,1,1],this.lineTickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.gridEnable=[!0,!0,!0],this.gridWidth=[1,1,1],this.gridColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroEnable=[!0,!0,!0],this.zeroLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroLineWidth=[2,2,2],this.backgroundEnable=[!1,!1,!1],this.backgroundColor=[[.8,.8,.8,.5],[.8,.8,.8,.5],[.8,.8,.8,.5]],this._firstInit=!0,this._text=null,this._lines=null,this._background=$e(Ee)}var at=Axes.prototype;function OffsetInfo(){this.primalOffset=[0,0,0],this.primalMinor=[0,0,0],this.mirrorOffset=[0,0,0],this.mirrorMinor=[0,0,0]}at.update=function(Ee){function parseOption(ze,Be,Ue){if(Ue in Ee){var We,$e=Ee[Ue],Qe=this[Ue];(ze?Array.isArray($e)&&Array.isArray($e[0]):Array.isArray($e))?this[Ue]=We=[Be($e[0]),Be($e[1]),Be($e[2])]:this[Ue]=We=[Be($e),Be($e),Be($e)];for(var rt=0;rt<3;++rt)if(We[rt]!==Qe[rt])return!0}return!1}Ee=Ee||{};var ze,Be=parseOption.bind(this,!1,Number),$e=parseOption.bind(this,!1,Boolean),Qe=parseOption.bind(this,!1,String),it=parseOption.bind(this,!0,(function(Ee){if(Array.isArray(Ee)){if(3===Ee.length)return[+Ee[0],+Ee[1],+Ee[2],1];if(4===Ee.length)return[+Ee[0],+Ee[1],+Ee[2],+Ee[3]]}return[0,0,0,1]})),at=!1,ct=!1;if("bounds"in Ee)for(var ft=Ee.bounds,xt=0;xt<2;++xt)for(var kt=0;kt<3;++kt)ft[xt][kt]!==this.bounds[xt][kt]&&(ct=!0),this.bounds[xt][kt]=ft[xt][kt];if("ticks"in Ee){ze=Ee.ticks,at=!0,this.autoTicks=!1;for(xt=0;xt<3;++xt)this.tickSpacing[xt]=0}else Be("tickSpacing")&&(this.autoTicks=!0,ct=!0);if(this._firstInit&&("ticks"in Ee||"tickSpacing"in Ee||(this.autoTicks=!0),ct=!0,at=!0,this._firstInit=!1),ct&&this.autoTicks&&(ze=rt.create(this.bounds,this.tickSpacing),at=!0),at){for(xt=0;xt<3;++xt)ze[xt].sort((function(Ee,ze){return Ee.x-ze.x}));rt.equal(ze,this.ticks)?at=!1:this.ticks=ze}$e("tickEnable"),Qe("tickFont")&&(at=!0),Be("tickSize"),Be("tickAngle"),Be("tickPad"),it("tickColor");var Lt=Qe("labels");Qe("labelFont")&&(Lt=!0),$e("labelEnable"),Be("labelSize"),Be("labelPad"),it("labelColor"),$e("lineEnable"),$e("lineMirror"),Be("lineWidth"),it("lineColor"),$e("lineTickEnable"),$e("lineTickMirror"),Be("lineTickLength"),Be("lineTickWidth"),it("lineTickColor"),$e("gridEnable"),Be("gridWidth"),it("gridColor"),$e("zeroEnable"),it("zeroLineColor"),Be("zeroLineWidth"),$e("backgroundEnable"),it("backgroundColor"),this._text?this._text&&(Lt||at)&&this._text.update(this.bounds,this.labels,this.labelFont,this.ticks,this.tickFont):this._text=Ue(this.gl,this.bounds,this.labels,this.labelFont,this.ticks,this.tickFont),this._lines&&at&&(this._lines.dispose(),this._lines=null),this._lines||(this._lines=We(this.gl,this.bounds,this.ticks))};var ct=[new OffsetInfo,new OffsetInfo,new OffsetInfo];function computeLineOffset(Ee,ze,Be,Ue,We){for(var $e=Ee.primalOffset,Qe=Ee.primalMinor,rt=Ee.mirrorOffset,it=Ee.mirrorMinor,at=Ue[ze],ct=0;ct<3;++ct)if(ze!==ct){var ft=$e,xt=rt,kt=Qe,Lt=it;at&1<0?(kt[ct]=-1,Lt[ct]=0):(kt[ct]=0,Lt[ct]=1)}}var ft=[0,0,0],xt={model:it,view:it,projection:it,_ortho:!1};at.isOpaque=function(){return!0},at.isTransparent=function(){return!1},at.drawTransparent=function(Ee){};var kt=[0,0,0],Lt=[0,0,0],Ut=[0,0,0];at.draw=function(Ee){Ee=Ee||xt;for(var ze=this.gl,Be=Ee.model||it,Ue=Ee.view||it,We=Ee.projection||it,$e=this.bounds,rt=Ee._ortho||!1,at=Qe(Be,Ue,We,$e,rt),er=at.cubeEdges,tr=at.axis,rr=Ue[12],ar=Ue[13],Lr=Ue[14],Qr=Ue[15],on=(rt?2:1)*this.pixelRatio*(We[3]*rr+We[7]*ar+We[11]*Lr+We[15]*Qr)/ze.drawingBufferHeight,sn=0;sn<3;++sn)this.lastCubeProps.cubeEdges[sn]=er[sn],this.lastCubeProps.axis[sn]=tr[sn];var cn=ct;for(sn=0;sn<3;++sn)computeLineOffset(ct[sn],sn,this.bounds,er,tr);ze=this.gl;var un,hn=ft;for(sn=0;sn<3;++sn)this.backgroundEnable[sn]?hn[sn]=tr[sn]:hn[sn]=0;this._background.draw(Be,Ue,We,$e,hn,this.backgroundColor),this._lines.bind(Be,Ue,We,this);for(sn=0;sn<3;++sn){var dn=[0,0,0];tr[sn]>0?dn[sn]=$e[1][sn]:dn[sn]=$e[0][sn];for(var vn=0;vn<2;++vn){var yn=(sn+1+vn)%3,_n=(sn+1+(1^vn))%3;this.gridEnable[yn]&&this._lines.drawGrid(yn,_n,this.bounds,dn,this.gridColor[yn],this.gridWidth[yn]*this.pixelRatio)}for(vn=0;vn<2;++vn){yn=(sn+1+vn)%3,_n=(sn+1+(1^vn))%3;this.zeroEnable[_n]&&Math.min($e[0][_n],$e[1][_n])<=0&&Math.max($e[0][_n],$e[1][_n])>=0&&this._lines.drawZero(yn,_n,this.bounds,dn,this.zeroLineColor[_n],this.zeroLineWidth[_n]*this.pixelRatio)}}for(sn=0;sn<3;++sn){this.lineEnable[sn]&&this._lines.drawAxisLine(sn,this.bounds,cn[sn].primalOffset,this.lineColor[sn],this.lineWidth[sn]*this.pixelRatio),this.lineMirror[sn]&&this._lines.drawAxisLine(sn,this.bounds,cn[sn].mirrorOffset,this.lineColor[sn],this.lineWidth[sn]*this.pixelRatio);var Mn=copyVec3(kt,cn[sn].primalMinor),Cn=copyVec3(Lt,cn[sn].mirrorMinor),En=this.lineTickLength;for(vn=0;vn<3;++vn){var Pn=on/Be[5*vn];Mn[vn]*=En[vn]*Pn,Cn[vn]*=En[vn]*Pn}this.lineTickEnable[sn]&&this._lines.drawAxisTicks(sn,cn[sn].primalOffset,Mn,this.lineTickColor[sn],this.lineTickWidth[sn]*this.pixelRatio),this.lineTickMirror[sn]&&this._lines.drawAxisTicks(sn,cn[sn].mirrorOffset,Cn,this.lineTickColor[sn],this.lineTickWidth[sn]*this.pixelRatio)}this._lines.unbind(),this._text.bind(Be,Ue,We,this.pixelRatio);var In,Bn;function alignTo(Ee){(Bn=[0,0,0])[Ee]=1}function solveTickAlignments(Ee,ze,Be){var Ue=(Ee+1)%3,We=(Ee+2)%3,$e=ze[Ue],Qe=ze[We],rt=Be[Ue],it=Be[We];$e>0&&it>0||$e>0&&it<0||$e<0&&it>0||$e<0&&it<0?alignTo(Ue):(Qe>0&&rt>0||Qe>0&&rt<0||Qe<0&&rt>0||Qe<0&&rt<0)&&alignTo(We)}for(sn=0;sn<3;++sn){var Hn=cn[sn].primalMinor,Kn=cn[sn].mirrorMinor,Jn=copyVec3(Ut,cn[sn].primalOffset);for(vn=0;vn<3;++vn)this.lineTickEnable[sn]&&(Jn[vn]+=on*Hn[vn]*Math.max(this.lineTickLength[vn],0)/Be[5*vn]);var ei=[0,0,0];if(ei[sn]=1,this.tickEnable[sn]){-3600===this.tickAngle[sn]?(this.tickAngle[sn]=0,this.tickAlign[sn]="auto"):this.tickAlign[sn]=-1,In=1,"auto"===(un=[this.tickAlign[sn],.5,In])[0]?un[0]=0:un[0]=parseInt(""+un[0]),Bn=[0,0,0],solveTickAlignments(sn,Hn,Kn);for(vn=0;vn<3;++vn)Jn[vn]+=on*Hn[vn]*this.tickPad[vn]/Be[5*vn];this._text.drawTicks(sn,this.tickSize[sn],this.tickAngle[sn],Jn,this.tickColor[sn],ei,Bn,un)}if(this.labelEnable[sn]){In=0,Bn=[0,0,0],this.labels[sn].length>4&&(alignTo(sn),In=1),"auto"===(un=[this.labelAlign[sn],.5,In])[0]?un[0]=0:un[0]=parseInt(""+un[0]);for(vn=0;vn<3;++vn)Jn[vn]+=on*Hn[vn]*this.labelPad[vn]/Be[5*vn];Jn[sn]+=.5*($e[0][sn]+$e[1][sn]),this._text.drawLabel(sn,this.labelSize[sn],this.labelAngle[sn],Jn,this.labelColor[sn],[0,0,0],Bn,un)}}this._text.unbind()},at.dispose=function(){this._text.dispose(),this._lines.dispose(),this._background.dispose(),this._lines=null,this._text=null,this._background=null,this.gl=null}},dc6f:function(Ee,ze,Be){Ee.exports=function equals(Ee,ze){var Be=Ee[0],We=Ee[1],$e=Ee[2],Qe=ze[0],rt=ze[1],it=ze[2];return Math.abs(Be-Qe)<=Ue*Math.max(1,Math.abs(Be),Math.abs(Qe))&&Math.abs(We-rt)<=Ue*Math.max(1,Math.abs(We),Math.abs(rt))&&Math.abs($e-it)<=Ue*Math.max(1,Math.abs($e),Math.abs(it))};var Ue=Be("cc12a")},dc75:function(Ee,ze,Be){"use strict";var Ue=Be("19b2"),We=Be("ae13"),$e=Be("306c");function lessThan(Ee,ze){return Eeze}function greaterOrEqual(Ee,ze){return Ee>=ze}ze.findBin=function(Ee,ze,Be){if(Ue(ze.start))return Be?Math.ceil((Ee-ze.start)/ze.size-1e-9)-1:Math.floor((Ee-ze.start)/ze.size+1e-9);var $e,Qe,rt=0,it=ze.length,at=0,ct=it>1?(ze[it-1]-ze[0])/(it-1):1;for(Qe=ct>=0?Be?lessThan:lessOrEqual:Be?greaterOrEqual:greaterThan,Ee+=1e-9*ct*(Be?-1:1)*(ct>=0?1:-1);rt90&&We.log("Long binary search..."),rt-1},ze.sorterAsc=function(Ee,ze){return Ee-ze},ze.sorterDes=function(Ee,ze){return ze-Ee},ze.distinctVals=function(Ee){var Be=Ee.slice();Be.sort(ze.sorterAsc);for(var Ue=Be.length-1,We=Be[Ue]-Be[0]||1,$e=We/(Ue||1)/1e4,Qe=[Be[0]],rt=0;rtBe[rt]+$e&&(We=Math.min(We,Be[rt+1]-Be[rt]),Qe.push(Be[rt+1]));return{vals:Qe,minDiff:We}},ze.roundUp=function(Ee,ze,Be){for(var Ue,We=0,$e=ze.length-1,Qe=0,rt=Be?0:1,it=Be?1:0,at=Be?Math.ceil:Math.floor;We<$e&&Qe++<100;)ze[Ue=at((We+$e)/2)]<=Ee?We=Ue+rt:$e=Ue-it;return ze[We]},ze.sort=function(Ee,ze){for(var Be=0,Ue=0,We=1;We0&&(Ue=1),Be&&Ue)return Ee.sort(ze)}return Ue?Ee:Ee.reverse()},ze.findIndexOfMin=function(Ee,ze){ze=ze||$e;for(var Be,Ue=1/0,We=0;We0)&&(coerce("active"),coerce("direction"),coerce("type"),coerce("showactive"),coerce("x"),coerce("y"),Ue.noneOrAll(Ee,ze,["x","y"]),coerce("xanchor"),coerce("yanchor"),coerce("pad.t"),coerce("pad.r"),coerce("pad.b"),coerce("pad.l"),Ue.coerceFont(coerce,"font",Be.font),coerce("bgcolor",Be.paper_bgcolor),coerce("bordercolor"),coerce("borderwidth"))}function buttonDefaults(Ee,ze){function coerce(Be,We){return Ue.coerce(Ee,ze,rt,Be,We)}coerce("visible","skip"===Ee.method||Array.isArray(Ee.args))&&(coerce("method"),coerce("args"),coerce("args2"),coerce("label"),coerce("execute"))}Ee.exports=function updateMenusDefaults(Ee,ze){We(Ee,ze,{name:Qe,handleItemDefaults:menuDefaults})}},dcc8:function(Ee,ze){Ee.exports=function create(){var Ee=new Float32Array(16);return Ee[0]=1,Ee[1]=0,Ee[2]=0,Ee[3]=0,Ee[4]=0,Ee[5]=1,Ee[6]=0,Ee[7]=0,Ee[8]=0,Ee[9]=0,Ee[10]=1,Ee[11]=0,Ee[12]=0,Ee[13]=0,Ee[14]=0,Ee[15]=1,Ee}},dcf3:function(Ee,ze){Ee.exports=!0},dd05:function(Ee,ze){Ee.exports=function max(Ee,ze,Be){return Ee[0]=Math.max(ze[0],Be[0]),Ee[1]=Math.max(ze[1],Be[1]),Ee[2]=Math.max(ze[2],Be[2]),Ee[3]=Math.max(ze[3],Be[3]),Ee}},dd86:function(Ee,ze){Ee.exports=function multiply(Ee,ze,Be){return Ee[0]=ze[0]*Be[0],Ee[1]=ze[1]*Be[1],Ee[2]=ze[2]*Be[2],Ee[3]=ze[3]*Be[3],Ee}},dd8f:function(Ee,ze,Be){Ee.exports=Be("40ce")},dda6:function(Ee,ze,Be){"use strict";var Ue=Be("53a5");Ee.exports=function calcSDF(Ee,ze){ze||(ze={});var Be,$e,Qe,rt,it,at,ct,ft,xt,kt,Lt,Ut=null==ze.cutoff?.25:ze.cutoff,er=null==ze.radius?8:ze.radius,tr=ze.channel||0;if(ArrayBuffer.isView(Ee)||Array.isArray(Ee)){if(!ze.width||!ze.height)throw Error("For raw data width and height should be provided by options");Be=ze.width,$e=ze.height,rt=Ee,at=ze.stride?ze.stride:Math.floor(Ee.length/Be/$e)}else window.HTMLCanvasElement&&Ee instanceof window.HTMLCanvasElement?(ct=(ft=Ee).getContext("2d"),Be=ft.width,$e=ft.height,xt=ct.getImageData(0,0,Be,$e),rt=xt.data,at=4):window.CanvasRenderingContext2D&&Ee instanceof window.CanvasRenderingContext2D?(ft=Ee.canvas,ct=Ee,Be=ft.width,$e=ft.height,xt=ct.getImageData(0,0,Be,$e),rt=xt.data,at=4):window.ImageData&&Ee instanceof window.ImageData&&(xt=Ee,Be=Ee.width,$e=Ee.height,rt=xt.data,at=4);if(Qe=Math.max(Be,$e),window.Uint8ClampedArray&&rt instanceof window.Uint8ClampedArray||window.Uint8Array&&rt instanceof window.Uint8Array)for(it=rt,rt=Array(Be*$e),kt=0,Lt=it.length;kt0&&($e=Ue.size),Ue.lineSpacing&&Ue.lineSpacing>0&&(Qe=Ue.lineSpacing),Ue.styletags&&Ue.styletags.breaklines&&(rt.breaklines=!!Ue.styletags.breaklines),Ue.styletags&&Ue.styletags.bolds&&(rt.bolds=!!Ue.styletags.bolds),Ue.styletags&&Ue.styletags.italics&&(rt.italics=!!Ue.styletags.italics),Ue.styletags&&Ue.styletags.subscripts&&(rt.subscripts=!!Ue.styletags.subscripts),Ue.styletags&&Ue.styletags.superscripts&&(rt.superscripts=!!Ue.styletags.superscripts));return Be.font=[Ue.fontStyle,Ue.fontVariant,Ue.fontWeight,$e+"px",Ue.font].filter((function(Ee){return Ee})).join(" "),Be.textAlign="start",Be.textBaseline="alphabetic",Be.direction="ltr",processPixels(function getPixels(Ee,ze,Be,Ue,$e,Qe){Be=Be.replace(/\n/g,""),Be=!0===Qe.breaklines?Be.replace(/\/g,"\n"):Be.replace(/\/g," ");var rt="",it=[];for(xt=0;xt-1?parseInt(Ee[1+We]):0,it=$e>-1?parseInt(Be[1+$e]):0;rt!==it&&(Ue=Ue.replace(getTextFontSize(),"?px "),Ut*=Math.pow(.75,it-rt),Ue=Ue.replace("?px ",getTextFontSize())),Lt+=.25*rr*(it-rt)}if(!0===Qe.superscripts){var at=Ee.indexOf("+"),ct=Be.indexOf("+"),ft=at>-1?parseInt(Ee[1+at]):0,xt=ct>-1?parseInt(Be[1+ct]):0;ft!==xt&&(Ue=Ue.replace(getTextFontSize(),"?px "),Ut*=Math.pow(.75,xt-ft),Ue=Ue.replace("?px ",getTextFontSize())),Lt-=.25*rr*(xt-ft)}if(!0===Qe.bolds){var kt=Ee.indexOf("b|")>-1,er=Be.indexOf("b|")>-1;!kt&&er&&(Ue=tr?Ue.replace("italic ","italic bold "):"bold "+Ue),kt&&!er&&(Ue=Ue.replace("bold ",""))}if(!0===Qe.italics){var tr=Ee.indexOf("i|")>-1,ar=Be.indexOf("i|")>-1;!tr&&ar&&(Ue="italic "+Ue),tr&&!ar&&(Ue=Ue.replace("italic ",""))}ze.font=Ue}for(ft=0;ft",$e="",Qe=We.length,rt=$e.length,it="+"===ze[0]||"-"===ze[0],at=0,ct=-rt;at>-1&&-1!==(at=Be.indexOf(We,at))&&-1!==(ct=Be.indexOf($e,at+Qe))&&!(ct<=at);){for(var ft=at;ft=ct)Ue[ft]=null,Be=Be.substr(0,ft)+" "+Be.substr(ft+1);else if(null!==Ue[ft]){var xt=Ue[ft].indexOf(ze[0]);-1===xt?Ue[ft]+=ze:it&&(Ue[ft]=Ue[ft].substr(0,xt+1)+(1+parseInt(Ue[ft][xt+1]))+Ue[ft].substr(xt+2))}var kt=at+Qe,Lt=Be.substr(kt,ct-kt).indexOf(We);at=-1!==Lt?Lt:ct+rt}return Ue}function getContour(Ee,ze){var Be=Ue(Ee,128);return ze?$e(Be.cells,Be.positions,.25):{edges:Be.cells,positions:Be.positions}}function processPixelsImpl(Ee,ze,Be,Ue){var We=getContour(Ee,Ue),$e=function transformPositions(Ee,ze,Be){for(var Ue=ze.textAlign||"start",We=ze.textBaseline||"alphabetic",$e=[1<<30,1<<30],Qe=[0,0],rt=Ee.length,it=0;it=0;Ue--){var We=Ee[Ue];"."===We?Ee.splice(Ue,1):".."===We?(Ee.splice(Ue,1),Be++):Be&&(Ee.splice(Ue,1),Be--)}if(ze)for(;Be--;Be)Ee.unshift("..");return Ee}function filter(Ee,ze){if(Ee.filter)return Ee.filter(ze);for(var Be=[],Ue=0;Ue=-1&&!Be;Ue--){var We=Ue>=0?arguments[Ue]:Ee.cwd();if("string"!=typeof We)throw new TypeError("Arguments to path.resolve must be strings");We&&(ze=We+"/"+ze,Be="/"===We.charAt(0))}return(Be?"/":"")+(ze=normalizeArray(filter(ze.split("/"),(function(Ee){return!!Ee})),!Be).join("/"))||"."},ze.normalize=function(Ee){var Ue=ze.isAbsolute(Ee),We="/"===Be(Ee,-1);return(Ee=normalizeArray(filter(Ee.split("/"),(function(Ee){return!!Ee})),!Ue).join("/"))||Ue||(Ee="."),Ee&&We&&(Ee+="/"),(Ue?"/":"")+Ee},ze.isAbsolute=function(Ee){return"/"===Ee.charAt(0)},ze.join=function(){var Ee=Array.prototype.slice.call(arguments,0);return ze.normalize(filter(Ee,(function(Ee,ze){if("string"!=typeof Ee)throw new TypeError("Arguments to path.join must be strings");return Ee})).join("/"))},ze.relative=function(Ee,Be){function trim(Ee){for(var ze=0;ze=0&&""===Ee[Be];Be--);return ze>Be?[]:Ee.slice(ze,Be-ze+1)}Ee=ze.resolve(Ee).substr(1),Be=ze.resolve(Be).substr(1);for(var Ue=trim(Ee.split("/")),We=trim(Be.split("/")),$e=Math.min(Ue.length,We.length),Qe=$e,rt=0;rt<$e;rt++)if(Ue[rt]!==We[rt]){Qe=rt;break}var it=[];for(rt=Qe;rt=1;--$e)if(47===(ze=Ee.charCodeAt($e))){if(!We){Ue=$e;break}}else We=!1;return-1===Ue?Be?"/":".":Be&&1===Ue?"/":Ee.slice(0,Ue)},ze.basename=function(Ee,ze){var Be=function basename(Ee){"string"!=typeof Ee&&(Ee+="");var ze,Be=0,Ue=-1,We=!0;for(ze=Ee.length-1;ze>=0;--ze)if(47===Ee.charCodeAt(ze)){if(!We){Be=ze+1;break}}else-1===Ue&&(We=!1,Ue=ze+1);return-1===Ue?"":Ee.slice(Be,Ue)}(Ee);return ze&&Be.substr(-1*ze.length)===ze&&(Be=Be.substr(0,Be.length-ze.length)),Be},ze.extname=function(Ee){"string"!=typeof Ee&&(Ee+="");for(var ze=-1,Be=0,Ue=-1,We=!0,$e=0,Qe=Ee.length-1;Qe>=0;--Qe){var rt=Ee.charCodeAt(Qe);if(47!==rt)-1===Ue&&(We=!1,Ue=Qe+1),46===rt?-1===ze?ze=Qe:1!==$e&&($e=1):-1!==ze&&($e=-1);else if(!We){Be=Qe+1;break}}return-1===ze||-1===Ue||0===$e||1===$e&&ze===Ue-1&&ze===Be+1?"":Ee.slice(ze,Ue)};var Be="b"==="ab".substr(-1)?function(Ee,ze,Be){return Ee.substr(ze,Be)}:function(Ee,ze,Be){return ze<0&&(ze=Ee.length+ze),Ee.substr(ze,Be)}}).call(this,Be("4362"))},dfb0:function(Ee,ze,Be){"use strict";var Ue=Be("4cd5"),We=Be("dc75").findBin,$e=Be("d6d8"),Qe=Be("56fc"),rt=Be("f09f"),it=Be("f5e6");Ee.exports=function setConvert(Ee){var ze=Ee._a,Be=Ee._b,at=ze.length,ct=Be.length,ft=Ee.aaxis,xt=Ee.baxis,kt=ze[0],Lt=ze[at-1],Ut=Be[0],er=Be[ct-1],tr=ze[ze.length-1]-ze[0],rr=Be[Be.length-1]-Be[0],ar=tr*Ue.RELATIVE_CULL_TOLERANCE,Lr=rr*Ue.RELATIVE_CULL_TOLERANCE;kt-=ar,Lt+=ar,Ut-=Lr,er+=Lr,Ee.isVisible=function(Ee,ze){return Ee>kt&&EeUt&&zeLt||zeer},Ee.setScale=function(){var ze=Ee._x,Be=Ee._y,Ue=$e(Ee._xctrl,Ee._yctrl,ze,Be,ft.smoothing,xt.smoothing);Ee._xctrl=Ue[0],Ee._yctrl=Ue[1],Ee.evalxy=Qe([Ee._xctrl,Ee._yctrl],at,ct,ft.smoothing,xt.smoothing),Ee.dxydi=rt([Ee._xctrl,Ee._yctrl],ft.smoothing,xt.smoothing),Ee.dxydj=it([Ee._xctrl,Ee._yctrl],ft.smoothing,xt.smoothing)},Ee.i2a=function(Ee){var Be=Math.max(0,Math.floor(Ee[0]),at-2),Ue=Ee[0]-Be;return(1-Ue)*ze[Be]+Ue*ze[Be+1]},Ee.j2b=function(Ee){var ze=Math.max(0,Math.floor(Ee[1]),at-2),Ue=Ee[1]-ze;return(1-Ue)*Be[ze]+Ue*Be[ze+1]},Ee.ij2ab=function(ze){return[Ee.i2a(ze[0]),Ee.j2b(ze[1])]},Ee.a2i=function(Ee){var Be=Math.max(0,Math.min(We(Ee,ze),at-2)),Ue=ze[Be],$e=ze[Be+1];return Math.max(0,Math.min(at-1,Be+(Ee-Ue)/($e-Ue)))},Ee.b2j=function(Ee){var ze=Math.max(0,Math.min(We(Ee,Be),ct-2)),Ue=Be[ze],$e=Be[ze+1];return Math.max(0,Math.min(ct-1,ze+(Ee-Ue)/($e-Ue)))},Ee.ab2ij=function(ze){return[Ee.a2i(ze[0]),Ee.b2j(ze[1])]},Ee.i2c=function(ze,Be){return Ee.evalxy([],ze,Be)},Ee.ab2xy=function(Ue,We,$e){if(!$e&&(Ueze[at-1]|WeBe[ct-1]))return[!1,!1];var Qe=Ee.a2i(Ue),rt=Ee.b2j(We),it=Ee.evalxy([],Qe,rt);if($e){var ft,xt,kt,Lt,Ut=0,er=0,tr=[];Ueze[at-1]?(ft=at-2,xt=1,Ut=(Ue-ze[at-1])/(ze[at-1]-ze[at-2])):xt=Qe-(ft=Math.max(0,Math.min(at-2,Math.floor(Qe)))),WeBe[ct-1]?(kt=ct-2,Lt=1,er=(We-Be[ct-1])/(Be[ct-1]-Be[ct-2])):Lt=rt-(kt=Math.max(0,Math.min(ct-2,Math.floor(rt)))),Ut&&(Ee.dxydi(tr,ft,kt,xt,Lt),it[0]+=tr[0]*Ut,it[1]+=tr[1]*Ut),er&&(Ee.dxydj(tr,ft,kt,xt,Lt),it[0]+=tr[0]*er,it[1]+=tr[1]*er)}return it},Ee.c2p=function(Ee,ze,Be){return[ze.c2p(Ee[0]),Be.c2p(Ee[1])]},Ee.p2x=function(Ee,ze,Be){return[ze.p2c(Ee[0]),Be.p2c(Ee[1])]},Ee.dadi=function(Ee){var Be=Math.max(0,Math.min(ze.length-2,Ee));return ze[Be+1]-ze[Be]},Ee.dbdj=function(Ee){var ze=Math.max(0,Math.min(Be.length-2,Ee));return Be[ze+1]-Be[ze]},Ee.dxyda=function(ze,Be,Ue,We){var $e=Ee.dxydi(null,ze,Be,Ue,We),Qe=Ee.dadi(ze,Ue);return[$e[0]/Qe,$e[1]/Qe]},Ee.dxydb=function(ze,Be,Ue,We){var $e=Ee.dxydj(null,ze,Be,Ue,We),Qe=Ee.dbdj(Be,We);return[$e[0]/Qe,$e[1]/Qe]},Ee.dxyda_rough=function(ze,Be,Ue){var We=tr*(Ue||.1),$e=Ee.ab2xy(ze+We,Be,!0),Qe=Ee.ab2xy(ze-We,Be,!0);return[.5*($e[0]-Qe[0])/We,.5*($e[1]-Qe[1])/We]},Ee.dxydb_rough=function(ze,Be,Ue){var We=rr*(Ue||.1),$e=Ee.ab2xy(ze,Be+We,!0),Qe=Ee.ab2xy(ze,Be-We,!0);return[.5*($e[0]-Qe[0])/We,.5*($e[1]-Qe[1])/We]},Ee.dpdx=function(Ee){return Ee._m},Ee.dpdy=function(Ee){return Ee._m}}},dfb3:function(Ee,ze,Be){"use strict";ze.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"],ze.defaultLine="#444",ze.lightLine="#eee",ze.background="#fff",ze.borderLine="#BEC8D9",ze.lightFraction=1e3/11},dfdf:function(Ee,ze,Be){"use strict";Ee.exports=function createViewController(Ee){var ze=(Ee=Ee||{}).eye||[0,0,1],Be=Ee.center||[0,0,0],Qe=Ee.up||[0,1,0],rt=Ee.distanceLimits||[0,1/0],it=Ee.mode||"turntable",at=Ue(),ct=We(),ft=$e();return at.setDistanceLimits(rt[0],rt[1]),at.lookAt(0,ze,Be,Qe),ct.setDistanceLimits(rt[0],rt[1]),ct.lookAt(0,ze,Be,Qe),ft.setDistanceLimits(rt[0],rt[1]),ft.lookAt(0,ze,Be,Qe),new ViewController({turntable:at,orbit:ct,matrix:ft},it)};var Ue=Be("ec76"),We=Be("61e6"),$e=Be("4168");function ViewController(Ee,ze){this._controllerNames=Object.keys(Ee),this._controllerList=this._controllerNames.map((function(ze){return Ee[ze]})),this._mode=ze,this._active=Ee[ze],this._active||(this._mode="turntable",this._active=Ee.turntable),this.modes=this._controllerNames,this.computedMatrix=this._active.computedMatrix,this.computedEye=this._active.computedEye,this.computedUp=this._active.computedUp,this.computedCenter=this._active.computedCenter,this.computedRadius=this._active.computedRadius}var Qe=ViewController.prototype;[["flush",1],["idle",1],["lookAt",4],["rotate",4],["pan",4],["translate",4],["setMatrix",2],["setDistanceLimits",2],["setDistance",2]].forEach((function(Ee){for(var ze=Ee[0],Be=[],Ue=0;Ueit&&(it=$e[0]),$e[1]at&&(at=$e[1])}function bboxGeometry(Ee){switch(Ee.type){case"GeometryCollection":Ee.geometries.forEach(bboxGeometry);break;case"Point":bboxPoint(Ee.coordinates);break;case"MultiPoint":Ee.coordinates.forEach(bboxPoint)}}if(!ze){var Be,Ue,We=src_transform(Ee),$e=new Array(2),Qe=1/0,rt=Qe,it=-Qe,at=-Qe;for(Ue in Ee.arcs.forEach((function(Ee){for(var ze=-1,Ue=Ee.length;++zeit&&(it=$e[0]),$e[1]at&&(at=$e[1])})),Ee.objects)bboxGeometry(Ee.objects[Ue]);ze=Ee.bbox=[Qe,rt,it,at]}return ze},feature=function(Ee,ze){return"GeometryCollection"===ze.type?{type:"FeatureCollection",features:ze.geometries.map((function(ze){return feature_feature(Ee,ze)}))}:feature_feature(Ee,ze)};function feature_feature(Ee,ze){var Be=ze.id,Ue=ze.bbox,We=null==ze.properties?{}:ze.properties,$e=feature_object(Ee,ze);return null==Be&&null==Ue?{type:"Feature",properties:We,geometry:$e}:null==Ue?{type:"Feature",id:Be,properties:We,geometry:$e}:{type:"Feature",id:Be,bbox:Ue,properties:We,geometry:$e}}function feature_object(Ee,ze){var Be=src_transform(Ee),Ue=Ee.arcs;function arc(Ee,ze){ze.length&&ze.pop();for(var We=Ue[Ee<0?~Ee:Ee],$e=0,Qe=We.length;$e1)Ue=extractArcs(Ee,ze,Be);else for(We=0,Ue=new Array($e=Ee.arcs.length);We<$e;++We)Ue[We]=We;return{type:"MultiLineString",arcs:stitch(Ee,Ue)}}function extractArcs(Ee,ze,Be){var Ue,We=[],$e=[];function extract0(Ee){var ze=Ee<0?~Ee:Ee;($e[ze]||($e[ze]=[])).push({i:Ee,g:Ue})}function extract1(Ee){Ee.forEach(extract0)}function extract2(Ee){Ee.forEach(extract1)}return function geometry(Ee){switch(Ue=Ee,Ee.type){case"GeometryCollection":Ee.geometries.forEach(geometry);break;case"LineString":extract1(Ee.arcs);break;case"MultiLineString":case"Polygon":extract2(Ee.arcs);break;case"MultiPolygon":!function extract3(Ee){Ee.forEach(extract2)}(Ee.arcs)}}(ze),$e.forEach(null==Be?function(Ee){We.push(Ee[0].i)}:function(Ee){Be(Ee[0].g,Ee[Ee.length-1].g)&&We.push(Ee[0].i)}),We}var merge=function(Ee){return feature_object(Ee,mergeArcs.apply(this,arguments))};function mergeArcs(Ee,ze){var Be={},Ue=[],We=[];function extract(Ee){Ee.forEach((function(ze){ze.forEach((function(ze){(Be[ze=ze<0?~ze:ze]||(Be[ze]=[])).push(Ee)}))})),Ue.push(Ee)}function area(ze){return function planarRingArea(Ee){for(var ze,Be=-1,Ue=Ee.length,We=Ee[Ue-1],$e=0;++Be1)for(var $e,Qe,rt=1,it=area(We[0]);rtit&&(Qe=We[0],We[0]=We[rt],We[rt]=Qe,it=$e);return We}))}}var bisect=function(Ee,ze){for(var Be=0,Ue=Ee.length;Be>>1;Ee[We]=2))throw new Error("n must be ≥2");if(Ee.transform)throw new Error("already quantized");var Be,Ue=src_bbox(Ee),We=Ue[0],$e=(Ue[2]-We)/(ze-1)||1,Qe=Ue[1],rt=(Ue[3]-Qe)/(ze-1)||1;function quantizePoint(Ee){Ee[0]=Math.round((Ee[0]-We)/$e),Ee[1]=Math.round((Ee[1]-Qe)/rt)}function quantizeGeometry(Ee){switch(Ee.type){case"GeometryCollection":Ee.geometries.forEach(quantizeGeometry);break;case"Point":quantizePoint(Ee.coordinates);break;case"MultiPoint":Ee.coordinates.forEach(quantizePoint)}}for(Be in Ee.arcs.forEach((function(Ee){for(var ze,Be,Ue,it=1,at=1,ct=Ee.length,ft=Ee[0],xt=ft[0]=Math.round((ft[0]-We)/$e),kt=ft[1]=Math.round((ft[1]-Qe)/rt);it",'""',"''","``","“”","«»"]:("string"==typeof Be.ignore&&(Be.ignore=[Be.ignore]),Be.ignore=Be.ignore.map((function(Ee){return 1===Ee.length&&(Ee+=Ee),Ee})));var We=Ue.parse(Ee,{flat:!0,brackets:Be.ignore}),$e=We[0].split(ze);if(Be.escape){for(var Qe=[],rt=0;rt<$e.length;rt++){var it=$e[rt],at=$e[rt+1];"\\"===it[it.length-1]&&"\\"!==it[it.length-2]?(Qe.push(it+ze+at),rt++):Qe.push(it)}$e=Qe}for(rt=0;rt<$e.length;rt++)We[0]=$e[rt],$e[rt]=Ue.stringify(We,{flat:!0});return $e}},e0d7:function(Ee,ze,Be){var Ue=Be("c2e7"),We=Be("7c72"),$e={M:"moveTo",C:"bezierCurveTo"};Ee.exports=function(Ee,ze){Ee.beginPath(),We(Ue(ze)).forEach((function(ze){var Be=ze[0],Ue=ze.slice(1);Ee[$e[Be]].apply(Ee,Ue)})),Ee.closePath()}},e0f6:function(Ee,ze,Be){"use strict";Ee.exports=Be("9df0")()?Object.setPrototypeOf:Be("e19c")},e100:function(Ee,ze,Be){"use strict";Ee.exports=function robustSubtract(Ee,ze){var Be=0|Ee.length,Ue=0|ze.length;if(1===Be&&1===Ue)return function scalarScalar(Ee,ze){var Be=Ee+ze,Ue=Be-Ee,We=Ee-(Be-Ue)+(ze-Ue);if(We)return[We,Be];return[Be]}(Ee[0],-ze[0]);var We,$e,Qe=new Array(Be+Ue),rt=0,it=0,at=0,ct=Math.abs,ft=Ee[it],xt=ct(ft),kt=-ze[at],Lt=ct(kt);xt=Ue?(We=ft,(it+=1)$e.x1?2*Math.PI:0;ze=Ee.rpx1<$e.rpx1?{rpx0:0,rpx1:0}:{x0:Qe,x1:Qe}}else{var rt,it=rr.getPtId(Ee.parent);ar.each((function(Ee){if(rr.getPtId(Ee)===it)return rt=Ee}));var at,ct=rt.children;ct.forEach((function(Ee,ze){if(rr.getPtId(Ee)===Be)return at=ze}));var ft=ct.length,xt=Ue.interpolate(rt.x0,rt.x1);ze={rpx0:yn,rpx1:yn,x0:xt(at/ft),x1:xt((at+1)/ft)}}return Ue.interpolate(We,ze)}(Ee);return function(Ee){return pathSlice(ze(Ee))}})),Ee.select("g.slicetext").attr("opacity",0)})).remove():ar.exit().remove(),ar.order();var Jn=null;if(Ut&&Cn){var ei=rr.getPtId(Cn);ar.each((function(Ee){null===Jn&&rr.getPtId(Ee)===ei&&(Jn=Ee.x1)}))}var ti=ar;function interpX0X1FromParent(Ee){var ze=Ee.parent,Be=En[rr.getPtId(ze)],We={};if(Be){var $e=ze.children,Qe=$e.indexOf(Ee),rt=$e.length,it=Ue.interpolate(Be.x0,Be.x1);We.x0=it(Qe/rt),We.x1=it(Qe/rt)}else We.x0=We.x1=0;return We}Ut&&(ti=ti.transition().each("end",(function(){var ze=Ue.select(this);rr.setSliceCursor(ze,Ee,{hideOnRoot:!0,hideOnLeaves:!0,isTransitioning:!1})}))),ti.each((function(We){var it=Ue.select(this),ct=Qe.ensureSingle(it,"path","surface",(function(Ee){Ee.style("pointer-events","all")}));We.rpx0=y2rpx(We.y0),We.rpx1=y2rpx(We.y1),We.xmid=(We.x0+We.x1)/2,We.pxmid=rx2px(We.rpx1,We.xmid),We.midangle=-(We.xmid-Math.PI/2),We.startangle=-(We.x0-Math.PI/2),We.stopangle=-(We.x1-Math.PI/2),We.halfangle=.5*Math.min(Qe.angleDelta(We.x0,We.x1)||Math.PI,Math.PI),We.ring=1-We.rpx0/We.rpx1,We.rInscribed=function getInscribedRadiusFraction(Ee){return 0===Ee.rpx0&&Qe.isFullCircle([Ee.x0,Ee.x1])?1:Math.max(0,Math.min(1/(1+1/Math.sin(Ee.halfangle)),Ee.ring/2))}(We),Ut?ct.transition().attrTween("d",(function(Ee){var ze=function makeUpdateSliceInterpolator(Ee){var ze,Be=En[rr.getPtId(Ee)],We={x0:Ee.x0,x1:Ee.x1,rpx0:Ee.rpx0,rpx1:Ee.rpx1};if(Be)ze=Be;else if(Cn)if(Ee.parent)if(Jn){var $e=Ee.x1>Jn?2*Math.PI:0;ze={x0:$e,x1:$e}}else ze={rpx0:yn,rpx1:yn},Qe.extendFlat(ze,interpX0X1FromParent(Ee));else ze={rpx0:0,rpx1:0};else ze={x0:0,x1:0};return Ue.interpolate(ze,We)}(Ee);return function(Ee){return pathSlice(ze(Ee))}})):ct.attr("d",pathSlice),it.call(er,sn,Ee,Be,{eventDataKeys:tr.eventDataKeys,transitionTime:tr.CLICK_TRANSITION_TIME,transitionEasing:tr.CLICK_TRANSITION_EASING}).call(rr.setSliceCursor,Ee,{hideOnRoot:!0,hideOnLeaves:!0,isTransitioning:Ee._transitioning}),ct.call(Lt,We,Qr);var ar=Qe.ensureSingle(it,"g","slicetext"),on=Qe.ensureSingle(ar,"text","",(function(Ee){Ee.attr("data-notex",1)})),cn=Qe.ensureUniformFontSize(Ee,rr.determineTextFont(Qr,We,ft.font));on.text(ze.formatSliceLabel(We,sn,Qr,Be,ft)).classed("slicetext",!0).attr("text-anchor","middle").call($e.font,cn).call(rt.convertToTspans,Ee);var un=$e.bBox(on.node());We.transform=kt(un,We,Lr),We.transform.targetX=getTargetX(We),We.transform.targetY=getTargetY(We);var strTransform=function(Ee,ze){var Be=Ee.transform;return xt(Be,ze),Be.fontSize=cn.size,at(Qr.type,Be,ft),Qe.getTextTransform(Be)};Ut?on.transition().attrTween("transform",(function(Ee){var ze=function makeUpdateTextInterpolator(Ee){var ze,Be=En[rr.getPtId(Ee)],We=Ee.transform;if(Be)ze=Be;else if(ze={rpx1:Ee.rpx1,transform:{textPosAngle:We.textPosAngle,scale:0,rotate:We.rotate,rCenter:We.rCenter,x:We.x,y:We.y}},Cn)if(Ee.parent)if(Jn){var $e=Ee.x1>Jn?2*Math.PI:0;ze.x0=ze.x1=$e}else Qe.extendFlat(ze,interpX0X1FromParent(Ee));else ze.x0=ze.x1=0;else ze.x0=ze.x1=0;var rt=Ue.interpolate(ze.transform.textPosAngle,Ee.transform.textPosAngle),it=Ue.interpolate(ze.rpx1,Ee.rpx1),ct=Ue.interpolate(ze.x0,Ee.x0),xt=Ue.interpolate(ze.x1,Ee.x1),kt=Ue.interpolate(ze.transform.scale,We.scale),Lt=Ue.interpolate(ze.transform.rotate,We.rotate),Ut=0===We.rCenter?3:0===ze.transform.rCenter?1/3:1,er=Ue.interpolate(ze.transform.rCenter,We.rCenter);return function(Ee){var ze=it(Ee),Be=ct(Ee),Ue=xt(Ee),$e=function(Ee){return er(Math.pow(Ee,Ut))}(Ee),Qe={pxmid:rx2px(ze,(Be+Ue)/2),rpx1:ze,transform:{textPosAngle:rt(Ee),rCenter:$e,x:We.x,y:We.y}};return at(Qr.type,We,ft),{transform:{targetX:getTargetX(Qe),targetY:getTargetY(Qe),scale:kt(Ee),rotate:Lt(Ee),rCenter:$e}}}}(Ee);return function(Ee){return strTransform(ze(Ee),un)}})):on.attr("transform",strTransform(We,un))}))}function getTextXY(Ee){return function getCoords(Ee,ze){return[Ee*Math.sin(ze),-Ee*Math.cos(ze)]}(Ee.rpx1,Ee.transform.textPosAngle)}ze.plot=function(Ee,ze,Be,We){var $e,Qe,rt=Ee._fullLayout,it=rt._sunburstlayer,at=!Be,ft=!rt.uniformtext.mode&&rr.hasTransition(Be);(ct("sunburst",rt),($e=it.selectAll("g.trace.sunburst").data(ze,(function(Ee){return Ee[0].trace.uid}))).enter().append("g").classed("trace",!0).classed("sunburst",!0).attr("stroke-linejoin","round"),$e.order(),ft)?(We&&(Qe=We()),Ue.transition().duration(Be.duration).ease(Be.easing).each("end",(function(){Qe&&Qe()})).each("interrupt",(function(){Qe&&Qe()})).each((function(){it.selectAll("g.trace").each((function(ze){plotOne(Ee,ze,this,Be)}))}))):($e.each((function(ze){plotOne(Ee,ze,this,Be)})),rt.uniformtext.mode&&Ut(Ee,rt._sunburstlayer.selectAll(".trace"),"sunburst"));at&&$e.exit().remove()},ze.formatSliceLabel=function(Ee,ze,Be,Ue,We){var $e=Be.texttemplate,rt=Be.textinfo;if(!($e||rt&&"none"!==rt))return"";var it=We.separators,at=Ue[0],ct=Ee.data.data,ft=at.hierarchy,xt=rr.isHierarchyRoot(Ee),kt=rr.getParent(ft,Ee),Lt=rr.getValue(Ee);if(!$e){var Ut,er=rt.split("+"),hasFlag=function(Ee){return-1!==er.indexOf(Ee)},tr=[];if(hasFlag("label")&&ct.label&&tr.push(ct.label),ct.hasOwnProperty("v")&&hasFlag("value")&&tr.push(rr.formatValue(ct.v,it)),!xt){hasFlag("current path")&&tr.push(rr.getPath(Ee.data));var ar=0;hasFlag("percent parent")&&ar++,hasFlag("percent entry")&&ar++,hasFlag("percent root")&&ar++;var Lr=ar>1;if(ar){var Qr,addPercent=function(Ee){Ut=rr.formatPercent(Qr,it),Lr&&(Ut+=" of "+Ee),tr.push(Ut)};hasFlag("percent parent")&&!xt&&(Qr=Lt/rr.getValue(kt),addPercent("parent")),hasFlag("percent entry")&&(Qr=Lt/rr.getValue(ze),addPercent("entry")),hasFlag("percent root")&&(Qr=Lt/rr.getValue(ft),addPercent("root"))}}return hasFlag("text")&&(Ut=Qe.castOption(Be,ct.i,"text"),Qe.isValidTextValue(Ut)&&tr.push(Ut)),tr.join("
")}var on=Qe.castOption(Be,ct.i,"texttemplate");if(!on)return"";var sn={};ct.label&&(sn.label=ct.label),ct.hasOwnProperty("v")&&(sn.value=ct.v,sn.valueLabel=rr.formatValue(ct.v,it)),sn.currentPath=rr.getPath(Ee.data),xt||(sn.percentParent=Lt/rr.getValue(kt),sn.percentParentLabel=rr.formatPercent(sn.percentParent,it),sn.parent=rr.getPtLabel(kt)),sn.percentEntry=Lt/rr.getValue(ze),sn.percentEntryLabel=rr.formatPercent(sn.percentEntry,it),sn.entry=rr.getPtLabel(ze),sn.percentRoot=Lt/rr.getValue(ft),sn.percentRootLabel=rr.formatPercent(sn.percentRoot,it),sn.root=rr.getPtLabel(ft),ct.hasOwnProperty("color")&&(sn.color=ct.color);var cn=Qe.castOption(Be,ct.i,"text");return(Qe.isValidTextValue(cn)||""===cn)&&(sn.text=cn),sn.customdata=Qe.castOption(Be,ct.i,"customdata"),Qe.texttemplateString(on,sn,We._d3locale,sn,Be._meta||{})}},e192:function(Ee,ze,Be){Ee.exports=function(){"use strict";var Ee,ze,Be;function define(Ue,We){if(Ee)if(ze){var $e="var sharedChunk = {}; ("+Ee+")(sharedChunk); ("+ze+")(sharedChunk);",Qe={};Ee(Qe),(Be=We(Qe)).workerUrl=window.URL.createObjectURL(new Blob([$e],{type:"text/javascript"}))}else ze=We;else Ee=We}return define(0,(function(Ee){function e(Ee,ze){return Ee(ze={exports:{}},ze.exports),ze.exports}var ze=n;function n(Ee,ze,Be,Ue){this.cx=3*Ee,this.bx=3*(Be-Ee)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*ze,this.by=3*(Ue-ze)-this.cy,this.ay=1-this.cy-this.by,this.p1x=Ee,this.p1y=Ue,this.p2x=Be,this.p2y=Ue}n.prototype.sampleCurveX=function(Ee){return((this.ax*Ee+this.bx)*Ee+this.cx)*Ee},n.prototype.sampleCurveY=function(Ee){return((this.ay*Ee+this.by)*Ee+this.cy)*Ee},n.prototype.sampleCurveDerivativeX=function(Ee){return(3*this.ax*Ee+2*this.bx)*Ee+this.cx},n.prototype.solveCurveX=function(Ee,ze){var Be,Ue,We,$e,Qe;for(void 0===ze&&(ze=1e-6),We=Ee,Qe=0;Qe<8;Qe++){if($e=this.sampleCurveX(We)-Ee,Math.abs($e)(Ue=1))return Ue;for(;Be$e?Be=We:Ue=We,We=.5*(Ue-Be)+Be}return We},n.prototype.solve=function(Ee,ze){return this.sampleCurveY(this.solveCurveX(Ee,ze))};var Be=a;function a(Ee,ze){this.x=Ee,this.y=ze}function o(Ee,ze){if(Array.isArray(Ee)){if(!Array.isArray(ze)||Ee.length!==ze.length)return!1;for(var Be=0;Be0;)ze[Be]=arguments[Be+1];for(var Ue=0,We=ze;Ue>Ee/4).toString(16):([1e7]+-[1e3]+-4e3+-8e3+-1e11).replace(/[018]/g,t)}()}function d(Ee){return!!Ee&&/^[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(Ee)}function m(Ee,ze){Ee.forEach((function(Ee){ze[Ee]&&(ze[Ee]=ze[Ee].bind(ze))}))}function v(Ee,ze){return-1!==Ee.indexOf(ze,Ee.length-ze.length)}function g(Ee,ze,Be){var Ue={};for(var We in Ee)Ue[We]=ze.call(Be||this,Ee[We],We,Ee);return Ue}function x(Ee,ze,Be){var Ue={};for(var We in Ee)ze.call(Be||this,Ee[We],We,Ee)&&(Ue[We]=Ee[We]);return Ue}function b(Ee){return Array.isArray(Ee)?Ee.map(b):"object"==typeof Ee&&Ee?g(Ee,b):Ee}var $e={};function w(Ee){$e[Ee]||("undefined"!=typeof console&&console.warn(Ee),$e[Ee]=!0)}function A(Ee,ze,Be){return(Be.y-Ee.y)*(ze.x-Ee.x)>(ze.y-Ee.y)*(Be.x-Ee.x)}function k(Ee){for(var ze=0,Be=0,Ue=Ee.length,We=Ue-1,$e=void 0,Qe=void 0;Be@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,(function(Ee,Be,Ue,We){var $e=Ue||We;return ze[Be]=!$e||$e.toLowerCase(),""})),ze["max-age"]){var Be=parseInt(ze["max-age"],10);isNaN(Be)?delete ze["max-age"]:ze["max-age"]=Be}return ze}function z(Ee){try{var ze=self[Ee];return ze.setItem("_mapbox_test_",1),ze.removeItem("_mapbox_test_"),!0}catch(Ee){return!1}}var Qe,rt,it,at,ct=self.performance&&self.performance.now?self.performance.now.bind(self.performance):Date.now.bind(Date),ft=self.requestAnimationFrame||self.mozRequestAnimationFrame||self.webkitRequestAnimationFrame||self.msRequestAnimationFrame,xt=self.cancelAnimationFrame||self.mozCancelAnimationFrame||self.webkitCancelAnimationFrame||self.msCancelAnimationFrame,kt={now:ct,frame:function(Ee){var ze=ft(Ee);return{cancel:function(){return xt(ze)}}},getImageData:function(Ee){var ze=self.document.createElement("canvas"),Be=ze.getContext("2d");if(!Be)throw new Error("failed to create canvas 2d context");return ze.width=Ee.width,ze.height=Ee.height,Be.drawImage(Ee,0,0,Ee.width,Ee.height),Be.getImageData(0,0,Ee.width,Ee.height)},resolveURL:function(Ee){return Qe||(Qe=self.document.createElement("a")),Qe.href=Ee,Qe.href},hardwareConcurrency:self.navigator.hardwareConcurrency||4,get devicePixelRatio(){return self.devicePixelRatio},get prefersReducedMotion(){return!!self.matchMedia&&(null==rt&&(rt=self.matchMedia("(prefers-reduced-motion: reduce)")),rt.matches)}},Lt={API_URL:"https://api.mapbox.com",get EVENTS_URL(){return this.API_URL?0===this.API_URL.indexOf("https://api.mapbox.cn")?"https://events.mapbox.cn/events/v2":0===this.API_URL.indexOf("https://api.mapbox.com")?"https://events.mapbox.com/events/v2":null:null},FEEDBACK_URL:"https://apps.mapbox.com/feedback",REQUIRE_ACCESS_TOKEN:!0,ACCESS_TOKEN:null,MAX_PARALLEL_IMAGE_REQUESTS:16},Ut={supported:!1,testSupport:function(Ee){!er&&at&&(tr?U(Ee):it=Ee)}},er=!1,tr=!1;function U(Ee){var ze=Ee.createTexture();Ee.bindTexture(Ee.TEXTURE_2D,ze);try{if(Ee.texImage2D(Ee.TEXTURE_2D,0,Ee.RGBA,Ee.RGBA,Ee.UNSIGNED_BYTE,at),Ee.isContextLost())return;Ut.supported=!0}catch(Ee){}Ee.deleteTexture(ze),er=!0}self.document&&((at=self.document.createElement("img")).onload=function(){it&&U(it),it=null,tr=!0},at.onerror=function(){er=!0,it=null},at.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");var rr="01",j=function(Ee,ze){this._transformRequestFn=Ee,this._customAccessToken=ze,this._createSkuToken()};function q(Ee){return 0===Ee.indexOf("mapbox:")}j.prototype._createSkuToken=function(){var Ee=function(){for(var Ee="",ze=0;ze<10;ze++)Ee+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[Math.floor(62*Math.random())];return{token:["1",rr,Ee].join(""),tokenExpiresAt:Date.now()+432e5}}();this._skuToken=Ee.token,this._skuTokenExpiresAt=Ee.tokenExpiresAt},j.prototype._isSkuTokenExpired=function(){return Date.now()>this._skuTokenExpiresAt},j.prototype.transformRequest=function(Ee,ze){return this._transformRequestFn&&this._transformRequestFn(Ee,ze)||{url:Ee}},j.prototype.normalizeStyleURL=function(Ee,ze){if(!q(Ee))return Ee;var Be=X(Ee);return Be.path="/styles/v1"+Be.path,this._makeAPIURL(Be,this._customAccessToken||ze)},j.prototype.normalizeGlyphsURL=function(Ee,ze){if(!q(Ee))return Ee;var Be=X(Ee);return Be.path="/fonts/v1"+Be.path,this._makeAPIURL(Be,this._customAccessToken||ze)},j.prototype.normalizeSourceURL=function(Ee,ze){if(!q(Ee))return Ee;var Be=X(Ee);return Be.path="/v4/"+Be.authority+".json",Be.params.push("secure"),this._makeAPIURL(Be,this._customAccessToken||ze)},j.prototype.normalizeSpriteURL=function(Ee,ze,Be,Ue){var We=X(Ee);return q(Ee)?(We.path="/styles/v1"+We.path+"/sprite"+ze+Be,this._makeAPIURL(We,this._customAccessToken||Ue)):(We.path+=""+ze+Be,G(We))},j.prototype.normalizeTileURL=function(Ee,ze,Be){if(this._isSkuTokenExpired()&&this._createSkuToken(),!ze||!q(ze))return Ee;var Ue=X(Ee),We=kt.devicePixelRatio>=2||512===Be?"@2x":"",$e=Ut.supported?".webp":"$1";return Ue.path=Ue.path.replace(/(\.(png|jpg)\d*)(?=$)/,""+We+$e),Ue.path=Ue.path.replace(/^.+\/v4\//,"/"),Ue.path="/v4"+Ue.path,Lt.REQUIRE_ACCESS_TOKEN&&(Lt.ACCESS_TOKEN||this._customAccessToken)&&this._skuToken&&Ue.params.push("sku="+this._skuToken),this._makeAPIURL(Ue,this._customAccessToken)},j.prototype.canonicalizeTileURL=function(Ee){var ze=X(Ee);if(!ze.path.match(/(^\/v4\/)/)||!ze.path.match(/\.[\w]+$/))return Ee;var Be="mapbox://tiles/";Be+=ze.path.replace("/v4/","");var Ue=ze.params.filter((function(Ee){return!Ee.match(/^access_token=/)}));return Ue.length&&(Be+="?"+Ue.join("&")),Be},j.prototype.canonicalizeTileset=function(Ee,ze){if(!q(ze))return Ee.tiles||[];for(var Be=[],Ue=0,We=Ee.tiles;Ue=1&&self.localStorage.setItem(ze,JSON.stringify(this.eventData))}catch(Ee){w("Unable to write to LocalStorage")}},H.prototype.processRequests=function(Ee){},H.prototype.postEvent=function(Ee,ze,Be,Ue){var We=this;if(Lt.EVENTS_URL){var $e=X(Lt.EVENTS_URL);$e.params.push("access_token="+(Ue||Lt.ACCESS_TOKEN||""));var Qe={event:this.type,created:new Date(Ee).toISOString(),sdkIdentifier:"mapbox-gl-js",sdkVersion:"1.3.2",skuId:rr,userId:this.anonId},rt=ze?c(Qe,ze):Qe,it={url:G($e),headers:{"Content-Type":"text/plain"},body:JSON.stringify([rt])};this.pendingRequest=vt(it,(function(Ee){We.pendingRequest=null,Be(Ee),We.saveEventData(),We.processRequests(Ue)}))}},H.prototype.queueRequest=function(Ee,ze){this.queue.push(Ee),this.processRequests(ze)};var Qr,on=function(Ee){function e(){Ee.call(this,"map.load"),this.success={},this.skuToken=""}return Ee&&(e.__proto__=Ee),e.prototype=Object.create(Ee&&Ee.prototype),e.prototype.constructor=e,e.prototype.postMapLoadEvent=function(Ee,ze,Be,Ue){this.skuToken=Be,(Lt.EVENTS_URL&&Ue||Lt.ACCESS_TOKEN&&Array.isArray(Ee)&&Ee.some((function(Ee){return q(Ee)||K(Ee)})))&&this.queueRequest({id:ze,timestamp:Date.now()},Ue)},e.prototype.processRequests=function(Ee){var ze=this;if(!this.pendingRequest&&0!==this.queue.length){var Be=this.queue.shift(),Ue=Be.id,We=Be.timestamp;Ue&&this.success[Ue]||(this.anonId||this.fetchEventData(),d(this.anonId)||(this.anonId=y()),this.postEvent(We,{skuToken:this.skuToken},(function(Ee){Ee||Ue&&(ze.success[Ue]=!0)}),Ee))}},e}(H),sn=new(function(Ee){function e(ze){Ee.call(this,"appUserTurnstile"),this._customAccessToken=ze}return Ee&&(e.__proto__=Ee),e.prototype=Object.create(Ee&&Ee.prototype),e.prototype.constructor=e,e.prototype.postTurnstileEvent=function(Ee,ze){Lt.EVENTS_URL&&Lt.ACCESS_TOKEN&&Array.isArray(Ee)&&Ee.some((function(Ee){return q(Ee)||K(Ee)}))&&this.queueRequest(Date.now(),ze)},e.prototype.processRequests=function(Ee){var ze=this;if(!this.pendingRequest&&0!==this.queue.length){this.anonId&&this.eventData.lastSuccess&&this.eventData.tokenU||this.fetchEventData();var Be=J(Lt.ACCESS_TOKEN),Ue=Be?Be.u:Lt.ACCESS_TOKEN,We=Ue!==this.eventData.tokenU;d(this.anonId)||(this.anonId=y(),We=!0);var $e=this.queue.shift();if(this.eventData.lastSuccess){var Qe=new Date(this.eventData.lastSuccess),rt=new Date($e),it=($e-this.eventData.lastSuccess)/864e5;We=We||it>=1||it<-1||Qe.getDate()!==rt.getDate()}else We=!0;if(!We)return this.processRequests();this.postEvent($e,{"enabled.telemetry":!1},(function(Ee){Ee||(ze.eventData.lastSuccess=$e,ze.eventData.tokenU=Ue)}),Ee)}},e}(H)),cn=sn.postTurnstileEvent.bind(sn),un=new on,hn=un.postMapLoadEvent.bind(un),dn="mapbox-tiles",vn=500,yn=50;function st(Ee){var ze=Ee.indexOf("?");return ze<0?Ee:Ee.slice(0,ze)}var _n=1/0,Mn={Unknown:"Unknown",Style:"Style",Source:"Source",Tile:"Tile",Glyphs:"Glyphs",SpriteImage:"SpriteImage",SpriteJSON:"SpriteJSON",Image:"Image"};"function"==typeof Object.freeze&&Object.freeze(Mn);var Cn=function(Ee){function e(ze,Be,Ue){401===Be&&K(Ue)&&(ze+=": you may have provided an invalid Mapbox access token. See https://www.mapbox.com/api-documentation/#access-tokens-and-token-scopes"),Ee.call(this,ze),this.status=Be,this.url=Ue,this.name=this.constructor.name,this.message=ze}return Ee&&(e.__proto__=Ee),e.prototype=Object.create(Ee&&Ee.prototype),e.prototype.constructor=e,e.prototype.toString=function(){return this.name+": "+this.message+" ("+this.status+"): "+this.url},e}(Error);function ht(){return"undefined"!=typeof WorkerGlobalScope&&"undefined"!=typeof self&&self instanceof WorkerGlobalScope}var En=ht()?function(){return self.worker&&self.worker.referrer}:function(){return("blob:"===self.location.protocol?self.parent:self).location.href};function yt(Ee,ze){var Be,Ue=new self.AbortController,We=new self.Request(Ee.url,{method:Ee.method||"GET",body:Ee.body,credentials:Ee.credentials,headers:Ee.headers,referrer:En(),signal:Ue.signal}),$e=!1,Qe=!1,rt=(Be=We.url).indexOf("sku=")>0&&K(Be);"json"===Ee.type&&We.headers.set("Accept","application/json");var u=function(Be,Ue,$e){if(!Qe){if(Be&&"SecurityError"!==Be.message&&w(Be),Ue&&$e)return l(Ue);var it=Date.now();self.fetch(We).then((function(Be){if(Be.ok){var Ue=rt?Be.clone():null;return l(Be,Ue,it)}return ze(new Cn(Be.statusText,Be.status,Ee.url))})).catch((function(Ee){20!==Ee.code&&ze(new Error(Ee.message))}))}},l=function(Be,Ue,rt){("arrayBuffer"===Ee.type?Be.arrayBuffer():"json"===Ee.type?Be.json():Be.text()).then((function(Ee){Qe||(Ue&&rt&&function ot(Ee,ze,Be){if(self.caches){var Ue={status:ze.status,statusText:ze.statusText,headers:new self.Headers};ze.headers.forEach((function(Ee,ze){return Ue.headers.set(ze,Ee)}));var We=S(ze.headers.get("Cache-Control")||"");We["no-store"]||(We["max-age"]&&Ue.headers.set("Expires",new Date(Be+1e3*We["max-age"]).toUTCString()),new Date(Ue.headers.get("Expires")).getTime()-Be<42e4||function(Ee,ze){if(void 0===Qr)try{new Response(new ReadableStream),Qr=!0}catch(Ee){Qr=!1}Qr?ze(Ee.body):Ee.blob().then(ze)}(ze,(function(ze){var Be=new self.Response(ze,Ue);self.caches.open(dn).then((function(ze){return ze.put(st(Ee.url),Be)})).catch((function(Ee){return w(Ee.message)}))})))}}(We,Ue,rt),$e=!0,ze(null,Ee,Be.headers.get("Cache-Control"),Be.headers.get("Expires")))})).catch((function(Ee){return ze(new Error(Ee.message))}))};return rt?function ut(Ee,ze){if(!self.caches)return ze(null);var Be=st(Ee.url);self.caches.open(dn).then((function(Ee){Ee.match(Be).then((function(Ue){var We=function(Ee){if(!Ee)return!1;var ze=new Date(Ee.headers.get("Expires")),Be=S(Ee.headers.get("Cache-Control")||"");return ze>Date.now()&&!Be["no-cache"]}(Ue);Ee.delete(Be),We&&Ee.put(Be,Ue.clone()),ze(null,Ue,We)})).catch(ze)})).catch(ze)}(We,u):u(null,null),{cancel:function(){Qe=!0,$e||Ue.abort()}}}var Pn,In,dt=function(Ee,ze){if(Be=Ee.url,!(/^file:/.test(Be)||/^file:/.test(En())&&!/^\w+:/.test(Be))){if(self.fetch&&self.Request&&self.AbortController&&self.Request.prototype.hasOwnProperty("signal"))return yt(Ee,ze);if(ht()&&self.worker&&self.worker.actor)return self.worker.actor.send("getResource",Ee,ze)}var Be;return function(Ee,ze){var Be=new self.XMLHttpRequest;for(var Ue in Be.open(Ee.method||"GET",Ee.url,!0),"arrayBuffer"===Ee.type&&(Be.responseType="arraybuffer"),Ee.headers)Be.setRequestHeader(Ue,Ee.headers[Ue]);return"json"===Ee.type&&(Be.responseType="text",Be.setRequestHeader("Accept","application/json")),Be.withCredentials="include"===Ee.credentials,Be.onerror=function(){ze(new Error(Be.statusText))},Be.onload=function(){if((Be.status>=200&&Be.status<300||0===Be.status)&&null!==Be.response){var Ue=Be.response;if("json"===Ee.type)try{Ue=JSON.parse(Be.response)}catch(Ee){return ze(Ee)}ze(null,Ue,Be.getResponseHeader("Cache-Control"),Be.getResponseHeader("Expires"))}else ze(new Cn(Be.statusText,Be.status,Ee.url))},Be.send(Ee.body),{cancel:function(){return Be.abort()}}}(Ee,ze)},mt=function(Ee,ze){return dt(c(Ee,{type:"arrayBuffer"}),ze)},vt=function(Ee,ze){return dt(c(Ee,{method:"POST"}),ze)};Pn=[],In=0;var bt=function(Ee,ze){if(In>=Lt.MAX_PARALLEL_IMAGE_REQUESTS){var Be={requestParameters:Ee,callback:ze,cancelled:!1,cancel:function(){this.cancelled=!0}};return Pn.push(Be),Be}In++;var Ue=!1,i=function(){if(!Ue)for(Ue=!0,In--;Pn.length&&In0||this._oneTimeListeners&&this._oneTimeListeners[Ee]&&this._oneTimeListeners[Ee].length>0||this._eventedParent&&this._eventedParent.listens(Ee)},St.prototype.setEventedParent=function(Ee,ze){return this._eventedParent=Ee,this._eventedParentData=ze,this};var Hn={$version:8,$root:{version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},light:{type:"light"},sources:{required:!0,type:"sources"},sprite:{type:"string"},glyphs:{type:"string"},transition:{type:"transition"},layers:{required:!0,type:"array",value:"layer"}},sources:{"*":{type:"source"}},source:["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],source_vector:{type:{required:!0,type:"enum",values:{vector:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},attribution:{type:"string"},"*":{type:"*"}},source_raster:{type:{required:!0,type:"enum",values:{raster:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},attribution:{type:"string"},"*":{type:"*"}},source_raster_dem:{type:{required:!0,type:"enum",values:{"raster-dem":{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},attribution:{type:"string"},encoding:{type:"enum",values:{terrarium:{},mapbox:{}},default:"mapbox"},"*":{type:"*"}},source_geojson:{type:{required:!0,type:"enum",values:{geojson:{}}},data:{type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},tolerance:{type:"number",default:.375},cluster:{type:"boolean",default:!1},clusterRadius:{type:"number",default:50,minimum:0},clusterMaxZoom:{type:"number"},clusterProperties:{type:"*"},lineMetrics:{type:"boolean",default:!1},generateId:{type:"boolean",default:!1}},source_video:{type:{required:!0,type:"enum",values:{video:{}}},urls:{required:!0,type:"array",value:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},source_image:{type:{required:!0,type:"enum",values:{image:{}}},url:{required:!0,type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},layer:{id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},background:{}},required:!0},metadata:{type:"*"},source:{type:"string"},"source-layer":{type:"string"},minzoom:{type:"number",minimum:0,maximum:24},maxzoom:{type:"number",minimum:0,maximum:24},filter:{type:"filter"},layout:{type:"layout"},paint:{type:"paint"}},layout:["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background"],layout_background:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_fill:{"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_circle:{"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_heatmap:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_line:{"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-join":{type:"enum",values:{bevel:{},round:{},miter:{}},default:"miter",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,requires:[{"line-join":"miter"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_symbol:{"symbol-placement":{type:"enum",values:{point:{},line:{},"line-center":{}},default:"point",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",requires:[{"symbol-placement":"line"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{type:"enum",values:{auto:{},"viewport-y":{},source:{}},default:"auto",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{},width:{},height:{},both:{}},default:"none",requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{type:"array",value:"number",length:4,default:[0,0,0,0],units:"pixels",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"string",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-keep-upright":{type:"boolean",default:!1,requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"],requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-letter-spacing":{type:"number",default:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{auto:{},left:{},center:{},right:{}},default:"center",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{type:"number",units:"ems",default:0,requires:["text-field"],"property-type":"data-driven",expression:{interpolated:!0,parameters:["zoom","feature"]}},"text-variable-anchor":{type:"array",value:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["text-field",{"!":"text-variable-anchor"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",requires:["text-field",{"symbol-placement":["line","line-center"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-writing-mode":{type:"array",value:"enum",values:{horizontal:{},vertical:{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{},uppercase:{},lowercase:{}},default:"none",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field",{"!":"text-radial-offset"},{"!":"text-variable-anchor"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,requires:["text-field","icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_raster:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_hillshade:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},filter:{type:"array",value:"*"},filter_operator:{type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{}}},geometry_type:{type:"enum",values:{Point:{},LineString:{},Polygon:{}}},function:{expression:{type:"expression"},stops:{type:"array",value:"function_stop"},base:{type:"number",default:1,minimum:0},property:{type:"string",default:"$zoom"},type:{type:"enum",values:{identity:{},exponential:{},interval:{},categorical:{}},default:"exponential"},colorSpace:{type:"enum",values:{rgb:{},lab:{},hcl:{}},default:"rgb"},default:{type:"*",required:!1}},function_stop:{type:"array",minimum:0,maximum:22,value:["number","color"],length:2},expression:{type:"array",value:"*",minimum:1},expression_name:{type:"enum",values:{let:{group:"Variable binding"},var:{group:"Variable binding"},literal:{group:"Types"},array:{group:"Types"},at:{group:"Lookup"},case:{group:"Decision"},match:{group:"Decision"},coalesce:{group:"Decision"},step:{group:"Ramps, scales, curves"},interpolate:{group:"Ramps, scales, curves"},"interpolate-hcl":{group:"Ramps, scales, curves"},"interpolate-lab":{group:"Ramps, scales, curves"},ln2:{group:"Math"},pi:{group:"Math"},e:{group:"Math"},typeof:{group:"Types"},string:{group:"Types"},number:{group:"Types"},boolean:{group:"Types"},object:{group:"Types"},collator:{group:"Types"},format:{group:"Types"},"number-format":{group:"Types"},"to-string":{group:"Types"},"to-number":{group:"Types"},"to-boolean":{group:"Types"},"to-rgba":{group:"Color"},"to-color":{group:"Types"},rgb:{group:"Color"},rgba:{group:"Color"},get:{group:"Lookup"},has:{group:"Lookup"},length:{group:"Lookup"},properties:{group:"Feature data"},"feature-state":{group:"Feature data"},"geometry-type":{group:"Feature data"},id:{group:"Feature data"},zoom:{group:"Zoom"},"heatmap-density":{group:"Heatmap"},"line-progress":{group:"Feature data"},accumulated:{group:"Feature data"},"+":{group:"Math"},"*":{group:"Math"},"-":{group:"Math"},"/":{group:"Math"},"%":{group:"Math"},"^":{group:"Math"},sqrt:{group:"Math"},log10:{group:"Math"},ln:{group:"Math"},log2:{group:"Math"},sin:{group:"Math"},cos:{group:"Math"},tan:{group:"Math"},asin:{group:"Math"},acos:{group:"Math"},atan:{group:"Math"},min:{group:"Math"},max:{group:"Math"},round:{group:"Math"},abs:{group:"Math"},ceil:{group:"Math"},floor:{group:"Math"},"==":{group:"Decision"},"!=":{group:"Decision"},">":{group:"Decision"},"<":{group:"Decision"},">=":{group:"Decision"},"<=":{group:"Decision"},all:{group:"Decision"},any:{group:"Decision"},"!":{group:"Decision"},"is-supported-script":{group:"String"},upcase:{group:"String"},downcase:{group:"String"},concat:{group:"String"},"resolved-locale":{group:"String"}}},light:{anchor:{type:"enum",default:"viewport",values:{map:{},viewport:{}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},paint:["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background"],paint_fill:{"fill-antialias":{type:"boolean",default:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"string",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-extrusion-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"string",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",transition:!0,requires:["fill-extrusion-height"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:{"line-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["line-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",minimum:0,transition:!0,units:"line widths",requires:[{"!":"line-pattern"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"line-pattern":{type:"string",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-gradient":{type:"color",transition:!1,requires:[{"!":"line-dasharray"},{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"}},paint_circle:{"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["circle-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{},viewport:{}},default:"map",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}},paint_heatmap:{"heatmap-radius":{type:"number",default:30,minimum:1,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"heatmap-color":{type:"color",default:["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",.1,"royalblue",.3,"cyan",.5,"lime",.7,"yellow",1,"red"],transition:!1,expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_symbol:{"icon-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["icon-image","icon-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",default:"#000000",transition:!0,overridable:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["text-field","text-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_raster:{"raster-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_hillshade:{"hillshade-illumination-direction":{type:"number",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",default:"#FFFFFF",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_background:{"background-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"background-pattern"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"string",transition:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},transition:{duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},"property-type":{"data-driven":{type:"property-type"},"cross-faded":{type:"property-type"},"cross-faded-data-driven":{type:"property-type"},"color-ramp":{type:"property-type"},"data-constant":{type:"property-type"},constant:{type:"property-type"}}},It=function(Ee,ze,Be,Ue){this.message=(Ee?Ee+": ":"")+Be,Ue&&(this.identifier=Ue),null!=ze&&ze.__line__&&(this.line=ze.__line__)};function Ct(Ee){var ze=Ee.key,Be=Ee.value;return Be?[new It(ze,Be,"constants have been deprecated as of v8")]:[]}function Bt(Ee){for(var ze=[],Be=arguments.length-1;Be-- >0;)ze[Be]=arguments[Be+1];for(var Ue=0,We=ze;Ue":"value"===Ee.itemType.kind?"array":"array<"+ze+">"}return Ee.kind}var li=[Jn,ei,ti,ri,ni,si,ii,Kt(ai)];function Gt(Ee,ze){if("error"===ze.kind)return null;if("array"===Ee.kind){if("array"===ze.kind&&(0===ze.N&&"value"===ze.itemType.kind||!Gt(Ee.itemType,ze.itemType))&&("number"!=typeof Ee.N||Ee.N===ze.N))return null}else{if(Ee.kind===ze.kind)return null;if("value"===Ee.kind)for(var Be=0,Ue=li;Be255?255:Ee}function i(Ee){return Ee<0?0:Ee>1?1:Ee}function a(Ee){return"%"===Ee[Ee.length-1]?n(parseFloat(Ee)/100*255):n(parseInt(Ee))}function o(Ee){return"%"===Ee[Ee.length-1]?i(parseFloat(Ee)/100):i(parseFloat(Ee))}function s(Ee,ze,Be){return Be<0?Be+=1:Be>1&&(Be-=1),6*Be<1?Ee+(ze-Ee)*Be*6:2*Be<1?ze:3*Be<2?Ee+(ze-Ee)*(2/3-Be)*6:Ee}try{ze.parseCSSColor=function(Ee){var ze,Ue=Ee.replace(/ /g,"").toLowerCase();if(Ue in Be)return Be[Ue].slice();if("#"===Ue[0])return 4===Ue.length?(ze=parseInt(Ue.substr(1),16))>=0&&ze<=4095?[(3840&ze)>>4|(3840&ze)>>8,240&ze|(240&ze)>>4,15&ze|(15&ze)<<4,1]:null:7===Ue.length&&(ze=parseInt(Ue.substr(1),16))>=0&&ze<=16777215?[(16711680&ze)>>16,(65280&ze)>>8,255&ze,1]:null;var We=Ue.indexOf("("),$e=Ue.indexOf(")");if(-1!==We&&$e+1===Ue.length){var Qe=Ue.substr(0,We),rt=Ue.substr(We+1,$e-(We+1)).split(","),it=1;switch(Qe){case"rgba":if(4!==rt.length)return null;it=o(rt.pop());case"rgb":return 3!==rt.length?null:[a(rt[0]),a(rt[1]),a(rt[2]),it];case"hsla":if(4!==rt.length)return null;it=o(rt.pop());case"hsl":if(3!==rt.length)return null;var at=(parseFloat(rt[0])%360+360)%360/360,ct=o(rt[1]),ft=o(rt[2]),xt=ft<=.5?ft*(ct+1):ft+ct-ft*ct,kt=2*ft-xt;return[n(255*s(kt,xt,at+1/3)),n(255*s(kt,xt,at)),n(255*s(kt,xt,at-1/3)),it];default:return null}}return null}}catch(Ee){}})).parseCSSColor,Ht=function(Ee,ze,Be,Ue){void 0===Ue&&(Ue=1),this.r=Ee,this.g=ze,this.b=Be,this.a=Ue};Ht.parse=function(Ee){if(Ee){if(Ee instanceof Ht)return Ee;if("string"==typeof Ee){var ze=ci(Ee);if(ze)return new Ht(ze[0]/255*ze[3],ze[1]/255*ze[3],ze[2]/255*ze[3],ze[3])}}},Ht.prototype.toString=function(){var Ee=this.toArray(),ze=Ee[0],Be=Ee[1],Ue=Ee[2],We=Ee[3];return"rgba("+Math.round(ze)+","+Math.round(Be)+","+Math.round(Ue)+","+We+")"},Ht.prototype.toArray=function(){var Ee=this.r,ze=this.g,Be=this.b,Ue=this.a;return 0===Ue?[0,0,0,0]:[255*Ee/Ue,255*ze/Ue,255*Be/Ue,Ue]},Ht.black=new Ht(0,0,0,1),Ht.white=new Ht(1,1,1,1),Ht.transparent=new Ht(0,0,0,0),Ht.red=new Ht(1,0,0,1);var Yt=function(Ee,ze,Be){this.sensitivity=Ee?ze?"variant":"case":ze?"accent":"base",this.locale=Be,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})};Yt.prototype.compare=function(Ee,ze){return this.collator.compare(Ee,ze)},Yt.prototype.resolvedLocale=function(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale};var $t=function(Ee,ze,Be,Ue){this.text=Ee,this.scale=ze,this.fontStack=Be,this.textColor=Ue},Wt=function(Ee){this.sections=Ee};function Qt(Ee,ze,Be,Ue){return"number"==typeof Ee&&Ee>=0&&Ee<=255&&"number"==typeof ze&&ze>=0&&ze<=255&&"number"==typeof Be&&Be>=0&&Be<=255?void 0===Ue||"number"==typeof Ue&&Ue>=0&&Ue<=1?null:"Invalid rgba value ["+[Ee,ze,Be,Ue].join(", ")+"]: 'a' must be between 0 and 1.":"Invalid rgba value ["+("number"==typeof Ue?[Ee,ze,Be,Ue]:[Ee,ze,Be]).join(", ")+"]: 'r', 'g', and 'b' must be between 0 and 255."}function te(Ee){if(null===Ee)return Jn;if("string"==typeof Ee)return ti;if("boolean"==typeof Ee)return ri;if("number"==typeof Ee)return ei;if(Ee instanceof Ht)return ni;if(Ee instanceof Yt)return oi;if(Ee instanceof Wt)return si;if(Array.isArray(Ee)){for(var ze,Be=Ee.length,Ue=0,We=Ee;Ue2){var rt=Ee[1];if("string"!=typeof rt||!(rt in hi)||"object"===rt)return ze.error('The item type argument of "array" must be one of string, number, boolean',1);$e=hi[rt],Ue++}else $e=ai;if(Ee.length>3){if(null!==Ee[2]&&("number"!=typeof Ee[2]||Ee[2]<0||Ee[2]!==Math.floor(Ee[2])))return ze.error('The length argument to "array" must be a positive integer literal',2);Qe=Ee[2],Ue++}Be=Kt($e,Qe)}else Be=hi[We];for(var it=[];Ue1)&&ze.push(Ue)}}return ze.concat(this.args.map((function(Ee){return Ee.serialize()})))};var oe=function(Ee){this.type=si,this.sections=Ee};oe.parse=function(Ee,ze){if(Ee.length<3)return ze.error("Expected at least two arguments.");if((Ee.length-1)%2!=0)return ze.error("Expected an even number of arguments.");for(var Be=[],Ue=1;Ue4?"Invalid rbga value "+JSON.stringify(ze)+": expected an array containing either three or four numeric values.":Qt(ze[0],ze[1],ze[2],ze[3])))return new Ht(ze[0]/255,ze[1]/255,ze[2]/255,ze[3])}throw new ne(Be||"Could not parse color from value '"+("string"==typeof ze?ze:String(JSON.stringify(ze)))+"'")}if("number"===this.type.kind){for(var Qe=null,rt=0,it=this.args;rt=0)return!1;var Be=!0;return Ee.eachChild((function(Ee){Be&&!de(Ee,ze)&&(Be=!1)})),Be}he.parse=function(Ee,ze){if(2!==Ee.length)return ze.error("Expected one argument.");var Be=Ee[1];if("object"!=typeof Be||Array.isArray(Be))return ze.error("Collator options argument must be an object.");var Ue=ze.parse(void 0!==Be["case-sensitive"]&&Be["case-sensitive"],1,ri);if(!Ue)return null;var We=ze.parse(void 0!==Be["diacritic-sensitive"]&&Be["diacritic-sensitive"],1,ri);if(!We)return null;var $e=null;return Be.locale&&!($e=ze.parse(Be.locale,1,ti))?null:new he(Ue,We,$e)},he.prototype.evaluate=function(Ee){return new Yt(this.caseSensitive.evaluate(Ee),this.diacriticSensitive.evaluate(Ee),this.locale?this.locale.evaluate(Ee):null)},he.prototype.eachChild=function(Ee){Ee(this.caseSensitive),Ee(this.diacriticSensitive),this.locale&&Ee(this.locale)},he.prototype.possibleOutputs=function(){return[void 0]},he.prototype.serialize=function(){var Ee={};return Ee["case-sensitive"]=this.caseSensitive.serialize(),Ee["diacritic-sensitive"]=this.diacriticSensitive.serialize(),this.locale&&(Ee.locale=this.locale.serialize()),["collator",Ee]};var me=function(Ee,ze){this.type=ze.type,this.name=Ee,this.boundExpression=ze};me.parse=function(Ee,ze){if(2!==Ee.length||"string"!=typeof Ee[1])return ze.error("'var' expression requires exactly one string literal argument.");var Be=Ee[1];return ze.scope.has(Be)?new me(Be,ze.scope.get(Be)):ze.error('Unknown variable "'+Be+'". Make sure "'+Be+'" has been bound in an enclosing "let" expression before using it.',1)},me.prototype.evaluate=function(Ee){return this.boundExpression.evaluate(Ee)},me.prototype.eachChild=function(){},me.prototype.possibleOutputs=function(){return[void 0]},me.prototype.serialize=function(){return["var",this.name]};var ve=function(Ee,ze,Be,Ue,We){void 0===ze&&(ze=[]),void 0===Ue&&(Ue=new Vt),void 0===We&&(We=[]),this.registry=Ee,this.path=ze,this.key=ze.map((function(Ee){return"["+Ee+"]"})).join(""),this.scope=Ue,this.errors=We,this.expectedType=Be};function ge(Ee,ze){for(var Be,Ue,We=Ee.length-1,$e=0,Qe=We,rt=0;$e<=Qe;)if(Be=Ee[rt=Math.floor(($e+Qe)/2)],Ue=Ee[rt+1],Be<=ze){if(rt===We||zeze))throw new ne("Input is not a number.");Qe=rt-1}return 0}ve.prototype.parse=function(Ee,ze,Be,Ue,We){return void 0===We&&(We={}),ze?this.concat(ze,Be,Ue)._parse(Ee,We):this._parse(Ee,We)},ve.prototype._parse=function(Ee,ze){function r(Ee,ze,Be){return"assert"===Be?new ae(ze,[Ee]):"coerce"===Be?new ue(ze,[Ee]):Ee}if(null!==Ee&&"string"!=typeof Ee&&"boolean"!=typeof Ee&&"number"!=typeof Ee||(Ee=["literal",Ee]),Array.isArray(Ee)){if(0===Ee.length)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');var Be=Ee[0];if("string"!=typeof Be)return this.error("Expression name must be a string, but found "+typeof Be+' instead. If you wanted a literal array, use ["literal", [...]].',0),null;var Ue=this.registry[Be];if(Ue){var We=Ue.parse(Ee,this);if(!We)return null;if(this.expectedType){var $e=this.expectedType,Qe=We.type;if("string"!==$e.kind&&"number"!==$e.kind&&"boolean"!==$e.kind&&"object"!==$e.kind&&"array"!==$e.kind||"value"!==Qe.kind)if("color"!==$e.kind&&"formatted"!==$e.kind||"value"!==Qe.kind&&"string"!==Qe.kind){if(this.checkSubtype($e,Qe))return null}else We=r(We,$e,ze.typeAnnotation||"coerce");else We=r(We,$e,ze.typeAnnotation||"assert")}if(!(We instanceof re)&&function t(Ee){if(Ee instanceof me)return t(Ee.boundExpression);if(Ee instanceof ce&&"error"===Ee.name)return!1;if(Ee instanceof he)return!1;var ze=Ee instanceof ue||Ee instanceof ae,Be=!0;return Ee.eachChild((function(Ee){Be=ze?Be&&t(Ee):Be&&Ee instanceof re})),!!Be&&fe(Ee)&&de(Ee,["zoom","heatmap-density","line-progress","accumulated","is-supported-script"])}(We)){var rt=new pe;try{We=new re(We.type,We.evaluate(rt))}catch(Ee){return this.error(Ee.message),null}}return We}return this.error('Unknown expression "'+Be+'". If you wanted a literal array, use ["literal", [...]].',0)}return void 0===Ee?this.error("'undefined' value invalid. Use null instead."):"object"==typeof Ee?this.error('Bare objects invalid. Use ["literal", {...}] instead.'):this.error("Expected an array, but found "+typeof Ee+" instead.")},ve.prototype.concat=function(Ee,ze,Be){var Ue="number"==typeof Ee?this.path.concat(Ee):this.path,We=Be?this.scope.concat(Be):this.scope;return new ve(this.registry,Ue,ze||null,We,this.errors)},ve.prototype.error=function(Ee){for(var ze=[],Be=arguments.length-1;Be-- >0;)ze[Be]=arguments[Be+1];var Ue=""+this.key+ze.map((function(Ee){return"["+Ee+"]"})).join("");this.errors.push(new Kn(Ue,Ee))},ve.prototype.checkSubtype=function(Ee,ze){var Be=Gt(Ee,ze);return Be&&this.error(Be),Be};var xe=function(Ee,ze,Be){this.type=Ee,this.input=ze,this.labels=[],this.outputs=[];for(var Ue=0,We=Be;Ue=Qe)return ze.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',it);var ct=ze.parse(rt,at,We);if(!ct)return null;We=We||ct.type,Ue.push([Qe,ct])}return new xe(We,Be,Ue)},xe.prototype.evaluate=function(Ee){var ze=this.labels,Be=this.outputs;if(1===ze.length)return Be[0].evaluate(Ee);var Ue=this.input.evaluate(Ee);if(Ue<=ze[0])return Be[0].evaluate(Ee);var We=ze.length;return Ue>=ze[We-1]?Be[We-1].evaluate(Ee):Be[ge(ze,Ue)].evaluate(Ee)},xe.prototype.eachChild=function(Ee){Ee(this.input);for(var ze=0,Be=this.outputs;ze0&&Ee.push(this.labels[ze]),Ee.push(this.outputs[ze].serialize());return Ee};var zi=Object.freeze({number:be,color:function(Ee,ze,Be){return new Ht(be(Ee.r,ze.r,Be),be(Ee.g,ze.g,Be),be(Ee.b,ze.b,Be),be(Ee.a,ze.a,Be))},array:function(Ee,ze,Be){return Ee.map((function(Ee,Ue){return be(Ee,ze[Ue],Be)}))}}),ji=6/29,Xi=3*ji*ji,Ma=Math.PI/180,Sa=180/Math.PI;function Me(Ee){return Ee>.008856451679035631?Math.pow(Ee,1/3):Ee/Xi+4/29}function Pe(Ee){return Ee>ji?Ee*Ee*Ee:Xi*(Ee-4/29)}function Te(Ee){return 255*(Ee<=.0031308?12.92*Ee:1.055*Math.pow(Ee,1/2.4)-.055)}function Ve(Ee){return(Ee/=255)<=.04045?Ee/12.92:Math.pow((Ee+.055)/1.055,2.4)}function Fe(Ee){var ze=Ve(Ee.r),Be=Ve(Ee.g),Ue=Ve(Ee.b),We=Me((.4124564*ze+.3575761*Be+.1804375*Ue)/.95047),$e=Me((.2126729*ze+.7151522*Be+.072175*Ue)/1);return{l:116*$e-16,a:500*(We-$e),b:200*($e-Me((.0193339*ze+.119192*Be+.9503041*Ue)/1.08883)),alpha:Ee.a}}function Oe(Ee){var ze=(Ee.l+16)/116,Be=isNaN(Ee.a)?ze:ze+Ee.a/500,Ue=isNaN(Ee.b)?ze:ze-Ee.b/200;return ze=1*Pe(ze),Be=.95047*Pe(Be),Ue=1.08883*Pe(Ue),new Ht(Te(3.2404542*Be-1.5371385*ze-.4985314*Ue),Te(-.969266*Be+1.8760108*ze+.041556*Ue),Te(.0556434*Be-.2040259*ze+1.0572252*Ue),Ee.alpha)}function Le(Ee,ze,Be){var Ue=ze-Ee;return Ee+Be*(Ue>180||Ue<-180?Ue-360*Math.round(Ue/360):Ue)}var La={forward:Fe,reverse:Oe,interpolate:function(Ee,ze,Be){return{l:be(Ee.l,ze.l,Be),a:be(Ee.a,ze.a,Be),b:be(Ee.b,ze.b,Be),alpha:be(Ee.alpha,ze.alpha,Be)}}},Ia={forward:function(Ee){var ze=Fe(Ee),Be=ze.l,Ue=ze.a,We=ze.b,$e=Math.atan2(We,Ue)*Sa;return{h:$e<0?$e+360:$e,c:Math.sqrt(Ue*Ue+We*We),l:Be,alpha:Ee.a}},reverse:function(Ee){var ze=Ee.h*Ma,Be=Ee.c;return Oe({l:Ee.l,a:Math.cos(ze)*Be,b:Math.sin(ze)*Be,alpha:Ee.alpha})},interpolate:function(Ee,ze,Be){return{h:Le(Ee.h,ze.h,Be),c:be(Ee.c,ze.c,Be),l:be(Ee.l,ze.l,Be),alpha:be(Ee.alpha,ze.alpha,Be)}}},Ra=Object.freeze({lab:La,hcl:Ia}),je=function(Ee,ze,Be,Ue,We){this.type=Ee,this.operator=ze,this.interpolation=Be,this.input=Ue,this.labels=[],this.outputs=[];for(var $e=0,Qe=We;$e1})))return ze.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);Ue={name:"cubic-bezier",controlPoints:rt}}if(Ee.length-1<4)return ze.error("Expected at least 4 arguments, but found only "+(Ee.length-1)+".");if((Ee.length-1)%2!=0)return ze.error("Expected an even number of arguments.");if(!(We=ze.parse(We,2,ei)))return null;var it=[],at=null;"interpolate-hcl"===Be||"interpolate-lab"===Be?at=ni:ze.expectedType&&"value"!==ze.expectedType.kind&&(at=ze.expectedType);for(var ct=0;ct<$e.length;ct+=2){var ft=$e[ct],xt=$e[ct+1],kt=ct+3,Lt=ct+4;if("number"!=typeof ft)return ze.error('Input/output pairs for "interpolate" expressions must be defined using literal numeric values (not computed expressions) for the input values.',kt);if(it.length&&it[it.length-1][0]>=ft)return ze.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',kt);var Ut=ze.parse(xt,Lt,at);if(!Ut)return null;at=at||Ut.type,it.push([ft,Ut])}return"number"===at.kind||"color"===at.kind||"array"===at.kind&&"number"===at.itemType.kind&&"number"==typeof at.N?new je(at,Be,Ue,We,it):ze.error("Type "+Zt(at)+" is not interpolatable.")},je.prototype.evaluate=function(Ee){var ze=this.labels,Be=this.outputs;if(1===ze.length)return Be[0].evaluate(Ee);var Ue=this.input.evaluate(Ee);if(Ue<=ze[0])return Be[0].evaluate(Ee);var We=ze.length;if(Ue>=ze[We-1])return Be[We-1].evaluate(Ee);var $e=ge(ze,Ue),Qe=ze[$e],rt=ze[$e+1],it=je.interpolationFactor(this.interpolation,Ue,Qe,rt),at=Be[$e].evaluate(Ee),ct=Be[$e+1].evaluate(Ee);return"interpolate"===this.operator?zi[this.type.kind.toLowerCase()](at,ct,it):"interpolate-hcl"===this.operator?Ia.reverse(Ia.interpolate(Ia.forward(at),Ia.forward(ct),it)):La.reverse(La.interpolate(La.forward(at),La.forward(ct),it))},je.prototype.eachChild=function(Ee){Ee(this.input);for(var ze=0,Be=this.outputs;ze=Be.length)throw new ne("Array index out of bounds: "+ze+" > "+(Be.length-1)+".");if(ze!==Math.floor(ze))throw new ne("Array index must be an integer, but found "+ze+" instead.");return Be[ze]},Ze.prototype.eachChild=function(Ee){Ee(this.index),Ee(this.input)},Ze.prototype.possibleOutputs=function(){return[void 0]},Ze.prototype.serialize=function(){return["at",this.index.serialize(),this.input.serialize()]};var Xe=function(Ee,ze,Be,Ue,We,$e){this.inputType=Ee,this.type=ze,this.input=Be,this.cases=Ue,this.outputs=We,this.otherwise=$e};Xe.parse=function(Ee,ze){if(Ee.length<5)return ze.error("Expected at least 4 arguments, but found only "+(Ee.length-1)+".");if(Ee.length%2!=1)return ze.error("Expected an even number of arguments.");var Be,Ue;ze.expectedType&&"value"!==ze.expectedType.kind&&(Ue=ze.expectedType);for(var We={},$e=[],Qe=2;QeNumber.MAX_SAFE_INTEGER)return at.error("Branch labels must be integers no larger than "+Number.MAX_SAFE_INTEGER+".");if("number"==typeof xt&&Math.floor(xt)!==xt)return at.error("Numeric branch labels must be integer values.");if(Be){if(at.checkSubtype(Be,te(xt)))return null}else Be=te(xt);if(void 0!==We[String(xt)])return at.error("Branch labels must be unique.");We[String(xt)]=$e.length}var kt=ze.parse(it,Qe,Ue);if(!kt)return null;Ue=Ue||kt.type,$e.push(kt)}var Lt=ze.parse(Ee[1],1,ai);if(!Lt)return null;var Ut=ze.parse(Ee[Ee.length-1],Ee.length-1,Ue);return Ut?"value"!==Lt.type.kind&&ze.concat(1).checkSubtype(Be,Lt.type)?null:new Xe(Be,Ue,Lt,We,$e,Ut):null},Xe.prototype.evaluate=function(Ee){var ze=this.input.evaluate(Ee);return(te(ze)===this.inputType&&this.outputs[this.cases[ze]]||this.otherwise).evaluate(Ee)},Xe.prototype.eachChild=function(Ee){Ee(this.input),this.outputs.forEach(Ee),Ee(this.otherwise)},Xe.prototype.possibleOutputs=function(){var Ee;return(Ee=[]).concat.apply(Ee,this.outputs.map((function(Ee){return Ee.possibleOutputs()}))).concat(this.otherwise.possibleOutputs())},Xe.prototype.serialize=function(){for(var Ee=this,ze=["match",this.input.serialize()],Be=[],Ue={},We=0,$e=Object.keys(this.cases).sort();We<$e.length;We+=1){var Qe=$e[We];void 0===(ct=Ue[this.cases[Qe]])?(Ue[this.cases[Qe]]=Be.length,Be.push([this.cases[Qe],[Qe]])):Be[ct][1].push(Qe)}for(var s=function(ze){return"number"===Ee.inputType.kind?Number(ze):ze},rt=0,it=Be;rt",(function(Ee,ze,Be){return ze>Be}),(function(Ee,ze,Be,Ue){return Ue.compare(ze,Be)>0})),Co=Ye("<=",(function(Ee,ze,Be){return ze<=Be}),(function(Ee,ze,Be,Ue){return Ue.compare(ze,Be)<=0})),zo=Ye(">=",(function(Ee,ze,Be){return ze>=Be}),(function(Ee,ze,Be,Ue){return Ue.compare(ze,Be)>=0})),nr=function(Ee,ze,Be,Ue,We){this.type=ti,this.number=Ee,this.locale=ze,this.currency=Be,this.minFractionDigits=Ue,this.maxFractionDigits=We};nr.parse=function(Ee,ze){if(3!==Ee.length)return ze.error("Expected two arguments.");var Be=ze.parse(Ee[1],1,ei);if(!Be)return null;var Ue=Ee[2];if("object"!=typeof Ue||Array.isArray(Ue))return ze.error("NumberFormat options argument must be an object.");var We=null;if(Ue.locale&&!(We=ze.parse(Ue.locale,1,ti)))return null;var $e=null;if(Ue.currency&&!($e=ze.parse(Ue.currency,1,ti)))return null;var Qe=null;if(Ue["min-fraction-digits"]&&!(Qe=ze.parse(Ue["min-fraction-digits"],1,ei)))return null;var rt=null;return Ue["max-fraction-digits"]&&!(rt=ze.parse(Ue["max-fraction-digits"],1,ei))?null:new nr(Be,We,$e,Qe,rt)},nr.prototype.evaluate=function(Ee){return new Intl.NumberFormat(this.locale?this.locale.evaluate(Ee):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(Ee):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(Ee):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(Ee):void 0}).format(this.number.evaluate(Ee))},nr.prototype.eachChild=function(Ee){Ee(this.number),this.locale&&Ee(this.locale),this.currency&&Ee(this.currency),this.minFractionDigits&&Ee(this.minFractionDigits),this.maxFractionDigits&&Ee(this.maxFractionDigits)},nr.prototype.possibleOutputs=function(){return[void 0]},nr.prototype.serialize=function(){var Ee={};return this.locale&&(Ee.locale=this.locale.serialize()),this.currency&&(Ee.currency=this.currency.serialize()),this.minFractionDigits&&(Ee["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(Ee["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),Ee]};var ir=function(Ee){this.type=ei,this.input=Ee};ir.parse=function(Ee,ze){if(2!==Ee.length)return ze.error("Expected 1 argument, but found "+(Ee.length-1)+" instead.");var Be=ze.parse(Ee[1],1);return Be?"array"!==Be.type.kind&&"string"!==Be.type.kind&&"value"!==Be.type.kind?ze.error("Expected argument of type string or array, but found "+Zt(Be.type)+" instead."):new ir(Be):null},ir.prototype.evaluate=function(Ee){var ze=this.input.evaluate(Ee);if("string"==typeof ze)return ze.length;if(Array.isArray(ze))return ze.length;throw new ne("Expected value to be of type string or array, but found "+Zt(te(ze))+" instead.")},ir.prototype.eachChild=function(Ee){Ee(this.input)},ir.prototype.possibleOutputs=function(){return[void 0]},ir.prototype.serialize=function(){var Ee=["length"];return this.eachChild((function(ze){Ee.push(ze.serialize())})),Ee};var Bo={"==":Na,"!=":Ua,">":Ka,"<":qa,">=":zo,"<=":Co,array:ae,at:Ze,boolean:ae,case:Ge,coalesce:Ne,collator:he,format:oe,interpolate:je,"interpolate-hcl":je,"interpolate-lab":je,length:ir,let:Ke,literal:re,match:Xe,number:ae,"number-format":nr,object:ae,step:xe,string:ae,"to-boolean":ue,"to-color":ue,"to-number":ue,"to-string":ue,var:me};function or(Ee,ze){var Be=ze[0],Ue=ze[1],We=ze[2],$e=ze[3];Be=Be.evaluate(Ee),Ue=Ue.evaluate(Ee),We=We.evaluate(Ee);var Qe=$e?$e.evaluate(Ee):1,rt=Qt(Be,Ue,We,Qe);if(rt)throw new ne(rt);return new Ht(Be/255*Qe,Ue/255*Qe,We/255*Qe,Qe)}function sr(Ee,ze){return Ee in ze}function ur(Ee,ze){var Be=ze[Ee];return void 0===Be?null:Be}function lr(Ee){return{type:Ee}}function pr(Ee){return{result:"success",value:Ee}}function cr(Ee){return{result:"error",value:Ee}}function hr(Ee){return"data-driven"===Ee["property-type"]||"cross-faded-data-driven"===Ee["property-type"]}function fr(Ee){return!!Ee.expression&&Ee.expression.parameters.indexOf("zoom")>-1}function yr(Ee){return!!Ee.expression&&Ee.expression.interpolated}function dr(Ee){return Ee instanceof Number?"number":Ee instanceof String?"string":Ee instanceof Boolean?"boolean":Array.isArray(Ee)?"array":null===Ee?"null":typeof Ee}function mr(Ee){return"object"==typeof Ee&&null!==Ee&&!Array.isArray(Ee)}function vr(Ee){return Ee}function gr(Ee,ze,Be){return void 0!==Ee?Ee:void 0!==ze?ze:void 0!==Be?Be:void 0}function xr(Ee,ze,Be,Ue,We){return gr(typeof Be===We?Ue[Be]:void 0,Ee.default,ze.default)}function br(Ee,ze,Be){if("number"!==dr(Be))return gr(Ee.default,ze.default);var Ue=Ee.stops.length;if(1===Ue)return Ee.stops[0][1];if(Be<=Ee.stops[0][0])return Ee.stops[0][1];if(Be>=Ee.stops[Ue-1][0])return Ee.stops[Ue-1][1];var We=ge(Ee.stops.map((function(Ee){return Ee[0]})),Be);return Ee.stops[We][1]}function _r(Ee,ze,Be){var Ue=void 0!==Ee.base?Ee.base:1;if("number"!==dr(Be))return gr(Ee.default,ze.default);var We=Ee.stops.length;if(1===We)return Ee.stops[0][1];if(Be<=Ee.stops[0][0])return Ee.stops[0][1];if(Be>=Ee.stops[We-1][0])return Ee.stops[We-1][1];var $e=ge(Ee.stops.map((function(Ee){return Ee[0]})),Be),Qe=function(Ee,ze,Be,Ue){var We=Ue-Be,$e=Ee-Be;return 0===We?0:1===ze?$e/We:(Math.pow(ze,$e)-1)/(Math.pow(ze,We)-1)}(Be,Ue,Ee.stops[$e][0],Ee.stops[$e+1][0]),rt=Ee.stops[$e][1],it=Ee.stops[$e+1][1],at=zi[ze.type]||vr;if(Ee.colorSpace&&"rgb"!==Ee.colorSpace){var ct=Ra[Ee.colorSpace];at=function(Ee,ze){return ct.reverse(ct.interpolate(ct.forward(Ee),ct.forward(ze),Qe))}}return"function"==typeof rt.evaluate?{evaluate:function(){for(var Ee=[],ze=arguments.length;ze--;)Ee[ze]=arguments[ze];var Be=rt.evaluate.apply(void 0,Ee),Ue=it.evaluate.apply(void 0,Ee);if(void 0!==Be&&void 0!==Ue)return at(Be,Ue,Qe)}}:at(rt,it,Qe)}function wr(Ee,ze,Be){return"color"===ze.type?Be=Ht.parse(Be):"formatted"===ze.type?Be=Wt.fromString(Be.toString()):dr(Be)===ze.type||"enum"===ze.type&&ze.values[Be]||(Be=void 0),gr(Be,Ee.default,ze.default)}ce.register(Bo,{error:[{kind:"error"},[ti],function(Ee,ze){var Be=ze[0];throw new ne(Be.evaluate(Ee))}],typeof:[ti,[ai],function(Ee,ze){return Zt(te(ze[0].evaluate(Ee)))}],"to-rgba":[Kt(ei,4),[ni],function(Ee,ze){return ze[0].evaluate(Ee).toArray()}],rgb:[ni,[ei,ei,ei],or],rgba:[ni,[ei,ei,ei,ei],or],has:{type:ri,overloads:[[[ti],function(Ee,ze){return sr(ze[0].evaluate(Ee),Ee.properties())}],[[ti,ii],function(Ee,ze){var Be=ze[0],Ue=ze[1];return sr(Be.evaluate(Ee),Ue.evaluate(Ee))}]]},get:{type:ai,overloads:[[[ti],function(Ee,ze){return ur(ze[0].evaluate(Ee),Ee.properties())}],[[ti,ii],function(Ee,ze){var Be=ze[0],Ue=ze[1];return ur(Be.evaluate(Ee),Ue.evaluate(Ee))}]]},"feature-state":[ai,[ti],function(Ee,ze){return ur(ze[0].evaluate(Ee),Ee.featureState||{})}],properties:[ii,[],function(Ee){return Ee.properties()}],"geometry-type":[ti,[],function(Ee){return Ee.geometryType()}],id:[ai,[],function(Ee){return Ee.id()}],zoom:[ei,[],function(Ee){return Ee.globals.zoom}],"heatmap-density":[ei,[],function(Ee){return Ee.globals.heatmapDensity||0}],"line-progress":[ei,[],function(Ee){return Ee.globals.lineProgress||0}],accumulated:[ai,[],function(Ee){return void 0===Ee.globals.accumulated?null:Ee.globals.accumulated}],"+":[ei,lr(ei),function(Ee,ze){for(var Be=0,Ue=0,We=ze;Ue":[ri,[ti,ai],function(Ee,ze){var Be=ze[0],Ue=ze[1],We=Ee.properties()[Be.value],$e=Ue.value;return typeof We==typeof $e&&We>$e}],"filter-id->":[ri,[ai],function(Ee,ze){var Be=ze[0],Ue=Ee.id(),We=Be.value;return typeof Ue==typeof We&&Ue>We}],"filter-<=":[ri,[ti,ai],function(Ee,ze){var Be=ze[0],Ue=ze[1],We=Ee.properties()[Be.value],$e=Ue.value;return typeof We==typeof $e&&We<=$e}],"filter-id-<=":[ri,[ai],function(Ee,ze){var Be=ze[0],Ue=Ee.id(),We=Be.value;return typeof Ue==typeof We&&Ue<=We}],"filter->=":[ri,[ti,ai],function(Ee,ze){var Be=ze[0],Ue=ze[1],We=Ee.properties()[Be.value],$e=Ue.value;return typeof We==typeof $e&&We>=$e}],"filter-id->=":[ri,[ai],function(Ee,ze){var Be=ze[0],Ue=Ee.id(),We=Be.value;return typeof Ue==typeof We&&Ue>=We}],"filter-has":[ri,[ai],function(Ee,ze){return ze[0].value in Ee.properties()}],"filter-has-id":[ri,[],function(Ee){return null!==Ee.id()}],"filter-type-in":[ri,[Kt(ti)],function(Ee,ze){return ze[0].value.indexOf(Ee.geometryType())>=0}],"filter-id-in":[ri,[Kt(ai)],function(Ee,ze){return ze[0].value.indexOf(Ee.id())>=0}],"filter-in-small":[ri,[ti,Kt(ai)],function(Ee,ze){var Be=ze[0];return ze[1].value.indexOf(Ee.properties()[Be.value])>=0}],"filter-in-large":[ri,[ti,Kt(ai)],function(Ee,ze){var Be=ze[0],Ue=ze[1];return function(Ee,ze,Be,Ue){for(;Be<=Ue;){var We=Be+Ue>>1;if(ze[We]===Ee)return!0;ze[We]>Ee?Ue=We-1:Be=We+1}return!1}(Ee.properties()[Be.value],Ue.value,0,Ue.value.length-1)}],all:{type:ri,overloads:[[[ri,ri],function(Ee,ze){var Be=ze[0],Ue=ze[1];return Be.evaluate(Ee)&&Ue.evaluate(Ee)}],[lr(ri),function(Ee,ze){for(var Be=0,Ue=ze;Be0&&"string"==typeof Ee[0]&&Ee[0]in Bo}function Sr(Ee,ze){var Be=new ve(Bo,[],ze?function(Ee){var ze={color:ni,string:ti,number:ei,enum:ti,boolean:ri,formatted:si};return"array"===Ee.type?Kt(ze[Ee.value]||ai,Ee.length):ze[Ee.type]}(ze):void 0),Ue=Be.parse(Ee,void 0,void 0,void 0,ze&&"string"===ze.type?{typeAnnotation:"coerce"}:void 0);return Ue?pr(new Ar(Ue,ze)):cr(Be.errors)}Ar.prototype.evaluateWithoutErrorHandling=function(Ee,ze,Be,Ue){return this._evaluator.globals=Ee,this._evaluator.feature=ze,this._evaluator.featureState=Be,this._evaluator.formattedSection=Ue,this.expression.evaluate(this._evaluator)},Ar.prototype.evaluate=function(Ee,ze,Be,Ue){this._evaluator.globals=Ee,this._evaluator.feature=ze||null,this._evaluator.featureState=Be||null,this._evaluator.formattedSection=Ue||null;try{var We=this.expression.evaluate(this._evaluator);if(null==We)return this._defaultValue;if(this._enumValues&&!(We in this._enumValues))throw new ne("Expected value to be one of "+Object.keys(this._enumValues).map((function(Ee){return JSON.stringify(Ee)})).join(", ")+", but found "+JSON.stringify(We)+" instead.");return We}catch(Ee){return this._warningHistory[Ee.message]||(this._warningHistory[Ee.message]=!0,"undefined"!=typeof console&&console.warn(Ee.message)),this._defaultValue}};var zr=function(Ee,ze){this.kind=Ee,this._styleExpression=ze,this.isStateDependent="constant"!==Ee&&!ye(ze.expression)};zr.prototype.evaluateWithoutErrorHandling=function(Ee,ze,Be,Ue){return this._styleExpression.evaluateWithoutErrorHandling(Ee,ze,Be,Ue)},zr.prototype.evaluate=function(Ee,ze,Be,Ue){return this._styleExpression.evaluate(Ee,ze,Be,Ue)};var Ir=function(Ee,ze,Be,Ue){this.kind=Ee,this.zoomStops=Be,this._styleExpression=ze,this.isStateDependent="camera"!==Ee&&!ye(ze.expression),this.interpolationType=Ue};function Cr(Ee,ze){if("error"===(Ee=Sr(Ee,ze)).result)return Ee;var Be=Ee.value.expression,Ue=fe(Be);if(!Ue&&!hr(ze))return cr([new Kn("","data expressions not supported")]);var We=de(Be,["zoom"]);if(!We&&!fr(ze))return cr([new Kn("","zoom expressions not supported")]);var $e=function t(Ee){var ze=null;if(Ee instanceof Ke)ze=t(Ee.result);else if(Ee instanceof Ne)for(var Be=0,Ue=Ee.args;BeUe.maximum?[new It(ze,Be,Be+" is greater than the maximum value "+Ue.maximum)]:[]}function Tr(Ee){var ze,Be,Ue,We=Ee.valueSpec,$e=Mt(Ee.value.type),Qe={},rt="categorical"!==$e&&void 0===Ee.value.property,it=!rt,at="array"===dr(Ee.value.stops)&&"array"===dr(Ee.value.stops[0])&&"object"===dr(Ee.value.stops[0][0]),ct=Er({key:Ee.key,value:Ee.value,valueSpec:Ee.styleSpec.function,style:Ee.style,styleSpec:Ee.styleSpec,objectElementValidators:{stops:function(Ee){if("identity"===$e)return[new It(Ee.key,Ee.value,'identity function may not have a "stops" property')];var ze=[],Be=Ee.value;return ze=ze.concat(Mr({key:Ee.key,value:Be,valueSpec:Ee.valueSpec,style:Ee.style,styleSpec:Ee.styleSpec,arrayElementValidator:c})),"array"===dr(Be)&&0===Be.length&&ze.push(new It(Ee.key,Be,"array must have at least one stop")),ze},default:function(Ee){return tn({key:Ee.key,value:Ee.value,valueSpec:We,style:Ee.style,styleSpec:Ee.styleSpec})}}});return"identity"===$e&&rt&&ct.push(new It(Ee.key,Ee.value,'missing required property "property"')),"identity"===$e||Ee.value.stops||ct.push(new It(Ee.key,Ee.value,'missing required property "stops"')),"exponential"===$e&&Ee.valueSpec.expression&&!yr(Ee.valueSpec)&&ct.push(new It(Ee.key,Ee.value,"exponential functions not supported")),Ee.styleSpec.$version>=8&&(it&&!hr(Ee.valueSpec)?ct.push(new It(Ee.key,Ee.value,"property functions not supported")):rt&&!fr(Ee.valueSpec)&&ct.push(new It(Ee.key,Ee.value,"zoom functions not supported"))),"categorical"!==$e&&!at||void 0!==Ee.value.property||ct.push(new It(Ee.key,Ee.value,'"property" property is required')),ct;function c(Ee){var ze=[],$e=Ee.value,rt=Ee.key;if("array"!==dr($e))return[new It(rt,$e,"array expected, "+dr($e)+" found")];if(2!==$e.length)return[new It(rt,$e,"array length 2 expected, length "+$e.length+" found")];if(at){if("object"!==dr($e[0]))return[new It(rt,$e,"object expected, "+dr($e[0])+" found")];if(void 0===$e[0].zoom)return[new It(rt,$e,"object stop key must have zoom")];if(void 0===$e[0].value)return[new It(rt,$e,"object stop key must have value")];if(Ue&&Ue>Mt($e[0].zoom))return[new It(rt,$e[0].zoom,"stop zoom values must appear in ascending order")];Mt($e[0].zoom)!==Ue&&(Ue=Mt($e[0].zoom),Be=void 0,Qe={}),ze=ze.concat(Er({key:rt+"[0]",value:$e[0],valueSpec:{zoom:{}},style:Ee.style,styleSpec:Ee.styleSpec,objectElementValidators:{zoom:Pr,value:h}}))}else ze=ze.concat(h({key:rt+"[0]",value:$e[0],valueSpec:{},style:Ee.style,styleSpec:Ee.styleSpec},$e));return kr(Pt($e[1]))?ze.concat([new It(rt+"[1]",$e[1],"expressions are not allowed in function stops.")]):ze.concat(tn({key:rt+"[1]",value:$e[1],valueSpec:We,style:Ee.style,styleSpec:Ee.styleSpec}))}function h(Ee,Ue){var rt=dr(Ee.value),it=Mt(Ee.value),at=null!==Ee.value?Ee.value:Ue;if(ze){if(rt!==ze)return[new It(Ee.key,at,rt+" stop domain type must match previous stop domain type "+ze)]}else ze=rt;if("number"!==rt&&"string"!==rt&&"boolean"!==rt)return[new It(Ee.key,at,"stop domain value must be a number, string, or boolean")];if("number"!==rt&&"categorical"!==$e){var ct="number expected, "+rt+" found";return hr(We)&&void 0===$e&&(ct+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new It(Ee.key,at,ct)]}return"categorical"!==$e||"number"!==rt||isFinite(it)&&Math.floor(it)===it?"categorical"!==$e&&"number"===rt&&void 0!==Be&&it=2&&"$id"!==Ee[1]&&"$type"!==Ee[1];case"in":case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return 3!==Ee.length||Array.isArray(Ee[1])||Array.isArray(Ee[2]);case"any":case"all":for(var ze=0,Be=Ee.slice(1);zeze?1:0}function Rr(Ee){if(!Ee)return!0;var ze,Be=Ee[0];return Ee.length<=1?"any"!==Be:"=="===Be?jr(Ee[1],Ee[2],"=="):"!="===Be?Kr(jr(Ee[1],Ee[2],"==")):"<"===Be||">"===Be||"<="===Be||">="===Be?jr(Ee[1],Ee[2],Be):"any"===Be?(ze=Ee.slice(1),["any"].concat(ze.map(Rr))):"all"===Be?["all"].concat(Ee.slice(1).map(Rr)):"none"===Be?["all"].concat(Ee.slice(1).map(Rr).map(Kr)):"in"===Be?qr(Ee[1],Ee.slice(2)):"!in"===Be?Kr(qr(Ee[1],Ee.slice(2))):"has"===Be?Nr(Ee[1]):"!has"!==Be||Kr(Nr(Ee[1]))}function jr(Ee,ze,Be){switch(Ee){case"$type":return["filter-type-"+Be,ze];case"$id":return["filter-id-"+Be,ze];default:return["filter-"+Be,Ee,ze]}}function qr(Ee,ze){if(0===ze.length)return!1;switch(Ee){case"$type":return["filter-type-in",["literal",ze]];case"$id":return["filter-id-in",["literal",ze]];default:return ze.length>200&&!ze.some((function(Ee){return typeof Ee!=typeof ze[0]}))?["filter-in-large",Ee,["literal",ze.sort(Ur)]]:["filter-in-small",Ee,["literal",ze]]}}function Nr(Ee){switch(Ee){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",Ee]}}function Kr(Ee){return["!",Ee]}function Zr(Ee){return Or(Pt(Ee.value))?Vr(Bt({},Ee,{expressionContext:"filter",valueSpec:{value:"boolean"}})):function t(Ee){var ze=Ee.value,Be=Ee.key;if("array"!==dr(ze))return[new It(Be,ze,"array expected, "+dr(ze)+" found")];var Ue,We=Ee.styleSpec,$e=[];if(ze.length<1)return[new It(Be,ze,"filter array must have at least 1 element")];switch($e=$e.concat(Fr({key:Be+"[0]",value:ze[0],valueSpec:We.filter_operator,style:Ee.style,styleSpec:Ee.styleSpec})),Mt(ze[0])){case"<":case"<=":case">":case">=":ze.length>=2&&"$type"===Mt(ze[1])&&$e.push(new It(Be,ze,'"$type" cannot be use with operator "'+ze[0]+'"'));case"==":case"!=":3!==ze.length&&$e.push(new It(Be,ze,'filter array for operator "'+ze[0]+'" must have 3 elements'));case"in":case"!in":ze.length>=2&&"string"!==(Ue=dr(ze[1]))&&$e.push(new It(Be+"[1]",ze[1],"string expected, "+Ue+" found"));for(var Qe=2;Qe=ct[kt+0]&&Ue>=ct[kt+1])?(Qe[xt]=!0,$e.push(at[xt])):Qe[xt]=!1}}},fn.prototype._forEachCell=function(Ee,ze,Be,Ue,We,$e,Qe,rt){for(var it=this._convertToCellCoord(Ee),at=this._convertToCellCoord(ze),ct=this._convertToCellCoord(Be),ft=this._convertToCellCoord(Ue),xt=it;xt<=ct;xt++)for(var kt=at;kt<=ft;kt++){var Lt=this.d*kt+xt;if((!rt||rt(this._convertFromCellCoord(xt),this._convertFromCellCoord(kt),this._convertFromCellCoord(xt+1),this._convertFromCellCoord(kt+1)))&&We.call(this,Ee,ze,Be,Ue,Lt,$e,Qe,rt))return}},fn.prototype._convertFromCellCoord=function(Ee){return(Ee-this.padding)/this.scale},fn.prototype._convertToCellCoord=function(Ee){return Math.max(0,Math.min(this.d-1,Math.floor(Ee*this.scale)+this.padding))},fn.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var Ee=this.cells,ze=3+this.cells.length+1+1,Be=0,Ue=0;Ue=0)){var ft=Ee[ct];at[ct]=rs[it].shallow.indexOf(ct)>=0?ft:gn(ft,ze)}Ee instanceof Error&&(at.message=Ee.message)}if(at.$name)throw new Error("$name property is reserved for worker serialization logic.");return"Object"!==it&&(at.$name=it),at}throw new Error("can't serialize object of type "+typeof Ee)}function xn(Ee){if(null==Ee||"boolean"==typeof Ee||"number"==typeof Ee||"string"==typeof Ee||Ee instanceof Boolean||Ee instanceof Number||Ee instanceof String||Ee instanceof Date||Ee instanceof RegExp||Ee instanceof ArrayBuffer||ArrayBuffer.isView(Ee)||Ee instanceof ts)return Ee;if(Array.isArray(Ee))return Ee.map(xn);if("object"==typeof Ee){var ze=Ee.$name||"Object",Be=rs[ze].klass;if(!Be)throw new Error("can't deserialize unregistered class "+ze);if(Be.deserialize)return Be.deserialize(Ee);for(var Ue=Object.create(Be.prototype),We=0,$e=Object.keys(Ee);We<$e.length;We+=1){var Qe=$e[We];if("$name"!==Qe){var rt=Ee[Qe];Ue[Qe]=rs[ze].shallow.indexOf(Qe)>=0?rt:xn(rt)}}return Ue}throw new Error("can't deserialize object of type "+typeof Ee)}var bn=function(){this.first=!0};bn.prototype.update=function(Ee,ze){var Be=Math.floor(Ee);return this.first?(this.first=!1,this.lastIntegerZoom=Be,this.lastIntegerZoomTime=0,this.lastZoom=Ee,this.lastFloorZoom=Be,!0):(this.lastFloorZoom>Be?(this.lastIntegerZoom=Be+1,this.lastIntegerZoomTime=ze):this.lastFloorZoom=128&&Ee<=255},Arabic:function(Ee){return Ee>=1536&&Ee<=1791},"Arabic Supplement":function(Ee){return Ee>=1872&&Ee<=1919},"Arabic Extended-A":function(Ee){return Ee>=2208&&Ee<=2303},"Hangul Jamo":function(Ee){return Ee>=4352&&Ee<=4607},"Unified Canadian Aboriginal Syllabics":function(Ee){return Ee>=5120&&Ee<=5759},Khmer:function(Ee){return Ee>=6016&&Ee<=6143},"Unified Canadian Aboriginal Syllabics Extended":function(Ee){return Ee>=6320&&Ee<=6399},"General Punctuation":function(Ee){return Ee>=8192&&Ee<=8303},"Letterlike Symbols":function(Ee){return Ee>=8448&&Ee<=8527},"Number Forms":function(Ee){return Ee>=8528&&Ee<=8591},"Miscellaneous Technical":function(Ee){return Ee>=8960&&Ee<=9215},"Control Pictures":function(Ee){return Ee>=9216&&Ee<=9279},"Optical Character Recognition":function(Ee){return Ee>=9280&&Ee<=9311},"Enclosed Alphanumerics":function(Ee){return Ee>=9312&&Ee<=9471},"Geometric Shapes":function(Ee){return Ee>=9632&&Ee<=9727},"Miscellaneous Symbols":function(Ee){return Ee>=9728&&Ee<=9983},"Miscellaneous Symbols and Arrows":function(Ee){return Ee>=11008&&Ee<=11263},"CJK Radicals Supplement":function(Ee){return Ee>=11904&&Ee<=12031},"Kangxi Radicals":function(Ee){return Ee>=12032&&Ee<=12255},"Ideographic Description Characters":function(Ee){return Ee>=12272&&Ee<=12287},"CJK Symbols and Punctuation":function(Ee){return Ee>=12288&&Ee<=12351},Hiragana:function(Ee){return Ee>=12352&&Ee<=12447},Katakana:function(Ee){return Ee>=12448&&Ee<=12543},Bopomofo:function(Ee){return Ee>=12544&&Ee<=12591},"Hangul Compatibility Jamo":function(Ee){return Ee>=12592&&Ee<=12687},Kanbun:function(Ee){return Ee>=12688&&Ee<=12703},"Bopomofo Extended":function(Ee){return Ee>=12704&&Ee<=12735},"CJK Strokes":function(Ee){return Ee>=12736&&Ee<=12783},"Katakana Phonetic Extensions":function(Ee){return Ee>=12784&&Ee<=12799},"Enclosed CJK Letters and Months":function(Ee){return Ee>=12800&&Ee<=13055},"CJK Compatibility":function(Ee){return Ee>=13056&&Ee<=13311},"CJK Unified Ideographs Extension A":function(Ee){return Ee>=13312&&Ee<=19903},"Yijing Hexagram Symbols":function(Ee){return Ee>=19904&&Ee<=19967},"CJK Unified Ideographs":function(Ee){return Ee>=19968&&Ee<=40959},"Yi Syllables":function(Ee){return Ee>=40960&&Ee<=42127},"Yi Radicals":function(Ee){return Ee>=42128&&Ee<=42191},"Hangul Jamo Extended-A":function(Ee){return Ee>=43360&&Ee<=43391},"Hangul Syllables":function(Ee){return Ee>=44032&&Ee<=55215},"Hangul Jamo Extended-B":function(Ee){return Ee>=55216&&Ee<=55295},"Private Use Area":function(Ee){return Ee>=57344&&Ee<=63743},"CJK Compatibility Ideographs":function(Ee){return Ee>=63744&&Ee<=64255},"Arabic Presentation Forms-A":function(Ee){return Ee>=64336&&Ee<=65023},"Vertical Forms":function(Ee){return Ee>=65040&&Ee<=65055},"CJK Compatibility Forms":function(Ee){return Ee>=65072&&Ee<=65103},"Small Form Variants":function(Ee){return Ee>=65104&&Ee<=65135},"Arabic Presentation Forms-B":function(Ee){return Ee>=65136&&Ee<=65279},"Halfwidth and Fullwidth Forms":function(Ee){return Ee>=65280&&Ee<=65519}};function wn(Ee){for(var ze=0,Be=Ee;ze=65097&&Ee<=65103)||as["CJK Compatibility Ideographs"](Ee)||as["CJK Compatibility"](Ee)||as["CJK Radicals Supplement"](Ee)||as["CJK Strokes"](Ee)||!(!as["CJK Symbols and Punctuation"](Ee)||Ee>=12296&&Ee<=12305||Ee>=12308&&Ee<=12319||12336===Ee)||as["CJK Unified Ideographs Extension A"](Ee)||as["CJK Unified Ideographs"](Ee)||as["Enclosed CJK Letters and Months"](Ee)||as["Hangul Compatibility Jamo"](Ee)||as["Hangul Jamo Extended-A"](Ee)||as["Hangul Jamo Extended-B"](Ee)||as["Hangul Jamo"](Ee)||as["Hangul Syllables"](Ee)||as.Hiragana(Ee)||as["Ideographic Description Characters"](Ee)||as.Kanbun(Ee)||as["Kangxi Radicals"](Ee)||as["Katakana Phonetic Extensions"](Ee)||as.Katakana(Ee)&&12540!==Ee||!(!as["Halfwidth and Fullwidth Forms"](Ee)||65288===Ee||65289===Ee||65293===Ee||Ee>=65306&&Ee<=65310||65339===Ee||65341===Ee||65343===Ee||Ee>=65371&&Ee<=65503||65507===Ee||Ee>=65512&&Ee<=65519)||!(!as["Small Form Variants"](Ee)||Ee>=65112&&Ee<=65118||Ee>=65123&&Ee<=65126)||as["Unified Canadian Aboriginal Syllabics"](Ee)||as["Unified Canadian Aboriginal Syllabics Extended"](Ee)||as["Vertical Forms"](Ee)||as["Yijing Hexagram Symbols"](Ee)||as["Yi Syllables"](Ee)||as["Yi Radicals"](Ee))))}function Sn(Ee){return!(kn(Ee)||function(Ee){return!!(as["Latin-1 Supplement"](Ee)&&(167===Ee||169===Ee||174===Ee||177===Ee||188===Ee||189===Ee||190===Ee||215===Ee||247===Ee)||as["General Punctuation"](Ee)&&(8214===Ee||8224===Ee||8225===Ee||8240===Ee||8241===Ee||8251===Ee||8252===Ee||8258===Ee||8263===Ee||8264===Ee||8265===Ee||8273===Ee)||as["Letterlike Symbols"](Ee)||as["Number Forms"](Ee)||as["Miscellaneous Technical"](Ee)&&(Ee>=8960&&Ee<=8967||Ee>=8972&&Ee<=8991||Ee>=8996&&Ee<=9e3||9003===Ee||Ee>=9085&&Ee<=9114||Ee>=9150&&Ee<=9165||9167===Ee||Ee>=9169&&Ee<=9179||Ee>=9186&&Ee<=9215)||as["Control Pictures"](Ee)&&9251!==Ee||as["Optical Character Recognition"](Ee)||as["Enclosed Alphanumerics"](Ee)||as["Geometric Shapes"](Ee)||as["Miscellaneous Symbols"](Ee)&&!(Ee>=9754&&Ee<=9759)||as["Miscellaneous Symbols and Arrows"](Ee)&&(Ee>=11026&&Ee<=11055||Ee>=11088&&Ee<=11097||Ee>=11192&&Ee<=11243)||as["CJK Symbols and Punctuation"](Ee)||as.Katakana(Ee)||as["Private Use Area"](Ee)||as["CJK Compatibility Forms"](Ee)||as["Small Form Variants"](Ee)||as["Halfwidth and Fullwidth Forms"](Ee)||8734===Ee||8756===Ee||8757===Ee||Ee>=9984&&Ee<=10087||Ee>=10102&&Ee<=10131||65532===Ee||65533===Ee)}(Ee))}function zn(Ee,ze){return!(!ze&&(Ee>=1424&&Ee<=2303||as["Arabic Presentation Forms-A"](Ee)||as["Arabic Presentation Forms-B"](Ee))||Ee>=2304&&Ee<=3583||Ee>=3840&&Ee<=4255||as.Khmer(Ee))}var os,ss=!1,ls=null,cs=!1,us=new St,fs={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:function(){return cs||null!=fs.applyArabicShaping}},Tn=function(Ee,ze){this.zoom=Ee,ze?(this.now=ze.now,this.fadeDuration=ze.fadeDuration,this.zoomHistory=ze.zoomHistory,this.transition=ze.transition):(this.now=0,this.fadeDuration=0,this.zoomHistory=new bn,this.transition={})};Tn.prototype.isSupportedScript=function(Ee){return function(Ee,ze){for(var Be=0,Ue=Ee;Bethis.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:ze+(1-ze)*Be}:{fromScale:.5,toScale:1,t:1-(1-Be)*ze}};var Vn=function(Ee,ze){this.property=Ee,this.value=ze,this.expression=function(Ee,ze){if(mr(Ee))return new Br(Ee,ze);if(kr(Ee)){var Be=Cr(Ee,ze);if("error"===Be.result)throw new Error(Be.value.map((function(Ee){return Ee.key+": "+Ee.message})).join(", "));return Be.value}var Ue=Ee;return"string"==typeof Ee&&"color"===ze.type&&(Ue=Ht.parse(Ee)),{kind:"constant",evaluate:function(){return Ue}}}(void 0===ze?Ee.specification.default:ze,Ee.specification)};Vn.prototype.isDataDriven=function(){return"source"===this.expression.kind||"composite"===this.expression.kind},Vn.prototype.possiblyEvaluate=function(Ee){return this.property.possiblyEvaluate(this,Ee)};var Fn=function(Ee){this.property=Ee,this.value=new Vn(Ee,void 0)};Fn.prototype.transitioned=function(Ee,ze){return new Ln(this.property,this.value,ze,c({},Ee.transition,this.transition),Ee.now)},Fn.prototype.untransitioned=function(){return new Ln(this.property,this.value,null,{},0)};var On=function(Ee){this._properties=Ee,this._values=Object.create(Ee.defaultTransitionablePropertyValues)};On.prototype.getValue=function(Ee){return b(this._values[Ee].value.value)},On.prototype.setValue=function(Ee,ze){this._values.hasOwnProperty(Ee)||(this._values[Ee]=new Fn(this._values[Ee].property)),this._values[Ee].value=new Vn(this._values[Ee].property,null===ze?void 0:b(ze))},On.prototype.getTransition=function(Ee){return b(this._values[Ee].transition)},On.prototype.setTransition=function(Ee,ze){this._values.hasOwnProperty(Ee)||(this._values[Ee]=new Fn(this._values[Ee].property)),this._values[Ee].transition=b(ze)||void 0},On.prototype.serialize=function(){for(var Ee={},ze=0,Be=Object.keys(this._values);zethis.end)return this.prior=null,Be;if(this.value.isDataDriven())return this.prior=null,Be;if(ze=1)return 1;var ze=Ee*Ee,Be=ze*Ee;return 4*(Ee<.5?Be:3*(Ee-ze)+Be-.75)}(We))}return Be};var Dn=function(Ee){this._properties=Ee,this._values=Object.create(Ee.defaultTransitioningPropertyValues)};Dn.prototype.possiblyEvaluate=function(Ee){for(var ze=new jn(this._properties),Be=0,Ue=Object.keys(this._values);BeUe.zoomHistory.lastIntegerZoom?{from:Ee,to:ze}:{from:Be,to:ze}},e.prototype.interpolate=function(Ee){return Ee},e}(Nn),Zn=function(Ee){this.specification=Ee};Zn.prototype.possiblyEvaluate=function(Ee,ze){if(void 0!==Ee.value){if("constant"===Ee.expression.kind){var Be=Ee.expression.evaluate(ze);return this._calculate(Be,Be,Be,ze)}return this._calculate(Ee.expression.evaluate(new Tn(Math.floor(ze.zoom-1),ze)),Ee.expression.evaluate(new Tn(Math.floor(ze.zoom),ze)),Ee.expression.evaluate(new Tn(Math.floor(ze.zoom+1),ze)),ze)}},Zn.prototype._calculate=function(Ee,ze,Be,Ue){return Ue.zoom>Ue.zoomHistory.lastIntegerZoom?{from:Ee,to:ze}:{from:Be,to:ze}},Zn.prototype.interpolate=function(Ee){return Ee};var Xn=function(Ee){this.specification=Ee};Xn.prototype.possiblyEvaluate=function(Ee,ze){return!!Ee.expression.evaluate(ze)},Xn.prototype.interpolate=function(){return!1};var Gn=function(Ee){for(var ze in this.properties=Ee,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[],Ee){var Be=Ee[ze];Be.specification.overridable&&this.overridableProperties.push(ze);var Ue=this.defaultPropertyValues[ze]=new Vn(Be,void 0),We=this.defaultTransitionablePropertyValues[ze]=new Fn(Be);this.defaultTransitioningPropertyValues[ze]=We.untransitioned(),this.defaultPossiblyEvaluatedValues[ze]=Ue.possiblyEvaluate({})}};mn("DataDrivenProperty",Nn),mn("DataConstantProperty",qn),mn("CrossFadedDataDrivenProperty",hs),mn("CrossFadedProperty",Zn),mn("ColorRampProperty",Xn);var ms=function(Ee){function e(ze,Be){if(Ee.call(this),this.id=ze.id,this.type=ze.type,this._featureFilter=function(){return!0},"custom"!==ze.type&&(ze=ze,this.metadata=ze.metadata,this.minzoom=ze.minzoom,this.maxzoom=ze.maxzoom,"background"!==ze.type&&(this.source=ze.source,this.sourceLayer=ze["source-layer"],this.filter=ze.filter),Be.layout&&(this._unevaluatedLayout=new Un(Be.layout)),Be.paint)){for(var Ue in this._transitionablePaint=new On(Be.paint),ze.paint)this.setPaintProperty(Ue,ze.paint[Ue],{validate:!1});for(var We in ze.layout)this.setLayoutProperty(We,ze.layout[We],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned()}}return Ee&&(e.__proto__=Ee),e.prototype=Object.create(Ee&&Ee.prototype),e.prototype.constructor=e,e.prototype.getCrossfadeParameters=function(){return this._crossfadeParameters},e.prototype.getLayoutProperty=function(Ee){return"visibility"===Ee?this.visibility:this._unevaluatedLayout.getValue(Ee)},e.prototype.setLayoutProperty=function(Ee,ze,Be){if(void 0===Be&&(Be={}),null!=ze){var Ue="layers."+this.id+".layout."+Ee;if(this._validate($o,Ue,Ee,ze,Be))return}"visibility"!==Ee?this._unevaluatedLayout.setValue(Ee,ze):this.visibility=ze},e.prototype.getPaintProperty=function(Ee){return v(Ee,"-transition")?this._transitionablePaint.getTransition(Ee.slice(0,-"-transition".length)):this._transitionablePaint.getValue(Ee)},e.prototype.setPaintProperty=function(Ee,ze,Be){if(void 0===Be&&(Be={}),null!=ze){var Ue="layers."+this.id+".paint."+Ee;if(this._validate(Xo,Ue,Ee,ze,Be))return!1}if(v(Ee,"-transition"))return this._transitionablePaint.setTransition(Ee.slice(0,-"-transition".length),ze||void 0),!1;var We=this._transitionablePaint._values[Ee],$e="cross-faded-data-driven"===We.property.specification["property-type"],Qe=We.value.isDataDriven(),rt=We.value;this._transitionablePaint.setValue(Ee,ze),this._handleSpecialPaintPropertyUpdate(Ee);var it=this._transitionablePaint._values[Ee].value;return it.isDataDriven()||Qe||$e||this._handleOverridablePaintPropertyUpdate(Ee,rt,it)},e.prototype._handleSpecialPaintPropertyUpdate=function(Ee){},e.prototype._handleOverridablePaintPropertyUpdate=function(Ee,ze,Be){return!1},e.prototype.isHidden=function(Ee){return!!(this.minzoom&&Ee=this.maxzoom)||"none"===this.visibility},e.prototype.updateTransitions=function(Ee){this._transitioningPaint=this._transitionablePaint.transitioned(Ee,this._transitioningPaint)},e.prototype.hasTransition=function(){return this._transitioningPaint.hasTransition()},e.prototype.recalculate=function(Ee){Ee.getCrossfadeParameters&&(this._crossfadeParameters=Ee.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(Ee)),this.paint=this._transitioningPaint.possiblyEvaluate(Ee)},e.prototype.serialize=function(){var Ee={id:this.id,type:this.type,source:this.source,"source-layer":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&&this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&&this._transitionablePaint.serialize()};return this.visibility&&(Ee.layout=Ee.layout||{},Ee.layout.visibility=this.visibility),x(Ee,(function(Ee,ze){return!(void 0===Ee||"layout"===ze&&!Object.keys(Ee).length||"paint"===ze&&!Object.keys(Ee).length)}))},e.prototype._validate=function(Ee,ze,Be,Ue,We){return void 0===We&&(We={}),(!We||!1!==We.validate)&&pn(this,Ee.call(Ho,{key:ze,layerType:this.type,objectKey:Be,value:Ue,styleSpec:Hn,style:{glyphs:!0,sprite:!0}}))},e.prototype.is3D=function(){return!1},e.prototype.isTileClipped=function(){return!1},e.prototype.hasOffscreenPass=function(){return!1},e.prototype.resize=function(){},e.prototype.isStateDependent=function(){for(var Ee in this.paint._values){var ze=this.paint.get(Ee);if(ze instanceof Rn&&hr(ze.property.specification)&&("source"===ze.value.kind||"composite"===ze.value.kind)&&ze.value.isStateDependent)return!0}return!1},e}(St),vs={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array},Yn=function(Ee,ze){this._structArray=Ee,this._pos1=ze*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8},$n=function(){this.isTransferred=!1,this.capacity=-1,this.resize(0)};function Wn(Ee,ze){void 0===ze&&(ze=1);var Be=0,Ue=0;return{members:Ee.map((function(Ee){var We,$e=(We=Ee.type,vs[We].BYTES_PER_ELEMENT),Qe=Be=Qn(Be,Math.max(ze,$e)),rt=Ee.components||1;return Ue=Math.max(Ue,$e),Be+=$e*rt,{name:Ee.name,type:Ee.type,components:rt,offset:Qe}})),size:Qn(Be,Math.max(Ue,ze)),alignment:ze}}function Qn(Ee,ze){return Math.ceil(Ee/ze)*ze}$n.serialize=function(Ee,ze){return Ee._trim(),ze&&(Ee.isTransferred=!0,ze.push(Ee.arrayBuffer)),{length:Ee.length,arrayBuffer:Ee.arrayBuffer}},$n.deserialize=function(Ee){var ze=Object.create(this.prototype);return ze.arrayBuffer=Ee.arrayBuffer,ze.length=Ee.length,ze.capacity=Ee.arrayBuffer.byteLength/ze.bytesPerElement,ze._refreshViews(),ze},$n.prototype._trim=function(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())},$n.prototype.clear=function(){this.length=0},$n.prototype.resize=function(Ee){this.reserve(Ee),this.length=Ee},$n.prototype.reserve=function(Ee){if(Ee>this.capacity){this.capacity=Math.max(Ee,Math.floor(5*this.capacity),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);var ze=this.uint8;this._refreshViews(),ze&&this.uint8.set(ze)}},$n.prototype._refreshViews=function(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")};var ks=function(Ee){function e(){Ee.apply(this,arguments)}return Ee&&(e.__proto__=Ee),e.prototype=Object.create(Ee&&Ee.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(Ee,ze){var Be=this.length;return this.resize(Be+1),this.emplace(Be,Ee,ze)},e.prototype.emplace=function(Ee,ze,Be){var Ue=2*Ee;return this.int16[Ue+0]=ze,this.int16[Ue+1]=Be,Ee},e}($n);ks.prototype.bytesPerElement=4,mn("StructArrayLayout2i4",ks);var Ms=function(Ee){function e(){Ee.apply(this,arguments)}return Ee&&(e.__proto__=Ee),e.prototype=Object.create(Ee&&Ee.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(Ee,ze,Be,Ue){var We=this.length;return this.resize(We+1),this.emplace(We,Ee,ze,Be,Ue)},e.prototype.emplace=function(Ee,ze,Be,Ue,We){var $e=4*Ee;return this.int16[$e+0]=ze,this.int16[$e+1]=Be,this.int16[$e+2]=Ue,this.int16[$e+3]=We,Ee},e}($n);Ms.prototype.bytesPerElement=8,mn("StructArrayLayout4i8",Ms);var Ss=function(Ee){function e(){Ee.apply(this,arguments)}return Ee&&(e.__proto__=Ee),e.prototype=Object.create(Ee&&Ee.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(Ee,ze,Be,Ue,We,$e){var Qe=this.length;return this.resize(Qe+1),this.emplace(Qe,Ee,ze,Be,Ue,We,$e)},e.prototype.emplace=function(Ee,ze,Be,Ue,We,$e,Qe){var rt=6*Ee;return this.int16[rt+0]=ze,this.int16[rt+1]=Be,this.int16[rt+2]=Ue,this.int16[rt+3]=We,this.int16[rt+4]=$e,this.int16[rt+5]=Qe,Ee},e}($n);Ss.prototype.bytesPerElement=12,mn("StructArrayLayout2i4i12",Ss);var Es=function(Ee){function e(){Ee.apply(this,arguments)}return Ee&&(e.__proto__=Ee),e.prototype=Object.create(Ee&&Ee.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(Ee,ze,Be,Ue,We,$e){var Qe=this.length;return this.resize(Qe+1),this.emplace(Qe,Ee,ze,Be,Ue,We,$e)},e.prototype.emplace=function(Ee,ze,Be,Ue,We,$e,Qe){var rt=4*Ee,it=8*Ee;return this.int16[rt+0]=ze,this.int16[rt+1]=Be,this.uint8[it+4]=Ue,this.uint8[it+5]=We,this.uint8[it+6]=$e,this.uint8[it+7]=Qe,Ee},e}($n);Es.prototype.bytesPerElement=8,mn("StructArrayLayout2i4ub8",Es);var Ls=function(Ee){function e(){Ee.apply(this,arguments)}return Ee&&(e.__proto__=Ee),e.prototype=Object.create(Ee&&Ee.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(Ee,ze,Be,Ue,We,$e,Qe,rt){var it=this.length;return this.resize(it+1),this.emplace(it,Ee,ze,Be,Ue,We,$e,Qe,rt)},e.prototype.emplace=function(Ee,ze,Be,Ue,We,$e,Qe,rt,it){var at=8*Ee;return this.uint16[at+0]=ze,this.uint16[at+1]=Be,this.uint16[at+2]=Ue,this.uint16[at+3]=We,this.uint16[at+4]=$e,this.uint16[at+5]=Qe,this.uint16[at+6]=rt,this.uint16[at+7]=it,Ee},e}($n);Ls.prototype.bytesPerElement=16,mn("StructArrayLayout8ui16",Ls);var Ds=function(Ee){function e(){Ee.apply(this,arguments)}return Ee&&(e.__proto__=Ee),e.prototype=Object.create(Ee&&Ee.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(Ee,ze,Be,Ue,We,$e,Qe,rt){var it=this.length;return this.resize(it+1),this.emplace(it,Ee,ze,Be,Ue,We,$e,Qe,rt)},e.prototype.emplace=function(Ee,ze,Be,Ue,We,$e,Qe,rt,it){var at=8*Ee;return this.int16[at+0]=ze,this.int16[at+1]=Be,this.int16[at+2]=Ue,this.int16[at+3]=We,this.uint16[at+4]=$e,this.uint16[at+5]=Qe,this.uint16[at+6]=rt,this.uint16[at+7]=it,Ee},e}($n);Ds.prototype.bytesPerElement=16,mn("StructArrayLayout4i4ui16",Ds);var Rs=function(Ee){function e(){Ee.apply(this,arguments)}return Ee&&(e.__proto__=Ee),e.prototype=Object.create(Ee&&Ee.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(Ee,ze,Be){var Ue=this.length;return this.resize(Ue+1),this.emplace(Ue,Ee,ze,Be)},e.prototype.emplace=function(Ee,ze,Be,Ue){var We=3*Ee;return this.float32[We+0]=ze,this.float32[We+1]=Be,this.float32[We+2]=Ue,Ee},e}($n);Rs.prototype.bytesPerElement=12,mn("StructArrayLayout3f12",Rs);var Bs=function(Ee){function e(){Ee.apply(this,arguments)}return Ee&&(e.__proto__=Ee),e.prototype=Object.create(Ee&&Ee.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(Ee){var ze=this.length;return this.resize(ze+1),this.emplace(ze,Ee)},e.prototype.emplace=function(Ee,ze){var Be=1*Ee;return this.uint32[Be+0]=ze,Ee},e}($n);Bs.prototype.bytesPerElement=4,mn("StructArrayLayout1ul4",Bs);var Ns=function(Ee){function e(){Ee.apply(this,arguments)}return Ee&&(e.__proto__=Ee),e.prototype=Object.create(Ee&&Ee.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(Ee,ze,Be,Ue,We,$e,Qe,rt,it,at,ct){var ft=this.length;return this.resize(ft+1),this.emplace(ft,Ee,ze,Be,Ue,We,$e,Qe,rt,it,at,ct)},e.prototype.emplace=function(Ee,ze,Be,Ue,We,$e,Qe,rt,it,at,ct,ft){var xt=12*Ee,kt=6*Ee;return this.int16[xt+0]=ze,this.int16[xt+1]=Be,this.int16[xt+2]=Ue,this.int16[xt+3]=We,this.int16[xt+4]=$e,this.int16[xt+5]=Qe,this.uint32[kt+3]=rt,this.uint16[xt+8]=it,this.uint16[xt+9]=at,this.int16[xt+10]=ct,this.int16[xt+11]=ft,Ee},e}($n);Ns.prototype.bytesPerElement=24,mn("StructArrayLayout6i1ul2ui2i24",Ns);var js=function(Ee){function e(){Ee.apply(this,arguments)}return Ee&&(e.__proto__=Ee),e.prototype=Object.create(Ee&&Ee.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(Ee,ze,Be,Ue,We,$e){var Qe=this.length;return this.resize(Qe+1),this.emplace(Qe,Ee,ze,Be,Ue,We,$e)},e.prototype.emplace=function(Ee,ze,Be,Ue,We,$e,Qe){var rt=6*Ee;return this.int16[rt+0]=ze,this.int16[rt+1]=Be,this.int16[rt+2]=Ue,this.int16[rt+3]=We,this.int16[rt+4]=$e,this.int16[rt+5]=Qe,Ee},e}($n);js.prototype.bytesPerElement=12,mn("StructArrayLayout2i2i2i12",js);var Hs=function(Ee){function e(){Ee.apply(this,arguments)}return Ee&&(e.__proto__=Ee),e.prototype=Object.create(Ee&&Ee.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(Ee,ze,Be,Ue){var We=this.length;return this.resize(We+1),this.emplace(We,Ee,ze,Be,Ue)},e.prototype.emplace=function(Ee,ze,Be,Ue,We){var $e=12*Ee,Qe=3*Ee;return this.uint8[$e+0]=ze,this.uint8[$e+1]=Be,this.float32[Qe+1]=Ue,this.float32[Qe+2]=We,Ee},e}($n);Hs.prototype.bytesPerElement=12,mn("StructArrayLayout2ub2f12",Hs);var qs=function(Ee){function e(){Ee.apply(this,arguments)}return Ee&&(e.__proto__=Ee),e.prototype=Object.create(Ee&&Ee.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(Ee,ze,Be,Ue,We,$e,Qe,rt,it,at,ct,ft,xt,kt,Lt,Ut){var er=this.length;return this.resize(er+1),this.emplace(er,Ee,ze,Be,Ue,We,$e,Qe,rt,it,at,ct,ft,xt,kt,Lt,Ut)},e.prototype.emplace=function(Ee,ze,Be,Ue,We,$e,Qe,rt,it,at,ct,ft,xt,kt,Lt,Ut,er){var tr=22*Ee,rr=11*Ee,ar=44*Ee;return this.int16[tr+0]=ze,this.int16[tr+1]=Be,this.uint16[tr+2]=Ue,this.uint16[tr+3]=We,this.uint32[rr+2]=$e,this.uint32[rr+3]=Qe,this.uint32[rr+4]=rt,this.uint16[tr+10]=it,this.uint16[tr+11]=at,this.uint16[tr+12]=ct,this.float32[rr+7]=ft,this.float32[rr+8]=xt,this.uint8[ar+36]=kt,this.uint8[ar+37]=Lt,this.uint8[ar+38]=Ut,this.uint32[rr+10]=er,Ee},e}($n);qs.prototype.bytesPerElement=44,mn("StructArrayLayout2i2ui3ul3ui2f3ub1ul44",qs);var Ws=function(Ee){function e(){Ee.apply(this,arguments)}return Ee&&(e.__proto__=Ee),e.prototype=Object.create(Ee&&Ee.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(Ee,ze,Be,Ue,We,$e,Qe,rt,it,at,ct,ft,xt,kt,Lt,Ut,er,tr,rr,ar){var Lr=this.length;return this.resize(Lr+1),this.emplace(Lr,Ee,ze,Be,Ue,We,$e,Qe,rt,it,at,ct,ft,xt,kt,Lt,Ut,er,tr,rr,ar)},e.prototype.emplace=function(Ee,ze,Be,Ue,We,$e,Qe,rt,it,at,ct,ft,xt,kt,Lt,Ut,er,tr,rr,ar,Lr){var Qr=24*Ee,on=12*Ee;return this.int16[Qr+0]=ze,this.int16[Qr+1]=Be,this.int16[Qr+2]=Ue,this.int16[Qr+3]=We,this.int16[Qr+4]=$e,this.int16[Qr+5]=Qe,this.uint16[Qr+6]=rt,this.uint16[Qr+7]=it,this.uint16[Qr+8]=at,this.uint16[Qr+9]=ct,this.uint16[Qr+10]=ft,this.uint16[Qr+11]=xt,this.uint16[Qr+12]=kt,this.uint16[Qr+13]=Lt,this.uint16[Qr+14]=Ut,this.uint16[Qr+15]=er,this.uint16[Qr+16]=tr,this.uint32[on+9]=rr,this.float32[on+10]=ar,this.float32[on+11]=Lr,Ee},e}($n);Ws.prototype.bytesPerElement=48,mn("StructArrayLayout6i11ui1ul2f48",Ws);var Zs=function(Ee){function e(){Ee.apply(this,arguments)}return Ee&&(e.__proto__=Ee),e.prototype=Object.create(Ee&&Ee.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(Ee){var ze=this.length;return this.resize(ze+1),this.emplace(ze,Ee)},e.prototype.emplace=function(Ee,ze){var Be=1*Ee;return this.float32[Be+0]=ze,Ee},e}($n);Zs.prototype.bytesPerElement=4,mn("StructArrayLayout1f4",Zs);var Xs=function(Ee){function e(){Ee.apply(this,arguments)}return Ee&&(e.__proto__=Ee),e.prototype=Object.create(Ee&&Ee.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(Ee,ze,Be){var Ue=this.length;return this.resize(Ue+1),this.emplace(Ue,Ee,ze,Be)},e.prototype.emplace=function(Ee,ze,Be,Ue){var We=3*Ee;return this.int16[We+0]=ze,this.int16[We+1]=Be,this.int16[We+2]=Ue,Ee},e}($n);Xs.prototype.bytesPerElement=6,mn("StructArrayLayout3i6",Xs);var $s=function(Ee){function e(){Ee.apply(this,arguments)}return Ee&&(e.__proto__=Ee),e.prototype=Object.create(Ee&&Ee.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(Ee,ze,Be){var Ue=this.length;return this.resize(Ue+1),this.emplace(Ue,Ee,ze,Be)},e.prototype.emplace=function(Ee,ze,Be,Ue){var We=2*Ee,$e=4*Ee;return this.uint32[We+0]=ze,this.uint16[$e+2]=Be,this.uint16[$e+3]=Ue,Ee},e}($n);$s.prototype.bytesPerElement=8,mn("StructArrayLayout1ul2ui8",$s);var Ks=function(Ee){function e(){Ee.apply(this,arguments)}return Ee&&(e.__proto__=Ee),e.prototype=Object.create(Ee&&Ee.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(Ee,ze,Be){var Ue=this.length;return this.resize(Ue+1),this.emplace(Ue,Ee,ze,Be)},e.prototype.emplace=function(Ee,ze,Be,Ue){var We=3*Ee;return this.uint16[We+0]=ze,this.uint16[We+1]=Be,this.uint16[We+2]=Ue,Ee},e}($n);Ks.prototype.bytesPerElement=6,mn("StructArrayLayout3ui6",Ks);var Qs=function(Ee){function e(){Ee.apply(this,arguments)}return Ee&&(e.__proto__=Ee),e.prototype=Object.create(Ee&&Ee.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(Ee,ze){var Be=this.length;return this.resize(Be+1),this.emplace(Be,Ee,ze)},e.prototype.emplace=function(Ee,ze,Be){var Ue=2*Ee;return this.uint16[Ue+0]=ze,this.uint16[Ue+1]=Be,Ee},e}($n);Qs.prototype.bytesPerElement=4,mn("StructArrayLayout2ui4",Qs);var cl=function(Ee){function e(){Ee.apply(this,arguments)}return Ee&&(e.__proto__=Ee),e.prototype=Object.create(Ee&&Ee.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(Ee){var ze=this.length;return this.resize(ze+1),this.emplace(ze,Ee)},e.prototype.emplace=function(Ee,ze){var Be=1*Ee;return this.uint16[Be+0]=ze,Ee},e}($n);cl.prototype.bytesPerElement=2,mn("StructArrayLayout1ui2",cl);var fl=function(Ee){function e(){Ee.apply(this,arguments)}return Ee&&(e.__proto__=Ee),e.prototype=Object.create(Ee&&Ee.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(Ee,ze){var Be=this.length;return this.resize(Be+1),this.emplace(Be,Ee,ze)},e.prototype.emplace=function(Ee,ze,Be){var Ue=2*Ee;return this.float32[Ue+0]=ze,this.float32[Ue+1]=Be,Ee},e}($n);fl.prototype.bytesPerElement=8,mn("StructArrayLayout2f8",fl);var hl=function(Ee){function e(){Ee.apply(this,arguments)}return Ee&&(e.__proto__=Ee),e.prototype=Object.create(Ee&&Ee.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(Ee,ze,Be,Ue){var We=this.length;return this.resize(We+1),this.emplace(We,Ee,ze,Be,Ue)},e.prototype.emplace=function(Ee,ze,Be,Ue,We){var $e=4*Ee;return this.float32[$e+0]=ze,this.float32[$e+1]=Be,this.float32[$e+2]=Ue,this.float32[$e+3]=We,Ee},e}($n);hl.prototype.bytesPerElement=16,mn("StructArrayLayout4f16",hl);var pl=function(Ee){function e(){Ee.apply(this,arguments)}Ee&&(e.__proto__=Ee),e.prototype=Object.create(Ee&&Ee.prototype),e.prototype.constructor=e;var ze={anchorPointX:{configurable:!0},anchorPointY:{configurable:!0},x1:{configurable:!0},y1:{configurable:!0},x2:{configurable:!0},y2:{configurable:!0},featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0},radius:{configurable:!0},signedDistanceFromAnchor:{configurable:!0},anchorPoint:{configurable:!0}};return ze.anchorPointX.get=function(){return this._structArray.int16[this._pos2+0]},ze.anchorPointX.set=function(Ee){this._structArray.int16[this._pos2+0]=Ee},ze.anchorPointY.get=function(){return this._structArray.int16[this._pos2+1]},ze.anchorPointY.set=function(Ee){this._structArray.int16[this._pos2+1]=Ee},ze.x1.get=function(){return this._structArray.int16[this._pos2+2]},ze.x1.set=function(Ee){this._structArray.int16[this._pos2+2]=Ee},ze.y1.get=function(){return this._structArray.int16[this._pos2+3]},ze.y1.set=function(Ee){this._structArray.int16[this._pos2+3]=Ee},ze.x2.get=function(){return this._structArray.int16[this._pos2+4]},ze.x2.set=function(Ee){this._structArray.int16[this._pos2+4]=Ee},ze.y2.get=function(){return this._structArray.int16[this._pos2+5]},ze.y2.set=function(Ee){this._structArray.int16[this._pos2+5]=Ee},ze.featureIndex.get=function(){return this._structArray.uint32[this._pos4+3]},ze.featureIndex.set=function(Ee){this._structArray.uint32[this._pos4+3]=Ee},ze.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+8]},ze.sourceLayerIndex.set=function(Ee){this._structArray.uint16[this._pos2+8]=Ee},ze.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+9]},ze.bucketIndex.set=function(Ee){this._structArray.uint16[this._pos2+9]=Ee},ze.radius.get=function(){return this._structArray.int16[this._pos2+10]},ze.radius.set=function(Ee){this._structArray.int16[this._pos2+10]=Ee},ze.signedDistanceFromAnchor.get=function(){return this._structArray.int16[this._pos2+11]},ze.signedDistanceFromAnchor.set=function(Ee){this._structArray.int16[this._pos2+11]=Ee},ze.anchorPoint.get=function(){return new Be(this.anchorPointX,this.anchorPointY)},Object.defineProperties(e.prototype,ze),e}(Yn);pl.prototype.size=24;var dl=function(Ee){function e(){Ee.apply(this,arguments)}return Ee&&(e.__proto__=Ee),e.prototype=Object.create(Ee&&Ee.prototype),e.prototype.constructor=e,e.prototype.get=function(Ee){return new pl(this,Ee)},e}(Ns);mn("CollisionBoxArray",dl);var gl=function(Ee){function e(){Ee.apply(this,arguments)}Ee&&(e.__proto__=Ee),e.prototype=Object.create(Ee&&Ee.prototype),e.prototype.constructor=e;var ze={anchorX:{configurable:!0},anchorY:{configurable:!0},glyphStartIndex:{configurable:!0},numGlyphs:{configurable:!0},vertexStartIndex:{configurable:!0},lineStartIndex:{configurable:!0},lineLength:{configurable:!0},segment:{configurable:!0},lowerSize:{configurable:!0},upperSize:{configurable:!0},lineOffsetX:{configurable:!0},lineOffsetY:{configurable:!0},writingMode:{configurable:!0},placedOrientation:{configurable:!0},hidden:{configurable:!0},crossTileID:{configurable:!0}};return ze.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},ze.anchorX.set=function(Ee){this._structArray.int16[this._pos2+0]=Ee},ze.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},ze.anchorY.set=function(Ee){this._structArray.int16[this._pos2+1]=Ee},ze.glyphStartIndex.get=function(){return this._structArray.uint16[this._pos2+2]},ze.glyphStartIndex.set=function(Ee){this._structArray.uint16[this._pos2+2]=Ee},ze.numGlyphs.get=function(){return this._structArray.uint16[this._pos2+3]},ze.numGlyphs.set=function(Ee){this._structArray.uint16[this._pos2+3]=Ee},ze.vertexStartIndex.get=function(){return this._structArray.uint32[this._pos4+2]},ze.vertexStartIndex.set=function(Ee){this._structArray.uint32[this._pos4+2]=Ee},ze.lineStartIndex.get=function(){return this._structArray.uint32[this._pos4+3]},ze.lineStartIndex.set=function(Ee){this._structArray.uint32[this._pos4+3]=Ee},ze.lineLength.get=function(){return this._structArray.uint32[this._pos4+4]},ze.lineLength.set=function(Ee){this._structArray.uint32[this._pos4+4]=Ee},ze.segment.get=function(){return this._structArray.uint16[this._pos2+10]},ze.segment.set=function(Ee){this._structArray.uint16[this._pos2+10]=Ee},ze.lowerSize.get=function(){return this._structArray.uint16[this._pos2+11]},ze.lowerSize.set=function(Ee){this._structArray.uint16[this._pos2+11]=Ee},ze.upperSize.get=function(){return this._structArray.uint16[this._pos2+12]},ze.upperSize.set=function(Ee){this._structArray.uint16[this._pos2+12]=Ee},ze.lineOffsetX.get=function(){return this._structArray.float32[this._pos4+7]},ze.lineOffsetX.set=function(Ee){this._structArray.float32[this._pos4+7]=Ee},ze.lineOffsetY.get=function(){return this._structArray.float32[this._pos4+8]},ze.lineOffsetY.set=function(Ee){this._structArray.float32[this._pos4+8]=Ee},ze.writingMode.get=function(){return this._structArray.uint8[this._pos1+36]},ze.writingMode.set=function(Ee){this._structArray.uint8[this._pos1+36]=Ee},ze.placedOrientation.get=function(){return this._structArray.uint8[this._pos1+37]},ze.placedOrientation.set=function(Ee){this._structArray.uint8[this._pos1+37]=Ee},ze.hidden.get=function(){return this._structArray.uint8[this._pos1+38]},ze.hidden.set=function(Ee){this._structArray.uint8[this._pos1+38]=Ee},ze.crossTileID.get=function(){return this._structArray.uint32[this._pos4+10]},ze.crossTileID.set=function(Ee){this._structArray.uint32[this._pos4+10]=Ee},Object.defineProperties(e.prototype,ze),e}(Yn);gl.prototype.size=44;var yl=function(Ee){function e(){Ee.apply(this,arguments)}return Ee&&(e.__proto__=Ee),e.prototype=Object.create(Ee&&Ee.prototype),e.prototype.constructor=e,e.prototype.get=function(Ee){return new gl(this,Ee)},e}(qs);mn("PlacedSymbolArray",yl);var wl=function(Ee){function e(){Ee.apply(this,arguments)}Ee&&(e.__proto__=Ee),e.prototype=Object.create(Ee&&Ee.prototype),e.prototype.constructor=e;var ze={anchorX:{configurable:!0},anchorY:{configurable:!0},rightJustifiedTextSymbolIndex:{configurable:!0},centerJustifiedTextSymbolIndex:{configurable:!0},leftJustifiedTextSymbolIndex:{configurable:!0},verticalPlacedTextSymbolIndex:{configurable:!0},key:{configurable:!0},textBoxStartIndex:{configurable:!0},textBoxEndIndex:{configurable:!0},verticalTextBoxStartIndex:{configurable:!0},verticalTextBoxEndIndex:{configurable:!0},iconBoxStartIndex:{configurable:!0},iconBoxEndIndex:{configurable:!0},featureIndex:{configurable:!0},numHorizontalGlyphVertices:{configurable:!0},numVerticalGlyphVertices:{configurable:!0},numIconVertices:{configurable:!0},crossTileID:{configurable:!0},textBoxScale:{configurable:!0},radialTextOffset:{configurable:!0}};return ze.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},ze.anchorX.set=function(Ee){this._structArray.int16[this._pos2+0]=Ee},ze.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},ze.anchorY.set=function(Ee){this._structArray.int16[this._pos2+1]=Ee},ze.rightJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+2]},ze.rightJustifiedTextSymbolIndex.set=function(Ee){this._structArray.int16[this._pos2+2]=Ee},ze.centerJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+3]},ze.centerJustifiedTextSymbolIndex.set=function(Ee){this._structArray.int16[this._pos2+3]=Ee},ze.leftJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+4]},ze.leftJustifiedTextSymbolIndex.set=function(Ee){this._structArray.int16[this._pos2+4]=Ee},ze.verticalPlacedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+5]},ze.verticalPlacedTextSymbolIndex.set=function(Ee){this._structArray.int16[this._pos2+5]=Ee},ze.key.get=function(){return this._structArray.uint16[this._pos2+6]},ze.key.set=function(Ee){this._structArray.uint16[this._pos2+6]=Ee},ze.textBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+7]},ze.textBoxStartIndex.set=function(Ee){this._structArray.uint16[this._pos2+7]=Ee},ze.textBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+8]},ze.textBoxEndIndex.set=function(Ee){this._structArray.uint16[this._pos2+8]=Ee},ze.verticalTextBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+9]},ze.verticalTextBoxStartIndex.set=function(Ee){this._structArray.uint16[this._pos2+9]=Ee},ze.verticalTextBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+10]},ze.verticalTextBoxEndIndex.set=function(Ee){this._structArray.uint16[this._pos2+10]=Ee},ze.iconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+11]},ze.iconBoxStartIndex.set=function(Ee){this._structArray.uint16[this._pos2+11]=Ee},ze.iconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+12]},ze.iconBoxEndIndex.set=function(Ee){this._structArray.uint16[this._pos2+12]=Ee},ze.featureIndex.get=function(){return this._structArray.uint16[this._pos2+13]},ze.featureIndex.set=function(Ee){this._structArray.uint16[this._pos2+13]=Ee},ze.numHorizontalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+14]},ze.numHorizontalGlyphVertices.set=function(Ee){this._structArray.uint16[this._pos2+14]=Ee},ze.numVerticalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+15]},ze.numVerticalGlyphVertices.set=function(Ee){this._structArray.uint16[this._pos2+15]=Ee},ze.numIconVertices.get=function(){return this._structArray.uint16[this._pos2+16]},ze.numIconVertices.set=function(Ee){this._structArray.uint16[this._pos2+16]=Ee},ze.crossTileID.get=function(){return this._structArray.uint32[this._pos4+9]},ze.crossTileID.set=function(Ee){this._structArray.uint32[this._pos4+9]=Ee},ze.textBoxScale.get=function(){return this._structArray.float32[this._pos4+10]},ze.textBoxScale.set=function(Ee){this._structArray.float32[this._pos4+10]=Ee},ze.radialTextOffset.get=function(){return this._structArray.float32[this._pos4+11]},ze.radialTextOffset.set=function(Ee){this._structArray.float32[this._pos4+11]=Ee},Object.defineProperties(e.prototype,ze),e}(Yn);wl.prototype.size=48;var Tl=function(Ee){function e(){Ee.apply(this,arguments)}return Ee&&(e.__proto__=Ee),e.prototype=Object.create(Ee&&Ee.prototype),e.prototype.constructor=e,e.prototype.get=function(Ee){return new wl(this,Ee)},e}(Ws);mn("SymbolInstanceArray",Tl);var kl=function(Ee){function e(){Ee.apply(this,arguments)}Ee&&(e.__proto__=Ee),e.prototype=Object.create(Ee&&Ee.prototype),e.prototype.constructor=e;var ze={offsetX:{configurable:!0}};return ze.offsetX.get=function(){return this._structArray.float32[this._pos4+0]},ze.offsetX.set=function(Ee){this._structArray.float32[this._pos4+0]=Ee},Object.defineProperties(e.prototype,ze),e}(Yn);kl.prototype.size=4;var Al=function(Ee){function e(){Ee.apply(this,arguments)}return Ee&&(e.__proto__=Ee),e.prototype=Object.create(Ee&&Ee.prototype),e.prototype.constructor=e,e.prototype.getoffsetX=function(Ee){return this.float32[1*Ee+0]},e.prototype.get=function(Ee){return new kl(this,Ee)},e}(Zs);mn("GlyphOffsetArray",Al);var Ml=function(Ee){function e(){Ee.apply(this,arguments)}Ee&&(e.__proto__=Ee),e.prototype=Object.create(Ee&&Ee.prototype),e.prototype.constructor=e;var ze={x:{configurable:!0},y:{configurable:!0},tileUnitDistanceFromAnchor:{configurable:!0}};return ze.x.get=function(){return this._structArray.int16[this._pos2+0]},ze.x.set=function(Ee){this._structArray.int16[this._pos2+0]=Ee},ze.y.get=function(){return this._structArray.int16[this._pos2+1]},ze.y.set=function(Ee){this._structArray.int16[this._pos2+1]=Ee},ze.tileUnitDistanceFromAnchor.get=function(){return this._structArray.int16[this._pos2+2]},ze.tileUnitDistanceFromAnchor.set=function(Ee){this._structArray.int16[this._pos2+2]=Ee},Object.defineProperties(e.prototype,ze),e}(Yn);Ml.prototype.size=6;var Sl=function(Ee){function e(){Ee.apply(this,arguments)}return Ee&&(e.__proto__=Ee),e.prototype=Object.create(Ee&&Ee.prototype),e.prototype.constructor=e,e.prototype.getx=function(Ee){return this.int16[3*Ee+0]},e.prototype.gety=function(Ee){return this.int16[3*Ee+1]},e.prototype.gettileUnitDistanceFromAnchor=function(Ee){return this.int16[3*Ee+2]},e.prototype.get=function(Ee){return new Ml(this,Ee)},e}(Xs);mn("SymbolLineVertexArray",Sl);var Cl=function(Ee){function e(){Ee.apply(this,arguments)}Ee&&(e.__proto__=Ee),e.prototype=Object.create(Ee&&Ee.prototype),e.prototype.constructor=e;var ze={featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0}};return ze.featureIndex.get=function(){return this._structArray.uint32[this._pos4+0]},ze.featureIndex.set=function(Ee){this._structArray.uint32[this._pos4+0]=Ee},ze.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+2]},ze.sourceLayerIndex.set=function(Ee){this._structArray.uint16[this._pos2+2]=Ee},ze.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+3]},ze.bucketIndex.set=function(Ee){this._structArray.uint16[this._pos2+3]=Ee},Object.defineProperties(e.prototype,ze),e}(Yn);Cl.prototype.size=8;var El=function(Ee){function e(){Ee.apply(this,arguments)}return Ee&&(e.__proto__=Ee),e.prototype=Object.create(Ee&&Ee.prototype),e.prototype.constructor=e,e.prototype.get=function(Ee){return new Cl(this,Ee)},e}($s);mn("FeatureIndexArray",El);var Pl=Wn([{name:"a_pos",components:2,type:"Int16"}],4).members,Vi=function(Ee){void 0===Ee&&(Ee=[]),this.segments=Ee};function Fi(Ee,ze){return 256*(Ee=l(Math.floor(Ee),0,255))+l(Math.floor(ze),0,255)}Vi.prototype.prepareSegment=function(Ee,ze,Be,Ue){var We=this.segments[this.segments.length-1];return Ee>Vi.MAX_VERTEX_ARRAY_LENGTH&&w("Max vertices per segment is "+Vi.MAX_VERTEX_ARRAY_LENGTH+": bucket requested "+Ee),(!We||We.vertexLength+Ee>Vi.MAX_VERTEX_ARRAY_LENGTH||We.sortKey!==Ue)&&(We={vertexOffset:ze.length,primitiveOffset:Be.length,vertexLength:0,primitiveLength:0},void 0!==Ue&&(We.sortKey=Ue),this.segments.push(We)),We},Vi.prototype.get=function(){return this.segments},Vi.prototype.destroy=function(){for(var Ee=0,ze=this.segments;Ee>1;this.ids[Ue]>=Ee?Be=Ue:ze=Ue+1}for(var We=[];this.ids[ze]===Ee;){var $e=this.positions[3*ze],Qe=this.positions[3*ze+1],rt=this.positions[3*ze+2];We.push({index:$e,start:Qe,end:rt}),ze++}return We},Oi.serialize=function(Ee,ze){var Be=new Float64Array(Ee.ids),Ue=new Uint32Array(Ee.positions);return function t(Ee,ze,Be,Ue){if(!(Be>=Ue)){for(var We=Ee[Be+Ue>>1],$e=Be-1,Qe=Ue+1;;){do{$e++}while(Ee[$e]We);if($e>=Qe)break;Li(Ee,$e,Qe),Li(ze,3*$e,3*Qe),Li(ze,3*$e+1,3*Qe+1),Li(ze,3*$e+2,3*Qe+2)}t(Ee,ze,Be,Qe),t(Ee,ze,Qe+1,Ue)}}(Be,Ue,0,Be.length-1),ze.push(Be.buffer,Ue.buffer),{ids:Be,positions:Ue}},Oi.deserialize=function(Ee){var ze=new Oi;return ze.ids=Ee.ids,ze.positions=Ee.positions,ze.indexed=!0,ze},mn("FeaturePositionMap",Oi);var Di=function(Ee,ze){this.gl=Ee.gl,this.location=ze},Ol=function(Ee){function e(ze,Be){Ee.call(this,ze,Be),this.current=0}return Ee&&(e.__proto__=Ee),e.prototype=Object.create(Ee&&Ee.prototype),e.prototype.constructor=e,e.prototype.set=function(Ee){this.current!==Ee&&(this.current=Ee,this.gl.uniform1i(this.location,Ee))},e}(Di),Ll=function(Ee){function e(ze,Be){Ee.call(this,ze,Be),this.current=0}return Ee&&(e.__proto__=Ee),e.prototype=Object.create(Ee&&Ee.prototype),e.prototype.constructor=e,e.prototype.set=function(Ee){this.current!==Ee&&(this.current=Ee,this.gl.uniform1f(this.location,Ee))},e}(Di),Dl=function(Ee){function e(ze,Be){Ee.call(this,ze,Be),this.current=[0,0]}return Ee&&(e.__proto__=Ee),e.prototype=Object.create(Ee&&Ee.prototype),e.prototype.constructor=e,e.prototype.set=function(Ee){Ee[0]===this.current[0]&&Ee[1]===this.current[1]||(this.current=Ee,this.gl.uniform2f(this.location,Ee[0],Ee[1]))},e}(Di),Il=function(Ee){function e(ze,Be){Ee.call(this,ze,Be),this.current=[0,0,0]}return Ee&&(e.__proto__=Ee),e.prototype=Object.create(Ee&&Ee.prototype),e.prototype.constructor=e,e.prototype.set=function(Ee){Ee[0]===this.current[0]&&Ee[1]===this.current[1]&&Ee[2]===this.current[2]||(this.current=Ee,this.gl.uniform3f(this.location,Ee[0],Ee[1],Ee[2]))},e}(Di),zl=function(Ee){function e(ze,Be){Ee.call(this,ze,Be),this.current=[0,0,0,0]}return Ee&&(e.__proto__=Ee),e.prototype=Object.create(Ee&&Ee.prototype),e.prototype.constructor=e,e.prototype.set=function(Ee){Ee[0]===this.current[0]&&Ee[1]===this.current[1]&&Ee[2]===this.current[2]&&Ee[3]===this.current[3]||(this.current=Ee,this.gl.uniform4f(this.location,Ee[0],Ee[1],Ee[2],Ee[3]))},e}(Di),Rl=function(Ee){function e(ze,Be){Ee.call(this,ze,Be),this.current=Ht.transparent}return Ee&&(e.__proto__=Ee),e.prototype=Object.create(Ee&&Ee.prototype),e.prototype.constructor=e,e.prototype.set=function(Ee){Ee.r===this.current.r&&Ee.g===this.current.g&&Ee.b===this.current.b&&Ee.a===this.current.a||(this.current=Ee,this.gl.uniform4f(this.location,Ee.r,Ee.g,Ee.b,Ee.a))},e}(Di),Bl=new Float32Array(16),Nl=function(Ee){function e(ze,Be){Ee.call(this,ze,Be),this.current=Bl}return Ee&&(e.__proto__=Ee),e.prototype=Object.create(Ee&&Ee.prototype),e.prototype.constructor=e,e.prototype.set=function(Ee){if(Ee[12]!==this.current[12]||Ee[0]!==this.current[0])return this.current=Ee,void this.gl.uniformMatrix4fv(this.location,!1,Ee);for(var ze=1;ze<16;ze++)if(Ee[ze]!==this.current[ze]){this.current=Ee,this.gl.uniformMatrix4fv(this.location,!1,Ee);break}},e}(Di);function Gi(Ee){return[Fi(255*Ee.r,255*Ee.g),Fi(255*Ee.b,255*Ee.a)]}var Ji=function(Ee,ze,Be){this.value=Ee,this.names=ze,this.uniformNames=this.names.map((function(Ee){return"u_"+Ee})),this.type=Be,this.maxValue=-1/0};Ji.prototype.defines=function(){return this.names.map((function(Ee){return"#define HAS_UNIFORM_u_"+Ee}))},Ji.prototype.setConstantPatternPositions=function(){},Ji.prototype.populatePaintArray=function(){},Ji.prototype.updatePaintArray=function(){},Ji.prototype.upload=function(){},Ji.prototype.destroy=function(){},Ji.prototype.setUniforms=function(Ee,ze,Be,Ue){ze.set(Ue.constantOr(this.value))},Ji.prototype.getBinding=function(Ee,ze){return"color"===this.type?new Rl(Ee,ze):new Ll(Ee,ze)},Ji.serialize=function(Ee){var ze=Ee.value,Be=Ee.names,Ue=Ee.type;return{value:gn(ze),names:Be,type:Ue}},Ji.deserialize=function(Ee){var ze=Ee.value,Be=Ee.names,Ue=Ee.type;return new Ji(xn(ze),Be,Ue)};var Hi=function(Ee,ze,Be){this.value=Ee,this.names=ze,this.uniformNames=this.names.map((function(Ee){return"u_"+Ee})),this.type=Be,this.maxValue=-1/0,this.patternPositions={patternTo:null,patternFrom:null}};Hi.prototype.defines=function(){return this.names.map((function(Ee){return"#define HAS_UNIFORM_u_"+Ee}))},Hi.prototype.populatePaintArray=function(){},Hi.prototype.updatePaintArray=function(){},Hi.prototype.upload=function(){},Hi.prototype.destroy=function(){},Hi.prototype.setConstantPatternPositions=function(Ee,ze){this.patternPositions.patternTo=Ee.tlbr,this.patternPositions.patternFrom=ze.tlbr},Hi.prototype.setUniforms=function(Ee,ze,Be,Ue,We){var $e=this.patternPositions;"u_pattern_to"===We&&$e.patternTo&&ze.set($e.patternTo),"u_pattern_from"===We&&$e.patternFrom&&ze.set($e.patternFrom)},Hi.prototype.getBinding=function(Ee,ze){return new zl(Ee,ze)};var Yi=function(Ee,ze,Be,Ue){this.expression=Ee,this.names=ze,this.type=Be,this.uniformNames=this.names.map((function(Ee){return"a_"+Ee})),this.maxValue=-1/0,this.paintVertexAttributes=ze.map((function(Ee){return{name:"a_"+Ee,type:"Float32",components:"color"===Be?2:1,offset:0}})),this.paintVertexArray=new Ue};Yi.prototype.defines=function(){return[]},Yi.prototype.setConstantPatternPositions=function(){},Yi.prototype.populatePaintArray=function(Ee,ze,Be,Ue){var We=this.paintVertexArray,$e=We.length;We.reserve(Ee);var Qe=this.expression.evaluate(new Tn(0),ze,{},Ue);if("color"===this.type)for(var rt=Gi(Qe),it=$e;itjl.max||Qe.yjl.max)&&(w("Geometry exceeds allowed extent, reduce your vector tile buffer size"),Qe.x=l(Qe.x,jl.min,jl.max),Qe.y=l(Qe.y,jl.min,jl.max))}return Be}function sa(Ee,ze,Be,Ue,We){Ee.emplaceBack(2*ze+(Ue+1)/2,2*Be+(We+1)/2)}var ua=function(Ee){this.zoom=Ee.zoom,this.overscaling=Ee.overscaling,this.layers=Ee.layers,this.layerIds=this.layers.map((function(Ee){return Ee.id})),this.index=Ee.index,this.hasPattern=!1,this.layoutVertexArray=new ks,this.indexArray=new Ks,this.segments=new Vi,this.programConfigurations=new ta(Pl,Ee.layers,Ee.zoom),this.stateDependentLayerIds=this.layers.filter((function(Ee){return Ee.isStateDependent()})).map((function(Ee){return Ee.id}))};function la(Ee,ze){for(var Be=0;Be1){if(fa(Ee,ze))return!0;for(var Ue=0;Ue1?Ee.distSqr(Be):Ee.distSqr(Be.sub(ze)._mult(We)._add(ze))}function va(Ee,ze){for(var Be,Ue,We,$e=!1,Qe=0;Qeze.y!=We.y>ze.y&&ze.x<(We.x-Ue.x)*(ze.y-Ue.y)/(We.y-Ue.y)+Ue.x&&($e=!$e);return $e}function ga(Ee,ze){for(var Be=!1,Ue=0,We=Ee.length-1;Ueze.y!=Qe.y>ze.y&&ze.x<(Qe.x-$e.x)*(ze.y-$e.y)/(Qe.y-$e.y)+$e.x&&(Be=!Be)}return Be}function xa(Ee,ze,Be){var Ue=Be[0],We=Be[2];if(Ee.xWe.x&&ze.x>We.x||Ee.yWe.y&&ze.y>We.y)return!1;var $e=A(Ee,ze,Be[0]);return $e!==A(Ee,ze,Be[1])||$e!==A(Ee,ze,Be[2])||$e!==A(Ee,ze,Be[3])}function ba(Ee,ze,Be){var Ue=ze.paint.get(Ee).value;return"constant"===Ue.kind?Ue.value:Be.programConfigurations.get(ze.id).binders[Ee].maxValue}function _a(Ee){return Math.sqrt(Ee[0]*Ee[0]+Ee[1]*Ee[1])}function wa(Ee,ze,Ue,We,$e){if(!ze[0]&&!ze[1])return Ee;var Qe=Be.convert(ze)._mult($e);"viewport"===Ue&&Qe._rotate(-We);for(var rt=[],it=0;it=Fl||at<0||at>=Fl)){var ct=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,Ee.sortKey),ft=ct.vertexLength;sa(this.layoutVertexArray,it,at,-1,-1),sa(this.layoutVertexArray,it,at,1,-1),sa(this.layoutVertexArray,it,at,1,1),sa(this.layoutVertexArray,it,at,-1,1),this.indexArray.emplaceBack(ft,ft+1,ft+2),this.indexArray.emplaceBack(ft,ft+3,ft+2),ct.vertexLength+=4,ct.primitiveLength+=2}}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,Ee,Be,{})},mn("CircleBucket",ua,{omit:["layers"]});var Vl,Ul=new Gn({"circle-sort-key":new Nn(Hn.layout_circle["circle-sort-key"])}),Hl={paint:new Gn({"circle-radius":new Nn(Hn.paint_circle["circle-radius"]),"circle-color":new Nn(Hn.paint_circle["circle-color"]),"circle-blur":new Nn(Hn.paint_circle["circle-blur"]),"circle-opacity":new Nn(Hn.paint_circle["circle-opacity"]),"circle-translate":new qn(Hn.paint_circle["circle-translate"]),"circle-translate-anchor":new qn(Hn.paint_circle["circle-translate-anchor"]),"circle-pitch-scale":new qn(Hn.paint_circle["circle-pitch-scale"]),"circle-pitch-alignment":new qn(Hn.paint_circle["circle-pitch-alignment"]),"circle-stroke-width":new Nn(Hn.paint_circle["circle-stroke-width"]),"circle-stroke-color":new Nn(Hn.paint_circle["circle-stroke-color"]),"circle-stroke-opacity":new Nn(Hn.paint_circle["circle-stroke-opacity"])}),layout:Ul},ql="undefined"!=typeof Float32Array?Float32Array:Array;function Ca(Ee,ze,Be){var Ue=ze[0],We=ze[1],$e=ze[2],Qe=ze[3];return Ee[0]=Be[0]*Ue+Be[4]*We+Be[8]*$e+Be[12]*Qe,Ee[1]=Be[1]*Ue+Be[5]*We+Be[9]*$e+Be[13]*Qe,Ee[2]=Be[2]*Ue+Be[6]*We+Be[10]*$e+Be[14]*Qe,Ee[3]=Be[3]*Ue+Be[7]*We+Be[11]*$e+Be[15]*Qe,Ee}Math.hypot||(Math.hypot=function(){for(var Ee=arguments,ze=0,Be=arguments.length;Be--;)ze+=Ee[Be]*Ee[Be];return Math.sqrt(ze)}),Vl=new ql(3),ql!=Float32Array&&(Vl[0]=0,Vl[1]=0,Vl[2]=0),function(){var Ee=new ql(4);ql!=Float32Array&&(Ee[0]=0,Ee[1]=0,Ee[2]=0,Ee[3]=0)}();var Gl=function(Ee){function e(ze){Ee.call(this,ze,Hl)}return Ee&&(e.__proto__=Ee),e.prototype=Object.create(Ee&&Ee.prototype),e.prototype.constructor=e,e.prototype.createBucket=function(Ee){return new ua(Ee)},e.prototype.queryRadius=function(Ee){var ze=Ee;return ba("circle-radius",this,ze)+ba("circle-stroke-width",this,ze)+_a(this.paint.get("circle-translate"))},e.prototype.queryIntersectsFeature=function(Ee,ze,Be,Ue,We,$e,Qe,rt){for(var it=wa(Ee,this.paint.get("circle-translate"),this.paint.get("circle-translate-anchor"),$e.angle,Qe),at=this.paint.get("circle-radius").evaluate(ze,Be)+this.paint.get("circle-stroke-width").evaluate(ze,Be),ct="map"===this.paint.get("circle-pitch-alignment"),ft=ct?it:function(Ee,ze){return Ee.map((function(Ee){return Ea(Ee,ze)}))}(it,rt),xt=ct?at*Qe:at,kt=0,Lt=Ue;ktEe.width||We.height>Ee.height||Be.x>Ee.width-We.width||Be.y>Ee.height-We.height)throw new RangeError("out of range source coordinates for image copy");if(We.width>ze.width||We.height>ze.height||Ue.x>ze.width-We.width||Ue.y>ze.height-We.height)throw new RangeError("out of range destination coordinates for image copy");for(var Qe=Ee.data,rt=ze.data,it=0;it80*Be){Ue=$e=Ee[0],We=Qe=Ee[1];for(var Lt=Be;Lt$e&&($e=rt),it>Qe&&(Qe=it);at=0!==(at=Math.max($e-Ue,Qe-We))?1/at:0}return Ja(xt,kt,Be,Ue,We,at),kt}function Xa(Ee,ze,Be,Ue,We){var $e,Qe;if(We===vo(Ee,ze,Be,Ue)>0)for($e=ze;$e=ze;$e-=Ue)Qe=fo($e,Ee[$e],Ee[$e+1],Qe);return Qe&&so(Qe,Qe.next)&&(yo(Qe),Qe=Qe.next),Qe}function Ga(Ee,ze){if(!Ee)return Ee;ze||(ze=Ee);var Be,Ue=Ee;do{if(Be=!1,Ue.steiner||!so(Ue,Ue.next)&&0!==oo(Ue.prev,Ue,Ue.next))Ue=Ue.next;else{if(yo(Ue),(Ue=ze=Ue.prev)===Ue.next)break;Be=!0}}while(Be||Ue!==ze);return ze}function Ja(Ee,ze,Be,Ue,We,$e,Qe){if(Ee){!Qe&&$e&&function(Ee,ze,Be,Ue){var We=Ee;do{null===We.z&&(We.z=ro(We.x,We.y,ze,Be,Ue)),We.prevZ=We.prev,We.nextZ=We.next,We=We.next}while(We!==Ee);We.prevZ.nextZ=null,We.prevZ=null,function(Ee){var ze,Be,Ue,We,$e,Qe,rt,it,at=1;do{for(Be=Ee,Ee=null,$e=null,Qe=0;Be;){for(Qe++,Ue=Be,rt=0,ze=0;ze0||it>0&&Ue;)0!==rt&&(0===it||!Ue||Be.z<=Ue.z)?(We=Be,Be=Be.nextZ,rt--):(We=Ue,Ue=Ue.nextZ,it--),$e?$e.nextZ=We:Ee=We,We.prevZ=$e,$e=We;Be=Ue}$e.nextZ=null,at*=2}while(Qe>1)}(We)}(Ee,Ue,We,$e);for(var rt,it,at=Ee;Ee.prev!==Ee.next;)if(rt=Ee.prev,it=Ee.next,$e?Ya(Ee,Ue,We,$e):Ha(Ee))ze.push(rt.i/Be),ze.push(Ee.i/Be),ze.push(it.i/Be),yo(Ee),Ee=it.next,at=it.next;else if((Ee=it)===at){Qe?1===Qe?Ja(Ee=$a(Ga(Ee),ze,Be),ze,Be,Ue,We,$e,2):2===Qe&&Wa(Ee,ze,Be,Ue,We,$e):Ja(Ga(Ee),ze,Be,Ue,We,$e,1);break}}}function Ha(Ee){var ze=Ee.prev,Be=Ee,Ue=Ee.next;if(oo(ze,Be,Ue)>=0)return!1;for(var We=Ee.next.next;We!==Ee.prev;){if(io(ze.x,ze.y,Be.x,Be.y,Ue.x,Ue.y,We.x,We.y)&&oo(We.prev,We,We.next)>=0)return!1;We=We.next}return!0}function Ya(Ee,ze,Be,Ue){var We=Ee.prev,$e=Ee,Qe=Ee.next;if(oo(We,$e,Qe)>=0)return!1;for(var rt=We.x<$e.x?We.x$e.x?We.x>Qe.x?We.x:Qe.x:$e.x>Qe.x?$e.x:Qe.x,ct=We.y>$e.y?We.y>Qe.y?We.y:Qe.y:$e.y>Qe.y?$e.y:Qe.y,ft=ro(rt,it,ze,Be,Ue),xt=ro(at,ct,ze,Be,Ue),kt=Ee.prevZ,Lt=Ee.nextZ;kt&&kt.z>=ft&&Lt&&Lt.z<=xt;){if(kt!==Ee.prev&&kt!==Ee.next&&io(We.x,We.y,$e.x,$e.y,Qe.x,Qe.y,kt.x,kt.y)&&oo(kt.prev,kt,kt.next)>=0)return!1;if(kt=kt.prevZ,Lt!==Ee.prev&&Lt!==Ee.next&&io(We.x,We.y,$e.x,$e.y,Qe.x,Qe.y,Lt.x,Lt.y)&&oo(Lt.prev,Lt,Lt.next)>=0)return!1;Lt=Lt.nextZ}for(;kt&&kt.z>=ft;){if(kt!==Ee.prev&&kt!==Ee.next&&io(We.x,We.y,$e.x,$e.y,Qe.x,Qe.y,kt.x,kt.y)&&oo(kt.prev,kt,kt.next)>=0)return!1;kt=kt.prevZ}for(;Lt&&Lt.z<=xt;){if(Lt!==Ee.prev&&Lt!==Ee.next&&io(We.x,We.y,$e.x,$e.y,Qe.x,Qe.y,Lt.x,Lt.y)&&oo(Lt.prev,Lt,Lt.next)>=0)return!1;Lt=Lt.nextZ}return!0}function $a(Ee,ze,Be){var Ue=Ee;do{var We=Ue.prev,$e=Ue.next.next;!so(We,$e)&&uo(We,Ue,Ue.next,$e)&&co(We,$e)&&co($e,We)&&(ze.push(We.i/Be),ze.push(Ue.i/Be),ze.push($e.i/Be),yo(Ue),yo(Ue.next),Ue=Ee=$e),Ue=Ue.next}while(Ue!==Ee);return Ga(Ue)}function Wa(Ee,ze,Be,Ue,We,$e){var Qe=Ee;do{for(var rt=Qe.next.next;rt!==Qe.prev;){if(Qe.i!==rt.i&&ao(Qe,rt)){var it=ho(Qe,rt);return Qe=Ga(Qe,Qe.next),it=Ga(it,it.next),Ja(Qe,ze,Be,Ue,We,$e),void Ja(it,ze,Be,Ue,We,$e)}rt=rt.next}Qe=Qe.next}while(Qe!==Ee)}function Qa(Ee,ze){return Ee.x-ze.x}function to(Ee,ze){if(ze=function(Ee,ze){var Be,Ue=ze,We=Ee.x,$e=Ee.y,Qe=-1/0;do{if($e<=Ue.y&&$e>=Ue.next.y&&Ue.next.y!==Ue.y){var rt=Ue.x+($e-Ue.y)*(Ue.next.x-Ue.x)/(Ue.next.y-Ue.y);if(rt<=We&&rt>Qe){if(Qe=rt,rt===We){if($e===Ue.y)return Ue;if($e===Ue.next.y)return Ue.next}Be=Ue.x=Ue.x&&Ue.x>=ct&&We!==Ue.x&&io($eBe.x||Ue.x===Be.x&&eo(Be,Ue)))&&(Be=Ue,xt=it)),Ue=Ue.next}while(Ue!==at);return Be}(Ee,ze)){var Be=ho(ze,Ee);Ga(Be,Be.next)}}function eo(Ee,ze){return oo(Ee.prev,Ee,ze.prev)<0&&oo(ze.next,Ee,Ee.next)<0}function ro(Ee,ze,Be,Ue,We){return(Ee=1431655765&((Ee=858993459&((Ee=252645135&((Ee=16711935&((Ee=32767*(Ee-Be)*We)|Ee<<8))|Ee<<4))|Ee<<2))|Ee<<1))|(ze=1431655765&((ze=858993459&((ze=252645135&((ze=16711935&((ze=32767*(ze-Ue)*We)|ze<<8))|ze<<4))|ze<<2))|ze<<1))<<1}function no(Ee){var ze=Ee,Be=Ee;do{(ze.x=0&&(Ee-Qe)*(Ue-rt)-(Be-Qe)*(ze-rt)>=0&&(Be-Qe)*($e-rt)-(We-Qe)*(Ue-rt)>=0}function ao(Ee,ze){return Ee.next.i!==ze.i&&Ee.prev.i!==ze.i&&!function(Ee,ze){var Be=Ee;do{if(Be.i!==Ee.i&&Be.next.i!==Ee.i&&Be.i!==ze.i&&Be.next.i!==ze.i&&uo(Be,Be.next,Ee,ze))return!0;Be=Be.next}while(Be!==Ee);return!1}(Ee,ze)&&(co(Ee,ze)&&co(ze,Ee)&&function(Ee,ze){var Be=Ee,Ue=!1,We=(Ee.x+ze.x)/2,$e=(Ee.y+ze.y)/2;do{Be.y>$e!=Be.next.y>$e&&Be.next.y!==Be.y&&We<(Be.next.x-Be.x)*($e-Be.y)/(Be.next.y-Be.y)+Be.x&&(Ue=!Ue),Be=Be.next}while(Be!==Ee);return Ue}(Ee,ze)&&(oo(Ee.prev,Ee,ze.prev)||oo(Ee,ze.prev,ze))||so(Ee,ze)&&oo(Ee.prev,Ee,Ee.next)>0&&oo(ze.prev,ze,ze.next)>0)}function oo(Ee,ze,Be){return(ze.y-Ee.y)*(Be.x-ze.x)-(ze.x-Ee.x)*(Be.y-ze.y)}function so(Ee,ze){return Ee.x===ze.x&&Ee.y===ze.y}function uo(Ee,ze,Be,Ue){var We=po(oo(Ee,ze,Be)),$e=po(oo(Ee,ze,Ue)),Qe=po(oo(Be,Ue,Ee)),rt=po(oo(Be,Ue,ze));return We!==$e&&Qe!==rt||!(0!==We||!lo(Ee,Be,ze))||!(0!==$e||!lo(Ee,Ue,ze))||!(0!==Qe||!lo(Be,Ee,Ue))||!(0!==rt||!lo(Be,ze,Ue))}function lo(Ee,ze,Be){return ze.x<=Math.max(Ee.x,Be.x)&&ze.x>=Math.min(Ee.x,Be.x)&&ze.y<=Math.max(Ee.y,Be.y)&&ze.y>=Math.min(Ee.y,Be.y)}function po(Ee){return Ee>0?1:Ee<0?-1:0}function co(Ee,ze){return oo(Ee.prev,Ee,Ee.next)<0?oo(Ee,ze,Ee.next)>=0&&oo(Ee,Ee.prev,ze)>=0:oo(Ee,ze,Ee.prev)<0||oo(Ee,Ee.next,ze)<0}function ho(Ee,ze){var Be=new mo(Ee.i,Ee.x,Ee.y),Ue=new mo(ze.i,ze.x,ze.y),We=Ee.next,$e=ze.prev;return Ee.next=ze,ze.prev=Ee,Be.next=We,We.prev=Be,Ue.next=Be,Be.prev=Ue,$e.next=Ue,Ue.prev=$e,Ue}function fo(Ee,ze,Be,Ue){var We=new mo(Ee,ze,Be);return Ue?(We.next=Ue.next,We.prev=Ue,Ue.next.prev=We,Ue.next=We):(We.prev=We,We.next=We),We}function yo(Ee){Ee.next.prev=Ee.prev,Ee.prev.next=Ee.next,Ee.prevZ&&(Ee.prevZ.nextZ=Ee.nextZ),Ee.nextZ&&(Ee.nextZ.prevZ=Ee.prevZ)}function mo(Ee,ze,Be){this.i=Ee,this.x=ze,this.y=Be,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function vo(Ee,ze,Be,Ue){for(var We=0,$e=ze,Qe=Be-Ue;$eBe;){if(Ue-Be>600){var $e=Ue-Be+1,Qe=ze-Be+1,rt=Math.log($e),it=.5*Math.exp(2*rt/3),at=.5*Math.sqrt(rt*it*($e-it)/$e)*(Qe-$e/2<0?-1:1);t(Ee,ze,Math.max(Be,Math.floor(ze-Qe*it/$e+at)),Math.min(Ue,Math.floor(ze+($e-Qe)*it/$e+at)),We)}var ct=Ee[ze],ft=Be,xt=Ue;for(xo(Ee,Be,ze),We(Ee[Ue],ct)>0&&xo(Ee,Be,Ue);ft0;)xt--}0===We(Ee[Be],ct)?xo(Ee,Be,xt):xo(Ee,++xt,Ue),xt<=ze&&(Be=xt+1),ze<=xt&&(Ue=xt-1)}}(Ee,ze,Be||0,Ue||Ee.length-1,We||bo)}function xo(Ee,ze,Be){var Ue=Ee[ze];Ee[ze]=Ee[Be],Ee[Be]=Ue}function bo(Ee,ze){return Eeze?1:0}function _o(Ee,ze){var Be=Ee.length;if(Be<=1)return[Ee];for(var Ue,We,$e=[],Qe=0;Qe1)for(var it=0;it<$e.length;it++)$e[it].length<=ze||(go($e[it],ze,1,$e[it].length-1,wo),$e[it]=$e[it].slice(0,ze));return $e}function wo(Ee,ze){return ze.area-Ee.area}function Ao(Ee,ze,Be){for(var Ue=Be.patternDependencies,We=!1,$e=0,Qe=ze;$e0&&(Ue+=Ee[We-1].length,Be.holes.push(Ue))}return Be},Jl.default=Ql;var So=function(Ee){this.zoom=Ee.zoom,this.overscaling=Ee.overscaling,this.layers=Ee.layers,this.layerIds=this.layers.map((function(Ee){return Ee.id})),this.index=Ee.index,this.hasPattern=!1,this.patternFeatures=[],this.layoutVertexArray=new ks,this.indexArray=new Ks,this.indexArray2=new Qs,this.programConfigurations=new ta(Kl,Ee.layers,Ee.zoom),this.segments=new Vi,this.segments2=new Vi,this.stateDependentLayerIds=this.layers.filter((function(Ee){return Ee.isStateDependent()})).map((function(Ee){return Ee.id}))};So.prototype.populate=function(Ee,ze){this.hasPattern=Ao("fill",this.layers,ze);for(var Be=this.layers[0].layout.get("fill-sort-key"),Ue=[],We=0,$e=Ee;We<$e.length;We+=1){var Qe=$e[We],rt=Qe.feature,it=Qe.index,at=Qe.sourceLayerIndex;if(this.layers[0]._featureFilter(new Tn(this.zoom),rt)){var ct=oa(rt),ft=Be?Be.evaluate(rt,{}):void 0,xt={id:rt.id,properties:rt.properties,type:rt.type,sourceLayerIndex:at,index:it,geometry:ct,patterns:{},sortKey:ft};Ue.push(xt)}}Be&&Ue.sort((function(Ee,ze){return Ee.sortKey-ze.sortKey}));for(var kt=0,Lt=Ue;kt>3}if($e--,1===We||2===We)Qe+=Ee.readSVarint(),rt+=Ee.readSVarint(),1===We&&(ze&&it.push(ze),ze=[]),ze.push(new Be(Qe,rt));else{if(7!==We)throw new Error("unknown command "+We);ze&&ze.push(ze[0].clone())}}return ze&&it.push(ze),it},Mo.prototype.bbox=function(){var Ee=this._pbf;Ee.pos=this._geometry;for(var ze=Ee.readVarint()+Ee.pos,Be=1,Ue=0,We=0,$e=0,Qe=1/0,rt=-1/0,it=1/0,at=-1/0;Ee.pos>3}if(Ue--,1===Be||2===Be)(We+=Ee.readSVarint())rt&&(rt=We),($e+=Ee.readSVarint())at&&(at=$e);else if(7!==Be)throw new Error("unknown command "+Be)}return[Qe,it,rt,at]},Mo.prototype.toGeoJSON=function(Ee,ze,Be){var Ue,We,$e=this.extent*Math.pow(2,Be),Qe=this.extent*Ee,rt=this.extent*ze,it=this.loadGeometry(),at=Mo.types[this.type];function p(Ee){for(var ze=0;ze>3;ze=1===Ue?Ee.readString():2===Ue?Ee.readFloat():3===Ue?Ee.readDouble():4===Ue?Ee.readVarint64():5===Ue?Ee.readVarint():6===Ue?Ee.readSVarint():7===Ue?Ee.readBoolean():null}return ze}(Be))}function Lo(Ee,ze,Be){if(3===Ee){var Ue=new ac(Be,Be.readVarint()+Be.pos);Ue.length&&(ze[Ue.name]=Ue)}}Fo.prototype.feature=function(Ee){if(Ee<0||Ee>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[Ee];var ze=this._pbf.readVarint()+this._pbf.pos;return new ic(this._pbf,ze,this.extent,this._keys,this._values)};var oc={VectorTile:function(Ee,ze){this.layers=Ee.readFields(Lo,{},ze)},VectorTileFeature:ic,VectorTileLayer:ac},sc=oc.VectorTileFeature.types,lc=Math.pow(2,13);function jo(Ee,ze,Be,Ue,We,$e,Qe,rt){Ee.emplaceBack(ze,Be,2*Math.floor(Ue*lc)+Qe,We*lc*2,$e*lc*2,Math.round(rt))}var qo=function(Ee){this.zoom=Ee.zoom,this.overscaling=Ee.overscaling,this.layers=Ee.layers,this.layerIds=this.layers.map((function(Ee){return Ee.id})),this.index=Ee.index,this.hasPattern=!1,this.layoutVertexArray=new Ss,this.indexArray=new Ks,this.programConfigurations=new ta(nc,Ee.layers,Ee.zoom),this.segments=new Vi,this.stateDependentLayerIds=this.layers.filter((function(Ee){return Ee.isStateDependent()})).map((function(Ee){return Ee.id}))};function No(Ee,ze){return Ee.x===ze.x&&(Ee.x<0||Ee.x>Fl)||Ee.y===ze.y&&(Ee.y<0||Ee.y>Fl)}function Ko(Ee){return Ee.every((function(Ee){return Ee.x<0}))||Ee.every((function(Ee){return Ee.x>Fl}))||Ee.every((function(Ee){return Ee.y<0}))||Ee.every((function(Ee){return Ee.y>Fl}))}qo.prototype.populate=function(Ee,ze){this.features=[],this.hasPattern=Ao("fill-extrusion",this.layers,ze);for(var Be=0,Ue=Ee;Be=1){var tr=kt[Ut-1];if(!No(er,tr)){ct.vertexLength+4>Vi.MAX_VERTEX_ARRAY_LENGTH&&(ct=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));var rr=er.sub(tr)._perp()._unit(),ar=tr.dist(er);Lt+ar>32768&&(Lt=0),jo(this.layoutVertexArray,er.x,er.y,rr.x,rr.y,0,0,Lt),jo(this.layoutVertexArray,er.x,er.y,rr.x,rr.y,0,1,Lt),Lt+=ar,jo(this.layoutVertexArray,tr.x,tr.y,rr.x,rr.y,0,0,Lt),jo(this.layoutVertexArray,tr.x,tr.y,rr.x,rr.y,0,1,Lt);var Lr=ct.vertexLength;this.indexArray.emplaceBack(Lr,Lr+2,Lr+1),this.indexArray.emplaceBack(Lr+1,Lr+2,Lr+3),ct.vertexLength+=4,ct.primitiveLength+=2}}}}if(ct.vertexLength+rt>Vi.MAX_VERTEX_ARRAY_LENGTH&&(ct=this.segments.prepareSegment(rt,this.layoutVertexArray,this.indexArray)),"Polygon"===sc[Ee.type]){for(var Qr=[],on=[],sn=ct.vertexLength,cn=0,un=Qe;cn=2&&Ee[ct-1].equals(Ee[ct-2]);)ct--;for(var ft=0;ft0;if(un&&ar>ft){var dn=xt.dist(Ut);if(dn>2*kt){var vn=xt.sub(xt.sub(Ut)._mult(kt/dn)._round());this.updateDistance(Ut,vn),this.addCurrentVertex(vn,tr,0,0,Lt),Ut=vn}}var yn=Ut&&er,_n=yn?Be:at?"butt":Ue;if(yn&&"round"===_n&&(sn<$e?_n="miter":sn<=2&&(_n="fakeround")),"miter"===_n&&sn>We&&(_n="bevel"),"bevel"===_n&&(sn>2&&(_n="flipbevel"),sn100)Lr=rr.mult(-1);else{var Mn=sn*tr.add(rr).mag()/tr.sub(rr).mag();Lr._perp()._mult(Mn*(hn?-1:1))}this.addCurrentVertex(xt,Lr,0,0,Lt),this.addCurrentVertex(xt,Lr.mult(-1),0,0,Lt)}else if("bevel"===_n||"fakeround"===_n){var Cn=-Math.sqrt(sn*sn-1),En=hn?Cn:0,Pn=hn?0:Cn;if(Ut&&this.addCurrentVertex(xt,tr,En,Pn,Lt),"fakeround"===_n)for(var In=Math.round(180*cn/Math.PI/20),Bn=1;Bn2*kt){var ri=xt.add(er.sub(xt)._mult(kt/ti)._round());this.updateDistance(xt,ri),this.addCurrentVertex(ri,rr,0,0,Lt),xt=ri}}}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,ze,Qe,rt)}},Qo.prototype.addCurrentVertex=function(Ee,ze,Be,Ue,We,$e){void 0===$e&&($e=!1);var Qe=ze.x+ze.y*Be,rt=ze.y-ze.x*Be,it=-ze.x+ze.y*Ue,at=-ze.y-ze.x*Ue;this.addHalfVertex(Ee,Qe,rt,$e,!1,Be,We),this.addHalfVertex(Ee,it,at,$e,!0,-Ue,We),this.distance>dc/2&&0===this.totalDistance&&(this.distance=0,this.addCurrentVertex(Ee,ze,Be,Ue,We,$e))},Qo.prototype.addHalfVertex=function(Ee,ze,Be,Ue,We,$e,Qe){var rt=Ee.x,it=Ee.y,at=.5*this.scaledDistance;this.layoutVertexArray.emplaceBack((rt<<1)+(Ue?1:0),(it<<1)+(We?1:0),Math.round(63*ze)+128,Math.round(63*Be)+128,1+(0===$e?0:$e<0?-1:1)|(63&at)<<2,at>>6);var ct=Qe.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,ct),Qe.primitiveLength++),We?this.e2=ct:this.e1=ct},Qo.prototype.updateDistance=function(Ee,ze){this.distance+=Ee.dist(ze),this.scaledDistance=this.totalDistance>0?(this.clipStart+(this.clipEnd-this.clipStart)*this.distance/this.totalDistance)*(dc-1):this.distance},mn("LineBucket",Qo,{omit:["layers","patternFeatures"]});var mc=new Gn({"line-cap":new qn(Hn.layout_line["line-cap"]),"line-join":new Nn(Hn.layout_line["line-join"]),"line-miter-limit":new qn(Hn.layout_line["line-miter-limit"]),"line-round-limit":new qn(Hn.layout_line["line-round-limit"]),"line-sort-key":new Nn(Hn.layout_line["line-sort-key"])}),gc={paint:new Gn({"line-opacity":new Nn(Hn.paint_line["line-opacity"]),"line-color":new Nn(Hn.paint_line["line-color"]),"line-translate":new qn(Hn.paint_line["line-translate"]),"line-translate-anchor":new qn(Hn.paint_line["line-translate-anchor"]),"line-width":new Nn(Hn.paint_line["line-width"]),"line-gap-width":new Nn(Hn.paint_line["line-gap-width"]),"line-offset":new Nn(Hn.paint_line["line-offset"]),"line-blur":new Nn(Hn.paint_line["line-blur"]),"line-dasharray":new Zn(Hn.paint_line["line-dasharray"]),"line-pattern":new hs(Hn.paint_line["line-pattern"]),"line-gradient":new Xn(Hn.paint_line["line-gradient"])}),layout:mc},vc=new(function(Ee){function e(){Ee.apply(this,arguments)}return Ee&&(e.__proto__=Ee),e.prototype=Object.create(Ee&&Ee.prototype),e.prototype.constructor=e,e.prototype.possiblyEvaluate=function(ze,Be){return Be=new Tn(Math.floor(Be.zoom),{now:Be.now,fadeDuration:Be.fadeDuration,zoomHistory:Be.zoomHistory,transition:Be.transition}),Ee.prototype.possiblyEvaluate.call(this,ze,Be)},e.prototype.evaluate=function(ze,Be,Ue,We){return Be=c({},Be,{zoom:Math.floor(Be.zoom)}),Ee.prototype.evaluate.call(this,ze,Be,Ue,We)},e}(Nn))(gc.paint.properties["line-width"].specification);vc.useIntegerZoom=!0;var yc=function(Ee){function e(ze){Ee.call(this,ze,gc)}return Ee&&(e.__proto__=Ee),e.prototype=Object.create(Ee&&Ee.prototype),e.prototype.constructor=e,e.prototype._handleSpecialPaintPropertyUpdate=function(Ee){"line-gradient"===Ee&&this._updateGradient()},e.prototype._updateGradient=function(){var Ee=this._transitionablePaint._values["line-gradient"].value.expression;this.gradient=Da(Ee,"lineProgress"),this.gradientTexture=null},e.prototype.recalculate=function(ze){Ee.prototype.recalculate.call(this,ze),this.paint._values["line-floorwidth"]=vc.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,ze)},e.prototype.createBucket=function(Ee){return new Qo(Ee)},e.prototype.queryRadius=function(Ee){var ze=Ee,Be=is(ba("line-width",this,ze),ba("line-gap-width",this,ze)),Ue=ba("line-offset",this,ze);return Be/2+Math.abs(Ue)+_a(this.paint.get("line-translate"))},e.prototype.queryIntersectsFeature=function(Ee,ze,Ue,We,$e,Qe,rt){var it=wa(Ee,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),Qe.angle,rt),at=rt/2*is(this.paint.get("line-width").evaluate(ze,Ue),this.paint.get("line-gap-width").evaluate(ze,Ue)),ct=this.paint.get("line-offset").evaluate(ze,Ue);return ct&&(We=function(Ee,ze){for(var Ue=[],We=new Be(0,0),$e=0;$e=3)for(var $e=0;$e0?ze+2*Ee:Ee}var xc=Wn([{name:"a_pos_offset",components:4,type:"Int16"},{name:"a_data",components:4,type:"Uint16"}]),bc=Wn([{name:"a_projected_pos",components:3,type:"Float32"}],4),_c=(Wn([{name:"a_fade_opacity",components:1,type:"Uint32"}],4),Wn([{name:"a_placed",components:2,type:"Uint8"},{name:"a_shift",components:2,type:"Float32"}])),wc=(Wn([{type:"Int16",name:"anchorPointX"},{type:"Int16",name:"anchorPointY"},{type:"Int16",name:"x1"},{type:"Int16",name:"y1"},{type:"Int16",name:"x2"},{type:"Int16",name:"y2"},{type:"Uint32",name:"featureIndex"},{type:"Uint16",name:"sourceLayerIndex"},{type:"Uint16",name:"bucketIndex"},{type:"Int16",name:"radius"},{type:"Int16",name:"signedDistanceFromAnchor"}]),Wn([{name:"a_pos",components:2,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4)),Tc=Wn([{name:"a_pos",components:2,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4);function ps(Ee,ze,Be){return Ee.sections.forEach((function(Ee){Ee.text=function(Ee,ze,Be){var Ue=ze.layout.get("text-transform").evaluate(Be,{});return"uppercase"===Ue?Ee=Ee.toLocaleUpperCase():"lowercase"===Ue&&(Ee=Ee.toLocaleLowerCase()),fs.applyArabicShaping&&(Ee=fs.applyArabicShaping(Ee)),Ee}(Ee.text,ze,Be)})),Ee}Wn([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Uint16",name:"glyphStartIndex"},{type:"Uint16",name:"numGlyphs"},{type:"Uint32",name:"vertexStartIndex"},{type:"Uint32",name:"lineStartIndex"},{type:"Uint32",name:"lineLength"},{type:"Uint16",name:"segment"},{type:"Uint16",name:"lowerSize"},{type:"Uint16",name:"upperSize"},{type:"Float32",name:"lineOffsetX"},{type:"Float32",name:"lineOffsetY"},{type:"Uint8",name:"writingMode"},{type:"Uint8",name:"placedOrientation"},{type:"Uint8",name:"hidden"},{type:"Uint32",name:"crossTileID"}]),Wn([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Int16",name:"rightJustifiedTextSymbolIndex"},{type:"Int16",name:"centerJustifiedTextSymbolIndex"},{type:"Int16",name:"leftJustifiedTextSymbolIndex"},{type:"Int16",name:"verticalPlacedTextSymbolIndex"},{type:"Uint16",name:"key"},{type:"Uint16",name:"textBoxStartIndex"},{type:"Uint16",name:"textBoxEndIndex"},{type:"Uint16",name:"verticalTextBoxStartIndex"},{type:"Uint16",name:"verticalTextBoxEndIndex"},{type:"Uint16",name:"iconBoxStartIndex"},{type:"Uint16",name:"iconBoxEndIndex"},{type:"Uint16",name:"featureIndex"},{type:"Uint16",name:"numHorizontalGlyphVertices"},{type:"Uint16",name:"numVerticalGlyphVertices"},{type:"Uint16",name:"numIconVertices"},{type:"Uint32",name:"crossTileID"},{type:"Float32",name:"textBoxScale"},{type:"Float32",name:"radialTextOffset"}]),Wn([{type:"Float32",name:"offsetX"}]),Wn([{type:"Int16",name:"x"},{type:"Int16",name:"y"},{type:"Int16",name:"tileUnitDistanceFromAnchor"}]);var kc={"!":"︕","#":"#",$:"$","%":"%","&":"&","(":"︵",")":"︶","*":"*","+":"+",",":"︐","-":"︲",".":"・","/":"/",":":"︓",";":"︔","<":"︿","=":"=",">":"﹀","?":"︖","@":"@","[":"﹇","\\":"\","]":"﹈","^":"^",_:"︳","`":"`","{":"︷","|":"―","}":"︸","~":"~","¢":"¢","£":"£","¥":"¥","¦":"¦","¬":"¬","¯":" ̄","–":"︲","—":"︱","‘":"﹃","’":"﹄","“":"﹁","”":"﹂","…":"︙","‧":"・","₩":"₩","、":"︑","。":"︒","〈":"︿","〉":"﹀","《":"︽","》":"︾","「":"﹁","」":"﹂","『":"﹃","』":"﹄","【":"︻","】":"︼","〔":"︹","〕":"︺","〖":"︗","〗":"︘","!":"︕","(":"︵",")":"︶",",":"︐","-":"︲",".":"・",":":"︓",";":"︔","<":"︿",">":"﹀","?":"︖","[":"﹇","]":"﹈","_":"︳","{":"︷","|":"―","}":"︸","⦅":"︵","⦆":"︶","。":"︒","「":"﹁","」":"﹂"},Ac={horizontal:1,vertical:2,horizontalOnly:3},ys=function(){this.text="",this.sectionIndex=[],this.sections=[]};function ds(Ee,ze,Be,Ue,We,$e,Qe,rt,it,at,ct){var ft,xt=ys.fromFeature(Ee,Be);at===Ac.vertical&&xt.verticalizePunctuation();var kt=fs.processBidirectionalText,Lt=fs.processStyledBidirectionalText;if(kt&&1===xt.sections.length){ft=[];for(var Ut=0,er=kt(xt.toString(),_s(xt,rt,Ue,ze));Ut=0&&Ue>=Ee&&Mc[this.text.charCodeAt(Ue)];Ue--)Be--;this.text=this.text.substring(Ee,Be),this.sectionIndex=this.sectionIndex.slice(Ee,Be)},ys.prototype.substring=function(Ee,ze){var Be=new ys;return Be.text=this.text.substring(Ee,ze),Be.sectionIndex=this.sectionIndex.slice(Ee,ze),Be.sections=this.sections,Be},ys.prototype.toString=function(){return this.text},ys.prototype.getMaxScale=function(){var Ee=this;return this.sectionIndex.reduce((function(ze,Be){return Math.max(ze,Ee.sections[Be].scale)}),0)};var Mc={9:!0,10:!0,11:!0,12:!0,13:!0,32:!0},Sc={};function gs(Ee,ze,Be,Ue){var We=Math.pow(Ee-ze,2);return Ue?Ee=0,it=0,at=0;at0)&&("constant"!==We.value.kind||We.value.value.length>0),it="constant"!==Qe.value.kind||Qe.value.value&&Qe.value.value.length>0,at=Ue.get("symbol-sort-key");if(this.features=[],rt||it){for(var ct=ze.iconDependencies,ft=ze.glyphDependencies,xt=new Tn(this.zoom),kt=0,Lt=Ee;kt=0;for(var hn=0,dn=ar.sections;hn=0;rt--)$e[rt]={x:ze[rt].x,y:ze[rt].y,tileUnitDistanceFromAnchor:We},rt>0&&(We+=ze[rt-1].dist(ze[rt]));for(var it=0;it0;this.addCollisionDebugVertices($e,Qe,rt,it,at?this.collisionCircle:this.collisionBox,We.anchorPoint,Be,at)}},Os.prototype.generateCollisionDebugBuffers=function(){for(var Ee=0;Ee0},Os.prototype.hasIconData=function(){return this.icon.segments.get().length>0},Os.prototype.hasCollisionBoxData=function(){return this.collisionBox.segments.get().length>0},Os.prototype.hasCollisionCircleData=function(){return this.collisionCircle.segments.get().length>0},Os.prototype.addIndicesForPlacedTextSymbol=function(Ee){for(var ze=this.text.placedSymbolArray.get(Ee),Be=ze.vertexStartIndex+4*ze.numGlyphs,Ue=ze.vertexStartIndex;Ue1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(Ee),this.sortedAngle=Ee,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(var Be=0,Ue=this.symbolInstanceIndexes;Be=0&&Ue.indexOf(Ee)===Be&&ze.addIndicesForPlacedTextSymbol(Ee)})),$e.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedTextSymbol($e.verticalPlacedTextSymbolIndex);var Qe=this.icon.placedSymbolArray.get(We);if(Qe.numGlyphs){var rt=Qe.vertexStartIndex;this.icon.indexArray.emplaceBack(rt,rt+1,rt+2),this.icon.indexArray.emplaceBack(rt+1,rt+2,rt+3)}}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}},mn("SymbolBucket",Os,{omit:["layers","collisionBoxArray","features","compareText"]}),Os.MAX_GLYPHS=65535,Os.addDynamicAttributes=Ts;var Dc=new Gn({"symbol-placement":new qn(Hn.layout_symbol["symbol-placement"]),"symbol-spacing":new qn(Hn.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new qn(Hn.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new Nn(Hn.layout_symbol["symbol-sort-key"]),"symbol-z-order":new qn(Hn.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new qn(Hn.layout_symbol["icon-allow-overlap"]),"icon-ignore-placement":new qn(Hn.layout_symbol["icon-ignore-placement"]),"icon-optional":new qn(Hn.layout_symbol["icon-optional"]),"icon-rotation-alignment":new qn(Hn.layout_symbol["icon-rotation-alignment"]),"icon-size":new Nn(Hn.layout_symbol["icon-size"]),"icon-text-fit":new qn(Hn.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new qn(Hn.layout_symbol["icon-text-fit-padding"]),"icon-image":new Nn(Hn.layout_symbol["icon-image"]),"icon-rotate":new Nn(Hn.layout_symbol["icon-rotate"]),"icon-padding":new qn(Hn.layout_symbol["icon-padding"]),"icon-keep-upright":new qn(Hn.layout_symbol["icon-keep-upright"]),"icon-offset":new Nn(Hn.layout_symbol["icon-offset"]),"icon-anchor":new Nn(Hn.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new qn(Hn.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new qn(Hn.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new qn(Hn.layout_symbol["text-rotation-alignment"]),"text-field":new Nn(Hn.layout_symbol["text-field"]),"text-font":new Nn(Hn.layout_symbol["text-font"]),"text-size":new Nn(Hn.layout_symbol["text-size"]),"text-max-width":new Nn(Hn.layout_symbol["text-max-width"]),"text-line-height":new qn(Hn.layout_symbol["text-line-height"]),"text-letter-spacing":new Nn(Hn.layout_symbol["text-letter-spacing"]),"text-justify":new Nn(Hn.layout_symbol["text-justify"]),"text-radial-offset":new Nn(Hn.layout_symbol["text-radial-offset"]),"text-variable-anchor":new qn(Hn.layout_symbol["text-variable-anchor"]),"text-anchor":new Nn(Hn.layout_symbol["text-anchor"]),"text-max-angle":new qn(Hn.layout_symbol["text-max-angle"]),"text-writing-mode":new qn(Hn.layout_symbol["text-writing-mode"]),"text-rotate":new Nn(Hn.layout_symbol["text-rotate"]),"text-padding":new qn(Hn.layout_symbol["text-padding"]),"text-keep-upright":new qn(Hn.layout_symbol["text-keep-upright"]),"text-transform":new Nn(Hn.layout_symbol["text-transform"]),"text-offset":new Nn(Hn.layout_symbol["text-offset"]),"text-allow-overlap":new qn(Hn.layout_symbol["text-allow-overlap"]),"text-ignore-placement":new qn(Hn.layout_symbol["text-ignore-placement"]),"text-optional":new qn(Hn.layout_symbol["text-optional"])}),Ic={paint:new Gn({"icon-opacity":new Nn(Hn.paint_symbol["icon-opacity"]),"icon-color":new Nn(Hn.paint_symbol["icon-color"]),"icon-halo-color":new Nn(Hn.paint_symbol["icon-halo-color"]),"icon-halo-width":new Nn(Hn.paint_symbol["icon-halo-width"]),"icon-halo-blur":new Nn(Hn.paint_symbol["icon-halo-blur"]),"icon-translate":new qn(Hn.paint_symbol["icon-translate"]),"icon-translate-anchor":new qn(Hn.paint_symbol["icon-translate-anchor"]),"text-opacity":new Nn(Hn.paint_symbol["text-opacity"]),"text-color":new Nn(Hn.paint_symbol["text-color"],{runtimeType:ni,getOverride:function(Ee){return Ee.textColor},hasOverride:function(Ee){return!!Ee.textColor}}),"text-halo-color":new Nn(Hn.paint_symbol["text-halo-color"]),"text-halo-width":new Nn(Hn.paint_symbol["text-halo-width"]),"text-halo-blur":new Nn(Hn.paint_symbol["text-halo-blur"]),"text-translate":new qn(Hn.paint_symbol["text-translate"]),"text-translate-anchor":new qn(Hn.paint_symbol["text-translate-anchor"])}),layout:Dc},Us=function(Ee){this.type=Ee.property.overrides?Ee.property.overrides.runtimeType:Jn,this.defaultValue=Ee};Us.prototype.evaluate=function(Ee){if(Ee.formattedSection){var ze=this.defaultValue.property.overrides;if(ze&&ze.hasOverride(Ee.formattedSection))return ze.getOverride(Ee.formattedSection)}return Ee.feature&&Ee.featureState?this.defaultValue.evaluate(Ee.feature,Ee.featureState):this.defaultValue.property.specification.default},Us.prototype.eachChild=function(Ee){this.defaultValue.isConstant()||Ee(this.defaultValue.value._styleExpression.expression)},Us.prototype.possibleOutputs=function(){return[void 0]},Us.prototype.serialize=function(){return null},mn("FormatSectionOverride",Us,{omit:["defaultValue"]});var zc=function(Ee){function e(ze){Ee.call(this,ze,Ic)}return Ee&&(e.__proto__=Ee),e.prototype=Object.create(Ee&&Ee.prototype),e.prototype.constructor=e,e.prototype.recalculate=function(ze){if(Ee.prototype.recalculate.call(this,ze),"auto"===this.layout.get("icon-rotation-alignment")&&("point"!==this.layout.get("symbol-placement")?this.layout._values["icon-rotation-alignment"]="map":this.layout._values["icon-rotation-alignment"]="viewport"),"auto"===this.layout.get("text-rotation-alignment")&&("point"!==this.layout.get("symbol-placement")?this.layout._values["text-rotation-alignment"]="map":this.layout._values["text-rotation-alignment"]="viewport"),"auto"===this.layout.get("text-pitch-alignment")&&(this.layout._values["text-pitch-alignment"]=this.layout.get("text-rotation-alignment")),"auto"===this.layout.get("icon-pitch-alignment")&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment")),"point"===this.layout.get("symbol-placement")){var Be=this.layout.get("text-writing-mode");if(Be){for(var Ue=[],We=0,$e=Be;We<$e.length;We+=1){var Qe=$e[We];Ue.indexOf(Qe)<0&&Ue.push(Qe)}this.layout._values["text-writing-mode"]=Ue}else this.layout._values["text-writing-mode"]=["horizontal"]}this._setPaintOverrides()},e.prototype.getValueAndResolveTokens=function(Ee,ze){var Be=this.layout.get(Ee).evaluate(ze,{}),Ue=this._unevaluatedLayout._values[Ee];return Ue.isDataDriven()||kr(Ue.value)?Be:function(Ee,ze){return ze.replace(/{([^{}]+)}/g,(function(ze,Be){return Be in Ee?String(Ee[Be]):""}))}(ze.properties,Be)},e.prototype.createBucket=function(Ee){return new Os(Ee)},e.prototype.queryRadius=function(){return 0},e.prototype.queryIntersectsFeature=function(){return!1},e.prototype._setPaintOverrides=function(){for(var Ee=0,ze=Ic.paint.overridableProperties;Ee=0;xt--){var kt=Qe[xt];if(!(ft.w>kt.w||ft.h>kt.h)){if(ft.x=kt.x,ft.y=kt.y,it=Math.max(it,ft.y+ft.h),rt=Math.max(rt,ft.x+ft.w),ft.w===kt.w&&ft.h===kt.h){var Lt=Qe.pop();xt>1,ct=-7,ft=Be?We-1:0,xt=Be?-1:1,kt=Ee[ze+ft];for(ft+=xt,$e=kt&(1<<-ct)-1,kt>>=-ct,ct+=rt;ct>0;$e=256*$e+Ee[ze+ft],ft+=xt,ct-=8);for(Qe=$e&(1<<-ct)-1,$e>>=-ct,ct+=Ue;ct>0;Qe=256*Qe+Ee[ze+ft],ft+=xt,ct-=8);if(0===$e)$e=1-at;else{if($e===it)return Qe?NaN:1/0*(kt?-1:1);Qe+=Math.pow(2,Ue),$e-=at}return(kt?-1:1)*Qe*Math.pow(2,$e-Ue)},nu=function(Ee,ze,Be,Ue,We,$e){var Qe,rt,it,at=8*$e-We-1,ct=(1<>1,xt=23===We?Math.pow(2,-24)-Math.pow(2,-77):0,kt=Ue?0:$e-1,Lt=Ue?1:-1,Ut=ze<0||0===ze&&1/ze<0?1:0;for(ze=Math.abs(ze),isNaN(ze)||ze===1/0?(rt=isNaN(ze)?1:0,Qe=ct):(Qe=Math.floor(Math.log(ze)/Math.LN2),ze*(it=Math.pow(2,-Qe))<1&&(Qe--,it*=2),(ze+=Qe+ft>=1?xt/it:xt*Math.pow(2,1-ft))*it>=2&&(Qe++,it/=2),Qe+ft>=ct?(rt=0,Qe=ct):Qe+ft>=1?(rt=(ze*it-1)*Math.pow(2,We),Qe+=ft):(rt=ze*Math.pow(2,ft-1)*Math.pow(2,We),Qe=0));We>=8;Ee[Be+kt]=255&rt,kt+=Lt,rt/=256,We-=8);for(Qe=Qe<0;Ee[Be+kt]=255&Qe,kt+=Lt,Qe/=256,at-=8);Ee[Be+kt-Lt]|=128*Ut},Yc=au;function au(Ee){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(Ee)?Ee:new Uint8Array(Ee||0),this.pos=0,this.type=0,this.length=this.buf.length}function ou(Ee){return Ee.type===au.Bytes?Ee.readVarint()+Ee.pos:Ee.pos+1}function su(Ee,ze,Be){return Be?4294967296*ze+(Ee>>>0):4294967296*(ze>>>0)+(Ee>>>0)}function uu(Ee,ze,Be){var Ue=ze<=16383?1:ze<=2097151?2:ze<=268435455?3:Math.floor(Math.log(ze)/(7*Math.LN2));Be.realloc(Ue);for(var We=Be.pos-1;We>=Ee;We--)Be.buf[We+Ue]=Be.buf[We]}function lu(Ee,ze){for(var Be=0;Be>>8,Ee[Be+2]=ze>>>16,Ee[Be+3]=ze>>>24}function bu(Ee,ze){return(Ee[ze]|Ee[ze+1]<<8|Ee[ze+2]<<16)+(Ee[ze+3]<<24)}function wu(Ee,ze,Be){1===Ee&&Be.readMessage(Au,ze)}function Au(Ee,ze,Be){if(3===Ee){var Ue=Be.readMessage(ku,{}),We=Ue.id,$e=Ue.bitmap,Qe=Ue.width,rt=Ue.height,it=Ue.left,at=Ue.top,ct=Ue.advance;ze.push({id:We,bitmap:new Fa({width:Qe+6,height:rt+6},$e),metrics:{width:Qe,height:rt,left:it,top:at,advance:ct}})}}function ku(Ee,ze,Be){1===Ee?ze.id=Be.readVarint():2===Ee?ze.bitmap=Be.readBytes():3===Ee?ze.width=Be.readVarint():4===Ee?ze.height=Be.readVarint():5===Ee?ze.left=Be.readSVarint():6===Ee?ze.top=Be.readSVarint():7===Ee&&(ze.advance=Be.readVarint())}au.Varint=0,au.Fixed64=1,au.Bytes=2,au.Fixed32=5,au.prototype={destroy:function(){this.buf=null},readFields:function(Ee,ze,Be){for(Be=Be||this.length;this.pos>3,$e=this.pos;this.type=7&Ue,Ee(We,ze,this),this.pos===$e&&this.skip(Ue)}return ze},readMessage:function(Ee,ze){return this.readFields(Ee,ze,this.readVarint()+this.pos)},readFixed32:function(){var Ee=gu(this.buf,this.pos);return this.pos+=4,Ee},readSFixed32:function(){var Ee=bu(this.buf,this.pos);return this.pos+=4,Ee},readFixed64:function(){var Ee=gu(this.buf,this.pos)+4294967296*gu(this.buf,this.pos+4);return this.pos+=8,Ee},readSFixed64:function(){var Ee=gu(this.buf,this.pos)+4294967296*bu(this.buf,this.pos+4);return this.pos+=8,Ee},readFloat:function(){var Ee=ru(this.buf,this.pos,!0,23,4);return this.pos+=4,Ee},readDouble:function(){var Ee=ru(this.buf,this.pos,!0,52,8);return this.pos+=8,Ee},readVarint:function(Ee){var ze,Be,Ue=this.buf;return ze=127&(Be=Ue[this.pos++]),Be<128?ze:(ze|=(127&(Be=Ue[this.pos++]))<<7,Be<128?ze:(ze|=(127&(Be=Ue[this.pos++]))<<14,Be<128?ze:(ze|=(127&(Be=Ue[this.pos++]))<<21,Be<128?ze:function(Ee,ze,Be){var Ue,We,$e=Be.buf;if(Ue=(112&(We=$e[Be.pos++]))>>4,We<128)return su(Ee,Ue,ze);if(Ue|=(127&(We=$e[Be.pos++]))<<3,We<128)return su(Ee,Ue,ze);if(Ue|=(127&(We=$e[Be.pos++]))<<10,We<128)return su(Ee,Ue,ze);if(Ue|=(127&(We=$e[Be.pos++]))<<17,We<128)return su(Ee,Ue,ze);if(Ue|=(127&(We=$e[Be.pos++]))<<24,We<128)return su(Ee,Ue,ze);if(Ue|=(1&(We=$e[Be.pos++]))<<31,We<128)return su(Ee,Ue,ze);throw new Error("Expected varint not more than 10 bytes")}(ze|=(15&(Be=Ue[this.pos]))<<28,Ee,this))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var Ee=this.readVarint();return Ee%2==1?(Ee+1)/-2:Ee/2},readBoolean:function(){return Boolean(this.readVarint())},readString:function(){var Ee=this.readVarint()+this.pos,ze=function(Ee,ze,Be){for(var Ue="",We=ze;We239?4:it>223?3:it>191?2:1;if(We+ct>Be)break;1===ct?it<128&&(at=it):2===ct?128==(192&($e=Ee[We+1]))&&(at=(31&it)<<6|63&$e)<=127&&(at=null):3===ct?($e=Ee[We+1],Qe=Ee[We+2],128==(192&$e)&&128==(192&Qe)&&((at=(15&it)<<12|(63&$e)<<6|63&Qe)<=2047||at>=55296&&at<=57343)&&(at=null)):4===ct&&($e=Ee[We+1],Qe=Ee[We+2],rt=Ee[We+3],128==(192&$e)&&128==(192&Qe)&&128==(192&rt)&&((at=(15&it)<<18|(63&$e)<<12|(63&Qe)<<6|63&rt)<=65535||at>=1114112)&&(at=null)),null===at?(at=65533,ct=1):at>65535&&(at-=65536,Ue+=String.fromCharCode(at>>>10&1023|55296),at=56320|1023&at),Ue+=String.fromCharCode(at),We+=ct}return Ue}(this.buf,this.pos,Ee);return this.pos=Ee,ze},readBytes:function(){var Ee=this.readVarint()+this.pos,ze=this.buf.subarray(this.pos,Ee);return this.pos=Ee,ze},readPackedVarint:function(Ee,ze){if(this.type!==au.Bytes)return Ee.push(this.readVarint(ze));var Be=ou(this);for(Ee=Ee||[];this.pos127;);else if(ze===au.Bytes)this.pos=this.readVarint()+this.pos;else if(ze===au.Fixed32)this.pos+=4;else{if(ze!==au.Fixed64)throw new Error("Unimplemented type: "+ze);this.pos+=8}},writeTag:function(Ee,ze){this.writeVarint(Ee<<3|ze)},realloc:function(Ee){for(var ze=this.length||16;ze268435455||Ee<0?function(Ee,ze){var Be,Ue;if(Ee>=0?(Be=Ee%4294967296|0,Ue=Ee/4294967296|0):(Ue=~(-Ee/4294967296),4294967295^(Be=~(-Ee%4294967296))?Be=Be+1|0:(Be=0,Ue=Ue+1|0)),Ee>=0x10000000000000000||Ee<-0x10000000000000000)throw new Error("Given varint doesn't fit into 10 bytes");ze.realloc(10),function(Ee,ze,Be){Be.buf[Be.pos++]=127&Ee|128,Ee>>>=7,Be.buf[Be.pos++]=127&Ee|128,Ee>>>=7,Be.buf[Be.pos++]=127&Ee|128,Ee>>>=7,Be.buf[Be.pos++]=127&Ee|128,Ee>>>=7,Be.buf[Be.pos]=127&Ee}(Be,0,ze),function(Ee,ze){var Be=(7&Ee)<<4;ze.buf[ze.pos++]|=Be|((Ee>>>=3)?128:0),Ee&&(ze.buf[ze.pos++]=127&Ee|((Ee>>>=7)?128:0),Ee&&(ze.buf[ze.pos++]=127&Ee|((Ee>>>=7)?128:0),Ee&&(ze.buf[ze.pos++]=127&Ee|((Ee>>>=7)?128:0),Ee&&(ze.buf[ze.pos++]=127&Ee|((Ee>>>=7)?128:0),Ee&&(ze.buf[ze.pos++]=127&Ee)))))}(Ue,ze)}(Ee,this):(this.realloc(4),this.buf[this.pos++]=127&Ee|(Ee>127?128:0),Ee<=127||(this.buf[this.pos++]=127&(Ee>>>=7)|(Ee>127?128:0),Ee<=127||(this.buf[this.pos++]=127&(Ee>>>=7)|(Ee>127?128:0),Ee<=127||(this.buf[this.pos++]=Ee>>>7&127))))},writeSVarint:function(Ee){this.writeVarint(Ee<0?2*-Ee-1:2*Ee)},writeBoolean:function(Ee){this.writeVarint(Boolean(Ee))},writeString:function(Ee){Ee=String(Ee),this.realloc(4*Ee.length),this.pos++;var ze=this.pos;this.pos=function(Ee,ze,Be){for(var Ue,We,$e=0;$e55295&&Ue<57344){if(!We){Ue>56319||$e+1===ze.length?(Ee[Be++]=239,Ee[Be++]=191,Ee[Be++]=189):We=Ue;continue}if(Ue<56320){Ee[Be++]=239,Ee[Be++]=191,Ee[Be++]=189,We=Ue;continue}Ue=We-55296<<10|Ue-56320|65536,We=null}else We&&(Ee[Be++]=239,Ee[Be++]=191,Ee[Be++]=189,We=null);Ue<128?Ee[Be++]=Ue:(Ue<2048?Ee[Be++]=Ue>>6|192:(Ue<65536?Ee[Be++]=Ue>>12|224:(Ee[Be++]=Ue>>18|240,Ee[Be++]=Ue>>12&63|128),Ee[Be++]=Ue>>6&63|128),Ee[Be++]=63&Ue|128)}return Be}(this.buf,Ee,this.pos);var Be=this.pos-ze;Be>=128&&uu(ze,Be,this),this.pos=ze-1,this.writeVarint(Be),this.pos+=Be},writeFloat:function(Ee){this.realloc(4),nu(this.buf,Ee,this.pos,!0,23,4),this.pos+=4},writeDouble:function(Ee){this.realloc(8),nu(this.buf,Ee,this.pos,!0,52,8),this.pos+=8},writeBytes:function(Ee){var ze=Ee.length;this.writeVarint(ze),this.realloc(ze);for(var Be=0;Be=128&&uu(Be,Ue,this),this.pos=Be-1,this.writeVarint(Ue),this.pos+=Ue},writeMessage:function(Ee,ze,Be){this.writeTag(Ee,au.Bytes),this.writeRawMessage(ze,Be)},writePackedVarint:function(Ee,ze){ze.length&&this.writeMessage(Ee,lu,ze)},writePackedSVarint:function(Ee,ze){ze.length&&this.writeMessage(Ee,pu,ze)},writePackedBoolean:function(Ee,ze){ze.length&&this.writeMessage(Ee,fu,ze)},writePackedFloat:function(Ee,ze){ze.length&&this.writeMessage(Ee,cu,ze)},writePackedDouble:function(Ee,ze){ze.length&&this.writeMessage(Ee,hu,ze)},writePackedFixed32:function(Ee,ze){ze.length&&this.writeMessage(Ee,yu,ze)},writePackedSFixed32:function(Ee,ze){ze.length&&this.writeMessage(Ee,du,ze)},writePackedFixed64:function(Ee,ze){ze.length&&this.writeMessage(Ee,mu,ze)},writePackedSFixed64:function(Ee,ze){ze.length&&this.writeMessage(Ee,vu,ze)},writeBytesField:function(Ee,ze){this.writeTag(Ee,au.Bytes),this.writeBytes(ze)},writeFixed32Field:function(Ee,ze){this.writeTag(Ee,au.Fixed32),this.writeFixed32(ze)},writeSFixed32Field:function(Ee,ze){this.writeTag(Ee,au.Fixed32),this.writeSFixed32(ze)},writeFixed64Field:function(Ee,ze){this.writeTag(Ee,au.Fixed64),this.writeFixed64(ze)},writeSFixed64Field:function(Ee,ze){this.writeTag(Ee,au.Fixed64),this.writeSFixed64(ze)},writeVarintField:function(Ee,ze){this.writeTag(Ee,au.Varint),this.writeVarint(ze)},writeSVarintField:function(Ee,ze){this.writeTag(Ee,au.Varint),this.writeSVarint(ze)},writeStringField:function(Ee,ze){this.writeTag(Ee,au.Bytes),this.writeString(ze)},writeFloatField:function(Ee,ze){this.writeTag(Ee,au.Fixed32),this.writeFloat(ze)},writeDoubleField:function(Ee,ze){this.writeTag(Ee,au.Fixed64),this.writeDouble(ze)},writeBooleanField:function(Ee,ze){this.writeVarintField(Ee,Boolean(ze))}};var zu=function(Ee){var ze=this;this._callback=Ee,this._triggered=!1,"undefined"!=typeof MessageChannel&&(this._channel=new MessageChannel,this._channel.port2.onmessage=function(){ze._triggered=!1,ze._callback()})};zu.prototype.trigger=function(){var Ee=this;this._triggered||(this._triggered=!0,this._channel?this._channel.port1.postMessage(!0):setTimeout((function(){Ee._triggered=!1,Ee._callback()}),0))};var Iu=function(Ee,ze,Be){this.target=Ee,this.parent=ze,this.mapId=Be,this.callbacks={},this.tasks={},this.taskQueue=[],this.cancelCallbacks={},m(["receive","process"],this),this.invoker=new zu(this.process),this.target.addEventListener("message",this.receive,!1)};function Cu(Ee,ze,Be){var Ue=2*Math.PI*6378137/256/Math.pow(2,Be);return[Ee*Ue-2*Math.PI*6378137/2,ze*Ue-2*Math.PI*6378137/2]}Iu.prototype.send=function(Ee,ze,Be,Ue){var We=this,$e=Math.round(1e18*Math.random()).toString(36).substring(0,10);Be&&(this.callbacks[$e]=Be);var Qe=[];return this.target.postMessage({id:$e,type:Ee,hasCallback:!!Be,targetMapId:Ue,sourceMapId:this.mapId,data:gn(ze,Qe)},Qe),{cancel:function(){Be&&delete We.callbacks[$e],We.target.postMessage({id:$e,type:"",targetMapId:Ue,sourceMapId:We.mapId})}}},Iu.prototype.receive=function(Ee){var ze=Ee.data,Be=ze.id;if(Be&&(!ze.targetMapId||this.mapId===ze.targetMapId))if(""===ze.type){delete this.tasks[Be];var Ue=this.cancelCallbacks[Be];delete this.cancelCallbacks[Be],Ue&&Ue()}else this.tasks[Be]=ze,this.taskQueue.push(Be),this.invoker.trigger()},Iu.prototype.process=function(){var Ee=this;if(this.taskQueue.length){var ze=this.taskQueue.shift(),Be=this.tasks[ze];if(delete this.tasks[ze],this.taskQueue.length&&this.invoker.trigger(),Be)if(""===Be.type){var Ue=this.callbacks[ze];delete this.callbacks[ze],Ue&&(Be.error?Ue(xn(Be.error)):Ue(null,xn(Be.data)))}else{var We=!1,$e=Be.hasCallback?function(Be,Ue){We=!0,delete Ee.cancelCallbacks[ze];var $e=[];Ee.target.postMessage({id:ze,type:"",sourceMapId:Ee.mapId,error:Be?gn(Be):null,data:gn(Ue,$e)},$e)}:function(Ee){We=!0},Qe=null,rt=xn(Be.data);if(this.parent[Be.type])Qe=this.parent[Be.type](Be.sourceMapId,rt,$e);else if(this.parent.getWorkerSource){var it=Be.type.split(".");Qe=this.parent.getWorkerSource(Be.sourceMapId,it[0],rt.source)[it[1]](rt,$e)}else $e(new Error("Could not find function "+Be.type));!We&&Qe&&Qe.cancel&&(this.cancelCallbacks[ze]=Qe.cancel)}}},Iu.prototype.remove=function(){this.target.removeEventListener("message",this.receive,!1)};var Bu=function(Ee,ze){Ee&&(ze?this.setSouthWest(Ee).setNorthEast(ze):4===Ee.length?this.setSouthWest([Ee[0],Ee[1]]).setNorthEast([Ee[2],Ee[3]]):this.setSouthWest(Ee[0]).setNorthEast(Ee[1]))};Bu.prototype.setNorthEast=function(Ee){return this._ne=Ee instanceof Eu?new Eu(Ee.lng,Ee.lat):Eu.convert(Ee),this},Bu.prototype.setSouthWest=function(Ee){return this._sw=Ee instanceof Eu?new Eu(Ee.lng,Ee.lat):Eu.convert(Ee),this},Bu.prototype.extend=function(Ee){var ze,Be,Ue=this._sw,We=this._ne;if(Ee instanceof Eu)ze=Ee,Be=Ee;else{if(!(Ee instanceof Bu))return Array.isArray(Ee)?Ee.every(Array.isArray)?this.extend(Bu.convert(Ee)):this.extend(Eu.convert(Ee)):this;if(ze=Ee._sw,Be=Ee._ne,!ze||!Be)return this}return Ue||We?(Ue.lng=Math.min(ze.lng,Ue.lng),Ue.lat=Math.min(ze.lat,Ue.lat),We.lng=Math.max(Be.lng,We.lng),We.lat=Math.max(Be.lat,We.lat)):(this._sw=new Eu(ze.lng,ze.lat),this._ne=new Eu(Be.lng,Be.lat)),this},Bu.prototype.getCenter=function(){return new Eu((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)},Bu.prototype.getSouthWest=function(){return this._sw},Bu.prototype.getNorthEast=function(){return this._ne},Bu.prototype.getNorthWest=function(){return new Eu(this.getWest(),this.getNorth())},Bu.prototype.getSouthEast=function(){return new Eu(this.getEast(),this.getSouth())},Bu.prototype.getWest=function(){return this._sw.lng},Bu.prototype.getSouth=function(){return this._sw.lat},Bu.prototype.getEast=function(){return this._ne.lng},Bu.prototype.getNorth=function(){return this._ne.lat},Bu.prototype.toArray=function(){return[this._sw.toArray(),this._ne.toArray()]},Bu.prototype.toString=function(){return"LngLatBounds("+this._sw.toString()+", "+this._ne.toString()+")"},Bu.prototype.isEmpty=function(){return!(this._sw&&this._ne)},Bu.convert=function(Ee){return!Ee||Ee instanceof Bu?Ee:new Bu(Ee)};var Eu=function(Ee,ze){if(isNaN(Ee)||isNaN(ze))throw new Error("Invalid LngLat object: ("+Ee+", "+ze+")");if(this.lng=+Ee,this.lat=+ze,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")};Eu.prototype.wrap=function(){return new Eu(p(this.lng,-180,180),this.lat)},Eu.prototype.toArray=function(){return[this.lng,this.lat]},Eu.prototype.toString=function(){return"LngLat("+this.lng+", "+this.lat+")"},Eu.prototype.toBounds=function(Ee){void 0===Ee&&(Ee=0);var ze=360*Ee/40075017,Be=ze/Math.cos(Math.PI/180*this.lat);return new Bu(new Eu(this.lng-Be,this.lat-ze),new Eu(this.lng+Be,this.lat+ze))},Eu.convert=function(Ee){if(Ee instanceof Eu)return Ee;if(Array.isArray(Ee)&&(2===Ee.length||3===Ee.length))return new Eu(Number(Ee[0]),Number(Ee[1]));if(!Array.isArray(Ee)&&"object"==typeof Ee&&null!==Ee)return new Eu(Number("lng"in Ee?Ee.lng:Ee.lon),Number(Ee.lat));throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: , lat: }, an object {lon: , lat: }, or an array of [, ]")};var Zc=2*Math.PI*6378137;function Pu(Ee){return Zc*Math.cos(Ee*Math.PI/180)}function Tu(Ee){return(180+Ee)/360}function Vu(Ee){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+Ee*Math.PI/360)))/360}function Fu(Ee,ze){return Ee/Pu(ze)}function Ou(Ee){var ze=180-360*Ee;return 360/Math.PI*Math.atan(Math.exp(ze*Math.PI/180))-90}var Lu=function(Ee,ze,Be){void 0===Be&&(Be=0),this.x=+Ee,this.y=+ze,this.z=+Be};Lu.fromLngLat=function(Ee,ze){void 0===ze&&(ze=0);var Be=Eu.convert(Ee);return new Lu(Tu(Be.lng),Vu(Be.lat),Fu(ze,Be.lat))},Lu.prototype.toLngLat=function(){return new Eu(360*this.x-180,Ou(this.y))},Lu.prototype.toAltitude=function(){return this.z*Pu(Ou(this.y))},Lu.prototype.meterInMercatorCoordinateUnits=function(){return 1/Zc*(Ee=Ou(this.y),1/Math.cos(Ee*Math.PI/180));var Ee};var Du=function(Ee,ze,Be){this.z=Ee,this.x=ze,this.y=Be,this.key=ju(0,Ee,ze,Be)};Du.prototype.equals=function(Ee){return this.z===Ee.z&&this.x===Ee.x&&this.y===Ee.y},Du.prototype.url=function(Ee,ze){var Be,Ue,We,$e,Qe,rt=(Be=this.x,Ue=this.y,We=this.z,$e=Cu(256*Be,256*(Ue=Math.pow(2,We)-Ue-1),We),Qe=Cu(256*(Be+1),256*(Ue+1),We),$e[0]+","+$e[1]+","+Qe[0]+","+Qe[1]),it=function(Ee,ze,Be){for(var Ue,We="",$e=Ee;$e>0;$e--)We+=(ze&(Ue=1<<$e-1)?1:0)+(Be&Ue?2:0);return We}(this.z,this.x,this.y);return Ee[(this.x+this.y)%Ee.length].replace("{prefix}",(this.x%16).toString(16)+(this.y%16).toString(16)).replace("{z}",String(this.z)).replace("{x}",String(this.x)).replace("{y}",String("tms"===ze?Math.pow(2,this.z)-this.y-1:this.y)).replace("{quadkey}",it).replace("{bbox-epsg-3857}",rt)},Du.prototype.getTilePoint=function(Ee){var ze=Math.pow(2,this.z);return new Be((Ee.x*ze-this.x)*Fl,(Ee.y*ze-this.y)*Fl)};var Uu=function(Ee,ze){this.wrap=Ee,this.canonical=ze,this.key=ju(Ee,ze.z,ze.x,ze.y)},Ru=function(Ee,ze,Be,Ue,We){this.overscaledZ=Ee,this.wrap=ze,this.canonical=new Du(Be,+Ue,+We),this.key=ju(ze,Ee,Ue,We)};function ju(Ee,ze,Be,Ue){(Ee*=2)<0&&(Ee=-1*Ee-1);var We=1<this.canonical.z?new Ru(Ee,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new Ru(Ee,this.wrap,Ee,this.canonical.x>>ze,this.canonical.y>>ze)},Ru.prototype.isChildOf=function(Ee){if(Ee.wrap!==this.wrap)return!1;var ze=this.canonical.z-Ee.canonical.z;return 0===Ee.overscaledZ||Ee.overscaledZ>ze&&Ee.canonical.y===this.canonical.y>>ze},Ru.prototype.children=function(Ee){if(this.overscaledZ>=Ee)return[new Ru(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];var ze=this.canonical.z+1,Be=2*this.canonical.x,Ue=2*this.canonical.y;return[new Ru(ze,this.wrap,ze,Be,Ue),new Ru(ze,this.wrap,ze,Be+1,Ue),new Ru(ze,this.wrap,ze,Be,Ue+1),new Ru(ze,this.wrap,ze,Be+1,Ue+1)]},Ru.prototype.isLessThan=function(Ee){return this.wrapEe.wrap)&&(this.overscaledZEe.overscaledZ)&&(this.canonical.xEe.canonical.x)&&this.canonical.y=this.dim+1||ze<-1||ze>=this.dim+1)throw new RangeError("out of range source coordinates for DEM data");return(ze+1)*this.stride+(Ee+1)},qu.prototype._unpackMapbox=function(Ee,ze,Be){return(256*Ee*256+256*ze+Be)/10-1e4},qu.prototype._unpackTerrarium=function(Ee,ze,Be){return 256*Ee+ze+Be/256-32768},qu.prototype.getPixels=function(){return new Oa({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))},qu.prototype.backfillBorder=function(Ee,ze,Be){if(this.dim!==Ee.dim)throw new Error("dem dimension mismatch");var Ue=ze*this.dim,We=ze*this.dim+this.dim,$e=Be*this.dim,Qe=Be*this.dim+this.dim;switch(ze){case-1:Ue=We-1;break;case 1:We=Ue+1}switch(Be){case-1:$e=Qe-1;break;case 1:Qe=$e+1}for(var rt=-ze*this.dim,it=-Be*this.dim,at=$e;at=0)null!==this.deletedStates[Ee][Ue]&&(this.deletedStates[Ee][Ue]=this.deletedStates[Ee][Ue]||{},this.deletedStates[Ee][Ue][Be]=null);else if(void 0!==ze&&ze>=0)if(this.stateChanges[Ee]&&this.stateChanges[Ee][Ue])for(Be in this.deletedStates[Ee][Ue]={},this.stateChanges[Ee][Ue])this.deletedStates[Ee][Ue][Be]=null;else this.deletedStates[Ee][Ue]=null;else this.deletedStates[Ee]=null}},Gu.prototype.getState=function(Ee,ze){var Be=String(ze),Ue=this.state[Ee]||{},We=this.stateChanges[Ee]||{},$e=c({},Ue[Be],We[Be]);if(null===this.deletedStates[Ee])return{};if(this.deletedStates[Ee]){var Qe=this.deletedStates[Ee][ze];if(null===Qe)return{};for(var rt in Qe)delete $e[rt]}return $e},Gu.prototype.initializeTileState=function(Ee,ze){Ee.setFeatureState(this.state,ze)},Gu.prototype.coalesceChanges=function(Ee,ze){var Be={};for(var Ue in this.stateChanges){this.state[Ue]=this.state[Ue]||{};var We={};for(var $e in this.stateChanges[Ue])this.state[Ue][$e]||(this.state[Ue][$e]={}),c(this.state[Ue][$e],this.stateChanges[Ue][$e]),We[$e]=this.state[Ue][$e];Be[Ue]=We}for(var Qe in this.deletedStates){this.state[Qe]=this.state[Qe]||{};var rt={};if(null===this.deletedStates[Qe])for(var it in this.state[Qe])rt[it]={},this.state[Qe][it]={};else for(var at in this.deletedStates[Qe]){if(null===this.deletedStates[Qe][at])this.state[Qe][at]={};else for(var ct=0,ft=Object.keys(this.deletedStates[Qe][at]);ct=0&&ct[3]>=0&&rt.insert(Qe,ct[0],ct[1],ct[2],ct[3])}},Ju.prototype.loadVTLayers=function(){return this.vtLayers||(this.vtLayers=new oc.VectorTile(new Yc(this.rawTileData)).layers,this.sourceLayerCoder=new Ku(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"])),this.vtLayers},Ju.prototype.query=function(Ee,ze,Ue){var We=this;this.loadVTLayers();for(var $e=Ee.params||{},Qe=Fl/Ee.tileSize/Ee.scale,rt=Dr($e.filter),it=Ee.queryGeometry,at=Ee.queryPadding*Qe,ct=Hu(it),ft=this.grid.query(ct.minX-at,ct.minY-at,ct.maxX+at,ct.maxY+at),xt=Hu(Ee.cameraQueryGeometry),kt=0,Lt=this.grid3D.query(xt.minX-at,xt.minY-at,xt.maxX+at,xt.maxY+at,(function(ze,Ue,We,$e){return function(Ee,ze,Ue,We,$e){for(var Qe=0,rt=Ee;Qe=it.x&&$e>=it.y)return!0}var at=[new Be(ze,Ue),new Be(ze,$e),new Be(We,$e),new Be(We,Ue)];if(Ee.length>2)for(var ct=0,ft=at;ct=0)return!0;return!1}($e,it)){var at=this.sourceLayerCoder.decode(Be),ct=this.vtLayers[at].feature(Ue);if(We(new Tn(this.tileID.overscaledZ),ct))for(var ft=0;ft-Be/2;){if(--Qe<0)return!1;rt-=Ee[Qe].dist($e),$e=Ee[Qe]}rt+=Ee[Qe].dist(Ee[Qe+1]),Qe++;for(var it=[],at=0;rtUe;)at-=it.shift().angleDelta;if(at>We)return!1;Qe++,rt+=ft.dist(xt)}return!0}function Qu(Ee){for(var ze=0,Be=0;Beat){var Lt=(at-it)/kt,Ut=be(ft.x,xt.x,Lt),er=be(ft.y,xt.y,Lt),tr=new Cc(Ut,er,xt.angleTo(ft),ct);return tr._round(),!Qe||Wu(Ee,tr,rt,Qe,ze)?tr:void 0}it+=kt}}function nl(Ee,ze,Be,Ue,We,$e,Qe,rt,it){var at=tl(Ue,$e,Qe),ct=el(Ue,We),ft=ct*Qe,xt=0===Ee[0].x||Ee[0].x===it||0===Ee[0].y||Ee[0].y===it;return ze-ft=0&&Lr=0&&Qr=0&&xt+at<=ct){var on=new Cc(Lr,Qr,rr,Lt);on._round(),Ue&&!Wu(Ee,on,$e,Ue,We)||kt.push(on)}}ft+=tr}return rt||kt.length||Qe||(kt=t(Ee,ft/2,Be,Ue,We,$e,Qe,!0,it)),kt}(Ee,xt?ze/2*rt%ze:(ct/2+2*$e)*Qe*rt%ze,ze,at,Be,ft,xt,!1,it)}$u.prototype.registerFadeDuration=function(Ee){var ze=Ee+this.timeAdded;ze>rt.z,at=new Be(rt.x*it,rt.y*it),ct=new Be(at.x+it,at.y+it),ft=this.segments.prepareSegment(4,Ue,We);Ue.emplaceBack(at.x,at.y,at.x,at.y),Ue.emplaceBack(ct.x,at.y,ct.x,at.y),Ue.emplaceBack(at.x,ct.y,at.x,ct.y),Ue.emplaceBack(ct.x,ct.y,ct.x,ct.y);var xt=ft.vertexLength;We.emplaceBack(xt,xt+1,xt+2),We.emplaceBack(xt+1,xt+2,xt+3),ft.vertexLength+=4,ft.primitiveLength+=2}this.maskedBoundsBuffer=ze.createVertexBuffer(Ue,Xc.members),this.maskedIndexBuffer=ze.createIndexBuffer(We)}},$u.prototype.hasData=function(){return"loaded"===this.state||"reloading"===this.state||"expired"===this.state},$u.prototype.patternsLoaded=function(){return this.imageAtlas&&!!Object.keys(this.imageAtlas.patternPositions).length},$u.prototype.setExpiryData=function(Ee){var ze=this.expirationTime;if(Ee.cacheControl){var Be=S(Ee.cacheControl);Be["max-age"]&&(this.expirationTime=Date.now()+1e3*Be["max-age"])}else Ee.expires&&(this.expirationTime=new Date(Ee.expires).getTime());if(this.expirationTime){var Ue=Date.now(),We=!1;if(this.expirationTime>Ue)We=!1;else if(ze)if(this.expirationTime0&&(tr=Math.max(10*it,tr),this._addLineCollisionCircles(Ee,ze,Ue,Ue.segment,rr,tr,We,$e,Qe,ft))}else{if(xt){var ar=new Be(Ut,kt),Lr=new Be(er,kt),Qr=new Be(Ut,Lt),on=new Be(er,Lt),sn=xt*Math.PI/180;ar._rotate(sn),Lr._rotate(sn),Qr._rotate(sn),on._rotate(sn),Ut=Math.min(ar.x,Lr.x,Qr.x,on.x),er=Math.max(ar.x,Lr.x,Qr.x,on.x),kt=Math.min(ar.y,Lr.y,Qr.y,on.y),Lt=Math.max(ar.y,Lr.y,Qr.y,on.y)}Ee.emplaceBack(Ue.x,Ue.y,Ut,kt,er,Lt,We,$e,Qe,0,0)}this.boxEndIndex=Ee.length};il.prototype._addLineCollisionCircles=function(Ee,ze,Be,Ue,We,$e,Qe,rt,it,at){var ct=$e/2,ft=Math.floor(We/ct)||1,xt=1+.4*Math.log(at)/Math.LN2,kt=Math.floor(ft*xt/2),Lt=-$e/2,Ut=Be,er=Ue+1,tr=Lt,rr=-We/2,ar=rr-We/4;do{if(--er<0){if(tr>rr)return;er=0;break}tr-=ze[er].dist(Ut),Ut=ze[er]}while(tr>ar);for(var Lr=ze[er].dist(ze[er+1]),Qr=-kt;QrWe&&(sn+=on-We),!(sn=ze.length)return;Lr=ze[er].dist(ze[er+1])}var cn=sn-tr,un=ze[er],hn=ze[er+1].sub(un)._unit()._mult(cn)._add(un)._round(),dn=Math.abs(sn-Lt)0)for(var Be=(this.length>>1)-1;Be>=0;Be--)this._down(Be)};function ol(Ee,ze){return Eeze?1:0}function sl(Ee,ze,Ue){void 0===ze&&(ze=1),void 0===Ue&&(Ue=!1);for(var We=1/0,$e=1/0,Qe=-1/0,rt=-1/0,it=Ee[0],at=0;atQe)&&(Qe=ct.x),(!at||ct.y>rt)&&(rt=ct.y)}var ft=Qe-We,xt=rt-$e,kt=Math.min(ft,xt),Lt=kt/2,Ut=new al([],ul);if(0===kt)return new Be(We,$e);for(var er=We;errr.d||!rr.d)&&(rr=Lr,Ue&&console.log("found best %d after %d probes",Math.round(1e4*Lr.d)/1e4,ar)),Lr.max-rr.d<=ze||(Lt=Lr.h/2,Ut.push(new ll(Lr.p.x-Lt,Lr.p.y-Lt,Lt,Ee)),Ut.push(new ll(Lr.p.x+Lt,Lr.p.y-Lt,Lt,Ee)),Ut.push(new ll(Lr.p.x-Lt,Lr.p.y+Lt,Lt,Ee)),Ut.push(new ll(Lr.p.x+Lt,Lr.p.y+Lt,Lt,Ee)),ar+=4)}return Ue&&(console.log("num probes: "+ar),console.log("best distance: "+rr.d)),rr.p}function ul(Ee,ze){return ze.max-Ee.max}function ll(Ee,ze,Ue,We){this.p=new Be(Ee,ze),this.h=Ue,this.d=function(Ee,ze){for(var Be=!1,Ue=1/0,We=0;WeEe.y!=ct.y>Ee.y&&Ee.x<(ct.x-at.x)*(Ee.y-at.y)/(ct.y-at.y)+at.x&&(Be=!Be),Ue=Math.min(Ue,ma(Ee,at,ct))}return(Be?1:-1)*Math.sqrt(Ue)}(this.p,We),this.max=this.d+this.h*Math.SQRT2}al.prototype.push=function(Ee){this.data.push(Ee),this.length++,this._up(this.length-1)},al.prototype.pop=function(){if(0!==this.length){var Ee=this.data[0],ze=this.data.pop();return this.length--,this.length>0&&(this.data[0]=ze,this._down(0)),Ee}},al.prototype.peek=function(){return this.data[0]},al.prototype._up=function(Ee){for(var ze=this.data,Be=this.compare,Ue=ze[Ee];Ee>0;){var We=Ee-1>>1,$e=ze[We];if(Be(Ue,$e)>=0)break;ze[Ee]=$e,Ee=We}ze[Ee]=Ue},al.prototype._down=function(Ee){for(var ze=this.data,Be=this.compare,Ue=this.length>>1,We=ze[Ee];Ee=0)break;ze[Ee]=Qe,Ee=$e}ze[Ee]=We};var Kc=e((function(Ee){Ee.exports=function(Ee,ze){var Be,Ue,We,$e,Qe,rt,it,at;for(Be=3&Ee.length,Ue=Ee.length-Be,We=ze,Qe=3432918353,rt=461845907,at=0;at>>16)*Qe&65535)<<16)&4294967295)<<15|it>>>17))*rt+(((it>>>16)*rt&65535)<<16)&4294967295)<<13|We>>>19))+((5*(We>>>16)&65535)<<16)&4294967295))+((58964+($e>>>16)&65535)<<16);switch(it=0,Be){case 3:it^=(255&Ee.charCodeAt(at+2))<<16;case 2:it^=(255&Ee.charCodeAt(at+1))<<8;case 1:We^=it=(65535&(it=(it=(65535&(it^=255&Ee.charCodeAt(at)))*Qe+(((it>>>16)*Qe&65535)<<16)&4294967295)<<15|it>>>17))*rt+(((it>>>16)*rt&65535)<<16)&4294967295}return We^=Ee.length,We=2246822507*(65535&(We^=We>>>16))+((2246822507*(We>>>16)&65535)<<16)&4294967295,We=3266489909*(65535&(We^=We>>>13))+((3266489909*(We>>>16)&65535)<<16)&4294967295,(We^=We>>>16)>>>0}})),Jc=e((function(Ee){Ee.exports=function(Ee,ze){for(var Be,Ue=Ee.length,We=ze^Ue,$e=0;Ue>=4;)Be=1540483477*(65535&(Be=255&Ee.charCodeAt($e)|(255&Ee.charCodeAt(++$e))<<8|(255&Ee.charCodeAt(++$e))<<16|(255&Ee.charCodeAt(++$e))<<24))+((1540483477*(Be>>>16)&65535)<<16),We=1540483477*(65535&We)+((1540483477*(We>>>16)&65535)<<16)^(Be=1540483477*(65535&(Be^=Be>>>24))+((1540483477*(Be>>>16)&65535)<<16)),Ue-=4,++$e;switch(Ue){case 3:We^=(255&Ee.charCodeAt($e+2))<<16;case 2:We^=(255&Ee.charCodeAt($e+1))<<8;case 1:We=1540483477*(65535&(We^=255&Ee.charCodeAt($e)))+((1540483477*(We>>>16)&65535)<<16)}return We=1540483477*(65535&(We^=We>>>13))+((1540483477*(We>>>16)&65535)<<16),(We^=We>>>15)>>>0}})),Qc=Kc,tu=Kc,iu=Jc;function ml(Ee,ze){var Be=0,Ue=0,We=ze/Math.sqrt(2);switch(Ee){case"top-right":case"top-left":Ue=We-7;break;case"bottom-right":case"bottom-left":Ue=7-We;break;case"bottom":Ue=7-ze;break;case"top":Ue=ze-7}switch(Ee){case"top-right":case"bottom-right":Be=-We;break;case"top-left":case"bottom-left":Be=We;break;case"left":Be=ze;break;case"right":Be=-ze}return[Be,Ue]}function vl(Ee){switch(Ee){case"right":case"top-right":case"bottom-right":return"right";case"left":case"top-left":case"bottom-left":return"left"}return"center"}Qc.murmur3=tu,Qc.murmur2=iu;var _u=65535;function xl(Ee,ze,Ue,We,$e,Qe,rt,it,at,ct,ft,xt,kt){var Lt=function(Ee,ze,Ue,We,$e,Qe,rt,it){for(var at=We.layout.get("text-rotate").evaluate(Qe,{})*Math.PI/180,ct=ze.positionedGlyphs,ft=[],xt=0;xt_u&&w(Ee.layerIds[0]+': Value for "text-size" is >= 256. Reduce your "text-size".'):"composite"===Ut.kind&&((er=[Ec*kt.compositeTextSizes[0].evaluate(Qe,{}),Ec*kt.compositeTextSizes[1].evaluate(Qe,{})])[0]>_u||er[1]>_u)&&w(Ee.layerIds[0]+': Value for "text-size" is >= 256. Reduce your "text-size".'),Ee.addSymbols(Ee.text,Lt,er,rt,$e,Qe,at,ze,it.lineStartIndex,it.lineLength);for(var tr=0,rr=ct;tr=0;Qe--)if(Ue.dist($e[Qe])yn&&(Ee.getActor().send("enforceCacheSizeLimit",vn),_n=0)},Ee.clamp=l,Ee.clearTileCache=function(Ee){var ze=self.caches.delete(dn);Ee&&ze.catch(Ee).then((function(){return Ee()}))},Ee.clone=function(Ee){var ze=new ql(16);return ze[0]=Ee[0],ze[1]=Ee[1],ze[2]=Ee[2],ze[3]=Ee[3],ze[4]=Ee[4],ze[5]=Ee[5],ze[6]=Ee[6],ze[7]=Ee[7],ze[8]=Ee[8],ze[9]=Ee[9],ze[10]=Ee[10],ze[11]=Ee[11],ze[12]=Ee[12],ze[13]=Ee[13],ze[14]=Ee[14],ze[15]=Ee[15],ze},Ee.clone$1=b,Ee.config=Lt,Ee.create=function(){var Ee=new ql(16);return ql!=Float32Array&&(Ee[1]=0,Ee[2]=0,Ee[3]=0,Ee[4]=0,Ee[6]=0,Ee[7]=0,Ee[8]=0,Ee[9]=0,Ee[11]=0,Ee[12]=0,Ee[13]=0,Ee[14]=0),Ee[0]=1,Ee[5]=1,Ee[10]=1,Ee[15]=1,Ee},Ee.create$1=function(){var Ee=new ql(9);return ql!=Float32Array&&(Ee[1]=0,Ee[2]=0,Ee[3]=0,Ee[5]=0,Ee[6]=0,Ee[7]=0),Ee[0]=1,Ee[4]=1,Ee[8]=1,Ee},Ee.create$2=function(){var Ee=new ql(4);return ql!=Float32Array&&(Ee[1]=0,Ee[2]=0),Ee[0]=1,Ee[3]=1,Ee},Ee.createCommonjsModule=e,Ee.createExpression=Sr,Ee.createLayout=Wn,Ee.createStyleLayer=function(Ee){return"custom"===Ee.type?new jc(Ee):new Vc[Ee.type](Ee)},Ee.deepEqual=o,Ee.ease=Ue,Ee.emitValidationErrors=pn,Ee.endsWith=v,Ee.enforceCacheSizeLimit=function(Ee){self.caches&&self.caches.open(dn).then((function(ze){ze.keys().then((function(Be){for(var Ue=0;Ue=Fl||at.y<0||at.y>=Fl||function(Ee,ze,Ue,We,$e,Qe,rt,it,at,ct,ft,xt,kt,Lt,Ut,er,tr,rr,ar,Lr,Qr){var on,sn,cn,un=Ee.addToLineVertexArray(ze,Ue),hn=0,dn=0,vn=0,yn={},_n=Qc(""),Mn=24*(Qe.layout.get("text-radial-offset").evaluate(ar,{})||0);if(Ee.allowVerticalPlacement&&We.vertical){var Cn=Qe.layout.get("text-rotate").evaluate(ar,{})+90,En=We.vertical;cn=new il(rt,Ue,ze,it,at,ct,En,ft,xt,kt,Ee.overscaling,Cn)}for(var Pn in We.horizontal){var In=We.horizontal[Pn];if(!on){_n=Qc(In.text);var Bn=Qe.layout.get("text-rotate").evaluate(ar,{});on=new il(rt,Ue,ze,it,at,ct,In,ft,xt,kt,Ee.overscaling,Bn)}var Hn=1===In.lineCount;if(dn+=xl(Ee,ze,In,Qe,kt,ar,Lt,un,We.vertical?Ac.horizontal:Ac.horizontalOnly,Hn?Object.keys(We.horizontal):[Pn],yn,Lr,Qr),Hn)break}We.vertical&&(vn+=xl(Ee,ze,We.vertical,Qe,kt,ar,Lt,un,Ac.vertical,["vertical"],yn,Lr,Qr));var Kn=on?on.boxStartIndex:Ee.collisionBoxArray.length,Jn=on?on.boxEndIndex:Ee.collisionBoxArray.length,ei=cn?cn.boxStartIndex:Ee.collisionBoxArray.length,ti=cn?cn.boxEndIndex:Ee.collisionBoxArray.length;if($e){var ri=function(Ee,ze,Ue,We,$e,Qe){var rt,it,at,ct,ft=ze.image,xt=Ue.layout,kt=ze.top-1/ft.pixelRatio,Lt=ze.left-1/ft.pixelRatio,Ut=ze.bottom+1/ft.pixelRatio,er=ze.right+1/ft.pixelRatio;if("none"!==xt.get("icon-text-fit")&&$e){var tr=er-Lt,rr=Ut-kt,ar=xt.get("text-size").evaluate(Qe,{})/24,Lr=$e.left*ar,Qr=$e.right*ar,on=$e.top*ar,sn=Qr-Lr,cn=$e.bottom*ar-on,un=xt.get("icon-text-fit-padding")[0],hn=xt.get("icon-text-fit-padding")[1],dn=xt.get("icon-text-fit-padding")[2],vn=xt.get("icon-text-fit-padding")[3],yn="width"===xt.get("icon-text-fit")?.5*(cn-rr):0,_n="height"===xt.get("icon-text-fit")?.5*(sn-tr):0,Mn="width"===xt.get("icon-text-fit")||"both"===xt.get("icon-text-fit")?sn:tr,Cn="height"===xt.get("icon-text-fit")||"both"===xt.get("icon-text-fit")?cn:rr;rt=new Be(Lr+_n-vn,on+yn-un),it=new Be(Lr+_n+hn+Mn,on+yn-un),at=new Be(Lr+_n+hn+Mn,on+yn+dn+Cn),ct=new Be(Lr+_n-vn,on+yn+dn+Cn)}else rt=new Be(Lt,kt),it=new Be(er,kt),at=new Be(er,Ut),ct=new Be(Lt,Ut);var En=Ue.layout.get("icon-rotate").evaluate(Qe,{})*Math.PI/180;if(En){var Pn=Math.sin(En),In=Math.cos(En),Bn=[In,-Pn,Pn,In];rt._matMult(Bn),it._matMult(Bn),ct._matMult(Bn),at._matMult(Bn)}return[{tl:rt,tr:it,bl:ct,br:at,tex:ft.paddedRect,writingMode:void 0,glyphOffset:[0,0],sectionIndex:0}]}(0,$e,Qe,0,bl(We.horizontal),ar),ni=Qe.layout.get("icon-rotate").evaluate(ar,{});sn=new il(rt,Ue,ze,it,at,ct,$e,Ut,er,!1,Ee.overscaling,ni),hn=4*ri.length;var ii=Ee.iconSizeData,ai=null;"source"===ii.kind?(ai=[Ec*Qe.layout.get("icon-size").evaluate(ar,{})])[0]>_u&&w(Ee.layerIds[0]+': Value for "icon-size" is >= 256. Reduce your "icon-size".'):"composite"===ii.kind&&((ai=[Ec*Qr.compositeIconSizes[0].evaluate(ar,{}),Ec*Qr.compositeIconSizes[1].evaluate(ar,{})])[0]>_u||ai[1]>_u)&&w(Ee.layerIds[0]+': Value for "icon-size" is >= 256. Reduce your "icon-size".'),Ee.addSymbols(Ee.icon,ri,ai,rr,tr,ar,!1,ze,un.lineStartIndex,un.lineLength)}var oi=sn?sn.boxStartIndex:Ee.collisionBoxArray.length,si=sn?sn.boxEndIndex:Ee.collisionBoxArray.length;Ee.glyphOffsetArray.length>=Os.MAX_GLYPHS&&w("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),Ee.symbolInstances.emplaceBack(ze.x,ze.y,yn.right>=0?yn.right:-1,yn.center>=0?yn.center:-1,yn.left>=0?yn.left:-1,yn.vertical||-1,_n,Kn,Jn,ei,ti,oi,si,it,dn,vn,hn,0,ft,Mn)}(Ee,at,it,Ue,We,Ee.layers[0],Ee.collisionBoxArray,ze.index,ze.sourceLayerIndex,Ee.index,Ut,ar,on,rt,tr,Lr,sn,xt,ze,$e,Qe)};if("line"===cn)for(var hn=0,dn=function(Ee,ze,Ue,We,$e){for(var Qe=[],rt=0;rt=We&&xt.x>=We||(ft.x>=We?ft=new Be(We,ft.y+(xt.y-ft.y)*((We-ft.x)/(xt.x-ft.x)))._round():xt.x>=We&&(xt=new Be(We,ft.y+(xt.y-ft.y)*((We-ft.x)/(xt.x-ft.x)))._round()),ft.y>=$e&&xt.y>=$e||(ft.y>=$e?ft=new Be(ft.x+(xt.x-ft.x)*(($e-ft.y)/(xt.y-ft.y)),$e)._round():xt.y>=$e&&(xt=new Be(ft.x+(xt.x-ft.x)*(($e-ft.y)/(xt.y-ft.y)),$e)._round()),at&&ft.equals(at[at.length-1])||(at=[ft],Qe.push(at)),at.push(xt)))))}return Qe}(ze.geometry,0,0,Fl,Fl);hn1){var In=rl(Pn,Qr,Ue.vertical||kt,We,24,er);In&&I(Pn,In)}}else if("Polygon"===ze.type)for(var Bn=0,Hn=_o(ze.geometry,0);Bn=cn.maxzoom||"none"!==cn.visibility&&(a(sn,this.zoom),(xt[cn.id]=cn.createBucket({index:rt.bucketLayerIDs.length,layers:sn,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:tr,sourceID:this.source})).populate(rr,kt),rt.bucketLayerIDs.push(sn.map((function(Ee){return Ee.id}))))}}}var un=Ee.mapObject(kt.glyphDependencies,(function(Ee){return Object.keys(Ee).map(Number)}));Object.keys(un).length?Ue.send("getGlyphs",{uid:this.uid,stacks:un},(function(Ee,ze){it||(it=Ee,at=ze,D.call($e))})):at={};var hn=Object.keys(kt.iconDependencies);hn.length?Ue.send("getImages",{icons:hn},(function(Ee,ze){it||(it=Ee,ct=ze,D.call($e))})):ct={};var dn=Object.keys(kt.patternDependencies);function D(){if(it)return We(it);if(at&&ct&&ft){var ze=new i(at),Be=new Ee.ImageAtlas(ct,ft);for(var Ue in xt){var $e=xt[Ue];$e instanceof Ee.SymbolBucket?(a($e.layers,this.zoom),Ee.performSymbolLayout($e,at,ze.positions,ct,Be.iconPositions,this.showCollisionBoxes)):$e.hasPattern&&($e instanceof Ee.LineBucket||$e instanceof Ee.FillBucket||$e instanceof Ee.FillExtrusionBucket)&&(a($e.layers,this.zoom),$e.addFeatures(kt,Be.patternPositions))}this.status="done",We(null,{buckets:Ee.values(xt).filter((function(Ee){return!Ee.isEmpty()})),featureIndex:rt,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:ze.image,imageAtlas:Be,glyphMap:this.returnDependencies?at:null,iconMap:this.returnDependencies?ct:null,glyphPositions:this.returnDependencies?ze.positions:null})}}dn.length?Ue.send("getImages",{icons:dn},(function(Ee,ze){it||(it=Ee,ft=ze,D.call($e))})):ft={},D.call(this)};var ze="undefined"!=typeof performance,Be={getEntriesByName:function(Ee){return!!(ze&&performance&&performance.getEntriesByName)&&performance.getEntriesByName(Ee)},mark:function(Ee){return!!(ze&&performance&&performance.mark)&&performance.mark(Ee)},measure:function(Ee,Be,Ue){return!!(ze&&performance&&performance.measure)&&performance.measure(Ee,Be,Ue)},clearMarks:function(Ee){return!!(ze&&performance&&performance.clearMarks)&&performance.clearMarks(Ee)},clearMeasures:function(Ee){return!!(ze&&performance&&performance.clearMeasures)&&performance.clearMeasures(Ee)}},l=function(Ee){this._marks={start:[Ee.url,"start"].join("#"),end:[Ee.url,"end"].join("#"),measure:Ee.url.toString()},Be.mark(this._marks.start)};function h(ze,Be){var Ue=Ee.getArrayBuffer(ze.request,(function(ze,Ue,We,$e){ze?Be(ze):Ue&&Be(null,{vectorTile:new Ee.vectorTile.VectorTile(new Ee.pbf(Ue)),rawData:Ue,cacheControl:We,expires:$e})}));return function(){Ue.cancel(),Be()}}l.prototype.finish=function(){Be.mark(this._marks.end);var Ee=Be.getEntriesByName(this._marks.measure);return 0===Ee.length&&(Be.measure(this._marks.measure,this._marks.start,this._marks.end),Ee=Be.getEntriesByName(this._marks.measure),Be.clearMarks(this._marks.start),Be.clearMarks(this._marks.end),Be.clearMeasures(this._marks.measure)),Ee},Be.Performance=l;var c=function(Ee,ze,Be){this.actor=Ee,this.layerIndex=ze,this.loadVectorData=Be||h,this.loading={},this.loaded={}};c.prototype.loadTile=function(ze,Ue){var We=this,$e=ze.uid;this.loading||(this.loading={});var Qe=!!(ze&&ze.request&&ze.request.collectResourceTiming)&&new Be.Performance(ze.request),rt=this.loading[$e]=new n(ze);rt.abort=this.loadVectorData(ze,(function(ze,Be){if(delete We.loading[$e],ze||!Be)return rt.status="done",We.loaded[$e]=rt,Ue(ze);var it=Be.rawData,at={};Be.expires&&(at.expires=Be.expires),Be.cacheControl&&(at.cacheControl=Be.cacheControl);var ct={};if(Qe){var ft=Qe.finish();ft&&(ct.resourceTiming=JSON.parse(JSON.stringify(ft)))}rt.vectorTile=Be.vectorTile,rt.parse(Be.vectorTile,We.layerIndex,We.actor,(function(ze,Be){if(ze||!Be)return Ue(ze);Ue(null,Ee.extend({rawTileData:it.slice(0)},Be,at,ct))})),We.loaded=We.loaded||{},We.loaded[$e]=rt}))},c.prototype.reloadTile=function(Ee,ze){var Be=this.loaded,Ue=Ee.uid,We=this;if(Be&&Be[Ue]){var $e=Be[Ue];$e.showCollisionBoxes=Ee.showCollisionBoxes;var a=function(Ee,Be){var Ue=$e.reloadCallback;Ue&&(delete $e.reloadCallback,$e.parse($e.vectorTile,We.layerIndex,We.actor,Ue)),ze(Ee,Be)};"parsing"===$e.status?$e.reloadCallback=a:"done"===$e.status&&($e.vectorTile?$e.parse($e.vectorTile,this.layerIndex,this.actor,a):a())}},c.prototype.abortTile=function(Ee,ze){var Be=this.loading,Ue=Ee.uid;Be&&Be[Ue]&&Be[Ue].abort&&(Be[Ue].abort(),delete Be[Ue]),ze()},c.prototype.removeTile=function(Ee,ze){var Be=this.loaded,Ue=Ee.uid;Be&&Be[Ue]&&delete Be[Ue],ze()};var p=function(){this.loaded={}};p.prototype.loadTile=function(ze,Be){var Ue=ze.uid,We=ze.encoding,$e=ze.rawImageData,Qe=new Ee.DEMData(Ue,$e,We);this.loaded=this.loaded||{},this.loaded[Ue]=Qe,Be(null,Qe)},p.prototype.removeTile=function(Ee){var ze=this.loaded,Be=Ee.uid;ze&&ze[Be]&&delete ze[Be]};var Ue=6378137;function d(Ee){var ze=0;if(Ee&&Ee.length>0){ze+=Math.abs(g(Ee[0]));for(var Be=1;Be2){for(rt=0;rt=0}(Ee)===ze?Ee:Ee.reverse()}var $e=Ee.vectorTile.VectorTileFeature.prototype.toGeoJSON,k=function(ze){this._feature=ze,this.extent=Ee.EXTENT,this.type=ze.type,this.properties=ze.tags,"id"in ze&&!isNaN(ze.id)&&(this.id=parseInt(ze.id,10))};k.prototype.loadGeometry=function(){if(1===this._feature.type){for(var ze=[],Be=0,Ue=this._feature.geometry;Be>31}function J(Ee,ze){for(var Be=Ee.loadGeometry(),Ue=Ee.type,We=0,$e=0,Qe=Be.length,rt=0;rt>1;!function e(Ee,ze,Be,Ue,We,$e){for(;We>Ue;){if(We-Ue>600){var Qe=We-Ue+1,rt=Be-Ue+1,it=Math.log(Qe),at=.5*Math.exp(2*it/3),ct=.5*Math.sqrt(it*at*(Qe-at)/Qe)*(rt-Qe/2<0?-1:1);e(Ee,ze,Be,Math.max(Ue,Math.floor(Be-rt*at/Qe+ct)),Math.min(We,Math.floor(Be+(Qe-rt)*at/Qe+ct)),$e)}var ft=ze[2*Be+$e],xt=Ue,kt=We;for(j(Ee,ze,Ue,Be),ze[2*We+$e]>ft&&j(Ee,ze,Ue,We);xtft;)kt--}ze[2*Ue+$e]===ft?j(Ee,ze,Ue,kt):j(Ee,ze,++kt,We),kt<=Be&&(Ue=kt+1),Be<=kt&&(We=kt-1)}}(Ee,ze,Qe,Ue,We,$e%2),Z(Ee,ze,Be,Ue,Qe-1,$e+1),Z(Ee,ze,Be,Qe+1,We,$e+1)}}(Qe,rt,Ue,0,Qe.length-1,0)};R.prototype.range=function(Ee,ze,Be,Ue){return function(Ee,ze,Be,Ue,We,$e,Qe){for(var rt,it,at=[0,Ee.length-1,0],ct=[];at.length;){var ft=at.pop(),xt=at.pop(),kt=at.pop();if(xt-kt<=Qe)for(var Lt=kt;Lt<=xt;Lt++)rt=ze[2*Lt],it=ze[2*Lt+1],rt>=Be&&rt<=We&&it>=Ue&&it<=$e&&ct.push(Ee[Lt]);else{var Ut=Math.floor((kt+xt)/2);rt=ze[2*Ut],it=ze[2*Ut+1],rt>=Be&&rt<=We&&it>=Ue&&it<=$e&&ct.push(Ee[Ut]);var er=(ft+1)%2;(0===ft?Be<=rt:Ue<=it)&&(at.push(kt),at.push(Ut-1),at.push(er)),(0===ft?We>=rt:$e>=it)&&(at.push(Ut+1),at.push(xt),at.push(er))}}return ct}(this.ids,this.coords,Ee,ze,Be,Ue,this.nodeSize)},R.prototype.within=function(Ee,ze,Be){return function(Ee,ze,Be,Ue,We,$e){for(var Qe=[0,Ee.length-1,0],rt=[],it=We*We;Qe.length;){var at=Qe.pop(),ct=Qe.pop(),ft=Qe.pop();if(ct-ft<=$e)for(var xt=ft;xt<=ct;xt++)V(ze[2*xt],ze[2*xt+1],Be,Ue)<=it&&rt.push(Ee[xt]);else{var kt=Math.floor((ft+ct)/2),Lt=ze[2*kt],Ut=ze[2*kt+1];V(Lt,Ut,Be,Ue)<=it&&rt.push(Ee[kt]);var er=(at+1)%2;(0===at?Be-We<=Lt:Ue-We<=Ut)&&(Qe.push(ft),Qe.push(kt-1),Qe.push(er)),(0===at?Be+We>=Lt:Ue+We>=Ut)&&(Qe.push(kt+1),Qe.push(ct),Qe.push(er))}}return rt}(this.ids,this.coords,Ee,ze,Be,this.nodeSize)};var ft={minZoom:0,maxZoom:16,radius:40,extent:512,nodeSize:64,log:!1,reduce:null,map:function(Ee){return Ee}},U=function(Ee){this.options=re(Object.create(ft),Ee),this.trees=new Array(this.options.maxZoom+1)};function $(Ee,ze,Be,Ue,We){return{x:Ee,y:ze,zoom:1/0,id:Be,parentId:-1,numPoints:Ue,properties:We}}function H(Ee,ze){var Be=Ee.geometry.coordinates,Ue=Be[0],We=Be[1];return{x:ee(Ue),y:te(We),zoom:1/0,index:ze,parentId:-1}}function K(Ee){return{type:"Feature",id:Ee.id,properties:Q(Ee),geometry:{type:"Point",coordinates:[(Ue=Ee.x,360*(Ue-.5)),(ze=Ee.y,Be=(180-360*ze)*Math.PI/180,360*Math.atan(Math.exp(Be))/Math.PI-90)]}};var ze,Be,Ue}function Q(Ee){var ze=Ee.numPoints,Be=ze>=1e4?Math.round(ze/1e3)+"k":ze>=1e3?Math.round(ze/100)/10+"k":ze;return re(re({},Ee.properties),{cluster:!0,cluster_id:Ee.id,point_count:ze,point_count_abbreviated:Be})}function ee(Ee){return Ee/360+.5}function te(Ee){var ze=Math.sin(Ee*Math.PI/180),Be=.5-.25*Math.log((1+ze)/(1-ze))/Math.PI;return Be<0?0:Be>1?1:Be}function re(Ee,ze){for(var Be in ze)Ee[Be]=ze[Be];return Ee}function oe(Ee){return Ee.x}function ie(Ee){return Ee.y}function ne(Ee,ze,Be,Ue,We,$e){var Qe=We-Be,rt=$e-Ue;if(0!==Qe||0!==rt){var it=((Ee-Be)*Qe+(ze-Ue)*rt)/(Qe*Qe+rt*rt);it>1?(Be=We,Ue=$e):it>0&&(Be+=Qe*it,Ue+=rt*it)}return(Qe=Ee-Be)*Qe+(rt=ze-Ue)*rt}function ae(Ee,ze,Be,Ue){var We={id:void 0===Ee?null:Ee,type:ze,geometry:Be,tags:Ue,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return function(Ee){var ze=Ee.geometry,Be=Ee.type;if("Point"===Be||"MultiPoint"===Be||"LineString"===Be)se(Ee,ze);else if("Polygon"===Be||"MultiLineString"===Be)for(var Ue=0;Ue0&&(Qe+=Ue?(We*at-it*$e)/2:Math.sqrt(Math.pow(it-We,2)+Math.pow(at-$e,2))),We=it,$e=at}var ct=ze.length-3;ze[2]=1,function e(Ee,ze,Be,Ue){for(var We,$e=Ue,Qe=Be-ze>>1,rt=Be-ze,it=Ee[ze],at=Ee[ze+1],ct=Ee[Be],ft=Ee[Be+1],xt=ze+3;xt$e)We=xt,$e=kt;else if(kt===$e){var Lt=Math.abs(xt-Qe);LtUe&&(We-ze>3&&e(Ee,ze,We,Ue),Ee[We+2]=$e,Be-We>3&&e(Ee,We,Be,Ue))}(ze,0,ct,Be),ze[ct+2]=1,ze.size=Math.abs(Qe),ze.start=0,ze.end=ze.size}function ce(Ee,ze,Be,Ue){for(var We=0;We1?1:Be}function de(Ee,ze,Be,Ue,We,$e,Qe,rt){if(Ue/=ze,$e>=(Be/=ze)&&Qe=Ue)return null;for(var it=[],at=0;at=Be&&Lt=Ue)){var Ut=[];if("Point"===xt||"MultiPoint"===xt)ge(ft,Ut,Be,Ue,We);else if("LineString"===xt)me(ft,Ut,Be,Ue,We,!1,rt.lineMetrics);else if("MultiLineString"===xt)ye(ft,Ut,Be,Ue,We,!1);else if("Polygon"===xt)ye(ft,Ut,Be,Ue,We,!0);else if("MultiPolygon"===xt)for(var er=0;er=Be&&Qe<=Ue&&(ze.push(Ee[$e]),ze.push(Ee[$e+1]),ze.push(Ee[$e+2]))}}function me(Ee,ze,Be,Ue,We,$e,Qe){for(var rt,it,at=ve(Ee),ct=0===We?we:Se,ft=Ee.start,xt=0;xtBe&&(it=ct(at,kt,Lt,er,tr,Be),Qe&&(at.start=ft+rt*it)):rr>Ue?ar=Be&&(it=ct(at,kt,Lt,er,tr,Be),Lr=!0),ar>Ue&&rr<=Ue&&(it=ct(at,kt,Lt,er,tr,Ue),Lr=!0),!$e&&Lr&&(Qe&&(at.end=ft+rt*it),ze.push(at),at=ve(Ee)),Qe&&(ft+=rt)}var Qr=Ee.length-3;kt=Ee[Qr],Lt=Ee[Qr+1],Ut=Ee[Qr+2],(rr=0===We?kt:Lt)>=Be&&rr<=Ue&&xe(at,kt,Lt,Ut),Qr=at.length-3,$e&&Qr>=3&&(at[Qr]!==at[0]||at[Qr+1]!==at[1])&&xe(at,at[0],at[1],at[2]),at.length&&ze.push(at)}function ve(Ee){var ze=[];return ze.size=Ee.size,ze.start=Ee.start,ze.end=Ee.end,ze}function ye(Ee,ze,Be,Ue,We,$e){for(var Qe=0;QeQe.maxX&&(Qe.maxX=ct),ft>Qe.maxY&&(Qe.maxY=ft)}return Qe}function Ie(Ee,ze,Be,Ue){var We=ze.geometry,$e=ze.type,Qe=[];if("Point"===$e||"MultiPoint"===$e)for(var rt=0;rt0&&ze.size<(We?Qe:Ue))Be.numPoints+=ze.length/3;else{for(var rt=[],it=0;itQe)&&(Be.numSimplified++,rt.push(ze[it]),rt.push(ze[it+1])),Be.numPoints++;We&&function(Ee,ze){for(var Be=0,Ue=0,We=Ee.length,$e=We-2;Ue0===ze)for(Ue=0,We=Ee.length;Ue24)throw new Error("maxZoom should be in the 0-24 range");if(ze.promoteId&&ze.generateId)throw new Error("promoteId and generateId cannot be used together.");var Ue=function(Ee,ze){var Be=[];if("FeatureCollection"===Ee.type)for(var Ue=0;Ue=Ue;at--){var ct=+Date.now();rt=this._cluster(rt,at),this.trees[at]=new R(rt,oe,ie,$e,Float32Array),Be&&console.log("z%d: %d clusters in %dms",at,rt.length,+Date.now()-ct)}return Be&&console.timeEnd("total time"),this},U.prototype.getClusters=function(Ee,ze){var Be=((Ee[0]+180)%360+360)%360-180,Ue=Math.max(-90,Math.min(90,Ee[1])),We=180===Ee[2]?180:((Ee[2]+180)%360+360)%360-180,$e=Math.max(-90,Math.min(90,Ee[3]));if(Ee[2]-Ee[0]>=360)Be=-180,We=180;else if(Be>We){var Qe=this.getClusters([Be,Ue,180,$e],ze),rt=this.getClusters([-180,Ue,We,$e],ze);return Qe.concat(rt)}for(var it=this.trees[this._limitZoom(ze)],at=[],ct=0,ft=it.range(ee(Be),te($e),ee(We),te(Ue));ct>5,Be=Ee%32,Ue="No cluster with the specified id.",We=this.trees[Be];if(!We)throw new Error(Ue);var $e=We.points[ze];if(!$e)throw new Error(Ue);for(var Qe=this.options.radius/(this.options.extent*Math.pow(2,Be-1)),rt=[],it=0,at=We.within($e.x,$e.y,Qe);it1?this._map(at,!0):null,er=(it<<5)+(ze+1),tr=0,rr=ft;tr1&&console.time("creation"),xt=this.tiles[ft]=Pe(Ee,ze,Be,Ue,it),this.tileCoords.push({z:ze,x:Be,y:Ue}),at)){at>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",ze,Be,Ue,xt.numFeatures,xt.numPoints,xt.numSimplified),console.timeEnd("creation"));var kt="z"+ze;this.stats[kt]=(this.stats[kt]||0)+1,this.total++}if(xt.source=Ee,We){if(ze===it.maxZoom||ze===We)continue;var Lt=1<1&&console.time("clipping");var Ut,er,tr,rr,ar,Lr,Qr=.5*it.buffer/it.extent,on=.5-Qr,sn=.5+Qr,cn=1+Qr;Ut=er=tr=rr=null,ar=de(Ee,ct,Be-Qr,Be+sn,0,xt.minX,xt.maxX,it),Lr=de(Ee,ct,Be+on,Be+cn,0,xt.minX,xt.maxX,it),Ee=null,ar&&(Ut=de(ar,ct,Ue-Qr,Ue+sn,1,xt.minY,xt.maxY,it),er=de(ar,ct,Ue+on,Ue+cn,1,xt.minY,xt.maxY,it),ar=null),Lr&&(tr=de(Lr,ct,Ue-Qr,Ue+sn,1,xt.minY,xt.maxY,it),rr=de(Lr,ct,Ue+on,Ue+cn,1,xt.minY,xt.maxY,it),Lr=null),at>1&&console.timeEnd("clipping"),rt.push(Ut||[],ze+1,2*Be,2*Ue),rt.push(er||[],ze+1,2*Be,2*Ue+1),rt.push(tr||[],ze+1,2*Be+1,2*Ue),rt.push(rr||[],ze+1,2*Be+1,2*Ue+1)}}},Le.prototype.getTile=function(Ee,ze,Be){var Ue=this.options,We=Ue.extent,$e=Ue.debug;if(Ee<0||Ee>24)return null;var Qe=1<1&&console.log("drilling down to z%d-%d-%d",Ee,ze,Be);for(var it,at=Ee,ct=ze,ft=Be;!it&&at>0;)at--,ct=Math.floor(ct/2),ft=Math.floor(ft/2),it=this.tiles[De(at,ct,ft)];return it&&it.source?($e>1&&console.log("found parent tile z%d-%d-%d",at,ct,ft),$e>1&&console.time("drilling down"),this.splitTile(it.source,at,ct,ft,Ee,ze,Be),$e>1&&console.timeEnd("drilling down"),this.tiles[rt]?be(this.tiles[rt],We):null):null};var xt=function(ze){function r(Ee,Be,Ue){ze.call(this,Ee,Be,Ce),Ue&&(this.loadGeoJSON=Ue)}return ze&&(r.__proto__=ze),r.prototype=Object.create(ze&&ze.prototype),r.prototype.constructor=r,r.prototype.loadData=function(Ee,ze){this._pendingCallback&&this._pendingCallback(null,{abandoned:!0}),this._pendingCallback=ze,this._pendingLoadDataParams=Ee,this._state&&"Idle"!==this._state?this._state="NeedsLoadData":(this._state="Coalescing",this._loadData())},r.prototype._loadData=function(){var ze=this;if(this._pendingCallback&&this._pendingLoadDataParams){var Ue=this._pendingCallback,We=this._pendingLoadDataParams;delete this._pendingCallback,delete this._pendingLoadDataParams;var $e=!!(We&&We.request&&We.request.collectResourceTiming)&&new Be.Performance(We.request);this.loadGeoJSON(We,(function(Be,Qe){if(Be||!Qe)return Ue(Be);if("object"!=typeof Qe)return Ue(new Error("Input data given to '"+We.source+"' is not a valid GeoJSON object."));!function e(Ee,ze){switch(Ee&&Ee.type||null){case"FeatureCollection":return Ee.features=Ee.features.map(x(e,ze)),Ee;case"GeometryCollection":return Ee.geometries=Ee.geometries.map(x(e,ze)),Ee;case"Feature":return Ee.geometry=e(Ee.geometry,ze),Ee;case"Polygon":case"MultiPolygon":return function(Ee,ze){return"Polygon"===Ee.type?Ee.coordinates=w(Ee.coordinates,ze):"MultiPolygon"===Ee.type&&(Ee.coordinates=Ee.coordinates.map(x(w,ze))),Ee}(Ee,ze);default:return Ee}}(Qe,!0);try{ze._geoJSONIndex=We.cluster?new U(function(ze){var Be=ze.superclusterOptions,Ue=ze.clusterProperties;if(!Ue||!Be)return Be;for(var We={},$e={},Qe={accumulated:null,zoom:0},rt={properties:null},it=Object.keys(Ue),at=0,ct=it;at=0?0:ze.button},Be.remove=function(Ee){Ee.parentNode&&Ee.parentNode.removeChild(Ee)};var at=function(ze){function i(){ze.call(this),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new Ee.RGBAImage({width:1,height:1}),this.dirty=!0}return ze&&(i.__proto__=ze),i.prototype=Object.create(ze&&ze.prototype),i.prototype.constructor=i,i.prototype.isLoaded=function(){return this.loaded},i.prototype.setLoaded=function(Ee){if(this.loaded!==Ee&&(this.loaded=Ee,Ee)){for(var ze=0,Be=this.requestors;ze=0?1.2:1))}function g(Ee,ze,Be,Ue,We,$e,Qe){for(var rt=0;rt65535)ze(new Error("glyphs > 65535 not supported"));else{var it=$e.requests[rt];it||(it=$e.requests[rt]=[],y.loadGlyphRange(Be,rt,Ue.url,Ue.requestManager,(function(Ee,ze){if(ze)for(var Be in ze)Ue._doesCharSupportLocalGlyph(+Be)||($e.glyphs[+Be]=ze[+Be]);for(var We=0,Qe=it;Wethis.height)return Ee.warnOnce("LineAtlas out of space"),null;for(var $e=0,Qe=0;Qe=Ue&&ze.x<$e&&ze.y>=We&&ze.y0&&(it[new Ee.OverscaledTileID(ze.overscaledZ,$e,Be.z,We,Be.y-1).key]={backfilled:!1},it[new Ee.OverscaledTileID(ze.overscaledZ,ze.wrap,Be.z,Be.x,Be.y-1).key]={backfilled:!1},it[new Ee.OverscaledTileID(ze.overscaledZ,rt,Be.z,Qe,Be.y-1).key]={backfilled:!1}),Be.y+10&&(Ue.resourceTiming=ze._resourceTiming,ze._resourceTiming=[]),ze.fire(new Ee.Event("data",Ue))}}))},i.prototype.onAdd=function(Ee){this.map=Ee,this.load()},i.prototype.setData=function(ze){var Be=this;return this._data=ze,this.fire(new Ee.Event("dataloading",{dataType:"source"})),this._updateWorkerData((function(ze){if(ze)Be.fire(new Ee.ErrorEvent(ze));else{var Ue={dataType:"source",sourceDataType:"content"};Be._collectResourceTiming&&Be._resourceTiming&&Be._resourceTiming.length>0&&(Ue.resourceTiming=Be._resourceTiming,Be._resourceTiming=[]),Be.fire(new Ee.Event("data",Ue))}})),this},i.prototype.getClusterExpansionZoom=function(Ee,ze){return this.actor.send("geojson.getClusterExpansionZoom",{clusterId:Ee,source:this.id},ze),this},i.prototype.getClusterChildren=function(Ee,ze){return this.actor.send("geojson.getClusterChildren",{clusterId:Ee,source:this.id},ze),this},i.prototype.getClusterLeaves=function(Ee,ze,Be,Ue){return this.actor.send("geojson.getClusterLeaves",{source:this.id,clusterId:Ee,limit:ze,offset:Be},Ue),this},i.prototype._updateWorkerData=function(ze){var Be=this;this._loaded=!1;var Ue=Ee.extend({},this.workerOptions),We=this._data;"string"==typeof We?(Ue.request=this.map._requestManager.transformRequest(Ee.browser.resolveURL(We),Ee.ResourceType.Source),Ue.request.collectResourceTiming=this._collectResourceTiming):Ue.data=JSON.stringify(We),this.actor.send(this.type+".loadData",Ue,(function(Ee,We){Be._removed||We&&We.abandoned||(Be._loaded=!0,We&&We.resourceTiming&&We.resourceTiming[Be.id]&&(Be._resourceTiming=We.resourceTiming[Be.id].slice(0)),Be.actor.send(Be.type+".coalesce",{source:Ue.source},null),ze(Ee))}))},i.prototype.loaded=function(){return this._loaded},i.prototype.loadTile=function(ze,Be){var Ue=this,We=ze.actor?"reloadTile":"loadTile";ze.actor=this.actor;var $e={type:this.type,uid:ze.uid,tileID:ze.tileID,zoom:ze.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:Ee.browser.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes};ze.request=this.actor.send(We,$e,(function(Ee,$e){return delete ze.request,ze.unloadVectorData(),ze.aborted?Be(null):Ee?Be(Ee):(ze.loadVectorData($e,Ue.map.painter,"reloadTile"===We),Be(null))}))},i.prototype.abortTile=function(Ee){Ee.request&&(Ee.request.cancel(),delete Ee.request),Ee.aborted=!0},i.prototype.unloadTile=function(Ee){Ee.unloadVectorData(),this.actor.send("removeTile",{uid:Ee.uid,type:this.type,source:this.id})},i.prototype.onRemove=function(){this._removed=!0,this.actor.send("removeSource",{type:this.type,source:this.id})},i.prototype.serialize=function(){return Ee.extend({},this._options,{type:this.type,data:this._data})},i.prototype.hasTransition=function(){return!1},i}(Ee.Evented),Lr=function(ze){function i(Ee,Be,Ue,We){ze.call(this),this.id=Ee,this.dispatcher=Ue,this.coordinates=Be.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(We),this.options=Be}return ze&&(i.__proto__=ze),i.prototype=Object.create(ze&&ze.prototype),i.prototype.constructor=i,i.prototype.load=function(ze,Be){var Ue=this;this._loaded=!1,this.fire(new Ee.Event("dataloading",{dataType:"source"})),this.url=this.options.url,Ee.getImage(this.map._requestManager.transformRequest(this.url,Ee.ResourceType.Image),(function(We,$e){Ue._loaded=!0,We?Ue.fire(new Ee.ErrorEvent(We)):$e&&(Ue.image=$e,ze&&(Ue.coordinates=ze),Be&&Be(),Ue._finishLoading())}))},i.prototype.loaded=function(){return this._loaded},i.prototype.updateImage=function(Ee){var ze=this;return this.image&&Ee.url?(this.options.url=Ee.url,this.load(Ee.coordinates,(function(){ze.texture=null})),this):this},i.prototype._finishLoading=function(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new Ee.Event("data",{dataType:"source",sourceDataType:"metadata"})))},i.prototype.onAdd=function(Ee){this.map=Ee,this.load()},i.prototype.setCoordinates=function(ze){var Be=this;this.coordinates=ze;var Ue=ze.map(Ee.MercatorCoordinate.fromLngLat);this.tileID=function(ze){for(var Be=1/0,Ue=1/0,We=-1/0,$e=-1/0,Qe=0,rt=ze;QeBe.end(0)?this.fire(new Ee.ErrorEvent(new Ee.ValidationError("Playback for this video can be set only between the "+Be.start(0)+" and "+Be.end(0)+"-second mark."))):this.video.currentTime=ze}},i.prototype.getVideo=function(){return this.video},i.prototype.onAdd=function(Ee){this.map||(this.map=Ee,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))},i.prototype.prepare=function(){if(!(0===Object.keys(this.tiles).length||this.video.readyState<2)){var ze=this.map.painter.context,Be=ze.gl;for(var Ue in this.boundsBuffer||(this.boundsBuffer=ze.createVertexBuffer(this._boundsArray,Ee.rasterBoundsAttributes.members)),this.boundsSegments||(this.boundsSegments=Ee.SegmentVector.simpleSegment(0,0,4,2)),this.texture?this.video.paused||(this.texture.bind(Be.LINEAR,Be.CLAMP_TO_EDGE),Be.texSubImage2D(Be.TEXTURE_2D,0,0,0,Be.RGBA,Be.UNSIGNED_BYTE,this.video)):(this.texture=new Ee.Texture(ze,this.video,Be.RGBA),this.texture.bind(Be.LINEAR,Be.CLAMP_TO_EDGE)),this.tiles){var We=this.tiles[Ue];"loaded"!==We.state&&(We.state="loaded",We.texture=this.texture)}}},i.prototype.serialize=function(){return{type:"video",urls:this.urls,coordinates:this.coordinates}},i.prototype.hasTransition=function(){return this.video&&!this.video.paused},i}(Lr),on=function(ze){function i(Be,Ue,We,$e){ze.call(this,Be,Ue,We,$e),Ue.coordinates?Array.isArray(Ue.coordinates)&&4===Ue.coordinates.length&&!Ue.coordinates.some((function(Ee){return!Array.isArray(Ee)||2!==Ee.length||Ee.some((function(Ee){return"number"!=typeof Ee}))}))||this.fire(new Ee.ErrorEvent(new Ee.ValidationError("sources."+Be,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new Ee.ErrorEvent(new Ee.ValidationError("sources."+Be,null,'missing required property "coordinates"'))),Ue.animate&&"boolean"!=typeof Ue.animate&&this.fire(new Ee.ErrorEvent(new Ee.ValidationError("sources."+Be,null,'optional "animate" property must be a boolean value'))),Ue.canvas?"string"==typeof Ue.canvas||Ue.canvas instanceof Ee.window.HTMLCanvasElement||this.fire(new Ee.ErrorEvent(new Ee.ValidationError("sources."+Be,null,'"canvas" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))):this.fire(new Ee.ErrorEvent(new Ee.ValidationError("sources."+Be,null,'missing required property "canvas"'))),this.options=Ue,this.animate=void 0===Ue.animate||Ue.animate}return ze&&(i.__proto__=ze),i.prototype=Object.create(ze&&ze.prototype),i.prototype.constructor=i,i.prototype.load=function(){this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof Ee.window.HTMLCanvasElement?this.options.canvas:Ee.window.document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()?this.fire(new Ee.ErrorEvent(new Error("Canvas dimensions cannot be less than or equal to zero."))):(this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&&(this.prepare(),this._playing=!1)},this._finishLoading())},i.prototype.getCanvas=function(){return this.canvas},i.prototype.onAdd=function(Ee){this.map=Ee,this.load(),this.canvas&&this.animate&&this.play()},i.prototype.onRemove=function(){this.pause()},i.prototype.prepare=function(){var ze=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,ze=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,ze=!0),!this._hasInvalidDimensions()&&0!==Object.keys(this.tiles).length){var Be=this.map.painter.context,Ue=Be.gl;for(var We in this.boundsBuffer||(this.boundsBuffer=Be.createVertexBuffer(this._boundsArray,Ee.rasterBoundsAttributes.members)),this.boundsSegments||(this.boundsSegments=Ee.SegmentVector.simpleSegment(0,0,4,2)),this.texture?(ze||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):this.texture=new Ee.Texture(Be,this.canvas,Ue.RGBA,{premultiply:!0}),this.tiles){var $e=this.tiles[We];"loaded"!==$e.state&&($e.state="loaded",$e.texture=this.texture)}}},i.prototype.serialize=function(){return{type:"canvas",coordinates:this.coordinates}},i.prototype.hasTransition=function(){return this._playing},i.prototype._hasInvalidDimensions=function(){for(var Ee=0,ze=[this.canvas.width,this.canvas.height];Eethis.max){var Qe=this._getAndRemoveByKey(this.order[0]);Qe&&this.onRemove(Qe)}return this},U.prototype.has=function(Ee){return Ee.wrapped().key in this.data},U.prototype.getAndRemove=function(Ee){return this.has(Ee)?this._getAndRemoveByKey(Ee.wrapped().key):null},U.prototype._getAndRemoveByKey=function(Ee){var ze=this.data[Ee].shift();return ze.timeout&&clearTimeout(ze.timeout),0===this.data[Ee].length&&delete this.data[Ee],this.order.splice(this.order.indexOf(Ee),1),ze.value},U.prototype.get=function(Ee){return this.has(Ee)?this.data[Ee.wrapped().key][0].value:null},U.prototype.remove=function(Ee,ze){if(!this.has(Ee))return this;var Be=Ee.wrapped().key,Ue=void 0===ze?0:this.data[Be].indexOf(ze),We=this.data[Be][Ue];return this.data[Be].splice(Ue,1),We.timeout&&clearTimeout(We.timeout),0===this.data[Be].length&&delete this.data[Be],this.onRemove(We.value),this.order.splice(this.order.indexOf(Be),1),this},U.prototype.setMaxSize=function(Ee){for(this.max=Ee;this.order.length>this.max;){var ze=this._getAndRemoveByKey(this.order[0]);ze&&this.onRemove(ze)}return this};var N=function(Ee,ze,Be){this.context=Ee;var Ue=Ee.gl;this.buffer=Ue.createBuffer(),this.dynamicDraw=Boolean(Be),this.context.unbindVAO(),Ee.bindElementBuffer.set(this.buffer),Ue.bufferData(Ue.ELEMENT_ARRAY_BUFFER,ze.arrayBuffer,this.dynamicDraw?Ue.DYNAMIC_DRAW:Ue.STATIC_DRAW),this.dynamicDraw||delete ze.arrayBuffer};N.prototype.bind=function(){this.context.bindElementBuffer.set(this.buffer)},N.prototype.updateData=function(Ee){var ze=this.context.gl;this.context.unbindVAO(),this.bind(),ze.bufferSubData(ze.ELEMENT_ARRAY_BUFFER,0,Ee.arrayBuffer)},N.prototype.destroy=function(){var Ee=this.context.gl;this.buffer&&(Ee.deleteBuffer(this.buffer),delete this.buffer)};var cn={Int8:"BYTE",Uint8:"UNSIGNED_BYTE",Int16:"SHORT",Uint16:"UNSIGNED_SHORT",Int32:"INT",Uint32:"UNSIGNED_INT",Float32:"FLOAT"},q=function(Ee,ze,Be,Ue){this.length=ze.length,this.attributes=Be,this.itemSize=ze.bytesPerElement,this.dynamicDraw=Ue,this.context=Ee;var We=Ee.gl;this.buffer=We.createBuffer(),Ee.bindVertexBuffer.set(this.buffer),We.bufferData(We.ARRAY_BUFFER,ze.arrayBuffer,this.dynamicDraw?We.DYNAMIC_DRAW:We.STATIC_DRAW),this.dynamicDraw||delete ze.arrayBuffer};q.prototype.bind=function(){this.context.bindVertexBuffer.set(this.buffer)},q.prototype.updateData=function(Ee){var ze=this.context.gl;this.bind(),ze.bufferSubData(ze.ARRAY_BUFFER,0,Ee.arrayBuffer)},q.prototype.enableAttributes=function(Ee,ze){for(var Be=0;Be1||(Math.abs(Be)>1&&(1===Math.abs(Be+We)?Be+=We:1===Math.abs(Be-We)&&(Be-=We)),ze.dem&&Ee.dem&&(Ee.dem.backfillBorder(ze.dem,Be,Ue),Ee.neighboringTiles&&Ee.neighboringTiles[$e]&&(Ee.neighboringTiles[$e].backfilled=!0)))}},i.prototype.getTile=function(Ee){return this.getTileByID(Ee.key)},i.prototype.getTileByID=function(Ee){return this._tiles[Ee]},i.prototype.getZoom=function(Ee){return Ee.zoom+Ee.scaleZoom(Ee.tileSize/this._source.tileSize)},i.prototype._retainLoadedChildren=function(Ee,ze,Be,Ue){for(var We in this._tiles){var $e=this._tiles[We];if(!(Ue[We]||!$e.hasData()||$e.tileID.overscaledZ<=ze||$e.tileID.overscaledZ>Be)){for(var Qe=$e.tileID;$e&&$e.tileID.overscaledZ>ze+1;){var rt=$e.tileID.scaledTo($e.tileID.overscaledZ-1);($e=this._tiles[rt.key])&&$e.hasData()&&(Qe=rt)}for(var it=Qe;it.overscaledZ>ze;)if(Ee[(it=it.scaledTo(it.overscaledZ-1)).key]){Ue[Qe.key]=Qe;break}}}},i.prototype.findLoadedParent=function(Ee,ze){for(var Be=Ee.overscaledZ-1;Be>=ze;Be--){var Ue=Ee.scaledTo(Be);if(!Ue)return;var We=String(Ue.key),$e=this._tiles[We];if($e&&$e.hasData())return $e;if(this._cache.has(Ue))return this._cache.get(Ue)}},i.prototype.updateCacheSize=function(Ee){var ze=(Math.ceil(Ee.width/this._source.tileSize)+1)*(Math.ceil(Ee.height/this._source.tileSize)+1),Be=Math.floor(5*ze),Ue="number"==typeof this._maxTileCacheSize?Math.min(this._maxTileCacheSize,Be):Be;this._cache.setMaxSize(Ue)},i.prototype.handleWrapJump=function(Ee){var ze=(Ee-(void 0===this._prevLng?Ee:this._prevLng))/360,Be=Math.round(ze);if(this._prevLng=Ee,Be){var Ue={};for(var We in this._tiles){var $e=this._tiles[We];$e.tileID=$e.tileID.unwrapTo($e.tileID.wrap+Be),Ue[$e.tileID.key]=$e}for(var Qe in this._tiles=Ue,this._timers)clearTimeout(this._timers[Qe]),delete this._timers[Qe];for(var rt in this._tiles){var it=this._tiles[rt];this._setTileReloadTimer(rt,it)}}},i.prototype.update=function(ze){var Be=this;if(this.transform=ze,this._sourceLoaded&&!this._paused){var Ue;this.updateCacheSize(ze),this.handleWrapJump(this.transform.center.lng),this._coveredTiles={},this.used?this._source.tileID?Ue=ze.getVisibleUnwrappedCoordinates(this._source.tileID).map((function(ze){return new Ee.OverscaledTileID(ze.canonical.z,ze.wrap,ze.canonical.z,ze.canonical.x,ze.canonical.y)})):(Ue=ze.coveringTiles({tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled}),this._source.hasTile&&(Ue=Ue.filter((function(Ee){return Be._source.hasTile(Ee)})))):Ue=[];var We=(this._source.roundZoom?Math.round:Math.floor)(this.getZoom(ze)),$e=Math.max(We-i.maxOverzooming,this._source.minzoom),Qe=Math.max(We+i.maxUnderzooming,this._source.minzoom),rt=this._updateRetainedTiles(Ue,We);if(Dt(this._source.type)){for(var it={},at={},ct=0,ft=Object.keys(rt);ctthis._source.maxzoom){var Ut=kt.children(this._source.maxzoom)[0],er=this.getTile(Ut);if(er&&er.hasData()){Be[Ut.key]=Ut;continue}}else{var tr=kt.children(this._source.maxzoom);if(Be[tr[0].key]&&Be[tr[1].key]&&Be[tr[2].key]&&Be[tr[3].key])continue}for(var rr=Lt.wasRequested(),ar=kt.overscaledZ-1;ar>=We;--ar){var Lr=kt.scaledTo(ar);if(Ue[Lr.key])break;if(Ue[Lr.key]=!0,!(Lt=this.getTile(Lr))&&rr&&(Lt=this._addTile(Lr)),Lt&&(Be[Lr.key]=Lr,rr=Lt.wasRequested(),Lt.hasData()))break}}}return Be},i.prototype._addTile=function(ze){var Be=this._tiles[ze.key];if(Be)return Be;(Be=this._cache.getAndRemove(ze))&&(this._setTileReloadTimer(ze.key,Be),Be.tileID=ze,this._state.initializeTileState(Be,this.map?this.map.painter:null),this._cacheTimers[ze.key]&&(clearTimeout(this._cacheTimers[ze.key]),delete this._cacheTimers[ze.key],this._setTileReloadTimer(ze.key,Be)));var Ue=Boolean(Be);return Ue||(Be=new Ee.Tile(ze,this._source.tileSize*ze.overscaleFactor()),this._loadTile(Be,this._tileLoaded.bind(this,Be,ze.key,Be.state))),Be?(Be.uses++,this._tiles[ze.key]=Be,Ue||this._source.fire(new Ee.Event("dataloading",{tile:Be,coord:Be.tileID,dataType:"source"})),Be):null},i.prototype._setTileReloadTimer=function(Ee,ze){var Be=this;Ee in this._timers&&(clearTimeout(this._timers[Ee]),delete this._timers[Ee]);var Ue=ze.getExpiryTimeout();Ue&&(this._timers[Ee]=setTimeout((function(){Be._reloadTile(Ee,"expired"),delete Be._timers[Ee]}),Ue))},i.prototype._removeTile=function(Ee){var ze=this._tiles[Ee];ze&&(ze.uses--,delete this._tiles[Ee],this._timers[Ee]&&(clearTimeout(this._timers[Ee]),delete this._timers[Ee]),ze.uses>0||(ze.hasData()&&"reloading"!==ze.state?this._cache.add(ze.tileID,ze,ze.getExpiryTimeout()):(ze.aborted=!0,this._abortTile(ze),this._unloadTile(ze))))},i.prototype.clearTiles=function(){for(var Ee in this._shouldReloadOnResume=!1,this._paused=!1,this._tiles)this._removeTile(Ee);this._cache.reset()},i.prototype.tilesIn=function(ze,Be,Ue){var We=this,$e=[],Qe=this.transform;if(!Qe)return $e;for(var rt=Ue?Qe.getCameraQueryGeometry(ze):ze,it=ze.map((function(Ee){return Qe.pointCoordinate(Ee)})),at=rt.map((function(Ee){return Qe.pointCoordinate(Ee)})),ct=this.getIds(),ft=1/0,xt=1/0,kt=-1/0,Lt=-1/0,Ut=0,er=at;Ut=0&&tr[1].y+er>=0){var rr=it.map((function(Ee){return rt.getTilePoint(Ee)})),ar=at.map((function(Ee){return rt.getTilePoint(Ee)}));$e.push({tile:Ue,tileID:rt,queryGeometry:rr,cameraQueryGeometry:ar,scale:Ut})}}},rr=0;rr=Ee.browser.now())return!0}return!1},i.prototype.setFeatureState=function(Ee,ze,Be){Ee=Ee||"_geojsonTileLayer",this._state.updateState(Ee,ze,Be)},i.prototype.removeFeatureState=function(Ee,ze,Be){Ee=Ee||"_geojsonTileLayer",this._state.removeFeatureState(Ee,ze,Be)},i.prototype.getFeatureState=function(Ee,ze){return Ee=Ee||"_geojsonTileLayer",this._state.getState(Ee,ze)},i}(Ee.Evented);function Mt(Ee,ze){return Ee%32-ze%32||ze-Ee}function Dt(Ee){return"raster"===Ee||"image"===Ee||"video"===Ee}function Rt(){return new Ee.window.Worker(Bl.workerUrl)}Ia.maxOverzooming=10,Ia.maxUnderzooming=3;var At=function(){this.active={}};At.prototype.acquire=function(Ee){if(!this.workers)for(this.workers=[];this.workers.length=-ze[0]&&Be<=ze[0]&&Ue>=-ze[1]&&Ue<=ze[1]}function $t(ze,Be,Ue,We,$e,Qe,rt,it){var at=We?ze.textSizeData:ze.iconSizeData,ct=Ee.evaluateSizeForZoom(at,Ue.transform.zoom),ft=[256/Ue.width*2+1,256/Ue.height*2+1],xt=We?ze.text.dynamicLayoutVertexArray:ze.icon.dynamicLayoutVertexArray;xt.clear();for(var kt=ze.lineVertexArray,Lt=We?ze.text.placedSymbolArray:ze.icon.placedSymbolArray,Ut=Ue.transform.width/Ue.transform.height,er=!1,tr=0;trMath.abs(Ue.x-Be.x)*We?{useVertical:!0}:(ze===Ee.WritingMode.vertical?Be.yUe.x)?{needsFlipping:!0}:null}function ie(ze,Be,Ue,We,$e,Qe,rt,it,at,ct,ft,xt,kt,Lt){var Ut,er=Be/24,tr=ze.lineOffsetX*er,rr=ze.lineOffsetY*er;if(ze.numGlyphs>1){var ar=ze.glyphStartIndex+ze.numGlyphs,Lr=ze.lineStartIndex,Qr=ze.lineStartIndex+ze.lineLength,on=te(er,it,tr,rr,Ue,ft,xt,ze,at,Qe,kt,!1);if(!on)return{notEnoughRoom:!0};var sn=Yt(on.first.point,rt).point,cn=Yt(on.last.point,rt).point;if(We&&!Ue){var un=ee(ze.writingMode,sn,cn,Lt);if(un)return un}Ut=[on.first];for(var hn=ze.glyphStartIndex+1;hn0?_n.point:oe(xt,yn,dn,1,$e),Cn=ee(ze.writingMode,dn,Mn,Lt);if(Cn)return Cn}var En=re(er*it.getoffsetX(ze.glyphStartIndex),tr,rr,Ue,ft,xt,ze.segment,ze.lineStartIndex,ze.lineStartIndex+ze.lineLength,at,Qe,kt,!1);if(!En)return{notEnoughRoom:!0};Ut=[En]}for(var Pn=0,In=Ut;Pn0?1:-1,er=0;We&&(Ut*=-1,er=Math.PI),Ut<0&&(er+=Math.PI);for(var tr=Ut>0?it+rt:it+rt+1,rr=tr,ar=$e,Lr=$e,Qr=0,on=0,sn=Math.abs(Lt);Qr+on<=sn;){if((tr+=Ut)=at)return null;if(Lr=ar,void 0===(ar=xt[tr])){var cn=new Ee.Point(ct.getx(tr),ct.gety(tr)),un=Yt(cn,ft);if(un.signedDistanceFromCamera>0)ar=xt[tr]=un.point;else{var hn=tr-Ut;ar=oe(0===Qr?Qe:new Ee.Point(ct.getx(hn),ct.gety(hn)),cn,Lr,sn-Qr+1,ft)}}Qr+=on,on=Lr.dist(ar)}var dn=(sn-Qr)/on,vn=ar.sub(Lr),yn=vn.mult(dn)._add(Lr);return yn._add(vn._unit()._perp()._mult(Ue*Ut)),{point:yn,angle:er+Math.atan2(ar.y-Lr.y,ar.x-Lr.x),tileDistance:kt?{prevTileDistance:tr-Ut===rr?0:ct.gettileUnitDistanceFromAnchor(tr-Ut),lastSegmentViewportDistance:sn-Qr}:null}}Ht.prototype.keysLength=function(){return this.boxKeys.length+this.circleKeys.length},Ht.prototype.insert=function(Ee,ze,Be,Ue,We){this._forEachCell(ze,Be,Ue,We,this._insertBoxCell,this.boxUid++),this.boxKeys.push(Ee),this.bboxes.push(ze),this.bboxes.push(Be),this.bboxes.push(Ue),this.bboxes.push(We)},Ht.prototype.insertCircle=function(Ee,ze,Be,Ue){this._forEachCell(ze-Ue,Be-Ue,ze+Ue,Be+Ue,this._insertCircleCell,this.circleUid++),this.circleKeys.push(Ee),this.circles.push(ze),this.circles.push(Be),this.circles.push(Ue)},Ht.prototype._insertBoxCell=function(Ee,ze,Be,Ue,We,$e){this.boxCells[We].push($e)},Ht.prototype._insertCircleCell=function(Ee,ze,Be,Ue,We,$e){this.circleCells[We].push($e)},Ht.prototype._query=function(Ee,ze,Be,Ue,We,$e){if(Be<0||Ee>this.width||Ue<0||ze>this.height)return!We&&[];var Qe=[];if(Ee<=0&&ze<=0&&this.width<=Be&&this.height<=Ue){if(We)return!0;for(var rt=0;rt0:Qe},Ht.prototype._queryCircle=function(Ee,ze,Be,Ue,We){var $e=Ee-Be,Qe=Ee+Be,rt=ze-Be,it=ze+Be;if(Qe<0||$e>this.width||it<0||rt>this.height)return!Ue&&[];var at=[],ct={hitTest:Ue,circle:{x:Ee,y:ze,radius:Be},seenUids:{box:{},circle:{}}};return this._forEachCell($e,rt,Qe,it,this._queryCellCircle,at,ct,We),Ue?at.length>0:at},Ht.prototype.query=function(Ee,ze,Be,Ue,We){return this._query(Ee,ze,Be,Ue,!1,We)},Ht.prototype.hitTest=function(Ee,ze,Be,Ue,We){return this._query(Ee,ze,Be,Ue,!0,We)},Ht.prototype.hitTestCircle=function(Ee,ze,Be,Ue){return this._queryCircle(Ee,ze,Be,!0,Ue)},Ht.prototype._queryCell=function(Ee,ze,Be,Ue,We,$e,Qe,rt){var it=Qe.seenUids,at=this.boxCells[We];if(null!==at)for(var ct=this.bboxes,ft=0,xt=at;ft=ct[Lt+0]&&Ue>=ct[Lt+1]&&(!rt||rt(this.boxKeys[kt]))){if(Qe.hitTest)return $e.push(!0),!0;$e.push({key:this.boxKeys[kt],x1:ct[Lt],y1:ct[Lt+1],x2:ct[Lt+2],y2:ct[Lt+3]})}}}var Ut=this.circleCells[We];if(null!==Ut)for(var er=this.circles,tr=0,rr=Ut;trQe*Qe+rt*rt},Ht.prototype._circleAndRectCollide=function(Ee,ze,Be,Ue,We,$e,Qe){var rt=($e-Ue)/2,it=Math.abs(Ee-(Ue+rt));if(it>rt+Be)return!1;var at=(Qe-We)/2,ct=Math.abs(ze-(We+at));if(ct>at+Be)return!1;if(it<=rt||ct<=at)return!0;var ft=it-rt,xt=ct-at;return ft*ft+xt*xt<=Be*Be};var qa=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function ne(Ee,ze){for(var Be=0;Bedn)ce(ze,vn,!1);else{var En=this.projectPoint(at,yn,_n),Pn=Mn*cn;if(Lt.length>0){var In=En.x-Lt[Lt.length-4],Bn=En.y-Lt[Lt.length-3];if(Pn*Pn*2>In*In+Bn*Bn&&vn+8-hn&&Hn=this.screenRightBoundary||Ue<100||ze>this.screenBottomBoundary},le.prototype.isInsideGrid=function(Ee,ze,Be,Ue){return Be>=0&&Ee=0&&ze0)return this.prevPlacement&&this.prevPlacement.variableOffsets[kt.crossTileID]&&this.prevPlacement.placements[kt.crossTileID]&&this.prevPlacement.placements[kt.crossTileID].text&&(er=this.prevPlacement.variableOffsets[kt.crossTileID].anchor),this.variableOffsets[kt.crossTileID]={radialOffset:$e,width:Ue,height:We,anchor:ze,textBoxScale:Qe,prevAnchor:er},this.markUsedJustification(Lt,ze,kt,Ut),Lt.allowVerticalPlacement&&(this.markUsedOrientation(Lt,Ut,kt),this.placedOrientations[kt.crossTileID]=Ut),rr},ge.prototype.placeLayerBucket=function(ze,Be,Ue,We,$e,Qe,rt,it,at,ct){var ft=this,xt=ze.layers[0].layout,kt=Ee.evaluateSizeForZoom(ze.textSizeData,this.transform.zoom),Lt=xt.get("text-optional"),Ut=xt.get("icon-optional"),er=xt.get("text-allow-overlap"),tr=xt.get("icon-allow-overlap"),rr=er&&(tr||!ze.hasIconData()||Ut),ar=tr&&(er||!ze.hasTextData()||Lt),Lr=this.collisionGroups.get(ze.sourceID),Qr="map"===xt.get("text-rotation-alignment"),on="map"===xt.get("text-pitch-alignment"),sn="viewport-y"===xt.get("symbol-z-order");!ze.collisionArrays&&ct&&ze.deserializeCollisionBoxes(ct);var T=function(We,ct){if(!at[We.crossTileID])if(it)ft.placements[We.crossTileID]=new de(!1,!1,!1);else{var tr,sn=!1,cn=!1,un=!0,hn={box:null,offscreen:null},dn={box:null,offscreen:null},vn=null,yn=null,_n=0,Mn=0,Cn=0;ct.textFeatureIndex&&(_n=ct.textFeatureIndex),ct.verticalTextFeatureIndex&&(Mn=ct.verticalTextFeatureIndex);var En=ct.textBox;if(En){var A=function(Be){var Ue=Ee.WritingMode.horizontal;if(ze.allowVerticalPlacement&&!Be&&ft.prevPlacement){var $e=ft.prevPlacement.placedOrientations[We.crossTileID];$e&&(ft.placedOrientations[We.crossTileID]=$e,Ue=$e,ft.markUsedOrientation(ze,Ue,We))}return Ue},k=function(Be,Ue){if(ze.allowVerticalPlacement&&We.numVerticalGlyphVertices>0&&ct.verticalTextBox)for(var $e=0,Qe=ze.writingModes;$e0&&(Pn=Pn.filter((function(Ee){return Ee!==In.anchor}))).unshift(In.anchor)}var F=function(Ee,Ue){for(var $e=Ee.x2-Ee.x1,rt=Ee.y2-Ee.y1,it=We.textBoxScale,at={box:[],offscreen:!1},ct=er?2*Pn.length:Pn.length,xt=0;xt=Pn.length;if((at=ft.attemptAnchorPlacement(kt,Ee,$e,rt,We.radialTextOffset,it,Qr,on,Qe,Be,Lr,Lt,We,ze,Ue))&&at.box&&at.box.length){sn=!0;break}}return at};k((function(){return F(En,Ee.WritingMode.horizontal)}),(function(){var Be=ct.verticalTextBox,Ue=hn&&hn.box&&hn.box.length;return ze.allowVerticalPlacement&&!Ue&&We.numVerticalGlyphVertices>0&&Be?F(Be,Ee.WritingMode.vertical):{box:null,offscreen:null}})),hn&&(sn=hn.box,un=hn.offscreen);var Bn=A(hn&&hn.box);if(!sn&&ft.prevPlacement){var Hn=ft.prevPlacement.variableOffsets[We.crossTileID];Hn&&(ft.variableOffsets[We.crossTileID]=Hn,ft.markUsedJustification(ze,Hn.anchor,We,Bn))}}else{var Z=function(Ee,Ue){var $e=ft.collisionIndex.placeCollisionBox(Ee,xt.get("text-allow-overlap"),Qe,Be,Lr.predicate);return $e&&$e.box&&$e.box.length&&(ft.markUsedOrientation(ze,Ue,We),ft.placedOrientations[We.crossTileID]=Ue),$e};k((function(){return Z(En,Ee.WritingMode.horizontal)}),(function(){var Be=ct.verticalTextBox;return ze.allowVerticalPlacement&&We.numVerticalGlyphVertices>0&&Be?Z(Be,Ee.WritingMode.vertical):{box:null,offscreen:null}})),A(hn&&hn.box&&hn.box.length)}}sn=(tr=hn)&&tr.box&&tr.box.length>0,un=tr&&tr.offscreen;var Kn=ct.textCircles;if(Kn){var Jn=ze.text.placedSymbolArray.get(We.centerJustifiedTextSymbolIndex),ei=Ee.evaluateSizeForFeature(ze.textSizeData,kt,Jn);vn=ft.collisionIndex.placeCollisionCircles(Kn,xt.get("text-allow-overlap"),$e,Qe,Jn,ze.lineVertexArray,ze.glyphOffsetArray,ei,Be,Ue,rt,on,Lr.predicate),sn=xt.get("text-allow-overlap")||vn.circles.length>0,un=un&&vn.offscreen}ct.iconFeatureIndex&&(Cn=ct.iconFeatureIndex),ct.iconBox&&(cn=(yn=ft.collisionIndex.placeCollisionBox(ct.iconBox,xt.get("icon-allow-overlap"),Qe,Be,Lr.predicate)).box.length>0,un=un&&yn.offscreen);var ti=Lt||0===We.numHorizontalGlyphVertices&&0===We.numVerticalGlyphVertices,ri=Ut||0===We.numIconVertices;ti||ri?ri?ti||(cn=cn&&sn):sn=cn&&sn:cn=sn=cn&&sn,sn&&tr&&tr.box&&(dn&&dn.box&&Mn?ft.collisionIndex.insertCollisionBox(tr.box,xt.get("text-ignore-placement"),ze.bucketInstanceId,Mn,Lr.ID):ft.collisionIndex.insertCollisionBox(tr.box,xt.get("text-ignore-placement"),ze.bucketInstanceId,_n,Lr.ID)),cn&&yn&&ft.collisionIndex.insertCollisionBox(yn.box,xt.get("icon-ignore-placement"),ze.bucketInstanceId,Cn,Lr.ID),sn&&vn&&ft.collisionIndex.insertCollisionCircles(vn.circles,xt.get("text-ignore-placement"),ze.bucketInstanceId,_n,Lr.ID),ft.placements[We.crossTileID]=new de(sn||rr,cn||ar,un||ze.justReloaded),at[We.crossTileID]=!0}};if(sn)for(var cn=ze.getSortedSymbolIndexes(this.transform.angle),un=cn.length-1;un>=0;--un){var hn=cn[un];T(ze.symbolInstances.get(hn),ze.collisionArrays[hn])}else for(var dn=0;dn=0&&(ze.text.placedSymbolArray.get(at).crossTileID=$e>=0&&at!==$e?0:Ue.crossTileID)}},ge.prototype.markUsedOrientation=function(ze,Be,Ue){for(var We=Be===Ee.WritingMode.horizontal||Be===Ee.WritingMode.horizontalOnly?Be:0,$e=Be===Ee.WritingMode.vertical?Be:0,Qe=0,rt=[Ue.leftJustifiedTextSymbolIndex,Ue.centerJustifiedTextSymbolIndex,Ue.rightJustifiedTextSymbolIndex];Qe0||Ut>0,Lr=kt.numIconVertices>0;if(ar){for(var Qr=Se(rr.text),on=(Lt+Ut)/4,sn=0;sn=0&&(ze.text.placedSymbolArray.get(Ee).hidden=cn||dn)})),kt.verticalPlacedTextSymbolIndex>=0&&(ze.text.placedSymbolArray.get(kt.verticalPlacedTextSymbolIndex).hidden=cn||hn);var vn=this.variableOffsets[kt.crossTileID];vn&&this.markUsedJustification(ze,vn.anchor,kt,un);var yn=this.placedOrientations[kt.crossTileID];yn&&(this.markUsedJustification(ze,"left",kt,yn),this.markUsedOrientation(ze,yn,kt))}if(Lr){for(var _n=Se(rr.icon),Mn=0;MnEe},ge.prototype.setStale=function(){this.stale=!0};var Ka=Math.pow(2,25),Co=Math.pow(2,24),zo=Math.pow(2,17),Bo=Math.pow(2,16),Vo=Math.pow(2,9),Uo=Math.pow(2,8),Ho=Math.pow(2,1);function Se(Ee){if(0===Ee.opacity&&!Ee.placed)return 0;if(1===Ee.opacity&&Ee.placed)return 4294967295;var ze=Ee.placed?1:0,Be=Math.floor(127*Ee.opacity);return Be*Ka+ze*Co+Be*zo+ze*Bo+Be*Vo+ze*Uo+Be*Ho+ze}var Ce=function(){this._currentTileIndex=0,this._seenCrossTileIDs={}};Ce.prototype.continuePlacement=function(Ee,ze,Be,Ue,We){for(;this._currentTileIndex2};this._currentPlacementIndex>=0;){var Qe=Be[ze[this._currentPlacementIndex]],rt=this.placement.collisionIndex.transform.zoom;if("symbol"===Qe.type&&(!Qe.minzoom||Qe.minzoom<=rt)&&(!Qe.maxzoom||Qe.maxzoom>rt)){if(this._inProgressLayer||(this._inProgressLayer=new Ce),this._inProgressLayer.continuePlacement(Ue[Qe.source],this.placement,this._showCollisionBoxes,Qe,n))return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0},Pe.prototype.commit=function(Ee){return this.placement.commit(Ee),this.placement};var Wo=512/Ee.EXTENT/2,Le=function(Ee,ze,Be){this.tileID=Ee,this.indexedSymbolInstances={},this.bucketInstanceId=Be;for(var Ue=0;UeEe.overscaledZ)for(var rt in Qe){var it=Qe[rt];it.tileID.isChildOf(Ee)&&it.findMatches(ze.symbolInstances,Ee,We)}else{var at=Qe[Ee.scaledTo(Number($e)).key];at&&at.findMatches(ze.symbolInstances,Ee,We)}}for(var ct=0;ct1?"@2x":"",it=Ee.getJSON(Be.transformRequest(Be.normalizeSpriteURL(ze,rt,".json"),Ee.ResourceType.SpriteJSON),(function(Ee,ze){it=null,Qe||(Qe=Ee,We=ze,u())})),at=Ee.getImage(Be.transformRequest(Be.normalizeSpriteURL(ze,rt,".png"),Ee.ResourceType.SpriteImage),(function(Ee,ze){at=null,Qe||(Qe=Ee,$e=ze,u())}));function u(){if(Qe)Ue(Qe);else if(We&&$e){var ze=Ee.browser.getImageData($e),Be={};for(var rt in We){var it=We[rt],at=it.width,ct=it.height,ft=it.x,xt=it.y,kt=it.sdf,Lt=it.pixelRatio,Ut=new Ee.RGBAImage({width:at,height:ct});Ee.RGBAImage.copy(ze,Ut,{x:ft,y:xt},{x:0,y:0},{width:at,height:ct}),Be[rt]={data:Ut,pixelRatio:Lt,sdf:kt}}Ue(null,Be)}}return{cancel:function(){it&&(it.cancel(),it=null),at&&(at.cancel(),at=null)}}}(ze.sprite,this.map._requestManager,(function(ze,Be){if(Ue._spriteRequest=null,ze)Ue.fire(new Ee.ErrorEvent(ze));else if(Be)for(var We in Be)Ue.imageManager.addImage(We,Be[We]);Ue.imageManager.setLoaded(!0),Ue.fire(new Ee.Event("data",{dataType:"style"}))})):this.imageManager.setLoaded(!0),this.glyphManager.setURL(ze.glyphs);var $e=Ft(this.stylesheet.layers);this._order=$e.map((function(Ee){return Ee.id})),this._layers={};for(var Qe=0,rt=$e;Qe0)throw new Error("Unimplemented: "+We.map((function(Ee){return Ee.command})).join(", ")+".");return Ue.forEach((function(Ee){"setTransition"!==Ee.command&&Be[Ee.command].apply(Be,Ee.args)})),this.stylesheet=ze,!0},i.prototype.addImage=function(ze,Be){if(this.getImage(ze))return this.fire(new Ee.ErrorEvent(new Error("An image with this name already exists.")));this.imageManager.addImage(ze,Be),this.fire(new Ee.Event("data",{dataType:"style"}))},i.prototype.updateImage=function(Ee,ze){this.imageManager.updateImage(Ee,ze)},i.prototype.getImage=function(Ee){return this.imageManager.getImage(Ee)},i.prototype.removeImage=function(ze){if(!this.getImage(ze))return this.fire(new Ee.ErrorEvent(new Error("No image with this name exists.")));this.imageManager.removeImage(ze),this.fire(new Ee.Event("data",{dataType:"style"}))},i.prototype.listImages=function(){return this._checkLoaded(),this.imageManager.listImages()},i.prototype.addSource=function(ze,Be,Ue){var We=this;if(void 0===Ue&&(Ue={}),this._checkLoaded(),void 0!==this.sourceCaches[ze])throw new Error("There is already a source with this ID");if(!Be.type)throw new Error("The type property must be defined, but the only the following properties were given: "+Object.keys(Be).join(", ")+".");if(!(["vector","raster","geojson","video","image"].indexOf(Be.type)>=0&&this._validate(Ee.validateStyle.source,"sources."+ze,Be,null,Ue))){this.map&&this.map._collectResourceTiming&&(Be.collectResourceTiming=!0);var $e=this.sourceCaches[ze]=new Ia(ze,Be,this.dispatcher);$e.style=this,$e.setEventedParent(this,(function(){return{isSourceLoaded:We.loaded(),source:$e.serialize(),sourceId:ze}})),$e.onAdd(this.map),this._changed=!0}},i.prototype.removeSource=function(ze){if(this._checkLoaded(),void 0===this.sourceCaches[ze])throw new Error("There is no source with this ID");for(var Be in this._layers)if(this._layers[Be].source===ze)return this.fire(new Ee.ErrorEvent(new Error('Source "'+ze+'" cannot be removed while layer "'+Be+'" is using it.')));var Ue=this.sourceCaches[ze];delete this.sourceCaches[ze],delete this._updatedSources[ze],Ue.fire(new Ee.Event("data",{sourceDataType:"metadata",dataType:"source",sourceId:ze})),Ue.setEventedParent(null),Ue.clearTiles(),Ue.onRemove&&Ue.onRemove(this.map),this._changed=!0},i.prototype.setGeoJSONSourceData=function(Ee,ze){this._checkLoaded(),this.sourceCaches[Ee].getSource().setData(ze),this._changed=!0},i.prototype.getSource=function(Ee){return this.sourceCaches[Ee]&&this.sourceCaches[Ee].getSource()},i.prototype.addLayer=function(ze,Be,Ue){void 0===Ue&&(Ue={}),this._checkLoaded();var We=ze.id;if(this.getLayer(We))this.fire(new Ee.ErrorEvent(new Error('Layer with id "'+We+'" already exists on this map')));else{var $e;if("custom"===ze.type){if(Ae(this,Ee.validateCustomStyleLayer(ze)))return;$e=Ee.createStyleLayer(ze)}else{if("object"==typeof ze.source&&(this.addSource(We,ze.source),ze=Ee.clone$1(ze),ze=Ee.extend(ze,{source:We})),this._validate(Ee.validateStyle.layer,"layers."+We,ze,{arrayIndex:-1},Ue))return;$e=Ee.createStyleLayer(ze),this._validateLayer($e),$e.setEventedParent(this,{layer:{id:We}})}var Qe=Be?this._order.indexOf(Be):this._order.length;if(Be&&-1===Qe)this.fire(new Ee.ErrorEvent(new Error('Layer with id "'+Be+'" does not exist on this map.')));else{if(this._order.splice(Qe,0,We),this._layerOrderChanged=!0,this._layers[We]=$e,this._removedLayers[We]&&$e.source&&"custom"!==$e.type){var rt=this._removedLayers[We];delete this._removedLayers[We],rt.type!==$e.type?this._updatedSources[$e.source]="clear":(this._updatedSources[$e.source]="reload",this.sourceCaches[$e.source].pause())}this._updateLayer($e),$e.onAdd&&$e.onAdd(this.map)}}},i.prototype.moveLayer=function(ze,Be){if(this._checkLoaded(),this._changed=!0,this._layers[ze]){if(ze!==Be){var Ue=this._order.indexOf(ze);this._order.splice(Ue,1);var We=Be?this._order.indexOf(Be):this._order.length;Be&&-1===We?this.fire(new Ee.ErrorEvent(new Error('Layer with id "'+Be+'" does not exist on this map.'))):(this._order.splice(We,0,ze),this._layerOrderChanged=!0)}}else this.fire(new Ee.ErrorEvent(new Error("The layer '"+ze+"' does not exist in the map's style and cannot be moved.")))},i.prototype.removeLayer=function(ze){this._checkLoaded();var Be=this._layers[ze];if(Be){Be.setEventedParent(null);var Ue=this._order.indexOf(ze);this._order.splice(Ue,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[ze]=Be,delete this._layers[ze],delete this._updatedLayers[ze],delete this._updatedPaintProps[ze],Be.onRemove&&Be.onRemove(this.map)}else this.fire(new Ee.ErrorEvent(new Error("The layer '"+ze+"' does not exist in the map's style and cannot be removed.")))},i.prototype.getLayer=function(Ee){return this._layers[Ee]},i.prototype.setLayerZoomRange=function(ze,Be,Ue){this._checkLoaded();var We=this.getLayer(ze);We?We.minzoom===Be&&We.maxzoom===Ue||(null!=Be&&(We.minzoom=Be),null!=Ue&&(We.maxzoom=Ue),this._updateLayer(We)):this.fire(new Ee.ErrorEvent(new Error("The layer '"+ze+"' does not exist in the map's style and cannot have zoom extent.")))},i.prototype.setFilter=function(ze,Be,Ue){void 0===Ue&&(Ue={}),this._checkLoaded();var We=this.getLayer(ze);if(We){if(!Ee.deepEqual(We.filter,Be))return null==Be?(We.filter=void 0,void this._updateLayer(We)):void(this._validate(Ee.validateStyle.filter,"layers."+We.id+".filter",Be,null,Ue)||(We.filter=Ee.clone$1(Be),this._updateLayer(We)))}else this.fire(new Ee.ErrorEvent(new Error("The layer '"+ze+"' does not exist in the map's style and cannot be filtered.")))},i.prototype.getFilter=function(ze){return Ee.clone$1(this.getLayer(ze).filter)},i.prototype.setLayoutProperty=function(ze,Be,Ue,We){void 0===We&&(We={}),this._checkLoaded();var $e=this.getLayer(ze);$e?Ee.deepEqual($e.getLayoutProperty(Be),Ue)||($e.setLayoutProperty(Be,Ue,We),this._updateLayer($e)):this.fire(new Ee.ErrorEvent(new Error("The layer '"+ze+"' does not exist in the map's style and cannot be styled.")))},i.prototype.getLayoutProperty=function(ze,Be){var Ue=this.getLayer(ze);if(Ue)return Ue.getLayoutProperty(Be);this.fire(new Ee.ErrorEvent(new Error("The layer '"+ze+"' does not exist in the map's style.")))},i.prototype.setPaintProperty=function(ze,Be,Ue,We){void 0===We&&(We={}),this._checkLoaded();var $e=this.getLayer(ze);$e?Ee.deepEqual($e.getPaintProperty(Be),Ue)||($e.setPaintProperty(Be,Ue,We)&&this._updateLayer($e),this._changed=!0,this._updatedPaintProps[ze]=!0):this.fire(new Ee.ErrorEvent(new Error("The layer '"+ze+"' does not exist in the map's style and cannot be styled.")))},i.prototype.getPaintProperty=function(Ee,ze){return this.getLayer(Ee).getPaintProperty(ze)},i.prototype.setFeatureState=function(ze,Be){this._checkLoaded();var Ue=ze.source,We=ze.sourceLayer,$e=this.sourceCaches[Ue],Qe=parseInt(ze.id,10);if(void 0!==$e){var rt=$e.getSource().type;"geojson"===rt&&We?this.fire(new Ee.ErrorEvent(new Error("GeoJSON sources cannot have a sourceLayer parameter."))):"vector"!==rt||We?isNaN(Qe)||Qe<0?this.fire(new Ee.ErrorEvent(new Error("The feature id parameter must be provided and non-negative."))):$e.setFeatureState(We,Qe,Be):this.fire(new Ee.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new Ee.ErrorEvent(new Error("The source '"+Ue+"' does not exist in the map's style.")))},i.prototype.removeFeatureState=function(ze,Be){this._checkLoaded();var Ue=ze.source,We=this.sourceCaches[Ue];if(void 0!==We){var $e=We.getSource().type,Qe="vector"===$e?ze.sourceLayer:void 0,rt=parseInt(ze.id,10);"vector"!==$e||Qe?void 0!==ze.id&&isNaN(rt)||rt<0?this.fire(new Ee.ErrorEvent(new Error("The feature id parameter must be non-negative."))):Be&&"string"!=typeof ze.id&&"number"!=typeof ze.id?this.fire(new Ee.ErrorEvent(new Error("A feature id is requred to remove its specific state property."))):We.removeFeatureState(Qe,rt,Be):this.fire(new Ee.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new Ee.ErrorEvent(new Error("The source '"+Ue+"' does not exist in the map's style.")))},i.prototype.getFeatureState=function(ze){this._checkLoaded();var Be=ze.source,Ue=ze.sourceLayer,We=this.sourceCaches[Be],$e=parseInt(ze.id,10);if(void 0!==We)if("vector"!==We.getSource().type||Ue){if(!(isNaN($e)||$e<0))return We.getFeatureState(Ue,$e);this.fire(new Ee.ErrorEvent(new Error("The feature id parameter must be provided and non-negative.")))}else this.fire(new Ee.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));else this.fire(new Ee.ErrorEvent(new Error("The source '"+Be+"' does not exist in the map's style.")))},i.prototype.getTransition=function(){return Ee.extend({duration:300,delay:0},this.stylesheet&&this.stylesheet.transition)},i.prototype.serialize=function(){return Ee.filterObject({version:this.stylesheet.version,name:this.stylesheet.name,metadata:this.stylesheet.metadata,light:this.stylesheet.light,center:this.stylesheet.center,zoom:this.stylesheet.zoom,bearing:this.stylesheet.bearing,pitch:this.stylesheet.pitch,sprite:this.stylesheet.sprite,glyphs:this.stylesheet.glyphs,transition:this.stylesheet.transition,sources:Ee.mapObject(this.sourceCaches,(function(Ee){return Ee.serialize()})),layers:this._serializeLayers(this._order)},(function(Ee){return void 0!==Ee}))},i.prototype._updateLayer=function(Ee){this._updatedLayers[Ee.id]=!0,Ee.source&&!this._updatedSources[Ee.source]&&(this._updatedSources[Ee.source]="reload",this.sourceCaches[Ee.source].pause()),this._changed=!0},i.prototype._flattenAndSortRenderedFeatures=function(Ee){for(var ze=this,i=function(Ee){return"fill-extrusion"===ze._layers[Ee].type},Be={},Ue=[],We=this._order.length-1;We>=0;We--){var $e=this._order[We];if(i($e)){Be[$e]=We;for(var Qe=0,rt=Ee;Qe=0;kt--){var Lt=this._order[kt];if(i(Lt))for(var Ut=Ue.length-1;Ut>=0;Ut--){var er=Ue[Ut].feature;if(Be[er.layer.id] 0.5) {gl_FragColor=vec4(0.0,0.0,1.0,0.5)*alpha;}if (v_notUsed > 0.5) {gl_FragColor*=.1;}}","attribute vec2 a_pos;attribute vec2 a_anchor_pos;attribute vec2 a_extrude;attribute vec2 a_placed;attribute vec2 a_shift;uniform mat4 u_matrix;uniform vec2 u_extrude_scale;uniform float u_camera_to_center_distance;varying float v_placed;varying float v_notUsed;void main() {vec4 projectedPoint=u_matrix*vec4(a_anchor_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);gl_Position=u_matrix*vec4(a_pos,0.0,1.0);gl_Position.xy+=(a_extrude+a_shift)*u_extrude_scale*gl_Position.w*collision_perspective_ratio;v_placed=a_placed.x;v_notUsed=a_placed.y;}"),fs=ui("uniform float u_overscale_factor;varying float v_placed;varying float v_notUsed;varying float v_radius;varying vec2 v_extrude;varying vec2 v_extrude_scale;void main() {float alpha=0.5;vec4 color=vec4(1.0,0.0,0.0,1.0)*alpha;if (v_placed > 0.5) {color=vec4(0.0,0.0,1.0,0.5)*alpha;}if (v_notUsed > 0.5) {color*=.2;}float extrude_scale_length=length(v_extrude_scale);float extrude_length=length(v_extrude)*extrude_scale_length;float stroke_width=15.0*extrude_scale_length/u_overscale_factor;float radius=v_radius*extrude_scale_length;float distance_to_edge=abs(extrude_length-radius);float opacity_t=smoothstep(-stroke_width,0.0,-distance_to_edge);gl_FragColor=opacity_t*color;}","attribute vec2 a_pos;attribute vec2 a_anchor_pos;attribute vec2 a_extrude;attribute vec2 a_placed;uniform mat4 u_matrix;uniform vec2 u_extrude_scale;uniform float u_camera_to_center_distance;varying float v_placed;varying float v_notUsed;varying float v_radius;varying vec2 v_extrude;varying vec2 v_extrude_scale;void main() {vec4 projectedPoint=u_matrix*vec4(a_anchor_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);gl_Position=u_matrix*vec4(a_pos,0.0,1.0);highp float padding_factor=1.2;gl_Position.xy+=a_extrude*u_extrude_scale*padding_factor*gl_Position.w*collision_perspective_ratio;v_placed=a_placed.x;v_notUsed=a_placed.y;v_radius=abs(a_extrude.y);v_extrude=a_extrude*padding_factor;v_extrude_scale=u_extrude_scale*u_camera_to_center_distance*collision_perspective_ratio;}"),hs=ui("uniform highp vec4 u_color;void main() {gl_FragColor=u_color;}","attribute vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);}"),ms=ui("#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float opacity\ngl_FragColor=color*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec2 a_pos;uniform mat4 u_matrix;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float opacity\ngl_Position=u_matrix*vec4(a_pos,0,1);}"),vs=ui("varying vec2 v_pos;\n#pragma mapbox: define highp vec4 outline_color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 outline_color\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);gl_FragColor=outline_color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec2 a_pos;uniform mat4 u_matrix;uniform vec2 u_world;varying vec2 v_pos;\n#pragma mapbox: define highp vec4 outline_color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 outline_color\n#pragma mapbox: initialize lowp float opacity\ngl_Position=u_matrix*vec4(a_pos,0,1);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}"),ks=ui("uniform vec2 u_texsize;uniform sampler2D u_image;uniform float u_fade;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);float dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);gl_FragColor=mix(color1,color2,u_fade)*alpha*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_world;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec4 u_scale;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float pixelRatio=u_scale.x;float tileRatio=u_scale.y;float fromScale=u_scale.z;float toScale=u_scale.w;gl_Position=u_matrix*vec4(a_pos,0,1);vec2 display_size_a=vec2((pattern_br_a.x-pattern_tl_a.x)/pixelRatio,(pattern_br_a.y-pattern_tl_a.y)/pixelRatio);vec2 display_size_b=vec2((pattern_br_b.x-pattern_tl_b.x)/pixelRatio,(pattern_br_b.y-pattern_tl_b.y)/pixelRatio);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,a_pos);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}"),Ms=ui("uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);gl_FragColor=mix(color1,color2,u_fade)*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec4 u_scale;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float pixelRatio=u_scale.x;float tileZoomRatio=u_scale.y;float fromScale=u_scale.z;float toScale=u_scale.w;vec2 display_size_a=vec2((pattern_br_a.x-pattern_tl_a.x)/pixelRatio,(pattern_br_a.y-pattern_tl_a.y)/pixelRatio);vec2 display_size_b=vec2((pattern_br_b.x-pattern_tl_b.x)/pixelRatio,(pattern_br_b.y-pattern_tl_b.y)/pixelRatio);gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileZoomRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileZoomRatio,a_pos);}"),Ss=ui("varying vec4 v_color;void main() {gl_FragColor=v_color;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;uniform float u_vertical_gradient;uniform lowp float u_opacity;attribute vec2 a_pos;attribute vec4 a_normal_ed;varying vec4 v_color;\n#pragma mapbox: define highp float base\n#pragma mapbox: define highp float height\n#pragma mapbox: define highp vec4 color\nvoid main() {\n#pragma mapbox: initialize highp float base\n#pragma mapbox: initialize highp float height\n#pragma mapbox: initialize highp vec4 color\nvec3 normal=a_normal_ed.xyz;base=max(0.0,base);height=max(0.0,height);float t=mod(normal.x,2.0);gl_Position=u_matrix*vec4(a_pos,t > 0.0 ? height : base,1);float colorvalue=color.r*0.2126+color.g*0.7152+color.b*0.0722;v_color=vec4(0.0,0.0,0.0,1.0);vec4 ambientlight=vec4(0.03,0.03,0.03,1.0);color+=ambientlight;float directional=clamp(dot(normal/16384.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((1.0-colorvalue+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_color.r+=clamp(color.r*directional*u_lightcolor.r,mix(0.0,0.3,1.0-u_lightcolor.r),1.0);v_color.g+=clamp(color.g*directional*u_lightcolor.g,mix(0.0,0.3,1.0-u_lightcolor.g),1.0);v_color.b+=clamp(color.b*directional*u_lightcolor.b,mix(0.0,0.3,1.0-u_lightcolor.b),1.0);v_color*=u_opacity;}"),Es=ui("uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting;\n#pragma mapbox: define lowp float base\n#pragma mapbox: define lowp float height\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\nvoid main() {\n#pragma mapbox: initialize lowp float base\n#pragma mapbox: initialize lowp float height\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);vec4 mixedColor=mix(color1,color2,u_fade);gl_FragColor=mixedColor*v_lighting;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_height_factor;uniform vec4 u_scale;uniform float u_vertical_gradient;uniform lowp float u_opacity;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;attribute vec2 a_pos;attribute vec4 a_normal_ed;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting;\n#pragma mapbox: define lowp float base\n#pragma mapbox: define lowp float height\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\nvoid main() {\n#pragma mapbox: initialize lowp float base\n#pragma mapbox: initialize lowp float height\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float pixelRatio=u_scale.x;float tileRatio=u_scale.y;float fromScale=u_scale.z;float toScale=u_scale.w;vec3 normal=a_normal_ed.xyz;float edgedistance=a_normal_ed.w;vec2 display_size_a=vec2((pattern_br_a.x-pattern_tl_a.x)/pixelRatio,(pattern_br_a.y-pattern_tl_a.y)/pixelRatio);vec2 display_size_b=vec2((pattern_br_b.x-pattern_tl_b.x)/pixelRatio,(pattern_br_b.y-pattern_tl_b.y)/pixelRatio);base=max(0.0,base);height=max(0.0,height);float t=mod(normal.x,2.0);float z=t > 0.0 ? height : base;gl_Position=u_matrix*vec4(a_pos,z,1);vec2 pos=normal.x==1.0 && normal.y==0.0 && normal.z==16384.0\n? a_pos\n: vec2(edgedistance,z*u_height_factor);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,pos);v_lighting=vec4(0.0,0.0,0.0,1.0);float directional=clamp(dot(normal/16383.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((0.5+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_lighting.rgb+=clamp(directional*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_lighting*=u_opacity;}"),Ls=ui("#ifdef GL_ES\nprecision highp float;\n#endif\nuniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_dimension;uniform float u_zoom;uniform float u_maxzoom;float getElevation(vec2 coord,float bias) {vec4 data=texture2D(u_image,coord)*255.0;return (data.r+data.g*256.0+data.b*256.0*256.0)/4.0;}void main() {vec2 epsilon=1.0/u_dimension;float a=getElevation(v_pos+vec2(-epsilon.x,-epsilon.y),0.0);float b=getElevation(v_pos+vec2(0,-epsilon.y),0.0);float c=getElevation(v_pos+vec2(epsilon.x,-epsilon.y),0.0);float d=getElevation(v_pos+vec2(-epsilon.x,0),0.0);float e=getElevation(v_pos,0.0);float f=getElevation(v_pos+vec2(epsilon.x,0),0.0);float g=getElevation(v_pos+vec2(-epsilon.x,epsilon.y),0.0);float h=getElevation(v_pos+vec2(0,epsilon.y),0.0);float i=getElevation(v_pos+vec2(epsilon.x,epsilon.y),0.0);float exaggeration=u_zoom < 2.0 ? 0.4 : u_zoom < 4.5 ? 0.35 : 0.3;vec2 deriv=vec2((c+f+f+i)-(a+d+d+g),(g+h+h+i)-(a+b+b+c))/ pow(2.0,(u_zoom-u_maxzoom)*exaggeration+19.2562-u_zoom);gl_FragColor=clamp(vec4(deriv.x/2.0+0.5,deriv.y/2.0+0.5,1.0,1.0),0.0,1.0);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_dimension;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_texture_pos/8192.0)*scale+epsilon;}"),Ds=ui("uniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_latrange;uniform vec2 u_light;uniform vec4 u_shadow;uniform vec4 u_highlight;uniform vec4 u_accent;\n#define PI 3.141592653589793\nvoid main() {vec4 pixel=texture2D(u_image,v_pos);vec2 deriv=((pixel.rg*2.0)-1.0);float scaleFactor=cos(radians((u_latrange[0]-u_latrange[1])*(1.0-v_pos.y)+u_latrange[1]));float slope=atan(1.25*length(deriv)/scaleFactor);float aspect=deriv.x !=0.0 ? atan(deriv.y,-deriv.x) : PI/2.0*(deriv.y > 0.0 ? 1.0 :-1.0);float intensity=u_light.x;float azimuth=u_light.y+PI;float base=1.875-intensity*1.75;float maxValue=0.5*PI;float scaledSlope=intensity !=0.5 ? ((pow(base,slope)-1.0)/(pow(base,maxValue)-1.0))*maxValue : slope;float accent=cos(scaledSlope);vec4 accent_color=(1.0-accent)*u_accent*clamp(intensity*2.0,0.0,1.0);float shade=abs(mod((aspect+azimuth)/PI+0.5,2.0)-1.0);vec4 shade_color=mix(u_shadow,u_highlight,shade)*sin(scaledSlope)*clamp(intensity*2.0,0.0,1.0);gl_FragColor=accent_color*(1.0-shade_color.a)+shade_color;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=a_texture_pos/8192.0;}"),Rs=ui("uniform lowp float u_device_pixel_ratio;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);gl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define scale 0.015873016\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform vec2 u_units_to_pixels;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp float v_linesofar;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;v_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*2.0;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_width2=vec2(outset,inset);}"),Bs=ui("uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;varying highp float v_lineprogress;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);vec4 color=texture2D(u_image,vec2(v_lineprogress,0.5));gl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define MAX_LINE_DISTANCE 32767.0\n#define scale 0.015873016\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_units_to_pixels;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp float v_lineprogress;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;v_lineprogress=(floor(a_data.z/4.0)+a_data.w*64.0)*2.0/MAX_LINE_DISTANCE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_width2=vec2(outset,inset);}"),Ns=ui("uniform lowp float u_device_pixel_ratio;uniform vec2 u_texsize;uniform float u_fade;uniform mediump vec4 u_scale;uniform sampler2D u_image;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float pixelRatio=u_scale.x;float tileZoomRatio=u_scale.y;float fromScale=u_scale.z;float toScale=u_scale.w;vec2 display_size_a=vec2((pattern_br_a.x-pattern_tl_a.x)/pixelRatio,(pattern_br_a.y-pattern_tl_a.y)/pixelRatio);vec2 display_size_b=vec2((pattern_br_b.x-pattern_tl_b.x)/pixelRatio,(pattern_br_b.y-pattern_tl_b.y)/pixelRatio);vec2 pattern_size_a=vec2(display_size_a.x*fromScale/tileZoomRatio,display_size_a.y);vec2 pattern_size_b=vec2(display_size_b.x*toScale/tileZoomRatio,display_size_b.y);float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float x_a=mod(v_linesofar/pattern_size_a.x,1.0);float x_b=mod(v_linesofar/pattern_size_b.x,1.0);float y_a=0.5+(v_normal.y*clamp(v_width2.s,0.0,(pattern_size_a.y+2.0)/2.0)/pattern_size_a.y);float y_b=0.5+(v_normal.y*clamp(v_width2.s,0.0,(pattern_size_b.y+2.0)/2.0)/pattern_size_b.y);vec2 pos_a=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,vec2(x_a,y_a));vec2 pos_b=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,vec2(x_b,y_b));vec4 color=mix(texture2D(u_image,pos_a),texture2D(u_image,pos_b),u_fade);gl_FragColor=color*alpha*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define scale 0.015873016\n#define LINE_DISTANCE_SCALE 2.0\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform vec2 u_units_to_pixels;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_linesofar=a_linesofar;v_width2=vec2(outset,inset);}"),js=ui("uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;uniform float u_sdfgamma;uniform float u_mix;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float sdfdist_a=texture2D(u_image,v_tex_a).a;float sdfdist_b=texture2D(u_image,v_tex_b).a;float sdfdist=mix(sdfdist_a,sdfdist_b,u_mix);alpha*=smoothstep(0.5-u_sdfgamma/floorwidth,0.5+u_sdfgamma/floorwidth,sdfdist);gl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define scale 0.015873016\n#define LINE_DISTANCE_SCALE 2.0\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_patternscale_a;uniform float u_tex_y_a;uniform vec2 u_patternscale_b;uniform float u_tex_y_b;uniform vec2 u_units_to_pixels;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_tex_a=vec2(a_linesofar*u_patternscale_a.x/floorwidth,normal.y*u_patternscale_a.y+u_tex_y_a);v_tex_b=vec2(a_linesofar*u_patternscale_b.x/floorwidth,normal.y*u_patternscale_b.y+u_tex_y_b);v_width2=vec2(outset,inset);}"),Hs=ui("uniform float u_fade_t;uniform float u_opacity;uniform sampler2D u_image0;uniform sampler2D u_image1;varying vec2 v_pos0;varying vec2 v_pos1;uniform float u_brightness_low;uniform float u_brightness_high;uniform float u_saturation_factor;uniform float u_contrast_factor;uniform vec3 u_spin_weights;void main() {vec4 color0=texture2D(u_image0,v_pos0);vec4 color1=texture2D(u_image1,v_pos1);if (color0.a > 0.0) {color0.rgb=color0.rgb/color0.a;}if (color1.a > 0.0) {color1.rgb=color1.rgb/color1.a;}vec4 color=mix(color0,color1,u_fade_t);color.a*=u_opacity;vec3 rgb=color.rgb;rgb=vec3(dot(rgb,u_spin_weights.xyz),dot(rgb,u_spin_weights.zxy),dot(rgb,u_spin_weights.yzx));float average=(color.r+color.g+color.b)/3.0;rgb+=(average-rgb)*u_saturation_factor;rgb=(rgb-0.5)*u_contrast_factor+0.5;vec3 u_high_vec=vec3(u_brightness_low,u_brightness_low,u_brightness_low);vec3 u_low_vec=vec3(u_brightness_high,u_brightness_high,u_brightness_high);gl_FragColor=vec4(mix(u_high_vec,u_low_vec,rgb)*color.a,color.a);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_tl_parent;uniform float u_scale_parent;uniform float u_buffer_scale;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos0;varying vec2 v_pos1;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos0=(((a_texture_pos/8192.0)-0.5)/u_buffer_scale )+0.5;v_pos1=(v_pos0*u_scale_parent)+u_tl_parent;}"),qs=ui("uniform sampler2D u_texture;varying vec2 v_tex;varying float v_fade_opacity;\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\nlowp float alpha=opacity*v_fade_opacity;gl_FragColor=texture2D(u_texture,v_tex)*alpha;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform highp float u_camera_to_center_distance;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform float u_fade_change;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform vec2 u_texsize;varying vec2 v_tex;varying float v_fade_opacity;\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size[0],a_size[1],u_size_t)/256.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size[0]/256.0;} else if (!u_is_size_zoom_constant && u_is_size_feature_constant) {size=u_size;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale),0.0,1.0);v_tex=a_tex/u_texsize;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;v_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));}"),Ws=ui("#define SDF_PX 8.0\nuniform bool u_is_halo;uniform sampler2D u_texture;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;uniform bool u_is_text;varying vec2 v_data0;varying vec3 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nfloat EDGE_GAMMA=0.105/u_device_pixel_ratio;vec2 tex=v_data0.xy;float gamma_scale=v_data1.x;float size=v_data1.y;float fade_opacity=v_data1[2];float fontScale=u_is_text ? size/24.0 : size;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;varying vec2 v_data0;varying vec3 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size[0],a_size[1],u_size_t)/256.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size[0]/256.0;} else if (!u_is_size_zoom_constant && u_is_size_feature_constant) {size=u_size;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale),0.0,1.0);float gamma_scale=gl_Position.w;vec2 tex=a_tex/u_texsize;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0=vec2(tex.x,tex.y);v_data1=vec3(gamma_scale,size,interpolated_fade_opacity);}");function ui(Ee,ze){var Be=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,Ue={};return{fragmentSource:Ee=Ee.replace(Be,(function(Ee,ze,Be,We,$e){return Ue[$e]=!0,"define"===ze?"\n#ifndef HAS_UNIFORM_u_"+$e+"\nvarying "+Be+" "+We+" "+$e+";\n#else\nuniform "+Be+" "+We+" u_"+$e+";\n#endif\n":"\n#ifdef HAS_UNIFORM_u_"+$e+"\n "+Be+" "+We+" "+$e+" = u_"+$e+";\n#endif\n"})),vertexSource:ze=ze.replace(Be,(function(Ee,ze,Be,We,$e){var Qe="float"===We?"vec2":"vec4",rt=$e.match(/color/)?"color":Qe;return Ue[$e]?"define"===ze?"\n#ifndef HAS_UNIFORM_u_"+$e+"\nuniform lowp float u_"+$e+"_t;\nattribute "+Be+" "+Qe+" a_"+$e+";\nvarying "+Be+" "+We+" "+$e+";\n#else\nuniform "+Be+" "+We+" u_"+$e+";\n#endif\n":"vec4"===rt?"\n#ifndef HAS_UNIFORM_u_"+$e+"\n "+$e+" = a_"+$e+";\n#else\n "+Be+" "+We+" "+$e+" = u_"+$e+";\n#endif\n":"\n#ifndef HAS_UNIFORM_u_"+$e+"\n "+$e+" = unpack_mix_"+rt+"(a_"+$e+", u_"+$e+"_t);\n#else\n "+Be+" "+We+" "+$e+" = u_"+$e+";\n#endif\n":"define"===ze?"\n#ifndef HAS_UNIFORM_u_"+$e+"\nuniform lowp float u_"+$e+"_t;\nattribute "+Be+" "+Qe+" a_"+$e+";\n#else\nuniform "+Be+" "+We+" u_"+$e+";\n#endif\n":"vec4"===rt?"\n#ifndef HAS_UNIFORM_u_"+$e+"\n "+Be+" "+We+" "+$e+" = a_"+$e+";\n#else\n "+Be+" "+We+" "+$e+" = u_"+$e+";\n#endif\n":"\n#ifndef HAS_UNIFORM_u_"+$e+"\n "+Be+" "+We+" "+$e+" = unpack_mix_"+rt+"(a_"+$e+", u_"+$e+"_t);\n#else\n "+Be+" "+We+" "+$e+" = u_"+$e+";\n#endif\n"}))}}var Zs=Object.freeze({prelude:rs,background:ns,backgroundPattern:as,circle:os,clippingMask:ss,heatmap:ls,heatmapTexture:cs,collisionBox:us,collisionCircle:fs,debug:hs,fill:ms,fillOutline:vs,fillOutlinePattern:ks,fillPattern:Ms,fillExtrusion:Ss,fillExtrusionPattern:Es,hillshadePrepare:Ls,hillshade:Ds,line:Rs,lineGradient:Bs,linePattern:Ns,lineSDF:js,raster:Hs,symbolIcon:qs,symbolSDF:Ws}),pi=function(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null};pi.prototype.bind=function(Ee,ze,Be,Ue,We,$e,Qe,rt){this.context=Ee;for(var it=this.boundPaintVertexBuffers.length!==Ue.length,at=0;!it&&at>16,it>>16],u_pixel_coord_lower:[65535&rt,65535&it]}}di.prototype.draw=function(Ee,ze,Be,Ue,We,$e,Qe,rt,it,at,ct,ft,xt,kt,Lt,Ut){var er,tr=Ee.gl;for(var rr in Ee.program.set(this.program),Ee.setDepthMode(Be),Ee.setStencilMode(Ue),Ee.setColorMode(We),Ee.setCullFace($e),this.fixedUniforms)this.fixedUniforms[rr].set(Qe[rr]);kt&&kt.setUniforms(Ee,this.binderUniforms,ft,{zoom:xt});for(var ar=(er={},er[tr.LINES]=2,er[tr.TRIANGLES]=3,er[tr.LINE_STRIP]=1,er)[ze],Lr=0,Qr=ct.get();Lr0?1-1/(1.001-Qe):-Qe),u_contrast_factor:($e=We.paint.get("raster-contrast"),$e>0?1/(1-$e):1+$e),u_spin_weights:Fi(We.paint.get("raster-hue-rotate"))};var $e,Qe};function Fi(Ee){Ee*=Math.PI/180;var ze=Math.sin(Ee),Be=Math.cos(Ee);return[(2*Be+1)/3,(-Math.sqrt(3)*ze-Be+1)/3,(Math.sqrt(3)*ze-Be+1)/3]}var Ui=function(Ee,ze,Be,Ue,We,$e,Qe,rt,it,at){var ct=We.transform;return{u_is_size_zoom_constant:+("constant"===Ee||"source"===Ee),u_is_size_feature_constant:+("constant"===Ee||"camera"===Ee),u_size_t:ze?ze.uSizeT:0,u_size:ze?ze.uSize:0,u_camera_to_center_distance:ct.cameraToCenterDistance,u_pitch:ct.pitch/360*2*Math.PI,u_rotate_symbol:+Be,u_aspect_ratio:ct.width/ct.height,u_fade_change:We.options.fadeDuration?We.symbolFadeChange:1,u_matrix:$e,u_label_plane_matrix:Qe,u_coord_matrix:rt,u_is_text:+it,u_pitch_with_map:+Ue,u_texsize:at,u_texture:0}},Ni=function(ze,Be,Ue,We,$e,Qe,rt,it,at,ct,ft){var xt=$e.transform;return Ee.extend(Ui(ze,Be,Ue,We,$e,Qe,rt,it,at,ct),{u_gamma_scale:We?Math.cos(xt._pitch)*xt.cameraToCenterDistance:1,u_device_pixel_ratio:Ee.browser.devicePixelRatio,u_is_halo:+ft})},Zi=function(Ee,ze,Be){return{u_matrix:Ee,u_opacity:ze,u_color:Be}},qi=function(ze,Be,Ue,We,$e,Qe){return Ee.extend(function(Ee,ze,Be,Ue){var We=Be.imageManager.getPattern(Ee.from),$e=Be.imageManager.getPattern(Ee.to),Qe=Be.imageManager.getPixelSize(),rt=Qe.width,it=Qe.height,at=Math.pow(2,Ue.tileID.overscaledZ),ct=Ue.tileSize*Math.pow(2,Be.transform.tileZoom)/at,ft=ct*(Ue.tileID.canonical.x+Ue.tileID.wrap*at),xt=ct*Ue.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:We.tl,u_pattern_br_a:We.br,u_pattern_tl_b:$e.tl,u_pattern_br_b:$e.br,u_texsize:[rt,it],u_mix:ze.t,u_pattern_size_a:We.displaySize,u_pattern_size_b:$e.displaySize,u_scale_a:ze.fromScale,u_scale_b:ze.toScale,u_tile_units_to_pixels:1/ue(Ue,1,Be.transform.tileZoom),u_pixel_coord_upper:[ft>>16,xt>>16],u_pixel_coord_lower:[65535&ft,65535&xt]}}(We,Qe,Ue,$e),{u_matrix:ze,u_opacity:Be})},Xs={fillExtrusion:function(ze,Be){return{u_matrix:new Ee.UniformMatrix4f(ze,Be.u_matrix),u_lightpos:new Ee.Uniform3f(ze,Be.u_lightpos),u_lightintensity:new Ee.Uniform1f(ze,Be.u_lightintensity),u_lightcolor:new Ee.Uniform3f(ze,Be.u_lightcolor),u_vertical_gradient:new Ee.Uniform1f(ze,Be.u_vertical_gradient),u_opacity:new Ee.Uniform1f(ze,Be.u_opacity)}},fillExtrusionPattern:function(ze,Be){return{u_matrix:new Ee.UniformMatrix4f(ze,Be.u_matrix),u_lightpos:new Ee.Uniform3f(ze,Be.u_lightpos),u_lightintensity:new Ee.Uniform1f(ze,Be.u_lightintensity),u_lightcolor:new Ee.Uniform3f(ze,Be.u_lightcolor),u_vertical_gradient:new Ee.Uniform1f(ze,Be.u_vertical_gradient),u_height_factor:new Ee.Uniform1f(ze,Be.u_height_factor),u_image:new Ee.Uniform1i(ze,Be.u_image),u_texsize:new Ee.Uniform2f(ze,Be.u_texsize),u_pixel_coord_upper:new Ee.Uniform2f(ze,Be.u_pixel_coord_upper),u_pixel_coord_lower:new Ee.Uniform2f(ze,Be.u_pixel_coord_lower),u_scale:new Ee.Uniform4f(ze,Be.u_scale),u_fade:new Ee.Uniform1f(ze,Be.u_fade),u_opacity:new Ee.Uniform1f(ze,Be.u_opacity)}},fill:function(ze,Be){return{u_matrix:new Ee.UniformMatrix4f(ze,Be.u_matrix)}},fillPattern:function(ze,Be){return{u_matrix:new Ee.UniformMatrix4f(ze,Be.u_matrix),u_image:new Ee.Uniform1i(ze,Be.u_image),u_texsize:new Ee.Uniform2f(ze,Be.u_texsize),u_pixel_coord_upper:new Ee.Uniform2f(ze,Be.u_pixel_coord_upper),u_pixel_coord_lower:new Ee.Uniform2f(ze,Be.u_pixel_coord_lower),u_scale:new Ee.Uniform4f(ze,Be.u_scale),u_fade:new Ee.Uniform1f(ze,Be.u_fade)}},fillOutline:function(ze,Be){return{u_matrix:new Ee.UniformMatrix4f(ze,Be.u_matrix),u_world:new Ee.Uniform2f(ze,Be.u_world)}},fillOutlinePattern:function(ze,Be){return{u_matrix:new Ee.UniformMatrix4f(ze,Be.u_matrix),u_world:new Ee.Uniform2f(ze,Be.u_world),u_image:new Ee.Uniform1i(ze,Be.u_image),u_texsize:new Ee.Uniform2f(ze,Be.u_texsize),u_pixel_coord_upper:new Ee.Uniform2f(ze,Be.u_pixel_coord_upper),u_pixel_coord_lower:new Ee.Uniform2f(ze,Be.u_pixel_coord_lower),u_scale:new Ee.Uniform4f(ze,Be.u_scale),u_fade:new Ee.Uniform1f(ze,Be.u_fade)}},circle:function(ze,Be){return{u_camera_to_center_distance:new Ee.Uniform1f(ze,Be.u_camera_to_center_distance),u_scale_with_map:new Ee.Uniform1i(ze,Be.u_scale_with_map),u_pitch_with_map:new Ee.Uniform1i(ze,Be.u_pitch_with_map),u_extrude_scale:new Ee.Uniform2f(ze,Be.u_extrude_scale),u_device_pixel_ratio:new Ee.Uniform1f(ze,Be.u_device_pixel_ratio),u_matrix:new Ee.UniformMatrix4f(ze,Be.u_matrix)}},collisionBox:wi,collisionCircle:wi,debug:function(ze,Be){return{u_color:new Ee.UniformColor(ze,Be.u_color),u_matrix:new Ee.UniformMatrix4f(ze,Be.u_matrix)}},clippingMask:function(ze,Be){return{u_matrix:new Ee.UniformMatrix4f(ze,Be.u_matrix)}},heatmap:function(ze,Be){return{u_extrude_scale:new Ee.Uniform1f(ze,Be.u_extrude_scale),u_intensity:new Ee.Uniform1f(ze,Be.u_intensity),u_matrix:new Ee.UniformMatrix4f(ze,Be.u_matrix)}},heatmapTexture:function(ze,Be){return{u_matrix:new Ee.UniformMatrix4f(ze,Be.u_matrix),u_world:new Ee.Uniform2f(ze,Be.u_world),u_image:new Ee.Uniform1i(ze,Be.u_image),u_color_ramp:new Ee.Uniform1i(ze,Be.u_color_ramp),u_opacity:new Ee.Uniform1f(ze,Be.u_opacity)}},hillshade:function(ze,Be){return{u_matrix:new Ee.UniformMatrix4f(ze,Be.u_matrix),u_image:new Ee.Uniform1i(ze,Be.u_image),u_latrange:new Ee.Uniform2f(ze,Be.u_latrange),u_light:new Ee.Uniform2f(ze,Be.u_light),u_shadow:new Ee.UniformColor(ze,Be.u_shadow),u_highlight:new Ee.UniformColor(ze,Be.u_highlight),u_accent:new Ee.UniformColor(ze,Be.u_accent)}},hillshadePrepare:function(ze,Be){return{u_matrix:new Ee.UniformMatrix4f(ze,Be.u_matrix),u_image:new Ee.Uniform1i(ze,Be.u_image),u_dimension:new Ee.Uniform2f(ze,Be.u_dimension),u_zoom:new Ee.Uniform1f(ze,Be.u_zoom),u_maxzoom:new Ee.Uniform1f(ze,Be.u_maxzoom)}},line:function(ze,Be){return{u_matrix:new Ee.UniformMatrix4f(ze,Be.u_matrix),u_ratio:new Ee.Uniform1f(ze,Be.u_ratio),u_device_pixel_ratio:new Ee.Uniform1f(ze,Be.u_device_pixel_ratio),u_units_to_pixels:new Ee.Uniform2f(ze,Be.u_units_to_pixels)}},lineGradient:function(ze,Be){return{u_matrix:new Ee.UniformMatrix4f(ze,Be.u_matrix),u_ratio:new Ee.Uniform1f(ze,Be.u_ratio),u_device_pixel_ratio:new Ee.Uniform1f(ze,Be.u_device_pixel_ratio),u_units_to_pixels:new Ee.Uniform2f(ze,Be.u_units_to_pixels),u_image:new Ee.Uniform1i(ze,Be.u_image)}},linePattern:function(ze,Be){return{u_matrix:new Ee.UniformMatrix4f(ze,Be.u_matrix),u_texsize:new Ee.Uniform2f(ze,Be.u_texsize),u_ratio:new Ee.Uniform1f(ze,Be.u_ratio),u_device_pixel_ratio:new Ee.Uniform1f(ze,Be.u_device_pixel_ratio),u_image:new Ee.Uniform1i(ze,Be.u_image),u_units_to_pixels:new Ee.Uniform2f(ze,Be.u_units_to_pixels),u_scale:new Ee.Uniform4f(ze,Be.u_scale),u_fade:new Ee.Uniform1f(ze,Be.u_fade)}},lineSDF:function(ze,Be){return{u_matrix:new Ee.UniformMatrix4f(ze,Be.u_matrix),u_ratio:new Ee.Uniform1f(ze,Be.u_ratio),u_device_pixel_ratio:new Ee.Uniform1f(ze,Be.u_device_pixel_ratio),u_units_to_pixels:new Ee.Uniform2f(ze,Be.u_units_to_pixels),u_patternscale_a:new Ee.Uniform2f(ze,Be.u_patternscale_a),u_patternscale_b:new Ee.Uniform2f(ze,Be.u_patternscale_b),u_sdfgamma:new Ee.Uniform1f(ze,Be.u_sdfgamma),u_image:new Ee.Uniform1i(ze,Be.u_image),u_tex_y_a:new Ee.Uniform1f(ze,Be.u_tex_y_a),u_tex_y_b:new Ee.Uniform1f(ze,Be.u_tex_y_b),u_mix:new Ee.Uniform1f(ze,Be.u_mix)}},raster:function(ze,Be){return{u_matrix:new Ee.UniformMatrix4f(ze,Be.u_matrix),u_tl_parent:new Ee.Uniform2f(ze,Be.u_tl_parent),u_scale_parent:new Ee.Uniform1f(ze,Be.u_scale_parent),u_buffer_scale:new Ee.Uniform1f(ze,Be.u_buffer_scale),u_fade_t:new Ee.Uniform1f(ze,Be.u_fade_t),u_opacity:new Ee.Uniform1f(ze,Be.u_opacity),u_image0:new Ee.Uniform1i(ze,Be.u_image0),u_image1:new Ee.Uniform1i(ze,Be.u_image1),u_brightness_low:new Ee.Uniform1f(ze,Be.u_brightness_low),u_brightness_high:new Ee.Uniform1f(ze,Be.u_brightness_high),u_saturation_factor:new Ee.Uniform1f(ze,Be.u_saturation_factor),u_contrast_factor:new Ee.Uniform1f(ze,Be.u_contrast_factor),u_spin_weights:new Ee.Uniform3f(ze,Be.u_spin_weights)}},symbolIcon:function(ze,Be){return{u_is_size_zoom_constant:new Ee.Uniform1i(ze,Be.u_is_size_zoom_constant),u_is_size_feature_constant:new Ee.Uniform1i(ze,Be.u_is_size_feature_constant),u_size_t:new Ee.Uniform1f(ze,Be.u_size_t),u_size:new Ee.Uniform1f(ze,Be.u_size),u_camera_to_center_distance:new Ee.Uniform1f(ze,Be.u_camera_to_center_distance),u_pitch:new Ee.Uniform1f(ze,Be.u_pitch),u_rotate_symbol:new Ee.Uniform1i(ze,Be.u_rotate_symbol),u_aspect_ratio:new Ee.Uniform1f(ze,Be.u_aspect_ratio),u_fade_change:new Ee.Uniform1f(ze,Be.u_fade_change),u_matrix:new Ee.UniformMatrix4f(ze,Be.u_matrix),u_label_plane_matrix:new Ee.UniformMatrix4f(ze,Be.u_label_plane_matrix),u_coord_matrix:new Ee.UniformMatrix4f(ze,Be.u_coord_matrix),u_is_text:new Ee.Uniform1f(ze,Be.u_is_text),u_pitch_with_map:new Ee.Uniform1i(ze,Be.u_pitch_with_map),u_texsize:new Ee.Uniform2f(ze,Be.u_texsize),u_texture:new Ee.Uniform1i(ze,Be.u_texture)}},symbolSDF:function(ze,Be){return{u_is_size_zoom_constant:new Ee.Uniform1i(ze,Be.u_is_size_zoom_constant),u_is_size_feature_constant:new Ee.Uniform1i(ze,Be.u_is_size_feature_constant),u_size_t:new Ee.Uniform1f(ze,Be.u_size_t),u_size:new Ee.Uniform1f(ze,Be.u_size),u_camera_to_center_distance:new Ee.Uniform1f(ze,Be.u_camera_to_center_distance),u_pitch:new Ee.Uniform1f(ze,Be.u_pitch),u_rotate_symbol:new Ee.Uniform1i(ze,Be.u_rotate_symbol),u_aspect_ratio:new Ee.Uniform1f(ze,Be.u_aspect_ratio),u_fade_change:new Ee.Uniform1f(ze,Be.u_fade_change),u_matrix:new Ee.UniformMatrix4f(ze,Be.u_matrix),u_label_plane_matrix:new Ee.UniformMatrix4f(ze,Be.u_label_plane_matrix),u_coord_matrix:new Ee.UniformMatrix4f(ze,Be.u_coord_matrix),u_is_text:new Ee.Uniform1f(ze,Be.u_is_text),u_pitch_with_map:new Ee.Uniform1i(ze,Be.u_pitch_with_map),u_texsize:new Ee.Uniform2f(ze,Be.u_texsize),u_texture:new Ee.Uniform1i(ze,Be.u_texture),u_gamma_scale:new Ee.Uniform1f(ze,Be.u_gamma_scale),u_device_pixel_ratio:new Ee.Uniform1f(ze,Be.u_device_pixel_ratio),u_is_halo:new Ee.Uniform1f(ze,Be.u_is_halo)}},background:function(ze,Be){return{u_matrix:new Ee.UniformMatrix4f(ze,Be.u_matrix),u_opacity:new Ee.Uniform1f(ze,Be.u_opacity),u_color:new Ee.UniformColor(ze,Be.u_color)}},backgroundPattern:function(ze,Be){return{u_matrix:new Ee.UniformMatrix4f(ze,Be.u_matrix),u_opacity:new Ee.Uniform1f(ze,Be.u_opacity),u_image:new Ee.Uniform1i(ze,Be.u_image),u_pattern_tl_a:new Ee.Uniform2f(ze,Be.u_pattern_tl_a),u_pattern_br_a:new Ee.Uniform2f(ze,Be.u_pattern_br_a),u_pattern_tl_b:new Ee.Uniform2f(ze,Be.u_pattern_tl_b),u_pattern_br_b:new Ee.Uniform2f(ze,Be.u_pattern_br_b),u_texsize:new Ee.Uniform2f(ze,Be.u_texsize),u_mix:new Ee.Uniform1f(ze,Be.u_mix),u_pattern_size_a:new Ee.Uniform2f(ze,Be.u_pattern_size_a),u_pattern_size_b:new Ee.Uniform2f(ze,Be.u_pattern_size_b),u_scale_a:new Ee.Uniform1f(ze,Be.u_scale_a),u_scale_b:new Ee.Uniform1f(ze,Be.u_scale_b),u_pixel_coord_upper:new Ee.Uniform2f(ze,Be.u_pixel_coord_upper),u_pixel_coord_lower:new Ee.Uniform2f(ze,Be.u_pixel_coord_lower),u_tile_units_to_pixels:new Ee.Uniform1f(ze,Be.u_tile_units_to_pixels)}}};function Vi(ze,Be){for(var Ue=ze.sort((function(Ee,ze){return Ee.tileID.isLessThan(ze.tileID)?-1:ze.tileID.isLessThan(Ee.tileID)?1:0})),We=0;We0){var rt=Ee.browser.now(),it=(rt-ze.timeAdded)/Qe,at=Be?(rt-Be.timeAdded)/Qe:-1,ct=Ue.getSource(),ft=$e.coveringZoomLevel({tileSize:ct.tileSize,roundZoom:ct.roundZoom}),xt=!Be||Math.abs(Be.tileID.overscaledZ-ft)>Math.abs(ze.tileID.overscaledZ-ft),kt=xt&&ze.refreshedUponExpiration?1:Ee.clamp(xt?it:1-at,0,1);return ze.refreshedUponExpiration&&it>=1&&(ze.refreshedUponExpiration=!1),Be?{opacity:1,mix:1-kt}:{opacity:kt,mix:0}}return{opacity:1,mix:0}}function ro(ze,Be,Ue){var We=ze.context,$e=We.gl,Qe=Ue.posMatrix,rt=ze.useProgram("debug"),it=It.disabled,at=St.disabled,ct=ze.colorModeForRenderPass(),ft="$debug";rt.draw(We,$e.LINE_STRIP,it,at,ct,Pt.disabled,Ti(Qe,Ee.Color.red),ft,ze.debugBuffer,ze.tileBorderIndexBuffer,ze.debugSegments);for(var xt=Be.getTileByID(Ue.key).latestRawTileData,kt=xt&&xt.byteLength||0,Lt=Math.floor(kt/1024),Ut=Be.getTile(Ue).tileSize,er=512/Math.min(Ut,512),tr=function(Ee,ze,Be,Ue){Ue=Ue||1;var We,$e,Qe,rt,it,at,ct,ft,xt=[];for(We=0,$e=Ee.length;We<$e;We++)if(it=Ks[Ee[We]]){for(ft=null,Qe=0,rt=it[1].length;Qe":[24,[4,18,20,9,4,0]],"?":[18,[3,16,3,17,4,19,5,20,7,21,11,21,13,20,14,19,15,17,15,15,14,13,13,12,9,10,9,7,-1,-1,9,2,8,1,9,0,10,1,9,2]],"@":[27,[18,13,17,15,15,16,12,16,10,15,9,14,8,11,8,8,9,6,11,5,14,5,16,6,17,8,-1,-1,12,16,10,14,9,11,9,8,10,6,11,5,-1,-1,18,16,17,8,17,6,19,5,21,5,23,7,24,10,24,12,23,15,22,17,20,19,18,20,15,21,12,21,9,20,7,19,5,17,4,15,3,12,3,9,4,6,5,4,7,2,9,1,12,0,15,0,18,1,20,2,21,3,-1,-1,19,16,18,8,18,6,19,5]],A:[18,[9,21,1,0,-1,-1,9,21,17,0,-1,-1,4,7,14,7]],B:[21,[4,21,4,0,-1,-1,4,21,13,21,16,20,17,19,18,17,18,15,17,13,16,12,13,11,-1,-1,4,11,13,11,16,10,17,9,18,7,18,4,17,2,16,1,13,0,4,0]],C:[21,[18,16,17,18,15,20,13,21,9,21,7,20,5,18,4,16,3,13,3,8,4,5,5,3,7,1,9,0,13,0,15,1,17,3,18,5]],D:[21,[4,21,4,0,-1,-1,4,21,11,21,14,20,16,18,17,16,18,13,18,8,17,5,16,3,14,1,11,0,4,0]],E:[19,[4,21,4,0,-1,-1,4,21,17,21,-1,-1,4,11,12,11,-1,-1,4,0,17,0]],F:[18,[4,21,4,0,-1,-1,4,21,17,21,-1,-1,4,11,12,11]],G:[21,[18,16,17,18,15,20,13,21,9,21,7,20,5,18,4,16,3,13,3,8,4,5,5,3,7,1,9,0,13,0,15,1,17,3,18,5,18,8,-1,-1,13,8,18,8]],H:[22,[4,21,4,0,-1,-1,18,21,18,0,-1,-1,4,11,18,11]],I:[8,[4,21,4,0]],J:[16,[12,21,12,5,11,2,10,1,8,0,6,0,4,1,3,2,2,5,2,7]],K:[21,[4,21,4,0,-1,-1,18,21,4,7,-1,-1,9,12,18,0]],L:[17,[4,21,4,0,-1,-1,4,0,16,0]],M:[24,[4,21,4,0,-1,-1,4,21,12,0,-1,-1,20,21,12,0,-1,-1,20,21,20,0]],N:[22,[4,21,4,0,-1,-1,4,21,18,0,-1,-1,18,21,18,0]],O:[22,[9,21,7,20,5,18,4,16,3,13,3,8,4,5,5,3,7,1,9,0,13,0,15,1,17,3,18,5,19,8,19,13,18,16,17,18,15,20,13,21,9,21]],P:[21,[4,21,4,0,-1,-1,4,21,13,21,16,20,17,19,18,17,18,14,17,12,16,11,13,10,4,10]],Q:[22,[9,21,7,20,5,18,4,16,3,13,3,8,4,5,5,3,7,1,9,0,13,0,15,1,17,3,18,5,19,8,19,13,18,16,17,18,15,20,13,21,9,21,-1,-1,12,4,18,-2]],R:[21,[4,21,4,0,-1,-1,4,21,13,21,16,20,17,19,18,17,18,15,17,13,16,12,13,11,4,11,-1,-1,11,11,18,0]],S:[20,[17,18,15,20,12,21,8,21,5,20,3,18,3,16,4,14,5,13,7,12,13,10,15,9,16,8,17,6,17,3,15,1,12,0,8,0,5,1,3,3]],T:[16,[8,21,8,0,-1,-1,1,21,15,21]],U:[22,[4,21,4,6,5,3,7,1,10,0,12,0,15,1,17,3,18,6,18,21]],V:[18,[1,21,9,0,-1,-1,17,21,9,0]],W:[24,[2,21,7,0,-1,-1,12,21,7,0,-1,-1,12,21,17,0,-1,-1,22,21,17,0]],X:[20,[3,21,17,0,-1,-1,17,21,3,0]],Y:[18,[1,21,9,11,9,0,-1,-1,17,21,9,11]],Z:[20,[17,21,3,0,-1,-1,3,21,17,21,-1,-1,3,0,17,0]],"[":[14,[4,25,4,-7,-1,-1,5,25,5,-7,-1,-1,4,25,11,25,-1,-1,4,-7,11,-7]],"\\":[14,[0,21,14,-3]],"]":[14,[9,25,9,-7,-1,-1,10,25,10,-7,-1,-1,3,25,10,25,-1,-1,3,-7,10,-7]],"^":[16,[6,15,8,18,10,15,-1,-1,3,12,8,17,13,12,-1,-1,8,17,8,0]],_:[16,[0,-2,16,-2]],"`":[10,[6,21,5,20,4,18,4,16,5,15,6,16,5,17]],a:[19,[15,14,15,0,-1,-1,15,11,13,13,11,14,8,14,6,13,4,11,3,8,3,6,4,3,6,1,8,0,11,0,13,1,15,3]],b:[19,[4,21,4,0,-1,-1,4,11,6,13,8,14,11,14,13,13,15,11,16,8,16,6,15,3,13,1,11,0,8,0,6,1,4,3]],c:[18,[15,11,13,13,11,14,8,14,6,13,4,11,3,8,3,6,4,3,6,1,8,0,11,0,13,1,15,3]],d:[19,[15,21,15,0,-1,-1,15,11,13,13,11,14,8,14,6,13,4,11,3,8,3,6,4,3,6,1,8,0,11,0,13,1,15,3]],e:[18,[3,8,15,8,15,10,14,12,13,13,11,14,8,14,6,13,4,11,3,8,3,6,4,3,6,1,8,0,11,0,13,1,15,3]],f:[12,[10,21,8,21,6,20,5,17,5,0,-1,-1,2,14,9,14]],g:[19,[15,14,15,-2,14,-5,13,-6,11,-7,8,-7,6,-6,-1,-1,15,11,13,13,11,14,8,14,6,13,4,11,3,8,3,6,4,3,6,1,8,0,11,0,13,1,15,3]],h:[19,[4,21,4,0,-1,-1,4,10,7,13,9,14,12,14,14,13,15,10,15,0]],i:[8,[3,21,4,20,5,21,4,22,3,21,-1,-1,4,14,4,0]],j:[10,[5,21,6,20,7,21,6,22,5,21,-1,-1,6,14,6,-3,5,-6,3,-7,1,-7]],k:[17,[4,21,4,0,-1,-1,14,14,4,4,-1,-1,8,8,15,0]],l:[8,[4,21,4,0]],m:[30,[4,14,4,0,-1,-1,4,10,7,13,9,14,12,14,14,13,15,10,15,0,-1,-1,15,10,18,13,20,14,23,14,25,13,26,10,26,0]],n:[19,[4,14,4,0,-1,-1,4,10,7,13,9,14,12,14,14,13,15,10,15,0]],o:[19,[8,14,6,13,4,11,3,8,3,6,4,3,6,1,8,0,11,0,13,1,15,3,16,6,16,8,15,11,13,13,11,14,8,14]],p:[19,[4,14,4,-7,-1,-1,4,11,6,13,8,14,11,14,13,13,15,11,16,8,16,6,15,3,13,1,11,0,8,0,6,1,4,3]],q:[19,[15,14,15,-7,-1,-1,15,11,13,13,11,14,8,14,6,13,4,11,3,8,3,6,4,3,6,1,8,0,11,0,13,1,15,3]],r:[13,[4,14,4,0,-1,-1,4,8,5,11,7,13,9,14,12,14]],s:[17,[14,11,13,13,10,14,7,14,4,13,3,11,4,9,6,8,11,7,13,6,14,4,14,3,13,1,10,0,7,0,4,1,3,3]],t:[12,[5,21,5,4,6,1,8,0,10,0,-1,-1,2,14,9,14]],u:[19,[4,14,4,4,5,1,7,0,10,0,12,1,15,4,-1,-1,15,14,15,0]],v:[16,[2,14,8,0,-1,-1,14,14,8,0]],w:[22,[3,14,7,0,-1,-1,11,14,7,0,-1,-1,11,14,15,0,-1,-1,19,14,15,0]],x:[17,[3,14,14,0,-1,-1,14,14,3,0]],y:[16,[2,14,8,0,-1,-1,14,14,8,0,6,-4,4,-6,2,-7,1,-7]],z:[17,[14,14,3,0,-1,-1,3,14,14,14,-1,-1,3,0,14,0]],"{":[14,[9,25,7,24,6,23,5,21,5,19,6,17,7,16,8,14,8,12,6,10,-1,-1,7,24,6,22,6,20,7,18,8,17,9,15,9,13,8,11,4,9,8,7,9,5,9,3,8,1,7,0,6,-2,6,-4,7,-6,-1,-1,6,8,8,6,8,4,7,2,6,1,5,-1,5,-3,6,-5,7,-6,9,-7]],"|":[8,[4,25,4,-7]],"}":[14,[5,25,7,24,8,23,9,21,9,19,8,17,7,16,6,14,6,12,8,10,-1,-1,7,24,8,22,8,20,7,18,6,17,5,15,5,13,6,11,10,9,6,7,5,5,5,3,6,1,7,0,8,-2,8,-4,7,-6,-1,-1,8,8,6,6,6,4,7,2,8,1,9,-1,9,-3,8,-5,7,-6,5,-7]],"~":[24,[3,6,3,8,4,11,6,12,8,12,10,11,14,8,16,7,18,7,20,8,21,10,-1,-1,3,8,4,10,6,11,8,11,10,10,14,7,16,6,18,6,20,7,21,10,21,12]]},Qs={symbol:function(Ee,ze,Be,Ue,We){if("translucent"===Ee.renderPass){var $e=St.disabled,Qe=Ee.colorModeForRenderPass();0!==Be.paint.get("icon-opacity").constantOr(1)&&Yi(Ee,ze,Be,Ue,!1,Be.paint.get("icon-translate"),Be.paint.get("icon-translate-anchor"),Be.layout.get("icon-rotation-alignment"),Be.layout.get("icon-pitch-alignment"),Be.layout.get("icon-keep-upright"),$e,Qe,We),0!==Be.paint.get("text-opacity").constantOr(1)&&Yi(Ee,ze,Be,Ue,!0,Be.paint.get("text-translate"),Be.paint.get("text-translate-anchor"),Be.layout.get("text-rotation-alignment"),Be.layout.get("text-pitch-alignment"),Be.layout.get("text-keep-upright"),$e,Qe,We),ze.map.showCollisionBoxes&&function(Ee,ze,Be,Ue){Wi(Ee,ze,Be,Ue,!1),Wi(Ee,ze,Be,Ue,!0)}(Ee,ze,Be,Ue)}},circle:function(ze,Be,Ue,We){if("translucent"===ze.renderPass){var $e=Ue.paint.get("circle-opacity"),Qe=Ue.paint.get("circle-stroke-width"),rt=Ue.paint.get("circle-stroke-opacity"),it=void 0!==Ue.layout.get("circle-sort-key").constantOr(1);if(0!==$e.constantOr(1)||0!==Qe.constantOr(1)&&0!==rt.constantOr(1)){for(var at=ze.context,ct=at.gl,ft=ze.depthModeForSublayer(0,It.ReadOnly),xt=St.disabled,kt=ze.colorModeForRenderPass(),Lt=[],Ut=0;Utze.y){var Be=Ee;Ee=ze,ze=Be}return{x0:Ee.x,y0:Ee.y,x1:ze.x,y1:ze.y,dx:ze.x-Ee.x,dy:ze.y-Ee.y}}function co(Ee,ze,Be,Ue,We){var $e=Math.max(Be,Math.floor(ze.y0)),Qe=Math.min(Ue,Math.ceil(ze.y1));if(Ee.x0===ze.x0&&Ee.y0===ze.y0?Ee.x0+ze.dy/Ee.dy*Ee.dx0,ft=ze.dx<0,xt=$e;xtit.dy&&(Qe=rt,rt=it,it=Qe),rt.dy>at.dy&&(Qe=rt,rt=at,at=Qe),it.dy>at.dy&&(Qe=it,it=at,at=Qe),rt.dy&&co(at,rt,Ue,We,$e),it.dy&&co(at,it,Ue,We,$e)}so.prototype.resize=function(ze,Be){var Ue=this.context.gl;if(this.width=ze*Ee.browser.devicePixelRatio,this.height=Be*Ee.browser.devicePixelRatio,this.context.viewport.set([0,0,this.width,this.height]),this.style)for(var We=0,$e=this.style._order;We<$e.length;We+=1){var Qe=$e[We];this.style._layers[Qe].resize()}this.depthRbo&&(Ue.deleteRenderbuffer(this.depthRbo),this.depthRbo=null)},so.prototype.setup=function(){var ze=this.context,Be=new Ee.StructArrayLayout2i4;Be.emplaceBack(0,0),Be.emplaceBack(Ee.EXTENT,0),Be.emplaceBack(0,Ee.EXTENT),Be.emplaceBack(Ee.EXTENT,Ee.EXTENT),this.tileExtentBuffer=ze.createVertexBuffer(Be,ts.members),this.tileExtentSegments=Ee.SegmentVector.simpleSegment(0,0,4,2);var Ue=new Ee.StructArrayLayout2i4;Ue.emplaceBack(0,0),Ue.emplaceBack(Ee.EXTENT,0),Ue.emplaceBack(0,Ee.EXTENT),Ue.emplaceBack(Ee.EXTENT,Ee.EXTENT),this.debugBuffer=ze.createVertexBuffer(Ue,ts.members),this.debugSegments=Ee.SegmentVector.simpleSegment(0,0,4,5);var We=new Ee.StructArrayLayout4i8;We.emplaceBack(0,0,0,0),We.emplaceBack(Ee.EXTENT,0,Ee.EXTENT,0),We.emplaceBack(0,Ee.EXTENT,0,Ee.EXTENT),We.emplaceBack(Ee.EXTENT,Ee.EXTENT,Ee.EXTENT,Ee.EXTENT),this.rasterBoundsBuffer=ze.createVertexBuffer(We,Ee.rasterBoundsAttributes.members),this.rasterBoundsSegments=Ee.SegmentVector.simpleSegment(0,0,4,2);var $e=new Ee.StructArrayLayout2i4;$e.emplaceBack(0,0),$e.emplaceBack(1,0),$e.emplaceBack(0,1),$e.emplaceBack(1,1),this.viewportBuffer=ze.createVertexBuffer($e,ts.members),this.viewportSegments=Ee.SegmentVector.simpleSegment(0,0,4,2);var Qe=new Ee.StructArrayLayout1ui2;Qe.emplaceBack(0),Qe.emplaceBack(1),Qe.emplaceBack(3),Qe.emplaceBack(2),Qe.emplaceBack(0),this.tileBorderIndexBuffer=ze.createIndexBuffer(Qe);var rt=new Ee.StructArrayLayout3ui6;rt.emplaceBack(0,1,2),rt.emplaceBack(2,1,3),this.quadTriangleIndexBuffer=ze.createIndexBuffer(rt);var it=this.context.gl;this.stencilClearMode=new St({func:it.ALWAYS,mask:0},0,255,it.ZERO,it.ZERO,it.ZERO)},so.prototype.clearStencil=function(){var ze=this.context,Be=ze.gl;this.nextStencilID=1,this.currentStencilSource=void 0;var Ue=Ee.create();Ee.ortho(Ue,0,this.width,this.height,0,0,1),Ee.scale(Ue,Ue,[Be.drawingBufferWidth,Be.drawingBufferHeight,0]),this.useProgram("clippingMask").draw(ze,Be.TRIANGLES,It.disabled,this.stencilClearMode,Ct.disabled,Pt.disabled,Ii(Ue),"$clipping",this.viewportBuffer,this.quadTriangleIndexBuffer,this.viewportSegments)},so.prototype._renderTileClippingMasks=function(Ee,ze){if(this.currentStencilSource!==Ee.source&&Ee.isTileClipped()&&ze&&ze.length){this.currentStencilSource=Ee.source;var Be=this.context,Ue=Be.gl;this.nextStencilID+ze.length>256&&this.clearStencil(),Be.setColorMode(Ct.disabled),Be.setDepthMode(It.disabled);var We=this.useProgram("clippingMask");this._tileClippingMaskIDs={};for(var $e=0,Qe=ze;$e256&&this.clearStencil();var Ee=this.nextStencilID++,ze=this.context.gl;return new St({func:ze.NOTEQUAL,mask:255},Ee,255,ze.KEEP,ze.KEEP,ze.REPLACE)},so.prototype.stencilModeForClipping=function(Ee){var ze=this.context.gl;return new St({func:ze.EQUAL,mask:255},this._tileClippingMaskIDs[Ee.key],0,ze.KEEP,ze.KEEP,ze.REPLACE)},so.prototype.colorModeForRenderPass=function(){var ze=this.context.gl;return this._showOverdrawInspector?new Ct([ze.CONSTANT_COLOR,ze.ONE],new Ee.Color(1/8,1/8,1/8,0),[!0,!0,!0,!0]):"opaque"===this.renderPass?Ct.unblended:Ct.alphaBlended},so.prototype.depthModeForSublayer=function(Ee,ze,Be){if(!this.opaquePassEnabledForLayer())return It.disabled;var Ue=1-((1+this.currentLayer)*this.numSublayers+Ee)*this.depthEpsilon;return new It(Be||this.context.gl.LEQUAL,ze,[Ue,Ue])},so.prototype.opaquePassEnabledForLayer=function(){return this.currentLayer=0;this.currentLayer--){var hn=this.style._layers[Ue[this.currentLayer]],dn=We[hn.source],vn=rt[hn.source];this._renderTileClippingMasks(hn,vn),this.renderLayer(this,dn,hn,vn)}for(this.renderPass="translucent",this.currentLayer=0;this.currentLayer0?ze.pop():null},so.prototype.isPatternMissing=function(Ee){if(!Ee)return!1;var ze=this.imageManager.getPattern(Ee.from),Be=this.imageManager.getPattern(Ee.to);return!ze||!Be},so.prototype.useProgram=function(Ee,ze){void 0===ze&&(ze=this.emptyProgramConfiguration),this.cache=this.cache||{};var Be=""+Ee+(ze.cacheKey||"")+(this._showOverdrawInspector?"/overdraw":"");return this.cache[Be]||(this.cache[Be]=new di(this.context,Zs[Ee],ze,Xs[Ee],this._showOverdrawInspector)),this.cache[Be]},so.prototype.setCustomLayerDefaults=function(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()},so.prototype.setBaseState=function(){var Ee=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(Ee.FUNC_ADD)};var ho=function(ze,Be,Ue){this.tileSize=512,this.maxValidLatitude=85.051129,this._renderWorldCopies=void 0===Ue||Ue,this._minZoom=ze||0,this._maxZoom=Be||22,this.setMaxBounds(),this.width=0,this.height=0,this._center=new Ee.LngLat(0,0),this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._unmodified=!0,this._posMatrixCache={},this._alignedPosMatrixCache={}},cl={minZoom:{configurable:!0},maxZoom:{configurable:!0},renderWorldCopies:{configurable:!0},worldSize:{configurable:!0},centerPoint:{configurable:!0},size:{configurable:!0},bearing:{configurable:!0},pitch:{configurable:!0},fov:{configurable:!0},zoom:{configurable:!0},center:{configurable:!0},unmodified:{configurable:!0},point:{configurable:!0}};ho.prototype.clone=function(){var Ee=new ho(this._minZoom,this._maxZoom,this._renderWorldCopies);return Ee.tileSize=this.tileSize,Ee.latRange=this.latRange,Ee.width=this.width,Ee.height=this.height,Ee._center=this._center,Ee.zoom=this.zoom,Ee.angle=this.angle,Ee._fov=this._fov,Ee._pitch=this._pitch,Ee._unmodified=this._unmodified,Ee._calcMatrices(),Ee},cl.minZoom.get=function(){return this._minZoom},cl.minZoom.set=function(Ee){this._minZoom!==Ee&&(this._minZoom=Ee,this.zoom=Math.max(this.zoom,Ee))},cl.maxZoom.get=function(){return this._maxZoom},cl.maxZoom.set=function(Ee){this._maxZoom!==Ee&&(this._maxZoom=Ee,this.zoom=Math.min(this.zoom,Ee))},cl.renderWorldCopies.get=function(){return this._renderWorldCopies},cl.renderWorldCopies.set=function(Ee){void 0===Ee?Ee=!0:null===Ee&&(Ee=!1),this._renderWorldCopies=Ee},cl.worldSize.get=function(){return this.tileSize*this.scale},cl.centerPoint.get=function(){return this.size._div(2)},cl.size.get=function(){return new Ee.Point(this.width,this.height)},cl.bearing.get=function(){return-this.angle/Math.PI*180},cl.bearing.set=function(ze){var Be=-Ee.wrap(ze,-180,180)*Math.PI/180;this.angle!==Be&&(this._unmodified=!1,this.angle=Be,this._calcMatrices(),this.rotationMatrix=Ee.create$2(),Ee.rotate(this.rotationMatrix,this.rotationMatrix,this.angle))},cl.pitch.get=function(){return this._pitch/Math.PI*180},cl.pitch.set=function(ze){var Be=Ee.clamp(ze,0,60)/180*Math.PI;this._pitch!==Be&&(this._unmodified=!1,this._pitch=Be,this._calcMatrices())},cl.fov.get=function(){return this._fov/Math.PI*180},cl.fov.set=function(Ee){Ee=Math.max(.01,Math.min(60,Ee)),this._fov!==Ee&&(this._unmodified=!1,this._fov=Ee/180*Math.PI,this._calcMatrices())},cl.zoom.get=function(){return this._zoom},cl.zoom.set=function(Ee){var ze=Math.min(Math.max(Ee,this.minZoom),this.maxZoom);this._zoom!==ze&&(this._unmodified=!1,this._zoom=ze,this.scale=this.zoomScale(ze),this.tileZoom=Math.floor(ze),this.zoomFraction=ze-this.tileZoom,this._constrain(),this._calcMatrices())},cl.center.get=function(){return this._center},cl.center.set=function(Ee){Ee.lat===this._center.lat&&Ee.lng===this._center.lng||(this._unmodified=!1,this._center=Ee,this._constrain(),this._calcMatrices())},ho.prototype.coveringZoomLevel=function(Ee){return(Ee.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/Ee.tileSize))},ho.prototype.getVisibleUnwrappedCoordinates=function(ze){var Be=[new Ee.UnwrappedTileID(0,ze)];if(this._renderWorldCopies)for(var Ue=this.pointCoordinate(new Ee.Point(0,0)),We=this.pointCoordinate(new Ee.Point(this.width,0)),$e=this.pointCoordinate(new Ee.Point(this.width,this.height)),Qe=this.pointCoordinate(new Ee.Point(0,this.height)),rt=Math.floor(Math.min(Ue.x,We.x,$e.x,Qe.x)),it=Math.floor(Math.max(Ue.x,We.x,$e.x,Qe.x)),at=rt-1;at<=it+1;at++)0!==at&&Be.push(new Ee.UnwrappedTileID(at,ze));return Be},ho.prototype.coveringTiles=function(ze){var Be=this.coveringZoomLevel(ze),Ue=Be;if(void 0!==ze.minzoom&&Beze.maxzoom&&(Be=ze.maxzoom);var We=Ee.MercatorCoordinate.fromLngLat(this.center),$e=Math.pow(2,Be),Qe=new Ee.Point($e*We.x-.5,$e*We.y-.5);return function(ze,Be,Ue,We){void 0===We&&(We=!0);var $e=1<=0&&it<=$e)for(at=Be;atQe&&(We=Qe-er)}if(this.lngRange){var tr=kt.x,rr=at.x/2;tr-rrit&&(Ue=it-rr)}void 0===Ue&&void 0===We||(this.center=this.unproject(new Ee.Point(void 0!==Ue?Ue:kt.x,void 0!==We?We:kt.y))),this._unmodified=ct,this._constraining=!1}},ho.prototype._calcMatrices=function(){if(this.height){this.cameraToCenterDistance=.5/Math.tan(this._fov/2)*this.height;var ze=this._fov/2,Be=Math.PI/2+this._pitch,Ue=Math.sin(ze)*this.cameraToCenterDistance/Math.sin(Math.PI-Be-ze),We=this.point,$e=We.x,Qe=We.y,rt=1.01*(Math.cos(Math.PI/2-this._pitch)*Ue+this.cameraToCenterDistance),it=this.height/50,at=new Float64Array(16);Ee.perspective(at,this._fov,this.width/this.height,it,rt),Ee.scale(at,at,[1,-1,1]),Ee.translate(at,at,[0,0,-this.cameraToCenterDistance]),Ee.rotateX(at,at,this._pitch),Ee.rotateZ(at,at,this.angle),Ee.translate(at,at,[-$e,-Qe,0]),this.mercatorMatrix=Ee.scale([],at,[this.worldSize,this.worldSize,this.worldSize]),Ee.scale(at,at,[1,1,Ee.mercatorZfromAltitude(1,this.center.lat)*this.worldSize,1]),this.projMatrix=at;var ct=this.width%2/2,ft=this.height%2/2,xt=Math.cos(this.angle),kt=Math.sin(this.angle),Lt=$e-Math.round($e)+xt*ct+kt*ft,Ut=Qe-Math.round(Qe)+xt*ft+kt*ct,er=new Float64Array(at);if(Ee.translate(er,er,[Lt>.5?Lt-1:Lt,Ut>.5?Ut-1:Ut,0]),this.alignedProjMatrix=er,at=Ee.create(),Ee.scale(at,at,[this.width/2,-this.height/2,1]),Ee.translate(at,at,[1,-1,0]),this.labelPlaneMatrix=at,at=Ee.create(),Ee.scale(at,at,[1,-1,1]),Ee.translate(at,at,[-1,-1,0]),Ee.scale(at,at,[2/this.width,2/this.height,1]),this.glCoordMatrix=at,this.pixelMatrix=Ee.multiply(new Float64Array(16),this.labelPlaneMatrix,this.projMatrix),!(at=Ee.invert(new Float64Array(16),this.pixelMatrix)))throw new Error("failed to invert matrix");this.pixelMatrixInverse=at,this._posMatrixCache={},this._alignedPosMatrixCache={}}},ho.prototype.maxPitchScaleFactor=function(){if(!this.pixelMatrixInverse)return 1;var ze=this.pointCoordinate(new Ee.Point(0,0)),Be=[ze.x*this.worldSize,ze.y*this.worldSize,0,1];return Ee.transformMat4(Be,Be,this.pixelMatrix)[3]/this.cameraToCenterDistance},ho.prototype.getCameraPoint=function(){var ze=this._pitch,Be=Math.tan(ze)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new Ee.Point(0,Be))},ho.prototype.getCameraQueryGeometry=function(ze){var Be=this.getCameraPoint();if(1===ze.length)return[ze[0],Be];for(var Ue=Be.x,We=Be.y,$e=Be.x,Qe=Be.y,rt=0,it=ze;rt=3&&(this._map.jumpTo({center:[+ze[2],+ze[1]],zoom:+ze[0],bearing:+(ze[3]||0),pitch:+(ze[4]||0)}),!0)},_o.prototype._updateHashUnthrottled=function(){var ze=this.getHashString();try{Ee.window.history.replaceState(Ee.window.history.state,"",ze)}catch(Ee){}};var fl=function(ze){function o(Ue,We,$e,Qe){void 0===Qe&&(Qe={});var rt=Be.mousePos(We.getCanvasContainer(),$e),it=We.unproject(rt);ze.call(this,Ue,Ee.extend({point:rt,lngLat:it,originalEvent:$e},Qe)),this._defaultPrevented=!1,this.target=We}ze&&(o.__proto__=ze),o.prototype=Object.create(ze&&ze.prototype),o.prototype.constructor=o;var Ue={defaultPrevented:{configurable:!0}};return o.prototype.preventDefault=function(){this._defaultPrevented=!0},Ue.defaultPrevented.get=function(){return this._defaultPrevented},Object.defineProperties(o.prototype,Ue),o}(Ee.Event),hl=function(ze){function o(Ue,We,$e){var Qe=Be.touchPos(We.getCanvasContainer(),$e),rt=Qe.map((function(Ee){return We.unproject(Ee)})),it=Qe.reduce((function(Ee,ze,Be,Ue){return Ee.add(ze.div(Ue.length))}),new Ee.Point(0,0)),at=We.unproject(it);ze.call(this,Ue,{points:Qe,point:it,lngLats:rt,lngLat:at,originalEvent:$e}),this._defaultPrevented=!1}ze&&(o.__proto__=ze),o.prototype=Object.create(ze&&ze.prototype),o.prototype.constructor=o;var Ue={defaultPrevented:{configurable:!0}};return o.prototype.preventDefault=function(){this._defaultPrevented=!0},Ue.defaultPrevented.get=function(){return this._defaultPrevented},Object.defineProperties(o.prototype,Ue),o}(Ee.Event),pl=function(Ee){function e(ze,Be,Ue){Ee.call(this,ze,{originalEvent:Ue}),this._defaultPrevented=!1}Ee&&(e.__proto__=Ee),e.prototype=Object.create(Ee&&Ee.prototype),e.prototype.constructor=e;var ze={defaultPrevented:{configurable:!0}};return e.prototype.preventDefault=function(){this._defaultPrevented=!0},ze.defaultPrevented.get=function(){return this._defaultPrevented},Object.defineProperties(e.prototype,ze),e}(Ee.Event),vo=function(ze){this._map=ze,this._el=ze.getCanvasContainer(),this._delta=0,this._defaultZoomRate=.01,this._wheelZoomRate=1/450,Ee.bindAll(["_onWheel","_onTimeout","_onScrollFrame","_onScrollFinished"],this)};vo.prototype.setZoomRate=function(Ee){this._defaultZoomRate=Ee},vo.prototype.setWheelZoomRate=function(Ee){this._wheelZoomRate=Ee},vo.prototype.isEnabled=function(){return!!this._enabled},vo.prototype.isActive=function(){return!!this._active},vo.prototype.isZooming=function(){return!!this._zooming},vo.prototype.enable=function(Ee){this.isEnabled()||(this._enabled=!0,this._aroundCenter=Ee&&"center"===Ee.around)},vo.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},vo.prototype.onWheel=function(ze){if(this.isEnabled()){var Be=ze.deltaMode===Ee.window.WheelEvent.DOM_DELTA_LINE?40*ze.deltaY:ze.deltaY,Ue=Ee.browser.now(),We=Ue-(this._lastWheelEventTime||0);this._lastWheelEventTime=Ue,0!==Be&&Be%4.000244140625==0?this._type="wheel":0!==Be&&Math.abs(Be)<4?this._type="trackpad":We>400?(this._type=null,this._lastValue=Be,this._timeout=setTimeout(this._onTimeout,40,ze)):this._type||(this._type=Math.abs(We*Be)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,Be+=this._lastValue)),ze.shiftKey&&Be&&(Be/=4),this._type&&(this._lastWheelEvent=ze,this._delta-=Be,this.isActive()||this._start(ze)),ze.preventDefault()}},vo.prototype._onTimeout=function(Ee){this._type="wheel",this._delta-=this._lastValue,this.isActive()||this._start(Ee)},vo.prototype._start=function(ze){if(this._delta){this._frameId&&(this._map._cancelRenderFrame(this._frameId),this._frameId=null),this._active=!0,this.isZooming()||(this._zooming=!0,this._map.fire(new Ee.Event("movestart",{originalEvent:ze})),this._map.fire(new Ee.Event("zoomstart",{originalEvent:ze}))),this._finishTimeout&&clearTimeout(this._finishTimeout);var Ue=Be.mousePos(this._el,ze);this._around=Ee.LngLat.convert(this._aroundCenter?this._map.getCenter():this._map.unproject(Ue)),this._aroundPoint=this._map.transform.locationPoint(this._around),this._frameId||(this._frameId=this._map._requestRenderFrame(this._onScrollFrame))}},vo.prototype._onScrollFrame=function(){var ze=this;if(this._frameId=null,this.isActive()){var Be=this._map.transform;if(0!==this._delta){var Ue="wheel"===this._type&&Math.abs(this._delta)>4.000244140625?this._wheelZoomRate:this._defaultZoomRate,We=2/(1+Math.exp(-Math.abs(this._delta*Ue)));this._delta<0&&0!==We&&(We=1/We);var $e="number"==typeof this._targetZoom?Be.zoomScale(this._targetZoom):Be.scale;this._targetZoom=Math.min(Be.maxZoom,Math.max(Be.minZoom,Be.scaleZoom($e*We))),"wheel"===this._type&&(this._startZoom=Be.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}var Qe="number"==typeof this._targetZoom?this._targetZoom:Be.zoom,rt=this._startZoom,it=this._easing,at=!1;if("wheel"===this._type&&rt&&it){var ct=Math.min((Ee.browser.now()-this._lastWheelEventTime)/200,1),ft=it(ct);Be.zoom=Ee.number(rt,Qe,ft),ct<1?this._frameId||(this._frameId=this._map._requestRenderFrame(this._onScrollFrame)):at=!0}else Be.zoom=Qe,at=!0;Be.setLocationAtPoint(this._around,this._aroundPoint),this._map.fire(new Ee.Event("move",{originalEvent:this._lastWheelEvent})),this._map.fire(new Ee.Event("zoom",{originalEvent:this._lastWheelEvent})),at&&(this._active=!1,this._finishTimeout=setTimeout((function(){ze._zooming=!1,ze._map.fire(new Ee.Event("zoomend",{originalEvent:ze._lastWheelEvent})),ze._map.fire(new Ee.Event("moveend",{originalEvent:ze._lastWheelEvent})),delete ze._targetZoom}),200))}},vo.prototype._smoothOutEasing=function(ze){var Be=Ee.ease;if(this._prevEase){var Ue=this._prevEase,We=(Ee.browser.now()-Ue.start)/Ue.duration,$e=Ue.easing(We+.01)-Ue.easing(We),Qe=.27/Math.sqrt($e*$e+1e-4)*.01,rt=Math.sqrt(.0729-Qe*Qe);Be=Ee.bezier(Qe,rt,.25,1)}return this._prevEase={start:Ee.browser.now(),duration:ze,easing:Be},Be};var yo=function(ze,Be){this._map=ze,this._el=ze.getCanvasContainer(),this._container=ze.getContainer(),this._clickTolerance=Be.clickTolerance||1,Ee.bindAll(["_onMouseMove","_onMouseUp","_onKeyDown"],this)};yo.prototype.isEnabled=function(){return!!this._enabled},yo.prototype.isActive=function(){return!!this._active},yo.prototype.enable=function(){this.isEnabled()||(this._enabled=!0)},yo.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},yo.prototype.onMouseDown=function(ze){this.isEnabled()&&ze.shiftKey&&0===ze.button&&(Ee.window.document.addEventListener("mousemove",this._onMouseMove,!1),Ee.window.document.addEventListener("keydown",this._onKeyDown,!1),Ee.window.document.addEventListener("mouseup",this._onMouseUp,!1),Be.disableDrag(),this._startPos=this._lastPos=Be.mousePos(this._el,ze),this._active=!0)},yo.prototype._onMouseMove=function(Ee){var ze=Be.mousePos(this._el,Ee);if(!(this._lastPos.equals(ze)||!this._box&&ze.dist(this._startPos)180&&(xt=180);var kt=xt/180;it+=ct*xt*(kt/2),Math.abs(Be._normalizeBearing(it,0))0&&Be-ze[0][0]>160;)ze.shift()};var gl=Ee.bezier(0,0,.3,1),Eo=function(ze,Be){this._map=ze,this._el=ze.getCanvasContainer(),this._state="disabled",this._clickTolerance=Be.clickTolerance||1,Ee.bindAll(["_onMove","_onMouseUp","_onTouchEnd","_onBlur","_onDragFrame"],this)};Eo.prototype.isEnabled=function(){return"disabled"!==this._state},Eo.prototype.isActive=function(){return"active"===this._state},Eo.prototype.enable=function(){this.isEnabled()||(this._el.classList.add("mapboxgl-touch-drag-pan"),this._state="enabled")},Eo.prototype.disable=function(){if(this.isEnabled())switch(this._el.classList.remove("mapboxgl-touch-drag-pan"),this._state){case"active":this._state="disabled",this._unbind(),this._deactivate(),this._fireEvent("dragend"),this._fireEvent("moveend");break;case"pending":this._state="disabled",this._unbind();break;default:this._state="disabled"}},Eo.prototype.onMouseDown=function(ze){"enabled"===this._state&&(ze.ctrlKey||0!==Be.mouseButton(ze)||(Be.addEventListener(Ee.window.document,"mousemove",this._onMove,{capture:!0}),Be.addEventListener(Ee.window.document,"mouseup",this._onMouseUp),this._start(ze)))},Eo.prototype.onTouchStart=function(ze){"enabled"===this._state&&(ze.touches.length>1||(Be.addEventListener(Ee.window.document,"touchmove",this._onMove,{capture:!0,passive:!1}),Be.addEventListener(Ee.window.document,"touchend",this._onTouchEnd),this._start(ze)))},Eo.prototype._start=function(ze){Ee.window.addEventListener("blur",this._onBlur),this._state="pending",this._startPos=this._mouseDownPos=this._prevPos=this._lastPos=Be.mousePos(this._el,ze),this._inertia=[[Ee.browser.now(),this._startPos]]},Eo.prototype._onMove=function(ze){ze.preventDefault();var Ue=Be.mousePos(this._el,ze);this._lastPos.equals(Ue)||"pending"===this._state&&Ue.dist(this._mouseDownPos)1400&&(rt=1400,Qe._unit()._mult(rt));var it=rt/750,at=Qe.mult(-it/2);this._map.panBy(at,{duration:1e3*it,easing:gl,noMoveStart:!0},{originalEvent:Ee})}}},Eo.prototype._fireEvent=function(ze,Be){return this._map.fire(new Ee.Event(ze,Be?{originalEvent:Be}:{}))},Eo.prototype._drainInertiaBuffer=function(){for(var ze=this._inertia,Be=Ee.browser.now();ze.length>0&&Be-ze[0][0]>160;)ze.shift()};var To=function(ze){this._map=ze,this._el=ze.getCanvasContainer(),Ee.bindAll(["_onKeyDown"],this)};function Io(Ee){return Ee*(2-Ee)}To.prototype.isEnabled=function(){return!!this._enabled},To.prototype.enable=function(){this.isEnabled()||(this._el.addEventListener("keydown",this._onKeyDown,!1),this._enabled=!0)},To.prototype.disable=function(){this.isEnabled()&&(this._el.removeEventListener("keydown",this._onKeyDown),this._enabled=!1)},To.prototype._onKeyDown=function(Ee){if(!(Ee.altKey||Ee.ctrlKey||Ee.metaKey)){var ze=0,Be=0,Ue=0,We=0,$e=0;switch(Ee.keyCode){case 61:case 107:case 171:case 187:ze=1;break;case 189:case 109:case 173:ze=-1;break;case 37:Ee.shiftKey?Be=-1:(Ee.preventDefault(),We=-1);break;case 39:Ee.shiftKey?Be=1:(Ee.preventDefault(),We=1);break;case 38:Ee.shiftKey?Ue=1:(Ee.preventDefault(),$e=-1);break;case 40:Ee.shiftKey?Ue=-1:($e=1,Ee.preventDefault());break;default:return}var Qe=this._map,rt=Qe.getZoom(),it={duration:300,delayEndEvents:500,easing:Io,zoom:ze?Math.round(rt)+ze*(Ee.shiftKey?2:1):rt,bearing:Qe.getBearing()+15*Be,pitch:Qe.getPitch()+10*Ue,offset:[100*-We,100*-$e],center:Qe.getCenter()};Qe.easeTo(it,{originalEvent:Ee})}};var So=function(ze){this._map=ze,Ee.bindAll(["_onDblClick","_onZoomEnd"],this)};So.prototype.isEnabled=function(){return!!this._enabled},So.prototype.isActive=function(){return!!this._active},So.prototype.enable=function(){this.isEnabled()||(this._enabled=!0)},So.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},So.prototype.onTouchStart=function(Ee){var ze=this;if(this.isEnabled()&&!(Ee.points.length>1))if(this._tapped){var Be=Ee.points[0],Ue=this._tappedPoint;if(Ue&&Ue.dist(Be)<=30){Ee.originalEvent.preventDefault();var r=function(){ze._tapped&&ze._zoom(Ee),ze._map.off("touchcancel",a),ze._resetTapped()},a=function(){ze._map.off("touchend",r),ze._resetTapped()};this._map.once("touchend",r),this._map.once("touchcancel",a)}else this._resetTapped()}else this._tappedPoint=Ee.points[0],this._tapped=setTimeout((function(){ze._tapped=null,ze._tappedPoint=null}),300)},So.prototype._resetTapped=function(){clearTimeout(this._tapped),this._tapped=null,this._tappedPoint=null},So.prototype.onDblClick=function(Ee){this.isEnabled()&&(Ee.originalEvent.preventDefault(),this._zoom(Ee))},So.prototype._zoom=function(Ee){this._active=!0,this._map.on("zoomend",this._onZoomEnd),this._map.zoomTo(this._map.getZoom()+(Ee.originalEvent.shiftKey?-1:1),{around:Ee.lngLat},Ee)},So.prototype._onZoomEnd=function(){this._active=!1,this._map.off("zoomend",this._onZoomEnd)};var yl=Ee.bezier(0,0,.15,1),Po=function(ze){this._map=ze,this._el=ze.getCanvasContainer(),Ee.bindAll(["_onMove","_onEnd","_onTouchFrame"],this)};Po.prototype.isEnabled=function(){return!!this._enabled},Po.prototype.enable=function(Ee){this.isEnabled()||(this._el.classList.add("mapboxgl-touch-zoom-rotate"),this._enabled=!0,this._aroundCenter=!!Ee&&"center"===Ee.around)},Po.prototype.disable=function(){this.isEnabled()&&(this._el.classList.remove("mapboxgl-touch-zoom-rotate"),this._enabled=!1)},Po.prototype.disableRotation=function(){this._rotationDisabled=!0},Po.prototype.enableRotation=function(){this._rotationDisabled=!1},Po.prototype.onStart=function(ze){if(this.isEnabled()&&2===ze.touches.length){var Ue=Be.mousePos(this._el,ze.touches[0]),We=Be.mousePos(this._el,ze.touches[1]),$e=Ue.add(We).div(2);this._startVec=Ue.sub(We),this._startAround=this._map.transform.pointLocation($e),this._gestureIntent=void 0,this._inertia=[],Be.addEventListener(Ee.window.document,"touchmove",this._onMove,{passive:!1}),Be.addEventListener(Ee.window.document,"touchend",this._onEnd)}},Po.prototype._getTouchEventData=function(Ee){var ze=Be.mousePos(this._el,Ee.touches[0]),Ue=Be.mousePos(this._el,Ee.touches[1]),We=ze.sub(Ue);return{vec:We,center:ze.add(Ue).div(2),scale:We.mag()/this._startVec.mag(),bearing:this._rotationDisabled?0:180*We.angleWith(this._startVec)/Math.PI}},Po.prototype._onMove=function(ze){if(2===ze.touches.length){var Be=this._getTouchEventData(ze),Ue=Be.vec,We=Be.scale,$e=Be.bearing;if(!this._gestureIntent){var Qe=this._rotationDisabled&&1!==We||Math.abs(1-We)>.15;Math.abs($e)>10?this._gestureIntent="rotate":Qe&&(this._gestureIntent="zoom"),this._gestureIntent&&(this._map.fire(new Ee.Event(this._gestureIntent+"start",{originalEvent:ze})),this._map.fire(new Ee.Event("movestart",{originalEvent:ze})),this._startVec=Ue)}this._lastTouchEvent=ze,this._frameId||(this._frameId=this._map._requestRenderFrame(this._onTouchFrame)),ze.preventDefault()}},Po.prototype._onTouchFrame=function(){this._frameId=null;var ze=this._gestureIntent;if(ze){var Be=this._map.transform;this._startScale||(this._startScale=Be.scale,this._startBearing=Be.bearing);var Ue=this._getTouchEventData(this._lastTouchEvent),We=Ue.center,$e=Ue.bearing,Qe=Ue.scale,rt=Be.pointLocation(We),it=Be.locationPoint(rt);"rotate"===ze&&(Be.bearing=this._startBearing+$e),Be.zoom=Be.scaleZoom(this._startScale*Qe),Be.setLocationAtPoint(this._startAround,it),this._map.fire(new Ee.Event(ze,{originalEvent:this._lastTouchEvent})),this._map.fire(new Ee.Event("move",{originalEvent:this._lastTouchEvent})),this._drainInertiaBuffer(),this._inertia.push([Ee.browser.now(),Qe,We])}},Po.prototype._onEnd=function(ze){Be.removeEventListener(Ee.window.document,"touchmove",this._onMove,{passive:!1}),Be.removeEventListener(Ee.window.document,"touchend",this._onEnd);var Ue=this._gestureIntent,We=this._startScale;if(this._frameId&&(this._map._cancelRenderFrame(this._frameId),this._frameId=null),delete this._gestureIntent,delete this._startScale,delete this._startBearing,delete this._lastTouchEvent,Ue){this._map.fire(new Ee.Event(Ue+"end",{originalEvent:ze})),this._drainInertiaBuffer();var $e=this._inertia,Qe=this._map;if($e.length<2)Qe.snapToNorth({},{originalEvent:ze});else{var rt=$e[$e.length-1],it=$e[0],at=Qe.transform.scaleZoom(We*rt[1]),ct=Qe.transform.scaleZoom(We*it[1]),ft=at-ct,xt=(rt[0]-it[0])/1e3,kt=rt[2];if(0!==xt&&at!==ct){var Lt=.15*ft/xt;Math.abs(Lt)>2.5&&(Lt=Lt>0?2.5:-2.5);var Ut=1e3*Math.abs(Lt/(12*.15)),er=at+Lt*Ut/2e3;er<0&&(er=0),Qe.easeTo({zoom:er,duration:Ut,easing:yl,around:this._aroundCenter?Qe.getCenter():Qe.unproject(kt),noMoveStart:!0},{originalEvent:ze})}else Qe.snapToNorth({},{originalEvent:ze})}}},Po.prototype._drainInertiaBuffer=function(){for(var ze=this._inertia,Be=Ee.browser.now();ze.length>2&&Be-ze[0][0]>160;)ze.shift()};var wl={scrollZoom:vo,boxZoom:yo,dragRotate:bo,dragPan:Eo,keyboard:To,doubleClickZoom:So,touchZoomRotate:Po},Tl=function(ze){function i(Be,Ue){ze.call(this),this._moving=!1,this._zooming=!1,this.transform=Be,this._bearingSnap=Ue.bearingSnap,Ee.bindAll(["_renderFrameCallback"],this)}return ze&&(i.__proto__=ze),i.prototype=Object.create(ze&&ze.prototype),i.prototype.constructor=i,i.prototype.getCenter=function(){return new Ee.LngLat(this.transform.center.lng,this.transform.center.lat)},i.prototype.setCenter=function(Ee,ze){return this.jumpTo({center:Ee},ze)},i.prototype.panBy=function(ze,Be,Ue){return ze=Ee.Point.convert(ze).mult(-1),this.panTo(this.transform.center,Ee.extend({offset:ze},Be),Ue)},i.prototype.panTo=function(ze,Be,Ue){return this.easeTo(Ee.extend({center:ze},Be),Ue)},i.prototype.getZoom=function(){return this.transform.zoom},i.prototype.setZoom=function(Ee,ze){return this.jumpTo({zoom:Ee},ze),this},i.prototype.zoomTo=function(ze,Be,Ue){return this.easeTo(Ee.extend({zoom:ze},Be),Ue)},i.prototype.zoomIn=function(Ee,ze){return this.zoomTo(this.getZoom()+1,Ee,ze),this},i.prototype.zoomOut=function(Ee,ze){return this.zoomTo(this.getZoom()-1,Ee,ze),this},i.prototype.getBearing=function(){return this.transform.bearing},i.prototype.setBearing=function(Ee,ze){return this.jumpTo({bearing:Ee},ze),this},i.prototype.rotateTo=function(ze,Be,Ue){return this.easeTo(Ee.extend({bearing:ze},Be),Ue)},i.prototype.resetNorth=function(ze,Be){return this.rotateTo(0,Ee.extend({duration:1e3},ze),Be),this},i.prototype.resetNorthPitch=function(ze,Be){return this.easeTo(Ee.extend({bearing:0,pitch:0,duration:1e3},ze),Be),this},i.prototype.snapToNorth=function(Ee,ze){return Math.abs(this.getBearing())ze?1:0})),["bottom","left","right","top"])){var Qe=this.transform,rt=Qe.project(Ee.LngLat.convert(ze)),it=Qe.project(Ee.LngLat.convert(Be)),at=rt.rotate(-Ue*Math.PI/180),ct=it.rotate(-Ue*Math.PI/180),ft=new Ee.Point(Math.max(at.x,ct.x),Math.max(at.y,ct.y)),xt=new Ee.Point(Math.min(at.x,ct.x),Math.min(at.y,ct.y)),kt=ft.sub(xt),Lt=(Qe.width-We.padding.left-We.padding.right)/kt.x,Ut=(Qe.height-We.padding.top-We.padding.bottom)/kt.y;if(!(Ut<0||Lt<0)){var er=Math.min(Qe.scaleZoom(Qe.scale*Math.min(Lt,Ut)),We.maxZoom),tr=Ee.Point.convert(We.offset),rr=(We.padding.left-We.padding.right)/2,ar=(We.padding.top-We.padding.bottom)/2,Lr=new Ee.Point(tr.x+rr,tr.y+ar).mult(Qe.scale/Qe.zoomScale(er));return{center:Qe.unproject(rt.add(it).div(2).sub(Lr)),zoom:er,bearing:Ue}}Ee.warnOnce("Map cannot fit within canvas with the given bounds, padding, and/or offset.")}else Ee.warnOnce("options.padding must be a positive number, or an Object with keys 'bottom', 'left', 'right', 'top'")},i.prototype.fitBounds=function(Ee,ze,Be){return this._fitInternal(this.cameraForBounds(Ee,ze),ze,Be)},i.prototype.fitScreenCoordinates=function(ze,Be,Ue,We,$e){return this._fitInternal(this._cameraForBoxAndBearing(this.transform.pointLocation(Ee.Point.convert(ze)),this.transform.pointLocation(Ee.Point.convert(Be)),Ue,We),We,$e)},i.prototype._fitInternal=function(ze,Be,Ue){return ze?(Be=Ee.extend(ze,Be)).linear?this.easeTo(Be,Ue):this.flyTo(Be,Ue):this},i.prototype.jumpTo=function(ze,Be){this.stop();var Ue=this.transform,We=!1,$e=!1,Qe=!1;return"zoom"in ze&&Ue.zoom!==+ze.zoom&&(We=!0,Ue.zoom=+ze.zoom),void 0!==ze.center&&(Ue.center=Ee.LngLat.convert(ze.center)),"bearing"in ze&&Ue.bearing!==+ze.bearing&&($e=!0,Ue.bearing=+ze.bearing),"pitch"in ze&&Ue.pitch!==+ze.pitch&&(Qe=!0,Ue.pitch=+ze.pitch),this.fire(new Ee.Event("movestart",Be)).fire(new Ee.Event("move",Be)),We&&this.fire(new Ee.Event("zoomstart",Be)).fire(new Ee.Event("zoom",Be)).fire(new Ee.Event("zoomend",Be)),$e&&this.fire(new Ee.Event("rotatestart",Be)).fire(new Ee.Event("rotate",Be)).fire(new Ee.Event("rotateend",Be)),Qe&&this.fire(new Ee.Event("pitchstart",Be)).fire(new Ee.Event("pitch",Be)).fire(new Ee.Event("pitchend",Be)),this.fire(new Ee.Event("moveend",Be))},i.prototype.easeTo=function(ze,Be){var Ue=this;this.stop(),(!1===(ze=Ee.extend({offset:[0,0],duration:500,easing:Ee.ease},ze)).animate||Ee.browser.prefersReducedMotion)&&(ze.duration=0);var We=this.transform,$e=this.getZoom(),Qe=this.getBearing(),rt=this.getPitch(),it="zoom"in ze?+ze.zoom:$e,at="bearing"in ze?this._normalizeBearing(ze.bearing,Qe):Qe,ct="pitch"in ze?+ze.pitch:rt,ft=We.centerPoint.add(Ee.Point.convert(ze.offset)),xt=We.pointLocation(ft),kt=Ee.LngLat.convert(ze.center||xt);this._normalizeCenter(kt);var Lt,Ut,er=We.project(xt),tr=We.project(kt).sub(er),rr=We.zoomScale(it-$e);return ze.around&&(Lt=Ee.LngLat.convert(ze.around),Ut=We.locationPoint(Lt)),this._zooming=it!==$e,this._rotating=Qe!==at,this._pitching=ct!==rt,this._prepareEase(Be,ze.noMoveStart),clearTimeout(this._easeEndTimeoutID),this._ease((function(ze){if(Ue._zooming&&(We.zoom=Ee.number($e,it,ze)),Ue._rotating&&(We.bearing=Ee.number(Qe,at,ze)),Ue._pitching&&(We.pitch=Ee.number(rt,ct,ze)),Lt)We.setLocationAtPoint(Lt,Ut);else{var xt=We.zoomScale(We.zoom-$e),kt=it>$e?Math.min(2,rr):Math.max(.5,rr),ar=Math.pow(kt,1-ze),Lr=We.unproject(er.add(tr.mult(ze*ar)).mult(xt));We.setLocationAtPoint(We.renderWorldCopies?Lr.wrap():Lr,ft)}Ue._fireMoveEvents(Be)}),(function(){ze.delayEndEvents?Ue._easeEndTimeoutID=setTimeout((function(){return Ue._afterEase(Be)}),ze.delayEndEvents):Ue._afterEase(Be)}),ze),this},i.prototype._prepareEase=function(ze,Be){this._moving=!0,Be||this.fire(new Ee.Event("movestart",ze)),this._zooming&&this.fire(new Ee.Event("zoomstart",ze)),this._rotating&&this.fire(new Ee.Event("rotatestart",ze)),this._pitching&&this.fire(new Ee.Event("pitchstart",ze))},i.prototype._fireMoveEvents=function(ze){this.fire(new Ee.Event("move",ze)),this._zooming&&this.fire(new Ee.Event("zoom",ze)),this._rotating&&this.fire(new Ee.Event("rotate",ze)),this._pitching&&this.fire(new Ee.Event("pitch",ze))},i.prototype._afterEase=function(ze){var Be=this._zooming,Ue=this._rotating,We=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,Be&&this.fire(new Ee.Event("zoomend",ze)),Ue&&this.fire(new Ee.Event("rotateend",ze)),We&&this.fire(new Ee.Event("pitchend",ze)),this.fire(new Ee.Event("moveend",ze))},i.prototype.flyTo=function(ze,Be){var Ue=this;if(Ee.browser.prefersReducedMotion){var We=Ee.pick(ze,["center","zoom","bearing","pitch","around"]);return this.jumpTo(We,Be)}this.stop(),ze=Ee.extend({offset:[0,0],speed:1.2,curve:1.42,easing:Ee.ease},ze);var $e=this.transform,Qe=this.getZoom(),rt=this.getBearing(),it=this.getPitch(),at="zoom"in ze?Ee.clamp(+ze.zoom,$e.minZoom,$e.maxZoom):Qe,ct="bearing"in ze?this._normalizeBearing(ze.bearing,rt):rt,ft="pitch"in ze?+ze.pitch:it,xt=$e.zoomScale(at-Qe),kt=$e.centerPoint.add(Ee.Point.convert(ze.offset)),Lt=$e.pointLocation(kt),Ut=Ee.LngLat.convert(ze.center||Lt);this._normalizeCenter(Ut);var er=$e.project(Lt),tr=$e.project(Ut).sub(er),rr=ze.curve,ar=Math.max($e.width,$e.height),Lr=ar/xt,Qr=tr.mag();if("minZoom"in ze){var on=Ee.clamp(Math.min(ze.minZoom,Qe,at),$e.minZoom,$e.maxZoom),sn=ar/$e.zoomScale(on-Qe);rr=Math.sqrt(sn/Qr*2)}var cn=rr*rr;function I(Ee){var ze=(Lr*Lr-ar*ar+(Ee?-1:1)*cn*cn*Qr*Qr)/(2*(Ee?Lr:ar)*cn*Qr);return Math.log(Math.sqrt(ze*ze+1)-ze)}function S(Ee){return(Math.exp(Ee)-Math.exp(-Ee))/2}function C(Ee){return(Math.exp(Ee)+Math.exp(-Ee))/2}var un=I(0),z=function(Ee){return C(un)/C(un+rr*Ee)},L=function(Ee){return ar*((C(un)*(S(ze=un+rr*Ee)/C(ze))-S(un))/cn)/Qr;var ze},hn=(I(1)-un)/rr;if(Math.abs(Qr)<1e-6||!isFinite(hn)){if(Math.abs(ar-Lr)<1e-6)return this.easeTo(ze,Be);var dn=Lrze.maxDuration&&(ze.duration=0),this._zooming=!0,this._rotating=rt!==ct,this._pitching=ft!==it,this._prepareEase(Be,!1),this._ease((function(ze){var We=ze*hn,xt=1/z(We);$e.zoom=1===ze?at:Qe+$e.scaleZoom(xt),Ue._rotating&&($e.bearing=Ee.number(rt,ct,ze)),Ue._pitching&&($e.pitch=Ee.number(it,ft,ze));var Lt=1===ze?Ut:$e.unproject(er.add(tr.mult(L(We))).mult(xt));$e.setLocationAtPoint($e.renderWorldCopies?Lt.wrap():Lt,kt),Ue._fireMoveEvents(Be)}),(function(){return Ue._afterEase(Be)}),ze),this},i.prototype.isEasing=function(){return!!this._easeFrameId},i.prototype.stop=function(){if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){var Ee=this._onEaseEnd;delete this._onEaseEnd,Ee.call(this)}return this},i.prototype._ease=function(ze,Be,Ue){!1===Ue.animate||0===Ue.duration?(ze(1),Be()):(this._easeStart=Ee.browser.now(),this._easeOptions=Ue,this._onEaseFrame=ze,this._onEaseEnd=Be,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))},i.prototype._renderFrameCallback=function(){var ze=Math.min((Ee.browser.now()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(ze)),ze<1?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},i.prototype._normalizeBearing=function(ze,Be){ze=Ee.wrap(ze,-180,180);var Ue=Math.abs(ze-Be);return Math.abs(ze-360-Be)180?-360:Be<-180?360:0}},i}(Ee.Evented),Mo=function(ze){void 0===ze&&(ze={}),this.options=ze,Ee.bindAll(["_updateEditLink","_updateData","_updateCompact"],this)};Mo.prototype.getDefaultPosition=function(){return"bottom-right"},Mo.prototype.onAdd=function(Ee){var ze=this.options&&this.options.compact;return this._map=Ee,this._container=Be.create("div","mapboxgl-ctrl mapboxgl-ctrl-attrib"),this._innerContainer=Be.create("div","mapboxgl-ctrl-attrib-inner",this._container),ze&&this._container.classList.add("mapboxgl-compact"),this._updateAttributions(),this._updateEditLink(),this._map.on("styledata",this._updateData),this._map.on("sourcedata",this._updateData),this._map.on("moveend",this._updateEditLink),void 0===ze&&(this._map.on("resize",this._updateCompact),this._updateCompact()),this._container},Mo.prototype.onRemove=function(){Be.remove(this._container),this._map.off("styledata",this._updateData),this._map.off("sourcedata",this._updateData),this._map.off("moveend",this._updateEditLink),this._map.off("resize",this._updateCompact),this._map=void 0},Mo.prototype._updateEditLink=function(){var ze=this._editLink;ze||(ze=this._editLink=this._container.querySelector(".mapbox-improve-map"));var Be=[{key:"owner",value:this.styleOwner},{key:"id",value:this.styleId},{key:"access_token",value:this._map._requestManager._customAccessToken||Ee.config.ACCESS_TOKEN}];if(ze){var Ue=Be.reduce((function(Ee,ze,Ue){return ze.value&&(Ee+=ze.key+"="+ze.value+(Ue=0)return!1;return!0}))).join(" | ");Qe!==this._attribHTML&&(this._attribHTML=Qe,Ee.length?(this._innerContainer.innerHTML=Qe,this._container.classList.remove("mapboxgl-attrib-empty")):this._container.classList.add("mapboxgl-attrib-empty"),this._editLink=null)}},Mo.prototype._updateCompact=function(){this._map.getCanvasContainer().offsetWidth<=640?this._container.classList.add("mapboxgl-compact"):this._container.classList.remove("mapboxgl-compact")};var Do=function(){Ee.bindAll(["_updateLogo"],this),Ee.bindAll(["_updateCompact"],this)};Do.prototype.onAdd=function(Ee){this._map=Ee,this._container=Be.create("div","mapboxgl-ctrl");var ze=Be.create("a","mapboxgl-ctrl-logo");return ze.target="_blank",ze.rel="noopener nofollow",ze.href="https://www.mapbox.com/",ze.setAttribute("aria-label","Mapbox logo"),ze.setAttribute("rel","noopener nofollow"),this._container.appendChild(ze),this._container.style.display="none",this._map.on("sourcedata",this._updateLogo),this._updateLogo(),this._map.on("resize",this._updateCompact),this._updateCompact(),this._container},Do.prototype.onRemove=function(){Be.remove(this._container),this._map.off("sourcedata",this._updateLogo),this._map.off("resize",this._updateCompact)},Do.prototype.getDefaultPosition=function(){return"bottom-left"},Do.prototype._updateLogo=function(Ee){Ee&&"metadata"!==Ee.sourceDataType||(this._container.style.display=this._logoRequired()?"block":"none")},Do.prototype._logoRequired=function(){if(this._map.style){var Ee=this._map.style.sourceCaches;for(var ze in Ee)if(Ee[ze].getSource().mapbox_logo)return!0;return!1}},Do.prototype._updateCompact=function(){var Ee=this._container.children;if(Ee.length){var ze=Ee[0];this._map.getCanvasContainer().offsetWidth<250?ze.classList.add("mapboxgl-compact"):ze.classList.remove("mapboxgl-compact")}};var Ro=function(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1};Ro.prototype.add=function(Ee){var ze=++this._id;return this._queue.push({callback:Ee,id:ze,cancelled:!1}),ze},Ro.prototype.remove=function(Ee){for(var ze=this._currentlyRunning,Be=0,Ue=ze?this._queue.concat(ze):this._queue;Beze.maxZoom)throw new Error("maxZoom must be greater than minZoom");var $e=new ho(ze.minZoom,ze.maxZoom,ze.renderWorldCopies);if(Ue.call(this,$e,ze),this._interactive=ze.interactive,this._maxTileCacheSize=ze.maxTileCacheSize,this._failIfMajorPerformanceCaveat=ze.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=ze.preserveDrawingBuffer,this._antialias=ze.antialias,this._trackResize=ze.trackResize,this._bearingSnap=ze.bearingSnap,this._refreshExpiredTiles=ze.refreshExpiredTiles,this._fadeDuration=ze.fadeDuration,this._crossSourceCollisions=ze.crossSourceCollisions,this._crossFadingFactor=1,this._collectResourceTiming=ze.collectResourceTiming,this._renderTaskQueue=new Ro,this._controls=[],this._mapId=Ee.uniqueId(),this._requestManager=new Ee.RequestManager(ze.transformRequest,ze.accessToken),"string"==typeof ze.container){if(this._container=Ee.window.document.getElementById(ze.container),!this._container)throw new Error("Container '"+ze.container+"' not found.")}else{if(!(ze.container instanceof Al))throw new Error("Invalid type: 'container' must be a String or HTMLElement.");this._container=ze.container}if(ze.maxBounds&&this.setMaxBounds(ze.maxBounds),Ee.bindAll(["_onWindowOnline","_onWindowResize","_contextLost","_contextRestored"],this),this._setupContainer(),this._setupPainter(),void 0===this.painter)throw new Error("Failed to initialize WebGL.");this.on("move",(function(){return We._update(!1)})),this.on("moveend",(function(){return We._update(!1)})),this.on("zoom",(function(){return We._update(!0)})),void 0!==Ee.window&&(Ee.window.addEventListener("online",this._onWindowOnline,!1),Ee.window.addEventListener("resize",this._onWindowResize,!1)),function(Ee,ze){var Ue=Ee.getCanvasContainer(),We=null,$e=!1,Qe=null;for(var rt in wl)Ee[rt]=new wl[rt](Ee,ze),ze.interactive&&ze[rt]&&Ee[rt].enable(ze[rt]);Be.addEventListener(Ue,"mouseout",(function(ze){Ee.fire(new fl("mouseout",Ee,ze))})),Be.addEventListener(Ue,"mousedown",(function(We){$e=!0,Qe=Be.mousePos(Ue,We);var rt=new fl("mousedown",Ee,We);Ee.fire(rt),rt.defaultPrevented||(ze.interactive&&!Ee.doubleClickZoom.isActive()&&Ee.stop(),Ee.boxZoom.onMouseDown(We),Ee.boxZoom.isActive()||Ee.dragPan.isActive()||Ee.dragRotate.onMouseDown(We),Ee.boxZoom.isActive()||Ee.dragRotate.isActive()||Ee.dragPan.onMouseDown(We))})),Be.addEventListener(Ue,"mouseup",(function(ze){var Be=Ee.dragRotate.isActive();We&&!Be&&Ee.fire(new fl("contextmenu",Ee,We)),We=null,$e=!1,Ee.fire(new fl("mouseup",Ee,ze))})),Be.addEventListener(Ue,"mousemove",(function(ze){if(!Ee.dragPan.isActive()&&!Ee.dragRotate.isActive()){for(var Be=ze.target;Be&&Be!==Ue;)Be=Be.parentNode;Be===Ue&&Ee.fire(new fl("mousemove",Ee,ze))}})),Be.addEventListener(Ue,"mouseover",(function(ze){for(var Be=ze.target;Be&&Be!==Ue;)Be=Be.parentNode;Be===Ue&&Ee.fire(new fl("mouseover",Ee,ze))})),Be.addEventListener(Ue,"touchstart",(function(Be){var Ue=new hl("touchstart",Ee,Be);Ee.fire(Ue),Ue.defaultPrevented||(ze.interactive&&Ee.stop(),Ee.boxZoom.isActive()||Ee.dragRotate.isActive()||Ee.dragPan.onTouchStart(Be),Ee.touchZoomRotate.onStart(Be),Ee.doubleClickZoom.onTouchStart(Ue))}),{passive:!1}),Be.addEventListener(Ue,"touchmove",(function(ze){Ee.fire(new hl("touchmove",Ee,ze))}),{passive:!1}),Be.addEventListener(Ue,"touchend",(function(ze){Ee.fire(new hl("touchend",Ee,ze))})),Be.addEventListener(Ue,"touchcancel",(function(ze){Ee.fire(new hl("touchcancel",Ee,ze))})),Be.addEventListener(Ue,"click",(function(We){var $e=Be.mousePos(Ue,We);(!Qe||$e.equals(Qe)||$e.dist(Qe)-1&&this._controls.splice(Be,1),ze.onRemove(this),this},r.prototype.resize=function(ze){var Be=this._containerDimensions(),Ue=Be[0],We=Be[1];return this._resizeCanvas(Ue,We),this.transform.resize(Ue,We),this.painter.resize(Ue,We),this.fire(new Ee.Event("movestart",ze)).fire(new Ee.Event("move",ze)).fire(new Ee.Event("resize",ze)).fire(new Ee.Event("moveend",ze)),this},r.prototype.getBounds=function(){return this.transform.getBounds()},r.prototype.getMaxBounds=function(){return this.transform.getMaxBounds()},r.prototype.setMaxBounds=function(ze){return this.transform.setMaxBounds(Ee.LngLatBounds.convert(ze)),this._update()},r.prototype.setMinZoom=function(Ee){if((Ee=null==Ee?0:Ee)>=0&&Ee<=this.transform.maxZoom)return this.transform.minZoom=Ee,this._update(),this.getZoom()=this.transform.minZoom)return this.transform.maxZoom=Ee,this._update(),this.getZoom()>Ee&&this.setZoom(Ee),this;throw new Error("maxZoom must be greater than the current minZoom")},r.prototype.getRenderWorldCopies=function(){return this.transform.renderWorldCopies},r.prototype.setRenderWorldCopies=function(Ee){return this.transform.renderWorldCopies=Ee,this._update()},r.prototype.getMaxZoom=function(){return this.transform.maxZoom},r.prototype.project=function(ze){return this.transform.locationPoint(Ee.LngLat.convert(ze))},r.prototype.unproject=function(ze){return this.transform.pointLocation(Ee.Point.convert(ze))},r.prototype.isMoving=function(){return this._moving||this.dragPan.isActive()||this.dragRotate.isActive()||this.scrollZoom.isActive()},r.prototype.isZooming=function(){return this._zooming||this.scrollZoom.isZooming()},r.prototype.isRotating=function(){return this._rotating||this.dragRotate.isActive()},r.prototype.on=function(Ee,ze,Be){var We=this;if(void 0===Be)return Ue.prototype.on.call(this,Ee,ze);var $e=function(){var Ue;if("mouseenter"===Ee||"mouseover"===Ee){var $e=!1;return{layer:ze,listener:Be,delegates:{mousemove:function(Ue){var Qe=We.getLayer(ze)?We.queryRenderedFeatures(Ue.point,{layers:[ze]}):[];Qe.length?$e||($e=!0,Be.call(We,new fl(Ee,We,Ue.originalEvent,{features:Qe}))):$e=!1},mouseout:function(){$e=!1}}}}if("mouseleave"===Ee||"mouseout"===Ee){var Qe=!1;return{layer:ze,listener:Be,delegates:{mousemove:function(Ue){(We.getLayer(ze)?We.queryRenderedFeatures(Ue.point,{layers:[ze]}):[]).length?Qe=!0:Qe&&(Qe=!1,Be.call(We,new fl(Ee,We,Ue.originalEvent)))},mouseout:function(ze){Qe&&(Qe=!1,Be.call(We,new fl(Ee,We,ze.originalEvent)))}}}}return{layer:ze,listener:Be,delegates:(Ue={},Ue[Ee]=function(Ee){var Ue=We.getLayer(ze)?We.queryRenderedFeatures(Ee.point,{layers:[ze]}):[];Ue.length&&(Ee.features=Ue,Be.call(We,Ee),delete Ee.features)},Ue)}}();for(var Qe in this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[Ee]=this._delegatedListeners[Ee]||[],this._delegatedListeners[Ee].push($e),$e.delegates)this.on(Qe,$e.delegates[Qe]);return this},r.prototype.off=function(Ee,ze,Be){if(void 0===Be)return Ue.prototype.off.call(this,Ee,ze);if(this._delegatedListeners&&this._delegatedListeners[Ee])for(var We=this._delegatedListeners[Ee],$e=0;$e180;){var rt=Ue.locationPoint(ze);if(rt.x>=0&&rt.y>=0&&rt.x<=Ue.width&&rt.y<=Ue.height)break;ze.lng>Ue.center.lng?ze.lng-=360:ze.lng+=360}return ze}No.prototype._updateZoomButtons=function(){var Ee=this._map.getZoom();Ee===this._map.getMaxZoom()?this._zoomInButton.classList.add("mapboxgl-ctrl-icon-disabled"):this._zoomInButton.classList.remove("mapboxgl-ctrl-icon-disabled"),Ee===this._map.getMinZoom()?this._zoomOutButton.classList.add("mapboxgl-ctrl-icon-disabled"):this._zoomOutButton.classList.remove("mapboxgl-ctrl-icon-disabled")},No.prototype._rotateCompassArrow=function(){var Ee=this.options.visualizePitch?"scale("+1/Math.pow(Math.cos(this._map.transform.pitch*(Math.PI/180)),.5)+") rotateX("+this._map.transform.pitch+"deg) rotateZ("+this._map.transform.angle*(180/Math.PI)+"deg)":"rotate("+this._map.transform.angle*(180/Math.PI)+"deg)";this._compassArrow.style.transform=Ee},No.prototype.onAdd=function(Ee){return this._map=Ee,this.options.showZoom&&(this._map.on("zoom",this._updateZoomButtons),this._updateZoomButtons()),this.options.showCompass&&(this.options.visualizePitch&&this._map.on("pitch",this._rotateCompassArrow),this._map.on("rotate",this._rotateCompassArrow),this._rotateCompassArrow(),this._handler=new bo(Ee,{button:"left",element:this._compass}),Be.addEventListener(this._compass,"mousedown",this._handler.onMouseDown),Be.addEventListener(this._compass,"touchstart",this._handler.onMouseDown,{passive:!1}),this._handler.enable()),this._container},No.prototype.onRemove=function(){Be.remove(this._container),this.options.showZoom&&this._map.off("zoom",this._updateZoomButtons),this.options.showCompass&&(this.options.visualizePitch&&this._map.off("pitch",this._rotateCompassArrow),this._map.off("rotate",this._rotateCompassArrow),Be.removeEventListener(this._compass,"mousedown",this._handler.onMouseDown),Be.removeEventListener(this._compass,"touchstart",this._handler.onMouseDown,{passive:!1}),this._handler.disable(),delete this._handler),delete this._map},No.prototype._createButton=function(Ee,ze,Ue){var We=Be.create("button",Ee,this._container);return We.type="button",We.title=ze,We.setAttribute("aria-label",ze),We.addEventListener("click",Ue),We};var El={center:"translate(-50%,-50%)",top:"translate(-50%,0)","top-left":"translate(0,0)","top-right":"translate(-100%,0)",bottom:"translate(-50%,-100%)","bottom-left":"translate(0,-100%)","bottom-right":"translate(-100%,-100%)",left:"translate(0,-50%)",right:"translate(-100%,-50%)"};function jo(Ee,ze,Be){var Ue=Ee.classList;for(var We in El)Ue.remove("mapboxgl-"+Be+"-anchor-"+We);Ue.add("mapboxgl-"+Be+"-anchor-"+ze)}var Pl,Ol=function(ze){function o(Ue,We){if(ze.call(this),(Ue instanceof Ee.window.HTMLElement||We)&&(Ue=Ee.extend({element:Ue},We)),Ee.bindAll(["_update","_onMove","_onUp","_addDragHandler","_onMapClick"],this),this._anchor=Ue&&Ue.anchor||"center",this._color=Ue&&Ue.color||"#3FB1CE",this._draggable=Ue&&Ue.draggable||!1,this._state="inactive",Ue&&Ue.element)this._element=Ue.element,this._offset=Ee.Point.convert(Ue&&Ue.offset||[0,0]);else{this._defaultMarker=!0,this._element=Be.create("div");var $e=Be.createNS("http://www.w3.org/2000/svg","svg");$e.setAttributeNS(null,"display","block"),$e.setAttributeNS(null,"height","41px"),$e.setAttributeNS(null,"width","27px"),$e.setAttributeNS(null,"viewBox","0 0 27 41");var Qe=Be.createNS("http://www.w3.org/2000/svg","g");Qe.setAttributeNS(null,"stroke","none"),Qe.setAttributeNS(null,"stroke-width","1"),Qe.setAttributeNS(null,"fill","none"),Qe.setAttributeNS(null,"fill-rule","evenodd");var rt=Be.createNS("http://www.w3.org/2000/svg","g");rt.setAttributeNS(null,"fill-rule","nonzero");var it=Be.createNS("http://www.w3.org/2000/svg","g");it.setAttributeNS(null,"transform","translate(3.0, 29.0)"),it.setAttributeNS(null,"fill","#000000");for(var at=0,ct=[{rx:"10.5",ry:"5.25002273"},{rx:"10.5",ry:"5.25002273"},{rx:"9.5",ry:"4.77275007"},{rx:"8.5",ry:"4.29549936"},{rx:"7.5",ry:"3.81822308"},{rx:"6.5",ry:"3.34094679"},{rx:"5.5",ry:"2.86367051"},{rx:"4.5",ry:"2.38636864"}];at5280?Yo(ze,at,xt/5280,"mi"):Yo(ze,at,xt,"ft")}else Be&&"nautical"===Be.unit?Yo(ze,at,ft/1852,"nm"):Yo(ze,at,ft,"m")}function Yo(Ee,ze,Be,Ue){var We,$e,Qe,rt=(We=Be,($e=Math.pow(10,(""+Math.floor(We)).length-1))*(Qe=(Qe=We/$e)>=10?10:Qe>=5?5:Qe>=3?3:Qe>=2?2:Qe>=1?1:function(Ee){var ze=Math.pow(10,Math.ceil(-Math.log(Ee)/Math.LN10));return Math.round(Ee*ze)/ze}(Qe))),it=rt/Be;"m"===Ue&&rt>=1e3&&(rt/=1e3,Ue="km"),Ee.style.width=ze*it+"px",Ee.innerHTML=rt+Ue}Ko.prototype.getDefaultPosition=function(){return"bottom-left"},Ko.prototype._onMove=function(){Jo(this._map,this._container,this.options)},Ko.prototype.onAdd=function(Ee){return this._map=Ee,this._container=Be.create("div","mapboxgl-ctrl mapboxgl-ctrl-scale",Ee.getContainer()),this._map.on("move",this._onMove),this._onMove(),this._container},Ko.prototype.onRemove=function(){Be.remove(this._container),this._map.off("move",this._onMove),this._map=void 0},Ko.prototype.setUnit=function(Ee){this.options.unit=Ee,Jo(this._map,this._container,this.options)};var Qo=function(ze){this._fullscreen=!1,ze&&ze.container&&(ze.container instanceof Ee.window.HTMLElement?this._container=ze.container:Ee.warnOnce("Full screen control 'container' must be a DOM element.")),Ee.bindAll(["_onClickFullscreen","_changeIcon"],this),"onfullscreenchange"in Ee.window.document?this._fullscreenchange="fullscreenchange":"onmozfullscreenchange"in Ee.window.document?this._fullscreenchange="mozfullscreenchange":"onwebkitfullscreenchange"in Ee.window.document?this._fullscreenchange="webkitfullscreenchange":"onmsfullscreenchange"in Ee.window.document&&(this._fullscreenchange="MSFullscreenChange"),this._className="mapboxgl-ctrl"};Qo.prototype.onAdd=function(ze){return this._map=ze,this._container||(this._container=this._map.getContainer()),this._controlContainer=Be.create("div",this._className+" mapboxgl-ctrl-group"),this._checkFullscreenSupport()?this._setupUI():(this._controlContainer.style.display="none",Ee.warnOnce("This device does not support fullscreen mode.")),this._controlContainer},Qo.prototype.onRemove=function(){Be.remove(this._controlContainer),this._map=null,Ee.window.document.removeEventListener(this._fullscreenchange,this._changeIcon)},Qo.prototype._checkFullscreenSupport=function(){return!!(Ee.window.document.fullscreenEnabled||Ee.window.document.mozFullScreenEnabled||Ee.window.document.msFullscreenEnabled||Ee.window.document.webkitFullscreenEnabled)},Qo.prototype._setupUI=function(){(this._fullscreenButton=Be.create("button",this._className+"-icon "+this._className+"-fullscreen",this._controlContainer)).type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),Ee.window.document.addEventListener(this._fullscreenchange,this._changeIcon)},Qo.prototype._updateTitle=function(){var Ee=this._isFullscreen()?"Exit fullscreen":"Enter fullscreen";this._fullscreenButton.setAttribute("aria-label",Ee),this._fullscreenButton.title=Ee},Qo.prototype._isFullscreen=function(){return this._fullscreen},Qo.prototype._changeIcon=function(){(Ee.window.document.fullscreenElement||Ee.window.document.mozFullScreenElement||Ee.window.document.webkitFullscreenElement||Ee.window.document.msFullscreenElement)===this._container!==this._fullscreen&&(this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle(this._className+"-shrink"),this._fullscreenButton.classList.toggle(this._className+"-fullscreen"),this._updateTitle())},Qo.prototype._onClickFullscreen=function(){this._isFullscreen()?Ee.window.document.exitFullscreen?Ee.window.document.exitFullscreen():Ee.window.document.mozCancelFullScreen?Ee.window.document.mozCancelFullScreen():Ee.window.document.msExitFullscreen?Ee.window.document.msExitFullscreen():Ee.window.document.webkitCancelFullScreen&&Ee.window.document.webkitCancelFullScreen():this._container.requestFullscreen?this._container.requestFullscreen():this._container.mozRequestFullScreen?this._container.mozRequestFullScreen():this._container.msRequestFullscreen?this._container.msRequestFullscreen():this._container.webkitRequestFullscreen&&this._container.webkitRequestFullscreen()};var zl={closeButton:!0,closeOnClick:!0,className:"",maxWidth:"240px"},Rl=function(ze){function o(Be){ze.call(this),this.options=Ee.extend(Object.create(zl),Be),Ee.bindAll(["_update","_onClickClose","remove"],this)}return ze&&(o.__proto__=ze),o.prototype=Object.create(ze&&ze.prototype),o.prototype.constructor=o,o.prototype.addTo=function(ze){var Be=this;return this._map=ze,this.options.closeOnClick&&this._map.on("click",this._onClickClose),this._map.on("remove",this.remove),this._update(),this._trackPointer?(this._map.on("mousemove",(function(Ee){Be._update(Ee.point)})),this._map.on("mouseup",(function(Ee){Be._update(Ee.point)})),this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")):this._map.on("move",this._update),this.fire(new Ee.Event("open")),this},o.prototype.isOpen=function(){return!!this._map},o.prototype.remove=function(){return this._content&&Be.remove(this._content),this._container&&(Be.remove(this._container),delete this._container),this._map&&(this._map.off("move",this._update),this._map.off("click",this._onClickClose),this._map.off("remove",this.remove),this._map.off("mousemove"),delete this._map),this.fire(new Ee.Event("close")),this},o.prototype.getLngLat=function(){return this._lngLat},o.prototype.setLngLat=function(ze){return this._lngLat=Ee.LngLat.convert(ze),this._pos=null,this._trackPointer=!1,this._update(),this._map&&(this._map.on("move",this._update),this._map.off("mousemove"),this._container.classList.remove("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.remove("mapboxgl-track-pointer")),this},o.prototype.trackPointer=function(){var Ee=this;return this._trackPointer=!0,this._pos=null,this._map&&(this._map.off("move",this._update),this._map.on("mousemove",(function(ze){Ee._update(ze.point)})),this._map.on("drag",(function(ze){Ee._update(ze.point)})),this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")),this},o.prototype.getElement=function(){return this._container},o.prototype.setText=function(ze){return this.setDOMContent(Ee.window.document.createTextNode(ze))},o.prototype.setHTML=function(ze){var Be,Ue=Ee.window.document.createDocumentFragment(),We=Ee.window.document.createElement("body");for(We.innerHTML=ze;Be=We.firstChild;)Ue.appendChild(Be);return this.setDOMContent(Ue)},o.prototype.getMaxWidth=function(){return this._container.style.maxWidth},o.prototype.setMaxWidth=function(Ee){return this.options.maxWidth=Ee,this._update(),this},o.prototype.setDOMContent=function(Ee){return this._createContent(),this._content.appendChild(Ee),this._update(),this},o.prototype._createContent=function(){this._content&&Be.remove(this._content),this._content=Be.create("div","mapboxgl-popup-content",this._container),this.options.closeButton&&(this._closeButton=Be.create("button","mapboxgl-popup-close-button",this._content),this._closeButton.type="button",this._closeButton.setAttribute("aria-label","Close popup"),this._closeButton.innerHTML="×",this._closeButton.addEventListener("click",this._onClickClose))},o.prototype._update=function(ze){var Ue=this,We=this._lngLat||this._trackPointer;if(this._map&&We&&this._content&&(this._container||(this._container=Be.create("div","mapboxgl-popup",this._map.getContainer()),this._tip=Be.create("div","mapboxgl-popup-tip",this._container),this._container.appendChild(this._content),this.options.className&&this.options.className.split(" ").forEach((function(Ee){return Ue._container.classList.add(Ee)}))),this.options.maxWidth&&this._container.style.maxWidth!==this.options.maxWidth&&(this._container.style.maxWidth=this.options.maxWidth),this._map.transform.renderWorldCopies&&!this._trackPointer&&(this._lngLat=Zo(this._lngLat,this._pos,this._map.transform)),!this._trackPointer||ze)){var $e=this._pos=this._trackPointer&&ze?ze:this._map.project(this._lngLat),Qe=this.options.anchor,rt=function e(ze){if(ze){if("number"==typeof ze){var Be=Math.round(Math.sqrt(.5*Math.pow(ze,2)));return{center:new Ee.Point(0,0),top:new Ee.Point(0,ze),"top-left":new Ee.Point(Be,Be),"top-right":new Ee.Point(-Be,Be),bottom:new Ee.Point(0,-ze),"bottom-left":new Ee.Point(Be,-Be),"bottom-right":new Ee.Point(-Be,-Be),left:new Ee.Point(ze,0),right:new Ee.Point(-ze,0)}}if(ze instanceof Ee.Point||Array.isArray(ze)){var Ue=Ee.Point.convert(ze);return{center:Ue,top:Ue,"top-left":Ue,"top-right":Ue,bottom:Ue,"bottom-left":Ue,"bottom-right":Ue,left:Ue,right:Ue}}return{center:Ee.Point.convert(ze.center||[0,0]),top:Ee.Point.convert(ze.top||[0,0]),"top-left":Ee.Point.convert(ze["top-left"]||[0,0]),"top-right":Ee.Point.convert(ze["top-right"]||[0,0]),bottom:Ee.Point.convert(ze.bottom||[0,0]),"bottom-left":Ee.Point.convert(ze["bottom-left"]||[0,0]),"bottom-right":Ee.Point.convert(ze["bottom-right"]||[0,0]),left:Ee.Point.convert(ze.left||[0,0]),right:Ee.Point.convert(ze.right||[0,0])}}return e(new Ee.Point(0,0))}(this.options.offset);if(!Qe){var it,at=this._container.offsetWidth,ct=this._container.offsetHeight;it=$e.y+rt.bottom.ythis._map.transform.height-ct?["bottom"]:[],$e.xthis._map.transform.width-at/2&&it.push("right"),Qe=0===it.length?"bottom":it.join("-")}var ft=$e.add(rt[Qe]).round();Be.setTransform(this._container,El[Qe]+" translate("+ft.x+"px,"+ft.y+"px)"),jo(this._container,Qe,"popup")}},o.prototype._onClickClose=function(){this.remove()},o}(Ee.Evented),Bl={version:Ee.version,supported:ze,setRTLTextPlugin:Ee.setRTLTextPlugin,Map:Sl,NavigationControl:No,GeolocateControl:Dl,AttributionControl:Mo,ScaleControl:Ko,FullscreenControl:Qo,Popup:Rl,Marker:Ol,Style:es,LngLat:Ee.LngLat,LngLatBounds:Ee.LngLatBounds,Point:Ee.Point,MercatorCoordinate:Ee.MercatorCoordinate,Evented:Ee.Evented,config:Ee.config,get accessToken(){return Ee.config.ACCESS_TOKEN},set accessToken(ze){Ee.config.ACCESS_TOKEN=ze},get baseApiUrl(){return Ee.config.API_URL},set baseApiUrl(ze){Ee.config.API_URL=ze},get workerCount(){return At.workerCount},set workerCount(Ee){At.workerCount=Ee},get maxParallelImageRequests(){return Ee.config.MAX_PARALLEL_IMAGE_REQUESTS},set maxParallelImageRequests(ze){Ee.config.MAX_PARALLEL_IMAGE_REQUESTS=ze},clearStorage:function(ze){Ee.clearTileCache(ze)},workerUrl:""};return Bl})),Be}()},e19c:function(Ee,ze,Be){"use strict";var Ue,We=Be("2160"),$e=Be("96ae"),Qe=Object.prototype.isPrototypeOf,rt=Object.defineProperty,it={configurable:!0,enumerable:!1,writable:!0,value:void 0};Ue=function(Ee,ze){if($e(Ee),null===ze||We(ze))return Ee;throw new TypeError("Prototype must be null or an object")},Ee.exports=function(Ee){var ze,Be;return Ee?(2===Ee.level?Ee.set?(Be=Ee.set,ze=function(Ee,ze){return Be.call(Ue(Ee,ze),ze),Ee}):ze=function(Ee,ze){return Ue(Ee,ze).__proto__=ze,Ee}:ze=function self(Ee,ze){var Be;return Ue(Ee,ze),(Be=Qe.call(self.nullPolyfill,Ee))&&delete self.nullPolyfill.__proto__,null===ze&&(ze=self.nullPolyfill),Ee.__proto__=ze,Be&&rt(self.nullPolyfill,"__proto__",it),Ee},Object.defineProperty(ze,"level",{configurable:!1,enumerable:!1,writable:!1,value:Ee.level})):null}(function(){var Ee,ze=Object.create(null),Be={},Ue=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__");if(Ue){try{(Ee=Ue.set).call(ze,Be)}catch(Ee){}if(Object.getPrototypeOf(ze)===Be)return{set:Ee,level:2}}return ze.__proto__=Be,Object.getPrototypeOf(ze)===Be?{level:2}:((ze={}).__proto__=Be,Object.getPrototypeOf(ze)===Be&&{level:1})}()),Be("ba4b")},e19f:function(Ee,ze,Be){var Ue;!function(){"use strict";var We={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function sprintf(Ee){return sprintf_format(sprintf_parse(Ee),arguments)}function vsprintf(Ee,ze){return sprintf.apply(null,[Ee].concat(ze||[]))}function sprintf_format(Ee,ze){var Be,Ue,$e,Qe,rt,it,at,ct,ft,xt=1,kt=Ee.length,Lt="";for(Ue=0;Ue=0),Qe.type){case"b":Be=parseInt(Be,10).toString(2);break;case"c":Be=String.fromCharCode(parseInt(Be,10));break;case"d":case"i":Be=parseInt(Be,10);break;case"j":Be=JSON.stringify(Be,null,Qe.width?parseInt(Qe.width):0);break;case"e":Be=Qe.precision?parseFloat(Be).toExponential(Qe.precision):parseFloat(Be).toExponential();break;case"f":Be=Qe.precision?parseFloat(Be).toFixed(Qe.precision):parseFloat(Be);break;case"g":Be=Qe.precision?String(Number(Be.toPrecision(Qe.precision))):parseFloat(Be);break;case"o":Be=(parseInt(Be,10)>>>0).toString(8);break;case"s":Be=String(Be),Be=Qe.precision?Be.substring(0,Qe.precision):Be;break;case"t":Be=String(!!Be),Be=Qe.precision?Be.substring(0,Qe.precision):Be;break;case"T":Be=Object.prototype.toString.call(Be).slice(8,-1).toLowerCase(),Be=Qe.precision?Be.substring(0,Qe.precision):Be;break;case"u":Be=parseInt(Be,10)>>>0;break;case"v":Be=Be.valueOf(),Be=Qe.precision?Be.substring(0,Qe.precision):Be;break;case"x":Be=(parseInt(Be,10)>>>0).toString(16);break;case"X":Be=(parseInt(Be,10)>>>0).toString(16).toUpperCase()}We.json.test(Qe.type)?Lt+=Be:(!We.number.test(Qe.type)||ct&&!Qe.sign?ft="":(ft=ct?"+":"-",Be=Be.toString().replace(We.sign,"")),it=Qe.pad_char?"0"===Qe.pad_char?"0":Qe.pad_char.charAt(1):" ",at=Qe.width-(ft+Be).length,rt=Qe.width&&at>0?it.repeat(at):"",Lt+=Qe.align?ft+Be+rt:"0"===it?ft+rt+Be:rt+ft+Be)}return Lt}var $e=Object.create(null);function sprintf_parse(Ee){if($e[Ee])return $e[Ee];for(var ze,Be=Ee,Ue=[],Qe=0;Be;){if(null!==(ze=We.text.exec(Be)))Ue.push(ze[0]);else if(null!==(ze=We.modulo.exec(Be)))Ue.push("%");else{if(null===(ze=We.placeholder.exec(Be)))throw new SyntaxError("[sprintf] unexpected placeholder");if(ze[2]){Qe|=1;var rt=[],it=ze[2],at=[];if(null===(at=We.key.exec(it)))throw new SyntaxError("[sprintf] failed to parse named argument key");for(rt.push(at[1]);""!==(it=it.substring(at[0].length));)if(null!==(at=We.key_access.exec(it)))rt.push(at[1]);else{if(null===(at=We.index_access.exec(it)))throw new SyntaxError("[sprintf] failed to parse named argument key");rt.push(at[1])}ze[2]=rt}else Qe|=2;if(3===Qe)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");Ue.push({placeholder:ze[0],param_no:ze[1],keys:ze[2],sign:ze[3],pad_char:ze[4],align:ze[5],width:ze[6],precision:ze[7],type:ze[8]})}Be=Be.substring(ze[0].length)}return $e[Ee]=Ue}ze.sprintf=sprintf,ze.vsprintf=vsprintf,"undefined"!=typeof window&&(window.sprintf=sprintf,window.vsprintf=vsprintf,void 0===(Ue=function(){return{sprintf:sprintf,vsprintf:vsprintf}}.call(ze,Be,ze,Ee))||(Ee.exports=Ue))}()},e1e5:function(Ee,ze,Be){"use strict";var Ue=Be("fc26"),We=Be("3aa8");function processGrid(Ee){var ze,Be,We,$e,Qe,rt,it,at,ct,ft,xt,kt,Lt=Ee._x,Ut=Ee._y,er=Ee._z,tr=Ee._len,rr=-1/0,ar=1/0,Lr=-1/0,Qr=1/0,on=-1/0,sn=1/0,cn="";for(tr&&(it=Lt[0],ct=Ut[0],xt=er[0]),tr>1&&(at=Lt[tr-1],ft=Ut[tr-1],kt=er[tr-1]),ze=0;zeat?"-":"+")+"x")).replace("y",(ct>ft?"-":"+")+"y")).replace("z",(xt>kt?"-":"+")+"z");var empty=function(){tr=0,un=[],hn=[],dn=[]};(!tr||tr0){var xt=We.c2l(ct);We._lowerLogErrorBound||(We._lowerLogErrorBound=xt),We._lowerErrorBound=Math.min(We._lowerLogErrorBound,xt)}}else Qe[rt]=[-it[0]*Be,it[1]*Be]}return Qe}Ee.exports=function calculateErrors(Ee,ze,Be){var Ue=[calculateAxisErrors(Ee.x,Ee.error_x,ze[0],Be.xaxis),calculateAxisErrors(Ee.y,Ee.error_y,ze[1],Be.yaxis),calculateAxisErrors(Ee.z,Ee.error_z,ze[2],Be.zaxis)],We=function dataLength(Ee){for(var ze=0;ze$e&&($e=ct,Qe=at)}}return $e?We(Qe):rt};case"rms":return function(Ee,ze){for(var Be=0,$e=0,Qe=0;Qe2&&(ze.push([Ue].concat($e.splice(0,2))),Qe="l",Ue="m"==Ue?"l":"L");;){if($e.length==Be[Qe])return $e.unshift(Ue),ze.push($e);if($e.lengthxt?2*(Lr.sizeAvg||Math.max(Lr.size,3)):$e(ze,ar),kt=0;kt1e-6?(We=Math.acos($e),Qe=Math.sin(We),rt=Math.sin((1-Ue)*We)/Qe,it=Math.sin(Ue*We)/Qe):(rt=1-Ue,it=Ue);return Ee[0]=rt*at+it*kt,Ee[1]=rt*ct+it*Lt,Ee[2]=rt*ft+it*Ut,Ee[3]=rt*xt+it*er,Ee}},e5cb:function(Ee,ze,Be){"use strict";var Ue=Be("9776"),We=Be("0642"),$e=Be("f977");function Heatmap(Ee,ze){this.scene=Ee,this.uid=ze,this.type="heatmapgl",this.name="",this.hoverinfo="all",this.xData=[],this.yData=[],this.zData=[],this.textLabels=[],this.idToIndex=[],this.bounds=[0,0,0,0],this.options={z:[],x:[],y:[],shape:[0,0],colorLevels:[0],colorValues:[0,0,0,1]},this.heatmap=Ue(Ee.glplot,this.options),this.heatmap._trace=this}var Qe=Heatmap.prototype;Qe.handlePick=function(Ee){var ze=this.options,Be=ze.shape,Ue=Ee.pointId,We=Ue%Be[0],$e=Math.floor(Ue/Be[0]),Qe=Ue;return{trace:this,dataCoord:Ee.dataCoord,traceCoord:[ze.x[We],ze.y[$e],ze.z[Qe]],textLabel:this.textLabels[Ue],name:this.name,pointIndex:[$e,We],hoverinfo:this.hoverinfo}},Qe.update=function(Ee,ze){var Be=ze[0];this.index=Ee.index,this.name=Ee.name,this.hoverinfo=Ee.hoverinfo;var Ue=Be.z;this.options.z=[].concat.apply([],Ue);var Qe=Ue[0].length,rt=Ue.length;this.options.shape=[Qe,rt],this.options.x=Be.x,this.options.y=Be.y;var it=function convertColorscale(Ee){for(var ze=Ee.colorscale,Be=Ee.zmin,Ue=Ee.zmax,We=ze.length,Qe=new Array(We),rt=new Array(4*We),it=0;it0}))).length,Ut=new Array(Lt),er=new Array(Lt);for(xt=0;xt0;){var Bn=Pn.pop(),Hn=dn[Bn];it(Hn,(function(Ee,ze){return Ee-ze}));var Kn,Jn=Hn.length,ei=In[Bn];if(0===ei){var ti=kt[Bn];Kn=[ti]}for(xt=0;xt=0))if(In[ri]=1^ei,Pn.push(ri),0===ei)sharedBoundary(ti=kt[ri])||(ti.reverse(),Kn.push(ti))}0===ei&&Be.push(Kn)}return Be};var Ue=Be("c586"),We=Be("9915"),$e=Be("4ae2"),Qe=Be("c01c"),rt=Be("a026"),it=Be("175e"),at=Be("ce8f");function makeArray(Ee,ze){for(var Be=new Array(Ee),Ue=0;Ue")}(at,ct,it[0].t.labels),[rt]}}},e76c:function(Ee,ze,Be){"use strict";Ee.exports=function(){}},e7ab:function(Ee,ze,Be){"use strict";var Ue=Be("6e58"),We=Be("d115"),$e=Be("83d1"),Qe=Be("c258");function styleTrace(Ee,ze){var Be=ze[0].trace,rt=ze[0].node3.selectAll(".choroplethlocation"),it=Be.marker||{},at=it.line||{},ct=Qe.makeColorScaleFuncFromTrace(Be);rt.each((function(Ee){Ue.select(this).attr("fill",ct(Ee.z)).call(We.stroke,Ee.mlc||at.color).call($e.dashLine,"",Ee.mlw||at.width||0).style("opacity",it.opacity)})),$e.selectedPointStyle(rt,Be,Ee)}Ee.exports={style:function style(Ee,ze){ze&&styleTrace(Ee,ze)},styleOnSelect:function styleOnSelect(Ee,ze){var Be=ze[0].node3,Ue=ze[0].trace;Ue.selectedpoints?$e.selectedPointStyle(Be.selectAll(".choroplethlocation"),Ue,Ee):styleTrace(Ee,ze)}}},e7bd:function(Ee,ze,Be){"use strict";var Ue=Be("9845"),We=Be("c715"),$e=Be("dfb3"),Qe=Ue({editType:"calc"});Qe.family.dflt='"Open Sans", verdana, arial, sans-serif',Qe.size.dflt=12,Qe.color.dflt=$e.defaultLine,Ee.exports={carpet:{valType:"string",editType:"calc"},x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},a:{valType:"data_array",editType:"calc"},a0:{valType:"number",dflt:0,editType:"calc"},da:{valType:"number",dflt:1,editType:"calc"},b:{valType:"data_array",editType:"calc"},b0:{valType:"number",dflt:0,editType:"calc"},db:{valType:"number",dflt:1,editType:"calc"},cheaterslope:{valType:"number",dflt:1,editType:"calc"},aaxis:We,baxis:We,font:Qe,color:{valType:"color",dflt:$e.defaultLine,editType:"plot"},transforms:void 0}},e7cb:function(Ee,ze,Be){"use strict";(function(ze){var Ue=Be("4f4d"),We=Be("3642"),$e=Be("84a1");Ee.exports=function parse(Ee){var Be,rt,it=[],at=1;if("string"==typeof Ee)if(Ue[Ee])it=Ue[Ee].slice(),rt="rgb";else if("transparent"===Ee)at=0,rt="rgb",it=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(Ee)){var ct=(kt=Ee.slice(1)).length;at=1,ct<=4?(it=[parseInt(kt[0]+kt[0],16),parseInt(kt[1]+kt[1],16),parseInt(kt[2]+kt[2],16)],4===ct&&(at=parseInt(kt[3]+kt[3],16)/255)):(it=[parseInt(kt[0]+kt[1],16),parseInt(kt[2]+kt[3],16),parseInt(kt[4]+kt[5],16)],8===ct&&(at=parseInt(kt[6]+kt[7],16)/255)),it[0]||(it[0]=0),it[1]||(it[1]=0),it[2]||(it[2]=0),rt="rgb"}else if(Be=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(Ee)){var ft=Be[1],xt="rgb"===ft,kt=ft.replace(/a$/,"");rt=kt;ct="cmyk"===kt?4:"gray"===kt?1:3;it=Be[2].trim().split(/\s*,\s*/).map((function(Ee,ze){if(/%$/.test(Ee))return ze===ct?parseFloat(Ee)/100:"rgb"===kt?255*parseFloat(Ee)/100:parseFloat(Ee);if("h"===kt[ze]){if(/deg$/.test(Ee))return parseFloat(Ee);if(void 0!==Qe[Ee])return Qe[Ee]}return parseFloat(Ee)})),ft===kt&&it.push(1),at=xt||void 0===it[ct]?1:it[ct],it=it.slice(0,ct)}else Ee.length>10&&/[0-9](?:\s|\/)/.test(Ee)&&(it=Ee.match(/([0-9]+)/g).map((function(Ee){return parseFloat(Ee)})),rt=Ee.match(/([a-z])/gi).join("").toLowerCase());else if(isNaN(Ee))if(We(Ee)){var Lt=$e(Ee.r,Ee.red,Ee.R,null);null!==Lt?(rt="rgb",it=[Lt,$e(Ee.g,Ee.green,Ee.G),$e(Ee.b,Ee.blue,Ee.B)]):(rt="hsl",it=[$e(Ee.h,Ee.hue,Ee.H),$e(Ee.s,Ee.saturation,Ee.S),$e(Ee.l,Ee.lightness,Ee.L,Ee.b,Ee.brightness)]),at=$e(Ee.a,Ee.alpha,Ee.opacity,1),null!=Ee.opacity&&(at/=100)}else(Array.isArray(Ee)||ze.ArrayBuffer&&ArrayBuffer.isView&&ArrayBuffer.isView(Ee))&&(it=[Ee[0],Ee[1],Ee[2]],rt="rgb",at=4===Ee.length?Ee[3]:1);else rt="rgb",it=[Ee>>>16,(65280&Ee)>>>8,255&Ee];return{space:rt,values:it,alpha:at}};var Qe={red:0,orange:60,yellow:120,green:180,blue:240,purple:300}}).call(this,Be("c8ba"))},e7d5:function(Ee,ze,Be){"use strict";var Ue=Be("f118");Ee.exports=function plot(Ee,ze,Be){var We=ze.plotContainer;We.select(".scatterlayer").selectAll("*").remove();var $e={xaxis:ze.xaxis,yaxis:ze.yaxis,plot:We,layerClipId:ze._hasClipOnAxisFalse?ze.clipIdRelative:null},Qe=ze.layers.frontplot.select("g.scatterlayer");Ue(Ee,$e,Be,Qe)}},e806:function(Ee,ze,Be){"use strict";Ee.exports={BADNUM:void 0,FP_SAFE:Number.MAX_VALUE/1e4,ONEAVGYEAR:315576e5,ONEAVGMONTH:26298e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,EPOCHJD:2440587.5,ALMOST_EQUAL:.999999,LOG_CLIP:10,MINUS_SIGN:"−"}},e812:function(Ee,ze,Be){"use strict";var Ue=Be("6e58"),We=Be("19b2"),$e=Be("66cb"),Qe=Be("fc26"),rt=Be("8741"),it=Be("0379"),at=Be("c953"),ct=Be("83d1"),ft=Be("d115"),xt=Be("4efe"),kt=Be("0642"),Lt=Be("371e"),Ut=Be("c4c7"),er=Be("7fb7"),tr=er.YANGLE,rr=Math.PI*tr/180,ar=1/Math.sin(rr),Lr=Math.cos(rr),Qr=Math.sin(rr),on=er.HOVERARROWSIZE,sn=er.HOVERTEXTPAD;ze.hover=function hover(Ee,ze,Be,$e){Ee=Qe.getGraphDiv(Ee),Qe.throttle(Ee._fullLayout._uid+er.HOVERID,er.HOVERMINTIME,(function(){!function _hover(Ee,ze,Be,$e){Be||(Be="xy");var it=Array.isArray(Be)?Be:[Be],ct=Ee._fullLayout,kt=ct._plots||[],er=kt[Be],tr=ct._has("cartesian");if(er){var rr=er.overlays.map((function(Ee){return Ee.id}));it=it.concat(rr)}for(var Lr=it.length,Qr=new Array(Lr),on=new Array(Lr),sn=!1,cn=0;cnQr[0]._length||li<0||li>on[0]._length)return xt.unhoverRaw(Ee,ze)}if(ze.pointerX=si+Qr[0]._offset,ze.pointerY=li+on[0]._offset,vn="xval"in ze?Ut.flat(it,ze.xval):Ut.p2c(Qr,si),yn="yval"in ze?Ut.flat(it,ze.yval):Ut.p2c(on,li),!We(vn[0])||!We(yn[0]))return Qe.warn("Fx.hover failed",ze,Ee),xt.unhoverRaw(Ee,ze)}var hi=1/0;for(Mn=0;Mnei&&(ni.splice(0,ei),hi=ni[0].distance),tr&&0!==ri&&0===ni.length){Jn.distance=ri,Jn.index=!1;var Xi=En._module.hoverPoints(Jn,Hn,Kn,"closest",ct._hoverlayer);if(Xi&&(Xi=Xi.filter((function(Ee){return Ee.spikeDistance<=ri}))),Xi&&Xi.length){var Ma,Sa=Xi.filter((function(Ee){return Ee.xa.showspikes}));if(Sa.length){var La=Sa[0];We(La.x0)&&We(La.y0)&&(Ma=fillSpikePoint(La),(!ai.vLinePoint||ai.vLinePoint.spikeDistance>Ma.spikeDistance)&&(ai.vLinePoint=Ma))}var Ia=Xi.filter((function(Ee){return Ee.ya.showspikes}));if(Ia.length){var Ra=Ia[0];We(Ra.x0)&&We(Ra.y0)&&(Ma=fillSpikePoint(Ra),(!ai.hLinePoint||ai.hLinePoint.spikeDistance>Ma.spikeDistance)&&(ai.hLinePoint=Ma))}}}}function selectClosestPoint(Ee,ze){for(var Be,Ue=null,We=1/0,$e=0;$e1||ni.length>1)||"closest"===dn&&oi&&ni.length>1,$o=ft.combine(ct.plot_bgcolor||ft.background,ct.paper_bgcolor),es={hovermode:dn,rotateLabels:Xo,bgColor:$o,container:ct._hoverlayer,outerContainer:ct._paperdiv,commonLabelOpts:ct.hoverlabel,hoverdistance:ct.hoverdistance},ts=createHoverText(ni,es,Ee);if(function hoverAvoidOverlaps(Ee,ze,Be){var Ue,We,$e,Qe,rt,it,at,ct=0,ft=1,xt=Ee.size(),kt=new Array(xt),Lt=0;function constrainGroup(Ee){var ze=Ee[0],Be=Ee[Ee.length-1];if(We=ze.pmin-ze.pos-ze.dp+ze.size,$e=Be.pos+Be.dp+Be.size-ze.pmax,We>.01){for(rt=Ee.length-1;rt>=0;rt--)Ee[rt].dp+=We;Ue=!1}if(!($e<.01)){if(We<-.01){for(rt=Ee.length-1;rt>=0;rt--)Ee[rt].dp-=$e;Ue=!1}if(Ue){var at=0;for(Qe=0;Qeze.pmax&&at++;for(Qe=Ee.length-1;Qe>=0&&!(at<=0);Qe--)(it=Ee[Qe]).pos>ze.pmax-1&&(it.del=!0,at--);for(Qe=0;Qe=0;rt--)Ee[rt].dp-=$e;for(Qe=Ee.length-1;Qe>=0&&!(at<=0);Qe--)(it=Ee[Qe]).pos+it.dp+it.size>ze.pmax&&(it.del=!0,at--)}}}Ee.each((function(Ee){var Ue=Ee[ze],We="x"===Ue._id.charAt(0),$e=Ue.range;0===Lt&&$e&&$e[0]>$e[1]!==We&&(ft=-1),kt[Lt++]=[{datum:Ee,traceIndex:Ee.trace.index,dp:0,pos:Ee.pos,posref:Ee.posref,size:Ee.by*(We?ar:1)/2,pmin:0,pmax:We?Be.width:Be.height}]})),kt.sort((function(Ee,ze){return Ee[0].posref-ze[0].posref||ft*(ze[0].traceIndex-Ee[0].traceIndex)}));for(;!Ue&&ct<=xt;){for(ct++,Ue=!0,Qe=0;Qe.01&&tr.pmin===rr.pmin&&tr.pmax===rr.pmax){for(rt=er.length-1;rt>=0;rt--)er[rt].dp+=We;for(Ut.push.apply(Ut,er),kt.splice(Qe+1,1),at=0,rt=Ut.length-1;rt>=0;rt--)at+=Ut[rt].dp;for($e=at/Ut.length,rt=Ut.length-1;rt>=0;rt--)Ut[rt].dp-=$e;Ue=!1}else Qe++}kt.forEach(constrainGroup)}for(Qe=kt.length-1;Qe>=0;Qe--){var Lr=kt[Qe];for(rt=Lr.length-1;rt>=0;rt--){var Qr=Lr[rt],on=Qr.datum;on.offset=Qr.dp,on.del=Qr.del}}}(ts,Xo?"xa":"ya",ct),alignHoverText(ts,Xo),ze.target&&ze.target.tagName){var rs=Lt.getComponentMethod("annotations","hasClickToShow")(Ee,Vo);at(Ue.select(ze.target),rs?"pointer":"")}if(!ze.target||$e||!function hoverChanged(Ee,ze,Be){if(!Be||Be.length!==Ee._hoverdata.length)return!0;for(var Ue=Be.length-1;Ue>=0;Ue--){var We=Be[Ue],$e=Ee._hoverdata[Ue];if(We.curveNumber!==$e.curveNumber||String(We.pointNumber)!==String($e.pointNumber)||String(We.pointNumbers)!==String($e.pointNumbers))return!0}return!1}(Ee,0,Bo))return;Bo&&Ee.emit("plotly_unhover",{event:ze,points:Bo});Ee.emit("plotly_hover",{event:ze,points:Ee._hoverdata,xaxes:Qr,yaxes:on,xvals:vn,yvals:yn})}(Ee,ze,Be,$e)}))},ze.loneHover=function loneHover(Ee,ze){var Be=!0;Array.isArray(Ee)||(Be=!1,Ee=[Ee]);var We=Ee.map((function(Ee){return{color:Ee.color||ft.defaultLine,x0:Ee.x0||Ee.x||0,x1:Ee.x1||Ee.x||0,y0:Ee.y0||Ee.y||0,y1:Ee.y1||Ee.y||0,xLabel:Ee.xLabel,yLabel:Ee.yLabel,zLabel:Ee.zLabel,text:Ee.text,name:Ee.name,idealAlign:Ee.idealAlign,borderColor:Ee.borderColor,fontFamily:Ee.fontFamily,fontSize:Ee.fontSize,fontColor:Ee.fontColor,nameLength:Ee.nameLength,textAlign:Ee.textAlign,trace:Ee.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:Ee.hovertemplate||!1,eventData:Ee.eventData||!1,hovertemplateLabels:Ee.hovertemplateLabels||!1}})),$e=Ue.select(ze.container),Qe=ze.outerContainer?Ue.select(ze.outerContainer):$e,rt={hovermode:"closest",rotateLabels:!1,bgColor:ze.bgColor||ft.background,container:$e,outerContainer:Qe},it=createHoverText(We,rt,ze.gd),at=0,ct=0;return it.sort((function(Ee,ze){return Ee.y0-ze.y0})).each((function(Ee,Be){var Ue=Ee.y0-Ee.by/2;Ee.offset=Ue-5([\s\S]*)<\/extra>/;function createHoverText(Ee,ze,Be){var We=Be._fullLayout,$e=ze.hovermode,rt=ze.rotateLabels,at=ze.bgColor,xt=ze.container,kt=ze.outerContainer,Lt=ze.commonLabelOpts||{},Ut=ze.fontFamily||er.HOVERFONT,rr=ze.fontSize||er.HOVERFONTSIZE,ar=Ee[0],Lr=ar.xa,Qr=ar.ya,un="y"===$e?"yLabel":"xLabel",hn=ar[un],dn=(String(hn)||"").split(" ")[0],vn=kt.node().getBoundingClientRect(),yn=vn.top,_n=vn.width,Mn=vn.height,Cn=void 0!==hn&&ar.distance<=ze.hoverdistance&&("x"===$e||"y"===$e);if(Cn){var En,Pn,In=!0;for(En=0;EnWe.width-Cn?(cn=We.width-Cn,rt.attr("d","M"+(Cn-on)+",0L"+Cn+","+Mn+on+"v"+Mn+(2*sn+_n.height)+"H-"+Cn+"V"+Mn+on+"H"+(Cn-2*on)+"Z")):rt.attr("d","M0,0L"+on+","+Mn+on+"H"+(sn+_n.width/2)+"v"+Mn+(2*sn+_n.height)+"H-"+(sn+_n.width/2)+"V"+Mn+on+"H-"+on+"Z")}else{var En,Pn,In;"right"===Qr.side?(En="start",Pn=1,In="",cn=Lr._offset+Lr._length):(En="end",Pn=-1,In="-",cn=Lr._offset),vn=Qr._offset+(ar.y0+ar.y1)/2,at.attr("text-anchor",En),rt.attr("d","M0,0L"+In+on+","+on+"V"+(sn+_n.height/2)+"h"+In+(2*sn+_n.width)+"V-"+(sn+_n.height/2)+"H"+In+on+"V-"+on+"Z");var Bn,Hn=_n.height/2,Kn=yn-_n.top-Hn,Jn="clip"+We._uid+"commonlabel"+Qr._id;if(cn<_n.width+2*sn+on){Bn="M-"+(on+sn)+"-"+Hn+"h-"+(_n.width-sn)+"V"+Hn+"h"+(_n.width-sn)+"Z";var ei=_n.width-cn+sn;it.positionText(at,ei,Kn),"end"===En&&at.selectAll("tspan").each((function(){var Ee=Ue.select(this),ze=ct.tester.append("text").text(Ee.text()).call(ct.font,tr),Be=ze.node().getBoundingClientRect();Math.round(Be.width)"),void 0!==Ee.yLabel&&(kt+="y: "+Ee.yLabel+"
"),"choropleth"!==Ee.trace.type&&"choroplethmapbox"!==Ee.trace.type&&(kt+=(kt?"z: ":"")+Ee.zLabel)):Cn&&Ee[$e+"Label"]===hn?kt=Ee[("x"===$e?"y":"x")+"Label"]||"":void 0===Ee.xLabel?void 0!==Ee.yLabel&&"scattercarpet"!==Ee.trace.type&&(kt=Ee.yLabel):kt=void 0===Ee.yLabel?Ee.xLabel:"("+Ee.xLabel+", "+Ee.yLabel+")",!Ee.text&&0!==Ee.text||Array.isArray(Ee.text)||(kt+=(kt?"
":"")+Ee.text),void 0!==Ee.extraText&&(kt+=(kt?"
":"")+Ee.extraText),""!==kt||Ee.hovertemplate||(""===xt&&ze.remove(),kt=xt);var Qr=We._d3locale,un=Ee.hovertemplate||!1,dn=Ee.hovertemplateLabels||Ee,vn=Ee.eventData[0]||{};un&&(kt=(kt=Qe.hovertemplateString(un,dn,Qr,vn,Ee.trace._meta)).replace(cn,(function(ze,Be){return xt=plainText(Be,Ee.nameLength),""})));var En=ze.select("text.nums").call(ct.font,Ee.fontFamily||Ut,Ee.fontSize||rr,Ee.fontColor||Lr).text(kt).attr("data-notex",1).call(it.positionText,0,0).call(it.convertToTspans,Be),Pn=ze.select("text.name"),In=0,Bn=0;if(xt&&xt!==kt){Pn.call(ct.font,Ee.fontFamily||Ut,Ee.fontSize||rr,ar).text(xt).attr("data-notex",1).call(it.positionText,0,0).call(it.convertToTspans,Be);var Hn=Pn.node().getBoundingClientRect();In=Hn.width+2*sn,Bn=Hn.height+2*sn}else Pn.remove(),ze.select("rect").remove();ze.select("path").style({fill:er,stroke:Lr});var Kn,Jn,ei=En.node().getBoundingClientRect(),ti=Ee.xa._offset+(Ee.x0+Ee.x1)/2,ri=Ee.ya._offset+(Ee.y0+Ee.y1)/2,ni=Math.abs(Ee.x1-Ee.x0),ii=Math.abs(Ee.y1-Ee.y0),ai=ei.width+on+sn+In;if(Ee.ty0=yn-ei.top,Ee.bx=ei.width+2*sn,Ee.by=Math.max(ei.height+2*sn,Bn),Ee.anchor="start",Ee.txwidth=ei.width,Ee.tx2width=In,Ee.offset=0,rt)Ee.pos=ti,Kn=ri+ii/2+ai<=Mn,Jn=ri-ii/2-ai>=0,"top"!==Ee.idealAlign&&Kn||!Jn?Kn?(ri+=ii/2,Ee.anchor="start"):Ee.anchor="middle":(ri-=ii/2,Ee.anchor="end");else if(Ee.pos=ri,Kn=ti+ni/2+ai<=_n,Jn=ti-ni/2-ai>=0,"left"!==Ee.idealAlign&&Kn||!Jn)if(Kn)ti+=ni/2,Ee.anchor="start";else{Ee.anchor="middle";var oi=ai/2,si=ti+oi-_n,li=ti-oi;si>0&&(ti-=si),li<0&&(ti+=-li)}else ti-=ni/2,Ee.anchor="end";En.attr("text-anchor",Ee.anchor),In&&Pn.attr("text-anchor",Ee.anchor),ze.attr("transform","translate("+ti+","+ri+")"+(rt?"rotate("+tr+")":""))})),Kn}function alignHoverText(Ee,ze){Ee.each((function(Ee){var Be=Ue.select(this);if(Ee.del)return Be.remove();var We=Be.select("text.nums"),$e=Ee.anchor,Qe="end"===$e?-1:1,rt={start:1,end:-1,middle:0}[$e],at=rt*(on+sn),ft=at+rt*(Ee.txwidth+sn),xt=0,kt=Ee.offset;"middle"===$e&&(at-=Ee.tx2width/2,ft+=Ee.txwidth/2+sn),ze&&(kt*=-Qr,xt=Ee.offset*Lr),Be.select("path").attr("d","middle"===$e?"M-"+(Ee.bx/2+Ee.tx2width/2)+","+(kt-Ee.by/2)+"h"+Ee.bx+"v"+Ee.by+"h-"+Ee.bx+"Z":"M0,0L"+(Qe*on+xt)+","+(on+kt)+"v"+(Ee.by/2-on)+"h"+Qe*Ee.bx+"v-"+Ee.by+"H"+(Qe*on+xt)+"V"+(kt-on)+"Z");var Lt=at+xt,Ut=kt+Ee.ty0-Ee.by/2+sn,er=Ee.textAlign||"auto";"auto"!==er&&("left"===er&&"start"!==$e?(We.attr("text-anchor","start"),Lt="middle"===$e?-Ee.bx/2-Ee.tx2width/2+sn:-Ee.bx-sn):"right"===er&&"end"!==$e&&(We.attr("text-anchor","end"),Lt="middle"===$e?Ee.bx/2-Ee.tx2width/2-sn:Ee.bx+sn)),We.call(it.positionText,Lt,Ut),Ee.tx2width&&(Be.select("text.name").call(it.positionText,ft+rt*sn+xt,kt+Ee.ty0-Ee.by/2+sn),Be.select("rect").call(ct.setRect,ft+(rt-1)*Ee.tx2width/2+xt,kt-Ee.by/2-1,Ee.tx2width,Ee.by+2))}))}function cleanPoint(Ee,ze){var Be=Ee.index,Ue=Ee.trace||{},$e=Ee.cd[0],rt=Ee.cd[Be]||{};function pass(Ee){return Ee||We(Ee)&&0===Ee}var it=Array.isArray(Be)?function(Ee,ze){var We=Qe.castOption($e,Be,Ee);return pass(We)?We:Qe.extractOption({},Ue,"",ze)}:function(Ee,ze){return Qe.extractOption(rt,Ue,Ee,ze)};function fill(ze,Be,Ue){var We=it(Be,Ue);pass(We)&&(Ee[ze]=We)}if(fill("hoverinfo","hi","hoverinfo"),fill("bgcolor","hbg","hoverlabel.bgcolor"),fill("borderColor","hbc","hoverlabel.bordercolor"),fill("fontFamily","htf","hoverlabel.font.family"),fill("fontSize","hts","hoverlabel.font.size"),fill("fontColor","htc","hoverlabel.font.color"),fill("nameLength","hnl","hoverlabel.namelength"),fill("textAlign","hta","hoverlabel.align"),Ee.posref="y"===ze||"closest"===ze&&"h"===Ue.orientation?Ee.xa._offset+(Ee.x0+Ee.x1)/2:Ee.ya._offset+(Ee.y0+Ee.y1)/2,Ee.x0=Qe.constrain(Ee.x0,0,Ee.xa._length),Ee.x1=Qe.constrain(Ee.x1,0,Ee.xa._length),Ee.y0=Qe.constrain(Ee.y0,0,Ee.ya._length),Ee.y1=Qe.constrain(Ee.y1,0,Ee.ya._length),void 0!==Ee.xLabelVal&&(Ee.xLabel="xLabel"in Ee?Ee.xLabel:kt.hoverLabelText(Ee.xa,Ee.xLabelVal),Ee.xVal=Ee.xa.c2d(Ee.xLabelVal)),void 0!==Ee.yLabelVal&&(Ee.yLabel="yLabel"in Ee?Ee.yLabel:kt.hoverLabelText(Ee.ya,Ee.yLabelVal),Ee.yVal=Ee.ya.c2d(Ee.yLabelVal)),void 0!==Ee.zLabelVal&&void 0===Ee.zLabel&&(Ee.zLabel=String(Ee.zLabelVal)),!(isNaN(Ee.xerr)||"log"===Ee.xa.type&&Ee.xerr<=0)){var at=kt.tickText(Ee.xa,Ee.xa.c2l(Ee.xerr),"hover").text;void 0!==Ee.xerrneg?Ee.xLabel+=" +"+at+" / -"+kt.tickText(Ee.xa,Ee.xa.c2l(Ee.xerrneg),"hover").text:Ee.xLabel+=" ± "+at,"x"===ze&&(Ee.distance+=1)}if(!(isNaN(Ee.yerr)||"log"===Ee.ya.type&&Ee.yerr<=0)){var ct=kt.tickText(Ee.ya,Ee.ya.c2l(Ee.yerr),"hover").text;void 0!==Ee.yerrneg?Ee.yLabel+=" +"+ct+" / -"+kt.tickText(Ee.ya,Ee.ya.c2l(Ee.yerrneg),"hover").text:Ee.yLabel+=" ± "+ct,"y"===ze&&(Ee.distance+=1)}var ft=Ee.hoverinfo||Ee.trace.hoverinfo;return ft&&"all"!==ft&&(-1===(ft=Array.isArray(ft)?ft:ft.split("+")).indexOf("x")&&(Ee.xLabel=void 0),-1===ft.indexOf("y")&&(Ee.yLabel=void 0),-1===ft.indexOf("z")&&(Ee.zLabel=void 0),-1===ft.indexOf("text")&&(Ee.text=void 0),-1===ft.indexOf("name")&&(Ee.name=void 0)),Ee}function createSpikelines(Ee,ze,Be){var Ue,We,Qe=Be.container,rt=Be.fullLayout,it=rt._size,at=Be.event,xt=!!ze.hLinePoint,Lt=!!ze.vLinePoint;if(Qe.selectAll(".spikeline").remove(),Lt||xt){var Ut=ft.combine(rt.plot_bgcolor,rt.paper_bgcolor);if(xt){var er,tr,rr=ze.hLinePoint;Ue=rr&&rr.xa,"cursor"===(We=rr&&rr.ya).spikesnap?(er=at.pointerX,tr=at.pointerY):(er=Ue._offset+rr.x,tr=We._offset+rr.y);var ar,Lr,Qr=$e.readability(rr.color,Ut)<1.5?ft.contrast(Ut):rr.color,on=We.spikemode,sn=We.spikethickness,cn=We.spikecolor||Qr,un=kt.getPxPosition(Ee,We);if(-1!==on.indexOf("toaxis")||-1!==on.indexOf("across")){if(-1!==on.indexOf("toaxis")&&(ar=un,Lr=er),-1!==on.indexOf("across")){var hn=We._counterDomainMin,dn=We._counterDomainMax;"free"===We.anchor&&(hn=Math.min(hn,We.position),dn=Math.max(dn,We.position)),ar=it.l+hn*it.w,Lr=it.l+dn*it.w}Qe.insert("line",":first-child").attr({x1:ar,x2:Lr,y1:tr,y2:tr,"stroke-width":sn,stroke:cn,"stroke-dasharray":ct.dashStyle(We.spikedash,sn)}).classed("spikeline",!0).classed("crisp",!0),Qe.insert("line",":first-child").attr({x1:ar,x2:Lr,y1:tr,y2:tr,"stroke-width":sn+2,stroke:Ut}).classed("spikeline",!0).classed("crisp",!0)}-1!==on.indexOf("marker")&&Qe.insert("circle",":first-child").attr({cx:un+("right"!==We.side?sn:-sn),cy:tr,r:sn,fill:cn}).classed("spikeline",!0)}if(Lt){var vn,yn,_n=ze.vLinePoint;Ue=_n&&_n.xa,We=_n&&_n.ya,"cursor"===Ue.spikesnap?(vn=at.pointerX,yn=at.pointerY):(vn=Ue._offset+_n.x,yn=We._offset+_n.y);var Mn,Cn,En=$e.readability(_n.color,Ut)<1.5?ft.contrast(Ut):_n.color,Pn=Ue.spikemode,In=Ue.spikethickness,Bn=Ue.spikecolor||En,Hn=kt.getPxPosition(Ee,Ue);if(-1!==Pn.indexOf("toaxis")||-1!==Pn.indexOf("across")){if(-1!==Pn.indexOf("toaxis")&&(Mn=Hn,Cn=yn),-1!==Pn.indexOf("across")){var Kn=Ue._counterDomainMin,Jn=Ue._counterDomainMax;"free"===Ue.anchor&&(Kn=Math.min(Kn,Ue.position),Jn=Math.max(Jn,Ue.position)),Mn=it.t+(1-Jn)*it.h,Cn=it.t+(1-Kn)*it.h}Qe.insert("line",":first-child").attr({x1:vn,x2:vn,y1:Mn,y2:Cn,"stroke-width":In,stroke:Bn,"stroke-dasharray":ct.dashStyle(Ue.spikedash,In)}).classed("spikeline",!0).classed("crisp",!0),Qe.insert("line",":first-child").attr({x1:vn,x2:vn,y1:Mn,y2:Cn,"stroke-width":In+2,stroke:Ut}).classed("spikeline",!0).classed("crisp",!0)}-1!==Pn.indexOf("marker")&&Qe.insert("circle",":first-child").attr({cx:vn,cy:Hn-("top"!==Ue.side?In:-In),r:In,fill:Bn}).classed("spikeline",!0)}}}function spikesChanged(Ee,ze){return!ze||(ze.vLinePoint!==Ee._spikepoints.vLinePoint||ze.hLinePoint!==Ee._spikepoints.hLinePoint)}function plainText(Ee,ze){return it.plainText(Ee||"",{len:ze,allowedTags:["br","sub","sup","b","i","em"]})}},e813:function(Ee,ze,Be){"use strict";var Ue=Be("371e"),We=Be("fc26"),$e=Be("a651"),Qe=Be("e827"),rt=Be("a685"),it=Be("79f1");Ee.exports=function legendDefaults(Ee,ze,Be){for(var at=Ee.legend||{},ct=0,ft=!1,xt="normal",kt=0;kt1);if(!1!==Ut||at.uirevision){var er=$e.newContainer(ze,"legend");if(coerce("uirevision",ze.uirevision),!1!==Ut){coerce("bgcolor",ze.paper_bgcolor),coerce("bordercolor"),coerce("borderwidth"),We.coerceFont(coerce,"font",ze.font);var tr,rr,ar,Lr=coerce("orientation");"h"===Lr?(tr=0,Ue.getComponentMethod("rangeslider","isVisible")(Ee.xaxis)?(rr=1.1,ar="bottom"):(rr=-.1,ar="top")):(tr=1.02,rr=1,ar="auto"),coerce("traceorder",xt),it.isGrouped(ze.legend)&&coerce("tracegroupgap"),coerce("itemsizing"),coerce("itemclick"),coerce("itemdoubleclick"),coerce("x",tr),coerce("xanchor"),coerce("y",rr),coerce("yanchor",ar),coerce("valign"),We.noneOrAll(at,er,["x","y"]),coerce("title.text")&&(coerce("title.side","h"===Lr?"left":"top"),We.coerceFont(coerce,"title.font",ze.font))}}function coerce(Ee,ze){return We.coerce(at,er,Qe,Ee,ze)}}},e827:function(Ee,ze,Be){"use strict";var Ue=Be("9845"),We=Be("dfb3");Ee.exports={bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:We.defaultLine,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:Ue({editType:"legend"}),orientation:{valType:"enumerated",values:["v","h"],dflt:"v",editType:"legend"},traceorder:{valType:"flaglist",flags:["reversed","grouped"],extras:["normal"],editType:"legend"},tracegroupgap:{valType:"number",min:0,dflt:10,editType:"legend"},itemsizing:{valType:"enumerated",values:["trace","constant"],dflt:"trace",editType:"legend"},itemclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggle",editType:"legend"},itemdoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggleothers",editType:"legend"},x:{valType:"number",min:-2,max:3,editType:"legend"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"legend"},y:{valType:"number",min:-2,max:3,editType:"legend"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],editType:"legend"},uirevision:{valType:"any",editType:"none"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"legend"},title:{text:{valType:"string",dflt:"",editType:"legend"},font:Ue({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left"],editType:"legend"},editType:"legend"},editType:"legend"}},e893:function(Ee,ze,Be){var Ue=Be("5135"),We=Be("56ef"),$e=Be("06cf"),Qe=Be("9bf2");Ee.exports=function(Ee,ze){for(var Be=We(ze),rt=Qe.f,it=$e.f,at=0;at 0. && baClipping < length(normalWidth * endBotJoin)) {\n\t\t//handle miter clipping\n\t\tbTopCoord -= normalWidth * endTopJoin;\n\t\tbTopCoord += normalize(endTopJoin * normalWidth) * baClipping;\n\t}\n\n\tif (nextReverse) {\n\t\t//make join rectangular\n\t\tvec2 miterShift = normalWidth * endJoinDirection * miterLimit * .5;\n\t\tfloat normalAdjust = 1. - min(miterLimit / endMiterRatio, 1.);\n\t\tbBotCoord = bCoord + miterShift - normalAdjust * normalWidth * currNormal * .5;\n\t\tbTopCoord = bCoord + miterShift + normalAdjust * normalWidth * currNormal * .5;\n\t}\n\telse if (!prevReverse && abClipping > 0. && abClipping < length(normalWidth * startBotJoin)) {\n\t\t//handle miter clipping\n\t\taBotCoord -= normalWidth * startBotJoin;\n\t\taBotCoord += normalize(startBotJoin * normalWidth) * abClipping;\n\t}\n\n\tvec2 aTopPosition = (aTopCoord) * adjustedScale + translate;\n\tvec2 aBotPosition = (aBotCoord) * adjustedScale + translate;\n\n\tvec2 bTopPosition = (bTopCoord) * adjustedScale + translate;\n\tvec2 bBotPosition = (bBotCoord) * adjustedScale + translate;\n\n\t//position is normalized 0..1 coord on the screen\n\tvec2 position = (aTopPosition * lineTop + aBotPosition * lineBot) * lineStart + (bTopPosition * lineTop + bBotPosition * lineBot) * lineEnd;\n\n\tstartCoord = aCoord * scaleRatio + translate * viewport.zw + viewport.xy;\n\tendCoord = bCoord * scaleRatio + translate * viewport.zw + viewport.xy;\n\n\tgl_Position = vec4(position * 2.0 - 1.0, depth, 1);\n\n\tenableStartMiter = step(dot(currTangent, prevTangent), .5);\n\tenableEndMiter = step(dot(currTangent, nextTangent), .5);\n\n\t//bevel miter cutoffs\n\tif (miterMode == 1.) {\n\t\tif (enableStartMiter == 1.) {\n\t\t\tvec2 startMiterWidth = vec2(startJoinDirection) * thickness * miterLimit * .5;\n\t\t\tstartCutoff = vec4(aCoord, aCoord);\n\t\t\tstartCutoff.zw += vec2(-startJoinDirection.y, startJoinDirection.x) / scaleRatio;\n\t\t\tstartCutoff = startCutoff * scaleRatio.xyxy + translate.xyxy * viewport.zwzw;\n\t\t\tstartCutoff += viewport.xyxy;\n\t\t\tstartCutoff += startMiterWidth.xyxy;\n\t\t}\n\n\t\tif (enableEndMiter == 1.) {\n\t\t\tvec2 endMiterWidth = vec2(endJoinDirection) * thickness * miterLimit * .5;\n\t\t\tendCutoff = vec4(bCoord, bCoord);\n\t\t\tendCutoff.zw += vec2(-endJoinDirection.y, endJoinDirection.x) / scaleRatio;\n\t\t\tendCutoff = endCutoff * scaleRatio.xyxy + translate.xyxy * viewport.zwzw;\n\t\t\tendCutoff += viewport.xyxy;\n\t\t\tendCutoff += endMiterWidth.xyxy;\n\t\t}\n\t}\n\n\t//round miter cutoffs\n\telse if (miterMode == 2.) {\n\t\tif (enableStartMiter == 1.) {\n\t\t\tvec2 startMiterWidth = vec2(startJoinDirection) * thickness * abs(dot(startJoinDirection, currNormal)) * .5;\n\t\t\tstartCutoff = vec4(aCoord, aCoord);\n\t\t\tstartCutoff.zw += vec2(-startJoinDirection.y, startJoinDirection.x) / scaleRatio;\n\t\t\tstartCutoff = startCutoff * scaleRatio.xyxy + translate.xyxy * viewport.zwzw;\n\t\t\tstartCutoff += viewport.xyxy;\n\t\t\tstartCutoff += startMiterWidth.xyxy;\n\t\t}\n\n\t\tif (enableEndMiter == 1.) {\n\t\t\tvec2 endMiterWidth = vec2(endJoinDirection) * thickness * abs(dot(endJoinDirection, currNormal)) * .5;\n\t\t\tendCutoff = vec4(bCoord, bCoord);\n\t\t\tendCutoff.zw += vec2(-endJoinDirection.y, endJoinDirection.x) / scaleRatio;\n\t\t\tendCutoff = endCutoff * scaleRatio.xyxy + translate.xyxy * viewport.zwzw;\n\t\t\tendCutoff += viewport.xyxy;\n\t\t\tendCutoff += endMiterWidth.xyxy;\n\t\t}\n\t}\n}\n"]),frag:Qe(["precision highp float;\n#define GLSLIFY 1\n\nuniform sampler2D dashPattern;\nuniform float dashSize, pixelRatio, thickness, opacity, id, miterMode;\n\nvarying vec4 fragColor;\nvarying vec2 tangent;\nvarying vec4 startCutoff, endCutoff;\nvarying vec2 startCoord, endCoord;\nvarying float enableStartMiter, enableEndMiter;\n\nfloat distToLine(vec2 p, vec2 a, vec2 b) {\n\tvec2 diff = b - a;\n\tvec2 perp = normalize(vec2(-diff.y, diff.x));\n\treturn dot(p - a, perp);\n}\n\nvoid main() {\n\tfloat alpha = 1., distToStart, distToEnd;\n\tfloat cutoff = thickness * .5;\n\n\t//bevel miter\n\tif (miterMode == 1.) {\n\t\tif (enableStartMiter == 1.) {\n\t\t\tdistToStart = distToLine(gl_FragCoord.xy, startCutoff.xy, startCutoff.zw);\n\t\t\tif (distToStart < -1.) {\n\t\t\t\tdiscard;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\talpha *= min(max(distToStart + 1., 0.), 1.);\n\t\t}\n\n\t\tif (enableEndMiter == 1.) {\n\t\t\tdistToEnd = distToLine(gl_FragCoord.xy, endCutoff.xy, endCutoff.zw);\n\t\t\tif (distToEnd < -1.) {\n\t\t\t\tdiscard;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\talpha *= min(max(distToEnd + 1., 0.), 1.);\n\t\t}\n\t}\n\n\t// round miter\n\telse if (miterMode == 2.) {\n\t\tif (enableStartMiter == 1.) {\n\t\t\tdistToStart = distToLine(gl_FragCoord.xy, startCutoff.xy, startCutoff.zw);\n\t\t\tif (distToStart < 0.) {\n\t\t\t\tfloat radius = length(gl_FragCoord.xy - startCoord);\n\n\t\t\t\tif(radius > cutoff + .5) {\n\t\t\t\t\tdiscard;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\talpha -= smoothstep(cutoff - .5, cutoff + .5, radius);\n\t\t\t}\n\t\t}\n\n\t\tif (enableEndMiter == 1.) {\n\t\t\tdistToEnd = distToLine(gl_FragCoord.xy, endCutoff.xy, endCutoff.zw);\n\t\t\tif (distToEnd < 0.) {\n\t\t\t\tfloat radius = length(gl_FragCoord.xy - endCoord);\n\n\t\t\t\tif(radius > cutoff + .5) {\n\t\t\t\t\tdiscard;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\talpha -= smoothstep(cutoff - .5, cutoff + .5, radius);\n\t\t\t}\n\t\t}\n\t}\n\n\tfloat t = fract(dot(tangent, gl_FragCoord.xy) / dashSize) * .5 + .25;\n\tfloat dash = texture2D(dashPattern, vec2(t, .5)).r;\n\n\tgl_FragColor = fragColor;\n\tgl_FragColor.a *= alpha * opacity * dash;\n}\n"]),attributes:{lineEnd:{buffer:Be,divisor:0,stride:8,offset:0},lineTop:{buffer:Be,divisor:0,stride:8,offset:4},aColor:{buffer:Ee.prop("colorBuffer"),stride:4,offset:0,divisor:1},bColor:{buffer:Ee.prop("colorBuffer"),stride:4,offset:4,divisor:1},prevCoord:{buffer:Ee.prop("positionBuffer"),stride:8,offset:0,divisor:1},aCoord:{buffer:Ee.prop("positionBuffer"),stride:8,offset:8,divisor:1},bCoord:{buffer:Ee.prop("positionBuffer"),stride:8,offset:16,divisor:1},nextCoord:{buffer:Ee.prop("positionBuffer"),stride:8,offset:24,divisor:1}}},Ue))}catch(Ee){ze=We}return{fill:Ee({primitive:"triangle",elements:function(Ee,ze){return ze.triangles},offset:0,vert:Qe(["precision highp float;\n#define GLSLIFY 1\n\nattribute vec2 position, positionFract;\n\nuniform vec4 color;\nuniform vec2 scale, scaleFract, translate, translateFract;\nuniform float pixelRatio, id;\nuniform vec4 viewport;\nuniform float opacity;\n\nvarying vec4 fragColor;\n\nconst float MAX_LINES = 256.;\n\nvoid main() {\n\tfloat depth = (MAX_LINES - 4. - id) / (MAX_LINES);\n\n\tvec2 position = position * scale + translate\n + positionFract * scale + translateFract\n + position * scaleFract\n + positionFract * scaleFract;\n\n\tgl_Position = vec4(position * 2.0 - 1.0, depth, 1);\n\n\tfragColor = color / 255.;\n\tfragColor.a *= opacity;\n}\n"]),frag:Qe(["precision highp float;\n#define GLSLIFY 1\n\nvarying vec4 fragColor;\n\nvoid main() {\n\tgl_FragColor = fragColor;\n}\n"]),uniforms:{scale:Ee.prop("scale"),color:Ee.prop("fill"),scaleFract:Ee.prop("scaleFract"),translateFract:Ee.prop("translateFract"),translate:Ee.prop("translate"),opacity:Ee.prop("opacity"),pixelRatio:Ee.context("pixelRatio"),id:Ee.prop("id"),viewport:function(Ee,ze){return[ze.viewport.x,ze.viewport.y,Ee.viewportWidth,Ee.viewportHeight]}},attributes:{position:{buffer:Ee.prop("positionBuffer"),stride:8,offset:8},positionFract:{buffer:Ee.prop("positionFractBuffer"),stride:8,offset:8}},blend:Ue.blend,depth:{enable:!1},scissor:Ue.scissor,stencil:Ue.stencil,viewport:Ue.viewport}),rect:We,miter:ze}},Line2D.defaults={dashes:null,join:"miter",miterLimit:1,thickness:10,cap:"square",color:"black",opacity:1,overlay:!1,viewport:null,range:null,close:!1,fill:null},Line2D.prototype.render=function(){for(var Ee,ze=[],Be=arguments.length;Be--;)ze[Be]=arguments[Be];ze.length&&(Ee=this).update.apply(Ee,ze),this.draw()},Line2D.prototype.draw=function(){for(var Ee=this,ze=[],Be=arguments.length;Be--;)ze[Be]=arguments[Be];return(ze.length?ze:this.passes).forEach((function(ze,Be){var Ue;if(ze&&Array.isArray(ze))return(Ue=Ee).draw.apply(Ue,ze);"number"==typeof ze&&(ze=Ee.passes[ze]),ze&&ze.count>1&&ze.opacity&&(Ee.regl._refresh(),ze.fill&&ze.triangles&&ze.triangles.length>2&&Ee.shaders.fill(ze),ze.thickness&&(ze.scale[0]*ze.viewport.width>Line2D.precisionThreshold||ze.scale[1]*ze.viewport.height>Line2D.precisionThreshold||"rect"===ze.join||!ze.join&&(ze.thickness<=2||ze.count>=Line2D.maxPoints)?Ee.shaders.rect(ze):Ee.shaders.miter(ze)))})),this},Line2D.prototype.update=function(Ee){var ze=this;if(Ee){null!=Ee.length?"number"==typeof Ee[0]&&(Ee=[{positions:Ee}]):Array.isArray(Ee)||(Ee=[Ee]);var Be=this.regl,Qe=this.gl;if(Ee.forEach((function(Ee,ft){var Lt=ze.passes[ft];if(void 0!==Ee)if(null!==Ee){if("number"==typeof Ee[0]&&(Ee={positions:Ee}),Ee=rt(Ee,{positions:"positions points data coords",thickness:"thickness lineWidth lineWidths line-width linewidth width stroke-width strokewidth strokeWidth",join:"lineJoin linejoin join type mode",miterLimit:"miterlimit miterLimit",dashes:"dash dashes dasharray dash-array dashArray",color:"color colour stroke colors colours stroke-color strokeColor",fill:"fill fill-color fillColor",opacity:"alpha opacity",overlay:"overlay crease overlap intersect",close:"closed close closed-path closePath",range:"range dataBox",viewport:"viewport viewBox",hole:"holes hole hollow"}),Lt||(ze.passes[ft]=Lt={id:ft,scale:null,scaleFract:null,translate:null,translateFract:null,count:0,hole:[],depth:0,dashLength:1,dashTexture:Be.texture({channels:1,data:new Uint8Array([255]),width:1,height:1,mag:"linear",min:"linear"}),colorBuffer:Be.buffer({usage:"dynamic",type:"uint8",data:new Uint8Array}),positionBuffer:Be.buffer({usage:"dynamic",type:"float",data:new Uint8Array}),positionFractBuffer:Be.buffer({usage:"dynamic",type:"float",data:new Uint8Array})},Ee=$e({},Line2D.defaults,Ee)),null!=Ee.thickness&&(Lt.thickness=parseFloat(Ee.thickness)),null!=Ee.opacity&&(Lt.opacity=parseFloat(Ee.opacity)),null!=Ee.miterLimit&&(Lt.miterLimit=parseFloat(Ee.miterLimit)),null!=Ee.overlay&&(Lt.overlay=!!Ee.overlay,ft")}return Qe}function textPart(Ee,ze){var Be;Be=Ee.labelprefix&&Ee.labelprefix.length>0?Ee.labelprefix.replace(/ = $/,""):Ee._hovertitle,er.push(Be+": "+ze.toFixed(3)+Ee.labelsuffix)}}},e92d:function(Ee,ze,Be){"use strict";Be.r(ze);var Ue=Be("bc17"),We=Be("6f04");function targetDepth(Ee){return Ee.target.depth}function left(Ee){return Ee.depth}function right(Ee,ze){return ze-1-Ee.height}function justify(Ee,ze){return Ee.sourceLinks.length?Ee.depth:ze-1}function center(Ee){return Ee.targetLinks.length?Ee.depth:Ee.sourceLinks.length?Object(Ue.d)(Ee.sourceLinks,targetDepth)-1:0}function constant(Ee){return function(){return Ee}}function ascendingSourceBreadth(Ee,ze){return ascendingBreadth(Ee.source,ze.source)||Ee.index-ze.index}function ascendingTargetBreadth(Ee,ze){return ascendingBreadth(Ee.target,ze.target)||Ee.index-ze.index}function ascendingBreadth(Ee,ze){return Ee.y0-ze.y0}function value(Ee){return Ee.value}function nodeCenter(Ee){return(Ee.y0+Ee.y1)/2}function weightedSource(Ee){return nodeCenter(Ee.source)*Ee.value}function weightedTarget(Ee){return nodeCenter(Ee.target)*Ee.value}function defaultId(Ee){return Ee.index}function defaultNodes(Ee){return Ee.nodes}function defaultLinks(Ee){return Ee.links}function find(Ee,ze){var Be=Ee.get(ze);if(!Be)throw new Error("missing: "+ze);return Be}var src_sankey=function(){var Ee=0,ze=0,Be=1,$e=1,Qe=24,rt=8,it=defaultId,at=justify,ct=defaultNodes,ft=defaultLinks,xt=32;function sankey(){var Ee={nodes:ct.apply(null,arguments),links:ft.apply(null,arguments)};return computeNodeLinks(Ee),computeNodeValues(Ee),computeNodeDepths(Ee),computeNodeBreadths(Ee),computeLinkBreadths(Ee),Ee}function computeNodeLinks(Ee){Ee.nodes.forEach((function(Ee,ze){Ee.index=ze,Ee.sourceLinks=[],Ee.targetLinks=[]}));var ze=Object(We.a)(Ee.nodes,it);Ee.links.forEach((function(Ee,Be){Ee.index=Be;var Ue=Ee.source,We=Ee.target;"object"!=typeof Ue&&(Ue=Ee.source=find(ze,Ue)),"object"!=typeof We&&(We=Ee.target=find(ze,We)),Ue.sourceLinks.push(Ee),We.targetLinks.push(Ee)}))}function computeNodeValues(Ee){Ee.nodes.forEach((function(Ee){Ee.value=Math.max(Object(Ue.e)(Ee.sourceLinks,value),Object(Ue.e)(Ee.targetLinks,value))}))}function computeNodeDepths(ze){var Ue,We,$e;for(Ue=ze.nodes,We=[],$e=0;Ue.length;++$e,Ue=We,We=[])Ue.forEach((function(Ee){Ee.depth=$e,Ee.sourceLinks.forEach((function(Ee){We.indexOf(Ee.target)<0&&We.push(Ee.target)}))}));for(Ue=ze.nodes,We=[],$e=0;Ue.length;++$e,Ue=We,We=[])Ue.forEach((function(Ee){Ee.height=$e,Ee.targetLinks.forEach((function(Ee){We.indexOf(Ee.source)<0&&We.push(Ee.source)}))}));var rt=(Be-Ee-Qe)/($e-1);ze.nodes.forEach((function(ze){ze.x1=(ze.x0=Ee+Math.max(0,Math.min($e-1,Math.floor(at.call(null,ze,$e))))*rt)+Qe}))}function computeNodeBreadths(Ee){var Be=Object(We.b)().key((function(Ee){return Ee.x0})).sortKeys(Ue.a).entries(Ee.nodes).map((function(Ee){return Ee.values}));!function initializeNodeBreadth(){var We=Object(Ue.b)(Be,(function(Ee){return Ee.length})),Qe=2/3*($e-ze)/(We-1);rt>Qe&&(rt=Qe);var it=Object(Ue.d)(Be,(function(Ee){return($e-ze-(Ee.length-1)*rt)/Object(Ue.e)(Ee,value)}));Be.forEach((function(Ee){Ee.forEach((function(Ee,ze){Ee.y1=(Ee.y0=ze)+Ee.value*it}))})),Ee.links.forEach((function(Ee){Ee.width=Ee.value*it}))}(),resolveCollisions();for(var Qe=1,it=xt;it>0;--it)relaxRightToLeft(Qe*=.99),resolveCollisions(),relaxLeftToRight(Qe),resolveCollisions();function relaxLeftToRight(Ee){Be.forEach((function(ze){ze.forEach((function(ze){if(ze.targetLinks.length){var Be=(Object(Ue.e)(ze.targetLinks,weightedSource)/Object(Ue.e)(ze.targetLinks,value)-nodeCenter(ze))*Ee;ze.y0+=Be,ze.y1+=Be}}))}))}function relaxRightToLeft(Ee){Be.slice().reverse().forEach((function(ze){ze.forEach((function(ze){if(ze.sourceLinks.length){var Be=(Object(Ue.e)(ze.sourceLinks,weightedTarget)/Object(Ue.e)(ze.sourceLinks,value)-nodeCenter(ze))*Ee;ze.y0+=Be,ze.y1+=Be}}))}))}function resolveCollisions(){Be.forEach((function(Ee){var Be,Ue,We,Qe=ze,it=Ee.length;for(Ee.sort(ascendingBreadth),We=0;We0&&(Be.y0+=Ue,Be.y1+=Ue),Qe=Be.y1+rt;if((Ue=Qe-rt-$e)>0)for(Qe=Be.y0-=Ue,Be.y1-=Ue,We=it-2;We>=0;--We)(Ue=(Be=Ee[We]).y1+rt-Qe)>0&&(Be.y0-=Ue,Be.y1-=Ue),Qe=Be.y0}))}}function computeLinkBreadths(Ee){Ee.nodes.forEach((function(Ee){Ee.sourceLinks.sort(ascendingTargetBreadth),Ee.targetLinks.sort(ascendingSourceBreadth)})),Ee.nodes.forEach((function(Ee){var ze=Ee.y0,Be=ze;Ee.sourceLinks.forEach((function(Ee){Ee.y0=ze+Ee.width/2,ze+=Ee.width})),Ee.targetLinks.forEach((function(Ee){Ee.y1=Be+Ee.width/2,Be+=Ee.width}))}))}return sankey.update=function(Ee){return computeLinkBreadths(Ee),Ee},sankey.nodeId=function(Ee){return arguments.length?(it="function"==typeof Ee?Ee:constant(Ee),sankey):it},sankey.nodeAlign=function(Ee){return arguments.length?(at="function"==typeof Ee?Ee:constant(Ee),sankey):at},sankey.nodeWidth=function(Ee){return arguments.length?(Qe=+Ee,sankey):Qe},sankey.nodePadding=function(Ee){return arguments.length?(rt=+Ee,sankey):rt},sankey.nodes=function(Ee){return arguments.length?(ct="function"==typeof Ee?Ee:constant(Ee),sankey):ct},sankey.links=function(Ee){return arguments.length?(ft="function"==typeof Ee?Ee:constant(Ee),sankey):ft},sankey.size=function(Ue){return arguments.length?(Ee=ze=0,Be=+Ue[0],$e=+Ue[1],sankey):[Be-Ee,$e-ze]},sankey.extent=function(Ue){return arguments.length?(Ee=+Ue[0][0],Be=+Ue[1][0],ze=+Ue[0][1],$e=+Ue[1][1],sankey):[[Ee,ze],[Be,$e]]},sankey.iterations=function(Ee){return arguments.length?(xt=+Ee,sankey):xt},sankey},$e=Be("1a88");function horizontalSource(Ee){return[Ee.source.x1,Ee.y0]}function horizontalTarget(Ee){return[Ee.target.x0,Ee.y1]}var sankeyLinkHorizontal=function(){return Object($e.a)().source(horizontalSource).target(horizontalTarget)};Be.d(ze,"sankey",(function(){return src_sankey})),Be.d(ze,"sankeyCenter",(function(){return center})),Be.d(ze,"sankeyLeft",(function(){return left})),Be.d(ze,"sankeyRight",(function(){return right})),Be.d(ze,"sankeyJustify",(function(){return justify})),Be.d(ze,"sankeyLinkHorizontal",(function(){return sankeyLinkHorizontal}))},e98f:function(Ee,ze){Ee.exports=function(Ee){"string"==typeof Ee&&(Ee=[Ee]);for(var ze=[].slice.call(arguments,1),Be=[],Ue=0;Ue13)&&32!==ze&&133!==ze&&160!==ze&&5760!==ze&&6158!==ze&&(ze<8192||ze>8205)&&8232!==ze&&8233!==ze&&8239!==ze&&8287!==ze&&8288!==ze&&12288!==ze&&65279!==ze)return!1;return!0}},e9bd:function(Ee,ze,Be){"use strict";var Ue=Object.prototype.toString,We=Ue.call(function(){return arguments}());Ee.exports=function(Ee){return Ue.call(Ee)===We}},e9d4:function(Ee,ze,Be){"use strict";var Ue=Be("f4b3").setPositionOffset,We=["v","h"];Ee.exports=function crossTraceCalc(Ee,ze){for(var Be=Ee.calcdata,$e=ze.xaxis,Qe=ze.yaxis,rt=0;rt>1,v=E[2*m+1];","if(v===b){return m}","if(b0&&it.push(","),it.push("[");for(var Ue=0;Ue0&&it.push(","),it.push("B(C,E,c[",We[0],"],c[",We[1],"])")}it.push("]")}it.push(");")}}for($e=Ee+1;$e>1;--$e){$e1){rt[0]in $e||($e[rt[0]]=[]),$e=$e[rt[0]];for(var it=1;it=ct&&(kt.min=0,Lt.min=0,Ut.min=0,Ee.aaxis&&delete Ee.aaxis.min,Ee.baxis&&delete Ee.baxis.min,Ee.caxis&&delete Ee.caxis.min)}function handleAxisDefaults(Ee,ze,Be,Ue){var We=ft[ze._name];function coerce(Be,Ue){return $e.coerce(Ee,ze,We,Be,Ue)}coerce("uirevision",Ue.uirevision),ze.type="linear";var Qe=coerce("color"),xt=Qe!==We.color.dflt?Qe:Be.font.color,kt=ze._name.charAt(0).toUpperCase(),Lt="Component "+kt,Ut=coerce("title.text",Lt);ze._hovertitle=Ut===Lt?Ut:kt,$e.coerceFont(coerce,"title.font",{family:Be.font.family,size:Math.round(1.2*Be.font.size),color:xt}),coerce("min"),at(Ee,ze,coerce,"linear"),rt(Ee,ze,coerce,"linear",{}),it(Ee,ze,coerce,{outerTicks:!0}),coerce("showticklabels")&&($e.coerceFont(coerce,"tickfont",{family:Be.font.family,size:Be.font.size,color:xt}),coerce("tickangle"),coerce("tickformat")),ct(Ee,ze,coerce,{dfltColor:Qe,bgColor:Be.bgColor,blend:60,showLine:!0,showGrid:!0,noZeroLine:!0,attributes:We}),coerce("hoverformat"),coerce("layer")}Ee.exports=function supplyLayoutDefaults(Ee,ze,Be){Qe(Ee,ze,Be,{type:"ternary",attributes:ft,handleDefaults:handleTernaryDefaults,font:ze.font,paper_bgcolor:ze.paper_bgcolor})}},ec16:function(Ee,ze,Be){"use strict";var Ue=Be("6e58"),We=Be("19b2"),$e=Be("fc26"),Qe=Be("83d1"),rt=Be("a60f");Ee.exports=function plot(Ee,ze,Be){var it=ze.xaxis,at=ze.yaxis,ct=ze.radialAxis,ft=ze.angularAxis,xt=function makePathFn(Ee){var ze=Ee.cxx,Be=Ee.cyy;if(Ee.vangles)return function(Ue,We,Qe,it){var at,ct;$e.angleDelta(Qe,it)>0?(at=Qe,ct=it):(at=it,ct=Qe);var ft=[rt.findEnclosingVertexAngles(at,Ee.vangles)[0],(at+ct)/2,rt.findEnclosingVertexAngles(ct,Ee.vangles)[1]];return rt.pathPolygonAnnulus(Ue,We,at,ct,ft,ze,Be)};return function(Ee,Ue,We,Qe){return $e.pathAnnulus(Ee,Ue,We,Qe,ze,Be)}}(ze),kt=ze.layers.frontplot.select("g.barlayer");$e.makeTraceGroups(kt,Be,"trace bars").each((function(){var Be=Ue.select(this),rt=$e.ensureSingle(Be,"g","points").selectAll("g.point").data($e.identity);rt.enter().append("g").style("vector-effect","non-scaling-stroke").style("stroke-miterlimit",2).classed("point",!0),rt.exit().remove(),rt.each((function(Ee){var ze,Be=Ue.select(this),Qe=Ee.rp0=ct.c2p(Ee.s0),rt=Ee.rp1=ct.c2p(Ee.s1),kt=Ee.thetag0=ft.c2g(Ee.p0),Lt=Ee.thetag1=ft.c2g(Ee.p1);if(We(Qe)&&We(rt)&&We(kt)&&We(Lt)&&Qe!==rt&&kt!==Lt){var Ut=ct.c2g(Ee.s1),er=(kt+Lt)/2;Ee.ct=[it.c2p(Ut*Math.cos(er)),at.c2p(Ut*Math.sin(er))],ze=xt(Qe,rt,kt,Lt)}else ze="M0,0Z";$e.ensureSingle(Be,"path").attr("d",ze)})),Qe.setClipUrl(Be,ze._hasClipOnAxisFalse?ze.clipIds.forTraces:null,Ee)}))}},ec20:function(Ee,ze,Be){"use strict";ze.init2dArray=function(Ee,ze){for(var Be=new Array(Ee),Ue=0;UeMath.max(Be,Ue)?We[2]=1:Be>Math.max(ze,Ue)?We[0]=1:We[1]=1;for(var $e=0,Qe=0,it=0;it<3;++it)$e+=Ee[it]*Ee[it],Qe+=We[it]*Ee[it];for(it=0;it<3;++it)We[it]-=Qe/$e*Ee[it];return rt(We,We),We}function TurntableController(Ee,ze,Be,We,$e,Qe,rt,it){this.center=Ue(Be),this.up=Ue(We),this.right=Ue($e),this.radius=Ue([Qe]),this.angle=Ue([rt,it]),this.angle.bounds=[[-1/0,-Math.PI/2],[1/0,Math.PI/2]],this.setDistanceLimits(Ee,ze),this.computedCenter=this.center.curve(0),this.computedUp=this.up.curve(0),this.computedRight=this.right.curve(0),this.computedRadius=this.radius.curve(0),this.computedAngle=this.angle.curve(0),this.computedToward=[0,0,0],this.computedEye=[0,0,0],this.computedMatrix=new Array(16);for(var at=0;at<16;++at)this.computedMatrix[at]=.5;this.recalcMatrix(0)}var at=TurntableController.prototype;at.setDistanceLimits=function(Ee,ze){Ee=Ee>0?Math.log(Ee):-1/0,ze=ze>0?Math.log(ze):1/0,ze=Math.max(ze,Ee),this.radius.bounds[0][0]=Ee,this.radius.bounds[1][0]=ze},at.getDistanceLimits=function(Ee){var ze=this.radius.bounds[0];return Ee?(Ee[0]=Math.exp(ze[0][0]),Ee[1]=Math.exp(ze[1][0]),Ee):[Math.exp(ze[0][0]),Math.exp(ze[1][0])]},at.recalcMatrix=function(Ee){this.center.curve(Ee),this.up.curve(Ee),this.right.curve(Ee),this.radius.curve(Ee),this.angle.curve(Ee);for(var ze=this.computedUp,Be=this.computedRight,Ue=0,We=0,$e=0;$e<3;++$e)We+=ze[$e]*Be[$e],Ue+=ze[$e]*ze[$e];var it=Math.sqrt(Ue),at=0;for($e=0;$e<3;++$e)Be[$e]-=ze[$e]*We/Ue,at+=Be[$e]*Be[$e],ze[$e]/=it;var ct=Math.sqrt(at);for($e=0;$e<3;++$e)Be[$e]/=ct;var ft=this.computedToward;Qe(ft,ze,Be),rt(ft,ft);var xt=Math.exp(this.computedRadius[0]),kt=this.computedAngle[0],Lt=this.computedAngle[1],Ut=Math.cos(kt),er=Math.sin(kt),tr=Math.cos(Lt),rr=Math.sin(Lt),ar=this.computedCenter,Lr=Ut*tr,Qr=er*tr,on=rr,sn=-Ut*rr,cn=-er*rr,un=tr,hn=this.computedEye,dn=this.computedMatrix;for($e=0;$e<3;++$e){var vn=Lr*Be[$e]+Qr*ft[$e]+on*ze[$e];dn[4*$e+1]=sn*Be[$e]+cn*ft[$e]+un*ze[$e],dn[4*$e+2]=vn,dn[4*$e+3]=0}var yn=dn[1],_n=dn[5],Mn=dn[9],Cn=dn[2],En=dn[6],Pn=dn[10],In=_n*Pn-Mn*En,Bn=Mn*Cn-yn*Pn,Hn=yn*En-_n*Cn,Kn=len3(In,Bn,Hn);In/=Kn,Bn/=Kn,Hn/=Kn,dn[0]=In,dn[4]=Bn,dn[8]=Hn;for($e=0;$e<3;++$e)hn[$e]=ar[$e]+dn[2+4*$e]*xt;for($e=0;$e<3;++$e){at=0;for(var Jn=0;Jn<3;++Jn)at+=dn[$e+4*Jn]*hn[Jn];dn[12+$e]=-at}dn[15]=1},at.getMatrix=function(Ee,ze){this.recalcMatrix(Ee);var Be=this.computedMatrix;if(ze){for(var Ue=0;Ue<16;++Ue)ze[Ue]=Be[Ue];return ze}return Be};var ct=[0,0,0];at.rotate=function(Ee,ze,Be,Ue){if(this.angle.move(Ee,ze,Be),Ue){this.recalcMatrix(Ee);var We=this.computedMatrix;ct[0]=We[2],ct[1]=We[6],ct[2]=We[10];for(var Qe=this.computedUp,rt=this.computedRight,it=this.computedToward,at=0;at<3;++at)We[4*at]=Qe[at],We[4*at+1]=rt[at],We[4*at+2]=it[at];$e(We,We,Ue,ct);for(at=0;at<3;++at)Qe[at]=We[4*at],rt[at]=We[4*at+1];this.up.set(Ee,Qe[0],Qe[1],Qe[2]),this.right.set(Ee,rt[0],rt[1],rt[2])}},at.pan=function(Ee,ze,Be,Ue){ze=ze||0,Be=Be||0,Ue=Ue||0,this.recalcMatrix(Ee);var We=this.computedMatrix,$e=(Math.exp(this.computedRadius[0]),We[1]),Qe=We[5],rt=We[9],it=len3($e,Qe,rt);$e/=it,Qe/=it,rt/=it;var at=We[0],ct=We[4],ft=We[8],xt=at*$e+ct*Qe+ft*rt,kt=len3(at-=$e*xt,ct-=Qe*xt,ft-=rt*xt),Lt=(at/=kt)*ze+$e*Be,Ut=(ct/=kt)*ze+Qe*Be,er=(ft/=kt)*ze+rt*Be;this.center.move(Ee,Lt,Ut,er);var tr=Math.exp(this.computedRadius[0]);tr=Math.max(1e-4,tr+Ue),this.radius.set(Ee,Math.log(tr))},at.translate=function(Ee,ze,Be,Ue){this.center.move(Ee,ze||0,Be||0,Ue||0)},at.setMatrix=function(Ee,ze,Be,Ue){var $e=1;"number"==typeof Be&&($e=0|Be),($e<0||$e>3)&&($e=1);var Qe=($e+2)%3;ze||(this.recalcMatrix(Ee),ze=this.computedMatrix);var rt=ze[$e],it=ze[$e+4],at=ze[$e+8];if(Ue){var ct=Math.abs(rt),ft=Math.abs(it),xt=Math.abs(at),kt=Math.max(ct,ft,xt);ct===kt?(rt=rt<0?-1:1,it=at=0):xt===kt?(at=at<0?-1:1,rt=it=0):(it=it<0?-1:1,rt=at=0)}else{var Lt=len3(rt,it,at);rt/=Lt,it/=Lt,at/=Lt}var Ut,er,tr=ze[Qe],rr=ze[Qe+4],ar=ze[Qe+8],Lr=tr*rt+rr*it+ar*at,Qr=len3(tr-=rt*Lr,rr-=it*Lr,ar-=at*Lr),on=it*(ar/=Qr)-at*(rr/=Qr),sn=at*(tr/=Qr)-rt*ar,cn=rt*rr-it*tr,un=len3(on,sn,cn);if(on/=un,sn/=un,cn/=un,this.center.jump(Ee,ri,ni,ii),this.radius.idle(Ee),this.up.jump(Ee,rt,it,at),this.right.jump(Ee,tr,rr,ar),2===$e){var hn=ze[1],dn=ze[5],vn=ze[9],yn=hn*tr+dn*rr+vn*ar,_n=hn*on+dn*sn+vn*cn;Ut=Pn<0?-Math.PI/2:Math.PI/2,er=Math.atan2(_n,yn)}else{var Mn=ze[2],Cn=ze[6],En=ze[10],Pn=Mn*rt+Cn*it+En*at,In=Mn*tr+Cn*rr+En*ar,Bn=Mn*on+Cn*sn+En*cn;Ut=Math.asin(clamp1(Pn)),er=Math.atan2(Bn,In)}this.angle.jump(Ee,er,Ut),this.recalcMatrix(Ee);var Hn=ze[2],Kn=ze[6],Jn=ze[10],ei=this.computedMatrix;We(ei,ze);var ti=ei[15],ri=ei[12]/ti,ni=ei[13]/ti,ii=ei[14]/ti,ai=Math.exp(this.computedRadius[0]);this.center.jump(Ee,ri-Hn*ai,ni-Kn*ai,ii-Jn*ai)},at.lastT=function(){return Math.max(this.center.lastT(),this.up.lastT(),this.right.lastT(),this.radius.lastT(),this.angle.lastT())},at.idle=function(Ee){this.center.idle(Ee),this.up.idle(Ee),this.right.idle(Ee),this.radius.idle(Ee),this.angle.idle(Ee)},at.flush=function(Ee){this.center.flush(Ee),this.up.flush(Ee),this.right.flush(Ee),this.radius.flush(Ee),this.angle.flush(Ee)},at.setDistance=function(Ee,ze){ze>0&&this.radius.set(Ee,Math.log(ze))},at.lookAt=function(Ee,ze,Be,Ue){this.recalcMatrix(Ee),ze=ze||this.computedEye,Be=Be||this.computedCenter;var We=(Ue=Ue||this.computedUp)[0],$e=Ue[1],Qe=Ue[2],rt=len3(We,$e,Qe);if(!(rt<1e-6)){We/=rt,$e/=rt,Qe/=rt;var it=ze[0]-Be[0],at=ze[1]-Be[1],ct=ze[2]-Be[2],ft=len3(it,at,ct);if(!(ft<1e-6)){it/=ft,at/=ft,ct/=ft;var xt=this.computedRight,kt=xt[0],Lt=xt[1],Ut=xt[2],er=We*kt+$e*Lt+Qe*Ut,tr=len3(kt-=er*We,Lt-=er*$e,Ut-=er*Qe);if(!(tr<.01&&(tr=len3(kt=$e*ct-Qe*at,Lt=Qe*it-We*ct,Ut=We*at-$e*it))<1e-6)){kt/=tr,Lt/=tr,Ut/=tr,this.up.set(Ee,We,$e,Qe),this.right.set(Ee,kt,Lt,Ut),this.center.set(Ee,Be[0],Be[1],Be[2]),this.radius.set(Ee,Math.log(ft));var rr=$e*Ut-Qe*Lt,ar=Qe*kt-We*Ut,Lr=We*Lt-$e*kt,Qr=len3(rr,ar,Lr),on=We*it+$e*at+Qe*ct,sn=kt*it+Lt*at+Ut*ct,cn=(rr/=Qr)*it+(ar/=Qr)*at+(Lr/=Qr)*ct,un=Math.asin(clamp1(on)),hn=Math.atan2(cn,sn),dn=this.angle._state,vn=dn[dn.length-1],yn=dn[dn.length-2];vn%=2*Math.PI;var _n=Math.abs(vn+2*Math.PI-hn),Mn=Math.abs(vn-hn),Cn=Math.abs(vn-2*Math.PI-hn);_n0))return 0;We=ze.width}return xt?Ue:Math.min(We,Be)};function styleBarLike(Ee,ze,Be){var $e=Ee[0].trace,Qe=$e.marker||{},it=Qe.line||{},at=Be?$e.visible&&$e.type===Be:We.traceIs($e,"bar"),ct=Ue.select(ze).select("g.legendpoints").selectAll("path.legend"+Be).data(at?[Ee]:[]);ct.enter().append("path").classed("legend"+Be,!0).attr("d","M6,6H-6V-6H6Z").attr("transform","translate(20,0)"),ct.exit().remove(),ct.each((function(Ee){var ze=Ue.select(this),Be=Ee[0],We=boundLineWidth(Be.mlw,Qe.line,5,2);ze.style("stroke-width",We+"px").call(rt.fill,Be.mc||Qe.color),We&&rt.stroke(ze,Be.mlc||it.color)}))}function stylePieLike(Ee,ze,Be){var Qe=Ee[0],rt=Qe.trace,it=Be?rt.visible&&rt.type===Be:We.traceIs(rt,Be),at=Ue.select(ze).select("g.legendpoints").selectAll("path.legend"+Be).data(it?[Ee]:[]);if(at.enter().append("path").classed("legend"+Be,!0).attr("d","M6,6H-6V-6H6Z").attr("transform","translate(20,0)"),at.exit().remove(),at.size()){var xt=(rt.marker||{}).line,kt=boundLineWidth(ft(xt.width,Qe.pts),xt,5,2),Lt=$e.minExtend(rt,{marker:{line:{width:kt}}});Lt.marker.line.color=xt.color;var Ut=$e.minExtend(Qe,{trace:Lt});ct(at,Ut,Lt)}}Ee.each((function(Ee){var ze=Ue.select(this),We=$e.ensureSingle(ze,"g","layers");We.style("opacity",Ee[0].trace.opacity);var Qe=Be.valign,rt=Ee[0].lineHeight,it=Ee[0].height;if("middle"!==Qe&&rt&&it){var at={top:1,bottom:-1}[Qe]*(.5*(rt-it+3));We.attr("transform","translate(0,"+at+")")}else We.attr("transform",null);We.selectAll("g.legendfill").data([Ee]).enter().append("g").classed("legendfill",!0),We.selectAll("g.legendlines").data([Ee]).enter().append("g").classed("legendlines",!0);var ct=We.selectAll("g.legendsymbols").data([Ee]);ct.enter().append("g").classed("legendsymbols",!0),ct.selectAll("g.legendpoints").data([Ee]).enter().append("g").classed("legendpoints",!0)})).each((function styleSpatial(Ee){var Be,We=Ee[0].trace,at=[];if(We.visible)switch(We.type){case"histogram2d":case"heatmap":at=[["M-15,-2V4H15V-2Z"]],Be=!0;break;case"choropleth":case"choroplethmapbox":at=[["M-6,-6V6H6V-6Z"]],Be=!0;break;case"densitymapbox":at=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],Be="radial";break;case"cone":at=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],Be=!1;break;case"streamtube":at=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],Be=!1;break;case"surface":at=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],Be=!0;break;case"mesh3d":at=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],Be=!1;break;case"volume":at=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],Be=!0;break;case"isosurface":at=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],Be=!1}var ct=Ue.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(at);ct.enter().append("path").classed("legend3dandfriends",!0).attr("transform","translate(20,0)").style("stroke-miterlimit",1),ct.exit().remove(),ct.each((function(Ee,at){var ct,ft=Ue.select(this),xt=it(We),kt=xt.colorscale,Lt=xt.reversescale;if(kt){if(!Be){var Ut=kt.length;ct=0===at?kt[Lt?Ut-1:0][1]:1===at?kt[Lt?0:Ut-1][1]:kt[Math.floor((Ut-1)/2)][1]}}else{var er=We.vertexcolor||We.facecolor||We.color;ct=$e.isArrayOrTypedArray(er)?er[at]||er[0]:er}ft.attr("d",Ee[0]),ct?ft.call(rt.fill,ct):ft.call((function(Ee){if(Ee.size()){var Ue="legendfill-"+We.uid;Qe.gradient(Ee,ze,Ue,getGradientDirection(Lt,"radial"===Be),kt,"fill")}}))}))})).each((function styleWaterfalls(Ee){var ze=Ee[0].trace,Be=[];ze.visible&&"waterfall"===ze.type&&(Be=Ee[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var We=Ue.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(Be);We.enter().append("path").classed("legendwaterfall",!0).attr("transform","translate(20,0)").style("stroke-miterlimit",1),We.exit().remove(),We.each((function(Ee){var Be=Ue.select(this),We=ze[Ee[0]].marker,$e=boundLineWidth(void 0,We.line,5,2);Be.attr("d",Ee[1]).style("stroke-width",$e+"px").call(rt.fill,We.color),$e&&Be.call(rt.stroke,We.line.color)}))})).each((function styleFunnels(Ee){styleBarLike(Ee,this,"funnel")})).each((function styleBars(Ee){styleBarLike(Ee,this)})).each((function styleBoxes(Ee){var Be=Ee[0].trace,it=Ue.select(this).select("g.legendpoints").selectAll("path.legendbox").data(Be.visible&&We.traceIs(Be,"box-violin")?[Ee]:[]);it.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform","translate(20,0)"),it.exit().remove(),it.each((function(){var Ee=Ue.select(this);if("all"!==Be.boxpoints&&"all"!==Be.points||0!==rt.opacity(Be.fillcolor)||0!==rt.opacity((Be.line||{}).color)){var We=boundLineWidth(void 0,Be.line,5,2);Ee.style("stroke-width",We+"px").call(rt.fill,Be.fillcolor),We&&rt.stroke(Ee,Be.line.color)}else{var at=$e.minExtend(Be,{marker:{size:xt?12:$e.constrain(Be.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});it.call(Qe.pointStyle,at,ze)}}))})).each((function styleFunnelareas(Ee){stylePieLike(Ee,this,"funnelarea")})).each((function stylePies(Ee){stylePieLike(Ee,this,"pie")})).each((function styleLines(Ee){var Be,We,rt=Ee[0],ct=rt.trace,ft=ct.visible&&ct.fill&&"none"!==ct.fill,xt=at.hasLines(ct),kt=ct.contours,Lt=!1,Ut=!1,er=it(ct),tr=er.colorscale,rr=er.reversescale;if(kt){var ar=kt.coloring;"lines"===ar?Lt=!0:xt="none"===ar||"heatmap"===ar||kt.showlines,"constraint"===kt.type?ft="="!==kt._operation:"fill"!==ar&&"heatmap"!==ar||(Ut=!0)}var Lr=at.hasMarkers(ct)||at.hasText(ct),Qr=ft||Ut,on=xt||Lt,sn=Lr||!Qr?"M5,0":on?"M5,-2":"M5,-3",cn=Ue.select(this),un=cn.select(".legendfill").selectAll("path").data(ft||Ut?[Ee]:[]);if(un.enter().append("path").classed("js-fill",!0),un.exit().remove(),un.attr("d",sn+"h30v6h-30z").call(ft?Qe.fillGroupStyle:function(Ee){if(Ee.size()){var Be="legendfill-"+ct.uid;Qe.gradient(Ee,ze,Be,getGradientDirection(rr),tr,"fill")}}),xt||Lt){var hn=boundLineWidth(void 0,ct.line,10,5);We=$e.minExtend(ct,{line:{width:hn}}),Be=[$e.minExtend(rt,{trace:We})]}var dn=cn.select(".legendlines").selectAll("path").data(xt||Lt?[Be]:[]);dn.enter().append("path").classed("js-line",!0),dn.exit().remove(),dn.attr("d",sn+(Lt?"l30,0.0001":"h30")).call(xt?Qe.lineGroupStyle:function(Ee){if(Ee.size()){var Be="legendline-"+ct.uid;Qe.lineGroupStyle(Ee),Qe.gradient(Ee,ze,Be,getGradientDirection(rr),tr,"stroke")}})})).each((function stylePoints(Ee){var Be,We,rt=Ee[0],it=rt.trace,ct=at.hasMarkers(it),ft=at.hasText(it),kt=at.hasLines(it);function boundVal(Ee,ze,Be,Ue){var We=$e.nestedProperty(it,Ee).get(),Qe=$e.isArrayOrTypedArray(We)&&ze?ze(We):We;if(xt&&Qe&&void 0!==Ue&&(Qe=Ue),Be){if(QeBe[1])return Be[1]}return Qe}function pickFirst(Ee){return Ee[0]}if(ct||ft||kt){var Lt={},Ut={};if(ct){Lt.mc=boundVal("marker.color",pickFirst),Lt.mx=boundVal("marker.symbol",pickFirst),Lt.mo=boundVal("marker.opacity",$e.mean,[.2,1]),Lt.mlc=boundVal("marker.line.color",pickFirst),Lt.mlw=boundVal("marker.line.width",$e.mean,[0,5],2),Ut.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var er=boundVal("marker.size",$e.mean,[2,16],12);Lt.ms=er,Ut.marker.size=er}kt&&(Ut.line={width:boundVal("line.width",pickFirst,[0,10],5)}),ft&&(Lt.tx="Aa",Lt.tp=boundVal("textposition",pickFirst),Lt.ts=10,Lt.tc=boundVal("textfont.color",pickFirst),Lt.tf=boundVal("textfont.family",pickFirst)),Be=[$e.minExtend(rt,Lt)],(We=$e.minExtend(it,Ut)).selectedpoints=null,We.texttemplate=null}var tr=Ue.select(this).select("g.legendpoints"),rr=tr.selectAll("path.scatterpts").data(ct?Be:[]);rr.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform","translate(20,0)"),rr.exit().remove(),rr.call(Qe.pointStyle,We,ze),ct&&(Be[0].mrc=3);var ar=tr.selectAll("g.pointtext").data(ft?Be:[]);ar.enter().append("g").classed("pointtext",!0).append("text").attr("transform","translate(20,0)"),ar.exit().remove(),ar.selectAll("text").call(Qe.textPointStyle,We,ze)})).each((function styleCandles(Ee){var ze=Ee[0].trace,Be=Ue.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(ze.visible&&"candlestick"===ze.type?[Ee,Ee]:[]);Be.enter().append("path").classed("legendcandle",!0).attr("d",(function(Ee,ze){return ze?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"})).attr("transform","translate(20,0)").style("stroke-miterlimit",1),Be.exit().remove(),Be.each((function(Ee,Be){var We=Ue.select(this),$e=ze[Be?"increasing":"decreasing"],Qe=boundLineWidth(void 0,$e.line,5,2);We.style("stroke-width",Qe+"px").call(rt.fill,$e.fillcolor),Qe&&rt.stroke(We,$e.line.color)}))})).each((function styleOHLC(Ee){var ze=Ee[0].trace,Be=Ue.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(ze.visible&&"ohlc"===ze.type?[Ee,Ee]:[]);Be.enter().append("path").classed("legendohlc",!0).attr("d",(function(Ee,ze){return ze?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"})).attr("transform","translate(20,0)").style("stroke-miterlimit",1),Be.exit().remove(),Be.each((function(Ee,Be){var We=Ue.select(this),$e=ze[Be?"increasing":"decreasing"],it=boundLineWidth(void 0,$e.line,5,2);We.style("fill","none").call(Qe.dashLine,$e.line.dash,it),it&&rt.stroke(We,$e.line.color)}))}))}},ee92:function(Ee,ze,Be){"use strict";var Ue=Be("7e25").EventEmitter,We=Be("371e"),$e=Be("fc26"),Qe=Be("4248"),rt=Be("d18e"),it=Be("cb04"),at=Be("4ebd");Ee.exports=function toImage(Ee,ze){var Be=new Ue,ct=rt(Ee,{format:"png"}),ft=ct.gd;ft.style.position="absolute",ft.style.left="-5000px",document.body.appendChild(ft);var xt=Qe.getRedrawFunc(ft);return We.call("plot",ft,ct.data,ct.layout,ct.config).then(xt).then((function wait(){var Ee=Qe.getDelay(ft._fullLayout);setTimeout((function(){var Ee=it(ft),Ue=document.createElement("canvas");Ue.id=$e.randstr(),(Be=at({format:ze.format,width:ft._fullLayout.width,height:ft._fullLayout.height,canvas:Ue,emitter:Be,svg:Ee})).clean=function(){ft&&document.body.removeChild(ft)}}),Ee)})).catch((function(Ee){Be.emit("error",Ee)})),Be}},eeb3:function(Ee,ze,Be){"use strict";var Ue=Be("e639");Ee.exports={moduleType:"component",name:Ue.name,layoutAttributes:Be("9c5f"),supplyLayoutDefaults:Be("7210"),draw:Be("f103")}},eec7:function(Ee,ze,Be){"use strict";var Ue=Be("0642"),We=Be("fc26").isArray1D,$e=Be("4eee"),Qe=Be("7a4a"),rt=Be("7fbb"),it=Be("8b79"),at=Be("d577"),ct=Be("1b6a"),ft=Be("25f9"),xt=Be("d064"),kt=Be("dfb0");Ee.exports=function calc(Ee,ze){var Be=Ue.getFromId(Ee,ze.xaxis),Lt=Ue.getFromId(Ee,ze.yaxis),Ut=ze.aaxis,er=ze.baxis,tr=ze.x,rr=ze.y,ar=[];tr&&We(tr)&&ar.push("x"),rr&&We(rr)&&ar.push("y"),ar.length&&xt(ze,Ut,er,"a","b",ar);var Lr=ze._a=ze._a||ze.a,Qr=ze._b=ze._b||ze.b;tr=ze._x||ze.x,rr=ze._y||ze.y;var on={};if(ze._cheater){var sn="index"===Ut.cheatertype?Lr.length:Lr,cn="index"===er.cheatertype?Qr.length:Qr;tr=$e(sn,cn,ze.cheaterslope)}ze._x=tr=ct(tr),ze._y=rr=ct(rr),ft(tr,Lr,Qr),ft(rr,Lr,Qr),kt(ze),ze.setScale();var un=Qe(tr),hn=Qe(rr),dn=.5*(un[1]-un[0]),vn=.5*(un[1]+un[0]),yn=.5*(hn[1]-hn[0]),_n=.5*(hn[1]+hn[0]);return un=[vn-1.3*dn,vn+1.3*dn],hn=[_n-1.3*yn,_n+1.3*yn],ze._extremes[Be._id]=Ue.findExtremes(Be,un,{padded:!0}),ze._extremes[Lt._id]=Ue.findExtremes(Lt,hn,{padded:!0}),rt(ze,"a","b"),rt(ze,"b","a"),it(ze,Ut),it(ze,er),on.clipsegments=at(ze._xctrl,ze._yctrl,Ut,er),on.x=tr,on.y=rr,on.a=Lr,on.b=Qr,[on]}},ef33:function(Ee,ze,Be){"use strict";Ee.exports=function makeControlPoints(Ee,ze,Be,Ue){var We=Ee[0]-ze[0],$e=Ee[1]-ze[1],Qe=Be[0]-ze[0],rt=Be[1]-ze[1],it=Math.pow(We*We+$e*$e,.25),at=Math.pow(Qe*Qe+rt*rt,.25),ct=(at*at*We-it*it*Qe)*Ue,ft=(at*at*$e-it*it*rt)*Ue,xt=at*(it+at)*3,kt=it*(it+at)*3;return[[ze[0]+(xt&&ct/xt),ze[1]+(xt&&ft/xt)],[ze[0]-(kt&&ct/kt),ze[1]-(kt&&ft/kt)]]}},ef49:function(Ee,ze){Ee.exports=function multiply(Ee,ze,Be){return Ee[0]=ze[0]*Be[0],Ee[1]=ze[1]*Be[1],Ee[2]=ze[2]*Be[2],Ee}},ef6e:function(Ee,ze,Be){"use strict";Ee.exports=function selectPoints(Ee,ze){var Be,Ue,We,$e,Qe,rt=Ee.cd,it=Ee.xaxis,at=Ee.yaxis,ct=[];if(!1===ze)for(Be=0;Be0?1:-1}},efaa:function(Ee,ze,Be){"use strict";Ee.exports=function makePath(Ee,ze,Be){if(0===Ee.length)return"";var Ue,We=[],$e=Be?3:1;for(Ue=0;Ue")}}Ee.exports={hoverPoints:function hoverPoints(Ee,ze,Be,We){var $e=Ue(Ee,ze,Be,We);if($e&&!1!==$e[0].index){var Qe=$e[0];if(void 0===Qe.index)return $e;var rt=Ee.subplot,it=Qe.cd[Qe.index],at=Qe.trace;if(rt.isPtInside(it))return Qe.xLabelVal=void 0,Qe.yLabelVal=void 0,makeHoverPointText(it,at,rt,Qe),Qe.hovertemplate=at.hovertemplate,$e}},makeHoverPointText:makeHoverPointText}},efce:function(Ee,ze,Be){"use strict";var Ue=Be("cea5"),We=Be("62d6"),$e=Be("b5bb"),Qe=["uint8","uint8_clamped","uint16","uint32","int8","int16","int32","float32"];function GLBuffer(Ee,ze,Be,Ue,We){this.gl=Ee,this.type=ze,this.handle=Be,this.length=Ue,this.usage=We}var rt=GLBuffer.prototype;function updateTypeArray(Ee,ze,Be,Ue,We,$e){var Qe=We.length*We.BYTES_PER_ELEMENT;if($e<0)return Ee.bufferData(ze,We,Ue),Qe;if(Qe+$e>Be)throw new Error("gl-buffer: If resizing buffer, must not specify offset");return Ee.bufferSubData(ze,$e,We),Be}function makeScratchTypeArray(Ee,ze){for(var Be=Ue.malloc(Ee.length,ze),We=Ee.length,$e=0;$e=0;--Ue){if(ze[Ue]!==Be)return!1;Be*=Ee[Ue]}return!0}(Ee.shape,Ee.stride))0===Ee.offset&&Ee.data.length===Ee.shape[0]?this.length=updateTypeArray(this.gl,this.type,this.length,this.usage,Ee.data,ze):this.length=updateTypeArray(this.gl,this.type,this.length,this.usage,Ee.data.subarray(Ee.offset,Ee.shape[0]),ze);else{var rt=Ue.malloc(Ee.size,Be),it=$e(rt,Ee.shape);We.assign(it,Ee),this.length=updateTypeArray(this.gl,this.type,this.length,this.usage,ze<0?rt:rt.subarray(0,Ee.size),ze),Ue.free(rt)}}else if(Array.isArray(Ee)){var at;at=this.type===this.gl.ELEMENT_ARRAY_BUFFER?makeScratchTypeArray(Ee,"uint16"):makeScratchTypeArray(Ee,"float32"),this.length=updateTypeArray(this.gl,this.type,this.length,this.usage,ze<0?at:at.subarray(0,Ee.length),ze),Ue.free(at)}else if("object"==typeof Ee&&"number"==typeof Ee.length)this.length=updateTypeArray(this.gl,this.type,this.length,this.usage,Ee,ze);else{if("number"!=typeof Ee&&void 0!==Ee)throw new Error("gl-buffer: Invalid data type");if(ze>=0)throw new Error("gl-buffer: Cannot specify offset when resizing buffer");(Ee|=0)<=0&&(Ee=1),this.gl.bufferData(this.type,0|Ee,this.usage),this.length=Ee}},Ee.exports=function createBuffer(Ee,ze,Be,Ue){if(Be=Be||Ee.ARRAY_BUFFER,Ue=Ue||Ee.DYNAMIC_DRAW,Be!==Ee.ARRAY_BUFFER&&Be!==Ee.ELEMENT_ARRAY_BUFFER)throw new Error("gl-buffer: Invalid type for webgl buffer, must be either gl.ARRAY_BUFFER or gl.ELEMENT_ARRAY_BUFFER");if(Ue!==Ee.DYNAMIC_DRAW&&Ue!==Ee.STATIC_DRAW&&Ue!==Ee.STREAM_DRAW)throw new Error("gl-buffer: Invalid usage for buffer, must be either gl.DYNAMIC_DRAW, gl.STATIC_DRAW or gl.STREAM_DRAW");var We=Ee.createBuffer(),$e=new GLBuffer(Ee,Be,We,0,Ue);return $e.update(ze),$e}},f027:function(Ee,ze,Be){"use strict";var Ue=Be("e7bd"),We=Be("d115").addOpacity,$e=Be("371e"),Qe=Be("fc26"),rt=Be("d92f"),it=Be("5008"),at=Be("d18b"),ct=Be("1a40"),ft=Be("0b77");Ee.exports=function handleAxisDefaults(Ee,ze,Be){var xt=Be.letter,kt=Be.font||{},Lt=Ue[xt+"axis"];function coerce(Be,Ue){return Qe.coerce(Ee,ze,Lt,Be,Ue)}function coerce2(Be,Ue){return Qe.coerce2(Ee,ze,Lt,Be,Ue)}Be.name&&(ze._name=Be.name,ze._id=Be.name);var Ut=coerce("type");("-"===Ut&&(Be.data&&function setAutoType(Ee,ze){if("-"!==Ee.type)return;var Be=Ee._id.charAt(0),Ue=Ee[Be+"calendar"];Ee.type=ft(ze,Ue)}(ze,Be.data),"-"===ze.type?ze.type="linear":Ut=Ee.type=ze.type),coerce("smoothing"),coerce("cheatertype"),coerce("showticklabels"),coerce("labelprefix",xt+" = "),coerce("labelsuffix"),coerce("showtickprefix"),coerce("showticksuffix"),coerce("separatethousands"),coerce("tickformat"),coerce("exponentformat"),coerce("showexponent"),coerce("categoryorder"),coerce("tickmode"),coerce("tickvals"),coerce("ticktext"),coerce("tick0"),coerce("dtick"),"array"===ze.tickmode&&(coerce("arraytick0"),coerce("arraydtick")),coerce("labelpadding"),ze._hovertitle=xt,"date"===Ut)&&$e.getComponentMethod("calendars","handleDefaults")(Ee,ze,"calendar",Be.calendar);ct(ze,Be.fullLayout),ze.c2p=Qe.identity;var er=coerce("color",Be.dfltColor),tr=er===Ee.color?er:kt.color;coerce("title.text")&&(Qe.coerceFont(coerce,"title.font",{family:kt.family,size:Math.round(1.2*kt.size),color:tr}),coerce("title.offset")),coerce("tickangle"),coerce("autorange",!ze.isValidRange(Ee.range))&&coerce("rangemode"),coerce("range"),ze.cleanRange(),coerce("fixedrange"),rt(Ee,ze,coerce,Ut),it(Ee,ze,coerce,Ut,Be),at(Ee,ze,coerce,{data:Be.data,dataAttr:xt});var rr=coerce2("gridcolor",We(er,.3)),ar=coerce2("gridwidth"),Lr=coerce("showgrid");Lr||(delete ze.gridcolor,delete ze.gridwidth);var Qr=coerce2("startlinecolor",er),on=coerce2("startlinewidth",ar);coerce("startline",ze.showgrid||!!Qr||!!on)||(delete ze.startlinecolor,delete ze.startlinewidth);var sn=coerce2("endlinecolor",er),cn=coerce2("endlinewidth",ar);return coerce("endline",ze.showgrid||!!sn||!!cn)||(delete ze.endlinecolor,delete ze.endlinewidth),Lr?(coerce("minorgridcount"),coerce("minorgridwidth",ar),coerce("minorgridcolor",We(rr,.06)),ze.minorgridcount||(delete ze.minorgridwidth,delete ze.minorgridcolor)):(delete ze.gridcolor,delete ze.gridWidth),"none"===ze.showticklabels&&(delete ze.tickfont,delete ze.tickangle,delete ze.showexponent,delete ze.exponentformat,delete ze.tickformat,delete ze.showticksuffix,delete ze.showtickprefix),ze.showticksuffix||delete ze.ticksuffix,ze.showtickprefix||delete ze.tickprefix,coerce("tickmode"),ze}},f09f:function(Ee,ze,Be){"use strict";Ee.exports=function(Ee,ze,Be){return ze&&Be?function(ze,Be,Ue,We,$e){var Qe,rt,it,at,ct,ft;ze||(ze=[]),Be*=3,Ue*=3;var xt=We*We,kt=1-We,Lt=kt*kt,Ut=kt*We*2,er=-3*Lt,tr=3*(Lt-Ut),rr=3*(Ut-xt),ar=3*xt,Lr=$e*$e,Qr=Lr*$e,on=1-$e,sn=on*on,cn=sn*on;for(ft=0;ft0&&(rt=rt.transition().duration(ze.transition.duration).ease(ze.transition.easing)),rt.attr("transform","translate("+(Qe-.5*ct.gripWidth)+","+ze._dims.currentValueTotalHeight+")")}}function normalizedValueToPosition(Ee,ze){var Be=Ee._dims;return Be.inputAreaStart+ct.stepInset+(Be.inputAreaLength-2*ct.stepInset)*Math.min(1,Math.max(0,ze))}function positionToNormalizedValue(Ee,ze){var Be=Ee._dims;return Math.min(1,Math.max(0,(ze-ct.stepInset-Be.inputAreaStart)/(Be.inputAreaLength-2*ct.stepInset-2*Be.inputAreaStart)))}function drawTouchRect(Ee,ze,Be){var Ue=Be._dims,We=rt.ensureSingle(Ee,"rect",ct.railTouchRectClass,(function(Ue){Ue.call(attachGripEvents,ze,Ee,Be).style("pointer-events","all")}));We.attr({width:Ue.inputAreaLength,height:Math.max(Ue.inputAreaWidth,ct.tickOffset+Be.ticklen+Ue.labelHeight)}).call($e.fill,Be.bgcolor).attr("opacity",0),Qe.setTranslate(We,0,Ue.currentValueTotalHeight)}function drawRail(Ee,ze){var Be=ze._dims,Ue=Be.inputAreaLength-2*ct.railInset,We=rt.ensureSingle(Ee,"rect",ct.railRectClass);We.attr({width:Ue,height:ct.railWidth,rx:ct.railRadius,ry:ct.railRadius,"shape-rendering":"crispEdges"}).call($e.stroke,ze.bordercolor).call($e.fill,ze.bgcolor).style("stroke-width",ze.borderwidth+"px"),Qe.setTranslate(We,ct.railInset,.5*(Be.inputAreaWidth-ct.railWidth)+Be.currentValueTotalHeight)}Ee.exports=function draw(Ee){var ze=Ee._fullLayout,Be=function makeSliderData(Ee,ze){for(var Be=Ee[ct.name],Ue=[],We=0;We0?[0]:[]);function clearSlider(ze){ze._commandObserver&&(ze._commandObserver.remove(),delete ze._commandObserver),We.autoMargin(Ee,autoMarginId(ze))}if($e.enter().append("g").classed(ct.containerClassName,!0).style("cursor","ew-resize"),$e.exit().each((function(){Ue.select(this).selectAll("g."+ct.groupClassName).each(clearSlider)})).remove(),0!==Be.length){var rt=$e.selectAll("g."+ct.groupClassName).data(Be,keyFunction);rt.enter().append("g").classed(ct.groupClassName,!0),rt.exit().each(clearSlider).remove();for(var it=0;it=ct[0]&&Ee.x<=ct[1]&&Ee.y>=ft[0]&&Ee.y<=ft[1]})),Ut=Math.ceil(Lt.length/kt),er=0;Qe.forEach((function(Ee,Be){var Ue=Ee[0].trace;at.hasMarkers(Ue)&&Ue.marker.maxdisplayed>0&&Be0;function transition(Ee){return tr?Ee.transition():Ee}var rr=Be.xaxis,ar=Be.yaxis,Lr=ft[0].trace,Qr=Lr.line,on=Ue.select(Lt),sn=Qe(on,"g","errorbars"),cn=Qe(on,"g","lines"),un=Qe(on,"g","points"),hn=Qe(on,"g","text");if(We.getComponentMethod("errorbars","plot")(Ee,sn,Be,Ut),!0===Lr.visible){var dn,vn;transition(on).style("opacity",Lr.opacity);var yn=Lr.fill.charAt(Lr.fill.length-1);"x"!==yn&&"y"!==yn&&(yn=""),ft[0][Be.isRangePlot?"nodeRangePlot3":"node3"]=on;var _n,Mn,Cn="",En=[],Pn=Lr._prevtrace;Pn&&(Cn=Pn._prevRevpath||"",vn=Pn._nextFill,En=Pn._polygons);var In,Bn,Hn,Kn,Jn,ei,ti,ri="",ni="",ii=[],ai=$e.noop;if(dn=Lr._ownFill,at.hasLines(Lr)||"none"!==Lr.fill){for(vn&&vn.datum(ft),-1!==["hv","vh","hvh","vhv"].indexOf(Qr.shape)?(In=it.steps(Qr.shape),Bn=it.steps(Qr.shape.split("").reverse().join(""))):In=Bn="spline"===Qr.shape?function(Ee){var ze=Ee[Ee.length-1];return Ee.length>1&&Ee[0][0]===ze[0]&&Ee[0][1]===ze[1]?it.smoothclosed(Ee.slice(1),Qr.smoothing):it.smoothopen(Ee,Qr.smoothing)}:function(Ee){return"M"+Ee.join("L")},Hn=function(Ee){return Bn(Ee.reverse())},ii=ct(ft,{xaxis:rr,yaxis:ar,connectGaps:Lr.connectgaps,baseTolerance:Math.max(Qr.width||1,3)/4,shape:Qr.shape,simplify:Qr.simplify,fill:Lr.fill}),ti=Lr._polygons=new Array(ii.length),er=0;er1){var Be=Ue.select(this);if(Be.datum(ft),Ee)transition(Be.style("opacity",0).attr("d",_n).call(it.lineGroupStyle)).style("opacity",1);else{var We=transition(Be);We.attr("d",_n),it.singleLineStyle(ft,We)}}}}}var oi=cn.selectAll(".js-line").data(ii);transition(oi.exit()).style("opacity",0).remove(),oi.each(ai(!1)),oi.enter().append("path").classed("js-line",!0).style("vector-effect","non-scaling-stroke").call(it.lineGroupStyle).each(ai(!0)),it.setClipUrl(oi,Be.layerClipId,Ee),ii.length?(dn?(dn.datum(ft),Kn&&ei&&(yn?("y"===yn?Kn[1]=ei[1]=ar.c2p(0,!0):"x"===yn&&(Kn[0]=ei[0]=rr.c2p(0,!0)),transition(dn).attr("d","M"+ei+"L"+Kn+"L"+ri.substr(1)).call(it.singleFillStyle)):transition(dn).attr("d",ri+"Z").call(it.singleFillStyle))):vn&&("tonext"===Lr.fill.substr(0,6)&&ri&&Cn?("tonext"===Lr.fill?transition(vn).attr("d",ri+"Z"+Cn+"Z").call(it.singleFillStyle):transition(vn).attr("d",ri+"L"+Cn.substr(1)+"Z").call(it.singleFillStyle),Lr._polygons=Lr._polygons.concat(En)):(clearFill(vn),Lr._polygons=null)),Lr._prevRevpath=ni,Lr._prevPolygons=ti):(dn?clearFill(dn):vn&&clearFill(vn),Lr._polygons=Lr._prevRevpath=Lr._prevPolygons=null),un.datum(ft),hn.datum(ft),function makePoints(ze,We,$e){var Qe,ct=$e[0].trace,ft=at.hasMarkers(ct),xt=at.hasText(ct),kt=getKeyFunc(ct),Lt=hideFilter,Ut=hideFilter;if(ft||xt){var er=rt,Lr=ct.stackgroup,Qr=Lr&&"infer zero"===Ee._fullLayout._scatterStackOpts[rr._id+ar._id][Lr].stackgaps;ct.marker.maxdisplayed||ct._needsCull?er=Qr?visFilterWithGaps:visFilter:Lr&&!Qr&&(er=gapFilter),ft&&(Lt=er),xt&&(Ut=er)}var on,sn=(Qe=ze.selectAll("path.point").data(Lt,kt)).enter().append("path").classed("point",!0);tr&&sn.call(it.pointStyle,ct,Ee).call(it.translatePoints,rr,ar).style("opacity",0).transition().style("opacity",1),Qe.order(),ft&&(on=it.makePointStyleFns(ct)),Qe.each((function(ze){var We=Ue.select(this),$e=transition(We);it.translatePoint(ze,$e,rr,ar)?(it.singlePointStyle(ze,$e,ct,on,Ee),Be.layerClipId&&it.hideOutsideRangePoint(ze,$e,rr,ar,ct.xcalendar,ct.ycalendar),ct.customdata&&We.classed("plotly-customdata",null!==ze.data&&void 0!==ze.data)):$e.remove()})),tr?Qe.exit().transition().style("opacity",0).remove():Qe.exit().remove(),(Qe=We.selectAll("g").data(Ut,kt)).enter().append("g").classed("textpoint",!0).append("text"),Qe.order(),Qe.each((function(Ee){var ze=Ue.select(this),We=transition(ze.select("text"));it.translatePoint(Ee,We,rr,ar)?Be.layerClipId&&it.hideOutsideRangePoint(Ee,ze,rr,ar,ct.xcalendar,ct.ycalendar):ze.remove()})),Qe.selectAll("text").call(it.textPointStyle,ct,Ee).each((function(Ee){var ze=rr.c2p(Ee.x),Be=ar.c2p(Ee.y);Ue.select(this).selectAll("tspan.line").each((function(){transition(Ue.select(this)).attr({x:ze,y:Be})}))})),Qe.exit().remove()}(un,hn,ft);var si=!1===Lr.cliponaxis?null:Be.layerClipId;it.setClipUrl(un,si,Ee),it.setClipUrl(hn,si,Ee)}function clearFill(Ee){transition(Ee).attr("d","M0,0Z")}function visFilter(Ee){return Ee.filter((function(Ee){return!Ee.gap&&Ee.vis}))}function visFilterWithGaps(Ee){return Ee.filter((function(Ee){return Ee.vis}))}function gapFilter(Ee){return Ee.filter((function(Ee){return!Ee.gap}))}function keyFunc(Ee){return Ee.id}function getKeyFunc(Ee){if(Ee.ids)return keyFunc}function hideFilter(){return!1}}Ee.exports=function plot(Ee,ze,Be,We,$e,at){var ct,xt,kt=!$e,Lt=!!$e&&$e.duration>0,Ut=ft(Ee,ze,Be);((ct=We.selectAll("g.trace").data(Ut,(function(Ee){return Ee[0].trace.uid}))).enter().append("g").attr("class",(function(Ee){return"trace scatter trace"+Ee[0].trace.uid})).style("stroke-miterlimit",2),ct.order(),function createFills(Ee,ze,Be){ze.each((function(ze){var We=Qe(Ue.select(this),"g","fills");it.setClipUrl(We,Be.layerClipId,Ee);var $e=ze[0].trace,at=[];$e._ownfill&&at.push("_ownFill"),$e._nexttrace&&at.push("_nextFill");var ct=We.selectAll("g").data(at,rt);ct.enter().append("g"),ct.exit().each((function(Ee){$e[Ee]=null})).remove(),ct.order().each((function(Ee){$e[Ee]=Qe(Ue.select(this),"path","js-fill")}))}))}(Ee,ct,ze),Lt)?(at&&(xt=at()),Ue.transition().duration($e.duration).ease($e.easing).each("end",(function(){xt&&xt()})).each("interrupt",(function(){xt&&xt()})).each((function(){We.selectAll("g.trace").each((function(Be,Ue){plotOne(Ee,Ue,ze,Be,Ut,this,$e)}))}))):ct.each((function(Be,Ue){plotOne(Ee,Ue,ze,Be,Ut,this,$e)}));kt&&ct.exit().remove(),We.selectAll("path:not([d])").remove()}},f11b:function(Ee,ze,Be){"use strict";var Ue=Be("a5c4"),We=Be("fc26"),$e=Be("ac97").getTraceColor,Qe=We.fillText,rt=Be("efcd").makeHoverPointText,it=Be("a60f").isPtInsidePolygon;Ee.exports=function hoverPoints(Ee,ze,Be){var at=Ee.cd,ct=at[0].trace,ft=Ee.subplot,xt=ft.radialAxis,kt=ft.angularAxis,Lt=ft.vangles,Ut=Lt?it:We.isPtInsideSector,er=Ee.maxHoverDistance,tr=kt._period||2*Math.PI,rr=Math.abs(xt.g2p(Math.sqrt(ze*ze+Be*Be))),ar=Math.atan2(Be,ze);xt.range[0]>xt.range[1]&&(ar+=Math.PI);if(Ue.getClosest(at,(function(Ee){return Ut(rr,ar,[Ee.rp0,Ee.rp1],[Ee.thetag0,Ee.thetag1],Lt)?er+Math.min(1,Math.abs(Ee.thetag1-Ee.thetag0)/tr)-1+(Ee.rp1-rr)/(Ee.rp1-Ee.rp0)-1:1/0}),Ee),!1!==Ee.index){var Lr=at[Ee.index];Ee.x0=Ee.x1=Lr.ct[0],Ee.y0=Ee.y1=Lr.ct[1];var Qr=We.extendFlat({},Lr,{r:Lr.s,theta:Lr.p});return Qe(Lr,ct,Ee),rt(Qr,ct,ft,Ee),Ee.hovertemplate=ct.hovertemplate,Ee.color=$e(ct,Lr),Ee.xLabelVal=Ee.yLabelVal=void 0,Lr.s<0&&(Ee.idealAlign="left"),[Ee]}}},f144:function(Ee,ze,Be){"use strict";Ee.exports=function cleanPSLG(Ee,ze,Be){var Ue;if(Be){Ue=ze;for(var We=new Array(ze.length),$e=0;$eze[2]?1:0)}function dedupEdges(Ee,ze,Be){if(0!==Ee.length){if(ze)for(var Ue=0;Ue=0;--$e){var ar=ze[ct=(dn=Ue[$e])[0]],Lr=ar[0],Qr=ar[1],on=Ee[Lr],sn=Ee[Qr];if((on[0]-sn[0]||on[1]-sn[1])<0){var cn=Lr;Lr=Qr,Qr=cn}ar[0]=Lr;var un,hn=ar[1]=dn[1];for(We&&(un=ar[2]);$e>0&&Ue[$e-1][0]===ct;){var dn,vn=(dn=Ue[--$e])[1];We?ze.push([hn,vn,un]):ze.push([hn,vn]),hn=vn}We?ze.push([hn,Qr,un]):ze.push([hn,Qr])}return xt}(Ee,ze,xt,Lt,Be));return dedupEdges(ze,Ut,Be),!!Ut||(xt.length>0||Lt.length>0)}},f177:function(Ee,ze,Be){"use strict";var Ue=Be("de81"),We=Be("e38a").styleTextSelection;Ee.exports=function select(Ee,ze){var Be=Ee.cd,$e=[],Qe=Be[0].trace,rt=Be[0].t,it=Qe._length,at=rt.x,ct=rt.y,ft=rt._scene,xt=rt.index;if(!ft)return $e;var kt=Ue.hasText(Qe),Lt=Ue.hasMarkers(Qe),Ut=!Lt&&!kt;if(!0!==Qe.visible||Ut)return $e;var er=[],tr=[];if(!1!==ze&&!ze.degenerate)for(var rr=0;rrkt[1][2]&&(er[0]=-er[0]),kt[0][2]>kt[2][0]&&(er[1]=-er[1]),kt[1][0]>kt[0][1]&&(er[2]=-er[2]),!0}},f1c3:function(Ee,ze,Be){"use strict";var Ue=Be("371e"),We=Be("7974");Ee.exports={moduleType:"trace",name:"splom",basePlotModule:Be("f214"),categories:["gl","regl","cartesian","symbols","showLegend","scatter-like"],attributes:Be("26e4"),supplyDefaults:Be("22926"),colorbar:Be("f3cf"),calc:Be("e4d3"),plot:Be("9d8f"),hoverPoints:Be("4051").hoverPoints,selectPoints:Be("806e"),editStyle:Be("de96"),meta:{}},Ue.register(We)},f1cd:function(Ee,ze,Be){"use strict";Ee.exports={attributes:Be("e7bd"),supplyDefaults:Be("4190"),plot:Be("af2d"),calc:Be("eec7"),animatable:!0,isContainer:!0,moduleType:"trace",name:"carpet",basePlotModule:Be("91cd"),categories:["cartesian","svg","carpet","carpetAxis","notLegendIsolatable","noMultiCategory","noHover","noSortingByValue"],meta:{}}},f200:function(Ee,ze,Be){"use strict";var Ue=Be("a876"),We=Be("94d5").hovertemplateAttrs,$e=Be("94d5").texttemplateAttrs,Qe=Be("f4e9"),rt=Be("81f0").attributes,it=Be("919e"),at=Be("8ba9"),ct=Be("9092").extendFlat;Ee.exports={labels:{valType:"data_array",editType:"calc"},parents:{valType:"data_array",editType:"calc"},values:{valType:"data_array",editType:"calc"},branchvalues:{valType:"enumerated",values:["remainder","total"],dflt:"remainder",editType:"calc"},count:{valType:"flaglist",flags:["branches","leaves"],dflt:"leaves",editType:"calc"},level:{valType:"any",editType:"plot",anim:!0},maxdepth:{valType:"integer",editType:"plot",dflt:-1},marker:ct({colors:{valType:"data_array",editType:"calc"},line:{color:ct({},it.marker.line.color,{dflt:null}),width:ct({},it.marker.line.width,{dflt:1}),editType:"calc"},editType:"calc"},Qe("marker",{colorAttr:"colors",anim:!1})),leaf:{opacity:{valType:"number",editType:"style",min:0,max:1},editType:"plot"},text:it.text,textinfo:{valType:"flaglist",flags:["label","text","value","current path","percent root","percent entry","percent parent"],extras:["none"],editType:"plot"},texttemplate:$e({editType:"plot"},{keys:at.eventDataKeys.concat(["label","value"])}),hovertext:it.hovertext,hoverinfo:ct({},Ue.hoverinfo,{flags:["label","text","value","name","current path","percent root","percent entry","percent parent"],dflt:"label+text+value+name"}),hovertemplate:We({},{keys:at.eventDataKeys}),textfont:it.textfont,insidetextorientation:it.insidetextorientation,insidetextfont:it.insidetextfont,outsidetextfont:ct({},it.outsidetextfont,{}),domain:rt({name:"sunburst",trace:!0,editType:"calc"})}},f214:function(Ee,ze,Be){"use strict";var Ue=Be("e8ee"),We=Be("371e"),$e=Be("cf42"),Qe=Be("ad62").getModuleCalcData,rt=Be("91cd"),it=Be("3c1c").getFromId,at=Be("0642").shouldShowZeroLine;function dragOne(Ee,ze,Be){for(var Ue=Be.matrixOptions.data.length,We=ze._visibleDims,$e=Be.viewOpts.ranges=new Array(Ue),Qe=0;Qe 0 U ||b|| > 0.\n // Assign z = 0, x = -b, y = a:\n // a*-b + b*a + c*0 = -ba + ba + 0 = 0\n if (v.x*v.x > v.z*v.z || v.y*v.y > v.z*v.z) {\n return normalize(vec3(-v.y, v.x, 0.0));\n } else {\n return normalize(vec3(0.0, v.z, -v.y));\n }\n}\n\n// Calculate the cone vertex and normal at the given index.\n//\n// The returned vertex is for a cone with its top at origin and height of 1.0,\n// pointing in the direction of the vector attribute.\n//\n// Each cone is made up of a top vertex, a center base vertex and base perimeter vertices.\n// These vertices are used to make up the triangles of the cone by the following:\n// segment + 0 top vertex\n// segment + 1 perimeter vertex a+1\n// segment + 2 perimeter vertex a\n// segment + 3 center base vertex\n// segment + 4 perimeter vertex a\n// segment + 5 perimeter vertex a+1\n// Where segment is the number of the radial segment * 6 and a is the angle at that radial segment.\n// To go from index to segment, floor(index / 6)\n// To go from segment to angle, 2*pi * (segment/segmentCount)\n// To go from index to segment index, index - (segment*6)\n//\nvec3 getConePosition(vec3 d, float rawIndex, float coneOffset, out vec3 normal) {\n\n const float segmentCount = 8.0;\n\n float index = rawIndex - floor(rawIndex /\n (segmentCount * 6.0)) *\n (segmentCount * 6.0);\n\n float segment = floor(0.001 + index/6.0);\n float segmentIndex = index - (segment*6.0);\n\n normal = -normalize(d);\n\n if (segmentIndex > 2.99 && segmentIndex < 3.01) {\n return mix(vec3(0.0), -d, coneOffset);\n }\n\n float nextAngle = (\n (segmentIndex > 0.99 && segmentIndex < 1.01) ||\n (segmentIndex > 4.99 && segmentIndex < 5.01)\n ) ? 1.0 : 0.0;\n float angle = 2.0 * 3.14159 * ((segment + nextAngle) / segmentCount);\n\n vec3 v1 = mix(d, vec3(0.0), coneOffset);\n vec3 v2 = v1 - d;\n\n vec3 u = getOrthogonalVector(d);\n vec3 v = normalize(cross(u, d));\n\n vec3 x = u * cos(angle) * length(d)*0.25;\n vec3 y = v * sin(angle) * length(d)*0.25;\n vec3 v3 = v2 + x + y;\n if (segmentIndex < 3.0) {\n vec3 tx = u * sin(angle);\n vec3 ty = v * -cos(angle);\n vec3 tangent = tx + ty;\n normal = normalize(cross(v3 - v1, tangent));\n }\n\n if (segmentIndex == 0.0) {\n return mix(d, vec3(0.0), coneOffset);\n }\n return v3;\n}\n\nattribute vec3 vector;\nattribute vec4 color, position;\nattribute vec2 uv;\n\nuniform float vectorScale, coneScale, coneOffset;\nuniform mat4 model, view, projection, inverseModel;\nuniform vec3 eyePosition, lightPosition;\n\nvarying vec3 f_normal, f_lightDirection, f_eyeDirection, f_data, f_position;\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n // Scale the vector magnitude to stay constant with\n // model & view changes.\n vec3 normal;\n vec3 XYZ = getConePosition(mat3(model) * ((vectorScale * coneScale) * vector), position.w, coneOffset, normal);\n vec4 conePosition = model * vec4(position.xyz, 1.0) + vec4(XYZ, 0.0);\n\n //Lighting geometry parameters\n vec4 cameraCoordinate = view * conePosition;\n cameraCoordinate.xyz /= cameraCoordinate.w;\n f_lightDirection = lightPosition - cameraCoordinate.xyz;\n f_eyeDirection = eyePosition - cameraCoordinate.xyz;\n f_normal = normalize((vec4(normal, 0.0) * inverseModel).xyz);\n\n // vec4 m_position = model * vec4(conePosition, 1.0);\n vec4 t_position = view * conePosition;\n gl_Position = projection * t_position;\n\n f_color = color;\n f_data = conePosition.xyz;\n f_position = position.xyz;\n f_uv = uv;\n}\n"]),$e=Ue(["#extension GL_OES_standard_derivatives : enable\n\nprecision highp float;\n#define GLSLIFY 1\n\nfloat beckmannDistribution(float x, float roughness) {\n float NdotH = max(x, 0.0001);\n float cos2Alpha = NdotH * NdotH;\n float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha;\n float roughness2 = roughness * roughness;\n float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha;\n return exp(tan2Alpha / roughness2) / denom;\n}\n\nfloat cookTorranceSpecular(\n vec3 lightDirection,\n vec3 viewDirection,\n vec3 surfaceNormal,\n float roughness,\n float fresnel) {\n\n float VdotN = max(dot(viewDirection, surfaceNormal), 0.0);\n float LdotN = max(dot(lightDirection, surfaceNormal), 0.0);\n\n //Half angle vector\n vec3 H = normalize(lightDirection + viewDirection);\n\n //Geometric term\n float NdotH = max(dot(surfaceNormal, H), 0.0);\n float VdotH = max(dot(viewDirection, H), 0.000001);\n float LdotH = max(dot(lightDirection, H), 0.000001);\n float G1 = (2.0 * NdotH * VdotN) / VdotH;\n float G2 = (2.0 * NdotH * LdotN) / LdotH;\n float G = min(1.0, min(G1, G2));\n \n //Distribution term\n float D = beckmannDistribution(NdotH, roughness);\n\n //Fresnel term\n float F = pow(1.0 - VdotN, fresnel);\n\n //Multiply terms and done\n return G * F * D / max(3.14159265 * VdotN, 0.000001);\n}\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 clipBounds[2];\nuniform float roughness, fresnel, kambient, kdiffuse, kspecular, opacity;\nuniform sampler2D texture;\n\nvarying vec3 f_normal, f_lightDirection, f_eyeDirection, f_data, f_position;\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard;\n vec3 N = normalize(f_normal);\n vec3 L = normalize(f_lightDirection);\n vec3 V = normalize(f_eyeDirection);\n\n if(gl_FrontFacing) {\n N = -N;\n }\n\n float specular = min(1.0, max(0.0, cookTorranceSpecular(L, V, N, roughness, fresnel)));\n float diffuse = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0);\n\n vec4 surfaceColor = f_color * texture2D(texture, f_uv);\n vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular, 1.0);\n\n gl_FragColor = litColor * opacity;\n}\n"]),Qe=Ue(["precision highp float;\n\nprecision highp float;\n#define GLSLIFY 1\n\nvec3 getOrthogonalVector(vec3 v) {\n // Return up-vector for only-z vector.\n // Return ax + by + cz = 0, a point that lies on the plane that has v as a normal and that isn't (0,0,0).\n // From the above if-statement we have ||a|| > 0 U ||b|| > 0.\n // Assign z = 0, x = -b, y = a:\n // a*-b + b*a + c*0 = -ba + ba + 0 = 0\n if (v.x*v.x > v.z*v.z || v.y*v.y > v.z*v.z) {\n return normalize(vec3(-v.y, v.x, 0.0));\n } else {\n return normalize(vec3(0.0, v.z, -v.y));\n }\n}\n\n// Calculate the cone vertex and normal at the given index.\n//\n// The returned vertex is for a cone with its top at origin and height of 1.0,\n// pointing in the direction of the vector attribute.\n//\n// Each cone is made up of a top vertex, a center base vertex and base perimeter vertices.\n// These vertices are used to make up the triangles of the cone by the following:\n// segment + 0 top vertex\n// segment + 1 perimeter vertex a+1\n// segment + 2 perimeter vertex a\n// segment + 3 center base vertex\n// segment + 4 perimeter vertex a\n// segment + 5 perimeter vertex a+1\n// Where segment is the number of the radial segment * 6 and a is the angle at that radial segment.\n// To go from index to segment, floor(index / 6)\n// To go from segment to angle, 2*pi * (segment/segmentCount)\n// To go from index to segment index, index - (segment*6)\n//\nvec3 getConePosition(vec3 d, float rawIndex, float coneOffset, out vec3 normal) {\n\n const float segmentCount = 8.0;\n\n float index = rawIndex - floor(rawIndex /\n (segmentCount * 6.0)) *\n (segmentCount * 6.0);\n\n float segment = floor(0.001 + index/6.0);\n float segmentIndex = index - (segment*6.0);\n\n normal = -normalize(d);\n\n if (segmentIndex > 2.99 && segmentIndex < 3.01) {\n return mix(vec3(0.0), -d, coneOffset);\n }\n\n float nextAngle = (\n (segmentIndex > 0.99 && segmentIndex < 1.01) ||\n (segmentIndex > 4.99 && segmentIndex < 5.01)\n ) ? 1.0 : 0.0;\n float angle = 2.0 * 3.14159 * ((segment + nextAngle) / segmentCount);\n\n vec3 v1 = mix(d, vec3(0.0), coneOffset);\n vec3 v2 = v1 - d;\n\n vec3 u = getOrthogonalVector(d);\n vec3 v = normalize(cross(u, d));\n\n vec3 x = u * cos(angle) * length(d)*0.25;\n vec3 y = v * sin(angle) * length(d)*0.25;\n vec3 v3 = v2 + x + y;\n if (segmentIndex < 3.0) {\n vec3 tx = u * sin(angle);\n vec3 ty = v * -cos(angle);\n vec3 tangent = tx + ty;\n normal = normalize(cross(v3 - v1, tangent));\n }\n\n if (segmentIndex == 0.0) {\n return mix(d, vec3(0.0), coneOffset);\n }\n return v3;\n}\n\nattribute vec4 vector;\nattribute vec4 position;\nattribute vec4 id;\n\nuniform mat4 model, view, projection;\nuniform float vectorScale, coneScale, coneOffset;\n\nvarying vec3 f_position;\nvarying vec4 f_id;\n\nvoid main() {\n vec3 normal;\n vec3 XYZ = getConePosition(mat3(model) * ((vectorScale * coneScale) * vector.xyz), position.w, coneOffset, normal);\n vec4 conePosition = model * vec4(position.xyz, 1.0) + vec4(XYZ, 0.0);\n gl_Position = projection * view * conePosition;\n f_id = id;\n f_position = position.xyz;\n}\n"]),rt=Ue(["precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 clipBounds[2];\nuniform float pickId;\n\nvarying vec3 f_position;\nvarying vec4 f_id;\n\nvoid main() {\n if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard;\n\n gl_FragColor = vec4(pickId, f_id.xyz);\n}"]);ze.meshShader={vertex:We,fragment:$e,attributes:[{name:"position",type:"vec4"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"vector",type:"vec3"}]},ze.pickShader={vertex:Qe,fragment:rt,attributes:[{name:"position",type:"vec4"},{name:"id",type:"vec4"},{name:"vector",type:"vec3"}]}},f28b:function(Ee,ze){Ee.exports=function random(Ee,ze){ze=ze||1;var Be=2*Math.random()*Math.PI,Ue=2*Math.random()-1,We=Math.sqrt(1-Ue*Ue)*ze;return Ee[0]=Math.cos(Be)*We,Ee[1]=Math.sin(Be)*We,Ee[2]=Ue*ze,Ee}},f28e:function(Ee,ze,Be){"use strict";var Ue=Be("371e"),We=Be("79f1");Ee.exports=function getLegendData(Ee,ze){var Be,$e,Qe={},rt=[],it=!1,at={},ct=0,ft=0;function addOneItem(Ee,Be){if(""!==Ee&&We.isGrouped(ze))-1===rt.indexOf(Ee)?(rt.push(Ee),it=!0,Qe[Ee]=[[Be]]):Qe[Ee].push([Be]);else{var Ue="~~i"+ct;rt.push(Ue),Qe[Ue]=[[Be]],ct++}}for(Be=0;BeUt[1]-1/4096&&(ze.domain=rt),We.noneOrAll(Ee.domain,ze.domain,rt)}return Be("layer"),ze}},f3a4:function(Ee,ze,Be){"use strict";Ee.exports=function createTable(Ee){for(var ze=1<1){at=!0;break}}at?Ee.fullLayout._infolayer.select(".annotation-"+Ee.id+'[data-index="'+rt+'"]').remove():(it._pdata=We(Ee.glplot.cameraParams,[ze.xaxis.r2l(it.x)*Be[0],ze.yaxis.r2l(it.y)*Be[1],ze.zaxis.r2l(it.z)*Be[2]]),Ue(Ee.graphDiv,it,rt,Ee.id,it._xa,it._ya))}}},f4b3:function(Ee,ze,Be){"use strict";var Ue=Be("0642"),We=Be("fc26"),$e=Be("3c1c").getAxisGroup,Qe=["v","h"];function setPositionOffset(Ee,ze,Be,Qe){var rt,it,at,ct=ze.calcdata,ft=ze._fullLayout,xt=Qe._id,kt=xt.charAt(0),Lt=[],Ut=0;for(rt=0;rt1,Lr=1-ft[Ee+"gap"],Qr=1-ft[Ee+"groupgap"];for(rt=0;rt0){var ii=vn.pointpos,ai=vn.jitter,oi=vn.marker.size/2,si=0;ii+ai>=0&&((si=ri*(ii+ai))>hn?(ni=!0,ei=oi,Kn=si):si>Bn&&(ei=oi,Kn=hn)),si<=hn&&(Kn=hn);var li=0;ii-ai<=0&&((li=-ri*(ii-ai))>dn?(ni=!0,ti=oi,Jn=li):li>Hn&&(ti=oi,Jn=dn)),li<=dn&&(Jn=dn)}else Kn=hn,Jn=dn;var ci=new Array(at.length);for(it=0;it20&&ze?208===Ee||1114===Ee?Ue=0===Be[0]?1:-1:$e=0===Be[1]?1:-1:-1!==We.BOTTOMSTART.indexOf(Ee)?$e=1:-1!==We.LEFTSTART.indexOf(Ee)?Ue=1:-1!==We.TOPSTART.indexOf(Ee)?$e=-1:Ue=-1;return[Ue,$e]}(at,Be,ze),ft=[getInterpPx(Ee,ze,[-ct[0],-ct[1]])],xt=Ee.z.length,kt=Ee.z[0].length,Lt=ze.slice(),Ut=ct.slice();for(rt=0;rt<1e4;rt++){if(at>20?(at=We.CHOOSESADDLE[at][(ct[0]||ct[1])<0?0:1],Ee.crossings[it]=We.SADDLEREMAINDER[at]):delete Ee.crossings[it],!(ct=We.NEWDELTA[at])){Ue.log("Found bad marching index:",at,ze,Ee.level);break}ft.push(getInterpPx(Ee,ze,ct)),ze[0]+=ct[0],ze[1]+=ct[1],it=ze.join(","),equalPts(ft[ft.length-1],ft[ft.length-2],$e,Qe)&&ft.pop();var er=ct[0]&&(ze[0]<0||ze[0]>kt-2)||ct[1]&&(ze[1]<0||ze[1]>xt-2);if(ze[0]===Lt[0]&&ze[1]===Lt[1]&&ct[0]===Ut[0]&&ct[1]===Ut[1]||Be&&er)break;at=Ee.crossings[it]}1e4===rt&&Ue.log("Infinite loop in contour?");var tr,rr,ar,Lr,Qr,on,sn,cn,un,hn,dn,vn,yn,_n,Mn,Cn=equalPts(ft[0],ft[ft.length-1],$e,Qe),En=0,Pn=.2*Ee.smoothing,In=[],Bn=0;for(rt=1;rt=Bn;rt--)if((tr=In[rt])=Bn&&tr+In[rr]cn&&un--,Ee.edgepaths[un]=dn.concat(ft,hn));break}Jn||(Ee.edgepaths[cn]=ft.concat(hn))}for(cn=0;cn=We||(Be=We-ze.y0)>1e-6&&(ze.y0+=Be,ze.y1+=Be),We=ze.y1+kt}))}(function snapToColumns(Ee){var ze,Be,Ue=Ee.map((function(Ee,ze){return{x0:Ee.x0,index:ze}})).sort((function(Ee,ze){return Ee.x0-ze.x0})),We=[],$e=-1,Qe=-1/0;for(Qr=0;QrQe+Lt&&($e+=1,ze=rt.x0),Qe=rt.x0,We[$e]||(We[$e]=[]),We[$e].push(rt),Be=ze-rt.x0,rt.x0+=Be,rt.x1+=Be}return We}(rr=cn.nodes));We.update(cn)}return{circular:Lr,key:Be,trace:rt,guid:ft.randstr(),horizontal:xt,width:er,height:tr,nodePad:rt.node.pad,nodeLineColor:rt.node.line.color,nodeLineWidth:rt.node.line.width,linkLineColor:rt.link.line.color,linkLineWidth:rt.link.line.width,valueFormat:rt.valueformat,valueSuffix:rt.valuesuffix,textFont:rt.textfont,translateX:ct.x[0]*Ee.width+Ee.margin.l,translateY:Ee.height-ct.y[1]*Ee.height+Ee.margin.t,dragParallel:xt?tr:er,dragPerpendicular:xt?er:tr,arrangement:rt.arrangement,sankey:We,graph:cn,forceLayouts:{},interactionState:{dragInProgress:!1,hovered:!1}}}function linkModel(Ee,ze,Be){var Ue=$e(ze.color),We=ze.source.label+"|"+ze.target.label+"__"+Be;return ze.trace=Ee.trace,ze.curveNumber=Ee.trace.index,{circular:Ee.circular,key:We,traceId:Ee.key,pointNumber:ze.pointNumber,link:ze,tinyColorHue:Qe.tinyRGB(Ue),tinyColorAlpha:Ue.getAlpha(),linkPath:linkPath,linkLineColor:Ee.linkLineColor,linkLineWidth:Ee.linkLineWidth,valueFormat:Ee.valueFormat,valueSuffix:Ee.valueSuffix,sankey:Ee.sankey,parent:Ee,interactionState:Ee.interactionState,flow:ze.flow}}function linkPath(){return function path(Ee){if(Ee.link.circular)return function createCircularClosedPathString(Ee){var ze=Ee.width/2,Be=Ee.circularPathData;return"top"===Ee.circularLinkType?"M "+Be.targetX+" "+(Be.targetY+ze)+" L"+Be.rightInnerExtent+" "+(Be.targetY+ze)+"A"+(Be.rightLargeArcRadius+ze)+" "+(Be.rightSmallArcRadius+ze)+" 0 0 1 "+(Be.rightFullExtent-ze)+" "+(Be.targetY-Be.rightSmallArcRadius)+"L"+(Be.rightFullExtent-ze)+" "+Be.verticalRightInnerExtent+"A"+(Be.rightLargeArcRadius+ze)+" "+(Be.rightLargeArcRadius+ze)+" 0 0 1 "+Be.rightInnerExtent+" "+(Be.verticalFullExtent-ze)+"L"+Be.leftInnerExtent+" "+(Be.verticalFullExtent-ze)+"A"+(Be.leftLargeArcRadius+ze)+" "+(Be.leftLargeArcRadius+ze)+" 0 0 1 "+(Be.leftFullExtent+ze)+" "+Be.verticalLeftInnerExtent+"L"+(Be.leftFullExtent+ze)+" "+(Be.sourceY-Be.leftSmallArcRadius)+"A"+(Be.leftLargeArcRadius+ze)+" "+(Be.leftSmallArcRadius+ze)+" 0 0 1 "+Be.leftInnerExtent+" "+(Be.sourceY+ze)+"L"+Be.sourceX+" "+(Be.sourceY+ze)+"L"+Be.sourceX+" "+(Be.sourceY-ze)+"L"+Be.leftInnerExtent+" "+(Be.sourceY-ze)+"A"+(Be.leftLargeArcRadius-ze)+" "+(Be.leftSmallArcRadius-ze)+" 0 0 0 "+(Be.leftFullExtent-ze)+" "+(Be.sourceY-Be.leftSmallArcRadius)+"L"+(Be.leftFullExtent-ze)+" "+Be.verticalLeftInnerExtent+"A"+(Be.leftLargeArcRadius-ze)+" "+(Be.leftLargeArcRadius-ze)+" 0 0 0 "+Be.leftInnerExtent+" "+(Be.verticalFullExtent+ze)+"L"+Be.rightInnerExtent+" "+(Be.verticalFullExtent+ze)+"A"+(Be.rightLargeArcRadius-ze)+" "+(Be.rightLargeArcRadius-ze)+" 0 0 0 "+(Be.rightFullExtent+ze)+" "+Be.verticalRightInnerExtent+"L"+(Be.rightFullExtent+ze)+" "+(Be.targetY-Be.rightSmallArcRadius)+"A"+(Be.rightLargeArcRadius-ze)+" "+(Be.rightSmallArcRadius-ze)+" 0 0 0 "+Be.rightInnerExtent+" "+(Be.targetY-ze)+"L"+Be.targetX+" "+(Be.targetY-ze)+"Z":"M "+Be.targetX+" "+(Be.targetY-ze)+" L"+Be.rightInnerExtent+" "+(Be.targetY-ze)+"A"+(Be.rightLargeArcRadius+ze)+" "+(Be.rightSmallArcRadius+ze)+" 0 0 0 "+(Be.rightFullExtent-ze)+" "+(Be.targetY+Be.rightSmallArcRadius)+"L"+(Be.rightFullExtent-ze)+" "+Be.verticalRightInnerExtent+"A"+(Be.rightLargeArcRadius+ze)+" "+(Be.rightLargeArcRadius+ze)+" 0 0 0 "+Be.rightInnerExtent+" "+(Be.verticalFullExtent+ze)+"L"+Be.leftInnerExtent+" "+(Be.verticalFullExtent+ze)+"A"+(Be.leftLargeArcRadius+ze)+" "+(Be.leftLargeArcRadius+ze)+" 0 0 0 "+(Be.leftFullExtent+ze)+" "+Be.verticalLeftInnerExtent+"L"+(Be.leftFullExtent+ze)+" "+(Be.sourceY+Be.leftSmallArcRadius)+"A"+(Be.leftLargeArcRadius+ze)+" "+(Be.leftSmallArcRadius+ze)+" 0 0 0 "+Be.leftInnerExtent+" "+(Be.sourceY-ze)+"L"+Be.sourceX+" "+(Be.sourceY-ze)+"L"+Be.sourceX+" "+(Be.sourceY+ze)+"L"+Be.leftInnerExtent+" "+(Be.sourceY+ze)+"A"+(Be.leftLargeArcRadius-ze)+" "+(Be.leftSmallArcRadius-ze)+" 0 0 1 "+(Be.leftFullExtent-ze)+" "+(Be.sourceY+Be.leftSmallArcRadius)+"L"+(Be.leftFullExtent-ze)+" "+Be.verticalLeftInnerExtent+"A"+(Be.leftLargeArcRadius-ze)+" "+(Be.leftLargeArcRadius-ze)+" 0 0 1 "+Be.leftInnerExtent+" "+(Be.verticalFullExtent-ze)+"L"+Be.rightInnerExtent+" "+(Be.verticalFullExtent-ze)+"A"+(Be.rightLargeArcRadius-ze)+" "+(Be.rightLargeArcRadius-ze)+" 0 0 1 "+(Be.rightFullExtent+ze)+" "+Be.verticalRightInnerExtent+"L"+(Be.rightFullExtent+ze)+" "+(Be.targetY+Be.rightSmallArcRadius)+"A"+(Be.rightLargeArcRadius-ze)+" "+(Be.rightSmallArcRadius-ze)+" 0 0 1 "+Be.rightInnerExtent+" "+(Be.targetY+ze)+"L"+Be.targetX+" "+(Be.targetY+ze)+"Z"}(Ee.link);var ze=Ee.link.source.x1,Be=Ee.link.target.x0,Ue=er(ze,Be),We=Ue(.5),$e=Ue(.5),Qe=Ee.link.y0-Ee.link.width/2,rt=Ee.link.y0+Ee.link.width/2,it=Ee.link.y1-Ee.link.width/2,at=Ee.link.y1+Ee.link.width/2;return"M"+ze+","+Qe+"C"+We+","+Qe+" "+$e+","+it+" "+Be+","+it+"L"+Be+","+at+"C"+$e+","+at+" "+We+","+rt+" "+ze+","+rt+"Z"}}function nodeModel(Ee,ze){var Be=$e(ze.color),We=Ue.nodePadAcross,rt=Ee.nodePad/2;ze.dx=ze.x1-ze.x0,ze.dy=ze.y1-ze.y0;var it=ze.dx,at=Math.max(.5,ze.dy),ct="node_"+ze.pointNumber;return ze.group&&(ct=ft.randstr()),ze.trace=Ee.trace,ze.curveNumber=Ee.trace.index,{index:ze.pointNumber,key:ct,partOfGroup:ze.partOfGroup||!1,group:ze.group,traceId:Ee.key,trace:Ee.trace,node:ze,nodePad:Ee.nodePad,nodeLineColor:Ee.nodeLineColor,nodeLineWidth:Ee.nodeLineWidth,textFont:Ee.textFont,size:Ee.horizontal?Ee.height:Ee.width,visibleWidth:Math.ceil(it),visibleHeight:at,zoneX:-We,zoneY:-rt,zoneWidth:it+2*We,zoneHeight:at+2*rt,labelY:Ee.horizontal?ze.dy/2+1:ze.dx/2+1,left:1===ze.originalLayer,sizeAcross:Ee.width,forceLayouts:Ee.forceLayouts,horizontal:Ee.horizontal,darkBackground:Be.getBrightness()<=128,tinyColorHue:Qe.tinyRGB(Be),tinyColorAlpha:Be.getAlpha(),valueFormat:Ee.valueFormat,valueSuffix:Ee.valueSuffix,sankey:Ee.sankey,graph:Ee.graph,arrangement:Ee.arrangement,uniqueNodeLabelPathId:[Ee.guid,Ee.key,ct].join("_"),interactionState:Ee.interactionState,figure:Ee}}function updateNodePositions(Ee){Ee.attr("transform",(function(Ee){return"translate("+Ee.node.x0.toFixed(3)+", "+Ee.node.y0.toFixed(3)+")"}))}function updateNodeShapes(Ee){Ee.call(updateNodePositions)}function updateShapes(Ee,ze){Ee.call(updateNodeShapes),ze.attr("d",linkPath())}function sizeNode(Ee){Ee.attr("width",(function(Ee){return Ee.node.x1-Ee.node.x0})).attr("height",(function(Ee){return Ee.visibleHeight}))}function salientEnough(Ee){return Ee.link.width>1||Ee.linkLineWidth>0}function sankeyTransform(Ee){return"translate("+Ee.translateX+","+Ee.translateY+")"+(Ee.horizontal?"matrix(1 0 0 1 0 0)":"matrix(0 1 1 0 0 0)")}function nodeCentering(Ee){return"translate("+(Ee.horizontal?0:Ee.labelY)+" "+(Ee.horizontal?Ee.labelY:0)+")"}function textGuidePath(Ee){return We.svg.line()([[Ee.horizontal?Ee.left?-Ee.sizeAcross:Ee.visibleWidth+Ue.nodeTextOffsetHorizontal:Ue.nodeTextOffsetHorizontal,0],[Ee.horizontal?Ee.left?-Ue.nodeTextOffsetHorizontal:Ee.sizeAcross:Ee.visibleHeight-Ue.nodeTextOffsetHorizontal,0]])}function sankeyInverseTransform(Ee){return Ee.horizontal?"matrix(1 0 0 1 0 0)":"matrix(0 1 1 0 0 0)"}function textFlip(Ee){return Ee.horizontal?"scale(1 1)":"scale(-1 1)"}function nodeTextColor(Ee){return Ee.darkBackground&&!Ee.horizontal?"rgb(255,255,255)":"rgb(0,0,0)"}function nodeTextOffset(Ee){return Ee.horizontal&&Ee.left?"100%":"0%"}function attachPointerEvents(Ee,ze,Be){Ee.on(".basic",null).on("mouseover.basic",(function(Ee){Ee.interactionState.dragInProgress||Ee.partOfGroup||(Be.hover(this,Ee,ze),Ee.interactionState.hovered=[this,Ee])})).on("mousemove.basic",(function(Ee){Ee.interactionState.dragInProgress||Ee.partOfGroup||(Be.follow(this,Ee),Ee.interactionState.hovered=[this,Ee])})).on("mouseout.basic",(function(Ee){Ee.interactionState.dragInProgress||Ee.partOfGroup||(Be.unhover(this,Ee,ze),Ee.interactionState.hovered=!1)})).on("click.basic",(function(Ee){Ee.interactionState.hovered&&(Be.unhover(this,Ee,ze),Ee.interactionState.hovered=!1),Ee.interactionState.dragInProgress||Ee.partOfGroup||Be.select(this,Ee,ze)}))}function attachDragHandler(Ee,ze,Be,$e){var Qe=We.behavior.drag().origin((function(Ee){return{x:Ee.node.x0+Ee.visibleWidth/2,y:Ee.node.y0+Ee.visibleHeight/2}})).on("dragstart",(function(We){if("fixed"!==We.arrangement&&(ft.ensureSingle($e._fullLayout._infolayer,"g","dragcover",(function(Ee){$e._fullLayout._dragCover=Ee})),ft.raiseToTop(this),We.interactionState.dragInProgress=We.node,saveCurrentDragPosition(We.node),We.interactionState.hovered&&(Be.nodeEvents.unhover.apply(0,We.interactionState.hovered),We.interactionState.hovered=!1),"snap"===We.arrangement)){var Qe=We.traceId+"|"+We.key;We.forceLayouts[Qe]?We.forceLayouts[Qe].alpha(1):function attachForce(Ee,ze,Be,We){!function switchToForceFormat(Ee){for(var ze=0;ze0&&We.forceLayouts[ze].alpha(0)}}(0,ze,$e,Be)).stop()}(0,Qe,We),function startForce(Ee,ze,Be,We,$e){window.requestAnimationFrame((function faster(){var Qe;for(Qe=0;Qe0)window.requestAnimationFrame(faster);else{var rt=Be.node.originalX;Be.node.x0=rt-Be.visibleWidth/2,Be.node.x1=rt+Be.visibleWidth/2,persistFinalNodePositions(Be,$e)}}))}(Ee,ze,We,Qe,$e)}})).on("drag",(function(Be){if("fixed"!==Be.arrangement){var Ue=We.event.x,$e=We.event.y;"snap"===Be.arrangement?(Be.node.x0=Ue-Be.visibleWidth/2,Be.node.x1=Ue+Be.visibleWidth/2,Be.node.y0=$e-Be.visibleHeight/2,Be.node.y1=$e+Be.visibleHeight/2):("freeform"===Be.arrangement&&(Be.node.x0=Ue-Be.visibleWidth/2,Be.node.x1=Ue+Be.visibleWidth/2),$e=Math.max(0,Math.min(Be.size-Be.visibleHeight/2,$e)),Be.node.y0=$e-Be.visibleHeight/2,Be.node.y1=$e+Be.visibleHeight/2),saveCurrentDragPosition(Be.node),"snap"!==Be.arrangement&&(Be.sankey.update(Be.graph),updateShapes(Ee.filter(sameLayer(Be)),ze))}})).on("dragend",(function(Ee){if("fixed"!==Ee.arrangement){Ee.interactionState.dragInProgress=!1;for(var ze=0;ze5?Ee.node.label:""})).attr("text-anchor",(function(Ee){return Ee.horizontal&&Ee.left?"end":"start"})),dn.transition().ease(Ue.ease).duration(Ue.duration).attr("startOffset",nodeTextOffset).style("fill",nodeTextColor)}},f60e:function(Ee,ze,Be){"use strict";var Ue=Be("7bdf"),We=Be("96ae"),$e=Math.max;Ee.exports=function(Ee,ze){var Be,Qe,rt,it=$e(arguments.length,2);for(Ee=Object(We(Ee)),rt=function(Ue){try{Ee[Ue]=ze[Ue]}catch(Ee){Be||(Be=Ee)}},Qe=1;Qe * @license MIT - */function compare(Ee,ze){if(Ee===ze)return 0;for(var Be=Ee.length,Ue=ze.length,We=0,$e=Math.min(Be,Ue);We<$e;++We)if(Ee[We]!==ze[We]){Be=Ee[We],Ue=ze[We];break}return Be=0;at--)if(ft[at]!==xt[at])return!1;for(at=ft.length-1;at>=0;at--)if(it=ft[at],!_deepEqual(Ee[it],ze[it],Be,Ue))return!1;return!0}(Ee,ze,Be,Ue))}return Be?Ee===ze:Ee==ze}function isArguments(Ee){return"[object Arguments]"==Object.prototype.toString.call(Ee)}function expectedException(Ee,ze){if(!Ee||!ze)return!1;if("[object RegExp]"==Object.prototype.toString.call(ze))return ze.test(Ee);try{if(Ee instanceof ze)return!0}catch(Ee){}return!Error.isPrototypeOf(ze)&&!0===ze.call({},Ee)}function _throws(Ee,ze,Be,Ue){var $e;if("function"!=typeof ze)throw new TypeError('"block" argument must be a function');"string"==typeof Be&&(Ue=Be,Be=null),$e=function _tryBlock(Ee){var ze;try{Ee()}catch(Ee){ze=Ee}return ze}(ze),Ue=(Be&&Be.name?" ("+Be.name+").":".")+(Ue?" "+Ue:"."),Ee&&!$e&&fail($e,Be,"Missing expected exception"+Ue);var Qe="string"==typeof Ue,rt=!Ee&&$e&&!Be;if((!Ee&&We.isError($e)&&Qe&&expectedException($e,Be)||rt)&&fail($e,Be,"Got unwanted exception"+Ue),Ee&&$e&&Be&&!expectedException($e,Be)||!Ee&&$e)throw $e}it.AssertionError=function AssertionError(Ee){this.name="AssertionError",this.actual=Ee.actual,this.expected=Ee.expected,this.operator=Ee.operator,Ee.message?(this.message=Ee.message,this.generatedMessage=!1):(this.message=function getMessage(Ee){return truncate(inspect(Ee.actual),128)+" "+Ee.operator+" "+truncate(inspect(Ee.expected),128)}(this),this.generatedMessage=!0);var ze=Ee.stackStartFunction||fail;if(Error.captureStackTrace)Error.captureStackTrace(this,ze);else{var Be=new Error;if(Be.stack){var Ue=Be.stack,We=getName(ze),$e=Ue.indexOf("\n"+We);if($e>=0){var Qe=Ue.indexOf("\n",$e+1);Ue=Ue.substring(Qe+1)}this.stack=Ue}}},We.inherits(it.AssertionError,Error),it.fail=fail,it.ok=ok,it.equal=function equal(Ee,ze,Be){Ee!=ze&&fail(Ee,ze,Be,"==",it.equal)},it.notEqual=function notEqual(Ee,ze,Be){Ee==ze&&fail(Ee,ze,Be,"!=",it.notEqual)},it.deepEqual=function deepEqual(Ee,ze,Be){_deepEqual(Ee,ze,!1)||fail(Ee,ze,Be,"deepEqual",it.deepEqual)},it.deepStrictEqual=function deepStrictEqual(Ee,ze,Be){_deepEqual(Ee,ze,!0)||fail(Ee,ze,Be,"deepStrictEqual",it.deepStrictEqual)},it.notDeepEqual=function notDeepEqual(Ee,ze,Be){_deepEqual(Ee,ze,!1)&&fail(Ee,ze,Be,"notDeepEqual",it.notDeepEqual)},it.notDeepStrictEqual=function notDeepStrictEqual(Ee,ze,Be){_deepEqual(Ee,ze,!0)&&fail(Ee,ze,Be,"notDeepStrictEqual",notDeepStrictEqual)},it.strictEqual=function strictEqual(Ee,ze,Be){Ee!==ze&&fail(Ee,ze,Be,"===",it.strictEqual)},it.notStrictEqual=function notStrictEqual(Ee,ze,Be){Ee===ze&&fail(Ee,ze,Be,"!==",it.notStrictEqual)},it.throws=function(Ee,ze,Be){_throws(!0,Ee,ze,Be)},it.doesNotThrow=function(Ee,ze,Be){_throws(!1,Ee,ze,Be)},it.ifError=function(Ee){if(Ee)throw Ee},it.strict=Ue((function strict(Ee,ze){Ee||fail(Ee,!0,ze,"==",strict)}),it,{equal:it.strictEqual,deepEqual:it.deepStrictEqual,notEqual:it.notStrictEqual,notDeepEqual:it.notDeepStrictEqual}),it.strict.strict=it.strict;var ct=Object.keys||function(Ee){var ze=[];for(var Be in Ee)$e.call(Ee,Be)&&ze.push(Be);return ze}}).call(this,Be("c8ba"))},f657:function(Ee,ze,Be){"use strict";Ee.exports={moduleType:"trace",name:"sunburst",basePlotModule:Be("b353"),categories:[],animatable:!0,attributes:Be("f200"),layoutAttributes:Be("7ba3"),supplyDefaults:Be("8dbe"),supplyLayoutDefaults:Be("2dd7"),calc:Be("13a0").calc,crossTraceCalc:Be("13a0").crossTraceCalc,plot:Be("e17d").plot,style:Be("7594").style,colorbar:Be("f3cf"),meta:{}}},f67b:function(Ee,ze,Be){"use strict";var Ue=Be("f4e9"),We=Be("d798"),$e=Be("9845"),Qe=Be("81f0").attributes,rt=Be("9092").extendFlat,it=Be("a651").templatedArray;Ee.exports={domain:Qe({name:"parcoords",trace:!0,editType:"plot"}),labelangle:{valType:"angle",dflt:0,editType:"plot"},labelside:{valType:"enumerated",values:["top","bottom"],dflt:"top",editType:"plot"},labelfont:$e({editType:"plot"}),tickfont:$e({editType:"plot"}),rangefont:$e({editType:"plot"}),dimensions:it("dimension",{label:{valType:"string",editType:"plot"},tickvals:rt({},We.tickvals,{editType:"plot"}),ticktext:rt({},We.ticktext,{editType:"plot"}),tickformat:rt({},We.tickformat,{editType:"plot"}),visible:{valType:"boolean",dflt:!0,editType:"plot"},range:{valType:"info_array",items:[{valType:"number",editType:"plot"},{valType:"number",editType:"plot"}],editType:"plot"},constraintrange:{valType:"info_array",freeLength:!0,dimensions:"1-2",items:[{valType:"number",editType:"plot"},{valType:"number",editType:"plot"}],editType:"plot"},multiselect:{valType:"boolean",dflt:!0,editType:"plot"},values:{valType:"data_array",editType:"calc"},editType:"calc"}),line:rt({editType:"calc"},Ue("line",{colorscaleDflt:"Viridis",autoColorDflt:!1,editTypeOverride:"calc"}))}},f6a2:function(Ee,ze,Be){"use strict";var Ue=Be("cc77"),We=Be("53a5"),$e=Be("3de2"),Qe=Be("be00"),rt=Be("b7d1"),it=Be("84a1"),at=Be("37cd"),ct=Be("a7e2"),ft=Be("7831"),xt=Be("fd4c");function normalize(Ee,ze){for(var Be=ze[0],Ue=ze[1],$e=1/(ze[2]-Be),Qe=1/(ze[3]-Ue),rt=new Array(Ee.length),it=0,at=Ee.length/2;it>>1;ze.dtype||(ze.dtype="array"),"string"==typeof ze.dtype?kt=new(ft(ze.dtype))(Ut):ze.dtype&&(kt=ze.dtype,Array.isArray(kt)&&(kt.length=Ut));for(var er=0;erBe||Qe>1073741824){for(var ft=0;ftze+Ue||Qr>Be+Ue||on=cn||$e===Qe)){var rt=tr[We];void 0===Qe&&(Qe=rt.length);for(var it=$e;it=kt&&ct<=Ut&&ft>=Lt&&ft<=er&&hn.push(at)}var xt=rr[We],ar=xt[4*$e+0],un=xt[4*$e+1],dn=xt[4*$e+2],vn=xt[4*$e+3],yn=nextOffset(xt,$e+1),_n=.5*Ue,Mn=We+1;select(ze,Be,_n,Mn,ar,un||dn||vn||yn),select(ze,Be+_n,_n,Mn,un,dn||vn||yn),select(ze+_n,Be,_n,Mn,dn,vn||yn),select(ze+_n,Be+_n,_n,Mn,vn,yn)}}function nextOffset(Ee,ze){for(var Be=null,Ue=0;null===Be;)if(Be=Ee[4*ze+Ue],++Ue>Ee.length)return null;return Be}return select(0,0,1,0,0,1),hn},kt;function lod(Ee,ze,Be,We,$e){for(var Qe=[],rt=0;rt<$e;rt++){var it=ar[rt],at=Lr[rt][0],ct=group(Ee,ze,rt),ft=group(Be,We,rt),xt=Ue.ge(it,ct),kt=Ue.gt(it,ft,xt,it.length-1);Qe[rt]=[xt+at,kt+at]}return Qe}function group(Ee,ze,Be){for(var Ue=1,We=.5,$e=.5,Qe=.5,rt=0;rt0)return Math.log(Ee)/Math.LN10;var Be=Math.log(Math.min(ze[0],ze[1]))/Math.LN10;return Ue(Be)||(Be=Math.log(Math.max(ze[0],ze[1]))/Math.LN10-6),Be}},f6d3:function(Ee,ze,Be){"use strict";var Ue=Be("6e58"),We=Be("8b85"),$e=Be("efaa"),Qe=Be("83d1"),rt=Be("fc26"),it=Be("da89"),at=Be("f50a"),ct=Be("6954"),ft=Be("8e43"),xt=Be("849d"),kt=Be("3511"),Lt=Be("c997"),Ut=Be("9b68"),er=Be("fa75");function getUnitVector(Ee,ze,Be){var Ue=Ee.getPointAtLength(ze),We=Ee.getPointAtLength(Be),$e=We.x-Ue.x,Qe=We.y-Ue.y,rt=Math.sqrt($e*$e+Qe*Qe);return[$e/rt,Qe/rt]}function normalizeVector(Ee){var ze=Math.sqrt(Ee[0]*Ee[0]+Ee[1]*Ee[1]);return[Ee[0]/ze,Ee[1]/ze]}function vectorTan(Ee,ze){var Be=Math.abs(Ee[0]*ze[0]+Ee[1]*ze[1]);return Math.sqrt(1-Be*Be)/Be}Ee.exports=function plot(Ee,ze,Be,tr){var rr=ze.xaxis,ar=ze.yaxis;rt.makeTraceGroups(tr,Be,"contour").each((function(Be){var tr=Ue.select(this),Lr=Be[0],Qr=Lr.trace,on=Qr._carpetTrace=Ut(Ee,Qr),sn=Ee.calcdata[on.index][0];if(on.visible&&"legendonly"!==on.visible){var cn=Lr.a,un=Lr.b,hn=Qr.contours,dn=kt(hn,ze,Lr),vn="constraint"===hn.type,yn=hn._operation,_n=vn?"="===yn?"lines":"fill":hn.coloring,Mn=[[cn[0],un[un.length-1]],[cn[cn.length-1],un[un.length-1]],[cn[cn.length-1],un[0]],[cn[0],un[0]]];it(dn);var Cn=1e-8*(cn[cn.length-1]-cn[0]),En=1e-8*(un[un.length-1]-un[0]);at(dn,Cn,En);var Pn,In,Bn,Hn,Kn=dn;"constraint"===hn.type&&(Kn=xt(dn,yn)),function mapPathinfo(Ee,ze){var Be,Ue,We,$e,Qe,rt,it,at,ct;for(Be=0;Be=0;Hn--)Pn=sn.clipsegments[Hn],In=We([],Pn.x,rr.c2p),Bn=We([],Pn.y,ar.c2p),In.reverse(),Bn.reverse(),Jn.push($e(In,Bn,Pn.bicubic));var ei="M"+Jn.join("L")+"Z";!function makeBackground(Ee,ze,Be,Ue,Qe,it){var at,ct,ft,xt,kt=rt.ensureSingle(Ee,"g","contourbg").selectAll("path").data("fill"!==it||Qe?[]:[0]);kt.enter().append("path"),kt.exit().remove();var Lt=[];for(xt=0;xt=0&&(xt=cn,Lt=Ut):Math.abs(ft[1]-xt[1])=0&&(xt=cn,Lt=Ut):rt.log("endpt to newendpt is not vert. or horz.",ft,xt,cn)}if(Lt>=0)break;rr+=pathto(ft,xt),ft=xt}if(Lt===ze.edgepaths.length){rt.log("unclosed perimeter path");break}ct=Lt,(Lr=-1===ar.indexOf(ct))&&(ct=ar[0],rr+=pathto(ft,xt)+"Z",ft=null)}for(ct=0;ctUt&&(Ue.max=Ut);Ue.len=Ue.max-Ue.min}(this,Be,Ee,Ue,at,ze.height),!(Ue.len<(ze.width+ze.height)*ft.LABELMIN)))for(var We=Math.min(Math.ceil(Ue.len/yn),ft.LABELMAX),$e=0;$e1?1:Ee}function PointCloud(Ee,ze,Be,Ue,We,$e,Qe,rt,it,at,ct,ft){this.gl=Ee,this.pixelRatio=1,this.shader=ze,this.orthoShader=Be,this.projectShader=Ue,this.pointBuffer=We,this.colorBuffer=$e,this.glyphBuffer=Qe,this.idBuffer=rt,this.vao=it,this.vertexCount=0,this.lineVertexCount=0,this.opacity=1,this.hasAlpha=!1,this.lineWidth=0,this.projectScale=[2/3,2/3,2/3],this.projectOpacity=[1,1,1],this.projectHasAlpha=!1,this.pickId=0,this.pickPerspectiveShader=at,this.pickOrthoShader=ct,this.pickProjectShader=ft,this.points=[],this._selectResult=new ScatterPlotPickResult(0,[0,0,0]),this.useOrtho=!0,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.axesProject=[!0,!0,!0],this.axesBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.highlightId=[1,1,1,1],this.highlightScale=2,this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.dirty=!0}Ee.exports=function createPointCloud(Ee){var ze=Ee.gl,Be=it.createPerspective(ze),Ue=it.createOrtho(ze),Qe=it.createProject(ze),rt=it.createPickPerspective(ze),at=it.createPickOrtho(ze),ct=it.createPickProject(ze),ft=We(ze),xt=We(ze),kt=We(ze),Lt=We(ze),Ut=$e(ze,[{buffer:ft,size:3,type:ze.FLOAT},{buffer:xt,size:4,type:ze.FLOAT},{buffer:kt,size:2,type:ze.FLOAT},{buffer:Lt,size:4,type:ze.UNSIGNED_BYTE,normalized:!0}]),er=new PointCloud(ze,Be,Ue,Qe,ft,xt,kt,Lt,Ut,rt,at,ct);return er.update(Ee),er};var xt=PointCloud.prototype;xt.pickSlots=1,xt.setPickBase=function(Ee){this.pickId=Ee},xt.isTransparent=function(){if(this.hasAlpha)return!0;for(var Ee=0;Ee<3;++Ee)if(this.axesProject[Ee]&&this.projectHasAlpha)return!0;return!1},xt.isOpaque=function(){if(!this.hasAlpha)return!0;for(var Ee=0;Ee<3;++Ee)if(this.axesProject[Ee]&&!this.projectHasAlpha)return!0;return!1};var kt=[0,0],Lt=[0,0,0],Ut=[0,0,0],er=[0,0,0,1],tr=[0,0,0,1],rr=ft.slice(),ar=[0,0,0],Lr=[[0,0,0],[0,0,0]];function zeroVec(Ee){return Ee[0]=Ee[1]=Ee[2]=0,Ee}function augment(Ee,ze){return Ee[0]=ze[0],Ee[1]=ze[1],Ee[2]=ze[2],Ee[3]=1,Ee}function setComponent(Ee,ze,Be,Ue){return Ee[0]=ze[0],Ee[1]=ze[1],Ee[2]=ze[2],Ee[Be]=Ue,Ee}function drawProject(Ee,ze,Be,Ue){var We,$e=ze.axesProject,Qe=ze.gl,it=Ee.uniforms,at=Be.model||ft,ct=Be.view||ft,xt=Be.projection||ft,Qr=ze.axesBounds,on=function getClipBounds(Ee){for(var ze=Lr,Be=0;Be<2;++Be)for(var Ue=0;Ue<3;++Ue)ze[Be][Ue]=Math.max(Math.min(Ee[Be][Ue],1e8),-1e8);return ze}(ze.clipBounds);We=ze.axes&&ze.axes.lastCubeProps?ze.axes.lastCubeProps.axis:[1,1,1],kt[0]=2/Qe.drawingBufferWidth,kt[1]=2/Qe.drawingBufferHeight,Ee.bind(),it.view=ct,it.projection=xt,it.screenSize=kt,it.highlightId=ze.highlightId,it.highlightScale=ze.highlightScale,it.clipBounds=on,it.pickGroup=ze.pickId/255,it.pixelRatio=Ue;for(var sn=0;sn<3;++sn)if($e[sn]){it.scale=ze.projectScale[sn],it.opacity=ze.projectOpacity[sn];for(var cn=rr,un=0;un<16;++un)cn[un]=0;for(un=0;un<4;++un)cn[5*un]=1;cn[5*sn]=0,We[sn]<0?cn[12+sn]=Qr[0][sn]:cn[12+sn]=Qr[1][sn],rt(cn,at,cn),it.model=cn;var hn=(sn+1)%3,dn=(sn+2)%3,vn=zeroVec(Lt),yn=zeroVec(Ut);vn[hn]=1,yn[dn]=1;var _n=project(0,0,0,augment(er,vn)),Mn=project(0,0,0,augment(tr,yn));if(Math.abs(_n[1])>Math.abs(Mn[1])){var Cn=_n;_n=Mn,Mn=Cn,Cn=vn,vn=yn,yn=Cn;var En=hn;hn=dn,dn=En}_n[0]<0&&(vn[hn]=-1),Mn[1]>0&&(yn[dn]=-1);var Pn=0,In=0;for(un=0;un<4;++un)Pn+=Math.pow(at[4*hn+un],2),In+=Math.pow(at[4*dn+un],2);vn[hn]/=Math.sqrt(Pn),yn[dn]/=Math.sqrt(In),it.axes[0]=vn,it.axes[1]=yn,it.fragClipBounds[0]=setComponent(ar,on[0],sn,-1e8),it.fragClipBounds[1]=setComponent(ar,on[1],sn,1e8),ze.vao.bind(),ze.vao.draw(Qe.TRIANGLES,ze.vertexCount),ze.lineWidth>0&&(Qe.lineWidth(ze.lineWidth*Ue),ze.vao.draw(Qe.LINES,ze.lineVertexCount,ze.vertexCount)),ze.vao.unbind()}}var Qr=[[-1e8,-1e8,-1e8],[1e8,1e8,1e8]];function drawFull(Ee,ze,Be,Ue,We,$e,Qe){var rt=Be.gl;if(($e===Be.projectHasAlpha||Qe)&&drawProject(ze,Be,Ue,We),$e===Be.hasAlpha||Qe){Ee.bind();var it=Ee.uniforms;it.model=Ue.model||ft,it.view=Ue.view||ft,it.projection=Ue.projection||ft,kt[0]=2/rt.drawingBufferWidth,kt[1]=2/rt.drawingBufferHeight,it.screenSize=kt,it.highlightId=Be.highlightId,it.highlightScale=Be.highlightScale,it.fragClipBounds=Qr,it.clipBounds=Be.axes.bounds,it.opacity=Be.opacity,it.pickGroup=Be.pickId/255,it.pixelRatio=We,Be.vao.bind(),Be.vao.draw(rt.TRIANGLES,Be.vertexCount),Be.lineWidth>0&&(rt.lineWidth(Be.lineWidth*We),Be.vao.draw(rt.LINES,Be.lineVertexCount,Be.vertexCount)),Be.vao.unbind()}}function get_glyphData(Ee,ze,Be,We){var $e;$e=Array.isArray(Ee)?ze=this.pointCount||ze<0)return null;var Be=this.points[ze],Ue=this._selectResult;Ue.index=ze;for(var We=0;We<3;++We)Ue.position[We]=Ue.dataCoordinate[We]=Be[We];return Ue},xt.highlight=function(Ee){if(Ee){var ze=Ee.index,Be=255&ze,Ue=ze>>8&255,We=ze>>16&255;this.highlightId=[Be/255,Ue/255,We/255,0]}else this.highlightId=[1,1,1,1]},xt.update=function(Ee){if("perspective"in(Ee=Ee||{})&&(this.useOrtho=!Ee.perspective),"orthographic"in Ee&&(this.useOrtho=!!Ee.orthographic),"lineWidth"in Ee&&(this.lineWidth=Ee.lineWidth),"project"in Ee)if(Array.isArray(Ee.project))this.axesProject=Ee.project;else{var ze=!!Ee.project;this.axesProject=[ze,ze,ze]}if("projectScale"in Ee)if(Array.isArray(Ee.projectScale))this.projectScale=Ee.projectScale.slice();else{var Be=+Ee.projectScale;this.projectScale=[Be,Be,Be]}if(this.projectHasAlpha=!1,"projectOpacity"in Ee){if(Array.isArray(Ee.projectOpacity))this.projectOpacity=Ee.projectOpacity.slice();else{Be=+Ee.projectOpacity;this.projectOpacity=[Be,Be,Be]}for(var Ue=0;Ue<3;++Ue)this.projectOpacity[Ue]=fixOpacity(this.projectOpacity[Ue]),this.projectOpacity[Ue]<1&&(this.projectHasAlpha=!0)}this.hasAlpha=!1,"opacity"in Ee&&(this.opacity=fixOpacity(Ee.opacity),this.opacity<1&&(this.hasAlpha=!0)),this.dirty=!0;var We,$e,rt=Ee.position,it=Ee.font||"normal",at=Ee.alignment||[0,0];if(2===at.length)We=at[0],$e=at[1];else{We=[],$e=[];for(Ue=0;Ue0){var Mn=0,Cn=rr,En=[0,0,0,1],Pn=[0,0,0,1],In=Array.isArray(kt)&&Array.isArray(kt[0]),Bn=Array.isArray(er)&&Array.isArray(er[0]);e:for(Ue=0;Ue0?1-un[0][0]:ii<0?1+un[1][0]:1,ai*=ai>0?1-un[0][1]:ai<0?1+un[1][1]:1],si=sn.cells||[],li=sn.positions||[];for(on=0;on0?Be=Be.ushln(ct):ct<0&&(at=at.ushln(-ct));return rt(Be,at)}},f7c1:function(Ee,ze,Be){"use strict";var Ue=Be("fc26"),We=Be("d115"),$e=Be("a651"),Qe=Be("e5ac"),rt=Be("d2d9"),it=Be("b19b");function buttonDefaults(Ee,ze,Be,We){var $e=We.calendar;function coerce(Be,We){return Ue.coerce(Ee,ze,rt.buttons,Be,We)}if(coerce("visible")){var Qe=coerce("step");"all"!==Qe&&(!$e||"gregorian"===$e||"month"!==Qe&&"year"!==Qe?coerce("stepmode"):ze.stepmode="backward",coerce("count")),coerce("label")}}Ee.exports=function handleDefaults(Ee,ze,Be,at,ct){var ft=Ee.rangeselector||{},xt=$e.newContainer(ze,"rangeselector");function coerce(Ee,ze){return Ue.coerce(ft,xt,rt,Ee,ze)}if(coerce("visible",Qe(ft,xt,{name:"buttons",handleItemDefaults:buttonDefaults,calendar:ct}).length>0)){var kt=function getPosDflt(Ee,ze,Be){for(var Ue=Be.filter((function(Be){return ze[Be].anchor===Ee._id})),We=0,$e=0;$e=ze||Be<0||kt&&Ee-at>=$e}function timerExpired(){var Ee=now();if(shouldInvoke(Ee))return trailingEdge(Ee);rt=setTimeout(timerExpired,function remainingWait(Ee){var Be=ze-(Ee-it);return kt?xt(Be,$e-(Ee-at)):Be}(Ee))}function trailingEdge(Ee){return rt=void 0,Lt&&Ue?invokeFunc(Ee):(Ue=We=void 0,Qe)}function debounced(){var Ee=now(),Be=shouldInvoke(Ee);if(Ue=arguments,We=this,it=Ee,Be){if(void 0===rt)return leadingEdge(it);if(kt)return rt=setTimeout(timerExpired,ze),invokeFunc(it)}return void 0===rt&&(rt=setTimeout(timerExpired,ze)),Qe}return ze=toNumber(ze)||0,isObject(Be)&&(ct=!!Be.leading,$e=(kt="maxWait"in Be)?ft(toNumber(Be.maxWait)||0,ze):$e,Lt="trailing"in Be?!!Be.trailing:Lt),debounced.cancel=function cancel(){void 0!==rt&&clearTimeout(rt),at=0,Ue=it=We=rt=void 0},debounced.flush=function flush(){return void 0===rt?Qe:trailingEdge(now())},debounced}}).call(this,Be("c8ba"))},f846:function(Ee,ze,Be){"use strict";Ee.exports=Be("77bc")},f889:function(Ee,ze){Ee.exports=function ortho(Ee,ze,Be,Ue,We,$e,Qe){var rt=1/(ze-Be),it=1/(Ue-We),at=1/($e-Qe);return Ee[0]=-2*rt,Ee[1]=0,Ee[2]=0,Ee[3]=0,Ee[4]=0,Ee[5]=-2*it,Ee[6]=0,Ee[7]=0,Ee[8]=0,Ee[9]=0,Ee[10]=2*at,Ee[11]=0,Ee[12]=(ze+Be)*rt,Ee[13]=(We+Ue)*it,Ee[14]=(Qe+$e)*at,Ee[15]=1,Ee}},f8a5:function(Ee,ze){Ee.exports=function Epsilon(Ee){"number"!=typeof Ee&&(Ee=1e-10);var ze={epsilon:function(ze){return"number"==typeof ze&&(Ee=ze),Ee},pointAboveOrOnLine:function(ze,Be,Ue){var We=Be[0],$e=Be[1],Qe=Ue[0],rt=Ue[1],it=ze[0];return(Qe-We)*(ze[1]-$e)-(rt-$e)*(it-We)>=-Ee},pointBetween:function(ze,Be,Ue){var We=ze[1]-Be[1],$e=Ue[0]-Be[0],Qe=ze[0]-Be[0],rt=Ue[1]-Be[1],it=Qe*$e+We*rt;return!(it-Ee)},pointsSameX:function(ze,Be){return Math.abs(ze[0]-Be[0])Ee!=Qe-We>Ee&&($e-at)*(We-ct)/(Qe-ct)+at-Ue>Ee&&(rt=!rt),$e=at,Qe=ct}return rt}};return ze}},f8f6:function(Ee,ze,Be){"use strict";Ee.exports=function eventData(Ee,ze){return Ee.lon=ze.lon,Ee.lat=ze.lat,Ee}},f90d:function(Ee,ze,Be){"use strict";Ee.exports={attributes:Be("5c33"),supplyDefaults:Be("e5a0"),calc:Be("6aa3"),plot:Be("26dd"),moduleType:"trace",name:"table",basePlotModule:Be("182a"),categories:["noOpacity"],meta:{}}},f967:function(Ee,ze,Be){"use strict";var Ue=String.prototype.indexOf;Ee.exports=function(Ee){return Ue.call(this,Ee,arguments[1])>-1}},f973:function(Ee,ze,Be){"use strict";Ee.exports=Be("18ec")()?String.prototype.contains:Be("f967")},f977:function(Ee,ze,Be){"use strict";var Ue=Be("0103");Ee.exports=function str2RgbaArray(Ee){return Ee?Ue(Ee):[0,0,0,1]}},f98d:function(Ee,ze,Be){"use strict";function xformMatrix(Ee,ze){var Be,Ue,We=[0,0,0,0];for(Be=0;Be<4;++Be)for(Ue=0;Ue<4;++Ue)We[Ue]+=Ee[4*Be+Ue]*ze[Be];return We}Ee.exports=function project(Ee,ze){return xformMatrix(Ee.projection,xformMatrix(Ee.view,xformMatrix(Ee.model,[ze[0],ze[1],ze[2],1])))}},f9d8:function(Ee,ze,Be){Ee.exports={EPSILON:Be("cc12a"),create:Be("cf8b"),clone:Be("0365"),angle:Be("2325"),fromValues:Be("9573"),copy:Be("9070"),set:Be("fedf"),equals:Be("dc6f"),exactEquals:Be("4a35"),add:Be("d28d"),subtract:Be("a469"),sub:Be("f7c3"),multiply:Be("ef49"),mul:Be("d40d"),divide:Be("615d"),div:Be("cac1"),min:Be("ce83"),max:Be("a901"),floor:Be("9576"),ceil:Be("5714"),round:Be("3a19"),scale:Be("2a16"),scaleAndAdd:Be("738f"),distance:Be("fb8f"),dist:Be("99f7"),squaredDistance:Be("e13b"),sqrDist:Be("91ae"),length:Be("8be6"),len:Be("5053"),squaredLength:Be("2456"),sqrLen:Be("2c66"),negate:Be("2d1c"),inverse:Be("4bba"),normalize:Be("913b"),dot:Be("e448"),cross:Be("27a4"),lerp:Be("1b06"),random:Be("f28b"),transformMat4:Be("c29d"),transformMat3:Be("ff0b"),transformQuat:Be("26d1"),rotateX:Be("422c"),rotateY:Be("4f65"),rotateZ:Be("b73f"),forEach:Be("b882")}},f9f9:function(Ee,ze){Ee.exports=function fromValues(Ee,ze,Be,Ue){var We=new Float32Array(4);return We[0]=Ee,We[1]=ze,We[2]=Be,We[3]=Ue,We}},fa06:function(Ee,ze,Be){"use strict";var Ue=Be("107c"),We=Ue.marker,$e=Be("9092").extendFlat;["Area traces are deprecated!","Please switch to the *barpolar* trace type."].join(" ");Ee.exports={r:$e({},Ue.r,{}),t:$e({},Ue.t,{}),marker:{color:$e({},We.color,{}),size:$e({},We.size,{}),symbol:$e({},We.symbol,{}),opacity:$e({},We.opacity,{}),editType:"calc"}}},fa10:function(Ee,ze,Be){"use strict";var Ue=Be("0642"),We=Be("fc26"),$e=Be("a5c4"),Qe=Be("d115"),rt=We.fillText;function hoverOnBoxes(Ee,ze,Be,rt){var it,at,ct,ft,xt,kt,Lt,Ut,er,tr,rr,ar,Lr,Qr,on=Ee.cd,sn=Ee.xa,cn=Ee.ya,un=on[0].trace,hn=on[0].t,dn="violin"===un.type,vn=[],yn=hn.bdPos,_n=hn.wHover,shiftPos=function(Ee){return ct.c2l(Ee.pos)+hn.bPos-ct.c2l(kt)};dn&&"both"!==un.side?("positive"===un.side&&(er=function(Ee){var ze=shiftPos(Ee);return $e.inbox(ze,ze+_n,tr)},ar=yn,Lr=0),"negative"===un.side&&(er=function(Ee){var ze=shiftPos(Ee);return $e.inbox(ze-_n,ze,tr)},ar=0,Lr=yn)):(er=function(Ee){var ze=shiftPos(Ee);return $e.inbox(ze-_n,ze+_n,tr)},ar=Lr=yn),Qr=dn?function(Ee){return $e.inbox(Ee.span[0]-xt,Ee.span[1]-xt,tr)}:function(Ee){return $e.inbox(Ee.min-xt,Ee.max-xt,tr)},"h"===un.orientation?(xt=ze,kt=Be,Lt=Qr,Ut=er,it="y",ct=cn,at="x",ft=sn):(xt=Be,kt=ze,Lt=er,Ut=Qr,it="x",ct=sn,at="y",ft=cn);var Mn=Math.min(1,yn/Math.abs(ct.r2c(ct.range[1])-ct.r2c(ct.range[0])));function dxy(Ee){return(Lt(Ee)+Ut(Ee))/2}tr=Ee.maxHoverDistance-Mn,rr=Ee.maxSpikeDistance-Mn;var Cn=$e.getDistanceFunction(rt,Lt,Ut,dxy);if($e.getClosest(on,Cn,Ee),!1===Ee.index)return[];var En=on[Ee.index],Pn=un.line.color,In=(un.marker||{}).color;Qe.opacity(Pn)&&un.line.width?Ee.color=Pn:Qe.opacity(In)&&un.boxpoints?Ee.color=In:Ee.color=un.fillcolor,Ee[it+"0"]=ct.c2p(En.pos+hn.bPos-Lr,!0),Ee[it+"1"]=ct.c2p(En.pos+hn.bPos+ar,!0),Ee[it+"LabelVal"]=En.pos;var Bn=it+"Spike";Ee.spikeDistance=dxy(En)*rr/tr,Ee[Bn]=ct.c2p(En.pos,!0);var Hn={},Kn=["med","q1","q3","min","max"];(un.boxmean||(un.meanline||{}).visible)&&Kn.push("mean"),(un.boxpoints||un.points)&&Kn.push("lf","uf");for(var Jn=0;Jn0?Math.floor:Math.ceil,Cn=yn>0?Math.ceil:Math.floor,En=yn>0?Math.min:Math.max,Pn=yn>0?Math.max:Math.min,In=Mn(dn+_n),Bn=Cn(vn-_n),Hn=[[ft=hn(dn)]];for($e=In;$e*yn0;)at=ct.c2p(Lr[Ut]),Ut--;for(at0;)Lt=ft.c2p(Qr[Ut]),Ut--;if(Lt0)},ze.getMaxDepth=function(Ee){return Ee.maxdepth>=0?Ee.maxdepth:1/0},ze.isHeader=function(Ee,Be){return!(ze.isLeaf(Ee)||Ee.depth===Be._maxDepth-1)},ze.getParent=function(Ee,Be){return ze.findEntryWithLevel(Ee,getParentId(Be))},ze.listPath=function(Ee,Be){var Ue=Ee.parent;if(!Ue)return[];var We=Be?[Ue.data[Be]]:[Ue];return ze.listPath(Ue,Be).concat(We)},ze.getPath=function(Ee){return ze.listPath(Ee,"label").join("/")+"/"},ze.formatValue=Qe.formatPieValue,ze.formatPercent=function(Ee,ze){var Be=Ue.formatPercent(Ee,0);return"0%"===Be&&(Be=Qe.formatPiePercent(Ee,ze)),Be}},fb566:function(Ee,ze){Ee.exports=function clone(Ee){var ze=new Float32Array(16);return ze[0]=Ee[0],ze[1]=Ee[1],ze[2]=Ee[2],ze[3]=Ee[3],ze[4]=Ee[4],ze[5]=Ee[5],ze[6]=Ee[6],ze[7]=Ee[7],ze[8]=Ee[8],ze[9]=Ee[9],ze[10]=Ee[10],ze[11]=Ee[11],ze[12]=Ee[12],ze[13]=Ee[13],ze[14]=Ee[14],ze[15]=Ee[15],ze}},fb5a:function(Ee,ze,Be){"use strict";var Ue=Be("107c"),We=Be("94d5").hovertemplateAttrs,$e=Be("94d5").texttemplateAttrs,Qe=Be("f4e9"),rt=Be("9845"),it=Be("1a5e"),at=Be("9092").extendFlat,ct=rt({editType:"calc",arrayOk:!0,colorEditType:"style"}),ft=at({},Ue.marker.line.width,{dflt:0}),xt=at({width:ft,editType:"calc"},Qe("marker.line")),kt=at({line:xt,editType:"calc"},Qe("marker"),{opacity:{valType:"number",arrayOk:!0,dflt:1,min:0,max:1,editType:"style"}});Ee.exports={x:Ue.x,x0:Ue.x0,dx:Ue.dx,y:Ue.y,y0:Ue.y0,dy:Ue.dy,text:Ue.text,texttemplate:$e({editType:"plot"},{keys:it.eventDataKeys}),hovertext:Ue.hovertext,hovertemplate:We({},{keys:it.eventDataKeys}),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"none",arrayOk:!0,editType:"calc"},insidetextanchor:{valType:"enumerated",values:["end","middle","start"],dflt:"end",editType:"plot"},textangle:{valType:"angle",dflt:"auto",editType:"plot"},textfont:at({},ct,{}),insidetextfont:at({},ct,{}),outsidetextfont:at({},ct,{}),constraintext:{valType:"enumerated",values:["inside","outside","both","none"],dflt:"both",editType:"calc"},cliponaxis:at({},Ue.cliponaxis,{}),orientation:{valType:"enumerated",values:["v","h"],editType:"calc+clearAxisTypes"},base:{valType:"any",dflt:null,arrayOk:!0,editType:"calc"},offset:{valType:"number",dflt:null,arrayOk:!0,editType:"calc"},width:{valType:"number",dflt:null,min:0,arrayOk:!0,editType:"calc"},marker:kt,offsetgroup:{valType:"string",dflt:"",editType:"calc"},alignmentgroup:{valType:"string",dflt:"",editType:"calc"},selected:{marker:{opacity:Ue.selected.marker.opacity,color:Ue.selected.marker.color,editType:"style"},textfont:Ue.selected.textfont,editType:"style"},unselected:{marker:{opacity:Ue.unselected.marker.opacity,color:Ue.unselected.marker.color,editType:"style"},textfont:Ue.unselected.textfont,editType:"style"},r:Ue.r,t:Ue.t,_deprecated:{bardir:{valType:"enumerated",editType:"calc",values:["v","h"]}}}},fb8f:function(Ee,ze){Ee.exports=function distance(Ee,ze){var Be=ze[0]-Ee[0],Ue=ze[1]-Ee[1],We=ze[2]-Ee[2];return Math.sqrt(Be*Be+Ue*Ue+We*We)}},fc03:function(Ee,ze,Be){"use strict";var Ue=Be("1676"),We=Ue.createTubeMesh,$e=Be("fc26"),Qe=Be("765f").parseColorScale,rt=Be("c258").extractOpts,it=Be("569b"),at={xaxis:0,yaxis:1,zaxis:2};function Streamtube(Ee,ze){this.scene=Ee,this.uid=ze,this.mesh=null,this.data=null}var ct=Streamtube.prototype;function getDfltStartingPositions(Ee){var ze=Ee.length;return ze>2?Ee.slice(1,ze-1):2===ze?[(Ee[0]+Ee[1])/2]:Ee}function getBoundPads(Ee){var ze=Ee.length;return 1===ze?[.5,.5]:[Ee[1]-Ee[0],Ee[ze-1]-Ee[ze-2]]}function convert(Ee,ze){var Be=Ee.fullSceneLayout,We=Ee.dataScale,ct=ze._len,ft={};function toDataCoords(Ee,ze){var Ue=Be[ze],Qe=We[at[ze]];return $e.simpleMap(Ee,(function(Ee){return Ue.d2l(Ee)*Qe}))}if(ft.vectors=it(toDataCoords(ze._u,"xaxis"),toDataCoords(ze._v,"yaxis"),toDataCoords(ze._w,"zaxis"),ct),!ct)return{positions:[],cells:[]};var xt=toDataCoords(ze._Xs,"xaxis"),kt=toDataCoords(ze._Ys,"yaxis"),Lt=toDataCoords(ze._Zs,"zaxis");if(ft.meshgrid=[xt,kt,Lt],ft.gridFill=ze._gridFill,ze._slen)ft.startingPositions=it(toDataCoords(ze._startsX,"xaxis"),toDataCoords(ze._startsY,"yaxis"),toDataCoords(ze._startsZ,"zaxis"));else{for(var Ut=kt[0],er=getDfltStartingPositions(xt),tr=getDfltStartingPositions(Lt),rr=new Array(er.length*tr.length),ar=0,Lr=0;LrQe?rt:We(Ee)?Number(Ee):rt:rt},it.isIndex=function(Ee,ze){return!(void 0!==ze&&Ee>=ze)&&(We(Ee)&&Ee>=0&&Ee%1==0)},it.noop=Be("b778"),it.identity=Be("306c"),it.repeat=function(Ee,ze){for(var Be=new Array(ze),Ue=0;UeBe?Math.max(Be,Math.min(ze,Ee)):Math.max(ze,Math.min(Be,Ee))},it.bBoxIntersect=function(Ee,ze,Be){return Be=Be||0,Ee.left<=ze.right+Be&&ze.left<=Ee.right+Be&&Ee.top<=ze.bottom+Be&&ze.top<=Ee.bottom+Be},it.simpleMap=function(Ee,ze,Be,Ue){for(var We=Ee.length,$e=new Array(We),Qe=0;Qe=Math.pow(2,ze)?Ue>10?(it.warn("randstr failed uniqueness"),rt):randstr(Ee,ze,Be,(Ue||0)+1):rt},it.OptionControl=function(Ee,ze){Ee||(Ee={}),ze||(ze="opt");var Be={optionList:[],_newoption:function(Ue){Ue[ze]=Ee,Be[Ue.name]=Ue,Be.optionList.push(Ue)}};return Be["_"+ze]=Ee,Be},it.smooth=function(Ee,ze){if((ze=Math.round(ze)||0)<2)return Ee;var Be,Ue,We,$e,Qe=Ee.length,rt=2*Qe,it=2*ze-1,at=new Array(it),ct=new Array(Qe);for(Be=0;Be=rt&&(We-=rt*Math.floor(We/rt)),We<0?We=-1-We:We>=Qe&&(We=rt-1-We),$e+=Ee[We]*at[Ue];ct[Be]=$e}return ct},it.syncOrAsync=function(Ee,ze,Be){var Ue;function continueAsync(){return it.syncOrAsync(Ee,ze,Be)}for(;Ee.length;)if((Ue=(0,Ee.splice(0,1)[0])(ze))&&Ue.then)return Ue.then(continueAsync).then(void 0,it.promiseError);return Be&&Be(ze)},it.stripTrailingSlash=function(Ee){return"/"===Ee.substr(-1)?Ee.substr(0,Ee.length-1):Ee},it.noneOrAll=function(Ee,ze,Be){if(Ee){var Ue,We=!1,$e=!0;for(Ue=0;Ue0?ze:0}))},it.fillArray=function(Ee,ze,Be,Ue){if(Ue=Ue||it.identity,it.isArrayOrTypedArray(Ee))for(var We=0;We1?We+Qe[1]:"";if($e&&(Qe.length>1||rt.length>4||Be))for(;Ue.test(rt);)rt=rt.replace(Ue,"$1"+$e+"$2");return rt+it},it.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var vn=/^\w*$/;it.templateString=function(Ee,ze){var Be={};return Ee.replace(it.TEMPLATE_STRING_REGEX,(function(Ee,Ue){return vn.test(Ue)?ze[Ue]||"":(Be[Ue]=Be[Ue]||it.nestedProperty(ze,Ue).get,Be[Ue]()||"")}))};var yn={max:10,count:0,name:"hovertemplate"};it.hovertemplateString=function(){return templateFormatString.apply(yn,arguments)};var _n={max:10,count:0,name:"texttemplate"};it.texttemplateString=function(){return templateFormatString.apply(_n,arguments)};var Mn=/^[:|\|]/;function templateFormatString(Ee,ze,Be){var We=this,$e=arguments;ze||(ze={});var Qe={};return Ee.replace(it.TEMPLATE_STRING_REGEX,(function(Ee,rt,at){var ct,ft,xt,kt;for(xt=3;xt<$e.length;xt++)if(ct=$e[xt]){if(ct.hasOwnProperty(rt)){ft=ct[rt];break}if(vn.test(rt)||(ft=Qe[rt]||it.nestedProperty(ct,rt).get())&&(Qe[rt]=ft),void 0!==ft)break}if(void 0===ft&&We)return We.count=48&&Qe<=57,at=rt>=48&&rt<=57;if(it&&(Ue=10*Ue+Qe-48),at&&(We=10*We+rt-48),!it||!at){if(Ue!==We)return Ue-We;if(Qe!==rt)return Qe-rt}}return We-Ue};var Cn=2e9;it.seedPseudoRandom=function(){Cn=2e9},it.pseudoRandom=function(){var Ee=Cn;return Cn=(69069*Cn+1)%4294967296,Math.abs(Cn-Ee)<429496729?it.pseudoRandom():Cn/4294967296},it.fillText=function(Ee,ze,Be){var Ue=Array.isArray(Be)?function(Ee){Be.push(Ee)}:function(Ee){Be.text=Ee},We=it.extractOption(Ee,ze,"htx","hovertext");if(it.isValidTextValue(We))return Ue(We);var $e=it.extractOption(Ee,ze,"tx","text");return it.isValidTextValue($e)?Ue($e):void 0},it.isValidTextValue=function(Ee){return Ee||0===Ee},it.formatPercent=function(Ee,ze){ze=ze||0;for(var Be=(Math.round(100*Ee*Math.pow(10,ze))*Math.pow(.1,ze)).toFixed(ze)+"%",Ue=0;Ue1&&(at=1):at=0,"translate("+(We-at*(Be+Qe))+","+($e-at*(Ue+rt))+")"+(at<1?"scale("+at+")":"")+(it?"rotate("+it+(ze?"":" "+Be+" "+Ue)+")":"")},it.ensureUniformFontSize=function(Ee,ze){var Be=it.extendFlat({},ze);return Be.size=Math.max(ze.size,Ee._fullLayout.uniformtext.minsize||0),Be}},fc6a:function(Ee,ze,Be){var Ue=Be("44ad"),We=Be("1d80");Ee.exports=function(Ee){return Ue(We(Ee))}},fc7b:function(Ee,ze,Be){"use strict";var Ue=Be("13a0");ze.calc=function(Ee,ze){return Ue.calc(Ee,ze)},ze.crossTraceCalc=function(Ee){return Ue._runCrossTraceCalc("treemap",Ee)}},fcb2:function(Ee,ze,Be){"use strict";Ee.exports={moduleType:"component",name:"colorbar",attributes:Be("67c4"),supplyDefaults:Be("8f2a"),draw:Be("8dec").draw,hasColorbar:Be("7089")}},fcb3:function(Ee,ze,Be){"use strict";Ee.exports={min:"zmin",max:"zmax"}},fcb7:function(Ee,ze,Be){"use strict";var Ue=Be("19b2"),We=Be("09bd"),$e=Be("106b"),Qe=Be("4136"),rt=Be("70b4").calcMarkerSize,it=Be("9b68");Ee.exports=function calc(Ee,ze){var Be=ze._carpetTrace=it(Ee,ze);if(Be&&Be.visible&&"legendonly"!==Be.visible){var at;ze.xaxis=Be.xaxis,ze.yaxis=Be.yaxis;var ct,ft,xt=ze._length,kt=new Array(xt),Lt=!1;for(at=0;at max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 clipBounds[2];\nuniform sampler2D dashTexture;\nuniform float dashScale;\nuniform float opacity;\n\nvarying vec3 worldPosition;\nvarying float pixelArcLength;\nvarying vec4 fragColor;\n\nvoid main() {\n if (\n outOfRange(clipBounds[0], clipBounds[1], worldPosition) ||\n fragColor.a * opacity == 0.\n ) discard;\n\n float dashWeight = texture2D(dashTexture, vec2(dashScale * pixelArcLength, 0)).r;\n if(dashWeight < 0.5) {\n discard;\n }\n gl_FragColor = fragColor * opacity;\n}\n"]),rt=Ue(["precision highp float;\n#define GLSLIFY 1\n\n#define FLOAT_MAX 1.70141184e38\n#define FLOAT_MIN 1.17549435e-38\n\nlowp vec4 encode_float_1540259130(highp float v) {\n highp float av = abs(v);\n\n //Handle special cases\n if(av < FLOAT_MIN) {\n return vec4(0.0, 0.0, 0.0, 0.0);\n } else if(v > FLOAT_MAX) {\n return vec4(127.0, 128.0, 0.0, 0.0) / 255.0;\n } else if(v < -FLOAT_MAX) {\n return vec4(255.0, 128.0, 0.0, 0.0) / 255.0;\n }\n\n highp vec4 c = vec4(0,0,0,0);\n\n //Compute exponent and mantissa\n highp float e = floor(log2(av));\n highp float m = av * pow(2.0, -e) - 1.0;\n \n //Unpack mantissa\n c[1] = floor(128.0 * m);\n m -= c[1] / 128.0;\n c[2] = floor(32768.0 * m);\n m -= c[2] / 32768.0;\n c[3] = floor(8388608.0 * m);\n \n //Unpack exponent\n highp float ebias = e + 127.0;\n c[0] = floor(ebias / 2.0);\n ebias -= c[0] * 2.0;\n c[1] += floor(ebias) * 128.0; \n\n //Unpack sign bit\n c[0] += 128.0 * step(0.0, -v);\n\n //Scale back to range\n return c / 255.0;\n}\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform float pickId;\nuniform vec3 clipBounds[2];\n\nvarying vec3 worldPosition;\nvarying float pixelArcLength;\nvarying vec4 fragColor;\n\nvoid main() {\n if (outOfRange(clipBounds[0], clipBounds[1], worldPosition)) discard;\n\n gl_FragColor = vec4(pickId/255.0, encode_float_1540259130(pixelArcLength).xyz);\n}"]),it=[{name:"position",type:"vec3"},{name:"nextPosition",type:"vec3"},{name:"arcLength",type:"float"},{name:"lineWidth",type:"float"},{name:"color",type:"vec4"}];ze.createShader=function(Ee){return We(Ee,$e,Qe,null,it)},ze.createPickShader=function(Ee){return We(Ee,$e,rt,null,it)}},fd3b:function(Ee,ze,Be){var Ue=Be("0230"),We=Be("320c");function EthiopianCalendar(Ee){this.local=this.regionalOptions[Ee||""]||this.regionalOptions[""]}EthiopianCalendar.prototype=new Ue.baseCalendar,We(EthiopianCalendar.prototype,{name:"Ethiopian",jdEpoch:1724220.5,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Ethiopian",epochs:["BEE","EE"],monthNames:["Meskerem","Tikemet","Hidar","Tahesas","Tir","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehase","Pagume"],monthNamesShort:["Mes","Tik","Hid","Tah","Tir","Yek","Meg","Mia","Gen","Sen","Ham","Neh","Pag"],dayNames:["Ehud","Segno","Maksegno","Irob","Hamus","Arb","Kidame"],dayNamesShort:["Ehu","Seg","Mak","Iro","Ham","Arb","Kid"],dayNamesMin:["Eh","Se","Ma","Ir","Ha","Ar","Ki"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(Ee){var ze=this._validate(Ee,this.minMonth,this.minDay,Ue.local.invalidYear);return(Ee=ze.year()+(ze.year()<0?1:0))%4==3||Ee%4==-1},monthsInYear:function(Ee){return this._validate(Ee,this.minMonth,this.minDay,Ue.local.invalidYear||Ue.regionalOptions[""].invalidYear),13},weekOfYear:function(Ee,ze,Be){var Ue=this.newDate(Ee,ze,Be);return Ue.add(-Ue.dayOfWeek(),"d"),Math.floor((Ue.dayOfYear()-1)/7)+1},daysInMonth:function(Ee,ze){var Be=this._validate(Ee,ze,this.minDay,Ue.local.invalidMonth);return this.daysPerMonth[Be.month()-1]+(13===Be.month()&&this.leapYear(Be.year())?1:0)},weekDay:function(Ee,ze,Be){return(this.dayOfWeek(Ee,ze,Be)||7)<6},toJD:function(Ee,ze,Be){var We=this._validate(Ee,ze,Be,Ue.local.invalidDate);return(Ee=We.year())<0&&Ee++,We.day()+30*(We.month()-1)+365*(Ee-1)+Math.floor(Ee/4)+this.jdEpoch-1},fromJD:function(Ee){var ze=Math.floor(Ee)+.5-this.jdEpoch,Be=Math.floor((ze-Math.floor((ze+366)/1461))/365)+1;Be<=0&&Be--,ze=Math.floor(Ee)+.5-this.newDate(Be,1,1).toJD();var Ue=Math.floor(ze/30)+1,We=ze-30*(Ue-1)+1;return this.newDate(Be,Ue,We)}}),Ue.calendars.ethiopian=EthiopianCalendar},fd4c:function(Ee,ze,Be){"use strict";Ee.exports=Math.log2||function(Ee){return Math.log(Ee)*Math.LOG2E}},fd80:function(Ee,ze,Be){"use strict";var Ue=Be("6e58"),We=Be("bb71"),$e=Be("d115"),Qe=Be("83d1"),rt=Be("fc26"),it=Be("0379"),at=Be("a651").arrayEditor,ct=Be("63dc").LINE_SPACING,ft=Be("3d2e"),xt=Be("8ff1");function keyFunction(Ee){return Ee._index}function isActive(Ee,ze){return+Ee.attr(ft.menuIndexAttrName)===ze._index}function setActive(Ee,ze,Be,Ue,We,$e,Qe,rt){ze.active=Qe,at(Ee.layout,ft.name,ze).applyUpdate("active",Qe),"buttons"===ze.type?drawButtons(Ee,Ue,null,null,ze):"dropdown"===ze.type&&(We.attr(ft.menuIndexAttrName,"-1"),drawHeader(Ee,Ue,We,$e,ze),rt||drawButtons(Ee,Ue,We,$e,ze))}function drawHeader(Ee,ze,Be,Ue,We){var $e=rt.ensureSingle(ze,"g",ft.headerClassName,(function(Ee){Ee.style("pointer-events","all")})),it=We._dims,at=We.active,ct=We.buttons[at]||ft.blankHeaderOpts,xt={y:We.pad.t,yPad:0,x:We.pad.l,xPad:0,index:0},kt={width:it.headerWidth,height:it.headerHeight};$e.call(drawItem,We,ct,Ee).call(setItemPosition,We,xt,kt),rt.ensureSingle(ze,"text",ft.headerArrowClassName,(function(Ee){Ee.classed("user-select-none",!0).attr("text-anchor","end").call(Qe.font,We.font).text(ft.arrowSymbol[We.direction])})).attr({x:it.headerWidth-ft.arrowOffsetX+We.pad.l,y:it.headerHeight/2+ft.textOffsetY+We.pad.t}),$e.on("click",(function(){Be.call(removeAllButtons,String(isActive(Be,We)?-1:We._index)),drawButtons(Ee,ze,Be,Ue,We)})),$e.on("mouseover",(function(){$e.call(styleOnMouseOver)})),$e.on("mouseout",(function(){$e.call(styleOnMouseOut,We)})),Qe.setTranslate(ze,it.lx,it.ly)}function drawButtons(Ee,ze,Be,$e,Qe){Be||(Be=ze).attr("pointer-events","all");var it=function isFolded(Ee){return-1==+Ee.attr(ft.menuIndexAttrName)}(Be)&&"buttons"!==Qe.type?[]:Qe.buttons,at="dropdown"===Qe.type?ft.dropdownButtonClassName:ft.buttonClassName,ct=Be.selectAll("g."+at).data(rt.filterVisible(it)),xt=ct.enter().append("g").classed(at,!0),kt=ct.exit();"dropdown"===Qe.type?(xt.attr("opacity","0").transition().attr("opacity","1"),kt.transition().attr("opacity","0").remove()):kt.remove();var Lt=0,Ut=0,er=Qe._dims,tr=-1!==["up","down"].indexOf(Qe.direction);"dropdown"===Qe.type&&(tr?Ut=er.headerHeight+ft.gapButtonHeader:Lt=er.headerWidth+ft.gapButtonHeader),"dropdown"===Qe.type&&"up"===Qe.direction&&(Ut=-ft.gapButtonHeader+ft.gapButton-er.openHeight),"dropdown"===Qe.type&&"left"===Qe.direction&&(Lt=-ft.gapButtonHeader+ft.gapButton-er.openWidth);var rr={x:er.lx+Lt+Qe.pad.l,y:er.ly+Ut+Qe.pad.t,yPad:ft.gapButton,xPad:ft.gapButton,index:0},ar={l:rr.x+Qe.borderwidth,t:rr.y+Qe.borderwidth};ct.each((function(rt,it){var at=Ue.select(this);at.call(drawItem,Qe,rt,Ee).call(setItemPosition,Qe,rr),at.on("click",(function(){Ue.event.defaultPrevented||(rt.execute&&(rt.args2&&Qe.active===it?(setActive(Ee,Qe,0,ze,Be,$e,-1),We.executeAPICommand(Ee,rt.method,rt.args2)):(setActive(Ee,Qe,0,ze,Be,$e,it),We.executeAPICommand(Ee,rt.method,rt.args))),Ee.emit("plotly_buttonclicked",{menu:Qe,button:rt,active:Qe.active}))})),at.on("mouseover",(function(){at.call(styleOnMouseOver)})),at.on("mouseout",(function(){at.call(styleOnMouseOut,Qe),ct.call(styleButtons,Qe)}))})),ct.call(styleButtons,Qe),tr?(ar.w=Math.max(er.openWidth,er.headerWidth),ar.h=rr.y-ar.t):(ar.w=rr.x-ar.l,ar.h=Math.max(er.openHeight,er.headerHeight)),ar.direction=Qe.direction,$e&&(ct.size()?function drawScrollBox(Ee,ze,Be,Ue,We,$e){var Qe,rt,it,at=We.direction,ct="up"===at||"down"===at,xt=We._dims,kt=We.active;if(ct)for(rt=0,it=0;it0?[0]:[]);if($e.enter().append("g").classed(ft.containerClassName,!0).style("cursor","pointer"),$e.exit().each((function(){Ue.select(this).selectAll("g."+ft.headerGroupClassName).each(clearAutoMargin)})).remove(),0!==Be.length){var Qe=$e.selectAll("g."+ft.headerGroupClassName).data(Be,keyFunction);Qe.enter().append("g").classed(ft.headerGroupClassName,!0);for(var it=rt.ensureSingle($e,"g",ft.dropdownButtonGroupClassName,(function(Ee){Ee.style("pointer-events","all")})),at=0;at=0))throw new Error("precision must be a positive number");var Be=Math.pow(10,ze||0);return Math.round(Ee*Be)/Be},ze.radiansToLength=radiansToLength,ze.lengthToRadians=lengthToRadians,ze.lengthToDegrees=function lengthToDegrees(Ee,ze){return radiansToDegrees(lengthToRadians(Ee,ze))},ze.bearingToAzimuth=function bearingToAzimuth(Ee){var ze=Ee%360;return ze<0&&(ze+=360),ze},ze.radiansToDegrees=radiansToDegrees,ze.degreesToRadians=function degreesToRadians(Ee){return Ee%360*Math.PI/180},ze.convertLength=function convertLength(Ee,ze,Be){if(void 0===ze&&(ze="kilometers"),void 0===Be&&(Be="kilometers"),!(Ee>=0))throw new Error("length must be a positive number");return radiansToLength(lengthToRadians(Ee,ze),Be)},ze.convertArea=function convertArea(Ee,Be,Ue){if(void 0===Be&&(Be="meters"),void 0===Ue&&(Ue="kilometers"),!(Ee>=0))throw new Error("area must be a positive number");var We=ze.areaFactors[Be];if(!We)throw new Error("invalid original units");var $e=ze.areaFactors[Ue];if(!$e)throw new Error("invalid final units");return Ee/We*$e},ze.isNumber=isNumber,ze.isObject=function isObject(Ee){return!!Ee&&Ee.constructor===Object},ze.validateBBox=function validateBBox(Ee){if(!Ee)throw new Error("bbox is required");if(!Array.isArray(Ee))throw new Error("bbox must be an Array");if(4!==Ee.length&&6!==Ee.length)throw new Error("bbox must be an Array of 4 or 6 numbers");Ee.forEach((function(Ee){if(!isNumber(Ee))throw new Error("bbox must only contain numbers")}))},ze.validateId=function validateId(Ee){if(!Ee)throw new Error("id is required");if(-1===["string","number"].indexOf(typeof Ee))throw new Error("id must be a number or a string")},ze.radians2degrees=function radians2degrees(){throw new Error("method has been renamed to `radiansToDegrees`")},ze.degrees2radians=function degrees2radians(){throw new Error("method has been renamed to `degreesToRadians`")},ze.distanceToDegrees=function distanceToDegrees(){throw new Error("method has been renamed to `lengthToDegrees`")},ze.distanceToRadians=function distanceToRadians(){throw new Error("method has been renamed to `lengthToRadians`")},ze.radiansToDistance=function radiansToDistance(){throw new Error("method has been renamed to `radiansToLength`")},ze.bearingToAngle=function bearingToAngle(){throw new Error("method has been renamed to `bearingToAzimuth`")},ze.convertDistance=function convertDistance(){throw new Error("method has been renamed to `convertLength`")}},fec5:function(Ee,ze){Ee.exports=function identity(Ee){return Ee[0]=1,Ee[1]=0,Ee[2]=0,Ee[3]=0,Ee[4]=0,Ee[5]=1,Ee[6]=0,Ee[7]=0,Ee[8]=0,Ee[9]=0,Ee[10]=1,Ee[11]=0,Ee[12]=0,Ee[13]=0,Ee[14]=0,Ee[15]=1,Ee}},fedf:function(Ee,ze){Ee.exports=function set(Ee,ze,Be,Ue){return Ee[0]=ze,Ee[1]=Be,Ee[2]=Ue,Ee}},feed:function(Ee,ze,Be){"use strict";var Ue=Be("d115"),We=Be("de81");Ee.exports=function getTraceColor(Ee,ze){var Be,$e;if("lines"===Ee.mode)return(Be=Ee.line.color)&&Ue.opacity(Be)?Be:Ee.fillcolor;if("none"===Ee.mode)return Ee.fill?Ee.fillcolor:"";var Qe=ze.mcc||(Ee.marker||{}).color,rt=ze.mlcc||((Ee.marker||{}).line||{}).color;return($e=Qe&&Ue.opacity(Qe)?Qe:rt&&Ue.opacity(rt)&&(ze.mlw||((Ee.marker||{}).line||{}).width)?rt:"")?Ue.opacity($e)<.3?Ue.addOpacity($e,.3):$e:(Be=(Ee.line||{}).color)&&Ue.opacity(Be)&&We.hasLines(Ee)&&Ee.line.width?Be:Ee.fillcolor}},ff0b:function(Ee,ze){Ee.exports=function transformMat3(Ee,ze,Be){var Ue=ze[0],We=ze[1],$e=ze[2];return Ee[0]=Ue*Be[0]+We*Be[3]+$e*Be[6],Ee[1]=Ue*Be[1]+We*Be[4]+$e*Be[7],Ee[2]=Ue*Be[2]+We*Be[5]+$e*Be[8],Ee}},ff0d:function(Ee,ze,Be){"use strict";Ee.exports={attributes:Be("fb5a"),layoutAttributes:Be("37e3"),supplyDefaults:Be("1c1c").supplyDefaults,crossTraceDefaults:Be("1c1c").crossTraceDefaults,supplyLayoutDefaults:Be("ed16"),calc:Be("d78f"),crossTraceCalc:Be("0cec").crossTraceCalc,colorbar:Be("f3cf"),arraysToCalcdata:Be("424b"),plot:Be("c791").plot,style:Be("2df3").style,styleOnSelect:Be("2df3").styleOnSelect,hoverPoints:Be("ac97").hoverPoints,eventData:Be("d41c"),selectPoints:Be("7000"),moduleType:"trace",name:"bar",basePlotModule:Be("91cd"),categories:["bar-like","cartesian","svg","bar","oriented","errorBarsOK","showLegend","zoomScale"],animatable:!0,meta:{}}},ff49:function(Ee,ze,Be){"use strict";var Ue=Be("6e58"),We=Be("83d1"),$e=Be("0642"),Qe=Be("73c9");Ee.exports=function draw(Ee){var ze,Be,rt=Ee._fullLayout,it=[],at={},ct=[];for(Be=0;Be>1,Qe=compareCells(Ee[$e],ze);Qe<=0?(0===Qe&&(We=$e),Be=$e+1):Qe>0&&(Ue=$e-1)}return We}function incidence(Ee,ze){for(var Be=new Array(Ee.length),We=0,$e=Be.length;We<$e;++We)Be[We]=[];for(var Qe=[],rt=(We=0,ze.length);We=Ee.length||0!==compareCells(Ee[Lt],Qe)););}return Be}function skeleton(Ee,ze){if(ze<0)return[];for(var Be=[],We=(1<>>at&1&&it.push(We[at]);ze.push(it)}return normalize(ze)},ze.skeleton=skeleton,ze.boundary=function boundary(Ee){for(var ze=[],Be=0,Ue=Ee.length;Be-1,ze=(0,$e.default)(this._events).indexOf("success")>-1;if(this.jsonData.length)if(!this.labels||(0,$e.default)(this.labels).length){var Be=(0,We.default)((0,Ue.default)({},this.jsonData[0])),Qe=this.labels||this.$_createCsvLabelsConf(Be);if(this.csvLabels=this.showLabels?this.$_createCsvLabels(Qe,this.separator):"",this.csvData=this.$_createCsvContent(this.jsonData,Qe,this.separator),"error"!==this.csvLabels&&"error"!==this.csvData){var rt=this.csvLabels+this.csvData,it=this.$_downloadCsv("csv-"+this._uid,rt,this.csvTitle);it||this.handleError("An error has occured",Ee),it&&ze&&this.$emit("success",!0)}else this.handleError("Error: An error occured while parsing the data.",Ee)}else this.handleError("Error: Labels are empty",Ee);else this.handleError("Error: Data are empty",Ee)},handleError:function(Ee,ze){throw Ee}}}},function(Ee,ze,Be){"use strict";ze.__esModule=!0;var Ue=function r(Ee){return Ee&&Ee.__esModule?Ee:{default:Ee}}(Be(4));ze.default=Ue.default||function(Ee){for(var ze=1;zect;)for(var kt,Lt=it(arguments[ct++]),Ut=ft?We(Lt).concat(ft(Lt)):We(Lt),er=Ut.length,tr=0;er>tr;)kt=Ut[tr++],Ue&&!xt.call(Lt,kt)||(Be[kt]=Lt[kt]);return Be}:at},function(Ee,ze,Be){var Ue=Be(25),We=Be(38);Ee.exports=Object.keys||function(Ee){return Ue(Ee,We)}},function(Ee,ze,Be){var Ue=Be(22),We=Be(26),$e=Be(30)(!1),Qe=Be(34)("IE_PROTO");Ee.exports=function(Ee,ze){var Be,rt=We(Ee),it=0,at=[];for(Be in rt)Be!=Qe&&Ue(rt,Be)&&at.push(Be);for(;ze.length>it;)Ue(rt,Be=ze[it++])&&(~$e(at,Be)||at.push(Be));return at}},function(Ee,ze,Be){var Ue=Be(27),We=Be(29);Ee.exports=function(Ee){return Ue(We(Ee))}},function(Ee,ze,Be){var Ue=Be(28);Ee.exports=Object("z").propertyIsEnumerable(0)?Object:function(Ee){return"String"==Ue(Ee)?Ee.split(""):Object(Ee)}},function(Ee,ze){var Be={}.toString;Ee.exports=function(Ee){return Be.call(Ee).slice(8,-1)}},function(Ee,ze){Ee.exports=function(Ee){if(null==Ee)throw TypeError("Can't call method on "+Ee);return Ee}},function(Ee,ze,Be){var Ue=Be(26),We=Be(31),$e=Be(33);Ee.exports=function(Ee){return function(ze,Be,Qe){var rt,it=Ue(ze),at=We(it.length),ct=$e(Qe,at);if(Ee&&Be!=Be){for(;at>ct;)if((rt=it[ct++])!=rt)return!0}else for(;at>ct;ct++)if((Ee||ct in it)&&it[ct]===Be)return Ee||ct||0;return!Ee&&-1}}},function(Ee,ze,Be){var Ue=Be(32),We=Math.min;Ee.exports=function(Ee){return Ee>0?We(Ue(Ee),9007199254740991):0}},function(Ee,ze){var Be=Math.ceil,Ue=Math.floor;Ee.exports=function(Ee){return isNaN(Ee=+Ee)?0:(Ee>0?Ue:Be)(Ee)}},function(Ee,ze,Be){var Ue=Be(32),We=Math.max,$e=Math.min;Ee.exports=function(Ee,ze){return(Ee=Ue(Ee))<0?We(Ee+ze,0):$e(Ee,ze)}},function(Ee,ze,Be){var Ue=Be(35)("keys"),We=Be(37);Ee.exports=function(Ee){return Ue[Ee]||(Ue[Ee]=We(Ee))}},function(Ee,ze,Be){var Ue=Be(9),We=Be(8),$e="__core-js_shared__",Qe=We[$e]||(We[$e]={});(Ee.exports=function(Ee,ze){return Qe[Ee]||(Qe[Ee]=void 0!==ze?ze:{})})("versions",[]).push({version:Ue.version,mode:Be(36)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(Ee,ze){Ee.exports=!0},function(Ee,ze){var Be=0,Ue=Math.random();Ee.exports=function(Ee){return"Symbol(".concat(void 0===Ee?"":Ee,")_",(++Be+Ue).toString(36))}},function(Ee,ze){Ee.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(Ee,ze){ze.f=Object.getOwnPropertySymbols},function(Ee,ze){ze.f={}.propertyIsEnumerable},function(Ee,ze,Be){var Ue=Be(29);Ee.exports=function(Ee){return Object(Ue(Ee))}},function(Ee,ze,Be){Ee.exports={default:Be(43),__esModule:!0}},function(Ee,ze,Be){Be(44);var Ue=Be(9).Object;Ee.exports=function(Ee){return Ue.getOwnPropertyNames(Ee)}},function(Ee,ze,Be){Be(45)("getOwnPropertyNames",(function(){return Be(46).f}))},function(Ee,ze,Be){var Ue=Be(7),We=Be(9),$e=Be(18);Ee.exports=function(Ee,ze){var Be=(We.Object||{})[Ee]||Object[Ee],Qe={};Qe[Ee]=ze(Be),Ue(Ue.S+Ue.F*$e((function(){Be(1)})),"Object",Qe)}},function(Ee,ze,Be){var Ue=Be(26),We=Be(47).f,$e={}.toString,Qe="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];Ee.exports.f=function(Ee){return Qe&&"[object Window]"==$e.call(Ee)?function(Ee){try{return We(Ee)}catch(Ee){return Qe.slice()}}(Ee):We(Ue(Ee))}},function(Ee,ze,Be){var Ue=Be(25),We=Be(38).concat("length","prototype");ze.f=Object.getOwnPropertyNames||function(Ee){return Ue(Ee,We)}},function(Ee,ze,Be){Ee.exports={default:Be(49),__esModule:!0}},function(Ee,ze,Be){Be(50),Ee.exports=Be(9).Object.keys},function(Ee,ze,Be){var Ue=Be(41),We=Be(24);Be(45)("keys",(function(){return function(Ee){return We(Ue(Ee))}}))},function(Ee,ze,Be){"use strict";function r(Ee){return Ee&&Ee.__esModule?Ee:{default:Ee}}var Ue=r(Be(52)),We=r(Be(48));Ee.exports={methods:{$_createCsvLabelsConf:function(Ee){var ze={};return Ee.map((function(Ee,Be){ze[Ee]={title:Ee}})),ze},$_createCsvLabels:function(Ee,ze){var Be="",Ue="";try{(0,We.default)(Ee).map((function(Ue,We){Be+='"'+Ee[Ue].title+'"'+ze})),Ue+=(Be=Be.slice(0,-1))+"\r\n"}catch(Ee){Ue="error"}finally{return Ue}},$_createCsvContent:function(Ee,ze,Be){var $e="",Qe="",rt="";try{Ee.map((function(Ee,it){$e="",(0,We.default)(ze).map((function(ze,We){rt=(0,Ue.default)(Ee[ze]),$e+="number"===rt||"float"===rt?Ee[ze]+Be:'"'+Ee[ze]+'"'+Be})),$e=$e.slice(0,-1),Qe+=$e+"\r\n"}))}catch(Ee){Qe="error"}finally{return Qe}},$_downloadCsv:function(Ee,ze,Be){try{var Ue="data:text/csv;charset=utf-8,\ufeff"+encodeURIComponent(ze),We=document.createElement("a");return We.id="csv-"+Ee,We.href=Ue,document.body.appendChild(We),document.getElementById(We.id).style.visibility="hidden",document.getElementById(We.id).download=Be+".csv",document.body.appendChild(We),document.getElementById(We.id).click(),setTimeout((function(){document.body.removeChild(We)})),!0}catch(Ee){return!1}}}}},function(Ee,ze,Be){"use strict";function r(Ee){return Ee&&Ee.__esModule?Ee:{default:Ee}}ze.__esModule=!0;var Ue=r(Be(53)),We=r(Be(72)),$e="function"==typeof We.default&&"symbol"==typeof Ue.default?function(Ee){return typeof Ee}:function(Ee){return Ee&&"function"==typeof We.default&&Ee.constructor===We.default&&Ee!==We.default.prototype?"symbol":typeof Ee};ze.default="function"==typeof We.default&&"symbol"===$e(Ue.default)?function(Ee){return void 0===Ee?"undefined":$e(Ee)}:function(Ee){return Ee&&"function"==typeof We.default&&Ee.constructor===We.default&&Ee!==We.default.prototype?"symbol":void 0===Ee?"undefined":$e(Ee)}},function(Ee,ze,Be){Ee.exports={default:Be(54),__esModule:!0}},function(Ee,ze,Be){Be(55),Be(67),Ee.exports=Be(71).f("iterator")},function(Ee,ze,Be){"use strict";var Ue=Be(56)(!0);Be(57)(String,"String",(function(Ee){this._t=String(Ee),this._i=0}),(function(){var Ee,ze=this._t,Be=this._i;return Be>=ze.length?{value:void 0,done:!0}:(Ee=Ue(ze,Be),this._i+=Ee.length,{value:Ee,done:!1})}))},function(Ee,ze,Be){var Ue=Be(32),We=Be(29);Ee.exports=function(Ee){return function(ze,Be){var $e,Qe,rt=String(We(ze)),it=Ue(Be),at=rt.length;return it<0||it>=at?Ee?"":void 0:($e=rt.charCodeAt(it))<55296||$e>56319||it+1===at||(Qe=rt.charCodeAt(it+1))<56320||Qe>57343?Ee?rt.charAt(it):$e:Ee?rt.slice(it,it+2):Qe-56320+($e-55296<<10)+65536}}},function(Ee,ze,Be){"use strict";var Ue=Be(36),We=Be(7),$e=Be(58),Qe=Be(12),rt=Be(59),it=Be(60),at=Be(64),ct=Be(66),ft=Be(65)("iterator"),xt=!([].keys&&"next"in[].keys()),kt="keys",Lt="values",h=function(){return this};Ee.exports=function(Ee,ze,Be,Ut,er,tr,rr){it(Be,ze,Ut);var ar,Lr,Qr,j=function(Ee){if(!xt&&Ee in un)return un[Ee];switch(Ee){case kt:case Lt:return function(){return new Be(this,Ee)}}return function(){return new Be(this,Ee)}},on=ze+" Iterator",sn=er==Lt,cn=!1,un=Ee.prototype,hn=un[ft]||un["@@iterator"]||er&&un[er],dn=hn||j(er),vn=er?sn?j("entries"):dn:void 0,yn="Array"==ze&&un.entries||hn;if(yn&&(Qr=ct(yn.call(new Ee)))!==Object.prototype&&Qr.next&&(at(Qr,on,!0),Ue||"function"==typeof Qr[ft]||Qe(Qr,ft,h)),sn&&hn&&hn.name!==Lt&&(cn=!0,dn=function(){return hn.call(this)}),Ue&&!rr||!xt&&!cn&&un[ft]||Qe(un,ft,dn),rt[ze]=dn,rt[on]=h,er)if(ar={values:sn?dn:j(Lt),keys:tr?dn:j(kt),entries:vn},rr)for(Lr in ar)Lr in un||$e(un,Lr,ar[Lr]);else We(We.P+We.F*(xt||cn),ze,ar);return ar}},function(Ee,ze,Be){Ee.exports=Be(12)},function(Ee,ze){Ee.exports={}},function(Ee,ze,Be){"use strict";var Ue=Be(61),We=Be(21),$e=Be(64),Qe={};Be(12)(Qe,Be(65)("iterator"),(function(){return this})),Ee.exports=function(Ee,ze,Be){Ee.prototype=Ue(Qe,{next:We(1,Be)}),$e(Ee,ze+" Iterator")}},function(Ee,ze,Be){var Ue=Be(14),We=Be(62),$e=Be(38),Qe=Be(34)("IE_PROTO"),c=function(){},rt="prototype",s=function(){var Ee,ze=Be(19)("iframe"),Ue=$e.length;for(ze.style.display="none",Be(63).appendChild(ze),ze.src="javascript:",(Ee=ze.contentWindow.document).open(),Ee.write(" diff --git a/frontend/src/views/main/Dashboard.vue b/frontend/src/views/main/Dashboard.vue index 7fd1159..b6eacf2 100644 --- a/frontend/src/views/main/Dashboard.vue +++ b/frontend/src/views/main/Dashboard.vue @@ -47,45 +47,108 @@ + - - + + + + - + + + - + + + - - + + + + - - + + + + - + + + + - + + - - @@ -105,10 +168,10 @@ import ParamsPanel from '@/components/data/ParamsPanel.vue'; import StatsTable from '@/components/data/StatsTable.vue'; import TraceList from '@/components/data/TraceList.vue'; - import { readActiveTraceIDs, readTraces } from '@/store/data/getters'; import { Plotly } from 'vue-plotly'; import { Component, Vue } from 'vue-property-decorator'; +import VueResizable from 'vue-resizable'; @Component({ components: { @@ -123,10 +186,18 @@ import { Component, Vue } from 'vue-property-decorator'; StatsTable, CumulativeESS, Pairwise, + VueResizable, }, }) export default class Dashboard extends Vue { public tab = null; + public tabHeight = 450; + public tabWidth = null; + + public eHandler(data) { + this.tabWidth = data.width; + this.tabHeight = data.height; + } get activeTraceIDs() { const IDs = readActiveTraceIDs(this.$store); @@ -148,3 +219,11 @@ export default class Dashboard extends Vue { } + + \ No newline at end of file