@abi-software/mapintegratedvuer 1.2.1-beta.1 → 1.2.1-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ContentMixin-Ds5gEPQF.js → ContentMixin-Lknro3y6.js} +1 -1
- package/dist/{Flatmap-CdfB1CqK.js → Flatmap-DKFL_Ddf.js} +3 -3
- package/dist/{Iframe-DbBh33jx.js → Iframe-CLKJvWAX.js} +2 -2
- package/dist/{MultiFlatmap-B7-QVKdg.js → MultiFlatmap-BhomxemF.js} +3 -3
- package/dist/{Plot-HvPAJ33l.js → Plot-SQE8A54y.js} +2 -2
- package/dist/{Scaffold-D6R3P1_c.js → Scaffold-zkoVdxWV.js} +2 -2
- package/dist/{Simulation-DdQXHwHW.js → Simulation-CdPfkHdC.js} +2 -2
- package/dist/{index-8kI96-xR.js → index-jxTP4jdW.js} +1 -1
- package/dist/mapintegratedvuer.js +1 -1
- package/dist/mapintegratedvuer.umd.cjs +1 -1
- package/dist/{style-XspK9sVJ.js → style-8hnPcSiq.js} +6 -6
- package/dist/style.css +1 -1
- package/package.json +2 -2
@@ -3090,7 +3090,7 @@ ${t.vs}`,t}setDataProperty(t,r,n){const i=or(this,px).get(+t);i&&(!(r in i)||i[r
|
|
3090
3090
|
state: () => new MyClass()
|
3091
3091
|
Found in store "${k.$id}".`),m&&o&&r.hydrate&&r.hydrate(k.$state,m),u=!0,d=!0,k}function njr(e,t,r){let n,i;const o=typeof t=="function";n=e,i=o?r:t;function s(l,c){const u=a.hasInjectionContext();if(l=(process.env.NODE_ENV==="test"&&FA&&FA._testing?null:l)||(u?a.inject($zr,null):null),l&&jU(l),process.env.NODE_ENV!=="production"&&!FA)throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?
|
3092
3092
|
See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help.
|
3093
|
-
This will fail in production.`);l=FA,l._s.has(n)||(o?P1e(n,t,i,l):Bje(n,i,l),process.env.NODE_ENV!=="production"&&(s._pinia=l));const d=l._s.get(n);if(process.env.NODE_ENV!=="production"&&c){const h="__hot:"+n,p=o?P1e(h,t,i,l,!0):Bje(h,zd({},i),l,!0);c._hotUpdate(p),delete l.state.value[h],l._s.delete(h)}if(process.env.NODE_ENV!=="production"&&A1e){const h=a.getCurrentInstance();if(h&&h.proxy&&!c){const p=h.proxy,f="_pStores"in p?p._pStores:p._pStores={};f[n]=d}}return d}return s.$id=n,s}function ijr(e,t){return Array.isArray(t)?t.reduce((r,n)=>(r[n]=function(){return e(this.$pinia)[n]},r),{}):Object.keys(t).reduce((r,n)=>(r[n]=function(){const i=e(this.$pinia),o=t[n];return typeof o=="function"?o.call(this,i):i[o]},r),{})}const ojr=njr("main",{state:()=>({userProfile:{token:""}}),getters:{userToken(e){return e.userProfile.token}},actions:{setUserToken(e){this.userProfile.token=e}}}),ajr=e=>{let t={lng:0,lat:0},r;return e.type==="Polygon"?r=e.coordinates[0]:r=e.coordinates,e.type!=="Point"?(r.map(n=>{t.lng+=parseFloat(n[0]),t.lat+=parseFloat(n[1])}),t.lng=t.lng/r.length,t.lat=t.lat/r.length):(t.lng+=parseFloat(r[0]),t.lat+=parseFloat(r[1])),t},Fje=(e,t)=>{const r=[];let n=e.organs?e.organs:e.ftus;const i=n?n.filter((o,s)=>n.findIndex(l=>l.label===o.label)===s):void 0;return i&&i.forEach(o=>{const s={label:o.label,models:o.models,key:`${t}.${o.label}`},l=Fje(o,s.key);l.length>0&&(s.children=l),r.push(s)}),r},sjr=function(){return{destinations:[],origins:[],components:[],destinationsWithDatasets:[],originsWithDatasets:[],componentsWithDatasets:[],resource:void 0}},ljr={name:"FlatmapVuer",components:{Button:NEe,Col:UM,Loading:dpr,Radio:eAe,Icon:Mu,RadioGroup:tAe,Row:jM,Select:EB,Dialog:Lhr,MapSvgIcon:JS,MapSvgSpriteColor:OH,Tooltip:oMe,TreeControls:aMe,SelectionsGroup:pAe,SvgLegends:fAe,ElIconWarningFilled:gCe,ElIconArrowDown:vne,ElIconArrowLeft:fCe,DrawToolbar:iMe},beforeCreate:function(){this.mapManager=void 0,this.mapImp=void 0,this.setStateRequired=!1},setup(e){return{annotator:a.markRaw(new Yzr(`${e.flatmapAPI}annotator`))}},methods:{initialiseDrawing:function(){this.connectionEntry={},this.activeDrawTool=void 0,this.activeDrawMode=void 0,this.drawnCreatedEvent={}},cancelDrawnFeature:function(){this.isValidDrawnCreated&&(this.closeTooltip(),this.annotationEntry={...this.drawnCreatedEvent.feature,resourceId:this.serverURL},this.rollbackAnnotationEvent(),this.initialiseDrawing())},connectedFeatureTooltip:function(e){if(this.mapImp)if(e){const t=Number(e);let r={feature:{}};if(t){const n=this.mapImp.featureProperties(t);r.feature=n}else{const n=this.existDrawnFeatures.find(i=>i.id===e.replace(" ",""));r.feature.feature=n}this.checkAndCreatePopups(r)}else this.closeTooltip()},confirmDrawnFeature:function(){this.isValidDrawnCreated&&(this.checkAndCreatePopups(this.drawnCreatedEvent),Object.keys(this.connectionEntry).length>0&&(this.annotationEntry.feature.connection=this.connectionEntry),this.initialiseDrawing())},toolbarEvent:function(e,t){if(this.closeTooltip(),this.doubleClickedFeature=!1,this.connectionEntry={},e==="mode")this.changeAnnotationDrawMode({mode:"simple_select"}),this.activeDrawMode=t,Object.keys(this.annotationEntry).length>0&&!this.featureAnnotationSubmitted&&this.rollbackAnnotationEvent();else if(e==="tool"){if(t){const r=t.replace(/[A-Z]/g,n=>`_${n.toLowerCase()}`);this.changeAnnotationDrawMode({mode:`draw${r}`}),this.initialiseDrawing()}else this.changeAnnotationDrawMode({mode:"simple_select"}),this.cancelDrawnFeature();this.activeDrawTool=t}},annotationDrawModeEvent:function(e){this.activeDrawMode==="Edit"&&this.doubleClickedFeature&&(e.feature.feature.geometry.type!=="Point"&&(this.changeAnnotationDrawMode({mode:"direct_select",options:{featureId:e.feature.feature.id}}),this.modifyAnnotationFeature()),this.doubleClickedFeature=!1),this.activeDrawMode==="Delete"&&(this.changeAnnotationDrawMode({mode:"simple_select",options:{featureIds:[e.feature.feature.id]}}),this.modifyAnnotationFeature())},createConnectivityBody:function(){if(Object.keys(this.connectionEntry).length>0){const e=Object.values(this.connectionEntry),t={type:"connectivity",source:e[0],target:e[e.length-1],intermediates:e.filter((r,n)=>n!==0&&n!==e.length-1)};this.annotationEntry.body=t}},changeAnnotationDrawMode:function(e){this.mapImp&&this.mapImp.changeAnnotationDrawMode(e)},clearAnnotationFeature:function(){this.mapImp&&this.existDrawnFeatures.length>0&&this.mapImp.clearAnnotationFeature()},modifyAnnotationFeature:function(){this.mapImp&&this.mapImp.removeAnnotationFeature()},rollbackAnnotationEvent:function(){this.mapImp&&["created","updated","deleted"].includes(this.annotationEntry.type)&&(this.mapImp.rollbackAnnotationEvent(this.annotationEntry),this.annotationEntry={})},commitAnnotationEvent:function(e){this.mapImp&&["created","updated","deleted"].includes(this.annotationEntry.type)&&e&&(this.featureAnnotationSubmitted=!0,this.mapImp.commitAnnotationEvent(this.annotationEntry),this.annotationEntry.type==="deleted"?(this.closeTooltip(),this.annotationEntry={}):this.addAnnotationFeature())},fetchAnnotatedItemIds:async function(e=void 0,t=void 0){let r=await this.annotator.annotatedItemIds(this.userToken,this.serverURL,e,t);return"resource"in r&&(r=r.itemIds),r},setFeatureAnnotated:async function(){if(this.mapImp){const e=await this.fetchAnnotatedItemIds();for(const t of e)this.mapImp.setFeatureAnnotated(t)}},fetchDrawnFeatures:async function(e,t){const r=await this.fetchAnnotatedItemIds(e,t);let n=await this.annotator.drawnFeatures(this.userToken,this.serverURL,r);return"resource"in n&&(n=n.features),this.drawnType!=="All tools"&&(n=n.filter(i=>i.geometry.type===this.drawnType)),n},addAnnotationFeature:async function(){if(this.mapImp&&(this.featureAnnotationSubmitted||this.clearAnnotationFeature(),this.drawnType!=="None")){this.featureAnnotationSubmitted||(this.loading=!0);const e=this.annotatedType==="Anyone"?void 0:this.userInformation.orcid?this.userInformation.orcid:"0000-0000-0000-0000",t=this.annotatedType==="Anyone"?void 0:this.annotatedType==="Me",r=await this.fetchDrawnFeatures(e,t);if(this.existDrawnFeatures=r,this.loading=!1,!this.featureAnnotationSubmitted)for(const n of r)this.mapImp.addAnnotationFeature(n)}},showAnnotator:function(e){this.mapImp&&(this.mapImp.showAnnotator(e),this.$el.querySelector(".maplibregl-ctrl-group").style.display="none")},setDrawnType:function(e){this.drawnType=e,this.mapImp&&(this.addAnnotationFeature(),this.initialiseDrawing())},setAnnotatedType:function(e){this.annotatedType=e,this.mapImp&&this.addAnnotationFeature()},setFlightPath3D:function(e){this.flightPath3DRadio=e,this.mapImp&&this.mapImp.enableFlightPaths(e)},viewLatestMap:function(){let e=this.biologicalSex?this.biologicalSex:void 0;this.entry==="NCBITaxon:9606"&&(e="PATO:0000384");const t={entry:this.entry,biologicalSex:e,viewport:this.mapImp.getState()};this.$emit("view-latest-map",t)},backgroundChangeCallback:function(e){this.currentBackground=e,this.mapImp&&this.mapImp.setBackgroundColour(this.currentBackground,1)},processSystems:function(e){if(this.systems.length=0,e&&e.length>0){const t={label:"All",key:"All",children:[]};e.forEach(r=>{const n={colour:r.colour,enabled:r.enabled,label:r.id,key:r.id},i=Fje(r,n.key);i.length>0&&(n.children=i),t.children.push(n)}),this.systems.push(t)}},processTaxon:function(e,t){this.taxonConnectivity.length=0,t.forEach(r=>{mAe(e,r).then(n=>{const i={taxon:r,label:n};this.taxonConnectivity.push(i)})})},toggleDrawer:function(){this.drawerOpen=!this.drawerOpen},setColour:function(e){this.colourRadio=e,this.mapImp&&this.mapImp.setColour({colour:e,outline:this.outlinesRadio})},setOutlines:function(e){this.outlineRadio=e,this.mapImp&&this.mapImp.setColour({colour:this.colourRadio,outline:e})},resetView:function(){this.mapImp&&(this.mapImp.resetMap(),this.$refs.centrelinesSelection&&this.$refs.centrelinesSelection.reset(),this.$refs.skcanSelection&&this.$refs.skcanSelection.reset(),this.$refs.layersSelection&&this.$refs.layersSelection.reset(),this.$refs.systemsSelection&&this.$refs.pathwaysSelection.reset(),this.$refs.pathwaysSelection&&this.$refs.pathwaysSelection.reset())},zoomIn:function(){this.mapImp&&this.mapImp.zoomIn()},zoomOut:function(){this.mapImp&&this.mapImp.zoomOut()},centreLinesSelected:function(e){this.mapImp&&this.mapImp.enableCentrelines(e.value)},onSelectionsDataChanged:function(e){this.$emit("pathway-selection-changed",e)},sckanSelected:function(e){this.mapImp&&this.mapImp.enableSckanPath(e.key,e.value)},checkAllSCKAN:function(e){this.mapImp&&e.keys.forEach(t=>this.mapImp.enableSckanPath(t,e.value))},highlightConnectedPaths:async function(e){var t,r;if(this.mapImp){let n=[...this.mapImp.pathModelNodes(e)].map(c=>this.mapImp.featureProperties(c)),i=await this.flatmapQueries.queryForConnectivity(e),o=(r=(t=i==null?void 0:i.ids)==null?void 0:t.dendrites)==null?void 0:r.flat().flat(),s=[],l=!1;n.forEach(c=>{this.mapImp.nodePathModels(c.featureId).forEach(u=>{l=!0,this.mapImp.pathModelNodes(u).forEach(d=>{let h=this.mapImp.featureProperties([d]);if(o.includes(h.models)){l=!1;return}}),l&&s.push(u)})}),this.mapImp.zoomToFeatures(s,{noZoomIn:!0})}},resetMapFilter:function(){const e=this.mapFilters.alert;let t;e.with?e.without||(t={HAS:"alert"}):e.without?t={NOT:{HAS:"alert"}}:t={AND:[{NOT:{HAS:"alert"}},{HAS:"alert"}]},t?this.mapImp.setVisibilityFilter(t):this.mapImp.clearVisibilityFilter()},alertMouseEnterEmitted:function(e){if(this.mapImp)if(e.value){let t;e.key==="alert"?t={HAS:"alert"}:e.key==="withoutAlert"&&(t={NOT:{HAS:"alert"}}),this.mapImp.setVisibilityFilter(t)}else this.resetMapFilter()},alertSelected:function(e){this.mapImp&&(e.key==="alert"?e.value?this.mapFilters.alert.with=!0:this.mapFilters.alert.with=!1:e.key==="withoutAlert"&&(e.value?this.mapFilters.alert.without=!0:this.mapFilters.alert.without=!1),this.resetMapFilter())},checkAllAlerts:function(e){this.mapImp&&(e.value?(this.mapFilters.alert.without=!0,this.mapFilters.alert.with=!0):(this.mapFilters.alert.without=!1,this.mapFilters.alert.with=!1),this.resetMapFilter())},systemSelected:function(e){this.mapImp&&this.mapImp.enableSystem(e.key,e.value)},checkAllSystems:function(e){this.mapImp&&this.systems[0].children.forEach(t=>this.mapImp.enableSystem(t.label,e))},ftuSelected:function(e){this.searchAndShowResult(e,!0)},layersSelected:function(e){this.mapImp&&this.mapImp.enableLayer(e.key,e.value)},checkAllLayers:function(e){this.mapImp&&e.keys.forEach(t=>this.mapImp.enableLayer(t,e.value))},taxonsSelected:function(e){this.mapImp&&this.mapImp.enableConnectivityByTaxonIds(e.key,e.value)},taxonMouseEnterEmitted:function(e){if(this.mapImp)if(e.value){let t=this.mapImp.taxonFeatureIds(e.key);this.mapImp.enableConnectivityByTaxonIds(e.key,e.value),this.mapImp.zoomToGeoJSONFeatures(t,{noZoomIn:!0})}else this.mapImp.selectGeoJSONFeatures("-1"),e.selections.forEach(t=>{let r=e.checked.includes(t.taxon);this.mapImp.enableConnectivityByTaxonIds(t.taxon,r)})},checkAllTaxons:function(e){this.mapImp&&e.keys.forEach(t=>this.mapImp.enableConnectivityByTaxonIds(t,e.value))},pathwaysSelected:function(e){this.mapImp&&this.mapImp.enablePath(e.key,e.value)},checkAllPathways:function(e){this.mapImp&&e.keys.forEach(t=>this.mapImp.enablePath(t,e.value))},enablePanZoomEvents:function(e){this.mapImp.enablePanZoomEvents(e)},annotationEventCallback:function(e,t){if(t.type==="aborted")this.featureAnnotationSubmitted?this.featureAnnotationSubmitted=!1:this.rollbackAnnotationEvent();else if(t.type==="modeChanged")t.feature.mode==="direct_select"&&(this.doubleClickedFeature=!0);else if(t.type==="selectionChanged"){if(this.selectedDrawnFeature=t.feature.features.length===0?void 0:t.feature.features[0],e.feature.feature=this.selectedDrawnFeature,!this.activeDrawTool&&(this.connectionEntry={},this.selectedDrawnFeature)){const r=this.existDrawnFeatures.find(n=>n.id===this.selectedDrawnFeature.id);r&&r.connection&&(this.connectionEntry=r.connection),this.annotationDrawModeEvent(e)}}else{if(t.type==="created"||t.type==="updated"){t.type==="updated"&&t.feature.action&&(t.positionUpdated=t.feature.action==="move");const r=this.mapImp.refreshAnnotationFeatureGeometry(t.feature);e.feature.feature=r}t.type==="created"?this.drawnCreatedEvent=e:this.checkAndCreatePopups(e)}},eventCallback:function(){return(e,t,...r)=>{if(e==="annotation"){const n={feature:t,userData:r,eventType:e};this.annotationEventCallback(n,t)}else if(e!=="pan-zoom"){const n=t.label,i=[t.models],o=this.entry,s=this.biologicalSex;let l;t.taxons&&(typeof t.taxons!="object"?l=JSON.parse(t.taxons):l=t.taxons);const c={dataset:t.dataset,biologicalSex:s,taxonomy:o,resource:i,label:n,feature:t,userData:r,eventType:e,provenanceTaxonomy:l};if(e==="click"){if(this.featuresAlert=t.alert,this.viewingMode==="Neuron Connection")this.highlightConnectedPaths([t.models]);else if(this.currentActive=t.models?t.models:"",this.activeDrawTool&&!this.isValidDrawnCreated){const u=t.featureId||this.existDrawnFeatures.find(d=>d.id===t.id);if(this.activeDrawTool==="LineString"&&u){const d=t.featureId?t.featureId:t.id,h=t.label?t.label:`Feature ${t.id}`;this.connectionEntry[` ${d}`]=Object.assign({label:h},Object.fromEntries(Object.entries(t).filter(([p])=>["featureId","models"].includes(p)).map(([p,f])=>[p==="featureId"?"id":p,f])))}}}else e==="mouseenter"&&this.viewingMode!=="Neuron Connection"&&(this.currentHover=t.models?t.models:"");t&&t.type!=="marker"&&e==="click"&&this.viewingMode!=="Neuron Connection"&&!this.activeDrawTool&&this.checkAndCreatePopups(c),this.$emit("resource-selected",c)}else this.$emit("pan-zoom-callback",t)}},changeViewingMode:function(e=null){e!==null&&(this.viewingModeIndex=e),this.closeTooltip()},checkAndCreatePopups:async function(e){if(this.viewingMode==="Annotation")e.feature?(this.annotationEntry={...e.feature,resourceId:this.serverURL},e.feature.featureId&&e.feature.models?this.displayTooltip(e.feature.models):e.feature.feature&&(this.activeDrawTool||this.activeDrawMode||Object.keys(this.connectionEntry).length>0?(this.featureAnnotationSubmitted=!1,this.annotationEntry.featureId=e.feature.feature.id,this.activeDrawTool&&this.createConnectivityBody(),this.displayTooltip(e.feature.feature.id,ajr(e.feature.feature.geometry))):this.rollbackAnnotationEvent())):this.annotation={};else{let t=await this.flatmapQueries.retrieveFlatmapKnowledgeForEvent(e);(t[0]||t[1]||e.feature.hyperlinks&&e.feature.hyperlinks.length>0)&&(this.resourceForTooltip=e.resource[0],e.resourceForTooltip=this.resourceForTooltip,this.createTooltipFromNeuronCuration(e))}},popUpCssHacks:function(){const e=document.querySelector(".flatmap-tooltip-popup"),t=document.querySelector(".maplibregl-popup-close-button");e&&(e.style.display="none"),t.style.display="block",this.$refs.tooltip.$el.style.display="flex",t.onclick=()=>{this.$emit("connectivity-info-close"),e&&(e.style.display="block")}},closeTooltip:function(){this.$refs.tooltip.$el.style.display="none",document.querySelectorAll(".maplibregl-popup").forEach(e=>{e.style.display="none"})},createTooltipFromNeuronCuration:async function(e){this.tooltipEntry=await this.flatmapQueries.createTooltipData(e),this.displayTooltip(e.resource[0])},showPopup:function(e,t,r){let n=r;this.mapImp&&(n?n.className||(n.className="custom-popup"):n={className:"custom-popup",positionAtLastClick:!0},this.mapImp.showPopup(e,t,n))},showMarkerPopup:function(e,t,r){this.mapImp&&this.mapImp.showMarkerPopup(e,t,r)},closeMinimap:function(){let e=this.$refs.flatmapContainer.querySelector(".maplibregl-ctrl-minimap");this.minimapSmall?(e.classList.add("enlarge"),e.classList.remove("shrink")):(e.classList.add("shrink"),e.classList.remove("enlarge")),this.minimapSmall=!this.minimapSmall},addResizeButtonToMinimap:function(){let e=this.$refs.flatmapContainer.querySelector(".maplibregl-ctrl-minimap");e&&(this.$refs.minimapResize&&this.$refs.minimapResize.$el.parentNode&&this.$refs.minimapResize.$el.parentNode.removeChild(this.$refs.minimapResize.$el),e.appendChild(this.$refs.minimapResize.$el),this.minimapResizeShow=!0)},setHelpMode:function(e){const t=this.hoverVisibilities.length,r=t-1,n=this.hoverVisibilities[this.helpModeActiveIndex];if(n){const i=n==null?void 0:n.refs,o=n==null?void 0:n.ref,s=this.$refs[i||o];if(s){const{parentElement:l,nextElementSibling:c}=s.$el,u=d=>d&&(d.classList.contains("pathway-container")||d.classList.contains("pathway-location"));(u(l)||u(c))&&(this.drawerOpen=!0)}else this.helpModeActiveIndex+=1}e||(this.helpModeActiveIndex=this.helpModeInitialIndex),this.viewingMode!=="Annotation"&&this.helpModeActiveIndex>9&&(this.helpModeActiveIndex=r),e&&this.helpModeActiveIndex>=r&&this.$emit("help-mode-last-item",!0),e&&!this.helpModeDialog?(this.inHelp=!0,this.hoverVisibilities.forEach(i=>{i.value=!0})):e&&this.helpModeDialog&&t>this.helpModeActiveIndex?this.helpModeActiveIndex>-1?(this.closeFlatmapHelpPopup(),setTimeout(()=>{this.inHelp=!1,this.hoverVisibilities.forEach(i=>{i.value=!1}),this.showTooltip(this.helpModeActiveIndex,200)},300)):this.helpModeActiveIndex===-1&&this.openFlatmapHelpPopup():(this.inHelp=!1,this.hoverVisibilities.forEach(i=>{i.value=!1}),this.closeFlatmapHelpPopup())},showTooltip:function(e,t=500){this.inHelp||(clearTimeout(this.tooltipWait[e]),this.tooltipWait[e]=setTimeout(()=>{this.hoverVisibilities[e].value=!0,this.$emit("shown-tooltip")},t))},hideTooltip:function(e,t=500){this.inHelp||(clearTimeout(this.tooltipWait[e]),this.tooltipWait[e]=setTimeout(()=>{this.hoverVisibilities[e].value=!1},t))},displayTooltip:function(e,t=void 0){this.tooltipDisplay=!0;let r,n={className:"flatmapvuer-popover"};if(t?(r=e,n.annotationFeatureGeometry=t):(r=this.mapImp.modelFeatureIds(e)[0],this.activeDrawTool||(n.positionAtLastClick=!0)),this.connectivityInfoSidebar){const i=[e];this.moveMap(i),this.$emit("connectivity-info-open",this.tooltipEntry)}!this.disableUI&&!this.connectivityInfoSidebar&&this.$nextTick(()=>{this.mapImp.showPopup(r,this.$refs.tooltip.$el,n),this.popUpCssHacks()})},moveMap:function(e){if(this.mapImp){const t=this.mapImp._map,r=this.mapImp._bounds.toArray(),n=500;this.mapImp.zoomToFeatures(e,{noZoomIn:!0}),this.showPathwaysDrawer(!1),r!=null&&r.length&&setTimeout(()=>{t.fitBounds(r,{padding:{right:n},animate:!0})})}},openFlatmapHelpPopup:function(){if(this.mapImp){let e=this.mapImp.modelFeatureIds("UBERON:0000948");e&&e.length>0&&(this.mapImp.showPopup(e[0],"Click for more information",{anchor:"top",className:"flatmap-popup-popper"}),this.$emit("shown-map-tooltip"))}},closeFlatmapHelpPopup:function(){this.$el.querySelectorAll(".maplibregl-popup-close-button").forEach(e=>{e.click()})},getLabels:function(){let e=[];if(this.mapImp){let t=this.mapImp.annotations;for(let r of t.values())r.label&&e.push(r.label);return Array.from(new Set(e))}},getState:function(){if(this.mapImp){let e={entry:this.entry,viewport:this.mapImp.getState()};const t=this.mapImp.getIdentifier();return this.biologicalSex?e.biologicalSex=this.biologicalSex:t&&t.biologicalSex&&(e.biologicalSex=t.biologicalSex),t&&t.uuid&&(e.uuid=t.uuid),e}},setState:function(e){e&&(this.mapImp&&e.entry&&this.entry==e.entry&&(!e.biologicalSex||e.biologicalSex===this.biologicalSex)?e.viewport&&this.mapImp.setState(e.viewport):this.createFlatmap(e),this.setStateRequired=!1)},restoreMapState:function(e){e&&(e.viewport&&this.mapImp.setState(e.viewport),e.searchTerm&&this.searchAndShowResult(e.searchTerm,!0))},setFlightPathInfo:function(e){(e===1.6||e>1.6)&&(this.displayFlightPathOption=!0,this.setFlightPath3D(!1))},createFlatmap:function(e){if(!this.mapImp&&!this.loading){this.loading=!0;let t=!1;this.displayMinimap&&(t={position:"top-right"});let r={taxon:this.entry};this.uuid&&(r.uuid=this.uuid),e?e.uuid?r={uuid:e.uuid}:e.entry&&(r.taxon=e.entry,e.biologicalSex?r.biologicalSex=e.biologicalSex:r.taxon==="NCBITaxon:9606"&&(r.biologicalSex="PATO:0000384")):this.biologicalSex&&(r.biologicalSex=this.biologicalSex),this.mapManager.loadMap(r,this.$refs.display,this.eventCallback(),{minZoom:this.minZoom,tooltips:this.tooltips,minimap:t}).then(n=>{this.mapImp=n,this.serverURL=this.mapImp.makeServerUrl("").slice(0,-1);let i=this.mapImp.details.version;this.setFlightPathInfo(i),this.onFlatmapReady(),this._stateToBeSet?this.restoreMapState(this._stateToBeSet):this.restoreMapState(e)})}else e&&(this._stateToBeSet={viewport:e.viewport,searchTerm:e.searchTerm},this.mapImp&&!this.loading&&this.restoreMapState(this._stateToBeSet))},computePathControlsMaximumHeight(){const e=this.$refs.display;if(e){const t=getComputedStyle(e),r=parseInt(t.paddingTop)+parseInt(t.paddingBottom),n=e.clientHeight-r;this.pathwaysMaxHeight=n-170}},mapResize:function(){try{this.computePathControlsMaximumHeight(),this.mapImp&&(this.mapImp.resize(),this.showMinimap(this.displayMinimap),this.mapImp._minimap&&this.mapImp._minimap._miniMap.resize())}catch{console.error("Map resize error")}},onFlatmapReady:function(){this.sensor=new Apr(this.$refs.display,this.mapResize),this.mapImp.options&&this.mapImp.options.style==="functional"&&(this.isFC=!0),this.mapImp.setBackgroundOpacity(1),this.backgroundChangeCallback(this.currentBackground),this.pathways=this.mapImp.pathTypes(),this.mapImp.enableCentrelines(!1),this.processSystems(this.mapImp.getSystems()),this.processTaxon(this.flatmapAPI,this.mapImp.taxonIdentifiers),this.containsAlert="alert"in this.mapImp.featureFilterRanges(),this.addResizeButtonToMinimap(),this.loading=!1,this.computePathControlsMaximumHeight(),this.drawerOpen=!0,this.mapResize(),this.handleMapClick(),this.$emit("ready",this)},handleMapClick:function(){const e=this.mapImp._map;e&&e.on("click",t=>{this.tooltipEntry.featureId&&this.$emit("connectivity-info-close")})},showMinimap:function(e){this.mapImp&&this.mapImp.showMinimap(e)},showPathwaysDrawer:function(e){this.drawerOpen=e},searchAndShowResult:function(e,t){if(this.mapImp){if(e===void 0||e==="")return this.mapImp.clearSearchResults(),!0;{const r=this.mapImp.search(e);if(r&&r.results&&r.results.length>0){if(this.mapImp.showSearchResults(r),t&&r.results[0].featureId&&r.results[0].text){const n=this.mapImp.annotation(r.results[0].featureId);this.mapImp.showPopup(r.results[0].featureId,n.label,{className:"custom-popup",positionAtLastClick:!1,preserveSelection:!0})}return!0}else this.mapImp.clearSearchResults()}}return!1},searchSuggestions:function(e){return this.mapImp?this.mapImp.search(e):[]}},props:{entry:{type:String,required:!0},uuid:String,biologicalSex:{type:String,default:""},minZoom:{type:Number,default:4},tooltips:{type:Boolean,default:!0},helpMode:{type:Boolean,default:!1},helpModeActiveItem:{type:Number,default:0},helpModeDialog:{type:Boolean,default:!1},helpModeLastItem:{type:Boolean,default:!1},helpModeInitialIndex:{type:Number,default:0},renderAtMounted:{type:Boolean,default:!0},displayMinimap:{type:Boolean,default:!1},displayWarning:{type:Boolean,default:!1},enableOpenMapUI:{type:Boolean,default:!1},openMapOptions:{type:Array,default:function(){return[{display:"Open AC Map",key:"AC"},{display:"Open FC Map",key:"FC"},{display:"Open 3D Human Map",key:"3D"}]}},showStarInLegend:{type:Boolean,default:!1},isLegacy:{type:Boolean,default:!1},displayLatestChanges:{type:Boolean,default:!1},state:{type:Object,default:void 0},flatmapAPI:{type:String,default:"https://mapcore-demo.org/current/flatmap/v3/"},sparcAPI:{type:String,default:"https://api.sparc.science/"},disableUI:{type:Boolean,default:!1},connectivityInfoSidebar:{type:Boolean,default:!1}},provide(){return{flatmapAPI:this.flatmapAPI,sparcAPI:this.sparcAPI,$annotator:this.annotator,getFeaturesAlert:()=>this.featuresAlert,userApiKey:this.userToken}},data:function(){return{annotationEntry:{},tooltipDisplay:!1,serverURL:void 0,layers:[],pathways:[],sckanDisplay:[{label:"Display Path with SCKAN",key:"VALID"}],centreLines:[{label:"Display Nerves",key:"centrelines",enabled:!1}],systems:[],taxonConnectivity:[],pathwaysMaxHeight:1e3,hoverVisibilities:[{value:!1,ref:"markerPopover"},{value:!1,ref:"zoomInPopover"},{value:!1,ref:"zoomOutPopover"},{value:!1,ref:"zoomFitPopover"},{value:!1,ref:"openMapPopover"},{value:!1,ref:"settingsPopover"},{value:!1,ref:"checkBoxPopover"},{value:!1,ref:"warningPopover"},{value:!1,ref:"whatsNewPopover"},{value:!1,ref:"featuredMarkerPopover"},{value:!1,refs:"toolbarPopover",ref:"editPopover"},{value:!1,refs:"toolbarPopover",ref:"deletePopover"},{value:!1,refs:"toolbarPopover",ref:"pointPopover"},{value:!1,refs:"toolbarPopover",ref:"lineStringPopover"},{value:!1,refs:"toolbarPopover",ref:"polygonPopover"},{value:!1,refs:"toolbarPopover",ref:"connectionPopover"}],helpModeActiveIndex:this.helpModeInitialIndex,yellowstar:Cpr,isFC:!1,inHelp:!1,currentBackground:"white",availableBackground:["white","lightskyblue","black"],loading:!1,flatmapMarker:kpr,tooltipEntry:sjr(),connectivityTooltipVisible:!1,drawerOpen:!1,featuresAlert:void 0,flightPath3DRadio:!1,displayFlightPathOption:!1,colourRadio:!0,outlinesRadio:!0,minimapResizeShow:!1,minimapSmall:!1,currentActive:"",selectedDrawnFeature:void 0,currentHover:"",viewingModeIndex:0,viewingModes:{0:{name:"Exploration",description:"Find relevant research and view detail of neural pathways by selecting a pathway to view its connections and data sources"},1:{name:"Neuron Connection",description:"Discover Neuron connections by selecting a neuron and viewing its associated network connections"},2:{name:"Annotation",description:"View internal identifiers of features"}},drawnType:"All tools",drawnTypes:["All tools","Point","LineString","Polygon","None"],annotatedType:"Anyone",annotatedTypes:["Anyone","Me","Others"],openMapRef:void 0,backgroundIconRef:void 0,toolbarOptions:["Edit","Delete","Point","LineString","Polygon","Connection"],annotator:void 0,userInformation:void 0,activeDrawMode:void 0,activeDrawTool:void 0,featureAnnotationSubmitted:!1,drawnCreatedEvent:{},connectionEntry:{},existDrawnFeatures:[],doubleClickedFeature:!1,containsAlert:!1,alertOptions:[{label:"Display Path With Alerts",key:"alert",enabled:!0},{label:"Display Path Without Alerts",key:"withoutAlert",enabled:!0}],mapFilters:a.markRaw({alert:{with:!0,without:!0}})}},computed:{...ijr(ojr,["userToken"]),isValidDrawnCreated:function(){return Object.keys(this.drawnCreatedEvent).length>0},viewingMode:function(){return this.viewingModes[this.viewingModeIndex].name}},watch:{entry:function(){this.state||this.createFlatmap()},helpMode:function(e,t){e!==t&&this.setHelpMode(e)},helpModeActiveItem:function(){this.helpMode&&(this.helpModeActiveIndex+=1,this.setHelpMode(this.helpMode))},state:{handler:function(e,t){e!==t&&(this.mapManager?this.setState(e):this.setStateRequired=!0)},immediate:!0,deep:!0},viewingMode:function(e){e==="Annotation"?(this.loading=!0,this.annotator.authenticate(this.userToken).then(t=>{t.name&&t.email&&(this.showAnnotator(!0),this.userInformation=t,this.setFeatureAnnotated(),this.existDrawnFeatures.length===0&&this.addAnnotationFeature()),this.loading=!1})):this.showAnnotator(!1)},disableUI:function(e){e&&this.closeTooltip()}},mounted:function(){this.openMapRef=a.shallowRef(this.$refs.openMapRef),this.backgroundIconRef=a.shallowRef(this.$refs.backgroundIconRef),this.tooltipWait=[],this.tooltipWait.length=this.hoverVisibilities.length,this.mapManager=new k1e(this.flatmapAPI),this.flatmapQueries=new Mpr,this.flatmapQueries.initialise(this.flatmapAPI),this.state?this.setStateRequired&&this.setState(this.state):this.renderAtMounted&&this.createFlatmap()}},kp=e=>(a.pushScopeId("data-v-c006c375"),e=e(),a.popScopeId(),e),cjr={class:"flatmap-container",ref:"flatmapContainer","element-loading-text":"Loading...","element-loading-background":"rgba(0, 0, 0, 0.3)"},ujr={style:{height:"100%",width:"100%",position:"relative","overflow-y":"none"}},djr={style:{height:"100%",width:"100%"},ref:"display"},hjr={class:"beta-popovers"},pjr=kp(()=>a.createElementVNode("a",{href:"https://sparc.science/resources/1ZUKXU2YmLcn2reCyXjlew",target:"_blank"}," ApiNATOMY ",-1)),fjr=kp(()=>a.createElementVNode("a",{href:"https://sparc.science/resources/6eg3VpJbwQR4B84CjrvmyD",target:"_blank"}," SCKAN ",-1)),mjr=kp(()=>a.createElementVNode("a",{href:"https://sparc.science/resources/1ZUKXU2YmLcn2reCyXjlew",target:"_blank"}," ApiNATOMY ",-1)),gjr=kp(()=>a.createElementVNode("a",{href:"https://sparc.science/resources/6eg3VpJbwQR4B84CjrvmyD",target:"_blank"}," SCKAN ",-1)),yjr=kp(()=>a.createElementVNode("span",{class:"warning-text"},"Legacy Map",-1)),Tjr={key:1,class:"warning-text"},vjr=kp(()=>a.createElementVNode("span",{class:"warning-text"},"What's new?",-1)),bjr=kp(()=>a.createElementVNode("b",null,"Neuron Connection mode",-1)),Qjr=kp(()=>a.createElementVNode("p",null," You can now view the network of neurons connected to a selected neuron. This mode is located in the settings at the bottom right. Once discovery mode is on, click on a neuron to see its connections. ",-1)),xjr=kp(()=>a.createElementVNode("b",null,"Now can display up to 6 panes",-1)),_jr=kp(()=>a.createElementVNode("p",null," You can now display up to 6 panes in the flatmap. This allows you to compare between different datasets and/or different views of the same dataset. ",-1)),wjr={class:"bottom-right-control"},Ljr=kp(()=>a.createElementVNode("div",null,[a.createTextVNode(" Fit to "),a.createElementVNode("br"),a.createTextVNode(" window ")],-1)),Sjr=["innerHTML"],kjr=["innerHTML"],Mjr={style:{"margin-bottom":"2px"}},Cjr={key:0,class:"viewing-mode-title"},Ejr=["onClick"],Ajr=["onClick"];function Ojr(e,t,r,n,i,o){const s=a.resolveComponent("map-svg-sprite-color"),l=gCe,c=Mu,u=AB,d=vne,h=a.resolveComponent("DrawToolbar"),p=a.resolveComponent("map-svg-icon"),f=fAe,m=a.resolveComponent("tree-controls"),g=pAe,T=fCe,y=NEe,v=jM,Q=UM,x=rie,L=EB,w=eAe,k=tAe,M=a.resolveComponent("Tooltip"),E=uAe,O=iie;return a.withDirectives((a.openBlock(),a.createElementBlock("div",cjr,[a.createVNode(s),a.createElementVNode("div",ujr,[a.createElementVNode("div",djr,null,512),a.withDirectives(a.createElementVNode("div",hjr,[a.createElementVNode("div",null,[a.createVNode(u,{placement:"right","popper-class":"warning-popper flatmap-popper",teleported:!1,visible:e.hoverVisibilities[7].value,ref:"warningPopover"},{reference:a.withCtx(()=>[r.displayWarning?(a.openBlock(),a.createElementBlock("div",{key:0,class:"warning-icon",onMouseover:t[7]||(t[7]=P=>o.showTooltip(6)),onMouseout:t[8]||(t[8]=P=>o.hideTooltip(6))},[a.createVNode(c,null,{default:a.withCtx(()=>[a.createVNode(l)]),_:1}),r.isLegacy?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[yjr,a.createElementVNode("div",{class:"latest-map-text",onClick:t[6]||(t[6]=(...P)=>o.viewLatestMap&&o.viewLatestMap(...P))}," Click here for the latest map ")],64)):(a.openBlock(),a.createElementBlock("span",Tjr,"Beta"))],32)):a.createCommentVNode("",!0)]),default:a.withCtx(()=>[r.isLegacy?(a.openBlock(),a.createElementBlock("p",{key:0,onMouseover:t[0]||(t[0]=P=>o.showTooltip(7)),onMouseout:t[1]||(t[1]=P=>o.hideTooltip(7))}," This is a legacy map, you may view the latest map instead. ",32)):e.isFC?(a.openBlock(),a.createElementBlock("p",{key:1,onMouseover:t[2]||(t[2]=P=>o.showTooltip(7)),onMouseout:t[3]||(t[3]=P=>o.hideTooltip(7))},[a.createTextVNode(" This map displays the connectivity of individual neurons. Specifically, those which align with (parts of) the neuron populations from the "),pjr,a.createTextVNode(" models available in "),fjr,a.createTextVNode(". ")],32)):(a.openBlock(),a.createElementBlock("p",{key:2,onMouseover:t[4]||(t[4]=P=>o.showTooltip(6)),onMouseout:t[5]||(t[5]=P=>o.hideTooltip(6))},[a.createTextVNode(" This map displays the connectivity of neuron populations. Specifically, those from the primarily rat-based "),mjr,a.createTextVNode(" models available in "),gjr,a.createTextVNode(". New connectivity and species specificity will be added as the SPARC program progresses. ")],32))]),_:1},8,["visible"])]),r.displayLatestChanges?(a.openBlock(),a.createBlock(u,{key:0,placement:"right",teleported:!1,trigger:"manual","popper-class":"warning-popper flatmap-popper",visible:e.hoverVisibilities[8].value,ref:"whatsNewPopover"},{reference:a.withCtx(()=>[r.displayLatestChanges?(a.openBlock(),a.createElementBlock("div",{key:0,class:"latest-changesicon",onMouseover:t[9]||(t[9]=P=>o.showTooltip(8)),onMouseout:t[10]||(t[10]=P=>o.hideTooltip(8))},[a.createVNode(c,null,{default:a.withCtx(()=>[a.createVNode(l)]),_:1}),vjr],32)):a.createCommentVNode("",!0)]),default:a.withCtx(()=>[bjr,Qjr,xjr,_jr]),_:1},8,["visible"])):a.createCommentVNode("",!0)],512),[[a.vShow,!r.disableUI]]),a.withDirectives(a.createVNode(c,{class:a.normalizeClass(["minimap-resize",{enlarge:e.minimapSmall,shrink:!e.minimapSmall}]),ref:"minimapResize",onClick:o.closeMinimap},{default:a.withCtx(()=>[a.createVNode(d)]),_:1},8,["class","onClick"]),[[a.vShow,e.minimapResizeShow]]),o.viewingMode==="Annotation"&&e.userInformation&&!r.disableUI?(a.openBlock(),a.createBlock(h,{key:0,mapCanvas:{containerHTML:this.$el,class:".maplibregl-canvas"},toolbarOptions:e.toolbarOptions,drawnType:e.drawnType,activeDrawTool:e.activeDrawTool,activeDrawMode:e.activeDrawMode,newlyDrawnEntry:e.drawnCreatedEvent,connectionEntry:e.connectionEntry,hoverVisibilities:e.hoverVisibilities,onClickToolbar:o.toolbarEvent,onFeatureTooltip:o.connectedFeatureTooltip,onConfirmDrawn:o.confirmDrawnFeature,onCancelDrawn:o.cancelDrawnFeature,onShowTooltip:o.showTooltip,onHideTooltip:o.hideTooltip,ref:"toolbarPopover"},null,8,["mapCanvas","toolbarOptions","drawnType","activeDrawTool","activeDrawMode","newlyDrawnEntry","connectionEntry","hoverVisibilities","onClickToolbar","onFeatureTooltip","onConfirmDrawn","onCancelDrawn","onShowTooltip","onHideTooltip"])):a.createCommentVNode("",!0),a.withDirectives(a.createElementVNode("div",wjr,[a.createVNode(u,{content:"Zoom in",placement:"left",teleported:!1,trigger:"manual",width:"70","popper-class":"flatmap-popper",visible:e.hoverVisibilities[1].value,ref:"zoomInPopover"},{reference:a.withCtx(()=>[a.createVNode(p,{icon:"zoomIn",class:"icon-button zoomIn",onClick:t[11]||(t[11]=P=>o.zoomIn()),onMouseover:t[12]||(t[12]=P=>o.showTooltip(1)),onMouseout:t[13]||(t[13]=P=>o.hideTooltip(1))})]),_:1},8,["visible"]),a.createVNode(u,{content:"Zoom out",placement:"top-end",teleported:!1,trigger:"manual",width:"70","popper-class":"flatmap-popper",visible:e.hoverVisibilities[2].value,ref:"zoomOutPopover"},{reference:a.withCtx(()=>[a.createVNode(p,{icon:"zoomOut",class:"icon-button zoomOut",onClick:t[14]||(t[14]=P=>o.zoomOut()),onMouseover:t[15]||(t[15]=P=>o.showTooltip(2)),onMouseout:t[16]||(t[16]=P=>o.hideTooltip(2))})]),_:1},8,["visible"]),a.createVNode(u,{content:"Reset",placement:"top",teleported:!1,trigger:"manual",width:"70","popper-class":"flatmap-popper",visible:e.hoverVisibilities[3].value,ref:"zoomFitPopover"},{reference:a.withCtx(()=>[a.createVNode(p,{icon:"fitWindow",class:"icon-button fitWindow",onClick:t[17]||(t[17]=P=>o.resetView()),onMouseover:t[18]||(t[18]=P=>o.showTooltip(3)),onMouseout:t[19]||(t[19]=P=>o.hideTooltip(3))})]),default:a.withCtx(()=>[Ljr]),_:1},8,["visible"])],512),[[a.vShow,!r.disableUI]]),a.createVNode(u,{content:"Change pathway visibility",placement:"right",teleported:!1,trigger:"manual",offset:-18,"popper-class":"flatmap-popper",visible:e.hoverVisibilities[6].value,ref:"checkBoxPopover"},{reference:a.withCtx(()=>[a.withDirectives(a.createElementVNode("div",{class:a.normalizeClass(["pathway-location",{open:e.drawerOpen,close:!e.drawerOpen}])},[a.withDirectives((a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["pathway-container",{open:e.drawerOpen,close:!e.drawerOpen}]),style:a.normalizeStyle({"max-height":e.pathwaysMaxHeight+"px"})},[e.isFC?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(f,{key:0,class:"svg-legends-container"})),r.showStarInLegend?(a.openBlock(),a.createBlock(u,{key:1,content:"Location of the featured dataset",placement:"right",teleported:!0,trigger:"manual",width:"max-content",offset:-10,"popper-class":"flatmap-popper flatmap-teleport-popper",visible:e.hoverVisibilities[9].value,ref:"featuredMarkerPopover"},{reference:a.withCtx(()=>[a.withDirectives(a.createElementVNode("div",{class:"yellow-star-legend",innerHTML:e.yellowstar,onMouseover:t[20]||(t[20]=P=>o.showTooltip(9)),onMouseout:t[21]||(t[21]=P=>o.hideTooltip(9))},null,40,Sjr),[[E,void 0,"featuredMarkerPopover"]])]),_:1},8,["visible"])):a.createCommentVNode("",!0),a.createVNode(u,{content:"Find these markers for data. The number inside the markers is the number of datasets available for each marker.",placement:"right",teleported:!1,width:"200",trigger:"manual","popper-class":"flatmap-popper flatmap-marker-popper",visible:e.hoverVisibilities[5].value,ref:"markerPopover"},{reference:a.withCtx(()=>[a.withDirectives(a.createElementVNode("div",{class:"flatmap-marker-help",innerHTML:e.flatmapMarker},null,8,kjr),[[a.vShow,e.hoverVisibilities[0].value],[E,void 0,"markerPopover"]])]),_:1},8,["visible"]),e.isFC&&e.systems&&e.systems.length>0?(a.openBlock(),a.createBlock(m,{key:2,class:"treeControls",mapType:"flatmap",title:"Systems",treeData:e.systems,active:e.currentActive,hover:e.currentHover,onCheckChanged:o.systemSelected,onCheckAll:o.checkAllSystems,onChangeActive:o.ftuSelected,ref:"treeControls"},null,8,["treeData","active","hover","onCheckChanged","onCheckAll","onChangeActive"])):a.createCommentVNode("",!0),e.containsAlert&&e.alertOptions?(a.openBlock(),a.createBlock(g,{title:"Alert",labelKey:"label",identifierKey:"key",selections:e.alertOptions,onChanged:o.alertSelected,onCheckboxMouseEnter:o.alertMouseEnterEmitted,onSelectionsDataChanged:o.onSelectionsDataChanged,onCheckAll:o.checkAllAlerts,ref:"alertSelection",key:"alertSelection"},null,8,["selections","onChanged","onCheckboxMouseEnter","onSelectionsDataChanged","onCheckAll"])):a.createCommentVNode("",!0),e.pathways&&e.pathways.length>0?(a.openBlock(),a.createBlock(g,{title:"Pathways",labelKey:"label",identifierKey:"type",colourStyle:"line",selections:e.pathways,onChanged:o.pathwaysSelected,onSelectionsDataChanged:o.onSelectionsDataChanged,onCheckAll:o.checkAllPathways,ref:"pathwaysSelection",key:"pathwaysSelection"},null,8,["selections","onChanged","onSelectionsDataChanged","onCheckAll"])):a.createCommentVNode("",!0),!e.isFC&&e.taxonConnectivity&&e.taxonConnectivity.length>0?(a.openBlock(),a.createBlock(g,{title:"Studied in",labelKey:"label",identifierKey:"taxon",helpMessage:"Evidence exists that this set of neuron populations have been studied in the given species.",selections:e.taxonConnectivity,onChanged:o.taxonsSelected,onCheckboxMouseEnter:o.taxonMouseEnterEmitted,onSelectionsDataChanged:o.onSelectionsDataChanged,onCheckAll:o.checkAllTaxons,ref:"taxonSelection",key:"taxonSelection"},null,8,["selections","onChanged","onCheckboxMouseEnter","onSelectionsDataChanged","onCheckAll"])):a.createCommentVNode("",!0),!e.isFC&&e.centreLines&&e.centreLines.length>0?(a.openBlock(),a.createBlock(g,{title:"Nerves",labelKey:"label",identifierKey:"key",selections:e.centreLines,onChanged:o.centreLinesSelected,onSelectionsDataChanged:o.onSelectionsDataChanged,ref:"centrelinesSelection",key:"centrelinesSelection"},null,8,["selections","onChanged","onSelectionsDataChanged"])):a.createCommentVNode("",!0)],6)),[[E,void 0,"checkBoxPopover"]]),a.createElementVNode("div",{onClick:t[22]||(t[22]=(...P)=>o.toggleDrawer&&o.toggleDrawer(...P)),class:a.normalizeClass(["drawer-button",{open:e.drawerOpen,close:!e.drawerOpen}])},[a.createVNode(c,null,{default:a.withCtx(()=>[a.createVNode(T)]),_:1})],2)],2),[[a.vShow,!r.disableUI]])]),_:1},8,["visible"]),e.openMapRef?(a.openBlock(),a.createBlock(u,{key:1,ref:"open-map-popover","virtual-ref":e.openMapRef,placement:"top-start",width:"136",teleported:!1,trigger:"click","popper-class":"open-map-popper non-selectable","virtual-triggering":""},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(r.openMapOptions,P=>(a.openBlock(),a.createBlock(v,{key:P.key},{default:a.withCtx(()=>[a.createVNode(y,{type:"primary",plain:"",onClick:R=>e.$emit("open-map",P.key)},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(P.display),1)]),_:2},1032,["onClick"])]),_:2},1024))),128))]),_:1},8,["virtual-ref"])):a.createCommentVNode("",!0),a.createVNode(u,{ref:"backgroundPopover","virtual-ref":e.backgroundIconRef,placement:"top-start",width:"320",teleported:!1,trigger:"click","popper-class":"background-popper h-auto","virtual-triggering":""},{default:a.withCtx(()=>[a.createElementVNode("div",null,[a.createVNode(v,{class:"backgroundText"},{default:a.withCtx(()=>[a.createTextVNode("Viewing Mode")]),_:1}),a.createVNode(v,{class:"backgroundControl"},{default:a.withCtx(()=>[a.createElementVNode("div",Mjr,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.viewingModes,(P,R)=>(a.openBlock(),a.createElementBlock(a.Fragment,{key:P+R},[P.name===o.viewingMode?(a.openBlock(),a.createElementBlock("span",Cjr,[a.createElementVNode("b",null,a.toDisplayString(P.name),1)])):(a.openBlock(),a.createElementBlock("span",{key:1,class:"viewing-mode-unselected",onClick:B=>o.changeViewingMode(R)},a.toDisplayString(P.name),9,Ejr))],64))),128))]),a.createVNode(v,{class:"viewing-mode-description"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(e.viewingModes[e.viewingModeIndex].description),1)]),_:1})]),_:1}),o.viewingMode==="Annotation"&&e.userInformation?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[a.createVNode(v,{class:"backgroundText"},{default:a.withCtx(()=>[a.createTextVNode("Drawn By*")]),_:1}),a.createVNode(v,{class:"backgroundControl"},{default:a.withCtx(()=>[a.createVNode(L,{teleported:!1,modelValue:e.drawnType,"onUpdate:modelValue":t[23]||(t[23]=P=>e.drawnType=P),placeholder:"Select",class:"select-box","popper-class":"flatmap_dropdown",onChange:o.setDrawnType},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.drawnTypes,P=>(a.openBlock(),a.createBlock(x,{key:P,label:P,value:P},{default:a.withCtx(()=>[a.createVNode(v,null,{default:a.withCtx(()=>[a.createVNode(Q,{span:12},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(P),1)]),_:2},1024)]),_:2},1024)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])]),_:1}),a.createVNode(v,{class:"backgroundText"},{default:a.withCtx(()=>[a.createTextVNode("Annotated By*")]),_:1}),a.createVNode(v,{class:"backgroundControl"},{default:a.withCtx(()=>[a.createVNode(L,{teleported:!1,modelValue:e.annotatedType,"onUpdate:modelValue":t[24]||(t[24]=P=>e.annotatedType=P),placeholder:"Select",class:"select-box","popper-class":"flatmap_dropdown",onChange:o.setAnnotatedType},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.annotatedTypes,P=>(a.openBlock(),a.createBlock(x,{key:P,label:P,value:P},{default:a.withCtx(()=>[a.createVNode(v,null,{default:a.withCtx(()=>[a.createVNode(Q,{span:12},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(P),1)]),_:2},1024)]),_:2},1024)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])]),_:1})],64)):a.createCommentVNode("",!0),e.displayFlightPathOption?(a.openBlock(),a.createBlock(v,{key:1,class:"backgroundSpacer"})):a.createCommentVNode("",!0),e.displayFlightPathOption?(a.openBlock(),a.createBlock(v,{key:2,class:"backgroundText"},{default:a.withCtx(()=>[a.createTextVNode("Flight path display")]),_:1})):a.createCommentVNode("",!0),e.displayFlightPathOption?(a.openBlock(),a.createBlock(v,{key:3,class:"backgroundControl"},{default:a.withCtx(()=>[a.createVNode(k,{modelValue:e.flightPath3DRadio,"onUpdate:modelValue":t[25]||(t[25]=P=>e.flightPath3DRadio=P),class:"flatmap-radio",onChange:o.setFlightPath3D},{default:a.withCtx(()=>[a.createVNode(w,{label:!1},{default:a.withCtx(()=>[a.createTextVNode("2D")]),_:1}),a.createVNode(w,{label:!0},{default:a.withCtx(()=>[a.createTextVNode("3D")]),_:1})]),_:1},8,["modelValue","onChange"])]),_:1})):a.createCommentVNode("",!0),a.createVNode(v,{class:"backgroundSpacer"}),a.createVNode(v,{class:"backgroundText"},{default:a.withCtx(()=>[a.createTextVNode("Organs display")]),_:1}),a.createVNode(v,{class:"backgroundControl"},{default:a.withCtx(()=>[a.createVNode(k,{modelValue:e.colourRadio,"onUpdate:modelValue":t[26]||(t[26]=P=>e.colourRadio=P),class:"flatmap-radio",onChange:o.setColour},{default:a.withCtx(()=>[a.createVNode(w,{label:!0},{default:a.withCtx(()=>[a.createTextVNode("Colour")]),_:1}),a.createVNode(w,{label:!1},{default:a.withCtx(()=>[a.createTextVNode("Greyscale")]),_:1})]),_:1},8,["modelValue","onChange"])]),_:1}),a.createVNode(v,{class:"backgroundSpacer"}),a.createVNode(v,{class:"backgroundText"},{default:a.withCtx(()=>[a.createTextVNode("Outlines display")]),_:1}),a.createVNode(v,{class:"backgroundControl"},{default:a.withCtx(()=>[a.createVNode(k,{modelValue:e.outlinesRadio,"onUpdate:modelValue":t[27]||(t[27]=P=>e.outlinesRadio=P),class:"flatmap-radio",onChange:o.setOutlines},{default:a.withCtx(()=>[a.createVNode(w,{label:!0},{default:a.withCtx(()=>[a.createTextVNode("Show")]),_:1}),a.createVNode(w,{label:!1},{default:a.withCtx(()=>[a.createTextVNode("Hide")]),_:1})]),_:1},8,["modelValue","onChange"])]),_:1}),a.createVNode(v,{class:"backgroundSpacer"}),a.createVNode(v,{class:"backgroundText"},{default:a.withCtx(()=>[a.createTextVNode("Change background")]),_:1}),a.createVNode(v,{class:"backgroundControl"},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.availableBackground,P=>(a.openBlock(),a.createElementBlock("div",{key:P,class:a.normalizeClass(["backgroundChoice",P,P==e.currentBackground?"active":""]),onClick:R=>o.backgroundChangeCallback(P)},null,10,Ajr))),128))]),_:1})])]),_:1},8,["virtual-ref"]),a.withDirectives(a.createElementVNode("div",{class:a.normalizeClass(["settings-group",{open:e.drawerOpen,close:!e.drawerOpen}])},[a.createVNode(v,null,{default:a.withCtx(()=>[a.createVNode(u,{visible:e.hoverVisibilities[4].value,content:"Open new map",placement:"right",teleported:!1,"popper-class":"flatmap-popper",ref:"openMapPopover"},{reference:a.withCtx(()=>[r.enableOpenMapUI&&r.openMapOptions.length>0?(a.openBlock(),a.createBlock(p,{key:0,ref:"openMapRef",icon:"openMap",class:"icon-button open-map-button",onMouseover:t[28]||(t[28]=P=>o.showTooltip(4)),onMouseout:t[29]||(t[29]=P=>o.hideTooltip(4))},null,512)):a.createCommentVNode("",!0)]),_:1},8,["visible"])]),_:1}),a.createVNode(v,null,{default:a.withCtx(()=>[a.createVNode(u,{content:"Change settings",placement:"right",visible:e.hoverVisibilities[5].value,teleported:!1,trigger:"manual","popper-class":"flatmap-popper",ref:"settingsPopover"},{reference:a.withCtx(()=>[a.createVNode(p,{ref:"backgroundIconRef",icon:"changeBckgd",class:"icon-button",onMouseover:t[30]||(t[30]=P=>o.showTooltip(5)),onMouseout:t[31]||(t[31]=P=>o.hideTooltip(5))},null,512)]),_:1},8,["visible"])]),_:1})],2),[[a.vShow,!r.disableUI]]),a.withDirectives(a.createVNode(M,{ref:"tooltip",class:"tooltip",annotationEntry:e.annotationEntry,tooltipEntry:e.tooltipEntry,annotationDisplay:o.viewingMode==="Annotation",onAnnotation:o.commitAnnotationEvent},null,8,["annotationEntry","tooltipEntry","annotationDisplay","onAnnotation"]),[[a.vShow,e.tooltipDisplay&&!r.connectivityInfoSidebar]])])])),[[O,e.loading]])}const V1e=PB(ljr,[["render",Ojr],["__scopeId","data-v-c006c375"]]);function Ijr(e){return{all:e=e||new Map,on:function(t,r){var n=e.get(t);n?n.push(r):e.set(t,[r])},off:function(t,r){var n=e.get(t);n&&(r?n.splice(n.indexOf(r)>>>0,1):e.set(t,[]))},emit:function(t,r){var n=e.get(t);n&&n.slice().map(function(i){i(r)}),(n=e.get("*"))&&n.slice().map(function(i){i(t,r)})}}}const Dje=new Ijr,zje={"NCBITaxon:10114":"01fedbf9-d783-509c-a10c-827941ab13da","NCBITaxon:9823":"a336ac04-24db-561f-a25f-1c994fe17410","NCBITaxon:9606":"42ed6323-f645-5fbe-bada-9581819cf689","NCBITaxon:10090":"25285fab-48a0-5620-a6a0-f9a0374837d5","NCBITaxon:9685":"73060497-46a6-52bf-b975-cac511c127cb"},Pjr={name:"MultiFlatmapVuer",components:{Col:UM,Row:jM,Option:rie,Select:EB,Popover:AB,FlatmapVuer:V1e},beforeMount(){this._resolveList=[],this._initialised=!1},mounted:function(){this.initialise(),Dje.on("onActionClick",e=>{this.resourceSelected(e)}),Dje.on("open-pubmed-url",e=>{this.$emit("open-pubmed-url",e)})},methods:{initialise:function(){return new Promise(e=>{this.requireInitialisation?(this.requireInitialisation=!1,fetch(this.flatmapAPI).then(t=>t.json()).then(t=>{Object.keys(this.availableSpecies).forEach(n=>{const i=this.availableSpecies[n].uuid;if(i&&t.map(o=>o.uuid).indexOf(i)>0)this.speciesList[n]=a.reactive(this.availableSpecies[n]);else for(let o=0;o<t.length;o++)if(this.availableSpecies[n].taxo===t[o].taxon)if(this.availableSpecies[n].biologicalSex){if(t[o].biologicalSex&&t[o].biologicalSex===this.availableSpecies[n].biologicalSex){this.speciesList[n]=a.reactive(this.availableSpecies[n]);break}}else{this.speciesList[n]=a.reactive(this.availableSpecies[n]);break}});let r=this.initial;if(this.state){const n=this.state.state;(!n||!n.uuid&&!n.entry)&&this.state.species?r=this.state.species:r=void 0}r&&(r&&this.speciesList[r]!==void 0?this.activeSpecies=r:this.activeSpecies=Object.keys(this.speciesList)[0],this.setSpecies(this.activeSpecies,this.state?this.state.state:void 0,5)),this._initialised=!0,e(),this._resolveList.forEach(n=>{n()})})):this._initialised?e():this._resolveList.push(e)})},resourceSelected:function(e){this.$emit("resource-selected",e)},FlatmapReady:function(e){this.$emit("ready",e)},getCurrentFlatmap:function(){return this.$refs[this.activeSpecies][0]},panZoomCallback:function(e){this.$emit("pan-zoom-callback",e)},onConnectivityInfoClose:function(){this.$emit("connectivity-info-close")},onConnectivityInfoOpen:function(e){this.$emit("connectivity-info-open",e)},onSelectionsDataChanged:function(e){this.$emit("pathway-selection-changed",e)},showPopup:function(e,t,r){this.getCurrentFlatmap().showPopup(e,t,r)},showMarkerPopup:function(e,t,r){this.getCurrentFlatmap().showMarkerPopup(e,t,r)},setSpecies:function(e,t,r){if(this.$refs&&e in this.$refs)this.activeSpecies=e,this.$refs[this.activeSpecies][0].createFlatmap(t),this.$emit("flatmapChanged",this.activeSpecies);else if(r){const n=r-1;n>=0&&this.$nextTick(()=>{this.setSpecies(e,t,n)})}},viewLatestMap:function(e){const t=Object.keys(this.speciesList);for(let r=0;r<t.length;r++){const n=this.speciesList[t[r]];if(!n.isLegacy&&n.taxo===e.entry&&n.biologicalSex===e.biologicalSex){this.setSpecies(t[r],e,0);return}}},createLegacyEntry:function(e,t,r){if(r&&t){let n="Legacy";return e.species&&(e.species.slice(0,6)==="Legacy"?n=e.species:n=n+` ${e.species}`),this.speciesList[n]=a.reactive({taxo:t,isLegacy:!0,displayWarning:!0}),{species:n,state:{entry:t,uuid:r,viewport:e.state.viewport,searchTerm:e.state.searchTerm}}}},updateState:function(e){return new Promise(t=>{if(e&&e.state){const r=e.state;if(r.uuid){if(r.entry)return new Promise(()=>{const n=new k1e(this.flatmapAPI),i={taxon:r.entry};r.biologicalSex&&(i.biologicalSex=r.biologicalSex),n.findMap_(i).then(o=>{if(o.uuid!==r.uuid)return this.createLegacyEntry(e,r.entry,r.uuid)}).then(o=>{t(o||e)}).catch(()=>{t(e)})})}else if(r.entry){const n=r.entry in zje?zje[r.entry]:void 0,i=this.createLegacyEntry(e,r.entry,n);t(i||e)}}t(e)})},getState:function(){let e={species:this.activeSpecies,state:void 0},t=this.getCurrentFlatmap();return e.state=t.getState(),e},setState:function(e){e&&this.updateState(e).then(t=>{this.initialise().then(()=>{t.species&&t.species!==this.activeSpecies?this.setSpecies(t.species,t.state,5):t.state&&this.getCurrentFlatmap().setState(t.state)})})},activateTooltipByIndex:function(e){return e===this.helpModeActiveItem&&this.helpMode},onHelpModeLastItem:function(e){e&&this.$emit("help-mode-last-item",!0)},onTooltipShown:function(){this.$emit("shown-tooltip")},onMapTooltipShown:function(){this.$emit("shown-map-tooltip")}},props:{initial:{type:String,default:""},minZoom:{type:Number,default:4},renderAtMounted:{type:Boolean,default:!1},helpMode:{type:Boolean,default:!1},helpModeActiveItem:{type:Number,default:0},helpModeDialog:{type:Boolean,default:!1},helpModeLastItem:{type:Boolean,default:!1},displayMinimap:{type:Boolean,default:!1},showStarInLegend:{type:Boolean,default:!1},enableOpenMapUI:{type:Boolean,default:!1},openMapOptions:{type:Array},availableSpecies:{type:Object,default:function(){return{"Human Female":{taxo:"NCBITaxon:9606",biologicalSex:"PATO:0000383",iconClass:"mapicon-icon_human",displayWarning:!0},"Human Male":{taxo:"NCBITaxon:9606",biologicalSex:"PATO:0000384",iconClass:"mapicon-icon_human",displayWarning:!0},Rat:{taxo:"NCBITaxon:10114",iconClass:"mapicon-icon_rat",displayLatestChanges:!0},Mouse:{taxo:"NCBITaxon:10090",iconClass:"mapicon-icon_mouse",displayWarning:!0},Pig:{taxo:"NCBITaxon:9823",iconClass:"mapicon-icon_pig",displayWarning:!0},Cat:{taxo:"NCBITaxon:9685",iconClass:"mapicon-icon_cat",displayWarning:!0}}}},state:{type:Object,default:void 0},flatmapAPI:{type:String,default:"https://mapcore-demo.org/current/flatmap/v3/"},sparcAPI:{type:String,default:"https://api.sparc.science/"},disableUI:{type:Boolean,default:!1},connectivityInfoSidebar:{type:Boolean,default:!1}},data:function(){return{activeSpecies:void 0,speciesList:{},requireInitialisation:!0}},watch:{state:{handler:function(e){this.setState(e)},immediate:!0,deep:!0}}},Vjr=e=>(a.pushScopeId("data-v-c373f9aa"),e=e(),a.popScopeId(),e),Hjr={class:"multi-container",ref:"multiContainer"},Rjr={key:0,style:{position:"absolute","z-index":"10"}},Njr=Vjr(()=>a.createElementVNode("div",{class:"species-display-text"},"Species",-1)),Bjr={class:"select-box-icon"};function Fjr(e,t,r,n,i,o){const s=rie,l=EB,c=AB,u=V1e;return a.openBlock(),a.createElementBlock("div",Hjr,[r.disableUI?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",Rjr,[Njr,a.createVNode(c,{content:"Select a species",placement:"right",trigger:"manual","popper-class":"flatmap-popper flatmap-teleport-popper right-popper",width:"max-content",visible:o.activateTooltipByIndex(0),teleported:!1,ref:"selectPopover"},{reference:a.withCtx(()=>[a.createVNode(l,{id:"flatmap-select",teleported:!1,modelValue:e.activeSpecies,"onUpdate:modelValue":t[0]||(t[0]=d=>e.activeSpecies=d),placeholder:"Select",class:"select-box","popper-class":"flatmap-dropdown",onChange:o.setSpecies},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.speciesList,(d,h)=>(a.openBlock(),a.createBlock(s,{key:h,label:h,value:h},{default:a.withCtx(()=>[a.createElementVNode("span",Bjr,[a.createElementVNode("i",{class:a.normalizeClass(d.iconClass)},null,2)]),a.createTextVNode(" "+a.toDisplayString(h),1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])]),_:1},8,["visible"])])),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.speciesList,(d,h)=>a.withDirectives((a.openBlock(),a.createBlock(u,{key:h,entry:d.taxo,uuid:d.uuid,biologicalSex:d.biologicalSex,displayWarning:d.displayWarning,displayLatestChanges:d.displayLatestChanges,isLegacy:d.isLegacy,ref_for:!0,ref:h,enableOpenMapUI:r.enableOpenMapUI,openMapOptions:r.openMapOptions,disableUI:r.disableUI,onViewLatestMap:o.viewLatestMap,onResourceSelected:o.resourceSelected,onReady:o.FlatmapReady,onPanZoomCallback:o.panZoomCallback,connectivityInfoSidebar:r.connectivityInfoSidebar,onConnectivityInfoOpen:o.onConnectivityInfoOpen,onConnectivityInfoClose:o.onConnectivityInfoClose,onOpenMap:t[1]||(t[1]=p=>e.$emit("open-map",p)),onPathwaySelectionChanged:o.onSelectionsDataChanged,minZoom:r.minZoom,helpMode:e.activeSpecies==h&&r.helpMode,helpModeActiveItem:r.helpModeActiveItem,helpModeDialog:r.helpModeDialog,helpModeInitialIndex:-2,onHelpModeLastItem:o.onHelpModeLastItem,onShownTooltip:o.onTooltipShown,onShownMapTooltip:o.onMapTooltipShown,renderAtMounted:r.renderAtMounted,displayMinimap:r.displayMinimap,showStarInLegend:r.showStarInLegend,style:{height:"100%"},flatmapAPI:r.flatmapAPI,sparcAPI:r.sparcAPI},null,8,["entry","uuid","biologicalSex","displayWarning","displayLatestChanges","isLegacy","enableOpenMapUI","openMapOptions","disableUI","onViewLatestMap","onResourceSelected","onReady","onPanZoomCallback","connectivityInfoSidebar","onConnectivityInfoOpen","onConnectivityInfoClose","onPathwaySelectionChanged","minZoom","helpMode","helpModeActiveItem","helpModeDialog","onHelpModeLastItem","onShownTooltip","onShownMapTooltip","renderAtMounted","displayMinimap","showStarInLegend","flatmapAPI","sparcAPI"])),[[a.vShow,e.activeSpecies==h]])),128))],512)}const Djr=PB(Pjr,[["render",Fjr],["__scopeId","data-v-c373f9aa"]]),zjr={name:"Flatmap",mixins:[eQ,Mwe],components:{FlatmapVuer:V1e,HelpModeDialog:$re},methods:{getState:function(){return this.$refs.flatmap.getState()},search:function(e){return this.$refs.flatmap.searchAndShowResult(e)},getFlatmapImp(){var e;return(e=this.$refs.flatmap)==null?void 0:e.mapImp},flatmaprResourceSelected:function(e,t){if(this.resourceSelected(e,t,this.$refs.flatmap.viewingMode==="Exploration"),t.eventType==="click"&&t.feature.type==="feature"){const r={label:t.label||"",id:t.feature.id||"",featureId:t.feature.featureId||"",taxonomy:t.taxonomy||"",resources:t.resource.join(", ")},n=eye(r);V1.sendEvent({event:"interaction_event",event_name:"portal_maps_connectivity",category:n,location:e+" "+this.$refs.flatmap.viewingMode})}},flatmapReadyCall:function(e){let t={id:this.entry.id,prov:this.getFlatmapImp().provenance};vo.emit("mapImpProv",t),this.$emit("flatmap-provenance-ready",t),this.getAvailableTerms(),this.entry.resource==="FunctionalConnectivity"&&this.flatmapReadyForMarkerUpdates(e)},onPathwaySelectionChanged:function(e){const{label:t,property:r,checked:n,selectionsTitle:i}=e;V1.sendEvent({event:"interaction_event",event_name:"portal_maps_pathway_change",category:t+" ["+r+"] "+n,location:i})},highlightFeatures:function(e){let t=e.name;const r=this.$refs.flatmap.mapImp;if(t){const n=r.search(t);n.featureIds[0]&&r.highlightFeatures([r.modelForFeature(n.featureIds[0])])}},searchSuggestions:function(e,t){e&&this.$refs.flatmap.mapImp&&this.$refs.flatmap.mapImp.search(e).__featureIds.forEach(n=>{const i=this.$refs.flatmap.mapImp.annotation(n);i&&i.label&&t.push(i.label)})},zoomToFeatures:function(e,t){let r=e.name;const n=this.$refs.flatmap.mapImp;if(r){const i=n.search(r);if(i.featureIds.length){let o=n.modelForFeature(i.featureIds[0]);o?(t&&n.selectFeatures(o),n.zoomToFeatures(o)):n.clearSearchResults()}}else n.clearSearchResults()}},computed:{facetSpecies(){return this.settingsStore.facets.species}},mounted:function(){this.getAvailableTerms(),vo.on("markerUpdate",()=>{this.flatmapMarkerUpdate(void 0)})}},jjr={class:"viewer-container"};function Ujr(e,t,r,n,i,o){const s=a.resolveComponent("FlatmapVuer"),l=a.resolveComponent("HelpModeDialog");return a.openBlock(),a.createElementBlock("div",jjr,[a.createVNode(s,{state:e.entry.state,entry:e.entry.resource,onResourceSelected:t[0]||(t[0]=c=>o.flatmaprResourceSelected(e.entry.type,c)),onPanZoomCallback:e.flatmapPanZoomCallback,name:e.entry.resource,style:{height:"100%",width:"100%"},minZoom:e.entry.minZoom,helpMode:e.helpMode,helpModeActiveItem:e.helpModeActiveItem,helpModeInitialIndex:-1,helpModeDialog:e.useHelpModeDialog,onHelpModeLastItem:e.onHelpModeLastItem,onShownTooltip:e.onTooltipShown,onShownMapTooltip:e.onMapTooltipShown,onConnectivityInfoOpen:e.onConnectivityInfoOpen,onConnectivityInfoClose:e.onConnectivityInfoClose,connectivityInfoSidebar:e.connectivityInfoSidebar,pathControls:!0,ref:"flatmap",onReady:o.flatmapReadyCall,displayMinimap:!1,displayWarning:!0,enableOpenMapUI:!0,flatmapAPI:e.flatmapAPI,sparcAPI:e.apiLocation,onOpenMap:e.openMap,onPathwaySelectionChanged:o.onPathwaySelectionChanged},null,8,["state","entry","onPanZoomCallback","name","minZoom","helpMode","helpModeActiveItem","helpModeDialog","onHelpModeLastItem","onShownTooltip","onShownMapTooltip","onConnectivityInfoOpen","onConnectivityInfoClose","connectivityInfoSidebar","onReady","flatmapAPI","sparcAPI","onOpenMap","onPathwaySelectionChanged"]),e.helpMode&&e.useHelpModeDialog?(a.openBlock(),a.createBlock(l,{key:0,ref:"flatmapHelp",flatmapRef:e.flatmapRef,lastItem:e.helpModeLastItem,onShowNext:e.onHelpModeShowNext,onFinishHelpMode:e.onFinishHelpMode},null,8,["flatmapRef","lastItem","onShowNext","onFinishHelpMode"])):a.createCommentVNode("",!0)])}const Gjr=Object.freeze(Object.defineProperty({__proto__:null,default:Zc(zjr,[["render",Ujr],["__scopeId","data-v-b68cfcba"]])},Symbol.toStringTag,{value:"Module"})),Wjr={name:"Iframe",mixins:[eQ]},qjr={class:"map-iframe-container"},Zjr=["src"];function Kjr(e,t,r,n,i,o){return a.openBlock(),a.createElementBlock("div",qjr,[a.createElementVNode("iframe",{class:"my-iframe",src:e.entry.resource.share_link},null,8,Zjr)])}const Xjr=Object.freeze(Object.defineProperty({__proto__:null,default:Zc(Wjr,[["render",Kjr],["__scopeId","data-v-60f8bfe1"]])},Symbol.toStringTag,{value:"Module"})),Yjr='<svg width="72px" height="72px" viewBox="0 0 24 24" fill="yellow"><path d="M11.0748 3.25583C11.4141 2.42845 12.5859 2.42845 12.9252 3.25583L14.6493 7.45955C14.793 7.80979 15.1221 8.04889 15.4995 8.07727L20.0303 8.41798C20.922 8.48504 21.2841 9.59942 20.6021 10.1778L17.1369 13.1166C16.8482 13.3614 16.7225 13.7483 16.8122 14.1161L17.8882 18.5304C18.1 19.3992 17.152 20.0879 16.3912 19.618L12.5255 17.2305C12.2034 17.0316 11.7966 17.0316 11.4745 17.2305L7.60881 19.618C6.84796 20.0879 5.90001 19.3992 6.1118 18.5304L7.18785 14.1161C7.2775 13.7483 7.1518 13.3614 6.86309 13.1166L3.3979 10.1778C2.71588 9.59942 3.07796 8.48504 3.96971 8.41798L8.50046 8.07727C8.87794 8.04889 9.20704 7.80979 9.35068 7.45955L11.0748 3.25583Z" stroke="#000000" stroke-width="2"/></svg>',jje=e=>{const t=[{display:"Open AC Map",key:"AC"},{display:"Open FC Map",key:"FC"},{display:"Open 3D Human Map",key:"3D"}];switch(e){case"Human Male":case"Human Female":case"Rat":t.push({display:"Open Sync Map",key:"SYNC"});break}return t},Jjr={name:"MultiFlatmap",mixins:[eQ,Mwe],components:{MultiFlatmapVuer:Djr,HelpModeDialog:$re},data:function(){return{zoomLevel:6,flatmapReady:!1,availableSpecies:$9e(),scaffoldResource:{},showStarInLegend:!1,openMapOptions:jje("Rat")}},methods:{toggleSyncMode:async function(){if(this.syncMode==!1){let e;this.activeSpecies==="Rat"?e={contextCard:void 0,discoverId:void 0,label:"Rat Body",resource:"https://mapcore-bucket1.s3.us-west-2.amazonaws.com/WholeBody/31-May-2021/ratBody/ratBody_syncmap_metadata.json",title:"View 3D scaffold",layout:"2horpanel",type:"SyncMap"}:(this.activeSpecies==="Human Male"||this.activeSpecies==="Human Female")&&("human"in this.scaffoldResource||(this.scaffoldResource.human=await i$(this.apiLocation,"human")),e={contextCardUrl:this.scaffoldResource.human.datasetInfo.contextCardUrl,discoverId:this.scaffoldResource.human.datasetInfo.discoverId,s3uri:this.scaffoldResource.human.datasetInfo.s3uri,version:this.scaffoldResource.human.datasetInfo.version,label:"Human Body",resource:this.scaffoldResource.human.url,title:"View 3D scaffold",layout:"2vertpanel",type:"SyncMap",isBodyScaffold:!0}),e&&vo.emit("SyncModeRequest",{flag:!0,action:e})}else vo.emit("SyncModeRequest",{flag:!1})},getState:function(){if(this.flatmapReady)return this.$refs.multiflatmap.getState()},flatmapPanZoomCallback:function(e){if(this.mouseHovered){const t={paneIndex:this.entry.id,eventType:"panZoom",payload:e,type:this.entry.type};this.$emit("resource-selected",t)}},search:function(e){return this.$refs.multiflatmap.getCurrentFlatmap().searchAndShowResult(e,!0)},searchSuggestions:function(e,t){const r=this.$refs.multiflatmap.getCurrentFlatmap();e&&r.mapImp&&r.mapImp.search(e).__featureIds.forEach(i=>{const o=r.mapImp.annotation(i);o&&o.label&&t.push(o.label)})},flatmaprResourceSelected:function(e,t){const r=this.$refs.multiflatmap.getCurrentFlatmap();if(this.resourceSelected(e,t,r.viewingMode==="Exploration"),t.eventType==="click"&&t.feature.type==="feature"){const n={label:t.label||"",id:t.feature.id||"",featureId:t.feature.featureId||"",taxonomy:t.taxonomy||"",resources:t.resource.join(", ")},i=eye(n);V1.sendEvent({event:"interaction_event",event_name:"portal_maps_connectivity",category:i,location:e+" "+r.viewingMode})}},onPathwaySelectionChanged:function(e){const{label:t,property:r,checked:n,selectionsTitle:i}=e;V1.sendEvent({event:"interaction_event",event_name:"portal_maps_pathway_change",category:t+" ["+r+"] "+n,location:i})},onOpenPubmedUrl:function(e){V1.sendEvent({event:"interaction_event",event_name:"portal_maps_pubmed_url",file_path:e,location:"map_popup_button"})},handleSyncPanZoomEvent:function(e){if(!this.mouseHovered&&e.type!==this.entry.type){const t=e.payload.zoom,r=e.payload.target,n=this.$el.clientHeight,i=this.$el.clientWidth,o=Math.max(i,n);let s=i/o/t;const l=n/o/t,c=[r[0]/2+.5-s/2,.5-r[1]/2-l/2];this.$refs.multiflatmap.getCurrentFlatmap().mapImp.panZoomTo(c,[s,l])}},displayTooltip:function(e){if(e){let t=e.name;t?this.search(t):this.$refs.multiflatmap.getCurrentFlatmap().mapImp.clearSearchResults()}},zoomToFeatures:function(e,t){let r=e.name;const n=this.$refs.multiflatmap.getCurrentFlatmap().mapImp;if(r){const i=n.search(r);i.featureIds.length>0?(t&&n.selectFeatures(i.featureIds),n.zoomToFeatures(i.featureIds)):n.clearSearchResults()}else n.clearSearchResults()},highlightFeatures:function(e){let t=e.name;const r=this.$refs.multiflatmap.getCurrentFlatmap().mapImp;if(t){const n=r.search(t);n.featureIds.length>0&&r.zoomToFeatures(n.featureIds,{noZoomIn:!0})}},updateProvCard:function(){const e=this.getFlatmapImp();if(e){let t={id:this.entry.id,prov:e.provenance};this.$emit("flatmap-provenance-ready",t)}},flatmapChanged:async function(e){this.activeSpecies=e,this.openMapOptions=jje(e),this.$emit("species-changed",e),this.entry.state&&this.entry.state.species===this.activeSpecies||this.syncMode==!0&&await this.toggleSyncMode(),this.updateProvCard(),this.onConnectivityInfoClose(),V1.sendEvent({event:"interaction_event",event_name:"portal_maps_species_change",category:this.activeSpecies})},multiFlatmapReady:function(e){if(e){e.enablePanZoomEvents(!0),this.flatmapReady=!0;const t=e.mapImp;this.flatmapMarkerUpdate(t),this.updateProvCard()}},getFlatmapImp:function(){if(this.entry.type==="MultiFlatmap"&&this.flatmapReady&&this.$refs.multiflatmap)return this.$refs.multiflatmap.getCurrentFlatmap().mapImp},flatmapAreaSearch(){let r={type:"Facets",label:"Unused",val:this.getFlatmapImp().visibleMarkerAnatomicalIds().map(n=>this.idNamePair[n])};vo.emit("PopoverActionClick",r)},restoreFeaturedMarkers:function(e){this.settingsStore.resetFeaturedMarkerIdentifier();const t=this.settingsStore.featuredMarkers;this.updateFeaturedMarkers(t,e)},updateFeaturedMarkers:function(e,t){this.showStarInLegend=!1;for(let r=0;r<e.length;++r)e[r]&&(this.settingsStore.featuredMarkerIdentifiers[r]||this.addFeaturedMarker(e[r],r,t)&&(this.showStarInLegend=!0))},addFeaturedMarker:function(e,t,r){const n=this.settingsStore.featuredMarkerSpecies[t];if(n&&!this.activeSpecies.startsWith(n))return!1;let i=r;if(i||(i=this.getFlatmapImp()),i){let o=document.createElement("div");o.innerHTML=Yjr;const s=i.addMarker(e,{element:o,className:"highlight-marker",cluster:!1});return this.settingsStore.updateFeaturedMarkerIdentifier({index:t,markerIdentifier:s}),!0}return!1}},computed:{facetSpecies(){return this.settingsStore.facets.species},featuredMarkers(){return this.settingsStore.featuredMarkers}},watch:{syncMode:function(e){this.$refs.multiflatmap.getCurrentFlatmap()&&this.$refs.multiflatmap.getCurrentFlatmap().enablePanZoomEvents(e)},featuredMarkers:function(e){this.flatmapReady&&this.updateFeaturedMarkers(e,void 0)}},mounted:function(){this.getAvailableTerms(),this.getFeaturedDatasets(),vo.on("markerUpdate",()=>{this.flatmapReady&&this.flatmapMarkerUpdate(this.$refs.multiflatmap.getCurrentFlatmap().mapImp)})}},$jr={class:"viewer-container"};function eUr(e,t,r,n,i,o){const s=a.resolveComponent("MultiFlatmapVuer"),l=a.resolveComponent("HelpModeDialog");return a.openBlock(),a.createElementBlock("div",$jr,[a.createVNode(s,{availableSpecies:e.availableSpecies,onFlatmapChanged:o.flatmapChanged,onReady:o.multiFlatmapReady,state:e.entry.state,onResourceSelected:t[0]||(t[0]=c=>o.flatmaprResourceSelected(e.entry.type,c)),style:{height:"100%",width:"100%"},initial:e.entry.resource,helpMode:e.helpMode,helpModeActiveItem:e.helpModeActiveItem,helpModeDialog:e.useHelpModeDialog,onHelpModeLastItem:e.onHelpModeLastItem,onShownTooltip:e.onTooltipShown,onShownMapTooltip:e.onMapTooltipShown,onConnectivityInfoOpen:e.onConnectivityInfoOpen,onConnectivityInfoClose:e.onConnectivityInfoClose,connectivityInfoSidebar:e.connectivityInfoSidebar,ref:"multiflatmap",displayMinimap:!0,showStarInLegend:e.showStarInLegend,enableOpenMapUI:!0,openMapOptions:e.openMapOptions,flatmapAPI:e.flatmapAPI,sparcAPI:e.apiLocation,onPanZoomCallback:o.flatmapPanZoomCallback,onOpenMap:e.openMap,onFinishHelpMode:e.endHelp,onPathwaySelectionChanged:o.onPathwaySelectionChanged,onOpenPubmedUrl:o.onOpenPubmedUrl},null,8,["availableSpecies","onFlatmapChanged","onReady","state","initial","helpMode","helpModeActiveItem","helpModeDialog","onHelpModeLastItem","onShownTooltip","onShownMapTooltip","onConnectivityInfoOpen","onConnectivityInfoClose","connectivityInfoSidebar","showStarInLegend","openMapOptions","flatmapAPI","sparcAPI","onPanZoomCallback","onOpenMap","onFinishHelpMode","onPathwaySelectionChanged","onOpenPubmedUrl"]),e.helpMode&&e.useHelpModeDialog?(a.openBlock(),a.createBlock(l,{key:0,ref:"multiflatmapHelp",multiflatmapRef:e.multiflatmapRef,lastItem:e.helpModeLastItem,onShowNext:e.onHelpModeShowNext,onFinishHelpMode:e.onFinishHelpMode},null,8,["multiflatmapRef","lastItem","onShowNext","onFinishHelpMode"])):a.createCommentVNode("",!0)])}const tUr=Object.freeze(Object.defineProperty({__proto__:null,default:Zc(Jjr,[["render",eUr],["__scopeId","data-v-83efd5d2"]])},Symbol.toStringTag,{value:"Module"}));function rUr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Uje={exports:{}},sl=Uje.exports={},Hf,Rf;function H1e(){throw new Error("setTimeout has not been defined")}function R1e(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?Hf=setTimeout:Hf=H1e}catch{Hf=H1e}try{typeof clearTimeout=="function"?Rf=clearTimeout:Rf=R1e}catch{Rf=R1e}})();function Gje(e){if(Hf===setTimeout)return setTimeout(e,0);if((Hf===H1e||!Hf)&&setTimeout)return Hf=setTimeout,setTimeout(e,0);try{return Hf(e,0)}catch{try{return Hf.call(null,e,0)}catch{return Hf.call(this,e,0)}}}function nUr(e){if(Rf===clearTimeout)return clearTimeout(e);if((Rf===R1e||!Rf)&&clearTimeout)return Rf=clearTimeout,clearTimeout(e);try{return Rf(e)}catch{try{return Rf.call(null,e)}catch{return Rf.call(this,e)}}}var u5=[],n_=!1,$y,UU=-1;function iUr(){!n_||!$y||(n_=!1,$y.length?u5=$y.concat(u5):UU=-1,u5.length&&Wje())}function Wje(){if(!n_){var e=Gje(iUr);n_=!0;for(var t=u5.length;t;){for($y=u5,u5=[];++UU<t;)$y&&$y[UU].run();UU=-1,t=u5.length}$y=null,n_=!1,nUr(e)}}sl.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];u5.push(new qje(e,t)),u5.length===1&&!n_&&Gje(Wje)};function qje(e,t){this.fun=e,this.array=t}qje.prototype.run=function(){this.fun.apply(null,this.array)},sl.title="browser",sl.browser=!0,sl.env={},sl.argv=[],sl.version="",sl.versions={};function d5(){}sl.on=d5,sl.addListener=d5,sl.once=d5,sl.off=d5,sl.removeListener=d5,sl.removeAllListeners=d5,sl.emit=d5,sl.prependListener=d5,sl.prependOnceListener=d5,sl.listeners=function(e){return[]},sl.binding=function(e){throw new Error("process.binding is not supported")},sl.cwd=function(){return"/"},sl.chdir=function(e){throw new Error("process.chdir is not supported")},sl.umask=function(){return 0};var oUr=Uje.exports;const i_=rUr(oUr),h5=(e,t,{checkForDefaultPrevented:r=!0}={})=>n=>{const i=e==null?void 0:e(n);if(r===!1||!i)return t==null?void 0:t(n)},o_=globalThis||void 0||self;var Zje;const W1=typeof window<"u",aUr=e=>typeof e=="string",Kje=()=>{},sUr=W1&&((Zje=window==null?void 0:window.navigator)==null?void 0:Zje.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Xje(e){return typeof e=="function"?e():a.unref(e)}function lUr(e){return e}function GU(e){return a.getCurrentScope()?(a.onScopeDispose(e),!0):!1}function cUr(e,t=!0){a.getCurrentInstance()?a.onMounted(e):t?e():a.nextTick(e)}function p5(e){var t;const r=Xje(e);return(t=r==null?void 0:r.$el)!=null?t:r}const WU=W1?window:void 0;function eT(...e){let t,r,n,i;if(aUr(e[0])||Array.isArray(e[0])?([r,n,i]=e,t=WU):[t,r,n,i]=e,!t)return Kje;Array.isArray(r)||(r=[r]),Array.isArray(n)||(n=[n]);const o=[],s=()=>{o.forEach(d=>d()),o.length=0},l=(d,h,p,f)=>(d.addEventListener(h,p,f),()=>d.removeEventListener(h,p,f)),c=a.watch(()=>[p5(t),Xje(i)],([d,h])=>{s(),d&&o.push(...r.flatMap(p=>n.map(f=>l(d,p,f,h))))},{immediate:!0,flush:"post"}),u=()=>{c(),s()};return GU(u),u}let Yje=!1;function uUr(e,t,r={}){const{window:n=WU,ignore:i=[],capture:o=!0,detectIframe:s=!1}=r;if(!n)return;sUr&&!Yje&&(Yje=!0,Array.from(n.document.body.children).forEach(d=>d.addEventListener("click",Kje)));let l=!0;const c=d=>i.some(h=>{if(typeof h=="string")return Array.from(n.document.querySelectorAll(h)).some(p=>p===d.target||d.composedPath().includes(p));{const p=p5(h);return p&&(d.target===p||d.composedPath().includes(p))}}),u=[eT(n,"click",d=>{const h=p5(e);if(!(!h||h===d.target||d.composedPath().includes(h))){if(d.detail===0&&(l=!c(d)),!l){l=!0;return}t(d)}},{passive:!0,capture:o}),eT(n,"pointerdown",d=>{const h=p5(e);h&&(l=!d.composedPath().includes(h)&&!c(d))},{passive:!0}),s&&eT(n,"blur",d=>{var h;const p=p5(e);((h=n.document.activeElement)==null?void 0:h.tagName)==="IFRAME"&&!(p!=null&&p.contains(n.document.activeElement))&&t(d)})].filter(Boolean);return()=>u.forEach(d=>d())}function Jje(e,t=!1){const r=a.ref(),n=()=>r.value=!!e();return n(),cUr(n,t),r}const N1e=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof o_<"u"?o_:typeof self<"u"?self:{},B1e="__vueuse_ssr_handlers__";N1e[B1e]=N1e[B1e]||{},N1e[B1e];var $je=Object.getOwnPropertySymbols,dUr=Object.prototype.hasOwnProperty,hUr=Object.prototype.propertyIsEnumerable,pUr=(e,t)=>{var r={};for(var n in e)dUr.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&$je)for(var n of $je(e))t.indexOf(n)<0&&hUr.call(e,n)&&(r[n]=e[n]);return r};function f5(e,t,r={}){const n=r,{window:i=WU}=n,o=pUr(n,["window"]);let s;const l=Jje(()=>i&&"ResizeObserver"in i),c=()=>{s&&(s.disconnect(),s=void 0)},u=a.watch(()=>p5(e),h=>{c(),l.value&&i&&h&&(s=new ResizeObserver(t),s.observe(h,o))},{immediate:!0,flush:"post"}),d=()=>{c(),u()};return GU(d),{isSupported:l,stop:d}}var eUe=Object.getOwnPropertySymbols,fUr=Object.prototype.hasOwnProperty,mUr=Object.prototype.propertyIsEnumerable,gUr=(e,t)=>{var r={};for(var n in e)fUr.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&eUe)for(var n of eUe(e))t.indexOf(n)<0&&mUr.call(e,n)&&(r[n]=e[n]);return r};function yUr(e,t,r={}){const n=r,{window:i=WU}=n,o=gUr(n,["window"]);let s;const l=Jje(()=>i&&"MutationObserver"in i),c=()=>{s&&(s.disconnect(),s=void 0)},u=a.watch(()=>p5(e),h=>{c(),l.value&&i&&h&&(s=new MutationObserver(t),s.observe(h,o))},{immediate:!0}),d=()=>{c(),u()};return GU(d),{isSupported:l,stop:d}}var tUe;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(tUe||(tUe={}));var TUr=Object.defineProperty,rUe=Object.getOwnPropertySymbols,vUr=Object.prototype.hasOwnProperty,bUr=Object.prototype.propertyIsEnumerable,nUe=(e,t,r)=>t in e?TUr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,QUr=(e,t)=>{for(var r in t||(t={}))vUr.call(t,r)&&nUe(e,r,t[r]);if(rUe)for(var r of rUe(t))bUr.call(t,r)&&nUe(e,r,t[r]);return e};QUr({linear:lUr},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]});const xUr=()=>W1&&/firefox/i.test(window.navigator.userAgent);i_.env.NODE_ENV!=="production"&&Object.freeze({}),i_.env.NODE_ENV!=="production"&&Object.freeze([]);const zA=()=>{},_Ur=Object.prototype.hasOwnProperty,iUe=(e,t)=>_Ur.call(e,t),jd=Array.isArray,Ud=e=>typeof e=="function",Nf=e=>typeof e=="string",Gd=e=>e!==null&&typeof e=="object",wUr=Object.prototype.toString,LUr=e=>wUr.call(e),F1e=e=>LUr(e).slice(8,-1);var oUe=typeof o_=="object"&&o_&&o_.Object===Object&&o_,SUr=typeof self=="object"&&self&&self.Object===Object&&self,Bf=oUe||SUr||Function("return this")(),$8=Bf.Symbol,aUe=Object.prototype,kUr=aUe.hasOwnProperty,MUr=aUe.toString,jA=$8?$8.toStringTag:void 0;function CUr(e){var t=kUr.call(e,jA),r=e[jA];try{e[jA]=void 0;var n=!0}catch{}var i=MUr.call(e);return n&&(t?e[jA]=r:delete e[jA]),i}var EUr=Object.prototype,AUr=EUr.toString;function OUr(e){return AUr.call(e)}var IUr="[object Null]",PUr="[object Undefined]",sUe=$8?$8.toStringTag:void 0;function a_(e){return e==null?e===void 0?PUr:IUr:sUe&&sUe in Object(e)?CUr(e):OUr(e)}function s_(e){return e!=null&&typeof e=="object"}var VUr="[object Symbol]";function qU(e){return typeof e=="symbol"||s_(e)&&a_(e)==VUr}function HUr(e,t){for(var r=-1,n=e==null?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}var Ff=Array.isArray,RUr=1/0,lUe=$8?$8.prototype:void 0,cUe=lUe?lUe.toString:void 0;function uUe(e){if(typeof e=="string")return e;if(Ff(e))return HUr(e,uUe)+"";if(qU(e))return cUe?cUe.call(e):"";var t=e+"";return t=="0"&&1/e==-RUr?"-0":t}var NUr=/\s/;function BUr(e){for(var t=e.length;t--&&NUr.test(e.charAt(t)););return t}var FUr=/^\s+/;function DUr(e){return e&&e.slice(0,BUr(e)+1).replace(FUr,"")}function l_(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var dUe=NaN,zUr=/^[-+]0x[0-9a-f]+$/i,jUr=/^0b[01]+$/i,UUr=/^0o[0-7]+$/i,GUr=parseInt;function D1e(e){if(typeof e=="number")return e;if(qU(e))return dUe;if(l_(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=l_(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=DUr(e);var r=jUr.test(e);return r||UUr.test(e)?GUr(e.slice(2),r?2:8):zUr.test(e)?dUe:+e}var hUe=1/0,WUr=17976931348623157e292;function qUr(e){if(!e)return e===0?e:0;if(e=D1e(e),e===hUe||e===-hUe){var t=e<0?-1:1;return t*WUr}return e===e?e:0}function ZUr(e){var t=qUr(e),r=t%1;return t===t?r?t-r:t:0}function KUr(e){return e}var XUr="[object AsyncFunction]",YUr="[object Function]",JUr="[object GeneratorFunction]",$Ur="[object Proxy]";function pUe(e){if(!l_(e))return!1;var t=a_(e);return t==YUr||t==JUr||t==XUr||t==$Ur}var z1e=Bf["__core-js_shared__"],fUe=function(){var e=/[^.]+$/.exec(z1e&&z1e.keys&&z1e.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function eGr(e){return!!fUe&&fUe in e}var tGr=Function.prototype,rGr=tGr.toString;function tT(e){if(e!=null){try{return rGr.call(e)}catch{}try{return e+""}catch{}}return""}var nGr=/[\\^$.*+?()[\]{}|]/g,iGr=/^\[object .+?Constructor\]$/,oGr=Function.prototype,aGr=Object.prototype,sGr=oGr.toString,lGr=aGr.hasOwnProperty,cGr=RegExp("^"+sGr.call(lGr).replace(nGr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function uGr(e){if(!l_(e)||eGr(e))return!1;var t=pUe(e)?cGr:iGr;return t.test(tT(e))}function dGr(e,t){return e==null?void 0:e[t]}function c_(e,t){var r=dGr(e,t);return uGr(r)?r:void 0}var j1e=c_(Bf,"WeakMap");function hGr(e,t,r,n){for(var i=e.length,o=r+(n?1:-1);n?o--:++o<i;)if(t(e[o],o,e))return o;return-1}var pGr=9007199254740991,fGr=/^(?:0|[1-9]\d*)$/;function mUe(e,t){var r=typeof e;return t=t??pGr,!!t&&(r=="number"||r!="symbol"&&fGr.test(e))&&e>-1&&e%1==0&&e<t}function gUe(e,t){return e===t||e!==e&&t!==t}var mGr=9007199254740991;function U1e(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=mGr}function gGr(e){return e!=null&&U1e(e.length)&&!pUe(e)}var yGr=Object.prototype;function TGr(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||yGr;return e===r}function vGr(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var bGr="[object Arguments]";function yUe(e){return s_(e)&&a_(e)==bGr}var TUe=Object.prototype,QGr=TUe.hasOwnProperty,xGr=TUe.propertyIsEnumerable,vUe=yUe(function(){return arguments}())?yUe:function(e){return s_(e)&&QGr.call(e,"callee")&&!xGr.call(e,"callee")};function _Gr(){return!1}var bUe=typeof Pn=="object"&&Pn&&!Pn.nodeType&&Pn,QUe=bUe&&typeof module=="object"&&module&&!module.nodeType&&module,wGr=QUe&&QUe.exports===bUe,xUe=wGr?Bf.Buffer:void 0,LGr=xUe?xUe.isBuffer:void 0,G1e=LGr||_Gr,SGr="[object Arguments]",kGr="[object Array]",MGr="[object Boolean]",CGr="[object Date]",EGr="[object Error]",AGr="[object Function]",OGr="[object Map]",IGr="[object Number]",PGr="[object Object]",VGr="[object RegExp]",HGr="[object Set]",RGr="[object String]",NGr="[object WeakMap]",BGr="[object ArrayBuffer]",FGr="[object DataView]",DGr="[object Float32Array]",zGr="[object Float64Array]",jGr="[object Int8Array]",UGr="[object Int16Array]",GGr="[object Int32Array]",WGr="[object Uint8Array]",qGr="[object Uint8ClampedArray]",ZGr="[object Uint16Array]",KGr="[object Uint32Array]",is={};is[DGr]=is[zGr]=is[jGr]=is[UGr]=is[GGr]=is[WGr]=is[qGr]=is[ZGr]=is[KGr]=!0,is[SGr]=is[kGr]=is[BGr]=is[MGr]=is[FGr]=is[CGr]=is[EGr]=is[AGr]=is[OGr]=is[IGr]=is[PGr]=is[VGr]=is[HGr]=is[RGr]=is[NGr]=!1;function XGr(e){return s_(e)&&U1e(e.length)&&!!is[a_(e)]}function YGr(e){return function(t){return e(t)}}var _Ue=typeof Pn=="object"&&Pn&&!Pn.nodeType&&Pn,UA=_Ue&&typeof module=="object"&&module&&!module.nodeType&&module,JGr=UA&&UA.exports===_Ue,W1e=JGr&&oUe.process,wUe=function(){try{var e=UA&&UA.require&&UA.require("util").types;return e||W1e&&W1e.binding&&W1e.binding("util")}catch{}}(),LUe=wUe&&wUe.isTypedArray,SUe=LUe?YGr(LUe):XGr,$Gr=Object.prototype,eWr=$Gr.hasOwnProperty;function tWr(e,t){var r=Ff(e),n=!r&&vUe(e),i=!r&&!n&&G1e(e),o=!r&&!n&&!i&&SUe(e),s=r||n||i||o,l=s?vGr(e.length,String):[],c=l.length;for(var u in e)(t||eWr.call(e,u))&&!(s&&(u=="length"||i&&(u=="offset"||u=="parent")||o&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||mUe(u,c)))&&l.push(u);return l}function rWr(e,t){return function(r){return e(t(r))}}var nWr=rWr(Object.keys,Object),iWr=Object.prototype,oWr=iWr.hasOwnProperty;function aWr(e){if(!TGr(e))return nWr(e);var t=[];for(var r in Object(e))oWr.call(e,r)&&r!="constructor"&&t.push(r);return t}function kUe(e){return gGr(e)?tWr(e):aWr(e)}var sWr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,lWr=/^\w*$/;function q1e(e,t){if(Ff(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||qU(e)?!0:lWr.test(e)||!sWr.test(e)||t!=null&&e in Object(t)}var GA=c_(Object,"create");function cWr(){this.__data__=GA?GA(null):{},this.size=0}function uWr(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var dWr="__lodash_hash_undefined__",hWr=Object.prototype,pWr=hWr.hasOwnProperty;function fWr(e){var t=this.__data__;if(GA){var r=t[e];return r===dWr?void 0:r}return pWr.call(t,e)?t[e]:void 0}var mWr=Object.prototype,gWr=mWr.hasOwnProperty;function yWr(e){var t=this.__data__;return GA?t[e]!==void 0:gWr.call(t,e)}var TWr="__lodash_hash_undefined__";function vWr(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=GA&&t===void 0?TWr:t,this}function rT(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}rT.prototype.clear=cWr,rT.prototype.delete=uWr,rT.prototype.get=fWr,rT.prototype.has=yWr,rT.prototype.set=vWr;function bWr(){this.__data__=[],this.size=0}function ZU(e,t){for(var r=e.length;r--;)if(gUe(e[r][0],t))return r;return-1}var QWr=Array.prototype,xWr=QWr.splice;function _Wr(e){var t=this.__data__,r=ZU(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():xWr.call(t,r,1),--this.size,!0}function wWr(e){var t=this.__data__,r=ZU(t,e);return r<0?void 0:t[r][1]}function LWr(e){return ZU(this.__data__,e)>-1}function SWr(e,t){var r=this.__data__,n=ZU(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function m5(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}m5.prototype.clear=bWr,m5.prototype.delete=_Wr,m5.prototype.get=wWr,m5.prototype.has=LWr,m5.prototype.set=SWr;var WA=c_(Bf,"Map");function kWr(){this.size=0,this.__data__={hash:new rT,map:new(WA||m5),string:new rT}}function MWr(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function KU(e,t){var r=e.__data__;return MWr(t)?r[typeof t=="string"?"string":"hash"]:r.map}function CWr(e){var t=KU(this,e).delete(e);return this.size-=t?1:0,t}function EWr(e){return KU(this,e).get(e)}function AWr(e){return KU(this,e).has(e)}function OWr(e,t){var r=KU(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function g5(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}g5.prototype.clear=kWr,g5.prototype.delete=CWr,g5.prototype.get=EWr,g5.prototype.has=AWr,g5.prototype.set=OWr;var IWr="Expected a function";function Z1e(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(IWr);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var s=e.apply(this,n);return r.cache=o.set(i,s)||o,s};return r.cache=new(Z1e.Cache||g5),r}Z1e.Cache=g5;var PWr=500;function VWr(e){var t=Z1e(e,function(n){return r.size===PWr&&r.clear(),n}),r=t.cache;return t}var HWr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,RWr=/\\(\\)?/g,NWr=VWr(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(HWr,function(r,n,i,o){t.push(i?o.replace(RWr,"$1"):n||r)}),t});function BWr(e){return e==null?"":uUe(e)}function MUe(e,t){return Ff(e)?e:q1e(e,t)?[e]:NWr(BWr(e))}var FWr=1/0;function XU(e){if(typeof e=="string"||qU(e))return e;var t=e+"";return t=="0"&&1/e==-FWr?"-0":t}function CUe(e,t){t=MUe(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[XU(t[r++])];return r&&r==n?e:void 0}function y5(e,t,r){var n=e==null?void 0:CUe(e,t);return n===void 0?r:n}function DWr(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}function EUe(){if(!arguments.length)return[];var e=arguments[0];return Ff(e)?e:[e]}function zWr(){this.__data__=new m5,this.size=0}function jWr(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function UWr(e){return this.__data__.get(e)}function GWr(e){return this.__data__.has(e)}var WWr=200;function qWr(e,t){var r=this.__data__;if(r instanceof m5){var n=r.__data__;if(!WA||n.length<WWr-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new g5(n)}return r.set(e,t),this.size=r.size,this}function T5(e){var t=this.__data__=new m5(e);this.size=t.size}T5.prototype.clear=zWr,T5.prototype.delete=jWr,T5.prototype.get=UWr,T5.prototype.has=GWr,T5.prototype.set=qWr;function ZWr(e,t){for(var r=-1,n=e==null?0:e.length,i=0,o=[];++r<n;){var s=e[r];t(s,r,e)&&(o[i++]=s)}return o}function KWr(){return[]}var XWr=Object.prototype,YWr=XWr.propertyIsEnumerable,AUe=Object.getOwnPropertySymbols,JWr=AUe?function(e){return e==null?[]:(e=Object(e),ZWr(AUe(e),function(t){return YWr.call(e,t)}))}:KWr;const $Wr=JWr;function eqr(e,t,r){var n=t(e);return Ff(e)?n:DWr(n,r(e))}function OUe(e){return eqr(e,kUe,$Wr)}var K1e=c_(Bf,"DataView"),X1e=c_(Bf,"Promise"),Y1e=c_(Bf,"Set"),IUe="[object Map]",tqr="[object Object]",PUe="[object Promise]",VUe="[object Set]",HUe="[object WeakMap]",RUe="[object DataView]",rqr=tT(K1e),nqr=tT(WA),iqr=tT(X1e),oqr=tT(Y1e),aqr=tT(j1e),nT=a_;(K1e&&nT(new K1e(new ArrayBuffer(1)))!=RUe||WA&&nT(new WA)!=IUe||X1e&&nT(X1e.resolve())!=PUe||Y1e&&nT(new Y1e)!=VUe||j1e&&nT(new j1e)!=HUe)&&(nT=function(e){var t=a_(e),r=t==tqr?e.constructor:void 0,n=r?tT(r):"";if(n)switch(n){case rqr:return RUe;case nqr:return IUe;case iqr:return PUe;case oqr:return VUe;case aqr:return HUe}return t});const NUe=nT;var sqr=Bf.Uint8Array;const BUe=sqr;var lqr="__lodash_hash_undefined__";function cqr(e){return this.__data__.set(e,lqr),this}function uqr(e){return this.__data__.has(e)}function YU(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new g5;++t<r;)this.add(e[t])}YU.prototype.add=YU.prototype.push=cqr,YU.prototype.has=uqr;function dqr(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}function hqr(e,t){return e.has(t)}var pqr=1,fqr=2;function FUe(e,t,r,n,i,o){var s=r&pqr,l=e.length,c=t.length;if(l!=c&&!(s&&c>l))return!1;var u=o.get(e),d=o.get(t);if(u&&d)return u==t&&d==e;var h=-1,p=!0,f=r&fqr?new YU:void 0;for(o.set(e,t),o.set(t,e);++h<l;){var m=e[h],g=t[h];if(n)var T=s?n(g,m,h,t,e,o):n(m,g,h,e,t,o);if(T!==void 0){if(T)continue;p=!1;break}if(f){if(!dqr(t,function(y,v){if(!hqr(f,v)&&(m===y||i(m,y,r,n,o)))return f.push(v)})){p=!1;break}}else if(!(m===g||i(m,g,r,n,o))){p=!1;break}}return o.delete(e),o.delete(t),p}function mqr(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}function gqr(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var yqr=1,Tqr=2,vqr="[object Boolean]",bqr="[object Date]",Qqr="[object Error]",xqr="[object Map]",_qr="[object Number]",wqr="[object RegExp]",Lqr="[object Set]",Sqr="[object String]",kqr="[object Symbol]",Mqr="[object ArrayBuffer]",Cqr="[object DataView]",DUe=$8?$8.prototype:void 0,J1e=DUe?DUe.valueOf:void 0;function Eqr(e,t,r,n,i,o,s){switch(r){case Cqr:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Mqr:return!(e.byteLength!=t.byteLength||!o(new BUe(e),new BUe(t)));case vqr:case bqr:case _qr:return gUe(+e,+t);case Qqr:return e.name==t.name&&e.message==t.message;case wqr:case Sqr:return e==t+"";case xqr:var l=mqr;case Lqr:var c=n&yqr;if(l||(l=gqr),e.size!=t.size&&!c)return!1;var u=s.get(e);if(u)return u==t;n|=Tqr,s.set(e,t);var d=FUe(l(e),l(t),n,i,o,s);return s.delete(e),d;case kqr:if(J1e)return J1e.call(e)==J1e.call(t)}return!1}var Aqr=1,Oqr=Object.prototype,Iqr=Oqr.hasOwnProperty;function Pqr(e,t,r,n,i,o){var s=r&Aqr,l=OUe(e),c=l.length,u=OUe(t),d=u.length;if(c!=d&&!s)return!1;for(var h=c;h--;){var p=l[h];if(!(s?p in t:Iqr.call(t,p)))return!1}var f=o.get(e),m=o.get(t);if(f&&m)return f==t&&m==e;var g=!0;o.set(e,t),o.set(t,e);for(var T=s;++h<c;){p=l[h];var y=e[p],v=t[p];if(n)var Q=s?n(v,y,p,t,e,o):n(y,v,p,e,t,o);if(!(Q===void 0?y===v||i(y,v,r,n,o):Q)){g=!1;break}T||(T=p=="constructor")}if(g&&!T){var x=e.constructor,L=t.constructor;x!=L&&"constructor"in e&&"constructor"in t&&!(typeof x=="function"&&x instanceof x&&typeof L=="function"&&L instanceof L)&&(g=!1)}return o.delete(e),o.delete(t),g}var Vqr=1,zUe="[object Arguments]",jUe="[object Array]",JU="[object Object]",Hqr=Object.prototype,UUe=Hqr.hasOwnProperty;function Rqr(e,t,r,n,i,o){var s=Ff(e),l=Ff(t),c=s?jUe:NUe(e),u=l?jUe:NUe(t);c=c==zUe?JU:c,u=u==zUe?JU:u;var d=c==JU,h=u==JU,p=c==u;if(p&&G1e(e)){if(!G1e(t))return!1;s=!0,d=!1}if(p&&!d)return o||(o=new T5),s||SUe(e)?FUe(e,t,r,n,i,o):Eqr(e,t,c,r,n,i,o);if(!(r&Vqr)){var f=d&&UUe.call(e,"__wrapped__"),m=h&&UUe.call(t,"__wrapped__");if(f||m){var g=f?e.value():e,T=m?t.value():t;return o||(o=new T5),i(g,T,r,n,o)}}return p?(o||(o=new T5),Pqr(e,t,r,n,i,o)):!1}function $U(e,t,r,n,i){return e===t?!0:e==null||t==null||!s_(e)&&!s_(t)?e!==e&&t!==t:Rqr(e,t,r,n,$U,i)}var Nqr=1,Bqr=2;function Fqr(e,t,r,n){var i=r.length,o=i,s=!n;if(e==null)return!o;for(e=Object(e);i--;){var l=r[i];if(s&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++i<o;){l=r[i];var c=l[0],u=e[c],d=l[1];if(s&&l[2]){if(u===void 0&&!(c in e))return!1}else{var h=new T5;if(n)var p=n(u,d,c,e,t,h);if(!(p===void 0?$U(d,u,Nqr|Bqr,n,h):p))return!1}}return!0}function GUe(e){return e===e&&!l_(e)}function Dqr(e){for(var t=kUe(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,GUe(i)]}return t}function WUe(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}function zqr(e){var t=Dqr(e);return t.length==1&&t[0][2]?WUe(t[0][0],t[0][1]):function(r){return r===e||Fqr(r,e,t)}}function jqr(e,t){return e!=null&&t in Object(e)}function Uqr(e,t,r){t=MUe(t,e);for(var n=-1,i=t.length,o=!1;++n<i;){var s=XU(t[n]);if(!(o=e!=null&&r(e,s)))break;e=e[s]}return o||++n!=i?o:(i=e==null?0:e.length,!!i&&U1e(i)&&mUe(s,i)&&(Ff(e)||vUe(e)))}function Gqr(e,t){return e!=null&&Uqr(e,t,jqr)}var Wqr=1,qqr=2;function Zqr(e,t){return q1e(e)&&GUe(t)?WUe(XU(e),t):function(r){var n=y5(r,e);return n===void 0&&n===t?Gqr(r,e):$U(t,n,Wqr|qqr)}}function Kqr(e){return function(t){return t==null?void 0:t[e]}}function Xqr(e){return function(t){return CUe(t,e)}}function Yqr(e){return q1e(e)?Kqr(XU(e)):Xqr(e)}function Jqr(e){return typeof e=="function"?e:e==null?KUr:typeof e=="object"?Ff(e)?Zqr(e[0],e[1]):zqr(e):Yqr(e)}var $1e=function(){return Bf.Date.now()},$qr="Expected a function",eZr=Math.max,tZr=Math.min;function rZr(e,t,r){var n,i,o,s,l,c,u=0,d=!1,h=!1,p=!0;if(typeof e!="function")throw new TypeError($qr);t=D1e(t)||0,l_(r)&&(d=!!r.leading,h="maxWait"in r,o=h?eZr(D1e(r.maxWait)||0,t):o,p="trailing"in r?!!r.trailing:p);function f(w){var k=n,M=i;return n=i=void 0,u=w,s=e.apply(M,k),s}function m(w){return u=w,l=setTimeout(y,t),d?f(w):s}function g(w){var k=w-c,M=w-u,E=t-k;return h?tZr(E,o-M):E}function T(w){var k=w-c,M=w-u;return c===void 0||k>=t||k<0||h&&M>=o}function y(){var w=$1e();if(T(w))return v(w);l=setTimeout(y,g(w))}function v(w){return l=void 0,p&&n?f(w):(n=i=void 0,s)}function Q(){l!==void 0&&clearTimeout(l),u=0,n=c=i=l=void 0}function x(){return l===void 0?s:v($1e())}function L(){var w=$1e(),k=T(w);if(n=arguments,i=this,c=w,k){if(l===void 0)return m(c);if(h)return clearTimeout(l),l=setTimeout(y,t),f(c)}return l===void 0&&(l=setTimeout(y,t)),s}return L.cancel=Q,L.flush=x,L}var nZr=Math.max,iZr=Math.min;function oZr(e,t,r){var n=e==null?0:e.length;if(!n)return-1;var i=n-1;return r!==void 0&&(i=ZUr(r),i=r<0?nZr(n+i,0):iZr(i,n-1)),hGr(e,Jqr(t),i,!0)}function eG(e){for(var t=-1,r=e==null?0:e.length,n={};++t<r;){var i=e[t];n[i[0]]=i[1]}return n}function qA(e,t){return $U(e,t)}function tG(e){return e==null}function aZr(e){return e===void 0}const qUe=e=>e===void 0,eue=e=>typeof e=="boolean",k0=e=>typeof e=="number",ZA=e=>typeof Element>"u"?!1:e instanceof Element,sZr=e=>Nf(e)?!Number.isNaN(Number(e)):!1,lZr=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d");let ZUe=class extends Error{constructor(t){super(t),this.name="ElementPlusError"}};function cZr(e,t){throw new ZUe(`[${e}] ${t}`)}function Wd(e,t){if(i_.env.NODE_ENV!=="production"){const r=Nf(e)?new ZUe(`[${e}] ${t}`):e;console.warn(r)}}const uZr="utils/dom/style";function rG(e,t="px"){if(!e)return"";if(k0(e)||sZr(e))return`${e}${t}`;if(Nf(e))return e;Wd(uZr,"binding value must be a string or number")}function dZr(e,t){if(!W1)return;if(!t){e.scrollTop=0;return}const r=[];let n=t.offsetParent;for(;n!==null&&e!==n&&e.contains(n);)r.push(n),n=n.offsetParent;const i=t.offsetTop+r.reduce((c,u)=>c+u.offsetTop,0),o=i+t.offsetHeight,s=e.scrollTop,l=s+e.clientHeight;i<s?e.scrollTop=i:o>l&&(e.scrollTop=o-e.clientHeight)}/*! Element Plus Icons Vue v2.3.1 */var hZr=a.defineComponent({name:"ArrowDown",__name:"arrow-down",setup(e){return(t,r)=>(a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[a.createElementVNode("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.592 30.592 0 0 0-42.752 0z"})]))}}),pZr=hZr,fZr=a.defineComponent({name:"ArrowRight",__name:"arrow-right",setup(e){return(t,r)=>(a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[a.createElementVNode("path",{fill:"currentColor",d:"M340.864 149.312a30.592 30.592 0 0 0 0 42.752L652.736 512 340.864 831.872a30.592 30.592 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"})]))}}),mZr=fZr,gZr=a.defineComponent({name:"CircleCheck",__name:"circle-check",setup(e){return(t,r)=>(a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[a.createElementVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),a.createElementVNode("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752l265.344-265.408z"})]))}}),yZr=gZr,TZr=a.defineComponent({name:"CircleClose",__name:"circle-close",setup(e){return(t,r)=>(a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[a.createElementVNode("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248z"}),a.createElementVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),tue=TZr,vZr=a.defineComponent({name:"Close",__name:"close",setup(e){return(t,r)=>(a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[a.createElementVNode("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),KUe=vZr,bZr=a.defineComponent({name:"Hide",__name:"hide",setup(e){return(t,r)=>(a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[a.createElementVNode("path",{fill:"currentColor",d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4-6.4-6.4-12.8-9.6-22.4-9.6-9.6 0-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176C44.8 438.4 0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4 0 9.6 3.2 16 9.6 22.4 6.4 6.4 12.8 9.6 22.4 9.6 9.6 0 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4Zm-646.4 528c-76.8-70.4-128-128-153.6-172.8 28.8-48 80-105.6 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4Zm140.8-96c-12.8-22.4-19.2-48-19.2-76.8 0-44.8 16-83.2 48-112 32-28.8 67.2-48 112-48 28.8 0 54.4 6.4 73.6 19.2zM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6-28.8 48-80 105.6-153.6 172.8-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176C979.199 585.6 1024 528 1024 512s-48.001-73.6-134.401-176Z"}),a.createElementVNode("path",{fill:"currentColor",d:"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112-32 28.8-67.2 48-112 48Z"})]))}}),QZr=bZr,xZr=a.defineComponent({name:"Loading",__name:"loading",setup(e){return(t,r)=>(a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[a.createElementVNode("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0m-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"})]))}}),XUe=xZr,_Zr=a.defineComponent({name:"View",__name:"view",setup(e){return(t,r)=>(a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[a.createElementVNode("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352m0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448m0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"})]))}}),wZr=_Zr;const YUe="__epPropKey",Ji=e=>e,LZr=e=>Gd(e)&&!!e[YUe],nG=(e,t)=>{if(!Gd(e)||LZr(e))return e;const{values:r,required:n,default:i,type:o,validator:s}=e,l={type:o,required:!!n,validator:r||s?c=>{let u=!1,d=[];if(r&&(d=Array.from(r),iUe(e,"default")&&d.push(i),u||(u=d.includes(c))),s&&(u||(u=s(c))),!u&&d.length>0){const h=[...new Set(d)].map(p=>JSON.stringify(p)).join(", ");a.warn(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${h}], got value ${JSON.stringify(c)}.`)}return u}:void 0,[YUe]:!0};return iUe(e,"default")&&(l.default=i),l},Ms=e=>eG(Object.entries(e).map(([t,r])=>[t,nG(r,t)])),iT=Ji([String,Object,Function]),JUe={validating:XUe,success:yZr,error:tue},Df=(e,t)=>{if(e.install=r=>{for(const n of[e,...Object.values(t??{})])r.component(n.name,n)},t)for(const[r,n]of Object.entries(t))e[r]=n;return e},SZr=(e,t)=>(e.install=r=>{r.directive(t,e)},e),iG=e=>(e.install=zA,e),KA={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},x2="update:modelValue",oG="change",$Ue=["","default","small","large"],eGe=e=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(e),tGe=e=>e,kZr=["class","style"],MZr=/^on[A-Z]/,CZr=(e={})=>{const{excludeListeners:t=!1,excludeKeys:r}=e,n=a.computed(()=>((r==null?void 0:r.value)||[]).concat(kZr)),i=a.getCurrentInstance();return i?a.computed(()=>{var o;return eG(Object.entries((o=i.proxy)==null?void 0:o.$attrs).filter(([s])=>!n.value.includes(s)&&!(t&&MZr.test(s))))}):(Wd("use-attrs","getCurrentInstance() returned null. useAttrs() must be called at the top of a setup function"),a.computed(()=>({})))},rGe=({from:e,replacement:t,scope:r,version:n,ref:i,type:o="API"},s)=>{a.watch(()=>a.unref(s),l=>{l&&Wd(r,`[${o}] ${e} is about to be deprecated in version ${n}, please use ${t} instead.
|
3093
|
+
This will fail in production.`);l=FA,l._s.has(n)||(o?P1e(n,t,i,l):Bje(n,i,l),process.env.NODE_ENV!=="production"&&(s._pinia=l));const d=l._s.get(n);if(process.env.NODE_ENV!=="production"&&c){const h="__hot:"+n,p=o?P1e(h,t,i,l,!0):Bje(h,zd({},i),l,!0);c._hotUpdate(p),delete l.state.value[h],l._s.delete(h)}if(process.env.NODE_ENV!=="production"&&A1e){const h=a.getCurrentInstance();if(h&&h.proxy&&!c){const p=h.proxy,f="_pStores"in p?p._pStores:p._pStores={};f[n]=d}}return d}return s.$id=n,s}function ijr(e,t){return Array.isArray(t)?t.reduce((r,n)=>(r[n]=function(){return e(this.$pinia)[n]},r),{}):Object.keys(t).reduce((r,n)=>(r[n]=function(){const i=e(this.$pinia),o=t[n];return typeof o=="function"?o.call(this,i):i[o]},r),{})}const ojr=njr("main",{state:()=>({userProfile:{token:""}}),getters:{userToken(e){return e.userProfile.token}},actions:{setUserToken(e){this.userProfile.token=e}}}),ajr=e=>{let t={lng:0,lat:0},r;return e.type==="Polygon"?r=e.coordinates[0]:r=e.coordinates,e.type!=="Point"?(r.map(n=>{t.lng+=parseFloat(n[0]),t.lat+=parseFloat(n[1])}),t.lng=t.lng/r.length,t.lat=t.lat/r.length):(t.lng+=parseFloat(r[0]),t.lat+=parseFloat(r[1])),t},Fje=(e,t)=>{const r=[];let n=e.organs?e.organs:e.ftus;const i=n?n.filter((o,s)=>n.findIndex(l=>l.label===o.label)===s):void 0;return i&&i.forEach(o=>{const s={label:o.label,models:o.models,key:`${t}.${o.label}`},l=Fje(o,s.key);l.length>0&&(s.children=l),r.push(s)}),r},sjr=function(){return{destinations:[],origins:[],components:[],destinationsWithDatasets:[],originsWithDatasets:[],componentsWithDatasets:[],resource:void 0}},ljr={name:"FlatmapVuer",components:{Button:NEe,Col:UM,Loading:dpr,Radio:eAe,Icon:Mu,RadioGroup:tAe,Row:jM,Select:EB,Dialog:Lhr,MapSvgIcon:JS,MapSvgSpriteColor:OH,Tooltip:oMe,TreeControls:aMe,SelectionsGroup:pAe,SvgLegends:fAe,ElIconWarningFilled:gCe,ElIconArrowDown:vne,ElIconArrowLeft:fCe,DrawToolbar:iMe},beforeCreate:function(){this.mapManager=void 0,this.mapImp=void 0,this.setStateRequired=!1},setup(e){return{annotator:a.markRaw(new Yzr(`${e.flatmapAPI}annotator`))}},methods:{initialiseDrawing:function(){this.connectionEntry={},this.activeDrawTool=void 0,this.activeDrawMode=void 0,this.drawnCreatedEvent={}},cancelDrawnFeature:function(){this.isValidDrawnCreated&&(this.closeTooltip(),this.annotationEntry={...this.drawnCreatedEvent.feature,resourceId:this.serverURL},this.rollbackAnnotationEvent(),this.initialiseDrawing())},connectedFeatureTooltip:function(e){if(this.mapImp)if(e){const t=Number(e);let r={feature:{}};if(t){const n=this.mapImp.featureProperties(t);r.feature=n}else{const n=this.existDrawnFeatures.find(i=>i.id===e.replace(" ",""));r.feature.feature=n}this.checkAndCreatePopups(r)}else this.closeTooltip()},confirmDrawnFeature:function(){this.isValidDrawnCreated&&(this.checkAndCreatePopups(this.drawnCreatedEvent),Object.keys(this.connectionEntry).length>0&&(this.annotationEntry.feature.connection=this.connectionEntry),this.initialiseDrawing())},toolbarEvent:function(e,t){if(this.closeTooltip(),this.doubleClickedFeature=!1,this.connectionEntry={},e==="mode")this.changeAnnotationDrawMode({mode:"simple_select"}),this.activeDrawMode=t,Object.keys(this.annotationEntry).length>0&&!this.featureAnnotationSubmitted&&this.rollbackAnnotationEvent();else if(e==="tool"){if(t){const r=t.replace(/[A-Z]/g,n=>`_${n.toLowerCase()}`);this.changeAnnotationDrawMode({mode:`draw${r}`}),this.initialiseDrawing()}else this.changeAnnotationDrawMode({mode:"simple_select"}),this.cancelDrawnFeature();this.activeDrawTool=t}},annotationDrawModeEvent:function(e){this.activeDrawMode==="Edit"&&this.doubleClickedFeature&&(e.feature.feature.geometry.type!=="Point"&&(this.changeAnnotationDrawMode({mode:"direct_select",options:{featureId:e.feature.feature.id}}),this.modifyAnnotationFeature()),this.doubleClickedFeature=!1),this.activeDrawMode==="Delete"&&(this.changeAnnotationDrawMode({mode:"simple_select",options:{featureIds:[e.feature.feature.id]}}),this.modifyAnnotationFeature())},createConnectivityBody:function(){if(Object.keys(this.connectionEntry).length>0){const e=Object.values(this.connectionEntry),t={type:"connectivity",source:e[0],target:e[e.length-1],intermediates:e.filter((r,n)=>n!==0&&n!==e.length-1)};this.annotationEntry.body=t}},changeAnnotationDrawMode:function(e){this.mapImp&&this.mapImp.changeAnnotationDrawMode(e)},clearAnnotationFeature:function(){this.mapImp&&this.existDrawnFeatures.length>0&&this.mapImp.clearAnnotationFeature()},modifyAnnotationFeature:function(){this.mapImp&&this.mapImp.removeAnnotationFeature()},rollbackAnnotationEvent:function(){this.mapImp&&["created","updated","deleted"].includes(this.annotationEntry.type)&&(this.mapImp.rollbackAnnotationEvent(this.annotationEntry),this.annotationEntry={})},commitAnnotationEvent:function(e){this.mapImp&&["created","updated","deleted"].includes(this.annotationEntry.type)&&e&&(this.featureAnnotationSubmitted=!0,this.mapImp.commitAnnotationEvent(this.annotationEntry),this.annotationEntry.type==="deleted"?(this.closeTooltip(),this.annotationEntry={}):this.addAnnotationFeature())},fetchAnnotatedItemIds:async function(e=void 0,t=void 0){let r=await this.annotator.annotatedItemIds(this.userToken,this.serverURL,e,t);return"resource"in r&&(r=r.itemIds),r},setFeatureAnnotated:async function(){if(this.mapImp){const e=await this.fetchAnnotatedItemIds();for(const t of e)this.mapImp.setFeatureAnnotated(t)}},fetchDrawnFeatures:async function(e,t){const r=await this.fetchAnnotatedItemIds(e,t);let n=await this.annotator.drawnFeatures(this.userToken,this.serverURL,r);return"resource"in n&&(n=n.features),this.drawnType!=="All tools"&&(n=n.filter(i=>i.geometry.type===this.drawnType)),n},addAnnotationFeature:async function(){if(this.mapImp&&(this.featureAnnotationSubmitted||this.clearAnnotationFeature(),this.drawnType!=="None")){this.featureAnnotationSubmitted||(this.loading=!0);const e=this.annotatedType==="Anyone"?void 0:this.userInformation.orcid?this.userInformation.orcid:"0000-0000-0000-0000",t=this.annotatedType==="Anyone"?void 0:this.annotatedType==="Me",r=await this.fetchDrawnFeatures(e,t);if(this.existDrawnFeatures=r,this.loading=!1,!this.featureAnnotationSubmitted)for(const n of r)this.mapImp.addAnnotationFeature(n)}},showAnnotator:function(e){this.mapImp&&(this.mapImp.showAnnotator(e),this.$el.querySelector(".maplibregl-ctrl-group").style.display="none")},setDrawnType:function(e){this.drawnType=e,this.mapImp&&(this.addAnnotationFeature(),this.initialiseDrawing())},setAnnotatedType:function(e){this.annotatedType=e,this.mapImp&&this.addAnnotationFeature()},setFlightPath3D:function(e){this.flightPath3DRadio=e,this.mapImp&&this.mapImp.enableFlightPaths(e)},viewLatestMap:function(){let e=this.biologicalSex?this.biologicalSex:void 0;this.entry==="NCBITaxon:9606"&&(e="PATO:0000384");const t={entry:this.entry,biologicalSex:e,viewport:this.mapImp.getState()};this.$emit("view-latest-map",t)},backgroundChangeCallback:function(e){this.currentBackground=e,this.mapImp&&this.mapImp.setBackgroundColour(this.currentBackground,1)},processSystems:function(e){if(this.systems.length=0,e&&e.length>0){const t={label:"All",key:"All",children:[]};e.forEach(r=>{const n={colour:r.colour,enabled:r.enabled,label:r.id,key:r.id},i=Fje(r,n.key);i.length>0&&(n.children=i),t.children.push(n)}),this.systems.push(t)}},processTaxon:function(e,t){this.taxonConnectivity.length=0,t.forEach(r=>{mAe(e,r).then(n=>{const i={taxon:r,label:n};this.taxonConnectivity.push(i)})})},toggleDrawer:function(){this.drawerOpen=!this.drawerOpen},setColour:function(e){this.colourRadio=e,this.mapImp&&this.mapImp.setColour({colour:e,outline:this.outlinesRadio})},setOutlines:function(e){this.outlineRadio=e,this.mapImp&&this.mapImp.setColour({colour:this.colourRadio,outline:e})},resetView:function(){this.mapImp&&(this.mapImp.resetMap(),this.$refs.centrelinesSelection&&this.$refs.centrelinesSelection.reset(),this.$refs.skcanSelection&&this.$refs.skcanSelection.reset(),this.$refs.layersSelection&&this.$refs.layersSelection.reset(),this.$refs.systemsSelection&&this.$refs.pathwaysSelection.reset(),this.$refs.pathwaysSelection&&this.$refs.pathwaysSelection.reset())},zoomIn:function(){this.mapImp&&this.mapImp.zoomIn()},zoomOut:function(){this.mapImp&&this.mapImp.zoomOut()},centreLinesSelected:function(e){this.mapImp&&this.mapImp.enableCentrelines(e.value)},onSelectionsDataChanged:function(e){this.$emit("pathway-selection-changed",e)},sckanSelected:function(e){this.mapImp&&this.mapImp.enableSckanPath(e.key,e.value)},checkAllSCKAN:function(e){this.mapImp&&e.keys.forEach(t=>this.mapImp.enableSckanPath(t,e.value))},highlightConnectedPaths:async function(e){var t,r;if(this.mapImp){let n=[...this.mapImp.pathModelNodes(e)].map(c=>this.mapImp.featureProperties(c)),i=await this.flatmapQueries.queryForConnectivity(e),o=(r=(t=i==null?void 0:i.ids)==null?void 0:t.dendrites)==null?void 0:r.flat().flat(),s=[],l=!1;n.forEach(c=>{this.mapImp.nodePathModels(c.featureId).forEach(u=>{l=!0,this.mapImp.pathModelNodes(u).forEach(d=>{let h=this.mapImp.featureProperties([d]);if(o.includes(h.models)){l=!1;return}}),l&&s.push(u)})}),this.mapImp.zoomToFeatures(s,{noZoomIn:!0})}},resetMapFilter:function(){const e=this.mapFilters.alert;let t;e.with?e.without||(t={HAS:"alert"}):e.without?t={NOT:{HAS:"alert"}}:t={AND:[{NOT:{HAS:"alert"}},{HAS:"alert"}]},t?this.mapImp.setVisibilityFilter(t):this.mapImp.clearVisibilityFilter()},alertMouseEnterEmitted:function(e){if(this.mapImp)if(e.value){let t;e.key==="alert"?t={HAS:"alert"}:e.key==="withoutAlert"&&(t={NOT:{HAS:"alert"}}),this.mapImp.setVisibilityFilter(t)}else this.resetMapFilter()},alertSelected:function(e){this.mapImp&&(e.key==="alert"?e.value?this.mapFilters.alert.with=!0:this.mapFilters.alert.with=!1:e.key==="withoutAlert"&&(e.value?this.mapFilters.alert.without=!0:this.mapFilters.alert.without=!1),this.resetMapFilter())},checkAllAlerts:function(e){this.mapImp&&(e.value?(this.mapFilters.alert.without=!0,this.mapFilters.alert.with=!0):(this.mapFilters.alert.without=!1,this.mapFilters.alert.with=!1),this.resetMapFilter())},systemSelected:function(e){this.mapImp&&this.mapImp.enableSystem(e.key,e.value)},checkAllSystems:function(e){this.mapImp&&this.systems[0].children.forEach(t=>this.mapImp.enableSystem(t.label,e))},ftuSelected:function(e){this.searchAndShowResult(e,!0)},layersSelected:function(e){this.mapImp&&this.mapImp.enableLayer(e.key,e.value)},checkAllLayers:function(e){this.mapImp&&e.keys.forEach(t=>this.mapImp.enableLayer(t,e.value))},taxonsSelected:function(e){this.mapImp&&this.mapImp.enableConnectivityByTaxonIds(e.key,e.value)},taxonMouseEnterEmitted:function(e){if(this.mapImp)if(e.value){let t=this.mapImp.taxonFeatureIds(e.key);this.mapImp.enableConnectivityByTaxonIds(e.key,e.value),this.mapImp.zoomToGeoJSONFeatures(t,{noZoomIn:!0})}else this.mapImp.selectGeoJSONFeatures("-1"),e.selections.forEach(t=>{let r=e.checked.includes(t.taxon);this.mapImp.enableConnectivityByTaxonIds(t.taxon,r)})},checkAllTaxons:function(e){this.mapImp&&e.keys.forEach(t=>this.mapImp.enableConnectivityByTaxonIds(t,e.value))},pathwaysSelected:function(e){this.mapImp&&this.mapImp.enablePath(e.key,e.value)},checkAllPathways:function(e){this.mapImp&&e.keys.forEach(t=>this.mapImp.enablePath(t,e.value))},enablePanZoomEvents:function(e){this.mapImp.enablePanZoomEvents(e)},annotationEventCallback:function(e,t){if(t.type==="aborted")this.featureAnnotationSubmitted?this.featureAnnotationSubmitted=!1:this.rollbackAnnotationEvent();else if(t.type==="modeChanged")t.feature.mode==="direct_select"&&(this.doubleClickedFeature=!0);else if(t.type==="selectionChanged"){if(this.selectedDrawnFeature=t.feature.features.length===0?void 0:t.feature.features[0],e.feature.feature=this.selectedDrawnFeature,!this.activeDrawTool&&(this.connectionEntry={},this.selectedDrawnFeature)){const r=this.existDrawnFeatures.find(n=>n.id===this.selectedDrawnFeature.id);r&&r.connection&&(this.connectionEntry=r.connection),this.annotationDrawModeEvent(e)}}else{if(t.type==="created"||t.type==="updated"){t.type==="updated"&&t.feature.action&&(t.positionUpdated=t.feature.action==="move");const r=this.mapImp.refreshAnnotationFeatureGeometry(t.feature);e.feature.feature=r}t.type==="created"?this.drawnCreatedEvent=e:this.checkAndCreatePopups(e)}},eventCallback:function(){return(e,t,...r)=>{if(e==="annotation"){const n={feature:t,userData:r,eventType:e};this.annotationEventCallback(n,t)}else if(e!=="pan-zoom"){const n=t.label,i=[t.models],o=this.entry,s=this.biologicalSex;let l;t.taxons&&(typeof t.taxons!="object"?l=JSON.parse(t.taxons):l=t.taxons);const c={dataset:t.dataset,biologicalSex:s,taxonomy:o,resource:i,label:n,feature:t,userData:r,eventType:e,provenanceTaxonomy:l};if(e==="click"){if(this.featuresAlert=t.alert,this.viewingMode==="Neuron Connection")this.highlightConnectedPaths([t.models]);else if(this.currentActive=t.models?t.models:"",this.activeDrawTool&&!this.isValidDrawnCreated){const u=t.featureId||this.existDrawnFeatures.find(d=>d.id===t.id);if(this.activeDrawTool==="LineString"&&u){const d=t.featureId?t.featureId:t.id,h=t.label?t.label:`Feature ${t.id}`;this.connectionEntry[` ${d}`]=Object.assign({label:h},Object.fromEntries(Object.entries(t).filter(([p])=>["featureId","models"].includes(p)).map(([p,f])=>[p==="featureId"?"id":p,f])))}}}else e==="mouseenter"&&this.viewingMode!=="Neuron Connection"&&(this.currentHover=t.models?t.models:"");t&&t.type!=="marker"&&e==="click"&&this.viewingMode!=="Neuron Connection"&&!this.activeDrawTool&&this.checkAndCreatePopups(c),this.$emit("resource-selected",c)}else this.$emit("pan-zoom-callback",t)}},changeViewingMode:function(e=null){e!==null&&(this.viewingModeIndex=e),this.closeTooltip()},checkAndCreatePopups:async function(e){if(this.viewingMode==="Annotation")e.feature?(this.annotationEntry={...e.feature,resourceId:this.serverURL},e.feature.featureId&&e.feature.models?this.displayTooltip(e.feature.models):e.feature.feature&&(this.activeDrawTool||this.activeDrawMode||Object.keys(this.connectionEntry).length>0?(this.featureAnnotationSubmitted=!1,this.annotationEntry.featureId=e.feature.feature.id,this.activeDrawTool&&this.createConnectivityBody(),this.displayTooltip(e.feature.feature.id,ajr(e.feature.feature.geometry))):this.rollbackAnnotationEvent())):this.annotation={};else{let t=await this.flatmapQueries.retrieveFlatmapKnowledgeForEvent(e);(t[0]||t[1]||e.feature.hyperlinks&&e.feature.hyperlinks.length>0)&&(this.resourceForTooltip=e.resource[0],e.resourceForTooltip=this.resourceForTooltip,this.createTooltipFromNeuronCuration(e))}},popUpCssHacks:function(){const e=document.querySelector(".flatmap-tooltip-popup"),t=document.querySelector(".maplibregl-popup-close-button");e&&(e.style.display="none"),t.style.display="block",this.$refs.tooltip.$el.style.display="flex",t.onclick=()=>{this.$emit("connectivity-info-close"),e&&(e.style.display="block")}},closeTooltip:function(){this.$refs.tooltip.$el.style.display="none",document.querySelectorAll(".maplibregl-popup").forEach(e=>{e.style.display="none"})},createTooltipFromNeuronCuration:async function(e){this.tooltipEntry=await this.flatmapQueries.createTooltipData(e),this.displayTooltip(e.resource[0])},showPopup:function(e,t,r){let n=r;this.mapImp&&(n?n.className||(n.className="custom-popup"):n={className:"custom-popup",positionAtLastClick:!0},this.mapImp.showPopup(e,t,n))},showMarkerPopup:function(e,t,r){this.mapImp&&this.mapImp.showMarkerPopup(e,t,r)},closeMinimap:function(){let e=this.$refs.flatmapContainer.querySelector(".maplibregl-ctrl-minimap");this.minimapSmall?(e.classList.add("enlarge"),e.classList.remove("shrink")):(e.classList.add("shrink"),e.classList.remove("enlarge")),this.minimapSmall=!this.minimapSmall},addResizeButtonToMinimap:function(){let e=this.$refs.flatmapContainer.querySelector(".maplibregl-ctrl-minimap");e&&(this.$refs.minimapResize&&this.$refs.minimapResize.$el.parentNode&&this.$refs.minimapResize.$el.parentNode.removeChild(this.$refs.minimapResize.$el),e.appendChild(this.$refs.minimapResize.$el),this.minimapResizeShow=!0)},setHelpMode:function(e){const t=this.hoverVisibilities.length,r=t-1,n=this.hoverVisibilities[this.helpModeActiveIndex];if(n){const i=n==null?void 0:n.refs,o=n==null?void 0:n.ref,s=this.$refs[i||o];if(s){const{parentElement:l,nextElementSibling:c}=s.$el,u=d=>d&&(d.classList.contains("pathway-container")||d.classList.contains("pathway-location"));(u(l)||u(c))&&(this.drawerOpen=!0)}else this.helpModeActiveIndex+=1}e||(this.helpModeActiveIndex=this.helpModeInitialIndex),this.viewingMode!=="Annotation"&&this.helpModeActiveIndex>9&&(this.helpModeActiveIndex=r),e&&this.helpModeActiveIndex>=r&&this.$emit("help-mode-last-item",!0),e&&!this.helpModeDialog?(this.inHelp=!0,this.hoverVisibilities.forEach(i=>{i.value=!0})):e&&this.helpModeDialog&&t>this.helpModeActiveIndex?this.helpModeActiveIndex>-1?(this.closeFlatmapHelpPopup(),setTimeout(()=>{this.inHelp=!1,this.hoverVisibilities.forEach(i=>{i.value=!1}),this.showTooltip(this.helpModeActiveIndex,200)},300)):this.helpModeActiveIndex===-1&&this.openFlatmapHelpPopup():(this.inHelp=!1,this.hoverVisibilities.forEach(i=>{i.value=!1}),this.closeFlatmapHelpPopup())},showTooltip:function(e,t=500){this.inHelp||(clearTimeout(this.tooltipWait[e]),this.tooltipWait[e]=setTimeout(()=>{this.hoverVisibilities[e].value=!0,this.$emit("shown-tooltip")},t))},hideTooltip:function(e,t=500){this.inHelp||(clearTimeout(this.tooltipWait[e]),this.tooltipWait[e]=setTimeout(()=>{this.hoverVisibilities[e].value=!1},t))},displayTooltip:function(e,t=void 0){this.tooltipDisplay=!0;let r,n={className:"flatmapvuer-popover"};if(t?(r=e,n.annotationFeatureGeometry=t):(r=this.mapImp.modelFeatureIds(e)[0],this.activeDrawTool||(n.positionAtLastClick=!0)),this.connectivityInfoSidebar&&this.viewingMode!=="Annotation"){const i=[e];this.moveMap(i),this.$emit("connectivity-info-open",this.tooltipEntry)}!this.disableUI&&(!this.connectivityInfoSidebar||this.viewingMode==="Annotation")&&this.$nextTick(()=>{this.mapImp.showPopup(r,this.$refs.tooltip.$el,n),this.popUpCssHacks()})},moveMap:function(e){if(this.mapImp){const t=this.mapImp._map,r=this.mapImp._bounds.toArray(),n=500;this.mapImp.zoomToFeatures(e,{noZoomIn:!0}),this.showPathwaysDrawer(!1),r!=null&&r.length&&setTimeout(()=>{t.fitBounds(r,{padding:{right:n},animate:!0})})}},openFlatmapHelpPopup:function(){if(this.mapImp){let e=this.mapImp.modelFeatureIds("UBERON:0000948");e&&e.length>0&&(this.mapImp.showPopup(e[0],"Click for more information",{anchor:"top",className:"flatmap-popup-popper"}),this.$emit("shown-map-tooltip"))}},closeFlatmapHelpPopup:function(){this.$el.querySelectorAll(".maplibregl-popup-close-button").forEach(e=>{e.click()})},getLabels:function(){let e=[];if(this.mapImp){let t=this.mapImp.annotations;for(let r of t.values())r.label&&e.push(r.label);return Array.from(new Set(e))}},getState:function(){if(this.mapImp){let e={entry:this.entry,viewport:this.mapImp.getState()};const t=this.mapImp.getIdentifier();return this.biologicalSex?e.biologicalSex=this.biologicalSex:t&&t.biologicalSex&&(e.biologicalSex=t.biologicalSex),t&&t.uuid&&(e.uuid=t.uuid),e}},setState:function(e){e&&(this.mapImp&&e.entry&&this.entry==e.entry&&(!e.biologicalSex||e.biologicalSex===this.biologicalSex)?e.viewport&&this.mapImp.setState(e.viewport):this.createFlatmap(e),this.setStateRequired=!1)},restoreMapState:function(e){e&&(e.viewport&&this.mapImp.setState(e.viewport),e.searchTerm&&this.searchAndShowResult(e.searchTerm,!0))},setFlightPathInfo:function(e){(e===1.6||e>1.6)&&(this.displayFlightPathOption=!0,this.setFlightPath3D(!1))},createFlatmap:function(e){if(!this.mapImp&&!this.loading){this.loading=!0;let t=!1;this.displayMinimap&&(t={position:"top-right"});let r={taxon:this.entry};this.uuid&&(r.uuid=this.uuid),e?e.uuid?r={uuid:e.uuid}:e.entry&&(r.taxon=e.entry,e.biologicalSex?r.biologicalSex=e.biologicalSex:r.taxon==="NCBITaxon:9606"&&(r.biologicalSex="PATO:0000384")):this.biologicalSex&&(r.biologicalSex=this.biologicalSex),this.mapManager.loadMap(r,this.$refs.display,this.eventCallback(),{minZoom:this.minZoom,tooltips:this.tooltips,minimap:t}).then(n=>{this.mapImp=n,this.serverURL=this.mapImp.makeServerUrl("").slice(0,-1);let i=this.mapImp.details.version;this.setFlightPathInfo(i),this.onFlatmapReady(),this._stateToBeSet?this.restoreMapState(this._stateToBeSet):this.restoreMapState(e)})}else e&&(this._stateToBeSet={viewport:e.viewport,searchTerm:e.searchTerm},this.mapImp&&!this.loading&&this.restoreMapState(this._stateToBeSet))},computePathControlsMaximumHeight(){const e=this.$refs.display;if(e){const t=getComputedStyle(e),r=parseInt(t.paddingTop)+parseInt(t.paddingBottom),n=e.clientHeight-r;this.pathwaysMaxHeight=n-170}},mapResize:function(){try{this.computePathControlsMaximumHeight(),this.mapImp&&(this.mapImp.resize(),this.showMinimap(this.displayMinimap),this.mapImp._minimap&&this.mapImp._minimap._miniMap.resize())}catch{console.error("Map resize error")}},onFlatmapReady:function(){this.sensor=new Apr(this.$refs.display,this.mapResize),this.mapImp.options&&this.mapImp.options.style==="functional"&&(this.isFC=!0),this.mapImp.setBackgroundOpacity(1),this.backgroundChangeCallback(this.currentBackground),this.pathways=this.mapImp.pathTypes(),this.mapImp.enableCentrelines(!1),this.processSystems(this.mapImp.getSystems()),this.processTaxon(this.flatmapAPI,this.mapImp.taxonIdentifiers),this.containsAlert="alert"in this.mapImp.featureFilterRanges(),this.addResizeButtonToMinimap(),this.loading=!1,this.computePathControlsMaximumHeight(),this.drawerOpen=!0,this.mapResize(),this.handleMapClick(),this.$emit("ready",this)},handleMapClick:function(){const e=this.mapImp._map;e&&e.on("click",t=>{this.tooltipEntry.featureId&&this.$emit("connectivity-info-close")})},showMinimap:function(e){this.mapImp&&this.mapImp.showMinimap(e)},showPathwaysDrawer:function(e){this.drawerOpen=e},searchAndShowResult:function(e,t){if(this.mapImp){if(e===void 0||e==="")return this.mapImp.clearSearchResults(),!0;{const r=this.mapImp.search(e);if(r&&r.results&&r.results.length>0){if(this.mapImp.showSearchResults(r),t&&r.results[0].featureId&&r.results[0].text){const n=this.mapImp.annotation(r.results[0].featureId);this.mapImp.showPopup(r.results[0].featureId,n.label,{className:"custom-popup",positionAtLastClick:!1,preserveSelection:!0})}return!0}else this.mapImp.clearSearchResults()}}return!1},searchSuggestions:function(e){return this.mapImp?this.mapImp.search(e):[]}},props:{entry:{type:String,required:!0},uuid:String,biologicalSex:{type:String,default:""},minZoom:{type:Number,default:4},tooltips:{type:Boolean,default:!0},helpMode:{type:Boolean,default:!1},helpModeActiveItem:{type:Number,default:0},helpModeDialog:{type:Boolean,default:!1},helpModeLastItem:{type:Boolean,default:!1},helpModeInitialIndex:{type:Number,default:0},renderAtMounted:{type:Boolean,default:!0},displayMinimap:{type:Boolean,default:!1},displayWarning:{type:Boolean,default:!1},enableOpenMapUI:{type:Boolean,default:!1},openMapOptions:{type:Array,default:function(){return[{display:"Open AC Map",key:"AC"},{display:"Open FC Map",key:"FC"},{display:"Open 3D Human Map",key:"3D"}]}},showStarInLegend:{type:Boolean,default:!1},isLegacy:{type:Boolean,default:!1},displayLatestChanges:{type:Boolean,default:!1},state:{type:Object,default:void 0},flatmapAPI:{type:String,default:"https://mapcore-demo.org/current/flatmap/v3/"},sparcAPI:{type:String,default:"https://api.sparc.science/"},disableUI:{type:Boolean,default:!1},connectivityInfoSidebar:{type:Boolean,default:!1}},provide(){return{flatmapAPI:this.flatmapAPI,sparcAPI:this.sparcAPI,$annotator:this.annotator,getFeaturesAlert:()=>this.featuresAlert,userApiKey:this.userToken}},data:function(){return{annotationEntry:{},tooltipDisplay:!1,serverURL:void 0,layers:[],pathways:[],sckanDisplay:[{label:"Display Path with SCKAN",key:"VALID"}],centreLines:[{label:"Display Nerves",key:"centrelines",enabled:!1}],systems:[],taxonConnectivity:[],pathwaysMaxHeight:1e3,hoverVisibilities:[{value:!1,ref:"markerPopover"},{value:!1,ref:"zoomInPopover"},{value:!1,ref:"zoomOutPopover"},{value:!1,ref:"zoomFitPopover"},{value:!1,ref:"openMapPopover"},{value:!1,ref:"settingsPopover"},{value:!1,ref:"checkBoxPopover"},{value:!1,ref:"warningPopover"},{value:!1,ref:"whatsNewPopover"},{value:!1,ref:"featuredMarkerPopover"},{value:!1,refs:"toolbarPopover",ref:"editPopover"},{value:!1,refs:"toolbarPopover",ref:"deletePopover"},{value:!1,refs:"toolbarPopover",ref:"pointPopover"},{value:!1,refs:"toolbarPopover",ref:"lineStringPopover"},{value:!1,refs:"toolbarPopover",ref:"polygonPopover"},{value:!1,refs:"toolbarPopover",ref:"connectionPopover"}],helpModeActiveIndex:this.helpModeInitialIndex,yellowstar:Cpr,isFC:!1,inHelp:!1,currentBackground:"white",availableBackground:["white","lightskyblue","black"],loading:!1,flatmapMarker:kpr,tooltipEntry:sjr(),connectivityTooltipVisible:!1,drawerOpen:!1,featuresAlert:void 0,flightPath3DRadio:!1,displayFlightPathOption:!1,colourRadio:!0,outlinesRadio:!0,minimapResizeShow:!1,minimapSmall:!1,currentActive:"",selectedDrawnFeature:void 0,currentHover:"",viewingModeIndex:0,viewingModes:{0:{name:"Exploration",description:"Find relevant research and view detail of neural pathways by selecting a pathway to view its connections and data sources"},1:{name:"Neuron Connection",description:"Discover Neuron connections by selecting a neuron and viewing its associated network connections"},2:{name:"Annotation",description:"View internal identifiers of features"}},drawnType:"All tools",drawnTypes:["All tools","Point","LineString","Polygon","None"],annotatedType:"Anyone",annotatedTypes:["Anyone","Me","Others"],openMapRef:void 0,backgroundIconRef:void 0,toolbarOptions:["Edit","Delete","Point","LineString","Polygon","Connection"],annotator:void 0,userInformation:void 0,activeDrawMode:void 0,activeDrawTool:void 0,featureAnnotationSubmitted:!1,drawnCreatedEvent:{},connectionEntry:{},existDrawnFeatures:[],doubleClickedFeature:!1,containsAlert:!1,alertOptions:[{label:"Display Path With Alerts",key:"alert",enabled:!0},{label:"Display Path Without Alerts",key:"withoutAlert",enabled:!0}],mapFilters:a.markRaw({alert:{with:!0,without:!0}})}},computed:{...ijr(ojr,["userToken"]),isValidDrawnCreated:function(){return Object.keys(this.drawnCreatedEvent).length>0},viewingMode:function(){return this.viewingModes[this.viewingModeIndex].name}},watch:{entry:function(){this.state||this.createFlatmap()},helpMode:function(e,t){e!==t&&this.setHelpMode(e)},helpModeActiveItem:function(){this.helpMode&&(this.helpModeActiveIndex+=1,this.setHelpMode(this.helpMode))},state:{handler:function(e,t){e!==t&&(this.mapManager?this.setState(e):this.setStateRequired=!0)},immediate:!0,deep:!0},viewingMode:function(e){e==="Annotation"?(this.loading=!0,this.annotator.authenticate(this.userToken).then(t=>{t.name&&t.email&&(this.showAnnotator(!0),this.userInformation=t,this.setFeatureAnnotated(),this.existDrawnFeatures.length===0&&this.addAnnotationFeature()),this.loading=!1})):this.showAnnotator(!1)},disableUI:function(e){e&&this.closeTooltip()}},mounted:function(){this.openMapRef=a.shallowRef(this.$refs.openMapRef),this.backgroundIconRef=a.shallowRef(this.$refs.backgroundIconRef),this.tooltipWait=[],this.tooltipWait.length=this.hoverVisibilities.length,this.mapManager=new k1e(this.flatmapAPI),this.flatmapQueries=new Mpr,this.flatmapQueries.initialise(this.flatmapAPI),this.state?this.setStateRequired&&this.setState(this.state):this.renderAtMounted&&this.createFlatmap()}},kp=e=>(a.pushScopeId("data-v-1a87baba"),e=e(),a.popScopeId(),e),cjr={class:"flatmap-container",ref:"flatmapContainer","element-loading-text":"Loading...","element-loading-background":"rgba(0, 0, 0, 0.3)"},ujr={style:{height:"100%",width:"100%",position:"relative","overflow-y":"none"}},djr={style:{height:"100%",width:"100%"},ref:"display"},hjr={class:"beta-popovers"},pjr=kp(()=>a.createElementVNode("a",{href:"https://sparc.science/resources/1ZUKXU2YmLcn2reCyXjlew",target:"_blank"}," ApiNATOMY ",-1)),fjr=kp(()=>a.createElementVNode("a",{href:"https://sparc.science/resources/6eg3VpJbwQR4B84CjrvmyD",target:"_blank"}," SCKAN ",-1)),mjr=kp(()=>a.createElementVNode("a",{href:"https://sparc.science/resources/1ZUKXU2YmLcn2reCyXjlew",target:"_blank"}," ApiNATOMY ",-1)),gjr=kp(()=>a.createElementVNode("a",{href:"https://sparc.science/resources/6eg3VpJbwQR4B84CjrvmyD",target:"_blank"}," SCKAN ",-1)),yjr=kp(()=>a.createElementVNode("span",{class:"warning-text"},"Legacy Map",-1)),Tjr={key:1,class:"warning-text"},vjr=kp(()=>a.createElementVNode("span",{class:"warning-text"},"What's new?",-1)),bjr=kp(()=>a.createElementVNode("b",null,"Neuron Connection mode",-1)),Qjr=kp(()=>a.createElementVNode("p",null," You can now view the network of neurons connected to a selected neuron. This mode is located in the settings at the bottom right. Once discovery mode is on, click on a neuron to see its connections. ",-1)),xjr=kp(()=>a.createElementVNode("b",null,"Now can display up to 6 panes",-1)),_jr=kp(()=>a.createElementVNode("p",null," You can now display up to 6 panes in the flatmap. This allows you to compare between different datasets and/or different views of the same dataset. ",-1)),wjr={class:"bottom-right-control"},Ljr=kp(()=>a.createElementVNode("div",null,[a.createTextVNode(" Fit to "),a.createElementVNode("br"),a.createTextVNode(" window ")],-1)),Sjr=["innerHTML"],kjr=["innerHTML"],Mjr={style:{"margin-bottom":"2px"}},Cjr={key:0,class:"viewing-mode-title"},Ejr=["onClick"],Ajr=["onClick"];function Ojr(e,t,r,n,i,o){const s=a.resolveComponent("map-svg-sprite-color"),l=gCe,c=Mu,u=AB,d=vne,h=a.resolveComponent("DrawToolbar"),p=a.resolveComponent("map-svg-icon"),f=fAe,m=a.resolveComponent("tree-controls"),g=pAe,T=fCe,y=NEe,v=jM,Q=UM,x=rie,L=EB,w=eAe,k=tAe,M=a.resolveComponent("Tooltip"),E=uAe,O=iie;return a.withDirectives((a.openBlock(),a.createElementBlock("div",cjr,[a.createVNode(s),a.createElementVNode("div",ujr,[a.createElementVNode("div",djr,null,512),a.withDirectives(a.createElementVNode("div",hjr,[a.createElementVNode("div",null,[a.createVNode(u,{placement:"right","popper-class":"warning-popper flatmap-popper",teleported:!1,visible:e.hoverVisibilities[7].value,ref:"warningPopover"},{reference:a.withCtx(()=>[r.displayWarning?(a.openBlock(),a.createElementBlock("div",{key:0,class:"warning-icon",onMouseover:t[7]||(t[7]=P=>o.showTooltip(6)),onMouseout:t[8]||(t[8]=P=>o.hideTooltip(6))},[a.createVNode(c,null,{default:a.withCtx(()=>[a.createVNode(l)]),_:1}),r.isLegacy?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[yjr,a.createElementVNode("div",{class:"latest-map-text",onClick:t[6]||(t[6]=(...P)=>o.viewLatestMap&&o.viewLatestMap(...P))}," Click here for the latest map ")],64)):(a.openBlock(),a.createElementBlock("span",Tjr,"Beta"))],32)):a.createCommentVNode("",!0)]),default:a.withCtx(()=>[r.isLegacy?(a.openBlock(),a.createElementBlock("p",{key:0,onMouseover:t[0]||(t[0]=P=>o.showTooltip(7)),onMouseout:t[1]||(t[1]=P=>o.hideTooltip(7))}," This is a legacy map, you may view the latest map instead. ",32)):e.isFC?(a.openBlock(),a.createElementBlock("p",{key:1,onMouseover:t[2]||(t[2]=P=>o.showTooltip(7)),onMouseout:t[3]||(t[3]=P=>o.hideTooltip(7))},[a.createTextVNode(" This map displays the connectivity of individual neurons. Specifically, those which align with (parts of) the neuron populations from the "),pjr,a.createTextVNode(" models available in "),fjr,a.createTextVNode(". ")],32)):(a.openBlock(),a.createElementBlock("p",{key:2,onMouseover:t[4]||(t[4]=P=>o.showTooltip(6)),onMouseout:t[5]||(t[5]=P=>o.hideTooltip(6))},[a.createTextVNode(" This map displays the connectivity of neuron populations. Specifically, those from the primarily rat-based "),mjr,a.createTextVNode(" models available in "),gjr,a.createTextVNode(". New connectivity and species specificity will be added as the SPARC program progresses. ")],32))]),_:1},8,["visible"])]),r.displayLatestChanges?(a.openBlock(),a.createBlock(u,{key:0,placement:"right",teleported:!1,trigger:"manual","popper-class":"warning-popper flatmap-popper",visible:e.hoverVisibilities[8].value,ref:"whatsNewPopover"},{reference:a.withCtx(()=>[r.displayLatestChanges?(a.openBlock(),a.createElementBlock("div",{key:0,class:"latest-changesicon",onMouseover:t[9]||(t[9]=P=>o.showTooltip(8)),onMouseout:t[10]||(t[10]=P=>o.hideTooltip(8))},[a.createVNode(c,null,{default:a.withCtx(()=>[a.createVNode(l)]),_:1}),vjr],32)):a.createCommentVNode("",!0)]),default:a.withCtx(()=>[bjr,Qjr,xjr,_jr]),_:1},8,["visible"])):a.createCommentVNode("",!0)],512),[[a.vShow,!r.disableUI]]),a.withDirectives(a.createVNode(c,{class:a.normalizeClass(["minimap-resize",{enlarge:e.minimapSmall,shrink:!e.minimapSmall}]),ref:"minimapResize",onClick:o.closeMinimap},{default:a.withCtx(()=>[a.createVNode(d)]),_:1},8,["class","onClick"]),[[a.vShow,e.minimapResizeShow]]),o.viewingMode==="Annotation"&&e.userInformation&&!r.disableUI?(a.openBlock(),a.createBlock(h,{key:0,mapCanvas:{containerHTML:this.$el,class:".maplibregl-canvas"},toolbarOptions:e.toolbarOptions,drawnType:e.drawnType,activeDrawTool:e.activeDrawTool,activeDrawMode:e.activeDrawMode,newlyDrawnEntry:e.drawnCreatedEvent,connectionEntry:e.connectionEntry,hoverVisibilities:e.hoverVisibilities,onClickToolbar:o.toolbarEvent,onFeatureTooltip:o.connectedFeatureTooltip,onConfirmDrawn:o.confirmDrawnFeature,onCancelDrawn:o.cancelDrawnFeature,onShowTooltip:o.showTooltip,onHideTooltip:o.hideTooltip,ref:"toolbarPopover"},null,8,["mapCanvas","toolbarOptions","drawnType","activeDrawTool","activeDrawMode","newlyDrawnEntry","connectionEntry","hoverVisibilities","onClickToolbar","onFeatureTooltip","onConfirmDrawn","onCancelDrawn","onShowTooltip","onHideTooltip"])):a.createCommentVNode("",!0),a.withDirectives(a.createElementVNode("div",wjr,[a.createVNode(u,{content:"Zoom in",placement:"left",teleported:!1,trigger:"manual",width:"70","popper-class":"flatmap-popper",visible:e.hoverVisibilities[1].value,ref:"zoomInPopover"},{reference:a.withCtx(()=>[a.createVNode(p,{icon:"zoomIn",class:"icon-button zoomIn",onClick:t[11]||(t[11]=P=>o.zoomIn()),onMouseover:t[12]||(t[12]=P=>o.showTooltip(1)),onMouseout:t[13]||(t[13]=P=>o.hideTooltip(1))})]),_:1},8,["visible"]),a.createVNode(u,{content:"Zoom out",placement:"top-end",teleported:!1,trigger:"manual",width:"70","popper-class":"flatmap-popper",visible:e.hoverVisibilities[2].value,ref:"zoomOutPopover"},{reference:a.withCtx(()=>[a.createVNode(p,{icon:"zoomOut",class:"icon-button zoomOut",onClick:t[14]||(t[14]=P=>o.zoomOut()),onMouseover:t[15]||(t[15]=P=>o.showTooltip(2)),onMouseout:t[16]||(t[16]=P=>o.hideTooltip(2))})]),_:1},8,["visible"]),a.createVNode(u,{content:"Reset",placement:"top",teleported:!1,trigger:"manual",width:"70","popper-class":"flatmap-popper",visible:e.hoverVisibilities[3].value,ref:"zoomFitPopover"},{reference:a.withCtx(()=>[a.createVNode(p,{icon:"fitWindow",class:"icon-button fitWindow",onClick:t[17]||(t[17]=P=>o.resetView()),onMouseover:t[18]||(t[18]=P=>o.showTooltip(3)),onMouseout:t[19]||(t[19]=P=>o.hideTooltip(3))})]),default:a.withCtx(()=>[Ljr]),_:1},8,["visible"])],512),[[a.vShow,!r.disableUI]]),a.createVNode(u,{content:"Change pathway visibility",placement:"right",teleported:!1,trigger:"manual",offset:-18,"popper-class":"flatmap-popper",visible:e.hoverVisibilities[6].value,ref:"checkBoxPopover"},{reference:a.withCtx(()=>[a.withDirectives(a.createElementVNode("div",{class:a.normalizeClass(["pathway-location",{open:e.drawerOpen,close:!e.drawerOpen}])},[a.withDirectives((a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["pathway-container",{open:e.drawerOpen,close:!e.drawerOpen}]),style:a.normalizeStyle({"max-height":e.pathwaysMaxHeight+"px"})},[e.isFC?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(f,{key:0,class:"svg-legends-container"})),r.showStarInLegend?(a.openBlock(),a.createBlock(u,{key:1,content:"Location of the featured dataset",placement:"right",teleported:!0,trigger:"manual",width:"max-content",offset:-10,"popper-class":"flatmap-popper flatmap-teleport-popper",visible:e.hoverVisibilities[9].value,ref:"featuredMarkerPopover"},{reference:a.withCtx(()=>[a.withDirectives(a.createElementVNode("div",{class:"yellow-star-legend",innerHTML:e.yellowstar,onMouseover:t[20]||(t[20]=P=>o.showTooltip(9)),onMouseout:t[21]||(t[21]=P=>o.hideTooltip(9))},null,40,Sjr),[[E,void 0,"featuredMarkerPopover"]])]),_:1},8,["visible"])):a.createCommentVNode("",!0),a.createVNode(u,{content:"Find these markers for data. The number inside the markers is the number of datasets available for each marker.",placement:"right",teleported:!1,width:"200",trigger:"manual","popper-class":"flatmap-popper flatmap-marker-popper",visible:e.hoverVisibilities[5].value,ref:"markerPopover"},{reference:a.withCtx(()=>[a.withDirectives(a.createElementVNode("div",{class:"flatmap-marker-help",innerHTML:e.flatmapMarker},null,8,kjr),[[a.vShow,e.hoverVisibilities[0].value],[E,void 0,"markerPopover"]])]),_:1},8,["visible"]),e.isFC&&e.systems&&e.systems.length>0?(a.openBlock(),a.createBlock(m,{key:2,class:"treeControls",mapType:"flatmap",title:"Systems",treeData:e.systems,active:e.currentActive,hover:e.currentHover,onCheckChanged:o.systemSelected,onCheckAll:o.checkAllSystems,onChangeActive:o.ftuSelected,ref:"treeControls"},null,8,["treeData","active","hover","onCheckChanged","onCheckAll","onChangeActive"])):a.createCommentVNode("",!0),e.containsAlert&&e.alertOptions?(a.openBlock(),a.createBlock(g,{title:"Alert",labelKey:"label",identifierKey:"key",selections:e.alertOptions,onChanged:o.alertSelected,onCheckboxMouseEnter:o.alertMouseEnterEmitted,onSelectionsDataChanged:o.onSelectionsDataChanged,onCheckAll:o.checkAllAlerts,ref:"alertSelection",key:"alertSelection"},null,8,["selections","onChanged","onCheckboxMouseEnter","onSelectionsDataChanged","onCheckAll"])):a.createCommentVNode("",!0),e.pathways&&e.pathways.length>0?(a.openBlock(),a.createBlock(g,{title:"Pathways",labelKey:"label",identifierKey:"type",colourStyle:"line",selections:e.pathways,onChanged:o.pathwaysSelected,onSelectionsDataChanged:o.onSelectionsDataChanged,onCheckAll:o.checkAllPathways,ref:"pathwaysSelection",key:"pathwaysSelection"},null,8,["selections","onChanged","onSelectionsDataChanged","onCheckAll"])):a.createCommentVNode("",!0),!e.isFC&&e.taxonConnectivity&&e.taxonConnectivity.length>0?(a.openBlock(),a.createBlock(g,{title:"Studied in",labelKey:"label",identifierKey:"taxon",helpMessage:"Evidence exists that this set of neuron populations have been studied in the given species.",selections:e.taxonConnectivity,onChanged:o.taxonsSelected,onCheckboxMouseEnter:o.taxonMouseEnterEmitted,onSelectionsDataChanged:o.onSelectionsDataChanged,onCheckAll:o.checkAllTaxons,ref:"taxonSelection",key:"taxonSelection"},null,8,["selections","onChanged","onCheckboxMouseEnter","onSelectionsDataChanged","onCheckAll"])):a.createCommentVNode("",!0),!e.isFC&&e.centreLines&&e.centreLines.length>0?(a.openBlock(),a.createBlock(g,{title:"Nerves",labelKey:"label",identifierKey:"key",selections:e.centreLines,onChanged:o.centreLinesSelected,onSelectionsDataChanged:o.onSelectionsDataChanged,ref:"centrelinesSelection",key:"centrelinesSelection"},null,8,["selections","onChanged","onSelectionsDataChanged"])):a.createCommentVNode("",!0)],6)),[[E,void 0,"checkBoxPopover"]]),a.createElementVNode("div",{onClick:t[22]||(t[22]=(...P)=>o.toggleDrawer&&o.toggleDrawer(...P)),class:a.normalizeClass(["drawer-button",{open:e.drawerOpen,close:!e.drawerOpen}])},[a.createVNode(c,null,{default:a.withCtx(()=>[a.createVNode(T)]),_:1})],2)],2),[[a.vShow,!r.disableUI]])]),_:1},8,["visible"]),e.openMapRef?(a.openBlock(),a.createBlock(u,{key:1,ref:"open-map-popover","virtual-ref":e.openMapRef,placement:"top-start",width:"136",teleported:!1,trigger:"click","popper-class":"open-map-popper non-selectable","virtual-triggering":""},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(r.openMapOptions,P=>(a.openBlock(),a.createBlock(v,{key:P.key},{default:a.withCtx(()=>[a.createVNode(y,{type:"primary",plain:"",onClick:R=>e.$emit("open-map",P.key)},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(P.display),1)]),_:2},1032,["onClick"])]),_:2},1024))),128))]),_:1},8,["virtual-ref"])):a.createCommentVNode("",!0),a.createVNode(u,{ref:"backgroundPopover","virtual-ref":e.backgroundIconRef,placement:"top-start",width:"320",teleported:!1,trigger:"click","popper-class":"background-popper h-auto","virtual-triggering":""},{default:a.withCtx(()=>[a.createElementVNode("div",null,[a.createVNode(v,{class:"backgroundText"},{default:a.withCtx(()=>[a.createTextVNode("Viewing Mode")]),_:1}),a.createVNode(v,{class:"backgroundControl"},{default:a.withCtx(()=>[a.createElementVNode("div",Mjr,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.viewingModes,(P,R)=>(a.openBlock(),a.createElementBlock(a.Fragment,{key:P+R},[P.name===o.viewingMode?(a.openBlock(),a.createElementBlock("span",Cjr,[a.createElementVNode("b",null,a.toDisplayString(P.name),1)])):(a.openBlock(),a.createElementBlock("span",{key:1,class:"viewing-mode-unselected",onClick:B=>o.changeViewingMode(R)},a.toDisplayString(P.name),9,Ejr))],64))),128))]),a.createVNode(v,{class:"viewing-mode-description"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(e.viewingModes[e.viewingModeIndex].description),1)]),_:1})]),_:1}),o.viewingMode==="Annotation"&&e.userInformation?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[a.createVNode(v,{class:"backgroundText"},{default:a.withCtx(()=>[a.createTextVNode("Drawn By*")]),_:1}),a.createVNode(v,{class:"backgroundControl"},{default:a.withCtx(()=>[a.createVNode(L,{teleported:!1,modelValue:e.drawnType,"onUpdate:modelValue":t[23]||(t[23]=P=>e.drawnType=P),placeholder:"Select",class:"select-box","popper-class":"flatmap_dropdown",onChange:o.setDrawnType},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.drawnTypes,P=>(a.openBlock(),a.createBlock(x,{key:P,label:P,value:P},{default:a.withCtx(()=>[a.createVNode(v,null,{default:a.withCtx(()=>[a.createVNode(Q,{span:12},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(P),1)]),_:2},1024)]),_:2},1024)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])]),_:1}),a.createVNode(v,{class:"backgroundText"},{default:a.withCtx(()=>[a.createTextVNode("Annotated By*")]),_:1}),a.createVNode(v,{class:"backgroundControl"},{default:a.withCtx(()=>[a.createVNode(L,{teleported:!1,modelValue:e.annotatedType,"onUpdate:modelValue":t[24]||(t[24]=P=>e.annotatedType=P),placeholder:"Select",class:"select-box","popper-class":"flatmap_dropdown",onChange:o.setAnnotatedType},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.annotatedTypes,P=>(a.openBlock(),a.createBlock(x,{key:P,label:P,value:P},{default:a.withCtx(()=>[a.createVNode(v,null,{default:a.withCtx(()=>[a.createVNode(Q,{span:12},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(P),1)]),_:2},1024)]),_:2},1024)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])]),_:1})],64)):a.createCommentVNode("",!0),e.displayFlightPathOption?(a.openBlock(),a.createBlock(v,{key:1,class:"backgroundSpacer"})):a.createCommentVNode("",!0),e.displayFlightPathOption?(a.openBlock(),a.createBlock(v,{key:2,class:"backgroundText"},{default:a.withCtx(()=>[a.createTextVNode("Flight path display")]),_:1})):a.createCommentVNode("",!0),e.displayFlightPathOption?(a.openBlock(),a.createBlock(v,{key:3,class:"backgroundControl"},{default:a.withCtx(()=>[a.createVNode(k,{modelValue:e.flightPath3DRadio,"onUpdate:modelValue":t[25]||(t[25]=P=>e.flightPath3DRadio=P),class:"flatmap-radio",onChange:o.setFlightPath3D},{default:a.withCtx(()=>[a.createVNode(w,{label:!1},{default:a.withCtx(()=>[a.createTextVNode("2D")]),_:1}),a.createVNode(w,{label:!0},{default:a.withCtx(()=>[a.createTextVNode("3D")]),_:1})]),_:1},8,["modelValue","onChange"])]),_:1})):a.createCommentVNode("",!0),a.createVNode(v,{class:"backgroundSpacer"}),a.createVNode(v,{class:"backgroundText"},{default:a.withCtx(()=>[a.createTextVNode("Organs display")]),_:1}),a.createVNode(v,{class:"backgroundControl"},{default:a.withCtx(()=>[a.createVNode(k,{modelValue:e.colourRadio,"onUpdate:modelValue":t[26]||(t[26]=P=>e.colourRadio=P),class:"flatmap-radio",onChange:o.setColour},{default:a.withCtx(()=>[a.createVNode(w,{label:!0},{default:a.withCtx(()=>[a.createTextVNode("Colour")]),_:1}),a.createVNode(w,{label:!1},{default:a.withCtx(()=>[a.createTextVNode("Greyscale")]),_:1})]),_:1},8,["modelValue","onChange"])]),_:1}),a.createVNode(v,{class:"backgroundSpacer"}),a.createVNode(v,{class:"backgroundText"},{default:a.withCtx(()=>[a.createTextVNode("Outlines display")]),_:1}),a.createVNode(v,{class:"backgroundControl"},{default:a.withCtx(()=>[a.createVNode(k,{modelValue:e.outlinesRadio,"onUpdate:modelValue":t[27]||(t[27]=P=>e.outlinesRadio=P),class:"flatmap-radio",onChange:o.setOutlines},{default:a.withCtx(()=>[a.createVNode(w,{label:!0},{default:a.withCtx(()=>[a.createTextVNode("Show")]),_:1}),a.createVNode(w,{label:!1},{default:a.withCtx(()=>[a.createTextVNode("Hide")]),_:1})]),_:1},8,["modelValue","onChange"])]),_:1}),a.createVNode(v,{class:"backgroundSpacer"}),a.createVNode(v,{class:"backgroundText"},{default:a.withCtx(()=>[a.createTextVNode("Change background")]),_:1}),a.createVNode(v,{class:"backgroundControl"},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.availableBackground,P=>(a.openBlock(),a.createElementBlock("div",{key:P,class:a.normalizeClass(["backgroundChoice",P,P==e.currentBackground?"active":""]),onClick:R=>o.backgroundChangeCallback(P)},null,10,Ajr))),128))]),_:1})])]),_:1},8,["virtual-ref"]),a.withDirectives(a.createElementVNode("div",{class:a.normalizeClass(["settings-group",{open:e.drawerOpen,close:!e.drawerOpen}])},[a.createVNode(v,null,{default:a.withCtx(()=>[a.createVNode(u,{visible:e.hoverVisibilities[4].value,content:"Open new map",placement:"right",teleported:!1,"popper-class":"flatmap-popper",ref:"openMapPopover"},{reference:a.withCtx(()=>[r.enableOpenMapUI&&r.openMapOptions.length>0?(a.openBlock(),a.createBlock(p,{key:0,ref:"openMapRef",icon:"openMap",class:"icon-button open-map-button",onMouseover:t[28]||(t[28]=P=>o.showTooltip(4)),onMouseout:t[29]||(t[29]=P=>o.hideTooltip(4))},null,512)):a.createCommentVNode("",!0)]),_:1},8,["visible"])]),_:1}),a.createVNode(v,null,{default:a.withCtx(()=>[a.createVNode(u,{content:"Change settings",placement:"right",visible:e.hoverVisibilities[5].value,teleported:!1,trigger:"manual","popper-class":"flatmap-popper",ref:"settingsPopover"},{reference:a.withCtx(()=>[a.createVNode(p,{ref:"backgroundIconRef",icon:"changeBckgd",class:"icon-button",onMouseover:t[30]||(t[30]=P=>o.showTooltip(5)),onMouseout:t[31]||(t[31]=P=>o.hideTooltip(5))},null,512)]),_:1},8,["visible"])]),_:1})],2),[[a.vShow,!r.disableUI]]),a.withDirectives(a.createVNode(M,{ref:"tooltip",class:"tooltip",annotationEntry:e.annotationEntry,tooltipEntry:e.tooltipEntry,annotationDisplay:o.viewingMode==="Annotation",onAnnotation:o.commitAnnotationEvent},null,8,["annotationEntry","tooltipEntry","annotationDisplay","onAnnotation"]),[[a.vShow,e.tooltipDisplay]])])])),[[O,e.loading]])}const V1e=PB(ljr,[["render",Ojr],["__scopeId","data-v-1a87baba"]]);function Ijr(e){return{all:e=e||new Map,on:function(t,r){var n=e.get(t);n?n.push(r):e.set(t,[r])},off:function(t,r){var n=e.get(t);n&&(r?n.splice(n.indexOf(r)>>>0,1):e.set(t,[]))},emit:function(t,r){var n=e.get(t);n&&n.slice().map(function(i){i(r)}),(n=e.get("*"))&&n.slice().map(function(i){i(t,r)})}}}const Dje=new Ijr,zje={"NCBITaxon:10114":"01fedbf9-d783-509c-a10c-827941ab13da","NCBITaxon:9823":"a336ac04-24db-561f-a25f-1c994fe17410","NCBITaxon:9606":"42ed6323-f645-5fbe-bada-9581819cf689","NCBITaxon:10090":"25285fab-48a0-5620-a6a0-f9a0374837d5","NCBITaxon:9685":"73060497-46a6-52bf-b975-cac511c127cb"},Pjr={name:"MultiFlatmapVuer",components:{Col:UM,Row:jM,Option:rie,Select:EB,Popover:AB,FlatmapVuer:V1e},beforeMount(){this._resolveList=[],this._initialised=!1},mounted:function(){this.initialise(),Dje.on("onActionClick",e=>{this.resourceSelected(e)}),Dje.on("open-pubmed-url",e=>{this.$emit("open-pubmed-url",e)})},methods:{initialise:function(){return new Promise(e=>{this.requireInitialisation?(this.requireInitialisation=!1,fetch(this.flatmapAPI).then(t=>t.json()).then(t=>{Object.keys(this.availableSpecies).forEach(n=>{const i=this.availableSpecies[n].uuid;if(i&&t.map(o=>o.uuid).indexOf(i)>0)this.speciesList[n]=a.reactive(this.availableSpecies[n]);else for(let o=0;o<t.length;o++)if(this.availableSpecies[n].taxo===t[o].taxon)if(this.availableSpecies[n].biologicalSex){if(t[o].biologicalSex&&t[o].biologicalSex===this.availableSpecies[n].biologicalSex){this.speciesList[n]=a.reactive(this.availableSpecies[n]);break}}else{this.speciesList[n]=a.reactive(this.availableSpecies[n]);break}});let r=this.initial;if(this.state){const n=this.state.state;(!n||!n.uuid&&!n.entry)&&this.state.species?r=this.state.species:r=void 0}r&&(r&&this.speciesList[r]!==void 0?this.activeSpecies=r:this.activeSpecies=Object.keys(this.speciesList)[0],this.setSpecies(this.activeSpecies,this.state?this.state.state:void 0,5)),this._initialised=!0,e(),this._resolveList.forEach(n=>{n()})})):this._initialised?e():this._resolveList.push(e)})},resourceSelected:function(e){this.$emit("resource-selected",e)},FlatmapReady:function(e){this.$emit("ready",e)},getCurrentFlatmap:function(){return this.$refs[this.activeSpecies][0]},panZoomCallback:function(e){this.$emit("pan-zoom-callback",e)},onConnectivityInfoClose:function(){this.$emit("connectivity-info-close")},onConnectivityInfoOpen:function(e){this.$emit("connectivity-info-open",e)},onSelectionsDataChanged:function(e){this.$emit("pathway-selection-changed",e)},showPopup:function(e,t,r){this.getCurrentFlatmap().showPopup(e,t,r)},showMarkerPopup:function(e,t,r){this.getCurrentFlatmap().showMarkerPopup(e,t,r)},setSpecies:function(e,t,r){if(this.$refs&&e in this.$refs)this.activeSpecies=e,this.$refs[this.activeSpecies][0].createFlatmap(t),this.$emit("flatmapChanged",this.activeSpecies);else if(r){const n=r-1;n>=0&&this.$nextTick(()=>{this.setSpecies(e,t,n)})}},viewLatestMap:function(e){const t=Object.keys(this.speciesList);for(let r=0;r<t.length;r++){const n=this.speciesList[t[r]];if(!n.isLegacy&&n.taxo===e.entry&&n.biologicalSex===e.biologicalSex){this.setSpecies(t[r],e,0);return}}},createLegacyEntry:function(e,t,r){if(r&&t){let n="Legacy";return e.species&&(e.species.slice(0,6)==="Legacy"?n=e.species:n=n+` ${e.species}`),this.speciesList[n]=a.reactive({taxo:t,isLegacy:!0,displayWarning:!0}),{species:n,state:{entry:t,uuid:r,viewport:e.state.viewport,searchTerm:e.state.searchTerm}}}},updateState:function(e){return new Promise(t=>{if(e&&e.state){const r=e.state;if(r.uuid){if(r.entry)return new Promise(()=>{const n=new k1e(this.flatmapAPI),i={taxon:r.entry};r.biologicalSex&&(i.biologicalSex=r.biologicalSex),n.findMap_(i).then(o=>{if(o.uuid!==r.uuid)return this.createLegacyEntry(e,r.entry,r.uuid)}).then(o=>{t(o||e)}).catch(()=>{t(e)})})}else if(r.entry){const n=r.entry in zje?zje[r.entry]:void 0,i=this.createLegacyEntry(e,r.entry,n);t(i||e)}}t(e)})},getState:function(){let e={species:this.activeSpecies,state:void 0},t=this.getCurrentFlatmap();return e.state=t.getState(),e},setState:function(e){e&&this.updateState(e).then(t=>{this.initialise().then(()=>{t.species&&t.species!==this.activeSpecies?this.setSpecies(t.species,t.state,5):t.state&&this.getCurrentFlatmap().setState(t.state)})})},activateTooltipByIndex:function(e){return e===this.helpModeActiveItem&&this.helpMode},onHelpModeLastItem:function(e){e&&this.$emit("help-mode-last-item",!0)},onTooltipShown:function(){this.$emit("shown-tooltip")},onMapTooltipShown:function(){this.$emit("shown-map-tooltip")}},props:{initial:{type:String,default:""},minZoom:{type:Number,default:4},renderAtMounted:{type:Boolean,default:!1},helpMode:{type:Boolean,default:!1},helpModeActiveItem:{type:Number,default:0},helpModeDialog:{type:Boolean,default:!1},helpModeLastItem:{type:Boolean,default:!1},displayMinimap:{type:Boolean,default:!1},showStarInLegend:{type:Boolean,default:!1},enableOpenMapUI:{type:Boolean,default:!1},openMapOptions:{type:Array},availableSpecies:{type:Object,default:function(){return{"Human Female":{taxo:"NCBITaxon:9606",biologicalSex:"PATO:0000383",iconClass:"mapicon-icon_human",displayWarning:!0},"Human Male":{taxo:"NCBITaxon:9606",biologicalSex:"PATO:0000384",iconClass:"mapicon-icon_human",displayWarning:!0},Rat:{taxo:"NCBITaxon:10114",iconClass:"mapicon-icon_rat",displayLatestChanges:!0},Mouse:{taxo:"NCBITaxon:10090",iconClass:"mapicon-icon_mouse",displayWarning:!0},Pig:{taxo:"NCBITaxon:9823",iconClass:"mapicon-icon_pig",displayWarning:!0},Cat:{taxo:"NCBITaxon:9685",iconClass:"mapicon-icon_cat",displayWarning:!0}}}},state:{type:Object,default:void 0},flatmapAPI:{type:String,default:"https://mapcore-demo.org/current/flatmap/v3/"},sparcAPI:{type:String,default:"https://api.sparc.science/"},disableUI:{type:Boolean,default:!1},connectivityInfoSidebar:{type:Boolean,default:!1}},data:function(){return{activeSpecies:void 0,speciesList:{},requireInitialisation:!0}},watch:{state:{handler:function(e){this.setState(e)},immediate:!0,deep:!0}}},Vjr=e=>(a.pushScopeId("data-v-c373f9aa"),e=e(),a.popScopeId(),e),Hjr={class:"multi-container",ref:"multiContainer"},Rjr={key:0,style:{position:"absolute","z-index":"10"}},Njr=Vjr(()=>a.createElementVNode("div",{class:"species-display-text"},"Species",-1)),Bjr={class:"select-box-icon"};function Fjr(e,t,r,n,i,o){const s=rie,l=EB,c=AB,u=V1e;return a.openBlock(),a.createElementBlock("div",Hjr,[r.disableUI?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",Rjr,[Njr,a.createVNode(c,{content:"Select a species",placement:"right",trigger:"manual","popper-class":"flatmap-popper flatmap-teleport-popper right-popper",width:"max-content",visible:o.activateTooltipByIndex(0),teleported:!1,ref:"selectPopover"},{reference:a.withCtx(()=>[a.createVNode(l,{id:"flatmap-select",teleported:!1,modelValue:e.activeSpecies,"onUpdate:modelValue":t[0]||(t[0]=d=>e.activeSpecies=d),placeholder:"Select",class:"select-box","popper-class":"flatmap-dropdown",onChange:o.setSpecies},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.speciesList,(d,h)=>(a.openBlock(),a.createBlock(s,{key:h,label:h,value:h},{default:a.withCtx(()=>[a.createElementVNode("span",Bjr,[a.createElementVNode("i",{class:a.normalizeClass(d.iconClass)},null,2)]),a.createTextVNode(" "+a.toDisplayString(h),1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])]),_:1},8,["visible"])])),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.speciesList,(d,h)=>a.withDirectives((a.openBlock(),a.createBlock(u,{key:h,entry:d.taxo,uuid:d.uuid,biologicalSex:d.biologicalSex,displayWarning:d.displayWarning,displayLatestChanges:d.displayLatestChanges,isLegacy:d.isLegacy,ref_for:!0,ref:h,enableOpenMapUI:r.enableOpenMapUI,openMapOptions:r.openMapOptions,disableUI:r.disableUI,onViewLatestMap:o.viewLatestMap,onResourceSelected:o.resourceSelected,onReady:o.FlatmapReady,onPanZoomCallback:o.panZoomCallback,connectivityInfoSidebar:r.connectivityInfoSidebar,onConnectivityInfoOpen:o.onConnectivityInfoOpen,onConnectivityInfoClose:o.onConnectivityInfoClose,onOpenMap:t[1]||(t[1]=p=>e.$emit("open-map",p)),onPathwaySelectionChanged:o.onSelectionsDataChanged,minZoom:r.minZoom,helpMode:e.activeSpecies==h&&r.helpMode,helpModeActiveItem:r.helpModeActiveItem,helpModeDialog:r.helpModeDialog,helpModeInitialIndex:-2,onHelpModeLastItem:o.onHelpModeLastItem,onShownTooltip:o.onTooltipShown,onShownMapTooltip:o.onMapTooltipShown,renderAtMounted:r.renderAtMounted,displayMinimap:r.displayMinimap,showStarInLegend:r.showStarInLegend,style:{height:"100%"},flatmapAPI:r.flatmapAPI,sparcAPI:r.sparcAPI},null,8,["entry","uuid","biologicalSex","displayWarning","displayLatestChanges","isLegacy","enableOpenMapUI","openMapOptions","disableUI","onViewLatestMap","onResourceSelected","onReady","onPanZoomCallback","connectivityInfoSidebar","onConnectivityInfoOpen","onConnectivityInfoClose","onPathwaySelectionChanged","minZoom","helpMode","helpModeActiveItem","helpModeDialog","onHelpModeLastItem","onShownTooltip","onShownMapTooltip","renderAtMounted","displayMinimap","showStarInLegend","flatmapAPI","sparcAPI"])),[[a.vShow,e.activeSpecies==h]])),128))],512)}const Djr=PB(Pjr,[["render",Fjr],["__scopeId","data-v-c373f9aa"]]),zjr={name:"Flatmap",mixins:[eQ,Mwe],components:{FlatmapVuer:V1e,HelpModeDialog:$re},methods:{getState:function(){return this.$refs.flatmap.getState()},search:function(e){return this.$refs.flatmap.searchAndShowResult(e)},getFlatmapImp(){var e;return(e=this.$refs.flatmap)==null?void 0:e.mapImp},flatmaprResourceSelected:function(e,t){if(this.resourceSelected(e,t,this.$refs.flatmap.viewingMode==="Exploration"),t.eventType==="click"&&t.feature.type==="feature"){const r={label:t.label||"",id:t.feature.id||"",featureId:t.feature.featureId||"",taxonomy:t.taxonomy||"",resources:t.resource.join(", ")},n=eye(r);V1.sendEvent({event:"interaction_event",event_name:"portal_maps_connectivity",category:n,location:e+" "+this.$refs.flatmap.viewingMode})}},flatmapReadyCall:function(e){let t={id:this.entry.id,prov:this.getFlatmapImp().provenance};vo.emit("mapImpProv",t),this.$emit("flatmap-provenance-ready",t),this.getAvailableTerms(),this.entry.resource==="FunctionalConnectivity"&&this.flatmapReadyForMarkerUpdates(e)},onPathwaySelectionChanged:function(e){const{label:t,property:r,checked:n,selectionsTitle:i}=e;V1.sendEvent({event:"interaction_event",event_name:"portal_maps_pathway_change",category:t+" ["+r+"] "+n,location:i})},highlightFeatures:function(e){let t=e.name;const r=this.$refs.flatmap.mapImp;if(t){const n=r.search(t);n.featureIds[0]&&r.highlightFeatures([r.modelForFeature(n.featureIds[0])])}},searchSuggestions:function(e,t){e&&this.$refs.flatmap.mapImp&&this.$refs.flatmap.mapImp.search(e).__featureIds.forEach(n=>{const i=this.$refs.flatmap.mapImp.annotation(n);i&&i.label&&t.push(i.label)})},zoomToFeatures:function(e,t){let r=e.name;const n=this.$refs.flatmap.mapImp;if(r){const i=n.search(r);if(i.featureIds.length){let o=n.modelForFeature(i.featureIds[0]);o?(t&&n.selectFeatures(o),n.zoomToFeatures(o)):n.clearSearchResults()}}else n.clearSearchResults()}},computed:{facetSpecies(){return this.settingsStore.facets.species}},mounted:function(){this.getAvailableTerms(),vo.on("markerUpdate",()=>{this.flatmapMarkerUpdate(void 0)})}},jjr={class:"viewer-container"};function Ujr(e,t,r,n,i,o){const s=a.resolveComponent("FlatmapVuer"),l=a.resolveComponent("HelpModeDialog");return a.openBlock(),a.createElementBlock("div",jjr,[a.createVNode(s,{state:e.entry.state,entry:e.entry.resource,onResourceSelected:t[0]||(t[0]=c=>o.flatmaprResourceSelected(e.entry.type,c)),onPanZoomCallback:e.flatmapPanZoomCallback,name:e.entry.resource,style:{height:"100%",width:"100%"},minZoom:e.entry.minZoom,helpMode:e.helpMode,helpModeActiveItem:e.helpModeActiveItem,helpModeInitialIndex:-1,helpModeDialog:e.useHelpModeDialog,onHelpModeLastItem:e.onHelpModeLastItem,onShownTooltip:e.onTooltipShown,onShownMapTooltip:e.onMapTooltipShown,onConnectivityInfoOpen:e.onConnectivityInfoOpen,onConnectivityInfoClose:e.onConnectivityInfoClose,connectivityInfoSidebar:e.connectivityInfoSidebar,pathControls:!0,ref:"flatmap",onReady:o.flatmapReadyCall,displayMinimap:!1,displayWarning:!0,enableOpenMapUI:!0,flatmapAPI:e.flatmapAPI,sparcAPI:e.apiLocation,onOpenMap:e.openMap,onPathwaySelectionChanged:o.onPathwaySelectionChanged},null,8,["state","entry","onPanZoomCallback","name","minZoom","helpMode","helpModeActiveItem","helpModeDialog","onHelpModeLastItem","onShownTooltip","onShownMapTooltip","onConnectivityInfoOpen","onConnectivityInfoClose","connectivityInfoSidebar","onReady","flatmapAPI","sparcAPI","onOpenMap","onPathwaySelectionChanged"]),e.helpMode&&e.useHelpModeDialog?(a.openBlock(),a.createBlock(l,{key:0,ref:"flatmapHelp",flatmapRef:e.flatmapRef,lastItem:e.helpModeLastItem,onShowNext:e.onHelpModeShowNext,onFinishHelpMode:e.onFinishHelpMode},null,8,["flatmapRef","lastItem","onShowNext","onFinishHelpMode"])):a.createCommentVNode("",!0)])}const Gjr=Object.freeze(Object.defineProperty({__proto__:null,default:Zc(zjr,[["render",Ujr],["__scopeId","data-v-b68cfcba"]])},Symbol.toStringTag,{value:"Module"})),Wjr={name:"Iframe",mixins:[eQ]},qjr={class:"map-iframe-container"},Zjr=["src"];function Kjr(e,t,r,n,i,o){return a.openBlock(),a.createElementBlock("div",qjr,[a.createElementVNode("iframe",{class:"my-iframe",src:e.entry.resource.share_link},null,8,Zjr)])}const Xjr=Object.freeze(Object.defineProperty({__proto__:null,default:Zc(Wjr,[["render",Kjr],["__scopeId","data-v-60f8bfe1"]])},Symbol.toStringTag,{value:"Module"})),Yjr='<svg width="72px" height="72px" viewBox="0 0 24 24" fill="yellow"><path d="M11.0748 3.25583C11.4141 2.42845 12.5859 2.42845 12.9252 3.25583L14.6493 7.45955C14.793 7.80979 15.1221 8.04889 15.4995 8.07727L20.0303 8.41798C20.922 8.48504 21.2841 9.59942 20.6021 10.1778L17.1369 13.1166C16.8482 13.3614 16.7225 13.7483 16.8122 14.1161L17.8882 18.5304C18.1 19.3992 17.152 20.0879 16.3912 19.618L12.5255 17.2305C12.2034 17.0316 11.7966 17.0316 11.4745 17.2305L7.60881 19.618C6.84796 20.0879 5.90001 19.3992 6.1118 18.5304L7.18785 14.1161C7.2775 13.7483 7.1518 13.3614 6.86309 13.1166L3.3979 10.1778C2.71588 9.59942 3.07796 8.48504 3.96971 8.41798L8.50046 8.07727C8.87794 8.04889 9.20704 7.80979 9.35068 7.45955L11.0748 3.25583Z" stroke="#000000" stroke-width="2"/></svg>',jje=e=>{const t=[{display:"Open AC Map",key:"AC"},{display:"Open FC Map",key:"FC"},{display:"Open 3D Human Map",key:"3D"}];switch(e){case"Human Male":case"Human Female":case"Rat":t.push({display:"Open Sync Map",key:"SYNC"});break}return t},Jjr={name:"MultiFlatmap",mixins:[eQ,Mwe],components:{MultiFlatmapVuer:Djr,HelpModeDialog:$re},data:function(){return{zoomLevel:6,flatmapReady:!1,availableSpecies:$9e(),scaffoldResource:{},showStarInLegend:!1,openMapOptions:jje("Rat")}},methods:{toggleSyncMode:async function(){if(this.syncMode==!1){let e;this.activeSpecies==="Rat"?e={contextCard:void 0,discoverId:void 0,label:"Rat Body",resource:"https://mapcore-bucket1.s3.us-west-2.amazonaws.com/WholeBody/31-May-2021/ratBody/ratBody_syncmap_metadata.json",title:"View 3D scaffold",layout:"2horpanel",type:"SyncMap"}:(this.activeSpecies==="Human Male"||this.activeSpecies==="Human Female")&&("human"in this.scaffoldResource||(this.scaffoldResource.human=await i$(this.apiLocation,"human")),e={contextCardUrl:this.scaffoldResource.human.datasetInfo.contextCardUrl,discoverId:this.scaffoldResource.human.datasetInfo.discoverId,s3uri:this.scaffoldResource.human.datasetInfo.s3uri,version:this.scaffoldResource.human.datasetInfo.version,label:"Human Body",resource:this.scaffoldResource.human.url,title:"View 3D scaffold",layout:"2vertpanel",type:"SyncMap",isBodyScaffold:!0}),e&&vo.emit("SyncModeRequest",{flag:!0,action:e})}else vo.emit("SyncModeRequest",{flag:!1})},getState:function(){if(this.flatmapReady)return this.$refs.multiflatmap.getState()},flatmapPanZoomCallback:function(e){if(this.mouseHovered){const t={paneIndex:this.entry.id,eventType:"panZoom",payload:e,type:this.entry.type};this.$emit("resource-selected",t)}},search:function(e){return this.$refs.multiflatmap.getCurrentFlatmap().searchAndShowResult(e,!0)},searchSuggestions:function(e,t){const r=this.$refs.multiflatmap.getCurrentFlatmap();e&&r.mapImp&&r.mapImp.search(e).__featureIds.forEach(i=>{const o=r.mapImp.annotation(i);o&&o.label&&t.push(o.label)})},flatmaprResourceSelected:function(e,t){const r=this.$refs.multiflatmap.getCurrentFlatmap();if(this.resourceSelected(e,t,r.viewingMode==="Exploration"),t.eventType==="click"&&t.feature.type==="feature"){const n={label:t.label||"",id:t.feature.id||"",featureId:t.feature.featureId||"",taxonomy:t.taxonomy||"",resources:t.resource.join(", ")},i=eye(n);V1.sendEvent({event:"interaction_event",event_name:"portal_maps_connectivity",category:i,location:e+" "+r.viewingMode})}},onPathwaySelectionChanged:function(e){const{label:t,property:r,checked:n,selectionsTitle:i}=e;V1.sendEvent({event:"interaction_event",event_name:"portal_maps_pathway_change",category:t+" ["+r+"] "+n,location:i})},onOpenPubmedUrl:function(e){V1.sendEvent({event:"interaction_event",event_name:"portal_maps_pubmed_url",file_path:e,location:"map_popup_button"})},handleSyncPanZoomEvent:function(e){if(!this.mouseHovered&&e.type!==this.entry.type){const t=e.payload.zoom,r=e.payload.target,n=this.$el.clientHeight,i=this.$el.clientWidth,o=Math.max(i,n);let s=i/o/t;const l=n/o/t,c=[r[0]/2+.5-s/2,.5-r[1]/2-l/2];this.$refs.multiflatmap.getCurrentFlatmap().mapImp.panZoomTo(c,[s,l])}},displayTooltip:function(e){if(e){let t=e.name;t?this.search(t):this.$refs.multiflatmap.getCurrentFlatmap().mapImp.clearSearchResults()}},zoomToFeatures:function(e,t){let r=e.name;const n=this.$refs.multiflatmap.getCurrentFlatmap().mapImp;if(r){const i=n.search(r);i.featureIds.length>0?(t&&n.selectFeatures(i.featureIds),n.zoomToFeatures(i.featureIds)):n.clearSearchResults()}else n.clearSearchResults()},highlightFeatures:function(e){let t=e.name;const r=this.$refs.multiflatmap.getCurrentFlatmap().mapImp;if(t){const n=r.search(t);n.featureIds.length>0&&r.zoomToFeatures(n.featureIds,{noZoomIn:!0})}},updateProvCard:function(){const e=this.getFlatmapImp();if(e){let t={id:this.entry.id,prov:e.provenance};this.$emit("flatmap-provenance-ready",t)}},flatmapChanged:async function(e){this.activeSpecies=e,this.openMapOptions=jje(e),this.$emit("species-changed",e),this.entry.state&&this.entry.state.species===this.activeSpecies||this.syncMode==!0&&await this.toggleSyncMode(),this.updateProvCard(),this.onConnectivityInfoClose(),V1.sendEvent({event:"interaction_event",event_name:"portal_maps_species_change",category:this.activeSpecies})},multiFlatmapReady:function(e){if(e){e.enablePanZoomEvents(!0),this.flatmapReady=!0;const t=e.mapImp;this.flatmapMarkerUpdate(t),this.updateProvCard()}},getFlatmapImp:function(){if(this.entry.type==="MultiFlatmap"&&this.flatmapReady&&this.$refs.multiflatmap)return this.$refs.multiflatmap.getCurrentFlatmap().mapImp},flatmapAreaSearch(){let r={type:"Facets",label:"Unused",val:this.getFlatmapImp().visibleMarkerAnatomicalIds().map(n=>this.idNamePair[n])};vo.emit("PopoverActionClick",r)},restoreFeaturedMarkers:function(e){this.settingsStore.resetFeaturedMarkerIdentifier();const t=this.settingsStore.featuredMarkers;this.updateFeaturedMarkers(t,e)},updateFeaturedMarkers:function(e,t){this.showStarInLegend=!1;for(let r=0;r<e.length;++r)e[r]&&(this.settingsStore.featuredMarkerIdentifiers[r]||this.addFeaturedMarker(e[r],r,t)&&(this.showStarInLegend=!0))},addFeaturedMarker:function(e,t,r){const n=this.settingsStore.featuredMarkerSpecies[t];if(n&&!this.activeSpecies.startsWith(n))return!1;let i=r;if(i||(i=this.getFlatmapImp()),i){let o=document.createElement("div");o.innerHTML=Yjr;const s=i.addMarker(e,{element:o,className:"highlight-marker",cluster:!1});return this.settingsStore.updateFeaturedMarkerIdentifier({index:t,markerIdentifier:s}),!0}return!1}},computed:{facetSpecies(){return this.settingsStore.facets.species},featuredMarkers(){return this.settingsStore.featuredMarkers}},watch:{syncMode:function(e){this.$refs.multiflatmap.getCurrentFlatmap()&&this.$refs.multiflatmap.getCurrentFlatmap().enablePanZoomEvents(e)},featuredMarkers:function(e){this.flatmapReady&&this.updateFeaturedMarkers(e,void 0)}},mounted:function(){this.getAvailableTerms(),this.getFeaturedDatasets(),vo.on("markerUpdate",()=>{this.flatmapReady&&this.flatmapMarkerUpdate(this.$refs.multiflatmap.getCurrentFlatmap().mapImp)})}},$jr={class:"viewer-container"};function eUr(e,t,r,n,i,o){const s=a.resolveComponent("MultiFlatmapVuer"),l=a.resolveComponent("HelpModeDialog");return a.openBlock(),a.createElementBlock("div",$jr,[a.createVNode(s,{availableSpecies:e.availableSpecies,onFlatmapChanged:o.flatmapChanged,onReady:o.multiFlatmapReady,state:e.entry.state,onResourceSelected:t[0]||(t[0]=c=>o.flatmaprResourceSelected(e.entry.type,c)),style:{height:"100%",width:"100%"},initial:e.entry.resource,helpMode:e.helpMode,helpModeActiveItem:e.helpModeActiveItem,helpModeDialog:e.useHelpModeDialog,onHelpModeLastItem:e.onHelpModeLastItem,onShownTooltip:e.onTooltipShown,onShownMapTooltip:e.onMapTooltipShown,onConnectivityInfoOpen:e.onConnectivityInfoOpen,onConnectivityInfoClose:e.onConnectivityInfoClose,connectivityInfoSidebar:e.connectivityInfoSidebar,ref:"multiflatmap",displayMinimap:!0,showStarInLegend:e.showStarInLegend,enableOpenMapUI:!0,openMapOptions:e.openMapOptions,flatmapAPI:e.flatmapAPI,sparcAPI:e.apiLocation,onPanZoomCallback:o.flatmapPanZoomCallback,onOpenMap:e.openMap,onFinishHelpMode:e.endHelp,onPathwaySelectionChanged:o.onPathwaySelectionChanged,onOpenPubmedUrl:o.onOpenPubmedUrl},null,8,["availableSpecies","onFlatmapChanged","onReady","state","initial","helpMode","helpModeActiveItem","helpModeDialog","onHelpModeLastItem","onShownTooltip","onShownMapTooltip","onConnectivityInfoOpen","onConnectivityInfoClose","connectivityInfoSidebar","showStarInLegend","openMapOptions","flatmapAPI","sparcAPI","onPanZoomCallback","onOpenMap","onFinishHelpMode","onPathwaySelectionChanged","onOpenPubmedUrl"]),e.helpMode&&e.useHelpModeDialog?(a.openBlock(),a.createBlock(l,{key:0,ref:"multiflatmapHelp",multiflatmapRef:e.multiflatmapRef,lastItem:e.helpModeLastItem,onShowNext:e.onHelpModeShowNext,onFinishHelpMode:e.onFinishHelpMode},null,8,["multiflatmapRef","lastItem","onShowNext","onFinishHelpMode"])):a.createCommentVNode("",!0)])}const tUr=Object.freeze(Object.defineProperty({__proto__:null,default:Zc(Jjr,[["render",eUr],["__scopeId","data-v-83efd5d2"]])},Symbol.toStringTag,{value:"Module"}));function rUr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Uje={exports:{}},sl=Uje.exports={},Hf,Rf;function H1e(){throw new Error("setTimeout has not been defined")}function R1e(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?Hf=setTimeout:Hf=H1e}catch{Hf=H1e}try{typeof clearTimeout=="function"?Rf=clearTimeout:Rf=R1e}catch{Rf=R1e}})();function Gje(e){if(Hf===setTimeout)return setTimeout(e,0);if((Hf===H1e||!Hf)&&setTimeout)return Hf=setTimeout,setTimeout(e,0);try{return Hf(e,0)}catch{try{return Hf.call(null,e,0)}catch{return Hf.call(this,e,0)}}}function nUr(e){if(Rf===clearTimeout)return clearTimeout(e);if((Rf===R1e||!Rf)&&clearTimeout)return Rf=clearTimeout,clearTimeout(e);try{return Rf(e)}catch{try{return Rf.call(null,e)}catch{return Rf.call(this,e)}}}var u5=[],n_=!1,$y,UU=-1;function iUr(){!n_||!$y||(n_=!1,$y.length?u5=$y.concat(u5):UU=-1,u5.length&&Wje())}function Wje(){if(!n_){var e=Gje(iUr);n_=!0;for(var t=u5.length;t;){for($y=u5,u5=[];++UU<t;)$y&&$y[UU].run();UU=-1,t=u5.length}$y=null,n_=!1,nUr(e)}}sl.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];u5.push(new qje(e,t)),u5.length===1&&!n_&&Gje(Wje)};function qje(e,t){this.fun=e,this.array=t}qje.prototype.run=function(){this.fun.apply(null,this.array)},sl.title="browser",sl.browser=!0,sl.env={},sl.argv=[],sl.version="",sl.versions={};function d5(){}sl.on=d5,sl.addListener=d5,sl.once=d5,sl.off=d5,sl.removeListener=d5,sl.removeAllListeners=d5,sl.emit=d5,sl.prependListener=d5,sl.prependOnceListener=d5,sl.listeners=function(e){return[]},sl.binding=function(e){throw new Error("process.binding is not supported")},sl.cwd=function(){return"/"},sl.chdir=function(e){throw new Error("process.chdir is not supported")},sl.umask=function(){return 0};var oUr=Uje.exports;const i_=rUr(oUr),h5=(e,t,{checkForDefaultPrevented:r=!0}={})=>n=>{const i=e==null?void 0:e(n);if(r===!1||!i)return t==null?void 0:t(n)},o_=globalThis||void 0||self;var Zje;const W1=typeof window<"u",aUr=e=>typeof e=="string",Kje=()=>{},sUr=W1&&((Zje=window==null?void 0:window.navigator)==null?void 0:Zje.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Xje(e){return typeof e=="function"?e():a.unref(e)}function lUr(e){return e}function GU(e){return a.getCurrentScope()?(a.onScopeDispose(e),!0):!1}function cUr(e,t=!0){a.getCurrentInstance()?a.onMounted(e):t?e():a.nextTick(e)}function p5(e){var t;const r=Xje(e);return(t=r==null?void 0:r.$el)!=null?t:r}const WU=W1?window:void 0;function eT(...e){let t,r,n,i;if(aUr(e[0])||Array.isArray(e[0])?([r,n,i]=e,t=WU):[t,r,n,i]=e,!t)return Kje;Array.isArray(r)||(r=[r]),Array.isArray(n)||(n=[n]);const o=[],s=()=>{o.forEach(d=>d()),o.length=0},l=(d,h,p,f)=>(d.addEventListener(h,p,f),()=>d.removeEventListener(h,p,f)),c=a.watch(()=>[p5(t),Xje(i)],([d,h])=>{s(),d&&o.push(...r.flatMap(p=>n.map(f=>l(d,p,f,h))))},{immediate:!0,flush:"post"}),u=()=>{c(),s()};return GU(u),u}let Yje=!1;function uUr(e,t,r={}){const{window:n=WU,ignore:i=[],capture:o=!0,detectIframe:s=!1}=r;if(!n)return;sUr&&!Yje&&(Yje=!0,Array.from(n.document.body.children).forEach(d=>d.addEventListener("click",Kje)));let l=!0;const c=d=>i.some(h=>{if(typeof h=="string")return Array.from(n.document.querySelectorAll(h)).some(p=>p===d.target||d.composedPath().includes(p));{const p=p5(h);return p&&(d.target===p||d.composedPath().includes(p))}}),u=[eT(n,"click",d=>{const h=p5(e);if(!(!h||h===d.target||d.composedPath().includes(h))){if(d.detail===0&&(l=!c(d)),!l){l=!0;return}t(d)}},{passive:!0,capture:o}),eT(n,"pointerdown",d=>{const h=p5(e);h&&(l=!d.composedPath().includes(h)&&!c(d))},{passive:!0}),s&&eT(n,"blur",d=>{var h;const p=p5(e);((h=n.document.activeElement)==null?void 0:h.tagName)==="IFRAME"&&!(p!=null&&p.contains(n.document.activeElement))&&t(d)})].filter(Boolean);return()=>u.forEach(d=>d())}function Jje(e,t=!1){const r=a.ref(),n=()=>r.value=!!e();return n(),cUr(n,t),r}const N1e=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof o_<"u"?o_:typeof self<"u"?self:{},B1e="__vueuse_ssr_handlers__";N1e[B1e]=N1e[B1e]||{},N1e[B1e];var $je=Object.getOwnPropertySymbols,dUr=Object.prototype.hasOwnProperty,hUr=Object.prototype.propertyIsEnumerable,pUr=(e,t)=>{var r={};for(var n in e)dUr.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&$je)for(var n of $je(e))t.indexOf(n)<0&&hUr.call(e,n)&&(r[n]=e[n]);return r};function f5(e,t,r={}){const n=r,{window:i=WU}=n,o=pUr(n,["window"]);let s;const l=Jje(()=>i&&"ResizeObserver"in i),c=()=>{s&&(s.disconnect(),s=void 0)},u=a.watch(()=>p5(e),h=>{c(),l.value&&i&&h&&(s=new ResizeObserver(t),s.observe(h,o))},{immediate:!0,flush:"post"}),d=()=>{c(),u()};return GU(d),{isSupported:l,stop:d}}var eUe=Object.getOwnPropertySymbols,fUr=Object.prototype.hasOwnProperty,mUr=Object.prototype.propertyIsEnumerable,gUr=(e,t)=>{var r={};for(var n in e)fUr.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&eUe)for(var n of eUe(e))t.indexOf(n)<0&&mUr.call(e,n)&&(r[n]=e[n]);return r};function yUr(e,t,r={}){const n=r,{window:i=WU}=n,o=gUr(n,["window"]);let s;const l=Jje(()=>i&&"MutationObserver"in i),c=()=>{s&&(s.disconnect(),s=void 0)},u=a.watch(()=>p5(e),h=>{c(),l.value&&i&&h&&(s=new MutationObserver(t),s.observe(h,o))},{immediate:!0}),d=()=>{c(),u()};return GU(d),{isSupported:l,stop:d}}var tUe;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(tUe||(tUe={}));var TUr=Object.defineProperty,rUe=Object.getOwnPropertySymbols,vUr=Object.prototype.hasOwnProperty,bUr=Object.prototype.propertyIsEnumerable,nUe=(e,t,r)=>t in e?TUr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,QUr=(e,t)=>{for(var r in t||(t={}))vUr.call(t,r)&&nUe(e,r,t[r]);if(rUe)for(var r of rUe(t))bUr.call(t,r)&&nUe(e,r,t[r]);return e};QUr({linear:lUr},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]});const xUr=()=>W1&&/firefox/i.test(window.navigator.userAgent);i_.env.NODE_ENV!=="production"&&Object.freeze({}),i_.env.NODE_ENV!=="production"&&Object.freeze([]);const zA=()=>{},_Ur=Object.prototype.hasOwnProperty,iUe=(e,t)=>_Ur.call(e,t),jd=Array.isArray,Ud=e=>typeof e=="function",Nf=e=>typeof e=="string",Gd=e=>e!==null&&typeof e=="object",wUr=Object.prototype.toString,LUr=e=>wUr.call(e),F1e=e=>LUr(e).slice(8,-1);var oUe=typeof o_=="object"&&o_&&o_.Object===Object&&o_,SUr=typeof self=="object"&&self&&self.Object===Object&&self,Bf=oUe||SUr||Function("return this")(),$8=Bf.Symbol,aUe=Object.prototype,kUr=aUe.hasOwnProperty,MUr=aUe.toString,jA=$8?$8.toStringTag:void 0;function CUr(e){var t=kUr.call(e,jA),r=e[jA];try{e[jA]=void 0;var n=!0}catch{}var i=MUr.call(e);return n&&(t?e[jA]=r:delete e[jA]),i}var EUr=Object.prototype,AUr=EUr.toString;function OUr(e){return AUr.call(e)}var IUr="[object Null]",PUr="[object Undefined]",sUe=$8?$8.toStringTag:void 0;function a_(e){return e==null?e===void 0?PUr:IUr:sUe&&sUe in Object(e)?CUr(e):OUr(e)}function s_(e){return e!=null&&typeof e=="object"}var VUr="[object Symbol]";function qU(e){return typeof e=="symbol"||s_(e)&&a_(e)==VUr}function HUr(e,t){for(var r=-1,n=e==null?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}var Ff=Array.isArray,RUr=1/0,lUe=$8?$8.prototype:void 0,cUe=lUe?lUe.toString:void 0;function uUe(e){if(typeof e=="string")return e;if(Ff(e))return HUr(e,uUe)+"";if(qU(e))return cUe?cUe.call(e):"";var t=e+"";return t=="0"&&1/e==-RUr?"-0":t}var NUr=/\s/;function BUr(e){for(var t=e.length;t--&&NUr.test(e.charAt(t)););return t}var FUr=/^\s+/;function DUr(e){return e&&e.slice(0,BUr(e)+1).replace(FUr,"")}function l_(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var dUe=NaN,zUr=/^[-+]0x[0-9a-f]+$/i,jUr=/^0b[01]+$/i,UUr=/^0o[0-7]+$/i,GUr=parseInt;function D1e(e){if(typeof e=="number")return e;if(qU(e))return dUe;if(l_(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=l_(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=DUr(e);var r=jUr.test(e);return r||UUr.test(e)?GUr(e.slice(2),r?2:8):zUr.test(e)?dUe:+e}var hUe=1/0,WUr=17976931348623157e292;function qUr(e){if(!e)return e===0?e:0;if(e=D1e(e),e===hUe||e===-hUe){var t=e<0?-1:1;return t*WUr}return e===e?e:0}function ZUr(e){var t=qUr(e),r=t%1;return t===t?r?t-r:t:0}function KUr(e){return e}var XUr="[object AsyncFunction]",YUr="[object Function]",JUr="[object GeneratorFunction]",$Ur="[object Proxy]";function pUe(e){if(!l_(e))return!1;var t=a_(e);return t==YUr||t==JUr||t==XUr||t==$Ur}var z1e=Bf["__core-js_shared__"],fUe=function(){var e=/[^.]+$/.exec(z1e&&z1e.keys&&z1e.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function eGr(e){return!!fUe&&fUe in e}var tGr=Function.prototype,rGr=tGr.toString;function tT(e){if(e!=null){try{return rGr.call(e)}catch{}try{return e+""}catch{}}return""}var nGr=/[\\^$.*+?()[\]{}|]/g,iGr=/^\[object .+?Constructor\]$/,oGr=Function.prototype,aGr=Object.prototype,sGr=oGr.toString,lGr=aGr.hasOwnProperty,cGr=RegExp("^"+sGr.call(lGr).replace(nGr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function uGr(e){if(!l_(e)||eGr(e))return!1;var t=pUe(e)?cGr:iGr;return t.test(tT(e))}function dGr(e,t){return e==null?void 0:e[t]}function c_(e,t){var r=dGr(e,t);return uGr(r)?r:void 0}var j1e=c_(Bf,"WeakMap");function hGr(e,t,r,n){for(var i=e.length,o=r+(n?1:-1);n?o--:++o<i;)if(t(e[o],o,e))return o;return-1}var pGr=9007199254740991,fGr=/^(?:0|[1-9]\d*)$/;function mUe(e,t){var r=typeof e;return t=t??pGr,!!t&&(r=="number"||r!="symbol"&&fGr.test(e))&&e>-1&&e%1==0&&e<t}function gUe(e,t){return e===t||e!==e&&t!==t}var mGr=9007199254740991;function U1e(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=mGr}function gGr(e){return e!=null&&U1e(e.length)&&!pUe(e)}var yGr=Object.prototype;function TGr(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||yGr;return e===r}function vGr(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var bGr="[object Arguments]";function yUe(e){return s_(e)&&a_(e)==bGr}var TUe=Object.prototype,QGr=TUe.hasOwnProperty,xGr=TUe.propertyIsEnumerable,vUe=yUe(function(){return arguments}())?yUe:function(e){return s_(e)&&QGr.call(e,"callee")&&!xGr.call(e,"callee")};function _Gr(){return!1}var bUe=typeof Pn=="object"&&Pn&&!Pn.nodeType&&Pn,QUe=bUe&&typeof module=="object"&&module&&!module.nodeType&&module,wGr=QUe&&QUe.exports===bUe,xUe=wGr?Bf.Buffer:void 0,LGr=xUe?xUe.isBuffer:void 0,G1e=LGr||_Gr,SGr="[object Arguments]",kGr="[object Array]",MGr="[object Boolean]",CGr="[object Date]",EGr="[object Error]",AGr="[object Function]",OGr="[object Map]",IGr="[object Number]",PGr="[object Object]",VGr="[object RegExp]",HGr="[object Set]",RGr="[object String]",NGr="[object WeakMap]",BGr="[object ArrayBuffer]",FGr="[object DataView]",DGr="[object Float32Array]",zGr="[object Float64Array]",jGr="[object Int8Array]",UGr="[object Int16Array]",GGr="[object Int32Array]",WGr="[object Uint8Array]",qGr="[object Uint8ClampedArray]",ZGr="[object Uint16Array]",KGr="[object Uint32Array]",is={};is[DGr]=is[zGr]=is[jGr]=is[UGr]=is[GGr]=is[WGr]=is[qGr]=is[ZGr]=is[KGr]=!0,is[SGr]=is[kGr]=is[BGr]=is[MGr]=is[FGr]=is[CGr]=is[EGr]=is[AGr]=is[OGr]=is[IGr]=is[PGr]=is[VGr]=is[HGr]=is[RGr]=is[NGr]=!1;function XGr(e){return s_(e)&&U1e(e.length)&&!!is[a_(e)]}function YGr(e){return function(t){return e(t)}}var _Ue=typeof Pn=="object"&&Pn&&!Pn.nodeType&&Pn,UA=_Ue&&typeof module=="object"&&module&&!module.nodeType&&module,JGr=UA&&UA.exports===_Ue,W1e=JGr&&oUe.process,wUe=function(){try{var e=UA&&UA.require&&UA.require("util").types;return e||W1e&&W1e.binding&&W1e.binding("util")}catch{}}(),LUe=wUe&&wUe.isTypedArray,SUe=LUe?YGr(LUe):XGr,$Gr=Object.prototype,eWr=$Gr.hasOwnProperty;function tWr(e,t){var r=Ff(e),n=!r&&vUe(e),i=!r&&!n&&G1e(e),o=!r&&!n&&!i&&SUe(e),s=r||n||i||o,l=s?vGr(e.length,String):[],c=l.length;for(var u in e)(t||eWr.call(e,u))&&!(s&&(u=="length"||i&&(u=="offset"||u=="parent")||o&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||mUe(u,c)))&&l.push(u);return l}function rWr(e,t){return function(r){return e(t(r))}}var nWr=rWr(Object.keys,Object),iWr=Object.prototype,oWr=iWr.hasOwnProperty;function aWr(e){if(!TGr(e))return nWr(e);var t=[];for(var r in Object(e))oWr.call(e,r)&&r!="constructor"&&t.push(r);return t}function kUe(e){return gGr(e)?tWr(e):aWr(e)}var sWr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,lWr=/^\w*$/;function q1e(e,t){if(Ff(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||qU(e)?!0:lWr.test(e)||!sWr.test(e)||t!=null&&e in Object(t)}var GA=c_(Object,"create");function cWr(){this.__data__=GA?GA(null):{},this.size=0}function uWr(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var dWr="__lodash_hash_undefined__",hWr=Object.prototype,pWr=hWr.hasOwnProperty;function fWr(e){var t=this.__data__;if(GA){var r=t[e];return r===dWr?void 0:r}return pWr.call(t,e)?t[e]:void 0}var mWr=Object.prototype,gWr=mWr.hasOwnProperty;function yWr(e){var t=this.__data__;return GA?t[e]!==void 0:gWr.call(t,e)}var TWr="__lodash_hash_undefined__";function vWr(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=GA&&t===void 0?TWr:t,this}function rT(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}rT.prototype.clear=cWr,rT.prototype.delete=uWr,rT.prototype.get=fWr,rT.prototype.has=yWr,rT.prototype.set=vWr;function bWr(){this.__data__=[],this.size=0}function ZU(e,t){for(var r=e.length;r--;)if(gUe(e[r][0],t))return r;return-1}var QWr=Array.prototype,xWr=QWr.splice;function _Wr(e){var t=this.__data__,r=ZU(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():xWr.call(t,r,1),--this.size,!0}function wWr(e){var t=this.__data__,r=ZU(t,e);return r<0?void 0:t[r][1]}function LWr(e){return ZU(this.__data__,e)>-1}function SWr(e,t){var r=this.__data__,n=ZU(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function m5(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}m5.prototype.clear=bWr,m5.prototype.delete=_Wr,m5.prototype.get=wWr,m5.prototype.has=LWr,m5.prototype.set=SWr;var WA=c_(Bf,"Map");function kWr(){this.size=0,this.__data__={hash:new rT,map:new(WA||m5),string:new rT}}function MWr(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function KU(e,t){var r=e.__data__;return MWr(t)?r[typeof t=="string"?"string":"hash"]:r.map}function CWr(e){var t=KU(this,e).delete(e);return this.size-=t?1:0,t}function EWr(e){return KU(this,e).get(e)}function AWr(e){return KU(this,e).has(e)}function OWr(e,t){var r=KU(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function g5(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}g5.prototype.clear=kWr,g5.prototype.delete=CWr,g5.prototype.get=EWr,g5.prototype.has=AWr,g5.prototype.set=OWr;var IWr="Expected a function";function Z1e(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(IWr);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var s=e.apply(this,n);return r.cache=o.set(i,s)||o,s};return r.cache=new(Z1e.Cache||g5),r}Z1e.Cache=g5;var PWr=500;function VWr(e){var t=Z1e(e,function(n){return r.size===PWr&&r.clear(),n}),r=t.cache;return t}var HWr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,RWr=/\\(\\)?/g,NWr=VWr(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(HWr,function(r,n,i,o){t.push(i?o.replace(RWr,"$1"):n||r)}),t});function BWr(e){return e==null?"":uUe(e)}function MUe(e,t){return Ff(e)?e:q1e(e,t)?[e]:NWr(BWr(e))}var FWr=1/0;function XU(e){if(typeof e=="string"||qU(e))return e;var t=e+"";return t=="0"&&1/e==-FWr?"-0":t}function CUe(e,t){t=MUe(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[XU(t[r++])];return r&&r==n?e:void 0}function y5(e,t,r){var n=e==null?void 0:CUe(e,t);return n===void 0?r:n}function DWr(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}function EUe(){if(!arguments.length)return[];var e=arguments[0];return Ff(e)?e:[e]}function zWr(){this.__data__=new m5,this.size=0}function jWr(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function UWr(e){return this.__data__.get(e)}function GWr(e){return this.__data__.has(e)}var WWr=200;function qWr(e,t){var r=this.__data__;if(r instanceof m5){var n=r.__data__;if(!WA||n.length<WWr-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new g5(n)}return r.set(e,t),this.size=r.size,this}function T5(e){var t=this.__data__=new m5(e);this.size=t.size}T5.prototype.clear=zWr,T5.prototype.delete=jWr,T5.prototype.get=UWr,T5.prototype.has=GWr,T5.prototype.set=qWr;function ZWr(e,t){for(var r=-1,n=e==null?0:e.length,i=0,o=[];++r<n;){var s=e[r];t(s,r,e)&&(o[i++]=s)}return o}function KWr(){return[]}var XWr=Object.prototype,YWr=XWr.propertyIsEnumerable,AUe=Object.getOwnPropertySymbols,JWr=AUe?function(e){return e==null?[]:(e=Object(e),ZWr(AUe(e),function(t){return YWr.call(e,t)}))}:KWr;const $Wr=JWr;function eqr(e,t,r){var n=t(e);return Ff(e)?n:DWr(n,r(e))}function OUe(e){return eqr(e,kUe,$Wr)}var K1e=c_(Bf,"DataView"),X1e=c_(Bf,"Promise"),Y1e=c_(Bf,"Set"),IUe="[object Map]",tqr="[object Object]",PUe="[object Promise]",VUe="[object Set]",HUe="[object WeakMap]",RUe="[object DataView]",rqr=tT(K1e),nqr=tT(WA),iqr=tT(X1e),oqr=tT(Y1e),aqr=tT(j1e),nT=a_;(K1e&&nT(new K1e(new ArrayBuffer(1)))!=RUe||WA&&nT(new WA)!=IUe||X1e&&nT(X1e.resolve())!=PUe||Y1e&&nT(new Y1e)!=VUe||j1e&&nT(new j1e)!=HUe)&&(nT=function(e){var t=a_(e),r=t==tqr?e.constructor:void 0,n=r?tT(r):"";if(n)switch(n){case rqr:return RUe;case nqr:return IUe;case iqr:return PUe;case oqr:return VUe;case aqr:return HUe}return t});const NUe=nT;var sqr=Bf.Uint8Array;const BUe=sqr;var lqr="__lodash_hash_undefined__";function cqr(e){return this.__data__.set(e,lqr),this}function uqr(e){return this.__data__.has(e)}function YU(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new g5;++t<r;)this.add(e[t])}YU.prototype.add=YU.prototype.push=cqr,YU.prototype.has=uqr;function dqr(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}function hqr(e,t){return e.has(t)}var pqr=1,fqr=2;function FUe(e,t,r,n,i,o){var s=r&pqr,l=e.length,c=t.length;if(l!=c&&!(s&&c>l))return!1;var u=o.get(e),d=o.get(t);if(u&&d)return u==t&&d==e;var h=-1,p=!0,f=r&fqr?new YU:void 0;for(o.set(e,t),o.set(t,e);++h<l;){var m=e[h],g=t[h];if(n)var T=s?n(g,m,h,t,e,o):n(m,g,h,e,t,o);if(T!==void 0){if(T)continue;p=!1;break}if(f){if(!dqr(t,function(y,v){if(!hqr(f,v)&&(m===y||i(m,y,r,n,o)))return f.push(v)})){p=!1;break}}else if(!(m===g||i(m,g,r,n,o))){p=!1;break}}return o.delete(e),o.delete(t),p}function mqr(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}function gqr(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var yqr=1,Tqr=2,vqr="[object Boolean]",bqr="[object Date]",Qqr="[object Error]",xqr="[object Map]",_qr="[object Number]",wqr="[object RegExp]",Lqr="[object Set]",Sqr="[object String]",kqr="[object Symbol]",Mqr="[object ArrayBuffer]",Cqr="[object DataView]",DUe=$8?$8.prototype:void 0,J1e=DUe?DUe.valueOf:void 0;function Eqr(e,t,r,n,i,o,s){switch(r){case Cqr:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Mqr:return!(e.byteLength!=t.byteLength||!o(new BUe(e),new BUe(t)));case vqr:case bqr:case _qr:return gUe(+e,+t);case Qqr:return e.name==t.name&&e.message==t.message;case wqr:case Sqr:return e==t+"";case xqr:var l=mqr;case Lqr:var c=n&yqr;if(l||(l=gqr),e.size!=t.size&&!c)return!1;var u=s.get(e);if(u)return u==t;n|=Tqr,s.set(e,t);var d=FUe(l(e),l(t),n,i,o,s);return s.delete(e),d;case kqr:if(J1e)return J1e.call(e)==J1e.call(t)}return!1}var Aqr=1,Oqr=Object.prototype,Iqr=Oqr.hasOwnProperty;function Pqr(e,t,r,n,i,o){var s=r&Aqr,l=OUe(e),c=l.length,u=OUe(t),d=u.length;if(c!=d&&!s)return!1;for(var h=c;h--;){var p=l[h];if(!(s?p in t:Iqr.call(t,p)))return!1}var f=o.get(e),m=o.get(t);if(f&&m)return f==t&&m==e;var g=!0;o.set(e,t),o.set(t,e);for(var T=s;++h<c;){p=l[h];var y=e[p],v=t[p];if(n)var Q=s?n(v,y,p,t,e,o):n(y,v,p,e,t,o);if(!(Q===void 0?y===v||i(y,v,r,n,o):Q)){g=!1;break}T||(T=p=="constructor")}if(g&&!T){var x=e.constructor,L=t.constructor;x!=L&&"constructor"in e&&"constructor"in t&&!(typeof x=="function"&&x instanceof x&&typeof L=="function"&&L instanceof L)&&(g=!1)}return o.delete(e),o.delete(t),g}var Vqr=1,zUe="[object Arguments]",jUe="[object Array]",JU="[object Object]",Hqr=Object.prototype,UUe=Hqr.hasOwnProperty;function Rqr(e,t,r,n,i,o){var s=Ff(e),l=Ff(t),c=s?jUe:NUe(e),u=l?jUe:NUe(t);c=c==zUe?JU:c,u=u==zUe?JU:u;var d=c==JU,h=u==JU,p=c==u;if(p&&G1e(e)){if(!G1e(t))return!1;s=!0,d=!1}if(p&&!d)return o||(o=new T5),s||SUe(e)?FUe(e,t,r,n,i,o):Eqr(e,t,c,r,n,i,o);if(!(r&Vqr)){var f=d&&UUe.call(e,"__wrapped__"),m=h&&UUe.call(t,"__wrapped__");if(f||m){var g=f?e.value():e,T=m?t.value():t;return o||(o=new T5),i(g,T,r,n,o)}}return p?(o||(o=new T5),Pqr(e,t,r,n,i,o)):!1}function $U(e,t,r,n,i){return e===t?!0:e==null||t==null||!s_(e)&&!s_(t)?e!==e&&t!==t:Rqr(e,t,r,n,$U,i)}var Nqr=1,Bqr=2;function Fqr(e,t,r,n){var i=r.length,o=i,s=!n;if(e==null)return!o;for(e=Object(e);i--;){var l=r[i];if(s&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++i<o;){l=r[i];var c=l[0],u=e[c],d=l[1];if(s&&l[2]){if(u===void 0&&!(c in e))return!1}else{var h=new T5;if(n)var p=n(u,d,c,e,t,h);if(!(p===void 0?$U(d,u,Nqr|Bqr,n,h):p))return!1}}return!0}function GUe(e){return e===e&&!l_(e)}function Dqr(e){for(var t=kUe(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,GUe(i)]}return t}function WUe(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}function zqr(e){var t=Dqr(e);return t.length==1&&t[0][2]?WUe(t[0][0],t[0][1]):function(r){return r===e||Fqr(r,e,t)}}function jqr(e,t){return e!=null&&t in Object(e)}function Uqr(e,t,r){t=MUe(t,e);for(var n=-1,i=t.length,o=!1;++n<i;){var s=XU(t[n]);if(!(o=e!=null&&r(e,s)))break;e=e[s]}return o||++n!=i?o:(i=e==null?0:e.length,!!i&&U1e(i)&&mUe(s,i)&&(Ff(e)||vUe(e)))}function Gqr(e,t){return e!=null&&Uqr(e,t,jqr)}var Wqr=1,qqr=2;function Zqr(e,t){return q1e(e)&&GUe(t)?WUe(XU(e),t):function(r){var n=y5(r,e);return n===void 0&&n===t?Gqr(r,e):$U(t,n,Wqr|qqr)}}function Kqr(e){return function(t){return t==null?void 0:t[e]}}function Xqr(e){return function(t){return CUe(t,e)}}function Yqr(e){return q1e(e)?Kqr(XU(e)):Xqr(e)}function Jqr(e){return typeof e=="function"?e:e==null?KUr:typeof e=="object"?Ff(e)?Zqr(e[0],e[1]):zqr(e):Yqr(e)}var $1e=function(){return Bf.Date.now()},$qr="Expected a function",eZr=Math.max,tZr=Math.min;function rZr(e,t,r){var n,i,o,s,l,c,u=0,d=!1,h=!1,p=!0;if(typeof e!="function")throw new TypeError($qr);t=D1e(t)||0,l_(r)&&(d=!!r.leading,h="maxWait"in r,o=h?eZr(D1e(r.maxWait)||0,t):o,p="trailing"in r?!!r.trailing:p);function f(w){var k=n,M=i;return n=i=void 0,u=w,s=e.apply(M,k),s}function m(w){return u=w,l=setTimeout(y,t),d?f(w):s}function g(w){var k=w-c,M=w-u,E=t-k;return h?tZr(E,o-M):E}function T(w){var k=w-c,M=w-u;return c===void 0||k>=t||k<0||h&&M>=o}function y(){var w=$1e();if(T(w))return v(w);l=setTimeout(y,g(w))}function v(w){return l=void 0,p&&n?f(w):(n=i=void 0,s)}function Q(){l!==void 0&&clearTimeout(l),u=0,n=c=i=l=void 0}function x(){return l===void 0?s:v($1e())}function L(){var w=$1e(),k=T(w);if(n=arguments,i=this,c=w,k){if(l===void 0)return m(c);if(h)return clearTimeout(l),l=setTimeout(y,t),f(c)}return l===void 0&&(l=setTimeout(y,t)),s}return L.cancel=Q,L.flush=x,L}var nZr=Math.max,iZr=Math.min;function oZr(e,t,r){var n=e==null?0:e.length;if(!n)return-1;var i=n-1;return r!==void 0&&(i=ZUr(r),i=r<0?nZr(n+i,0):iZr(i,n-1)),hGr(e,Jqr(t),i,!0)}function eG(e){for(var t=-1,r=e==null?0:e.length,n={};++t<r;){var i=e[t];n[i[0]]=i[1]}return n}function qA(e,t){return $U(e,t)}function tG(e){return e==null}function aZr(e){return e===void 0}const qUe=e=>e===void 0,eue=e=>typeof e=="boolean",k0=e=>typeof e=="number",ZA=e=>typeof Element>"u"?!1:e instanceof Element,sZr=e=>Nf(e)?!Number.isNaN(Number(e)):!1,lZr=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d");let ZUe=class extends Error{constructor(t){super(t),this.name="ElementPlusError"}};function cZr(e,t){throw new ZUe(`[${e}] ${t}`)}function Wd(e,t){if(i_.env.NODE_ENV!=="production"){const r=Nf(e)?new ZUe(`[${e}] ${t}`):e;console.warn(r)}}const uZr="utils/dom/style";function rG(e,t="px"){if(!e)return"";if(k0(e)||sZr(e))return`${e}${t}`;if(Nf(e))return e;Wd(uZr,"binding value must be a string or number")}function dZr(e,t){if(!W1)return;if(!t){e.scrollTop=0;return}const r=[];let n=t.offsetParent;for(;n!==null&&e!==n&&e.contains(n);)r.push(n),n=n.offsetParent;const i=t.offsetTop+r.reduce((c,u)=>c+u.offsetTop,0),o=i+t.offsetHeight,s=e.scrollTop,l=s+e.clientHeight;i<s?e.scrollTop=i:o>l&&(e.scrollTop=o-e.clientHeight)}/*! Element Plus Icons Vue v2.3.1 */var hZr=a.defineComponent({name:"ArrowDown",__name:"arrow-down",setup(e){return(t,r)=>(a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[a.createElementVNode("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.592 30.592 0 0 0-42.752 0z"})]))}}),pZr=hZr,fZr=a.defineComponent({name:"ArrowRight",__name:"arrow-right",setup(e){return(t,r)=>(a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[a.createElementVNode("path",{fill:"currentColor",d:"M340.864 149.312a30.592 30.592 0 0 0 0 42.752L652.736 512 340.864 831.872a30.592 30.592 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"})]))}}),mZr=fZr,gZr=a.defineComponent({name:"CircleCheck",__name:"circle-check",setup(e){return(t,r)=>(a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[a.createElementVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),a.createElementVNode("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752l265.344-265.408z"})]))}}),yZr=gZr,TZr=a.defineComponent({name:"CircleClose",__name:"circle-close",setup(e){return(t,r)=>(a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[a.createElementVNode("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248z"}),a.createElementVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),tue=TZr,vZr=a.defineComponent({name:"Close",__name:"close",setup(e){return(t,r)=>(a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[a.createElementVNode("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),KUe=vZr,bZr=a.defineComponent({name:"Hide",__name:"hide",setup(e){return(t,r)=>(a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[a.createElementVNode("path",{fill:"currentColor",d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4-6.4-6.4-12.8-9.6-22.4-9.6-9.6 0-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176C44.8 438.4 0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4 0 9.6 3.2 16 9.6 22.4 6.4 6.4 12.8 9.6 22.4 9.6 9.6 0 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4Zm-646.4 528c-76.8-70.4-128-128-153.6-172.8 28.8-48 80-105.6 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4Zm140.8-96c-12.8-22.4-19.2-48-19.2-76.8 0-44.8 16-83.2 48-112 32-28.8 67.2-48 112-48 28.8 0 54.4 6.4 73.6 19.2zM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6-28.8 48-80 105.6-153.6 172.8-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176C979.199 585.6 1024 528 1024 512s-48.001-73.6-134.401-176Z"}),a.createElementVNode("path",{fill:"currentColor",d:"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112-32 28.8-67.2 48-112 48Z"})]))}}),QZr=bZr,xZr=a.defineComponent({name:"Loading",__name:"loading",setup(e){return(t,r)=>(a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[a.createElementVNode("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0m-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"})]))}}),XUe=xZr,_Zr=a.defineComponent({name:"View",__name:"view",setup(e){return(t,r)=>(a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[a.createElementVNode("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352m0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448m0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"})]))}}),wZr=_Zr;const YUe="__epPropKey",Ji=e=>e,LZr=e=>Gd(e)&&!!e[YUe],nG=(e,t)=>{if(!Gd(e)||LZr(e))return e;const{values:r,required:n,default:i,type:o,validator:s}=e,l={type:o,required:!!n,validator:r||s?c=>{let u=!1,d=[];if(r&&(d=Array.from(r),iUe(e,"default")&&d.push(i),u||(u=d.includes(c))),s&&(u||(u=s(c))),!u&&d.length>0){const h=[...new Set(d)].map(p=>JSON.stringify(p)).join(", ");a.warn(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${h}], got value ${JSON.stringify(c)}.`)}return u}:void 0,[YUe]:!0};return iUe(e,"default")&&(l.default=i),l},Ms=e=>eG(Object.entries(e).map(([t,r])=>[t,nG(r,t)])),iT=Ji([String,Object,Function]),JUe={validating:XUe,success:yZr,error:tue},Df=(e,t)=>{if(e.install=r=>{for(const n of[e,...Object.values(t??{})])r.component(n.name,n)},t)for(const[r,n]of Object.entries(t))e[r]=n;return e},SZr=(e,t)=>(e.install=r=>{r.directive(t,e)},e),iG=e=>(e.install=zA,e),KA={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},x2="update:modelValue",oG="change",$Ue=["","default","small","large"],eGe=e=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(e),tGe=e=>e,kZr=["class","style"],MZr=/^on[A-Z]/,CZr=(e={})=>{const{excludeListeners:t=!1,excludeKeys:r}=e,n=a.computed(()=>((r==null?void 0:r.value)||[]).concat(kZr)),i=a.getCurrentInstance();return i?a.computed(()=>{var o;return eG(Object.entries((o=i.proxy)==null?void 0:o.$attrs).filter(([s])=>!n.value.includes(s)&&!(t&&MZr.test(s))))}):(Wd("use-attrs","getCurrentInstance() returned null. useAttrs() must be called at the top of a setup function"),a.computed(()=>({})))},rGe=({from:e,replacement:t,scope:r,version:n,ref:i,type:o="API"},s)=>{a.watch(()=>a.unref(s),l=>{l&&Wd(r,`[${o}] ${e} is about to be deprecated in version ${n}, please use ${t} instead.
|
3094
3094
|
For more detail, please visit: ${i}
|
3095
3095
|
`)},{immediate:!0})};var EZr={name:"en",el:{colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color."},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tour:{next:"Next",previous:"Previous",finish:"Finish"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"}}};const AZr=e=>(t,r)=>OZr(t,r,a.unref(e)),OZr=(e,t,r)=>y5(r,e,e).replace(/\{(\w+)\}/g,(n,i)=>{var o;return`${(o=t==null?void 0:t[i])!=null?o:`{${i}}`}`}),IZr=e=>{const t=a.computed(()=>a.unref(e).name),r=a.isRef(e)?e:a.ref(e);return{lang:t,locale:r,t:AZr(e)}},PZr=Symbol("localeContextKey"),VZr=e=>{const t=e||a.inject(PZr,a.ref());return IZr(a.computed(()=>t.value||EZr))},rue="el",HZr="is-",oT=(e,t,r,n,i)=>{let o=`${e}-${t}`;return r&&(o+=`-${r}`),n&&(o+=`__${n}`),i&&(o+=`--${i}`),o},RZr=Symbol("namespaceContextKey"),nue=e=>{const t=e||(a.getCurrentInstance()?a.inject(RZr,a.ref(rue)):a.ref(rue));return a.computed(()=>a.unref(t)||rue)},Ts=(e,t)=>{const r=nue(t);return{namespace:r,b:(n="")=>oT(r.value,e,n,"",""),e:n=>n?oT(r.value,e,"",n,""):"",m:n=>n?oT(r.value,e,"","",n):"",be:(n,i)=>n&&i?oT(r.value,e,n,i,""):"",em:(n,i)=>n&&i?oT(r.value,e,"",n,i):"",bm:(n,i)=>n&&i?oT(r.value,e,n,"",i):"",bem:(n,i,o)=>n&&i&&o?oT(r.value,e,n,i,o):"",is:(n,...i)=>{const o=i.length>=1?i[0]:!0;return n&&o?`${HZr}${n}`:""},cssVar:n=>{const i={};for(const o in n)n[o]&&(i[`--${r.value}-${o}`]=n[o]);return i},cssVarName:n=>`--${r.value}-${n}`,cssVarBlock:n=>{const i={};for(const o in n)n[o]&&(i[`--${r.value}-${e}-${o}`]=n[o]);return i},cssVarBlockName:n=>`--${r.value}-${e}-${n}`}},NZr=nG({type:Ji(Boolean),default:null}),BZr=nG({type:Ji(Function)}),FZr=e=>{const t=`update:${e}`,r=`onUpdate:${e}`,n=[t],i={[e]:NZr,[r]:BZr};return{useModelToggle:({indicator:o,toggleReason:s,shouldHideWhenRouteChanges:l,shouldProceed:c,onShow:u,onHide:d})=>{const h=a.getCurrentInstance(),{emit:p}=h,f=h.props,m=a.computed(()=>Ud(f[r])),g=a.computed(()=>f[e]===null),T=w=>{o.value!==!0&&(o.value=!0,s&&(s.value=w),Ud(u)&&u(w))},y=w=>{o.value!==!1&&(o.value=!1,s&&(s.value=w),Ud(d)&&d(w))},v=w=>{if(f.disabled===!0||Ud(c)&&!c())return;const k=m.value&&W1;k&&p(t,!0),(g.value||!k)&&T(w)},Q=w=>{if(f.disabled===!0||!W1)return;const k=m.value&&W1;k&&p(t,!1),(g.value||!k)&&y(w)},x=w=>{eue(w)&&(f.disabled&&w?m.value&&p(t,!1):o.value!==w&&(w?T():y()))},L=()=>{o.value?Q():v()};return a.watch(()=>f[e],x),l&&h.appContext.config.globalProperties.$route!==void 0&&a.watch(()=>({...h.proxy.$route}),()=>{l.value&&o.value&&Q()}),a.onMounted(()=>{x(f[e])}),{hide:Q,show:v,toggle:L,hasUpdateHandler:m}},useModelToggleProps:i,useModelToggleEmits:n}},nGe=e=>{const t=a.getCurrentInstance();return a.computed(()=>{var r,n;return(n=(r=t==null?void 0:t.proxy)==null?void 0:r.$props)==null?void 0:n[e]})};var M0="top",qd="bottom",Zd="right",C0="left",iue="auto",XA=[M0,qd,Zd,C0],u_="start",YA="end",DZr="clippingParents",iGe="viewport",JA="popper",zZr="reference",oGe=XA.reduce(function(e,t){return e.concat([t+"-"+u_,t+"-"+YA])},[]),aG=[].concat(XA,[iue]).reduce(function(e,t){return e.concat([t,t+"-"+u_,t+"-"+YA])},[]),jZr="beforeRead",UZr="read",GZr="afterRead",WZr="beforeMain",qZr="main",ZZr="afterMain",KZr="beforeWrite",XZr="write",YZr="afterWrite",JZr=[jZr,UZr,GZr,WZr,qZr,ZZr,KZr,XZr,YZr];function zf(e){return e?(e.nodeName||"").toLowerCase():null}function Mp(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function d_(e){var t=Mp(e).Element;return e instanceof t||e instanceof Element}function Kd(e){var t=Mp(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function oue(e){if(typeof ShadowRoot>"u")return!1;var t=Mp(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function $Zr(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},i=t.attributes[r]||{},o=t.elements[r];!Kd(o)||!zf(o)||(Object.assign(o.style,n),Object.keys(i).forEach(function(s){var l=i[s];l===!1?o.removeAttribute(s):o.setAttribute(s,l===!0?"":l)}))})}function eKr(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var i=t.elements[n],o=t.attributes[n]||{},s=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),l=s.reduce(function(c,u){return c[u]="",c},{});!Kd(i)||!zf(i)||(Object.assign(i.style,l),Object.keys(o).forEach(function(c){i.removeAttribute(c)}))})}}var aGe={name:"applyStyles",enabled:!0,phase:"write",fn:$Zr,effect:eKr,requires:["computeStyles"]};function jf(e){return e.split("-")[0]}var aT=Math.max,sG=Math.min,h_=Math.round;function p_(e,t){t===void 0&&(t=!1);var r=e.getBoundingClientRect(),n=1,i=1;if(Kd(e)&&t){var o=e.offsetHeight,s=e.offsetWidth;s>0&&(n=h_(r.width)/s||1),o>0&&(i=h_(r.height)/o||1)}return{width:r.width/n,height:r.height/i,top:r.top/i,right:r.right/n,bottom:r.bottom/i,left:r.left/n,x:r.left/n,y:r.top/i}}function aue(e){var t=p_(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function sGe(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&oue(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function v5(e){return Mp(e).getComputedStyle(e)}function tKr(e){return["table","td","th"].indexOf(zf(e))>=0}function e7(e){return((d_(e)?e.ownerDocument:e.document)||window.document).documentElement}function lG(e){return zf(e)==="html"?e:e.assignedSlot||e.parentNode||(oue(e)?e.host:null)||e7(e)}function lGe(e){return!Kd(e)||v5(e).position==="fixed"?null:e.offsetParent}function rKr(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,r=navigator.userAgent.indexOf("Trident")!==-1;if(r&&Kd(e)){var n=v5(e);if(n.position==="fixed")return null}var i=lG(e);for(oue(i)&&(i=i.host);Kd(i)&&["html","body"].indexOf(zf(i))<0;){var o=v5(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function $A(e){for(var t=Mp(e),r=lGe(e);r&&tKr(r)&&v5(r).position==="static";)r=lGe(r);return r&&(zf(r)==="html"||zf(r)==="body"&&v5(r).position==="static")?t:r||rKr(e)||t}function sue(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function eO(e,t,r){return aT(e,sG(t,r))}function nKr(e,t,r){var n=eO(e,t,r);return n>r?r:n}function cGe(){return{top:0,right:0,bottom:0,left:0}}function uGe(e){return Object.assign({},cGe(),e)}function dGe(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var iKr=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,uGe(typeof e!="number"?e:dGe(e,XA))};function oKr(e){var t,r=e.state,n=e.name,i=e.options,o=r.elements.arrow,s=r.modifiersData.popperOffsets,l=jf(r.placement),c=sue(l),u=[C0,Zd].indexOf(l)>=0,d=u?"height":"width";if(!(!o||!s)){var h=iKr(i.padding,r),p=aue(o),f=c==="y"?M0:C0,m=c==="y"?qd:Zd,g=r.rects.reference[d]+r.rects.reference[c]-s[c]-r.rects.popper[d],T=s[c]-r.rects.reference[c],y=$A(o),v=y?c==="y"?y.clientHeight||0:y.clientWidth||0:0,Q=g/2-T/2,x=h[f],L=v-p[d]-h[m],w=v/2-p[d]/2+Q,k=eO(x,w,L),M=c;r.modifiersData[n]=(t={},t[M]=k,t.centerOffset=k-w,t)}}function aKr(e){var t=e.state,r=e.options,n=r.element,i=n===void 0?"[data-popper-arrow]":n;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||!sGe(t.elements.popper,i)||(t.elements.arrow=i))}var sKr={name:"arrow",enabled:!0,phase:"main",fn:oKr,effect:aKr,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function f_(e){return e.split("-")[1]}var lKr={top:"auto",right:"auto",bottom:"auto",left:"auto"};function cKr(e){var t=e.x,r=e.y,n=window,i=n.devicePixelRatio||1;return{x:h_(t*i)/i||0,y:h_(r*i)/i||0}}function hGe(e){var t,r=e.popper,n=e.popperRect,i=e.placement,o=e.variation,s=e.offsets,l=e.position,c=e.gpuAcceleration,u=e.adaptive,d=e.roundOffsets,h=e.isFixed,p=s.x,f=p===void 0?0:p,m=s.y,g=m===void 0?0:m,T=typeof d=="function"?d({x:f,y:g}):{x:f,y:g};f=T.x,g=T.y;var y=s.hasOwnProperty("x"),v=s.hasOwnProperty("y"),Q=C0,x=M0,L=window;if(u){var w=$A(r),k="clientHeight",M="clientWidth";if(w===Mp(r)&&(w=e7(r),v5(w).position!=="static"&&l==="absolute"&&(k="scrollHeight",M="scrollWidth")),w=w,i===M0||(i===C0||i===Zd)&&o===YA){x=qd;var E=h&&w===L&&L.visualViewport?L.visualViewport.height:w[k];g-=E-n.height,g*=c?1:-1}if(i===C0||(i===M0||i===qd)&&o===YA){Q=Zd;var O=h&&w===L&&L.visualViewport?L.visualViewport.width:w[M];f-=O-n.width,f*=c?1:-1}}var P=Object.assign({position:l},u&&lKr),R=d===!0?cKr({x:f,y:g}):{x:f,y:g};if(f=R.x,g=R.y,c){var B;return Object.assign({},P,(B={},B[x]=v?"0":"",B[Q]=y?"0":"",B.transform=(L.devicePixelRatio||1)<=1?"translate("+f+"px, "+g+"px)":"translate3d("+f+"px, "+g+"px, 0)",B))}return Object.assign({},P,(t={},t[x]=v?g+"px":"",t[Q]=y?f+"px":"",t.transform="",t))}function uKr(e){var t=e.state,r=e.options,n=r.gpuAcceleration,i=n===void 0?!0:n,o=r.adaptive,s=o===void 0?!0:o,l=r.roundOffsets,c=l===void 0?!0:l,u={placement:jf(t.placement),variation:f_(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,hGe(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,hGe(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var pGe={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:uKr,data:{}},cG={passive:!0};function dKr(e){var t=e.state,r=e.instance,n=e.options,i=n.scroll,o=i===void 0?!0:i,s=n.resize,l=s===void 0?!0:s,c=Mp(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&u.forEach(function(d){d.addEventListener("scroll",r.update,cG)}),l&&c.addEventListener("resize",r.update,cG),function(){o&&u.forEach(function(d){d.removeEventListener("scroll",r.update,cG)}),l&&c.removeEventListener("resize",r.update,cG)}}var fGe={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:dKr,data:{}},hKr={left:"right",right:"left",bottom:"top",top:"bottom"};function uG(e){return e.replace(/left|right|bottom|top/g,function(t){return hKr[t]})}var pKr={start:"end",end:"start"};function mGe(e){return e.replace(/start|end/g,function(t){return pKr[t]})}function lue(e){var t=Mp(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function cue(e){return p_(e7(e)).left+lue(e).scrollLeft}function fKr(e){var t=Mp(e),r=e7(e),n=t.visualViewport,i=r.clientWidth,o=r.clientHeight,s=0,l=0;return n&&(i=n.width,o=n.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(s=n.offsetLeft,l=n.offsetTop)),{width:i,height:o,x:s+cue(e),y:l}}function mKr(e){var t,r=e7(e),n=lue(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=aT(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=aT(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),l=-n.scrollLeft+cue(e),c=-n.scrollTop;return v5(i||r).direction==="rtl"&&(l+=aT(r.clientWidth,i?i.clientWidth:0)-o),{width:o,height:s,x:l,y:c}}function uue(e){var t=v5(e),r=t.overflow,n=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+i+n)}function gGe(e){return["html","body","#document"].indexOf(zf(e))>=0?e.ownerDocument.body:Kd(e)&&uue(e)?e:gGe(lG(e))}function tO(e,t){var r;t===void 0&&(t=[]);var n=gGe(e),i=n===((r=e.ownerDocument)==null?void 0:r.body),o=Mp(n),s=i?[o].concat(o.visualViewport||[],uue(n)?n:[]):n,l=t.concat(s);return i?l:l.concat(tO(lG(s)))}function due(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function gKr(e){var t=p_(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function yGe(e,t){return t===iGe?due(fKr(e)):d_(t)?gKr(t):due(mKr(e7(e)))}function yKr(e){var t=tO(lG(e)),r=["absolute","fixed"].indexOf(v5(e).position)>=0,n=r&&Kd(e)?$A(e):e;return d_(n)?t.filter(function(i){return d_(i)&&sGe(i,n)&&zf(i)!=="body"}):[]}function TKr(e,t,r){var n=t==="clippingParents"?yKr(e):[].concat(t),i=[].concat(n,[r]),o=i[0],s=i.reduce(function(l,c){var u=yGe(e,c);return l.top=aT(u.top,l.top),l.right=sG(u.right,l.right),l.bottom=sG(u.bottom,l.bottom),l.left=aT(u.left,l.left),l},yGe(e,o));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function TGe(e){var t=e.reference,r=e.element,n=e.placement,i=n?jf(n):null,o=n?f_(n):null,s=t.x+t.width/2-r.width/2,l=t.y+t.height/2-r.height/2,c;switch(i){case M0:c={x:s,y:t.y-r.height};break;case qd:c={x:s,y:t.y+t.height};break;case Zd:c={x:t.x+t.width,y:l};break;case C0:c={x:t.x-r.width,y:l};break;default:c={x:t.x,y:t.y}}var u=i?sue(i):null;if(u!=null){var d=u==="y"?"height":"width";switch(o){case u_:c[u]=c[u]-(t[d]/2-r[d]/2);break;case YA:c[u]=c[u]+(t[d]/2-r[d]/2);break}}return c}function rO(e,t){t===void 0&&(t={});var r=t,n=r.placement,i=n===void 0?e.placement:n,o=r.boundary,s=o===void 0?DZr:o,l=r.rootBoundary,c=l===void 0?iGe:l,u=r.elementContext,d=u===void 0?JA:u,h=r.altBoundary,p=h===void 0?!1:h,f=r.padding,m=f===void 0?0:f,g=uGe(typeof m!="number"?m:dGe(m,XA)),T=d===JA?zZr:JA,y=e.rects.popper,v=e.elements[p?T:d],Q=TKr(d_(v)?v:v.contextElement||e7(e.elements.popper),s,c),x=p_(e.elements.reference),L=TGe({reference:x,element:y,strategy:"absolute",placement:i}),w=due(Object.assign({},y,L)),k=d===JA?w:x,M={top:Q.top-k.top+g.top,bottom:k.bottom-Q.bottom+g.bottom,left:Q.left-k.left+g.left,right:k.right-Q.right+g.right},E=e.modifiersData.offset;if(d===JA&&E){var O=E[i];Object.keys(M).forEach(function(P){var R=[Zd,qd].indexOf(P)>=0?1:-1,B=[M0,qd].indexOf(P)>=0?"y":"x";M[P]+=O[B]*R})}return M}function vKr(e,t){t===void 0&&(t={});var r=t,n=r.placement,i=r.boundary,o=r.rootBoundary,s=r.padding,l=r.flipVariations,c=r.allowedAutoPlacements,u=c===void 0?aG:c,d=f_(n),h=d?l?oGe:oGe.filter(function(m){return f_(m)===d}):XA,p=h.filter(function(m){return u.indexOf(m)>=0});p.length===0&&(p=h);var f=p.reduce(function(m,g){return m[g]=rO(e,{placement:g,boundary:i,rootBoundary:o,padding:s})[jf(g)],m},{});return Object.keys(f).sort(function(m,g){return f[m]-f[g]})}function bKr(e){if(jf(e)===iue)return[];var t=uG(e);return[mGe(e),t,mGe(t)]}function QKr(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var i=r.mainAxis,o=i===void 0?!0:i,s=r.altAxis,l=s===void 0?!0:s,c=r.fallbackPlacements,u=r.padding,d=r.boundary,h=r.rootBoundary,p=r.altBoundary,f=r.flipVariations,m=f===void 0?!0:f,g=r.allowedAutoPlacements,T=t.options.placement,y=jf(T),v=y===T,Q=c||(v||!m?[uG(T)]:bKr(T)),x=[T].concat(Q).reduce(function(xe,ge){return xe.concat(jf(ge)===iue?vKr(t,{placement:ge,boundary:d,rootBoundary:h,padding:u,flipVariations:m,allowedAutoPlacements:g}):ge)},[]),L=t.rects.reference,w=t.rects.popper,k=new Map,M=!0,E=x[0],O=0;O<x.length;O++){var P=x[O],R=jf(P),B=f_(P)===u_,G=[M0,qd].indexOf(R)>=0,U=G?"width":"height",N=rO(t,{placement:P,boundary:d,rootBoundary:h,altBoundary:p,padding:u}),V=G?B?Zd:C0:B?qd:M0;L[U]>w[U]&&(V=uG(V));var W=uG(V),j=[];if(o&&j.push(N[R]<=0),l&&j.push(N[V]<=0,N[W]<=0),j.every(function(xe){return xe})){E=P,M=!1;break}k.set(P,j)}if(M)for(var K=m?3:1,$=function(xe){var ge=x.find(function(ne){var de=k.get(ne);if(de)return de.slice(0,xe).every(function(ee){return ee})});if(ge)return E=ge,"break"},te=K;te>0;te--){var ue=$(te);if(ue==="break")break}t.placement!==E&&(t.modifiersData[n]._skip=!0,t.placement=E,t.reset=!0)}}var xKr={name:"flip",enabled:!0,phase:"main",fn:QKr,requiresIfExists:["offset"],data:{_skip:!1}};function vGe(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function bGe(e){return[M0,Zd,qd,C0].some(function(t){return e[t]>=0})}function _Kr(e){var t=e.state,r=e.name,n=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,s=rO(t,{elementContext:"reference"}),l=rO(t,{altBoundary:!0}),c=vGe(s,n),u=vGe(l,i,o),d=bGe(c),h=bGe(u);t.modifiersData[r]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:d,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":h})}var wKr={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:_Kr};function LKr(e,t,r){var n=jf(e),i=[C0,M0].indexOf(n)>=0?-1:1,o=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,s=o[0],l=o[1];return s=s||0,l=(l||0)*i,[C0,Zd].indexOf(n)>=0?{x:l,y:s}:{x:s,y:l}}function SKr(e){var t=e.state,r=e.options,n=e.name,i=r.offset,o=i===void 0?[0,0]:i,s=aG.reduce(function(d,h){return d[h]=LKr(h,t.rects,o),d},{}),l=s[t.placement],c=l.x,u=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=u),t.modifiersData[n]=s}var kKr={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:SKr};function MKr(e){var t=e.state,r=e.name;t.modifiersData[r]=TGe({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var QGe={name:"popperOffsets",enabled:!0,phase:"read",fn:MKr,data:{}};function CKr(e){return e==="x"?"y":"x"}function EKr(e){var t=e.state,r=e.options,n=e.name,i=r.mainAxis,o=i===void 0?!0:i,s=r.altAxis,l=s===void 0?!1:s,c=r.boundary,u=r.rootBoundary,d=r.altBoundary,h=r.padding,p=r.tether,f=p===void 0?!0:p,m=r.tetherOffset,g=m===void 0?0:m,T=rO(t,{boundary:c,rootBoundary:u,padding:h,altBoundary:d}),y=jf(t.placement),v=f_(t.placement),Q=!v,x=sue(y),L=CKr(x),w=t.modifiersData.popperOffsets,k=t.rects.reference,M=t.rects.popper,E=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,O=typeof E=="number"?{mainAxis:E,altAxis:E}:Object.assign({mainAxis:0,altAxis:0},E),P=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,R={x:0,y:0};if(w){if(o){var B,G=x==="y"?M0:C0,U=x==="y"?qd:Zd,N=x==="y"?"height":"width",V=w[x],W=V+T[G],j=V-T[U],K=f?-M[N]/2:0,$=v===u_?k[N]:M[N],te=v===u_?-M[N]:-k[N],ue=t.elements.arrow,xe=f&&ue?aue(ue):{width:0,height:0},ge=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:cGe(),ne=ge[G],de=ge[U],ee=eO(0,k[N],xe[N]),oe=Q?k[N]/2-K-ee-ne-O.mainAxis:$-ee-ne-O.mainAxis,ie=Q?-k[N]/2+K+ee+de+O.mainAxis:te+ee+de+O.mainAxis,fe=t.elements.arrow&&$A(t.elements.arrow),Le=fe?x==="y"?fe.clientTop||0:fe.clientLeft||0:0,Pe=(B=P==null?void 0:P[x])!=null?B:0,he=V+oe-Pe-Le,Ce=V+ie-Pe,Me=eO(f?sG(W,he):W,V,f?aT(j,Ce):j);w[x]=Me,R[x]=Me-V}if(l){var Ie,De=x==="x"?M0:C0,ot=x==="x"?qd:Zd,rt=w[L],dt=L==="y"?"height":"width",Lt=rt+T[De],Tt=rt-T[ot],ye=[M0,C0].indexOf(y)!==-1,qe=(Ie=P==null?void 0:P[L])!=null?Ie:0,pt=ye?Lt:rt-k[dt]-M[dt]-qe+O.altAxis,gt=ye?rt+k[dt]+M[dt]-qe-O.altAxis:Tt,xt=f&&ye?nKr(pt,rt,gt):eO(f?pt:Lt,rt,f?gt:Tt);w[L]=xt,R[L]=xt-rt}t.modifiersData[n]=R}}var AKr={name:"preventOverflow",enabled:!0,phase:"main",fn:EKr,requiresIfExists:["offset"]};function OKr(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function IKr(e){return e===Mp(e)||!Kd(e)?lue(e):OKr(e)}function PKr(e){var t=e.getBoundingClientRect(),r=h_(t.width)/e.offsetWidth||1,n=h_(t.height)/e.offsetHeight||1;return r!==1||n!==1}function VKr(e,t,r){r===void 0&&(r=!1);var n=Kd(t),i=Kd(t)&&PKr(t),o=e7(t),s=p_(e,i),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(n||!n&&!r)&&((zf(t)!=="body"||uue(o))&&(l=IKr(t)),Kd(t)?(c=p_(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):o&&(c.x=cue(o))),{x:s.left+l.scrollLeft-c.x,y:s.top+l.scrollTop-c.y,width:s.width,height:s.height}}function HKr(e){var t=new Map,r=new Set,n=[];e.forEach(function(o){t.set(o.name,o)});function i(o){r.add(o.name);var s=[].concat(o.requires||[],o.requiresIfExists||[]);s.forEach(function(l){if(!r.has(l)){var c=t.get(l);c&&i(c)}}),n.push(o)}return e.forEach(function(o){r.has(o.name)||i(o)}),n}function RKr(e){var t=HKr(e);return JZr.reduce(function(r,n){return r.concat(t.filter(function(i){return i.phase===n}))},[])}function NKr(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function BKr(e){var t=e.reduce(function(r,n){var i=r[n.name];return r[n.name]=i?Object.assign({},i,n,{options:Object.assign({},i.options,n.options),data:Object.assign({},i.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var xGe={placement:"bottom",modifiers:[],strategy:"absolute"};function _Ge(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function hue(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,i=t.defaultOptions,o=i===void 0?xGe:i;return function(s,l,c){c===void 0&&(c=o);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},xGe,o),modifiersData:{},elements:{reference:s,popper:l},attributes:{},styles:{}},d=[],h=!1,p={state:u,setOptions:function(g){var T=typeof g=="function"?g(u.options):g;m(),u.options=Object.assign({},o,u.options,T),u.scrollParents={reference:d_(s)?tO(s):s.contextElement?tO(s.contextElement):[],popper:tO(l)};var y=RKr(BKr([].concat(n,u.options.modifiers)));return u.orderedModifiers=y.filter(function(v){return v.enabled}),f(),p.update()},forceUpdate:function(){if(!h){var g=u.elements,T=g.reference,y=g.popper;if(_Ge(T,y)){u.rects={reference:VKr(T,$A(y),u.options.strategy==="fixed"),popper:aue(y)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(M){return u.modifiersData[M.name]=Object.assign({},M.data)});for(var v=0;v<u.orderedModifiers.length;v++){if(u.reset===!0){u.reset=!1,v=-1;continue}var Q=u.orderedModifiers[v],x=Q.fn,L=Q.options,w=L===void 0?{}:L,k=Q.name;typeof x=="function"&&(u=x({state:u,options:w,name:k,instance:p})||u)}}}},update:NKr(function(){return new Promise(function(g){p.forceUpdate(),g(u)})}),destroy:function(){m(),h=!0}};if(!_Ge(s,l))return p;p.setOptions(c).then(function(g){!h&&c.onFirstUpdate&&c.onFirstUpdate(g)});function f(){u.orderedModifiers.forEach(function(g){var T=g.name,y=g.options,v=y===void 0?{}:y,Q=g.effect;if(typeof Q=="function"){var x=Q({state:u,name:T,instance:p,options:v}),L=function(){};d.push(x||L)}})}function m(){d.forEach(function(g){return g()}),d=[]}return p}}hue();var FKr=[fGe,QGe,pGe,aGe];hue({defaultModifiers:FKr});var DKr=[fGe,QGe,pGe,aGe,kKr,xKr,AKr,sKr,wKr],zKr=hue({defaultModifiers:DKr});const jKr=(e,t,r={})=>{const n={name:"updateState",enabled:!0,phase:"write",fn:({state:c})=>{const u=UKr(c);Object.assign(s.value,u)},requires:["computeStyles"]},i=a.computed(()=>{const{onFirstUpdate:c,placement:u,strategy:d,modifiers:h}=a.unref(r);return{onFirstUpdate:c,placement:u||"bottom",strategy:d||"absolute",modifiers:[...h||[],n,{name:"applyStyles",enabled:!1}]}}),o=a.shallowRef(),s=a.ref({styles:{popper:{position:a.unref(i).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),l=()=>{o.value&&(o.value.destroy(),o.value=void 0)};return a.watch(i,c=>{const u=a.unref(o);u&&u.setOptions(c)},{deep:!0}),a.watch([e,t],([c,u])=>{l(),!(!c||!u)&&(o.value=zKr(c,u,a.unref(i)))}),a.onBeforeUnmount(()=>{l()}),{state:a.computed(()=>{var c;return{...((c=a.unref(o))==null?void 0:c.state)||{}}}),styles:a.computed(()=>a.unref(s).styles),attributes:a.computed(()=>a.unref(s).attributes),update:()=>{var c;return(c=a.unref(o))==null?void 0:c.update()},forceUpdate:()=>{var c;return(c=a.unref(o))==null?void 0:c.forceUpdate()},instanceRef:a.computed(()=>a.unref(o))}};function UKr(e){const t=Object.keys(e.elements),r=eG(t.map(i=>[i,e.styles[i]||{}])),n=eG(t.map(i=>[i,e.attributes[i]]));return{styles:r,attributes:n}}function wGe(){let e;const t=(n,i)=>{r(),e=window.setTimeout(n,i)},r=()=>window.clearTimeout(e);return GU(()=>r()),{registerTimeout:t,cancelTimeout:r}}const pue={prefix:Math.floor(Math.random()*1e4),current:0},GKr=Symbol("elIdInjection"),fue=()=>a.getCurrentInstance()?a.inject(GKr,pue):pue,dG=e=>{const t=fue();!W1&&t===pue&&Wd("IdInjection",`Looks like you are using server rendering, you must provide a id provider to ensure the hydration process to be succeed
|
3096
3096
|
usage: app.provide(ID_INJECTION_KEY, {
|