@mappedin/mappedin-js 6.1.2 → 6.2.0
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/THIRD_PARTY_LICENSES.txt +17 -17
- package/lib/esm/GLTFExporter-3JKIHJUE.js +1 -0
- package/lib/esm/{GLTFLoader-TLLNLQ5Y.js → GLTFLoader-YF6HHM37.js} +1 -2
- package/lib/esm/chunk-5W2UDR4H.js +1 -0
- package/lib/esm/chunk-DZR5BIFS.js +1 -0
- package/lib/esm/{chunk-MLCPE7I2.js → chunk-MASF4ZFZ.js} +1 -2
- package/lib/esm/chunk-NXEXDQWS.js +1 -0
- package/lib/esm/chunk-VNMMMLDZ.js +1 -0
- package/lib/esm/index.css +1 -2
- package/lib/esm/index.d.ts +73 -38
- package/lib/esm/index.js +1 -2
- package/lib/esm/inspector-YV5UYRAA.js +1 -0
- package/lib/esm/inspector-Z5ATF4CD.css +1 -0
- package/lib/esm/internal-OFWBS2NI.css +1 -0
- package/lib/esm/internal-OP2OBNBR.js +1 -0
- package/lib/esm/{roboto-regular-R5KXKW73.js → roboto-regular-ERMR6E6W.js} +1 -2
- package/lib/esm/{text3d-AXM5ZHCS.css → text3d-M57DIX3E.css} +0 -1
- package/lib/esm/text3d-TIEILCR2.js +1 -0
- package/lib/esm/workers/collision-worker.csp.js +1 -23
- package/lib/esm/workers/maplibre-worker.csp.js +1 -2
- package/lib/index.css +1 -2
- package/package.json +2 -2
- package/lib/esm/GLTFExporter-O4OUZTHE.js +0 -2
- package/lib/esm/GLTFExporter-O4OUZTHE.js.map +0 -7
- package/lib/esm/GLTFLoader-TLLNLQ5Y.js.map +0 -7
- package/lib/esm/chunk-3PM6GKGK.js +0 -2048
- package/lib/esm/chunk-3PM6GKGK.js.map +0 -7
- package/lib/esm/chunk-3U5JJXJA.js +0 -3820
- package/lib/esm/chunk-3U5JJXJA.js.map +0 -7
- package/lib/esm/chunk-MLCPE7I2.js.map +0 -7
- package/lib/esm/chunk-ROCNZJLL.js +0 -2
- package/lib/esm/chunk-ROCNZJLL.js.map +0 -7
- package/lib/esm/chunk-UOCWYBVK.js +0 -938
- package/lib/esm/chunk-UOCWYBVK.js.map +0 -7
- package/lib/esm/index.css.map +0 -7
- package/lib/esm/index.js.map +0 -7
- package/lib/esm/inspector-2XETNHYZ.css +0 -2
- package/lib/esm/inspector-2XETNHYZ.css.map +0 -7
- package/lib/esm/inspector-66PSYVJU.js +0 -483
- package/lib/esm/inspector-66PSYVJU.js.map +0 -7
- package/lib/esm/internal-R5XTRV7Q.css +0 -2
- package/lib/esm/internal-R5XTRV7Q.css.map +0 -7
- package/lib/esm/internal-WJZVXVL6.js +0 -2
- package/lib/esm/internal-WJZVXVL6.js.map +0 -7
- package/lib/esm/roboto-regular-R5KXKW73.js.map +0 -7
- package/lib/esm/text3d-AXM5ZHCS.css.map +0 -7
- package/lib/esm/text3d-EZBY7L7A.js +0 -253
- package/lib/esm/text3d-EZBY7L7A.js.map +0 -7
- package/lib/index-rn.js +0 -4306
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.mappedin-marker{font-family:InterUI-Regular,Helvetica,Arial,sans-serif;font-weight:400;top:0;position:absolute;font-weight:700;color:#000;display:flex;flex-direction:row;will-change:transform,opacity;transition:opacity .15s ease-in-out;justify-content:center;opacity:0}.mappedin-marker[data-placement=hidden]>.mappedin-marker-content{visibility:hidden}.mappedin-marker:before{content:"";display:none;border-radius:50%;position:relative;width:var(--mappedin-pin-size, 2px);height:var(--mappedin-pin-size, 2px);background-color:var(--pin-color, #666)}.mappedin-marker[data-placement=hidden]:before{display:block}.mappedin__smart-collision-engine__container{position:absolute;left:0;top:0;bottom:0;right:0;pointer-events:none;transform-style:preserve-3d;font-family:InterUI-Regular,Helvetica,Arial,sans-serif}.mappedin__smart-collision-engine-debug__container{position:absolute;left:0;top:0;bottom:0;right:0;transition:opacity .3s ease-in-out;pointer-events:none;will-change:opacity}.mappedin__smart-collision-engine-debug__container.interacting{opacity:.2}.mappedin-map .mappedin-interactive{cursor:grab}.mappedin-map .mappedin-interactive:active{cursor:grabbing}.mappedin-map .mappedin-interactive.mappedin-interaction-hover{cursor:pointer}.mappedin-map .mappedin-control-container{position:absolute;left:0;top:0;bottom:0;right:0;pointer-events:none;font-family:InterUI-Regular,Helvetica,Arial,sans-serif}.mappedin-map .mappedin-control-container .mappedin-ctrl-top-left,.mappedin-map .mappedin-control-container .mappedin-ctrl-top-right,.mappedin-map .mappedin-control-container .mappedin-ctrl-bottom-left,.mappedin-map .mappedin-control-container .mappedin-ctrl-bottom-right{position:absolute;pointer-events:none}.mappedin-map .mappedin-control-container .mappedin-ctrl-top-left{top:0;left:0}.mappedin-map .mappedin-control-container .mappedin-ctrl-top-right{top:0;right:0}.mappedin-map .mappedin-control-container .mappedin-ctrl-bottom-left{bottom:0;left:0}.mappedin-map .mappedin-control-container .mappedin-ctrl-bottom-right{bottom:0;right:0}.mappedin-map .mappedin-control-container .mappedin-ctrl-attrib{display:block;position:relative;pointer-events:auto;font:9px/11px InterUI-Regular,Helvetica,Arial,sans-serif;padding:3px 5px 1px;background-color:#ffffff80;margin:0;min-width:11px;min-height:11px;-webkit-user-select:none;user-select:none}.mappedin-map .mappedin-control-container .mappedin-ctrl-attrib summary.mappedin-ctrl-attrib-button{-webkit-appearance:none;appearance:none;list-style:none}.mappedin-map .mappedin-control-container .mappedin-ctrl-attrib summary.mappedin-ctrl-attrib-button::-webkit-details-marker{display:none}.mappedin-map .mappedin-control-container .mappedin-ctrl-attrib.mappedin-compact .mappedin-ctrl-attrib-button,.mappedin-map .mappedin-control-container .mappedin-ctrl-attrib.mappedin-compact-show .mappedin-ctrl-attrib-inner{display:inline-block}.mappedin-map .mappedin-control-container .mappedin-ctrl-attrib.mappedin-compact{background-color:transparent}.mappedin-map .mappedin-control-container .mappedin-ctrl-attrib.mappedin-compact-show{min-width:15px;min-height:15px;box-sizing:border-box;background-color:#ffffff80}.mappedin-map .mappedin-control-container .mappedin-ctrl-attrib-top-left{float:left;border-bottom-right-radius:4px}.mappedin-map .mappedin-control-container .mappedin-ctrl-attrib-top-right{float:right;border-bottom-left-radius:4px}.mappedin-map .mappedin-control-container .mappedin-ctrl-attrib-bottom-left{float:left;border-top-right-radius:4px}.mappedin-map .mappedin-control-container .mappedin-ctrl-attrib-bottom-right{float:right;border-top-left-radius:4px}.mappedin-map .mappedin-control-container .mappedin-ctrl-attrib-top-left,.mappedin-map .mappedin-control-container .mappedin-ctrl-attrib-bottom-left{padding:3px 5px 1px 20px}.mappedin-map .mappedin-control-container .mappedin-ctrl-attrib-inner{display:inline-block;margin-right:12px}.mappedin-map .mappedin-control-container .mappedin-ctrl-attrib-inner,.mappedin-map .mappedin-control-container .mappedin-ctrl-attrib-inner a{color:#000000bf;text-decoration:none}.mappedin-map .mappedin-control-container .mappedin-ctrl-attrib-inner-bold,.mappedin-map .mappedin-control-container .mappedin-ctrl-attrib-inner-bold a{font-weight:700}.mappedin-map .mappedin-control-container .mappedin-ctrl-attrib-inner a:hover{color:#017ef1;text-decoration:underline;cursor:pointer}.mappedin-map .mappedin-control-container .mappedin-ctrl-attrib-button{display:none;cursor:pointer;position:absolute;width:15px;height:15px;box-sizing:border-box;border-radius:50%;top:0;right:2px;border:1px}.mappedin-map .mappedin-control-container .mappedin-ctrl-attrib-top-left .mappedin-ctrl-attrib-button,.mappedin-map .mappedin-control-container .mappedin-ctrl-attrib-bottom-left .mappedin-ctrl-attrib-button{left:2px}.maplibregl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgb(0 0 0 / 0%)}.maplibregl-canvas{position:absolute;left:0;top:0}.maplibregl-map:fullscreen{width:100%;height:100%}.maplibregl-ctrl-group button.maplibregl-ctrl-compass{touch-action:none}.maplibregl-canvas-container.maplibregl-interactive,.maplibregl-ctrl-group button.maplibregl-ctrl-compass{cursor:grab;-webkit-user-select:none;user-select:none}.maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer{cursor:pointer}.maplibregl-canvas-container.maplibregl-interactive:active,.maplibregl-ctrl-group button.maplibregl-ctrl-compass:active{cursor:grabbing}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-canvas-container.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:pinch-zoom}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:none}.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures,.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-ctrl-top-left,.maplibregl-ctrl-top-right,.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right{position:absolute;pointer-events:none;z-index:2}.maplibregl-ctrl-top-left{top:0;left:0}.maplibregl-ctrl-top-right{top:0;right:0}.maplibregl-ctrl-bottom-left{bottom:0;left:0}.maplibregl-ctrl-bottom-right{right:0;bottom:0}.maplibregl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.maplibregl-ctrl-top-left .maplibregl-ctrl{margin:10px 0 0 10px;float:left}.maplibregl-ctrl-top-right .maplibregl-ctrl{margin:10px 10px 0 0;float:right}.maplibregl-ctrl-bottom-left .maplibregl-ctrl{margin:0 0 10px 10px;float:left}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{margin:0 10px 10px 0;float:right}.maplibregl-ctrl-group{border-radius:4px;background:#fff}.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px #0000001a}@media (forced-colors: active){.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.maplibregl-ctrl-group button{width:29px;height:29px;display:block;padding:0;outline:none;border:0;box-sizing:border-box;background-color:transparent;cursor:pointer}.maplibregl-ctrl-group button+button{border-top:1px solid #ddd}.maplibregl-ctrl button .maplibregl-ctrl-icon{display:block;width:100%;height:100%;background-repeat:no-repeat;background-position:center center}@media (forced-colors: active){.maplibregl-ctrl-icon{background-color:transparent}.maplibregl-ctrl-group button+button{border-top:1px solid ButtonText}}.maplibregl-ctrl button::-moz-focus-inner{border:0;padding:0}.maplibregl-ctrl-attrib-button:focus,.maplibregl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl button:disabled{cursor:not-allowed}.maplibregl-ctrl button:disabled .maplibregl-ctrl-icon{opacity:.25}@media (hover: hover){.maplibregl-ctrl button:not(:disabled):hover{background-color:#0000000d}}.maplibregl-ctrl button:not(:disabled):active{background-color:#0000000d}.maplibregl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.maplibregl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.maplibregl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.maplibregl-ctrl-group button:focus:only-child{border-radius:inherit}.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:svg-load("svg/maplibregl-ctrl-zoom-out.svg",fill: #333)}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:svg-load("svg/maplibregl-ctrl-zoom-in.svg",fill: #333)}@media (forced-colors: active){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:svg-load("svg/maplibregl-ctrl-zoom-out.svg",fill: #fff)}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:svg-load("svg/maplibregl-ctrl-zoom-in.svg",fill: #fff)}}@media (forced-colors: active) and (prefers-color-scheme: light){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:svg-load("svg/maplibregl-ctrl-zoom-out.svg",fill: #000)}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:svg-load("svg/maplibregl-ctrl-zoom-in.svg",fill: #000)}}.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:svg-load("svg/maplibregl-ctrl-fullscreen.svg",fill: #333)}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:svg-load("svg/maplibregl-ctrl-shrink.svg")}@media (forced-colors: active){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:svg-load("svg/maplibregl-ctrl-fullscreen.svg",fill: #fff)}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:svg-load("svg/maplibregl-ctrl-shrink.svg",fill: #fff)}}@media (forced-colors: active) and (prefers-color-scheme: light){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:svg-load("svg/maplibregl-ctrl-fullscreen.svg",fill: #000)}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:svg-load("svg/maplibregl-ctrl-shrink.svg",fill: #000)}}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:svg-load("svg/maplibregl-ctrl-compass.svg",fill: #333)}@media (forced-colors: active){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{@svg-load ctrl-compass-white url(svg/maplibregl-ctrl-compass.svg){fill: #fff; #south {fill: #999;}}background-image:svg-inline(ctrl-compass-white)}}@media (forced-colors: active) and (prefers-color-scheme: light){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:svg-load("svg/maplibregl-ctrl-compass.svg",fill: #000)}}@svg-load ctrl-globe url(svg/maplibregl-ctrl-globe.svg){stroke: #333;}@svg-load ctrl-globe-enabled url(svg/maplibregl-ctrl-globe.svg){stroke: #33b5e5;}.maplibregl-ctrl button.maplibregl-ctrl-globe .maplibregl-ctrl-icon{background-image:svg-inline(ctrl-globe)}.maplibregl-ctrl button.maplibregl-ctrl-globe-enabled .maplibregl-ctrl-icon{background-image:svg-inline(ctrl-globe-enabled)}@svg-load ctrl-terrain url(svg/maplibregl-ctrl-terrain.svg){fill: #333;}@svg-load ctrl-terrain-enabled url(svg/maplibregl-ctrl-terrain.svg){fill: #33b5e5;}.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon{background-image:svg-inline(ctrl-terrain)}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:svg-inline(ctrl-terrain-enabled)}@svg-load ctrl-geolocate url(svg/maplibregl-ctrl-geolocate.svg){fill: #333; #stroke {display: none;}}@svg-load ctrl-geolocate-white url(svg/maplibregl-ctrl-geolocate.svg){fill: #fff; #stroke {display: none;}}@svg-load ctrl-geolocate-black url(svg/maplibregl-ctrl-geolocate.svg){fill: #000; #stroke {display: none;}}@svg-load ctrl-geolocate-disabled url(svg/maplibregl-ctrl-geolocate.svg){fill: #aaa; #stroke {fill: #f00;}}@svg-load ctrl-geolocate-disabled-white url(svg/maplibregl-ctrl-geolocate.svg){fill: #999; #stroke {fill: #f00;}}@svg-load ctrl-geolocate-disabled-black url(svg/maplibregl-ctrl-geolocate.svg){fill: #666; #stroke {fill: #f00;}}@svg-load ctrl-geolocate-active url(svg/maplibregl-ctrl-geolocate.svg){fill: #33b5e5; #stroke {display: none;}}@svg-load ctrl-geolocate-active-error url(svg/maplibregl-ctrl-geolocate.svg){fill: #e58978; #stroke {display: none;}}@svg-load ctrl-geolocate-background url(svg/maplibregl-ctrl-geolocate.svg){fill: #33b5e5; #stroke {display: none;} #dot {display: none;}}@svg-load ctrl-geolocate-background-error url(svg/maplibregl-ctrl-geolocate.svg){fill: #e54e33; #stroke {display: none;} #dot {display: none;}}.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:svg-inline(ctrl-geolocate)}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:svg-inline(ctrl-geolocate-disabled)}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:svg-inline(ctrl-geolocate-active)}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:svg-inline(ctrl-geolocate-active-error)}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:svg-inline(ctrl-geolocate-background)}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:svg-inline(ctrl-geolocate-background-error)}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon{animation:maplibregl-spin 2s infinite linear}@media (forced-colors: active){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:svg-inline(ctrl-geolocate-white)}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:svg-inline(ctrl-geolocate-disabled-white)}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:svg-inline(ctrl-geolocate-active)}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:svg-inline(ctrl-geolocate-active-error)}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:svg-inline(ctrl-geolocate-background)}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:svg-inline(ctrl-geolocate-background-error)}}@media (forced-colors: active) and (prefers-color-scheme: light){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:svg-inline(ctrl-geolocate-black)}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:svg-inline(ctrl-geolocate-disabled-black)}}@keyframes maplibregl-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}a.maplibregl-ctrl-logo{width:88px;height:23px;margin:0 0 -4px -4px;display:block;background-repeat:no-repeat;cursor:pointer;overflow:hidden;background-image:svg-load("svg/maplibregl-ctrl-logo.svg")}a.maplibregl-ctrl-logo.maplibregl-compact{width:14px}@media (forced-colors: active){a.maplibregl-ctrl-logo{@svg-load ctrl-logo-white url(svg/maplibregl-ctrl-logo.svg){#outline {opacity: 1;} #fill {opacity: 1;}}background-color:transparent;background-image:svg-inline(ctrl-logo-white)}}@media (forced-colors: active) and (prefers-color-scheme: light){a.maplibregl-ctrl-logo{@svg-load ctrl-logo-black url(svg/maplibregl-ctrl-logo.svg){#outline {opacity: 1; fill: #fff; stroke: #fff;} #fill {opacity: 1; fill: #000;}}background-image:svg-inline(ctrl-logo-black)}}.maplibregl-ctrl.maplibregl-ctrl-attrib{padding:0 5px;background-color:#ffffff80;margin:0}@media screen{.maplibregl-ctrl-attrib.maplibregl-compact{min-height:20px;padding:2px 24px 2px 0;margin:10px;position:relative;background-color:#fff;color:#000;border-radius:12px;box-sizing:content-box}.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 8px 2px 28px;border-radius:12px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{display:none;cursor:pointer;position:absolute;background-image:svg-load("svg/maplibregl-ctrl-attrib.svg");background-color:#ffffff80;width:24px;height:24px;box-sizing:border-box;border-radius:12px;outline:none;top:0;right:0;border:0}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{-webkit-appearance:none;appearance:none;list-style:none}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button{left:0}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{background-color:#0000000d}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{top:0;right:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{top:0;left:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (forced-colors: active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:svg-load("svg/maplibregl-ctrl-attrib.svg",fill=#fff)}}@media screen and (forced-colors: active) and (prefers-color-scheme: light){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:svg-load("svg/maplibregl-ctrl-attrib.svg")}}.maplibregl-ctrl-attrib a{color:#000000bf;text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{background-color:#ffffffbf;font-size:10px;border-width:medium 2px 2px;border-style:none solid solid;border-color:#333;padding:0 5px;color:#333;box-sizing:border-box}.maplibregl-popup{position:absolute;top:0;left:0;display:flex;will-change:transform;pointer-events:none}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{flex-direction:column-reverse}.maplibregl-popup-anchor-left{flex-direction:row}.maplibregl-popup-anchor-right{flex-direction:row-reverse}.maplibregl-popup-tip{width:0;height:0;border:10px solid transparent;z-index:1}.maplibregl-popup-anchor-top .maplibregl-popup-tip{align-self:center;border-top:none;border-bottom-color:#fff}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-start;border-top:none;border-left:none;border-bottom-color:#fff}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-end;border-top:none;border-right:none;border-bottom-color:#fff}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.maplibregl-popup-anchor-left .maplibregl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.maplibregl-popup-anchor-right .maplibregl-popup-tip{align-self:center;border-right:none;border-left-color:#fff}.maplibregl-popup-close-button{position:absolute;right:0;top:0;border:0;border-radius:0 3px 0 0;cursor:pointer;background-color:transparent}.maplibregl-popup-close-button:hover{background-color:#0000000d}.maplibregl-popup-content{position:relative;background:#fff;border-radius:3px;box-shadow:0 1px 2px #0000001a;padding:15px 10px;pointer-events:auto}.maplibregl-popup-anchor-top-left .maplibregl-popup-content{border-top-left-radius:0}.maplibregl-popup-anchor-top-right .maplibregl-popup-content{border-top-right-radius:0}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content{border-bottom-left-radius:0}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content{border-bottom-right-radius:0}.maplibregl-popup-track-pointer{display:none}.maplibregl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{position:absolute;top:0;left:0;will-change:transform;transition:opacity .2s}.maplibregl-user-location-dot{background-color:#1da1f2;width:15px;height:15px;border-radius:50%}.maplibregl-user-location-dot:before{background-color:#1da1f2;content:"";width:15px;height:15px;border-radius:50%;position:absolute;animation:maplibregl-user-location-dot-pulse 2s infinite}.maplibregl-user-location-dot:after{border-radius:50%;border:2px solid #fff;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px;box-sizing:border-box;box-shadow:0 0 3px #00000059}@keyframes maplibregl-user-location-dot-pulse{0%{transform:scale(1);opacity:1}70%{transform:scale(3);opacity:0}to{transform:scale(1);opacity:0}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;width:1px;height:1px;border-radius:100%}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{position:absolute;top:0;left:0;width:0;height:0;background:#fff;border:2px dotted #202020;opacity:.5}.maplibregl-cooperative-gesture-screen{background:#0006;position:absolute;top:0;right:0;bottom:0;left:0;display:flex;justify-content:center;align-items:center;color:#fff;padding:1rem;font-size:1.4em;line-height:1.2;opacity:0;pointer-events:none;transition:opacity 1s ease 1s;z-index:99999}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;transition:opacity .05s}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media (hover: none),(pointer: coarse){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{position:fixed!important;width:100%!important;height:100%!important;top:0!important;left:0!important;z-index:99999}:root{--pin-shadow-hover-scale: .9;--pin-shadow-width: 12px;--pin-shadow-height: 5px;--pin-shadow-opacity: .35;--pin-drop-animation-duration-ms: .25s}@keyframes drop-pin{0%{transform:translateY(-200%)}to{transform:translateY(0)}}@keyframes pin-shadow{0%{transform:scale(var(--pin-shadow-hover-scale))}to{transform:scale(1)}}.mappedin-dropped-pin-wrapper{position:relative;width:fit-content;height:fit-content;width:36px;height:42px}.mappedin-dropped-pin-wrapper svg{position:absolute;left:calc(50% - var(--pin-shadow-width));animation:drop-pin var(--pin-drop-animation-duration-ms) ease-in}.mappedin-dropped-pin-wrapper>.pin-shadow{position:absolute;left:calc(50% - var(--pin-shadow-width) / 2);bottom:0;height:var(--pin-shadow-height);width:var(--pin-shadow-width);border-radius:100%;opacity:var(--pin-shadow-opacity);animation:pin-shadow .25s ease-in}@keyframes bounce{0%{transform:translateY(-10px);opacity:0}12.5%{transform:translateY(0);opacity:1}25%{transform:translateY(0)}37.5%{transform:translateY(-10px)}50%{transform:translateY(0)}62.5%{transform:translateY(-10px)}75%{transform:translateY(0)}87.5%{transform:translateY(-10px)}to{transform:translateY(0)}}.mappedin-connection-marker{position:relative;display:flex}.mappedin-connection-marker .bouncey{animation:bounce 2.5s linear}.mappedin-connection-marker .arrow--down{transform:rotate(180deg)}.mappedin-connection-marker .connection-circle{display:flex;box-sizing:border-box;justify-content:center;align-items:center;border-radius:50%;border:2px solid white;box-shadow:0 2px 8px #00000026;background:#595959}.mappedin-annotation-marker{--mappedin-annotation-border-radius: 5px;--mappedin-annotation-border-width: 2px;--mappedin-annotation-background-color: #ffffff;--mappedin-annotation-scale: .7;position:relative;box-sizing:border-box;border-radius:var(--mappedin-annotation-border-radius);border:var(--mappedin-annotation-border-width) solid var(--mappedin-annotation-background-color);transform:scale(var(--mappedin-annotation-scale)) translateY(0);box-shadow:0 2px 8px #00000040}.mappedin-annotation-marker img{position:absolute;image-rendering:crisp-edges;top:0;object-fit:contain;border-radius:calc(var(--mappedin-annotation-border-radius) - var(--mappedin-annotation-border-width))}.mappedin-js-inspector .list-items{max-height:600px;overflow-y:scroll;scroll-behavior:smooth}.mappedin-js-inspector .children:focus{border:1px solid blue}.mappedin-js-inspector #interactionPanel{position:absolute;right:0}.mappedin-js-inspector #mainPanel{position:absolute;left:0}.mappedin-js-inspector .title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b as Ee,n as je,o as De,p as Re,q as Ve}from"./chunk-DZR5BIFS.js";import{q as Le}from"./chunk-VNMMMLDZ.js";import"./chunk-MASF4ZFZ.js";import{a as F}from"./chunk-NXEXDQWS.js";import{a as y,b as G,f as Mt,h as Lt,i as q,j as Ae,k as ae,l as Fe,m as Me}from"./chunk-5W2UDR4H.js";var zt=Mt((P,L)=>{F();var $t=200,rt="__lodash_hash_undefined__",Gt=800,qt=16,ot=9007199254740991,at="[object Arguments]",Jt="[object Array]",Ht="[object AsyncFunction]",Kt="[object Boolean]",Qt="[object Date]",Yt="[object Error]",ct="[object Function]",Zt="[object GeneratorFunction]",Xt="[object Map]",en="[object Number]",tn="[object Null]",ut="[object Object]",nn="[object Proxy]",sn="[object RegExp]",rn="[object Set]",on="[object String]",an="[object Undefined]",cn="[object WeakMap]",un="[object ArrayBuffer]",ln="[object DataView]",dn="[object Float32Array]",hn="[object Float64Array]",fn="[object Int8Array]",pn="[object Int16Array]",gn="[object Int32Array]",mn="[object Uint8Array]",_n="[object Uint8ClampedArray]",yn="[object Uint16Array]",bn="[object Uint32Array]",wn=/[\\^$.*+?()[\]{}|]/g,Sn=/^\[object .+?Constructor\]$/,vn=/^(?:0|[1-9]\d*)$/,_={};_[dn]=_[hn]=_[fn]=_[pn]=_[gn]=_[mn]=_[_n]=_[yn]=_[bn]=!0;_[at]=_[Jt]=_[un]=_[Kt]=_[ln]=_[Qt]=_[Yt]=_[ct]=_[Xt]=_[en]=_[ut]=_[sn]=_[rn]=_[on]=_[cn]=!1;var lt=typeof global=="object"&&global&&global.Object===Object&&global,xn=typeof self=="object"&&self&&self.Object===Object&&self,k=lt||xn||Function("return this")(),dt=typeof P=="object"&&P&&!P.nodeType&&P,B=dt&&typeof L=="object"&&L&&!L.nodeType&&L,ht=B&&B.exports===dt,_e=ht&<.process,Qe=function(){try{var t=B&&B.require&&B.require("util").types;return t||_e&&_e.binding&&_e.binding("util")}catch(e){}}(),Ye=Qe&&Qe.isTypedArray;function ft(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function In(t,e){for(var n=-1,i=Array(t);++n<t;)i[n]=e(n);return i}function Tn(t){return function(e){return t(e)}}function zn(t,e){return t==null?void 0:t[e]}function On(t,e){return function(n){return t(e(n))}}var Cn=Array.prototype,An=Function.prototype,Z=Object.prototype,ye=k["__core-js_shared__"],X=An.toString,I=Z.hasOwnProperty,Ze=function(){var t=/[^.]+$/.exec(ye&&ye.keys&&ye.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),pt=Z.toString,Fn=X.call(Object),Mn=RegExp("^"+X.call(I).replace(wn,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Q=ht?k.Buffer:void 0,Xe=k.Symbol,et=k.Uint8Array,tt=Q?Q.allocUnsafe:void 0,gt=On(Object.getPrototypeOf,Object),nt=Object.create,Ln=Z.propertyIsEnumerable,En=Cn.splice,C=Xe?Xe.toStringTag:void 0,Y=function(){try{var t=Te(Object,"defineProperty");return t({},"",{}),t}catch(e){}}(),jn=Q?Q.isBuffer:void 0,it=Math.max,Dn=Date.now,mt=Te(k,"Map"),N=Te(Object,"create"),Rn=function(){function t(){}return function(e){if(!x(e))return{};if(nt)return nt(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();function A(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}function Vn(){this.__data__=N?N(null):{},this.size=0}function Pn(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}function Bn(t){var e=this.__data__;if(N){var n=e[t];return n===rt?void 0:n}return I.call(e,t)?e[t]:void 0}function Nn(t){var e=this.__data__;return N?e[t]!==void 0:I.call(e,t)}function kn(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=N&&e===void 0?rt:e,this}A.prototype.clear=Vn;A.prototype.delete=Pn;A.prototype.get=Bn;A.prototype.has=Nn;A.prototype.set=kn;function T(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}function Wn(){this.__data__=[],this.size=0}function Un(t){var e=this.__data__,n=ee(e,t);if(n<0)return!1;var i=e.length-1;return n==i?e.pop():En.call(e,n,1),--this.size,!0}function $n(t){var e=this.__data__,n=ee(e,t);return n<0?void 0:e[n][1]}function Gn(t){return ee(this.__data__,t)>-1}function qn(t,e){var n=this.__data__,i=ee(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this}T.prototype.clear=Wn;T.prototype.delete=Un;T.prototype.get=$n;T.prototype.has=Gn;T.prototype.set=qn;function E(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}function Jn(){this.size=0,this.__data__={hash:new A,map:new(mt||T),string:new A}}function Hn(t){var e=ne(this,t).delete(t);return this.size-=e?1:0,e}function Kn(t){return ne(this,t).get(t)}function Qn(t){return ne(this,t).has(t)}function Yn(t,e){var n=ne(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this}E.prototype.clear=Jn;E.prototype.delete=Hn;E.prototype.get=Kn;E.prototype.has=Qn;E.prototype.set=Yn;function j(t){var e=this.__data__=new T(t);this.size=e.size}function Zn(){this.__data__=new T,this.size=0}function Xn(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}function ei(t){return this.__data__.get(t)}function ti(t){return this.__data__.has(t)}function ni(t,e){var n=this.__data__;if(n instanceof T){var i=n.__data__;if(!mt||i.length<$t-1)return i.push([t,e]),this.size=++n.size,this;n=this.__data__=new E(i)}return n.set(t,e),this.size=n.size,this}j.prototype.clear=Zn;j.prototype.delete=Xn;j.prototype.get=ei;j.prototype.has=ti;j.prototype.set=ni;function ii(t,e){var n=ve(t),i=!n&&Se(t),s=!n&&!i&&St(t),r=!n&&!i&&!s&&xt(t),o=n||i||s||r,a=o?In(t.length,String):[],c=a.length;for(var u in t)(e||I.call(t,u))&&!(o&&(u=="length"||s&&(u=="offset"||u=="parent")||r&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||bt(u,c)))&&a.push(u);return a}function be(t,e,n){(n!==void 0&&!ie(t[e],n)||n===void 0&&!(e in t))&&xe(t,e,n)}function si(t,e,n){var i=t[e];(!(I.call(t,e)&&ie(i,n))||n===void 0&&!(e in t))&&xe(t,e,n)}function ee(t,e){for(var n=t.length;n--;)if(ie(t[n][0],e))return n;return-1}function xe(t,e,n){e=="__proto__"&&Y?Y(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}var ri=_i();function te(t){return t==null?t===void 0?an:tn:C&&C in Object(t)?yi(t):Ii(t)}function st(t){return W(t)&&te(t)==at}function oi(t){if(!x(t)||vi(t))return!1;var e=Oe(t)?Mn:Sn;return e.test(Ci(t))}function ai(t){return W(t)&&vt(t.length)&&!!_[te(t)]}function ci(t){if(!x(t))return xi(t);var e=wt(t),n=[];for(var i in t)i=="constructor"&&(e||!I.call(t,i))||n.push(i);return n}function Ie(t,e,n,i,s){t!==e&&ri(e,function(r,o){if(s||(s=new j),x(r))ui(t,e,o,n,Ie,i,s);else{var a=i?i(we(t,o),r,o+"",t,e,s):void 0;a===void 0&&(a=r),be(t,o,a)}},It)}function ui(t,e,n,i,s,r,o){var a=we(t,n),c=we(e,n),u=o.get(c);if(u){be(t,n,u);return}var l=r?r(a,c,n+"",t,e,o):void 0,h=l===void 0;if(h){var d=ve(c),f=!d&&St(c),g=!d&&!f&&xt(c);l=c,d||f||g?ve(a)?l=a:Ai(a)?l=pi(a):f?(h=!1,l=di(c,!0)):g?(h=!1,l=fi(c,!0)):l=[]:Fi(c)||Se(c)?(l=a,Se(a)?l=Mi(a):(!x(a)||Oe(a))&&(l=bi(c))):h=!1}h&&(o.set(c,l),s(l,c,i,r,o),o.delete(c)),be(t,n,l)}function _t(t,e){return zi(Ti(t,e,Tt),t+"")}var li=Y?function(t,e){return Y(t,"toString",{configurable:!0,enumerable:!1,value:ji(e),writable:!0})}:Tt;function di(t,e){if(e)return t.slice();var n=t.length,i=tt?tt(n):new t.constructor(n);return t.copy(i),i}function hi(t){var e=new t.constructor(t.byteLength);return new et(e).set(new et(t)),e}function fi(t,e){var n=e?hi(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function pi(t,e){var n=-1,i=t.length;for(e||(e=Array(i));++n<i;)e[n]=t[n];return e}function gi(t,e,n,i){var s=!n;n||(n={});for(var r=-1,o=e.length;++r<o;){var a=e[r],c=i?i(n[a],t[a],a,n,t):void 0;c===void 0&&(c=t[a]),s?xe(n,a,c):si(n,a,c)}return n}function mi(t){return _t(function(e,n){var i=-1,s=n.length,r=s>1?n[s-1]:void 0,o=s>2?n[2]:void 0;for(r=t.length>3&&typeof r=="function"?(s--,r):void 0,o&&wi(n[0],n[1],o)&&(r=s<3?void 0:r,s=1),e=Object(e);++i<s;){var a=n[i];a&&t(e,a,i,r)}return e})}function _i(t){return function(e,n,i){for(var s=-1,r=Object(e),o=i(e),a=o.length;a--;){var c=o[t?a:++s];if(n(r[c],c,r)===!1)break}return e}}function yt(t,e,n,i,s,r){return x(t)&&x(e)&&(r.set(e,t),Ie(t,e,void 0,yt,r),r.delete(e)),t}function ne(t,e){var n=t.__data__;return Si(e)?n[typeof e=="string"?"string":"hash"]:n.map}function Te(t,e){var n=zn(t,e);return oi(n)?n:void 0}function yi(t){var e=I.call(t,C),n=t[C];try{t[C]=void 0;var i=!0}catch(r){}var s=pt.call(t);return i&&(e?t[C]=n:delete t[C]),s}function bi(t){return typeof t.constructor=="function"&&!wt(t)?Rn(gt(t)):{}}function bt(t,e){var n=typeof t;return e=e==null?ot:e,!!e&&(n=="number"||n!="symbol"&&vn.test(t))&&t>-1&&t%1==0&&t<e}function wi(t,e,n){if(!x(n))return!1;var i=typeof e;return(i=="number"?ze(n)&&bt(e,n.length):i=="string"&&e in n)?ie(n[e],t):!1}function Si(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function vi(t){return!!Ze&&Ze in t}function wt(t){var e=t&&t.constructor,n=typeof e=="function"&&e.prototype||Z;return t===n}function xi(t){var e=[];if(t!=null)for(var n in Object(t))e.push(n);return e}function Ii(t){return pt.call(t)}function Ti(t,e,n){return e=it(e===void 0?t.length-1:e,0),function(){for(var i=arguments,s=-1,r=it(i.length-e,0),o=Array(r);++s<r;)o[s]=i[e+s];s=-1;for(var a=Array(e+1);++s<e;)a[s]=i[s];return a[e]=n(o),ft(t,this,a)}}function we(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}var zi=Oi(li);function Oi(t){var e=0,n=0;return function(){var i=Dn(),s=qt-(i-n);if(n=i,s>0){if(++e>=Gt)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}function Ci(t){if(t!=null){try{return X.call(t)}catch(e){}try{return t+""}catch(e){}}return""}function ie(t,e){return t===e||t!==t&&e!==e}var Se=st(function(){return arguments}())?st:function(t){return W(t)&&I.call(t,"callee")&&!Ln.call(t,"callee")},ve=Array.isArray;function ze(t){return t!=null&&vt(t.length)&&!Oe(t)}function Ai(t){return W(t)&&ze(t)}var St=jn||Di;function Oe(t){if(!x(t))return!1;var e=te(t);return e==ct||e==Zt||e==Ht||e==nn}function vt(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=ot}function x(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}function W(t){return t!=null&&typeof t=="object"}function Fi(t){if(!W(t)||te(t)!=ut)return!1;var e=gt(t);if(e===null)return!0;var n=I.call(e,"constructor")&&e.constructor;return typeof n=="function"&&n instanceof n&&X.call(n)==Fn}var xt=Ye?Tn(Ye):ai;function Mi(t){return gi(t,It(t))}var Li=_t(function(t){return t.push(void 0,yt),ft(Ei,void 0,t)});function It(t){return ze(t)?ii(t,!0):ci(t)}var Ei=mi(function(t,e,n,i){Ie(t,e,n,i)});function ji(t){return function(){return t}}function Tt(t){return t}function Di(){return!1}L.exports=Li});F();F();var Et="ENTRIES",Ue="KEYS",$e="VALUES",w="",R=class{constructor(e,n){let i=e._tree,s=Array.from(i.keys());this.set=e,this._type=n,this._path=s.length>0?[{node:i,keys:s}]:[]}next(){let e=this.dive();return this.backtrack(),e}dive(){if(this._path.length===0)return{done:!0,value:void 0};let{node:e,keys:n}=M(this._path);if(M(n)===w)return{done:!1,value:this.result()};let i=e.get(M(n));return this._path.push({node:i,keys:Array.from(i.keys())}),this.dive()}backtrack(){if(this._path.length===0)return;let e=M(this._path).keys;e.pop(),!(e.length>0)&&(this._path.pop(),this.backtrack())}key(){return this.set._prefix+this._path.map(({keys:e})=>M(e)).filter(e=>e!==w).join("")}value(){return M(this._path).node.get(w)}result(){switch(this._type){case $e:return this.value();case Ue:return this.key();default:return[this.key(),this.value()]}}[Symbol.iterator](){return this}},M=t=>t[t.length-1],jt=(t,e,n)=>{let i=new Map;if(e===void 0)return i;let s=e.length+1,r=s+n,o=new Uint8Array(r*s).fill(n+1);for(let a=0;a<s;++a)o[a]=a;for(let a=1;a<r;++a)o[a*s]=a;return Ge(t,e,n,i,o,1,s,""),i},Ge=(t,e,n,i,s,r,o,a)=>{let c=r*o;e:for(let u of t.keys())if(u===w){let l=s[c-1];l<=n&&i.set(a,[t.get(u),l])}else{let l=r;for(let h=0;h<u.length;++h,++l){let d=u[h],f=o*l,g=f-o,m=s[f],p=Math.max(0,l-n-1),S=Math.min(o-1,l+n);for(let v=p;v<S;++v){let re=d!==e[v],oe=s[g+v]+ +re,$=s[g+v+1]+1,z=s[f+v]+1,D=s[f+v+1]=Math.min(oe,$,z);D<m&&(m=D)}if(m>n)continue e}Ge(t.get(u),e,n,i,s,l,o,a+u)}},V=class t{constructor(e=new Map,n=""){this._size=void 0,this._tree=e,this._prefix=n}atPrefix(e){if(!e.startsWith(this._prefix))throw new Error("Mismatched prefix");let[n,i]=K(this._tree,e.slice(this._prefix.length));if(n===void 0){let[s,r]=ge(i);for(let o of s.keys())if(o!==w&&o.startsWith(r)){let a=new Map;return a.set(o.slice(r.length),s.get(o)),new t(a,e)}}return new t(n,e)}clear(){this._size=void 0,this._tree.clear()}delete(e){return this._size=void 0,Dt(this._tree,e)}entries(){return new R(this,Et)}forEach(e){for(let[n,i]of this)e(n,i,this)}fuzzyGet(e,n){return jt(this._tree,e,n)}get(e){let n=he(this._tree,e);return n!==void 0?n.get(w):void 0}has(e){let n=he(this._tree,e);return n!==void 0&&n.has(w)}keys(){return new R(this,Ue)}set(e,n){if(typeof e!="string")throw new Error("key must be a string");return this._size=void 0,ce(this._tree,e).set(w,n),this}get size(){if(this._size)return this._size;this._size=0;let e=this.entries();for(;!e.next().done;)this._size+=1;return this._size}update(e,n){if(typeof e!="string")throw new Error("key must be a string");this._size=void 0;let i=ce(this._tree,e);return i.set(w,n(i.get(w))),this}fetch(e,n){if(typeof e!="string")throw new Error("key must be a string");this._size=void 0;let i=ce(this._tree,e),s=i.get(w);return s===void 0&&i.set(w,s=n()),s}values(){return new R(this,$e)}[Symbol.iterator](){return this.entries()}static from(e){let n=new t;for(let[i,s]of e)n.set(i,s);return n}static fromObject(e){return t.from(Object.entries(e))}},K=(t,e,n=[])=>{if(e.length===0||t==null)return[t,n];for(let i of t.keys())if(i!==w&&e.startsWith(i))return n.push([t,i]),K(t.get(i),e.slice(i.length),n);return n.push([t,e]),K(void 0,"",n)},he=(t,e)=>{if(e.length===0||t==null)return t;for(let n of t.keys())if(n!==w&&e.startsWith(n))return he(t.get(n),e.slice(n.length))},ce=(t,e)=>{let n=e.length;e:for(let i=0;t&&i<n;){for(let r of t.keys())if(r!==w&&e[i]===r[0]){let o=Math.min(n-i,r.length),a=1;for(;a<o&&e[i+a]===r[a];)++a;let c=t.get(r);if(a===r.length)t=c;else{let u=new Map;u.set(r.slice(a),c),t.set(e.slice(i,i+a),u),t.delete(r),t=u}i+=a;continue e}let s=new Map;return t.set(e.slice(i),s),s}return t},Dt=(t,e)=>{let[n,i]=K(t,e);if(n!==void 0){if(n.delete(w),n.size===0)qe(i);else if(n.size===1){let[s,r]=n.entries().next().value;Je(i,s,r)}}},qe=t=>{if(t.length===0)return;let[e,n]=ge(t);if(e.delete(n),e.size===0)qe(t.slice(0,-1));else if(e.size===1){let[i,s]=e.entries().next().value;i!==w&&Je(t.slice(0,-1),i,s)}},Je=(t,e,n)=>{if(t.length===0)return;let[i,s]=ge(t);i.set(s+e,n),i.delete(s)},ge=t=>t[t.length-1],me="or",He="and",Rt="and_not",O=class t{constructor(e){if((e==null?void 0:e.fields)==null)throw new Error('MiniSearch: option "fields" must be provided');let n=e.autoVacuum==null||e.autoVacuum===!0?de:e.autoVacuum;this._options=G(y(y({},le),e),{autoVacuum:n,searchOptions:y(y({},Pe),e.searchOptions||{}),autoSuggestOptions:y(y({},kt),e.autoSuggestOptions||{})}),this._index=new V,this._documentCount=0,this._documentIds=new Map,this._idToShortId=new Map,this._fieldIds={},this._fieldLength=new Map,this._avgFieldLength=[],this._nextId=0,this._storedFields=new Map,this._dirtCount=0,this._currentVacuum=null,this._enqueuedVacuum=null,this._enqueuedVacuumConditions=pe,this.addFields(this._options.fields)}add(e){let{extractField:n,stringifyField:i,tokenize:s,processTerm:r,fields:o,idField:a}=this._options,c=n(e,a);if(c==null)throw new Error('MiniSearch: document does not have ID field "'.concat(a,'"'));if(this._idToShortId.has(c))throw new Error("MiniSearch: duplicate ID ".concat(c));let u=this.addDocumentId(c);this.saveStoredFields(u,e);for(let l of o){let h=n(e,l);if(h==null)continue;let d=s(i(h,l),l),f=this._fieldIds[l],g=new Set(d).size;this.addFieldLength(u,f,this._documentCount-1,g);for(let m of d){let p=r(m,l);if(Array.isArray(p))for(let S of p)this.addTerm(f,u,S);else p&&this.addTerm(f,u,p)}}}addAll(e){for(let n of e)this.add(n)}addAllAsync(e,n={}){let{chunkSize:i=10}=n,s={chunk:[],promise:Promise.resolve()},{chunk:r,promise:o}=e.reduce(({chunk:a,promise:c},u,l)=>(a.push(u),(l+1)%i===0?{chunk:[],promise:c.then(()=>new Promise(h=>setTimeout(h,0))).then(()=>this.addAll(a))}:{chunk:a,promise:c}),s);return o.then(()=>this.addAll(r))}remove(e){let{tokenize:n,processTerm:i,extractField:s,stringifyField:r,fields:o,idField:a}=this._options,c=s(e,a);if(c==null)throw new Error('MiniSearch: document does not have ID field "'.concat(a,'"'));let u=this._idToShortId.get(c);if(u==null)throw new Error("MiniSearch: cannot remove document with ID ".concat(c,": it is not in the index"));for(let l of o){let h=s(e,l);if(h==null)continue;let d=n(r(h,l),l),f=this._fieldIds[l],g=new Set(d).size;this.removeFieldLength(u,f,this._documentCount,g);for(let m of d){let p=i(m,l);if(Array.isArray(p))for(let S of p)this.removeTerm(f,u,S);else p&&this.removeTerm(f,u,p)}}this._storedFields.delete(u),this._documentIds.delete(u),this._idToShortId.delete(c),this._fieldLength.delete(u),this._documentCount-=1}removeAll(e){if(e)for(let n of e)this.remove(n);else{if(arguments.length>0)throw new Error("Expected documents to be present. Omit the argument to remove all documents.");this._index=new V,this._documentCount=0,this._documentIds=new Map,this._idToShortId=new Map,this._fieldLength=new Map,this._avgFieldLength=[],this._storedFields=new Map,this._nextId=0}}discard(e){let n=this._idToShortId.get(e);if(n==null)throw new Error("MiniSearch: cannot discard document with ID ".concat(e,": it is not in the index"));this._idToShortId.delete(e),this._documentIds.delete(n),this._storedFields.delete(n),(this._fieldLength.get(n)||[]).forEach((i,s)=>{this.removeFieldLength(n,s,this._documentCount,i)}),this._fieldLength.delete(n),this._documentCount-=1,this._dirtCount+=1,this.maybeAutoVacuum()}maybeAutoVacuum(){if(this._options.autoVacuum===!1)return;let{minDirtFactor:e,minDirtCount:n,batchSize:i,batchWait:s}=this._options.autoVacuum;this.conditionalVacuum({batchSize:i,batchWait:s},{minDirtCount:n,minDirtFactor:e})}discardAll(e){let n=this._options.autoVacuum;try{this._options.autoVacuum=!1;for(let i of e)this.discard(i)}finally{this._options.autoVacuum=n}this.maybeAutoVacuum()}replace(e){let{idField:n,extractField:i}=this._options,s=i(e,n);this.discard(s),this.add(e)}vacuum(e={}){return this.conditionalVacuum(e)}conditionalVacuum(e,n){return this._currentVacuum?(this._enqueuedVacuumConditions=this._enqueuedVacuumConditions&&n,this._enqueuedVacuum!=null?this._enqueuedVacuum:(this._enqueuedVacuum=this._currentVacuum.then(()=>{let i=this._enqueuedVacuumConditions;return this._enqueuedVacuumConditions=pe,this.performVacuuming(e,i)}),this._enqueuedVacuum)):this.vacuumConditionsMet(n)===!1?Promise.resolve():(this._currentVacuum=this.performVacuuming(e),this._currentVacuum)}async performVacuuming(e,n){let i=this._dirtCount;if(this.vacuumConditionsMet(n)){let s=e.batchSize||fe.batchSize,r=e.batchWait||fe.batchWait,o=1;for(let[a,c]of this._index){for(let[u,l]of c)for(let[h]of l)this._documentIds.has(h)||(l.size<=1?c.delete(u):l.delete(h));this._index.get(a).size===0&&this._index.delete(a),o%s===0&&await new Promise(u=>setTimeout(u,r)),o+=1}this._dirtCount-=i}await null,this._currentVacuum=this._enqueuedVacuum,this._enqueuedVacuum=null}vacuumConditionsMet(e){if(e==null)return!0;let{minDirtCount:n,minDirtFactor:i}=e;return n=n||de.minDirtCount,i=i||de.minDirtFactor,this.dirtCount>=n&&this.dirtFactor>=i}get isVacuuming(){return this._currentVacuum!=null}get dirtCount(){return this._dirtCount}get dirtFactor(){return this._dirtCount/(1+this._documentCount+this._dirtCount)}has(e){return this._idToShortId.has(e)}getStoredFields(e){let n=this._idToShortId.get(e);if(n!=null)return this._storedFields.get(n)}search(e,n={}){let{searchOptions:i}=this._options,s=y(y({},i),n),r=this.executeQuery(e,n),o=[];for(let[a,{score:c,terms:u,match:l}]of r){let h=u.length||1,d={id:this._documentIds.get(a),score:c*h,terms:Object.keys(l),queryTerms:u,match:l};Object.assign(d,this._storedFields.get(a)),(s.filter==null||s.filter(d))&&o.push(d)}return e===t.wildcard&&s.boostDocument==null||o.sort(Ne),o}autoSuggest(e,n={}){n=y(y({},this._options.autoSuggestOptions),n);let i=new Map;for(let{score:r,terms:o}of this.search(e,n)){let a=o.join(" "),c=i.get(a);c!=null?(c.score+=r,c.count+=1):i.set(a,{score:r,terms:o,count:1})}let s=[];for(let[r,{score:o,terms:a,count:c}]of i)s.push({suggestion:r,terms:a,score:o/c});return s.sort(Ne),s}get documentCount(){return this._documentCount}get termCount(){return this._index.size}static loadJSON(e,n){if(n==null)throw new Error("MiniSearch: loadJSON should be given the same options used when serializing the index");return this.loadJS(JSON.parse(e),n)}static async loadJSONAsync(e,n){if(n==null)throw new Error("MiniSearch: loadJSON should be given the same options used when serializing the index");return this.loadJSAsync(JSON.parse(e),n)}static getDefault(e){if(le.hasOwnProperty(e))return ue(le,e);throw new Error('MiniSearch: unknown option "'.concat(e,'"'))}static loadJS(e,n){let{index:i,documentIds:s,fieldLength:r,storedFields:o,serializationVersion:a}=e,c=this.instantiateMiniSearch(e,n);c._documentIds=J(s),c._fieldLength=J(r),c._storedFields=J(o);for(let[u,l]of c._documentIds)c._idToShortId.set(l,u);for(let[u,l]of i){let h=new Map;for(let d of Object.keys(l)){let f=l[d];a===1&&(f=f.ds),h.set(parseInt(d,10),J(f))}c._index.set(u,h)}return c}static async loadJSAsync(e,n){let{index:i,documentIds:s,fieldLength:r,storedFields:o,serializationVersion:a}=e,c=this.instantiateMiniSearch(e,n);c._documentIds=await H(s),c._fieldLength=await H(r),c._storedFields=await H(o);for(let[l,h]of c._documentIds)c._idToShortId.set(h,l);let u=0;for(let[l,h]of i){let d=new Map;for(let f of Object.keys(h)){let g=h[f];a===1&&(g=g.ds),d.set(parseInt(f,10),await H(g))}++u%1e3===0&&await Ke(0),c._index.set(l,d)}return c}static instantiateMiniSearch(e,n){let{documentCount:i,nextId:s,fieldIds:r,averageFieldLength:o,dirtCount:a,serializationVersion:c}=e;if(c!==1&&c!==2)throw new Error("MiniSearch: cannot deserialize an index created with an incompatible version");let u=new t(n);return u._documentCount=i,u._nextId=s,u._idToShortId=new Map,u._fieldIds=r,u._avgFieldLength=o,u._dirtCount=a||0,u._index=new V,u}executeQuery(e,n={}){if(e===t.wildcard)return this.executeWildcardQuery(n);if(typeof e!="string"){let d=G(y(y({},n),e),{queries:void 0}),f=e.queries.map(g=>this.executeQuery(g,d));return this.combineResults(f,d.combineWith)}let{tokenize:i,processTerm:s,searchOptions:r}=this._options,o=y(y({tokenize:i,processTerm:s},r),n),{tokenize:a,processTerm:c}=o,h=a(e).flatMap(d=>c(d)).filter(d=>!!d).map(Nt(o)).map(d=>this.executeQuerySpec(d,o));return this.combineResults(h,o.combineWith)}executeQuerySpec(e,n){let i=y(y({},this._options.searchOptions),n),s=(i.fields||this._options.fields).reduce((m,p)=>G(y({},m),{[p]:ue(i.boost,p)||1}),{}),{boostDocument:r,weights:o,maxFuzzy:a,bm25:c}=i,{fuzzy:u,prefix:l}=y(y({},Pe.weights),o),h=this._index.get(e.term),d=this.termResults(e.term,e.term,1,e.termBoost,h,s,r,c),f,g;if(e.prefix&&(f=this._index.atPrefix(e.term)),e.fuzzy){let m=e.fuzzy===!0?.2:e.fuzzy,p=m<1?Math.min(a,Math.round(e.term.length*m)):m;p&&(g=this._index.fuzzyGet(e.term,p))}if(f)for(let[m,p]of f){let S=m.length-e.term.length;if(!S)continue;g==null||g.delete(m);let v=l*m.length/(m.length+.3*S);this.termResults(e.term,m,v,e.termBoost,p,s,r,c,d)}if(g)for(let m of g.keys()){let[p,S]=g.get(m);if(!S)continue;let v=u*m.length/(m.length+S);this.termResults(e.term,m,v,e.termBoost,p,s,r,c,d)}return d}executeWildcardQuery(e){let n=new Map,i=y(y({},this._options.searchOptions),e);for(let[s,r]of this._documentIds){let o=i.boostDocument?i.boostDocument(r,"",this._storedFields.get(s)):1;n.set(s,{score:o,terms:[],match:{}})}return n}combineResults(e,n=me){if(e.length===0)return new Map;let i=n.toLowerCase(),s=Vt[i];if(!s)throw new Error("Invalid combination operator: ".concat(n));return e.reduce(s)||new Map}toJSON(){let e=[];for(let[n,i]of this._index){let s={};for(let[r,o]of i)s[r]=Object.fromEntries(o);e.push([n,s])}return{documentCount:this._documentCount,nextId:this._nextId,documentIds:Object.fromEntries(this._documentIds),fieldIds:this._fieldIds,fieldLength:Object.fromEntries(this._fieldLength),averageFieldLength:this._avgFieldLength,storedFields:Object.fromEntries(this._storedFields),dirtCount:this._dirtCount,index:e,serializationVersion:2}}termResults(e,n,i,s,r,o,a,c,u=new Map){if(r==null)return u;for(let l of Object.keys(o)){let h=o[l],d=this._fieldIds[l],f=r.get(d);if(f==null)continue;let g=f.size,m=this._avgFieldLength[d];for(let p of f.keys()){if(!this._documentIds.has(p)){this.removeTerm(d,p,n),g-=1;continue}let S=a?a(this._documentIds.get(p),n,this._storedFields.get(p)):1;if(!S)continue;let v=f.get(p),re=this._fieldLength.get(p)[d],oe=Bt(v,g,this._documentCount,re,m,c),$=i*s*h*S*oe,z=u.get(p);if(z){z.score+=$,Wt(z.terms,e);let D=ue(z.match,n);D?D.push(l):z.match[n]=[l]}else u.set(p,{score:$,terms:[e],match:{[n]:[l]}})}}return u}addTerm(e,n,i){let s=this._index.fetch(i,ke),r=s.get(e);if(r==null)r=new Map,r.set(n,1),s.set(e,r);else{let o=r.get(n);r.set(n,(o||0)+1)}}removeTerm(e,n,i){if(!this._index.has(i)){this.warnDocumentChanged(n,e,i);return}let s=this._index.fetch(i,ke),r=s.get(e);r==null||r.get(n)==null?this.warnDocumentChanged(n,e,i):r.get(n)<=1?r.size<=1?s.delete(e):r.delete(n):r.set(n,r.get(n)-1),this._index.get(i).size===0&&this._index.delete(i)}warnDocumentChanged(e,n,i){for(let s of Object.keys(this._fieldIds))if(this._fieldIds[s]===n){this._options.logger("warn","MiniSearch: document with ID ".concat(this._documentIds.get(e),' has changed before removal: term "').concat(i,'" was not present in field "').concat(s,'". Removing a document after it has changed can corrupt the index!'),"version_conflict");return}}addDocumentId(e){let n=this._nextId;return this._idToShortId.set(e,n),this._documentIds.set(n,e),this._documentCount+=1,this._nextId+=1,n}addFields(e){for(let n=0;n<e.length;n++)this._fieldIds[e[n]]=n}addFieldLength(e,n,i,s){let r=this._fieldLength.get(e);r==null&&this._fieldLength.set(e,r=[]),r[n]=s;let a=(this._avgFieldLength[n]||0)*i+s;this._avgFieldLength[n]=a/(i+1)}removeFieldLength(e,n,i,s){if(i===1){this._avgFieldLength[n]=0;return}let r=this._avgFieldLength[n]*i-s;this._avgFieldLength[n]=r/(i-1)}saveStoredFields(e,n){let{storeFields:i,extractField:s}=this._options;if(i==null||i.length===0)return;let r=this._storedFields.get(e);r==null&&this._storedFields.set(e,r={});for(let o of i){let a=s(n,o);a!==void 0&&(r[o]=a)}}};O.wildcard=Symbol("*");var ue=(t,e)=>Object.prototype.hasOwnProperty.call(t,e)?t[e]:void 0,Vt={[me]:(t,e)=>{for(let n of e.keys()){let i=t.get(n);if(i==null)t.set(n,e.get(n));else{let{score:s,terms:r,match:o}=e.get(n);i.score=i.score+s,i.match=Object.assign(i.match,o),Be(i.terms,r)}}return t},[He]:(t,e)=>{let n=new Map;for(let i of e.keys()){let s=t.get(i);if(s==null)continue;let{score:r,terms:o,match:a}=e.get(i);Be(s.terms,o),n.set(i,{score:s.score+r,terms:s.terms,match:Object.assign(s.match,a)})}return n},[Rt]:(t,e)=>{for(let n of e.keys())t.delete(n);return t}},Pt={k:1.2,b:.7,d:.5},Bt=(t,e,n,i,s,r)=>{let{k:o,b:a,d:c}=r;return Math.log(1+(n-e+.5)/(e+.5))*(c+t*(o+1)/(t+o*(1-a+a*i/s)))},Nt=t=>(e,n,i)=>{let s=typeof t.fuzzy=="function"?t.fuzzy(e,n,i):t.fuzzy||!1,r=typeof t.prefix=="function"?t.prefix(e,n,i):t.prefix===!0,o=typeof t.boostTerm=="function"?t.boostTerm(e,n,i):1;return{term:e,fuzzy:s,prefix:r,termBoost:o}},le={idField:"id",extractField:(t,e)=>t[e],stringifyField:(t,e)=>t.toString(),tokenize:t=>t.split(Ut),processTerm:t=>t.toLowerCase(),fields:void 0,searchOptions:void 0,storeFields:[],logger:(t,e)=>{typeof(console==null?void 0:console[t])=="function"&&console[t](e)},autoVacuum:!0},Pe={combineWith:me,prefix:!1,fuzzy:!1,maxFuzzy:6,boost:{},weights:{fuzzy:.45,prefix:.375},bm25:Pt},kt={combineWith:He,prefix:(t,e,n)=>e===n.length-1},fe={batchSize:1e3,batchWait:10},pe={minDirtFactor:.1,minDirtCount:20},de=y(y({},fe),pe),Wt=(t,e)=>{t.includes(e)||t.push(e)},Be=(t,e)=>{for(let n of e)t.includes(n)||t.push(n)},Ne=({score:t},{score:e})=>e-t,ke=()=>new Map,J=t=>{let e=new Map;for(let n of Object.keys(t))e.set(parseInt(n,10),t[n]);return e},H=async t=>{let e=new Map,n=0;for(let i of Object.keys(t))e.set(parseInt(i,10),t[i]),++n%1e3===0&&await Ke(0);return e},Ke=t=>new Promise(e=>setTimeout(e,t)),Ut=new RegExp("[\\n\\r\\p{Z}\\p{P}]+","u");var At=Lt(zt(),1);import{z as b}from"zod";var U,se,Ft,Ot=class{constructor(e){ae(this,se);q(this,"mapData");q(this,"indexes");q(this,"ready");ae(this,U);this.mapData=e,this.indexes=Pi(e),this.ready=this.populate(),Fe(this,U,Le(Me(this,se,Ft).bind(this),2e3))}async populate(){let{places:e,enterpriseLocations:n,enterpriseCategories:i}=this.indexes,s=this.mapData,r=[];return e.removeAll(),r=r.concat([e.addAllAsync(s.getByType("space")),e.addAllAsync(s.getByType("point-of-interest")),e.addAllAsync(s.getByType("object")),e.addAllAsync(s.getByType("connection")),e.addAllAsync(s.getByType("floor")),e.addAllAsync(s.getByType("door")),e.addAllAsync(s.getByType("annotation")),e.addAllAsync(s.getByType("area"))]),n&&(n==null||n.removeAll(),r.push(n.addAllAsync(s.getByType("enterprise-location")))),i&&(i==null||i.removeAll(),r.push(i.addAllAsync(s.getByType("enterprise-category")))),Promise.all(r)}async search(e,n={}){var c,u;await this.ready,Bi.parse(n);let i=(0,At.default)({},n,Vi),s=this.indexes.places.search(e,{fields:Object.keys(i.places.fields).filter(l=>i.places.fields[l])});i.places.limit&&(s=s.slice(0,i.places.limit));let r=(c=this.indexes.enterpriseLocations)==null?void 0:c.search(e,{fields:Object.keys(i.enterpriseLocations.fields).filter(l=>i.enterpriseLocations.fields[l])});r&&i.enterpriseLocations.limit&&(r=r.slice(0,i.enterpriseLocations.limit));let o=(u=this.indexes.enterpriseCategories)==null?void 0:u.search(e,{fields:Object.keys(i.enterpriseCategories.fields).filter(l=>i.enterpriseCategories.fields[l])});o&&i.enterpriseCategories.limit&&(o=o.slice(0,i.enterpriseCategories.limit));let a=Ri(this.mapData,{placesResult:s,locationsResult:r,categoriesResult:o});return Ae(this,U).call(this,e),a}async suggest(e,n={}){await this.ready,Ni.parse(n);let i=[],{places:{enabled:s=!0}={},enterpriseLocations:{enabled:r=!0}={}}=n;return r&&this.indexes.enterpriseLocations&&this.indexes.enterpriseLocations.autoSuggest(e,{fields:["name","tags"],combineWith:"AND",prefix:!0,boost:{name:2,tags:1}}).forEach(o=>i.push(o)),s&&this.indexes.places.autoSuggest(e,{fields:["name"],combineWith:"AND",prefix:!0}).forEach(o=>i.push(o)),i.sort((o,a)=>a.score-o.score),this.mapData.Analytics.capture("$query-suggest",{query:e,suggestions:i.map(o=>o.suggestion)}),i}};U=new WeakMap,se=new WeakSet,Ft=function(e){this.mapData.Analytics.capture("$query-search",{query:e})};function Ri(t,{placesResult:e,locationsResult:n,categoriesResult:i}){let s=e.reduce((a,{id:c,match:u,score:l,__type:h})=>{let d=t.getById(h,c);return d!=null&&!Ee.is(d)&&!je.is(d)&&!De.is(d)&&!Re.is(d)&&!Ve.is(d)&&a.push({type:d.__type,match:u,score:l,item:d}),a},[]),r;if(n){r=[];for(let{id:a,match:c,score:u}of n){let l=t.getById("enterprise-location",a);l&&r.push({type:l.__type,match:c,score:u,item:l})}}let o;if(i){o=[];for(let{id:a,match:c,score:u}of i){let l=t.getById("enterprise-category",a);l&&o.push({type:l.__type,match:c,score:u,item:l})}}return{places:s,enterpriseLocations:r,enterpriseCategories:o}}var Vi={places:{fields:{name:!0,description:!0}},enterpriseCategories:{fields:{name:!0,description:!1,"locations.name":!0}},enterpriseLocations:{fields:{name:!0,tags:!0,description:!0}}};function Ce(t){return t.normalize("NFD").replace(/[\u0300-\u036f|\u2019|\u0027|\']/g,"").toLowerCase()}function Pi(t){let e=new O({fields:["name","description"],storeFields:["id","__type"],searchOptions:{fuzzy:.2,prefix:!0,boost:{name:2},combineWith:"AND"},extractField:(o,a)=>{let c=o[a];return typeof c=="string"?Ce(c):o[a]},processTerm:o=>ki.has(o)?"":o.toLowerCase()}),n=t.getByType("enterprise-location"),i;n&&(i=new O({fields:["name","tags","description"],storeFields:["id","__type"],searchOptions:{combineWith:"OR",prefix:!0,fuzzy:.2,boost:{name:3,tags:2,description:1}},extractField:(o,a)=>Array.isArray(o[a])?o[a].join(" "):typeof o[a]=="string"?Ce(o[a]):o[a]}));let s=t.getByType("enterprise-category"),r;return s&&(r=new O({fields:["name","description","locations.name"],storeFields:["id","__type"],extractField(o,a){return a==="locations.name"?o.locations.reduce((u,l)=>u+" ".concat(Ct," ")+l.name,"")+" ".concat(Ct):typeof o[a]=="string"?Ce(o[a]):o[a]},searchOptions:{combineWith:"OR",prefix:!0,fuzzy:.2,boost:{name:2,"locations.name":2}}})),{enterpriseCategories:r,enterpriseLocations:i,places:e}}var Bi=b.object({places:b.object({fields:b.object({name:b.boolean().optional(),description:b.boolean().optional()}).optional(),limit:b.number().positive().optional()}).optional(),enterpriseCategories:b.object({fields:b.object({name:b.boolean().optional(),description:b.boolean().optional(),"locations.name":b.boolean().optional()}).optional(),limit:b.number().positive().optional()}).optional(),enterpriseLocations:b.object({fields:b.object({name:b.boolean().optional(),tags:b.boolean().optional(),description:b.boolean().optional()}).optional(),limit:b.number().positive().optional()}).optional()}),Ni=b.object({places:b.object({enabled:b.boolean().optional()}).optional(),enterpriseLocations:b.object({enabled:b.boolean().optional()}).optional()}),ki=new Set(["the","an","and","or","of","in","on","at","to","from","with","by","for"]),Ct="";export{Ot as InternalSearch,Ce as removeAccents};
|