/
chunk-5cedae10.b1aed77d.js
2 lines (2 loc) · 222 KB
/
chunk-5cedae10.b1aed77d.js
1
2
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5cedae10"],{"0b75":function(t,e,i){},"0bc6":function(t,e,i){},"129f":function(t,e){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t===1/e:t!=t&&e!=e}},1606:function(t,e,i){},"19ba":function(t,e,i){"use strict";i.r(e);var s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-app",{attrs:{id:"project"}},["loading"==t.status&&0==t.error.length?i("v-overlay",{attrs:{light:""}},[i("v-progress-circular",{attrs:{indeterminate:"",color:"lime",size:"64"}})],1):t._e(),t.error.length>0?i("Error",{attrs:{error:t.error}}):[i("v-app-bar",{attrs:{app:"",dense:"","collapse-on-scroll":"","clipped-left":"",color:"green",dark:""}},[i("v-app-bar-nav-icon",{on:{click:function(e){e.stopPropagation(),t.expandedSidebar=!t.expandedSidebar}}}),t.project?i("v-toolbar-title",[t._v(t._s(t.project.title))]):t._e(),i("v-spacer"),i("v-btn",{attrs:{icon:"",title:"Home Page",to:"/"}},[i("v-icon",[t._v("mdi-home-circle")])],1)],1),i("LeftSidebar",{attrs:{map:t.map,project:t.project,drawer:t.expandedSidebar,showIdentify:t.showIdentify},on:{setLayerVisibility:t.setLayerVisibility}}),i("v-main",{class:t.attributeTableTypename?"show-table":""},[i("v-container",{class:"fill-height activetool-"+t.activeTool,attrs:{id:"map",fluid:""}},[i("v-layout",[i("l-map",{directives:[{name:"resize",rawName:"v-resize",value:t.onResize,expression:"onResize"}],ref:"map",staticStyle:{"z-index":"0"},on:{ready:t.setMap}},[t.project&&t.project.capabilities.wmsOutputCrsList.includes("EPSG:3857")?i("l-tile-layer",{attrs:{visible:"openstreetmap"==t.baseMap,url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",attribution:"© <a href='https://www.openstreetmap.org/copyright'>OpenStreetMap</a> contributors"}}):t._e()],1)],1)],1)],1),t.attributeTableTypename?i("AttributeTable",{class:t.expandedSidebar?"mb-4 attributetable-small":"mb-4",attrs:{project:t.project,map:this.map}}):t._e(),i("MapToolbar",{staticClass:"map-toolbar",attrs:{map:t.map,project:t.project}}),i("v-footer",{attrs:{color:"lime",app:""}},[t._v(" Hand crafted with "),i("v-icon",{attrs:{color:"red"}},[t._v("mdi-heart")]),t._v("by "),i("a",{attrs:{href:"https://www.qcooperative.net",target:"_blank"}},[t._v("QCooperative")])],1)]],2)},a=[],n=(i("99af"),i("4160"),i("caad"),i("d81d"),i("07ac"),i("ac1f"),i("2532"),i("1276"),i("159b"),i("b85c")),r=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-layout",{attrs:{column:""}},[i("v-btn",{staticClass:"btn-fix",attrs:{dark:"",fab:"",small:"",color:"orange"},on:{click:function(e){return t.map.zoomIn()}}},[i("v-icon",[t._v("mdi-plus")])],1),i("v-btn",{staticClass:"btn-fix mt-1",attrs:{dark:"",fab:"",small:"",color:"orange"},on:{click:function(e){return t.map.zoomOut()}}},[i("v-icon",[t._v("mdi-minus")])],1),i("v-btn",{staticClass:"btn-fix mt-3",class:{active:"identify"==t.activeTool},attrs:{depressed:"identify"==t.activeTool,dark:"",fab:"",small:"",color:"blue"},on:{click:function(e){return t.onIdentifyToolClicked()}}},[i("v-icon",[t._v("mdi-information-outline")])],1)],1)},o=[],h={name:"MapToolbar",props:{map:Object},methods:{onIdentifyToolClicked:function(){this.$store.state.activeTool="identify"==this.activeTool?"":"identify"}},computed:{activeTool:function(){return this.$store.state.activeTool}}},l=h,c=(i("4a66"),i("2877")),u=i("6544"),d=i.n(u),p=i("8336"),f=i("132d"),m=(i("20f6"),i("e8f2")),g=Object(m["a"])("layout"),v=Object(c["a"])(l,r,o,!1,null,"2fb0ba75",null),b=v.exports;d()(v,{VBtn:p["a"],VIcon:f["a"],VLayout:g});var y=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-navigation-drawer",{attrs:{absolute:"","hide-overlay":"",stateless:"",width:"300px"},model:{value:t.drawer,callback:function(e){t.drawer=e},expression:"drawer"}},[i("v-tabs",{staticClass:"mt-12 mb-10",attrs:{grow:""},model:{value:t.activeTab,callback:function(e){t.activeTab=e},expression:"activeTab"}},[i("v-tab",{key:"0"},[t._v("Legend")]),t.showIdentify?i("v-tab",{key:"1"},[t._v("Results")]):t._e(),i("v-tab-item",{key:"0"},[i("LayerTree",{attrs:{project:t.project},on:{setLayerVisibility:t.setLayerVisibility}})],1),t.showIdentify?i("v-tab-item",{key:"1"},[i("IdentifyResults",{attrs:{map:t.map}})],1):t._e()],1)],1)},M=[],x=function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.project?i("v-card",{staticClass:"mx-auto layertree-container",attrs:{flat:""}},[i("v-card-text",[i("div",{staticClass:"base-map"},[i("div",{staticClass:"v-treeview-node"},[i("v-icon",{attrs:{color:"light-green lighten-3"}},[t._v("mdi-checkerboard")]),i("v-tooltip",{attrs:{top:""},scopedSlots:t._u([{key:"activator",fn:function(e){var s=e.on;return[i("v-btn",t._g({attrs:{icon:""},on:{click:function(e){return t.toggleBaseMap("openstreetmap")}}},s),[i("v-icon",[t._v("mdi-checkbox-"+t._s("openstreetmap"==t.baseMap?"marked":"blank-outline"))])],1)]}}],null,!1,1060783928)},[t._v(" Toggle base map visibility ")]),i("span",{staticClass:"group-title"},[t._v("OpenStreetMap")])],1)]),t._l(t.project.toc.children,(function(e,s){return i("div",{key:t.uniqueKey(s),attrs:{id:"layertree"}},[i("LayerTreeNode",{attrs:{node:e},on:{toggleLayer:t.toggleLayer,toggleGroup:t.toggleGroup}})],1)}))],2)],1):t._e()},_=[],w=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{attrs:{id:t.node.tree_id_hash}},[t.node.is_layer&&"vector"==t.node.layer_type?i("div",{staticClass:"v-treeview-node"},[i("div",{staticClass:"node-title"},[t.node.children.length?i("v-icon",{attrs:{"data-toggle":"collapse","aria-expanded":t.node.expanded?"true":"false","aria-controls":"'node-' + node.tree_id_hash"},on:{click:function(e){t.node.expanded=!t.node.expanded}}},[t._v("mdi-menu-"+t._s(t.node.expanded?"down":"right"))]):t._e(),i("v-tooltip",{attrs:{top:""},scopedSlots:t._u([{key:"activator",fn:function(e){var s=e.on;return[i("v-btn",t._g({attrs:{icon:""},on:{click:function(e){return t.toggleLayer(t.node.tree_id_hash)}}},s),[i("v-icon",[t._v("mdi-checkbox-"+t._s(t.node.visible?"marked":"blank-outline"))])],1)]}}],null,!1,242933132)},[t._v(" Toggle layer visibility ")]),i("v-tooltip",{attrs:{top:""},scopedSlots:t._u([{key:"activator",fn:function(e){var s=e.on;return[i("span",t._g({staticClass:"group-title",on:{click:function(e){t.node.expanded=!t.node.expanded},contextmenu:function(e){return e.preventDefault(),e.stopPropagation(),t.showContextMenu(e)}}},s),[t._v(t._s(t.node.title))])]}}],null,!1,138915419)},[i("div",[t._v(" "+t._s(t.node.title)+" "),i("i",[t._v("("+t._s(t.node.typename)+")")])]),t.node.description?i("div",[t._v(t._s(t.node.description))]):t._e()])],1),"vector"==t.node.layer_type&&t.node.children.length?[i("v-expand-transition",[t.node.expanded?i("div",{staticClass:"vector-legend",on:{contextmenu:function(t){t.preventDefault(),t.stopPropagation()}}},t._l(t.node.children,(function(e){return i("div",{key:e.title,staticClass:"v-treeview-node layer-legend",attrs:{id:"node-"+t.node.tree_id_hash,"aria-expanded":t.node.expanded?"true":"false"}},[i("div",{staticClass:"v-treeview-node vector-legend-entry"},[e.icon?i("img",{staticClass:"symbol",attrs:{src:"data:image/png;base64,"+e.icon}}):i("span",{staticClass:"symbol"}),i("v-tooltip",{attrs:{top:""},scopedSlots:t._u([{key:"activator",fn:function(s){var a=s.on;return[i("span",t._g({staticClass:"vector-legend-entry-label"},a),[t._v(t._s(e.title))])]}}],null,!0)},[i("div",[t._v(t._s(e.title))])])],1)])})),0):t._e()])]:t._e()],2):i("div",["raster"!=t.node.layer_type?i("v-icon",{on:{click:function(e){t.node.expanded=!t.node.expanded}}},[t._v("mdi-menu-"+t._s(t.node.expanded?"down":"right"))]):i("v-icon",{attrs:{color:"light-green lighten-3"}},[t._v("mdi-checkerboard")]),i("v-tooltip",{attrs:{top:""},scopedSlots:t._u([{key:"activator",fn:function(e){var s=e.on;return[i("v-btn",t._g({attrs:{icon:""},on:{click:function(e){return t.toggleGroup(t.node.tree_id_hash)}}},s),[i("v-icon",[t._v("mdi-checkbox-"+t._s(t.node.visible?"marked":"blank-outline"))])],1)]}}])},[t._v(" Toggle group visibility ")]),i("v-tooltip",{attrs:{top:""},scopedSlots:t._u([{key:"activator",fn:function(e){var s=e.on;return[i("span",t._g({staticClass:"group-title",on:{click:function(e){t.node.expanded=!t.node.expanded},contextmenu:function(t){t.preventDefault(),t.stopPropagation()}}},s),[t._v(t._s(t.node.title))])]}}])},[i("div",[t._v(t._s(t.node.title))]),t.node.description?i("div",[t._v(t._s(t.node.description))]):t._e()]),i("v-expand-transition",[i("div",{directives:[{name:"show",rawName:"v-show",value:t.node.expanded,expression:"node.expanded"}],class:"group-container group-father-of-"+t.node.children.length,attrs:{id:"node-"+t.node.tree_id_hash}},t._l(t.node.children,(function(e){return i("LayerTreeNode",{key:e.tree_id_hash,attrs:{node:e},on:{toggleLayer:t.toggleLayer,toggleGroup:t.toggleGroup}})})),1)])],1),i("v-menu",{attrs:{value:t.showMenu,"close-on-content-click":!0,"close-on-click":!1,"position-x":t.x,"position-y":t.y,absolute:"","offset-y":""}},[i("div",{on:{mouseleave:t.onMouseLeave}},[i("v-list",t._l(t.options,(function(e){return i("v-list-item",{key:e.name,on:{click:function(i){return t.onContextMenuOptionClicked(e.name,t.node.typename)}}},[i("v-list-item-icon",[i("v-icon",{domProps:{textContent:t._s(e.icon)}})],1),i("v-list-item-title",[t._v(t._s(e.title))])],1)})),1)],1)])],1)},S=[],O={name:"LayerTreeNode",props:{node:{}},data:function(){return{x:0,y:0,showMenu:!0}},mounted:function(){this.showMenu=!1},methods:{toggleLayer:function(t){this.$emit("toggleLayer",t)},toggleGroup:function(t){this.$emit("toggleGroup",t)},onContextMenuOptionClicked:function(t,e){"attributes"==t?this.$store.commit("setAttributeTableLayerTypename",e):console.log("Menu item:",t,e)},showContextMenu:function(t){var e=this;t.preventDefault(),this.showMenu=!1,this.x=t.clientX,this.y=t.clientY,this.$nextTick((function(){e.showMenu=!0}))},onMouseLeave:function(){this.showMenu=!1}},computed:{options:function(){var t=[];return this.node["wfs_enabled"]&&t.push({title:"Attribute Table",name:"attributes",icon:"mdi-table-large"}),t}}},I=O,C=(i("eb08"),i("0789")),A=i("8860"),j=i("da13"),k=i("34c3"),E=i("5d23"),T=(i("7db0"),i("a630"),i("c975"),i("a9e3"),i("3ca3"),i("498a"),i("ade3")),P=i("2909"),$=i("5530"),B=(i("ee6f"),i("480e")),D=i("4ad4"),L=i("16b7"),N=i("b848"),R=i("75eb"),V=(i("d3b7"),i("fe6c")),F=i("21be"),z=i("58df"),q=i("80d2"),G=Object(z["a"])(F["a"],V["a"],D["a"]),W=G.extend().extend({name:"menuable",props:{allowOverflow:Boolean,light:Boolean,dark:Boolean,maxWidth:{type:[Number,String],default:"auto"},minWidth:[Number,String],nudgeBottom:{type:[Number,String],default:0},nudgeLeft:{type:[Number,String],default:0},nudgeRight:{type:[Number,String],default:0},nudgeTop:{type:[Number,String],default:0},nudgeWidth:{type:[Number,String],default:0},offsetOverflow:Boolean,openOnClick:Boolean,positionX:{type:Number,default:null},positionY:{type:Number,default:null},zIndex:{type:[Number,String],default:null}},data:function(){return{absoluteX:0,absoluteY:0,activatedBy:null,activatorFixed:!1,dimensions:{activator:{top:0,left:0,bottom:0,right:0,width:0,height:0,offsetTop:0,scrollHeight:0,offsetLeft:0},content:{top:0,left:0,bottom:0,right:0,width:0,height:0,offsetTop:0,scrollHeight:0}},hasJustFocused:!1,hasWindow:!1,inputActivator:!1,isContentActive:!1,pageWidth:0,pageYOffset:0,stackClass:"v-menu__content--active",stackMinZIndex:6}},computed:{computedLeft:function(){var t=this.dimensions.activator,e=this.dimensions.content,i=(!1!==this.attach?t.offsetLeft:t.left)||0,s=Math.max(t.width,e.width),a=0;if(a+=this.left?i-(s-t.width):i,this.offsetX){var n=isNaN(Number(this.maxWidth))?t.width:Math.min(t.width,Number(this.maxWidth));a+=this.left?-n:t.width}return this.nudgeLeft&&(a-=parseInt(this.nudgeLeft)),this.nudgeRight&&(a+=parseInt(this.nudgeRight)),a},computedTop:function(){var t=this.dimensions.activator,e=this.dimensions.content,i=0;return this.top&&(i+=t.height-e.height),!1!==this.attach?i+=t.offsetTop:i+=t.top+this.pageYOffset,this.offsetY&&(i+=this.top?-t.height:t.height),this.nudgeTop&&(i-=parseInt(this.nudgeTop)),this.nudgeBottom&&(i+=parseInt(this.nudgeBottom)),i},hasActivator:function(){return!!this.$slots.activator||!!this.$scopedSlots.activator||!!this.activator||!!this.inputActivator}},watch:{disabled:function(t){t&&this.callDeactivate()},isActive:function(t){this.disabled||(t?this.callActivate():this.callDeactivate())},positionX:"updateDimensions",positionY:"updateDimensions"},beforeMount:function(){this.hasWindow="undefined"!==typeof window},methods:{absolutePosition:function(){return{offsetTop:0,offsetLeft:0,scrollHeight:0,top:this.positionY||this.absoluteY,bottom:this.positionY||this.absoluteY,left:this.positionX||this.absoluteX,right:this.positionX||this.absoluteX,height:0,width:0}},activate:function(){},calcLeft:function(t){return Object(q["g"])(!1!==this.attach?this.computedLeft:this.calcXOverflow(this.computedLeft,t))},calcTop:function(){return Object(q["g"])(!1!==this.attach?this.computedTop:this.calcYOverflow(this.computedTop))},calcXOverflow:function(t,e){var i=t+e-this.pageWidth+12;return t=(!this.left||this.right)&&i>0?Math.max(t-i,0):Math.max(t,12),t+this.getOffsetLeft()},calcYOverflow:function(t){var e=this.getInnerHeight(),i=this.pageYOffset+e,s=this.dimensions.activator,a=this.dimensions.content.height,n=t+a,r=i<n;return r&&this.offsetOverflow&&s.top>a?t=this.pageYOffset+(s.top-a):r&&!this.allowOverflow?t=i-a-12:t<this.pageYOffset&&!this.allowOverflow&&(t=this.pageYOffset+12),t<12?12:t},callActivate:function(){this.hasWindow&&this.activate()},callDeactivate:function(){this.isContentActive=!1,this.deactivate()},checkForPageYOffset:function(){this.hasWindow&&(this.pageYOffset=this.activatorFixed?0:this.getOffsetTop())},checkActivatorFixed:function(){if(!1===this.attach){var t=this.getActivator();while(t){if("fixed"===window.getComputedStyle(t).position)return void(this.activatorFixed=!0);t=t.offsetParent}this.activatorFixed=!1}},deactivate:function(){},genActivatorListeners:function(){var t=this,e=D["a"].options.methods.genActivatorListeners.call(this),i=e.click;return e.click=function(e){t.openOnClick&&i&&i(e),t.absoluteX=e.clientX,t.absoluteY=e.clientY},e},getInnerHeight:function(){return this.hasWindow?window.innerHeight||document.documentElement.clientHeight:0},getOffsetLeft:function(){return this.hasWindow?window.pageXOffset||document.documentElement.scrollLeft:0},getOffsetTop:function(){return this.hasWindow?window.pageYOffset||document.documentElement.scrollTop:0},getRoundedBoundedClientRect:function(t){var e=t.getBoundingClientRect();return{top:Math.round(e.top),left:Math.round(e.left),bottom:Math.round(e.bottom),right:Math.round(e.right),width:Math.round(e.width),height:Math.round(e.height)}},measure:function(t){if(!t||!this.hasWindow)return null;var e=this.getRoundedBoundedClientRect(t);if(!1!==this.attach){var i=window.getComputedStyle(t);e.left=parseInt(i.marginLeft),e.top=parseInt(i.marginTop)}return e},sneakPeek:function(t){var e=this;requestAnimationFrame((function(){var i=e.$refs.content;i&&"none"===i.style.display?(i.style.display="inline-block",t(),i.style.display="none"):t()}))},startTransition:function(){var t=this;return new Promise((function(e){return requestAnimationFrame((function(){t.isContentActive=t.hasJustFocused=t.isActive,e()}))}))},updateDimensions:function(){var t=this;this.hasWindow="undefined"!==typeof window,this.checkActivatorFixed(),this.checkForPageYOffset(),this.pageWidth=document.documentElement.clientWidth;var e={activator:Object($["a"])({},this.dimensions.activator),content:Object($["a"])({},this.dimensions.content)};if(!this.hasActivator||this.absolute)e.activator=this.absolutePosition();else{var i=this.getActivator();if(!i)return;e.activator=this.measure(i),e.activator.offsetLeft=i.offsetLeft,!1!==this.attach?e.activator.offsetTop=i.offsetTop:e.activator.offsetTop=0}this.sneakPeek((function(){t.$refs.content&&(e.content=t.measure(t.$refs.content)),t.dimensions=e}))}}}),H=i("e4d3"),U=i("a236"),K=i("f2e7"),X=i("7560"),J=i("a293"),Q=i("dc22"),Y=i("d9bd"),Z=Object(z["a"])(N["a"],L["a"],R["a"],W,H["a"],U["a"],K["a"],X["a"]),tt=Z.extend({name:"v-menu",provide:function(){return{isInMenu:!0,theme:this.theme}},directives:{ClickOutside:J["a"],Resize:Q["a"]},props:{auto:Boolean,closeOnClick:{type:Boolean,default:!0},closeOnContentClick:{type:Boolean,default:!0},disabled:Boolean,disableKeys:Boolean,maxHeight:{type:[Number,String],default:"auto"},offsetX:Boolean,offsetY:Boolean,openOnClick:{type:Boolean,default:!0},openOnHover:Boolean,origin:{type:String,default:"top left"},transition:{type:[Boolean,String],default:"v-menu-transition"}},data:function(){return{calculatedTopAuto:0,defaultOffset:8,hasJustFocused:!1,listIndex:-1,resizeTimeout:0,selectedIndex:null,tiles:[]}},computed:{activeTile:function(){return this.tiles[this.listIndex]},calculatedLeft:function(){var t=Math.max(this.dimensions.content.width,parseFloat(this.calculatedMinWidth));return this.auto?Object(q["g"])(this.calcXOverflow(this.calcLeftAuto(),t))||"0":this.calcLeft(t)||"0"},calculatedMaxHeight:function(){var t=this.auto?"200px":Object(q["g"])(this.maxHeight);return t||"0"},calculatedMaxWidth:function(){return Object(q["g"])(this.maxWidth)||"0"},calculatedMinWidth:function(){if(this.minWidth)return Object(q["g"])(this.minWidth)||"0";var t=Math.min(this.dimensions.activator.width+Number(this.nudgeWidth)+(this.auto?16:0),Math.max(this.pageWidth-24,0)),e=isNaN(parseInt(this.calculatedMaxWidth))?t:parseInt(this.calculatedMaxWidth);return Object(q["g"])(Math.min(e,t))||"0"},calculatedTop:function(){var t=this.auto?Object(q["g"])(this.calcYOverflow(this.calculatedTopAuto)):this.calcTop();return t||"0"},hasClickableTiles:function(){return Boolean(this.tiles.find((function(t){return t.tabIndex>-1})))},styles:function(){return{maxHeight:this.calculatedMaxHeight,minWidth:this.calculatedMinWidth,maxWidth:this.calculatedMaxWidth,top:this.calculatedTop,left:this.calculatedLeft,transformOrigin:this.origin,zIndex:this.zIndex||this.activeZIndex}}},watch:{isActive:function(t){t||(this.listIndex=-1)},isContentActive:function(t){this.hasJustFocused=t},listIndex:function(t,e){if(t in this.tiles){var i=this.tiles[t];i.classList.add("v-list-item--highlighted"),this.$refs.content.scrollTop=i.offsetTop-i.clientHeight}e in this.tiles&&this.tiles[e].classList.remove("v-list-item--highlighted")}},created:function(){this.$attrs.hasOwnProperty("full-width")&&Object(Y["e"])("full-width",this)},mounted:function(){this.isActive&&this.callActivate()},methods:{activate:function(){var t=this;this.updateDimensions(),requestAnimationFrame((function(){t.startTransition().then((function(){t.$refs.content&&(t.calculatedTopAuto=t.calcTopAuto(),t.auto&&(t.$refs.content.scrollTop=t.calcScrollPosition()))}))}))},calcScrollPosition:function(){var t=this.$refs.content,e=t.querySelector(".v-list-item--active"),i=t.scrollHeight-t.offsetHeight;return e?Math.min(i,Math.max(0,e.offsetTop-t.offsetHeight/2+e.offsetHeight/2)):t.scrollTop},calcLeftAuto:function(){return parseInt(this.dimensions.activator.left-2*this.defaultOffset)},calcTopAuto:function(){var t=this.$refs.content,e=t.querySelector(".v-list-item--active");if(e||(this.selectedIndex=null),this.offsetY||!e)return this.computedTop;this.selectedIndex=Array.from(this.tiles).indexOf(e);var i=e.offsetTop-this.calcScrollPosition(),s=t.querySelector(".v-list-item").offsetTop;return this.computedTop-i-s-1},changeListIndex:function(t){if(this.getTiles(),this.isActive&&this.hasClickableTiles)if(t.keyCode!==q["w"].tab){if(t.keyCode===q["w"].down)this.nextTile();else if(t.keyCode===q["w"].up)this.prevTile();else{if(t.keyCode!==q["w"].enter||-1===this.listIndex)return;this.tiles[this.listIndex].click()}t.preventDefault()}else this.isActive=!1},closeConditional:function(t){var e=t.target;return this.isActive&&!this._isDestroyed&&this.closeOnClick&&!this.$refs.content.contains(e)},genActivatorAttributes:function(){var t=D["a"].options.methods.genActivatorAttributes.call(this);return this.activeTile&&this.activeTile.id?Object($["a"])(Object($["a"])({},t),{},{"aria-activedescendant":this.activeTile.id}):t},genActivatorListeners:function(){var t=W.options.methods.genActivatorListeners.call(this);return this.disableKeys||(t.keydown=this.onKeyDown),t},genTransition:function(){var t=this.genContent();return this.transition?this.$createElement("transition",{props:{name:this.transition}},[t]):t},genDirectives:function(){var t=this,e=[{name:"show",value:this.isContentActive}];return!this.openOnHover&&this.closeOnClick&&e.push({name:"click-outside",value:{handler:function(){t.isActive=!1},closeConditional:this.closeConditional,include:function(){return[t.$el].concat(Object(P["a"])(t.getOpenDependentElements()))}}}),e},genContent:function(){var t=this,e={attrs:Object($["a"])(Object($["a"])({},this.getScopeIdAttrs()),{},{role:"role"in this.$attrs?this.$attrs.role:"menu"}),staticClass:"v-menu__content",class:Object($["a"])(Object($["a"])(Object($["a"])({},this.rootThemeClasses),this.roundedClasses),{},Object(T["a"])({"v-menu__content--auto":this.auto,"v-menu__content--fixed":this.activatorFixed,menuable__content__active:this.isActive},this.contentClass.trim(),!0)),style:this.styles,directives:this.genDirectives(),ref:"content",on:{click:function(e){var i=e.target;i.getAttribute("disabled")||t.closeOnContentClick&&(t.isActive=!1)},keydown:this.onKeyDown}};return this.$listeners.scroll&&(e.on=e.on||{},e.on.scroll=this.$listeners.scroll),!this.disabled&&this.openOnHover&&(e.on=e.on||{},e.on.mouseenter=this.mouseEnterHandler),this.openOnHover&&(e.on=e.on||{},e.on.mouseleave=this.mouseLeaveHandler),this.$createElement("div",e,this.getContentSlot())},getTiles:function(){this.$refs.content&&(this.tiles=Array.from(this.$refs.content.querySelectorAll(".v-list-item")))},mouseEnterHandler:function(){var t=this;this.runDelay("open",(function(){t.hasJustFocused||(t.hasJustFocused=!0,t.isActive=!0)}))},mouseLeaveHandler:function(t){var e=this;this.runDelay("close",(function(){e.$refs.content.contains(t.relatedTarget)||requestAnimationFrame((function(){e.isActive=!1,e.callDeactivate()}))}))},nextTile:function(){var t=this.tiles[this.listIndex+1];if(!t){if(!this.tiles.length)return;return this.listIndex=-1,void this.nextTile()}this.listIndex++,-1===t.tabIndex&&this.nextTile()},prevTile:function(){var t=this.tiles[this.listIndex-1];if(!t){if(!this.tiles.length)return;return this.listIndex=this.tiles.length,void this.prevTile()}this.listIndex--,-1===t.tabIndex&&this.prevTile()},onKeyDown:function(t){var e=this;if(t.keyCode===q["w"].esc){setTimeout((function(){e.isActive=!1}));var i=this.getActivator();this.$nextTick((function(){return i&&i.focus()}))}else!this.isActive&&[q["w"].up,q["w"].down].includes(t.keyCode)&&(this.isActive=!0);this.$nextTick((function(){return e.changeListIndex(t)}))},onResize:function(){this.isActive&&(this.$refs.content.offsetWidth,this.updateDimensions(),clearTimeout(this.resizeTimeout),this.resizeTimeout=window.setTimeout(this.updateDimensions,100))}},render:function(t){var e=this,i={staticClass:"v-menu",class:{"v-menu--attached":""===this.attach||!0===this.attach||"attach"===this.attach},directives:[{arg:"500",name:"resize",value:this.onResize}]};return t("div",i,[!this.activator&&this.genActivator(),this.showLazyContent((function(){return[e.$createElement(B["a"],{props:{root:!0,light:e.light,dark:e.dark}},[e.genTransition()])]}))])}}),et=(i("9734"),i("a9ad")),it=Object(z["a"])(et["a"],L["a"],N["a"],R["a"],W,K["a"]).extend({name:"v-tooltip",props:{closeDelay:{type:[Number,String],default:0},disabled:Boolean,fixed:{type:Boolean,default:!0},openDelay:{type:[Number,String],default:0},openOnHover:{type:Boolean,default:!0},tag:{type:String,default:"span"},transition:String},data:function(){return{calculatedMinWidth:0,closeDependents:!1}},computed:{calculatedLeft:function(){var t=this.dimensions,e=t.activator,i=t.content,s=!this.bottom&&!this.left&&!this.top&&!this.right,a=!1!==this.attach?e.offsetLeft:e.left,n=0;return this.top||this.bottom||s?n=a+e.width/2-i.width/2:(this.left||this.right)&&(n=a+(this.right?e.width:-i.width)+(this.right?10:-10)),this.nudgeLeft&&(n-=parseInt(this.nudgeLeft)),this.nudgeRight&&(n+=parseInt(this.nudgeRight)),"".concat(this.calcXOverflow(n,this.dimensions.content.width),"px")},calculatedTop:function(){var t=this.dimensions,e=t.activator,i=t.content,s=!1!==this.attach?e.offsetTop:e.top,a=0;return this.top||this.bottom?a=s+(this.bottom?e.height:-i.height)+(this.bottom?10:-10):(this.left||this.right)&&(a=s+e.height/2-i.height/2),this.nudgeTop&&(a-=parseInt(this.nudgeTop)),this.nudgeBottom&&(a+=parseInt(this.nudgeBottom)),"".concat(this.calcYOverflow(a+this.pageYOffset),"px")},classes:function(){return{"v-tooltip--top":this.top,"v-tooltip--right":this.right,"v-tooltip--bottom":this.bottom,"v-tooltip--left":this.left,"v-tooltip--attached":""===this.attach||!0===this.attach||"attach"===this.attach}},computedTransition:function(){return this.transition?this.transition:this.isActive?"scale-transition":"fade-transition"},offsetY:function(){return this.top||this.bottom},offsetX:function(){return this.left||this.right},styles:function(){return{left:this.calculatedLeft,maxWidth:Object(q["g"])(this.maxWidth),minWidth:Object(q["g"])(this.minWidth),opacity:this.isActive?.9:0,top:this.calculatedTop,zIndex:this.zIndex||this.activeZIndex}}},beforeMount:function(){var t=this;this.$nextTick((function(){t.value&&t.callActivate()}))},mounted:function(){"v-slot"===Object(q["s"])(this,"activator",!0)&&Object(Y["b"])("v-tooltip's activator slot must be bound, try '<template #activator=\"data\"><v-btn v-on=\"data.on>'",this)},methods:{activate:function(){this.updateDimensions(),requestAnimationFrame(this.startTransition)},deactivate:function(){this.runDelay("close")},genActivatorListeners:function(){var t=this,e=D["a"].options.methods.genActivatorListeners.call(this);return e.focus=function(e){t.getActivator(e),t.runDelay("open")},e.blur=function(e){t.getActivator(e),t.runDelay("close")},e.keydown=function(e){e.keyCode===q["w"].esc&&(t.getActivator(e),t.runDelay("close"))},e},genTransition:function(){var t=this.genContent();return this.computedTransition?this.$createElement("transition",{props:{name:this.computedTransition}},[t]):t},genContent:function(){var t;return this.$createElement("div",this.setBackgroundColor(this.color,{staticClass:"v-tooltip__content",class:(t={},Object(T["a"])(t,this.contentClass,!0),Object(T["a"])(t,"menuable__content__active",this.isActive),Object(T["a"])(t,"v-tooltip__content--fixed",this.activatorFixed),t),style:this.styles,attrs:this.getScopeIdAttrs(),directives:[{name:"show",value:this.isContentActive}],ref:"content"}),this.getContentSlot())}},render:function(t){var e=this;return t(this.tag,{staticClass:"v-tooltip",class:this.classes},[this.showLazyContent((function(){return[e.genTransition()]})),this.genActivator()])}}),st=Object(c["a"])(I,w,S,!1,null,"24ffc513",null),at=st.exports;d()(st,{VBtn:p["a"],VExpandTransition:C["a"],VIcon:f["a"],VList:A["a"],VListItem:j["a"],VListItemIcon:k["a"],VListItemTitle:E["b"],VMenu:tt,VTooltip:it});var nt=i("c64e"),rt={name:"LayerTree",props:{projectId:String,project:{},drawer:null},components:{LayerTreeNode:at},data:function(){return{uniqueKey:function(){return nt()}}},computed:{baseMap:function(){return this.$store.state.baseMap}},methods:{findLayerNode:function(t,e){if(e)for(var i=0;i<e.length;++i){if(e[i].typename==t)return e[i];var s=this.findLayerNode(t,e[i].children);if(s)return s}},findNodeByHash:function(t,e){if(e)for(var i=0;i<e.length;++i){if(e[i].tree_id_hash==t)return e[i];var s=this.findNodeByHash(t,e[i].children);if(s)return s}},toggleLayer:function(t){var e=this.findNodeByHash(t,this.project.toc.children);e&&(e.visible=!e.visible,this.$emit("setLayerVisibility",e.typename,e.visible))},toggleBaseMap:function(t){this.baseMap==t&&(t=""),this.$store.commit("setBaseMap",t)},toggleGroup:function(t){var e=this.findNodeByHash(t,this.project.toc.children);e&&this.setGroupNodeVisibility(e,!e.visible)},setGroupNodeVisibility:function(t,e){if(t.visible=e,t.is_layer&&this.$emit("setLayerVisibility",t.typename,e),t.children)for(var i=0;i<t.children.length;++i)this.setGroupNodeVisibility(t.children[i],e)}}},ot=rt,ht=(i("34cc"),i("b0af")),lt=i("99d9"),ct=Object(c["a"])(ot,x,_,!1,null,null,null),ut=ct.exports;d()(ct,{VBtn:p["a"],VCard:ht["a"],VCardText:lt["c"],VIcon:f["a"],VTooltip:it});var dt=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-container",{staticClass:"mx-auto"},[[t.identifyResults.features?i("v-row",[i("v-col",{staticClass:"col-auto"},t._l(t.identifyResults.features,(function(e){return i("v-card",{key:e.id,staticClass:"mx-auto mb-4"},[i("v-card-title",[i("v-row",[i("v-col",[t._v(t._s(e.id))]),e.geometry?i("v-col",{staticClass:"col-auto"},[i("v-tooltip",{attrs:{top:""},scopedSlots:t._u([{key:"activator",fn:function(s){var a=s.on;return[i("v-btn",t._g({attrs:{icon:""},on:{click:function(i){return t.zoomToFeature(e)}}},a),[i("v-icon",[t._v("mdi-magnify-plus")])],1)]}}],null,!0)},[t._v(" Zoom to feature ")])],1):t._e()],1)],1),i("v-simple-table",{attrs:{dense:""},scopedSlots:t._u([{key:"default",fn:function(){return[i("tbody",t._l(e.properties,(function(e,s){return i("tr",{key:s},[i("th",[t._v(t._s(s))]),i("td",[t._v(t._s(e))])])})),0)]},proxy:!0}],null,!0)})],1)})),1)],1):i("v-row",[i("v-progress-linear",{attrs:{indeterminate:"",query:""}})],1)]],2)},pt=[],ft=i("7ca5"),mt=i.n(ft),gt={name:"IdentifyResults",props:{drawer:null,map:null},computed:{identifyResults:function(){return this.$store.state.identifyResults}},methods:{zoomToFeature:function(t){this.map.highlightLayer.clearLayers(),this.map.highlightLayer.addData(mt.a.toWgs84(t,this.map.options.crs.code)),this.map.setView(this.map.highlightLayer.getBounds().getCenter())}}},vt=gt,bt=i("62ad"),yt=i("a523"),Mt=i("8e36"),xt=i("0fd9"),_t=(i("8b37"),Object(z["a"])(X["a"]).extend({name:"v-simple-table",props:{dense:Boolean,fixedHeader:Boolean,height:[Number,String]},computed:{classes:function(){return Object($["a"])({"v-data-table--dense":this.dense,"v-data-table--fixed-height":!!this.height&&!this.fixedHeader,"v-data-table--fixed-header":this.fixedHeader},this.themeClasses)}},methods:{genWrapper:function(){return this.$slots.wrapper||this.$createElement("div",{staticClass:"v-data-table__wrapper",style:{height:Object(q["g"])(this.height)}},[this.$createElement("table",this.$slots.default)])}},render:function(t){return t("div",{staticClass:"v-data-table",class:this.classes},[this.$slots.top,this.genWrapper(),this.$slots.bottom])}})),wt=Object(c["a"])(vt,dt,pt,!1,null,null,null),St=wt.exports;d()(wt,{VBtn:p["a"],VCard:ht["a"],VCardTitle:lt["d"],VCol:bt["a"],VContainer:yt["a"],VIcon:f["a"],VProgressLinear:Mt["a"],VRow:xt["a"],VSimpleTable:_t,VTooltip:it});var Ot={name:"LeftSidebar",components:{LayerTree:ut,IdentifyResults:St},props:{drawer:null,project:null,showIdentify:null,map:null},data:function(){return{currentTab:0}},methods:{setLayerVisibility:function(t,e){this.$emit("setLayerVisibility",t,e)}},watch:{identifyResults:function(){this.currentTab=1}},computed:{activeTab:{get:function(){return this.currentTab},set:function(t){this.currentTab=t}},identifyResults:function(){return this.$store.state.identifyResults}}},It=Ot,Ct=(i("c7cd"),i("7958"),i("adda")),At=i("3a66"),jt=i("e4cd"),kt=i("e707"),Et=i("d10f"),Tt=i("c3f0"),Pt=Object(z["a"])(Object(At["a"])("left",["isActive","isMobile","miniVariant","expandOnHover","permanent","right","temporary","width"]),et["a"],N["a"],jt["a"],kt["a"],Et["a"],X["a"]),$t=Pt.extend({name:"v-navigation-drawer",provide:function(){return{isInNav:"nav"===this.tag}},directives:{ClickOutside:J["a"],Resize:Q["a"],Touch:Tt["a"]},props:{bottom:Boolean,clipped:Boolean,disableResizeWatcher:Boolean,disableRouteWatcher:Boolean,expandOnHover:Boolean,floating:Boolean,height:{type:[Number,String],default:function(){return this.app?"100vh":"100%"}},miniVariant:Boolean,miniVariantWidth:{type:[Number,String],default:56},permanent:Boolean,right:Boolean,src:{type:[String,Object],default:""},stateless:Boolean,tag:{type:String,default:function(){return this.app?"nav":"aside"}},temporary:Boolean,touchless:Boolean,width:{type:[Number,String],default:256},value:null},data:function(){return{isMouseover:!1,touchArea:{left:0,right:0},stackMinZIndex:6}},computed:{applicationProperty:function(){return this.right?"right":"left"},classes:function(){return Object($["a"])({"v-navigation-drawer":!0,"v-navigation-drawer--absolute":this.absolute,"v-navigation-drawer--bottom":this.bottom,"v-navigation-drawer--clipped":this.clipped,"v-navigation-drawer--close":!this.isActive,"v-navigation-drawer--fixed":!this.absolute&&(this.app||this.fixed),"v-navigation-drawer--floating":this.floating,"v-navigation-drawer--is-mobile":this.isMobile,"v-navigation-drawer--is-mouseover":this.isMouseover,"v-navigation-drawer--mini-variant":this.isMiniVariant,"v-navigation-drawer--custom-mini-variant":56!==Number(this.miniVariantWidth),"v-navigation-drawer--open":this.isActive,"v-navigation-drawer--open-on-hover":this.expandOnHover,"v-navigation-drawer--right":this.right,"v-navigation-drawer--temporary":this.temporary},this.themeClasses)},computedMaxHeight:function(){if(!this.hasApp)return null;var t=this.$vuetify.application.bottom+this.$vuetify.application.footer+this.$vuetify.application.bar;return this.clipped?t+this.$vuetify.application.top:t},computedTop:function(){if(!this.hasApp)return 0;var t=this.$vuetify.application.bar;return t+=this.clipped?this.$vuetify.application.top:0,t},computedTransform:function(){return this.isActive?0:this.isBottom||this.right?100:-100},computedWidth:function(){return this.isMiniVariant?this.miniVariantWidth:this.width},hasApp:function(){return this.app&&!this.isMobile&&!this.temporary},isBottom:function(){return this.bottom&&this.isMobile},isMiniVariant:function(){return!this.expandOnHover&&this.miniVariant||this.expandOnHover&&!this.isMouseover},isMobile:function(){return!this.stateless&&!this.permanent&&jt["a"].options.computed.isMobile.call(this)},reactsToClick:function(){return!this.stateless&&!this.permanent&&(this.isMobile||this.temporary)},reactsToMobile:function(){return this.app&&!this.disableResizeWatcher&&!this.permanent&&!this.stateless&&!this.temporary},reactsToResize:function(){return!this.disableResizeWatcher&&!this.stateless},reactsToRoute:function(){return!this.disableRouteWatcher&&!this.stateless&&(this.temporary||this.isMobile)},showOverlay:function(){return!this.hideOverlay&&this.isActive&&(this.isMobile||this.temporary)},styles:function(){var t=this.isBottom?"translateY":"translateX",e={height:Object(q["g"])(this.height),top:this.isBottom?"auto":Object(q["g"])(this.computedTop),maxHeight:null!=this.computedMaxHeight?"calc(100% - ".concat(Object(q["g"])(this.computedMaxHeight),")"):void 0,transform:"".concat(t,"(").concat(Object(q["g"])(this.computedTransform,"%"),")"),width:Object(q["g"])(this.computedWidth)};return e}},watch:{$route:"onRouteChange",isActive:function(t){this.$emit("input",t)},isMobile:function(t,e){!t&&this.isActive&&!this.temporary&&this.removeOverlay(),null!=e&&this.reactsToResize&&this.reactsToMobile&&(this.isActive=!t)},permanent:function(t){t&&(this.isActive=!0)},showOverlay:function(t){t?this.genOverlay():this.removeOverlay()},value:function(t){this.permanent||(null!=t?t!==this.isActive&&(this.isActive=t):this.init())},expandOnHover:"updateMiniVariant",isMouseover:function(t){this.updateMiniVariant(!t)}},beforeMount:function(){this.init()},methods:{calculateTouchArea:function(){var t=this.$el.parentNode;if(t){var e=t.getBoundingClientRect();this.touchArea={left:e.left+50,right:e.right-50}}},closeConditional:function(){return this.isActive&&!this._isDestroyed&&this.reactsToClick},genAppend:function(){return this.genPosition("append")},genBackground:function(){var t={height:"100%",width:"100%",src:this.src},e=this.$scopedSlots.img?this.$scopedSlots.img(t):this.$createElement(Ct["a"],{props:t});return this.$createElement("div",{staticClass:"v-navigation-drawer__image"},[e])},genDirectives:function(){var t=this,e=[{name:"click-outside",value:{handler:function(){t.isActive=!1},closeConditional:this.closeConditional,include:this.getOpenDependentElements}}];return this.touchless||this.stateless||e.push({name:"touch",value:{parent:!0,left:this.swipeLeft,right:this.swipeRight}}),e},genListeners:function(){var t=this,e={transitionend:function(e){if(e.target===e.currentTarget){t.$emit("transitionend",e);var i=document.createEvent("UIEvents");i.initUIEvent("resize",!0,!1,window,0),window.dispatchEvent(i)}}};return this.miniVariant&&(e.click=function(){return t.$emit("update:mini-variant",!1)}),this.expandOnHover&&(e.mouseenter=function(){return t.isMouseover=!0},e.mouseleave=function(){return t.isMouseover=!1}),e},genPosition:function(t){var e=Object(q["r"])(this,t);return e?this.$createElement("div",{staticClass:"v-navigation-drawer__".concat(t)},e):e},genPrepend:function(){return this.genPosition("prepend")},genContent:function(){return this.$createElement("div",{staticClass:"v-navigation-drawer__content"},this.$slots.default)},genBorder:function(){return this.$createElement("div",{staticClass:"v-navigation-drawer__border"})},init:function(){this.permanent?this.isActive=!0:this.stateless||null!=this.value?this.isActive=this.value:this.temporary||(this.isActive=!this.isMobile)},onRouteChange:function(){this.reactsToRoute&&this.closeConditional()&&(this.isActive=!1)},swipeLeft:function(t){this.isActive&&this.right||(this.calculateTouchArea(),Math.abs(t.touchendX-t.touchstartX)<100||(this.right&&t.touchstartX>=this.touchArea.right?this.isActive=!0:!this.right&&this.isActive&&(this.isActive=!1)))},swipeRight:function(t){this.isActive&&!this.right||(this.calculateTouchArea(),Math.abs(t.touchendX-t.touchstartX)<100||(!this.right&&t.touchstartX<=this.touchArea.left?this.isActive=!0:this.right&&this.isActive&&(this.isActive=!1)))},updateApplication:function(){if(!this.isActive||this.isMobile||this.temporary||!this.$el)return 0;var t=Number(this.computedWidth);return isNaN(t)?this.$el.clientWidth:t},updateMiniVariant:function(t){this.miniVariant!==t&&this.$emit("update:mini-variant",t)}},render:function(t){var e=[this.genPrepend(),this.genContent(),this.genAppend(),this.genBorder()];return(this.src||Object(q["r"])(this,"img"))&&e.unshift(this.genBackground()),t(this.tag,this.setBackgroundColor(this.color,{class:this.classes,style:this.styles,directives:this.genDirectives(),on:this.genListeners()}),e)}}),Bt=i("71a3"),Dt=i("c671"),Lt=i("fe57"),Nt=Object(c["a"])(It,y,M,!1,null,null,null),Rt=Nt.exports;d()(Nt,{VNavigationDrawer:$t,VTab:Bt["a"],VTabItem:Dt["a"],VTabs:Lt["a"]});var Vt=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-card",{attrs:{level:"2"}},[i("v-card-text",[i("v-btn",{staticClass:"btn-close",attrs:{icon:""},on:{click:t.onCloseButtonClicked}},[i("v-icon",[t._v("mdi-close")])],1),i("v-card-title",[t._v(" "+t._s(t.title)+" "),i("v-spacer"),i("v-text-field",{attrs:{"append-icon":"mdi-magnify",label:"Filter",hint:"Case sensitive, use * to match any character",dense:"",error:this.hasSearchError,"single-line":"","hide-details":""},model:{value:t.filterText,callback:function(e){t.filterText=e},expression:"filterText"}}),i("v-spacer"),i("v-combobox",{attrs:{items:t.searchableFields,label:"Search field ...","no-filter":"","hide-details":"",dense:""},model:{value:t.filterField,callback:function(e){t.filterField=e},expression:"filterField"}})],1),i("v-data-table",{attrs:{dense:"","item-key":"itemKeyInternalIdentifier",page:t.currentPage,"sort-by":t.sortBy,"sort-desc":t.sortDesc,"server-items-length":t.numberMatched,"no-data-text":"Attribute table has no data, search is case-sensitive, use * to match any character.",loading:0==t.tableHeaders.length||t.loading,headers:t.tableHeaders,items:t.tableData,"items-per-page":5,"footer-props":{itemsPerPageOptions:[5],itemsPerPageText:""}},on:{"update:page":function(e){t.currentPage=e},"update:sortBy":function(e){t.sortBy=e},"update:sort-by":function(e){t.sortBy=e},"update:sortDesc":function(e){t.sortDesc=e},"update:sort-desc":function(e){t.sortDesc=e}},scopedSlots:t._u([{key:"item.zoomToFeature",fn:function(e){var s=e.item;return[i("v-icon",{on:{click:function(e){return t.zoomToFeature(s.feature)}}},[t._v("mdi-magnify")])]}}])})],1)],1)},Ft=[],zt=(i("b64b"),i("96cf"),i("1da1")),qt=i("c64e"),Gt={name:"AttributeTable",props:{project:null,map:null},computed:{typename:function(){return this.$store.state.attributeTableTypename},title:function(){var t=this;return Object.keys(this.project.wms_layers_map).find((function(e){return t.project.wms_layers_map[e]===t.typename}))},searchableFields:function(){for(var t=this.project.wms_layers_typename_id_map[this.typename],e=[],i=Object.keys(this.project.wms_layers[t]["fields"]),s=0;s<i.length;s++){var a=this.project.wms_layers[t]["fields"][i[s]];e.push({text:a["label"],value:i[s]})}return e},fieldAliases:function(){for(var t=this.project.wms_layers_typename_id_map[this.typename],e={},i=Object.keys(this.project.wms_layers[t]["fields"]),s=0;s<i.length;s++){var a=this.project.wms_layers[t]["fields"][i[s]];e[i[s]]=a["label"]}return e},hasSearchError:function(){return this.error>0&&this.filterText.length}},data:function(){return{error:null,currentPage:1,sortBy:null,sortDesc:null,tableData:[],tableHeaders:[],numberMatched:0,filterField:null,filterText:"",loading:!1}},mounted:function(){this.loadData()},watch:{currentPage:function(){this.loadData()},sortBy:function(){this.loadData()},sortDesc:function(){this.loadData()},typename:function(){this.loadData()},filterField:function(){this.filterText&&this.loadData()},filterText:function(){this.filterField?this.loadData():this.filterField=this.searchableFields[0]}},methods:{onCloseButtonClicked:function(){this.$store.commit("clearAttributeTableTypename")},loadData:function(){var t=this;return Object(zt["a"])(regeneratorRuntime.mark((function e(){var i,s,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:try{t.error=null,t.loading=!0,i=5*(t.currentPage-1),s="",t.sortBy&&(s="&sortby="+encodeURIComponent(t.sortBy),t.sortDesc&&(s+="&sortdesc=1")),a="",t.filterField&&t.filterText&&(a="&".concat(t.filterField.value,"=").concat(t.filterText)),fetch("/project/".concat(t.project.id,"/wfs3/collections/").concat(t.typename,"/items.json?limit=5&offset=").concat(i).concat(s).concat(a)).then((function(t){if(!t)throw Error("Error fetching attribute table data from QGIS Server");if(!t.ok)throw Error(t.statusText);return t})).then((function(t){return t.json()})).then((function(e){if(e.features.length){var i=[{text:"",value:"zoomToFeature"}];for(var s in e.features[0].properties)i.push({text:s,value:t.fieldAliases[s]?t.fieldAliases[s]:s});t.tableHeaders=i;for(var a=[],n=0;n<e.features.length;n++){var r=e.features[n].properties;r["feature"]=e.features[n],r["itemKeyInternalIdentifier"]=qt(),a.push(r)}t.tableData=a,t.numberMatched=e.numberMatched}else t.tableData=[]})).catch((function(e){t.error=e.message,t.tableData=[]}))}catch(n){t.error=n.message,t.tableData=[]}t.loading=!1;case 2:case"end":return e.stop()}}),e)})))()},zoomToFeature:function(t){this.map.highlightLayer.clearLayers(),this.map.highlightLayer.addData(t),this.map.setView(this.map.highlightLayer.getBounds().getCenter())}}},Wt=Gt,Ht=(i("a988"),i("fb6a"),i("a434"),i("b0c0"),i("25f0"),i("8a79"),i("2bfd"),i("4de4"),i("c740"),i("13d5"),i("4ec9"),i("2ca0"),i("ddb0"),i("4ff9"),i("68dd"),i("3835")),Ut=(i("8adc"),i("9d26")),Kt=i("4e82"),Xt=i("1c87"),Jt=i("af2b"),Qt=Object(z["a"])(et["a"],Jt["a"],Xt["a"],X["a"],Object(Kt["a"])("chipGroup"),Object(K["b"])("inputValue")).extend({name:"v-chip",props:{active:{type:Boolean,default:!0},activeClass:{type:String,default:function(){return this.chipGroup?this.chipGroup.activeClass:""}},close:Boolean,closeIcon:{type:String,default:"$delete"},disabled:Boolean,draggable:Boolean,filter:Boolean,filterIcon:{type:String,default:"$complete"},label:Boolean,link:Boolean,outlined:Boolean,pill:Boolean,tag:{type:String,default:"span"},textColor:String,value:null},data:function(){return{proxyClass:"v-chip--active"}},computed:{classes:function(){return Object($["a"])(Object($["a"])(Object($["a"])(Object($["a"])({"v-chip":!0},Xt["a"].options.computed.classes.call(this)),{},{"v-chip--clickable":this.isClickable,"v-chip--disabled":this.disabled,"v-chip--draggable":this.draggable,"v-chip--label":this.label,"v-chip--link":this.isLink,"v-chip--no-color":!this.color,"v-chip--outlined":this.outlined,"v-chip--pill":this.pill,"v-chip--removable":this.hasClose},this.themeClasses),this.sizeableClasses),this.groupClasses)},hasClose:function(){return Boolean(this.close)},isClickable:function(){return Boolean(Xt["a"].options.computed.isClickable.call(this)||this.chipGroup)}},created:function(){var t=this,e=[["outline","outlined"],["selected","input-value"],["value","active"],["@input","@active.sync"]];e.forEach((function(e){var i=Object(Ht["a"])(e,2),s=i[0],a=i[1];t.$attrs.hasOwnProperty(s)&&Object(Y["a"])(s,a,t)}))},methods:{click:function(t){this.$emit("click",t),this.chipGroup&&this.toggle()},genFilter:function(){var t=[];return this.isActive&&t.push(this.$createElement(Ut["a"],{staticClass:"v-chip__filter",props:{left:!0}},this.filterIcon)),this.$createElement(C["b"],t)},genClose:function(){var t=this;return this.$createElement(Ut["a"],{staticClass:"v-chip__close",props:{right:!0,size:18},on:{click:function(e){e.stopPropagation(),e.preventDefault(),t.$emit("click:close"),t.$emit("update:active",!1)}}},this.closeIcon)},genContent:function(){return this.$createElement("span",{staticClass:"v-chip__content"},[this.filter&&this.genFilter(),this.$slots.default,this.hasClose&&this.genClose()])}},render:function(t){var e=[this.genContent()],i=this.generateRouteLink(),s=i.tag,a=i.data;a.attrs=Object($["a"])(Object($["a"])({},a.attrs),{},{draggable:this.draggable?"true":void 0,tabindex:this.chipGroup&&!this.disabled?0:a.attrs.tabindex}),a.directives.push({name:"show",value:this.active}),a=this.setBackgroundColor(this.color,a);var n=this.textColor||this.outlined&&this.color;return t(s,this.setTextColor(n,a),e)}}),Yt=Qt,Zt=tt,te=(i("a15b"),i("cf36"),i("5607")),ee=i("a026"),ie=i("d9f7"),se=ee["a"].extend({name:"v-simple-checkbox",functional:!0,directives:{ripple:te["a"]},props:Object($["a"])(Object($["a"])(Object($["a"])({},et["a"].options.props),X["a"].options.props),{},{disabled:Boolean,ripple:{type:Boolean,default:!0},value:Boolean,indeterminate:Boolean,indeterminateIcon:{type:String,default:"$checkboxIndeterminate"},onIcon:{type:String,default:"$checkboxOn"},offIcon:{type:String,default:"$checkboxOff"}}),render:function(t,e){var i=e.props,s=e.data,a=(e.listeners,[]);if(i.ripple&&!i.disabled){var n=t("div",et["a"].options.methods.setTextColor(i.color,{staticClass:"v-input--selection-controls__ripple",directives:[{name:"ripple",value:{center:!0}}]}));a.push(n)}var r=i.offIcon;i.indeterminate?r=i.indeterminateIcon:i.value&&(r=i.onIcon),a.push(t(f["a"],et["a"].options.methods.setTextColor(i.value&&i.color,{props:{disabled:i.disabled,dark:i.dark,light:i.light}}),r));var o={"v-simple-checkbox":!0,"v-simple-checkbox--disabled":i.disabled};return t("div",Object(ie["a"])(s,{class:o,on:{click:function(t){t.stopPropagation(),s.on&&s.on.input&&!i.disabled&&Object(q["E"])(s.on.input).forEach((function(t){return t(!i.value)}))}}}),a)}}),ae=i("b810"),ne=(i("0bc6"),Object(z["a"])(X["a"]).extend({name:"v-subheader",props:{inset:Boolean},render:function(t){return t("div",{staticClass:"v-subheader",class:Object($["a"])({"v-subheader--inset":this.inset},this.themeClasses),attrs:this.$attrs,on:this.$listeners},this.$slots.default)}})),re=ne,oe=i("1800"),he=Object(z["a"])(et["a"],X["a"]).extend({name:"v-select-list",directives:{ripple:te["a"]},props:{action:Boolean,dense:Boolean,hideSelected:Boolean,items:{type:Array,default:function(){return[]}},itemDisabled:{type:[String,Array,Function],default:"disabled"},itemText:{type:[String,Array,Function],default:"text"},itemValue:{type:[String,Array,Function],default:"value"},noDataText:String,noFilter:Boolean,searchInput:null,selectedItems:{type:Array,default:function(){return[]}}},computed:{parsedItems:function(){var t=this;return this.selectedItems.map((function(e){return t.getValue(e)}))},tileActiveClass:function(){return Object.keys(this.setTextColor(this.color).class||{}).join(" ")},staticNoDataTile:function(){var t={attrs:{role:void 0},on:{mousedown:function(t){return t.preventDefault()}}};return this.$createElement(j["a"],t,[this.genTileContent(this.noDataText)])}},methods:{genAction:function(t,e){var i=this;return this.$createElement(oe["a"],[this.$createElement(se,{props:{color:this.color,value:e},on:{input:function(){return i.$emit("select",t)}}})])},genDivider:function(t){return this.$createElement(ae["a"],{props:t})},genFilteredText:function(t){if(t=t||"",!this.searchInput||this.noFilter)return Object(q["k"])(t);var e=this.getMaskedCharacters(t),i=e.start,s=e.middle,a=e.end;return"".concat(Object(q["k"])(i)).concat(this.genHighlight(s)).concat(Object(q["k"])(a))},genHeader:function(t){return this.$createElement(re,{props:t},t.header)},genHighlight:function(t){return'<span class="v-list-item__mask">'.concat(Object(q["k"])(t),"</span>")},getMaskedCharacters:function(t){var e=(this.searchInput||"").toString().toLocaleLowerCase(),i=t.toLocaleLowerCase().indexOf(e);if(i<0)return{start:"",middle:t,end:""};var s=t.slice(0,i),a=t.slice(i,i+e.length),n=t.slice(i+e.length);return{start:s,middle:a,end:n}},genTile:function(t){var e=this,i=t.item,s=t.index,a=t.disabled,n=void 0===a?null:a,r=t.value,o=void 0!==r&&r;o||(o=this.hasItem(i)),i===Object(i)&&(n=null!==n?n:this.getDisabled(i));var h={attrs:{"aria-selected":String(o),id:"list-item-".concat(this._uid,"-").concat(s),role:"option"},on:{mousedown:function(t){t.preventDefault()},click:function(){return n||e.$emit("select",i)}},props:{activeClass:this.tileActiveClass,disabled:n,ripple:!0,inputValue:o}};if(!this.$scopedSlots.item)return this.$createElement(j["a"],h,[this.action&&!this.hideSelected&&this.items.length>0?this.genAction(i,o):null,this.genTileContent(i,s)]);var l=this,c=this.$scopedSlots.item({parent:l,item:i,attrs:Object($["a"])(Object($["a"])({},h.attrs),h.props),on:h.on});return this.needsTile(c)?this.$createElement(j["a"],h,c):c},genTileContent:function(t){var e=this.genFilteredText(this.getText(t));return this.$createElement(E["a"],[this.$createElement(E["b"],{domProps:{innerHTML:e}})])},hasItem:function(t){return this.parsedItems.indexOf(this.getValue(t))>-1},needsTile:function(t){return 1!==t.length||null==t[0].componentOptions||"v-list-item"!==t[0].componentOptions.Ctor.options.name},getDisabled:function(t){return Boolean(Object(q["q"])(t,this.itemDisabled,!1))},getText:function(t){return String(Object(q["q"])(t,this.itemText,t))},getValue:function(t){return Object(q["q"])(t,this.itemValue,this.getText(t))}},render:function(){for(var t=[],e=this.items.length,i=0;i<e;i++){var s=this.items[i];this.hideSelected&&this.hasItem(s)||(null==s?t.push(this.genTile({item:s,index:i})):s.header?t.push(this.genHeader(s)):s.divider?t.push(this.genDivider(s)):t.push(this.genTile({item:s,index:i})))}return t.length||t.push(this.$slots["no-data"]||this.staticNoDataTile),this.$slots["prepend-item"]&&t.unshift(this.$slots["prepend-item"]),this.$slots["append-item"]&&t.push(this.$slots["append-item"]),this.$createElement(A["a"],{staticClass:"v-select-list",class:this.themeClasses,attrs:{role:"listbox",tabindex:-1},props:{dense:this.dense}},t)}}),le=(i("d191"),i("1b2c"),Object(z["a"])(X["a"]).extend({name:"v-label",functional:!0,props:{absolute:Boolean,color:{type:String,default:"primary"},disabled:Boolean,focused:Boolean,for:String,left:{type:[Number,String],default:0},right:{type:[Number,String],default:"auto"},value:Boolean},render:function(t,e){var i=e.children,s=e.listeners,a=e.props,n={staticClass:"v-label",class:Object($["a"])({"v-label--active":a.value,"v-label--is-disabled":a.disabled},Object(X["b"])(e)),attrs:{for:a.for,"aria-hidden":!a.for},on:s,style:{left:Object(q["g"])(a.left),right:Object(q["g"])(a.right),position:a.absolute?"absolute":"relative"},ref:"label"};return t("label",et["a"].options.methods.setTextColor(a.focused&&a.color,n),i)}})),ce=le,ue=(i("8ff2"),Object(z["a"])(et["a"],X["a"]).extend({name:"v-messages",props:{value:{type:Array,default:function(){return[]}}},methods:{genChildren:function(){return this.$createElement("transition-group",{staticClass:"v-messages__wrapper",attrs:{name:"message-transition",tag:"div"}},this.value.map(this.genMessage))},genMessage:function(t,e){return this.$createElement("div",{staticClass:"v-messages__message",key:e},Object(q["r"])(this,"default",{message:t,key:e})||[t])}},render:function(t){return t("div",this.setTextColor(this.color,{staticClass:"v-messages",class:this.themeClasses}),[this.genChildren()])}})),de=ue,pe=i("7e2b"),fe=i("53ca"),me=i("3206"),ge=Object(z["a"])(et["a"],Object(me["a"])("form"),X["a"]),ve=ge.extend({name:"validatable",props:{disabled:Boolean,error:Boolean,errorCount:{type:[Number,String],default:1},errorMessages:{type:[String,Array],default:function(){return[]}},messages:{type:[String,Array],default:function(){return[]}},readonly:Boolean,rules:{type:Array,default:function(){return[]}},success:Boolean,successMessages:{type:[String,Array],default:function(){return[]}},validateOnBlur:Boolean,value:{required:!1}},data:function(){return{errorBucket:[],hasColor:!1,hasFocused:!1,hasInput:!1,isFocused:!1,isResetting:!1,lazyValue:this.value,valid:!1}},computed:{computedColor:function(){if(!this.isDisabled)return this.color?this.color:this.isDark&&!this.appIsDark?"white":"primary"},hasError:function(){return this.internalErrorMessages.length>0||this.errorBucket.length>0||this.error},hasSuccess:function(){return this.internalSuccessMessages.length>0||this.success},externalError:function(){return this.internalErrorMessages.length>0||this.error},hasMessages:function(){return this.validationTarget.length>0},hasState:function(){return!this.isDisabled&&(this.hasSuccess||this.shouldValidate&&this.hasError)},internalErrorMessages:function(){return this.genInternalMessages(this.errorMessages)},internalMessages:function(){return this.genInternalMessages(this.messages)},internalSuccessMessages:function(){return this.genInternalMessages(this.successMessages)},internalValue:{get:function(){return this.lazyValue},set:function(t){this.lazyValue=t,this.$emit("input",t)}},isDisabled:function(){return this.disabled||!!this.form&&this.form.disabled},isInteractive:function(){return!this.isDisabled&&!this.isReadonly},isReadonly:function(){return this.readonly||!!this.form&&this.form.readonly},shouldValidate:function(){return!!this.externalError||!this.isResetting&&(this.validateOnBlur?this.hasFocused&&!this.isFocused:this.hasInput||this.hasFocused)},validations:function(){return this.validationTarget.slice(0,Number(this.errorCount))},validationState:function(){if(!this.isDisabled)return this.hasError&&this.shouldValidate?"error":this.hasSuccess?"success":this.hasColor?this.computedColor:void 0},validationTarget:function(){return this.internalErrorMessages.length>0?this.internalErrorMessages:this.successMessages.length>0?this.internalSuccessMessages:this.messages.length>0?this.internalMessages:this.shouldValidate?this.errorBucket:[]}},watch:{rules:{handler:function(t,e){Object(q["i"])(t,e)||this.validate()},deep:!0},internalValue:function(){this.hasInput=!0,this.validateOnBlur||this.$nextTick(this.validate)},isFocused:function(t){t||this.isDisabled||(this.hasFocused=!0,this.validateOnBlur&&this.$nextTick(this.validate))},isResetting:function(){var t=this;setTimeout((function(){t.hasInput=!1,t.hasFocused=!1,t.isResetting=!1,t.validate()}),0)},hasError:function(t){this.shouldValidate&&this.$emit("update:error",t)},value:function(t){this.lazyValue=t}},beforeMount:function(){this.validate()},created:function(){this.form&&this.form.register(this)},beforeDestroy:function(){this.form&&this.form.unregister(this)},methods:{genInternalMessages:function(t){return t?Array.isArray(t)?t:[t]:[]},reset:function(){this.isResetting=!0,this.internalValue=Array.isArray(this.internalValue)?[]:void 0},resetValidation:function(){this.isResetting=!0},validate:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1?arguments[1]:void 0,i=[];e=e||this.internalValue,t&&(this.hasInput=this.hasFocused=!0);for(var s=0;s<this.rules.length;s++){var a=this.rules[s],n="function"===typeof a?a(e):a;!1===n||"string"===typeof n?i.push(n||""):"boolean"!==typeof n&&Object(Y["b"])("Rules should return a string or boolean, received '".concat(Object(fe["a"])(n),"' instead"),this)}return this.errorBucket=i,this.valid=0===i.length,this.valid}}}),be=Object(z["a"])(pe["a"],ve),ye=be.extend().extend({name:"v-input",inheritAttrs:!1,props:{appendIcon:String,backgroundColor:{type:String,default:""},dense:Boolean,height:[Number,String],hideDetails:[Boolean,String],hint:String,id:String,label:String,loading:Boolean,persistentHint:Boolean,prependIcon:String,value:null},data:function(){return{lazyValue:this.value,hasMouseDown:!1}},computed:{classes:function(){return Object($["a"])({"v-input--has-state":this.hasState,"v-input--hide-details":!this.showDetails,"v-input--is-label-active":this.isLabelActive,"v-input--is-dirty":this.isDirty,"v-input--is-disabled":this.isDisabled,"v-input--is-focused":this.isFocused,"v-input--is-loading":!1!==this.loading&&null!=this.loading,"v-input--is-readonly":this.isReadonly,"v-input--dense":this.dense},this.themeClasses)},computedId:function(){return this.id||"input-".concat(this._uid)},hasDetails:function(){return this.messagesToDisplay.length>0},hasHint:function(){return!this.hasMessages&&!!this.hint&&(this.persistentHint||this.isFocused)},hasLabel:function(){return!(!this.$slots.label&&!this.label)},internalValue:{get:function(){return this.lazyValue},set:function(t){this.lazyValue=t,this.$emit(this.$_modelEvent,t)}},isDirty:function(){return!!this.lazyValue},isLabelActive:function(){return this.isDirty},messagesToDisplay:function(){var t=this;return this.hasHint?[this.hint]:this.hasMessages?this.validations.map((function(e){if("string"===typeof e)return e;var i=e(t.internalValue);return"string"===typeof i?i:""})).filter((function(t){return""!==t})):[]},showDetails:function(){return!1===this.hideDetails||"auto"===this.hideDetails&&this.hasDetails}},watch:{value:function(t){this.lazyValue=t}},beforeCreate:function(){this.$_modelEvent=this.$options.model&&this.$options.model.event||"input"},methods:{genContent:function(){return[this.genPrependSlot(),this.genControl(),this.genAppendSlot()]},genControl:function(){return this.$createElement("div",{staticClass:"v-input__control"},[this.genInputSlot(),this.genMessages()])},genDefaultSlot:function(){return[this.genLabel(),this.$slots.default]},genIcon:function(t,e){var i=this,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=this["".concat(t,"Icon")],n="click:".concat(Object(q["v"])(t)),r=!(!this.listeners$[n]&&!e),o=Object(ie["a"])({attrs:{"aria-label":r?Object(q["v"])(t).split("-")[0]+" icon":void 0,color:this.validationState,dark:this.dark,disabled:this.isDisabled,light:this.light},on:r?{click:function(t){t.preventDefault(),t.stopPropagation(),i.$emit(n,t),e&&e(t)},mouseup:function(t){t.preventDefault(),t.stopPropagation()}}:void 0},s);return this.$createElement("div",{staticClass:"v-input__icon",class:t?"v-input__icon--".concat(Object(q["v"])(t)):void 0},[this.$createElement(Ut["a"],o,a)])},genInputSlot:function(){return this.$createElement("div",this.setBackgroundColor(this.backgroundColor,{staticClass:"v-input__slot",style:{height:Object(q["g"])(this.height)},on:{click:this.onClick,mousedown:this.onMouseDown,mouseup:this.onMouseUp},ref:"input-slot"}),[this.genDefaultSlot()])},genLabel:function(){return this.hasLabel?this.$createElement(ce,{props:{color:this.validationState,dark:this.dark,disabled:this.isDisabled,focused:this.hasState,for:this.computedId,light:this.light}},this.$slots.label||this.label):null},genMessages:function(){var t=this;return this.showDetails?this.$createElement(de,{props:{color:this.hasHint?"":this.validationState,dark:this.dark,light:this.light,value:this.messagesToDisplay},attrs:{role:this.hasMessages?"alert":null},scopedSlots:{default:function(e){return Object(q["r"])(t,"message",e)}}}):null},genSlot:function(t,e,i){if(!i.length)return null;var s="".concat(t,"-").concat(e);return this.$createElement("div",{staticClass:"v-input__".concat(s),ref:s},i)},genPrependSlot:function(){var t=[];return this.$slots.prepend?t.push(this.$slots.prepend):this.prependIcon&&t.push(this.genIcon("prepend")),this.genSlot("prepend","outer",t)},genAppendSlot:function(){var t=[];return this.$slots.append?t.push(this.$slots.append):this.appendIcon&&t.push(this.genIcon("append")),this.genSlot("append","outer",t)},onClick:function(t){this.$emit("click",t)},onMouseDown:function(t){this.hasMouseDown=!0,this.$emit("mousedown",t)},onMouseUp:function(t){this.hasMouseDown=!1,this.$emit("mouseup",t)}},render:function(t){return t("div",this.setTextColor(this.validationState,{staticClass:"v-input",class:this.classes}),this.genContent())}}),Me=ye,xe=(i("0481"),i("4069"),i("2b19"),i("e9b1"),Object(z["a"])(X["a"]).extend({name:"v-counter",functional:!0,props:{value:{type:[Number,String],default:""},max:[Number,String]},render:function(t,e){var i=e.props,s=parseInt(i.max,10),a=parseInt(i.value,10),n=s?"".concat(a," / ").concat(s):String(i.value),r=s&&a>s;return t("div",{staticClass:"v-counter",class:Object($["a"])({"error--text":r},Object(X["b"])(e))},n)}})),_e=xe,we=i("90a2");function Se(t){return"undefined"!==typeof window&&"IntersectionObserver"in window?ee["a"].extend({name:"intersectable",mounted:function(){we["a"].inserted(this.$el,{name:"intersect",value:this.onObserve})},destroyed:function(){we["a"].unbind(this.$el)},methods:{onObserve:function(e,i,s){if(s)for(var a=0,n=t.onVisible.length;a<n;a++){var r=this[t.onVisible[a]];"function"!==typeof r?Object(Y["c"])(t.onVisible[a]+" method is not available on the instance but referenced in intersectable mixin options"):r()}}}}):ee["a"].extend({name:"intersectable"})}var Oe=i("297c"),Ie=Object(z["a"])(Me,Se({onVisible:["setLabelWidth","setPrefixWidth","setPrependWidth","tryAutofocus"]}),Oe["a"]),Ce=["color","file","time","date","datetime-local","week","month"],Ae=Ie.extend().extend({name:"v-text-field",directives:{ripple:te["a"]},inheritAttrs:!1,props:{appendOuterIcon:String,autofocus:Boolean,clearable:Boolean,clearIcon:{type:String,default:"$clear"},counter:[Boolean,Number,String],counterValue:Function,filled:Boolean,flat:Boolean,fullWidth:Boolean,label:String,outlined:Boolean,placeholder:String,prefix:String,prependInnerIcon:String,reverse:Boolean,rounded:Boolean,shaped:Boolean,singleLine:Boolean,solo:Boolean,soloInverted:Boolean,suffix:String,type:{type:String,default:"text"}},data:function(){return{badInput:!1,labelWidth:0,prefixWidth:0,prependWidth:0,initialValue:null,isBooted:!1,isClearing:!1}},computed:{classes:function(){return Object($["a"])(Object($["a"])({},Me.options.computed.classes.call(this)),{},{"v-text-field":!0,"v-text-field--full-width":this.fullWidth,"v-text-field--prefix":this.prefix,"v-text-field--single-line":this.isSingle,"v-text-field--solo":this.isSolo,"v-text-field--solo-inverted":this.soloInverted,"v-text-field--solo-flat":this.flat,"v-text-field--filled":this.filled,"v-text-field--is-booted":this.isBooted,"v-text-field--enclosed":this.isEnclosed,"v-text-field--reverse":this.reverse,"v-text-field--outlined":this.outlined,"v-text-field--placeholder":this.placeholder,"v-text-field--rounded":this.rounded,"v-text-field--shaped":this.shaped})},computedColor:function(){var t=ve.options.computed.computedColor.call(this);return this.soloInverted&&this.isFocused?this.color||"primary":t},computedCounterValue:function(){return"function"===typeof this.counterValue?this.counterValue(this.internalValue):(this.internalValue||"").toString().length},hasCounter:function(){return!1!==this.counter&&null!=this.counter},hasDetails:function(){return Me.options.computed.hasDetails.call(this)||this.hasCounter},internalValue:{get:function(){return this.lazyValue},set:function(t){this.lazyValue=t,this.$emit("input",this.lazyValue)}},isDirty:function(){var t;return(null==(t=this.lazyValue)?void 0:t.toString().length)>0||this.badInput},isEnclosed:function(){return this.filled||this.isSolo||this.outlined},isLabelActive:function(){return this.isDirty||Ce.includes(this.type)},isSingle:function(){return this.isSolo||this.singleLine||this.fullWidth||this.filled&&!this.hasLabel},isSolo:function(){return this.solo||this.soloInverted},labelPosition:function(){var t=this.prefix&&!this.labelValue?this.prefixWidth:0;return this.labelValue&&this.prependWidth&&(t-=this.prependWidth),this.$vuetify.rtl===this.reverse?{left:t,right:"auto"}:{left:"auto",right:t}},showLabel:function(){return this.hasLabel&&(!this.isSingle||!this.isLabelActive&&!this.placeholder)},labelValue:function(){return!this.isSingle&&Boolean(this.isFocused||this.isLabelActive||this.placeholder)}},watch:{labelValue:"setLabelWidth",outlined:"setLabelWidth",label:function(){this.$nextTick(this.setLabelWidth)},prefix:function(){this.$nextTick(this.setPrefixWidth)},isFocused:"updateValue",value:function(t){this.lazyValue=t}},created:function(){this.$attrs.hasOwnProperty("box")&&Object(Y["a"])("box","filled",this),this.$attrs.hasOwnProperty("browser-autocomplete")&&Object(Y["a"])("browser-autocomplete","autocomplete",this),this.shaped&&!(this.filled||this.outlined||this.isSolo)&&Object(Y["c"])("shaped should be used with either filled or outlined",this)},mounted:function(){var t=this;this.autofocus&&this.tryAutofocus(),this.setLabelWidth(),this.setPrefixWidth(),this.setPrependWidth(),requestAnimationFrame((function(){return t.isBooted=!0}))},methods:{focus:function(){this.onFocus()},blur:function(t){var e=this;window.requestAnimationFrame((function(){e.$refs.input&&e.$refs.input.blur()}))},clearableCallback:function(){var t=this;this.$refs.input&&this.$refs.input.focus(),this.$nextTick((function(){return t.internalValue=null}))},genAppendSlot:function(){var t=[];return this.$slots["append-outer"]?t.push(this.$slots["append-outer"]):this.appendOuterIcon&&t.push(this.genIcon("appendOuter")),this.genSlot("append","outer",t)},genPrependInnerSlot:function(){var t=[];return this.$slots["prepend-inner"]?t.push(this.$slots["prepend-inner"]):this.prependInnerIcon&&t.push(this.genIcon("prependInner")),this.genSlot("prepend","inner",t)},genIconSlot:function(){var t=[];return this.$slots["append"]?t.push(this.$slots["append"]):this.appendIcon&&t.push(this.genIcon("append")),this.genSlot("append","inner",t)},genInputSlot:function(){var t=Me.options.methods.genInputSlot.call(this),e=this.genPrependInnerSlot();return e&&(t.children=t.children||[],t.children.unshift(e)),t},genClearIcon:function(){if(!this.clearable)return null;var t=this.isDirty?void 0:{attrs:{disabled:!0}};return this.genSlot("append","inner",[this.genIcon("clear",this.clearableCallback,t)])},genCounter:function(){if(!this.hasCounter)return null;var t=!0===this.counter?this.attrs$.maxlength:this.counter;return this.$createElement(_e,{props:{dark:this.dark,light:this.light,max:t,value:this.computedCounterValue}})},genControl:function(){return Me.options.methods.genControl.call(this)},genDefaultSlot:function(){return[this.genFieldset(),this.genTextFieldSlot(),this.genClearIcon(),this.genIconSlot(),this.genProgress()]},genFieldset:function(){return this.outlined?this.$createElement("fieldset",{attrs:{"aria-hidden":!0}},[this.genLegend()]):null},genLabel:function(){if(!this.showLabel)return null;var t={props:{absolute:!0,color:this.validationState,dark:this.dark,disabled:this.isDisabled,focused:!this.isSingle&&(this.isFocused||!!this.validationState),for:this.computedId,left:this.labelPosition.left,light:this.light,right:this.labelPosition.right,value:this.labelValue}};return this.$createElement(ce,t,this.$slots.label||this.label)},genLegend:function(){var t=this.singleLine||!this.labelValue&&!this.isDirty?0:this.labelWidth,e=this.$createElement("span",{domProps:{innerHTML:"​"}});return this.$createElement("legend",{style:{width:this.isSingle?void 0:Object(q["g"])(t)}},[e])},genInput:function(){var t=Object.assign({},this.listeners$);return delete t["change"],this.$createElement("input",{style:{},domProps:{value:"number"===this.type&&Object.is(this.lazyValue,-0)?"-0":this.lazyValue},attrs:Object($["a"])(Object($["a"])({},this.attrs$),{},{autofocus:this.autofocus,disabled:this.isDisabled,id:this.computedId,placeholder:this.placeholder,readonly:this.isReadonly,type:this.type}),on:Object.assign(t,{blur:this.onBlur,input:this.onInput,focus:this.onFocus,keydown:this.onKeyDown}),ref:"input"})},genMessages:function(){if(!this.showDetails)return null;var t=Me.options.methods.genMessages.call(this),e=this.genCounter();return this.$createElement("div",{staticClass:"v-text-field__details"},[t,e])},genTextFieldSlot:function(){return this.$createElement("div",{staticClass:"v-text-field__slot"},[this.genLabel(),this.prefix?this.genAffix("prefix"):null,this.genInput(),this.suffix?this.genAffix("suffix"):null])},genAffix:function(t){return this.$createElement("div",{class:"v-text-field__".concat(t),ref:t},this[t])},onBlur:function(t){var e=this;this.isFocused=!1,t&&this.$nextTick((function(){return e.$emit("blur",t)}))},onClick:function(){this.isFocused||this.isDisabled||!this.$refs.input||this.$refs.input.focus()},onFocus:function(t){if(this.$refs.input)return document.activeElement!==this.$refs.input?this.$refs.input.focus():void(this.isFocused||(this.isFocused=!0,t&&this.$emit("focus",t)))},onInput:function(t){var e=t.target;this.internalValue=e.value,this.badInput=e.validity&&e.validity.badInput},onKeyDown:function(t){t.keyCode===q["w"].enter&&this.$emit("change",this.internalValue),this.$emit("keydown",t)},onMouseDown:function(t){t.target!==this.$refs.input&&(t.preventDefault(),t.stopPropagation()),Me.options.methods.onMouseDown.call(this,t)},onMouseUp:function(t){this.hasMouseDown&&this.focus(),Me.options.methods.onMouseUp.call(this,t)},setLabelWidth:function(){this.outlined&&(this.labelWidth=this.$refs.label?Math.min(.75*this.$refs.label.scrollWidth+6,this.$el.offsetWidth-24):0)},setPrefixWidth:function(){this.$refs.prefix&&(this.prefixWidth=this.$refs.prefix.offsetWidth)},setPrependWidth:function(){this.outlined&&this.$refs["prepend-inner"]&&(this.prependWidth=this.$refs["prepend-inner"].offsetWidth)},tryAutofocus:function(){return!(!this.autofocus||"undefined"===typeof document||!this.$refs.input||document.activeElement===this.$refs.input)&&(this.$refs.input.focus(),!0)},updateValue:function(t){this.hasColor=t,t?this.initialValue=this.lazyValue:this.initialValue!==this.lazyValue&&this.$emit("change",this.lazyValue)}}}),je=ee["a"].extend({name:"comparable",props:{valueComparator:{type:Function,default:q["i"]}}}),ke=ee["a"].extend({name:"filterable",props:{noDataText:{type:String,default:"$vuetify.noDataText"}}}),Ee={closeOnClick:!1,closeOnContentClick:!1,disableKeys:!0,openOnClick:!1,maxHeight:304},Te=Object(z["a"])(Ae,je,ke),Pe=Te.extend().extend({name:"v-select",directives:{ClickOutside:J["a"]},props:{appendIcon:{type:String,default:"$dropdown"},attach:{type:null,default:!1},cacheItems:Boolean,chips:Boolean,clearable:Boolean,deletableChips:Boolean,disableLookup:Boolean,eager:Boolean,hideSelected:Boolean,items:{type:Array,default:function(){return[]}},itemColor:{type:String,default:"primary"},itemDisabled:{type:[String,Array,Function],default:"disabled"},itemText:{type:[String,Array,Function],default:"text"},itemValue:{type:[String,Array,Function],default:"value"},menuProps:{type:[String,Array,Object],default:function(){return Ee}},multiple:Boolean,openOnClear:Boolean,returnObject:Boolean,smallChips:Boolean},data:function(){return{cachedItems:this.cacheItems?this.items:[],menuIsBooted:!1,isMenuActive:!1,lastItem:20,lazyValue:void 0!==this.value?this.value:this.multiple?[]:void 0,selectedIndex:-1,selectedItems:[],keyboardLookupPrefix:"",keyboardLookupLastTime:0}},computed:{allItems:function(){return this.filterDuplicates(this.cachedItems.concat(this.items))},classes:function(){return Object($["a"])(Object($["a"])({},Ae.options.computed.classes.call(this)),{},{"v-select":!0,"v-select--chips":this.hasChips,"v-select--chips--small":this.smallChips,"v-select--is-menu-active":this.isMenuActive,"v-select--is-multi":this.multiple})},computedItems:function(){return this.allItems},computedOwns:function(){return"list-".concat(this._uid)},computedCounterValue:function(){return this.multiple?this.selectedItems.length:(this.getText(this.selectedItems[0])||"").toString().length},directives:function(){return this.isFocused?[{name:"click-outside",value:{handler:this.blur,closeConditional:this.closeConditional}}]:void 0},dynamicHeight:function(){return"auto"},hasChips:function(){return this.chips||this.smallChips},hasSlot:function(){return Boolean(this.hasChips||this.$scopedSlots.selection)},isDirty:function(){return this.selectedItems.length>0},listData:function(){var t=this.$vnode&&this.$vnode.context.$options._scopeId,e=t?Object(T["a"])({},t,!0):{};return{attrs:Object($["a"])(Object($["a"])({},e),{},{id:this.computedOwns}),props:{action:this.multiple,color:this.itemColor,dense:this.dense,hideSelected:this.hideSelected,items:this.virtualizedItems,itemDisabled:this.itemDisabled,itemText:this.itemText,itemValue:this.itemValue,noDataText:this.$vuetify.lang.t(this.noDataText),selectedItems:this.selectedItems},on:{select:this.selectItem},scopedSlots:{item:this.$scopedSlots.item}}},staticList:function(){return(this.$slots["no-data"]||this.$slots["prepend-item"]||this.$slots["append-item"])&&Object(Y["b"])("assert: staticList should not be called if slots are used"),this.$createElement(he,this.listData)},virtualizedItems:function(){return this.$_menuProps.auto?this.computedItems:this.computedItems.slice(0,this.lastItem)},menuCanShow:function(){return!0},$_menuProps:function(){var t="string"===typeof this.menuProps?this.menuProps.split(","):this.menuProps;return Array.isArray(t)&&(t=t.reduce((function(t,e){return t[e.trim()]=!0,t}),{})),Object($["a"])(Object($["a"])({},Ee),{},{eager:this.eager,value:this.menuCanShow&&this.isMenuActive,nudgeBottom:t.offsetY?1:0},t)}},watch:{internalValue:function(t){this.initialValue=t,this.setSelectedItems()},isMenuActive:function(t){var e=this;window.setTimeout((function(){return e.onMenuActiveChange(t)}))},items:{immediate:!0,handler:function(t){var e=this;this.cacheItems&&this.$nextTick((function(){e.cachedItems=e.filterDuplicates(e.cachedItems.concat(t))})),this.setSelectedItems()}}},methods:{blur:function(t){Ae.options.methods.blur.call(this,t),this.isMenuActive=!1,this.isFocused=!1,this.selectedIndex=-1},activateMenu:function(){this.isInteractive&&!this.isMenuActive&&(this.isMenuActive=!0)},clearableCallback:function(){var t=this;this.setValue(this.multiple?[]:void 0),this.setMenuIndex(-1),this.$nextTick((function(){return t.$refs.input&&t.$refs.input.focus()})),this.openOnClear&&(this.isMenuActive=!0)},closeConditional:function(t){return!this.isMenuActive||!this._isDestroyed&&(!this.getContent()||!this.getContent().contains(t.target))&&this.$el&&!this.$el.contains(t.target)&&t.target!==this.$el},filterDuplicates:function(t){for(var e=new Map,i=0;i<t.length;++i){var s=t[i],a=this.getValue(s);!e.has(a)&&e.set(a,s)}return Array.from(e.values())},findExistingIndex:function(t){var e=this,i=this.getValue(t);return(this.internalValue||[]).findIndex((function(t){return e.valueComparator(e.getValue(t),i)}))},getContent:function(){return this.$refs.menu&&this.$refs.menu.$refs.content},genChipSelection:function(t,e){var i=this,s=!this.isInteractive||this.getDisabled(t);return this.$createElement(Yt,{staticClass:"v-chip--select",attrs:{tabindex:-1},props:{close:this.deletableChips&&!s,disabled:s,inputValue:e===this.selectedIndex,small:this.smallChips},on:{click:function(t){s||(t.stopPropagation(),i.selectedIndex=e)},"click:close":function(){return i.onChipInput(t)}},key:JSON.stringify(this.getValue(t))},this.getText(t))},genCommaSelection:function(t,e,i){var s=e===this.selectedIndex&&this.computedColor,a=!this.isInteractive||this.getDisabled(t);return this.$createElement("div",this.setTextColor(s,{staticClass:"v-select__selection v-select__selection--comma",class:{"v-select__selection--disabled":a},key:JSON.stringify(this.getValue(t))}),"".concat(this.getText(t)).concat(i?"":", "))},genDefaultSlot:function(){var t=this.genSelections(),e=this.genInput();return Array.isArray(t)?t.push(e):(t.children=t.children||[],t.children.push(e)),[this.genFieldset(),this.$createElement("div",{staticClass:"v-select__slot",directives:this.directives},[this.genLabel(),this.prefix?this.genAffix("prefix"):null,t,this.suffix?this.genAffix("suffix"):null,this.genClearIcon(),this.genIconSlot(),this.genHiddenInput()]),this.genMenu(),this.genProgress()]},genIcon:function(t,e,i){var s=Me.options.methods.genIcon.call(this,t,e,i);return"append"===t&&(s.children[0].data=Object(ie["a"])(s.children[0].data,{attrs:{tabindex:s.children[0].componentOptions.listeners&&"-1","aria-hidden":"true","aria-label":void 0}})),s},genInput:function(){var t=Ae.options.methods.genInput.call(this);return delete t.data.attrs.name,t.data=Object(ie["a"])(t.data,{domProps:{value:null},attrs:{readonly:!0,type:"text","aria-readonly":String(this.isReadonly),"aria-activedescendant":Object(q["o"])(this.$refs.menu,"activeTile.id"),autocomplete:Object(q["o"])(t.data,"attrs.autocomplete","off")},on:{keypress:this.onKeyPress}}),t},genHiddenInput:function(){return this.$createElement("input",{domProps:{value:this.lazyValue},attrs:{type:"hidden",name:this.attrs$.name}})},genInputSlot:function(){var t=Ae.options.methods.genInputSlot.call(this);return t.data.attrs=Object($["a"])(Object($["a"])({},t.data.attrs),{},{role:"button","aria-haspopup":"listbox","aria-expanded":String(this.isMenuActive),"aria-owns":this.computedOwns}),t},genList:function(){return this.$slots["no-data"]||this.$slots["prepend-item"]||this.$slots["append-item"]?this.genListWithSlot():this.staticList},genListWithSlot:function(){var t=this,e=["prepend-item","no-data","append-item"].filter((function(e){return t.$slots[e]})).map((function(e){return t.$createElement("template",{slot:e},t.$slots[e])}));return this.$createElement(he,Object($["a"])({},this.listData),e)},genMenu:function(){var t=this,e=this.$_menuProps;return e.activator=this.$refs["input-slot"],""===this.attach||!0===this.attach||"attach"===this.attach?e.attach=this.$el:e.attach=this.attach,this.$createElement(Zt,{attrs:{role:void 0},props:e,on:{input:function(e){t.isMenuActive=e,t.isFocused=e},scroll:this.onScroll},ref:"menu"},[this.genList()])},genSelections:function(){var t,e=this.selectedItems.length,i=new Array(e);t=this.$scopedSlots.selection?this.genSlotSelection:this.hasChips?this.genChipSelection:this.genCommaSelection;while(e--)i[e]=t(this.selectedItems[e],e,e===i.length-1);return this.$createElement("div",{staticClass:"v-select__selections"},i)},genSlotSelection:function(t,e){var i=this;return this.$scopedSlots.selection({attrs:{class:"v-chip--select"},parent:this,item:t,index:e,select:function(t){t.stopPropagation(),i.selectedIndex=e},selected:e===this.selectedIndex,disabled:!this.isInteractive})},getMenuIndex:function(){return this.$refs.menu?this.$refs.menu.listIndex:-1},getDisabled:function(t){return Object(q["q"])(t,this.itemDisabled,!1)},getText:function(t){return Object(q["q"])(t,this.itemText,t)},getValue:function(t){return Object(q["q"])(t,this.itemValue,this.getText(t))},onBlur:function(t){t&&this.$emit("blur",t)},onChipInput:function(t){this.multiple?this.selectItem(t):this.setValue(null),0===this.selectedItems.length?this.isMenuActive=!0:this.isMenuActive=!1,this.selectedIndex=-1},onClick:function(t){this.isInteractive&&(this.isAppendInner(t.target)||(this.isMenuActive=!0),this.isFocused||(this.isFocused=!0,this.$emit("focus")),this.$emit("click",t))},onEscDown:function(t){t.preventDefault(),this.isMenuActive&&(t.stopPropagation(),this.isMenuActive=!1)},onKeyPress:function(t){var e=this;if(!this.multiple&&this.isInteractive&&!this.disableLookup){var i=1e3,s=performance.now();s-this.keyboardLookupLastTime>i&&(this.keyboardLookupPrefix=""),this.keyboardLookupPrefix+=t.key.toLowerCase(),this.keyboardLookupLastTime=s;var a=this.allItems.findIndex((function(t){var i=(e.getText(t)||"").toString();return i.toLowerCase().startsWith(e.keyboardLookupPrefix)})),n=this.allItems[a];-1!==a&&(this.lastItem=Math.max(this.lastItem,a+5),this.setValue(this.returnObject?n:this.getValue(n)),this.$nextTick((function(){return e.$refs.menu.getTiles()})),setTimeout((function(){return e.setMenuIndex(a)})))}},onKeyDown:function(t){var e=this;if(!this.isReadonly||t.keyCode===q["w"].tab){var i=t.keyCode,s=this.$refs.menu;if([q["w"].enter,q["w"].space].includes(i)&&this.activateMenu(),this.$emit("keydown",t),s)return this.isMenuActive&&i!==q["w"].tab&&this.$nextTick((function(){s.changeListIndex(t),e.$emit("update:list-index",s.listIndex)})),!this.isMenuActive&&[q["w"].up,q["w"].down].includes(i)?this.onUpDown(t):i===q["w"].esc?this.onEscDown(t):i===q["w"].tab?this.onTabDown(t):i===q["w"].space?this.onSpaceDown(t):void 0}},onMenuActiveChange:function(t){if(!(this.multiple&&!t||this.getMenuIndex()>-1)){var e=this.$refs.menu;if(e&&this.isDirty)for(var i=0;i<e.tiles.length;i++)if("true"===e.tiles[i].getAttribute("aria-selected")){this.setMenuIndex(i);break}}},onMouseUp:function(t){var e=this;this.hasMouseDown&&3!==t.which&&this.isInteractive&&(this.isAppendInner(t.target)?this.$nextTick((function(){return e.isMenuActive=!e.isMenuActive})):this.isEnclosed&&(this.isMenuActive=!0)),Ae.options.methods.onMouseUp.call(this,t)},onScroll:function(){var t=this;if(this.isMenuActive){if(this.lastItem>this.computedItems.length)return;var e=this.getContent().scrollHeight-(this.getContent().scrollTop+this.getContent().clientHeight)<200;e&&(this.lastItem+=20)}else requestAnimationFrame((function(){return t.getContent().scrollTop=0}))},onSpaceDown:function(t){t.preventDefault()},onTabDown:function(t){var e=this.$refs.menu;if(e){var i=e.activeTile;!this.multiple&&i&&this.isMenuActive?(t.preventDefault(),t.stopPropagation(),i.click()):this.blur(t)}},onUpDown:function(t){var e=this.$refs.menu;if(e){if(t.preventDefault(),this.multiple)return this.activateMenu();var i=t.keyCode;e.isBooted=!0,window.requestAnimationFrame((function(){e.getTiles(),q["w"].up===i?e.prevTile():e.nextTile(),e.activeTile&&e.activeTile.click()}))}},selectItem:function(t){var e=this;if(this.multiple){var i=(this.internalValue||[]).slice(),s=this.findExistingIndex(t);if(-1!==s?i.splice(s,1):i.push(t),this.setValue(i.map((function(t){return e.returnObject?t:e.getValue(t)}))),this.$nextTick((function(){e.$refs.menu&&e.$refs.menu.updateDimensions()})),!this.multiple)return;var a=this.getMenuIndex();if(this.setMenuIndex(-1),this.hideSelected)return;this.$nextTick((function(){return e.setMenuIndex(a)}))}else this.setValue(this.returnObject?t:this.getValue(t)),this.isMenuActive=!1},setMenuIndex:function(t){this.$refs.menu&&(this.$refs.menu.listIndex=t)},setSelectedItems:function(){var t,e=this,i=[],s=this.multiple&&Array.isArray(this.internalValue)?this.internalValue:[this.internalValue],a=Object(n["a"])(s);try{var r=function(){var s=t.value,a=e.allItems.findIndex((function(t){return e.valueComparator(e.getValue(t),e.getValue(s))}));a>-1&&i.push(e.allItems[a])};for(a.s();!(t=a.n()).done;)r()}catch(o){a.e(o)}finally{a.f()}this.selectedItems=i},setValue:function(t){var e=this.internalValue;this.internalValue=t,t!==e&&this.$emit("change",t)},isAppendInner:function(t){var e=this.$refs["append-inner"];return e&&(e===t||e.contains(t))}}}),$e=(i("45fc"),Object($["a"])(Object($["a"])({},Ee),{},{offsetY:!0,offsetOverflow:!0,transition:!1})),Be=Pe.extend({name:"v-autocomplete",props:{allowOverflow:{type:Boolean,default:!0},autoSelectFirst:{type:Boolean,default:!1},filter:{type:Function,default:function(t,e,i){return i.toLocaleLowerCase().indexOf(e.toLocaleLowerCase())>-1}},hideNoData:Boolean,menuProps:{type:Pe.options.props.menuProps.type,default:function(){return $e}},noFilter:Boolean,searchInput:{type:String,default:void 0}},data:function(){return{lazySearch:this.searchInput}},computed:{classes:function(){return Object($["a"])(Object($["a"])({},Pe.options.computed.classes.call(this)),{},{"v-autocomplete":!0,"v-autocomplete--is-selecting-index":this.selectedIndex>-1})},computedItems:function(){return this.filteredItems},selectedValues:function(){var t=this;return this.selectedItems.map((function(e){return t.getValue(e)}))},hasDisplayedItems:function(){var t=this;return this.hideSelected?this.filteredItems.some((function(e){return!t.hasItem(e)})):this.filteredItems.length>0},currentRange:function(){return null==this.selectedItem?0:String(this.getText(this.selectedItem)).length},filteredItems:function(){var t=this;return!this.isSearching||this.noFilter||null==this.internalSearch?this.allItems:this.allItems.filter((function(e){var i=Object(q["q"])(e,t.itemText),s=null!=i?String(i):"";return t.filter(e,String(t.internalSearch),s)}))},internalSearch:{get:function(){return this.lazySearch},set:function(t){this.lazySearch=t,this.$emit("update:search-input",t)}},isAnyValueAllowed:function(){return!1},isDirty:function(){return this.searchIsDirty||this.selectedItems.length>0},isSearching:function(){return this.multiple&&this.searchIsDirty||this.searchIsDirty&&this.internalSearch!==this.getText(this.selectedItem)},menuCanShow:function(){return!!this.isFocused&&(this.hasDisplayedItems||!this.hideNoData)},$_menuProps:function(){var t=Pe.options.computed.$_menuProps.call(this);return t.contentClass="v-autocomplete__content ".concat(t.contentClass||"").trim(),Object($["a"])(Object($["a"])({},$e),t)},searchIsDirty:function(){return null!=this.internalSearch&&""!==this.internalSearch},selectedItem:function(){var t=this;return this.multiple?null:this.selectedItems.find((function(e){return t.valueComparator(t.getValue(e),t.getValue(t.internalValue))}))},listData:function(){var t=Pe.options.computed.listData.call(this);return t.props=Object($["a"])(Object($["a"])({},t.props),{},{items:this.virtualizedItems,noFilter:this.noFilter||!this.isSearching||!this.filteredItems.length,searchInput:this.internalSearch}),t}},watch:{filteredItems:"onFilteredItemsChanged",internalValue:"setSearch",isFocused:function(t){t?(document.addEventListener("copy",this.onCopy),this.$refs.input&&this.$refs.input.select()):(document.removeEventListener("copy",this.onCopy),this.updateSelf())},isMenuActive:function(t){!t&&this.hasSlot&&(this.lazySearch=void 0)},items:function(t,e){e&&e.length||!this.hideNoData||!this.isFocused||this.isMenuActive||!t.length||this.activateMenu()},searchInput:function(t){this.lazySearch=t},internalSearch:"onInternalSearchChanged",itemText:"updateSelf"},created:function(){this.setSearch()},destroyed:function(){document.removeEventListener("copy",this.onCopy)},methods:{onFilteredItemsChanged:function(t,e){var i=this;t!==e&&(this.setMenuIndex(-1),this.$nextTick((function(){i.internalSearch&&(1===t.length||i.autoSelectFirst)&&(i.$refs.menu.getTiles(),i.setMenuIndex(0))})))},onInternalSearchChanged:function(){this.updateMenuDimensions()},updateMenuDimensions:function(){this.isMenuActive&&this.$refs.menu&&this.$refs.menu.updateDimensions()},changeSelectedIndex:function(t){this.searchIsDirty||(this.multiple&&t===q["w"].left?-1===this.selectedIndex?this.selectedIndex=this.selectedItems.length-1:this.selectedIndex--:this.multiple&&t===q["w"].right?this.selectedIndex>=this.selectedItems.length-1?this.selectedIndex=-1:this.selectedIndex++:t!==q["w"].backspace&&t!==q["w"].delete||this.deleteCurrentItem())},deleteCurrentItem:function(){var t=this.selectedIndex,e=this.selectedItems[t];if(this.isInteractive&&!this.getDisabled(e)){var i=this.selectedItems.length-1;if(-1!==this.selectedIndex||0===i){var s=this.selectedItems.length,a=t!==s-1?t:t-1,n=this.selectedItems[a];n?this.selectItem(e):this.setValue(this.multiple?[]:void 0),this.selectedIndex=a}else this.selectedIndex=i}},clearableCallback:function(){this.internalSearch=void 0,Pe.options.methods.clearableCallback.call(this)},genInput:function(){var t=Ae.options.methods.genInput.call(this);return t.data=Object(ie["a"])(t.data,{attrs:{"aria-activedescendant":Object(q["o"])(this.$refs.menu,"activeTile.id"),autocomplete:Object(q["o"])(t.data,"attrs.autocomplete","off")},domProps:{value:this.internalSearch}}),t},genInputSlot:function(){var t=Pe.options.methods.genInputSlot.call(this);return t.data.attrs.role="combobox",t},genSelections:function(){return this.hasSlot||this.multiple?Pe.options.methods.genSelections.call(this):[]},onClick:function(t){this.isInteractive&&(this.selectedIndex>-1?this.selectedIndex=-1:this.onFocus(),this.isAppendInner(t.target)||this.activateMenu())},onInput:function(t){if(!(this.selectedIndex>-1)&&t.target){var e=t.target,i=e.value;e.value&&this.activateMenu(),this.internalSearch=i,this.badInput=e.validity&&e.validity.badInput}},onKeyDown:function(t){var e=t.keyCode;Pe.options.methods.onKeyDown.call(this,t),this.changeSelectedIndex(e)},onSpaceDown:function(t){},onTabDown:function(t){Pe.options.methods.onTabDown.call(this,t),this.updateSelf()},onUpDown:function(t){t.preventDefault(),this.activateMenu()},selectItem:function(t){Pe.options.methods.selectItem.call(this,t),this.setSearch()},setSelectedItems:function(){Pe.options.methods.setSelectedItems.call(this),this.isFocused||this.setSearch()},setSearch:function(){var t=this;this.$nextTick((function(){t.multiple&&t.internalSearch&&t.isMenuActive||(t.internalSearch=!t.selectedItems.length||t.multiple||t.hasSlot?null:t.getText(t.selectedItem))}))},updateSelf:function(){(this.searchIsDirty||this.internalValue)&&(this.valueComparator(this.internalSearch,this.getValue(this.internalValue))||this.setSearch())},hasItem:function(t){return this.selectedValues.indexOf(this.getValue(t))>-1},onCopy:function(t){if(-1!==this.selectedIndex){var e=this.selectedItems[this.selectedIndex],i=this.getText(e);t.clipboardData.setData("text/plain",i),t.clipboardData.setData("text/vnd.vuetify.autocomplete.item+plain",i),t.preventDefault()}}}}),De=Be.extend({name:"v-combobox",props:{delimiters:{type:Array,default:function(){return[]}},returnObject:{type:Boolean,default:!0}},data:function(){return{editingIndex:-1}},computed:{computedCounterValue:function(){return this.multiple?this.selectedItems.length:(this.internalSearch||"").toString().length},hasSlot:function(){return Pe.options.computed.hasSlot.call(this)||this.multiple},isAnyValueAllowed:function(){return!0},menuCanShow:function(){return!!this.isFocused&&(this.hasDisplayedItems||!!this.$slots["no-data"]&&!this.hideNoData)}},methods:{onInternalSearchChanged:function(t){if(t&&this.multiple&&this.delimiters.length){var e=this.delimiters.find((function(e){return t.endsWith(e)}));null!=e&&(this.internalSearch=t.slice(0,t.length-e.length),this.updateTags())}this.updateMenuDimensions()},genInput:function(){var t=Be.options.methods.genInput.call(this);return delete t.data.attrs.name,t.data.on.paste=this.onPaste,t},genChipSelection:function(t,e){var i=this,s=Pe.options.methods.genChipSelection.call(this,t,e);return this.multiple&&(s.componentOptions.listeners=Object($["a"])(Object($["a"])({},s.componentOptions.listeners),{},{dblclick:function(){i.editingIndex=e,i.internalSearch=i.getText(t),i.selectedIndex=-1}})),s},onChipInput:function(t){Pe.options.methods.onChipInput.call(this,t),this.editingIndex=-1},onEnterDown:function(t){t.preventDefault(),this.getMenuIndex()>-1||this.$nextTick(this.updateSelf)},onFilteredItemsChanged:function(t,e){this.autoSelectFirst&&Be.options.methods.onFilteredItemsChanged.call(this,t,e)},onKeyDown:function(t){var e=t.keyCode;Pe.options.methods.onKeyDown.call(this,t),this.multiple&&e===q["w"].left&&0===this.$refs.input.selectionStart?this.updateSelf():e===q["w"].enter&&this.onEnterDown(t),this.changeSelectedIndex(e)},onTabDown:function(t){if(this.multiple&&this.internalSearch&&-1===this.getMenuIndex())return t.preventDefault(),t.stopPropagation(),this.updateTags();Be.options.methods.onTabDown.call(this,t)},selectItem:function(t){this.editingIndex>-1?this.updateEditing():Be.options.methods.selectItem.call(this,t)},setSelectedItems:function(){null==this.internalValue||""===this.internalValue?this.selectedItems=[]:this.selectedItems=this.multiple?this.internalValue:[this.internalValue]},setValue:function(t){var e;Pe.options.methods.setValue.call(this,null!=(e=t)?e:this.internalSearch)},updateEditing:function(){var t=this.internalValue.slice();t[this.editingIndex]=this.internalSearch,this.setValue(t),this.editingIndex=-1},updateCombobox:function(){var t=Boolean(this.$scopedSlots.selection)||this.hasChips;t&&!this.searchIsDirty||(this.internalSearch!==this.getText(this.internalValue)&&this.setValue(),t&&(this.internalSearch=void 0))},updateSelf:function(){this.multiple?this.updateTags():this.updateCombobox()},updateTags:function(){var t=this.getMenuIndex();if(!(t<0)||this.searchIsDirty){if(this.editingIndex>-1)return this.updateEditing();var e=this.selectedItems.indexOf(this.internalSearch);if(e>-1){var i=this.internalValue.slice();i.splice(e,1),this.setValue(i)}if(t>-1)return this.internalSearch=null;this.selectItem(this.internalSearch),this.internalSearch=null}},onPaste:function(t){if(this.multiple&&!this.searchIsDirty){var e=t.clipboardData.getData("text/vnd.vuetify.autocomplete.item+plain");e&&-1===this.findExistingIndex(e)&&(t.preventDefault(),Pe.options.methods.selectItem.call(this,e))}}}}),Le=(i("a623"),i("91f4"),i("841c"),ee["a"].extend({name:"v-data",inheritAttrs:!1,props:{items:{type:Array,default:function(){return[]}},options:{type:Object,default:function(){return{}}},sortBy:{type:[String,Array],default:function(){return[]}},sortDesc:{type:[Boolean,Array],default:function(){return[]}},customSort:{type:Function,default:q["C"]},mustSort:Boolean,multiSort:Boolean,page:{type:Number,default:1},itemsPerPage:{type:Number,default:10},groupBy:{type:[String,Array],default:function(){return[]}},groupDesc:{type:[Boolean,Array],default:function(){return[]}},customGroup:{type:Function,default:q["u"]},locale:{type:String,default:"en-US"},disableSort:Boolean,disablePagination:Boolean,disableFiltering:Boolean,search:String,customFilter:{type:Function,default:q["B"]},serverItemsLength:{type:Number,default:-1}},data:function(){var t={page:this.page,itemsPerPage:this.itemsPerPage,sortBy:Object(q["E"])(this.sortBy),sortDesc:Object(q["E"])(this.sortDesc),groupBy:Object(q["E"])(this.groupBy),groupDesc:Object(q["E"])(this.groupDesc),mustSort:this.mustSort,multiSort:this.multiSort};this.options&&(t=Object.assign(t,this.options));var e,i,s=t,a=s.sortBy,n=s.sortDesc,r=s.groupBy,o=s.groupDesc,h=a.length-n.length,l=r.length-o.length;h>0&&(e=t.sortDesc).push.apply(e,Object(P["a"])(Object(q["l"])(h,!1)));l>0&&(i=t.groupDesc).push.apply(i,Object(P["a"])(Object(q["l"])(l,!1)));return{internalOptions:t}},computed:{itemsLength:function(){return this.serverItemsLength>=0?this.serverItemsLength:this.filteredItems.length},pageCount:function(){return this.internalOptions.itemsPerPage<=0?1:Math.ceil(this.itemsLength/this.internalOptions.itemsPerPage)},pageStart:function(){return-1!==this.internalOptions.itemsPerPage&&this.items.length?(this.internalOptions.page-1)*this.internalOptions.itemsPerPage:0},pageStop:function(){return-1===this.internalOptions.itemsPerPage?this.itemsLength:this.items.length?Math.min(this.itemsLength,this.internalOptions.page*this.internalOptions.itemsPerPage):0},isGrouped:function(){return!!this.internalOptions.groupBy.length},pagination:function(){return{page:this.internalOptions.page,itemsPerPage:this.internalOptions.itemsPerPage,pageStart:this.pageStart,pageStop:this.pageStop,pageCount:this.pageCount,itemsLength:this.itemsLength}},filteredItems:function(){var t=this.items.slice();return!this.disableFiltering&&this.serverItemsLength<=0&&(t=this.customFilter(t,this.search)),t},computedItems:function(){var t=this.filteredItems.slice();return!this.disableSort&&this.serverItemsLength<=0&&(t=this.sortItems(t)),!this.disablePagination&&this.serverItemsLength<=0&&(t=this.paginateItems(t)),t},groupedItems:function(){return this.isGrouped?this.groupItems(this.computedItems):null},scopedProps:function(){var t={sort:this.sort,sortArray:this.sortArray,group:this.group,items:this.computedItems,options:this.internalOptions,updateOptions:this.updateOptions,pagination:this.pagination,groupedItems:this.groupedItems,originalItemsLength:this.items.length};return t},computedOptions:function(){return Object($["a"])({},this.options)}},watch:{computedOptions:{handler:function(t,e){Object(q["i"])(t,e)||this.updateOptions(t)},deep:!0,immediate:!0},internalOptions:{handler:function(t,e){Object(q["i"])(t,e)||this.$emit("update:options",t)},deep:!0,immediate:!0},page:function(t){this.updateOptions({page:t})},"internalOptions.page":function(t){this.$emit("update:page",t)},itemsPerPage:function(t){this.updateOptions({itemsPerPage:t})},"internalOptions.itemsPerPage":function(t){this.$emit("update:items-per-page",t)},sortBy:function(t){this.updateOptions({sortBy:Object(q["E"])(t)})},"internalOptions.sortBy":function(t,e){!Object(q["i"])(t,e)&&this.$emit("update:sort-by",Array.isArray(this.sortBy)?t:t[0])},sortDesc:function(t){this.updateOptions({sortDesc:Object(q["E"])(t)})},"internalOptions.sortDesc":function(t,e){!Object(q["i"])(t,e)&&this.$emit("update:sort-desc",Array.isArray(this.sortDesc)?t:t[0])},groupBy:function(t){this.updateOptions({groupBy:Object(q["E"])(t)})},"internalOptions.groupBy":function(t,e){!Object(q["i"])(t,e)&&this.$emit("update:group-by",Array.isArray(this.groupBy)?t:t[0])},groupDesc:function(t){this.updateOptions({groupDesc:Object(q["E"])(t)})},"internalOptions.groupDesc":function(t,e){!Object(q["i"])(t,e)&&this.$emit("update:group-desc",Array.isArray(this.groupDesc)?t:t[0])},multiSort:function(t){this.updateOptions({multiSort:t})},"internalOptions.multiSort":function(t){this.$emit("update:multi-sort",t)},mustSort:function(t){this.updateOptions({mustSort:t})},"internalOptions.mustSort":function(t){this.$emit("update:must-sort",t)},pageCount:{handler:function(t){this.$emit("page-count",t)},immediate:!0},computedItems:{handler:function(t){this.$emit("current-items",t)},immediate:!0},pagination:{handler:function(t,e){Object(q["i"])(t,e)||this.$emit("pagination",this.pagination)},immediate:!0}},methods:{toggle:function(t,e,i,s,a,n){var r=e.slice(),o=i.slice(),h=r.findIndex((function(e){return e===t}));return h<0?(n||(r=[],o=[]),r.push(t),o.push(!1)):h>=0&&!o[h]?o[h]=!0:a?o[h]=!1:(r.splice(h,1),o.splice(h,1)),Object(q["i"])(r,e)&&Object(q["i"])(o,i)||(s=1),{by:r,desc:o,page:s}},group:function(t){var e=this.toggle(t,this.internalOptions.groupBy,this.internalOptions.groupDesc,this.internalOptions.page,!0,!1),i=e.by,s=e.desc,a=e.page;this.updateOptions({groupBy:i,groupDesc:s,page:a})},sort:function(t){if(Array.isArray(t))return this.sortArray(t);var e=this.toggle(t,this.internalOptions.sortBy,this.internalOptions.sortDesc,this.internalOptions.page,this.internalOptions.mustSort,this.internalOptions.multiSort),i=e.by,s=e.desc,a=e.page;this.updateOptions({sortBy:i,sortDesc:s,page:a})},sortArray:function(t){var e=this,i=t.map((function(t){var i=e.internalOptions.sortBy.findIndex((function(e){return e===t}));return i>-1&&e.internalOptions.sortDesc[i]}));this.updateOptions({sortBy:t,sortDesc:i})},updateOptions:function(t){this.internalOptions=Object($["a"])(Object($["a"])(Object($["a"])({},this.internalOptions),t),{},{page:this.serverItemsLength<0?Math.max(1,Math.min(t.page||this.internalOptions.page,this.pageCount)):t.page||this.internalOptions.page})},sortItems:function(t){var e=this.internalOptions.sortBy,i=this.internalOptions.sortDesc;return this.internalOptions.groupBy.length&&(e=[].concat(Object(P["a"])(this.internalOptions.groupBy),Object(P["a"])(e)),i=[].concat(Object(P["a"])(this.internalOptions.groupDesc),Object(P["a"])(i))),this.customSort(t,e,i,this.locale)},groupItems:function(t){return this.customGroup(t,this.internalOptions.groupBy,this.internalOptions.groupDesc)},paginateItems:function(t){return-1===this.serverItemsLength&&t.length<=this.pageStart&&(this.internalOptions.page=Math.max(1,this.internalOptions.page-1)),t.slice(this.pageStart,this.pageStop)}},render:function(){return this.$scopedSlots.default&&this.$scopedSlots.default(this.scopedProps)}})),Ne=(i("495d"),i("afdd")),Re=ee["a"].extend({name:"v-data-footer",props:{options:{type:Object,required:!0},pagination:{type:Object,required:!0},itemsPerPageOptions:{type:Array,default:function(){return[5,10,15,-1]}},prevIcon:{type:String,default:"$prev"},nextIcon:{type:String,default:"$next"},firstIcon:{type:String,default:"$first"},lastIcon:{type:String,default:"$last"},itemsPerPageText:{type:String,default:"$vuetify.dataFooter.itemsPerPageText"},itemsPerPageAllText:{type:String,default:"$vuetify.dataFooter.itemsPerPageAll"},showFirstLastPage:Boolean,showCurrentPage:Boolean,disablePagination:Boolean,disableItemsPerPage:Boolean,pageText:{type:String,default:"$vuetify.dataFooter.pageText"}},computed:{disableNextPageIcon:function(){return this.options.itemsPerPage<=0||this.options.page*this.options.itemsPerPage>=this.pagination.itemsLength||this.pagination.pageStop<0},computedDataItemsPerPageOptions:function(){var t=this;return this.itemsPerPageOptions.map((function(e){return"object"===Object(fe["a"])(e)?e:t.genDataItemsPerPageOption(e)}))}},methods:{updateOptions:function(t){this.$emit("update:options",Object.assign({},this.options,t))},onFirstPage:function(){this.updateOptions({page:1})},onPreviousPage:function(){this.updateOptions({page:this.options.page-1})},onNextPage:function(){this.updateOptions({page:this.options.page+1})},onLastPage:function(){this.updateOptions({page:this.pagination.pageCount})},onChangeItemsPerPage:function(t){this.updateOptions({itemsPerPage:t,page:1})},genDataItemsPerPageOption:function(t){return{text:-1===t?this.$vuetify.lang.t(this.itemsPerPageAllText):String(t),value:t}},genItemsPerPageSelect:function(){var t=this.options.itemsPerPage,e=this.computedDataItemsPerPageOptions;return e.length<=1?null:(e.find((function(e){return e.value===t}))||(t=e[0]),this.$createElement("div",{staticClass:"v-data-footer__select"},[this.$vuetify.lang.t(this.itemsPerPageText),this.$createElement(Pe,{attrs:{"aria-label":this.itemsPerPageText},props:{disabled:this.disableItemsPerPage,items:e,value:t,hideDetails:!0,auto:!0,minWidth:"75px"},on:{input:this.onChangeItemsPerPage}})]))},genPaginationInfo:function(){var t=["–"];if(this.pagination.itemsLength&&this.pagination.itemsPerPage){var e=this.pagination.itemsLength,i=this.pagination.pageStart+1,s=e<this.pagination.pageStop||this.pagination.pageStop<0?e:this.pagination.pageStop;t=this.$scopedSlots["page-text"]?[this.$scopedSlots["page-text"]({pageStart:i,pageStop:s,itemsLength:e})]:[this.$vuetify.lang.t(this.pageText,i,s,e)]}return this.$createElement("div",{class:"v-data-footer__pagination"},t)},genIcon:function(t,e,i,s){return this.$createElement(Ne["a"],{props:{disabled:e||this.disablePagination,icon:!0,text:!0},on:{click:t},attrs:{"aria-label":i}},[this.$createElement(Ut["a"],s)])},genIcons:function(){var t=[],e=[];return t.push(this.genIcon(this.onPreviousPage,1===this.options.page,this.$vuetify.lang.t("$vuetify.dataFooter.prevPage"),this.$vuetify.rtl?this.nextIcon:this.prevIcon)),e.push(this.genIcon(this.onNextPage,this.disableNextPageIcon,this.$vuetify.lang.t("$vuetify.dataFooter.nextPage"),this.$vuetify.rtl?this.prevIcon:this.nextIcon)),this.showFirstLastPage&&(t.unshift(this.genIcon(this.onFirstPage,1===this.options.page,this.$vuetify.lang.t("$vuetify.dataFooter.firstPage"),this.$vuetify.rtl?this.lastIcon:this.firstIcon)),e.push(this.genIcon(this.onLastPage,this.options.page>=this.pagination.pageCount||-1===this.options.itemsPerPage,this.$vuetify.lang.t("$vuetify.dataFooter.lastPage"),this.$vuetify.rtl?this.firstIcon:this.lastIcon))),[this.$createElement("div",{staticClass:"v-data-footer__icons-before"},t),this.showCurrentPage&&this.$createElement("span",[this.options.page.toString()]),this.$createElement("div",{staticClass:"v-data-footer__icons-after"},e)]}},render:function(){return this.$createElement("div",{staticClass:"v-data-footer"},[this.genItemsPerPageSelect(),this.genPaginationInfo(),this.genIcons()])}}),Ve=Object(z["a"])(jt["a"],X["a"]).extend({name:"v-data-iterator",props:Object($["a"])(Object($["a"])({},Le.options.props),{},{itemKey:{type:String,default:"id"},value:{type:Array,default:function(){return[]}},singleSelect:Boolean,expanded:{type:Array,default:function(){return[]}},mobileBreakpoint:Object($["a"])(Object($["a"])({},jt["a"].options.props.mobileBreakpoint),{},{default:600}),singleExpand:Boolean,loading:[Boolean,String],noResultsText:{type:String,default:"$vuetify.dataIterator.noResultsText"},noDataText:{type:String,default:"$vuetify.noDataText"},loadingText:{type:String,default:"$vuetify.dataIterator.loadingText"},hideDefaultFooter:Boolean,footerProps:Object,selectableKey:{type:String,default:"isSelectable"}}),data:function(){return{selection:{},expansion:{},internalCurrentItems:[]}},computed:{everyItem:function(){var t=this;return!!this.selectableItems.length&&this.selectableItems.every((function(e){return t.isSelected(e)}))},someItems:function(){var t=this;return this.selectableItems.some((function(e){return t.isSelected(e)}))},sanitizedFooterProps:function(){return Object(q["d"])(this.footerProps)},selectableItems:function(){var t=this;return this.internalCurrentItems.filter((function(e){return t.isSelectable(e)}))}},watch:{value:{handler:function(t){var e=this;this.selection=t.reduce((function(t,i){return t[Object(q["o"])(i,e.itemKey)]=i,t}),{})},immediate:!0},selection:function(t,e){Object(q["i"])(Object.keys(t),Object.keys(e))||this.$emit("input",Object.values(t))},expanded:{handler:function(t){var e=this;this.expansion=t.reduce((function(t,i){return t[Object(q["o"])(i,e.itemKey)]=!0,t}),{})},immediate:!0},expansion:function(t,e){var i=this;if(!Object(q["i"])(t,e)){var s=Object.keys(t).filter((function(e){return t[e]})),a=s.length?this.items.filter((function(t){return s.includes(String(Object(q["o"])(t,i.itemKey)))})):[];this.$emit("update:expanded",a)}}},created:function(){var t=this,e=[["disable-initial-sort","sort-by"],["filter","custom-filter"],["pagination","options"],["total-items","server-items-length"],["hide-actions","hide-default-footer"],["rows-per-page-items","footer-props.items-per-page-options"],["rows-per-page-text","footer-props.items-per-page-text"],["prev-icon","footer-props.prev-icon"],["next-icon","footer-props.next-icon"]];e.forEach((function(e){var i=Object(Ht["a"])(e,2),s=i[0],a=i[1];t.$attrs.hasOwnProperty(s)&&Object(Y["a"])(s,a,t)}));var i=["expand","content-class","content-props","content-tag"];i.forEach((function(e){t.$attrs.hasOwnProperty(e)&&Object(Y["e"])(e)}))},methods:{toggleSelectAll:function(t){for(var e=Object.assign({},this.selection),i=0;i<this.selectableItems.length;i++){var s=this.selectableItems[i];if(this.isSelectable(s)){var a=Object(q["o"])(s,this.itemKey);t?e[a]=s:delete e[a]}}this.selection=e,this.$emit("toggle-select-all",{items:this.internalCurrentItems,value:t})},isSelectable:function(t){return!1!==Object(q["o"])(t,this.selectableKey)},isSelected:function(t){return!!this.selection[Object(q["o"])(t,this.itemKey)]||!1},select:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(this.isSelectable(t)){var s=this.singleSelect?{}:Object.assign({},this.selection),a=Object(q["o"])(t,this.itemKey);if(e?s[a]=t:delete s[a],this.singleSelect&&i){var n=Object.keys(this.selection),r=n.length&&Object(q["o"])(this.selection[n[0]],this.itemKey);r&&r!==a&&this.$emit("item-selected",{item:this.selection[r],value:!1})}this.selection=s,i&&this.$emit("item-selected",{item:t,value:e})}},isExpanded:function(t){return this.expansion[Object(q["o"])(t,this.itemKey)]||!1},expand:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=this.singleExpand?{}:Object.assign({},this.expansion),s=Object(q["o"])(t,this.itemKey);e?i[s]=!0:delete i[s],this.expansion=i,this.$emit("item-expanded",{item:t,value:e})},createItemProps:function(t){var e=this;return{item:t,select:function(i){return e.select(t,i)},isSelected:this.isSelected(t),expand:function(i){return e.expand(t,i)},isExpanded:this.isExpanded(t),isMobile:this.isMobile}},genEmptyWrapper:function(t){return this.$createElement("div",t)},genEmpty:function(t,e){if(0===t&&this.loading){var i=this.$slots["loading"]||this.$vuetify.lang.t(this.loadingText);return this.genEmptyWrapper(i)}if(0===t){var s=this.$slots["no-data"]||this.$vuetify.lang.t(this.noDataText);return this.genEmptyWrapper(s)}if(0===e){var a=this.$slots["no-results"]||this.$vuetify.lang.t(this.noResultsText);return this.genEmptyWrapper(a)}return null},genItems:function(t){var e=this,i=this.genEmpty(t.originalItemsLength,t.pagination.itemsLength);return i?[i]:this.$scopedSlots.default?this.$scopedSlots.default(Object($["a"])(Object($["a"])({},t),{},{isSelected:this.isSelected,select:this.select,isExpanded:this.isExpanded,expand:this.expand})):this.$scopedSlots.item?t.items.map((function(t){return e.$scopedSlots.item(e.createItemProps(t))})):[]},genFooter:function(t){if(this.hideDefaultFooter)return null;var e={props:Object($["a"])(Object($["a"])({},this.sanitizedFooterProps),{},{options:t.options,pagination:t.pagination}),on:{"update:options":function(e){return t.updateOptions(e)}}},i=Object(q["p"])("footer.",this.$scopedSlots);return this.$createElement(Re,Object($["a"])({scopedSlots:i},e))},genDefaultScopedSlot:function(t){var e=Object($["a"])(Object($["a"])({},t),{},{someItems:this.someItems,everyItem:this.everyItem,toggleSelectAll:this.toggleSelectAll});return this.$createElement("div",{staticClass:"v-data-iterator"},[Object(q["r"])(this,"header",e,!0),this.genItems(t),this.genFooter(t),Object(q["r"])(this,"footer",e,!0)])}},render:function(){var t=this;return this.$createElement(Le,{props:this.$props,on:{"update:options":function(e,i){return!Object(q["i"])(e,i)&&t.$emit("update:options",e)},"update:page":function(e){return t.$emit("update:page",e)},"update:items-per-page":function(e){return t.$emit("update:items-per-page",e)},"update:sort-by":function(e){return t.$emit("update:sort-by",e)},"update:sort-desc":function(e){return t.$emit("update:sort-desc",e)},"update:group-by":function(e){return t.$emit("update:group-by",e)},"update:group-desc":function(e){return t.$emit("update:group-desc",e)},pagination:function(e,i){return!Object(q["i"])(e,i)&&t.$emit("pagination",e)},"current-items":function(e){t.internalCurrentItems=e,t.$emit("current-items",e)},"page-count":function(e){return t.$emit("page-count",e)}},scopedSlots:{default:this.genDefaultScopedSlot}})}}),Fe=(i("f823"),Object(z["a"])().extend({directives:{ripple:te["a"]},props:{headers:{type:Array,default:function(){return[]}},options:{type:Object,default:function(){return{page:1,itemsPerPage:10,sortBy:[],sortDesc:[],groupBy:[],groupDesc:[],multiSort:!1,mustSort:!1}}},sortIcon:{type:String,default:"$sort"},everyItem:Boolean,someItems:Boolean,showGroupBy:Boolean,singleSelect:Boolean,disableSort:Boolean},methods:{genSelectAll:function(){var t=this,e={props:{value:this.everyItem,indeterminate:!this.everyItem&&this.someItems},on:{input:function(e){return t.$emit("toggle-select-all",e)}}};return this.$scopedSlots["data-table-select"]?this.$scopedSlots["data-table-select"](e):this.$createElement(se,Object($["a"])({staticClass:"v-data-table__checkbox"},e))},genSortIcon:function(){return this.$createElement(Ut["a"],{staticClass:"v-data-table-header__icon",props:{size:18}},[this.sortIcon])}}})),ze=Object(z["a"])(Fe).extend({name:"v-data-table-header-mobile",props:{sortByText:{type:String,default:"$vuetify.dataTable.sortBy"}},methods:{genSortChip:function(t){var e=this,i=[t.item.text],s=this.options.sortBy.findIndex((function(e){return e===t.item.value})),a=s>=0,n=this.options.sortDesc[s];return i.push(this.$createElement("div",{staticClass:"v-chip__close",class:{sortable:!0,active:a,asc:a&&!n,desc:a&&n}},[this.genSortIcon()])),this.$createElement(Yt,{staticClass:"sortable",on:{click:function(i){i.stopPropagation(),e.$emit("sort",t.item.value)}}},i)},genSortSelect:function(t){var e=this;return this.$createElement(Pe,{props:{label:this.$vuetify.lang.t(this.sortByText),items:t,hideDetails:!0,multiple:this.options.multiSort,value:this.options.multiSort?this.options.sortBy:this.options.sortBy[0],menuProps:{closeOnContentClick:!0}},on:{change:function(t){return e.$emit("sort",t)}},scopedSlots:{selection:function(t){return e.genSortChip(t)}}})}},render:function(t){var e=[],i=this.headers.find((function(t){return"data-table-select"===t.value}));i&&!this.singleSelect&&e.push(this.$createElement("div",{class:["v-data-table-header-mobile__select"].concat(Object(P["a"])(Object(q["E"])(i.class))),attrs:{width:i.width}},[this.genSelectAll()]));var s=this.headers.filter((function(t){return!1!==t.sortable&&"data-table-select"!==t.value})).map((function(t){return{text:t.text,value:t.value}}));!this.disableSort&&s.length&&e.push(this.genSortSelect(s));var a=t("th",[t("div",{staticClass:"v-data-table-header-mobile__wrapper"},e)]),n=t("tr",[a]);return t("thead",{staticClass:"v-data-table-header v-data-table-header-mobile"},[n])}}),qe=Object(z["a"])(Fe).extend({name:"v-data-table-header-desktop",methods:{genGroupByToggle:function(t){var e=this;return this.$createElement("span",{on:{click:function(i){i.stopPropagation(),e.$emit("group",t.value)}}},["group"])},getAria:function(t,e){var i=this,s=function(t){return i.$vuetify.lang.t("$vuetify.dataTable.ariaLabel.".concat(t))},a="none",n=[s("sortNone"),s("activateAscending")];return t?(e?(a="descending",n=[s("sortDescending"),s(this.options.mustSort?"activateAscending":"activateNone")]):(a="ascending",n=[s("sortAscending"),s("activateDescending")]),{ariaSort:a,ariaLabel:n.join(" ")}):{ariaSort:a,ariaLabel:n.join(" ")}},genHeader:function(t){var e=this,i={attrs:{role:"columnheader",scope:"col","aria-label":t.text||""},style:{width:Object(q["g"])(t.width),minWidth:Object(q["g"])(t.width)},class:["text-".concat(t.align||"start")].concat(Object(P["a"])(Object(q["E"])(t.class)),[t.divider&&"v-data-table__divider"]),on:{}},s=[];if("data-table-select"===t.value&&!this.singleSelect)return this.$createElement("th",i,[this.genSelectAll()]);if(s.push(this.$scopedSlots[t.value]?this.$scopedSlots[t.value]({header:t}):this.$createElement("span",[t.text])),!this.disableSort&&(t.sortable||!t.hasOwnProperty("sortable"))){i.on["click"]=function(){return e.$emit("sort",t.value)};var a=this.options.sortBy.findIndex((function(e){return e===t.value})),n=a>=0,r=this.options.sortDesc[a];i.class.push("sortable");var o=this.getAria(n,r),h=o.ariaLabel,l=o.ariaSort;i.attrs["aria-label"]+="".concat(t.text?": ":"").concat(h),i.attrs["aria-sort"]=l,n&&(i.class.push("active"),i.class.push(r?"desc":"asc")),"end"===t.align?s.unshift(this.genSortIcon()):s.push(this.genSortIcon()),this.options.multiSort&&n&&s.push(this.$createElement("span",{class:"v-data-table-header__sort-badge"},[String(a+1)]))}return this.showGroupBy&&!1!==t.groupable&&s.push(this.genGroupByToggle(t)),this.$createElement("th",i,s)}},render:function(){var t=this;return this.$createElement("thead",{staticClass:"v-data-table-header"},[this.$createElement("tr",this.headers.map((function(e){return t.genHeader(e)})))])}});function Ge(t){if(t.model&&t.on&&t.on.input)if(Array.isArray(t.on.input)){var e=t.on.input.indexOf(t.model.callback);e>-1&&t.on.input.splice(e,1)}else delete t.on.input}function We(t,e){var i=[];for(var s in t)t.hasOwnProperty(s)&&i.push(e("template",{slot:s},t[s]));return i}var He=ee["a"].extend({name:"v-data-table-header",functional:!0,props:Object($["a"])(Object($["a"])({},Fe.options.props),{},{mobile:Boolean}),render:function(t,e){var i=e.props,s=e.data,a=e.slots;Ge(s);var n=We(a(),t);return s=Object(ie["a"])(s,{props:i}),i.mobile?t(ze,s,n):t(qe,s,n)}}),Ue=ee["a"].extend({name:"row",functional:!0,props:{headers:Array,item:Object,rtl:Boolean},render:function(t,e){var i=e.props,s=e.slots,a=e.data,n=s(),r=i.headers.map((function(e){var s,r=[],o=Object(q["o"])(i.item,e.value),h=e.value,l=a.scopedSlots&&a.scopedSlots[h],c=n[h];l?r.push(l({item:i.item,header:e,value:o})):c?r.push(c):r.push(null==o?o:String(o));var u="text-".concat(e.align||"start");return t("td",{class:(s={},Object(T["a"])(s,u,!0),Object(T["a"])(s,"v-data-table__divider",e.divider),s)},r)}));return t("tr",a,r)}}),Ke=ee["a"].extend({name:"row-group",functional:!0,props:{value:{type:Boolean,default:!0},headerClass:{type:String,default:"v-row-group__header"},contentClass:String,summaryClass:{type:String,default:"v-row-group__summary"}},render:function(t,e){var i=e.slots,s=e.props,a=i(),n=[];return a["column.header"]?n.push(t("tr",{staticClass:s.headerClass},a["column.header"])):a["row.header"]&&n.push.apply(n,Object(P["a"])(a["row.header"])),a["row.content"]&&s.value&&n.push.apply(n,Object(P["a"])(a["row.content"])),a["column.summary"]?n.push(t("tr",{staticClass:s.summaryClass},a["column.summary"])):a["row.summary"]&&n.push.apply(n,Object(P["a"])(a["row.summary"])),n}}),Xe=ee["a"].extend({name:"row",functional:!0,props:{headers:Array,hideDefaultHeader:Boolean,item:Object,rtl:Boolean},render:function(t,e){var i=e.props,s=e.slots,a=e.data,n=s(),r=i.headers.map((function(e){var s={"v-data-table__mobile-row":!0},r=[],o=Object(q["o"])(i.item,e.value),h=e.value,l=a.scopedSlots&&a.scopedSlots[h],c=n[h];l?r.push(l({item:i.item,header:e,value:o})):c?r.push(c):r.push(null==o?o:String(o));var u=[t("div",{staticClass:"v-data-table__mobile-row__cell"},r)];return"dataTableSelect"===e.value||i.hideDefaultHeader||u.unshift(t("div",{staticClass:"v-data-table__mobile-row__header"},[e.text])),t("td",{class:s},u)}));return t("tr",Object($["a"])(Object($["a"])({},a),{},{staticClass:"v-data-table__mobile-table-row"}),r)}});function Je(t,e,i){return function(s){var a=Object(q["o"])(t,s.value);return s.filter?s.filter(a,e,t):i(a,e,t)}}function Qe(t,e,i,s,a){return e="string"===typeof e?e.trim():null,t.filter((function(t){var n=i.every(Je(t,e,q["j"])),r=!e||s.some(Je(t,e,a));return n&&r}))}var Ye=Object(z["a"])(Ve,Oe["a"]).extend({name:"v-data-table",directives:{ripple:te["a"]},props:{headers:{type:Array,default:function(){return[]}},showSelect:Boolean,showExpand:Boolean,showGroupBy:Boolean,height:[Number,String],hideDefaultHeader:Boolean,caption:String,dense:Boolean,headerProps:Object,calculateWidths:Boolean,fixedHeader:Boolean,headersLength:Number,expandIcon:{type:String,default:"$expand"},customFilter:{type:Function,default:q["j"]},itemClass:{type:[String,Function],default:function(){return""}},loaderHeight:{type:[Number,String],default:4}},data:function(){return{internalGroupBy:[],openCache:{},widths:[]}},computed:{computedHeaders:function(){var t=this;if(!this.headers)return[];var e=this.headers.filter((function(e){return void 0===e.value||!t.internalGroupBy.find((function(t){return t===e.value}))})),i={text:"",sortable:!1,width:"1px"};if(this.showSelect){var s=e.findIndex((function(t){return"data-table-select"===t.value}));s<0?e.unshift(Object($["a"])(Object($["a"])({},i),{},{value:"data-table-select"})):e.splice(s,1,Object($["a"])(Object($["a"])({},i),e[s]))}if(this.showExpand){var a=e.findIndex((function(t){return"data-table-expand"===t.value}));a<0?e.unshift(Object($["a"])(Object($["a"])({},i),{},{value:"data-table-expand"})):e.splice(a,1,Object($["a"])(Object($["a"])({},i),e[a]))}return e},colspanAttrs:function(){return this.isMobile?void 0:{colspan:this.headersLength||this.computedHeaders.length}},columnSorters:function(){return this.computedHeaders.reduce((function(t,e){return e.sort&&(t[e.value]=e.sort),t}),{})},headersWithCustomFilters:function(){return this.headers.filter((function(t){return t.filter&&(!t.hasOwnProperty("filterable")||!0===t.filterable)}))},headersWithoutCustomFilters:function(){return this.headers.filter((function(t){return!t.filter&&(!t.hasOwnProperty("filterable")||!0===t.filterable)}))},sanitizedHeaderProps:function(){return Object(q["d"])(this.headerProps)},computedItemsPerPage:function(){var t=this.options&&this.options.itemsPerPage?this.options.itemsPerPage:this.itemsPerPage,e=this.sanitizedFooterProps.itemsPerPageOptions;if(e&&!e.find((function(e){return"number"===typeof e?e===t:e.value===t}))){var i=e[0];return"object"===Object(fe["a"])(i)?i.value:i}return t}},created:function(){var t=this,e=[["sort-icon","header-props.sort-icon"],["hide-headers","hide-default-header"],["select-all","show-select"]];e.forEach((function(e){var i=Object(Ht["a"])(e,2),s=i[0],a=i[1];t.$attrs.hasOwnProperty(s)&&Object(Y["a"])(s,a,t)}))},mounted:function(){this.calculateWidths&&(window.addEventListener("resize",this.calcWidths),this.calcWidths())},beforeDestroy:function(){this.calculateWidths&&window.removeEventListener("resize",this.calcWidths)},methods:{calcWidths:function(){this.widths=Array.from(this.$el.querySelectorAll("th")).map((function(t){return t.clientWidth}))},customFilterWithColumns:function(t,e){return Qe(t,e,this.headersWithCustomFilters,this.headersWithoutCustomFilters,this.customFilter)},customSortWithHeaders:function(t,e,i,s){return this.customSort(t,e,i,s,this.columnSorters)},createItemProps:function(t){var e=Ve.options.methods.createItemProps.call(this,t);return Object.assign(e,{headers:this.computedHeaders})},genCaption:function(t){return this.caption?[this.$createElement("caption",[this.caption])]:Object(q["r"])(this,"caption",t,!0)},genColgroup:function(t){var e=this;return this.$createElement("colgroup",this.computedHeaders.map((function(t){return e.$createElement("col",{class:{divider:t.divider}})})))},genLoading:function(){var t=this.$createElement("th",{staticClass:"column",attrs:this.colspanAttrs},[this.genProgress()]),e=this.$createElement("tr",{staticClass:"v-data-table__progress"},[t]);return this.$createElement("thead",[e])},genHeaders:function(t){var e={props:Object($["a"])(Object($["a"])({},this.sanitizedHeaderProps),{},{headers:this.computedHeaders,options:t.options,mobile:this.isMobile,showGroupBy:this.showGroupBy,someItems:this.someItems,everyItem:this.everyItem,singleSelect:this.singleSelect,disableSort:this.disableSort}),on:{sort:t.sort,group:t.group,"toggle-select-all":this.toggleSelectAll}},i=[Object(q["r"])(this,"header",e)];if(!this.hideDefaultHeader){var s=Object(q["p"])("header.",this.$scopedSlots);i.push(this.$createElement(He,Object($["a"])(Object($["a"])({},e),{},{scopedSlots:s})))}return this.loading&&i.push(this.genLoading()),i},genEmptyWrapper:function(t){return this.$createElement("tr",{staticClass:"v-data-table__empty-wrapper"},[this.$createElement("td",{attrs:this.colspanAttrs},t)])},genItems:function(t,e){var i=this.genEmpty(e.originalItemsLength,e.pagination.itemsLength);return i?[i]:e.groupedItems?this.genGroupedRows(e.groupedItems,e):this.genRows(t,e)},genGroupedRows:function(t,e){var i=this;return t.map((function(t){return i.openCache.hasOwnProperty(t.name)||i.$set(i.openCache,t.name,!0),i.$scopedSlots.group?i.$scopedSlots.group({group:t.name,options:e.options,items:t.items,headers:i.computedHeaders}):i.genDefaultGroupedRow(t.name,t.items,e)}))},genDefaultGroupedRow:function(t,e,i){var s=this,a=!!this.openCache[t],n=[this.$createElement("template",{slot:"row.content"},this.genRows(e,i))],r=function(){return s.$set(s.openCache,t,!s.openCache[t])},o=function(){return i.updateOptions({groupBy:[],groupDesc:[]})};if(this.$scopedSlots["group.header"])n.unshift(this.$createElement("template",{slot:"column.header"},[this.$scopedSlots["group.header"]({group:t,groupBy:i.options.groupBy,items:e,headers:this.computedHeaders,isOpen:a,toggle:r,remove:o})]));else{var h=this.$createElement(Ne["a"],{staticClass:"ma-0",props:{icon:!0,small:!0},on:{click:r}},[this.$createElement(Ut["a"],[a?"$minus":"$plus"])]),l=this.$createElement(Ne["a"],{staticClass:"ma-0",props:{icon:!0,small:!0},on:{click:o}},[this.$createElement(Ut["a"],["$close"])]),c=this.$createElement("td",{staticClass:"text-start",attrs:this.colspanAttrs},[h,"".concat(i.options.groupBy[0],": ").concat(t),l]);n.unshift(this.$createElement("template",{slot:"column.header"},[c]))}return this.$scopedSlots["group.summary"]&&n.push(this.$createElement("template",{slot:"column.summary"},[this.$scopedSlots["group.summary"]({group:t,groupBy:i.options.groupBy,items:e,headers:this.computedHeaders,isOpen:a,toggle:r})])),this.$createElement(Ke,{key:t,props:{value:a}},n)},genRows:function(t,e){return this.$scopedSlots.item?this.genScopedRows(t,e):this.genDefaultRows(t,e)},genScopedRows:function(t,e){for(var i=[],s=0;s<t.length;s++){var a=t[s];i.push(this.$scopedSlots.item(Object($["a"])(Object($["a"])({},this.createItemProps(a)),{},{index:s}))),this.isExpanded(a)&&i.push(this.$scopedSlots["expanded-item"]({item:a,headers:this.computedHeaders}))}return i},genDefaultRows:function(t,e){var i=this;return this.$scopedSlots["expanded-item"]?t.map((function(t){return i.genDefaultExpandedRow(t)})):t.map((function(t){return i.genDefaultSimpleRow(t)}))},genDefaultExpandedRow:function(t){var e=this.isExpanded(t),i={"v-data-table__expanded v-data-table__expanded__row":e},s=this.genDefaultSimpleRow(t,i),a=this.$createElement("tr",{staticClass:"v-data-table__expanded v-data-table__expanded__content"},[this.$scopedSlots["expanded-item"]({item:t,headers:this.computedHeaders})]);return this.$createElement(Ke,{props:{value:e}},[this.$createElement("template",{slot:"row.header"},[s]),this.$createElement("template",{slot:"row.content"},[a])])},genDefaultSimpleRow:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=Object(q["p"])("item.",this.$scopedSlots),a=this.createItemProps(t);if(this.showSelect){var n=s["data-table-select"];s["data-table-select"]=n?function(){return n(a)}:function(){return e.$createElement(se,{staticClass:"v-data-table__checkbox",props:{value:a.isSelected,disabled:!e.isSelectable(t)},on:{input:function(t){return a.select(t)}}})}}if(this.showExpand){var r=s["data-table-expand"];s["data-table-expand"]=r?function(){return r(a)}:function(){return e.$createElement(Ut["a"],{staticClass:"v-data-table__expand-icon",class:{"v-data-table__expand-icon--active":a.isExpanded},on:{click:function(t){t.stopPropagation(),a.expand(!a.isExpanded)}}},[e.expandIcon])}}return this.$createElement(this.isMobile?Xe:Ue,{key:Object(q["o"])(t,this.itemKey),class:Object(ie["b"])(Object($["a"])(Object($["a"])({},i),{},{"v-data-table__selected":a.isSelected}),Object(q["q"])(t,this.itemClass)),props:{headers:this.computedHeaders,hideDefaultHeader:this.hideDefaultHeader,item:t,rtl:this.$vuetify.rtl},scopedSlots:s,on:{click:function(){return e.$emit("click:row",t,a)},contextmenu:function(t){return e.$emit("contextmenu:row",t,a)},dblclick:function(t){return e.$emit("dblclick:row",t,a)}}})},genBody:function(t){var e=Object($["a"])(Object($["a"])({},t),{},{expand:this.expand,headers:this.computedHeaders,isExpanded:this.isExpanded,isMobile:this.isMobile,isSelected:this.isSelected,select:this.select});return this.$scopedSlots.body?this.$scopedSlots.body(e):this.$createElement("tbody",[Object(q["r"])(this,"body.prepend",e,!0),this.genItems(t.items,t),Object(q["r"])(this,"body.append",e,!0)])},genFooters:function(t){var e={props:Object($["a"])({options:t.options,pagination:t.pagination,itemsPerPageText:"$vuetify.dataTable.itemsPerPageText"},this.sanitizedFooterProps),on:{"update:options":function(e){return t.updateOptions(e)}},widths:this.widths,headers:this.computedHeaders},i=[Object(q["r"])(this,"footer",e,!0)];return this.hideDefaultFooter||i.push(this.$createElement(Re,Object($["a"])(Object($["a"])({},e),{},{scopedSlots:Object(q["p"])("footer.",this.$scopedSlots)}))),i},genDefaultScopedSlot:function(t){var e={height:this.height,fixedHeader:this.fixedHeader,dense:this.dense};return this.$createElement(_t,{props:e},[this.proxySlot("top",Object(q["r"])(this,"top",t,!0)),this.genCaption(t),this.genColgroup(t),this.genHeaders(t),this.genBody(t),this.proxySlot("bottom",this.genFooters(t))])},proxySlot:function(t,e){return this.$createElement("template",{slot:t},e)}},render:function(){var t=this;return this.$createElement(Le,{props:Object($["a"])(Object($["a"])({},this.$props),{},{customFilter:this.customFilterWithColumns,customSort:this.customSortWithHeaders,itemsPerPage:this.computedItemsPerPage}),on:{"update:options":function(e,i){t.internalGroupBy=e.groupBy||[],!Object(q["i"])(e,i)&&t.$emit("update:options",e)},"update:page":function(e){return t.$emit("update:page",e)},"update:items-per-page":function(e){return t.$emit("update:items-per-page",e)},"update:sort-by":function(e){return t.$emit("update:sort-by",e)},"update:sort-desc":function(e){return t.$emit("update:sort-desc",e)},"update:group-by":function(e){return t.$emit("update:group-by",e)},"update:group-desc":function(e){return t.$emit("update:group-desc",e)},pagination:function(e,i){return!Object(q["i"])(e,i)&&t.$emit("pagination",e)},"current-items":function(e){t.internalCurrentItems=e,t.$emit("current-items",e)},"page-count":function(e){return t.$emit("page-count",e)}},scopedSlots:{default:this.genDefaultScopedSlot}})}}),Ze=i("2fa4"),ti=Object(c["a"])(Wt,Vt,Ft,!1,null,"6b1b8591",null),ei=ti.exports;d()(ti,{VBtn:p["a"],VCard:ht["a"],VCardText:lt["c"],VCardTitle:lt["d"],VCombobox:De,VDataTable:Ye,VIcon:f["a"],VSpacer:Ze["a"],VTextField:Ae});var ii=i("3fb9"),si=i("2699"),ai=i("a40a"),ni=i("e11e"),ri=i.n(ni),oi=i("7e9c"),hi=i.n(oi),li=hi.a.Source.extend({identify:function(t){if("identify"==this.options["activeTool"]()){var e=this.getIdentifyLayers();if(!e.length)return;this.getFeatureInfo(t.containerPoint,t.latlng,e,this.showFeatureInfo)}},createOverlay:function(t){var e={};for(var i in this.options)"untiled"!=i&&"identify"!=i&&"activeTool"!=i&&"onGetFeatureInfo"!=i&&"onGetFeatureInfoStarted"!=i&&"onGetFeatureInfoParamsEnded"!=i&&"onError"!=i&&(e[i]=this.options[i]);return t?hi.a.overlay(this._url,e):hi.a.tileLayer(this._url,e)},getFeatureInfo:function(t,e,i,s){var a=this.getFeatureInfoParams(t,i),n=this._url+ri.a.Util.getParamString(a,this._url);function r(t){this.hideWaiting();var i=this.parseFeatureInfo(t,n);s.call(this,e,i)}this.showWaiting(),this.ajax(n,r)},showFeatureInfo:function(t,e){try{this.options["onGetFeatureInfo"](t,e)}catch(i){this.options["onError"](i)}},showWaiting:function(){try{this.options["onGetFeatureInfoStarted"]()}catch(t){}},getFeatureInfoParams:function(t,e){var i,s;this.options.untiled?i=this._overlay.wmsParams:(s=this.createOverlay(!0),s.updateWmsParams(this._map),i=s.wmsParams,i.layers=e.join(","));var a={request:"GetFeatureInfo",query_layers:e.join(","),X:Math.round(t.x),Y:Math.round(t.y),info_format:"application/json",WITH_GEOMETRY:1},n=ri.a.extend({},i,a);try{n=this.options["onGetFeatureInfoParamsEnded"](n)}catch(r){}return n}}),ci={source:function(t,e){return new li(t,e)}},ui=(i("6cc5"),i("a123"));delete ri.a.Icon.Default.prototype._getIconUrl,ri.a.Icon.Default.mergeOptions({iconRetinaUrl:i("584d"),iconUrl:i("6397"),shadowUrl:i("e2b9")}),ri.a.Control.include({_refocusOnMap:ri.a.Util.falseFn});var di={name:"WebGis",props:{projectId:String},components:{LMap:si["a"],LTileLayer:ai["a"],MapToolbar:b,Error:ii["a"],LeftSidebar:Rt,AttributeTable:ei},data:function(){return{map:{},wms_source:{},expandedSidebar:!1,showIdentify:!1}},computed:{project:function(){return this.$store.state.projects[this.projectId]},attributeTableTypename:function(){return this.$store.state.attributeTableTypename},toc:function(){return this.$store.state.tocs[this.projectId]},status:function(){return this.$store.state.status},error:function(){var t=this.$store.state.error;return this.$store.commit("clearError"),t},activeTool:function(){return this.$store.state.activeTool},baseMap:function(){return this.$store.state.baseMap}},watch:{project:function(){this.initializeMap()},toc:function(){this.initializeToc()}},mounted:function(){this.$store.commit("clearAttributeTableTypename"),this.$store.dispatch("setStatus","loading"),this.project?(this.setMap(this.$refs["map"].mapObject),this.initializeMap()):this.$store.dispatch("getProject",this.projectId)},methods:{setMap:function(){this.map=this.$refs["map"].mapObject},initializeMap:function(){var t=this;if(this.project.toc,this.loadMap(this.project),Object.values(this.getOrderedLayerTypenames()).forEach((function(e){t.project.toc;var i=t.findLayerNodeByTypename(e,t.project.toc.children);i&&i.visible?t.wms_source._subLayers[i.typename]=t.wms_source.getLayer(i.typename):i?i.visible:console.log("Could not find layer node: ".concat(e))})),console.log(this.wms_source._subLayers),this.wms_source.refreshOverlay(),!this.toc){var e=ui["a"].getAllLayers(this.project);this.$store.dispatch("getToc",{projectId:this.projectId,layers:e})}this.$nextTick((function(){t.map.zoomControl.remove()})),this.$store.dispatch("setStatus","project")},onResize:function(){this.$refs["map"].mapObject._onResize()},initializeToc:function(){var t=this;this.toc.nodes.forEach((function(e){var i=t.findLayerNode(e.title,t.project.toc.children);i&&(e.icon?i.children.push(e):e.symbols.forEach((function(t){return i.children.push(t)})))}))},setLayerVisibility:function(t,e){if(t in this.wms_source._subLayers&&!e)this.wms_source.removeSubLayer(t);else if(e&&!(t in this.wms_source._subLayers)){this.wms_source._subLayers[t]=this.wms_source.getLayer(t);var i,s={},a=Object(n["a"])(this.getOrderedLayerTypenames());try{for(a.s();!(i=a.n()).done;){var r=i.value;r in this.wms_source._subLayers&&(s[r]=this.wms_source._subLayers[r])}}catch(o){a.e(o)}finally{a.f()}this.wms_source._subLayers=s,this.wms_source.refreshOverlay()}else console.log("Nothing to do for: ".concat(t," - ").concat(e))},findLayerNode:function(t,e){if(e)for(var i=0;i<e.length;++i){if(e[i].title==t)return e[i];var s=this.findLayerNode(t,e[i].children);if(s)return s}},findLayerNodeByTypename:function(t,e){if(e)for(var i=0;i<e.length;++i){if(e[i].typename==t)return e[i];var s=this.findLayerNode(t,e[i].children);if(s)return s}},loadMap:function(t){var e=t.geographic_extent[0],i=t.geographic_extent[1],s=t.geographic_extent[2],a=t.geographic_extent[3];t.initial_extent&&(e=t.initial_extent[0],i=t.initial_extent[1],s=t.initial_extent[2],a=t.initial_extent[3]);var n=new ni["latLng"](i,e),r=new ni["latLng"](a,e),o=new ni["latLng"](a,s),h=new ni["latLng"](i,s),l=[n,r,o,h],c=new ni["Polygon"](l,{fill:!1});this.map.setView(c.getBounds().getCenter()),c.getBounds().getEast()!=c.getBounds().getWest()&&c.getBounds().getNorth()!=c.getBounds().getSouth()&&this.map.fitBounds(c.getBounds());var u=this;this.wms_source=ci.source("/project/"+t.id+"/?",{tileSize:512,transparent:!0,format:"image/png",dpi:96*window.devicePixelRatio,onGetFeatureInfo:this.onGetFeatureInfo,onGetFeatureInfoStarted:this.onGetFeatureInfoStarted,onGetFeatureInfoParamsEnded:this.onGetFeatureInfoParamsEnded,onError:this.onError,activeTool:function(){return u.activeTool}}).addTo(this.map);var d=ri.a.geoJson({features:[]},{style:function(){return{weight:2,opacity:1,color:"yellow"}},onEachFeature:function(t,e){e.on({mouseover:function(e){console.log(e.target,t)},mouseout:function(t){console.log(t.target)},click:function(t){console.log(t.target)}})}}).addTo(this.map);this.map.highlightLayer=d,window.llmap=this.map},onGetFeatureInfo:function(t,e){this.$store.commit("setIdentifyResults",{identifyResults:JSON.parse(e)})},onGetFeatureInfoStarted:function(){this.map.highlightLayer.clearLayers(),"identify"==this.$store.state.activeTool?(this.showIdentify=!0,this.$store.commit("clearIdentifyResults"),this.expandedSidebar=!0):this.showIdentify=!1},onGetFeatureInfoParamsEnded:function(t){for(var e=t.query_layers.split(","),i=[],s=0;s<e.length;++s)this.project.wms_layers_queryable.includes(this.project.wms_layers_typename_id_map[e[s]])&&i.push(e[s]);return t.query_layers=i,t},onError:function(t){console.log("Error:",t),this.$store.commit("setError",t.message)},getOrderedLayerTypenames:function(){var t=function t(e,i){if(e.is_layer)i.push(e.typename);else for(var s=0;s<e.children.length;++s)t(e.children[s],i)},e=[];return t(this.project.toc,e),e.reverse()}}},pi=di,fi=(i("3fe2"),i("7496")),mi=i("40dc"),gi=ee["a"].extend({name:"v-app-bar-nav-icon",functional:!0,render:function(t,e){var i=e.slots,s=e.listeners,a=e.props,n=e.data,r=Object.assign(n,{staticClass:"v-app-bar__nav-icon ".concat(n.staticClass||"").trim(),props:Object($["a"])(Object($["a"])({},a),{},{icon:!0}),on:s}),o=i().default;return t(p["a"],r,o||[t(Ut["a"],"$menu")])}}),vi=i("553a"),bi=i("f6c4"),yi=i("a797"),Mi=i("490a"),xi=i("2a7f"),_i=i("269a"),wi=i.n(_i),Si=Object(c["a"])(pi,s,a,!1,null,"9be950ce",null);e["default"]=Si.exports;d()(Si,{VApp:fi["a"],VAppBar:mi["a"],VAppBarNavIcon:gi,VBtn:p["a"],VContainer:yt["a"],VFooter:vi["a"],VIcon:f["a"],VLayout:g,VMain:bi["a"],VOverlay:yi["a"],VProgressCircular:Mi["a"],VSpacer:Ze["a"],VToolbarTitle:xi["a"]}),wi()(Si,{Resize:Q["a"]})},"1b2c":function(t,e,i){},2059:function(t,e,i){},"269a":function(t,e){t.exports=function(t,e){var i="function"===typeof t.exports?t.exports.extendOptions:t.options;for(var s in"function"===typeof t.exports&&(i.directives=t.exports.options.directives),i.directives=i.directives||{},e)i.directives[s]=i.directives[s]||e[s]}},"2b19":function(t,e,i){var s=i("23e7"),a=i("129f");s({target:"Object",stat:!0},{is:a})},"2bfd":function(t,e,i){},"34cc":function(t,e,i){"use strict";var s=i("0b75"),a=i.n(s);a.a},"3fe2":function(t,e,i){"use strict";var s=i("1606"),a=i.n(s);a.a},"495d":function(t,e,i){},"4a66":function(t,e,i){"use strict";var s=i("2059"),a=i.n(s);a.a},"4ff9":function(t,e,i){},"584d":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAABSCAMAAAAhFXfZAAAC91BMVEVMaXEzeak2f7I4g7g3g7cua5gzeKg8hJo3grY4g7c3grU0gLI2frE0daAubJc2gbQwd6QzeKk2gLMtd5sxdKIua5g1frA2f7IydaM0e6w2fq41fK01eqo3grgubJgta5cxdKI1f7AydaQydaMxc6EubJgvbJkwcZ4ubZkwcJwubZgubJcydqUydKIxapgubJctbJcubZcubJcvbJYubJcvbZkubJctbJctbZcubJg2f7AubJcrbZcubJcubJcua5g3grY0fq8ubJcubJdEkdEwhsw6i88vhswuhcsuhMtBjMgthMsrg8srgss6is8qgcs8i9A9iMYtg8spgcoogMo7hcMngMonf8olfso4gr8kfck5iM8jfMk4iM8he8k1fro7itAgesk2hs8eecgzfLcofssdeMg0hc4cd8g2hcsxeLQbdsgZdcgxeLImfcszhM0vda4xgckzhM4xg84wf8Yxgs4udKsvfcQucqhUndROmdM1fK0wcZ8vb5w0eqpQm9MzeKhXoNVcpdYydKNWn9VZotVKltJFjsIwcJ1Rms9OlslLmtH///8+kc9epdYzd6dbo9VHkMM2f7FHmNBClM8ydqVcpNY9hro3gLM9hLczealQmcw3fa46f7A8gLMxc6I3eagyc6FIldJMl9JSnNRSntNNl9JPnNJFi75UnM9ZodVKksg8kM45jc09e6ZHltFBk883gbRBh7pDk9EwcaBzn784g7dKkcY2i81Om9M7j85Llc81is09g7Q4grY/j9A0eqxKmdFFltBEjcXf6fFImdBCiLxJl9FGlNFBi78yiMxVndEvbpo6js74+vx+psPP3+o/ks5HkcpGmNCjwdZCkNDM3ehYoNJEls+lxNkxh8xHks0+jdC1zd5Lg6r+/v/H2ufz9/o3jM3t8/edvdM/k89Th61OiLBSjbZklbaTt9BfptdjmL1AicBHj8hGk9FAgK1dkLNTjLRekrdClc/k7fM0icy0y9tgp9c4jc2NtM9Dlc8zicxeXZn3AAAAQ3RSTlMAHDdTb4yPA+LtnEQmC4L2EmHqB7XA0d0sr478x4/Yd5i1zOfyPkf1sLVq4Nh3FvjxopQ2/STNuFzUwFIwxKaejILpIBEV9wAABhVJREFUeF6s1NdyFEcYBeBeoQIhRAkLlRDGrhIgY3BJL8CVeKzuyXFzzjkn5ZxzzuScg3PO8cKzu70JkO0LfxdTU//pM9vTu7Xgf6KqOVTb9X7toRrVEfBf1HTVjZccrT/2by1VV928Yty9ZbVuucdz90frG8DBjl9pVApbOstvmMuvVgaNXSfAAd6pGxpy6yxf5ph43pS/4f3uoaGm2rdu72S9xzOvMymkZFq/ptDrk90mhW7e4zl7HLzhxGWPR20xmSxJ/VqldG5m9XhaVOA1DadsNh3Pu5L2N6QtPO/32JpqQBVVk20oy/Pi2s23WEvyfHbe1thadVQttvm7Llf65gGmXK67XtupyoM7HQhmXdLS8oGWJNeOJ3C5fG5XCEJnkez3/oFdsvgJ4l2ANZwhrJKk/7OSXa+3Vw2WJMlKnGkobouYk6T0TyX30klOUnTD9HJ5qpckL3EW/w4XF3Xd0FGywXUrstrclVsqz5Pd/sXFYyDnPdrLcQODmGOK47IZb4CmibmMn+MYRzFZ5jg33ZL/EJrWcszHmANy3ARBK/IXtciJy8VsitPSdE3uuHxzougojcUdr8/32atnz/ev3f/K5wtpxUTpcaI45zusVDpYtZi+jg0oU9b3x74h7+n9ABvYEZeKaVq0sh0AtLKsFtqNBdeT0MrSzwwlq9+x6xAO4tgOtSzbCjrNQQiNvQUbUEubvzBUeGw26yDCsRHCoLkTHDa7IdOLIThs/gHvChszh2CimE8peRs47cxANI0lYNB5y1DljpOF0IhzBDPOZnDOqYYbeGKECbPzWnXludPphw5c2YBq5zlwXphIbO4VDCZ0gnPfUO1TwZoYwAs2ExPCedAu9DAjfQUjzITQb3jNj0KG2Sgt6BHaQUdYzWz+XmBktOHwanXjaSTcwwziBcuMOtwBmqPrTOxFQR/DRKKPqyur0aiW6cULYsx6tBm0jXpR/AUWR6HRq9WVW6MRhIq5jLyjbaCTDCijyYJNpCajdyobP/eTw0iexBAKkJ3gA5KcQb2zBXsIBckn+xVv8jkZSaEFHE+jFEleAEfayRU0MouNoBmB/L50Ai/HSLIHxcrpCvnhSQAuakKp2C/YbCylJjXRVy/z3+Kv/RrNcCo+WUzlVEhzKffnTQnxeN9fWF88fiNCUdSTsaufaChKWInHeysygfpIqagoakW+vV20J8uyl6TyNKEZWV4oRSPyCkWpgOLSbkCObT8o2r6tlG58HQquf6O0v50tB7JM7F4EORd2dx/K0w/KHsVkLPaoYrwgP/y7krr3SSMA4zj+OBgmjYkxcdIJQyQRKgg2viX9Hddi9UBb29LrKR7CVVEEEXWojUkXNyfTNDE14W9gbHJNuhjDettN3ZvbOvdOqCD3Jp/9l+/wJE+9PkYGjx/fqkys3S2rMozM/o2106rfMUINo6hVqz+eu/hd1c4xTg0TAfy5kV+4UG6+IthHTU9woWmxuKNbTfuCSfovBCxq7EtHqvYL4Sm6F8GVxsSXHMQ07TOi1DKtZxjWaaIyi4CXWjxPccUw8WVbMYY5wxC1mzEyXMJWkllpRloi+Kkoq69sxBTlElF6aAxYUbjXNlhlDZilDnM4U5SlN5biRsRHnbx3mbeWjEh4mEyiuJDl5XcWVmX5GvNkFgLWZM5qwsop4/AWfLhU1cR7k1VVvcYCWRkOI6Xy5gmnphCYIkvzuNYzHzosq2oNk2RtSs8khfUOfHIDgR6ysYBaMpl4uEgk2U/oJTs9AaTSwma7dT69geAE2ZpEjUsn2ieJNHeKfrI3EcAGJ2ZaNgVuC8EBctCLc57P5u5led6IOBkIYkuQMrmmjChs4VkfOerHqSBkPzZlhe06RslZ3zMjk2sscqKwY0RcjKK+LWbzd7KiHhkncs/siFJ+V5eXxD34B8nVuJEpGJNmxN2gH3vSvp7J70tF+D1Ej8qUJD1TkErAND2GZwTFg/LubvmgiBG3SOvdlsqFQrkEzJCL1rstlnVFROixZoDDSuXQFHESwVGlcuQcMb/b42NgjLowh5MTDFE3vNB5qStRIErdCQEh6pLPR92anSUb/wAIhldAaDMpGgAAAABJRU5ErkJggg=="},6397:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAApCAYAAADAk4LOAAAFgUlEQVR4Aa1XA5BjWRTN2oW17d3YaZtr2962HUzbDNpjszW24mRt28p47v7zq/bXZtrp/lWnXr337j3nPCe85NcypgSFdugCpW5YoDAMRaIMqRi6aKq5E3YqDQO3qAwjVWrD8Ncq/RBpykd8oZUb/kaJutow8r1aP9II0WmLKLIsJyv1w/kqw9Ch2MYdB++12Onxee/QMwvf4/Dk/Lfp/i4nxTXtOoQ4pW5Aj7wpici1A9erdAN2OH64x8OSP9j3Ft3b7aWkTg/Fm91siTra0f9on5sQr9INejH6CUUUpavjFNq1B+Oadhxmnfa8RfEmN8VNAsQhPqF55xHkMzz3jSmChWU6f7/XZKNH+9+hBLOHYozuKQPxyMPUKkrX/K0uWnfFaJGS1QPRtZsOPtr3NsW0uyh6NNCOkU3Yz+bXbT3I8G3xE5EXLXtCXbbqwCO9zPQYPRTZ5vIDXD7U+w7rFDEoUUf7ibHIR4y6bLVPXrz8JVZEql13trxwue/uDivd3fkWRbS6/IA2bID4uk0UpF1N8qLlbBlXs4Ee7HLTfV1j54APvODnSfOWBqtKVvjgLKzF5YdEk5ewRkGlK0i33Eofffc7HT56jD7/6U+qH3Cx7SBLNntH5YIPvODnyfIXZYRVDPqgHtLs5ABHD3YzLuespb7t79FY34DjMwrVrcTuwlT55YMPvOBnRrJ4VXTdNnYug5ucHLBjEpt30701A3Ts+HEa73u6dT3FNWwflY86eMHPk+Yu+i6pzUpRrW7SNDg5JHR4KapmM5Wv2E8Tfcb1HoqqHMHU+uWDD7zg54mz5/2BSnizi9T1Dg4QQXLToGNCkb6tb1NU+QAlGr1++eADrzhn/u8Q2YZhQVlZ5+CAOtqfbhmaUCS1ezNFVm2imDbPmPng5wmz+gwh+oHDce0eUtQ6OGDIyR0uUhUsoO3vfDmmgOezH0mZN59x7MBi++WDL1g/eEiU3avlidO671bkLfwbw5XV2P8Pzo0ydy4t2/0eu33xYSOMOD8hTf4CrBtGMSoXfPLchX+J0ruSePw3LZeK0juPJbYzrhkH0io7B3k164hiGvawhOKMLkrQLyVpZg8rHFW7E2uHOL888IBPlNZ1FPzstSJM694fWr6RwpvcJK60+0HCILTBzZLFNdtAzJaohze60T8qBzyh5ZuOg5e7uwQppofEmf2++DYvmySqGBuKaicF1blQjhuHdvCIMvp8whTTfZzI7RldpwtSzL+F1+wkdZ2TBOW2gIF88PBTzD/gpeREAMEbxnJcaJHNHrpzji0gQCS6hdkEeYt9DF/2qPcEC8RM28Hwmr3sdNyht00byAut2k3gufWNtgtOEOFGUwcXWNDbdNbpgBGxEvKkOQsxivJx33iow0Vw5S6SVTrpVq11ysA2Rp7gTfPfktc6zhtXBBC+adRLshf6sG2RfHPZ5EAc4sVZ83yCN00Fk/4kggu40ZTvIEm5g24qtU4KjBrx/BTTH8ifVASAG7gKrnWxJDcU7x8X6Ecczhm3o6YicvsLXWfh3Ch1W0k8x0nXF+0fFxgt4phz8QvypiwCCFKMqXCnqXExjq10beH+UUA7+nG6mdG/Pu0f3LgFcGrl2s0kNNjpmoJ9o4B29CMO8dMT4Q5ox8uitF6fqsrJOr8qnwNbRzv6hSnG5wP+64C7h9lp30hKNtKdWjtdkbuPA19nJ7Tz3zR/ibgARbhb4AlhavcBebmTHcFl2fvYEnW0ox9xMxKBS8btJ+KiEbq9zA4RthQXDhPa0T9TEe69gWupwc6uBUphquXgf+/FrIjweHQS4/pduMe5ERUMHUd9xv8ZR98CxkS4F2n3EUrUZ10EYNw7BWm9x1GiPssi3GgiGRDKWRYZfXlON+dfNbM+GgIwYdwAAAAASUVORK5CYII="},"68dd":function(t,e,i){},"6e87":function(t,e,i){},7958:function(t,e,i){},"7ca5":function(t,e,i){"use strict";var s=i("a79f").hasOwnProperty("default")?i("a79f").default:i("a79f");function a(t){return t.length>=2&&"number"===typeof t[0]&&"number"===typeof t[1]}function n(t,e){return a(t)?e(t):t.map((function(t){return n(t,e)}))}function r(t){if(null==t||"object"!==typeof t)return t;var e=t.constructor();for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i]);return e}function o(t,e,i){if(null==i)return i;var s=r(i),a=o.bind(this,t,e);switch(i.type){case"Feature":s.geometry=a(i.geometry);break;case"FeatureCollection":s.features=s.features.map(a);break;case"GeometryCollection":s.geometries=s.geometries.map(a);break;default:t(s);break}return e&&e(s),s}function h(t,e){var i,s=t.crs;if(void 0===s)throw new Error('Unable to detect CRS, GeoJSON has no "crs" property.');if("name"===s.type?i=e[s.properties.name]:"EPSG"===s.type&&(i=e["EPSG:"+s.properties.code]),!i)throw new Error("CRS defined in crs section could not be identified: "+JSON.stringify(s));return i}function l(t,e){return"string"===typeof t||t instanceof String?e[t]||s.Proj(t):t}function c(t){var e=[Number.MAX_VALUE,Number.MAX_VALUE],i=[-Number.MAX_VALUE,-Number.MAX_VALUE];return o((function(t){n(t.coordinates,(function(t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),i[0]=Math.max(i[0],t[0]),i[1]=Math.max(i[1],t[1])}))}),null,t),[e[0],e[1],i[0],i[1]]}function u(t,e,i,a){a=a||{},e=e?l(e,a):h(t,a),i=l(i,a);var r=s(e,i).forward.bind(r);function u(t){var e=r(t);return 3===t.length&&void 0!==t[2]&&void 0===e[2]&&(e[2]=t[2]),e}var d=function(t){t.crs&&delete t.crs,t.coordinates=n(t.coordinates,u)},p=function(t){t.bbox&&(t.bbox=c(t))};return o(d,p,t)}t.exports={detectCrs:h,reproject:u,reverse:function(t){return o((function(t){t.coordinates=n(t.coordinates,(function(t){return[t[1],t[0]]}))}),null,t)},toWgs84:function(t,e,i){return u(t,e,s.WGS84,i)}}},"841c":function(t,e,i){"use strict";var s=i("d784"),a=i("825a"),n=i("1d80"),r=i("129f"),o=i("14c3");s("search",1,(function(t,e,i){return[function(e){var i=n(this),s=void 0==e?void 0:e[t];return void 0!==s?s.call(e,i):new RegExp(e)[t](String(i))},function(t){var s=i(e,t,this);if(s.done)return s.value;var n=a(t),h=String(this),l=n.lastIndex;r(l,0)||(n.lastIndex=0);var c=o(n,h);return r(n.lastIndex,l)||(n.lastIndex=l),null===c?-1:c.index}]}))},"8a79":function(t,e,i){"use strict";var s=i("23e7"),a=i("06cf").f,n=i("50c4"),r=i("5a34"),o=i("1d80"),h=i("ab13"),l=i("c430"),c="".endsWith,u=Math.min,d=h("endsWith"),p=!l&&!d&&!!function(){var t=a(String.prototype,"endsWith");return t&&!t.writable}();s({target:"String",proto:!0,forced:!p&&!d},{endsWith:function(t){var e=String(o(this));r(t);var i=arguments.length>1?arguments[1]:void 0,s=n(e.length),a=void 0===i?s:u(n(i),s),h=String(t);return c?c.call(e,h,a):e.slice(a-h.length,a)===h}})},"8aa4":function(t,e,i){},"8adc":function(t,e,i){},"8b37":function(t,e,i){},"8ff2":function(t,e,i){},"91f4":function(t,e,i){},9734:function(t,e,i){},a79f:function(t,e,i){"use strict";i.r(e);var s=function(t){t("EPSG:4326","+title=WGS 84 (long/lat) +proj=longlat +ellps=WGS84 +datum=WGS84 +units=degrees"),t("EPSG:4269","+title=NAD83 (long/lat) +proj=longlat +a=6378137.0 +b=6356752.31414036 +ellps=GRS80 +datum=NAD83 +units=degrees"),t("EPSG:3857","+title=WGS 84 / Pseudo-Mercator +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs"),t.WGS84=t["EPSG:4326"],t["EPSG:3785"]=t["EPSG:3857"],t.GOOGLE=t["EPSG:3857"],t["EPSG:900913"]=t["EPSG:3857"],t["EPSG:102113"]=t["EPSG:3857"]},a=1,n=2,r=4,o=5,h=484813681109536e-20,l=Math.PI/2,c=.16666666666666666,u=.04722222222222222,d=.022156084656084655,p=1e-10,f=.017453292519943295,m=57.29577951308232,g=Math.PI/4,v=2*Math.PI,b=3.14159265359,y={greenwich:0,lisbon:-9.131906111111,paris:2.337229166667,bogota:-74.080916666667,madrid:-3.687938888889,rome:12.452333333333,bern:7.439583333333,jakarta:106.807719444444,ferro:-17.666666666667,brussels:4.367975,stockholm:18.058277777778,athens:23.7163375,oslo:10.722916666667},M={ft:{to_meter:.3048},"us-ft":{to_meter:1200/3937}},x=/[\s_\-\/\(\)]/g;function _(t,e){if(t[e])return t[e];var i,s,a=Object.keys(t),n=e.toLowerCase().replace(x,""),r=-1;while(++r<a.length)if(i=a[r],s=i.toLowerCase().replace(x,""),s===n)return t[i]}var w=function(t){var e,i,s,a={},n=t.split("+").map((function(t){return t.trim()})).filter((function(t){return t})).reduce((function(t,e){var i=e.split("=");return i.push(!0),t[i[0].toLowerCase()]=i[1],t}),{}),r={proj:"projName",datum:"datumCode",rf:function(t){a.rf=parseFloat(t)},lat_0:function(t){a.lat0=t*f},lat_1:function(t){a.lat1=t*f},lat_2:function(t){a.lat2=t*f},lat_ts:function(t){a.lat_ts=t*f},lon_0:function(t){a.long0=t*f},lon_1:function(t){a.long1=t*f},lon_2:function(t){a.long2=t*f},alpha:function(t){a.alpha=parseFloat(t)*f},lonc:function(t){a.longc=t*f},x_0:function(t){a.x0=parseFloat(t)},y_0:function(t){a.y0=parseFloat(t)},k_0:function(t){a.k0=parseFloat(t)},k:function(t){a.k0=parseFloat(t)},a:function(t){a.a=parseFloat(t)},b:function(t){a.b=parseFloat(t)},r_a:function(){a.R_A=!0},zone:function(t){a.zone=parseInt(t,10)},south:function(){a.utmSouth=!0},towgs84:function(t){a.datum_params=t.split(",").map((function(t){return parseFloat(t)}))},to_meter:function(t){a.to_meter=parseFloat(t)},units:function(t){a.units=t;var e=_(M,t);e&&(a.to_meter=e.to_meter)},from_greenwich:function(t){a.from_greenwich=t*f},pm:function(t){var e=_(y,t);a.from_greenwich=(e||parseFloat(t))*f},nadgrids:function(t){"@null"===t?a.datumCode="none":a.nadgrids=t},axis:function(t){var e="ewnsud";3===t.length&&-1!==e.indexOf(t.substr(0,1))&&-1!==e.indexOf(t.substr(1,1))&&-1!==e.indexOf(t.substr(2,1))&&(a.axis=t)}};for(e in n)i=n[e],e in r?(s=r[e],"function"===typeof s?s(i):a[s]=i):a[e]=i;return"string"===typeof a.datumCode&&"WGS84"!==a.datumCode&&(a.datumCode=a.datumCode.toLowerCase()),a},S=L,O=1,I=2,C=3,A=4,j=5,k=-1,E=/\s/,T=/[A-Za-z]/,P=/[A-Za-z84]/,$=/[,\]]/,B=/[\d\.E\-\+]/;function D(t){if("string"!==typeof t)throw new Error("not a string");this.text=t.trim(),this.level=0,this.place=0,this.root=null,this.stack=[],this.currentObject=null,this.state=O}function L(t){var e=new D(t);return e.output()}function N(t,e,i){Array.isArray(e)&&(i.unshift(e),e=null);var s=e?{}:t,a=i.reduce((function(t,e){return R(e,t),t}),s);e&&(t[e]=a)}function R(t,e){if(Array.isArray(t)){var i=t.shift();if("PARAMETER"===i&&(i=t.shift()),1===t.length)return Array.isArray(t[0])?(e[i]={},void R(t[0],e[i])):void(e[i]=t[0]);if(t.length)if("TOWGS84"!==i){if("AXIS"===i)return i in e||(e[i]=[]),void e[i].push(t);var s;switch(Array.isArray(i)||(e[i]={}),i){case"UNIT":case"PRIMEM":case"VERT_DATUM":return e[i]={name:t[0].toLowerCase(),convert:t[1]},void(3===t.length&&R(t[2],e[i]));case"SPHEROID":case"ELLIPSOID":return e[i]={name:t[0],a:t[1],rf:t[2]},void(4===t.length&&R(t[3],e[i]));case"PROJECTEDCRS":case"PROJCRS":case"GEOGCS":case"GEOCCS":case"PROJCS":case"LOCAL_CS":case"GEODCRS":case"GEODETICCRS":case"GEODETICDATUM":case"EDATUM":case"ENGINEERINGDATUM":case"VERT_CS":case"VERTCRS":case"VERTICALCRS":case"COMPD_CS":case"COMPOUNDCRS":case"ENGINEERINGCRS":case"ENGCRS":case"FITTED_CS":case"LOCAL_DATUM":case"DATUM":return t[0]=["name",t[0]],void N(e,i,t);default:s=-1;while(++s<t.length)if(!Array.isArray(t[s]))return R(t,e[i]);return N(e,i,t)}}else e[i]=t;else e[i]=!0}else e[t]=!0}D.prototype.readCharicter=function(){var t=this.text[this.place++];if(this.state!==A)while(E.test(t)){if(this.place>=this.text.length)return;t=this.text[this.place++]}switch(this.state){case O:return this.neutral(t);case I:return this.keyword(t);case A:return this.quoted(t);case j:return this.afterquote(t);case C:return this.number(t);case k:return}},D.prototype.afterquote=function(t){if('"'===t)return this.word+='"',void(this.state=A);if($.test(t))return this.word=this.word.trim(),void this.afterItem(t);throw new Error("havn't handled \""+t+'" in afterquote yet, index '+this.place)},D.prototype.afterItem=function(t){return","===t?(null!==this.word&&this.currentObject.push(this.word),this.word=null,void(this.state=O)):"]"===t?(this.level--,null!==this.word&&(this.currentObject.push(this.word),this.word=null),this.state=O,this.currentObject=this.stack.pop(),void(this.currentObject||(this.state=k))):void 0},D.prototype.number=function(t){if(!B.test(t)){if($.test(t))return this.word=parseFloat(this.word),void this.afterItem(t);throw new Error("havn't handled \""+t+'" in number yet, index '+this.place)}this.word+=t},D.prototype.quoted=function(t){'"'!==t?this.word+=t:this.state=j},D.prototype.keyword=function(t){if(P.test(t))this.word+=t;else{if("["===t){var e=[];return e.push(this.word),this.level++,null===this.root?this.root=e:this.currentObject.push(e),this.stack.push(this.currentObject),this.currentObject=e,void(this.state=O)}if(!$.test(t))throw new Error("havn't handled \""+t+'" in keyword yet, index '+this.place);this.afterItem(t)}},D.prototype.neutral=function(t){if(T.test(t))return this.word=t,void(this.state=I);if('"'===t)return this.word="",void(this.state=A);if(B.test(t))return this.word=t,void(this.state=C);if(!$.test(t))throw new Error("havn't handled \""+t+'" in neutral yet, index '+this.place);this.afterItem(t)},D.prototype.output=function(){while(this.place<this.text.length)this.readCharicter();if(this.state===k)return this.root;throw new Error('unable to parse string "'+this.text+'". State is '+this.state)};var V=.017453292519943295;function F(t,e){var i=e[0],s=e[1];!(i in t)&&s in t&&(t[i]=t[s],3===e.length&&(t[i]=e[2](t[i])))}function z(t){return t*V}function q(t){if("GEOGCS"===t.type?t.projName="longlat":"LOCAL_CS"===t.type?(t.projName="identity",t.local=!0):"object"===typeof t.PROJECTION?t.projName=Object.keys(t.PROJECTION)[0]:t.projName=t.PROJECTION,t.AXIS){for(var e="",i=0,s=t.AXIS.length;i<s;++i){var a=t.AXIS[i],n=a[0].toLowerCase();-1!==n.indexOf("north")?e+="n":-1!==n.indexOf("south")?e+="s":-1!==n.indexOf("east")?e+="e":-1!==n.indexOf("west")&&(e+="w")}2===e.length&&(e+="u"),3===e.length&&(t.axis=e)}t.UNIT&&(t.units=t.UNIT.name.toLowerCase(),"metre"===t.units&&(t.units="meter"),t.UNIT.convert&&("GEOGCS"===t.type?t.DATUM&&t.DATUM.SPHEROID&&(t.to_meter=t.UNIT.convert*t.DATUM.SPHEROID.a):t.to_meter=t.UNIT.convert));var r=t.GEOGCS;function o(e){var i=t.to_meter||1;return e*i}"GEOGCS"===t.type&&(r=t),r&&(r.DATUM?t.datumCode=r.DATUM.name.toLowerCase():t.datumCode=r.name.toLowerCase(),"d_"===t.datumCode.slice(0,2)&&(t.datumCode=t.datumCode.slice(2)),"new_zealand_geodetic_datum_1949"!==t.datumCode&&"new_zealand_1949"!==t.datumCode||(t.datumCode="nzgd49"),"wgs_1984"!==t.datumCode&&"world_geodetic_system_1984"!==t.datumCode||("Mercator_Auxiliary_Sphere"===t.PROJECTION&&(t.sphere=!0),t.datumCode="wgs84"),"_ferro"===t.datumCode.slice(-6)&&(t.datumCode=t.datumCode.slice(0,-6)),"_jakarta"===t.datumCode.slice(-8)&&(t.datumCode=t.datumCode.slice(0,-8)),~t.datumCode.indexOf("belge")&&(t.datumCode="rnb72"),r.DATUM&&r.DATUM.SPHEROID&&(t.ellps=r.DATUM.SPHEROID.name.replace("_19","").replace(/[Cc]larke\_18/,"clrk"),"international"===t.ellps.toLowerCase().slice(0,13)&&(t.ellps="intl"),t.a=r.DATUM.SPHEROID.a,t.rf=parseFloat(r.DATUM.SPHEROID.rf,10)),r.DATUM&&r.DATUM.TOWGS84&&(t.datum_params=r.DATUM.TOWGS84),~t.datumCode.indexOf("osgb_1936")&&(t.datumCode="osgb36"),~t.datumCode.indexOf("osni_1952")&&(t.datumCode="osni52"),(~t.datumCode.indexOf("tm65")||~t.datumCode.indexOf("geodetic_datum_of_1965"))&&(t.datumCode="ire65"),"ch1903+"===t.datumCode&&(t.datumCode="ch1903"),~t.datumCode.indexOf("israel")&&(t.datumCode="isr93")),t.b&&!isFinite(t.b)&&(t.b=t.a);var h=function(e){return F(t,e)},l=[["standard_parallel_1","Standard_Parallel_1"],["standard_parallel_2","Standard_Parallel_2"],["false_easting","False_Easting"],["false_northing","False_Northing"],["central_meridian","Central_Meridian"],["latitude_of_origin","Latitude_Of_Origin"],["latitude_of_origin","Central_Parallel"],["scale_factor","Scale_Factor"],["k0","scale_factor"],["latitude_of_center","Latitude_Of_Center"],["latitude_of_center","Latitude_of_center"],["lat0","latitude_of_center",z],["longitude_of_center","Longitude_Of_Center"],["longitude_of_center","Longitude_of_center"],["longc","longitude_of_center",z],["x0","false_easting",o],["y0","false_northing",o],["long0","central_meridian",z],["lat0","latitude_of_origin",z],["lat0","standard_parallel_1",z],["lat1","standard_parallel_1",z],["lat2","standard_parallel_2",z],["azimuth","Azimuth"],["alpha","azimuth",z],["srsCode","name"]];l.forEach(h),t.long0||!t.longc||"Albers_Conic_Equal_Area"!==t.projName&&"Lambert_Azimuthal_Equal_Area"!==t.projName||(t.long0=t.longc),t.lat_ts||!t.lat1||"Stereographic_South_Pole"!==t.projName&&"Polar Stereographic (variant B)"!==t.projName||(t.lat0=z(t.lat1>0?90:-90),t.lat_ts=t.lat1)}var G=function(t){var e=S(t),i=e.shift(),s=e.shift();e.unshift(["name",s]),e.unshift(["type",i]);var a={};return R(e,a),q(a),a};function W(t){var e=this;if(2===arguments.length){var i=arguments[1];"string"===typeof i?"+"===i.charAt(0)?W[t]=w(arguments[1]):W[t]=G(arguments[1]):W[t]=i}else if(1===arguments.length){if(Array.isArray(t))return t.map((function(t){Array.isArray(t)?W.apply(e,t):W(t)}));if("string"===typeof t){if(t in W)return W[t]}else"EPSG"in t?W["EPSG:"+t.EPSG]=t:"ESRI"in t?W["ESRI:"+t.ESRI]=t:"IAU2000"in t?W["IAU2000:"+t.IAU2000]=t:console.log(t);return}}s(W);var H=W;function U(t){return"string"===typeof t}function K(t){return t in H}var X=["PROJECTEDCRS","PROJCRS","GEOGCS","GEOCCS","PROJCS","LOCAL_CS","GEODCRS","GEODETICCRS","GEODETICDATUM","ENGCRS","ENGINEERINGCRS"];function J(t){return X.some((function(e){return t.indexOf(e)>-1}))}var Q=["3857","900913","3785","102113"];function Y(t){var e=_(t,"authority");if(e){var i=_(e,"epsg");return i&&Q.indexOf(i)>-1}}function Z(t){var e=_(t,"extension");if(e)return _(e,"proj4")}function tt(t){return"+"===t[0]}function et(t){if(!U(t))return t;if(K(t))return H[t];if(J(t)){var e=G(t);if(Y(e))return H["EPSG:3857"];var i=Z(e);return i?w(i):e}return tt(t)?w(t):void 0}var it=et,st=function(t,e){var i,s;if(t=t||{},!e)return t;for(s in e)i=e[s],void 0!==i&&(t[s]=i);return t},at=function(t,e,i){var s=t*e;return i/Math.sqrt(1-s*s)},nt=function(t){return t<0?-1:1},rt=function(t){return Math.abs(t)<=b?t:t-nt(t)*v},ot=function(t,e,i){var s=t*i,a=.5*t;return s=Math.pow((1-s)/(1+s),a),Math.tan(.5*(l-e))/s},ht=function(t,e){for(var i,s,a=.5*t,n=l-2*Math.atan(e),r=0;r<=15;r++)if(i=t*Math.sin(n),s=l-2*Math.atan(e*Math.pow((1-i)/(1+i),a))-n,n+=s,Math.abs(s)<=1e-10)return n;return-9999};function lt(){var t=this.b/this.a;this.es=1-t*t,"x0"in this||(this.x0=0),"y0"in this||(this.y0=0),this.e=Math.sqrt(this.es),this.lat_ts?this.sphere?this.k0=Math.cos(this.lat_ts):this.k0=at(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)):this.k0||(this.k?this.k0=this.k:this.k0=1)}function ct(t){var e,i,s=t.x,a=t.y;if(a*m>90&&a*m<-90&&s*m>180&&s*m<-180)return null;if(Math.abs(Math.abs(a)-l)<=p)return null;if(this.sphere)e=this.x0+this.a*this.k0*rt(s-this.long0),i=this.y0+this.a*this.k0*Math.log(Math.tan(g+.5*a));else{var n=Math.sin(a),r=ot(this.e,a,n);e=this.x0+this.a*this.k0*rt(s-this.long0),i=this.y0-this.a*this.k0*Math.log(r)}return t.x=e,t.y=i,t}function ut(t){var e,i,s=t.x-this.x0,a=t.y-this.y0;if(this.sphere)i=l-2*Math.atan(Math.exp(-a/(this.a*this.k0)));else{var n=Math.exp(-a/(this.a*this.k0));if(i=ht(this.e,n),-9999===i)return null}return e=rt(this.long0+s/(this.a*this.k0)),t.x=e,t.y=i,t}var dt=["Mercator","Popular Visualisation Pseudo Mercator","Mercator_1SP","Mercator_Auxiliary_Sphere","merc"],pt={init:lt,forward:ct,inverse:ut,names:dt};function ft(){}function mt(t){return t}var gt=["longlat","identity"],vt={init:ft,forward:mt,inverse:mt,names:gt},bt=[pt,vt],yt={},Mt=[];function xt(t,e){var i=Mt.length;return t.names?(Mt[i]=t,t.names.forEach((function(t){yt[t.toLowerCase()]=i})),this):(console.log(e),!0)}function _t(t){if(!t)return!1;var e=t.toLowerCase();return"undefined"!==typeof yt[e]&&Mt[yt[e]]?Mt[yt[e]]:void 0}function wt(){bt.forEach(xt)}var St={start:wt,add:xt,get:_t},Ot={MERIT:{a:6378137,rf:298.257,ellipseName:"MERIT 1983"},SGS85:{a:6378136,rf:298.257,ellipseName:"Soviet Geodetic System 85"},GRS80:{a:6378137,rf:298.257222101,ellipseName:"GRS 1980(IUGG, 1980)"},IAU76:{a:6378140,rf:298.257,ellipseName:"IAU 1976"},airy:{a:6377563.396,b:6356256.91,ellipseName:"Airy 1830"},APL4:{a:6378137,rf:298.25,ellipseName:"Appl. Physics. 1965"},NWL9D:{a:6378145,rf:298.25,ellipseName:"Naval Weapons Lab., 1965"},mod_airy:{a:6377340.189,b:6356034.446,ellipseName:"Modified Airy"},andrae:{a:6377104.43,rf:300,ellipseName:"Andrae 1876 (Den., Iclnd.)"},aust_SA:{a:6378160,rf:298.25,ellipseName:"Australian Natl & S. Amer. 1969"},GRS67:{a:6378160,rf:298.247167427,ellipseName:"GRS 67(IUGG 1967)"},bessel:{a:6377397.155,rf:299.1528128,ellipseName:"Bessel 1841"},bess_nam:{a:6377483.865,rf:299.1528128,ellipseName:"Bessel 1841 (Namibia)"},clrk66:{a:6378206.4,b:6356583.8,ellipseName:"Clarke 1866"},clrk80:{a:6378249.145,rf:293.4663,ellipseName:"Clarke 1880 mod."},clrk58:{a:6378293.645208759,rf:294.2606763692654,ellipseName:"Clarke 1858"},CPM:{a:6375738.7,rf:334.29,ellipseName:"Comm. des Poids et Mesures 1799"},delmbr:{a:6376428,rf:311.5,ellipseName:"Delambre 1810 (Belgium)"},engelis:{a:6378136.05,rf:298.2566,ellipseName:"Engelis 1985"},evrst30:{a:6377276.345,rf:300.8017,ellipseName:"Everest 1830"},evrst48:{a:6377304.063,rf:300.8017,ellipseName:"Everest 1948"},evrst56:{a:6377301.243,rf:300.8017,ellipseName:"Everest 1956"},evrst69:{a:6377295.664,rf:300.8017,ellipseName:"Everest 1969"},evrstSS:{a:6377298.556,rf:300.8017,ellipseName:"Everest (Sabah & Sarawak)"},fschr60:{a:6378166,rf:298.3,ellipseName:"Fischer (Mercury Datum) 1960"},fschr60m:{a:6378155,rf:298.3,ellipseName:"Fischer 1960"},fschr68:{a:6378150,rf:298.3,ellipseName:"Fischer 1968"},helmert:{a:6378200,rf:298.3,ellipseName:"Helmert 1906"},hough:{a:6378270,rf:297,ellipseName:"Hough"},intl:{a:6378388,rf:297,ellipseName:"International 1909 (Hayford)"},kaula:{a:6378163,rf:298.24,ellipseName:"Kaula 1961"},lerch:{a:6378139,rf:298.257,ellipseName:"Lerch 1979"},mprts:{a:6397300,rf:191,ellipseName:"Maupertius 1738"},new_intl:{a:6378157.5,b:6356772.2,ellipseName:"New International 1967"},plessis:{a:6376523,rf:6355863,ellipseName:"Plessis 1817 (France)"},krass:{a:6378245,rf:298.3,ellipseName:"Krassovsky, 1942"},SEasia:{a:6378155,b:6356773.3205,ellipseName:"Southeast Asia"},walbeck:{a:6376896,b:6355834.8467,ellipseName:"Walbeck"},WGS60:{a:6378165,rf:298.3,ellipseName:"WGS 60"},WGS66:{a:6378145,rf:298.25,ellipseName:"WGS 66"},WGS7:{a:6378135,rf:298.26,ellipseName:"WGS 72"}},It=Ot.WGS84={a:6378137,rf:298.257223563,ellipseName:"WGS 84"};function Ct(t,e,i,s){var a=t*t,n=e*e,r=(a-n)/a,o=0;s?(t*=1-r*(c+r*(u+r*d)),a=t*t,r=0):o=Math.sqrt(r);var h=(a-n)/n;return{es:r,e:o,ep2:h}}function At(t,e,i,s,a){if(!t){var n=_(Ot,s);n||(n=It),t=n.a,e=n.b,i=n.rf}return i&&!e&&(e=(1-1/i)*t),(0===i||Math.abs(t-e)<p)&&(a=!0,e=t),{a:t,b:e,rf:i,sphere:a}}Ot.sphere={a:6370997,b:6370997,ellipseName:"Normal Sphere (r=6370997)"};var jt={};function kt(t,e,i,s,l,c){var u={};return u.datum_type=void 0===t||"none"===t?o:r,e&&(u.datum_params=e.map(parseFloat),0===u.datum_params[0]&&0===u.datum_params[1]&&0===u.datum_params[2]||(u.datum_type=a),u.datum_params.length>3&&(0===u.datum_params[3]&&0===u.datum_params[4]&&0===u.datum_params[5]&&0===u.datum_params[6]||(u.datum_type=n,u.datum_params[3]*=h,u.datum_params[4]*=h,u.datum_params[5]*=h,u.datum_params[6]=u.datum_params[6]/1e6+1))),u.a=i,u.b=s,u.es=l,u.ep2=c,u}jt.wgs84={towgs84:"0,0,0",ellipse:"WGS84",datumName:"WGS84"},jt.ch1903={towgs84:"674.374,15.056,405.346",ellipse:"bessel",datumName:"swiss"},jt.ggrs87={towgs84:"-199.87,74.79,246.62",ellipse:"GRS80",datumName:"Greek_Geodetic_Reference_System_1987"},jt.nad83={towgs84:"0,0,0",ellipse:"GRS80",datumName:"North_American_Datum_1983"},jt.nad27={nadgrids:"@conus,@alaska,@ntv2_0.gsb,@ntv1_can.dat",ellipse:"clrk66",datumName:"North_American_Datum_1927"},jt.potsdam={towgs84:"606.0,23.0,413.0",ellipse:"bessel",datumName:"Potsdam Rauenberg 1950 DHDN"},jt.carthage={towgs84:"-263.0,6.0,431.0",ellipse:"clark80",datumName:"Carthage 1934 Tunisia"},jt.hermannskogel={towgs84:"653.0,-212.0,449.0",ellipse:"bessel",datumName:"Hermannskogel"},jt.osni52={towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"airy",datumName:"Irish National"},jt.ire65={towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"mod_airy",datumName:"Ireland 1965"},jt.rassadiran={towgs84:"-133.63,-157.5,-158.62",ellipse:"intl",datumName:"Rassadiran"},jt.nzgd49={towgs84:"59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993",ellipse:"intl",datumName:"New Zealand Geodetic Datum 1949"},jt.osgb36={towgs84:"446.448,-125.157,542.060,0.1502,0.2470,0.8421,-20.4894",ellipse:"airy",datumName:"Airy 1830"},jt.s_jtsk={towgs84:"589,76,480",ellipse:"bessel",datumName:"S-JTSK (Ferro)"},jt.beduaram={towgs84:"-106,-87,188",ellipse:"clrk80",datumName:"Beduaram"},jt.gunung_segara={towgs84:"-403,684,41",ellipse:"bessel",datumName:"Gunung Segara Jakarta"},jt.rnb72={towgs84:"106.869,-52.2978,103.724,-0.33657,0.456955,-1.84218,1",ellipse:"intl",datumName:"Reseau National Belge 1972"};var Et=kt;function Tt(t,e){if(!(this instanceof Tt))return new Tt(t);e=e||function(t){if(t)throw t};var i=it(t);if("object"===typeof i){var s=Tt.projections.get(i.projName);if(s){if(i.datumCode&&"none"!==i.datumCode){var a=_(jt,i.datumCode);a&&(i.datum_params=a.towgs84?a.towgs84.split(","):null,i.ellps=a.ellipse,i.datumName=a.datumName?a.datumName:i.datumCode)}i.k0=i.k0||1,i.axis=i.axis||"enu",i.ellps=i.ellps||"wgs84";var n=At(i.a,i.b,i.rf,i.ellps,i.sphere),r=Ct(n.a,n.b,n.rf,i.R_A),o=i.datum||Et(i.datumCode,i.datum_params,n.a,n.b,r.es,r.ep2);st(this,i),st(this,s),this.a=n.a,this.b=n.b,this.rf=n.rf,this.sphere=n.sphere,this.es=r.es,this.e=r.e,this.ep2=r.ep2,this.datum=o,this.init(),e(null,this)}else e(t)}else e(t)}Tt.projections=St,Tt.projections.start();var Pt=Tt;function $t(t,e){return t.datum_type===e.datum_type&&(!(t.a!==e.a||Math.abs(t.es-e.es)>5e-11)&&(t.datum_type===a?t.datum_params[0]===e.datum_params[0]&&t.datum_params[1]===e.datum_params[1]&&t.datum_params[2]===e.datum_params[2]:t.datum_type!==n||t.datum_params[0]===e.datum_params[0]&&t.datum_params[1]===e.datum_params[1]&&t.datum_params[2]===e.datum_params[2]&&t.datum_params[3]===e.datum_params[3]&&t.datum_params[4]===e.datum_params[4]&&t.datum_params[5]===e.datum_params[5]&&t.datum_params[6]===e.datum_params[6]))}function Bt(t,e,i){var s,a,n,r,o=t.x,h=t.y,c=t.z?t.z:0;if(h<-l&&h>-1.001*l)h=-l;else if(h>l&&h<1.001*l)h=l;else{if(h<-l)return{x:-1/0,y:-1/0,z:t.z};if(h>l)return{x:1/0,y:1/0,z:t.z}}return o>Math.PI&&(o-=2*Math.PI),a=Math.sin(h),r=Math.cos(h),n=a*a,s=i/Math.sqrt(1-e*n),{x:(s+c)*r*Math.cos(o),y:(s+c)*r*Math.sin(o),z:(s*(1-e)+c)*a}}function Dt(t,e,i,s){var a,n,r,o,h,c,u,d,p,f,m,g,v,b,y,M,x=1e-12,_=x*x,w=30,S=t.x,O=t.y,I=t.z?t.z:0;if(a=Math.sqrt(S*S+O*O),n=Math.sqrt(S*S+O*O+I*I),a/i<x){if(b=0,n/i<x)return y=l,M=-s,{x:t.x,y:t.y,z:t.z}}else b=Math.atan2(O,S);r=I/n,o=a/n,h=1/Math.sqrt(1-e*(2-e)*o*o),d=o*(1-e)*h,p=r*h,v=0;do{v++,u=i/Math.sqrt(1-e*p*p),M=a*d+I*p-u*(1-e*p*p),c=e*u/(u+M),h=1/Math.sqrt(1-c*(2-c)*o*o),f=o*(1-c)*h,m=r*h,g=m*d-f*p,d=f,p=m}while(g*g>_&&v<w);return y=Math.atan(m/Math.abs(f)),{x:b,y:y,z:M}}function Lt(t,e,i){if(e===a)return{x:t.x+i[0],y:t.y+i[1],z:t.z+i[2]};if(e===n){var s=i[0],r=i[1],o=i[2],h=i[3],l=i[4],c=i[5],u=i[6];return{x:u*(t.x-c*t.y+l*t.z)+s,y:u*(c*t.x+t.y-h*t.z)+r,z:u*(-l*t.x+h*t.y+t.z)+o}}}function Nt(t,e,i){if(e===a)return{x:t.x-i[0],y:t.y-i[1],z:t.z-i[2]};if(e===n){var s=i[0],r=i[1],o=i[2],h=i[3],l=i[4],c=i[5],u=i[6],d=(t.x-s)/u,p=(t.y-r)/u,f=(t.z-o)/u;return{x:d+c*p-l*f,y:-c*d+p+h*f,z:l*d-h*p+f}}}function Rt(t){return t===a||t===n}var Vt=function(t,e,i){return $t(t,e)||t.datum_type===o||e.datum_type===o?i:t.es!==e.es||t.a!==e.a||Rt(t.datum_type)||Rt(e.datum_type)?(i=Bt(i,t.es,t.a),Rt(t.datum_type)&&(i=Lt(i,t.datum_type,t.datum_params)),Rt(e.datum_type)&&(i=Nt(i,e.datum_type,e.datum_params)),Dt(i,e.es,e.a,e.b)):i},Ft=function(t,e,i){var s,a,n,r=i.x,o=i.y,h=i.z||0,l={};for(n=0;n<3;n++)if(!e||2!==n||void 0!==i.z)switch(0===n?(s=r,a=-1!=="ew".indexOf(t.axis[n])?"x":"y"):1===n?(s=o,a=-1!=="ns".indexOf(t.axis[n])?"y":"x"):(s=h,a="z"),t.axis[n]){case"e":case"w":case"n":case"s":l[a]=s;break;case"u":void 0!==i[a]&&(l.z=s);break;case"d":void 0!==i[a]&&(l.z=-s);break;default:return null}return l},zt=function(t){var e={x:t[0],y:t[1]};return t.length>2&&(e.z=t[2]),t.length>3&&(e.m=t[3]),e},qt=function(t){Gt(t.x),Gt(t.y)};function Gt(t){if("function"===typeof Number.isFinite){if(Number.isFinite(t))return;throw new TypeError("coordinates must be finite numbers")}if("number"!==typeof t||t!==t||!isFinite(t))throw new TypeError("coordinates must be finite numbers")}function Wt(t,e){return(t.datum.datum_type===a||t.datum.datum_type===n)&&"WGS84"!==e.datumCode||(e.datum.datum_type===a||e.datum.datum_type===n)&&"WGS84"!==t.datumCode}function Ht(t,e,i){var s;if(Array.isArray(i)&&(i=zt(i)),qt(i),t.datum&&e.datum&&Wt(t,e)&&(s=new Pt("WGS84"),i=Ht(t,s,i),t=s),"enu"!==t.axis&&(i=Ft(t,!1,i)),"longlat"===t.projName)i={x:i.x*f,y:i.y*f,z:i.z||0};else if(t.to_meter&&(i={x:i.x*t.to_meter,y:i.y*t.to_meter,z:i.z||0}),i=t.inverse(i),!i)return;return t.from_greenwich&&(i.x+=t.from_greenwich),i=Vt(t.datum,e.datum,i),e.from_greenwich&&(i={x:i.x-e.from_greenwich,y:i.y,z:i.z||0}),"longlat"===e.projName?i={x:i.x*m,y:i.y*m,z:i.z||0}:(i=e.forward(i),e.to_meter&&(i={x:i.x/e.to_meter,y:i.y/e.to_meter,z:i.z||0})),"enu"!==e.axis?Ft(e,!0,i):i}var Ut=Pt("WGS84");function Kt(t,e,i){var s,a,n;return Array.isArray(i)?(s=Ht(t,e,i)||{x:NaN,y:NaN},i.length>2?"undefined"!==typeof t.name&&"geocent"===t.name||"undefined"!==typeof e.name&&"geocent"===e.name?"number"===typeof s.z?[s.x,s.y,s.z].concat(i.splice(3)):[s.x,s.y,i[2]].concat(i.splice(3)):[s.x,s.y].concat(i.splice(2)):[s.x,s.y]):(a=Ht(t,e,i),n=Object.keys(i),2===n.length||n.forEach((function(s){if("undefined"!==typeof t.name&&"geocent"===t.name||"undefined"!==typeof e.name&&"geocent"===e.name){if("x"===s||"y"===s||"z"===s)return}else if("x"===s||"y"===s)return;a[s]=i[s]})),a)}function Xt(t){return t instanceof Pt?t:t.oProj?t.oProj:Pt(t)}function Jt(t,e,i){t=Xt(t);var s,a=!1;return"undefined"===typeof e?(e=t,t=Ut,a=!0):("undefined"!==typeof e.x||Array.isArray(e))&&(i=e,e=t,t=Ut,a=!0),e=Xt(e),i?Kt(t,e,i):(s={forward:function(i){return Kt(t,e,i)},inverse:function(i){return Kt(e,t,i)}},a&&(s.oProj=e),s)}var Qt=Jt,Yt=6,Zt="AJSAJS",te="AFAFAF",ee=65,ie=73,se=79,ae=86,ne=90,re={forward:oe,inverse:he,toPoint:le};function oe(t,e){return e=e||5,me(de({lat:t[1],lon:t[0]}),e)}function he(t){var e=pe(ye(t.toUpperCase()));return e.lat&&e.lon?[e.lon,e.lat,e.lon,e.lat]:[e.left,e.bottom,e.right,e.top]}function le(t){var e=pe(ye(t.toUpperCase()));return e.lat&&e.lon?[e.lon,e.lat]:[(e.left+e.right)/2,(e.top+e.bottom)/2]}function ce(t){return t*(Math.PI/180)}function ue(t){return t/Math.PI*180}function de(t){var e,i,s,a,n,r,o,h,l,c=t.lat,u=t.lon,d=6378137,p=.00669438,f=.9996,m=ce(c),g=ce(u);l=Math.floor((u+180)/6)+1,180===u&&(l=60),c>=56&&c<64&&u>=3&&u<12&&(l=32),c>=72&&c<84&&(u>=0&&u<9?l=31:u>=9&&u<21?l=33:u>=21&&u<33?l=35:u>=33&&u<42&&(l=37)),e=6*(l-1)-180+3,h=ce(e),i=p/(1-p),s=d/Math.sqrt(1-p*Math.sin(m)*Math.sin(m)),a=Math.tan(m)*Math.tan(m),n=i*Math.cos(m)*Math.cos(m),r=Math.cos(m)*(g-h),o=d*((1-p/4-3*p*p/64-5*p*p*p/256)*m-(3*p/8+3*p*p/32+45*p*p*p/1024)*Math.sin(2*m)+(15*p*p/256+45*p*p*p/1024)*Math.sin(4*m)-35*p*p*p/3072*Math.sin(6*m));var v=f*s*(r+(1-a+n)*r*r*r/6+(5-18*a+a*a+72*n-58*i)*r*r*r*r*r/120)+5e5,b=f*(o+s*Math.tan(m)*(r*r/2+(5-a+9*n+4*n*n)*r*r*r*r/24+(61-58*a+a*a+600*n-330*i)*r*r*r*r*r*r/720));return c<0&&(b+=1e7),{northing:Math.round(b),easting:Math.round(v),zoneNumber:l,zoneLetter:fe(c)}}function pe(t){var e=t.northing,i=t.easting,s=t.zoneLetter,a=t.zoneNumber;if(a<0||a>60)return null;var n,r,o,h,l,c,u,d,p,f,m=.9996,g=6378137,v=.00669438,b=(1-Math.sqrt(1-v))/(1+Math.sqrt(1-v)),y=i-5e5,M=e;s<"N"&&(M-=1e7),d=6*(a-1)-180+3,n=v/(1-v),u=M/m,p=u/(g*(1-v/4-3*v*v/64-5*v*v*v/256)),f=p+(3*b/2-27*b*b*b/32)*Math.sin(2*p)+(21*b*b/16-55*b*b*b*b/32)*Math.sin(4*p)+151*b*b*b/96*Math.sin(6*p),r=g/Math.sqrt(1-v*Math.sin(f)*Math.sin(f)),o=Math.tan(f)*Math.tan(f),h=n*Math.cos(f)*Math.cos(f),l=g*(1-v)/Math.pow(1-v*Math.sin(f)*Math.sin(f),1.5),c=y/(r*m);var x=f-r*Math.tan(f)/l*(c*c/2-(5+3*o+10*h-4*h*h-9*n)*c*c*c*c/24+(61+90*o+298*h+45*o*o-252*n-3*h*h)*c*c*c*c*c*c/720);x=ue(x);var _,w=(c-(1+2*o+h)*c*c*c/6+(5-2*h+28*o-3*h*h+8*n+24*o*o)*c*c*c*c*c/120)/Math.cos(f);if(w=d+ue(w),t.accuracy){var S=pe({northing:t.northing+t.accuracy,easting:t.easting+t.accuracy,zoneLetter:t.zoneLetter,zoneNumber:t.zoneNumber});_={top:S.lat,right:S.lon,bottom:x,left:w}}else _={lat:x,lon:w};return _}function fe(t){var e="Z";return 84>=t&&t>=72?e="X":72>t&&t>=64?e="W":64>t&&t>=56?e="V":56>t&&t>=48?e="U":48>t&&t>=40?e="T":40>t&&t>=32?e="S":32>t&&t>=24?e="R":24>t&&t>=16?e="Q":16>t&&t>=8?e="P":8>t&&t>=0?e="N":0>t&&t>=-8?e="M":-8>t&&t>=-16?e="L":-16>t&&t>=-24?e="K":-24>t&&t>=-32?e="J":-32>t&&t>=-40?e="H":-40>t&&t>=-48?e="G":-48>t&&t>=-56?e="F":-56>t&&t>=-64?e="E":-64>t&&t>=-72?e="D":-72>t&&t>=-80&&(e="C"),e}function me(t,e){var i="00000"+t.easting,s="00000"+t.northing;return t.zoneNumber+t.zoneLetter+ge(t.easting,t.northing,t.zoneNumber)+i.substr(i.length-5,e)+s.substr(s.length-5,e)}function ge(t,e,i){var s=ve(i),a=Math.floor(t/1e5),n=Math.floor(e/1e5)%20;return be(a,n,s)}function ve(t){var e=t%Yt;return 0===e&&(e=Yt),e}function be(t,e,i){var s=i-1,a=Zt.charCodeAt(s),n=te.charCodeAt(s),r=a+t-1,o=n+e,h=!1;r>ne&&(r=r-ne+ee-1,h=!0),(r===ie||a<ie&&r>ie||(r>ie||a<ie)&&h)&&r++,(r===se||a<se&&r>se||(r>se||a<se)&&h)&&(r++,r===ie&&r++),r>ne&&(r=r-ne+ee-1),o>ae?(o=o-ae+ee-1,h=!0):h=!1,(o===ie||n<ie&&o>ie||(o>ie||n<ie)&&h)&&o++,(o===se||n<se&&o>se||(o>se||n<se)&&h)&&(o++,o===ie&&o++),o>ae&&(o=o-ae+ee-1);var l=String.fromCharCode(r)+String.fromCharCode(o);return l}function ye(t){if(t&&0===t.length)throw"MGRSPoint coverting from nothing";var e,i=t.length,s=null,a="",n=0;while(!/[A-Z]/.test(e=t.charAt(n))){if(n>=2)throw"MGRSPoint bad conversion from: "+t;a+=e,n++}var r=parseInt(a,10);if(0===n||n+3>i)throw"MGRSPoint bad conversion from: "+t;var o=t.charAt(n++);if(o<="A"||"B"===o||"Y"===o||o>="Z"||"I"===o||"O"===o)throw"MGRSPoint zone letter "+o+" not handled: "+t;s=t.substring(n,n+=2);var h=ve(r),l=Me(s.charAt(0),h),c=xe(s.charAt(1),h);while(c<_e(o))c+=2e6;var u=i-n;if(u%2!==0)throw"MGRSPoint has to have an even number \nof digits after the zone letter and two 100km letters - front \nhalf for easting meters, second half for \nnorthing meters"+t;var d,p,f,m,g,v=u/2,b=0,y=0;return v>0&&(d=1e5/Math.pow(10,v),p=t.substring(n,n+v),b=parseFloat(p)*d,f=t.substring(n+v),y=parseFloat(f)*d),m=b+l,g=y+c,{easting:m,northing:g,zoneLetter:o,zoneNumber:r,accuracy:d}}function Me(t,e){var i=Zt.charCodeAt(e-1),s=1e5,a=!1;while(i!==t.charCodeAt(0)){if(i++,i===ie&&i++,i===se&&i++,i>ne){if(a)throw"Bad character: "+t;i=ee,a=!0}s+=1e5}return s}function xe(t,e){if(t>"V")throw"MGRSPoint given invalid Northing "+t;var i=te.charCodeAt(e-1),s=0,a=!1;while(i!==t.charCodeAt(0)){if(i++,i===ie&&i++,i===se&&i++,i>ae){if(a)throw"Bad character: "+t;i=ee,a=!0}s+=1e5}return s}function _e(t){var e;switch(t){case"C":e=11e5;break;case"D":e=2e6;break;case"E":e=28e5;break;case"F":e=37e5;break;case"G":e=46e5;break;case"H":e=55e5;break;case"J":e=64e5;break;case"K":e=73e5;break;case"L":e=82e5;break;case"M":e=91e5;break;case"N":e=0;break;case"P":e=8e5;break;case"Q":e=17e5;break;case"R":e=26e5;break;case"S":e=35e5;break;case"T":e=44e5;break;case"U":e=53e5;break;case"V":e=62e5;break;case"W":e=7e6;break;case"X":e=79e5;break;default:e=-1}if(e>=0)return e;throw"Invalid zone letter: "+t}function we(t,e,i){if(!(this instanceof we))return new we(t,e,i);if(Array.isArray(t))this.x=t[0],this.y=t[1],this.z=t[2]||0;else if("object"===typeof t)this.x=t.x,this.y=t.y,this.z=t.z||0;else if("string"===typeof t&&"undefined"===typeof e){var s=t.split(",");this.x=parseFloat(s[0],10),this.y=parseFloat(s[1],10),this.z=parseFloat(s[2],10)||0}else this.x=t,this.y=e,this.z=i||0;console.warn("proj4.Point will be removed in version 3, use proj4.toPoint")}we.fromMGRS=function(t){return new we(le(t))},we.prototype.toMGRS=function(t){return oe([this.x,this.y],t)};var Se=we,Oe=1,Ie=.25,Ce=.046875,Ae=.01953125,je=.01068115234375,ke=.75,Ee=.46875,Te=.013020833333333334,Pe=.007120768229166667,$e=.3645833333333333,Be=.005696614583333333,De=.3076171875,Le=function(t){var e=[];e[0]=Oe-t*(Ie+t*(Ce+t*(Ae+t*je))),e[1]=t*(ke-t*(Ce+t*(Ae+t*je)));var i=t*t;return e[2]=i*(Ee-t*(Te+t*Pe)),i*=t,e[3]=i*($e-t*Be),e[4]=i*t*De,e},Ne=function(t,e,i,s){return i*=e,e*=e,s[0]*t-i*(s[1]+e*(s[2]+e*(s[3]+e*s[4])))},Re=20,Ve=function(t,e,i){for(var s=1/(1-e),a=t,n=Re;n;--n){var r=Math.sin(a),o=1-e*r*r;if(o=(Ne(a,r,Math.cos(a),i)-t)*(o*Math.sqrt(o))*s,a-=o,Math.abs(o)<p)return a}return a};function Fe(){this.x0=void 0!==this.x0?this.x0:0,this.y0=void 0!==this.y0?this.y0:0,this.long0=void 0!==this.long0?this.long0:0,this.lat0=void 0!==this.lat0?this.lat0:0,this.es&&(this.en=Le(this.es),this.ml0=Ne(this.lat0,Math.sin(this.lat0),Math.cos(this.lat0),this.en))}function ze(t){var e,i,s,a=t.x,n=t.y,r=rt(a-this.long0),o=Math.sin(n),h=Math.cos(n);if(this.es){var l=h*r,c=Math.pow(l,2),u=this.ep2*Math.pow(h,2),d=Math.pow(u,2),f=Math.abs(h)>p?Math.tan(n):0,m=Math.pow(f,2),g=Math.pow(m,2);e=1-this.es*Math.pow(o,2),l/=Math.sqrt(e);var v=Ne(n,o,h,this.en);i=this.a*(this.k0*l*(1+c/6*(1-m+u+c/20*(5-18*m+g+14*u-58*m*u+c/42*(61+179*g-g*m-479*m)))))+this.x0,s=this.a*(this.k0*(v-this.ml0+o*r*l/2*(1+c/12*(5-m+9*u+4*d+c/30*(61+g-58*m+270*u-330*m*u+c/56*(1385+543*g-g*m-3111*m))))))+this.y0}else{var b=h*Math.sin(r);if(Math.abs(Math.abs(b)-1)<p)return 93;if(i=.5*this.a*this.k0*Math.log((1+b)/(1-b))+this.x0,s=h*Math.cos(r)/Math.sqrt(1-Math.pow(b,2)),b=Math.abs(s),b>=1){if(b-1>p)return 93;s=0}else s=Math.acos(s);n<0&&(s=-s),s=this.a*this.k0*(s-this.lat0)+this.y0}return t.x=i,t.y=s,t}function qe(t){var e,i,s,a,n=(t.x-this.x0)*(1/this.a),r=(t.y-this.y0)*(1/this.a);if(this.es)if(e=this.ml0+r/this.k0,i=Ve(e,this.es,this.en),Math.abs(i)<l){var o=Math.sin(i),h=Math.cos(i),c=Math.abs(h)>p?Math.tan(i):0,u=this.ep2*Math.pow(h,2),d=Math.pow(u,2),f=Math.pow(c,2),m=Math.pow(f,2);e=1-this.es*Math.pow(o,2);var g=n*Math.sqrt(e)/this.k0,v=Math.pow(g,2);e*=c,s=i-e*v/(1-this.es)*.5*(1-v/12*(5+3*f-9*u*f+u-4*d-v/30*(61+90*f-252*u*f+45*m+46*u-v/56*(1385+3633*f+4095*m+1574*m*f)))),a=rt(this.long0+g*(1-v/6*(1+2*f+u-v/20*(5+28*f+24*m+8*u*f+6*u-v/42*(61+662*f+1320*m+720*m*f))))/h)}else s=l*nt(r),a=0;else{var b=Math.exp(n/this.k0),y=.5*(b-1/b),M=this.lat0+r/this.k0,x=Math.cos(M);e=Math.sqrt((1-Math.pow(x,2))/(1+Math.pow(y,2))),s=Math.asin(e),r<0&&(s=-s),a=0===y&&0===x?0:rt(Math.atan2(y,x)+this.long0)}return t.x=a,t.y=s,t}var Ge=["Transverse_Mercator","Transverse Mercator","tmerc"],We={init:Fe,forward:ze,inverse:qe,names:Ge},He=function(t){var e=Math.exp(t);return e=(e-1/e)/2,e},Ue=function(t,e){t=Math.abs(t),e=Math.abs(e);var i=Math.max(t,e),s=Math.min(t,e)/(i||1);return i*Math.sqrt(1+Math.pow(s,2))},Ke=function(t){var e=1+t,i=e-1;return 0===i?t:t*Math.log(e)/i},Xe=function(t){var e=Math.abs(t);return e=Ke(e*(1+e/(Ue(1,e)+1))),t<0?-e:e},Je=function(t,e){var i,s=2*Math.cos(2*e),a=t.length-1,n=t[a],r=0;while(--a>=0)i=s*n-r+t[a],r=n,n=i;return e+i*Math.sin(2*e)},Qe=function(t,e){var i,s=2*Math.cos(e),a=t.length-1,n=t[a],r=0;while(--a>=0)i=s*n-r+t[a],r=n,n=i;return Math.sin(e)*i},Ye=function(t){var e=Math.exp(t);return e=(e+1/e)/2,e},Ze=function(t,e,i){var s,a,n=Math.sin(e),r=Math.cos(e),o=He(i),h=Ye(i),l=2*r*h,c=-2*n*o,u=t.length-1,d=t[u],p=0,f=0,m=0;while(--u>=0)s=f,a=p,f=d,p=m,d=l*f-s-c*p+t[u],m=c*f-a+l*p;return l=n*h,c=r*o,[l*d-c*m,l*m+c*d]};function ti(){if(void 0===this.es||this.es<=0)throw new Error("incorrect elliptical usage");this.x0=void 0!==this.x0?this.x0:0,this.y0=void 0!==this.y0?this.y0:0,this.long0=void 0!==this.long0?this.long0:0,this.lat0=void 0!==this.lat0?this.lat0:0,this.cgb=[],this.cbg=[],this.utg=[],this.gtu=[];var t=this.es/(1+Math.sqrt(1-this.es)),e=t/(2-t),i=e;this.cgb[0]=e*(2+e*(-2/3+e*(e*(116/45+e*(26/45+e*(-2854/675)))-2))),this.cbg[0]=e*(e*(2/3+e*(4/3+e*(-82/45+e*(32/45+e*(4642/4725)))))-2),i*=e,this.cgb[1]=i*(7/3+e*(e*(-227/45+e*(2704/315+e*(2323/945)))-1.6)),this.cbg[1]=i*(5/3+e*(-16/15+e*(-13/9+e*(904/315+e*(-1522/945))))),i*=e,this.cgb[2]=i*(56/15+e*(-136/35+e*(-1262/105+e*(73814/2835)))),this.cbg[2]=i*(-26/15+e*(34/21+e*(1.6+e*(-12686/2835)))),i*=e,this.cgb[3]=i*(4279/630+e*(-332/35+e*(-399572/14175))),this.cbg[3]=i*(1237/630+e*(e*(-24832/14175)-2.4)),i*=e,this.cgb[4]=i*(4174/315+e*(-144838/6237)),this.cbg[4]=i*(-734/315+e*(109598/31185)),i*=e,this.cgb[5]=i*(601676/22275),this.cbg[5]=i*(444337/155925),i=Math.pow(e,2),this.Qn=this.k0/(1+e)*(1+i*(1/4+i*(1/64+i/256))),this.utg[0]=e*(e*(2/3+e*(-37/96+e*(1/360+e*(81/512+e*(-96199/604800)))))-.5),this.gtu[0]=e*(.5+e*(-2/3+e*(5/16+e*(41/180+e*(-127/288+e*(7891/37800)))))),this.utg[1]=i*(-1/48+e*(-1/15+e*(437/1440+e*(-46/105+e*(1118711/3870720))))),this.gtu[1]=i*(13/48+e*(e*(557/1440+e*(281/630+e*(-1983433/1935360)))-.6)),i*=e,this.utg[2]=i*(-17/480+e*(37/840+e*(209/4480+e*(-5569/90720)))),this.gtu[2]=i*(61/240+e*(-103/140+e*(15061/26880+e*(167603/181440)))),i*=e,this.utg[3]=i*(-4397/161280+e*(11/504+e*(830251/7257600))),this.gtu[3]=i*(49561/161280+e*(-179/168+e*(6601661/7257600))),i*=e,this.utg[4]=i*(-4583/161280+e*(108847/3991680)),this.gtu[4]=i*(34729/80640+e*(-3418889/1995840)),i*=e,this.utg[5]=i*(-20648693/638668800),this.gtu[5]=.6650675310896665*i;var s=Je(this.cbg,this.lat0);this.Zb=-this.Qn*(s+Qe(this.gtu,2*s))}function ei(t){var e=rt(t.x-this.long0),i=t.y;i=Je(this.cbg,i);var s=Math.sin(i),a=Math.cos(i),n=Math.sin(e),r=Math.cos(e);i=Math.atan2(s,r*a),e=Math.atan2(n*a,Ue(s,a*r)),e=Xe(Math.tan(e));var o,h,l=Ze(this.gtu,2*i,2*e);return i+=l[0],e+=l[1],Math.abs(e)<=2.623395162778?(o=this.a*(this.Qn*e)+this.x0,h=this.a*(this.Qn*i+this.Zb)+this.y0):(o=1/0,h=1/0),t.x=o,t.y=h,t}function ii(t){var e,i,s=(t.x-this.x0)*(1/this.a),a=(t.y-this.y0)*(1/this.a);if(a=(a-this.Zb)/this.Qn,s/=this.Qn,Math.abs(s)<=2.623395162778){var n=Ze(this.utg,2*a,2*s);a+=n[0],s+=n[1],s=Math.atan(He(s));var r=Math.sin(a),o=Math.cos(a),h=Math.sin(s),l=Math.cos(s);a=Math.atan2(r*l,Ue(h,l*o)),s=Math.atan2(h,l*o),e=rt(s+this.long0),i=Je(this.cgb,a)}else e=1/0,i=1/0;return t.x=e,t.y=i,t}var si=["Extended_Transverse_Mercator","Extended Transverse Mercator","etmerc"],ai={init:ti,forward:ei,inverse:ii,names:si},ni=function(t,e){if(void 0===t){if(t=Math.floor(30*(rt(e)+Math.PI)/Math.PI)+1,t<0)return 0;if(t>60)return 60}return t},ri="etmerc";function oi(){var t=ni(this.zone,this.long0);if(void 0===t)throw new Error("unknown utm zone");this.lat0=0,this.long0=(6*Math.abs(t)-183)*f,this.x0=5e5,this.y0=this.utmSouth?1e7:0,this.k0=.9996,ai.init.apply(this),this.forward=ai.forward,this.inverse=ai.inverse}var hi=["Universal Transverse Mercator System","utm"],li={init:oi,names:hi,dependsOn:ri},ci=function(t,e){return Math.pow((1-t)/(1+t),e)},ui=20;function di(){var t=Math.sin(this.lat0),e=Math.cos(this.lat0);e*=e,this.rc=Math.sqrt(1-this.es)/(1-this.es*t*t),this.C=Math.sqrt(1+this.es*e*e/(1-this.es)),this.phic0=Math.asin(t/this.C),this.ratexp=.5*this.C*this.e,this.K=Math.tan(.5*this.phic0+g)/(Math.pow(Math.tan(.5*this.lat0+g),this.C)*ci(this.e*t,this.ratexp))}function pi(t){var e=t.x,i=t.y;return t.y=2*Math.atan(this.K*Math.pow(Math.tan(.5*i+g),this.C)*ci(this.e*Math.sin(i),this.ratexp))-l,t.x=this.C*e,t}function fi(t){for(var e=1e-14,i=t.x/this.C,s=t.y,a=Math.pow(Math.tan(.5*s+g)/this.K,1/this.C),n=ui;n>0;--n){if(s=2*Math.atan(a*ci(this.e*Math.sin(t.y),-.5*this.e))-l,Math.abs(s-t.y)<e)break;t.y=s}return n?(t.x=i,t.y=s,t):null}var mi=["gauss"],gi={init:di,forward:pi,inverse:fi,names:mi};function vi(){gi.init.apply(this),this.rc&&(this.sinc0=Math.sin(this.phic0),this.cosc0=Math.cos(this.phic0),this.R2=2*this.rc,this.title||(this.title="Oblique Stereographic Alternative"))}function bi(t){var e,i,s,a;return t.x=rt(t.x-this.long0),gi.forward.apply(this,[t]),e=Math.sin(t.y),i=Math.cos(t.y),s=Math.cos(t.x),a=this.k0*this.R2/(1+this.sinc0*e+this.cosc0*i*s),t.x=a*i*Math.sin(t.x),t.y=a*(this.cosc0*e-this.sinc0*i*s),t.x=this.a*t.x+this.x0,t.y=this.a*t.y+this.y0,t}function yi(t){var e,i,s,a,n;if(t.x=(t.x-this.x0)/this.a,t.y=(t.y-this.y0)/this.a,t.x/=this.k0,t.y/=this.k0,n=Math.sqrt(t.x*t.x+t.y*t.y)){var r=2*Math.atan2(n,this.R2);e=Math.sin(r),i=Math.cos(r),a=Math.asin(i*this.sinc0+t.y*e*this.cosc0/n),s=Math.atan2(t.x*e,n*this.cosc0*i-t.y*this.sinc0*e)}else a=this.phic0,s=0;return t.x=s,t.y=a,gi.inverse.apply(this,[t]),t.x=rt(t.x+this.long0),t}var Mi=["Stereographic_North_Pole","Oblique_Stereographic","Polar_Stereographic","sterea","Oblique Stereographic Alternative","Double_Stereographic"],xi={init:vi,forward:bi,inverse:yi,names:Mi};function _i(t,e,i){return e*=i,Math.tan(.5*(l+t))*Math.pow((1-e)/(1+e),.5*i)}function wi(){this.coslat0=Math.cos(this.lat0),this.sinlat0=Math.sin(this.lat0),this.sphere?1===this.k0&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=p&&(this.k0=.5*(1+nt(this.lat0)*Math.sin(this.lat_ts))):(Math.abs(this.coslat0)<=p&&(this.lat0>0?this.con=1:this.con=-1),this.cons=Math.sqrt(Math.pow(1+this.e,1+this.e)*Math.pow(1-this.e,1-this.e)),1===this.k0&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=p&&(this.k0=.5*this.cons*at(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts))/ot(this.e,this.con*this.lat_ts,this.con*Math.sin(this.lat_ts))),this.ms1=at(this.e,this.sinlat0,this.coslat0),this.X0=2*Math.atan(this.ssfn_(this.lat0,this.sinlat0,this.e))-l,this.cosX0=Math.cos(this.X0),this.sinX0=Math.sin(this.X0))}function Si(t){var e,i,s,a,n,r,o=t.x,h=t.y,c=Math.sin(h),u=Math.cos(h),d=rt(o-this.long0);return Math.abs(Math.abs(o-this.long0)-Math.PI)<=p&&Math.abs(h+this.lat0)<=p?(t.x=NaN,t.y=NaN,t):this.sphere?(e=2*this.k0/(1+this.sinlat0*c+this.coslat0*u*Math.cos(d)),t.x=this.a*e*u*Math.sin(d)+this.x0,t.y=this.a*e*(this.coslat0*c-this.sinlat0*u*Math.cos(d))+this.y0,t):(i=2*Math.atan(this.ssfn_(h,c,this.e))-l,a=Math.cos(i),s=Math.sin(i),Math.abs(this.coslat0)<=p?(n=ot(this.e,h*this.con,this.con*c),r=2*this.a*this.k0*n/this.cons,t.x=this.x0+r*Math.sin(o-this.long0),t.y=this.y0-this.con*r*Math.cos(o-this.long0),t):(Math.abs(this.sinlat0)<p?(e=2*this.a*this.k0/(1+a*Math.cos(d)),t.y=e*s):(e=2*this.a*this.k0*this.ms1/(this.cosX0*(1+this.sinX0*s+this.cosX0*a*Math.cos(d))),t.y=e*(this.cosX0*s-this.sinX0*a*Math.cos(d))+this.y0),t.x=e*a*Math.sin(d)+this.x0,t))}function Oi(t){var e,i,s,a,n;t.x-=this.x0,t.y-=this.y0;var r=Math.sqrt(t.x*t.x+t.y*t.y);if(this.sphere){var o=2*Math.atan(r/(2*this.a*this.k0));return e=this.long0,i=this.lat0,r<=p?(t.x=e,t.y=i,t):(i=Math.asin(Math.cos(o)*this.sinlat0+t.y*Math.sin(o)*this.coslat0/r),e=Math.abs(this.coslat0)<p?this.lat0>0?rt(this.long0+Math.atan2(t.x,-1*t.y)):rt(this.long0+Math.atan2(t.x,t.y)):rt(this.long0+Math.atan2(t.x*Math.sin(o),r*this.coslat0*Math.cos(o)-t.y*this.sinlat0*Math.sin(o))),t.x=e,t.y=i,t)}if(Math.abs(this.coslat0)<=p){if(r<=p)return i=this.lat0,e=this.long0,t.x=e,t.y=i,t;t.x*=this.con,t.y*=this.con,s=r*this.cons/(2*this.a*this.k0),i=this.con*ht(this.e,s),e=this.con*rt(this.con*this.long0+Math.atan2(t.x,-1*t.y))}else a=2*Math.atan(r*this.cosX0/(2*this.a*this.k0*this.ms1)),e=this.long0,r<=p?n=this.X0:(n=Math.asin(Math.cos(a)*this.sinX0+t.y*Math.sin(a)*this.cosX0/r),e=rt(this.long0+Math.atan2(t.x*Math.sin(a),r*this.cosX0*Math.cos(a)-t.y*this.sinX0*Math.sin(a)))),i=-1*ht(this.e,Math.tan(.5*(l+n)));return t.x=e,t.y=i,t}var Ii=["stere","Stereographic_South_Pole","Polar Stereographic (variant B)"],Ci={init:wi,forward:Si,inverse:Oi,names:Ii,ssfn_:_i};function Ai(){var t=this.lat0;this.lambda0=this.long0;var e=Math.sin(t),i=this.a,s=this.rf,a=1/s,n=2*a-Math.pow(a,2),r=this.e=Math.sqrt(n);this.R=this.k0*i*Math.sqrt(1-n)/(1-n*Math.pow(e,2)),this.alpha=Math.sqrt(1+n/(1-n)*Math.pow(Math.cos(t),4)),this.b0=Math.asin(e/this.alpha);var o=Math.log(Math.tan(Math.PI/4+this.b0/2)),h=Math.log(Math.tan(Math.PI/4+t/2)),l=Math.log((1+r*e)/(1-r*e));this.K=o-this.alpha*h+this.alpha*r/2*l}function ji(t){var e=Math.log(Math.tan(Math.PI/4-t.y/2)),i=this.e/2*Math.log((1+this.e*Math.sin(t.y))/(1-this.e*Math.sin(t.y))),s=-this.alpha*(e+i)+this.K,a=2*(Math.atan(Math.exp(s))-Math.PI/4),n=this.alpha*(t.x-this.lambda0),r=Math.atan(Math.sin(n)/(Math.sin(this.b0)*Math.tan(a)+Math.cos(this.b0)*Math.cos(n))),o=Math.asin(Math.cos(this.b0)*Math.sin(a)-Math.sin(this.b0)*Math.cos(a)*Math.cos(n));return t.y=this.R/2*Math.log((1+Math.sin(o))/(1-Math.sin(o)))+this.y0,t.x=this.R*r+this.x0,t}function ki(t){var e=t.x-this.x0,i=t.y-this.y0,s=e/this.R,a=2*(Math.atan(Math.exp(i/this.R))-Math.PI/4),n=Math.asin(Math.cos(this.b0)*Math.sin(a)+Math.sin(this.b0)*Math.cos(a)*Math.cos(s)),r=Math.atan(Math.sin(s)/(Math.cos(this.b0)*Math.cos(s)-Math.sin(this.b0)*Math.tan(a))),o=this.lambda0+r/this.alpha,h=0,l=n,c=-1e3,u=0;while(Math.abs(l-c)>1e-7){if(++u>20)return;h=1/this.alpha*(Math.log(Math.tan(Math.PI/4+n/2))-this.K)+this.e*Math.log(Math.tan(Math.PI/4+Math.asin(this.e*Math.sin(l))/2)),c=l,l=2*Math.atan(Math.exp(h))-Math.PI/2}return t.x=o,t.y=l,t}var Ei=["somerc"],Ti={init:Ai,forward:ji,inverse:ki,names:Ei};function Pi(){this.no_off=this.no_off||!1,this.no_rot=this.no_rot||!1,isNaN(this.k0)&&(this.k0=1);var t=Math.sin(this.lat0),e=Math.cos(this.lat0),i=this.e*t;this.bl=Math.sqrt(1+this.es/(1-this.es)*Math.pow(e,4)),this.al=this.a*this.bl*this.k0*Math.sqrt(1-this.es)/(1-i*i);var s,a,n=ot(this.e,this.lat0,t),r=this.bl/e*Math.sqrt((1-this.es)/(1-i*i));if(r*r<1&&(r=1),isNaN(this.longc)){var o=ot(this.e,this.lat1,Math.sin(this.lat1)),h=ot(this.e,this.lat2,Math.sin(this.lat2));this.lat0>=0?this.el=(r+Math.sqrt(r*r-1))*Math.pow(n,this.bl):this.el=(r-Math.sqrt(r*r-1))*Math.pow(n,this.bl);var l=Math.pow(o,this.bl),c=Math.pow(h,this.bl);s=this.el/l,a=.5*(s-1/s);var u=(this.el*this.el-c*l)/(this.el*this.el+c*l),d=(c-l)/(c+l),p=rt(this.long1-this.long2);this.long0=.5*(this.long1+this.long2)-Math.atan(u*Math.tan(.5*this.bl*p)/d)/this.bl,this.long0=rt(this.long0);var f=rt(this.long1-this.long0);this.gamma0=Math.atan(Math.sin(this.bl*f)/a),this.alpha=Math.asin(r*Math.sin(this.gamma0))}else s=this.lat0>=0?r+Math.sqrt(r*r-1):r-Math.sqrt(r*r-1),this.el=s*Math.pow(n,this.bl),a=.5*(s-1/s),this.gamma0=Math.asin(Math.sin(this.alpha)/r),this.long0=this.longc-Math.asin(a*Math.tan(this.gamma0))/this.bl;this.no_off?this.uc=0:this.lat0>=0?this.uc=this.al/this.bl*Math.atan2(Math.sqrt(r*r-1),Math.cos(this.alpha)):this.uc=-1*this.al/this.bl*Math.atan2(Math.sqrt(r*r-1),Math.cos(this.alpha))}function $i(t){var e,i,s,a=t.x,n=t.y,r=rt(a-this.long0);if(Math.abs(Math.abs(n)-l)<=p)s=n>0?-1:1,i=this.al/this.bl*Math.log(Math.tan(g+s*this.gamma0*.5)),e=-1*s*l*this.al/this.bl;else{var o=ot(this.e,n,Math.sin(n)),h=this.el/Math.pow(o,this.bl),c=.5*(h-1/h),u=.5*(h+1/h),d=Math.sin(this.bl*r),f=(c*Math.sin(this.gamma0)-d*Math.cos(this.gamma0))/u;i=Math.abs(Math.abs(f)-1)<=p?Number.POSITIVE_INFINITY:.5*this.al*Math.log((1-f)/(1+f))/this.bl,e=Math.abs(Math.cos(this.bl*r))<=p?this.al*this.bl*r:this.al*Math.atan2(c*Math.cos(this.gamma0)+d*Math.sin(this.gamma0),Math.cos(this.bl*r))/this.bl}return this.no_rot?(t.x=this.x0+e,t.y=this.y0+i):(e-=this.uc,t.x=this.x0+i*Math.cos(this.alpha)+e*Math.sin(this.alpha),t.y=this.y0+e*Math.cos(this.alpha)-i*Math.sin(this.alpha)),t}function Bi(t){var e,i;this.no_rot?(i=t.y-this.y0,e=t.x-this.x0):(i=(t.x-this.x0)*Math.cos(this.alpha)-(t.y-this.y0)*Math.sin(this.alpha),e=(t.y-this.y0)*Math.cos(this.alpha)+(t.x-this.x0)*Math.sin(this.alpha),e+=this.uc);var s=Math.exp(-1*this.bl*i/this.al),a=.5*(s-1/s),n=.5*(s+1/s),r=Math.sin(this.bl*e/this.al),o=(r*Math.cos(this.gamma0)+a*Math.sin(this.gamma0))/n,h=Math.pow(this.el/Math.sqrt((1+o)/(1-o)),1/this.bl);return Math.abs(o-1)<p?(t.x=this.long0,t.y=l):Math.abs(o+1)<p?(t.x=this.long0,t.y=-1*l):(t.y=ht(this.e,h),t.x=rt(this.long0-Math.atan2(a*Math.cos(this.gamma0)-r*Math.sin(this.gamma0),Math.cos(this.bl*e/this.al))/this.bl)),t}var Di=["Hotine_Oblique_Mercator","Hotine Oblique Mercator","Hotine_Oblique_Mercator_Azimuth_Natural_Origin","Hotine_Oblique_Mercator_Azimuth_Center","omerc"],Li={init:Pi,forward:$i,inverse:Bi,names:Di};function Ni(){if(this.lat2||(this.lat2=this.lat1),this.k0||(this.k0=1),this.x0=this.x0||0,this.y0=this.y0||0,!(Math.abs(this.lat1+this.lat2)<p)){var t=this.b/this.a;this.e=Math.sqrt(1-t*t);var e=Math.sin(this.lat1),i=Math.cos(this.lat1),s=at(this.e,e,i),a=ot(this.e,this.lat1,e),n=Math.sin(this.lat2),r=Math.cos(this.lat2),o=at(this.e,n,r),h=ot(this.e,this.lat2,n),l=ot(this.e,this.lat0,Math.sin(this.lat0));Math.abs(this.lat1-this.lat2)>p?this.ns=Math.log(s/o)/Math.log(a/h):this.ns=e,isNaN(this.ns)&&(this.ns=e),this.f0=s/(this.ns*Math.pow(a,this.ns)),this.rh=this.a*this.f0*Math.pow(l,this.ns),this.title||(this.title="Lambert Conformal Conic")}}function Ri(t){var e=t.x,i=t.y;Math.abs(2*Math.abs(i)-Math.PI)<=p&&(i=nt(i)*(l-2*p));var s,a,n=Math.abs(Math.abs(i)-l);if(n>p)s=ot(this.e,i,Math.sin(i)),a=this.a*this.f0*Math.pow(s,this.ns);else{if(n=i*this.ns,n<=0)return null;a=0}var r=this.ns*rt(e-this.long0);return t.x=this.k0*(a*Math.sin(r))+this.x0,t.y=this.k0*(this.rh-a*Math.cos(r))+this.y0,t}function Vi(t){var e,i,s,a,n,r=(t.x-this.x0)/this.k0,o=this.rh-(t.y-this.y0)/this.k0;this.ns>0?(e=Math.sqrt(r*r+o*o),i=1):(e=-Math.sqrt(r*r+o*o),i=-1);var h=0;if(0!==e&&(h=Math.atan2(i*r,i*o)),0!==e||this.ns>0){if(i=1/this.ns,s=Math.pow(e/(this.a*this.f0),i),a=ht(this.e,s),-9999===a)return null}else a=-l;return n=rt(h/this.ns+this.long0),t.x=n,t.y=a,t}var Fi=["Lambert Tangential Conformal Conic Projection","Lambert_Conformal_Conic","Lambert_Conformal_Conic_2SP","lcc"],zi={init:Ni,forward:Ri,inverse:Vi,names:Fi};function qi(){this.a=6377397.155,this.es=.006674372230614,this.e=Math.sqrt(this.es),this.lat0||(this.lat0=.863937979737193),this.long0||(this.long0=.4334234309119251),this.k0||(this.k0=.9999),this.s45=.785398163397448,this.s90=2*this.s45,this.fi0=this.lat0,this.e2=this.es,this.e=Math.sqrt(this.e2),this.alfa=Math.sqrt(1+this.e2*Math.pow(Math.cos(this.fi0),4)/(1-this.e2)),this.uq=1.04216856380474,this.u0=Math.asin(Math.sin(this.fi0)/this.alfa),this.g=Math.pow((1+this.e*Math.sin(this.fi0))/(1-this.e*Math.sin(this.fi0)),this.alfa*this.e/2),this.k=Math.tan(this.u0/2+this.s45)/Math.pow(Math.tan(this.fi0/2+this.s45),this.alfa)*this.g,this.k1=this.k0,this.n0=this.a*Math.sqrt(1-this.e2)/(1-this.e2*Math.pow(Math.sin(this.fi0),2)),this.s0=1.37008346281555,this.n=Math.sin(this.s0),this.ro0=this.k1*this.n0/Math.tan(this.s0),this.ad=this.s90-this.uq}function Gi(t){var e,i,s,a,n,r,o,h=t.x,l=t.y,c=rt(h-this.long0);return e=Math.pow((1+this.e*Math.sin(l))/(1-this.e*Math.sin(l)),this.alfa*this.e/2),i=2*(Math.atan(this.k*Math.pow(Math.tan(l/2+this.s45),this.alfa)/e)-this.s45),s=-c*this.alfa,a=Math.asin(Math.cos(this.ad)*Math.sin(i)+Math.sin(this.ad)*Math.cos(i)*Math.cos(s)),n=Math.asin(Math.cos(i)*Math.sin(s)/Math.cos(a)),r=this.n*n,o=this.ro0*Math.pow(Math.tan(this.s0/2+this.s45),this.n)/Math.pow(Math.tan(a/2+this.s45),this.n),t.y=o*Math.cos(r)/1,t.x=o*Math.sin(r)/1,this.czech||(t.y*=-1,t.x*=-1),t}function Wi(t){var e,i,s,a,n,r,o,h,l=t.x;t.x=t.y,t.y=l,this.czech||(t.y*=-1,t.x*=-1),r=Math.sqrt(t.x*t.x+t.y*t.y),n=Math.atan2(t.y,t.x),a=n/Math.sin(this.s0),s=2*(Math.atan(Math.pow(this.ro0/r,1/this.n)*Math.tan(this.s0/2+this.s45))-this.s45),e=Math.asin(Math.cos(this.ad)*Math.sin(s)-Math.sin(this.ad)*Math.cos(s)*Math.cos(a)),i=Math.asin(Math.cos(s)*Math.sin(a)/Math.cos(e)),t.x=this.long0-i/this.alfa,o=e,h=0;var c=0;do{t.y=2*(Math.atan(Math.pow(this.k,-1/this.alfa)*Math.pow(Math.tan(e/2+this.s45),1/this.alfa)*Math.pow((1+this.e*Math.sin(o))/(1-this.e*Math.sin(o)),this.e/2))-this.s45),Math.abs(o-t.y)<1e-10&&(h=1),o=t.y,c+=1}while(0===h&&c<15);return c>=15?null:t}var Hi=["Krovak","krovak"],Ui={init:qi,forward:Gi,inverse:Wi,names:Hi},Ki=function(t,e,i,s,a){return t*a-e*Math.sin(2*a)+i*Math.sin(4*a)-s*Math.sin(6*a)},Xi=function(t){return 1-.25*t*(1+t/16*(3+1.25*t))},Ji=function(t){return.375*t*(1+.25*t*(1+.46875*t))},Qi=function(t){return.05859375*t*t*(1+.75*t)},Yi=function(t){return t*t*t*(35/3072)},Zi=function(t,e,i){var s=e*i;return t/Math.sqrt(1-s*s)},ts=function(t){return Math.abs(t)<l?t:t-nt(t)*Math.PI},es=function(t,e,i,s,a){var n,r;n=t/e;for(var o=0;o<15;o++)if(r=(t-(e*n-i*Math.sin(2*n)+s*Math.sin(4*n)-a*Math.sin(6*n)))/(e-2*i*Math.cos(2*n)+4*s*Math.cos(4*n)-6*a*Math.cos(6*n)),n+=r,Math.abs(r)<=1e-10)return n;return NaN};function is(){this.sphere||(this.e0=Xi(this.es),this.e1=Ji(this.es),this.e2=Qi(this.es),this.e3=Yi(this.es),this.ml0=this.a*Ki(this.e0,this.e1,this.e2,this.e3,this.lat0))}function ss(t){var e,i,s=t.x,a=t.y;if(s=rt(s-this.long0),this.sphere)e=this.a*Math.asin(Math.cos(a)*Math.sin(s)),i=this.a*(Math.atan2(Math.tan(a),Math.cos(s))-this.lat0);else{var n=Math.sin(a),r=Math.cos(a),o=Zi(this.a,this.e,n),h=Math.tan(a)*Math.tan(a),l=s*Math.cos(a),c=l*l,u=this.es*r*r/(1-this.es),d=this.a*Ki(this.e0,this.e1,this.e2,this.e3,a);e=o*l*(1-c*h*(1/6-(8-h+8*u)*c/120)),i=d-this.ml0+o*n/r*c*(.5+(5-h+6*u)*c/24)}return t.x=e+this.x0,t.y=i+this.y0,t}function as(t){t.x-=this.x0,t.y-=this.y0;var e,i,s=t.x/this.a,a=t.y/this.a;if(this.sphere){var n=a+this.lat0;e=Math.asin(Math.sin(n)*Math.cos(s)),i=Math.atan2(Math.tan(s),Math.cos(n))}else{var r=this.ml0/this.a+a,o=es(r,this.e0,this.e1,this.e2,this.e3);if(Math.abs(Math.abs(o)-l)<=p)return t.x=this.long0,t.y=l,a<0&&(t.y*=-1),t;var h=Zi(this.a,this.e,Math.sin(o)),c=h*h*h/this.a/this.a*(1-this.es),u=Math.pow(Math.tan(o),2),d=s*this.a/h,f=d*d;e=o-h*Math.tan(o)/c*d*d*(.5-(1+3*u)*d*d/24),i=d*(1-f*(u/3+(1+3*u)*u*f/15))/Math.cos(o)}return t.x=rt(i+this.long0),t.y=ts(e),t}var ns=["Cassini","Cassini_Soldner","cass"],rs={init:is,forward:ss,inverse:as,names:ns},os=function(t,e){var i;return t>1e-7?(i=t*e,(1-t*t)*(e/(1-i*i)-.5/t*Math.log((1-i)/(1+i)))):2*e},hs=1,ls=2,cs=3,us=4;function ds(){var t,e=Math.abs(this.lat0);if(Math.abs(e-l)<p?this.mode=this.lat0<0?this.S_POLE:this.N_POLE:Math.abs(e)<p?this.mode=this.EQUIT:this.mode=this.OBLIQ,this.es>0)switch(this.qp=os(this.e,1),this.mmf=.5/(1-this.es),this.apa=xs(this.es),this.mode){case this.N_POLE:this.dd=1;break;case this.S_POLE:this.dd=1;break;case this.EQUIT:this.rq=Math.sqrt(.5*this.qp),this.dd=1/this.rq,this.xmf=1,this.ymf=.5*this.qp;break;case this.OBLIQ:this.rq=Math.sqrt(.5*this.qp),t=Math.sin(this.lat0),this.sinb1=os(this.e,t)/this.qp,this.cosb1=Math.sqrt(1-this.sinb1*this.sinb1),this.dd=Math.cos(this.lat0)/(Math.sqrt(1-this.es*t*t)*this.rq*this.cosb1),this.ymf=(this.xmf=this.rq)/this.dd,this.xmf*=this.dd;break}else this.mode===this.OBLIQ&&(this.sinph0=Math.sin(this.lat0),this.cosph0=Math.cos(this.lat0))}function ps(t){var e,i,s,a,n,r,o,h,c,u,d=t.x,f=t.y;if(d=rt(d-this.long0),this.sphere){if(n=Math.sin(f),u=Math.cos(f),s=Math.cos(d),this.mode===this.OBLIQ||this.mode===this.EQUIT){if(i=this.mode===this.EQUIT?1+u*s:1+this.sinph0*n+this.cosph0*u*s,i<=p)return null;i=Math.sqrt(2/i),e=i*u*Math.sin(d),i*=this.mode===this.EQUIT?n:this.cosph0*n-this.sinph0*u*s}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(s=-s),Math.abs(f+this.lat0)<p)return null;i=g-.5*f,i=2*(this.mode===this.S_POLE?Math.cos(i):Math.sin(i)),e=i*Math.sin(d),i*=s}}else{switch(o=0,h=0,c=0,s=Math.cos(d),a=Math.sin(d),n=Math.sin(f),r=os(this.e,n),this.mode!==this.OBLIQ&&this.mode!==this.EQUIT||(o=r/this.qp,h=Math.sqrt(1-o*o)),this.mode){case this.OBLIQ:c=1+this.sinb1*o+this.cosb1*h*s;break;case this.EQUIT:c=1+h*s;break;case this.N_POLE:c=l+f,r=this.qp-r;break;case this.S_POLE:c=f-l,r=this.qp+r;break}if(Math.abs(c)<p)return null;switch(this.mode){case this.OBLIQ:case this.EQUIT:c=Math.sqrt(2/c),i=this.mode===this.OBLIQ?this.ymf*c*(this.cosb1*o-this.sinb1*h*s):(c=Math.sqrt(2/(1+h*s)))*o*this.ymf,e=this.xmf*c*h*a;break;case this.N_POLE:case this.S_POLE:r>=0?(e=(c=Math.sqrt(r))*a,i=s*(this.mode===this.S_POLE?c:-c)):e=i=0;break}}return t.x=this.a*e+this.x0,t.y=this.a*i+this.y0,t}function fs(t){t.x-=this.x0,t.y-=this.y0;var e,i,s,a,n,r,o,h=t.x/this.a,c=t.y/this.a;if(this.sphere){var u,d=0,f=0;if(u=Math.sqrt(h*h+c*c),i=.5*u,i>1)return null;switch(i=2*Math.asin(i),this.mode!==this.OBLIQ&&this.mode!==this.EQUIT||(f=Math.sin(i),d=Math.cos(i)),this.mode){case this.EQUIT:i=Math.abs(u)<=p?0:Math.asin(c*f/u),h*=f,c=d*u;break;case this.OBLIQ:i=Math.abs(u)<=p?this.lat0:Math.asin(d*this.sinph0+c*f*this.cosph0/u),h*=f*this.cosph0,c=(d-Math.sin(i)*this.sinph0)*u;break;case this.N_POLE:c=-c,i=l-i;break;case this.S_POLE:i-=l;break}e=0!==c||this.mode!==this.EQUIT&&this.mode!==this.OBLIQ?Math.atan2(h,c):0}else{if(o=0,this.mode===this.OBLIQ||this.mode===this.EQUIT){if(h/=this.dd,c*=this.dd,r=Math.sqrt(h*h+c*c),r<p)return t.x=this.long0,t.y=this.lat0,t;a=2*Math.asin(.5*r/this.rq),s=Math.cos(a),h*=a=Math.sin(a),this.mode===this.OBLIQ?(o=s*this.sinb1+c*a*this.cosb1/r,n=this.qp*o,c=r*this.cosb1*s-c*this.sinb1*a):(o=c*a/r,n=this.qp*o,c=r*s)}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(c=-c),n=h*h+c*c,!n)return t.x=this.long0,t.y=this.lat0,t;o=1-n/this.qp,this.mode===this.S_POLE&&(o=-o)}e=Math.atan2(h,c),i=_s(Math.asin(o),this.apa)}return t.x=rt(this.long0+e),t.y=i,t}var ms=.3333333333333333,gs=.17222222222222222,vs=.10257936507936508,bs=.06388888888888888,ys=.0664021164021164,Ms=.016415012942191543;function xs(t){var e,i=[];return i[0]=t*ms,e=t*t,i[0]+=e*gs,i[1]=e*bs,e*=t,i[0]+=e*vs,i[1]+=e*ys,i[2]=e*Ms,i}function _s(t,e){var i=t+t;return t+e[0]*Math.sin(i)+e[1]*Math.sin(i+i)+e[2]*Math.sin(i+i+i)}var ws=["Lambert Azimuthal Equal Area","Lambert_Azimuthal_Equal_Area","laea"],Ss={init:ds,forward:ps,inverse:fs,names:ws,S_POLE:hs,N_POLE:ls,EQUIT:cs,OBLIQ:us},Os=function(t){return Math.abs(t)>1&&(t=t>1?1:-1),Math.asin(t)};function Is(){Math.abs(this.lat1+this.lat2)<p||(this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e3=Math.sqrt(this.es),this.sin_po=Math.sin(this.lat1),this.cos_po=Math.cos(this.lat1),this.t1=this.sin_po,this.con=this.sin_po,this.ms1=at(this.e3,this.sin_po,this.cos_po),this.qs1=os(this.e3,this.sin_po,this.cos_po),this.sin_po=Math.sin(this.lat2),this.cos_po=Math.cos(this.lat2),this.t2=this.sin_po,this.ms2=at(this.e3,this.sin_po,this.cos_po),this.qs2=os(this.e3,this.sin_po,this.cos_po),this.sin_po=Math.sin(this.lat0),this.cos_po=Math.cos(this.lat0),this.t3=this.sin_po,this.qs0=os(this.e3,this.sin_po,this.cos_po),Math.abs(this.lat1-this.lat2)>p?this.ns0=(this.ms1*this.ms1-this.ms2*this.ms2)/(this.qs2-this.qs1):this.ns0=this.con,this.c=this.ms1*this.ms1+this.ns0*this.qs1,this.rh=this.a*Math.sqrt(this.c-this.ns0*this.qs0)/this.ns0)}function Cs(t){var e=t.x,i=t.y;this.sin_phi=Math.sin(i),this.cos_phi=Math.cos(i);var s=os(this.e3,this.sin_phi,this.cos_phi),a=this.a*Math.sqrt(this.c-this.ns0*s)/this.ns0,n=this.ns0*rt(e-this.long0),r=a*Math.sin(n)+this.x0,o=this.rh-a*Math.cos(n)+this.y0;return t.x=r,t.y=o,t}function As(t){var e,i,s,a,n,r;return t.x-=this.x0,t.y=this.rh-t.y+this.y0,this.ns0>=0?(e=Math.sqrt(t.x*t.x+t.y*t.y),s=1):(e=-Math.sqrt(t.x*t.x+t.y*t.y),s=-1),a=0,0!==e&&(a=Math.atan2(s*t.x,s*t.y)),s=e*this.ns0/this.a,this.sphere?r=Math.asin((this.c-s*s)/(2*this.ns0)):(i=(this.c-s*s)/this.ns0,r=this.phi1z(this.e3,i)),n=rt(a/this.ns0+this.long0),t.x=n,t.y=r,t}function js(t,e){var i,s,a,n,r,o=Os(.5*e);if(t<p)return o;for(var h=t*t,l=1;l<=25;l++)if(i=Math.sin(o),s=Math.cos(o),a=t*i,n=1-a*a,r=.5*n*n/s*(e/(1-h)-i/n+.5/t*Math.log((1-a)/(1+a))),o+=r,Math.abs(r)<=1e-7)return o;return null}var ks=["Albers_Conic_Equal_Area","Albers","aea"],Es={init:Is,forward:Cs,inverse:As,names:ks,phi1z:js};function Ts(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0),this.infinity_dist=1e3*this.a,this.rc=1}function Ps(t){var e,i,s,a,n,r,o,h,l=t.x,c=t.y;return s=rt(l-this.long0),e=Math.sin(c),i=Math.cos(c),a=Math.cos(s),r=this.sin_p14*e+this.cos_p14*i*a,n=1,r>0||Math.abs(r)<=p?(o=this.x0+this.a*n*i*Math.sin(s)/r,h=this.y0+this.a*n*(this.cos_p14*e-this.sin_p14*i*a)/r):(o=this.x0+this.infinity_dist*i*Math.sin(s),h=this.y0+this.infinity_dist*(this.cos_p14*e-this.sin_p14*i*a)),t.x=o,t.y=h,t}function $s(t){var e,i,s,a,n,r;return t.x=(t.x-this.x0)/this.a,t.y=(t.y-this.y0)/this.a,t.x/=this.k0,t.y/=this.k0,(e=Math.sqrt(t.x*t.x+t.y*t.y))?(a=Math.atan2(e,this.rc),i=Math.sin(a),s=Math.cos(a),r=Os(s*this.sin_p14+t.y*i*this.cos_p14/e),n=Math.atan2(t.x*i,e*this.cos_p14*s-t.y*this.sin_p14*i),n=rt(this.long0+n)):(r=this.phic0,n=0),t.x=n,t.y=r,t}var Bs=["gnom"],Ds={init:Ts,forward:Ps,inverse:$s,names:Bs},Ls=function(t,e){var i=1-(1-t*t)/(2*t)*Math.log((1-t)/(1+t));if(Math.abs(Math.abs(e)-i)<1e-6)return e<0?-1*l:l;for(var s,a,n,r,o=Math.asin(.5*e),h=0;h<30;h++)if(a=Math.sin(o),n=Math.cos(o),r=t*a,s=Math.pow(1-r*r,2)/(2*n)*(e/(1-t*t)-a/(1-r*r)+.5/t*Math.log((1-r)/(1+r))),o+=s,Math.abs(s)<=1e-10)return o;return NaN};function Ns(){this.sphere||(this.k0=at(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)))}function Rs(t){var e,i,s=t.x,a=t.y,n=rt(s-this.long0);if(this.sphere)e=this.x0+this.a*n*Math.cos(this.lat_ts),i=this.y0+this.a*Math.sin(a)/Math.cos(this.lat_ts);else{var r=os(this.e,Math.sin(a));e=this.x0+this.a*this.k0*n,i=this.y0+this.a*r*.5/this.k0}return t.x=e,t.y=i,t}function Vs(t){var e,i;return t.x-=this.x0,t.y-=this.y0,this.sphere?(e=rt(this.long0+t.x/this.a/Math.cos(this.lat_ts)),i=Math.asin(t.y/this.a*Math.cos(this.lat_ts))):(i=Ls(this.e,2*t.y*this.k0/this.a),e=rt(this.long0+t.x/(this.a*this.k0))),t.x=e,t.y=i,t}var Fs=["cea"],zs={init:Ns,forward:Rs,inverse:Vs,names:Fs};function qs(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Equidistant Cylindrical (Plate Carre)",this.rc=Math.cos(this.lat_ts)}function Gs(t){var e=t.x,i=t.y,s=rt(e-this.long0),a=ts(i-this.lat0);return t.x=this.x0+this.a*s*this.rc,t.y=this.y0+this.a*a,t}function Ws(t){var e=t.x,i=t.y;return t.x=rt(this.long0+(e-this.x0)/(this.a*this.rc)),t.y=ts(this.lat0+(i-this.y0)/this.a),t}var Hs=["Equirectangular","Equidistant_Cylindrical","eqc"],Us={init:qs,forward:Gs,inverse:Ws,names:Hs},Ks=20;function Xs(){this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=Xi(this.es),this.e1=Ji(this.es),this.e2=Qi(this.es),this.e3=Yi(this.es),this.ml0=this.a*Ki(this.e0,this.e1,this.e2,this.e3,this.lat0)}function Js(t){var e,i,s,a=t.x,n=t.y,r=rt(a-this.long0);if(s=r*Math.sin(n),this.sphere)Math.abs(n)<=p?(e=this.a*r,i=-1*this.a*this.lat0):(e=this.a*Math.sin(s)/Math.tan(n),i=this.a*(ts(n-this.lat0)+(1-Math.cos(s))/Math.tan(n)));else if(Math.abs(n)<=p)e=this.a*r,i=-1*this.ml0;else{var o=Zi(this.a,this.e,Math.sin(n))/Math.tan(n);e=o*Math.sin(s),i=this.a*Ki(this.e0,this.e1,this.e2,this.e3,n)-this.ml0+o*(1-Math.cos(s))}return t.x=e+this.x0,t.y=i+this.y0,t}function Qs(t){var e,i,s,a,n,r,o,h,l;if(s=t.x-this.x0,a=t.y-this.y0,this.sphere)if(Math.abs(a+this.a*this.lat0)<=p)e=rt(s/this.a+this.long0),i=0;else{var c;for(r=this.lat0+a/this.a,o=s*s/this.a/this.a+r*r,h=r,n=Ks;n;--n)if(c=Math.tan(h),l=-1*(r*(h*c+1)-h-.5*(h*h+o)*c)/((h-r)/c-1),h+=l,Math.abs(l)<=p){i=h;break}e=rt(this.long0+Math.asin(s*Math.tan(h)/this.a)/Math.sin(i))}else if(Math.abs(a+this.ml0)<=p)i=0,e=rt(this.long0+s/this.a);else{var u,d,f,m,g;for(r=(this.ml0+a)/this.a,o=s*s/this.a/this.a+r*r,h=r,n=Ks;n;--n)if(g=this.e*Math.sin(h),u=Math.sqrt(1-g*g)*Math.tan(h),d=this.a*Ki(this.e0,this.e1,this.e2,this.e3,h),f=this.e0-2*this.e1*Math.cos(2*h)+4*this.e2*Math.cos(4*h)-6*this.e3*Math.cos(6*h),m=d/this.a,l=(r*(u*m+1)-m-.5*u*(m*m+o))/(this.es*Math.sin(2*h)*(m*m+o-2*r*m)/(4*u)+(r-m)*(u*f-2/Math.sin(2*h))-f),h-=l,Math.abs(l)<=p){i=h;break}u=Math.sqrt(1-this.es*Math.pow(Math.sin(i),2))*Math.tan(i),e=rt(this.long0+Math.asin(s*u/this.a)/Math.sin(i))}return t.x=e,t.y=i,t}var Ys=["Polyconic","poly"],Zs={init:Xs,forward:Js,inverse:Qs,names:Ys};function ta(){this.A=[],this.A[1]=.6399175073,this.A[2]=-.1358797613,this.A[3]=.063294409,this.A[4]=-.02526853,this.A[5]=.0117879,this.A[6]=-.0055161,this.A[7]=.0026906,this.A[8]=-.001333,this.A[9]=67e-5,this.A[10]=-34e-5,this.B_re=[],this.B_im=[],this.B_re[1]=.7557853228,this.B_im[1]=0,this.B_re[2]=.249204646,this.B_im[2]=.003371507,this.B_re[3]=-.001541739,this.B_im[3]=.04105856,this.B_re[4]=-.10162907,this.B_im[4]=.01727609,this.B_re[5]=-.26623489,this.B_im[5]=-.36249218,this.B_re[6]=-.6870983,this.B_im[6]=-1.1651967,this.C_re=[],this.C_im=[],this.C_re[1]=1.3231270439,this.C_im[1]=0,this.C_re[2]=-.577245789,this.C_im[2]=-.007809598,this.C_re[3]=.508307513,this.C_im[3]=-.112208952,this.C_re[4]=-.15094762,this.C_im[4]=.18200602,this.C_re[5]=1.01418179,this.C_im[5]=1.64497696,this.C_re[6]=1.9660549,this.C_im[6]=2.5127645,this.D=[],this.D[1]=1.5627014243,this.D[2]=.5185406398,this.D[3]=-.03333098,this.D[4]=-.1052906,this.D[5]=-.0368594,this.D[6]=.007317,this.D[7]=.0122,this.D[8]=.00394,this.D[9]=-.0013}function ea(t){var e,i=t.x,s=t.y,a=s-this.lat0,n=i-this.long0,r=a/h*1e-5,o=n,l=1,c=0;for(e=1;e<=10;e++)l*=r,c+=this.A[e]*l;var u,d,p=c,f=o,m=1,g=0,v=0,b=0;for(e=1;e<=6;e++)u=m*p-g*f,d=g*p+m*f,m=u,g=d,v=v+this.B_re[e]*m-this.B_im[e]*g,b=b+this.B_im[e]*m+this.B_re[e]*g;return t.x=b*this.a+this.x0,t.y=v*this.a+this.y0,t}function ia(t){var e,i,s,a=t.x,n=t.y,r=a-this.x0,o=n-this.y0,l=o/this.a,c=r/this.a,u=1,d=0,p=0,f=0;for(e=1;e<=6;e++)i=u*l-d*c,s=d*l+u*c,u=i,d=s,p=p+this.C_re[e]*u-this.C_im[e]*d,f=f+this.C_im[e]*u+this.C_re[e]*d;for(var m=0;m<this.iterations;m++){var g,v,b=p,y=f,M=l,x=c;for(e=2;e<=6;e++)g=b*p-y*f,v=y*p+b*f,b=g,y=v,M+=(e-1)*(this.B_re[e]*b-this.B_im[e]*y),x+=(e-1)*(this.B_im[e]*b+this.B_re[e]*y);b=1,y=0;var _=this.B_re[1],w=this.B_im[1];for(e=2;e<=6;e++)g=b*p-y*f,v=y*p+b*f,b=g,y=v,_+=e*(this.B_re[e]*b-this.B_im[e]*y),w+=e*(this.B_im[e]*b+this.B_re[e]*y);var S=_*_+w*w;p=(M*_+x*w)/S,f=(x*_-M*w)/S}var O=p,I=f,C=1,A=0;for(e=1;e<=9;e++)C*=O,A+=this.D[e]*C;var j=this.lat0+A*h*1e5,k=this.long0+I;return t.x=k,t.y=j,t}var sa=["New_Zealand_Map_Grid","nzmg"],aa={init:ta,forward:ea,inverse:ia,names:sa};function na(){}function ra(t){var e=t.x,i=t.y,s=rt(e-this.long0),a=this.x0+this.a*s,n=this.y0+this.a*Math.log(Math.tan(Math.PI/4+i/2.5))*1.25;return t.x=a,t.y=n,t}function oa(t){t.x-=this.x0,t.y-=this.y0;var e=rt(this.long0+t.x/this.a),i=2.5*(Math.atan(Math.exp(.8*t.y/this.a))-Math.PI/4);return t.x=e,t.y=i,t}var ha=["Miller_Cylindrical","mill"],la={init:na,forward:ra,inverse:oa,names:ha},ca=20;function ua(){this.sphere?(this.n=1,this.m=0,this.es=0,this.C_y=Math.sqrt((this.m+1)/this.n),this.C_x=this.C_y/(this.m+1)):this.en=Le(this.es)}function da(t){var e,i,s=t.x,a=t.y;if(s=rt(s-this.long0),this.sphere){if(this.m)for(var n=this.n*Math.sin(a),r=ca;r;--r){var o=(this.m*a+Math.sin(a)-n)/(this.m+Math.cos(a));if(a-=o,Math.abs(o)<p)break}else a=1!==this.n?Math.asin(this.n*Math.sin(a)):a;e=this.a*this.C_x*s*(this.m+Math.cos(a)),i=this.a*this.C_y*a}else{var h=Math.sin(a),l=Math.cos(a);i=this.a*Ne(a,h,l,this.en),e=this.a*s*l/Math.sqrt(1-this.es*h*h)}return t.x=e,t.y=i,t}function pa(t){var e,i,s,a;return t.x-=this.x0,s=t.x/this.a,t.y-=this.y0,e=t.y/this.a,this.sphere?(e/=this.C_y,s/=this.C_x*(this.m+Math.cos(e)),this.m?e=Os((this.m*e+Math.sin(e))/this.n):1!==this.n&&(e=Os(Math.sin(e)/this.n)),s=rt(s+this.long0),e=ts(e)):(e=Ve(t.y/this.a,this.es,this.en),a=Math.abs(e),a<l?(a=Math.sin(e),i=this.long0+t.x*Math.sqrt(1-this.es*a*a)/(this.a*Math.cos(e)),s=rt(i)):a-p<l&&(s=this.long0)),t.x=s,t.y=e,t}var fa=["Sinusoidal","sinu"],ma={init:ua,forward:da,inverse:pa,names:fa};function ga(){}function va(t){var e=t.x,i=t.y,s=rt(e-this.long0),a=i,n=Math.PI*Math.sin(i);while(1){var r=-(a+Math.sin(a)-n)/(1+Math.cos(a));if(a+=r,Math.abs(r)<p)break}a/=2,Math.PI/2-Math.abs(i)<p&&(s=0);var o=.900316316158*this.a*s*Math.cos(a)+this.x0,h=1.4142135623731*this.a*Math.sin(a)+this.y0;return t.x=o,t.y=h,t}function ba(t){var e,i;t.x-=this.x0,t.y-=this.y0,i=t.y/(1.4142135623731*this.a),Math.abs(i)>.999999999999&&(i=.999999999999),e=Math.asin(i);var s=rt(this.long0+t.x/(.900316316158*this.a*Math.cos(e)));s<-Math.PI&&(s=-Math.PI),s>Math.PI&&(s=Math.PI),i=(2*e+Math.sin(2*e))/Math.PI,Math.abs(i)>1&&(i=1);var a=Math.asin(i);return t.x=s,t.y=a,t}var ya=["Mollweide","moll"],Ma={init:ga,forward:va,inverse:ba,names:ya};function xa(){Math.abs(this.lat1+this.lat2)<p||(this.lat2=this.lat2||this.lat1,this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=Xi(this.es),this.e1=Ji(this.es),this.e2=Qi(this.es),this.e3=Yi(this.es),this.sinphi=Math.sin(this.lat1),this.cosphi=Math.cos(this.lat1),this.ms1=at(this.e,this.sinphi,this.cosphi),this.ml1=Ki(this.e0,this.e1,this.e2,this.e3,this.lat1),Math.abs(this.lat1-this.lat2)<p?this.ns=this.sinphi:(this.sinphi=Math.sin(this.lat2),this.cosphi=Math.cos(this.lat2),this.ms2=at(this.e,this.sinphi,this.cosphi),this.ml2=Ki(this.e0,this.e1,this.e2,this.e3,this.lat2),this.ns=(this.ms1-this.ms2)/(this.ml2-this.ml1)),this.g=this.ml1+this.ms1/this.ns,this.ml0=Ki(this.e0,this.e1,this.e2,this.e3,this.lat0),this.rh=this.a*(this.g-this.ml0))}function _a(t){var e,i=t.x,s=t.y;if(this.sphere)e=this.a*(this.g-s);else{var a=Ki(this.e0,this.e1,this.e2,this.e3,s);e=this.a*(this.g-a)}var n=this.ns*rt(i-this.long0),r=this.x0+e*Math.sin(n),o=this.y0+this.rh-e*Math.cos(n);return t.x=r,t.y=o,t}function wa(t){var e,i,s,a;t.x-=this.x0,t.y=this.rh-t.y+this.y0,this.ns>=0?(i=Math.sqrt(t.x*t.x+t.y*t.y),e=1):(i=-Math.sqrt(t.x*t.x+t.y*t.y),e=-1);var n=0;if(0!==i&&(n=Math.atan2(e*t.x,e*t.y)),this.sphere)return a=rt(this.long0+n/this.ns),s=ts(this.g-i/this.a),t.x=a,t.y=s,t;var r=this.g-i/this.a;return s=es(r,this.e0,this.e1,this.e2,this.e3),a=rt(this.long0+n/this.ns),t.x=a,t.y=s,t}var Sa=["Equidistant_Conic","eqdc"],Oa={init:xa,forward:_a,inverse:wa,names:Sa};function Ia(){this.R=this.a}function Ca(t){var e,i,s=t.x,a=t.y,n=rt(s-this.long0);Math.abs(a)<=p&&(e=this.x0+this.R*n,i=this.y0);var r=Os(2*Math.abs(a/Math.PI));(Math.abs(n)<=p||Math.abs(Math.abs(a)-l)<=p)&&(e=this.x0,i=a>=0?this.y0+Math.PI*this.R*Math.tan(.5*r):this.y0+Math.PI*this.R*-Math.tan(.5*r));var o=.5*Math.abs(Math.PI/n-n/Math.PI),h=o*o,c=Math.sin(r),u=Math.cos(r),d=u/(c+u-1),f=d*d,m=d*(2/c-1),g=m*m,v=Math.PI*this.R*(o*(d-g)+Math.sqrt(h*(d-g)*(d-g)-(g+h)*(f-g)))/(g+h);n<0&&(v=-v),e=this.x0+v;var b=h+d;return v=Math.PI*this.R*(m*b-o*Math.sqrt((g+h)*(h+1)-b*b))/(g+h),i=a>=0?this.y0+v:this.y0-v,t.x=e,t.y=i,t}function Aa(t){var e,i,s,a,n,r,o,h,l,c,u,d,f;return t.x-=this.x0,t.y-=this.y0,u=Math.PI*this.R,s=t.x/u,a=t.y/u,n=s*s+a*a,r=-Math.abs(a)*(1+n),o=r-2*a*a+s*s,h=-2*r+1+2*a*a+n*n,f=a*a/h+(2*o*o*o/h/h/h-9*r*o/h/h)/27,l=(r-o*o/3/h)/h,c=2*Math.sqrt(-l/3),u=3*f/l/c,Math.abs(u)>1&&(u=u>=0?1:-1),d=Math.acos(u)/3,i=t.y>=0?(-c*Math.cos(d+Math.PI/3)-o/3/h)*Math.PI:-(-c*Math.cos(d+Math.PI/3)-o/3/h)*Math.PI,e=Math.abs(s)<p?this.long0:rt(this.long0+Math.PI*(n-1+Math.sqrt(1+2*(s*s-a*a)+n*n))/2/s),t.x=e,t.y=i,t}var ja=["Van_der_Grinten_I","VanDerGrinten","vandg"],ka={init:Ia,forward:Ca,inverse:Aa,names:ja};function Ea(){this.sin_p12=Math.sin(this.lat0),this.cos_p12=Math.cos(this.lat0)}function Ta(t){var e,i,s,a,n,r,o,h,c,u,d,f,m,g,v,b,y,M,x,_,w,S,O,I=t.x,C=t.y,A=Math.sin(t.y),j=Math.cos(t.y),k=rt(I-this.long0);return this.sphere?Math.abs(this.sin_p12-1)<=p?(t.x=this.x0+this.a*(l-C)*Math.sin(k),t.y=this.y0-this.a*(l-C)*Math.cos(k),t):Math.abs(this.sin_p12+1)<=p?(t.x=this.x0+this.a*(l+C)*Math.sin(k),t.y=this.y0+this.a*(l+C)*Math.cos(k),t):(M=this.sin_p12*A+this.cos_p12*j*Math.cos(k),b=Math.acos(M),y=b?b/Math.sin(b):1,t.x=this.x0+this.a*y*j*Math.sin(k),t.y=this.y0+this.a*y*(this.cos_p12*A-this.sin_p12*j*Math.cos(k)),t):(e=Xi(this.es),i=Ji(this.es),s=Qi(this.es),a=Yi(this.es),Math.abs(this.sin_p12-1)<=p?(n=this.a*Ki(e,i,s,a,l),r=this.a*Ki(e,i,s,a,C),t.x=this.x0+(n-r)*Math.sin(k),t.y=this.y0-(n-r)*Math.cos(k),t):Math.abs(this.sin_p12+1)<=p?(n=this.a*Ki(e,i,s,a,l),r=this.a*Ki(e,i,s,a,C),t.x=this.x0+(n+r)*Math.sin(k),t.y=this.y0+(n+r)*Math.cos(k),t):(o=A/j,h=Zi(this.a,this.e,this.sin_p12),c=Zi(this.a,this.e,A),u=Math.atan((1-this.es)*o+this.es*h*this.sin_p12/(c*j)),d=Math.atan2(Math.sin(k),this.cos_p12*Math.tan(u)-this.sin_p12*Math.cos(k)),x=0===d?Math.asin(this.cos_p12*Math.sin(u)-this.sin_p12*Math.cos(u)):Math.abs(Math.abs(d)-Math.PI)<=p?-Math.asin(this.cos_p12*Math.sin(u)-this.sin_p12*Math.cos(u)):Math.asin(Math.sin(k)*Math.cos(u)/Math.sin(d)),f=this.e*this.sin_p12/Math.sqrt(1-this.es),m=this.e*this.cos_p12*Math.cos(d)/Math.sqrt(1-this.es),g=f*m,v=m*m,_=x*x,w=_*x,S=w*x,O=S*x,b=h*x*(1-_*v*(1-v)/6+w/8*g*(1-2*v)+S/120*(v*(4-7*v)-3*f*f*(1-7*v))-O/48*g),t.x=this.x0+b*Math.sin(d),t.y=this.y0+b*Math.cos(d),t))}function Pa(t){var e,i,s,a,n,r,o,h,c,u,d,f,m,g,v,b,y,M,x,_,w,S,O,I;if(t.x-=this.x0,t.y-=this.y0,this.sphere){if(e=Math.sqrt(t.x*t.x+t.y*t.y),e>2*l*this.a)return;return i=e/this.a,s=Math.sin(i),a=Math.cos(i),n=this.long0,Math.abs(e)<=p?r=this.lat0:(r=Os(a*this.sin_p12+t.y*s*this.cos_p12/e),o=Math.abs(this.lat0)-l,n=Math.abs(o)<=p?this.lat0>=0?rt(this.long0+Math.atan2(t.x,-t.y)):rt(this.long0-Math.atan2(-t.x,t.y)):rt(this.long0+Math.atan2(t.x*s,e*this.cos_p12*a-t.y*this.sin_p12*s))),t.x=n,t.y=r,t}return h=Xi(this.es),c=Ji(this.es),u=Qi(this.es),d=Yi(this.es),Math.abs(this.sin_p12-1)<=p?(f=this.a*Ki(h,c,u,d,l),e=Math.sqrt(t.x*t.x+t.y*t.y),m=f-e,r=es(m/this.a,h,c,u,d),n=rt(this.long0+Math.atan2(t.x,-1*t.y)),t.x=n,t.y=r,t):Math.abs(this.sin_p12+1)<=p?(f=this.a*Ki(h,c,u,d,l),e=Math.sqrt(t.x*t.x+t.y*t.y),m=e-f,r=es(m/this.a,h,c,u,d),n=rt(this.long0+Math.atan2(t.x,t.y)),t.x=n,t.y=r,t):(e=Math.sqrt(t.x*t.x+t.y*t.y),b=Math.atan2(t.x,t.y),g=Zi(this.a,this.e,this.sin_p12),y=Math.cos(b),M=this.e*this.cos_p12*y,x=-M*M/(1-this.es),_=3*this.es*(1-x)*this.sin_p12*this.cos_p12*y/(1-this.es),w=e/g,S=w-x*(1+x)*Math.pow(w,3)/6-_*(1+3*x)*Math.pow(w,4)/24,O=1-x*S*S/2-w*S*S*S/6,v=Math.asin(this.sin_p12*Math.cos(S)+this.cos_p12*Math.sin(S)*y),n=rt(this.long0+Math.asin(Math.sin(b)*Math.sin(S)/Math.cos(v))),I=Math.sin(v),r=Math.atan2((I-this.es*O*this.sin_p12)*Math.tan(v),I*(1-this.es)),t.x=n,t.y=r,t)}var $a=["Azimuthal_Equidistant","aeqd"],Ba={init:Ea,forward:Ta,inverse:Pa,names:$a};function Da(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0)}function La(t){var e,i,s,a,n,r,o,h,l=t.x,c=t.y;return s=rt(l-this.long0),e=Math.sin(c),i=Math.cos(c),a=Math.cos(s),r=this.sin_p14*e+this.cos_p14*i*a,n=1,(r>0||Math.abs(r)<=p)&&(o=this.a*n*i*Math.sin(s),h=this.y0+this.a*n*(this.cos_p14*e-this.sin_p14*i*a)),t.x=o,t.y=h,t}function Na(t){var e,i,s,a,n,r,o;return t.x-=this.x0,t.y-=this.y0,e=Math.sqrt(t.x*t.x+t.y*t.y),i=Os(e/this.a),s=Math.sin(i),a=Math.cos(i),r=this.long0,Math.abs(e)<=p?(o=this.lat0,t.x=r,t.y=o,t):(o=Os(a*this.sin_p14+t.y*s*this.cos_p14/e),n=Math.abs(this.lat0)-l,Math.abs(n)<=p?(r=this.lat0>=0?rt(this.long0+Math.atan2(t.x,-t.y)):rt(this.long0-Math.atan2(-t.x,t.y)),t.x=r,t.y=o,t):(r=rt(this.long0+Math.atan2(t.x*s,e*this.cos_p14*a-t.y*this.sin_p14*s)),t.x=r,t.y=o,t))}var Ra=["ortho"],Va={init:Da,forward:La,inverse:Na,names:Ra},Fa={FRONT:1,RIGHT:2,BACK:3,LEFT:4,TOP:5,BOTTOM:6},za={AREA_0:1,AREA_1:2,AREA_2:3,AREA_3:4};function qa(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Quadrilateralized Spherical Cube",this.lat0>=l-g/2?this.face=Fa.TOP:this.lat0<=-(l-g/2)?this.face=Fa.BOTTOM:Math.abs(this.long0)<=g?this.face=Fa.FRONT:Math.abs(this.long0)<=l+g?this.face=this.long0>0?Fa.RIGHT:Fa.LEFT:this.face=Fa.BACK,0!==this.es&&(this.one_minus_f=1-(this.a-this.b)/this.a,this.one_minus_f_squared=this.one_minus_f*this.one_minus_f)}function Ga(t){var e,i,s,a,n,r,o={x:0,y:0},h={value:0};if(t.x-=this.long0,e=0!==this.es?Math.atan(this.one_minus_f_squared*Math.tan(t.y)):t.y,i=t.x,this.face===Fa.TOP)a=l-e,i>=g&&i<=l+g?(h.value=za.AREA_0,s=i-l):i>l+g||i<=-(l+g)?(h.value=za.AREA_1,s=i>0?i-b:i+b):i>-(l+g)&&i<=-g?(h.value=za.AREA_2,s=i+l):(h.value=za.AREA_3,s=i);else if(this.face===Fa.BOTTOM)a=l+e,i>=g&&i<=l+g?(h.value=za.AREA_0,s=-i+l):i<g&&i>=-g?(h.value=za.AREA_1,s=-i):i<-g&&i>=-(l+g)?(h.value=za.AREA_2,s=-i-l):(h.value=za.AREA_3,s=i>0?-i+b:-i-b);else{var c,u,d,p,f,m,v;this.face===Fa.RIGHT?i=Ua(i,+l):this.face===Fa.BACK?i=Ua(i,+b):this.face===Fa.LEFT&&(i=Ua(i,-l)),p=Math.sin(e),f=Math.cos(e),m=Math.sin(i),v=Math.cos(i),c=f*v,u=f*m,d=p,this.face===Fa.FRONT?(a=Math.acos(c),s=Ha(a,d,u,h)):this.face===Fa.RIGHT?(a=Math.acos(u),s=Ha(a,d,-c,h)):this.face===Fa.BACK?(a=Math.acos(-c),s=Ha(a,d,-u,h)):this.face===Fa.LEFT?(a=Math.acos(-u),s=Ha(a,d,c,h)):(a=s=0,h.value=za.AREA_0)}return r=Math.atan(12/b*(s+Math.acos(Math.sin(s)*Math.cos(g))-l)),n=Math.sqrt((1-Math.cos(a))/(Math.cos(r)*Math.cos(r))/(1-Math.cos(Math.atan(1/Math.cos(s))))),h.value===za.AREA_1?r+=l:h.value===za.AREA_2?r+=b:h.value===za.AREA_3&&(r+=1.5*b),o.x=n*Math.cos(r),o.y=n*Math.sin(r),o.x=o.x*this.a+this.x0,o.y=o.y*this.a+this.y0,t.x=o.x,t.y=o.y,t}function Wa(t){var e,i,s,a,n,r,o,h,c,u,d,p,f={lam:0,phi:0},m={value:0};if(t.x=(t.x-this.x0)/this.a,t.y=(t.y-this.y0)/this.a,i=Math.atan(Math.sqrt(t.x*t.x+t.y*t.y)),e=Math.atan2(t.y,t.x),t.x>=0&&t.x>=Math.abs(t.y)?m.value=za.AREA_0:t.y>=0&&t.y>=Math.abs(t.x)?(m.value=za.AREA_1,e-=l):t.x<0&&-t.x>=Math.abs(t.y)?(m.value=za.AREA_2,e=e<0?e+b:e-b):(m.value=za.AREA_3,e+=l),c=b/12*Math.tan(e),n=Math.sin(c)/(Math.cos(c)-1/Math.sqrt(2)),r=Math.atan(n),s=Math.cos(e),a=Math.tan(i),o=1-s*s*a*a*(1-Math.cos(Math.atan(1/Math.cos(r)))),o<-1?o=-1:o>1&&(o=1),this.face===Fa.TOP)h=Math.acos(o),f.phi=l-h,m.value===za.AREA_0?f.lam=r+l:m.value===za.AREA_1?f.lam=r<0?r+b:r-b:m.value===za.AREA_2?f.lam=r-l:f.lam=r;else if(this.face===Fa.BOTTOM)h=Math.acos(o),f.phi=h-l,m.value===za.AREA_0?f.lam=-r+l:m.value===za.AREA_1?f.lam=-r:m.value===za.AREA_2?f.lam=-r-l:f.lam=r<0?-r-b:-r+b;else{var g,v,y;g=o,c=g*g,y=c>=1?0:Math.sqrt(1-c)*Math.sin(r),c+=y*y,v=c>=1?0:Math.sqrt(1-c),m.value===za.AREA_1?(c=v,v=-y,y=c):m.value===za.AREA_2?(v=-v,y=-y):m.value===za.AREA_3&&(c=v,v=y,y=-c),this.face===Fa.RIGHT?(c=g,g=-v,v=c):this.face===Fa.BACK?(g=-g,v=-v):this.face===Fa.LEFT&&(c=g,g=v,v=-c),f.phi=Math.acos(-y)-l,f.lam=Math.atan2(v,g),this.face===Fa.RIGHT?f.lam=Ua(f.lam,-l):this.face===Fa.BACK?f.lam=Ua(f.lam,-b):this.face===Fa.LEFT&&(f.lam=Ua(f.lam,+l))}0!==this.es&&(u=f.phi<0?1:0,d=Math.tan(f.phi),p=this.b/Math.sqrt(d*d+this.one_minus_f_squared),f.phi=Math.atan(Math.sqrt(this.a*this.a-p*p)/(this.one_minus_f*p)),u&&(f.phi=-f.phi));return f.lam+=this.long0,t.x=f.lam,t.y=f.phi,t}function Ha(t,e,i,s){var a;return t<p?(s.value=za.AREA_0,a=0):(a=Math.atan2(e,i),Math.abs(a)<=g?s.value=za.AREA_0:a>g&&a<=l+g?(s.value=za.AREA_1,a-=l):a>l+g||a<=-(l+g)?(s.value=za.AREA_2,a=a>=0?a-b:a+b):(s.value=za.AREA_3,a+=l)),a}function Ua(t,e){var i=t+e;return i<-b?i+=v:i>+b&&(i-=v),i}var Ka=["Quadrilateralized Spherical Cube","Quadrilateralized_Spherical_Cube","qsc"],Xa={init:qa,forward:Ga,inverse:Wa,names:Ka},Ja=[[1,22199e-21,-715515e-10,31103e-10],[.9986,-482243e-9,-24897e-9,-13309e-10],[.9954,-83103e-8,-448605e-10,-9.86701e-7],[.99,-.00135364,-59661e-9,36777e-10],[.9822,-.00167442,-449547e-11,-572411e-11],[.973,-.00214868,-903571e-10,1.8736e-8],[.96,-.00305085,-900761e-10,164917e-11],[.9427,-.00382792,-653386e-10,-26154e-10],[.9216,-.00467746,-10457e-8,481243e-11],[.8962,-.00536223,-323831e-10,-543432e-11],[.8679,-.00609363,-113898e-9,332484e-11],[.835,-.00698325,-640253e-10,9.34959e-7],[.7986,-.00755338,-500009e-10,9.35324e-7],[.7597,-.00798324,-35971e-9,-227626e-11],[.7186,-.00851367,-701149e-10,-86303e-10],[.6732,-.00986209,-199569e-9,191974e-10],[.6213,-.010418,883923e-10,624051e-11],[.5722,-.00906601,182e-6,624051e-11],[.5322,-.00677797,275608e-9,624051e-11]],Qa=[[-520417e-23,.0124,121431e-23,-845284e-16],[.062,.0124,-1.26793e-9,4.22642e-10],[.124,.0124,5.07171e-9,-1.60604e-9],[.186,.0123999,-1.90189e-8,6.00152e-9],[.248,.0124002,7.10039e-8,-2.24e-8],[.31,.0123992,-2.64997e-7,8.35986e-8],[.372,.0124029,9.88983e-7,-3.11994e-7],[.434,.0123893,-369093e-11,-4.35621e-7],[.4958,.0123198,-102252e-10,-3.45523e-7],[.5571,.0121916,-154081e-10,-5.82288e-7],[.6176,.0119938,-241424e-10,-5.25327e-7],[.6769,.011713,-320223e-10,-5.16405e-7],[.7346,.0113541,-397684e-10,-6.09052e-7],[.7903,.0109107,-489042e-10,-104739e-11],[.8435,.0103431,-64615e-9,-1.40374e-9],[.8936,.00969686,-64636e-9,-8547e-9],[.9394,.00840947,-192841e-9,-42106e-10],[.9761,.00616527,-256e-6,-42106e-10],[1,.00328947,-319159e-9,-42106e-10]],Ya=.8487,Za=1.3523,tn=m/5,en=1/tn,sn=18,an=function(t,e){return t[0]+e*(t[1]+e*(t[2]+e*t[3]))},nn=function(t,e){return t[1]+e*(2*t[2]+3*e*t[3])};function rn(t,e,i,s){for(var a=e;s;--s){var n=t(a);if(a-=n,Math.abs(n)<i)break}return a}function on(){this.x0=this.x0||0,this.y0=this.y0||0,this.long0=this.long0||0,this.es=0,this.title=this.title||"Robinson"}function hn(t){var e=rt(t.x-this.long0),i=Math.abs(t.y),s=Math.floor(i*tn);s<0?s=0:s>=sn&&(s=sn-1),i=m*(i-en*s);var a={x:an(Ja[s],i)*e,y:an(Qa[s],i)};return t.y<0&&(a.y=-a.y),a.x=a.x*this.a*Ya+this.x0,a.y=a.y*this.a*Za+this.y0,a}function ln(t){var e={x:(t.x-this.x0)/(this.a*Ya),y:Math.abs(t.y-this.y0)/(this.a*Za)};if(e.y>=1)e.x/=Ja[sn][0],e.y=t.y<0?-l:l;else{var i=Math.floor(e.y*sn);for(i<0?i=0:i>=sn&&(i=sn-1);;)if(Qa[i][0]>e.y)--i;else{if(!(Qa[i+1][0]<=e.y))break;++i}var s=Qa[i],a=5*(e.y-s[0])/(Qa[i+1][0]-s[0]);a=rn((function(t){return(an(s,t)-e.y)/nn(s,t)}),a,p,100),e.x/=an(Ja[i],a),e.y=(5*i+a)*f,t.y<0&&(e.y=-e.y)}return e.x=rt(e.x+this.long0),e}var cn=["Robinson","robin"],un={init:on,forward:hn,inverse:ln,names:cn};function dn(){this.name="geocent"}function pn(t){var e=Bt(t,this.es,this.a);return e}function fn(t){var e=Dt(t,this.es,this.a,this.b);return e}var mn=["Geocentric","geocentric","geocent","Geocent"],gn={init:dn,forward:pn,inverse:fn,names:mn},vn=function(t){t.Proj.projections.add(We),t.Proj.projections.add(ai),t.Proj.projections.add(li),t.Proj.projections.add(xi),t.Proj.projections.add(Ci),t.Proj.projections.add(Ti),t.Proj.projections.add(Li),t.Proj.projections.add(zi),t.Proj.projections.add(Ui),t.Proj.projections.add(rs),t.Proj.projections.add(Ss),t.Proj.projections.add(Es),t.Proj.projections.add(Ds),t.Proj.projections.add(zs),t.Proj.projections.add(Us),t.Proj.projections.add(Zs),t.Proj.projections.add(aa),t.Proj.projections.add(la),t.Proj.projections.add(ma),t.Proj.projections.add(Ma),t.Proj.projections.add(Oa),t.Proj.projections.add(ka),t.Proj.projections.add(Ba),t.Proj.projections.add(Va),t.Proj.projections.add(Xa),t.Proj.projections.add(un),t.Proj.projections.add(gn)};Qt.defaultDatum="WGS84",Qt.Proj=Pt,Qt.WGS84=new Qt.Proj("WGS84"),Qt.Point=Se,Qt.toPoint=zt,Qt.defs=H,Qt.transform=Ht,Qt.mgrs=re,Qt.version="__VERSION__",vn(Qt);e["default"]=Qt},a988:function(t,e,i){"use strict";var s=i("6e87"),a=i.n(s);a.a},b810:function(t,e,i){"use strict";var s=i("ce7e");e["a"]=s["a"]},cf36:function(t,e,i){},d191:function(t,e,i){},e2b9:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACkAAAApCAQAAAACach9AAACMUlEQVR4Ae3ShY7jQBAE0Aoz/f9/HTMzhg1zrdKUrJbdx+Kd2nD8VNudfsL/Th///dyQN2TH6f3y/BGpC379rV+S+qqetBOxImNQXL8JCAr2V4iMQXHGNJxeCfZXhSRBcQMfvkOWUdtfzlLgAENmZDcmo2TVmt8OSM2eXxBp3DjHSMFutqS7SbmemzBiR+xpKCNUIRkdkkYxhAkyGoBvyQFEJEefwSmmvBfJuJ6aKqKWnAkvGZOaZXTUgFqYULWNSHUckZuR1HIIimUExutRxwzOLROIG4vKmCKQt364mIlhSyzAf1m9lHZHJZrlAOMMztRRiKimp/rpdJDc9Awry5xTZCte7FHtuS8wJgeYGrex28xNTd086Dik7vUMscQOa8y4DoGtCCSkAKlNwpgNtphjrC6MIHUkR6YWxxs6Sc5xqn222mmCRFzIt8lEdKx+ikCtg91qS2WpwVfBelJCiQJwvzixfI9cxZQWgiSJelKnwBElKYtDOb2MFbhmUigbReQBV0Cg4+qMXSxXSyGUn4UbF8l+7qdSGnTC0XLCmahIgUHLhLOhpVCtw4CzYXvLQWQbJNmxoCsOKAxSgBJno75avolkRw8iIAFcsdc02e9iyCd8tHwmeSSoKTowIgvscSGZUOA7PuCN5b2BX9mQM7S0wYhMNU74zgsPBj3HU7wguAfnxxjFQGBE6pwN+GjME9zHY7zGp8wVxMShYX9NXvEWD3HbwJf4giO4CFIQxXScH1/TM+04kkBiAAAAAElFTkSuQmCC"},e9b1:function(t,e,i){},eb08:function(t,e,i){"use strict";var s=i("8aa4"),a=i.n(s);a.a},ee6f:function(t,e,i){},f823:function(t,e,i){}}]);
//# sourceMappingURL=chunk-5cedae10.b1aed77d.js.map