From b5bcdae778a4cc8c0293dcd48db46f14c5b84e29 Mon Sep 17 00:00:00 2001 From: Kohei Otsuka Date: Sat, 7 Nov 2026 03:42:47 +0900 Subject: [PATCH 1/2] =?UTF-8?q?fix:=20getMarker()=20=E3=81=8C=E3=83=86?= =?UTF-8?q?=E3=83=B3=E3=83=97=E3=83=AC=E3=83=BC=E3=83=88=E3=82=92=E5=BD=93?= =?UTF-8?q?=E3=81=A6=E3=81=9F=20POI=20=E3=82=92=E8=BF=94=E3=81=99=E3=82=88?= =?UTF-8?q?=E3=81=86=E3=81=AB=E3=81=99=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit マーカーの描画と getMarker が、祖先の poiTemplate・iconTemplate を当てる 同じ 1 つの関数を通るようにした。getMarker は clickMarker の detail と同じ形の 複製を返し、格納している POI には html を焼き付けない。updateMarker は 格納している POI を直接書き換える。 Closes #150 Co-Authored-By: Claude Opus 5.5 --- CHANGELOG.md | 3 + docs/api/maplat-app.ja.md | 2 +- docs/api/maplat-app.md | 2 +- spec/get-marker-template.spec.ts | 115 +++++++++++++++++++++++++ spec/nov26-m4-t9-marker-redraw.spec.ts | 32 +++++++ src/element_contract.ts | 9 +- src/index.ts | 51 +++++++---- src/template_works.ts | 10 +++ 8 files changed, 202 insertions(+), 22 deletions(-) create mode 100644 spec/get-marker-template.spec.ts diff --git a/CHANGELOG.md b/CHANGELOG.md index 0e1b7f7..137d771 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -35,6 +35,9 @@ - `{{ }}` は既定で HTML エスケープする(lodash の `<%= %>` はしなかった)。テンプレートの誤りや存在しない値で地図の描画が止まらなくなった(存在しない値は空文字) - 検出に当たらないまま表示が変わる場合が 1 つだけある: lodash の記法を含まず、`{{ }}`・`{% %}` を文字として書いていたテンプレートは、1.3 から Nunjucks として評価される +### Fixed +- `getMarker(id)` が、マーカーの描画と同じく祖先(POI のレイヤー → 地図 → アプリ)の `poiTemplate`・`iconTemplate` を当てた POI を返すようにした。これまでは格納しているデータをそのまま返していたため、`poiTemplate` で本文を作る POI を `@maplat/ui` の `openMarker()`・マーカー一覧・状態 URL(`om:`)から開くと本文が空になり、地図上のマーカーを押したときだけテンプレートが当たっていた(#150)。戻り値は `clickMarker` の detail と同じ形の複製で、格納している POI そのものではない。POI の書き換えは従来どおり `updateMarker` で行う + ### Security - 状態 URL や `localStorage` から来る地図 ID・層 ID の引き当てを、自分の鍵(`Object.hasOwn`)だけに限った。存在しない ID は、継承した名前でも今までの未知の ID と同じ扱いになり、起動や以後の地図の切り替えに影響しない。公開メソッドの `addMarker`・`clearMarker` に渡す層 ID も同じ - 地図 ID は文字列だけを受ける(公開の型のとおり)。地図の設定の `mapID: 5` のような数値の ID を `changeMap(5)`・`mapInfo(5)`・`startFrom: 5` のように数値のまま渡しても引き当たらない。文字列(`"5"`)で渡す diff --git a/docs/api/maplat-app.ja.md b/docs/api/maplat-app.ja.md index d8a6168..3de4eeb 100644 --- a/docs/api/maplat-app.ja.md +++ b/docs/api/maplat-app.ja.md @@ -214,7 +214,7 @@ Maplat の内部用です。使わないでください。 |---|---| | 地図の状態と制御 | `currentMapInfo(): object`・`mapInfo(mapID): object`・`changeMap(mapID, restore?): Promise`・`requestUpdateState(partial: Partial): void`・`getRotation(): number`・`getDirection(): Promise`・`setViewpoint(cond)`・`goHome()`・`resetRotation()`・`resetDirection()`・`resetCirculation()`・`getMapMeta(mapID?): MapMeta \| undefined`(地図の設定に `iiif` 節があれば `iiif: { manifest?, canvas?, image?, copiedAt?, display, metadata? }` を含む)・`setTransparency(percentage): void`(`transparency` 属性にも書き戻す)・`getTransparency(): number` | | 座標系 | `clientPointToLngLat(clientX, clientY): Promise<{ longitude, latitude } \| null>`・`lngLatToClientPoint(longitude, latitude): Promise<{ x, y } \| null>` — クラスが `undefined` を返すところで要素は `null` を返す | -| マーカー | `addMarker(data, clusterId?)`・`removeMarker(id)`・`updateMarker(id, data, overwrite?)`・`clearMarker(clusterId?)`・`selectMarker(id)`・`unselectMarker()`・`getMarker(id): MaplatPoi \| undefined`・`showAllMarkers()`・`hideAllMarkers()` | +| マーカー | `getMarker(id)` は `clickMarker` の detail と同じ形(祖先の `poiTemplate`・`iconTemplate` を当てた複製。格納している POI そのものではない)を返す。POI の書き換えは `updateMarker`。`addMarker(data, clusterId?)`・`removeMarker(id)`・`updateMarker(id, data, overwrite?)`・`clearMarker(clusterId?)`・`selectMarker(id)`・`unselectMarker()`・`getMarker(id): MaplatPoi \| undefined`・`showAllMarkers()`・`hideAllMarkers()` | | ラインとベクター | `addLine(data): string`・`addVector(data): string`・`removeLine(id): boolean`・`removeVector(id): boolean`・`clearLine(filter?)`・`clearVector(filter?)` | | POI レイヤ | `listPoiLayers(hideOnly?, nonzero?): PoiLayer[]`・`getPoiLayer(id): PoiLayer \| undefined`・`showPoiLayer(id)`・`hidePoiLayer(id)`・`addPoiLayer(id, data)`・`removePoiLayer(id)` | | GPS | `handleGPS(enable, avoidEventForOff?)`(`gpsEnabledChanged` が出ることがある)・`getGPSEnabled(): boolean`・`setGPSMarker(position)` | diff --git a/docs/api/maplat-app.md b/docs/api/maplat-app.md index d494aa4..b30ce57 100644 --- a/docs/api/maplat-app.md +++ b/docs/api/maplat-app.md @@ -241,7 +241,7 @@ and delegate to the map. Arguments and behaviour are those of |---|---| | Map state & control | `currentMapInfo(): object`, `mapInfo(mapID): object`, `changeMap(mapID, restore?): Promise`, `requestUpdateState(partial: Partial): void`, `getRotation(): number`, `getDirection(): Promise`, `setViewpoint(cond)`, `goHome()`, `resetRotation()`, `resetDirection()`, `resetCirculation()`, `getMapMeta(mapID?): MapMeta \| undefined` (`iiif: { manifest?, canvas?, image?, copiedAt?, display, metadata? }` when the map setting has a `iiif` section), `setTransparency(percentage): void` (also writes back the `transparency` attribute), `getTransparency(): number` | | Coordinate system | `clientPointToLngLat(clientX, clientY): Promise<{ longitude, latitude } \| null>`, `lngLatToClientPoint(longitude, latitude): Promise<{ x, y } \| null>` — the element resolves `null` where the class resolves `undefined` | -| Markers | `addMarker(data, clusterId?)`, `removeMarker(id)`, `updateMarker(id, data, overwrite?)`, `clearMarker(clusterId?)`, `selectMarker(id)`, `unselectMarker()`, `getMarker(id): MaplatPoi \| undefined`, `showAllMarkers()`, `hideAllMarkers()` | +| Markers | `getMarker(id)` returns the same shape as the `clickMarker` detail (a copy with the ancestors' `poiTemplate` / `iconTemplate` applied, not the stored POI); change a POI with `updateMarker`. `addMarker(data, clusterId?)`, `removeMarker(id)`, `updateMarker(id, data, overwrite?)`, `clearMarker(clusterId?)`, `selectMarker(id)`, `unselectMarker()`, `getMarker(id): MaplatPoi \| undefined`, `showAllMarkers()`, `hideAllMarkers()` | | Lines & vectors | `addLine(data): string`, `addVector(data): string`, `removeLine(id): boolean`, `removeVector(id): boolean`, `clearLine(filter?)`, `clearVector(filter?)` | | POI layers | `listPoiLayers(hideOnly?, nonzero?): PoiLayer[]`, `getPoiLayer(id): PoiLayer \| undefined`, `showPoiLayer(id)`, `hidePoiLayer(id)`, `addPoiLayer(id, data)`, `removePoiLayer(id)` | | GPS | `handleGPS(enable, avoidEventForOff?)` (may fire `gpsEnabledChanged`), `getGPSEnabled(): boolean`, `setGPSMarker(position)` | diff --git a/spec/get-marker-template.spec.ts b/spec/get-marker-template.spec.ts new file mode 100644 index 0000000..465452c --- /dev/null +++ b/spec/get-marker-template.spec.ts @@ -0,0 +1,115 @@ +// getMarker(id) は、マーカーの描画(clickMarker の detail)と同じくテンプレートを当てた複製を返す(#150)。 +// 実メソッドを偽の self で呼ぶ。 +import { beforeEach, describe, expect, it, vi } from "vitest"; +import { MaplatApp } from "../src/index"; +import { resetTemplateWarnings } from "../src/template_works"; + +const proto = MaplatApp.prototype as any; +const getMarker = (self: any, id: any) => proto.getMarker.call(self, id); +const updateMarker = (self: any, id: any, data: any, ow?: any) => proto.updateMarker.call(self, id, data, ow); +const selectMarker = (self: any, id: any) => proto.selectMarker.call(self, id); + +function appWith(layer: any) { + return { pois: { main: layer }, cacheHash: {}, redrawMarkers: vi.fn() } as any; +} + +describe("getMarker はテンプレートを当てた複製を返す", () => { + beforeEach(() => { + vi.restoreAllMocks(); + resetTemplateWarnings(); + }); + + it("T1: アプリの層。html が付き、実体には付かない", () => { + const entity = { id: "p1", namespaceID: "p1", name: "x" }; + const self = appWith({ pois: [entity], poiTemplate: "{{ name }}" }); + const got = getMarker(self, "p1"); + expect(got.html).toBe("x"); + expect(self.pois.main.pois[0].html).toBeUndefined(); + expect(got).not.toBe(entity); + }); + + it("T2: 地図の層。source の poiTemplate が当たり、実体に html が無い", () => { + const entity = { id: "q1", namespaceID: "A#q1", name: "z" }; + const source = { pois: { main: { pois: [entity] } }, poiTemplate: "{{ name }}" }; + const self: any = { pois: {}, cacheHash: { A: source }, redrawMarkers: vi.fn() }; + const got = getMarker(self, "A#q1"); + expect(got.html).toBe("z"); + expect(entity).not.toHaveProperty("html"); + expect(got).not.toBe(entity); + }); + + it("T3: iconTemplate・層の icon・POI 自身の icon の優先", () => { + const tpl = { id: "p1", namespaceID: "p1", u: "a.png" }; + const self1 = appWith({ pois: [tpl], iconTemplate: '{"icon": {{ u | dump | safe }}}', icon: "layer.png" }); + expect(getMarker(self1, "p1").icon).toBe("a.png"); + const self2 = appWith({ pois: [{ id: "p1", namespaceID: "p1" }], icon: "layer.png" }); + expect(getMarker(self2, "p1").icon).toBe("layer.png"); + const self3 = appWith({ + pois: [{ id: "p1", namespaceID: "p1", icon: "own.png" }], + iconTemplate: '{"icon": "t.png"}', + icon: "layer.png" + }); + expect(getMarker(self3, "p1").icon).toBe("own.png"); + expect(self1.pois.main.pois[0].icon).toBeUndefined(); + }); + + it("T4: POI 自身に html があればテンプレートを当てず、poiStyle も補わない", () => { + const self = appWith({ + pois: [{ id: "p1", namespaceID: "p1", name: "x", html: "own" }], + poiTemplate: "{{ name }}", + poiStyle: "color:red" + }); + const got = getMarker(self, "p1"); + expect(got.html).toBe("own"); + expect(got.poiStyle).toBeUndefined(); + }); + + it("T5: updateMarker は実体を書き換え、続く getMarker は評価し直す", () => { + const self = appWith({ + pois: [{ id: "p1", namespaceID: "p1", name: "x" }], + poiTemplate: "{{ name }}" + }); + self.getMarker = (id: any) => proto.getMarker.call(self, id); + expect(getMarker(self, "p1").html).toBe("x"); + updateMarker(self, "p1", { name: "y" }); + expect(self.pois.main.pois[0].name).toBe("y"); + expect(self.pois.main.pois[0].html).toBeUndefined(); + expect(getMarker(self, "p1").html).toBe("y"); + expect(self.redrawMarkers).toHaveBeenCalled(); + }); + + it("T6: 旧い記法は html を作らず、例外なし、警告は 1 回", () => { + const warn = vi.spyOn(console, "warn").mockImplementation(() => undefined); + const self = appWith({ + pois: [{ id: "p1", namespaceID: "p1", name: "x" }], + poiTemplate: "<%= name %>" + }); + let got: any; + expect(() => (got = getMarker(self, "p1"))).not.toThrow(); + expect(got.html).toBeUndefined(); + getMarker(self, "p1"); + expect(warn).toHaveBeenCalledTimes(1); + }); + + it("T8: selectMarker はテンプレートの POI でも例外なく選択を立てる", () => { + const self: any = { + ...appWith({ + pois: [{ id: "p1", namespaceID: "p1", name: "x", lnglat: [139, 35] }], + poiTemplate: "{{ name }}" + }), + setViewpoint: vi.fn(), + stateBuffer: {}, + mapObject: undefined + }; + self.getMarker = (id: any) => proto.getMarker.call(self, id); + expect(() => selectMarker(self, "p1")).not.toThrow(); + expect(self.__selectedMarker).toBe("p1"); + expect(self.setViewpoint).toHaveBeenCalled(); + }); + + it("T9: 無い id・無い名前空間は undefined", () => { + const self = appWith({ pois: [{ id: "p1", namespaceID: "p1" }] }); + expect(getMarker(self, "nope")).toBeUndefined(); + expect(getMarker(self, "Z#q1")).toBeUndefined(); + }); +}); diff --git a/spec/nov26-m4-t9-marker-redraw.spec.ts b/spec/nov26-m4-t9-marker-redraw.spec.ts index fbcaa83..1d168dc 100644 --- a/spec/nov26-m4-t9-marker-redraw.spec.ts +++ b/spec/nov26-m4-t9-marker-redraw.spec.ts @@ -214,3 +214,35 @@ describe("nov26-m4-t9 #134 marker 再描画は直列で最新の要求を残す" expect(h.self.__redrawMarkerBlock).toBe(false); }); }); + +describe("getMarker は描画の datum と同じ形(clickMarker の detail)を返す", () => { + const withId = (id: string, namespaceID: string) => ({ + id, + namespaceID, + name: id, + u: "u.png", + lnglat: [0, 0] + }); + const tpl = { + poiTemplate: "{{ name }}", + iconTemplate: '{"icon": {{ u | dump | safe }}}' + }; + + it("T7: アプリの層(ancestor = this)と地図の層(ancestor = source)の両方で deep-equal", async () => { + const h = makeApp({ main: { pois: [withId("app_0", "app_0")], ...tpl } }); + h.sources.A.pois = { main: { pois: [withId("0", "A#0")], ...tpl } }; + h.self.cacheHash = h.sources; + h.redraw(); + await h.complete(); + const datums = new Map( + h.front.features.map((f: any) => [f.get("datum").namespaceID, f.get("datum")]) + ); + expect([...datums.keys()].sort()).toEqual(["A#0", "app_0"]); + for (const id of ["app_0", "A#0"]) { + const got = proto.getMarker.call(h.self, id); + expect(got.html).toBeDefined(); + expect(got.icon).toBe("u.png"); + expect(got).toEqual(datums.get(id)); + } + }); +}); diff --git a/src/element_contract.ts b/src/element_contract.ts index 7b91c4e..36919d7 100644 --- a/src/element_contract.ts +++ b/src/element_contract.ts @@ -615,7 +615,7 @@ export type MaplatPoiMedia = * http/https だけを通す)。実装は読み込みで正規化する: 座標は lnglat にまとめる(lng/lat/longitude/latitude は * 消す)・id と namespaceID を必ず付ける。マーカーの描画のたびに、祖先(POI のレイヤー → 地図 → アプリ)の * テンプレートから icon・selectedIcon(iconTemplate / icon)と html・poiStyle(poiTemplate)を補った複製が - * クリックの detail になる。ここに無いキー(テンプレートが読む独自のキー等)もそのまま載る。 + * クリックの detail になる(`getMarker` の戻り値も同じ複製)。ここに無いキー(テンプレートが読む独自のキー等)もそのまま載る。 */ export interface MaplatPoi { /** レイヤーの中の id(無ければ実装が `${レイヤーのキー}_${連番}` を付ける) */ @@ -775,7 +775,12 @@ export interface MaplatAppDelegatedMethods { lngLatToClientPoint: (longitude: number, latitude: number) => Promise<{ x: number; y: number } | null>; selectMarker: AnyFn; unselectMarker: AnyFn; - /** POI の datum(id か namespaceID で引く)。見つからなければ undefined */ + /** + * POI の datum(id か namespaceID で引く)。`clickMarker` の detail と同じ形: 祖先(POI のレイヤー → 地図。 + * アプリの層ならレイヤー → アプリ)のテンプレートから icon・selectedIcon・html・poiStyle を補った複製を返す + * (格納している POI そのものではない。書き換えは `updateMarker`)。見つからなければ undefined。 + * 他の層 A の実装(MaplatCorePro など)は追随中で、実体を返すことがある + */ getMarker: (id: string) => MaplatPoi | undefined; updateMarker: AnyFn; addMarker: AnyFn; diff --git a/src/index.ts b/src/index.ts index 0433468..6f77d63 100644 --- a/src/index.ts +++ b/src/index.ts @@ -41,7 +41,7 @@ import { normalizeLayer, normalizePoi } from "./normalize_pois"; -import { createIconSet, createHtmlFromTemplate } from "./template_works"; +import { applyPoiTemplates } from "./template_works"; import { addMarkerItem, backMarkerDataAt, @@ -102,6 +102,33 @@ function markerIconFor(core: { __selectedMarker?: any }, data: any): any { return selected && data.selectedIcon ? data.selectedIcon : data.icon; } +/** + * POI を、格納している実体・その層・祖先(アプリの層ならアプリ、地図の層なら source)で引く。 + * アプリの層(`#` なし)は最初に当たったもの、地図の層(`#` あり)は最後に当たったもの。 + */ +function findPoiEntry(app: any, id: string): { poi: any; cluster: any; ancestor: any } | undefined { + if (!id.includes("#")) { + for (const key of Object.keys(app.pois)) { + const cluster = app.pois[key]; + for (const poi of cluster.pois) { + if (poi.id === id) return { poi, cluster, ancestor: app }; + } + } + return undefined; + } + const splits = id.split("#"); + const source = ownEntry(app.cacheHash, splits[0]) as any; + if (!source?.pois) return undefined; + let ret: { poi: any; cluster: any; ancestor: any } | undefined; + for (const key of Object.keys(source.pois)) { + const cluster = source.pois[key]; + for (const poi of cluster.pois) { + if (poi.id === splits[1]) ret = { poi, cluster, ancestor: source }; + } + } + return ret; +} + interface AppData { sources: string[]; lang?: string; @@ -1721,8 +1748,7 @@ export class MaplatApp extends EventTarget implements ElementImplementationInter const items: MarkerItem[] = []; let selected: MarkerItem | undefined; const collect = (data: any, cluster: any, ancestor: any) => { - const dataCopy = createIconSet(data, cluster, ancestor); - createHtmlFromTemplate(dataCopy, cluster, ancestor); + const dataCopy = applyPoiTemplates(data, cluster, ancestor); const item: MarkerItem = { data: dataCopy, icon: markerIconFor(this, dataCopy) @@ -1834,23 +1860,12 @@ export class MaplatApp extends EventTarget implements ElementImplementationInter }); } getMarker(id: any) { - if (!id.includes("#")) { - for (const key of Object.keys(this.pois)) { - for (const poi of this.pois[key].pois) { - if (poi.id === id) { - return poi; // 早期リターン - } - } - } - return undefined; - } else { - const splits = id.split("#"); - const source = ownEntry(this.cacheHash, splits[0]); - return source?.getPoi(splits[1]); - } + const entry = findPoiEntry(this, id); + if (!entry) return undefined; + return applyPoiTemplates(entry.poi, entry.cluster, entry.ancestor); } updateMarker(id: any, data: any, overwrite: any) { - const poi = this.getMarker(id); + const poi = findPoiEntry(this, id)?.poi; if (!poi) return; data = normalizePoi(data || {}); if (overwrite) { diff --git a/src/template_works.ts b/src/template_works.ts index 188b9df..2a85d02 100644 --- a/src/template_works.ts +++ b/src/template_works.ts @@ -144,3 +144,13 @@ export function createHtmlFromTemplate(data: any, ...ancestors: any[]) { }, undefined) || data ); } + +/** + * POI の複製に、祖先のテンプレートから icon・selectedIcon と html・poiStyle を補う。 + * マーカーの描画(clickMarker の detail)と getMarker の戻り値が同じ形になるよう、両方がこの 1 つを通る。 + * 渡した data は書き換えない。 + */ +export function applyPoiTemplates(data: any, ...ancestors: any[]) { + const copy = createIconSet(data, ...ancestors); + return createHtmlFromTemplate(copy, ...ancestors); +} From 929b25e328c513563715aa3d11f389426f6b8d34 Mon Sep 17 00:00:00 2001 From: Kohei Otsuka Date: Sat, 7 Nov 2026 03:43:01 +0900 Subject: [PATCH 2/2] =?UTF-8?q?build:=20dist=20=E3=82=92=E4=BD=9C=E3=82=8A?= =?UTF-8?q?=E7=9B=B4=E3=81=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5.5 --- dist/element_contract.d.ts | 9 +- dist/maplat_core.js | 1714 ++++++++++++++++---------------- dist/maplat_core.js.map | 2 +- dist/maplat_core.umd.js | 14 +- dist/maplat_core.umd.js.map | 2 +- dist/maplat_core_common.js.map | 2 +- dist/template_works.d.ts | 6 + 7 files changed, 887 insertions(+), 862 deletions(-) diff --git a/dist/element_contract.d.ts b/dist/element_contract.d.ts index ab4cae5..fe46c4e 100644 --- a/dist/element_contract.d.ts +++ b/dist/element_contract.d.ts @@ -280,7 +280,7 @@ export type MaplatPoiMedia = string | { * http/https だけを通す)。実装は読み込みで正規化する: 座標は lnglat にまとめる(lng/lat/longitude/latitude は * 消す)・id と namespaceID を必ず付ける。マーカーの描画のたびに、祖先(POI のレイヤー → 地図 → アプリ)の * テンプレートから icon・selectedIcon(iconTemplate / icon)と html・poiStyle(poiTemplate)を補った複製が - * クリックの detail になる。ここに無いキー(テンプレートが読む独自のキー等)もそのまま載る。 + * クリックの detail になる(`getMarker` の戻り値も同じ複製)。ここに無いキー(テンプレートが読む独自のキー等)もそのまま載る。 */ export interface MaplatPoi { /** レイヤーの中の id(無ければ実装が `${レイヤーのキー}_${連番}` を付ける) */ @@ -443,7 +443,12 @@ export interface MaplatAppDelegatedMethods { } | null>; selectMarker: AnyFn; unselectMarker: AnyFn; - /** POI の datum(id か namespaceID で引く)。見つからなければ undefined */ + /** + * POI の datum(id か namespaceID で引く)。`clickMarker` の detail と同じ形: 祖先(POI のレイヤー → 地図。 + * アプリの層ならレイヤー → アプリ)のテンプレートから icon・selectedIcon・html・poiStyle を補った複製を返す + * (格納している POI そのものではない。書き換えは `updateMarker`)。見つからなければ undefined。 + * 他の層 A の実装(MaplatCorePro など)は追随中で、実体を返すことがある + */ getMarker: (id: string) => MaplatPoi | undefined; updateMarker: AnyFn; addMarker: AnyFn; diff --git a/dist/maplat_core.js b/dist/maplat_core.js index 1b91f62..a50a15f 100644 --- a/dist/maplat_core.js +++ b/dist/maplat_core.js @@ -1,9 +1,9 @@ -import { transform as qt, toLonLat as Hi, Projection as bg, addProjection as Zr, addCoordinateTransforms as Bi, getTransform as hr, identityTransform as fr } from "ol/proj"; -import { View as RA, Map as Eg, Feature as kA } from "ol"; -import { Vector as mi, Group as Mg, Tile as dr } from "ol/layer"; -import { XYZ as _A, Google as xg, Vector as yi, IIIF as Sg } from "ol/source"; +import { transform as qt, toLonLat as Hi, Projection as Mg, addProjection as Zr, addCoordinateTransforms as Bi, getTransform as hr, identityTransform as fr } from "ol/proj"; +import { View as _A, Map as xg, Feature as PA } from "ol"; +import { Vector as mi, Group as Sg, Tile as dr } from "ol/layer"; +import { XYZ as OA, Google as Tg, Vector as yi, IIIF as Rg } from "ol/source"; import { Style as pe, Stroke as Vr, Fill as Wr, Icon as xn } from "ol/style"; -import { IIIFInfo as PA } from "ol/format"; +import { IIIFInfo as LA } from "ol/format"; class _e { /** * @param {string} type Type. @@ -33,7 +33,7 @@ let Ft = class extends _e { super(t), this.detail = e; } }; -const Tg = ["ALL", "OFF"], Ye = { +const kg = ["ALL", "OFF"], Ye = { ALL: -99, DEBUG: -1, INFO: 0, @@ -50,7 +50,7 @@ class to { const t = Object.keys(Ye).filter( // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-expect-error - (e) => !Tg.includes(e) + (e) => !kg.includes(e) ); for (const e of t) { const i = Ye[e], r = e.toLowerCase(); @@ -59,7 +59,7 @@ class to { } } } -function Rg(n, t) { +function _g(n, t) { return n.isMapbox() ? t.mapboxMap ? (n.mapboxMap = t.mapboxMap, !0) : (t.warn?.( "Mapbox GL JS is not available; skipping Mapbox source:", n.mapID @@ -85,7 +85,7 @@ const Kn = [ "dataAttr", "reference", "description" -], kg = [ +], Pg = [ "title", "official_title", "author", @@ -102,16 +102,16 @@ const Kn = [ "reference", "description" ]; -function OA() { +function DA() { const n = /* @__PURE__ */ new Set(); return (t, e) => { n.has(t) || (n.add(t), console.warn(e)); }; } let eo = !1; -const _g = "MaplatApp: the MaplatApp class is deprecated and will be removed in 2.0. Use the element (@maplat/core/element) instead."; -function Pg() { - eo || (eo = !0, console.warn(_g)); +const Og = "MaplatApp: the MaplatApp class is deprecated and will be removed in 2.0. Use the element (@maplat/core/element) instead."; +function Lg() { + eo || (eo = !0, console.warn(Og)); } function jn(n) { const t = document, e = t.createDocumentFragment(), i = []; @@ -191,7 +191,7 @@ function me(n) { return e; }, n); } -class LA { +class BA { constructor() { this.disposed = !1; } @@ -208,18 +208,18 @@ class LA { disposeInternal() { } } -function Og(n, t, e) { +function Dg(n, t, e) { let i, r; - e = e || DA; + e = e || NA; let s = 0, o = n.length, a = !1; for (; s < o; ) i = s + (o - s >> 1), r = +e(n[i], t), r < 0 ? s = i + 1 : (o = i, a = !r); return a ? s : ~s; } -function DA(n, t) { +function NA(n, t) { return n > t ? 1 : n < t ? -1 : 0; } -function BA(n, t, e) { +function FA(n, t, e) { if (n[0] <= t) return 0; const i = n.length; @@ -255,12 +255,12 @@ function BA(n, t, e) { } return i - 1; } -function NA(n, t) { +function jA(n, t) { const e = Array.isArray(t) ? t : [t], i = e.length; for (let r = 0; r < i; r++) n[n.length] = e[r]; } -function Lg(n, t) { +function Bg(n, t) { const e = n.length; if (e !== t.length) return !1; @@ -272,16 +272,16 @@ function Lg(n, t) { function Ht() { throw new Error("Unimplemented abstract method."); } -let Dg = 0; -function Bg(n) { +let Ng = 0; +function Fg(n) { const t = ( /** @type {{ol_uid: (string|undefined)}} */ /** @type {unknown} */ n ); - return t.ol_uid || (t.ol_uid = String(++Dg)); + return t.ol_uid || (t.ol_uid = String(++Ng)); } -function Ng() { +function jg() { return !0; } function Yi() { @@ -289,24 +289,24 @@ function Yi() { } function Hr() { } -function Fg(n) { +function Gg(n) { let t, e, i; return function() { const r = Array.prototype.slice.call(arguments); - return (!e || this !== i || !Lg(r, e)) && (i = this, e = r, t = n.apply(this, r)), t; + return (!e || this !== i || !Bg(r, e)) && (i = this, e = r, t = n.apply(this, r)), t; }; } -function FA(n) { +function GA(n) { for (const t in n) delete n[t]; } -function jg(n) { +function Ug(n) { let t; for (t in n) return !1; return !t; } -class jA extends LA { +class UA extends BA { /** * @param {*} [target] Default event target for dispatched events. */ @@ -368,7 +368,7 @@ class jA extends LA { * @override */ disposeInternal() { - this.listeners_ && FA(this.listeners_); + this.listeners_ && GA(this.listeners_); } /** * Get the listeners for a specified event type. Listeners are returned in the @@ -402,7 +402,7 @@ class jA extends LA { r !== -1 && (this.pendingRemovals_ && t in this.pendingRemovals_ ? (i[r] = Hr, ++this.pendingRemovals_[t]) : (i.splice(r, 1), i.length === 0 && delete this.listeners_[t])); } } -RA.prototype.getDecimalZoom = function() { +_A.prototype.getDecimalZoom = function() { const n = this.getResolution(), t = ( // NOTE: `resolution` maybe `undefined` // NOTE: `offset` maybe `NaN` @@ -424,7 +424,7 @@ function us(n, t, e) { let i, r; return t < n[0] ? i = n[0] - t : n[2] < t ? i = t - n[2] : i = 0, e < n[1] ? r = n[1] - e : n[3] < e ? r = e - n[3] : r = 0, i * i + r * r; } -function Gg(n, t, e) { +function zg(n, t, e) { return n[0] <= t && t <= n[2] && n[1] <= e && e <= n[3]; } function io(n, t) { @@ -432,46 +432,46 @@ function io(n, t) { let A = Lt.UNKNOWN; return o < e ? A = A | Lt.LEFT : o > r && (A = A | Lt.RIGHT), a < i ? A = A | Lt.BELOW : a > s && (A = A | Lt.ABOVE), A === Lt.UNKNOWN && (A = Lt.INTERSECTING), A; } -function GA() { +function zA() { return [1 / 0, 1 / 0, -1 / 0, -1 / 0]; } function Qi(n, t, e, i, r) { return r ? (r[0] = n, r[1] = t, r[2] = e, r[3] = i, r) : [n, t, e, i]; } -function UA(n) { +function XA(n) { return Qi(1 / 0, 1 / 0, -1 / 0, -1 / 0, n); } -function Ug(n, t) { +function Xg(n, t) { const e = n[0], i = n[1]; return Qi(e, i, e, i, t); } -function zg(n, t, e, i, r) { - const s = UA(r); - return zA(s, n, t, e, i); +function Zg(n, t, e, i, r) { + const s = XA(r); + return ZA(s, n, t, e, i); } -function zA(n, t, e, i, r) { +function ZA(n, t, e, i, r) { for (; e < i; e += r) - Xg(n, t[e], t[e + 1]); + Vg(n, t[e], t[e + 1]); return n; } -function Xg(n, t, e) { +function Vg(n, t, e) { n[0] = Math.min(n[0], t), n[1] = Math.min(n[1], e), n[2] = Math.max(n[2], t), n[3] = Math.max(n[3], e); } -function XA(n, t) { +function VA(n, t) { let e; - return e = t(Zg(n)), e || (e = t(Vg(n)), e) || (e = t(Qg(n)), e) || (e = t(Yg(n)), e) ? e : !1; + return e = t(Wg(n)), e || (e = t(Hg(n)), e) || (e = t(Jg(n)), e) || (e = t(Kg(n)), e) ? e : !1; } -function Zg(n) { +function Wg(n) { return [n[0], n[1]]; } -function Vg(n) { +function Hg(n) { return [n[2], n[1]]; } function Ni(n) { return [(n[0] + n[2]) / 2, (n[1] + n[3]) / 2]; } -function Wg(n, t, e, i, r) { - const [s, o, a, A, g, I, l, C] = Hg( +function Yg(n, t, e, i, r) { + const [s, o, a, A, g, I, l, C] = Qg( n, t, e, @@ -485,7 +485,7 @@ function Wg(n, t, e, i, r) { r ); } -function Hg(n, t, e, i) { +function Qg(n, t, e, i) { const r = t * i[0] / 2, s = t * i[1] / 2, o = Math.cos(e), a = Math.sin(e), A = r * o, g = r * a, I = s * o, l = s * a, C = n[0], p = n[1]; return [ C - A + l, @@ -503,10 +503,10 @@ function Hg(n, t, e, i) { function Jn(n) { return n[3] - n[1]; } -function Yg(n) { +function Kg(n) { return [n[0], n[3]]; } -function Qg(n) { +function Jg(n) { return [n[2], n[3]]; } function Cs(n) { @@ -515,13 +515,13 @@ function Cs(n) { function hs(n, t) { return n[0] <= t[2] && n[2] >= t[0] && n[1] <= t[3] && n[3] >= t[1]; } -function ZA(n) { +function WA(n) { return n[2] < n[0] || n[3] < n[1]; } -function Kg(n, t) { +function qg(n, t) { return t ? (t[0] = n[0], t[1] = n[1], t[2] = n[2], t[3] = n[3], t) : n; } -function Jg(n, t, e) { +function $g(n, t, e) { let i = !1; const r = io(n, t), s = io(n, e); if (r === Lt.INTERSECTING || s === Lt.INTERSECTING) @@ -533,7 +533,7 @@ function Jg(n, t, e) { } return i; } -const qg = { +const tc = { /** * Triggered when a property is changed. * @event module:ol/Object.ObjectEvent#propertychange @@ -559,7 +559,7 @@ function ro(n, t, e, i) { return yn(n, t, e, i, !0); } function Qn(n) { - n && n.target && (n.target.removeEventListener(n.type, n.listener), FA(n)); + n && n.target && (n.target.removeEventListener(n.type, n.listener), GA(n)); } const ze = { /** @@ -573,7 +573,7 @@ const ze = { KEYPRESS: "keypress", WHEEL: "wheel" }; -class Ki extends jA { +class Ki extends UA { constructor() { super(), this.on = /** @type {ObservableOnSignature} */ this.onInternal, this.once = /** @type {ObservableOnSignature} */ @@ -650,7 +650,7 @@ class Ki extends jA { e.ol_key ); if (i) - $g(i); + ec(i); else if (Array.isArray(t)) for (let r = 0, s = t.length; r < s; ++r) this.removeEventListener(t[r], e); @@ -661,7 +661,7 @@ class Ki extends jA { Ki.prototype.on; Ki.prototype.once; Ki.prototype.un; -function $g(n) { +function ec(n) { if (Array.isArray(n)) for (let t = 0, e = n.length; t < e; ++t) Qn(n[t]); @@ -686,7 +686,7 @@ class _n extends Ki { * @param {NoInfer} [values] An object with key-value pairs. */ constructor(t) { - super(), this.on, this.once, this.un, Bg(this), this.values_ = null, t !== void 0 && this.setProperties(t); + super(), this.on, this.once, this.un, Fg(this), this.values_ = null, t !== void 0 && this.setProperties(t); } /** * Gets a value. @@ -736,7 +736,7 @@ class _n extends Ki { */ notify(t, e) { let i; - i = `change:${t}`, this.hasListener(i) && this.dispatchEvent(new so(i, t, e)), i = qg.PROPERTYCHANGE, this.hasListener(i) && this.dispatchEvent(new so(i, t, e)); + i = `change:${t}`, this.hasListener(i) && this.dispatchEvent(new so(i, t, e)), i = tc.PROPERTYCHANGE, this.hasListener(i) && this.dispatchEvent(new so(i, t, e)); } /** * @param {string} key Key name. @@ -800,17 +800,17 @@ class _n extends Ki { unset(t, e) { if (this.values_ && t in this.values_) { const i = this.values_[t]; - delete this.values_[t], jg(this.values_) && (this.values_ = null), e || this.notify(t, i); + delete this.values_[t], Ug(this.values_) && (this.values_ = null), e || this.notify(t, i); } } } -function tc(...n) { +function nc(...n) { console.warn(...n); } function le(n, t, e) { return Math.min(Math.max(n, t), e); } -function ec(n, t, e, i, r, s) { +function ic(n, t, e, i, r, s) { const o = r - e, a = s - i; if (o !== 0 || a !== 0) { const A = ((n - e) * o + (t - i) * a) / (o * o + a * a); @@ -841,7 +841,7 @@ function Qr(n, t, e) { const i = e - t; return ((n - t) % i + i) % i + t; } -function nc(n, t) { +function rc(n, t) { return n[0] += +t[0], n[1] += +t[1], n; } function Fi(n, t) { @@ -857,10 +857,10 @@ function ds(n, t) { const e = Math.cos(t), i = Math.sin(t), r = n[0] * e - n[1] * i, s = n[1] * e + n[0] * i; return n[0] = r, n[1] = s, n; } -function ic(n, t) { +function sc(n, t) { return n[0] *= t, n[1] *= t, n; } -const VA = { +const HA = { // use the radius of the Normal sphere radians: 6370997 / (2 * Math.PI), degrees: 2 * Math.PI * 6370997 / 360, @@ -917,7 +917,7 @@ class qn { * @api */ getMetersPerUnit() { - return this.metersPerUnit_ || VA[this.units_]; + return this.metersPerUnit_ || HA[this.units_]; } /** * Get the world extent for this projection. @@ -1007,7 +1007,7 @@ class qn { return this.getPointResolutionFunc_; } } -const oi = 6378137, mn = Math.PI * oi, rc = [-mn, -mn, mn, mn], sc = [-180, -85, 180, 85], wi = oi * Math.log(Math.tan(Math.PI / 2)); +const oi = 6378137, mn = Math.PI * oi, oc = [-mn, -mn, mn, mn], Ac = [-180, -85, 180, 85], wi = oi * Math.log(Math.tan(Math.PI / 2)); class gn extends qn { /** * @param {string} code Code. @@ -1016,9 +1016,9 @@ class gn extends qn { super({ code: t, units: "m", - extent: rc, + extent: oc, global: !0, - worldExtent: sc, + worldExtent: Ac, getPointResolution: function(e, i) { return e / Math.cosh(i[1] / oi); } @@ -1033,7 +1033,7 @@ const Ao = [ new gn("http://www.opengis.net/def/crs/EPSG/0/3857"), new gn("http://www.opengis.net/gml/srs/epsg.xml#3857") ]; -function oc(n, t, e, i) { +function ac(n, t, e, i) { const r = n.length; e = e !== void 0 && e > 1 ? e : 2, i = i ?? e, t === void 0 && (e > 2 ? t = n.slice() : t = new Array(r)); for (let s = 0; s < r; s += i) { @@ -1043,14 +1043,14 @@ function oc(n, t, e, i) { } return t; } -function Ac(n, t, e, i) { +function gc(n, t, e, i) { const r = n.length; e = e !== void 0 && e > 1 ? e : 2, i = i ?? e, t === void 0 && (e > 2 ? t = n.slice() : t = new Array(r)); for (let s = 0; s < r; s += i) t[s] = 180 * n[s] / mn, t[s + 1] = 360 * Math.atan(Math.exp(n[s + 1] / oi)) / Math.PI - 90; return t; } -const ac = 6378137, ao = [-180, -90, 180, 90], gc = Math.PI * ac / 180; +const cc = 6378137, ao = [-180, -90, 180, 90], lc = Math.PI * cc / 180; class Ze extends qn { /** * @param {string} code Code. @@ -1063,7 +1063,7 @@ class Ze extends qn { extent: ao, axisOrientation: e, global: !0, - metersPerUnit: gc, + metersPerUnit: lc, worldExtent: ao }); } @@ -1078,10 +1078,10 @@ const go = [ new Ze("http://www.opengis.net/def/crs/EPSG/0/4326", "neu") ]; let Kr = {}; -function cc(n) { +function Ic(n) { return Kr[n] || Kr[n.replace(/urn:(x-)?ogc:def:crs:EPSG:(.*:)?(\w+)$/, "EPSG:$3")] || null; } -function lc(n, t) { +function uc(n, t) { Kr[n] = t; } let bn = {}; @@ -1092,34 +1092,34 @@ function $n(n, t, e) { function pr(n, t) { return n in bn && t in bn[n] ? bn[n][t] : null; } -const ji = 0.9996, Ae = 669438e-8, Ji = Ae * Ae, qi = Ji * Ae, Qe = Ae / (1 - Ae), co = Math.sqrt(1 - Ae), Sn = (1 - co) / (1 + co), WA = Sn * Sn, ps = WA * Sn, ms = ps * Sn, HA = ms * Sn, YA = 1 - Ae / 4 - 3 * Ji / 64 - 5 * qi / 256, Ic = 3 * Ae / 8 + 3 * Ji / 32 + 45 * qi / 1024, uc = 15 * Ji / 256 + 45 * qi / 1024, Cc = 35 * qi / 3072, hc = 3 / 2 * Sn - 27 / 32 * ps + 269 / 512 * HA, fc = 21 / 16 * WA - 55 / 32 * ms, dc = 151 / 96 * ps - 417 / 128 * HA, pc = 1097 / 512 * ms, Gi = 6378137; -function mc(n, t, e) { - const i = n - 5e5, o = (e.north ? t : t - 1e7) / ji / (Gi * YA), a = o + hc * Math.sin(2 * o) + fc * Math.sin(4 * o) + dc * Math.sin(6 * o) + pc * Math.sin(8 * o), A = Math.sin(a), g = A * A, I = Math.cos(a), l = A / I, C = l * l, p = C * C, m = 1 - Ae * g, c = Math.sqrt(1 - Ae * g), u = Gi / c, h = (1 - Ae) / m, d = Qe * I ** 2, M = d * d, v = i / (u * ji), f = v * v, y = f * v, w = y * v, x = w * v, S = x * v, E = a - l / h * (f / 2 - w / 24 * (5 + 3 * C + 10 * d - 4 * M - 9 * Qe)) + S / 720 * (61 + 90 * C + 298 * d + 45 * p - 252 * Qe - 3 * M); +const ji = 0.9996, Ae = 669438e-8, Ji = Ae * Ae, qi = Ji * Ae, Qe = Ae / (1 - Ae), co = Math.sqrt(1 - Ae), Sn = (1 - co) / (1 + co), YA = Sn * Sn, ps = YA * Sn, ms = ps * Sn, QA = ms * Sn, KA = 1 - Ae / 4 - 3 * Ji / 64 - 5 * qi / 256, Cc = 3 * Ae / 8 + 3 * Ji / 32 + 45 * qi / 1024, hc = 15 * Ji / 256 + 45 * qi / 1024, fc = 35 * qi / 3072, dc = 3 / 2 * Sn - 27 / 32 * ps + 269 / 512 * QA, pc = 21 / 16 * YA - 55 / 32 * ms, mc = 151 / 96 * ps - 417 / 128 * QA, yc = 1097 / 512 * ms, Gi = 6378137; +function vc(n, t, e) { + const i = n - 5e5, o = (e.north ? t : t - 1e7) / ji / (Gi * KA), a = o + dc * Math.sin(2 * o) + pc * Math.sin(4 * o) + mc * Math.sin(6 * o) + yc * Math.sin(8 * o), A = Math.sin(a), g = A * A, I = Math.cos(a), l = A / I, C = l * l, p = C * C, m = 1 - Ae * g, c = Math.sqrt(1 - Ae * g), u = Gi / c, h = (1 - Ae) / m, d = Qe * I ** 2, M = d * d, v = i / (u * ji), f = v * v, y = f * v, w = y * v, x = w * v, S = x * v, E = a - l / h * (f / 2 - w / 24 * (5 + 3 * C + 10 * d - 4 * M - 9 * Qe)) + S / 720 * (61 + 90 * C + 298 * d + 45 * p - 252 * Qe - 3 * M); let T = (v - y / 6 * (1 + 2 * C + d) + x / 120 * (5 - 2 * d + 28 * C - 3 * M + 8 * Qe + 24 * p)) / I; return T = Qr( - T + wn(QA(e.number)), + T + wn(JA(e.number)), -Math.PI, Math.PI ), [oo(T), oo(E)]; } -const lo = -80, Io = 84, yc = -180, vc = 180; -function wc(n, t, e) { - n = Qr(n, yc, vc), t < lo ? t = lo : t > Io && (t = Io); - const i = wn(t), r = Math.sin(i), s = Math.cos(i), o = r / s, a = o * o, A = a * a, g = wn(n), I = QA(e.number), l = wn(I), C = Gi / Math.sqrt(1 - Ae * r ** 2), p = Qe * s ** 2, m = s * Qr(g - l, -Math.PI, Math.PI), c = m * m, u = c * m, h = u * m, d = h * m, M = d * m, v = Gi * (YA * i - Ic * Math.sin(2 * i) + uc * Math.sin(4 * i) - Cc * Math.sin(6 * i)), f = ji * C * (m + u / 6 * (1 - a + p) + d / 120 * (5 - 18 * a + A + 72 * p - 58 * Qe)) + 5e5; +const lo = -80, Io = 84, wc = -180, bc = 180; +function Ec(n, t, e) { + n = Qr(n, wc, bc), t < lo ? t = lo : t > Io && (t = Io); + const i = wn(t), r = Math.sin(i), s = Math.cos(i), o = r / s, a = o * o, A = a * a, g = wn(n), I = JA(e.number), l = wn(I), C = Gi / Math.sqrt(1 - Ae * r ** 2), p = Qe * s ** 2, m = s * Qr(g - l, -Math.PI, Math.PI), c = m * m, u = c * m, h = u * m, d = h * m, M = d * m, v = Gi * (KA * i - Cc * Math.sin(2 * i) + hc * Math.sin(4 * i) - fc * Math.sin(6 * i)), f = ji * C * (m + u / 6 * (1 - a + p) + d / 120 * (5 - 18 * a + A + 72 * p - 58 * Qe)) + 5e5; let y = ji * (v + C * o * (c / 2 + h / 24 * (5 - a + 9 * p + 4 * p ** 2) + M / 720 * (61 - 58 * a + A + 600 * p - 330 * Qe))); return e.north || (y += 1e7), [f, y]; } -function QA(n) { +function JA(n) { return (n - 1) * 6 - 180 + 3; } -const bc = [ +const Mc = [ /^EPSG:(\d+)$/, /^urn:ogc:def:crs:EPSG::(\d+)$/, /^http:\/\/www\.opengis\.net\/def\/crs\/EPSG\/0\/(\d+)$/ ]; -function KA(n) { +function qA(n) { let t = 0; - for (const r of bc) { + for (const r of Mc) { const s = n.match(r); if (s) { t = parseInt(s[1]); @@ -1142,22 +1142,22 @@ function uo(n, t) { return i; }; } -function Ec(n) { - return KA(n) ? new qn({ code: n, units: "m" }) : null; +function xc(n) { + return qA(n) ? new qn({ code: n, units: "m" }) : null; } -function Mc(n) { - const t = KA(n.getCode()); +function Sc(n) { + const t = qA(n.getCode()); return t ? { - forward: uo(wc, t), - inverse: uo(mc, t) + forward: uo(Ec, t), + inverse: uo(vc, t) } : null; } -const xc = [Mc], Sc = [Ec]; +const Tc = [Sc], Rc = [xc]; let Jr = !0; -function Tc(n) { +function kc(n) { Jr = !1; } -function JA(n, t) { +function $A(n, t) { if (t !== void 0) { for (let e = 0, i = n.length; e < i; ++e) t[e] = n[e]; @@ -1167,18 +1167,18 @@ function JA(n, t) { return t; } function qr(n) { - lc(n.getCode(), n), $n(n, n, JA); + uc(n.getCode(), n), $n(n, n, $A); } -function Rc(n) { +function _c(n) { n.forEach(qr); } function ti(n) { if (typeof n != "string") return n !== void 0 ? n : null; - const t = cc(n); + const t = Ic(n); if (t) return t; - for (const e of Sc) { + for (const e of Rc) { const i = e(n); if (i) return i; @@ -1186,13 +1186,13 @@ function ti(n) { return null; } function Co(n) { - Rc(n), n.forEach(function(t) { + _c(n), n.forEach(function(t) { n.forEach(function(e) { - t !== e && $n(t, e, JA); + t !== e && $n(t, e, $A); }); }); } -function kc(n, t, e, i) { +function Pc(n, t, e, i) { n.forEach(function(r) { t.forEach(function(s) { $n(r, s, e), $n(s, r, i); @@ -1205,7 +1205,7 @@ function ys(n, t) { n ) : ti(t); } -function _c(n, t) { +function Oc(n, t) { if (!n || !t) return null; const e = n.getCode(), i = t.getCode(); @@ -1213,7 +1213,7 @@ function _c(n, t) { if (r) return r; let s = null, o = null; - for (const A of xc) + for (const A of Tc) s || (s = A(n)), o || (o = A(t)); if (!s && !o) return null; @@ -1243,49 +1243,49 @@ function mr(n, t) { } function ho(n, t) { const e = ti(n), i = ti(t); - return _c(e, i); + return Oc(e, i); } -let Pc = null; -function Oc() { - return Pc; +let Lc = null; +function Dc() { + return Lc; } function fo(n, t) { return n; } function De(n, t) { - return Jr && !Fi(n, [0, 0]) && n[0] >= -180 && n[0] <= 180 && n[1] >= -90 && n[1] <= 90 && (Jr = !1, tc( + return Jr && !Fi(n, [0, 0]) && n[0] >= -180 && n[0] <= 180 && n[1] >= -90 && n[1] <= 90 && (Jr = !1, nc( "Call useGeographic() from ol/proj once to work with [longitude, latitude] coordinates." )), n; } -function Lc(n, t) { +function Bc(n, t) { return n; } function bi(n, t) { return n; } -function Dc() { - Co(Ao), Co(go), kc( +function Nc() { + Co(Ao), Co(go), Pc( go, Ao, - oc, - Ac + ac, + gc ); } -Dc(); +Nc(); function Ge(n, t) { if (!n) throw new Error(t); } -const Bc = [1, 0, 0, 1, 0, 0]; +const Fc = [1, 0, 0, 1, 0, 0]; new Array(6); -function Nc() { - return Bc.slice(0); +function jc() { + return Fc.slice(0); } -function Fc(n, t, e, i, r, s, o, a) { +function Gc(n, t, e, i, r, s, o, a) { const A = Math.sin(s), g = Math.cos(s); return n[0] = i * g, n[1] = r * A, n[2] = -i * A, n[3] = r * g, n[4] = o * i * g - a * i * A + t, n[5] = o * r * A + a * r * g + e, n; } -function jc(n, t, e, i, r, s, o) { +function Uc(n, t, e, i, r, s, o) { s = s || [], o = o || 2; let a = 0; for (let A = t; A < e; A += i) { @@ -1296,7 +1296,7 @@ function jc(n, t, e, i, r, s, o) { } return s && s.length != a && (s.length = a), s; } -function qA(n, t, e, i, r, s, o) { +function ta(n, t, e, i, r, s, o) { o = o || []; const a = Math.cos(r), A = Math.sin(r), g = s[0], I = s[1]; let l = 0; @@ -1308,7 +1308,7 @@ function qA(n, t, e, i, r, s, o) { } return o && o.length != l && (o.length = l), o; } -function Gc(n, t, e, i, r, s, o, a) { +function zc(n, t, e, i, r, s, o, a) { a = a || []; const A = o[0], g = o[1]; let I = 0; @@ -1320,7 +1320,7 @@ function Gc(n, t, e, i, r, s, o, a) { } return a && a.length != I && (a.length = I), a; } -function Uc(n, t, e, i, r, s, o) { +function Xc(n, t, e, i, r, s, o) { o = o || []; let a = 0; for (let A = t; A < e; A += i) { @@ -1330,10 +1330,10 @@ function Uc(n, t, e, i, r, s, o) { } return o && o.length != a && (o.length = a), o; } -const po = Nc(), zc = [NaN, NaN]; -class Xc extends _n { +const po = jc(), Zc = [NaN, NaN]; +class Vc extends _n { constructor() { - super(), this.extent_ = GA(), this.extentRevision_ = -1, this.simplifiedGeometryMaxMinSquaredTolerance = 0, this.simplifiedGeometryRevision = 0, this.simplifyTransformedInternal = Fg( + super(), this.extent_ = zA(), this.extentRevision_ = -1, this.simplifiedGeometryMaxMinSquaredTolerance = 0, this.simplifiedGeometryRevision = 0, this.simplifyTransformedInternal = Gg( (t, e, i) => { if (!i) return this.getSimplifiedGeometry(e); @@ -1381,7 +1381,7 @@ class Xc extends _n { * @return {boolean} Contains (x, y). */ containsXY(t, e) { - return this.closestPointXY(t, e, zc, Number.MIN_VALUE) === 0; + return this.closestPointXY(t, e, Zc, Number.MIN_VALUE) === 0; } /** * Return the closest point of the geometry to the passed point as @@ -1422,9 +1422,9 @@ class Xc extends _n { getExtent(t) { if (this.extentRevision_ != this.getRevision()) { const e = this.computeExtent(this.extent_); - (isNaN(e[0]) || isNaN(e[1])) && UA(e), this.extentRevision_ = this.getRevision(); + (isNaN(e[0]) || isNaN(e[1])) && XA(e), this.extentRevision_ = this.getRevision(); } - return Kg(this.extent_, t); + return qg(this.extent_, t); } /** * Rotate the geometry around a given coordinate. This modifies the geometry @@ -1541,7 +1541,7 @@ class Xc extends _n { */ function(s, o, a) { const A = i.getExtent(), g = i.getWorldExtent(), I = Jn(g) / Jn(A); - Fc( + Gc( po, g[0], g[3], @@ -1551,7 +1551,7 @@ class Xc extends _n { 0, 0 ); - const l = jc( + const l = Uc( s, 0, s.length, @@ -1568,7 +1568,7 @@ class Xc extends _n { ), this; } } -class Ai extends Xc { +class Ai extends Vc { constructor() { super(), this.layout = "XY", this.stride = 2, this.flatCoordinates; } @@ -1579,7 +1579,7 @@ class Ai extends Xc { * @override */ computeExtent(t) { - return zg( + return Zg( this.flatCoordinates, 0, this.flatCoordinates.length, @@ -1686,7 +1686,7 @@ class Ai extends Xc { e = /** @type {Array} */ e[0]; } - r = e.length, t = Zc(r); + r = e.length, t = Wc(r); } this.layout = t, this.stride = r; } @@ -1720,7 +1720,7 @@ class Ai extends Xc { const i = this.getFlatCoordinates(); if (i) { const r = this.getStride(); - qA( + ta( i, 0, i.length, @@ -1746,7 +1746,7 @@ class Ai extends Xc { const r = this.getFlatCoordinates(); if (r) { const s = this.getStride(); - Gc( + zc( r, 0, r.length, @@ -1770,7 +1770,7 @@ class Ai extends Xc { const i = this.getFlatCoordinates(); if (i) { const r = this.getStride(); - Uc( + Xc( i, 0, i.length, @@ -1782,7 +1782,7 @@ class Ai extends Xc { } } } -function Zc(n) { +function Wc(n) { let t; return n == 2 ? t = "XY" : n == 3 ? t = "XYZ" : n == 4 && (t = "XYZM"), /** @type {import("./Geometry.js").GeometryLayout} */ t; @@ -1792,7 +1792,7 @@ function mo(n) { return n == "XY" ? t = 2 : n == "XYZ" || n == "XYM" ? t = 3 : n == "XYZM" && (t = 4), /** @type {number} */ t; } -function $A(n, t, e, i) { +function ea(n, t, e, i) { for (let r = 0; r < i; ++r) n[t++] = e[r]; return t; @@ -1805,7 +1805,7 @@ function vs(n, t, e, i) { } return t; } -function Vc(n, t, e, i, r) { +function Hc(n, t, e, i, r) { r = r || []; let s = 0; for (let o = 0, a = e.length; o < a; ++o) { @@ -1938,7 +1938,7 @@ class ws extends Ai { const e = this.getExtent(); if (hs(t, e)) { const i = this.getCenter(); - return t[0] <= i[0] && t[2] >= i[0] || t[1] <= i[1] && t[3] >= i[1] ? !0 : XA(t, this.intersectsCoordinate.bind(this)); + return t[0] <= i[0] && t[2] >= i[0] || t[1] <= i[1] && t[3] >= i[1] ? !0 : VA(t, this.intersectsCoordinate.bind(this)); } return !1; } @@ -1965,7 +1965,7 @@ class ws extends Ai { setCenterAndRadius(t, e, i) { this.setLayout(i, t, 0), this.flatCoordinates || (this.flatCoordinates = []); const r = this.flatCoordinates; - let s = $A(r, 0, t, this.stride); + let s = ea(r, 0, t, this.stride); r[s++] = r[0] + e; for (let o = 1, a = this.stride; o < a; ++o) r[s++] = r[o]; @@ -2003,11 +2003,11 @@ class ws extends Ai { rotate(t, e) { const i = this.getCenter(), r = this.getStride(); this.setCenter( - qA(i, 0, i.length, r, t, e, i) + ta(i, 0, i.length, r, t, e, i) ), this.changed(); } } -function ta(n, t, e, i) { +function na(n, t, e, i) { let r = 0; const s = n[e - i], o = n[e - i + 1]; let a = 0, A = 0; @@ -2017,11 +2017,11 @@ function ta(n, t, e, i) { } return r / 2; } -function Wc(n, t, e, i) { +function Yc(n, t, e, i) { let r = 0; for (let s = 0, o = e.length; s < o; ++s) { const a = e[s]; - r += ta(n, t, a, i), t = a; + r += na(n, t, a, i), t = a; } return r; } @@ -2058,7 +2058,7 @@ function bs(n, t, e, i, r) { } return r; } -function Hc(n, t, e, i, r) { +function Qc(n, t, e, i, r) { for (let s = 0, o = e.length; s < o; ++s) { const a = e[s]; r = bs(n, t, a, i, r), t = a; @@ -2117,7 +2117,7 @@ function Es(n, t, e, i, r, s, o, a, A, g, I) { } return g; } -function Yc(n, t, e, i, r, s, o, a, A, g, I) { +function Kc(n, t, e, i, r, s, o, a, A, g, I) { I = I || [NaN, NaN]; for (let l = 0, C = e.length; l < C; ++l) { const p = e[l]; @@ -2144,7 +2144,7 @@ function Ms(n, t, e, i, r) { r[s++] = n.slice(o, o + i); return r.length = s, r; } -function Qc(n, t, e, i, r) { +function Jc(n, t, e, i, r) { r = r !== void 0 ? r : []; let s = 0; for (let o = 0, a = e.length; o < a; ++o) { @@ -2159,8 +2159,8 @@ function Qc(n, t, e, i, r) { } return r.length = s, r; } -function Kc(n, t, e, i, r) { - return !XA( +function qc(n, t, e, i, r) { + return !VA( r, /** * @param {import("../../coordinate.js").Coordinate} coordinate Coordinate. @@ -2186,7 +2186,7 @@ function Ke(n, t, e, i, r, s) { } return o !== 0; } -function ea(n, t, e, i, r, s) { +function ia(n, t, e, i, r, s) { if (e.length === 0 || !Ke(n, t, e[0], i, r, s)) return !1; for (let o = 1, a = e.length; o < a; ++o) @@ -2194,7 +2194,7 @@ function ea(n, t, e, i, r, s) { return !1; return !0; } -function na(n, t, e, i, r) { +function ra(n, t, e, i, r) { let s; for (t += i; t < e; t += i) if (s = r( @@ -2205,7 +2205,7 @@ function na(n, t, e, i, r) { return !1; } function $i(n, t, e, i, r, s) { - return s = s ?? zA(GA(), n, t, e, i), hs(r, s) ? s[0] >= r[0] && s[2] <= r[2] || s[1] >= r[1] && s[3] <= r[3] ? !0 : na( + return s = s ?? ZA(zA(), n, t, e, i), hs(r, s) ? s[0] >= r[0] && s[2] <= r[2] || s[1] >= r[1] && s[3] <= r[3] ? !0 : ra( n, t, e, @@ -2217,11 +2217,11 @@ function $i(n, t, e, i, r, s) { * `false` otherwise. */ function(o, a) { - return Jg(r, o, a); + return $g(r, o, a); } ) : !1; } -function Jc(n, t, e, i, r) { +function $c(n, t, e, i, r) { return !!($i(n, t, e, i, r) || Ke( n, t, @@ -2252,13 +2252,13 @@ function Jc(n, t, e, i, r) { r[3] )); } -function qc(n, t, e, i, r) { - if (!Jc(n, t, e[0], i, r)) +function tl(n, t, e, i, r) { + if (!$c(n, t, e[0], i, r)) return !1; if (e.length === 1) return !0; for (let s = 1, o = e.length; s < o; ++s) - if (Kc( + if (qc( n, e[s - 1], e[s], @@ -2274,7 +2274,7 @@ function qc(n, t, e, i, r) { return !1; return !0; } -function ia(n, t, e, i, r, s, o) { +function sa(n, t, e, i, r, s, o) { const a = (e - t) / i; if (a < 3) { for (; t < e; t += i) @@ -2296,7 +2296,7 @@ function ia(n, t, e, i, r, s, o) { let p = 0; const m = n[C], c = n[C + 1], u = n[l], h = n[l + 1]; for (let d = C + i; d < l; d += i) { - const M = n[d], v = n[d + 1], f = ec(M, v, m, c, u, h); + const M = n[d], v = n[d + 1], f = ic(M, v, m, c, u, h); f > p && (I = d, p = f); } p > r && (A[(I - t) / i] = 1, C + i < I && g.push(C, I), I + i < l && g.push(I, l)); @@ -2308,7 +2308,7 @@ function ia(n, t, e, i, r, s, o) { function cn(n, t) { return t * Math.round(n / t); } -function $c(n, t, e, i, r, s, o) { +function el(n, t, e, i, r, s, o) { if (t == e) return o; let a = cn(n[t], r), A = cn(n[t + 1], r); @@ -2331,10 +2331,10 @@ function $c(n, t, e, i, r, s, o) { } return s[o++] = g, s[o++] = I, o; } -function tl(n, t, e, i, r, s, o, a) { +function nl(n, t, e, i, r, s, o, a) { for (let A = 0, g = e.length; A < g; ++A) { const I = e[A]; - o = $c( + o = el( n, t, I, @@ -2408,7 +2408,7 @@ class ei extends Ai { * @api */ getArea() { - return ta( + return na( this.flatCoordinates, 0, this.flatCoordinates.length, @@ -2437,7 +2437,7 @@ class ei extends Ai { */ getSimplifiedGeometryInternal(t) { const e = []; - return e.length = ia( + return e.length = sa( this.flatCoordinates, 0, this.flatCoordinates.length, @@ -2489,7 +2489,7 @@ class ei extends Ai { ), this.changed(); } } -function el(n, t, e, i, r, s, o) { +function il(n, t, e, i, r, s, o) { let a, A; const g = (e - t) / i; if (g === 1) @@ -2503,7 +2503,7 @@ function el(n, t, e, i, r, s, o) { const h = n[u], d = n[u + 1]; C += Math.sqrt((h - I) * (h - I) + (d - l) * (d - l)), p.push(C), I = h, l = d; } - const m = r * C, c = Og(p, m); + const m = r * C, c = Dg(p, m); c < 0 ? (A = (m - p[-c - 2]) / (p[-c - 1] - p[-c - 2]), a = t + (-c - 2) * i) : a = t + c * i; } o = o !== void 0 && o > 1 ? o : 2, s = s || new Array(o); @@ -2511,7 +2511,7 @@ function el(n, t, e, i, r, s, o) { s[I] = a === void 0 ? NaN : A === void 0 ? n[a + I] : fs(n[a + I], n[a + i + I], A); return s; } -function nl(n, t, e, i, r, s) { +function rl(n, t, e, i, r, s) { if (e == t) return null; let o; @@ -2541,7 +2541,7 @@ function nl(n, t, e, i, r, s) { ); return o.push(r), o; } -function il(n, t, e, i) { +function sl(n, t, e, i) { let r = n[t], s = n[t + 1], o = 0; for (let a = t + i; a < e; a += i) { const A = n[a], g = n[a + 1]; @@ -2572,7 +2572,7 @@ class Ui extends Ai { * @api */ appendCoordinate(t) { - NA(this.flatCoordinates, t), this.changed(); + jA(this.flatCoordinates, t), this.changed(); } /** * Make a complete copy of the geometry. @@ -2629,7 +2629,7 @@ class Ui extends Ai { * @api */ forEachSegment(t) { - return na( + return ra( this.flatCoordinates, 0, this.flatCoordinates.length, @@ -2652,7 +2652,7 @@ class Ui extends Ai { * @api */ getCoordinateAtM(t, e) { - return this.layout != "XYM" && this.layout != "XYZM" ? null : (e = e !== void 0 ? e : !1, nl( + return this.layout != "XYM" && this.layout != "XYZM" ? null : (e = e !== void 0 ? e : !1, rl( this.flatCoordinates, 0, this.flatCoordinates.length, @@ -2686,7 +2686,7 @@ class Ui extends Ai { * @api */ getCoordinateAt(t, e) { - return el( + return il( this.flatCoordinates, 0, this.flatCoordinates.length, @@ -2702,7 +2702,7 @@ class Ui extends Ai { * @api */ getLength() { - return il( + return sl( this.flatCoordinates, 0, this.flatCoordinates.length, @@ -2727,7 +2727,7 @@ class Ui extends Ai { */ getSimplifiedGeometryInternal(t) { const e = []; - return e.length = ia( + return e.length = sa( this.flatCoordinates, 0, this.flatCoordinates.length, @@ -2836,7 +2836,7 @@ class Tn extends Ai { * @override */ computeExtent(t) { - return Ug(this.flatCoordinates, t); + return Xg(this.flatCoordinates, t); } /** * Get the type of this geometry. @@ -2855,7 +2855,7 @@ class Tn extends Ai { * @override */ intersectsExtent(t) { - return Gg(t, this.flatCoordinates[0], this.flatCoordinates[1]); + return zg(t, this.flatCoordinates[0], this.flatCoordinates[1]); } /** * @param {!Array<*>} coordinates Coordinates. @@ -2864,7 +2864,7 @@ class Tn extends Ai { * @override */ setCoordinates(t, e) { - this.setLayout(e, t, 0), this.flatCoordinates || (this.flatCoordinates = []), this.flatCoordinates.length = $A( + this.setLayout(e, t, 0), this.flatCoordinates || (this.flatCoordinates = []), this.flatCoordinates.length = ea( this.flatCoordinates, 0, t, @@ -2872,7 +2872,7 @@ class Tn extends Ai { ), this.changed(); } } -function rl(n, t, e, i, r, s, o) { +function ol(n, t, e, i, r, s, o) { let a, A, g, I, l, C, p; const m = r[s + 1], c = []; for (let d = 0, M = e.length; d < M; ++d) { @@ -2881,14 +2881,14 @@ function rl(n, t, e, i, r, s, o) { l = n[a], p = n[a + 1], (m <= C && p <= m || C <= m && m <= p) && (g = (m - C) / (p - C) * (l - I) + I, c.push(g)), I = l, C = p; } let u = NaN, h = -1 / 0; - for (c.sort(DA), I = c[0], a = 1, A = c.length; a < A; ++a) { + for (c.sort(NA), I = c[0], a = 1, A = c.length; a < A; ++a) { l = c[a]; const d = Math.abs(l - I); - d > h && (g = (I + l) / 2, ea(n, t, e, i, g, m) && (u = g, h = d)), I = l; + d > h && (g = (I + l) / 2, ia(n, t, e, i, g, m) && (u = g, h = d)), I = l; } return isNaN(u) && (u = r[s]), [u, m, h]; } -function sl(n, t, e, i) { +function Al(n, t, e, i) { for (; t < e - i; ) { for (let r = 0; r < i; ++r) { const s = n[t + r]; @@ -2897,7 +2897,7 @@ function sl(n, t, e, i) { t += i, e -= i; } } -function ra(n, t, e, i) { +function oa(n, t, e, i) { let r = 0, s = n[e - i], o = n[e - i + 1]; for (; t < e; t += i) { const a = n[t], A = n[t + 1]; @@ -2905,10 +2905,10 @@ function ra(n, t, e, i) { } return r === 0 ? void 0 : r > 0; } -function ol(n, t, e, i, r) { +function al(n, t, e, i, r) { r = r !== void 0 ? r : !1; for (let s = 0, o = e.length; s < o; ++s) { - const a = e[s], A = ra( + const a = e[s], A = oa( n, t, a, @@ -2926,13 +2926,13 @@ function ol(n, t, e, i, r) { function vo(n, t, e, i, r) { r = r !== void 0 ? r : !1; for (let s = 0, o = e.length; s < o; ++s) { - const a = e[s], A = ra( + const a = e[s], A = oa( n, t, a, i ); - (s === 0 ? r && A || !r && !A : r && !A || !r && A) && sl(n, t, a, i), t = a; + (s === 0 ? r && A || !r && !A : r && !A || !r && A) && Al(n, t, a, i), t = a; } return t; } @@ -2965,7 +2965,7 @@ class qe extends Ai { * @api */ appendLinearRing(t) { - this.flatCoordinates ? NA(this.flatCoordinates, t.getFlatCoordinates()) : this.flatCoordinates = t.getFlatCoordinates().slice(), this.ends_.push(this.flatCoordinates.length), this.changed(); + this.flatCoordinates ? jA(this.flatCoordinates, t.getFlatCoordinates()) : this.flatCoordinates = t.getFlatCoordinates().slice(), this.ends_.push(this.flatCoordinates.length), this.changed(); } /** * Make a complete copy of the geometry. @@ -2991,14 +2991,14 @@ class qe extends Ai { */ closestPointXY(t, e, i, r) { return r < us(this.getExtent(), t, e) ? r : (this.maxDeltaRevision_ != this.getRevision() && (this.maxDelta_ = Math.sqrt( - Hc( + Qc( this.flatCoordinates, 0, this.ends_, this.stride, 0 ) - ), this.maxDeltaRevision_ = this.getRevision()), Yc( + ), this.maxDeltaRevision_ = this.getRevision()), Kc( this.flatCoordinates, 0, this.ends_, @@ -3018,7 +3018,7 @@ class qe extends Ai { * @override */ containsXY(t, e) { - return ea( + return ia( this.getOrientedFlatCoordinates(), 0, this.ends_, @@ -3033,7 +3033,7 @@ class qe extends Ai { * @api */ getArea() { - return Wc( + return Yc( this.getOrientedFlatCoordinates(), 0, this.ends_, @@ -3056,7 +3056,7 @@ class qe extends Ai { */ getCoordinates(t) { let e; - return t !== void 0 ? (e = this.getOrientedFlatCoordinates().slice(), vo(e, 0, this.ends_, this.stride, t)) : e = this.flatCoordinates, Qc(e, 0, this.ends_, this.stride); + return t !== void 0 ? (e = this.getOrientedFlatCoordinates().slice(), vo(e, 0, this.ends_, this.stride, t)) : e = this.flatCoordinates, Jc(e, 0, this.ends_, this.stride); } /** * @return {Array} Ends. @@ -3070,7 +3070,7 @@ class qe extends Ai { getFlatInteriorPoint() { if (this.flatInteriorPointRevision_ != this.getRevision()) { const t = Ni(this.getExtent()); - this.flatInteriorPoint_ = rl( + this.flatInteriorPoint_ = ol( this.getOrientedFlatCoordinates(), 0, this.ends_, @@ -3145,7 +3145,7 @@ class qe extends Ai { getOrientedFlatCoordinates() { if (this.orientedRevision_ != this.getRevision()) { const t = this.flatCoordinates; - ol(t, 0, this.ends_, this.stride) ? this.orientedFlatCoordinates_ = t : (this.orientedFlatCoordinates_ = t.slice(), this.orientedFlatCoordinates_.length = vo( + al(t, 0, this.ends_, this.stride) ? this.orientedFlatCoordinates_ = t : (this.orientedFlatCoordinates_ = t.slice(), this.orientedFlatCoordinates_.length = vo( this.orientedFlatCoordinates_, 0, this.ends_, @@ -3165,7 +3165,7 @@ class qe extends Ai { */ getSimplifiedGeometryInternal(t) { const e = [], i = []; - return e.length = tl( + return e.length = nl( this.flatCoordinates, 0, this.ends_, @@ -3193,7 +3193,7 @@ class qe extends Ai { * @override */ intersectsExtent(t) { - return qc( + return tl( this.getOrientedFlatCoordinates(), 0, this.ends_, @@ -3210,7 +3210,7 @@ class qe extends Ai { */ setCoordinates(t, e) { this.setLayout(e, t, 2), this.flatCoordinates || (this.flatCoordinates = []); - const i = Vc( + const i = Hc( this.flatCoordinates, 0, t, @@ -3221,7 +3221,7 @@ class qe extends Ai { } } function wo(n) { - if (ZA(n)) + if (WA(n)) throw new Error("Cannot create polygon from empty extent"); const t = n[0], e = n[1], i = n[2], r = n[3], s = [ t, @@ -3237,14 +3237,14 @@ function wo(n) { ]; return new qe(s, "XY", [s.length]); } -const Al = { +const gl = { /** * Indicates that tile loading failed * @type {number} */ ERROR: 3 }; -function sa(n, t, e = {}) { +function Aa(n, t, e = {}) { const i = { type: "Feature" }; return (e.id === 0 || e.id) && (i.id = e.id), e.bbox && (i.bbox = e.bbox), i.properties = t || {}, i.geometry = n, i; } @@ -3257,7 +3257,7 @@ function Se(n, t, e = {}) { throw new Error("coordinates must be at least 2 numbers long"); if (!bo(n[0]) || !bo(n[1])) throw new Error("coordinates must contain numbers"); - return sa({ + return Aa({ type: "Point", coordinates: n }, t, e); @@ -3274,7 +3274,7 @@ function $r(n, t, e = {}) { if (i[i.length - 1][r] !== i[0][r]) throw new Error("First and last Position are not equivalent."); } - return sa({ + return Aa({ type: "Polygon", coordinates: n }, t, e); @@ -3286,7 +3286,7 @@ function Rn(n, t = {}) { function bo(n) { return !isNaN(n) && n !== null && !Array.isArray(n); } -function al(n) { +function cl(n) { if (!n) throw new Error("coord is required"); if (!Array.isArray(n)) { @@ -3311,10 +3311,10 @@ function Eo(n) { "coords must be GeoJSON Feature, Geometry Object or an Array" ); } -function gl(n) { +function ll(n) { return n.type === "Feature" ? n.geometry : n; } -const Te = 11102230246251565e-32, jt = 134217729, cl = (3 + 8 * Te) * Te; +const Te = 11102230246251565e-32, jt = 134217729, Il = (3 + 8 * Te) * Te; function yr(n, t, e, i, r) { let s, o, a, A, g = t[0], I = i[0], l = 0, C = 0; I > g == I > -g ? (s = g, g = t[++l]) : (s = I, I = i[++C]); @@ -3328,7 +3328,7 @@ function yr(n, t, e, i, r) { o = s + I, A = o - s, a = s - (o - A) + (I - A), I = i[++C], s = o, a !== 0 && (r[p++] = a); return (s !== 0 || p === 0) && (r[p++] = s), p; } -function ll(n, t) { +function ul(n, t) { let e = t[0]; for (let i = 1; i < n; i++) e += t[i]; return e; @@ -3336,13 +3336,13 @@ function ll(n, t) { function ai(n) { return new Float64Array(n); } -const Il = (3 + 16 * Te) * Te, ul = (2 + 12 * Te) * Te, Cl = (9 + 64 * Te) * Te * Te, ln = ai(4), Mo = ai(8), xo = ai(12), So = ai(16), Zt = ai(4); -function hl(n, t, e, i, r, s, o) { +const Cl = (3 + 16 * Te) * Te, hl = (2 + 12 * Te) * Te, fl = (9 + 64 * Te) * Te * Te, ln = ai(4), Mo = ai(8), xo = ai(12), So = ai(16), Zt = ai(4); +function dl(n, t, e, i, r, s, o) { let a, A, g, I, l, C, p, m, c, u, h, d, M, v, f, y, w, x; const S = n - r, E = e - r, T = t - s, R = i - s; v = S * R, C = jt * S, p = C - (C - S), m = S - p, C = jt * R, c = C - (C - R), u = R - c, f = m * u - (v - p * c - m * c - p * u), y = T * E, C = jt * T, p = C - (C - T), m = T - p, C = jt * E, c = C - (C - E), u = E - c, w = m * u - (y - p * c - m * c - p * u), h = f - w, l = f - h, ln[0] = f - (h + l) + (l - w), d = v + h, l = d - v, M = v - (d - l) + (h - l), h = M - y, l = M - h, ln[1] = M - (h + l) + (l - y), x = d + h, l = x - d, ln[2] = d - (x - l) + (h - l), ln[3] = x; - let L = ll(4, ln), D = ul * o; - if (L >= D || -L >= D || (l = n - S, a = n - (S + l) + (l - r), l = e - E, g = e - (E + l) + (l - r), l = t - T, A = t - (T + l) + (l - s), l = i - R, I = i - (R + l) + (l - s), a === 0 && A === 0 && g === 0 && I === 0) || (D = Cl * o + cl * Math.abs(L), L += S * I + R * a - (T * g + E * A), L >= D || -L >= D)) return L; + let L = ul(4, ln), D = hl * o; + if (L >= D || -L >= D || (l = n - S, a = n - (S + l) + (l - r), l = e - E, g = e - (E + l) + (l - r), l = t - T, A = t - (T + l) + (l - s), l = i - R, I = i - (R + l) + (l - s), a === 0 && A === 0 && g === 0 && I === 0) || (D = fl * o + Il * Math.abs(L), L += S * I + R * a - (T * g + E * A), L >= D || -L >= D)) return L; v = a * R, C = jt * a, p = C - (C - a), m = a - p, C = jt * R, c = C - (C - R), u = R - c, f = m * u - (v - p * c - m * c - p * u), y = A * E, C = jt * A, p = C - (C - A), m = A - p, C = jt * E, c = C - (C - E), u = E - c, w = m * u - (y - p * c - m * c - p * u), h = f - w, l = f - h, Zt[0] = f - (h + l) + (l - w), d = v + h, l = d - v, M = v - (d - l) + (h - l), h = M - y, l = M - h, Zt[1] = M - (h + l) + (l - y), x = d + h, l = x - d, Zt[2] = d - (x - l) + (h - l), Zt[3] = x; const F = yr(4, ln, 4, Zt, Mo); v = S * I, C = jt * S, p = C - (C - S), m = S - p, C = jt * I, c = C - (C - I), u = I - c, f = m * u - (v - p * c - m * c - p * u), y = T * g, C = jt * T, p = C - (C - T), m = T - p, C = jt * g, c = C - (C - g), u = g - c, w = m * u - (y - p * c - m * c - p * u), h = f - w, l = f - h, Zt[0] = f - (h + l) + (l - w), d = v + h, l = d - v, M = v - (d - l) + (h - l), h = M - y, l = M - h, Zt[1] = M - (h + l) + (l - y), x = d + h, l = x - d, Zt[2] = d - (x - l) + (h - l), Zt[3] = x; @@ -3351,11 +3351,11 @@ function hl(n, t, e, i, r, s, o) { const k = yr(U, xo, 4, Zt, So); return So[k - 1]; } -function fl(n, t, e, i, r, s) { +function pl(n, t, e, i, r, s) { const o = (t - s) * (e - r), a = (n - r) * (i - s), A = o - a, g = Math.abs(o + a); - return Math.abs(A) >= Il * g ? A : -hl(n, t, e, i, r, s, g); + return Math.abs(A) >= Cl * g ? A : -dl(n, t, e, i, r, s, g); } -function dl(n, t) { +function ml(n, t) { var e, i, r = 0, s, o, a, A, g, I, l, C = n[0], p = n[1], m = t.length; for (e = 0; e < m; e++) { i = 0; @@ -3367,7 +3367,7 @@ function dl(n, t) { if (A <= 0 && o >= 0 || o <= 0 && A >= 0) return 0; } else if (g >= 0 && a <= 0 || g <= 0 && a >= 0) { - if (s = fl(o, A, a, g, 0, 0), s === 0) + if (s = pl(o, A, a, g, 0, 0), s === 0) return 0; (s > 0 && g > 0 && a <= 0 || s < 0 && g <= 0 && a > 0) && r++; } @@ -3381,18 +3381,18 @@ function Je(n, t, e = {}) { throw new Error("point is required"); if (!t) throw new Error("polygon is required"); - const i = al(n), r = gl(t), s = r.type, o = t.bbox; + const i = cl(n), r = ll(t), s = r.type, o = t.bbox; let a = r.coordinates; - if (o && pl(i, o) === !1) + if (o && yl(i, o) === !1) return !1; s === "Polygon" && (a = [a]); for (var A = 0; A < a.length; ++A) { - const g = dl(i, a[A]); + const g = ml(i, a[A]); if (g === 0 && !e.ignoreBoundary || g) return !0; } return !1; } -function pl(n, t) { +function yl(n, t) { return t[0] <= n[0] && t[1] <= n[1] && t[2] >= n[0] && t[3] >= n[1]; } function vr(n, t) { @@ -3400,21 +3400,21 @@ function vr(n, t) { if (Je(n, t.features[e])) return t.features[e]; } -function oa(n, t) { +function aa(n, t) { const e = t.geometry.coordinates[0][0], i = t.geometry.coordinates[0][1], r = t.geometry.coordinates[0][2], s = n.geometry.coordinates, o = t.properties.a.geom, a = t.properties.b.geom, A = t.properties.c.geom, g = [i[0] - e[0], i[1] - e[1]], I = [r[0] - e[0], r[1] - e[1]], l = [s[0] - e[0], s[1] - e[1]], C = [a[0] - o[0], a[1] - o[1]], p = [A[0] - o[0], A[1] - o[1]], m = (I[1] * l[0] - I[0] * l[1]) / (g[0] * I[1] - g[1] * I[0]), c = (g[0] * l[1] - g[1] * l[0]) / (g[0] * I[1] - g[1] * I[0]); return [ m * C[0] + c * p[0] + o[0], m * C[1] + c * p[1] + o[1] ]; } -function ml(n, t, e) { - const i = n.geometry.coordinates, r = e.geometry.coordinates, s = Math.atan2(i[0] - r[0], i[1] - r[1]), o = vl(s, t[0]); +function vl(n, t, e) { + const i = n.geometry.coordinates, r = e.geometry.coordinates, s = Math.atan2(i[0] - r[0], i[1] - r[1]), o = bl(s, t[0]); if (o === void 0) throw new Error("Unable to determine vertex index"); const a = t[1][o]; - return oa(n, a.features[0]); + return aa(n, a.features[0]); } -function yl(n, t, e, i, r, s, o, a) { +function wl(n, t, e, i, r, s, o, a) { let A; if (o && (A = vr(n, Rn([o]))), !A) if (e) { @@ -3422,13 +3422,13 @@ function yl(n, t, e, i, r, s, o, a) { A = vr(n, M); } else A = vr(n, t); - return a && a(A), A ? oa(n, A) : ml(n, i, r); + return a && a(A), A ? aa(n, A) : vl(n, i, r); } function he(n, t, e, i) { let r = Math.floor((n - t) / e); return r < 0 && (r = 0), r >= i && (r = i - 1), r; } -function vl(n, t) { +function bl(n, t) { let e = To(n - t[0]), i = Math.PI * 2, r; for (let s = 0; s < t.length; s++) { const o = (s + 1) % t.length, a = To(n - t[o]), A = Math.min(Math.abs(e), Math.abs(a)); @@ -3440,7 +3440,7 @@ function To(n, t = !1) { const e = 2 * Math.PI, i = n - Math.floor(n / e) * e; return t ? i : i > Math.PI ? i - e : i; } -function wl(n) { +function El(n) { const t = [0, 1, 2, 0].map((i) => n[i][0][0]), e = { a: { geom: n[0][0][1], index: n[0][1] }, b: { geom: n[1][0][1], index: n[1][1] }, @@ -3451,7 +3451,7 @@ function wl(n) { function ts(n, t, e, i, r, s = !1, o) { const a = n.map( (A) => { - (!o || o < 2.00703) && (A = bl(A)); + (!o || o < 2.00703) && (A = Ml(A)); const g = isFinite(A) ? t[A] : A === "c" ? i : (function() { const I = A.match(/^b(\d+)$/); if (I) return r[parseInt(I[1])]; @@ -3462,32 +3462,32 @@ function ts(n, t, e, i, r, s = !1, o) { return s ? [[g[1], g[0]], A] : [[g[0], g[1]], A]; } ); - return wl(a); + return El(a); } -function bl(n) { +function Ml(n) { return typeof n == "number" ? n : n.replace(/^(c|e|b)(?:ent|dgeNode|box)(\d+)?$/, "$1$2"); } -function El(n, t) { +function xl(n, t) { return t && t >= 2.00703 || Array.isArray(n[0]) ? n : n.map((e) => [ e.illstNodes, e.mercNodes, e.startEnd ]); } -const Ml = 2.00704; -function xl(n) { +const Sl = 2.00704; +function Tl(n) { return !!(n.version !== void 0 || !n.tins && n.points && n.tins_points); } -function Sl(n) { +function Rl(n) { return { points: n.points, - strictStatus: Rl(n), - verticesParams: kl(n), - centroid: _l(n), - edges: El(n.edges || []), + strictStatus: _l(n), + verticesParams: Pl(n), + centroid: Ol(n), + edges: xl(n.edges || []), edgeNodes: n.edgeNodes || [], - tins: Pl(n), - kinks: Ol(n.kinks_points), + tins: Ll(n), + kinks: Dl(n.kinks_points), yaxisMode: n.yaxisMode ?? "invert", strictMode: n.strictMode ?? "auto", vertexMode: n.vertexMode, @@ -3497,22 +3497,22 @@ function Sl(n) { xy: n.xy ?? [0, 0] }; } -function Tl(n) { - const t = Ll(n), e = t.tins; +function kl(n) { + const t = Bl(n), e = t.tins; return { compiled: t, tins: e, - points: Dl(e), + points: Nl(e), strictStatus: t.strict_status, verticesParams: t.vertices_params, centroid: t.centroid, kinks: t.kinks }; } -function Rl(n) { +function _l(n) { return n.strict_status ? n.strict_status : n.kinks_points ? "strict_error" : n.tins_points.length === 2 ? "loose" : "strict"; } -function kl(n) { +function Pl(n) { const t = { forw: [n.vertices_params[0]], bakw: [n.vertices_params[1]] @@ -3529,12 +3529,12 @@ function Ro(n, t) { n.centroid_point, n.vertices_points, t, - Ml + Sl ); return Rn([o]); }); } -function _l(n) { +function Ol(n) { return { forw: Se(n.centroid_point[0], { target: { @@ -3550,7 +3550,7 @@ function _l(n) { }) }; } -function Pl(n) { +function Ll(n) { const t = n.tins_points.length === 1 ? 0 : 1; return { forw: Rn( @@ -3581,7 +3581,7 @@ function Pl(n) { ) }; } -function Ol(n) { +function Dl(n) { if (n) return { bakw: Rn( @@ -3589,12 +3589,12 @@ function Ol(n) { ) }; } -function Ll(n) { +function Bl(n) { return JSON.parse( JSON.stringify(n).replace('"cent"', '"c"').replace(/"bbox(\d+)"/g, '"b$1"') ); } -function Dl(n) { +function Nl(n) { const t = [], e = n.forw.features; for (let i = 0; i < e.length; i++) { const r = e[i]; @@ -3669,11 +3669,11 @@ class oe { * 4. インデックスの作成 */ setCompiled(t) { - if (xl(t)) { - this.applyModernState(Sl(t)); + if (Tl(t)) { + this.applyModernState(Rl(t)); return; } - this.applyLegacyState(Tl(t)); + this.applyLegacyState(kl(t)); } applyModernState(t) { this.points = t.points, this.strict_status = t.strictStatus, this.vertices_params = t.verticesParams, this.centroid = t.centroid, this.edges = t.edges, this.edgeNodes = t.edgeNodes || [], this.tins = t.tins, this.addIndexedTin(), this.kinks = t.kinks, this.yaxisMode = t.yaxisMode ?? oe.YAXIS_INVERT, this.vertexMode = t.vertexMode ?? oe.VERTEX_PLAIN, this.strictMode = t.strictMode ?? oe.MODE_AUTO, t.bounds ? (this.bounds = t.bounds, this.boundsPolygon = t.boundsPolygon, this.xy = t.xy, this.wh = t.wh) : (this.bounds = void 0, this.boundsPolygon = void 0, this.xy = t.xy ?? [0, 0], t.wh && (this.wh = t.wh)); @@ -3771,7 +3771,7 @@ class oe { this.stateFull && (this.stateBackward == e ? g = this.stateTriangle : (this.stateBackward = e, this.stateTriangle = void 0), I = (C) => { this.stateTriangle = C; }); - let l = yl( + let l = wl( r, s, o, @@ -3788,7 +3788,7 @@ class oe { return l; } } -const dt = 20037508342789244e-9, Aa = [ +const dt = 20037508342789244e-9, ga = [ [0, 0], [0, 1], [1, 0], @@ -3798,7 +3798,7 @@ const dt = 20037508342789244e-9, Aa = [ function xs(n, t) { return Math.floor(Math.min(n[0], n[1]) / 4) * dt / 128 / Math.pow(2, t); } -function aa(n, t) { +function ca(n, t) { const e = []; for (let i = 0; i < n.length; i++) { const r = n[i], s = r[0] * Math.cos(t) - r[1] * Math.sin(t), o = r[0] * Math.sin(t) + r[1] * Math.cos(t); @@ -3808,7 +3808,7 @@ function aa(n, t) { } function es(n, t, e, i) { const r = xs(i, t); - return aa(Aa, e).map((s) => [ + return ca(ga, e).map((s) => [ s[0] * r + n[0], s[1] * r + n[1] ]); @@ -3844,7 +3844,7 @@ function ko(n, t) { return [e, i]; } const br = 256; -class ga { +class la { mainTin = null; subTins = []; _maxxy = 0; @@ -4149,7 +4149,7 @@ class ga { return wr(t, this._maxxy); } } -const Ss = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAMAAABrrFhUAAAAB3RJTUUH3QgIBToaSbAjlwAAABd0RVh0U29mdHdhcmUAR0xEUE5HIHZlciAzLjRxhaThAAAACHRwTkdHTEQzAAAAAEqAKR8AAAAEZ0FNQQAAsY8L/GEFAAAAA1BMVEX///+nxBvIAAAAAXRSTlMAQObYZgAAAFRJREFUeNrtwQEBAAAAgJD+r+4ICgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABgBDwABHHIJwwAAAABJRU5ErkJggg==", de = 256, Bl = ``; +const Ss = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAMAAABrrFhUAAAAB3RJTUUH3QgIBToaSbAjlwAAABd0RVh0U29mdHdhcmUAR0xEUE5HIHZlciAzLjRxhaThAAAACHRwTkdHTEQzAAAAAEqAKR8AAAAEZ0FNQQAAsY8L/GEFAAAAA1BMVEX///+nxBvIAAAAAXRSTlMAQObYZgAAAFRJREFUeNrtwQEBAAAAgJD+r+4ICgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABgBDwABHHIJwwAAAABJRU5ErkJggg==", de = 256, Fl = ``; async function Gn(n) { if (typeof n == "string") { const t = n.match(/\//) ? n : `pois/${n}`, e = await fetch(t); @@ -4159,7 +4159,7 @@ async function Gn(n) { } else return n; } -const ca = ["hide", "title", "icon", "selectedIcon"], Nl = [ +const Ia = ["hide", "title", "icon", "selectedIcon"], jl = [ "lnglat", "lng", "lat", @@ -4172,16 +4172,16 @@ function zi(n) { function is(n) { if (!zi(n) || n.type === "FeatureCollection") return !1; const t = n.layer, e = typeof t == "string", i = zi(t) && t.type === "FeatureCollection"; - return !(!e && !i || Nl.some((r) => n[r] !== void 0)); + return !(!e && !i || jl.some((r) => n[r] !== void 0)); } -function Fl(n) { - return is(n) && ca.some((t) => n[t] !== void 0); +function Gl(n) { + return is(n) && Ia.some((t) => n[t] !== void 0); } function _o(n) { const t = {}; for (const [e, i] of Object.entries(n)) if (e !== "layer") { - if (ca.includes(e)) { + if (Ia.includes(e)) { t[e] = i; continue; } @@ -4200,7 +4200,7 @@ function Po(n, t) { } return n; } -async function la(n, t) { +async function ua(n, t) { if (n = await Gn(n), Array.isArray(n)) { const e = n[0]; if (n.length > 0 && (typeof e == "string" || zi(e) && e.type === "FeatureCollection" || is(e))) { @@ -4224,7 +4224,7 @@ async function la(n, t) { } else if (n.type === "FeatureCollection") { const e = n.id || n.properties && n.properties.id || "main"; n = { [e]: je(n, e, t) }; - } else if (Fl(n)) { + } else if (Gl(n)) { const e = await Gn(n.layer), i = e.id || e.properties && e.properties.id || "main", r = je(e, i, t); n = { [i]: Po(r, _o(n)) }; } else @@ -4271,7 +4271,7 @@ function ii(n, t, e = {}) { const i = { type: "Feature" }; return (e.id === 0 || e.id) && (i.id = e.id), e.bbox && (i.bbox = e.bbox), i.properties = t || {}, i.geometry = n, i; } -function Ia(n, t, e = {}) { +function Ca(n, t, e = {}) { if (!n) throw new Error("coordinates is required"); if (!Array.isArray(n)) @@ -4285,7 +4285,7 @@ function Ia(n, t, e = {}) { coordinates: n }, t, e); } -function ua(n, t, e = {}) { +function ha(n, t, e = {}) { for (const r of n) { if (r.length < 4) throw new Error( @@ -4302,7 +4302,7 @@ function ua(n, t, e = {}) { coordinates: n }, t, e); } -function jl(n, t, e = {}) { +function Ul(n, t, e = {}) { if (n.length < 2) throw new Error("coordinates must be an array of two or more positions"); return ii({ @@ -4317,7 +4317,7 @@ function Oo(n, t = {}) { function Lo(n) { return !isNaN(n) && n !== null && !Array.isArray(n); } -function Gl(n) { +function zl(n) { if (!n) throw new Error("coord is required"); if (!Array.isArray(n)) { @@ -4330,10 +4330,10 @@ function Gl(n) { return [...n]; throw new Error("coord must be GeoJSON Point or an Array of numbers"); } -function Ul(n) { +function Xl(n) { return n.type === "Feature" ? n.geometry : n; } -function Ca(n, t, e) { +function fa(n, t, e) { if (n !== null) for (var i, r, s, o, a, A, g, I = 0, l = 0, C, p = n.type, m = p === "FeatureCollection", c = p === "Feature", u = m ? n.features.length : 1, h = 0; h < u; h++) { g = m ? ( @@ -4430,7 +4430,7 @@ function Ca(n, t, e) { for (i = 0; i < o.geometries.length; i++) if ( // @ts-expect-error: Known type conflict - Ca(o.geometries[i], t) === !1 + fa(o.geometries[i], t) === !1 ) return !1; break; @@ -4441,7 +4441,7 @@ function Ca(n, t, e) { } } } -const Re = 11102230246251565e-32, Gt = 134217729, zl = (3 + 8 * Re) * Re; +const Re = 11102230246251565e-32, Gt = 134217729, Zl = (3 + 8 * Re) * Re; function Er(n, t, e, i, r) { let s, o, a, A, g = t[0], I = i[0], l = 0, C = 0; I > g == I > -g ? (s = g, g = t[++l]) : (s = I, I = i[++C]); @@ -4455,7 +4455,7 @@ function Er(n, t, e, i, r) { o = s + I, A = o - s, a = s - (o - A) + (I - A), I = i[++C], s = o, a !== 0 && (r[p++] = a); return (s !== 0 || p === 0) && (r[p++] = s), p; } -function Xl(n, t) { +function Vl(n, t) { let e = t[0]; for (let i = 1; i < n; i++) e += t[i]; return e; @@ -4463,13 +4463,13 @@ function Xl(n, t) { function gi(n) { return new Float64Array(n); } -const Zl = (3 + 16 * Re) * Re, Vl = (2 + 12 * Re) * Re, Wl = (9 + 64 * Re) * Re * Re, In = gi(4), Do = gi(8), Bo = gi(12), No = gi(16), Vt = gi(4); -function Hl(n, t, e, i, r, s, o) { +const Wl = (3 + 16 * Re) * Re, Hl = (2 + 12 * Re) * Re, Yl = (9 + 64 * Re) * Re * Re, In = gi(4), Do = gi(8), Bo = gi(12), No = gi(16), Vt = gi(4); +function Ql(n, t, e, i, r, s, o) { let a, A, g, I, l, C, p, m, c, u, h, d, M, v, f, y, w, x; const S = n - r, E = e - r, T = t - s, R = i - s; v = S * R, C = Gt * S, p = C - (C - S), m = S - p, C = Gt * R, c = C - (C - R), u = R - c, f = m * u - (v - p * c - m * c - p * u), y = T * E, C = Gt * T, p = C - (C - T), m = T - p, C = Gt * E, c = C - (C - E), u = E - c, w = m * u - (y - p * c - m * c - p * u), h = f - w, l = f - h, In[0] = f - (h + l) + (l - w), d = v + h, l = d - v, M = v - (d - l) + (h - l), h = M - y, l = M - h, In[1] = M - (h + l) + (l - y), x = d + h, l = x - d, In[2] = d - (x - l) + (h - l), In[3] = x; - let L = Xl(4, In), D = Vl * o; - if (L >= D || -L >= D || (l = n - S, a = n - (S + l) + (l - r), l = e - E, g = e - (E + l) + (l - r), l = t - T, A = t - (T + l) + (l - s), l = i - R, I = i - (R + l) + (l - s), a === 0 && A === 0 && g === 0 && I === 0) || (D = Wl * o + zl * Math.abs(L), L += S * I + R * a - (T * g + E * A), L >= D || -L >= D)) return L; + let L = Vl(4, In), D = Hl * o; + if (L >= D || -L >= D || (l = n - S, a = n - (S + l) + (l - r), l = e - E, g = e - (E + l) + (l - r), l = t - T, A = t - (T + l) + (l - s), l = i - R, I = i - (R + l) + (l - s), a === 0 && A === 0 && g === 0 && I === 0) || (D = Yl * o + Zl * Math.abs(L), L += S * I + R * a - (T * g + E * A), L >= D || -L >= D)) return L; v = a * R, C = Gt * a, p = C - (C - a), m = a - p, C = Gt * R, c = C - (C - R), u = R - c, f = m * u - (v - p * c - m * c - p * u), y = A * E, C = Gt * A, p = C - (C - A), m = A - p, C = Gt * E, c = C - (C - E), u = E - c, w = m * u - (y - p * c - m * c - p * u), h = f - w, l = f - h, Vt[0] = f - (h + l) + (l - w), d = v + h, l = d - v, M = v - (d - l) + (h - l), h = M - y, l = M - h, Vt[1] = M - (h + l) + (l - y), x = d + h, l = x - d, Vt[2] = d - (x - l) + (h - l), Vt[3] = x; const F = Er(4, In, 4, Vt, Do); v = S * I, C = Gt * S, p = C - (C - S), m = S - p, C = Gt * I, c = C - (C - I), u = I - c, f = m * u - (v - p * c - m * c - p * u), y = T * g, C = Gt * T, p = C - (C - T), m = T - p, C = Gt * g, c = C - (C - g), u = g - c, w = m * u - (y - p * c - m * c - p * u), h = f - w, l = f - h, Vt[0] = f - (h + l) + (l - w), d = v + h, l = d - v, M = v - (d - l) + (h - l), h = M - y, l = M - h, Vt[1] = M - (h + l) + (l - y), x = d + h, l = x - d, Vt[2] = d - (x - l) + (h - l), Vt[3] = x; @@ -4478,11 +4478,11 @@ function Hl(n, t, e, i, r, s, o) { const k = Er(U, Bo, 4, Vt, No); return No[k - 1]; } -function Yl(n, t, e, i, r, s) { +function Kl(n, t, e, i, r, s) { const o = (t - s) * (e - r), a = (n - r) * (i - s), A = o - a, g = Math.abs(o + a); - return Math.abs(A) >= Zl * g ? A : -Hl(n, t, e, i, r, s, g); + return Math.abs(A) >= Wl * g ? A : -Ql(n, t, e, i, r, s, g); } -function Ql(n, t) { +function Jl(n, t) { var e, i, r = 0, s, o, a, A, g, I, l, C = n[0], p = n[1], m = t.length; for (e = 0; e < m; e++) { i = 0; @@ -4494,7 +4494,7 @@ function Ql(n, t) { if (A <= 0 && o >= 0 || o <= 0 && A >= 0) return 0; } else if (g >= 0 && a <= 0 || g <= 0 && a >= 0) { - if (s = Yl(o, A, a, g, 0, 0), s === 0) + if (s = Kl(o, A, a, g, 0, 0), s === 0) return 0; (s > 0 && g > 0 && a <= 0 || s < 0 && g <= 0 && a > 0) && r++; } @@ -4503,28 +4503,28 @@ function Ql(n, t) { } return r % 2 !== 0; } -function Kl(n, t, e = {}) { +function ql(n, t, e = {}) { if (!n) throw new Error("point is required"); if (!t) throw new Error("polygon is required"); - const i = Gl(n), r = Ul(t), s = r.type, o = t.bbox; + const i = zl(n), r = Xl(t), s = r.type, o = t.bbox; let a = r.coordinates; - if (o && Jl(i, o) === !1) + if (o && $l(i, o) === !1) return !1; s === "Polygon" && (a = [a]); for (var A = 0; A < a.length; ++A) { - const g = Ql(i, a[A]); + const g = Jl(i, a[A]); if (g === 0 && !e.ignoreBoundary) return !0; if (g) return !0; } return !1; } -function Jl(n, t) { +function $l(n, t) { return t[0] <= n[0] && t[1] <= n[1] && t[2] >= n[0] && t[3] >= n[1]; } -class ha { - constructor(t = [], e = ql) { +class da { + constructor(t = [], e = tI) { if (this.data = t, this.length = this.data.length, this.compare = e, this.length > 0) for (let i = (this.length >> 1) - 1; i >= 0; i--) this._down(i); } @@ -4559,10 +4559,10 @@ class ha { e[t] = s; } } -function ql(n, t) { +function tI(n, t) { return n < t ? -1 : n > t ? 1 : 0; } -const ke = 11102230246251565e-32, Ut = 134217729, $l = (3 + 8 * ke) * ke; +const ke = 11102230246251565e-32, Ut = 134217729, eI = (3 + 8 * ke) * ke; function Mr(n, t, e, i, r) { let s, o, a, A, g = t[0], I = i[0], l = 0, C = 0; I > g == I > -g ? (s = g, g = t[++l]) : (s = I, I = i[++C]); @@ -4576,7 +4576,7 @@ function Mr(n, t, e, i, r) { o = s + I, A = o - s, a = s - (o - A) + (I - A), I = i[++C], s = o, a !== 0 && (r[p++] = a); return (s !== 0 || p === 0) && (r[p++] = s), p; } -function tI(n, t) { +function nI(n, t) { let e = t[0]; for (let i = 1; i < n; i++) e += t[i]; return e; @@ -4584,13 +4584,13 @@ function tI(n, t) { function ci(n) { return new Float64Array(n); } -const eI = (3 + 16 * ke) * ke, nI = (2 + 12 * ke) * ke, iI = (9 + 64 * ke) * ke * ke, un = ci(4), Fo = ci(8), jo = ci(12), Go = ci(16), Wt = ci(4); -function rI(n, t, e, i, r, s, o) { +const iI = (3 + 16 * ke) * ke, rI = (2 + 12 * ke) * ke, sI = (9 + 64 * ke) * ke * ke, un = ci(4), Fo = ci(8), jo = ci(12), Go = ci(16), Wt = ci(4); +function oI(n, t, e, i, r, s, o) { let a, A, g, I, l, C, p, m, c, u, h, d, M, v, f, y, w, x; const S = n - r, E = e - r, T = t - s, R = i - s; v = S * R, C = Ut * S, p = C - (C - S), m = S - p, C = Ut * R, c = C - (C - R), u = R - c, f = m * u - (v - p * c - m * c - p * u), y = T * E, C = Ut * T, p = C - (C - T), m = T - p, C = Ut * E, c = C - (C - E), u = E - c, w = m * u - (y - p * c - m * c - p * u), h = f - w, l = f - h, un[0] = f - (h + l) + (l - w), d = v + h, l = d - v, M = v - (d - l) + (h - l), h = M - y, l = M - h, un[1] = M - (h + l) + (l - y), x = d + h, l = x - d, un[2] = d - (x - l) + (h - l), un[3] = x; - let L = tI(4, un), D = nI * o; - if (L >= D || -L >= D || (l = n - S, a = n - (S + l) + (l - r), l = e - E, g = e - (E + l) + (l - r), l = t - T, A = t - (T + l) + (l - s), l = i - R, I = i - (R + l) + (l - s), a === 0 && A === 0 && g === 0 && I === 0) || (D = iI * o + $l * Math.abs(L), L += S * I + R * a - (T * g + E * A), L >= D || -L >= D)) return L; + let L = nI(4, un), D = rI * o; + if (L >= D || -L >= D || (l = n - S, a = n - (S + l) + (l - r), l = e - E, g = e - (E + l) + (l - r), l = t - T, A = t - (T + l) + (l - s), l = i - R, I = i - (R + l) + (l - s), a === 0 && A === 0 && g === 0 && I === 0) || (D = sI * o + eI * Math.abs(L), L += S * I + R * a - (T * g + E * A), L >= D || -L >= D)) return L; v = a * R, C = Ut * a, p = C - (C - a), m = a - p, C = Ut * R, c = C - (C - R), u = R - c, f = m * u - (v - p * c - m * c - p * u), y = A * E, C = Ut * A, p = C - (C - A), m = A - p, C = Ut * E, c = C - (C - E), u = E - c, w = m * u - (y - p * c - m * c - p * u), h = f - w, l = f - h, Wt[0] = f - (h + l) + (l - w), d = v + h, l = d - v, M = v - (d - l) + (h - l), h = M - y, l = M - h, Wt[1] = M - (h + l) + (l - y), x = d + h, l = x - d, Wt[2] = d - (x - l) + (h - l), Wt[3] = x; const F = Mr(4, un, 4, Wt, Fo); v = S * I, C = Ut * S, p = C - (C - S), m = S - p, C = Ut * I, c = C - (C - I), u = I - c, f = m * u - (v - p * c - m * c - p * u), y = T * g, C = Ut * T, p = C - (C - T), m = T - p, C = Ut * g, c = C - (C - g), u = g - c, w = m * u - (y - p * c - m * c - p * u), h = f - w, l = f - h, Wt[0] = f - (h + l) + (l - w), d = v + h, l = d - v, M = v - (d - l) + (h - l), h = M - y, l = M - h, Wt[1] = M - (h + l) + (l - y), x = d + h, l = x - d, Wt[2] = d - (x - l) + (h - l), Wt[3] = x; @@ -4603,27 +4603,27 @@ function Uo(n, t, e, i, r, s) { const o = (t - s) * (e - r), a = (n - r) * (i - s), A = o - a; if (o === 0 || a === 0 || o > 0 != a > 0) return A; const g = Math.abs(o + a); - return Math.abs(A) >= eI * g ? A : -rI(n, t, e, i, r, s, g); + return Math.abs(A) >= iI * g ? A : -oI(n, t, e, i, r, s, g); } -function sI(n, t) { - const e = new ha([], fa); - return AI(n, e), gI(e, t); +function AI(n, t) { + const e = new da([], pa); + return gI(n, e), lI(e, t); } -function fa(n, t) { +function pa(n, t) { return n.p.x > t.p.x ? 1 : n.p.x < t.p.x || n.p.x === t.p.x && (n.featureId !== t.featureId || n.ringId !== t.ringId) && n.isLeftEndpoint && !t.isLeftEndpoint ? -1 : n.p.y !== t.p.y ? n.p.y > t.p.y ? 1 : -1 : 1; } -function oI(n, t) { +function aI(n, t) { return n.rightSweepEvent.p.x > t.rightSweepEvent.p.x ? 1 : n.rightSweepEvent.p.x < t.rightSweepEvent.p.x ? -1 : n.rightSweepEvent.p.y !== t.rightSweepEvent.p.y ? n.rightSweepEvent.p.y < t.rightSweepEvent.p.y ? 1 : -1 : 1; } -function AI(n, t) { +function gI(n, t) { { const e = n.features; for (let i = 0; i < e.length; i++) - aI(e[i], t); + cI(e[i], t); } } var Ei = 0, Mi = 0, xi = 0; -function aI(n, t) { +function cI(n, t) { const e = n.type === "Feature" ? n.geometry : n; let i = e.coordinates; (e.type === "Polygon" || e.type === "MultiLineString") && (i = [i]), e.type === "LineString" && (i = [[i]]); @@ -4634,7 +4634,7 @@ function aI(n, t) { for (let A = 0; A < i[r][s].length - 1; A++) { a = i[r][s][A + 1]; const g = new zo(o, Ei, Mi, xi), I = new zo(a, Ei, Mi, xi + 1); - g.otherEvent = I, I.otherEvent = g, fa(g, I) > 0 ? (I.isLeftEndpoint = !0, g.isLeftEndpoint = !1) : (g.isLeftEndpoint = !0, I.isLeftEndpoint = !1), t.push(g), t.push(I), o = a, xi = xi + 1; + g.otherEvent = I, I.otherEvent = g, pa(g, I) > 0 ? (I.isLeftEndpoint = !0, g.isLeftEndpoint = !1) : (g.isLeftEndpoint = !0, I.isLeftEndpoint = !1), t.push(g), t.push(I), o = a, xi = xi + 1; } } Ei = Ei + 1; @@ -4653,17 +4653,17 @@ var zo = class { return [this.p.x, this.p.y]; } }; -function gI(n, t = !1) { - const e = [], i = new ha([], oI); +function lI(n, t = !1) { + const e = [], i = new da([], aI); for (; n.length; ) { const r = n.pop(); if (r.isLeftEndpoint) { - const s = new cI(r); + const s = new II(r); for (let o = 0; o < i.data.length; o++) { const a = i.data[o]; if (t && a.leftSweepEvent.featureId === r.featureId) continue; - const A = lI(s, a); + const A = uI(s, a); A !== !1 && e.push(A); } i.push(s); @@ -4671,13 +4671,13 @@ function gI(n, t = !1) { } return e; } -var cI = class { +var II = class { /** @param event must have otherEvent non-null */ constructor(n) { this.leftSweepEvent = n, this.rightSweepEvent = n.otherEvent; } }; -function lI(n, t) { +function uI(n, t) { if (n === null || t === null) return !1; const e = n.leftSweepEvent.p.x, i = n.leftSweepEvent.p.y, r = n.rightSweepEvent.p.x, s = n.rightSweepEvent.p.y, o = t.leftSweepEvent.p.x, a = t.leftSweepEvent.p.y, A = t.rightSweepEvent.p.x, g = t.rightSweepEvent.p.y, I = Uo(e, i, r, s, o, a), l = Uo(e, i, r, s, A, g); if (I > 0 && l > 0) return !1; @@ -4705,11 +4705,11 @@ function lI(n, t) { } return !1; } -function II(n, t, e = {}) { +function CI(n, t, e = {}) { const { removeDuplicates: i = !0, ignoreSelfIntersections: r = !0 } = e; let s = []; n.type === "FeatureCollection" ? s = s.concat(n.features) : n.type === "Feature" ? s.push(n) : (n.type === "LineString" || n.type === "Polygon" || n.type === "MultiLineString" || n.type === "MultiPolygon") && s.push(ii(n)), t.type === "FeatureCollection" ? s = s.concat(t.features) : t.type === "Feature" ? s.push(t) : (t.type === "LineString" || t.type === "Polygon" || t.type === "MultiLineString" || t.type === "MultiPolygon") && s.push(ii(t)); - const o = sI( + const o = AI( Oo(s), r ); @@ -4722,18 +4722,18 @@ function II(n, t, e = {}) { }); } else a = o; - return Oo(a.map((A) => Ia(A))); + return Oo(a.map((A) => Ca(A))); } -function uI(n, t = {}) { +function hI(n, t = {}) { let e = 0, i = 0, r = 0; - return Ca( + return fa( n, function(s) { e += s[0], i += s[1], r++; } - ), Ia([e / r, i / r], t.properties); + ), Ca([e / r, i / r], t.properties); } -const CI = [ +const fI = [ { attr: "app-id", prop: "appId", kind: "string", startup: !0, option: "appid" }, { attr: "app-src", prop: "appSrc", kind: "string", startup: !0 }, { attr: "map-id", prop: "mapId", kind: "string", state: "change" }, @@ -4754,7 +4754,7 @@ const CI = [ { attr: "center-marker-src", prop: "centerMarkerSrc", kind: "string", dom: !0 }, // 範囲外の POI を描かない指定(起動後にも変えられる) { attr: "hide-outside-pois", prop: "hideOutsidePois", kind: "boolean", option: "hideOutsidePois" } -], hI = [ +], dI = [ { prop: "setting", startup: !0, option: "setting" }, { prop: "restore", startup: !0, option: "restore" }, { prop: "restoreExtensionKeys", startup: !0, option: "restoreExtensionKeys" }, @@ -4769,32 +4769,32 @@ const CI = [ { prop: "iconTemplate", option: "iconTemplate" } ]; [ - ...CI.filter((n) => n.startup).map((n) => n.prop), - ...hI.filter((n) => n.startup).map((n) => n.prop) + ...fI.filter((n) => n.startup).map((n) => n.prop), + ...dI.filter((n) => n.startup).map((n) => n.prop) ]; const Xo = (n) => typeof n == "string" || !!n && typeof n == "object" && Object.values(n).every((t) => typeof t == "string"); -function fI(n) { +function pI(n) { const t = n; return !t || typeof t != "object" || Array.isArray(t) || Array.isArray(t.label) || Array.isArray(t.value) ? !1 : (t.from === "manifest" || t.from === "canvas") && Xo(t.label) && Xo(t.value); } function xr(n) { return typeof n == "object" && n !== null && !Array.isArray(n); } -function da(n, t) { +function ma(n, t) { if (!xr(n)) return; const e = {}; if (typeof n.manifest == "string" && (e.manifest = n.manifest), typeof n.canvas == "string" && (e.canvas = n.canvas), typeof n.image == "string" && (e.image = n.image), typeof n.copiedAt == "string" && (e.copiedAt = n.copiedAt), xr(n.bindings) && (e.bindings = n.bindings), xr(n.copiedValues) && (e.copiedValues = n.copiedValues), Array.isArray(n.copiedMetadata)) { - const i = n.copiedMetadata.filter(fI), r = n.copiedMetadata.length - i.length; + const i = n.copiedMetadata.filter(pI), r = n.copiedMetadata.length - i.length; r > 0 && t !== void 0 && console.warn( `Maplat: ignored ${r} malformed entries in iiif.copiedMetadata (mapID: "${t}").` ), e.copiedMetadata = i; } return e; } -function pa(n) { +function ya(n) { return n === "all" || n === "hidden" ? n : void 0; } -function ma(n) { +function va(n) { class t extends n { weiwudi; _map; @@ -4832,14 +4832,14 @@ function ma(n) { static isMapbox_ = !1; static isMapLibre_ = !1; initialize(i) { - if (i = me(i), this.mapID = i.mapID, this.homePosition = i.homePosition, this.mercZoom = i.mercZoom, this.label = i.label, this.maxZoom = i.maxZoom, this.minZoom = i.minZoom, this.poiTemplate = i.poiTemplate, this.poiStyle = i.poiStyle, this.iconTemplate = i.iconTemplate, this.icon = i.icon, this.selectedIcon = i.selectedIcon, this.mercatorXShift = i.mercatorXShift, this.mercatorYShift = i.mercatorYShift, this.weiwudi = i.weiwudi, this.iiif = da(i.iiif, this.mapID), this.iiifMetadataDisplay = pa(i.iiifMetadata), i.envelopeLngLats) { + if (i = me(i), this.mapID = i.mapID, this.homePosition = i.homePosition, this.mercZoom = i.mercZoom, this.label = i.label, this.maxZoom = i.maxZoom, this.minZoom = i.minZoom, this.poiTemplate = i.poiTemplate, this.poiStyle = i.poiStyle, this.iconTemplate = i.iconTemplate, this.icon = i.icon, this.selectedIcon = i.selectedIcon, this.mercatorXShift = i.mercatorXShift, this.mercatorYShift = i.mercatorYShift, this.weiwudi = i.weiwudi, this.iiif = ma(i.iiif, this.mapID), this.iiifMetadataDisplay = ya(i.iiifMetadata), i.envelopeLngLats) { const a = i.envelopeLngLats.map( (A) => qt(A, "EPSG:4326", "EPSG:3857") ); - a.push(a[0]), this.envelope = ua([a]), this.centroid = uI(this.envelope).geometry?.coordinates; + a.push(a[0]), this.envelope = ha([a]), this.centroid = hI(this.envelope).geometry?.coordinates; } for (let o = 0; o < Kn.length; o++) { - const a = Kn[o], A = kg[o]; + const a = Kn[o], A = Pg[o]; this.set(a, i[A] || i[a]); } const r = i.thumbnail ? new Promise((o) => { @@ -4853,7 +4853,7 @@ function ma(n) { }).catch((o) => { this.thumbnail = `./tmbs/${i.mapID || i.sourceID}_menu.jpg`; }), s = this.resolvePois(i.pois); - this.initialWait = Promise.all([s, r]), pI(this); + this.initialWait = Promise.all([s, r]), yI(this); } static isBasemap() { return this.isBasemap_; @@ -5003,17 +5003,17 @@ function ma(n) { } mercsFromGPSValue(i, r) { const s = qt(i, "EPSG:4326", "EPSG:3857"), o = i[1] * Math.PI / 180, a = r / Math.cos(o); - return Aa.map((A) => [ + return ga.map((A) => [ A[0] * a + s[0], A[1] * a + s[1] ]); } // 与えられた差分行列を回転。theta無指定の場合は自動取得 rotateMatrix(i, r) { - return r === void 0 && (r = this.getMap().getView().getRotation()), aa(i, r); + return r === void 0 && (r = this.getMap().getView().getRotation()), ca(i, r); } async resolvePois(i) { - this.pois = await la(i || [], { + this.pois = await ua(i || [], { name: this.officialTitle || this.title, namespace: this.mapID }); @@ -5142,19 +5142,19 @@ function ma(n) { } return t; } -function ya(n) { - class t extends ma(n) { +function wa(n) { + class t extends va(n) { static isBasemap_ = !0; static isWmts_ = !0; insideCheckXy(i) { - return this.envelope ? Kl(i, this.envelope) : !0; + return this.envelope ? ql(i, this.envelope) : !0; } insideCheckSysCoord(i) { return this.insideCheckXy(i); } modulateXyInside(i) { if (!this.centroid) return i; - const r = jl([i, this.centroid]), s = II(this.envelope, r); + const r = Ul([i, this.centroid]), s = CI(this.envelope, r); return s.features.length > 0 && s.features[0].geometry ? s.features[0].geometry.coordinates : i; } modulateSysCoordInside(i) { @@ -5198,8 +5198,8 @@ function ya(n) { } return t; } -function dI(n) { - class t extends ma(n) { +function mI(n) { + class t extends va(n) { static isBasemap_ = !1; static isWmts_ = !1; width = 0; @@ -5241,10 +5241,10 @@ function dI(n) { return t; } const rs = (n) => (n || "").match(/^(?:google(?:_(?:roadmap|satellite|hybrid|terrain))?|mapbox|maplibre)$/); -function va(n) { +function ba(n) { return n = me(n), n.imageExtension || (n.imageExtension = "jpg"), rs(n.maptype) ? (delete n.url, delete n.urls) : n.mapID && !n.url && !n.urls && (n.url = n.tms ? `tiles/${n.mapID}/{z}/{x}/{-y}.${n.imageExtension}` : `tiles/${n.mapID}/{z}/{x}/{y}.${n.imageExtension}`), n; } -function pI(n) { +function yI(n) { const t = n; n.setTileLoadFunction( (function() { @@ -5258,7 +5258,7 @@ function pI(n) { const I = r.get(A) ?? 0; I >= i.length || (r.set(A, I + 1), setTimeout(() => { const l = t.getMap?.()?.getTargetElement?.(); - l && !l.isConnected || A.getState?.() === Al.ERROR && A.load(); + l && !l.isConnected || A.getState?.() === gl.ERROR && A.load(); }, i[I])); }, a = function(A, g, I, l, C, p, m) { return new Promise((c, u) => { @@ -5291,7 +5291,7 @@ function pI(n) { for (; m < 0 || m >= 256; ) m < 0 ? (m = m + 256, C++) : (m = m - 256, C--); const c = document.createElement("div"); - c.innerHTML = Bl; + c.innerHTML = Fl; const u = c.childNodes[0], h = [ [[I, l, C], 0, 0, 256 - p, 256 - m] ]; @@ -5344,9 +5344,9 @@ function pI(n) { })() ); } -class kn extends ya(_A) { +class kn extends wa(OA) { constructor(t = {}) { - const e = va(t); + const e = ba(t); if (super(e), t.mapID && (this.mapID = t.mapID), t.mapID === "morioka_ndl_affine") { const i = this.getTileUrlFunction(); this.setTileUrlFunction((r, s, o) => i(r, s, o)); @@ -5371,7 +5371,7 @@ class Zi extends kn { super(t), this.style = t.style || "https://tile.openstreetmap.jp/styles/osm-bright/style.json", this.maplibreMap = t.maplibreMap; } } -function mI(n, t) { +function vI(n, t) { const i = n ? { google_roadmap: { mapType: "roadmap", derivedLayers: [] }, google_satellite: { mapType: "satellite", derivedLayers: [] }, @@ -5383,9 +5383,9 @@ function mI(n, t) { for (const A of o) a.add(A); return { mapType: r, layerTypes: [...a] }; } -class ss extends ya(xg) { +class ss extends wa(Tg) { constructor(t = {}) { - const e = Object.assign({}, t), { mapType: i, layerTypes: r } = mI(t.maptype, t.layers); + const e = Object.assign({}, t), { mapType: i, layerTypes: r } = vI(t.maptype, t.layers); e.mapType = i, e.layerTypes = r, super(e), t.mapID && (this.mapID = t.mapID), this.initialize(t); } } @@ -5424,19 +5424,19 @@ function Zo(n, t, e) { }) ); } -function yI(n) { +function wI(n) { return n; } -function vI(n) { +function bI(n) { return Math.pow(n, 3); } function tr(n) { - return 1 - vI(1 - n); + return 1 - bI(1 - n); } -function wI(n) { +function EI(n) { return 3 * n * n - 2 * n * n * n; } -function bI(n) { +function MI(n) { return n; } function Rs(n, t, e, i) { @@ -5448,7 +5448,7 @@ function ks(n, t, e) { const r = 50; return i *= Math.log(1 + r * Math.max(0, n / t - 1)) / r + 1, e && (i = Math.max(i, e), i /= Math.log(1 + r * Math.max(0, e / n - 1)) / r + 1), le(i, e / 2, t * 2); } -function EI(n, t, e, i) { +function xI(n, t, e, i) { return t = t !== void 0 ? t : !0, /** * @param {number|undefined} resolution Resolution. * @param {number} direction Direction. @@ -5470,12 +5470,12 @@ function EI(n, t, e, i) { I, g ) : le(r, g, I); - const l = Math.min(I, r), C = Math.floor(BA(n, l, s)); + const l = Math.min(I, r), C = Math.floor(FA(n, l, s)); return n[C] > I && C < n.length - 1 ? n[C + 1] : n[C]; } }); } -function MI(n, t, e, i, r, s) { +function SI(n, t, e, i, r, s) { return i = i !== void 0 ? i : !0, e = e !== void 0 ? e : 0, /** * @param {number|undefined} resolution Resolution. * @param {number} direction Direction. @@ -5538,7 +5538,7 @@ function Wo(n) { if (n !== void 0) return n; } -function xI(n) { +function TI(n) { const t = 2 * Math.PI / n; return ( /** @@ -5554,7 +5554,7 @@ function xI(n) { }) ); } -function SI(n) { +function RI(n) { const t = wn(5); return ( /** @@ -5567,13 +5567,13 @@ function SI(n) { }) ); } -const TI = 256, Sr = 0; +const kI = 256, Sr = 0; class Ho extends _n { /** * @param {ViewOptions} [options] View options. */ constructor(t) { - super(), this.on, this.once, this.un, t = Object.assign({}, t), this.hints_ = [0, 0], this.animations_ = [], this.updateAnimationKey_, this.projection_ = ys(t.projection, "EPSG:3857"), this.viewportSize_ = [100, 100], this.targetCenter_ = null, this.targetResolution_, this.targetRotation_, this.nextCenter_ = null, this.nextResolution_, this.nextRotation_, this.cancelAnchor_ = void 0, t.projection && Tc(), t.center && (t.center = De( + super(), this.on, this.once, this.un, t = Object.assign({}, t), this.hints_ = [0, 0], this.animations_ = [], this.updateAnimationKey_, this.projection_ = ys(t.projection, "EPSG:3857"), this.viewportSize_ = [100, 100], this.targetCenter_ = null, this.targetResolution_, this.targetRotation_, this.nextCenter_ = null, this.nextResolution_, this.nextRotation_, this.cancelAnchor_ = void 0, t.projection && kc(), t.center && (t.center = De( t.center, /** @type {import("./proj.js").ProjectionLike} */ this.projection_ @@ -5595,9 +5595,9 @@ class Ho extends _n { for (const a in ce) delete e[a]; this.setProperties(e, !0); - const i = kI(t); + const i = PI(t); this.maxResolution_ = i.maxResolution, this.minResolution_ = i.minResolution, this.zoomFactor_ = i.zoomFactor, this.resolutions_ = t.resolutions, this.padding_ = t.padding, this.minZoom_ = i.minZoom; - const r = RI(t), s = i.constraint, o = _I(t); + const r = _I(t), s = i.constraint, o = OI(t); this.constraints_ = { center: r, resolution: s, @@ -5727,7 +5727,7 @@ class Ho extends _n { complete: !1, anchor: I.anchor, duration: I.duration !== void 0 ? I.duration : 1e3, - easing: I.easing || wI, + easing: I.easing || EI, callback: i } ); @@ -5736,7 +5736,7 @@ class Ho extends _n { const C = Yr(I.rotation - A + Math.PI, 2 * Math.PI) - Math.PI; l.targetRotation = A + C, A = l.targetRotation; } - PI(l) ? l.complete = !0 : s += l.duration, g.push(l); + LI(l) ? l.complete = !0 : s += l.duration, g.push(l); } this.animations_.push(g), this.setHint(Be.ANIMATING, 1), this.updateAnimations_(); } @@ -5874,7 +5874,7 @@ class Ho extends _n { calculateCenterRotate(t, e) { let i; const r = this.getCenterInternal(); - return r !== void 0 && (i = [r[0] - e[0], r[1] - e[1]], ds(i, t - this.getRotation()), nc(i, e)), i; + return r !== void 0 && (i = [r[0] - e[0], r[1] - e[1]], ds(i, t - this.getRotation()), rc(i, e)), i; } /** * @param {number} resolution Target resolution. @@ -5971,7 +5971,7 @@ class Ho extends _n { */ calculateExtent(t) { const e = this.calculateExtentInternal(t); - return Lc(e, this.getProjection()); + return Bc(e, this.getProjection()); } /** * @param {import("./size.js").Size} [size] Box pixel size. If not provided, @@ -5994,7 +5994,7 @@ class Ho extends _n { /** @type {!number} */ this.getRotation() ); - return Ge(r !== void 0, "The view rotation is not defined"), Wg(e, i, r, t); + return Ge(r !== void 0, "The view rotation is not defined"), Yg(e, i, r, t); } /** * Get the maximum resolution of the view. @@ -6284,7 +6284,7 @@ class Ho extends _n { getZoomForResolution(t) { let e = this.minZoom_ || 0, i, r; if (this.resolutions_) { - const s = BA(this.resolutions_, t, 1); + const s = FA(this.resolutions_, t, 1); e = s, i = this.resolutions_[s], s == this.resolutions_.length - 1 ? r = 2 : r = i / this.resolutions_[s + 1]; } else i = /** @type {number} */ @@ -6343,7 +6343,7 @@ class Ho extends _n { "Invalid extent or geometry provided as `geometry`" ), Array.isArray(t)) { Ge( - !ZA(t), + !WA(t), "Cannot fit empty extent provided as `geometry`" ); const r = bi(t, this.getProjection()); @@ -6355,7 +6355,7 @@ class Ho extends _n { ); i = wo(r), i.rotate(this.getRotation(), Ni(r)); } else { - const r = Oc(); + const r = Dc(); r ? i = /** @type {import("./geom/SimpleGeometry.js").default} */ t.clone().transform(r, this.getProjection()) : i = t; } @@ -6839,7 +6839,7 @@ function Si(n, t) { n(t); }, 0); } -function RI(n) { +function _I(n) { if (n.extent !== void 0) { const e = n.smoothExtentConstraint !== void 0 ? n.smoothExtentConstraint : !0; return Zo( @@ -6857,9 +6857,9 @@ function RI(n) { const e = t.getExtent().slice(); return e[0] = -1 / 0, e[2] = 1 / 0, Zo(e, !1, !1); } - return yI; + return wI; } -function kI(n) { +function PI(n) { let t, e, i, o = n.minZoom !== void 0 ? n.minZoom : Sr, a = n.maxZoom !== void 0 ? n.maxZoom : 28; const A = n.zoomFactor !== void 0 ? n.zoomFactor : 2, g = n.multiWorld !== void 0 ? n.multiWorld : !1, I = n.smoothResolutionConstraint !== void 0 ? n.smoothResolutionConstraint : !0, l = n.showFullExtent !== void 0 ? n.showFullExtent : !1, C = ( /** @type {import("./proj/Projection.js").default} */ @@ -6868,7 +6868,7 @@ function kI(n) { let m = n.constrainOnlyCenter, c = n.extent; if (!g && !c && C.isGlobal() && (m = !1, c = p), n.resolutions !== void 0) { const u = n.resolutions; - e = u[o], i = u[a] !== void 0 ? u[a] : u[u.length - 1], n.constrainResolution ? t = EI( + e = u[o], i = u[a] !== void 0 ? u[a] : u[u.length - 1], n.constrainResolution ? t = xI( u, I, /** @type {import("./extent.js").Extent|undefined} */ @@ -6886,12 +6886,12 @@ function kI(n) { const h = (p ? Math.max(Cs(p), Jn(p)) : ( // use an extent that can fit the whole world if need be 360 * /** @type {number} */ - VA.degrees / /** @type {number} */ + HA.degrees / /** @type {number} */ C.getMetersPerUnit() - )) / TI / Math.pow(2, Sr), d = h / Math.pow(2, 28 - Sr); + )) / kI / Math.pow(2, Sr), d = h / Math.pow(2, 28 - Sr); e = n.maxResolution, e !== void 0 ? o = 0 : e = h / Math.pow(A, o), i = n.minResolution, i === void 0 && (n.maxZoom !== void 0 ? n.maxResolution !== void 0 ? i = e / Math.pow(A, a) : i = h / Math.pow(A, a) : i = d), a = o + Math.floor( Math.log(e / i) / Math.log(A) - ), i = e / Math.pow(A, a - o), n.constrainResolution ? t = MI( + ), i = e / Math.pow(A, a - o), n.constrainResolution ? t = SI( A, e, i, @@ -6916,14 +6916,14 @@ function kI(n) { zoomFactor: A }; } -function _I(n) { +function OI(n) { if (n.enableRotation !== void 0 ? n.enableRotation : !0) { const e = n.constrainRotation; - return e === void 0 || e === !0 ? SI() : e === !1 ? Wo : typeof e == "number" ? xI(e) : Wo; + return e === void 0 || e === !0 ? RI() : e === !1 ? Wo : typeof e == "number" ? TI(e) : Wo; } return _s; } -function PI(n) { +function LI(n) { return !(n.sourceCenter && n.targetCenter && !Fi(n.sourceCenter, n.targetCenter) || n.sourceResolution !== n.targetResolution || n.sourceRotation !== n.targetRotation); } function Tr(n, t, e, i, r) { @@ -6933,7 +6933,7 @@ function Tr(n, t, e, i, r) { const g = a * s - A * o, I = A * s + a * o; return [g, I]; } -const OI = { +const DI = { /** * Triggered before layers are composed. When dispatched by the map, the event object will not have * a `context` set. When dispatched by a layer, the event object will have a `context` set. Only @@ -6954,7 +6954,7 @@ const OI = { SOURCE: "source", MAP: "map" }; -class LI extends _n { +class BI extends _n { /** * @param {Options>} options Layer options. */ @@ -7216,7 +7216,7 @@ class LI extends _n { null, this.state_ = null), super.disposeInternal(); } } -class wa extends LI { +class Ea extends BI { /** * @param {Options>} options Layer options. */ @@ -7342,7 +7342,7 @@ class wa extends LI { } else s = this.getLayerState(); const o = this.getExtent(); - return DI(s, r.viewState) && (!o || hs(o, r.extent)); + return NI(s, r.viewState) && (!o || hs(o, r.extent)); } /** * Get the attributions of the source of this layer for the given view. @@ -7437,7 +7437,7 @@ class wa extends LI { setMap(t) { this.mapPrecomposeKey_ && (Qn(this.mapPrecomposeKey_), this.mapPrecomposeKey_ = null), t || this.changed(), this.mapRenderKey_ && (Qn(this.mapRenderKey_), this.mapRenderKey_ = null), t && (this.mapPrecomposeKey_ = yn( t, - OI.PRECOMPOSE, + DI.PRECOMPOSE, /** @type {import("../events.js").ListenerFunction} */ this.handlePrecompose_, this @@ -7510,7 +7510,7 @@ class wa extends LI { this.clearRenderer(), this.setSource(null), super.disposeInternal(); } } -function DI(n, t) { +function NI(n, t) { if (!n.visible) return !1; const e = t.resolution; @@ -7519,15 +7519,15 @@ function DI(n, t) { const i = t.zoom; return i > n.minZoom && i <= n.maxZoom; } -function BI(n) { +function FI(n) { const t = n && typeof n.getPixelRatio == "function" ? n.getPixelRatio() : typeof window < "u" && window.devicePixelRatio || 1; return typeof t == "number" && Number.isFinite(t) && t > 0 ? t : 1; } -function ba(n, t, e) { - const i = BI(n); +function Ma(n, t, e) { + const i = FI(n); return Math.abs(t.width / i - e[0]) < 1 && Math.abs(t.height / i - e[1]) < 1; } -class NI extends wa { +class jI extends Ea { constructor(t) { let e; const i = function(r) { @@ -7542,7 +7542,7 @@ class NI extends wa { let l = !1; if (r.size) { const [d, M] = r.size; - ba(o, a, [d, M]) || (o.resize(), l = !0); + Ma(o, a, [d, M]) || (o.resize(), l = !0); } const C = A.rotation * -180 / Math.PI, p = Hi(A.center), m = A.zoom - 1, c = o.getBearing(), u = o.getCenter().toArray(), h = o.getZoom(); return !l && C == c && p[0] == u[0] && p[1] == u[1] && m == h || (C != c && o.rotateTo(C, { @@ -7559,7 +7559,7 @@ class NI extends wa { }); } } -class FI extends wa { +class GI extends Ea { constructor(t) { let e; const i = function(r) { @@ -7580,7 +7580,7 @@ class FI extends wa { animate: !1 }), o._frame && (o._frame.cancel(), o._frame = null), r.size) { const [u, h] = r.size; - ba(o, a, [u, h]) || o.resize(); + Ma(o, a, [u, h]) || o.resize(); } return o._render(), Math.abs(o.getZoom() - c) > 0.01 && o.setZoom(c), a.style.position = "absolute", a.style.left = "0", a.style.top = "0", a; }; @@ -7590,28 +7590,28 @@ class FI extends wa { }); } } -const Ea = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAiCAYAAAA6RwvCAAAABHNCSVQICAgIfAhkiAAAAAlwSFl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AgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgkVIwmwAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTM5jWRgMAAAAWdEVYdENyZWF0aW9uIFRpbWUAMTAvMjYvMTHjwOqVAAARQHByVld4nMWbB3wURdvAd6/u3V6/27sts/PMQQhFpEU6SlNBRXqTfgkkQOhFSigHIgIWkJqAIJ1QBCz0KkJoQYrSQaQjioBKC+XezWU5fH2/3+/L8fu+fWd3bubZKf95nnlmdjeX2/dk602qD9UnooRc5YjkKp9KyIrkZikfkazcSFaWcuZmpUZScyOpWcqZm6rkU3OTIpGk3EhSViQpVTlzk5IiSUm5VCRC5UaorAiVqpy5VFKESspND6UY03O6U0oYGHo3NCg0ODSj59BQRmhYaHhoaDofFsJiGIVfC78e/hnOwwW4CI1Ttve/AlehLClH6oTrhl8N1wu3CIcFKhqWiwVpWvrG9EcjmXC2nC/1Sd+dHgonh1PCpxQ5nN4pfHHk3qGzOlFUepiiPk5PC/cO9wn3DfcL59deGOqWXC95Saigp/fCY8Lvh0e9Xm94q3DBlXLd2qm5kmRpSrdw9/CEqNwneWQ4HH6hXul6FHVs5Gfh2eGbI6eFp0fLxoZqhE/KC6P5Oa9lhzN7ymofy5PN4anhCRlfFpSVXxNeG26UQf0jyBSO5R1UcjTdF/3c8o+a66j11AbqhCrtpvZQe6lzqnSRukRdjtU8Q52lfqJuqNJt6g/qTzW/ltpKbaO2U99SO9QrF6j71AMqL9b2OvUr9VtMYmgLbaU9dIHkpwM0r+YdtJN20W76ytOa/zZWjpZpTANdNlr7NJVEv0RX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8tlX4MbtnGLbk/TrnYcZw4mLntDV7nfgz9yiPlYN/a/EhbSdtyp7ZyP+jMp/zLsh+W9YpfUffzrpij9FYRdxMr+fX/dn7wZpwwpbqlWHUg7mk+zfn8tE3GM/350Z59TDaQN+LTBsTP/Oelbn3tUtoab1APb70v1JKKaWUUkoppZRSSl1NOxERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERGRO+Qfh5eOajemXSYAAAFTbWtCVPrOyv4Af1WJAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB4nO3W4WmDYBSGUQdxEQdxEBdxEAdxEQexvIELt6Yh/4oJ54FDm0/7601szlOSJEmSJEmSJEmSJEmSJEmSJEkf0XEc577vT+c5y7V397+6T/dvXddzHMdzmqbHz+wY/Sz31L11FsuyPF7HMAx/vod077JjlX2zYXatzfs9tX/VN7/+je5ftut7Vjnrn+V6nX37xtm/ul7T/ctzvu9f/9fneX7aP9fs/31l23ru1+/btv36zPfnv/2/r/oe1/er90Cu1Xf7nEXVnx3Xa5IkSZIkSZIkSfr3BgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA+EA/CvmsuD1UqYgAAA7XbWtCVPrOyv4Af594AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB4nO2djZEcKQyFHYgTcSAOxIk4EAfiRBzIXunqPte7Z0lAz8/+WK9qame7aRASCNCDnpeXwWAwGAwGg8FgMBgMBoPB4D/8+vXr5efPn3984jr3qufic6WsAGX498H/Uen5iv4zfP/+/eXTp09/fOI69zJ8+fLl388uvn379jvvsDdlBPT7R0bU+7SelZ5P9b8CNtH+rvZf9VH6dpWmk9ft3/mdXVTyrOQEXRq9XqXLrmftvHs+cG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uPgogICA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgIAo8P3hwYWNrZXQgZW5kPSJ3Ij8+zWqGFQAACShJREFUWIWVmGusXFUVx39r73POzJy5M3fmPtrblj7p7btYGigGmojExISHQQ0miDFA4lc0SCBRNH4gRhNJ/aIfNAIxUkKIkMgjBBKMCHwQEGKhpbS39HXfve+5M3fmnr23H84+M7e1PDyTl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XNjcmlwdGlvbiByZGY6YWJvdXQ9IiIKICAgICAgICAgICAgeG1sbnM6ZGM9Imh0dHA6Ly9wdXJsLm9yZy9kYy9lbGVtZW50cy8xLjEvIj4KICAgICAgICAgPGRjOmZvcm1hdD5pbWFnZS9wbmc8L2RjOmZvcm1hdD4KICAgICAgPC9yZGY6RGVzY3JpcHRpb24+CiAgIDwvcmRmOlJERj4KPC94OnhtcG1ldGE+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgkVIwmwAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTM5jWRgMAAAAWdEVYdENyZWF0aW9uIFRpbWUAMTAvMjYvMTHjwOqVAAARQHByVld4nMWbB3wURdvAd6/u3V6/27sts/PMQQhFpEU6SlNBRXqTfgkkQOhFSigHIgIWkJqAIJ1QBCz0KkJoQYrSQaQjioBKC+XezWU5fH2/3+/L8fu+fWd3bubZKf95nnlmdjeX2/dk602qD9UnooRc5YjkKp9KyIrkZikfkazcSFaWcuZmpUZScyOpWcqZm6rkU3OTIpGk3EhSViQpVTlzk5IiSUm5VCRC5UaorAiVqpy5VFKESspND6UY03O6U0oYGHo3NCg0ODSj59BQRmhYaHhoaDofFsJiGIVfC78e/hnOwwW4CI1Ttve/AlehLClH6oTrhl8N1wu3CIcFKhqWiwVpWvrG9EcjmXC2nC/1Sd+dHgonh1PCpxQ5nN4pfHHk3qGzOlFUepiiPk5PC/cO9wn3DfcL59deGOqWXC95Saigp/fC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TCttV8f0GZBXXqMep8R6JfdJl73upTKfo+6XbG+j/s9aG7ZmP75rNPZXvNzHLegjrPOtCT9WL+yXY17/tyH3IRB7GXXMtcq0VabZ8xrZt/8TQZzR/ZH/R2U+R33+P8X/GX/2/pB24py9GY74M//JWBN+ar36nJd7Avh6VKf0QbdPXs/yyrDRPhP3sz9znXmPynyutvB/30cpn1CmPC8x1jF+MpbRnteGn1Ivwhg3+I8AG9O+EHNt938fc3KP8pj/+X8i8yj1+93/szKfq2P+z7kdO/R+knUt9fEpfYO/iMs8tlX4MbtnGLbk/TrnYcZw4mLntDV7nfgz9yiPlYN/a/EhbSdtyp7ZyP+jMp/zLsh+W9YpfUffzrpij9FYRdxMr+fX/dn7wZpwwpbqlWHUg7mk+zfn8tE3GM/350Z59TDaQN+LTBsTP/Oelbn3tUtoab1APb70v1JKKaWUUkoppZRSSl1NOxERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERGRO+Qfh5eOajemXSYAAAFTbWtCVPrOyv4Af1WJAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB4nO3W4WmDYBSGUQdxEQdxEBdxEAdxEQexvIELt6Yh/4oJ54FDm0/7601szlOSJEmSJEmSJEmSJEmSJEmSJEkf0XEc577vT+c5y7V397+6T/dvXddzHMdzmqbHz+wY/Sz31L11FsuyPF7HMAx/vod077JjlX2zYXatzfs9tX/VN7/+je5ftut7Vjnrn+V6nX37xtm/ul7T/ctzvu9f/9fneX7aP9fs/31l23ru1+/btv36zPfnv/2/r/oe1/er90Cu1Xf7nEXVnx3Xa5IkSZIkSZIkSfr3BgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA+EA/CvmsuD1UqYgAAA7XbWtCVPrOyv4Af594AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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TEtMTEtMTNUMDU6MDk6MTVaPC94YXA6TW9kaWZ5RGF0ZT4KICAgICAgPC9yZGY6RGVzY3JpcHRpb24+CiAgICAgIDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiCiAgICAgICAgICAgIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyI+CiAgICAgICAgIDxkYzpmb3JtYXQ+aW1hZ2UvcG5nPC9kYzpmb3JtYXQ+CiAgICAgIDwvcmRmOkRlc2NyaXB0aW9uPgogICA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICA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MVwdKOISqkfC4CaCRAMqkLwwxEHAmqYxNfpBNdUjUQN5CGMSA+oRibxdXECpmKEGJToSw5i0FI3ga8TM95IjIJEvC+QCCIR6xRjJwCA8UyJCBqFwpd/Jo0jhidg2cUYJ0hRJMaAL8ofXIiBEK919pgbTNAtKEokjPpAiXZ0BR0PECaIH0CDMhyRrEEDAZ3E1zEBUeWHOOJHfYCJpc5O9NhNUKaqhKgMfTF6i5SopUzwFo3vRqMGoqB+lJMoGDXIRJ0sE3SyiUSJ+KudLBE1kUl8nZHxtWxEsBB98FfnVxQRZAJfd/H9y2ONvC/Yv7jfhTBEEFTVXb50BeeSCUgOk9QpTYG5/qBfdjXsBJoxhs2xAAvze8a8pIqI2bt3z4G9p0+/y7AI7Jjduf/AvsW9wImxAGklGQtgxLxj1X77tn2Hj15ZXXW/Off6d13iThkzvor+PQADkAvGWj3+bAAAAABJRU5ErkJggg==", UI = new pe({ image: new xn({ anchor: [0.5, 0.5], anchorXUnits: "fraction", anchorYUnits: "fraction", - src: Ea + src: xa }) -}), GI = new pe({ +}), zI = new pe({ image: new xn({ anchor: [0.5, 0.5], anchorXUnits: "fraction", anchorYUnits: "fraction", - src: Ma + src: Sa }) -}), UI = new pe({ +}), XI = new pe({ image: new xn({ anchor: [0.5, 0.5], anchorXUnits: "fraction", anchorYUnits: "fraction", - src: xa + src: Ta }) -}), zI = new pe({ +}), ZI = new pe({ fill: new Wr({ color: [128, 128, 256, 0.2] }), @@ -7619,15 +7619,15 @@ const Ea = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAiCAYAAAA6RwvCAA color: [128, 128, 256, 1], width: 3 }) -}), XI = new pe({ +}), VI = new pe({ image: new xn({ anchor: [0.5, 1], anchorXUnits: "fraction", anchorYUnits: "fraction", - src: Sa + src: Ra }) }); -function Ta(n) { +function ka(n) { return n ? n instanceof pe ? n : typeof n == "string" ? new pe({ image: new xn({ anchor: [0.5, 1], @@ -7637,9 +7637,9 @@ function Ta(n) { }) }) : new pe({ image: new xn(n) - }) : XI; + }) : VI; } -class Ue extends Eg { +class Ue extends xg { fakeGps; fakeRadius; geolocation; @@ -7680,7 +7680,7 @@ class Ue extends Eg { null, t.source, t.target - ), a = new Mg(); + ), a = new Sg(); a.set("name", "overlay"); const g = { controls: t.controls ? t.controls : [], @@ -7693,7 +7693,7 @@ class Ue extends Eg { i ], target: t.div, - view: new RA({ + view: new _A({ center: t.defaultCenter || [0, 0], zoom: t.defaultZoom || 2, rotation: t.defaultRotation || 0, @@ -7725,12 +7725,12 @@ class Ue extends Eg { typeof i == "number" && Number.isFinite(i) && i > 4 ? t.setMinZoom(i - 4) : t.setMinZoom(-1 / 0); } static spawnLayer(t, e, i) { - return e instanceof Xi || e instanceof Zi || !(t instanceof dr) ? (e instanceof Xi ? t = new NI({ + return e instanceof Xi || e instanceof Zi || !(t instanceof dr) ? (e instanceof Xi ? t = new jI({ style: e.style, accessToken: e.accessToken, container: i, source: e - }) : e instanceof Zi ? t = new FI({ + }) : e instanceof Zi ? t = new GI({ style: e.style, container: i, source: e @@ -7755,7 +7755,7 @@ class Ue extends Eg { return e.getSource(); } setFeature(t, e, i) { - const r = this.getSource(i), s = new kA(t); + const r = this.getSource(i), s = new PA(t); return e && s.setStyle(e), r.addFeature(s), s; } removeFeature(t, e) { @@ -7765,7 +7765,7 @@ class Ue extends Eg { this.getSource(t).clear(); } setGPSPosition(t, e = void 0) { - const i = e == "sub" ? UI : e == "hide" ? GI : jI; + const i = e == "sub" ? XI : e == "hide" ? zI : UI; e != "sub" && this.resetFeature("gps"), t && (this.setFeature( { geometry: new Tn(t.xy) @@ -7776,12 +7776,12 @@ class Ue extends Eg { { geometry: new ws(t.xy, t.rad) }, - zI, + ZI, "gps" )); } setMarker(t, e, i, r) { - return r || (r = "marker"), e.geometry = new Tn(t), this.setFeature(e, Ta(i), r); + return r || (r = "marker"), e.geometry = new Tn(t), this.setFeature(e, ka(i), r); } resetMarker(t) { t || (t = "marker"), this.resetFeature(t); @@ -7934,13 +7934,13 @@ class li extends _n { this.map_ = t; } } -function ZI(n, t, e) { +function WI(n, t, e) { const i = n.getCenterInternal(); if (i) { const r = [i[0] + t[0], i[1] + t[1]]; n.animateInternal({ duration: e !== void 0 ? e : 250, - easing: bI, + easing: MI, center: n.getConstrainedCenter(r) }); } @@ -7986,7 +7986,7 @@ class Ri extends _e { super(t), this.element = e, this.index = i; } } -class VI extends _n { +class HI extends _n { /** * @param {Array} [array] Array. * @param {Options} [options] Collection options. @@ -8160,7 +8160,7 @@ class VI extends _n { throw new Error("Duplicate item added to a unique collection"); } } -class WI { +class YI { /** * @param {number} decay Rate of decay (must be negative). * @param {number} minVelocity Minimum velocity (pixels/millisecond). @@ -8214,7 +8214,7 @@ class WI { return this.angle_; } } -class HI extends li { +class QI extends li { /** * @param {Options} [options] Options. */ @@ -8240,9 +8240,9 @@ class HI extends li { return !e; } } -const $e = typeof navigator < "u" && typeof navigator.userAgent < "u" ? navigator.userAgent.toLowerCase() : "", YI = $e.includes("safari") && !$e.includes("chrom"); -YI && ($e.includes("version/15.4") || /cpu (os|iphone os) 15_4 like mac os x/.test($e)); -const QI = $e.includes("webkit") && !$e.includes("edge"), Ra = $e.includes("macintosh"); +const $e = typeof navigator < "u" && typeof navigator.userAgent < "u" ? navigator.userAgent.toLowerCase() : "", KI = $e.includes("safari") && !$e.includes("chrom"); +KI && ($e.includes("version/15.4") || /cpu (os|iphone os) 15_4 like mac os x/.test($e)); +const JI = $e.includes("webkit") && !$e.includes("edge"), _a = $e.includes("macintosh"); typeof WorkerGlobalScope < "u" && typeof OffscreenCanvas < "u" && self instanceof WorkerGlobalScope; (function() { let n = !1; @@ -8266,40 +8266,40 @@ function os(n) { return i; }; } -const KI = function(n) { +const qI = function(n) { const t = n.originalEvent; return t.altKey && !(t.metaKey || t.ctrlKey) && !t.shiftKey; -}, JI = function(n) { +}, $I = function(n) { const t = n.originalEvent; return t.altKey && !(t.metaKey || t.ctrlKey) && t.shiftKey; -}, qI = function(n) { +}, tu = function(n) { const t = n.map.getTargetElement(); if (!t) return !1; const e = t.getRootNode(), i = n.map.getOwnerDocument().activeElement; return e instanceof ShadowRoot ? e.host.contains(i) : t.contains(i); -}, ka = function(n) { +}, Pa = function(n) { const t = n.map.getTargetElement(); if (!t) return !0; const e = t.getRootNode(); - return (e instanceof ShadowRoot ? e.host : t).hasAttribute("tabindex") ? qI(n) : !0; -}, $I = Ng, _a = function(n) { + return (e instanceof ShadowRoot ? e.host : t).hasAttribute("tabindex") ? tu(n) : !0; +}, eu = jg, Oa = function(n) { const t = n.originalEvent; - return "pointerId" in t && t.button == 0 && !(QI && Ra && t.ctrlKey); -}, Pa = function(n) { + return "pointerId" in t && t.button == 0 && !(JI && _a && t.ctrlKey); +}, La = function(n) { const t = ( /** @type {KeyboardEvent|MouseEvent|TouchEvent} */ n.originalEvent ); return !t.altKey && !(t.metaKey || t.ctrlKey) && !t.shiftKey; -}, tu = function(n) { +}, nu = function(n) { const t = n.originalEvent; - return Ra ? t.metaKey : t.ctrlKey; -}, Oa = function(n) { + return _a ? t.metaKey : t.ctrlKey; +}, Da = function(n) { const t = n.originalEvent; return !t.altKey && !(t.metaKey || t.ctrlKey) && t.shiftKey; -}, La = function(n) { +}, Ba = function(n) { const t = n.originalEvent, e = ( /** @type {Element} */ t.target.tagName @@ -8311,7 +8311,7 @@ const KI = function(n) { }, En = function(n) { const t = n.originalEvent; return "pointerId" in t && t.pointerType == "mouse"; -}, eu = function(n) { +}, iu = function(n) { const t = n.originalEvent; return "pointerId" in t && t.isPrimary && t.button === 0; }; @@ -8416,7 +8416,7 @@ function Os(n) { e += n[r].clientX, i += n[r].clientY; return { clientX: e / t, clientY: i / t }; } -class nu extends Pn { +class ru extends Pn { /** * @param {Options} [options] Options. */ @@ -8424,8 +8424,8 @@ class nu extends Pn { super({ stopDown: Yi }), t = t || {}, this.kinetic_ = t.kinetic, this.lastCentroid = null, this.lastPointersCount_, this.panning_ = !1; - const e = t.condition ? t.condition : os(Pa, eu); - this.condition_ = t.onFocusOnly ? os(ka, e) : e, this.noKinetic_ = !1; + const e = t.condition ? t.condition : os(La, iu); + this.condition_ = t.onFocusOnly ? os(Pa, e) : e, this.noKinetic_ = !1; } /** * Handle pointer drag events. @@ -8442,7 +8442,7 @@ class nu extends Pn { this.lastCentroid[0] - r[0], r[1] - this.lastCentroid[1] ], a = t.map.getView(), A = a.getResolution(); - A !== void 0 && (ic(s, A), ds(s, a.getRotation()), a.adjustCenterInternal(s)); + A !== void 0 && (sc(s, A), ds(s, a.getRotation()), a.adjustCenterInternal(s)); } } else this.kinetic_ && this.kinetic_.begin(); this.lastCentroid = r, this.lastPointersCount_ = i.length, t.originalEvent.preventDefault(); @@ -8494,14 +8494,14 @@ class nu extends Pn { return !1; } } -class iu extends Pn { +class su extends Pn { /** * @param {Options} [options] Options. */ constructor(t) { t = t || {}, super({ stopDown: Yi - }), this.condition_ = t.condition ? t.condition : JI, this.lastAngle_ = void 0, this.duration_ = t.duration !== void 0 ? t.duration : 250; + }), this.condition_ = t.condition ? t.condition : $I, this.lastAngle_ = void 0, this.duration_ = t.duration !== void 0 ? t.duration : 250; } /** * Handle pointer drag events. @@ -8540,10 +8540,10 @@ class iu extends Pn { * @override */ handleDownEvent(t) { - return En(t) && _a(t) && this.condition_(t) ? (t.map.getView().beginInteraction(), this.lastAngle_ = void 0, !0) : !1; + return En(t) && Oa(t) && this.condition_(t) ? (t.map.getView().beginInteraction(), this.lastAngle_ = void 0, !0) : !1; } } -class ru extends LA { +class ou extends BA { /** * @param {string} className CSS class name. */ @@ -8661,12 +8661,12 @@ class Un extends _e { super(t), this.coordinate = e, this.mapBrowserEvent = i; } } -class su extends Pn { +class Au extends Pn { /** * @param {Options} [options] Options. */ constructor(t) { - super(), this.on, this.once, this.un, t = t ?? {}, this.box_ = new ru(t.className || "ol-dragbox"), this.minArea_ = t.minArea ?? 64, t.onBoxEnd && (this.onBoxEnd = t.onBoxEnd), this.startPixel_ = null, this.condition_ = t.condition ?? _a, this.boxEndCondition_ = t.boxEndCondition ?? this.defaultBoxEndCondition; + super(), this.on, this.once, this.un, t = t ?? {}, this.box_ = new ou(t.className || "ol-dragbox"), this.minArea_ = t.minArea ?? 64, t.onBoxEnd && (this.onBoxEnd = t.onBoxEnd), this.startPixel_ = null, this.condition_ = t.condition ?? Oa, this.boxEndCondition_ = t.boxEndCondition ?? this.defaultBoxEndCondition; } /** * The default condition for determining whether the boxend event @@ -8768,13 +8768,13 @@ class su extends Pn { ), this.startPixel_ = null)), super.setMap(t); } } -class ou extends su { +class au extends Au { /** * @param {Options} [options] Options. */ constructor(t) { t = t || {}; - const e = t.condition ? t.condition : Oa; + const e = t.condition ? t.condition : Da; super({ condition: e, className: t.className || "ol-dragzoom", @@ -8811,13 +8811,13 @@ const Ve = { RIGHT: "ArrowRight", DOWN: "ArrowDown" }; -class Au extends li { +class gu extends li { /** * @param {Options} [options] Options. */ constructor(t) { super(), t = t || {}, this.defaultCondition_ = function(e) { - return Pa(e) && La(e); + return La(e) && Ba(e); }, this.condition_ = t.condition !== void 0 ? t.condition : this.defaultCondition_, this.duration_ = t.duration !== void 0 ? t.duration : 100, this.pixelDelta_ = t.pixelDelta !== void 0 ? t.pixelDelta : 128; } /** @@ -8843,19 +8843,19 @@ class Au extends li { let g = 0, I = 0; r == Ve.DOWN ? I = -A : r == Ve.LEFT ? g = -A : r == Ve.RIGHT ? g = A : I = A; const l = [g, I]; - ds(l, o.getRotation()), ZI(o, l, this.duration_), i.preventDefault(), e = !0; + ds(l, o.getRotation()), WI(o, l, this.duration_), i.preventDefault(), e = !0; } } return !e; } } -class au extends li { +class cu extends li { /** * @param {Options} [options] Options. */ constructor(t) { super(), t = t || {}, this.condition_ = t.condition ? t.condition : function(e) { - return !tu(e) && La(e); + return !nu(e) && Ba(e); }, this.delta_ = t.delta ? t.delta : 1, this.duration_ = t.duration !== void 0 ? t.duration : 100; } /** @@ -8881,8 +8881,8 @@ class au extends li { return !e; } } -const gu = 40, cu = 300, lu = 3; -class Iu extends li { +const lu = 40, Iu = 300, uu = 3; +class Cu extends li { /** * @param {Options} [options] Options. */ @@ -8891,8 +8891,8 @@ class Iu extends li { /** @type {import("./Interaction.js").InteractionOptions} */ t ), this.totalDelta_ = 0, this.lastDelta_ = 0, this.maxDelta_ = t.maxDelta !== void 0 ? t.maxDelta : 1, this.duration_ = t.duration !== void 0 ? t.duration : 250, this.timeout_ = t.timeout !== void 0 ? t.timeout : 80, this.useAnchor_ = t.useAnchor !== void 0 ? t.useAnchor : !0, this.constrainResolution_ = t.constrainResolution !== void 0 ? t.constrainResolution : !1; - const e = t.condition ? t.condition : $I; - this.condition_ = t.onFocusOnly ? os(ka, e) : e, this.lastAnchor_ = null, this.startTime_ = void 0, this.timeoutId_, this.mode_ = void 0, this.trackpadEventGap_ = 400, this.trackpadTimeoutId_, this.deltaPerZoom_ = 300; + const e = t.condition ? t.condition : eu; + this.condition_ = t.onFocusOnly ? os(Pa, e) : e, this.lastAnchor_ = null, this.startTime_ = void 0, this.timeoutId_, this.mode_ = void 0, this.trackpadEventGap_ = 400, this.trackpadTimeoutId_, this.deltaPerZoom_ = 300; } /** * @private @@ -8929,10 +8929,10 @@ class Iu extends li { let o = r.deltaY; switch (r.deltaMode) { case WheelEvent.DOM_DELTA_LINE: - o *= gu; + o *= lu; break; case WheelEvent.DOM_DELTA_PAGE: - o *= cu; + o *= Iu; break; } if (o === 0) @@ -8945,7 +8945,7 @@ class Iu extends li { return this.trackpadTimeoutId_ ? clearTimeout(this.trackpadTimeoutId_) : (A.getAnimating() && A.cancelAnimations(), A.beginInteraction()), this.trackpadTimeoutId_ = setTimeout( this.endInteraction_.bind(this), this.timeout_ - ), s && (o = o * lu), A.adjustZoom( + ), s && (o = o * uu), A.adjustZoom( -o / this.deltaPerZoom_, this.lastAnchor_ ? i.getCoordinateFromPixel(this.lastAnchor_) : void 0 ), this.startTime_ = a, !1; @@ -8985,7 +8985,7 @@ class Iu extends li { this.useAnchor_ = t, t || (this.lastAnchor_ = null); } } -class uu extends Pn { +class hu extends Pn { /** * @param {Options} [options] Options. */ @@ -9041,7 +9041,7 @@ class uu extends Pn { return !1; } } -class Cu extends Pn { +class fu extends Pn { /** * @param {Options} [options] Options. */ @@ -9096,38 +9096,38 @@ class Cu extends Pn { } function Ko(n) { n = n || {}; - const t = new VI(), e = new WI(-5e-3, 0.05, 100); - return (n.altShiftDragRotate === void 0 || n.altShiftDragRotate) && t.push(new iu()), (n.doubleClickZoom === void 0 || n.doubleClickZoom) && t.push( - new HI({ + const t = new HI(), e = new YI(-5e-3, 0.05, 100); + return (n.altShiftDragRotate === void 0 || n.altShiftDragRotate) && t.push(new su()), (n.doubleClickZoom === void 0 || n.doubleClickZoom) && t.push( + new QI({ delta: n.zoomDelta, duration: n.zoomDuration }) ), (n.dragPan === void 0 || n.dragPan) && t.push( - new nu({ + new ru({ onFocusOnly: n.onFocusOnly, kinetic: e }) - ), (n.pinchRotate === void 0 || n.pinchRotate) && t.push(new uu()), (n.pinchZoom === void 0 || n.pinchZoom) && t.push( - new Cu({ + ), (n.pinchRotate === void 0 || n.pinchRotate) && t.push(new hu()), (n.pinchZoom === void 0 || n.pinchZoom) && t.push( + new fu({ duration: n.zoomDuration }) - ), (n.keyboard === void 0 || n.keyboard) && (t.push(new Au()), t.push( - new au({ + ), (n.keyboard === void 0 || n.keyboard) && (t.push(new gu()), t.push( + new cu({ delta: n.zoomDelta, duration: n.zoomDuration }) )), (n.mouseWheelZoom === void 0 || n.mouseWheelZoom) && t.push( - new Iu({ + new Cu({ onFocusOnly: n.onFocusOnly, duration: n.zoomDuration }) ), (n.shiftDragZoom === void 0 || n.shiftDragZoom) && t.push( - new ou({ + new au({ duration: n.zoomDuration }) ), t; } -class hu extends Pn { +class du extends Pn { /** * @param {Options} [options] Options. */ @@ -9135,7 +9135,7 @@ class hu extends Pn { t = t || {}, super( /** @type {import("./Pointer.js").Options} */ t - ), this.condition_ = t.condition ? t.condition : Oa, this.lastAngle_ = void 0, this.lastMagnitude_ = void 0, this.lastScaleDelta_ = 0, this.duration_ = t.duration !== void 0 ? t.duration : 400; + ), this.condition_ = t.condition ? t.condition : Da, this.lastAngle_ = void 0, this.lastMagnitude_ = void 0, this.lastScaleDelta_ = 0, this.duration_ = t.duration !== void 0 ? t.duration : 400; } /** * Handle pointer drag events. @@ -9177,21 +9177,21 @@ class hu extends Pn { return En(t) && this.condition_(t) ? (t.map.getView().beginInteraction(), this.lastAngle_ = void 0, this.lastMagnitude_ = void 0, !0) : !1; } } -function fu(n) { - return du(n[0], n[1], n[2]); +function pu(n) { + return mu(n[0], n[1], n[2]); } -function du(n, t, e) { +function mu(n, t, e) { return (t << n) + e; } -const pu = /\{z\}/g, mu = /\{x\}/g, yu = /\{y\}/g, vu = /\{-y\}/g; -function wu(n, t, e, i, r) { - return n.replace(pu, t.toString()).replace(mu, e.toString()).replace(yu, i.toString()).replace(vu, function() { +const yu = /\{z\}/g, vu = /\{x\}/g, wu = /\{y\}/g, bu = /\{-y\}/g; +function Eu(n, t, e, i, r) { + return n.replace(yu, t.toString()).replace(vu, e.toString()).replace(wu, i.toString()).replace(bu, function() { throw new Error( "If the URL template has a {-y} placeholder, the grid extent must be known" ); }); } -function bu(n, t) { +function Mu(n, t) { return ( /** * @param {import("./tilecoord.js").TileCoord} tileCoord Tile Coordinate. @@ -9203,17 +9203,17 @@ function bu(n, t) { if (!e) return; const s = e[0]; - return wu(n, s, e[1], e[2]); + return Eu(n, s, e[1], e[2]); }) ); } function Jo(n, t) { const e = n.length, i = new Array(e); for (let r = 0; r < e; ++r) - i[r] = bu(n[r]); - return Eu(i); + i[r] = Mu(n[r]); + return xu(i); } -function Eu(n) { +function xu(n) { return n.length === 1 ? n[0] : ( /** * @param {import("./tilecoord.js").TileCoord} tileCoord Tile Coordinate. @@ -9224,7 +9224,7 @@ function Eu(n) { (function(t, e, i) { if (!t) return; - const r = fu(t), s = Yr(r, n.length); + const r = pu(t), s = Yr(r, n.length); return n[s](t, e, i); }) ); @@ -9232,7 +9232,7 @@ function Eu(n) { for (let n = 0; n < 9; n++) { const t = `ZOOM:${n}`, e = 256 * Math.pow(2, n); (function(i, r) { - const s = new bg({ + const s = new Mg({ code: i, // The extent is used to determine zoom level 0. Recommended values for a // projection's validity extent can be found at https://epsg.io/. @@ -9253,9 +9253,9 @@ for (let n = 0; n < 9; n++) { ); })(t, e); } -class Da extends dI(_A) { +class Na extends mI(OA) { constructor(t = {}) { - t = va(t), t.wrapX = !1; + t = ba(t), t.wrapX = !1; const e = Math.log2(t.width / de), i = Math.log2(t.height / de); t.maxZoom = Math.ceil(Math.max(e, i)), t.tileUrlFunction = t.tileUrlFunction || function(r) { const s = r[0], o = r[1], a = r[2]; @@ -9275,7 +9275,7 @@ class Vi extends kn { } const Ee = "https://weiwudi.example.com/api/"; let Rr, hn; -class Mu { +class Su { constructor() { this.listeners = {}; } @@ -9301,7 +9301,7 @@ class Mu { return !t.defaultPrevented; } } -class fe extends Mu { +class fe extends Su { static async registerSW(t, e) { if (!("serviceWorker" in navigator)) throw "Error: Service worker is not supported"; @@ -9419,7 +9419,7 @@ function ki(n, t, e) { if (e) return s(e); } -const xu = [ +const Tu = [ "title", "attr", "officialTitle", @@ -9441,9 +9441,9 @@ const xu = [ "homePosition", "mercZoom" ]; -async function Su(n) { +async function Ru(n) { const t = n; - if (xu.forEach((s) => { + if (Tu.forEach((s) => { t[s] = n[s]; }), (n.imageExtention || n.imageExtension) && (t.imageExtension = n.imageExtension || n.imageExtention), !n.compiled) throw new Error( @@ -9456,7 +9456,7 @@ async function Su(n) { importance: s.importance, bounds: s.bounds }))); - const i = new ga(); + const i = new la(); i.setMapData(e); const r = i.getLayerTransform(0); if (t.strictMode = r.strictMode, t.vertexMode = r.vertexMode, t.yaxisMode = r.yaxisMode, t.width = r.wh?.[0], t.height = r.wh?.[1], t.gcps = r.points, t.edges = r.edges, n.sub_maps) { @@ -9479,13 +9479,13 @@ async function Su(n) { function qo(n, t, e) { return typeof n.merc2XyVisibleLayers != "function" ? null : n.merc2XyVisibleLayers(t).filter(([, i]) => e(i)).slice(0, 2).map(([i, r]) => [i, r]); } -class Wi extends Da { +class Wi extends Na { mapTransform; constructor(t = {}) { - super(t), this.mapTransform = new ga(); + super(t), this.mapTransform = new la(); } static async createAsync(t) { - const [e, i] = await Su(t); + const [e, i] = await Ru(t); t = e; const r = new Wi(t); r.mapTransform = i; @@ -9561,7 +9561,7 @@ class Wi extends Da { ), p = Math.sqrt( Math.pow(I[2][0] - I[3][0], 2) + Math.pow(I[2][1] - I[3][1], 2) ), m = (C + p) / 2; - this.mercZoom || (this.mercZoom = Math.log(300 * (2 * dt) / 256 / m) / Math.log(2) - 3), this.homePosition || (this.homePosition = Hi(s)), this.envelope = ua([ + this.mercZoom || (this.mercZoom = Math.log(300 * (2 * dt) / 256 / m) / Math.log(2) - 3), this.homePosition || (this.homePosition = Hi(s)), this.envelope = ha([ [ l[0], l[1], @@ -9654,7 +9654,7 @@ class ee extends Error { function zn(n) { return `${n.replace(/\/+$/, "")}/info.json`; } -function Tu(n) { +function ku(n) { if (typeof n == "string") try { return JSON.parse(n); @@ -9663,11 +9663,11 @@ function Tu(n) { } if (n && typeof n == "object") return n; } -function Ru(n, t) { +function _u(n, t) { const e = n.getComplianceLevelFromProfile(t), i = e ? /level([0-2])/.exec(e) : null; return i ? Number(i[1]) : 0; } -function ku(n) { +function Pu(n) { if (n == null) return {}; if (typeof n == "number") return { width: n, height: n }; if (Array.isArray(n)) { @@ -9679,11 +9679,11 @@ function ku(n) { function _i(n) { return Number.isInteger(n) && n > 0; } -function _u(n) { +function Ou(n) { return !Array.isArray(n) || n.length === 0 ? !1 : [...n].sort((e, i) => e - i).every((e, i) => e === 2 ** i); } -function Pu(n, t) { - const e = Tu(n); +function Lu(n, t) { + const e = ku(n); if (!e) return { ok: !1, reason: "not-json" }; if (!_i(e.width) || !_i(e.height)) return { ok: !1, reason: "size-mismatch" }; @@ -9691,39 +9691,39 @@ function Pu(n, t) { return { ok: !1, reason: "size-mismatch" }; let i, r, s; try { - if (i = new PA(e), r = i.getImageApiVersion(), r !== "version2" && r !== "version3") + if (i = new LA(e), r = i.getImageApiVersion(), r !== "version2" && r !== "version3") return { ok: !1, reason: "unsupported-version" }; s = i.getTileSourceOptions() || {}; } catch { return { ok: !1, reason: "unsupported-version" }; } - const o = Ru(i, r), a = r === "version2" ? "2" : "3", A = s.supports || []; + const o = _u(i, r), a = r === "version2" ? "2" : "3", A = s.supports || []; if ((A.includes("regionByPx") || A.includes("regionByPct")) && (A.includes("sizeByW") || A.includes("sizeByH") || A.includes("sizeByWh") || A.includes("sizeByPct"))) return { ok: !0, version: a, level: o, tiling: "arbitrary" }; - const { width: I, height: l } = ku(s.tileSize); - return I === 256 && l === 256 && _u(s.resolutions) ? { ok: !0, version: a, level: o, tiling: "level0-256" } : { ok: !1, reason: "unsupported-level0" }; + const { width: I, height: l } = Pu(s.tileSize); + return I === 256 && l === 256 && Ou(s.resolutions) ? { ok: !0, version: a, level: o, tiling: "level0-256" } : { ok: !1, reason: "unsupported-level0" }; } -function Ou(n, t) { +function Du(n, t) { return { mapID: typeof n == "string" ? n : n?.mapID ?? "", __maplatUnusable: { reason: t.reason } }; } -function Lu(n) { +function Bu(n) { return !!n && typeof n == "object" && "__maplatUnusable" in n; } -const Ba = /* @__PURE__ */ new WeakMap(); -function Du(n, t) { - Ba.set(n, [...t]); +const Fa = /* @__PURE__ */ new WeakMap(); +function Nu(n, t) { + Fa.set(n, [...t]); } -function Bu(n) { - return [...Ba.get(n) ?? []]; +function Fu(n) { + return [...Fa.get(n) ?? []]; } -const Nu = 1e4, Fu = 1024 * 1024; -function ju(n) { +const ju = 1e4, Gu = 1024 * 1024; +function Uu(n) { return typeof TextEncoder > "u" ? n.length : new TextEncoder().encode(n).length; } -function Gu(n) { +function zu(n) { let t; try { t = new URL(n); @@ -9736,7 +9736,7 @@ function Gu(n) { `IIIF image URL must be http or https: ${n}` ); } -async function Uu(n, t) { +async function Xu(n, t) { const e = n.headers?.get?.("content-length"); if (e != null) { const s = Number(e); @@ -9768,7 +9768,7 @@ async function Uu(n, t) { return o && (A += o.decode()), A; } const r = await n.text(); - if (ju(r) > t) + if (Uu(r) > t) throw new ee( "too-large", `IIIF info.json is larger than ${t} bytes` @@ -9783,19 +9783,19 @@ function $o(n) { return n.replace(/\/+$/, ""); } } -async function zu(n, t, e) { +async function Zu(n, t, e) { if (!n || n.type !== "iiifImage" || typeof n.url != "string") throw new ee( "bad-url", "IIIF delivery must have { type: 'iiifImage', url }" ); const i = n.url.replace(/\/+$/, ""); - Gu(i); + zu(i); const r = fetch, s = new AbortController(); let o = !1; const a = setTimeout(() => { o = !0, s.abort(); - }, Nu); + }, ju); let A; try { let d; @@ -9808,7 +9808,7 @@ async function zu(n, t, e) { "fetch-failed", `Failed to fetch IIIF info.json: ${zn(i)}` ); - A = await Uu(d, Fu); + A = await Xu(d, Gu); } catch (M) { throw M instanceof ee ? M : o ? new ee( "timeout", @@ -9830,13 +9830,13 @@ async function zu(n, t, e) { `IIIF info.json is not JSON: ${zn(i)}` ); } - const I = Pu(g, t); + const I = Lu(g, t); if (!I.ok) throw new ee(I.reason); const l = [], C = g["@id"] || g.id; typeof C == "string" && $o(C) !== $o(i) && l.push( `Maplat: the IIIF image service "${C}" differs from the delivery URL "${i}"; using the delivery URL.` ); - const p = new PA(g).getTileSourceOptions() || {}; + const p = new LA(g).getTileSourceOptions() || {}; let m; if (I.tiling === "level0-256") { const d = Array.isArray(p.resolutions) ? p.resolutions : [], M = d.length > 0 ? Math.max(...d) : void 0; @@ -9850,7 +9850,7 @@ async function zu(n, t, e) { m = Math.max(0, v - Math.log2(M)); } } - const u = new Sg({ + const u = new Rg({ ...p, url: i, tileSize: de, @@ -9873,7 +9873,7 @@ function tA(n) { ), !1) : !1; } async function eA(n, t, e) { - const i = await zu(n.delivery, t); + const i = await Zu(n.delivery, t); (n.url || n.urls) && (console.warn( `Maplat: map "${n.mapID}" has both delivery and url; using delivery.` ), delete n.url, delete n.urls); @@ -9897,11 +9897,11 @@ typeof globalThis < "u" && globalThis || {}, Yt = { formData: "FormData" in Dt, arrayBuffer: "ArrayBuffer" in Dt }; -function Xu(n) { +function Vu(n) { return n && DataView.prototype.isPrototypeOf(n); } if (Yt.arrayBuffer) - var Zu = [ + var Wu = [ "[object Int8Array]", "[object Uint8Array]", "[object Uint8ClampedArray]", @@ -9911,8 +9911,8 @@ if (Yt.arrayBuffer) "[object Uint32Array]", "[object Float32Array]", "[object Float64Array]" - ], Vu = ArrayBuffer.isView || function(n) { - return n && Zu.indexOf(Object.prototype.toString.call(n)) > -1; + ], Hu = ArrayBuffer.isView || function(n) { + return n && Wu.indexOf(Object.prototype.toString.call(n)) > -1; }; function On(n) { if (typeof n != "string" && (n = String(n)), /[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(n) || n === "") @@ -9991,7 +9991,7 @@ function kr(n) { n.bodyUsed = !0; } } -function Na(n) { +function ja(n) { return new Promise(function(t, e) { n.onload = function() { t(n.result); @@ -10000,15 +10000,15 @@ function Na(n) { }; }); } -function Wu(n) { - var t = new FileReader(), e = Na(t); +function Yu(n) { + var t = new FileReader(), e = ja(t); return t.readAsArrayBuffer(n), e; } -function Hu(n) { - var t = new FileReader(), e = Na(t), i = /charset=([A-Za-z0-9_-]+)/.exec(n.type), r = i ? i[1] : "utf-8"; +function Qu(n) { + var t = new FileReader(), e = ja(t), i = /charset=([A-Za-z0-9_-]+)/.exec(n.type), r = i ? i[1] : "utf-8"; return t.readAsText(n, r), e; } -function Yu(n) { +function Ku(n) { for (var t = new Uint8Array(n), e = new Array(t.length), i = 0; i < t.length; i++) e[i] = String.fromCharCode(t[i]); return e.join(""); @@ -10019,9 +10019,9 @@ function iA(n) { var t = new Uint8Array(n.byteLength); return t.set(new Uint8Array(n)), t.buffer; } -function Fa() { +function Ga() { return this.bodyUsed = !1, this._initBody = function(n) { - this.bodyUsed = this.bodyUsed, this._bodyInit = n, n ? typeof n == "string" ? this._bodyText = n : Yt.blob && Blob.prototype.isPrototypeOf(n) ? this._bodyBlob = n : Yt.formData && FormData.prototype.isPrototypeOf(n) ? this._bodyFormData = n : Yt.searchParams && URLSearchParams.prototype.isPrototypeOf(n) ? this._bodyText = n.toString() : Yt.arrayBuffer && Yt.blob && Xu(n) ? (this._bodyArrayBuffer = iA(n.buffer), this._bodyInit = new Blob([this._bodyArrayBuffer])) : Yt.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(n) || Vu(n)) ? this._bodyArrayBuffer = iA(n) : this._bodyText = n = Object.prototype.toString.call(n) : (this._noBody = !0, this._bodyText = ""), this.headers.get("content-type") || (typeof n == "string" ? this.headers.set("content-type", "text/plain;charset=UTF-8") : this._bodyBlob && this._bodyBlob.type ? this.headers.set("content-type", this._bodyBlob.type) : Yt.searchParams && URLSearchParams.prototype.isPrototypeOf(n) && this.headers.set("content-type", "application/x-www-form-urlencoded;charset=UTF-8")); + this.bodyUsed = this.bodyUsed, this._bodyInit = n, n ? typeof n == "string" ? this._bodyText = n : Yt.blob && Blob.prototype.isPrototypeOf(n) ? this._bodyBlob = n : Yt.formData && FormData.prototype.isPrototypeOf(n) ? this._bodyFormData = n : Yt.searchParams && URLSearchParams.prototype.isPrototypeOf(n) ? this._bodyText = n.toString() : Yt.arrayBuffer && Yt.blob && Vu(n) ? (this._bodyArrayBuffer = iA(n.buffer), this._bodyInit = new Blob([this._bodyArrayBuffer])) : Yt.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(n) || Hu(n)) ? this._bodyArrayBuffer = iA(n) : this._bodyText = n = Object.prototype.toString.call(n) : (this._noBody = !0, this._bodyText = ""), this.headers.get("content-type") || (typeof n == "string" ? this.headers.set("content-type", "text/plain;charset=UTF-8") : this._bodyBlob && this._bodyBlob.type ? this.headers.set("content-type", this._bodyBlob.type) : Yt.searchParams && URLSearchParams.prototype.isPrototypeOf(n) && this.headers.set("content-type", "application/x-www-form-urlencoded;charset=UTF-8")); }, Yt.blob && (this.blob = function() { var n = kr(this); if (n) @@ -10044,7 +10044,7 @@ function Fa() { ) : Promise.resolve(this._bodyArrayBuffer)); } else { if (Yt.blob) - return this.blob().then(Wu); + return this.blob().then(Yu); throw new Error("could not read as ArrayBuffer"); } }, this.text = function() { @@ -10052,22 +10052,22 @@ function Fa() { if (n) return n; if (this._bodyBlob) - return Hu(this._bodyBlob); + return Qu(this._bodyBlob); if (this._bodyArrayBuffer) - return Promise.resolve(Yu(this._bodyArrayBuffer)); + return Promise.resolve(Ku(this._bodyArrayBuffer)); if (this._bodyFormData) throw new Error("could not read FormData body as text"); return Promise.resolve(this._bodyText); }, Yt.formData && (this.formData = function() { - return this.text().then(Ju); + return this.text().then($u); }), this.json = function() { return this.text().then(JSON.parse); }, this; } -var Qu = ["CONNECT", "DELETE", "GET", "HEAD", "OPTIONS", "PATCH", "POST", "PUT", "TRACE"]; -function Ku(n) { +var Ju = ["CONNECT", "DELETE", "GET", "HEAD", "OPTIONS", "PATCH", "POST", "PUT", "TRACE"]; +function qu(n) { var t = n.toUpperCase(); - return Qu.indexOf(t) > -1 ? t : n; + return Ju.indexOf(t) > -1 ? t : n; } function tn(n, t) { if (!(this instanceof tn)) @@ -10080,7 +10080,7 @@ function tn(n, t) { this.url = n.url, this.credentials = n.credentials, t.headers || (this.headers = new kt(n.headers)), this.method = n.method, this.mode = n.mode, this.signal = n.signal, !e && n._bodyInit != null && (e = n._bodyInit, n.bodyUsed = !0); } else this.url = String(n); - if (this.credentials = t.credentials || this.credentials || "same-origin", (t.headers || !this.headers) && (this.headers = new kt(t.headers)), this.method = Ku(t.method || this.method || "GET"), this.mode = t.mode || this.mode || null, this.signal = t.signal || this.signal || (function() { + if (this.credentials = t.credentials || this.credentials || "same-origin", (t.headers || !this.headers) && (this.headers = new kt(t.headers)), this.method = qu(t.method || this.method || "GET"), this.mode = t.mode || this.mode || null, this.signal = t.signal || this.signal || (function() { if ("AbortController" in Dt) { var s = new AbortController(); return s.signal; @@ -10100,7 +10100,7 @@ function tn(n, t) { tn.prototype.clone = function() { return new tn(this, { body: this._bodyInit }); }; -function Ju(n) { +function $u(n) { var t = new FormData(); return n.trim().split("&").forEach(function(e) { if (e) { @@ -10109,7 +10109,7 @@ function Ju(n) { } }), t; } -function qu(n) { +function tC(n) { var t = new kt(), e = n.replace(/\r?\n[\t ]+/g, " "); return e.split("\r").map(function(i) { return i.indexOf(` @@ -10126,7 +10126,7 @@ function qu(n) { } }), t; } -Fa.call(tn.prototype); +Ga.call(tn.prototype); function ye(n, t) { if (!(this instanceof ye)) throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.'); @@ -10134,7 +10134,7 @@ function ye(n, t) { throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599]."); this.ok = this.status >= 200 && this.status < 300, this.statusText = t.statusText === void 0 ? "" : "" + t.statusText, this.headers = new kt(t.headers), this.url = t.url || "", this._initBody(n); } -Fa.call(ye.prototype); +Ga.call(ye.prototype); ye.prototype.clone = function() { return new ye(this._bodyInit, { status: this.status, @@ -10147,9 +10147,9 @@ ye.error = function() { var n = new ye(null, { status: 200, statusText: "" }); return n.ok = !1, n.status = 0, n.type = "error", n; }; -var $u = [301, 302, 303, 307, 308]; +var eC = [301, 302, 303, 307, 308]; ye.redirect = function(n, t) { - if ($u.indexOf(t) === -1) + if (eC.indexOf(t) === -1) throw new RangeError("Invalid status code"); return new ye(null, { status: t, headers: { location: n } }); }; @@ -10163,7 +10163,7 @@ try { this.stack = i.stack; }, He.prototype = Object.create(Error.prototype), He.prototype.constructor = He; } -function ja(n, t) { +function Ua(n, t) { return new Promise(function(e, i) { var r = new tn(n, t); if (r.signal && r.signal.aborted) @@ -10175,7 +10175,7 @@ function ja(n, t) { s.onload = function() { var g = { statusText: s.statusText, - headers: qu(s.getAllResponseHeaders() || "") + headers: tC(s.getAllResponseHeaders() || "") }; r.url.indexOf("file://") === 0 && (s.status < 200 || s.status > 599) ? g.status = 200 : g.status = s.status, g.url = "responseURL" in s ? s.responseURL : g.headers.get("X-Request-URL"); var I = "response" in s ? s.response : s.responseText; @@ -10218,9 +10218,9 @@ function ja(n, t) { }), s.send(typeof r._bodyInit > "u" ? null : r._bodyInit); }); } -ja.polyfill = !0; -Dt.fetch || (Dt.fetch = ja, Dt.Headers = kt, Dt.Request = tn, Dt.Response = ye); -const Ga = "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAASABIAAD/4QBMRXhpZgAATU0AKgAAAAgAAgESAAMAAAABAAEAAIdpAAQAAAABAAAAJgAAAAAAAqACAAQAAAABAAAANKADAAQAAAABAAAANAAAAAD/4QkhaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLwA8P3hwYWNrZXQgYmVnaW49Iu+7vyIgaWQ9Ilc1TTBNcENlaGlIenJlU3pOVGN6a2M5ZCI/PiA8eDp4bXBtZXRhIHhtbG5zOng9ImFkb2JlOm5zOm1ldGEvIiB4OnhtcHRrPSJYTVAgQ29yZSA1LjQuMCI+IDxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+IDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiLz4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8P3hwYWNrZXQgZW5kPSJ3Ij8+AP/tADhQaG90b3Nob3AgMy4wADhCSU0EBAAAAAAAADhCSU0EJQAAAAAAENQdjNmPALIE6YAJmOz4Qn7/4hskSUNDX1BST0ZJTEUAAQEAABsUYXBwbAIQAABtbnRyUkdCIFhZWiAH4AAKAB0AFAA0AAZhY3NwQVBQTAAAAABBUFBMAAAAAAAAAAAAAAAAAAAAAAAA9tYAAQAAAADTLWFwcGwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABFkZXNjAAABUAAAAGJkc2NtAAABtAAABBhjcHJ0AAAFzAAAACN3dHB0AAAF8AAAABRyWFlaAAAGBAAAABRnWFlaAAAGGAAAABRiWFlaAAAGLAA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/2YVx0YRlUhzK//Ds/VM0oU6uEq06sU4tPRq6+Ht8395BpXjvxH4n02ystbmS4T+0ViZvLVWYJbyzKTtwMh41IOBX0H8Mdck1C1tNMurO0YJJdbJvK/fr5V1cqo35/6YqeR1z7Y+S/Bf8AqrP/ALCv/tnc19M/CX/j5tv+ul9/6WX9fS49JYjERW3s5fmfg+CoU6XCKVOKS9u9lbpJfovuO9naczO5ubkF3Z8LcSqo3MTgBXAAGcD2qLdN/wA/N1/4FT//ABypZvv1DXdhMswcqEG6Ub2X2V29DSnRp8i91fcf/9k=", Ua = "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAASABIAAD/4QBMRXhpZgAATU0AKgAAAAgAAgESAAMAAAABAAEAAIdpAAQAAAABAAAAJgAAAAAAAqACAAQAAAABAAAANKADAAQAAAABAAAANAAAAAD/4QkhaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLwA8P3hwYWNrZXQgYmVnaW49Iu+7vyIgaWQ9Ilc1TTBNcENlaGlIenJlU3pOVGN6a2M5ZCI/PiA8eDp4bXBtZXRhIHhtbG5zOng9ImFkb2JlOm5zOm1ldGEvIiB4OnhtcHRrPSJYTVAgQ29yZSA1LjQuMCI+IDxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+IDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiLz4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8P3hwYWNrZXQgZW5kPSJ3Ij8+AP/tADhQaG90b3Nob3AgMy4wADhCSU0EBAAAAAAAADhCSU0EJQAAAAAAENQdjNmPALIE6YAJmOz4Qn7/4gKESUNDX1BST0ZJTEUAAQEAAAJ0YXBwbAQAAABtbnRyUkdCIFhZWiAH3AALAAwAEgA6ABdhY3NwQVBQTAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA9tYAAQAAAADTLWFwcGxmSfnZPIV3n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r8z8jUVPPYRnqnZPzXvaHm/xJ8HWUOs2Yku7uZ30+CRnYxxktIWY/LFHGnU9lyepJOTXnv/AAien/8APe5/7+f/AFq9w+KH/IbsP+wXafyavNq4U9Dkq4elzv3Vv2P/2Q==", za = "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAASABIAAD/4QCARXhpZgAATU0AKgAAAAgABQESAAMAAAABAAEAAAEaAAUAAAABAAAASgEbAAUAAAABAAAAUgEoAAMAAAABAAIAAIdpAAQAAAABAAAAWgAAAAAAAABIAAAAAQAAAEgAAAABAAKgAgAEAAAAAQAAADSgAwAEAAAAAQAAADQAAAAA/+EJIWh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8APD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iWE1QIENvcmUgNS40LjAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIi8+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPD94cGFja2V0IGVuZD0idyI/PgD/7QA4UGhvdG9zaG9wIDMuMAA4QklNBAQAAAAAAAA4QklNBCUAAAAAABDUHYzZjwCyBOmACZjs+EJ+/+IbJElDQ19QUk9GSUxFAAEBAAAbFGFwcGwCEAAAbW50clJHQiBYWVogB+EABAAEABcABgAzYWNzcEFQUEwAAAAAQVBQTAAAAAAAAAAAAAAAAAAAAAAAAPbWAAEAAAAA0y1hcHBsAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAARZGVzYwAAAVAAAABiZHNjbQAAAbQAAAQYY3BydAAABcwAAAAjd3RwdAAABfAAAAAUclhZWgAABgQ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29yZSA1LjQuMCI+IDxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+IDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiLz4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC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bS94YXAvMS4wLwA8P3hwYWNrZXQgYmVnaW49Iu+7vyIgaWQ9Ilc1TTBNcENlaGlIenJlU3pOVGN6a2M5ZCI/PiA8eDp4bXBtZXRhIHhtbG5zOng9ImFkb2JlOm5zOm1ldGEvIiB4OnhtcHRrPSJYTVAgQ29yZSA1LjQuMCI+IDxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+IDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiLz4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8P3hwYWNrZXQgZW5kPSJ3Ij8+AP/tADhQaG90b3Nob3AgMy4wADhCSU0EBAAAAAAAADhCSU0EJQAAAAAAENQdjNmPALIE6YAJmOz4Qn7/4gKESUNDX1BST0ZJTEUAAQEAAAJ0YXBwbAQAAABtbnRyUkdCIFhZWiAH3AALAAwAEgA6ABdhY3NwQVBQTAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA9tYAAQAAAADTLWFwcGxmSfnZPIV3n7QGSpkeOnQsAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAtkZXNjAAABCAAAAGNkc2NtAAABbAAAACxjcHJ0AAABmAAAAC13dHB0AAAByAAAABRyWFlaAAAB3AAAABRnWFlaAAAB8AAAABRiWFlaAAACBAAAABRyVFJDAAACGAAAABBiVFJDAAACKAAAABBnVFJDAAACOAAAABBjaGFkAAACSAAAACxkZXNjAAAAAAAAAAlIRCA3MDktQQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAbWx1YwAAAAAAAAABAAAADGVuVVMAAAAQAAAAHABIAEQAIAA3ADAAOQAtAEF0ZXh0AAAAAENvcHlyaWdodCBBcHBsZSBDb21wdXRlciwgSW5jLiwgMjAxM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uczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iWE1QIENvcmUgNS40LjAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIi8+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPD94cGFja2V0IGVuZD0idyI/PgD/7QA4UGhvdG9zaG9wIDMuMAA4QklNBAQAAAAAAAA4QklNBCUAAAAAABDUHYzZjwCyBOmACZjs+EJ+/+IbJElDQ19QUk9GSUxFAAEBAAAbFGFwcGwCEAAAbW50clJHQiBYWVogB+EABAAEABcABgAzYWNzcEFQUEwAAAAAQVBQTAAAAAAAAAAAAAAAAAAAAAAAAPbWAAEAAAAA0y1hcHBsAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAARZGVzYwAAAVAAAABiZHNjbQAAAbQAAAQYY3BydAAABcwAAAAjd3RwdAAABfAAAAAUclhZWgAABgQAAAAUZ1hZWgAABhgAAAAUYlhZWgAABiwAAAAUclRSQwAABkAAAAgMYWFyZwAADkwAAAAgdmNndAAADmwAAAYSbmRpbgAAFIAAAAY+Y2hhZAAAGsAAAAAsbW1vZAAAGuwAAAAoYlRSQwAABkAAAAgMZ1RSQwAABkAAAAgMYWFiZwAADkwAAAAgYWFnZwAADkwAAAAgZGVzYwAAAAAAAAAIRGlzcGxheQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAG1sdWMAAAAAAAAAIgAAAAxockhSAAAAFAAAAahrb0tSAAAADAAAAbxuYk5PAAAAEgAAAchpZAAAAAAAEgAAAdpodUhVAAAAFAAAAexjc0NaAAAAFgAAAgBkYURLAAAAHAAAAhZ1a1VBA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Xgj3Bz3zSeLBFffHPw7p7xiOCyV5YkjZ1HmLG7bj82D8zFsfdzg4yBjL8Nf8AJSdC/wB2/wD/AEMVp6//AMnAaR/1yl/9EmtFFKUmjeP2fVfkVfE3iW/0XVGtbeO3lV98paeJXYF5H4B/ujoBXPf8J5q//PvZf+A60vj7/kO/9sv/AGd64mqsjqbP/9k=", nC = { osm: { mapID: "osm", title: { @@ -10242,7 +10242,7 @@ const Ga = "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAASABIAAD/4QBMRXhpZgAATU0AK // maxZoom必須: 未指定だとWeiwudi(SWタイルキャッシュ)登録時にズーム上限0と // 解釈される環境があり、キャッシュ経由の全タイルが404になる (#78) maxZoom: 19, - thumbnail: Ga, + thumbnail: za, urls: [ "https://a.tile.openstreetmap.org/{z}/{x}/{y}.png", "https://b.tile.openstreetmap.org/{z}/{x}/{y}.png", @@ -10276,7 +10276,7 @@ const Ga = "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAASABIAAD/4QBMRXhpZgAATU0AK maptype: "base", url: "https://cyberjapandata.gsi.go.jp/xyz/std/{z}/{x}/{y}.png", maxZoom: 18, - thumbnail: Ua + thumbnail: Xa }, gsi_ortho: { mapID: "gsi_ortho", @@ -10305,11 +10305,11 @@ const Ga = "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAASABIAAD/4QBMRXhpZgAATU0AK maptype: "base", url: "https://cyberjapandata.gsi.go.jp/xyz/ort/{z}/{x}/{y}.jpg", maxZoom: 18, - thumbnail: za + thumbnail: Za } }, rA = (n) => (n || "").match(/^(?:base|overlay|google(?:_(?:roadmap|satellite|hybrid|terrain))?|mapbox|maplibre|osm)$/); -async function eC(n, t) { - typeof n == "string" && (n = { ...tC[n] }), n = me(Object.assign(n, t)); +async function iC(n, t) { + typeof n == "string" && (n = { ...nC[n] }), n = me(Object.assign(n, t)); const e = n.label || n.year; if (e !== void 0 && (n.label = e), rA(n.maptype)) { const A = n.maptype === "base" ? kn : n.maptype === "overlay" ? Vi : n.maptype === "mapbox" ? Xi : n.maptype === "maplibre" ? Zi : ss; @@ -10376,7 +10376,7 @@ async function _r(n) { } return i; } -const nC = "hidden"; +const rC = "hidden"; function Pr(n, t) { return n + (Math.random() - 0.5) * t; } @@ -10386,15 +10386,15 @@ function As(n, t) { const e = Math.pow(10, t); return Math.round(n * e) / e; } -function iC(n) { +function sC(n) { return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n; } -var as = { exports: {} }, rC = as.exports, sA; -function sC() { +var as = { exports: {} }, oC = as.exports, sA; +function AC() { return sA || (sA = 1, (function(n, t) { (function(e, i) { n.exports = i(); - })(typeof self < "u" ? self : rC, function() { + })(typeof self < "u" ? self : oC, function() { return ( /******/ (function(e) { @@ -13944,12 +13944,12 @@ else {`), this._emit("cb()")), this._emitLine("}"); }); })(as)), as.exports; } -var oC = sC(); -const AC = /* @__PURE__ */ iC(oC); -function aC(n) { +var aC = AC(); +const gC = /* @__PURE__ */ sC(aC); +function cC(n) { const t = {}; for (const [i, r] of Object.entries(n.templates)) - t[i] = AC.compile(r); + t[i] = gC.compile(r); const e = (i) => { i.result = {}; for (const r of Object.keys(n.templates)) @@ -13957,42 +13957,42 @@ function aC(n) { }; return "features" in n.geojson ? n.geojson.features.forEach(e) : e(n.geojson), n.geojson; } -const gC = { - templateExtractor: aC -}, cC = /\{%-?\s*(raw|verbatim)\s*-?%\}[\s\S]*?\{%-?\s*end\1\s*-?%\}/g, lC = /<%[\s\S]*?%>/, IC = /\$\{[^}]*\}/, uC = 'MaplatApp: poiTemplate/iconTemplate written in the lodash.template syntax (<% %>, <%= %>, <%- %>, ${ }) is no longer evaluated since @maplat/core 1.3.0, and was ignored. Rewrite it in the Nunjucks syntax ({{ }}, {% %}); wrap literal "<%" or "${" in {% raw %}...{% endraw %}.', CC = 'See the "Removed" section of the 1.3.0 CHANGELOG: https://github.com/code4history/MaplatCore/blob/master/CHANGELOG.md'; +const lC = { + templateExtractor: cC +}, IC = /\{%-?\s*(raw|verbatim)\s*-?%\}[\s\S]*?\{%-?\s*end\1\s*-?%\}/g, uC = /<%[\s\S]*?%>/, CC = /\$\{[^}]*\}/, hC = 'MaplatApp: poiTemplate/iconTemplate written in the lodash.template syntax (<% %>, <%= %>, <%- %>, ${ }) is no longer evaluated since @maplat/core 1.3.0, and was ignored. Rewrite it in the Nunjucks syntax ({{ }}, {% %}); wrap literal "<%" or "${" in {% raw %}...{% endraw %}.', fC = 'See the "Removed" section of the 1.3.0 CHANGELOG: https://github.com/code4history/MaplatCore/blob/master/CHANGELOG.md'; let oA = !1, AA = !1; -function Xa(n) { +function Va(n) { return Array.from(n).slice(0, 80).join(""); } -function hC(n) { - const t = n.replace(cC, ""); - return lC.test(t) || IC.test(t); +function dC(n) { + const t = n.replace(IC, ""); + return uC.test(t) || CC.test(t); } -function fC(n, t) { - oA || (oA = !0, console.warn(`${uC} First template found (${n}): "${Xa(t)}". ${CC}`)); +function pC(n, t) { + oA || (oA = !0, console.warn(`${hC} First template found (${n}): "${Va(t)}". ${fC}`)); } function gs(n, t) { if (AA) return; AA = !0; const i = (t instanceof Error ? t.message : String(t)).split(` `).map((r) => r.trim()).filter((r) => r).join(" "); - console.warn(`MaplatApp: a poiTemplate/iconTemplate failed to render and was ignored: ${i}. First template: "${Xa(n)}".`); + console.warn(`MaplatApp: a poiTemplate/iconTemplate failed to render and was ignored: ${i}. First template: "${Va(n)}".`); } -function Za(n, t, e) { - if (hC(t)) { - fC(n, t); +function Wa(n, t, e) { + if (dC(t)) { + pC(n, t); return; } try { const i = { type: "Feature", geometry: null, properties: e }; - return gC.templateExtractor({ geojson: i, templates: { t } }), i.result.t; + return lC.templateExtractor({ geojson: i, templates: { t } }), i.result.t; } catch (i) { gs(t, i); return; } } -function dC(n, t) { - const e = Za("iconTemplate", n, t); +function mC(n, t) { + const e = Wa("iconTemplate", n, t); if (e === void 0) return; let i; try { @@ -14007,12 +14007,12 @@ function dC(n, t) { } return i; } -function pC(n, ...t) { +function yC(n, ...t) { const e = me(Object.assign({}, n)); if (e.icon) return e; const i = t.reduce((r, s) => { if (r) return r; - const o = s.iconTemplate, a = o ? dC(o, e) : void 0; + const o = s.iconTemplate, a = o ? mC(o, e) : void 0; if (a) return a; if (s.icon) @@ -14023,17 +14023,21 @@ function pC(n, ...t) { }, void 0); return i && (e.icon = i.icon, e.selectedIcon = i.selectedIcon), e; } -function mC(n, ...t) { +function vC(n, ...t) { return n = me(n), n.html ? n : t.reduce((e, i) => { if (e) return e; const r = i.poiTemplate; if (r) { - const s = Za("poiTemplate", r, n); + const s = Wa("poiTemplate", r, n); return s === void 0 ? void 0 : (n.html = s, n.poiStyle = n.poiStyle || i.poiStyle, n); } }, void 0) || n; } -const Va = "marker", yC = (n) => n.lnglat || [n.lng || n.longitude, n.lat || n.latitude]; +function aA(n, ...t) { + const e = yC(n, ...t); + return vC(e, ...t); +} +const Ha = "marker", wC = (n) => n.lnglat || [n.lng || n.longitude, n.lat || n.latitude]; async function Or(n, t) { const e = n.from; if (!e) return { kind: "skip" }; @@ -14046,54 +14050,54 @@ async function Or(n, t) { const o = e.xy2SysCoord([t.x, t.y]); return i(o) ? { kind: "inside", xy: o } : { kind: "skip" }; } - const r = qt(yC(t), "EPSG:4326", "EPSG:3857"), s = await e.merc2SysCoordAsync_ignoreBackground(r); + const r = qt(wC(t), "EPSG:4326", "EPSG:3857"), s = await e.merc2SysCoordAsync_ignoreBackground(r); return i(s) ? { kind: "inside", xy: s } : { kind: "outside", merc: r }; } -function Wa(n) { +function Ya(n) { return typeof n?.isWmts == "function" ? n.isWmts() === !0 : !1; } -function Ha(n) { - return n.__hideOutsidePois || !n.from ? "none" : Wa(n.from) ? "front" : n.backMap ? "back" : "none"; +function Qa(n) { + return n.__hideOutsidePois || !n.from ? "none" : Ya(n.from) ? "front" : n.backMap ? "back" : "none"; } -function vC(n, t, e) { - const i = Ha(n), r = [], s = []; +function bC(n, t, e) { + const i = Qa(n), r = [], s = []; return t.forEach((o, a) => { const A = e[a]; A.kind === "inside" ? r.push({ ...o, xy: A.xy }) : A.kind === "outside" && i === "back" ? s.push({ ...o, merc: A.merc }) : A.kind === "outside" && i === "front" && r.push({ ...o, xy: A.merc }); }), { front: r, back: s }; } -function aA(n) { - return n?.getSource ? n.getSource(Va) : void 0; +function gA(n) { + return n?.getSource ? n.getSource(Ha) : void 0; } -const gA = (n) => { - const t = n.xy || n.merc, e = new kA({ +const cA = (n) => { + const t = n.xy || n.merc, e = new PA({ geometry: new Tn(t), datum: n.data - }), i = Ta(n.icon); + }), i = ka(n.icon); return i && e.setStyle(i), e; }; -function cA(n, t) { - const e = aA(n.mapObject); +function lA(n, t) { + const e = gA(n.mapObject); if (!e) return; - const i = n.backMap ? aA(n.backMap) : void 0; - e.clear(), i && i.clear(), t.front.length > 0 && e.addFeatures(t.front.map(gA)), i && t.back.length > 0 && i.addFeatures(t.back.map(gA)); + const i = n.backMap ? gA(n.backMap) : void 0; + e.clear(), i && i.clear(), t.front.length > 0 && e.addFeatures(t.front.map(cA)), i && t.back.length > 0 && i.addFeatures(t.back.map(cA)); } -function wC(n, t, e, i) { +function EC(n, t, e, i) { if (i.kind === "skip") return; - const s = i.kind === "outside" && Ha(n) === "back" ? n.backMap : n.mapObject; + const s = i.kind === "outside" && Qa(n) === "back" ? n.backMap : n.mapObject; if (!s?.setMarker) return; const o = i.kind === "inside" ? i.xy : i.merc; s.setMarker(o, { datum: t }, e); } -function bC(n, t) { +function MC(n, t) { const e = n.from; return e?.insideCheckSysCoord ? !e.insideCheckSysCoord(t) : !1; } -function lA(n, t) { +function IA(n, t) { const e = n.backMap; if (!e?.forEachFeatureAtPixel) return []; - if (!bC(n, t.coordinate)) return []; - const i = e.getLayer ? e.getLayer(Va) : void 0, r = []; + if (!MC(n, t.coordinate)) return []; + const i = e.getLayer ? e.getLayer(Ha) : void 0, r = []; return e.forEachFeatureAtPixel( t.pixel, (s) => { @@ -14111,12 +14115,12 @@ function cs(n, t) { r && t.setCenter(r); } } -const EC = (n) => { +const xC = (n) => { const t = qt(n, "EPSG:3857", "EPSG:4326"); return { longitude: t[0], latitude: t[1] }; }; -function Ya(n, t) { - !n.from || !n.mapObject || (Wa(n.from) ? n.mapObject.getView().setCenter(t) : n.setViewpoint && n.setViewpoint(EC(t))); +function Ka(n, t) { + !n.from || !n.mapObject || (Ya(n.from) ? n.mapObject.getView().setCenter(t) : n.setViewpoint && n.setViewpoint(xC(t))); } function Lr(n, t, e) { const i = n.__outsideSelection; @@ -14137,7 +14141,7 @@ function Lr(n, t, e) { }); return; } - n.__outsideSelection = { id: i.id, merc: t.merc }, r && Ya(n, t.merc); + n.__outsideSelection = { id: i.id, merc: t.merc }, r && Ka(n, t.merc); } const Pt = { ACCURACY: "accuracy", @@ -14148,17 +14152,17 @@ const Pt = { SPEED: "speed", TRACKING: "tracking", TRACKING_OPTIONS: "trackingOptions" -}, MC = { +}, SC = { ERROR: "error" }; -class xC extends _e { +class TC extends _e { code; message; constructor(t) { - super(MC.ERROR), this.code = t.code, this.message = t.message; + super(SC.ERROR), this.code = t.code, this.message = t.message; } } -class SC extends _n { +class RC extends _n { task_id_; timer_base_ = !1; home_position_ = !1; @@ -14214,7 +14218,7 @@ class SC extends _n { this.positionError_(e); } positionError_(t) { - const e = new xC(t); + const e = new TC(t); this.dispatchEvent(e); } getAccuracy() { @@ -14248,15 +14252,15 @@ class SC extends _n { this.set(Pt.TRACKING_OPTIONS, t); } } -function IA(n, t) { +function uA(n, t) { (t == null || t > n.length) && (t = n.length); for (var e = 0, i = Array(t); e < t; e++) i[e] = n[e]; return i; } -function TC(n) { +function kC(n) { if (Array.isArray(n)) return n; } -function RC(n, t) { +function _C(n, t) { var e = n == null ? null : typeof Symbol < "u" && n[Symbol.iterator] || n["@@iterator"]; if (e != null) { var i, r, s, o, a = [], A = !0, g = !1; @@ -14274,22 +14278,22 @@ function RC(n, t) { return a; } } -function kC() { +function PC() { throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); } -function _C(n, t) { - return TC(n) || RC(n, t) || PC(n, t) || kC(); +function OC(n, t) { + return kC(n) || _C(n, t) || LC(n, t) || PC(); } -function PC(n, t) { +function LC(n, t) { if (n) { - if (typeof n == "string") return IA(n, t); + if (typeof n == "string") return uA(n, t); var e = {}.toString.call(n).slice(8, -1); - return e === "Object" && n.constructor && (e = n.constructor.name), e === "Map" || e === "Set" ? Array.from(n) : e === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e) ? IA(n, t) : void 0; + return e === "Object" && n.constructor && (e = n.constructor.name), e === "Map" || e === "Set" ? Array.from(n) : e === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e) ? uA(n, t) : void 0; } } -const Qa = Object.entries, uA = Object.setPrototypeOf, OC = Object.isFrozen, Ka = Object.getPrototypeOf, Ja = Object.getOwnPropertyDescriptor; -let _t = Object.freeze, Bt = Object.seal, pn = Object.create, qa = typeof Reflect < "u" && Reflect, ls = qa.apply, Is = qa.construct; +const Ja = Object.entries, CA = Object.setPrototypeOf, DC = Object.isFrozen, qa = Object.getPrototypeOf, $a = Object.getOwnPropertyDescriptor; +let _t = Object.freeze, Bt = Object.seal, pn = Object.create, tg = typeof Reflect < "u" && Reflect, ls = tg.apply, Is = tg.construct; _t || (_t = function(t) { return t; }); @@ -14304,7 +14308,7 @@ Is || (Is = function(t) { for (var e = arguments.length, i = new Array(e > 1 ? e - 1 : 0), r = 1; r < e; r++) i[r - 1] = arguments[r]; return new t(...i); }); -const Me = vt(Array.prototype.forEach), LC = vt(Array.prototype.lastIndexOf), CA = vt(Array.prototype.pop), Xn = vt(Array.prototype.push), DC = vt(Array.prototype.slice), BC = vt(Array.prototype.splice), Mn = Array.isArray, Dr = $a(Set), Br = vt(Set.prototype.add), Zn = vt(Set.prototype.has), We = vt(String.prototype.toLowerCase), Nr = vt(String.prototype.toString), hA = vt(String.prototype.match), Vn = vt(String.prototype.replace), fA = vt(String.prototype.indexOf), NC = vt(String.prototype.trim), FC = vt(Number.prototype.toString), jC = vt(Boolean.prototype.toString), dA = typeof BigInt > "u" ? null : vt(BigInt.prototype.toString), pA = typeof Symbol > "u" ? null : vt(Symbol.prototype.toString), Jt = vt(Object.prototype.hasOwnProperty), Wn = vt(Object.prototype.toString), Ot = vt(RegExp.prototype.test), xe = $a(TypeError); +const Me = vt(Array.prototype.forEach), BC = vt(Array.prototype.lastIndexOf), hA = vt(Array.prototype.pop), Xn = vt(Array.prototype.push), NC = vt(Array.prototype.slice), FC = vt(Array.prototype.splice), Mn = Array.isArray, Dr = eg(Set), Br = vt(Set.prototype.add), Zn = vt(Set.prototype.has), We = vt(String.prototype.toLowerCase), Nr = vt(String.prototype.toString), fA = vt(String.prototype.match), Vn = vt(String.prototype.replace), dA = vt(String.prototype.indexOf), jC = vt(String.prototype.trim), GC = vt(Number.prototype.toString), UC = vt(Boolean.prototype.toString), pA = typeof BigInt > "u" ? null : vt(BigInt.prototype.toString), mA = typeof Symbol > "u" ? null : vt(Symbol.prototype.toString), Jt = vt(Object.prototype.hasOwnProperty), Wn = vt(Object.prototype.toString), Ot = vt(RegExp.prototype.test), xe = eg(TypeError); function vt(n) { return function(t) { t instanceof RegExp && (t.lastIndex = 0); @@ -14312,7 +14316,7 @@ function vt(n) { return ls(n, t, i); }; } -function $a(n) { +function eg(n) { return function() { for (var t = arguments.length, e = new Array(t), i = 0; i < t; i++) e[i] = arguments[i]; return Is(n, e); @@ -14320,43 +14324,43 @@ function $a(n) { } function ut(n, t) { let e = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : We; - if (uA && uA(n, null), !Mn(t)) return n; + if (CA && CA(n, null), !Mn(t)) return n; let i = t.length; for (; i--; ) { let r = t[i]; if (typeof r == "string") { const s = e(r); - s !== r && (OC(t) || (t[i] = s), r = s); + s !== r && (DC(t) || (t[i] = s), r = s); } n[r] = !0; } return n; } -function GC(n) { +function zC(n) { for (let t = 0; t < n.length; t++) Jt(n, t) || (n[t] = null); return n; } function te(n) { const t = pn(null); - for (const i of Qa(n)) { - var e = _C(i, 2); + for (const i of Ja(n)) { + var e = OC(i, 2); const r = e[0], s = e[1]; - Jt(n, r) && (Mn(s) ? t[r] = GC(s) : s && typeof s == "object" && s.constructor === Object ? t[r] = te(s) : t[r] = s); + Jt(n, r) && (Mn(s) ? t[r] = zC(s) : s && typeof s == "object" && s.constructor === Object ? t[r] = te(s) : t[r] = s); } return t; } -function UC(n) { +function XC(n) { switch (typeof n) { case "string": return n; case "number": - return FC(n); + return GC(n); case "boolean": - return jC(n); + return UC(n); case "bigint": - return dA ? dA(n) : "0"; + return pA ? pA(n) : "0"; case "symbol": - return pA ? pA(n) : "Symbol()"; + return mA ? mA(n) : "Symbol()"; case "undefined": return Wn(n); case "function": @@ -14375,34 +14379,34 @@ function UC(n) { } function se(n, t) { for (; n !== null; ) { - const i = Ja(n, t); + const i = $a(n, t); if (i) { if (i.get) return vt(i.get); if (typeof i.value == "function") return vt(i.value); } - n = Ka(n); + n = qa(n); } function e() { return null; } return e; } -function zC(n, t) { +function ZC(n, t) { for (; n !== null; ) { - const e = Ja(n, t); + const e = $a(n, t); if (e) return e.get ? vt(e.get) : null; - n = Ka(n); + n = qa(n); } return null; } -function XC(n) { +function VC(n) { try { return Ot(n, ""), !0; } catch { return !1; } } -const mA = _t([ +const yA = _t([ "a", "abbr", "acronym", @@ -14596,7 +14600,7 @@ const mA = _t([ "feSpotLight", "feTile", "feTurbulence" -]), ZC = _t([ +]), WC = _t([ "animate", "color-profile", "cursor", @@ -14650,7 +14654,7 @@ const mA = _t([ "munder", "munderover", "mprescripts" -]), VC = _t([ +]), HC = _t([ "maction", "maligngroup", "malignmark", @@ -14666,7 +14670,7 @@ const mA = _t([ "annotation-xml", "mprescripts", "none" -]), yA = _t(["#text"]), vA = _t([ +]), vA = _t(["#text"]), wA = _t([ "accept", "action", "align", @@ -14978,7 +14982,7 @@ const mA = _t([ "y2", "z", "zoomandpan" -]), wA = _t([ +]), bA = _t([ "accent", "accentunder", "align", @@ -15039,7 +15043,7 @@ const mA = _t([ "xlink:title", "xml:space", "xmlns:xlink" -]), WC = Bt(/{{[\w\W]*|^[\w\W]*}}/g), HC = Bt(/<%[\w\W]*|^[\w\W]*%>/g), YC = Bt(/\${[\w\W]*/g), QC = Bt(/^data-[\-\w.\u00B7-\uFFFF]+$/), KC = Bt(/^aria-[\-\w]+$/), bA = Bt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), JC = Bt(/^(?:\w+script|data):/i), qC = Bt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), $C = Bt(/^html$/i), th = Bt(/^[a-z][.\w]*(-[.\w]+)+$/i), zr = Bt(/<[/\w!]/g), EA = Bt(/<[/\w]/g), eh = Bt(/<\/no(script|embed|frames)/i), MA = Bt(/\/>/i), xt = { +]), YC = Bt(/{{[\w\W]*|^[\w\W]*}}/g), QC = Bt(/<%[\w\W]*|^[\w\W]*%>/g), KC = Bt(/\${[\w\W]*/g), JC = Bt(/^data-[\-\w.\u00B7-\uFFFF]+$/), qC = Bt(/^aria-[\-\w]+$/), EA = Bt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), $C = Bt(/^(?:\w+script|data):/i), th = Bt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), eh = Bt(/^html$/i), nh = Bt(/^[a-z][.\w]*(-[.\w]+)+$/i), zr = Bt(/<[/\w!]/g), MA = Bt(/<[/\w]/g), ih = Bt(/<\/no(script|embed|frames)/i), xA = Bt(/\/>/i), xt = { element: 1, attribute: 2, text: 3, @@ -15052,7 +15056,7 @@ const mA = _t([ documentType: 10, documentFragment: 11, notation: 12 -}, nh = _t(ut({}, [ +}, rh = _t(ut({}, [ "style", "script", "xmp", @@ -15061,9 +15065,9 @@ const mA = _t([ "noframes", "plaintext", "noscript" -])), ih = function() { +])), sh = function() { return typeof window > "u" ? null : window; -}, rh = function(t, e) { +}, oh = function(t, e) { if (typeof t != "object" || typeof t.createPolicy != "function") return null; let i = null; const r = "data-tt-policy-suffix"; @@ -15081,7 +15085,7 @@ const mA = _t([ } catch { return console.warn("TrustedTypes policy " + s + " could not be created."), null; } -}, xA = function() { +}, SA = function() { return { afterSanitizeAttributes: [], afterSanitizeElements: [], @@ -15099,9 +15103,9 @@ const mA = _t([ const r = Jt(t, e) ? t[e] : void 0; return r && typeof r == "object" ? te(r) : i(); }; -function tg() { - let n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ih(); - const t = (z) => tg(z); +function ng() { + let n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : sh(); + const t = (z) => ng(z); if (t.version = "3.4.17", t.removed = [], !n || !n.document || n.document.nodeType !== xt.document || !n.Element) return t.isSupported = !1, t; let e = n.document; @@ -15113,7 +15117,7 @@ function tg() { return v ? v(b) : b.nodeType; }, x = function(b) { return f ? f(b) : b.nodeName; - }, S = zC(l, "namespaceURI"), E = function(b) { + }, S = ZC(l, "namespaceURI"), E = function(b) { return S ? S(b) : b.namespaceURI; }; if (typeof s == "function") { @@ -15138,24 +15142,24 @@ function tg() { F--; } }, O = function() { - return D || (L = rh(I, r), D = !0), L; + return D || (L = oh(I, r), D = !0), L; }, X = e, Z = X.implementation, V = X.createNodeIterator, st = X.createDocumentFragment, rt = X.getElementsByTagName, At = i.importNode; - let nt = xA(); - t.isSupported = typeof Qa == "function" && typeof h == "function" && Z && Z.createHTMLDocument !== void 0; - const pt = WC, at = HC, Y = YC, J = QC, Q = KC, mt = JC, Nt = qC, ie = th; - let yt = bA, ht = null; + let nt = SA(); + t.isSupported = typeof Ja == "function" && typeof h == "function" && Z && Z.createHTMLDocument !== void 0; + const pt = YC, at = QC, Y = KC, J = JC, Q = qC, mt = $C, Nt = th, ie = nh; + let yt = EA, ht = null; const P = ut({}, [ - ...mA, + ...yA, ...Fr, ...jr, ...Gr, - ...yA + ...vA ]); let B = null; const W = ut({}, [ - ...vA, - ...Ur, ...wA, + ...Ur, + ...bA, ...Pi ]); let H = Object.seal(pn(null, { @@ -15250,7 +15254,7 @@ function tg() { "xmlns" ]), Ci = "http://www.w3.org/1998/Math/MathML", hi = "http://www.w3.org/2000/svg", ue = "http://www.w3.org/1999/xhtml"; let rn = ue, er = !1, nr = null; - const ig = ut({}, [ + const sg = ut({}, [ Ci, hi, ue @@ -15264,7 +15268,7 @@ function tg() { let ir = ut({}, Fs); const js = _t(["annotation-xml"]); let rr = ut({}, js); - const rg = ut({}, [ + const og = ut({}, [ "title", "style", "font", @@ -15272,22 +15276,22 @@ function tg() { "script" ]); let Bn = null; - const sg = ["application/xhtml+xml", "text/html"], og = "text/html"; + const Ag = ["application/xhtml+xml", "text/html"], ag = "text/html"; let Mt = null, sn = null; - const Ag = e.createElement("form"), Gs = function(b) { + const gg = e.createElement("form"), Gs = function(b) { return b instanceof RegExp || b instanceof Function; }, sr = function() { let b = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; if (sn && sn === b) return; - (!b || typeof b != "object") && (b = {}), b = te(b), Bn = sg.indexOf(b.PARSER_MEDIA_TYPE) === -1 ? og : b.PARSER_MEDIA_TYPE, Mt = Bn === "application/xhtml+xml" ? Nr : We, ht = Ne(b, "ALLOWED_TAGS", P, { transform: Mt }), B = Ne(b, "ALLOWED_ATTR", W, { transform: Mt }), nr = Ne(b, "ALLOWED_NAMESPACES", ig, { transform: Nr }), nn = Ne(b, "ADD_URI_SAFE_ATTR", Ns, { + (!b || typeof b != "object") && (b = {}), b = te(b), Bn = Ag.indexOf(b.PARSER_MEDIA_TYPE) === -1 ? ag : b.PARSER_MEDIA_TYPE, Mt = Bn === "application/xhtml+xml" ? Nr : We, ht = Ne(b, "ALLOWED_TAGS", P, { transform: Mt }), B = Ne(b, "ALLOWED_ATTR", W, { transform: Mt }), nr = Ne(b, "ALLOWED_NAMESPACES", sg, { transform: Nr }), nn = Ne(b, "ADD_URI_SAFE_ATTR", Ns, { transform: Mt, base: Ns }), Ii = Ne(b, "ADD_DATA_URI_TAGS", ui, { transform: Mt, base: ui - }), be = Ne(b, "FORBID_CONTENTS", Xe, { transform: Mt }), it = Ne(b, "FORBID_TAGS", te({}), { transform: Mt }), tt = Ne(b, "FORBID_ATTR", te({}), { transform: Mt }), re = Jt(b, "USE_PROFILES") ? b.USE_PROFILES && typeof b.USE_PROFILES == "object" ? te(b.USE_PROFILES) : b.USE_PROFILES : !1, ot = b.ALLOW_ARIA_ATTR !== !1, wt = b.ALLOW_DATA_ATTR !== !1, St = b.ALLOW_UNKNOWN_PROTOCOLS || !1, zt = b.ALLOW_SELF_CLOSE_IN_ATTR !== !1, ae = b.SAFE_FOR_TEMPLATES || !1, ve = b.SAFE_FOR_XML !== !1, we = b.WHOLE_DOCUMENT || !1, $t = b.RETURN_DOM || !1, Ie = b.RETURN_DOM_FRAGMENT || !1, K = b.RETURN_TRUSTED_TYPE || !1, Dn = b.FORCE_BODY || !1, $ = b.SANITIZE_DOM !== !1, It = b.SANITIZE_NAMED_PROPS || !1, Ct = b.KEEP_CONTENT !== !1, bt = b.IN_PLACE || !1, yt = XC(b.ALLOWED_URI_REGEXP) ? b.ALLOWED_URI_REGEXP : bA, rn = typeof b.NAMESPACE == "string" ? b.NAMESPACE : ue, ir = Xr(b, "MATHML_TEXT_INTEGRATION_POINTS", () => ut({}, Fs)), rr = Xr(b, "HTML_INTEGRATION_POINTS", () => ut({}, js)); + }), be = Ne(b, "FORBID_CONTENTS", Xe, { transform: Mt }), it = Ne(b, "FORBID_TAGS", te({}), { transform: Mt }), tt = Ne(b, "FORBID_ATTR", te({}), { transform: Mt }), re = Jt(b, "USE_PROFILES") ? b.USE_PROFILES && typeof b.USE_PROFILES == "object" ? te(b.USE_PROFILES) : b.USE_PROFILES : !1, ot = b.ALLOW_ARIA_ATTR !== !1, wt = b.ALLOW_DATA_ATTR !== !1, St = b.ALLOW_UNKNOWN_PROTOCOLS || !1, zt = b.ALLOW_SELF_CLOSE_IN_ATTR !== !1, ae = b.SAFE_FOR_TEMPLATES || !1, ve = b.SAFE_FOR_XML !== !1, we = b.WHOLE_DOCUMENT || !1, $t = b.RETURN_DOM || !1, Ie = b.RETURN_DOM_FRAGMENT || !1, K = b.RETURN_TRUSTED_TYPE || !1, Dn = b.FORCE_BODY || !1, $ = b.SANITIZE_DOM !== !1, It = b.SANITIZE_NAMED_PROPS || !1, Ct = b.KEEP_CONTENT !== !1, bt = b.IN_PLACE || !1, yt = VC(b.ALLOWED_URI_REGEXP) ? b.ALLOWED_URI_REGEXP : EA, rn = typeof b.NAMESPACE == "string" ? b.NAMESPACE : ue, ir = Xr(b, "MATHML_TEXT_INTEGRATION_POINTS", () => ut({}, Fs)), rr = Xr(b, "HTML_INTEGRATION_POINTS", () => ut({}, js)); const _ = Xr(b, "CUSTOM_ELEMENT_HANDLING", () => pn(null)); - if (H = pn(null), Jt(_, "tagNameCheck") && Gs(_.tagNameCheck) && (H.tagNameCheck = _.tagNameCheck), Jt(_, "attributeNameCheck") && Gs(_.attributeNameCheck) && (H.attributeNameCheck = _.attributeNameCheck), Jt(_, "allowCustomizedBuiltInElements") && typeof _.allowCustomizedBuiltInElements == "boolean" && (H.allowCustomizedBuiltInElements = _.allowCustomizedBuiltInElements), Bt(H), ae && (wt = !1), Ie && ($t = !0), re && (ht = ut({}, yA), B = pn(null), re.html === !0 && (ut(ht, mA), ut(B, vA)), re.svg === !0 && (ut(ht, Fr), ut(B, Ur), ut(B, Pi)), re.svgFilters === !0 && (ut(ht, jr), ut(B, Ur), ut(B, Pi)), re.mathMl === !0 && (ut(ht, Gr), ut(B, wA), ut(B, Pi))), gt.tagCheck = null, gt.attributeCheck = null, Jt(b, "ADD_TAGS") && (typeof b.ADD_TAGS == "function" ? gt.tagCheck = b.ADD_TAGS : Mn(b.ADD_TAGS) && (ht === P && (ht = te(ht)), ut(ht, b.ADD_TAGS, Mt))), Jt(b, "ADD_ATTR") && (typeof b.ADD_ATTR == "function" ? gt.attributeCheck = b.ADD_ATTR : Mn(b.ADD_ATTR) && (B === W && (B = te(B)), ut(B, b.ADD_ATTR, Mt))), Jt(b, "ADD_FORBID_CONTENTS") && Mn(b.ADD_FORBID_CONTENTS) && (be === Xe && (be = te(be)), ut(be, b.ADD_FORBID_CONTENTS, Mt)), Ct && (ht["#text"] = !0), we && ut(ht, [ + if (H = pn(null), Jt(_, "tagNameCheck") && Gs(_.tagNameCheck) && (H.tagNameCheck = _.tagNameCheck), Jt(_, "attributeNameCheck") && Gs(_.attributeNameCheck) && (H.attributeNameCheck = _.attributeNameCheck), Jt(_, "allowCustomizedBuiltInElements") && typeof _.allowCustomizedBuiltInElements == "boolean" && (H.allowCustomizedBuiltInElements = _.allowCustomizedBuiltInElements), Bt(H), ae && (wt = !1), Ie && ($t = !0), re && (ht = ut({}, vA), B = pn(null), re.html === !0 && (ut(ht, yA), ut(B, wA)), re.svg === !0 && (ut(ht, Fr), ut(B, Ur), ut(B, Pi)), re.svgFilters === !0 && (ut(ht, jr), ut(B, Ur), ut(B, Pi)), re.mathMl === !0 && (ut(ht, Gr), ut(B, bA), ut(B, Pi))), gt.tagCheck = null, gt.attributeCheck = null, Jt(b, "ADD_TAGS") && (typeof b.ADD_TAGS == "function" ? gt.tagCheck = b.ADD_TAGS : Mn(b.ADD_TAGS) && (ht === P && (ht = te(ht)), ut(ht, b.ADD_TAGS, Mt))), Jt(b, "ADD_ATTR") && (typeof b.ADD_ATTR == "function" ? gt.attributeCheck = b.ADD_ATTR : Mn(b.ADD_ATTR) && (B === W && (B = te(B)), ut(B, b.ADD_ATTR, Mt))), Jt(b, "ADD_FORBID_CONTENTS") && Mn(b.ADD_FORBID_CONTENTS) && (be === Xe && (be = te(be)), ut(be, b.ADD_FORBID_CONTENTS, Mt)), Ct && (ht["#text"] = !0), we && ut(ht, [ "html", "head", "body" @@ -15306,17 +15310,17 @@ function tg() { }, Us = ut({}, [ ...Fr, ...jr, - ...ZC - ]), zs = ut({}, [...Gr, ...VC]), ag = function(b, _, j) { + ...WC + ]), zs = ut({}, [...Gr, ...HC]), cg = function(b, _, j) { return _.namespaceURI === ue ? b === "svg" : _.namespaceURI === Ci ? b === "svg" && (j === "annotation-xml" || ir[j]) : !!Us[b]; - }, gg = function(b, _, j) { + }, lg = function(b, _, j) { return _.namespaceURI === ue ? b === "math" : _.namespaceURI === hi ? b === "math" && rr[j] : !!zs[b]; - }, cg = function(b, _, j) { - return _.namespaceURI === hi && !rr[j] || _.namespaceURI === Ci && !ir[j] ? !1 : !zs[b] && (rg[b] || !Us[b]); - }, lg = function(b) { + }, Ig = function(b, _, j) { + return _.namespaceURI === hi && !rr[j] || _.namespaceURI === Ci && !ir[j] ? !1 : !zs[b] && (og[b] || !Us[b]); + }, ug = function(b) { const _ = E(b), j = We(x(b)), G = h(b); let q, et; - return G && w(G) === xt.element ? (q = { namespaceURI: E(G) }, et = We(x(G))) : (q = { namespaceURI: rn }, et = "template"), nr[_] ? _ === hi ? ag(j, q, et) : _ === Ci ? gg(j, q, et) : _ === ue ? cg(j, q, et) : !!(Bn === "application/xhtml+xml" && nr[_]) : !1; + return G && w(G) === xt.element ? (q = { namespaceURI: E(G) }, et = We(x(G))) : (q = { namespaceURI: rn }, et = "template"), nr[_] ? _ === hi ? cg(j, q, et) : _ === Ci ? lg(j, q, et) : _ === ue ? Ig(j, q, et) : !!(Bn === "application/xhtml+xml" && nr[_]) : !1; }, Oe = function(b) { Xn(t.removed, { element: b }); try { @@ -15336,7 +15340,7 @@ function tg() { }, or = function(b) { ar(b); const _ = u(b); - _ && Me(DC(_), (G) => { + _ && Me(NC(_), (G) => { try { p(G); } catch { @@ -15403,7 +15407,7 @@ function tg() { return Ar(b, (j) => { _.push(j); }, !0), _; - }, Ig = function(b, _) { + }, Cg = function(b, _) { const j = Dr(); Me(gr(b), (G) => { w(G) === xt.element && Br(j, G); @@ -15414,8 +15418,8 @@ function tg() { let j = !1; return Me(t.removed, (G) => { G.element && (j = j || G.element === b, ar(G.element)); - }), Ig(b, _), j; - }, ug = 8, Cg = function(b, _) { + }), Cg(b, _), j; + }, hg = 8, fg = function(b, _) { const j = Tt; let G = null; const q = () => (G || (G = Dr(), Me(_, (et) => { @@ -15427,24 +15431,24 @@ function tg() { if (Me(lt, (Xt) => { w(Xt) === xt.documentFragment ? Xn(Rt, Xt) : !Ce && !Zn(j, Xt) && (Ce = Zn(q(), Xt)); }), !Ce) return; - if (et >= ug) throw xe("the tree kept changing during in-place sanitization; refusing to return it"); + if (et >= hg) throw xe("the tree kept changing during in-place sanitization; refusing to return it"); Me(Rt, (Xt, Qt) => { - hg(Xt, Qt > 0, b, q()); + dg(Xt, Qt > 0, b, q()); }); } - }, hg = function(b, _, j, G) { + }, dg = function(b, _, j, G) { const q = cr(b); let et; for (; et = q.nextNode(); ) !Zn(G, et) || Zn(Tt, et) || (_ && ge(nt.uponSanitizeShadowNode, et, null), Ir(et, j), ur(et, j), Le(et.content) && Fn(et.content)); - }, fg = function(b) { + }, pg = function(b) { Tt && Br(Tt, b); }, Ws = function(b, _) { return ve ? b === "patchsrc" ? !0 : b === "for" && _ !== "label" && _ !== "output" : !1; - }, dg = function(b) { + }, mg = function(b) { ve && Ar(b, (_) => { const j = w(_); - if (j === xt.processingInstruction || j === xt.comment && Ot(EA, _.data)) { + if (j === xt.processingInstruction || j === xt.comment && Ot(MA, _.data)) { try { p(_); } catch { @@ -15464,7 +15468,7 @@ function tg() { let _ = null, j = null; if (Dn) b = "" + b; else { - const et = hA(b, /^[\r\n\t ]+/); + const et = fA(b, /^[\r\n\t ]+/); j = et && et[0]; } Bn === "application/xhtml+xml" && rn === ue && (b = '' + b + ""); @@ -15523,8 +15527,8 @@ function tg() { j.call(t, b, _, sn); }); } - const pg = function(b, _) { - return !!(ve && b.hasChildNodes() && !Nn(b.firstElementChild) && Ot(zr, b.textContent) && Ot(zr, b.innerHTML) || ve && nh[_] && w(b) === xt.element && E(b) === ue && (Nn(b.firstElementChild) || typeof b.textContent == "string" && Ot(zr, b.textContent)) || b.nodeType === xt.processingInstruction || ve && b.nodeType === xt.comment && Ot(EA, b.data)); + const yg = function(b, _) { + return !!(ve && b.hasChildNodes() && !Nn(b.firstElementChild) && Ot(zr, b.textContent) && Ot(zr, b.innerHTML) || ve && rh[_] && w(b) === xt.element && E(b) === ue && (Nn(b.firstElementChild) || typeof b.textContent == "string" && Ot(zr, b.textContent)) || b.nodeType === xt.processingInstruction || ve && b.nodeType === xt.comment && Ot(MA, b.data)); }, pi = function(b, _) { if (b instanceof RegExp) return Ot(b, _); if (b instanceof Function) { @@ -15532,7 +15536,7 @@ function tg() { return !!b(_, ...G); } return !1; - }, mg = function(b, _, j) { + }, vg = function(b, _, j) { if (!it[_] && Js(_) && pi(H.tagNameCheck, _)) return !1; if (Ct && !be[_] && !be[We(_)]) { const G = h(b), q = u(b); @@ -15550,7 +15554,7 @@ function tg() { }, An = function(b, _) { return b === _ || h(b) !== null ? !1 : (bt && ar(b), !0); }, Ir = function(b, _) { - if (fg(b), ge(nt.beforeSanitizeElements, b, null), An(b, _)) return !0; + if (pg(b), ge(nt.beforeSanitizeElements, b, null), An(b, _)) return !0; if (di(b)) return Oe(b), !0; const j = Mt(x(b)); @@ -15558,13 +15562,13 @@ function tg() { tagName: j, allowedTags: ht }), An(b, _)) return !0; - if (pg(b, j)) + if (yg(b, j)) return Oe(b), !0; if (it[j] || !(gt.tagCheck instanceof Function && gt.tagCheck(j)) && !ht[j]) { - const G = mg(b, j, _); + const G = vg(b, j, _); return G === !1 && (ge(nt.afterSanitizeElements, b, null), An(b, _)) ? !0 : G; } - if (w(b) === xt.element && !lg(b) || (j === "noscript" || j === "noembed" || j === "noframes") && Ot(eh, b.innerHTML)) + if (w(b) === xt.element && !ug(b) || (j === "noscript" || j === "noembed" || j === "noframes") && Ot(ih, b.innerHTML)) return Oe(b), !0; if (ae && b.nodeType === xt.text) { const G = fi(b.textContent); @@ -15572,10 +15576,10 @@ function tg() { } return ge(nt.afterSanitizeElements, b, null), An(b, _); }, Ks = function(b, _, j) { - if (tt[_] || Ws(_, b) || $ && (_ === "id" || _ === "name") && (j in e || j in Ag)) return !1; + if (tt[_] || Ws(_, b) || $ && (_ === "id" || _ === "name") && (j in e || j in gg)) return !1; const G = B[_] || gt.attributeCheck instanceof Function && gt.attributeCheck(_, b); - return wt && Ot(J, _) || ot && Ot(Q, _) ? !0 : G ? nn[_] || Ot(yt, Vn(j, Nt, "")) || (_ === "src" || _ === "xlink:href" || _ === "href") && b !== "script" && fA(j, "data:") === 0 && Ii[b] || St && !Ot(mt, Vn(j, Nt, "")) ? !0 : !j : Js(b) && pi(H.tagNameCheck, b) && pi(H.attributeNameCheck, _, b) || _ === "is" && H.allowCustomizedBuiltInElements && pi(H.tagNameCheck, j); - }, yg = ut({}, [ + return wt && Ot(J, _) || ot && Ot(Q, _) ? !0 : G ? nn[_] || Ot(yt, Vn(j, Nt, "")) || (_ === "src" || _ === "xlink:href" || _ === "href") && b !== "script" && dA(j, "data:") === 0 && Ii[b] || St && !Ot(mt, Vn(j, Nt, "")) ? !0 : !j : Js(b) && pi(H.tagNameCheck, b) && pi(H.attributeNameCheck, _, b) || _ === "is" && H.allowCustomizedBuiltInElements && pi(H.tagNameCheck, j); + }, wg = ut({}, [ "annotation-xml", "color-profile", "font-face", @@ -15585,8 +15589,8 @@ function tg() { "font-face-uri", "missing-glyph" ]), Js = function(b) { - return !yg[We(b)] && Ot(ie, b); - }, vg = function(b, _, j, G) { + return !wg[We(b)] && Ot(ie, b); + }, bg = function(b, _, j, G) { if (T && typeof I == "object" && typeof I.getAttributeType == "function" && !j) switch (I.getAttributeType(b, _)) { case "TrustedHTML": return k(G); @@ -15594,14 +15598,14 @@ function tg() { return N(G); } return G; - }, wg = function(b, _, j, G) { + }, Eg = function(b, _, j, G) { try { return j ? b.setAttributeNS(j, _, G) : b.setAttribute(_, G), di(b) ? (Oe(b), !1) : !0; } catch { return on(_, b), !1; } }, qs = function(b, _) { - return ve && Ot(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, _) ? !0 : We(b) === "attributename" && hA(_, "href") !== null; + return ve && Ot(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, _) ? !0 : We(b) === "attributename" && fA(_, "href") !== null; }, ur = function(b, _) { if (ge(nt.beforeSanitizeAttributes, b, null), An(b, _)) return; const j = b.attributes; @@ -15618,8 +15622,8 @@ function tg() { const et = Mt(b.nodeName); for (; q--; ) { const lt = j[q], Rt = lt.name, Ce = lt.namespaceURI, Xt = lt.value, Qt = Mt(Rt), an = Xt; - let Kt = Rt === "value" ? an : NC(an), $s = !1; - if (G.attrName = Qt, G.attrValue = Kt, G.keepAttr = !0, G.forceKeepAttr = void 0, ge(nt.uponSanitizeAttribute, b, G), Kt = G.attrValue, It && (Qt === "id" || Qt === "name") && fA(Kt, ct) !== 0 && (on(Rt, b, lt), Kt = ct + Kt, $s = !0), qs(Rt, Kt)) { + let Kt = Rt === "value" ? an : jC(an), $s = !1; + if (G.attrName = Qt, G.attrValue = Kt, G.keepAttr = !0, G.forceKeepAttr = void 0, ge(nt.uponSanitizeAttribute, b, G), Kt = G.attrValue, It && (Qt === "id" || Qt === "name") && dA(Kt, ct) !== 0 && (on(Rt, b, lt), Kt = ct + Kt, $s = !0), qs(Rt, Kt)) { on(Rt, b, lt); continue; } @@ -15628,7 +15632,7 @@ function tg() { on(Rt, b, lt); continue; } - if (!zt && Ot(MA, Kt)) { + if (!zt && Ot(xA, Kt)) { on(Rt, b, lt); continue; } @@ -15636,7 +15640,7 @@ function tg() { on(Rt, b, lt); continue; } - Kt = vg(et, Qt, Ce, Kt), Kt !== an && wg(b, Rt, Ce, Kt) && $s && CA(t.removed); + Kt = bg(et, Qt, Ce, Kt), Kt !== an && Eg(b, Rt, Ce, Kt) && $s && hA(t.removed); } } ge(nt.afterSanitizeAttributes, b, null), An(b, _); @@ -15689,7 +15693,7 @@ function tg() { }; return t.sanitize = function(z) { let b = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, _ = null, j = null, G = null, q = null; - if (er = !z, er && (z = ""), typeof z != "string" && !Nn(z) && (z = UC(z), typeof z != "string")) + if (er = !z, er && (z = ""), typeof z != "string" && !Nn(z) && (z = XC(z), typeof z != "string")) throw xe("dirty is not a string, aborting"); if (!t.isSupported) return z; Ln ? (ht = en, B = Pe) : sr(b), (nt.uponSanitizeElement.length > 0 || nt.uponSanitizeAttribute.length > 0) && (ht = te(ht)), nt.uponSanitizeAttribute.length > 0 && (B = te(B)), t.removed = []; @@ -15697,7 +15701,7 @@ function tg() { let lt = []; const Rt = Tt; if (et) { - dg(z); + mg(z); const Qt = x(z); if (typeof Qt == "string") { const an = Mt(Qt); @@ -15720,7 +15724,7 @@ function tg() { const Qt = cr(Ce); for (; G = Qt.nextNode(); ) Ir(G, Ce), ur(G, Ce), Le(G.content) && Fn(G.content); - et && Cg(z, lt); + et && fg(z, lt); } catch (Qt) { throw et && (or(z), Vs(z, lt)), Qt; } finally { @@ -15737,7 +15741,7 @@ function tg() { return (B.shadowroot || B.shadowrootmode) && (q = At.call(i, q, !0)), q; } let Xt = we ? _.outerHTML : _.innerHTML; - return we && ht["!doctype"] && _.ownerDocument && _.ownerDocument.doctype && _.ownerDocument.doctype.name && Ot($C, _.ownerDocument.doctype.name) && (Xt = " + return we && ht["!doctype"] && _.ownerDocument && _.ownerDocument.doctype && _.ownerDocument.doctype.name && Ot(eh, _.ownerDocument.doctype.name) && (Xt = " ` + Xt), ae && (Xt = fi(Xt)), T && K ? k(Xt) : Xt; }, t.setConfig = function() { let z = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; @@ -15747,68 +15751,68 @@ function tg() { }, t.isValidAttribute = function(z, b, _) { sn || sr({}); const j = Mt(z), G = Mt(b); - return typeof _ == "string" && (qs(b, _) || !zt && Ot(MA, _)) ? !1 : Ks(j, G, _); + return typeof _ == "string" && (qs(b, _) || !zt && Ot(xA, _)) ? !1 : Ks(j, G, _); }, t.addHook = function(z, b) { typeof b == "function" && Jt(nt, z) && Xn(nt[z], b); }, t.removeHook = function(z, b) { if (Jt(nt, z)) { if (b !== void 0) { - const _ = LC(nt[z], b); - return _ === -1 ? void 0 : BC(nt[z], _, 1)[0]; + const _ = BC(nt[z], b); + return _ === -1 ? void 0 : FC(nt[z], _, 1)[0]; } - return CA(nt[z]); + return hA(nt[z]); } }, t.removeHooks = function(z) { Jt(nt, z) && (nt[z] = []); }, t.removeAllHooks = function() { - nt = xA(); + nt = SA(); }, t; } -var eg = tg(); -const sh = ["b", "strong", "i", "em", "u", "s", "br", "p", "span", "div", "ul", "ol", "li", "a", "img", "small", "sub", "sup", "code", "pre", "table", "thead", "tbody", "tr", "th", "td", "qy-swiper", "qy-swiper-slide"], oh = ["href", "src", "alt", "title", "class", "target", "rel", "width", "height"], Ah = { values: ["target", "rel", "width", "height"] }, ah = ["script", "style", "iframe", "object", "embed", "form", "input", "textarea", "link", "meta", "base"], gh = ["srcdoc", "style", "formaction", "xlink:href"], ch = { valueAttributes: ["image-url", "image-type", "thumbnail-url", "caption", "material-url", "camera-position", "camera-target", "show-texture"], booleanAttributes: ["fit-to-container", "debug-mode"], urlAttributes: ["image-url", "thumbnail-url", "material-url"], textAttributes: { values: ["caption"] } }, lh = { booleanAttributes: ["has-thumb", "autoplay"] }, Ih = { tags: ["a", "b", "br", "i", "p", "small", "span", "sub", "sup"], attributes: ["href"], forbidContents: { tags: ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "selectedcontent", "style", "svg", "template", "title", "video", "xmp"] } }, ne = { - tags: sh, - attributes: oh, - uriSafeAttributes: Ah, - forbidTags: ah, - forbidAttributes: gh, - slide: ch, - swiper: lh, - iiif: Ih -}, uh = ne.tags, Ch = ne.attributes, hh = /^(?:https?|mailto|tel|data):/i, fh = ne.uriSafeAttributes.values, dh = ne.forbidTags, ph = ne.forbidAttributes, mh = ne.iiif.tags, yh = ne.iiif.attributes, vh = /^https?:/i, wh = ne.iiif.forbidContents.tags; +var ig = ng(); +const Ah = ["b", "strong", "i", "em", "u", "s", "br", "p", "span", "div", "ul", "ol", "li", "a", "img", "small", "sub", "sup", "code", "pre", "table", "thead", "tbody", "tr", "th", "td", "qy-swiper", "qy-swiper-slide"], ah = ["href", "src", "alt", "title", "class", "target", "rel", "width", "height"], gh = { values: ["target", "rel", "width", "height"] }, ch = ["script", "style", "iframe", "object", "embed", "form", "input", "textarea", "link", "meta", "base"], lh = ["srcdoc", "style", "formaction", "xlink:href"], Ih = { valueAttributes: ["image-url", "image-type", "thumbnail-url", "caption", "material-url", "camera-position", "camera-target", "show-texture"], booleanAttributes: ["fit-to-container", "debug-mode"], urlAttributes: ["image-url", "thumbnail-url", "material-url"], textAttributes: { values: ["caption"] } }, uh = { booleanAttributes: ["has-thumb", "autoplay"] }, Ch = { tags: ["a", "b", "br", "i", "p", "small", "span", "sub", "sup"], attributes: ["href"], forbidContents: { tags: ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "selectedcontent", "style", "svg", "template", "title", "video", "xmp"] } }, ne = { + tags: Ah, + attributes: ah, + uriSafeAttributes: gh, + forbidTags: ch, + forbidAttributes: lh, + slide: Ih, + swiper: uh, + iiif: Ch +}, hh = ne.tags, fh = ne.attributes, dh = /^(?:https?|mailto|tel|data):/i, ph = ne.uriSafeAttributes.values, mh = ne.forbidTags, yh = ne.forbidAttributes, vh = ne.iiif.tags, wh = ne.iiif.attributes, bh = /^https?:/i, Eh = ne.iiif.forbidContents.tags; let Di; -const bh = /^data:image\/(png|jpeg|gif|webp|avif);/i, SA = (n) => !!n && /^\s*data:/i.test(n); -function Eh(n) { +const Mh = /^data:image\/(png|jpeg|gif|webp|avif);/i, TA = (n) => !!n && /^\s*data:/i.test(n); +function xh(n) { if (n.tagName === "A" && n.getAttribute("target") === "_blank" && n.setAttribute("rel", "noopener noreferrer"), Di === "iiif" && n.tagName === "A" && n.hasAttribute("href") && (n.setAttribute("target", "_blank"), n.setAttribute("rel", "noopener noreferrer")), n.tagName === "IMG") { const e = n.getAttribute("src"); - SA(e) && !bh.test(e.trim()) && n.removeAttribute("src"), n.hasAttribute("srcset") && n.removeAttribute("srcset"); + TA(e) && !Mh.test(e.trim()) && n.removeAttribute("src"), n.hasAttribute("srcset") && n.removeAttribute("srcset"); } else for (const e of ["src", "href", "xlink:href"]) - SA(n.getAttribute(e)) && n.removeAttribute(e); + TA(n.getAttribute(e)) && n.removeAttribute(e); } let fn; -function Mh() { +function Sh() { if (fn) return fn; const n = globalThis.window; if (!n) throw new Error( "sanitizeHtml: window の無い環境では使用できません(DOMPurify の初期化に必要)" ); - return fn = eg(n), fn.addHook("afterSanitizeAttributes", Eh), fn.addHook("uponSanitizeAttribute", Sh), fn; + return fn = ig(n), fn.addHook("afterSanitizeAttributes", xh), fn.addHook("uponSanitizeAttribute", Rh), fn; } let Oi; -function xh() { +function Th() { if (Oi) return Oi; const n = globalThis.window; if (!n) throw new Error( "sanitizeHtml: window の無い環境では使用できません(DOMPurify の初期化に必要)" ); - return Oi = eg(n), Oi; + return Oi = ig(n), Oi; } -function Sh(n, t) { +function Rh(n, t) { const e = n.nodeName.toLowerCase(), i = t.attrName; if (e === "qy-swiper-slide") { - const r = Bs.has(i) ? "" : ng(i, t.attrValue); + const r = Bs.has(i) ? "" : rg(i, t.attrValue); if (r === null) { t.keepAttr = !1; return; @@ -15816,75 +15820,75 @@ function Sh(n, t) { n.setAttribute(i, r), t.forceKeepAttr = !0; return; } - e === "qy-swiper" && (_h.has(i) ? (n.setAttribute(i, ""), t.forceKeepAttr = !0) : t.keepAttr = !1); + e === "qy-swiper" && (Oh.has(i) ? (n.setAttribute(i, ""), t.forceKeepAttr = !0) : t.keepAttr = !1); } -function qh(n, t) { +function tf(n, t) { if (n == null) return ""; const e = t?.profile === "iiif", i = Di; Di = e ? "iiif" : void 0; try { - return Mh().sanitize(String(n), { - ALLOWED_TAGS: e ? mh : uh, - ALLOWED_ATTR: e ? yh : Ch, - ALLOWED_URI_REGEXP: e ? vh : hh, - ADD_URI_SAFE_ATTR: fh, - FORBID_TAGS: dh, - FORBID_ATTR: ph, + return Sh().sanitize(String(n), { + ALLOWED_TAGS: e ? vh : hh, + ALLOWED_ATTR: e ? wh : fh, + ALLOWED_URI_REGEXP: e ? bh : dh, + ADD_URI_SAFE_ATTR: ph, + FORBID_TAGS: mh, + FORBID_ATTR: yh, ALLOW_DATA_ATTR: !1, // aria-* も許可表の外に出さない(IIIF の値で残す属性は href だけ) ALLOW_ARIA_ATTR: !e, // 禁止タグを落としても中身のテキストは残す(実データの可読性を保つ) KEEP_CONTENT: !0, // profile: "iiif" のときだけ、文字も捨てる要素の一覧を差し替える - ...e ? { FORBID_CONTENTS: wh } : {} + ...e ? { FORBID_CONTENTS: Eh } : {} }); } finally { Di = i; } } -function Th(n) { +function kh(n) { return n == null ? "" : String(n).replace(/&/g, "&").replace(//g, ">").replace(/"/g, """).replace(/'/g, "'"); } -function Rh(n) { +function _h(n) { if (n == null) return ""; - const t = xh().sanitize(String(n), { + const t = Th().sanitize(String(n), { ALLOWED_TAGS: [], ALLOWED_ATTR: [], KEEP_CONTENT: !0 }), e = globalThis.window.document.createElement("div"); return e.innerHTML = t, e.textContent || ""; } -const kh = new Set(ne.slide.valueAttributes), Bs = new Set(ne.slide.booleanAttributes), _h = new Set(ne.swiper.booleanAttributes), Ph = new Set(ne.slide.textAttributes.values), Oh = new Set(ne.slide.urlAttributes), Lh = (n) => /^(?:https?:)?\/\/|^\/|^[^:]*$/i.test(n.trim()), Dh = /["'`<>\s]/; -function ng(n, t) { +const Ph = new Set(ne.slide.valueAttributes), Bs = new Set(ne.slide.booleanAttributes), Oh = new Set(ne.swiper.booleanAttributes), Lh = new Set(ne.slide.textAttributes.values), Dh = new Set(ne.slide.urlAttributes), Bh = (n) => /^(?:https?:)?\/\/|^\/|^[^:]*$/i.test(n.trim()), Nh = /["'`<>\s]/; +function rg(n, t) { if (Bs.has(n)) return t ? "" : null; - if (!kh.has(n) || t == null) return null; + if (!Ph.has(n) || t == null) return null; let e = String(t); - return Oh.has(n) && (!Lh(e) || Dh.test(e)) ? null : (Ph.has(n) && (e = Rh(e)), e); + return Dh.has(n) && (!Bh(e) || Nh.test(e)) ? null : (Lh.has(n) && (e = _h(e)), e); } -function $h(n) { +function ef(n) { const t = []; for (const [e, i] of Object.entries(n || {})) { - const r = String(e).toLowerCase(), s = ng(r, i); - s !== null && t.push(Bs.has(r) ? r : `${r}="${Th(s)}"`); + const r = String(e).toLowerCase(), s = rg(r, i); + s !== null && t.push(Bs.has(r) ? r : `${r}="${kh(s)}"`); } return t.join(" "); } -const Bh = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyBpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYwIDYxLjEzNDc3NywgMjAxMC8wMi8xMi0xNzozMjowMCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxucz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tq7d84+9Kkj+w+qc/z8L8//+1dn17/8kW54QX2+7kzxmzrx28PxASM3o6HaXyoazxy97tDLN37vYW764aMcPXzLicX2ln80kq43zJD3dP0+DGoahsMYYFStabbkJp1+r0N/AzGjs7Ha2dKdknUKS+WQwhQxex8AkU05EBGqosGiazAfcvri8VUfQg6zM1iWgTiyFHm12SWESMeU9e4WZHkVk81sQn/bzLuSYA76CLg6rkmEKsvRRgNEiAgpKaRIRFgUj+tOM9XpsvROBubeO37yjsXFVwKmmGrdV+veirPN5zYDvE/sNpMyVFPtGFDTulW+lwTflYMJAMQMU6OK9VlTq5M6gW3AlPEUDDNFUxotL4ZovG1Qk7GH1AQziHoRoN6bxDbIeJaI1WEpy+qSENX74wEmOFWfMcqY3sqmiDGJbUgTJCqZkZKRhnUHSmr13iRJvii9D06CopaIWtd5TQlUmcQ2IH48gPOYCVWM4KwuBy4wiW1wjKfpAIdSVRHEcKY46oI4XqZpPE1NSkpKVVUwqkM6muMBmCAF1A/dOHKYDK8gyngKAUkTXISEkYhlHIk0JSTZJLZBzU9QKTxJHWWMozeqw8wziW0QnazYSVKqEQNJdQebxDaImwDAGTglXXzvOEWcMYltMB1fsEwdmoRUpZGqBFPHJLYBJxNcNAGHxpRqSQlqTrAJbMOF82+MPVTFyJ49V4WyTIgDw8LChfOEECYodjqBTKGLsK3fH+CcgHE50FXVlbEAO3dsHyNRwznZtXfPlbtOnHiJVFVcvnV2z1VX794FPDcWIG8UkwD8xzm7/+D+3Q8sLCyEJ584853gs+POubHU/z8AvZAksib10AQAAAAASUVORK5CYII=", ri = { - osm: Ga, - gsi: Ua, - gsi_ortho: za, - redcircle: Bh, - defaultpin_selected: Nh, - defaultpin: Sa, - bluedot: Ea, - bluedot_transparent: Ma, - bluedot_small: xa +const Fh = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyBpVFh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fsEwdmoRUpZGqBFPHJLYBJxNcNAGHxpRqSQlqTrAJbMOF82+MPVTFyJ49V4WyTIgDw8LChfOEECYodjqBTKGLsK3fH+CcgHE50FXVlbEAO3dsHyNRwznZtXfPlbtOnHiJVFVcvnV2z1VX794FPDcWIG8UkwD8xzm7/+D+3Q8sLCyEJ584853gs+POubHU/z8AvZAksib10AQAAAAASUVORK5CYII=", ri = { + osm: za, + gsi: Xa, + gsi_ortho: Za, + redcircle: Fh, + defaultpin_selected: jh, + defaultpin: Ra, + bluedot: xa, + bluedot_transparent: Sa, + bluedot_small: Ta }; -function tf(n) { +function nf(n) { const t = Hi(n); return [t[0], t[1]]; } -function Fh(n = !1) { +function Gh(n = !1) { return n ? ri.defaultpin_selected : ri.defaultpin; } const Fe = { @@ -15898,11 +15902,30 @@ const Fe = { function Li(n, t) { return n?.[t] ?? !1; } -function TA(n, t) { +function RA(n, t) { const e = n.__selectedMarker == t.namespaceID; - return t.icon ? e && t.selectedIcon ? t.selectedIcon : t.icon : Fh(e); + return t.icon ? e && t.selectedIcon ? t.selectedIcon : t.icon : Gh(e); +} +function kA(n, t) { + if (!t.includes("#")) { + for (const s of Object.keys(n.pois)) { + const o = n.pois[s]; + for (const a of o.pois) + if (a.id === t) return { poi: a, cluster: o, ancestor: n }; + } + return; + } + const e = t.split("#"), i = Et(n.cacheHash, e[0]); + if (!i?.pois) return; + let r; + for (const s of Object.keys(i.pois)) { + const o = i.pois[s]; + for (const a of o.pois) + a.id === e[1] && (r = { poi: a, cluster: o, ancestor: i }); + } + return r; } -const jh = { +const Uh = { "setting-loaded": "onSettingLoaded", "appdata-ready": "onAppdataReady", "ui-configure": "onUiConfigure", @@ -15911,7 +15934,7 @@ const jh = { "core-ready": "onCoreReady", "ui-ready": "onUiReady" }; -class Gh extends _e { +class zh extends _e { detail; constructor(t) { super("gps_error"), this.detail = t; @@ -15923,7 +15946,7 @@ class Hn extends _e { super("gps_result"), this.detail = t; } } -class Uh extends _e { +class Xh extends _e { constructor() { super("gps_request"); } @@ -15933,16 +15956,16 @@ function dn(n, t) { `MaplatCore: POI layer "${n}" not found (${t}). Pass namespaceID (e.g. "#" for map-derived layers), not the layer-local id.` ); } -function zh(n) { - const t = da(n?.iiif); +function Zh(n) { + const t = ma(n?.iiif); if (!t) return; const e = { - display: pa(n?.iiifMetadataDisplay) ?? nC + display: ya(n?.iiifMetadataDisplay) ?? rC }; return t.manifest !== void 0 && (e.manifest = t.manifest), t.canvas !== void 0 && (e.canvas = t.canvas), t.image !== void 0 && (e.image = t.image), t.copiedAt !== void 0 && (e.copiedAt = t.copiedAt), t.copiedMetadata !== void 0 && (e.metadata = t.copiedMetadata), e; } -let Xh = 0; -class si extends jA { +let Vh = 0; +class si extends UA { // Static method declaration /** * 旧 API の生成口(`new MaplatApp(option)` のあと `waitReady` を待つ)。 @@ -16103,7 +16126,7 @@ class si extends jA { const r = t?.[e]; if (r != null) return r; const s = this.appData?.[e]; - return s == null ? i : !this.__settingFileKeys || this.__settingFileKeys.has(e) ? (this.__featureKeyWarner || (this.__featureKeyWarner = OA()), this.__elementMode ? (this.__featureKeyWarner( + return s == null ? i : !this.__settingFileKeys || this.__settingFileKeys.has(e) ? (this.__featureKeyWarner || (this.__featureKeyWarner = DA()), this.__elementMode ? (this.__featureKeyWarner( e, `: the setting file key "${e}" is a presentation (feature) setting and is ignored; give it as an attribute or property of the element instead.` ), i) : (this.__featureKeyWarner( @@ -16113,11 +16136,11 @@ class si extends jA { } // Maplat App Class constructor(t) { - super(), t = me(t), t && "__maplatElementMode" in t || Pg(), this.__appid = t.appid || "sample", this.__elementMode = t.__maplatElementMode === !0; + super(), t = me(t), t && "__maplatElementMode" in t || Lg(), this.__appid = t.appid || "sample", this.__elementMode = t.__maplatElementMode === !0; const e = t.mapboxgl || (typeof window < "u" ? window.mapboxgl : void 0); e && t.mapboxToken && (e.accessToken = t.mapboxToken), t.googleApiKey && (this.__googleApiKey = t.googleApiKey); const i = t.div; - i && typeof i == "object" && i.nodeType === 1 ? (this.__mapDivDocument = i, this.__mapDiv = i.id || `maplat_app_${++Xh}`) : (this.__mapDiv = i || "map_div", this.__mapDivDocument = document.querySelector(`#${this.__mapDiv}`)), this.mapDivDocument.classList.add("maplat"), this.logger = new to( + i && typeof i == "object" && i.nodeType === 1 ? (this.__mapDivDocument = i, this.__mapDiv = i.id || `maplat_app_${++Vh}`) : (this.__mapDiv = i || "map_div", this.__mapDivDocument = document.querySelector(`#${this.__mapDiv}`)), this.mapDivDocument.classList.add("maplat"), this.logger = new to( t.debug ? Ye.ALL : Ye.INFO ), this.__enableCache = t.enableCache || !1, this.icon = t.icon, this.selectedIcon = t.selectedIcon, this.translateUI = t.translateUI, this.__uiHooks = t.uiHooks; const r = t.setting; @@ -16219,7 +16242,7 @@ class si extends jA { } async runLifecyclePhase(t, e) { this.logger?.debug?.(`lifecycle:${t}`); - const i = this.buildLifecycleContext(t, e), r = jh[t], s = this.uiHooks?.[r]; + const i = this.buildLifecycleContext(t, e), r = Uh[t], s = this.uiHooks?.[r]; if (s) try { const o = await s(i); @@ -16253,8 +16276,8 @@ class si extends jA { }; return e.forEach((s) => { i.push( - eC(s, r).catch( - (o) => o instanceof ee ? Ou(s, o) : Promise.reject(o) + iC(s, r).catch( + (o) => o instanceof ee ? Du(s, o) : Promise.reject(o) ) ); }), Promise.all(i); @@ -16264,13 +16287,13 @@ class si extends jA { await this.runLifecyclePhase("setting-loaded", t), this.appData = me(t), this.__settingFileKeys = new Set(Object.keys(this.appData || {})), await this.runLifecyclePhase("appdata-ready"), await this.runLifecyclePhase("ui-configure"); const i = await this.prepareMap(e); await this.runLifecyclePhase("ui-dom-ready"); - const r = await la(this.appData.pois || [], this); + const r = await ua(this.appData.pois || [], this); await this.handlePois(r, i), this.initGeolocation(e); } // Async Initializers 2.5: For geolocation settings initGeolocation(t) { this.__alwaysGpsOn = t.alwaysGpsOn || !1; - const e = this.geolocation = new SC({ + const e = this.geolocation = new RC({ timerBase: t.fake, homePosition: this.appData.homePosition }); @@ -16290,7 +16313,7 @@ class si extends jA { if (r === 3) return; e.setTracking(!1), this.gpsEnabled_ = !1; const s = this.mapObject, o = s.getLayer("overlay").getLayers().item(0), a = s.getLayers().item(0); - (o ? o.getSource() : a.getSource()).setGPSMarker(), this.dispatchEvent(new Gh(r === 1 ? "user_gps_deny" : r === 2 ? "gps_miss" : "gps_timeout")), this.dispatchEvent(new Hn({ error: "gps_off" })); + (o ? o.getSource() : a.getSource()).setGPSMarker(), this.dispatchEvent(new zh(r === 1 ? "user_gps_deny" : r === 2 ? "gps_miss" : "gps_timeout")), this.dispatchEvent(new Hn({ error: "gps_off" })); }), this.addEventListener("mapChanged", () => { (async () => { if (e.getTracking()) { @@ -16309,7 +16332,7 @@ class si extends jA { if (this.geolocation) { if (t) if (!this.alwaysGpsOn) - this.firstGpsRequest_ = !0, this.geolocation.setTracking(!0), this.gpsEnabled_ = !0, this.dispatchEvent(new Uh()); + this.firstGpsRequest_ = !0, this.geolocation.setTracking(!0), this.gpsEnabled_ = !0, this.dispatchEvent(new Xh()); else { const i = this.geolocation.getPosition(), r = this.geolocation.getAccuracy(); if (i && r) { @@ -16345,8 +16368,8 @@ class si extends jA { div: g, controls: this.__featureOption(t, "controls", []), interactions: this.noRotate ? Ko({ altShiftDragRotate: !1, pinchRotate: !1 }) : Ko().extend([ - new hu({ - condition: KI + new du({ + condition: qI }) ]), fakeGps: a, @@ -16445,7 +16468,7 @@ class si extends jA { mapID: r?.mapID ?? null, usable: !!(r && this.cacheHash?.[r.mapID] === r) })); - return Bu(this).forEach((r) => { + return Fu(this).forEach((r) => { i.push({ mapID: r.mapID, usable: !1 }); }), i; } @@ -16453,7 +16476,7 @@ class si extends jA { async handleSources(t) { const e = [], i = [], r = []; if (this.cacheHash = /* @__PURE__ */ Object.create(null), t.forEach((s) => { - if (Lu(s)) { + if (Bu(s)) { r.push({ mapID: s.mapID, reason: s.__maplatUnusable.reason @@ -16462,14 +16485,14 @@ class si extends jA { ); return; } - i.push(s), s.setMap(this.mapObject), Rg(s, { + i.push(s), s.setMap(this.mapObject), _g(s, { mapboxMap: this.mapboxMap, maplibreMap: this.maplibreMap, warn: (a, ...A) => { this.logger?.warn ? this.logger.warn(a, ...A) : console.warn(a, ...A); } }) && (e.push(s), this.cacheHash[s.mapID] = s); - }), Du(this, r), this.mercSrc = e.reduce((s, o) => { + }), Nu(this, r), this.mercSrc = e.reduce((s, o) => { if (s) return s; if (o.isBasemap()) return o; }, null), this.dispatchEvent(new Ft("sourceLoaded", i)), e.length === 0) { @@ -16488,7 +16511,7 @@ class si extends jA { ), e = i; } this.from = t.reduce( - (i, r) => i ? !(i instanceof Da) && r.mapID != e ? r : i : r.mapID != e ? r : i, + (i, r) => i ? !(i instanceof Na) && r.mapID != e ? r : i : r.mapID != e ? r : i, void 0 ), await this.changeMap(e, this.initialRestore); } @@ -16499,7 +16522,7 @@ class si extends jA { const e = []; if (t.target.forEachFeatureAtPixel(t.pixel, (i) => { this.logger.debug(t.pixel), i.get("datum") && e.push(i.get("datum")); - }), e.length === 0 && e.push(...lA(this, t)), e.length > 0) + }), e.length === 0 && e.push(...IA(this, t)), e.length > 0) this.dispatchEvent(new Ft("clickMarker", e[0])), this.dispatchEvent(new Ft("clickMarkers", e)); else { const i = t.coordinate; @@ -16574,7 +16597,7 @@ class si extends jA { this.mapDivDocument.querySelector(`#${o}`).style.cursor = A ? "pointer" : ""; return; } - const a = lA(this, i).length > 0; + const a = IA(this, i).length > 0; this.mapDivDocument.querySelector(`#${o}`).style.cursor = a ? "pointer" : ""; }; this.mapObject.on("pointermove", t); @@ -16705,13 +16728,13 @@ class si extends jA { } setMarker(t) { this.logger.debug(t); - const e = TA(this, t); + const e = RA(this, t); return Or(this, t).then((i) => { - wC(this, t, e, i); + EC(this, t, e, i); }); } resetMarker() { - cA(this, { front: [], back: [] }); + lA(this, { front: [], back: [] }); } setLine(t) { t.type = "Line", !t.style && t.stroke && (t.style = { @@ -16790,11 +16813,9 @@ class si extends jA { const r = []; let s; const o = (A, g, I) => { - const l = pC(A, g, I); - mC(l, g, I); - const C = { + const l = aA(A, g, I), C = { data: l, - icon: TA(this, l) + icon: RA(this, l) }; this.__selectedMarker == l.namespaceID ? s = C : r.push(C); }; @@ -16815,7 +16836,7 @@ class si extends jA { const a = s ? [...r, s] : r; Promise.all(a.map((A) => Or(this, A.data))).then( (A) => { - cA(this, vC(this, a, A)); + lA(this, bC(this, a, A)); const g = this.__outsideSelection; g && !this.stateBuffer.hideMarker && (s ? s.data?.namespaceID === g.id && Lr(this, A[A.length - 1]) : g.pending && Lr(this, void 0)), this.__redrawMarkerThrottle && this.__redrawMarkerThrottle.length > 0 ? e(this.__redrawMarkerThrottle.shift()) : this.__redrawMarkerBlock = !1; } @@ -16848,19 +16869,12 @@ class si extends jA { }); } getMarker(t) { - if (t.includes("#")) { - const e = t.split("#"); - return Et(this.cacheHash, e[0])?.getPoi(e[1]); - } else { - for (const e of Object.keys(this.pois)) - for (const i of this.pois[e].pois) - if (i.id === t) - return i; - return; - } + const e = kA(this, t); + if (e) + return aA(e.poi, e.cluster, e.ancestor); } updateMarker(t, e, i) { - const r = this.getMarker(t); + const r = kA(this, t)?.poi; if (r) { if (e = ni(e || {}), i) { for (const s of Object.keys(r)) @@ -17182,7 +17196,7 @@ class si extends jA { i, (A) => { const g = e.getView(); - A && i.insideCheckSysCoord(A[0]) ? (g.setCenter(A[0]), g.setZoom(A[1]), g.setRotation(this.noRotate ? 0 : A[2])) : this.__outsideSelection?.merc ? Ya(this, this.__outsideSelection.merc) : (this.dispatchEvent(new Ft("outOfMap", {})), this.goHome(i)), o(); + A && i.insideCheckSysCoord(A[0]) ? (g.setCenter(A[0]), g.setZoom(A[1]), g.setRotation(this.noRotate ? 0 : A[2])) : this.__outsideSelection?.merc ? Ka(this, this.__outsideSelection.merc) : (this.dispatchEvent(new Ft("outOfMap", {})), this.goHome(i)), o(); }, a ); @@ -17237,7 +17251,7 @@ class si extends jA { mapID: e.mapID, label: e.label } - ), r = zh(e); + ), r = Zh(e); return r && (i.iiif = r), i; } getMapCacheEnable(t) { @@ -17350,7 +17364,7 @@ class si extends jA { typeof document < "u" && document.removeEventListener("visibilitychange", this.__visibilityHandler), this.__resizeObserver && (this.__resizeObserver.disconnect(), this.__resizeObserver = null), this.mapObject?.setTarget?.(void 0), this.backMap?.setTarget?.(void 0), this.maplibreMap?.remove?.(), this.mapboxMap && this.mapboxMap.remove(), this.mapDivDocument.innerHTML = "", this.mapDivDocument.classList.remove("maplat"); } } -const Zh = [ +const Wh = [ "appid", "mapDiv", "mapDivDocument", @@ -17367,7 +17381,7 @@ const Zh = [ ]; (function() { const t = si.prototype; - for (const e of Zh) { + for (const e of Wh) { const i = Object.getOwnPropertyDescriptor(t, e); if (!i?.get) throw new Error(`MaplatApp: missing getter for startup field "${e}"`); const r = `__${e}`; @@ -17380,7 +17394,7 @@ const Zh = [ this[r] = s; return; } - this.__startupWarner || (this.__startupWarner = OA()), this.__startupWarner( + this.__startupWarner || (this.__startupWarner = DA()), this.__startupWarner( e, `MaplatApp: "${e}" is fixed at startup and cannot be changed after construction; the assignment was ignored.` ); @@ -17404,20 +17418,20 @@ if (typeof window < "u") { } export { Ft as CustomEvent, - Gh as GPSErrorEvent, - Uh as GPSRequestEvent, + zh as GPSErrorEvent, + Xh as GPSRequestEvent, Hn as GPSResultEvent, - Zh as MAPLAT_APP_STARTUP_FIELDS, + Wh as MAPLAT_APP_STARTUP_FIELDS, si as MaplatApp, Ue as MaplatMap, ri as assets, - $h as buildSlideAttrs, + ef as buildSlideAttrs, jn as createElement, - Fh as defaultPinIcon, - Th as escapeAttr, - eC as mapSourceFactory, - tf as mercToLngLat, - qh as sanitizeHtml, - Rh as toPlainText + Gh as defaultPinIcon, + kh as escapeAttr, + iC as mapSourceFactory, + nf as mercToLngLat, + tf as sanitizeHtml, + _h as toPlainText }; //# sourceMappingURL=maplat_core.js.map diff --git a/dist/maplat_core.js.map b/dist/maplat_core.js.map index f934899..6c14aad 100644 --- a/dist/maplat_core.js.map +++ b/dist/maplat_core.js.map @@ -1 +1 @@ -{"version":3,"file":"maplat_core.js","sources":["../node_modules/.pnpm/ol@10.11.0/node_modules/ol/events/Event.js","../src/customevent.ts","../src/logger.ts","../src/provider_gl_bind.ts","../src/meta_keys.ts","../src/functions.ts","../node_modules/.pnpm/ol@10.11.0/node_modules/ol/Disposable.js","../node_modules/.pnpm/ol@10.11.0/node_modules/ol/array.js","../node_modules/.pnpm/ol@10.11.0/node_modules/ol/util.js","../node_modules/.pnpm/ol@10.11.0/node_modules/ol/functions.js","../node_modules/.pnpm/ol@10.11.0/node_modules/ol/obj.js","../node_modules/.pnpm/ol@10.11.0/node_modules/ol/events/Target.js","../src/view_ex.ts","../node_modules/.pnpm/ol@10.11.0/node_modules/ol/extent/Relationship.js","../node_modules/.pnpm/ol@10.11.0/node_modules/ol/extent.js","../node_modules/.pnpm/ol@10.11.0/node_modules/ol/ObjectEventType.js","../node_modules/.pnpm/ol@10.11.0/node_modules/ol/events.js","../node_modules/.pnpm/ol@10.11.0/node_modules/ol/events/EventType.js","../node_modules/.pnpm/ol@10.11.0/node_modules/ol/Observable.js","../node_modules/.pnpm/ol@10.11.0/node_modules/ol/Object.js","../node_modules/.pnpm/ol@10.11.0/node_modules/ol/console.js","../node_modules/.pnpm/ol@10.11.0/node_modules/ol/math.js","../node_modules/.pnpm/ol@10.11.0/node_modules/ol/coordinate.js","../node_modules/.pnpm/ol@10.11.0/node_modules/ol/proj/Units.js","../node_modules/.pnpm/ol@10.11.0/node_modules/ol/proj/Projection.js","../node_modules/.pnpm/ol@10.11.0/node_modules/ol/proj/epsg3857.js","../node_modules/.pnpm/ol@10.11.0/node_modules/ol/proj/epsg4326.js","../node_modules/.pnpm/ol@10.11.0/node_modules/ol/proj/projections.js","../node_modules/.pnpm/ol@10.11.0/node_modules/ol/proj/transforms.js","../node_modules/.pnpm/ol@10.11.0/node_modules/ol/proj/utm.js","../node_modules/.pnpm/ol@10.11.0/node_modules/ol/proj.js","../node_modules/.pnpm/ol@10.11.0/node_modules/ol/asserts.js","../node_modules/.pnpm/ol@10.11.0/node_modules/ol/transform.js","../node_modules/.pnpm/ol@10.11.0/node_modules/ol/geom/flat/transform.js","../node_modules/.pnpm/ol@10.11.0/node_modules/ol/geom/Geometry.js","../node_modules/.pnpm/ol@10.11.0/node_modules/ol/geom/SimpleGeometry.js","../node_modules/.pnpm/ol@10.11.0/node_modules/ol/geom/flat/deflate.js","../node_modules/.pnpm/ol@10.11.0/node_modules/ol/geom/Circle.js","../node_modules/.pnpm/ol@10.11.0/node_modules/ol/geom/flat/area.js","../node_modules/.pnpm/ol@10.11.0/node_modules/ol/geom/flat/closest.js","../node_modules/.pnpm/ol@10.11.0/node_modules/ol/geom/flat/inflate.js","../node_modules/.pnpm/ol@10.11.0/node_modules/ol/geom/flat/contains.js","../node_modules/.pnpm/ol@10.11.0/node_modules/ol/geom/flat/segments.js","../node_modules/.pnpm/ol@10.11.0/node_modules/ol/geom/flat/intersectsextent.js","../node_modules/.pnpm/ol@10.11.0/node_modules/ol/geom/flat/simplify.js","../node_modules/.pnpm/ol@10.11.0/node_modules/ol/geom/LinearRing.js","../node_modules/.pnpm/ol@10.11.0/node_modules/ol/geom/flat/interpolate.js","../node_modules/.pnpm/ol@10.11.0/node_modules/ol/geom/flat/length.js","../node_modules/.pnpm/ol@10.11.0/node_modules/ol/geom/LineString.js","../node_modules/.pnpm/ol@10.11.0/node_modules/ol/geom/Point.js","../node_modules/.pnpm/ol@10.11.0/node_modules/ol/geom/flat/interiorpoint.js","../node_modules/.pnpm/ol@10.11.0/node_modules/ol/geom/flat/reverse.js","../node_modules/.pnpm/ol@10.11.0/node_modules/ol/geom/flat/orient.js","../node_modules/.pnpm/ol@10.11.0/node_modules/ol/geom/Polygon.js","../node_modules/.pnpm/ol@10.11.0/node_modules/ol/TileState.js","../node_modules/.pnpm/@maplat+transform@1.1.0/node_modules/@maplat/transform/dist/maplat_transform.js","../src/const_ex.ts","../src/normalize_pois.ts","../src/own-lookup.ts","../node_modules/.pnpm/@turf+helpers@7.4.0/node_modules/@turf/helpers/dist/esm/index.js","../node_modules/.pnpm/@turf+invariant@7.4.0/node_modules/@turf/invariant/dist/esm/index.js","../node_modules/.pnpm/@turf+meta@7.4.0/node_modules/@turf/meta/dist/esm/index.js","../node_modules/.pnpm/robust-predicates@3.0.3/node_modules/robust-predicates/esm/util.js","../node_modules/.pnpm/robust-predicates@3.0.3/node_modules/robust-predicates/esm/orient2d.js","../node_modules/.pnpm/point-in-polygon-hao@1.2.4/node_modules/point-in-polygon-hao/dist/esm/index.js","../node_modules/.pnpm/@turf+boolean-point-in-polygon@7.4.0/node_modules/@turf/boolean-point-in-polygon/dist/esm/index.js","../node_modules/.pnpm/tinyqueue@2.0.3/node_modules/tinyqueue/index.js","../node_modules/.pnpm/robust-predicates@2.0.4/node_modules/robust-predicates/esm/util.js","../node_modules/.pnpm/robust-predicates@2.0.4/node_modules/robust-predicates/esm/orient2d.js","../node_modules/.pnpm/@turf+line-intersect@7.4.0/node_modules/@turf/line-intersect/dist/esm/index.js","../node_modules/.pnpm/@turf+centroid@7.4.0/node_modules/@turf/centroid/dist/esm/index.js","../src/element_contract.ts","../src/source/mixin.ts","../src/source/nowmap.ts","../src/source/mapboxmap.ts","../src/source/maplibremap.ts","../src/source/googlemap.ts","../node_modules/.pnpm/ol@10.11.0/node_modules/ol/ViewHint.js","../node_modules/.pnpm/ol@10.11.0/node_modules/ol/ViewProperty.js","../node_modules/.pnpm/ol@10.11.0/node_modules/ol/centerconstraint.js","../node_modules/.pnpm/ol@10.11.0/node_modules/ol/easing.js","../node_modules/.pnpm/ol@10.11.0/node_modules/ol/resolutionconstraint.js","../node_modules/.pnpm/ol@10.11.0/node_modules/ol/rotationconstraint.js","../node_modules/.pnpm/ol@10.11.0/node_modules/ol/tilegrid/common.js","../node_modules/.pnpm/ol@10.11.0/node_modules/ol/View.js","../node_modules/.pnpm/ol@10.11.0/node_modules/ol/render/EventType.js","../node_modules/.pnpm/ol@10.11.0/node_modules/ol/layer/Property.js","../node_modules/.pnpm/ol@10.11.0/node_modules/ol/layer/Base.js","../node_modules/.pnpm/ol@10.11.0/node_modules/ol/layer/Layer.js","../src/gl_canvas_size.ts","../src/layer_mapbox.ts","../src/layer_maplibre.ts","../parts/bluedot.png","../parts/bluedot_transparent.png","../parts/bluedot_small.png","../parts/defaultpin.png","../src/map_ex.ts","../node_modules/.pnpm/ol@10.11.0/node_modules/ol/MapBrowserEventType.js","../node_modules/.pnpm/ol@10.11.0/node_modules/ol/interaction/Property.js","../node_modules/.pnpm/ol@10.11.0/node_modules/ol/interaction/Interaction.js","../node_modules/.pnpm/ol@10.11.0/node_modules/ol/CollectionEventType.js","../node_modules/.pnpm/ol@10.11.0/node_modules/ol/Collection.js","../node_modules/.pnpm/ol@10.11.0/node_modules/ol/Kinetic.js","../node_modules/.pnpm/ol@10.11.0/node_modules/ol/interaction/DoubleClickZoom.js","../node_modules/.pnpm/ol@10.11.0/node_modules/ol/has.js","../node_modules/.pnpm/ol@10.11.0/node_modules/ol/events/condition.js","../node_modules/.pnpm/ol@10.11.0/node_modules/ol/interaction/Pointer.js","../node_modules/.pnpm/ol@10.11.0/node_modules/ol/interaction/DragPan.js","../node_modules/.pnpm/ol@10.11.0/node_modules/ol/interaction/DragRotate.js","../node_modules/.pnpm/ol@10.11.0/node_modules/ol/render/Box.js","../node_modules/.pnpm/ol@10.11.0/node_modules/ol/interaction/DragBox.js","../node_modules/.pnpm/ol@10.11.0/node_modules/ol/interaction/DragZoom.js","../node_modules/.pnpm/ol@10.11.0/node_modules/ol/events/Key.js","../node_modules/.pnpm/ol@10.11.0/node_modules/ol/interaction/KeyboardPan.js","../node_modules/.pnpm/ol@10.11.0/node_modules/ol/interaction/KeyboardZoom.js","../node_modules/.pnpm/ol@10.11.0/node_modules/ol/interaction/MouseWheelZoom.js","../node_modules/.pnpm/ol@10.11.0/node_modules/ol/interaction/PinchRotate.js","../node_modules/.pnpm/ol@10.11.0/node_modules/ol/interaction/PinchZoom.js","../node_modules/.pnpm/ol@10.11.0/node_modules/ol/interaction/defaults.js","../node_modules/.pnpm/ol@10.11.0/node_modules/ol/interaction/DragRotateAndZoom.js","../node_modules/.pnpm/ol@10.11.0/node_modules/ol/tilecoord.js","../node_modules/.pnpm/ol@10.11.0/node_modules/ol/uri.js","../node_modules/.pnpm/ol@10.11.0/node_modules/ol/tileurlfunction.js","../src/source/histmap.ts","../src/source/tmsmap.ts","../node_modules/.pnpm/@c4h+weiwudi@1.1.1_workbox-routing@7.4.1/node_modules/@c4h/weiwudi/dist/weiwudi.es.js","../src/proj_ex.ts","../src/source/store_handler.ts","../src/source/display_candidates.ts","../src/source/histmap_tin.ts","../src/iiif/delivery.ts","../node_modules/.pnpm/whatwg-fetch@3.6.20/node_modules/whatwg-fetch/fetch.js","../parts/osm.jpg","../parts/gsi.jpg","../parts/gsi_ortho.jpg","../src/source_ex.ts","../src/iiif/manifest.ts","../src/math_ex.ts","../node_modules/.pnpm/@c4h+quyuan@1.1.1/node_modules/@c4h/quyuan/dist/template.js","../src/template_works.ts","../src/outside_pois.ts","../src/geolocation.ts","../node_modules/.pnpm/dompurify@3.4.17/node_modules/dompurify/dist/purify.es.mjs","../src/sanitize.ts","../parts/redcircle.png","../parts/defaultpin_selected.png","../src/assets.ts","../src/index.ts"],"sourcesContent":["/**\n * @module ol/events/Event\n */\n\n/**\n * @classdesc\n * Stripped down implementation of the W3C DOM Level 2 Event interface.\n * See https://www.w3.org/TR/DOM-Level-2-Events/events.html#Events-interface.\n *\n * This implementation only provides `type` and `target` properties, and\n * `stopPropagation` and `preventDefault` methods. It is meant as base class\n * for higher level events defined in the library, and works with\n * {@link module:ol/events/Target~Target}.\n */\nclass BaseEvent {\n /**\n * @param {string} type Type.\n */\n constructor(type) {\n /**\n * @type {boolean}\n */\n this.propagationStopped;\n\n /**\n * @type {boolean}\n */\n this.defaultPrevented;\n\n /**\n * The event type.\n * @type {string}\n * @api\n */\n this.type = type;\n\n /**\n * The event target.\n * @type {Object|null}\n * @api\n */\n this.target = null;\n }\n\n /**\n * Prevent default. This means that no emulated `click`, `singleclick` or `doubleclick` events\n * will be fired.\n * @api\n */\n preventDefault() {\n this.defaultPrevented = true;\n }\n\n /**\n * Stop event propagation.\n * @api\n */\n stopPropagation() {\n this.propagationStopped = true;\n }\n}\n\n/**\n * @param {Event|import(\"./Event.js\").default} evt Event\n */\nexport function stopPropagation(evt) {\n evt.stopPropagation();\n}\n\n/**\n * @param {Event|import(\"./Event.js\").default} evt Event\n */\nexport function preventDefault(evt) {\n evt.preventDefault();\n}\n\nexport default BaseEvent;\n","import Event from \"ol/events/Event\";\r\n\r\nexport default class CustomEvent extends Event {\r\n detail: any;\r\n constructor(type: string, detail: any) {\r\n super(type);\r\n this.detail = detail;\r\n }\r\n}\r\n","type AllLoggerLevelKeys = \"ALL\" | \"DEBUG\" | \"INFO\" | \"WARN\" | \"ERROR\" | \"OFF\";\r\nconst excludeKeys = [\"ALL\", \"OFF\"] as const;\r\ntype LoggerLevelKeys = Exclude;\r\ntype TLogger = { [key in Lowercase]: Console[\"log\"] };\r\n\r\nexport const LOGGER_LEVEL = {\r\n ALL: -99,\r\n DEBUG: -1,\r\n INFO: 0,\r\n WARN: 1,\r\n ERROR: 2,\r\n OFF: 99\r\n} as const;\r\n\r\n// eslint-disable-next-line @typescript-eslint/no-unsafe-declaration-merging, @typescript-eslint/no-empty-object-type\r\nexport interface Logger extends TLogger {}\r\n\r\n// eslint-disable-next-line @typescript-eslint/no-unsafe-declaration-merging\r\nexport class Logger {\r\n constructor(\r\n public level: typeof LOGGER_LEVEL[AllLoggerLevelKeys] = LOGGER_LEVEL.INFO\r\n ) {\r\n this.make();\r\n }\r\n\r\n private make() {\r\n const keys = (Object.keys(LOGGER_LEVEL) as AllLoggerLevelKeys[]).filter(\r\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\r\n // @ts-expect-error\r\n key => !excludeKeys.includes(key)\r\n ) as LoggerLevelKeys[];\r\n\r\n for (const key of keys) {\r\n const l = LOGGER_LEVEL[key];\r\n const lowerCaseKey = key.toLowerCase() as Lowercase;\r\n // eslint-disable-next-line @typescript-eslint/no-empty-function\r\n this[lowerCaseKey] = this.level <= l ? console.log : () => {};\r\n }\r\n }\r\n}\r\n","/**\n * m6-t5: Mapbox / MapLibre ソースへ共有 GL インスタンスを割り当てる。\n * GL が無いときは throw せずスキップ(ADR-0014 / 設計 AC10)。\n *\n * @returns true なら cache に含める / false なら当該ソースを落とす\n */\nexport type ProviderGlSource = {\n mapID?: string;\n isMapbox: () => boolean;\n isMapLibre?: () => boolean;\n mapboxMap?: unknown;\n maplibreMap?: unknown;\n};\n\nexport type ProviderGlContext = {\n mapboxMap?: unknown;\n maplibreMap?: unknown;\n warn?: (message: string, ...args: unknown[]) => void;\n};\n\nexport function bindProviderGlToSource(\n source: ProviderGlSource,\n ctx: ProviderGlContext\n): boolean {\n if (source.isMapbox()) {\n if (!ctx.mapboxMap) {\n ctx.warn?.(\n \"Mapbox GL JS is not available; skipping Mapbox source:\",\n source.mapID\n );\n return false;\n }\n source.mapboxMap = ctx.mapboxMap;\n return true;\n }\n if (typeof source.isMapLibre === \"function\" && source.isMapLibre()) {\n if (!ctx.maplibreMap) {\n ctx.warn?.(\n \"MapLibre GL JS is not available; skipping MapLibre source:\",\n source.mapID\n );\n return false;\n }\n source.maplibreMap = ctx.maplibreMap;\n return true;\n }\n return true;\n}\n","// 地図のメタデータのキー(地図情報・getMapMeta・mapChanged の detail)。\n// 依存を持たない(@maplat/core/common からたどれるファイルが OpenLayers 等を読まないよう、\n// src/source/mixin.ts から切り出した。mixin.ts は従来どおり同じ名前で再 export する)。\nexport const META_KEYS = [\n \"title\",\n \"officialTitle\",\n \"author\",\n \"createdAt\",\n \"era\",\n \"contributor\",\n \"mapper\",\n \"license\",\n \"dataLicense\",\n // m6-t2: ライセンスの自由記述欄。META_KEYS_OPTION と lockstep (同じ index) で足す。\n \"licenseNote\",\n \"dataLicenseNote\",\n \"attr\",\n \"dataAttr\",\n \"reference\",\n \"description\"\n];\nexport const META_KEYS_OPTION = [\n \"title\",\n \"official_title\",\n \"author\",\n \"created_at\",\n \"era\",\n \"contributor\",\n \"mapper\",\n \"license\",\n \"data_license\",\n \"license_note\",\n \"data_license_note\",\n \"attr\",\n \"data_attr\",\n \"reference\",\n \"description\"\n];\n","/* eslint-disable @typescript-eslint/ban-ts-comment */\n// META_KEYS は依存の無い src/meta_keys.ts から読む(source/mixin.ts 経由だと OpenLayers を引き込む。\n// このファイルは @maplat/core/common から読まれる)。\nimport { META_KEYS } from \"./meta_keys\";\n\n/**\n * 同じキーでは 1 回だけ警告する関数を作る(「キーごとに 1 回」)。\n * 旧クラスの起動時キーのロック・設定ファイルの機能系キーの警告と、要素の warnOnce が共有する\n * (警告の文面と経路は各呼び出し側が持つ)。\n */\nexport function createOnceWarner(): (key: string, message: string) => void {\n const warned = new Set();\n return (key, message) => {\n if (warned.has(key)) return;\n warned.add(key);\n console.warn(message);\n };\n}\n\n// 旧クラス MaplatApp の非推奨の告知(実行時に 1 回だけ警告する)。\n// 粒度は「同一プロセスで 1 回」なので、createOnceWarner(呼び出し側ごとに 1 回)ではなく、\n// このモジュールの水準で覚える。要素()の経路は内部で MaplatApp を作るため、\n// 警告するかどうかは src/index.ts のコンストラクタが option の内部キー \"__maplatElementMode\" の\n// 有無で見分ける(ここでは経路を見分けない。文言だけを持つ)。\nlet maplatAppDeprecationWarned = false;\n\nconst MAPLAT_APP_DEPRECATION_MESSAGE =\n \"MaplatApp: the MaplatApp class is deprecated and will be removed in 2.0. \" +\n \"Use the element (@maplat/core/element) instead.\";\n\n/**\n * 旧クラス MaplatApp の非推奨を、同一プロセスで 1 回だけ警告する。\n * 呼ぶのは旧クラスのコンストラクタだけ(要素の経路は呼ばない。src/index.ts を参照)。\n */\nexport function warnMaplatAppDeprecated(): void {\n if (maplatAppDeprecationWarned) return;\n maplatAppDeprecationWarned = true;\n console.warn(MAPLAT_APP_DEPRECATION_MESSAGE);\n}\n\n/**\n * 「1 回だけ」の記憶を戻す(テストの間の初期化用)。\n * warnMaplatAppDeprecated の付属品で、公開面ではない(@maplat/core の入口からは出さない)。\n * @internal\n */\nexport function resetMaplatAppDeprecationWarning(): void {\n maplatAppDeprecationWarned = false;\n}\n\nexport function createElement(domStr: string) {\n const context = document;\n const fragment = context.createDocumentFragment();\n const nodes = [];\n domStr = domStr\n .replace(/(<\\/?)d([ >])/g, \"$1div$2\")\n .replace(/(<\\/?)s([ >])/g, \"$1span$2\")\n .replace(/ din=\"/g, ' data-i18n=\"')\n .replace(/ dinh=\"/g, ' data-i18n-html=\"')\n .replace(/ c=\"/g, ' class=\"');\n // ダミーのDIV要素を作成して中にテキストを挿入\n const tmp = fragment.appendChild(context.createElement(\"div\"));\n tmp.innerHTML = domStr;\n for (let i = 0; i < tmp.childNodes.length; i++) {\n // ダミーのDIV要素からHTML要素としてchildNodesで取り出せる\n const node = tmp.childNodes[i];\n // SCRIPT要素は新たに生成し直さなければ実行されない\n if (node.nodeName && node.nodeName.toLowerCase() === \"script\") {\n const script = context.createElement(\"script\");\n // @ts-expect-error\n if (node.type) {\n // @ts-expect-error\n script.type = node.type;\n }\n // @ts-expect-error\n if (node.src) {\n // @ts-expect-error\n script.src = node.src;\n } else {\n // @ts-expect-error\n script.text = node.text;\n }\n nodes[i] = script;\n } else {\n // SCRIPT以外の要素\n nodes[i] = node;\n }\n }\n // HTML要素配列を返す\n return nodes;\n}\nexport function normalizeDegree(degree: number) {\n \n while (1) {\n if (degree <= 180 && degree > -180) break;\n const times = degree > 0 ? -1.0 : 1.0;\n degree = degree + times * 360.0;\n }\n return degree;\n}\n\nexport function createMapInfo(source: any) {\n if (!source) return;\n const ret: any = {\n mapID: source.mapID\n };\n for (let i = 0; i < META_KEYS.length; i++) {\n const key = META_KEYS[i];\n if (source[key]) {\n ret[key] = source[key];\n }\n }\n return ret;\n}\n\nexport function normalizeArg(options: Record) {\n const table = {\n max_zoom: \"maxZoom\",\n min_zoom: \"minZoom\",\n envelope_lnglats: \"envelopeLngLats\",\n envelopLngLats: \"envelopeLngLats\",\n image_extention: \"imageExtension\",\n image_extension: \"imageExtension\",\n imageExtention: \"imageExtension\",\n map_id: \"mapID\",\n sourceID: \"mapID\",\n source_id: \"mapID\",\n merc_max_zoom: \"mercMaxZoom\",\n merc_min_zoom: \"mercMinZoom\",\n zoom_restriction: \"zoomRestriction\",\n enable_cache: \"enableCache\",\n default_zoom: \"defaultZoom\",\n start_from: \"startFrom\",\n home_position: \"homePosition\",\n fake_radius: \"fakeRadius\",\n fake_center: \"fakeCenter\",\n fake_gps: \"fakeGps\",\n app_name: \"appName\",\n setting_file: \"settingFile\",\n merc_zoom: \"mercZoom\",\n mapbox_token: \"mapboxToken\",\n translate_ui: \"translateUI\",\n restore_session: \"restoreSession\",\n no_rotate: \"noRotate\",\n poi_template: \"poiTemplate\",\n poi_style: \"poiStyle\",\n icon_template: \"iconTemplate\",\n default_center: \"defaultCenter\",\n default_rotation: \"defaultRotation\",\n selected_icon: \"selectedIcon\",\n namespace_id: \"namespaceID\",\n mercator_x_shift: \"mercatorXShift\",\n mercator_y_shift: \"mercatorYShift\"\n } as const;\n return (Object.keys(table) as (keyof typeof table)[]).reduce((opt, key) => {\n if (opt[key] !== undefined) {\n throw new Error(`Invalid Maplat option key: ${key}. Use \"${table[key]}\" instead.`);\n //opt[table[key]] = opt[key];\n //delete opt[key];\n }\n return opt;\n }, options);\n}\n","/**\n * @module ol/Disposable\n */\n\n/**\n * @classdesc\n * Objects that need to clean up after themselves.\n */\nclass Disposable {\n constructor() {\n /**\n * The object has already been disposed.\n * @type {boolean}\n * @protected\n */\n this.disposed = false;\n }\n\n /**\n * Clean up.\n */\n dispose() {\n if (!this.disposed) {\n this.disposed = true;\n this.disposeInternal();\n }\n }\n\n /**\n * Extension point for disposable objects.\n * @protected\n */\n disposeInternal() {}\n}\n\nexport default Disposable;\n","/**\n * @module ol/array\n */\n\n/**\n * Performs a binary search on the provided sorted list and returns the index of the item if found. If it can't be found it'll return -1.\n * https://github.com/darkskyapp/binary-search\n *\n * @param {Array<*>} haystack Items to search through.\n * @param {*} needle The item to look for.\n * @param {Function} [comparator] Comparator function.\n * @return {number} The index of the item if found, -1 if not.\n */\nexport function binarySearch(haystack, needle, comparator) {\n let mid, cmp;\n comparator = comparator || ascending;\n let low = 0;\n let high = haystack.length;\n let found = false;\n\n while (low < high) {\n /* Note that \"(low + high) >>> 1\" may overflow, and results in a typecast\n * to double (which gives the wrong results). */\n mid = low + ((high - low) >> 1);\n cmp = +comparator(haystack[mid], needle);\n\n if (cmp < 0.0) {\n /* Too low. */\n low = mid + 1;\n } else {\n /* Key found or too high */\n high = mid;\n found = !cmp;\n }\n }\n\n /* Key not found. */\n return found ? low : ~low;\n}\n\n/**\n * Compare function sorting arrays in ascending order. Safe to use for numeric values.\n * @param {*} a The first object to be compared.\n * @param {*} b The second object to be compared.\n * @return {number} A negative number, zero, or a positive number as the first\n * argument is less than, equal to, or greater than the second.\n */\nexport function ascending(a, b) {\n return a > b ? 1 : a < b ? -1 : 0;\n}\n\n/**\n * Compare function sorting arrays in descending order. Safe to use for numeric values.\n * @param {*} a The first object to be compared.\n * @param {*} b The second object to be compared.\n * @return {number} A negative number, zero, or a positive number as the first\n * argument is greater than, equal to, or less than the second.\n */\nexport function descending(a, b) {\n return a < b ? 1 : a > b ? -1 : 0;\n}\n\n/**\n * {@link module:ol/tilegrid/TileGrid~TileGrid#getZForResolution} can use a function\n * of this type to determine which nearest resolution to use.\n *\n * This function takes a `{number}` representing a value between two array entries,\n * a `{number}` representing the value of the nearest higher entry and\n * a `{number}` representing the value of the nearest lower entry\n * as arguments and returns a `{number}`. If a negative number or zero is returned\n * the lower value will be used, if a positive number is returned the higher value\n * will be used.\n * @typedef {function(number, number, number): number} NearestDirectionFunction\n * @api\n */\n\n/**\n * @param {Array} arr Array in descending order.\n * @param {number} target Target.\n * @param {number|NearestDirectionFunction} direction\n * 0 means return the nearest,\n * > 0 means return the largest nearest,\n * < 0 means return the smallest nearest.\n * @return {number} Index.\n */\nexport function linearFindNearest(arr, target, direction) {\n if (arr[0] <= target) {\n return 0;\n }\n\n const n = arr.length;\n if (target <= arr[n - 1]) {\n return n - 1;\n }\n\n if (typeof direction === 'function') {\n for (let i = 1; i < n; ++i) {\n const candidate = arr[i];\n if (candidate === target) {\n return i;\n }\n if (candidate < target) {\n if (direction(target, arr[i - 1], candidate) > 0) {\n return i - 1;\n }\n return i;\n }\n }\n return n - 1;\n }\n\n if (direction > 0) {\n for (let i = 1; i < n; ++i) {\n if (arr[i] < target) {\n return i - 1;\n }\n }\n return n - 1;\n }\n\n if (direction < 0) {\n for (let i = 1; i < n; ++i) {\n if (arr[i] <= target) {\n return i;\n }\n }\n return n - 1;\n }\n\n for (let i = 1; i < n; ++i) {\n if (arr[i] == target) {\n return i;\n }\n if (arr[i] < target) {\n if (arr[i - 1] - target < target - arr[i]) {\n return i - 1;\n }\n return i;\n }\n }\n return n - 1;\n}\n\n/**\n * @param {Array<*>} arr Array.\n * @param {number} begin Begin index.\n * @param {number} end End index.\n */\nexport function reverseSubArray(arr, begin, end) {\n while (begin < end) {\n const tmp = arr[begin];\n arr[begin] = arr[end];\n arr[end] = tmp;\n ++begin;\n --end;\n }\n}\n\n/**\n * @param {Array} arr The array to modify.\n * @param {!Array|VALUE} data The elements or arrays of elements to add to arr.\n * @template VALUE\n */\nexport function extend(arr, data) {\n const extension = Array.isArray(data) ? data : [data];\n const length = extension.length;\n for (let i = 0; i < length; i++) {\n arr[arr.length] = extension[i];\n }\n}\n\n/**\n * @param {Array} arr The array to modify.\n * @param {VALUE} obj The element to remove.\n * @template VALUE\n * @return {boolean} If the element was removed.\n */\nexport function remove(arr, obj) {\n const i = arr.indexOf(obj);\n const found = i > -1;\n if (found) {\n arr.splice(i, 1);\n }\n return found;\n}\n\n/**\n * @param {Array|Uint8ClampedArray} arr1 The first array to compare.\n * @param {Array|Uint8ClampedArray} arr2 The second array to compare.\n * @return {boolean} Whether the two arrays are equal.\n */\nexport function equals(arr1, arr2) {\n const len1 = arr1.length;\n if (len1 !== arr2.length) {\n return false;\n }\n for (let i = 0; i < len1; i++) {\n if (arr1[i] !== arr2[i]) {\n return false;\n }\n }\n return true;\n}\n\n/**\n * Sort the passed array such that the relative order of equal elements is preserved.\n * See https://en.wikipedia.org/wiki/Sorting_algorithm#Stability for details.\n * @param {Array<*>} arr The array to sort (modifies original).\n * @param {!function(*, *): number} compareFnc Comparison function.\n * @api\n * @deprecated\n */\nexport function stableSort(arr, compareFnc) {\n const length = arr.length;\n const tmp = Array(arr.length);\n let i;\n for (i = 0; i < length; i++) {\n tmp[i] = {index: i, value: arr[i]};\n }\n tmp.sort(function (a, b) {\n return compareFnc(a.value, b.value) || a.index - b.index;\n });\n for (i = 0; i < arr.length; i++) {\n arr[i] = tmp[i].value;\n }\n}\n\n/**\n * @param {Array<*>} arr The array to test.\n * @param {Function} [func] Comparison function.\n * @param {boolean} [strict] Strictly sorted (default false).\n * @return {boolean} Return index.\n */\nexport function isSorted(arr, func, strict) {\n const compare = func || ascending;\n return arr.every(function (currentVal, index) {\n if (index === 0) {\n return true;\n }\n const res = compare(arr[index - 1], currentVal);\n return !(res > 0 || (strict && res === 0));\n });\n}\n","/**\n * @module ol/util\n */\n\n/**\n * @return {never} Any return.\n */\nexport function abstract() {\n throw new Error('Unimplemented abstract method.');\n}\n\n/**\n * Counter for getUid.\n * @type {number}\n * @private\n */\nlet uidCounter_ = 0;\n\n/**\n * Gets a unique ID for an object. This mutates the object so that further calls\n * with the same object as a parameter returns the same value. Unique IDs are generated\n * as a strictly increasing sequence. Adapted from goog.getUid.\n *\n * @param {Object} obj The object to get the unique ID for.\n * @return {string} The unique ID for the object.\n * @api\n */\nexport function getUid(obj) {\n const uidObj = /** @type {{ol_uid: (string|undefined)}} */ (\n /** @type {unknown} */ (obj)\n );\n return uidObj.ol_uid || (uidObj.ol_uid = String(++uidCounter_));\n}\n\n/**\n * OpenLayers version.\n * @type {string}\n */\nexport const VERSION = '10.11.0';\n\n/***\n * Determine whether a value is thenable, i.e. it has `then` and `catch` methods.\n * @param {*} value The value to check.\n * @return {value is Promise} The value is thenable.\n */\nexport function isThenable(value) {\n return (\n !!value &&\n typeof value.then === 'function' &&\n typeof value.catch === 'function'\n );\n}\n","/**\n * @module ol/functions\n */\n\nimport {equals as arrayEquals} from './array.js';\nimport {isThenable} from './util.js';\n\n/**\n * Always returns true.\n * @return {boolean} true.\n */\nexport function TRUE() {\n return true;\n}\n\n/**\n * Always returns false.\n * @return {boolean} false.\n */\nexport function FALSE() {\n return false;\n}\n\n/**\n * A reusable function, used e.g. as a default for callbacks.\n *\n * @return {void} Nothing.\n */\nexport function VOID() {}\n\n/**\n * Wrap a function in another function that remembers the last return. If the\n * returned function is called twice in a row with the same arguments and the same\n * this object, it will return the value from the first call in the second call.\n *\n * @param {function(...any): ReturnType} fn The function to memoize.\n * @return {function(...any): ReturnType} The memoized function.\n * @template ReturnType\n */\nexport function memoizeOne(fn) {\n /** @type {ReturnType} */\n let lastResult;\n\n /** @type {Array|undefined} */\n let lastArgs;\n\n /** @type {*} */\n let lastThis;\n\n /**\n * @this {*} Only need to know if `this` changed, don't care what type\n * @return {ReturnType} Memoized value\n */\n return function () {\n const nextArgs = Array.prototype.slice.call(arguments);\n if (!lastArgs || this !== lastThis || !arrayEquals(nextArgs, lastArgs)) {\n lastThis = this;\n lastArgs = nextArgs;\n lastResult = fn.apply(this, nextArgs);\n }\n return lastResult;\n };\n}\n\n/**\n * @template T\n * @param {function(): (T | Promise)} getter A function that returns a value or a promise for a value.\n * @return {Promise} A promise for the value.\n */\nexport function toPromise(getter) {\n function promiseGetter() {\n let value;\n try {\n value = getter();\n } catch (err) {\n return Promise.reject(err);\n }\n if (isThenable(value)) {\n return value;\n }\n return Promise.resolve(value);\n }\n return promiseGetter();\n}\n","/**\n * @module ol/obj\n */\n\n/**\n * Removes all properties from an object.\n * @param {Object} object The object to clear.\n */\nexport function clear(object) {\n for (const property in object) {\n delete object[property];\n }\n}\n\n/**\n * Determine if an object has any properties.\n * @param {Object} object The object to check.\n * @return {boolean} The object is empty.\n */\nexport function isEmpty(object) {\n let property;\n for (property in object) {\n return false;\n }\n return !property;\n}\n","/**\n * @module ol/events/Target\n */\nimport Disposable from '../Disposable.js';\nimport {VOID} from '../functions.js';\nimport {clear} from '../obj.js';\nimport Event from './Event.js';\n\n/**\n * @typedef {EventTarget|Target} EventTargetLike\n */\n\n/**\n * @classdesc\n * A simplified implementation of the W3C DOM Level 2 EventTarget interface.\n * See https://www.w3.org/TR/2000/REC-DOM-Level-2-Events-20001113/events.html#Events-EventTarget.\n *\n * There are two important simplifications compared to the specification:\n *\n * 1. The handling of `useCapture` in `addEventListener` and\n * `removeEventListener`. There is no real capture model.\n * 2. The handling of `stopPropagation` and `preventDefault` on `dispatchEvent`.\n * There is no event target hierarchy. When a listener calls\n * `stopPropagation` or `preventDefault` on an event object, it means that no\n * more listeners after this one will be called. Same as when the listener\n * returns false.\n */\nclass Target extends Disposable {\n /**\n * @param {*} [target] Default event target for dispatched events.\n */\n constructor(target) {\n super();\n\n /**\n * @private\n * @type {*}\n */\n this.eventTarget_ = target;\n\n /**\n * @private\n * @type {Object|null}\n */\n this.pendingRemovals_ = null;\n\n /**\n * @private\n * @type {Object|null}\n */\n this.dispatching_ = null;\n\n /**\n * @private\n * @type {Object>|null}\n */\n this.listeners_ = null;\n }\n\n /**\n * @param {string} type Type.\n * @param {import(\"../events.js\").Listener} listener Listener.\n */\n addEventListener(type, listener) {\n if (!type || !listener) {\n return;\n }\n const listeners = this.listeners_ || (this.listeners_ = {});\n const listenersForType = listeners[type] || (listeners[type] = []);\n if (!listenersForType.includes(listener)) {\n listenersForType.push(listener);\n }\n }\n\n /**\n * Dispatches an event and calls all listeners listening for events\n * of this type. The event parameter can either be a string or an\n * Object with a `type` property.\n *\n * @param {import(\"./Event.js\").default|string} event Event object.\n * @return {boolean|undefined} `false` if anyone called preventDefault on the\n * event object or if any of the listeners returned false.\n * @api\n */\n dispatchEvent(event) {\n const isString = typeof event === 'string';\n const type = isString ? event : event.type;\n const listeners = this.listeners_ && this.listeners_[type];\n if (!listeners) {\n return;\n }\n\n const evt = isString ? new Event(event) : /** @type {Event} */ (event);\n if (!evt.target) {\n evt.target = this.eventTarget_ || this;\n }\n const dispatching = this.dispatching_ || (this.dispatching_ = {});\n const pendingRemovals =\n this.pendingRemovals_ || (this.pendingRemovals_ = {});\n if (!(type in dispatching)) {\n dispatching[type] = 0;\n pendingRemovals[type] = 0;\n }\n ++dispatching[type];\n let propagate;\n for (let i = 0, ii = listeners.length; i < ii; ++i) {\n if ('handleEvent' in listeners[i]) {\n propagate = /** @type {import(\"../events.js\").ListenerObject} */ (\n listeners[i]\n ).handleEvent(evt);\n } else {\n propagate = /** @type {import(\"../events.js\").ListenerFunction} */ (\n listeners[i]\n ).call(this, evt);\n }\n if (propagate === false || evt.propagationStopped) {\n propagate = false;\n break;\n }\n }\n if (--dispatching[type] === 0) {\n let pr = pendingRemovals[type];\n delete pendingRemovals[type];\n while (pr--) {\n this.removeEventListener(type, VOID);\n }\n delete dispatching[type];\n }\n return /** @type {boolean|undefined} */ (propagate);\n }\n\n /**\n * Clean up.\n * @override\n */\n disposeInternal() {\n this.listeners_ && clear(this.listeners_);\n }\n\n /**\n * Get the listeners for a specified event type. Listeners are returned in the\n * order that they will be called in.\n *\n * @param {string} type Type.\n * @return {Array|undefined} Listeners.\n */\n getListeners(type) {\n return (this.listeners_ && this.listeners_[type]) || undefined;\n }\n\n /**\n * @param {string} [type] Type. If not provided,\n * `true` will be returned if this event target has any listeners.\n * @return {boolean} Has listeners.\n */\n hasListener(type) {\n if (!this.listeners_) {\n return false;\n }\n return type\n ? type in this.listeners_\n : Object.keys(this.listeners_).length > 0;\n }\n\n /**\n * @param {string} type Type.\n * @param {import(\"../events.js\").Listener} listener Listener.\n */\n removeEventListener(type, listener) {\n if (!this.listeners_) {\n return;\n }\n const listeners = this.listeners_[type];\n if (!listeners) {\n return;\n }\n const index = listeners.indexOf(listener);\n if (index !== -1) {\n if (this.pendingRemovals_ && type in this.pendingRemovals_) {\n // make listener a no-op, and remove later in #dispatchEvent()\n listeners[index] = VOID;\n ++this.pendingRemovals_[type];\n } else {\n listeners.splice(index, 1);\n if (listeners.length === 0) {\n delete this.listeners_[type];\n }\n }\n }\n }\n}\n\nexport default Target;\n","import { View } from \"ol\";\r\n\r\nView.prototype.getDecimalZoom = function (this: View): number {\r\n const resolution = this.getResolution();\r\n const offset =\r\n // NOTE: `resolution` maybe `undefined`\r\n // NOTE: `offset` maybe `NaN`\r\n \r\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\r\n // @ts-ignore\r\n Math.log(this.maxResolution_ / resolution!) / Math.log(2);\r\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\r\n // @ts-ignore\r\n return offset !== undefined ? this.minZoom_ + offset : offset;\r\n};\r\n\r\nexport { View };\r\n","/**\n * @module ol/extent/Relationship\n */\n\n/**\n * Relationship to an extent.\n * @enum {number}\n */\nexport default {\n UNKNOWN: 0,\n INTERSECTING: 1,\n ABOVE: 2,\n RIGHT: 4,\n BELOW: 8,\n LEFT: 16,\n};\n","/**\n * @module ol/extent\n */\nimport Relationship from './extent/Relationship.js';\n\n/**\n * An array of numbers representing an extent: `[minx, miny, maxx, maxy]`.\n * @typedef {Array} Extent\n * @api\n */\n\n/**\n * Extent corner.\n * @typedef {'bottom-left' | 'bottom-right' | 'top-left' | 'top-right'} Corner\n */\n\n/**\n * Build an extent that includes all given coordinates.\n *\n * @param {Array} coordinates Coordinates.\n * @return {Extent} Bounding extent.\n * @api\n */\nexport function boundingExtent(coordinates) {\n const extent = createEmpty();\n for (let i = 0, ii = coordinates.length; i < ii; ++i) {\n extendCoordinate(extent, coordinates[i]);\n }\n return extent;\n}\n\n/**\n * @param {Array} xs Xs.\n * @param {Array} ys Ys.\n * @param {Extent} [dest] Destination extent.\n * @private\n * @return {Extent} Extent.\n */\nfunction _boundingExtentXYs(xs, ys, dest) {\n const minX = Math.min.apply(null, xs);\n const minY = Math.min.apply(null, ys);\n const maxX = Math.max.apply(null, xs);\n const maxY = Math.max.apply(null, ys);\n return createOrUpdate(minX, minY, maxX, maxY, dest);\n}\n\n/**\n * Return extent increased by the provided value.\n * @param {Extent} extent Extent.\n * @param {number} value The amount by which the extent should be buffered.\n * @param {Extent} [dest] Extent.\n * @return {Extent} Extent.\n * @api\n */\nexport function buffer(extent, value, dest) {\n if (dest) {\n dest[0] = extent[0] - value;\n dest[1] = extent[1] - value;\n dest[2] = extent[2] + value;\n dest[3] = extent[3] + value;\n return dest;\n }\n return [\n extent[0] - value,\n extent[1] - value,\n extent[2] + value,\n extent[3] + value,\n ];\n}\n\n/**\n * Creates a clone of an extent.\n *\n * @param {Extent} extent Extent to clone.\n * @param {Extent} [dest] Extent.\n * @return {Extent} The clone.\n */\nexport function clone(extent, dest) {\n if (dest) {\n dest[0] = extent[0];\n dest[1] = extent[1];\n dest[2] = extent[2];\n dest[3] = extent[3];\n return dest;\n }\n return extent.slice();\n}\n\n/**\n * @param {Extent} extent Extent.\n * @param {number} x X.\n * @param {number} y Y.\n * @return {number} Closest squared distance.\n */\nexport function closestSquaredDistanceXY(extent, x, y) {\n let dx, dy;\n if (x < extent[0]) {\n dx = extent[0] - x;\n } else if (extent[2] < x) {\n dx = x - extent[2];\n } else {\n dx = 0;\n }\n if (y < extent[1]) {\n dy = extent[1] - y;\n } else if (extent[3] < y) {\n dy = y - extent[3];\n } else {\n dy = 0;\n }\n return dx * dx + dy * dy;\n}\n\n/**\n * Check if the passed coordinate is contained or on the edge of the extent.\n *\n * @param {Extent} extent Extent.\n * @param {import(\"./coordinate.js\").Coordinate} coordinate Coordinate.\n * @return {boolean} The coordinate is contained in the extent.\n * @api\n */\nexport function containsCoordinate(extent, coordinate) {\n return containsXY(extent, coordinate[0], coordinate[1]);\n}\n\n/**\n * Check if one extent contains another.\n *\n * An extent is deemed contained if it lies completely within the other extent,\n * including if they share one or more edges.\n *\n * @param {Extent} extent1 Extent 1.\n * @param {Extent} extent2 Extent 2.\n * @return {boolean} The second extent is contained by or on the edge of the\n * first.\n * @api\n */\nexport function containsExtent(extent1, extent2) {\n return (\n extent1[0] <= extent2[0] &&\n extent2[2] <= extent1[2] &&\n extent1[1] <= extent2[1] &&\n extent2[3] <= extent1[3]\n );\n}\n\n/**\n * Check if the passed coordinate is contained or on the edge of the extent.\n *\n * @param {Extent} extent Extent.\n * @param {number} x X coordinate.\n * @param {number} y Y coordinate.\n * @return {boolean} The x, y values are contained in the extent.\n * @api\n */\nexport function containsXY(extent, x, y) {\n return extent[0] <= x && x <= extent[2] && extent[1] <= y && y <= extent[3];\n}\n\n/**\n * Get the relationship between a coordinate and extent.\n * @param {Extent} extent The extent.\n * @param {import(\"./coordinate.js\").Coordinate} coordinate The coordinate.\n * @return {import(\"./extent/Relationship.js\").default} The relationship (bitwise compare with\n * import(\"./extent/Relationship.js\").Relationship).\n */\nexport function coordinateRelationship(extent, coordinate) {\n const minX = extent[0];\n const minY = extent[1];\n const maxX = extent[2];\n const maxY = extent[3];\n const x = coordinate[0];\n const y = coordinate[1];\n let relationship = Relationship.UNKNOWN;\n if (x < minX) {\n relationship = relationship | Relationship.LEFT;\n } else if (x > maxX) {\n relationship = relationship | Relationship.RIGHT;\n }\n if (y < minY) {\n relationship = relationship | Relationship.BELOW;\n } else if (y > maxY) {\n relationship = relationship | Relationship.ABOVE;\n }\n if (relationship === Relationship.UNKNOWN) {\n relationship = Relationship.INTERSECTING;\n }\n return relationship;\n}\n\n/**\n * Create an empty extent.\n * @return {Extent} Empty extent.\n * @api\n */\nexport function createEmpty() {\n return [Infinity, Infinity, -Infinity, -Infinity];\n}\n\n/**\n * Create a new extent or update the provided extent.\n * @param {number} minX Minimum X.\n * @param {number} minY Minimum Y.\n * @param {number} maxX Maximum X.\n * @param {number} maxY Maximum Y.\n * @param {Extent} [dest] Destination extent.\n * @return {Extent} Extent.\n */\nexport function createOrUpdate(minX, minY, maxX, maxY, dest) {\n if (dest) {\n dest[0] = minX;\n dest[1] = minY;\n dest[2] = maxX;\n dest[3] = maxY;\n return dest;\n }\n return [minX, minY, maxX, maxY];\n}\n\n/**\n * Create a new empty extent or make the provided one empty.\n * @param {Extent} [dest] Extent.\n * @return {Extent} Extent.\n */\nexport function createOrUpdateEmpty(dest) {\n return createOrUpdate(Infinity, Infinity, -Infinity, -Infinity, dest);\n}\n\n/**\n * @param {import(\"./coordinate.js\").Coordinate} coordinate Coordinate.\n * @param {Extent} [dest] Extent.\n * @return {Extent} Extent.\n */\nexport function createOrUpdateFromCoordinate(coordinate, dest) {\n const x = coordinate[0];\n const y = coordinate[1];\n return createOrUpdate(x, y, x, y, dest);\n}\n\n/**\n * @param {Array} coordinates Coordinates.\n * @param {Extent} [dest] Extent.\n * @return {Extent} Extent.\n */\nexport function createOrUpdateFromCoordinates(coordinates, dest) {\n const extent = createOrUpdateEmpty(dest);\n return extendCoordinates(extent, coordinates);\n}\n\n/**\n * @param {Array} flatCoordinates Flat coordinates.\n * @param {number} offset Offset.\n * @param {number} end End.\n * @param {number} stride Stride.\n * @param {Extent} [dest] Extent.\n * @return {Extent} Extent.\n */\nexport function createOrUpdateFromFlatCoordinates(\n flatCoordinates,\n offset,\n end,\n stride,\n dest,\n) {\n const extent = createOrUpdateEmpty(dest);\n return extendFlatCoordinates(extent, flatCoordinates, offset, end, stride);\n}\n\n/**\n * @param {Array>} rings Rings.\n * @param {Extent} [dest] Extent.\n * @return {Extent} Extent.\n */\nexport function createOrUpdateFromRings(rings, dest) {\n const extent = createOrUpdateEmpty(dest);\n return extendRings(extent, rings);\n}\n\n/**\n * Determine if two extents are equivalent.\n * @param {Extent} extent1 Extent 1.\n * @param {Extent} extent2 Extent 2.\n * @return {boolean} The two extents are equivalent.\n * @api\n */\nexport function equals(extent1, extent2) {\n return (\n extent1[0] == extent2[0] &&\n extent1[2] == extent2[2] &&\n extent1[1] == extent2[1] &&\n extent1[3] == extent2[3]\n );\n}\n\n/**\n * Determine if two extents are approximately equivalent.\n * @param {Extent} extent1 Extent 1.\n * @param {Extent} extent2 Extent 2.\n * @param {number} tolerance Tolerance in extent coordinate units.\n * @return {boolean} The two extents differ by less than the tolerance.\n */\nexport function approximatelyEquals(extent1, extent2, tolerance) {\n return (\n Math.abs(extent1[0] - extent2[0]) < tolerance &&\n Math.abs(extent1[2] - extent2[2]) < tolerance &&\n Math.abs(extent1[1] - extent2[1]) < tolerance &&\n Math.abs(extent1[3] - extent2[3]) < tolerance\n );\n}\n\n/**\n * Modify an extent to include another extent.\n * @param {Extent} extent1 The extent to be modified.\n * @param {Extent} extent2 The extent that will be included in the first.\n * @return {Extent} A reference to the first (extended) extent.\n * @api\n */\nexport function extend(extent1, extent2) {\n if (extent2[0] < extent1[0]) {\n extent1[0] = extent2[0];\n }\n if (extent2[2] > extent1[2]) {\n extent1[2] = extent2[2];\n }\n if (extent2[1] < extent1[1]) {\n extent1[1] = extent2[1];\n }\n if (extent2[3] > extent1[3]) {\n extent1[3] = extent2[3];\n }\n return extent1;\n}\n\n/**\n * @param {Extent} extent Extent.\n * @param {import(\"./coordinate.js\").Coordinate} coordinate Coordinate.\n */\nexport function extendCoordinate(extent, coordinate) {\n if (coordinate[0] < extent[0]) {\n extent[0] = coordinate[0];\n }\n if (coordinate[0] > extent[2]) {\n extent[2] = coordinate[0];\n }\n if (coordinate[1] < extent[1]) {\n extent[1] = coordinate[1];\n }\n if (coordinate[1] > extent[3]) {\n extent[3] = coordinate[1];\n }\n}\n\n/**\n * @param {Extent} extent Extent.\n * @param {Array} coordinates Coordinates.\n * @return {Extent} Extent.\n */\nexport function extendCoordinates(extent, coordinates) {\n for (let i = 0, ii = coordinates.length; i < ii; ++i) {\n extendCoordinate(extent, coordinates[i]);\n }\n return extent;\n}\n\n/**\n * @param {Extent} extent Extent.\n * @param {Array} flatCoordinates Flat coordinates.\n * @param {number} offset Offset.\n * @param {number} end End.\n * @param {number} stride Stride.\n * @return {Extent} Extent.\n */\nexport function extendFlatCoordinates(\n extent,\n flatCoordinates,\n offset,\n end,\n stride,\n) {\n for (; offset < end; offset += stride) {\n extendXY(extent, flatCoordinates[offset], flatCoordinates[offset + 1]);\n }\n return extent;\n}\n\n/**\n * @param {Extent} extent Extent.\n * @param {Array>} rings Rings.\n * @return {Extent} Extent.\n */\nexport function extendRings(extent, rings) {\n for (let i = 0, ii = rings.length; i < ii; ++i) {\n extendCoordinates(extent, rings[i]);\n }\n return extent;\n}\n\n/**\n * @param {Extent} extent Extent.\n * @param {number} x X.\n * @param {number} y Y.\n */\nexport function extendXY(extent, x, y) {\n extent[0] = Math.min(extent[0], x);\n extent[1] = Math.min(extent[1], y);\n extent[2] = Math.max(extent[2], x);\n extent[3] = Math.max(extent[3], y);\n}\n\n/**\n * This function calls `callback` for each corner of the extent. If the\n * callback returns a truthy value the function returns that value\n * immediately. Otherwise the function returns `false`.\n * @param {Extent} extent Extent.\n * @param {function(import(\"./coordinate.js\").Coordinate): S} callback Callback.\n * @return {S|boolean} Value.\n * @template S\n */\nexport function forEachCorner(extent, callback) {\n let val;\n val = callback(getBottomLeft(extent));\n if (val) {\n return val;\n }\n val = callback(getBottomRight(extent));\n if (val) {\n return val;\n }\n val = callback(getTopRight(extent));\n if (val) {\n return val;\n }\n val = callback(getTopLeft(extent));\n if (val) {\n return val;\n }\n return false;\n}\n\n/**\n * Get the size of an extent.\n * @param {Extent} extent Extent.\n * @return {number} Area.\n * @api\n */\nexport function getArea(extent) {\n let area = 0;\n if (!isEmpty(extent)) {\n area = getWidth(extent) * getHeight(extent);\n }\n return area;\n}\n\n/**\n * Get the bottom left coordinate of an extent.\n * @param {Extent} extent Extent.\n * @return {import(\"./coordinate.js\").Coordinate} Bottom left coordinate.\n * @api\n */\nexport function getBottomLeft(extent) {\n return [extent[0], extent[1]];\n}\n\n/**\n * Get the bottom right coordinate of an extent.\n * @param {Extent} extent Extent.\n * @return {import(\"./coordinate.js\").Coordinate} Bottom right coordinate.\n * @api\n */\nexport function getBottomRight(extent) {\n return [extent[2], extent[1]];\n}\n\n/**\n * Get the center coordinate of an extent.\n * @param {Extent} extent Extent.\n * @return {import(\"./coordinate.js\").Coordinate} Center.\n * @api\n */\nexport function getCenter(extent) {\n return [(extent[0] + extent[2]) / 2, (extent[1] + extent[3]) / 2];\n}\n\n/**\n * Get a corner coordinate of an extent.\n * @param {Extent} extent Extent.\n * @param {Corner} corner Corner.\n * @return {import(\"./coordinate.js\").Coordinate} Corner coordinate.\n */\nexport function getCorner(extent, corner) {\n let coordinate;\n if (corner === 'bottom-left') {\n coordinate = getBottomLeft(extent);\n } else if (corner === 'bottom-right') {\n coordinate = getBottomRight(extent);\n } else if (corner === 'top-left') {\n coordinate = getTopLeft(extent);\n } else if (corner === 'top-right') {\n coordinate = getTopRight(extent);\n } else {\n throw new Error('Invalid corner');\n }\n return coordinate;\n}\n\n/**\n * @param {Extent} extent1 Extent 1.\n * @param {Extent} extent2 Extent 2.\n * @return {number} Enlarged area.\n */\nexport function getEnlargedArea(extent1, extent2) {\n const minX = Math.min(extent1[0], extent2[0]);\n const minY = Math.min(extent1[1], extent2[1]);\n const maxX = Math.max(extent1[2], extent2[2]);\n const maxY = Math.max(extent1[3], extent2[3]);\n return (maxX - minX) * (maxY - minY);\n}\n\n/**\n * @param {import(\"./coordinate.js\").Coordinate} center Center.\n * @param {number} resolution Resolution.\n * @param {number} rotation Rotation.\n * @param {import(\"./size.js\").Size} size Size.\n * @param {Extent} [dest] Destination extent.\n * @return {Extent} Extent.\n */\nexport function getForViewAndSize(center, resolution, rotation, size, dest) {\n const [x0, y0, x1, y1, x2, y2, x3, y3] = getRotatedViewport(\n center,\n resolution,\n rotation,\n size,\n );\n return createOrUpdate(\n Math.min(x0, x1, x2, x3),\n Math.min(y0, y1, y2, y3),\n Math.max(x0, x1, x2, x3),\n Math.max(y0, y1, y2, y3),\n dest,\n );\n}\n\n/**\n * @param {import(\"./coordinate.js\").Coordinate} center Center.\n * @param {number} resolution Resolution.\n * @param {number} rotation Rotation.\n * @param {import(\"./size.js\").Size} size Size.\n * @return {Array} Linear ring representing the viewport.\n */\nexport function getRotatedViewport(center, resolution, rotation, size) {\n const dx = (resolution * size[0]) / 2;\n const dy = (resolution * size[1]) / 2;\n const cosRotation = Math.cos(rotation);\n const sinRotation = Math.sin(rotation);\n const xCos = dx * cosRotation;\n const xSin = dx * sinRotation;\n const yCos = dy * cosRotation;\n const ySin = dy * sinRotation;\n const x = center[0];\n const y = center[1];\n return [\n x - xCos + ySin,\n y - xSin - yCos,\n x - xCos - ySin,\n y - xSin + yCos,\n x + xCos - ySin,\n y + xSin + yCos,\n x + xCos + ySin,\n y + xSin - yCos,\n x - xCos + ySin,\n y - xSin - yCos,\n ];\n}\n\n/**\n * Get the height of an extent.\n * @param {Extent} extent Extent.\n * @return {number} Height.\n * @api\n */\nexport function getHeight(extent) {\n return extent[3] - extent[1];\n}\n\n/**\n * @param {Extent} extent1 Extent 1.\n * @param {Extent} extent2 Extent 2.\n * @return {number} Intersection area.\n */\nexport function getIntersectionArea(extent1, extent2) {\n const intersection = getIntersection(extent1, extent2);\n return getArea(intersection);\n}\n\n/**\n * Get the intersection of two extents.\n * @param {Extent} extent1 Extent 1.\n * @param {Extent} extent2 Extent 2.\n * @param {Extent} [dest] Optional extent to populate with intersection.\n * @return {Extent} Intersecting extent.\n * @api\n */\nexport function getIntersection(extent1, extent2, dest) {\n const intersection = dest ? dest : createEmpty();\n if (intersects(extent1, extent2)) {\n if (extent1[0] > extent2[0]) {\n intersection[0] = extent1[0];\n } else {\n intersection[0] = extent2[0];\n }\n if (extent1[1] > extent2[1]) {\n intersection[1] = extent1[1];\n } else {\n intersection[1] = extent2[1];\n }\n if (extent1[2] < extent2[2]) {\n intersection[2] = extent1[2];\n } else {\n intersection[2] = extent2[2];\n }\n if (extent1[3] < extent2[3]) {\n intersection[3] = extent1[3];\n } else {\n intersection[3] = extent2[3];\n }\n } else {\n createOrUpdateEmpty(intersection);\n }\n return intersection;\n}\n\n/**\n * Get the difference between two extents, i.e. the area(s) of `extent1` that\n * are not covered by `extent2`. Returns an array of between 0 and 4 extents.\n *\n * When the extents do not intersect the returned array contains `extent1` as\n * its only element. When `extent2` completely contains `extent1` the returned\n * array is empty. Otherwise up to four non-overlapping extents are returned\n * that together cover exactly the parts of `extent1` outside `extent2`.\n *\n * The decomposition used is:\n *\n * ```\n * ┌────┬─────────┬────┐ ← y2\n * │ │ top │ │\n * │ ├─────────┤ │ ← iy2\n * │left│ (gone) │right│\n * │ ├─────────┤ │ ← iy1\n * │ │ bottom │ │\n * └────┴─────────┴────┘ ← y1\n * x1 ix1 ix2 x2\n * ```\n *\n * The left and right strips span the full height of `extent1` while the top\n * and bottom strips are clamped horizontally to the intersection, so the four\n * rectangles tile perfectly without overlap or gaps.\n *\n * @param {Extent} extent1 Extent to subtract from.\n * @param {Extent} extent2 Extent to subtract.\n * @return {Array} Remaining extents (0–4 elements).\n * @api\n */\nexport function getDifference(extent1, extent2) {\n if (!intersects(extent1, extent2)) {\n return [extent1.slice()];\n }\n if (containsExtent(extent2, extent1)) {\n return [];\n }\n\n const [x1, y1, x2, y2] = extent1;\n const ix1 = Math.max(x1, extent2[0]);\n const iy1 = Math.max(y1, extent2[1]);\n const ix2 = Math.min(x2, extent2[2]);\n const iy2 = Math.min(y2, extent2[3]);\n\n const result = [];\n\n // Left strip (full height of extent1)\n if (ix1 > x1) {\n result.push([x1, y1, ix1, y2]);\n }\n // Right strip (full height of extent1)\n if (ix2 < x2) {\n result.push([ix2, y1, x2, y2]);\n }\n // Bottom strip (between the left and right strips)\n if (iy1 > y1) {\n result.push([ix1, y1, ix2, iy1]);\n }\n // Top strip (between the left and right strips)\n if (iy2 < y2) {\n result.push([ix1, iy2, ix2, y2]);\n }\n\n return result;\n}\n\n/**\n * @param {Extent} extent Extent.\n * @return {number} Margin.\n */\nexport function getMargin(extent) {\n return getWidth(extent) + getHeight(extent);\n}\n\n/**\n * Get the size (width, height) of an extent.\n * @param {Extent} extent The extent.\n * @return {import(\"./size.js\").Size} The extent size.\n * @api\n */\nexport function getSize(extent) {\n return [extent[2] - extent[0], extent[3] - extent[1]];\n}\n\n/**\n * Get the top left coordinate of an extent.\n * @param {Extent} extent Extent.\n * @return {import(\"./coordinate.js\").Coordinate} Top left coordinate.\n * @api\n */\nexport function getTopLeft(extent) {\n return [extent[0], extent[3]];\n}\n\n/**\n * Get the top right coordinate of an extent.\n * @param {Extent} extent Extent.\n * @return {import(\"./coordinate.js\").Coordinate} Top right coordinate.\n * @api\n */\nexport function getTopRight(extent) {\n return [extent[2], extent[3]];\n}\n\n/**\n * Get the width of an extent.\n * @param {Extent} extent Extent.\n * @return {number} Width.\n * @api\n */\nexport function getWidth(extent) {\n return extent[2] - extent[0];\n}\n\n/**\n * Determine if one extent intersects another.\n * @param {Extent} extent1 Extent 1.\n * @param {Extent} extent2 Extent.\n * @return {boolean} The two extents intersect.\n * @api\n */\nexport function intersects(extent1, extent2) {\n return (\n extent1[0] <= extent2[2] &&\n extent1[2] >= extent2[0] &&\n extent1[1] <= extent2[3] &&\n extent1[3] >= extent2[1]\n );\n}\n\n/**\n * Determine if an extent is empty.\n * @param {Extent} extent Extent.\n * @return {boolean} Is empty.\n * @api\n */\nexport function isEmpty(extent) {\n return extent[2] < extent[0] || extent[3] < extent[1];\n}\n\n/**\n * @param {Extent} extent Extent.\n * @param {Extent} [dest] Extent.\n * @return {Extent} Extent.\n */\nexport function returnOrUpdate(extent, dest) {\n if (dest) {\n dest[0] = extent[0];\n dest[1] = extent[1];\n dest[2] = extent[2];\n dest[3] = extent[3];\n return dest;\n }\n return extent;\n}\n\n/**\n * @param {Extent} extent Extent.\n * @param {number} value Value.\n */\nexport function scaleFromCenter(extent, value) {\n const deltaX = ((extent[2] - extent[0]) / 2) * (value - 1);\n const deltaY = ((extent[3] - extent[1]) / 2) * (value - 1);\n extent[0] -= deltaX;\n extent[2] += deltaX;\n extent[1] -= deltaY;\n extent[3] += deltaY;\n}\n\n/**\n * Determine if the segment between two coordinates intersects (crosses,\n * touches, or is contained by) the provided extent.\n * @param {Extent} extent The extent.\n * @param {import(\"./coordinate.js\").Coordinate} start Segment start coordinate.\n * @param {import(\"./coordinate.js\").Coordinate} end Segment end coordinate.\n * @return {boolean} The segment intersects the extent.\n */\nexport function intersectsSegment(extent, start, end) {\n let intersects = false;\n const startRel = coordinateRelationship(extent, start);\n const endRel = coordinateRelationship(extent, end);\n if (\n startRel === Relationship.INTERSECTING ||\n endRel === Relationship.INTERSECTING\n ) {\n intersects = true;\n } else {\n const minX = extent[0];\n const minY = extent[1];\n const maxX = extent[2];\n const maxY = extent[3];\n const startX = start[0];\n const startY = start[1];\n const endX = end[0];\n const endY = end[1];\n const slope = (endY - startY) / (endX - startX);\n let x, y;\n if (!!(endRel & Relationship.ABOVE) && !(startRel & Relationship.ABOVE)) {\n // potentially intersects top\n x = endX - (endY - maxY) / slope;\n intersects = x >= minX && x <= maxX;\n }\n if (\n !intersects &&\n !!(endRel & Relationship.RIGHT) &&\n !(startRel & Relationship.RIGHT)\n ) {\n // potentially intersects right\n y = endY - (endX - maxX) * slope;\n intersects = y >= minY && y <= maxY;\n }\n if (\n !intersects &&\n !!(endRel & Relationship.BELOW) &&\n !(startRel & Relationship.BELOW)\n ) {\n // potentially intersects bottom\n x = endX - (endY - minY) / slope;\n intersects = x >= minX && x <= maxX;\n }\n if (\n !intersects &&\n !!(endRel & Relationship.LEFT) &&\n !(startRel & Relationship.LEFT)\n ) {\n // potentially intersects left\n y = endY - (endX - minX) * slope;\n intersects = y >= minY && y <= maxY;\n }\n }\n return intersects;\n}\n\n/**\n * Apply a transform function to the extent.\n * @param {Extent} extent Extent.\n * @param {import(\"./proj.js\").TransformFunction} transformFn Transform function.\n * Called with `[minX, minY, maxX, maxY]` extent coordinates.\n * @param {Extent} [dest] Destination extent.\n * @param {number} [stops] Number of stops per side used for the transform.\n * By default only the corners are used.\n * @return {Extent} Extent.\n * @api\n */\nexport function applyTransform(extent, transformFn, dest, stops) {\n if (isEmpty(extent)) {\n return createOrUpdateEmpty(dest);\n }\n let coordinates = [];\n if (stops !== undefined && stops > 1) {\n const width = extent[2] - extent[0];\n const height = extent[3] - extent[1];\n for (let i = 0; i < stops; ++i) {\n coordinates.push(\n extent[0] + (width * i) / stops,\n extent[1],\n extent[2],\n extent[1] + (height * i) / stops,\n extent[2] - (width * i) / stops,\n extent[3],\n extent[0],\n extent[3] - (height * i) / stops,\n );\n }\n } else {\n coordinates = [\n extent[0],\n extent[1],\n extent[2],\n extent[1],\n extent[2],\n extent[3],\n extent[0],\n extent[3],\n ];\n }\n transformFn(coordinates, coordinates, 2);\n const xs = [];\n const ys = [];\n for (let i = 0, l = coordinates.length; i < l; i += 2) {\n xs.push(coordinates[i]);\n ys.push(coordinates[i + 1]);\n }\n return _boundingExtentXYs(xs, ys, dest);\n}\n\n/**\n * Modifies the provided extent in-place to be within the real world\n * extent.\n *\n * @param {Extent} extent Extent.\n * @param {import(\"./proj/Projection.js\").default} projection Projection\n * @return {Extent} The extent within the real world extent.\n */\nexport function wrapX(extent, projection) {\n const projectionExtent = projection.getExtent();\n const center = getCenter(extent);\n if (\n projection.canWrapX() &&\n (center[0] < projectionExtent[0] || center[0] >= projectionExtent[2])\n ) {\n const worldWidth = getWidth(projectionExtent);\n const worldsAway = Math.floor(\n (center[0] - projectionExtent[0]) / worldWidth,\n );\n const offset = worldsAway * worldWidth;\n extent[0] -= offset;\n extent[2] -= offset;\n }\n return extent;\n}\n\n/**\n * Fits the extent to the real world\n *\n * If the extent does not cross the anti meridian, this will return the extent in an array\n * If the extent crosses the anti meridian, the extent will be sliced, so each part fits within the\n * real world\n *\n *\n * @param {Extent} extent Extent.\n * @param {import(\"./proj/Projection.js\").default} projection Projection\n * @param {boolean} [multiWorld] Return all worlds\n * @return {Array} The extent within the real world extent.\n */\nexport function wrapAndSliceX(extent, projection, multiWorld) {\n if (projection.canWrapX()) {\n const projectionExtent = projection.getExtent();\n\n if (!isFinite(extent[0]) || !isFinite(extent[2])) {\n return [[projectionExtent[0], extent[1], projectionExtent[2], extent[3]]];\n }\n\n wrapX(extent, projection);\n const worldWidth = getWidth(projectionExtent);\n\n if (getWidth(extent) > worldWidth && !multiWorld) {\n // the extent wraps around on itself\n return [[projectionExtent[0], extent[1], projectionExtent[2], extent[3]]];\n }\n if (extent[0] < projectionExtent[0]) {\n // the extent crosses the anti meridian, so it needs to be sliced\n return [\n [extent[0] + worldWidth, extent[1], projectionExtent[2], extent[3]],\n [projectionExtent[0], extent[1], extent[2], extent[3]],\n ];\n }\n if (extent[2] > projectionExtent[2]) {\n // the extent crosses the anti meridian, so it needs to be sliced\n return [\n [extent[0], extent[1], projectionExtent[2], extent[3]],\n [projectionExtent[0], extent[1], extent[2] - worldWidth, extent[3]],\n ];\n }\n }\n\n return [extent];\n}\n\n/**\n * Subtract several rectangles from a base rectangle. Returns a set of disjoint\n * rectangles that together cover the base rectangle minus the union of the\n * subtracted rectangles, by repeatedly applying {@link module:ol/extent.getDifference}.\n * @param {Extent} base Base rectangle.\n * @param {Array} subtract Rectangles to subtract.\n * @return {Array} Remainder rectangles.\n */\nexport function subtractExtents(base, subtract) {\n let remainder = [base];\n for (let i = 0, ii = subtract.length; i < ii && remainder.length > 0; ++i) {\n /** @type {Array} */\n const next = [];\n for (let j = 0, jj = remainder.length; j < jj; ++j) {\n next.push(...getDifference(remainder[j], subtract[i]));\n }\n remainder = next;\n }\n return remainder;\n}\n","/**\n * @module ol/ObjectEventType\n */\n\n/**\n * @enum {string}\n */\nexport default {\n /**\n * Triggered when a property is changed.\n * @event module:ol/Object.ObjectEvent#propertychange\n * @api\n */\n PROPERTYCHANGE: 'propertychange',\n};\n\n/**\n * @typedef {'propertychange'} Types\n */\n","/**\n * @module ol/events\n */\nimport {clear} from './obj.js';\n\n/**\n * Key to use with {@link module:ol/Observable.unByKey}.\n * @typedef {Object} EventsKey\n * @property {ListenerFunction} listener Listener.\n * @property {import(\"./events/Target.js\").EventTargetLike} target Target.\n * @property {string} type Type.\n * @api\n */\n\n/**\n * Listener function. This function is called with an event object as argument.\n * When the function returns `false`, event propagation will stop.\n *\n * @typedef {function((Event|import(\"./events/Event.js\").default)): (void|boolean)} ListenerFunction\n * @api\n */\n\n/**\n * @typedef {Object} ListenerObject\n * @property {ListenerFunction} handleEvent HandleEvent listener function.\n */\n\n/**\n * @typedef {ListenerFunction|ListenerObject} Listener\n */\n\n/**\n * Registers an event listener on an event target. Inspired by\n * https://google.github.io/closure-library/api/source/closure/goog/events/events.js.src.html\n *\n * This function efficiently binds a `listener` to a `this` object, and returns\n * a key for use with {@link module:ol/events.unlistenByKey}.\n *\n * @param {import(\"./events/Target.js\").EventTargetLike} target Event target.\n * @param {string} type Event type.\n * @param {ListenerFunction} listener Listener.\n * @param {Object} [thisArg] Object referenced by the `this` keyword in the\n * listener. Default is the `target`.\n * @param {boolean} [once] If true, add the listener as one-off listener.\n * @return {EventsKey} Unique key for the listener.\n */\nexport function listen(target, type, listener, thisArg, once) {\n if (once) {\n const originalListener = listener;\n /**\n * @param {Event|import('./events/Event.js').default} event The event\n * @return {void|boolean} When the function returns `false`, event propagation will stop.\n * @this {typeof target}\n */\n listener = function (event) {\n target.removeEventListener(type, listener);\n return originalListener.call(thisArg ?? this, event);\n };\n } else if (thisArg && thisArg !== target) {\n listener = listener.bind(thisArg);\n }\n const eventsKey = {\n target: target,\n type: type,\n listener: listener,\n };\n target.addEventListener(type, listener);\n return eventsKey;\n}\n\n/**\n * Registers a one-off event listener on an event target. Inspired by\n * https://google.github.io/closure-library/api/source/closure/goog/events/events.js.src.html\n *\n * This function efficiently binds a `listener` as self-unregistering listener\n * to a `this` object, and returns a key for use with\n * {@link module:ol/events.unlistenByKey} in case the listener needs to be\n * unregistered before it is called.\n *\n * When {@link module:ol/events.listen} is called with the same arguments after this\n * function, the self-unregistering listener will be turned into a permanent\n * listener.\n *\n * @param {import(\"./events/Target.js\").EventTargetLike} target Event target.\n * @param {string} type Event type.\n * @param {ListenerFunction} listener Listener.\n * @param {Object} [thisArg] Object referenced by the `this` keyword in the\n * listener. Default is the `target`.\n * @return {EventsKey} Key for unlistenByKey.\n */\nexport function listenOnce(target, type, listener, thisArg) {\n return listen(target, type, listener, thisArg, true);\n}\n\n/**\n * Unregisters event listeners on an event target. Inspired by\n * https://google.github.io/closure-library/api/source/closure/goog/events/events.js.src.html\n *\n * The argument passed to this function is the key returned from\n * {@link module:ol/events.listen} or {@link module:ol/events.listenOnce}.\n *\n * @param {EventsKey} key The key.\n */\nexport function unlistenByKey(key) {\n if (key && key.target) {\n key.target.removeEventListener(key.type, key.listener);\n clear(key);\n }\n}\n","/**\n * @module ol/events/EventType\n */\n\n/**\n * @enum {string}\n * @const\n */\nexport default {\n /**\n * Generic change event. Triggered when the revision counter is increased.\n * @event module:ol/events/Event~BaseEvent#change\n * @api\n */\n CHANGE: 'change',\n\n /**\n * Generic error event. Triggered when an error occurs.\n * @event module:ol/events/Event~BaseEvent#error\n * @api\n */\n ERROR: 'error',\n\n BLUR: 'blur',\n CLEAR: 'clear',\n CONTEXTMENU: 'contextmenu',\n CLICK: 'click',\n DBLCLICK: 'dblclick',\n DRAGENTER: 'dragenter',\n DRAGOVER: 'dragover',\n DROP: 'drop',\n FOCUS: 'focus',\n KEYDOWN: 'keydown',\n KEYPRESS: 'keypress',\n KEYUP: 'keyup',\n LOAD: 'load',\n RESIZE: 'resize',\n TOUCHMOVE: 'touchmove',\n WHEEL: 'wheel',\n};\n","/**\n * @module ol/Observable\n */\nimport {listen, listenOnce, unlistenByKey} from './events.js';\nimport EventType from './events/EventType.js';\nimport EventTarget from './events/Target.js';\n\n/***\n * @template {string} Type\n * @template {Event|import(\"./events/Event.js\").default} EventClass\n * @template Return\n * @typedef {(type: Type, listener: (event: EventClass) => ?) => Return} OnSignature\n */\n\n/***\n * @template {string} Type\n * @template Return\n * @typedef {(type: Type[], listener: (event: Event|import(\"./events/Event.js\").default) => ?) => Return extends void ? void : Return[]} CombinedOnSignature\n */\n\n/**\n * @typedef {'change'|'error'} EventTypes\n */\n\n/***\n * @template Return\n * @typedef {OnSignature & CombinedOnSignature} ObservableOnSignature\n */\n\n/***\n * @typedef {Object & {ol_key?: import(\"./events.js\").EventsKey|Array}} ListenerWithKey\n */\n\n/**\n * @classdesc\n * Abstract base class; normally only used for creating subclasses and not\n * instantiated in apps.\n * An event target providing convenient methods for listener registration\n * and unregistration. A generic `change` event is always available through\n * {@link module:ol/Observable~Observable#changed}.\n *\n * @fires import(\"./events/Event.js\").default\n * @api\n */\nclass Observable extends EventTarget {\n constructor() {\n super();\n\n this.on =\n /** @type {ObservableOnSignature} */ (\n this.onInternal\n );\n\n this.once =\n /** @type {ObservableOnSignature} */ (\n this.onceInternal\n );\n\n this.un = /** @type {ObservableOnSignature} */ (this.unInternal);\n\n /**\n * @private\n * @type {number}\n */\n this.revision_ = 0;\n }\n\n /**\n * Increases the revision counter and dispatches a 'change' event.\n * @api\n */\n changed() {\n ++this.revision_;\n this.dispatchEvent(EventType.CHANGE);\n }\n\n /**\n * Get the version number for this object. Each time the object is modified,\n * its version number will be incremented.\n * @return {number} Revision.\n * @api\n */\n getRevision() {\n return this.revision_;\n }\n\n /**\n * @param {string|Array} type Type.\n * @param {function((Event|import(\"./events/Event.js\").default)): ?} listener Listener.\n * @return {import(\"./events.js\").EventsKey|Array} Event key.\n * @protected\n */\n onInternal(type, listener) {\n if (Array.isArray(type)) {\n const len = type.length;\n const keys = new Array(len);\n for (let i = 0; i < len; ++i) {\n keys[i] = listen(this, type[i], listener);\n }\n return keys;\n }\n return listen(this, /** @type {string} */ (type), listener);\n }\n\n /**\n * @param {string|Array} type Type.\n * @param {function((Event|import(\"./events/Event.js\").default)): ?} listener Listener.\n * @return {import(\"./events.js\").EventsKey|Array} Event key.\n * @protected\n */\n onceInternal(type, listener) {\n let key;\n if (Array.isArray(type)) {\n const len = type.length;\n key = new Array(len);\n for (let i = 0; i < len; ++i) {\n key[i] = listenOnce(this, type[i], listener);\n }\n } else {\n key = listenOnce(this, /** @type {string} */ (type), listener);\n }\n /** @type {ListenerWithKey} */ (listener).ol_key = key;\n return key;\n }\n\n /**\n * Unlisten for a certain type of event.\n * @param {string|Array} type Type.\n * @param {function((Event|import(\"./events/Event.js\").default)): ?} listener Listener.\n * @protected\n */\n unInternal(type, listener) {\n const key = /** @type {ListenerWithKey} */ (listener).ol_key;\n if (key) {\n unByKey(key);\n } else if (Array.isArray(type)) {\n for (let i = 0, ii = type.length; i < ii; ++i) {\n this.removeEventListener(type[i], listener);\n }\n } else {\n this.removeEventListener(type, listener);\n }\n }\n}\n\n/**\n * Listen for a certain type of event.\n * @function\n * @param {string|Array} type The event type or array of event types.\n * @param {function((Event|import(\"./events/Event.js\").default)): ?} listener The listener function.\n * @return {import(\"./events.js\").EventsKey|Array} Unique key for the listener. If\n * called with an array of event types as the first argument, the return\n * will be an array of keys.\n * @api\n */\nObservable.prototype.on;\n\n/**\n * Listen once for a certain type of event.\n * @function\n * @param {string|Array} type The event type or array of event types.\n * @param {function((Event|import(\"./events/Event.js\").default)): ?} listener The listener function.\n * @return {import(\"./events.js\").EventsKey|Array} Unique key for the listener. If\n * called with an array of event types as the first argument, the return\n * will be an array of keys.\n * @api\n */\nObservable.prototype.once;\n\n/**\n * Unlisten for a certain type of event.\n * @function\n * @param {string|Array} type The event type or array of event types.\n * @param {function((Event|import(\"./events/Event.js\").default)): ?} listener The listener function.\n * @api\n */\nObservable.prototype.un;\n\n/**\n * Removes an event listener using the key returned by `on()` or `once()`.\n * @param {import(\"./events.js\").EventsKey|Array} key The key returned by `on()`\n * or `once()` (or an array of keys).\n * @api\n */\nexport function unByKey(key) {\n if (Array.isArray(key)) {\n for (let i = 0, ii = key.length; i < ii; ++i) {\n unlistenByKey(key[i]);\n }\n } else {\n unlistenByKey(/** @type {import(\"./events.js\").EventsKey} */ (key));\n }\n}\n\nexport default Observable;\n","/**\n * @module ol/Object\n */\nimport ObjectEventType from './ObjectEventType.js';\nimport Observable from './Observable.js';\nimport Event from './events/Event.js';\nimport {isEmpty} from './obj.js';\nimport {getUid} from './util.js';\n\n/**\n * @classdesc\n * Events emitted by {@link module:ol/Object~BaseObject} instances are instances of this type.\n */\nexport class ObjectEvent extends Event {\n /**\n * @param {string} type The event type.\n * @param {string} key The property name.\n * @param {*} oldValue The old value for `key`.\n */\n constructor(type, key, oldValue) {\n super(type);\n\n /**\n * The name of the property whose value is changing.\n * @type {string}\n * @api\n */\n this.key = key;\n\n /**\n * The old value. To get the new value use `e.target.get(e.key)` where\n * `e` is the event object.\n * @type {*}\n * @api\n */\n this.oldValue = oldValue;\n }\n}\n\n/***\n * @template Return\n * @typedef {import(\"./Observable.js\").OnSignature &\n * import(\"./Observable.js\").OnSignature &\n * import(\"./Observable.js\").CombinedOnSignature} ObjectOnSignature\n */\n\n/**\n * @classdesc\n * Abstract base class; normally only used for creating subclasses and not\n * instantiated in apps.\n * Most non-trivial classes inherit from this.\n *\n * This extends {@link module:ol/Observable~Observable} with observable\n * properties, where each property is observable as well as the object as a\n * whole.\n *\n * Classes that inherit from this have pre-defined properties, to which you can\n * add your owns. The pre-defined properties are listed in this documentation as\n * 'Observable Properties', and have their own accessors; for example,\n * {@link module:ol/Map~Map} has a `target` property, accessed with\n * `getTarget()` and changed with `setTarget()`. Not all properties are however\n * settable. There are also general-purpose accessors `get()` and `set()`. For\n * example, `get('target')` is equivalent to `getTarget()`.\n *\n * The `set` accessors trigger a change event, and you can monitor this by\n * registering a listener. For example, {@link module:ol/View~View} has a\n * `center` property, so `view.on('change:center', function(evt) {...});` would\n * call the function whenever the value of the center property changes. Within\n * the function, `evt.target` would be the view, so `evt.target.getCenter()`\n * would return the new center.\n *\n * You can add your own observable properties with\n * `object.set('prop', 'value')`, and retrieve that with `object.get('prop')`.\n * You can listen for changes on that property value with\n * `object.on('change:prop', listener)`. You can get a list of all\n * properties with {@link module:ol/Object~BaseObject#getProperties}.\n *\n * Note that the observable properties are separate from standard JS properties.\n * You can, for example, give your map object a title with\n * `map.title='New title'` and with `map.set('title', 'Another title')`. The\n * first will be a `hasOwnProperty`; the second will appear in\n * `getProperties()`. Only the second is observable.\n *\n * Properties can be deleted by using the unset method. E.g.\n * object.unset('foo').\n *\n * @fires ObjectEvent\n * @template {Object} [Properties=Object]\n * @api\n */\nclass BaseObject extends Observable {\n /**\n * @param {NoInfer} [values] An object with key-value pairs.\n */\n constructor(values) {\n super();\n\n /***\n * @type {ObjectOnSignature}\n */\n this.on;\n\n /***\n * @type {ObjectOnSignature}\n */\n this.once;\n\n /***\n * @type {ObjectOnSignature}\n */\n this.un;\n\n // Call {@link module:ol/util.getUid} to ensure that the order of objects' ids is\n // the same as the order in which they were created. This also helps to\n // ensure that object properties are always added in the same order, which\n // helps many JavaScript engines generate faster code.\n getUid(this);\n\n /**\n * @private\n * @type {Partial>|null}\n */\n this.values_ = null;\n\n if (values !== undefined) {\n this.setProperties(values);\n }\n }\n\n /**\n * Gets a value.\n * @param {string} key Key name.\n * @return {*} Value.\n * @api\n */\n get(key) {\n let value;\n if (this.values_ && this.values_.hasOwnProperty(key)) {\n value = this.values_[key];\n }\n return value;\n }\n\n /**\n * Get a list of object property names.\n * @return {Array} List of property names.\n * @api\n */\n getKeys() {\n return (this.values_ && Object.keys(this.values_)) || [];\n }\n\n /**\n * Get an object of all property names and values.\n * @return {NoInfer} Object.\n * @api\n */\n getProperties() {\n return /** @type {NoInfer} */ (\n (this.values_ && Object.assign({}, this.values_)) || {}\n );\n }\n\n /**\n * Get an object of all property names and values.\n * @return {Partial>?} Object.\n */\n getPropertiesInternal() {\n return this.values_;\n }\n\n /**\n * @return {boolean} The object has properties.\n */\n hasProperties() {\n return !!this.values_;\n }\n\n /**\n * @param {string} key Key name.\n * @param {*} oldValue Old value.\n */\n notify(key, oldValue) {\n let eventType;\n eventType = `change:${key}`;\n if (this.hasListener(eventType)) {\n this.dispatchEvent(new ObjectEvent(eventType, key, oldValue));\n }\n eventType = ObjectEventType.PROPERTYCHANGE;\n if (this.hasListener(eventType)) {\n this.dispatchEvent(new ObjectEvent(eventType, key, oldValue));\n }\n }\n\n /**\n * @param {string} key Key name.\n * @param {import(\"./events.js\").Listener} listener Listener.\n */\n addChangeListener(key, listener) {\n this.addEventListener(`change:${key}`, listener);\n }\n\n /**\n * @param {string} key Key name.\n * @param {import(\"./events.js\").Listener} listener Listener.\n */\n removeChangeListener(key, listener) {\n this.removeEventListener(`change:${key}`, listener);\n }\n\n /**\n * Sets a value.\n * @param {string} key Key name.\n * @param {*} value Value.\n * @param {boolean} [silent] Update without triggering an event.\n * @api\n */\n set(key, value, silent) {\n const values = /** @type {Object} */ (\n this.values_ ||\n (this.values_ = /** @type {Partial>} */ ({}))\n );\n if (silent) {\n values[key] = value;\n } else {\n const oldValue = values[key];\n values[key] = value;\n if (oldValue !== value) {\n this.notify(key, oldValue);\n }\n }\n }\n\n /**\n * Sets a collection of key-value pairs. Note that this changes any existing\n * properties and adds new ones (it does not remove any existing properties).\n * @param {Partial>} values Values.\n * @param {boolean} [silent] Update without triggering an event.\n * @api\n */\n setProperties(values, silent) {\n for (const key in values) {\n this.set(key, values[key], silent);\n }\n }\n\n /**\n * Apply any properties from another object without triggering events.\n * @param {BaseObject} source The source object.\n * @protected\n */\n applyProperties(source) {\n if (!source.values_) {\n return;\n }\n Object.assign(this.values_ || (this.values_ = {}), source.values_);\n }\n\n /**\n * Unsets a property.\n * @param {string} key Key name.\n * @param {boolean} [silent] Unset without triggering an event.\n * @api\n */\n unset(key, silent) {\n if (this.values_ && key in this.values_) {\n const oldValue = this.values_[key];\n delete this.values_[key];\n if (isEmpty(this.values_)) {\n this.values_ = null;\n }\n if (!silent) {\n this.notify(key, oldValue);\n }\n }\n }\n}\n\nexport default BaseObject;\n","/**\n * @module ol/console\n */\n\n/**\n * @typedef {'info'|'warn'|'error'|'none'} Level\n */\n\n/**\n * @type {Object}\n */\nconst levels = {\n info: 1,\n warn: 2,\n error: 3,\n none: 4,\n};\n\n/**\n * @type {number}\n */\nlet level = levels.info;\n\n/**\n * Set the logging level. By default, the level is set to 'info' and all\n * messages will be logged. Set to 'warn' to only display warnings and errors.\n * Set to 'error' to only display errors. Set to 'none' to silence all messages.\n *\n * @param {Level} l The new level.\n */\nexport function setLevel(l) {\n level = levels[l];\n}\n\n/**\n * @param {...any} args Arguments to log\n */\nexport function log(...args) {\n if (level > levels.info) {\n return;\n }\n console.log(...args); // eslint-disable-line no-console\n}\n\n/**\n * @param {...any} args Arguments to log\n */\nexport function warn(...args) {\n if (level > levels.warn) {\n return;\n }\n console.warn(...args); // eslint-disable-line no-console\n}\n\n/**\n * @param {...any} args Arguments to log\n */\nexport function error(...args) {\n if (level > levels.error) {\n return;\n }\n console.error(...args); // eslint-disable-line no-console\n}\n","/**\n * @module ol/math\n */\n\n/**\n * Takes a number and clamps it to within the provided bounds.\n * @param {number} value The input number.\n * @param {number} min The minimum value to return.\n * @param {number} max The maximum value to return.\n * @return {number} The input number if it is within bounds, or the nearest\n * number within the bounds.\n */\nexport function clamp(value, min, max) {\n return Math.min(Math.max(value, min), max);\n}\n\n/**\n * Returns the square of the closest distance between the point (x, y) and the\n * line segment (x1, y1) to (x2, y2).\n * @param {number} x X.\n * @param {number} y Y.\n * @param {number} x1 X1.\n * @param {number} y1 Y1.\n * @param {number} x2 X2.\n * @param {number} y2 Y2.\n * @return {number} Squared distance.\n */\nexport function squaredSegmentDistance(x, y, x1, y1, x2, y2) {\n const dx = x2 - x1;\n const dy = y2 - y1;\n if (dx !== 0 || dy !== 0) {\n const t = ((x - x1) * dx + (y - y1) * dy) / (dx * dx + dy * dy);\n if (t > 1) {\n x1 = x2;\n y1 = y2;\n } else if (t > 0) {\n x1 += dx * t;\n y1 += dy * t;\n }\n }\n return squaredDistance(x, y, x1, y1);\n}\n\n/**\n * Returns the square of the distance between the points (x1, y1) and (x2, y2).\n * @param {number} x1 X1.\n * @param {number} y1 Y1.\n * @param {number} x2 X2.\n * @param {number} y2 Y2.\n * @return {number} Squared distance.\n */\nexport function squaredDistance(x1, y1, x2, y2) {\n const dx = x2 - x1;\n const dy = y2 - y1;\n return dx * dx + dy * dy;\n}\n\n/**\n * Solves system of linear equations using Gaussian elimination method.\n *\n * @param {Array>} mat Augmented matrix (n x n + 1 column)\n * in row-major order.\n * @return {Array|null} The resulting vector.\n */\nexport function solveLinearSystem(mat) {\n const n = mat.length;\n\n for (let i = 0; i < n; i++) {\n // Find max in the i-th column (ignoring i - 1 first rows)\n let maxRow = i;\n let maxEl = Math.abs(mat[i][i]);\n for (let r = i + 1; r < n; r++) {\n const absValue = Math.abs(mat[r][i]);\n if (absValue > maxEl) {\n maxEl = absValue;\n maxRow = r;\n }\n }\n\n if (maxEl === 0) {\n return null; // matrix is singular\n }\n\n // Swap max row with i-th (current) row\n const tmp = mat[maxRow];\n mat[maxRow] = mat[i];\n mat[i] = tmp;\n\n // Subtract the i-th row to make all the remaining rows 0 in the i-th column\n for (let j = i + 1; j < n; j++) {\n const coef = -mat[j][i] / mat[i][i];\n for (let k = i; k < n + 1; k++) {\n if (i == k) {\n mat[j][k] = 0;\n } else {\n mat[j][k] += coef * mat[i][k];\n }\n }\n }\n }\n\n // Solve Ax=b for upper triangular matrix A (mat)\n const x = new Array(n);\n for (let l = n - 1; l >= 0; l--) {\n x[l] = mat[l][n] / mat[l][l];\n for (let m = l - 1; m >= 0; m--) {\n mat[m][n] -= mat[m][l] * x[l];\n }\n }\n return x;\n}\n\n/**\n * Converts radians to to degrees.\n *\n * @param {number} angleInRadians Angle in radians.\n * @return {number} Angle in degrees.\n */\nexport function toDegrees(angleInRadians) {\n return (angleInRadians * 180) / Math.PI;\n}\n\n/**\n * Converts degrees to radians.\n *\n * @param {number} angleInDegrees Angle in degrees.\n * @return {number} Angle in radians.\n */\nexport function toRadians(angleInDegrees) {\n return (angleInDegrees * Math.PI) / 180;\n}\n\n/**\n * Returns the modulo of a / b, depending on the sign of b.\n *\n * @param {number} a Dividend.\n * @param {number} b Divisor.\n * @return {number} Modulo.\n */\nexport function modulo(a, b) {\n const r = a % b;\n return r * b < 0 ? r + b : r;\n}\n\n/**\n * Calculates the linearly interpolated value of x between a and b.\n *\n * @param {number} a Number\n * @param {number} b Number\n * @param {number} x Value to be interpolated.\n * @return {number} Interpolated value.\n */\nexport function lerp(a, b, x) {\n return a + x * (b - a);\n}\n\n/**\n * Returns a number with a limited number of decimal digits.\n * @param {number} n The input number.\n * @param {number} decimals The maximum number of decimal digits.\n * @return {number} The input number with a limited number of decimal digits.\n */\nexport function toFixed(n, decimals) {\n const factor = Math.pow(10, decimals);\n return Math.round(n * factor) / factor;\n}\n\n/**\n * Rounds a number to the nearest integer value considering only the given number\n * of decimal digits (with rounding on the final digit).\n * @param {number} n The input number.\n * @param {number} decimals The maximum number of decimal digits.\n * @return {number} The nearest integer.\n */\nexport function round(n, decimals) {\n return Math.round(toFixed(n, decimals));\n}\n\n/**\n * Rounds a number to the next smaller integer considering only the given number\n * of decimal digits (with rounding on the final digit).\n * @param {number} n The input number.\n * @param {number} decimals The maximum number of decimal digits.\n * @return {number} The next smaller integer.\n */\nexport function floor(n, decimals) {\n return Math.floor(toFixed(n, decimals));\n}\n\n/**\n * Rounds a number to the next bigger integer considering only the given number\n * of decimal digits (with rounding on the final digit).\n * @param {number} n The input number.\n * @param {number} decimals The maximum number of decimal digits.\n * @return {number} The next bigger integer.\n */\nexport function ceil(n, decimals) {\n return Math.ceil(toFixed(n, decimals));\n}\n\n/**\n * Wraps a number between some minimum and maximum values.\n * @param {number} n The number to wrap.\n * @param {number} min The minimum of the range (inclusive).\n * @param {number} max The maximum of the range (exclusive).\n * @return {number} The wrapped number.\n */\nexport function wrap(n, min, max) {\n if (n >= min && n < max) {\n return n;\n }\n const range = max - min;\n return ((((n - min) % range) + range) % range) + min;\n}\n","/**\n * @module ol/coordinate\n */\nimport {getWidth} from './extent.js';\nimport {clamp, modulo, toFixed} from './math.js';\nimport {padNumber} from './string.js';\n\n/**\n * An array of numbers representing an `xy`, `xyz` or `xyzm` coordinate.\n * Example: `[16, 48]`.\n * @typedef {Array} Coordinate\n * @api\n */\n\n/**\n * A function that takes a {@link module:ol/coordinate~Coordinate} and\n * transforms it into a `{string}`.\n *\n * @typedef {function((Coordinate|undefined)): string} CoordinateFormat\n * @api\n */\n\n/**\n * Add `delta` to `coordinate`. `coordinate` is modified in place and returned\n * by the function.\n *\n * Example:\n *\n * import {add} from 'ol/coordinate.js';\n *\n * const coord = [7.85, 47.983333];\n * add(coord, [-2, 4]);\n * // coord is now [5.85, 51.983333]\n *\n * @param {Coordinate} coordinate Coordinate.\n * @param {Coordinate} delta Delta.\n * @return {Coordinate} The input coordinate adjusted by\n * the given delta.\n * @api\n */\nexport function add(coordinate, delta) {\n coordinate[0] += +delta[0];\n coordinate[1] += +delta[1];\n return coordinate;\n}\n\n/**\n * Calculates the point closest to the passed coordinate on the passed circle.\n *\n * @param {Coordinate} coordinate The coordinate.\n * @param {import(\"./geom/Circle.js\").default} circle The circle.\n * @return {Coordinate} Closest point on the circumference.\n */\nexport function closestOnCircle(coordinate, circle) {\n const r = circle.getRadius();\n const center = circle.getCenter();\n const x0 = center[0];\n const y0 = center[1];\n const x1 = coordinate[0];\n const y1 = coordinate[1];\n\n let dx = x1 - x0;\n const dy = y1 - y0;\n if (dx === 0 && dy === 0) {\n dx = 1;\n }\n const d = Math.sqrt(dx * dx + dy * dy);\n\n const x = x0 + (r * dx) / d;\n const y = y0 + (r * dy) / d;\n\n return [x, y];\n}\n\n/**\n * Calculates the point closest to the passed coordinate on the passed segment.\n * This is the foot of the perpendicular of the coordinate to the segment when\n * the foot is on the segment, or the closest segment coordinate when the foot\n * is outside the segment.\n *\n * @param {Coordinate} coordinate The coordinate.\n * @param {Array} segment The two coordinates\n * of the segment.\n * @return {Coordinate} The foot of the perpendicular of\n * the coordinate to the segment.\n */\nexport function closestOnSegment(coordinate, segment) {\n const x0 = coordinate[0];\n const y0 = coordinate[1];\n const start = segment[0];\n const end = segment[1];\n const x1 = start[0];\n const y1 = start[1];\n const x2 = end[0];\n const y2 = end[1];\n const dx = x2 - x1;\n const dy = y2 - y1;\n const along =\n dx === 0 && dy === 0\n ? 0\n : (dx * (x0 - x1) + dy * (y0 - y1)) / (dx * dx + dy * dy || 0);\n let x, y;\n if (along <= 0) {\n x = x1;\n y = y1;\n } else if (along >= 1) {\n x = x2;\n y = y2;\n } else {\n x = x1 + along * dx;\n y = y1 + along * dy;\n }\n return [x, y];\n}\n\n/**\n * Returns a {@link module:ol/coordinate~CoordinateFormat} function that can be\n * used to format\n * a {Coordinate} to a string.\n *\n * Example without specifying the fractional digits:\n *\n * import {createStringXY} from 'ol/coordinate.js';\n *\n * const coord = [7.85, 47.983333];\n * const stringifyFunc = createStringXY();\n * const out = stringifyFunc(coord);\n * // out is now '8, 48'\n *\n * Example with explicitly specifying 2 fractional digits:\n *\n * import {createStringXY} from 'ol/coordinate.js';\n *\n * const coord = [7.85, 47.983333];\n * const stringifyFunc = createStringXY(2);\n * const out = stringifyFunc(coord);\n * // out is now '7.85, 47.98'\n *\n * @param {number} [fractionDigits] The number of digits to include\n * after the decimal point. Default is `0`.\n * @return {CoordinateFormat} Coordinate format.\n * @api\n */\nexport function createStringXY(fractionDigits) {\n return (\n /**\n * @param {Coordinate|undefined} coordinate Coordinate.\n * @return {string} String XY.\n */\n function (coordinate) {\n return toStringXY(/** @type {Coordinate} */ (coordinate), fractionDigits);\n }\n );\n}\n\n/**\n * @param {string} hemispheres Hemispheres.\n * @param {number} degrees Degrees.\n * @param {number} [fractionDigits] The number of digits to include\n * after the decimal point. Default is `0`.\n * @return {string} String.\n */\nexport function degreesToStringHDMS(hemispheres, degrees, fractionDigits) {\n const normalizedDegrees = modulo(degrees + 180, 360) - 180;\n const x = Math.abs(3600 * normalizedDegrees);\n const decimals = fractionDigits || 0;\n\n let deg = Math.floor(x / 3600);\n let min = Math.floor((x - deg * 3600) / 60);\n let sec = toFixed(x - deg * 3600 - min * 60, decimals);\n\n if (sec >= 60) {\n sec = 0;\n min += 1;\n }\n\n if (min >= 60) {\n min = 0;\n deg += 1;\n }\n\n let hdms = deg + '\\u00b0';\n if (min !== 0 || sec !== 0) {\n hdms += ' ' + padNumber(min, 2) + '\\u2032';\n }\n if (sec !== 0) {\n hdms += ' ' + padNumber(sec, 2, decimals) + '\\u2033';\n }\n if (normalizedDegrees !== 0) {\n hdms += ' ' + hemispheres.charAt(normalizedDegrees < 0 ? 1 : 0);\n }\n\n return hdms;\n}\n\n/**\n * Transforms the given {@link module:ol/coordinate~Coordinate} to a string\n * using the given string template. The strings `{x}` and `{y}` in the template\n * will be replaced with the first and second coordinate values respectively.\n *\n * Example without specifying the fractional digits:\n *\n * import {format} from 'ol/coordinate.js';\n *\n * const coord = [7.85, 47.983333];\n * const template = 'Coordinate is ({x}|{y}).';\n * const out = format(coord, template);\n * // out is now 'Coordinate is (8|48).'\n *\n * Example explicitly specifying the fractional digits:\n *\n * import {format} from 'ol/coordinate.js';\n *\n * const coord = [7.85, 47.983333];\n * const template = 'Coordinate is ({x}|{y}).';\n * const out = format(coord, template, 2);\n * // out is now 'Coordinate is (7.85|47.98).'\n *\n * @param {Coordinate} coordinate Coordinate.\n * @param {string} template A template string with `{x}` and `{y}` placeholders\n * that will be replaced by first and second coordinate values.\n * @param {number} [fractionDigits] The number of digits to include\n * after the decimal point. Default is `0`.\n * @return {string} Formatted coordinate.\n * @api\n */\nexport function format(coordinate, template, fractionDigits) {\n if (coordinate) {\n return template\n .replace('{x}', coordinate[0].toFixed(fractionDigits))\n .replace('{y}', coordinate[1].toFixed(fractionDigits));\n }\n return '';\n}\n\n/**\n * @param {Coordinate} coordinate1 First coordinate.\n * @param {Coordinate} coordinate2 Second coordinate.\n * @return {boolean} The two coordinates are equal.\n */\nexport function equals(coordinate1, coordinate2) {\n let equals = true;\n for (let i = coordinate1.length - 1; i >= 0; --i) {\n if (coordinate1[i] != coordinate2[i]) {\n equals = false;\n break;\n }\n }\n return equals;\n}\n\n/**\n * Rotate `coordinate` by `angle`. `coordinate` is modified in place and\n * returned by the function.\n *\n * Example:\n *\n * import {rotate} from 'ol/coordinate.js';\n *\n * const coord = [7.85, 47.983333];\n * const rotateRadians = Math.PI / 2; // 90 degrees\n * rotate(coord, rotateRadians);\n * // coord is now [-47.983333, 7.85]\n *\n * @param {Coordinate} coordinate Coordinate.\n * @param {number} angle Angle in radian.\n * @return {Coordinate} Coordinate.\n * @api\n */\nexport function rotate(coordinate, angle) {\n const cosAngle = Math.cos(angle);\n const sinAngle = Math.sin(angle);\n const x = coordinate[0] * cosAngle - coordinate[1] * sinAngle;\n const y = coordinate[1] * cosAngle + coordinate[0] * sinAngle;\n coordinate[0] = x;\n coordinate[1] = y;\n return coordinate;\n}\n\n/**\n * Scale `coordinate` by `scale`. `coordinate` is modified in place and returned\n * by the function.\n *\n * Example:\n *\n * import {scale as scaleCoordinate} from 'ol/coordinate.js';\n *\n * const coord = [7.85, 47.983333];\n * const scale = 1.2;\n * scaleCoordinate(coord, scale);\n * // coord is now [9.42, 57.5799996]\n *\n * @param {Coordinate} coordinate Coordinate.\n * @param {number} scale Scale factor.\n * @return {Coordinate} Coordinate.\n */\nexport function scale(coordinate, scale) {\n coordinate[0] *= scale;\n coordinate[1] *= scale;\n return coordinate;\n}\n\n/**\n * @param {Coordinate} coord1 First coordinate.\n * @param {Coordinate} coord2 Second coordinate.\n * @return {number} Squared distance between coord1 and coord2.\n */\nexport function squaredDistance(coord1, coord2) {\n const dx = coord1[0] - coord2[0];\n const dy = coord1[1] - coord2[1];\n return dx * dx + dy * dy;\n}\n\n/**\n * @param {Coordinate} coord1 First coordinate.\n * @param {Coordinate} coord2 Second coordinate.\n * @return {number} Distance between coord1 and coord2.\n */\nexport function distance(coord1, coord2) {\n return Math.sqrt(squaredDistance(coord1, coord2));\n}\n\n/**\n * Calculate the squared distance from a coordinate to a line segment.\n *\n * @param {Coordinate} coordinate Coordinate of the point.\n * @param {Array} segment Line segment (2\n * coordinates).\n * @return {number} Squared distance from the point to the line segment.\n */\nexport function squaredDistanceToSegment(coordinate, segment) {\n return squaredDistance(coordinate, closestOnSegment(coordinate, segment));\n}\n\n/**\n * Format a geographic coordinate with the hemisphere, degrees, minutes, and\n * seconds.\n *\n * Example without specifying fractional digits:\n *\n * import {toStringHDMS} from 'ol/coordinate.js';\n *\n * const coord = [7.85, 47.983333];\n * const out = toStringHDMS(coord);\n * // out is now '47° 58′ 60″ N 7° 50′ 60″ E'\n *\n * Example explicitly specifying 1 fractional digit:\n *\n * import {toStringHDMS} from 'ol/coordinate.js';\n *\n * const coord = [7.85, 47.983333];\n * const out = toStringHDMS(coord, 1);\n * // out is now '47° 58′ 60.0″ N 7° 50′ 60.0″ E'\n *\n * @param {Coordinate} coordinate Coordinate.\n * @param {number} [fractionDigits] The number of digits to include\n * after the decimal point. Default is `0`.\n * @return {string} Hemisphere, degrees, minutes and seconds.\n * @api\n */\nexport function toStringHDMS(coordinate, fractionDigits) {\n if (coordinate) {\n return (\n degreesToStringHDMS('NS', coordinate[1], fractionDigits) +\n ' ' +\n degreesToStringHDMS('EW', coordinate[0], fractionDigits)\n );\n }\n return '';\n}\n\n/**\n * Format a coordinate as a comma delimited string.\n *\n * Example without specifying fractional digits:\n *\n * import {toStringXY} from 'ol/coordinate.js';\n *\n * const coord = [7.85, 47.983333];\n * const out = toStringXY(coord);\n * // out is now '8, 48'\n *\n * Example explicitly specifying 1 fractional digit:\n *\n * import {toStringXY} from 'ol/coordinate.js';\n *\n * const coord = [7.85, 47.983333];\n * const out = toStringXY(coord, 1);\n * // out is now '7.8, 48.0'\n *\n * @param {Coordinate} coordinate Coordinate.\n * @param {number} [fractionDigits] The number of digits to include\n * after the decimal point. Default is `0`.\n * @return {string} XY.\n * @api\n */\nexport function toStringXY(coordinate, fractionDigits) {\n return format(coordinate, '{x}, {y}', fractionDigits);\n}\n\n/**\n * Modifies the provided coordinate in-place to be within the real world\n * extent. The lower projection extent boundary is inclusive, the upper one\n * exclusive.\n *\n * @param {Coordinate} coordinate Coordinate.\n * @param {import(\"./proj/Projection.js\").default} projection Projection.\n * @return {Coordinate} The coordinate within the real world extent.\n */\nexport function wrapX(coordinate, projection) {\n if (projection.canWrapX()) {\n const worldWidth = getWidth(projection.getExtent());\n const worldsAway = getWorldsAway(coordinate, projection, worldWidth);\n if (worldsAway) {\n coordinate[0] -= worldsAway * worldWidth;\n }\n }\n return coordinate;\n}\n/**\n * Modifies the provided coordinate in-place to be the world copy nearest to\n * the given reference X position. Useful for getting the screen pixel of a\n * coordinate when the map has been panned past the antimeridian.\n *\n * @param {Coordinate} coordinate Coordinate (modified in place).\n * @param {import(\"./proj/Projection.js\").default} projection Projection.\n * @param {number} referenceX Reference X position to find the nearest world to.\n * @return {Coordinate} The coordinate in the nearest world copy.\n */\nexport function wrapXNearest(coordinate, projection, referenceX) {\n if (projection.canWrapX()) {\n const worldWidth = getWidth(projection.getExtent());\n const n = Math.round((referenceX - coordinate[0]) / worldWidth);\n if (n !== 0) {\n coordinate[0] += n * worldWidth;\n }\n }\n return coordinate;\n}\n\n/**\n * @param {Coordinate} coordinate Coordinate.\n * @param {import(\"./proj/Projection.js\").default} projection Projection.\n * @param {number} [sourceExtentWidth] Width of the source extent.\n * @return {number} Offset in world widths.\n */\nexport function getWorldsAway(coordinate, projection, sourceExtentWidth) {\n const projectionExtent = projection.getExtent();\n let worldsAway = 0;\n if (\n projection.canWrapX() &&\n (coordinate[0] < projectionExtent[0] || coordinate[0] > projectionExtent[2])\n ) {\n sourceExtentWidth = sourceExtentWidth || getWidth(projectionExtent);\n worldsAway = Math.floor(\n (coordinate[0] - projectionExtent[0]) / sourceExtentWidth,\n );\n }\n return worldsAway;\n}\n\n/**\n * Compute the angle between p0pA and p0pB\n * @param {Coordinate} p0 Point 0\n * @param {Coordinate} pA Point A\n * @param {Coordinate} pB Point B\n * @return {number} a value in [0, 2PI]\n */\nexport function angleBetween(p0, pA, pB) {\n const lenA = Math.sqrt(\n (pA[0] - p0[0]) * (pA[0] - p0[0]) + (pA[1] - p0[1]) * (pA[1] - p0[1]),\n );\n const tangentA = [(pA[0] - p0[0]) / lenA, (pA[1] - p0[1]) / lenA];\n const orthoA = [-tangentA[1], tangentA[0]];\n const lenB = Math.sqrt(\n (pB[0] - p0[0]) * (pB[0] - p0[0]) + (pB[1] - p0[1]) * (pB[1] - p0[1]),\n );\n const tangentB = [(pB[0] - p0[0]) / lenB, (pB[1] - p0[1]) / lenB];\n\n // this angle can be clockwise or anticlockwise; hence the computation afterwards\n let angle =\n lenA === 0 || lenB === 0\n ? 0\n : Math.acos(\n clamp(tangentB[0] * tangentA[0] + tangentB[1] * tangentA[1], -1, 1),\n );\n angle = Math.max(angle, 0.00001); // avoid a zero angle otherwise this is detected as a line cap\n const isClockwise = tangentB[0] * orthoA[0] + tangentB[1] * orthoA[1] > 0;\n return !isClockwise ? Math.PI * 2 - angle : angle;\n}\n","/**\n * @module ol/proj/Units\n */\n\n/**\n * @typedef {'radians' | 'degrees' | 'ft' | 'm' | 'pixels' | 'tile-pixels' | 'us-ft'} Units\n * Projection units.\n */\n\n/**\n * See http://duff.ess.washington.edu/data/raster/drg/docs/geotiff.txt\n * @type {Object}\n */\nconst unitByCode = {\n '9001': 'm',\n '9002': 'ft',\n '9003': 'us-ft',\n '9101': 'radians',\n '9102': 'degrees',\n};\n\n/**\n * @param {number} code Unit code.\n * @return {Units} Units.\n */\nexport function fromCode(code) {\n return unitByCode[code];\n}\n\n/**\n * @typedef {Object} MetersPerUnitLookup\n * @property {number} radians Radians\n * @property {number} degrees Degrees\n * @property {number} ft Feet\n * @property {number} m Meters\n * @property {number} us-ft US feet\n */\n\n/**\n * Meters per unit lookup table.\n * @const\n * @type {MetersPerUnitLookup}\n * @api\n */\nexport const METERS_PER_UNIT = {\n // use the radius of the Normal sphere\n 'radians': 6370997 / (2 * Math.PI),\n 'degrees': (2 * Math.PI * 6370997) / 360,\n 'ft': 0.3048,\n 'm': 1,\n 'us-ft': 1200 / 3937,\n};\n","/**\n * @module ol/proj/Projection\n */\nimport {METERS_PER_UNIT} from './Units.js';\n\n/**\n * The function is called with a `number` view resolution and a\n * {@link module:ol/coordinate~Coordinate} as arguments, and returns the `number` resolution\n * in projection units at the passed coordinate.\n * @typedef {function(number, import(\"../coordinate.js\").Coordinate):number} GetPointResolution\n * @api\n */\n\n/**\n * @typedef {Object} Options\n * @property {string} code The SRS identifier code, e.g. `EPSG:4326`.\n * @property {import(\"./Units.js\").Units} [units] Units. Required unless a\n * proj4 projection is defined for `code`.\n * @property {import(\"../extent.js\").Extent} [extent] The validity extent for the SRS.\n * @property {string} [axisOrientation='enu'] The axis orientation as specified in Proj4.\n * @property {boolean} [global=false] Whether the projection is valid for the whole globe.\n * @property {number} [metersPerUnit] The meters per unit for the SRS.\n * If not provided, the `units` are used to get the meters per unit from the {@link METERS_PER_UNIT}\n * lookup table.\n * @property {import(\"../extent.js\").Extent} [worldExtent] The world extent for the SRS.\n * @property {GetPointResolution} [getPointResolution]\n * Function to determine resolution at a point. The function is called with a\n * `number` view resolution and a {@link module:ol/coordinate~Coordinate} as arguments, and returns\n * the `number` resolution in projection units at the passed coordinate. If this is `undefined`,\n * the default {@link module:ol/proj.getPointResolution} function will be used.\n */\n\n/**\n * @classdesc\n * In most cases, you should not need to create instances of this class.\n * Instead, where projection information is required, you can use a string\n * projection code or identifier (e.g. `EPSG:4326`) instead of a projection\n * instance.\n *\n * The library includes support for transforming coordinates between the following\n * projections:\n *\n * WGS 84 / Geographic - Using codes `EPSG:4326`, `CRS:84`, `urn:ogc:def:crs:EPSG:6.6:4326`,\n * `urn:ogc:def:crs:OGC:1.3:CRS84`, `urn:ogc:def:crs:OGC:2:84`, `http://www.opengis.net/gml/srs/epsg.xml#4326`,\n * or `urn:x-ogc:def:crs:EPSG:4326`\n * WGS 84 / Spherical Mercator - Using codes `EPSG:3857`, `EPSG:102100`, `EPSG:102113`, `EPSG:900913`,\n * `urn:ogc:def:crs:EPSG:6.18:3:3857`, or `http://www.opengis.net/gml/srs/epsg.xml#3857`\n * WGS 84 / UTM zones - Using codes `EPSG:32601` through `EPSG:32660` for northern zones\n * and `EPSG:32701` through `EPSG:32760` for southern zones. Note that the built-in UTM transforms\n * are lower accuracy (with errors on the order of 0.1 m) than those that you might get in a\n * library like [proj4js](https://github.com/proj4js/proj4js).\n *\n * For additional projection support, or to use higher accuracy transforms than the built-in ones, you can use\n * the [proj4js](https://github.com/proj4js/proj4js) library. With `proj4js`, after adding any new projection\n * definitions, call the {@link module:ol/proj/proj4.register} function.\n *\n * You can use the {@link module:ol/proj.get} function to retrieve a projection instance\n * for one of the registered projections.\n *\n * @api\n */\nclass Projection {\n /**\n * @param {Options} options Projection options.\n */\n constructor(options) {\n /**\n * @private\n * @type {string}\n */\n this.code_ = options.code;\n\n /**\n * Units of projected coordinates. When set to `TILE_PIXELS`, a\n * `this.extent_` and `this.worldExtent_` must be configured properly for each\n * tile.\n * @private\n * @type {import(\"./Units.js\").Units}\n */\n this.units_ = /** @type {import(\"./Units.js\").Units} */ (options.units);\n\n /**\n * Validity extent of the projection in projected coordinates. For projections\n * with `TILE_PIXELS` units, this is the extent of the tile in\n * tile pixel space.\n * @private\n * @type {import(\"../extent.js\").Extent|null}\n */\n this.extent_ = options.extent !== undefined ? options.extent : null;\n\n /**\n * Extent of the world in EPSG:4326. For projections with\n * `TILE_PIXELS` units, this is the extent of the tile in\n * projected coordinate space.\n * @private\n * @type {import(\"../extent.js\").Extent|null}\n */\n this.worldExtent_ =\n options.worldExtent !== undefined ? options.worldExtent : null;\n\n /**\n * @private\n * @type {string}\n */\n this.axisOrientation_ =\n options.axisOrientation !== undefined ? options.axisOrientation : 'enu';\n\n /**\n * @private\n * @type {boolean}\n */\n this.global_ = options.global !== undefined ? options.global : false;\n\n /**\n * @private\n * @type {boolean}\n */\n this.canWrapX_ = !!(this.global_ && this.extent_);\n\n /**\n * @private\n * @type {GetPointResolution|undefined}\n */\n this.getPointResolutionFunc_ = options.getPointResolution;\n\n /**\n * @private\n * @type {import(\"../tilegrid/TileGrid.js\").default|null}\n */\n this.defaultTileGrid_ = null;\n\n /**\n * @private\n * @type {number|undefined}\n */\n this.metersPerUnit_ = options.metersPerUnit;\n }\n\n /**\n * @return {boolean} The projection is suitable for wrapping the x-axis\n */\n canWrapX() {\n return this.canWrapX_;\n }\n\n /**\n * Get the code for this projection, e.g. 'EPSG:4326'.\n * @return {string} Code.\n * @api\n */\n getCode() {\n return this.code_;\n }\n\n /**\n * Get the validity extent for this projection.\n * @return {import(\"../extent.js\").Extent} Extent.\n * @api\n */\n getExtent() {\n return /** @type {import(\"../extent.js\").Extent} */ (this.extent_);\n }\n\n /**\n * Get the units of this projection.\n * @return {import(\"./Units.js\").Units} Units.\n * @api\n */\n getUnits() {\n return this.units_;\n }\n\n /**\n * Get the amount of meters per unit of this projection. If the projection is\n * not configured with `metersPerUnit` or a units identifier, the return is\n * `undefined`.\n * @return {number|undefined} Meters.\n * @api\n */\n getMetersPerUnit() {\n return this.metersPerUnit_ || METERS_PER_UNIT[this.units_];\n }\n\n /**\n * Get the world extent for this projection.\n * @return {import(\"../extent.js\").Extent} Extent.\n * @api\n */\n getWorldExtent() {\n return /** @type {import(\"../extent.js\").Extent} */ (this.worldExtent_);\n }\n\n /**\n * Get the axis orientation of this projection.\n * Example values are:\n * enu - the default easting, northing, elevation.\n * neu - northing, easting, up - useful for \"lat/long\" geographic coordinates,\n * or south orientated transverse mercator.\n * wnu - westing, northing, up - some planetary coordinate systems have\n * \"west positive\" coordinate systems\n * @return {string} Axis orientation.\n * @api\n */\n getAxisOrientation() {\n return this.axisOrientation_;\n }\n\n /**\n * Is this projection a global projection which spans the whole world?\n * @return {boolean} Whether the projection is global.\n * @api\n */\n isGlobal() {\n return this.global_;\n }\n\n /**\n * Set if the projection is a global projection which spans the whole world\n * @param {boolean} global Whether the projection is global.\n * @api\n */\n setGlobal(global) {\n this.global_ = global;\n this.canWrapX_ = !!(global && this.extent_);\n }\n\n /**\n * @return {import(\"../tilegrid/TileGrid.js\").default|null} The default tile grid.\n */\n getDefaultTileGrid() {\n return this.defaultTileGrid_;\n }\n\n /**\n * @param {import(\"../tilegrid/TileGrid.js\").default} tileGrid The default tile grid.\n */\n setDefaultTileGrid(tileGrid) {\n this.defaultTileGrid_ = tileGrid;\n }\n\n /**\n * Set the validity extent for this projection.\n * @param {import(\"../extent.js\").Extent} extent Extent.\n * @api\n */\n setExtent(extent) {\n this.extent_ = extent;\n this.canWrapX_ = !!(this.global_ && extent);\n }\n\n /**\n * Set the world extent for this projection.\n * @param {import(\"../extent.js\").Extent} worldExtent World extent\n * [minlon, minlat, maxlon, maxlat].\n * @api\n */\n setWorldExtent(worldExtent) {\n this.worldExtent_ = worldExtent;\n }\n\n /**\n * Set the getPointResolution function (see {@link module:ol/proj.getPointResolution}\n * for this projection.\n * @param {function(number, import(\"../coordinate.js\").Coordinate):number} func Function\n * @api\n */\n setGetPointResolution(func) {\n this.getPointResolutionFunc_ = func;\n }\n\n /**\n * Get the custom point resolution function for this projection (if set).\n * @return {GetPointResolution|undefined} The custom point\n * resolution function (if set).\n */\n getPointResolutionFunc() {\n return this.getPointResolutionFunc_;\n }\n}\n\nexport default Projection;\n","/**\n * @module ol/proj/epsg3857\n */\nimport Projection from './Projection.js';\n\n/**\n * Radius of WGS84 sphere\n *\n * @const\n * @type {number}\n */\nexport const RADIUS = 6378137;\n\n/**\n * @const\n * @type {number}\n */\nexport const HALF_SIZE = Math.PI * RADIUS;\n\n/**\n * @const\n * @type {import(\"../extent.js\").Extent}\n */\nexport const EXTENT = [-HALF_SIZE, -HALF_SIZE, HALF_SIZE, HALF_SIZE];\n\n/**\n * @const\n * @type {import(\"../extent.js\").Extent}\n */\nexport const WORLD_EXTENT = [-180, -85, 180, 85];\n\n/**\n * Maximum safe value in y direction\n * @const\n * @type {number}\n */\nexport const MAX_SAFE_Y = RADIUS * Math.log(Math.tan(Math.PI / 2));\n\n/**\n * @classdesc\n * Projection object for web/spherical Mercator (EPSG:3857).\n */\nclass EPSG3857Projection extends Projection {\n /**\n * @param {string} code Code.\n */\n constructor(code) {\n super({\n code: code,\n units: 'm',\n extent: EXTENT,\n global: true,\n worldExtent: WORLD_EXTENT,\n getPointResolution: function (resolution, point) {\n return resolution / Math.cosh(point[1] / RADIUS);\n },\n });\n }\n}\n\n/**\n * Projections equal to EPSG:3857.\n *\n * @const\n * @type {Array}\n */\nexport const PROJECTIONS = [\n new EPSG3857Projection('EPSG:3857'),\n new EPSG3857Projection('EPSG:102100'),\n new EPSG3857Projection('EPSG:102113'),\n new EPSG3857Projection('EPSG:900913'),\n new EPSG3857Projection('http://www.opengis.net/def/crs/EPSG/0/3857'),\n new EPSG3857Projection('http://www.opengis.net/gml/srs/epsg.xml#3857'),\n];\n\n/**\n * Transformation from EPSG:4326 to EPSG:3857.\n *\n * @param {Array} input Input array of coordinate values.\n * @param {Array} [output] Output array of coordinate values.\n * @param {number} [dimension] Dimension (default is `2`).\n * @param {number} [stride] Stride (default is `dimension`).\n * @return {Array} Output array of coordinate values.\n */\nexport function fromEPSG4326(input, output, dimension, stride) {\n const length = input.length;\n dimension = dimension !== undefined && dimension > 1 ? dimension : 2;\n stride = stride ?? dimension;\n if (output === undefined) {\n if (dimension > 2) {\n // preserve values beyond second dimension\n output = input.slice();\n } else {\n output = new Array(length);\n }\n }\n for (let i = 0; i < length; i += stride) {\n output[i] = (HALF_SIZE * input[i]) / 180;\n let y = RADIUS * Math.log(Math.tan((Math.PI * (+input[i + 1] + 90)) / 360));\n if (y > MAX_SAFE_Y) {\n y = MAX_SAFE_Y;\n } else if (y < -MAX_SAFE_Y) {\n y = -MAX_SAFE_Y;\n }\n output[i + 1] = y;\n }\n return output;\n}\n\n/**\n * Transformation from EPSG:3857 to EPSG:4326.\n *\n * @param {Array} input Input array of coordinate values.\n * @param {Array} [output] Output array of coordinate values.\n * @param {number} [dimension] Dimension (default is `2`).\n * @param {number} [stride] Stride (default is `dimension`).\n * @return {Array} Output array of coordinate values.\n */\nexport function toEPSG4326(input, output, dimension, stride) {\n const length = input.length;\n dimension = dimension !== undefined && dimension > 1 ? dimension : 2;\n stride = stride ?? dimension;\n if (output === undefined) {\n if (dimension > 2) {\n // preserve values beyond second dimension\n output = input.slice();\n } else {\n output = new Array(length);\n }\n }\n for (let i = 0; i < length; i += stride) {\n output[i] = (180 * input[i]) / HALF_SIZE;\n output[i + 1] =\n (360 * Math.atan(Math.exp(input[i + 1] / RADIUS))) / Math.PI - 90;\n }\n return output;\n}\n","/**\n * @module ol/proj/epsg4326\n */\nimport Projection from './Projection.js';\n\n/**\n * Semi-major radius of the WGS84 ellipsoid.\n *\n * @const\n * @type {number}\n */\nexport const RADIUS = 6378137;\n\n/**\n * Extent of the EPSG:4326 projection which is the whole world.\n *\n * @const\n * @type {import(\"../extent.js\").Extent}\n */\nexport const EXTENT = [-180, -90, 180, 90];\n\n/**\n * @const\n * @type {number}\n */\nexport const METERS_PER_UNIT = (Math.PI * RADIUS) / 180;\n\n/**\n * @classdesc\n * Projection object for WGS84 geographic coordinates (EPSG:4326).\n *\n * Note that OpenLayers does not strictly comply with the EPSG definition.\n * The EPSG registry defines 4326 as a CRS for Latitude,Longitude (y,x).\n * OpenLayers treats EPSG:4326 as a pseudo-projection, with x,y coordinates.\n */\nclass EPSG4326Projection extends Projection {\n /**\n * @param {string} code Code.\n * @param {string} [axisOrientation] Axis orientation.\n */\n constructor(code, axisOrientation) {\n super({\n code: code,\n units: 'degrees',\n extent: EXTENT,\n axisOrientation: axisOrientation,\n global: true,\n metersPerUnit: METERS_PER_UNIT,\n worldExtent: EXTENT,\n });\n }\n}\n\n/**\n * Projections equal to EPSG:4326.\n *\n * @const\n * @type {Array}\n */\nexport const PROJECTIONS = [\n new EPSG4326Projection('CRS:84'),\n new EPSG4326Projection('EPSG:4326', 'neu'),\n new EPSG4326Projection('urn:ogc:def:crs:OGC:1.3:CRS84'),\n new EPSG4326Projection('urn:ogc:def:crs:OGC:2:84'),\n new EPSG4326Projection('http://www.opengis.net/def/crs/OGC/1.3/CRS84'),\n new EPSG4326Projection('http://www.opengis.net/gml/srs/epsg.xml#4326', 'neu'),\n new EPSG4326Projection('http://www.opengis.net/def/crs/EPSG/0/4326', 'neu'),\n];\n","/**\n * @module ol/proj/projections\n */\n\n/**\n * @type {Object}\n */\nlet cache = {};\n\n/**\n * Clear the projections cache.\n */\nexport function clear() {\n cache = {};\n}\n\n/**\n * Get a cached projection by code.\n * @param {string} code The code for the projection.\n * @return {import(\"./Projection.js\").default|null} The projection (if cached).\n */\nexport function get(code) {\n return (\n cache[code] ||\n cache[code.replace(/urn:(x-)?ogc:def:crs:EPSG:(.*:)?(\\w+)$/, 'EPSG:$3')] ||\n null\n );\n}\n\n/**\n * Add a projection to the cache.\n * @param {string} code The projection code.\n * @param {import(\"./Projection.js\").default} projection The projection to cache.\n */\nexport function add(code, projection) {\n cache[code] = projection;\n}\n","/**\n * @module ol/proj/transforms\n */\nimport {isEmpty} from '../obj.js';\n\n/**\n * @private\n * @type {!Object>}\n */\nlet transforms = {};\n\n/**\n * Clear the transform cache.\n */\nexport function clear() {\n transforms = {};\n}\n\n/**\n * Registers a conversion function to convert coordinates from the source\n * projection to the destination projection.\n *\n * @param {import(\"./Projection.js\").default} source Source.\n * @param {import(\"./Projection.js\").default} destination Destination.\n * @param {import(\"../proj.js\").TransformFunction} transformFn Transform.\n */\nexport function add(source, destination, transformFn) {\n const sourceCode = source.getCode();\n const destinationCode = destination.getCode();\n if (!(sourceCode in transforms)) {\n transforms[sourceCode] = {};\n }\n transforms[sourceCode][destinationCode] = transformFn;\n}\n\n/**\n * Unregisters the conversion function to convert coordinates from the source\n * projection to the destination projection. This method is used to clean up\n * cached transforms during testing.\n *\n * @param {import(\"./Projection.js\").default} source Source projection.\n * @param {import(\"./Projection.js\").default} destination Destination projection.\n * @return {import(\"../proj.js\").TransformFunction} transformFn The unregistered transform.\n */\nexport function remove(source, destination) {\n const sourceCode = source.getCode();\n const destinationCode = destination.getCode();\n const transform = transforms[sourceCode][destinationCode];\n delete transforms[sourceCode][destinationCode];\n if (isEmpty(transforms[sourceCode])) {\n delete transforms[sourceCode];\n }\n return transform;\n}\n\n/**\n * Get a transform given a source code and a destination code.\n * @param {string} sourceCode The code for the source projection.\n * @param {string} destinationCode The code for the destination projection.\n * @return {import(\"../proj.js\").TransformFunction|null} The transform function (if found).\n */\nexport function get(sourceCode, destinationCode) {\n if (sourceCode in transforms && destinationCode in transforms[sourceCode]) {\n return transforms[sourceCode][destinationCode];\n }\n return null;\n}\n","/**\n * @module ol/proj/utm\n */\n\n/**\n * Adapted from https://github.com/Turbo87/utm\n * Copyright (c) 2012-2017 Tobias Bieniek\n *\n * The functions here provide approximate transforms to and from UTM.\n * They are not appropriate for use beyond the validity extend of a UTM\n * zone, and the accuracy of the transform decreases toward the zone\n * edges.\n */\n\nimport {toDegrees, toRadians, wrap} from '../math.js';\nimport Projection from './Projection.js';\n\n/**\n * @typedef {Object} UTMZone\n * @property {number} number The zone number (1 - 60).\n * @property {boolean} north The northern hemisphere.\n */\n\nconst K0 = 0.9996;\n\nconst E = 0.00669438;\nconst E2 = E * E;\nconst E3 = E2 * E;\nconst E_P2 = E / (1 - E);\n\nconst SQRT_E = Math.sqrt(1 - E);\nconst _E = (1 - SQRT_E) / (1 + SQRT_E);\nconst _E2 = _E * _E;\nconst _E3 = _E2 * _E;\nconst _E4 = _E3 * _E;\nconst _E5 = _E4 * _E;\n\nconst M1 = 1 - E / 4 - (3 * E2) / 64 - (5 * E3) / 256;\nconst M2 = (3 * E) / 8 + (3 * E2) / 32 + (45 * E3) / 1024;\nconst M3 = (15 * E2) / 256 + (45 * E3) / 1024;\nconst M4 = (35 * E3) / 3072;\n\nconst P2 = (3 / 2) * _E - (27 / 32) * _E3 + (269 / 512) * _E5;\nconst P3 = (21 / 16) * _E2 - (55 / 32) * _E4;\nconst P4 = (151 / 96) * _E3 - (417 / 128) * _E5;\nconst P5 = (1097 / 512) * _E4;\n\nconst R = 6378137;\n\n/**\n * @param {number} easting Easting value of coordinate.\n * @param {number} northing Northing value of coordinate.\n * @param {UTMZone} zone The UTM zone.\n * @return {import(\"../coordinate.js\").Coordinate} The transformed coordinate.\n */\nfunction toLonLat(easting, northing, zone) {\n const x = easting - 500000;\n const y = zone.north ? northing : northing - 10000000;\n\n const m = y / K0;\n const mu = m / (R * M1);\n\n const pRad =\n mu +\n P2 * Math.sin(2 * mu) +\n P3 * Math.sin(4 * mu) +\n P4 * Math.sin(6 * mu) +\n P5 * Math.sin(8 * mu);\n\n const pSin = Math.sin(pRad);\n const pSin2 = pSin * pSin;\n\n const pCos = Math.cos(pRad);\n\n const pTan = pSin / pCos;\n const pTan2 = pTan * pTan;\n const pTan4 = pTan2 * pTan2;\n\n const epSin = 1 - E * pSin2;\n const epSinSqrt = Math.sqrt(1 - E * pSin2);\n\n const n = R / epSinSqrt;\n const r = (1 - E) / epSin;\n\n const c = E_P2 * pCos ** 2;\n const c2 = c * c;\n\n const d = x / (n * K0);\n const d2 = d * d;\n const d3 = d2 * d;\n const d4 = d3 * d;\n const d5 = d4 * d;\n const d6 = d5 * d;\n\n const latitude =\n pRad -\n (pTan / r) *\n (d2 / 2 - (d4 / 24) * (5 + 3 * pTan2 + 10 * c - 4 * c2 - 9 * E_P2)) +\n (d6 / 720) * (61 + 90 * pTan2 + 298 * c + 45 * pTan4 - 252 * E_P2 - 3 * c2);\n\n let longitude =\n (d -\n (d3 / 6) * (1 + 2 * pTan2 + c) +\n (d5 / 120) * (5 - 2 * c + 28 * pTan2 - 3 * c2 + 8 * E_P2 + 24 * pTan4)) /\n pCos;\n\n longitude = wrap(\n longitude + toRadians(zoneToCentralLongitude(zone.number)),\n -Math.PI,\n Math.PI,\n );\n\n return [toDegrees(longitude), toDegrees(latitude)];\n}\n\nconst MIN_LATITUDE = -80;\nconst MAX_LATITUDE = 84;\nconst MIN_LONGITUDE = -180;\nconst MAX_LONGITUDE = 180;\n\n/**\n * @param {number} longitude The longitude.\n * @param {number} latitude The latitude.\n * @param {UTMZone} zone The UTM zone.\n * @return {import('../coordinate.js').Coordinate} The UTM coordinate.\n */\nfunction fromLonLat(longitude, latitude, zone) {\n longitude = wrap(longitude, MIN_LONGITUDE, MAX_LONGITUDE);\n\n if (latitude < MIN_LATITUDE) {\n latitude = MIN_LATITUDE;\n } else if (latitude > MAX_LATITUDE) {\n latitude = MAX_LATITUDE;\n }\n\n const latRad = toRadians(latitude);\n const latSin = Math.sin(latRad);\n const latCos = Math.cos(latRad);\n\n const latTan = latSin / latCos;\n const latTan2 = latTan * latTan;\n const latTan4 = latTan2 * latTan2;\n\n const lonRad = toRadians(longitude);\n const centralLon = zoneToCentralLongitude(zone.number);\n const centralLonRad = toRadians(centralLon);\n\n const n = R / Math.sqrt(1 - E * latSin ** 2);\n const c = E_P2 * latCos ** 2;\n\n const a = latCos * wrap(lonRad - centralLonRad, -Math.PI, Math.PI);\n const a2 = a * a;\n const a3 = a2 * a;\n const a4 = a3 * a;\n const a5 = a4 * a;\n const a6 = a5 * a;\n\n const m =\n R *\n (M1 * latRad -\n M2 * Math.sin(2 * latRad) +\n M3 * Math.sin(4 * latRad) -\n M4 * Math.sin(6 * latRad));\n\n const easting =\n K0 *\n n *\n (a +\n (a3 / 6) * (1 - latTan2 + c) +\n (a5 / 120) * (5 - 18 * latTan2 + latTan4 + 72 * c - 58 * E_P2)) +\n 500000;\n\n let northing =\n K0 *\n (m +\n n *\n latTan *\n (a2 / 2 +\n (a4 / 24) * (5 - latTan2 + 9 * c + 4 * c ** 2) +\n (a6 / 720) * (61 - 58 * latTan2 + latTan4 + 600 * c - 330 * E_P2)));\n\n if (!zone.north) {\n northing += 10000000;\n }\n\n return [easting, northing];\n}\n\n/**\n * @param {number} zone The zone number.\n * @return {number} The central longitude in degrees.\n */\nfunction zoneToCentralLongitude(zone) {\n return (zone - 1) * 6 - 180 + 3;\n}\n\n/**\n * @type {Array}\n */\nconst epsgRegExes = [\n /^EPSG:(\\d+)$/,\n /^urn:ogc:def:crs:EPSG::(\\d+)$/,\n /^http:\\/\\/www\\.opengis\\.net\\/def\\/crs\\/EPSG\\/0\\/(\\d+)$/,\n];\n\n/**\n * @param {string} code The projection code.\n * @return {UTMZone|null} The UTM zone info (or null if not UTM).\n */\nexport function zoneFromCode(code) {\n let epsgId = 0;\n for (const re of epsgRegExes) {\n const match = code.match(re);\n if (match) {\n epsgId = parseInt(match[1]);\n break;\n }\n }\n if (!epsgId) {\n return null;\n }\n\n let number = 0;\n let north = false;\n if (epsgId > 32700 && epsgId < 32761) {\n number = epsgId - 32700;\n } else if (epsgId > 32600 && epsgId < 32661) {\n north = true;\n number = epsgId - 32600;\n }\n if (!number) {\n return null;\n }\n\n return {number, north};\n}\n\n/**\n * @param {function(number, number, UTMZone): import('../coordinate.js').Coordinate} transformer The transformer.\n * @param {UTMZone} zone The UTM zone.\n * @return {import('../proj.js').TransformFunction} The transform function.\n */\nfunction makeTransformFunction(transformer, zone) {\n return function (input, output, dimension, stride) {\n const length = input.length;\n dimension = dimension !== undefined && dimension > 1 ? dimension : 2;\n stride = stride ?? dimension;\n if (!output) {\n if (dimension > 2) {\n output = input.slice();\n } else {\n output = new Array(length);\n }\n }\n for (let i = 0; i < length; i += stride) {\n const x = input[i];\n const y = input[i + 1];\n const coord = transformer(x, y, zone);\n output[i] = coord[0];\n output[i + 1] = coord[1];\n }\n return output;\n };\n}\n\n/**\n * @param {string} code The projection code.\n * @return {import('./Projection.js').default|null} A projection or null if unable to create one.\n */\nexport function makeProjection(code) {\n const zone = zoneFromCode(code);\n if (!zone) {\n return null;\n }\n return new Projection({code, units: 'm'});\n}\n\n/**\n * @param {import('./Projection.js').default} projection The projection.\n * @return {import('../proj.js').Transforms|null} The transforms lookup or null if unable to handle projection.\n */\nexport function makeTransforms(projection) {\n const zone = zoneFromCode(projection.getCode());\n if (!zone) {\n return null;\n }\n\n return {\n forward: makeTransformFunction(fromLonLat, zone),\n inverse: makeTransformFunction(toLonLat, zone),\n };\n}\n","/**\n * @module ol/proj\n */\n\n/**\n * The ol/proj module stores:\n * a list of {@link module:ol/proj/Projection~Projection}\n * objects, one for each projection supported by the application\n * a list of transform functions needed to convert coordinates in one projection\n * into another.\n *\n * The static functions are the methods used to maintain these.\n * Each transform function can handle not only simple coordinate pairs, but also\n * large arrays of coordinates such as vector geometries.\n *\n * When loaded, the library adds projection objects for EPSG:4326 (WGS84\n * geographic coordinates) and EPSG:3857 (Web or Spherical Mercator, as used\n * for example by Bing Maps or OpenStreetMap), together with the relevant\n * transform functions.\n *\n * Additional transforms may be added by using the http://proj4js.org/\n * library (version 2.2 or later). You can use the full build supplied by\n * Proj4js, or create a custom build to support those projections you need; see\n * the Proj4js website for how to do this. You also need the Proj4js definitions\n * for the required projections. These definitions can be obtained from\n * https://spatialreference.org/, and are a JS function, so can be loaded in a\n * script tag (as in the examples) or pasted into your application.\n *\n * After all required projection definitions are added to proj4's registry (by\n * using `proj4.defs()`), simply call `register(proj4)` from the `ol/proj/proj4`\n * package. Existing transforms are not changed by this function. See\n * examples/wms-image-custom-proj for an example of this.\n *\n * Additional projection definitions can be registered with `proj4.defs()` any\n * time. Just make sure to call `register(proj4)` again; for example, with user-supplied data where you don't\n * know in advance what projections are needed, you can initially load minimal\n * support and then load whichever are requested.\n *\n * Note that Proj4js does not support projection extents. If you want to add\n * one for creating default tile grids, you can add it after the Projection\n * object has been created with `setExtent`, for example,\n * `get('EPSG:1234').setExtent(extent)`.\n *\n * In addition to Proj4js support, any transform functions can be added with\n * {@link module:ol/proj.addCoordinateTransforms}. To use this, you must first create\n * a {@link module:ol/proj/Projection~Projection} object for the new projection and add it with\n * {@link module:ol/proj.addProjection}. You can then add the forward and inverse\n * functions with {@link module:ol/proj.addCoordinateTransforms}. See\n * examples/wms-custom-proj for an example of this.\n *\n * Note that if no transforms are needed and you only need to define the\n * projection, just add a {@link module:ol/proj/Projection~Projection} with\n * {@link module:ol/proj.addProjection}. See examples/wms-no-proj for an example of\n * this.\n */\nimport {warn} from './console.js';\nimport {equals, getWorldsAway} from './coordinate.js';\nimport {applyTransform, getWidth} from './extent.js';\nimport {clamp, modulo} from './math.js';\nimport Projection from './proj/Projection.js';\nimport {METERS_PER_UNIT} from './proj/Units.js';\nimport {\n PROJECTIONS as EPSG3857_PROJECTIONS,\n fromEPSG4326,\n toEPSG4326,\n} from './proj/epsg3857.js';\nimport {PROJECTIONS as EPSG4326_PROJECTIONS} from './proj/epsg4326.js';\nimport {\n add as addProj,\n clear as clearProj,\n get as getProj,\n} from './proj/projections.js';\nimport {\n add as addTransformFunc,\n clear as clearTransformFuncs,\n get as getTransformFunc,\n} from './proj/transforms.js';\nimport {\n makeProjection as makeUTMProjection,\n makeTransforms as makeUTMTransforms,\n} from './proj/utm.js';\nimport {getDistance} from './sphere.js';\n\n/**\n * A projection as {@link module:ol/proj/Projection~Projection}, SRS identifier\n * string or undefined.\n * @typedef {Projection|string|undefined} ProjectionLike\n * @api\n */\n\n/**\n * @typedef {Object} Transforms\n * @property {TransformFunction} forward The forward transform (from geographic).\n * @property {TransformFunction} inverse The inverse transform (to geographic).\n */\n\n/**\n * @type {Array}\n */\nconst transformFactories = [makeUTMTransforms];\n\n/**\n * @type {Array}\n */\nconst projectionFactories = [makeUTMProjection];\n\n/**\n * A transform function accepts an array of input coordinate values, an optional\n * output array, and an optional dimension (default should be 2). The function\n * transforms the input coordinate values, populates the output array, and\n * returns the output array.\n *\n * @callback TransformFunction\n * @param {Array} input\n * @param {Array} [output]\n * @param {number} [dimension]\n * @param {number} [stride]\n * @return {Array}\n *\n * @api\n */\n\nexport {METERS_PER_UNIT};\n\nexport {Projection};\n\nlet showCoordinateWarning = true;\n\n/**\n * @param {boolean} [disable] Disable console info about `useGeographic()`\n */\nexport function disableCoordinateWarning(disable) {\n const hide = disable === undefined ? true : disable;\n showCoordinateWarning = !hide;\n}\n\n/**\n * @param {Array} input Input coordinate array.\n * @param {Array} [output] Output array of coordinate values.\n * @return {Array} Output coordinate array (new array, same coordinate\n * values).\n */\nexport function cloneTransform(input, output) {\n if (output !== undefined) {\n for (let i = 0, ii = input.length; i < ii; ++i) {\n output[i] = input[i];\n }\n output = output;\n } else {\n output = input.slice();\n }\n return output;\n}\n\n/**\n * @param {Array} input Input coordinate array.\n * @param {Array} [output] Output array of coordinate values.\n * @return {Array} Input coordinate array (same array as input).\n */\nexport function identityTransform(input, output) {\n if (output !== undefined && input !== output) {\n for (let i = 0, ii = input.length; i < ii; ++i) {\n output[i] = input[i];\n }\n input = output;\n }\n return input;\n}\n\n/**\n * Add a Projection object to the list of supported projections that can be\n * looked up by their code.\n *\n * @param {Projection} projection Projection instance.\n * @api\n */\nexport function addProjection(projection) {\n addProj(projection.getCode(), projection);\n addTransformFunc(projection, projection, cloneTransform);\n}\n\n/**\n * @param {Array} projections Projections.\n */\nexport function addProjections(projections) {\n projections.forEach(addProjection);\n}\n\n/**\n * Fetches a Projection object for the code specified.\n *\n * @param {ProjectionLike} projectionLike Either a code string which is\n * a combination of authority and identifier such as \"EPSG:4326\", or an\n * existing projection object, or undefined.\n * @return {Projection|null} Projection object, or null if not in list.\n * @api\n */\nexport function get(projectionLike) {\n if (!(typeof projectionLike === 'string')) {\n return projectionLike !== undefined ? projectionLike : null;\n }\n const projection = getProj(projectionLike);\n if (projection) {\n return projection;\n }\n for (const makeProjection of projectionFactories) {\n const projection = makeProjection(projectionLike);\n if (projection) {\n return projection;\n }\n }\n return null;\n}\n\n/**\n * Get the resolution of the point in degrees or distance units.\n * For projections with degrees as the unit this will simply return the\n * provided resolution. For other projections the point resolution is\n * by default estimated by transforming the `point` pixel to EPSG:4326,\n * measuring its width and height on the normal sphere,\n * and taking the average of the width and height.\n * A custom function can be provided for a specific projection, either\n * by setting the `getPointResolution` option in the\n * {@link module:ol/proj/Projection~Projection} constructor or by using\n * {@link module:ol/proj/Projection~Projection#setGetPointResolution} to change an existing\n * projection object.\n * @param {ProjectionLike} projection The projection.\n * @param {number} resolution Nominal resolution in projection units.\n * @param {import(\"./coordinate.js\").Coordinate} point Point to find adjusted resolution at.\n * @param {import(\"./proj/Units.js\").Units} [units] Units to get the point resolution in.\n * Default is the projection's units.\n * @return {number} Point resolution.\n * @api\n */\nexport function getPointResolution(projection, resolution, point, units) {\n const projectionObj = get(projection);\n if (!projectionObj) {\n return resolution;\n }\n let pointResolution;\n const getter = projectionObj.getPointResolutionFunc();\n if (getter) {\n pointResolution = getter(resolution, point);\n if (units && units !== projectionObj.getUnits()) {\n const metersPerUnit = projectionObj.getMetersPerUnit();\n if (metersPerUnit) {\n pointResolution =\n (pointResolution * metersPerUnit) /\n /** @type {number} */ (METERS_PER_UNIT[units]);\n }\n }\n } else {\n const projUnits = projectionObj.getUnits();\n if ((projUnits == 'degrees' && !units) || units == 'degrees') {\n pointResolution = resolution;\n } else {\n // Estimate point resolution by transforming the center pixel to EPSG:4326,\n // measuring its width and height on the normal sphere, and taking the\n // average of the width and height.\n const toEPSG4326 = getTransformFromProjections(\n projectionObj,\n get('EPSG:4326'),\n );\n if (!toEPSG4326 && projUnits !== 'degrees') {\n // no transform is available\n pointResolution = resolution * (projectionObj.getMetersPerUnit() ?? 1);\n } else {\n let vertices = [\n point[0] - resolution / 2,\n point[1],\n point[0] + resolution / 2,\n point[1],\n point[0],\n point[1] - resolution / 2,\n point[0],\n point[1] + resolution / 2,\n ];\n if (toEPSG4326) {\n vertices = toEPSG4326(vertices, vertices, 2);\n }\n const width = getDistance(vertices.slice(0, 2), vertices.slice(2, 4));\n const height = getDistance(vertices.slice(4, 6), vertices.slice(6, 8));\n pointResolution = (width + height) / 2;\n }\n const metersPerUnit = units\n ? METERS_PER_UNIT[units]\n : projectionObj.getMetersPerUnit();\n if (metersPerUnit !== undefined) {\n pointResolution /= metersPerUnit;\n }\n }\n }\n return pointResolution;\n}\n\n/**\n * Registers transformation functions that don't alter coordinates. Those allow\n * to transform between projections with equal meaning.\n *\n * @param {Array} projections Projections.\n * @api\n */\nexport function addEquivalentProjections(projections) {\n addProjections(projections);\n projections.forEach(function (source) {\n projections.forEach(function (destination) {\n if (source !== destination) {\n addTransformFunc(source, destination, cloneTransform);\n }\n });\n });\n}\n\n/**\n * Registers transformation functions to convert coordinates in any projection\n * in projection1 to any projection in projection2.\n *\n * @param {Array} projections1 Projections with equal\n * meaning.\n * @param {Array} projections2 Projections with equal\n * meaning.\n * @param {TransformFunction} forwardTransform Transformation from any\n * projection in projection1 to any projection in projection2.\n * @param {TransformFunction} inverseTransform Transform from any projection\n * in projection2 to any projection in projection1..\n */\nexport function addEquivalentTransforms(\n projections1,\n projections2,\n forwardTransform,\n inverseTransform,\n) {\n projections1.forEach(function (projection1) {\n projections2.forEach(function (projection2) {\n addTransformFunc(projection1, projection2, forwardTransform);\n addTransformFunc(projection2, projection1, inverseTransform);\n });\n });\n}\n\n/**\n * Clear all cached projections and transforms.\n */\nexport function clearAllProjections() {\n clearProj();\n clearTransformFuncs();\n}\n\n/**\n * @param {Projection|string|undefined} projection Projection.\n * @param {string} defaultCode Default code.\n * @return {Projection|null} Projection.\n */\nexport function createProjection(projection, defaultCode) {\n if (!projection) {\n return get(defaultCode);\n }\n if (typeof projection === 'string') {\n return get(projection);\n }\n return /** @type {Projection} */ (projection);\n}\n\n/**\n * Creates a {@link module:ol/proj~TransformFunction} from a simple 2D coordinate transform\n * function.\n * @param {function(import(\"./coordinate.js\").Coordinate): import(\"./coordinate.js\").Coordinate} coordTransform Coordinate\n * transform.\n * @return {TransformFunction} Transform function.\n */\nexport function createTransformFromCoordinateTransform(coordTransform) {\n return (\n /**\n * @param {Array} input Input.\n * @param {Array} [output] Output.\n * @param {number} [dimension] Dimensions that should be transformed.\n * @param {number} [stride] Stride.\n * @return {Array} Output.\n */\n function (input, output, dimension, stride) {\n const length = input.length;\n dimension = dimension !== undefined ? dimension : 2;\n stride = stride ?? dimension;\n output = output !== undefined ? output : new Array(length);\n for (let i = 0; i < length; i += stride) {\n const point = coordTransform(input.slice(i, i + dimension));\n const pointLength = point.length;\n for (let j = 0, jj = stride; j < jj; ++j) {\n output[i + j] = j >= pointLength ? input[i + j] : point[j];\n }\n }\n return output;\n }\n );\n}\n\n/**\n * Registers coordinate transform functions to convert coordinates between the\n * source projection and the destination projection.\n * The forward and inverse functions convert coordinate pairs; this function\n * converts these into the functions used internally which also handle\n * extents and coordinate arrays.\n *\n * @param {ProjectionLike} source Source projection.\n * @param {ProjectionLike} destination Destination projection.\n * @param {function(import(\"./coordinate.js\").Coordinate): import(\"./coordinate.js\").Coordinate} forward The forward transform\n * function (that is, from the source projection to the destination\n * projection) that takes a {@link module:ol/coordinate~Coordinate} as argument and returns\n * the transformed {@link module:ol/coordinate~Coordinate}.\n * @param {function(import(\"./coordinate.js\").Coordinate): import(\"./coordinate.js\").Coordinate} inverse The inverse transform\n * function (that is, from the destination projection to the source\n * projection) that takes a {@link module:ol/coordinate~Coordinate} as argument and returns\n * the transformed {@link module:ol/coordinate~Coordinate}. If the transform function can only\n * transform less dimensions than the input coordinate, it is supposeed to return a coordinate\n * with only the length it can transform. The other dimensions will be taken unchanged from the\n * source.\n * @api\n */\nexport function addCoordinateTransforms(source, destination, forward, inverse) {\n const sourceProj = get(source);\n const destProj = get(destination);\n if (!sourceProj || !destProj) {\n return;\n }\n addTransformFunc(\n sourceProj,\n destProj,\n createTransformFromCoordinateTransform(forward),\n );\n addTransformFunc(\n destProj,\n sourceProj,\n createTransformFromCoordinateTransform(inverse),\n );\n}\n\n/**\n * Transforms a coordinate from longitude/latitude to a different projection.\n * @param {import(\"./coordinate.js\").Coordinate} coordinate Coordinate as longitude and latitude, i.e.\n * an array with longitude as 1st and latitude as 2nd element.\n * @param {ProjectionLike} [projection] Target projection. The\n * default is Web Mercator, i.e. 'EPSG:3857'.\n * @return {import(\"./coordinate.js\").Coordinate} Coordinate projected to the target projection.\n * @api\n */\nexport function fromLonLat(coordinate, projection) {\n disableCoordinateWarning();\n return transform(\n coordinate,\n 'EPSG:4326',\n projection !== undefined ? projection : 'EPSG:3857',\n );\n}\n\n/**\n * Transforms a coordinate to longitude/latitude.\n * @param {import(\"./coordinate.js\").Coordinate} coordinate Projected coordinate.\n * @param {ProjectionLike} [projection] Projection of the coordinate.\n * The default is Web Mercator, i.e. 'EPSG:3857'.\n * @return {import(\"./coordinate.js\").Coordinate} Coordinate as longitude and latitude, i.e. an array\n * with longitude as 1st and latitude as 2nd element.\n * @api\n */\nexport function toLonLat(coordinate, projection) {\n const lonLat = transform(\n coordinate,\n projection !== undefined ? projection : 'EPSG:3857',\n 'EPSG:4326',\n );\n const lon = lonLat[0];\n if (lon < -180 || lon > 180) {\n lonLat[0] = modulo(lon + 180, 360) - 180;\n }\n return lonLat;\n}\n\n/**\n * Checks if two projections are the same, that is every coordinate in one\n * projection does represent the same geographic point as the same coordinate in\n * the other projection.\n *\n * @param {Projection} projection1 Projection 1.\n * @param {Projection} projection2 Projection 2.\n * @return {boolean} Equivalent.\n * @api\n */\nexport function equivalent(projection1, projection2) {\n if (projection1 === projection2) {\n return true;\n }\n const equalUnits = projection1.getUnits() === projection2.getUnits();\n if (projection1.getCode() === projection2.getCode()) {\n return equalUnits;\n }\n const transformFunc = getTransformFromProjections(projection1, projection2);\n return transformFunc === cloneTransform && equalUnits;\n}\n\n/**\n * Searches in the list of transform functions for the function for converting\n * coordinates from the source projection to the destination projection.\n *\n * @param {Projection|null} source Source Projection object.\n * @param {Projection|null} destination Destination Projection\n * object.\n * @return {TransformFunction|null} Transform function.\n */\nexport function getTransformFromProjections(source, destination) {\n if (!source || !destination) {\n return null;\n }\n const sourceCode = source.getCode();\n const destinationCode = destination.getCode();\n let transformFunc = getTransformFunc(sourceCode, destinationCode);\n if (transformFunc) {\n return transformFunc;\n }\n\n /**\n * @type {Transforms|null}\n */\n let sourceTransforms = null;\n\n /**\n * @type {Transforms|null}\n */\n let destinationTransforms = null;\n\n // lazily add projections if we have supported transforms\n for (const makeTransforms of transformFactories) {\n if (!sourceTransforms) {\n sourceTransforms = makeTransforms(source);\n }\n if (!destinationTransforms) {\n destinationTransforms = makeTransforms(destination);\n }\n }\n\n if (!sourceTransforms && !destinationTransforms) {\n return null;\n }\n\n const intermediateCode = 'EPSG:4326';\n if (!destinationTransforms && sourceTransforms) {\n const toDestination = getTransformFunc(intermediateCode, destinationCode);\n if (toDestination) {\n transformFunc = composeTransformFuncs(\n sourceTransforms.inverse,\n toDestination,\n );\n }\n } else if (!sourceTransforms && destinationTransforms) {\n const fromSource = getTransformFunc(sourceCode, intermediateCode);\n if (fromSource) {\n transformFunc = composeTransformFuncs(\n fromSource,\n destinationTransforms.forward,\n );\n }\n } else if (sourceTransforms && destinationTransforms) {\n transformFunc = composeTransformFuncs(\n sourceTransforms.inverse,\n destinationTransforms.forward,\n );\n }\n\n if (transformFunc) {\n addProjection(source);\n addProjection(destination);\n addTransformFunc(source, destination, transformFunc);\n }\n\n return transformFunc;\n}\n\n/**\n * @param {TransformFunction} t1 The first transform function.\n * @param {TransformFunction} t2 The second transform function.\n * @return {TransformFunction} The composed transform function.\n */\nfunction composeTransformFuncs(t1, t2) {\n return function (input, output, dimensions, stride) {\n output = t1(input, output, dimensions, stride);\n return t2(output, output, dimensions, stride);\n };\n}\n\n/**\n * Given the projection-like objects, searches for a transformation\n * function to convert a coordinates array from the source projection to the\n * destination projection.\n *\n * @param {ProjectionLike} source Source.\n * @param {ProjectionLike} destination Destination.\n * @return {TransformFunction|null} Transform function.\n * @api\n */\nexport function getTransform(source, destination) {\n const sourceProjection = get(source);\n const destinationProjection = get(destination);\n return getTransformFromProjections(sourceProjection, destinationProjection);\n}\n\n/**\n * Transforms a coordinate from source projection to destination projection.\n * This returns a new coordinate (and does not modify the original). If there\n * is no available transform between the two projection, the function will throw\n * an error.\n *\n * See {@link module:ol/proj.transformExtent} for extent transformation.\n * See the transform method of {@link module:ol/geom/Geometry~Geometry} and its\n * subclasses for geometry transforms.\n *\n * @param {import(\"./coordinate.js\").Coordinate} coordinate Coordinate.\n * @param {ProjectionLike} source Source projection-like.\n * @param {ProjectionLike} destination Destination projection-like.\n * @return {import(\"./coordinate.js\").Coordinate} Coordinate.\n * @api\n */\nexport function transform(coordinate, source, destination) {\n const transformFunc = getTransform(source, destination);\n if (!transformFunc) {\n const sourceCode = get(source)?.getCode() ?? String(source);\n const destinationCode = get(destination)?.getCode() ?? String(destination);\n throw new Error(\n `No transform available between ${sourceCode} and ${destinationCode}`,\n );\n }\n return transformFunc(coordinate, undefined, coordinate.length);\n}\n\n/**\n * Transforms an extent from source projection to destination projection. This\n * returns a new extent (and does not modify the original).\n *\n * @param {import(\"./extent.js\").Extent} extent The extent to transform.\n * @param {ProjectionLike} source Source projection-like.\n * @param {ProjectionLike} destination Destination projection-like.\n * @param {number} [stops] Number of stops per side used for the transform.\n * By default only the corners are used.\n * @return {import(\"./extent.js\").Extent} The transformed extent.\n * @api\n */\nexport function transformExtent(extent, source, destination, stops) {\n const transformFunc = getTransform(source, destination);\n if (!transformFunc) {\n return extent.slice();\n }\n return applyTransform(extent, transformFunc, undefined, stops);\n}\n\n/**\n * Transforms the given point to the destination projection.\n *\n * @param {import(\"./coordinate.js\").Coordinate} point Point.\n * @param {Projection} sourceProjection Source projection.\n * @param {Projection} destinationProjection Destination projection.\n * @return {import(\"./coordinate.js\").Coordinate} Point.\n */\nexport function transformWithProjections(\n point,\n sourceProjection,\n destinationProjection,\n) {\n const transformFunc = getTransformFromProjections(\n sourceProjection,\n destinationProjection,\n );\n if (!transformFunc) {\n throw new Error(\n `No transform available between ${sourceProjection.getCode()} and ${destinationProjection.getCode()}`,\n );\n }\n return transformFunc(point);\n}\n\n/**\n * @type {Projection|null}\n */\nlet userProjection = null;\n\n/**\n * Set the projection for coordinates supplied from and returned by API methods.\n * This includes all API methods except for those interacting with tile grids,\n * plus {@link import(\"./Map.js\").FrameState} and {@link import(\"./View.js\").State}.\n * @param {ProjectionLike} projection The user projection.\n * @api\n */\nexport function setUserProjection(projection) {\n userProjection = get(projection);\n}\n\n/**\n * Clear the user projection if set.\n * @api\n */\nexport function clearUserProjection() {\n userProjection = null;\n}\n\n/**\n * Get the projection for coordinates supplied from and returned by API methods.\n * @return {Projection|null} The user projection (or null if not set).\n * @api\n */\nexport function getUserProjection() {\n return userProjection;\n}\n\n/**\n * Use geographic coordinates (WGS-84 datum) in API methods.\n * This includes all API methods except for those interacting with tile grids,\n * plus {@link import(\"./Map.js\").FrameState} and {@link import(\"./View.js\").State}.\n * @api\n */\nexport function useGeographic() {\n setUserProjection('EPSG:4326');\n}\n\n/**\n * Return a coordinate transformed into the user projection. If no user projection\n * is set, the original coordinate is returned.\n * @param {Array} coordinate Input coordinate.\n * @param {ProjectionLike} sourceProjection The input coordinate projection.\n * @return {Array} The input coordinate in the user projection.\n */\nexport function toUserCoordinate(coordinate, sourceProjection) {\n if (!userProjection) {\n return coordinate;\n }\n return transform(coordinate, sourceProjection, userProjection);\n}\n\n/**\n * Return a coordinate transformed from the user projection. If no user projection\n * is set, the original coordinate is returned.\n * @param {Array} coordinate Input coordinate.\n * @param {ProjectionLike} destProjection The destination projection.\n * @return {Array} The input coordinate transformed.\n */\nexport function fromUserCoordinate(coordinate, destProjection) {\n if (!userProjection) {\n if (\n showCoordinateWarning &&\n !equals(coordinate, [0, 0]) &&\n coordinate[0] >= -180 &&\n coordinate[0] <= 180 &&\n coordinate[1] >= -90 &&\n coordinate[1] <= 90\n ) {\n showCoordinateWarning = false;\n warn(\n 'Call useGeographic() from ol/proj once to work with [longitude, latitude] coordinates.',\n );\n }\n return coordinate;\n }\n return transform(coordinate, userProjection, destProjection);\n}\n\n/**\n * Return an extent transformed into the user projection. If no user projection\n * is set, the original extent is returned.\n * @param {import(\"./extent.js\").Extent} extent Input extent.\n * @param {ProjectionLike} sourceProjection The input extent projection.\n * @return {import(\"./extent.js\").Extent} The input extent in the user projection.\n */\nexport function toUserExtent(extent, sourceProjection) {\n if (!userProjection) {\n return extent;\n }\n return transformExtent(extent, sourceProjection, userProjection);\n}\n\n/**\n * Return an extent transformed from the user projection. If no user projection\n * is set, the original extent is returned.\n * @param {import(\"./extent.js\").Extent} extent Input extent.\n * @param {ProjectionLike} destProjection The destination projection.\n * @return {import(\"./extent.js\").Extent} The input extent transformed.\n */\nexport function fromUserExtent(extent, destProjection) {\n if (!userProjection) {\n return extent;\n }\n return transformExtent(extent, userProjection, destProjection);\n}\n\n/**\n * Return the resolution in user projection units per pixel. If no user projection\n * is set, or source or user projection are missing units, the original resolution\n * is returned.\n * @param {number} resolution Resolution in input projection units per pixel.\n * @param {ProjectionLike} sourceProjection The input projection.\n * @return {number} Resolution in user projection units per pixel.\n */\nexport function toUserResolution(resolution, sourceProjection) {\n if (!userProjection) {\n return resolution;\n }\n const sourceMetersPerUnit = get(sourceProjection)?.getMetersPerUnit();\n const userMetersPerUnit = userProjection.getMetersPerUnit();\n return sourceMetersPerUnit && userMetersPerUnit\n ? (resolution * sourceMetersPerUnit) / userMetersPerUnit\n : resolution;\n}\n\n/**\n * Return the resolution in user projection units per pixel. If no user projection\n * is set, or source or user projection are missing units, the original resolution\n * is returned.\n * @param {number} resolution Resolution in user projection units per pixel.\n * @param {ProjectionLike} destProjection The destination projection.\n * @return {number} Resolution in destination projection units per pixel.\n */\nexport function fromUserResolution(resolution, destProjection) {\n if (!userProjection) {\n return resolution;\n }\n const destMetersPerUnit = get(destProjection)?.getMetersPerUnit();\n const userMetersPerUnit = userProjection.getMetersPerUnit();\n return destMetersPerUnit && userMetersPerUnit\n ? (resolution * userMetersPerUnit) / destMetersPerUnit\n : resolution;\n}\n\n/**\n * Creates a safe coordinate transform function from a coordinate transform function.\n * \"Safe\" means that it can handle wrapping of x-coordinates for global projections,\n * and that coordinates exceeding the source projection validity extent's range will be\n * clamped to the validity range.\n * @param {Projection} sourceProj Source projection.\n * @param {Projection} destProj Destination projection.\n * @param {function(import(\"./coordinate.js\").Coordinate): import(\"./coordinate.js\").Coordinate} transform Transform function (source to destination).\n * @return {function(import(\"./coordinate.js\").Coordinate): import(\"./coordinate.js\").Coordinate} Safe transform function (source to destination).\n */\nexport function createSafeCoordinateTransform(sourceProj, destProj, transform) {\n return function (coord) {\n let transformed, worldsAway;\n if (sourceProj.canWrapX()) {\n const sourceExtent = sourceProj.getExtent();\n const sourceExtentWidth = getWidth(sourceExtent);\n coord = coord.slice(0);\n worldsAway = getWorldsAway(coord, sourceProj, sourceExtentWidth);\n if (worldsAway) {\n // Move x to the real world\n coord[0] = coord[0] - worldsAway * sourceExtentWidth;\n }\n coord[0] = clamp(coord[0], sourceExtent[0], sourceExtent[2]);\n coord[1] = clamp(coord[1], sourceExtent[1], sourceExtent[3]);\n transformed = transform(coord);\n } else {\n transformed = transform(coord);\n }\n if (worldsAway && destProj.canWrapX()) {\n // Move transformed coordinate back to the offset world\n transformed[0] += worldsAway * getWidth(destProj.getExtent());\n }\n return transformed;\n };\n}\n\n/**\n * Add transforms to and from EPSG:4326 and EPSG:3857. This function is called\n * by when this module is executed and should only need to be called again after\n * `clearAllProjections()` is called (e.g. in tests).\n */\nexport function addCommon() {\n // Add transformations that don't alter coordinates to convert within set of\n // projections with equal meaning.\n addEquivalentProjections(EPSG3857_PROJECTIONS);\n addEquivalentProjections(EPSG4326_PROJECTIONS);\n // Add transformations to convert EPSG:4326 like coordinates to EPSG:3857 like\n // coordinates and back.\n addEquivalentTransforms(\n EPSG4326_PROJECTIONS,\n EPSG3857_PROJECTIONS,\n fromEPSG4326,\n toEPSG4326,\n );\n}\n\naddCommon();\n","/**\n * @module ol/asserts\n */\n\n/**\n * @param {*} assertion Assertion we expected to be truthy.\n * @param {string} errorMessage Error message.\n */\nexport function assert(assertion, errorMessage) {\n if (!assertion) {\n throw new Error(errorMessage);\n }\n}\n","/**\n * @module ol/transform\n */\nimport {assert} from './asserts.js';\n\n/**\n * An array representing an affine 2d transformation for use with\n * {@link module:ol/transform} functions. The array has 6 elements.\n * @typedef {!Array} Transform\n * @api\n */\n\n/**\n * Collection of affine 2d transformation functions. The functions work on an\n * array of 6 elements. The element order is compatible with the [SVGMatrix\n * interface](https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix) and is\n * a subset (elements a to f) of a 3×3 matrix:\n * ```\n * [ a c e ]\n * [ b d f ]\n * [ 0 0 1 ]\n * ```\n */\n\n/** @type {Transform} */\nexport const IDENTITY_TRANSFORM = [1, 0, 0, 1, 0, 0];\n\n/**\n * @private\n * @type {Transform}\n */\nconst tmp_ = new Array(6);\n\n/**\n * Create an identity transform.\n * @return {!Transform} Identity transform.\n */\nexport function create() {\n return IDENTITY_TRANSFORM.slice(0);\n}\n\n/**\n * Resets the given transform to an identity transform.\n * @param {!Transform} transform Transform.\n * @return {!Transform} Transform.\n */\nexport function reset(transform) {\n return set(transform, 1, 0, 0, 1, 0, 0);\n}\n\n/**\n * Multiply the underlying matrices of two transforms and return the result in\n * the first transform.\n * @param {!Transform} transform1 Transform parameters of matrix 1.\n * @param {!Transform} transform2 Transform parameters of matrix 2.\n * @return {!Transform} transform1 multiplied with transform2.\n */\nexport function multiply(transform1, transform2) {\n const a1 = transform1[0];\n const b1 = transform1[1];\n const c1 = transform1[2];\n const d1 = transform1[3];\n const e1 = transform1[4];\n const f1 = transform1[5];\n const a2 = transform2[0];\n const b2 = transform2[1];\n const c2 = transform2[2];\n const d2 = transform2[3];\n const e2 = transform2[4];\n const f2 = transform2[5];\n\n transform1[0] = a1 * a2 + c1 * b2;\n transform1[1] = b1 * a2 + d1 * b2;\n transform1[2] = a1 * c2 + c1 * d2;\n transform1[3] = b1 * c2 + d1 * d2;\n transform1[4] = a1 * e2 + c1 * f2 + e1;\n transform1[5] = b1 * e2 + d1 * f2 + f1;\n\n return transform1;\n}\n\n/**\n * Set the transform components a-f on a given transform.\n * @param {!Transform} transform Transform.\n * @param {number} a The a component of the transform.\n * @param {number} b The b component of the transform.\n * @param {number} c The c component of the transform.\n * @param {number} d The d component of the transform.\n * @param {number} e The e component of the transform.\n * @param {number} f The f component of the transform.\n * @return {!Transform} Matrix with transform applied.\n */\nexport function set(transform, a, b, c, d, e, f) {\n transform[0] = a;\n transform[1] = b;\n transform[2] = c;\n transform[3] = d;\n transform[4] = e;\n transform[5] = f;\n return transform;\n}\n\n/**\n * Set transform on one matrix from another matrix.\n * @param {!Transform} transform1 Matrix to set transform to.\n * @param {!Transform} transform2 Matrix to set transform from.\n * @return {!Transform} transform1 with transform from transform2 applied.\n */\nexport function setFromArray(transform1, transform2) {\n transform1[0] = transform2[0];\n transform1[1] = transform2[1];\n transform1[2] = transform2[2];\n transform1[3] = transform2[3];\n transform1[4] = transform2[4];\n transform1[5] = transform2[5];\n return transform1;\n}\n\n/**\n * Transforms the given coordinate with the given transform returning the\n * resulting, transformed coordinate. The coordinate will be modified in-place.\n *\n * @param {Transform} transform The transformation.\n * @param {import(\"./coordinate.js\").Coordinate|import(\"./pixel.js\").Pixel} coordinate The coordinate to transform.\n * @return {import(\"./coordinate.js\").Coordinate|import(\"./pixel.js\").Pixel} return coordinate so that operations can be\n * chained together.\n */\nexport function apply(transform, coordinate) {\n const x = coordinate[0];\n const y = coordinate[1];\n coordinate[0] = transform[0] * x + transform[2] * y + transform[4];\n coordinate[1] = transform[1] * x + transform[3] * y + transform[5];\n return coordinate;\n}\n\n/**\n * Applies rotation to the given transform.\n * @param {!Transform} transform Transform.\n * @param {number} angle Angle in radians.\n * @return {!Transform} The rotated transform.\n */\nexport function rotate(transform, angle) {\n const cos = Math.cos(angle);\n const sin = Math.sin(angle);\n return multiply(transform, set(tmp_, cos, sin, -sin, cos, 0, 0));\n}\n\n/**\n * Applies scale to a given transform.\n * @param {!Transform} transform Transform.\n * @param {number} x Scale factor x.\n * @param {number} y Scale factor y.\n * @return {!Transform} The scaled transform.\n */\nexport function scale(transform, x, y) {\n return multiply(transform, set(tmp_, x, 0, 0, y, 0, 0));\n}\n\n/**\n * Creates a scale transform.\n * @param {!Transform} target Transform to overwrite.\n * @param {number} x Scale factor x.\n * @param {number} y Scale factor y.\n * @return {!Transform} The scale transform.\n */\nexport function makeScale(target, x, y) {\n return set(target, x, 0, 0, y, 0, 0);\n}\n\n/**\n * Applies translation to the given transform.\n * @param {!Transform} transform Transform.\n * @param {number} dx Translation x.\n * @param {number} dy Translation y.\n * @return {!Transform} The translated transform.\n */\nexport function translate(transform, dx, dy) {\n return multiply(transform, set(tmp_, 1, 0, 0, 1, dx, dy));\n}\n\n/**\n * Creates a composite transform given an initial translation, scale, rotation, and\n * final translation (in that order only, not commutative).\n * @param {!Transform} transform The transform (will be modified in place).\n * @param {number} dx1 Initial translation x.\n * @param {number} dy1 Initial translation y.\n * @param {number} sx Scale factor x.\n * @param {number} sy Scale factor y.\n * @param {number} angle Rotation (in counter-clockwise radians).\n * @param {number} dx2 Final translation x.\n * @param {number} dy2 Final translation y.\n * @return {!Transform} The composite transform.\n */\nexport function compose(transform, dx1, dy1, sx, sy, angle, dx2, dy2) {\n const sin = Math.sin(angle);\n const cos = Math.cos(angle);\n transform[0] = sx * cos;\n transform[1] = sy * sin;\n transform[2] = -sx * sin;\n transform[3] = sy * cos;\n transform[4] = dx2 * sx * cos - dy2 * sx * sin + dx1;\n transform[5] = dx2 * sy * sin + dy2 * sy * cos + dy1;\n return transform;\n}\n\n/**\n * Creates a composite transform given an initial translation, scale, rotation, and\n * final translation (in that order only, not commutative). The resulting transform\n * string can be applied as `transform` property of an HTMLElement's style.\n * @param {number} dx1 Initial translation x.\n * @param {number} dy1 Initial translation y.\n * @param {number} sx Scale factor x.\n * @param {number} sy Scale factor y.\n * @param {number} angle Rotation (in counter-clockwise radians).\n * @param {number} dx2 Final translation x.\n * @param {number} dy2 Final translation y.\n * @return {string} The composite css transform.\n * @api\n */\nexport function composeCssTransform(dx1, dy1, sx, sy, angle, dx2, dy2) {\n return toString(compose(create(), dx1, dy1, sx, sy, angle, dx2, dy2));\n}\n\n/**\n * Invert the given transform.\n * @param {!Transform} source The source transform to invert.\n * @return {!Transform} The inverted (source) transform.\n */\nexport function invert(source) {\n return makeInverse(source, source);\n}\n\n/**\n * Invert the given transform.\n * @param {!Transform} target Transform to be set as the inverse of\n * the source transform.\n * @param {!Transform} source The source transform to invert.\n * @return {!Transform} The inverted (target) transform.\n */\nexport function makeInverse(target, source) {\n const det = determinant(source);\n assert(det !== 0, 'Transformation matrix cannot be inverted');\n\n const a = source[0];\n const b = source[1];\n const c = source[2];\n const d = source[3];\n const e = source[4];\n const f = source[5];\n\n target[0] = d / det;\n target[1] = -b / det;\n target[2] = -c / det;\n target[3] = a / det;\n target[4] = (c * f - d * e) / det;\n target[5] = -(a * f - b * e) / det;\n\n return target;\n}\n\n/**\n * Returns the determinant of the given matrix.\n * @param {!Transform} mat Matrix.\n * @return {number} Determinant.\n */\nexport function determinant(mat) {\n return mat[0] * mat[3] - mat[1] * mat[2];\n}\n\n/**\n * @type {Array}\n */\nconst matrixPrecision = [1e5, 1e5, 1e5, 1e5, 2, 2];\n\n/**\n * A matrix string version of the transform. This can be used\n * for CSS transforms.\n * @param {!Transform} mat Matrix.\n * @return {string} The transform as a string.\n */\nexport function toString(mat) {\n const transformString = 'matrix(' + mat.join(', ') + ')';\n return transformString;\n}\n\n/**\n * Create a transform from a CSS transform matrix string.\n * @param {string} cssTransform The CSS string to parse.\n * @return {!Transform} The transform.\n */\nexport function fromString(cssTransform) {\n const values = cssTransform.substring(7, cssTransform.length - 1).split(',');\n return values.map(parseFloat);\n}\n\n/**\n * Compare two matrices for equality.\n * @param {!string} cssTransform1 A CSS transform matrix string.\n * @param {!string} cssTransform2 A CSS transform matrix string.\n * @return {boolean} The two matrices are equal.\n */\nexport function equivalent(cssTransform1, cssTransform2) {\n const mat1 = fromString(cssTransform1);\n const mat2 = fromString(cssTransform2);\n for (let i = 0; i < 6; ++i) {\n if (Math.round((mat1[i] - mat2[i]) * matrixPrecision[i]) !== 0) {\n return false;\n }\n }\n return true;\n}\n","/**\n * @module ol/geom/flat/transform\n */\n\n/**\n * @param {Array} flatCoordinates Flat coordinates.\n * @param {number} offset Offset.\n * @param {number} end End.\n * @param {number} stride Stride.\n * @param {import(\"../../transform.js\").Transform} transform Transform.\n * @param {Array} [dest] Destination.\n * @param {number} [destinationStride] Stride of destination coordinates; if unspecified, assumed to be 2.\n * @return {Array} Transformed coordinates.\n */\nexport function transform2D(\n flatCoordinates,\n offset,\n end,\n stride,\n transform,\n dest,\n destinationStride,\n) {\n dest = dest ? dest : [];\n destinationStride = destinationStride ? destinationStride : 2;\n let i = 0;\n for (let j = offset; j < end; j += stride) {\n const x = flatCoordinates[j];\n const y = flatCoordinates[j + 1];\n dest[i++] = transform[0] * x + transform[2] * y + transform[4];\n dest[i++] = transform[1] * x + transform[3] * y + transform[5];\n\n for (let k = 2; k < destinationStride; k++) {\n dest[i++] = flatCoordinates[j + k];\n }\n }\n\n if (dest && dest.length != i) {\n dest.length = i;\n }\n return dest;\n}\n\n/**\n * @param {Array} flatCoordinates Flat coordinates.\n * @param {number} offset Offset.\n * @param {number} end End.\n * @param {number} stride Stride.\n * @param {number} angle Angle.\n * @param {Array} anchor Rotation anchor point.\n * @param {Array} [dest] Destination.\n * @return {Array} Transformed coordinates.\n */\nexport function rotate(\n flatCoordinates,\n offset,\n end,\n stride,\n angle,\n anchor,\n dest,\n) {\n dest = dest ? dest : [];\n const cos = Math.cos(angle);\n const sin = Math.sin(angle);\n const anchorX = anchor[0];\n const anchorY = anchor[1];\n let i = 0;\n for (let j = offset; j < end; j += stride) {\n const deltaX = flatCoordinates[j] - anchorX;\n const deltaY = flatCoordinates[j + 1] - anchorY;\n dest[i++] = anchorX + deltaX * cos - deltaY * sin;\n dest[i++] = anchorY + deltaX * sin + deltaY * cos;\n for (let k = j + 2; k < j + stride; ++k) {\n dest[i++] = flatCoordinates[k];\n }\n }\n if (dest && dest.length != i) {\n dest.length = i;\n }\n return dest;\n}\n\n/**\n * Scale the coordinates.\n * @param {Array} flatCoordinates Flat coordinates.\n * @param {number} offset Offset.\n * @param {number} end End.\n * @param {number} stride Stride.\n * @param {number} sx Scale factor in the x-direction.\n * @param {number} sy Scale factor in the y-direction.\n * @param {Array} anchor Scale anchor point.\n * @param {Array} [dest] Destination.\n * @return {Array} Transformed coordinates.\n */\nexport function scale(\n flatCoordinates,\n offset,\n end,\n stride,\n sx,\n sy,\n anchor,\n dest,\n) {\n dest = dest ? dest : [];\n const anchorX = anchor[0];\n const anchorY = anchor[1];\n let i = 0;\n for (let j = offset; j < end; j += stride) {\n const deltaX = flatCoordinates[j] - anchorX;\n const deltaY = flatCoordinates[j + 1] - anchorY;\n dest[i++] = anchorX + sx * deltaX;\n dest[i++] = anchorY + sy * deltaY;\n for (let k = j + 2; k < j + stride; ++k) {\n dest[i++] = flatCoordinates[k];\n }\n }\n if (dest && dest.length != i) {\n dest.length = i;\n }\n return dest;\n}\n\n/**\n * @param {Array} flatCoordinates Flat coordinates.\n * @param {number} offset Offset.\n * @param {number} end End.\n * @param {number} stride Stride.\n * @param {number} deltaX Delta X.\n * @param {number} deltaY Delta Y.\n * @param {Array} [dest] Destination.\n * @return {Array} Transformed coordinates.\n */\nexport function translate(\n flatCoordinates,\n offset,\n end,\n stride,\n deltaX,\n deltaY,\n dest,\n) {\n dest = dest ? dest : [];\n let i = 0;\n for (let j = offset; j < end; j += stride) {\n dest[i++] = flatCoordinates[j] + deltaX;\n dest[i++] = flatCoordinates[j + 1] + deltaY;\n for (let k = j + 2; k < j + stride; ++k) {\n dest[i++] = flatCoordinates[k];\n }\n }\n if (dest && dest.length != i) {\n dest.length = i;\n }\n return dest;\n}\n","/**\n * @module ol/geom/Geometry\n */\nimport BaseObject from '../Object.js';\nimport {\n createEmpty,\n createOrUpdateEmpty,\n getHeight,\n returnOrUpdate,\n} from '../extent.js';\nimport {memoizeOne} from '../functions.js';\nimport {get as getProjection, getTransform} from '../proj.js';\nimport {\n compose as composeTransform,\n create as createTransform,\n} from '../transform.js';\nimport {abstract} from '../util.js';\nimport {transform2D} from './flat/transform.js';\n\n/**\n * @typedef {'XY' | 'XYZ' | 'XYM' | 'XYZM'} GeometryLayout\n * The coordinate layout for geometries, indicating whether a 3rd or 4th z ('Z')\n * or measure ('M') coordinate is available.\n */\n\n/**\n * @typedef {'Point' | 'LineString' | 'LinearRing' | 'Polygon' | 'MultiPoint' | 'MultiLineString' | 'MultiPolygon' | 'GeometryCollection' | 'Circle'} Type\n * The geometry type. One of `'Point'`, `'LineString'`, `'LinearRing'`,\n * `'Polygon'`, `'MultiPoint'`, `'MultiLineString'`, `'MultiPolygon'`,\n * `'GeometryCollection'`, or `'Circle'`.\n */\n\n/**\n * @type {import(\"../transform.js\").Transform}\n */\nconst tmpTransform = createTransform();\n\n/** @type {import('../coordinate.js').Coordinate} */\nconst tmpPoint = [NaN, NaN];\n\n/**\n * @classdesc\n * Abstract base class; normally only used for creating subclasses and not\n * instantiated in apps.\n * Base class for vector geometries.\n *\n * To get notified of changes to the geometry, register a listener for the\n * generic `change` event on your geometry instance.\n *\n * @abstract\n * @api\n */\nclass Geometry extends BaseObject {\n constructor() {\n super();\n\n /**\n * @private\n * @type {import(\"../extent.js\").Extent}\n */\n this.extent_ = createEmpty();\n\n /**\n * @private\n * @type {number}\n */\n this.extentRevision_ = -1;\n\n /**\n * @protected\n * @type {number}\n */\n this.simplifiedGeometryMaxMinSquaredTolerance = 0;\n\n /**\n * @protected\n * @type {number}\n */\n this.simplifiedGeometryRevision = 0;\n\n /**\n * Get a transformed and simplified version of the geometry.\n * @abstract\n * @param {number} revision The geometry revision.\n * @param {number} squaredTolerance Squared tolerance.\n * @param {import(\"../proj.js\").TransformFunction} [transform] Optional transform function.\n * @return {Geometry} Simplified geometry.\n */\n this.simplifyTransformedInternal = memoizeOne(\n (revision, squaredTolerance, transform) => {\n if (!transform) {\n return this.getSimplifiedGeometry(squaredTolerance);\n }\n const clone = this.clone();\n clone.applyTransform(transform);\n return clone.getSimplifiedGeometry(squaredTolerance);\n },\n );\n }\n\n /**\n * Get a transformed and simplified version of the geometry.\n * @abstract\n * @param {number} squaredTolerance Squared tolerance.\n * @param {import(\"../proj.js\").TransformFunction} [transform] Optional transform function.\n * @return {Geometry} Simplified geometry.\n */\n simplifyTransformed(squaredTolerance, transform) {\n return this.simplifyTransformedInternal(\n this.getRevision(),\n squaredTolerance,\n transform,\n );\n }\n\n /**\n * Make a complete copy of the geometry.\n * @abstract\n * @return {!Geometry} Clone.\n */\n clone() {\n return abstract();\n }\n\n /**\n * @abstract\n * @param {number} x X.\n * @param {number} y Y.\n * @param {import(\"../coordinate.js\").Coordinate} closestPoint Closest point.\n * @param {number} minSquaredDistance Minimum squared distance.\n * @return {number} Minimum squared distance.\n */\n closestPointXY(x, y, closestPoint, minSquaredDistance) {\n return abstract();\n }\n\n /**\n * @param {number} x X.\n * @param {number} y Y.\n * @return {boolean} Contains (x, y).\n */\n containsXY(x, y) {\n return this.closestPointXY(x, y, tmpPoint, Number.MIN_VALUE) === 0;\n }\n\n /**\n * Return the closest point of the geometry to the passed point as\n * {@link module:ol/coordinate~Coordinate coordinate}.\n * @param {import(\"../coordinate.js\").Coordinate} point Point.\n * @param {import(\"../coordinate.js\").Coordinate} [closestPoint] Closest point.\n * @return {import(\"../coordinate.js\").Coordinate} Closest point.\n * @api\n */\n getClosestPoint(point, closestPoint) {\n closestPoint = closestPoint ? closestPoint : [NaN, NaN];\n this.closestPointXY(point[0], point[1], closestPoint, Infinity);\n return closestPoint;\n }\n\n /**\n * Returns true if this geometry includes the specified coordinate. If the\n * coordinate is on the boundary of the geometry, returns false.\n * @param {import(\"../coordinate.js\").Coordinate} coordinate Coordinate.\n * @return {boolean} Contains coordinate.\n * @api\n */\n intersectsCoordinate(coordinate) {\n return this.containsXY(coordinate[0], coordinate[1]);\n }\n\n /**\n * @abstract\n * @param {import(\"../extent.js\").Extent} extent Extent.\n * @protected\n * @return {import(\"../extent.js\").Extent} extent Extent.\n */\n computeExtent(extent) {\n return abstract();\n }\n\n /**\n * Get the extent of the geometry.\n * @param {import(\"../extent.js\").Extent} [extent] Extent.\n * @return {import(\"../extent.js\").Extent} extent Extent.\n * @api\n */\n getExtent(extent) {\n if (this.extentRevision_ != this.getRevision()) {\n const extent = this.computeExtent(this.extent_);\n if (isNaN(extent[0]) || isNaN(extent[1])) {\n createOrUpdateEmpty(extent);\n }\n this.extentRevision_ = this.getRevision();\n }\n return returnOrUpdate(this.extent_, extent);\n }\n\n /**\n * Rotate the geometry around a given coordinate. This modifies the geometry\n * coordinates in place.\n * @abstract\n * @param {number} angle Rotation angle in radians.\n * @param {import(\"../coordinate.js\").Coordinate} anchor The rotation center.\n * @api\n */\n rotate(angle, anchor) {\n abstract();\n }\n\n /**\n * Scale the geometry (with an optional origin). This modifies the geometry\n * coordinates in place.\n * @abstract\n * @param {number} sx The scaling factor in the x-direction.\n * @param {number} [sy] The scaling factor in the y-direction (defaults to sx).\n * @param {import(\"../coordinate.js\").Coordinate} [anchor] The scale origin (defaults to the center\n * of the geometry extent).\n * @api\n */\n scale(sx, sy, anchor) {\n abstract();\n }\n\n /**\n * Create a simplified version of this geometry. For linestrings, this uses\n * the [Douglas Peucker](https://en.wikipedia.org/wiki/Ramer-Douglas-Peucker_algorithm)\n * algorithm. For polygons, a quantization-based\n * simplification is used to preserve topology.\n * @param {number} tolerance The tolerance distance for simplification.\n * @return {Geometry} A new, simplified version of the original geometry.\n * @api\n */\n simplify(tolerance) {\n return this.getSimplifiedGeometry(tolerance * tolerance);\n }\n\n /**\n * Create a simplified version of this geometry using the Douglas Peucker\n * algorithm.\n * See https://en.wikipedia.org/wiki/Ramer-Douglas-Peucker_algorithm.\n * @abstract\n * @param {number} squaredTolerance Squared tolerance.\n * @return {Geometry} Simplified geometry.\n */\n getSimplifiedGeometry(squaredTolerance) {\n return abstract();\n }\n\n /**\n * Get the type of this geometry.\n * @abstract\n * @return {Type} Geometry type.\n */\n getType() {\n return abstract();\n }\n\n /**\n * Apply a transform function to the coordinates of the geometry.\n * The geometry is modified in place.\n * If you do not want the geometry modified in place, first `clone()` it and\n * then use this function on the clone.\n * @abstract\n * @param {import(\"../proj.js\").TransformFunction} transformFn Transform function.\n * Called with a flat array of geometry coordinates.\n */\n applyTransform(transformFn) {\n abstract();\n }\n\n /**\n * Test if the geometry and the passed extent intersect.\n * @abstract\n * @param {import(\"../extent.js\").Extent} extent Extent.\n * @return {boolean} `true` if the geometry and the extent intersect.\n */\n intersectsExtent(extent) {\n return abstract();\n }\n\n /**\n * Translate the geometry. This modifies the geometry coordinates in place. If\n * instead you want a new geometry, first `clone()` this geometry.\n * @abstract\n * @param {number} deltaX Delta X.\n * @param {number} deltaY Delta Y.\n * @api\n */\n translate(deltaX, deltaY) {\n abstract();\n }\n\n /**\n * Transform each coordinate of the geometry from one coordinate reference\n * system to another. The geometry is modified in place.\n * For example, a line will be transformed to a line and a circle to a circle.\n * If you do not want the geometry modified in place, first `clone()` it and\n * then use this function on the clone.\n *\n * @param {import(\"../proj.js\").ProjectionLike} source The current projection. Can be a\n * string identifier or a {@link module:ol/proj/Projection~Projection} object.\n * @param {import(\"../proj.js\").ProjectionLike} destination The desired projection. Can be a\n * string identifier or a {@link module:ol/proj/Projection~Projection} object.\n * @return {this} This geometry. Note that original geometry is\n * modified in place.\n * @api\n */\n transform(source, destination) {\n const sourceProj = getProjection(source);\n if (!sourceProj) {\n return this;\n }\n const transformFn =\n sourceProj.getUnits() == 'tile-pixels'\n ? /**\n * @param {Array} inCoordinates Input coordinates.\n * @param {Array} outCoordinates Output coordinates.\n * @param {number} stride Stride.\n * @return {Array} Output coordinates.\n */\n function (inCoordinates, outCoordinates, stride) {\n const pixelExtent = sourceProj.getExtent();\n const projectedExtent = sourceProj.getWorldExtent();\n const scale = getHeight(projectedExtent) / getHeight(pixelExtent);\n composeTransform(\n tmpTransform,\n projectedExtent[0],\n projectedExtent[3],\n scale,\n -scale,\n 0,\n 0,\n 0,\n );\n const transformed = transform2D(\n inCoordinates,\n 0,\n inCoordinates.length,\n stride,\n tmpTransform,\n outCoordinates,\n );\n const projTransform = getTransform(sourceProj, destination);\n if (projTransform) {\n return projTransform(transformed, transformed, stride);\n }\n return transformed;\n }\n : getTransform(sourceProj, destination);\n if (transformFn) {\n this.applyTransform(\n /** @type {import(\"../proj.js\").TransformFunction} */ (transformFn),\n );\n }\n return this;\n }\n}\n\nexport default Geometry;\n","/**\n * @module ol/geom/SimpleGeometry\n */\nimport {createOrUpdateFromFlatCoordinates, getCenter} from '../extent.js';\nimport {abstract} from '../util.js';\nimport Geometry from './Geometry.js';\nimport {rotate, scale, transform2D, translate} from './flat/transform.js';\n\n/**\n * @classdesc\n * Abstract base class; only used for creating subclasses; do not instantiate\n * in apps, as cannot be rendered.\n *\n * @abstract\n * @api\n */\nclass SimpleGeometry extends Geometry {\n constructor() {\n super();\n\n /**\n * @protected\n * @type {import(\"./Geometry.js\").GeometryLayout}\n */\n this.layout = 'XY';\n\n /**\n * @protected\n * @type {number}\n */\n this.stride = 2;\n\n /**\n * @protected\n * @type {Array}\n */\n this.flatCoordinates;\n }\n\n /**\n * @param {import(\"../extent.js\").Extent} extent Extent.\n * @protected\n * @return {import(\"../extent.js\").Extent} extent Extent.\n * @override\n */\n computeExtent(extent) {\n return createOrUpdateFromFlatCoordinates(\n this.flatCoordinates,\n 0,\n this.flatCoordinates.length,\n this.stride,\n extent,\n );\n }\n\n /**\n * @abstract\n * @return {Array<*> | null} Coordinates.\n */\n getCoordinates() {\n return abstract();\n }\n\n /**\n * Return the first coordinate of the geometry.\n * @return {import(\"../coordinate.js\").Coordinate} First coordinate.\n * @api\n */\n getFirstCoordinate() {\n return this.flatCoordinates.slice(0, this.stride);\n }\n\n /**\n * @return {Array} Flat coordinates.\n */\n getFlatCoordinates() {\n return this.flatCoordinates;\n }\n\n /**\n * Return the last coordinate of the geometry.\n * @return {import(\"../coordinate.js\").Coordinate} Last point.\n * @api\n */\n getLastCoordinate() {\n return this.flatCoordinates.slice(\n this.flatCoordinates.length - this.stride,\n );\n }\n\n /**\n * Return the {@link import(\"./Geometry.js\").GeometryLayout layout} of the geometry.\n * @return {import(\"./Geometry.js\").GeometryLayout} Layout.\n * @api\n */\n getLayout() {\n return this.layout;\n }\n\n /**\n * Create a simplified version of this geometry using the Douglas Peucker algorithm.\n * @param {number} squaredTolerance Squared tolerance.\n * @return {SimpleGeometry} Simplified geometry.\n * @override\n */\n getSimplifiedGeometry(squaredTolerance) {\n if (this.simplifiedGeometryRevision !== this.getRevision()) {\n this.simplifiedGeometryMaxMinSquaredTolerance = 0;\n this.simplifiedGeometryRevision = this.getRevision();\n }\n // If squaredTolerance is negative or if we know that simplification will not\n // have any effect then just return this.\n if (\n squaredTolerance < 0 ||\n (this.simplifiedGeometryMaxMinSquaredTolerance !== 0 &&\n squaredTolerance <= this.simplifiedGeometryMaxMinSquaredTolerance)\n ) {\n return this;\n }\n\n const simplifiedGeometry =\n this.getSimplifiedGeometryInternal(squaredTolerance);\n const simplifiedFlatCoordinates = simplifiedGeometry.getFlatCoordinates();\n if (simplifiedFlatCoordinates.length < this.flatCoordinates.length) {\n return simplifiedGeometry;\n }\n // Simplification did not actually remove any coordinates. We now know\n // that any calls to getSimplifiedGeometry with a squaredTolerance less\n // than or equal to the current squaredTolerance will also not have any\n // effect. This allows us to short circuit simplification (saving CPU\n // cycles) and prevents the cache of simplified geometries from filling\n // up with useless identical copies of this geometry (saving memory).\n this.simplifiedGeometryMaxMinSquaredTolerance = squaredTolerance;\n return this;\n }\n\n /**\n * @param {number} squaredTolerance Squared tolerance.\n * @return {SimpleGeometry} Simplified geometry.\n * @protected\n */\n getSimplifiedGeometryInternal(squaredTolerance) {\n return this;\n }\n\n /**\n * @return {number} Stride.\n */\n getStride() {\n return this.stride;\n }\n\n /**\n * @param {import(\"./Geometry.js\").GeometryLayout} layout Layout.\n * @param {Array} flatCoordinates Flat coordinates.\n */\n setFlatCoordinates(layout, flatCoordinates) {\n this.stride = getStrideForLayout(layout);\n this.layout = layout;\n this.flatCoordinates = flatCoordinates;\n }\n\n /**\n * @abstract\n * @param {!Array<*>} coordinates Coordinates.\n * @param {import(\"./Geometry.js\").GeometryLayout} [layout] Layout.\n */\n setCoordinates(coordinates, layout) {\n abstract();\n }\n\n /**\n * @param {import(\"./Geometry.js\").GeometryLayout|undefined} layout Layout.\n * @param {Array<*>} coordinates Coordinates.\n * @param {number} nesting Nesting.\n * @protected\n */\n setLayout(layout, coordinates, nesting) {\n let stride;\n if (layout) {\n stride = getStrideForLayout(layout);\n } else {\n for (let i = 0; i < nesting; ++i) {\n if (coordinates.length === 0) {\n this.layout = 'XY';\n this.stride = 2;\n return;\n }\n coordinates = /** @type {Array} */ (coordinates[0]);\n }\n stride = coordinates.length;\n layout = getLayoutForStride(stride);\n }\n this.layout = layout;\n this.stride = stride;\n }\n\n /**\n * Apply a transform function to the coordinates of the geometry.\n * The geometry is modified in place.\n * If you do not want the geometry modified in place, first `clone()` it and\n * then use this function on the clone.\n * @param {import(\"../proj.js\").TransformFunction} transformFn Transform function.\n * Called with a flat array of geometry coordinates.\n * @api\n * @override\n */\n applyTransform(transformFn) {\n if (this.flatCoordinates) {\n transformFn(\n this.flatCoordinates,\n this.flatCoordinates,\n this.layout.startsWith('XYZ') ? 3 : 2,\n this.stride,\n );\n this.changed();\n }\n }\n\n /**\n * Rotate the geometry around a given coordinate. This modifies the geometry\n * coordinates in place.\n * @param {number} angle Rotation angle in counter-clockwise radians.\n * @param {import(\"../coordinate.js\").Coordinate} anchor The rotation center.\n * @api\n * @override\n */\n rotate(angle, anchor) {\n const flatCoordinates = this.getFlatCoordinates();\n if (flatCoordinates) {\n const stride = this.getStride();\n rotate(\n flatCoordinates,\n 0,\n flatCoordinates.length,\n stride,\n angle,\n anchor,\n flatCoordinates,\n );\n this.changed();\n }\n }\n\n /**\n * Scale the geometry (with an optional origin). This modifies the geometry\n * coordinates in place.\n * @param {number} sx The scaling factor in the x-direction.\n * @param {number} [sy] The scaling factor in the y-direction (defaults to sx).\n * @param {import(\"../coordinate.js\").Coordinate} [anchor] The scale origin (defaults to the center\n * of the geometry extent).\n * @api\n * @override\n */\n scale(sx, sy, anchor) {\n if (sy === undefined) {\n sy = sx;\n }\n if (!anchor) {\n anchor = getCenter(this.getExtent());\n }\n const flatCoordinates = this.getFlatCoordinates();\n if (flatCoordinates) {\n const stride = this.getStride();\n scale(\n flatCoordinates,\n 0,\n flatCoordinates.length,\n stride,\n sx,\n sy,\n anchor,\n flatCoordinates,\n );\n this.changed();\n }\n }\n\n /**\n * Translate the geometry. This modifies the geometry coordinates in place. If\n * instead you want a new geometry, first `clone()` this geometry.\n * @param {number} deltaX Delta X.\n * @param {number} deltaY Delta Y.\n * @api\n * @override\n */\n translate(deltaX, deltaY) {\n const flatCoordinates = this.getFlatCoordinates();\n if (flatCoordinates) {\n const stride = this.getStride();\n translate(\n flatCoordinates,\n 0,\n flatCoordinates.length,\n stride,\n deltaX,\n deltaY,\n flatCoordinates,\n );\n this.changed();\n }\n }\n}\n\n/**\n * @param {number} stride Stride.\n * @return {import(\"./Geometry.js\").GeometryLayout} layout Layout.\n */\nexport function getLayoutForStride(stride) {\n let layout;\n if (stride == 2) {\n layout = 'XY';\n } else if (stride == 3) {\n layout = 'XYZ';\n } else if (stride == 4) {\n layout = 'XYZM';\n }\n return /** @type {import(\"./Geometry.js\").GeometryLayout} */ (layout);\n}\n\n/**\n * @param {import(\"./Geometry.js\").GeometryLayout} layout Layout.\n * @return {number} Stride.\n */\nexport function getStrideForLayout(layout) {\n let stride;\n if (layout == 'XY') {\n stride = 2;\n } else if (layout == 'XYZ' || layout == 'XYM') {\n stride = 3;\n } else if (layout == 'XYZM') {\n stride = 4;\n }\n return /** @type {number} */ (stride);\n}\n\n/**\n * @param {SimpleGeometry} simpleGeometry Simple geometry.\n * @param {import(\"../transform.js\").Transform} transform Transform.\n * @param {Array} [dest] Destination.\n * @return {Array|null} Transformed flat coordinates.\n */\nexport function transformGeom2D(simpleGeometry, transform, dest) {\n const flatCoordinates = simpleGeometry.getFlatCoordinates();\n if (!flatCoordinates) {\n return null;\n }\n const stride = simpleGeometry.getStride();\n return transform2D(\n flatCoordinates,\n 0,\n flatCoordinates.length,\n stride,\n transform,\n dest,\n );\n}\n\nexport default SimpleGeometry;\n","/**\n * @module ol/geom/flat/deflate\n */\n\n/**\n * @param {Array} flatCoordinates Flat coordinates.\n * @param {number} offset Offset.\n * @param {import(\"../../coordinate.js\").Coordinate} coordinate Coordinate.\n * @param {number} stride Stride.\n * @return {number} offset Offset.\n */\nexport function deflateCoordinate(flatCoordinates, offset, coordinate, stride) {\n for (let i = 0; i < stride; ++i) {\n flatCoordinates[offset++] = coordinate[i];\n }\n return offset;\n}\n\n/**\n * @param {Array} flatCoordinates Flat coordinates.\n * @param {number} offset Offset.\n * @param {Array} coordinates Coordinates.\n * @param {number} stride Stride.\n * @return {number} offset Offset.\n */\nexport function deflateCoordinates(\n flatCoordinates,\n offset,\n coordinates,\n stride,\n) {\n for (let i = 0, ii = coordinates.length; i < ii; ++i) {\n const coordinate = coordinates[i];\n for (let j = 0; j < stride; ++j) {\n flatCoordinates[offset++] = coordinate[j];\n }\n }\n return offset;\n}\n\n/**\n * @param {Array} flatCoordinates Flat coordinates.\n * @param {number} offset Offset.\n * @param {Array>} coordinatess Coordinatess.\n * @param {number} stride Stride.\n * @param {Array} [ends] Ends.\n * @return {Array} Ends.\n */\nexport function deflateCoordinatesArray(\n flatCoordinates,\n offset,\n coordinatess,\n stride,\n ends,\n) {\n ends = ends ? ends : [];\n let i = 0;\n for (let j = 0, jj = coordinatess.length; j < jj; ++j) {\n const end = deflateCoordinates(\n flatCoordinates,\n offset,\n coordinatess[j],\n stride,\n );\n ends[i++] = end;\n offset = end;\n }\n ends.length = i;\n return ends;\n}\n\n/**\n * @param {Array} flatCoordinates Flat coordinates.\n * @param {number} offset Offset.\n * @param {Array>>} coordinatesss Coordinatesss.\n * @param {number} stride Stride.\n * @param {Array>} [endss] Endss.\n * @return {Array>} Endss.\n */\nexport function deflateMultiCoordinatesArray(\n flatCoordinates,\n offset,\n coordinatesss,\n stride,\n endss,\n) {\n endss = endss ? endss : [];\n let i = 0;\n for (let j = 0, jj = coordinatesss.length; j < jj; ++j) {\n const ends = deflateCoordinatesArray(\n flatCoordinates,\n offset,\n coordinatesss[j],\n stride,\n endss[i],\n );\n if (ends.length === 0) {\n ends[0] = offset;\n }\n endss[i++] = ends;\n offset = ends[ends.length - 1];\n }\n endss.length = i;\n return endss;\n}\n","/**\n * @module ol/geom/Circle\n */\nimport {createOrUpdate, forEachCorner, intersects} from '../extent.js';\nimport SimpleGeometry from './SimpleGeometry.js';\nimport {deflateCoordinate} from './flat/deflate.js';\nimport {rotate} from './flat/transform.js';\n\n/**\n * @classdesc\n * Circle geometry.\n *\n * @api\n */\nclass Circle extends SimpleGeometry {\n /**\n * @param {!import(\"../coordinate.js\").Coordinate} center Center.\n * For internal use, flat coordinates in combination with `layout` and no\n * `radius` are also accepted.\n * @param {number} [radius] Radius in units of the projection.\n * @param {import(\"./Geometry.js\").GeometryLayout} [layout] Layout.\n */\n constructor(center, radius, layout) {\n super();\n if (layout !== undefined && radius === undefined) {\n this.setFlatCoordinates(layout, center);\n } else {\n radius = radius ? radius : 0;\n this.setCenterAndRadius(center, radius, layout);\n }\n }\n\n /**\n * Make a complete copy of the geometry.\n * @return {!Circle} Clone.\n * @api\n * @override\n */\n clone() {\n const circle = new Circle(\n this.flatCoordinates.slice(),\n undefined,\n this.layout,\n );\n circle.applyProperties(this);\n return circle;\n }\n\n /**\n * @param {number} x X.\n * @param {number} y Y.\n * @param {import(\"../coordinate.js\").Coordinate} closestPoint Closest point.\n * @param {number} minSquaredDistance Minimum squared distance.\n * @return {number} Minimum squared distance.\n * @override\n */\n closestPointXY(x, y, closestPoint, minSquaredDistance) {\n const flatCoordinates = this.flatCoordinates;\n const dx = x - flatCoordinates[0];\n const dy = y - flatCoordinates[1];\n const squaredDistance = dx * dx + dy * dy;\n if (squaredDistance < minSquaredDistance) {\n if (squaredDistance === 0) {\n for (let i = 0; i < this.stride; ++i) {\n closestPoint[i] = flatCoordinates[i];\n }\n } else {\n const delta = this.getRadius() / Math.sqrt(squaredDistance);\n closestPoint[0] = flatCoordinates[0] + delta * dx;\n closestPoint[1] = flatCoordinates[1] + delta * dy;\n for (let i = 2; i < this.stride; ++i) {\n closestPoint[i] = flatCoordinates[i];\n }\n }\n closestPoint.length = this.stride;\n return squaredDistance;\n }\n return minSquaredDistance;\n }\n\n /**\n * @param {number} x X.\n * @param {number} y Y.\n * @return {boolean} Contains (x, y).\n * @override\n */\n containsXY(x, y) {\n const flatCoordinates = this.flatCoordinates;\n const dx = x - flatCoordinates[0];\n const dy = y - flatCoordinates[1];\n return dx * dx + dy * dy <= this.getRadiusSquared_();\n }\n\n /**\n * Return the center of the circle as {@link module:ol/coordinate~Coordinate coordinate}.\n * @return {import(\"../coordinate.js\").Coordinate} Center.\n * @api\n */\n getCenter() {\n return this.flatCoordinates.slice(0, this.stride);\n }\n\n /**\n * @param {import(\"../extent.js\").Extent} extent Extent.\n * @protected\n * @return {import(\"../extent.js\").Extent} extent Extent.\n * @override\n */\n computeExtent(extent) {\n const flatCoordinates = this.flatCoordinates;\n const radius = flatCoordinates[this.stride] - flatCoordinates[0];\n return createOrUpdate(\n flatCoordinates[0] - radius,\n flatCoordinates[1] - radius,\n flatCoordinates[0] + radius,\n flatCoordinates[1] + radius,\n extent,\n );\n }\n\n /**\n * Return the radius of the circle.\n * @return {number} Radius.\n * @api\n */\n getRadius() {\n return Math.sqrt(this.getRadiusSquared_());\n }\n\n /**\n * @private\n * @return {number} Radius squared.\n */\n getRadiusSquared_() {\n const dx = this.flatCoordinates[this.stride] - this.flatCoordinates[0];\n const dy = this.flatCoordinates[this.stride + 1] - this.flatCoordinates[1];\n return dx * dx + dy * dy;\n }\n\n /**\n * Get the type of this geometry.\n * @return {import(\"./Geometry.js\").Type} Geometry type.\n * @api\n * @override\n */\n getType() {\n return 'Circle';\n }\n\n /**\n * Test if the geometry and the passed extent intersect.\n * @param {import(\"../extent.js\").Extent} extent Extent.\n * @return {boolean} `true` if the geometry and the extent intersect.\n * @api\n * @override\n */\n intersectsExtent(extent) {\n const circleExtent = this.getExtent();\n if (intersects(extent, circleExtent)) {\n const center = this.getCenter();\n\n if (extent[0] <= center[0] && extent[2] >= center[0]) {\n return true;\n }\n if (extent[1] <= center[1] && extent[3] >= center[1]) {\n return true;\n }\n\n return forEachCorner(extent, this.intersectsCoordinate.bind(this));\n }\n return false;\n }\n\n /**\n * Set the center of the circle as {@link module:ol/coordinate~Coordinate coordinate}.\n * @param {import(\"../coordinate.js\").Coordinate} center Center.\n * @api\n */\n setCenter(center) {\n const stride = this.stride;\n const radius = this.flatCoordinates[stride] - this.flatCoordinates[0];\n const flatCoordinates = center.slice();\n flatCoordinates[stride] = flatCoordinates[0] + radius;\n for (let i = 1; i < stride; ++i) {\n flatCoordinates[stride + i] = center[i];\n }\n this.setFlatCoordinates(this.layout, flatCoordinates);\n this.changed();\n }\n\n /**\n * Set the center (as {@link module:ol/coordinate~Coordinate coordinate}) and the radius (as\n * number) of the circle.\n * @param {!import(\"../coordinate.js\").Coordinate} center Center.\n * @param {number} radius Radius.\n * @param {import(\"./Geometry.js\").GeometryLayout} [layout] Layout.\n * @api\n */\n setCenterAndRadius(center, radius, layout) {\n this.setLayout(layout, center, 0);\n if (!this.flatCoordinates) {\n this.flatCoordinates = [];\n }\n /** @type {Array} */\n const flatCoordinates = this.flatCoordinates;\n let offset = deflateCoordinate(flatCoordinates, 0, center, this.stride);\n flatCoordinates[offset++] = flatCoordinates[0] + radius;\n for (let i = 1, ii = this.stride; i < ii; ++i) {\n flatCoordinates[offset++] = flatCoordinates[i];\n }\n flatCoordinates.length = offset;\n this.changed();\n }\n\n /**\n * @override\n */\n getCoordinates() {\n return null;\n }\n\n /**\n * @param {import(\"../coordinate.js\").Coordinate} coordinates Coordinates.\n * @param {import(\"./Geometry.js\").GeometryLayout} [layout] Layout.\n * @override\n */\n setCoordinates(coordinates, layout) {}\n\n /**\n * Set the radius of the circle. The radius is in the units of the projection.\n * @param {number} radius Radius.\n * @api\n */\n setRadius(radius) {\n this.flatCoordinates[this.stride] = this.flatCoordinates[0] + radius;\n this.changed();\n }\n\n /**\n * Rotate the geometry around a given coordinate. This modifies the geometry\n * coordinates in place.\n * @param {number} angle Rotation angle in counter-clockwise radians.\n * @param {import(\"../coordinate.js\").Coordinate} anchor The rotation center.\n * @api\n * @override\n */\n rotate(angle, anchor) {\n const center = this.getCenter();\n const stride = this.getStride();\n this.setCenter(\n rotate(center, 0, center.length, stride, angle, anchor, center),\n );\n this.changed();\n }\n}\n\n/**\n * Transform each coordinate of the circle from one coordinate reference system\n * to another. The geometry is modified in place.\n * If you do not want the geometry modified in place, first clone() it and\n * then use this function on the clone.\n *\n * Internally a circle is currently represented by two points: the center of\n * the circle `[cx, cy]`, and the point to the right of the circle\n * `[cx + r, cy]`. This `transform` function just transforms these two points.\n * So the resulting geometry is also a circle, and that circle does not\n * correspond to the shape that would be obtained by transforming every point\n * of the original circle.\n *\n * @param {import(\"../proj.js\").ProjectionLike} source The current projection. Can be a\n * string identifier or a {@link module:ol/proj/Projection~Projection} object.\n * @param {import(\"../proj.js\").ProjectionLike} destination The desired projection. Can be a\n * string identifier or a {@link module:ol/proj/Projection~Projection} object.\n * @return {Circle} This geometry. Note that original geometry is\n * modified in place.\n * @function\n * @api\n */\nCircle.prototype.transform;\nexport default Circle;\n","/**\n * @module ol/geom/flat/area\n */\n\n/**\n * @param {Array} flatCoordinates Flat coordinates.\n * @param {number} offset Offset.\n * @param {number} end End.\n * @param {number} stride Stride.\n * @return {number} Area.\n */\nexport function linearRing(flatCoordinates, offset, end, stride) {\n let twiceArea = 0;\n const x0 = flatCoordinates[end - stride];\n const y0 = flatCoordinates[end - stride + 1];\n let dx1 = 0;\n let dy1 = 0;\n for (; offset < end; offset += stride) {\n const dx2 = flatCoordinates[offset] - x0;\n const dy2 = flatCoordinates[offset + 1] - y0;\n twiceArea += dy1 * dx2 - dx1 * dy2;\n dx1 = dx2;\n dy1 = dy2;\n }\n return twiceArea / 2;\n}\n\n/**\n * @param {Array} flatCoordinates Flat coordinates.\n * @param {number} offset Offset.\n * @param {Array} ends Ends.\n * @param {number} stride Stride.\n * @return {number} Area.\n */\nexport function linearRings(flatCoordinates, offset, ends, stride) {\n let area = 0;\n for (let i = 0, ii = ends.length; i < ii; ++i) {\n const end = ends[i];\n area += linearRing(flatCoordinates, offset, end, stride);\n offset = end;\n }\n return area;\n}\n\n/**\n * @param {Array} flatCoordinates Flat coordinates.\n * @param {number} offset Offset.\n * @param {Array>} endss Endss.\n * @param {number} stride Stride.\n * @return {number} Area.\n */\nexport function linearRingss(flatCoordinates, offset, endss, stride) {\n let area = 0;\n for (let i = 0, ii = endss.length; i < ii; ++i) {\n const ends = endss[i];\n area += linearRings(flatCoordinates, offset, ends, stride);\n offset = ends[ends.length - 1];\n }\n return area;\n}\n","/**\n * @module ol/geom/flat/closest\n */\nimport {lerp, squaredDistance as squaredDx} from '../../math.js';\n\n/**\n * Returns the point on the 2D line segment flatCoordinates[offset1] to\n * flatCoordinates[offset2] that is closest to the point (x, y). Extra\n * dimensions are linearly interpolated.\n * @param {Array} flatCoordinates Flat coordinates.\n * @param {number} offset1 Offset 1.\n * @param {number} offset2 Offset 2.\n * @param {number} stride Stride.\n * @param {number} x X.\n * @param {number} y Y.\n * @param {Array} closestPoint Closest point.\n */\nfunction assignClosest(\n flatCoordinates,\n offset1,\n offset2,\n stride,\n x,\n y,\n closestPoint,\n) {\n const x1 = flatCoordinates[offset1];\n const y1 = flatCoordinates[offset1 + 1];\n const dx = flatCoordinates[offset2] - x1;\n const dy = flatCoordinates[offset2 + 1] - y1;\n let offset;\n if (dx === 0 && dy === 0) {\n offset = offset1;\n } else {\n const t = ((x - x1) * dx + (y - y1) * dy) / (dx * dx + dy * dy);\n if (t > 1) {\n offset = offset2;\n } else if (t > 0) {\n for (let i = 0; i < stride; ++i) {\n closestPoint[i] = lerp(\n flatCoordinates[offset1 + i],\n flatCoordinates[offset2 + i],\n t,\n );\n }\n closestPoint.length = stride;\n return;\n } else {\n offset = offset1;\n }\n }\n for (let i = 0; i < stride; ++i) {\n closestPoint[i] = flatCoordinates[offset + i];\n }\n closestPoint.length = stride;\n}\n\n/**\n * Return the squared of the largest distance between any pair of consecutive\n * coordinates.\n * @param {Array} flatCoordinates Flat coordinates.\n * @param {number} offset Offset.\n * @param {number} end End.\n * @param {number} stride Stride.\n * @param {number} max Max squared delta.\n * @return {number} Max squared delta.\n */\nexport function maxSquaredDelta(flatCoordinates, offset, end, stride, max) {\n let x1 = flatCoordinates[offset];\n let y1 = flatCoordinates[offset + 1];\n for (offset += stride; offset < end; offset += stride) {\n const x2 = flatCoordinates[offset];\n const y2 = flatCoordinates[offset + 1];\n const squaredDelta = squaredDx(x1, y1, x2, y2);\n if (squaredDelta > max) {\n max = squaredDelta;\n }\n x1 = x2;\n y1 = y2;\n }\n return max;\n}\n\n/**\n * @param {Array} flatCoordinates Flat coordinates.\n * @param {number} offset Offset.\n * @param {Array} ends Ends.\n * @param {number} stride Stride.\n * @param {number} max Max squared delta.\n * @return {number} Max squared delta.\n */\nexport function arrayMaxSquaredDelta(\n flatCoordinates,\n offset,\n ends,\n stride,\n max,\n) {\n for (let i = 0, ii = ends.length; i < ii; ++i) {\n const end = ends[i];\n max = maxSquaredDelta(flatCoordinates, offset, end, stride, max);\n offset = end;\n }\n return max;\n}\n\n/**\n * @param {Array} flatCoordinates Flat coordinates.\n * @param {number} offset Offset.\n * @param {Array>} endss Endss.\n * @param {number} stride Stride.\n * @param {number} max Max squared delta.\n * @return {number} Max squared delta.\n */\nexport function multiArrayMaxSquaredDelta(\n flatCoordinates,\n offset,\n endss,\n stride,\n max,\n) {\n for (let i = 0, ii = endss.length; i < ii; ++i) {\n const ends = endss[i];\n max = arrayMaxSquaredDelta(flatCoordinates, offset, ends, stride, max);\n offset = ends[ends.length - 1];\n }\n return max;\n}\n\n/**\n * @param {Array} flatCoordinates Flat coordinates.\n * @param {number} offset Offset.\n * @param {number} end End.\n * @param {number} stride Stride.\n * @param {number} maxDelta Max delta.\n * @param {boolean} isRing Is ring.\n * @param {number} x X.\n * @param {number} y Y.\n * @param {Array} closestPoint Closest point.\n * @param {number} minSquaredDistance Minimum squared distance.\n * @param {Array} [tmpPoint] Temporary point object.\n * @return {number} Minimum squared distance.\n */\nexport function assignClosestPoint(\n flatCoordinates,\n offset,\n end,\n stride,\n maxDelta,\n isRing,\n x,\n y,\n closestPoint,\n minSquaredDistance,\n tmpPoint,\n) {\n if (offset == end) {\n return minSquaredDistance;\n }\n let i, squaredDistance;\n if (maxDelta === 0) {\n // All points are identical, so just test the first point.\n squaredDistance = squaredDx(\n x,\n y,\n flatCoordinates[offset],\n flatCoordinates[offset + 1],\n );\n if (squaredDistance < minSquaredDistance) {\n for (i = 0; i < stride; ++i) {\n closestPoint[i] = flatCoordinates[offset + i];\n }\n closestPoint.length = stride;\n return squaredDistance;\n }\n return minSquaredDistance;\n }\n tmpPoint = tmpPoint ? tmpPoint : [NaN, NaN];\n let index = offset + stride;\n while (index < end) {\n assignClosest(\n flatCoordinates,\n index - stride,\n index,\n stride,\n x,\n y,\n tmpPoint,\n );\n squaredDistance = squaredDx(x, y, tmpPoint[0], tmpPoint[1]);\n if (squaredDistance < minSquaredDistance) {\n minSquaredDistance = squaredDistance;\n for (i = 0; i < stride; ++i) {\n closestPoint[i] = tmpPoint[i];\n }\n closestPoint.length = stride;\n index += stride;\n } else {\n // Skip ahead multiple points, because we know that all the skipped\n // points cannot be any closer than the closest point we have found so\n // far. We know this because we know how close the current point is, how\n // close the closest point we have found so far is, and the maximum\n // distance between consecutive points. For example, if we're currently\n // at distance 10, the best we've found so far is 3, and that the maximum\n // distance between consecutive points is 2, then we'll need to skip at\n // least (10 - 3) / 2 == 3 (rounded down) points to have any chance of\n // finding a closer point. We use Math.max(..., 1) to ensure that we\n // always advance at least one point, to avoid an infinite loop.\n index +=\n stride *\n Math.max(\n ((Math.sqrt(squaredDistance) - Math.sqrt(minSquaredDistance)) /\n maxDelta) |\n 0,\n 1,\n );\n }\n }\n if (isRing) {\n // Check the closing segment.\n assignClosest(\n flatCoordinates,\n end - stride,\n offset,\n stride,\n x,\n y,\n tmpPoint,\n );\n squaredDistance = squaredDx(x, y, tmpPoint[0], tmpPoint[1]);\n if (squaredDistance < minSquaredDistance) {\n minSquaredDistance = squaredDistance;\n for (i = 0; i < stride; ++i) {\n closestPoint[i] = tmpPoint[i];\n }\n closestPoint.length = stride;\n }\n }\n return minSquaredDistance;\n}\n\n/**\n * @param {Array} flatCoordinates Flat coordinates.\n * @param {number} offset Offset.\n * @param {Array} ends Ends.\n * @param {number} stride Stride.\n * @param {number} maxDelta Max delta.\n * @param {boolean} isRing Is ring.\n * @param {number} x X.\n * @param {number} y Y.\n * @param {Array} closestPoint Closest point.\n * @param {number} minSquaredDistance Minimum squared distance.\n * @param {Array} [tmpPoint] Temporary point object.\n * @return {number} Minimum squared distance.\n */\nexport function assignClosestArrayPoint(\n flatCoordinates,\n offset,\n ends,\n stride,\n maxDelta,\n isRing,\n x,\n y,\n closestPoint,\n minSquaredDistance,\n tmpPoint,\n) {\n tmpPoint = tmpPoint ? tmpPoint : [NaN, NaN];\n for (let i = 0, ii = ends.length; i < ii; ++i) {\n const end = ends[i];\n minSquaredDistance = assignClosestPoint(\n flatCoordinates,\n offset,\n end,\n stride,\n maxDelta,\n isRing,\n x,\n y,\n closestPoint,\n minSquaredDistance,\n tmpPoint,\n );\n offset = end;\n }\n return minSquaredDistance;\n}\n\n/**\n * @param {Array} flatCoordinates Flat coordinates.\n * @param {number} offset Offset.\n * @param {Array>} endss Endss.\n * @param {number} stride Stride.\n * @param {number} maxDelta Max delta.\n * @param {boolean} isRing Is ring.\n * @param {number} x X.\n * @param {number} y Y.\n * @param {Array} closestPoint Closest point.\n * @param {number} minSquaredDistance Minimum squared distance.\n * @param {Array} [tmpPoint] Temporary point object.\n * @return {number} Minimum squared distance.\n */\nexport function assignClosestMultiArrayPoint(\n flatCoordinates,\n offset,\n endss,\n stride,\n maxDelta,\n isRing,\n x,\n y,\n closestPoint,\n minSquaredDistance,\n tmpPoint,\n) {\n tmpPoint = tmpPoint ? tmpPoint : [NaN, NaN];\n for (let i = 0, ii = endss.length; i < ii; ++i) {\n const ends = endss[i];\n minSquaredDistance = assignClosestArrayPoint(\n flatCoordinates,\n offset,\n ends,\n stride,\n maxDelta,\n isRing,\n x,\n y,\n closestPoint,\n minSquaredDistance,\n tmpPoint,\n );\n offset = ends[ends.length - 1];\n }\n return minSquaredDistance;\n}\n","/**\n * @module ol/geom/flat/inflate\n */\n\n/**\n * @param {Array} flatCoordinates Flat coordinates.\n * @param {number} offset Offset.\n * @param {number} end End.\n * @param {number} stride Stride.\n * @param {Array} [coordinates] Coordinates.\n * @return {Array} Coordinates.\n */\nexport function inflateCoordinates(\n flatCoordinates,\n offset,\n end,\n stride,\n coordinates,\n) {\n coordinates = coordinates !== undefined ? coordinates : [];\n let i = 0;\n for (let j = offset; j < end; j += stride) {\n coordinates[i++] = flatCoordinates.slice(j, j + stride);\n }\n coordinates.length = i;\n return coordinates;\n}\n\n/**\n * @param {Array} flatCoordinates Flat coordinates.\n * @param {number} offset Offset.\n * @param {Array} ends Ends.\n * @param {number} stride Stride.\n * @param {Array>} [coordinatess] Coordinatess.\n * @return {Array>} Coordinatess.\n */\nexport function inflateCoordinatesArray(\n flatCoordinates,\n offset,\n ends,\n stride,\n coordinatess,\n) {\n coordinatess = coordinatess !== undefined ? coordinatess : [];\n let i = 0;\n for (let j = 0, jj = ends.length; j < jj; ++j) {\n const end = ends[j];\n coordinatess[i++] = inflateCoordinates(\n flatCoordinates,\n offset,\n end,\n stride,\n coordinatess[i],\n );\n offset = end;\n }\n coordinatess.length = i;\n return coordinatess;\n}\n\n/**\n * @param {Array} flatCoordinates Flat coordinates.\n * @param {number} offset Offset.\n * @param {Array>} endss Endss.\n * @param {number} stride Stride.\n * @param {Array>>} [coordinatesss]\n * Coordinatesss.\n * @return {Array>>} Coordinatesss.\n */\nexport function inflateMultiCoordinatesArray(\n flatCoordinates,\n offset,\n endss,\n stride,\n coordinatesss,\n) {\n coordinatesss = coordinatesss !== undefined ? coordinatesss : [];\n let i = 0;\n for (let j = 0, jj = endss.length; j < jj; ++j) {\n const ends = endss[j];\n coordinatesss[i++] =\n ends.length === 1 && ends[0] === offset\n ? []\n : inflateCoordinatesArray(\n flatCoordinates,\n offset,\n ends,\n stride,\n coordinatesss[i],\n );\n offset = ends[ends.length - 1];\n }\n coordinatesss.length = i;\n return coordinatesss;\n}\n","/**\n * @module ol/geom/flat/contains\n */\nimport {forEachCorner} from '../../extent.js';\n\n/**\n * @param {Array} flatCoordinates Flat coordinates.\n * @param {number} offset Offset.\n * @param {number} end End.\n * @param {number} stride Stride.\n * @param {import(\"../../extent.js\").Extent} extent Extent.\n * @return {boolean} Contains extent.\n */\nexport function linearRingContainsExtent(\n flatCoordinates,\n offset,\n end,\n stride,\n extent,\n) {\n const outside = forEachCorner(\n extent,\n /**\n * @param {import(\"../../coordinate.js\").Coordinate} coordinate Coordinate.\n * @return {boolean} Contains (x, y).\n */\n function (coordinate) {\n return !linearRingContainsXY(\n flatCoordinates,\n offset,\n end,\n stride,\n coordinate[0],\n coordinate[1],\n );\n },\n );\n return !outside;\n}\n\n/**\n * @param {Array} flatCoordinates Flat coordinates.\n * @param {number} offset Offset.\n * @param {number} end End.\n * @param {number} stride Stride.\n * @param {number} x X.\n * @param {number} y Y.\n * @return {boolean} Contains (x, y).\n */\nexport function linearRingContainsXY(\n flatCoordinates,\n offset,\n end,\n stride,\n x,\n y,\n) {\n // https://web.archive.org/web/20210504233957/http://geomalgorithms.com/a03-_inclusion.html\n // Copyright 2000 softSurfer, 2012 Dan Sunday\n // This code may be freely used and modified for any purpose\n // providing that this copyright notice is included with it.\n // SoftSurfer makes no warranty for this code, and cannot be held\n // liable for any real or imagined damage resulting from its use.\n // Users of this code must verify correctness for their application.\n let wn = 0;\n let x1 = flatCoordinates[end - stride];\n let y1 = flatCoordinates[end - stride + 1];\n for (; offset < end; offset += stride) {\n const x2 = flatCoordinates[offset];\n const y2 = flatCoordinates[offset + 1];\n if (y1 <= y) {\n if (y2 > y && (x2 - x1) * (y - y1) - (x - x1) * (y2 - y1) > 0) {\n wn++;\n }\n } else if (y2 <= y && (x2 - x1) * (y - y1) - (x - x1) * (y2 - y1) < 0) {\n wn--;\n }\n x1 = x2;\n y1 = y2;\n }\n return wn !== 0;\n}\n\n/**\n * @param {Array} flatCoordinates Flat coordinates.\n * @param {number} offset Offset.\n * @param {Array} ends Ends.\n * @param {number} stride Stride.\n * @param {number} x X.\n * @param {number} y Y.\n * @return {boolean} Contains (x, y).\n */\nexport function linearRingsContainsXY(\n flatCoordinates,\n offset,\n ends,\n stride,\n x,\n y,\n) {\n if (ends.length === 0) {\n return false;\n }\n if (!linearRingContainsXY(flatCoordinates, offset, ends[0], stride, x, y)) {\n return false;\n }\n for (let i = 1, ii = ends.length; i < ii; ++i) {\n if (\n linearRingContainsXY(flatCoordinates, ends[i - 1], ends[i], stride, x, y)\n ) {\n return false;\n }\n }\n return true;\n}\n\n/**\n * @param {Array} flatCoordinates Flat coordinates.\n * @param {number} offset Offset.\n * @param {Array>} endss Endss.\n * @param {number} stride Stride.\n * @param {number} x X.\n * @param {number} y Y.\n * @return {boolean} Contains (x, y).\n */\nexport function linearRingssContainsXY(\n flatCoordinates,\n offset,\n endss,\n stride,\n x,\n y,\n) {\n if (endss.length === 0) {\n return false;\n }\n for (let i = 0, ii = endss.length; i < ii; ++i) {\n const ends = endss[i];\n if (linearRingsContainsXY(flatCoordinates, offset, ends, stride, x, y)) {\n return true;\n }\n offset = ends[ends.length - 1];\n }\n return false;\n}\n","/**\n * @module ol/geom/flat/segments\n */\n\n/**\n * This function calls `callback` for each segment of the flat coordinates\n * array. If the callback returns a truthy value the function returns that\n * value immediately. Otherwise the function returns `false`.\n * @param {Array} flatCoordinates Flat coordinates.\n * @param {number} offset Offset.\n * @param {number} end End.\n * @param {number} stride Stride.\n * @param {function(import(\"../../coordinate.js\").Coordinate, import(\"../../coordinate.js\").Coordinate): T} callback Function\n * called for each segment.\n * @return {T|boolean} Value.\n * @template T\n */\nexport function forEach(flatCoordinates, offset, end, stride, callback) {\n let ret;\n offset += stride;\n for (; offset < end; offset += stride) {\n ret = callback(\n flatCoordinates.slice(offset - stride, offset),\n flatCoordinates.slice(offset, offset + stride),\n );\n if (ret) {\n return ret;\n }\n }\n return false;\n}\n\n/**\n * Calculate the intersection point of two line segments.\n * Reference: https://stackoverflow.com/a/72474223/2389327\n * @param {Array} segment1 The first line segment as an array of two points.\n * @param {Array} segment2 The second line segment as an array of two points.\n * @return {import(\"../../coordinate.js\").Coordinate|undefined} The intersection point or `undefined` if no intersection.\n */\nexport function getIntersectionPoint(segment1, segment2) {\n const [a, b] = segment1;\n const [c, d] = segment2;\n const t =\n ((a[0] - c[0]) * (c[1] - d[1]) - (a[1] - c[1]) * (c[0] - d[0])) /\n ((a[0] - b[0]) * (c[1] - d[1]) - (a[1] - b[1]) * (c[0] - d[0]));\n const u =\n ((a[0] - c[0]) * (a[1] - b[1]) - (a[1] - c[1]) * (a[0] - b[0])) /\n ((a[0] - b[0]) * (c[1] - d[1]) - (a[1] - b[1]) * (c[0] - d[0]));\n\n // Check if lines actually intersect\n if (0 <= t && t <= 1 && 0 <= u && u <= 1) {\n return [a[0] + t * (b[0] - a[0]), a[1] + t * (b[1] - a[1])];\n }\n return undefined;\n}\n","/**\n * @module ol/geom/flat/intersectsextent\n */\nimport {\n createEmpty,\n extendFlatCoordinates,\n intersects,\n intersectsSegment,\n} from '../../extent.js';\nimport {linearRingContainsExtent, linearRingContainsXY} from './contains.js';\nimport {forEach as forEachSegment} from './segments.js';\n\n/**\n * @param {Array} flatCoordinates Flat coordinates.\n * @param {number} offset Offset.\n * @param {number} end End.\n * @param {number} stride Stride.\n * @param {import(\"../../extent.js\").Extent} extent Extent.\n * @param {import('../../extent.js').Extent} [coordinatesExtent] Coordinates extent\n * @return {boolean} True if the geometry and the extent intersect.\n */\nexport function intersectsLineString(\n flatCoordinates,\n offset,\n end,\n stride,\n extent,\n coordinatesExtent,\n) {\n coordinatesExtent =\n coordinatesExtent ??\n extendFlatCoordinates(createEmpty(), flatCoordinates, offset, end, stride);\n if (!intersects(extent, coordinatesExtent)) {\n return false;\n }\n if (\n (coordinatesExtent[0] >= extent[0] && coordinatesExtent[2] <= extent[2]) ||\n (coordinatesExtent[1] >= extent[1] && coordinatesExtent[3] <= extent[3])\n ) {\n return true;\n }\n return forEachSegment(\n flatCoordinates,\n offset,\n end,\n stride,\n /**\n * @param {import(\"../../coordinate.js\").Coordinate} point1 Start point.\n * @param {import(\"../../coordinate.js\").Coordinate} point2 End point.\n * @return {boolean} `true` if the segment and the extent intersect,\n * `false` otherwise.\n */\n function (point1, point2) {\n return intersectsSegment(extent, point1, point2);\n },\n );\n}\n\n/**\n * @param {Array} flatCoordinates Flat coordinates.\n * @param {number} offset Offset.\n * @param {Array} ends Ends.\n * @param {number} stride Stride.\n * @param {import(\"../../extent.js\").Extent} extent Extent.\n * @return {boolean} True if the geometry and the extent intersect.\n */\nexport function intersectsLineStringArray(\n flatCoordinates,\n offset,\n ends,\n stride,\n extent,\n) {\n for (let i = 0, ii = ends.length; i < ii; ++i) {\n if (\n intersectsLineString(flatCoordinates, offset, ends[i], stride, extent)\n ) {\n return true;\n }\n offset = ends[i];\n }\n return false;\n}\n\n/**\n * @param {Array} flatCoordinates Flat coordinates.\n * @param {number} offset Offset.\n * @param {number} end End.\n * @param {number} stride Stride.\n * @param {import(\"../../extent.js\").Extent} extent Extent.\n * @return {boolean} True if the geometry and the extent intersect.\n */\nexport function intersectsLinearRing(\n flatCoordinates,\n offset,\n end,\n stride,\n extent,\n) {\n if (intersectsLineString(flatCoordinates, offset, end, stride, extent)) {\n return true;\n }\n if (\n linearRingContainsXY(\n flatCoordinates,\n offset,\n end,\n stride,\n extent[0],\n extent[1],\n )\n ) {\n return true;\n }\n if (\n linearRingContainsXY(\n flatCoordinates,\n offset,\n end,\n stride,\n extent[0],\n extent[3],\n )\n ) {\n return true;\n }\n if (\n linearRingContainsXY(\n flatCoordinates,\n offset,\n end,\n stride,\n extent[2],\n extent[1],\n )\n ) {\n return true;\n }\n if (\n linearRingContainsXY(\n flatCoordinates,\n offset,\n end,\n stride,\n extent[2],\n extent[3],\n )\n ) {\n return true;\n }\n return false;\n}\n\n/**\n * @param {Array} flatCoordinates Flat coordinates.\n * @param {number} offset Offset.\n * @param {Array} ends Ends.\n * @param {number} stride Stride.\n * @param {import(\"../../extent.js\").Extent} extent Extent.\n * @return {boolean} True if the geometry and the extent intersect.\n */\nexport function intersectsLinearRingArray(\n flatCoordinates,\n offset,\n ends,\n stride,\n extent,\n) {\n if (!intersectsLinearRing(flatCoordinates, offset, ends[0], stride, extent)) {\n return false;\n }\n if (ends.length === 1) {\n return true;\n }\n for (let i = 1, ii = ends.length; i < ii; ++i) {\n if (\n linearRingContainsExtent(\n flatCoordinates,\n ends[i - 1],\n ends[i],\n stride,\n extent,\n )\n ) {\n if (\n !intersectsLineString(\n flatCoordinates,\n ends[i - 1],\n ends[i],\n stride,\n extent,\n )\n ) {\n return false;\n }\n }\n }\n return true;\n}\n\n/**\n * @param {Array} flatCoordinates Flat coordinates.\n * @param {number} offset Offset.\n * @param {Array>} endss Endss.\n * @param {number} stride Stride.\n * @param {import(\"../../extent.js\").Extent} extent Extent.\n * @return {boolean} True if the geometry and the extent intersect.\n */\nexport function intersectsLinearRingMultiArray(\n flatCoordinates,\n offset,\n endss,\n stride,\n extent,\n) {\n for (let i = 0, ii = endss.length; i < ii; ++i) {\n const ends = endss[i];\n if (\n intersectsLinearRingArray(flatCoordinates, offset, ends, stride, extent)\n ) {\n return true;\n }\n offset = ends[ends.length - 1];\n }\n return false;\n}\n","/**\n * @module ol/geom/flat/simplify\n */\n// Based on simplify-js https://github.com/mourner/simplify-js\n// Copyright (c) 2012, Vladimir Agafonkin\n// All rights reserved.\n//\n// Redistribution and use in source and binary forms, with or without\n// modification, are permitted provided that the following conditions are met:\n//\n// 1. Redistributions of source code must retain the above copyright notice,\n// this list of conditions and the following disclaimer.\n//\n// 2. Redistributions in binary form must reproduce the above copyright\n// notice, this list of conditions and the following disclaimer in the\n// documentation and/or other materials provided with the distribution.\n//\n// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\n// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE\n// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n// POSSIBILITY OF SUCH DAMAGE.\n\nimport {squaredDistance, squaredSegmentDistance} from '../../math.js';\n\n/**\n * @param {Array} flatCoordinates Flat coordinates.\n * @param {number} offset Offset.\n * @param {number} end End.\n * @param {number} stride Stride.\n * @param {number} squaredTolerance Squared tolerance.\n * @param {boolean} highQuality Highest quality.\n * @param {Array} [simplifiedFlatCoordinates] Simplified flat\n * coordinates.\n * @return {Array} Simplified line string.\n */\nexport function simplifyLineString(\n flatCoordinates,\n offset,\n end,\n stride,\n squaredTolerance,\n highQuality,\n simplifiedFlatCoordinates,\n) {\n simplifiedFlatCoordinates =\n simplifiedFlatCoordinates !== undefined ? simplifiedFlatCoordinates : [];\n if (!highQuality) {\n end = radialDistance(\n flatCoordinates,\n offset,\n end,\n stride,\n squaredTolerance,\n simplifiedFlatCoordinates,\n 0,\n );\n flatCoordinates = simplifiedFlatCoordinates;\n offset = 0;\n stride = 2;\n }\n simplifiedFlatCoordinates.length = douglasPeucker(\n flatCoordinates,\n offset,\n end,\n stride,\n squaredTolerance,\n simplifiedFlatCoordinates,\n 0,\n );\n return simplifiedFlatCoordinates;\n}\n\n/**\n * @param {Array} flatCoordinates Flat coordinates.\n * @param {number} offset Offset.\n * @param {number} end End.\n * @param {number} stride Stride.\n * @param {number} squaredTolerance Squared tolerance.\n * @param {Array} simplifiedFlatCoordinates Simplified flat\n * coordinates.\n * @param {number} simplifiedOffset Simplified offset.\n * @return {number} Simplified offset.\n */\nexport function douglasPeucker(\n flatCoordinates,\n offset,\n end,\n stride,\n squaredTolerance,\n simplifiedFlatCoordinates,\n simplifiedOffset,\n) {\n const n = (end - offset) / stride;\n if (n < 3) {\n for (; offset < end; offset += stride) {\n simplifiedFlatCoordinates[simplifiedOffset++] = flatCoordinates[offset];\n simplifiedFlatCoordinates[simplifiedOffset++] =\n flatCoordinates[offset + 1];\n }\n return simplifiedOffset;\n }\n /** @type {Array} */\n const markers = new Array(n);\n markers[0] = 1;\n markers[n - 1] = 1;\n /** @type {Array} */\n const stack = [offset, end - stride];\n let index = 0;\n while (stack.length > 0) {\n const last = /** @type {number} */ (stack.pop());\n const first = /** @type {number} */ (stack.pop());\n let maxSquaredDistance = 0;\n const x1 = flatCoordinates[first];\n const y1 = flatCoordinates[first + 1];\n const x2 = flatCoordinates[last];\n const y2 = flatCoordinates[last + 1];\n for (let i = first + stride; i < last; i += stride) {\n const x = flatCoordinates[i];\n const y = flatCoordinates[i + 1];\n const squaredDistance = squaredSegmentDistance(x, y, x1, y1, x2, y2);\n if (squaredDistance > maxSquaredDistance) {\n index = i;\n maxSquaredDistance = squaredDistance;\n }\n }\n if (maxSquaredDistance > squaredTolerance) {\n markers[(index - offset) / stride] = 1;\n if (first + stride < index) {\n stack.push(first, index);\n }\n if (index + stride < last) {\n stack.push(index, last);\n }\n }\n }\n for (let i = 0; i < n; ++i) {\n if (markers[i]) {\n simplifiedFlatCoordinates[simplifiedOffset++] =\n flatCoordinates[offset + i * stride];\n simplifiedFlatCoordinates[simplifiedOffset++] =\n flatCoordinates[offset + i * stride + 1];\n }\n }\n return simplifiedOffset;\n}\n\n/**\n * @param {Array} flatCoordinates Flat coordinates.\n * @param {number} offset Offset.\n * @param {Array} ends Ends.\n * @param {number} stride Stride.\n * @param {number} squaredTolerance Squared tolerance.\n * @param {Array} simplifiedFlatCoordinates Simplified flat\n * coordinates.\n * @param {number} simplifiedOffset Simplified offset.\n * @param {Array} simplifiedEnds Simplified ends.\n * @return {number} Simplified offset.\n */\nexport function douglasPeuckerArray(\n flatCoordinates,\n offset,\n ends,\n stride,\n squaredTolerance,\n simplifiedFlatCoordinates,\n simplifiedOffset,\n simplifiedEnds,\n) {\n for (let i = 0, ii = ends.length; i < ii; ++i) {\n const end = ends[i];\n simplifiedOffset = douglasPeucker(\n flatCoordinates,\n offset,\n end,\n stride,\n squaredTolerance,\n simplifiedFlatCoordinates,\n simplifiedOffset,\n );\n simplifiedEnds.push(simplifiedOffset);\n offset = end;\n }\n return simplifiedOffset;\n}\n\n/**\n * @param {Array} flatCoordinates Flat coordinates.\n * @param {number} offset Offset.\n * @param {Array>} endss Endss.\n * @param {number} stride Stride.\n * @param {number} squaredTolerance Squared tolerance.\n * @param {Array} simplifiedFlatCoordinates Simplified flat\n * coordinates.\n * @param {number} simplifiedOffset Simplified offset.\n * @param {Array>} simplifiedEndss Simplified endss.\n * @return {number} Simplified offset.\n */\nexport function douglasPeuckerMultiArray(\n flatCoordinates,\n offset,\n endss,\n stride,\n squaredTolerance,\n simplifiedFlatCoordinates,\n simplifiedOffset,\n simplifiedEndss,\n) {\n for (let i = 0, ii = endss.length; i < ii; ++i) {\n const ends = endss[i];\n /** @type {Array} */\n const simplifiedEnds = [];\n simplifiedOffset = douglasPeuckerArray(\n flatCoordinates,\n offset,\n ends,\n stride,\n squaredTolerance,\n simplifiedFlatCoordinates,\n simplifiedOffset,\n simplifiedEnds,\n );\n simplifiedEndss.push(simplifiedEnds);\n offset = ends[ends.length - 1];\n }\n return simplifiedOffset;\n}\n\n/**\n * @param {Array} flatCoordinates Flat coordinates.\n * @param {number} offset Offset.\n * @param {number} end End.\n * @param {number} stride Stride.\n * @param {number} squaredTolerance Squared tolerance.\n * @param {Array} simplifiedFlatCoordinates Simplified flat\n * coordinates.\n * @param {number} simplifiedOffset Simplified offset.\n * @return {number} Simplified offset.\n */\nexport function radialDistance(\n flatCoordinates,\n offset,\n end,\n stride,\n squaredTolerance,\n simplifiedFlatCoordinates,\n simplifiedOffset,\n) {\n if (end <= offset + stride) {\n // zero or one point, no simplification possible, so copy and return\n for (; offset < end; offset += stride) {\n simplifiedFlatCoordinates[simplifiedOffset++] = flatCoordinates[offset];\n simplifiedFlatCoordinates[simplifiedOffset++] =\n flatCoordinates[offset + 1];\n }\n return simplifiedOffset;\n }\n let x1 = flatCoordinates[offset];\n let y1 = flatCoordinates[offset + 1];\n // copy first point\n simplifiedFlatCoordinates[simplifiedOffset++] = x1;\n simplifiedFlatCoordinates[simplifiedOffset++] = y1;\n let x2 = x1;\n let y2 = y1;\n for (offset += stride; offset < end; offset += stride) {\n x2 = flatCoordinates[offset];\n y2 = flatCoordinates[offset + 1];\n if (squaredDistance(x1, y1, x2, y2) > squaredTolerance) {\n // copy point at offset\n simplifiedFlatCoordinates[simplifiedOffset++] = x2;\n simplifiedFlatCoordinates[simplifiedOffset++] = y2;\n x1 = x2;\n y1 = y2;\n }\n }\n if (x2 != x1 || y2 != y1) {\n // copy last point\n simplifiedFlatCoordinates[simplifiedOffset++] = x2;\n simplifiedFlatCoordinates[simplifiedOffset++] = y2;\n }\n return simplifiedOffset;\n}\n\n/**\n * @param {number} value Value.\n * @param {number} tolerance Tolerance.\n * @return {number} Rounded value.\n */\nexport function snap(value, tolerance) {\n return tolerance * Math.round(value / tolerance);\n}\n\n/**\n * Simplifies a line string using an algorithm designed by Tim Schaub.\n * Coordinates are snapped to the nearest value in a virtual grid and\n * consecutive duplicate coordinates are discarded. This effectively preserves\n * topology as the simplification of any subsection of a line string is\n * independent of the rest of the line string. This means that, for examples,\n * the common edge between two polygons will be simplified to the same line\n * string independently in both polygons. This implementation uses a single\n * pass over the coordinates and eliminates intermediate collinear points.\n * @param {Array} flatCoordinates Flat coordinates.\n * @param {number} offset Offset.\n * @param {number} end End.\n * @param {number} stride Stride.\n * @param {number} tolerance Tolerance.\n * @param {Array} simplifiedFlatCoordinates Simplified flat\n * coordinates.\n * @param {number} simplifiedOffset Simplified offset.\n * @return {number} Simplified offset.\n */\nexport function quantize(\n flatCoordinates,\n offset,\n end,\n stride,\n tolerance,\n simplifiedFlatCoordinates,\n simplifiedOffset,\n) {\n // do nothing if the line is empty\n if (offset == end) {\n return simplifiedOffset;\n }\n // snap the first coordinate (P1)\n let x1 = snap(flatCoordinates[offset], tolerance);\n let y1 = snap(flatCoordinates[offset + 1], tolerance);\n offset += stride;\n // add the first coordinate to the output\n simplifiedFlatCoordinates[simplifiedOffset++] = x1;\n simplifiedFlatCoordinates[simplifiedOffset++] = y1;\n // find the next coordinate that does not snap to the same value as the first\n // coordinate (P2)\n let x2, y2;\n do {\n x2 = snap(flatCoordinates[offset], tolerance);\n y2 = snap(flatCoordinates[offset + 1], tolerance);\n offset += stride;\n if (offset == end) {\n // all coordinates snap to the same value, the line collapses to a point\n // push the last snapped value anyway to ensure that the output contains\n // at least two points\n // FIXME should we really return at least two points anyway?\n simplifiedFlatCoordinates[simplifiedOffset++] = x2;\n simplifiedFlatCoordinates[simplifiedOffset++] = y2;\n return simplifiedOffset;\n }\n } while (x2 == x1 && y2 == y1);\n while (offset < end) {\n // snap the next coordinate (P3)\n const x3 = snap(flatCoordinates[offset], tolerance);\n const y3 = snap(flatCoordinates[offset + 1], tolerance);\n offset += stride;\n // skip P3 if it is equal to P2\n if (x3 == x2 && y3 == y2) {\n continue;\n }\n // calculate the delta between P1 and P2\n const dx1 = x2 - x1;\n const dy1 = y2 - y1;\n // calculate the delta between P3 and P1\n const dx2 = x3 - x1;\n const dy2 = y3 - y1;\n // if P1, P2, and P3 are colinear and P3 is further from P1 than P2 is from\n // P1 in the same direction then P2 is on the straight line between P1 and\n // P3\n if (\n dx1 * dy2 == dy1 * dx2 &&\n ((dx1 < 0 && dx2 < dx1) || dx1 == dx2 || (dx1 > 0 && dx2 > dx1)) &&\n ((dy1 < 0 && dy2 < dy1) || dy1 == dy2 || (dy1 > 0 && dy2 > dy1))\n ) {\n // discard P2 and set P2 = P3\n x2 = x3;\n y2 = y3;\n continue;\n }\n // either P1, P2, and P3 are not colinear, or they are colinear but P3 is\n // between P3 and P1 or on the opposite half of the line to P2. add P2,\n // and continue with P1 = P2 and P2 = P3\n simplifiedFlatCoordinates[simplifiedOffset++] = x2;\n simplifiedFlatCoordinates[simplifiedOffset++] = y2;\n x1 = x2;\n y1 = y2;\n x2 = x3;\n y2 = y3;\n }\n // add the last point (P2)\n simplifiedFlatCoordinates[simplifiedOffset++] = x2;\n simplifiedFlatCoordinates[simplifiedOffset++] = y2;\n return simplifiedOffset;\n}\n\n/**\n * @param {Array} flatCoordinates Flat coordinates.\n * @param {number} offset Offset.\n * @param {Array} ends Ends.\n * @param {number} stride Stride.\n * @param {number} tolerance Tolerance.\n * @param {Array} simplifiedFlatCoordinates Simplified flat\n * coordinates.\n * @param {number} simplifiedOffset Simplified offset.\n * @param {Array} simplifiedEnds Simplified ends.\n * @return {number} Simplified offset.\n */\nexport function quantizeArray(\n flatCoordinates,\n offset,\n ends,\n stride,\n tolerance,\n simplifiedFlatCoordinates,\n simplifiedOffset,\n simplifiedEnds,\n) {\n for (let i = 0, ii = ends.length; i < ii; ++i) {\n const end = ends[i];\n simplifiedOffset = quantize(\n flatCoordinates,\n offset,\n end,\n stride,\n tolerance,\n simplifiedFlatCoordinates,\n simplifiedOffset,\n );\n simplifiedEnds.push(simplifiedOffset);\n offset = end;\n }\n return simplifiedOffset;\n}\n\n/**\n * @param {Array} flatCoordinates Flat coordinates.\n * @param {number} offset Offset.\n * @param {Array>} endss Endss.\n * @param {number} stride Stride.\n * @param {number} tolerance Tolerance.\n * @param {Array} simplifiedFlatCoordinates Simplified flat\n * coordinates.\n * @param {number} simplifiedOffset Simplified offset.\n * @param {Array>} simplifiedEndss Simplified endss.\n * @return {number} Simplified offset.\n */\nexport function quantizeMultiArray(\n flatCoordinates,\n offset,\n endss,\n stride,\n tolerance,\n simplifiedFlatCoordinates,\n simplifiedOffset,\n simplifiedEndss,\n) {\n for (let i = 0, ii = endss.length; i < ii; ++i) {\n const ends = endss[i];\n /** @type {Array} */\n const simplifiedEnds = [];\n simplifiedOffset = quantizeArray(\n flatCoordinates,\n offset,\n ends,\n stride,\n tolerance,\n simplifiedFlatCoordinates,\n simplifiedOffset,\n simplifiedEnds,\n );\n simplifiedEndss.push(simplifiedEnds);\n offset = ends[ends.length - 1];\n }\n return simplifiedOffset;\n}\n","/**\n * @module ol/geom/LinearRing\n */\nimport {closestSquaredDistanceXY} from '../extent.js';\nimport SimpleGeometry from './SimpleGeometry.js';\nimport {linearRing as linearRingArea} from './flat/area.js';\nimport {assignClosestPoint, maxSquaredDelta} from './flat/closest.js';\nimport {deflateCoordinates} from './flat/deflate.js';\nimport {inflateCoordinates} from './flat/inflate.js';\nimport {intersectsLineString} from './flat/intersectsextent.js';\nimport {douglasPeucker} from './flat/simplify.js';\n\n/**\n * @classdesc\n * Linear ring geometry. Only used as part of polygon; cannot be rendered\n * on its own.\n *\n * @api\n */\nclass LinearRing extends SimpleGeometry {\n /**\n * @param {Array|Array} coordinates Coordinates.\n * For internal use, flat coordinates in combination with `layout` are also accepted.\n * @param {import(\"./Geometry.js\").GeometryLayout} [layout] Layout.\n */\n constructor(coordinates, layout) {\n super();\n\n /**\n * @private\n * @type {number}\n */\n this.maxDelta_ = -1;\n\n /**\n * @private\n * @type {number}\n */\n this.maxDeltaRevision_ = -1;\n\n if (layout !== undefined && !Array.isArray(coordinates[0])) {\n this.setFlatCoordinates(\n layout,\n /** @type {Array} */ (coordinates),\n );\n } else {\n this.setCoordinates(\n /** @type {Array} */ (\n coordinates\n ),\n layout,\n );\n }\n }\n\n /**\n * Make a complete copy of the geometry.\n * @return {!LinearRing} Clone.\n * @api\n * @override\n */\n clone() {\n return new LinearRing(this.flatCoordinates.slice(), this.layout);\n }\n\n /**\n * @param {number} x X.\n * @param {number} y Y.\n * @param {import(\"../coordinate.js\").Coordinate} closestPoint Closest point.\n * @param {number} minSquaredDistance Minimum squared distance.\n * @return {number} Minimum squared distance.\n * @override\n */\n closestPointXY(x, y, closestPoint, minSquaredDistance) {\n if (minSquaredDistance < closestSquaredDistanceXY(this.getExtent(), x, y)) {\n return minSquaredDistance;\n }\n if (this.maxDeltaRevision_ != this.getRevision()) {\n this.maxDelta_ = Math.sqrt(\n maxSquaredDelta(\n this.flatCoordinates,\n 0,\n this.flatCoordinates.length,\n this.stride,\n 0,\n ),\n );\n this.maxDeltaRevision_ = this.getRevision();\n }\n return assignClosestPoint(\n this.flatCoordinates,\n 0,\n this.flatCoordinates.length,\n this.stride,\n this.maxDelta_,\n true,\n x,\n y,\n closestPoint,\n minSquaredDistance,\n );\n }\n\n /**\n * Return the area of the linear ring on projected plane.\n * @return {number} Area (on projected plane).\n * @api\n */\n getArea() {\n return linearRingArea(\n this.flatCoordinates,\n 0,\n this.flatCoordinates.length,\n this.stride,\n );\n }\n\n /**\n * Return the coordinates of the linear ring.\n * @return {Array} Coordinates.\n * @api\n * @override\n */\n getCoordinates() {\n return inflateCoordinates(\n this.flatCoordinates,\n 0,\n this.flatCoordinates.length,\n this.stride,\n );\n }\n\n /**\n * @param {number} squaredTolerance Squared tolerance.\n * @return {LinearRing} Simplified LinearRing.\n * @protected\n * @override\n */\n getSimplifiedGeometryInternal(squaredTolerance) {\n /** @type {Array} */\n const simplifiedFlatCoordinates = [];\n simplifiedFlatCoordinates.length = douglasPeucker(\n this.flatCoordinates,\n 0,\n this.flatCoordinates.length,\n this.stride,\n squaredTolerance,\n simplifiedFlatCoordinates,\n 0,\n );\n return new LinearRing(simplifiedFlatCoordinates, 'XY');\n }\n\n /**\n * Get the type of this geometry.\n * @return {import(\"./Geometry.js\").Type} Geometry type.\n * @api\n * @override\n */\n getType() {\n return 'LinearRing';\n }\n\n /**\n * Test if the geometry and the passed extent intersect. A linear ring is\n * treated as a line string for this test.\n * @param {import(\"../extent.js\").Extent} extent Extent.\n * @return {boolean} `true` if the geometry and the extent intersect.\n * @api\n * @override\n */\n intersectsExtent(extent) {\n return intersectsLineString(\n this.flatCoordinates,\n 0,\n this.flatCoordinates.length,\n this.stride,\n extent,\n );\n }\n\n /**\n * Set the coordinates of the linear ring.\n * @param {!Array} coordinates Coordinates.\n * @param {import(\"./Geometry.js\").GeometryLayout} [layout] Layout.\n * @api\n * @override\n */\n setCoordinates(coordinates, layout) {\n this.setLayout(layout, coordinates, 1);\n if (!this.flatCoordinates) {\n this.flatCoordinates = [];\n }\n this.flatCoordinates.length = deflateCoordinates(\n this.flatCoordinates,\n 0,\n coordinates,\n this.stride,\n );\n this.changed();\n }\n}\n\nexport default LinearRing;\n","/**\n * @module ol/geom/flat/interpolate\n */\nimport {binarySearch} from '../../array.js';\nimport {lerp} from '../../math.js';\n\n/**\n * @param {Array} flatCoordinates Flat coordinates.\n * @param {number} offset Offset.\n * @param {number} end End.\n * @param {number} stride Stride.\n * @param {number} fraction Fraction.\n * @param {Array} [dest] Destination.\n * @param {number} [dimension] Destination dimension (default is `2`)\n * @return {Array} Destination.\n */\nexport function interpolatePoint(\n flatCoordinates,\n offset,\n end,\n stride,\n fraction,\n dest,\n dimension,\n) {\n let o, t;\n const n = (end - offset) / stride;\n if (n === 1) {\n o = offset;\n } else if (n === 2) {\n o = offset;\n t = fraction;\n } else if (n !== 0) {\n let x1 = flatCoordinates[offset];\n let y1 = flatCoordinates[offset + 1];\n let length = 0;\n const cumulativeLengths = [0];\n for (let i = offset + stride; i < end; i += stride) {\n const x2 = flatCoordinates[i];\n const y2 = flatCoordinates[i + 1];\n length += Math.sqrt((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1));\n cumulativeLengths.push(length);\n x1 = x2;\n y1 = y2;\n }\n const target = fraction * length;\n const index = binarySearch(cumulativeLengths, target);\n if (index < 0) {\n t =\n (target - cumulativeLengths[-index - 2]) /\n (cumulativeLengths[-index - 1] - cumulativeLengths[-index - 2]);\n o = offset + (-index - 2) * stride;\n } else {\n o = offset + index * stride;\n }\n }\n dimension = dimension !== undefined && dimension > 1 ? dimension : 2;\n dest = dest ? dest : new Array(dimension);\n for (let i = 0; i < dimension; ++i) {\n dest[i] =\n o === undefined\n ? NaN\n : t === undefined\n ? flatCoordinates[o + i]\n : lerp(flatCoordinates[o + i], flatCoordinates[o + stride + i], t);\n }\n return dest;\n}\n\n/**\n * @param {Array} flatCoordinates Flat coordinates.\n * @param {number} offset Offset.\n * @param {number} end End.\n * @param {number} stride Stride.\n * @param {number} m M.\n * @param {boolean} extrapolate Extrapolate.\n * @return {import(\"../../coordinate.js\").Coordinate|null} Coordinate.\n */\nexport function lineStringCoordinateAtM(\n flatCoordinates,\n offset,\n end,\n stride,\n m,\n extrapolate,\n) {\n if (end == offset) {\n return null;\n }\n let coordinate;\n if (m < flatCoordinates[offset + stride - 1]) {\n if (extrapolate) {\n coordinate = flatCoordinates.slice(offset, offset + stride);\n coordinate[stride - 1] = m;\n return coordinate;\n }\n return null;\n }\n if (flatCoordinates[end - 1] < m) {\n if (extrapolate) {\n coordinate = flatCoordinates.slice(end - stride, end);\n coordinate[stride - 1] = m;\n return coordinate;\n }\n return null;\n }\n // FIXME use O(1) search\n if (m == flatCoordinates[offset + stride - 1]) {\n return flatCoordinates.slice(offset, offset + stride);\n }\n let lo = offset / stride;\n let hi = end / stride;\n while (lo < hi) {\n const mid = (lo + hi) >> 1;\n if (m < flatCoordinates[(mid + 1) * stride - 1]) {\n hi = mid;\n } else {\n lo = mid + 1;\n }\n }\n const m0 = flatCoordinates[lo * stride - 1];\n if (m == m0) {\n return flatCoordinates.slice((lo - 1) * stride, (lo - 1) * stride + stride);\n }\n const m1 = flatCoordinates[(lo + 1) * stride - 1];\n const t = (m - m0) / (m1 - m0);\n coordinate = [];\n for (let i = 0; i < stride - 1; ++i) {\n coordinate.push(\n lerp(\n flatCoordinates[(lo - 1) * stride + i],\n flatCoordinates[lo * stride + i],\n t,\n ),\n );\n }\n coordinate.push(m);\n return coordinate;\n}\n\n/**\n * @param {Array} flatCoordinates Flat coordinates.\n * @param {number} offset Offset.\n * @param {Array} ends Ends.\n * @param {number} stride Stride.\n * @param {number} m M.\n * @param {boolean} extrapolate Extrapolate.\n * @param {boolean} interpolate Interpolate.\n * @return {import(\"../../coordinate.js\").Coordinate|null} Coordinate.\n */\nexport function lineStringsCoordinateAtM(\n flatCoordinates,\n offset,\n ends,\n stride,\n m,\n extrapolate,\n interpolate,\n) {\n if (interpolate) {\n return lineStringCoordinateAtM(\n flatCoordinates,\n offset,\n ends[ends.length - 1],\n stride,\n m,\n extrapolate,\n );\n }\n let coordinate;\n if (m < flatCoordinates[stride - 1]) {\n if (extrapolate) {\n coordinate = flatCoordinates.slice(0, stride);\n coordinate[stride - 1] = m;\n return coordinate;\n }\n return null;\n }\n if (flatCoordinates[flatCoordinates.length - 1] < m) {\n if (extrapolate) {\n coordinate = flatCoordinates.slice(flatCoordinates.length - stride);\n coordinate[stride - 1] = m;\n return coordinate;\n }\n return null;\n }\n for (let i = 0, ii = ends.length; i < ii; ++i) {\n const end = ends[i];\n if (offset == end) {\n continue;\n }\n if (m < flatCoordinates[offset + stride - 1]) {\n return null;\n }\n if (m <= flatCoordinates[end - 1]) {\n return lineStringCoordinateAtM(\n flatCoordinates,\n offset,\n end,\n stride,\n m,\n false,\n );\n }\n offset = end;\n }\n return null;\n}\n","/**\n * @module ol/geom/flat/length\n */\n\n/**\n * @param {Array} flatCoordinates Flat coordinates.\n * @param {number} offset Offset.\n * @param {number} end End.\n * @param {number} stride Stride.\n * @return {number} Length.\n */\nexport function lineStringLength(flatCoordinates, offset, end, stride) {\n let x1 = flatCoordinates[offset];\n let y1 = flatCoordinates[offset + 1];\n let length = 0;\n for (let i = offset + stride; i < end; i += stride) {\n const x2 = flatCoordinates[i];\n const y2 = flatCoordinates[i + 1];\n length += Math.sqrt((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1));\n x1 = x2;\n y1 = y2;\n }\n return length;\n}\n\n/**\n * @param {Array} flatCoordinates Flat coordinates.\n * @param {number} offset Offset.\n * @param {number} end End.\n * @param {number} stride Stride.\n * @return {number} Perimeter.\n */\nexport function linearRingLength(flatCoordinates, offset, end, stride) {\n let perimeter = lineStringLength(flatCoordinates, offset, end, stride);\n const dx = flatCoordinates[end - stride] - flatCoordinates[offset];\n const dy = flatCoordinates[end - stride + 1] - flatCoordinates[offset + 1];\n perimeter += Math.sqrt(dx * dx + dy * dy);\n return perimeter;\n}\n","/**\n * @module ol/geom/LineString\n */\nimport {extend} from '../array.js';\nimport {closestSquaredDistanceXY} from '../extent.js';\nimport SimpleGeometry from './SimpleGeometry.js';\nimport {assignClosestPoint, maxSquaredDelta} from './flat/closest.js';\nimport {deflateCoordinates} from './flat/deflate.js';\nimport {inflateCoordinates} from './flat/inflate.js';\nimport {interpolatePoint, lineStringCoordinateAtM} from './flat/interpolate.js';\nimport {intersectsLineString} from './flat/intersectsextent.js';\nimport {lineStringLength} from './flat/length.js';\nimport {forEach as forEachSegment} from './flat/segments.js';\nimport {douglasPeucker} from './flat/simplify.js';\n\n/**\n * @classdesc\n * Linestring geometry.\n *\n * @api\n */\nclass LineString extends SimpleGeometry {\n /**\n * @param {Array|Array} coordinates Coordinates.\n * For internal use, flat coordinates in combination with `layout` are also accepted.\n * @param {import(\"./Geometry.js\").GeometryLayout} [layout] Layout.\n */\n constructor(coordinates, layout) {\n super();\n\n /**\n * @private\n * @type {import(\"../coordinate.js\").Coordinate|null}\n */\n this.flatMidpoint_ = null;\n\n /**\n * @private\n * @type {number}\n */\n this.flatMidpointRevision_ = -1;\n\n /**\n * @private\n * @type {number}\n */\n this.maxDelta_ = -1;\n\n /**\n * @private\n * @type {number}\n */\n this.maxDeltaRevision_ = -1;\n\n if (layout !== undefined && !Array.isArray(coordinates[0])) {\n this.setFlatCoordinates(\n layout,\n /** @type {Array} */ (coordinates),\n );\n } else {\n this.setCoordinates(\n /** @type {Array} */ (\n coordinates\n ),\n layout,\n );\n }\n }\n\n /**\n * Append the passed coordinate to the coordinates of the linestring.\n * @param {import(\"../coordinate.js\").Coordinate} coordinate Coordinate.\n * @api\n */\n appendCoordinate(coordinate) {\n extend(this.flatCoordinates, coordinate);\n this.changed();\n }\n\n /**\n * Make a complete copy of the geometry.\n * @return {!LineString} Clone.\n * @api\n * @override\n */\n clone() {\n const lineString = new LineString(\n this.flatCoordinates.slice(),\n this.layout,\n );\n lineString.applyProperties(this);\n return lineString;\n }\n\n /**\n * @param {number} x X.\n * @param {number} y Y.\n * @param {import(\"../coordinate.js\").Coordinate} closestPoint Closest point.\n * @param {number} minSquaredDistance Minimum squared distance.\n * @return {number} Minimum squared distance.\n * @override\n */\n closestPointXY(x, y, closestPoint, minSquaredDistance) {\n if (minSquaredDistance < closestSquaredDistanceXY(this.getExtent(), x, y)) {\n return minSquaredDistance;\n }\n if (this.maxDeltaRevision_ != this.getRevision()) {\n this.maxDelta_ = Math.sqrt(\n maxSquaredDelta(\n this.flatCoordinates,\n 0,\n this.flatCoordinates.length,\n this.stride,\n 0,\n ),\n );\n this.maxDeltaRevision_ = this.getRevision();\n }\n return assignClosestPoint(\n this.flatCoordinates,\n 0,\n this.flatCoordinates.length,\n this.stride,\n this.maxDelta_,\n false,\n x,\n y,\n closestPoint,\n minSquaredDistance,\n );\n }\n\n /**\n * Iterate over each segment, calling the provided callback.\n * If the callback returns a truthy value the function returns that\n * value immediately. Otherwise the function returns `false`.\n *\n * @param {function(this: S, import(\"../coordinate.js\").Coordinate, import(\"../coordinate.js\").Coordinate): T} callback Function\n * called for each segment. The function will receive two arguments, the start and end coordinates of the segment.\n * @return {T|boolean} Value.\n * @template T,S\n * @api\n */\n forEachSegment(callback) {\n return forEachSegment(\n this.flatCoordinates,\n 0,\n this.flatCoordinates.length,\n this.stride,\n callback,\n );\n }\n\n /**\n * Returns the coordinate at `m` using linear interpolation, or `null` if no\n * such coordinate exists.\n *\n * `extrapolate` controls extrapolation beyond the range of Ms in the\n * MultiLineString. If `extrapolate` is `true` then Ms less than the first\n * M will return the first coordinate and Ms greater than the last M will\n * return the last coordinate.\n *\n * @param {number} m M.\n * @param {boolean} [extrapolate] Extrapolate. Default is `false`.\n * @return {import(\"../coordinate.js\").Coordinate|null} Coordinate.\n * @api\n */\n getCoordinateAtM(m, extrapolate) {\n if (this.layout != 'XYM' && this.layout != 'XYZM') {\n return null;\n }\n extrapolate = extrapolate !== undefined ? extrapolate : false;\n return lineStringCoordinateAtM(\n this.flatCoordinates,\n 0,\n this.flatCoordinates.length,\n this.stride,\n m,\n extrapolate,\n );\n }\n\n /**\n * Return the coordinates of the linestring.\n * @return {Array} Coordinates.\n * @api\n * @override\n */\n getCoordinates() {\n return inflateCoordinates(\n this.flatCoordinates,\n 0,\n this.flatCoordinates.length,\n this.stride,\n );\n }\n\n /**\n * Return the coordinate at the provided fraction along the linestring.\n * The `fraction` is a number between 0 and 1, where 0 is the start of the\n * linestring and 1 is the end.\n * @param {number} fraction Fraction.\n * @param {import(\"../coordinate.js\").Coordinate} [dest] Optional coordinate whose values will\n * be modified. If not provided, a new coordinate will be returned.\n * @return {import(\"../coordinate.js\").Coordinate} Coordinate of the interpolated point.\n * @api\n */\n getCoordinateAt(fraction, dest) {\n return interpolatePoint(\n this.flatCoordinates,\n 0,\n this.flatCoordinates.length,\n this.stride,\n fraction,\n dest,\n this.stride,\n );\n }\n\n /**\n * Return the length of the linestring on projected plane.\n * @return {number} Length (on projected plane).\n * @api\n */\n getLength() {\n return lineStringLength(\n this.flatCoordinates,\n 0,\n this.flatCoordinates.length,\n this.stride,\n );\n }\n\n /**\n * @return {Array} Flat midpoint.\n */\n getFlatMidpoint() {\n if (this.flatMidpointRevision_ != this.getRevision()) {\n this.flatMidpoint_ = this.getCoordinateAt(\n 0.5,\n this.flatMidpoint_ ?? undefined,\n );\n this.flatMidpointRevision_ = this.getRevision();\n }\n return /** @type {Array} */ (this.flatMidpoint_);\n }\n\n /**\n * @param {number} squaredTolerance Squared tolerance.\n * @return {LineString} Simplified LineString.\n * @protected\n * @override\n */\n getSimplifiedGeometryInternal(squaredTolerance) {\n /** @type {Array} */\n const simplifiedFlatCoordinates = [];\n simplifiedFlatCoordinates.length = douglasPeucker(\n this.flatCoordinates,\n 0,\n this.flatCoordinates.length,\n this.stride,\n squaredTolerance,\n simplifiedFlatCoordinates,\n 0,\n );\n return new LineString(simplifiedFlatCoordinates, 'XY');\n }\n\n /**\n * Get the type of this geometry.\n * @return {import(\"./Geometry.js\").Type} Geometry type.\n * @api\n * @override\n */\n getType() {\n return 'LineString';\n }\n\n /**\n * Test if the geometry and the passed extent intersect.\n * @param {import(\"../extent.js\").Extent} extent Extent.\n * @return {boolean} `true` if the geometry and the extent intersect.\n * @api\n * @override\n */\n intersectsExtent(extent) {\n return intersectsLineString(\n this.flatCoordinates,\n 0,\n this.flatCoordinates.length,\n this.stride,\n extent,\n this.getExtent(),\n );\n }\n\n /**\n * Set the coordinates of the linestring.\n * @param {!Array} coordinates Coordinates.\n * @param {import(\"./Geometry.js\").GeometryLayout} [layout] Layout.\n * @api\n * @override\n */\n setCoordinates(coordinates, layout) {\n this.setLayout(layout, coordinates, 1);\n if (!this.flatCoordinates) {\n this.flatCoordinates = [];\n }\n this.flatCoordinates.length = deflateCoordinates(\n this.flatCoordinates,\n 0,\n coordinates,\n this.stride,\n );\n this.changed();\n }\n}\n\nexport default LineString;\n","/**\n * @module ol/geom/Point\n */\nimport {containsXY, createOrUpdateFromCoordinate} from '../extent.js';\nimport {squaredDistance as squaredDx} from '../math.js';\nimport SimpleGeometry from './SimpleGeometry.js';\nimport {deflateCoordinate} from './flat/deflate.js';\n\n/**\n * @classdesc\n * Point geometry.\n *\n * @api\n */\nclass Point extends SimpleGeometry {\n /**\n * @param {import(\"../coordinate.js\").Coordinate} coordinates Coordinates.\n * @param {import(\"./Geometry.js\").GeometryLayout} [layout] Layout.\n */\n constructor(coordinates, layout) {\n super();\n this.setCoordinates(coordinates, layout);\n }\n\n /**\n * Make a complete copy of the geometry.\n * @return {!Point} Clone.\n * @api\n * @override\n */\n clone() {\n const point = new Point(this.flatCoordinates.slice(), this.layout);\n point.applyProperties(this);\n return point;\n }\n\n /**\n * @param {number} x X.\n * @param {number} y Y.\n * @param {import(\"../coordinate.js\").Coordinate} closestPoint Closest point.\n * @param {number} minSquaredDistance Minimum squared distance.\n * @return {number} Minimum squared distance.\n * @override\n */\n closestPointXY(x, y, closestPoint, minSquaredDistance) {\n const flatCoordinates = this.flatCoordinates;\n const squaredDistance = squaredDx(\n x,\n y,\n flatCoordinates[0],\n flatCoordinates[1],\n );\n if (squaredDistance < minSquaredDistance) {\n const stride = this.stride;\n for (let i = 0; i < stride; ++i) {\n closestPoint[i] = flatCoordinates[i];\n }\n closestPoint.length = stride;\n return squaredDistance;\n }\n return minSquaredDistance;\n }\n\n /**\n * Return the coordinate of the point.\n * @return {import(\"../coordinate.js\").Coordinate} Coordinates.\n * @api\n * @override\n */\n getCoordinates() {\n return this.flatCoordinates.slice();\n }\n\n /**\n * @param {import(\"../extent.js\").Extent} extent Extent.\n * @protected\n * @return {import(\"../extent.js\").Extent} extent Extent.\n * @override\n */\n computeExtent(extent) {\n return createOrUpdateFromCoordinate(this.flatCoordinates, extent);\n }\n\n /**\n * Get the type of this geometry.\n * @return {import(\"./Geometry.js\").Type} Geometry type.\n * @api\n * @override\n */\n getType() {\n return 'Point';\n }\n\n /**\n * Test if the geometry and the passed extent intersect.\n * @param {import(\"../extent.js\").Extent} extent Extent.\n * @return {boolean} `true` if the geometry and the extent intersect.\n * @api\n * @override\n */\n intersectsExtent(extent) {\n return containsXY(extent, this.flatCoordinates[0], this.flatCoordinates[1]);\n }\n\n /**\n * @param {!Array<*>} coordinates Coordinates.\n * @param {import(\"./Geometry.js\").GeometryLayout} [layout] Layout.\n * @api\n * @override\n */\n setCoordinates(coordinates, layout) {\n this.setLayout(layout, coordinates, 0);\n if (!this.flatCoordinates) {\n this.flatCoordinates = [];\n }\n this.flatCoordinates.length = deflateCoordinate(\n this.flatCoordinates,\n 0,\n coordinates,\n this.stride,\n );\n this.changed();\n }\n}\n\nexport default Point;\n","/**\n * @module ol/geom/flat/interiorpoint\n */\nimport {ascending} from '../../array.js';\nimport {linearRingsContainsXY} from './contains.js';\n\n/**\n * Calculates a point that is likely to lie in the interior of the linear rings.\n * Inspired by JTS's com.vividsolutions.jts.geom.Geometry#getInteriorPoint.\n * @param {Array} flatCoordinates Flat coordinates.\n * @param {number} offset Offset.\n * @param {Array} ends Ends.\n * @param {number} stride Stride.\n * @param {Array} flatCenters Flat centers.\n * @param {number} flatCentersOffset Flat center offset.\n * @param {Array} [dest] Destination.\n * @return {Array} Destination point as XYM coordinate, where M is the\n * length of the horizontal intersection that the point belongs to.\n */\nexport function getInteriorPointOfArray(\n flatCoordinates,\n offset,\n ends,\n stride,\n flatCenters,\n flatCentersOffset,\n dest,\n) {\n let i, ii, x, x1, x2, y1, y2;\n const y = flatCenters[flatCentersOffset + 1];\n /** @type {Array} */\n const intersections = [];\n // Calculate intersections with the horizontal line\n for (let r = 0, rr = ends.length; r < rr; ++r) {\n const end = ends[r];\n x1 = flatCoordinates[end - stride];\n y1 = flatCoordinates[end - stride + 1];\n for (i = offset; i < end; i += stride) {\n x2 = flatCoordinates[i];\n y2 = flatCoordinates[i + 1];\n if ((y <= y1 && y2 <= y) || (y1 <= y && y <= y2)) {\n x = ((y - y1) / (y2 - y1)) * (x2 - x1) + x1;\n intersections.push(x);\n }\n x1 = x2;\n y1 = y2;\n }\n }\n // Find the longest segment of the horizontal line that has its center point\n // inside the linear ring.\n let pointX = NaN;\n let maxSegmentLength = -Infinity;\n intersections.sort(ascending);\n x1 = intersections[0];\n for (i = 1, ii = intersections.length; i < ii; ++i) {\n x2 = intersections[i];\n const segmentLength = Math.abs(x2 - x1);\n if (segmentLength > maxSegmentLength) {\n x = (x1 + x2) / 2;\n if (linearRingsContainsXY(flatCoordinates, offset, ends, stride, x, y)) {\n pointX = x;\n maxSegmentLength = segmentLength;\n }\n }\n x1 = x2;\n }\n if (isNaN(pointX)) {\n // There is no horizontal line that has its center point inside the linear\n // ring. Use the center of the the linear ring's extent.\n pointX = flatCenters[flatCentersOffset];\n }\n if (dest) {\n dest.push(pointX, y, maxSegmentLength);\n return dest;\n }\n return [pointX, y, maxSegmentLength];\n}\n\n/**\n * @param {Array} flatCoordinates Flat coordinates.\n * @param {number} offset Offset.\n * @param {Array>} endss Endss.\n * @param {number} stride Stride.\n * @param {Array} flatCenters Flat centers.\n * @return {Array} Interior points as XYM coordinates, where M is the\n * length of the horizontal intersection that the point belongs to.\n */\nexport function getInteriorPointsOfMultiArray(\n flatCoordinates,\n offset,\n endss,\n stride,\n flatCenters,\n) {\n /** @type {Array} */\n let interiorPoints = [];\n for (let i = 0, ii = endss.length; i < ii; ++i) {\n const ends = endss[i];\n interiorPoints = getInteriorPointOfArray(\n flatCoordinates,\n offset,\n ends,\n stride,\n flatCenters,\n 2 * i,\n interiorPoints,\n );\n offset = ends[ends.length - 1];\n }\n return interiorPoints;\n}\n","/**\n * @module ol/geom/flat/reverse\n */\n\n/**\n * @param {Array} flatCoordinates Flat coordinates.\n * @param {number} offset Offset.\n * @param {number} end End.\n * @param {number} stride Stride.\n */\nexport function coordinates(flatCoordinates, offset, end, stride) {\n while (offset < end - stride) {\n for (let i = 0; i < stride; ++i) {\n const tmp = flatCoordinates[offset + i];\n flatCoordinates[offset + i] = flatCoordinates[end - stride + i];\n flatCoordinates[end - stride + i] = tmp;\n }\n offset += stride;\n end -= stride;\n }\n}\n","/**\n * @module ol/geom/flat/orient\n */\nimport {coordinates as reverseCoordinates} from './reverse.js';\n\n/**\n * Is the linear ring oriented clockwise in a coordinate system with a bottom-left\n * coordinate origin? For a coordinate system with a top-left coordinate origin,\n * the ring's orientation is clockwise when this function returns false.\n * @param {Array} flatCoordinates Flat coordinates.\n * @param {number} offset Offset.\n * @param {number} end End.\n * @param {number} stride Stride.\n * @return {boolean|undefined} Is clockwise.\n */\nexport function linearRingIsClockwise(flatCoordinates, offset, end, stride) {\n // https://stackoverflow.com/q/1165647/clockwise-method#1165943\n // https://github.com/OSGeo/gdal/blob/master/gdal/ogr/ogrlinearring.cpp\n let edge = 0;\n let x1 = flatCoordinates[end - stride];\n let y1 = flatCoordinates[end - stride + 1];\n for (; offset < end; offset += stride) {\n const x2 = flatCoordinates[offset];\n const y2 = flatCoordinates[offset + 1];\n edge += (x2 - x1) * (y2 + y1);\n x1 = x2;\n y1 = y2;\n }\n return edge === 0 ? undefined : edge > 0;\n}\n\n/**\n * Determines if linear rings are oriented. By default, left-hand orientation\n * is tested (first ring must be clockwise, remaining rings counter-clockwise).\n * To test for right-hand orientation, use the `right` argument.\n *\n * @param {Array} flatCoordinates Flat coordinates.\n * @param {number} offset Offset.\n * @param {Array} ends Array of end indexes.\n * @param {number} stride Stride.\n * @param {boolean} [right] Test for right-hand orientation\n * (counter-clockwise exterior ring and clockwise interior rings).\n * @return {boolean} Rings are correctly oriented.\n */\nexport function linearRingsAreOriented(\n flatCoordinates,\n offset,\n ends,\n stride,\n right,\n) {\n right = right !== undefined ? right : false;\n for (let i = 0, ii = ends.length; i < ii; ++i) {\n const end = ends[i];\n const isClockwise = linearRingIsClockwise(\n flatCoordinates,\n offset,\n end,\n stride,\n );\n if (i === 0) {\n if ((right && isClockwise) || (!right && !isClockwise)) {\n return false;\n }\n } else {\n if ((right && !isClockwise) || (!right && isClockwise)) {\n return false;\n }\n }\n offset = end;\n }\n return true;\n}\n\n/**\n * Determines if linear rings are oriented. By default, left-hand orientation\n * is tested (first ring must be clockwise, remaining rings counter-clockwise).\n * To test for right-hand orientation, use the `right` argument.\n *\n * @param {Array} flatCoordinates Flat coordinates.\n * @param {number} offset Offset.\n * @param {Array>} endss Array of array of end indexes.\n * @param {number} stride Stride.\n * @param {boolean} [right] Test for right-hand orientation\n * (counter-clockwise exterior ring and clockwise interior rings).\n * @return {boolean} Rings are correctly oriented.\n */\nexport function linearRingssAreOriented(\n flatCoordinates,\n offset,\n endss,\n stride,\n right,\n) {\n for (let i = 0, ii = endss.length; i < ii; ++i) {\n const ends = endss[i];\n if (!linearRingsAreOriented(flatCoordinates, offset, ends, stride, right)) {\n return false;\n }\n if (ends.length) {\n offset = ends[ends.length - 1];\n }\n }\n return true;\n}\n\n/**\n * Orient coordinates in a flat array of linear rings. By default, rings\n * are oriented following the left-hand rule (clockwise for exterior and\n * counter-clockwise for interior rings). To orient according to the\n * right-hand rule, use the `right` argument.\n *\n * @param {Array} flatCoordinates Flat coordinates.\n * @param {number} offset Offset.\n * @param {Array} ends Ends.\n * @param {number} stride Stride.\n * @param {boolean} [right] Follow the right-hand rule for orientation.\n * @return {number} End.\n */\nexport function orientLinearRings(\n flatCoordinates,\n offset,\n ends,\n stride,\n right,\n) {\n right = right !== undefined ? right : false;\n for (let i = 0, ii = ends.length; i < ii; ++i) {\n const end = ends[i];\n const isClockwise = linearRingIsClockwise(\n flatCoordinates,\n offset,\n end,\n stride,\n );\n const reverse =\n i === 0\n ? (right && isClockwise) || (!right && !isClockwise)\n : (right && !isClockwise) || (!right && isClockwise);\n if (reverse) {\n reverseCoordinates(flatCoordinates, offset, end, stride);\n }\n offset = end;\n }\n return offset;\n}\n\n/**\n * Orient coordinates in a flat array of linear rings. By default, rings\n * are oriented following the left-hand rule (clockwise for exterior and\n * counter-clockwise for interior rings). To orient according to the\n * right-hand rule, use the `right` argument.\n *\n * @param {Array} flatCoordinates Flat coordinates.\n * @param {number} offset Offset.\n * @param {Array>} endss Array of array of end indexes.\n * @param {number} stride Stride.\n * @param {boolean} [right] Follow the right-hand rule for orientation.\n * @return {number} End.\n */\nexport function orientLinearRingsArray(\n flatCoordinates,\n offset,\n endss,\n stride,\n right,\n) {\n for (let i = 0, ii = endss.length; i < ii; ++i) {\n offset = orientLinearRings(\n flatCoordinates,\n offset,\n endss[i],\n stride,\n right,\n );\n }\n return offset;\n}\n\n/**\n * Return a two-dimensional endss\n * @param {Array} flatCoordinates Flat coordinates\n * @param {Array} ends Linear ring end indexes\n * @return {Array>} Two dimensional endss array that can\n * be used to construct a MultiPolygon\n */\nexport function inflateEnds(flatCoordinates, ends) {\n const endss = [];\n let offset = 0;\n let prevEndIndex = 0;\n let startOrientation;\n for (let i = 0, ii = ends.length; i < ii; ++i) {\n const end = ends[i];\n // classifies an array of rings into polygons with outer rings and holes\n const orientation = linearRingIsClockwise(flatCoordinates, offset, end, 2);\n if (startOrientation === undefined) {\n startOrientation = orientation;\n }\n if (orientation === startOrientation) {\n endss.push(ends.slice(prevEndIndex, i + 1));\n } else {\n if (endss.length === 0) {\n continue;\n }\n endss[endss.length - 1].push(ends[prevEndIndex]);\n }\n prevEndIndex = i + 1;\n offset = end;\n }\n return endss;\n}\n","/**\n * @module ol/geom/Polygon\n */\nimport {extend} from '../array.js';\nimport {closestSquaredDistanceXY, getCenter, isEmpty} from '../extent.js';\nimport {modulo} from '../math.js';\nimport {offset as sphereOffset} from '../sphere.js';\nimport LinearRing from './LinearRing.js';\nimport Point from './Point.js';\nimport SimpleGeometry from './SimpleGeometry.js';\nimport {linearRings as linearRingsArea} from './flat/area.js';\nimport {arrayMaxSquaredDelta, assignClosestArrayPoint} from './flat/closest.js';\nimport {linearRingsContainsXY} from './flat/contains.js';\nimport {deflateCoordinatesArray} from './flat/deflate.js';\nimport {inflateCoordinatesArray} from './flat/inflate.js';\nimport {getInteriorPointOfArray} from './flat/interiorpoint.js';\nimport {intersectsLinearRingArray} from './flat/intersectsextent.js';\nimport {linearRingsAreOriented, orientLinearRings} from './flat/orient.js';\nimport {quantizeArray} from './flat/simplify.js';\n\n/**\n * @classdesc\n * Polygon geometry.\n *\n * @api\n */\nclass Polygon extends SimpleGeometry {\n /**\n * @param {!Array>|!Array} coordinates\n * Array of linear rings that define the polygon. The first linear ring of the\n * array defines the outer-boundary or surface of the polygon. Each subsequent\n * linear ring defines a hole in the surface of the polygon. A linear ring is\n * an array of vertices' coordinates where the first coordinate and the last are\n * equivalent. (For internal use, flat coordinates in combination with\n * `layout` and `ends` are also accepted.)\n * @param {import(\"./Geometry.js\").GeometryLayout} [layout] Layout.\n * @param {Array} [ends] Ends (for internal use with flat coordinates).\n */\n constructor(coordinates, layout, ends) {\n super();\n\n /**\n * @type {Array}\n * @private\n */\n this.ends_ = [];\n\n /**\n * @private\n * @type {number}\n */\n this.flatInteriorPointRevision_ = -1;\n\n /**\n * @private\n * @type {import(\"../coordinate.js\").Coordinate|null}\n */\n this.flatInteriorPoint_ = null;\n\n /**\n * @private\n * @type {number}\n */\n this.maxDelta_ = -1;\n\n /**\n * @private\n * @type {number}\n */\n this.maxDeltaRevision_ = -1;\n\n /**\n * @private\n * @type {number}\n */\n this.orientedRevision_ = -1;\n\n /**\n * @private\n * @type {Array|null}\n */\n this.orientedFlatCoordinates_ = null;\n\n if (layout !== undefined && ends) {\n this.setFlatCoordinates(\n layout,\n /** @type {Array} */ (coordinates),\n );\n this.ends_ = ends;\n } else {\n this.setCoordinates(\n /** @type {Array>} */ (\n coordinates\n ),\n layout,\n );\n }\n }\n\n /**\n * Append the passed linear ring to this polygon.\n * @param {LinearRing} linearRing Linear ring.\n * @api\n */\n appendLinearRing(linearRing) {\n if (!this.flatCoordinates) {\n this.flatCoordinates = linearRing.getFlatCoordinates().slice();\n } else {\n extend(this.flatCoordinates, linearRing.getFlatCoordinates());\n }\n this.ends_.push(this.flatCoordinates.length);\n this.changed();\n }\n\n /**\n * Make a complete copy of the geometry.\n * @return {!Polygon} Clone.\n * @api\n * @override\n */\n clone() {\n const polygon = new Polygon(\n this.flatCoordinates.slice(),\n this.layout,\n this.ends_.slice(),\n );\n polygon.applyProperties(this);\n return polygon;\n }\n\n /**\n * @param {number} x X.\n * @param {number} y Y.\n * @param {import(\"../coordinate.js\").Coordinate} closestPoint Closest point.\n * @param {number} minSquaredDistance Minimum squared distance.\n * @return {number} Minimum squared distance.\n * @override\n */\n closestPointXY(x, y, closestPoint, minSquaredDistance) {\n if (minSquaredDistance < closestSquaredDistanceXY(this.getExtent(), x, y)) {\n return minSquaredDistance;\n }\n if (this.maxDeltaRevision_ != this.getRevision()) {\n this.maxDelta_ = Math.sqrt(\n arrayMaxSquaredDelta(\n this.flatCoordinates,\n 0,\n this.ends_,\n this.stride,\n 0,\n ),\n );\n this.maxDeltaRevision_ = this.getRevision();\n }\n return assignClosestArrayPoint(\n this.flatCoordinates,\n 0,\n this.ends_,\n this.stride,\n this.maxDelta_,\n true,\n x,\n y,\n closestPoint,\n minSquaredDistance,\n );\n }\n\n /**\n * @param {number} x X.\n * @param {number} y Y.\n * @return {boolean} Contains (x, y).\n * @override\n */\n containsXY(x, y) {\n return linearRingsContainsXY(\n this.getOrientedFlatCoordinates(),\n 0,\n this.ends_,\n this.stride,\n x,\n y,\n );\n }\n\n /**\n * Return the area of the polygon on projected plane.\n * @return {number} Area (on projected plane).\n * @api\n */\n getArea() {\n return linearRingsArea(\n this.getOrientedFlatCoordinates(),\n 0,\n this.ends_,\n this.stride,\n );\n }\n\n /**\n * Get the coordinate array for this geometry. This array has the structure\n * of a GeoJSON coordinate array for polygons.\n *\n * @param {boolean} [right] Orient coordinates according to the right-hand\n * rule (counter-clockwise for exterior and clockwise for interior rings).\n * If `false`, coordinates will be oriented according to the left-hand rule\n * (clockwise for exterior and counter-clockwise for interior rings).\n * By default, coordinate orientation will depend on how the geometry was\n * constructed.\n * @return {Array>} Coordinates.\n * @api\n * @override\n */\n getCoordinates(right) {\n let flatCoordinates;\n if (right !== undefined) {\n flatCoordinates = this.getOrientedFlatCoordinates().slice();\n orientLinearRings(flatCoordinates, 0, this.ends_, this.stride, right);\n } else {\n flatCoordinates = this.flatCoordinates;\n }\n\n return inflateCoordinatesArray(flatCoordinates, 0, this.ends_, this.stride);\n }\n\n /**\n * @return {Array} Ends.\n */\n getEnds() {\n return this.ends_;\n }\n\n /**\n * @return {Array} Interior point.\n */\n getFlatInteriorPoint() {\n if (this.flatInteriorPointRevision_ != this.getRevision()) {\n const flatCenter = getCenter(this.getExtent());\n this.flatInteriorPoint_ = getInteriorPointOfArray(\n this.getOrientedFlatCoordinates(),\n 0,\n this.ends_,\n this.stride,\n flatCenter,\n 0,\n );\n this.flatInteriorPointRevision_ = this.getRevision();\n }\n return /** @type {import(\"../coordinate.js\").Coordinate} */ (\n this.flatInteriorPoint_\n );\n }\n\n /**\n * Return an interior point of the polygon.\n * @return {Point} Interior point as XYM coordinate, where M is the\n * length of the horizontal intersection that the point belongs to.\n * @api\n */\n getInteriorPoint() {\n return new Point(this.getFlatInteriorPoint(), 'XYM');\n }\n\n /**\n * Return the number of rings of the polygon, this includes the exterior\n * ring and any interior rings.\n *\n * @return {number} Number of rings.\n * @api\n */\n getLinearRingCount() {\n return this.ends_.length;\n }\n\n /**\n * Return the Nth linear ring of the polygon geometry. Return `null` if the\n * given index is out of range.\n * The exterior linear ring is available at index `0` and the interior rings\n * at index `1` and beyond.\n *\n * @param {number} index Index.\n * @return {LinearRing|null} Linear ring.\n * @api\n */\n getLinearRing(index) {\n if (index < 0 || this.ends_.length <= index) {\n return null;\n }\n return new LinearRing(\n this.flatCoordinates.slice(\n index === 0 ? 0 : this.ends_[index - 1],\n this.ends_[index],\n ),\n this.layout,\n );\n }\n\n /**\n * Return the linear rings of the polygon.\n * @return {Array} Linear rings.\n * @api\n */\n getLinearRings() {\n const layout = this.layout;\n const flatCoordinates = this.flatCoordinates;\n const ends = this.ends_;\n const linearRings = [];\n let offset = 0;\n for (let i = 0, ii = ends.length; i < ii; ++i) {\n const end = ends[i];\n const linearRing = new LinearRing(\n flatCoordinates.slice(offset, end),\n layout,\n );\n linearRings.push(linearRing);\n offset = end;\n }\n return linearRings;\n }\n\n /**\n * @return {Array} Oriented flat coordinates.\n */\n getOrientedFlatCoordinates() {\n if (this.orientedRevision_ != this.getRevision()) {\n const flatCoordinates = this.flatCoordinates;\n if (linearRingsAreOriented(flatCoordinates, 0, this.ends_, this.stride)) {\n this.orientedFlatCoordinates_ = flatCoordinates;\n } else {\n this.orientedFlatCoordinates_ = flatCoordinates.slice();\n this.orientedFlatCoordinates_.length = orientLinearRings(\n this.orientedFlatCoordinates_,\n 0,\n this.ends_,\n this.stride,\n );\n }\n this.orientedRevision_ = this.getRevision();\n }\n return /** @type {Array} */ (this.orientedFlatCoordinates_);\n }\n\n /**\n * @param {number} squaredTolerance Squared tolerance.\n * @return {Polygon} Simplified Polygon.\n * @protected\n * @override\n */\n getSimplifiedGeometryInternal(squaredTolerance) {\n /** @type {Array} */\n const simplifiedFlatCoordinates = [];\n /** @type {Array} */\n const simplifiedEnds = [];\n simplifiedFlatCoordinates.length = quantizeArray(\n this.flatCoordinates,\n 0,\n this.ends_,\n this.stride,\n Math.sqrt(squaredTolerance),\n simplifiedFlatCoordinates,\n 0,\n simplifiedEnds,\n );\n return new Polygon(simplifiedFlatCoordinates, 'XY', simplifiedEnds);\n }\n\n /**\n * Get the type of this geometry.\n * @return {import(\"./Geometry.js\").Type} Geometry type.\n * @api\n * @override\n */\n getType() {\n return 'Polygon';\n }\n\n /**\n * Test if the geometry and the passed extent intersect.\n * @param {import(\"../extent.js\").Extent} extent Extent.\n * @return {boolean} `true` if the geometry and the extent intersect.\n * @api\n * @override\n */\n intersectsExtent(extent) {\n return intersectsLinearRingArray(\n this.getOrientedFlatCoordinates(),\n 0,\n this.ends_,\n this.stride,\n extent,\n );\n }\n\n /**\n * Set the coordinates of the polygon.\n * @param {!Array>} coordinates Coordinates.\n * @param {import(\"./Geometry.js\").GeometryLayout} [layout] Layout.\n * @api\n * @override\n */\n setCoordinates(coordinates, layout) {\n this.setLayout(layout, coordinates, 2);\n if (!this.flatCoordinates) {\n this.flatCoordinates = [];\n }\n const ends = deflateCoordinatesArray(\n this.flatCoordinates,\n 0,\n coordinates,\n this.stride,\n this.ends_,\n );\n this.flatCoordinates.length = ends.length === 0 ? 0 : ends[ends.length - 1];\n this.changed();\n }\n}\n\nexport default Polygon;\n\n/**\n * Create an approximation of a circle on the surface of a sphere.\n * @param {import(\"../coordinate.js\").Coordinate} center Center (`[lon, lat]` in degrees).\n * @param {number} radius The great-circle distance from the center to\n * the polygon vertices in meters.\n * @param {number} [n] Optional number of vertices for the resulting\n * polygon. Default is `32`.\n * @param {number} [sphereRadius] Optional radius for the sphere (defaults to\n * the Earth's mean radius using the WGS84 ellipsoid).\n * @return {Polygon} The \"circular\" polygon.\n * @api\n */\nexport function circular(center, radius, n, sphereRadius) {\n n = n ? n : 32;\n /** @type {Array} */\n const flatCoordinates = [];\n for (let i = 0; i < n; ++i) {\n extend(\n flatCoordinates,\n sphereOffset(center, radius, (2 * Math.PI * i) / n, sphereRadius),\n );\n }\n flatCoordinates.push(flatCoordinates[0], flatCoordinates[1]);\n return new Polygon(flatCoordinates, 'XY', [flatCoordinates.length]);\n}\n\n/**\n * Create a polygon from an extent. The layout used is `XY`.\n * @param {import(\"../extent.js\").Extent} extent The extent.\n * @return {Polygon} The polygon.\n * @api\n */\nexport function fromExtent(extent) {\n if (isEmpty(extent)) {\n throw new Error('Cannot create polygon from empty extent');\n }\n const minX = extent[0];\n const minY = extent[1];\n const maxX = extent[2];\n const maxY = extent[3];\n const flatCoordinates = [\n minX,\n minY,\n minX,\n maxY,\n maxX,\n maxY,\n maxX,\n minY,\n minX,\n minY,\n ];\n return new Polygon(flatCoordinates, 'XY', [flatCoordinates.length]);\n}\n\n/**\n * Create a regular polygon from a circle.\n * @param {import(\"./Circle.js\").default} circle Circle geometry.\n * @param {number} [sides] Number of sides of the polygon. Default is 32.\n * @param {number} [angle] Start angle for the first vertex of the polygon in\n * counter-clockwise radians. 0 means East. Default is 0.\n * @return {Polygon} Polygon geometry.\n * @api\n */\nexport function fromCircle(circle, sides, angle) {\n sides = sides ? sides : 32;\n const stride = circle.getStride();\n const layout = circle.getLayout();\n const center = circle.getCenter();\n const arrayLength = stride * (sides + 1);\n const flatCoordinates = new Array(arrayLength);\n for (let i = 0; i < arrayLength; i += stride) {\n flatCoordinates[i] = 0;\n flatCoordinates[i + 1] = 0;\n for (let j = 2; j < stride; j++) {\n flatCoordinates[i + j] = center[j];\n }\n }\n const ends = [flatCoordinates.length];\n const polygon = new Polygon(flatCoordinates, layout, ends);\n makeRegular(polygon, center, circle.getRadius(), angle);\n return polygon;\n}\n\n/**\n * Modify the coordinates of a polygon to make it a regular polygon.\n * @param {Polygon} polygon Polygon geometry.\n * @param {import(\"../coordinate.js\").Coordinate} center Center of the regular polygon.\n * @param {number} radius Radius of the regular polygon.\n * @param {number} [angle] Start angle for the first vertex of the polygon in\n * counter-clockwise radians. 0 means East. Default is 0.\n */\nexport function makeRegular(polygon, center, radius, angle) {\n const flatCoordinates = polygon.getFlatCoordinates();\n const stride = polygon.getStride();\n const sides = flatCoordinates.length / stride - 1;\n const startAngle = angle ? angle : 0;\n for (let i = 0; i <= sides; ++i) {\n const offset = i * stride;\n const angle = startAngle + (modulo(i, sides) * 2 * Math.PI) / sides;\n flatCoordinates[offset] = center[0] + radius * Math.cos(angle);\n flatCoordinates[offset + 1] = center[1] + radius * Math.sin(angle);\n }\n polygon.changed();\n}\n","/**\n * @module ol/TileState\n */\n\n/**\n * @enum {number}\n */\nexport default {\n IDLE: 0,\n LOADING: 1,\n LOADED: 2,\n /**\n * Indicates that tile loading failed\n * @type {number}\n */\n ERROR: 3,\n EMPTY: 4,\n};\n","function st(r, t, e = {}) {\n const n = { type: \"Feature\" };\n return (e.id === 0 || e.id) && (n.id = e.id), e.bbox && (n.bbox = e.bbox), n.properties = t || {}, n.geometry = r, n;\n}\nfunction X(r, t, e = {}) {\n if (!r)\n throw new Error(\"coordinates is required\");\n if (!Array.isArray(r))\n throw new Error(\"coordinates must be an Array\");\n if (r.length < 2)\n throw new Error(\"coordinates must be at least 2 numbers long\");\n if (!Z(r[0]) || !Z(r[1]))\n throw new Error(\"coordinates must contain numbers\");\n return st({\n type: \"Point\",\n coordinates: r\n }, t, e);\n}\nfunction W(r, t, e = {}) {\n for (const o of r) {\n if (o.length < 4)\n throw new Error(\n \"Each LinearRing of a Polygon must have 4 or more Positions.\"\n );\n if (o[o.length - 1].length !== o[0].length)\n throw new Error(\"First and last Position are not equivalent.\");\n for (let i = 0; i < o[o.length - 1].length; i++)\n if (o[o.length - 1][i] !== o[0][i])\n throw new Error(\"First and last Position are not equivalent.\");\n }\n return st({\n type: \"Polygon\",\n coordinates: r\n }, t, e);\n}\nfunction V(r, t = {}) {\n const e = { type: \"FeatureCollection\" };\n return t.id && (e.id = t.id), t.bbox && (e.bbox = t.bbox), e.features = r, e;\n}\nfunction Z(r) {\n return !isNaN(r) && r !== null && !Array.isArray(r);\n}\nfunction dt(r) {\n if (!r)\n throw new Error(\"coord is required\");\n if (!Array.isArray(r)) {\n if (r.type === \"Feature\" && r.geometry !== null && r.geometry.type === \"Point\")\n return [...r.geometry.coordinates];\n if (r.type === \"Point\")\n return [...r.coordinates];\n }\n if (Array.isArray(r) && r.length >= 2 && !Array.isArray(r[0]) && !Array.isArray(r[1]))\n return [...r];\n throw new Error(\"coord must be GeoJSON Point or an Array of numbers\");\n}\nfunction J(r) {\n if (Array.isArray(r))\n return r;\n if (r.type === \"Feature\") {\n if (r.geometry !== null)\n return r.geometry.coordinates;\n } else if (r.coordinates)\n return r.coordinates;\n throw new Error(\n \"coords must be GeoJSON Feature, Geometry Object or an Array\"\n );\n}\nfunction ht(r) {\n return r.type === \"Feature\" ? r.geometry : r;\n}\nconst N = 11102230246251565e-32, E = 134217729, lt = (3 + 8 * N) * N;\nfunction Y(r, t, e, n, o) {\n let i, s, d, a, c = t[0], m = n[0], u = 0, h = 0;\n m > c == m > -c ? (i = c, c = t[++u]) : (i = m, m = n[++h]);\n let g = 0;\n if (u < r && h < e)\n for (m > c == m > -c ? (s = c + i, d = i - (s - c), c = t[++u]) : (s = m + i, d = i - (s - m), m = n[++h]), i = s, d !== 0 && (o[g++] = d); u < r && h < e; )\n m > c == m > -c ? (s = i + c, a = s - i, d = i - (s - a) + (c - a), c = t[++u]) : (s = i + m, a = s - i, d = i - (s - a) + (m - a), m = n[++h]), i = s, d !== 0 && (o[g++] = d);\n for (; u < r; )\n s = i + c, a = s - i, d = i - (s - a) + (c - a), c = t[++u], i = s, d !== 0 && (o[g++] = d);\n for (; h < e; )\n s = i + m, a = s - i, d = i - (s - a) + (m - a), m = n[++h], i = s, d !== 0 && (o[g++] = d);\n return (i !== 0 || g === 0) && (o[g++] = i), g;\n}\nfunction yt(r, t) {\n let e = t[0];\n for (let n = 1; n < r; n++) e += t[n];\n return e;\n}\nfunction D(r) {\n return new Float64Array(r);\n}\nconst mt = (3 + 16 * N) * N, gt = (2 + 12 * N) * N, xt = (9 + 64 * N) * N * N, U = D(4), j = D(8), K = D(12), Q = D(16), A = D(4);\nfunction bt(r, t, e, n, o, i, s) {\n let d, a, c, m, u, h, g, x, y, l, f, p, w, M, T, b, _, v;\n const S = r - o, C = e - o, B = t - i, P = n - i;\n M = S * P, h = E * S, g = h - (h - S), x = S - g, h = E * P, y = h - (h - P), l = P - y, T = x * l - (M - g * y - x * y - g * l), b = B * C, h = E * B, g = h - (h - B), x = B - g, h = E * C, y = h - (h - C), l = C - y, _ = x * l - (b - g * y - x * y - g * l), f = T - _, u = T - f, U[0] = T - (f + u) + (u - _), p = M + f, u = p - M, w = M - (p - u) + (f - u), f = w - b, u = w - f, U[1] = w - (f + u) + (u - b), v = p + f, u = v - p, U[2] = p - (v - u) + (f - u), U[3] = v;\n let k = yt(4, U), F = gt * s;\n if (k >= F || -k >= F || (u = r - S, d = r - (S + u) + (u - o), u = e - C, c = e - (C + u) + (u - o), u = t - B, a = t - (B + u) + (u - i), u = n - P, m = n - (P + u) + (u - i), d === 0 && a === 0 && c === 0 && m === 0) || (F = xt * s + lt * Math.abs(k), k += S * m + P * d - (B * c + C * a), k >= F || -k >= F)) return k;\n M = d * P, h = E * d, g = h - (h - d), x = d - g, h = E * P, y = h - (h - P), l = P - y, T = x * l - (M - g * y - x * y - g * l), b = a * C, h = E * a, g = h - (h - a), x = a - g, h = E * C, y = h - (h - C), l = C - y, _ = x * l - (b - g * y - x * y - g * l), f = T - _, u = T - f, A[0] = T - (f + u) + (u - _), p = M + f, u = p - M, w = M - (p - u) + (f - u), f = w - b, u = w - f, A[1] = w - (f + u) + (u - b), v = p + f, u = v - p, A[2] = p - (v - u) + (f - u), A[3] = v;\n const ct = Y(4, U, 4, A, j);\n M = S * m, h = E * S, g = h - (h - S), x = S - g, h = E * m, y = h - (h - m), l = m - y, T = x * l - (M - g * y - x * y - g * l), b = B * c, h = E * B, g = h - (h - B), x = B - g, h = E * c, y = h - (h - c), l = c - y, _ = x * l - (b - g * y - x * y - g * l), f = T - _, u = T - f, A[0] = T - (f + u) + (u - _), p = M + f, u = p - M, w = M - (p - u) + (f - u), f = w - b, u = w - f, A[1] = w - (f + u) + (u - b), v = p + f, u = v - p, A[2] = p - (v - u) + (f - u), A[3] = v;\n const ut = Y(ct, j, 4, A, K);\n M = d * m, h = E * d, g = h - (h - d), x = d - g, h = E * m, y = h - (h - m), l = m - y, T = x * l - (M - g * y - x * y - g * l), b = a * c, h = E * a, g = h - (h - a), x = a - g, h = E * c, y = h - (h - c), l = c - y, _ = x * l - (b - g * y - x * y - g * l), f = T - _, u = T - f, A[0] = T - (f + u) + (u - _), p = M + f, u = p - M, w = M - (p - u) + (f - u), f = w - b, u = w - f, A[1] = w - (f + u) + (u - b), v = p + f, u = v - p, A[2] = p - (v - u) + (f - u), A[3] = v;\n const ft = Y(ut, K, 4, A, Q);\n return Q[ft - 1];\n}\nfunction pt(r, t, e, n, o, i) {\n const s = (t - i) * (e - o), d = (r - o) * (n - i), a = s - d, c = Math.abs(s + d);\n return Math.abs(a) >= mt * c ? a : -bt(r, t, e, n, o, i, c);\n}\nfunction wt(r, t) {\n var e, n, o = 0, i, s, d, a, c, m, u, h = r[0], g = r[1], x = t.length;\n for (e = 0; e < x; e++) {\n n = 0;\n var y = t[e], l = y.length - 1;\n if (m = y[0], m[0] !== y[l][0] && m[1] !== y[l][1])\n throw new Error(\"First and last coordinates in a ring must be the same\");\n for (s = m[0] - h, d = m[1] - g, n; n < l; n++) {\n if (u = y[n + 1], a = u[0] - h, c = u[1] - g, d === 0 && c === 0) {\n if (a <= 0 && s >= 0 || s <= 0 && a >= 0)\n return 0;\n } else if (c >= 0 && d <= 0 || c <= 0 && d >= 0) {\n if (i = pt(s, a, d, c, 0, 0), i === 0)\n return 0;\n (i > 0 && c > 0 && d <= 0 || i < 0 && c <= 0 && d > 0) && o++;\n }\n m = u, d = c, s = a;\n }\n }\n return o % 2 !== 0;\n}\nfunction L(r, t, e = {}) {\n if (!r)\n throw new Error(\"point is required\");\n if (!t)\n throw new Error(\"polygon is required\");\n const n = dt(r), o = ht(t), i = o.type, s = t.bbox;\n let d = o.coordinates;\n if (s && Mt(n, s) === !1)\n return !1;\n i === \"Polygon\" && (d = [d]);\n for (var a = 0; a < d.length; ++a) {\n const c = wt(n, d[a]);\n if (c === 0 && !e.ignoreBoundary) return !0;\n if (c) return !0;\n }\n return !1;\n}\nfunction Mt(r, t) {\n return t[0] <= r[0] && t[1] <= r[1] && t[2] >= r[0] && t[3] >= r[1];\n}\nfunction $(r, t) {\n for (let e = 0; e < t.features.length; e++)\n if (L(r, t.features[e]))\n return t.features[e];\n}\nfunction ot(r, t) {\n const e = t.geometry.coordinates[0][0], n = t.geometry.coordinates[0][1], o = t.geometry.coordinates[0][2], i = r.geometry.coordinates, s = t.properties.a.geom, d = t.properties.b.geom, a = t.properties.c.geom, c = [n[0] - e[0], n[1] - e[1]], m = [o[0] - e[0], o[1] - e[1]], u = [i[0] - e[0], i[1] - e[1]], h = [d[0] - s[0], d[1] - s[1]], g = [a[0] - s[0], a[1] - s[1]], x = (m[1] * u[0] - m[0] * u[1]) / (c[0] * m[1] - c[1] * m[0]), y = (c[0] * u[1] - c[1] * u[0]) / (c[0] * m[1] - c[1] * m[0]);\n return [\n x * h[0] + y * g[0] + s[0],\n x * h[1] + y * g[1] + s[1]\n ];\n}\nfunction _t(r, t, e) {\n const n = r.geometry.coordinates, o = e.geometry.coordinates, i = Math.atan2(n[0] - o[0], n[1] - o[1]), s = vt(i, t[0]);\n if (s === void 0)\n throw new Error(\"Unable to determine vertex index\");\n const d = t[1][s];\n return ot(r, d.features[0]);\n}\nfunction Tt(r, t, e, n, o, i, s, d) {\n let a;\n if (s && (a = $(r, V([s]))), !a)\n if (e) {\n const c = r.geometry.coordinates, m = e.gridNum, u = e.xOrigin, h = e.yOrigin, g = e.xUnit, x = e.yUnit, y = e.gridCache, l = O(c[0], u, g, m), f = O(c[1], h, x, m), p = y[l] ? y[l][f] ? y[l][f] : [] : [], w = V(p.map((M) => t.features[M]));\n a = $(r, w);\n } else\n a = $(r, t);\n return d && d(a), a ? ot(r, a) : _t(r, n, o);\n}\nfunction O(r, t, e, n) {\n let o = Math.floor((r - t) / e);\n return o < 0 && (o = 0), o >= n && (o = n - 1), o;\n}\nfunction vt(r, t) {\n let e = H(r - t[0]), n = Math.PI * 2, o;\n for (let i = 0; i < t.length; i++) {\n const s = (i + 1) % t.length, d = H(r - t[s]), a = Math.min(Math.abs(e), Math.abs(d));\n e * d <= 0 && a < n && (n = a, o = i), e = d;\n }\n return o;\n}\nfunction H(r, t = !1) {\n const e = 2 * Math.PI, n = r - Math.floor(r / e) * e;\n return t ? n : n > Math.PI ? n - e : n;\n}\nfunction Ft(r) {\n const t = r.features;\n for (let e = 0; e < t.length; e++) {\n const n = t[e];\n `${n.properties.a.index}`.substring(0, 1) === \"b\" && `${n.properties.b.index}`.substring(0, 1) === \"b\" ? t[e] = {\n geometry: {\n type: \"Polygon\",\n coordinates: [\n [\n n.geometry.coordinates[0][2],\n n.geometry.coordinates[0][0],\n n.geometry.coordinates[0][1],\n n.geometry.coordinates[0][2]\n ]\n ]\n },\n properties: {\n a: {\n geom: n.properties.c.geom,\n index: n.properties.c.index\n },\n b: {\n geom: n.properties.a.geom,\n index: n.properties.a.index\n },\n c: {\n geom: n.properties.b.geom,\n index: n.properties.b.index\n }\n },\n type: \"Feature\"\n } : `${n.properties.c.index}`.substring(0, 1) === \"b\" && `${n.properties.a.index}`.substring(0, 1) === \"b\" && (t[e] = {\n geometry: {\n type: \"Polygon\",\n coordinates: [\n [\n n.geometry.coordinates[0][1],\n n.geometry.coordinates[0][2],\n n.geometry.coordinates[0][0],\n n.geometry.coordinates[0][1]\n ]\n ]\n },\n properties: {\n a: {\n geom: n.properties.b.geom,\n index: n.properties.b.index\n },\n b: {\n geom: n.properties.c.geom,\n index: n.properties.c.index\n },\n c: {\n geom: n.properties.a.geom,\n index: n.properties.a.index\n }\n },\n type: \"Feature\"\n });\n }\n return r;\n}\nfunction Dt(r) {\n const t = [\"a\", \"b\", \"c\", \"a\"].map(\n (i) => r.properties[i].geom\n ), e = r.geometry.coordinates[0], n = r.properties, o = {\n a: { geom: e[0], index: n.a.index },\n b: { geom: e[1], index: n.b.index },\n c: { geom: e[2], index: n.c.index }\n };\n return W([t], o);\n}\nfunction Et(r) {\n const t = [0, 1, 2, 0].map((n) => r[n][0][0]), e = {\n a: { geom: r[0][0][1], index: r[0][1] },\n b: { geom: r[1][0][1], index: r[1][1] },\n c: { geom: r[2][0][1], index: r[2][1] }\n };\n return W([t], e);\n}\nfunction G(r, t, e, n, o, i = !1, s) {\n const d = r.map(\n (a) => {\n (!s || s < 2.00703) && (a = At(a));\n const c = isFinite(a) ? t[a] : a === \"c\" ? n : (function() {\n const m = a.match(/^b(\\d+)$/);\n if (m) return o[parseInt(m[1])];\n const u = a.match(/^e(\\d+)$/);\n if (u) return e[parseInt(u[1])];\n throw new Error(\"Bad index value for indexesToTri\");\n })();\n return i ? [[c[1], c[0]], a] : [[c[0], c[1]], a];\n }\n );\n return Et(d);\n}\nfunction At(r) {\n return typeof r == \"number\" ? r : r.replace(/^(c|e|b)(?:ent|dgeNode|box)(\\d+)?$/, \"$1$2\");\n}\nfunction It(r, t) {\n return t && t >= 2.00703 || Array.isArray(r[0]) ? r : r.map((e) => [\n e.illstNodes,\n e.mercNodes,\n e.startEnd\n ]);\n}\nconst it = 2.00704;\nfunction St(r) {\n return !!(r.version !== void 0 || !r.tins && r.points && r.tins_points);\n}\nfunction Ct(r) {\n return {\n points: r.points,\n strictStatus: Pt(r),\n verticesParams: Ot(r),\n centroid: Rt(r),\n edges: It(r.edges || []),\n edgeNodes: r.edgeNodes || [],\n tins: kt(r),\n kinks: Xt(r.kinks_points),\n yaxisMode: r.yaxisMode ?? \"invert\",\n strictMode: r.strictMode ?? \"auto\",\n vertexMode: r.vertexMode,\n bounds: r.bounds,\n boundsPolygon: r.boundsPolygon,\n wh: r.wh,\n xy: r.xy ?? [0, 0]\n };\n}\nfunction Bt(r) {\n const t = Nt(r), e = t.tins;\n return {\n compiled: t,\n tins: e,\n points: Lt(e),\n strictStatus: t.strict_status,\n verticesParams: t.vertices_params,\n centroid: t.centroid,\n kinks: t.kinks\n };\n}\nfunction Pt(r) {\n return r.strict_status ? r.strict_status : r.kinks_points ? \"strict_error\" : r.tins_points.length === 2 ? \"loose\" : \"strict\";\n}\nfunction Ot(r) {\n const t = {\n forw: [r.vertices_params[0]],\n bakw: [r.vertices_params[1]]\n };\n return t.forw[1] = tt(r, !1), t.bakw[1] = tt(r, !0), t;\n}\nfunction tt(r, t) {\n const e = r.vertices_points.length;\n return Array.from({ length: e }, (n, o) => {\n const i = (o + 1) % e, s = G(\n [\"c\", `b${o}`, `b${i}`],\n r.points,\n r.edgeNodes || [],\n r.centroid_point,\n r.vertices_points,\n t,\n it\n );\n return V([s]);\n });\n}\nfunction Rt(r) {\n return {\n forw: X(r.centroid_point[0], {\n target: {\n geom: r.centroid_point[1],\n index: \"c\"\n }\n }),\n bakw: X(r.centroid_point[1], {\n target: {\n geom: r.centroid_point[0],\n index: \"c\"\n }\n })\n };\n}\nfunction kt(r) {\n const t = r.tins_points.length === 1 ? 0 : 1;\n return {\n forw: V(\n r.tins_points[0].map(\n (e) => G(\n e,\n r.points,\n r.edgeNodes || [],\n r.centroid_point,\n r.vertices_points,\n !1,\n r.version\n )\n )\n ),\n bakw: V(\n r.tins_points[t].map(\n (e) => G(\n e,\n r.points,\n r.edgeNodes || [],\n r.centroid_point,\n r.vertices_points,\n !0,\n r.version\n )\n )\n )\n };\n}\nfunction Xt(r) {\n if (r)\n return {\n bakw: V(\n r.map((t) => X(t))\n )\n };\n}\nfunction Nt(r) {\n return JSON.parse(\n JSON.stringify(r).replace('\"cent\"', '\"c\"').replace(/\"bbox(\\d+)\"/g, '\"b$1\"')\n );\n}\nfunction Lt(r) {\n const t = [], e = r.forw.features;\n for (let n = 0; n < e.length; n++) {\n const o = e[n];\n [\"a\", \"b\", \"c\"].forEach((i, s) => {\n const d = o.geometry.coordinates[0][s], a = o.properties[i].geom, c = o.properties[i].index;\n typeof c == \"number\" && (t[c] = [d, a]);\n });\n }\n return t;\n}\nconst Wt = it;\nclass I {\n /**\n * 各種モードの定数定義\n * すべてreadonlyで、型安全性を確保\n */\n static VERTEX_PLAIN = \"plain\";\n static VERTEX_BIRDEYE = \"birdeye\";\n static MODE_STRICT = \"strict\";\n static MODE_AUTO = \"auto\";\n static MODE_LOOSE = \"loose\";\n static STATUS_STRICT = \"strict\";\n static STATUS_ERROR = \"strict_error\";\n static STATUS_LOOSE = \"loose\";\n static YAXIS_FOLLOW = \"follow\";\n static YAXIS_INVERT = \"invert\";\n points = [];\n /** @deprecated 2.00704 以降、Transform はこのプロパティを設定も参照もしない。サブクラス(MaplatTin)は、旧 @maplat/transform と組まれたときの互換のため {} を入れる(t2 設計 §2.1) */\n pointsWeightBuffer;\n strict_status;\n vertices_params;\n centroid;\n edgeNodes;\n edges;\n tins;\n kinks;\n yaxisMode = I.YAXIS_INVERT;\n strictMode = I.MODE_AUTO;\n vertexMode = I.VERTEX_PLAIN;\n bounds;\n boundsPolygon;\n wh;\n xy;\n indexedTins;\n stateFull = !1;\n stateTriangle;\n stateBackward;\n /**\n * Optional properties for MaplatCore extension\n * These properties allow consuming applications to extend Transform instances\n * with additional metadata without requiring Module Augmentation\n */\n /** Layer priority for rendering order */\n priority;\n /** Layer importance for display decisions */\n importance;\n /** Bounds in XY (source) coordinate system */\n xyBounds;\n /** Bounds in Mercator (Web Mercator) coordinate system */\n mercBounds;\n constructor() {\n }\n /**\n * コンパイルされた設定を適用します\n *\n * @param compiled - コンパイルされた設定オブジェクト\n * @returns 変換に必要な主要なオブジェクトのセット\n *\n * 以下の処理を行います:\n * 1. バージョンに応じた設定の解釈\n * 2. 各種パラメータの復元\n * 3. TINネットワークの再構築\n * 4. インデックスの作成\n */\n setCompiled(t) {\n if (St(t)) {\n this.applyModernState(Ct(t));\n return;\n }\n this.applyLegacyState(Bt(t));\n }\n applyModernState(t) {\n this.points = t.points, this.strict_status = t.strictStatus, this.vertices_params = t.verticesParams, this.centroid = t.centroid, this.edges = t.edges, this.edgeNodes = t.edgeNodes || [], this.tins = t.tins, this.addIndexedTin(), this.kinks = t.kinks, this.yaxisMode = t.yaxisMode ?? I.YAXIS_INVERT, this.vertexMode = t.vertexMode ?? I.VERTEX_PLAIN, this.strictMode = t.strictMode ?? I.MODE_AUTO, t.bounds ? (this.bounds = t.bounds, this.boundsPolygon = t.boundsPolygon, this.xy = t.xy, this.wh = t.wh) : (this.bounds = void 0, this.boundsPolygon = void 0, this.xy = t.xy ?? [0, 0], t.wh && (this.wh = t.wh));\n }\n applyLegacyState(t) {\n this.tins = t.tins, this.addIndexedTin(), this.strict_status = t.strictStatus, this.vertices_params = t.verticesParams, this.centroid = t.centroid, this.kinks = t.kinks, this.points = t.points;\n }\n /**\n * TINネットワークのインデックスを作成します\n *\n * インデックスは変換処理を高速化するために使用されます。\n * グリッド形式のインデックスを作成し、各グリッドに\n * 含まれる三角形を記録します。\n */\n addIndexedTin() {\n const t = this.tins, e = t.forw, n = t.bakw, o = Math.ceil(Math.sqrt(e.features.length));\n if (o < 3) {\n this.indexedTins = void 0;\n return;\n }\n let i = [], s = [];\n const d = e.features.map((y) => {\n let l = [];\n return J(y)[0].map((f) => {\n i.length === 0 ? i = [Array.from(f), Array.from(f)] : (f[0] < i[0][0] && (i[0][0] = f[0]), f[0] > i[1][0] && (i[1][0] = f[0]), f[1] < i[0][1] && (i[0][1] = f[1]), f[1] > i[1][1] && (i[1][1] = f[1])), l.length === 0 ? l = [Array.from(f), Array.from(f)] : (f[0] < l[0][0] && (l[0][0] = f[0]), f[0] > l[1][0] && (l[1][0] = f[0]), f[1] < l[0][1] && (l[0][1] = f[1]), f[1] > l[1][1] && (l[1][1] = f[1]));\n }), l;\n }), a = (i[1][0] - i[0][0]) / o, c = (i[1][1] - i[0][1]) / o, m = d.reduce(\n (y, l, f) => {\n const p = O(l[0][0], i[0][0], a, o), w = O(l[1][0], i[0][0], a, o), M = O(l[0][1], i[0][1], c, o), T = O(l[1][1], i[0][1], c, o);\n for (let b = p; b <= w; b++) {\n y[b] || (y[b] = []);\n for (let _ = M; _ <= T; _++)\n y[b][_] || (y[b][_] = []), y[b][_].push(f);\n }\n return y;\n },\n []\n ), u = n.features.map((y) => {\n let l = [];\n return J(y)[0].map((f) => {\n s.length === 0 ? s = [Array.from(f), Array.from(f)] : (f[0] < s[0][0] && (s[0][0] = f[0]), f[0] > s[1][0] && (s[1][0] = f[0]), f[1] < s[0][1] && (s[0][1] = f[1]), f[1] > s[1][1] && (s[1][1] = f[1])), l.length === 0 ? l = [Array.from(f), Array.from(f)] : (f[0] < l[0][0] && (l[0][0] = f[0]), f[0] > l[1][0] && (l[1][0] = f[0]), f[1] < l[0][1] && (l[0][1] = f[1]), f[1] > l[1][1] && (l[1][1] = f[1]));\n }), l;\n }), h = (s[1][0] - s[0][0]) / o, g = (s[1][1] - s[0][1]) / o, x = u.reduce(\n (y, l, f) => {\n const p = O(l[0][0], s[0][0], h, o), w = O(l[1][0], s[0][0], h, o), M = O(l[0][1], s[0][1], g, o), T = O(l[1][1], s[0][1], g, o);\n for (let b = p; b <= w; b++) {\n y[b] || (y[b] = []);\n for (let _ = M; _ <= T; _++)\n y[b][_] || (y[b][_] = []), y[b][_].push(f);\n }\n return y;\n },\n []\n );\n this.indexedTins = {\n forw: {\n gridNum: o,\n xOrigin: i[0][0],\n yOrigin: i[0][1],\n xUnit: a,\n yUnit: c,\n gridCache: m\n },\n bakw: {\n gridNum: o,\n xOrigin: s[0][0],\n yOrigin: s[0][1],\n xUnit: h,\n yUnit: g,\n gridCache: x\n }\n };\n }\n /**\n * 座標変換を実行します\n *\n * @param apoint - 変換する座標\n * @param backward - 逆方向の変換かどうか\n * @param ignoreBounds - 境界チェックを無視するかどうか\n * @returns 変換後の座標、または境界外の場合はfalse\n *\n * @throws {Error} 逆方向変換が許可されていない状態での逆変換時\n */\n transform(t, e, n) {\n if (!this.tins)\n throw new Error(\"setCompiled() must be called before transform()\");\n if (e && this.strict_status == I.STATUS_ERROR)\n throw new Error('Backward transform is not allowed if strict_status == \"strict_error\"');\n this.yaxisMode == I.YAXIS_FOLLOW && e && (t = [t[0], -1 * t[1]]);\n const o = X(t);\n if (this.bounds && !e && !n && !L(o, this.boundsPolygon))\n return !1;\n const i = e ? this.tins.bakw : this.tins.forw, s = e ? this.indexedTins.bakw : this.indexedTins.forw, d = e ? this.vertices_params.bakw : this.vertices_params.forw, a = e ? this.centroid.bakw : this.centroid.forw;\n let c, m;\n this.stateFull && (this.stateBackward == e ? c = this.stateTriangle : (this.stateBackward = e, this.stateTriangle = void 0), m = (h) => {\n this.stateTriangle = h;\n });\n let u = Tt(\n o,\n i,\n s,\n d,\n a,\n void 0,\n c,\n m\n );\n if (this.bounds && e && !n) {\n const h = X(u);\n if (!L(h, this.boundsPolygon)) return !1;\n } else this.yaxisMode == I.YAXIS_FOLLOW && !e && (u = [u[0], -1 * u[1]]);\n return u;\n }\n}\nconst R = 20037508342789244e-9, Ut = [\n [0, 0],\n [0, 1],\n [1, 0],\n [0, -1],\n [-1, 0]\n];\nfunction at(r, t) {\n return Math.floor(Math.min(r[0], r[1]) / 4) * R / 128 / Math.pow(2, t);\n}\nfunction Vt(r, t) {\n const e = [];\n for (let n = 0; n < r.length; n++) {\n const o = r[n], i = o[0] * Math.cos(t) - o[1] * Math.sin(t), s = o[0] * Math.sin(t) + o[1] * Math.cos(t);\n e.push([i, s]);\n }\n return e;\n}\nfunction rt(r, t, e, n) {\n const o = at(n, t);\n return Vt(Ut, e).map((d) => [\n d[0] * o + r[0],\n d[1] * o + r[1]\n ]);\n}\nfunction et(r, t) {\n const e = r[0], o = r.slice(1, 5).map((g) => [\n g[0] - e[0],\n g[1] - e[1]\n ]), i = [\n [0, 1],\n [1, 0],\n [0, -1],\n [-1, 0]\n ];\n let s = 0, d = 0, a = 0;\n for (let g = 0; g < 4; g++) {\n const x = o[g], y = i[g], l = Math.sqrt(Math.pow(x[0], 2) + Math.pow(x[1], 2));\n s += l;\n const f = x[0] * y[1] - x[1] * y[0], p = Math.acos(\n (x[0] * y[0] + x[1] * y[1]) / l\n ), w = f > 0 ? -1 * p : p;\n d += Math.cos(w), a += Math.sin(w);\n }\n const c = s / 4, m = Math.atan2(a, d), u = Math.floor(Math.min(t[0], t[1]) / 4), h = Math.log(u * R / 128 / c) / Math.log(2);\n return { center: e, zoom: h, rotation: m };\n}\nfunction q(r, t) {\n const e = r[0] * (2 * R) / t - R, n = -1 * (r[1] * (2 * R) / t - R);\n return [e, n];\n}\nfunction nt(r, t) {\n const e = (r[0] + R) * t / (2 * R), n = (-r[1] + R) * t / (2 * R);\n return [e, n];\n}\nconst z = 256;\nclass Yt {\n mainTin = null;\n subTins = [];\n _maxxy = 0;\n // ─── 初期化 ────────────────────────────────────────────────────────────────\n /**\n * 地図データ(コンパイル済み TIN + sub_maps)をロードする\n *\n * @param mapData - メイン TIN と sub_maps の情報\n */\n setMapData(t) {\n const e = new I();\n if (e.setCompiled(t.compiled), this.mainTin = e, t.maxZoom !== void 0)\n this._maxxy = Math.pow(2, t.maxZoom) * z;\n else if (t.compiled.wh) {\n const n = Math.max(t.compiled.wh[0], t.compiled.wh[1]), o = Math.ceil(Math.log2(n / z));\n this._maxxy = Math.pow(2, o) * z;\n }\n if (this.subTins = [], t.sub_maps)\n for (const n of t.sub_maps) {\n const o = new I();\n o.setCompiled(n.compiled);\n const i = n.bounds ?? n.compiled.bounds;\n if (!i)\n throw new Error(\n \"SubMapData must have bounds or compiled.bounds to create xyBounds polygon\"\n );\n const s = [...i, i[0]], d = s.map((a) => {\n const c = o.transform(a, !1);\n if (!c) throw new Error(\"Failed to transform sub-map bounds to mercator\");\n return c;\n });\n this.subTins.push({\n tin: o,\n priority: n.priority,\n importance: n.importance,\n xyBounds: W([s]),\n mercBounds: W([d])\n });\n }\n }\n // ─── 処理2: submap TIN 選択付き変換 ───────────────────────────────────────\n /**\n * ピクセル座標 → メルカトル座標(最適レイヤー選択)\n *\n * @param xy - ピクセル座標 [x, y]\n * @returns メルカトル座標、または範囲外の場合は false\n */\n xy2Merc(t) {\n const e = this.xy2MercWithLayer(t);\n return e ? e[1] : !1;\n }\n /**\n * メルカトル座標 → ピクセル座標(最適レイヤー選択)\n *\n * @param merc - メルカトル座標 [x, y]\n * @returns ピクセル座標、または範囲外の場合は false\n */\n merc2Xy(t) {\n const e = this.merc2XyWithLayer(t), n = e[0] || e[1];\n return n ? n[1] : !1;\n }\n /**\n * ピクセル座標 → メルカトル座標(レイヤーID付き)\n * histmap_tin.ts xy2MercAsync_returnLayer() の同期版\n *\n * @param xy - ピクセル座標 [x, y]\n * @returns [レイヤーインデックス, メルカトル座標] または false\n */\n xy2MercWithLayer(t) {\n this._assertMapData();\n const e = this._getTinsSortedByPriority();\n for (let n = 0; n < e.length; n++) {\n const { index: o, isMain: i } = e[n];\n if (i || L(X(t), this.subTins[o - 1].xyBounds)) {\n const s = this._transformByIndex(t, o, !1);\n if (s === !1) continue;\n return [o, s];\n }\n }\n return !1;\n }\n /**\n * メルカトル座標 → ピクセル座標(複数レイヤー結果)\n * histmap_tin.ts merc2XyAsync_returnLayer() の同期版\n *\n * 現在は MaplatCore の仕様に合わせ、最大2レイヤーまで返す。\n * 3レイヤー以上返したい場合は、下記の .slice(0, 2) および .filter(i < 2) の\n * 上限値を増やすか、引数で上限を指定できるようにすること。\n *\n * @param merc - メルカトル座標 [x, y]\n * @returns 最大2要素の配列。各要素は [レイヤーインデックス, ピクセル座標] または undefined\n */\n merc2XyWithLayer(t) {\n return this._assertMapData(), this._getAllTinsWithIndex().map(({ index: s, tin: d, isMain: a }) => {\n const c = this._transformByIndex(t, s, !0);\n return c === !1 ? [d, s] : a || L(X(c), this.subTins[s - 1].xyBounds) ? [d, s, c] : [d, s];\n }).sort((s, d) => {\n const a = s[0].priority ?? 0, c = d[0].priority ?? 0;\n return a < c ? 1 : -1;\n }).reduce(\n (s, d, a, c) => {\n const m = d[0], u = d[1], h = d[2];\n if (!h) return s;\n for (let g = 0; g < a; g++) {\n const x = c[g][1], y = x === 0;\n if (c[g][2] && (y || L(X(h), this.subTins[x - 1].xyBounds)))\n if (s.length) {\n const l = !s[0], f = l ? s[1][2] : s[0][2], p = m.importance ?? 0, w = f.importance ?? 0;\n return l ? p < w ? s : [void 0, [u, h, m]] : [...s.filter(\n (b) => b !== void 0\n ), [u, h, m]].sort(\n (b, _) => (b[2].importance ?? 0) < (_[2].importance ?? 0) ? 1 : -1\n ).slice(0, 2);\n } else\n return [[u, h, m]];\n }\n return !s.length || !s[0] ? [[u, h, m]] : (s.push([u, h, m]), s.sort((g, x) => {\n const y = g[2].importance ?? 0, l = x[2].importance ?? 0;\n return y < l ? 1 : -1;\n }).filter((g, x) => x < 2));\n },\n []\n ).map((s) => {\n if (s)\n return [s[0], s[1]];\n });\n }\n /**\n * メルカトル座標 → 覆われていない対応層の一覧(GPS / POI の表示候補用)\n *\n * `merc2XyWithLayer` は視点換算・一般座標変換用で、本図を常に候補に含める。\n * GPS マーカー・POI ピンをどの層に描くかの判定には本メソッドを使う(MaplatTransform#9)。\n *\n * 1. 各層の TIN で逆変換し、sub_map は自身の `xyBounds` 内に入るものだけを対応層とする。\n * 本図(層 0)は紙の内外を判定せず常に対応層の候補とする(紙外の除外は呼び出し側が行う)\n * 2. 対応層の座標が、より priority の高い sub_map の `xyBounds` 内なら覆われている。\n * その高 priority 層自身が当該地点に対応するかは関係しない。\n * 本図は priority 0 の sub_map の `xyBounds` 内でも覆われている\n * 3. 同じ priority の sub_map どうしは互いを覆わない\n * 4. 覆われていない対応層を importance 降順 → priority 降順 → 層番号昇順で並べ、上限を切らずに全件返す\n * 5. 覆われていない対応層が無ければ空配列(表現範囲外)。`undefined`(旧 hide 表現)は返さない\n *\n * @param merc - メルカトル座標 [x, y]\n * @returns [レイヤーインデックス, ピクセル座標] の配列(0 件以上・上限なし)\n */\n merc2XyVisibleLayers(t) {\n this._assertMapData();\n const e = this._getAllTinsWithIndex(), n = (a) => a === 0 ? 0 : this.subTins[a - 1].priority ?? 0, o = (a) => a === 0 ? 0 : this.subTins[a - 1].importance ?? 0, i = (a, c) => a === 0 || L(X(c), this.subTins[a - 1].xyBounds), s = [];\n for (const { index: a } of e) {\n const c = this._transformByIndex(t, a, !0);\n c !== !1 && i(a, c) && s.push({ index: a, xy: c });\n }\n const d = (a) => e.some(\n ({ index: c }) => c !== 0 && c !== a.index && (n(c) > n(a.index) || a.index === 0 && n(c) === 0) && i(c, a.xy)\n );\n return s.filter((a) => !d(a)).sort((a, c) => o(c.index) - o(a.index) || n(c.index) - n(a.index) || a.index - c.index).map((a) => [a.index, a.xy]);\n }\n /**\n * メルカトル5点 → システム座標(複数レイヤー)\n * histmap_tin.ts mercs2SysCoordsAsync_multiLayer() の同期版\n *\n * @param mercs - 5点のメルカトル座標配列(中心+上下左右)\n * @returns 各レイヤーのシステム座標配列(または undefined)\n */\n mercs2SysCoords(t) {\n this._assertMapData();\n const e = this.merc2XyWithLayer(t[0]);\n let n = !1;\n return e.map((o, i) => {\n if (!o) {\n n = !0;\n return;\n }\n const s = o[0], d = o[1];\n return i !== 0 && !n ? [this.xy2SysCoordInternal(d)] : t.map((c, m) => m === 0 ? d : this._transformByIndex(c, s, !0)).map((c) => this.xy2SysCoordInternal(c));\n });\n }\n // ─── 処理3: ビューポート変換 ───────────────────────────────────────────────\n /**\n * ビューポート → TIN 適用後メルカトル5点\n * histmap_tin.ts viewpoint2MercsAsync() の同期版\n *\n * @param viewpoint - ビューポート(center, zoom, rotation)\n * @param size - 画面サイズ [width, height]\n * @returns TIN 変換後のメルカトル5点\n */\n viewpoint2Mercs(t, e) {\n this._assertMapData(), this._assertMaxxy();\n const o = rt(t.center, t.zoom, t.rotation, e).map((c) => nt(c, this._maxxy)), i = this.xy2MercWithLayer(o[0]);\n if (!i) throw new Error(\"viewpoint2Mercs: center point is out of bounds\");\n const s = i[0], d = i[1];\n return o.map((c, m) => {\n if (m === 0) return d;\n const u = this._transformByIndex(c, s, !1);\n if (u === !1) throw new Error(`viewpoint2Mercs: point ${m} is out of bounds`);\n return u;\n });\n }\n /**\n * TIN 適用後メルカトル5点 → ビューポート\n * histmap_tin.ts mercs2ViewpointAsync() の同期版\n *\n * @param mercs - TIN 変換後のメルカトル5点\n * @param size - 画面サイズ [width, height]\n * @returns ビューポート(center, zoom, rotation)\n */\n mercs2Viewpoint(t, e) {\n this._assertMapData(), this._assertMaxxy();\n const n = this.merc2XyWithLayer(t[0]), o = n[0] || n[1];\n if (!o) throw new Error(\"mercs2Viewpoint: center point is out of bounds\");\n const i = o[0], s = o[1], a = t.map((c, m) => {\n if (m === 0) return s;\n const u = this._transformByIndex(c, i, !0);\n if (u === !1) throw new Error(`mercs2Viewpoint: point ${m} is out of bounds`);\n return u;\n }).map((c) => q(c, this._maxxy));\n return et(a, e);\n }\n // ─── ユーティリティ(静的メソッド)────────────────────────────────────────\n /** zoom2Radius の静的ラッパー */\n static zoom2Radius(t, e) {\n return at(t, e);\n }\n /** mercViewpoint2Mercs の静的ラッパー */\n static mercViewpoint2Mercs(t, e, n, o) {\n return rt(t, e, n, o);\n }\n /** mercs2MercViewpoint の静的ラッパー */\n static mercs2MercViewpoint(t, e) {\n return et(t, e);\n }\n /** xy2SysCoord の静的ラッパー */\n static xy2SysCoord(t, e) {\n return q(t, e);\n }\n /** sysCoord2Xy の静的ラッパー */\n static sysCoord2Xy(t, e) {\n return nt(t, e);\n }\n // ─── 内部ヘルパー ──────────────────────────────────────────────────────────\n _assertMapData() {\n if (!this.mainTin)\n throw new Error(\"setMapData() must be called before transformation\");\n }\n _assertMaxxy() {\n if (this._maxxy === 0)\n throw new Error(\n \"MapData.maxZoom or compiled.wh must be set for viewpoint conversion (xy2SysCoord / sysCoord2Xy)\"\n );\n }\n /**\n * レイヤーインデックスに対応する Transform インスタンスを返す(三角網描画などの用途)\n *\n * @param idx - 0 = メイン TIN、1以上 = sub_maps[idx-1]\n * @returns 対応する Transform、または範囲外の場合は null\n */\n getLayerTransform(t) {\n if (t === 0) return this.mainTin;\n const e = this.subTins[t - 1];\n return e ? e.tin : null;\n }\n /** レイヤー数を返す(メイン + sub 数) */\n get layerCount() {\n return 1 + this.subTins.length;\n }\n /**\n * viewpoint 変換に使用する最大ピクセル幅(2^maxZoom × 256)\n * stateToViewpoint / viewpointToState で zoom ↔ scale 変換に使用する\n * zoom = log2(scale × maxxy / 256) の関係\n */\n get maxxy() {\n return this._maxxy;\n }\n /** priority 降順でソートした [index, tin, isMain] の配列を返す */\n _getTinsSortedByPriority() {\n return this._getAllTinsWithIndex().sort((e, n) => {\n const o = e.tin.priority ?? 0, i = n.tin.priority ?? 0;\n return o < i ? 1 : -1;\n });\n }\n /** メイン TIN + 全 sub TIN を index 付きで返す */\n _getAllTinsWithIndex() {\n const t = [\n { index: 0, tin: this.mainTin, isMain: !0 }\n ];\n return this.subTins.forEach((e, n) => {\n e.tin.priority = e.priority, e.tin.importance = e.importance, t.push({ index: n + 1, tin: e.tin, isMain: !1 });\n }), t;\n }\n /**\n * 指定レイヤーインデックスで TIN 変換を実行する\n * index 0 → mainTin, index 1..n → subTins[index-1]\n */\n _transformByIndex(t, e, n) {\n if (e === 0)\n return this.mainTin.transform(t, n);\n const o = this.subTins[e - 1];\n return o ? o.tin.transform(t, n, !0) : !1;\n }\n /** 内部用 xy2SysCoord(_maxxy を使用) */\n xy2SysCoordInternal(t) {\n return q(t, this._maxxy);\n }\n}\nexport {\n Ut as MERC_CROSSMATRIX,\n R as MERC_MAX,\n Yt as MapTransform,\n I as Transform,\n Dt as counterTri,\n Wt as format_version,\n rt as mercViewpoint2Mercs,\n et as mercs2MercViewpoint,\n It as normalizeEdges,\n Vt as rotateMatrix,\n Ft as rotateVerticesTriangle,\n nt as sysCoord2Xy,\n Tt as transformArr,\n q as xy2SysCoord,\n at as zoom2Radius\n};\n","export { MERC_MAX, MERC_CROSSMATRIX } from \"@maplat/transform\";\r\n\r\n// 透明PNG定義\r\nexport const transPng =\r\n \"data:image/png;base64,\" +\r\n \"iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAMAAABrrFhUAAAAB3RJTUUH3QgIBToaSbAjlwAAABd0\" +\r\n \"RVh0U29mdHdhcmUAR0xEUE5HIHZlciAzLjRxhaThAAAACHRwTkdHTEQzAAAAAEqAKR8AAAAEZ0FN\" +\r\n \"QQAAsY8L/GEFAAAAA1BMVEX///+nxBvIAAAAAXRSTlMAQObYZgAAAFRJREFUeNrtwQEBAAAAgJD+\" +\r\n \"r+4ICgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA\" +\r\n \"AAAAAAAAAAAAABgBDwABHHIJwwAAAABJRU5ErkJggg==\";\r\n\r\n// タイル画像サイズ\r\nexport const tileSize = 256;\r\n\r\n// canvasのテンプレート\r\nexport const canvBase = ``;\r\n","// Async initializer 6: Load pois setting\r\nimport type { FeatureCollection } from \"geojson\";\r\n\r\nexport async function nodesLoader(\r\n nodes: string | Record\r\n): Promise> {\r\n if (typeof nodes === \"string\") {\r\n const url = nodes.match(/\\//) ? nodes : `pois/${nodes}`;\r\n\r\n const response = await fetch(url);\r\n if (!response.ok) {\r\n throw new Error(\"Fail to load poi json\");\r\n }\r\n const resp = await response.json();\r\n return resp as Record;\r\n } else {\r\n return nodes;\r\n }\r\n}\r\n\r\n// --- pois layer ref (wrapper) support (m18-t4) ---\r\n// 許可キー方式(hide / title / icon / selectedIcon のみ)。t3 v1.3 §5.2/§5.3\r\nconst OVERRIDE_KEYS = [\"hide\", \"title\", \"icon\", \"selectedIcon\"] as const;\r\nconst COORD_KEYS = [\r\n \"lnglat\",\r\n \"lng\",\r\n \"lat\",\r\n \"longitude\",\r\n \"latitude\"\r\n] as const;\r\n\r\nfunction isPlainObject(x: any): boolean {\r\n return typeof x === \"object\" && x !== null && !Array.isArray(x);\r\n}\r\n\r\n// 配列要素文脈のラッパー判別。t3 v1.3 §5.2 の規則。\r\n// layer が string または FeatureCollection であり、かつ座標キーを持たない plain object。\r\nexport function isPoiLayerRef(x: any): boolean {\r\n if (!isPlainObject(x)) return false;\r\n if (x.type === \"FeatureCollection\") return false;\r\n const layer = x.layer;\r\n const layerIsString = typeof layer === \"string\";\r\n const layerIsFc = isPlainObject(layer) && layer.type === \"FeatureCollection\";\r\n if (!layerIsString && !layerIsFc) return false;\r\n if (COORD_KEYS.some(k => x[k] !== undefined)) return false;\r\n return true;\r\n}\r\n\r\n// 非配列(pois 全体)での受理には上書きキーの存在を追加要求する(旧レイヤ辞書の保護)\r\nfunction isPoiLayerRefAsWhole(x: any): boolean {\r\n return isPoiLayerRef(x) && OVERRIDE_KEYS.some(k => x[k] !== undefined);\r\n}\r\n\r\n// 許可キーのみ抽出。未知キーは破棄して console.warn(throw しない・forward 互換)。\r\nfunction extractOverrides(x: Record): Record {\r\n const overrides: Record = {};\r\n for (const [key, value] of Object.entries(x)) {\r\n if (key === \"layer\") continue;\r\n if ((OVERRIDE_KEYS as readonly string[]).includes(key)) {\r\n overrides[key] = value;\r\n continue;\r\n }\r\n console.warn(`[Maplat] pois layer ref: unknown override key ignored: ${key}`);\r\n }\r\n return overrides;\r\n}\r\n\r\n// normalizeLayer の戻り値(= FC.properties 展開後の cluster)へ上書きを合成。\r\n// 有効値のみ上書き(無効値はデータ側の値が残る)。\r\nfunction applyLayerOverrides(\r\n cluster: any,\r\n overrides: Record | null\r\n): any {\r\n if (!overrides) return cluster;\r\n if (overrides.hide === true) cluster.hide = true;\r\n const title = overrides.title;\r\n if (\r\n typeof title === \"string\"\r\n ? title !== \"\"\r\n : isPlainObject(title) && Object.keys(title).length > 0\r\n ) {\r\n cluster.name = title; // title → cluster.name\r\n }\r\n for (const key of [\"icon\", \"selectedIcon\"] as const) {\r\n const v = overrides[key];\r\n if (typeof v === \"string\" && v !== \"\") cluster[key] = v;\r\n }\r\n return cluster;\r\n}\r\n\r\n//pois: Process layers\r\nexport async function normalizeLayers(layers: any, options: any) {\r\n // Resolve url cases\r\n layers = await nodesLoader(layers);\r\n\r\n //In case \"layers\" is array\r\n if (Array.isArray(layers)) {\r\n // step1: モード判定(m4-t5 で fetch の前へ移した)。\r\n //\r\n // 【是正の理由】以前はここで全要素に nodesLoader を適用してから、解決後の先頭要素で\r\n // モードを判定していた。そのため **配列要素位置の裸 URL 文字列が判定より前に中身へ化け**、\r\n // 中身がレガシー POI 配列だと「配列の配列」になって POI オブジェクト配列モードへ落ち、\r\n // POI が壊れていた([\"url\"] / [\"url\", FC] が壊れる)。中身が FeatureCollection のときだけ\r\n // 偶然レイヤ配列モードへ入って正常に見えていた。\r\n // ラッパー(plain object)は nodesLoader が素通しするため元から fetch 前に判別できており、\r\n // **正しい判定順は本ファイル内に既に存在していた**。裸 URL だけがその恩恵を受けていない\r\n // という非対称を解消する(m4 マイルストーン再設計 G5 / MC7)。\r\n //\r\n // 【判定表】生の先頭要素だけで決める(m4-t5 設計 §5.1 が唯一の定義箇所):\r\n // 文字列 → レイヤ配列(レガシー POI 配列の要素は POI オブジェクトであり\r\n // 文字列にはなり得ない ∴ 配列位置の文字列は「レイヤの URL」以外\r\n // に解釈の余地がない。**中身を見ないからこそ健全**である)\r\n // FeatureCollection → レイヤ配列(現行どおり)\r\n // isPoiLayerRef が真 → レイヤ配列(現行どおり・m18-t4)\r\n // それ以外 / 空配列 → POI オブジェクト配列(配列全体で1レイヤ・現行どおり)\r\n const head = layers[0];\r\n const isLayerArray =\r\n layers.length > 0 &&\r\n (typeof head === \"string\" ||\r\n (isPlainObject(head) && head.type === \"FeatureCollection\") ||\r\n isPoiLayerRef(head));\r\n\r\n if (isLayerArray) {\r\n // step2: レイヤ配列モード。各要素を分解し layer を解決 → normalizeLayer → applyLayerOverrides\r\n const entries = await Promise.all(\r\n layers.map(async (x: any, index: any) => {\r\n let data: any;\r\n let overrides: Record | null;\r\n if (isPoiLayerRef(x)) {\r\n // wrapper.layer を nodesLoader で解決(URL ならここで fetch)\r\n data = await nodesLoader(x.layer);\r\n overrides = extractOverrides(x);\r\n } else {\r\n // 裸 URL 文字列はここで初めて fetch される(判定を通過した後)。\r\n // 非文字列(素の FC など)に対しては nodesLoader が素通しするため挙動は変わらない\r\n data = await nodesLoader(x);\r\n overrides = null;\r\n }\r\n // key は解決後データ由来(ラッパー自身の id は許可キー外=破棄+warn)\r\n let key = data.id || (data.properties && data.properties.id);\r\n if (!key) {\r\n if (index === 0) key = \"main\";\r\n else throw \"POI layers include bad key setting\";\r\n }\r\n const cluster = normalizeLayer(data, key, options);\r\n return [key, applyLayerOverrides(cluster, overrides)];\r\n })\r\n );\r\n layers = Object.fromEntries(entries);\r\n //In case old type single layer spec\r\n } else {\r\n // step3: POI オブジェクト配列モード。配列全体で1レイヤ。\r\n // **要素ごとの nodesLoader 解決は維持する**(m4-t5 設計 §5.3)。以前もこのモードで\r\n // 全要素を解決しており、要素が「単一 POI オブジェクトを返す URL」のときに正しく動く。\r\n // 実データには無い形だが、動いている挙動を根拠なく落とさない(AGENTS.md 原則2)。\r\n // ∴ m4-t5 の変更はモード判定の位置だけに閉じている。\r\n layers = await Promise.all(layers.map(async (x: any) => await nodesLoader(x)));\r\n layers = {\r\n main: normalizeLayer(layers, \"main\", options)\r\n };\r\n }\r\n // In case of single FeatureCollection\r\n } else if (layers.type === \"FeatureCollection\") {\r\n const key =\r\n layers.id || (layers.properties && layers.properties.id) || \"main\";\r\n layers = { [key]: normalizeLayer(layers, key, options) };\r\n // In case of pois layer ref as a whole (wrapper of the whole pois)\r\n } else if (isPoiLayerRefAsWhole(layers)) {\r\n // §3.4(b): layers.layer を解決し単一 FC と同じ key 決定で合成\r\n const data: any = await nodesLoader(layers.layer);\r\n const key = data.id || (data.properties && data.properties.id) || \"main\";\r\n const cluster = normalizeLayer(data, key, options);\r\n layers = { [key]: applyLayerOverrides(cluster, extractOverrides(layers)) };\r\n // In case current non-geojson layers spec\r\n } else {\r\n Object.keys(layers).map(key => {\r\n layers[key] = normalizeLayer(layers[key], key, options);\r\n });\r\n }\r\n\r\n // Add main layer if not exists\r\n if (!layers[\"main\"]) {\r\n layers[\"main\"] = normalizeLayer([], \"main\", options);\r\n }\r\n Object.keys(layers).map(key => {\r\n addIdToPoi(layers, key, options);\r\n });\r\n\r\n return layers;\r\n}\r\n\r\n//pois: Process layers\r\nexport function normalizeLayer(layer: any, key: any, options: any) {\r\n //In case \"layer\" is array (Old spec)\r\n if (Array.isArray(layer)) {\r\n layer = {\r\n pois: layer.map(x => normalizePoi(x))\r\n };\r\n //In case \"layer\" is FeatureCollection\r\n } else if (layer.type === \"FeatureCollection\") {\r\n const buffer = Object.assign({}, layer.properties || {});\r\n if (layer.name) buffer.name = layer.name;\r\n buffer.pois = layer.features.map((x: any) => normalizePoi(x));\r\n layer = buffer;\r\n }\r\n\r\n if (typeof layer.id === \"undefined\") {\r\n layer.id = key;\r\n } else {\r\n if (layer.id !== key) throw \"POI layers include bad key setting\";\r\n }\r\n if (!layer.namespaceID)\r\n layer.namespaceID = `${options.namespace ? `${options.namespace}#` : \"\"\r\n }${key}`;\r\n if (!layer.name) layer.name = key === \"main\" ? options.name : key;\r\n if (!layer.pois) layer.pois = [];\r\n\r\n return layer;\r\n}\r\n\r\n//pois: Process poi\r\nexport function normalizePoi(poi: any) {\r\n //In case \"poi\" is GeoJson(Point)\r\n if (poi.type === \"Feature\") {\r\n const buffer = Object.assign({}, poi.properties || {});\r\n buffer.lnglat = poi.geometry.coordinates;\r\n if (!buffer.id) buffer.id = poi.id;\r\n if (!buffer.name) buffer.name = poi.name;\r\n poi = buffer;\r\n }\r\n if (!poi.lnglat)\r\n poi.lnglat = [poi.lng || poi.longitude, poi.lat || poi.latitude];\r\n delete poi.lng;\r\n delete poi.lat;\r\n delete poi.longitude;\r\n delete poi.latitude;\r\n return poi;\r\n}\r\n\r\n// Add id to every pois\r\nexport function addIdToPoi(layers: any, key: any, options: any) {\r\n if (!layers[key]) return;\r\n const cluster = layers[key];\r\n const pois = cluster.pois;\r\n if (!cluster.__nextId) {\r\n cluster.__nextId = 0;\r\n }\r\n pois.map((poi: any) => {\r\n if (!poi.id) {\r\n poi.id = `${key}_${cluster.__nextId}`;\r\n cluster.__nextId++;\r\n }\r\n if (!poi.namespaceID) {\r\n poi.namespaceID = `${options.namespace ? `${options.namespace}#` : \"\"}${poi.id}`;\r\n }\r\n });\r\n}\r\n\r\n// pois layer ref(ラッパー)の公開型(m18-t4・§3.5)。\r\n// layer は URL 文字列 or インライン FeatureCollection。runtime 判別述語 isPoiLayerRef と一致。\r\nexport type PoiLayerRef = {\r\n layer: string | FeatureCollection;\r\n hide?: boolean;\r\n title?: string | Record;\r\n icon?: string;\r\n selectedIcon?: string;\r\n};\r\n\r\n","/** 外から来た鍵でレコードを引く。自分の鍵(Object.hasOwn)だけを返し、継承した鍵は返さない。 */\nexport function ownEntry(record: unknown, key: unknown): T | undefined {\n if (record === null || typeof record !== \"object\") return undefined;\n if (typeof key !== \"string\") return undefined;\n return Object.hasOwn(record, key) ? (record as Record)[key] : undefined;\n}\n","// index.ts\nvar earthRadius = 63710088e-1;\nvar factors = {\n centimeters: earthRadius * 100,\n centimetres: earthRadius * 100,\n cm: earthRadius * 100,\n degrees: 360 / (2 * Math.PI),\n deg: 360 / (2 * Math.PI),\n feet: earthRadius * 3.28084,\n ft: earthRadius * 3.28084,\n inches: earthRadius * 39.37,\n in: earthRadius * 39.37,\n kilometers: earthRadius / 1e3,\n kilometres: earthRadius / 1e3,\n km: earthRadius / 1e3,\n meters: earthRadius,\n metres: earthRadius,\n m: earthRadius,\n miles: earthRadius / 1609.344,\n mi: earthRadius / 1609.344,\n millimeters: earthRadius * 1e3,\n millimetres: earthRadius * 1e3,\n mm: earthRadius * 1e3,\n nauticalmiles: earthRadius / 1852,\n nmi: earthRadius / 1852,\n radians: 1,\n rad: 1,\n yards: earthRadius * 1.0936,\n yd: earthRadius * 1.0936\n};\nvar areaFactors = {\n acres: 247105e-9,\n ac: 247105e-9,\n centimeters: 1e4,\n centimetres: 1e4,\n cm: 1e4,\n feet: 10.763910417,\n ft: 10.763910417,\n hectares: 1e-4,\n ha: 1e-4,\n inches: 1550.003100006,\n in: 1550.003100006,\n kilometers: 1e-6,\n kilometres: 1e-6,\n km: 1e-6,\n meters: 1,\n metres: 1,\n m: 1,\n miles: 386e-9,\n mi: 386e-9,\n nauticalmiles: 29155334959812285e-23,\n nmi: 29155334959812285e-23,\n millimeters: 1e6,\n millimetres: 1e6,\n mm: 1e6,\n yards: 1.195990046,\n yd: 1.195990046\n};\nfunction feature(geom, properties, options = {}) {\n const feat = { type: \"Feature\" };\n if (options.id === 0 || options.id) {\n feat.id = options.id;\n }\n if (options.bbox) {\n feat.bbox = options.bbox;\n }\n feat.properties = properties || {};\n feat.geometry = geom;\n return feat;\n}\nfunction geometry(type, coordinates, _options = {}) {\n switch (type) {\n case \"Point\":\n return point(coordinates).geometry;\n case \"LineString\":\n return lineString(coordinates).geometry;\n case \"Polygon\":\n return polygon(coordinates).geometry;\n case \"MultiPoint\":\n return multiPoint(coordinates).geometry;\n case \"MultiLineString\":\n return multiLineString(coordinates).geometry;\n case \"MultiPolygon\":\n return multiPolygon(coordinates).geometry;\n default:\n throw new Error(type + \" is invalid\");\n }\n}\nfunction point(coordinates, properties, options = {}) {\n if (!coordinates) {\n throw new Error(\"coordinates is required\");\n }\n if (!Array.isArray(coordinates)) {\n throw new Error(\"coordinates must be an Array\");\n }\n if (coordinates.length < 2) {\n throw new Error(\"coordinates must be at least 2 numbers long\");\n }\n if (!isNumber(coordinates[0]) || !isNumber(coordinates[1])) {\n throw new Error(\"coordinates must contain numbers\");\n }\n const geom = {\n type: \"Point\",\n coordinates\n };\n return feature(geom, properties, options);\n}\nfunction points(coordinates, properties, options = {}) {\n return featureCollection(\n coordinates.map((coords) => {\n return point(coords, properties);\n }),\n options\n );\n}\nfunction polygon(coordinates, properties, options = {}) {\n for (const ring of coordinates) {\n if (ring.length < 4) {\n throw new Error(\n \"Each LinearRing of a Polygon must have 4 or more Positions.\"\n );\n }\n if (ring[ring.length - 1].length !== ring[0].length) {\n throw new Error(\"First and last Position are not equivalent.\");\n }\n for (let j = 0; j < ring[ring.length - 1].length; j++) {\n if (ring[ring.length - 1][j] !== ring[0][j]) {\n throw new Error(\"First and last Position are not equivalent.\");\n }\n }\n }\n const geom = {\n type: \"Polygon\",\n coordinates\n };\n return feature(geom, properties, options);\n}\nfunction polygons(coordinates, properties, options = {}) {\n return featureCollection(\n coordinates.map((coords) => {\n return polygon(coords, properties);\n }),\n options\n );\n}\nfunction lineString(coordinates, properties, options = {}) {\n if (coordinates.length < 2) {\n throw new Error(\"coordinates must be an array of two or more positions\");\n }\n const geom = {\n type: \"LineString\",\n coordinates\n };\n return feature(geom, properties, options);\n}\nfunction lineStrings(coordinates, properties, options = {}) {\n return featureCollection(\n coordinates.map((coords) => {\n return lineString(coords, properties);\n }),\n options\n );\n}\nfunction featureCollection(features, options = {}) {\n const fc = { type: \"FeatureCollection\" };\n if (options.id) {\n fc.id = options.id;\n }\n if (options.bbox) {\n fc.bbox = options.bbox;\n }\n fc.features = features;\n return fc;\n}\nfunction multiLineString(coordinates, properties, options = {}) {\n const geom = {\n type: \"MultiLineString\",\n coordinates\n };\n return feature(geom, properties, options);\n}\nfunction multiPoint(coordinates, properties, options = {}) {\n const geom = {\n type: \"MultiPoint\",\n coordinates\n };\n return feature(geom, properties, options);\n}\nfunction multiPolygon(coordinates, properties, options = {}) {\n const geom = {\n type: \"MultiPolygon\",\n coordinates\n };\n return feature(geom, properties, options);\n}\nfunction geometryCollection(geometries, properties, options = {}) {\n const geom = {\n type: \"GeometryCollection\",\n geometries\n };\n return feature(geom, properties, options);\n}\nfunction round(num, precision = 0) {\n if (precision && !(precision >= 0)) {\n throw new Error(\"precision must be a positive number\");\n }\n const multiplier = Math.pow(10, precision || 0);\n return Math.round(num * multiplier) / multiplier;\n}\nfunction radiansToLength(radians, units = \"kilometers\") {\n const factor = factors[units];\n if (!factor) {\n throw new Error(units + \" units is invalid\");\n }\n return radians * factor;\n}\nfunction lengthToRadians(distance, units = \"kilometers\") {\n const factor = factors[units];\n if (!factor) {\n throw new Error(units + \" units is invalid\");\n }\n return distance / factor;\n}\nfunction lengthToDegrees(distance, units) {\n return radiansToDegrees(lengthToRadians(distance, units));\n}\nfunction bearingToAzimuth(bearing) {\n let angle = bearing % 360;\n if (angle < 0) {\n angle += 360;\n }\n return angle;\n}\nfunction azimuthToBearing(angle) {\n angle = angle % 360;\n if (angle > 180) {\n return angle - 360;\n } else if (angle < -180) {\n return angle + 360;\n }\n return angle;\n}\nfunction radiansToDegrees(radians) {\n const normalisedRadians = radians % (2 * Math.PI);\n return normalisedRadians * 180 / Math.PI;\n}\nfunction degreesToRadians(degrees) {\n const normalisedDegrees = degrees % 360;\n return normalisedDegrees * Math.PI / 180;\n}\nfunction convertLength(length, originalUnit = \"kilometers\", finalUnit = \"kilometers\") {\n if (!(length >= 0)) {\n throw new Error(\"length must be a positive number\");\n }\n return radiansToLength(lengthToRadians(length, originalUnit), finalUnit);\n}\nfunction convertArea(area, originalUnit = \"meters\", finalUnit = \"kilometers\") {\n if (!(area >= 0)) {\n throw new Error(\"area must be a positive number\");\n }\n const startFactor = areaFactors[originalUnit];\n if (!startFactor) {\n throw new Error(\"invalid original units\");\n }\n const finalFactor = areaFactors[finalUnit];\n if (!finalFactor) {\n throw new Error(\"invalid final units\");\n }\n return area / startFactor * finalFactor;\n}\nfunction isNumber(num) {\n return !isNaN(num) && num !== null && !Array.isArray(num);\n}\nfunction isObject(input) {\n return input !== null && typeof input === \"object\" && !Array.isArray(input);\n}\nfunction removeBbox(geojson) {\n delete geojson.bbox;\n if (geojson.type === \"Feature\") {\n if (geojson.geometry) removeBbox(geojson.geometry);\n } else if (geojson.type === \"FeatureCollection\") {\n geojson.features.forEach(removeBbox);\n } else if (geojson.type === \"GeometryCollection\") {\n geojson.geometries.forEach(removeBbox);\n }\n}\nfunction validateBBox(bbox) {\n if (!bbox) {\n throw new Error(\"bbox is required\");\n }\n if (!Array.isArray(bbox)) {\n throw new Error(\"bbox must be an Array\");\n }\n if (bbox.length !== 4 && bbox.length !== 6) {\n throw new Error(\"bbox must be an Array of 4 or 6 numbers\");\n }\n bbox.forEach((num) => {\n if (!isNumber(num)) {\n throw new Error(\"bbox must only contain numbers\");\n }\n });\n}\nfunction validateId(id) {\n if (!id) {\n throw new Error(\"id is required\");\n }\n if ([\"string\", \"number\"].indexOf(typeof id) === -1) {\n throw new Error(\"id must be a number or a string\");\n }\n}\nexport {\n areaFactors,\n azimuthToBearing,\n bearingToAzimuth,\n convertArea,\n convertLength,\n degreesToRadians,\n earthRadius,\n factors,\n feature,\n featureCollection,\n geometry,\n geometryCollection,\n isNumber,\n isObject,\n lengthToDegrees,\n lengthToRadians,\n lineString,\n lineStrings,\n multiLineString,\n multiPoint,\n multiPolygon,\n point,\n points,\n polygon,\n polygons,\n radiansToDegrees,\n radiansToLength,\n removeBbox,\n round,\n validateBBox,\n validateId\n};\n//# sourceMappingURL=index.js.map","// index.ts\nimport { isNumber } from \"@turf/helpers\";\nfunction getCoord(coord) {\n if (!coord) {\n throw new Error(\"coord is required\");\n }\n if (!Array.isArray(coord)) {\n if (coord.type === \"Feature\" && coord.geometry !== null && coord.geometry.type === \"Point\") {\n return [...coord.geometry.coordinates];\n }\n if (coord.type === \"Point\") {\n return [...coord.coordinates];\n }\n }\n if (Array.isArray(coord) && coord.length >= 2 && !Array.isArray(coord[0]) && !Array.isArray(coord[1])) {\n return [...coord];\n }\n throw new Error(\"coord must be GeoJSON Point or an Array of numbers\");\n}\nfunction getCoords(coords) {\n if (Array.isArray(coords)) {\n return coords;\n }\n if (coords.type === \"Feature\") {\n if (coords.geometry !== null) {\n return coords.geometry.coordinates;\n }\n } else {\n if (coords.coordinates) {\n return coords.coordinates;\n }\n }\n throw new Error(\n \"coords must be GeoJSON Feature, Geometry Object or an Array\"\n );\n}\nfunction containsNumber(coordinates) {\n if (coordinates.length > 1 && isNumber(coordinates[0]) && isNumber(coordinates[1])) {\n return true;\n }\n if (Array.isArray(coordinates[0]) && coordinates[0].length) {\n return containsNumber(coordinates[0]);\n }\n throw new Error(\"coordinates must only contain numbers\");\n}\nfunction geojsonType(value, type, name) {\n if (!type || !name) {\n throw new Error(\"type and name required\");\n }\n if (!value || value.type !== type) {\n throw new Error(\n \"Invalid input to \" + name + \": must be a \" + type + \", given \" + value.type\n );\n }\n}\nfunction featureOf(feature, type, name) {\n if (!feature) {\n throw new Error(\"No feature passed\");\n }\n if (!name) {\n throw new Error(\".featureOf() requires a name\");\n }\n if (!feature || feature.type !== \"Feature\" || !feature.geometry) {\n throw new Error(\n \"Invalid input to \" + name + \", Feature with geometry required\"\n );\n }\n if (!feature.geometry || feature.geometry.type !== type) {\n throw new Error(\n \"Invalid input to \" + name + \": must be a \" + type + \", given \" + feature.geometry.type\n );\n }\n}\nfunction collectionOf(featureCollection, type, name) {\n if (!featureCollection) {\n throw new Error(\"No featureCollection passed\");\n }\n if (!name) {\n throw new Error(\".collectionOf() requires a name\");\n }\n if (!featureCollection || featureCollection.type !== \"FeatureCollection\") {\n throw new Error(\n \"Invalid input to \" + name + \", FeatureCollection required\"\n );\n }\n for (const feature of featureCollection.features) {\n if (!feature || feature.type !== \"Feature\" || !feature.geometry) {\n throw new Error(\n \"Invalid input to \" + name + \", Feature with geometry required\"\n );\n }\n if (!feature.geometry || feature.geometry.type !== type) {\n throw new Error(\n \"Invalid input to \" + name + \": must be a \" + type + \", given \" + feature.geometry.type\n );\n }\n }\n}\nfunction getGeom(geojson) {\n if (geojson.type === \"Feature\") {\n return geojson.geometry;\n }\n return geojson;\n}\nfunction getType(geojson, _name) {\n if (geojson.type === \"FeatureCollection\") {\n return \"FeatureCollection\";\n }\n if (geojson.type === \"GeometryCollection\") {\n return \"GeometryCollection\";\n }\n if (geojson.type === \"Feature\" && geojson.geometry !== null) {\n return geojson.geometry.type;\n }\n return geojson.type;\n}\nexport {\n collectionOf,\n containsNumber,\n featureOf,\n geojsonType,\n getCoord,\n getCoords,\n getGeom,\n getType\n};\n//# sourceMappingURL=index.js.map","// index.ts\nimport { feature, point, lineString, isObject } from \"@turf/helpers\";\nfunction coordEach(geojson, callback, excludeWrapCoord) {\n if (geojson === null) return;\n var j, k, l, geometry, stopG, coords, geometryMaybeCollection, wrapShrink = 0, coordIndex = 0, isGeometryCollection, type = geojson.type, isFeatureCollection = type === \"FeatureCollection\", isFeature = type === \"Feature\", stop = isFeatureCollection ? geojson.features.length : 1;\n for (var featureIndex = 0; featureIndex < stop; featureIndex++) {\n geometryMaybeCollection = isFeatureCollection ? (\n // @ts-expect-error: Known type conflict\n geojson.features[featureIndex].geometry\n ) : isFeature ? (\n // @ts-expect-error: Known type conflict\n geojson.geometry\n ) : geojson;\n isGeometryCollection = geometryMaybeCollection ? geometryMaybeCollection.type === \"GeometryCollection\" : false;\n stopG = isGeometryCollection ? geometryMaybeCollection.geometries.length : 1;\n for (var geomIndex = 0; geomIndex < stopG; geomIndex++) {\n var multiFeatureIndex = 0;\n var geometryIndex = 0;\n geometry = isGeometryCollection ? geometryMaybeCollection.geometries[geomIndex] : geometryMaybeCollection;\n if (geometry === null) continue;\n coords = geometry.coordinates;\n var geomType = geometry.type;\n wrapShrink = excludeWrapCoord && (geomType === \"Polygon\" || geomType === \"MultiPolygon\") ? 1 : 0;\n switch (geomType) {\n case null:\n break;\n case \"Point\":\n if (\n // @ts-expect-error: Known type conflict\n callback(\n coords,\n coordIndex,\n featureIndex,\n multiFeatureIndex,\n geometryIndex\n ) === false\n )\n return false;\n coordIndex++;\n multiFeatureIndex++;\n break;\n case \"LineString\":\n case \"MultiPoint\":\n for (j = 0; j < coords.length; j++) {\n if (\n // @ts-expect-error: Known type conflict\n callback(\n coords[j],\n coordIndex,\n featureIndex,\n multiFeatureIndex,\n geometryIndex\n ) === false\n )\n return false;\n coordIndex++;\n if (geomType === \"MultiPoint\") multiFeatureIndex++;\n }\n if (geomType === \"LineString\") multiFeatureIndex++;\n break;\n case \"Polygon\":\n case \"MultiLineString\":\n for (j = 0; j < coords.length; j++) {\n for (k = 0; k < coords[j].length - wrapShrink; k++) {\n if (\n // @ts-expect-error: Known type conflict\n callback(\n coords[j][k],\n coordIndex,\n featureIndex,\n multiFeatureIndex,\n geometryIndex\n ) === false\n )\n return false;\n coordIndex++;\n }\n if (geomType === \"MultiLineString\") multiFeatureIndex++;\n if (geomType === \"Polygon\") geometryIndex++;\n }\n if (geomType === \"Polygon\") multiFeatureIndex++;\n break;\n case \"MultiPolygon\":\n for (j = 0; j < coords.length; j++) {\n geometryIndex = 0;\n for (k = 0; k < coords[j].length; k++) {\n for (l = 0; l < coords[j][k].length - wrapShrink; l++) {\n if (\n // @ts-expect-error: Known type conflict\n callback(\n coords[j][k][l],\n coordIndex,\n featureIndex,\n multiFeatureIndex,\n geometryIndex\n ) === false\n )\n return false;\n coordIndex++;\n }\n geometryIndex++;\n }\n multiFeatureIndex++;\n }\n break;\n case \"GeometryCollection\":\n for (j = 0; j < geometry.geometries.length; j++)\n if (\n // @ts-expect-error: Known type conflict\n coordEach(geometry.geometries[j], callback, excludeWrapCoord) === false\n )\n return false;\n break;\n default:\n throw new Error(\"Unknown Geometry Type\");\n }\n }\n }\n}\nfunction coordReduce(geojson, callback, initialValue, excludeWrapCoord) {\n var previousValue = initialValue;\n coordEach(\n geojson,\n function(currentCoord, coordIndex, featureIndex, multiFeatureIndex, geometryIndex) {\n if (coordIndex === 0 && initialValue === void 0)\n previousValue = currentCoord;\n else\n previousValue = callback(\n // @ts-expect-error: Known type conflict\n previousValue,\n currentCoord,\n coordIndex,\n featureIndex,\n multiFeatureIndex,\n geometryIndex\n );\n },\n excludeWrapCoord\n );\n return previousValue;\n}\nfunction propEach(geojson, callback) {\n var i;\n switch (geojson.type) {\n case \"FeatureCollection\":\n for (i = 0; i < geojson.features.length; i++) {\n if (callback(geojson.features[i].properties, i) === false) break;\n }\n break;\n case \"Feature\":\n callback(geojson.properties, 0);\n break;\n }\n}\nfunction propReduce(geojson, callback, initialValue) {\n var previousValue = initialValue;\n propEach(geojson, function(currentProperties, featureIndex) {\n if (featureIndex === 0 && initialValue === void 0)\n previousValue = currentProperties;\n else\n previousValue = callback(previousValue, currentProperties, featureIndex);\n });\n return previousValue;\n}\nfunction featureEach(geojson, callback) {\n if (geojson.type === \"Feature\") {\n callback(geojson, 0);\n } else if (geojson.type === \"FeatureCollection\") {\n for (var i = 0; i < geojson.features.length; i++) {\n if (callback(geojson.features[i], i) === false) break;\n }\n }\n}\nfunction featureReduce(geojson, callback, initialValue) {\n var previousValue = initialValue;\n featureEach(geojson, function(currentFeature, featureIndex) {\n if (featureIndex === 0 && initialValue === void 0)\n previousValue = currentFeature;\n else previousValue = callback(previousValue, currentFeature, featureIndex);\n });\n return previousValue;\n}\nfunction coordAll(geojson) {\n var coords = [];\n coordEach(geojson, function(coord) {\n coords.push(coord);\n });\n return coords;\n}\nfunction geomEach(geojson, callback) {\n var i, j, g, geometry, stopG, geometryMaybeCollection, isGeometryCollection, featureProperties, featureBBox, featureId, featureIndex = 0, isFeatureCollection = geojson.type === \"FeatureCollection\", isFeature = geojson.type === \"Feature\", stop = isFeatureCollection ? geojson.features.length : 1;\n for (i = 0; i < stop; i++) {\n geometryMaybeCollection = isFeatureCollection ? (\n // @ts-expect-error: Known type conflict\n geojson.features[i].geometry\n ) : isFeature ? (\n // @ts-expect-error: Known type conflict\n geojson.geometry\n ) : geojson;\n featureProperties = isFeatureCollection ? (\n // @ts-expect-error: Known type conflict\n geojson.features[i].properties\n ) : isFeature ? (\n // @ts-expect-error: Known type conflict\n geojson.properties\n ) : {};\n featureBBox = isFeatureCollection ? (\n // @ts-expect-error: Known type conflict\n geojson.features[i].bbox\n ) : isFeature ? (\n // @ts-expect-error: Known type conflict\n geojson.bbox\n ) : void 0;\n featureId = isFeatureCollection ? (\n // @ts-expect-error: Known type conflict\n geojson.features[i].id\n ) : isFeature ? (\n // @ts-expect-error: Known type conflict\n geojson.id\n ) : void 0;\n isGeometryCollection = geometryMaybeCollection ? geometryMaybeCollection.type === \"GeometryCollection\" : false;\n stopG = isGeometryCollection ? geometryMaybeCollection.geometries.length : 1;\n for (g = 0; g < stopG; g++) {\n geometry = isGeometryCollection ? geometryMaybeCollection.geometries[g] : geometryMaybeCollection;\n if (geometry === null) {\n if (\n // @ts-expect-error: Known type conflict\n callback(\n // @ts-expect-error: Known type conflict\n null,\n featureIndex,\n featureProperties,\n featureBBox,\n featureId\n ) === false\n )\n return false;\n continue;\n }\n switch (geometry.type) {\n case \"Point\":\n case \"LineString\":\n case \"MultiPoint\":\n case \"Polygon\":\n case \"MultiLineString\":\n case \"MultiPolygon\": {\n if (\n // @ts-expect-error: Known type conflict\n callback(\n geometry,\n featureIndex,\n featureProperties,\n featureBBox,\n featureId\n ) === false\n )\n return false;\n break;\n }\n case \"GeometryCollection\": {\n for (j = 0; j < geometry.geometries.length; j++) {\n if (\n // @ts-expect-error: Known type conflict\n callback(\n geometry.geometries[j],\n featureIndex,\n featureProperties,\n featureBBox,\n featureId\n ) === false\n )\n return false;\n }\n break;\n }\n default:\n throw new Error(\"Unknown Geometry Type\");\n }\n }\n featureIndex++;\n }\n}\nfunction geomReduce(geojson, callback, initialValue) {\n var previousValue = initialValue;\n geomEach(\n geojson,\n function(currentGeometry, featureIndex, featureProperties, featureBBox, featureId) {\n if (featureIndex === 0 && initialValue === void 0)\n previousValue = currentGeometry;\n else\n previousValue = callback(\n // @ts-expect-error: Known type conflict\n previousValue,\n currentGeometry,\n featureIndex,\n featureProperties,\n featureBBox,\n featureId\n );\n }\n );\n return previousValue;\n}\nfunction flattenEach(geojson, callback) {\n geomEach(geojson, function(geometry, featureIndex, properties, bbox, id) {\n var type = geometry === null ? null : geometry.type;\n switch (type) {\n case null:\n case \"Point\":\n case \"LineString\":\n case \"Polygon\":\n if (\n // @ts-expect-error: Known type conflict\n callback(\n feature(geometry, properties, { bbox, id }),\n featureIndex,\n 0\n ) === false\n )\n return false;\n return;\n }\n var geomType;\n switch (type) {\n case \"MultiPoint\":\n geomType = \"Point\";\n break;\n case \"MultiLineString\":\n geomType = \"LineString\";\n break;\n case \"MultiPolygon\":\n geomType = \"Polygon\";\n break;\n }\n for (\n var multiFeatureIndex = 0;\n // @ts-expect-error: Known type conflict\n multiFeatureIndex < geometry.coordinates.length;\n multiFeatureIndex++\n ) {\n var coordinate = geometry.coordinates[multiFeatureIndex];\n var geom = {\n type: geomType,\n coordinates: coordinate\n };\n if (\n // @ts-expect-error: Known type conflict\n callback(feature(geom, properties), featureIndex, multiFeatureIndex) === false\n )\n return false;\n }\n });\n}\nfunction flattenReduce(geojson, callback, initialValue) {\n var previousValue = initialValue;\n flattenEach(\n geojson,\n function(currentFeature, featureIndex, multiFeatureIndex) {\n if (featureIndex === 0 && multiFeatureIndex === 0 && initialValue === void 0)\n previousValue = currentFeature;\n else\n previousValue = callback(\n // @ts-expect-error: Known type conflict\n previousValue,\n currentFeature,\n featureIndex,\n multiFeatureIndex\n );\n }\n );\n return previousValue;\n}\nfunction segmentEach(geojson, callback) {\n flattenEach(geojson, function(feature2, featureIndex, multiFeatureIndex) {\n var segmentIndex = 0;\n if (!feature2.geometry) return;\n var type = feature2.geometry.type;\n if (type === \"Point\" || type === \"MultiPoint\") return;\n var previousCoords;\n var previousFeatureIndex = 0;\n var previousMultiIndex = 0;\n var prevGeomIndex = 0;\n if (\n // @ts-expect-error: Known type conflict\n coordEach(\n feature2,\n function(currentCoord, coordIndex, featureIndexCoord, multiPartIndexCoord, geometryIndex) {\n if (\n // @ts-expect-error: Known type conflict\n previousCoords === void 0 || featureIndex > previousFeatureIndex || multiPartIndexCoord > previousMultiIndex || geometryIndex > prevGeomIndex\n ) {\n previousCoords = currentCoord;\n previousFeatureIndex = featureIndex;\n previousMultiIndex = multiPartIndexCoord;\n prevGeomIndex = geometryIndex;\n segmentIndex = 0;\n return;\n }\n var currentSegment = lineString(\n // @ts-expect-error: Known type conflict\n [previousCoords, currentCoord],\n feature2.properties\n );\n if (\n // @ts-expect-error: Known type conflict\n callback(\n // @ts-expect-error: Known type conflict\n currentSegment,\n featureIndex,\n multiFeatureIndex,\n geometryIndex,\n segmentIndex\n ) === false\n )\n return false;\n segmentIndex++;\n previousCoords = currentCoord;\n }\n ) === false\n )\n return false;\n });\n}\nfunction segmentReduce(geojson, callback, initialValue) {\n var previousValue = initialValue;\n var started = false;\n segmentEach(\n geojson,\n function(currentSegment, featureIndex, multiFeatureIndex, geometryIndex, segmentIndex) {\n if (started === false && initialValue === void 0)\n previousValue = currentSegment;\n else\n previousValue = callback(\n previousValue,\n // @ts-expect-error: Known type conflict\n currentSegment,\n featureIndex,\n multiFeatureIndex,\n geometryIndex,\n segmentIndex\n );\n started = true;\n }\n );\n return previousValue;\n}\nfunction lineEach(geojson, callback) {\n if (!geojson) throw new Error(\"geojson is required\");\n flattenEach(geojson, function(feature2, featureIndex, multiFeatureIndex) {\n if (feature2.geometry === null) return;\n var type = feature2.geometry.type;\n var coords = feature2.geometry.coordinates;\n switch (type) {\n case \"LineString\":\n if (callback(feature2, featureIndex, multiFeatureIndex, 0, 0) === false)\n return false;\n break;\n case \"Polygon\":\n for (var geometryIndex = 0; geometryIndex < coords.length; geometryIndex++) {\n if (\n // @ts-expect-error: Known type conflict\n callback(\n // @ts-expect-error: Known type conflict\n lineString(coords[geometryIndex], feature2.properties),\n featureIndex,\n multiFeatureIndex,\n geometryIndex\n ) === false\n )\n return false;\n }\n break;\n }\n });\n}\nfunction lineReduce(geojson, callback, initialValue) {\n var previousValue = initialValue;\n lineEach(\n geojson,\n function(currentLine, featureIndex, multiFeatureIndex, geometryIndex) {\n if (featureIndex === 0 && initialValue === void 0)\n previousValue = currentLine;\n else\n previousValue = callback(\n previousValue,\n currentLine,\n featureIndex,\n multiFeatureIndex,\n geometryIndex\n );\n }\n );\n return previousValue;\n}\nfunction findSegment(geojson, options) {\n options = options || {};\n if (!isObject(options)) throw new Error(\"options is invalid\");\n var featureIndex = options.featureIndex || 0;\n var multiFeatureIndex = options.multiFeatureIndex || 0;\n var geometryIndex = options.geometryIndex || 0;\n var segmentIndex = options.segmentIndex || 0;\n var properties = options.properties;\n var geometry;\n switch (geojson.type) {\n case \"FeatureCollection\":\n if (featureIndex < 0)\n featureIndex = geojson.features.length + featureIndex;\n properties = properties || geojson.features[featureIndex].properties;\n geometry = geojson.features[featureIndex].geometry;\n break;\n case \"Feature\":\n properties = properties || geojson.properties;\n geometry = geojson.geometry;\n break;\n case \"Point\":\n case \"MultiPoint\":\n return null;\n case \"LineString\":\n case \"Polygon\":\n case \"MultiLineString\":\n case \"MultiPolygon\":\n geometry = geojson;\n break;\n default:\n throw new Error(\"geojson is invalid\");\n }\n if (geometry === null) return null;\n var coords = geometry.coordinates;\n switch (geometry.type) {\n case \"Point\":\n case \"MultiPoint\":\n return null;\n case \"LineString\":\n if (segmentIndex < 0) segmentIndex = coords.length + segmentIndex - 1;\n return lineString(\n // @ts-expect-error: Known type conflict\n [coords[segmentIndex], coords[segmentIndex + 1]],\n properties,\n options\n );\n case \"Polygon\":\n if (geometryIndex < 0) geometryIndex = coords.length + geometryIndex;\n if (segmentIndex < 0)\n segmentIndex = coords[geometryIndex].length + segmentIndex - 1;\n return lineString(\n [\n // @ts-expect-error: Known type conflict\n coords[geometryIndex][segmentIndex],\n // @ts-expect-error: Known type conflict\n coords[geometryIndex][segmentIndex + 1]\n ],\n properties,\n options\n );\n case \"MultiLineString\":\n if (multiFeatureIndex < 0)\n multiFeatureIndex = coords.length + multiFeatureIndex;\n if (segmentIndex < 0)\n segmentIndex = coords[multiFeatureIndex].length + segmentIndex - 1;\n return lineString(\n [\n // @ts-expect-error: Known type conflict\n coords[multiFeatureIndex][segmentIndex],\n // @ts-expect-error: Known type conflict\n coords[multiFeatureIndex][segmentIndex + 1]\n ],\n properties,\n options\n );\n case \"MultiPolygon\":\n if (multiFeatureIndex < 0)\n multiFeatureIndex = coords.length + multiFeatureIndex;\n if (geometryIndex < 0)\n geometryIndex = coords[multiFeatureIndex].length + geometryIndex;\n if (segmentIndex < 0)\n segmentIndex = // @ts-expect-error: Known type conflict\n coords[multiFeatureIndex][geometryIndex].length - segmentIndex - 1;\n return lineString(\n [\n // @ts-expect-error: Known type conflict\n coords[multiFeatureIndex][geometryIndex][segmentIndex],\n // @ts-expect-error: Known type conflict\n coords[multiFeatureIndex][geometryIndex][segmentIndex + 1]\n ],\n properties,\n options\n );\n }\n throw new Error(\"geojson is invalid\");\n}\nfunction findPoint(geojson, options) {\n options = options || {};\n if (!isObject(options)) throw new Error(\"options is invalid\");\n var featureIndex = options.featureIndex || 0;\n var multiFeatureIndex = options.multiFeatureIndex || 0;\n var geometryIndex = options.geometryIndex || 0;\n var coordIndex = options.coordIndex || 0;\n var properties = options.properties;\n var geometry;\n switch (geojson.type) {\n case \"FeatureCollection\":\n if (featureIndex < 0)\n featureIndex = geojson.features.length + featureIndex;\n properties = properties || geojson.features[featureIndex].properties;\n geometry = geojson.features[featureIndex].geometry;\n break;\n case \"Feature\":\n properties = properties || geojson.properties;\n geometry = geojson.geometry;\n break;\n case \"Point\":\n case \"MultiPoint\":\n return null;\n case \"LineString\":\n case \"Polygon\":\n case \"MultiLineString\":\n case \"MultiPolygon\":\n geometry = geojson;\n break;\n default:\n throw new Error(\"geojson is invalid\");\n }\n if (geometry === null) return null;\n var coords = geometry.coordinates;\n switch (geometry.type) {\n case \"Point\":\n return point(coords, properties, options);\n case \"MultiPoint\":\n if (multiFeatureIndex < 0)\n multiFeatureIndex = coords.length + multiFeatureIndex;\n return point(coords[multiFeatureIndex], properties, options);\n case \"LineString\":\n if (coordIndex < 0) coordIndex = coords.length + coordIndex;\n return point(coords[coordIndex], properties, options);\n case \"Polygon\":\n if (geometryIndex < 0) geometryIndex = coords.length + geometryIndex;\n if (coordIndex < 0)\n coordIndex = coords[geometryIndex].length + coordIndex;\n return point(coords[geometryIndex][coordIndex], properties, options);\n case \"MultiLineString\":\n if (multiFeatureIndex < 0)\n multiFeatureIndex = coords.length + multiFeatureIndex;\n if (coordIndex < 0)\n coordIndex = coords[multiFeatureIndex].length + coordIndex;\n return point(coords[multiFeatureIndex][coordIndex], properties, options);\n case \"MultiPolygon\":\n if (multiFeatureIndex < 0)\n multiFeatureIndex = coords.length + multiFeatureIndex;\n if (geometryIndex < 0)\n geometryIndex = coords[multiFeatureIndex].length + geometryIndex;\n if (coordIndex < 0)\n coordIndex = coords[multiFeatureIndex][geometryIndex].length - coordIndex;\n return point(\n coords[multiFeatureIndex][geometryIndex][coordIndex],\n properties,\n options\n );\n }\n throw new Error(\"geojson is invalid\");\n}\nexport {\n coordAll,\n coordEach,\n coordReduce,\n featureEach,\n featureReduce,\n findPoint,\n findSegment,\n flattenEach,\n flattenReduce,\n geomEach,\n geomReduce,\n lineEach,\n lineReduce,\n propEach,\n propReduce,\n segmentEach,\n segmentReduce\n};\n//# sourceMappingURL=index.js.map","export const epsilon = 1.1102230246251565e-16;\nexport const splitter = 134217729;\nexport const resulterrbound = (3 + 8 * epsilon) * epsilon;\n\n// fast_expansion_sum_zeroelim routine from original code\nexport function sum(elen, e, flen, f, h) {\n let Q, Qnew, hh, bvirt;\n let enow = e[0];\n let fnow = f[0];\n let eindex = 0;\n let findex = 0;\n if ((fnow > enow) === (fnow > -enow)) {\n Q = enow;\n enow = e[++eindex];\n } else {\n Q = fnow;\n fnow = f[++findex];\n }\n let hindex = 0;\n if (eindex < elen && findex < flen) {\n if ((fnow > enow) === (fnow > -enow)) {\n Qnew = enow + Q;\n hh = Q - (Qnew - enow);\n enow = e[++eindex];\n } else {\n Qnew = fnow + Q;\n hh = Q - (Qnew - fnow);\n fnow = f[++findex];\n }\n Q = Qnew;\n if (hh !== 0) {\n h[hindex++] = hh;\n }\n while (eindex < elen && findex < flen) {\n if ((fnow > enow) === (fnow > -enow)) {\n Qnew = Q + enow;\n bvirt = Qnew - Q;\n hh = Q - (Qnew - bvirt) + (enow - bvirt);\n enow = e[++eindex];\n } else {\n Qnew = Q + fnow;\n bvirt = Qnew - Q;\n hh = Q - (Qnew - bvirt) + (fnow - bvirt);\n fnow = f[++findex];\n }\n Q = Qnew;\n if (hh !== 0) {\n h[hindex++] = hh;\n }\n }\n }\n while (eindex < elen) {\n Qnew = Q + enow;\n bvirt = Qnew - Q;\n hh = Q - (Qnew - bvirt) + (enow - bvirt);\n enow = e[++eindex];\n Q = Qnew;\n if (hh !== 0) {\n h[hindex++] = hh;\n }\n }\n while (findex < flen) {\n Qnew = Q + fnow;\n bvirt = Qnew - Q;\n hh = Q - (Qnew - bvirt) + (fnow - bvirt);\n fnow = f[++findex];\n Q = Qnew;\n if (hh !== 0) {\n h[hindex++] = hh;\n }\n }\n if (Q !== 0 || hindex === 0) {\n h[hindex++] = Q;\n }\n return hindex;\n}\n\nexport function sum_three(alen, a, blen, b, clen, c, tmp, out) {\n return sum(sum(alen, a, blen, b, tmp), tmp, clen, c, out);\n}\n\n// scale_expansion_zeroelim routine from oritinal code\nexport function scale(elen, e, b, h) {\n let Q, sum, hh, product1, product0;\n let bvirt, c, ahi, alo, bhi, blo;\n\n c = splitter * b;\n bhi = c - (c - b);\n blo = b - bhi;\n let enow = e[0];\n Q = enow * b;\n c = splitter * enow;\n ahi = c - (c - enow);\n alo = enow - ahi;\n hh = alo * blo - (Q - ahi * bhi - alo * bhi - ahi * blo);\n let hindex = 0;\n if (hh !== 0) {\n h[hindex++] = hh;\n }\n for (let i = 1; i < elen; i++) {\n enow = e[i];\n product1 = enow * b;\n c = splitter * enow;\n ahi = c - (c - enow);\n alo = enow - ahi;\n product0 = alo * blo - (product1 - ahi * bhi - alo * bhi - ahi * blo);\n sum = Q + product0;\n bvirt = sum - Q;\n hh = Q - (sum - bvirt) + (product0 - bvirt);\n if (hh !== 0) {\n h[hindex++] = hh;\n }\n Q = product1 + sum;\n hh = sum - (Q - product1);\n if (hh !== 0) {\n h[hindex++] = hh;\n }\n }\n if (Q !== 0 || hindex === 0) {\n h[hindex++] = Q;\n }\n return hindex;\n}\n\nexport function negate(elen, e) {\n for (let i = 0; i < elen; i++) e[i] = -e[i];\n return elen;\n}\n\nexport function estimate(elen, e) {\n let Q = e[0];\n for (let i = 1; i < elen; i++) Q += e[i];\n return Q;\n}\n\nexport function vec(n) {\n return new Float64Array(n);\n}\n","import {epsilon, splitter, resulterrbound, estimate, vec, sum} from './util.js';\n\nconst ccwerrboundA = (3 + 16 * epsilon) * epsilon;\nconst ccwerrboundB = (2 + 12 * epsilon) * epsilon;\nconst ccwerrboundC = (9 + 64 * epsilon) * epsilon * epsilon;\n\nconst B = vec(4);\nconst C1 = vec(8);\nconst C2 = vec(12);\nconst D = vec(16);\nconst u = vec(4);\n\nfunction orient2dadapt(ax, ay, bx, by, cx, cy, detsum) {\n let acxtail, acytail, bcxtail, bcytail;\n let bvirt, c, ahi, alo, bhi, blo, _i, _j, _0, s1, s0, t1, t0, u3;\n\n const acx = ax - cx;\n const bcx = bx - cx;\n const acy = ay - cy;\n const bcy = by - cy;\n\n s1 = acx * bcy;\n c = splitter * acx;\n ahi = c - (c - acx);\n alo = acx - ahi;\n c = splitter * bcy;\n bhi = c - (c - bcy);\n blo = bcy - bhi;\n s0 = alo * blo - (s1 - ahi * bhi - alo * bhi - ahi * blo);\n t1 = acy * bcx;\n c = splitter * acy;\n ahi = c - (c - acy);\n alo = acy - ahi;\n c = splitter * bcx;\n bhi = c - (c - bcx);\n blo = bcx - bhi;\n t0 = alo * blo - (t1 - ahi * bhi - alo * bhi - ahi * blo);\n _i = s0 - t0;\n bvirt = s0 - _i;\n B[0] = s0 - (_i + bvirt) + (bvirt - t0);\n _j = s1 + _i;\n bvirt = _j - s1;\n _0 = s1 - (_j - bvirt) + (_i - bvirt);\n _i = _0 - t1;\n bvirt = _0 - _i;\n B[1] = _0 - (_i + bvirt) + (bvirt - t1);\n u3 = _j + _i;\n bvirt = u3 - _j;\n B[2] = _j - (u3 - bvirt) + (_i - bvirt);\n B[3] = u3;\n\n let det = estimate(4, B);\n let errbound = ccwerrboundB * detsum;\n if (det >= errbound || -det >= errbound) {\n return det;\n }\n\n bvirt = ax - acx;\n acxtail = ax - (acx + bvirt) + (bvirt - cx);\n bvirt = bx - bcx;\n bcxtail = bx - (bcx + bvirt) + (bvirt - cx);\n bvirt = ay - acy;\n acytail = ay - (acy + bvirt) + (bvirt - cy);\n bvirt = by - bcy;\n bcytail = by - (bcy + bvirt) + (bvirt - cy);\n\n if (acxtail === 0 && acytail === 0 && bcxtail === 0 && bcytail === 0) {\n return det;\n }\n\n errbound = ccwerrboundC * detsum + resulterrbound * Math.abs(det);\n det += (acx * bcytail + bcy * acxtail) - (acy * bcxtail + bcx * acytail);\n if (det >= errbound || -det >= errbound) return det;\n\n s1 = acxtail * bcy;\n c = splitter * acxtail;\n ahi = c - (c - acxtail);\n alo = acxtail - ahi;\n c = splitter * bcy;\n bhi = c - (c - bcy);\n blo = bcy - bhi;\n s0 = alo * blo - (s1 - ahi * bhi - alo * bhi - ahi * blo);\n t1 = acytail * bcx;\n c = splitter * acytail;\n ahi = c - (c - acytail);\n alo = acytail - ahi;\n c = splitter * bcx;\n bhi = c - (c - bcx);\n blo = bcx - bhi;\n t0 = alo * blo - (t1 - ahi * bhi - alo * bhi - ahi * blo);\n _i = s0 - t0;\n bvirt = s0 - _i;\n u[0] = s0 - (_i + bvirt) + (bvirt - t0);\n _j = s1 + _i;\n bvirt = _j - s1;\n _0 = s1 - (_j - bvirt) + (_i - bvirt);\n _i = _0 - t1;\n bvirt = _0 - _i;\n u[1] = _0 - (_i + bvirt) + (bvirt - t1);\n u3 = _j + _i;\n bvirt = u3 - _j;\n u[2] = _j - (u3 - bvirt) + (_i - bvirt);\n u[3] = u3;\n const C1len = sum(4, B, 4, u, C1);\n\n s1 = acx * bcytail;\n c = splitter * acx;\n ahi = c - (c - acx);\n alo = acx - ahi;\n c = splitter * bcytail;\n bhi = c - (c - bcytail);\n blo = bcytail - bhi;\n s0 = alo * blo - (s1 - ahi * bhi - alo * bhi - ahi * blo);\n t1 = acy * bcxtail;\n c = splitter * acy;\n ahi = c - (c - acy);\n alo = acy - ahi;\n c = splitter * bcxtail;\n bhi = c - (c - bcxtail);\n blo = bcxtail - bhi;\n t0 = alo * blo - (t1 - ahi * bhi - alo * bhi - ahi * blo);\n _i = s0 - t0;\n bvirt = s0 - _i;\n u[0] = s0 - (_i + bvirt) + (bvirt - t0);\n _j = s1 + _i;\n bvirt = _j - s1;\n _0 = s1 - (_j - bvirt) + (_i - bvirt);\n _i = _0 - t1;\n bvirt = _0 - _i;\n u[1] = _0 - (_i + bvirt) + (bvirt - t1);\n u3 = _j + _i;\n bvirt = u3 - _j;\n u[2] = _j - (u3 - bvirt) + (_i - bvirt);\n u[3] = u3;\n const C2len = sum(C1len, C1, 4, u, C2);\n\n s1 = acxtail * bcytail;\n c = splitter * acxtail;\n ahi = c - (c - acxtail);\n alo = acxtail - ahi;\n c = splitter * bcytail;\n bhi = c - (c - bcytail);\n blo = bcytail - bhi;\n s0 = alo * blo - (s1 - ahi * bhi - alo * bhi - ahi * blo);\n t1 = acytail * bcxtail;\n c = splitter * acytail;\n ahi = c - (c - acytail);\n alo = acytail - ahi;\n c = splitter * bcxtail;\n bhi = c - (c - bcxtail);\n blo = bcxtail - bhi;\n t0 = alo * blo - (t1 - ahi * bhi - alo * bhi - ahi * blo);\n _i = s0 - t0;\n bvirt = s0 - _i;\n u[0] = s0 - (_i + bvirt) + (bvirt - t0);\n _j = s1 + _i;\n bvirt = _j - s1;\n _0 = s1 - (_j - bvirt) + (_i - bvirt);\n _i = _0 - t1;\n bvirt = _0 - _i;\n u[1] = _0 - (_i + bvirt) + (bvirt - t1);\n u3 = _j + _i;\n bvirt = u3 - _j;\n u[2] = _j - (u3 - bvirt) + (_i - bvirt);\n u[3] = u3;\n const Dlen = sum(C2len, C2, 4, u, D);\n\n return D[Dlen - 1];\n}\n\nexport function orient2d(ax, ay, bx, by, cx, cy) {\n const detleft = (ay - cy) * (bx - cx);\n const detright = (ax - cx) * (by - cy);\n const det = detleft - detright;\n\n const detsum = Math.abs(detleft + detright);\n if (Math.abs(det) >= ccwerrboundA * detsum) return det;\n\n return -orient2dadapt(ax, ay, bx, by, cx, cy, detsum);\n}\n\nexport function orient2dfast(ax, ay, bx, by, cx, cy) {\n return (ay - cy) * (bx - cx) - (ax - cx) * (by - cy);\n}\n","import { orient2d } from 'robust-predicates';\n\nfunction pointInPolygon(p, polygon) {\n var i;\n var ii;\n var k = 0;\n var f;\n var u1;\n var v1;\n var u2;\n var v2;\n var currentP;\n var nextP;\n\n var x = p[0];\n var y = p[1];\n\n var numContours = polygon.length;\n for (i = 0; i < numContours; i++) {\n ii = 0;\n var contour = polygon[i];\n var contourLen = contour.length - 1;\n\n currentP = contour[0];\n if (currentP[0] !== contour[contourLen][0] &&\n currentP[1] !== contour[contourLen][1]) {\n throw new Error('First and last coordinates in a ring must be the same')\n }\n\n u1 = currentP[0] - x;\n v1 = currentP[1] - y;\n\n for (ii; ii < contourLen; ii++) {\n nextP = contour[ii + 1];\n\n u2 = nextP[0] - x;\n v2 = nextP[1] - y;\n\n if (v1 === 0 && v2 === 0) {\n if ((u2 <= 0 && u1 >= 0) || (u1 <= 0 && u2 >= 0)) { return 0 }\n } else if ((v2 >= 0 && v1 <= 0) || (v2 <= 0 && v1 >= 0)) {\n f = orient2d(u1, u2, v1, v2, 0, 0);\n if (f === 0) { return 0 }\n if ((f > 0 && v2 > 0 && v1 <= 0) || (f < 0 && v2 <= 0 && v1 > 0)) { k++; }\n }\n currentP = nextP;\n v1 = v2;\n u1 = u2;\n }\n }\n\n if (k % 2 === 0) { return false }\n return true\n}\n\nexport { pointInPolygon as default };\n","// index.ts\nimport pip from \"point-in-polygon-hao\";\nimport { getCoord, getGeom } from \"@turf/invariant\";\nfunction booleanPointInPolygon(point, polygon, options = {}) {\n if (!point) {\n throw new Error(\"point is required\");\n }\n if (!polygon) {\n throw new Error(\"polygon is required\");\n }\n const pt = getCoord(point);\n const geom = getGeom(polygon);\n const type = geom.type;\n const bbox = polygon.bbox;\n let polys = geom.coordinates;\n if (bbox && inBBox(pt, bbox) === false) {\n return false;\n }\n if (type === \"Polygon\") {\n polys = [polys];\n }\n for (var i = 0; i < polys.length; ++i) {\n const polyResult = pip(pt, polys[i]);\n if (polyResult === 0 && !options.ignoreBoundary) return true;\n else if (polyResult) return true;\n }\n return false;\n}\nfunction inBBox(pt, bbox) {\n return bbox[0] <= pt[0] && bbox[1] <= pt[1] && bbox[2] >= pt[0] && bbox[3] >= pt[1];\n}\nvar index_default = booleanPointInPolygon;\nexport {\n booleanPointInPolygon,\n index_default as default\n};\n//# sourceMappingURL=index.js.map","\nexport default class TinyQueue {\n constructor(data = [], compare = defaultCompare) {\n this.data = data;\n this.length = this.data.length;\n this.compare = compare;\n\n if (this.length > 0) {\n for (let i = (this.length >> 1) - 1; i >= 0; i--) this._down(i);\n }\n }\n\n push(item) {\n this.data.push(item);\n this.length++;\n this._up(this.length - 1);\n }\n\n pop() {\n if (this.length === 0) return undefined;\n\n const top = this.data[0];\n const bottom = this.data.pop();\n this.length--;\n\n if (this.length > 0) {\n this.data[0] = bottom;\n this._down(0);\n }\n\n return top;\n }\n\n peek() {\n return this.data[0];\n }\n\n _up(pos) {\n const {data, compare} = this;\n const item = data[pos];\n\n while (pos > 0) {\n const parent = (pos - 1) >> 1;\n const current = data[parent];\n if (compare(item, current) >= 0) break;\n data[pos] = current;\n pos = parent;\n }\n\n data[pos] = item;\n }\n\n _down(pos) {\n const {data, compare} = this;\n const halfLength = this.length >> 1;\n const item = data[pos];\n\n while (pos < halfLength) {\n let left = (pos << 1) + 1;\n let best = data[left];\n const right = left + 1;\n\n if (right < this.length && compare(data[right], best) < 0) {\n left = right;\n best = data[right];\n }\n if (compare(best, item) >= 0) break;\n\n data[pos] = best;\n pos = left;\n }\n\n data[pos] = item;\n }\n}\n\nfunction defaultCompare(a, b) {\n return a < b ? -1 : a > b ? 1 : 0;\n}\n","export const epsilon = 1.1102230246251565e-16;\nexport const splitter = 134217729;\nexport const resulterrbound = (3 + 8 * epsilon) * epsilon;\n\n// fast_expansion_sum_zeroelim routine from oritinal code\nexport function sum(elen, e, flen, f, h) {\n let Q, Qnew, hh, bvirt;\n let enow = e[0];\n let fnow = f[0];\n let eindex = 0;\n let findex = 0;\n if ((fnow > enow) === (fnow > -enow)) {\n Q = enow;\n enow = e[++eindex];\n } else {\n Q = fnow;\n fnow = f[++findex];\n }\n let hindex = 0;\n if (eindex < elen && findex < flen) {\n if ((fnow > enow) === (fnow > -enow)) {\n Qnew = enow + Q;\n hh = Q - (Qnew - enow);\n enow = e[++eindex];\n } else {\n Qnew = fnow + Q;\n hh = Q - (Qnew - fnow);\n fnow = f[++findex];\n }\n Q = Qnew;\n if (hh !== 0) {\n h[hindex++] = hh;\n }\n while (eindex < elen && findex < flen) {\n if ((fnow > enow) === (fnow > -enow)) {\n Qnew = Q + enow;\n bvirt = Qnew - Q;\n hh = Q - (Qnew - bvirt) + (enow - bvirt);\n enow = e[++eindex];\n } else {\n Qnew = Q + fnow;\n bvirt = Qnew - Q;\n hh = Q - (Qnew - bvirt) + (fnow - bvirt);\n fnow = f[++findex];\n }\n Q = Qnew;\n if (hh !== 0) {\n h[hindex++] = hh;\n }\n }\n }\n while (eindex < elen) {\n Qnew = Q + enow;\n bvirt = Qnew - Q;\n hh = Q - (Qnew - bvirt) + (enow - bvirt);\n enow = e[++eindex];\n Q = Qnew;\n if (hh !== 0) {\n h[hindex++] = hh;\n }\n }\n while (findex < flen) {\n Qnew = Q + fnow;\n bvirt = Qnew - Q;\n hh = Q - (Qnew - bvirt) + (fnow - bvirt);\n fnow = f[++findex];\n Q = Qnew;\n if (hh !== 0) {\n h[hindex++] = hh;\n }\n }\n if (Q !== 0 || hindex === 0) {\n h[hindex++] = Q;\n }\n return hindex;\n}\n\nexport function sum_three(alen, a, blen, b, clen, c, tmp, out) {\n return sum(sum(alen, a, blen, b, tmp), tmp, clen, c, out);\n}\n\n// scale_expansion_zeroelim routine from oritinal code\nexport function scale(elen, e, b, h) {\n let Q, sum, hh, product1, product0;\n let bvirt, c, ahi, alo, bhi, blo;\n\n c = splitter * b;\n bhi = c - (c - b);\n blo = b - bhi;\n let enow = e[0];\n Q = enow * b;\n c = splitter * enow;\n ahi = c - (c - enow);\n alo = enow - ahi;\n hh = alo * blo - (Q - ahi * bhi - alo * bhi - ahi * blo);\n let hindex = 0;\n if (hh !== 0) {\n h[hindex++] = hh;\n }\n for (let i = 1; i < elen; i++) {\n enow = e[i];\n product1 = enow * b;\n c = splitter * enow;\n ahi = c - (c - enow);\n alo = enow - ahi;\n product0 = alo * blo - (product1 - ahi * bhi - alo * bhi - ahi * blo);\n sum = Q + product0;\n bvirt = sum - Q;\n hh = Q - (sum - bvirt) + (product0 - bvirt);\n if (hh !== 0) {\n h[hindex++] = hh;\n }\n Q = product1 + sum;\n hh = sum - (Q - product1);\n if (hh !== 0) {\n h[hindex++] = hh;\n }\n }\n if (Q !== 0 || hindex === 0) {\n h[hindex++] = Q;\n }\n return hindex;\n}\n\nexport function negate(elen, e) {\n for (let i = 0; i < elen; i++) e[i] = -e[i];\n return elen;\n}\n\nexport function estimate(elen, e) {\n let Q = e[0];\n for (let i = 1; i < elen; i++) Q += e[i];\n return Q;\n}\n\nexport function vec(n) {\n return new Float64Array(n);\n}\n","import {epsilon, splitter, resulterrbound, estimate, vec, sum} from './util.js';\n\nconst ccwerrboundA = (3 + 16 * epsilon) * epsilon;\nconst ccwerrboundB = (2 + 12 * epsilon) * epsilon;\nconst ccwerrboundC = (9 + 64 * epsilon) * epsilon * epsilon;\n\nconst B = vec(4);\nconst C1 = vec(8);\nconst C2 = vec(12);\nconst D = vec(16);\nconst u = vec(4);\n\nfunction orient2dadapt(ax, ay, bx, by, cx, cy, detsum) {\n let acxtail, acytail, bcxtail, bcytail;\n let bvirt, c, ahi, alo, bhi, blo, _i, _j, _0, s1, s0, t1, t0, u3;\n\n const acx = ax - cx;\n const bcx = bx - cx;\n const acy = ay - cy;\n const bcy = by - cy;\n\n s1 = acx * bcy;\n c = splitter * acx;\n ahi = c - (c - acx);\n alo = acx - ahi;\n c = splitter * bcy;\n bhi = c - (c - bcy);\n blo = bcy - bhi;\n s0 = alo * blo - (s1 - ahi * bhi - alo * bhi - ahi * blo);\n t1 = acy * bcx;\n c = splitter * acy;\n ahi = c - (c - acy);\n alo = acy - ahi;\n c = splitter * bcx;\n bhi = c - (c - bcx);\n blo = bcx - bhi;\n t0 = alo * blo - (t1 - ahi * bhi - alo * bhi - ahi * blo);\n _i = s0 - t0;\n bvirt = s0 - _i;\n B[0] = s0 - (_i + bvirt) + (bvirt - t0);\n _j = s1 + _i;\n bvirt = _j - s1;\n _0 = s1 - (_j - bvirt) + (_i - bvirt);\n _i = _0 - t1;\n bvirt = _0 - _i;\n B[1] = _0 - (_i + bvirt) + (bvirt - t1);\n u3 = _j + _i;\n bvirt = u3 - _j;\n B[2] = _j - (u3 - bvirt) + (_i - bvirt);\n B[3] = u3;\n\n let det = estimate(4, B);\n let errbound = ccwerrboundB * detsum;\n if (det >= errbound || -det >= errbound) {\n return det;\n }\n\n bvirt = ax - acx;\n acxtail = ax - (acx + bvirt) + (bvirt - cx);\n bvirt = bx - bcx;\n bcxtail = bx - (bcx + bvirt) + (bvirt - cx);\n bvirt = ay - acy;\n acytail = ay - (acy + bvirt) + (bvirt - cy);\n bvirt = by - bcy;\n bcytail = by - (bcy + bvirt) + (bvirt - cy);\n\n if (acxtail === 0 && acytail === 0 && bcxtail === 0 && bcytail === 0) {\n return det;\n }\n\n errbound = ccwerrboundC * detsum + resulterrbound * Math.abs(det);\n det += (acx * bcytail + bcy * acxtail) - (acy * bcxtail + bcx * acytail);\n if (det >= errbound || -det >= errbound) return det;\n\n s1 = acxtail * bcy;\n c = splitter * acxtail;\n ahi = c - (c - acxtail);\n alo = acxtail - ahi;\n c = splitter * bcy;\n bhi = c - (c - bcy);\n blo = bcy - bhi;\n s0 = alo * blo - (s1 - ahi * bhi - alo * bhi - ahi * blo);\n t1 = acytail * bcx;\n c = splitter * acytail;\n ahi = c - (c - acytail);\n alo = acytail - ahi;\n c = splitter * bcx;\n bhi = c - (c - bcx);\n blo = bcx - bhi;\n t0 = alo * blo - (t1 - ahi * bhi - alo * bhi - ahi * blo);\n _i = s0 - t0;\n bvirt = s0 - _i;\n u[0] = s0 - (_i + bvirt) + (bvirt - t0);\n _j = s1 + _i;\n bvirt = _j - s1;\n _0 = s1 - (_j - bvirt) + (_i - bvirt);\n _i = _0 - t1;\n bvirt = _0 - _i;\n u[1] = _0 - (_i + bvirt) + (bvirt - t1);\n u3 = _j + _i;\n bvirt = u3 - _j;\n u[2] = _j - (u3 - bvirt) + (_i - bvirt);\n u[3] = u3;\n const C1len = sum(4, B, 4, u, C1);\n\n s1 = acx * bcytail;\n c = splitter * acx;\n ahi = c - (c - acx);\n alo = acx - ahi;\n c = splitter * bcytail;\n bhi = c - (c - bcytail);\n blo = bcytail - bhi;\n s0 = alo * blo - (s1 - ahi * bhi - alo * bhi - ahi * blo);\n t1 = acy * bcxtail;\n c = splitter * acy;\n ahi = c - (c - acy);\n alo = acy - ahi;\n c = splitter * bcxtail;\n bhi = c - (c - bcxtail);\n blo = bcxtail - bhi;\n t0 = alo * blo - (t1 - ahi * bhi - alo * bhi - ahi * blo);\n _i = s0 - t0;\n bvirt = s0 - _i;\n u[0] = s0 - (_i + bvirt) + (bvirt - t0);\n _j = s1 + _i;\n bvirt = _j - s1;\n _0 = s1 - (_j - bvirt) + (_i - bvirt);\n _i = _0 - t1;\n bvirt = _0 - _i;\n u[1] = _0 - (_i + bvirt) + (bvirt - t1);\n u3 = _j + _i;\n bvirt = u3 - _j;\n u[2] = _j - (u3 - bvirt) + (_i - bvirt);\n u[3] = u3;\n const C2len = sum(C1len, C1, 4, u, C2);\n\n s1 = acxtail * bcytail;\n c = splitter * acxtail;\n ahi = c - (c - acxtail);\n alo = acxtail - ahi;\n c = splitter * bcytail;\n bhi = c - (c - bcytail);\n blo = bcytail - bhi;\n s0 = alo * blo - (s1 - ahi * bhi - alo * bhi - ahi * blo);\n t1 = acytail * bcxtail;\n c = splitter * acytail;\n ahi = c - (c - acytail);\n alo = acytail - ahi;\n c = splitter * bcxtail;\n bhi = c - (c - bcxtail);\n blo = bcxtail - bhi;\n t0 = alo * blo - (t1 - ahi * bhi - alo * bhi - ahi * blo);\n _i = s0 - t0;\n bvirt = s0 - _i;\n u[0] = s0 - (_i + bvirt) + (bvirt - t0);\n _j = s1 + _i;\n bvirt = _j - s1;\n _0 = s1 - (_j - bvirt) + (_i - bvirt);\n _i = _0 - t1;\n bvirt = _0 - _i;\n u[1] = _0 - (_i + bvirt) + (bvirt - t1);\n u3 = _j + _i;\n bvirt = u3 - _j;\n u[2] = _j - (u3 - bvirt) + (_i - bvirt);\n u[3] = u3;\n const Dlen = sum(C2len, C2, 4, u, D);\n\n return D[Dlen - 1];\n}\n\nexport function orient2d(ax, ay, bx, by, cx, cy) {\n const detleft = (ay - cy) * (bx - cx);\n const detright = (ax - cx) * (by - cy);\n const det = detleft - detright;\n\n if (detleft === 0 || detright === 0 || (detleft > 0) !== (detright > 0)) return det;\n\n const detsum = Math.abs(detleft + detright);\n if (Math.abs(det) >= ccwerrboundA * detsum) return det;\n\n return -orient2dadapt(ax, ay, bx, by, cx, cy, detsum);\n}\n\nexport function orient2dfast(ax, ay, bx, by, cx, cy) {\n return (ay - cy) * (bx - cx) - (ax - cx) * (by - cy);\n}\n","// index.ts\nimport { feature, featureCollection, point } from \"@turf/helpers\";\n\n// lib/sweeplineIntersections.ts\nimport TinyQueue from \"tinyqueue\";\nimport { orient2d } from \"robust-predicates\";\nfunction sweeplineIntersections(geojson, ignoreSelfIntersections) {\n const eventQueue = new TinyQueue([], checkWhichEventIsLeft);\n fillEventQueue(geojson, eventQueue);\n return runCheck(eventQueue, ignoreSelfIntersections);\n}\nfunction checkWhichEventIsLeft(e1, e2) {\n if (e1.p.x > e2.p.x) return 1;\n if (e1.p.x < e2.p.x) return -1;\n if (e1.p.x === e2.p.x && (e1.featureId !== e2.featureId || e1.ringId !== e2.ringId)) {\n if (e1.isLeftEndpoint && !e2.isLeftEndpoint) return -1;\n }\n if (e1.p.y !== e2.p.y) return e1.p.y > e2.p.y ? 1 : -1;\n return 1;\n}\nfunction checkWhichSegmentHasRightEndpointFirst(seg1, seg2) {\n if (seg1.rightSweepEvent.p.x > seg2.rightSweepEvent.p.x) return 1;\n if (seg1.rightSweepEvent.p.x < seg2.rightSweepEvent.p.x) return -1;\n if (seg1.rightSweepEvent.p.y !== seg2.rightSweepEvent.p.y) {\n return seg1.rightSweepEvent.p.y < seg2.rightSweepEvent.p.y ? 1 : -1;\n }\n return 1;\n}\nfunction fillEventQueue(geojson, eventQueue) {\n if (geojson.type === \"FeatureCollection\") {\n const features = geojson.features;\n for (let i = 0; i < features.length; i++) {\n processFeature(features[i], eventQueue);\n }\n } else {\n processFeature(geojson, eventQueue);\n }\n}\nvar featureId = 0;\nvar ringId = 0;\nvar eventId = 0;\nfunction processFeature(featureOrGeometry, eventQueue) {\n const geom = featureOrGeometry.type === \"Feature\" ? featureOrGeometry.geometry : featureOrGeometry;\n let coords = geom.coordinates;\n if (geom.type === \"Polygon\" || geom.type === \"MultiLineString\")\n coords = [coords];\n if (geom.type === \"LineString\") coords = [[coords]];\n for (let i = 0; i < coords.length; i++) {\n for (let ii = 0; ii < coords[i].length; ii++) {\n let currentP = coords[i][ii][0];\n let nextP = null;\n ringId = ringId + 1;\n for (let iii = 0; iii < coords[i][ii].length - 1; iii++) {\n nextP = coords[i][ii][iii + 1];\n const e1 = new Event(currentP, featureId, ringId, eventId);\n const e2 = new Event(nextP, featureId, ringId, eventId + 1);\n e1.otherEvent = e2;\n e2.otherEvent = e1;\n if (checkWhichEventIsLeft(e1, e2) > 0) {\n e2.isLeftEndpoint = true;\n e1.isLeftEndpoint = false;\n } else {\n e1.isLeftEndpoint = true;\n e2.isLeftEndpoint = false;\n }\n eventQueue.push(e1);\n eventQueue.push(e2);\n currentP = nextP;\n eventId = eventId + 1;\n }\n }\n }\n featureId = featureId + 1;\n}\nvar Event = class {\n constructor(p, featureId2, ringId2, eventId2) {\n this.p = {\n x: p[0],\n y: p[1]\n };\n this.featureId = featureId2;\n this.ringId = ringId2;\n this.eventId = eventId2;\n this.otherEvent = null;\n this.isLeftEndpoint = null;\n }\n isSamePoint(eventToCheck) {\n return this.p.x === eventToCheck.p.x && this.p.y === eventToCheck.p.y;\n }\n asNewXY() {\n return [this.p.x, this.p.y];\n }\n};\nfunction runCheck(eventQueue, ignoreSelfIntersections = false) {\n const intersectionPoints = [];\n const outQueue = new TinyQueue([], checkWhichSegmentHasRightEndpointFirst);\n while (eventQueue.length) {\n const event = eventQueue.pop();\n if (event.isLeftEndpoint) {\n const segment = new Segment(event);\n for (let i = 0; i < outQueue.data.length; i++) {\n const otherSeg = outQueue.data[i];\n if (ignoreSelfIntersections) {\n if (otherSeg.leftSweepEvent.featureId === event.featureId) continue;\n }\n const intersection = testSegmentIntersect(segment, otherSeg);\n if (intersection !== false) intersectionPoints.push(intersection);\n }\n outQueue.push(segment);\n } else if (event.isLeftEndpoint === false) {\n outQueue.pop();\n }\n }\n return intersectionPoints;\n}\nvar Segment = class {\n /** @param event must have otherEvent non-null */\n constructor(event) {\n this.leftSweepEvent = event;\n this.rightSweepEvent = event.otherEvent;\n }\n};\nfunction testSegmentIntersect(seg1, seg2) {\n if (seg1 === null || seg2 === null) return false;\n const x1 = seg1.leftSweepEvent.p.x;\n const y1 = seg1.leftSweepEvent.p.y;\n const x2 = seg1.rightSweepEvent.p.x;\n const y2 = seg1.rightSweepEvent.p.y;\n const x3 = seg2.leftSweepEvent.p.x;\n const y3 = seg2.leftSweepEvent.p.y;\n const x4 = seg2.rightSweepEvent.p.x;\n const y4 = seg2.rightSweepEvent.p.y;\n const score1 = orient2d(x1, y1, x2, y2, x3, y3);\n const score2 = orient2d(x1, y1, x2, y2, x4, y4);\n if (score1 > 0 && score2 > 0) return false;\n else if (score1 < 0 && score2 < 0) return false;\n if (seg1.leftSweepEvent.ringId === seg2.leftSweepEvent.ringId) {\n if (seg1.rightSweepEvent.isSamePoint(seg2.leftSweepEvent) || seg1.rightSweepEvent.isSamePoint(seg2.rightSweepEvent) || seg1.leftSweepEvent.isSamePoint(seg2.leftSweepEvent) || seg1.leftSweepEvent.isSamePoint(seg2.rightSweepEvent))\n return false;\n } else {\n if (seg1.rightSweepEvent.isSamePoint(seg2.leftSweepEvent))\n return seg2.leftSweepEvent.asNewXY();\n if (seg1.rightSweepEvent.isSamePoint(seg2.rightSweepEvent))\n return seg2.rightSweepEvent.asNewXY();\n if (seg1.leftSweepEvent.isSamePoint(seg2.leftSweepEvent))\n return seg2.leftSweepEvent.asNewXY();\n if (seg1.leftSweepEvent.isSamePoint(seg2.rightSweepEvent))\n return seg2.rightSweepEvent.asNewXY();\n }\n const denom = (y4 - y3) * (x2 - x1) - (x4 - x3) * (y2 - y1);\n const numeA = (x4 - x3) * (y1 - y3) - (y4 - y3) * (x1 - x3);\n const numeB = (x2 - x1) * (y1 - y3) - (y2 - y1) * (x1 - x3);\n if (denom === 0) {\n if (numeA === 0 && numeB === 0) return false;\n return false;\n }\n const uA = numeA / denom;\n const uB = numeB / denom;\n if (uA >= 0 && uA <= 1 && uB >= 0 && uB <= 1) {\n const x = x1 + uA * (x2 - x1);\n const y = y1 + uA * (y2 - y1);\n return [x, y];\n }\n return false;\n}\n\n// index.ts\nfunction lineIntersect(line1, line2, options = {}) {\n const { removeDuplicates = true, ignoreSelfIntersections = true } = options;\n let features = [];\n if (line1.type === \"FeatureCollection\")\n features = features.concat(line1.features);\n else if (line1.type === \"Feature\") features.push(line1);\n else if (line1.type === \"LineString\" || line1.type === \"Polygon\" || line1.type === \"MultiLineString\" || line1.type === \"MultiPolygon\") {\n features.push(feature(line1));\n }\n if (line2.type === \"FeatureCollection\")\n features = features.concat(line2.features);\n else if (line2.type === \"Feature\") features.push(line2);\n else if (line2.type === \"LineString\" || line2.type === \"Polygon\" || line2.type === \"MultiLineString\" || line2.type === \"MultiPolygon\") {\n features.push(feature(line2));\n }\n const intersections = sweeplineIntersections(\n featureCollection(features),\n ignoreSelfIntersections\n );\n let results = [];\n if (removeDuplicates) {\n const unique = {};\n intersections.forEach((intersection) => {\n const key = intersection.join(\",\");\n if (!unique[key]) {\n unique[key] = true;\n results.push(intersection);\n }\n });\n } else {\n results = intersections;\n }\n return featureCollection(results.map((r) => point(r)));\n}\nvar index_default = lineIntersect;\nexport {\n index_default as default,\n lineIntersect\n};\n//# sourceMappingURL=index.js.map","// index.ts\nimport { point } from \"@turf/helpers\";\nimport { coordEach } from \"@turf/meta\";\nfunction centroid(geojson, options = {}) {\n let xSum = 0;\n let ySum = 0;\n let len = 0;\n coordEach(\n geojson,\n function(coord) {\n xSum += coord[0];\n ySum += coord[1];\n len++;\n },\n true\n );\n return point([xSum / len, ySum / len], options.properties);\n}\nvar index_default = centroid;\nexport {\n centroid,\n index_default as default\n};\n//# sourceMappingURL=index.js.map","// 層 A()・層 B()の共通の取り決め(名前の表と型)。\n//\n// @maplat/core/common から公開する。実装(OpenLayers 版の Core・有償版)にも、層 B(UI・UI-Pro)にも、\n// ページの TypeScript にも共通の 1 つの表として置く。\n// **このファイルは何も import しない**(common の入口からたどれる連鎖に OpenLayers・Weiwudi・\n// @maplat/transform・turf を入れないため。spec/common-entry.spec.ts が機械的に確かめる)。\n//\n// 公開 API は docs/api/maplat-app.md を参照。\n\n// ---------------------------------------------------------------------------\n// タグ名\n// ---------------------------------------------------------------------------\n\nexport const MAPLAT_APP_TAG = \"maplat-app\";\nexport const MAPLAT_UI_TAG = \"maplat-ui\";\n\n// ---------------------------------------------------------------------------\n// イベント名\n// ---------------------------------------------------------------------------\n\n/**\n * 層 A の要素が出すイベントのうち、旧クラス(MaplatApp)の名前をそのまま使うもの。\n * Core は src/index.ts の dispatchEvent をこの表と突き合わせる(spec/element.spec.ts)。\n */\nexport const MAPLAT_APP_EVENTS = [\n \"lifecycle:setting-loaded\",\n \"lifecycle:appdata-ready\",\n \"lifecycle:ui-configure\",\n \"lifecycle:core-dom-ready\",\n \"lifecycle:ui-dom-ready\",\n \"lifecycle:core-ready\",\n \"lifecycle:ui-ready\",\n \"lifecycle:error\",\n \"sourceLoaded\",\n \"mapChanged\",\n \"changeViewpoint\",\n \"updateState\",\n \"outOfMap\",\n \"poi_number\",\n \"clickMarker\",\n \"clickMarkers\",\n \"clickMap\",\n \"clickMapXy\",\n \"clickMapMerc\",\n \"pointerMoveOnMapXy\",\n \"pointerMoveOnMapMerc\",\n \"gps_request\",\n \"gps_result\",\n \"gps_error\"\n] as const;\nexport type MaplatAppEventName = (typeof MAPLAT_APP_EVENTS)[number];\n\n/** 層 A の要素が新設するイベント。 */\nexport const ELEMENT_OWN_EVENTS = [\"gpsEnabledChanged\", \"moveStart\", \"moveEnd\"] as const;\nexport type ElementOwnEventName = (typeof ELEMENT_OWN_EVENTS)[number];\n\n/** 層 A のうち Pro 固有のイベント(supports() が真のときだけ出る)。 */\nexport const LAYER_A_PRO_EVENTS = [\n { event: \"modechange\", feature: \"display-mode\" },\n { event: \"viewchange\", feature: \"display-mode\" }\n] as const;\n\n/** ライフサイクルの段階(旧と同順)。 */\nexport const LIFECYCLE_PHASES = [\n \"setting-loaded\",\n \"appdata-ready\",\n \"ui-configure\",\n \"core-dom-ready\",\n \"ui-dom-ready\",\n \"core-ready\",\n \"ui-ready\"\n] as const;\nexport type LifecyclePhaseId = (typeof LIFECYCLE_PHASES)[number];\n\n// ---------------------------------------------------------------------------\n// メソッド名\n// ---------------------------------------------------------------------------\n\n/** 旧クラスから引き継ぐ公開メソッド(46 個。旧クラスが持つ 44 個+#91 の removeVector・removeLine)。要素は実装の同名メソッドへ委譲する。 */\nexport const MAPLAT_APP_METHODS = [\n \"handleGPS\",\n \"getGPSEnabled\",\n \"getRotation\",\n \"getDirection\",\n \"currentMapInfo\",\n \"mapInfo\",\n \"clientPointToLngLat\",\n \"lngLatToClientPoint\",\n \"selectMarker\",\n \"unselectMarker\",\n \"getMarker\",\n \"updateMarker\",\n \"addMarker\",\n \"removeMarker\",\n \"clearMarker\",\n \"showAllMarkers\",\n \"hideAllMarkers\",\n \"listPoiLayers\",\n \"showPoiLayer\",\n \"hidePoiLayer\",\n \"getPoiLayer\",\n \"addPoiLayer\",\n \"removePoiLayer\",\n \"addLine\",\n \"addVector\",\n // nov26-m4-t5(#91): 線・面を id で 1 件だけ消す\n \"removeVector\",\n \"removeLine\",\n \"clearLine\",\n \"clearVector\",\n \"setGPSMarker\",\n \"changeMap\",\n \"requestUpdateState\",\n \"setTransparency\",\n \"getTransparency\",\n \"setViewpoint\",\n \"goHome\",\n \"resetRotation\",\n \"resetDirection\",\n \"resetCirculation\",\n \"getMapMeta\",\n \"getMapCacheEnable\",\n \"getMapTileCacheStatsAsync\",\n \"getMapTileCacheSizeAsync\",\n \"clearMapTileCacheAsync\",\n \"fetchAllMapTileCacheAsync\",\n \"cancelMapTileCacheAsync\"\n] as const;\nexport type MaplatAppMethodName = (typeof MAPLAT_APP_METHODS)[number];\n\n/** 層 A で新設したメソッド。 */\nexport const ELEMENT_OWN_METHODS = [\n \"getViewpoint\",\n \"listMaps\",\n \"supports\",\n \"setEnvelopes\",\n \"getMapEnvelope\",\n \"getViewExtent\",\n \"zoomBy\",\n \"getDefaultPinIcon\"\n] as const;\nexport type ElementOwnMethodName = (typeof ELEMENT_OWN_METHODS)[number];\n\n/** Pro 固有のメソッド。対応する機能が supports() で偽なら要素に**定義しない**。 */\nexport const LAYER_A_PRO_METHODS = [\n { method: \"setDisplayMode\", feature: \"display-mode\" },\n { method: \"getDisplayMode\", feature: \"display-mode\" }\n] as const;\n\n/** 層 A の状態の読み取り(読み取り専用プロパティ)。 */\nexport const LAYER_A_STATE_PROPERTIES = [\n \"ready\",\n \"implementation\",\n \"version\",\n \"appData\",\n \"initialRestore\",\n \"state\",\n \"currentMapId\",\n \"viewpoint\",\n \"gpsEnabled\"\n] as const;\n\n// ---------------------------------------------------------------------------\n// 機能名\n// ---------------------------------------------------------------------------\n\nexport type LayerAImplementationName = \"core\" | \"core-pro\";\n\n/** 機能名の表。足すときはこの表と適合テスト(src/conformance)も更新する。 */\nexport const LAYER_A_FEATURES: Readonly>>> = {\n \"display-mode\": { core: false, \"core-pro\": true },\n \"display-mode:map-warp\": { core: false, \"core-pro\": true },\n \"tile-cache\": { core: true, \"core-pro\": true },\n mapbox: { core: true, \"core-pro\": false },\n \"pointer-move\": { core: true, \"core-pro\": true },\n envelopes: { core: true, \"core-pro\": true }\n};\nexport const LAYER_A_FEATURE_NAMES = Object.keys(LAYER_A_FEATURES);\n\n/** 実装名から機能表の 1 列を取り出す(未知の実装名は全部 false)。 */\nexport function featuresOf(implementation: string): Record {\n const out: Record = {};\n for (const name of LAYER_A_FEATURE_NAMES) {\n out[name] = !!(LAYER_A_FEATURES[name] as Record)[implementation];\n }\n return out;\n}\n\n// ---------------------------------------------------------------------------\n// 属性・プロパティの表\n// ---------------------------------------------------------------------------\n\n/**\n * 属性の値の種類。\"boolean-or-string\" は真偽と文字列の両方を取るキー(pwa-manifest:\n * \"\"・\"true\"・属性名=true/\"false\"=false/それ以外は文字列のまま)。\n */\nexport type AttrKind = \"string\" | \"number\" | \"boolean\" | \"boolean-or-string\";\n\n/** 属性と同期するキーの定義。 */\nexport interface AttrDef {\n /** 属性名(kebab-case) */\n attr: string;\n /** プロパティ名(camelCase) */\n prop: string;\n kind: AttrKind;\n /** 起動時だけ効く(起動後は変更不可・警告して無視) */\n startup?: boolean;\n /** 旧 appOption のキー名(移行用の口 appOption と、実装への受け渡しに使う) */\n option?: string;\n /** 地図の準備を待たずに DOM だけで当てるキー(中心の目印) */\n dom?: boolean;\n /** Pro 固有のキー: この機能が supports() で偽の実装は警告して無視する */\n feature?: string;\n /**\n * 内部の操作(UI・メソッド・状態 URL の復元)で変わる状態のキー(2026-10-11 改訂)。\n * 実装は変化のたびに属性へ書き戻す(\"change\")。連続して変わるものは描画 1 回につき 1 回にまとめる(\"frame\")。\n * 書き戻しは属性の変更として扱わない(二重に処理しない)。\n */\n state?: \"change\" | \"frame\";\n}\n\n/** プロパティのみのキー(JS からしか渡せない値)の定義。 */\nexport interface PropDef {\n prop: string;\n startup?: boolean;\n option?: string;\n feature?: string;\n}\n\n/** 層 A の属性と同期するキー(中心の目印を含む)。 */\nexport const ELEMENT_ATTRIBUTES: readonly AttrDef[] = [\n { attr: \"app-id\", prop: \"appId\", kind: \"string\", startup: true, option: \"appid\" },\n { attr: \"app-src\", prop: \"appSrc\", kind: \"string\", startup: true },\n { attr: \"map-id\", prop: \"mapId\", kind: \"string\", state: \"change\" },\n { attr: \"transparency\", prop: \"transparency\", kind: \"number\", state: \"frame\" },\n { attr: \"no-rotate\", prop: \"noRotate\", kind: \"boolean\", startup: true, option: \"noRotate\" },\n { attr: \"north-up\", prop: \"northUp\", kind: \"boolean\", option: \"northUp\" },\n { attr: \"home-margin-pixels\", prop: \"homeMarginPixels\", kind: \"number\", option: \"homeMarginPixels\" },\n { attr: \"always-gps-on\", prop: \"alwaysGpsOn\", kind: \"boolean\", startup: true, option: \"alwaysGpsOn\" },\n { attr: \"fake\", prop: \"fake\", kind: \"boolean\", startup: true, option: \"fake\" },\n { attr: \"enable-cache\", prop: \"enableCache\", kind: \"boolean\", startup: true, option: \"enableCache\" },\n { attr: \"restore-session\", prop: \"restoreSession\", kind: \"boolean\", startup: true, option: \"restoreSession\" },\n { attr: \"overlay\", prop: \"overlay\", kind: \"boolean\", startup: true, option: \"overlay\" },\n { attr: \"debug\", prop: \"debug\", kind: \"boolean\", option: \"debug\" },\n { attr: \"icon\", prop: \"icon\", kind: \"string\", option: \"icon\" },\n { attr: \"selected-icon\", prop: \"selectedIcon\", kind: \"string\", option: \"selectedIcon\" },\n // 中心の目印(既定で表示。消す・画像を差し替える口)\n { attr: \"no-center-marker\", prop: \"noCenterMarker\", kind: \"boolean\", dom: true },\n { attr: \"center-marker-src\", prop: \"centerMarkerSrc\", kind: \"string\", dom: true },\n // 範囲外の POI を描かない指定(起動後にも変えられる)\n { attr: \"hide-outside-pois\", prop: \"hideOutsidePois\", kind: \"boolean\", option: \"hideOutsidePois\" }\n];\n\n/** 層 A のプロパティのみのキー。 */\nexport const ELEMENT_PROPERTIES: readonly PropDef[] = [\n { prop: \"setting\", startup: true, option: \"setting\" },\n { prop: \"restore\", startup: true, option: \"restore\" },\n { prop: \"restoreExtensionKeys\", startup: true, option: \"restoreExtensionKeys\" },\n { prop: \"googleApiKey\", startup: true, option: \"googleApiKey\" },\n { prop: \"mapboxToken\", startup: true, option: \"mapboxToken\" },\n { prop: \"maplibregl\", startup: true, option: \"maplibregl\" },\n { prop: \"mapboxgl\", startup: true, option: \"mapboxgl\" },\n { prop: \"uiHooks\", startup: true, option: \"uiHooks\" },\n { prop: \"appOption\", startup: true },\n { prop: \"poiTemplate\", option: \"poiTemplate\" },\n { prop: \"poiStyle\", option: \"poiStyle\" },\n { prop: \"iconTemplate\", option: \"iconTemplate\" }\n];\n\n/**\n * 層 A の Pro 固有の属性。要素は全実装でこの属性を観測し、対応する機能を持たない実装\n * (Core 等)は**キーごとに 1 回**警告して無視する。警告文に実装の名を出さない。\n * ここに挙がっているのは display-mode だけ(足すときはこの表と一緒に更新する)。\n */\nexport const LAYER_A_PRO_ATTRIBUTES: readonly AttrDef[] = [\n { attr: \"display-mode\", prop: \"displayMode\", kind: \"string\", feature: \"display-mode\", state: \"change\" }\n];\n\n/** 層 A の Pro 固有のプロパティのみのキー(現時点では無し)。 */\nexport const LAYER_A_PRO_PROPERTIES: readonly PropDef[] = [];\n\n/** 起動時だけ効くキーのプロパティ名(属性・プロパティのみの両方)。 */\nexport const ELEMENT_STARTUP_KEYS: readonly string[] = [\n ...ELEMENT_ATTRIBUTES.filter(d => d.startup).map(d => d.prop),\n ...ELEMENT_PROPERTIES.filter(d => d.startup).map(d => d.prop)\n];\n\n/** 旧 appOption の名前 → 要素のプロパティ名。appOption に新しい名前で書かれていたら旧名へ寄せる。 */\nexport const APP_OPTION_ALIASES: Readonly> = {\n appId: \"appid\",\n tapUiVanish: \"tapUIVanish\"\n};\n\n/** プロパティ名 → 属性名(大文字の前で区切り、略語は 1 語として扱う)。 */\nexport function propToAttributeName(prop: string): string {\n return prop\n .replace(/([A-Z]+)([A-Z][a-z])/g, \"$1-$2\")\n .replace(/([a-z0-9])([A-Z])/g, \"$1-$2\")\n .toLowerCase();\n}\n\n/** 属性名 → プロパティ名。 */\nexport function attributeToPropName(attr: string): string {\n return attr.replace(/-([a-z0-9])/g, (_m, c: string) => c.toUpperCase());\n}\n\n/**\n * ライフサイクルの hook の名前(7 つ。LIFECYCLE_PHASES と 1 対 1)。\n * 写しを作るときに名前で引くための表(プロトタイプ上の hook も拾う)。\n */\nconst UI_HOOK_NAMES = [\n \"onSettingLoaded\",\n \"onAppdataReady\",\n \"onUiConfigure\",\n \"onCoreDomReady\",\n \"onUiDomReady\",\n \"onCoreReady\",\n \"onUiReady\"\n] as const;\n\n/**\n * 要素の経路の uiHooks に、`context.core` と `context.mapDivDocument` を要素に差し替えた写しを返す\n * 元の hook オブジェクトは書き換えない(旧クラスの経路は `core: MaplatApp` のまま)。\n * hook は名前の表を回して `hooks[name]` で引く(クラスのインスタンスや `Object.create` で作った\n * オブジェクトのプロトタイプ上の hook も落とさない)。表に無いキーは今までどおり写す。\n */\nexport function wrapUiHooksForElement>(\n hooks: H,\n element: HTMLElement\n): Record {\n const wrapped: Record = {};\n // 重複は Set で除く(`name in wrapped` は Object.prototype までたどるので、\n // constructor・toString のような名前の自作キーが落ちる。Info 1)\n const names = new Set([...UI_HOOK_NAMES, ...Object.keys(hooks)]);\n for (const name of names) {\n // \"__proto__\" は写しのプロトタイプを差し替えてしまうので写さない(I-c1)\n if (name === \"__proto__\") continue;\n const fn = hooks[name];\n wrapped[name] =\n typeof fn === \"function\"\n ? (context: any) =>\n (fn as (this: unknown, ...args: any[]) => unknown).call(hooks, {\n ...context,\n core: element,\n mapDivDocument: element\n })\n : fn;\n }\n return wrapped;\n}\n\n/** 属性の文字列 → 値。undefined は「未指定」。不正な値は warn を呼んで未指定にする。 */\nexport function parseAttributeValue(\n def: Pick,\n raw: string | null,\n warn?: (message: string) => void,\n tagName: string = MAPLAT_APP_TAG\n): unknown {\n if (raw == null) return undefined;\n switch (def.kind) {\n case \"boolean-or-string\":\n if (raw === \"\" || raw === \"true\" || raw === def.attr) return true;\n if (raw === \"false\") return false;\n return raw;\n case \"boolean\":\n if (raw === \"\" || raw === \"true\" || raw === def.attr) return true;\n if (raw === \"false\") return false;\n warn?.(\n `<${tagName}>: invalid boolean value \"${raw}\" for attribute \"${def.attr}\" (use \"true\" / \"false\"); treated as unspecified.`\n );\n return undefined;\n case \"number\": {\n if (raw === \"\") return undefined;\n const n = Number(raw);\n if (Number.isNaN(n)) {\n warn?.(`<${tagName}>: invalid number \"${raw}\" for attribute \"${def.attr}\"; treated as unspecified.`);\n return undefined;\n }\n return n;\n }\n default:\n return raw === \"\" ? undefined : raw;\n }\n}\n\n/** 値 → 属性の文字列(null は属性を外す)。 */\nexport function formatAttributeValue(def: Pick, value: unknown): string | null {\n if (value == null) return null;\n if (def.kind === \"boolean\") return value ? \"\" : \"false\";\n if (def.kind === \"boolean-or-string\" && typeof value === \"boolean\") return value ? \"\" : \"false\";\n return String(value);\n}\n\n/** 未対応の Pro 固有キーの警告文(実装の名を出さない)。 */\nexport function unsupportedKeyMessage(\n key: { attr?: string; prop: string },\n via: \"attribute\" | \"property\",\n tagName: string = MAPLAT_APP_TAG\n): string {\n return via === \"attribute\"\n ? `<${tagName}>: ignored unsupported attribute \"${key.attr ?? propToAttributeName(key.prop)}\"`\n : `<${tagName}>: ignored unsupported property \"${key.prop}\"`;\n}\n\n// ---------------------------------------------------------------------------\n// 層 B()の名前の表\n// ---------------------------------------------------------------------------\n\n/** 層 B が自分で持つ属性(層 A へ流すキーは ELEMENT_ATTRIBUTES)。 */\nexport const MAPLAT_UI_ATTRIBUTES: readonly AttrDef[] = [\n { attr: \"lang\", prop: \"lang\", kind: \"string\" },\n { attr: \"enable-share\", prop: \"enableShare\", kind: \"boolean\" },\n { attr: \"enable-border\", prop: \"enableBorder\", kind: \"boolean\" },\n { attr: \"enable-hide-marker\", prop: \"enableHideMarker\", kind: \"boolean\" },\n { attr: \"enable-marker-list\", prop: \"enableMarkerList\", kind: \"boolean\" },\n { attr: \"enable-poi-html-no-scroll\", prop: \"enablePoiHtmlNoScroll\", kind: \"boolean\" },\n { attr: \"presentation-mode\", prop: \"presentationMode\", kind: \"boolean\" },\n { attr: \"state-url\", prop: \"stateUrl\", kind: \"boolean\", startup: true },\n // \"\" と \"true\" は true(既定のパス)・\"false\" は false・それ以外は URL\n { attr: \"pwa-manifest\", prop: \"pwaManifest\", kind: \"boolean-or-string\", startup: true },\n { attr: \"pwa-worker\", prop: \"pwaWorker\", kind: \"string\", startup: true },\n { attr: \"pwa-scope\", prop: \"pwaScope\", kind: \"string\", startup: true },\n { attr: \"app-envelope\", prop: \"appEnvelope\", kind: \"boolean\", startup: true },\n { attr: \"tap-duration\", prop: \"tapDuration\", kind: \"number\", option: \"tapDuration\" },\n { attr: \"tap-ui-vanish\", prop: \"tapUiVanish\", kind: \"boolean\", option: \"tapUIVanish\" },\n { attr: \"set-document-title\", prop: \"setDocumentTitle\", kind: \"boolean\" }\n];\n\n/** 層 B が出すイベント(層 A のイベントは子から泡立って通る)。 */\nexport const MAPLAT_UI_EVENTS = [\"uiReady\"] as const;\n\n/** 層 B の公開メソッド。 */\nexport const MAPLAT_UI_METHODS = [\n \"translateText\",\n \"t\",\n \"setShowBorder\",\n \"setHideMarker\",\n \"openMarker\",\n \"mapsAt\",\n \"getShareUrl\",\n \"showToast\"\n] as const;\n\n// ---------------------------------------------------------------------------\n// 型\n// ---------------------------------------------------------------------------\n\nexport type LngLat = { longitude: number; latitude: number };\nexport type Localized = string | Record;\n\n/** changeViewpoint の detail・viewpoint プロパティ・getViewpoint() の戻り値。 */\nexport interface Viewpoint {\n /** 地図の座標(不透明な値。sysCoord) */\n x: number;\n y: number;\n longitude: number;\n latitude: number;\n mercator_x: number;\n mercator_y: number;\n /** 地図の zoom */\n zoom: number;\n mercZoom: number;\n /** 実世界の方位(度) */\n direction: number;\n /** 画面の回転(度) */\n rotation: number;\n}\n\n/**\n * getMapMeta / mapChanged の MapMeta.iiif。\n * IIIF の Manifest の書誌のうち、表示に使う値だけを持つ(Manifest は取得しない)。\n */\nexport interface MapMetaIiif {\n /** Manifest の URL */\n manifest?: string;\n /** 選んだ canvas の URL */\n canvas?: string;\n /** 地図の画像の URL */\n image?: string;\n /** 書誌を写した日時 */\n copiedAt?: string;\n /** 書誌の表を出すか(アプリの設定で選ぶ。設定が無ければ hidden) */\n display: \"all\" | \"hidden\";\n /** 写した metadata(Manifest と canvas の全件) */\n metadata?: Array<{ from: \"manifest\" | \"canvas\"; label: Localized; value: Localized }>;\n}\n\n/** getMapMeta / mapChanged の detail。 */\nexport interface MapMeta {\n mapID: string;\n label?: Localized;\n title?: Localized;\n officialTitle?: Localized;\n author?: Localized;\n createdAt?: Localized;\n era?: Localized;\n contributor?: Localized;\n mapper?: Localized;\n license?: string;\n dataLicense?: string;\n licenseNote?: Localized;\n dataLicenseNote?: Localized;\n attr?: Localized;\n dataAttr?: Localized;\n reference?: Localized;\n description?: Localized;\n /** IIIF の書誌(地図データに iiif 節があるときだけ) */\n iiif?: MapMetaIiif;\n}\n\n/** listMaps() の要素(設定ファイルの sources の順、使える地図のみ)。 */\nexport interface MapListItem {\n mapID: string;\n label: Localized;\n thumbnail: string | null;\n isBasemap: boolean;\n isOldMap: boolean;\n isOverlay: boolean;\n hasEnvelope: boolean;\n cacheEnable: boolean;\n}\n\nexport interface RestorePosition {\n x?: number;\n y?: number;\n zoom?: number;\n rotation?: number;\n longitude?: number;\n latitude?: number;\n mercZoom?: number;\n direction?: number;\n}\n\n/** 起動時の復元値(restore・initialRestore)。層 B の拡張キーも載る。 */\nexport interface Restore {\n mapID?: string;\n backgroundID?: string;\n position?: RestorePosition;\n transparency?: number;\n hideMarker?: number;\n hideLayer?: string;\n [extension: string]: unknown;\n}\n/** updateState の detail と state プロパティ。 */\nexport type AppState = Restore;\n\nexport interface EnvelopeStroke {\n color: string;\n width?: number;\n lineDash?: [number, number];\n}\n\n/** setEnvelopes の要素。 */\nexport interface EnvelopeSpec {\n /** どの地図の範囲か(現在の古地図なら画像の 4 隅、それ以外は getMapEnvelope の範囲) */\n mapID: string;\n stroke?: EnvelopeStroke;\n /** CSS の色(不透明度を含めてよい) */\n fill?: string;\n}\n\n/** lifecycle:* の detail(要素のイベントには内部の core・mapDivDocument を載せない)。 */\nexport interface LifecycleDetail {\n phaseId: LifecyclePhaseId;\n appData: Readonly> | null;\n}\nexport interface LifecycleErrorDetail {\n phaseId: LifecyclePhaseId;\n error: unknown;\n}\n\n/** sourceLoaded の detail の要素。 */\nexport interface SourceLoadedItem {\n mapID: string | null;\n usable: boolean;\n}\n\n/** getMapTileCacheStatsAsync の戻り値(total を含める)。 */\nexport interface TileCacheStats {\n size?: number;\n count?: number;\n total?: number;\n percent?: number;\n}\nexport type TileCacheProgressType = \"proceed\" | \"finish\" | \"stop\" | \"canceled\";\nexport interface TileCacheProgress {\n size?: number;\n count?: number;\n processed?: number;\n total?: number;\n [key: string]: unknown;\n}\n\n/**\n * POI の画像・動画の 1 件(POI の image / media の要素)。文字列なら src だけを書いた形。\n * 相対の src(\"/\" を含まない名前)は層 B が既定の置き場(img/)の下として読む(旧 ui_utils.resolveRelativeLink)。\n */\nexport type MaplatPoiMedia =\n | string\n | {\n src: string;\n /** \"image\" / \"video\" / \"youtube\" / \"3dmodel\" / \"gaussian\"。無ければ src の拡張子から決める */\n type?: string;\n thumbnail?: string;\n caption?: Localized;\n /** caption の旧名 */\n desc?: Localized;\n /** 表示部品(ビューア)に渡す追加の属性等 */\n [key: string]: unknown;\n };\n\n/**\n * POI の datum(clickMarker / clickMarkers の detail・getMarker の戻り値)。\n * 設定ファイル・POI ファイル由来の**信頼できない**値(html・desc はサニタイズしてから描く。url・directgo は\n * http/https だけを通す)。実装は読み込みで正規化する: 座標は lnglat にまとめる(lng/lat/longitude/latitude は\n * 消す)・id と namespaceID を必ず付ける。マーカーの描画のたびに、祖先(POI のレイヤー → 地図 → アプリ)の\n * テンプレートから icon・selectedIcon(iconTemplate / icon)と html・poiStyle(poiTemplate)を補った複製が\n * クリックの detail になる。ここに無いキー(テンプレートが読む独自のキー等)もそのまま載る。\n */\nexport interface MaplatPoi {\n /** レイヤーの中の id(無ければ実装が `${レイヤーのキー}_${連番}` を付ける) */\n id: string | number;\n /** アプリ全体で一意な id(`[名前空間#]id`。selectMarker・openMarker に渡す) */\n namespaceID: string;\n /** 経緯度([経度, 緯度])。地図の座標(x・y)だけで置く POI では要素が undefined のことがある */\n lnglat?: [number, number];\n /** 古地図の画像の座標で置く POI(x・y の両方があれば lnglat より強い) */\n x?: number;\n y?: number;\n name?: Localized;\n desc?: Localized;\n address?: Localized;\n image?: MaplatPoiMedia | MaplatPoiMedia[];\n media?: MaplatPoiMedia | MaplatPoiMedia[];\n /** 吹き出しの本文の HTML(あれば image・media・desc より強い。poiTemplate からも作られる) */\n html?: Localized;\n /** html の表示に添える CSS(poiTemplate と一緒に祖先から補う) */\n poiStyle?: string;\n /** 吹き出しに埋め込む頁の URL(html が無いとき) */\n url?: Localized;\n /** 吹き出しを出さずに遷移する先(blank なら新しいタブ) */\n directgo?: string | { href: string; blank?: boolean };\n /** マーカーの画像の URL(無ければ祖先の iconTemplate・icon、それも無ければ実装の既定のピン) */\n icon?: string;\n selectedIcon?: string;\n [key: string]: unknown;\n}\n\n/**\n * POI のレイヤー(listPoiLayers の要素・getPoiLayer の戻り値。実装確認 1)。アプリのレイヤー(id がそのまま\n * namespaceID)と、地図のレイヤー(namespaceID は `${mapID}#${id}`)がある。main(アプリの既定のレイヤー)は常に在る。\n * 返るのは実装の持つレイヤーそのもの(複製ではない): 書き換えず、表示の切り替えは showPoiLayer / hidePoiLayer を使う。\n */\nexport interface PoiLayer {\n /** レイヤーの中の id(main・設定ファイルのキー) */\n id: string;\n /** アプリ全体で一意な id(showPoiLayer・hidePoiLayer・getPoiLayer・addMarker に渡す) */\n namespaceID: string;\n /** レイヤーの名前(main はアプリの appName。設定ファイルに appName が無ければ無い) */\n name?: Localized;\n /** レイヤーのマーカーの画像(無ければ POI ごと・実装の既定のピン) */\n icon?: string;\n selectedIcon?: string;\n /** 非表示か(無ければ表示) */\n hide?: boolean;\n pois: MaplatPoi[];\n [key: string]: unknown;\n}\n\nexport type GpsResultDetail =\n | { lnglat: [number, number]; acc: number }\n | { error: \"gps_off\" | \"gps_out\" | \"gps_out_hide\" };\nexport type GpsErrorDetail = \"user_gps_deny\" | \"gps_miss\" | \"gps_timeout\";\n\n/** イベント名 → detail の型。 */\nexport interface MaplatAppEventDetailMap {\n \"lifecycle:setting-loaded\": LifecycleDetail;\n \"lifecycle:appdata-ready\": LifecycleDetail;\n \"lifecycle:ui-configure\": LifecycleDetail;\n \"lifecycle:core-dom-ready\": LifecycleDetail;\n \"lifecycle:ui-dom-ready\": LifecycleDetail;\n \"lifecycle:core-ready\": LifecycleDetail;\n \"lifecycle:ui-ready\": LifecycleDetail;\n \"lifecycle:error\": LifecycleErrorDetail;\n sourceLoaded: SourceLoadedItem[];\n mapChanged: MapMeta;\n changeViewpoint: Viewpoint;\n updateState: AppState;\n outOfMap: Record;\n poi_number: number;\n clickMarker: MaplatPoi;\n /** その点に重なるマーカーの全部(先頭が clickMarker と同じ) */\n clickMarkers: MaplatPoi[];\n clickMap: LngLat;\n clickMapXy: [number, number];\n clickMapMerc: [number, number];\n pointerMoveOnMapXy: [number, number];\n pointerMoveOnMapMerc: [number, number];\n gps_request: null | undefined;\n gps_result: GpsResultDetail;\n gps_error: GpsErrorDetail;\n gpsEnabledChanged: { enabled: boolean };\n moveStart: Record;\n moveEnd: Viewpoint | null;\n modechange: { mode: DisplayMode };\n viewchange: { viewState: unknown };\n}\nexport type MaplatAppEvent = CustomEvent;\n\nexport type DisplayMode = \"maplat\" | \"map-warp\";\n\n// ---------------------------------------------------------------------------\n// 層 A の公開面\n// ---------------------------------------------------------------------------\n\n/** 層 A の要素の設定のキー(属性と同期するもの・プロパティのみのもの)。 */\nexport interface MaplatAppElementSettings {\n appId: string | undefined;\n appSrc: string | undefined;\n mapId: string | undefined;\n transparency: number | undefined;\n noRotate: boolean | undefined;\n northUp: boolean | undefined;\n homeMarginPixels: number | undefined;\n alwaysGpsOn: boolean | undefined;\n fake: boolean | undefined;\n enableCache: boolean | undefined;\n restoreSession: boolean | undefined;\n overlay: boolean | undefined;\n debug: boolean | undefined;\n icon: string | undefined;\n selectedIcon: string | undefined;\n noCenterMarker: boolean | undefined;\n centerMarkerSrc: string | undefined;\n hideOutsidePois: boolean | undefined;\n setting: Record | undefined;\n restore: Restore | undefined;\n restoreExtensionKeys: string[] | undefined;\n googleApiKey: string | undefined;\n mapboxToken: string | undefined;\n maplibregl: unknown;\n mapboxgl: unknown;\n uiHooks: Record | undefined;\n appOption: Record | undefined;\n poiTemplate: string | undefined;\n poiStyle: string | undefined;\n iconTemplate: string | undefined;\n}\n\n/** 層 A の状態の読み取り。 */\nexport interface MaplatAppElementState {\n readonly ready: Promise;\n readonly implementation: string;\n readonly version: string;\n readonly appData: Readonly> | null;\n readonly initialRestore: Readonly;\n readonly state: Readonly;\n readonly currentMapId: string | null;\n readonly viewpoint: Viewpoint | null;\n readonly gpsEnabled: boolean;\n}\n\ntype AnyFn = (...args: any[]) => any;\n\n/** 旧クラスから引き継ぐ 46 のメソッド(旧クラスの 44 個+#91 の 2 個)。型を揃えたもの以外は実装の戻り値のまま。 */\nexport interface MaplatAppDelegatedMethods {\n handleGPS: (enable: boolean, avoidEventForOff?: boolean) => any;\n getGPSEnabled: () => boolean;\n getRotation: () => number;\n /** 実世界の方位(度)。旧クラス(Core・Pro とも)が async なので Promise */\n getDirection: () => Promise;\n currentMapInfo: () => any;\n mapInfo: (mapID: string) => any;\n clientPointToLngLat: (clientX: number, clientY: number) => Promise;\n lngLatToClientPoint: (longitude: number, latitude: number) => Promise<{ x: number; y: number } | null>;\n selectMarker: AnyFn;\n unselectMarker: AnyFn;\n /** POI の datum(id か namespaceID で引く)。見つからなければ undefined */\n getMarker: (id: string) => MaplatPoi | undefined;\n updateMarker: AnyFn;\n addMarker: AnyFn;\n removeMarker: AnyFn;\n clearMarker: AnyFn;\n showAllMarkers: AnyFn;\n hideAllMarkers: AnyFn;\n /** POI のレイヤー(アプリのレイヤー → 現在の地図のレイヤー)。hideOnly で非表示のもの、nonzero で POI のあるものだけ */\n listPoiLayers: (hideOnly?: boolean, nonzero?: boolean) => PoiLayer[];\n showPoiLayer: AnyFn;\n hidePoiLayer: AnyFn;\n getPoiLayer: (id: string) => PoiLayer | undefined;\n addPoiLayer: AnyFn;\n removePoiLayer: AnyFn;\n addLine: AnyFn;\n addVector: AnyFn;\n removeVector: AnyFn;\n removeLine: AnyFn;\n clearLine: AnyFn;\n clearVector: AnyFn;\n setGPSMarker: AnyFn;\n changeMap: (mapID: string, restore?: Restore) => Promise;\n requestUpdateState: (partial: Partial) => void;\n setTransparency: (percentage: number) => void;\n getTransparency: () => number;\n setViewpoint: AnyFn;\n goHome: AnyFn;\n resetRotation: AnyFn;\n resetDirection: AnyFn;\n resetCirculation: AnyFn;\n getMapMeta: (mapID?: string) => MapMeta | undefined;\n getMapCacheEnable: (mapID?: string) => boolean;\n getMapTileCacheStatsAsync: (mapID?: string) => Promise;\n getMapTileCacheSizeAsync: (mapID?: string) => Promise;\n clearMapTileCacheAsync: (mapID?: string) => Promise;\n fetchAllMapTileCacheAsync: (\n mapID: string | undefined,\n callback: (type: TileCacheProgressType, detail: TileCacheProgress) => void\n ) => Promise;\n cancelMapTileCacheAsync: (mapID?: string) => Promise;\n}\n\n/** 層 A で新設したメソッド。 */\nexport interface MaplatAppOwnMethods {\n getViewpoint(): Viewpoint | null;\n listMaps(): MapListItem[];\n supports(feature: string): boolean;\n setEnvelopes(items: EnvelopeSpec[]): void;\n getMapEnvelope(mapID: string): LngLat[] | null;\n getViewExtent(): LngLat[] | null;\n zoomBy(delta: number): void;\n /**\n * 実装の既定のピンの画像(POI にも祖先にも icon が無いマーカーに地図が描く画像。実装確認 6)。\n * selected なら選択中の画像。地図の準備前でも答える(実装に固定の値)。\n */\n getDefaultPinIcon(selected?: boolean): string;\n}\n\n/** Pro 固有のメソッド。supports(\"display-mode\") が真の実装だけが持つ。 */\nexport interface MaplatAppProMethods {\n setDisplayMode(mode: DisplayMode): Promise;\n getDisplayMode(): DisplayMode | null;\n}\n\n/** 層 A の公開面(``)。 */\nexport interface MaplatAppElement\n extends HTMLElement,\n MaplatAppElementSettings,\n MaplatAppElementState,\n MaplatAppDelegatedMethods,\n MaplatAppOwnMethods {}\n\n// ---------------------------------------------------------------------------\n// 層 B の公開面\n// ---------------------------------------------------------------------------\n\n/**\n * 層 B の公開面(``)。\n * 注: 文言の訳のメソッドは translateText(HTMLElement の translate=真偽のグローバル属性の\n * プロパティと衝突させない)。旧クラス MaplatUi のメソッド名は translate のまま(人間の決定: 互換を壊さない)。\n */\nexport interface MaplatUiElement extends HTMLElement {\n lang: string;\n enableShare: boolean | undefined;\n enableBorder: boolean | undefined;\n enableHideMarker: boolean | undefined;\n enableMarkerList: boolean | undefined;\n enablePoiHtmlNoScroll: boolean | undefined;\n presentationMode: boolean | undefined;\n stateUrl: boolean | undefined;\n pwaManifest: string | boolean | undefined;\n pwaWorker: string | undefined;\n pwaScope: string | undefined;\n appEnvelope: boolean | undefined;\n tapDuration: number | undefined;\n tapUiVanish: boolean | undefined;\n setDocumentTitle: boolean | undefined;\n restore: Restore | undefined;\n appOption: Record | undefined;\n\n readonly ready: Promise;\n readonly implementation: \"ui\" | \"ui-pro\";\n readonly version: string;\n readonly app: MaplatAppElement | null;\n readonly currentLang: string;\n\n translateText(fragment?: Localized): string | undefined;\n t(key: string, option?: object): string;\n setShowBorder(flag: boolean): void;\n setHideMarker(flag: boolean): void;\n openMarker(id: string): void;\n mapsAt(point: LngLat, threshold?: number): Promise;\n getShareUrl(type: \"app\" | \"view\"): string;\n showToast(message: string, target?: HTMLElement): void;\n}\n\n// ---------------------------------------------------------------------------\n// 型ガード(適合テストの detail の検査に使う)\n// ---------------------------------------------------------------------------\n\nconst isNum = (v: unknown): v is number => typeof v === \"number\" && Number.isFinite(v);\nconst isLocalized = (v: unknown) =>\n typeof v === \"string\" || (!!v && typeof v === \"object\" && Object.values(v as object).every(x => typeof x === \"string\"));\n\nexport function isLngLat(v: unknown): v is LngLat {\n const o = v as LngLat;\n return !!o && typeof o === \"object\" && isNum(o.longitude) && isNum(o.latitude);\n}\n\nexport function isViewpoint(v: unknown): v is Viewpoint {\n const o = v as Record;\n if (!o || typeof o !== \"object\") return false;\n return [\"x\", \"y\", \"longitude\", \"latitude\", \"mercator_x\", \"mercator_y\", \"zoom\", \"mercZoom\", \"direction\", \"rotation\"].every(\n k => isNum(o[k])\n );\n}\n\nexport function isMapMeta(v: unknown): v is MapMeta {\n const o = v as MapMeta;\n return !!o && typeof o === \"object\" && typeof o.mapID === \"string\" && (o.label === undefined || isLocalized(o.label));\n}\n\n/** IIIF の書誌の写し(iiif.copiedMetadata)の要素の形。 */\nexport function isIiifMetadataEntry(\n v: unknown\n): v is { from: \"manifest\" | \"canvas\"; label: Localized; value: Localized } {\n const o = v as Record;\n if (!o || typeof o !== \"object\" || Array.isArray(o)) return false;\n // isLocalized は文字列の配列も通すので、ここでは配列を弾く(訳の関数に配列を渡さないため)\n if (Array.isArray(o.label) || Array.isArray(o.value)) return false;\n return (o.from === \"manifest\" || o.from === \"canvas\") && isLocalized(o.label) && isLocalized(o.value);\n}\n\nexport function isMapListItem(v: unknown): v is MapListItem {\n const o = v as MapListItem;\n return (\n !!o &&\n typeof o === \"object\" &&\n typeof o.mapID === \"string\" &&\n isLocalized(o.label) &&\n (o.thumbnail === null || typeof o.thumbnail === \"string\") &&\n [\"isBasemap\", \"isOldMap\", \"isOverlay\", \"hasEnvelope\", \"cacheEnable\"].every(\n k => typeof (o as unknown as Record)[k] === \"boolean\"\n )\n );\n}\n\nconst isOptionalLocalized = (v: unknown) => v === undefined || isLocalized(v);\nconst isPoiMedia = (v: unknown) =>\n typeof v === \"string\" || (!!v && typeof v === \"object\" && typeof (v as { src?: unknown }).src === \"string\");\nconst isOptionalPoiMedia = (v: unknown) =>\n v === undefined || (Array.isArray(v) ? v.every(isPoiMedia) : isPoiMedia(v));\n\n/** clickMarker の detail・getMarker の戻り値の形(MaplatPoi)。中身の安全さは見ない(描く側が確かめる)。 */\nexport function isMaplatPoi(v: unknown): v is MaplatPoi {\n const o = v as Record;\n if (!o || typeof o !== \"object\" || Array.isArray(o)) return false;\n if (typeof o.namespaceID !== \"string\" || !(typeof o.id === \"string\" || typeof o.id === \"number\")) return false;\n if (o.lnglat !== undefined && !(Array.isArray(o.lnglat) && o.lnglat.length === 2)) return false;\n if (![\"name\", \"desc\", \"address\", \"html\", \"url\"].every(k => isOptionalLocalized(o[k]))) return false;\n if (!isOptionalPoiMedia(o.image) || !isOptionalPoiMedia(o.media)) return false;\n if (![\"icon\", \"selectedIcon\", \"poiStyle\"].every(k => o[k] === undefined || typeof o[k] === \"string\")) return false;\n const go = o.directgo as { href?: unknown } | undefined;\n return go === undefined || typeof go === \"string\" || (!!go && typeof go === \"object\" && typeof go.href === \"string\");\n}\n\n/** listPoiLayers の要素の形(PoiLayer)。POI は isMaplatPoi で見る。 */\nexport function isPoiLayer(v: unknown): v is PoiLayer {\n const o = v as Record;\n if (!o || typeof o !== \"object\" || Array.isArray(o)) return false;\n if (typeof o.id !== \"string\" || typeof o.namespaceID !== \"string\" || o.namespaceID === \"\") return false;\n if (o.name !== undefined && !isLocalized(o.name)) return false;\n if (![\"icon\", \"selectedIcon\"].every(k => o[k] === undefined || typeof o[k] === \"string\")) return false;\n if (o.hide !== undefined && typeof o.hide !== \"boolean\") return false;\n return Array.isArray(o.pois) && o.pois.every(isMaplatPoi);\n}\n\nexport function isSourceLoadedDetail(v: unknown): v is SourceLoadedItem[] {\n return (\n Array.isArray(v) &&\n v.every(\n item =>\n !!item &&\n typeof item === \"object\" &&\n (item.mapID === null || typeof item.mapID === \"string\") &&\n typeof item.usable === \"boolean\"\n )\n );\n}\n\nexport function isLifecycleDetail(v: unknown): v is LifecycleDetail {\n const o = v as Record;\n if (!o || typeof o !== \"object\") return false;\n const keys = Object.keys(o).sort();\n return (\n (LIFECYCLE_PHASES as readonly string[]).includes(o.phaseId as string) &&\n keys.length === 2 &&\n keys[0] === \"appData\" &&\n keys[1] === \"phaseId\"\n );\n}\n","import Weiwudi from \"@c4h/weiwudi\";\r\nimport { MaplatMap } from \"../map_ex\";\r\nimport { Coordinate } from \"ol/coordinate\";\r\nimport { Size } from \"ol/size\";\r\nimport { transform } from \"ol/proj\";\r\nimport TileState from \"ol/TileState\";\r\nimport { canvBase, MERC_CROSSMATRIX, MERC_MAX } from \"../const_ex\";\r\nimport {\r\n zoom2Radius as transformZoom2Radius,\r\n mercViewpoint2Mercs as transformMercViewpoint2Mercs,\r\n mercs2MercViewpoint as transformMercs2MercViewpoint,\r\n rotateMatrix as transformRotateMatrix\r\n} from \"@maplat/transform\";\r\nimport {\r\n addIdToPoi,\r\n normalizeLayer,\r\n normalizeLayers,\r\n normalizePoi\r\n} from \"../normalize_pois\";\r\nimport { normalizeArg } from \"../functions\";\r\nimport { ownEntry } from \"../own-lookup\";\r\nimport {\r\n polygon,\r\n lineString,\r\n centroid,\r\n booleanPointInPolygon,\r\n lineIntersect\r\n} from \"@turf/turf\";\r\nimport type { Feature, Polygon, GeoJsonProperties } from \"geojson\";\r\nimport { View as mlView } from \"../view_ex\";\r\nimport { META_KEYS, META_KEYS_OPTION } from \"../meta_keys\";\r\nimport { isIiifMetadataEntry } from \"../element_contract\";\r\nimport type {\r\n IiifBindings,\r\n IiifMetadataDisplay,\r\n MaplatIiifSection\r\n} from \"../iiif/manifest\";\r\n\r\n//type SourceConstructor = new (...args: any[]) => T;\r\ntype SourceConstructor = new (...args: any[]) => T;\r\ntype ViewpointObject = {\r\n x?: number;\r\n y?: number;\r\n latitude?: number;\r\n longitude?: number;\r\n mercZoom?: number;\r\n zoom?: number;\r\n direction?: number;\r\n rotation?: number;\r\n};\r\nexport type ViewpointArray = [Coordinate?, number?, number?]; // Center, zoom, rotation\r\nexport type CrossCoordinatesArray = [\r\n Coordinate[], // Coordinates of center and around 4 points\r\n Size? // size\r\n];\r\n\r\nfunction isPlainObject(value: unknown): value is Record {\r\n return typeof value === \"object\" && value !== null && !Array.isArray(value);\r\n}\r\n\r\n/**\r\n * 地図データの iiif 節から、形の正しい項目だけを控える。\r\n * オブジェクトでなければ控えない(undefined)。manifest・canvas・image・copiedAt は文字列のときだけ、\r\n * bindings・copiedValues はオブジェクトのときだけ、copiedMetadata は配列のときだけ残す。\r\n * copiedMetadata は要素の形(isIiifMetadataEntry)に合うものだけを順に残し、外した要素があれば\r\n * mapID を渡された呼び出し(initialize)で 1 回だけ警告する。\r\n */\r\nexport function normalizeIiifSection(\r\n value: unknown,\r\n mapID?: string\r\n): MaplatIiifSection | undefined {\r\n if (!isPlainObject(value)) return undefined;\r\n const section: MaplatIiifSection = {};\r\n if (typeof value.manifest === \"string\") section.manifest = value.manifest;\r\n if (typeof value.canvas === \"string\") section.canvas = value.canvas;\r\n if (typeof value.image === \"string\") section.image = value.image;\r\n if (typeof value.copiedAt === \"string\") section.copiedAt = value.copiedAt;\r\n if (isPlainObject(value.bindings)) section.bindings = value.bindings as IiifBindings;\r\n if (isPlainObject(value.copiedValues)) {\r\n section.copiedValues = value.copiedValues as Record>;\r\n }\r\n if (Array.isArray(value.copiedMetadata)) {\r\n const entries = value.copiedMetadata.filter(isIiifMetadataEntry);\r\n const dropped: number = value.copiedMetadata.length - entries.length;\r\n // 警告は initialize の 1 回だけ。getMapMeta は mapID を渡さずに同じ検査を通す(二度目の警告を出さない)\r\n if (dropped > 0 && mapID !== undefined) {\r\n console.warn(\r\n `Maplat: ignored ${dropped} malformed entries in iiif.copiedMetadata (mapID: \"${mapID}\").`\r\n );\r\n }\r\n section.copiedMetadata = entries;\r\n }\r\n return section;\r\n}\r\n\r\n/** アプリの設定の書誌の表の出し方。all・hidden のときだけ控える */\r\nexport function normalizeIiifMetadataDisplay(value: unknown): IiifMetadataDisplay | undefined {\r\n return value === \"all\" || value === \"hidden\" ? value : undefined;\r\n}\r\n\r\nexport function setCustomFunction(Base: TBase) {\r\n abstract class Mixin extends Base {\r\n weiwudi?: Weiwudi;\r\n _map?: MaplatMap;\r\n homePosition?: Coordinate;\r\n mercZoom?: number;\r\n pois: any;\r\n officialTitle = \"\";\r\n title = \"\";\r\n mapID = \"\";\r\n label = \"\";\r\n initialWait?: Promise;\r\n maxZoom?: number;\r\n minZoom?: number;\r\n envelope?: Feature;\r\n centroid?: number[];\r\n homeMarginPixels = 0;\r\n thumbnail?: string;\r\n poiTemplate?: string;\r\n poiStyle?: string;\r\n iconTemplate?: string;\r\n startFrom?: string;\r\n controls?: any[];\r\n northUp?: boolean;\r\n tapDuration?: number;\r\n mercatorXShift = 0;\r\n mercatorYShift = 0;\r\n icon?: string;\r\n selectedIcon?: string;\r\n /** 地図データの iiif 節(IIIF の書誌の写し) */\r\n iiif?: MaplatIiifSection;\r\n /** アプリの設定で選んだ、書誌の表の出し方 */\r\n iiifMetadataDisplay?: IiifMetadataDisplay;\r\n static isBasemap_ = false;\r\n static isWmts_ = true;\r\n static isMapbox_ = false;\r\n static isMapLibre_ = false;\r\n\r\n initialize(options: any) {\r\n options = normalizeArg(options);\r\n this.mapID = options.mapID;\r\n this.homePosition = options.homePosition;\r\n this.mercZoom = options.mercZoom;\r\n this.label = options.label;\r\n this.maxZoom = options.maxZoom;\r\n this.minZoom = options.minZoom;\r\n this.poiTemplate = options.poiTemplate;\r\n this.poiStyle = options.poiStyle;\r\n this.iconTemplate = options.iconTemplate;\r\n this.icon = options.icon;\r\n this.selectedIcon = options.selectedIcon;\r\n this.mercatorXShift = options.mercatorXShift;\r\n this.mercatorYShift = options.mercatorYShift;\r\n this.weiwudi = options.weiwudi;\r\n // IIIF の書誌は取得しない。地図データに書かれた値(とアプリの設定の出し方)を控えるだけ\r\n this.iiif = normalizeIiifSection(options.iiif, this.mapID);\r\n this.iiifMetadataDisplay = normalizeIiifMetadataDisplay(options.iiifMetadata);\r\n if (options.envelopeLngLats) {\r\n const lngLats = options.envelopeLngLats;\r\n const mercs = lngLats.map((lnglat: Coordinate) =>\r\n transform(lnglat, \"EPSG:4326\", \"EPSG:3857\")\r\n );\r\n mercs.push(mercs[0]);\r\n this.envelope = polygon([mercs]) as Feature;\r\n this.centroid = centroid(this.envelope).geometry?.coordinates;\r\n }\r\n\r\n for (let i = 0; i < META_KEYS.length; i++) {\r\n const key = META_KEYS[i];\r\n const option_key = META_KEYS_OPTION[i];\r\n (this as any).set(key, options[option_key] || options[key]);\r\n }\r\n\r\n const thumbWait = options.thumbnail\r\n ? new Promise(resolve => {\r\n this.thumbnail = options.thumbnail;\r\n resolve(undefined);\r\n })\r\n : new Promise(resolve => {\r\n this.thumbnail = `./tmbs/${options.mapID}.jpg`;\r\n fetch(this.thumbnail)\r\n .then(response => {\r\n if (response.ok) {\r\n resolve(undefined);\r\n } else {\r\n this.thumbnail = `./tmbs/${options.mapID}_menu.jpg`;\r\n resolve(undefined);\r\n }\r\n })\r\n .catch(_error => {\r\n this.thumbnail = `./tmbs/${options.mapID}_menu.jpg`;\r\n resolve(undefined);\r\n });\r\n }).catch(_error => {\r\n this.thumbnail = `./tmbs/${options.mapID || options.sourceID}_menu.jpg`;\r\n });\r\n const poisWait = this.resolvePois(options.pois);\r\n this.initialWait = Promise.all([poisWait, thumbWait]);\r\n\r\n setupTileLoadFunction(this);\r\n }\r\n\r\n static isBasemap() {\r\n return this.isBasemap_;\r\n }\r\n\r\n static isWmts() {\r\n return this.isWmts_;\r\n }\r\n\r\n static isMapbox() {\r\n return !!this.isMapbox_;\r\n }\r\n\r\n static isMapLibre() {\r\n return !!this.isMapLibre_;\r\n }\r\n\r\n isBasemap() {\r\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\r\n // @ts-ignore\r\n return this.constructor.isBasemap();\r\n }\r\n\r\n isWmts() {\r\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\r\n // @ts-ignore\r\n return this.constructor.isWmts();\r\n }\r\n\r\n isMapbox() {\r\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\r\n // @ts-ignore\r\n return this.constructor.isMapbox();\r\n }\r\n\r\n isMapLibre() {\r\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\r\n // @ts-ignore\r\n return this.constructor.isMapLibre && this.constructor.isMapLibre();\r\n }\r\n\r\n abstract insideCheckSysCoord(sysCoord: Coordinate): boolean;\r\n\r\n getCacheEnable() {\r\n return !!this.weiwudi;\r\n }\r\n\r\n async getTileCacheStatsAsync() {\r\n if (!this.weiwudi) return {};\r\n try {\r\n const stats = await this.weiwudi.stats();\r\n // 全タイル数 total を含める。Weiwudi の stats は登録時に total が分かった\r\n // ときだけ載せるので、無ければ Weiwudi のインスタンスの totalTile(旧 UI が直接読んでいた値)で補う\r\n const totalTile = (this.weiwudi as any).totalTile;\r\n if (stats && typeof stats === \"object\" && stats.total == null && typeof totalTile === \"number\") {\r\n return { ...stats, total: totalTile };\r\n }\r\n return stats;\r\n } catch (_e) {\r\n return {};\r\n }\r\n }\r\n\r\n async getTileCacheSizeAsync() {\r\n const stats = await this.getTileCacheStatsAsync();\r\n return stats.size || 0;\r\n }\r\n\r\n async fetchAllTileCacheAsync(callback: any) {\r\n if (!this.weiwudi) return;\r\n try {\r\n const listner = (e: any) => {\r\n callback(e.type, e.detail);\r\n };\r\n const deleteListner = (e: any) => {\r\n this.weiwudi!.removeEventListener(\"proceed\", listner);\r\n this.weiwudi!.removeEventListener(\"finish\", deleteListner);\r\n this.weiwudi!.removeEventListener(\"stop\", deleteListner);\r\n this.weiwudi!.removeEventListener(\"canceled\", deleteListner);\r\n listner(e);\r\n };\r\n this.weiwudi.addEventListener(\"proceed\", listner);\r\n this.weiwudi.addEventListener(\"finish\", deleteListner);\r\n this.weiwudi.addEventListener(\"stop\", deleteListner);\r\n this.weiwudi.addEventListener(\"canceled\", deleteListner);\r\n await this.weiwudi.fetchAll();\r\n } catch (_e) {\r\n // Tile cache errors are ignored\r\n }\r\n }\r\n\r\n async cancelTileCacheAsync() {\r\n if (!this.weiwudi) return;\r\n try {\r\n await this.weiwudi.cancel();\r\n } catch (_e) {\r\n // Cancel errors are ignored\r\n }\r\n }\r\n\r\n async clearTileCacheAsync() {\r\n if (!this.weiwudi) return;\r\n try {\r\n await this.weiwudi.clean();\r\n } catch (_e) {\r\n // Clear cache errors are ignored\r\n }\r\n }\r\n\r\n getMap() {\r\n return this._map!;\r\n }\r\n\r\n setMap(map: MaplatMap) {\r\n this._map = map;\r\n }\r\n\r\n // 経緯度lnglat、メルカトルズームmercZoom、地図ズームzoom、方角direction、地図回転rotation等を指定し地図移動\r\n setViewpointRadian(cond: ViewpointObject) {\r\n let merc: Coordinate;\r\n let xy: Coordinate;\r\n const mercZoom = cond.mercZoom;\r\n const zoom = cond.zoom;\r\n const direction = cond.direction;\r\n const rotation = cond.rotation;\r\n const map = this.getMap();\r\n const view = map?.getView();\r\n // oct26-m2-t1: 未確定ガード。非表示コンテナ(寸法 0)では view の resolution が\r\n // NaN になり(OL が viewport size を [0,0] として resolveConstraints を走らせる\r\n // ため)、後続の viewpoint2MercsAsync() が xy2MercWithLayer に NaN を流して\r\n // issue #101 の \"coordinates must contain numbers\" を投げる。コンテナ寸法が無い\r\n // (map size が 0 または未確定)間は変換せず安全に return し、初期視点の適用は\r\n // 可視化時の自己修復(MaplatApp.__applyInitialViewpoint)に委ねる。\r\n const mapSize = map ? map.getSize() : undefined;\r\n if (view && (!mapSize || mapSize[0] <= 0 || mapSize[1] <= 0)) {\r\n return;\r\n }\r\n if (cond.latitude !== undefined && cond.longitude !== undefined) {\r\n merc = transform(\r\n [cond.longitude, cond.latitude],\r\n \"EPSG:4326\",\r\n \"EPSG:3857\"\r\n );\r\n }\r\n if (cond.x !== undefined && cond.y != undefined) {\r\n xy = [cond.x, cond.y];\r\n }\r\n this.viewpoint2MercsAsync()\r\n .then(mercs => this.mercs2MercViewpoint(mercs))\r\n .then(mercViewpoint => {\r\n const mercs = this.mercViewpoint2Mercs([\r\n merc || mercViewpoint[0],\r\n mercZoom || mercViewpoint[1] || 17,\r\n direction != null\r\n ? direction\r\n : rotation != null\r\n ? rotation\r\n : mercViewpoint[2]\r\n ]);\r\n this.mercs2ViewpointAsync(mercs).then(viewpoint => {\r\n if (merc != null) {\r\n view?.setCenter(viewpoint[0]);\r\n } else if (xy != null) {\r\n view?.setCenter(xy);\r\n }\r\n if (mercZoom != null) {\r\n view?.setZoom(viewpoint[1]!);\r\n } else if (zoom != null) {\r\n view?.setZoom(zoom);\r\n }\r\n if (direction != null) {\r\n view?.setRotation(viewpoint[2]!);\r\n } else if (rotation != null) {\r\n view?.setRotation(rotation);\r\n }\r\n });\r\n });\r\n }\r\n\r\n setViewpoint(cond: ViewpointObject) {\r\n const args = { ...cond };\r\n if (args.rotation) {\r\n args.rotation = (args.rotation * Math.PI) / 180;\r\n }\r\n if (args.direction) {\r\n args.direction = (args.direction * Math.PI) / 180;\r\n }\r\n this.setViewpointRadian(args);\r\n }\r\n\r\n abstract defZoom(screenSize?: Size): number;\r\n\r\n goHome() {\r\n const ratio = 1; //window.devicePixelRatio;\r\n const map = this.getMap() as any;\r\n let div = map.getTarget() as any;\r\n if (typeof div === \"string\") {\r\n div = document.getElementById(div);\r\n }\r\n const homeMarginPixels = map.homeMarginPixels;\r\n const screenSize = [\r\n (div.clientWidth - homeMarginPixels - 10) * ratio,\r\n (div.clientHeight - homeMarginPixels - 10) * ratio\r\n ];\r\n\r\n const options = {\r\n longitude: this.homePosition![0],\r\n latitude: this.homePosition![1],\r\n zoom: this.defZoom(screenSize)\r\n } as ViewpointObject;\r\n if (this.getMap().northUp) options.direction = 0;\r\n else options.rotation = 0;\r\n this.setViewpointRadian(options);\r\n }\r\n\r\n resetRotation() {\r\n this.setViewpointRadian({ rotation: 0 });\r\n }\r\n\r\n resetDirection() {\r\n this.setViewpointRadian({ direction: 0 });\r\n }\r\n\r\n resetCirculation() {\r\n if (this.getMap().northUp) this.resetDirection();\r\n else this.resetRotation();\r\n }\r\n\r\n setGPSMarkerAsync(position: any, ignoreMove = false) {\r\n const map = this.getMap();\r\n const view = map?.getView();\r\n if (!position) {\r\n return new Promise((resolve, _reject) => {\r\n map?.setGPSPosition(null);\r\n resolve(true);\r\n });\r\n }\r\n const mercs = this.mercsFromGPSValue(position.lnglat, position.acc);\r\n\r\n return this.mercs2SysCoordsAsync_multiLayer([mercs])\r\n .then(results => {\r\n const hide = !results[0];\r\n const xys = hide ? results[1] : results[0];\r\n // MaplatCore#105: 表示候補が無い(空配列)か、1 位の中心が紙の外なら、前の GPS マーカーを消してから\r\n // false を返す(場所の一意性)。イベントは出さない\r\n if (!xys || !this.insideCheckSysCoord(xys[0][0]!)) {\r\n map?.setGPSPosition(null);\r\n return false;\r\n }\r\n const sub = !hide ? results[1] : null;\r\n const pos: any = { xy: xys[0][0] };\r\n const news = xys[0].slice(1);\r\n\r\n pos.rad = news.reduce(\r\n (prev: number, curr: Coordinate, index: number) => {\r\n const ret =\r\n prev +\r\n Math.sqrt(\r\n Math.pow(curr[0] - pos.xy[0], 2) +\r\n Math.pow(curr[1] - pos.xy[1], 2)\r\n );\r\n return index === 3 ? ret / 4.0 : ret;\r\n },\r\n 0\r\n );\r\n if (!ignoreMove) view?.setCenter(pos.xy);\r\n map?.setGPSPosition(pos, hide ? \"hide\" : null);\r\n if (sub) {\r\n map?.setGPSPosition({ xy: sub[0][0] }, \"sub\");\r\n }\r\n return true;\r\n })\r\n .catch(err => {\r\n throw err;\r\n });\r\n }\r\n\r\n setGPSMarker(position: any, ignoreMove = false) {\r\n // eslint-disable-next-line @typescript-eslint/no-empty-function\r\n this.setGPSMarkerAsync(position, ignoreMove).then(() => { });\r\n }\r\n\r\n mercsFromGPSValue(lnglat: Coordinate, acc: number) {\r\n const merc = transform(lnglat, \"EPSG:4326\", \"EPSG:3857\");\r\n const latrad = (lnglat[1] * Math.PI) / 180;\r\n const delta = acc / Math.cos(latrad);\r\n return MERC_CROSSMATRIX.map(xy => [\r\n xy[0] * delta + merc[0],\r\n xy[1] * delta + merc[1]\r\n ]);\r\n }\r\n\r\n // 与えられた差分行列を回転。theta無指定の場合は自動取得\r\n rotateMatrix(xys: number[][], theta?: number): Coordinate[] {\r\n if (theta === undefined) {\r\n theta = this.getMap().getView().getRotation();\r\n }\r\n return transformRotateMatrix(xys, theta!) as Coordinate[];\r\n }\r\n\r\n async resolvePois(pois?: any) {\r\n this.pois = await normalizeLayers(pois || [], {\r\n name: this.officialTitle || this.title,\r\n namespace: this.mapID\r\n });\r\n }\r\n\r\n getPoi(id: string) {\r\n let ret = undefined;\r\n Object.keys(this.pois).map(key => {\r\n this.pois[key].pois.map((poi: any, i: number) => {\r\n if (poi.id === id) {\r\n ret = this.pois[key].pois[i];\r\n }\r\n });\r\n });\r\n return ret;\r\n }\r\n\r\n addPoi(data: any, clusterId?: string) {\r\n if (!clusterId) {\r\n clusterId = \"main\";\r\n }\r\n const cluster = ownEntry(this.pois, clusterId);\r\n if (cluster) {\r\n data = normalizePoi(data);\r\n cluster[\"pois\"].push(data);\r\n addIdToPoi(this.pois, clusterId, {\r\n name: this.officialTitle || this.title,\r\n namespace: this.mapID\r\n });\r\n return data.namespaceID;\r\n }\r\n }\r\n\r\n removePoi(id: string) {\r\n Object.keys(this.pois).forEach(key => {\r\n const pois = this.pois[key].pois;\r\n // 逆順に回す: splice で後ろが詰まっても、未検査の要素を飛ばさない(#111)\r\n for (let i = pois.length - 1; i >= 0; i--) {\r\n if (pois[i].id === id) {\r\n pois.splice(i, 1);\r\n }\r\n }\r\n });\r\n }\r\n\r\n clearPoi(clusterId?: string) {\r\n if (!clusterId) {\r\n clusterId = \"main\";\r\n }\r\n if (clusterId === \"all\") {\r\n Object.keys(this.pois).map(key => {\r\n this.pois[key][\"pois\"] = [];\r\n });\r\n } else {\r\n const cluster = ownEntry(this.pois, clusterId);\r\n if (cluster) cluster[\"pois\"] = [];\r\n }\r\n }\r\n\r\n listPoiLayers(hideOnly = false, nonzero = false) {\r\n // アルファベット順ソートを廃止し pois 定義順(アプリ設定の並び順)を保持する。\r\n // main レイヤのみ先頭固定。Array.prototype.sort は ES2019+ で stable なので\r\n // 0 を返すペアは Object.keys の挿入順(= normalize_pois の pois 配列順)が保たれる。\r\n return Object.keys(this.pois)\r\n .sort((a, b) => (a === \"main\" ? -1 : b === \"main\" ? 1 : 0))\r\n .map(key => this.pois[key])\r\n .filter(layer =>\r\n nonzero\r\n ? hideOnly\r\n ? layer.pois.length && layer.hide\r\n : layer.pois.length\r\n : hideOnly\r\n ? layer.hide\r\n : true\r\n );\r\n }\r\n\r\n getPoiLayer(id: string) {\r\n return ownEntry(this.pois, id);\r\n }\r\n\r\n addPoiLayer(id: string, data: any) {\r\n if (id === \"main\") return;\r\n if (this.pois[id]) return;\r\n this.pois[id] = normalizeLayer(data || [], id, {\r\n name: this.officialTitle || this.title,\r\n namespace: this.mapID\r\n });\r\n }\r\n\r\n removePoiLayer(id: string) {\r\n if (id === \"main\") return;\r\n if (!this.pois[id]) return;\r\n delete this.pois[id];\r\n }\r\n\r\n // unifyTerm対応\r\n // https://github.com/code4history/MaplatCore/issues/19\r\n\r\n abstract merc2XyAsync(merc: Coordinate): Promise;\r\n abstract merc2XyAsync_ignoreBackground(\r\n merc: Coordinate\r\n ): Promise;\r\n abstract xy2MercAsync(xy: Coordinate): Promise;\r\n abstract xy2SysCoord(xy: Coordinate): Coordinate;\r\n abstract sysCoord2Xy(sysCoord: Coordinate): Coordinate;\r\n abstract viewpoint2MercsAsync(\r\n viewpoint?: ViewpointArray,\r\n size?: Size\r\n ): Promise;\r\n abstract mercs2ViewpointAsync(\r\n mercs: CrossCoordinatesArray\r\n ): Promise;\r\n abstract mercs2SysCoordsAsync_multiLayer(\r\n mercs: CrossCoordinatesArray\r\n ): Promise<(CrossCoordinatesArray | undefined)[]>;\r\n\r\n merc2SysCoordAsync_ignoreBackground(\r\n merc: Coordinate\r\n ): Promise {\r\n return this.merc2XyAsync_ignoreBackground(merc).then(xy =>\r\n xy ? this.xy2SysCoord(xy) : undefined\r\n );\r\n }\r\n\r\n merc2SysCoordAsync(merc: Coordinate): Promise {\r\n return this.merc2XyAsync(merc).then(xy =>\r\n xy ? this.xy2SysCoord(xy) : xy\r\n );\r\n }\r\n\r\n sysCoord2MercAsync(sysCoord: Coordinate): Promise {\r\n const xy = this.sysCoord2Xy(sysCoord);\r\n return this.xy2MercAsync(xy);\r\n }\r\n\r\n // size(画面サイズ)とズームから、地図面座標上での半径を得る。zoom無指定の場合は自動取得\r\n zoom2Radius(size: Size, zoom?: number) {\r\n if (zoom === undefined) {\r\n zoom = (this.getMap().getView() as mlView).getDecimalZoom();\r\n }\r\n return transformZoom2Radius(size as [number, number], zoom!);\r\n }\r\n\r\n // 画面サイズと地図ズームから、地図面座標上での5座標を取得する。zoom, rotate無指定の場合は自動取得\r\n viewpoint2SysCoords(\r\n viewpoint?: ViewpointArray,\r\n size?: Size\r\n ): CrossCoordinatesArray {\r\n return this.mercViewpoint2Mercs(viewpoint, size);\r\n }\r\n\r\n mercViewpoint2Mercs(\r\n viewpoint?: ViewpointArray,\r\n size?: Size\r\n ): CrossCoordinatesArray {\r\n let center = viewpoint ? viewpoint[0] : undefined;\r\n const zoom = viewpoint ? viewpoint[1] : undefined;\r\n const rotate = viewpoint ? viewpoint[2] : undefined;\r\n if (center === undefined) {\r\n center = this.getMap().getView().getCenter();\r\n }\r\n if (size === undefined) {\r\n size = this.getMap().getSize()!;\r\n }\r\n const resolvedZoom =\r\n zoom ?? (this.getMap().getView() as mlView).getDecimalZoom();\r\n const resolvedRotation =\r\n rotate ?? this.getMap().getView().getRotation();\r\n const cross = transformMercViewpoint2Mercs(\r\n center as number[],\r\n resolvedZoom,\r\n resolvedRotation,\r\n size as [number, number]\r\n );\r\n return [cross, size];\r\n }\r\n\r\n // 地図座標5地点情報から地図サイズ情報(中心座標、サイズ、回転)を得る\r\n sysCoords2Viewpoint(sysCoords: CrossCoordinatesArray): ViewpointArray {\r\n return this.mercs2MercViewpoint(sysCoords);\r\n }\r\n\r\n // メルカトル5地点情報からメルカトル地図でのサイズ情報(中心座標、サイズ、回転)を得る\r\n mercs2MercViewpoint(mercs: CrossCoordinatesArray): ViewpointArray {\r\n let size = mercs[1];\r\n if (!size) size = this.getMap().getSize()!;\r\n const result = transformMercs2MercViewpoint(\r\n mercs[0] as number[][],\r\n size as [number, number]\r\n );\r\n return [result.center as Coordinate, result.zoom, result.rotation];\r\n }\r\n\r\n sysCoords2Xys(sysCoords: CrossCoordinatesArray): CrossCoordinatesArray {\r\n return [\r\n sysCoords[0].map(sysCoord => this.sysCoord2Xy(sysCoord)),\r\n sysCoords[1]\r\n ];\r\n }\r\n\r\n xys2SysCoords(xys: CrossCoordinatesArray): CrossCoordinatesArray {\r\n return [xys[0].map(xy => this.xy2SysCoord(xy)), xys[1]];\r\n }\r\n\r\n mercs2XysAsync(\r\n mercs: CrossCoordinatesArray\r\n ): Promise {\r\n return Promise.all(mercs[0].map(merc => this.merc2XyAsync(merc))).then(\r\n xys => [xys, mercs[1]]\r\n );\r\n }\r\n\r\n xys2MercsAsync(xys: CrossCoordinatesArray): Promise {\r\n return Promise.all(xys[0].map(xy => this.xy2MercAsync(xy))).then(\r\n mercs => [mercs, xys[1]]\r\n );\r\n }\r\n\r\n static async createAsync(options: any) {\r\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\r\n // @ts-ignore\r\n return new this(options);\r\n }\r\n }\r\n\r\n return Mixin;\r\n}\r\n\r\nexport function setCustomFunctionBase(Base: TBase) {\r\n abstract class Mixin extends setCustomFunction(Base) {\r\n static isBasemap_ = true;\r\n static isWmts_ = true;\r\n\r\n insideCheckXy(xy: Coordinate) {\r\n if (!this.envelope) return true;\r\n return booleanPointInPolygon(xy, this.envelope);\r\n }\r\n\r\n insideCheckSysCoord(histCoords: Coordinate) {\r\n return this.insideCheckXy(histCoords);\r\n }\r\n\r\n modulateXyInside(xy: any) {\r\n if (!this.centroid) return xy;\r\n const expandLine = lineString([xy, this.centroid]);\r\n const intersect = lineIntersect(this.envelope as any, expandLine as any);\r\n if (intersect.features.length > 0 && intersect.features[0].geometry) {\r\n return intersect.features[0].geometry.coordinates;\r\n } else {\r\n return xy;\r\n }\r\n }\r\n\r\n modulateSysCoordInside(histCoords: any) {\r\n return this.modulateXyInside(histCoords);\r\n }\r\n\r\n // unifyTerm対応\r\n // https://github.com/code4history/MaplatCore/issues/19\r\n\r\n merc2XyAsync(merc: Coordinate): Promise {\r\n return Promise.resolve(merc);\r\n }\r\n\r\n merc2XyAsync_ignoreBackground(merc: Coordinate): Promise {\r\n return this.merc2XyAsync(merc);\r\n }\r\n\r\n xy2MercAsync(xy: Coordinate): Promise {\r\n return Promise.resolve(xy);\r\n }\r\n\r\n xy2SysCoord(xy: Coordinate): Coordinate {\r\n return xy;\r\n }\r\n\r\n sysCoord2Xy(sysCoord: Coordinate): Coordinate {\r\n return sysCoord;\r\n }\r\n\r\n viewpoint2MercsAsync(viewpoint?: ViewpointArray, size?: Size) {\r\n const sysCoords = this.viewpoint2SysCoords(viewpoint, size);\r\n const xys = this.sysCoords2Xys(sysCoords);\r\n return this.xys2MercsAsync(xys);\r\n }\r\n\r\n mercs2ViewpointAsync(mercs: CrossCoordinatesArray): Promise {\r\n return this.mercs2XysAsync(mercs).then(xys => {\r\n const sysCoords = this.xys2SysCoords(xys);\r\n return this.sysCoords2Viewpoint(sysCoords);\r\n });\r\n }\r\n\r\n mercs2SysCoordsAsync_multiLayer(\r\n mercs: CrossCoordinatesArray\r\n ): Promise<(CrossCoordinatesArray | undefined)[]> {\r\n return Promise.all(\r\n mercs[0].map(merc => this.merc2SysCoordAsync(merc))\r\n ).then(xys => [[xys, mercs[1]]]);\r\n }\r\n\r\n defZoom(): number {\r\n return this.mercZoom!;\r\n }\r\n }\r\n return Mixin;\r\n}\r\n\r\nexport function setCustomFunctionOverlay(Base: TBase) {\r\n abstract class Mixin extends setCustomFunction(Base) {\r\n\r\n }\r\n return Mixin;\r\n}\r\n\r\nexport function setCustomFunctionMaplat(Base: TBase) {\r\n abstract class Mixin extends setCustomFunction(Base) {\r\n static isBasemap_ = false;\r\n static isWmts_ = false;\r\n width = 0;\r\n height = 0;\r\n _maxxy = 0;\r\n\r\n insideCheckXy(xy: Coordinate) {\r\n return !(\r\n xy[0] < 0 ||\r\n xy[0] > this.width ||\r\n xy[1] < 0 ||\r\n xy[1] > this.height\r\n );\r\n }\r\n\r\n insideCheckSysCoord(sysCoord: Coordinate) {\r\n return this.insideCheckXy(this.sysCoord2Xy(sysCoord));\r\n }\r\n\r\n modulateXyInside(xy: any) {\r\n const dx = xy[0] / (this.width / 2) - 1;\r\n const dy = xy[1] / (this.height / 2) - 1;\r\n const da = Math.max(Math.abs(dx), Math.abs(dy));\r\n return [\r\n ((dx / da + 1) * this.width) / 2,\r\n ((dy / da + 1) * this.height) / 2\r\n ];\r\n }\r\n\r\n modulateSysCoordInside(histCoords: any) {\r\n const xy = this.sysCoord2Xy(histCoords);\r\n const ret = this.modulateXyInside(xy);\r\n return this.xy2SysCoord(ret);\r\n }\r\n\r\n // unifyTerm対応\r\n // https://github.com/code4history/MaplatCore/issues/19\r\n\r\n xy2SysCoord(xy: Coordinate): Coordinate {\r\n const sysCoordX = (xy[0] * (2 * MERC_MAX)) / this._maxxy - MERC_MAX;\r\n const sysCoordY = -1 * ((xy[1] * (2 * MERC_MAX)) / this._maxxy - MERC_MAX);\r\n return [sysCoordX, sysCoordY];\r\n }\r\n\r\n sysCoord2Xy(sysCoord: Coordinate): Coordinate {\r\n const x = ((sysCoord[0] + MERC_MAX) * this._maxxy) / (2 * MERC_MAX);\r\n const y = ((-sysCoord[1] + MERC_MAX) * this._maxxy) / (2 * MERC_MAX);\r\n return [x, y];\r\n }\r\n\r\n defZoom(screenSize?: Size): number {\r\n const screenWidth = screenSize![0];\r\n const screenHeight = screenSize![1];\r\n const delZoomOfWidth = Math.log2((screenWidth - 10) / this.width);\r\n const delZoomOfHeight = Math.log2((screenHeight - 10) / this.height);\r\n const maxZoom = this.maxZoom!;\r\n let delZoom;\r\n if (delZoomOfHeight > delZoomOfWidth) {\r\n delZoom = delZoomOfHeight;\r\n } else {\r\n delZoom = delZoomOfWidth;\r\n }\r\n return maxZoom + delZoom;\r\n }\r\n }\r\n return Mixin;\r\n}\r\n\r\n\r\n// META_KEYS / META_KEYS_OPTION の正本は src/meta_keys.ts(@maplat/core/common の分割で移した)。\r\n// 従来の import 元(\"./source/mixin\")を壊さないよう、ここから再 export する。\r\nexport { META_KEYS, META_KEYS_OPTION };\r\n\r\n// m6-t6 hotfix → m6-t9 (§3.1 AC2): provider(google/mapbox/maplibre)は Maplat 同梱タイルの\r\n// テンプレート url を持たない。自動補完はもちろん、data.url に手動値が残っていた場合でも\r\n// ol/source/Google 等の baseUrl を汚染しないよう、provider は url/urls の対象から除外する。\r\n// mapSourceFactory(source_ex.ts)と本関数(NowMap/HistMap 経由で mapbox/maplibre にも\r\n// 効く)の両方が同じ判定を用いる必要があるため、ここを正本として export する\r\nexport const isProviderMapType = (maptype?: string) =>\r\n (maptype || '').match(/^(?:google(?:_(?:roadmap|satellite|hybrid|terrain))?|mapbox|maplibre)$/);\r\n\r\nexport function addCommonOptions(options: any) {\r\n options = normalizeArg(options);\r\n if (!options.imageExtension) options.imageExtension = \"jpg\";\r\n if (isProviderMapType(options.maptype)) {\r\n delete options.url;\r\n delete options.urls;\r\n } else if (options.mapID && !options.url && !options.urls) {\r\n options.url = options.tms\r\n ? `tiles/${options.mapID}/{z}/{x}/{-y}.${options.imageExtension}`\r\n : `tiles/${options.mapID}/{z}/{x}/{y}.${options.imageExtension}`;\r\n }\r\n return options;\r\n}\r\n\r\n/*export function setCustomInitialize(this: any, options: any) {\r\n options = normalizeArg(options);\r\n this.mapID = options.mapID;\r\n this.homePosition = options.homePosition;\r\n this.mercZoom = options.mercZoom;\r\n this.label = options.label;\r\n this.maxZoom = options.maxZoom;\r\n this.minZoom = options.minZoom;\r\n this.poiTemplate = options.poiTemplate;\r\n this.poiStyle = options.poiStyle;\r\n this.iconTemplate = options.iconTemplate;\r\n this.icon = options.icon;\r\n this.selectedIcon = options.selectedIcon;\r\n this.mercatorXShift = options.mercatorXShift;\r\n this.mercatorYShift = options.mercatorYShift;\r\n this.weiwudi = options.weiwudi;\r\n if (options.envelopeLngLats) {\r\n const lngLats = options.envelopeLngLats;\r\n const mercs = lngLats.map((lnglat: Coordinate) =>\r\n transform(lnglat, \"EPSG:4326\", \"EPSG:3857\")\r\n );\r\n mercs.push(mercs[0]);\r\n this.envelope = polygon([mercs]);\r\n this.centroid = centroid(this.envelope).geometry?.coordinates;\r\n }\r\n\r\n for (let i = 0; i < META_KEYS.length; i++) {\r\n const key = META_KEYS[i];\r\n const option_key = META_KEYS_OPTION[i];\r\n this[key] = options[option_key] || options[key];\r\n }\r\n\r\n const thumbWait = options.thumbnail\r\n ? new Promise(resolve => {\r\n this.thumbnail = options.thumbnail;\r\n resolve(undefined);\r\n })\r\n : new Promise(resolve => {\r\n this.thumbnail = `./tmbs/${options.mapID}.jpg`;\r\n fetch(this.thumbnail)\r\n .then(response => {\r\n if (response.ok) {\r\n resolve(undefined);\r\n } else {\r\n this.thumbnail = `./tmbs/${options.mapID}_menu.jpg`;\r\n resolve(undefined);\r\n }\r\n })\r\n .catch(_error => {\r\n this.thumbnail = `./tmbs/${options.mapID}_menu.jpg`;\r\n resolve(undefined);\r\n });\r\n }).catch(_error => {\r\n this.thumbnail = `./tmbs/${options.mapID || options.sourceID}_menu.jpg`;\r\n });\r\n const poisWait = this.resolvePois(options.pois);\r\n this.initialWait = Promise.all([poisWait, thumbWait]);\r\n}*/\r\n\r\nexport function setupTileLoadFunction(target: any) {\r\n const self = target;\r\n target.setTileLoadFunction(\r\n (function () {\r\n let numLoadingTiles = 0;\r\n const tileLoadFn = self.getTileLoadFunction();\r\n // #110: 合成中の例外(getContext(\"2d\") が null・drawImage/toDataURL の失敗など)で ERROR になったタイルは、\r\n // 一時的な失敗のことがあるのに 404 と同じく ERROR のまま残り、OL のレンダラは IDLE のタイルしか\r\n // キューに入れないので、原因が解消してもパン・ズームしない限り読み直されない。\r\n // 例外由来に限り、タイルごとに最大 3 回、1/2/4 秒の遅延で OL の ImageTile.load()\r\n // (ERROR → IDLE → LOADING で tileLoadFunction を呼び直す OL 自身の経路)により読み直す。\r\n // 404(0×0・onerror)は今までどおり再試行しない。\r\n const RETRY_DELAYS = [1000, 2000, 4000];\r\n const retryCount = new WeakMap();\r\n let warned = false; // 記録は source ごとに最初の 1 回だけ\r\n const scheduleRetry = function (tile: any, err?: unknown) {\r\n if (!warned) {\r\n warned = true;\r\n console.warn(\r\n \"Maplat: tile composition failed by an exception; retrying (up to 3 times)\",\r\n err\r\n );\r\n }\r\n const n = retryCount.get(tile) ?? 0;\r\n if (n >= RETRY_DELAYS.length) return; // 上限を超えたら ERROR のまま止める\r\n retryCount.set(tile, n + 1);\r\n // タイマーは保持しない。破棄の判定は発火時に行う(残っても高々 7 秒で、何もせずに終わる)\r\n setTimeout(() => {\r\n // 地図が破棄された(target 要素が DOM から外れた)なら読み直さない\r\n const el = self.getMap?.()?.getTargetElement?.();\r\n if (el && !el.isConnected) return;\r\n // その間に読み直された・捨てられた(ERROR でない)なら何もしない\r\n if (tile.getState?.() !== TileState.ERROR) return;\r\n tile.load();\r\n }, RETRY_DELAYS[n]);\r\n };\r\n const tImageLoader = function (\r\n _tileCoord: any,\r\n src: any,\r\n tCanv: any,\r\n sx: any,\r\n sy: any,\r\n sw: any,\r\n sh: any\r\n ) {\r\n return new Promise((resolve, _reject) => {\r\n const loader = function (src: any, fallback: any = undefined) {\r\n if (numLoadingTiles === 0) {\r\n // console.log('loading');\r\n }\r\n ++numLoadingTiles;\r\n const tImage = document.createElement(\"img\");\r\n tImage.crossOrigin = \"Anonymous\";\r\n tImage.onload = tImage.onerror = function () {\r\n // 描画中の例外(getContext(\"2d\") が null・drawImage の失敗など)で resolve が飛ばされると、\r\n // Promise.all が保留のままタイルが LOADING に残り、TileQueue の読込枠が漏れて\r\n // 以後のタイルが読まれなくなる(#109)。例外時も必ず片を決着させ、既存のエラー経路へ流す。\r\n try {\r\n if (tImage.width && tImage.height) {\r\n const ctx = tCanv.getContext(\"2d\");\r\n const dx = sx === 0 ? 256 - sw : 0;\r\n const dy = sy === 0 ? 256 - sh : 0;\r\n sw = sx + sw > tImage.width ? tImage.width - sx : sw;\r\n sh = sy + sh > tImage.height ? tImage.height - sy : sh;\r\n ctx.drawImage(tImage, sx, sy, sw, sh, dx, dy, sw, sh);\r\n resolve(undefined);\r\n } else {\r\n if (fallback) {\r\n loader(fallback);\r\n } else {\r\n resolve(\"tileLoadError\");\r\n //reject('tileLoadError');\r\n }\r\n }\r\n } catch (_err) {\r\n // 例外由来の失敗は、画像の読込失敗(0×0・onerror=\"tileLoadError\")と区別し、\r\n // 回数上限つきの再試行の対象にする(#110)\r\n resolve(\"tileException\");\r\n } finally {\r\n --numLoadingTiles;\r\n if (numLoadingTiles === 0) {\r\n // console.log('idle');\r\n }\r\n }\r\n };\r\n tImage.src = src;\r\n };\r\n\r\n loader(src);\r\n });\r\n };\r\n return function (tile: any, _src: any) {\r\n const zoom = tile.tileCoord[0];\r\n let tileX = tile.tileCoord[1];\r\n let tileY = tile.tileCoord[2];\r\n\r\n let pixelXShift = Math.round(\r\n ((self.mercatorXShift || 0) * 128 * Math.pow(2, zoom)) / MERC_MAX\r\n );\r\n let pixelYShift = Math.round(\r\n ((self.mercatorYShift || 0) * -128 * Math.pow(2, zoom)) / MERC_MAX\r\n );\r\n while (pixelXShift < 0 || pixelXShift >= 256) {\r\n if (pixelXShift < 0) {\r\n pixelXShift = pixelXShift + 256;\r\n tileX++;\r\n } else {\r\n pixelXShift = pixelXShift - 256;\r\n tileX--;\r\n }\r\n }\r\n while (pixelYShift < 0 || pixelYShift >= 256) {\r\n if (pixelYShift < 0) {\r\n pixelYShift = pixelYShift + 256;\r\n tileY++;\r\n } else {\r\n pixelYShift = pixelYShift - 256;\r\n tileY--;\r\n }\r\n }\r\n\r\n const tmp = document.createElement(\"div\");\r\n tmp.innerHTML = canvBase;\r\n const tCanv = tmp.childNodes[0] as HTMLCanvasElement;\r\n\r\n const promises = [\r\n [[zoom, tileX, tileY], 0, 0, 256 - pixelXShift, 256 - pixelYShift]\r\n ];\r\n if (pixelXShift !== 0) {\r\n promises.push([\r\n [zoom, tileX - 1, tileY],\r\n 256 - pixelXShift,\r\n 0,\r\n pixelXShift,\r\n 256 - pixelYShift\r\n ]);\r\n }\r\n if (pixelYShift !== 0) {\r\n promises.push([\r\n [zoom, tileX, tileY - 1],\r\n 0,\r\n 256 - pixelYShift,\r\n 256 - pixelXShift,\r\n pixelYShift\r\n ]);\r\n if (pixelXShift !== 0) {\r\n promises.push([\r\n [zoom, tileX - 1, tileY - 1],\r\n 256 - pixelXShift,\r\n 256 - pixelYShift,\r\n pixelXShift,\r\n pixelYShift\r\n ]);\r\n }\r\n }\r\n\r\n Promise.all(\r\n promises.map(item => {\r\n const url = self.tileUrlFunction(\r\n item[0],\r\n self.tilePixelRatio_,\r\n self.projection_\r\n );\r\n return tImageLoader(\r\n item[0],\r\n url,\r\n tCanv,\r\n item[1],\r\n item[2],\r\n item[3],\r\n item[4]\r\n );\r\n })\r\n )\r\n .then(rets => {\r\n const err = rets.reduce((prev, ret) => prev && ret, true);\r\n if (err) {\r\n // 先に ERROR で決着させ、TileQueue の読込枠を空ける(#109)\r\n tile.handleImageError_();\r\n if (rets.includes(\"tileException\")) scheduleRetry(tile);\r\n } else {\r\n // 一部の片だけが失敗した場合も、今までどおり残りの片で合成する(集約規則は変えない)\r\n const dataUrl = tCanv.toDataURL();\r\n const image = tile.getImage();\r\n image.crossOrigin = null;\r\n tileLoadFn(tile, dataUrl);\r\n retryCount.delete(tile);\r\n }\r\n })\r\n .catch(err => {\r\n // toDataURL・tileLoadFn の例外も例外由来とみなす(canvas のメモリ枯渇は toDataURL でも起こりうる)\r\n tile.handleImageError_();\r\n scheduleRetry(tile, err);\r\n });\r\n };\r\n })()\r\n );\r\n}\r\n"," \r\nimport { XYZ } from \"ol/source\";\r\nimport {\r\n addCommonOptions,\r\n setCustomFunctionBase\r\n} from \"./mixin\";\r\n\r\nexport class NowMap extends setCustomFunctionBase(XYZ) {\r\n constructor(options: any = {}) {\r\n const processedOptions = addCommonOptions(options);\r\n super(processedOptions);\r\n \r\n if (options.mapID) {\r\n this.mapID = options.mapID;\r\n }\r\n \r\n // Override tileUrlFunction to debug zoom levels after super() call\r\n if (options.mapID === 'morioka_ndl_affine') {\r\n const originalTileUrlFunction = this.getTileUrlFunction();\r\n this.setTileUrlFunction((tileCoord: any, pixelRatio: number, projection: any) => {\r\n const url = originalTileUrlFunction(tileCoord, pixelRatio, projection);\r\n // console.log('TMS tile request:', {\r\n // mapID: options.mapID,\r\n // tileCoord: tileCoord,\r\n // url: url,\r\n // z: tileCoord[0]\r\n // });\r\n return url;\r\n });\r\n }\r\n \r\n this.initialize(options);\r\n }\r\n}\r\n","import { NowMap } from \"./nowmap\";\r\n\r\nexport class MapboxMap extends NowMap {\r\n style = \"\";\r\n accessToken = \"\";\r\n mapboxMap: any;\r\n static isMapbox_ = true;\r\n\r\n constructor(options: any = {}) {\r\n super(options);\r\n this.style = options.style;\r\n this.mapboxMap = options.mapboxMap;\r\n this.accessToken = options.accessToken;\r\n }\r\n}\r\n","import { NowMap } from \"./nowmap\";\n\nexport class MapLibreMap extends NowMap {\n style = \"\";\n maplibreMap: any;\n static isMapLibre_ = true;\n\n constructor(options: any = {}) {\n super(options);\n // Use a more appropriate style for Japan\n this.style = options.style || 'https://tile.openstreetmap.jp/styles/osm-bright/style.json';\n this.maplibreMap = options.maplibreMap;\n }\n}","import { Google } from \"ol/source\";\nimport {\n setCustomFunctionBase\n} from \"./mixin\";\n\n/**\n * maptype と layers から Google Maps Tile API の { mapType, layerTypes } を導出する純粋関数。\n * 単体テストの対象として export する(constructor 内インラインでは ol/source/Google が\n * createSession_() → fetch を発火するためテスト不能)。\n *\n * mapType は正規表現派生にしない。google_hybrid を RegExp.$1 で切ると \"hybrid\" になり、\n * Tile API が知らない値になる(マイルストーン設計 §1.2 / §2.1、m6-t4 §4.7)。\n */\nexport function deriveGoogleTileOptions(\n maptype: string | undefined,\n layers: string[] | undefined,\n): { mapType: string; layerTypes: string[] } {\n const GOOGLE_MAPTYPE_TABLE: Record = {\n google_roadmap: { mapType: \"roadmap\", derivedLayers: [] },\n google_satellite: { mapType: \"satellite\", derivedLayers: [] },\n google_hybrid: { mapType: \"satellite\", derivedLayers: [\"layerRoadmap\"] },\n google_terrain: { mapType: \"terrain\", derivedLayers: [\"layerRoadmap\"] },\n };\n\n const entry = maptype ? GOOGLE_MAPTYPE_TABLE[maptype] : undefined;\n const mapType = entry?.mapType ?? \"roadmap\";\n const derivedLayers = entry?.derivedLayers ?? [];\n\n // options.layers と導出分の和集合(重複排除。導出分が先)\n const userLayers = (layers || []).map(\n (layer: string) => `layer${layer.charAt(0).toUpperCase()}${layer.slice(1).toLowerCase()}`\n );\n const layerSet = new Set(derivedLayers);\n for (const l of userLayers) layerSet.add(l);\n\n return { mapType, layerTypes: [...layerSet] };\n}\n\nexport class GoogleMap extends setCustomFunctionBase(Google) {\n constructor(options: any = {}) {\n const parentOptions = Object.assign({}, options);\n const { mapType, layerTypes } = deriveGoogleTileOptions(options.maptype, options.layers);\n parentOptions.mapType = mapType;\n parentOptions.layerTypes = layerTypes;\n super(parentOptions);\n\n if (options.mapID) {\n this.mapID = options.mapID;\n }\n this.initialize(options);\n }\n}\n","/**\n * @module ol/ViewHint\n */\n\n/**\n * @enum {number}\n */\nexport default {\n ANIMATING: 0,\n INTERACTING: 1,\n};\n","/**\n * @module ol/ViewProperty\n */\n\n/**\n * @enum {string}\n */\nexport default {\n CENTER: 'center',\n RESOLUTION: 'resolution',\n ROTATION: 'rotation',\n};\n","/**\n * @module ol/centerconstraint\n */\nimport {clamp} from './math.js';\n\n/**\n * @typedef {function((import(\"./coordinate.js\").Coordinate|undefined), number, import(\"./size.js\").Size, boolean=, Array=): (import(\"./coordinate.js\").Coordinate|undefined)} Type\n */\n\n/**\n * @param {import(\"./extent.js\").Extent} extent Extent.\n * @param {boolean} onlyCenter If true, the constraint will only apply to the view center.\n * @param {boolean} smooth If true, the view will be able to go slightly out of the given extent\n * (only during interaction and animation).\n * @return {Type} The constraint.\n */\nexport function createExtent(extent, onlyCenter, smooth) {\n return (\n /**\n * @param {import(\"./coordinate.js\").Coordinate|undefined} center Center.\n * @param {number|undefined} resolution Resolution.\n * @param {import(\"./size.js\").Size} size Viewport size; unused if `onlyCenter` was specified.\n * @param {boolean} [isMoving] True if an interaction or animation is in progress.\n * @param {Array} [centerShift] Shift between map center and viewport center.\n * @return {import(\"./coordinate.js\").Coordinate|undefined} Center.\n */\n function (center, resolution, size, isMoving, centerShift) {\n if (!center) {\n return undefined;\n }\n if (!resolution && !onlyCenter) {\n return center;\n }\n const viewWidth = onlyCenter ? 0 : size[0] * (resolution ?? 0);\n const viewHeight = onlyCenter ? 0 : size[1] * (resolution ?? 0);\n const shiftX = centerShift ? centerShift[0] : 0;\n const shiftY = centerShift ? centerShift[1] : 0;\n let minX = extent[0] + viewWidth / 2 + shiftX;\n let maxX = extent[2] - viewWidth / 2 + shiftX;\n let minY = extent[1] + viewHeight / 2 + shiftY;\n let maxY = extent[3] - viewHeight / 2 + shiftY;\n\n // note: when zooming out of bounds, min and max values for x and y may\n // end up inverted (min > max); this has to be accounted for\n if (minX > maxX) {\n minX = (maxX + minX) / 2;\n maxX = minX;\n }\n if (minY > maxY) {\n minY = (maxY + minY) / 2;\n maxY = minY;\n }\n\n let x = clamp(center[0], minX, maxX);\n let y = clamp(center[1], minY, maxY);\n\n // during an interaction, allow some overscroll\n if (isMoving && smooth && resolution) {\n const ratio = 30 * resolution;\n x +=\n -ratio * Math.log(1 + Math.max(0, minX - center[0]) / ratio) +\n ratio * Math.log(1 + Math.max(0, center[0] - maxX) / ratio);\n y +=\n -ratio * Math.log(1 + Math.max(0, minY - center[1]) / ratio) +\n ratio * Math.log(1 + Math.max(0, center[1] - maxY) / ratio);\n }\n\n return [x, y];\n }\n );\n}\n\n/**\n * @param {import(\"./coordinate.js\").Coordinate} [center] Center.\n * @return {import(\"./coordinate.js\").Coordinate|undefined} Center.\n */\nexport function none(center) {\n return center;\n}\n","/**\n * @module ol/easing\n */\n\n/**\n * Start slow and speed up.\n * @param {number} t Input between 0 and 1.\n * @return {number} Output between 0 and 1.\n * @api\n */\nexport function easeIn(t) {\n return Math.pow(t, 3);\n}\n\n/**\n * Start fast and slow down.\n * @param {number} t Input between 0 and 1.\n * @return {number} Output between 0 and 1.\n * @api\n */\nexport function easeOut(t) {\n return 1 - easeIn(1 - t);\n}\n\n/**\n * Start slow, speed up, and then slow down again.\n * @param {number} t Input between 0 and 1.\n * @return {number} Output between 0 and 1.\n * @api\n */\nexport function inAndOut(t) {\n return 3 * t * t - 2 * t * t * t;\n}\n\n/**\n * Maintain a constant speed over time.\n * @param {number} t Input between 0 and 1.\n * @return {number} Output between 0 and 1.\n * @api\n */\nexport function linear(t) {\n return t;\n}\n\n/**\n * Start slow, speed up, and at the very end slow down again. This has the\n * same general behavior as {@link module:ol/easing.inAndOut}, but the final\n * slowdown is delayed.\n * @param {number} t Input between 0 and 1.\n * @return {number} Output between 0 and 1.\n * @api\n */\nexport function upAndDown(t) {\n if (t < 0.5) {\n return inAndOut(2 * t);\n }\n return 1 - inAndOut(2 * (t - 0.5));\n}\n","/**\n * @module ol/resolutionconstraint\n */\nimport {linearFindNearest} from './array.js';\nimport {getHeight, getWidth} from './extent.js';\nimport {clamp} from './math.js';\n\n/**\n * @typedef {function((number|undefined), number, import(\"./size.js\").Size, boolean=): (number|undefined)} Type\n */\n\n/**\n * Returns a modified resolution taking into account the viewport size and maximum\n * allowed extent.\n * @param {number} resolution Resolution\n * @param {import(\"./extent.js\").Extent} maxExtent Maximum allowed extent.\n * @param {import(\"./size.js\").Size} viewportSize Viewport size.\n * @param {boolean} showFullExtent Whether to show the full extent.\n * @return {number} Capped resolution.\n */\nfunction getViewportClampedResolution(\n resolution,\n maxExtent,\n viewportSize,\n showFullExtent,\n) {\n const xResolution = getWidth(maxExtent) / viewportSize[0];\n const yResolution = getHeight(maxExtent) / viewportSize[1];\n\n if (showFullExtent) {\n return Math.min(resolution, Math.max(xResolution, yResolution));\n }\n return Math.min(resolution, Math.min(xResolution, yResolution));\n}\n\n/**\n * Returns a modified resolution to be between maxResolution and minResolution while\n * still allowing the value to be slightly out of bounds.\n * Note: the computation is based on the logarithm function (ln):\n * - at 1, ln(x) is 0\n * - above 1, ln(x) keeps increasing but at a much slower pace than x\n * The final result is clamped to prevent getting too far away from bounds.\n * @param {number} resolution Resolution.\n * @param {number} maxResolution Max resolution.\n * @param {number} minResolution Min resolution.\n * @return {number} Smoothed resolution.\n */\nfunction getSmoothClampedResolution(resolution, maxResolution, minResolution) {\n let result = Math.min(resolution, maxResolution);\n const ratio = 50;\n\n result *=\n Math.log(1 + ratio * Math.max(0, resolution / maxResolution - 1)) / ratio +\n 1;\n if (minResolution) {\n result = Math.max(result, minResolution);\n result /=\n Math.log(1 + ratio * Math.max(0, minResolution / resolution - 1)) /\n ratio +\n 1;\n }\n return clamp(result, minResolution / 2, maxResolution * 2);\n}\n\n/**\n * @param {Array} resolutions Resolutions.\n * @param {boolean} [smooth] If true, the view will be able to slightly exceed resolution limits. Default: true.\n * @param {import(\"./extent.js\").Extent} [maxExtent] Maximum allowed extent.\n * @param {boolean} [showFullExtent] If true, allows us to show the full extent. Default: false.\n * @return {Type} Zoom function.\n */\nexport function createSnapToResolutions(\n resolutions,\n smooth,\n maxExtent,\n showFullExtent,\n) {\n smooth = smooth !== undefined ? smooth : true;\n return (\n /**\n * @param {number|undefined} resolution Resolution.\n * @param {number} direction Direction.\n * @param {import(\"./size.js\").Size} size Viewport size.\n * @param {boolean} [isMoving] True if an interaction or animation is in progress.\n * @return {number|undefined} Resolution.\n */\n function (resolution, direction, size, isMoving) {\n if (resolution !== undefined) {\n const maxResolution = resolutions[0];\n const minResolution = resolutions[resolutions.length - 1];\n const cappedMaxRes = maxExtent\n ? getViewportClampedResolution(\n maxResolution,\n maxExtent,\n size,\n !!showFullExtent,\n )\n : maxResolution;\n\n // during interacting or animating, allow intermediary values\n if (isMoving) {\n if (!smooth) {\n return clamp(resolution, minResolution, cappedMaxRes);\n }\n return getSmoothClampedResolution(\n resolution,\n cappedMaxRes,\n minResolution,\n );\n }\n\n const capped = Math.min(cappedMaxRes, resolution);\n const z = Math.floor(linearFindNearest(resolutions, capped, direction));\n if (resolutions[z] > cappedMaxRes && z < resolutions.length - 1) {\n return resolutions[z + 1];\n }\n return resolutions[z];\n }\n return undefined;\n }\n );\n}\n\n/**\n * @param {number} power Power.\n * @param {number} maxResolution Maximum resolution.\n * @param {number} [minResolution] Minimum resolution.\n * @param {boolean} [smooth] If true, the view will be able to slightly exceed resolution limits. Default: true.\n * @param {import(\"./extent.js\").Extent} [maxExtent] Maximum allowed extent.\n * @param {boolean} [showFullExtent] If true, allows us to show the full extent. Default: false.\n * @return {Type} Zoom function.\n */\nexport function createSnapToPower(\n power,\n maxResolution,\n minResolution,\n smooth,\n maxExtent,\n showFullExtent,\n) {\n smooth = smooth !== undefined ? smooth : true;\n minResolution = minResolution !== undefined ? minResolution : 0;\n\n return (\n /**\n * @param {number|undefined} resolution Resolution.\n * @param {number} direction Direction.\n * @param {import(\"./size.js\").Size} size Viewport size.\n * @param {boolean} [isMoving] True if an interaction or animation is in progress.\n * @return {number|undefined} Resolution.\n */\n function (resolution, direction, size, isMoving) {\n if (resolution !== undefined) {\n const cappedMaxRes = maxExtent\n ? getViewportClampedResolution(\n maxResolution,\n maxExtent,\n size,\n !!showFullExtent,\n )\n : maxResolution;\n\n // during interacting or animating, allow intermediary values\n if (isMoving) {\n if (!smooth) {\n return clamp(resolution, minResolution, cappedMaxRes);\n }\n return getSmoothClampedResolution(\n resolution,\n cappedMaxRes,\n minResolution,\n );\n }\n\n const tolerance = 1e-9;\n const minZoomLevel = Math.ceil(\n Math.log(maxResolution / cappedMaxRes) / Math.log(power) - tolerance,\n );\n const offset = -direction * (0.5 - tolerance) + 0.5;\n const capped = Math.min(cappedMaxRes, resolution);\n const cappedZoomLevel = Math.floor(\n Math.log(maxResolution / capped) / Math.log(power) + offset,\n );\n const zoomLevel = Math.max(minZoomLevel, cappedZoomLevel);\n const newResolution = maxResolution / Math.pow(power, zoomLevel);\n return clamp(newResolution, minResolution, cappedMaxRes);\n }\n return undefined;\n }\n );\n}\n\n/**\n * @param {number} maxResolution Max resolution.\n * @param {number} minResolution Min resolution.\n * @param {boolean} [smooth] If true, the view will be able to slightly exceed resolution limits. Default: true.\n * @param {import(\"./extent.js\").Extent} [maxExtent] Maximum allowed extent.\n * @param {boolean} [showFullExtent] If true, allows us to show the full extent. Default: false.\n * @return {Type} Zoom function.\n */\nexport function createMinMaxResolution(\n maxResolution,\n minResolution,\n smooth,\n maxExtent,\n showFullExtent,\n) {\n smooth = smooth !== undefined ? smooth : true;\n\n return (\n /**\n * @param {number|undefined} resolution Resolution.\n * @param {number} direction Direction.\n * @param {import(\"./size.js\").Size} size Viewport size.\n * @param {boolean} [isMoving] True if an interaction or animation is in progress.\n * @return {number|undefined} Resolution.\n */\n function (resolution, direction, size, isMoving) {\n if (resolution !== undefined) {\n const cappedMaxRes = maxExtent\n ? getViewportClampedResolution(\n maxResolution,\n maxExtent,\n size,\n !!showFullExtent,\n )\n : maxResolution;\n\n if (!smooth || !isMoving) {\n return clamp(resolution, minResolution, cappedMaxRes);\n }\n return getSmoothClampedResolution(\n resolution,\n cappedMaxRes,\n minResolution,\n );\n }\n return undefined;\n }\n );\n}\n","/**\n * @module ol/rotationconstraint\n */\nimport {toRadians} from './math.js';\n\n/**\n * @typedef {function((number|undefined), boolean=): (number|undefined)} Type\n */\n\n/**\n * @param {number|undefined} rotation Rotation.\n * @return {number|undefined} Rotation.\n */\nexport function disable(rotation) {\n if (rotation !== undefined) {\n return 0;\n }\n return undefined;\n}\n\n/**\n * @param {number|undefined} rotation Rotation.\n * @return {number|undefined} Rotation.\n */\nexport function none(rotation) {\n if (rotation !== undefined) {\n return rotation;\n }\n return undefined;\n}\n\n/**\n * @param {number} n N.\n * @return {Type} Rotation constraint.\n */\nexport function createSnapToN(n) {\n const theta = (2 * Math.PI) / n;\n return (\n /**\n * @param {number|undefined} rotation Rotation.\n * @param {boolean} [isMoving] True if an interaction or animation is in progress.\n * @return {number|undefined} Rotation.\n */\n function (rotation, isMoving) {\n if (isMoving) {\n return rotation;\n }\n\n if (rotation !== undefined) {\n rotation = Math.floor(rotation / theta + 0.5) * theta;\n return rotation;\n }\n return undefined;\n }\n );\n}\n\n/**\n * @param {number} [tolerance] Tolerance.\n * @return {Type} Rotation constraint.\n */\nexport function createSnapToZero(tolerance) {\n const t = tolerance === undefined ? toRadians(5) : tolerance;\n return (\n /**\n * @param {number|undefined} rotation Rotation.\n * @param {boolean} [isMoving] True if an interaction or animation is in progress.\n * @return {number|undefined} Rotation.\n */\n function (rotation, isMoving) {\n if (isMoving || rotation === undefined) {\n return rotation;\n }\n\n if (Math.abs(rotation) <= t) {\n return 0;\n }\n return rotation;\n }\n );\n}\n","/**\n * @module ol/tilegrid/common\n */\n\n/**\n * Default maximum zoom for default tile grids.\n * @type {number}\n */\nexport const DEFAULT_MAX_ZOOM = 42;\n\n/**\n * Default tile size.\n * @type {number}\n */\nexport const DEFAULT_TILE_SIZE = 256;\n","/**\n * @module ol/View\n */\nimport BaseObject from './Object.js';\nimport ViewHint from './ViewHint.js';\nimport ViewProperty from './ViewProperty.js';\nimport {linearFindNearest} from './array.js';\nimport {assert} from './asserts.js';\nimport {none as centerNone, createExtent} from './centerconstraint.js';\nimport {\n add as addCoordinate,\n equals as coordinatesEqual,\n equals,\n rotate as rotateCoordinate,\n} from './coordinate.js';\nimport {easeOut, inAndOut} from './easing.js';\nimport {\n getCenter,\n getForViewAndSize,\n getHeight,\n getWidth,\n isEmpty,\n} from './extent.js';\nimport {VOID} from './functions.js';\nimport {fromExtent as polygonFromExtent} from './geom/Polygon.js';\nimport {clamp, modulo} from './math.js';\nimport {\n METERS_PER_UNIT,\n createProjection,\n disableCoordinateWarning,\n fromUserCoordinate,\n fromUserExtent,\n getUserProjection,\n toUserCoordinate,\n toUserExtent,\n} from './proj.js';\nimport {\n createMinMaxResolution,\n createSnapToPower,\n createSnapToResolutions,\n} from './resolutionconstraint.js';\nimport {\n createSnapToN,\n createSnapToZero,\n disable,\n none as rotationNone,\n} from './rotationconstraint.js';\nimport {DEFAULT_TILE_SIZE} from './tilegrid/common.js';\n\n/**\n * An animation configuration\n *\n * @typedef {Object} Animation\n * @property {import(\"./coordinate.js\").Coordinate} [sourceCenter] Source center.\n * @property {import(\"./coordinate.js\").Coordinate} [targetCenter] Target center.\n * @property {number} [sourceResolution] Source resolution.\n * @property {number} [targetResolution] Target resolution.\n * @property {number} [sourceRotation] Source rotation.\n * @property {number} [targetRotation] Target rotation.\n * @property {import(\"./coordinate.js\").Coordinate} [anchor] Anchor.\n * @property {number} start Start.\n * @property {number} duration Duration.\n * @property {boolean} complete Complete.\n * @property {function(number):number} easing Easing.\n * @property {function(boolean):void} [callback] Callback.\n */\n\n/**\n * @typedef {Object} Constraints\n * @property {import(\"./centerconstraint.js\").Type} center Center.\n * @property {import(\"./resolutionconstraint.js\").Type} resolution Resolution.\n * @property {import(\"./rotationconstraint.js\").Type} rotation Rotation.\n */\n\n/**\n * @typedef {Object} FitOptions\n * @property {import(\"./size.js\").Size} [size] The size in pixels of the box to\n * fit the extent into. Defaults to the size of the map the view is associated with.\n * If no map or multiple maps are connected to the view, provide the desired box size\n * (e.g. `map.getSize()`).\n * @property {!Array} [padding=[0, 0, 0, 0]] Padding (in pixels) to be\n * cleared inside the view. Values in the array are top, right, bottom and left\n * padding.\n * @property {boolean} [nearest=false] If the view `constrainResolution` option is `true`,\n * get the nearest extent instead of the closest that actually fits the view.\n * @property {number} [minResolution=0] Minimum resolution that we zoom to.\n * @property {number} [maxZoom] Maximum zoom level that we zoom to. If\n * `minResolution` is given, this property is ignored.\n * @property {number} [duration] The duration of the animation in milliseconds.\n * By default, there is no animation to the target extent.\n * @property {function(number):number} [easing] The easing function used during\n * the animation (defaults to {@link module:ol/easing.inAndOut}).\n * The function will be called for each frame with a number representing a\n * fraction of the animation's duration. The function should return a number\n * between 0 and 1 representing the progress toward the destination state.\n * @property {function(boolean):void} [callback] Function called when the view is in\n * its final position. The callback will be called with `true` if the animation\n * series completed on its own or `false` if it was cancelled.\n */\n\n/**\n * @typedef {Object} ViewOptions\n * @property {import(\"./coordinate.js\").Coordinate} [center] The initial center for\n * the view. If a user projection is not set, the coordinate system for the center is\n * specified with the `projection` option. Layer sources will not be fetched if this\n * is not set, but the center can be set later with {@link #setCenter}.\n * @property {boolean|number} [constrainRotation=true] Rotation constraint.\n * `false` means no constraint. `true` means no constraint, but snap to zero\n * near zero. A number constrains the rotation to that number of values. For\n * example, `4` will constrain the rotation to 0, 90, 180, and 270 degrees.\n * @property {boolean} [enableRotation=true] Enable rotation.\n * If `false`, a rotation constraint that always sets the rotation to zero is\n * used. The `constrainRotation` option has no effect if `enableRotation` is\n * `false`.\n * @property {import(\"./extent.js\").Extent} [extent] The extent that constrains the\n * view, in other words, nothing outside of this extent can be visible on the map.\n * @property {boolean} [constrainOnlyCenter=false] If true, the extent\n * constraint will only apply to the view center and not the whole extent.\n * @property {boolean} [smoothExtentConstraint=true] If true, the extent\n * constraint will be applied smoothly, i.e. allow the view to go slightly outside\n * of the given `extent`.\n * @property {number} [maxResolution] The maximum resolution used to determine\n * the resolution constraint. It is used together with `minResolution` (or\n * `maxZoom`) and `zoomFactor`. If unspecified it is calculated in such a way\n * that the projection's validity extent fits in a 256x256 px tile. If the\n * projection is Spherical Mercator (the default) then `maxResolution` defaults\n * to `40075016.68557849 / 256 = 156543.03392804097`.\n * @property {number} [minResolution] The minimum resolution used to determine\n * the resolution constraint. It is used together with `maxResolution` (or\n * `minZoom`) and `zoomFactor`. If unspecified it is calculated assuming 29\n * zoom levels (with a factor of 2). If the projection is Spherical Mercator\n * (the default) then `minResolution` defaults to\n * `40075016.68557849 / 256 / Math.pow(2, 28) = 0.0005831682455839253`.\n * @property {number} [maxZoom=28] The maximum zoom level used to determine the\n * resolution constraint. It is used together with `minZoom` (or\n * `maxResolution`) and `zoomFactor`. Note that if `minResolution` is also\n * provided, it is given precedence over `maxZoom`.\n * @property {number} [minZoom=0] The minimum zoom level used to determine the\n * resolution constraint. It is used together with `maxZoom` (or\n * `minResolution`) and `zoomFactor`. Note that if `maxResolution` is also\n * provided, it is given precedence over `minZoom`.\n * @property {boolean} [multiWorld=false] If `false` the view is constrained so\n * only one world is visible, and you cannot pan off the edge. If `true` the map\n * may show multiple worlds at low zoom levels. Only used if the `projection` is\n * global. Note that if `extent` is also provided it is given precedence.\n * @property {boolean} [constrainResolution=false] If true, the view will always\n * animate to the closest zoom level after an interaction; false means\n * intermediary zoom levels are allowed.\n * @property {boolean} [smoothResolutionConstraint=true] If true, the resolution\n * min/max values will be applied smoothly, i. e. allow the view to exceed slightly\n * the given resolution or zoom bounds.\n * @property {boolean} [showFullExtent=false] Allow the view to be zoomed out to\n * show the full configured extent. By default, when a view is configured with an\n * extent, users will not be able to zoom out so the viewport exceeds the extent in\n * either dimension. This means the full extent may not be visible if the viewport\n * is taller or wider than the aspect ratio of the configured extent. If\n * showFullExtent is true, the user will be able to zoom out so that the viewport\n * exceeds the height or width of the configured extent, but not both, allowing the\n * full extent to be shown.\n * @property {import(\"./proj.js\").ProjectionLike} [projection='EPSG:3857'] The\n * projection. The default is Spherical Mercator.\n * @property {number} [resolution] The initial resolution for the view. The\n * units are `projection` units per pixel (e.g. meters per pixel). An\n * alternative to setting this is to set `zoom`. Layer sources will not be\n * fetched if neither this nor `zoom` are defined, but they can be set later\n * with {@link #setZoom} or {@link #setResolution}.\n * @property {Array} [resolutions] Resolutions that determine the\n * zoom levels if specified. The index in the array corresponds to the zoom level,\n * therefore the resolution values have to be in descending order. It also constrains\n * the resolution by the minimum and maximum value. If set the `maxResolution`,\n * `minResolution`, `minZoom`, `maxZoom`, and `zoomFactor` options are ignored.\n * @property {number} [rotation=0] The initial rotation for the view in radians\n * (positive rotation clockwise, 0 means North).\n * @property {number} [zoom] Only used if `resolution` is not defined. Zoom\n * level used to calculate the initial resolution for the view.\n * @property {number} [zoomFactor=2] The zoom factor used to compute the\n * corresponding resolution.\n * @property {!Array} [padding=[0, 0, 0, 0]] Padding (in css pixels).\n * If the map viewport is partially covered with other content (overlays) along\n * its edges, this setting allows to shift the center of the viewport away from\n * that content. The order of the values is top, right, bottom, left.\n */\n\n/**\n * @typedef {Object} AnimationOptions\n * @property {import(\"./coordinate.js\").Coordinate} [center] The center of the view at the end of\n * the animation.\n * @property {number} [zoom] The zoom level of the view at the end of the\n * animation. This takes precedence over `resolution`.\n * @property {number} [resolution] The resolution of the view at the end\n * of the animation. If `zoom` is also provided, this option will be ignored.\n * @property {number} [rotation] The rotation of the view at the end of\n * the animation.\n * @property {import(\"./coordinate.js\").Coordinate} [anchor] Optional anchor to remain fixed\n * during a rotation or resolution animation.\n * @property {number} [duration=1000] The duration of the animation in milliseconds.\n * @property {function(number):number} [easing] The easing function used\n * during the animation (defaults to {@link module:ol/easing.inAndOut}).\n * The function will be called for each frame with a number representing a\n * fraction of the animation's duration. The function should return a number\n * between 0 and 1 representing the progress toward the destination state.\n */\n\n/**\n * @typedef {Object} State\n * @property {import(\"./coordinate.js\").Coordinate} center Center (in view projection coordinates).\n * @property {import(\"./proj/Projection.js\").default} projection Projection.\n * @property {number} resolution Resolution.\n * @property {import(\"./coordinate.js\").Coordinate} [nextCenter] The next center during an animation series.\n * @property {number} [nextResolution] The next resolution during an animation series.\n * @property {number} [nextRotation] The next rotation during an animation series.\n * @property {number} rotation Rotation.\n * @property {number} zoom Zoom.\n */\n\n/**\n * Like {@link import(\"./Map.js\").FrameState}, but just `viewState` and `extent`.\n * @typedef {Object} ViewStateLayerStateExtent\n * @property {State} viewState View state.\n * @property {import(\"./extent.js\").Extent} extent Extent (in user projection coordinates).\n * @property {Array} [layerStatesArray] Layer states.\n */\n\n/**\n * Default min zoom level for the map view.\n * @type {number}\n */\nconst DEFAULT_MIN_ZOOM = 0;\n\n/**\n * @typedef {import(\"./ObjectEventType.js\").Types|'change:center'|'change:resolution'|'change:rotation'} ViewObjectEventTypes\n */\n\n/***\n * @template Return\n * @typedef {import(\"./Observable.js\").OnSignature &\n * import(\"./Observable.js\").OnSignature &\n * import(\"./Observable.js\").CombinedOnSignature} ViewOnSignature\n */\n\n/**\n * @classdesc\n * A View object represents a simple 2D view of the map.\n *\n * This is the object to act upon to change the center, resolution,\n * and rotation of the map.\n *\n * A View has a `projection`. The projection determines the\n * coordinate system of the center, and its units determine the units of the\n * resolution (projection units per pixel). The default projection is\n * Web Mercator (EPSG:3857).\n *\n * ### The view states\n *\n * A View is determined by three states: `center`, `resolution`,\n * and `rotation`. Each state has a corresponding getter and setter, e.g.\n * `getCenter` and `setCenter` for the `center` state.\n *\n * The `zoom` state is actually not saved on the view: all computations\n * internally use the `resolution` state. Still, the `setZoom` and `getZoom`\n * methods are available, as well as `getResolutionForZoom` and\n * `getZoomForResolution` to switch from one system to the other.\n *\n * ### The constraints\n *\n * `setCenter`, `setResolution` and `setRotation` can be used to change the\n * states of the view, but any constraint defined in the constructor will\n * be applied along the way.\n *\n * A View object can have a *resolution constraint*, a *rotation constraint*\n * and a *center constraint*.\n *\n * The *resolution constraint* typically restricts min/max values and\n * snaps to specific resolutions. It is determined by the following\n * options: `resolutions`, `maxResolution`, `maxZoom` and `zoomFactor`.\n * If `resolutions` is set, the other three options are ignored. See\n * documentation for each option for more information. By default, the view\n * only has a min/max restriction and allow intermediary zoom levels when\n * pinch-zooming for example.\n *\n * The *rotation constraint* snaps to specific angles. It is determined\n * by the following options: `enableRotation` and `constrainRotation`.\n * By default rotation is allowed and its value is snapped to zero when approaching the\n * horizontal.\n *\n * The *center constraint* is determined by the `extent` option. By\n * default the view center is not constrained at all.\n *\n * ### Changing the view state\n *\n * It is important to note that `setZoom`, `setResolution`, `setCenter` and\n * `setRotation` are subject to the above mentioned constraints. As such, it\n * may sometimes not be possible to know in advance the resulting state of the\n * View. For example, calling `setResolution(10)` does not guarantee that\n * `getResolution()` will return `10`.\n *\n * A consequence of this is that, when applying a delta on the view state, one\n * should use `adjustCenter`, `adjustRotation`, `adjustZoom` and `adjustResolution`\n * rather than the corresponding setters. This will let view do its internal\n * computations. Besides, the `adjust*` methods also take an `anchor`\n * argument which allows specifying an origin for the transformation.\n *\n * ### Interacting with the view\n *\n * View constraints are usually only applied when the view is *at rest*, meaning that\n * no interaction or animation is ongoing. As such, if the user puts the view in a\n * state that is not equivalent to a constrained one (e.g. rotating the view when\n * the snap angle is 0), an animation will be triggered at the interaction end to\n * put back the view to a stable state;\n *\n * @api\n * @extends {BaseObject}\n */\nclass View extends BaseObject {\n /**\n * @param {ViewOptions} [options] View options.\n */\n constructor(options) {\n super();\n\n /***\n * @type {ViewOnSignature}\n */\n this.on;\n\n /***\n * @type {ViewOnSignature}\n */\n this.once;\n\n /***\n * @type {ViewOnSignature}\n */\n this.un;\n\n options = Object.assign({}, options);\n\n /**\n * @private\n * @type {Array}\n */\n this.hints_ = [0, 0];\n\n /**\n * @private\n * @type {Array|null>}\n */\n this.animations_ = [];\n\n /**\n * @private\n * @type {number|undefined}\n */\n this.updateAnimationKey_;\n\n /**\n * @private\n * @const\n * @type {import(\"./proj/Projection.js\").default|null}\n */\n this.projection_ = createProjection(options.projection, 'EPSG:3857');\n\n /**\n * @private\n * @type {import(\"./size.js\").Size}\n */\n this.viewportSize_ = [100, 100];\n\n /**\n * @private\n * @type {import(\"./coordinate.js\").Coordinate|null|undefined}\n */\n this.targetCenter_ = null;\n\n /**\n * @private\n * @type {number|undefined}\n */\n this.targetResolution_;\n\n /**\n * @private\n * @type {number|undefined}\n */\n this.targetRotation_;\n\n /**\n * @private\n * @type {import(\"./coordinate.js\").Coordinate|null}\n */\n this.nextCenter_ = null;\n\n /**\n * @private\n * @type {number}\n */\n this.nextResolution_;\n\n /**\n * @private\n * @type {number}\n */\n this.nextRotation_;\n\n /**\n * @private\n * @type {import(\"./coordinate.js\").Coordinate|undefined}\n */\n this.cancelAnchor_ = undefined;\n\n if (options.projection) {\n disableCoordinateWarning();\n }\n if (options.center) {\n options.center = fromUserCoordinate(\n options.center,\n /** @type {import(\"./proj.js\").ProjectionLike} */ (this.projection_),\n );\n }\n if (options.extent) {\n options.extent = fromUserExtent(\n options.extent,\n /** @type {import(\"./proj.js\").ProjectionLike} */ (this.projection_),\n );\n }\n\n this.applyOptions_(options);\n }\n\n /**\n * Set up the view with the given options.\n * @param {ViewOptions} options View options.\n */\n applyOptions_(options) {\n const properties = /** @type {Object} */ (\n Object.assign({}, options)\n );\n for (const key in ViewProperty) {\n delete properties[key];\n }\n this.setProperties(properties, true);\n\n const resolutionConstraintInfo = createResolutionConstraint(options);\n\n /**\n * @private\n * @type {number}\n */\n this.maxResolution_ = resolutionConstraintInfo.maxResolution;\n\n /**\n * @private\n * @type {number}\n */\n this.minResolution_ = resolutionConstraintInfo.minResolution;\n\n /**\n * @private\n * @type {number}\n */\n this.zoomFactor_ = resolutionConstraintInfo.zoomFactor;\n\n /**\n * @private\n * @type {Array|undefined}\n */\n this.resolutions_ = options.resolutions;\n\n /**\n * @type {Array|undefined}\n * @private\n */\n this.padding_ = options.padding;\n\n /**\n * @private\n * @type {number}\n */\n this.minZoom_ = resolutionConstraintInfo.minZoom;\n\n const centerConstraint = createCenterConstraint(options);\n const resolutionConstraint = resolutionConstraintInfo.constraint;\n const rotationConstraint = createRotationConstraint(options);\n\n /**\n * @private\n * @type {Constraints}\n */\n this.constraints_ = {\n center: centerConstraint,\n resolution: resolutionConstraint,\n rotation: rotationConstraint,\n };\n\n this.setRotation(options.rotation !== undefined ? options.rotation : 0);\n this.setCenterInternal(\n options.center !== undefined ? options.center : null,\n );\n if (options.resolution !== undefined) {\n this.setResolution(options.resolution);\n } else if (options.zoom !== undefined) {\n this.setZoom(options.zoom);\n }\n }\n\n /**\n * Padding (in css pixels).\n * If the map viewport is partially covered with other content (overlays) along\n * its edges, this setting allows to shift the center of the viewport away from that\n * content. The order of the values in the array is top, right, bottom, left.\n * The default is no padding, which is equivalent to `[0, 0, 0, 0]`.\n * @type {Array|undefined}\n * @api\n */\n get padding() {\n return this.padding_;\n }\n set padding(padding) {\n let oldPadding = this.padding_;\n this.padding_ = padding;\n const center = this.getCenterInternal();\n if (center) {\n const newPadding = padding || [0, 0, 0, 0];\n oldPadding = oldPadding || [0, 0, 0, 0];\n const resolution = /** @type {number} */ (this.getResolution());\n const offsetX =\n (resolution / 2) *\n (newPadding[3] - oldPadding[3] + oldPadding[1] - newPadding[1]);\n const offsetY =\n (resolution / 2) *\n (newPadding[0] - oldPadding[0] + oldPadding[2] - newPadding[2]);\n this.setCenterInternal([center[0] + offsetX, center[1] - offsetY]);\n }\n }\n\n /**\n * Get an updated version of the view options used to construct the view. The\n * current resolution (or zoom), center, and rotation are applied to any stored\n * options. The provided options can be used to apply new min/max zoom or\n * resolution limits.\n * @param {ViewOptions} newOptions New options to be applied.\n * @return {ViewOptions} New options updated with the current view state.\n */\n getUpdatedOptions_(newOptions) {\n const options = this.getProperties();\n\n // preserve resolution (or zoom)\n if (options.resolution !== undefined) {\n options.resolution = this.getResolution();\n } else {\n options.zoom = this.getZoom();\n }\n\n // preserve center\n options.center = this.getCenterInternal();\n\n // preserve rotation\n options.rotation = this.getRotation();\n\n return Object.assign({}, options, newOptions);\n }\n\n /**\n * Animate the view. The view's center, zoom (or resolution), and rotation\n * can be animated for smooth transitions between view states. For example,\n * to animate the view to a new zoom level:\n *\n * view.animate({zoom: view.getZoom() + 1});\n *\n * By default, the animation lasts one second and uses in-and-out easing. You\n * can customize this behavior by including `duration` (in milliseconds) and\n * `easing` options (see {@link module:ol/easing}).\n *\n * To chain together multiple animations, call the method with multiple\n * animation objects. For example, to first zoom and then pan:\n *\n * view.animate({zoom: 10}, {center: [0, 0]});\n *\n * If you provide a function as the last argument to the animate method, it\n * will get called at the end of an animation series. The callback will be\n * called with `true` if the animation series completed on its own or `false`\n * if it was cancelled.\n *\n * Animations are cancelled by user interactions (e.g. dragging the map) or by\n * calling `view.setCenter()`, `view.setResolution()`, or `view.setRotation()`\n * (or another method that calls one of these).\n *\n * @param {...(AnimationOptions|function(boolean): void)} var_args Animation\n * options. Multiple animations can be run in series by passing multiple\n * options objects. To run multiple animations in parallel, call the method\n * multiple times. An optional callback can be provided as a final\n * argument. The callback will be called with a boolean indicating whether\n * the animation completed without being cancelled.\n * @api\n */\n animate(var_args) {\n if (this.isDef() && !this.getAnimating()) {\n this.resolveConstraints(0);\n }\n const args = new Array(arguments.length);\n for (let i = 0; i < args.length; ++i) {\n let options = arguments[i];\n if (options.center) {\n options = Object.assign({}, options);\n options.center = fromUserCoordinate(\n options.center,\n this.getProjection(),\n );\n }\n if (options.anchor) {\n options = Object.assign({}, options);\n options.anchor = fromUserCoordinate(\n options.anchor,\n this.getProjection(),\n );\n }\n args[i] = options;\n }\n this.animateInternal.apply(this, args);\n }\n\n /**\n * @param {...(AnimationOptions|function(boolean): void)} var_args Animation options.\n */\n animateInternal(var_args) {\n let animationCount = arguments.length;\n let callback;\n if (\n animationCount > 1 &&\n typeof arguments[animationCount - 1] === 'function'\n ) {\n callback = arguments[animationCount - 1];\n --animationCount;\n }\n\n let i = 0;\n for (; i < animationCount && !this.isDef(); ++i) {\n // if view properties are not yet set, shortcut to the final state\n const state = arguments[i];\n if (state.center) {\n this.setCenterInternal(state.center);\n }\n if (state.zoom !== undefined) {\n this.setZoom(state.zoom);\n } else if (state.resolution) {\n this.setResolution(state.resolution);\n }\n if (state.rotation !== undefined) {\n this.setRotation(state.rotation);\n }\n }\n if (i === animationCount) {\n if (callback) {\n animationCallback(callback, true);\n }\n return;\n }\n\n let start = Date.now();\n let center = /** @type {import(\"./coordinate.js\").Coordinate} */ (\n /** @type {import(\"./coordinate.js\").Coordinate} */ (\n this.targetCenter_\n ).slice()\n );\n let resolution = this.targetResolution_;\n let rotation = /** @type {number} */ (this.targetRotation_);\n const series = [];\n for (; i < animationCount; ++i) {\n const options = /** @type {AnimationOptions} */ (arguments[i]);\n\n const animation = /** @type {Animation} */ ({\n start: start,\n complete: false,\n anchor: options.anchor,\n duration: options.duration !== undefined ? options.duration : 1000,\n easing: options.easing || inAndOut,\n callback: callback,\n });\n\n if (options.center) {\n animation.sourceCenter = center;\n animation.targetCenter = options.center.slice();\n center = animation.targetCenter;\n }\n\n if (options.zoom !== undefined) {\n animation.sourceResolution = resolution;\n animation.targetResolution = this.getResolutionForZoom(options.zoom);\n resolution = animation.targetResolution;\n } else if (options.resolution) {\n animation.sourceResolution = resolution;\n animation.targetResolution = options.resolution;\n resolution = animation.targetResolution;\n }\n\n if (options.rotation !== undefined) {\n animation.sourceRotation = rotation;\n const delta =\n modulo(options.rotation - rotation + Math.PI, 2 * Math.PI) - Math.PI;\n animation.targetRotation = rotation + delta;\n rotation = animation.targetRotation;\n }\n\n // check if animation is a no-op\n if (isNoopAnimation(animation)) {\n animation.complete = true;\n // we still push it onto the series for callback handling\n } else {\n start += animation.duration;\n }\n series.push(animation);\n }\n this.animations_.push(series);\n this.setHint(ViewHint.ANIMATING, 1);\n this.updateAnimations_();\n }\n\n /**\n * Determine if the view is being animated.\n * @return {boolean} The view is being animated.\n * @api\n */\n getAnimating() {\n return this.hints_[ViewHint.ANIMATING] > 0;\n }\n\n /**\n * Determine if the user is interacting with the view, such as panning or zooming.\n * @return {boolean} The view is being interacted with.\n * @api\n */\n getInteracting() {\n return this.hints_[ViewHint.INTERACTING] > 0;\n }\n\n /**\n * Cancel any ongoing animations.\n * @api\n */\n cancelAnimations() {\n this.setHint(ViewHint.ANIMATING, -this.hints_[ViewHint.ANIMATING]);\n let anchor;\n for (let i = 0, ii = this.animations_.length; i < ii; ++i) {\n const series = /** @type {Array} */ (this.animations_[i]);\n if (/** @type {Animation} */ (series[0]).callback) {\n animationCallback(/** @type {Animation} */ (series[0]).callback, false);\n }\n if (!anchor) {\n for (let j = 0, jj = series.length; j < jj; ++j) {\n const animation = series[j];\n if (!animation.complete) {\n anchor = animation.anchor;\n break;\n }\n }\n }\n }\n this.animations_.length = 0;\n this.cancelAnchor_ = anchor;\n this.nextCenter_ = null;\n this.nextResolution_ = NaN;\n this.nextRotation_ = NaN;\n }\n\n /**\n * Update all animations.\n */\n updateAnimations_() {\n if (this.updateAnimationKey_ !== undefined) {\n cancelAnimationFrame(this.updateAnimationKey_);\n this.updateAnimationKey_ = undefined;\n }\n if (!this.getAnimating()) {\n return;\n }\n const now = Date.now();\n let more = false;\n for (let i = this.animations_.length - 1; i >= 0; --i) {\n const series = /** @type {Array} */ (this.animations_[i]);\n let seriesComplete = true;\n for (let j = 0, jj = series.length; j < jj; ++j) {\n const animation = series[j];\n if (animation.complete) {\n continue;\n }\n const elapsed = now - animation.start;\n let fraction =\n animation.duration > 0 ? elapsed / animation.duration : 1;\n if (fraction >= 1) {\n animation.complete = true;\n fraction = 1;\n } else {\n seriesComplete = false;\n }\n const progress = animation.easing(fraction);\n if (animation.sourceCenter) {\n const x0 = animation.sourceCenter[0];\n const y0 = animation.sourceCenter[1];\n const x1 = /** @type {import(\"./coordinate.js\").Coordinate} */ (\n animation.targetCenter\n )[0];\n const y1 = /** @type {import(\"./coordinate.js\").Coordinate} */ (\n animation.targetCenter\n )[1];\n this.nextCenter_ =\n /** @type {import(\"./coordinate.js\").Coordinate} */ (\n animation.targetCenter\n );\n const x = x0 + progress * (x1 - x0);\n const y = y0 + progress * (y1 - y0);\n this.targetCenter_ = [x, y];\n }\n if (animation.sourceResolution && animation.targetResolution) {\n const resolution =\n progress === 1\n ? animation.targetResolution\n : animation.sourceResolution +\n progress *\n (animation.targetResolution - animation.sourceResolution);\n if (animation.anchor) {\n const size = this.getViewportSize_(this.getRotation());\n const constrainedResolution = /** @type {Constraints} */ (\n this.constraints_\n ).resolution(resolution, 0, size, true);\n this.targetCenter_ = this.calculateCenterZoom(\n /** @type {number} */ (constrainedResolution),\n /** @type {import(\"./coordinate.js\").Coordinate} */ (\n animation.anchor\n ),\n );\n }\n this.nextResolution_ = animation.targetResolution;\n this.targetResolution_ = resolution;\n this.applyTargetState_(true);\n }\n if (\n animation.sourceRotation !== undefined &&\n animation.targetRotation !== undefined\n ) {\n const rotation =\n progress === 1\n ? modulo(animation.targetRotation + Math.PI, 2 * Math.PI) -\n Math.PI\n : animation.sourceRotation +\n progress *\n (animation.targetRotation - animation.sourceRotation);\n if (animation.anchor) {\n const constrainedRotation = /** @type {Constraints} */ (\n this.constraints_\n ).rotation(rotation, true);\n this.targetCenter_ = this.calculateCenterRotate(\n /** @type {number} */ (constrainedRotation),\n /** @type {import(\"./coordinate.js\").Coordinate} */ (\n animation.anchor\n ),\n );\n }\n this.nextRotation_ = animation.targetRotation;\n this.targetRotation_ = rotation;\n }\n this.applyTargetState_(true);\n more = true;\n if (!animation.complete) {\n break;\n }\n }\n if (seriesComplete) {\n this.animations_[i] = null;\n this.setHint(ViewHint.ANIMATING, -1);\n this.nextCenter_ = null;\n this.nextResolution_ = NaN;\n this.nextRotation_ = NaN;\n const callback = series[0].callback;\n if (callback) {\n animationCallback(callback, true);\n }\n }\n }\n // prune completed series\n this.animations_ = this.animations_.filter(Boolean);\n if (more && this.updateAnimationKey_ === undefined) {\n this.updateAnimationKey_ = requestAnimationFrame(\n this.updateAnimations_.bind(this),\n );\n }\n }\n\n /**\n * @param {number} rotation Target rotation.\n * @param {import(\"./coordinate.js\").Coordinate} anchor Rotation anchor.\n * @return {import(\"./coordinate.js\").Coordinate|undefined} Center for rotation and anchor.\n */\n calculateCenterRotate(rotation, anchor) {\n let center;\n const currentCenter = this.getCenterInternal();\n if (currentCenter !== undefined) {\n center = [currentCenter[0] - anchor[0], currentCenter[1] - anchor[1]];\n rotateCoordinate(center, rotation - this.getRotation());\n addCoordinate(center, anchor);\n }\n return center;\n }\n\n /**\n * @param {number} resolution Target resolution.\n * @param {import(\"./coordinate.js\").Coordinate} anchor Zoom anchor.\n * @return {import(\"./coordinate.js\").Coordinate|undefined} Center for resolution and anchor.\n */\n calculateCenterZoom(resolution, anchor) {\n let center;\n const currentCenter = this.getCenterInternal();\n const currentResolution = this.getResolution();\n if (currentCenter !== undefined && currentResolution !== undefined) {\n const x =\n anchor[0] -\n (resolution * (anchor[0] - currentCenter[0])) / currentResolution;\n const y =\n anchor[1] -\n (resolution * (anchor[1] - currentCenter[1])) / currentResolution;\n center = [x, y];\n }\n return center;\n }\n\n /**\n * Returns the current viewport size.\n * @private\n * @param {number} [rotation] Take into account the rotation of the viewport when giving the size\n * @return {import(\"./size.js\").Size} Viewport size or `[100, 100]` when no viewport is found.\n */\n getViewportSize_(rotation) {\n const size = this.viewportSize_;\n if (rotation) {\n const w = size[0];\n const h = size[1];\n return [\n Math.abs(w * Math.cos(rotation)) + Math.abs(h * Math.sin(rotation)),\n Math.abs(w * Math.sin(rotation)) + Math.abs(h * Math.cos(rotation)),\n ];\n }\n return size;\n }\n\n /**\n * Stores the viewport size on the view. The viewport size is not read every time from the DOM\n * to avoid performance hit and layout reflow.\n * This should be done on map size change.\n * Note: the constraints are not resolved during an animation to avoid stopping it\n * @param {import(\"./size.js\").Size} [size] Viewport size; if undefined, [100, 100] is assumed\n */\n setViewportSize(size) {\n this.viewportSize_ = Array.isArray(size) ? size.slice() : [100, 100];\n if (!this.getAnimating()) {\n this.resolveConstraints(0);\n }\n }\n\n /**\n * Get the view center.\n * @return {import(\"./coordinate.js\").Coordinate|undefined} The center of the view.\n * @observable\n * @api\n */\n getCenter() {\n const center = this.getCenterInternal();\n if (!center) {\n return center;\n }\n return toUserCoordinate(center, this.getProjection());\n }\n\n /**\n * Get the view center without transforming to user projection.\n * @return {import(\"./coordinate.js\").Coordinate|undefined} The center of the view.\n */\n getCenterInternal() {\n return /** @type {import(\"./coordinate.js\").Coordinate|undefined} */ (\n this.get(ViewProperty.CENTER)\n );\n }\n\n /**\n * @return {Constraints} Constraints.\n */\n getConstraints() {\n return /** @type {Constraints} */ (this.constraints_);\n }\n\n /**\n * @return {boolean} Resolution constraint is set\n */\n getConstrainResolution() {\n return this.get('constrainResolution');\n }\n\n /**\n * @param {Array} [hints] Destination array.\n * @return {Array} Hint.\n */\n getHints(hints) {\n if (hints !== undefined) {\n hints[0] = this.hints_[0];\n hints[1] = this.hints_[1];\n return hints;\n }\n return this.hints_.slice();\n }\n\n /**\n * Calculate the extent for the current view state and the passed box size.\n * @param {import(\"./size.js\").Size} [size] The pixel dimensions of the box\n * into which the calculated extent should fit. Defaults to the size of the\n * map the view is associated with.\n * If no map or multiple maps are connected to the view, provide the desired\n * box size (e.g. `map.getSize()`).\n * @return {import(\"./extent.js\").Extent} Extent.\n * @api\n */\n calculateExtent(size) {\n const extent = this.calculateExtentInternal(size);\n return toUserExtent(extent, this.getProjection());\n }\n\n /**\n * @param {import(\"./size.js\").Size} [size] Box pixel size. If not provided,\n * the map's last known viewport size will be used.\n * @return {import(\"./extent.js\").Extent} Extent.\n */\n calculateExtentInternal(size) {\n size = size || this.getViewportSizeMinusPadding_();\n const center = /** @type {!import(\"./coordinate.js\").Coordinate} */ (\n this.getCenterInternal()\n );\n assert(center, 'The view center is not defined');\n const resolution = /** @type {!number} */ (this.getResolution());\n assert(resolution !== undefined, 'The view resolution is not defined');\n const rotation = /** @type {!number} */ (this.getRotation());\n assert(rotation !== undefined, 'The view rotation is not defined');\n\n return getForViewAndSize(center, resolution, rotation, size);\n }\n\n /**\n * Get the maximum resolution of the view.\n * @return {number} The maximum resolution of the view.\n * @api\n */\n getMaxResolution() {\n return /** @type {number} */ (this.maxResolution_);\n }\n\n /**\n * Get the minimum resolution of the view.\n * @return {number} The minimum resolution of the view.\n * @api\n */\n getMinResolution() {\n return /** @type {number} */ (this.minResolution_);\n }\n\n /**\n * Get the maximum zoom level for the view.\n * @return {number} The maximum zoom level.\n * @api\n */\n getMaxZoom() {\n return /** @type {number} */ (\n this.getZoomForResolution(/** @type {number} */ (this.minResolution_))\n );\n }\n\n /**\n * Set a new maximum zoom level for the view.\n * @param {number} zoom The maximum zoom level.\n * @api\n */\n setMaxZoom(zoom) {\n this.applyOptions_(this.getUpdatedOptions_({maxZoom: zoom}));\n }\n\n /**\n * Get the minimum zoom level for the view.\n * @return {number} The minimum zoom level.\n * @api\n */\n getMinZoom() {\n return /** @type {number} */ (\n this.getZoomForResolution(/** @type {number} */ (this.maxResolution_))\n );\n }\n\n /**\n * Set a new minimum zoom level for the view.\n * @param {number} zoom The minimum zoom level.\n * @api\n */\n setMinZoom(zoom) {\n this.applyOptions_(this.getUpdatedOptions_({minZoom: zoom}));\n }\n\n /**\n * Set whether the view should allow intermediary zoom levels.\n * @param {boolean} enabled Whether the resolution is constrained.\n * @api\n */\n setConstrainResolution(enabled) {\n this.applyOptions_(this.getUpdatedOptions_({constrainResolution: enabled}));\n }\n\n /**\n * Get the view projection.\n * @return {import(\"./proj/Projection.js\").default} The projection of the view.\n * @api\n */\n getProjection() {\n return /** @type {import(\"./proj/Projection.js\").default} */ (\n this.projection_\n );\n }\n\n /**\n * Get the view resolution.\n * @return {number|undefined} The resolution of the view.\n * @observable\n * @api\n */\n getResolution() {\n return /** @type {number|undefined} */ (this.get(ViewProperty.RESOLUTION));\n }\n\n /**\n * Get the resolutions for the view. This returns the array of resolutions\n * passed to the constructor of the View, or undefined if none were given.\n * @return {Array|undefined} The resolutions of the view.\n * @api\n */\n getResolutions() {\n return this.resolutions_;\n }\n\n /**\n * Get the resolution for a provided extent (in map units) and size (in pixels).\n * @param {import(\"./extent.js\").Extent} extent Extent.\n * @param {import(\"./size.js\").Size} [size] Box pixel size.\n * @return {number} The resolution at which the provided extent will render at\n * the given size.\n * @api\n */\n getResolutionForExtent(extent, size) {\n return this.getResolutionForExtentInternal(\n fromUserExtent(extent, this.getProjection()),\n size,\n );\n }\n\n /**\n * Get the resolution for a provided extent (in map units) and size (in pixels).\n * @param {import(\"./extent.js\").Extent} extent Extent.\n * @param {import(\"./size.js\").Size} [size] Box pixel size.\n * @return {number} The resolution at which the provided extent will render at\n * the given size.\n */\n getResolutionForExtentInternal(extent, size) {\n size = size || this.getViewportSizeMinusPadding_();\n const xResolution = getWidth(extent) / size[0];\n const yResolution = getHeight(extent) / size[1];\n return Math.max(xResolution, yResolution);\n }\n\n /**\n * Return a function that returns a value between 0 and 1 for a\n * resolution. Exponential scaling is assumed.\n * @param {number} [power] Power.\n * @return {function(number): number} Resolution for value function.\n */\n getResolutionForValueFunction(power) {\n power = power || 2;\n const maxResolution = /** @type {number} */ (\n this.getConstrainedResolution(/** @type {number} */ (this.maxResolution_))\n );\n const minResolution = /** @type {number} */ (this.minResolution_);\n const max = Math.log(maxResolution / minResolution) / Math.log(power);\n return (\n /**\n * @param {number} value Value.\n * @return {number} Resolution.\n */\n function (value) {\n const resolution = maxResolution / Math.pow(power, value * max);\n return resolution;\n }\n );\n }\n\n /**\n * Get the view rotation.\n * @return {number} The rotation of the view in radians.\n * @observable\n * @api\n */\n getRotation() {\n return /** @type {number} */ (this.get(ViewProperty.ROTATION));\n }\n\n /**\n * Return a function that returns a resolution for a value between\n * 0 and 1. Exponential scaling is assumed.\n * @param {number} [power] Power.\n * @return {function(number): number} Value for resolution function.\n */\n getValueForResolutionFunction(power) {\n const logPower = Math.log(power || 2);\n const maxResolution = /** @type {number} */ (\n this.getConstrainedResolution(/** @type {number} */ (this.maxResolution_))\n );\n const minResolution = /** @type {number} */ (this.minResolution_);\n const max = Math.log(maxResolution / minResolution) / logPower;\n return (\n /**\n * @param {number} resolution Resolution.\n * @return {number} Value.\n */\n function (resolution) {\n const value = Math.log(maxResolution / resolution) / logPower / max;\n return value;\n }\n );\n }\n\n /**\n * Returns the size of the viewport minus padding.\n * @private\n * @param {number} [rotation] Take into account the rotation of the viewport when giving the size\n * @return {import(\"./size.js\").Size} Viewport size reduced by the padding.\n */\n getViewportSizeMinusPadding_(rotation) {\n let size = this.getViewportSize_(rotation);\n const padding = this.padding_;\n if (padding) {\n size = [\n size[0] - padding[1] - padding[3],\n size[1] - padding[0] - padding[2],\n ];\n }\n return size;\n }\n\n /**\n * @return {State} View state.\n */\n getState() {\n const projection = this.getProjection();\n const resolution = this.getResolution();\n const rotation = this.getRotation();\n let center = /** @type {import(\"./coordinate.js\").Coordinate} */ (\n this.getCenterInternal()\n );\n const padding = this.padding_;\n if (padding) {\n const reducedSize = this.getViewportSizeMinusPadding_();\n center = calculateCenterOn(\n center,\n this.getViewportSize_(),\n [reducedSize[0] / 2 + padding[3], reducedSize[1] / 2 + padding[0]],\n /** @type {number} */ (resolution),\n rotation,\n );\n }\n return {\n center: center.slice(0),\n projection: /** @type {import(\"./proj/Projection.js\").default} */ (\n projection !== undefined ? projection : null\n ),\n resolution: /** @type {number} */ (resolution),\n nextCenter:\n /** @type {import(\"./coordinate.js\").Coordinate|undefined} */ (\n /** @type {unknown} */ (this.nextCenter_)\n ),\n nextResolution: this.nextResolution_,\n nextRotation: this.nextRotation_,\n rotation: rotation,\n zoom: /** @type {number} */ (this.getZoom()),\n };\n }\n\n /**\n * @return {ViewStateLayerStateExtent} Like `FrameState`, but just `viewState` and `extent`.\n */\n getViewStateAndExtent() {\n return {\n viewState: this.getState(),\n extent: this.calculateExtent(),\n };\n }\n\n /**\n * Get the current zoom level. This method may return non-integer zoom levels\n * if the view does not constrain the resolution, or if an interaction or\n * animation is underway.\n * @return {number|undefined} Zoom.\n * @api\n */\n getZoom() {\n let zoom;\n const resolution = this.getResolution();\n if (resolution !== undefined) {\n zoom = this.getZoomForResolution(resolution);\n }\n return zoom;\n }\n\n /**\n * Get the zoom level for a resolution.\n * @param {number} resolution The resolution.\n * @return {number|undefined} The zoom level for the provided resolution.\n * @api\n */\n getZoomForResolution(resolution) {\n let offset = this.minZoom_ || 0;\n let max, zoomFactor;\n if (this.resolutions_) {\n const nearest = linearFindNearest(this.resolutions_, resolution, 1);\n offset = nearest;\n max = this.resolutions_[nearest];\n if (nearest == this.resolutions_.length - 1) {\n zoomFactor = 2;\n } else {\n zoomFactor = max / this.resolutions_[nearest + 1];\n }\n } else {\n max = /** @type {number} */ (this.maxResolution_);\n zoomFactor = /** @type {number} */ (this.zoomFactor_);\n }\n return (\n offset +\n Math.log(/** @type {number} */ (max) / resolution) /\n Math.log(/** @type {number} */ (zoomFactor))\n );\n }\n\n /**\n * Get the resolution for a zoom level.\n * @param {number} zoom Zoom level.\n * @return {number} The view resolution for the provided zoom level.\n * @api\n */\n getResolutionForZoom(zoom) {\n if (this.resolutions_?.length) {\n if (this.resolutions_.length === 1) {\n return this.resolutions_[0];\n }\n const baseLevel = clamp(\n Math.floor(zoom),\n 0,\n this.resolutions_.length - 2,\n );\n const zoomFactor =\n this.resolutions_[baseLevel] / this.resolutions_[baseLevel + 1];\n return (\n this.resolutions_[baseLevel] /\n Math.pow(zoomFactor, clamp(zoom - baseLevel, 0, 1))\n );\n }\n return (\n /** @type {number} */ (this.maxResolution_) /\n Math.pow(\n /** @type {number} */ (this.zoomFactor_),\n zoom - /** @type {number} */ (this.minZoom_),\n )\n );\n }\n\n /**\n * Fit the given geometry or extent based on the given map size and border.\n * The size is pixel dimensions of the box to fit the extent into.\n * In most cases you will want to use the map size, that is `map.getSize()`.\n * Takes care of the map angle.\n * @param {import(\"./geom/SimpleGeometry.js\").default|import(\"./extent.js\").Extent} geometryOrExtent The geometry or\n * extent to fit the view to.\n * @param {FitOptions} [options] Options.\n * @api\n */\n fit(geometryOrExtent, options) {\n /** @type {import(\"./geom/SimpleGeometry.js\").default} */\n let geometry;\n assert(\n Array.isArray(geometryOrExtent) ||\n typeof (/** @type {?} */ (geometryOrExtent).getSimplifiedGeometry) ===\n 'function',\n 'Invalid extent or geometry provided as `geometry`',\n );\n if (Array.isArray(geometryOrExtent)) {\n assert(\n !isEmpty(geometryOrExtent),\n 'Cannot fit empty extent provided as `geometry`',\n );\n const extent = fromUserExtent(geometryOrExtent, this.getProjection());\n geometry = polygonFromExtent(extent);\n } else if (geometryOrExtent.getType() === 'Circle') {\n const extent = fromUserExtent(\n geometryOrExtent.getExtent(),\n this.getProjection(),\n );\n geometry = polygonFromExtent(extent);\n geometry.rotate(this.getRotation(), getCenter(extent));\n } else {\n const userProjection = getUserProjection();\n if (userProjection) {\n geometry = /** @type {import(\"./geom/SimpleGeometry.js\").default} */ (\n geometryOrExtent\n .clone()\n .transform(userProjection, this.getProjection())\n );\n } else {\n geometry = geometryOrExtent;\n }\n }\n\n this.fitInternal(geometry, options);\n }\n\n /**\n * Calculate rotated extent\n * @param {import(\"./geom/SimpleGeometry.js\").default} geometry The geometry.\n * @return {import(\"./extent.js\").Extent} The rotated extent for the geometry.\n */\n rotatedExtentForGeometry(geometry) {\n const rotation = this.getRotation();\n const cosAngle = Math.cos(rotation);\n const sinAngle = Math.sin(-rotation);\n const coords = geometry.getFlatCoordinates();\n const stride = geometry.getStride();\n let minRotX = +Infinity;\n let minRotY = +Infinity;\n let maxRotX = -Infinity;\n let maxRotY = -Infinity;\n for (let i = 0, ii = coords.length; i < ii; i += stride) {\n const rotX = coords[i] * cosAngle - coords[i + 1] * sinAngle;\n const rotY = coords[i] * sinAngle + coords[i + 1] * cosAngle;\n minRotX = Math.min(minRotX, rotX);\n minRotY = Math.min(minRotY, rotY);\n maxRotX = Math.max(maxRotX, rotX);\n maxRotY = Math.max(maxRotY, rotY);\n }\n return [minRotX, minRotY, maxRotX, maxRotY];\n }\n\n /**\n * @param {import(\"./geom/SimpleGeometry.js\").default} geometry The geometry.\n * @param {FitOptions} [options] Options.\n */\n fitInternal(geometry, options) {\n options = options || {};\n let size = options.size;\n if (!size) {\n size = this.getViewportSizeMinusPadding_();\n }\n const padding =\n options.padding !== undefined ? options.padding : [0, 0, 0, 0];\n const nearest = options.nearest !== undefined ? options.nearest : false;\n let minResolution;\n if (options.minResolution !== undefined) {\n minResolution = options.minResolution;\n } else if (options.maxZoom !== undefined) {\n minResolution = this.getResolutionForZoom(options.maxZoom);\n } else {\n minResolution = 0;\n }\n\n const rotatedExtent = this.rotatedExtentForGeometry(geometry);\n\n // calculate resolution\n let resolution = this.getResolutionForExtentInternal(rotatedExtent, [\n size[0] - padding[1] - padding[3],\n size[1] - padding[0] - padding[2],\n ]);\n resolution = isNaN(resolution)\n ? minResolution\n : Math.max(resolution, minResolution);\n resolution = /** @type {number} */ (\n this.getConstrainedResolution(resolution, nearest ? 0 : 1)\n );\n\n // calculate center\n const rotation = this.getRotation();\n const sinAngle = Math.sin(rotation);\n const cosAngle = Math.cos(rotation);\n const centerRot = getCenter(rotatedExtent);\n centerRot[0] += ((padding[1] - padding[3]) / 2) * resolution;\n centerRot[1] += ((padding[0] - padding[2]) / 2) * resolution;\n const centerX = centerRot[0] * cosAngle - centerRot[1] * sinAngle;\n const centerY = centerRot[1] * cosAngle + centerRot[0] * sinAngle;\n const center = this.getConstrainedCenter([centerX, centerY], resolution);\n const callback = options.callback ? options.callback : VOID;\n\n if (options.duration !== undefined) {\n this.animateInternal(\n {\n resolution: resolution,\n center: center,\n duration: options.duration,\n easing: options.easing,\n },\n callback,\n );\n } else {\n this.targetResolution_ = resolution;\n this.targetCenter_ = center;\n this.applyTargetState_(false, true);\n animationCallback(callback, true);\n }\n }\n\n /**\n * Center on coordinate and view position.\n * @param {import(\"./coordinate.js\").Coordinate} coordinate Coordinate.\n * @param {import(\"./size.js\").Size} size Box pixel size.\n * @param {import(\"./pixel.js\").Pixel} position Position on the view to center on.\n * @api\n */\n centerOn(coordinate, size, position) {\n this.centerOnInternal(\n fromUserCoordinate(coordinate, this.getProjection()),\n size,\n position,\n );\n }\n\n /**\n * @param {import(\"./coordinate.js\").Coordinate} coordinate Coordinate.\n * @param {import(\"./size.js\").Size} size Box pixel size.\n * @param {import(\"./pixel.js\").Pixel} position Position on the view to center on.\n */\n centerOnInternal(coordinate, size, position) {\n this.setCenterInternal(\n calculateCenterOn(\n coordinate,\n size,\n position,\n /** @type {number} */ (this.getResolution()),\n this.getRotation(),\n ),\n );\n }\n\n /**\n * Calculates the shift between map and viewport center.\n * @param {import(\"./coordinate.js\").Coordinate} center Center.\n * @param {number} resolution Resolution.\n * @param {number} rotation Rotation.\n * @param {import(\"./size.js\").Size} size Size.\n * @return {Array|undefined} Center shift.\n */\n calculateCenterShift(center, resolution, rotation, size) {\n let centerShift;\n const padding = this.padding_;\n if (padding && center) {\n const reducedSize = this.getViewportSizeMinusPadding_(-rotation);\n const shiftedCenter = calculateCenterOn(\n center,\n size,\n [reducedSize[0] / 2 + padding[3], reducedSize[1] / 2 + padding[0]],\n resolution,\n rotation,\n );\n centerShift = [\n center[0] - shiftedCenter[0],\n center[1] - shiftedCenter[1],\n ];\n }\n return centerShift;\n }\n\n /**\n * @return {boolean} Is defined.\n */\n isDef() {\n return !!this.getCenterInternal() && this.getResolution() !== undefined;\n }\n\n /**\n * Adds relative coordinates to the center of the view. Any extent constraint will apply.\n * @param {import(\"./coordinate.js\").Coordinate} deltaCoordinates Relative value to add.\n * @api\n */\n adjustCenter(deltaCoordinates) {\n const center = toUserCoordinate(\n /** @type {import(\"./coordinate.js\").Coordinate} */ (this.targetCenter_),\n this.getProjection(),\n );\n this.setCenter([\n center[0] + deltaCoordinates[0],\n center[1] + deltaCoordinates[1],\n ]);\n }\n\n /**\n * Adds relative coordinates to the center of the view. Any extent constraint will apply.\n * @param {import(\"./coordinate.js\").Coordinate} deltaCoordinates Relative value to add.\n */\n adjustCenterInternal(deltaCoordinates) {\n const center = /** @type {import(\"./coordinate.js\").Coordinate} */ (\n this.targetCenter_\n );\n this.setCenterInternal([\n center[0] + deltaCoordinates[0],\n center[1] + deltaCoordinates[1],\n ]);\n }\n\n /**\n * Multiply the view resolution by a ratio, optionally using an anchor. Any resolution\n * constraint will apply.\n * @param {number} ratio The ratio to apply on the view resolution.\n * @param {import(\"./coordinate.js\").Coordinate} [anchor] The origin of the transformation.\n * @api\n */\n adjustResolution(ratio, anchor) {\n anchor = anchor && fromUserCoordinate(anchor, this.getProjection());\n this.adjustResolutionInternal(ratio, anchor);\n }\n\n /**\n * Multiply the view resolution by a ratio, optionally using an anchor. Any resolution\n * constraint will apply.\n * @param {number} ratio The ratio to apply on the view resolution.\n * @param {import(\"./coordinate.js\").Coordinate} [anchor] The origin of the transformation.\n */\n adjustResolutionInternal(ratio, anchor) {\n const isMoving = this.getAnimating() || this.getInteracting();\n const size = this.getViewportSize_(this.getRotation());\n const newResolution = /** @type {Constraints} */ (\n this.constraints_\n ).resolution(\n /** @type {number} */ (this.targetResolution_) * ratio,\n 0,\n size,\n isMoving,\n );\n\n if (anchor) {\n this.targetCenter_ = this.calculateCenterZoom(\n /** @type {number} */ (newResolution),\n anchor,\n );\n }\n\n this.targetResolution_ =\n /** @type {number} */ (this.targetResolution_) * ratio;\n this.applyTargetState_();\n }\n\n /**\n * Adds a value to the view zoom level, optionally using an anchor. Any resolution\n * constraint will apply.\n * @param {number} delta Relative value to add to the zoom level.\n * @param {import(\"./coordinate.js\").Coordinate} [anchor] The origin of the transformation.\n * @api\n */\n adjustZoom(delta, anchor) {\n this.adjustResolution(\n Math.pow(/** @type {number} */ (this.zoomFactor_), -delta),\n anchor,\n );\n }\n\n /**\n * Adds a value to the view rotation, optionally using an anchor. Any rotation\n * constraint will apply.\n * @param {number} delta Relative value to add to the zoom rotation, in radians.\n * @param {import(\"./coordinate.js\").Coordinate} [anchor] The rotation center.\n * @api\n */\n adjustRotation(delta, anchor) {\n if (anchor) {\n anchor = fromUserCoordinate(anchor, this.getProjection());\n }\n this.adjustRotationInternal(delta, anchor);\n }\n\n /**\n * @param {number} delta Relative value to add to the zoom rotation, in radians.\n * @param {import(\"./coordinate.js\").Coordinate} [anchor] The rotation center.\n */\n adjustRotationInternal(delta, anchor) {\n const isMoving = this.getAnimating() || this.getInteracting();\n const newRotation = /** @type {Constraints} */ (this.constraints_).rotation(\n /** @type {number} */ (this.targetRotation_) + delta,\n isMoving,\n );\n if (anchor) {\n this.targetCenter_ = this.calculateCenterRotate(\n /** @type {number} */ (newRotation),\n anchor,\n );\n }\n this.targetRotation_ = /** @type {number} */ (this.targetRotation_) + delta;\n this.applyTargetState_();\n }\n\n /**\n * Set the center of the current view. Any extent constraint will apply.\n * @param {import(\"./coordinate.js\").Coordinate|undefined} center The center of the view.\n * @observable\n * @api\n */\n setCenter(center) {\n this.setCenterInternal(\n center ? fromUserCoordinate(center, this.getProjection()) : center,\n );\n }\n\n /**\n * Set the center using the view projection (not the user projection).\n * @param {import(\"./coordinate.js\").Coordinate|null|undefined} center The center of the view.\n */\n setCenterInternal(center) {\n this.targetCenter_ = center;\n this.applyTargetState_();\n }\n\n /**\n * @param {import(\"./ViewHint.js\").default} hint Hint.\n * @param {number} delta Delta.\n * @return {number} New value.\n */\n setHint(hint, delta) {\n this.hints_[hint] += delta;\n this.changed();\n return this.hints_[hint];\n }\n\n /**\n * Set the resolution for this view. Any resolution constraint will apply.\n * @param {number|undefined} resolution The resolution of the view.\n * @observable\n * @api\n */\n setResolution(resolution) {\n this.targetResolution_ = resolution;\n this.applyTargetState_();\n }\n\n /**\n * Set the rotation for this view. Any rotation constraint will apply.\n * @param {number} rotation The rotation of the view in radians.\n * @observable\n * @api\n */\n setRotation(rotation) {\n this.targetRotation_ = rotation;\n this.applyTargetState_();\n }\n\n /**\n * Zoom to a specific zoom level. Any resolution constrain will apply.\n * @param {number} zoom Zoom level.\n * @api\n */\n setZoom(zoom) {\n this.setResolution(this.getResolutionForZoom(zoom));\n }\n\n /**\n * Recompute rotation/resolution/center based on target values.\n * Note: we have to compute rotation first, then resolution and center considering that\n * parameters can influence one another in case a view extent constraint is present.\n * @param {boolean} [doNotCancelAnims] Do not cancel animations.\n * @param {boolean} [forceMoving] Apply constraints as if the view is moving.\n * @private\n */\n applyTargetState_(doNotCancelAnims, forceMoving) {\n const isMoving =\n this.getAnimating() || this.getInteracting() || forceMoving;\n\n // compute rotation\n const newRotation = /** @type {Constraints} */ (this.constraints_).rotation(\n /** @type {number} */ (this.targetRotation_),\n isMoving,\n );\n const size = this.getViewportSize_(newRotation);\n const newResolution = /** @type {Constraints} */ (\n this.constraints_\n ).resolution(\n /** @type {number} */ (this.targetResolution_),\n 0,\n size,\n isMoving,\n );\n const newCenter = /** @type {Constraints} */ (this.constraints_).center(\n /** @type {import(\"./coordinate.js\").Coordinate|undefined} */ (\n this.targetCenter_\n ),\n /** @type {number} */ (newResolution),\n size,\n isMoving,\n /** @type {import(\"./coordinate.js\").Coordinate} */ (\n this.calculateCenterShift(\n /** @type {import(\"./coordinate.js\").Coordinate} */ (\n this.targetCenter_\n ),\n /** @type {number} */ (newResolution),\n /** @type {number} */ (newRotation),\n size,\n )\n ),\n );\n\n if (this.get(ViewProperty.ROTATION) !== newRotation) {\n this.set(ViewProperty.ROTATION, newRotation);\n }\n if (this.get(ViewProperty.RESOLUTION) !== newResolution) {\n this.set(ViewProperty.RESOLUTION, newResolution);\n this.set('zoom', this.getZoom(), true);\n }\n if (\n !newCenter ||\n !this.get(ViewProperty.CENTER) ||\n !equals(this.get(ViewProperty.CENTER), newCenter)\n ) {\n this.set(ViewProperty.CENTER, newCenter);\n }\n\n if (this.getAnimating() && !doNotCancelAnims) {\n this.cancelAnimations();\n }\n this.cancelAnchor_ = undefined;\n }\n\n /**\n * If any constraints need to be applied, an animation will be triggered.\n * This is typically done on interaction end.\n * Note: calling this with a duration of 0 will apply the constrained values straight away,\n * without animation.\n * @param {number} [duration] The animation duration in ms.\n * @param {number} [resolutionDirection] Which direction to zoom.\n * @param {import(\"./coordinate.js\").Coordinate} [anchor] The origin of the transformation.\n */\n resolveConstraints(duration, resolutionDirection, anchor) {\n duration = duration !== undefined ? duration : 200;\n const direction = resolutionDirection || 0;\n\n const newRotation = /** @type {Constraints} */ (this.constraints_).rotation(\n /** @type {number} */ (this.targetRotation_),\n );\n const size = this.getViewportSize_(newRotation);\n const newResolution = /** @type {Constraints} */ (\n this.constraints_\n ).resolution(\n /** @type {number} */ (this.targetResolution_),\n direction,\n size,\n );\n const newCenter = /** @type {Constraints} */ (this.constraints_).center(\n /** @type {import(\"./coordinate.js\").Coordinate|undefined} */ (\n this.targetCenter_\n ),\n /** @type {number} */ (newResolution),\n size,\n false,\n /** @type {import(\"./coordinate.js\").Coordinate} */ (\n this.calculateCenterShift(\n /** @type {import(\"./coordinate.js\").Coordinate} */ (\n this.targetCenter_\n ),\n /** @type {number} */ (newResolution),\n /** @type {number} */ (newRotation),\n size,\n )\n ),\n );\n\n if (duration === 0 && !this.cancelAnchor_) {\n this.targetResolution_ = newResolution;\n this.targetRotation_ = newRotation;\n this.targetCenter_ = newCenter;\n this.applyTargetState_();\n return;\n }\n\n anchor = anchor || (duration === 0 ? this.cancelAnchor_ : undefined);\n this.cancelAnchor_ = undefined;\n\n if (\n this.getResolution() !== newResolution ||\n this.getRotation() !== newRotation ||\n !this.getCenterInternal() ||\n !equals(\n /** @type {import(\"./coordinate.js\").Coordinate} */ (\n this.getCenterInternal()\n ),\n /** @type {import(\"./coordinate.js\").Coordinate} */ (newCenter),\n )\n ) {\n if (this.getAnimating()) {\n this.cancelAnimations();\n }\n\n this.animateInternal({\n rotation: newRotation,\n center: newCenter,\n resolution: newResolution,\n duration: duration,\n easing: easeOut,\n anchor: anchor,\n });\n }\n }\n\n /**\n * Notify the View that an interaction has started.\n * The view state will be resolved to a stable one if needed\n * (depending on its constraints).\n * @api\n */\n beginInteraction() {\n this.resolveConstraints(0);\n\n this.setHint(ViewHint.INTERACTING, 1);\n }\n\n /**\n * Notify the View that an interaction has ended. The view state will be resolved\n * to a stable one if needed (depending on its constraints).\n * @param {number} [duration] Animation duration in ms.\n * @param {number} [resolutionDirection] Which direction to zoom.\n * @param {import(\"./coordinate.js\").Coordinate} [anchor] The origin of the transformation.\n * @api\n */\n endInteraction(duration, resolutionDirection, anchor) {\n anchor = anchor && fromUserCoordinate(anchor, this.getProjection());\n this.endInteractionInternal(duration, resolutionDirection, anchor);\n }\n\n /**\n * Notify the View that an interaction has ended. The view state will be resolved\n * to a stable one if needed (depending on its constraints).\n * @param {number} [duration] Animation duration in ms.\n * @param {number} [resolutionDirection] Which direction to zoom.\n * @param {import(\"./coordinate.js\").Coordinate} [anchor] The origin of the transformation.\n */\n endInteractionInternal(duration, resolutionDirection, anchor) {\n if (!this.getInteracting()) {\n return;\n }\n this.setHint(ViewHint.INTERACTING, -1);\n this.resolveConstraints(duration, resolutionDirection, anchor);\n }\n\n /**\n * Get a valid position for the view center according to the current constraints.\n * @param {import(\"./coordinate.js\").Coordinate|undefined} targetCenter Target center position.\n * @param {number} [targetResolution] Target resolution. If not supplied, the current one will be used.\n * This is useful to guess a valid center position at a different zoom level.\n * @return {import(\"./coordinate.js\").Coordinate|undefined} Valid center position.\n */\n getConstrainedCenter(targetCenter, targetResolution) {\n const size = this.getViewportSize_(this.getRotation());\n return /** @type {Constraints} */ (this.constraints_).center(\n targetCenter,\n targetResolution || /** @type {number} */ (this.getResolution()),\n size,\n );\n }\n\n /**\n * Get a valid zoom level according to the current view constraints.\n * @param {number|undefined} targetZoom Target zoom.\n * @param {number} [direction] Indicate which resolution should be used\n * by a renderer if the view resolution does not match any resolution of the tile source.\n * If 0, the nearest resolution will be used. If 1, the nearest lower resolution\n * will be used. If -1, the nearest higher resolution will be used.\n * @return {number|undefined} Valid zoom level.\n */\n getConstrainedZoom(targetZoom, direction) {\n const targetRes = this.getResolutionForZoom(\n /** @type {number} */ (targetZoom),\n );\n return this.getZoomForResolution(\n /** @type {number} */ (\n this.getConstrainedResolution(targetRes, direction)\n ),\n );\n }\n\n /**\n * Get a valid resolution according to the current view constraints.\n * @param {number|undefined} targetResolution Target resolution.\n * @param {number} [direction] Indicate which resolution should be used\n * by a renderer if the view resolution does not match any resolution of the tile source.\n * If 0, the nearest resolution will be used. If 1, the nearest lower resolution\n * will be used. If -1, the nearest higher resolution will be used.\n * @return {number|undefined} Valid resolution.\n */\n getConstrainedResolution(targetResolution, direction) {\n direction = direction || 0;\n const size = this.getViewportSize_(this.getRotation());\n\n return /** @type {Constraints} */ (this.constraints_).resolution(\n targetResolution,\n direction,\n size,\n );\n }\n}\n\n/**\n * @param {Function} callback Callback.\n * @param {*} returnValue Return value.\n */\nfunction animationCallback(callback, returnValue) {\n setTimeout(function () {\n callback(returnValue);\n }, 0);\n}\n\n/**\n * @param {ViewOptions} options View options.\n * @return {import(\"./centerconstraint.js\").Type} The constraint.\n */\nexport function createCenterConstraint(options) {\n if (options.extent !== undefined) {\n const smooth =\n options.smoothExtentConstraint !== undefined\n ? options.smoothExtentConstraint\n : true;\n return createExtent(\n options.extent,\n /** @type {boolean} */ (options.constrainOnlyCenter),\n smooth,\n );\n }\n\n const projection = /** @type {import(\"./proj/Projection.js\").default} */ (\n createProjection(options.projection, 'EPSG:3857')\n );\n if (options.multiWorld !== true && projection.isGlobal()) {\n const extent = projection.getExtent().slice();\n extent[0] = -Infinity;\n extent[2] = Infinity;\n return createExtent(extent, false, false);\n }\n\n return centerNone;\n}\n\n/**\n * @param {ViewOptions} options View options.\n * @return {{constraint: import(\"./resolutionconstraint.js\").Type, maxResolution: number,\n * minResolution: number, minZoom: number, zoomFactor: number}} The constraint.\n */\nexport function createResolutionConstraint(options) {\n let resolutionConstraint;\n let maxResolution;\n let minResolution;\n\n // TODO: move these to be ol constants\n // see https://github.com/openlayers/openlayers/issues/2076\n const defaultMaxZoom = 28;\n const defaultZoomFactor = 2;\n\n let minZoom =\n options.minZoom !== undefined ? options.minZoom : DEFAULT_MIN_ZOOM;\n\n let maxZoom =\n options.maxZoom !== undefined ? options.maxZoom : defaultMaxZoom;\n\n const zoomFactor =\n options.zoomFactor !== undefined ? options.zoomFactor : defaultZoomFactor;\n\n const multiWorld =\n options.multiWorld !== undefined ? options.multiWorld : false;\n\n const smooth =\n options.smoothResolutionConstraint !== undefined\n ? options.smoothResolutionConstraint\n : true;\n\n const showFullExtent =\n options.showFullExtent !== undefined ? options.showFullExtent : false;\n\n const projection = /** @type {import(\"./proj/Projection.js\").default} */ (\n createProjection(options.projection, 'EPSG:3857')\n );\n const projExtent = projection.getExtent();\n let constrainOnlyCenter = options.constrainOnlyCenter;\n let extent = options.extent;\n if (!multiWorld && !extent && projection.isGlobal()) {\n constrainOnlyCenter = false;\n extent = projExtent;\n }\n\n if (options.resolutions !== undefined) {\n const resolutions = options.resolutions;\n maxResolution = resolutions[minZoom];\n minResolution =\n resolutions[maxZoom] !== undefined\n ? resolutions[maxZoom]\n : resolutions[resolutions.length - 1];\n\n if (options.constrainResolution) {\n resolutionConstraint = createSnapToResolutions(\n resolutions,\n smooth,\n /** @type {import(\"./extent.js\").Extent|undefined} */ (\n !constrainOnlyCenter && extent\n ),\n showFullExtent,\n );\n } else {\n resolutionConstraint = createMinMaxResolution(\n maxResolution,\n minResolution,\n smooth,\n /** @type {import(\"./extent.js\").Extent|undefined} */ (\n !constrainOnlyCenter && extent\n ),\n showFullExtent,\n );\n }\n } else {\n // calculate the default min and max resolution\n const size = !projExtent\n ? // use an extent that can fit the whole world if need be\n (360 * /** @type {number} */ (METERS_PER_UNIT.degrees)) /\n /** @type {number} */ (projection.getMetersPerUnit())\n : Math.max(getWidth(projExtent), getHeight(projExtent));\n\n const defaultMaxResolution =\n size / DEFAULT_TILE_SIZE / Math.pow(defaultZoomFactor, DEFAULT_MIN_ZOOM);\n\n const defaultMinResolution =\n defaultMaxResolution /\n Math.pow(defaultZoomFactor, defaultMaxZoom - DEFAULT_MIN_ZOOM);\n\n // user provided maxResolution takes precedence\n maxResolution = options.maxResolution;\n if (maxResolution !== undefined) {\n minZoom = 0;\n } else {\n maxResolution = defaultMaxResolution / Math.pow(zoomFactor, minZoom);\n }\n\n // user provided minResolution takes precedence\n minResolution = options.minResolution;\n if (minResolution === undefined) {\n if (options.maxZoom !== undefined) {\n if (options.maxResolution !== undefined) {\n minResolution = maxResolution / Math.pow(zoomFactor, maxZoom);\n } else {\n minResolution = defaultMaxResolution / Math.pow(zoomFactor, maxZoom);\n }\n } else {\n minResolution = defaultMinResolution;\n }\n }\n\n // given discrete zoom levels, minResolution may be different than provided\n maxZoom =\n minZoom +\n Math.floor(\n Math.log(maxResolution / minResolution) / Math.log(zoomFactor),\n );\n minResolution = maxResolution / Math.pow(zoomFactor, maxZoom - minZoom);\n\n if (options.constrainResolution) {\n resolutionConstraint = createSnapToPower(\n zoomFactor,\n maxResolution,\n minResolution,\n smooth,\n /** @type {import(\"./extent.js\").Extent|undefined} */ (\n !constrainOnlyCenter && extent\n ),\n showFullExtent,\n );\n } else {\n resolutionConstraint = createMinMaxResolution(\n maxResolution,\n minResolution,\n smooth,\n /** @type {import(\"./extent.js\").Extent|undefined} */ (\n !constrainOnlyCenter && extent\n ),\n showFullExtent,\n );\n }\n }\n return {\n constraint: resolutionConstraint,\n maxResolution: maxResolution,\n minResolution: minResolution,\n minZoom: minZoom,\n zoomFactor: zoomFactor,\n };\n}\n\n/**\n * @param {ViewOptions} options View options.\n * @return {import(\"./rotationconstraint.js\").Type} Rotation constraint.\n */\nexport function createRotationConstraint(options) {\n const enableRotation =\n options.enableRotation !== undefined ? options.enableRotation : true;\n if (enableRotation) {\n const constrainRotation = options.constrainRotation;\n if (constrainRotation === undefined || constrainRotation === true) {\n return createSnapToZero();\n }\n if (constrainRotation === false) {\n return rotationNone;\n }\n if (typeof constrainRotation === 'number') {\n return createSnapToN(constrainRotation);\n }\n return rotationNone;\n }\n return disable;\n}\n\n/**\n * Determine if an animation involves no view change.\n * @param {Animation} animation The animation.\n * @return {boolean} The animation involves no view change.\n */\nexport function isNoopAnimation(animation) {\n if (animation.sourceCenter && animation.targetCenter) {\n if (!coordinatesEqual(animation.sourceCenter, animation.targetCenter)) {\n return false;\n }\n }\n if (animation.sourceResolution !== animation.targetResolution) {\n return false;\n }\n if (animation.sourceRotation !== animation.targetRotation) {\n return false;\n }\n return true;\n}\n\n/**\n * @param {import(\"./coordinate.js\").Coordinate} coordinate Coordinate.\n * @param {import(\"./size.js\").Size} size Box pixel size.\n * @param {import(\"./pixel.js\").Pixel} position Position on the view to center on.\n * @param {number} resolution Resolution.\n * @param {number} rotation Rotation.\n * @return {import(\"./coordinate.js\").Coordinate} Shifted center.\n */\nfunction calculateCenterOn(coordinate, size, position, resolution, rotation) {\n // calculate rotated position\n const cosAngle = Math.cos(-rotation);\n let sinAngle = Math.sin(-rotation);\n let rotX = coordinate[0] * cosAngle - coordinate[1] * sinAngle;\n let rotY = coordinate[1] * cosAngle + coordinate[0] * sinAngle;\n rotX += (size[0] / 2 - position[0]) * resolution;\n rotY += (position[1] - size[1] / 2) * resolution;\n\n // go back to original angle\n sinAngle = -sinAngle; // go back to original rotation\n const centerX = rotX * cosAngle - rotY * sinAngle;\n const centerY = rotY * cosAngle + rotX * sinAngle;\n\n return [centerX, centerY];\n}\n\nexport default View;\n\n/**\n * @typedef {function(ViewOptions):ViewOptions} ViewTransform\n */\n\n/**\n * Adds higher resolutions.\n * @param {number} num The number of higher resolution levels to use.\n * @return {ViewTransform} A view transform.\n */\nexport function withHigherResolutions(num) {\n return function (options) {\n if (!options.resolutions) {\n return options;\n }\n const resolutions = [...options.resolutions];\n const highest = resolutions[resolutions.length - 1];\n for (let i = 0; i < num; ++i) {\n resolutions.push(highest / Math.pow(2, i + 1));\n }\n return {\n ...options,\n resolutions,\n };\n };\n}\n\n/**\n * Adds lower resolutions.\n * @param {number} num The number of lower resolution levels to use.\n * @return {ViewTransform} A view transform.\n * @api\n */\nexport function withLowerResolutions(num) {\n return function (options) {\n if (!options.resolutions) {\n return options;\n }\n const resolutions = [...options.resolutions];\n const lowest = resolutions[0];\n for (let i = 0; i < num; ++i) {\n resolutions.unshift(lowest * Math.pow(2, i + 1));\n }\n return {\n ...options,\n resolutions,\n };\n };\n}\n\n/**\n * Applies a center based on the extent.\n * @return {ViewTransform} A view transform.\n * @api\n */\nexport function withExtentCenter() {\n return function (options) {\n if (!options.extent) {\n return options;\n }\n const center = getCenter(options.extent);\n const newOptions = {...options, center};\n delete newOptions.extent;\n return newOptions;\n };\n}\n\n/**\n * Applies a zoom level.\n * @param {number} z The zoom level.\n * @return {ViewTransform} A view transform.\n * @api\n */\nexport function withZoom(z) {\n return function (options) {\n return {...options, zoom: z};\n };\n}\n\n/**\n * Applies a series of transforms to a view that is resolved from a source.\n * @param {import(\"./source/Source.js\").default} source The source.\n * @param {...ViewTransform} transforms The transforms to apply.\n * @return {Promise} The view options.\n * @api\n */\nexport async function getView(source, ...transforms) {\n let config = await source.getView();\n for (const transform of transforms) {\n config = transform(config);\n }\n return config;\n}\n","/**\n * @module ol/render/EventType\n */\n\n/**\n * @enum {string}\n */\nexport default {\n /**\n * Triggered before a layer is rendered.\n * @event module:ol/render/Event~RenderEvent#prerender\n * @api\n */\n PRERENDER: 'prerender',\n\n /**\n * Triggered after a layer is rendered.\n * @event module:ol/render/Event~RenderEvent#postrender\n * @api\n */\n POSTRENDER: 'postrender',\n\n /**\n * Triggered before layers are composed. When dispatched by the map, the event object will not have\n * a `context` set. When dispatched by a layer, the event object will have a `context` set. Only\n * WebGL layers currently dispatch this event.\n * @event module:ol/render/Event~RenderEvent#precompose\n * @api\n */\n PRECOMPOSE: 'precompose',\n\n /**\n * Triggered after layers are composed. When dispatched by the map, the event object will not have\n * a `context` set. When dispatched by a layer, the event object will have a `context` set. Only\n * WebGL layers currently dispatch this event.\n * @event module:ol/render/Event~RenderEvent#postcompose\n * @api\n */\n POSTCOMPOSE: 'postcompose',\n\n /**\n * Triggered when rendering is complete, i.e. all sources and tiles have\n * finished loading for the current viewport, and all tiles are faded in.\n * The event object will not have a `context` set.\n * @event module:ol/render/Event~RenderEvent#rendercomplete\n * @api\n */\n RENDERCOMPLETE: 'rendercomplete',\n};\n\n/**\n * @typedef {'postrender'|'precompose'|'postcompose'|'rendercomplete'} MapRenderEventTypes\n */\n\n/**\n * @typedef {'postrender'|'prerender'} LayerRenderEventTypes\n */\n","/**\n * @module ol/layer/Property\n */\n\n/**\n * @enum {string}\n */\nexport default {\n OPACITY: 'opacity',\n VISIBLE: 'visible',\n EXTENT: 'extent',\n Z_INDEX: 'zIndex',\n MAX_RESOLUTION: 'maxResolution',\n MIN_RESOLUTION: 'minResolution',\n MAX_ZOOM: 'maxZoom',\n MIN_ZOOM: 'minZoom',\n SOURCE: 'source',\n MAP: 'map',\n};\n","/**\n * @module ol/layer/Base\n */\nimport BaseObject from '../Object.js';\nimport {assert} from '../asserts.js';\nimport {clamp} from '../math.js';\nimport {abstract} from '../util.js';\nimport LayerProperty from './Property.js';\n\n/**\n * A css color, or a function called with a view resolution returning a css color.\n *\n * @typedef {string|function(number):string} BackgroundColor\n * @api\n */\n\n/**\n * @typedef {import(\"../ObjectEventType.js\").Types|'change:extent'|'change:maxResolution'|'change:maxZoom'|\n * 'change:minResolution'|'change:minZoom'|'change:opacity'|'change:visible'|'change:zIndex'} BaseLayerObjectEventTypes\n */\n\n/***\n * @template Return\n * @typedef {import(\"../Observable.js\").OnSignature &\n * import(\"../Observable.js\").OnSignature &\n * import(\"../Observable.js\").CombinedOnSignature} BaseLayerOnSignature\n */\n\n/**\n * @template {Object} [Properties=Object]\n * @typedef {Object} Options\n * @property {string} [className='ol-layer'] A CSS class name to set to the layer element.\n * @property {number} [opacity=1] Opacity (0, 1).\n * @property {boolean} [visible=true] Visibility.\n * @property {import(\"../extent.js\").Extent} [extent] The bounding extent for layer rendering. The layer will not be\n * rendered outside of this extent.\n * @property {number | undefined} [zIndex] The z-index for layer rendering. At rendering time, the layers\n * will be ordered, first by Z-index and then by position. When `undefined`, a `zIndex` of 0 is assumed\n * for layers that are added to the map's `layers` collection, or `Infinity` when the layer's `setMap()`\n * method was used.\n * @property {number} [minResolution] The minimum resolution (inclusive) at which this layer will be\n * visible.\n * @property {number} [maxResolution] The maximum resolution (exclusive) below which this layer will\n * be visible.\n * @property {number} [minZoom] The minimum view zoom level (exclusive) above which this layer will be\n * visible.\n * @property {number} [maxZoom] The maximum view zoom level (inclusive) at which this layer will\n * be visible.\n * @property {BackgroundColor} [background] Background color for the layer. If not specified, no background\n * will be rendered.\n * @property {Properties} [properties] Arbitrary observable properties. Can be accessed with `#get()` and `#set()`.\n */\n\n/**\n * @classdesc\n * Abstract base class; normally only used for creating subclasses and not\n * instantiated in apps.\n * Note that with {@link module:ol/layer/Base~BaseLayer} and all its subclasses, any property set in\n * the options is set as a {@link module:ol/Object~BaseObject} property on the layer object, so\n * is observable, and has get/set accessors.\n *\n * @api\n * @template {Object} [Properties=Object]\n * @extends {BaseObject & Object>}\n */\nclass BaseLayer extends BaseObject {\n /**\n * @param {Options>} options Layer options.\n */\n constructor(options) {\n super();\n\n /***\n * @type {BaseLayerOnSignature}\n */\n this.on;\n\n /***\n * @type {BaseLayerOnSignature}\n */\n this.once;\n\n /***\n * @type {BaseLayerOnSignature}\n */\n this.un;\n\n /**\n * @type {BackgroundColor|false|undefined}\n * @private\n */\n this.background_ = options.background;\n\n /**\n * @type {?}\n */\n const properties = Object.assign({}, options);\n if (typeof options.properties === 'object') {\n delete properties.properties;\n Object.assign(properties, options.properties);\n }\n\n properties[LayerProperty.OPACITY] =\n options.opacity !== undefined ? options.opacity : 1;\n assert(\n typeof properties[LayerProperty.OPACITY] === 'number',\n 'Layer opacity must be a number',\n );\n\n properties[LayerProperty.VISIBLE] =\n options.visible !== undefined ? options.visible : true;\n properties[LayerProperty.Z_INDEX] = options.zIndex;\n properties[LayerProperty.MAX_RESOLUTION] =\n options.maxResolution !== undefined ? options.maxResolution : Infinity;\n properties[LayerProperty.MIN_RESOLUTION] =\n options.minResolution !== undefined ? options.minResolution : 0;\n properties[LayerProperty.MIN_ZOOM] =\n options.minZoom !== undefined ? options.minZoom : -Infinity;\n properties[LayerProperty.MAX_ZOOM] =\n options.maxZoom !== undefined ? options.maxZoom : Infinity;\n\n /**\n * @type {string}\n * @private\n */\n this.className_ =\n properties.className !== undefined ? properties.className : 'ol-layer';\n delete properties.className;\n\n this.setProperties(properties);\n\n /**\n * @type {import(\"./Layer.js\").State|null}\n * @private\n */\n this.state_ = null;\n }\n\n /**\n * Get the background for this layer.\n * @return {BackgroundColor|false|undefined} Layer background.\n */\n getBackground() {\n return this.background_;\n }\n\n /**\n * @return {string} CSS class name.\n */\n getClassName() {\n return this.className_;\n }\n\n /**\n * This method is not meant to be called by layers or layer renderers because the state\n * is incorrect if the layer is included in a layer group.\n *\n * @param {boolean} [managed] Layer is managed.\n * @return {import(\"./Layer.js\").State} Layer state.\n */\n getLayerState(managed) {\n /** @type {import(\"./Layer.js\").State} */\n const state =\n this.state_ ||\n /** @type {?} */ ({\n layer: this,\n managed: managed === undefined ? true : managed,\n });\n const zIndex = this.getZIndex();\n state.opacity = clamp(Math.round(this.getOpacity() * 100) / 100, 0, 1);\n state.visible = this.getVisible();\n state.extent = this.getExtent();\n state.zIndex = zIndex === undefined && !state.managed ? Infinity : zIndex;\n state.maxResolution = this.getMaxResolution();\n state.minResolution = Math.max(this.getMinResolution(), 0);\n state.minZoom = this.getMinZoom();\n state.maxZoom = this.getMaxZoom();\n this.state_ = state;\n\n return state;\n }\n\n /**\n * @abstract\n * @param {Array} [array] Array of layers (to be\n * modified in place).\n * @return {Array} Array of layers.\n */\n getLayersArray(array) {\n return abstract();\n }\n\n /**\n * @abstract\n * @param {Array} [states] Optional list of layer\n * states (to be modified in place).\n * @return {Array} List of layer states.\n */\n getLayerStatesArray(states) {\n return abstract();\n }\n\n /**\n * Return the {@link module:ol/extent~Extent extent} of the layer or `undefined` if it\n * will be visible regardless of extent.\n * @return {import(\"../extent.js\").Extent|undefined} The layer extent.\n * @observable\n * @api\n */\n getExtent() {\n return /** @type {import(\"../extent.js\").Extent|undefined} */ (\n this.get(LayerProperty.EXTENT)\n );\n }\n\n /**\n * Return the maximum resolution of the layer. Returns Infinity if\n * the layer has no maximum resolution set.\n * @return {number} The maximum resolution of the layer.\n * @observable\n * @api\n */\n getMaxResolution() {\n return /** @type {number} */ (this.get(LayerProperty.MAX_RESOLUTION));\n }\n\n /**\n * Return the minimum resolution of the layer. Returns 0 if\n * the layer has no minimum resolution set.\n * @return {number} The minimum resolution of the layer.\n * @observable\n * @api\n */\n getMinResolution() {\n return /** @type {number} */ (this.get(LayerProperty.MIN_RESOLUTION));\n }\n\n /**\n * Return the minimum zoom level of the layer. Returns -Infinity if\n * the layer has no minimum zoom set.\n * @return {number} The minimum zoom level of the layer.\n * @observable\n * @api\n */\n getMinZoom() {\n return /** @type {number} */ (this.get(LayerProperty.MIN_ZOOM));\n }\n\n /**\n * Return the maximum zoom level of the layer. Returns Infinity if\n * the layer has no maximum zoom set.\n * @return {number} The maximum zoom level of the layer.\n * @observable\n * @api\n */\n getMaxZoom() {\n return /** @type {number} */ (this.get(LayerProperty.MAX_ZOOM));\n }\n\n /**\n * Return the opacity of the layer (between 0 and 1).\n * @return {number} The opacity of the layer.\n * @observable\n * @api\n */\n getOpacity() {\n return /** @type {number} */ (this.get(LayerProperty.OPACITY));\n }\n\n /**\n * @abstract\n * @return {import(\"../source/Source.js\").State} Source state.\n */\n getSourceState() {\n return abstract();\n }\n\n /**\n * Return the value of this layer's `visible` property. To find out whether the layer\n * is visible on a map, use `isVisible()` instead.\n * @return {boolean} The value of the `visible` property of the layer.\n * @observable\n * @api\n */\n getVisible() {\n return /** @type {boolean} */ (this.get(LayerProperty.VISIBLE));\n }\n\n /**\n * Return the Z-index of the layer, which is used to order layers before\n * rendering. Returns undefined if the layer is unmanaged.\n * @return {number|undefined} The Z-index of the layer.\n * @observable\n * @api\n */\n getZIndex() {\n return /** @type {number|undefined} */ (this.get(LayerProperty.Z_INDEX));\n }\n\n /**\n * Sets the background color.\n * @param {BackgroundColor|undefined} [background] Background color.\n */\n setBackground(background) {\n this.background_ = background;\n this.changed();\n }\n\n /**\n * Set the extent at which the layer is visible. If `undefined`, the layer\n * will be visible at all extents.\n * @param {import(\"../extent.js\").Extent|undefined} extent The extent of the layer.\n * @observable\n * @api\n */\n setExtent(extent) {\n this.set(LayerProperty.EXTENT, extent);\n }\n\n /**\n * Set the maximum resolution at which the layer is visible.\n * @param {number} maxResolution The maximum resolution of the layer.\n * @observable\n * @api\n */\n setMaxResolution(maxResolution) {\n this.set(LayerProperty.MAX_RESOLUTION, maxResolution);\n }\n\n /**\n * Set the minimum resolution at which the layer is visible.\n * @param {number} minResolution The minimum resolution of the layer.\n * @observable\n * @api\n */\n setMinResolution(minResolution) {\n this.set(LayerProperty.MIN_RESOLUTION, minResolution);\n }\n\n /**\n * Set the maximum zoom (exclusive) at which the layer is visible.\n * Note that the zoom levels for layer visibility are based on the\n * view zoom level, which may be different from a tile source zoom level.\n * @param {number} maxZoom The maximum zoom of the layer.\n * @observable\n * @api\n */\n setMaxZoom(maxZoom) {\n this.set(LayerProperty.MAX_ZOOM, maxZoom);\n }\n\n /**\n * Set the minimum zoom (inclusive) at which the layer is visible.\n * Note that the zoom levels for layer visibility are based on the\n * view zoom level, which may be different from a tile source zoom level.\n * @param {number} minZoom The minimum zoom of the layer.\n * @observable\n * @api\n */\n setMinZoom(minZoom) {\n this.set(LayerProperty.MIN_ZOOM, minZoom);\n }\n\n /**\n * Set the opacity of the layer, allowed values range from 0 to 1.\n * @param {number} opacity The opacity of the layer.\n * @observable\n * @api\n */\n setOpacity(opacity) {\n assert(typeof opacity === 'number', 'Layer opacity must be a number');\n this.set(LayerProperty.OPACITY, opacity);\n }\n\n /**\n * Set the visibility of the layer (`true` or `false`).\n * @param {boolean} visible The visibility of the layer.\n * @observable\n * @api\n */\n setVisible(visible) {\n this.set(LayerProperty.VISIBLE, visible);\n }\n\n /**\n * Set Z-index of the layer, which is used to order layers before rendering.\n * The default Z-index is 0.\n * @param {number} zindex The z-index of the layer.\n * @observable\n * @api\n */\n setZIndex(zindex) {\n this.set(LayerProperty.Z_INDEX, zindex);\n }\n\n /**\n * Clean up.\n * @override\n */\n disposeInternal() {\n if (this.state_) {\n this.state_.layer = /** @type {?} */ (null);\n this.state_ = null;\n }\n super.disposeInternal();\n }\n}\n\nexport default BaseLayer;\n","/**\n * @module ol/layer/Layer\n */\nimport View from '../View.js';\nimport {assert} from '../asserts.js';\nimport {listen, unlistenByKey} from '../events.js';\nimport EventType from '../events/EventType.js';\nimport {intersects} from '../extent.js';\nimport RenderEventType from '../render/EventType.js';\nimport BaseLayer from './Base.js';\nimport LayerProperty from './Property.js';\n\n/**\n * @typedef {function(import(\"../Map.js\").FrameState):HTMLElement} RenderFunction\n */\n\n/**\n * @typedef {'sourceready'|'change:source'} LayerEventType\n */\n\n/***\n * @template Return\n * @typedef {import(\"../Observable.js\").OnSignature &\n * import(\"../Observable.js\").OnSignature &\n * import(\"../Observable.js\").OnSignature &\n * import(\"../Observable.js\").CombinedOnSignature} LayerOnSignature\n */\n\n/**\n * @template {import(\"../source/Source.js\").default} [SourceType=import(\"../source/Source.js\").default]\n * @template {Object} [Properties=Object]\n * @typedef {Object} Options\n * @property {string} [className='ol-layer'] A CSS class name to set to the layer element.\n * @property {number} [opacity=1] Opacity (0, 1).\n * @property {boolean} [visible=true] Visibility.\n * @property {import(\"../extent.js\").Extent} [extent] The bounding extent for layer rendering. The layer will not be\n * rendered outside of this extent.\n * @property {number} [zIndex] The z-index for layer rendering. At rendering time, the layers\n * will be ordered, first by Z-index and then by position. When `undefined`, a `zIndex` of 0 is assumed\n * for layers that are added to the map's `layers` collection, or `Infinity` when the layer's `setMap()`\n * method was used.\n * @property {number} [minResolution] The minimum resolution (inclusive) at which this layer will be\n * visible.\n * @property {number} [maxResolution] The maximum resolution (exclusive) below which this layer will\n * be visible.\n * @property {number} [minZoom] The minimum view zoom level (exclusive) above which this layer will be\n * visible.\n * @property {number} [maxZoom] The maximum view zoom level (inclusive) at which this layer will\n * be visible.\n * @property {SourceType} [source] Source for this layer. If not provided to the constructor,\n * the source can be set by calling {@link module:ol/layer/Layer~Layer#setSource layer.setSource(source)} after\n * construction.\n * @property {import(\"../Map.js\").default|null} [map] Map.\n * @property {RenderFunction} [render] Render function. Takes the frame state as input and is expected to return an\n * HTML element. Will overwrite the default rendering for the layer.\n * @property {import(\"./Base.js\").BackgroundColor} [background] Background color for the layer. If not specified, no background\n * will be rendered.\n * @property {Properties} [properties] Arbitrary observable properties. Can be accessed with `#get()` and `#set()`.\n */\n\n/**\n * @typedef {Object} State\n * @property {import(\"./Layer.js\").default} layer Layer.\n * @property {number} opacity Opacity, the value is rounded to two digits to appear after the decimal point.\n * @property {boolean} visible Visible.\n * @property {boolean} managed Managed.\n * @property {import(\"../extent.js\").Extent} [extent] Extent.\n * @property {number|undefined} zIndex ZIndex.\n * @property {number} maxResolution Maximum resolution.\n * @property {number} minResolution Minimum resolution.\n * @property {number} minZoom Minimum zoom.\n * @property {number} maxZoom Maximum zoom.\n */\n\n/**\n * @classdesc\n * Base class from which all layer types are derived. This should only be instantiated\n * in the case where a custom layer is added to the map with a custom `render` function.\n * Such a function can be specified in the `options` object, and is expected to return an HTML element.\n *\n * A visual representation of raster or vector map data.\n * Layers group together those properties that pertain to how the data is to be\n * displayed, irrespective of the source of that data.\n *\n * Layers are usually added to a map with [map.addLayer()]{@link import(\"../Map.js\").default#addLayer}.\n * Components like {@link module:ol/interaction/Draw~Draw} use unmanaged layers\n * internally. These unmanaged layers are associated with the map using\n * [layer.setMap()]{@link module:ol/layer/Layer~Layer#setMap} instead.\n *\n * A generic `change` event is fired when the state of the source changes.\n * A `sourceready` event is fired when the layer's source is ready.\n *\n * @fires import(\"../render/Event.js\").RenderEvent#prerender\n * @fires import(\"../render/Event.js\").RenderEvent#postrender\n * @fires import(\"../events/Event.js\").BaseEvent#sourceready\n *\n * @template {import(\"../source/Source.js\").default} [SourceType=import(\"../source/Source.js\").default]\n * @template {import(\"../renderer/Layer.js\").default<*>} [RendererType=import(\"../renderer/Layer.js\").default<*>]\n * @template {Object} [Properties=Object]\n * @extends {BaseLayer>}\n * @api\n */\nclass Layer extends BaseLayer {\n /**\n * @param {Options>} options Layer options.\n */\n constructor(options) {\n const baseOptions = Object.assign({}, options);\n delete baseOptions.source;\n\n super(baseOptions);\n\n /***\n * @type {LayerOnSignature}\n */\n this.on;\n\n /***\n * @type {LayerOnSignature}\n */\n this.once;\n\n /***\n * @type {LayerOnSignature}\n */\n this.un;\n\n /**\n * @private\n * @type {?import(\"../events.js\").EventsKey}\n */\n this.mapPrecomposeKey_ = null;\n\n /**\n * @private\n * @type {?import(\"../events.js\").EventsKey}\n */\n this.mapRenderKey_ = null;\n\n /**\n * @private\n * @type {?import(\"../events.js\").EventsKey}\n */\n this.sourceChangeKey_ = null;\n\n /**\n * @private\n * @type {RendererType|null|undefined}\n */\n this.renderer_ = null;\n\n /**\n * @private\n * @type {boolean}\n */\n this.sourceReady_ = false;\n\n /**\n * @protected\n * @type {boolean}\n */\n this.rendered = false;\n\n // Overwrite default render method with a custom one\n if (options.render) {\n this.render = options.render;\n }\n\n if (options.map) {\n this.setMap(options.map);\n }\n\n this.addChangeListener(\n LayerProperty.SOURCE,\n this.handleSourcePropertyChange_,\n );\n\n const source = options.source\n ? /** @type {SourceType} */ (options.source)\n : null;\n this.setSource(source);\n }\n\n /**\n * @param {Array} [array] Array of layers (to be modified in place).\n * @return {Array} Array of layers.\n * @override\n */\n getLayersArray(array) {\n array = array ? array : [];\n array.push(this);\n return array;\n }\n\n /**\n * @param {Array} [states] Optional list of layer states (to be modified in place).\n * @return {Array} List of layer states.\n * @override\n */\n getLayerStatesArray(states) {\n states = states ? states : [];\n states.push(this.getLayerState());\n return states;\n }\n\n /**\n * Get the layer source.\n * @return {SourceType|null} The layer source (or `null` if not yet set).\n * @observable\n * @api\n */\n getSource() {\n return /** @type {SourceType} */ (this.get(LayerProperty.SOURCE)) || null;\n }\n\n /**\n * @return {SourceType|null} The source being rendered.\n */\n getRenderSource() {\n return this.getSource();\n }\n\n /**\n * @return {import(\"../source/Source.js\").State} Source state.\n * @override\n */\n getSourceState() {\n const source = this.getSource();\n return !source ? 'undefined' : source.getState();\n }\n\n /**\n * @private\n */\n handleSourceChange_() {\n this.changed();\n const source = this.getSource();\n if (!source || this.sourceReady_ || source.getState() !== 'ready') {\n return;\n }\n this.sourceReady_ = true;\n this.dispatchEvent('sourceready');\n }\n\n /**\n * @private\n */\n handleSourcePropertyChange_() {\n if (this.sourceChangeKey_) {\n unlistenByKey(this.sourceChangeKey_);\n this.sourceChangeKey_ = null;\n }\n this.sourceReady_ = false;\n const source = this.getSource();\n if (source) {\n this.sourceChangeKey_ = listen(\n source,\n EventType.CHANGE,\n this.handleSourceChange_,\n this,\n );\n if (source.getState() === 'ready') {\n this.sourceReady_ = true;\n setTimeout(() => {\n this.dispatchEvent('sourceready');\n }, 0);\n }\n }\n this.changed();\n }\n\n /**\n * @param {import(\"../pixel.js\").Pixel} pixel Pixel.\n * @return {Promise>} Promise that resolves with\n * an array of features.\n */\n getFeatures(pixel) {\n if (!this.renderer_) {\n return Promise.resolve([]);\n }\n return this.renderer_.getFeatures(pixel);\n }\n\n /**\n * @param {import(\"../pixel.js\").Pixel} pixel Pixel.\n * @return {Uint8ClampedArray|Uint8Array|Float32Array|DataView|null} Pixel data.\n */\n getData(pixel) {\n if (!this.renderer_ || !this.rendered) {\n return null;\n }\n return this.renderer_.getData(pixel);\n }\n\n /**\n * The layer is visible on the map view, i.e. within its min/max resolution or zoom and\n * extent, not set to `visible: false`, and not inside a layer group that is set\n * to `visible: false`.\n * @param {View|import(\"../View.js\").ViewStateLayerStateExtent} [view] View or {@link import(\"../Map.js\").FrameState}.\n * Only required when the layer is not added to a map.\n * @return {boolean} The layer is visible in the map view.\n * @api\n */\n isVisible(view) {\n let frameState;\n const map = this.getMapInternal();\n if (!view && map) {\n view = map.getView();\n }\n if (view instanceof View) {\n frameState = {\n viewState: view.getState(),\n extent: view.calculateExtent(),\n };\n } else {\n frameState = view;\n }\n const state =\n /** @type {import(\"../View.js\").ViewStateLayerStateExtent} */ (\n frameState\n );\n if (!state.layerStatesArray && map) {\n state.layerStatesArray = map.getLayerGroup().getLayerStatesArray();\n }\n let layerState;\n if (state.layerStatesArray) {\n layerState = state.layerStatesArray.find(\n (layerState) => layerState.layer === this,\n );\n if (!layerState) {\n return false;\n }\n } else {\n layerState = this.getLayerState();\n }\n\n const layerExtent = this.getExtent();\n\n return (\n inView(layerState, state.viewState) &&\n (!layerExtent || intersects(layerExtent, state.extent))\n );\n }\n\n /**\n * Get the attributions of the source of this layer for the given view.\n * @param {View|import(\"../View.js\").ViewStateLayerStateExtent} [view] View or {@link import(\"../Map.js\").FrameState}.\n * Only required when the layer is not added to a map.\n * @return {Array} Attributions for this layer at the given view.\n * @api\n */\n getAttributions(view) {\n if (!this.isVisible(view)) {\n return [];\n }\n const getAttributions = this.getSource()?.getAttributions();\n if (!getAttributions) {\n return [];\n }\n const frameState =\n view instanceof View ? view.getViewStateAndExtent() : view;\n let attributions = getAttributions(\n /** @type {import(\"../View.js\").ViewStateLayerStateExtent} */ (\n frameState\n ),\n );\n if (!Array.isArray(attributions)) {\n attributions = [attributions];\n }\n return attributions;\n }\n\n /**\n * In charge to manage the rendering of the layer. One layer type is\n * bounded with one layer renderer.\n * @param {?import(\"../Map.js\").FrameState} frameState Frame state.\n * @param {HTMLElement} target Target which the renderer may (but need not) use\n * for rendering its content.\n * @return {HTMLElement|null} The rendered element.\n */\n render(frameState, target) {\n const layerRenderer = /** @type {RendererType} */ (this.getRenderer());\n\n if (\n layerRenderer.prepareFrame(\n /** @type {import(\"../Map.js\").FrameState} */ (frameState),\n )\n ) {\n this.rendered = true;\n return layerRenderer.renderFrame(\n /** @type {import(\"../Map.js\").FrameState} */ (frameState),\n target,\n );\n }\n return null;\n }\n\n /**\n * Called when a layer is not visible during a map render.\n */\n unrender() {\n this.rendered = false;\n }\n\n /** @return {string|undefined} Declutter */\n getDeclutter() {\n return undefined;\n }\n\n /**\n * @param {import(\"../Map.js\").FrameState} frameState Frame state.\n * @param {import(\"../layer/Layer.js\").State} layerState Layer state.\n */\n renderDeclutter(frameState, layerState) {}\n\n /**\n * When the renderer follows a layout -> render approach, do the final rendering here.\n * @param {import('../Map.js').FrameState} frameState Frame state\n */\n renderDeferred(frameState) {\n const layerRenderer = this.getRenderer();\n if (!layerRenderer) {\n return;\n }\n layerRenderer.renderDeferred(frameState);\n }\n\n /**\n * For use inside the library only.\n * @param {import(\"../Map.js\").default|null} map Map.\n */\n setMapInternal(map) {\n if (!map) {\n this.unrender();\n }\n this.set(LayerProperty.MAP, map);\n }\n\n /**\n * For use inside the library only.\n * @return {import(\"../Map.js\").default|null} Map.\n */\n getMapInternal() {\n return this.get(LayerProperty.MAP);\n }\n\n /**\n * Sets the layer to be rendered on top of other layers on a map. The map will\n * not manage this layer in its layers collection. This\n * is useful for temporary layers. To remove an unmanaged layer from the map,\n * use `#setMap(null)`.\n *\n * To add the layer to a map and have it managed by the map, use\n * {@link module:ol/Map~Map#addLayer} instead.\n * @param {import(\"../Map.js\").default|null} map Map.\n * @api\n */\n setMap(map) {\n if (this.mapPrecomposeKey_) {\n unlistenByKey(this.mapPrecomposeKey_);\n this.mapPrecomposeKey_ = null;\n }\n if (!map) {\n this.changed();\n }\n if (this.mapRenderKey_) {\n unlistenByKey(this.mapRenderKey_);\n this.mapRenderKey_ = null;\n }\n if (map) {\n this.mapPrecomposeKey_ = listen(\n map,\n RenderEventType.PRECOMPOSE,\n /** @type {import(\"../events.js\").ListenerFunction} */ (\n this.handlePrecompose_\n ),\n this,\n );\n this.mapRenderKey_ = listen(this, EventType.CHANGE, map.render, map);\n this.changed();\n }\n }\n\n /**\n * @param {import(\"../events/Event.js\").default} renderEvent Render event\n * @private\n */\n handlePrecompose_(renderEvent) {\n const layerStatesArray =\n /** @type {import(\"../render/Event.js\").default} */ (renderEvent)\n .frameState?.layerStatesArray;\n if (!layerStatesArray) {\n return;\n }\n const layerState = this.getLayerState(false);\n assert(\n !layerStatesArray.some(\n (arrayLayerState) => arrayLayerState.layer === layerState.layer,\n ),\n 'A layer can only be added to the map once. Use either `layer.setMap()` or `map.addLayer()`, not both.',\n );\n layerStatesArray.push(layerState);\n }\n\n /**\n * Set the layer source.\n * @param {SourceType|null} source The layer source.\n * @observable\n * @api\n */\n setSource(source) {\n this.set(LayerProperty.SOURCE, source);\n }\n\n /**\n * Get the renderer for this layer.\n * @return {RendererType|null} The layer renderer.\n */\n getRenderer() {\n if (!this.renderer_) {\n this.renderer_ = this.createRenderer();\n }\n return this.renderer_;\n }\n\n /**\n * @return {boolean} The layer has a renderer.\n */\n hasRenderer() {\n return !!this.renderer_;\n }\n\n /**\n * Create a renderer for this layer.\n * @return {RendererType} A layer renderer.\n * @protected\n */\n createRenderer() {\n return /** @type {RendererType} */ (/** @type {unknown} */ (null));\n }\n\n /**\n * This will clear the renderer so that a new one can be created next time it is needed\n */\n clearRenderer() {\n if (this.renderer_) {\n this.renderer_.dispose();\n delete this.renderer_;\n }\n }\n\n /**\n * Clean up.\n * @override\n */\n disposeInternal() {\n this.clearRenderer();\n this.setSource(null);\n super.disposeInternal();\n }\n}\n\n/**\n * Return `true` if the layer is visible and if the provided view state\n * has resolution and zoom levels that are in range of the layer's min/max.\n * @param {State} layerState Layer state.\n * @param {import(\"../View.js\").State} viewState View state.\n * @return {boolean} The layer is visible at the given view state.\n */\nexport function inView(layerState, viewState) {\n if (!layerState.visible) {\n return false;\n }\n const resolution = viewState.resolution;\n if (\n resolution < layerState.minResolution ||\n resolution >= layerState.maxResolution\n ) {\n return false;\n }\n const zoom = viewState.zoom;\n return zoom > layerState.minZoom && zoom <= layerState.maxZoom;\n}\n\nexport default Layer;\n","// nov26-m4-t2(MaplatCore #107): MapboxLayer・MapLibreLayer の描画ごとの寸法同期で使う比較。\n// canvas.width/height は物理ピクセル、OpenLayers の frameState.size は CSS ピクセルなので、\n// そのまま比べると DPR>1 では常に食い違い、描画のたびに GL の resize() が呼ばれていた。\n// src/index.ts からは export しない(内部用。前例 src/provider_gl_bind.ts)。\n\n/** GL ライブラリの画素比。map.getPixelRatio() があればその値、無ければ window.devicePixelRatio。\n * 有限の正の数でなければ 1。 */\nfunction glPixelRatio(glMap: any): number {\n const pr =\n glMap && typeof glMap.getPixelRatio === \"function\"\n ? glMap.getPixelRatio()\n : (typeof window !== \"undefined\" && window.devicePixelRatio) || 1;\n return typeof pr === \"number\" && Number.isFinite(pr) && pr > 0 ? pr : 1;\n}\n\n/** GL ライブラリが作った canvas が frameState.size(CSS ピクセル)と同じ大きさか。\n * canvas.width/height は物理ピクセルなので、GL ライブラリの画素比で割って比べる。\n * 小数の DPR(1.25・1.5)で丸められても毎フレーム resize しないよう、差が 1 未満なら一致とみなす。\n * canvas.width が数でない(検査のスタブ等)ときは NaN で不一致(=resize する)。 */\nexport function glCanvasMatchesSize(\n glMap: any,\n canvas: { width: number; height: number },\n size: [number, number],\n): boolean {\n const pr = glPixelRatio(glMap);\n return (\n Math.abs(canvas.width / pr - size[0]) < 1 &&\n Math.abs(canvas.height / pr - size[1]) < 1\n );\n}\n","import Layer from \"ol/layer/Layer\";\r\nimport { toLonLat } from \"ol/proj\";\r\nimport { glCanvasMatchesSize } from \"./gl_canvas_size\";\r\n\r\nexport class MapboxLayer extends Layer {\r\n constructor(options: any) {\r\n // m6-t9 §3.4 (実装レビュー round2 H-AC5-2): layer_maplibre.ts と同型のガードを\r\n // 予防的に適用する(実運用での顕在化は未確認。差分適用が効いているため潜在化している\r\n // と推測されるのみで、根本原因の確証は maplibre 側のみ)\r\n let lastAppliedStyle: unknown;\r\n const render = function (frameState: any) {\r\n // @ts-expect-error ts-migrate(2683) FIXME: 'this' implicitly has type 'any' because it does n... Remove this comment to see the full error message\r\n const source = this.getSource();\r\n const mbMap = source.mapboxMap;\r\n if (!mbMap) {\r\n console.error('MapboxLayer: mapboxMap is undefined!');\r\n return null;\r\n }\r\n if (source.style !== lastAppliedStyle) {\r\n mbMap.setStyle(source.style);\r\n lastAppliedStyle = source.style;\r\n }\r\n const canvas = mbMap.getCanvas();\r\n const viewState = frameState.viewState;\r\n \r\n // Debug canvas position\r\n // console.log('Mapbox canvas position:', {\r\n // canvasWidth: canvas.width,\r\n // canvasHeight: canvas.height,\r\n // canvasOffsetLeft: canvas.offsetLeft,\r\n // canvasOffsetTop: canvas.offsetTop,\r\n // canvasStyle: {\r\n // top: canvas.style.top,\r\n // left: canvas.style.left,\r\n // position: canvas.style.position\r\n // }\r\n // });\r\n\r\n // @ts-expect-error ts-migrate(2683) FIXME: 'this' implicitly has type 'any' because it does n... Remove this comment to see the full error message\r\n const visible = this.getVisible();\r\n canvas.style.display = visible ? \"block\" : \"none\";\r\n\r\n // @ts-expect-error ts-migrate(2683) FIXME: 'this' implicitly has type 'any' because it does n... Remove this comment to see the full error message\r\n const opacity = this.getOpacity();\r\n canvas.style.opacity = opacity;\r\n\r\n // oct26-m2-t2(MaplatCore #100): MapLibreLayer.render() と同型の canvas 同期 2 点を移植する。\r\n // (b) canvas を OpenLayers の viewport 左上へ絶対配置する。\r\n canvas.style.position = 'absolute';\r\n canvas.style.left = '0';\r\n canvas.style.top = '0';\r\n\r\n // (a) canvas 寸法を frameState.size へ同期する(MapLibreLayer と同じ比較式。GL の画素比で割って CSS ピクセル同士で比べる(#107))。\r\n // 下の「view 不変なら早期 return」より前に置く: view が動かずコンテナ寸法だけが変わった場合にも\r\n // 同期させるため。resize した frame は早期 return せず、同期描画まで進める。\r\n let resized = false;\r\n if (frameState.size) {\r\n const [width, height] = frameState.size;\r\n if (!glCanvasMatchesSize(mbMap, canvas, [width, height])) {\r\n mbMap.resize();\r\n resized = true;\r\n }\r\n }\r\n\r\n // adjust view parameters in mapbox\r\n const newBearing = (viewState.rotation * -180) / Math.PI;\r\n const newLonLat = toLonLat(viewState.center);\r\n const newZoom = viewState.zoom - 1;\r\n\r\n const nowBearing = mbMap.getBearing();\r\n const nowLonLat = mbMap.getCenter().toArray();\r\n const nowZoom = mbMap.getZoom();\r\n\r\n if (\r\n !resized &&\r\n newBearing == nowBearing &&\r\n newLonLat[0] == nowLonLat[0] &&\r\n newLonLat[1] == nowLonLat[1] &&\r\n newZoom == nowZoom\r\n ) {\r\n return canvas;\r\n }\r\n\r\n if (newBearing != nowBearing) {\r\n mbMap.rotateTo(newBearing, {\r\n animate: false\r\n });\r\n }\r\n if (\r\n newLonLat[0] != nowLonLat[0] ||\r\n newLonLat[1] != nowLonLat[1] ||\r\n newZoom != nowZoom\r\n ) {\r\n mbMap.jumpTo({\r\n center: newLonLat,\r\n zoom: newZoom,\r\n animate: false\r\n });\r\n }\r\n\r\n // cancel the scheduled update & trigger synchronous redraw\r\n // see https://github.com/mapbox/mapbox-gl-js/issues/7893#issue-408992184\r\n // NOTE: THIS MIGHT BREAK WHEN UPDATING MAPBOX\r\n if (mbMap._frame) {\r\n mbMap._frame.cancel();\r\n mbMap._frame = null;\r\n }\r\n\r\n mbMap._render();\r\n\r\n return canvas;\r\n };\r\n super({\r\n render,\r\n source: options.source\r\n });\r\n }\r\n}\r\n","import Layer from \"ol/layer/Layer\";\nimport { toLonLat } from \"ol/proj\";\nimport { glCanvasMatchesSize } from \"./gl_canvas_size\";\n\nexport class MapLibreLayer extends Layer {\n constructor(options: any) {\n // m6-t9 §3.4 (実装レビュー round2 H-AC5-2): render() は OpenLayers のレンダーフレーム\n // ごとに呼ばれる。setStyle は差分が無くても呼ぶたびスタイル再構築(スプライト再取得含む)を\n // 検討するコストを持つため、直前に適用した style と同一なら呼ばない(実運用スタイル\n // =MapTiler v3-openmaptiles でのちらつきの根本原因と特定済み)\n let lastAppliedStyle: unknown;\n const render = function (frameState: any) {\n // @ts-expect-error ts-migrate(2683) FIXME: 'this' implicitly has type 'any' because it does n... Remove this comment to see the full error message\n const source = this.getSource();\n const mlMap = source.maplibreMap;\n if (!mlMap) {\n console.error('MapLibreLayer: maplibreMap is undefined!');\n return null;\n }\n if (source.style !== lastAppliedStyle) {\n mlMap.setStyle(source.style);\n lastAppliedStyle = source.style;\n }\n const canvas = mlMap.getCanvas();\n const viewState = frameState.viewState;\n \n // Debug frameState and canvas position\n // const container = mlMap.getContainer();\n // console.log('MapLibre render state:', {\n // frameState: {\n // pixelRatio: frameState.pixelRatio,\n // size: frameState.size,\n // viewHints: frameState.viewHints,\n // animate: frameState.animate\n // },\n // canvas: {\n // width: canvas.width,\n // height: canvas.height,\n // offsetLeft: canvas.offsetLeft,\n // offsetTop: canvas.offsetTop,\n // style: {\n // top: canvas.style.top,\n // left: canvas.style.left,\n // position: canvas.style.position,\n // transform: canvas.style.transform\n // }\n // },\n // container: {\n // offsetTop: container.offsetTop,\n // offsetLeft: container.offsetLeft,\n // clientHeight: container.clientHeight,\n // clientWidth: container.clientWidth\n // }\n // });\n\n // @ts-expect-error ts-migrate(2683) FIXME: 'this' implicitly has type 'any' because it does n... Remove this comment to see the full error message\n const visible = this.getVisible();\n canvas.style.display = visible ? \"block\" : \"none\";\n\n // @ts-expect-error ts-migrate(2683) FIXME: 'this' implicitly has type 'any' because it does n... Remove this comment to see the full error message\n const opacity = this.getOpacity();\n canvas.style.opacity = opacity;\n\n // adjust view parameters in maplibre\n const rotation = viewState.rotation;\n const newBearing = (-rotation * 180) / Math.PI;\n const currentBearing = mlMap.getBearing();\n \n if (Math.abs(newBearing - currentBearing) > 0.01) {\n // mlMap.setBearing은 easing과 함께 천천히 회전하는 효과를 내지만 그렇게 하면 안되기 때문에...\n // stop을 호출한 상태에서 setBearing을 실행합니다.\n mlMap.stop();\n mlMap.setBearing(newBearing);\n }\n\n const center = toLonLat(viewState.center);\n const zoom = viewState.zoom - 1;\n \n if (\n mlMap.getCenter().toArray().toString() !== center.toString() ||\n mlMap.getZoom() !== zoom\n ) {\n mlMap.jumpTo({\n center,\n zoom,\n animate: false\n });\n }\n\n // cancel the scheduled update & trigger synchronous redraw\n // see https://github.com/mapbox/mapbox-gl-js/issues/7893#issue-408992184\n // NOTE: THIS MIGHT BREAK WHEN UPDATING MAPLIBRE\n if (mlMap._frame) {\n mlMap._frame.cancel();\n mlMap._frame = null;\n }\n\n // Ensure map size is correct\n if (frameState.size) {\n const [width, height] = frameState.size;\n // nov26-m4-t2(#107): GL の画素比で割って CSS ピクセル同士で比べる\n if (!glCanvasMatchesSize(mlMap, canvas, [width, height])) {\n // console.log('MapLibre size mismatch, resizing:', {\n // current: { width: canvas.width, height: canvas.height },\n // expected: { width, height }\n // });\n mlMap.resize();\n }\n }\n \n // Force immediate render\n mlMap._render();\n \n // Additional sync to ensure MapLibre zoom is properly set\n // This might be needed because MapLibre handles zoom differently than Mapbox\n if (Math.abs(mlMap.getZoom() - zoom) > 0.01) {\n // console.log('MapLibre zoom mismatch after render, forcing sync');\n mlMap.setZoom(zoom);\n }\n\n // Ensure canvas is properly positioned\n canvas.style.position = 'absolute';\n canvas.style.left = '0';\n canvas.style.top = '0';\n \n return canvas;\n };\n super({\n render,\n source: options.source\n });\n }\n}","export default \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAiCAYAAAA6RwvCAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAABBF0RVh0WE1MOmNvbS5hZG9iZS54bXAAPD94cGFja2V0IGJlZ2luPSIgICAiIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4KPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNC4xLWMwMzQgNDYuMjcyOTc2LCBTYXQgSmFuIDI3IDIwMDcgMjI6MTE6NDEgICAgICAgICI+CiAgIDxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+CiAgICAgIDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiCiAgICAgICAgICAgIHhtbG5zOnhhcD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLyI+CiAgICAgICAgIDx4YXA6Q3JlYXRvclRvb2w+QWRvYmUgRmlyZXdvcmtzIENTMzwveGFwOkNyZWF0b3JUb29sPgogICAgICAgICA8eGFwOkNyZWF0ZURhdGU+MjAxMS0xMC0yNlQyMTo1MjoxOFo8L3hhcDpDcmVhdGVEYXRlPgogICAgICAgICA8eGFwOk1vZGlmeURhdGU+MjAxMS0xMC0yN1QxNzo0MjowN1o8L3hhcDpNb2RpZnlEYXRlPgogICAgICA8L3JkZjpEZXNjcmlwdGlvbj4KICAgICAgPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIKICAgICAgICAgICAgeG1sbnM6ZGM9Imh0dHA6Ly9wdXJsLm9yZy9kYy9lbGVtZW50cy8xLjEvIj4KICAgICAgICAgPGRjOmZvcm1hdD5pbWFnZS9wbmc8L2RjOmZvcm1hdD4KICAgICAgPC9yZGY6RGVzY3JpcHRpb24+CiAgIDwvcmRmOlJERj4KPC94OnhtcG1ldGE+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgkVIwmwAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTM5jWRgMAAAAWdEVYdENyZWF0aW9uIFRpbWUAMTAvMjYvMTHjwOqVAAARQHByVld4nMWbB3wURdvAd6/u3V6/27sts/PMQQhFpEU6SlNBRXqTfgkkQOhFSigHIgIWkJqAIJ1QBCz0KkJoQYrSQaQjioBKC+XezWU5fH2/3+/L8fu+fWd3bubZKf95nnlmdjeX2/dk602qD9UnooRc5YjkKp9KyIrkZikfkazcSFaWcuZmpUZScyOpWcqZm6rkU3OTIpGk3EhS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3A+wRp0aZ45hT/ZzzGJPIizV6+JT3q/K+UUkoppZ5Tl9rnzXTvZS/51pTrIJewYX0bzb5r+vfUX7X2ebU/rDnUmslszXqN0v99bSO/80ff/EtrIayb9PNrKMs56kf84zG7v5Te6HqW1yytUb8m7mzNaVbmv4r9stz7I1/WPPKc9sIzuc6ebST3XjlnDZd7OSawd7MmvNs6y5nriXWP9WbWmvq6UoX3Ota9TCttV8f0GZBXXqMep8R6JfdJl73upTKfo+6XbG+j/s9aG7ZmP75rNPZXvNzHLegjrPOtCT9WL+yXY17/tyH3IRB7GXXMtcq0VabZ8xrZt/8TQZzR/ZH/R2U+R33+P8X/GX/2/pB24py9GY74M//JWBN+ar36nJd7Avh6VKf0QbdPXs/yyrDRPhP3sz9znXmPynyutvB/30cpn1CmPC8x1jF+MpbRnteGn1Ivwhg3+I8AG9O+EHNt938fc3KP8pj/+X8i8yj1+93/szKfq2P+z7kdO/R+knUt9fEpfYO/iMs8tlX4MbtnGLbk/TrnYcZw4mLntDV7nfgz9yiPlYN/a/EhbSdtyp7ZyP+jMp/zLsh+W9YpfUffzrpij9FYRdxMr+fX/dn7wZpwwpbqlWHUg7mk+zfn8tE3GM/350Z59TDaQN+LTBsTP/Oelbn3tUtoab1APb70v1JKKaWUUkoppZRSSl1NOxERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERGRO+Qfh5eOajemXSYAAAFTbWtCVPrOyv4Af1WJAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB4nO3W4WmDYBSGUQdxEQdxEBdxEAdxEQexvIELt6Yh/4oJ54FDm0/7601szlOSJEmSJEmSJEmSJEmSJEmSJEkf0XEc577vT+c5y7V397+6T/dvXddzHMdzmqbHz+wY/Sz31L11FsuyPF7HMAx/vod077JjlX2zYXatzfs9tX/VN7/+je5ftut7Vjnrn+V6nX37xt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jb20veGFwLzEuMC8iPgogICAgICAgICA8eGFwOkNyZWF0b3JUb29sPkFkb2JlIEZpcmV3b3JrcyBDUzM8L3hhcDpDcmVhdG9yVG9vbD4KICAgICAgICAgPHhhcDpDcmVhdGVEYXRlPjIwMTEtMTAtMjZUMjE6NTI6MThaPC94YXA6Q3JlYXRlRGF0ZT4KICAgICAgICAgPHhhcDpNb2RpZnlEYXRlPjIwMTEtMTEtMTNUMDU6MDk6MTVaPC94YXA6TW9kaWZ5RGF0ZT4KICAgICAgPC9yZGY6RGVzY3JpcHRpb24+CiAgICAgIDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiCiAgICAgICAgICAgIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyI+CiAgICAgICAgIDxkYzpmb3JtYXQ+aW1hZ2UvcG5nPC9kYzpmb3JtYXQ+CiAgICAgIDwvcmRmOkRlc2NyaXB0aW9uPgogICA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgIAo8P3hwYWNrZXQgZW5kPSJ3Ij8+zWqGFQAACShJREFUWIWVmGusXFUVx39r73POzJy5M3fmPtrblj7p7btYGigGmojExISHQQ0miDFA4lc0SCBRNH4gRhNJ/aIfNAIxUkKIkMgjBBKMCHwQEGKhpbS39HXfve+5M3fmnr23H84+M7e1PDyTlbPPnDl7//da//Vf64zwBQ9jjCilAiDyFgIaUP4nFjDAMtACWtbaRGvtPmte59Lb8gUW137hGCgDFaDkrzMwrABRBxaAWWDeX7esteZyoD4XSJIkorXO+cV7gQFg9fMvLdz74bHm+hOnTP/QsOmeaxBYoJTDbF2n5wa36At7d+XOfOOW0uPAmLcpYN4Y0wyC4LIeuiwQ55wC8kA/sHF62tz5+F/mDz7zytKOTxpBMKsCEq1BCWjBiQAOcRAYQylpcWW0bG6/Kf/Rvd/rfmP1Kn0YOANMAksiYj8XiAcRew9se/ZvtR8/+seFr3xQj3QtDHGhQCCIFtAqDYxICkoEnAProGkpLDXZK3Xzw7vLr3/ztq5Hc5Ec9x6qXwpGPgXEWmDngz+/cOjJN+zmsSCPCwWJgFBB4Bf2HsmAiBI/o0AAGINML7NmYZ5b9+izj/y07/6eijoCjFwKpg3Ec6LgQex+4OELv33iLbdpJspBJBAKcXeRXCw0l6G+1Oh4QXVMsu9EkC4HocWOGqoTC9y2KRl55Cf9P+rrUe/nIhk2xjQyz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/8o6bCwtf6JXzEs7kgHKt7laNjCfrT59tbX333dpdJ4Zq68cnGuWpRRs3rCgjilhatjdvGtWyWuzri6bKFf1KVIhPlkpdx/v78yd3bo3G9+1Sjf/rJfwSMO2/JeZrtnJ2xKwaG09WzdeSSr2RxI1Gkm80ktAYbKDVUhDqOUTNONR4uRSO7d8TTe8aDJeMMebTQHwukMuAuuiPmqkZG05MmWBq1upGw7lSl2qtX6OX1g3oJaBljEk+a/GVx38B48qe/zjf0IEAAAAASUVORK5CYII=\"","export default \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAiCAYAAAA6RwvCAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAACC2lUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iWE1QIENvcmUgNS40LjAiPgogICA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPgogICAgICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgICAgICAgICB4bWxuczp0aWZmPSJodHRwOi8vbnMuYWRvYmUuY29tL3RpZmYvMS4wLyI+CiAgICAgICAgIDx0aWZmOlJlc29sdXRpb25Vbml0PjI8L3RpZmY6UmVzb2x1dGlvblVuaXQ+CiAgICAgICAgIDx0aWZmOkNvbXByZXNzaW9uPjE8L3RpZmY6Q29tcHJlc3Npb24+CiAgICAgICAgIDx0aWZmOk9yaWVudGF0aW9uPjE8L3RpZmY6T3JpZW50YXRpb24+CiAgICAgICAgIDx0aWZmOlBob3RvbWV0cmljSW50ZXJwcmV0YXRpb24+MjwvdGlmZjpQaG90b21ldHJpY0ludGVycHJldGF0aW9uPgogICAgICA8L3JkZjpEZXNjcmlwdGlvbj4KICAgPC9yZGY6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/e8vBPsYrtg2F6RQRZkVaSOycTcJEYpMjjfG+86t0/heLfwDVxeXi8JpGRAAAAABJRU5ErkJggg==\"","export default \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAwCAYAAAALiLqjAAAACXBIWXMAAAsTAAALEwEAmpwYAAAABGdBTUEAALGOfPtRkwAAACBjSFJNAAB6JQAAgIMAAPn/AACA6QAAdTAAAOpgAAA6mAAAF2+SX8VGAAAHq0lEQVR42oyW349dVRXHP2vvfc65v+bOnbml02H6c6AogVooYoSogaCR8IAREhOCURMh/gP6ROyT+iAmPvhGIhoT9M0XQIWQQOyDv7CKLZYisdPaDu208/v+OvfsvZcP55a2Kt67k/WwV9Za373Xd629tlR3THN1CYGCFtmu+2kNThExzS3z6QdSw2eTXYeOXFqbnTW+sHvmV9e2zx0/WYTtV2Yam6/bpLZ66coqobNEunAnwrXl+B9LtItmN39xwz3xzbz28H0dPyt0cqjmRIacXS+g/ugnnd14SodvHG/bt36Anv8FREAA/SCWddV0pFDQgohNtPngM93m0R8Nkof2q2ZCloMLpZkRyBTskKjCMN4639N9j2t+ZkqKC8dco+0RMwISbK21gLU1jKlQm55jOPW57+RTR48G3WfJtjFzQxo7I+kseCdoHsEr2AAyANMhxhrB3XU/Lm+lycqvrt1CsfWZ3RiTYlFs856n+u1nvx9DG7ItqrvhyEcs9x90HLzZ4mrCWg6hA0QF4yEWIF1Qh2aHP5EVf+1U14/9zg1WcP33sUmlTvR9vHG7O61vPVeYu9roOkwLtyxaHrvb8dUHUu5ddBRD5ey2sLmuMIhgI+gQYg7SAdr4uOOOdPDbl530VxGLybsb+N4qtn7nY0V230HMKqhiEpitCbcvWI4sOu5ZtNw2b5muAwmjHAMipaiCrBPcxxa09Zkni2jJC4PJu+vkg37VtB99Au9Bu0AgFrA1gH9eUk5fUE4vB5auRLr9q+kZFUYciUbQHHGBQfXzj2+udprbl1ZwtdYMQVv713sHD1PvAh7EQVdZWg68fEI4u6r4qJw4H7hwUaEHECAGi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BRWzRiorOOnT85YkgdkqJFYRA14TppKz1MQRTIOQdNnsC3LdjwLAzbn+jSevghFF6I9MBUMgswWZjaNDeGIMhAAiniSu0WoYmrVpkPUbAYzohyRJkOum4tVfgirEGFEtXwu9nsoP7K4DUFXGLlVCiIRYlnSMOkrFeF8XJ4gfVVBVohYjPCWqMInvZABAiBB8aRxiqZsIQDSONRKNiEZi9DfsJ/F1KhNQIBCJFMVwdKOISqkfC4CaCRAMqkLwwxEHAmqYxNfpBNdUjUQN5CGMSA+oRibxdXECpmKEGJToSw5i0FI3ga8TM95IjIJEvC+QCCIR6xRjJwCA8UyJCBqFwpd/Jo0jhidg2cUYJ0hRJMaAL8ofXIiBEK919pgbTNAtKEokjPpAiXZ0BR0PECaIH0CDMhyRrEEDAZ3E1zEBUeWHOOJHfYCJpc5O9NhNUKaqhKgMfTF6i5SopUzwFo3vRqMGoqB+lJMoGDXIRJ0sE3SyiUSJ+KudLBE1kUl8nZHxtWxEsBB98FfnVxQRZAJfd/H9y2ONvC/Yv7jfhTBEEFTVXb50BeeSCUgOk9QpTYG5/qBfdjXsBJoxhs2xAAvze8a8pIqI2bt3z4G9p0+/y7AI7Jjduf/AvsW9wImxAGklGQtgxLxj1X77tn2Hj15ZXXW/Off6d13iThkzvor+PQADkAvGWj3+bAAAAABJRU5ErkJggg==\"","/* eslint-disable @typescript-eslint/ban-ts-comment */\r\nimport { Feature, Map } from \"ol\";\r\nimport { View } from \"./view_ex\";\r\nimport { Group, Tile, Vector as layerVector } from \"ol/layer\";\r\nimport { Vector as sourceVector } from \"ol/source\";\r\nimport { Circle, LineString, Point, Polygon } from \"ol/geom\";\r\nimport { Fill, Icon, Stroke, Style } from \"ol/style\";\r\nimport { MapboxMap } from \"./source/mapboxmap\";\r\nimport { MapLibreMap } from \"./source/maplibremap\";\r\nimport { GoogleMap } from \"./source/googlemap\";\r\nimport { NowMap } from \"./source/nowmap\";\r\nimport { MapboxLayer } from \"./layer_mapbox\";\r\nimport { MapLibreLayer } from \"./layer_maplibre\";\r\nimport { normalizeArg } from \"./functions\";\r\n\r\n// @ts-ignore\r\nimport bluedot from \"../parts/bluedot.png\"; // @ts-ignore\r\nimport bluedot_transparent from \"../parts/bluedot_transparent.png\"; // @ts-ignore\r\nimport bluedot_small from \"../parts/bluedot_small.png\"; // @ts-ignore\r\nimport defaultpin from \"../parts/defaultpin.png\";\r\n\r\nconst gpsStyle = new Style({\r\n image: new Icon({\r\n anchor: [0.5, 0.5],\r\n anchorXUnits: 'fraction',\r\n anchorYUnits: 'fraction',\r\n src: bluedot\r\n })\r\n});\r\nconst gpsHideStyle = new Style({\r\n image: new Icon({\r\n anchor: [0.5, 0.5],\r\n anchorXUnits: 'fraction',\r\n anchorYUnits: 'fraction',\r\n src: bluedot_transparent\r\n })\r\n});\r\nconst gpsSubStyle = new Style({\r\n image: new Icon({\r\n anchor: [0.5, 0.5],\r\n anchorXUnits: 'fraction',\r\n anchorYUnits: 'fraction',\r\n src: bluedot_small\r\n })\r\n});\r\nconst accCircleStyle = new Style({\r\n fill: new Fill({\r\n color: [128, 128, 256, 0.2]\r\n }),\r\n stroke: new Stroke({\r\n color: [128, 128, 256, 1.0],\r\n width: 3\r\n })\r\n});\r\nconst markerDefaultStyle = new Style({\r\n image: new Icon({\r\n anchor: [0.5, 1.0],\r\n anchorXUnits: 'fraction',\r\n anchorYUnits: 'fraction',\r\n src: defaultpin\r\n })\r\n});\r\n\r\n/**\r\n * ピンの Style を icon(画像の URL・Icon の設定・Style)から作る。\r\n * 前面と背面でピンの見た目を 1 つの規則に保つため、setMarker と範囲外の描画が共有する。\r\n */\r\nexport function markerStyleFrom(icon: any): Style {\r\n if (!icon) return markerDefaultStyle;\r\n if (icon instanceof Style) return icon;\r\n if (typeof icon == \"string\") {\r\n return new Style({\r\n image: new Icon({\r\n anchor: [0.5, 1.0],\r\n anchorXUnits: 'fraction',\r\n anchorYUnits: 'fraction',\r\n src: icon\r\n })\r\n });\r\n }\r\n return new Style({\r\n image: new Icon(icon)\r\n });\r\n}\r\n\r\nexport class MaplatMap extends Map {\r\n fakeGps: any;\r\n fakeRadius: any;\r\n geolocation: any;\r\n homePosition: any;\r\n northUp: boolean;\r\n tapDuration: number;\r\n homeMarginPixels: number;\r\n tapUIVanish: boolean;\r\n alwaysGpsOn: boolean;\r\n private __ignore_first_move: boolean;\r\n\r\n constructor(optOptions: any) {\r\n optOptions = normalizeArg(optOptions || {});\r\n const vectorLayer = new layerVector({\r\n source: new sourceVector({\r\n wrapX: false\r\n })\r\n });\r\n vectorLayer.set(\"name\", \"gps\");\r\n const markerLayer = new layerVector({\r\n source: new sourceVector({\r\n wrapX: false\r\n })\r\n });\r\n markerLayer.set(\"name\", \"marker\");\r\n const featureLayer = new layerVector({\r\n source: new sourceVector({\r\n wrapX: false\r\n })\r\n });\r\n featureLayer.set(\"name\", \"feature\");\r\n const envelopeLayer = new layerVector({\r\n source: new sourceVector({\r\n wrapX: false\r\n })\r\n });\r\n envelopeLayer.set(\"name\", \"envelope\");\r\n const baseLayer = MaplatMap.spawnLayer(\r\n null,\r\n optOptions.source,\r\n optOptions.target\r\n );\r\n const overlayLayer = new Group();\r\n overlayLayer.set(\"name\", \"overlay\");\r\n const controls = optOptions.controls ? optOptions.controls : [];\r\n const options = {\r\n controls,\r\n layers: [\r\n baseLayer,\r\n overlayLayer,\r\n envelopeLayer,\r\n featureLayer,\r\n vectorLayer,\r\n markerLayer\r\n ],\r\n target: optOptions.div,\r\n view: new View({\r\n center: optOptions.defaultCenter || [0, 0],\r\n zoom: optOptions.defaultZoom || 2,\r\n rotation: optOptions.defaultRotation || 0,\r\n multiWorld: true\r\n })\r\n };\r\n if (optOptions.interactions) {\r\n (options as any).interactions = optOptions.interactions;\r\n }\r\n super(options);\r\n this.fakeGps = optOptions.fakeGps;\r\n this.fakeRadius = optOptions.fakeRadius;\r\n this.homePosition = optOptions.homePosition;\r\n this.northUp = optOptions.northUp;\r\n this.tapDuration = optOptions.tapDuration;\r\n this.homeMarginPixels = optOptions.homeMarginPixels;\r\n this.tapUIVanish = optOptions.tapUIVanish;\r\n this.alwaysGpsOn = optOptions.alwaysGpsOn || false;\r\n const view = this.getView();\r\n this.__ignore_first_move = true;\r\n const movestart = () => {\r\n if (!this.__ignore_first_move) this.dispatchEvent(\"movestart\");\r\n this.__ignore_first_move = false;\r\n view.un(\"propertychange\", movestart);\r\n };\r\n view.on(\"propertychange\", movestart);\r\n this.on(\"moveend\", () => {\r\n view.on(\"propertychange\", movestart);\r\n });\r\n \r\n // Debug zoom changes\r\n view.on('change:resolution', () => {\r\n const source = this.getSource();\r\n if (source && (source instanceof MapboxMap || source instanceof MapLibreMap)) {\r\n // console.log('View zoom change:', {\r\n // baseMapType: source.constructor.name,\r\n // viewZoom: view.getZoom(),\r\n // resolution: view.getResolution()\r\n // });\r\n }\r\n });\r\n }\r\n // WMTS-like tile sources start their tile grid at source.minZoom. Rendering\r\n // them at view zooms far below that makes OpenLayers enumerate the whole\r\n // viewport in z=minZoom tiles (4^minZoom times the viewport), freezing the\r\n // renderer — and no tiles exist below minZoom anyway. Gate the layer at\r\n // minZoom - 4: within 4 levels the minZoom tiles are upscaled to fill the\r\n // view (enumeration stays within 256x the viewport), below that the layer is\r\n // simply hidden. The gate must be reset when the same layer is reused for a\r\n // source without such a grid (e.g. Maplat maps), hence the else branch.\r\n static applyWmtsZoomGate(layer: any, source: any) {\r\n const minZoom =\r\n source && typeof source.isWmts === \"function\" && source.isWmts()\r\n ? source.minZoom\r\n : undefined;\r\n if (typeof minZoom === \"number\" && Number.isFinite(minZoom) && minZoom > 4) {\r\n layer.setMinZoom(minZoom - 4);\r\n } else {\r\n layer.setMinZoom(-Infinity);\r\n }\r\n }\r\n static spawnLayer(layer: any, source: any, container: any) {\r\n if (source instanceof MapboxMap || source instanceof MapLibreMap || !(layer instanceof Tile)) {\r\n if (source instanceof MapboxMap) {\r\n layer = new MapboxLayer({\r\n style: source.style,\r\n accessToken: source.accessToken,\r\n container,\r\n source\r\n });\r\n } else if (source instanceof MapLibreMap) {\r\n layer = new MapLibreLayer({\r\n style: source.style,\r\n container,\r\n source\r\n });\r\n } else {\r\n layer = new Tile({\r\n source\r\n });\r\n MaplatMap.applyWmtsZoomGate(layer, source);\r\n }\r\n layer.set(\"name\", \"base\");\r\n } else {\r\n layer.setSource(source);\r\n MaplatMap.applyWmtsZoomGate(layer, source);\r\n }\r\n return layer;\r\n }\r\n getLayer(name = \"base\") {\r\n const recur = (layers: any) => {\r\n const filtered = layers\r\n .getArray()\r\n .map((layer: any) => {\r\n if (layer.get(\"name\") == name) return layer;\r\n if (layer.getLayers) return recur(layer.getLayers());\r\n return;\r\n })\r\n .filter((layer: any) => layer);\r\n if (filtered.length == 0) return;\r\n return filtered[0];\r\n };\r\n return recur(this.getLayers());\r\n }\r\n getSource(name = \"base\") {\r\n const layer = this.getLayer(name);\r\n if (!layer) return;\r\n return layer.getSource();\r\n }\r\n setFeature(data: any, style: any, layer: any) {\r\n const src = this.getSource(layer);\r\n const feature = new Feature(data);\r\n if (style) {\r\n feature.setStyle(style);\r\n }\r\n src.addFeature(feature);\r\n return feature;\r\n }\r\n removeFeature(feature: any, layer: any) {\r\n const src = this.getSource(layer);\r\n src.removeFeature(feature);\r\n }\r\n resetFeature(layer: any) {\r\n const src = this.getSource(layer);\r\n src.clear();\r\n }\r\n setGPSPosition(pos: any, type: any = undefined) {\r\n const style =\r\n type == \"sub\" ? gpsSubStyle : type == \"hide\" ? gpsHideStyle : gpsStyle;\r\n if (type != \"sub\") {\r\n this.resetFeature(\"gps\");\r\n }\r\n if (pos) {\r\n this.setFeature(\r\n {\r\n geometry: new Point(pos.xy)\r\n },\r\n style,\r\n \"gps\"\r\n );\r\n if (!type) {\r\n this.setFeature(\r\n {\r\n geometry: new Circle(pos.xy, pos.rad)\r\n },\r\n accCircleStyle,\r\n \"gps\"\r\n );\r\n }\r\n }\r\n }\r\n setMarker(xy: any, data: any, markerStyle: any, layer: any) {\r\n if (!layer) layer = \"marker\";\r\n data[\"geometry\"] = new Point(xy);\r\n return this.setFeature(data, markerStyleFrom(markerStyle), layer);\r\n }\r\n resetMarker(layer: any) {\r\n if (!layer) layer = \"marker\";\r\n this.resetFeature(layer);\r\n }\r\n setLine(xys: any, stroke: any, layer: any) {\r\n // Ready for Polygon\r\n return this.setVector(xys, \"Line\", stroke ? { stroke } : null, layer);\r\n }\r\n setVector(coords: any, type = \"Line\", style: any, layer: any) {\r\n // Ready for Polygon\r\n if (!layer) layer = \"feature\";\r\n const option = {};\r\n if (style.stroke != null) (option as any).stroke = new Stroke(style.stroke);\r\n if (style.fill != null) (option as any).fill = new Fill(style.fill);\r\n const styleObj = new Style(option);\r\n const geometry =\r\n type === \"Line\" ? new LineString(coords) : new Polygon(coords);\r\n return this.setFeature(\r\n {\r\n geometry,\r\n name: type\r\n },\r\n styleObj,\r\n layer\r\n );\r\n }\r\n resetLine(layer: any) {\r\n // Ready for Polygon\r\n this.resetVector(layer);\r\n }\r\n resetVector(layer: any) {\r\n // Ready for Polygon\r\n if (!layer) layer = \"feature\";\r\n this.resetFeature(layer);\r\n }\r\n setEnvelope(xys: any, stroke: any, layer: any) {\r\n if (!layer) layer = \"envelope\";\r\n return this.setLine(xys, stroke, layer);\r\n }\r\n removeEnvelope(feature: any, layer: any) {\r\n if (!layer) layer = \"envelope\";\r\n this.removeFeature(feature, layer);\r\n }\r\n resetEnvelope(layer: any) {\r\n if (!layer) layer = \"envelope\";\r\n this.resetFeature(layer);\r\n }\r\n setFillEnvelope(xys: any, stroke: any, fill: any, layer: any) {\r\n if (!layer) layer = \"envelope\";\r\n let style: (Style | undefined);\r\n if (stroke != null || fill != null) {\r\n const option = {};\r\n if (stroke != null) (option as any).stroke = new Stroke(stroke);\r\n if (fill != null) (option as any).fill = new Fill(fill);\r\n style = new Style(option);\r\n }\r\n return this.setFeature(\r\n {\r\n geometry: new Polygon([xys])\r\n },\r\n style,\r\n layer\r\n );\r\n }\r\n exchangeSource(source: any = undefined) {\r\n const layers = this.getLayers();\r\n const prevLayer = layers.item(0);\r\n const layer = MaplatMap.spawnLayer(prevLayer, source, this.getTarget());\r\n if (layer != prevLayer) layers.setAt(0, layer);\r\n if (source) {\r\n source.setMap(this);\r\n }\r\n }\r\n setLayer(source: any = undefined) {\r\n const layers = this.getLayer(\"overlay\").getLayers();\r\n layers.clear();\r\n if (source) {\r\n // console.log('Creating TMS overlay layer:', {\r\n // sourceType: source.constructor.name,\r\n // mapID: source.mapID,\r\n // maxZoom: source.maxZoom,\r\n // minZoom: source.minZoom,\r\n // tileGrid: source.getTileGrid()\r\n // });\r\n const layer = new Tile({\r\n source\r\n });\r\n MaplatMap.applyWmtsZoomGate(layer, source);\r\n layers.push(layer);\r\n }\r\n }\r\n setTransparency(percentage: any) {\r\n const opacity = (100 - percentage) / 100;\r\n const source = this.getSource();\r\n if (source instanceof NowMap || source instanceof GoogleMap) {\r\n this.getLayers().item(0).setOpacity(1);\r\n this.getLayers().item(1).setOpacity(opacity);\r\n } else {\r\n this.getLayers().item(0).setOpacity(opacity);\r\n }\r\n }\r\n setGPSMarker(position: any, ignoreMove: any) {\r\n // alert(\"ol.MaplatMap.prototype.setGPSMarker\");\r\n const source = (this.getLayers().item(0) as any).getSource();\r\n source.setGPSMarker(position, ignoreMove);\r\n }\r\n}\r\n","/**\n * @module ol/MapBrowserEventType\n */\nimport EventType from './events/EventType.js';\n\n/**\n * Constants for event names.\n * @enum {string}\n */\nexport default {\n /**\n * A true single click with no dragging and no double click. Note that this\n * event is delayed by 250 ms to ensure that it is not a double click.\n * @event module:ol/MapBrowserEvent~MapBrowserEvent#singleclick\n * @api\n */\n SINGLECLICK: 'singleclick',\n\n /**\n * A click with no dragging. A double click will fire two of this.\n * @event module:ol/MapBrowserEvent~MapBrowserEvent#click\n * @api\n */\n CLICK: EventType.CLICK,\n\n /**\n * A true double click, with no dragging.\n * @event module:ol/MapBrowserEvent~MapBrowserEvent#dblclick\n * @api\n */\n DBLCLICK: EventType.DBLCLICK,\n\n /**\n * Triggered when a pointer is dragged.\n * @event module:ol/MapBrowserEvent~MapBrowserEvent#pointerdrag\n * @api\n */\n POINTERDRAG: 'pointerdrag',\n\n /**\n * Triggered when a pointer is moved. Note that on touch devices this is\n * triggered when the map is panned, so is not the same as mousemove.\n * @event module:ol/MapBrowserEvent~MapBrowserEvent#pointermove\n * @api\n */\n POINTERMOVE: 'pointermove',\n\n POINTERDOWN: 'pointerdown',\n POINTERUP: 'pointerup',\n POINTEROVER: 'pointerover',\n POINTEROUT: 'pointerout',\n POINTERENTER: 'pointerenter',\n POINTERLEAVE: 'pointerleave',\n POINTERCANCEL: 'pointercancel',\n};\n\n/***\n * @typedef {'singleclick'|'click'|'dblclick'|'pointerdrag'|'pointermove'} Types\n */\n","/**\n * @module ol/interaction/Property\n */\n\n/**\n * @enum {string}\n */\nexport default {\n ACTIVE: 'active',\n};\n","/**\n * @module ol/interaction/Interaction\n */\nimport BaseObject from '../Object.js';\nimport {easeOut, linear} from '../easing.js';\nimport InteractionProperty from './Property.js';\n\n/***\n * @template Return\n * @typedef {import(\"../Observable.js\").OnSignature &\n * import(\"../Observable.js\").OnSignature &\n * import(\"../Observable.js\").CombinedOnSignature} InteractionOnSignature\n */\n\n/**\n * Object literal with config options for interactions.\n * @typedef {Object} InteractionOptions\n * @property {function(import(\"../MapBrowserEvent.js\").default):boolean} [handleEvent]\n * Method called by the map to notify the interaction that a browser event was\n * dispatched to the map. If the function returns a falsy value, propagation of\n * the event to other interactions in the map's interactions chain will be\n * prevented (this includes functions with no explicit return). The interactions\n * are traversed in reverse order of the interactions collection of the map.\n */\n\n/**\n * @classdesc\n * Abstract base class; normally only used for creating subclasses and not\n * instantiated in apps.\n * User actions that change the state of the map. Some are similar to controls,\n * but are not associated with a DOM element.\n * For example, {@link module:ol/interaction/KeyboardZoom~KeyboardZoom} is\n * functionally the same as {@link module:ol/control/Zoom~Zoom}, but triggered\n * by a keyboard event not a button element event.\n * Although interactions do not have a DOM element, some of them do render\n * vectors and so are visible on the screen.\n * @api\n */\nclass Interaction extends BaseObject {\n /**\n * @param {InteractionOptions} [options] Options.\n */\n constructor(options) {\n super();\n\n /***\n * @type {InteractionOnSignature}\n */\n this.on;\n\n /***\n * @type {InteractionOnSignature}\n */\n this.once;\n\n /***\n * @type {InteractionOnSignature}\n */\n this.un;\n\n if (options && options.handleEvent) {\n this.handleEvent = options.handleEvent;\n }\n\n /**\n * @private\n * @type {import(\"../Map.js\").default|null}\n */\n this.map_ = null;\n\n this.setActive(true);\n }\n\n /**\n * Return whether the interaction is currently active.\n * @return {boolean} `true` if the interaction is active, `false` otherwise.\n * @observable\n * @api\n */\n getActive() {\n return /** @type {boolean} */ (this.get(InteractionProperty.ACTIVE));\n }\n\n /**\n * Get the map associated with this interaction.\n * @return {import(\"../Map.js\").default|null} Map.\n * @api\n */\n getMap() {\n return this.map_;\n }\n\n /**\n * Handles the {@link module:ol/MapBrowserEvent~MapBrowserEvent map browser event}.\n * @param {import(\"../MapBrowserEvent.js\").default} mapBrowserEvent Map browser event.\n * @return {boolean} `false` to stop event propagation.\n * @api\n */\n handleEvent(mapBrowserEvent) {\n return true;\n }\n\n /**\n * Activate or deactivate the interaction.\n * @param {boolean} active Active.\n * @observable\n * @api\n */\n setActive(active) {\n this.set(InteractionProperty.ACTIVE, active);\n }\n\n /**\n * Remove the interaction from its current map and attach it to the new map.\n * Subclasses may set up event handlers to get notified about changes to\n * the map here.\n * @param {import(\"../Map.js\").default|null} map Map.\n */\n setMap(map) {\n this.map_ = map;\n }\n}\n\n/**\n * @param {import(\"../View.js\").default} view View.\n * @param {import(\"../coordinate.js\").Coordinate} delta Delta.\n * @param {number} [duration] Duration.\n */\nexport function pan(view, delta, duration) {\n const currentCenter = view.getCenterInternal();\n if (currentCenter) {\n const center = [currentCenter[0] + delta[0], currentCenter[1] + delta[1]];\n view.animateInternal({\n duration: duration !== undefined ? duration : 250,\n easing: linear,\n center: view.getConstrainedCenter(center),\n });\n }\n}\n\n/**\n * @param {import(\"../View.js\").default} view View.\n * @param {number} delta Delta from previous zoom level.\n * @param {import(\"../coordinate.js\").Coordinate} [anchor] Anchor coordinate in the user projection.\n * @param {number} [duration] Duration.\n */\nexport function zoomByDelta(view, delta, anchor, duration) {\n const currentZoom = view.getZoom();\n\n if (currentZoom === undefined) {\n return;\n }\n\n const newZoom = view.getConstrainedZoom(currentZoom + delta);\n if (newZoom === undefined) {\n return;\n }\n const newResolution = view.getResolutionForZoom(newZoom);\n if (newResolution === undefined) {\n return;\n }\n\n if (view.getAnimating()) {\n view.cancelAnimations();\n }\n view.animate({\n resolution: newResolution,\n anchor: anchor,\n duration: duration !== undefined ? duration : 250,\n easing: easeOut,\n });\n}\n\nexport default Interaction;\n","/**\n * @module ol/CollectionEventType\n */\n\n/**\n * @enum {string}\n */\nexport default {\n /**\n * Triggered when an item is added to the collection.\n * @event module:ol/Collection.CollectionEvent#add\n * @api\n */\n ADD: 'add',\n /**\n * Triggered when an item is removed from the collection.\n * @event module:ol/Collection.CollectionEvent#remove\n * @api\n */\n REMOVE: 'remove',\n};\n","/**\n * @module ol/Collection\n */\nimport CollectionEventType from './CollectionEventType.js';\nimport BaseObject from './Object.js';\nimport Event from './events/Event.js';\n\n/**\n * @enum {string}\n * @private\n */\nconst Property = {\n LENGTH: 'length',\n};\n\n/**\n * @classdesc\n * Events emitted by {@link module:ol/Collection~Collection} instances are instances of this\n * type.\n * @template T\n */\nexport class CollectionEvent extends Event {\n /**\n * @param {import(\"./CollectionEventType.js\").default} type Type.\n * @param {T} element Element.\n * @param {number} index The index of the added or removed element.\n */\n constructor(type, element, index) {\n super(type);\n\n /**\n * The element that is added to or removed from the collection.\n * @type {T}\n * @api\n */\n this.element = element;\n\n /**\n * The index of the added or removed element.\n * @type {number}\n * @api\n */\n this.index = index;\n }\n}\n\n/***\n * @template T\n * @template Return\n * @typedef {import(\"./Observable.js\").OnSignature &\n * import(\"./Observable.js\").OnSignature &\n * import(\"./Observable.js\").OnSignature<'add'|'remove', CollectionEvent, Return> &\n * import(\"./Observable.js\").CombinedOnSignature} CollectionOnSignature\n */\n\n/**\n * @typedef {Object} Options\n * @property {boolean} [unique=false] Disallow the same item from being added to\n * the collection twice.\n */\n\n/**\n * @classdesc\n * An expanded version of standard JS Array, adding convenience methods for\n * manipulation. Add and remove changes to the Collection trigger a Collection\n * event. Note that this does not cover changes to the objects _within_ the\n * Collection; they trigger events on the appropriate object, not on the\n * Collection as a whole.\n *\n * @fires CollectionEvent\n *\n * @template T\n * @api\n */\nclass Collection extends BaseObject {\n /**\n * @param {Array} [array] Array.\n * @param {Options} [options] Collection options.\n */\n constructor(array, options) {\n super();\n\n /***\n * @type {CollectionOnSignature}\n */\n this.on;\n\n /***\n * @type {CollectionOnSignature}\n */\n this.once;\n\n /***\n * @type {CollectionOnSignature}\n */\n this.un;\n\n options = options || {};\n\n /**\n * @private\n * @type {boolean}\n */\n this.unique_ = !!options.unique;\n\n /**\n * @private\n * @type {!Array}\n */\n this.array_ = array ?? [];\n\n if (this.unique_) {\n for (let i = 1, ii = this.array_.length; i < ii; ++i) {\n this.assertUnique_(this.array_[i], i);\n }\n }\n\n this.updateLength_();\n }\n\n /**\n * Remove all elements from the collection.\n * @api\n */\n clear() {\n while (this.getLength() > 0) {\n this.pop();\n }\n }\n\n /**\n * Add elements to the collection. This pushes each item in the provided array\n * to the end of the collection.\n * @param {!Array} arr Array.\n * @return {Collection} This collection.\n * @api\n */\n extend(arr) {\n for (let i = 0, ii = arr.length; i < ii; ++i) {\n this.push(arr[i]);\n }\n return this;\n }\n\n /**\n * Iterate over each element, calling the provided callback.\n * @param {function(T, number, Array): *} f The function to call\n * for every element. This function takes 3 arguments (the element, the\n * index and the array). The return value is ignored.\n * @api\n */\n forEach(f) {\n const array = this.array_;\n for (let i = 0, ii = array.length; i < ii; ++i) {\n f(array[i], i, array);\n }\n }\n\n /**\n * Get a reference to the underlying Array object. Warning: if the array\n * is mutated, no events will be dispatched by the collection, and the\n * collection's \"length\" property won't be in sync with the actual length\n * of the array.\n * @return {!Array} Array.\n * @api\n */\n getArray() {\n return this.array_;\n }\n\n /**\n * Get the element at the provided index.\n * @param {number} index Index.\n * @return {T} Element.\n * @api\n */\n item(index) {\n return this.array_[index];\n }\n\n /**\n * Get the length of this collection.\n * @return {number} The length of the array.\n * @observable\n * @api\n */\n getLength() {\n return this.get(Property.LENGTH);\n }\n\n /**\n * Insert an element at the provided index.\n * @param {number} index Index.\n * @param {T} elem Element.\n * @api\n */\n insertAt(index, elem) {\n if (index < 0 || index > this.getLength()) {\n throw new Error('Index out of bounds: ' + index);\n }\n if (this.unique_) {\n this.assertUnique_(elem);\n }\n this.array_.splice(index, 0, elem);\n this.updateLength_();\n this.dispatchEvent(\n new CollectionEvent(CollectionEventType.ADD, elem, index),\n );\n }\n\n /**\n * Remove the last element of the collection and return it.\n * Return `undefined` if the collection is empty.\n * @return {T|undefined} Element.\n * @api\n */\n pop() {\n return this.removeAt(this.getLength() - 1);\n }\n\n /**\n * Insert the provided element at the end of the collection.\n * @param {T} elem Element.\n * @return {number} New length of the collection.\n * @api\n */\n push(elem) {\n const n = this.getLength();\n this.insertAt(n, elem);\n return this.getLength();\n }\n\n /**\n * Remove the first occurrence of an element from the collection.\n * @param {T} elem Element.\n * @return {T|undefined} The removed element or undefined if none found.\n * @api\n */\n remove(elem) {\n const arr = this.array_;\n for (let i = 0, ii = arr.length; i < ii; ++i) {\n if (arr[i] === elem) {\n return this.removeAt(i);\n }\n }\n return undefined;\n }\n\n /**\n * Remove the element at the provided index and return it.\n * Return `undefined` if the collection does not contain this index.\n * @param {number} index Index.\n * @return {T|undefined} Value.\n * @api\n */\n removeAt(index) {\n if (index < 0 || index >= this.getLength()) {\n return undefined;\n }\n const prev = this.array_[index];\n this.array_.splice(index, 1);\n this.updateLength_();\n this.dispatchEvent(\n /** @type {CollectionEvent} */ (\n new CollectionEvent(CollectionEventType.REMOVE, prev, index)\n ),\n );\n return prev;\n }\n\n /**\n * Set the element at the provided index.\n * @param {number} index Index.\n * @param {T} elem Element.\n * @api\n */\n setAt(index, elem) {\n const n = this.getLength();\n if (index >= n) {\n this.insertAt(index, elem);\n return;\n }\n if (index < 0) {\n throw new Error('Index out of bounds: ' + index);\n }\n if (this.unique_) {\n this.assertUnique_(elem, index);\n }\n const prev = this.array_[index];\n this.array_[index] = elem;\n this.dispatchEvent(\n /** @type {CollectionEvent} */ (\n new CollectionEvent(CollectionEventType.REMOVE, prev, index)\n ),\n );\n this.dispatchEvent(\n /** @type {CollectionEvent} */ (\n new CollectionEvent(CollectionEventType.ADD, elem, index)\n ),\n );\n }\n\n /**\n * @private\n */\n updateLength_() {\n this.set(Property.LENGTH, this.array_.length);\n }\n\n /**\n * @private\n * @param {T} elem Element.\n * @param {number} [except] Optional index to ignore.\n */\n assertUnique_(elem, except) {\n const array = this.array_;\n for (let i = 0, ii = array.length; i < ii; ++i) {\n if (array[i] === elem && i !== except) {\n throw new Error('Duplicate item added to a unique collection');\n }\n }\n }\n}\n\nexport default Collection;\n","/**\n * @module ol/Kinetic\n */\n\n/**\n * @classdesc\n * Implementation of inertial deceleration for map movement.\n *\n * @api\n */\nclass Kinetic {\n /**\n * @param {number} decay Rate of decay (must be negative).\n * @param {number} minVelocity Minimum velocity (pixels/millisecond).\n * @param {number} delay Delay to consider to calculate the kinetic\n * initial values (milliseconds).\n */\n constructor(decay, minVelocity, delay) {\n /**\n * @private\n * @type {number}\n */\n this.decay_ = decay;\n\n /**\n * @private\n * @type {number}\n */\n this.minVelocity_ = minVelocity;\n\n /**\n * @private\n * @type {number}\n */\n this.delay_ = delay;\n\n /**\n * @private\n * @type {Array}\n */\n this.points_ = [];\n\n /**\n * @private\n * @type {number}\n */\n this.angle_ = 0;\n\n /**\n * @private\n * @type {number}\n */\n this.initialVelocity_ = 0;\n }\n\n /**\n * FIXME empty description for jsdoc\n */\n begin() {\n this.points_.length = 0;\n this.angle_ = 0;\n this.initialVelocity_ = 0;\n }\n\n /**\n * @param {number} x X.\n * @param {number} y Y.\n */\n update(x, y) {\n this.points_.push(x, y, Date.now());\n }\n\n /**\n * @return {boolean} Whether we should do kinetic animation.\n */\n end() {\n if (this.points_.length < 6) {\n // at least 2 points are required (i.e. there must be at least 6 elements\n // in the array)\n return false;\n }\n const delay = Date.now() - this.delay_;\n const lastIndex = this.points_.length - 3;\n if (this.points_[lastIndex + 2] < delay) {\n // the last tracked point is too old, which means that the user stopped\n // panning before releasing the map\n return false;\n }\n\n // get the first point which still falls into the delay time\n let firstIndex = lastIndex - 3;\n while (firstIndex > 0 && this.points_[firstIndex + 2] > delay) {\n firstIndex -= 3;\n }\n\n const duration = this.points_[lastIndex + 2] - this.points_[firstIndex + 2];\n // we don't want a duration of 0 (divide by zero)\n // we also make sure the user panned for a duration of at least one frame\n // (1/60s) to compute sane displacement values\n if (duration < 1000 / 60) {\n return false;\n }\n\n const dx = this.points_[lastIndex] - this.points_[firstIndex];\n const dy = this.points_[lastIndex + 1] - this.points_[firstIndex + 1];\n this.angle_ = Math.atan2(dy, dx);\n this.initialVelocity_ = Math.sqrt(dx * dx + dy * dy) / duration;\n return this.initialVelocity_ > this.minVelocity_;\n }\n\n /**\n * @return {number} Total distance travelled (pixels).\n */\n getDistance() {\n return (this.minVelocity_ - this.initialVelocity_) / this.decay_;\n }\n\n /**\n * @return {number} Angle of the kinetic panning animation (radians).\n */\n getAngle() {\n return this.angle_;\n }\n}\n\nexport default Kinetic;\n","/**\n * @module ol/interaction/DoubleClickZoom\n */\nimport MapBrowserEventType from '../MapBrowserEventType.js';\nimport Interaction, {zoomByDelta} from './Interaction.js';\n\n/**\n * @typedef {Object} Options\n * @property {number} [duration=250] Animation duration in milliseconds.\n * @property {number} [delta=1] The zoom delta applied on each double click.\n */\n\n/**\n * @classdesc\n * Allows the user to zoom by double-clicking on the map.\n * @api\n */\nclass DoubleClickZoom extends Interaction {\n /**\n * @param {Options} [options] Options.\n */\n constructor(options) {\n super();\n\n options = options ? options : {};\n\n /**\n * @private\n * @type {number}\n */\n this.delta_ = options.delta ? options.delta : 1;\n\n /**\n * @private\n * @type {number}\n */\n this.duration_ = options.duration !== undefined ? options.duration : 250;\n }\n\n /**\n * Handles the {@link module:ol/MapBrowserEvent~MapBrowserEvent map browser event} (if it was a\n * doubleclick) and eventually zooms the map.\n * @param {import(\"../MapBrowserEvent.js\").default} mapBrowserEvent Map browser event.\n * @return {boolean} `false` to stop event propagation.\n * @override\n */\n handleEvent(mapBrowserEvent) {\n let stopEvent = false;\n if (mapBrowserEvent.type == MapBrowserEventType.DBLCLICK) {\n const browserEvent = /** @type {MouseEvent} */ (\n mapBrowserEvent.originalEvent\n );\n const map = mapBrowserEvent.map;\n const anchor = mapBrowserEvent.coordinate;\n const delta = browserEvent.shiftKey ? -this.delta_ : this.delta_;\n const view = map.getView();\n zoomByDelta(view, delta, anchor, this.duration_);\n browserEvent.preventDefault();\n stopEvent = true;\n }\n return !stopEvent;\n }\n}\n\nexport default DoubleClickZoom;\n","/**\n * @module ol/has\n */\n\nconst ua =\n typeof navigator !== 'undefined' && typeof navigator.userAgent !== 'undefined'\n ? navigator.userAgent.toLowerCase()\n : '';\n\n/**\n * User agent string says we are dealing with Safari as browser.\n * @type {boolean}\n */\nexport const SAFARI = ua.includes('safari') && !ua.includes('chrom');\n\n/**\n * https://bugs.webkit.org/show_bug.cgi?id=237906\n * @type {boolean}\n */\nexport const SAFARI_BUG_237906 =\n SAFARI &&\n (ua.includes('version/15.4') ||\n /cpu (os|iphone os) 15_4 like mac os x/.test(ua));\n\n/**\n * User agent string says we are dealing with a WebKit engine.\n * @type {boolean}\n */\nexport const WEBKIT = ua.includes('webkit') && !ua.includes('edge');\n\n/**\n * User agent string says we are dealing with a Mac as platform.\n * @type {boolean}\n */\nexport const MAC = ua.includes('macintosh');\n\n/**\n * The ratio between physical pixels and device-independent pixels\n * (dips) on the device (`window.devicePixelRatio`).\n * @const\n * @type {number}\n * @api\n */\nexport const DEVICE_PIXEL_RATIO =\n typeof devicePixelRatio !== 'undefined' ? devicePixelRatio : 1;\n\n/**\n * The execution context is a worker with OffscreenCanvas available.\n * @const\n * @type {boolean}\n */\nexport const WORKER_OFFSCREEN_CANVAS =\n typeof WorkerGlobalScope !== 'undefined' &&\n typeof OffscreenCanvas !== 'undefined' &&\n self instanceof WorkerGlobalScope; //eslint-disable-line\n\n/**\n * Image.prototype.decode() is supported.\n * @type {boolean}\n */\nexport const IMAGE_DECODE =\n typeof Image !== 'undefined' && Image.prototype.decode;\n\n/**\n * createImageBitmap() is supported.\n * @type {boolean}\n */\nexport const CREATE_IMAGE_BITMAP = typeof createImageBitmap === 'function';\n\n/**\n * @type {boolean}\n */\nexport const PASSIVE_EVENT_LISTENERS = (function () {\n let passive = false;\n try {\n const options = Object.defineProperty({}, 'passive', {\n get: function () {\n passive = true;\n },\n });\n\n // @ts-ignore Ignore invalid event type '_'\n window.addEventListener('_', null, options);\n // @ts-ignore Ignore invalid event type '_'\n window.removeEventListener('_', null, options);\n } catch {\n // passive not supported\n }\n return passive;\n})();\n","/**\n * @module ol/events/condition\n */\nimport MapBrowserEventType from '../MapBrowserEventType.js';\nimport {FALSE, TRUE} from '../functions.js';\nimport {MAC, WEBKIT} from '../has.js';\n\n/**\n * A function that takes a {@link module:ol/MapBrowserEvent~MapBrowserEvent} and returns a\n * `{boolean}`. If the condition is met, true should be returned.\n *\n * @typedef {function(this: ?, import(\"../MapBrowserEvent.js\").default): boolean} Condition\n */\n\n/**\n * Creates a condition function that passes when all provided conditions pass.\n * @param {...Condition} var_args Conditions to check.\n * @return {Condition} Condition function.\n */\nexport function all(var_args) {\n const conditions = arguments;\n /**\n * @param {import(\"../MapBrowserEvent.js\").default} event Event.\n * @return {boolean} All conditions passed.\n */\n return function (event) {\n let pass = true;\n for (let i = 0, ii = conditions.length; i < ii; ++i) {\n pass = pass && conditions[i](event);\n if (!pass) {\n break;\n }\n }\n return pass;\n };\n}\n\n/**\n * Return `true` if only the alt-key is pressed, `false` otherwise (e.g. when\n * additionally the shift-key is pressed).\n *\n * @param {import(\"../MapBrowserEvent.js\").default} mapBrowserEvent Map browser event.\n * @return {boolean} True if only the alt key is pressed.\n * @api\n */\nexport const altKeyOnly = function (mapBrowserEvent) {\n const originalEvent = mapBrowserEvent.originalEvent;\n return (\n originalEvent.altKey &&\n !(originalEvent.metaKey || originalEvent.ctrlKey) &&\n !originalEvent.shiftKey\n );\n};\n\n/**\n * Return `true` if only the alt-key and shift-key is pressed, `false` otherwise\n * (e.g. when additionally the platform-modifier-key is pressed).\n *\n * @param {import(\"../MapBrowserEvent.js\").default} mapBrowserEvent Map browser event.\n * @return {boolean} True if only the alt and shift keys are pressed.\n * @api\n */\nexport const altShiftKeysOnly = function (mapBrowserEvent) {\n const originalEvent = mapBrowserEvent.originalEvent;\n return (\n originalEvent.altKey &&\n !(originalEvent.metaKey || originalEvent.ctrlKey) &&\n originalEvent.shiftKey\n );\n};\n\n/**\n * Return `true` if the map has the focus. This condition requires a map target\n * element with a `tabindex` attribute, e.g. `
`.\n *\n * @param {import(\"../MapBrowserEvent.js\").default} event Map browser event.\n * @return {boolean} The map has the focus.\n * @api\n */\nexport const focus = function (event) {\n const targetElement = event.map.getTargetElement();\n if (!targetElement) {\n return false;\n }\n const rootNode = targetElement.getRootNode();\n const activeElement = event.map.getOwnerDocument().activeElement;\n\n return rootNode instanceof ShadowRoot\n ? rootNode.host.contains(activeElement)\n : targetElement.contains(activeElement);\n};\n\n/**\n * Return `true` if the map has the focus or no 'tabindex' attribute set.\n *\n * @param {import(\"../MapBrowserEvent.js\").default} event Map browser event.\n * @return {boolean} The map container has the focus or no 'tabindex' attribute.\n */\nexport const focusWithTabindex = function (event) {\n const targetElement = event.map.getTargetElement();\n if (!targetElement) {\n return true;\n }\n const rootNode = targetElement.getRootNode();\n const tabIndexCandidate =\n rootNode instanceof ShadowRoot ? rootNode.host : targetElement;\n\n return tabIndexCandidate.hasAttribute('tabindex') ? focus(event) : true;\n};\n\n/**\n * Return always true.\n *\n * @param {import(\"../MapBrowserEvent.js\").default} mapBrowserEvent Map browser event.\n * @return {boolean} True.\n * @api\n */\nexport const always = TRUE;\n\n/**\n * Return `true` if the event is a `click` event, `false` otherwise.\n *\n * @param {import(\"../MapBrowserEvent.js\").default} mapBrowserEvent Map browser event.\n * @return {boolean} True if the event is a map `click` event.\n * @api\n */\nexport const click = function (mapBrowserEvent) {\n return mapBrowserEvent.type == MapBrowserEventType.CLICK;\n};\n\n/**\n * Return `true` if the event has an \"action\"-producing mouse button.\n *\n * By definition, this includes left-click on windows/linux, and left-click\n * without the ctrl key on Macs.\n *\n * @param {import(\"../MapBrowserEvent.js\").default} mapBrowserEvent Map browser event.\n * @return {boolean} The result.\n */\nexport const mouseActionButton = function (mapBrowserEvent) {\n const originalEvent = mapBrowserEvent.originalEvent;\n return (\n 'pointerId' in originalEvent &&\n originalEvent.button == 0 &&\n !(WEBKIT && MAC && originalEvent.ctrlKey)\n );\n};\n\n/**\n * Return always false.\n *\n * @param {import(\"../MapBrowserEvent.js\").default} mapBrowserEvent Map browser event.\n * @return {boolean} False.\n * @api\n */\nexport const never = FALSE;\n\n/**\n * Return `true` if the browser event is a `pointermove` event, `false`\n * otherwise.\n *\n * @param {import(\"../MapBrowserEvent.js\").default} mapBrowserEvent Map browser event.\n * @return {boolean} True if the browser event is a `pointermove` event.\n * @api\n */\nexport const pointerMove = function (mapBrowserEvent) {\n return mapBrowserEvent.type == 'pointermove';\n};\n\n/**\n * Return `true` if the event is a map `singleclick` event, `false` otherwise.\n *\n * @param {import(\"../MapBrowserEvent.js\").default} mapBrowserEvent Map browser event.\n * @return {boolean} True if the event is a map `singleclick` event.\n * @api\n */\nexport const singleClick = function (mapBrowserEvent) {\n return mapBrowserEvent.type == MapBrowserEventType.SINGLECLICK;\n};\n\n/**\n * Return `true` if the event is a map `dblclick` event, `false` otherwise.\n *\n * @param {import(\"../MapBrowserEvent.js\").default} mapBrowserEvent Map browser event.\n * @return {boolean} True if the event is a map `dblclick` event.\n * @api\n */\nexport const doubleClick = function (mapBrowserEvent) {\n return mapBrowserEvent.type == MapBrowserEventType.DBLCLICK;\n};\n\n/**\n * Return `true` if no modifier key (alt-, shift- or platform-modifier-key) is\n * pressed.\n *\n * @param {import(\"../MapBrowserEvent.js\").default} mapBrowserEvent Map browser event.\n * @return {boolean} True only if there no modifier keys are pressed.\n * @api\n */\nexport const noModifierKeys = function (mapBrowserEvent) {\n const originalEvent = /** @type {KeyboardEvent|MouseEvent|TouchEvent} */ (\n mapBrowserEvent.originalEvent\n );\n return (\n !originalEvent.altKey &&\n !(originalEvent.metaKey || originalEvent.ctrlKey) &&\n !originalEvent.shiftKey\n );\n};\n\n/**\n * Return `true` if only the platform-modifier-key (the meta-key on Mac,\n * ctrl-key otherwise) is pressed, `false` otherwise (e.g. when additionally\n * the shift-key is pressed).\n *\n * @param {import(\"../MapBrowserEvent.js\").default} mapBrowserEvent Map browser event.\n * @return {boolean} True if only the platform modifier key is pressed.\n * @api\n */\nexport const platformModifierKeyOnly = function (mapBrowserEvent) {\n const originalEvent = mapBrowserEvent.originalEvent;\n return (\n !originalEvent.altKey &&\n (MAC ? originalEvent.metaKey : originalEvent.ctrlKey) &&\n !originalEvent.shiftKey\n );\n};\n\n/**\n * Return `true` if the platform-modifier-key (the meta-key on Mac,\n * ctrl-key otherwise) is pressed.\n *\n * @param {import(\"../MapBrowserEvent.js\").default} mapBrowserEvent Map browser event.\n * @return {boolean} True if the platform modifier key is pressed.\n * @api\n */\nexport const platformModifierKey = function (mapBrowserEvent) {\n const originalEvent = mapBrowserEvent.originalEvent;\n return MAC ? originalEvent.metaKey : originalEvent.ctrlKey;\n};\n\n/**\n * Return `true` if only the shift-key is pressed, `false` otherwise (e.g. when\n * additionally the alt-key is pressed).\n *\n * @param {import(\"../MapBrowserEvent.js\").default} mapBrowserEvent Map browser event.\n * @return {boolean} True if only the shift key is pressed.\n * @api\n */\nexport const shiftKeyOnly = function (mapBrowserEvent) {\n const originalEvent = mapBrowserEvent.originalEvent;\n return (\n !originalEvent.altKey &&\n !(originalEvent.metaKey || originalEvent.ctrlKey) &&\n originalEvent.shiftKey\n );\n};\n\n/**\n * Return `true` if the target element is not editable, i.e. not an `input`,\n * `select`, or `textarea` element and no `contenteditable` attribute is\n * set or inherited, `false` otherwise.\n *\n * @param {import(\"../MapBrowserEvent.js\").default} mapBrowserEvent Map browser event.\n * @return {boolean} True only if the target element is not editable.\n * @api\n */\nexport const targetNotEditable = function (mapBrowserEvent) {\n const originalEvent = mapBrowserEvent.originalEvent;\n const tagName = /** @type {Element} */ (originalEvent.target).tagName;\n return (\n tagName !== 'INPUT' &&\n tagName !== 'SELECT' &&\n tagName !== 'TEXTAREA' &&\n // `isContentEditable` is only available on `HTMLElement`, but it may also be a\n // different type like `SVGElement`.\n // @ts-ignore\n !originalEvent.target.isContentEditable\n );\n};\n\n/**\n * Return `true` if the event originates from a mouse device.\n *\n * @param {import(\"../MapBrowserEvent.js\").default} mapBrowserEvent Map browser event.\n * @return {boolean} True if the event originates from a mouse device.\n * @api\n */\nexport const mouseOnly = function (mapBrowserEvent) {\n const pointerEvent = mapBrowserEvent.originalEvent;\n // see https://www.w3.org/TR/pointerevents/#widl-PointerEvent-pointerType\n return 'pointerId' in pointerEvent && pointerEvent.pointerType == 'mouse';\n};\n\n/**\n * Return `true` if the event originates from a touchable device.\n *\n * @param {import(\"../MapBrowserEvent.js\").default} mapBrowserEvent Map browser event.\n * @return {boolean} True if the event originates from a touchable device.\n * @api\n */\nexport const touchOnly = function (mapBrowserEvent) {\n const pointerEvt = mapBrowserEvent.originalEvent;\n // see https://www.w3.org/TR/pointerevents/#widl-PointerEvent-pointerType\n return 'pointerId' in pointerEvt && pointerEvt.pointerType === 'touch';\n};\n\n/**\n * Return `true` if the event originates from a digital pen.\n *\n * @param {import(\"../MapBrowserEvent.js\").default} mapBrowserEvent Map browser event.\n * @return {boolean} True if the event originates from a digital pen.\n * @api\n */\nexport const penOnly = function (mapBrowserEvent) {\n const pointerEvt = mapBrowserEvent.originalEvent;\n // see https://www.w3.org/TR/pointerevents/#widl-PointerEvent-pointerType\n return 'pointerId' in pointerEvt && pointerEvt.pointerType === 'pen';\n};\n\n/**\n * Return `true` if the event originates from a primary pointer in\n * contact with the surface or if the left mouse button is pressed.\n * See https://www.w3.org/TR/pointerevents/#button-states.\n *\n * @param {import(\"../MapBrowserEvent.js\").default} mapBrowserEvent Map browser event.\n * @return {boolean} True if the event originates from a primary pointer.\n * @api\n */\nexport const primaryAction = function (mapBrowserEvent) {\n const pointerEvent = mapBrowserEvent.originalEvent;\n return (\n 'pointerId' in pointerEvent &&\n pointerEvent.isPrimary &&\n pointerEvent.button === 0\n );\n};\n","/**\n * @module ol/interaction/Pointer\n */\nimport MapBrowserEventType from '../MapBrowserEventType.js';\nimport Interaction from './Interaction.js';\n\n/**\n * @typedef {Object} Options\n * @property {function(import(\"../MapBrowserEvent.js\").default):boolean} [handleDownEvent]\n * Function handling \"down\" events. If the function returns `true` then a drag\n * sequence is started.\n * @property {function(import(\"../MapBrowserEvent.js\").default):void} [handleDragEvent]\n * Function handling \"drag\" events. This function is called on \"move\" events\n * during a drag sequence.\n * @property {function(import(\"../MapBrowserEvent.js\").default):boolean} [handleEvent]\n * Method called by the map to notify the interaction that a browser event was\n * dispatched to the map. The function may return `false` to prevent the\n * propagation of the event to other interactions in the map's interactions\n * chain.\n * @property {function(import(\"../MapBrowserEvent.js\").default):void} [handleMoveEvent]\n * Function handling \"move\" events. This function is called on \"move\" events.\n * This functions is also called during a drag sequence, so during a drag\n * sequence both the `handleDragEvent` function and this function are called.\n * If `handleDownEvent` is defined and it returns true this function will not\n * be called during a drag sequence.\n * @property {function(import(\"../MapBrowserEvent.js\").default):boolean} [handleUpEvent]\n * Function handling \"up\" events. If the function returns `false` then the\n * current drag sequence is stopped.\n * @property {function(boolean):boolean} [stopDown]\n * Should the down event be propagated to other interactions, or should be\n * stopped?\n */\n\n/**\n * @classdesc\n * Base class that calls user-defined functions on `down`, `move` and `up`\n * events. This class also manages \"drag sequences\".\n *\n * When the `handleDownEvent` user function returns `true` a drag sequence is\n * started. During a drag sequence the `handleDragEvent` user function is\n * called on `move` events. The drag sequence ends when the `handleUpEvent`\n * user function is called and returns `false`.\n * @api\n */\nclass PointerInteraction extends Interaction {\n /**\n * @param {Options} [options] Options.\n */\n constructor(options) {\n options = options ? options : {};\n\n super(\n /** @type {import(\"./Interaction.js\").InteractionOptions} */ (options),\n );\n\n if (options.handleDownEvent) {\n this.handleDownEvent = options.handleDownEvent;\n }\n\n if (options.handleDragEvent) {\n this.handleDragEvent = options.handleDragEvent;\n }\n\n if (options.handleMoveEvent) {\n this.handleMoveEvent = options.handleMoveEvent;\n }\n\n if (options.handleUpEvent) {\n this.handleUpEvent = options.handleUpEvent;\n }\n\n if (options.stopDown) {\n this.stopDown = options.stopDown;\n }\n\n /**\n * @type {boolean}\n * @protected\n */\n this.handlingDownUpSequence = false;\n\n /**\n * @type {Array}\n * @protected\n */\n this.targetPointers = [];\n }\n\n /**\n * Returns the current number of pointers involved in the interaction,\n * e.g. `2` when two fingers are used.\n * @return {number} The number of pointers.\n * @api\n */\n getPointerCount() {\n return this.targetPointers.length;\n }\n\n /**\n * Handle pointer down events.\n * @param {import(\"../MapBrowserEvent.js\").default} mapBrowserEvent Event.\n * @return {boolean} If the event was consumed.\n * @protected\n */\n handleDownEvent(mapBrowserEvent) {\n return false;\n }\n\n /**\n * Handle pointer drag events.\n * @param {import(\"../MapBrowserEvent.js\").default} mapBrowserEvent Event.\n * @protected\n */\n handleDragEvent(mapBrowserEvent) {}\n\n /**\n * Handles the {@link module:ol/MapBrowserEvent~MapBrowserEvent map browser event} and may call into\n * other functions, if event sequences like e.g. 'drag' or 'down-up' etc. are\n * detected.\n * @param {import(\"../MapBrowserEvent.js\").default} mapBrowserEvent Map browser event.\n * @return {boolean} `false` to stop event propagation.\n * @api\n * @override\n */\n handleEvent(mapBrowserEvent) {\n if (!mapBrowserEvent.originalEvent) {\n return true;\n }\n\n let stopEvent = false;\n this.updateTrackedPointers_(mapBrowserEvent);\n if (this.handlingDownUpSequence) {\n if (mapBrowserEvent.type == MapBrowserEventType.POINTERDRAG) {\n this.handleDragEvent(mapBrowserEvent);\n // prevent page scrolling during dragging\n mapBrowserEvent.originalEvent.preventDefault();\n } else if (mapBrowserEvent.type == MapBrowserEventType.POINTERUP) {\n const handledUp = this.handleUpEvent(mapBrowserEvent);\n this.handlingDownUpSequence =\n handledUp && this.targetPointers.length > 0;\n }\n } else {\n if (mapBrowserEvent.type == MapBrowserEventType.POINTERDOWN) {\n const handled = this.handleDownEvent(mapBrowserEvent);\n this.handlingDownUpSequence = handled;\n stopEvent = this.stopDown(handled);\n } else if (mapBrowserEvent.type == MapBrowserEventType.POINTERMOVE) {\n this.handleMoveEvent(mapBrowserEvent);\n }\n }\n return !stopEvent;\n }\n\n /**\n * Handle pointer move events.\n * @param {import(\"../MapBrowserEvent.js\").default} mapBrowserEvent Event.\n * @protected\n */\n handleMoveEvent(mapBrowserEvent) {}\n\n /**\n * Handle pointer up events.\n * @param {import(\"../MapBrowserEvent.js\").default} mapBrowserEvent Event.\n * @return {boolean} If the event was consumed.\n * @protected\n */\n handleUpEvent(mapBrowserEvent) {\n return false;\n }\n\n /**\n * This function is used to determine if \"down\" events should be propagated\n * to other interactions or should be stopped.\n * @param {boolean} handled Was the event handled by the interaction?\n * @return {boolean} Should the `down` event be stopped?\n */\n stopDown(handled) {\n return handled;\n }\n\n /**\n * @param {import(\"../MapBrowserEvent.js\").default} mapBrowserEvent Event.\n * @private\n */\n updateTrackedPointers_(mapBrowserEvent) {\n if (mapBrowserEvent.activePointers) {\n this.targetPointers = mapBrowserEvent.activePointers;\n }\n }\n}\n\n/**\n * @param {Array} pointerEvents List of events.\n * @return {{clientX: number, clientY: number}} Centroid pixel.\n */\nexport function centroid(pointerEvents) {\n const length = pointerEvents.length;\n let clientX = 0;\n let clientY = 0;\n for (let i = 0; i < length; i++) {\n clientX += pointerEvents[i].clientX;\n clientY += pointerEvents[i].clientY;\n }\n return {clientX: clientX / length, clientY: clientY / length};\n}\n\nexport default PointerInteraction;\n","/**\n * @module ol/interaction/DragPan\n */\nimport {\n rotate as rotateCoordinate,\n scale as scaleCoordinate,\n} from '../coordinate.js';\nimport {easeOut} from '../easing.js';\nimport {\n all,\n focusWithTabindex,\n noModifierKeys,\n primaryAction,\n} from '../events/condition.js';\nimport {FALSE} from '../functions.js';\nimport PointerInteraction, {\n centroid as centroidFromPointers,\n} from './Pointer.js';\n\n/**\n * @typedef {Object} Options\n * @property {import(\"../events/condition.js\").Condition} [condition] A function that takes a {@link module:ol/MapBrowserEvent~MapBrowserEvent} and returns a boolean\n * to indicate whether that event should be handled.\n * Default is {@link module:ol/events/condition.noModifierKeys} and {@link module:ol/events/condition.primaryAction}.\n * @property {boolean} [onFocusOnly=false] When the map's target has a `tabindex` attribute set,\n * the interaction will only handle events when the map has the focus.\n * @property {import(\"../Kinetic.js\").default} [kinetic] Kinetic inertia to apply to the pan.\n */\n\n/**\n * @classdesc\n * Allows the user to pan the map by dragging the map.\n * @api\n */\nclass DragPan extends PointerInteraction {\n /**\n * @param {Options} [options] Options.\n */\n constructor(options) {\n super({\n stopDown: FALSE,\n });\n\n options = options ? options : {};\n\n /**\n * @private\n * @type {import(\"../Kinetic.js\").default|undefined}\n */\n this.kinetic_ = options.kinetic;\n\n /**\n * @type {import(\"../pixel.js\").Pixel|null}\n */\n this.lastCentroid = null;\n\n /**\n * @type {number}\n * @private\n */\n this.lastPointersCount_;\n\n /**\n * @type {boolean}\n * @private\n */\n this.panning_ = false;\n\n const condition = options.condition\n ? options.condition\n : all(noModifierKeys, primaryAction);\n\n /**\n * @private\n * @type {import(\"../events/condition.js\").Condition}\n */\n this.condition_ = options.onFocusOnly\n ? all(focusWithTabindex, condition)\n : condition;\n\n /**\n * @private\n * @type {boolean}\n */\n this.noKinetic_ = false;\n }\n\n /**\n * Handle pointer drag events.\n * @param {import(\"../MapBrowserEvent.js\").default} mapBrowserEvent Event.\n * @override\n */\n handleDragEvent(mapBrowserEvent) {\n const map = mapBrowserEvent.map;\n if (!this.panning_) {\n this.panning_ = true;\n map.getView().beginInteraction();\n }\n const targetPointers = this.targetPointers;\n const centroid = map.getEventPixel(centroidFromPointers(targetPointers));\n if (targetPointers.length == this.lastPointersCount_) {\n if (this.kinetic_) {\n this.kinetic_.update(centroid[0], centroid[1]);\n }\n if (this.lastCentroid) {\n const delta = [\n this.lastCentroid[0] - centroid[0],\n centroid[1] - this.lastCentroid[1],\n ];\n const map = mapBrowserEvent.map;\n const view = map.getView();\n const resolution = view.getResolution();\n if (resolution !== undefined) {\n scaleCoordinate(delta, resolution);\n rotateCoordinate(delta, view.getRotation());\n view.adjustCenterInternal(delta);\n }\n }\n } else if (this.kinetic_) {\n // reset so we don't overestimate the kinetic energy after\n // after one finger down, tiny drag, second finger down\n this.kinetic_.begin();\n }\n this.lastCentroid = centroid;\n this.lastPointersCount_ = targetPointers.length;\n mapBrowserEvent.originalEvent.preventDefault();\n }\n\n /**\n * Handle pointer up events.\n * @param {import(\"../MapBrowserEvent.js\").default} mapBrowserEvent Event.\n * @return {boolean} If the event was consumed.\n * @override\n */\n handleUpEvent(mapBrowserEvent) {\n const map = mapBrowserEvent.map;\n const view = map.getView();\n if (this.targetPointers.length === 0) {\n if (!this.noKinetic_ && this.kinetic_ && this.kinetic_.end()) {\n const distance = this.kinetic_.getDistance();\n const angle = this.kinetic_.getAngle();\n const center = view.getCenterInternal();\n if (center) {\n const centerpx = /** @type {import(\"../pixel.js\").Pixel} */ (\n map.getPixelFromCoordinateInternal(center)\n );\n const dest = map.getCoordinateFromPixelInternal([\n centerpx[0] - distance * Math.cos(angle),\n centerpx[1] - distance * Math.sin(angle),\n ]);\n view.animateInternal({\n center: view.getConstrainedCenter(\n /** @type {import(\"../coordinate.js\").Coordinate} */ (dest),\n ),\n duration: 500,\n easing: easeOut,\n });\n }\n }\n if (this.panning_) {\n this.panning_ = false;\n view.endInteraction();\n }\n return false;\n }\n if (this.kinetic_) {\n // reset so we don't overestimate the kinetic energy after\n // after one finger up, tiny drag, second finger up\n this.kinetic_.begin();\n }\n this.lastCentroid = null;\n return true;\n }\n\n /**\n * Handle pointer down events.\n * @param {import(\"../MapBrowserEvent.js\").default} mapBrowserEvent Event.\n * @return {boolean} If the event was consumed.\n * @override\n */\n handleDownEvent(mapBrowserEvent) {\n if (this.targetPointers.length > 0 && this.condition_(mapBrowserEvent)) {\n const map = mapBrowserEvent.map;\n const view = map.getView();\n this.lastCentroid = null;\n // stop any current animation\n if (view.getAnimating()) {\n view.cancelAnimations();\n }\n if (this.kinetic_) {\n this.kinetic_.begin();\n }\n // No kinetic as soon as more than one pointer on the screen is\n // detected. This is to prevent nasty pans after pinch.\n this.noKinetic_ = this.targetPointers.length > 1;\n return true;\n }\n return false;\n }\n}\n\nexport default DragPan;\n","/**\n * @module ol/interaction/DragRotate\n */\nimport {\n altShiftKeysOnly,\n mouseActionButton,\n mouseOnly,\n} from '../events/condition.js';\nimport {FALSE} from '../functions.js';\nimport {disable} from '../rotationconstraint.js';\nimport PointerInteraction from './Pointer.js';\n\n/**\n * @typedef {Object} Options\n * @property {import(\"../events/condition.js\").Condition} [condition] A function that takes a\n * {@link module:ol/MapBrowserEvent~MapBrowserEvent} and returns a boolean\n * to indicate whether that event should be handled.\n * Default is {@link module:ol/events/condition.altShiftKeysOnly}.\n * @property {number} [duration=250] Animation duration in milliseconds.\n */\n\n/**\n * @classdesc\n * Allows the user to rotate the map by clicking and dragging on the map,\n * normally combined with a {@link module:ol/events/condition} that limits\n * it to when the alt and shift keys are held down.\n *\n * This interaction is only supported for mouse devices.\n * @api\n */\nclass DragRotate extends PointerInteraction {\n /**\n * @param {Options} [options] Options.\n */\n constructor(options) {\n options = options ? options : {};\n\n super({\n stopDown: FALSE,\n });\n\n /**\n * @private\n * @type {import(\"../events/condition.js\").Condition}\n */\n this.condition_ = options.condition ? options.condition : altShiftKeysOnly;\n\n /**\n * @private\n * @type {number|undefined}\n */\n this.lastAngle_ = undefined;\n\n /**\n * @private\n * @type {number}\n */\n this.duration_ = options.duration !== undefined ? options.duration : 250;\n }\n\n /**\n * Handle pointer drag events.\n * @param {import(\"../MapBrowserEvent.js\").default} mapBrowserEvent Event.\n * @override\n */\n handleDragEvent(mapBrowserEvent) {\n if (!mouseOnly(mapBrowserEvent)) {\n return;\n }\n\n const map = mapBrowserEvent.map;\n const view = map.getView();\n if (view.getConstraints().rotation === disable) {\n return;\n }\n const size = map.getSize();\n if (!size) {\n return;\n }\n const offset = mapBrowserEvent.pixel;\n const theta = Math.atan2(size[1] / 2 - offset[1], offset[0] - size[0] / 2);\n if (this.lastAngle_ !== undefined) {\n const delta = theta - this.lastAngle_;\n view.adjustRotationInternal(-delta);\n }\n this.lastAngle_ = theta;\n }\n\n /**\n * Handle pointer up events.\n * @param {import(\"../MapBrowserEvent.js\").default} mapBrowserEvent Event.\n * @return {boolean} If the event was consumed.\n * @override\n */\n handleUpEvent(mapBrowserEvent) {\n if (!mouseOnly(mapBrowserEvent)) {\n return true;\n }\n\n const map = mapBrowserEvent.map;\n const view = map.getView();\n view.endInteraction(this.duration_);\n return false;\n }\n\n /**\n * Handle pointer down events.\n * @param {import(\"../MapBrowserEvent.js\").default} mapBrowserEvent Event.\n * @return {boolean} If the event was consumed.\n * @override\n */\n handleDownEvent(mapBrowserEvent) {\n if (!mouseOnly(mapBrowserEvent)) {\n return false;\n }\n\n if (\n mouseActionButton(mapBrowserEvent) &&\n this.condition_(mapBrowserEvent)\n ) {\n const map = mapBrowserEvent.map;\n map.getView().beginInteraction();\n this.lastAngle_ = undefined;\n return true;\n }\n return false;\n }\n}\n\nexport default DragRotate;\n","/**\n * @module ol/render/Box\n */\n\nimport Disposable from '../Disposable.js';\nimport Polygon from '../geom/Polygon.js';\n\nclass RenderBox extends Disposable {\n /**\n * @param {string} className CSS class name.\n */\n constructor(className) {\n super();\n\n /**\n * @type {import(\"../geom/Polygon.js\").default|null}\n * @private\n */\n this.geometry_ = null;\n\n /**\n * @type {HTMLDivElement}\n * @private\n */\n this.element_ = document.createElement('div');\n this.element_.style.position = 'absolute';\n this.element_.style.pointerEvents = 'auto';\n this.element_.className = 'ol-box ' + className;\n\n /**\n * @private\n * @type {import(\"../Map.js\").default|null}\n */\n this.map_ = null;\n\n /**\n * @private\n * @type {import(\"../pixel.js\").Pixel|null}\n */\n this.startPixel_ = null;\n\n /**\n * @private\n * @type {import(\"../pixel.js\").Pixel|null}\n */\n this.endPixel_ = null;\n }\n\n /**\n * Clean up.\n * @override\n */\n disposeInternal() {\n this.setMap(null);\n }\n\n /**\n * @private\n */\n render_() {\n const startPixel = this.startPixel_;\n const endPixel = this.endPixel_;\n if (!startPixel || !endPixel) {\n return;\n }\n const px = 'px';\n const style = this.element_.style;\n style.left = Math.min(startPixel[0], endPixel[0]) + px;\n style.top = Math.min(startPixel[1], endPixel[1]) + px;\n style.width = Math.abs(endPixel[0] - startPixel[0]) + px;\n style.height = Math.abs(endPixel[1] - startPixel[1]) + px;\n }\n\n /**\n * @param {import(\"../Map.js\").default|null} map Map.\n */\n setMap(map) {\n if (this.map_) {\n const container = this.map_.getOverlayContainer();\n if (container) {\n container.removeChild(this.element_);\n }\n const style = this.element_.style;\n style.left = 'inherit';\n style.top = 'inherit';\n style.width = 'inherit';\n style.height = 'inherit';\n }\n this.map_ = map;\n if (this.map_) {\n const container = this.map_.getOverlayContainer();\n if (container) {\n container.appendChild(this.element_);\n }\n }\n }\n\n /**\n * @param {import(\"../pixel.js\").Pixel} startPixel Start pixel.\n * @param {import(\"../pixel.js\").Pixel} endPixel End pixel.\n */\n setPixels(startPixel, endPixel) {\n this.startPixel_ = startPixel;\n this.endPixel_ = endPixel;\n this.createOrUpdateGeometry();\n this.render_();\n }\n\n /**\n * Creates or updates the cached geometry.\n */\n createOrUpdateGeometry() {\n if (!this.map_) {\n return;\n }\n\n const startPixel = this.startPixel_;\n const endPixel = this.endPixel_;\n if (!startPixel || !endPixel) {\n return;\n }\n\n const pixels = [\n startPixel,\n [startPixel[0], endPixel[1]],\n endPixel,\n [endPixel[0], startPixel[1]],\n ];\n const map = this.map_;\n const coordinates = pixels.map((pixel) =>\n map.getCoordinateFromPixelInternal(pixel),\n );\n const first = coordinates[0];\n if (!first) {\n return;\n }\n // close the polygon\n coordinates[4] = first.slice();\n const ring = /** @type {Array} */ (\n coordinates\n );\n if (!this.geometry_) {\n this.geometry_ = new Polygon([ring]);\n } else {\n this.geometry_.setCoordinates([ring]);\n }\n }\n\n /**\n * @return {import(\"../geom/Polygon.js\").default} Geometry.\n */\n getGeometry() {\n return /** @type {import(\"../geom/Polygon.js\").default} */ (this.geometry_);\n }\n}\n\nexport default RenderBox;\n","/**\n * @module ol/interaction/DragBox\n */\n// FIXME draw drag box\nimport Event from '../events/Event.js';\nimport {mouseActionButton} from '../events/condition.js';\nimport RenderBox from '../render/Box.js';\nimport PointerInteraction from './Pointer.js';\n\n/**\n * A function that takes a {@link module:ol/MapBrowserEvent~MapBrowserEvent} and two\n * {@link module:ol/pixel~Pixel}s and returns a `{boolean}`. If the condition is met,\n * true should be returned.\n * @typedef {function(this: ?, import(\"../MapBrowserEvent.js\").default, import(\"../pixel.js\").Pixel, import(\"../pixel.js\").Pixel):boolean} EndCondition\n */\n\n/**\n * @typedef {Object} Options\n * @property {string} [className='ol-dragbox'] CSS class name for styling the box.\n * @property {import(\"../events/condition.js\").Condition} [condition] A function that takes a {@link module:ol/MapBrowserEvent~MapBrowserEvent} and returns a boolean\n * to indicate whether that event should be handled.\n * Default is {@link ol/events/condition~mouseActionButton}.\n * @property {number} [minArea=64] The minimum area of the box in pixel, this value is used by the default\n * `boxEndCondition` function.\n * @property {EndCondition} [boxEndCondition] A function that takes a {@link module:ol/MapBrowserEvent~MapBrowserEvent} and two\n * {@link module:ol/pixel~Pixel}s to indicate whether a `boxend` event should be fired.\n * Default is `true` if the area of the box is bigger than the `minArea` option.\n * @property {function(this:DragBox, import(\"../MapBrowserEvent.js\").default):void} [onBoxEnd] Code to execute just\n * before `boxend` is fired.\n */\n\n/**\n * @enum {string}\n */\nconst DragBoxEventType = {\n /**\n * Triggered upon drag box start.\n * @event DragBoxEvent#boxstart\n * @api\n */\n BOXSTART: 'boxstart',\n\n /**\n * Triggered on drag when box is active.\n * @event DragBoxEvent#boxdrag\n * @api\n */\n BOXDRAG: 'boxdrag',\n\n /**\n * Triggered upon drag box end.\n * @event DragBoxEvent#boxend\n * @api\n */\n BOXEND: 'boxend',\n\n /**\n * Triggered upon drag box canceled.\n * @event DragBoxEvent#boxcancel\n * @api\n */\n BOXCANCEL: 'boxcancel',\n};\n\n/**\n * @classdesc\n * Events emitted by {@link module:ol/interaction/DragBox~DragBox} instances are instances of\n * this type.\n */\nexport class DragBoxEvent extends Event {\n /**\n * @param {string} type The event type.\n * @param {import(\"../coordinate.js\").Coordinate} coordinate The event coordinate.\n * @param {import(\"../MapBrowserEvent.js\").default|null} mapBrowserEvent Originating event.\n */\n constructor(type, coordinate, mapBrowserEvent) {\n super(type);\n\n /**\n * The coordinate of the drag event.\n * @const\n * @type {import(\"../coordinate.js\").Coordinate}\n * @api\n */\n this.coordinate = coordinate;\n\n /**\n * @const\n * @type {import(\"../MapBrowserEvent.js\").default|null}\n * @api\n */\n this.mapBrowserEvent = mapBrowserEvent;\n }\n}\n\n/***\n * @template Return\n * @typedef {import(\"../Observable.js\").OnSignature &\n * import(\"../Observable.js\").OnSignature &\n * import(\"../Observable.js\").OnSignature<'boxcancel'|'boxdrag'|'boxend'|'boxstart', DragBoxEvent, Return> &\n * import(\"../Observable.js\").CombinedOnSignature} DragBoxOnSignature\n */\n\n/**\n * @classdesc\n * Allows the user to draw a vector box by clicking and dragging on the map,\n * normally combined with a {@link module:ol/events/condition} that limits\n * it to when the shift or other key is held down. This is used, for example,\n * for zooming to a specific area of the map\n * (see {@link module:ol/interaction/DragZoom~DragZoom} and\n * {@link module:ol/interaction/DragRotateAndZoom~DragRotateAndZoom}).\n *\n * @fires DragBoxEvent\n * @api\n */\nclass DragBox extends PointerInteraction {\n /**\n * @param {Options} [options] Options.\n */\n constructor(options) {\n super();\n\n /***\n * @type {DragBoxOnSignature}\n */\n this.on;\n\n /***\n * @type {DragBoxOnSignature}\n */\n this.once;\n\n /***\n * @type {DragBoxOnSignature}\n */\n this.un;\n\n options = options ?? {};\n\n /**\n * @type {import(\"../render/Box.js\").default}\n * @private\n */\n this.box_ = new RenderBox(options.className || 'ol-dragbox');\n\n /**\n * @type {number}\n * @private\n */\n this.minArea_ = options.minArea ?? 64;\n\n if (options.onBoxEnd) {\n this.onBoxEnd = options.onBoxEnd;\n }\n\n /**\n * @type {import(\"../pixel.js\").Pixel|null}\n * @private\n */\n this.startPixel_ = null;\n\n /**\n * @private\n * @type {import(\"../events/condition.js\").Condition}\n */\n this.condition_ = options.condition ?? mouseActionButton;\n\n /**\n * @private\n * @type {EndCondition}\n */\n this.boxEndCondition_ =\n options.boxEndCondition ?? this.defaultBoxEndCondition;\n }\n\n /**\n * The default condition for determining whether the boxend event\n * should fire.\n * @param {import(\"../MapBrowserEvent.js\").default} mapBrowserEvent The originating MapBrowserEvent\n * leading to the box end.\n * @param {import(\"../pixel.js\").Pixel} startPixel The starting pixel of the box.\n * @param {import(\"../pixel.js\").Pixel} endPixel The end pixel of the box.\n * @return {boolean} Whether or not the boxend condition should be fired.\n */\n defaultBoxEndCondition(mapBrowserEvent, startPixel, endPixel) {\n const width = endPixel[0] - startPixel[0];\n const height = endPixel[1] - startPixel[1];\n return width * width + height * height >= this.minArea_;\n }\n\n /**\n * Returns geometry of last drawn box.\n * @return {import(\"../geom/Polygon.js\").default} Geometry.\n * @api\n */\n getGeometry() {\n return this.box_.getGeometry();\n }\n\n /**\n * Handle pointer drag events.\n * @param {import(\"../MapBrowserEvent.js\").default} mapBrowserEvent Event.\n * @override\n */\n handleDragEvent(mapBrowserEvent) {\n if (!this.startPixel_) {\n return;\n }\n\n this.box_.setPixels(this.startPixel_, mapBrowserEvent.pixel);\n\n this.dispatchEvent(\n new DragBoxEvent(\n DragBoxEventType.BOXDRAG,\n mapBrowserEvent.coordinate,\n mapBrowserEvent,\n ),\n );\n }\n\n /**\n * Handle pointer up events.\n * @param {import(\"../MapBrowserEvent.js\").default} mapBrowserEvent Event.\n * @return {boolean} If the event was consumed.\n * @override\n */\n handleUpEvent(mapBrowserEvent) {\n if (!this.startPixel_) {\n return false;\n }\n\n const completeBox = this.boxEndCondition_(\n mapBrowserEvent,\n this.startPixel_,\n mapBrowserEvent.pixel,\n );\n if (completeBox) {\n this.onBoxEnd(mapBrowserEvent);\n }\n this.dispatchEvent(\n new DragBoxEvent(\n completeBox ? DragBoxEventType.BOXEND : DragBoxEventType.BOXCANCEL,\n mapBrowserEvent.coordinate,\n mapBrowserEvent,\n ),\n );\n\n this.box_.setMap(null);\n this.startPixel_ = null;\n\n return false;\n }\n\n /**\n * Handle pointer down events.\n * @param {import(\"../MapBrowserEvent.js\").default} mapBrowserEvent Event.\n * @return {boolean} If the event was consumed.\n * @override\n */\n handleDownEvent(mapBrowserEvent) {\n if (this.condition_(mapBrowserEvent)) {\n this.startPixel_ = mapBrowserEvent.pixel;\n this.box_.setMap(mapBrowserEvent.map);\n this.box_.setPixels(this.startPixel_, this.startPixel_);\n this.dispatchEvent(\n new DragBoxEvent(\n DragBoxEventType.BOXSTART,\n mapBrowserEvent.coordinate,\n mapBrowserEvent,\n ),\n );\n return true;\n }\n return false;\n }\n\n /**\n * Function to execute just before `onboxend` is fired\n * @param {import(\"../MapBrowserEvent.js\").default} event Event.\n */\n onBoxEnd(event) {}\n\n /**\n * Activate or deactivate the interaction.\n * @param {boolean} active Active.\n * @observable\n * @api\n * @override\n */\n setActive(active) {\n if (!active) {\n this.box_.setMap(null);\n if (this.startPixel_) {\n this.dispatchEvent(\n new DragBoxEvent(DragBoxEventType.BOXCANCEL, this.startPixel_, null),\n );\n this.startPixel_ = null;\n }\n }\n\n super.setActive(active);\n }\n\n /**\n * @param {import(\"../Map.js\").default|null} map Map.\n * @override\n */\n setMap(map) {\n const oldMap = this.getMap();\n\n if (oldMap) {\n this.box_.setMap(null);\n\n if (this.startPixel_) {\n this.dispatchEvent(\n new DragBoxEvent(DragBoxEventType.BOXCANCEL, this.startPixel_, null),\n );\n this.startPixel_ = null;\n }\n }\n\n super.setMap(map);\n }\n}\n\nexport default DragBox;\n","/**\n * @module ol/interaction/DragZoom\n */\nimport {easeOut} from '../easing.js';\nimport {shiftKeyOnly} from '../events/condition.js';\nimport DragBox from './DragBox.js';\n\n/**\n * @typedef {Object} Options\n * @property {string} [className='ol-dragzoom'] CSS class name for styling the\n * box.\n * @property {import(\"../events/condition.js\").Condition} [condition] A function that\n * takes a {@link module:ol/MapBrowserEvent~MapBrowserEvent} and returns a\n * boolean to indicate whether that event should be handled.\n * Default is {@link module:ol/events/condition.shiftKeyOnly}.\n * @property {number} [duration=200] Animation duration in milliseconds.\n * @property {boolean} [out=false] Use interaction for zooming out.\n * @property {number} [minArea=64] The minimum area of the box in pixel, this value is used by the parent default\n * `boxEndCondition` function.\n */\n\n/**\n * @classdesc\n * Allows the user to zoom the map by clicking and dragging on the map,\n * normally combined with a {@link module:ol/events/condition} that limits\n * it to when a key, shift by default, is held down.\n *\n * To change the style of the box, use CSS and the `.ol-dragzoom` selector, or\n * your custom one configured with `className`.\n * @api\n */\nclass DragZoom extends DragBox {\n /**\n * @param {Options} [options] Options.\n */\n constructor(options) {\n options = options ? options : {};\n\n const condition = options.condition ? options.condition : shiftKeyOnly;\n\n super({\n condition: condition,\n className: options.className || 'ol-dragzoom',\n minArea: options.minArea,\n });\n\n /**\n * @private\n * @type {number}\n */\n this.duration_ = options.duration !== undefined ? options.duration : 200;\n\n /**\n * @private\n * @type {boolean}\n */\n this.out_ = options.out !== undefined ? options.out : false;\n }\n\n /**\n * Function to execute just before `onboxend` is fired\n * @param {import(\"../MapBrowserEvent.js\").default} event Event.\n * @override\n */\n onBoxEnd(event) {\n const map = this.getMap();\n if (!map) {\n return;\n }\n const view = map.getView();\n let geometry = this.getGeometry();\n\n if (this.out_) {\n const rotatedExtent = view.rotatedExtentForGeometry(geometry);\n const resolution = view.getResolutionForExtentInternal(rotatedExtent);\n const currentResolution = view.getResolution();\n if (resolution === undefined || currentResolution === undefined) {\n return;\n }\n const factor = currentResolution / resolution;\n geometry = geometry.clone();\n geometry.scale(factor * factor);\n }\n\n view.fitInternal(geometry, {\n duration: this.duration_,\n easing: easeOut,\n });\n }\n}\n\nexport default DragZoom;\n","/**\n * @module ol/events/Key\n */\n\n/**\n * @enum {string}\n * @const\n */\nexport default {\n LEFT: 'ArrowLeft',\n UP: 'ArrowUp',\n RIGHT: 'ArrowRight',\n DOWN: 'ArrowDown',\n};\n","/**\n * @module ol/interaction/KeyboardPan\n */\nimport {rotate as rotateCoordinate} from '../coordinate.js';\nimport EventType from '../events/EventType.js';\nimport Key from '../events/Key.js';\nimport {noModifierKeys, targetNotEditable} from '../events/condition.js';\nimport Interaction, {pan} from './Interaction.js';\n\n/**\n * @typedef {Object} Options\n * @property {import(\"../events/condition.js\").Condition} [condition] A function that\n * takes a {@link module:ol/MapBrowserEvent~MapBrowserEvent} and returns a\n * boolean to indicate whether that event should be handled. Default is\n * {@link module:ol/events/condition.noModifierKeys} and\n * {@link module:ol/events/condition.targetNotEditable}.\n * @property {number} [duration=100] Animation duration in milliseconds.\n * @property {number} [pixelDelta=128] The amount of pixels to pan on each key\n * press.\n */\n\n/**\n * @classdesc\n * Allows the user to pan the map using keyboard arrows.\n * Note that, although this interaction is by default included in maps,\n * the keys can only be used when browser focus is on the element to which\n * the keyboard events are attached. By default, this is the map div,\n * though you can change this with the `keyboardEventTarget` in\n * {@link module:ol/Map~Map}. `document` never loses focus but, for any other\n * element, focus will have to be on, and returned to, this element if the keys\n * are to function.\n * See also {@link module:ol/interaction/KeyboardZoom~KeyboardZoom}.\n * @api\n */\nclass KeyboardPan extends Interaction {\n /**\n * @param {Options} [options] Options.\n */\n constructor(options) {\n super();\n\n options = options || {};\n\n /**\n * @private\n * @param {import(\"../MapBrowserEvent.js\").default} mapBrowserEvent Browser event.\n * @return {boolean} Combined condition result.\n */\n this.defaultCondition_ = function (mapBrowserEvent) {\n return (\n noModifierKeys(mapBrowserEvent) && targetNotEditable(mapBrowserEvent)\n );\n };\n\n /**\n * @private\n * @type {import(\"../events/condition.js\").Condition}\n */\n this.condition_ =\n options.condition !== undefined\n ? options.condition\n : this.defaultCondition_;\n\n /**\n * @private\n * @type {number}\n */\n this.duration_ = options.duration !== undefined ? options.duration : 100;\n\n /**\n * @private\n * @type {number}\n */\n this.pixelDelta_ =\n options.pixelDelta !== undefined ? options.pixelDelta : 128;\n }\n\n /**\n * Handles the {@link module:ol/MapBrowserEvent~MapBrowserEvent map browser event} if it was a\n * `KeyEvent`, and decides the direction to pan to (if an arrow key was\n * pressed).\n * @param {import(\"../MapBrowserEvent.js\").default} mapBrowserEvent Map browser event.\n * @return {boolean} `false` to stop event propagation.\n * @override\n */\n handleEvent(mapBrowserEvent) {\n let stopEvent = false;\n if (mapBrowserEvent.type == EventType.KEYDOWN) {\n const keyEvent = /** @type {KeyboardEvent} */ (\n mapBrowserEvent.originalEvent\n );\n const key = keyEvent.key;\n if (\n this.condition_(mapBrowserEvent) &&\n (key == Key.DOWN ||\n key == Key.LEFT ||\n key == Key.RIGHT ||\n key == Key.UP)\n ) {\n const map = mapBrowserEvent.map;\n const view = map.getView();\n const resolution = view.getResolution();\n if (resolution === undefined) {\n return true;\n }\n const mapUnitsDelta = resolution * this.pixelDelta_;\n let deltaX = 0,\n deltaY = 0;\n if (key == Key.DOWN) {\n deltaY = -mapUnitsDelta;\n } else if (key == Key.LEFT) {\n deltaX = -mapUnitsDelta;\n } else if (key == Key.RIGHT) {\n deltaX = mapUnitsDelta;\n } else {\n deltaY = mapUnitsDelta;\n }\n const delta = [deltaX, deltaY];\n rotateCoordinate(delta, view.getRotation());\n pan(view, delta, this.duration_);\n keyEvent.preventDefault();\n stopEvent = true;\n }\n }\n return !stopEvent;\n }\n}\n\nexport default KeyboardPan;\n","/**\n * @module ol/interaction/KeyboardZoom\n */\nimport EventType from '../events/EventType.js';\nimport {platformModifierKey, targetNotEditable} from '../events/condition.js';\nimport Interaction, {zoomByDelta} from './Interaction.js';\n\n/**\n * @typedef {Object} Options\n * @property {number} [duration=100] Animation duration in milliseconds.\n * @property {import(\"../events/condition.js\").Condition} [condition] A function that\n * takes a {@link module:ol/MapBrowserEvent~MapBrowserEvent} and returns a\n * boolean to indicate whether that event should be handled. The default condition is\n * that {@link module:ol/events/condition.targetNotEditable} is fulfilled and that\n * the platform modifier key isn't pressed\n * (!{@link module:ol/events/condition.platformModifierKey}).\n * @property {number} [delta=1] The zoom level delta on each key press.\n */\n\n/**\n * @classdesc\n * Allows the user to zoom the map using keyboard + and -.\n * Note that, although this interaction is by default included in maps,\n * the keys can only be used when browser focus is on the element to which\n * the keyboard events are attached. By default, this is the map div,\n * though you can change this with the `keyboardEventTarget` in\n * {@link module:ol/Map~Map}. `document` never loses focus but, for any other\n * element, focus will have to be on, and returned to, this element if the keys\n * are to function.\n * See also {@link module:ol/interaction/KeyboardPan~KeyboardPan}.\n * @api\n */\nclass KeyboardZoom extends Interaction {\n /**\n * @param {Options} [options] Options.\n */\n constructor(options) {\n super();\n\n options = options ? options : {};\n\n /**\n * @private\n * @type {import(\"../events/condition.js\").Condition}\n */\n this.condition_ = options.condition\n ? options.condition\n : function (mapBrowserEvent) {\n return (\n !platformModifierKey(mapBrowserEvent) &&\n targetNotEditable(mapBrowserEvent)\n );\n };\n\n /**\n * @private\n * @type {number}\n */\n this.delta_ = options.delta ? options.delta : 1;\n\n /**\n * @private\n * @type {number}\n */\n this.duration_ = options.duration !== undefined ? options.duration : 100;\n }\n\n /**\n * Handles the {@link module:ol/MapBrowserEvent~MapBrowserEvent map browser event} if it was a\n * `KeyEvent`, and decides whether to zoom in or out (depending on whether the\n * key pressed was '+' or '-').\n * @param {import(\"../MapBrowserEvent.js\").default} mapBrowserEvent Map browser event.\n * @return {boolean} `false` to stop event propagation.\n * @override\n */\n handleEvent(mapBrowserEvent) {\n let stopEvent = false;\n if (\n mapBrowserEvent.type == EventType.KEYDOWN ||\n mapBrowserEvent.type == EventType.KEYPRESS\n ) {\n const keyEvent = /** @type {KeyboardEvent} */ (\n mapBrowserEvent.originalEvent\n );\n const key = keyEvent.key;\n if (this.condition_(mapBrowserEvent) && (key === '+' || key === '-')) {\n const map = mapBrowserEvent.map;\n const delta = key === '+' ? this.delta_ : -this.delta_;\n const view = map.getView();\n zoomByDelta(view, delta, undefined, this.duration_);\n keyEvent.preventDefault();\n stopEvent = true;\n }\n }\n return !stopEvent;\n }\n}\n\nexport default KeyboardZoom;\n","/**\n * @module ol/interaction/MouseWheelZoom\n */\nimport EventType from '../events/EventType.js';\nimport {all, always, focusWithTabindex} from '../events/condition.js';\nimport {clamp} from '../math.js';\nimport Interaction, {zoomByDelta} from './Interaction.js';\n\n/**\n * @typedef {'trackpad' | 'wheel'} Mode\n */\n\n/**\n * @typedef {Object} Options\n * @property {import(\"../events/condition.js\").Condition} [condition] A function that\n * takes a {@link module:ol/MapBrowserEvent~MapBrowserEvent} and returns a\n * boolean to indicate whether that event should be handled. Default is\n * {@link module:ol/events/condition.always}.\n * @property {boolean} [onFocusOnly=false] When the map's target has a `tabindex` attribute set,\n * the interaction will only handle events when the map has the focus.\n * @property {number} [maxDelta=1] Maximum mouse wheel delta.\n * @property {number} [duration=250] Animation duration in milliseconds.\n * @property {number} [timeout=80] Mouse wheel timeout duration in milliseconds.\n * @property {boolean} [useAnchor=true] Enable zooming using the mouse's\n * location as the anchor. When set to `false`, zooming in and out will zoom to\n * the center of the screen instead of zooming on the mouse's location.\n * @property {boolean} [constrainResolution=false] If true, the mouse wheel zoom\n * event will always animate to the closest zoom level after an interaction;\n * false means intermediary zoom levels are allowed.\n */\n\n/**\n * Mutliplier for the DOM_DELTA_LINE delta value.\n * @type {number}\n */\nconst DELTA_LINE_MULTIPLIER = 40;\n\n/**\n * Mutliplier for the DOM_DELTA_PAGE delta value.\n * @type {number}\n */\nconst DELTA_PAGE_MULTIPLIER = 300;\n\n/**\n * Mutliplier for the delta value when using pinch-to-zoom\n * @type {number}\n */\nconst DELTA_TRACKPAD_PINCH_TO_ZOOM_MULTIPLIER = 3; // 5 = google maps. 3 = apple maps, MapLibre.\n/**\n * @classdesc\n * Allows the user to zoom the map by scrolling the mouse wheel.\n * @api\n */\nclass MouseWheelZoom extends Interaction {\n /**\n * @param {Options} [options] Options.\n */\n constructor(options) {\n options = options ? options : {};\n\n super(\n /** @type {import(\"./Interaction.js\").InteractionOptions} */ (options),\n );\n\n /**\n * @private\n * @type {number}\n */\n this.totalDelta_ = 0;\n\n /**\n * @private\n * @type {number}\n */\n this.lastDelta_ = 0;\n\n /**\n * @private\n * @type {number}\n */\n this.maxDelta_ = options.maxDelta !== undefined ? options.maxDelta : 1;\n\n /**\n * @private\n * @type {number}\n */\n this.duration_ = options.duration !== undefined ? options.duration : 250;\n\n /**\n * @private\n * @type {number}\n */\n this.timeout_ = options.timeout !== undefined ? options.timeout : 80;\n\n /**\n * @private\n * @type {boolean}\n */\n this.useAnchor_ =\n options.useAnchor !== undefined ? options.useAnchor : true;\n\n /**\n * @private\n * @type {boolean}\n */\n this.constrainResolution_ =\n options.constrainResolution !== undefined\n ? options.constrainResolution\n : false;\n\n const condition = options.condition ? options.condition : always;\n\n /**\n * @private\n * @type {import(\"../events/condition.js\").Condition}\n */\n this.condition_ = options.onFocusOnly\n ? all(focusWithTabindex, condition)\n : condition;\n\n /**\n * @private\n * @type {?import(\"../pixel.js\").Pixel}\n */\n this.lastAnchor_ = null;\n\n /**\n * @private\n * @type {number|undefined}\n */\n this.startTime_ = undefined;\n\n /**\n * @private\n * @type {ReturnType|undefined}\n */\n this.timeoutId_;\n\n /**\n * @private\n * @type {Mode|undefined}\n */\n this.mode_ = undefined;\n\n /**\n * Trackpad events separated by this delay will be considered separate\n * interactions.\n * @private\n * @type {number}\n */\n this.trackpadEventGap_ = 400;\n\n /**\n * @private\n * @type {ReturnType|undefined}\n */\n this.trackpadTimeoutId_;\n\n /**\n * The number of delta values per zoom level\n * @private\n * @type {number}\n */\n this.deltaPerZoom_ = 300;\n }\n\n /**\n * @private\n */\n endInteraction_() {\n this.trackpadTimeoutId_ = undefined;\n const map = this.getMap();\n if (!map) {\n return;\n }\n const view = map.getView();\n const direction = this.lastDelta_ ? (this.lastDelta_ > 0 ? 1 : -1) : 0;\n view.endInteraction(\n this.constrainResolution_ || view.getConstrainResolution()\n ? 100\n : undefined,\n direction,\n this.lastAnchor_\n ? map.getCoordinateFromPixel(this.lastAnchor_)\n : undefined,\n );\n }\n\n /**\n * Handles the {@link module:ol/MapBrowserEvent~MapBrowserEvent map browser event} (if it was a mousewheel-event) and eventually\n * zooms the map.\n * @param {import(\"../MapBrowserEvent.js\").default} mapBrowserEvent Map browser event.\n * @return {boolean} `false` to stop event propagation.\n * @override\n */\n handleEvent(mapBrowserEvent) {\n if (!this.condition_(mapBrowserEvent)) {\n return true;\n }\n const type = mapBrowserEvent.type;\n if (type !== EventType.WHEEL) {\n return true;\n }\n\n const map = mapBrowserEvent.map;\n const wheelEvent = /** @type {WheelEvent} */ (\n mapBrowserEvent.originalEvent\n );\n wheelEvent.preventDefault();\n\n const isPinchToZoom = wheelEvent.ctrlKey && !mapBrowserEvent.ctrlKey;\n\n if (this.useAnchor_) {\n this.lastAnchor_ = mapBrowserEvent.pixel;\n }\n\n // Delta normalisation inspired by\n // https://github.com/mapbox/mapbox-gl-js/blob/001c7b9/js/ui/handler/scroll_zoom.js\n let delta = wheelEvent.deltaY;\n\n switch (wheelEvent.deltaMode) {\n case WheelEvent.DOM_DELTA_LINE:\n delta *= DELTA_LINE_MULTIPLIER;\n break;\n case WheelEvent.DOM_DELTA_PAGE:\n delta *= DELTA_PAGE_MULTIPLIER;\n break;\n default:\n // pass\n }\n\n if (delta === 0) {\n return false;\n }\n this.lastDelta_ = delta;\n\n const now = Date.now();\n\n if (this.startTime_ === undefined) {\n this.startTime_ = now;\n }\n\n if (!this.mode_ || now - this.startTime_ > this.trackpadEventGap_) {\n this.mode_ = Math.abs(delta) < 4 ? 'trackpad' : 'wheel';\n }\n\n const view = map.getView();\n if (this.mode_ === 'trackpad') {\n if (this.trackpadTimeoutId_) {\n clearTimeout(this.trackpadTimeoutId_);\n } else {\n if (view.getAnimating()) {\n view.cancelAnimations();\n }\n view.beginInteraction();\n }\n this.trackpadTimeoutId_ = setTimeout(\n this.endInteraction_.bind(this),\n this.timeout_,\n );\n if (isPinchToZoom) {\n delta = delta * DELTA_TRACKPAD_PINCH_TO_ZOOM_MULTIPLIER;\n }\n view.adjustZoom(\n -delta / this.deltaPerZoom_,\n this.lastAnchor_\n ? map.getCoordinateFromPixel(this.lastAnchor_)\n : undefined,\n );\n this.startTime_ = now;\n return false;\n }\n\n this.totalDelta_ += delta;\n\n const timeLeft = Math.max(this.timeout_ - (now - this.startTime_), 0);\n\n clearTimeout(this.timeoutId_);\n this.timeoutId_ = setTimeout(\n this.handleWheelZoom_.bind(this, map),\n timeLeft,\n );\n\n return false;\n }\n\n /**\n * @private\n * @param {import(\"../Map.js\").default} map Map.\n */\n handleWheelZoom_(map) {\n const view = map.getView();\n if (view.getAnimating()) {\n view.cancelAnimations();\n }\n let delta =\n -clamp(\n this.totalDelta_,\n -this.maxDelta_ * this.deltaPerZoom_,\n this.maxDelta_ * this.deltaPerZoom_,\n ) / this.deltaPerZoom_;\n if (view.getConstrainResolution() || this.constrainResolution_) {\n // view has a zoom constraint, zoom by 1\n delta = delta ? (delta > 0 ? 1 : -1) : 0;\n }\n zoomByDelta(\n view,\n delta,\n this.lastAnchor_\n ? map.getCoordinateFromPixel(this.lastAnchor_)\n : undefined,\n this.duration_,\n );\n\n this.mode_ = undefined;\n this.totalDelta_ = 0;\n this.lastAnchor_ = null;\n this.startTime_ = undefined;\n this.timeoutId_ = undefined;\n }\n\n /**\n * Enable or disable using the mouse's location as an anchor when zooming\n * @param {boolean} useAnchor true to zoom to the mouse's location, false\n * to zoom to the center of the map\n * @api\n */\n setMouseAnchor(useAnchor) {\n this.useAnchor_ = useAnchor;\n if (!useAnchor) {\n this.lastAnchor_ = null;\n }\n }\n}\n\nexport default MouseWheelZoom;\n","/**\n * @module ol/interaction/PinchRotate\n */\nimport {FALSE} from '../functions.js';\nimport {disable} from '../rotationconstraint.js';\nimport PointerInteraction, {\n centroid as centroidFromPointers,\n} from './Pointer.js';\n\n/**\n * @typedef {Object} Options\n * @property {number} [duration=250] The duration of the animation in\n * milliseconds.\n * @property {number} [threshold=0.3] Minimal angle in radians to start a rotation.\n */\n\n/**\n * @classdesc\n * Allows the user to rotate the map by twisting with two fingers\n * on a touch screen.\n * @api\n */\nclass PinchRotate extends PointerInteraction {\n /**\n * @param {Options} [options] Options.\n */\n constructor(options) {\n options = options ? options : {};\n\n const pointerOptions = /** @type {import(\"./Pointer.js\").Options} */ (\n options\n );\n\n if (!pointerOptions.stopDown) {\n pointerOptions.stopDown = FALSE;\n }\n\n super(pointerOptions);\n\n /**\n * @private\n * @type {import(\"../coordinate.js\").Coordinate|null}\n */\n this.anchor_ = null;\n\n /**\n * @private\n * @type {number|undefined}\n */\n this.lastAngle_ = undefined;\n\n /**\n * @private\n * @type {boolean}\n */\n this.rotating_ = false;\n\n /**\n * @private\n * @type {number}\n */\n this.rotationDelta_ = 0.0;\n\n /**\n * @private\n * @type {number}\n */\n this.threshold_ = options.threshold !== undefined ? options.threshold : 0.3;\n\n /**\n * @private\n * @type {number}\n */\n this.duration_ = options.duration !== undefined ? options.duration : 250;\n }\n\n /**\n * Handle pointer drag events.\n * @param {import(\"../MapBrowserEvent.js\").default} mapBrowserEvent Event.\n * @override\n */\n handleDragEvent(mapBrowserEvent) {\n let rotationDelta = 0.0;\n\n const touch0 = this.targetPointers[0];\n const touch1 = this.targetPointers[1];\n\n // angle between touches\n const angle = Math.atan2(\n touch1.clientY - touch0.clientY,\n touch1.clientX - touch0.clientX,\n );\n\n if (this.lastAngle_ !== undefined) {\n const delta = angle - this.lastAngle_;\n this.rotationDelta_ += delta;\n if (!this.rotating_ && Math.abs(this.rotationDelta_) > this.threshold_) {\n this.rotating_ = true;\n }\n rotationDelta = delta;\n }\n this.lastAngle_ = angle;\n\n const map = mapBrowserEvent.map;\n const view = map.getView();\n if (view.getConstraints().rotation === disable) {\n return;\n }\n\n // rotate anchor point.\n // FIXME: should be the intersection point between the lines:\n // touch0,touch1 and previousTouch0,previousTouch1\n this.anchor_ =\n map.getCoordinateFromPixelInternal(\n map.getEventPixel(centroidFromPointers(this.targetPointers)),\n ) ?? null;\n\n // rotate\n if (this.rotating_) {\n map.render();\n view.adjustRotationInternal(rotationDelta, this.anchor_ ?? undefined);\n }\n }\n\n /**\n * Handle pointer up events.\n * @param {import(\"../MapBrowserEvent.js\").default} mapBrowserEvent Event.\n * @return {boolean} If the event was consumed.\n * @override\n */\n handleUpEvent(mapBrowserEvent) {\n if (this.targetPointers.length < 2) {\n const map = mapBrowserEvent.map;\n const view = map.getView();\n view.endInteraction(this.duration_);\n return false;\n }\n return true;\n }\n\n /**\n * Handle pointer down events.\n * @param {import(\"../MapBrowserEvent.js\").default} mapBrowserEvent Event.\n * @return {boolean} If the event was consumed.\n * @override\n */\n handleDownEvent(mapBrowserEvent) {\n if (this.targetPointers.length >= 2) {\n const map = mapBrowserEvent.map;\n this.anchor_ = null;\n this.lastAngle_ = undefined;\n this.rotating_ = false;\n this.rotationDelta_ = 0.0;\n if (!this.handlingDownUpSequence) {\n map.getView().beginInteraction();\n }\n return true;\n }\n return false;\n }\n}\n\nexport default PinchRotate;\n","/**\n * @module ol/interaction/PinchZoom\n */\nimport {FALSE} from '../functions.js';\nimport PointerInteraction, {\n centroid as centroidFromPointers,\n} from './Pointer.js';\n\n/**\n * @typedef {Object} Options\n * @property {number} [duration=400] Animation duration in milliseconds.\n */\n\n/**\n * @classdesc\n * Allows the user to zoom the map by pinching with two fingers\n * on a touch screen.\n * @api\n */\nclass PinchZoom extends PointerInteraction {\n /**\n * @param {Options} [options] Options.\n */\n constructor(options) {\n options = options ? options : {};\n\n const pointerOptions = /** @type {import(\"./Pointer.js\").Options} */ (\n options\n );\n\n if (!pointerOptions.stopDown) {\n pointerOptions.stopDown = FALSE;\n }\n\n super(pointerOptions);\n\n /**\n * @private\n * @type {import(\"../coordinate.js\").Coordinate|null}\n */\n this.anchor_ = null;\n\n /**\n * @private\n * @type {number}\n */\n this.duration_ = options.duration !== undefined ? options.duration : 400;\n\n /**\n * @private\n * @type {number|undefined}\n */\n this.lastDistance_ = undefined;\n\n /**\n * @private\n * @type {number}\n */\n this.lastScaleDelta_ = 1;\n }\n\n /**\n * Handle pointer drag events.\n * @param {import(\"../MapBrowserEvent.js\").default} mapBrowserEvent Event.\n * @override\n */\n handleDragEvent(mapBrowserEvent) {\n let scaleDelta = 1.0;\n\n const touch0 = this.targetPointers[0];\n const touch1 = this.targetPointers[1];\n const dx = touch0.clientX - touch1.clientX;\n const dy = touch0.clientY - touch1.clientY;\n\n // distance between touches\n const distance = Math.sqrt(dx * dx + dy * dy);\n\n if (this.lastDistance_ !== undefined) {\n scaleDelta = this.lastDistance_ / distance;\n }\n this.lastDistance_ = distance;\n\n const map = mapBrowserEvent.map;\n const view = map.getView();\n\n if (scaleDelta != 1.0) {\n this.lastScaleDelta_ = scaleDelta;\n }\n\n // scale anchor point.\n this.anchor_ =\n map.getCoordinateFromPixelInternal(\n map.getEventPixel(centroidFromPointers(this.targetPointers)),\n ) ?? null;\n\n // scale, bypass the resolution constraint\n map.render();\n view.adjustResolutionInternal(scaleDelta, this.anchor_ ?? undefined);\n }\n\n /**\n * Handle pointer up events.\n * @param {import(\"../MapBrowserEvent.js\").default} mapBrowserEvent Event.\n * @return {boolean} If the event was consumed.\n * @override\n */\n handleUpEvent(mapBrowserEvent) {\n if (this.targetPointers.length < 2) {\n const map = mapBrowserEvent.map;\n const view = map.getView();\n const direction = this.lastScaleDelta_ > 1 ? 1 : -1;\n view.endInteraction(this.duration_, direction);\n return false;\n }\n return true;\n }\n\n /**\n * Handle pointer down events.\n * @param {import(\"../MapBrowserEvent.js\").default} mapBrowserEvent Event.\n * @return {boolean} If the event was consumed.\n * @override\n */\n handleDownEvent(mapBrowserEvent) {\n if (this.targetPointers.length >= 2) {\n const map = mapBrowserEvent.map;\n this.anchor_ = null;\n this.lastDistance_ = undefined;\n this.lastScaleDelta_ = 1;\n if (!this.handlingDownUpSequence) {\n map.getView().beginInteraction();\n }\n return true;\n }\n return false;\n }\n}\n\nexport default PinchZoom;\n","/**\n * @module ol/interaction/defaults\n */\nimport Collection from '../Collection.js';\nimport Kinetic from '../Kinetic.js';\nimport DoubleClickZoom from './DoubleClickZoom.js';\nimport DragPan from './DragPan.js';\nimport DragRotate from './DragRotate.js';\nimport DragZoom from './DragZoom.js';\nimport KeyboardPan from './KeyboardPan.js';\nimport KeyboardZoom from './KeyboardZoom.js';\nimport MouseWheelZoom from './MouseWheelZoom.js';\nimport PinchRotate from './PinchRotate.js';\nimport PinchZoom from './PinchZoom.js';\n\n/**\n * @typedef {Object} DefaultsOptions\n * @property {boolean} [altShiftDragRotate=true] Whether Alt-Shift-drag rotate is\n * desired.\n * @property {boolean} [onFocusOnly=false] Interact only when the map has the\n * focus. This affects the `MouseWheelZoom` and `DragPan` interactions and is\n * useful when page scroll is desired for maps that do not have the browser's\n * focus.\n * @property {boolean} [doubleClickZoom=true] Whether double click zoom is\n * desired.\n * @property {boolean} [keyboard=true] Whether keyboard interaction is desired.\n * @property {boolean} [mouseWheelZoom=true] Whether mousewheel zoom is desired.\n * @property {boolean} [shiftDragZoom=true] Whether Shift-drag zoom is desired.\n * @property {boolean} [dragPan=true] Whether drag pan is desired.\n * @property {boolean} [pinchRotate=true] Whether pinch rotate is desired.\n * @property {boolean} [pinchZoom=true] Whether pinch zoom is desired.\n * @property {number} [zoomDelta] Zoom level delta when using keyboard or double click zoom.\n * @property {number} [zoomDuration] Duration of the zoom animation in\n * milliseconds.\n */\n\n/**\n * Set of interactions included in maps by default. Specific interactions can be\n * excluded by setting the appropriate option to false in the constructor\n * options, but the order of the interactions is fixed. If you want to specify\n * a different order for interactions, you will need to create your own\n * {@link module:ol/interaction/Interaction~Interaction} instances and insert\n * them into a {@link module:ol/Collection~Collection} in the order you want\n * before creating your {@link module:ol/Map~Map} instance. Changing the order can\n * be of interest if the event propagation needs to be stopped at a point.\n * The default set of interactions, in sequence, is:\n * {@link module:ol/interaction/DragRotate~DragRotate}\n * {@link module:ol/interaction/DoubleClickZoom~DoubleClickZoom}\n * {@link module:ol/interaction/DragPan~DragPan}\n * {@link module:ol/interaction/PinchRotate~PinchRotate}\n * {@link module:ol/interaction/PinchZoom~PinchZoom}\n * {@link module:ol/interaction/KeyboardPan~KeyboardPan}\n * {@link module:ol/interaction/KeyboardZoom~KeyboardZoom}\n * {@link module:ol/interaction/MouseWheelZoom~MouseWheelZoom}\n * {@link module:ol/interaction/DragZoom~DragZoom}\n *\n * @param {DefaultsOptions} [options] Defaults options.\n * @return {Collection}\n * A collection of interactions to be used with the {@link module:ol/Map~Map}\n * constructor's `interactions` option.\n * @api\n */\nexport function defaults(options) {\n options = options ? options : {};\n\n /** @type {Collection} */\n const interactions = new Collection();\n\n const kinetic = new Kinetic(-0.005, 0.05, 100);\n\n const altShiftDragRotate =\n options.altShiftDragRotate !== undefined\n ? options.altShiftDragRotate\n : true;\n if (altShiftDragRotate) {\n interactions.push(new DragRotate());\n }\n\n const doubleClickZoom =\n options.doubleClickZoom !== undefined ? options.doubleClickZoom : true;\n if (doubleClickZoom) {\n interactions.push(\n new DoubleClickZoom({\n delta: options.zoomDelta,\n duration: options.zoomDuration,\n }),\n );\n }\n\n const dragPan = options.dragPan !== undefined ? options.dragPan : true;\n if (dragPan) {\n interactions.push(\n new DragPan({\n onFocusOnly: options.onFocusOnly,\n kinetic: kinetic,\n }),\n );\n }\n\n const pinchRotate =\n options.pinchRotate !== undefined ? options.pinchRotate : true;\n if (pinchRotate) {\n interactions.push(new PinchRotate());\n }\n\n const pinchZoom = options.pinchZoom !== undefined ? options.pinchZoom : true;\n if (pinchZoom) {\n interactions.push(\n new PinchZoom({\n duration: options.zoomDuration,\n }),\n );\n }\n\n const keyboard = options.keyboard !== undefined ? options.keyboard : true;\n if (keyboard) {\n interactions.push(new KeyboardPan());\n interactions.push(\n new KeyboardZoom({\n delta: options.zoomDelta,\n duration: options.zoomDuration,\n }),\n );\n }\n\n const mouseWheelZoom =\n options.mouseWheelZoom !== undefined ? options.mouseWheelZoom : true;\n if (mouseWheelZoom) {\n interactions.push(\n new MouseWheelZoom({\n onFocusOnly: options.onFocusOnly,\n duration: options.zoomDuration,\n }),\n );\n }\n\n const shiftDragZoom =\n options.shiftDragZoom !== undefined ? options.shiftDragZoom : true;\n if (shiftDragZoom) {\n interactions.push(\n new DragZoom({\n duration: options.zoomDuration,\n }),\n );\n }\n\n return interactions;\n}\n","/**\n * @module ol/interaction/DragRotateAndZoom\n */\nimport {mouseOnly, shiftKeyOnly} from '../events/condition.js';\nimport PointerInteraction from './Pointer.js';\n\n/**\n * @typedef {Object} Options\n * @property {import(\"../events/condition.js\").Condition} [condition] A function that\n * takes a {@link module:ol/MapBrowserEvent~MapBrowserEvent} and returns a\n * boolean to indicate whether that event should be handled.\n * Default is {@link module:ol/events/condition.shiftKeyOnly}.\n * @property {number} [duration=400] Animation duration in milliseconds.\n */\n\n/**\n * @classdesc\n * Allows the user to zoom and rotate the map by clicking and dragging\n * on the map. By default, this interaction is limited to when the shift\n * key is held down.\n *\n * This interaction is only supported for mouse devices.\n *\n * And this interaction is not included in the default interactions.\n * @api\n */\nclass DragRotateAndZoom extends PointerInteraction {\n /**\n * @param {Options} [options] Options.\n */\n constructor(options) {\n options = options ? options : {};\n\n super(/** @type {import(\"./Pointer.js\").Options} */ (options));\n\n /**\n * @private\n * @type {import(\"../events/condition.js\").Condition}\n */\n this.condition_ = options.condition ? options.condition : shiftKeyOnly;\n\n /**\n * @private\n * @type {number|undefined}\n */\n this.lastAngle_ = undefined;\n\n /**\n * @private\n * @type {number|undefined}\n */\n this.lastMagnitude_ = undefined;\n\n /**\n * @private\n * @type {number}\n */\n this.lastScaleDelta_ = 0;\n\n /**\n * @private\n * @type {number}\n */\n this.duration_ = options.duration !== undefined ? options.duration : 400;\n }\n\n /**\n * Handle pointer drag events.\n * @param {import(\"../MapBrowserEvent.js\").default} mapBrowserEvent Event.\n * @override\n */\n handleDragEvent(mapBrowserEvent) {\n if (!mouseOnly(mapBrowserEvent)) {\n return;\n }\n\n const map = mapBrowserEvent.map;\n const size = map.getSize();\n if (!size) {\n return;\n }\n const offset = mapBrowserEvent.pixel;\n const deltaX = offset[0] - size[0] / 2;\n const deltaY = size[1] / 2 - offset[1];\n const theta = Math.atan2(deltaY, deltaX);\n const magnitude = Math.sqrt(deltaX * deltaX + deltaY * deltaY);\n const view = map.getView();\n if (this.lastAngle_ !== undefined) {\n const angleDelta = this.lastAngle_ - theta;\n view.adjustRotationInternal(angleDelta);\n }\n this.lastAngle_ = theta;\n if (this.lastMagnitude_ !== undefined) {\n view.adjustResolutionInternal(this.lastMagnitude_ / magnitude);\n }\n if (this.lastMagnitude_ !== undefined) {\n this.lastScaleDelta_ = this.lastMagnitude_ / magnitude;\n }\n this.lastMagnitude_ = magnitude;\n }\n\n /**\n * Handle pointer up events.\n * @param {import(\"../MapBrowserEvent.js\").default} mapBrowserEvent Event.\n * @return {boolean} If the event was consumed.\n * @override\n */\n handleUpEvent(mapBrowserEvent) {\n if (!mouseOnly(mapBrowserEvent)) {\n return true;\n }\n\n const map = mapBrowserEvent.map;\n const view = map.getView();\n const direction = this.lastScaleDelta_ > 1 ? 1 : -1;\n view.endInteraction(this.duration_, direction);\n this.lastScaleDelta_ = 0;\n return false;\n }\n\n /**\n * Handle pointer down events.\n * @param {import(\"../MapBrowserEvent.js\").default} mapBrowserEvent Event.\n * @return {boolean} If the event was consumed.\n * @override\n */\n handleDownEvent(mapBrowserEvent) {\n if (!mouseOnly(mapBrowserEvent)) {\n return false;\n }\n\n if (this.condition_(mapBrowserEvent)) {\n mapBrowserEvent.map.getView().beginInteraction();\n this.lastAngle_ = undefined;\n this.lastMagnitude_ = undefined;\n return true;\n }\n return false;\n }\n}\n\nexport default DragRotateAndZoom;\n","/**\n * @module ol/tilecoord\n */\n\nimport {getUid} from './util.js';\n\n/**\n * An array of three numbers representing the location of a tile in a tile\n * grid. The order is `z` (zoom level), `x` (column), and `y` (row).\n * @typedef {Array} TileCoord\n * @api\n */\n\n/**\n * @param {number} z Z.\n * @param {number} x X.\n * @param {number} y Y.\n * @param {TileCoord} [tileCoord] Tile coordinate.\n * @return {TileCoord} Tile coordinate.\n */\nexport function createOrUpdate(z, x, y, tileCoord) {\n if (tileCoord !== undefined) {\n tileCoord[0] = z;\n tileCoord[1] = x;\n tileCoord[2] = y;\n return tileCoord;\n }\n return [z, x, y];\n}\n\n/**\n * @param {number} z Z.\n * @param {number} x X.\n * @param {number} y Y.\n * @return {string} Key.\n */\nexport function getKeyZXY(z, x, y) {\n return z + '/' + x + '/' + y;\n}\n\n/**\n * Get the key for a tile coord.\n * @param {TileCoord} tileCoord The tile coord.\n * @return {string} Key.\n */\nexport function getKey(tileCoord) {\n return getKeyZXY(tileCoord[0], tileCoord[1], tileCoord[2]);\n}\n\n/**\n * Get the tile cache key for a tile key obtained through `tile.getKey()`.\n * @param {string} tileKey The tile key.\n * @return {string} The cache key.\n */\nexport function getCacheKeyForTileKey(tileKey) {\n const [z, x, y] = tileKey\n .substring(tileKey.lastIndexOf('/') + 1, tileKey.length)\n .split(',')\n .map(Number);\n return getKeyZXY(z, x, y);\n}\n\n/**\n * @param {import(\"./source/Tile.js\").default} source The tile source.\n * @param {string} sourceKey The source key.\n * @param {number} z The tile z level.\n * @param {number} x The tile x level.\n * @param {number} y The tile y level.\n * @return {string} The cache key.\n */\nexport function getCacheKey(source, sourceKey, z, x, y) {\n return `${getUid(source)},${sourceKey},${getKeyZXY(z, x, y)}`;\n}\n\n/**\n * Get a tile coord given a key.\n * @param {string} key The tile coord key.\n * @return {TileCoord} The tile coord.\n */\nexport function fromKey(key) {\n return key.split('/').map(Number);\n}\n\n/**\n * @param {TileCoord} tileCoord Tile coord.\n * @return {number} Hash.\n */\nexport function hash(tileCoord) {\n return hashZXY(tileCoord[0], tileCoord[1], tileCoord[2]);\n}\n\n/**\n * @param {number} z The tile z coordinate.\n * @param {number} x The tile x coordinate.\n * @param {number} y The tile y coordinate.\n * @return {number} Hash.\n */\nexport function hashZXY(z, x, y) {\n return (x << z) + y;\n}\n\n/**\n * @param {TileCoord} tileCoord Tile coordinate.\n * @param {!import(\"./tilegrid/TileGrid.js\").default} tileGrid Tile grid.\n * @return {boolean} Tile coordinate is within extent and zoom level range.\n */\nexport function withinExtentAndZ(tileCoord, tileGrid) {\n const z = tileCoord[0];\n const x = tileCoord[1];\n const y = tileCoord[2];\n\n if (tileGrid.getMinZoom() > z || z > tileGrid.getMaxZoom()) {\n return false;\n }\n const tileRange = tileGrid.getFullTileRange(z);\n if (!tileRange) {\n return true;\n }\n return tileRange.containsXY(x, y);\n}\n","/**\n * @module ol/uri\n */\n\nimport {modulo} from './math.js';\nimport {hashZXY} from './tilecoord.js';\n\n/**\n * Appends query parameters to a URI.\n *\n * @param {string} uri The original URI, which may already have query data.\n * @param {!Object} params An object where keys are URI-encoded parameter keys,\n * and the values are arbitrary types or arrays.\n * @return {string} The new URI.\n */\nexport function appendParams(uri, params) {\n /** @type {Array} */\n const keyParams = [];\n // Skip any null or undefined parameter values\n Object.keys(params).forEach(function (k) {\n if (params[k] !== null && params[k] !== undefined) {\n keyParams.push(k + '=' + encodeURIComponent(params[k]));\n }\n });\n const qs = keyParams.join('&');\n // remove any trailing ? or &\n uri = uri.replace(/[?&]$/, '');\n // append ? or & depending on whether uri has existing parameters\n uri += uri.includes('?') ? '&' : '?';\n return uri + qs;\n}\n\nconst zRegEx = /\\{z\\}/g;\nconst xRegEx = /\\{x\\}/g;\nconst yRegEx = /\\{y\\}/g;\nconst dashYRegEx = /\\{-y\\}/g;\n\n/**\n * @param {string} template The URL template. Should have `{x}`, `{y}`, and `{z}` placeholders. If\n * the template has a `{-y}` placeholder, the `maxY` parameter must be supplied.\n * @param {number} z The tile z coordinate.\n * @param {number} x The tile x coordinate.\n * @param {number} y The tile y coordinate.\n * @param {number} [maxY] The maximum y coordinate at the given z level.\n * @return {string} The URL.\n */\nexport function renderXYZTemplate(template, z, x, y, maxY) {\n return template\n .replace(zRegEx, z.toString())\n .replace(xRegEx, x.toString())\n .replace(yRegEx, y.toString())\n .replace(dashYRegEx, function () {\n if (maxY === undefined) {\n throw new Error(\n 'If the URL template has a {-y} placeholder, the grid extent must be known',\n );\n }\n return (maxY - y).toString();\n });\n}\n\n/**\n * @param {Array} urls List of URLs.\n * @param {number} z The tile z coordinate.\n * @param {number} x The tile x coordinate.\n * @param {number} y The tile y coordinate.\n * @return {string} The chosen URL.\n */\nexport function pickUrl(urls, z, x, y) {\n const hash = hashZXY(z, x, y);\n const index = modulo(hash, urls.length);\n return urls[index];\n}\n\n/**\n * @param {string} url URL.\n * @return {Array} Array of urls.\n */\nexport function expandUrl(url) {\n const urls = [];\n let match = /\\{([a-z])-([a-z])\\}/.exec(url);\n if (match) {\n // char range\n const startCharCode = match[1].charCodeAt(0);\n const stopCharCode = match[2].charCodeAt(0);\n let charCode;\n for (charCode = startCharCode; charCode <= stopCharCode; ++charCode) {\n urls.push(url.replace(match[0], String.fromCharCode(charCode)));\n }\n return urls;\n }\n match = /\\{(\\d+)-(\\d+)\\}/.exec(url);\n if (match) {\n // number range\n const stop = parseInt(match[2], 10);\n for (let i = parseInt(match[1], 10); i <= stop; i++) {\n urls.push(url.replace(match[0], i.toString()));\n }\n return urls;\n }\n urls.push(url);\n return urls;\n}\n","/**\n * @module ol/tileurlfunction\n */\nimport {modulo} from './math.js';\nimport {hash as tileCoordHash} from './tilecoord.js';\nimport {renderXYZTemplate} from './uri.js';\n\n/**\n * @param {string} template Template.\n * @param {import(\"./tilegrid/TileGrid.js\").default|null} tileGrid Tile grid.\n * @return {import(\"./Tile.js\").UrlFunction} Tile URL function.\n */\nexport function createFromTemplate(template, tileGrid) {\n return (\n /**\n * @param {import(\"./tilecoord.js\").TileCoord} tileCoord Tile Coordinate.\n * @param {number} pixelRatio Pixel ratio.\n * @param {import(\"./proj/Projection.js\").default} projection Projection.\n * @return {string|undefined} Tile URL.\n */\n function (tileCoord, pixelRatio, projection) {\n if (!tileCoord) {\n return undefined;\n }\n let maxY;\n const z = tileCoord[0];\n if (tileGrid) {\n // The `{-y}` placeholder only works for sources that have a tile grid at construction\n const range = tileGrid.getFullTileRange(z);\n if (range) {\n maxY = range.getHeight() - 1;\n }\n }\n return renderXYZTemplate(template, z, tileCoord[1], tileCoord[2], maxY);\n }\n );\n}\n\n/**\n * @param {Array} templates Templates.\n * @param {import(\"./tilegrid/TileGrid.js\").default} tileGrid Tile grid.\n * @return {import(\"./Tile.js\").UrlFunction} Tile URL function.\n */\nexport function createFromTemplates(templates, tileGrid) {\n const len = templates.length;\n const tileUrlFunctions = new Array(len);\n for (let i = 0; i < len; ++i) {\n tileUrlFunctions[i] = createFromTemplate(templates[i], tileGrid);\n }\n return createFromTileUrlFunctions(tileUrlFunctions);\n}\n\n/**\n * @param {Array} tileUrlFunctions Tile URL Functions.\n * @return {import(\"./Tile.js\").UrlFunction} Tile URL function.\n */\nexport function createFromTileUrlFunctions(tileUrlFunctions) {\n if (tileUrlFunctions.length === 1) {\n return tileUrlFunctions[0];\n }\n return (\n /**\n * @param {import(\"./tilecoord.js\").TileCoord} tileCoord Tile Coordinate.\n * @param {number} pixelRatio Pixel ratio.\n * @param {import(\"./proj/Projection.js\").default} projection Projection.\n * @return {string|undefined} Tile URL.\n */\n function (tileCoord, pixelRatio, projection) {\n if (!tileCoord) {\n return undefined;\n }\n const h = tileCoordHash(tileCoord);\n const index = modulo(h, tileUrlFunctions.length);\n return tileUrlFunctions[index](tileCoord, pixelRatio, projection);\n }\n );\n}\n\n/**\n * @param {import(\"./tilecoord.js\").TileCoord} tileCoord Tile coordinate.\n * @param {number} pixelRatio Pixel ratio.\n * @param {import(\"./proj/Projection.js\").default} projection Projection.\n * @return {string|undefined} Tile URL.\n */\nexport function nullTileUrlFunction(tileCoord, pixelRatio, projection) {\n return undefined;\n}\n","/* eslint-disable @typescript-eslint/ban-ts-comment */\r\nimport { addCoordinateTransforms, addProjection, Projection } from \"ol/proj\";\r\nimport { MERC_MAX, tileSize, transPng } from \"../const_ex\";\r\nimport {\r\n addCommonOptions,\r\n setCustomFunctionMaplat\r\n} from \"./mixin\";\r\nimport { XYZ } from \"ol/source\";\r\nimport { createFromTemplates } from \"ol/tileurlfunction\";\r\n\r\nfor (let z = 0; z < 9; z++) {\r\n const key = `ZOOM:${z}`;\r\n const maxxy = 256 * Math.pow(2, z);\r\n\r\n (function (key, maxxy) {\r\n const projection = new Projection({\r\n code: key,\r\n // The extent is used to determine zoom level 0. Recommended values for a\r\n // projection's validity extent can be found at https://epsg.io/.\r\n extent: [0.0, 0.0, maxxy, maxxy],\r\n units: \"m\"\r\n });\r\n addProjection(projection);\r\n\r\n // We also declare EPSG:21781/EPSG:4326 transform functions. These functions\r\n // are necessary for the ScaleLine control and when calling ol.proj.transform\r\n // for setting the view's initial center (see below).\r\n\r\n addCoordinateTransforms(\r\n \"EPSG:3857\",\r\n projection,\r\n coordinate => {\r\n const x = ((coordinate[0] + MERC_MAX) * maxxy) / (2 * MERC_MAX);\r\n const y = ((-coordinate[1] + MERC_MAX) * maxxy) / (2 * MERC_MAX);\r\n return [x, y];\r\n },\r\n coordinate => {\r\n const x = (coordinate[0] * (2 * MERC_MAX)) / maxxy - MERC_MAX;\r\n const y = -1 * ((coordinate[1] * (2 * MERC_MAX)) / maxxy - MERC_MAX);\r\n return [x, y];\r\n }\r\n );\r\n })(key, maxxy);\r\n}\r\n\r\n/*type Constructor = new (...args: any[]) => T;\r\n\r\nexport function setCustomFunctionForHistmap(Base: TBase) {\r\n abstract class HistMapMixin extends setCustomFunction(Base) {\r\n\r\n }\r\n return HistMapMixin;\r\n}\r\n\r\nexport function setCustomInitializeForHistmap(self: any, options: any) {\r\n\r\n setCustomInitialize(this, options);\r\n setupTileLoadFunction(this);\r\n}*/\r\n\r\nexport abstract class HistMap extends setCustomFunctionMaplat(XYZ) {\r\n constructor(options: any = {}) {\r\n options = addCommonOptions(options);\r\n options.wrapX = false;\r\n const zW = Math.log2(options.width / tileSize);\r\n const zH = Math.log2(options.height / tileSize);\r\n options.maxZoom = Math.ceil(Math.max(zW, zH));\r\n options.tileUrlFunction =\r\n options.tileUrlFunction ||\r\n function (this: HistMap, coord: any) {\r\n const z = coord[0];\r\n const x = coord[1];\r\n const y = coord[2];\r\n if (\r\n \r\n // @ts-ignore\r\n x * tileSize * Math.pow(2, this.maxZoom - z) >= this.width ||\r\n \r\n // @ts-ignore\r\n y * tileSize * Math.pow(2, this.maxZoom - z) >= this.height ||\r\n x < 0 ||\r\n y < 0\r\n ) {\r\n return transPng;\r\n }\r\n // @ts-expect-error ts-migrate(2683)\r\n return this._tileUrlFunction(coord);\r\n };\r\n super(options);\r\n\r\n if (options.mapID) {\r\n this.mapID = options.mapID;\r\n }\r\n if (options.urls) {\r\n // @ts-expect-error ts-migrate(2554)\r\n this._tileUrlFunction = createFromTemplates(options.urls);\r\n } else if (options.url) {\r\n // @ts-expect-error ts-migrate(2554)\r\n // In newer versions of OpenLayers, expandUrl is included in createFromTemplates\r\n this._tileUrlFunction = createFromTemplates(Array.isArray(options.url) ? options.url : [options.url]);\r\n }\r\n\r\n this.width = options.width;\r\n this.height = options.height;\r\n this.maxZoom = options.maxZoom;\r\n this._maxxy = Math.pow(2, this.maxZoom as number) * tileSize;\r\n\r\n this.initialize(options);\r\n }\r\n}\r\n","import { NowMap } from \"./nowmap\";\r\n\r\nexport class TmsMap extends NowMap {\r\n static isBasemap_ = false;\r\n\r\n constructor(options: any = {}) {\r\n super(Object.assign(options, { opaque: false }));\r\n }\r\n}","const i = \"https://weiwudi.example.com/api/\";\nlet w, o;\nclass m {\n constructor() {\n this.listeners = {};\n }\n addEventListener(e, r) {\n e in this.listeners || (this.listeners[e] = []), this.listeners[e].push(r);\n }\n removeEventListener(e, r) {\n if (!(e in this.listeners))\n return;\n const t = this.listeners[e];\n for (let s = 0, c = t.length; s < c; s++)\n if (t[s] === r) {\n t.splice(s, 1);\n return;\n }\n }\n dispatchEvent(e) {\n if (!(e.type in this.listeners))\n return !0;\n const r = this.listeners[e.type].slice();\n for (let t = 0, s = r.length; t < s; t++)\n r[t].call(this, e);\n return !e.defaultPrevented;\n }\n}\nclass a extends m {\n static async registerSW(e, r) {\n if (!(\"serviceWorker\" in navigator))\n throw \"Error: Service worker is not supported\";\n let t;\n try {\n t = await navigator.serviceWorker.register(e, r);\n } catch (s) {\n throw `Error: Service worker registration failed with ${s}`;\n }\n return await a.waitForController(), await a.swCheck(), t;\n }\n static async waitForController() {\n return new Promise((e, r) => {\n let t = !1, s;\n function c() {\n t || (t = !0, s !== void 0 && clearTimeout(s), navigator.serviceWorker.removeEventListener(\"controllerchange\", h));\n }\n function h() {\n navigator.serviceWorker.controller && (c(), e());\n }\n navigator.serviceWorker.addEventListener(\"controllerchange\", h), s = setTimeout(() => {\n c(), r(\"Error: Service worker did not control this page within 10000 ms\");\n }, 1e4), navigator.serviceWorker.ready.then(() => {\n navigator.serviceWorker.controller && (c(), e());\n }).catch(() => {\n });\n });\n }\n static async swCheck() {\n return o !== void 0 ? o : (w === void 0 && (w = new Promise((e, r) => {\n fetch(`${i}ping`).then((t) => {\n o = !!t, e(o);\n }).catch((t) => {\n o = !1, e(o);\n });\n })), w);\n }\n static async registerMap(e, r) {\n if (!await a.swCheck()) throw \"Weiwudi service worker is not implemented.\";\n let s;\n const c = [\"type\", \"url\", \"width\", \"height\", \"tileSize\", \"minZoom\", \"maxZoom\", \"maxLng\", \"maxLat\", \"minLng\", \"minLat\", \"cacheTtl\", \"cacheMaxBytes\"].reduce((l, n) => (typeof r[n] < \"u\" && (r[n] instanceof Array ? r[n].map((f) => {\n l.append(n, f);\n }) : l.append(n, String(r[n]))), l), new URLSearchParams());\n c.append(\"mapID\", e);\n const h = new URL(`${i}add`);\n if (h.search = c.toString(), s = await (await fetch(h.href)).text(), s.match(/^Error: /))\n throw s;\n return new a(e, JSON.parse(s));\n }\n static async retrieveMap(e) {\n if (!await a.swCheck()) throw \"Weiwudi service worker is not implemented.\";\n let t;\n if (t = await (await fetch(`${i}info?mapID=${e}`)).text(), t.match(/^Error: /))\n throw t;\n return console.log(t), new a(e, JSON.parse(t));\n }\n static async removeMap(e) {\n if (!await a.swCheck()) throw \"Weiwudi service worker is not implemented.\";\n let t;\n if (t = await (await fetch(`${i}delete?mapID=${e}`)).text(), t.match(/^Error: /))\n throw t;\n }\n constructor(e, r) {\n if (super(), !e) throw \"MapID is necessary.\";\n this.mapID = e, r && Object.assign(this, r), this.url = `${i}cache/${e}/{z}/{x}/{y}`, this.listener = (t) => {\n t.data.mapID === e && this.dispatchEvent(new CustomEvent(t.data.type, { detail: t.data }));\n }, navigator.serviceWorker.addEventListener(\"message\", this.listener);\n }\n release() {\n navigator.serviceWorker.removeEventListener(\"message\", this.listener), delete this.mapID;\n }\n checkAspect() {\n if (!this.mapID) throw \"This instance is already released.\";\n }\n async stats() {\n let e;\n if (this.checkAspect(), e = await (await fetch(`${i}stats?mapID=${this.mapID}`)).text(), typeof e == \"string\" && e.match(/^Error: /))\n throw e;\n return JSON.parse(e);\n }\n async clean() {\n let e;\n if (this.checkAspect(), e = await (await fetch(`${i}clean?mapID=${this.mapID}`)).text(), e.match(/^Error: /))\n throw e;\n }\n async fetchAll() {\n let e;\n if (this.checkAspect(), e = await (await fetch(`${i}fetchAll?mapID=${this.mapID}`)).text(), e.match(/^Error: /))\n throw e;\n }\n async remove() {\n this.checkAspect(), this.mapID && await a.removeMap(this.mapID), this.release();\n }\n async cancel() {\n let e;\n if (this.checkAspect(), e = await (await fetch(`${i}cancel?mapID=${this.mapID}`)).text(), e.match(/^Error: /))\n throw e;\n }\n}\nexport {\n m as WeiwudiEventTarget,\n a as default\n};\n//# sourceMappingURL=weiwudi.es.js.map\n","import {\r\n getTransform,\r\n identityTransform,\r\n transform,\r\n addCoordinateTransforms,\r\n ProjectionLike\r\n} from \"ol/proj\";\r\nimport { Coordinate } from \"ol/coordinate\";\r\n\r\n// Direct transformation between 2 projection\r\nexport function transformDirect(\r\n src: ProjectionLike,\r\n dist: ProjectionLike,\r\n xy?: Coordinate\r\n): Coordinate | undefined {\r\n const srcCode = typeof src === \"string\" ? src : src!.getCode();\r\n const distCode = typeof dist === \"string\" ? dist : dist!.getCode();\r\n let func = getTransform(src, dist);\r\n if (func == identityTransform && srcCode != distCode) {\r\n const srcFunc = getTransform(src, \"EPSG:3857\");\r\n const distFunc = getTransform(\"EPSG:3857\", dist);\r\n if (srcFunc == identityTransform && srcCode != \"EPSG:3857\")\r\n throw \"Transform of Source projection is not defined.\";\r\n if (distFunc == identityTransform && distCode != \"EPSG:3857\")\r\n throw \"Transform of Distination projection is not defined.\";\r\n func = function (xy: Coordinate): Coordinate {\r\n return transform(transform(xy, src, \"EPSG:3857\"), \"EPSG:3857\", dist);\r\n };\r\n const invFunc = function (xy: Coordinate): Coordinate {\r\n return transform(transform(xy, dist, \"EPSG:3857\"), \"EPSG:3857\", src);\r\n };\r\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\r\n // @ts-ignore\r\n addCoordinateTransforms(src, dist, func, invFunc);\r\n }\r\n\r\n \r\n if (xy) {\r\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\r\n // @ts-ignore\r\n return func(xy);\r\n }\r\n}\r\n","\"use strict\";\n\nimport {\n Transform,\n MapTransform,\n MapData,\n Compiled,\n PointSet,\n EdgeSet,\n StrictMode,\n VertexMode,\n YaxisMode\n} from \"@maplat/transform\";\nimport type { Position } from \"geojson\";\ntype LangResource = string | Record;\ntype TinLike = string | Transform | Compiled;\n\ninterface HistMapStore {\n title: LangResource;\n attr: LangResource;\n officialTitle: LangResource;\n dataAttr: LangResource;\n strictMode?: StrictMode;\n vertexMode?: VertexMode;\n yaxisMode?: YaxisMode;\n author: LangResource;\n createdAt: LangResource;\n era: LangResource;\n license: string;\n dataLicense: string;\n // m6-t2: ライセンスの自由記述欄 (LangResource)。keys へも必ず足す (Editor 側の写しと揃える)\n licenseNote: LangResource;\n dataLicenseNote: LangResource;\n contributor: LangResource;\n mapper: LangResource;\n reference: string;\n description: LangResource;\n // M5-T2 (不変条件 I-1): url は利用者が指定する交換形のタイルURLテンプレート(単一文字列)であり、\n // 多言語リソースではない。LangResource だったのは i18n 分離時にメタデータの型を\n // string | Record へ一括拡張した際の巻き添えである\n // (docs/history/openspec-legacy/remove-i18n-dependency/proposal.md)\n url: string;\n lang: string;\n imageExtension: string;\n width?: number;\n height?: number;\n gcps?: PointSet[];\n edges?: EdgeSet[];\n compiled?: Compiled;\n sub_maps: SubMap[];\n homePosition: Position;\n mercZoom: number;\n}\n\ninterface SubMap {\n gcps?: PointSet[];\n edges?: EdgeSet[];\n compiled?: Compiled;\n priority: number;\n importance: number;\n bounds?: number[][];\n}\n\nconst keys: (keyof HistMapStore)[] = [\n \"title\",\n \"attr\",\n \"officialTitle\",\n \"dataAttr\",\n \"author\",\n \"createdAt\",\n \"era\",\n \"license\",\n \"dataLicense\",\n \"licenseNote\",\n \"dataLicenseNote\",\n \"contributor\",\n \"mapper\",\n \"reference\",\n \"description\",\n \"url\",\n \"lang\",\n \"imageExtension\",\n \"homePosition\",\n \"mercZoom\"\n];\n\nexport async function store2HistMap(\n store: HistMapStore,\n byCompiled = false\n): Promise<[HistMapStore, TinLike[]]> {\n return store2HistMap_internal(store, byCompiled);\n}\n\nasync function store2HistMap_internal(\n store: HistMapStore,\n byCompiled: boolean\n): Promise<[HistMapStore, TinLike[]]> {\n const ret: any = {};\n const tins: TinLike[] = [];\n keys.forEach(key => {\n ret[key] = store[key];\n });\n if ((store as any)[\"imageExtention\"] || (store as any)[\"imageExtension\"])\n ret[\"imageExtension\"] = (store as any)[\"imageExtension\"] || (store as any)[\"imageExtention\"];\n if (store.compiled) {\n let tin: TinLike = new Transform();\n (tin as Transform).setCompiled(store.compiled);\n (tin as Transform).addIndexedTin();\n if (byCompiled) {\n tin = store.compiled;\n }\n const transform = tin as Transform;\n ret.strictMode = transform.strictMode;\n ret.vertexMode = transform.vertexMode;\n ret.yaxisMode = transform.yaxisMode;\n ret.width = transform.wh?.[0];\n ret.height = transform.wh?.[1];\n ret.gcps = transform.points;\n ret.edges = transform.edges;\n tins.push(tin);\n } else {\n ret.strictMode = store.strictMode;\n ret.vertexMode = store.vertexMode;\n ret.yaxisMode = store.yaxisMode;\n ret.width = store.width;\n ret.height = store.height;\n ret.gcps = store.gcps;\n ret.edges = store.edges;\n tins.push(\"compiledRequired\");\n }\n\n if (store.sub_maps) {\n const sub_maps = [] as SubMap[];\n for (let i = 0; i < store.sub_maps.length; i++) {\n const sub_map = store.sub_maps[i];\n const sub: any = {};\n sub.importance = sub_map.importance;\n sub.priority = sub_map.priority;\n if (sub_map.compiled) {\n let tin: TinLike = new Transform();\n (tin as Transform).setCompiled(sub_map.compiled);\n (tin as Transform).addIndexedTin();\n if (byCompiled) {\n tin = sub_map.compiled;\n }\n sub.bounds = (tin as Transform).bounds;\n sub.gcps = (tin as Transform).points;\n sub.edges = (tin as Transform).edges;\n tins.push(tin);\n } else {\n sub.bounds = sub_map.bounds;\n sub.gcps = sub_map.gcps;\n sub.edges = sub_map.edges;\n tins.push(\"compiledRequired\");\n }\n sub_maps.push(sub as SubMap);\n }\n ret.sub_maps = sub_maps;\n }\n return [ret as HistMapStore, tins];\n}\n\n// MaplatCore 専用: MapTransform を組み立てて返す\nexport async function store2HistMap4Core(\n store: HistMapStore\n): Promise<[HistMapStore, MapTransform]> {\n const ret: any = store;\n keys.forEach(key => {\n ret[key] = store[key];\n });\n if ((store as any)[\"imageExtention\"] || (store as any)[\"imageExtension\"])\n ret[\"imageExtension\"] = (store as any)[\"imageExtension\"] || (store as any)[\"imageExtention\"];\n\n if (!store.compiled) {\n throw new Error(\n \"@maplat/transform requires pre-compiled data. Cannot create MapTransform from GCPs.\"\n );\n }\n\n // MapData を組み立てる\n const mapData: MapData = { compiled: store.compiled };\n if (store.sub_maps?.length) {\n mapData.sub_maps = store.sub_maps\n .filter(s => s.compiled)\n .map(s => ({\n compiled: s.compiled!,\n priority: s.priority,\n importance: s.importance,\n bounds: s.bounds\n }));\n }\n\n const mapTransform = new MapTransform();\n mapTransform.setMapData(mapData);\n\n // メイン TIN からメタ情報を補完\n const mainTin = mapTransform.getLayerTransform(0)!;\n ret.strictMode = mainTin.strictMode;\n ret.vertexMode = mainTin.vertexMode;\n ret.yaxisMode = mainTin.yaxisMode;\n ret.width = mainTin.wh?.[0];\n ret.height = mainTin.wh?.[1];\n ret.gcps = mainTin.points;\n ret.edges = mainTin.edges;\n\n if (store.sub_maps) {\n const sub_maps = store.sub_maps.map((sub_map, i) => {\n const sub: any = {\n importance: sub_map.importance,\n priority: sub_map.priority\n };\n if (sub_map.compiled) {\n const subTin = mapTransform.getLayerTransform(i + 1);\n sub.bounds = subTin?.bounds ?? sub_map.bounds;\n sub.gcps = subTin?.points;\n sub.edges = subTin?.edges;\n } else {\n sub.bounds = sub_map.bounds;\n sub.gcps = sub_map.gcps;\n sub.edges = sub_map.edges;\n }\n return sub as SubMap;\n });\n ret.sub_maps = sub_maps;\n }\n\n return [ret as HistMapStore, mapTransform];\n}\n\nexport async function histMap2Store(\n histmap: HistMapStore,\n tins: TinLike[]\n): Promise {\n const ret: any = {};\n keys.forEach(key => {\n ret[key] = histmap[key];\n });\n if ((histmap as any)[\"imageExtention\"] || (histmap as any)[\"imageExtension\"])\n ret[\"imageExtension\"] = (histmap as any)[\"imageExtension\"] || (histmap as any)[\"imageExtention\"];\n const tin = tins.shift();\n if (typeof tin === \"string\") {\n ret.width = histmap.width;\n ret.height = histmap.height;\n ret.gcps = histmap.gcps;\n ret.edges = histmap.edges;\n ret.strictMode = histmap.strictMode;\n ret.vertexMode = histmap.vertexMode;\n ret.yaxisMode = histmap.yaxisMode;\n } else {\n ret.compiled = tin as Compiled;\n }\n\n ret.sub_maps =\n tins.length > 0\n ? tins.map((tin, index) => {\n const sub_map = histmap.sub_maps[index];\n const sub: any = {\n priority: sub_map.priority,\n importance: sub_map.importance\n };\n if (typeof tin === \"string\") {\n sub.gcps = sub_map.gcps;\n sub.edges = sub_map.edges;\n sub.bounds = sub_map.bounds;\n } else {\n sub.compiled = tin as Compiled;\n }\n return sub as SubMap;\n })\n : [];\n\n return ret as HistMapStore;\n}\n","import type { MapTransform } from \"@maplat/transform\";\nimport type { Coordinate } from \"ol/coordinate\";\n\n/**\n * GPS / POI 用の可視層判定を持つ Transform(@maplat/transform 1.1 以降)。\n * 1.0.x の型定義には `merc2XyVisibleLayers` が無いので Partial で受ける。\n */\nexport type MapTransformWithVisibleLayers = MapTransform &\n Partial<{ merc2XyVisibleLayers(merc: number[]): [number, number[]][] }>;\n\n/**\n * GPS マーカー・POI ピンの表示候補(MaplatCore#104)。\n *\n * `merc2XyVisibleLayers` が返す「覆われていない対応層」(importance 降順 → priority 降順 → 層番号昇順・上限なし)\n * から、紙の外になる候補(`insideCheckXy` が偽。実際には本図の紙外)を**除いてから**先頭 2 件を返す。\n * 1 位が表示先(GPS は main・POI はピン)、2 位が GPS の sub。視点換算にはこの結果を使わない。\n *\n * @returns 0〜2 件の `[層番号, 紙座標]`。Transform が `merc2XyVisibleLayers` を持たない(1.0.x)ときは\n * `null`(呼び出し側は従来経路を使う)\n */\nexport function selectDisplayCandidates(\n mapTransform: MapTransformWithVisibleLayers,\n merc: number[],\n insideCheckXy: (xy: Coordinate) => boolean\n): [number, Coordinate][] | null {\n if (typeof mapTransform.merc2XyVisibleLayers !== \"function\") return null;\n return mapTransform\n .merc2XyVisibleLayers(merc)\n .filter(([, xy]) => insideCheckXy(xy as Coordinate))\n .slice(0, 2)\n .map(([index, xy]) => [index, xy as Coordinate] as [number, Coordinate]);\n}\n","import { HistMap } from \"./histmap\";\nimport { MapTransform } from \"@maplat/transform\";\nimport { addCoordinateTransforms, addProjection, toLonLat } from \"ol/proj\";\nimport Projection from \"ol/proj/Projection\";\nimport { transformDirect } from \"../proj_ex\";\nimport { polygon } from \"@turf/turf\";\nimport type { Feature, Polygon } from \"geojson\";\nimport { MERC_MAX } from \"../const_ex\";\nimport { Coordinate } from \"ol/coordinate\";\nimport { store2HistMap4Core } from \"./store_handler\";\nimport { Size } from \"ol/size\";\nimport { CrossCoordinatesArray, ViewpointArray } from \"./mixin\";\nimport { selectDisplayCandidates } from \"./display_candidates\";\n\nexport class HistMap_tin extends HistMap {\n mapTransform: MapTransform;\n\n constructor(options: any = {}) {\n super(options);\n this.mapTransform = new MapTransform();\n }\n\n static async createAsync(options: any) {\n const [storeOptions, mapTransform] = await store2HistMap4Core(options);\n options = storeOptions;\n const obj = new HistMap_tin(options);\n obj.mapTransform = mapTransform;\n\n // メインレイヤーの OL Projection 登録\n const mainTin = mapTransform.getLayerTransform(0)!;\n const proj = new Projection({\n code: `Illst:${obj.mapID}`,\n extent: [0.0, 0.0, obj.width, obj.height],\n units: \"m\"\n });\n addProjection(proj);\n addCoordinateTransforms(\n proj,\n \"EPSG:3857\",\n xy => mainTin.transform(xy, false) as Coordinate,\n merc => mainTin.transform(merc, true) as Coordinate\n );\n transformDirect(\"EPSG:4326\", proj);\n\n // サブマップの OL Projection 登録\n if (options.sub_maps) {\n options.sub_maps.forEach((_sub_map: any, i: number) => {\n const index = i + 1;\n const projKey = `Illst:${obj.mapID}#${index}`;\n const tin = mapTransform.getLayerTransform(index);\n if (!tin) return;\n const subProj = new Projection({\n code: projKey,\n extent: [tin.xy![0], tin.xy![1], tin.wh![0], tin.wh![1]],\n units: \"m\"\n });\n addProjection(subProj);\n addCoordinateTransforms(\n subProj,\n \"EPSG:3857\",\n xy => tin.transform(xy, false, true) as Coordinate,\n merc => tin.transform(merc, true, true) as Coordinate\n );\n transformDirect(\"EPSG:4326\", subProj);\n });\n }\n return obj;\n }\n\n xy2MercAsync_specifyLayer(xy: Coordinate, layerId: number) {\n const layerKey = `Illst:${this.mapID}${layerId ? `#${layerId}` : \"\"}`;\n return new Promise((resolve, _reject) => {\n resolve(transformDirect(layerKey, \"EPSG:3857\", xy)!);\n }) as Promise;\n }\n\n merc2XyAsync_specifyLayer(merc: Coordinate, layerId: number) {\n const layerKey = `Illst:${this.mapID}${layerId ? `#${layerId}` : \"\"}`;\n return new Promise((resolve, _reject) => {\n resolve(transformDirect(\"EPSG:3857\", layerKey, merc)!);\n }) as Promise;\n }\n\n xy2MercAsync_returnLayer(xy: Coordinate): Promise<[number, Coordinate]> {\n const result = this.mapTransform.xy2MercWithLayer(xy);\n if (!result) return Promise.reject(new Error(\"xy2MercWithLayer: out of bounds\"));\n return Promise.resolve(result as [number, Coordinate]);\n }\n\n merc2XyAsync_returnLayer(\n merc: Coordinate\n ): Promise<([number, Coordinate] | undefined)[]> {\n const results = this.mapTransform.merc2XyWithLayer(merc);\n return Promise.resolve(\n results.map(r =>\n r ? ([r[0], r[1] as Coordinate] as [number, Coordinate]) : undefined\n )\n );\n }\n\n setupMapParameter(callback: any) {\n const xy = [this.width / 2, this.height / 2];\n const centerResult = this.mapTransform.xy2MercWithLayer(xy);\n if (!centerResult) return;\n const [index, mercCenter] = centerResult;\n\n const layerTin = this.mapTransform.getLayerTransform(index);\n const mainTin = this.mapTransform.getLayerTransform(0)!;\n if (!layerTin) return;\n\n const dir4 = [\n [xy[0] - 150, xy[1]],\n [xy[0] + 150, xy[1]],\n [xy[0], xy[1] - 150],\n [xy[0], xy[1] + 150]\n ];\n const envelope = [\n [0, 0],\n [this.width, 0],\n [this.width, this.height],\n [0, this.height]\n ];\n\n const dir4Mercs = dir4.map(p => layerTin.transform(p, false) as Coordinate);\n const envelopeMercs = envelope.map(\n p => mainTin.transform(p, false) as Coordinate\n );\n\n const delta1 = Math.sqrt(\n Math.pow(dir4Mercs[0][0] - dir4Mercs[1][0], 2) +\n Math.pow(dir4Mercs[0][1] - dir4Mercs[1][1], 2)\n );\n const delta2 = Math.sqrt(\n Math.pow(dir4Mercs[2][0] - dir4Mercs[3][0], 2) +\n Math.pow(dir4Mercs[2][1] - dir4Mercs[3][1], 2)\n );\n const delta = (delta1 + delta2) / 2;\n\n if (!this.mercZoom)\n this.mercZoom =\n Math.log((300 * (2 * MERC_MAX)) / 256 / delta) / Math.log(2) - 3;\n if (!this.homePosition) this.homePosition = toLonLat(mercCenter);\n this.envelope = polygon([\n [\n envelopeMercs[0],\n envelopeMercs[1],\n envelopeMercs[2],\n envelopeMercs[3],\n envelopeMercs[0]\n ]\n ]) as Feature;\n callback(this);\n }\n\n // GPS マーカー用(呼び出し元は mixin の setGPSMarkerAsync のみ)。\n // Transform が merc2XyVisibleLayers を持てば、紙外の本図を除いた表示候補の 1・2 位を返す(MaplatCore#104):\n // 1 位は中心+周囲 4 点を同じ層で逆変換した 5 点、2 位は中心だけ。undefined(旧 hide 表現)を含まない 0〜2 件。\n // 持たない(@maplat/transform 1.0.x)なら従来経路(mercs2SysCoords)。\n mercs2SysCoordsAsync_multiLayer(\n mercs: CrossCoordinatesArray\n ): Promise<(CrossCoordinatesArray | undefined)[]> {\n const points = mercs[0] as number[][];\n const candidates = selectDisplayCandidates(\n this.mapTransform,\n points[0],\n xy => this.insideCheckXy(xy)\n );\n if (candidates) {\n return Promise.resolve(\n candidates.map(([index, xy], rank) => {\n if (rank > 0) {\n return [[this.xy2SysCoord(xy)], mercs[1]] as CrossCoordinatesArray;\n }\n const tin = this.mapTransform.getLayerTransform(index)!;\n const xys = points.map((merc, j) =>\n j === 0 ? xy : (tin.transform(merc, true, index > 0) as Coordinate)\n );\n return [\n xys.map(p => this.xy2SysCoord(p)),\n mercs[1]\n ] as CrossCoordinatesArray;\n })\n );\n }\n const results = this.mapTransform.mercs2SysCoords(mercs[0]);\n return Promise.resolve(\n results.map(result => {\n if (!result) return undefined;\n return [result.map(xy => xy as Coordinate), mercs[1]] as CrossCoordinatesArray;\n })\n );\n }\n\n merc2XyAsync_base(\n merc: Coordinate,\n ignoreBackground: boolean\n ): Promise {\n return this.merc2XyAsync_returnLayer(merc).then(ret => {\n if (ignoreBackground && !ret[0]) return;\n const pick = !ret[0] ? ret[1] : ret[0];\n return (pick as [number, Coordinate])[1];\n });\n }\n\n // POI ピン用(呼び出し元は mixin の merc2SysCoordAsync_ignoreBackground → index.ts の setMarker のみ)。\n // Transform が merc2XyVisibleLayers を持てば、紙外の本図を除いた表示候補の 1 位、無ければ undefined(MaplatCore#104)。\n // 持たない(@maplat/transform 1.0.x)なら従来経路。\n merc2XyAsync_ignoreBackground(merc: Coordinate): Promise {\n const candidates = selectDisplayCandidates(this.mapTransform, merc, xy =>\n this.insideCheckXy(xy)\n );\n if (candidates) {\n return Promise.resolve(candidates.length ? candidates[0][1] : undefined);\n }\n return this.merc2XyAsync_base(merc, true);\n }\n\n merc2XyAsync(merc: Coordinate): Promise {\n return this.merc2XyAsync_base(merc, false) as Promise;\n }\n\n xy2MercAsync(xy: Coordinate): Promise {\n return this.xy2MercAsync_returnLayer(xy).then(ret => ret[1]);\n }\n\n viewpoint2MercsAsync(\n viewpoint?: ViewpointArray,\n size?: Size\n ): Promise {\n const center = (viewpoint?.[0] ??\n this.getMap().getView().getCenter()!) as number[];\n const zoom =\n viewpoint?.[1] ??\n (this.getMap().getView() as any).getDecimalZoom();\n const rotation =\n viewpoint?.[2] ?? this.getMap().getView().getRotation();\n if (!size) size = this.getMap().getSize()!;\n\n const mercs = this.mapTransform.viewpoint2Mercs(\n { center, zoom, rotation },\n size as [number, number]\n );\n return Promise.resolve([mercs, size] as CrossCoordinatesArray);\n }\n\n mercs2ViewpointAsync(mercs: CrossCoordinatesArray): Promise {\n const size = (mercs[1] ?? this.getMap().getSize()!) as [number, number];\n const viewpoint = this.mapTransform.mercs2Viewpoint(\n mercs[0] as number[][],\n size\n );\n return Promise.resolve([\n viewpoint.center as Coordinate,\n viewpoint.zoom,\n viewpoint.rotation\n ] as ViewpointArray);\n }\n}\n","// IIIF Image API の画像を Maplat の古地図として配るための関数。\n//\n// 設計の要点:\n// - info.json の読みと、要求 URL の文法(region・size・品質・形式)は OpenLayers に任せる\n// (ol/format の IIIFInfo・ol/source の IIIF)。ここでは IIIF の URL の文法を書かない。\n// - 格子とタイルの読み込みは Maplat の HistMap のまま。IIIF から借りるのは URL の関数だけ。\n// - Maplat の座標は画素の 1 次の変換で、原点・y の向き・タイルの番号の付け方が OL の IIIF の格子と\n// 同じなので、OL が作る URL の関数を Maplat の (z, x, y) にそのまま当てられる。\nimport { IIIFInfo } from \"ol/format\";\nimport { IIIF } from \"ol/source\";\nimport { tileSize as TILE_SIZE, transPng } from \"../const_ex\";\n\n/** Core で配れない理由 */\nexport type IiifDeliveryReason =\n | \"bad-url\"\n | \"fetch-failed\"\n | \"timeout\"\n | \"too-large\"\n | \"not-json\"\n | \"unsupported-version\"\n | \"unsupported-level0\"\n | \"size-mismatch\";\n\n/** info.json を検査した結果 */\nexport type IiifDeliveryCheck =\n | {\n ok: true;\n version: \"2\" | \"3\";\n level: 0 | 1 | 2;\n tiling: \"arbitrary\" | \"level0-256\" | \"level0-crop\";\n }\n | { ok: false; reason: IiifDeliveryReason };\n\nexport class IiifDeliveryError extends Error {\n readonly reason: IiifDeliveryReason;\n readonly mapID?: string;\n\n constructor(reason: IiifDeliveryReason, message?: string, mapID?: string) {\n super(message || reason);\n this.name = \"IiifDeliveryError\";\n this.reason = reason;\n this.mapID = mapID;\n }\n}\n\n/** 画像サービスの URL から info.json の URL を作る(末尾の / は 1 つにまとめる) */\nfunction infoJsonUrl(url: string) {\n return `${url.replace(/\\/+$/, \"\")}/info.json`;\n}\n\n// level0 の 256 でないタイル(512・1024 等)の切り出しの口は、まだ入れていない。\n// この枝が入る PR で true にする(Editor の取り込みの判定も自動で追随する)。\nconst LEVEL0_CROP_SUPPORTED = false;\n\n// info.json をオブジェクトにする(文字列なら JSON として読む)\nfunction toInfoObject(info: unknown): any | undefined {\n if (typeof info === \"string\") {\n try {\n return JSON.parse(info);\n } catch (_e) {\n return undefined;\n }\n }\n if (info && typeof info === \"object\") return info;\n return undefined;\n}\n\n// profile の 'level0'〜'level2' を数にする\nfunction levelOf(iiif: IIIFInfo, version: string): 0 | 1 | 2 {\n const level = iiif.getComplianceLevelFromProfile(version);\n const matched = level ? /level([0-2])/.exec(level) : null;\n return matched ? (Number(matched[1]) as 0 | 1 | 2) : 0;\n}\n\n// タイルの大きさ(幅・高さ)を数にそろえる\nfunction tileSizeOf(tileSize: any): { width?: number; height?: number } {\n if (tileSize === undefined || tileSize === null) return {};\n if (typeof tileSize === \"number\") return { width: tileSize, height: tileSize };\n if (Array.isArray(tileSize)) {\n const width = tileSize[0];\n const height = tileSize[1] === undefined ? tileSize[0] : tileSize[1];\n return { width, height };\n }\n return {};\n}\n\n// 大きさとして使える数か(正の整数だけ)\nfunction isPositiveInteger(value: unknown): value is number {\n return Number.isInteger(value) && (value as number) > 0;\n}\n\n// 倍率が 1 から始まる 2 の冪の連続か([1]・[1,2]・[1,2,4]・…)。\n// level0 のタイルの地図は、途中の倍率が欠けていると、そのズームのタイルが静的な\n// サーバに無く画が抜ける(要求は 404 になり、再試行の後に透明になる)。\n// OL は getTileSourceOptions の resolutions を降順に並べ替えるので、ここでも並べ直す。\nfunction isContiguousPowerOfTwo(scales: unknown): scales is number[] {\n if (!Array.isArray(scales) || scales.length === 0) return false;\n const sorted = [...scales].sort((a, b) => a - b);\n return sorted.every((scale, index) => scale === 2 ** index);\n}\n\n/**\n * info.json を検査して、Core で配れるかを返す(取得しない純粋な関数)\n */\nexport function checkIiifDelivery(\n info: unknown,\n expected?: { width: number; height: number }\n): IiifDeliveryCheck {\n const json = toInfoObject(info);\n if (!json) return { ok: false, reason: \"not-json\" };\n\n // 大きさは正の整数であること。無いまま先へ進むと、OL の格子(new IIIF・size)が\n // 「Missing or invalid size」の素の Error を投げ、呼び手が reason を受け取れない。\n // expected も同じ形で見る(noload の道は options の width・height を当てにするため、\n // undefined のまま比べると undefined !== undefined で素通りする)。\n if (!isPositiveInteger(json.width) || !isPositiveInteger(json.height))\n return { ok: false, reason: \"size-mismatch\" };\n if (\n expected &&\n (!isPositiveInteger(expected.width) ||\n !isPositiveInteger(expected.height) ||\n json.width !== expected.width ||\n json.height !== expected.height)\n )\n return { ok: false, reason: \"size-mismatch\" };\n\n let iiif: IIIFInfo;\n let version: string | undefined;\n let options: any;\n try {\n iiif = new IIIFInfo(json);\n version = iiif.getImageApiVersion();\n if (version !== \"version2\" && version !== \"version3\")\n return { ok: false, reason: \"unsupported-version\" };\n options = iiif.getTileSourceOptions() || {};\n } catch (_e) {\n return { ok: false, reason: \"unsupported-version\" };\n }\n\n const level = levelOf(iiif, version);\n const versionNumber = version === \"version2\" ? \"2\" : \"3\";\n const supports: string[] = options.supports || [];\n const arbitrary =\n (supports.includes(\"regionByPx\") || supports.includes(\"regionByPct\")) &&\n (supports.includes(\"sizeByW\") ||\n supports.includes(\"sizeByH\") ||\n supports.includes(\"sizeByWh\") ||\n supports.includes(\"sizeByPct\"));\n if (arbitrary)\n return { ok: true, version: versionNumber, level, tiling: \"arbitrary\" };\n\n const { width, height } = tileSizeOf(options.tileSize);\n if (\n width === 256 &&\n height === 256 &&\n isContiguousPowerOfTwo(options.resolutions)\n )\n return { ok: true, version: versionNumber, level, tiling: \"level0-256\" };\n if (\n LEVEL0_CROP_SUPPORTED &&\n !!width &&\n !!height &&\n width % 256 === 0 &&\n height % 256 === 0\n )\n return { ok: true, version: versionNumber, level, tiling: \"level0-crop\" };\n\n return { ok: false, reason: \"unsupported-level0\" };\n}\n\n/** 使えない IIIF の地図の印(起動を止めないため、source の代わりに配列に残す) */\nexport type UnusableSource = {\n mapID: string;\n __maplatUnusable: { reason: IiifDeliveryReason };\n};\n\n/**\n * 解決に失敗した IIIF の地図に付ける印を作る(起動全体を止めない)\n */\nexport function unusableSource(\n option: { mapID?: string } | string,\n err: IiifDeliveryError\n): UnusableSource {\n // sources の要素は文字列(地図 ID だけ)のこともある(\"gsi\"・\"osm\" 等)\n const mapID = typeof option === \"string\" ? option : (option?.mapID ?? \"\");\n return {\n mapID,\n __maplatUnusable: { reason: err.reason }\n };\n}\n\n/**\n * 使えない IIIF の地図の印かどうか\n */\nexport function isUnusableSource(source: unknown): source is UnusableSource {\n return (\n !!source &&\n typeof source === \"object\" &&\n \"__maplatUnusable\" in (source as Record)\n );\n}\n\n/** 起動のときに使えなかった IIIF の地図(要素の sourceLoaded の材料) */\nexport type UnusableSourceEntry = { mapID: string; reason: IiifDeliveryReason };\n\n// 控えはアプリのインスタンスを鍵にした WeakMap に置く。アプリのクラスのフィールドに\n// すると build の型(index.d.ts)に内部の面が出てしまう(利用者に見せる形を増やさない)。\n// インスタンスが消えれば控えも一緒に消える。\nconst unusableSourcesByApp = new WeakMap();\n\n/** 起動のときに使えなかった地図の控えを書く(起動のたびに作り直す) */\nexport function setUnusableSources(\n app: object,\n list: UnusableSourceEntry[]\n): void {\n unusableSourcesByApp.set(app, [...list]);\n}\n\n/** 起動のときに使えなかった地図の控えを読む(無ければ空) */\nexport function getUnusableSources(app: object): UnusableSourceEntry[] {\n return [...(unusableSourcesByApp.get(app) ?? [])];\n}\n\n// info.json の取得の上限\nconst INFO_TIMEOUT_MS = 10000;\nconst INFO_MAX_BYTES = 1024 * 1024;\n\n// 文字列の長さをバイト数で見る(TextEncoder が無い環境では文字数で代用する)\nfunction byteLength(text: string) {\n if (typeof TextEncoder === \"undefined\") return text.length;\n return new TextEncoder().encode(text).length;\n}\n\n// 取得できる URL の形か(http:/https: だけ)\nfunction assertFetchableUrl(url: string) {\n let parsed: URL;\n try {\n parsed = new URL(url);\n } catch (_e) {\n throw new IiifDeliveryError(\"bad-url\", `IIIF image URL is not a URL: ${url}`);\n }\n if (parsed.protocol !== \"http:\" && parsed.protocol !== \"https:\")\n throw new IiifDeliveryError(\n \"bad-url\",\n `IIIF image URL must be http or https: ${url}`\n );\n}\n\n// 本文を上限つきで読む(Content-Length があれば読まずに切る・読みながらの累計でも切る)\nasync function readTextWithLimit(response: any, limit: number) {\n const lengthHeader = response.headers?.get?.(\"content-length\");\n if (lengthHeader !== null && lengthHeader !== undefined) {\n const declared = Number(lengthHeader);\n if (!Number.isNaN(declared) && declared > limit)\n throw new IiifDeliveryError(\n \"too-large\",\n `IIIF info.json is larger than ${limit} bytes`\n );\n }\n\n const body = response.body;\n if (body && typeof body.getReader === \"function\") {\n const reader = body.getReader();\n const decoder = typeof TextDecoder === \"undefined\" ? undefined : new TextDecoder();\n let total = 0;\n let text = \"\";\n for (;;) {\n const { done, value } = await reader.read();\n if (done) break;\n total += value.byteLength;\n if (total > limit) {\n try {\n await reader.cancel();\n } catch (_e) {\n // 読めなくても扱いは同じ\n }\n throw new IiifDeliveryError(\n \"too-large\",\n `IIIF info.json is larger than ${limit} bytes`\n );\n }\n text += decoder\n ? decoder.decode(value, { stream: true })\n : String.fromCharCode.apply(null, Array.from(value));\n }\n if (decoder) text += decoder.decode();\n return text;\n }\n\n const text = await response.text();\n if (byteLength(text) > limit)\n throw new IiifDeliveryError(\n \"too-large\",\n `IIIF info.json is larger than ${limit} bytes`\n );\n return text;\n}\n\n// info.json の @id/id と delivery.url が同じ画像サービスを指すか(scheme・ホスト・パス)\nfunction serviceKey(url: string) {\n try {\n const parsed = new URL(url);\n return `${parsed.protocol}//${parsed.host}${parsed.pathname.replace(/\\/+$/, \"\")}`;\n } catch (_e) {\n return url.replace(/\\/+$/, \"\");\n }\n}\n\n/**\n * delivery を解決して、HistMap に渡す tileUrlFunction を作る(info.json を取得する)\n */\nexport async function resolveIiifDelivery(\n delivery: { type: \"iiifImage\"; url: string },\n expected: { width: number; height: number },\n opts?: { signal?: AbortSignal; fetchImpl?: typeof fetch }\n): Promise<{\n tileUrlFunction: (coord: number[]) => string;\n /** 配信の基準の URL(info.json の @id と違えば delivery.url のほう) */\n url: string;\n width: number;\n height: number;\n info: unknown;\n warnings: string[];\n /** level0-256 のときだけ、HistMap に渡すズームの下限 */\n minZoom?: number;\n}> {\n if (!delivery || delivery.type !== \"iiifImage\" || typeof delivery.url !== \"string\")\n throw new IiifDeliveryError(\n \"bad-url\",\n \"IIIF delivery must have { type: 'iiifImage', url }\"\n );\n const url = delivery.url.replace(/\\/+$/, \"\");\n assertFetchableUrl(url);\n\n const fetchImpl = opts?.fetchImpl || fetch;\n const controller = new AbortController();\n let timedOut = false;\n const timer = setTimeout(() => {\n timedOut = true;\n controller.abort();\n }, INFO_TIMEOUT_MS);\n const onExternalAbort = () => controller.abort();\n if (opts?.signal) opts.signal.addEventListener(\"abort\", onExternalAbort);\n\n let text: string;\n try {\n let response: any;\n try {\n response = await fetchImpl(infoJsonUrl(url), {\n credentials: \"omit\",\n signal: controller.signal\n });\n if (!response || !response.ok)\n throw new IiifDeliveryError(\n \"fetch-failed\",\n `Failed to fetch IIIF info.json: ${infoJsonUrl(url)}`\n );\n text = await readTextWithLimit(response, INFO_MAX_BYTES);\n } catch (err) {\n if (err instanceof IiifDeliveryError) throw err;\n if (timedOut)\n throw new IiifDeliveryError(\n \"timeout\",\n `Timed out fetching IIIF info.json: ${infoJsonUrl(url)}`\n );\n throw new IiifDeliveryError(\n \"fetch-failed\",\n `Failed to fetch IIIF info.json: ${infoJsonUrl(url)}`\n );\n }\n } finally {\n clearTimeout(timer);\n if (opts?.signal) opts.signal.removeEventListener(\"abort\", onExternalAbort);\n }\n\n let info: any;\n try {\n info = JSON.parse(text);\n } catch (_e) {\n throw new IiifDeliveryError(\n \"not-json\",\n `IIIF info.json is not JSON: ${infoJsonUrl(url)}`\n );\n }\n\n const checked = checkIiifDelivery(info, expected);\n if (!checked.ok) throw new IiifDeliveryError(checked.reason);\n\n const warnings: string[] = [];\n const infoId = info[\"@id\"] || info.id;\n if (typeof infoId === \"string\" && serviceKey(infoId) !== serviceKey(url))\n warnings.push(\n `Maplat: the IIIF image service \"${infoId}\" differs from the delivery URL \"${url}\"; using the delivery URL.`\n );\n\n const sourceOptions = new IIIFInfo(info).getTileSourceOptions() || {};\n // level0 のタイルの地図は、scaleFactors に無い倍率のズームを要求すると、静的なサーバに\n // 無いファイルを指す。HistMap の minZoom を「最も粗いタイルの倍率」まで上げる\n // (maxZoom は HistMap と同じ式)。倍率は 1 から始まる 2 の冪の連続なので差は整数になる。\n // 最も粗いタイルが maxZoom より細かい資料では差が負になるので 0 に丸める(z が負だと\n // OL の格子に解像度が無く、表示が壊れる)。任意の領域が取れる地図には入れない。\n let minZoom: number | undefined;\n if (checked.tiling === \"level0-256\") {\n const scales: number[] = Array.isArray((sourceOptions as any).resolutions)\n ? ((sourceOptions as any).resolutions as number[])\n : [];\n const maxScaleFactor = scales.length > 0 ? Math.max(...scales) : undefined;\n if (\n maxScaleFactor !== undefined &&\n Number.isFinite(maxScaleFactor) &&\n maxScaleFactor > 0\n ) {\n const maxZoom = Math.ceil(\n Math.max(\n Math.log2(info.width / TILE_SIZE),\n Math.log2(info.height / TILE_SIZE)\n )\n );\n minZoom = Math.max(0, maxZoom - Math.log2(maxScaleFactor));\n }\n }\n const olSource = new IIIF({\n ...(sourceOptions as any),\n url,\n tileSize: TILE_SIZE,\n resolutions: undefined\n });\n const olTileUrlFunction = olSource.getTileUrlFunction();\n // OL の IIIF の URL の関数は projection を使わない(格子も見ない)ので、渡す必要が無い\n const tileUrlFunction = (coord: number[]) =>\n (olTileUrlFunction &&\n (olTileUrlFunction as any)(coord, 1, undefined)) ||\n transPng;\n\n return {\n tileUrlFunction,\n url,\n width: info.width,\n height: info.height,\n info,\n warnings,\n ...(minZoom !== undefined ? { minZoom } : {})\n };\n}\n\n// --- 結線(source_ex の 2 つの道から呼ぶ。同じ処理を 2 か所に書かない) ---\n\n/** この地図の `delivery` が IIIF Image か(type が違えば 1 回だけ警告して false) */\nexport function wantsIiifDelivery(options: any): boolean {\n const delivery = options && options.delivery;\n if (!delivery) return false;\n if (delivery.type === \"iiifImage\") return true;\n console.warn(\n `Maplat: map \"${options.mapID}\" has delivery type \"${delivery.type}\"; ignoring delivery.`\n );\n return false;\n}\n\n/**\n * `delivery` を解決して、HistMap に渡す options に IIIF の URL の関数を入れる\n * (json の道と noload の道の共通の処理)。\n *\n * - `url`・`urls` があれば消す(`delivery` を使う。1 回だけ警告する)\n * - `minZoom` が返れば options に入れる(level0-256 のときだけ)\n * - 解決の警告(info.json の `@id` の食い違い)は地図ごとに 1 回 `console.warn` する\n *\n * 失敗は `IiifDeliveryError` を投げる。\n */\nexport async function prepareIiifOptions(\n options: any,\n expected: { width: number; height: number },\n opts?: { signal?: AbortSignal; fetchImpl?: typeof fetch }\n): Promise {\n const delivery = await resolveIiifDelivery(options.delivery, expected, opts);\n if (options.url || options.urls) {\n console.warn(\n `Maplat: map \"${options.mapID}\" has both delivery and url; using delivery.`\n );\n delete options.url;\n delete options.urls;\n }\n for (const warning of delivery.warnings) console.warn(warning);\n options.tileUrlFunction = delivery.tileUrlFunction;\n if (delivery.minZoom !== undefined) options.minZoom = delivery.minZoom;\n // source を作った後に付け直すための控え(この key はタイルのキャッシュを配信ごとに分ける)\n options.__maplatIiifUrl = delivery.url;\n}\n\n/**\n * source を作った直後に、IIIF の URL の関数を付け直す。\n *\n * OpenLayers の UrlTile は、url(または urls)を与えると構築の時点で URL の関数を\n * テンプレートから作り直す(generateTileUrlFunction_)。Maplat の HistMap は mapID が\n * あると `tiles//…` の url を補うので、options に入れただけでは IIIF の URL に\n * ならない。source の公開の口(setTileUrlFunction)で、作った後に付け直す。\n * key に配信の URL を渡して、タイルのキャッシュの鍵も配信ごとに分ける。\n */\nexport function applyIiifTileUrlFunction(source: any, options: any): void {\n if (!options || !options.__maplatIiifUrl) return;\n if (typeof source?.setTileUrlFunction !== \"function\") return;\n source.setTileUrlFunction(options.tileUrlFunction, options.__maplatIiifUrl);\n}\n","/* eslint-disable no-prototype-builtins */\nvar g =\n (typeof globalThis !== 'undefined' && globalThis) ||\n (typeof self !== 'undefined' && self) ||\n // eslint-disable-next-line no-undef\n (typeof global !== 'undefined' && global) ||\n {}\n\nvar support = {\n searchParams: 'URLSearchParams' in g,\n iterable: 'Symbol' in g && 'iterator' in Symbol,\n blob:\n 'FileReader' in g &&\n 'Blob' in g &&\n (function() {\n try {\n new Blob()\n return true\n } catch (e) {\n return false\n }\n })(),\n formData: 'FormData' in g,\n arrayBuffer: 'ArrayBuffer' in g\n}\n\nfunction isDataView(obj) {\n return obj && DataView.prototype.isPrototypeOf(obj)\n}\n\nif (support.arrayBuffer) {\n var viewClasses = [\n '[object Int8Array]',\n '[object Uint8Array]',\n '[object Uint8ClampedArray]',\n '[object Int16Array]',\n '[object Uint16Array]',\n '[object Int32Array]',\n '[object Uint32Array]',\n '[object Float32Array]',\n '[object Float64Array]'\n ]\n\n var isArrayBufferView =\n ArrayBuffer.isView ||\n function(obj) {\n return obj && viewClasses.indexOf(Object.prototype.toString.call(obj)) > -1\n }\n}\n\nfunction normalizeName(name) {\n if (typeof name !== 'string') {\n name = String(name)\n }\n if (/[^a-z0-9\\-#$%&'*+.^_`|~!]/i.test(name) || name === '') {\n throw new TypeError('Invalid character in header field name: \"' + name + '\"')\n }\n return name.toLowerCase()\n}\n\nfunction normalizeValue(value) {\n if (typeof value !== 'string') {\n value = String(value)\n }\n return value\n}\n\n// Build a destructive iterator for the value list\nfunction iteratorFor(items) {\n var iterator = {\n next: function() {\n var value = items.shift()\n return {done: value === undefined, value: value}\n }\n }\n\n if (support.iterable) {\n iterator[Symbol.iterator] = function() {\n return iterator\n }\n }\n\n return iterator\n}\n\nexport function Headers(headers) {\n this.map = {}\n\n if (headers instanceof Headers) {\n headers.forEach(function(value, name) {\n this.append(name, value)\n }, this)\n } else if (Array.isArray(headers)) {\n headers.forEach(function(header) {\n if (header.length != 2) {\n throw new TypeError('Headers constructor: expected name/value pair to be length 2, found' + header.length)\n }\n this.append(header[0], header[1])\n }, this)\n } else if (headers) {\n Object.getOwnPropertyNames(headers).forEach(function(name) {\n this.append(name, headers[name])\n }, this)\n }\n}\n\nHeaders.prototype.append = function(name, value) {\n name = normalizeName(name)\n value = normalizeValue(value)\n var oldValue = this.map[name]\n this.map[name] = oldValue ? oldValue + ', ' + value : value\n}\n\nHeaders.prototype['delete'] = function(name) {\n delete this.map[normalizeName(name)]\n}\n\nHeaders.prototype.get = function(name) {\n name = normalizeName(name)\n return this.has(name) ? this.map[name] : null\n}\n\nHeaders.prototype.has = function(name) {\n return this.map.hasOwnProperty(normalizeName(name))\n}\n\nHeaders.prototype.set = function(name, value) {\n this.map[normalizeName(name)] = normalizeValue(value)\n}\n\nHeaders.prototype.forEach = function(callback, thisArg) {\n for (var name in this.map) {\n if (this.map.hasOwnProperty(name)) {\n callback.call(thisArg, this.map[name], name, this)\n }\n }\n}\n\nHeaders.prototype.keys = function() {\n var items = []\n this.forEach(function(value, name) {\n items.push(name)\n })\n return iteratorFor(items)\n}\n\nHeaders.prototype.values = function() {\n var items = []\n this.forEach(function(value) {\n items.push(value)\n })\n return iteratorFor(items)\n}\n\nHeaders.prototype.entries = function() {\n var items = []\n this.forEach(function(value, name) {\n items.push([name, value])\n })\n return iteratorFor(items)\n}\n\nif (support.iterable) {\n Headers.prototype[Symbol.iterator] = Headers.prototype.entries\n}\n\nfunction consumed(body) {\n if (body._noBody) return\n if (body.bodyUsed) {\n return Promise.reject(new TypeError('Already read'))\n }\n body.bodyUsed = true\n}\n\nfunction fileReaderReady(reader) {\n return new Promise(function(resolve, reject) {\n reader.onload = function() {\n resolve(reader.result)\n }\n reader.onerror = function() {\n reject(reader.error)\n }\n })\n}\n\nfunction readBlobAsArrayBuffer(blob) {\n var reader = new FileReader()\n var promise = fileReaderReady(reader)\n reader.readAsArrayBuffer(blob)\n return promise\n}\n\nfunction readBlobAsText(blob) {\n var reader = new FileReader()\n var promise = fileReaderReady(reader)\n var match = /charset=([A-Za-z0-9_-]+)/.exec(blob.type)\n var encoding = match ? match[1] : 'utf-8'\n reader.readAsText(blob, encoding)\n return promise\n}\n\nfunction readArrayBufferAsText(buf) {\n var view = new Uint8Array(buf)\n var chars = new Array(view.length)\n\n for (var i = 0; i < view.length; i++) {\n chars[i] = String.fromCharCode(view[i])\n }\n return chars.join('')\n}\n\nfunction bufferClone(buf) {\n if (buf.slice) {\n return buf.slice(0)\n } else {\n var view = new Uint8Array(buf.byteLength)\n view.set(new Uint8Array(buf))\n return view.buffer\n }\n}\n\nfunction Body() {\n this.bodyUsed = false\n\n this._initBody = function(body) {\n /*\n fetch-mock wraps the Response object in an ES6 Proxy to\n provide useful test harness features such as flush. However, on\n ES5 browsers without fetch or Proxy support pollyfills must be used;\n the proxy-pollyfill is unable to proxy an attribute unless it exists\n on the object before the Proxy is created. This change ensures\n Response.bodyUsed exists on the instance, while maintaining the\n semantic of setting Request.bodyUsed in the constructor before\n _initBody is called.\n */\n // eslint-disable-next-line no-self-assign\n this.bodyUsed = this.bodyUsed\n this._bodyInit = body\n if (!body) {\n this._noBody = true;\n this._bodyText = ''\n } else if (typeof body === 'string') {\n this._bodyText = body\n } else if (support.blob && Blob.prototype.isPrototypeOf(body)) {\n this._bodyBlob = body\n } else if (support.formData && FormData.prototype.isPrototypeOf(body)) {\n this._bodyFormData = body\n } else if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body)) {\n this._bodyText = body.toString()\n } else if (support.arrayBuffer && support.blob && isDataView(body)) {\n this._bodyArrayBuffer = bufferClone(body.buffer)\n // IE 10-11 can't handle a DataView body.\n this._bodyInit = new Blob([this._bodyArrayBuffer])\n } else if (support.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(body) || isArrayBufferView(body))) {\n this._bodyArrayBuffer = bufferClone(body)\n } else {\n this._bodyText = body = Object.prototype.toString.call(body)\n }\n\n if (!this.headers.get('content-type')) {\n if (typeof body === 'string') {\n this.headers.set('content-type', 'text/plain;charset=UTF-8')\n } else if (this._bodyBlob && this._bodyBlob.type) {\n this.headers.set('content-type', this._bodyBlob.type)\n } else if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body)) {\n this.headers.set('content-type', 'application/x-www-form-urlencoded;charset=UTF-8')\n }\n }\n }\n\n if (support.blob) {\n this.blob = function() {\n var rejected = consumed(this)\n if (rejected) {\n return rejected\n }\n\n if (this._bodyBlob) {\n return Promise.resolve(this._bodyBlob)\n } else if (this._bodyArrayBuffer) {\n return Promise.resolve(new Blob([this._bodyArrayBuffer]))\n } else if (this._bodyFormData) {\n throw new Error('could not read FormData body as blob')\n } else {\n return Promise.resolve(new Blob([this._bodyText]))\n }\n }\n }\n\n this.arrayBuffer = function() {\n if (this._bodyArrayBuffer) {\n var isConsumed = consumed(this)\n if (isConsumed) {\n return isConsumed\n } else if (ArrayBuffer.isView(this._bodyArrayBuffer)) {\n return Promise.resolve(\n this._bodyArrayBuffer.buffer.slice(\n this._bodyArrayBuffer.byteOffset,\n this._bodyArrayBuffer.byteOffset + this._bodyArrayBuffer.byteLength\n )\n )\n } else {\n return Promise.resolve(this._bodyArrayBuffer)\n }\n } else if (support.blob) {\n return this.blob().then(readBlobAsArrayBuffer)\n } else {\n throw new Error('could not read as ArrayBuffer')\n }\n }\n\n this.text = function() {\n var rejected = consumed(this)\n if (rejected) {\n return rejected\n }\n\n if (this._bodyBlob) {\n return readBlobAsText(this._bodyBlob)\n } else if (this._bodyArrayBuffer) {\n return Promise.resolve(readArrayBufferAsText(this._bodyArrayBuffer))\n } else if (this._bodyFormData) {\n throw new Error('could not read FormData body as text')\n } else {\n return Promise.resolve(this._bodyText)\n }\n }\n\n if (support.formData) {\n this.formData = function() {\n return this.text().then(decode)\n }\n }\n\n this.json = function() {\n return this.text().then(JSON.parse)\n }\n\n return this\n}\n\n// HTTP methods whose capitalization should be normalized\nvar methods = ['CONNECT', 'DELETE', 'GET', 'HEAD', 'OPTIONS', 'PATCH', 'POST', 'PUT', 'TRACE']\n\nfunction normalizeMethod(method) {\n var upcased = method.toUpperCase()\n return methods.indexOf(upcased) > -1 ? upcased : method\n}\n\nexport function Request(input, options) {\n if (!(this instanceof Request)) {\n throw new TypeError('Please use the \"new\" operator, this DOM object constructor cannot be called as a function.')\n }\n\n options = options || {}\n var body = options.body\n\n if (input instanceof Request) {\n if (input.bodyUsed) {\n throw new TypeError('Already read')\n }\n this.url = input.url\n this.credentials = input.credentials\n if (!options.headers) {\n this.headers = new Headers(input.headers)\n }\n this.method = input.method\n this.mode = input.mode\n this.signal = input.signal\n if (!body && input._bodyInit != null) {\n body = input._bodyInit\n input.bodyUsed = true\n }\n } else {\n this.url = String(input)\n }\n\n this.credentials = options.credentials || this.credentials || 'same-origin'\n if (options.headers || !this.headers) {\n this.headers = new Headers(options.headers)\n }\n this.method = normalizeMethod(options.method || this.method || 'GET')\n this.mode = options.mode || this.mode || null\n this.signal = options.signal || this.signal || (function () {\n if ('AbortController' in g) {\n var ctrl = new AbortController();\n return ctrl.signal;\n }\n }());\n this.referrer = null\n\n if ((this.method === 'GET' || this.method === 'HEAD') && body) {\n throw new TypeError('Body not allowed for GET or HEAD requests')\n }\n this._initBody(body)\n\n if (this.method === 'GET' || this.method === 'HEAD') {\n if (options.cache === 'no-store' || options.cache === 'no-cache') {\n // Search for a '_' parameter in the query string\n var reParamSearch = /([?&])_=[^&]*/\n if (reParamSearch.test(this.url)) {\n // If it already exists then set the value with the current time\n this.url = this.url.replace(reParamSearch, '$1_=' + new Date().getTime())\n } else {\n // Otherwise add a new '_' parameter to the end with the current time\n var reQueryString = /\\?/\n this.url += (reQueryString.test(this.url) ? '&' : '?') + '_=' + new Date().getTime()\n }\n }\n }\n}\n\nRequest.prototype.clone = function() {\n return new Request(this, {body: this._bodyInit})\n}\n\nfunction decode(body) {\n var form = new FormData()\n body\n .trim()\n .split('&')\n .forEach(function(bytes) {\n if (bytes) {\n var split = bytes.split('=')\n var name = split.shift().replace(/\\+/g, ' ')\n var value = split.join('=').replace(/\\+/g, ' ')\n form.append(decodeURIComponent(name), decodeURIComponent(value))\n }\n })\n return form\n}\n\nfunction parseHeaders(rawHeaders) {\n var headers = new Headers()\n // Replace instances of \\r\\n and \\n followed by at least one space or horizontal tab with a space\n // https://tools.ietf.org/html/rfc7230#section-3.2\n var preProcessedHeaders = rawHeaders.replace(/\\r?\\n[\\t ]+/g, ' ')\n // Avoiding split via regex to work around a common IE11 bug with the core-js 3.6.0 regex polyfill\n // https://github.com/github/fetch/issues/748\n // https://github.com/zloirock/core-js/issues/751\n preProcessedHeaders\n .split('\\r')\n .map(function(header) {\n return header.indexOf('\\n') === 0 ? header.substr(1, header.length) : header\n })\n .forEach(function(line) {\n var parts = line.split(':')\n var key = parts.shift().trim()\n if (key) {\n var value = parts.join(':').trim()\n try {\n headers.append(key, value)\n } catch (error) {\n console.warn('Response ' + error.message)\n }\n }\n })\n return headers\n}\n\nBody.call(Request.prototype)\n\nexport function Response(bodyInit, options) {\n if (!(this instanceof Response)) {\n throw new TypeError('Please use the \"new\" operator, this DOM object constructor cannot be called as a function.')\n }\n if (!options) {\n options = {}\n }\n\n this.type = 'default'\n this.status = options.status === undefined ? 200 : options.status\n if (this.status < 200 || this.status > 599) {\n throw new RangeError(\"Failed to construct 'Response': The status provided (0) is outside the range [200, 599].\")\n }\n this.ok = this.status >= 200 && this.status < 300\n this.statusText = options.statusText === undefined ? '' : '' + options.statusText\n this.headers = new Headers(options.headers)\n this.url = options.url || ''\n this._initBody(bodyInit)\n}\n\nBody.call(Response.prototype)\n\nResponse.prototype.clone = function() {\n return new Response(this._bodyInit, {\n status: this.status,\n statusText: this.statusText,\n headers: new Headers(this.headers),\n url: this.url\n })\n}\n\nResponse.error = function() {\n var response = new Response(null, {status: 200, statusText: ''})\n response.ok = false\n response.status = 0\n response.type = 'error'\n return response\n}\n\nvar redirectStatuses = [301, 302, 303, 307, 308]\n\nResponse.redirect = function(url, status) {\n if (redirectStatuses.indexOf(status) === -1) {\n throw new RangeError('Invalid status code')\n }\n\n return new Response(null, {status: status, headers: {location: url}})\n}\n\nexport var DOMException = g.DOMException\ntry {\n new DOMException()\n} catch (err) {\n DOMException = function(message, name) {\n this.message = message\n this.name = name\n var error = Error(message)\n this.stack = error.stack\n }\n DOMException.prototype = Object.create(Error.prototype)\n DOMException.prototype.constructor = DOMException\n}\n\nexport function fetch(input, init) {\n return new Promise(function(resolve, reject) {\n var request = new Request(input, init)\n\n if (request.signal && request.signal.aborted) {\n return reject(new DOMException('Aborted', 'AbortError'))\n }\n\n var xhr = new XMLHttpRequest()\n\n function abortXhr() {\n xhr.abort()\n }\n\n xhr.onload = function() {\n var options = {\n statusText: xhr.statusText,\n headers: parseHeaders(xhr.getAllResponseHeaders() || '')\n }\n // This check if specifically for when a user fetches a file locally from the file system\n // Only if the status is out of a normal range\n if (request.url.indexOf('file://') === 0 && (xhr.status < 200 || xhr.status > 599)) {\n options.status = 200;\n } else {\n options.status = xhr.status;\n }\n options.url = 'responseURL' in xhr ? xhr.responseURL : options.headers.get('X-Request-URL')\n var body = 'response' in xhr ? xhr.response : xhr.responseText\n setTimeout(function() {\n resolve(new Response(body, options))\n }, 0)\n }\n\n xhr.onerror = function() {\n setTimeout(function() {\n reject(new TypeError('Network request failed'))\n }, 0)\n }\n\n xhr.ontimeout = function() {\n setTimeout(function() {\n reject(new TypeError('Network request timed out'))\n }, 0)\n }\n\n xhr.onabort = function() {\n setTimeout(function() {\n reject(new DOMException('Aborted', 'AbortError'))\n }, 0)\n }\n\n function fixUrl(url) {\n try {\n return url === '' && g.location.href ? g.location.href : url\n } catch (e) {\n return url\n }\n }\n\n xhr.open(request.method, fixUrl(request.url), true)\n\n if (request.credentials === 'include') {\n xhr.withCredentials = true\n } else if (request.credentials === 'omit') {\n xhr.withCredentials = false\n }\n\n if ('responseType' in xhr) {\n if (support.blob) {\n xhr.responseType = 'blob'\n } else if (\n support.arrayBuffer\n ) {\n xhr.responseType = 'arraybuffer'\n }\n }\n\n if (init && typeof init.headers === 'object' && !(init.headers instanceof Headers || (g.Headers && init.headers instanceof g.Headers))) {\n var names = [];\n Object.getOwnPropertyNames(init.headers).forEach(function(name) {\n names.push(normalizeName(name))\n xhr.setRequestHeader(name, normalizeValue(init.headers[name]))\n })\n request.headers.forEach(function(value, name) {\n if (names.indexOf(name) === -1) {\n xhr.setRequestHeader(name, value)\n }\n })\n } else {\n request.headers.forEach(function(value, name) {\n xhr.setRequestHeader(name, value)\n })\n }\n\n if (request.signal) {\n request.signal.addEventListener('abort', abortXhr)\n\n xhr.onreadystatechange = function() {\n // DONE (success or failure)\n if (xhr.readyState === 4) {\n request.signal.removeEventListener('abort', abortXhr)\n }\n }\n }\n\n xhr.send(typeof request._bodyInit === 'undefined' ? null : request._bodyInit)\n })\n}\n\nfetch.polyfill = true\n\nif (!g.fetch) {\n g.fetch = fetch\n g.Headers = Headers\n g.Request = Request\n g.Response = Response\n}\n","export default \"data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAASABIAAD/4QBMRXhpZgAATU0AKgAAAAgAAgESAAMAAAABAAEAAIdpAAQAAAABAAAAJgAAAAAAAqACAAQAAAABAAAANKADAAQAAAABAAAANAAAAAD/4QkhaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLwA8P3hwYWNrZXQgYmVnaW49Iu+7vyIgaWQ9Ilc1TTBNcENlaGlIenJlU3pOVGN6a2M5ZCI/PiA8eDp4bXBtZXRhIHhtbG5zOng9ImFkb2JlOm5zOm1ldGEvIiB4OnhtcHRrPSJYTVAgQ29yZSA1LjQuMCI+IDxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+IDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiLz4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8P3hwYWNrZXQgZW5kPSJ3Ij8+AP/tADhQaG90b3Nob3AgMy4wADhCSU0EBAAAAAAAADhCSU0EJQAAAAAAENQdjNmPALIE6YAJmOz4Qn7/4hskSUNDX1BST0ZJTEUAAQEAABsUYXBwbAIQAABtbnRyUkdCIFhZWiAH4AAKAB0AFAA0AAZhY3NwQVBQTAAAAABBUFBMAAAAAAAAAAAAAAAAAAAAAAAA9tYAAQAAAADTLWFwcGwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABFkZXNjAAABUAAAAGJkc2NtAAABtA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lRknIPAEmvapf6B4alk0SX7ELEtcRLCiKvmPkEkBeeXLf72Capav/AMe+tf7uh/8ApbLTfGv/ACK2o/8AXL/2YVx0YRlUhzK//Ds/VM0oU6uEq06sU4tPRq6+Ht8395BpXjvxH4n02ystbmS4T+0ViZvLVWYJbyzKTtwMh41IOBX0H8Mdck1C1tNMurO0YJJdbJvK/fr5V1cqo35/6YqeR1z7Y+S/Bf8AqrP/ALCv/tnc19M/CX/j5tv+ul9/6WX9fS49JYjERW3s5fmfg+CoU6XCKVOKS9u9lbpJfovuO9naczO5ubkF3Z8LcSqo3MTgBXAAGcD2qLdN/wA/N1/4FT//ABypZvv1DXdhMswcqEG6Ub2X2V29DSnRp8i91fcf/9k=\"","export default \"data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAASABIAAD/4QBMRXhpZgAATU0AKgAAAAgAAgESAAMAAAABAAEAAIdpAAQAAAABAAAAJgAAAAAAAqACAAQAAAABAAAANKADAAQAAAABAAAANAAAAAD/4QkhaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLwA8P3hwYWNrZXQgYmVnaW49Iu+7vyIgaWQ9Ilc1TTBNcENlaGlIenJlU3pOVGN6a2M5ZCI/PiA8eDp4bXBtZXRhIHhtbG5zOng9ImFkb2JlOm5zOm1ldGEvIiB4OnhtcHRrPSJYTVAgQ29yZSA1LjQuMCI+IDxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+IDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiLz4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8P3hwYWNrZXQgZW5kPSJ3Ij8+AP/tADhQaG90b3Nob3AgMy4wADhCSU0EBAAAAAAAADhCSU0EJQAAAAAAENQdjNmPALIE6YAJmOz4Qn7/4gKESUNDX1BST0ZJTEUAAQEAAAJ0YXBwbAQAAABtbnRyUkdCIFhZWiAH3AALAAwAEg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DLcXcsTukqhZlO0DgSAZUccV+a3wm/5Id43/AOxs0H/0Rc1+j/we+78Sv+xc0b/0vlr/AEHx8I+0irfZ/r8z8jUVPPYRnqnZPzXvaHm/xJ8HWUOs2Yku7uZ30+CRnYxxktIWY/LFHGnU9lyepJOTXnv/AAien/8APe5/7+f/AFq9w+KH/IbsP+wXafyavNq4U9Dkq4elzv3Vv2P/2Q==\"","export default \"data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAASABIAAD/4QCARXhpZgAATU0AKgAAAAgABQESAAMAAAABAAEAAAEaAAUAAAABAAAASgEbAAUAAAABAAAAUgEoAAMAAAABAAIAAIdpAAQAAAABAAAAWgAAAAAAAABIAAAAAQAAAEgAAAABAAKgAgAEAAAAAQAAADSgAwAEAAAAAQAAADQAAAAA/+EJIWh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8APD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iWE1QIENvcmUgNS40LjAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIi8+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPD94cGFja2V0IGVuZD0idyI/PgD/7QA4UGhvdG9zaG9wIDMuMAA4QklNBAQAAAAAAAA4QklNBCUAAAAAABDUHYzZjwCyBOmACZjs+EJ+/+IbJElDQ19QUk9GSUxFAAEBAAAbFGFwcGwCEAAAbW50clJHQiBYWVogB+EABAAEABcABgAzYWNzcEFQUEwAAAAAQVBQTAAAAAAAAAAAAAAAAAAAAAAAAPbWAAEAAAAA0y1hcHBsAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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b6s0UFw8Eby/Z1xD5uPmVFycc8KMnB718+/Gm+8SDw2NP0DSLjUrfVvtMt5dWTAeVGFWICME7iSNyggEA988UqTnVqcl9Pu/M9Or7sPcRxXh3RfA9xpFvezfFtNJ+1r562utWcRvEV+hYTNGwB642464rb/sLwD/0W3Rv/AK1/wDj1dpB4h8O/Y7W0u/EGleFJLSFYfsOqwrc3DLy6y+Y2CVKsFUf7NP/ALe8K/8ARRfDP/gFH/jXqPmeqT/D/wCRNVZaf5/5n//S3dLs0nSxt1doYmhuRsiwoATeABwSBxzjrXP6hqV7ZavHYQynyBCy7OACA+4BsYzgjIzwMmur0P72n/8AXG8/nJXDa3/yMa/9c2/ma8uexw19Fp3Oa+JXg3w6PBc/jH7KRqbwvLI6yOqyFcgB1VhkYAHqR1NdEvw98JaZoljp1jYrAZ4INQa4hPk3HnzRKSRJFsOFyQvfHUmpviX/AMkil/69Jf5muvvv+PXS/wDsF2X/AKJSunnl7KOvU5bLnt6HMeB9ZvbHxJp3he8Kanb3guGM94ubiNreT920bxeXgj3Bz3zSeLBFffHPw7p7xiOCyV5YkjZ1HmLG7bj82D8zFsfdzg4yBjL8Nf8AJSdC/wB2/wD/AEMVp6//AMnAaR/1yl/9EmtFFKUmjeP2fVfkVfE3iW/0XVGtbeO3lV98paeJXYF5H4B/ujoBXPf8J5q//PvZf+A60vj7/kO/9sv/AGd64mqsjqbP/9k=\"","import { normalizeArg } from \"./functions\";\r\nimport Weiwudi from \"@c4h/weiwudi\";\r\nimport { NowMap } from \"./source/nowmap\";\r\nimport { TmsMap } from \"./source/tmsmap\";\r\nimport { MapboxMap } from \"./source/mapboxmap\";\r\nimport { MapLibreMap } from \"./source/maplibremap\";\r\nimport { GoogleMap } from \"./source/googlemap\";\r\nimport { HistMap } from \"./source/histmap\";\r\nimport { HistMap_tin } from \"./source/histmap_tin\";\r\nimport { isProviderMapType } from \"./source/mixin\";\r\nimport {\r\n applyIiifTileUrlFunction,\r\n prepareIiifOptions,\r\n wantsIiifDelivery\r\n} from \"./iiif/delivery\";\r\nimport \"whatwg-fetch\";\r\n\r\nexport type MaplatSource = HistMap | NowMap | GoogleMap;\r\nexport type BackmapSource = NowMap | GoogleMap;\r\n\r\nimport osm from \"../parts/osm.jpg\";\r\nimport gsi from \"../parts/gsi.jpg\";\r\nimport gsi_ortho from \"../parts/gsi_ortho.jpg\";\r\n\r\nconst baseDict = {\r\n osm: {\r\n mapID: \"osm\",\r\n title: {\r\n ja: \"オープンストリートマップ\",\r\n en: \"OpenStreetMap\"\r\n },\r\n label: {\r\n ja: \"OSM(現在)\",\r\n en: \"OSM(Now)\"\r\n },\r\n attr: \"©︎ OpenStreetMap contributors\",\r\n license: \"Custom\",\r\n dataLicense: \"ODbL\",\r\n licenseNote: {\r\n ja: \"©︎ OpenStreetMap contributors(OpenStreetMap Copyright: https://www.openstreetmap.org/copyright)\",\r\n en: \"©︎ OpenStreetMap contributors (OpenStreetMap Copyright: https://www.openstreetmap.org/copyright)\"\r\n },\r\n maptype: \"base\",\r\n // maxZoom必須: 未指定だとWeiwudi(SWタイルキャッシュ)登録時にズーム上限0と\r\n // 解釈される環境があり、キャッシュ経由の全タイルが404になる (#78)\r\n maxZoom: 19,\r\n thumbnail: osm,\r\n urls: [\r\n \"https://a.tile.openstreetmap.org/{z}/{x}/{y}.png\",\r\n \"https://b.tile.openstreetmap.org/{z}/{x}/{y}.png\",\r\n \"https://c.tile.openstreetmap.org/{z}/{x}/{y}.png\"\r\n ]\r\n },\r\n gsi: {\r\n mapID: \"gsi\",\r\n title: {\r\n ja: \"地理院地図\",\r\n en: \"Geospatial Information Authority of Japan Map\"\r\n },\r\n label: {\r\n ja: \"地理院地図\",\r\n en: \"GSI Map\"\r\n },\r\n attr: {\r\n ja: \"国土地理院\",\r\n en: \"The Geospatial Information Authority of Japan\"\r\n },\r\n license: \"Custom\",\r\n dataLicense: \"Custom\",\r\n licenseNote: {\r\n ja: \"公共データ利用規約 第1.0版(PDL1.0)/出典:国土地理院ウェブサイト\",\r\n en: \"Public Data License 1.0 / Source: GSI website\"\r\n },\r\n dataLicenseNote: {\r\n ja: \"公共データ利用規約 第1.0版(PDL1.0)\",\r\n en: \"Public Data License 1.0\"\r\n },\r\n maptype: \"base\",\r\n url: \"https://cyberjapandata.gsi.go.jp/xyz/std/{z}/{x}/{y}.png\",\r\n maxZoom: 18,\r\n thumbnail: gsi\r\n },\r\n gsi_ortho: {\r\n mapID: \"gsi_ortho\",\r\n title: {\r\n ja: \"地理院地図オルソ航空写真\",\r\n en: \"Geospatial Information Authority of Japan Ortho aerial photo\"\r\n },\r\n label: {\r\n ja: \"地理院オルソ\",\r\n en: \"GSI Ortho\"\r\n },\r\n attr: {\r\n ja: \"国土地理院\",\r\n en: \"The Geospatial Information Authority of Japan\"\r\n },\r\n license: \"Custom\",\r\n dataLicense: \"Custom\",\r\n licenseNote: {\r\n ja: \"公共データ利用規約 第1.0版(PDL1.0)/出典:国土地理院ウェブサイト\",\r\n en: \"Public Data License 1.0 / Source: GSI website\"\r\n },\r\n dataLicenseNote: {\r\n ja: \"公共データ利用規約 第1.0版(PDL1.0)\",\r\n en: \"Public Data License 1.0\"\r\n },\r\n maptype: \"base\",\r\n url: \"https://cyberjapandata.gsi.go.jp/xyz/ort/{z}/{x}/{y}.jpg\",\r\n maxZoom: 18,\r\n thumbnail: gsi_ortho\r\n }\r\n};\r\n\r\nconst checkMapTypeIsWMTS = (maptype?: string) => (maptype || '').match(/^(?:base|overlay|google(?:_(?:roadmap|satellite|hybrid|terrain))?|mapbox|maplibre|osm)$/);\r\n// m6-t6 hotfix (実装レビュー H-A) → m6-t9 (§3.1 AC2): provider(google/mapbox/maplibre)は\r\n// Maplat 同梱タイルのテンプレート url を持たない。自動補完すると ol/source/Google.js の\r\n// baseUrl(= options.url || 'https://tile.googleapis.com/') を汚染し、Google Maps Platform への\r\n// createSession リクエストがプレビューサーバ宛てに誤送信される(404)。data.url に手動値が\r\n// 残っていた場合も同様に汚染し得るため、provider は url/urls を自動補完・手動値の両方とも\r\n// 対象から除外する(isProviderMapType の定義は source/mixin.ts が正本。addCommonOptions 経由で\r\n// mapbox/maplibre にも同じ判定を効かせる必要があるため)\r\n\r\nexport async function mapSourceFactory(options: any, commonOptions: any) {\r\n if (typeof options === \"string\") {\r\n // m6-t3: baseDict エントリを破壊的に書き換えない(レビュー Minor m3)\r\n options = { ...(baseDict as any)[options] };\r\n }\r\n\r\n options = normalizeArg(Object.assign(options, commonOptions));\r\n // m6-t10 §3.5.2: 解決結果が undefined のときは label キーを実体化しない。\r\n // 実体化すると、settingFile 経路(:188 の Object.assign(resp, options))で\r\n // 設定ファイル側の label が undefined で潰れる(Object.assign は値が undefined でも\r\n // own enumerable property をコピーするため)。:189 のフォールバックは resp.year であり、\r\n // ベースマップは year を持たないため復旧もしない。\r\n // label / year のどちらかが存在する場合の結果は従来と同一。\r\n const resolvedLabel = options.label || options.year;\r\n if (resolvedLabel !== undefined) options.label = resolvedLabel;\r\n if (checkMapTypeIsWMTS(options.maptype)) {\r\n const targetSrc =\r\n options.maptype === \"base\"\r\n ? NowMap\r\n : options.maptype === \"overlay\"\r\n ? TmsMap\r\n : options.maptype === \"mapbox\"\r\n ? MapboxMap\r\n : options.maptype === \"maplibre\"\r\n ? MapLibreMap\r\n : GoogleMap;\r\n if (!targetSrc.isBasemap()) {\r\n if (!options.homePosition) options.homePosition = options.homePos;\r\n if (!options.mercZoom) options.mercZoom = options.defZoom;\r\n } else {\r\n options.homePosition = options.homePos;\r\n options.mercZoom = options.defZoom;\r\n }\r\n delete options.homePos;\r\n delete options.defZoom;\r\n if (options.zoomRestriction) {\r\n options.maxZoom = options.maxZoom || options.mercMaxZoom;\r\n options.minZoom = options.minZoom || options.mercMinZoom;\r\n }\r\n options.zoomRestriction =\r\n options.mercMaxZoom =\r\n options.mercMinZoom =\r\n undefined;\r\n if (!options.imageExtension) options.imageExtension = \"jpg\";\r\n if (isProviderMapType(options.maptype)) {\r\n // m6-t9 (§3.1 AC2): H-A は自動補完由来の汚染を防いだが、data.url に手動値が\r\n // 残っている場合はそのまま ol/source/Google 等の baseUrl を汚染し得た(同型バグ)。\r\n // provider は自動補完・手動値のいずれの url/urls も使わないため、ここで確実に除去する\r\n delete options.url;\r\n delete options.urls;\r\n } else if (options.mapID && !options.url && !options.urls) {\r\n options.url = options.tms\r\n ? `tiles/${options.mapID}/{z}/{x}/{-y}.${options.imageExtension}`\r\n : `tiles/${options.mapID}/{z}/{x}/{y}.${options.imageExtension}`;\r\n }\r\n options.weiwudi = await registerMapToSW(options);\r\n if (options.weiwudi) {\r\n options.url = options.weiwudi.url;\r\n delete options.urls;\r\n }\r\n const obj = await targetSrc.createAsync(options);\r\n await obj.initialWait;\r\n return obj;\r\n } else if (options.noload) {\r\n options.mercMaxZoom = options.mercMinZoom = undefined;\r\n // IIIF Image の地図だけ、URL の関数を解決してから作る(それ以外は await を挟まない)\r\n const iiifNoload = wantsIiifDelivery(options);\r\n if (iiifNoload) {\r\n await prepareIiifOptions(options, {\r\n width: options.width,\r\n height: options.height\r\n });\r\n }\r\n const obj = new HistMap_tin(options);\r\n if (iiifNoload) applyIiifTileUrlFunction(obj, options);\r\n return obj;\r\n }\r\n\r\n\r\n const url = options.settingFile || `maps/${options.mapID}.json`;\r\n\r\n const response = await fetch(url);\r\n if (!response.ok) {\r\n throw new Error(\"Fail to load map json\");\r\n }\r\n\r\n const resp = await response.json();\r\n options = normalizeArg(Object.assign(resp, options));\r\n options.label = options.label || resp.year;\r\n if (!options.maptype) options.maptype = \"maplat\";\r\n\r\n if (checkMapTypeIsWMTS(options.maptype)) {\r\n const targetSrc =\r\n options.maptype === \"base\"\r\n ? NowMap\r\n : options.maptype === \"overlay\"\r\n ? TmsMap\r\n : options.maptype === \"mapbox\"\r\n ? MapboxMap\r\n : options.maptype === \"maplibre\"\r\n ? MapLibreMap\r\n : GoogleMap;\r\n if (!targetSrc.isBasemap()) {\r\n if (!options.homePosition) options.homePosition = options.homePos;\r\n if (!options.mercZoom) options.mercZoom = options.defZoom;\r\n } else {\r\n options.homePosition = options.homePos;\r\n options.mercZoom = options.defZoom;\r\n }\r\n delete options.homePos;\r\n delete options.defZoom;\r\n if (options.zoomRestriction) {\r\n options.maxZoom = options.maxZoom || options.mercMaxZoom;\r\n options.minZoom = options.minZoom || options.mercMinZoom;\r\n }\r\n options.zoomRestriction =\r\n options.mercMaxZoom =\r\n options.mercMinZoom =\r\n undefined;\r\n if (!options.imageExtension) options.imageExtension = \"jpg\";\r\n if (isProviderMapType(options.maptype)) {\r\n // m6-t9 (§3.1 AC2): 手動値からの汚染防止(上の分岐と同型。設定 json 経由の読み込み経路)\r\n delete options.url;\r\n delete options.urls;\r\n } else if (options.mapID && !options.url && !options.urls) {\r\n options.url = options.tms\r\n ? `tiles/${options.mapID}/{z}/{x}/{-y}.${options.imageExtension}`\r\n : `tiles/${options.mapID}/{z}/{x}/{y}.${options.imageExtension}`;\r\n }\r\n options.weiwudi = await registerMapToSW(options);\r\n if (options.weiwudi) {\r\n options.url = options.weiwudi.url;\r\n delete options.urls;\r\n }\r\n const obj = await targetSrc.createAsync(options);\r\n try {\r\n await obj.initialWait;\r\n return obj;\r\n } catch (_e) {\r\n return obj;\r\n }\r\n }\r\n\r\n delete options.homePos;\r\n delete options.defZoom;\r\n if (!options.imageExtension) options.imageExtension = \"jpg\";\r\n // IIIF Image の地図は tiles//... の url を補わない(delivery の URL を使う)\r\n const iiifMap = wantsIiifDelivery(options);\r\n if (!iiifMap && options.mapID && !options.url && !options.urls) {\r\n options.url = `tiles/${options.mapID}/{z}/{x}/{y}.${options.imageExtension}`;\r\n }\r\n if (!options.compiled || !options.compiled.wh) {\r\n console.error(\r\n `[Maplat] Missing compiled.wh for mapID=${options.mapID}. Check map setting file: ${url}`\r\n );\r\n throw new Error(`Map ${options.mapID} is missing compiled data.`);\r\n }\r\n options.width = options.width || options.compiled.wh[0];\r\n options.height = options.height || options.compiled.wh[1];\r\n if (iiifMap) {\r\n await prepareIiifOptions(options, {\r\n width: options.compiled.wh[0],\r\n height: options.compiled.wh[1]\r\n });\r\n }\r\n options.weiwudi = await registerMapToSW(options);\r\n if (options.weiwudi) {\r\n options.url = options.weiwudi.url;\r\n delete options.urls;\r\n }\r\n const obj = await HistMap_tin.createAsync(options);\r\n applyIiifTileUrlFunction(obj, options);\r\n await obj.initialWait;\r\n // setupMapParameter uses callback pattern, wrap it in Promise\r\n await new Promise((resolve) => {\r\n obj.setupMapParameter(() => resolve());\r\n });\r\n return obj;\r\n}\r\n\r\nexport async function registerMapToSW(options: any) {\r\n const setting: any = {};\r\n // #90: 地図ごとの noCache で Weiwudi への登録を外す。設定ファイルは JSON なので真偽値で書ける ∴ \"true\" 等の文字列は真とみなさない(=== true)\r\n // IIIF Image の地図は URL の関数を配信ごとに作り直すので、キャッシュの層を通さない\r\n if (options.maptype === \"mapbox\" || options.maptype === \"maplibre\" || options.maptype === \"google\" || !options.enableCache || options.noCache === true || options.delivery?.type === \"iiifImage\") return;\r\n else if (options.maptype === \"base\" || options.maptype === \"overlay\")\r\n setting.type = \"wmts\";\r\n else setting.type = \"xyz\";\r\n setting.url = options.urls ? options.urls : options.url;\r\n setting.width = options.width;\r\n setting.height = options.height;\r\n setting.maxZoom = options.maxZoom;\r\n setting.minZoom = options.minZoom;\r\n // タイルキャッシュ有効期間(ms)。Weiwudi側の既定は24時間 (code4history/Weiwudi#2)\r\n if (options.cacheTtl !== undefined) setting.cacheTtl = options.cacheTtl;\r\n const lngLats = options.envelopeLngLats;\r\n if (lngLats) {\r\n const minMax = lngLats.reduce(\r\n (prev: number[], curr: number[]) => {\r\n prev[0] = prev[0] > curr[0] ? curr[0] : prev[0];\r\n prev[1] = prev[1] < curr[0] ? curr[0] : prev[1];\r\n prev[2] = prev[2] > curr[1] ? curr[1] : prev[2];\r\n prev[3] = prev[3] < curr[1] ? curr[1] : prev[3];\r\n return prev;\r\n },\r\n [Infinity, -Infinity, Infinity, -Infinity]\r\n );\r\n [\"minLng\", \"maxLng\", \"minLat\", \"maxLat\"].map((key, index) => {\r\n setting[key] = minMax[index];\r\n });\r\n }\r\n let ret;\r\n try {\r\n ret = await Weiwudi.registerMap(options.mapID, setting);\r\n } catch (_e) {\r\n // Ignore error\r\n }\r\n return ret;\r\n}\r\n","// IIIF の Manifest の書誌を、地図の metadata の鍵へ写すための関数。\n//\n// 設計の要点:\n// - ここでは Manifest を取りに行かない。呼び出し側が読んだ JSON(JSON.parse 済みの値)を渡す。\n// - OpenLayers・画面の DOM・通信に依存しない(Node からも Editor の主処理からも読める)。\n// - HTML として写す値の洗浄は、呼び出し側が渡す関数に任せる。この中で画面の DOM を使わないため。\n// - 版(Presentation API の 2/3)で読む項目の名前が違うので、名寄せはここで行う。\nimport type { Localized } from \"../element_contract\";\n\n/** 写す元(Manifest そのものか、選んだ canvas か) */\nexport type IiifFrom = \"manifest\" | \"canvas\";\n\n/** 写す元にする IIIF の項目 */\nexport type IiifProperty = \"label\" | \"summary\" | \"requiredStatement\" | \"rights\" | \"provider\";\n\n/** 地図の metadata の鍵 1 つと、その写す元の結び付け */\nexport interface IiifBindingSelector {\n from: IiifFrom;\n property: IiifProperty;\n}\n\n/**\n * 結び付けられる鍵 → IIIF の項目の既定の対応。\n * Editor はこれを読んで「写す鍵」の欄を作り、対応を自分で書かない。\n * ライセンスの注記(licenseNote・dataLicenseNote)は license・dataLicense に付いて動くので入れない。\n */\nexport const IIIF_BINDABLE_KEYS: Readonly> = {\n title: \"label\",\n officialTitle: \"label\",\n attr: \"requiredStatement\",\n dataAttr: \"requiredStatement\",\n license: \"rights\",\n dataLicense: \"rights\",\n description: \"summary\",\n contributor: \"provider\"\n};\n\n/** 写す鍵 → 写す元(鍵が許可されているものに限る) */\nexport type IiifBindings = Partial>;\n\n/** 地図データの iiif 節 */\nexport interface MaplatIiifSection {\n manifest?: string;\n canvas?: string;\n image?: string;\n bindings?: IiifBindings;\n copiedAt?: string;\n /** 鍵 → 言語 → 写した時点の値 */\n copiedValues?: Record>;\n copiedMetadata?: IiifMetadataEntry[];\n}\n\n/** 写した metadata の 1 行 */\nexport interface IiifMetadataEntry {\n from: IiifFrom;\n label: Localized;\n value: Localized;\n}\n\n/** 書誌の表の出し方(アプリの設定で選ぶ) */\nexport type IiifMetadataDisplay = \"all\" | \"hidden\";\n\n/** アプリの設定が無いときに使う、書誌の表の出し方 */\nexport const IIIF_METADATA_DISPLAY_DEFAULT = \"hidden\";\n\n/** 言語の表で、言語を持たない値を入れる場所(Presentation API の none) */\nconst NONE = \"none\";\n\n/** 言語ごとに HTML として入る鍵(それ以外の鍵は文字として入る) */\nconst HTML_KEYS = new Set([\"attr\", \"dataAttr\", \"description\", \"contributor\"]);\n\n/** 文字として入る鍵(title・officialTitle)の値のつなぎ方 */\nconst TEXT_JOINER = \" / \";\n/** HTML として入る鍵と metadata の値のつなぎ方 */\nconst HTML_JOINER = \"
\";\n\n/** Creative Commons の URI の道 → ライセンスの語彙(綴りは UI のライセンスの一覧に合わせる) */\nconst CREATIVE_COMMONS: Array<{ pattern: RegExp; license: string }> = [\n { pattern: /^\\/licenses\\/by-nc-sa(\\/|$)/i, license: \"CC BY-NC-SA\" },\n { pattern: /^\\/licenses\\/by-nc-nd(\\/|$)/i, license: \"CC BY-NC-ND\" },\n { pattern: /^\\/licenses\\/by-sa(\\/|$)/i, license: \"CC BY-SA\" },\n { pattern: /^\\/licenses\\/by-nd(\\/|$)/i, license: \"CC BY-ND\" },\n { pattern: /^\\/licenses\\/by-nc(\\/|$)/i, license: \"CC BY-NC\" },\n { pattern: /^\\/licenses\\/by(\\/|$)/i, license: \"CC BY\" },\n { pattern: /^\\/publicdomain\\/zero(\\/|$)/i, license: \"CC0\" },\n { pattern: /^\\/publicdomain\\/mark(\\/|$)/i, license: \"PD\" }\n];\n\ntype PlainObject = Record;\n\ntype ParsedManifest = {\n ok: true;\n version: \"2\" | \"3\";\n root: PlainObject;\n canvases: PlainObject[];\n};\n\ntype ParseFailure = { ok: false; reason: \"not-manifest\" | \"unsupported-version\" };\n\ntype Version = \"2\" | \"3\";\n\n/** canvas の一覧の 1 枚 */\ntype IiifCanvasSummary = {\n id: string;\n label: Localized;\n width: number;\n height: number;\n imageService?: string;\n};\n\nfunction isPlainObject(value: unknown): value is PlainObject {\n return typeof value === \"object\" && value !== null && !Array.isArray(value);\n}\n\nfunction hasOwn(table: PlainObject, key: string) {\n return Object.prototype.hasOwnProperty.call(table, key);\n}\n\n/** 値を文字列の配列として読む(文字列 1 つ・文字列の配列のどちらも受ける) */\nfunction joinValues(values: unknown, joiner: string): string | undefined {\n if (typeof values === \"string\") return values;\n if (Array.isArray(values)) {\n const parts: string[] = [];\n for (const value of values) if (typeof value === \"string\") parts.push(value);\n return parts.join(joiner);\n }\n return undefined;\n}\n\n/**\n * 配列ではない IIIF の値を 言語 → 文字列 の表にする。\n * 版 2 の文字列はそのまま文字列で返し、言語つきの値・版 3 の言語の表は表で返す。\n * 読めない形なら undefined。\n */\nfunction toLocalizedValue(raw: unknown, joiner: string): Localized | undefined {\n if (typeof raw === \"string\") return raw;\n if (!isPlainObject(raw)) return undefined;\n // 版 2 の言語つきの値\n if (typeof raw[\"@value\"] === \"string\") {\n const language = raw[\"@language\"];\n const key = typeof language === \"string\" && language ? language : NONE;\n return { [key]: raw[\"@value\"] };\n }\n // 版 3 の言語の表\n const table: Record = {};\n for (const [language, values] of Object.entries(raw)) {\n if (language.startsWith(\"@\")) continue;\n const joined = joinValues(values, joiner);\n if (joined !== undefined) table[language] = joined;\n }\n return Object.keys(table).length > 0 ? table : undefined;\n}\n\n/**\n * IIIF の値を 言語 → 文字列 の表にする。\n * 配列は版 2 の「言語つきの値の並び」の 1 段だけを読み、配列の中の配列は読まない\n * (深い入れ子・自分自身を含む値で再帰しないため)。読めない形なら undefined。\n */\nfunction toLocalized(raw: unknown, joiner: string): Localized | undefined {\n if (!Array.isArray(raw)) return toLocalizedValue(raw, joiner);\n const table: Record = {};\n for (const item of raw) {\n if (Array.isArray(item)) continue;\n const single = toLocalizedValue(item, joiner);\n if (single === undefined) continue;\n const pairs: Array<[string, string]> =\n typeof single === \"string\" ? [[NONE, single]] : Object.entries(single);\n for (const [language, text] of pairs) {\n table[language] = hasOwn(table, language) ? `${table[language]}${joiner}${text}` : text;\n }\n }\n return Object.keys(table).length > 0 ? table : undefined;\n}\n\n/** none を lang の値として使い、ほかの言語の値はそのまま残す(値の読み方) */\nfunction localizeTable(table: Record, lang: string): Record {\n const out: Record = {};\n for (const [language, text] of Object.entries(table)) {\n if (language !== NONE) out[language] = text;\n }\n const none = table[NONE];\n // none は lang の値が無いときだけ lang の値として使う\n if (none !== undefined && !hasOwn(out, lang)) out[lang] = none;\n return out;\n}\n\n/** 値(本文)の読み方 */\nfunction localizeValue(raw: unknown, joiner: string, lang: string): Localized | undefined {\n const converted = toLocalized(raw, joiner);\n if (converted === undefined) return undefined;\n if (typeof converted === \"string\") return converted;\n return localizeTable(converted, lang);\n}\n\n/**\n * 項目名(metadata の label)の読み方。\n * lang の値があれば言語ごとの表をそのまま返し、無くて none があればその値を lang の値として 1 つ返す。\n */\nfunction localizeLabel(raw: unknown, joiner: string, lang: string): Localized | undefined {\n const converted = toLocalized(raw, joiner);\n if (converted === undefined) return undefined;\n if (typeof converted === \"string\") return converted;\n const others: Record = {};\n for (const [language, text] of Object.entries(converted)) {\n if (language !== NONE) others[language] = text;\n }\n if (hasOwn(others, lang)) return others;\n const none = converted[NONE];\n if (none !== undefined) return { [lang]: none };\n return Object.keys(others).length > 0 ? others : undefined;\n}\n\n/** 言語の表の値を、言語ごとに洗浄する */\nfunction sanitizeLocalized(value: Localized, sanitize: (html: string) => string): Localized {\n if (typeof value === \"string\") return sanitize(value);\n const out: Record = {};\n for (const [language, text] of Object.entries(value)) out[language] = sanitize(text);\n return out;\n}\n\n/** @context から Presentation API の版を読む */\nfunction detectVersion(root: PlainObject): Version | undefined {\n const context = root[\"@context\"];\n const contexts = typeof context === \"string\" ? [context] : Array.isArray(context) ? context : [];\n const joined = contexts.filter((item): item is string => typeof item === \"string\").join(\" \");\n if (joined.includes(\"presentation/2\")) return \"2\";\n if (joined.includes(\"presentation/3\")) return \"3\";\n return undefined;\n}\n\nfunction sequencesCanvases(root: PlainObject): PlainObject[] | undefined {\n const sequences = root.sequences;\n if (!Array.isArray(sequences)) return undefined;\n if (sequences.length === 0) return [];\n const first = sequences[0];\n if (!isPlainObject(first) || !Array.isArray(first.canvases)) return undefined;\n return first.canvases.filter(isPlainObject);\n}\n\nfunction parseManifest(input: unknown): ParsedManifest | ParseFailure {\n if (!isPlainObject(input)) return { ok: false, reason: \"not-manifest\" };\n const version = detectVersion(input);\n if (version === undefined) return { ok: false, reason: \"unsupported-version\" };\n if (version === \"2\") {\n const canvases = sequencesCanvases(input);\n if (canvases === undefined) return { ok: false, reason: \"not-manifest\" };\n return { ok: true, version, root: input, canvases };\n }\n const items = input.items;\n if (!Array.isArray(items)) return { ok: false, reason: \"not-manifest\" };\n return { ok: true, version, root: input, canvases: items.filter(isPlainObject) };\n}\n\n/** canvas の id(版 2 は @id、版 3 は id) */\nfunction canvasIdOf(canvas: PlainObject, version: Version): string | undefined {\n const id = version === \"2\" ? canvas[\"@id\"] : canvas.id;\n return typeof id === \"string\" ? id : undefined;\n}\n\nfunction findCanvas(parsed: ParsedManifest, canvasId: string | undefined): PlainObject | undefined {\n if (!canvasId) return undefined;\n return parsed.canvases.find(canvas => canvasIdOf(canvas, parsed.version) === canvasId);\n}\n\n/** canvas の label を、言語を選ばずに読む(数字だけかの判定と一覧の表示に使う) */\nfunction canvasLabel(canvas: PlainObject | undefined): Localized {\n if (!canvas) return \"\";\n const converted = toLocalized(canvas.label, TEXT_JOINER);\n if (converted === undefined) return \"\";\n if (typeof converted === \"string\") return converted;\n const others: Record = {};\n for (const [language, text] of Object.entries(converted)) {\n if (language !== NONE) others[language] = text;\n }\n if (Object.keys(others).length > 0) return others;\n return converted[NONE] ?? \"\";\n}\n\n/** label が数字だけか(1 枚ものの地図で、canvas の label が頁の番号になっている場合を見分ける) */\nfunction isNumericLabel(label: Localized): boolean {\n const texts = typeof label === \"string\" ? [label] : Object.values(label);\n if (texts.length === 0) return false;\n return texts.every(text => /^[0-9]+$/.test(text.trim()));\n}\n\n/** label が空か(canvas に label が無ければ Manifest の label に切り替える) */\nfunction isEmptyLabel(label: Localized): boolean {\n const texts = typeof label === \"string\" ? [label] : Object.values(label);\n if (texts.length === 0) return true;\n return texts.every(text => text.trim() === \"\");\n}\n\n/** 版 2 の画像サービス(canvas.images[0].resource.service)の id */\nfunction v2ImageService(canvas: PlainObject): string | undefined {\n const images = canvas.images;\n if (!Array.isArray(images) || !isPlainObject(images[0])) return undefined;\n const resource = images[0].resource;\n if (!isPlainObject(resource)) return undefined;\n const service = Array.isArray(resource.service) ? resource.service[0] : resource.service;\n if (!isPlainObject(service)) return undefined;\n const id = service[\"@id\"];\n return typeof id === \"string\" ? id : undefined;\n}\n\n/** 版 3 の画像サービス(canvas.items[0].items[0].body.service)の id */\nfunction v3ImageService(canvas: PlainObject): string | undefined {\n const pages = canvas.items;\n if (!Array.isArray(pages) || !isPlainObject(pages[0])) return undefined;\n const annotations = pages[0].items;\n if (!Array.isArray(annotations) || !isPlainObject(annotations[0])) return undefined;\n const body = annotations[0].body;\n if (!isPlainObject(body)) return undefined;\n const service = Array.isArray(body.service) ? body.service[0] : body.service;\n if (!isPlainObject(service)) return undefined;\n const id = service.id;\n return typeof id === \"string\" ? id : undefined;\n}\n\n/** 数を読む(読めなければ 0) */\nfunction toSize(value: unknown): number {\n return typeof value === \"number\" && Number.isFinite(value) ? value : 0;\n}\n\n/** Manifest の canvas の一覧(Editor の canvas の選択に使う) */\nexport function listIiifCanvases(\n manifest: unknown\n):\n | {\n ok: true;\n version: \"2\" | \"3\";\n canvases: Array<{\n id: string;\n label: Localized;\n width: number;\n height: number;\n imageService?: string;\n }>;\n }\n | { ok: false; reason: \"not-manifest\" | \"unsupported-version\" } {\n const parsed = parseManifest(manifest);\n if (!parsed.ok) return { ok: false, reason: parsed.reason };\n const canvases: IiifCanvasSummary[] = [];\n for (const canvas of parsed.canvases) {\n const id = canvasIdOf(canvas, parsed.version);\n if (id === undefined) continue;\n const imageService =\n parsed.version === \"2\" ? v2ImageService(canvas) : v3ImageService(canvas);\n const summary: IiifCanvasSummary = {\n id,\n label: canvasLabel(canvas),\n width: toSize(canvas.width),\n height: toSize(canvas.height)\n };\n if (imageService !== undefined) summary.imageService = imageService;\n canvases.push(summary);\n }\n return { ok: true, version: parsed.version, canvases };\n}\n\n/** 既定で結び付ける鍵(題名は canvas か Manifest を選ぶので別に扱う) */\nconst DEFAULT_BINDINGS: ReadonlyArray<{ key: string; property: IiifProperty }> = [\n { key: \"attr\", property: \"requiredStatement\" },\n { key: \"license\", property: \"rights\" },\n { key: \"description\", property: \"summary\" }\n];\n\n/**\n * 既定の selector。\n * 題名は、canvas の label が頁の番号(数字だけ)でなければ canvas の label を、\n * そうでなければ Manifest の label を指す。帰属・ライセンス・要約は Manifest から写す。\n * 結び付ける元にその項目が無い(読めない)ときは、その鍵を返さない。\n */\nexport function proposeIiifBindings(manifest: unknown, canvasId: string): IiifBindings {\n const parsed = parseManifest(manifest);\n if (!parsed.ok) return {};\n const canvas = findCanvas(parsed, canvasId);\n const canvasText = canvasLabel(canvas);\n const labelFrom: IiifFrom =\n canvas && !isEmptyLabel(canvasText) && !isNumericLabel(canvasText) ? \"canvas\" : \"manifest\";\n const bindings: IiifBindings = {};\n const titleSource = labelFrom === \"canvas\" ? canvas : parsed.root;\n if (isReadableProperty(titleSource, \"label\", parsed.version, TEXT_JOINER)) {\n bindings.title = { from: labelFrom, property: \"label\" };\n }\n for (const { key, property } of DEFAULT_BINDINGS) {\n if (isReadableProperty(parsed.root, property, parsed.version, HTML_JOINER)) {\n bindings[key] = { from: \"manifest\", property };\n }\n }\n return bindings;\n}\n\n/** 写す元の項目(版 2・版 3 の名前の違いを名寄せする) */\nfunction readProperty(\n source: PlainObject | undefined,\n property: IiifProperty,\n version: Version\n): unknown {\n if (!source) return undefined;\n switch (property) {\n case \"label\":\n return source.label;\n case \"summary\":\n return version === \"2\" ? source.description : source.summary;\n case \"requiredStatement\":\n return version === \"2\" ? source.attribution : source.requiredStatement?.value;\n case \"rights\":\n return version === \"2\" ? source.license : source.rights;\n case \"provider\": {\n if (version === \"2\") return undefined;\n const provider = Array.isArray(source.provider) ? source.provider[0] : undefined;\n return isPlainObject(provider) ? provider.label : undefined;\n }\n default:\n return undefined;\n }\n}\n\n/**\n * 値が入っていないか(undefined・null・空の文字列)。\n * 「その項目が無い」と「あるが形が読めない」を分けるために使う。\n */\nfunction isMissingValue(raw: unknown): boolean {\n if (raw === undefined || raw === null) return true;\n return typeof raw === \"string\" && raw.trim() === \"\";\n}\n\n/** その項目の値を読めるか(読めない項目は既定では結び付けない) */\nfunction isReadableProperty(\n source: PlainObject | undefined,\n property: IiifProperty,\n version: Version,\n joiner: string\n): boolean {\n const raw = readProperty(source, property, version);\n if (isMissingValue(raw)) return false;\n if (property === \"rights\") return typeof raw === \"string\";\n const converted = toLocalized(raw, joiner);\n if (converted === undefined) return false;\n if (typeof converted === \"string\") return converted.trim() !== \"\";\n return Object.keys(converted).length > 0;\n}\n\n/** metadata の一覧を写した行にする(順を保ち、全部の行を返す) */\nfunction collectMetadata(\n source: PlainObject | undefined,\n from: IiifFrom,\n lang: string,\n sanitize: (html: string) => string,\n warnings: string[]\n): IiifMetadataEntry[] {\n if (!source || !Array.isArray(source.metadata)) return [];\n const entries: IiifMetadataEntry[] = [];\n for (const raw of source.metadata) {\n if (!isPlainObject(raw)) continue;\n const label = localizeLabel(raw.label, TEXT_JOINER, lang) ?? \"\";\n const localized = localizeValue(raw.value, HTML_JOINER, lang);\n if (localized === undefined) {\n warnings.push(`${from === \"canvas\" ? \"canvas\" : \"Manifest\"} の metadata の値の形が読めません`);\n continue;\n }\n entries.push({ from, label, value: sanitizeLocalized(localized, sanitize) });\n }\n return entries;\n}\n\n/**\n * 写す値を取り出す(取得しない)。\n * HTML として入る鍵の値と metadata の値は、呼び出し側が渡した関数(sanitize)を通してから返す。\n */\nexport function resolveIiifMetadata(\n manifest: unknown,\n iiif: Pick,\n lang: string,\n sanitize: (html: string) => string\n):\n | {\n ok: true;\n version: \"2\" | \"3\";\n values: Record;\n copiedValues: Record>;\n copiedMetadata: IiifMetadataEntry[];\n unresolved: string[];\n warnings: string[];\n }\n | { ok: false; reason: \"not-manifest\" | \"unsupported-version\" } {\n const parsed = parseManifest(manifest);\n if (!parsed.ok) return { ok: false, reason: parsed.reason };\n const canvas = findCanvas(parsed, iiif.canvas);\n const warnings: string[] = [];\n const unresolved: string[] = [];\n const values: Record = {};\n let warnedMissingCanvas = false;\n\n for (const [key, selector] of Object.entries(iiif.bindings ?? {})) {\n const property = isPlainObject(selector) ? selector.property : undefined;\n const from = isPlainObject(selector) ? selector.from : undefined;\n if (IIIF_BINDABLE_KEYS[key] !== property) {\n unresolved.push(key);\n warnings.push(`鍵 ${key} に IIIF の項目 ${String(property)} は写せません`);\n continue;\n }\n if (from !== \"manifest\" && from !== \"canvas\") {\n unresolved.push(key);\n warnings.push(`鍵 ${key} の写す元 ${String(from)} は読めません`);\n continue;\n }\n if (from === \"canvas\" && !canvas) {\n unresolved.push(key);\n if (!warnedMissingCanvas) {\n warnings.push(\"指定された canvas が Manifest にありません\");\n warnedMissingCanvas = true;\n }\n continue;\n }\n const raw = readProperty(from === \"canvas\" ? canvas : parsed.root, property, parsed.version);\n // 「その項目が無い」と「あるが形が読めない」を警告の文で分ける\n if (isMissingValue(raw)) {\n unresolved.push(key);\n warnings.push(\n property === \"rights\"\n ? `鍵 ${key} のライセンスの値がありません`\n : `鍵 ${key} の IIIF の値がありません`\n );\n continue;\n }\n if (property === \"rights\") {\n if (typeof raw !== \"string\") {\n unresolved.push(key);\n warnings.push(`鍵 ${key} のライセンスの値の形が読めません`);\n continue;\n }\n const converted = iiifRightsToLicense(raw);\n values[key] = converted.license;\n const noteKey = key === \"license\" ? \"licenseNote\" : key === \"dataLicense\" ? \"dataLicenseNote\" : undefined;\n if (noteKey !== undefined && converted.licenseNote !== undefined) {\n values[noteKey] = converted.licenseNote;\n }\n continue;\n }\n const localized = localizeValue(raw, HTML_KEYS.has(key) ? HTML_JOINER : TEXT_JOINER, lang);\n if (localized === undefined) {\n unresolved.push(key);\n warnings.push(`鍵 ${key} の IIIF の値の形が読めません`);\n continue;\n }\n values[key] = HTML_KEYS.has(key) ? sanitizeLocalized(localized, sanitize) : localized;\n }\n\n const copiedMetadata: IiifMetadataEntry[] = [\n ...collectMetadata(parsed.root, \"manifest\", lang, sanitize, warnings),\n ...collectMetadata(canvas, \"canvas\", lang, sanitize, warnings)\n ];\n\n // values に入れたのと同じ文字列を、鍵 → 言語 → 文字列 の形でも返す\n const copiedValues: Record> = {};\n for (const [key, value] of Object.entries(values)) {\n copiedValues[key] = typeof value === \"string\" ? { [lang]: value } : { ...value };\n }\n\n return {\n ok: true,\n version: parsed.version,\n values,\n copiedValues,\n copiedMetadata,\n unresolved,\n warnings\n };\n}\n\n/**\n * copiedValues と比べて、鍵・言語ごとに「人が直した」「IIIF の側が変わった」を返す。\n * 人が直したかは今の値と写した時点の値で、IIIF の側が変わったかは写した時点の値と取り直した値で見る。\n * 今の IIIF の値と今の値を直接は比べない。取り直した値が無ければ IIIF の側が変わったかは判定しない。\n */\nexport function compareIiifCopy(\n current: Record,\n copiedValues: Record>,\n fresh: Record> | undefined,\n lang: string\n): Array<{ key: string; lang: string; humanEdited: boolean; iiifChanged: boolean | undefined }> {\n const rows: Array<{\n key: string;\n lang: string;\n humanEdited: boolean;\n iiifChanged: boolean | undefined;\n }> = [];\n for (const [key, table] of Object.entries(copiedValues ?? {})) {\n if (!table) continue;\n const currentValue = current?.[key];\n for (const [language, copied] of Object.entries(table)) {\n // 多言語でない鍵・文字列で写した値は、lang の言語の値として比べる\n const now =\n typeof currentValue === \"string\"\n ? language === lang\n ? currentValue\n : undefined\n : currentValue?.[language];\n const humanEdited = now === undefined || now !== copied;\n const iiifChanged = fresh === undefined ? undefined : fresh[key]?.[language] !== copied;\n rows.push({ key, lang: language, humanEdited, iiifChanged });\n }\n }\n return rows;\n}\n\n/** ライセンス(rights)の URI を、Maplat のライセンスの語彙にする */\nexport function iiifRightsToLicense(uri: string): { license: string; licenseNote?: string } {\n const path = uri.replace(/^https?:\\/\\//i, \"\").replace(/^www\\./i, \"\");\n if (/^creativecommons\\.org\\//i.test(path)) {\n const within = path.slice(\"creativecommons.org\".length);\n for (const { pattern, license } of CREATIVE_COMMONS) {\n if (pattern.test(within)) return { license };\n }\n }\n // 表に無い URI はそのまま注記に残す\n return { license: \"Custom\", licenseNote: uri };\n}\n","export function randomFromCenter(center: number, pow: number): number {\r\n return center + (Math.random() - 0.5) * pow;\r\n}\r\n\r\n// TODO: recursive `val` type\r\nexport function recursiveRound(val: any, decimal: number): any {\r\n // TODO: replace from `instanceof Array` to `Array.isArray`\r\n // ref: https://developer.mozilla.org/ja/docs/Web/JavaScript/Reference/Global_Objects/Array/isArray#instanceof_vs_isArray\r\n if (val instanceof Array)\r\n return val.map(item => recursiveRound(item, decimal));\r\n const decVal = Math.pow(10, decimal);\r\n return Math.round(val * decVal) / decVal;\r\n}\r\n\r\nfunction radians(deg: number): number {\r\n return (deg * Math.PI) / 180;\r\n}\r\n\r\nexport function getDistance(\r\n lnglat1: [number, number],\r\n lnglat2: [number, number]\r\n): number {\r\n return (\r\n 6378.14 *\r\n Math.acos(\r\n Math.cos(radians(lnglat1[1])) *\r\n Math.cos(radians(lnglat2[1])) *\r\n Math.cos(radians(lnglat2[0]) - radians(lnglat1[0])) +\r\n Math.sin(radians(lnglat1[1])) * Math.sin(radians(lnglat2[1]))\r\n )\r\n );\r\n}\r\n","function Pe(fe) {\n return fe && fe.__esModule && Object.prototype.hasOwnProperty.call(fe, \"default\") ? fe.default : fe;\n}\nvar we = { exports: {} };\nvar Ie = we.exports, Le;\nfunction Ke() {\n return Le || (Le = 1, (function(fe, Oe) {\n (function(j, N) {\n fe.exports = N();\n })(typeof self < \"u\" ? self : Ie, function() {\n return (\n /******/\n (function(U) {\n var j = {};\n function N(_) {\n if (j[_])\n return j[_].exports;\n var x = j[_] = {\n /******/\n i: _,\n /******/\n l: !1,\n /******/\n exports: {}\n /******/\n };\n return U[_].call(x.exports, x, x.exports, N), x.l = !0, x.exports;\n }\n return N.m = U, N.c = j, N.d = function(_, x, v) {\n N.o(_, x) || Object.defineProperty(_, x, {\n /******/\n configurable: !1,\n /******/\n enumerable: !0,\n /******/\n get: v\n /******/\n });\n }, N.n = function(_) {\n var x = _ && _.__esModule ? (\n /******/\n function() {\n return _.default;\n }\n ) : (\n /******/\n function() {\n return _;\n }\n );\n return N.d(x, \"a\", x), x;\n }, N.o = function(_, x) {\n return Object.prototype.hasOwnProperty.call(_, x);\n }, N.p = \"\", N(N.s = 11);\n })([\n /* 0 */\n /***/\n (function(U, y, N) {\n var _ = Array.prototype, x = Object.prototype, v = {\n \"&\": \"&\",\n '\"': \""\",\n \"'\": \"'\",\n \"<\": \"<\",\n \">\": \">\",\n \"\\\\\": \"\\"\n }, E = /[&\"'<>\\\\]/g, y = U.exports = {};\n function O(f, w) {\n return x.hasOwnProperty.call(f, w);\n }\n y.hasOwnProp = O;\n function P(f) {\n return v[f];\n }\n function I(f, w, F) {\n if (F.Update || (F = new y.TemplateError(F)), F.Update(f), !w) {\n var B = F;\n F = new Error(B.message), F.name = B.name;\n }\n return F;\n }\n y._prettifyError = I;\n function C(f, w, F) {\n var B, V;\n f instanceof Error && (V = f, f = V.name + \": \" + V.message), Object.setPrototypeOf ? (B = new Error(f), Object.setPrototypeOf(B, C.prototype)) : (B = this, Object.defineProperty(B, \"message\", {\n enumerable: !1,\n writable: !0,\n value: f\n })), Object.defineProperty(B, \"name\", {\n value: \"Template render error\"\n }), Error.captureStackTrace && Error.captureStackTrace(B, this.constructor);\n var Z;\n if (V) {\n var $ = Object.getOwnPropertyDescriptor(V, \"stack\");\n Z = $ && ($.get || function() {\n return $.value;\n }), Z || (Z = function() {\n return V.stack;\n });\n } else {\n var se = new Error(f).stack;\n Z = function() {\n return se;\n };\n }\n return Object.defineProperty(B, \"stack\", {\n get: function() {\n return Z.call(B);\n }\n }), Object.defineProperty(B, \"cause\", {\n value: V\n }), B.lineno = w, B.colno = F, B.firstUpdate = !0, B.Update = function(X) {\n var Q = \"(\" + (X || \"unknown path\") + \")\";\n return this.firstUpdate && (this.lineno && this.colno ? Q += \" [Line \" + this.lineno + \", Column \" + this.colno + \"]\" : this.lineno && (Q += \" [Line \" + this.lineno + \"]\")), Q += `\n `, this.firstUpdate && (Q += \" \"), this.message = Q + (this.message || \"\"), this.firstUpdate = !1, this;\n }, B;\n }\n Object.setPrototypeOf ? Object.setPrototypeOf(C.prototype, Error.prototype) : C.prototype = Object.create(Error.prototype, {\n constructor: {\n value: C\n }\n }), y.TemplateError = C;\n function g(f) {\n return f.replace(E, P);\n }\n y.escape = g;\n function L(f) {\n return x.toString.call(f) === \"[object Function]\";\n }\n y.isFunction = L;\n function e(f) {\n return x.toString.call(f) === \"[object Array]\";\n }\n y.isArray = e;\n function n(f) {\n return x.toString.call(f) === \"[object String]\";\n }\n y.isString = n;\n function i(f) {\n return x.toString.call(f) === \"[object Object]\";\n }\n y.isObject = i;\n function p(f) {\n return f ? typeof f == \"string\" ? f.split(\".\") : [f] : [];\n }\n function l(f) {\n var w = p(f);\n return function(B) {\n for (var V = B, Z = 0; Z < w.length; Z++) {\n var $ = w[Z];\n if (O(V, $))\n V = V[$];\n else\n return;\n }\n return V;\n };\n }\n y.getAttrGetter = l;\n function h(f, w, F) {\n for (var B = {}, V = L(w) ? w : l(w), Z = 0; Z < f.length; Z++) {\n var $ = f[Z], se = V($, Z);\n if (se === void 0 && F === !0)\n throw new TypeError('groupby: attribute \"' + w + '\" resolved to undefined');\n (B[se] || (B[se] = [])).push($);\n }\n return B;\n }\n y.groupBy = h;\n function t(f) {\n return Array.prototype.slice.call(f);\n }\n y.toArray = t;\n function r(f) {\n var w = [];\n if (!f)\n return w;\n for (var F = f.length, B = t(arguments).slice(1), V = -1; ++V < F; )\n k(B, f[V]) === -1 && w.push(f[V]);\n return w;\n }\n y.without = r;\n function a(f, w) {\n for (var F = \"\", B = 0; B < w; B++)\n F += f;\n return F;\n }\n y.repeat = a;\n function o(f, w, F) {\n if (f != null) {\n if (_.forEach && f.forEach === _.forEach)\n f.forEach(w, F);\n else if (f.length === +f.length)\n for (var B = 0, V = f.length; B < V; B++)\n w.call(F, f[B], B, f);\n }\n }\n y.each = o;\n function s(f, w) {\n var F = [];\n if (f == null)\n return F;\n if (_.map && f.map === _.map)\n return f.map(w);\n for (var B = 0; B < f.length; B++)\n F[F.length] = w(f[B], B);\n return f.length === +f.length && (F.length = f.length), F;\n }\n y.map = s;\n function c(f, w, F) {\n var B = -1;\n function V() {\n B++, B < f.length ? w(f[B], B, V, F) : F();\n }\n V();\n }\n y.asyncIter = c;\n function u(f, w, F) {\n var B = T(f || {}), V = B.length, Z = -1;\n function $() {\n Z++;\n var se = B[Z];\n Z < V ? w(se, f[se], Z, V, $) : F();\n }\n $();\n }\n y.asyncFor = u;\n function k(f, w, F) {\n return Array.prototype.indexOf.call(f || [], w, F);\n }\n y.indexOf = k;\n function T(f) {\n var w = [];\n for (var F in f)\n O(f, F) && w.push(F);\n return w;\n }\n y.keys = T;\n function b(f) {\n return T(f).map(function(w) {\n return [w, f[w]];\n });\n }\n y._entries = b;\n function A(f) {\n return T(f).map(function(w) {\n return f[w];\n });\n }\n y._values = A;\n function R(f, w) {\n return f = f || {}, T(w).forEach(function(F) {\n f[F] = w[F];\n }), f;\n }\n y._assign = y.extend = R;\n function d(f, w) {\n if (e(w) || n(w))\n return w.indexOf(f) !== -1;\n if (i(w))\n return f in w;\n throw new Error('Cannot use \"in\" operator to search for \"' + f + '\" in unexpected types.');\n }\n y.inOperator = d;\n }),\n /* 1 */\n /***/\n (function(U, j, N) {\n function _(n, i) {\n for (var p = 0; p < i.length; p++) {\n var l = i[p];\n l.enumerable = l.enumerable || !1, l.configurable = !0, \"value\" in l && (l.writable = !0), Object.defineProperty(n, v(l.key), l);\n }\n }\n function x(n, i, p) {\n return i && _(n.prototype, i), Object.defineProperty(n, \"prototype\", { writable: !1 }), n;\n }\n function v(n) {\n var i = E(n, \"string\");\n return typeof i == \"symbol\" ? i : String(i);\n }\n function E(n, i) {\n if (typeof n != \"object\" || n === null) return n;\n var p = n[Symbol.toPrimitive];\n if (p !== void 0) {\n var l = p.call(n, i);\n if (typeof l != \"object\") return l;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return String(n);\n }\n function y(n, i) {\n n.prototype = Object.create(i.prototype), n.prototype.constructor = n, O(n, i);\n }\n function O(n, i) {\n return O = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(l, h) {\n return l.__proto__ = h, l;\n }, O(n, i);\n }\n var P = N(16), I = N(0);\n function C(n, i) {\n return typeof n != \"function\" || typeof i != \"function\" ? i : function() {\n var l = this.parent;\n this.parent = n;\n var h = i.apply(this, arguments);\n return this.parent = l, h;\n };\n }\n function g(n, i, p) {\n p = p || {}, I.keys(p).forEach(function(h) {\n p[h] = C(n.prototype[h], p[h]);\n });\n var l = /* @__PURE__ */ (function(h) {\n y(t, h);\n function t() {\n return h.apply(this, arguments) || this;\n }\n return x(t, [{\n key: \"typename\",\n get: function() {\n return i;\n }\n }]), t;\n })(n);\n return I._assign(l.prototype, p), l;\n }\n var L = /* @__PURE__ */ (function() {\n function n() {\n this.init.apply(this, arguments);\n }\n var i = n.prototype;\n return i.init = function() {\n }, n.extend = function(l, h) {\n return typeof l == \"object\" && (h = l, l = \"anonymous\"), g(this, l, h);\n }, x(n, [{\n key: \"typename\",\n get: function() {\n return this.constructor.name;\n }\n }]), n;\n })(), e = /* @__PURE__ */ (function(n) {\n y(i, n);\n function i() {\n var l, h;\n return h = n.call(this) || this, (l = h).init.apply(l, arguments), h;\n }\n var p = i.prototype;\n return p.init = function() {\n }, i.extend = function(h, t) {\n return typeof h == \"object\" && (t = h, h = \"anonymous\"), g(this, h, t);\n }, x(i, [{\n key: \"typename\",\n get: function() {\n return this.constructor.name;\n }\n }]), i;\n })(P);\n U.exports = {\n Obj: L,\n EmitterObj: e\n };\n }),\n /* 2 */\n /***/\n (function(U, j, N) {\n var _ = N(0), x = Array.from, v = typeof Symbol == \"function\" && Symbol.iterator && typeof x == \"function\", E = /* @__PURE__ */ (function() {\n function s(u, k) {\n this.variables = /* @__PURE__ */ Object.create(null), this.parent = u, this.topLevel = !1, this.isolateWrites = k;\n }\n var c = s.prototype;\n return c.set = function(k, T, b) {\n var A = k.split(\".\"), R = this.variables, d = this;\n if (b && (d = this.resolve(A[0], !0))) {\n d.set(k, T);\n return;\n }\n for (var f = 0; f < A.length - 1; f++) {\n var w = A[f];\n R[w] || (R[w] = {}), R = R[w];\n }\n R[A[A.length - 1]] = T;\n }, c.get = function(k) {\n var T = this.variables[k];\n return T !== void 0 ? T : null;\n }, c.lookup = function(k) {\n var T = this.parent, b = this.variables[k];\n return b !== void 0 ? b : T && T.lookup(k);\n }, c.resolve = function(k, T) {\n var b = T && this.isolateWrites ? void 0 : this.parent, A = this.variables[k];\n return A !== void 0 ? this : b && b.resolve(k);\n }, c.push = function(k) {\n return new s(this, k);\n }, c.pop = function() {\n return this.parent;\n }, s;\n })();\n function y(s, c, u) {\n return function() {\n for (var T = arguments.length, b = new Array(T), A = 0; A < T; A++)\n b[A] = arguments[A];\n var R = C(b), d, f = I(b);\n if (R > s.length)\n d = b.slice(0, s.length), b.slice(d.length, R).forEach(function(B, V) {\n V < c.length && (f[c[V]] = B);\n }), d.push(f);\n else if (R < s.length) {\n d = b.slice(0, R);\n for (var w = R; w < s.length; w++) {\n var F = s[w];\n d.push(f[F]), delete f[F];\n }\n d.push(f);\n } else\n d = b;\n return u.apply(this, d);\n };\n }\n function O(s) {\n return s.__keywords = !0, s;\n }\n function P(s) {\n return s && Object.prototype.hasOwnProperty.call(s, \"__keywords\");\n }\n function I(s) {\n var c = s.length;\n if (c) {\n var u = s[c - 1];\n if (P(u))\n return u;\n }\n return {};\n }\n function C(s) {\n var c = s.length;\n if (c === 0)\n return 0;\n var u = s[c - 1];\n return P(u) ? c - 1 : c;\n }\n function g(s) {\n if (typeof s != \"string\")\n return s;\n this.val = s, this.length = s.length;\n }\n g.prototype = Object.create(String.prototype, {\n length: {\n writable: !0,\n configurable: !0,\n value: 0\n }\n }), g.prototype.valueOf = function() {\n return this.val;\n }, g.prototype.toString = function() {\n return this.val;\n };\n function L(s, c) {\n return s instanceof g ? new g(c) : c.toString();\n }\n function e(s) {\n var c = typeof s;\n return c === \"string\" ? new g(s) : c !== \"function\" ? s : function(k) {\n var T = s.apply(this, arguments);\n return typeof T == \"string\" ? new g(T) : T;\n };\n }\n function n(s, c) {\n return s = s ?? \"\", c && !(s instanceof g) && (s = _.escape(s.toString())), s;\n }\n function i(s, c, u) {\n if (s == null)\n throw new _.TemplateError(\"attempted to output null or undefined value\", c + 1, u + 1);\n return s;\n }\n function p(s, c) {\n if (s != null)\n return typeof s[c] == \"function\" ? function() {\n for (var u = arguments.length, k = new Array(u), T = 0; T < u; T++)\n k[T] = arguments[T];\n return s[c].apply(s, k);\n } : s[c];\n }\n function l(s, c, u, k) {\n if (s) {\n if (typeof s != \"function\")\n throw new Error(\"Unable to call `\" + c + \"`, which is not a function\");\n } else throw new Error(\"Unable to call `\" + c + \"`, which is undefined or falsey\");\n return s.apply(u, k);\n }\n function h(s, c, u) {\n var k = c.lookup(u);\n return k !== void 0 ? k : s.lookup(u);\n }\n function t(s, c, u) {\n return s.lineno ? s : new _.TemplateError(s, c, u);\n }\n function r(s, c, u, k) {\n if (_.isArray(s)) {\n var T = s.length;\n _.asyncIter(s, function(A, R, d) {\n switch (c) {\n case 1:\n u(A, R, T, d);\n break;\n case 2:\n u(A[0], A[1], R, T, d);\n break;\n case 3:\n u(A[0], A[1], A[2], R, T, d);\n break;\n default:\n A.push(R, T, d), u.apply(this, A);\n }\n }, k);\n } else\n _.asyncFor(s, function(A, R, d, f, w) {\n u(A, R, d, f, w);\n }, k);\n }\n function a(s, c, u, k) {\n var T = 0, b, A;\n function R(V, Z) {\n T++, A[V] = Z, T === b && k(null, A.join(\"\"));\n }\n if (_.isArray(s))\n if (b = s.length, A = new Array(b), b === 0)\n k(null, \"\");\n else\n for (var d = 0; d < s.length; d++) {\n var f = s[d];\n switch (c) {\n case 1:\n u(f, d, b, R);\n break;\n case 2:\n u(f[0], f[1], d, b, R);\n break;\n case 3:\n u(f[0], f[1], f[2], d, b, R);\n break;\n default:\n f.push(d, b, R), u.apply(this, f);\n }\n }\n else {\n var w = _.keys(s || {});\n if (b = w.length, A = new Array(b), b === 0)\n k(null, \"\");\n else\n for (var F = 0; F < w.length; F++) {\n var B = w[F];\n u(B, s[B], F, b, R);\n }\n }\n }\n function o(s) {\n return typeof s != \"object\" || s === null || _.isArray(s) ? s : v && Symbol.iterator in s ? x(s) : s;\n }\n U.exports = {\n Frame: E,\n makeMacro: y,\n makeKeywordArgs: O,\n numArgs: C,\n suppressValue: n,\n ensureDefined: i,\n memberLookup: p,\n contextOrFrameLookup: h,\n callWrap: l,\n handleError: t,\n isArray: _.isArray,\n keys: _.keys,\n SafeString: g,\n copySafeness: L,\n markSafe: e,\n asyncEach: r,\n asyncAll: a,\n inOperator: _.inOperator,\n fromIterator: o\n };\n }),\n /* 3 */\n /***/\n (function(U, j, N) {\n function _(H, Y) {\n for (var ne = 0; ne < Y.length; ne++) {\n var ee = Y[ne];\n ee.enumerable = ee.enumerable || !1, ee.configurable = !0, \"value\" in ee && (ee.writable = !0), Object.defineProperty(H, v(ee.key), ee);\n }\n }\n function x(H, Y, ne) {\n return Y && _(H.prototype, Y), Object.defineProperty(H, \"prototype\", { writable: !1 }), H;\n }\n function v(H) {\n var Y = E(H, \"string\");\n return typeof Y == \"symbol\" ? Y : String(Y);\n }\n function E(H, Y) {\n if (typeof H != \"object\" || H === null) return H;\n var ne = H[Symbol.toPrimitive];\n if (ne !== void 0) {\n var ee = ne.call(H, Y);\n if (typeof ee != \"object\") return ee;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return String(H);\n }\n function y(H, Y) {\n H.prototype = Object.create(Y.prototype), H.prototype.constructor = H, O(H, Y);\n }\n function O(H, Y) {\n return O = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(ee, ie) {\n return ee.__proto__ = ie, ee;\n }, O(H, Y);\n }\n var P = N(1), I = P.Obj;\n function C(H, Y, ne) {\n H instanceof Y && ne.push(H), H instanceof g && H.findAll(Y, ne);\n }\n var g = /* @__PURE__ */ (function(H) {\n y(Y, H);\n function Y() {\n return H.apply(this, arguments) || this;\n }\n var ne = Y.prototype;\n return ne.init = function(ie, ae) {\n for (var he = arguments, ye = this, Ee = arguments.length, Re = new Array(Ee > 2 ? Ee - 2 : 0), ke = 2; ke < Ee; ke++)\n Re[ke - 2] = arguments[ke];\n this.lineno = ie, this.colno = ae, this.fields.forEach(function(Fe, Be) {\n var be = he[Be + 2];\n be === void 0 && (be = null), ye[Fe] = be;\n });\n }, ne.findAll = function(ie, ae) {\n var he = this;\n return ae = ae || [], this instanceof e ? this.children.forEach(function(ye) {\n return C(ye, ie, ae);\n }) : this.fields.forEach(function(ye) {\n return C(he[ye], ie, ae);\n }), ae;\n }, ne.iterFields = function(ie) {\n var ae = this;\n this.fields.forEach(function(he) {\n ie(ae[he], he);\n });\n }, Y;\n })(I), L = /* @__PURE__ */ (function(H) {\n y(Y, H);\n function Y() {\n return H.apply(this, arguments) || this;\n }\n return x(Y, [{\n key: \"typename\",\n get: function() {\n return \"Value\";\n }\n }, {\n key: \"fields\",\n get: function() {\n return [\"value\"];\n }\n }]), Y;\n })(g), e = /* @__PURE__ */ (function(H) {\n y(Y, H);\n function Y() {\n return H.apply(this, arguments) || this;\n }\n var ne = Y.prototype;\n return ne.init = function(ie, ae, he) {\n H.prototype.init.call(this, ie, ae, he || []);\n }, ne.addChild = function(ie) {\n this.children.push(ie);\n }, x(Y, [{\n key: \"typename\",\n get: function() {\n return \"NodeList\";\n }\n }, {\n key: \"fields\",\n get: function() {\n return [\"children\"];\n }\n }]), Y;\n })(g), n = e.extend(\"Root\"), i = L.extend(\"Literal\"), p = L.extend(\"Symbol\"), l = e.extend(\"Group\"), h = e.extend(\"Array\"), t = g.extend(\"Pair\", {\n fields: [\"key\", \"value\"]\n }), r = e.extend(\"Dict\"), a = g.extend(\"LookupVal\", {\n fields: [\"target\", \"val\"]\n }), o = g.extend(\"If\", {\n fields: [\"cond\", \"body\", \"else_\"]\n }), s = o.extend(\"IfAsync\"), c = g.extend(\"InlineIf\", {\n fields: [\"cond\", \"body\", \"else_\"]\n }), u = g.extend(\"For\", {\n fields: [\"arr\", \"name\", \"body\", \"else_\"]\n }), k = u.extend(\"AsyncEach\"), T = u.extend(\"AsyncAll\"), b = g.extend(\"Macro\", {\n fields: [\"name\", \"args\", \"body\"]\n }), A = b.extend(\"Caller\"), R = g.extend(\"Import\", {\n fields: [\"template\", \"target\", \"withContext\"]\n }), d = /* @__PURE__ */ (function(H) {\n y(Y, H);\n function Y() {\n return H.apply(this, arguments) || this;\n }\n var ne = Y.prototype;\n return ne.init = function(ie, ae, he, ye, Ee) {\n H.prototype.init.call(this, ie, ae, he, ye || new e(), Ee);\n }, x(Y, [{\n key: \"typename\",\n get: function() {\n return \"FromImport\";\n }\n }, {\n key: \"fields\",\n get: function() {\n return [\"template\", \"names\", \"withContext\"];\n }\n }]), Y;\n })(g), f = g.extend(\"FunCall\", {\n fields: [\"name\", \"args\"]\n }), w = f.extend(\"Filter\"), F = w.extend(\"FilterAsync\", {\n fields: [\"name\", \"args\", \"symbol\"]\n }), B = r.extend(\"KeywordArgs\"), V = g.extend(\"Block\", {\n fields: [\"name\", \"body\"]\n }), Z = g.extend(\"Super\", {\n fields: [\"blockName\", \"symbol\"]\n }), $ = g.extend(\"TemplateRef\", {\n fields: [\"template\"]\n }), se = $.extend(\"Extends\"), ue = g.extend(\"Include\", {\n fields: [\"template\", \"ignoreMissing\"]\n }), X = g.extend(\"Set\", {\n fields: [\"targets\", \"value\"]\n }), Q = g.extend(\"Switch\", {\n fields: [\"expr\", \"cases\", \"default\"]\n }), D = g.extend(\"Case\", {\n fields: [\"cond\", \"body\"]\n }), W = e.extend(\"Output\"), G = g.extend(\"Capture\", {\n fields: [\"body\"]\n }), te = i.extend(\"TemplateData\"), ce = g.extend(\"UnaryOp\", {\n fields: [\"target\"]\n }), le = g.extend(\"BinOp\", {\n fields: [\"left\", \"right\"]\n }), me = le.extend(\"In\"), m = le.extend(\"Is\"), S = le.extend(\"Or\"), M = le.extend(\"And\"), K = ce.extend(\"Not\"), z = le.extend(\"Add\"), J = le.extend(\"Concat\"), re = le.extend(\"Sub\"), q = le.extend(\"Mul\"), oe = le.extend(\"Div\"), pe = le.extend(\"FloorDiv\"), ve = le.extend(\"Mod\"), de = le.extend(\"Pow\"), Te = ce.extend(\"Neg\"), Ae = ce.extend(\"Pos\"), Se = g.extend(\"Compare\", {\n fields: [\"expr\", \"ops\"]\n }), Ne = g.extend(\"CompareOperand\", {\n fields: [\"expr\", \"type\"]\n }), xe = g.extend(\"CallExtension\", {\n init: function(Y, ne, ee, ie) {\n this.parent(), this.extName = Y.__name || Y, this.prop = ne, this.args = ee || new e(), this.contentArgs = ie || [], this.autoescape = Y.autoescape;\n },\n fields: [\"extName\", \"prop\", \"args\", \"contentArgs\"]\n }), Ce = xe.extend(\"CallExtensionAsync\");\n function ge(H, Y, ne) {\n var ee = H.split(`\n`);\n ee.forEach(function(ie, ae) {\n ie && (ne && ae > 0 || !ne) && process.stdout.write(\" \".repeat(Y));\n var he = ae === ee.length - 1 ? \"\" : `\n`;\n process.stdout.write(\"\" + ie + he);\n });\n }\n function _e(H, Y) {\n if (Y = Y || 0, ge(H.typename + \": \", Y), H instanceof e)\n ge(`\n`), H.children.forEach(function(ie) {\n _e(ie, Y + 2);\n });\n else if (H instanceof xe)\n ge(H.extName + \".\" + H.prop + `\n`), H.args && _e(H.args, Y + 2), H.contentArgs && H.contentArgs.forEach(function(ie) {\n _e(ie, Y + 2);\n });\n else {\n var ne = [], ee = null;\n H.iterFields(function(ie, ae) {\n ie instanceof g ? ne.push([ae, ie]) : (ee = ee || {}, ee[ae] = ie);\n }), ee ? ge(JSON.stringify(ee, null, 2) + `\n`, null, !0) : ge(`\n`), ne.forEach(function(ie) {\n var ae = ie[0], he = ie[1];\n ge(\"[\" + ae + \"] =>\", Y + 2), _e(he, Y + 4);\n });\n }\n }\n U.exports = {\n Node: g,\n Root: n,\n NodeList: e,\n Value: L,\n Literal: i,\n Symbol: p,\n Group: l,\n Array: h,\n Pair: t,\n Dict: r,\n Output: W,\n Capture: G,\n TemplateData: te,\n If: o,\n IfAsync: s,\n InlineIf: c,\n For: u,\n AsyncEach: k,\n AsyncAll: T,\n Macro: b,\n Caller: A,\n Import: R,\n FromImport: d,\n FunCall: f,\n Filter: w,\n FilterAsync: F,\n KeywordArgs: B,\n Block: V,\n Super: Z,\n Extends: se,\n Include: ue,\n Set: X,\n Switch: Q,\n Case: D,\n LookupVal: a,\n BinOp: le,\n In: me,\n Is: m,\n Or: S,\n And: M,\n Not: K,\n Add: z,\n Concat: J,\n Sub: re,\n Mul: q,\n Div: oe,\n FloorDiv: pe,\n Mod: ve,\n Pow: de,\n Neg: Te,\n Pos: Ae,\n Compare: Se,\n CompareOperand: Ne,\n CallExtension: xe,\n CallExtensionAsync: Ce,\n printNodes: _e\n };\n }),\n /* 4 */\n /***/\n (function(U, j) {\n }),\n /* 5 */\n /***/\n (function(U, j, N) {\n function _(i, p) {\n i.prototype = Object.create(p.prototype), i.prototype.constructor = i, x(i, p);\n }\n function x(i, p) {\n return x = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(h, t) {\n return h.__proto__ = t, h;\n }, x(i, p);\n }\n var v = N(8), E = N(17), y = N(3), O = N(0), P = O.TemplateError, I = N(2), C = I.Frame, g = N(1), L = g.Obj, e = {\n \"==\": \"==\",\n \"===\": \"===\",\n \"!=\": \"!=\",\n \"!==\": \"!==\",\n \"<\": \"<\",\n \">\": \">\",\n \"<=\": \"<=\",\n \">=\": \">=\"\n }, n = /* @__PURE__ */ (function(i) {\n _(p, i);\n function p() {\n return i.apply(this, arguments) || this;\n }\n var l = p.prototype;\n return l.init = function(t, r) {\n this.templateName = t, this.codebuf = [], this.lastId = 0, this.buffer = null, this.bufferStack = [], this._scopeClosers = \"\", this.inBlock = !1, this.throwOnUndefined = r;\n }, l.fail = function(t, r, a) {\n throw r !== void 0 && (r += 1), a !== void 0 && (a += 1), new P(t, r, a);\n }, l._pushBuffer = function() {\n var t = this._tmpid();\n return this.bufferStack.push(this.buffer), this.buffer = t, this._emit(\"var \" + this.buffer + ' = \"\";'), t;\n }, l._popBuffer = function() {\n this.buffer = this.bufferStack.pop();\n }, l._emit = function(t) {\n this.codebuf.push(t);\n }, l._emitLine = function(t) {\n this._emit(t + `\n`);\n }, l._emitLines = function() {\n for (var t = this, r = arguments.length, a = new Array(r), o = 0; o < r; o++)\n a[o] = arguments[o];\n a.forEach(function(s) {\n return t._emitLine(s);\n });\n }, l._emitFuncBegin = function(t, r) {\n this.buffer = \"output\", this._scopeClosers = \"\", this._emitLine(\"function \" + r + \"(env, context, frame, runtime, cb) {\"), this._emitLine(\"var lineno = \" + t.lineno + \";\"), this._emitLine(\"var colno = \" + t.colno + \";\"), this._emitLine(\"var \" + this.buffer + ' = \"\";'), this._emitLine(\"try {\");\n }, l._emitFuncEnd = function(t) {\n t || this._emitLine(\"cb(null, \" + this.buffer + \");\"), this._closeScopeLevels(), this._emitLine(\"} catch (e) {\"), this._emitLine(\" cb(runtime.handleError(e, lineno, colno));\"), this._emitLine(\"}\"), this._emitLine(\"}\"), this.buffer = null;\n }, l._addScopeLevel = function() {\n this._scopeClosers += \"})\";\n }, l._closeScopeLevels = function() {\n this._emitLine(this._scopeClosers + \";\"), this._scopeClosers = \"\";\n }, l._withScopedSyntax = function(t) {\n var r = this._scopeClosers;\n this._scopeClosers = \"\", t.call(this), this._closeScopeLevels(), this._scopeClosers = r;\n }, l._makeCallback = function(t) {\n var r = this._tmpid();\n return \"function(\" + r + (t ? \",\" + t : \"\") + `) {\nif(` + r + \") { cb(\" + r + \"); return; }\";\n }, l._tmpid = function() {\n return this.lastId++, \"t_\" + this.lastId;\n }, l._templateName = function() {\n return this.templateName == null ? \"undefined\" : JSON.stringify(this.templateName);\n }, l._compileChildren = function(t, r) {\n var a = this;\n t.children.forEach(function(o) {\n a.compile(o, r);\n });\n }, l._compileAggregate = function(t, r, a, o) {\n var s = this;\n a && this._emit(a), t.children.forEach(function(c, u) {\n u > 0 && s._emit(\",\"), s.compile(c, r);\n }), o && this._emit(o);\n }, l._compileExpression = function(t, r) {\n this.assertType(t, y.Literal, y.Symbol, y.Group, y.Array, y.Dict, y.FunCall, y.Caller, y.Filter, y.LookupVal, y.Compare, y.InlineIf, y.In, y.Is, y.And, y.Or, y.Not, y.Add, y.Concat, y.Sub, y.Mul, y.Div, y.FloorDiv, y.Mod, y.Pow, y.Neg, y.Pos, y.Compare, y.NodeList), this.compile(t, r);\n }, l.assertType = function(t) {\n for (var r = arguments.length, a = new Array(r > 1 ? r - 1 : 0), o = 1; o < r; o++)\n a[o - 1] = arguments[o];\n a.some(function(s) {\n return t instanceof s;\n }) || this.fail(\"assertType: invalid type: \" + t.typename, t.lineno, t.colno);\n }, l.compileCallExtension = function(t, r, a) {\n var o = this, s = t.args, c = t.contentArgs, u = typeof t.autoescape == \"boolean\" ? t.autoescape : !0;\n if (a || this._emit(this.buffer + \" += runtime.suppressValue(\"), this._emit('env.getExtension(\"' + t.extName + '\")[\"' + t.prop + '\"]('), this._emit(\"context\"), (s || c) && this._emit(\",\"), s && (s instanceof y.NodeList || this.fail(\"compileCallExtension: arguments must be a NodeList, use `parser.parseSignature`\"), s.children.forEach(function(T, b) {\n o._compileExpression(T, r), (b !== s.children.length - 1 || c.length) && o._emit(\",\");\n })), c.length && c.forEach(function(T, b) {\n if (b > 0 && o._emit(\",\"), T) {\n o._emitLine(\"function(cb) {\"), o._emitLine(\"if(!cb) { cb = function(err) { if(err) { throw err; }}}\");\n var A = o._pushBuffer();\n o._withScopedSyntax(function() {\n o.compile(T, r), o._emitLine(\"cb(null, \" + A + \");\");\n }), o._popBuffer(), o._emitLine(\"return \" + A + \";\"), o._emitLine(\"}\");\n } else\n o._emit(\"null\");\n }), a) {\n var k = this._tmpid();\n this._emitLine(\", \" + this._makeCallback(k)), this._emitLine(this.buffer + \" += runtime.suppressValue(\" + k + \", \" + u + \" && env.opts.autoescape);\"), this._addScopeLevel();\n } else\n this._emit(\")\"), this._emit(\", \" + u + ` && env.opts.autoescape);\n`);\n }, l.compileCallExtensionAsync = function(t, r) {\n this.compileCallExtension(t, r, !0);\n }, l.compileNodeList = function(t, r) {\n this._compileChildren(t, r);\n }, l.compileLiteral = function(t) {\n if (typeof t.value == \"string\") {\n var r = t.value.replace(/\\\\/g, \"\\\\\\\\\");\n r = r.replace(/\"/g, '\\\\\"'), r = r.replace(/\\n/g, \"\\\\n\"), r = r.replace(/\\r/g, \"\\\\r\"), r = r.replace(/\\t/g, \"\\\\t\"), r = r.replace(/\\u2028/g, \"\\\\u2028\"), this._emit('\"' + r + '\"');\n } else t.value === null ? this._emit(\"null\") : this._emit(t.value.toString());\n }, l.compileSymbol = function(t, r) {\n var a = t.value, o = r.lookup(a);\n o ? this._emit(o) : this._emit('runtime.contextOrFrameLookup(context, frame, \"' + a + '\")');\n }, l.compileGroup = function(t, r) {\n this._compileAggregate(t, r, \"(\", \")\");\n }, l.compileArray = function(t, r) {\n this._compileAggregate(t, r, \"[\", \"]\");\n }, l.compileDict = function(t, r) {\n this._compileAggregate(t, r, \"{\", \"}\");\n }, l.compilePair = function(t, r) {\n var a = t.key, o = t.value;\n a instanceof y.Symbol ? a = new y.Literal(a.lineno, a.colno, a.value) : a instanceof y.Literal && typeof a.value == \"string\" || this.fail(\"compilePair: Dict keys must be strings or names\", a.lineno, a.colno), this.compile(a, r), this._emit(\": \"), this._compileExpression(o, r);\n }, l.compileInlineIf = function(t, r) {\n this._emit(\"(\"), this.compile(t.cond, r), this._emit(\"?\"), this.compile(t.body, r), this._emit(\":\"), t.else_ !== null ? this.compile(t.else_, r) : this._emit('\"\"'), this._emit(\")\");\n }, l.compileIn = function(t, r) {\n this._emit(\"runtime.inOperator(\"), this.compile(t.left, r), this._emit(\",\"), this.compile(t.right, r), this._emit(\")\");\n }, l.compileIs = function(t, r) {\n var a = t.right.name ? t.right.name.value : t.right.value;\n this._emit('env.getTest(\"' + a + '\").call(context, '), this.compile(t.left, r), t.right.args && (this._emit(\",\"), this.compile(t.right.args, r)), this._emit(\") === true\");\n }, l._binOpEmitter = function(t, r, a) {\n this.compile(t.left, r), this._emit(a), this.compile(t.right, r);\n }, l.compileOr = function(t, r) {\n return this._binOpEmitter(t, r, \" || \");\n }, l.compileAnd = function(t, r) {\n return this._binOpEmitter(t, r, \" && \");\n }, l.compileAdd = function(t, r) {\n return this._binOpEmitter(t, r, \" + \");\n }, l.compileConcat = function(t, r) {\n return this._binOpEmitter(t, r, ' + \"\" + ');\n }, l.compileSub = function(t, r) {\n return this._binOpEmitter(t, r, \" - \");\n }, l.compileMul = function(t, r) {\n return this._binOpEmitter(t, r, \" * \");\n }, l.compileDiv = function(t, r) {\n return this._binOpEmitter(t, r, \" / \");\n }, l.compileMod = function(t, r) {\n return this._binOpEmitter(t, r, \" % \");\n }, l.compileNot = function(t, r) {\n this._emit(\"!\"), this.compile(t.target, r);\n }, l.compileFloorDiv = function(t, r) {\n this._emit(\"Math.floor(\"), this.compile(t.left, r), this._emit(\" / \"), this.compile(t.right, r), this._emit(\")\");\n }, l.compilePow = function(t, r) {\n this._emit(\"Math.pow(\"), this.compile(t.left, r), this._emit(\", \"), this.compile(t.right, r), this._emit(\")\");\n }, l.compileNeg = function(t, r) {\n this._emit(\"-\"), this.compile(t.target, r);\n }, l.compilePos = function(t, r) {\n this._emit(\"+\"), this.compile(t.target, r);\n }, l.compileCompare = function(t, r) {\n var a = this;\n this.compile(t.expr, r), t.ops.forEach(function(o) {\n a._emit(\" \" + e[o.type] + \" \"), a.compile(o.expr, r);\n });\n }, l.compileLookupVal = function(t, r) {\n this._emit(\"runtime.memberLookup((\"), this._compileExpression(t.target, r), this._emit(\"),\"), this._compileExpression(t.val, r), this._emit(\")\");\n }, l._getNodeName = function(t) {\n switch (t.typename) {\n case \"Symbol\":\n return t.value;\n case \"FunCall\":\n return \"the return value of (\" + this._getNodeName(t.name) + \")\";\n case \"LookupVal\":\n return this._getNodeName(t.target) + '[\"' + this._getNodeName(t.val) + '\"]';\n case \"Literal\":\n return t.value.toString();\n default:\n return \"--expression--\";\n }\n }, l.compileFunCall = function(t, r) {\n this._emit(\"(lineno = \" + t.lineno + \", colno = \" + t.colno + \", \"), this._emit(\"runtime.callWrap(\"), this._compileExpression(t.name, r), this._emit(', \"' + this._getNodeName(t.name).replace(/\"/g, '\\\\\"') + '\", context, '), this._compileAggregate(t.args, r, \"[\", \"])\"), this._emit(\")\");\n }, l.compileFilter = function(t, r) {\n var a = t.name;\n this.assertType(a, y.Symbol), this._emit('env.getFilter(\"' + a.value + '\").call(context, '), this._compileAggregate(t.args, r), this._emit(\")\");\n }, l.compileFilterAsync = function(t, r) {\n var a = t.name, o = t.symbol.value;\n this.assertType(a, y.Symbol), r.set(o, o), this._emit('env.getFilter(\"' + a.value + '\").call(context, '), this._compileAggregate(t.args, r), this._emitLine(\", \" + this._makeCallback(o)), this._addScopeLevel();\n }, l.compileKeywordArgs = function(t, r) {\n this._emit(\"runtime.makeKeywordArgs(\"), this.compileDict(t, r), this._emit(\")\");\n }, l.compileSet = function(t, r) {\n var a = this, o = [];\n t.targets.forEach(function(s) {\n var c = s.value, u = r.lookup(c);\n u == null && (u = a._tmpid(), a._emitLine(\"var \" + u + \";\")), o.push(u);\n }), t.value ? (this._emit(o.join(\" = \") + \" = \"), this._compileExpression(t.value, r), this._emitLine(\";\")) : (this._emit(o.join(\" = \") + \" = \"), this.compile(t.body, r), this._emitLine(\";\")), t.targets.forEach(function(s, c) {\n var u = o[c], k = s.value;\n a._emitLine('frame.set(\"' + k + '\", ' + u + \", true);\"), a._emitLine(\"if(frame.topLevel) {\"), a._emitLine('context.setVariable(\"' + k + '\", ' + u + \");\"), a._emitLine(\"}\"), k.charAt(0) !== \"_\" && (a._emitLine(\"if(frame.topLevel) {\"), a._emitLine('context.addExport(\"' + k + '\", ' + u + \");\"), a._emitLine(\"}\"));\n });\n }, l.compileSwitch = function(t, r) {\n var a = this;\n this._emit(\"switch (\"), this.compile(t.expr, r), this._emit(\") {\"), t.cases.forEach(function(o, s) {\n a._emit(\"case \"), a.compile(o.cond, r), a._emit(\": \"), a.compile(o.body, r), o.body.children.length && a._emitLine(\"break;\");\n }), t.default && (this._emit(\"default:\"), this.compile(t.default, r)), this._emit(\"}\");\n }, l.compileIf = function(t, r, a) {\n var o = this;\n this._emit(\"if(\"), this._compileExpression(t.cond, r), this._emitLine(\") {\"), this._withScopedSyntax(function() {\n o.compile(t.body, r), a && o._emit(\"cb()\");\n }), t.else_ ? (this._emitLine(`}\nelse {`), this._withScopedSyntax(function() {\n o.compile(t.else_, r), a && o._emit(\"cb()\");\n })) : a && (this._emitLine(`}\nelse {`), this._emit(\"cb()\")), this._emitLine(\"}\");\n }, l.compileIfAsync = function(t, r) {\n this._emit(\"(function(cb) {\"), this.compileIf(t, r, !0), this._emit(\"})(\" + this._makeCallback()), this._addScopeLevel();\n }, l._emitLoopBindings = function(t, r, a, o) {\n var s = this, c = [{\n name: \"index\",\n val: a + \" + 1\"\n }, {\n name: \"index0\",\n val: a\n }, {\n name: \"revindex\",\n val: o + \" - \" + a\n }, {\n name: \"revindex0\",\n val: o + \" - \" + a + \" - 1\"\n }, {\n name: \"first\",\n val: a + \" === 0\"\n }, {\n name: \"last\",\n val: a + \" === \" + o + \" - 1\"\n }, {\n name: \"length\",\n val: o\n }];\n c.forEach(function(u) {\n s._emitLine('frame.set(\"loop.' + u.name + '\", ' + u.val + \");\");\n });\n }, l.compileFor = function(t, r) {\n var a = this, o = this._tmpid(), s = this._tmpid(), c = this._tmpid();\n if (r = r.push(), this._emitLine(\"frame = frame.push();\"), this._emit(\"var \" + c + \" = \"), this._compileExpression(t.arr, r), this._emitLine(\";\"), this._emit(\"if(\" + c + \") {\"), this._emitLine(c + \" = runtime.fromIterator(\" + c + \");\"), t.name instanceof y.Array) {\n this._emitLine(\"var \" + o + \";\"), this._emitLine(\"if(runtime.isArray(\" + c + \")) {\"), this._emitLine(\"var \" + s + \" = \" + c + \".length;\"), this._emitLine(\"for(\" + o + \"=0; \" + o + \" < \" + c + \".length; \" + o + \"++) {\"), t.name.children.forEach(function(d, f) {\n var w = a._tmpid();\n a._emitLine(\"var \" + w + \" = \" + c + \"[\" + o + \"][\" + f + \"];\"), a._emitLine('frame.set(\"' + d + '\", ' + c + \"[\" + o + \"][\" + f + \"]);\"), r.set(t.name.children[f].value, w);\n }), this._emitLoopBindings(t, c, o, s), this._withScopedSyntax(function() {\n a.compile(t.body, r);\n }), this._emitLine(\"}\"), this._emitLine(\"} else {\");\n var u = t.name.children, k = u[0], T = u[1], b = this._tmpid(), A = this._tmpid();\n r.set(k.value, b), r.set(T.value, A), this._emitLine(o + \" = -1;\"), this._emitLine(\"var \" + s + \" = runtime.keys(\" + c + \").length;\"), this._emitLine(\"for(var \" + b + \" in \" + c + \") {\"), this._emitLine(o + \"++;\"), this._emitLine(\"var \" + A + \" = \" + c + \"[\" + b + \"];\"), this._emitLine('frame.set(\"' + k.value + '\", ' + b + \");\"), this._emitLine('frame.set(\"' + T.value + '\", ' + A + \");\"), this._emitLoopBindings(t, c, o, s), this._withScopedSyntax(function() {\n a.compile(t.body, r);\n }), this._emitLine(\"}\"), this._emitLine(\"}\");\n } else {\n var R = this._tmpid();\n r.set(t.name.value, R), this._emitLine(\"var \" + s + \" = \" + c + \".length;\"), this._emitLine(\"for(var \" + o + \"=0; \" + o + \" < \" + c + \".length; \" + o + \"++) {\"), this._emitLine(\"var \" + R + \" = \" + c + \"[\" + o + \"];\"), this._emitLine('frame.set(\"' + t.name.value + '\", ' + R + \");\"), this._emitLoopBindings(t, c, o, s), this._withScopedSyntax(function() {\n a.compile(t.body, r);\n }), this._emitLine(\"}\");\n }\n this._emitLine(\"}\"), t.else_ && (this._emitLine(\"if (!\" + s + \") {\"), this.compile(t.else_, r), this._emitLine(\"}\")), this._emitLine(\"frame = frame.pop();\");\n }, l._compileAsyncLoop = function(t, r, a) {\n var o = this, s = this._tmpid(), c = this._tmpid(), u = this._tmpid(), k = a ? \"asyncAll\" : \"asyncEach\";\n if (r = r.push(), this._emitLine(\"frame = frame.push();\"), this._emit(\"var \" + u + \" = runtime.fromIterator(\"), this._compileExpression(t.arr, r), this._emitLine(\");\"), t.name instanceof y.Array) {\n var T = t.name.children.length;\n this._emit(\"runtime.\" + k + \"(\" + u + \", \" + T + \", function(\"), t.name.children.forEach(function(R) {\n o._emit(R.value + \",\");\n }), this._emit(s + \",\" + c + \",next) {\"), t.name.children.forEach(function(R) {\n var d = R.value;\n r.set(d, d), o._emitLine('frame.set(\"' + d + '\", ' + d + \");\");\n });\n } else {\n var b = t.name.value;\n this._emitLine(\"runtime.\" + k + \"(\" + u + \", 1, function(\" + b + \", \" + s + \", \" + c + \",next) {\"), this._emitLine('frame.set(\"' + b + '\", ' + b + \");\"), r.set(b, b);\n }\n this._emitLoopBindings(t, u, s, c), this._withScopedSyntax(function() {\n var R;\n a && (R = o._pushBuffer()), o.compile(t.body, r), o._emitLine(\"next(\" + s + (R ? \",\" + R : \"\") + \");\"), a && o._popBuffer();\n });\n var A = this._tmpid();\n this._emitLine(\"}, \" + this._makeCallback(A)), this._addScopeLevel(), a && this._emitLine(this.buffer + \" += \" + A + \";\"), t.else_ && (this._emitLine(\"if (!\" + u + \".length) {\"), this.compile(t.else_, r), this._emitLine(\"}\")), this._emitLine(\"frame = frame.pop();\");\n }, l.compileAsyncEach = function(t, r) {\n this._compileAsyncLoop(t, r);\n }, l.compileAsyncAll = function(t, r) {\n this._compileAsyncLoop(t, r, !0);\n }, l._compileMacro = function(t, r) {\n var a = this, o = [], s = null, c = \"macro_\" + this._tmpid(), u = r !== void 0;\n t.args.children.forEach(function(d, f) {\n f === t.args.children.length - 1 && d instanceof y.Dict ? s = d : (a.assertType(d, y.Symbol), o.push(d));\n });\n var k = [].concat(o.map(function(d) {\n return \"l_\" + d.value;\n }), [\"kwargs\"]), T = o.map(function(d) {\n return '\"' + d.value + '\"';\n }), b = (s && s.children || []).map(function(d) {\n return '\"' + d.key.value + '\"';\n }), A;\n u ? A = r.push(!0) : A = new C(), this._emitLines(\"var \" + c + \" = runtime.makeMacro(\", \"[\" + T.join(\", \") + \"], \", \"[\" + b.join(\", \") + \"], \", \"function (\" + k.join(\", \") + \") {\", \"var callerFrame = frame;\", \"frame = \" + (u ? \"frame.push(true);\" : \"new runtime.Frame();\"), \"kwargs = kwargs || {};\", 'if (Object.prototype.hasOwnProperty.call(kwargs, \"caller\")) {', 'frame.set(\"caller\", kwargs.caller); }'), o.forEach(function(d) {\n a._emitLine('frame.set(\"' + d.value + '\", l_' + d.value + \");\"), A.set(d.value, \"l_\" + d.value);\n }), s && s.children.forEach(function(d) {\n var f = d.key.value;\n a._emit('frame.set(\"' + f + '\", '), a._emit('Object.prototype.hasOwnProperty.call(kwargs, \"' + f + '\")'), a._emit(' ? kwargs[\"' + f + '\"] : '), a._compileExpression(d.value, A), a._emit(\");\");\n });\n var R = this._pushBuffer();\n return this._withScopedSyntax(function() {\n a.compile(t.body, A);\n }), this._emitLine(\"frame = \" + (u ? \"frame.pop();\" : \"callerFrame;\")), this._emitLine(\"return new runtime.SafeString(\" + R + \");\"), this._emitLine(\"});\"), this._popBuffer(), c;\n }, l.compileMacro = function(t, r) {\n var a = this._compileMacro(t), o = t.name.value;\n r.set(o, a), r.parent ? this._emitLine('frame.set(\"' + o + '\", ' + a + \");\") : (t.name.value.charAt(0) !== \"_\" && this._emitLine('context.addExport(\"' + o + '\");'), this._emitLine('context.setVariable(\"' + o + '\", ' + a + \");\"));\n }, l.compileCaller = function(t, r) {\n this._emit(\"(function (){\");\n var a = this._compileMacro(t, r);\n this._emit(\"return \" + a + \";})()\");\n }, l._compileGetTemplate = function(t, r, a, o) {\n var s = this._tmpid(), c = this._templateName(), u = this._makeCallback(s), k = a ? \"true\" : \"false\", T = o ? \"true\" : \"false\";\n return this._emit(\"env.getTemplate(\"), this._compileExpression(t.template, r), this._emitLine(\", \" + k + \", \" + c + \", \" + T + \", \" + u), s;\n }, l.compileImport = function(t, r) {\n var a = t.target.value, o = this._compileGetTemplate(t, r, !1, !1);\n this._addScopeLevel(), this._emitLine(o + \".getExported(\" + (t.withContext ? \"context.getVariables(), frame, \" : \"\") + this._makeCallback(o)), this._addScopeLevel(), r.set(a, o), r.parent ? this._emitLine('frame.set(\"' + a + '\", ' + o + \");\") : this._emitLine('context.setVariable(\"' + a + '\", ' + o + \");\");\n }, l.compileFromImport = function(t, r) {\n var a = this, o = this._compileGetTemplate(t, r, !1, !1);\n this._addScopeLevel(), this._emitLine(o + \".getExported(\" + (t.withContext ? \"context.getVariables(), frame, \" : \"\") + this._makeCallback(o)), this._addScopeLevel(), t.names.children.forEach(function(s) {\n var c, u, k = a._tmpid();\n s instanceof y.Pair ? (c = s.key.value, u = s.value.value) : (c = s.value, u = c), a._emitLine(\"if(Object.prototype.hasOwnProperty.call(\" + o + ', \"' + c + '\")) {'), a._emitLine(\"var \" + k + \" = \" + o + \".\" + c + \";\"), a._emitLine(\"} else {\"), a._emitLine(`cb(new Error(\"cannot import '` + c + `'\")); return;`), a._emitLine(\"}\"), r.set(u, k), r.parent ? a._emitLine('frame.set(\"' + u + '\", ' + k + \");\") : a._emitLine('context.setVariable(\"' + u + '\", ' + k + \");\");\n });\n }, l.compileBlock = function(t) {\n var r = this._tmpid();\n this.inBlock || this._emit('(parentTemplate ? function(e, c, f, r, cb) { cb(\"\"); } : '), this._emit('context.getBlock(\"' + t.name.value + '\")'), this.inBlock || this._emit(\")\"), this._emitLine(\"(env, context, frame, runtime, \" + this._makeCallback(r)), this._emitLine(this.buffer + \" += \" + r + \";\"), this._addScopeLevel();\n }, l.compileSuper = function(t, r) {\n var a = t.blockName.value, o = t.symbol.value, s = this._makeCallback(o);\n this._emitLine('context.getSuper(env, \"' + a + '\", b_' + a + \", frame, runtime, \" + s), this._emitLine(o + \" = runtime.markSafe(\" + o + \");\"), this._addScopeLevel(), r.set(o, o);\n }, l.compileExtends = function(t, r) {\n var a = this._tmpid(), o = this._compileGetTemplate(t, r, !0, !1);\n this._emitLine(\"parentTemplate = \" + o), this._emitLine(\"for(var \" + a + \" in parentTemplate.blocks) {\"), this._emitLine(\"context.addBlock(\" + a + \", parentTemplate.blocks[\" + a + \"]);\"), this._emitLine(\"}\"), this._addScopeLevel();\n }, l.compileInclude = function(t, r) {\n this._emitLine(\"var tasks = [];\"), this._emitLine(\"tasks.push(\"), this._emitLine(\"function(callback) {\");\n var a = this._compileGetTemplate(t, r, !1, t.ignoreMissing);\n this._emitLine(\"callback(null,\" + a + \");});\"), this._emitLine(\"});\");\n var o = this._tmpid();\n this._emitLine(\"tasks.push(\"), this._emitLine(\"function(template, callback){\"), this._emitLine(\"template.render(context.getVariables(), frame, \" + this._makeCallback(o)), this._emitLine(\"callback(null,\" + o + \");});\"), this._emitLine(\"});\"), this._emitLine(\"tasks.push(\"), this._emitLine(\"function(result, callback){\"), this._emitLine(this.buffer + \" += result;\"), this._emitLine(\"callback(null);\"), this._emitLine(\"});\"), this._emitLine(\"env.waterfall(tasks, function(){\"), this._addScopeLevel();\n }, l.compileTemplateData = function(t, r) {\n this.compileLiteral(t, r);\n }, l.compileCapture = function(t, r) {\n var a = this, o = this.buffer;\n this.buffer = \"output\", this._emitLine(\"(function() {\"), this._emitLine('var output = \"\";'), this._withScopedSyntax(function() {\n a.compile(t.body, r);\n }), this._emitLine(\"return output;\"), this._emitLine(\"})()\"), this.buffer = o;\n }, l.compileOutput = function(t, r) {\n var a = this, o = t.children;\n o.forEach(function(s) {\n s instanceof y.TemplateData ? s.value && (a._emit(a.buffer + \" += \"), a.compileLiteral(s, r), a._emitLine(\";\")) : (a._emit(a.buffer + \" += runtime.suppressValue(\"), a.throwOnUndefined && a._emit(\"runtime.ensureDefined(\"), a.compile(s, r), a.throwOnUndefined && a._emit(\",\" + t.lineno + \",\" + t.colno + \")\"), a._emit(`, env.opts.autoescape);\n`));\n });\n }, l.compileRoot = function(t, r) {\n var a = this;\n r && this.fail(\"compileRoot: root node can't have frame\"), r = new C(), this._emitFuncBegin(t, \"root\"), this._emitLine(\"var parentTemplate = null;\"), this._compileChildren(t, r), this._emitLine(\"if(parentTemplate) {\"), this._emitLine(\"parentTemplate.rootRenderFunc(env, context, frame, runtime, cb);\"), this._emitLine(\"} else {\"), this._emitLine(\"cb(null, \" + this.buffer + \");\"), this._emitLine(\"}\"), this._emitFuncEnd(!0), this.inBlock = !0;\n var o = [], s = t.findAll(y.Block);\n s.forEach(function(c, u) {\n var k = c.name.value;\n if (o.indexOf(k) !== -1)\n throw new Error('Block \"' + k + '\" defined more than once.');\n o.push(k), a._emitFuncBegin(c, \"b_\" + k);\n var T = new C();\n a._emitLine(\"var frame = frame.push(true);\"), a.compile(c.body, T), a._emitFuncEnd();\n }), this._emitLine(\"return {\"), s.forEach(function(c, u) {\n var k = \"b_\" + c.name.value;\n a._emitLine(k + \": \" + k + \",\");\n }), this._emitLine(`root: root\n};`);\n }, l.compile = function(t, r) {\n var a = this[\"compile\" + t.typename];\n a ? a.call(this, t, r) : this.fail(\"compile: Cannot compile node: \" + t.typename, t.lineno, t.colno);\n }, l.getCode = function() {\n return this.codebuf.join(\"\");\n }, p;\n })(L);\n U.exports = {\n compile: function(p, l, h, t, r) {\n r === void 0 && (r = {});\n var a = new n(t, r.throwOnUndefined), o = (h || []).map(function(c) {\n return c.preprocess;\n }).filter(function(c) {\n return !!c;\n }), s = o.reduce(function(c, u) {\n return u(c);\n }, p);\n return a.compile(E.transform(v.parse(s, h, r), l, t)), a.getCode();\n },\n Compiler: n\n };\n }),\n /* 6 */\n /***/\n (function(U, j, N) {\n function _(O, P) {\n O.prototype = Object.create(P.prototype), O.prototype.constructor = O, x(O, P);\n }\n function x(O, P) {\n return x = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(C, g) {\n return C.__proto__ = g, C;\n }, x(O, P);\n }\n var v = N(4), E = N(1), y = E.EmitterObj;\n U.exports = /* @__PURE__ */ (function(O) {\n _(P, O);\n function P() {\n return O.apply(this, arguments) || this;\n }\n var I = P.prototype;\n return I.resolve = function(g, L) {\n return v.resolve(v.dirname(g), L);\n }, I.isRelative = function(g) {\n return g.indexOf(\"./\") === 0 || g.indexOf(\"../\") === 0;\n }, P;\n })(y);\n }),\n /* 7 */\n /***/\n (function(U, j, N) {\n function _(T, b) {\n T.prototype = Object.create(b.prototype), T.prototype.constructor = T, x(T, b);\n }\n function x(T, b) {\n return x = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(R, d) {\n return R.__proto__ = d, R;\n }, x(T, b);\n }\n var v = N(12), E = N(15), y = N(0), O = N(5), P = N(18), I = N(10), C = I.FileSystemLoader, g = I.WebLoader, L = I.PrecompiledLoader, e = N(20), n = N(21), i = N(1), p = i.Obj, l = i.EmitterObj, h = N(2), t = h.handleError, r = h.Frame, a = N(22);\n function o(T, b, A) {\n v(function() {\n T(b, A);\n });\n }\n var s = {\n type: \"code\",\n obj: {\n root: function(b, A, R, d, f) {\n try {\n f(null, \"\");\n } catch (w) {\n f(t(w, null, null));\n }\n }\n }\n }, c = /* @__PURE__ */ (function(T) {\n _(b, T);\n function b() {\n return T.apply(this, arguments) || this;\n }\n var A = b.prototype;\n return A.init = function(d, f) {\n var w = this;\n f = this.opts = f || {}, this.opts.dev = !!f.dev, this.opts.autoescape = f.autoescape != null ? f.autoescape : !0, this.opts.throwOnUndefined = !!f.throwOnUndefined, this.opts.trimBlocks = !!f.trimBlocks, this.opts.lstripBlocks = !!f.lstripBlocks, this.loaders = [], d ? this.loaders = y.isArray(d) ? d : [d] : C ? this.loaders = [new C(\"views\")] : g && (this.loaders = [new g(\"/views\")]), typeof window < \"u\" && window.nunjucksPrecompiled && this.loaders.unshift(new L(window.nunjucksPrecompiled)), this._initLoaders(), this.globals = n(), this.filters = {}, this.tests = {}, this.asyncFilters = [], this.extensions = {}, this.extensionsList = [], y._entries(P).forEach(function(F) {\n var B = F[0], V = F[1];\n return w.addFilter(B, V);\n }), y._entries(e).forEach(function(F) {\n var B = F[0], V = F[1];\n return w.addTest(B, V);\n });\n }, A._initLoaders = function() {\n var d = this;\n this.loaders.forEach(function(f) {\n f.cache = {}, typeof f.on == \"function\" && (f.on(\"update\", function(w, F) {\n f.cache[w] = null, d.emit(\"update\", w, F, f);\n }), f.on(\"load\", function(w, F) {\n d.emit(\"load\", w, F, f);\n }));\n });\n }, A.invalidateCache = function() {\n this.loaders.forEach(function(d) {\n d.cache = {};\n });\n }, A.addExtension = function(d, f) {\n return f.__name = d, this.extensions[d] = f, this.extensionsList.push(f), this;\n }, A.removeExtension = function(d) {\n var f = this.getExtension(d);\n f && (this.extensionsList = y.without(this.extensionsList, f), delete this.extensions[d]);\n }, A.getExtension = function(d) {\n return this.extensions[d];\n }, A.hasExtension = function(d) {\n return !!this.extensions[d];\n }, A.addGlobal = function(d, f) {\n return this.globals[d] = f, this;\n }, A.getGlobal = function(d) {\n if (typeof this.globals[d] > \"u\")\n throw new Error(\"global not found: \" + d);\n return this.globals[d];\n }, A.addFilter = function(d, f, w) {\n var F = f;\n return w && this.asyncFilters.push(d), this.filters[d] = F, this;\n }, A.getFilter = function(d) {\n if (!this.filters[d])\n throw new Error(\"filter not found: \" + d);\n return this.filters[d];\n }, A.addTest = function(d, f) {\n return this.tests[d] = f, this;\n }, A.getTest = function(d) {\n if (!this.tests[d])\n throw new Error(\"test not found: \" + d);\n return this.tests[d];\n }, A.resolveTemplate = function(d, f, w) {\n var F = d.isRelative && f ? d.isRelative(w) : !1;\n return F && d.resolve ? d.resolve(f, w) : w;\n }, A.getTemplate = function(d, f, w, F, B) {\n var V = this, Z = this, $ = null;\n if (d && d.raw && (d = d.raw), y.isFunction(w) && (B = w, w = null, f = f || !1), y.isFunction(f) && (B = f, f = !1), d instanceof k)\n $ = d;\n else {\n if (typeof d != \"string\")\n throw new Error(\"template names must be a string: \" + d);\n for (var se = 0; se < this.loaders.length; se++) {\n var ue = this.loaders[se];\n if ($ = ue.cache[this.resolveTemplate(ue, w, d)], $)\n break;\n }\n }\n if ($)\n if (f && $.compile(), B) {\n B(null, $);\n return;\n } else\n return $;\n var X, Q = function(W, G) {\n if (!G && !W && !F && (W = new Error(\"template not found: \" + d)), W)\n if (B) {\n B(W);\n return;\n } else\n throw W;\n var te;\n G ? (te = new k(G.src, V, G.path, f), G.noCache || (G.loader.cache[d] = te)) : te = new k(s, V, \"\", f), B ? B(null, te) : X = te;\n };\n return y.asyncIter(this.loaders, function(D, W, G, te) {\n function ce(le, me) {\n le ? te(le) : me ? (me.loader = D, te(null, me)) : G();\n }\n d = Z.resolveTemplate(D, w, d), D.async ? D.getSource(d, ce) : ce(null, D.getSource(d));\n }, Q), X;\n }, A.express = function(d) {\n return a(this, d);\n }, A.render = function(d, f, w) {\n y.isFunction(f) && (w = f, f = null);\n var F = null;\n return this.getTemplate(d, function(B, V) {\n if (B && w)\n o(w, B);\n else {\n if (B)\n throw B;\n F = V.render(f, w);\n }\n }), F;\n }, A.renderString = function(d, f, w, F) {\n y.isFunction(w) && (F = w, w = {}), w = w || {};\n var B = new k(d, this, w.path);\n return B.render(f, F);\n }, A.waterfall = function(d, f, w) {\n return E(d, f, w);\n }, b;\n })(l), u = /* @__PURE__ */ (function(T) {\n _(b, T);\n function b() {\n return T.apply(this, arguments) || this;\n }\n var A = b.prototype;\n return A.init = function(d, f, w) {\n var F = this;\n this.env = w || new c(), this.ctx = y.extend({}, d), this.blocks = {}, this.exported = [], y.keys(f).forEach(function(B) {\n F.addBlock(B, f[B]);\n });\n }, A.lookup = function(d) {\n return d in this.env.globals && !(d in this.ctx) ? this.env.globals[d] : this.ctx[d];\n }, A.setVariable = function(d, f) {\n this.ctx[d] = f;\n }, A.getVariables = function() {\n return this.ctx;\n }, A.addBlock = function(d, f) {\n return this.blocks[d] = this.blocks[d] || [], this.blocks[d].push(f), this;\n }, A.getBlock = function(d) {\n if (!this.blocks[d])\n throw new Error('unknown block \"' + d + '\"');\n return this.blocks[d][0];\n }, A.getSuper = function(d, f, w, F, B, V) {\n var Z = y.indexOf(this.blocks[f] || [], w), $ = this.blocks[f][Z + 1], se = this;\n if (Z === -1 || !$)\n throw new Error('no super block available for \"' + f + '\"');\n $(d, se, F, B, V);\n }, A.addExport = function(d) {\n this.exported.push(d);\n }, A.getExported = function() {\n var d = this, f = {};\n return this.exported.forEach(function(w) {\n f[w] = d.ctx[w];\n }), f;\n }, b;\n })(p), k = /* @__PURE__ */ (function(T) {\n _(b, T);\n function b() {\n return T.apply(this, arguments) || this;\n }\n var A = b.prototype;\n return A.init = function(d, f, w, F) {\n if (this.env = f || new c(), y.isObject(d))\n switch (d.type) {\n case \"code\":\n this.tmplProps = d.obj;\n break;\n case \"string\":\n this.tmplStr = d.obj;\n break;\n default:\n throw new Error(\"Unexpected template object type \" + d.type + \"; expected 'code', or 'string'\");\n }\n else if (y.isString(d))\n this.tmplStr = d;\n else\n throw new Error(\"src must be a string or an object describing the source\");\n if (this.path = w, F)\n try {\n this._compile();\n } catch (B) {\n throw y._prettifyError(this.path, this.env.opts.dev, B);\n }\n else\n this.compiled = !1;\n }, A.render = function(d, f, w) {\n var F = this;\n typeof d == \"function\" ? (w = d, d = {}) : typeof f == \"function\" && (w = f, f = null);\n var B = !f;\n try {\n this.compile();\n } catch (X) {\n var V = y._prettifyError(this.path, this.env.opts.dev, X);\n if (w)\n return o(w, V);\n throw V;\n }\n var Z = new u(d || {}, this.blocks, this.env), $ = f ? f.push(!0) : new r();\n $.topLevel = !0;\n var se = null, ue = !1;\n return this.rootRenderFunc(this.env, Z, $, h, function(X, Q) {\n if (!(ue && w && typeof Q < \"u\"))\n if (X && (X = y._prettifyError(F.path, F.env.opts.dev, X), ue = !0), w)\n B ? o(w, X, Q) : w(X, Q);\n else {\n if (X)\n throw X;\n se = Q;\n }\n }), se;\n }, A.getExported = function(d, f, w) {\n typeof d == \"function\" && (w = d, d = {}), typeof f == \"function\" && (w = f, f = null);\n try {\n this.compile();\n } catch (V) {\n if (w)\n return w(V);\n throw V;\n }\n var F = f ? f.push() : new r();\n F.topLevel = !0;\n var B = new u(d || {}, this.blocks, this.env);\n this.rootRenderFunc(this.env, B, F, h, function(V) {\n V ? w(V, null) : w(null, B.getExported());\n });\n }, A.compile = function() {\n this.compiled || this._compile();\n }, A._compile = function() {\n var d;\n if (this.tmplProps)\n d = this.tmplProps;\n else {\n var f = O.compile(this.tmplStr, this.env.asyncFilters, this.env.extensionsList, this.path, this.env.opts), w = new Function(f);\n d = w();\n }\n this.blocks = this._getBlocks(d), this.rootRenderFunc = d.root, this.compiled = !0;\n }, A._getBlocks = function(d) {\n var f = {};\n return y.keys(d).forEach(function(w) {\n w.slice(0, 2) === \"b_\" && (f[w.slice(2)] = d[w]);\n }), f;\n }, b;\n })(p);\n U.exports = {\n Environment: c,\n Template: k\n };\n }),\n /* 8 */\n /***/\n (function(U, j, N) {\n function _(I, C) {\n I.prototype = Object.create(C.prototype), I.prototype.constructor = I, x(I, C);\n }\n function x(I, C) {\n return x = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(L, e) {\n return L.__proto__ = e, L;\n }, x(I, C);\n }\n var v = N(9), E = N(3), y = N(1).Obj, O = N(0), P = /* @__PURE__ */ (function(I) {\n _(C, I);\n function C() {\n return I.apply(this, arguments) || this;\n }\n var g = C.prototype;\n return g.init = function(e) {\n this.tokens = e, this.peeked = null, this.breakOnBlocks = null, this.dropLeadingWhitespace = !1, this.extensions = [];\n }, g.nextToken = function(e) {\n var n;\n if (this.peeked)\n if (!e && this.peeked.type === v.TOKEN_WHITESPACE)\n this.peeked = null;\n else\n return n = this.peeked, this.peeked = null, n;\n if (n = this.tokens.nextToken(), !e)\n for (; n && n.type === v.TOKEN_WHITESPACE; )\n n = this.tokens.nextToken();\n return n;\n }, g.peekToken = function() {\n return this.peeked = this.peeked || this.nextToken(), this.peeked;\n }, g.pushToken = function(e) {\n if (this.peeked)\n throw new Error(\"pushToken: can only push one token on between reads\");\n this.peeked = e;\n }, g.error = function(e, n, i) {\n if (n === void 0 || i === void 0) {\n var p = this.peekToken() || {};\n n = p.lineno, i = p.colno;\n }\n return n !== void 0 && (n += 1), i !== void 0 && (i += 1), new O.TemplateError(e, n, i);\n }, g.fail = function(e, n, i) {\n throw this.error(e, n, i);\n }, g.skip = function(e) {\n var n = this.nextToken();\n return !n || n.type !== e ? (this.pushToken(n), !1) : !0;\n }, g.expect = function(e) {\n var n = this.nextToken();\n return n.type !== e && this.fail(\"expected \" + e + \", got \" + n.type, n.lineno, n.colno), n;\n }, g.skipValue = function(e, n) {\n var i = this.nextToken();\n return !i || i.type !== e || i.value !== n ? (this.pushToken(i), !1) : !0;\n }, g.skipSymbol = function(e) {\n return this.skipValue(v.TOKEN_SYMBOL, e);\n }, g.advanceAfterBlockEnd = function(e) {\n var n;\n return e || (n = this.peekToken(), n || this.fail(\"unexpected end of file\"), n.type !== v.TOKEN_SYMBOL && this.fail(\"advanceAfterBlockEnd: expected symbol token or explicit name to be passed\"), e = this.nextToken().value), n = this.nextToken(), n && n.type === v.TOKEN_BLOCK_END ? n.value.charAt(0) === \"-\" && (this.dropLeadingWhitespace = !0) : this.fail(\"expected block end in \" + e + \" statement\"), n;\n }, g.advanceAfterVariableEnd = function() {\n var e = this.nextToken();\n e && e.type === v.TOKEN_VARIABLE_END ? this.dropLeadingWhitespace = e.value.charAt(e.value.length - this.tokens.tags.VARIABLE_END.length - 1) === \"-\" : (this.pushToken(e), this.fail(\"expected variable end\"));\n }, g.parseFor = function() {\n var e = this.peekToken(), n, i;\n this.skipSymbol(\"for\") ? (n = new E.For(e.lineno, e.colno), i = \"endfor\") : this.skipSymbol(\"asyncEach\") ? (n = new E.AsyncEach(e.lineno, e.colno), i = \"endeach\") : this.skipSymbol(\"asyncAll\") ? (n = new E.AsyncAll(e.lineno, e.colno), i = \"endall\") : this.fail(\"parseFor: expected for{Async}\", e.lineno, e.colno), n.name = this.parsePrimary(), n.name instanceof E.Symbol || this.fail(\"parseFor: variable name expected for loop\");\n var p = this.peekToken().type;\n if (p === v.TOKEN_COMMA) {\n var l = n.name;\n for (n.name = new E.Array(l.lineno, l.colno), n.name.addChild(l); this.skip(v.TOKEN_COMMA); ) {\n var h = this.parsePrimary();\n n.name.addChild(h);\n }\n }\n return this.skipSymbol(\"in\") || this.fail('parseFor: expected \"in\" keyword for loop', e.lineno, e.colno), n.arr = this.parseExpression(), this.advanceAfterBlockEnd(e.value), n.body = this.parseUntilBlocks(i, \"else\"), this.skipSymbol(\"else\") && (this.advanceAfterBlockEnd(\"else\"), n.else_ = this.parseUntilBlocks(i)), this.advanceAfterBlockEnd(), n;\n }, g.parseMacro = function() {\n var e = this.peekToken();\n this.skipSymbol(\"macro\") || this.fail(\"expected macro\");\n var n = this.parsePrimary(!0), i = this.parseSignature(), p = new E.Macro(e.lineno, e.colno, n, i);\n return this.advanceAfterBlockEnd(e.value), p.body = this.parseUntilBlocks(\"endmacro\"), this.advanceAfterBlockEnd(), p;\n }, g.parseCall = function() {\n var e = this.peekToken();\n this.skipSymbol(\"call\") || this.fail(\"expected call\");\n var n = this.parseSignature(!0) || new E.NodeList(), i = this.parsePrimary();\n this.advanceAfterBlockEnd(e.value);\n var p = this.parseUntilBlocks(\"endcall\");\n this.advanceAfterBlockEnd();\n var l = new E.Symbol(e.lineno, e.colno, \"caller\"), h = new E.Caller(e.lineno, e.colno, l, n, p), t = i.args.children;\n t[t.length - 1] instanceof E.KeywordArgs || t.push(new E.KeywordArgs());\n var r = t[t.length - 1];\n return r.addChild(new E.Pair(e.lineno, e.colno, l, h)), new E.Output(e.lineno, e.colno, [i]);\n }, g.parseWithContext = function() {\n var e = this.peekToken(), n = null;\n return this.skipSymbol(\"with\") ? n = !0 : this.skipSymbol(\"without\") && (n = !1), n !== null && (this.skipSymbol(\"context\") || this.fail(\"parseFrom: expected context after with/without\", e.lineno, e.colno)), n;\n }, g.parseImport = function() {\n var e = this.peekToken();\n this.skipSymbol(\"import\") || this.fail(\"parseImport: expected import\", e.lineno, e.colno);\n var n = this.parseExpression();\n this.skipSymbol(\"as\") || this.fail('parseImport: expected \"as\" keyword', e.lineno, e.colno);\n var i = this.parseExpression(), p = this.parseWithContext(), l = new E.Import(e.lineno, e.colno, n, i, p);\n return this.advanceAfterBlockEnd(e.value), l;\n }, g.parseFrom = function() {\n var e = this.peekToken();\n this.skipSymbol(\"from\") || this.fail(\"parseFrom: expected from\");\n var n = this.parseExpression();\n this.skipSymbol(\"import\") || this.fail(\"parseFrom: expected import\", e.lineno, e.colno);\n for (var i = new E.NodeList(), p; ; ) {\n var l = this.peekToken();\n if (l.type === v.TOKEN_BLOCK_END) {\n i.children.length || this.fail(\"parseFrom: Expected at least one import name\", e.lineno, e.colno), l.value.charAt(0) === \"-\" && (this.dropLeadingWhitespace = !0), this.nextToken();\n break;\n }\n i.children.length > 0 && !this.skip(v.TOKEN_COMMA) && this.fail(\"parseFrom: expected comma\", e.lineno, e.colno);\n var h = this.parsePrimary();\n if (h.value.charAt(0) === \"_\" && this.fail(\"parseFrom: names starting with an underscore cannot be imported\", h.lineno, h.colno), this.skipSymbol(\"as\")) {\n var t = this.parsePrimary();\n i.addChild(new E.Pair(h.lineno, h.colno, h, t));\n } else\n i.addChild(h);\n p = this.parseWithContext();\n }\n return new E.FromImport(e.lineno, e.colno, n, i, p);\n }, g.parseBlock = function() {\n var e = this.peekToken();\n this.skipSymbol(\"block\") || this.fail(\"parseBlock: expected block\", e.lineno, e.colno);\n var n = new E.Block(e.lineno, e.colno);\n n.name = this.parsePrimary(), n.name instanceof E.Symbol || this.fail(\"parseBlock: variable name expected\", e.lineno, e.colno), this.advanceAfterBlockEnd(e.value), n.body = this.parseUntilBlocks(\"endblock\"), this.skipSymbol(\"endblock\"), this.skipSymbol(n.name.value);\n var i = this.peekToken();\n return i || this.fail(\"parseBlock: expected endblock, got end of file\"), this.advanceAfterBlockEnd(i.value), n;\n }, g.parseExtends = function() {\n var e = \"extends\", n = this.peekToken();\n this.skipSymbol(e) || this.fail(\"parseTemplateRef: expected \" + e);\n var i = new E.Extends(n.lineno, n.colno);\n return i.template = this.parseExpression(), this.advanceAfterBlockEnd(n.value), i;\n }, g.parseInclude = function() {\n var e = \"include\", n = this.peekToken();\n this.skipSymbol(e) || this.fail(\"parseInclude: expected \" + e);\n var i = new E.Include(n.lineno, n.colno);\n return i.template = this.parseExpression(), this.skipSymbol(\"ignore\") && this.skipSymbol(\"missing\") && (i.ignoreMissing = !0), this.advanceAfterBlockEnd(n.value), i;\n }, g.parseIf = function() {\n var e = this.peekToken(), n;\n this.skipSymbol(\"if\") || this.skipSymbol(\"elif\") || this.skipSymbol(\"elseif\") ? n = new E.If(e.lineno, e.colno) : this.skipSymbol(\"ifAsync\") ? n = new E.IfAsync(e.lineno, e.colno) : this.fail(\"parseIf: expected if, elif, or elseif\", e.lineno, e.colno), n.cond = this.parseExpression(), this.advanceAfterBlockEnd(e.value), n.body = this.parseUntilBlocks(\"elif\", \"elseif\", \"else\", \"endif\");\n var i = this.peekToken();\n switch (i && i.value) {\n case \"elseif\":\n case \"elif\":\n n.else_ = this.parseIf();\n break;\n case \"else\":\n this.advanceAfterBlockEnd(), n.else_ = this.parseUntilBlocks(\"endif\"), this.advanceAfterBlockEnd();\n break;\n case \"endif\":\n n.else_ = null, this.advanceAfterBlockEnd();\n break;\n default:\n this.fail(\"parseIf: expected elif, else, or endif, got end of file\");\n }\n return n;\n }, g.parseSet = function() {\n var e = this.peekToken();\n this.skipSymbol(\"set\") || this.fail(\"parseSet: expected set\", e.lineno, e.colno);\n for (var n = new E.Set(e.lineno, e.colno, []), i; (i = this.parsePrimary()) && (n.targets.push(i), !!this.skip(v.TOKEN_COMMA)); )\n ;\n return this.skipValue(v.TOKEN_OPERATOR, \"=\") ? (n.value = this.parseExpression(), this.advanceAfterBlockEnd(e.value)) : this.skip(v.TOKEN_BLOCK_END) ? (n.body = new E.Capture(e.lineno, e.colno, this.parseUntilBlocks(\"endset\")), n.value = null, this.advanceAfterBlockEnd()) : this.fail(\"parseSet: expected = or block end in set tag\", e.lineno, e.colno), n;\n }, g.parseSwitch = function() {\n var e = \"switch\", n = \"endswitch\", i = \"case\", p = \"default\", l = this.peekToken();\n !this.skipSymbol(e) && !this.skipSymbol(i) && !this.skipSymbol(p) && this.fail('parseSwitch: expected \"switch,\" \"case\" or \"default\"', l.lineno, l.colno);\n var h = this.parseExpression();\n this.advanceAfterBlockEnd(e), this.parseUntilBlocks(i, p, n);\n var t = this.peekToken(), r = [], a;\n do {\n this.skipSymbol(i);\n var o = this.parseExpression();\n this.advanceAfterBlockEnd(e);\n var s = this.parseUntilBlocks(i, p, n);\n r.push(new E.Case(t.line, t.col, o, s)), t = this.peekToken();\n } while (t && t.value === i);\n switch (t.value) {\n case p:\n this.advanceAfterBlockEnd(), a = this.parseUntilBlocks(n), this.advanceAfterBlockEnd();\n break;\n case n:\n this.advanceAfterBlockEnd();\n break;\n default:\n this.fail('parseSwitch: expected \"case,\" \"default\" or \"endswitch,\" got EOF.');\n }\n return new E.Switch(l.lineno, l.colno, h, r, a);\n }, g.parseStatement = function() {\n var e = this.peekToken(), n;\n if (e.type !== v.TOKEN_SYMBOL && this.fail(\"tag name expected\", e.lineno, e.colno), this.breakOnBlocks && O.indexOf(this.breakOnBlocks, e.value) !== -1)\n return null;\n switch (e.value) {\n case \"raw\":\n return this.parseRaw();\n case \"verbatim\":\n return this.parseRaw(\"verbatim\");\n case \"if\":\n case \"ifAsync\":\n return this.parseIf();\n case \"for\":\n case \"asyncEach\":\n case \"asyncAll\":\n return this.parseFor();\n case \"block\":\n return this.parseBlock();\n case \"extends\":\n return this.parseExtends();\n case \"include\":\n return this.parseInclude();\n case \"set\":\n return this.parseSet();\n case \"macro\":\n return this.parseMacro();\n case \"call\":\n return this.parseCall();\n case \"import\":\n return this.parseImport();\n case \"from\":\n return this.parseFrom();\n case \"filter\":\n return this.parseFilterStatement();\n case \"switch\":\n return this.parseSwitch();\n default:\n if (this.extensions.length)\n for (var i = 0; i < this.extensions.length; i++) {\n var p = this.extensions[i];\n if (O.indexOf(p.tags || [], e.value) !== -1)\n return p.parse(this, E, v);\n }\n this.fail(\"unknown block tag: \" + e.value, e.lineno, e.colno);\n }\n return n;\n }, g.parseRaw = function(e) {\n e = e || \"raw\";\n for (var n = \"end\" + e, i = new RegExp(\"([\\\\s\\\\S]*?){%\\\\s*(\" + e + \"|\" + n + \")\\\\s*(?=%})%}\"), p = 1, l = \"\", h = null, t = this.advanceAfterBlockEnd(); (h = this.tokens._extractRegex(i)) && p > 0; ) {\n var r = h[0], a = h[1], o = h[2];\n o === e ? p += 1 : o === n && (p -= 1), p === 0 ? (l += a, this.tokens.backN(r.length - a.length)) : l += r;\n }\n return new E.Output(t.lineno, t.colno, [new E.TemplateData(t.lineno, t.colno, l)]);\n }, g.parsePostfix = function(e) {\n for (var n, i = this.peekToken(); i; ) {\n if (i.type === v.TOKEN_LEFT_PAREN)\n e = new E.FunCall(i.lineno, i.colno, e, this.parseSignature());\n else if (i.type === v.TOKEN_LEFT_BRACKET)\n n = this.parseAggregate(), n.children.length > 1 && this.fail(\"invalid index\"), e = new E.LookupVal(i.lineno, i.colno, e, n.children[0]);\n else if (i.type === v.TOKEN_OPERATOR && i.value === \".\") {\n this.nextToken();\n var p = this.nextToken();\n p.type !== v.TOKEN_SYMBOL && this.fail(\"expected name as lookup value, got \" + p.value, p.lineno, p.colno), n = new E.Literal(p.lineno, p.colno, p.value), e = new E.LookupVal(i.lineno, i.colno, e, n);\n } else\n break;\n i = this.peekToken();\n }\n return e;\n }, g.parseExpression = function() {\n var e = this.parseInlineIf();\n return e;\n }, g.parseInlineIf = function() {\n var e = this.parseOr();\n if (this.skipSymbol(\"if\")) {\n var n = this.parseOr(), i = e;\n e = new E.InlineIf(e.lineno, e.colno), e.body = i, e.cond = n, this.skipSymbol(\"else\") ? e.else_ = this.parseOr() : e.else_ = null;\n }\n return e;\n }, g.parseOr = function() {\n for (var e = this.parseAnd(); this.skipSymbol(\"or\"); ) {\n var n = this.parseAnd();\n e = new E.Or(e.lineno, e.colno, e, n);\n }\n return e;\n }, g.parseAnd = function() {\n for (var e = this.parseNot(); this.skipSymbol(\"and\"); ) {\n var n = this.parseNot();\n e = new E.And(e.lineno, e.colno, e, n);\n }\n return e;\n }, g.parseNot = function() {\n var e = this.peekToken();\n return this.skipSymbol(\"not\") ? new E.Not(e.lineno, e.colno, this.parseNot()) : this.parseIn();\n }, g.parseIn = function() {\n for (var e = this.parseIs(); ; ) {\n var n = this.nextToken();\n if (!n)\n break;\n var i = n.type === v.TOKEN_SYMBOL && n.value === \"not\";\n if (i || this.pushToken(n), this.skipSymbol(\"in\")) {\n var p = this.parseIs();\n e = new E.In(e.lineno, e.colno, e, p), i && (e = new E.Not(e.lineno, e.colno, e));\n } else {\n i && this.pushToken(n);\n break;\n }\n }\n return e;\n }, g.parseIs = function() {\n var e = this.parseCompare();\n if (this.skipSymbol(\"is\")) {\n var n = this.skipSymbol(\"not\"), i = this.parseCompare();\n e = new E.Is(e.lineno, e.colno, e, i), n && (e = new E.Not(e.lineno, e.colno, e));\n }\n return e;\n }, g.parseCompare = function() {\n for (var e = [\"==\", \"===\", \"!=\", \"!==\", \"<\", \">\", \"<=\", \">=\"], n = this.parseConcat(), i = []; ; ) {\n var p = this.nextToken();\n if (p)\n if (e.indexOf(p.value) !== -1)\n i.push(new E.CompareOperand(p.lineno, p.colno, this.parseConcat(), p.value));\n else {\n this.pushToken(p);\n break;\n }\n else break;\n }\n return i.length ? new E.Compare(i[0].lineno, i[0].colno, n, i) : n;\n }, g.parseConcat = function() {\n for (var e = this.parseAdd(); this.skipValue(v.TOKEN_TILDE, \"~\"); ) {\n var n = this.parseAdd();\n e = new E.Concat(e.lineno, e.colno, e, n);\n }\n return e;\n }, g.parseAdd = function() {\n for (var e = this.parseSub(); this.skipValue(v.TOKEN_OPERATOR, \"+\"); ) {\n var n = this.parseSub();\n e = new E.Add(e.lineno, e.colno, e, n);\n }\n return e;\n }, g.parseSub = function() {\n for (var e = this.parseMul(); this.skipValue(v.TOKEN_OPERATOR, \"-\"); ) {\n var n = this.parseMul();\n e = new E.Sub(e.lineno, e.colno, e, n);\n }\n return e;\n }, g.parseMul = function() {\n for (var e = this.parseDiv(); this.skipValue(v.TOKEN_OPERATOR, \"*\"); ) {\n var n = this.parseDiv();\n e = new E.Mul(e.lineno, e.colno, e, n);\n }\n return e;\n }, g.parseDiv = function() {\n for (var e = this.parseFloorDiv(); this.skipValue(v.TOKEN_OPERATOR, \"/\"); ) {\n var n = this.parseFloorDiv();\n e = new E.Div(e.lineno, e.colno, e, n);\n }\n return e;\n }, g.parseFloorDiv = function() {\n for (var e = this.parseMod(); this.skipValue(v.TOKEN_OPERATOR, \"//\"); ) {\n var n = this.parseMod();\n e = new E.FloorDiv(e.lineno, e.colno, e, n);\n }\n return e;\n }, g.parseMod = function() {\n for (var e = this.parsePow(); this.skipValue(v.TOKEN_OPERATOR, \"%\"); ) {\n var n = this.parsePow();\n e = new E.Mod(e.lineno, e.colno, e, n);\n }\n return e;\n }, g.parsePow = function() {\n for (var e = this.parseUnary(); this.skipValue(v.TOKEN_OPERATOR, \"**\"); ) {\n var n = this.parseUnary();\n e = new E.Pow(e.lineno, e.colno, e, n);\n }\n return e;\n }, g.parseUnary = function(e) {\n var n = this.peekToken(), i;\n return this.skipValue(v.TOKEN_OPERATOR, \"-\") ? i = new E.Neg(n.lineno, n.colno, this.parseUnary(!0)) : this.skipValue(v.TOKEN_OPERATOR, \"+\") ? i = new E.Pos(n.lineno, n.colno, this.parseUnary(!0)) : i = this.parsePrimary(), e || (i = this.parseFilter(i)), i;\n }, g.parsePrimary = function(e) {\n var n = this.nextToken(), i, p = null;\n if (n ? n.type === v.TOKEN_STRING ? i = n.value : n.type === v.TOKEN_INT ? i = parseInt(n.value, 10) : n.type === v.TOKEN_FLOAT ? i = parseFloat(n.value) : n.type === v.TOKEN_BOOLEAN ? n.value === \"true\" ? i = !0 : n.value === \"false\" ? i = !1 : this.fail(\"invalid boolean: \" + n.value, n.lineno, n.colno) : n.type === v.TOKEN_NONE ? i = null : n.type === v.TOKEN_REGEX && (i = new RegExp(n.value.body, n.value.flags)) : this.fail(\"expected expression, got end of file\"), i !== void 0 ? p = new E.Literal(n.lineno, n.colno, i) : n.type === v.TOKEN_SYMBOL ? p = new E.Symbol(n.lineno, n.colno, n.value) : (this.pushToken(n), p = this.parseAggregate()), e || (p = this.parsePostfix(p)), p)\n return p;\n throw this.error(\"unexpected token: \" + n.value, n.lineno, n.colno);\n }, g.parseFilterName = function() {\n for (var e = this.expect(v.TOKEN_SYMBOL), n = e.value; this.skipValue(v.TOKEN_OPERATOR, \".\"); )\n n += \".\" + this.expect(v.TOKEN_SYMBOL).value;\n return new E.Symbol(e.lineno, e.colno, n);\n }, g.parseFilterArgs = function(e) {\n if (this.peekToken().type === v.TOKEN_LEFT_PAREN) {\n var n = this.parsePostfix(e);\n return n.args.children;\n }\n return [];\n }, g.parseFilter = function(e) {\n for (; this.skip(v.TOKEN_PIPE); ) {\n var n = this.parseFilterName();\n e = new E.Filter(n.lineno, n.colno, n, new E.NodeList(n.lineno, n.colno, [e].concat(this.parseFilterArgs(e))));\n }\n return e;\n }, g.parseFilterStatement = function() {\n var e = this.peekToken();\n this.skipSymbol(\"filter\") || this.fail(\"parseFilterStatement: expected filter\");\n var n = this.parseFilterName(), i = this.parseFilterArgs(n);\n this.advanceAfterBlockEnd(e.value);\n var p = new E.Capture(n.lineno, n.colno, this.parseUntilBlocks(\"endfilter\"));\n this.advanceAfterBlockEnd();\n var l = new E.Filter(n.lineno, n.colno, n, new E.NodeList(n.lineno, n.colno, [p].concat(i)));\n return new E.Output(n.lineno, n.colno, [l]);\n }, g.parseAggregate = function() {\n var e = this.nextToken(), n;\n switch (e.type) {\n case v.TOKEN_LEFT_PAREN:\n n = new E.Group(e.lineno, e.colno);\n break;\n case v.TOKEN_LEFT_BRACKET:\n n = new E.Array(e.lineno, e.colno);\n break;\n case v.TOKEN_LEFT_CURLY:\n n = new E.Dict(e.lineno, e.colno);\n break;\n default:\n return null;\n }\n for (; ; ) {\n var i = this.peekToken().type;\n if (i === v.TOKEN_RIGHT_PAREN || i === v.TOKEN_RIGHT_BRACKET || i === v.TOKEN_RIGHT_CURLY) {\n this.nextToken();\n break;\n }\n if (n.children.length > 0 && (this.skip(v.TOKEN_COMMA) || this.fail(\"parseAggregate: expected comma after expression\", e.lineno, e.colno)), n instanceof E.Dict) {\n var p = this.parsePrimary();\n this.skip(v.TOKEN_COLON) || this.fail(\"parseAggregate: expected colon after dict key\", e.lineno, e.colno);\n var l = this.parseExpression();\n n.addChild(new E.Pair(p.lineno, p.colno, p, l));\n } else {\n var h = this.parseExpression();\n n.addChild(h);\n }\n }\n return n;\n }, g.parseSignature = function(e, n) {\n var i = this.peekToken();\n if (!n && i.type !== v.TOKEN_LEFT_PAREN) {\n if (e)\n return null;\n this.fail(\"expected arguments\", i.lineno, i.colno);\n }\n i.type === v.TOKEN_LEFT_PAREN && (i = this.nextToken());\n for (var p = new E.NodeList(i.lineno, i.colno), l = new E.KeywordArgs(i.lineno, i.colno), h = !1; ; ) {\n if (i = this.peekToken(), !n && i.type === v.TOKEN_RIGHT_PAREN) {\n this.nextToken();\n break;\n } else if (n && i.type === v.TOKEN_BLOCK_END)\n break;\n if (h && !this.skip(v.TOKEN_COMMA))\n this.fail(\"parseSignature: expected comma after expression\", i.lineno, i.colno);\n else {\n var t = this.parseExpression();\n this.skipValue(v.TOKEN_OPERATOR, \"=\") ? l.addChild(new E.Pair(t.lineno, t.colno, t, this.parseExpression())) : p.addChild(t);\n }\n h = !0;\n }\n return l.children.length && p.addChild(l), p;\n }, g.parseUntilBlocks = function() {\n for (var e = this.breakOnBlocks, n = arguments.length, i = new Array(n), p = 0; p < n; p++)\n i[p] = arguments[p];\n this.breakOnBlocks = i;\n var l = this.parse();\n return this.breakOnBlocks = e, l;\n }, g.parseNodes = function() {\n for (var e, n = []; e = this.nextToken(); )\n if (e.type === v.TOKEN_DATA) {\n var i = e.value, p = this.peekToken(), l = p && p.value;\n this.dropLeadingWhitespace && (i = i.replace(/^\\s*/, \"\"), this.dropLeadingWhitespace = !1), p && (p.type === v.TOKEN_BLOCK_START && l.charAt(l.length - 1) === \"-\" || p.type === v.TOKEN_VARIABLE_START && l.charAt(this.tokens.tags.VARIABLE_START.length) === \"-\" || p.type === v.TOKEN_COMMENT && l.charAt(this.tokens.tags.COMMENT_START.length) === \"-\") && (i = i.replace(/\\s*$/, \"\")), n.push(new E.Output(e.lineno, e.colno, [new E.TemplateData(e.lineno, e.colno, i)]));\n } else if (e.type === v.TOKEN_BLOCK_START) {\n this.dropLeadingWhitespace = !1;\n var h = this.parseStatement();\n if (!h)\n break;\n n.push(h);\n } else if (e.type === v.TOKEN_VARIABLE_START) {\n var t = this.parseExpression();\n this.dropLeadingWhitespace = !1, this.advanceAfterVariableEnd(), n.push(new E.Output(e.lineno, e.colno, [t]));\n } else e.type === v.TOKEN_COMMENT ? this.dropLeadingWhitespace = e.value.charAt(e.value.length - this.tokens.tags.COMMENT_END.length - 1) === \"-\" : this.fail(\"Unexpected token at top-level: \" + e.type, e.lineno, e.colno);\n return n;\n }, g.parse = function() {\n return new E.NodeList(0, 0, this.parseNodes());\n }, g.parseAsRoot = function() {\n return new E.Root(0, 0, this.parseNodes());\n }, C;\n })(y);\n U.exports = {\n parse: function(C, g, L) {\n var e = new P(v.lex(C, L));\n return g !== void 0 && (e.extensions = g), e.parseAsRoot();\n },\n Parser: P\n };\n }),\n /* 9 */\n /***/\n (function(U, j, N) {\n var _ = N(0), x = ` \n\t\\r `, v = \"()[]{}%*-+~/#,:|.<>=!\", E = \"0123456789\", y = \"{%\", O = \"%}\", P = \"{{\", I = \"}}\", C = \"{#\", g = \"#}\", L = \"string\", e = \"whitespace\", n = \"data\", i = \"block-start\", p = \"block-end\", l = \"variable-start\", h = \"variable-end\", t = \"comment\", r = \"left-paren\", a = \"right-paren\", o = \"left-bracket\", s = \"right-bracket\", c = \"left-curly\", u = \"right-curly\", k = \"operator\", T = \"comma\", b = \"colon\", A = \"tilde\", R = \"pipe\", d = \"int\", f = \"float\", w = \"boolean\", F = \"none\", B = \"symbol\", V = \"special\", Z = \"regex\";\n function $(ue, X, Q, D) {\n return {\n type: ue,\n value: X,\n lineno: Q,\n colno: D\n };\n }\n var se = /* @__PURE__ */ (function() {\n function ue(Q, D) {\n this.str = Q, this.index = 0, this.len = Q.length, this.lineno = 0, this.colno = 0, this.in_code = !1, D = D || {};\n var W = D.tags || {};\n this.tags = {\n BLOCK_START: W.blockStart || y,\n BLOCK_END: W.blockEnd || O,\n VARIABLE_START: W.variableStart || P,\n VARIABLE_END: W.variableEnd || I,\n COMMENT_START: W.commentStart || C,\n COMMENT_END: W.commentEnd || g\n }, this.trimBlocks = !!D.trimBlocks, this.lstripBlocks = !!D.lstripBlocks;\n }\n var X = ue.prototype;\n return X.nextToken = function() {\n var D = this.lineno, W = this.colno, G;\n if (this.in_code) {\n var te = this.current();\n if (this.isFinished())\n return null;\n if (te === '\"' || te === \"'\")\n return $(L, this._parseString(te), D, W);\n if (G = this._extract(x))\n return $(e, G, D, W);\n if ((G = this._extractString(this.tags.BLOCK_END)) || (G = this._extractString(\"-\" + this.tags.BLOCK_END)))\n return this.in_code = !1, this.trimBlocks && (te = this.current(), te === `\n` ? this.forward() : te === \"\\r\" && (this.forward(), te = this.current(), te === `\n` ? this.forward() : this.back())), $(p, G, D, W);\n if ((G = this._extractString(this.tags.VARIABLE_END)) || (G = this._extractString(\"-\" + this.tags.VARIABLE_END)))\n return this.in_code = !1, $(h, G, D, W);\n if (te === \"r\" && this.str.charAt(this.index + 1) === \"/\") {\n this.forwardN(2);\n for (var ce = \"\"; !this.isFinished(); )\n if (this.current() === \"/\" && this.previous() !== \"\\\\\") {\n this.forward();\n break;\n } else\n ce += this.current(), this.forward();\n for (var le = [\"g\", \"i\", \"m\", \"y\"], me = \"\"; !this.isFinished(); ) {\n var m = le.indexOf(this.current()) !== -1;\n if (m)\n me += this.current(), this.forward();\n else\n break;\n }\n return $(Z, {\n body: ce,\n flags: me\n }, D, W);\n } else if (v.indexOf(te) !== -1) {\n this.forward();\n var S = [\"==\", \"===\", \"!=\", \"!==\", \"<=\", \">=\", \"//\", \"**\"], M = te + this.current(), K;\n switch (_.indexOf(S, M) !== -1 && (this.forward(), te = M, _.indexOf(S, M + this.current()) !== -1 && (te = M + this.current(), this.forward())), te) {\n case \"(\":\n K = r;\n break;\n case \")\":\n K = a;\n break;\n case \"[\":\n K = o;\n break;\n case \"]\":\n K = s;\n break;\n case \"{\":\n K = c;\n break;\n case \"}\":\n K = u;\n break;\n case \",\":\n K = T;\n break;\n case \":\":\n K = b;\n break;\n case \"~\":\n K = A;\n break;\n case \"|\":\n K = R;\n break;\n default:\n K = k;\n }\n return $(K, te, D, W);\n } else if (G = this._extractUntil(x + v), G.match(/^[-+]?[0-9]+$/))\n if (this.current() === \".\") {\n this.forward();\n var z = this._extract(E);\n return $(f, G + \".\" + z, D, W);\n } else\n return $(d, G, D, W);\n else {\n if (G.match(/^(true|false)$/))\n return $(w, G, D, W);\n if (G === \"none\")\n return $(F, G, D, W);\n if (G === \"null\")\n return $(F, G, D, W);\n if (G)\n return $(B, G, D, W);\n throw new Error(\"Unexpected value while parsing: \" + G);\n }\n } else {\n var J = this.tags.BLOCK_START.charAt(0) + this.tags.VARIABLE_START.charAt(0) + this.tags.COMMENT_START.charAt(0) + this.tags.COMMENT_END.charAt(0);\n if (this.isFinished())\n return null;\n if ((G = this._extractString(this.tags.BLOCK_START + \"-\")) || (G = this._extractString(this.tags.BLOCK_START)))\n return this.in_code = !0, $(i, G, D, W);\n if ((G = this._extractString(this.tags.VARIABLE_START + \"-\")) || (G = this._extractString(this.tags.VARIABLE_START)))\n return this.in_code = !0, $(l, G, D, W);\n G = \"\";\n var re, q = !1;\n for (this._matches(this.tags.COMMENT_START) && (q = !0, G = this._extractString(this.tags.COMMENT_START)); (re = this._extractUntil(J)) !== null; )\n if (G += re, (this._matches(this.tags.BLOCK_START) || this._matches(this.tags.VARIABLE_START) || this._matches(this.tags.COMMENT_START)) && !q) {\n if (this.lstripBlocks && this._matches(this.tags.BLOCK_START) && this.colno > 0 && this.colno <= G.length) {\n var oe = G.slice(-this.colno);\n if (/^\\s+$/.test(oe) && (G = G.slice(0, -this.colno), !G.length))\n return this.nextToken();\n }\n break;\n } else if (this._matches(this.tags.COMMENT_END)) {\n if (!q)\n throw new Error(\"unexpected end of comment\");\n G += this._extractString(this.tags.COMMENT_END);\n break;\n } else\n G += this.current(), this.forward();\n if (re === null && q)\n throw new Error(\"expected end of comment, got end of file\");\n return $(q ? t : n, G, D, W);\n }\n }, X._parseString = function(D) {\n this.forward();\n for (var W = \"\"; !this.isFinished() && this.current() !== D; ) {\n var G = this.current();\n if (G === \"\\\\\") {\n switch (this.forward(), this.current()) {\n case \"n\":\n W += `\n`;\n break;\n case \"t\":\n W += \"\t\";\n break;\n case \"r\":\n W += \"\\r\";\n break;\n default:\n W += this.current();\n }\n this.forward();\n } else\n W += G, this.forward();\n }\n return this.forward(), W;\n }, X._matches = function(D) {\n if (this.index + D.length > this.len)\n return null;\n var W = this.str.slice(this.index, this.index + D.length);\n return W === D;\n }, X._extractString = function(D) {\n return this._matches(D) ? (this.forwardN(D.length), D) : null;\n }, X._extractUntil = function(D) {\n return this._extractMatching(!0, D || \"\");\n }, X._extract = function(D) {\n return this._extractMatching(!1, D);\n }, X._extractMatching = function(D, W) {\n if (this.isFinished())\n return null;\n var G = W.indexOf(this.current());\n if (D && G === -1 || !D && G !== -1) {\n var te = this.current();\n this.forward();\n for (var ce = W.indexOf(this.current()); (D && ce === -1 || !D && ce !== -1) && !this.isFinished(); )\n te += this.current(), this.forward(), ce = W.indexOf(this.current());\n return te;\n }\n return \"\";\n }, X._extractRegex = function(D) {\n var W = this.currentStr().match(D);\n return W ? (this.forwardN(W[0].length), W) : null;\n }, X.isFinished = function() {\n return this.index >= this.len;\n }, X.forwardN = function(D) {\n for (var W = 0; W < D; W++)\n this.forward();\n }, X.forward = function() {\n this.index++, this.previous() === `\n` ? (this.lineno++, this.colno = 0) : this.colno++;\n }, X.backN = function(D) {\n for (var W = 0; W < D; W++)\n this.back();\n }, X.back = function() {\n if (this.index--, this.current() === `\n`) {\n this.lineno--;\n var D = this.src.lastIndexOf(`\n`, this.index - 1);\n D === -1 ? this.colno = this.index : this.colno = this.index - D;\n } else\n this.colno--;\n }, X.current = function() {\n return this.isFinished() ? \"\" : this.str.charAt(this.index);\n }, X.currentStr = function() {\n return this.isFinished() ? \"\" : this.str.substr(this.index);\n }, X.previous = function() {\n return this.str.charAt(this.index - 1);\n }, ue;\n })();\n U.exports = {\n lex: function(X, Q) {\n return new se(X, Q);\n },\n TOKEN_STRING: L,\n TOKEN_WHITESPACE: e,\n TOKEN_DATA: n,\n TOKEN_BLOCK_START: i,\n TOKEN_BLOCK_END: p,\n TOKEN_VARIABLE_START: l,\n TOKEN_VARIABLE_END: h,\n TOKEN_COMMENT: t,\n TOKEN_LEFT_PAREN: r,\n TOKEN_RIGHT_PAREN: a,\n TOKEN_LEFT_BRACKET: o,\n TOKEN_RIGHT_BRACKET: s,\n TOKEN_LEFT_CURLY: c,\n TOKEN_RIGHT_CURLY: u,\n TOKEN_OPERATOR: k,\n TOKEN_COMMA: T,\n TOKEN_COLON: b,\n TOKEN_TILDE: A,\n TOKEN_PIPE: R,\n TOKEN_INT: d,\n TOKEN_FLOAT: f,\n TOKEN_BOOLEAN: w,\n TOKEN_NONE: F,\n TOKEN_SYMBOL: B,\n TOKEN_SPECIAL: V,\n TOKEN_REGEX: Z\n };\n }),\n /* 10 */\n /***/\n (function(U, j, N) {\n function _(P, I) {\n P.prototype = Object.create(I.prototype), P.prototype.constructor = P, x(P, I);\n }\n function x(P, I) {\n return x = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(g, L) {\n return g.__proto__ = L, g;\n }, x(P, I);\n }\n var v = N(6), E = N(19), y = E.PrecompiledLoader, O = /* @__PURE__ */ (function(P) {\n _(I, P);\n function I(g, L) {\n var e;\n return e = P.call(this) || this, e.baseURL = g || \".\", L = L || {}, e.useCache = !!L.useCache, e.async = !!L.async, e;\n }\n var C = I.prototype;\n return C.resolve = function(L, e) {\n throw new Error(\"relative templates not support in the browser yet\");\n }, C.getSource = function(L, e) {\n var n = this, i = this.useCache, p;\n return this.fetch(this.baseURL + \"/\" + L, function(l, h) {\n if (l)\n if (e)\n e(l.content);\n else if (l.status === 404)\n p = null;\n else\n throw l.content;\n else\n p = {\n src: h,\n path: L,\n noCache: !i\n }, n.emit(\"load\", L, p), e && e(null, p);\n }), p;\n }, C.fetch = function(L, e) {\n if (typeof window > \"u\")\n throw new Error(\"WebLoader can only by used in a browser\");\n var n = new XMLHttpRequest(), i = !0;\n n.onreadystatechange = function() {\n n.readyState === 4 && i && (i = !1, n.status === 0 || n.status === 200 ? e(null, n.responseText) : e({\n status: n.status,\n content: n.responseText\n }));\n }, L += (L.indexOf(\"?\") === -1 ? \"?\" : \"&\") + \"s=\" + (/* @__PURE__ */ new Date()).getTime(), n.open(\"GET\", L, this.async), n.send();\n }, I;\n })(v);\n U.exports = {\n WebLoader: O,\n PrecompiledLoader: y\n };\n }),\n /* 11 */\n /***/\n (function(U, j, N) {\n var _ = N(0), x = N(7), v = x.Environment, E = x.Template, y = N(6), O = N(10), P = N(23), I = N(5), C = N(8), g = N(9), L = N(2), e = N(3), n = N(25), i;\n function p(l, h) {\n h = h || {}, _.isObject(l) && (h = l, l = null);\n var t;\n return O.FileSystemLoader ? t = new O.FileSystemLoader(l, {\n watch: h.watch,\n noCache: h.noCache\n }) : O.WebLoader && (t = new O.WebLoader(l, {\n useCache: h.web && h.web.useCache,\n async: h.web && h.web.async\n })), i = new v(t, h), h && h.express && i.express(h.express), i;\n }\n U.exports = {\n Environment: v,\n Template: E,\n Loader: y,\n FileSystemLoader: O.FileSystemLoader,\n NodeResolveLoader: O.NodeResolveLoader,\n PrecompiledLoader: O.PrecompiledLoader,\n WebLoader: O.WebLoader,\n compiler: I,\n parser: C,\n lexer: g,\n runtime: L,\n lib: _,\n nodes: e,\n installJinjaCompat: n,\n configure: p,\n reset: function() {\n i = void 0;\n },\n compile: function(h, t, r, a) {\n return i || p(), new E(h, t, r, a);\n },\n render: function(h, t, r) {\n return i || p(), i.render(h, t, r);\n },\n renderString: function(h, t, r) {\n return i || p(), i.renderString(h, t, r);\n },\n precompile: P ? P.precompile : void 0,\n precompileString: P ? P.precompileString : void 0\n };\n }),\n /* 12 */\n /***/\n (function(U, j, N) {\n var _ = N(13), x = [], v = [], E = _.makeRequestCallFromTimer(y);\n function y() {\n if (v.length)\n throw v.shift();\n }\n U.exports = O;\n function O(I) {\n var C;\n x.length ? C = x.pop() : C = new P(), C.task = I, _(C);\n }\n function P() {\n this.task = null;\n }\n P.prototype.call = function() {\n try {\n this.task.call();\n } catch (I) {\n O.onerror ? O.onerror(I) : (v.push(I), E());\n } finally {\n this.task = null, x[x.length] = this;\n }\n };\n }),\n /* 13 */\n /***/\n (function(U, j, N) {\n (function(_) {\n U.exports = x;\n function x(e) {\n v.length || E(), v[v.length] = e;\n }\n var v = [], E, y = 0, O = 1024;\n function P() {\n for (; y < v.length; ) {\n var e = y;\n if (y = y + 1, v[e].call(), y > O) {\n for (var n = 0, i = v.length - y; n < i; n++)\n v[n] = v[n + y];\n v.length -= y, y = 0;\n }\n }\n v.length = 0, y = 0;\n }\n var I = typeof _ < \"u\" ? _ : self, C = I.MutationObserver || I.WebKitMutationObserver;\n typeof C == \"function\" ? E = g(P) : E = L(P), x.requestFlush = E;\n function g(e) {\n var n = 1, i = new C(e), p = document.createTextNode(\"\");\n return i.observe(p, { characterData: !0 }), function() {\n n = -n, p.data = n;\n };\n }\n function L(e) {\n return function() {\n var i = setTimeout(l, 0), p = setInterval(l, 50);\n function l() {\n clearTimeout(i), clearInterval(p), e();\n }\n };\n }\n x.makeRequestCallFromTimer = L;\n }).call(j, N(14));\n }),\n /* 14 */\n /***/\n (function(U, j) {\n var N;\n N = /* @__PURE__ */ (function() {\n return this;\n })();\n try {\n N = N || Function(\"return this\")() || (0, eval)(\"this\");\n } catch {\n typeof window == \"object\" && (N = window);\n }\n U.exports = N;\n }),\n /* 15 */\n /***/\n (function(U, j, N) {\n var _, x;\n (function(v) {\n var E = function() {\n var C = Array.prototype.slice.call(arguments);\n typeof C[0] == \"function\" && C[0].apply(null, C.splice(1));\n }, y = function(C) {\n typeof setImmediate == \"function\" ? setImmediate(C) : typeof process < \"u\" && process.nextTick ? process.nextTick(C) : setTimeout(C, 0);\n }, O = function(C) {\n var g = function(L) {\n var e = function() {\n return C.length && C[L].apply(null, arguments), e.next();\n };\n return e.next = function() {\n return L < C.length - 1 ? g(L + 1) : null;\n }, e;\n };\n return g(0);\n }, P = Array.isArray || function(C) {\n return Object.prototype.toString.call(C) === \"[object Array]\";\n }, I = function(C, g, L) {\n var e = L ? y : E;\n if (g = g || function() {\n }, !P(C)) {\n var n = new Error(\"First argument to waterfall must be an array of functions\");\n return g(n);\n }\n if (!C.length)\n return g();\n var i = function(p) {\n return function(l) {\n if (l)\n g.apply(null, arguments), g = function() {\n };\n else {\n var h = Array.prototype.slice.call(arguments, 1), t = p.next();\n t ? h.push(i(t)) : h.push(g), e(function() {\n p.apply(null, h);\n });\n }\n };\n };\n i(O(C))();\n };\n _ = [], x = (function() {\n return I;\n }).apply(j, _), x !== void 0 && (U.exports = x);\n })();\n }),\n /* 16 */\n /***/\n (function(U, j, N) {\n var _ = typeof Reflect == \"object\" ? Reflect : null, x = _ && typeof _.apply == \"function\" ? _.apply : function(s, c, u) {\n return Function.prototype.apply.call(s, c, u);\n }, v;\n _ && typeof _.ownKeys == \"function\" ? v = _.ownKeys : Object.getOwnPropertySymbols ? v = function(s) {\n return Object.getOwnPropertyNames(s).concat(Object.getOwnPropertySymbols(s));\n } : v = function(s) {\n return Object.getOwnPropertyNames(s);\n };\n function E(o) {\n console && console.warn && console.warn(o);\n }\n var y = Number.isNaN || function(s) {\n return s !== s;\n };\n function O() {\n O.init.call(this);\n }\n U.exports = O, U.exports.once = t, O.EventEmitter = O, O.prototype._events = void 0, O.prototype._eventsCount = 0, O.prototype._maxListeners = void 0;\n var P = 10;\n function I(o) {\n if (typeof o != \"function\")\n throw new TypeError('The \"listener\" argument must be of type Function. Received type ' + typeof o);\n }\n Object.defineProperty(O, \"defaultMaxListeners\", {\n enumerable: !0,\n get: function() {\n return P;\n },\n set: function(o) {\n if (typeof o != \"number\" || o < 0 || y(o))\n throw new RangeError('The value of \"defaultMaxListeners\" is out of range. It must be a non-negative number. Received ' + o + \".\");\n P = o;\n }\n }), O.init = function() {\n (this._events === void 0 || this._events === Object.getPrototypeOf(this)._events) && (this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0), this._maxListeners = this._maxListeners || void 0;\n }, O.prototype.setMaxListeners = function(s) {\n if (typeof s != \"number\" || s < 0 || y(s))\n throw new RangeError('The value of \"n\" is out of range. It must be a non-negative number. Received ' + s + \".\");\n return this._maxListeners = s, this;\n };\n function C(o) {\n return o._maxListeners === void 0 ? O.defaultMaxListeners : o._maxListeners;\n }\n O.prototype.getMaxListeners = function() {\n return C(this);\n }, O.prototype.emit = function(s) {\n for (var c = [], u = 1; u < arguments.length; u++) c.push(arguments[u]);\n var k = s === \"error\", T = this._events;\n if (T !== void 0)\n k = k && T.error === void 0;\n else if (!k)\n return !1;\n if (k) {\n var b;\n if (c.length > 0 && (b = c[0]), b instanceof Error)\n throw b;\n var A = new Error(\"Unhandled error.\" + (b ? \" (\" + b.message + \")\" : \"\"));\n throw A.context = b, A;\n }\n var R = T[s];\n if (R === void 0)\n return !1;\n if (typeof R == \"function\")\n x(R, this, c);\n else\n for (var d = R.length, f = p(R, d), u = 0; u < d; ++u)\n x(f[u], this, c);\n return !0;\n };\n function g(o, s, c, u) {\n var k, T, b;\n if (I(c), T = o._events, T === void 0 ? (T = o._events = /* @__PURE__ */ Object.create(null), o._eventsCount = 0) : (T.newListener !== void 0 && (o.emit(\n \"newListener\",\n s,\n c.listener ? c.listener : c\n ), T = o._events), b = T[s]), b === void 0)\n b = T[s] = c, ++o._eventsCount;\n else if (typeof b == \"function\" ? b = T[s] = u ? [c, b] : [b, c] : u ? b.unshift(c) : b.push(c), k = C(o), k > 0 && b.length > k && !b.warned) {\n b.warned = !0;\n var A = new Error(\"Possible EventEmitter memory leak detected. \" + b.length + \" \" + String(s) + \" listeners added. Use emitter.setMaxListeners() to increase limit\");\n A.name = \"MaxListenersExceededWarning\", A.emitter = o, A.type = s, A.count = b.length, E(A);\n }\n return o;\n }\n O.prototype.addListener = function(s, c) {\n return g(this, s, c, !1);\n }, O.prototype.on = O.prototype.addListener, O.prototype.prependListener = function(s, c) {\n return g(this, s, c, !0);\n };\n function L() {\n if (!this.fired)\n return this.target.removeListener(this.type, this.wrapFn), this.fired = !0, arguments.length === 0 ? this.listener.call(this.target) : this.listener.apply(this.target, arguments);\n }\n function e(o, s, c) {\n var u = { fired: !1, wrapFn: void 0, target: o, type: s, listener: c }, k = L.bind(u);\n return k.listener = c, u.wrapFn = k, k;\n }\n O.prototype.once = function(s, c) {\n return I(c), this.on(s, e(this, s, c)), this;\n }, O.prototype.prependOnceListener = function(s, c) {\n return I(c), this.prependListener(s, e(this, s, c)), this;\n }, O.prototype.removeListener = function(s, c) {\n var u, k, T, b, A;\n if (I(c), k = this._events, k === void 0)\n return this;\n if (u = k[s], u === void 0)\n return this;\n if (u === c || u.listener === c)\n --this._eventsCount === 0 ? this._events = /* @__PURE__ */ Object.create(null) : (delete k[s], k.removeListener && this.emit(\"removeListener\", s, u.listener || c));\n else if (typeof u != \"function\") {\n for (T = -1, b = u.length - 1; b >= 0; b--)\n if (u[b] === c || u[b].listener === c) {\n A = u[b].listener, T = b;\n break;\n }\n if (T < 0)\n return this;\n T === 0 ? u.shift() : l(u, T), u.length === 1 && (k[s] = u[0]), k.removeListener !== void 0 && this.emit(\"removeListener\", s, A || c);\n }\n return this;\n }, O.prototype.off = O.prototype.removeListener, O.prototype.removeAllListeners = function(s) {\n var c, u, k;\n if (u = this._events, u === void 0)\n return this;\n if (u.removeListener === void 0)\n return arguments.length === 0 ? (this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0) : u[s] !== void 0 && (--this._eventsCount === 0 ? this._events = /* @__PURE__ */ Object.create(null) : delete u[s]), this;\n if (arguments.length === 0) {\n var T = Object.keys(u), b;\n for (k = 0; k < T.length; ++k)\n b = T[k], b !== \"removeListener\" && this.removeAllListeners(b);\n return this.removeAllListeners(\"removeListener\"), this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0, this;\n }\n if (c = u[s], typeof c == \"function\")\n this.removeListener(s, c);\n else if (c !== void 0)\n for (k = c.length - 1; k >= 0; k--)\n this.removeListener(s, c[k]);\n return this;\n };\n function n(o, s, c) {\n var u = o._events;\n if (u === void 0)\n return [];\n var k = u[s];\n return k === void 0 ? [] : typeof k == \"function\" ? c ? [k.listener || k] : [k] : c ? h(k) : p(k, k.length);\n }\n O.prototype.listeners = function(s) {\n return n(this, s, !0);\n }, O.prototype.rawListeners = function(s) {\n return n(this, s, !1);\n }, O.listenerCount = function(o, s) {\n return typeof o.listenerCount == \"function\" ? o.listenerCount(s) : i.call(o, s);\n }, O.prototype.listenerCount = i;\n function i(o) {\n var s = this._events;\n if (s !== void 0) {\n var c = s[o];\n if (typeof c == \"function\")\n return 1;\n if (c !== void 0)\n return c.length;\n }\n return 0;\n }\n O.prototype.eventNames = function() {\n return this._eventsCount > 0 ? v(this._events) : [];\n };\n function p(o, s) {\n for (var c = new Array(s), u = 0; u < s; ++u)\n c[u] = o[u];\n return c;\n }\n function l(o, s) {\n for (; s + 1 < o.length; s++)\n o[s] = o[s + 1];\n o.pop();\n }\n function h(o) {\n for (var s = new Array(o.length), c = 0; c < s.length; ++c)\n s[c] = o[c].listener || o[c];\n return s;\n }\n function t(o, s) {\n return new Promise(function(c, u) {\n function k(b) {\n o.removeListener(s, T), u(b);\n }\n function T() {\n typeof o.removeListener == \"function\" && o.removeListener(\"error\", k), c([].slice.call(arguments));\n }\n a(o, s, T, { once: !0 }), s !== \"error\" && r(o, k, { once: !0 });\n });\n }\n function r(o, s, c) {\n typeof o.on == \"function\" && a(o, \"error\", s, c);\n }\n function a(o, s, c, u) {\n if (typeof o.on == \"function\")\n u.once ? o.once(s, c) : o.on(s, c);\n else if (typeof o.addEventListener == \"function\")\n o.addEventListener(s, function k(T) {\n u.once && o.removeEventListener(s, k), c(T);\n });\n else\n throw new TypeError('The \"emitter\" argument must be of type EventEmitter. Received type ' + typeof o);\n }\n }),\n /* 17 */\n /***/\n (function(U, j, N) {\n var _ = N(3), x = N(0), v = 0;\n function E() {\n return \"hole_\" + v++;\n }\n function y(i, p) {\n for (var l = null, h = 0; h < i.length; h++) {\n var t = p(i[h]);\n t !== i[h] && (l || (l = i.slice()), l[h] = t);\n }\n return l || i;\n }\n function O(i, p, l) {\n if (!(i instanceof _.Node))\n return i;\n if (!l) {\n var h = p(i);\n if (h && h !== i)\n return h;\n }\n if (i instanceof _.NodeList) {\n var t = y(i.children, function(c) {\n return O(c, p, l);\n });\n t !== i.children && (i = new _[i.typename](i.lineno, i.colno, t));\n } else if (i instanceof _.CallExtension) {\n var r = O(i.args, p, l), a = y(i.contentArgs, function(c) {\n return O(c, p, l);\n });\n (r !== i.args || a !== i.contentArgs) && (i = new _[i.typename](i.extName, i.prop, r, a));\n } else {\n var o = i.fields.map(function(c) {\n return i[c];\n }), s = y(o, function(c) {\n return O(c, p, l);\n });\n s !== o && (i = new _[i.typename](i.lineno, i.colno), s.forEach(function(c, u) {\n i[i.fields[u]] = c;\n }));\n }\n return l && p(i) || i;\n }\n function P(i, p) {\n return O(i, p, !0);\n }\n function I(i, p, l) {\n var h = [], t = P(l ? i[l] : i, function(r) {\n var a;\n return r instanceof _.Block ? r : ((r instanceof _.Filter && x.indexOf(p, r.name.value) !== -1 || r instanceof _.CallExtensionAsync) && (a = new _.Symbol(r.lineno, r.colno, E()), h.push(new _.FilterAsync(r.lineno, r.colno, r.name, r.args, a))), a);\n });\n return l ? i[l] = t : i = t, h.length ? (h.push(i), new _.NodeList(i.lineno, i.colno, h)) : i;\n }\n function C(i, p) {\n return P(i, function(l) {\n return l instanceof _.Output ? I(l, p) : l instanceof _.Set ? I(l, p, \"value\") : l instanceof _.For ? I(l, p, \"arr\") : l instanceof _.If ? I(l, p, \"cond\") : l instanceof _.CallExtension ? I(l, p, \"args\") : void 0;\n });\n }\n function g(i) {\n return O(i, function(p) {\n if (p instanceof _.Block) {\n var l = !1, h = E();\n p.body = O(p.body, function(t) {\n if (t instanceof _.FunCall && t.name.value === \"super\")\n return l = !0, new _.Symbol(t.lineno, t.colno, h);\n }), l && p.body.children.unshift(new _.Super(0, 0, p.name, new _.Symbol(0, 0, h)));\n }\n });\n }\n function L(i) {\n return P(i, function(p) {\n if (!(!(p instanceof _.If) && !(p instanceof _.For))) {\n var l = !1;\n if (O(p, function(h) {\n if (h instanceof _.FilterAsync || h instanceof _.IfAsync || h instanceof _.AsyncEach || h instanceof _.AsyncAll || h instanceof _.CallExtensionAsync)\n return l = !0, h;\n }), l) {\n if (p instanceof _.If)\n return new _.IfAsync(p.lineno, p.colno, p.cond, p.body, p.else_);\n if (p instanceof _.For && !(p instanceof _.AsyncAll))\n return new _.AsyncEach(p.lineno, p.colno, p.arr, p.name, p.body, p.else_);\n }\n }\n });\n }\n function e(i, p) {\n return L(g(C(i, p)));\n }\n function n(i, p) {\n return e(i, p || []);\n }\n U.exports = {\n transform: n\n };\n }),\n /* 18 */\n /***/\n (function(U, v, N) {\n var _ = N(0), x = N(2), v = U.exports = {};\n function E(m, S) {\n return m == null || m === !1 ? S : m;\n }\n v.abs = Math.abs;\n function y(m) {\n return m !== m;\n }\n function O(m, S, M) {\n var K, z = [], J = [];\n for (K = 0; K < m.length; K++)\n K % S === 0 && J.length && (z.push(J), J = []), J.push(m[K]);\n if (J.length) {\n if (M)\n for (K = J.length; K < S; K++)\n J.push(M);\n z.push(J);\n }\n return z;\n }\n v.batch = O;\n function P(m) {\n m = E(m, \"\");\n var S = m.toLowerCase();\n return x.copySafeness(m, S.charAt(0).toUpperCase() + S.slice(1));\n }\n v.capitalize = P;\n function I(m, S) {\n if (m = E(m, \"\"), S = S || 80, m.length >= S)\n return m;\n var M = S - m.length, K = _.repeat(\" \", M / 2 - M % 2), z = _.repeat(\" \", M / 2);\n return x.copySafeness(m, K + m + z);\n }\n v.center = I;\n function C(m, S, M) {\n return M ? m || S : m !== void 0 ? m : S;\n }\n v.default = C;\n function g(m, S, M) {\n if (!_.isObject(m))\n throw new _.TemplateError(\"dictsort filter: val must be an object\");\n var K = [];\n for (var z in m)\n K.push([z, m[z]]);\n var J;\n if (M === void 0 || M === \"key\")\n J = 0;\n else if (M === \"value\")\n J = 1;\n else\n throw new _.TemplateError(\"dictsort filter: You can only sort by either key or value\");\n return K.sort(function(re, q) {\n var oe = re[J], pe = q[J];\n return S || (_.isString(oe) && (oe = oe.toUpperCase()), _.isString(pe) && (pe = pe.toUpperCase())), oe > pe ? 1 : oe === pe ? 0 : -1;\n }), K;\n }\n v.dictsort = g;\n function L(m, S) {\n return JSON.stringify(m, null, S);\n }\n v.dump = L;\n function e(m) {\n return m instanceof x.SafeString ? m : (m = m ?? \"\", x.markSafe(_.escape(m.toString())));\n }\n v.escape = e;\n function n(m) {\n return m instanceof x.SafeString ? m : (m = m ?? \"\", x.markSafe(m.toString()));\n }\n v.safe = n;\n function i(m) {\n return m[0];\n }\n v.first = i;\n function p(m) {\n return m = m ?? \"\", x.markSafe(_.escape(m.toString()));\n }\n v.forceescape = p;\n function l(m, S) {\n return _.groupBy(m, S, this.env.opts.throwOnUndefined);\n }\n v.groupby = l;\n function h(m, S, M) {\n if (m = E(m, \"\"), m === \"\")\n return \"\";\n S = S || 4;\n var K = m.split(`\n`), z = _.repeat(\" \", S), J = K.map(function(re, q) {\n return q === 0 && !M ? re : \"\" + z + re;\n }).join(`\n`);\n return x.copySafeness(m, J);\n }\n v.indent = h;\n function t(m, S, M) {\n return S = S || \"\", M && (m = _.map(m, function(K) {\n return K[M];\n })), m.join(S);\n }\n v.join = t;\n function r(m) {\n return m[m.length - 1];\n }\n v.last = r;\n function a(m) {\n var S = E(m, \"\");\n return S !== void 0 ? typeof Map == \"function\" && S instanceof Map || typeof Set == \"function\" && S instanceof Set ? S.size : _.isObject(S) && !(S instanceof x.SafeString) ? _.keys(S).length : S.length : 0;\n }\n v.length = a;\n function o(m) {\n if (_.isString(m))\n return m.split(\"\");\n if (_.isObject(m))\n return _._entries(m || {}).map(function(S) {\n var M = S[0], K = S[1];\n return {\n key: M,\n value: K\n };\n });\n if (_.isArray(m))\n return m;\n throw new _.TemplateError(\"list filter: type not iterable\");\n }\n v.list = o;\n function s(m) {\n return m = E(m, \"\"), m.toLowerCase();\n }\n v.lower = s;\n function c(m) {\n return m == null ? \"\" : x.copySafeness(m, m.replace(/\\r\\n|\\n/g, `
\n`));\n }\n v.nl2br = c;\n function u(m) {\n return m[Math.floor(Math.random() * m.length)];\n }\n v.random = u;\n function k(m) {\n function S(M, K, z) {\n K === void 0 && (K = \"truthy\");\n var J = this, re = J.env.getTest(K);\n return _.toArray(M).filter(function(oe) {\n return re.call(J, oe, z) === m;\n });\n }\n return S;\n }\n v.reject = k(!1);\n function T(m, S) {\n return m.filter(function(M) {\n return !M[S];\n });\n }\n v.rejectattr = T, v.select = k(!0);\n function b(m, S) {\n return m.filter(function(M) {\n return !!M[S];\n });\n }\n v.selectattr = b;\n function A(m, S, M, K) {\n var z = m;\n if (S instanceof RegExp)\n return m.replace(S, M);\n typeof K > \"u\" && (K = -1);\n var J = \"\";\n if (typeof S == \"number\")\n S = \"\" + S;\n else if (typeof S != \"string\")\n return m;\n if (typeof m == \"number\" && (m = \"\" + m), typeof m != \"string\" && !(m instanceof x.SafeString))\n return m;\n if (S === \"\")\n return J = M + m.split(\"\").join(M) + M, x.copySafeness(m, J);\n var re = m.indexOf(S);\n if (K === 0 || re === -1)\n return m;\n for (var q = 0, oe = 0; re > -1 && (K === -1 || oe < K); )\n J += m.substring(q, re) + M, q = re + S.length, oe++, re = m.indexOf(S, q);\n return q < m.length && (J += m.substring(q)), x.copySafeness(z, J);\n }\n v.replace = A;\n function R(m) {\n var S;\n return _.isString(m) ? S = o(m) : S = _.map(m, function(M) {\n return M;\n }), S.reverse(), _.isString(m) ? x.copySafeness(m, S.join(\"\")) : S;\n }\n v.reverse = R;\n function d(m, S, M) {\n S = S || 0;\n var K = Math.pow(10, S), z;\n return M === \"ceil\" ? z = Math.ceil : M === \"floor\" ? z = Math.floor : z = Math.round, z(m * K) / K;\n }\n v.round = d;\n function f(m, S, M) {\n for (var K = Math.floor(m.length / S), z = m.length % S, J = [], re = 0, q = 0; q < S; q++) {\n var oe = re + q * K;\n q < z && re++;\n var pe = re + (q + 1) * K, ve = m.slice(oe, pe);\n M && q >= z && ve.push(M), J.push(ve);\n }\n return J;\n }\n v.slice = f;\n function w(m, S, M) {\n return M === void 0 && (M = 0), S && (m = _.map(m, function(K) {\n return K[S];\n })), M + m.reduce(function(K, z) {\n return K + z;\n }, 0);\n }\n v.sum = w, v.sort = x.makeMacro([\"value\", \"reverse\", \"case_sensitive\", \"attribute\"], [], function(S, M, K, z) {\n var J = this, re = _.map(S, function(oe) {\n return oe;\n }), q = _.getAttrGetter(z);\n return re.sort(function(oe, pe) {\n var ve = z ? q(oe) : oe, de = z ? q(pe) : pe;\n if (J.env.opts.throwOnUndefined && z && (ve === void 0 || de === void 0))\n throw new TypeError('sort: attribute \"' + z + '\" resolved to undefined');\n return !K && _.isString(ve) && _.isString(de) && (ve = ve.toLowerCase(), de = de.toLowerCase()), ve < de ? M ? 1 : -1 : ve > de ? M ? -1 : 1 : 0;\n }), re;\n });\n function F(m) {\n return x.copySafeness(m, m);\n }\n v.string = F;\n function B(m, S) {\n m = E(m, \"\");\n var M = /<\\/?([a-z][a-z0-9]*)\\b[^>]*>|/gi, K = Z(m.replace(M, \"\")), z = \"\";\n return S ? z = K.replace(/^ +| +$/gm, \"\").replace(/ +/g, \" \").replace(/(\\r\\n)/g, `\n`).replace(/\\n\\n\\n+/g, `\n\n`) : z = K.replace(/\\s+/gi, \" \"), x.copySafeness(m, z);\n }\n v.striptags = B;\n function V(m) {\n m = E(m, \"\");\n var S = m.split(\" \").map(function(M) {\n return P(M);\n });\n return x.copySafeness(m, S.join(\" \"));\n }\n v.title = V;\n function Z(m) {\n return x.copySafeness(m, m.replace(/^\\s*|\\s*$/g, \"\"));\n }\n v.trim = Z;\n function $(m, S, M, K) {\n var z = m;\n if (m = E(m, \"\"), S = S || 255, m.length <= S)\n return m;\n if (M)\n m = m.substring(0, S);\n else {\n var J = m.lastIndexOf(\" \", S);\n J === -1 && (J = S), m = m.substring(0, J);\n }\n return m += K ?? \"...\", x.copySafeness(z, m);\n }\n v.truncate = $;\n function se(m) {\n return m = E(m, \"\"), m.toUpperCase();\n }\n v.upper = se;\n function ue(m) {\n var S = encodeURIComponent;\n if (_.isString(m))\n return S(m);\n var M = _.isArray(m) ? m : _._entries(m);\n return M.map(function(K) {\n var z = K[0], J = K[1];\n return S(z) + \"=\" + S(J);\n }).join(\"&\");\n }\n v.urlencode = ue;\n var X = /^(?:\\(|<|<)?(.*?)(?:\\.|,|\\)|\\n|>)?$/, Q = /^[\\w.!#$%&'*+\\-\\/=?\\^`{|}~]+@[a-z\\d\\-]+(\\.[a-z\\d\\-]+)+$/i, D = /^https?:\\/\\/.*$/, W = /^www\\./, G = /\\.(?:org|net|com)(?:\\:|\\/|$)/;\n function te(m, S, M) {\n y(S) && (S = 1 / 0);\n var K = M === !0 ? ' rel=\"nofollow\"' : \"\", z = m.split(/(\\s+)/).filter(function(J) {\n return J && J.length;\n }).map(function(J) {\n var re = J.match(X), q = re ? re[1] : J, oe = q.substr(0, S);\n return D.test(q) ? '\" + oe + \"\" : W.test(q) ? '\" + oe + \"\" : Q.test(q) ? '' + q + \"\" : G.test(q) ? '\" + oe + \"\" : J;\n });\n return z.join(\"\");\n }\n v.urlize = te;\n function ce(m) {\n m = E(m, \"\");\n var S = m ? m.match(/\\w+/g) : null;\n return S ? S.length : null;\n }\n v.wordcount = ce;\n function le(m, S) {\n var M = parseFloat(m);\n return y(M) ? S : M;\n }\n v.float = le;\n var me = x.makeMacro([\"value\", \"default\", \"base\"], [], function(S, M, K) {\n K === void 0 && (K = 10);\n var z = parseInt(S, K);\n return y(z) ? M : z;\n });\n v.int = me, v.d = v.default, v.e = v.escape;\n }),\n /* 19 */\n /***/\n (function(U, j, N) {\n function _(y, O) {\n y.prototype = Object.create(O.prototype), y.prototype.constructor = y, x(y, O);\n }\n function x(y, O) {\n return x = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(I, C) {\n return I.__proto__ = C, I;\n }, x(y, O);\n }\n var v = N(6), E = /* @__PURE__ */ (function(y) {\n _(O, y);\n function O(I) {\n var C;\n return C = y.call(this) || this, C.precompiled = I || {}, C;\n }\n var P = O.prototype;\n return P.getSource = function(C) {\n return this.precompiled[C] ? {\n src: {\n type: \"code\",\n obj: this.precompiled[C]\n },\n path: C\n } : null;\n }, O;\n })(v);\n U.exports = {\n PrecompiledLoader: E\n };\n }),\n /* 20 */\n /***/\n (function(U, j, N) {\n var _ = N(2).SafeString;\n function x(u) {\n return typeof u == \"function\";\n }\n j.callable = x;\n function v(u) {\n return u !== void 0;\n }\n j.defined = v;\n function E(u, k) {\n return u % k === 0;\n }\n j.divisibleby = E;\n function y(u) {\n return u instanceof _;\n }\n j.escaped = y;\n function O(u, k) {\n return u === k;\n }\n j.equalto = O, j.eq = j.equalto, j.sameas = j.equalto;\n function P(u) {\n return u % 2 === 0;\n }\n j.even = P;\n function I(u) {\n return !u;\n }\n j.falsy = I;\n function C(u, k) {\n return u >= k;\n }\n j.ge = C;\n function g(u, k) {\n return u > k;\n }\n j.greaterthan = g, j.gt = j.greaterthan;\n function L(u, k) {\n return u <= k;\n }\n j.le = L;\n function e(u, k) {\n return u < k;\n }\n j.lessthan = e, j.lt = j.lessthan;\n function n(u) {\n return u.toLowerCase() === u;\n }\n j.lower = n;\n function i(u, k) {\n return u !== k;\n }\n j.ne = i;\n function p(u) {\n return u === null;\n }\n j.null = p;\n function l(u) {\n return typeof u == \"number\";\n }\n j.number = l;\n function h(u) {\n return u % 2 === 1;\n }\n j.odd = h;\n function t(u) {\n return typeof u == \"string\";\n }\n j.string = t;\n function r(u) {\n return !!u;\n }\n j.truthy = r;\n function a(u) {\n return u === void 0;\n }\n j.undefined = a;\n function o(u) {\n return u.toUpperCase() === u;\n }\n j.upper = o;\n function s(u) {\n return typeof Symbol < \"u\" ? !!u[Symbol.iterator] : Array.isArray(u) || typeof u == \"string\";\n }\n j.iterable = s;\n function c(u) {\n var k = u != null && typeof u == \"object\" && !Array.isArray(u);\n return Set ? k && !(u instanceof Set) : k;\n }\n j.mapping = c;\n }),\n /* 21 */\n /***/\n (function(U, j, N) {\n function _(E) {\n var y = -1;\n return {\n current: null,\n reset: function() {\n y = -1, this.current = null;\n },\n next: function() {\n return y++, y >= E.length && (y = 0), this.current = E[y], this.current;\n }\n };\n }\n function x(E) {\n E = E || \",\";\n var y = !0;\n return function() {\n var O = y ? \"\" : E;\n return y = !1, O;\n };\n }\n function v() {\n return {\n range: function(y, O, P) {\n typeof O > \"u\" ? (O = y, y = 0, P = 1) : P || (P = 1);\n var I = [];\n if (P > 0)\n for (var C = y; C < O; C += P)\n I.push(C);\n else\n for (var g = y; g > O; g += P)\n I.push(g);\n return I;\n },\n cycler: function() {\n return _(Array.prototype.slice.call(arguments));\n },\n joiner: function(y) {\n return x(y);\n }\n };\n }\n U.exports = v;\n }),\n /* 22 */\n /***/\n (function(U, j, N) {\n var _ = N(4);\n U.exports = function(v, E) {\n function y(O, P) {\n if (this.name = O, this.path = O, this.defaultEngine = P.defaultEngine, this.ext = _.extname(O), !this.ext && !this.defaultEngine)\n throw new Error(\"No default engine was specified and no extension was provided.\");\n this.ext || (this.name += this.ext = (this.defaultEngine[0] !== \".\" ? \".\" : \"\") + this.defaultEngine);\n }\n return y.prototype.render = function(P, I) {\n v.render(this.name, P, I);\n }, E.set(\"view\", y), E.set(\"nunjucksEnv\", v), v;\n };\n }),\n /* 23 */\n /***/\n (function(U, j, N) {\n var _ = N(4), x = N(4), v = N(0), E = v._prettifyError, y = N(5), O = N(7), P = O.Environment, I = N(24);\n function C(n, i) {\n return Array.isArray(i) ? i.some(function(p) {\n return n.match(p);\n }) : !1;\n }\n function g(n, i) {\n i = i || {}, i.isString = !0;\n var p = i.env || new P([]), l = i.wrapper || I;\n if (!i.name)\n throw new Error('the \"name\" option is required when compiling a string');\n return l([e(n, i.name, p)], i);\n }\n function L(n, i) {\n i = i || {};\n var p = i.env || new P([]), l = i.wrapper || I;\n if (i.isString)\n return g(n, i);\n var h = _.existsSync(n) && _.statSync(n), t = [], r = [];\n function a(c) {\n _.readdirSync(c).forEach(function(u) {\n var k = x.join(c, u), T = k.substr(x.join(n, \"/\").length), b = _.statSync(k);\n b && b.isDirectory() ? (T += \"/\", C(T, i.exclude) || a(k)) : C(T, i.include) && r.push(k);\n });\n }\n if (h.isFile())\n t.push(e(_.readFileSync(n, \"utf-8\"), i.name || n, p));\n else if (h.isDirectory()) {\n a(n);\n for (var o = 0; o < r.length; o++) {\n var s = r[o].replace(x.join(n, \"/\"), \"\");\n try {\n t.push(e(_.readFileSync(r[o], \"utf-8\"), s, p));\n } catch (c) {\n if (i.force)\n console.error(c);\n else\n throw c;\n }\n }\n }\n return l(t, i);\n }\n function e(n, i, p) {\n p = p || new P([]);\n var l = p.asyncFilters, h = p.extensionsList, t;\n i = i.replace(/\\\\/g, \"/\");\n try {\n t = y.compile(n, l, h, i, p.opts);\n } catch (r) {\n throw E(i, !1, r);\n }\n return {\n name: i,\n template: t\n };\n }\n U.exports = {\n precompile: L,\n precompileString: g\n };\n }),\n /* 24 */\n /***/\n (function(U, j, N) {\n function _(x, v) {\n var E = \"\";\n v = v || {};\n for (var y = 0; y < x.length; y++) {\n var O = JSON.stringify(x[y].name), P = x[y].template;\n E += \"(function() {(window.nunjucksPrecompiled = window.nunjucksPrecompiled || {})[\" + O + `] = (function() {\n` + P + `\n})();\n`, v.asFunction && (E += \"return function(ctx, cb) { return nunjucks.render(\" + O + `, ctx, cb); }\n`), E += `})();\n`;\n }\n return E;\n }\n U.exports = _;\n }),\n /* 25 */\n /***/\n (function(U, j, N) {\n function _() {\n var x = this.runtime, v = this.lib, E = this.compiler.Compiler, y = this.parser.Parser, O = this.nodes, P = this.lexer, I = x.contextOrFrameLookup, C = x.memberLookup, g, L;\n E && (g = E.prototype.assertType), y && (L = y.prototype.parseAggregate);\n function e() {\n x.contextOrFrameLookup = I, x.memberLookup = C, E && (E.prototype.assertType = g), y && (y.prototype.parseAggregate = L);\n }\n x.contextOrFrameLookup = function(a, o, s) {\n var c = I.apply(this, arguments);\n if (c !== void 0)\n return c;\n switch (s) {\n case \"True\":\n return !0;\n case \"False\":\n return !1;\n case \"None\":\n return null;\n default:\n return;\n }\n };\n function n(r) {\n return {\n index: r.index,\n lineno: r.lineno,\n colno: r.colno\n };\n }\n if (O && E && y) {\n var i = O.Node.extend(\"Slice\", {\n fields: [\"start\", \"stop\", \"step\"],\n init: function(a, o, s, c, u) {\n s = s || new O.Literal(a, o, null), c = c || new O.Literal(a, o, null), u = u || new O.Literal(a, o, 1), this.parent(a, o, s, c, u);\n }\n });\n E.prototype.assertType = function(a) {\n a instanceof i || g.apply(this, arguments);\n }, E.prototype.compileSlice = function(a, o) {\n this._emit(\"(\"), this._compileExpression(a.start, o), this._emit(\"),(\"), this._compileExpression(a.stop, o), this._emit(\"),(\"), this._compileExpression(a.step, o), this._emit(\")\");\n }, y.prototype.parseAggregate = function() {\n var a = this, o = n(this.tokens);\n o.colno--, o.index--;\n try {\n return L.apply(this);\n } catch (R) {\n var s = n(this.tokens), c = function() {\n return v._assign(a.tokens, s), R;\n };\n v._assign(this.tokens, o), this.peeked = !1;\n var u = this.peekToken();\n if (u.type !== P.TOKEN_LEFT_BRACKET)\n throw c();\n this.nextToken();\n for (var k = new i(u.lineno, u.colno), T = !1, b = 0; b <= k.fields.length && !this.skip(P.TOKEN_RIGHT_BRACKET); b++) {\n if (b === k.fields.length)\n if (T)\n this.fail(\"parseSlice: too many slice components\", u.lineno, u.colno);\n else\n break;\n if (this.skip(P.TOKEN_COLON))\n T = !0;\n else {\n var A = k.fields[b];\n k[A] = this.parseExpression(), T = this.skip(P.TOKEN_COLON) || T;\n }\n }\n if (!T)\n throw c();\n return new O.Array(u.lineno, u.colno, [k]);\n }\n };\n }\n function p(r, a, o, s) {\n r = r || [], a === null && (a = s < 0 ? r.length - 1 : 0), o === null ? o = s < 0 ? -1 : r.length : o < 0 && (o += r.length), a < 0 && (a += r.length);\n for (var c = [], u = a; !(u < 0 || u > r.length || s > 0 && u >= o || s < 0 && u <= o); u += s)\n c.push(x.memberLookup(r, u));\n return c;\n }\n function l(r, a) {\n return Object.prototype.hasOwnProperty.call(r, a);\n }\n var h = {\n pop: function(a) {\n if (a === void 0)\n return this.pop();\n if (a >= this.length || a < 0)\n throw new Error(\"KeyError\");\n return this.splice(a, 1);\n },\n append: function(a) {\n return this.push(a);\n },\n remove: function(a) {\n for (var o = 0; o < this.length; o++)\n if (this[o] === a)\n return this.splice(o, 1);\n throw new Error(\"ValueError\");\n },\n count: function(a) {\n for (var o = 0, s = 0; s < this.length; s++)\n this[s] === a && o++;\n return o;\n },\n index: function(a) {\n var o;\n if ((o = this.indexOf(a)) === -1)\n throw new Error(\"ValueError\");\n return o;\n },\n find: function(a) {\n return this.indexOf(a);\n },\n insert: function(a, o) {\n return this.splice(a, 0, o);\n }\n }, t = {\n items: function() {\n return v._entries(this);\n },\n values: function() {\n return v._values(this);\n },\n keys: function() {\n return v.keys(this);\n },\n get: function(a, o) {\n var s = this[a];\n return s === void 0 && (s = o), s;\n },\n has_key: function(a) {\n return l(this, a);\n },\n pop: function(a, o) {\n var s = this[a];\n if (s === void 0 && o !== void 0)\n s = o;\n else {\n if (s === void 0)\n throw new Error(\"KeyError\");\n delete this[a];\n }\n return s;\n },\n popitem: function() {\n var a = v.keys(this);\n if (!a.length)\n throw new Error(\"KeyError\");\n var o = a[0], s = this[o];\n return delete this[o], [o, s];\n },\n setdefault: function(a, o) {\n return o === void 0 && (o = null), a in this || (this[a] = o), this[a];\n },\n update: function(a) {\n return v._assign(this, a), null;\n }\n };\n return t.iteritems = t.items, t.itervalues = t.values, t.iterkeys = t.keys, x.memberLookup = function(a, o, s) {\n return arguments.length === 4 ? p.apply(this, arguments) : (a = a || {}, v.isArray(a) && l(h, o) ? h[o].bind(a) : v.isObject(a) && l(t, o) ? t[o].bind(a) : C.apply(this, arguments));\n }, e;\n }\n U.exports = _;\n })\n /******/\n ])\n );\n });\n })(we)), we.exports;\n}\nvar Me = Ke();\nconst je = /* @__PURE__ */ Pe(Me);\nfunction De(fe) {\n const Oe = {};\n for (const [j, N] of Object.entries(fe.templates))\n Oe[j] = je.compile(N);\n const U = (j) => {\n j.result = {};\n for (const N of Object.keys(fe.templates))\n j.result[N] = Oe[N].render(j.properties || {});\n };\n return \"features\" in fe.geojson ? fe.geojson.features.forEach(U) : U(fe.geojson), fe.geojson;\n}\nconst Ue = {\n templateExtractor: De\n};\nexport {\n Ue as Quyuan,\n Ue as default\n};\n","import Quyuan from \"@c4h/quyuan/template\";\nimport { normalizeArg } from \"./functions\";\n\n// poiTemplate・iconTemplate は Nunjucks の記法(Quyuan の @c4h/quyuan/template)で評価する。\n// 1.2 までの旧い記法(<% %>・<%= %>・<%- %>・${ })は 1.3.0 から評価しない(#93)。\n// Nunjucks はサンドボックスではない: テンプレートの文字列そのものを第三者が書ける構成では、\n// 引き続きページの権限でコードが動きうる(CHANGELOG の Security を参照)。\n\ntype TemplateKey = \"poiTemplate\" | \"iconTemplate\";\n\n// {% raw %}…{% endraw %}・{% verbatim %}…{% endverbatim %} の中は判定の対象から外す。\n// 空白制御の \"-\" は開き・閉じの両側とも受け付ける(閉じ側の \"-\" は Nunjucks では評価の例外になるが、\n// その場合も評価の例外として扱われ、どちらにしても評価はされない)。\nconst RAW_BLOCK = /\\{%-?\\s*(raw|verbatim)\\s*-?%\\}[\\s\\S]*?\\{%-?\\s*end\\1\\s*-?%\\}/g;\nconst LEGACY_ERB = /<%[\\s\\S]*?%>/;\nconst LEGACY_ES = /\\$\\{[^}]*\\}/;\n\nconst LEGACY_MESSAGE_PREFIX =\n 'MaplatApp: poiTemplate/iconTemplate written in the lodash.template syntax (<% %>, <%= %>, <%- %>, ${ }) is no longer evaluated since @maplat/core 1.3.0, and was ignored. ' +\n 'Rewrite it in the Nunjucks syntax ({{ }}, {% %}); wrap literal \"<%\" or \"${\" in {% raw %}...{% endraw %}.';\nconst LEGACY_MESSAGE_SUFFIX =\n 'See the \"Removed\" section of the 1.3.0 CHANGELOG: https://github.com/code4history/MaplatCore/blob/master/CHANGELOG.md';\n\nlet legacyWarned = false;\nlet renderErrorWarned = false;\n\n/** テンプレートの先頭 80 文字(警告の文字列にだけ入れる。DOM・URL には入れない) */\nfunction head(src: string): string {\n return Array.from(src).slice(0, 80).join(\"\");\n}\n\n/**\n * 1.2 までの旧い記法(<% %>・${ })で書かれたテンプレートかどうか。\n * raw・verbatim の中を除いた文字列に <%…%> または ${…} があれば旧い記法とみなす。\n * @internal\n */\nexport function isLegacyTemplate(src: string): boolean {\n const stripped = src.replace(RAW_BLOCK, \"\");\n return LEGACY_ERB.test(stripped) || LEGACY_ES.test(stripped);\n}\n\n/**\n * 「1 回だけ」の警告の記憶を戻す(テストの間の初期化用)。\n * 公開面ではない(@maplat/core の入口からは出さない)。\n * @internal\n */\nexport function resetTemplateWarnings(): void {\n legacyWarned = false;\n renderErrorWarned = false;\n}\n\nfunction warnLegacy(key: TemplateKey, src: string): void {\n if (legacyWarned) return;\n legacyWarned = true;\n console.warn(`${LEGACY_MESSAGE_PREFIX} First template found (${key}): \"${head(src)}\". ${LEGACY_MESSAGE_SUFFIX}`);\n}\n\nfunction warnRenderError(src: string, e: unknown): void {\n if (renderErrorWarned) return;\n renderErrorWarned = true;\n const raw = e instanceof Error ? e.message : String(e);\n // Nunjucks の例外は「(unknown path) [Line 1, Column 6]」と理由が別の行に分かれるので、1 行にまとめる\n const reason = raw\n .split(\"\\n\")\n .map(line => line.trim())\n .filter(line => line)\n .join(\" \");\n console.warn(`MaplatApp: a poiTemplate/iconTemplate failed to render and was ignored: ${reason}. First template: \"${head(src)}\".`);\n}\n\n/**\n * 1 つのテンプレートを評価する。旧い記法・評価の例外のときは undefined を返す(警告はそれぞれ 1 回)。\n */\nfunction renderTemplate(key: TemplateKey, src: string, data: object): string | undefined {\n if (isLegacyTemplate(src)) {\n warnLegacy(key, src);\n return undefined;\n }\n try {\n const feature: any = { type: \"Feature\", geometry: null, properties: data };\n Quyuan.templateExtractor({ geojson: feature, templates: { t: src } });\n return feature.result.t;\n } catch (e) {\n warnRenderError(src, e);\n return undefined;\n }\n}\n\n/** iconTemplate を評価して JSON のオブジェクトにする。失敗なら undefined(その段の iconTemplate は無いものとみなす) */\nfunction renderIconTemplate(src: string, data: object): { icon?: unknown; selectedIcon?: unknown } | undefined {\n const out = renderTemplate(\"iconTemplate\", src, data);\n if (out === undefined) return undefined;\n let parsed: unknown;\n try {\n parsed = JSON.parse(out);\n } catch (e) {\n warnRenderError(src, e);\n return undefined;\n }\n if (parsed === null || typeof parsed !== \"object\" || Array.isArray(parsed)) {\n warnRenderError(src, new Error(\"iconTemplate did not produce a JSON object\"));\n return undefined;\n }\n return parsed as { icon?: unknown; selectedIcon?: unknown };\n}\n\nexport function createIconSet(data: any, ...ancestors: any[]) {\n const dataCopy = normalizeArg(Object.assign({}, data));\n if (dataCopy.icon) return dataCopy;\n const fromAncestor = ancestors.reduce((prev, curr) => {\n if (prev) return prev;\n const iconTemplate = curr.iconTemplate;\n const fromTemplate = iconTemplate ? renderIconTemplate(iconTemplate, dataCopy) : undefined;\n if (fromTemplate) {\n return fromTemplate;\n } else if (curr.icon) {\n return {\n icon: curr.icon,\n selectedIcon: curr.selectedIcon\n };\n }\n }, undefined);\n if (fromAncestor) {\n dataCopy.icon = fromAncestor.icon;\n dataCopy.selectedIcon = fromAncestor.selectedIcon;\n }\n return dataCopy;\n}\n\nexport function createHtmlFromTemplate(data: any, ...ancestors: any[]) {\n data = normalizeArg(data);\n if (data.html) return data;\n return (\n ancestors.reduce((prev, curr) => {\n if (prev) return prev;\n const poiTemplate = curr.poiTemplate;\n if (poiTemplate) {\n const html = renderTemplate(\"poiTemplate\", poiTemplate, data);\n if (html === undefined) return undefined;\n data.html = html;\n data.poiStyle = data.poiStyle || curr.poiStyle;\n return data;\n }\n }, undefined) || data\n );\n}\n","// 範囲外の POI の扱い(判定・描く層・押せる条件・選んでいる間の引き戻し)。\n//\n// 前面の地図の範囲に無い POI は、背面の地図(古地図の下の基本地図)にメルカトルの\n// 座標で立てる。MaplatApp.prototype にメソッドを足さない(旧 API の一覧を変えない)\n// ため、処理はこのモジュールの関数と、インスタンスのフィールドに置く。\nimport { Feature } from \"ol\";\nimport { Point } from \"ol/geom\";\nimport { transform } from \"ol/proj\";\nimport { markerStyleFrom } from \"./map_ex\";\n\n/** 地図の marker 層の名前(MaplatMap のコンストラクタが作る層)。 */\nconst MARKER_LAYER = \"marker\";\n\n/**\n * 背面のピンを紙の上でも押せるようにする透過度の下限(0〜100)。\n * `null`(既定)は「紙が覆っている所では押せない」。数を入れると、背面の地図の透過度が\n * その数以上なら紙の上でも押せる。実行中に切り替える口は setBackPinHitMinTransparency。\n */\nexport let BACK_PIN_HIT_MIN_TRANSPARENCY: number | null = null;\n\n/** 上の下限を切り替える(既定は null)。 */\nexport function setBackPinHitMinTransparency(value: number | null): void {\n BACK_PIN_HIT_MIN_TRANSPARENCY = value;\n}\n\n/** 範囲外を選んでいる間の状態。`pending` は判定の結果待ち。 */\nexport interface OutsideSelection {\n id: string;\n merc?: number[];\n pending?: boolean;\n}\n\n/**\n * このモジュールが読む `app` の面(MaplatApp のインスタンス、または同じ形の stub)。\n * ここに載っているもの以外は読まない。\n */\nexport interface OutsidePoisApp {\n from?: any;\n backMap?: any;\n mapObject?: any;\n logger?: any;\n overlay?: boolean;\n __selectedMarker?: any;\n __outsideSelection?: OutsideSelection;\n __hideOutsidePois?: boolean;\n getTransparency?(): any;\n getMarker?(id: any): any;\n setViewpoint?(viewpoint: any): void;\n}\n\n/** 判定の結果。 */\nexport type MarkerClass =\n | { kind: \"inside\"; xy: number[] }\n | { kind: \"outside\"; merc: number[] }\n | { kind: \"skip\" };\n\n/** 層へ置く 1 件。`data` は地物の `datum`(クリックで返る値)。 */\nexport interface MarkerItem {\n data: any;\n icon?: any;\n /** 前面の座標(範囲内の POI) */\n xy?: number[];\n /** メルカトル(範囲外の POI) */\n merc?: number[];\n}\n\n/** 前面と背面へ置く 1 回分。 */\nexport interface MarkerLayers {\n front: MarkerItem[];\n back: MarkerItem[];\n}\n\nconst lnglatOf = (data: any): number[] =>\n data.lnglat || [data.lng || data.longitude, data.lat || data.latitude];\n\n/**\n * POI が今の地図(前面)の範囲にあるかを判定する。\n * 座標の与え方が `coordinates`(メルカトル)・経緯度なら、範囲外をメルカトルで返す。\n * `x`・`y`(画素)は地図の座標が分かってもメルカトルが分からないので、範囲外なら描かない。\n */\nexport async function classifyMarker(\n app: OutsidePoisApp,\n data: any\n): Promise {\n const src = app.from;\n if (!src) return { kind: \"skip\" };\n const inside = (xy: any): boolean =>\n !!xy && !!src.insideCheckSysCoord(xy);\n if (data.coordinates) {\n const xy = await src.merc2SysCoordAsync_ignoreBackground(data.coordinates);\n if (inside(xy)) return { kind: \"inside\", xy: xy as number[] };\n return { kind: \"outside\", merc: data.coordinates };\n }\n if (data.x && data.y) {\n const xy = src.xy2SysCoord([data.x, data.y]);\n if (inside(xy)) return { kind: \"inside\", xy };\n return { kind: \"skip\" };\n }\n const merc = transform(lnglatOf(data), \"EPSG:4326\", \"EPSG:3857\");\n const xy = await src.merc2SysCoordAsync_ignoreBackground(merc);\n if (inside(xy)) return { kind: \"inside\", xy: xy as number[] };\n return { kind: \"outside\", merc };\n}\n\n/** 前面の地図がメルカトルをそのまま座標に使う地図(TMS・envelope を持つ基本地図)か。 */\nexport function isMercatorFront(src: any): boolean {\n return typeof src?.isWmts === \"function\" ? src.isWmts() === true : false;\n}\n\n/**\n * 範囲外の POI をどの層へ置くか。`none` なら描かない。\n * 前面が古地図で背面があれば背面、前面がメルカトルの地図なら前面、\n * 背面を持たない古地図(overlay 偽)と非表示の指定では描かない。\n */\nexport function outsideMarkerLayer(app: OutsidePoisApp): \"front\" | \"back\" | \"none\" {\n if (app.__hideOutsidePois) return \"none\";\n if (!app.from) return \"none\";\n if (isMercatorFront(app.from)) return \"front\";\n return app.backMap ? \"back\" : \"none\";\n}\n\n/**\n * 判定の結果を層ごとの配列に振り分ける(選択中は渡された並びの最後にある)。\n * 範囲内は前面の座標で前面へ、範囲外は置く層の規則(outsideMarkerLayer)に従う。\n */\nexport function placeMarkerLayers(\n app: OutsidePoisApp,\n items: MarkerItem[],\n classes: MarkerClass[]\n): MarkerLayers {\n const layer = outsideMarkerLayer(app);\n const front: MarkerItem[] = [];\n const back: MarkerItem[] = [];\n items.forEach((item, index) => {\n const classified = classes[index];\n if (classified.kind === \"inside\") {\n front.push({ ...item, xy: classified.xy });\n } else if (classified.kind === \"outside\" && layer === \"back\") {\n back.push({ ...item, merc: classified.merc });\n } else if (classified.kind === \"outside\" && layer === \"front\") {\n // 前面がメルカトルの地図(TMS・基本地図)は前面の座標がメルカトル\n front.push({ ...item, xy: classified.merc });\n }\n });\n return { front, back };\n}\n\n/** 地図の marker 層の source(無ければ undefined)。 */\nexport function markerSourceOf(map: any): any {\n return map?.getSource ? map.getSource(MARKER_LAYER) : undefined;\n}\n\nconst featureOf = (item: MarkerItem): Feature => {\n const xy = (item.xy || item.merc) as number[];\n const feature = new Feature({\n geometry: new Point(xy),\n datum: item.data\n });\n const style = markerStyleFrom(item.icon);\n if (style) feature.setStyle(style);\n return feature;\n};\n\n/**\n * 前面と(あれば)背面の marker 層を 1 回で入れ替える。\n * 消すのは呼ばれた時点の 1 区間だけで、この関数の中では await しない(ちらつかない)。\n * 前面の地図の種類によらず、背面があれば必ず背面の marker 層も消す(前の地図の\n * 範囲外のピンを残さないため)。\n */\nexport function replaceMarkers(app: OutsidePoisApp, layers: MarkerLayers): void {\n const front = markerSourceOf(app.mapObject);\n if (!front) return;\n const back = app.backMap ? markerSourceOf(app.backMap) : undefined;\n front.clear();\n if (back) back.clear();\n if (layers.front.length > 0) {\n front.addFeatures(layers.front.map(featureOf));\n }\n if (back && layers.back.length > 0) {\n back.addFeatures(layers.back.map(featureOf));\n }\n}\n\n/**\n * 1 件を前面か背面へ足す(公開の setMarker の経路。層は消さない)。\n * 置く層は classifyMarker の結果と outsideMarkerLayer で決める。\n */\nexport function addMarkerItem(\n app: OutsidePoisApp,\n data: any,\n icon: any,\n classified: MarkerClass\n): void {\n if (classified.kind === \"skip\") return;\n const toBack =\n classified.kind === \"outside\" && outsideMarkerLayer(app) === \"back\";\n const map = toBack ? app.backMap : app.mapObject;\n if (!map?.setMarker) return;\n const xy = classified.kind === \"inside\" ? classified.xy : classified.merc;\n map.setMarker(xy, { datum: data }, icon);\n}\n\n/** 背面の地図の透過度(0〜100)。分からなければ 0。 */\nfunction transparencyOf(app: OutsidePoisApp): number {\n try {\n const value = Number(app.getTransparency ? app.getTransparency() : 0);\n return Number.isFinite(value) ? value : 0;\n } catch {\n return 0;\n }\n}\n\n/**\n * その画面の点で背面のピンが押せるか。\n * 古地図の紙が覆っている所では押せない(`BACK_PIN_HIT_MIN_TRANSPARENCY` が null のとき)。\n */\nexport function backPinHittable(\n app: OutsidePoisApp,\n coordinate: number[]\n): boolean {\n const src = app.from;\n if (!src?.insideCheckSysCoord) return false;\n if (!src.insideCheckSysCoord(coordinate)) return true;\n const min = BACK_PIN_HIT_MIN_TRANSPARENCY;\n if (min === null || min === undefined) return false;\n return transparencyOf(app) >= min;\n}\n\n/**\n * クリック・カーソルの点で背面の marker 層のピンに当たる POI の datum を返す。\n * 前面で当たらなかったときにだけ使う。紙が覆っている所では何も返さない。\n */\nexport function backMarkerDataAt(\n app: OutsidePoisApp,\n evt: { pixel: number[]; coordinate: number[] }\n): any[] {\n const backMap = app.backMap;\n if (!backMap?.forEachFeatureAtPixel) return [];\n if (!backPinHittable(app, evt.coordinate)) return [];\n const markerLayer = backMap.getLayer ? backMap.getLayer(MARKER_LAYER) : undefined;\n const data: any[] = [];\n backMap.forEachFeatureAtPixel(\n evt.pixel,\n (feature: any) => {\n const datum = feature?.get ? feature.get(\"datum\") : undefined;\n if (datum) data.push(datum);\n },\n markerLayer ? { layerFilter: (layer: any) => layer === markerLayer } : undefined\n );\n return data;\n}\n\n/** 引き戻しに使う view の面(OL の View、または同じ形の stub)。 */\nexport interface PullBackView {\n getCenter(): number[] | undefined;\n setCenter(center: number[]): void;\n}\n\n/**\n * 中心が地図の縁の外へ出たら、範囲内の点へ戻す。\n * 範囲外の POI を選んでいる間(`__outsideSelection` がある間)と、視点の確定を\n * 保留している間は何もしない。\n */\nexport function pullBackInside(app: OutsidePoisApp, view: PullBackView): void {\n if (!app.from || !view) return;\n if (app.__outsideSelection) return;\n // 視点の確定の保留中は、中心が切替前の地図の座標系の値のままなので触らない。\n if ((app as any).__pendingView) return;\n const src = app.from;\n const center = view.getCenter();\n if (!center) return;\n if (!src.insideCheckSysCoord(center)) {\n const next = src.modulateSysCoordInside(center);\n if (next) view.setCenter(next);\n }\n}\n\nconst latlngOfMerc = (merc: number[]) => {\n const lnglat = transform(merc, \"EPSG:3857\", \"EPSG:4326\");\n return { longitude: lnglat[0], latitude: lnglat[1] };\n};\n\n/**\n * 範囲外の POI を中心に据える。\n * 前面が古地図なら経緯度で視点を決め(今の selectMarker と同じ道)、\n * 前面がメルカトルの地図(TMS・基本地図)なら前面のメルカトルをそのまま中心にする。\n */\nexport function centerOnOutsidePoi(app: OutsidePoisApp, merc: number[]): void {\n if (!app.from || !app.mapObject) return;\n if (isMercatorFront(app.from)) {\n app.mapObject.getView().setCenter(merc);\n } else if (app.setViewpoint) {\n app.setViewpoint(latlngOfMerc(merc));\n }\n}\n\n/**\n * 描き直しの判定が済んだ後に、範囲外を選んでいる状態を切り替え先の地図に合わせる。\n * (1) その POI が無い → 選択を外して縁の内側へ引き戻す\n * (2) 範囲内になった → 選択は続け、中心をその POI に合わせる\n * (3) まだ範囲外 → 中心をその POI に合わせる(outOfMap は出さない)\n * `classified` は描き直しで判定した結果(POI が無ければ undefined)。\n * `options.recenter` は中心をその POI に合わせるか。省くと「判定待ちのときだけ」に\n * なる(描き直しからの決め直しで、利用者が動かした視点を引き戻さない)。\n */\nexport function settleOutsideSelection(\n app: OutsidePoisApp,\n classified: MarkerClass | undefined,\n options?: { recenter?: boolean }\n): void {\n const selection = app.__outsideSelection;\n if (!selection) return;\n const recenter = options?.recenter ?? !!selection.pending;\n if (!classified || classified.kind === \"skip\") {\n delete app.__outsideSelection;\n delete app.__selectedMarker;\n const view = app.mapObject?.getView?.();\n // 直前に __outsideSelection を消しているので、同じインスタンスのまま引き戻す。\n // インスタンスを展開すると prototype の getter が落ちるため、展開しない。\n if (view) pullBackInside(app, view);\n return;\n }\n if (classified.kind === \"inside\") {\n // 範囲内になったら状態は必ず解く(中心を寄せるかは recenter で決める)\n delete app.__outsideSelection;\n const data = app.getMarker ? app.getMarker(selection.id) : undefined;\n if (recenter && data && app.setViewpoint) {\n app.setViewpoint({\n latitude: data.lnglat ? data.lnglat[1] : data.lat ?? data.latitude,\n longitude: data.lnglat ? data.lnglat[0] : data.lng ?? data.longitude\n });\n }\n return;\n }\n app.__outsideSelection = { id: selection.id, merc: classified.merc };\n if (recenter) centerOnOutsidePoi(app, classified.merc);\n}\n","import BaseEvent from 'ol/events/Event';\r\nimport BaseObject from 'ol/Object';\r\nimport { randomFromCenter } from \"./math_ex\";\r\nimport {toRadians} from 'ol/math';\r\n\r\nconst Property = {\r\n ACCURACY: 'accuracy',\r\n ACCURACY_GEOMETRY: 'accuracyGeometry',\r\n ALTITUDE: 'altitude',\r\n ALTITUDE_ACCURACY: 'altitudeAccuracy',\r\n HEADING: 'heading',\r\n POSITION: 'position',\r\n PROJECTION: 'projection',\r\n SPEED: 'speed',\r\n TRACKING: 'tracking',\r\n TRACKING_OPTIONS: 'trackingOptions',\r\n};\r\n\r\nconst GeolocationErrorType = {\r\n ERROR: 'error',\r\n};\r\n\r\ntype GeolocationErrorOptions = {\r\n code: number;\r\n message: string;\r\n};\r\n\r\ntype GeolocationOptions = {\r\n timerBase?: boolean;\r\n homePosition?: number[];\r\n trackingOptions?: {\r\n enableHighAccuracy: boolean;\r\n timeout: number;\r\n maximumAge: number;\r\n };\r\n tracking?: boolean;\r\n};\r\n\r\ntype PositionObject = {\r\n coords: {\r\n longitude: number;\r\n latitude: number;\r\n accuracy: number;\r\n altitude?: number;\r\n altitudeAccuracy?: number;\r\n heading?: number;\r\n speed?: number;\r\n };\r\n};\r\n\r\nexport class GeolocationError extends BaseEvent {\r\n code: number;\r\n message: string;\r\n constructor(error: GeolocationErrorOptions) {\r\n super(GeolocationErrorType.ERROR);\r\n this.code = error.code;\r\n this.message = error.message;\r\n }\r\n}\r\n\r\nexport class Geolocation extends BaseObject {\r\n task_id_?: NodeJS.Timer | number;\r\n timer_base_ = false;\r\n home_position_: number[] | boolean = false;\r\n\r\n constructor(options?: GeolocationOptions) {\r\n super();\r\n\r\n // Methods are inherited from BaseObject\r\n // this.on, this.once, this.un are available\r\n\r\n options = options || {} as GeolocationOptions;\r\n\r\n this.timer_base_ = options.timerBase !== undefined ? options.timerBase : false;\r\n\r\n this.task_id_ = undefined;\r\n\r\n this.home_position_ = options.homePosition !== undefined ? options.homePosition : false;\r\n\r\n this.addChangeListener(Property.TRACKING, this.handleTrackingChanged_);\r\n\r\n if (options.trackingOptions !== undefined) {\r\n this.setTrackingOptions(options.trackingOptions);\r\n } else {\r\n this.setTrackingOptions({\r\n enableHighAccuracy: true,\r\n timeout: 5000,\r\n maximumAge: 1000\r\n });\r\n }\r\n\r\n this.setTracking(options.tracking !== undefined ? options.tracking : false);\r\n }\r\n\r\n disposeInternal() {\r\n this.setTracking(false);\r\n super.disposeInternal();\r\n }\r\n\r\n handleTrackingChanged_() {\r\n if (this.timer_base_) {\r\n const tracking = this.getTracking();\r\n const trackingOptions = this.getTrackingOptions();\r\n if (tracking && this.task_id_ === undefined) {\r\n const allowGps = window.confirm(\"Allow GPS?\");\r\n if (allowGps) {\r\n this.task_id_ = setInterval(this.timerPositionChange_.bind(this), trackingOptions.maximumAge);\r\n } else {\r\n setTimeout(this.timerPositionError_.bind(this), trackingOptions.maximumAge * 10);\r\n }\r\n } else if (!tracking && this.task_id_ !== undefined) {\r\n clearInterval(this.task_id_ as number);\r\n this.task_id_ = undefined;\r\n }\r\n } else {\r\n if ('geolocation' in navigator) {\r\n const tracking = this.getTracking();\r\n if (tracking && this.task_id_ === undefined) {\r\n this.task_id_ = navigator.geolocation.watchPosition(\r\n this.positionChange_.bind(this) as PositionCallback,\r\n this.positionError_.bind(this),\r\n this.getTrackingOptions(),\r\n );\r\n } else if (!tracking && this.task_id_ !== undefined) {\r\n navigator.geolocation.clearWatch(this.task_id_ as number);\r\n this.task_id_ = undefined;\r\n }\r\n }\r\n }\r\n\r\n }\r\n\r\n timerPositionChange_() {\r\n const coords = {\r\n longitude: randomFromCenter((this.home_position_ as number[])[0], 0.05),\r\n latitude: randomFromCenter((this.home_position_ as number[])[1], 0.05),\r\n accuracy: randomFromCenter(15.0, 10)\r\n };\r\n this.positionChange_({coords});\r\n }\r\n\r\n positionChange_(position: PositionObject) {\r\n const coords = position.coords;\r\n this.set(Property.ACCURACY, coords.accuracy);\r\n this.set(\r\n Property.ALTITUDE,\r\n coords.altitude === null ? undefined : coords.altitude,\r\n );\r\n this.set(\r\n Property.ALTITUDE_ACCURACY,\r\n coords.altitudeAccuracy === null ? undefined : coords.altitudeAccuracy,\r\n );\r\n this.set(\r\n Property.HEADING,\r\n coords.heading === null ? undefined : toRadians(coords.heading!),\r\n );\r\n this.set(Property.POSITION, [coords.longitude, coords.latitude]);\r\n this.set(Property.SPEED, coords.speed === null ? undefined : coords.speed);\r\n this.changed();\r\n }\r\n\r\n timerPositionError_() {\r\n const code = Math.floor(Math.random() * 3) + 1;\r\n const error = {\r\n code,\r\n message: code === 1 ? \"User denied Geolocation\" : code === 2 ? \"Position unavailable\" : \"Timeout expired\"\r\n }\r\n this.positionError_(error);\r\n }\r\n\r\n positionError_(error: GeolocationErrorOptions) {\r\n const desc = new GeolocationError(error);\r\n this.dispatchEvent(desc);\r\n }\r\n\r\n getAccuracy() {\r\n return (this.get(Property.ACCURACY));\r\n }\r\n\r\n getAltitude() {\r\n return (this.get(Property.ALTITUDE));\r\n }\r\n\r\n getAltitudeAccuracy() {\r\n return (this.get(Property.ALTITUDE_ACCURACY));\r\n }\r\n\r\n getHeading() {\r\n return (this.get(Property.HEADING));\r\n }\r\n\r\n getPosition() {\r\n return (this.get(Property.POSITION));\r\n }\r\n\r\n getSpeed() {\r\n return (this.get(Property.SPEED));\r\n }\r\n\r\n getTracking() {\r\n return (this.get(Property.TRACKING));\r\n }\r\n\r\n getTrackingOptions() {\r\n return (this.get(Property.TRACKING_OPTIONS));\r\n }\r\n\r\n setTracking(tracking: boolean) {\r\n this.set(Property.TRACKING, tracking);\r\n }\r\n\r\n setTrackingOptions(options: any) {\r\n this.set(Property.TRACKING_OPTIONS, options);\r\n }\r\n};","/*! @license DOMPurify 3.4.17 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.17/LICENSE */\nfunction _OverloadYield(e, d) {\n\tthis.v = e, this.k = d;\n}\nfunction _arrayLikeToArray(r, a) {\n\t(null == a || a > r.length) && (a = r.length);\n\tfor (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];\n\treturn n;\n}\nfunction _arrayWithHoles(r) {\n\tif (Array.isArray(r)) return r;\n}\nfunction _iterableToArrayLimit(r, l) {\n\tvar t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"];\n\tif (null != t) {\n\t\tvar e, n, i, u, a = [], f = !0, o = !1;\n\t\ttry {\n\t\t\tif (i = (t = t.call(r)).next, 0 === l) {\n\t\t\t\tif (Object(t) !== t) return;\n\t\t\t\tf = !1;\n\t\t\t} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);\n\t\t} catch (r) {\n\t\t\to = !0, n = r;\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tif (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;\n\t\t\t} finally {\n\t\t\t\tif (o) throw n;\n\t\t\t}\n\t\t}\n\t\treturn a;\n\t}\n}\nfunction _nonIterableRest() {\n\tthrow new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\n/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */\nfunction _slicedToArray(r, e) {\n\treturn _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();\n}\nfunction _unsupportedIterableToArray(r, a) {\n\tif (r) {\n\t\tif (\"string\" == typeof r) return _arrayLikeToArray(r, a);\n\t\tvar t = {}.toString.call(r).slice(8, -1);\n\t\treturn \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;\n\t}\n}\nfunction AsyncGenerator(e) {\n\tvar t, n;\n\tfunction resume(t, n) {\n\t\ttry {\n\t\t\tvar r = e[t](n), o = r.value, u = o instanceof _OverloadYield;\n\t\t\tPromise.resolve(u ? o.v : o).then(function(n) {\n\t\t\t\tif (u) {\n\t\t\t\t\tvar i = \"return\" === t && o.k ? t : \"next\";\n\t\t\t\t\tif (!o.k || n.done) return resume(i, n);\n\t\t\t\t\tn = e[i](n).value;\n\t\t\t\t}\n\t\t\t\tsettle(!!r.done, n);\n\t\t\t}, function(e) {\n\t\t\t\tresume(\"throw\", e);\n\t\t\t});\n\t\t} catch (e) {\n\t\t\tsettle(2, e);\n\t\t}\n\t}\n\tfunction settle(e, r) {\n\t\t2 === e ? t.reject(r) : t.resolve({\n\t\t\tvalue: r,\n\t\t\tdone: e\n\t\t}), (t = t.next) ? resume(t.key, t.arg) : n = null;\n\t}\n\tthis._invoke = function(e, r) {\n\t\treturn new Promise(function(o, u) {\n\t\t\tvar i = {\n\t\t\t\tkey: e,\n\t\t\t\targ: r,\n\t\t\t\tresolve: o,\n\t\t\t\treject: u,\n\t\t\t\tnext: null\n\t\t\t};\n\t\t\tn ? n = n.next = i : (t = n = i, resume(e, r));\n\t\t});\n\t}, \"function\" != typeof e.return && (this.return = void 0);\n}\nAsyncGenerator.prototype[\"function\" == typeof Symbol && Symbol.asyncIterator || \"@@asyncIterator\"] = function() {\n\treturn this;\n}, AsyncGenerator.prototype.next = function(e) {\n\treturn this._invoke(\"next\", e);\n}, AsyncGenerator.prototype.throw = function(e) {\n\treturn this._invoke(\"throw\", e);\n}, AsyncGenerator.prototype.return = function(e) {\n\treturn this._invoke(\"return\", e);\n};\nconst entries = Object.entries;\nconst setPrototypeOf = Object.setPrototypeOf;\nconst isFrozen = Object.isFrozen;\nconst getPrototypeOf = Object.getPrototypeOf;\nconst getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\nlet freeze = Object.freeze;\nlet seal = Object.seal;\nlet create = Object.create;\nlet _ref = typeof Reflect !== \"undefined\" && Reflect;\nlet apply = _ref.apply;\nlet construct = _ref.construct;\nif (!freeze) freeze = function freeze(x) {\n\treturn x;\n};\nif (!seal) seal = function seal(x) {\n\treturn x;\n};\nif (!apply) apply = function apply(func, thisArg) {\n\tfor (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) args[_key - 2] = arguments[_key];\n\treturn func.apply(thisArg, args);\n};\nif (!construct) construct = function construct(Func) {\n\tfor (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) args[_key2 - 1] = arguments[_key2];\n\treturn new Func(...args);\n};\nconst arrayForEach = unapply(Array.prototype.forEach);\nArray.prototype.indexOf;\nconst arrayLastIndexOf = unapply(Array.prototype.lastIndexOf);\nconst arrayPop = unapply(Array.prototype.pop);\nconst arrayPush = unapply(Array.prototype.push);\nconst arraySlice = unapply(Array.prototype.slice);\nconst arraySplice = unapply(Array.prototype.splice);\nconst arrayIsArray = Array.isArray;\nconst setCreate = unconstruct(Set);\nconst setAdd = unapply(Set.prototype.add);\nconst setHas = unapply(Set.prototype.has);\nconst stringToLowerCase = unapply(String.prototype.toLowerCase);\nconst stringToString = unapply(String.prototype.toString);\nconst stringMatch = unapply(String.prototype.match);\nconst stringReplace = unapply(String.prototype.replace);\nconst stringIndexOf = unapply(String.prototype.indexOf);\nconst stringTrim = unapply(String.prototype.trim);\nconst numberToString = unapply(Number.prototype.toString);\nconst booleanToString = unapply(Boolean.prototype.toString);\nconst bigintToString = typeof BigInt === \"undefined\" ? null : unapply(BigInt.prototype.toString);\nconst symbolToString = typeof Symbol === \"undefined\" ? null : unapply(Symbol.prototype.toString);\nconst objectHasOwnProperty = unapply(Object.prototype.hasOwnProperty);\nconst objectToString = unapply(Object.prototype.toString);\nconst regExpTest = unapply(RegExp.prototype.test);\nconst typeErrorCreate = unconstruct(TypeError);\n/**\n* Creates a new function that calls the given function with a specified thisArg and arguments.\n*\n* @param func - The function to be wrapped and called.\n* @returns A new function that calls the given function with a specified thisArg and arguments.\n*/\nfunction unapply(func) {\n\treturn function(thisArg) {\n\t\tif (thisArg instanceof RegExp) thisArg.lastIndex = 0;\n\t\tfor (var _len3 = arguments.length, args = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) args[_key3 - 1] = arguments[_key3];\n\t\treturn apply(func, thisArg, args);\n\t};\n}\n/**\n* Creates a new function that constructs an instance of the given constructor function with the provided arguments.\n*\n* @param func - The constructor function to be wrapped and called.\n* @returns A new function that constructs an instance of the given constructor function with the provided arguments.\n*/\nfunction unconstruct(Func) {\n\treturn function() {\n\t\tfor (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) args[_key4] = arguments[_key4];\n\t\treturn construct(Func, args);\n\t};\n}\n/**\n* Add properties to a lookup table\n*\n* @param set - The set to which elements will be added.\n* @param array - The array containing elements to be added to the set.\n* @param transformCaseFunc - An optional function to transform the case of each element before adding to the set.\n* @returns The modified set with added elements.\n*/\nfunction addToSet(set, array) {\n\tlet transformCaseFunc = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : stringToLowerCase;\n\tif (setPrototypeOf) setPrototypeOf(set, null);\n\tif (!arrayIsArray(array)) return set;\n\tlet l = array.length;\n\twhile (l--) {\n\t\tlet element = array[l];\n\t\tif (typeof element === \"string\") {\n\t\t\tconst lcElement = transformCaseFunc(element);\n\t\t\tif (lcElement !== element) {\n\t\t\t\tif (!isFrozen(array)) array[l] = lcElement;\n\t\t\t\telement = lcElement;\n\t\t\t}\n\t\t}\n\t\tset[element] = true;\n\t}\n\treturn set;\n}\n/**\n* Clean up an array to harden against CSPP\n*\n* @param array - The array to be cleaned.\n* @returns The cleaned version of the array\n*/\nfunction cleanArray(array) {\n\tfor (let index = 0; index < array.length; index++) if (!objectHasOwnProperty(array, index)) array[index] = null;\n\treturn array;\n}\n/**\n* Shallow clone an object\n*\n* @param object - The object to be cloned.\n* @returns A new object that copies the original.\n*/\nfunction clone(object) {\n\tconst newObject = create(null);\n\tfor (const _ref2 of entries(object)) {\n\t\tvar _ref3 = _slicedToArray(_ref2, 2);\n\t\tconst property = _ref3[0];\n\t\tconst value = _ref3[1];\n\t\tif (objectHasOwnProperty(object, property)) {\n\t\t\tif (arrayIsArray(value)) newObject[property] = cleanArray(value);\n\t\t\telse if (value && typeof value === \"object\" && value.constructor === Object) newObject[property] = clone(value);\n\t\t\telse newObject[property] = value;\n\t\t}\n\t}\n\treturn newObject;\n}\n/**\n* Convert non-node values into strings without depending on direct property access.\n*\n* @param value - The value to stringify.\n* @returns A string representation of the provided value.\n*/\nfunction stringifyValue(value) {\n\tswitch (typeof value) {\n\t\tcase \"string\": return value;\n\t\tcase \"number\": return numberToString(value);\n\t\tcase \"boolean\": return booleanToString(value);\n\t\tcase \"bigint\": return bigintToString ? bigintToString(value) : \"0\";\n\t\tcase \"symbol\": return symbolToString ? symbolToString(value) : \"Symbol()\";\n\t\tcase \"undefined\": return objectToString(value);\n\t\tcase \"function\":\n\t\tcase \"object\": {\n\t\t\tif (value === null) return objectToString(value);\n\t\t\tconst valueAsRecord = value;\n\t\t\tconst valueToString = lookupGetter(valueAsRecord, \"toString\");\n\t\t\tif (typeof valueToString === \"function\") {\n\t\t\t\tconst stringified = valueToString(valueAsRecord);\n\t\t\t\treturn typeof stringified === \"string\" ? stringified : objectToString(stringified);\n\t\t\t}\n\t\t\treturn objectToString(value);\n\t\t}\n\t\tdefault: return objectToString(value);\n\t}\n}\n/**\n* This method automatically checks if the prop is function or getter and behaves accordingly.\n*\n* @param object - The object to look up the getter function in its prototype chain.\n* @param prop - The property name for which to find the getter function.\n* @returns The getter function found in the prototype chain or a fallback function.\n*/\nfunction lookupGetter(object, prop) {\n\twhile (object !== null) {\n\t\tconst desc = getOwnPropertyDescriptor(object, prop);\n\t\tif (desc) {\n\t\t\tif (desc.get) return unapply(desc.get);\n\t\t\tif (typeof desc.value === \"function\") return unapply(desc.value);\n\t\t}\n\t\tobject = getPrototypeOf(object);\n\t}\n\tfunction fallbackValue() {\n\t\treturn null;\n\t}\n\treturn fallbackValue;\n}\n/**\n* Like lookupGetter, but for accessor properties only, and returns null\n* instead of a null-returning fallback when no getter exists on the chain.\n* Lets a caller fall back to a direct property read in environments that\n* lack the getter, where a fallback returning null would be indistinguishable\n* from a legitimate null value (e.g. namespaceURI of a no-namespace element).\n*\n* @param object - The object (usually a prototype) to start the lookup at.\n* @param prop - The accessor property name.\n* @returns The unapplied getter, or null if none was found.\n*/\nfunction lookupAccessor(object, prop) {\n\twhile (object !== null) {\n\t\tconst desc = getOwnPropertyDescriptor(object, prop);\n\t\tif (desc) return desc.get ? unapply(desc.get) : null;\n\t\tobject = getPrototypeOf(object);\n\t}\n\treturn null;\n}\nfunction isRegex(value) {\n\ttry {\n\t\tregExpTest(value, \"\");\n\t\treturn true;\n\t} catch (_unused) {\n\t\treturn false;\n\t}\n}\nconst html$1 = freeze([\n\t\"a\",\n\t\"abbr\",\n\t\"acronym\",\n\t\"address\",\n\t\"area\",\n\t\"article\",\n\t\"aside\",\n\t\"audio\",\n\t\"b\",\n\t\"bdi\",\n\t\"bdo\",\n\t\"big\",\n\t\"blink\",\n\t\"blockquote\",\n\t\"body\",\n\t\"br\",\n\t\"button\",\n\t\"canvas\",\n\t\"caption\",\n\t\"center\",\n\t\"cite\",\n\t\"code\",\n\t\"col\",\n\t\"colgroup\",\n\t\"content\",\n\t\"data\",\n\t\"datalist\",\n\t\"dd\",\n\t\"decorator\",\n\t\"del\",\n\t\"details\",\n\t\"dfn\",\n\t\"dialog\",\n\t\"dir\",\n\t\"div\",\n\t\"dl\",\n\t\"dt\",\n\t\"element\",\n\t\"em\",\n\t\"fieldset\",\n\t\"figcaption\",\n\t\"figure\",\n\t\"font\",\n\t\"footer\",\n\t\"form\",\n\t\"h1\",\n\t\"h2\",\n\t\"h3\",\n\t\"h4\",\n\t\"h5\",\n\t\"h6\",\n\t\"head\",\n\t\"header\",\n\t\"hgroup\",\n\t\"hr\",\n\t\"html\",\n\t\"i\",\n\t\"img\",\n\t\"input\",\n\t\"ins\",\n\t\"kbd\",\n\t\"label\",\n\t\"legend\",\n\t\"li\",\n\t\"main\",\n\t\"map\",\n\t\"mark\",\n\t\"marquee\",\n\t\"menu\",\n\t\"menuitem\",\n\t\"meter\",\n\t\"nav\",\n\t\"nobr\",\n\t\"ol\",\n\t\"optgroup\",\n\t\"option\",\n\t\"output\",\n\t\"p\",\n\t\"picture\",\n\t\"pre\",\n\t\"progress\",\n\t\"q\",\n\t\"rp\",\n\t\"rt\",\n\t\"ruby\",\n\t\"s\",\n\t\"samp\",\n\t\"search\",\n\t\"section\",\n\t\"select\",\n\t\"shadow\",\n\t\"slot\",\n\t\"small\",\n\t\"source\",\n\t\"spacer\",\n\t\"span\",\n\t\"strike\",\n\t\"strong\",\n\t\"style\",\n\t\"sub\",\n\t\"summary\",\n\t\"sup\",\n\t\"table\",\n\t\"tbody\",\n\t\"td\",\n\t\"template\",\n\t\"textarea\",\n\t\"tfoot\",\n\t\"th\",\n\t\"thead\",\n\t\"time\",\n\t\"tr\",\n\t\"track\",\n\t\"tt\",\n\t\"u\",\n\t\"ul\",\n\t\"var\",\n\t\"video\",\n\t\"wbr\"\n]);\nconst svg$1 = freeze([\n\t\"svg\",\n\t\"a\",\n\t\"altglyph\",\n\t\"altglyphdef\",\n\t\"altglyphitem\",\n\t\"animatecolor\",\n\t\"animatemotion\",\n\t\"animatetransform\",\n\t\"circle\",\n\t\"clippath\",\n\t\"defs\",\n\t\"desc\",\n\t\"ellipse\",\n\t\"enterkeyhint\",\n\t\"exportparts\",\n\t\"filter\",\n\t\"font\",\n\t\"g\",\n\t\"glyph\",\n\t\"glyphref\",\n\t\"hkern\",\n\t\"image\",\n\t\"inputmode\",\n\t\"line\",\n\t\"lineargradient\",\n\t\"marker\",\n\t\"mask\",\n\t\"metadata\",\n\t\"mpath\",\n\t\"part\",\n\t\"path\",\n\t\"pattern\",\n\t\"polygon\",\n\t\"polyline\",\n\t\"radialgradient\",\n\t\"rect\",\n\t\"stop\",\n\t\"style\",\n\t\"switch\",\n\t\"symbol\",\n\t\"text\",\n\t\"textpath\",\n\t\"title\",\n\t\"tref\",\n\t\"tspan\",\n\t\"view\",\n\t\"vkern\"\n]);\nconst svgFilters = freeze([\n\t\"feBlend\",\n\t\"feColorMatrix\",\n\t\"feComponentTransfer\",\n\t\"feComposite\",\n\t\"feConvolveMatrix\",\n\t\"feDiffuseLighting\",\n\t\"feDisplacementMap\",\n\t\"feDistantLight\",\n\t\"feDropShadow\",\n\t\"feFlood\",\n\t\"feFuncA\",\n\t\"feFuncB\",\n\t\"feFuncG\",\n\t\"feFuncR\",\n\t\"feGaussianBlur\",\n\t\"feImage\",\n\t\"feMerge\",\n\t\"feMergeNode\",\n\t\"feMorphology\",\n\t\"feOffset\",\n\t\"fePointLight\",\n\t\"feSpecularLighting\",\n\t\"feSpotLight\",\n\t\"feTile\",\n\t\"feTurbulence\"\n]);\nconst svgDisallowed = freeze([\n\t\"animate\",\n\t\"color-profile\",\n\t\"cursor\",\n\t\"discard\",\n\t\"font-face\",\n\t\"font-face-format\",\n\t\"font-face-name\",\n\t\"font-face-src\",\n\t\"font-face-uri\",\n\t\"foreignobject\",\n\t\"hatch\",\n\t\"hatchpath\",\n\t\"mesh\",\n\t\"meshgradient\",\n\t\"meshpatch\",\n\t\"meshrow\",\n\t\"missing-glyph\",\n\t\"script\",\n\t\"set\",\n\t\"solidcolor\",\n\t\"unknown\",\n\t\"use\"\n]);\nconst mathMl$1 = freeze([\n\t\"math\",\n\t\"menclose\",\n\t\"merror\",\n\t\"mfenced\",\n\t\"mfrac\",\n\t\"mglyph\",\n\t\"mi\",\n\t\"mlabeledtr\",\n\t\"mmultiscripts\",\n\t\"mn\",\n\t\"mo\",\n\t\"mover\",\n\t\"mpadded\",\n\t\"mphantom\",\n\t\"mroot\",\n\t\"mrow\",\n\t\"ms\",\n\t\"mspace\",\n\t\"msqrt\",\n\t\"mstyle\",\n\t\"msub\",\n\t\"msup\",\n\t\"msubsup\",\n\t\"mtable\",\n\t\"mtd\",\n\t\"mtext\",\n\t\"mtr\",\n\t\"munder\",\n\t\"munderover\",\n\t\"mprescripts\"\n]);\nconst mathMlDisallowed = freeze([\n\t\"maction\",\n\t\"maligngroup\",\n\t\"malignmark\",\n\t\"mlongdiv\",\n\t\"mscarries\",\n\t\"mscarry\",\n\t\"msgroup\",\n\t\"mstack\",\n\t\"msline\",\n\t\"msrow\",\n\t\"semantics\",\n\t\"annotation\",\n\t\"annotation-xml\",\n\t\"mprescripts\",\n\t\"none\"\n]);\nconst text = freeze([\"#text\"]);\nconst html = freeze([\n\t\"accept\",\n\t\"action\",\n\t\"align\",\n\t\"alt\",\n\t\"autocapitalize\",\n\t\"autocomplete\",\n\t\"autopictureinpicture\",\n\t\"autoplay\",\n\t\"background\",\n\t\"bgcolor\",\n\t\"border\",\n\t\"capture\",\n\t\"cellpadding\",\n\t\"cellspacing\",\n\t\"checked\",\n\t\"cite\",\n\t\"class\",\n\t\"clear\",\n\t\"color\",\n\t\"cols\",\n\t\"colspan\",\n\t\"command\",\n\t\"commandfor\",\n\t\"controls\",\n\t\"controlslist\",\n\t\"coords\",\n\t\"crossorigin\",\n\t\"datetime\",\n\t\"decoding\",\n\t\"default\",\n\t\"dir\",\n\t\"disabled\",\n\t\"disablepictureinpicture\",\n\t\"disableremoteplayback\",\n\t\"download\",\n\t\"draggable\",\n\t\"enctype\",\n\t\"enterkeyhint\",\n\t\"exportparts\",\n\t\"face\",\n\t\"for\",\n\t\"headers\",\n\t\"height\",\n\t\"hidden\",\n\t\"high\",\n\t\"href\",\n\t\"hreflang\",\n\t\"id\",\n\t\"inert\",\n\t\"inputmode\",\n\t\"integrity\",\n\t\"ismap\",\n\t\"kind\",\n\t\"label\",\n\t\"lang\",\n\t\"list\",\n\t\"loading\",\n\t\"loop\",\n\t\"low\",\n\t\"max\",\n\t\"maxlength\",\n\t\"media\",\n\t\"method\",\n\t\"min\",\n\t\"minlength\",\n\t\"multiple\",\n\t\"muted\",\n\t\"name\",\n\t\"nonce\",\n\t\"noshade\",\n\t\"novalidate\",\n\t\"nowrap\",\n\t\"open\",\n\t\"optimum\",\n\t\"part\",\n\t\"pattern\",\n\t\"placeholder\",\n\t\"playsinline\",\n\t\"popover\",\n\t\"popovertarget\",\n\t\"popovertargetaction\",\n\t\"poster\",\n\t\"preload\",\n\t\"pubdate\",\n\t\"radiogroup\",\n\t\"readonly\",\n\t\"rel\",\n\t\"required\",\n\t\"rev\",\n\t\"reversed\",\n\t\"role\",\n\t\"rows\",\n\t\"rowspan\",\n\t\"spellcheck\",\n\t\"scope\",\n\t\"selected\",\n\t\"shape\",\n\t\"size\",\n\t\"sizes\",\n\t\"slot\",\n\t\"span\",\n\t\"srclang\",\n\t\"start\",\n\t\"src\",\n\t\"srcset\",\n\t\"step\",\n\t\"style\",\n\t\"summary\",\n\t\"tabindex\",\n\t\"title\",\n\t\"translate\",\n\t\"type\",\n\t\"usemap\",\n\t\"valign\",\n\t\"value\",\n\t\"width\",\n\t\"wrap\",\n\t\"xmlns\"\n]);\nconst svg = freeze([\n\t\"accent-height\",\n\t\"accumulate\",\n\t\"additive\",\n\t\"alignment-baseline\",\n\t\"amplitude\",\n\t\"ascent\",\n\t\"attributename\",\n\t\"attributetype\",\n\t\"azimuth\",\n\t\"basefrequency\",\n\t\"baseline-shift\",\n\t\"begin\",\n\t\"bias\",\n\t\"by\",\n\t\"class\",\n\t\"clip\",\n\t\"clippathunits\",\n\t\"clip-path\",\n\t\"clip-rule\",\n\t\"color\",\n\t\"color-interpolation\",\n\t\"color-interpolation-filters\",\n\t\"color-profile\",\n\t\"color-rendering\",\n\t\"cx\",\n\t\"cy\",\n\t\"d\",\n\t\"dx\",\n\t\"dy\",\n\t\"diffuseconstant\",\n\t\"direction\",\n\t\"display\",\n\t\"divisor\",\n\t\"dominant-baseline\",\n\t\"dur\",\n\t\"edgemode\",\n\t\"elevation\",\n\t\"end\",\n\t\"exponent\",\n\t\"fill\",\n\t\"fill-opacity\",\n\t\"fill-rule\",\n\t\"filter\",\n\t\"filterunits\",\n\t\"flood-color\",\n\t\"flood-opacity\",\n\t\"font-family\",\n\t\"font-size\",\n\t\"font-size-adjust\",\n\t\"font-stretch\",\n\t\"font-style\",\n\t\"font-variant\",\n\t\"font-weight\",\n\t\"fx\",\n\t\"fy\",\n\t\"g1\",\n\t\"g2\",\n\t\"glyph-name\",\n\t\"glyphref\",\n\t\"gradientunits\",\n\t\"gradienttransform\",\n\t\"height\",\n\t\"href\",\n\t\"id\",\n\t\"image-rendering\",\n\t\"in\",\n\t\"in2\",\n\t\"intercept\",\n\t\"k\",\n\t\"k1\",\n\t\"k2\",\n\t\"k3\",\n\t\"k4\",\n\t\"kerning\",\n\t\"keypoints\",\n\t\"keysplines\",\n\t\"keytimes\",\n\t\"lang\",\n\t\"lengthadjust\",\n\t\"letter-spacing\",\n\t\"kernelmatrix\",\n\t\"kernelunitlength\",\n\t\"lighting-color\",\n\t\"local\",\n\t\"marker-end\",\n\t\"marker-mid\",\n\t\"marker-start\",\n\t\"markerheight\",\n\t\"markerunits\",\n\t\"markerwidth\",\n\t\"maskcontentunits\",\n\t\"maskunits\",\n\t\"max\",\n\t\"mask\",\n\t\"mask-type\",\n\t\"media\",\n\t\"method\",\n\t\"mode\",\n\t\"min\",\n\t\"name\",\n\t\"numoctaves\",\n\t\"offset\",\n\t\"operator\",\n\t\"opacity\",\n\t\"order\",\n\t\"orient\",\n\t\"orientation\",\n\t\"origin\",\n\t\"overflow\",\n\t\"paint-order\",\n\t\"path\",\n\t\"pathlength\",\n\t\"patterncontentunits\",\n\t\"patterntransform\",\n\t\"patternunits\",\n\t\"pointer-events\",\n\t\"points\",\n\t\"preservealpha\",\n\t\"preserveaspectratio\",\n\t\"primitiveunits\",\n\t\"r\",\n\t\"rx\",\n\t\"ry\",\n\t\"radius\",\n\t\"refx\",\n\t\"refy\",\n\t\"repeatcount\",\n\t\"repeatdur\",\n\t\"restart\",\n\t\"result\",\n\t\"rotate\",\n\t\"scale\",\n\t\"seed\",\n\t\"shape-rendering\",\n\t\"slope\",\n\t\"specularconstant\",\n\t\"specularexponent\",\n\t\"spreadmethod\",\n\t\"startoffset\",\n\t\"stddeviation\",\n\t\"stitchtiles\",\n\t\"stop-color\",\n\t\"stop-opacity\",\n\t\"stroke-dasharray\",\n\t\"stroke-dashoffset\",\n\t\"stroke-linecap\",\n\t\"stroke-linejoin\",\n\t\"stroke-miterlimit\",\n\t\"stroke-opacity\",\n\t\"stroke\",\n\t\"stroke-width\",\n\t\"style\",\n\t\"surfacescale\",\n\t\"systemlanguage\",\n\t\"tabindex\",\n\t\"tablevalues\",\n\t\"targetx\",\n\t\"targety\",\n\t\"transform\",\n\t\"transform-origin\",\n\t\"text-anchor\",\n\t\"text-decoration\",\n\t\"text-orientation\",\n\t\"text-rendering\",\n\t\"textlength\",\n\t\"type\",\n\t\"u1\",\n\t\"u2\",\n\t\"unicode\",\n\t\"values\",\n\t\"vector-effect\",\n\t\"viewbox\",\n\t\"visibility\",\n\t\"version\",\n\t\"vert-adv-y\",\n\t\"vert-origin-x\",\n\t\"vert-origin-y\",\n\t\"width\",\n\t\"word-spacing\",\n\t\"wrap\",\n\t\"writing-mode\",\n\t\"xchannelselector\",\n\t\"ychannelselector\",\n\t\"x\",\n\t\"x1\",\n\t\"x2\",\n\t\"xmlns\",\n\t\"y\",\n\t\"y1\",\n\t\"y2\",\n\t\"z\",\n\t\"zoomandpan\"\n]);\nconst mathMl = freeze([\n\t\"accent\",\n\t\"accentunder\",\n\t\"align\",\n\t\"bevelled\",\n\t\"close\",\n\t\"columnalign\",\n\t\"columnlines\",\n\t\"columnspacing\",\n\t\"columnspan\",\n\t\"denomalign\",\n\t\"depth\",\n\t\"dir\",\n\t\"display\",\n\t\"displaystyle\",\n\t\"encoding\",\n\t\"fence\",\n\t\"frame\",\n\t\"height\",\n\t\"href\",\n\t\"id\",\n\t\"largeop\",\n\t\"length\",\n\t\"linethickness\",\n\t\"lquote\",\n\t\"lspace\",\n\t\"mathbackground\",\n\t\"mathcolor\",\n\t\"mathsize\",\n\t\"mathvariant\",\n\t\"maxsize\",\n\t\"minsize\",\n\t\"movablelimits\",\n\t\"notation\",\n\t\"numalign\",\n\t\"open\",\n\t\"rowalign\",\n\t\"rowlines\",\n\t\"rowspacing\",\n\t\"rowspan\",\n\t\"rspace\",\n\t\"rquote\",\n\t\"scriptlevel\",\n\t\"scriptminsize\",\n\t\"scriptsizemultiplier\",\n\t\"selection\",\n\t\"separator\",\n\t\"separators\",\n\t\"stretchy\",\n\t\"subscriptshift\",\n\t\"supscriptshift\",\n\t\"symmetric\",\n\t\"voffset\",\n\t\"width\",\n\t\"xmlns\"\n]);\nconst xml = freeze([\n\t\"xlink:href\",\n\t\"xml:id\",\n\t\"xlink:title\",\n\t\"xml:space\",\n\t\"xmlns:xlink\"\n]);\nconst MUSTACHE_EXPR = seal(/{{[\\w\\W]*|^[\\w\\W]*}}/g);\nconst ERB_EXPR = seal(/<%[\\w\\W]*|^[\\w\\W]*%>/g);\nconst TMPLIT_EXPR = seal(/\\${[\\w\\W]*/g);\nconst DATA_ATTR = seal(/^data-[\\-\\w.\\u00B7-\\uFFFF]+$/);\nconst ARIA_ATTR = seal(/^aria-[\\-\\w]+$/);\nconst IS_ALLOWED_URI = seal(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\\-]+(?:[^a-z+.\\-:]|$))/i);\nconst IS_SCRIPT_OR_DATA = seal(/^(?:\\w+script|data):/i);\nconst ATTR_WHITESPACE = seal(/[\\u0000-\\u0020\\u00A0\\u1680\\u180E\\u2000-\\u2029\\u205F\\u3000]/g);\nconst DOCTYPE_NAME = seal(/^html$/i);\nconst CUSTOM_ELEMENT = seal(/^[a-z][.\\w]*(-[.\\w]+)+$/i);\nconst ELEMENT_MARKUP_PROBE = seal(/<[/\\w!]/g);\nconst COMMENT_MARKUP_PROBE = seal(/<[/\\w]/g);\nconst FALLBACK_TAG_CLOSE = seal(/<\\/no(script|embed|frames)/i);\nconst SELF_CLOSING_TAG = seal(/\\/>/i);\nconst NODE_TYPE = {\n\telement: 1,\n\tattribute: 2,\n\ttext: 3,\n\tcdataSection: 4,\n\tentityReference: 5,\n\tentityNode: 6,\n\tprocessingInstruction: 7,\n\tcomment: 8,\n\tdocument: 9,\n\tdocumentType: 10,\n\tdocumentFragment: 11,\n\tnotation: 12\n};\nconst LITERAL_TEXT_ELEMENTS = freeze(addToSet({}, [\n\t\"style\",\n\t\"script\",\n\t\"xmp\",\n\t\"iframe\",\n\t\"noembed\",\n\t\"noframes\",\n\t\"plaintext\",\n\t\"noscript\"\n]));\nconst getGlobal = function getGlobal() {\n\treturn typeof window === \"undefined\" ? null : window;\n};\n/**\n* Creates a no-op policy for internal use only.\n* Don't export this function outside this module!\n* @param trustedTypes The policy factory.\n* @param purifyHostElement The Script element used to load DOMPurify (to determine policy name suffix).\n* @return The policy created (or null, if Trusted Types\n* are not supported or creating the policy failed).\n*/\nconst _createTrustedTypesPolicy = function _createTrustedTypesPolicy(trustedTypes, purifyHostElement) {\n\tif (typeof trustedTypes !== \"object\" || typeof trustedTypes.createPolicy !== \"function\") return null;\n\tlet suffix = null;\n\tconst ATTR_NAME = \"data-tt-policy-suffix\";\n\tif (purifyHostElement && purifyHostElement.hasAttribute(ATTR_NAME)) suffix = purifyHostElement.getAttribute(ATTR_NAME);\n\tconst policyName = \"dompurify\" + (suffix ? \"#\" + suffix : \"\");\n\ttry {\n\t\treturn trustedTypes.createPolicy(policyName, {\n\t\t\tcreateHTML(html) {\n\t\t\t\treturn html;\n\t\t\t},\n\t\t\tcreateScriptURL(scriptUrl) {\n\t\t\t\treturn scriptUrl;\n\t\t\t}\n\t\t});\n\t} catch (_) {\n\t\tconsole.warn(\"TrustedTypes policy \" + policyName + \" could not be created.\");\n\t\treturn null;\n\t}\n};\nconst _createHooksMap = function _createHooksMap() {\n\treturn {\n\t\tafterSanitizeAttributes: [],\n\t\tafterSanitizeElements: [],\n\t\tafterSanitizeShadowDOM: [],\n\t\tbeforeSanitizeAttributes: [],\n\t\tbeforeSanitizeElements: [],\n\t\tbeforeSanitizeShadowDOM: [],\n\t\tuponSanitizeAttribute: [],\n\t\tuponSanitizeElement: [],\n\t\tuponSanitizeShadowNode: []\n\t};\n};\n/**\n* Resolve a set-valued configuration option: a fresh set built from\n* cfg[key] when it is an own array property (seeded with a clone of\n* options.base when given, case-normalized via options.transform),\n* the fallback set otherwise.\n*\n* @param cfg the cloned, prototype-free configuration object\n* @param key the configuration property to read\n* @param fallback the set to use when the option is absent or not an array\n* @param options transform and optional base set to merge into\n* @returns the resolved set\n*/\nconst _resolveSetOption = function _resolveSetOption(cfg, key, fallback, options) {\n\treturn objectHasOwnProperty(cfg, key) && arrayIsArray(cfg[key]) ? addToSet(options.base ? clone(options.base) : {}, cfg[key], options.transform) : fallback;\n};\n/**\n* Resolve an object-valued configuration option: a prototype-free clone\n* of cfg[key] when it is an own, truthy object property, else a fresh\n* fallback built by makeFallback (fresh on every parse, so a previous\n* parse can never leak state into the next one).\n*\n* @param cfg the cloned, prototype-free configuration object\n* @param key the configuration property to read\n* @param makeFallback builds the fallback value when the option is absent\n* @returns the resolved object\n*/\nconst _resolveObjectOption = function _resolveObjectOption(cfg, key, makeFallback) {\n\tconst value = objectHasOwnProperty(cfg, key) ? cfg[key] : void 0;\n\treturn value && typeof value === \"object\" ? clone(value) : makeFallback();\n};\nfunction createDOMPurify() {\n\tlet window = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : getGlobal();\n\tconst DOMPurify = (root) => createDOMPurify(root);\n\tDOMPurify.version = \"3.4.17\";\n\tDOMPurify.removed = [];\n\tif (!window || !window.document || window.document.nodeType !== NODE_TYPE.document || !window.Element) {\n\t\tDOMPurify.isSupported = false;\n\t\treturn DOMPurify;\n\t}\n\tlet document = window.document;\n\tconst originalDocument = document;\n\tconst currentScript = originalDocument.currentScript;\n\twindow.DocumentFragment;\n\tconst HTMLTemplateElement = window.HTMLTemplateElement, Node = window.Node, Element = window.Element, NodeFilter = window.NodeFilter;\n\twindow.NamedNodeMap === void 0 && (window.NamedNodeMap || window.MozNamedAttrMap);\n\twindow.HTMLFormElement;\n\tconst DOMParser = window.DOMParser, trustedTypes = window.trustedTypes;\n\tconst ElementPrototype = Element.prototype;\n\tconst cloneNode = lookupGetter(ElementPrototype, \"cloneNode\");\n\tconst remove = lookupGetter(ElementPrototype, \"remove\");\n\tconst removeAttributeNode = lookupGetter(ElementPrototype, \"removeAttributeNode\");\n\tconst getNextSibling = lookupGetter(ElementPrototype, \"nextSibling\");\n\tconst getChildNodes = lookupGetter(ElementPrototype, \"childNodes\");\n\tconst getParentNode = lookupGetter(ElementPrototype, \"parentNode\");\n\tconst getShadowRoot = lookupGetter(ElementPrototype, \"shadowRoot\");\n\tconst getAttributes = lookupGetter(ElementPrototype, \"attributes\");\n\tconst getNodeType = Node && Node.prototype ? lookupGetter(Node.prototype, \"nodeType\") : null;\n\tconst getNodeName = Node && Node.prototype ? lookupGetter(Node.prototype, \"nodeName\") : null;\n\tconst getOwnerDocument = Node && Node.prototype ? lookupGetter(Node.prototype, \"ownerDocument\") : null;\n\tconst _readNodeType = function _readNodeType(node) {\n\t\treturn getNodeType ? getNodeType(node) : node.nodeType;\n\t};\n\tconst _readNodeName = function _readNodeName(node) {\n\t\treturn getNodeName ? getNodeName(node) : node.nodeName;\n\t};\n\tconst getNamespaceURI = lookupAccessor(ElementPrototype, \"namespaceURI\");\n\tconst _readNamespaceURI = function _readNamespaceURI(element) {\n\t\treturn getNamespaceURI ? getNamespaceURI(element) : element.namespaceURI;\n\t};\n\tif (typeof HTMLTemplateElement === \"function\") {\n\t\tconst template = document.createElement(\"template\");\n\t\tif (template.content && template.content.ownerDocument) document = template.content.ownerDocument;\n\t}\n\tlet trustedTypesPolicy;\n\tlet emptyHTML = \"\";\n\tlet defaultTrustedTypesPolicy;\n\tlet defaultTrustedTypesPolicyResolved = false;\n\tlet IN_TRUSTED_TYPES_POLICY = 0;\n\tconst _assertNotInTrustedTypesPolicy = function _assertNotInTrustedTypesPolicy() {\n\t\tif (IN_TRUSTED_TYPES_POLICY > 0) throw typeErrorCreate(\"A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the \\\"DOMPurify and Trusted Types\\\" section of the README.\");\n\t};\n\tconst _createTrustedHTML = function _createTrustedHTML(html) {\n\t\t_assertNotInTrustedTypesPolicy();\n\t\tIN_TRUSTED_TYPES_POLICY++;\n\t\ttry {\n\t\t\treturn trustedTypesPolicy.createHTML(html);\n\t\t} finally {\n\t\t\tIN_TRUSTED_TYPES_POLICY--;\n\t\t}\n\t};\n\tconst _createTrustedScriptURL = function _createTrustedScriptURL(scriptUrl) {\n\t\t_assertNotInTrustedTypesPolicy();\n\t\tIN_TRUSTED_TYPES_POLICY++;\n\t\ttry {\n\t\t\treturn trustedTypesPolicy.createScriptURL(scriptUrl);\n\t\t} finally {\n\t\t\tIN_TRUSTED_TYPES_POLICY--;\n\t\t}\n\t};\n\tconst _getDefaultTrustedTypesPolicy = function _getDefaultTrustedTypesPolicy() {\n\t\tif (!defaultTrustedTypesPolicyResolved) {\n\t\t\tdefaultTrustedTypesPolicy = _createTrustedTypesPolicy(trustedTypes, currentScript);\n\t\t\tdefaultTrustedTypesPolicyResolved = true;\n\t\t}\n\t\treturn defaultTrustedTypesPolicy;\n\t};\n\tconst _document = document, implementation = _document.implementation, createNodeIterator = _document.createNodeIterator, createDocumentFragment = _document.createDocumentFragment, getElementsByTagName = _document.getElementsByTagName;\n\tconst importNode = originalDocument.importNode;\n\tlet hooks = _createHooksMap();\n\t/**\n\t* Expose whether this browser supports running the full DOMPurify.\n\t*/\n\tDOMPurify.isSupported = typeof entries === \"function\" && typeof getParentNode === \"function\" && implementation && implementation.createHTMLDocument !== void 0;\n\tconst MUSTACHE_EXPR$1 = MUSTACHE_EXPR, ERB_EXPR$1 = ERB_EXPR, TMPLIT_EXPR$1 = TMPLIT_EXPR, DATA_ATTR$1 = DATA_ATTR, ARIA_ATTR$1 = ARIA_ATTR, IS_SCRIPT_OR_DATA$1 = IS_SCRIPT_OR_DATA, ATTR_WHITESPACE$1 = ATTR_WHITESPACE, CUSTOM_ELEMENT$1 = CUSTOM_ELEMENT;\n\tlet IS_ALLOWED_URI$1 = IS_ALLOWED_URI;\n\t/**\n\t* We consider the elements and attributes below to be safe. Ideally\n\t* don't add any new ones but feel free to remove unwanted ones.\n\t*/\n\tlet ALLOWED_TAGS = null;\n\tconst DEFAULT_ALLOWED_TAGS = addToSet({}, [\n\t\t...html$1,\n\t\t...svg$1,\n\t\t...svgFilters,\n\t\t...mathMl$1,\n\t\t...text\n\t]);\n\tlet ALLOWED_ATTR = null;\n\tconst DEFAULT_ALLOWED_ATTR = addToSet({}, [\n\t\t...html,\n\t\t...svg,\n\t\t...mathMl,\n\t\t...xml\n\t]);\n\tlet CUSTOM_ELEMENT_HANDLING = Object.seal(create(null, {\n\t\ttagNameCheck: {\n\t\t\twritable: true,\n\t\t\tconfigurable: false,\n\t\t\tenumerable: true,\n\t\t\tvalue: null\n\t\t},\n\t\tattributeNameCheck: {\n\t\t\twritable: true,\n\t\t\tconfigurable: false,\n\t\t\tenumerable: true,\n\t\t\tvalue: null\n\t\t},\n\t\tallowCustomizedBuiltInElements: {\n\t\t\twritable: true,\n\t\t\tconfigurable: false,\n\t\t\tenumerable: true,\n\t\t\tvalue: false\n\t\t}\n\t}));\n\tlet FORBID_TAGS = null;\n\tlet FORBID_ATTR = null;\n\tconst EXTRA_ELEMENT_HANDLING = Object.seal(create(null, {\n\t\ttagCheck: {\n\t\t\twritable: true,\n\t\t\tconfigurable: false,\n\t\t\tenumerable: true,\n\t\t\tvalue: null\n\t\t},\n\t\tattributeCheck: {\n\t\t\twritable: true,\n\t\t\tconfigurable: false,\n\t\t\tenumerable: true,\n\t\t\tvalue: null\n\t\t}\n\t}));\n\tlet ALLOW_ARIA_ATTR = true;\n\tlet ALLOW_DATA_ATTR = true;\n\tlet ALLOW_UNKNOWN_PROTOCOLS = false;\n\tlet ALLOW_SELF_CLOSE_IN_ATTR = true;\n\tlet SAFE_FOR_TEMPLATES = false;\n\tlet SAFE_FOR_XML = true;\n\tlet WHOLE_DOCUMENT = false;\n\tlet SET_CONFIG = false;\n\tlet SET_CONFIG_ALLOWED_TAGS = null;\n\tlet SET_CONFIG_ALLOWED_ATTR = null;\n\tlet FORCE_BODY = false;\n\tlet RETURN_DOM = false;\n\tlet RETURN_DOM_FRAGMENT = false;\n\tlet RETURN_TRUSTED_TYPE = false;\n\tlet SANITIZE_DOM = true;\n\tlet SANITIZE_NAMED_PROPS = false;\n\tconst SANITIZE_NAMED_PROPS_PREFIX = \"user-content-\";\n\tlet KEEP_CONTENT = true;\n\tlet IN_PLACE = false;\n\tlet IN_PLACE_VISITED = null;\n\tlet USE_PROFILES = {};\n\tlet FORBID_CONTENTS = null;\n\tconst DEFAULT_FORBID_CONTENTS = addToSet({}, [\n\t\t\"annotation-xml\",\n\t\t\"audio\",\n\t\t\"colgroup\",\n\t\t\"desc\",\n\t\t\"foreignobject\",\n\t\t\"head\",\n\t\t\"iframe\",\n\t\t\"math\",\n\t\t\"mi\",\n\t\t\"mn\",\n\t\t\"mo\",\n\t\t\"ms\",\n\t\t\"mtext\",\n\t\t\"noembed\",\n\t\t\"noframes\",\n\t\t\"noscript\",\n\t\t\"plaintext\",\n\t\t\"script\",\n\t\t\"selectedcontent\",\n\t\t\"style\",\n\t\t\"svg\",\n\t\t\"template\",\n\t\t\"thead\",\n\t\t\"title\",\n\t\t\"video\",\n\t\t\"xmp\"\n\t]);\n\tlet DATA_URI_TAGS = null;\n\tconst DEFAULT_DATA_URI_TAGS = addToSet({}, [\n\t\t\"audio\",\n\t\t\"video\",\n\t\t\"img\",\n\t\t\"source\",\n\t\t\"image\",\n\t\t\"track\"\n\t]);\n\tlet URI_SAFE_ATTRIBUTES = null;\n\tconst DEFAULT_URI_SAFE_ATTRIBUTES = addToSet({}, [\n\t\t\"alt\",\n\t\t\"class\",\n\t\t\"for\",\n\t\t\"id\",\n\t\t\"label\",\n\t\t\"name\",\n\t\t\"pattern\",\n\t\t\"placeholder\",\n\t\t\"role\",\n\t\t\"summary\",\n\t\t\"title\",\n\t\t\"value\",\n\t\t\"style\",\n\t\t\"xmlns\"\n\t]);\n\tconst MATHML_NAMESPACE = \"http://www.w3.org/1998/Math/MathML\";\n\tconst SVG_NAMESPACE = \"http://www.w3.org/2000/svg\";\n\tconst HTML_NAMESPACE = \"http://www.w3.org/1999/xhtml\";\n\tlet NAMESPACE = HTML_NAMESPACE;\n\tlet IS_EMPTY_INPUT = false;\n\tlet ALLOWED_NAMESPACES = null;\n\tconst DEFAULT_ALLOWED_NAMESPACES = addToSet({}, [\n\t\tMATHML_NAMESPACE,\n\t\tSVG_NAMESPACE,\n\t\tHTML_NAMESPACE\n\t], stringToString);\n\tconst DEFAULT_MATHML_TEXT_INTEGRATION_POINTS = freeze([\n\t\t\"mi\",\n\t\t\"mo\",\n\t\t\"mn\",\n\t\t\"ms\",\n\t\t\"mtext\"\n\t]);\n\tlet MATHML_TEXT_INTEGRATION_POINTS = addToSet({}, DEFAULT_MATHML_TEXT_INTEGRATION_POINTS);\n\tconst DEFAULT_HTML_INTEGRATION_POINTS = freeze([\"annotation-xml\"]);\n\tlet HTML_INTEGRATION_POINTS = addToSet({}, DEFAULT_HTML_INTEGRATION_POINTS);\n\tconst COMMON_SVG_AND_HTML_ELEMENTS = addToSet({}, [\n\t\t\"title\",\n\t\t\"style\",\n\t\t\"font\",\n\t\t\"a\",\n\t\t\"script\"\n\t]);\n\tlet PARSER_MEDIA_TYPE = null;\n\tconst SUPPORTED_PARSER_MEDIA_TYPES = [\"application/xhtml+xml\", \"text/html\"];\n\tconst DEFAULT_PARSER_MEDIA_TYPE = \"text/html\";\n\tlet transformCaseFunc = null;\n\tlet CONFIG = null;\n\tconst formElement = document.createElement(\"form\");\n\tconst isRegexOrFunction = function isRegexOrFunction(testValue) {\n\t\treturn testValue instanceof RegExp || testValue instanceof Function;\n\t};\n\t/**\n\t* _parseConfig\n\t*\n\t* @param cfg optional config literal\n\t*/\n\tconst _parseConfig = function _parseConfig() {\n\t\tlet cfg = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};\n\t\tif (CONFIG && CONFIG === cfg) return;\n\t\tif (!cfg || typeof cfg !== \"object\") cfg = {};\n\t\tcfg = clone(cfg);\n\t\tPARSER_MEDIA_TYPE = SUPPORTED_PARSER_MEDIA_TYPES.indexOf(cfg.PARSER_MEDIA_TYPE) === -1 ? DEFAULT_PARSER_MEDIA_TYPE : cfg.PARSER_MEDIA_TYPE;\n\t\ttransformCaseFunc = PARSER_MEDIA_TYPE === \"application/xhtml+xml\" ? stringToString : stringToLowerCase;\n\t\tALLOWED_TAGS = _resolveSetOption(cfg, \"ALLOWED_TAGS\", DEFAULT_ALLOWED_TAGS, { transform: transformCaseFunc });\n\t\tALLOWED_ATTR = _resolveSetOption(cfg, \"ALLOWED_ATTR\", DEFAULT_ALLOWED_ATTR, { transform: transformCaseFunc });\n\t\tALLOWED_NAMESPACES = _resolveSetOption(cfg, \"ALLOWED_NAMESPACES\", DEFAULT_ALLOWED_NAMESPACES, { transform: stringToString });\n\t\tURI_SAFE_ATTRIBUTES = _resolveSetOption(cfg, \"ADD_URI_SAFE_ATTR\", DEFAULT_URI_SAFE_ATTRIBUTES, {\n\t\t\ttransform: transformCaseFunc,\n\t\t\tbase: DEFAULT_URI_SAFE_ATTRIBUTES\n\t\t});\n\t\tDATA_URI_TAGS = _resolveSetOption(cfg, \"ADD_DATA_URI_TAGS\", DEFAULT_DATA_URI_TAGS, {\n\t\t\ttransform: transformCaseFunc,\n\t\t\tbase: DEFAULT_DATA_URI_TAGS\n\t\t});\n\t\tFORBID_CONTENTS = _resolveSetOption(cfg, \"FORBID_CONTENTS\", DEFAULT_FORBID_CONTENTS, { transform: transformCaseFunc });\n\t\tFORBID_TAGS = _resolveSetOption(cfg, \"FORBID_TAGS\", clone({}), { transform: transformCaseFunc });\n\t\tFORBID_ATTR = _resolveSetOption(cfg, \"FORBID_ATTR\", clone({}), { transform: transformCaseFunc });\n\t\tUSE_PROFILES = objectHasOwnProperty(cfg, \"USE_PROFILES\") ? cfg.USE_PROFILES && typeof cfg.USE_PROFILES === \"object\" ? clone(cfg.USE_PROFILES) : cfg.USE_PROFILES : false;\n\t\tALLOW_ARIA_ATTR = cfg.ALLOW_ARIA_ATTR !== false;\n\t\tALLOW_DATA_ATTR = cfg.ALLOW_DATA_ATTR !== false;\n\t\tALLOW_UNKNOWN_PROTOCOLS = cfg.ALLOW_UNKNOWN_PROTOCOLS || false;\n\t\tALLOW_SELF_CLOSE_IN_ATTR = cfg.ALLOW_SELF_CLOSE_IN_ATTR !== false;\n\t\tSAFE_FOR_TEMPLATES = cfg.SAFE_FOR_TEMPLATES || false;\n\t\tSAFE_FOR_XML = cfg.SAFE_FOR_XML !== false;\n\t\tWHOLE_DOCUMENT = cfg.WHOLE_DOCUMENT || false;\n\t\tRETURN_DOM = cfg.RETURN_DOM || false;\n\t\tRETURN_DOM_FRAGMENT = cfg.RETURN_DOM_FRAGMENT || false;\n\t\tRETURN_TRUSTED_TYPE = cfg.RETURN_TRUSTED_TYPE || false;\n\t\tFORCE_BODY = cfg.FORCE_BODY || false;\n\t\tSANITIZE_DOM = cfg.SANITIZE_DOM !== false;\n\t\tSANITIZE_NAMED_PROPS = cfg.SANITIZE_NAMED_PROPS || false;\n\t\tKEEP_CONTENT = cfg.KEEP_CONTENT !== false;\n\t\tIN_PLACE = cfg.IN_PLACE || false;\n\t\tIS_ALLOWED_URI$1 = isRegex(cfg.ALLOWED_URI_REGEXP) ? cfg.ALLOWED_URI_REGEXP : IS_ALLOWED_URI;\n\t\tNAMESPACE = typeof cfg.NAMESPACE === \"string\" ? cfg.NAMESPACE : HTML_NAMESPACE;\n\t\tMATHML_TEXT_INTEGRATION_POINTS = _resolveObjectOption(cfg, \"MATHML_TEXT_INTEGRATION_POINTS\", () => addToSet({}, DEFAULT_MATHML_TEXT_INTEGRATION_POINTS));\n\t\tHTML_INTEGRATION_POINTS = _resolveObjectOption(cfg, \"HTML_INTEGRATION_POINTS\", () => addToSet({}, DEFAULT_HTML_INTEGRATION_POINTS));\n\t\tconst customElementHandling = _resolveObjectOption(cfg, \"CUSTOM_ELEMENT_HANDLING\", () => create(null));\n\t\tCUSTOM_ELEMENT_HANDLING = create(null);\n\t\tif (objectHasOwnProperty(customElementHandling, \"tagNameCheck\") && isRegexOrFunction(customElementHandling.tagNameCheck)) CUSTOM_ELEMENT_HANDLING.tagNameCheck = customElementHandling.tagNameCheck;\n\t\tif (objectHasOwnProperty(customElementHandling, \"attributeNameCheck\") && isRegexOrFunction(customElementHandling.attributeNameCheck)) CUSTOM_ELEMENT_HANDLING.attributeNameCheck = customElementHandling.attributeNameCheck;\n\t\tif (objectHasOwnProperty(customElementHandling, \"allowCustomizedBuiltInElements\") && typeof customElementHandling.allowCustomizedBuiltInElements === \"boolean\") CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements = customElementHandling.allowCustomizedBuiltInElements;\n\t\tseal(CUSTOM_ELEMENT_HANDLING);\n\t\tif (SAFE_FOR_TEMPLATES) ALLOW_DATA_ATTR = false;\n\t\tif (RETURN_DOM_FRAGMENT) RETURN_DOM = true;\n\t\tif (USE_PROFILES) {\n\t\t\tALLOWED_TAGS = addToSet({}, text);\n\t\t\tALLOWED_ATTR = create(null);\n\t\t\tif (USE_PROFILES.html === true) {\n\t\t\t\taddToSet(ALLOWED_TAGS, html$1);\n\t\t\t\taddToSet(ALLOWED_ATTR, html);\n\t\t\t}\n\t\t\tif (USE_PROFILES.svg === true) {\n\t\t\t\taddToSet(ALLOWED_TAGS, svg$1);\n\t\t\t\taddToSet(ALLOWED_ATTR, svg);\n\t\t\t\taddToSet(ALLOWED_ATTR, xml);\n\t\t\t}\n\t\t\tif (USE_PROFILES.svgFilters === true) {\n\t\t\t\taddToSet(ALLOWED_TAGS, svgFilters);\n\t\t\t\taddToSet(ALLOWED_ATTR, svg);\n\t\t\t\taddToSet(ALLOWED_ATTR, xml);\n\t\t\t}\n\t\t\tif (USE_PROFILES.mathMl === true) {\n\t\t\t\taddToSet(ALLOWED_TAGS, mathMl$1);\n\t\t\t\taddToSet(ALLOWED_ATTR, mathMl);\n\t\t\t\taddToSet(ALLOWED_ATTR, xml);\n\t\t\t}\n\t\t}\n\t\tEXTRA_ELEMENT_HANDLING.tagCheck = null;\n\t\tEXTRA_ELEMENT_HANDLING.attributeCheck = null;\n\t\tif (objectHasOwnProperty(cfg, \"ADD_TAGS\")) {\n\t\t\tif (typeof cfg.ADD_TAGS === \"function\") EXTRA_ELEMENT_HANDLING.tagCheck = cfg.ADD_TAGS;\n\t\t\telse if (arrayIsArray(cfg.ADD_TAGS)) {\n\t\t\t\tif (ALLOWED_TAGS === DEFAULT_ALLOWED_TAGS) ALLOWED_TAGS = clone(ALLOWED_TAGS);\n\t\t\t\taddToSet(ALLOWED_TAGS, cfg.ADD_TAGS, transformCaseFunc);\n\t\t\t}\n\t\t}\n\t\tif (objectHasOwnProperty(cfg, \"ADD_ATTR\")) {\n\t\t\tif (typeof cfg.ADD_ATTR === \"function\") EXTRA_ELEMENT_HANDLING.attributeCheck = cfg.ADD_ATTR;\n\t\t\telse if (arrayIsArray(cfg.ADD_ATTR)) {\n\t\t\t\tif (ALLOWED_ATTR === DEFAULT_ALLOWED_ATTR) ALLOWED_ATTR = clone(ALLOWED_ATTR);\n\t\t\t\taddToSet(ALLOWED_ATTR, cfg.ADD_ATTR, transformCaseFunc);\n\t\t\t}\n\t\t}\n\t\tif (objectHasOwnProperty(cfg, \"ADD_FORBID_CONTENTS\") && arrayIsArray(cfg.ADD_FORBID_CONTENTS)) {\n\t\t\tif (FORBID_CONTENTS === DEFAULT_FORBID_CONTENTS) FORBID_CONTENTS = clone(FORBID_CONTENTS);\n\t\t\taddToSet(FORBID_CONTENTS, cfg.ADD_FORBID_CONTENTS, transformCaseFunc);\n\t\t}\n\t\tif (KEEP_CONTENT) ALLOWED_TAGS[\"#text\"] = true;\n\t\tif (WHOLE_DOCUMENT) addToSet(ALLOWED_TAGS, [\n\t\t\t\"html\",\n\t\t\t\"head\",\n\t\t\t\"body\"\n\t\t]);\n\t\tif (ALLOWED_TAGS.table) {\n\t\t\taddToSet(ALLOWED_TAGS, [\"tbody\"]);\n\t\t\tdelete FORBID_TAGS.tbody;\n\t\t}\n\t\tif (cfg.TRUSTED_TYPES_POLICY) {\n\t\t\tif (typeof cfg.TRUSTED_TYPES_POLICY.createHTML !== \"function\") throw typeErrorCreate(\"TRUSTED_TYPES_POLICY configuration option must provide a \\\"createHTML\\\" hook.\");\n\t\t\tif (typeof cfg.TRUSTED_TYPES_POLICY.createScriptURL !== \"function\") throw typeErrorCreate(\"TRUSTED_TYPES_POLICY configuration option must provide a \\\"createScriptURL\\\" hook.\");\n\t\t\tconst previousTrustedTypesPolicy = trustedTypesPolicy;\n\t\t\ttrustedTypesPolicy = cfg.TRUSTED_TYPES_POLICY;\n\t\t\ttry {\n\t\t\t\temptyHTML = _createTrustedHTML(\"\");\n\t\t\t} catch (error) {\n\t\t\t\ttrustedTypesPolicy = previousTrustedTypesPolicy;\n\t\t\t\tthrow error;\n\t\t\t}\n\t\t} else if (cfg.TRUSTED_TYPES_POLICY === null) {\n\t\t\ttrustedTypesPolicy = void 0;\n\t\t\temptyHTML = \"\";\n\t\t} else {\n\t\t\tif (trustedTypesPolicy === void 0) trustedTypesPolicy = _getDefaultTrustedTypesPolicy();\n\t\t\tif (trustedTypesPolicy && typeof emptyHTML === \"string\") emptyHTML = _createTrustedHTML(\"\");\n\t\t}\n\t\tif (freeze) freeze(cfg);\n\t\tCONFIG = cfg;\n\t};\n\tconst ALL_SVG_TAGS = addToSet({}, [\n\t\t...svg$1,\n\t\t...svgFilters,\n\t\t...svgDisallowed\n\t]);\n\tconst ALL_MATHML_TAGS = addToSet({}, [...mathMl$1, ...mathMlDisallowed]);\n\t/**\n\t* Namespace rules for an element in the SVG namespace.\n\t*\n\t* @param tagName the element's lowercase tag name\n\t* @param parent the (possibly simulated) parent node\n\t* @param parentTagName the parent's lowercase tag name\n\t* @returns true if a spec-compliant parser could produce this element\n\t*/\n\tconst _checkSvgNamespace = function _checkSvgNamespace(tagName, parent, parentTagName) {\n\t\tif (parent.namespaceURI === HTML_NAMESPACE) return tagName === \"svg\";\n\t\tif (parent.namespaceURI === MATHML_NAMESPACE) return tagName === \"svg\" && (parentTagName === \"annotation-xml\" || MATHML_TEXT_INTEGRATION_POINTS[parentTagName]);\n\t\treturn Boolean(ALL_SVG_TAGS[tagName]);\n\t};\n\t/**\n\t* Namespace rules for an element in the MathML namespace.\n\t*\n\t* @param tagName the element's lowercase tag name\n\t* @param parent the (possibly simulated) parent node\n\t* @param parentTagName the parent's lowercase tag name\n\t* @returns true if a spec-compliant parser could produce this element\n\t*/\n\tconst _checkMathMlNamespace = function _checkMathMlNamespace(tagName, parent, parentTagName) {\n\t\tif (parent.namespaceURI === HTML_NAMESPACE) return tagName === \"math\";\n\t\tif (parent.namespaceURI === SVG_NAMESPACE) return tagName === \"math\" && HTML_INTEGRATION_POINTS[parentTagName];\n\t\treturn Boolean(ALL_MATHML_TAGS[tagName]);\n\t};\n\t/**\n\t* Namespace rules for an element in the HTML namespace.\n\t*\n\t* @param tagName the element's lowercase tag name\n\t* @param parent the (possibly simulated) parent node\n\t* @param parentTagName the parent's lowercase tag name\n\t* @returns true if a spec-compliant parser could produce this element\n\t*/\n\tconst _checkHtmlNamespace = function _checkHtmlNamespace(tagName, parent, parentTagName) {\n\t\tif (parent.namespaceURI === SVG_NAMESPACE && !HTML_INTEGRATION_POINTS[parentTagName]) return false;\n\t\tif (parent.namespaceURI === MATHML_NAMESPACE && !MATHML_TEXT_INTEGRATION_POINTS[parentTagName]) return false;\n\t\treturn !ALL_MATHML_TAGS[tagName] && (COMMON_SVG_AND_HTML_ELEMENTS[tagName] || !ALL_SVG_TAGS[tagName]);\n\t};\n\t/**\n\t* @param element a DOM element whose namespace is being checked\n\t* @returns Return false if the element has a\n\t* namespace that a spec-compliant parser would never\n\t* return. Return true otherwise.\n\t*/\n\tconst _checkValidNamespace = function _checkValidNamespace(element) {\n\t\tconst elementNamespace = _readNamespaceURI(element);\n\t\tconst tagName = stringToLowerCase(_readNodeName(element));\n\t\tconst parentNode = getParentNode(element);\n\t\tlet parent;\n\t\tlet parentTagName;\n\t\tif (parentNode && _readNodeType(parentNode) === NODE_TYPE.element) {\n\t\t\tparent = { namespaceURI: _readNamespaceURI(parentNode) };\n\t\t\tparentTagName = stringToLowerCase(_readNodeName(parentNode));\n\t\t} else {\n\t\t\tparent = { namespaceURI: NAMESPACE };\n\t\t\tparentTagName = \"template\";\n\t\t}\n\t\tif (!ALLOWED_NAMESPACES[elementNamespace]) return false;\n\t\tif (elementNamespace === SVG_NAMESPACE) return _checkSvgNamespace(tagName, parent, parentTagName);\n\t\tif (elementNamespace === MATHML_NAMESPACE) return _checkMathMlNamespace(tagName, parent, parentTagName);\n\t\tif (elementNamespace === HTML_NAMESPACE) return _checkHtmlNamespace(tagName, parent, parentTagName);\n\t\tif (PARSER_MEDIA_TYPE === \"application/xhtml+xml\" && ALLOWED_NAMESPACES[elementNamespace]) return true;\n\t\treturn false;\n\t};\n\t/**\n\t* _forceRemove\n\t*\n\t* @param node a DOM node\n\t*/\n\tconst _forceRemove = function _forceRemove(node) {\n\t\tarrayPush(DOMPurify.removed, { element: node });\n\t\ttry {\n\t\t\tgetParentNode(node).removeChild(node);\n\t\t} catch (_) {\n\t\t\tremove(node);\n\t\t\tif (!getParentNode(node)) throw typeErrorCreate(\"a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place\");\n\t\t}\n\t};\n\t/**\n\t* _stripAttributeNode\n\t*\n\t* Remove a single Attr node case/namespace-exactly on an attribute-teardown\n\t* path. Name-based removeAttribute() ASCII-lowercases its lookup key for an\n\t* HTML element in an HTML document and so silently misses a case-preserved\n\t* handler (e.g. `ONERROR` off an XML/XHTML import) - the same defect\n\t* _removeAttribute() was fixed for, which a name-based call would reintroduce\n\t* on these IN_PLACE teardown paths. Unlike _removeAttribute this does not\n\t* record into DOMPurify.removed: the neutralize passes intentionally do not\n\t* book-keep. A clobbered/detached node falls back to best-effort name-based\n\t* removal.\n\t*\n\t* @param element the element to strip the attribute from\n\t* @param attribute the Attr node to remove\n\t* @param name the attribute's name, for the fallback path\n\t*/\n\tconst _stripAttributeNode = function _stripAttributeNode(element, attribute, name) {\n\t\ttry {\n\t\t\tremoveAttributeNode(element, attribute);\n\t\t} catch (_) {\n\t\t\ttry {\n\t\t\t\telement.removeAttribute(name);\n\t\t\t} catch (_) {}\n\t\t}\n\t};\n\t/**\n\t* Fail-closed teardown of an in-place root: strip every disallowed attribute\n\t* in the subtree first, so nothing armed is left behind, then remove all\n\t* children and the root's own attributes.\n\t*\n\t* @param root the in-place root to empty\n\t*/\n\tconst _neutralizeRoot = function _neutralizeRoot(root) {\n\t\t_neutralizeSubtree(root);\n\t\tconst childNodes = getChildNodes(root);\n\t\tif (childNodes) arrayForEach(arraySlice(childNodes), (child) => {\n\t\t\ttry {\n\t\t\t\tremove(child);\n\t\t\t} catch (_) {}\n\t\t});\n\t\tconst attributes = _readNodeType(root) === NODE_TYPE.element ? getAttributes(root) : null;\n\t\tif (attributes) for (let i = attributes.length - 1; i >= 0; --i) {\n\t\t\tconst attribute = attributes[i];\n\t\t\tconst name = attribute && attribute.name;\n\t\t\tif (typeof name === \"string\") _stripAttributeNode(root, attribute, name);\n\t\t}\n\t};\n\t/**\n\t* Removes an attribute, preferably as its exact Attr node: name-based\n\t* removal lowercases the name in HTML documents and misses case-preserved\n\t* names, e.g. from imported XHTML.\n\t*\n\t* @param name an Attribute name\n\t* @param element a DOM node\n\t* @param attr the exact Attr node to remove, when the caller has it\n\t*/\n\tconst _removeAttribute = function _removeAttribute(name, element, attr) {\n\t\tif (!attr) try {\n\t\t\tattr = element.getAttributeNode(name);\n\t\t} catch (_) {\n\t\t\tattr = null;\n\t\t}\n\t\tarrayPush(DOMPurify.removed, {\n\t\t\tattribute: attr || null,\n\t\t\tfrom: element\n\t\t});\n\t\ttry {\n\t\t\tif (attr) removeAttributeNode(element, attr);\n\t\t\telse element.removeAttribute(name);\n\t\t} catch (_) {\n\t\t\ttry {\n\t\t\t\telement.removeAttribute(name);\n\t\t\t} catch (_) {}\n\t\t}\n\t\tif (name === \"is\") {\n\t\t\tif (RETURN_DOM || RETURN_DOM_FRAGMENT) try {\n\t\t\t\t_forceRemove(element);\n\t\t\t} catch (_) {}\n\t\t\telse try {\n\t\t\t\telement.setAttribute(name, \"\");\n\t\t\t} catch (_) {}\n\t\t}\n\t};\n\t/**\n\t* Removes every attribute the configuration does not allow. Used to\n\t* neutralize nodes discarded from an in-place tree.\n\t*\n\t* @param element the element to strip\n\t*/\n\tconst _stripDisallowedAttributes = function _stripDisallowedAttributes(element) {\n\t\tconst attributes = getAttributes(element);\n\t\tif (!attributes) return;\n\t\tfor (let i = attributes.length - 1; i >= 0; --i) {\n\t\t\tconst attribute = attributes[i];\n\t\t\tconst name = attribute && attribute.name;\n\t\t\tif (typeof name !== \"string\" || ALLOWED_ATTR[transformCaseFunc(name)]) continue;\n\t\t\t_stripAttributeNode(element, attribute, name);\n\t\t}\n\t};\n\t/**\n\t* Iterative depth-first walk, so deep trees cannot overflow the call stack,\n\t* reading through the cached getters, so clobbering cannot hide children.\n\t* When `visit` returns false, the node's children are skipped. With\n\t* `intoShadow`, open shadow roots are walked after their host's children.\n\t*\n\t* @param root where to start\n\t* @param visit called for every node\n\t* @param intoShadow whether to enter open shadow roots\n\t*/\n\tconst _walkTree = function _walkTree(root, visit) {\n\t\tlet intoShadow = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : false;\n\t\tconst stack = [root];\n\t\twhile (stack.length > 0) {\n\t\t\tconst node = stack.pop();\n\t\t\tif (visit(node) === false) continue;\n\t\t\tif (intoShadow && _readNodeType(node) === NODE_TYPE.element) {\n\t\t\t\tconst shadowRoot = getShadowRoot(node);\n\t\t\t\tif (_isDocumentFragment(shadowRoot)) stack.push(shadowRoot);\n\t\t\t}\n\t\t\tconst childNodes = getChildNodes(node);\n\t\t\tif (childNodes) for (let i = childNodes.length - 1; i >= 0; --i) stack.push(childNodes[i]);\n\t\t}\n\t};\n\t/**\n\t* Strips disallowed attributes from every element of a discarded subtree,\n\t* so a handler that is already queued (a loading image) cannot fire.\n\t*\n\t* @param root the root of a removed subtree\n\t*/\n\tconst _neutralizeSubtree = function _neutralizeSubtree(root) {\n\t\t_walkTree(root, (node) => {\n\t\t\tif (_readNodeType(node) === NODE_TYPE.element) _stripDisallowedAttributes(node);\n\t\t});\n\t};\n\t/**\n\t* All nodes under `root`, root first, including open shadow roots. Template\n\t* content is not entered, it is inert.\n\t*\n\t* @param root the in-place root\n\t* @return the nodes\n\t*/\n\tconst _collectLiveNodes = function _collectLiveNodes(root) {\n\t\tconst nodes = [];\n\t\t_walkTree(root, (node) => {\n\t\t\tnodes.push(node);\n\t\t}, true);\n\t\treturn nodes;\n\t};\n\t/**\n\t* Strips disallowed attributes from every element that was under the\n\t* in-place root when the call started and no longer is, whatever removed\n\t* or moved it.\n\t*\n\t* @param root the in-place root\n\t* @param before the root's nodes, collected before the walk\n\t*/\n\tconst _neutralizeEscapedElements = function _neutralizeEscapedElements(root, before) {\n\t\tconst reachable = setCreate();\n\t\tarrayForEach(_collectLiveNodes(root), (node) => {\n\t\t\tif (_readNodeType(node) === NODE_TYPE.element) setAdd(reachable, node);\n\t\t});\n\t\tarrayForEach(before, (node) => {\n\t\t\tif (_readNodeType(node) === NODE_TYPE.element && !setHas(reachable, node)) _stripDisallowedAttributes(node);\n\t\t});\n\t};\n\t/**\n\t* Neutralizes everything that left the in-place tree during the call: what\n\t* DOMPurify removed, and what hooks or custom elements removed or moved out.\n\t*\n\t* @param root the in-place root\n\t* @param before the root's nodes, collected before the walk\n\t* @return true if the root itself was removed\n\t*/\n\tconst _neutralizeDiscarded = function _neutralizeDiscarded(root, before) {\n\t\tlet rootRemoved = false;\n\t\tarrayForEach(DOMPurify.removed, (entry) => {\n\t\t\tif (entry.element) {\n\t\t\t\trootRemoved = rootRemoved || entry.element === root;\n\t\t\t\t_neutralizeSubtree(entry.element);\n\t\t\t}\n\t\t});\n\t\t_neutralizeEscapedElements(root, before);\n\t\treturn rootRemoved;\n\t};\n\tconst MAX_UNVISITED_ROUNDS = 8;\n\t/**\n\t* The walk only moves forward, so a node moved to a position it already\n\t* passed is never visited. Give every original node that is still in the\n\t* tree but unvisited the normal treatment, hooks included. Nodes created\n\t* during the call are left alone. Fails closed if the tree keeps changing.\n\t*\n\t* @param root the in-place root\n\t* @param before the root's nodes, collected before the walk\n\t*/\n\tconst _sanitizeUnvisitedNodes = function _sanitizeUnvisitedNodes(root, before) {\n\t\tconst visited = IN_PLACE_VISITED;\n\t\tlet original = null;\n\t\tconst getOriginal = () => {\n\t\t\tif (!original) {\n\t\t\t\toriginal = setCreate();\n\t\t\t\tarrayForEach(before, (beforeNode) => {\n\t\t\t\t\tsetAdd(original, beforeNode);\n\t\t\t\t});\n\t\t\t}\n\t\t\treturn original;\n\t\t};\n\t\tfor (let round = 0;; round++) {\n\t\t\tconst live = _collectLiveNodes(root);\n\t\t\tconst containers = [root];\n\t\t\tlet pending = false;\n\t\t\tarrayForEach(live, (node) => {\n\t\t\t\tif (_readNodeType(node) === NODE_TYPE.documentFragment) arrayPush(containers, node);\n\t\t\t\telse if (!pending && !setHas(visited, node)) pending = setHas(getOriginal(), node);\n\t\t\t});\n\t\t\tif (!pending) return;\n\t\t\tif (round >= MAX_UNVISITED_ROUNDS) throw typeErrorCreate(\"the tree kept changing during in-place sanitization; refusing to return it\");\n\t\t\tarrayForEach(containers, (container, index) => {\n\t\t\t\t_sanitizeUnvisitedIn(container, index > 0, root, getOriginal());\n\t\t\t});\n\t\t}\n\t};\n\t/**\n\t* One _sanitizeUnvisitedNodes pass over the root or an open shadow root.\n\t*\n\t* @param container the root or an open shadow root\n\t* @param inShadow whether container is a shadow root\n\t* @param root the in-place root\n\t* @param original the root's nodes collected before the walk, as a set\n\t*/\n\tconst _sanitizeUnvisitedIn = function _sanitizeUnvisitedIn(container, inShadow, root, original) {\n\t\tconst iterator = _createNodeIterator(container);\n\t\tlet node;\n\t\twhile (node = iterator.nextNode()) {\n\t\t\tif (!setHas(original, node) || setHas(IN_PLACE_VISITED, node)) continue;\n\t\t\tif (inShadow) _executeHooks(hooks.uponSanitizeShadowNode, node, null);\n\t\t\t_sanitizeElements(node, root);\n\t\t\t_sanitizeAttributes(node, root);\n\t\t\tif (_isDocumentFragment(node.content)) _sanitizeShadowDOM2(node.content);\n\t\t}\n\t};\n\t/**\n\t* Records that _sanitizeElements processed `node`. No-op outside IN_PLACE.\n\t*\n\t* @param node the node being processed\n\t*/\n\tconst _markVisited = function _markVisited(node) {\n\t\tif (IN_PLACE_VISITED) setAdd(IN_PLACE_VISITED, node);\n\t};\n\t/**\n\t* Patch-linkage attributes (declarative partial updates): `patchsrc`\n\t* always, `for` everywhere except on