easycomponentstools 1.0.6 → 1.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -37402,15 +37402,8 @@ async function FY(e) {
|
|
|
37402
37402
|
//#endregion
|
|
37403
37403
|
//#region src/composables/map/DrawingPolygon.ts
|
|
37404
37404
|
var IY = class {
|
|
37405
|
-
map;
|
|
37406
|
-
overlay;
|
|
37407
|
-
currentPoints = [];
|
|
37408
|
-
completedPolygons = [];
|
|
37409
|
-
mousePosition = null;
|
|
37410
|
-
stopDraw = !1;
|
|
37411
|
-
lastUpdate = 0;
|
|
37412
37405
|
constructor(e) {
|
|
37413
|
-
this.map = e, this.overlay = new eq({ style: { zIndex: "999" } }), this.overlay.setMap(this.map);
|
|
37406
|
+
this.currentPoints = [], this.completedPolygons = [], this.mousePosition = null, this.stopDraw = !1, this.lastUpdate = 0, this.map = e, this.overlay = new eq({ style: { zIndex: "999" } }), this.overlay.setMap(this.map);
|
|
37414
37407
|
}
|
|
37415
37408
|
drawClickListener(e) {
|
|
37416
37409
|
if (this.stopDraw) return null;
|
|
@@ -37537,26 +37530,8 @@ var IY = class {
|
|
|
37537
37530
|
return Math.sqrt((r[0] - i[0]) ** 2 + (r[1] - i[1]) ** 2);
|
|
37538
37531
|
}
|
|
37539
37532
|
}, LY = class {
|
|
37540
|
-
ZOOM = 16;
|
|
37541
|
-
MAX_ZOOM = this.ZOOM + 4;
|
|
37542
|
-
center;
|
|
37543
|
-
mapRef = null;
|
|
37544
|
-
map = null;
|
|
37545
|
-
infoDialog = null;
|
|
37546
|
-
marker = null;
|
|
37547
|
-
markerPoint = null;
|
|
37548
|
-
hasMark = !1;
|
|
37549
|
-
isDraggable = !1;
|
|
37550
|
-
has_autocomplete = !1;
|
|
37551
|
-
isDrawing = !1;
|
|
37552
|
-
enableDrawingMode = !1;
|
|
37553
|
-
drawCoordinates = "";
|
|
37554
|
-
drawingManager = null;
|
|
37555
|
-
errorGPUDisabled = !1;
|
|
37556
|
-
isFullscreen = !1;
|
|
37557
|
-
initializedMarker = !1;
|
|
37558
37533
|
constructor(e) {
|
|
37559
|
-
this.disableGPUTimer(), this.center = {
|
|
37534
|
+
this.ZOOM = 16, this.MAX_ZOOM = this.ZOOM + 4, this.mapRef = null, this.map = null, this.infoDialog = null, this.marker = null, this.markerPoint = null, this.hasMark = !1, this.isDraggable = !1, this.has_autocomplete = !1, this.isDrawing = !1, this.enableDrawingMode = !1, this.drawCoordinates = "", this.drawingManager = null, this.errorGPUDisabled = !1, this.isFullscreen = !1, this.initializedMarker = !1, this.disableGPUTimer(), this.center = {
|
|
37560
37535
|
lat: Number(Em().location?.lat || 0),
|
|
37561
37536
|
lng: Number(Em().location?.lng || 0)
|
|
37562
37537
|
}, this.mapRef = e;
|
|
@@ -37733,30 +37708,8 @@ var IY = class {
|
|
|
37733
37708
|
}
|
|
37734
37709
|
mousemove() {}
|
|
37735
37710
|
}, RY = class extends LY {
|
|
37736
|
-
COLOR_CLUSTER = "#0652FB";
|
|
37737
|
-
IMAGE_POINT = "/img/backend/dots/red-dot.png";
|
|
37738
|
-
IMAGE_WIDTH_POINT = 128;
|
|
37739
|
-
IMAGE_HEIGHT_POINT = 128;
|
|
37740
|
-
IMAGE_ANCHORY_POINT = 128;
|
|
37741
|
-
MAX_REASONABLE_DISTANCE = .05;
|
|
37742
|
-
onRender = null;
|
|
37743
|
-
markers = [];
|
|
37744
|
-
clusters;
|
|
37745
|
-
clustersIndex;
|
|
37746
|
-
spiderPoints = [];
|
|
37747
|
-
iconLayer;
|
|
37748
|
-
spiderLineLayer = null;
|
|
37749
|
-
spiderIconLayer = null;
|
|
37750
|
-
polygonHoverLayer = null;
|
|
37751
|
-
overlay;
|
|
37752
|
-
hasDialog = !1;
|
|
37753
|
-
groupBy = [];
|
|
37754
|
-
points = [];
|
|
37755
|
-
iconsCache = {};
|
|
37756
|
-
dynamicColorCluster = [];
|
|
37757
|
-
getDrawingMode = () => this.enableDrawingMode;
|
|
37758
37711
|
constructor(e, t, n = !1, r = !1, i = !1, a = null, o = []) {
|
|
37759
|
-
super(e), this.hasDialog = n, this.markers = t, this.has_autocomplete = r, this.isDrawing = i, this.drawCoordinates = a ?? "", this.dynamicColorCluster = o ?? [];
|
|
37712
|
+
super(e), this.COLOR_CLUSTER = "#0652FB", this.IMAGE_POINT = "/img/backend/dots/red-dot.png", this.IMAGE_WIDTH_POINT = 128, this.IMAGE_HEIGHT_POINT = 128, this.IMAGE_ANCHORY_POINT = 128, this.MAX_REASONABLE_DISTANCE = .05, this.onRender = null, this.markers = [], this.spiderPoints = [], this.spiderLineLayer = null, this.spiderIconLayer = null, this.polygonHoverLayer = null, this.hasDialog = !1, this.groupBy = [], this.points = [], this.iconsCache = {}, this.dynamicColorCluster = [], this.getDrawingMode = () => this.enableDrawingMode, this.hasDialog = n, this.markers = t, this.has_autocomplete = r, this.isDrawing = i, this.drawCoordinates = a ?? "", this.dynamicColorCluster = o ?? [];
|
|
37760
37713
|
}
|
|
37761
37714
|
init(e = null, t = null) {
|
|
37762
37715
|
this.initMap().then(() => {
|
|
@@ -38050,13 +38003,8 @@ var IY = class {
|
|
|
38050
38003
|
this.renderOnlyLayers();
|
|
38051
38004
|
}
|
|
38052
38005
|
}, zY = class extends LY {
|
|
38053
|
-
polygons = [];
|
|
38054
|
-
polygonData = [];
|
|
38055
|
-
hasDialog = !1;
|
|
38056
|
-
polygonLayer;
|
|
38057
|
-
getDrawingMode = () => this.enableDrawingMode;
|
|
38058
38006
|
constructor(e, t, n = !1, r = !1, i = !1, a = null) {
|
|
38059
|
-
super(e), this.polygons = t, this.isDrawing = i, this.has_autocomplete = r, this.hasDialog = n, this.drawCoordinates = a ?? "";
|
|
38007
|
+
super(e), this.polygons = [], this.polygonData = [], this.hasDialog = !1, this.getDrawingMode = () => this.enableDrawingMode, this.polygons = t, this.isDrawing = i, this.has_autocomplete = r, this.hasDialog = n, this.drawCoordinates = a ?? "";
|
|
38060
38008
|
}
|
|
38061
38009
|
init() {
|
|
38062
38010
|
this.initMap().then(() => {
|
|
@@ -38141,15 +38089,8 @@ var IY = class {
|
|
|
38141
38089
|
}));
|
|
38142
38090
|
}
|
|
38143
38091
|
}, BY = class extends LY {
|
|
38144
|
-
polygons = [];
|
|
38145
|
-
markers = [];
|
|
38146
|
-
clustersMap = null;
|
|
38147
|
-
polygonsMap = null;
|
|
38148
|
-
hasDialog = !1;
|
|
38149
|
-
mainMapRef = null;
|
|
38150
|
-
overlay = null;
|
|
38151
38092
|
constructor(e, t, n, r = !1, i = !1, a = !1, o = null) {
|
|
38152
|
-
super(e), this.mainMapRef = e, this.polygons = t, this.markers = n, this.hasDialog = r, this.has_autocomplete = i, this.isDrawing = a, this.drawCoordinates = o ?? "";
|
|
38093
|
+
super(e), this.polygons = [], this.markers = [], this.clustersMap = null, this.polygonsMap = null, this.hasDialog = !1, this.mainMapRef = null, this.overlay = null, this.mainMapRef = e, this.polygons = t, this.markers = n, this.hasDialog = r, this.has_autocomplete = i, this.isDrawing = a, this.drawCoordinates = o ?? "";
|
|
38153
38094
|
}
|
|
38154
38095
|
init(e = null, t = null) {
|
|
38155
38096
|
this.initMap().then(() => {
|
|
@@ -38186,19 +38127,8 @@ var IY = class {
|
|
|
38186
38127
|
this.map?.getDiv().style.cursor !== "pointer" && this.clearDialog();
|
|
38187
38128
|
}
|
|
38188
38129
|
}, VY = class extends LY {
|
|
38189
|
-
IMAGE_POINT = "/img/backend/dots/blue-dot.png";
|
|
38190
|
-
IMAGE_WIDTH_POINT = 128;
|
|
38191
|
-
IMAGE_HEIGHT_POINT = 128;
|
|
38192
|
-
IMAGE_ANCHORY_POINT = 128;
|
|
38193
|
-
markers = [];
|
|
38194
|
-
points = [];
|
|
38195
|
-
iconLayer;
|
|
38196
|
-
overlay;
|
|
38197
|
-
hasDialog = !1;
|
|
38198
|
-
iconsCache = {};
|
|
38199
|
-
getDrawingMode = () => this.enableDrawingMode;
|
|
38200
38130
|
constructor(e, t, n = !1, r = !1, i = !1, a = null) {
|
|
38201
|
-
super(e), this.hasDialog = n, this.markers = t, this.has_autocomplete = r, this.isDrawing = i, this.drawCoordinates = a ?? "";
|
|
38131
|
+
super(e), this.IMAGE_POINT = "/img/backend/dots/blue-dot.png", this.IMAGE_WIDTH_POINT = 128, this.IMAGE_HEIGHT_POINT = 128, this.IMAGE_ANCHORY_POINT = 128, this.markers = [], this.points = [], this.hasDialog = !1, this.iconsCache = {}, this.getDrawingMode = () => this.enableDrawingMode, this.hasDialog = n, this.markers = t, this.has_autocomplete = r, this.isDrawing = i, this.drawCoordinates = a ?? "";
|
|
38202
38132
|
}
|
|
38203
38133
|
init(e = null) {
|
|
38204
38134
|
this.initMap().then(() => {
|
|
@@ -38289,15 +38219,8 @@ var IY = class {
|
|
|
38289
38219
|
}));
|
|
38290
38220
|
}
|
|
38291
38221
|
}, HY = class extends LY {
|
|
38292
|
-
markers = [];
|
|
38293
|
-
clusters = [];
|
|
38294
|
-
clustersMap = null;
|
|
38295
|
-
markersMap = null;
|
|
38296
|
-
hasDialog = !1;
|
|
38297
|
-
mainMapRef = null;
|
|
38298
|
-
overlay = null;
|
|
38299
38222
|
constructor(e, t, n, r = !1, i = !1, a = !1, o = null) {
|
|
38300
|
-
super(e), this.mainMapRef = e, this.markers = t, this.clusters = n, this.hasDialog = r, this.has_autocomplete = i, this.isDrawing = a, this.drawCoordinates = o ?? "";
|
|
38223
|
+
super(e), this.markers = [], this.clusters = [], this.clustersMap = null, this.markersMap = null, this.hasDialog = !1, this.mainMapRef = null, this.overlay = null, this.mainMapRef = e, this.markers = t, this.clusters = n, this.hasDialog = r, this.has_autocomplete = i, this.isDrawing = a, this.drawCoordinates = o ?? "";
|
|
38301
38224
|
}
|
|
38302
38225
|
init(e = null, t = null) {
|
|
38303
38226
|
this.initMap().then(() => {
|
|
@@ -38334,15 +38257,8 @@ var IY = class {
|
|
|
38334
38257
|
this.map?.getDiv().style.cursor !== "pointer" && this.clearDialog();
|
|
38335
38258
|
}
|
|
38336
38259
|
}, UY = class extends LY {
|
|
38337
|
-
polygons = [];
|
|
38338
|
-
markers = [];
|
|
38339
|
-
markersMap = null;
|
|
38340
|
-
polygonsMap = null;
|
|
38341
|
-
hasDialog = !1;
|
|
38342
|
-
mainMapRef = null;
|
|
38343
|
-
overlay = null;
|
|
38344
38260
|
constructor(e, t, n, r = !1, i = !1, a = !1, o = null) {
|
|
38345
|
-
super(e), this.mainMapRef = e, this.polygons = t, this.markers = n, this.hasDialog = r, this.has_autocomplete = i, this.isDrawing = a, this.drawCoordinates = o ?? "";
|
|
38261
|
+
super(e), this.polygons = [], this.markers = [], this.markersMap = null, this.polygonsMap = null, this.hasDialog = !1, this.mainMapRef = null, this.overlay = null, this.mainMapRef = e, this.polygons = t, this.markers = n, this.hasDialog = r, this.has_autocomplete = i, this.isDrawing = a, this.drawCoordinates = o ?? "";
|
|
38346
38262
|
}
|
|
38347
38263
|
init(e = null) {
|
|
38348
38264
|
this.initMap().then(() => {
|
|
@@ -40213,13 +40129,8 @@ pZ.layerName = "HeatmapLayer", pZ.defaultProps = uZ;
|
|
|
40213
40129
|
//#endregion
|
|
40214
40130
|
//#region src/composables/map/HeatMap.ts
|
|
40215
40131
|
var mZ = class extends LY {
|
|
40216
|
-
BASE_RADIUS = 200;
|
|
40217
|
-
heatmap = [];
|
|
40218
|
-
heatmapData = [];
|
|
40219
|
-
heatmapLayer;
|
|
40220
|
-
overlay = null;
|
|
40221
40132
|
constructor(e, t) {
|
|
40222
|
-
super(e), this.heatmap = t;
|
|
40133
|
+
super(e), this.BASE_RADIUS = 200, this.heatmap = [], this.heatmapData = [], this.overlay = null, this.heatmap = t;
|
|
40223
40134
|
}
|
|
40224
40135
|
init() {
|
|
40225
40136
|
this.initMap().then(() => {
|
|
@@ -40283,20 +40194,12 @@ var mZ = class extends LY {
|
|
|
40283
40194
|
}));
|
|
40284
40195
|
}
|
|
40285
40196
|
}, hZ = class extends LY {
|
|
40286
|
-
COLOR_RANGE = [
|
|
40287
|
-
"#00FFFFBE",
|
|
40288
|
-
"#0000BFBE",
|
|
40289
|
-
"#FF0000BE"
|
|
40290
|
-
];
|
|
40291
|
-
hexagon = [];
|
|
40292
|
-
hexagonData = [];
|
|
40293
|
-
hexagonLayer;
|
|
40294
|
-
overlay = null;
|
|
40295
|
-
hasDialog = !1;
|
|
40296
|
-
aggregation = "weight";
|
|
40297
|
-
getDrawingMode = () => this.enableDrawingMode;
|
|
40298
40197
|
constructor(e, t, n = !1, r = "weight") {
|
|
40299
|
-
super(e), this.
|
|
40198
|
+
super(e), this.COLOR_RANGE = [
|
|
40199
|
+
"#00FFFFBE",
|
|
40200
|
+
"#0000BFBE",
|
|
40201
|
+
"#FF0000BE"
|
|
40202
|
+
], this.hexagon = [], this.hexagonData = [], this.overlay = null, this.hasDialog = !1, this.aggregation = "weight", this.getDrawingMode = () => this.enableDrawingMode, this.hexagon = t, this.hasDialog = n, this.aggregation = r;
|
|
40300
40203
|
}
|
|
40301
40204
|
init(e = null) {
|
|
40302
40205
|
this.initMap().then(() => {
|
|
@@ -40368,16 +40271,8 @@ var mZ = class extends LY {
|
|
|
40368
40271
|
this.aggregation === "count" ? t = Object.assign(t, { colorAggregation: "SUM" }) : this.aggregation === "weight" && (t = Object.assign(t, { getColorWeight: (e) => e.weight })), this.hexagonLayer = b(new zX(t));
|
|
40369
40272
|
}
|
|
40370
40273
|
}, gZ = class extends LY {
|
|
40371
|
-
hexagon = [];
|
|
40372
|
-
markers = [];
|
|
40373
|
-
markersMap = null;
|
|
40374
|
-
hexagonMap = null;
|
|
40375
|
-
hasDialog = !1;
|
|
40376
|
-
mainMapRef = null;
|
|
40377
|
-
overlay = null;
|
|
40378
|
-
aggregation = "weight";
|
|
40379
40274
|
constructor(e, t, n, r = !1, i = "weight") {
|
|
40380
|
-
super(e), this.mainMapRef = e, this.hexagon = t, this.markers = n, this.hasDialog = r, this.aggregation = i;
|
|
40275
|
+
super(e), this.hexagon = [], this.markers = [], this.markersMap = null, this.hexagonMap = null, this.hasDialog = !1, this.mainMapRef = null, this.overlay = null, this.aggregation = "weight", this.mainMapRef = e, this.hexagon = t, this.markers = n, this.hasDialog = r, this.aggregation = i;
|
|
40381
40276
|
}
|
|
40382
40277
|
init(e = null) {
|
|
40383
40278
|
this.initMap().then(() => {
|
|
@@ -110573,4 +110468,4 @@ var KZ = /* @__PURE__ */ d({
|
|
|
110573
110468
|
});
|
|
110574
110469
|
} };
|
|
110575
110470
|
//#endregion
|
|
110576
|
-
export { d$ as EasyConfirmationModal, OZ as EasyForm, CZ as EasyMap, p$ as EasyTable
|
|
110471
|
+
export { m$ as EasyComponents, d$ as EasyConfirmationModal, OZ as EasyForm, CZ as EasyMap, p$ as EasyTable };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(e,t){typeof exports==`object`&&typeof module<`u`?t(exports,require("vue")):typeof define==`function`&&define.amd?define([`exports`,`vue`],t):(e=typeof globalThis<`u`?globalThis:e||self,t(e.EasyComponents={},e.Vue))})(this,function(e,t){Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});var n=Object.create,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,o=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty,c=(e,t)=>()=>(e&&(t=e(e=0)),t),l=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),u=(e,t)=>{let n={};for(var i in e)r(n,i,{get:e[i],enumerable:!0});return t||r(n,Symbol.toStringTag,{value:`Module`}),n},d=(e,t,n,o)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var c=a(t),l=0,u=c.length,d;l<u;l++)d=c[l],!s.call(e,d)&&d!==n&&r(e,d,{get:(e=>t[e]).bind(null,d),enumerable:!(o=i(t,d))||o.enumerable});return e},f=(e,t,i)=>(i=e==null?{}:n(o(e)),d(t||!e||!e.__esModule?r(i,`default`,{value:e,enumerable:!0}):i,e)),p=e=>s.call(e,`module.exports`)?e[`module.exports`]:d(r({},`__esModule`,{value:!0}),e);t=f(t,1);function m(e){(0,t.warn)(`Vuetify: ${e}`)}function h(e){(0,t.warn)(`Vuetify error: ${e}`)}function g(e,n){n=Array.isArray(n)?n.slice(0,-1).map(e=>`'${e}'`).join(`, `)+` or '${n.at(-1)}'`:`'${n}'`,(0,t.warn)(`[Vuetify UPGRADE] '${e}' is deprecated, use ${n} instead.`)}var _=typeof window<`u`;_&&`IntersectionObserver`in window;var v=_&&(`ontouchstart`in window||window.navigator.maxTouchPoints>0);_&&`EyeDropper`in window;var y=_&&`matchMedia`in window&&typeof window.matchMedia==`function`,b=()=>y&&window.matchMedia(`(prefers-reduced-motion: reduce)`).matches;_&&CSS?.supports?.(`-webkit-backdrop-filter`,`none`);function x(e,t,n){let r=t.length-1;if(r<0)return e===void 0?n:e;for(let i=0;i<r;i++){if(e==null)return n;e=e[t[i]]}return e==null||e[t[r]]===void 0?n:e[t[r]]}function S(e,t,n){return e==null||!t||typeof t!=`string`?n:e[t]===void 0?(t=t.replace(/\[(\w+)\]/g,`.$1`),t=t.replace(/^\./,``),x(e,t.split(`.`),n)):e[t]}function C(e,t=0){return Array.from({length:e},(e,n)=>t+n)}function w(e){let t;return typeof e==`object`&&!!e&&((t=Object.getPrototypeOf(e))===Object.prototype||t===null)}Object.freeze({enter:13,tab:9,delete:46,esc:27,space:32,up:38,down:40,left:37,right:39,end:35,home:36,del:46,backspace:8,insert:45,pageup:33,pagedown:34,shift:16}),Object.freeze({enter:`Enter`,tab:`Tab`,delete:`Delete`,esc:`Escape`,space:`Space`,up:`ArrowUp`,down:`ArrowDown`,left:`ArrowLeft`,right:`ArrowRight`,end:`End`,home:`Home`,del:`Delete`,backspace:`Backspace`,insert:`Insert`,pageup:`PageUp`,pagedown:`PageDown`,shift:`Shift`});function T(e,t){return t.every(t=>e.hasOwnProperty(t))}function E(e,t){let n={};for(let r of t)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function D(e,t=0,n=1){return Math.max(t,Math.min(n,e))}function O(e,t,n=`0`){return e+n.repeat(Math.max(0,t-e.length))}function k(e,t,n=`0`){return n.repeat(Math.max(0,t-e.length))+e}function A(e,t=1){let n=[],r=0;for(;r<e.length;)n.push(e.substr(r,t)),r+=t;return n}function j(e={},t={},n,r){let i={};for(let t in e)i[t]=e[t];for(let a in t){let o=t[a];if(r&&!r(a,o))continue;let s=e[a];if(w(s)&&w(o)){i[a]=j(s,o,n,r);continue}if(n&&Array.isArray(s)&&Array.isArray(o)){i[a]=n(s,o);continue}i[a]=o}return i}function M(e=``){if(M.cache.has(e))return M.cache.get(e);let t=e.replace(/[^a-z]/gi,`-`).replace(/\B([A-Z])/g,`-$1`).toLowerCase();return M.cache.set(e,t),t}M.cache=new Map;var N=class{constructor(e){let t=document.body.currentCSSZoom??1,n=e instanceof Element,r=n?1+(1-t)/t:1,{x:i,y:a,width:o,height:s}=n?e.getBoundingClientRect():e;this.x=i*r,this.y=a*r,this.width=o*r,this.height=s*r}get top(){return this.y}get bottom(){return this.y+this.height}get left(){return this.x}get right(){return this.x+this.width}},P=2.4,F=.2126729,I=.7151522,L=.072175,R=.55,z=.58,B=.57,V=.62,H=.03,ee=1.45,U=5e-4,te=1.25,ne=1.25,re=.078,ie=12.82051282051282,ae=.06,oe=.001;function W(e,t){let n=(e.r/255)**P,r=(e.g/255)**P,i=(e.b/255)**P,a=(t.r/255)**P,o=(t.g/255)**P,s=(t.b/255)**P,c=n*F+r*I+i*L,l=a*F+o*I+s*L;if(c<=H&&(c+=(H-c)**ee),l<=H&&(l+=(H-l)**ee),Math.abs(l-c)<U)return 0;let u;if(l>c){let e=(l**R-c**z)*te;u=e<oe?0:e<re?e-e*ie*ae:e-ae}else{let e=(l**V-c**B)*ne;u=e>-.001?0:e>-.078?e-e*ie*ae:e+ae}return u*100}var G=.20689655172413793,se=e=>e>G**3?Math.cbrt(e):e/(3*G**2)+4/29,ce=e=>e>G?e**3:3*G**2*(e-4/29);function le(e){let t=se,n=t(e[1]);return[116*n-16,500*(t(e[0]/.95047)-n),200*(n-t(e[2]/1.08883))]}function ue(e){let t=ce,n=(e[0]+16)/116;return[t(n+e[1]/500)*.95047,t(n),t(n-e[2]/200)*1.08883]}var de=[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]],fe=e=>e<=.0031308?e*12.92:1.055*e**(1/2.4)-.055,K=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],pe=e=>e<=.04045?e/12.92:((e+.055)/1.055)**2.4;function q(e){let t=[,,,],n=fe,r=de;for(let i=0;i<3;++i)t[i]=Math.round(D(n(r[i][0]*e[0]+r[i][1]*e[1]+r[i][2]*e[2]))*255);return{r:t[0],g:t[1],b:t[2]}}function J({r:e,g:t,b:n}){let r=[0,0,0],i=pe,a=K;e=i(e/255),t=i(t/255),n=i(n/255);for(let i=0;i<3;++i)r[i]=a[i][0]*e+a[i][1]*t+a[i][2]*n;return r}var me=/^(?<fn>(?:rgb|hsl)a?)\((?<values>.+)\)/,he={rgb:(e,t,n,r)=>({r:e,g:t,b:n,a:r}),rgba:(e,t,n,r)=>({r:e,g:t,b:n,a:r}),hsl:(e,t,n,r)=>ve({h:e,s:t,l:n,a:r}),hsla:(e,t,n,r)=>ve({h:e,s:t,l:n,a:r}),hsv:(e,t,n,r)=>_e({h:e,s:t,v:n,a:r}),hsva:(e,t,n,r)=>_e({h:e,s:t,v:n,a:r})};function ge(e){if(typeof e==`number`)return(isNaN(e)||e<0||e>16777215)&&m(`'${e}' is not a valid hex color`),{r:(e&16711680)>>16,g:(e&65280)>>8,b:e&255};if(typeof e==`string`&&me.test(e)){let{groups:t}=e.match(me),{fn:n,values:r}=t,i=r.split(/,\s*|\s*\/\s*|\s+/).map((e,t)=>e.endsWith(`%`)||t>0&&t<3&&[`hsl`,`hsla`,`hsv`,`hsva`].includes(n)?parseFloat(e)/100:parseFloat(e));return he[n](...i)}else if(typeof e==`string`){let t=e.startsWith(`#`)?e.slice(1):e;[3,4].includes(t.length)?t=t.split(``).map(e=>e+e).join(``):[6,8].includes(t.length)||m(`'${e}' is not a valid hex(a) color`);let n=parseInt(t,16);return(isNaN(n)||n<0||n>4294967295)&&m(`'${e}' is not a valid hex(a) color`),Se(t)}else if(typeof e==`object`){if(T(e,[`r`,`g`,`b`]))return e;if(T(e,[`h`,`s`,`l`]))return _e(ye(e));if(T(e,[`h`,`s`,`v`]))return _e(e)}throw TypeError(`Invalid color: ${e==null?e:String(e)||e.constructor.name}\nExpected #hex, #hexa, rgb(), rgba(), hsl(), hsla(), object or number`)}function _e(e){let{h:t,s:n,v:r,a:i}=e,a=e=>{let i=(e+t/60)%6;return r-r*n*Math.max(Math.min(i,4-i,1),0)},o=[a(5),a(3),a(1)].map(e=>Math.round(e*255));return{r:o[0],g:o[1],b:o[2],a:i}}function ve(e){return _e(ye(e))}function ye(e){let{h:t,s:n,l:r,a:i}=e,a=r+n*Math.min(r,1-r);return{h:t,s:a===0?0:2-2*r/a,v:a,a:i}}function be(e){let t=Math.round(e).toString(16);return(`00`.substr(0,2-t.length)+t).toUpperCase()}function xe({r:e,g:t,b:n,a:r}){return`#${[be(e),be(t),be(n),r===void 0?``:be(Math.round(r*255))].join(``)}`}function Se(e){e=Ce(e);let[t,n,r,i]=A(e,2).map(e=>parseInt(e,16));return i=i===void 0?i:i/255,{r:t,g:n,b:r,a:i}}function Ce(e){return e.startsWith(`#`)&&(e=e.slice(1)),e=e.replace(/([^0-9a-f])/gi,`F`),(e.length===3||e.length===4)&&(e=e.split(``).map(e=>e+e).join(``)),e.length!==6&&(e=O(O(e,6),8,`F`)),e}function we(e,t){let n=le(J(e));return n[0]+=t*10,q(ue(n))}function Te(e,t){let n=le(J(e));return n[0]-=t*10,q(ue(n))}function Ee(e){return J(ge(e))[1]}function De(e){let t=Math.abs(W(ge(0),ge(e)));return Math.abs(W(ge(16777215),ge(e)))>Math.min(t,50)}function Oe(e,t){return n=>Object.keys(e).reduce((r,i)=>{let a=typeof e[i]==`object`&&e[i]!=null&&!Array.isArray(e[i])?e[i]:{type:e[i]};return n&&i in n?r[i]={...a,default:n[i]}:r[i]=a,t&&!r[i].source&&(r[i].source=t),r},{})}function ke(e,n){let r=(0,t.getCurrentInstance)();if(!r)throw Error(`[Vuetify] ${e} ${n||`must be called from inside a setup function`}`);return r}function Ae(e,t=ke(`injectSelf`)){let{provides:n}=t;if(n&&e in n)return n[e]}var je=Symbol.for(`vuetify:defaults`);function Me(e){return(0,t.ref)(e)}function Ne(){let e=(0,t.inject)(je);if(!e)throw Error(`[Vuetify] Could not find defaults instance`);return e}function Pe(e,t){return e.props&&(e.props[t]!==void 0||e.props[M(t)]!==void 0)}function Fe(e={},n,r=Ne()){let i=ke(`useDefaults`);if(n=n??i.type.name??i.type.__name,!n)throw Error(`[Vuetify] Could not determine component name`);let a=(0,t.computed)(()=>r.value?.[e._as??n]),o=new Proxy(e,{get(e,t){let n=Reflect.get(e,t);if(t===`class`||t===`style`)return[a.value?.[t],n].filter(e=>e!=null);if(Pe(i.vnode,t))return n;let o=a.value?.[t];if(o!==void 0)return o;let s=r.value?.global?.[t];return s===void 0?n:s}}),s=(0,t.shallowRef)();(0,t.watchEffect)(()=>{if(a.value){let e=Object.entries(a.value).filter(([e])=>e.startsWith(e[0].toUpperCase()));s.value=e.length?Object.fromEntries(e):void 0}else s.value=void 0});function c(){let e=Ae(je,i);(0,t.provide)(je,(0,t.computed)(()=>s.value?j(e?.value??{},s.value):e?.value))}return{props:o,provideSubDefaults:c}}function Ie(e){if(e._setup=e._setup??e.setup,!e.name)return m(`The component is missing an explicit name, unable to generate default prop value`),e;if(e._setup){e.props=Oe(e.props??{},e.name)();let t=Object.keys(e.props).filter(e=>e!==`class`&&e!==`style`);e.filterProps=function(e){return E(e,t)},e.props._as=String,e.setup=function(t,n){let r=Ne();if(!r.value)return e._setup(t,n);let{props:i,provideSubDefaults:a}=Fe(t,t._as??e.name,r),o=e._setup(i,n);return a(),o}}return e}function Le(e=!0){return n=>(e?Ie:t.defineComponent)(n)}var Re={linear:e=>e,easeInQuad:e=>e**2,easeOutQuad:e=>e*(2-e),easeInOutQuad:e=>e<.5?2*e**2:-1+(4-2*e)*e,easeInCubic:e=>e**3,easeOutCubic:e=>--e**3+1,easeInOutCubic:e=>e<.5?4*e**3:(e-1)*(2*e-2)*(2*e-2)+1,easeInQuart:e=>e**4,easeOutQuart:e=>1- --e**4,easeInOutQuart:e=>e<.5?8*e**4:1-8*--e**4,easeInQuint:e=>e**5,easeOutQuint:e=>1+--e**5,easeInOutQuint:e=>e<.5?16*e**5:1+16*--e**5,instant:e=>1},ze=[String,Function,Object,Array],Be=Symbol.for(`vuetify:icons`),Ve=Oe({icon:{type:ze},tag:{type:[String,Object,Function],required:!0}},`icon`);Le()({name:`VComponentIcon`,props:Ve(),setup(e,{slots:n}){return()=>{let r=e.icon;return(0,t.createVNode)(e.tag,null,{default:()=>[e.icon?(0,t.createVNode)(r,null,null):n.default?.()]})}}});var He=Ie({name:`VSvgIcon`,inheritAttrs:!1,props:Ve(),setup(e,{attrs:n}){return()=>(0,t.createVNode)(e.tag,(0,t.mergeProps)(n,{style:null}),{default:()=>[(0,t.createElementVNode)(`svg`,{class:`v-icon__svg`,xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,role:`img`,"aria-hidden":`true`},[Array.isArray(e.icon)?e.icon.map(e=>Array.isArray(e)?(0,t.createElementVNode)(`path`,{d:e[0],"fill-opacity":e[1]},null):(0,t.createElementVNode)(`path`,{d:e},null)):(0,t.createElementVNode)(`path`,{d:e.icon},null)])]})}});Ie({name:`VLigatureIcon`,props:Ve(),setup(e){return()=>(0,t.createVNode)(e.tag,null,{default:()=>[e.icon]})}});var Ue=Ie({name:`VClassIcon`,props:Ve(),setup(e){return()=>(0,t.createVNode)(e.tag,{class:(0,t.normalizeClass)(e.icon)},null)}}),We={collapse:`mdi-chevron-up`,complete:`mdi-check`,cancel:`mdi-close-circle`,close:`mdi-close`,delete:`mdi-close-circle`,clear:`mdi-close-circle`,success:`mdi-check-circle`,info:`mdi-information`,warning:`mdi-alert-circle`,error:`mdi-close-circle`,prev:`mdi-chevron-left`,next:`mdi-chevron-right`,checkboxOn:`mdi-checkbox-marked`,checkboxOff:`mdi-checkbox-blank-outline`,checkboxIndeterminate:`mdi-minus-box`,delimiter:`mdi-circle`,sortAsc:`mdi-arrow-up`,sortDesc:`mdi-arrow-down`,expand:`mdi-chevron-down`,menu:`mdi-menu`,subgroup:`mdi-menu-down`,dropdown:`mdi-menu-down`,radioOn:`mdi-radiobox-marked`,radioOff:`mdi-radiobox-blank`,edit:`mdi-pencil`,ratingEmpty:`mdi-star-outline`,ratingFull:`mdi-star`,ratingHalf:`mdi-star-half-full`,loading:`mdi-cached`,first:`mdi-page-first`,last:`mdi-page-last`,unfold:`mdi-unfold-more-horizontal`,file:`mdi-paperclip`,plus:`mdi-plus`,minus:`mdi-minus`,calendar:`mdi-calendar`,treeviewCollapse:`mdi-menu-down`,treeviewExpand:`mdi-menu-right`,tableGroupCollapse:`mdi-chevron-down`,tableGroupExpand:`mdi-chevron-right`,eyeDropper:`mdi-eyedropper`,upload:`mdi-cloud-upload`,color:`mdi-palette`,command:`mdi-apple-keyboard-command`,ctrl:`mdi-apple-keyboard-control`,space:`mdi-keyboard-space`,shift:`mdi-apple-keyboard-shift`,alt:`mdi-apple-keyboard-option`,enter:`mdi-keyboard-return`,arrowup:`mdi-arrow-up`,arrowdown:`mdi-arrow-down`,arrowleft:`mdi-arrow-left`,arrowright:`mdi-arrow-right`,backspace:`mdi-backspace`,play:`mdi-play`,pause:`mdi-pause`,fullscreen:`mdi-fullscreen`,fullscreenExit:`mdi-fullscreen-exit`,volumeHigh:`mdi-volume-high`,volumeMedium:`mdi-volume-medium`,volumeLow:`mdi-volume-low`,volumeOff:`mdi-volume-variant-off`,search:`mdi-magnify`},Ge={component:e=>(0,t.h)(Ue,{...e,class:`mdi`})};function Ke(){return{svg:{component:He},class:{component:Ue}}}function qe(e){let t=Ke(),n=e?.defaultSet??`mdi`;return n===`mdi`&&!t.mdi&&(t.mdi=Ge),j({defaultSet:n,sets:t,aliases:{...We,vuetify:[`M8.2241 14.2009L12 21L22 3H14.4459L8.2241 14.2009Z`,[`M7.26303 12.4733L7.00113 12L2 3H12.5261C12.5261 3 12.5261 3 12.5261 3L7.26303 12.4733Z`,.6]],"vuetify-outline":`svg:M7.26 12.47 12.53 3H2L7.26 12.47ZM14.45 3 8.22 14.2 12 21 22 3H14.45ZM18.6 5 12 16.88 10.51 14.2 15.62 5ZM7.26 8.35 5.4 5H9.13L7.26 8.35Z`,"vuetify-play":[`m6.376 13.184-4.11-7.192C1.505 4.66 2.467 3 4.003 3h8.532l-.953 1.576-.006.01-.396.677c-.429.732-.214 1.507.194 2.015.404.503 1.092.878 1.869.806a3.72 3.72 0 0 1 1.005.022c.276.053.434.143.523.237.138.146.38.635-.25 2.09-.893 1.63-1.553 1.722-1.847 1.677-.213-.033-.468-.158-.756-.406a4.95 4.95 0 0 1-.8-.927c-.39-.564-1.04-.84-1.66-.846-.625-.006-1.316.27-1.693.921l-.478.826-.911 1.506Z`,[`M9.093 11.552c.046-.079.144-.15.32-.148a.53.53 0 0 1 .43.207c.285.414.636.847 1.046 1.2.405.35.914.662 1.516.754 1.334.205 2.502-.698 3.48-2.495l.014-.028.013-.03c.687-1.574.774-2.852-.005-3.675-.37-.391-.861-.586-1.333-.676a5.243 5.243 0 0 0-1.447-.044c-.173.016-.393-.073-.54-.257-.145-.18-.127-.316-.082-.392l.393-.672L14.287 3h5.71c1.536 0 2.499 1.659 1.737 2.992l-7.997 13.996c-.768 1.344-2.706 1.344-3.473 0l-3.037-5.314 1.377-2.278.004-.006.004-.007.481-.831Z`,.6]]}},e)}function Je(e,n){let r;function i(){r=(0,t.effectScope)(),r.run(()=>n.length?n(()=>{r?.stop(),i()}):n())}(0,t.watch)(e,e=>{e&&!r?i():e||(r?.stop(),r=void 0)},{immediate:!0}),(0,t.onScopeDispose)(()=>{r?.stop()})}function Ye(e,n,r,i=e=>e,a=e=>e){let o=ke(`useProxiedModel`),s=(0,t.ref)(e[n]===void 0?r:e[n]),c=M(n),l=c===n?(0,t.computed)(()=>(e[n],!!(o.vnode.props?.hasOwnProperty(n)&&o.vnode.props?.hasOwnProperty(`onUpdate:${n}`)))):(0,t.computed)(()=>(e[n],!!((o.vnode.props?.hasOwnProperty(n)||o.vnode.props?.hasOwnProperty(c))&&(o.vnode.props?.hasOwnProperty(`onUpdate:${n}`)||o.vnode.props?.hasOwnProperty(`onUpdate:${c}`)))));Je(()=>!l.value,()=>{(0,t.watch)(()=>e[n],e=>{s.value=e})});let u=(0,t.computed)({get(){let t=e[n];return i(l.value?t:s.value)},set(r){let c=a(r),u=(0,t.toRaw)(l.value?e[n]:s.value);u===c||i(u)===r||(s.value=c,o?.emit(`update:${n}`,c))}});return Object.defineProperty(u,"externalValue",{get:()=>l.value?e[n]:s.value}),u}var Xe={badge:`Badge`,open:`Open`,close:`Close`,dismiss:`Dismiss`,confirmEdit:{ok:`OK`,cancel:`Cancel`},dataIterator:{noResultsText:`No matching records found`,loadingText:`Loading items...`},dataTable:{itemsPerPageText:`Rows per page:`,ariaLabel:{sortDescending:`Sorted descending.`,sortAscending:`Sorted ascending.`,sortNone:`Not sorted.`,activateNone:`Activate to remove sorting.`,activateDescending:`Activate to sort descending.`,activateAscending:`Activate to sort ascending.`,selectRow:`Select row`,selectAll:`Select all`,selectGroup:`Select group`},sortBy:`Sort by`},dataFooter:{itemsPerPageText:`Items per page:`,itemsPerPageAll:`All`,nextPage:`Next page`,prevPage:`Previous page`,firstPage:`First page`,lastPage:`Last page`,pageText:`{0}-{1} of {2}`},dateRangeInput:{divider:`to`},monthPicker:{title:`Select month`,itemsSelected:`{0} selected`,header:`Enter month`,range:{title:`Enter months`},ariaLabel:{previousYear:`Previous year`,nextYear:`Next year`,selectYear:`Select year`,currentMonth:`Current month, {0}`}},datePicker:{itemsSelected:`{0} selected`,range:{title:`Select dates`,header:`Enter dates`},title:`Select date`,header:`Enter date`,input:{placeholder:`Enter date`},ariaLabel:{previousMonth:`Previous month`,nextMonth:`Next month`,selectYear:`Select year`,previousYear:`Previous year`,nextYear:`Next year`,selectMonth:`Select month`,selectDate:`{0}`,currentDate:`Today, {0}`}},noDataText:`No data available`,carousel:{prev:`Previous visual`,next:`Next visual`,ariaLabel:{delimiter:`Carousel slide {0} of {1}`}},calendar:{moreEvents:`{0} more`,today:`Today`},heatmap:{less:`Less`,more:`More`},input:{clear:`Clear {0}`,prependAction:`{0} prepended action`,appendAction:`{0} appended action`,otp:`Enter verification code`},fileInput:{counter:`{0} files`,counterSize:`{0} files ({1} in total)`},fileUpload:{title:`Drag and drop files here`,divider:`or`,browse:`Browse Files`},timePicker:{am:`AM`,pm:`PM`,title:`Select Time`,hour:`Hour`,minute:`Minute`,second:`Second`,notAllowed:`Value is not allowed`},pagination:{ariaLabel:{root:`Pagination Navigation`,next:`Next page`,previous:`Previous page`,page:`Go to page {0}`,currentPage:`Page {0}, Current page`,first:`First page`,last:`Last page`}},stepper:{next:`Next`,prev:`Previous`},rating:{ariaLabel:{item:`Rating {0} of {1}`}},loading:`Loading...`,infiniteScroll:{loadMore:`Load more`,empty:`No more`},rules:{required:`This field is required`,email:`Please enter a valid email`,number:`This field can only contain numbers`,integer:`This field can only contain integer values`,capital:`This field can only contain uppercase letters`,maxLength:`You must enter a maximum of {0} characters`,minLength:`You must enter a minimum of {0} characters`,strictLength:`The length of the entered field is invalid`,exclude:`The {0} character is not allowed`,notEmpty:`Please choose at least one value`,pattern:`Invalid format`},command:{search:`Type a command or search...`},hotkey:{then:`then`,ctrl:`Ctrl`,command:`Command`,space:`Space`,shift:`Shift`,alt:`Alt`,enter:`Enter`,escape:`Escape`,upArrow:`Up Arrow`,downArrow:`Down Arrow`,leftArrow:`Left Arrow`,rightArrow:`Right Arrow`,backspace:`Backspace`,option:`Option`,plus:`plus`,shortcut:`Keyboard shortcut: {0}`,or:`or`},video:{play:`Play`,pause:`Pause`,seek:`Seek`,volume:`Volume`,showVolume:`Show volume control`,mute:`Mute`,unmute:`Unmute`,enterFullscreen:`Full screen`,exitFullscreen:`Exit full screen`},colorPicker:{ariaLabel:{eyedropper:`Select color with eyedropper`,hueSlider:`Hue`,alphaSlider:`Alpha`,redInput:`Red value`,greenInput:`Green value`,blueInput:`Blue value`,alphaInput:`Alpha value`,hueInput:`Hue value`,saturationInput:`Saturation value`,lightnessInput:`Lightness value`,hexInput:`HEX value`,hexaInput:`HEX with alpha value`,changeFormat:`Change color format`}}},Ze=`$vuetify.`,Qe=(e,t)=>e.replace(/\{(\d+)\}/g,(e,n)=>String(t[Number(n)])),$e=(e,t,n)=>(r,...i)=>{if(!r.startsWith(Ze))return Qe(r,i);let a=r.replace(Ze,``),o=e.value&&n.value[e.value],s=t.value&&n.value[t.value],c=S(o,a,null);return c||=(m(`Translation key "${r}" not found in "${e.value}", trying fallback locale`),S(s,a,null)),c||=(h(`Translation key "${r}" not found in fallback`),r),typeof c!=`string`&&(h(`Translation key "${r}" has a non-string value`),c=r),Qe(c,i)};function et(e,t){return(n,r)=>new Intl.NumberFormat([e.value,t.value],r).format(n)}function tt(e,t){return et(e,t)(.1).includes(`,`)?`,`:`.`}function nt(e,t){return new Intl.NumberFormat([e.value,t.value],{useGrouping:!0}).formatToParts(1e4).find(e=>e.type===`group`)?.value??`\xA0`}function rt(e,n,r){let i=Ye(e,n,e[n]??r.value);return i.value=e[n]??r.value,(0,t.watch)(r,t=>{e[n]??(i.value=r.value)}),i}function it(e){return n=>{let r=rt(n,`locale`,e.current),i=rt(n,`fallback`,e.fallback),a=rt(n,`messages`,e.messages);return{name:`vuetify`,current:r,fallback:i,messages:a,decimalSeparator:(0,t.toRef)(()=>tt(r,i)),numericGroupSeparator:(0,t.toRef)(()=>nt(r,i)),t:$e(r,i,a),n:et(r,i),provide:it({current:r,fallback:i,messages:a})}}}function at(e){let n=(0,t.shallowRef)(e?.locale??`en`),r=(0,t.shallowRef)(e?.fallback??`en`),i=(0,t.ref)({en:Xe,...e?.messages});return{name:`vuetify`,current:n,fallback:r,messages:i,decimalSeparator:(0,t.toRef)(()=>e?.decimalSeparator??tt(n,r)),numericGroupSeparator:(0,t.toRef)(()=>e?.numericGroupSeparator??nt(n,r)),t:$e(n,r,i),n:et(n,r),provide:it({current:n,fallback:r,messages:i})}}var ot=Symbol.for(`vuetify:locale`);function st(e){return e.name!=null}function ct(e){let t=e?.adapter&&st(e?.adapter)?e?.adapter:at(e),n=ut(t,e);return{...t,...n}}function lt(){return{af:!1,ar:!0,bg:!1,ca:!1,ckb:!1,cs:!1,de:!1,el:!1,en:!1,es:!1,et:!1,fa:!0,fi:!1,fr:!1,hr:!1,hu:!1,he:!0,id:!1,it:!1,ja:!1,km:!1,ko:!1,lv:!1,lt:!1,nl:!1,no:!1,pl:!1,pt:!1,ro:!1,ru:!1,sk:!1,sl:!1,srCyrl:!1,srLatn:!1,sv:!1,th:!1,tr:!1,az:!1,uk:!1,vi:!1,zhHans:!1,zhHant:!1}}function ut(e,n){let r=(0,t.ref)(n?.rtl??lt()),i=(0,t.computed)(()=>r.value[e.current.value]??!1);return{isRtl:i,rtl:r,rtlClasses:(0,t.toRef)(()=>`v-locale--is-${i.value?`rtl`:`ltr`}`)}}function dt(e){let t=e.slice(-2).toUpperCase();switch(!0){case e===`GB-alt-variant`:return{firstDay:0,firstWeekSize:4};case e===`001`:return{firstDay:1,firstWeekSize:1};case`AG AS BD BR BS BT BW BZ CA CO DM DO ET GT GU HK HN ID IL IN JM JP KE
|
|
1
|
+
(function(e,t){typeof exports==`object`&&typeof module<`u`?t(exports,require("vue")):typeof define==`function`&&define.amd?define([`exports`,`vue`],t):(e=typeof globalThis<`u`?globalThis:e||self,t(e.EasyComponentsTools={},e.Vue))})(this,function(e,t){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var n=Object.create,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,o=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty,c=(e,t)=>()=>(e&&(t=e(e=0)),t),l=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),u=(e,t)=>{let n={};for(var i in e)r(n,i,{get:e[i],enumerable:!0});return t||r(n,Symbol.toStringTag,{value:`Module`}),n},d=(e,t,n,o)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var c=a(t),l=0,u=c.length,d;l<u;l++)d=c[l],!s.call(e,d)&&d!==n&&r(e,d,{get:(e=>t[e]).bind(null,d),enumerable:!(o=i(t,d))||o.enumerable});return e},f=(e,t,i)=>(i=e==null?{}:n(o(e)),d(t||!e||!e.__esModule?r(i,`default`,{value:e,enumerable:!0}):i,e)),p=e=>s.call(e,`module.exports`)?e[`module.exports`]:d(r({},`__esModule`,{value:!0}),e);t=f(t,1);function m(e){(0,t.warn)(`Vuetify: ${e}`)}function h(e){(0,t.warn)(`Vuetify error: ${e}`)}function g(e,n){n=Array.isArray(n)?n.slice(0,-1).map(e=>`'${e}'`).join(`, `)+` or '${n.at(-1)}'`:`'${n}'`,(0,t.warn)(`[Vuetify UPGRADE] '${e}' is deprecated, use ${n} instead.`)}var _=typeof window<`u`;_&&`IntersectionObserver`in window;var v=_&&(`ontouchstart`in window||window.navigator.maxTouchPoints>0);_&&`EyeDropper`in window;var y=_&&`matchMedia`in window&&typeof window.matchMedia==`function`,b=()=>y&&window.matchMedia(`(prefers-reduced-motion: reduce)`).matches;_&&CSS?.supports?.(`-webkit-backdrop-filter`,`none`);function x(e,t,n){let r=t.length-1;if(r<0)return e===void 0?n:e;for(let i=0;i<r;i++){if(e==null)return n;e=e[t[i]]}return e==null||e[t[r]]===void 0?n:e[t[r]]}function S(e,t,n){return e==null||!t||typeof t!=`string`?n:e[t]===void 0?(t=t.replace(/\[(\w+)\]/g,`.$1`),t=t.replace(/^\./,``),x(e,t.split(`.`),n)):e[t]}function C(e,t=0){return Array.from({length:e},(e,n)=>t+n)}function w(e){let t;return typeof e==`object`&&!!e&&((t=Object.getPrototypeOf(e))===Object.prototype||t===null)}Object.freeze({enter:13,tab:9,delete:46,esc:27,space:32,up:38,down:40,left:37,right:39,end:35,home:36,del:46,backspace:8,insert:45,pageup:33,pagedown:34,shift:16}),Object.freeze({enter:`Enter`,tab:`Tab`,delete:`Delete`,esc:`Escape`,space:`Space`,up:`ArrowUp`,down:`ArrowDown`,left:`ArrowLeft`,right:`ArrowRight`,end:`End`,home:`Home`,del:`Delete`,backspace:`Backspace`,insert:`Insert`,pageup:`PageUp`,pagedown:`PageDown`,shift:`Shift`});function T(e,t){return t.every(t=>e.hasOwnProperty(t))}function E(e,t){let n={};for(let r of t)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function D(e,t=0,n=1){return Math.max(t,Math.min(n,e))}function O(e,t,n=`0`){return e+n.repeat(Math.max(0,t-e.length))}function k(e,t,n=`0`){return n.repeat(Math.max(0,t-e.length))+e}function A(e,t=1){let n=[],r=0;for(;r<e.length;)n.push(e.substr(r,t)),r+=t;return n}function j(e={},t={},n,r){let i={};for(let t in e)i[t]=e[t];for(let a in t){let o=t[a];if(r&&!r(a,o))continue;let s=e[a];if(w(s)&&w(o)){i[a]=j(s,o,n,r);continue}if(n&&Array.isArray(s)&&Array.isArray(o)){i[a]=n(s,o);continue}i[a]=o}return i}function M(e=``){if(M.cache.has(e))return M.cache.get(e);let t=e.replace(/[^a-z]/gi,`-`).replace(/\B([A-Z])/g,`-$1`).toLowerCase();return M.cache.set(e,t),t}M.cache=new Map;var N=class{constructor(e){let t=document.body.currentCSSZoom??1,n=e instanceof Element,r=n?1+(1-t)/t:1,{x:i,y:a,width:o,height:s}=n?e.getBoundingClientRect():e;this.x=i*r,this.y=a*r,this.width=o*r,this.height=s*r}get top(){return this.y}get bottom(){return this.y+this.height}get left(){return this.x}get right(){return this.x+this.width}},P=2.4,F=.2126729,I=.7151522,L=.072175,R=.55,z=.58,B=.57,V=.62,H=.03,ee=1.45,U=5e-4,te=1.25,ne=1.25,re=.078,ie=12.82051282051282,ae=.06,oe=.001;function W(e,t){let n=(e.r/255)**P,r=(e.g/255)**P,i=(e.b/255)**P,a=(t.r/255)**P,o=(t.g/255)**P,s=(t.b/255)**P,c=n*F+r*I+i*L,l=a*F+o*I+s*L;if(c<=H&&(c+=(H-c)**ee),l<=H&&(l+=(H-l)**ee),Math.abs(l-c)<U)return 0;let u;if(l>c){let e=(l**R-c**z)*te;u=e<oe?0:e<re?e-e*ie*ae:e-ae}else{let e=(l**V-c**B)*ne;u=e>-.001?0:e>-.078?e-e*ie*ae:e+ae}return u*100}var G=.20689655172413793,se=e=>e>G**3?Math.cbrt(e):e/(3*G**2)+4/29,ce=e=>e>G?e**3:3*G**2*(e-4/29);function le(e){let t=se,n=t(e[1]);return[116*n-16,500*(t(e[0]/.95047)-n),200*(n-t(e[2]/1.08883))]}function ue(e){let t=ce,n=(e[0]+16)/116;return[t(n+e[1]/500)*.95047,t(n),t(n-e[2]/200)*1.08883]}var de=[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]],fe=e=>e<=.0031308?e*12.92:1.055*e**(1/2.4)-.055,K=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],pe=e=>e<=.04045?e/12.92:((e+.055)/1.055)**2.4;function q(e){let t=[,,,],n=fe,r=de;for(let i=0;i<3;++i)t[i]=Math.round(D(n(r[i][0]*e[0]+r[i][1]*e[1]+r[i][2]*e[2]))*255);return{r:t[0],g:t[1],b:t[2]}}function J({r:e,g:t,b:n}){let r=[0,0,0],i=pe,a=K;e=i(e/255),t=i(t/255),n=i(n/255);for(let i=0;i<3;++i)r[i]=a[i][0]*e+a[i][1]*t+a[i][2]*n;return r}var me=/^(?<fn>(?:rgb|hsl)a?)\((?<values>.+)\)/,he={rgb:(e,t,n,r)=>({r:e,g:t,b:n,a:r}),rgba:(e,t,n,r)=>({r:e,g:t,b:n,a:r}),hsl:(e,t,n,r)=>ve({h:e,s:t,l:n,a:r}),hsla:(e,t,n,r)=>ve({h:e,s:t,l:n,a:r}),hsv:(e,t,n,r)=>_e({h:e,s:t,v:n,a:r}),hsva:(e,t,n,r)=>_e({h:e,s:t,v:n,a:r})};function ge(e){if(typeof e==`number`)return(isNaN(e)||e<0||e>16777215)&&m(`'${e}' is not a valid hex color`),{r:(e&16711680)>>16,g:(e&65280)>>8,b:e&255};if(typeof e==`string`&&me.test(e)){let{groups:t}=e.match(me),{fn:n,values:r}=t,i=r.split(/,\s*|\s*\/\s*|\s+/).map((e,t)=>e.endsWith(`%`)||t>0&&t<3&&[`hsl`,`hsla`,`hsv`,`hsva`].includes(n)?parseFloat(e)/100:parseFloat(e));return he[n](...i)}else if(typeof e==`string`){let t=e.startsWith(`#`)?e.slice(1):e;[3,4].includes(t.length)?t=t.split(``).map(e=>e+e).join(``):[6,8].includes(t.length)||m(`'${e}' is not a valid hex(a) color`);let n=parseInt(t,16);return(isNaN(n)||n<0||n>4294967295)&&m(`'${e}' is not a valid hex(a) color`),Se(t)}else if(typeof e==`object`){if(T(e,[`r`,`g`,`b`]))return e;if(T(e,[`h`,`s`,`l`]))return _e(ye(e));if(T(e,[`h`,`s`,`v`]))return _e(e)}throw TypeError(`Invalid color: ${e==null?e:String(e)||e.constructor.name}\nExpected #hex, #hexa, rgb(), rgba(), hsl(), hsla(), object or number`)}function _e(e){let{h:t,s:n,v:r,a:i}=e,a=e=>{let i=(e+t/60)%6;return r-r*n*Math.max(Math.min(i,4-i,1),0)},o=[a(5),a(3),a(1)].map(e=>Math.round(e*255));return{r:o[0],g:o[1],b:o[2],a:i}}function ve(e){return _e(ye(e))}function ye(e){let{h:t,s:n,l:r,a:i}=e,a=r+n*Math.min(r,1-r);return{h:t,s:a===0?0:2-2*r/a,v:a,a:i}}function be(e){let t=Math.round(e).toString(16);return(`00`.substr(0,2-t.length)+t).toUpperCase()}function xe({r:e,g:t,b:n,a:r}){return`#${[be(e),be(t),be(n),r===void 0?``:be(Math.round(r*255))].join(``)}`}function Se(e){e=Ce(e);let[t,n,r,i]=A(e,2).map(e=>parseInt(e,16));return i=i===void 0?i:i/255,{r:t,g:n,b:r,a:i}}function Ce(e){return e.startsWith(`#`)&&(e=e.slice(1)),e=e.replace(/([^0-9a-f])/gi,`F`),(e.length===3||e.length===4)&&(e=e.split(``).map(e=>e+e).join(``)),e.length!==6&&(e=O(O(e,6),8,`F`)),e}function we(e,t){let n=le(J(e));return n[0]+=t*10,q(ue(n))}function Te(e,t){let n=le(J(e));return n[0]-=t*10,q(ue(n))}function Ee(e){return J(ge(e))[1]}function De(e){let t=Math.abs(W(ge(0),ge(e)));return Math.abs(W(ge(16777215),ge(e)))>Math.min(t,50)}function Oe(e,t){return n=>Object.keys(e).reduce((r,i)=>{let a=typeof e[i]==`object`&&e[i]!=null&&!Array.isArray(e[i])?e[i]:{type:e[i]};return n&&i in n?r[i]={...a,default:n[i]}:r[i]=a,t&&!r[i].source&&(r[i].source=t),r},{})}function ke(e,n){let r=(0,t.getCurrentInstance)();if(!r)throw Error(`[Vuetify] ${e} ${n||`must be called from inside a setup function`}`);return r}function Ae(e,t=ke(`injectSelf`)){let{provides:n}=t;if(n&&e in n)return n[e]}var je=Symbol.for(`vuetify:defaults`);function Me(e){return(0,t.ref)(e)}function Ne(){let e=(0,t.inject)(je);if(!e)throw Error(`[Vuetify] Could not find defaults instance`);return e}function Pe(e,t){return e.props&&(e.props[t]!==void 0||e.props[M(t)]!==void 0)}function Fe(e={},n,r=Ne()){let i=ke(`useDefaults`);if(n=n??i.type.name??i.type.__name,!n)throw Error(`[Vuetify] Could not determine component name`);let a=(0,t.computed)(()=>r.value?.[e._as??n]),o=new Proxy(e,{get(e,t){let n=Reflect.get(e,t);if(t===`class`||t===`style`)return[a.value?.[t],n].filter(e=>e!=null);if(Pe(i.vnode,t))return n;let o=a.value?.[t];if(o!==void 0)return o;let s=r.value?.global?.[t];return s===void 0?n:s}}),s=(0,t.shallowRef)();(0,t.watchEffect)(()=>{if(a.value){let e=Object.entries(a.value).filter(([e])=>e.startsWith(e[0].toUpperCase()));s.value=e.length?Object.fromEntries(e):void 0}else s.value=void 0});function c(){let e=Ae(je,i);(0,t.provide)(je,(0,t.computed)(()=>s.value?j(e?.value??{},s.value):e?.value))}return{props:o,provideSubDefaults:c}}function Ie(e){if(e._setup=e._setup??e.setup,!e.name)return m(`The component is missing an explicit name, unable to generate default prop value`),e;if(e._setup){e.props=Oe(e.props??{},e.name)();let t=Object.keys(e.props).filter(e=>e!==`class`&&e!==`style`);e.filterProps=function(e){return E(e,t)},e.props._as=String,e.setup=function(t,n){let r=Ne();if(!r.value)return e._setup(t,n);let{props:i,provideSubDefaults:a}=Fe(t,t._as??e.name,r),o=e._setup(i,n);return a(),o}}return e}function Le(e=!0){return n=>(e?Ie:t.defineComponent)(n)}var Re={linear:e=>e,easeInQuad:e=>e**2,easeOutQuad:e=>e*(2-e),easeInOutQuad:e=>e<.5?2*e**2:-1+(4-2*e)*e,easeInCubic:e=>e**3,easeOutCubic:e=>--e**3+1,easeInOutCubic:e=>e<.5?4*e**3:(e-1)*(2*e-2)*(2*e-2)+1,easeInQuart:e=>e**4,easeOutQuart:e=>1- --e**4,easeInOutQuart:e=>e<.5?8*e**4:1-8*--e**4,easeInQuint:e=>e**5,easeOutQuint:e=>1+--e**5,easeInOutQuint:e=>e<.5?16*e**5:1+16*--e**5,instant:e=>1},ze=[String,Function,Object,Array],Be=Symbol.for(`vuetify:icons`),Ve=Oe({icon:{type:ze},tag:{type:[String,Object,Function],required:!0}},`icon`);Le()({name:`VComponentIcon`,props:Ve(),setup(e,{slots:n}){return()=>{let r=e.icon;return(0,t.createVNode)(e.tag,null,{default:()=>[e.icon?(0,t.createVNode)(r,null,null):n.default?.()]})}}});var He=Ie({name:`VSvgIcon`,inheritAttrs:!1,props:Ve(),setup(e,{attrs:n}){return()=>(0,t.createVNode)(e.tag,(0,t.mergeProps)(n,{style:null}),{default:()=>[(0,t.createElementVNode)(`svg`,{class:`v-icon__svg`,xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,role:`img`,"aria-hidden":`true`},[Array.isArray(e.icon)?e.icon.map(e=>Array.isArray(e)?(0,t.createElementVNode)(`path`,{d:e[0],"fill-opacity":e[1]},null):(0,t.createElementVNode)(`path`,{d:e},null)):(0,t.createElementVNode)(`path`,{d:e.icon},null)])]})}});Ie({name:`VLigatureIcon`,props:Ve(),setup(e){return()=>(0,t.createVNode)(e.tag,null,{default:()=>[e.icon]})}});var Ue=Ie({name:`VClassIcon`,props:Ve(),setup(e){return()=>(0,t.createVNode)(e.tag,{class:(0,t.normalizeClass)(e.icon)},null)}}),We={collapse:`mdi-chevron-up`,complete:`mdi-check`,cancel:`mdi-close-circle`,close:`mdi-close`,delete:`mdi-close-circle`,clear:`mdi-close-circle`,success:`mdi-check-circle`,info:`mdi-information`,warning:`mdi-alert-circle`,error:`mdi-close-circle`,prev:`mdi-chevron-left`,next:`mdi-chevron-right`,checkboxOn:`mdi-checkbox-marked`,checkboxOff:`mdi-checkbox-blank-outline`,checkboxIndeterminate:`mdi-minus-box`,delimiter:`mdi-circle`,sortAsc:`mdi-arrow-up`,sortDesc:`mdi-arrow-down`,expand:`mdi-chevron-down`,menu:`mdi-menu`,subgroup:`mdi-menu-down`,dropdown:`mdi-menu-down`,radioOn:`mdi-radiobox-marked`,radioOff:`mdi-radiobox-blank`,edit:`mdi-pencil`,ratingEmpty:`mdi-star-outline`,ratingFull:`mdi-star`,ratingHalf:`mdi-star-half-full`,loading:`mdi-cached`,first:`mdi-page-first`,last:`mdi-page-last`,unfold:`mdi-unfold-more-horizontal`,file:`mdi-paperclip`,plus:`mdi-plus`,minus:`mdi-minus`,calendar:`mdi-calendar`,treeviewCollapse:`mdi-menu-down`,treeviewExpand:`mdi-menu-right`,tableGroupCollapse:`mdi-chevron-down`,tableGroupExpand:`mdi-chevron-right`,eyeDropper:`mdi-eyedropper`,upload:`mdi-cloud-upload`,color:`mdi-palette`,command:`mdi-apple-keyboard-command`,ctrl:`mdi-apple-keyboard-control`,space:`mdi-keyboard-space`,shift:`mdi-apple-keyboard-shift`,alt:`mdi-apple-keyboard-option`,enter:`mdi-keyboard-return`,arrowup:`mdi-arrow-up`,arrowdown:`mdi-arrow-down`,arrowleft:`mdi-arrow-left`,arrowright:`mdi-arrow-right`,backspace:`mdi-backspace`,play:`mdi-play`,pause:`mdi-pause`,fullscreen:`mdi-fullscreen`,fullscreenExit:`mdi-fullscreen-exit`,volumeHigh:`mdi-volume-high`,volumeMedium:`mdi-volume-medium`,volumeLow:`mdi-volume-low`,volumeOff:`mdi-volume-variant-off`,search:`mdi-magnify`},Ge={component:e=>(0,t.h)(Ue,{...e,class:`mdi`})};function Ke(){return{svg:{component:He},class:{component:Ue}}}function qe(e){let t=Ke(),n=e?.defaultSet??`mdi`;return n===`mdi`&&!t.mdi&&(t.mdi=Ge),j({defaultSet:n,sets:t,aliases:{...We,vuetify:[`M8.2241 14.2009L12 21L22 3H14.4459L8.2241 14.2009Z`,[`M7.26303 12.4733L7.00113 12L2 3H12.5261C12.5261 3 12.5261 3 12.5261 3L7.26303 12.4733Z`,.6]],"vuetify-outline":`svg:M7.26 12.47 12.53 3H2L7.26 12.47ZM14.45 3 8.22 14.2 12 21 22 3H14.45ZM18.6 5 12 16.88 10.51 14.2 15.62 5ZM7.26 8.35 5.4 5H9.13L7.26 8.35Z`,"vuetify-play":[`m6.376 13.184-4.11-7.192C1.505 4.66 2.467 3 4.003 3h8.532l-.953 1.576-.006.01-.396.677c-.429.732-.214 1.507.194 2.015.404.503 1.092.878 1.869.806a3.72 3.72 0 0 1 1.005.022c.276.053.434.143.523.237.138.146.38.635-.25 2.09-.893 1.63-1.553 1.722-1.847 1.677-.213-.033-.468-.158-.756-.406a4.95 4.95 0 0 1-.8-.927c-.39-.564-1.04-.84-1.66-.846-.625-.006-1.316.27-1.693.921l-.478.826-.911 1.506Z`,[`M9.093 11.552c.046-.079.144-.15.32-.148a.53.53 0 0 1 .43.207c.285.414.636.847 1.046 1.2.405.35.914.662 1.516.754 1.334.205 2.502-.698 3.48-2.495l.014-.028.013-.03c.687-1.574.774-2.852-.005-3.675-.37-.391-.861-.586-1.333-.676a5.243 5.243 0 0 0-1.447-.044c-.173.016-.393-.073-.54-.257-.145-.18-.127-.316-.082-.392l.393-.672L14.287 3h5.71c1.536 0 2.499 1.659 1.737 2.992l-7.997 13.996c-.768 1.344-2.706 1.344-3.473 0l-3.037-5.314 1.377-2.278.004-.006.004-.007.481-.831Z`,.6]]}},e)}function Je(e,n){let r;function i(){r=(0,t.effectScope)(),r.run(()=>n.length?n(()=>{r?.stop(),i()}):n())}(0,t.watch)(e,e=>{e&&!r?i():e||(r?.stop(),r=void 0)},{immediate:!0}),(0,t.onScopeDispose)(()=>{r?.stop()})}function Ye(e,n,r,i=e=>e,a=e=>e){let o=ke(`useProxiedModel`),s=(0,t.ref)(e[n]===void 0?r:e[n]),c=M(n),l=c===n?(0,t.computed)(()=>(e[n],!!(o.vnode.props?.hasOwnProperty(n)&&o.vnode.props?.hasOwnProperty(`onUpdate:${n}`)))):(0,t.computed)(()=>(e[n],!!((o.vnode.props?.hasOwnProperty(n)||o.vnode.props?.hasOwnProperty(c))&&(o.vnode.props?.hasOwnProperty(`onUpdate:${n}`)||o.vnode.props?.hasOwnProperty(`onUpdate:${c}`)))));Je(()=>!l.value,()=>{(0,t.watch)(()=>e[n],e=>{s.value=e})});let u=(0,t.computed)({get(){let t=e[n];return i(l.value?t:s.value)},set(r){let c=a(r),u=(0,t.toRaw)(l.value?e[n]:s.value);u===c||i(u)===r||(s.value=c,o?.emit(`update:${n}`,c))}});return Object.defineProperty(u,"externalValue",{get:()=>l.value?e[n]:s.value}),u}var Xe={badge:`Badge`,open:`Open`,close:`Close`,dismiss:`Dismiss`,confirmEdit:{ok:`OK`,cancel:`Cancel`},dataIterator:{noResultsText:`No matching records found`,loadingText:`Loading items...`},dataTable:{itemsPerPageText:`Rows per page:`,ariaLabel:{sortDescending:`Sorted descending.`,sortAscending:`Sorted ascending.`,sortNone:`Not sorted.`,activateNone:`Activate to remove sorting.`,activateDescending:`Activate to sort descending.`,activateAscending:`Activate to sort ascending.`,selectRow:`Select row`,selectAll:`Select all`,selectGroup:`Select group`},sortBy:`Sort by`},dataFooter:{itemsPerPageText:`Items per page:`,itemsPerPageAll:`All`,nextPage:`Next page`,prevPage:`Previous page`,firstPage:`First page`,lastPage:`Last page`,pageText:`{0}-{1} of {2}`},dateRangeInput:{divider:`to`},monthPicker:{title:`Select month`,itemsSelected:`{0} selected`,header:`Enter month`,range:{title:`Enter months`},ariaLabel:{previousYear:`Previous year`,nextYear:`Next year`,selectYear:`Select year`,currentMonth:`Current month, {0}`}},datePicker:{itemsSelected:`{0} selected`,range:{title:`Select dates`,header:`Enter dates`},title:`Select date`,header:`Enter date`,input:{placeholder:`Enter date`},ariaLabel:{previousMonth:`Previous month`,nextMonth:`Next month`,selectYear:`Select year`,previousYear:`Previous year`,nextYear:`Next year`,selectMonth:`Select month`,selectDate:`{0}`,currentDate:`Today, {0}`}},noDataText:`No data available`,carousel:{prev:`Previous visual`,next:`Next visual`,ariaLabel:{delimiter:`Carousel slide {0} of {1}`}},calendar:{moreEvents:`{0} more`,today:`Today`},heatmap:{less:`Less`,more:`More`},input:{clear:`Clear {0}`,prependAction:`{0} prepended action`,appendAction:`{0} appended action`,otp:`Enter verification code`},fileInput:{counter:`{0} files`,counterSize:`{0} files ({1} in total)`},fileUpload:{title:`Drag and drop files here`,divider:`or`,browse:`Browse Files`},timePicker:{am:`AM`,pm:`PM`,title:`Select Time`,hour:`Hour`,minute:`Minute`,second:`Second`,notAllowed:`Value is not allowed`},pagination:{ariaLabel:{root:`Pagination Navigation`,next:`Next page`,previous:`Previous page`,page:`Go to page {0}`,currentPage:`Page {0}, Current page`,first:`First page`,last:`Last page`}},stepper:{next:`Next`,prev:`Previous`},rating:{ariaLabel:{item:`Rating {0} of {1}`}},loading:`Loading...`,infiniteScroll:{loadMore:`Load more`,empty:`No more`},rules:{required:`This field is required`,email:`Please enter a valid email`,number:`This field can only contain numbers`,integer:`This field can only contain integer values`,capital:`This field can only contain uppercase letters`,maxLength:`You must enter a maximum of {0} characters`,minLength:`You must enter a minimum of {0} characters`,strictLength:`The length of the entered field is invalid`,exclude:`The {0} character is not allowed`,notEmpty:`Please choose at least one value`,pattern:`Invalid format`},command:{search:`Type a command or search...`},hotkey:{then:`then`,ctrl:`Ctrl`,command:`Command`,space:`Space`,shift:`Shift`,alt:`Alt`,enter:`Enter`,escape:`Escape`,upArrow:`Up Arrow`,downArrow:`Down Arrow`,leftArrow:`Left Arrow`,rightArrow:`Right Arrow`,backspace:`Backspace`,option:`Option`,plus:`plus`,shortcut:`Keyboard shortcut: {0}`,or:`or`},video:{play:`Play`,pause:`Pause`,seek:`Seek`,volume:`Volume`,showVolume:`Show volume control`,mute:`Mute`,unmute:`Unmute`,enterFullscreen:`Full screen`,exitFullscreen:`Exit full screen`},colorPicker:{ariaLabel:{eyedropper:`Select color with eyedropper`,hueSlider:`Hue`,alphaSlider:`Alpha`,redInput:`Red value`,greenInput:`Green value`,blueInput:`Blue value`,alphaInput:`Alpha value`,hueInput:`Hue value`,saturationInput:`Saturation value`,lightnessInput:`Lightness value`,hexInput:`HEX value`,hexaInput:`HEX with alpha value`,changeFormat:`Change color format`}}},Ze=`$vuetify.`,Qe=(e,t)=>e.replace(/\{(\d+)\}/g,(e,n)=>String(t[Number(n)])),$e=(e,t,n)=>(r,...i)=>{if(!r.startsWith(Ze))return Qe(r,i);let a=r.replace(Ze,``),o=e.value&&n.value[e.value],s=t.value&&n.value[t.value],c=S(o,a,null);return c||=(m(`Translation key "${r}" not found in "${e.value}", trying fallback locale`),S(s,a,null)),c||=(h(`Translation key "${r}" not found in fallback`),r),typeof c!=`string`&&(h(`Translation key "${r}" has a non-string value`),c=r),Qe(c,i)};function et(e,t){return(n,r)=>new Intl.NumberFormat([e.value,t.value],r).format(n)}function tt(e,t){return et(e,t)(.1).includes(`,`)?`,`:`.`}function nt(e,t){return new Intl.NumberFormat([e.value,t.value],{useGrouping:!0}).formatToParts(1e4).find(e=>e.type===`group`)?.value??`\xA0`}function rt(e,n,r){let i=Ye(e,n,e[n]??r.value);return i.value=e[n]??r.value,(0,t.watch)(r,t=>{e[n]??(i.value=r.value)}),i}function it(e){return n=>{let r=rt(n,`locale`,e.current),i=rt(n,`fallback`,e.fallback),a=rt(n,`messages`,e.messages);return{name:`vuetify`,current:r,fallback:i,messages:a,decimalSeparator:(0,t.toRef)(()=>tt(r,i)),numericGroupSeparator:(0,t.toRef)(()=>nt(r,i)),t:$e(r,i,a),n:et(r,i),provide:it({current:r,fallback:i,messages:a})}}}function at(e){let n=(0,t.shallowRef)(e?.locale??`en`),r=(0,t.shallowRef)(e?.fallback??`en`),i=(0,t.ref)({en:Xe,...e?.messages});return{name:`vuetify`,current:n,fallback:r,messages:i,decimalSeparator:(0,t.toRef)(()=>e?.decimalSeparator??tt(n,r)),numericGroupSeparator:(0,t.toRef)(()=>e?.numericGroupSeparator??nt(n,r)),t:$e(n,r,i),n:et(n,r),provide:it({current:n,fallback:r,messages:i})}}var ot=Symbol.for(`vuetify:locale`);function st(e){return e.name!=null}function ct(e){let t=e?.adapter&&st(e?.adapter)?e?.adapter:at(e),n=ut(t,e);return{...t,...n}}function lt(){return{af:!1,ar:!0,bg:!1,ca:!1,ckb:!1,cs:!1,de:!1,el:!1,en:!1,es:!1,et:!1,fa:!0,fi:!1,fr:!1,hr:!1,hu:!1,he:!0,id:!1,it:!1,ja:!1,km:!1,ko:!1,lv:!1,lt:!1,nl:!1,no:!1,pl:!1,pt:!1,ro:!1,ru:!1,sk:!1,sl:!1,srCyrl:!1,srLatn:!1,sv:!1,th:!1,tr:!1,az:!1,uk:!1,vi:!1,zhHans:!1,zhHant:!1}}function ut(e,n){let r=(0,t.ref)(n?.rtl??lt()),i=(0,t.computed)(()=>r.value[e.current.value]??!1);return{isRtl:i,rtl:r,rtlClasses:(0,t.toRef)(()=>`v-locale--is-${i.value?`rtl`:`ltr`}`)}}function dt(e){let t=e.slice(-2).toUpperCase();switch(!0){case e===`GB-alt-variant`:return{firstDay:0,firstWeekSize:4};case e===`001`:return{firstDay:1,firstWeekSize:1};case`AG AS BD BR BS BT BW BZ CA CO DM DO ET GT GU HK HN ID IL IN JM JP KE
|
|
2
2
|
KH KR LA MH MM MO MT MX MZ NI NP PA PE PH PK PR PY SA SG SV TH TT TW UM US
|
|
3
3
|
VE VI WS YE ZA ZW`.includes(t):return{firstDay:0,firstWeekSize:1};case`AI AL AM AR AU AZ BA BM BN BY CL CM CN CR CY EC GE HR KG KZ LB LK LV
|
|
4
4
|
MD ME MK MN MY NZ RO RS SI TJ TM TR UA UY UZ VN XK`.includes(t):return{firstDay:1,firstWeekSize:1};case`AD AN AT AX BE BG CH CZ DE DK EE ES FI FJ FO FR GB GF GP GR HU IE IS
|
|
@@ -3271,7 +3271,7 @@ fragColor = vColor;
|
|
|
3271
3271
|
geometry.uv = vec2(0.);
|
|
3272
3272
|
DECKGL_FILTER_COLOR(fragColor, geometry);
|
|
3273
3273
|
}
|
|
3274
|
-
`,wX=[0,0,0,255],TX={filled:!0,extruded:!1,wireframe:!1,_normalize:!0,_windingOrder:`CW`,_full3d:!1,elevationScale:{type:`number`,min:0,value:1},getPolygon:{type:`accessor`,value:e=>e.polygon},getElevation:{type:`accessor`,value:1e3},getFillColor:{type:`accessor`,value:wX},getLineColor:{type:`accessor`,value:wX},material:!0},EX={enter:(e,t)=>t.length?t.subarray(t.length-e.length):e},DX=class extends Xq{getShaders(e){return super.getShaders({vs:e===`top`?xX:SX,fs:CX,defines:{RING_WINDING_ORDER_CW:!this.props._normalize&&this.props._windingOrder===`CCW`?0:1},modules:[oV,rz,QV,yX]})}get wrapLongitude(){return!1}getBounds(){return this.getAttributeManager()?.getBounds([`vertexPositions`])}initializeState(){let{viewport:e}=this.context,{coordinateSystem:t}=this.props,{_full3d:n}=this.props;e.isGeospatial&&t==="default"&&(t=`lnglat`);let r;t===`lnglat`&&(r=n?e.projectPosition.bind(e):e.projectFlat.bind(e)),this.setState({numInstances:0,polygonTesselator:new gX({preproject:r,fp64:this.use64bitPositions(),IndexType:Uint32Array})});let i=this.getAttributeManager();i.remove([`instancePickingColors`]),i.add({indices:{size:1,isIndexed:!0,update:this.calculateIndices,noAlloc:!0},vertexPositions:{size:3,type:`float64`,stepMode:`dynamic`,fp64:this.use64bitPositions(),transition:EX,accessor:`getPolygon`,update:this.calculatePositions,noAlloc:!0,shaderAttributes:{nextVertexPositions:{vertexOffset:1}}},instanceVertexValid:{size:1,type:`uint16`,stepMode:`instance`,update:this.calculateVertexValid,noAlloc:!0},elevations:{size:1,stepMode:`dynamic`,transition:EX,accessor:`getElevation`},fillColors:{size:this.props.colorFormat.length,type:`unorm8`,stepMode:`dynamic`,transition:EX,accessor:`getFillColor`,defaultValue:wX},lineColors:{size:this.props.colorFormat.length,type:`unorm8`,stepMode:`dynamic`,transition:EX,accessor:`getLineColor`,defaultValue:wX},pickingColors:{size:4,type:`uint8`,stepMode:`dynamic`,accessor:(e,{index:t,target:n})=>this.encodePickingColor(e&&e.__source?e.__source.index:t,n)}})}getPickingInfo(e){let t=super.getPickingInfo(e),{index:n}=t,r=this.props.data;return r[0]&&r[0].__source&&(t.object=r.find(e=>e.__source.index===n)),t}disablePickingIndex(e){let t=this.props.data;if(t[0]&&t[0].__source)for(let n=0;n<t.length;n++)t[n].__source.index===e&&this._disablePickingIndex(n);else super.disablePickingIndex(e)}draw({uniforms:e}){let{extruded:t,filled:n,wireframe:r,elevationScale:i}=this.props,{topModel:a,sideModel:o,wireframeModel:s,polygonTesselator:c}=this.state,l={extruded:!!t,elevationScale:i,isWireframe:!1};s&&r&&(s.setInstanceCount(c.instanceCount-1),s.shaderInputs.setProps({solidPolygon:{...l,isWireframe:!0}}),s.draw(this.context.renderPass)),o&&n&&(o.setInstanceCount(c.instanceCount-1),o.shaderInputs.setProps({solidPolygon:l}),o.draw(this.context.renderPass)),a&&n&&(a.setVertexCount(c.vertexCount),a.shaderInputs.setProps({solidPolygon:l}),a.draw(this.context.renderPass))}updateState(e){super.updateState(e),this.updateGeometry(e);let{props:t,oldProps:n,changeFlags:r}=e,i=this.getAttributeManager();(r.extensionsChanged||t.filled!==n.filled||t.extruded!==n.extruded)&&(this.state.models?.forEach(e=>e.destroy()),this.setState(this._getModels()),i.invalidateAll())}updateGeometry({props:e,oldProps:t,changeFlags:n}){if(n.dataChanged||n.updateTriggersChanged&&(n.updateTriggersChanged.all||n.updateTriggersChanged.getPolygon)){let{polygonTesselator:t}=this.state,r=e.data.attributes||{};t.updateGeometry({data:e.data,normalize:e._normalize,geometryBuffer:r.getPolygon,buffers:r,getGeometry:e.getPolygon,positionFormat:e.positionFormat,wrapLongitude:e.wrapLongitude,resolution:this.context.viewport.resolution,fp64:this.use64bitPositions(),dataChanged:n.dataChanged,full3d:e._full3d}),this.setState({numInstances:t.instanceCount,startIndices:t.vertexStarts}),n.dataChanged||this.getAttributeManager().invalidateAll()}}_getModels(){let{id:e,filled:t,extruded:n}=this.props,r,i,a;if(t){let t=this.getShaders(`top`);t.defines.NON_INSTANCED_MODEL=1;let n=this.getAttributeManager().getBufferLayouts({isInstanced:!1});r=new aW(this.context.device,{...t,id:`${e}-top`,topology:`triangle-list`,bufferLayout:n,isIndexed:!0,userData:{excludeAttributes:{instanceVertexValid:!0}}})}if(n){let t=this.getAttributeManager().getBufferLayouts({isInstanced:!0});i=new aW(this.context.device,{...this.getShaders(`side`),id:`${e}-side`,bufferLayout:t,geometry:new uW({topology:`triangle-strip`,attributes:{positions:{size:2,value:new Float32Array([1,0,0,0,1,1,0,1])}}}),isInstanced:!0,userData:{excludeAttributes:{indices:!0}}}),a=new aW(this.context.device,{...this.getShaders(`side`),id:`${e}-wireframe`,bufferLayout:t,geometry:new uW({topology:`line-strip`,attributes:{positions:{size:2,value:new Float32Array([1,0,0,0,0,1,1,1])}}}),isInstanced:!0,userData:{excludeAttributes:{indices:!0}}})}return{models:[i,a,r].filter(Boolean),topModel:r,sideModel:i,wireframeModel:a}}calculateIndices(e){let{polygonTesselator:t}=this.state;e.startIndices=t.indexStarts,e.value=t.get(`indices`)}calculatePositions(e){let{polygonTesselator:t}=this.state;e.startIndices=t.vertexStarts,e.value=t.get(`positions`)}calculateVertexValid(e){e.value=this.state.polygonTesselator.get(`vertexValid`)}};DX.defaultProps=TX,DX.layerName=`SolidPolygonLayer`;function OX({data:e,getIndex:t,dataRange:n,replace:r}){let{startRow:i=0,endRow:a=1/0}=n,o=e.length,s=o,c=o;for(let n=0;n<o;n++){let r=t(e[n]);if(s>n&&r>=i&&(s=n),r>=a){c=n;break}}let l=s,u=c-s===r.length?void 0:e.slice(c);for(let t=0;t<r.length;t++)e[l++]=r[t];if(u){for(let t=0;t<u.length;t++)e[l++]=u[t];e.length=l}return{startRow:s,endRow:s+r.length}}var kX=[0,0,0,255],AX={stroked:!0,filled:!0,extruded:!1,elevationScale:1,wireframe:!1,_normalize:!0,_windingOrder:`CW`,lineWidthUnits:`meters`,lineWidthScale:1,lineWidthMinPixels:0,lineWidthMaxPixels:2**53-1,lineJointRounded:!1,lineMiterLimit:4,getPolygon:{type:`accessor`,value:e=>e.polygon},getFillColor:{type:`accessor`,value:[0,0,0,255]},getLineColor:{type:`accessor`,value:kX},getLineWidth:{type:`accessor`,value:1},getElevation:{type:`accessor`,value:1e3},material:!0},jX=class extends nJ{initializeState(){this.state={paths:[],pathsDiff:null},this.props.getLineDashArray&&IP.removed(`getLineDashArray`,`PathStyleExtension`)()}updateState({changeFlags:e}){let t=e.dataChanged||e.updateTriggersChanged&&(e.updateTriggersChanged.all||e.updateTriggersChanged.getPolygon);if(t&&Array.isArray(e.dataChanged)){let t=this.state.paths.slice(),n=e.dataChanged.map(e=>OX({data:t,getIndex:e=>e.__source.index,dataRange:e,replace:this._getPaths(e)}));this.setState({paths:t,pathsDiff:n})}else t&&this.setState({paths:this._getPaths(),pathsDiff:null})}_getPaths(e={}){let{data:t,getPolygon:n,positionFormat:r,_normalize:i}=this.props,a=[],o=r===`XY`?2:3,{startRow:s,endRow:c}=e,{iterable:l,objectInfo:u}=aK(t,s,c);for(let e of l){u.index++;let t=n(e,u);i&&(t=fX(t,o));let{holeIndices:r}=t,s=t.positions||t;if(r)for(let t=0;t<=r.length;t++){let n=s.slice(r[t-1]||0,r[t]||s.length);a.push(this.getSubLayerRow({path:n},e,u.index))}else a.push(this.getSubLayerRow({path:s},e,u.index))}return a}renderLayers(){let{data:e,_dataDiff:t,stroked:n,filled:r,extruded:i,wireframe:a,_normalize:o,_windingOrder:s,elevationScale:c,transitions:l,positionFormat:u}=this.props,{lineWidthUnits:d,lineWidthScale:f,lineWidthMinPixels:p,lineWidthMaxPixels:m,lineJointRounded:h,lineMiterLimit:g,lineDashJustified:_}=this.props,{getFillColor:v,getLineColor:y,getLineWidth:b,getLineDashArray:x,getElevation:S,getPolygon:C,updateTriggers:w,material:T}=this.props,{paths:E,pathsDiff:D}=this.state,O=this.getSubLayerClass(`fill`,DX),k=this.getSubLayerClass(`stroke`,QY),A=this.shouldRenderSubLayer(`fill`,E)&&new O({_dataDiff:t,extruded:i,elevationScale:c,filled:r,wireframe:a,_normalize:o,_windingOrder:s,getElevation:S,getFillColor:v,getLineColor:i&&a?y:kX,material:T,transitions:l},this.getSubLayerProps({id:`fill`,updateTriggers:w&&{getPolygon:w.getPolygon,getElevation:w.getElevation,getFillColor:w.getFillColor,lineColors:i&&a,getLineColor:w.getLineColor}}),{data:e,positionFormat:u,getPolygon:C}),j=!i&&n&&this.shouldRenderSubLayer(`stroke`,E)&&new k({_dataDiff:D&&(()=>D),widthUnits:d,widthScale:f,widthMinPixels:p,widthMaxPixels:m,jointRounded:h,miterLimit:g,dashJustified:_,_pathType:`loop`,transitions:l&&{getWidth:l.getLineWidth,getColor:l.getLineColor,getPath:l.getPolygon},getColor:this.getSubLayerAccessor(y),getWidth:this.getSubLayerAccessor(b),getDashArray:this.getSubLayerAccessor(x)},this.getSubLayerProps({id:`stroke`,updateTriggers:w&&{getWidth:w.getLineWidth,getColor:w.getLineColor,getDashArray:w.getLineDashArray}}),{data:E,positionFormat:u,getPath:e=>e.path});return[!i&&A,j,i&&A]}};jX.layerName=`PolygonLayer`,jX.defaultProps=AX;var MX=6371008.8;MX*100,MX*100,360/(2*Math.PI),MX*3.28084,MX*39.37,MX/1e3,MX/1e3,MX/1609.344,MX*1e3,MX*1e3,MX/1852,MX*1.0936;function NX(e,t,n={}){let r={type:`Feature`};return(n.id===0||n.id)&&(r.id=n.id),n.bbox&&(r.bbox=n.bbox),r.properties=t||{},r.geometry=e,r}function PX(e,t,n={}){if(!e)throw Error(`coordinates is required`);if(!Array.isArray(e))throw Error(`coordinates must be an Array`);if(e.length<2)throw Error(`coordinates must be at least 2 numbers long`);if(!LX(e[0])||!LX(e[1]))throw Error(`coordinates must contain numbers`);return NX({type:`Point`,coordinates:e},t,n)}function FX(e,t,n={}){for(let t of e){if(t.length<4)throw Error(`Each LinearRing of a Polygon must have 4 or more Positions.`);if(t[t.length-1].length!==t[0].length)throw Error(`First and last Position are not equivalent.`);for(let e=0;e<t[t.length-1].length;e++)if(t[t.length-1][e]!==t[0][e])throw Error(`First and last Position are not equivalent.`)}return NX({type:`Polygon`,coordinates:e},t,n)}function IX(e,t={}){let n={type:`FeatureCollection`};return t.id&&(n.id=t.id),t.bbox&&(n.bbox=t.bbox),n.features=e,n}function LX(e){return!isNaN(e)&&e!==null&&!Array.isArray(e)}function RX(e,t,n){if(e!==null)for(var r,i,a,o,s,c,l,u=0,d=0,f,p=e.type,m=p===`FeatureCollection`,h=p===`Feature`,g=m?e.features.length:1,_=0;_<g;_++){l=m?e.features[_].geometry:h?e.geometry:e,f=l?l.type===`GeometryCollection`:!1,s=f?l.geometries.length:1;for(var v=0;v<s;v++){var y=0,b=0;if(o=f?l.geometries[v]:l,o!==null){c=o.coordinates;var x=o.type;switch(u=n&&(x===`Polygon`||x===`MultiPolygon`)?1:0,x){case null:break;case`Point`:if(t(c,d,_,y,b)===!1)return!1;d++,y++;break;case`LineString`:case`MultiPoint`:for(r=0;r<c.length;r++){if(t(c[r],d,_,y,b)===!1)return!1;d++,x===`MultiPoint`&&y++}x===`LineString`&&y++;break;case`Polygon`:case`MultiLineString`:for(r=0;r<c.length;r++){for(i=0;i<c[r].length-u;i++){if(t(c[r][i],d,_,y,b)===!1)return!1;d++}x===`MultiLineString`&&y++,x===`Polygon`&&b++}x===`Polygon`&&y++;break;case`MultiPolygon`:for(r=0;r<c.length;r++){for(b=0,i=0;i<c[r].length;i++){for(a=0;a<c[r][i].length-u;a++){if(t(c[r][i][a],d,_,y,b)===!1)return!1;d++}b++}y++}break;case`GeometryCollection`:for(r=0;r<o.geometries.length;r++)if(RX(o.geometries[r],t,n)===!1)return!1;break;default:throw Error(`Unknown Geometry Type`)}}}}}var zX=l(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n||=self).RBush=r()})(e,function(){"use strict";function e(e,r,i,a,o){(function e(n,r,i,a,o){for(;a>i;){if(a-i>600){var s=a-i+1,c=r-i+1,l=Math.log(s),u=.5*Math.exp(2*l/3),d=.5*Math.sqrt(l*u*(s-u)/s)*(c-s/2<0?-1:1);e(n,r,Math.max(i,Math.floor(r-c*u/s+d)),Math.min(a,Math.floor(r+(s-c)*u/s+d)),o)}var f=n[r],p=i,m=a;for(t(n,i,r),o(n[a],f)>0&&t(n,i,a);p<m;){for(t(n,p,m),p++,m--;o(n[p],f)<0;)p++;for(;o(n[m],f)>0;)m--}o(n[i],f)===0?t(n,i,m):t(n,++m,a),m<=r&&(i=m+1),r<=m&&(a=m-1)}})(e,r,i||0,a||e.length-1,o||n)}function t(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function n(e,t){return e<t?-1:+(e>t)}var r=function(e){e===void 0&&(e=9),this._maxEntries=Math.max(4,e),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()};function i(e,t,n){if(!n)return t.indexOf(e);for(var r=0;r<t.length;r++)if(n(e,t[r]))return r;return-1}function a(e,t){o(e,0,e.children.length,t,e)}function o(e,t,n,r,i){i||=m(null),i.minX=1/0,i.minY=1/0,i.maxX=-1/0,i.maxY=-1/0;for(var a=t;a<n;a++){var o=e.children[a];s(i,e.leaf?r(o):o)}return i}function s(e,t){return e.minX=Math.min(e.minX,t.minX),e.minY=Math.min(e.minY,t.minY),e.maxX=Math.max(e.maxX,t.maxX),e.maxY=Math.max(e.maxY,t.maxY),e}function c(e,t){return e.minX-t.minX}function l(e,t){return e.minY-t.minY}function u(e){return(e.maxX-e.minX)*(e.maxY-e.minY)}function d(e){return e.maxX-e.minX+(e.maxY-e.minY)}function f(e,t){return e.minX<=t.minX&&e.minY<=t.minY&&t.maxX<=e.maxX&&t.maxY<=e.maxY}function p(e,t){return t.minX<=e.maxX&&t.minY<=e.maxY&&t.maxX>=e.minX&&t.maxY>=e.minY}function m(e){return{children:e,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function h(t,n,r,i,a){for(var o=[n,r];o.length;)if(!((r=o.pop())-(n=o.pop())<=i)){var s=n+Math.ceil((r-n)/i/2)*i;e(t,s,n,r,a),o.push(n,s,s,r)}}return r.prototype.all=function(){return this._all(this.data,[])},r.prototype.search=function(e){var t=this.data,n=[];if(!p(e,t))return n;for(var r=this.toBBox,i=[];t;){for(var a=0;a<t.children.length;a++){var o=t.children[a],s=t.leaf?r(o):o;p(e,s)&&(t.leaf?n.push(o):f(e,s)?this._all(o,n):i.push(o))}t=i.pop()}return n},r.prototype.collides=function(e){var t=this.data;if(!p(e,t))return!1;for(var n=[];t;){for(var r=0;r<t.children.length;r++){var i=t.children[r],a=t.leaf?this.toBBox(i):i;if(p(e,a)){if(t.leaf||f(e,a))return!0;n.push(i)}}t=n.pop()}return!1},r.prototype.load=function(e){if(!e||!e.length)return this;if(e.length<this._minEntries){for(var t=0;t<e.length;t++)this.insert(e[t]);return this}var n=this._build(e.slice(),0,e.length-1,0);if(this.data.children.length)if(this.data.height===n.height)this._splitRoot(this.data,n);else{if(this.data.height<n.height){var r=this.data;this.data=n,n=r}this._insert(n,this.data.height-n.height-1,!0)}else this.data=n;return this},r.prototype.insert=function(e){return e&&this._insert(e,this.data.height-1),this},r.prototype.clear=function(){return this.data=m([]),this},r.prototype.remove=function(e,t){if(!e)return this;for(var n,r,a,o=this.data,s=this.toBBox(e),c=[],l=[];o||c.length;){if(o||(o=c.pop(),r=c[c.length-1],n=l.pop(),a=!0),o.leaf){var u=i(e,o.children,t);if(u!==-1)return o.children.splice(u,1),c.push(o),this._condense(c),this}a||o.leaf||!f(o,s)?r?(n++,o=r.children[n],a=!1):o=null:(c.push(o),l.push(n),n=0,r=o,o=o.children[0])}return this},r.prototype.toBBox=function(e){return e},r.prototype.compareMinX=function(e,t){return e.minX-t.minX},r.prototype.compareMinY=function(e,t){return e.minY-t.minY},r.prototype.toJSON=function(){return this.data},r.prototype.fromJSON=function(e){return this.data=e,this},r.prototype._all=function(e,t){for(var n=[];e;)e.leaf?t.push.apply(t,e.children):n.push.apply(n,e.children),e=n.pop();return t},r.prototype._build=function(e,t,n,r){var i,o=n-t+1,s=this._maxEntries;if(o<=s)return a(i=m(e.slice(t,n+1)),this.toBBox),i;r||(r=Math.ceil(Math.log(o)/Math.log(s)),s=Math.ceil(o/s**(r-1))),(i=m([])).leaf=!1,i.height=r;var c=Math.ceil(o/s),l=c*Math.ceil(Math.sqrt(s));h(e,t,n,l,this.compareMinX);for(var u=t;u<=n;u+=l){var d=Math.min(u+l-1,n);h(e,u,d,c,this.compareMinY);for(var f=u;f<=d;f+=c){var p=Math.min(f+c-1,d);i.children.push(this._build(e,f,p,r-1))}}return a(i,this.toBBox),i},r.prototype._chooseSubtree=function(e,t,n,r){for(;r.push(t),!t.leaf&&r.length-1!==n;){for(var i=1/0,a=1/0,o=void 0,s=0;s<t.children.length;s++){var c=t.children[s],l=u(c),d=(f=e,p=c,(Math.max(p.maxX,f.maxX)-Math.min(p.minX,f.minX))*(Math.max(p.maxY,f.maxY)-Math.min(p.minY,f.minY))-l);d<a?(a=d,i=l<i?l:i,o=c):d===a&&l<i&&(i=l,o=c)}t=o||t.children[0]}var f,p;return t},r.prototype._insert=function(e,t,n){var r=n?e:this.toBBox(e),i=[],a=this._chooseSubtree(r,this.data,t,i);for(a.children.push(e),s(a,r);t>=0&&i[t].children.length>this._maxEntries;)this._split(i,t),t--;this._adjustParentBBoxes(r,i,t)},r.prototype._split=function(e,t){var n=e[t],r=n.children.length,i=this._minEntries;this._chooseSplitAxis(n,i,r);var o=this._chooseSplitIndex(n,i,r),s=m(n.children.splice(o,n.children.length-o));s.height=n.height,s.leaf=n.leaf,a(n,this.toBBox),a(s,this.toBBox),t?e[t-1].children.push(s):this._splitRoot(n,s)},r.prototype._splitRoot=function(e,t){this.data=m([e,t]),this.data.height=e.height+1,this.data.leaf=!1,a(this.data,this.toBBox)},r.prototype._chooseSplitIndex=function(e,t,n){for(var r,i,a,s,c,l,d,f=1/0,p=1/0,m=t;m<=n-t;m++){var h=o(e,0,m,this.toBBox),g=o(e,m,n,this.toBBox),_=(i=h,a=g,s=void 0,c=void 0,l=void 0,d=void 0,s=Math.max(i.minX,a.minX),c=Math.max(i.minY,a.minY),l=Math.min(i.maxX,a.maxX),d=Math.min(i.maxY,a.maxY),Math.max(0,l-s)*Math.max(0,d-c)),v=u(h)+u(g);_<f?(f=_,r=m,p=v<p?v:p):_===f&&v<p&&(p=v,r=m)}return r||n-t},r.prototype._chooseSplitAxis=function(e,t,n){var r=e.leaf?this.compareMinX:c,i=e.leaf?this.compareMinY:l;this._allDistMargin(e,t,n,r)<this._allDistMargin(e,t,n,i)&&e.children.sort(r)},r.prototype._allDistMargin=function(e,t,n,r){e.children.sort(r);for(var i=this.toBBox,a=o(e,0,t,i),c=o(e,n-t,n,i),l=d(a)+d(c),u=t;u<n-t;u++){var f=e.children[u];s(a,e.leaf?i(f):f),l+=d(a)}for(var p=n-t-1;p>=t;p--){var m=e.children[p];s(c,e.leaf?i(m):m),l+=d(c)}return l},r.prototype._adjustParentBBoxes=function(e,t,n){for(var r=n;r>=0;r--)s(t[r],e)},r.prototype._condense=function(e){for(var t=e.length-1,n=void 0;t>=0;t--)e[t].children.length===0?t>0?(n=e[t-1].children).splice(n.indexOf(e[t]),1):this.clear():a(e[t],this.toBBox)},r})})),BX=u({default:()=>HX});function VX(e,t){return e<t?-1:+(e>t)}var HX,UX=c((()=>{HX=class{constructor(e=[],t=VX){if(this.data=e,this.length=this.data.length,this.compare=t,this.length>0)for(let e=(this.length>>1)-1;e>=0;e--)this._down(e)}push(e){this.data.push(e),this.length++,this._up(this.length-1)}pop(){if(this.length===0)return;let e=this.data[0],t=this.data.pop();return this.length--,this.length>0&&(this.data[0]=t,this._down(0)),e}peek(){return this.data[0]}_up(e){let{data:t,compare:n}=this,r=t[e];for(;e>0;){let i=e-1>>1,a=t[i];if(n(r,a)>=0)break;t[e]=a,e=i}t[e]=r}_down(e){let{data:t,compare:n}=this,r=this.length>>1,i=t[e];for(;e<r;){let r=(e<<1)+1,a=t[r],o=r+1;if(o<this.length&&n(t[o],a)<0&&(r=o,a=t[o]),n(a,i)>=0)break;t[e]=a,e=r}t[e]=i}}})),WX=l(((e,t)=>{t.exports=function(e,t,n,r){var i=e[0],a=e[1],o=!1;n===void 0&&(n=0),r===void 0&&(r=t.length);for(var s=(r-n)/2,c=0,l=s-1;c<s;l=c++){var u=t[n+c*2+0],d=t[n+c*2+1],f=t[n+l*2+0],p=t[n+l*2+1];d>a!=p>a&&i<(f-u)*(a-d)/(p-d)+u&&(o=!o)}return o}})),GX=l(((e,t)=>{t.exports=function(e,t,n,r){var i=e[0],a=e[1],o=!1;n===void 0&&(n=0),r===void 0&&(r=t.length);for(var s=r-n,c=0,l=s-1;c<s;l=c++){var u=t[c+n][0],d=t[c+n][1],f=t[l+n][0],p=t[l+n][1];d>a!=p>a&&i<(f-u)*(a-d)/(p-d)+u&&(o=!o)}return o}})),KX=l(((e,t)=>{var n=WX(),r=GX();t.exports=function(e,t,i,a){return t.length>0&&Array.isArray(t[0])?r(e,t,i,a):n(e,t,i,a)},t.exports.nested=r,t.exports.flat=n})),qX=l(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?r(e):typeof define==`function`&&define.amd?define([`exports`],r):r((n||=self).predicates={})})(e,function(e){"use strict";let t=134217729;function n(e,t,n,r,i){let a,o,s,c,l=t[0],u=r[0],d=0,f=0;u>l==u>-l?(a=l,l=t[++d]):(a=u,u=r[++f]);let p=0;if(d<e&&f<n)for(u>l==u>-l?(s=a-((o=l+a)-l),l=t[++d]):(s=a-((o=u+a)-u),u=r[++f]),a=o,s!==0&&(i[p++]=s);d<e&&f<n;)u>l==u>-l?(s=a-((o=a+l)-(c=o-a))+(l-c),l=t[++d]):(s=a-((o=a+u)-(c=o-a))+(u-c),u=r[++f]),a=o,s!==0&&(i[p++]=s);for(;d<e;)s=a-((o=a+l)-(c=o-a))+(l-c),l=t[++d],a=o,s!==0&&(i[p++]=s);for(;f<n;)s=a-((o=a+u)-(c=o-a))+(u-c),u=r[++f],a=o,s!==0&&(i[p++]=s);return a===0&&p!==0||(i[p++]=a),p}function r(e){return new Float64Array(e)}let i=r(4),a=r(8),o=r(12),s=r(16),c=r(4);e.orient2d=function(e,r,l,u,d,f){let p=(r-f)*(l-d),m=(e-d)*(u-f),h=p-m;if(p===0||m===0||p>0!=m>0)return h;let g=Math.abs(p+m);return Math.abs(h)>=33306690738754716e-32*g?h:-function(e,r,l,u,d,f,p){let m,h,g,_,v,y,b,x,S,C,w,T,E,D,O,k,A,j,M=e-d,N=l-d,P=r-f,F=u-f;v=(O=(x=M-(b=(y=t*M)-(y-M)))*(C=F-(S=(y=t*F)-(y-F)))-((D=M*F)-b*S-x*S-b*C))-(w=O-(A=(x=P-(b=(y=t*P)-(y-P)))*(C=N-(S=(y=t*N)-(y-N)))-((k=P*N)-b*S-x*S-b*C))),i[0]=O-(w+v)+(v-A),v=(E=D-((T=D+w)-(v=T-D))+(w-v))-(w=E-k),i[1]=E-(w+v)+(v-k),v=(j=T+w)-T,i[2]=T-(j-v)+(w-v),i[3]=j;let I=function(e,t){let n=t[0];for(let r=1;r<e;r++)n+=t[r];return n}(4,i),L=22204460492503146e-32*p;if(I>=L||-I>=L||(m=e-(M+(v=e-M))+(v-d),g=l-(N+(v=l-N))+(v-d),h=r-(P+(v=r-P))+(v-f),_=u-(F+(v=u-F))+(v-f),m===0&&h===0&&g===0&&_===0)||(L=11093356479670487e-47*p+33306690738754706e-32*Math.abs(I),(I+=M*_+F*m-(P*g+N*h))>=L||-I>=L))return I;v=(O=(x=m-(b=(y=t*m)-(y-m)))*(C=F-(S=(y=t*F)-(y-F)))-((D=m*F)-b*S-x*S-b*C))-(w=O-(A=(x=h-(b=(y=t*h)-(y-h)))*(C=N-(S=(y=t*N)-(y-N)))-((k=h*N)-b*S-x*S-b*C))),c[0]=O-(w+v)+(v-A),v=(E=D-((T=D+w)-(v=T-D))+(w-v))-(w=E-k),c[1]=E-(w+v)+(v-k),v=(j=T+w)-T,c[2]=T-(j-v)+(w-v),c[3]=j;let R=n(4,i,4,c,a);v=(O=(x=M-(b=(y=t*M)-(y-M)))*(C=_-(S=(y=t*_)-(y-_)))-((D=M*_)-b*S-x*S-b*C))-(w=O-(A=(x=P-(b=(y=t*P)-(y-P)))*(C=g-(S=(y=t*g)-(y-g)))-((k=P*g)-b*S-x*S-b*C))),c[0]=O-(w+v)+(v-A),v=(E=D-((T=D+w)-(v=T-D))+(w-v))-(w=E-k),c[1]=E-(w+v)+(v-k),v=(j=T+w)-T,c[2]=T-(j-v)+(w-v),c[3]=j;let z=n(R,a,4,c,o);return v=(O=(x=m-(b=(y=t*m)-(y-m)))*(C=_-(S=(y=t*_)-(y-_)))-((D=m*_)-b*S-x*S-b*C))-(w=O-(A=(x=h-(b=(y=t*h)-(y-h)))*(C=g-(S=(y=t*g)-(y-g)))-((k=h*g)-b*S-x*S-b*C))),c[0]=O-(w+v)+(v-A),v=(E=D-((T=D+w)-(v=T-D))+(w-v))-(w=E-k),c[1]=E-(w+v)+(v-k),v=(j=T+w)-T,c[2]=T-(j-v)+(w-v),c[3]=j,s[n(z,o,4,c,s)-1]}(e,r,l,u,d,f,g)},e.orient2dfast=function(e,t,n,r,i,a){return(t-a)*(n-i)-(e-i)*(r-a)},Object.defineProperty(e,"__esModule",{value:!0})})})),JX=f(l(((e,t)=>{var n=zX(),r=(UX(),p(BX)),i=KX(),a=qX().orient2d;r.default&&(r=r.default),t.exports=o,t.exports.default=o;function o(e,t,r){t=Math.max(0,t===void 0?2:t),r||=0;var i=g(e),a=new n(16);a.toBBox=function(e){return{minX:e[0],minY:e[1],maxX:e[0],maxY:e[1]}},a.compareMinX=function(e,t){return e[0]-t[0]},a.compareMinY=function(e,t){return e[1]-t[1]},a.load(e);for(var o=[],c=0,l;c<i.length;c++){var u=i[c];a.remove(u),l=_(u,l),o.push(l)}var d=new n(16);for(c=0;c<o.length;c++)d.insert(h(o[c]));for(var f=t*t,p=r*r;o.length;){var m=o.shift(),y=m.p,b=m.next.p,x=v(y,b);if(!(x<p)){var S=x/f;u=s(a,m.prev.p,y,b,m.next.next.p,S,d),u&&Math.min(v(u,y),v(u,b))<=S&&(o.push(m),o.push(_(u,m)),a.remove(u),d.remove(m),d.insert(h(m)),d.insert(h(m.next)))}}m=l;var C=[];do C.push(m.p),m=m.next;while(m!==l);return C.push(m.p),C}function s(e,t,n,i,a,o,s){for(var u=new r([],c),f=e.data;f;){for(var p=0;p<f.children.length;p++){var m=f.children[p],h=f.leaf?y(m,n,i):l(n,i,m);h>o||u.push({node:m,dist:h})}for(;u.length&&!u.peek().node.children;){var g=u.pop(),_=g.node,v=y(_,t,n),b=y(_,i,a);if(g.dist<v&&g.dist<b&&d(n,_,s)&&d(i,_,s))return _}f=u.pop(),f&&=f.node}return null}function c(e,t){return e.dist-t.dist}function l(e,t,n){if(u(e,n)||u(t,n))return 0;var r=b(e[0],e[1],t[0],t[1],n.minX,n.minY,n.maxX,n.minY);if(r===0)return 0;var i=b(e[0],e[1],t[0],t[1],n.minX,n.minY,n.minX,n.maxY);if(i===0)return 0;var a=b(e[0],e[1],t[0],t[1],n.maxX,n.minY,n.maxX,n.maxY);if(a===0)return 0;var o=b(e[0],e[1],t[0],t[1],n.minX,n.maxY,n.maxX,n.maxY);return o===0?0:Math.min(r,i,a,o)}function u(e,t){return e[0]>=t.minX&&e[0]<=t.maxX&&e[1]>=t.minY&&e[1]<=t.maxY}function d(e,t,n){for(var r=Math.min(e[0],t[0]),i=Math.min(e[1],t[1]),a=Math.max(e[0],t[0]),o=Math.max(e[1],t[1]),s=n.search({minX:r,minY:i,maxX:a,maxY:o}),c=0;c<s.length;c++)if(m(s[c].p,s[c].next.p,e,t))return!1;return!0}function f(e,t,n){return a(e[0],e[1],t[0],t[1],n[0],n[1])}function m(e,t,n,r){return e!==r&&t!==n&&f(e,t,n)>0!=f(e,t,r)>0&&f(n,r,e)>0!=f(n,r,t)>0}function h(e){var t=e.p,n=e.next.p;return e.minX=Math.min(t[0],n[0]),e.minY=Math.min(t[1],n[1]),e.maxX=Math.max(t[0],n[0]),e.maxY=Math.max(t[1],n[1]),e}function g(e){for(var t=e[0],n=e[0],r=e[0],a=e[0],o=0;o<e.length;o++){var s=e[o];s[0]<t[0]&&(t=s),s[0]>r[0]&&(r=s),s[1]<n[1]&&(n=s),s[1]>a[1]&&(a=s)}var c=[t,n,r,a],l=c.slice();for(o=0;o<e.length;o++)i(e[o],c)||l.push(e[o]);return S(l)}function _(e,t){var n={p:e,prev:null,next:null,minX:0,minY:0,maxX:0,maxY:0};return t?(n.next=t.next,n.prev=t,t.next.prev=n,t.next=n):(n.prev=n,n.next=n),n}function v(e,t){var n=e[0]-t[0],r=e[1]-t[1];return n*n+r*r}function y(e,t,n){var r=t[0],i=t[1],a=n[0]-r,o=n[1]-i;if(a!==0||o!==0){var s=((e[0]-r)*a+(e[1]-i)*o)/(a*a+o*o);s>1?(r=n[0],i=n[1]):s>0&&(r+=a*s,i+=o*s)}return a=e[0]-r,o=e[1]-i,a*a+o*o}function b(e,t,n,r,i,a,o,s){var c=n-e,l=r-t,u=o-i,d=s-a,f=e-i,p=t-a,m=c*c+l*l,h=c*u+l*d,g=u*u+d*d,_=c*f+l*p,v=u*f+d*p,y=m*g-h*h,b,x,S,C,w=y,T=y;y===0?(x=0,w=1,C=v,T=g):(x=h*v-g*_,C=m*v-h*_,x<0?(x=0,C=v,T=g):x>w&&(x=w,C=v+h,T=g)),C<0?(C=0,-_<0?x=0:-_>m?x=w:(x=-_,w=m)):C>T&&(C=T,-_+h<0?x=0:-_+h>m?x=w:(x=-_+h,w=m)),b=x===0?0:x/w,S=C===0?0:C/T;var E=(1-b)*e+b*n,D=(1-b)*t+b*r,O=(1-S)*i+S*o,k=(1-S)*a+S*s,A=O-E,j=k-D;return A*A+j*j}function x(e,t){return e[0]===t[0]?e[1]-t[1]:e[0]-t[0]}function S(e){e.sort(x);for(var t=[],n=0;n<e.length;n++){for(;t.length>=2&&f(t[t.length-2],t[t.length-1],e[n])<=0;)t.pop();t.push(e[n])}for(var r=[],i=e.length-1;i>=0;i--){for(;r.length>=2&&f(r[r.length-2],r[r.length-1],e[i])<=0;)r.pop();r.push(e[i])}return r.pop(),t.pop(),t.concat(r)}}))(),1);function YX(e,t={}){t.concavity=t.concavity||1/0;let n=[];if(RX(e,e=>{n.push([e[0],e[1]])}),!n.length)return null;let r=(0,JX.default)(n,t.concavity);return r.length>3?FX([r]):null}var XX=YX,ZX=`No options were set before calling importLibrary. Make sure to configure the loader using setOptions().`,QX=process.env.NODE_ENV===`production`?()=>{}:e=>{console.warn(`[@googlemaps/js-api-loader] ${e}`)};process.env.NODE_ENV;var $X=!1;async function eZ(e){if($X||QX(ZX),!window?.google?.maps?.importLibrary)throw Error(`google.maps.importLibrary is not installed.`);return await google.maps.importLibrary(e)}var tZ=class{map;overlay;currentPoints=[];completedPolygons=[];mousePosition=null;stopDraw=!1;lastUpdate=0;constructor(e){this.map=e,this.overlay=new yJ({style:{zIndex:`999`}}),this.overlay.setMap(this.map)}drawClickListener(e){if(this.stopDraw)return null;let t=[e.latLng.lng(),e.latLng.lat()];if(this.currentPoints.length>=3){let e=this.currentPoints[0];if(this.getDistance(t,e)<20)return this.completedPolygons=[...this.currentPoints,this.currentPoints[0]],this.currentPoints=[],this.mousePosition=null,this.updateLayer(),this.getDrawingPolygon()}return this.currentPoints.push(t),this.updateLayer(),null}drawMouseMoveListener(e){if(this.stopDraw)return null;Date.now()-this.lastUpdate<50||(this.lastUpdate=Date.now(),this.currentPoints.length>=1&&(this.mousePosition=[e.latLng.lng(),e.latLng.lat()],this.updateLayer()))}setDrawingListener(e){this.stopDraw=!e}getDrawingPolygon(){let e=[];for(let t of this.completedPolygons){let[n,r]=t;e.push(`${r} ${n}`)}return e.join(`,`)}setDrawingPolygon(e=null){if(!e)return;let t=[],n=e.split(`,`);for(let e of n){let[n,r]=e.split(` `);if(!ix().isValidCoordinates(n,r))return;t.push([Number(r),Number(n)])}this.completedPolygons=t,this.currentPoints=[],this.mousePosition=null,this.updateLayer()}resetDrawingPolygon(){this.completedPolygons=[],this.currentPoints=[],this.mousePosition=null,this.updateLayer()}updateLayer(){this.overlay.setProps({layers:[this.polygonLayer(),this.pathLayer(),this.scatterLayer()]})}scatterLayer(){let e=this.map.getZoom()??12;return(0,t.markRaw)(new nY({id:`draw-points-layer`,data:this.currentPoints.map(e=>({position:e})),getPosition:e=>e.position,getFillColor:(e,{index:t})=>t===0?[255,0,0,255]:[255,255,255,255],getLineColor:[2,2,2,255],getRadius:7/2**(e-12),radiusMinPixels:8,radiusMaxPixels:4}))}pathLayer(){let e=ix().deepClone(this.currentPoints),n=this.mousePosition?ix().deepClone(this.mousePosition):null,r=n?[...e,n]:e;return(0,t.markRaw)(new QY({id:`draw-path-layer`,data:r.length>=2?[{path:r}]:[],getPath:e=>e.path,getColor:[2,2,2,255],getWidth:4,widthMinPixels:4,widthMaxPixels:6}))}polygonLayer(){return(0,t.markRaw)(new jX({id:`draw-polygon-layer`,data:[{id:`drawPolygonId`,name:`drawPolygonId`,polygon:(0,t.toRaw)(this.completedPolygons).map(e=>[...e])}],getPolygon:e=>e.polygon,getFillColor:()=>[76,175,80,80],getLineColor:[2,2,2,255],getLineWidth:4,lineWidthMinPixels:4,lineWidthMaxPixels:6,pickable:!0,stroked:!0,filled:!0}))}getDistance(e,t){let n=this.overlay._deck?.getViewports()[0];if(!n)return 1/0;let r=n.project(e),i=n.project(t);return Math.sqrt((r[0]-i[0])**2+(r[1]-i[1])**2)}},nZ=class{ZOOM=16;MAX_ZOOM=this.ZOOM+4;center;mapRef=null;map=null;infoDialog=null;marker=null;markerPoint=null;hasMark=!1;isDraggable=!1;has_autocomplete=!1;isDrawing=!1;enableDrawingMode=!1;drawCoordinates=``;drawingManager=null;errorGPUDisabled=!1;isFullscreen=!1;initializedMarker=!1;constructor(e){this.disableGPUTimer(),this.center={lat:Number(kp().location?.lat||0),lng:Number(kp().location?.lng||0)},this.mapRef=e;let t=document.createElement(`canvas`);t.getContext(`webgl`)||t.getContext(`experimental-webgl`)||(this.errorGPUDisabled=!0)}disableGPUTimer(){if(WebGL2RenderingContext.prototype?.getExtension){let e=WebGL2RenderingContext.prototype.getExtension;WebGL2RenderingContext.prototype.getExtension=function(t){return t===`EXT_disjoint_timer_query_webgl2`||t===`EXT_disjoint_timer_query`?null:e.call(this,t)}}}async initMap(){if(!this.mapRef)return;let{Map:e}=await eZ(`maps`);this.map=new e(this.mapRef,{center:this.center,mapTypeId:`hybrid`,zoomControl:!0,mapTypeControl:!0,scaleControl:!1,streetViewControl:!1,rotateControl:!1,fullscreenControl:!1,zoom:this.ZOOM,maxZoom:this.MAX_ZOOM,gestureHandling:`greedy`,clickableIcons:!1,styles:[{featureType:`poi`,elementType:`labels`,stylers:[{visibility:`off`}]}]}),this.map?.addListener(`click`,this.generalClick.bind(this)),this.map.addListener(`mousemove`,this.generalMouseMove.bind(this)),this.map?.addListener(`dragstart`,this.dragstart.bind(this)),this.map?.addListener(`zoom_changed`,this.zoomChanged.bind(this)),document.addEventListener(`fullscreenchange`,this.setFullscreen.bind(this)),document.addEventListener(`webkitfullscreenchange`,this.setFullscreen.bind(this)),document.addEventListener(`mozfullscreenchange`,this.setFullscreen.bind(this)),document.addEventListener(`MSFullscreenChange`,this.setFullscreen.bind(this)),this.hasMark&&(this.map.setOptions({mapId:kp().mapId}),await this.initMarker()),this.isDrawing&&await this.initDraw()}fitBounds(e){if(!this.map)return;let t=[];typeof e==`string`?t=this.validatePointsPolygon(e):Array.isArray(e)&&(t=this.validatePointsMarkers(e));let n=new google.maps.LatLngBounds;for(let e of t)n.extend(e);n.isEmpty()||this.map.fitBounds(n)}setZoomMarker(e){this.fitBounds([e])}validatePointsPolygon(e){let t=[],n=e.split(`,`);for(let e of n){let[n,r]=e.split(` `);ix().isValidCoordinates(n,r)&&t.push({lat:Number(n),lng:Number(r)})}return t}validatePointsMarkers(e){let t=[];for(let n of e)ix().isValidCoordinates(n.latitude,n.longitude)&&t.push({lat:Number(n.latitude),lng:Number(n.longitude)});return t}async initDraw(){this.map&&this.isDrawing&&(this.enableDrawingMode=!0,this.map?.setOptions({draggableCursor:`crosshair`}),this.drawingManager=new tZ(this.map),this.drawingManager.setDrawingListener(this.enableDrawingMode),this.drawingManager.setDrawingPolygon(this.drawCoordinates),this.fitBounds(this.drawCoordinates))}setDrawMode(e){this.map?.getDiv()&&(this.enableDrawingMode=e,this.map?.setOptions({draggableCursor:this.enableDrawingMode?`crosshair`:`grab`}),this.drawingManager?.setDrawingListener(this.enableDrawingMode))}setDrawablePolygon(e){if(this.isDrawing){if(!this.drawingManager){setTimeout(()=>this.setDrawablePolygon(e),300);return}this.drawCoordinates=e,this.drawingManager.setDrawingPolygon(this.drawCoordinates),this.fitBounds(e)}}dragMarker(e){e.latLng&&(this.marker={latitude:e.latLng.lat(),longitude:e.latLng.lng()})}setMarker(e){this.marker=e,this.initMarker().then()}async initMarker(){if(!this.hasMark||!this.map||(this.marker||={latitude:this.center.lat,longitude:this.center.lng},this.initializedMarker))return;if(this.initializedMarker=!0,this.map.setCenter({lat:this.marker.latitude,lng:this.marker.longitude}),this.markerPoint){let e=(0,t.toRaw)(this.markerPoint);e.map=null,e.position=null,this.markerPoint=null}let{AdvancedMarkerElement:e,PinElement:n}=await google.maps.importLibrary(`marker`),r=new n({background:`#ff0000`,glyphColor:`#ae0606`});this.markerPoint=new e({content:r.element,map:(0,t.toRaw)(this.map),position:{lat:this.marker.latitude,lng:this.marker.longitude},gmpDraggable:this.isDraggable}),this.markerPoint?.addListener(`dragend`,this.dragMarker.bind(this)),this.initializedMarker=!1}placeChanged(e){this.map&&e?.location&&(this.map.setCenter({lat:Number(e.location.lat()||0),lng:Number(e.location.lng()||0)}),this.map.setZoom(this.ZOOM),this.marker={latitude:Number(e.location.lat()),longitude:Number(e.location.lng())},this.initMarker().then())}resetMap(){if(this.map&&(this.isDrawing&&this.drawingManager&&(this.drawingManager.resetDrawingPolygon(),this.drawCoordinates=``),this.markerPoint)){let e=(0,t.toRaw)(this.markerPoint);e.map=null,e.position=null,this.markerPoint=null,this.map.setCenter({lat:Number(kp().location?.lat||0),lng:Number(kp().location?.lng||0)}),this.map.setZoom(this.ZOOM),this.marker={latitude:Number(kp().location?.lat||0),longitude:Number(kp().location?.lng||0)},this.initMarker().then()}}getIsFullscreen(){return this.isFullscreen}async toggleFullscreen(){let e=document.querySelector(`.map_container`);document.fullscreenElement?(document.exitFullscreen?await document.exitFullscreen():document.mozCancelFullScreen?await document.mozCancelFullScreen():document.webkitExitFullscreen?await document.webkitExitFullscreen():document.msExitFullscreen&&await document.msExitFullscreen(),this.isFullscreen=!1):(e?await e.requestFullscreen():e.mozRequestFullScreen?await e.mozRequestFullScreen():e.webkitRequestFullscreen?await e.webkitRequestFullscreen():e.msRequestFullscreen&&await e.msRequestFullscreen(),this.isFullscreen=!0),this.clearDialog()}setFullscreen(){this.isFullscreen=!!document.fullscreenElement}generalClick(e){if(this.isDrawing&&this.drawingManager){let t=this.drawingManager.drawClickListener(e);t&&(this.drawCoordinates=t)}this.click()}click(){}dragstart(){}clearDialog(){this.setInfoDialog(null)}getInfoDialog(){}setInfoDialog(e){this.infoDialog=e}hasAutocomplete(){return this.has_autocomplete}getErrorGPUDisabled(){return this.errorGPUDisabled}zoomChanged(){}generalMouseMove(e){this.isDrawing&&this.drawingManager&&this.drawingManager.drawMouseMoveListener(e),this.mousemove()}mousemove(){}},rZ=class extends nZ{COLOR_CLUSTER=`#0652FB`;IMAGE_POINT=`/img/backend/dots/red-dot.png`;IMAGE_WIDTH_POINT=128;IMAGE_HEIGHT_POINT=128;IMAGE_ANCHORY_POINT=128;MAX_REASONABLE_DISTANCE=.05;onRender=null;markers=[];clusters;clustersIndex;spiderPoints=[];iconLayer;spiderLineLayer=null;spiderIconLayer=null;polygonHoverLayer=null;overlay;hasDialog=!1;groupBy=[];points=[];iconsCache={};dynamicColorCluster=[];getDrawingMode=()=>this.enableDrawingMode;constructor(e,t,n=!1,r=!1,i=!1,a=null,o=[]){super(e),this.hasDialog=n,this.markers=t,this.has_autocomplete=r,this.isDrawing=i,this.drawCoordinates=a??``,this.dynamicColorCluster=o??[]}init(e=null,t=null){this.initMap().then(()=>{this.fitBounds(this.markers),e&&(this.IMAGE_POINT=e),t&&(this.COLOR_CLUSTER=t),this.overlay=new yJ({}),this.overlay.setMap(this.map),this.loadMarkers()})}loadMarkers(e=null,t=[],n=!1,r=!1){e&&(this.map=e),n||this.createClusters(t),this.renderLayers(r)}zoomChanged(){this.spiderPoints=[],this.spiderLineLayer=null,this.spiderIconLayer=null,this.polygonHoverLayer=null,this.setInfoDialog(null),this.loadMarkers(null,[],!0,!1)}createClusterIcon(e,t=this.COLOR_CLUSTER){let n=`cluster-${e}-${t}-${Math.floor(this.map?.getZoom()??0)}`;if(this.iconsCache[n])return this.iconsCache[n];let r=document.createElement(`canvas`);r.width=128,r.height=128;let i=r.getContext(`2d`);i&&(i.clearRect(0,0,128,128),i.beginPath(),i.arc(64,64,32,0,Math.PI*2),i.fillStyle=t,i.fill(),i.strokeStyle=t+`99`,i.lineWidth=18,i.stroke(),i.fillStyle=`#fff`,i.font=`bold ${128*.16}px Arial`,i.textAlign=`center`,i.textBaseline=`middle`,i.fillText(e.toString(),64,64));let a=r.toDataURL();return this.iconsCache[n]=a,a}createMarkerIcon(e){let t=`marker-${e}-${Math.floor(this.map?.getZoom()??0)}`;if(this.iconsCache[t])return this.iconsCache[t];let n=document.createElement(`canvas`);n.width=32,n.height=32;let r=n.getContext(`2d`);r&&(r.clearRect(0,0,32,32),r.beginPath(),r.arc(16,16,8,0,Math.PI*2),r.fillStyle=e,r.fill(),r.strokeStyle=`#fff`,r.lineWidth=2,r.stroke());let i=n.toDataURL();return this.iconsCache[t]=i,i}createClusters(e=[]){if(this.points.length===0||e.length===0||!e.every((e,t)=>e===this.groupBy[t])){this.points=[],this.groupBy=e;for(let[e,t]of this.markers.entries()){let n=Number(t.longitude??0),r=Number(t.latitude??0);ix().isValidCoordinates(r,n)&&(this.groupBy.length!==0&&this.groupBy.findIndex(e=>e===t.groupBy)===-1||this.points.push({type:`Feature`,properties:{cluster:!1,pointId:`id-${e}`,info:t.info??null},geometry:{type:`Point`,coordinates:[n,r]}}))}}this.clustersIndex=new Ox({radius:120,maxZoom:this.MAX_ZOOM,initial:()=>({priority:0,iconColor:this.COLOR_CLUSTER}),map:e=>{let t=e.info?.canvasIcon?.color||this.COLOR_CLUSTER,n=0,r=this.dynamicColorCluster.findIndex(e=>e===t);return r!==-1&&(n=r+1),{priority:n,iconColor:t}},reduce:(e,t)=>{t.priority>e.priority&&(e.priority=t.priority,e.iconColor=t.iconColor)}}).load(this.points)}renderLayers(e=!1){if(!this.map)return;let t=Math.floor(this.map.getZoom()??0),n=[-180,-85,180,85];e||(this.clusters=this.clustersIndex.getClusters(n,t)),e||this.createIconLayer(),this.spiderPoints.length>0&&(this.createSpiderIconLayer(),this.createSpiderLineLayer(),this.onRender&&this.onRender()),this.overlay&&this.overlay.setProps({layers:[this.iconLayer,this.spiderIconLayer,this.spiderLineLayer,this.polygonHoverLayer]})}renderOnlyLayers(){this.overlay&&this.overlay.setProps({layers:[this.iconLayer,this.spiderIconLayer,this.spiderLineLayer,this.polygonHoverLayer]}),this.onRender&&this.onRender()}createSpiderCluster(e){if(!this.map||!e.object?.properties.cluster)return;let t=Math.floor(this.map.getZoom()??0);if(t<this.MAX_ZOOM){t+=1,this.map.setZoom(t),this.map.setCenter({lat:e.object.geometry.coordinates[1],lng:e.object.geometry.coordinates[0]});return}let n=e.object.properties.cluster_id,r=e.object.geometry.coordinates,i=this.clustersIndex.getLeaves(n,1/0),a=9e-6;this.spiderPoints=[];for(let[e,t]of i.entries()){if(Math.sqrt((t.geometry.coordinates[0]-r[0])**2+(t.geometry.coordinates[1]-r[1])**2)>this.MAX_REASONABLE_DISTANCE)continue;let n=e*10,i=Math.sqrt(e+1)+10,o=r[1]+i*a*Math.cos(n),s=r[0]+i*a*Math.sin(n);this.spiderPoints.push({properties:{...t.properties},geometry:{type:`Point`,coordinates:[s,o]},sourcePosition:r})}this.renderLayers()}click(){this.map?.getDiv().style.cursor!==`pointer`&&(this.spiderPoints=[],this.spiderLineLayer=null,this.spiderIconLayer=null,this.setInfoDialog(null),this.renderLayers(!0))}dragstart(){this.map?.getDiv().style.cursor!==`pointer`&&this.setInfoDialog(null)}getInfoDialog(){return this.infoDialog}createSpiderLineLayer(){this.spiderLineLayer=(0,t.markRaw)(new JJ({id:`spider-lines`,data:this.spiderPoints,getSourcePosition:e=>e.sourcePosition,getTargetPosition:e=>e.geometry.coordinates,getColor:[0,0,0,90],getWidth:2.5,parameters:{depthTest:!1},getPolygonOffset:()=>[0,-1200],updateTriggers:{data:[this.spiderPoints]}}))}createSpiderIconLayer(){this.spiderIconLayer=new VJ({id:`spider-icon-layer`,data:this.spiderPoints,pickable:!0,parameters:{depthTest:!1},getPolygonOffset:()=>[0,-1e3],getPosition:e=>e.geometry.coordinates,getIcon:e=>e.properties.info?.canvasIcon&&e.properties.info?.canvasIcon?.color?{url:this.createMarkerIcon(e.properties.info.canvasIcon.color),id:`marker-${e.properties.info.canvasIcon.color}`,width:32,height:32}:{url:e.properties?.info?.icon??this.IMAGE_POINT,width:this.IMAGE_WIDTH_POINT,height:this.IMAGE_HEIGHT_POINT,anchorY:this.IMAGE_ANCHORY_POINT,mask:!1},getSize:e=>35,onHover:e=>{let t=this.map?.getDiv();t&&(this.getDrawingMode()||(e.object?(t.style.cursor=`pointer`,this.map?.setOptions({draggableCursor:`pointer`})):(t.style.cursor=`grab`,this.map?.setOptions({draggableCursor:`grab`}))))},onClick:e=>{this.map&&this.hasDialog&&(this.getDrawingMode()||this.setInfoDialog({info:e.object?.properties?.info,x:e?.x,y:e?.y}))},sizeScale:1,sizeMinPixels:15,updateTriggers:{data:[this.spiderPoints]}})}createHoverPolygonLayer(e){Math.floor(this.map?.getZoom()??0)>=this.MAX_ZOOM||(this.polygonHoverLayer=(0,t.markRaw)(new jX({id:`cluster-hover-polygon`,data:[{polygon:e}],getPolygon:e=>e.polygon,filled:!0,stroked:!0,getFillColor:[0,150,255,50],getLineColor:[0,150,255,255],getLineWidth:3,lineWidthMinPixels:2})))}createIconLayer(){let e=Math.floor(this.map?.getZoom()??0);this.iconLayer=(0,t.markRaw)(new VJ({id:`icon-cluster`,data:(0,t.toRaw)(this.clusters),pickable:!0,parameters:{depthTest:!1},getPolygonOffset:()=>[0,-1e3],getIcon:e=>{if(e.properties.cluster){let t=this.dynamicColorCluster.length===0?this.COLOR_CLUSTER:e.properties.iconColor;return{url:this.createClusterIcon(e.properties.point_count??1,t),width:64,height:64}}else if(e.properties.info?.canvasIcon&&e.properties.info?.canvasIcon?.color)return{url:this.createMarkerIcon(e.properties.info.canvasIcon.color),width:32,height:32};else return{url:e.properties?.info?.icon??this.IMAGE_POINT,width:this.IMAGE_WIDTH_POINT,height:this.IMAGE_HEIGHT_POINT,anchorY:this.IMAGE_ANCHORY_POINT,mask:!1}},getPosition:e=>e.geometry.coordinates,getSize:e=>e.properties.cluster?90:45,onHover:e=>{if(!this.hasDialog)return;let t=this.map?.getDiv();t&&(this.getDrawingMode()||(this.onHoverPolygonCluster(e),e.object?(t.style.cursor=`pointer`,this.map?.setOptions({draggableCursor:`pointer`})):(t.style.cursor=`grab`,this.map?.setOptions({draggableCursor:`grab`}))))},onClick:e=>{this.map&&(this.getDrawingMode()||(e.object.properties.cluster?this.createSpiderCluster(e):this.hasDialog&&this.setInfoDialog({info:e.object?.properties?.info,x:e?.x,y:e?.y})))},sizeScale:1,sizeMinPixels:15,updateTriggers:{getIcon:[e,this.dynamicColorCluster,this.clusters],getPosition:[e,this.dynamicColorCluster,this.clusters],getSize:[e,this.dynamicColorCluster,this.clusters]},transitions:{getOpacity:{type:`interpolation`,duration:600,enter:()=>[0]},getSize:{type:`interpolation`,duration:600,enter:()=>[0]}}}))}onHoverPolygonCluster(e){if(e.object?.properties&&e.object.properties.cluster)try{let t=e.object.properties.cluster_id,n=XX(IX(this.clustersIndex.getLeaves(t,1/0).map(e=>PX(e.geometry.coordinates)))),r=n?n.geometry.coordinates[0]:[];this.createHoverPolygonLayer(r)}catch(e){console.warn(`Error on get polygon cluster`,e)}else this.polygonHoverLayer=null;this.renderOnlyLayers()}},iZ=class extends nZ{polygons=[];polygonData=[];hasDialog=!1;polygonLayer;getDrawingMode=()=>this.enableDrawingMode;constructor(e,t,n=!1,r=!1,i=!1,a=null){super(e),this.polygons=t,this.isDrawing=i,this.has_autocomplete=r,this.hasDialog=n,this.drawCoordinates=a??``}init(){this.initMap().then(()=>{this.polygons.length>0&&this.fitBounds(this.polygons[0].coordinates),this.createPolygon(),new yJ({layers:[this.polygonLayer]}).setMap(this.map)})}createPolygon(e=null){e&&(this.map=e),this.map&&(this.createPolygonData(),this.createPolygonLayer())}clear(){this.setInfoDialog(null)}click(){this.clear()}dragstart(){this.clear()}zoomChanged(){this.clear()}getInfoDialog(){return this.infoDialog}createPolygonData(){this.polygonData=[];for(let[e,t]of this.polygons.entries()){let n=t.coordinates.split(`,`).map(e=>{let[t,n]=e.split(` `).map(parseFloat);return[n,t]}),r=t.color;t.color.length===9&&(r=`#`+r.slice(1,7)),this.polygonData.push({id:`polygonId-${e}`,name:`polygonId-${e}`,polygon:n,colors:{fillColor:[...ix().convertHexColorToRGB(r,`array`),120],lineColor:ix().convertHexColorToRGB(r,`array`)},info:t.info})}}createPolygonLayer(){this.polygonLayer=(0,t.markRaw)(new jX({id:`area-polygon-layer`,data:this.polygonData,pickable:!0,stroked:!0,filled:!0,parameters:{depthTest:!1,polygonOffsetFill:[1,1]},getPolygon:e=>e.polygon,getFillColor:e=>e.colors?.fillColor||[0,150,255,100],getLineColor:e=>e.colors?.lineColor||[0,150,255,100],getLineWidth:2,lineWidthMinPixels:1,onHover:e=>{if(!this.hasDialog)return;let t=this.map?.getDiv();t&&(this.getDrawingMode()||(e.object?(t.style.cursor=`pointer`,this.map?.setOptions({draggableCursor:`pointer`})):(t.style.cursor=`grab`,this.map?.setOptions({draggableCursor:`grab`}))))},onClick:e=>{this.hasDialog&&(this.getDrawingMode()||e.object&&this.setInfoDialog({info:e.object?.info,x:e.x,y:e.y}))}}))}},aZ=class extends nZ{polygons=[];markers=[];clustersMap=null;polygonsMap=null;hasDialog=!1;mainMapRef=null;overlay=null;constructor(e,t,n,r=!1,i=!1,a=!1,o=null){super(e),this.mainMapRef=e,this.polygons=t,this.markers=n,this.hasDialog=r,this.has_autocomplete=i,this.isDrawing=a,this.drawCoordinates=o??``}init(e=null,t=null){this.initMap().then(()=>{setTimeout(()=>{this.mainMapRef&&(this.fitBounds(this.markers),this.clustersMap=new rZ(this.mainMapRef,this.markers,this.hasDialog),this.clustersMap.getDrawingMode=()=>this.enableDrawingMode,t&&(this.clustersMap.COLOR_CLUSTER=t),this.polygonsMap=new iZ(this.mainMapRef,this.polygons,!1),e&&(this.clustersMap.IMAGE_POINT=e),this.polygonsMap.createPolygon(this.map),this.clustersMap.loadMarkers(this.map),this.clustersMap.onRender=this.render.bind(this),this.render())},200)})}getInfoDialog(){return this.clustersMap?.getInfoDialog()?this.clustersMap?.getInfoDialog():this.polygonsMap?.getInfoDialog()?this.polygonsMap?.getInfoDialog():null}clearDialog(){this.clustersMap?.setInfoDialog(null),this.polygonsMap?.setInfoDialog(null)}zoomChanged(e=!1){this.clustersMap&&(this.clustersMap.spiderLineLayer=null,this.clustersMap.spiderIconLayer=null,this.clustersMap.spiderPoints=[],this.clustersMap.polygonHoverLayer=null,this.clustersMap.setInfoDialog(null),this.clustersMap.loadMarkers(this.map,[],!0,e),this.render())}render(){if(this.overlay||(this.overlay=new yJ({layers:[]}),this.overlay.setMap(this.map)),this.clustersMap&&this.polygonsMap){let e=[this.polygonsMap.polygonLayer,this.clustersMap.iconLayer,this.clustersMap.spiderIconLayer,this.clustersMap.spiderLineLayer,this.clustersMap.polygonHoverLayer];this.overlay.setProps({layers:e})}}click(){this.map?.getDiv().style.cursor!==`pointer`&&this.zoomChanged(!0)}dragstart(){this.map?.getDiv().style.cursor!==`pointer`&&this.clearDialog()}},oZ=class extends nZ{IMAGE_POINT=`/img/backend/dots/blue-dot.png`;IMAGE_WIDTH_POINT=128;IMAGE_HEIGHT_POINT=128;IMAGE_ANCHORY_POINT=128;markers=[];points=[];iconLayer;overlay;hasDialog=!1;iconsCache={};getDrawingMode=()=>this.enableDrawingMode;constructor(e,t,n=!1,r=!1,i=!1,a=null){super(e),this.hasDialog=n,this.markers=t,this.has_autocomplete=r,this.isDrawing=i,this.drawCoordinates=a??``}init(e=null){this.initMap().then(()=>{this.fitBounds(this.markers),e&&(this.IMAGE_POINT=e),this.loadMarkers(),this.overlay=new yJ({}),this.overlay.setMap(this.map),this.renderLayer()})}loadMarkers(e=null){e&&(this.map=e),this.renderLayer()}renderLayer(){if(this.points.length===0)for(let[e,t]of this.markers.entries()){let n=Number(t.longitude??0),r=Number(t.latitude??0);ix().isValidCoordinates(r,n)&&this.points.push({type:`Feature`,properties:{cluster:!1,pointId:`id-${e}`,info:ix().deepClone(t.info)??null},geometry:{type:`Point`,coordinates:[n,r]}})}this.createIconLayer(),this.overlay&&this.overlay.setProps({layers:[this.iconLayer]})}createMarkerIcon(e){let t=`marker-${e}`;if(this.iconsCache[t])return this.iconsCache[t];let n=document.createElement(`canvas`);n.width=32,n.height=32;let r=n.getContext(`2d`);r&&(r.clearRect(0,0,32,32),r.beginPath(),r.arc(16,16,8,0,Math.PI*2),r.fillStyle=e,r.fill(),r.strokeStyle=`#fff`,r.lineWidth=2,r.stroke());let i=n.toDataURL();return this.iconsCache[t]=i,i}clear(){this.map?.getDiv().style.cursor!==`pointer`&&this.setInfoDialog(null)}click(){this.clear()}dragstart(){this.clear()}zoomChanged(){this.setInfoDialog(null)}getInfoDialog(){return this.infoDialog}createIconLayer(){this.iconLayer=(0,t.markRaw)(new VJ({id:`icon-markers`,data:(0,t.toRaw)(this.points),pickable:!0,parameters:{depthTest:!1},getPolygonOffset:()=>[0,-1e3],getIcon:e=>e.properties.info?.canvasIcon&&e.properties.info?.canvasIcon?.color?{url:this.createMarkerIcon(e.properties.info.canvasIcon.color),id:`marker-${e.properties.info.canvasIcon.color}`,width:32,height:32}:{url:e.properties?.info?.icon??this.IMAGE_POINT,width:this.IMAGE_WIDTH_POINT,height:this.IMAGE_HEIGHT_POINT,anchorY:this.IMAGE_ANCHORY_POINT,mask:!1},getPosition:e=>e.geometry.coordinates,getSize:e=>45,onHover:e=>{if(!this.hasDialog||this.getDrawingMode())return;let t=this.map?.getDiv();t&&(e.object?(t.style.cursor=`pointer`,this.map?.setOptions({draggableCursor:`pointer`})):(t.style.cursor=`grab`,this.map?.setOptions({draggableCursor:`grab`})))},onClick:e=>{this.map&&(this.getDrawingMode()||this.hasDialog&&this.setInfoDialog({info:e.object?.properties?.info,x:e?.x,y:e?.y}))},sizeScale:1,sizeMinPixels:15}))}},sZ=class extends nZ{markers=[];clusters=[];clustersMap=null;markersMap=null;hasDialog=!1;mainMapRef=null;overlay=null;constructor(e,t,n,r=!1,i=!1,a=!1,o=null){super(e),this.mainMapRef=e,this.markers=t,this.clusters=n,this.hasDialog=r,this.has_autocomplete=i,this.isDrawing=a,this.drawCoordinates=o??``}init(e=null,t=null){this.initMap().then(()=>{setTimeout(()=>{this.mainMapRef&&(this.fitBounds([...this.markers,...this.clusters]),this.clustersMap=new rZ(this.mainMapRef,this.clusters,this.hasDialog),this.clustersMap.getDrawingMode=()=>this.enableDrawingMode,t&&(this.clustersMap.COLOR_CLUSTER=t),this.markersMap=new oZ(this.mainMapRef,this.markers,this.hasDialog),this.markersMap.getDrawingMode=()=>this.enableDrawingMode,e&&(this.markersMap.IMAGE_POINT=e),this.clustersMap.loadMarkers(this.map),this.markersMap.loadMarkers(this.map),this.clustersMap.onRender=this.render.bind(this),this.render())},200)})}getInfoDialog(){return this.clustersMap?.getInfoDialog()?this.clustersMap?.getInfoDialog():this.markersMap?.getInfoDialog()?this.markersMap?.getInfoDialog():null}clearDialog(){this.clustersMap?.setInfoDialog(null),this.markersMap?.setInfoDialog(null)}zoomChanged(e=!1){this.clustersMap&&this.markersMap&&(this.clustersMap.spiderLineLayer=null,this.clustersMap.spiderIconLayer=null,this.clustersMap.spiderPoints=[],this.clustersMap.polygonHoverLayer=null,this.clustersMap.setInfoDialog(null),this.markersMap.setInfoDialog(null),this.clustersMap.loadMarkers(this.map,[],!0,e),this.render())}render(){if(this.overlay||(this.overlay=new yJ({layers:[]}),this.overlay.setMap(this.map)),this.clustersMap&&this.markersMap){let e=[this.markersMap.iconLayer,this.clustersMap.iconLayer,this.clustersMap.spiderIconLayer,this.clustersMap.spiderLineLayer,this.clustersMap.polygonHoverLayer];this.overlay.setProps({layers:e})}}click(){this.map?.getDiv().style.cursor!==`pointer`&&this.zoomChanged(!0)}dragstart(){this.map?.getDiv().style.cursor!==`pointer`&&this.clearDialog()}},cZ=class extends nZ{polygons=[];markers=[];markersMap=null;polygonsMap=null;hasDialog=!1;mainMapRef=null;overlay=null;constructor(e,t,n,r=!1,i=!1,a=!1,o=null){super(e),this.mainMapRef=e,this.polygons=t,this.markers=n,this.hasDialog=r,this.has_autocomplete=i,this.isDrawing=a,this.drawCoordinates=o??``}init(e=null){this.initMap().then(()=>{setTimeout(()=>{if(!this.mainMapRef)return;let t=this.markers;t.length===0&&this.polygons.length!==0&&(t=this.polygons[0].coordinates),this.fitBounds(t),this.markersMap=new oZ(this.mainMapRef,this.markers,this.hasDialog),this.markersMap.getDrawingMode=()=>this.enableDrawingMode,this.polygonsMap=new iZ(this.mainMapRef,this.polygons,!1),this.polygonsMap.getDrawingMode=()=>this.enableDrawingMode,e&&(this.markersMap.IMAGE_POINT=e),this.render()},200)})}getInfoDialog(){return this.markersMap?.getInfoDialog()?this.markersMap?.getInfoDialog():this.polygonsMap?.getInfoDialog()?this.polygonsMap?.getInfoDialog():null}clearDialog(){this.markersMap?.setInfoDialog(null),this.polygonsMap?.setInfoDialog(null)}render(){if(!(!this.markersMap||!this.polygonsMap)&&(this.overlay||(this.overlay=new yJ({layers:[]}),this.overlay.setMap(this.map)),this.polygonsMap.createPolygon(this.map),this.markersMap.loadMarkers(this.map),this.markersMap&&this.polygonsMap)){let e=[this.polygonsMap.polygonLayer,this.markersMap.iconLayer];this.overlay.setProps({layers:e})}}clear(){this.map?.getDiv().style.cursor!==`pointer`&&this.markersMap&&this.polygonsMap&&(this.markersMap.setInfoDialog(null),this.polygonsMap.setInfoDialog(null))}click(){this.clear()}dragstart(){this.clear()}zoomChanged(){this.markersMap?.setInfoDialog(null),this.polygonsMap?.setInfoDialog(null)}};function lZ({pointCount:e,getBinId:t}){let n=new Map;for(let r=0;r<e;r++){let e=t(r);if(e===null)continue;let i=n.get(String(e));i?i.points.push(r):(i={id:e,index:n.size,points:[r]},n.set(String(e),i))}return Array.from(n.values())}function uZ({bins:e,dimensions:t,target:n}){let r=e.length*t;(!n||n.length<r)&&(n=new Float32Array(r));for(let r=0;r<e.length;r++){let{id:i}=e[r];Array.isArray(i)?n.set(i,r*t):n[r]=i}return n}var dZ=e=>e.length,fZ=(e,t)=>{let n=0;for(let r of e)n+=t(r);return n},pZ={COUNT:dZ,SUM:fZ,MEAN:(e,t)=>e.length===0?NaN:fZ(e,t)/e.length,MIN:(e,t)=>{let n=1/0;for(let r of e){let e=t(r);e<n&&(n=e)}return n},MAX:(e,t)=>{let n=-1/0;for(let r of e){let e=t(r);e>n&&(n=e)}return n}};function mZ({bins:e,getValue:t,operation:n,target:r}){(!r||r.length<e.length)&&(r=new Float32Array(e.length));let i=1/0,a=-1/0;for(let o=0;o<e.length;o++){let{points:s}=e[o];r[o]=n(s,t),r[o]<i&&(i=r[o]),r[o]>a&&(a=r[o])}return{value:r,domain:[i,a]}}function hZ(e,t,n){let r={};for(let n of e.sources||[]){let e=t[n];if(e)r[n]=gZ(e);else throw Error(`Cannot find attribute ${n}`)}let i={};return t=>{for(let e in r)i[e]=r[e](t);return e.getValue(i,t,n)}}function gZ(e){let t=e.value,{offset:n=0,stride:r,size:i}=e.getAccessor(),a=t.BYTES_PER_ELEMENT,o=n/a,s=r?r/a:i;if(i===1)return e.isConstant?()=>t[0]:e=>t[o+s*e];let c;return e.isConstant?(c=Array.from(t),()=>c):(c=Array(i),e=>{let n=o+s*e;for(let e=0;e<i;e++)c[e]=t[n+e];return c})}var _Z=class{constructor(e){this.bins=[],this.binIds=null,this.results=[],this.dimensions=e.dimensions,this.channelCount=e.getValue.length,this.props={...e,binOptions:{},pointCount:0,operations:[],customOperations:[],attributes:{}},this.needsUpdate=!0,this.setProps(e)}destroy(){}get binCount(){return this.bins.length}setProps(e){let t=this.props;if(e.binOptions&&(AW(e.binOptions,t.binOptions,2)||this.setNeedsUpdate()),e.operations)for(let n=0;n<this.channelCount;n++)e.operations[n]!==t.operations[n]&&this.setNeedsUpdate(n);if(e.customOperations)for(let n=0;n<this.channelCount;n++)!!e.customOperations[n]!=!!t.customOperations[n]&&this.setNeedsUpdate(n);e.pointCount!==void 0&&e.pointCount!==t.pointCount&&this.setNeedsUpdate(),e.attributes&&={...t.attributes,...e.attributes},Object.assign(this.props,e)}setNeedsUpdate(e){e===void 0?this.needsUpdate=!0:this.needsUpdate!==!0&&(this.needsUpdate=this.needsUpdate||[],this.needsUpdate[e]=!0)}update(){if(this.needsUpdate===!0){this.bins=lZ({pointCount:this.props.pointCount,getBinId:hZ(this.props.getBin,this.props.attributes,this.props.binOptions)});let e=uZ({bins:this.bins,dimensions:this.dimensions,target:this.binIds?.value});this.binIds={value:e,type:`float32`,size:this.dimensions}}for(let e=0;e<this.channelCount;e++)if(this.needsUpdate===!0||this.needsUpdate[e]){let t=this.props.customOperations[e]||pZ[this.props.operations[e]],{value:n,domain:r}=mZ({bins:this.bins,getValue:hZ(this.props.getValue[e],this.props.attributes,void 0),operation:t,target:this.results[e]?.value});this.results[e]={value:n,domain:r,type:`float32`,size:1},this.props.onUpdate?.({channel:e})}this.needsUpdate=!1}preDraw(){}getBins(){return this.binIds}getResult(e){return this.results[e]}getResultDomain(e){return this.results[e]?.domain??[1/0,-1/0]}getBin(e){let t=this.bins[e];if(!t)return null;let n=Array(this.channelCount);for(let t=0;t<n.length;t++)n[t]=this.results[t]?.value[e];return{id:t.id,value:n,count:t.points.length,pointIndices:t.points}}};function vZ(e,t,n){return e.createFramebuffer({width:t,height:n,colorAttachments:[e.createTexture({width:t,height:n,format:`rgba32float`,sampler:{minFilter:`nearest`,magFilter:`nearest`}})]})}var yZ={name:`binSorter`,vs:`layout(std140) uniform binSorterUniforms {
|
|
3274
|
+
`,wX=[0,0,0,255],TX={filled:!0,extruded:!1,wireframe:!1,_normalize:!0,_windingOrder:`CW`,_full3d:!1,elevationScale:{type:`number`,min:0,value:1},getPolygon:{type:`accessor`,value:e=>e.polygon},getElevation:{type:`accessor`,value:1e3},getFillColor:{type:`accessor`,value:wX},getLineColor:{type:`accessor`,value:wX},material:!0},EX={enter:(e,t)=>t.length?t.subarray(t.length-e.length):e},DX=class extends Xq{getShaders(e){return super.getShaders({vs:e===`top`?xX:SX,fs:CX,defines:{RING_WINDING_ORDER_CW:!this.props._normalize&&this.props._windingOrder===`CCW`?0:1},modules:[oV,rz,QV,yX]})}get wrapLongitude(){return!1}getBounds(){return this.getAttributeManager()?.getBounds([`vertexPositions`])}initializeState(){let{viewport:e}=this.context,{coordinateSystem:t}=this.props,{_full3d:n}=this.props;e.isGeospatial&&t==="default"&&(t=`lnglat`);let r;t===`lnglat`&&(r=n?e.projectPosition.bind(e):e.projectFlat.bind(e)),this.setState({numInstances:0,polygonTesselator:new gX({preproject:r,fp64:this.use64bitPositions(),IndexType:Uint32Array})});let i=this.getAttributeManager();i.remove([`instancePickingColors`]),i.add({indices:{size:1,isIndexed:!0,update:this.calculateIndices,noAlloc:!0},vertexPositions:{size:3,type:`float64`,stepMode:`dynamic`,fp64:this.use64bitPositions(),transition:EX,accessor:`getPolygon`,update:this.calculatePositions,noAlloc:!0,shaderAttributes:{nextVertexPositions:{vertexOffset:1}}},instanceVertexValid:{size:1,type:`uint16`,stepMode:`instance`,update:this.calculateVertexValid,noAlloc:!0},elevations:{size:1,stepMode:`dynamic`,transition:EX,accessor:`getElevation`},fillColors:{size:this.props.colorFormat.length,type:`unorm8`,stepMode:`dynamic`,transition:EX,accessor:`getFillColor`,defaultValue:wX},lineColors:{size:this.props.colorFormat.length,type:`unorm8`,stepMode:`dynamic`,transition:EX,accessor:`getLineColor`,defaultValue:wX},pickingColors:{size:4,type:`uint8`,stepMode:`dynamic`,accessor:(e,{index:t,target:n})=>this.encodePickingColor(e&&e.__source?e.__source.index:t,n)}})}getPickingInfo(e){let t=super.getPickingInfo(e),{index:n}=t,r=this.props.data;return r[0]&&r[0].__source&&(t.object=r.find(e=>e.__source.index===n)),t}disablePickingIndex(e){let t=this.props.data;if(t[0]&&t[0].__source)for(let n=0;n<t.length;n++)t[n].__source.index===e&&this._disablePickingIndex(n);else super.disablePickingIndex(e)}draw({uniforms:e}){let{extruded:t,filled:n,wireframe:r,elevationScale:i}=this.props,{topModel:a,sideModel:o,wireframeModel:s,polygonTesselator:c}=this.state,l={extruded:!!t,elevationScale:i,isWireframe:!1};s&&r&&(s.setInstanceCount(c.instanceCount-1),s.shaderInputs.setProps({solidPolygon:{...l,isWireframe:!0}}),s.draw(this.context.renderPass)),o&&n&&(o.setInstanceCount(c.instanceCount-1),o.shaderInputs.setProps({solidPolygon:l}),o.draw(this.context.renderPass)),a&&n&&(a.setVertexCount(c.vertexCount),a.shaderInputs.setProps({solidPolygon:l}),a.draw(this.context.renderPass))}updateState(e){super.updateState(e),this.updateGeometry(e);let{props:t,oldProps:n,changeFlags:r}=e,i=this.getAttributeManager();(r.extensionsChanged||t.filled!==n.filled||t.extruded!==n.extruded)&&(this.state.models?.forEach(e=>e.destroy()),this.setState(this._getModels()),i.invalidateAll())}updateGeometry({props:e,oldProps:t,changeFlags:n}){if(n.dataChanged||n.updateTriggersChanged&&(n.updateTriggersChanged.all||n.updateTriggersChanged.getPolygon)){let{polygonTesselator:t}=this.state,r=e.data.attributes||{};t.updateGeometry({data:e.data,normalize:e._normalize,geometryBuffer:r.getPolygon,buffers:r,getGeometry:e.getPolygon,positionFormat:e.positionFormat,wrapLongitude:e.wrapLongitude,resolution:this.context.viewport.resolution,fp64:this.use64bitPositions(),dataChanged:n.dataChanged,full3d:e._full3d}),this.setState({numInstances:t.instanceCount,startIndices:t.vertexStarts}),n.dataChanged||this.getAttributeManager().invalidateAll()}}_getModels(){let{id:e,filled:t,extruded:n}=this.props,r,i,a;if(t){let t=this.getShaders(`top`);t.defines.NON_INSTANCED_MODEL=1;let n=this.getAttributeManager().getBufferLayouts({isInstanced:!1});r=new aW(this.context.device,{...t,id:`${e}-top`,topology:`triangle-list`,bufferLayout:n,isIndexed:!0,userData:{excludeAttributes:{instanceVertexValid:!0}}})}if(n){let t=this.getAttributeManager().getBufferLayouts({isInstanced:!0});i=new aW(this.context.device,{...this.getShaders(`side`),id:`${e}-side`,bufferLayout:t,geometry:new uW({topology:`triangle-strip`,attributes:{positions:{size:2,value:new Float32Array([1,0,0,0,1,1,0,1])}}}),isInstanced:!0,userData:{excludeAttributes:{indices:!0}}}),a=new aW(this.context.device,{...this.getShaders(`side`),id:`${e}-wireframe`,bufferLayout:t,geometry:new uW({topology:`line-strip`,attributes:{positions:{size:2,value:new Float32Array([1,0,0,0,0,1,1,1])}}}),isInstanced:!0,userData:{excludeAttributes:{indices:!0}}})}return{models:[i,a,r].filter(Boolean),topModel:r,sideModel:i,wireframeModel:a}}calculateIndices(e){let{polygonTesselator:t}=this.state;e.startIndices=t.indexStarts,e.value=t.get(`indices`)}calculatePositions(e){let{polygonTesselator:t}=this.state;e.startIndices=t.vertexStarts,e.value=t.get(`positions`)}calculateVertexValid(e){e.value=this.state.polygonTesselator.get(`vertexValid`)}};DX.defaultProps=TX,DX.layerName=`SolidPolygonLayer`;function OX({data:e,getIndex:t,dataRange:n,replace:r}){let{startRow:i=0,endRow:a=1/0}=n,o=e.length,s=o,c=o;for(let n=0;n<o;n++){let r=t(e[n]);if(s>n&&r>=i&&(s=n),r>=a){c=n;break}}let l=s,u=c-s===r.length?void 0:e.slice(c);for(let t=0;t<r.length;t++)e[l++]=r[t];if(u){for(let t=0;t<u.length;t++)e[l++]=u[t];e.length=l}return{startRow:s,endRow:s+r.length}}var kX=[0,0,0,255],AX={stroked:!0,filled:!0,extruded:!1,elevationScale:1,wireframe:!1,_normalize:!0,_windingOrder:`CW`,lineWidthUnits:`meters`,lineWidthScale:1,lineWidthMinPixels:0,lineWidthMaxPixels:2**53-1,lineJointRounded:!1,lineMiterLimit:4,getPolygon:{type:`accessor`,value:e=>e.polygon},getFillColor:{type:`accessor`,value:[0,0,0,255]},getLineColor:{type:`accessor`,value:kX},getLineWidth:{type:`accessor`,value:1},getElevation:{type:`accessor`,value:1e3},material:!0},jX=class extends nJ{initializeState(){this.state={paths:[],pathsDiff:null},this.props.getLineDashArray&&IP.removed(`getLineDashArray`,`PathStyleExtension`)()}updateState({changeFlags:e}){let t=e.dataChanged||e.updateTriggersChanged&&(e.updateTriggersChanged.all||e.updateTriggersChanged.getPolygon);if(t&&Array.isArray(e.dataChanged)){let t=this.state.paths.slice(),n=e.dataChanged.map(e=>OX({data:t,getIndex:e=>e.__source.index,dataRange:e,replace:this._getPaths(e)}));this.setState({paths:t,pathsDiff:n})}else t&&this.setState({paths:this._getPaths(),pathsDiff:null})}_getPaths(e={}){let{data:t,getPolygon:n,positionFormat:r,_normalize:i}=this.props,a=[],o=r===`XY`?2:3,{startRow:s,endRow:c}=e,{iterable:l,objectInfo:u}=aK(t,s,c);for(let e of l){u.index++;let t=n(e,u);i&&(t=fX(t,o));let{holeIndices:r}=t,s=t.positions||t;if(r)for(let t=0;t<=r.length;t++){let n=s.slice(r[t-1]||0,r[t]||s.length);a.push(this.getSubLayerRow({path:n},e,u.index))}else a.push(this.getSubLayerRow({path:s},e,u.index))}return a}renderLayers(){let{data:e,_dataDiff:t,stroked:n,filled:r,extruded:i,wireframe:a,_normalize:o,_windingOrder:s,elevationScale:c,transitions:l,positionFormat:u}=this.props,{lineWidthUnits:d,lineWidthScale:f,lineWidthMinPixels:p,lineWidthMaxPixels:m,lineJointRounded:h,lineMiterLimit:g,lineDashJustified:_}=this.props,{getFillColor:v,getLineColor:y,getLineWidth:b,getLineDashArray:x,getElevation:S,getPolygon:C,updateTriggers:w,material:T}=this.props,{paths:E,pathsDiff:D}=this.state,O=this.getSubLayerClass(`fill`,DX),k=this.getSubLayerClass(`stroke`,QY),A=this.shouldRenderSubLayer(`fill`,E)&&new O({_dataDiff:t,extruded:i,elevationScale:c,filled:r,wireframe:a,_normalize:o,_windingOrder:s,getElevation:S,getFillColor:v,getLineColor:i&&a?y:kX,material:T,transitions:l},this.getSubLayerProps({id:`fill`,updateTriggers:w&&{getPolygon:w.getPolygon,getElevation:w.getElevation,getFillColor:w.getFillColor,lineColors:i&&a,getLineColor:w.getLineColor}}),{data:e,positionFormat:u,getPolygon:C}),j=!i&&n&&this.shouldRenderSubLayer(`stroke`,E)&&new k({_dataDiff:D&&(()=>D),widthUnits:d,widthScale:f,widthMinPixels:p,widthMaxPixels:m,jointRounded:h,miterLimit:g,dashJustified:_,_pathType:`loop`,transitions:l&&{getWidth:l.getLineWidth,getColor:l.getLineColor,getPath:l.getPolygon},getColor:this.getSubLayerAccessor(y),getWidth:this.getSubLayerAccessor(b),getDashArray:this.getSubLayerAccessor(x)},this.getSubLayerProps({id:`stroke`,updateTriggers:w&&{getWidth:w.getLineWidth,getColor:w.getLineColor,getDashArray:w.getLineDashArray}}),{data:E,positionFormat:u,getPath:e=>e.path});return[!i&&A,j,i&&A]}};jX.layerName=`PolygonLayer`,jX.defaultProps=AX;var MX=6371008.8;MX*100,MX*100,360/(2*Math.PI),MX*3.28084,MX*39.37,MX/1e3,MX/1e3,MX/1609.344,MX*1e3,MX*1e3,MX/1852,MX*1.0936;function NX(e,t,n={}){let r={type:`Feature`};return(n.id===0||n.id)&&(r.id=n.id),n.bbox&&(r.bbox=n.bbox),r.properties=t||{},r.geometry=e,r}function PX(e,t,n={}){if(!e)throw Error(`coordinates is required`);if(!Array.isArray(e))throw Error(`coordinates must be an Array`);if(e.length<2)throw Error(`coordinates must be at least 2 numbers long`);if(!LX(e[0])||!LX(e[1]))throw Error(`coordinates must contain numbers`);return NX({type:`Point`,coordinates:e},t,n)}function FX(e,t,n={}){for(let t of e){if(t.length<4)throw Error(`Each LinearRing of a Polygon must have 4 or more Positions.`);if(t[t.length-1].length!==t[0].length)throw Error(`First and last Position are not equivalent.`);for(let e=0;e<t[t.length-1].length;e++)if(t[t.length-1][e]!==t[0][e])throw Error(`First and last Position are not equivalent.`)}return NX({type:`Polygon`,coordinates:e},t,n)}function IX(e,t={}){let n={type:`FeatureCollection`};return t.id&&(n.id=t.id),t.bbox&&(n.bbox=t.bbox),n.features=e,n}function LX(e){return!isNaN(e)&&e!==null&&!Array.isArray(e)}function RX(e,t,n){if(e!==null)for(var r,i,a,o,s,c,l,u=0,d=0,f,p=e.type,m=p===`FeatureCollection`,h=p===`Feature`,g=m?e.features.length:1,_=0;_<g;_++){l=m?e.features[_].geometry:h?e.geometry:e,f=l?l.type===`GeometryCollection`:!1,s=f?l.geometries.length:1;for(var v=0;v<s;v++){var y=0,b=0;if(o=f?l.geometries[v]:l,o!==null){c=o.coordinates;var x=o.type;switch(u=n&&(x===`Polygon`||x===`MultiPolygon`)?1:0,x){case null:break;case`Point`:if(t(c,d,_,y,b)===!1)return!1;d++,y++;break;case`LineString`:case`MultiPoint`:for(r=0;r<c.length;r++){if(t(c[r],d,_,y,b)===!1)return!1;d++,x===`MultiPoint`&&y++}x===`LineString`&&y++;break;case`Polygon`:case`MultiLineString`:for(r=0;r<c.length;r++){for(i=0;i<c[r].length-u;i++){if(t(c[r][i],d,_,y,b)===!1)return!1;d++}x===`MultiLineString`&&y++,x===`Polygon`&&b++}x===`Polygon`&&y++;break;case`MultiPolygon`:for(r=0;r<c.length;r++){for(b=0,i=0;i<c[r].length;i++){for(a=0;a<c[r][i].length-u;a++){if(t(c[r][i][a],d,_,y,b)===!1)return!1;d++}b++}y++}break;case`GeometryCollection`:for(r=0;r<o.geometries.length;r++)if(RX(o.geometries[r],t,n)===!1)return!1;break;default:throw Error(`Unknown Geometry Type`)}}}}}var zX=l(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n||=self).RBush=r()})(e,function(){"use strict";function e(e,r,i,a,o){(function e(n,r,i,a,o){for(;a>i;){if(a-i>600){var s=a-i+1,c=r-i+1,l=Math.log(s),u=.5*Math.exp(2*l/3),d=.5*Math.sqrt(l*u*(s-u)/s)*(c-s/2<0?-1:1);e(n,r,Math.max(i,Math.floor(r-c*u/s+d)),Math.min(a,Math.floor(r+(s-c)*u/s+d)),o)}var f=n[r],p=i,m=a;for(t(n,i,r),o(n[a],f)>0&&t(n,i,a);p<m;){for(t(n,p,m),p++,m--;o(n[p],f)<0;)p++;for(;o(n[m],f)>0;)m--}o(n[i],f)===0?t(n,i,m):t(n,++m,a),m<=r&&(i=m+1),r<=m&&(a=m-1)}})(e,r,i||0,a||e.length-1,o||n)}function t(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function n(e,t){return e<t?-1:+(e>t)}var r=function(e){e===void 0&&(e=9),this._maxEntries=Math.max(4,e),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()};function i(e,t,n){if(!n)return t.indexOf(e);for(var r=0;r<t.length;r++)if(n(e,t[r]))return r;return-1}function a(e,t){o(e,0,e.children.length,t,e)}function o(e,t,n,r,i){i||=m(null),i.minX=1/0,i.minY=1/0,i.maxX=-1/0,i.maxY=-1/0;for(var a=t;a<n;a++){var o=e.children[a];s(i,e.leaf?r(o):o)}return i}function s(e,t){return e.minX=Math.min(e.minX,t.minX),e.minY=Math.min(e.minY,t.minY),e.maxX=Math.max(e.maxX,t.maxX),e.maxY=Math.max(e.maxY,t.maxY),e}function c(e,t){return e.minX-t.minX}function l(e,t){return e.minY-t.minY}function u(e){return(e.maxX-e.minX)*(e.maxY-e.minY)}function d(e){return e.maxX-e.minX+(e.maxY-e.minY)}function f(e,t){return e.minX<=t.minX&&e.minY<=t.minY&&t.maxX<=e.maxX&&t.maxY<=e.maxY}function p(e,t){return t.minX<=e.maxX&&t.minY<=e.maxY&&t.maxX>=e.minX&&t.maxY>=e.minY}function m(e){return{children:e,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function h(t,n,r,i,a){for(var o=[n,r];o.length;)if(!((r=o.pop())-(n=o.pop())<=i)){var s=n+Math.ceil((r-n)/i/2)*i;e(t,s,n,r,a),o.push(n,s,s,r)}}return r.prototype.all=function(){return this._all(this.data,[])},r.prototype.search=function(e){var t=this.data,n=[];if(!p(e,t))return n;for(var r=this.toBBox,i=[];t;){for(var a=0;a<t.children.length;a++){var o=t.children[a],s=t.leaf?r(o):o;p(e,s)&&(t.leaf?n.push(o):f(e,s)?this._all(o,n):i.push(o))}t=i.pop()}return n},r.prototype.collides=function(e){var t=this.data;if(!p(e,t))return!1;for(var n=[];t;){for(var r=0;r<t.children.length;r++){var i=t.children[r],a=t.leaf?this.toBBox(i):i;if(p(e,a)){if(t.leaf||f(e,a))return!0;n.push(i)}}t=n.pop()}return!1},r.prototype.load=function(e){if(!e||!e.length)return this;if(e.length<this._minEntries){for(var t=0;t<e.length;t++)this.insert(e[t]);return this}var n=this._build(e.slice(),0,e.length-1,0);if(this.data.children.length)if(this.data.height===n.height)this._splitRoot(this.data,n);else{if(this.data.height<n.height){var r=this.data;this.data=n,n=r}this._insert(n,this.data.height-n.height-1,!0)}else this.data=n;return this},r.prototype.insert=function(e){return e&&this._insert(e,this.data.height-1),this},r.prototype.clear=function(){return this.data=m([]),this},r.prototype.remove=function(e,t){if(!e)return this;for(var n,r,a,o=this.data,s=this.toBBox(e),c=[],l=[];o||c.length;){if(o||(o=c.pop(),r=c[c.length-1],n=l.pop(),a=!0),o.leaf){var u=i(e,o.children,t);if(u!==-1)return o.children.splice(u,1),c.push(o),this._condense(c),this}a||o.leaf||!f(o,s)?r?(n++,o=r.children[n],a=!1):o=null:(c.push(o),l.push(n),n=0,r=o,o=o.children[0])}return this},r.prototype.toBBox=function(e){return e},r.prototype.compareMinX=function(e,t){return e.minX-t.minX},r.prototype.compareMinY=function(e,t){return e.minY-t.minY},r.prototype.toJSON=function(){return this.data},r.prototype.fromJSON=function(e){return this.data=e,this},r.prototype._all=function(e,t){for(var n=[];e;)e.leaf?t.push.apply(t,e.children):n.push.apply(n,e.children),e=n.pop();return t},r.prototype._build=function(e,t,n,r){var i,o=n-t+1,s=this._maxEntries;if(o<=s)return a(i=m(e.slice(t,n+1)),this.toBBox),i;r||(r=Math.ceil(Math.log(o)/Math.log(s)),s=Math.ceil(o/s**(r-1))),(i=m([])).leaf=!1,i.height=r;var c=Math.ceil(o/s),l=c*Math.ceil(Math.sqrt(s));h(e,t,n,l,this.compareMinX);for(var u=t;u<=n;u+=l){var d=Math.min(u+l-1,n);h(e,u,d,c,this.compareMinY);for(var f=u;f<=d;f+=c){var p=Math.min(f+c-1,d);i.children.push(this._build(e,f,p,r-1))}}return a(i,this.toBBox),i},r.prototype._chooseSubtree=function(e,t,n,r){for(;r.push(t),!t.leaf&&r.length-1!==n;){for(var i=1/0,a=1/0,o=void 0,s=0;s<t.children.length;s++){var c=t.children[s],l=u(c),d=(f=e,p=c,(Math.max(p.maxX,f.maxX)-Math.min(p.minX,f.minX))*(Math.max(p.maxY,f.maxY)-Math.min(p.minY,f.minY))-l);d<a?(a=d,i=l<i?l:i,o=c):d===a&&l<i&&(i=l,o=c)}t=o||t.children[0]}var f,p;return t},r.prototype._insert=function(e,t,n){var r=n?e:this.toBBox(e),i=[],a=this._chooseSubtree(r,this.data,t,i);for(a.children.push(e),s(a,r);t>=0&&i[t].children.length>this._maxEntries;)this._split(i,t),t--;this._adjustParentBBoxes(r,i,t)},r.prototype._split=function(e,t){var n=e[t],r=n.children.length,i=this._minEntries;this._chooseSplitAxis(n,i,r);var o=this._chooseSplitIndex(n,i,r),s=m(n.children.splice(o,n.children.length-o));s.height=n.height,s.leaf=n.leaf,a(n,this.toBBox),a(s,this.toBBox),t?e[t-1].children.push(s):this._splitRoot(n,s)},r.prototype._splitRoot=function(e,t){this.data=m([e,t]),this.data.height=e.height+1,this.data.leaf=!1,a(this.data,this.toBBox)},r.prototype._chooseSplitIndex=function(e,t,n){for(var r,i,a,s,c,l,d,f=1/0,p=1/0,m=t;m<=n-t;m++){var h=o(e,0,m,this.toBBox),g=o(e,m,n,this.toBBox),_=(i=h,a=g,s=void 0,c=void 0,l=void 0,d=void 0,s=Math.max(i.minX,a.minX),c=Math.max(i.minY,a.minY),l=Math.min(i.maxX,a.maxX),d=Math.min(i.maxY,a.maxY),Math.max(0,l-s)*Math.max(0,d-c)),v=u(h)+u(g);_<f?(f=_,r=m,p=v<p?v:p):_===f&&v<p&&(p=v,r=m)}return r||n-t},r.prototype._chooseSplitAxis=function(e,t,n){var r=e.leaf?this.compareMinX:c,i=e.leaf?this.compareMinY:l;this._allDistMargin(e,t,n,r)<this._allDistMargin(e,t,n,i)&&e.children.sort(r)},r.prototype._allDistMargin=function(e,t,n,r){e.children.sort(r);for(var i=this.toBBox,a=o(e,0,t,i),c=o(e,n-t,n,i),l=d(a)+d(c),u=t;u<n-t;u++){var f=e.children[u];s(a,e.leaf?i(f):f),l+=d(a)}for(var p=n-t-1;p>=t;p--){var m=e.children[p];s(c,e.leaf?i(m):m),l+=d(c)}return l},r.prototype._adjustParentBBoxes=function(e,t,n){for(var r=n;r>=0;r--)s(t[r],e)},r.prototype._condense=function(e){for(var t=e.length-1,n=void 0;t>=0;t--)e[t].children.length===0?t>0?(n=e[t-1].children).splice(n.indexOf(e[t]),1):this.clear():a(e[t],this.toBBox)},r})})),BX=u({default:()=>HX});function VX(e,t){return e<t?-1:+(e>t)}var HX,UX=c((()=>{HX=class{constructor(e=[],t=VX){if(this.data=e,this.length=this.data.length,this.compare=t,this.length>0)for(let e=(this.length>>1)-1;e>=0;e--)this._down(e)}push(e){this.data.push(e),this.length++,this._up(this.length-1)}pop(){if(this.length===0)return;let e=this.data[0],t=this.data.pop();return this.length--,this.length>0&&(this.data[0]=t,this._down(0)),e}peek(){return this.data[0]}_up(e){let{data:t,compare:n}=this,r=t[e];for(;e>0;){let i=e-1>>1,a=t[i];if(n(r,a)>=0)break;t[e]=a,e=i}t[e]=r}_down(e){let{data:t,compare:n}=this,r=this.length>>1,i=t[e];for(;e<r;){let r=(e<<1)+1,a=t[r],o=r+1;if(o<this.length&&n(t[o],a)<0&&(r=o,a=t[o]),n(a,i)>=0)break;t[e]=a,e=r}t[e]=i}}})),WX=l(((e,t)=>{t.exports=function(e,t,n,r){var i=e[0],a=e[1],o=!1;n===void 0&&(n=0),r===void 0&&(r=t.length);for(var s=(r-n)/2,c=0,l=s-1;c<s;l=c++){var u=t[n+c*2+0],d=t[n+c*2+1],f=t[n+l*2+0],p=t[n+l*2+1];d>a!=p>a&&i<(f-u)*(a-d)/(p-d)+u&&(o=!o)}return o}})),GX=l(((e,t)=>{t.exports=function(e,t,n,r){var i=e[0],a=e[1],o=!1;n===void 0&&(n=0),r===void 0&&(r=t.length);for(var s=r-n,c=0,l=s-1;c<s;l=c++){var u=t[c+n][0],d=t[c+n][1],f=t[l+n][0],p=t[l+n][1];d>a!=p>a&&i<(f-u)*(a-d)/(p-d)+u&&(o=!o)}return o}})),KX=l(((e,t)=>{var n=WX(),r=GX();t.exports=function(e,t,i,a){return t.length>0&&Array.isArray(t[0])?r(e,t,i,a):n(e,t,i,a)},t.exports.nested=r,t.exports.flat=n})),qX=l(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?r(e):typeof define==`function`&&define.amd?define([`exports`],r):r((n||=self).predicates={})})(e,function(e){"use strict";let t=134217729;function n(e,t,n,r,i){let a,o,s,c,l=t[0],u=r[0],d=0,f=0;u>l==u>-l?(a=l,l=t[++d]):(a=u,u=r[++f]);let p=0;if(d<e&&f<n)for(u>l==u>-l?(s=a-((o=l+a)-l),l=t[++d]):(s=a-((o=u+a)-u),u=r[++f]),a=o,s!==0&&(i[p++]=s);d<e&&f<n;)u>l==u>-l?(s=a-((o=a+l)-(c=o-a))+(l-c),l=t[++d]):(s=a-((o=a+u)-(c=o-a))+(u-c),u=r[++f]),a=o,s!==0&&(i[p++]=s);for(;d<e;)s=a-((o=a+l)-(c=o-a))+(l-c),l=t[++d],a=o,s!==0&&(i[p++]=s);for(;f<n;)s=a-((o=a+u)-(c=o-a))+(u-c),u=r[++f],a=o,s!==0&&(i[p++]=s);return a===0&&p!==0||(i[p++]=a),p}function r(e){return new Float64Array(e)}let i=r(4),a=r(8),o=r(12),s=r(16),c=r(4);e.orient2d=function(e,r,l,u,d,f){let p=(r-f)*(l-d),m=(e-d)*(u-f),h=p-m;if(p===0||m===0||p>0!=m>0)return h;let g=Math.abs(p+m);return Math.abs(h)>=33306690738754716e-32*g?h:-function(e,r,l,u,d,f,p){let m,h,g,_,v,y,b,x,S,C,w,T,E,D,O,k,A,j,M=e-d,N=l-d,P=r-f,F=u-f;v=(O=(x=M-(b=(y=t*M)-(y-M)))*(C=F-(S=(y=t*F)-(y-F)))-((D=M*F)-b*S-x*S-b*C))-(w=O-(A=(x=P-(b=(y=t*P)-(y-P)))*(C=N-(S=(y=t*N)-(y-N)))-((k=P*N)-b*S-x*S-b*C))),i[0]=O-(w+v)+(v-A),v=(E=D-((T=D+w)-(v=T-D))+(w-v))-(w=E-k),i[1]=E-(w+v)+(v-k),v=(j=T+w)-T,i[2]=T-(j-v)+(w-v),i[3]=j;let I=function(e,t){let n=t[0];for(let r=1;r<e;r++)n+=t[r];return n}(4,i),L=22204460492503146e-32*p;if(I>=L||-I>=L||(m=e-(M+(v=e-M))+(v-d),g=l-(N+(v=l-N))+(v-d),h=r-(P+(v=r-P))+(v-f),_=u-(F+(v=u-F))+(v-f),m===0&&h===0&&g===0&&_===0)||(L=11093356479670487e-47*p+33306690738754706e-32*Math.abs(I),(I+=M*_+F*m-(P*g+N*h))>=L||-I>=L))return I;v=(O=(x=m-(b=(y=t*m)-(y-m)))*(C=F-(S=(y=t*F)-(y-F)))-((D=m*F)-b*S-x*S-b*C))-(w=O-(A=(x=h-(b=(y=t*h)-(y-h)))*(C=N-(S=(y=t*N)-(y-N)))-((k=h*N)-b*S-x*S-b*C))),c[0]=O-(w+v)+(v-A),v=(E=D-((T=D+w)-(v=T-D))+(w-v))-(w=E-k),c[1]=E-(w+v)+(v-k),v=(j=T+w)-T,c[2]=T-(j-v)+(w-v),c[3]=j;let R=n(4,i,4,c,a);v=(O=(x=M-(b=(y=t*M)-(y-M)))*(C=_-(S=(y=t*_)-(y-_)))-((D=M*_)-b*S-x*S-b*C))-(w=O-(A=(x=P-(b=(y=t*P)-(y-P)))*(C=g-(S=(y=t*g)-(y-g)))-((k=P*g)-b*S-x*S-b*C))),c[0]=O-(w+v)+(v-A),v=(E=D-((T=D+w)-(v=T-D))+(w-v))-(w=E-k),c[1]=E-(w+v)+(v-k),v=(j=T+w)-T,c[2]=T-(j-v)+(w-v),c[3]=j;let z=n(R,a,4,c,o);return v=(O=(x=m-(b=(y=t*m)-(y-m)))*(C=_-(S=(y=t*_)-(y-_)))-((D=m*_)-b*S-x*S-b*C))-(w=O-(A=(x=h-(b=(y=t*h)-(y-h)))*(C=g-(S=(y=t*g)-(y-g)))-((k=h*g)-b*S-x*S-b*C))),c[0]=O-(w+v)+(v-A),v=(E=D-((T=D+w)-(v=T-D))+(w-v))-(w=E-k),c[1]=E-(w+v)+(v-k),v=(j=T+w)-T,c[2]=T-(j-v)+(w-v),c[3]=j,s[n(z,o,4,c,s)-1]}(e,r,l,u,d,f,g)},e.orient2dfast=function(e,t,n,r,i,a){return(t-a)*(n-i)-(e-i)*(r-a)},Object.defineProperty(e,"__esModule",{value:!0})})})),JX=f(l(((e,t)=>{var n=zX(),r=(UX(),p(BX)),i=KX(),a=qX().orient2d;r.default&&(r=r.default),t.exports=o,t.exports.default=o;function o(e,t,r){t=Math.max(0,t===void 0?2:t),r||=0;var i=g(e),a=new n(16);a.toBBox=function(e){return{minX:e[0],minY:e[1],maxX:e[0],maxY:e[1]}},a.compareMinX=function(e,t){return e[0]-t[0]},a.compareMinY=function(e,t){return e[1]-t[1]},a.load(e);for(var o=[],c=0,l;c<i.length;c++){var u=i[c];a.remove(u),l=_(u,l),o.push(l)}var d=new n(16);for(c=0;c<o.length;c++)d.insert(h(o[c]));for(var f=t*t,p=r*r;o.length;){var m=o.shift(),y=m.p,b=m.next.p,x=v(y,b);if(!(x<p)){var S=x/f;u=s(a,m.prev.p,y,b,m.next.next.p,S,d),u&&Math.min(v(u,y),v(u,b))<=S&&(o.push(m),o.push(_(u,m)),a.remove(u),d.remove(m),d.insert(h(m)),d.insert(h(m.next)))}}m=l;var C=[];do C.push(m.p),m=m.next;while(m!==l);return C.push(m.p),C}function s(e,t,n,i,a,o,s){for(var u=new r([],c),f=e.data;f;){for(var p=0;p<f.children.length;p++){var m=f.children[p],h=f.leaf?y(m,n,i):l(n,i,m);h>o||u.push({node:m,dist:h})}for(;u.length&&!u.peek().node.children;){var g=u.pop(),_=g.node,v=y(_,t,n),b=y(_,i,a);if(g.dist<v&&g.dist<b&&d(n,_,s)&&d(i,_,s))return _}f=u.pop(),f&&=f.node}return null}function c(e,t){return e.dist-t.dist}function l(e,t,n){if(u(e,n)||u(t,n))return 0;var r=b(e[0],e[1],t[0],t[1],n.minX,n.minY,n.maxX,n.minY);if(r===0)return 0;var i=b(e[0],e[1],t[0],t[1],n.minX,n.minY,n.minX,n.maxY);if(i===0)return 0;var a=b(e[0],e[1],t[0],t[1],n.maxX,n.minY,n.maxX,n.maxY);if(a===0)return 0;var o=b(e[0],e[1],t[0],t[1],n.minX,n.maxY,n.maxX,n.maxY);return o===0?0:Math.min(r,i,a,o)}function u(e,t){return e[0]>=t.minX&&e[0]<=t.maxX&&e[1]>=t.minY&&e[1]<=t.maxY}function d(e,t,n){for(var r=Math.min(e[0],t[0]),i=Math.min(e[1],t[1]),a=Math.max(e[0],t[0]),o=Math.max(e[1],t[1]),s=n.search({minX:r,minY:i,maxX:a,maxY:o}),c=0;c<s.length;c++)if(m(s[c].p,s[c].next.p,e,t))return!1;return!0}function f(e,t,n){return a(e[0],e[1],t[0],t[1],n[0],n[1])}function m(e,t,n,r){return e!==r&&t!==n&&f(e,t,n)>0!=f(e,t,r)>0&&f(n,r,e)>0!=f(n,r,t)>0}function h(e){var t=e.p,n=e.next.p;return e.minX=Math.min(t[0],n[0]),e.minY=Math.min(t[1],n[1]),e.maxX=Math.max(t[0],n[0]),e.maxY=Math.max(t[1],n[1]),e}function g(e){for(var t=e[0],n=e[0],r=e[0],a=e[0],o=0;o<e.length;o++){var s=e[o];s[0]<t[0]&&(t=s),s[0]>r[0]&&(r=s),s[1]<n[1]&&(n=s),s[1]>a[1]&&(a=s)}var c=[t,n,r,a],l=c.slice();for(o=0;o<e.length;o++)i(e[o],c)||l.push(e[o]);return S(l)}function _(e,t){var n={p:e,prev:null,next:null,minX:0,minY:0,maxX:0,maxY:0};return t?(n.next=t.next,n.prev=t,t.next.prev=n,t.next=n):(n.prev=n,n.next=n),n}function v(e,t){var n=e[0]-t[0],r=e[1]-t[1];return n*n+r*r}function y(e,t,n){var r=t[0],i=t[1],a=n[0]-r,o=n[1]-i;if(a!==0||o!==0){var s=((e[0]-r)*a+(e[1]-i)*o)/(a*a+o*o);s>1?(r=n[0],i=n[1]):s>0&&(r+=a*s,i+=o*s)}return a=e[0]-r,o=e[1]-i,a*a+o*o}function b(e,t,n,r,i,a,o,s){var c=n-e,l=r-t,u=o-i,d=s-a,f=e-i,p=t-a,m=c*c+l*l,h=c*u+l*d,g=u*u+d*d,_=c*f+l*p,v=u*f+d*p,y=m*g-h*h,b,x,S,C,w=y,T=y;y===0?(x=0,w=1,C=v,T=g):(x=h*v-g*_,C=m*v-h*_,x<0?(x=0,C=v,T=g):x>w&&(x=w,C=v+h,T=g)),C<0?(C=0,-_<0?x=0:-_>m?x=w:(x=-_,w=m)):C>T&&(C=T,-_+h<0?x=0:-_+h>m?x=w:(x=-_+h,w=m)),b=x===0?0:x/w,S=C===0?0:C/T;var E=(1-b)*e+b*n,D=(1-b)*t+b*r,O=(1-S)*i+S*o,k=(1-S)*a+S*s,A=O-E,j=k-D;return A*A+j*j}function x(e,t){return e[0]===t[0]?e[1]-t[1]:e[0]-t[0]}function S(e){e.sort(x);for(var t=[],n=0;n<e.length;n++){for(;t.length>=2&&f(t[t.length-2],t[t.length-1],e[n])<=0;)t.pop();t.push(e[n])}for(var r=[],i=e.length-1;i>=0;i--){for(;r.length>=2&&f(r[r.length-2],r[r.length-1],e[i])<=0;)r.pop();r.push(e[i])}return r.pop(),t.pop(),t.concat(r)}}))(),1);function YX(e,t={}){t.concavity=t.concavity||1/0;let n=[];if(RX(e,e=>{n.push([e[0],e[1]])}),!n.length)return null;let r=(0,JX.default)(n,t.concavity);return r.length>3?FX([r]):null}var XX=YX,ZX=`No options were set before calling importLibrary. Make sure to configure the loader using setOptions().`,QX=process.env.NODE_ENV===`production`?()=>{}:e=>{console.warn(`[@googlemaps/js-api-loader] ${e}`)};process.env.NODE_ENV;var $X=!1;async function eZ(e){if($X||QX(ZX),!window?.google?.maps?.importLibrary)throw Error(`google.maps.importLibrary is not installed.`);return await google.maps.importLibrary(e)}var tZ=class{constructor(e){this.currentPoints=[],this.completedPolygons=[],this.mousePosition=null,this.stopDraw=!1,this.lastUpdate=0,this.map=e,this.overlay=new yJ({style:{zIndex:`999`}}),this.overlay.setMap(this.map)}drawClickListener(e){if(this.stopDraw)return null;let t=[e.latLng.lng(),e.latLng.lat()];if(this.currentPoints.length>=3){let e=this.currentPoints[0];if(this.getDistance(t,e)<20)return this.completedPolygons=[...this.currentPoints,this.currentPoints[0]],this.currentPoints=[],this.mousePosition=null,this.updateLayer(),this.getDrawingPolygon()}return this.currentPoints.push(t),this.updateLayer(),null}drawMouseMoveListener(e){if(this.stopDraw)return null;Date.now()-this.lastUpdate<50||(this.lastUpdate=Date.now(),this.currentPoints.length>=1&&(this.mousePosition=[e.latLng.lng(),e.latLng.lat()],this.updateLayer()))}setDrawingListener(e){this.stopDraw=!e}getDrawingPolygon(){let e=[];for(let t of this.completedPolygons){let[n,r]=t;e.push(`${r} ${n}`)}return e.join(`,`)}setDrawingPolygon(e=null){if(!e)return;let t=[],n=e.split(`,`);for(let e of n){let[n,r]=e.split(` `);if(!ix().isValidCoordinates(n,r))return;t.push([Number(r),Number(n)])}this.completedPolygons=t,this.currentPoints=[],this.mousePosition=null,this.updateLayer()}resetDrawingPolygon(){this.completedPolygons=[],this.currentPoints=[],this.mousePosition=null,this.updateLayer()}updateLayer(){this.overlay.setProps({layers:[this.polygonLayer(),this.pathLayer(),this.scatterLayer()]})}scatterLayer(){let e=this.map.getZoom()??12;return(0,t.markRaw)(new nY({id:`draw-points-layer`,data:this.currentPoints.map(e=>({position:e})),getPosition:e=>e.position,getFillColor:(e,{index:t})=>t===0?[255,0,0,255]:[255,255,255,255],getLineColor:[2,2,2,255],getRadius:7/2**(e-12),radiusMinPixels:8,radiusMaxPixels:4}))}pathLayer(){let e=ix().deepClone(this.currentPoints),n=this.mousePosition?ix().deepClone(this.mousePosition):null,r=n?[...e,n]:e;return(0,t.markRaw)(new QY({id:`draw-path-layer`,data:r.length>=2?[{path:r}]:[],getPath:e=>e.path,getColor:[2,2,2,255],getWidth:4,widthMinPixels:4,widthMaxPixels:6}))}polygonLayer(){return(0,t.markRaw)(new jX({id:`draw-polygon-layer`,data:[{id:`drawPolygonId`,name:`drawPolygonId`,polygon:(0,t.toRaw)(this.completedPolygons).map(e=>[...e])}],getPolygon:e=>e.polygon,getFillColor:()=>[76,175,80,80],getLineColor:[2,2,2,255],getLineWidth:4,lineWidthMinPixels:4,lineWidthMaxPixels:6,pickable:!0,stroked:!0,filled:!0}))}getDistance(e,t){let n=this.overlay._deck?.getViewports()[0];if(!n)return 1/0;let r=n.project(e),i=n.project(t);return Math.sqrt((r[0]-i[0])**2+(r[1]-i[1])**2)}},nZ=class{constructor(e){this.ZOOM=16,this.MAX_ZOOM=this.ZOOM+4,this.mapRef=null,this.map=null,this.infoDialog=null,this.marker=null,this.markerPoint=null,this.hasMark=!1,this.isDraggable=!1,this.has_autocomplete=!1,this.isDrawing=!1,this.enableDrawingMode=!1,this.drawCoordinates=``,this.drawingManager=null,this.errorGPUDisabled=!1,this.isFullscreen=!1,this.initializedMarker=!1,this.disableGPUTimer(),this.center={lat:Number(kp().location?.lat||0),lng:Number(kp().location?.lng||0)},this.mapRef=e;let t=document.createElement(`canvas`);t.getContext(`webgl`)||t.getContext(`experimental-webgl`)||(this.errorGPUDisabled=!0)}disableGPUTimer(){if(WebGL2RenderingContext.prototype?.getExtension){let e=WebGL2RenderingContext.prototype.getExtension;WebGL2RenderingContext.prototype.getExtension=function(t){return t===`EXT_disjoint_timer_query_webgl2`||t===`EXT_disjoint_timer_query`?null:e.call(this,t)}}}async initMap(){if(!this.mapRef)return;let{Map:e}=await eZ(`maps`);this.map=new e(this.mapRef,{center:this.center,mapTypeId:`hybrid`,zoomControl:!0,mapTypeControl:!0,scaleControl:!1,streetViewControl:!1,rotateControl:!1,fullscreenControl:!1,zoom:this.ZOOM,maxZoom:this.MAX_ZOOM,gestureHandling:`greedy`,clickableIcons:!1,styles:[{featureType:`poi`,elementType:`labels`,stylers:[{visibility:`off`}]}]}),this.map?.addListener(`click`,this.generalClick.bind(this)),this.map.addListener(`mousemove`,this.generalMouseMove.bind(this)),this.map?.addListener(`dragstart`,this.dragstart.bind(this)),this.map?.addListener(`zoom_changed`,this.zoomChanged.bind(this)),document.addEventListener(`fullscreenchange`,this.setFullscreen.bind(this)),document.addEventListener(`webkitfullscreenchange`,this.setFullscreen.bind(this)),document.addEventListener(`mozfullscreenchange`,this.setFullscreen.bind(this)),document.addEventListener(`MSFullscreenChange`,this.setFullscreen.bind(this)),this.hasMark&&(this.map.setOptions({mapId:kp().mapId}),await this.initMarker()),this.isDrawing&&await this.initDraw()}fitBounds(e){if(!this.map)return;let t=[];typeof e==`string`?t=this.validatePointsPolygon(e):Array.isArray(e)&&(t=this.validatePointsMarkers(e));let n=new google.maps.LatLngBounds;for(let e of t)n.extend(e);n.isEmpty()||this.map.fitBounds(n)}setZoomMarker(e){this.fitBounds([e])}validatePointsPolygon(e){let t=[],n=e.split(`,`);for(let e of n){let[n,r]=e.split(` `);ix().isValidCoordinates(n,r)&&t.push({lat:Number(n),lng:Number(r)})}return t}validatePointsMarkers(e){let t=[];for(let n of e)ix().isValidCoordinates(n.latitude,n.longitude)&&t.push({lat:Number(n.latitude),lng:Number(n.longitude)});return t}async initDraw(){this.map&&this.isDrawing&&(this.enableDrawingMode=!0,this.map?.setOptions({draggableCursor:`crosshair`}),this.drawingManager=new tZ(this.map),this.drawingManager.setDrawingListener(this.enableDrawingMode),this.drawingManager.setDrawingPolygon(this.drawCoordinates),this.fitBounds(this.drawCoordinates))}setDrawMode(e){this.map?.getDiv()&&(this.enableDrawingMode=e,this.map?.setOptions({draggableCursor:this.enableDrawingMode?`crosshair`:`grab`}),this.drawingManager?.setDrawingListener(this.enableDrawingMode))}setDrawablePolygon(e){if(this.isDrawing){if(!this.drawingManager){setTimeout(()=>this.setDrawablePolygon(e),300);return}this.drawCoordinates=e,this.drawingManager.setDrawingPolygon(this.drawCoordinates),this.fitBounds(e)}}dragMarker(e){e.latLng&&(this.marker={latitude:e.latLng.lat(),longitude:e.latLng.lng()})}setMarker(e){this.marker=e,this.initMarker().then()}async initMarker(){if(!this.hasMark||!this.map||(this.marker||={latitude:this.center.lat,longitude:this.center.lng},this.initializedMarker))return;if(this.initializedMarker=!0,this.map.setCenter({lat:this.marker.latitude,lng:this.marker.longitude}),this.markerPoint){let e=(0,t.toRaw)(this.markerPoint);e.map=null,e.position=null,this.markerPoint=null}let{AdvancedMarkerElement:e,PinElement:n}=await google.maps.importLibrary(`marker`),r=new n({background:`#ff0000`,glyphColor:`#ae0606`});this.markerPoint=new e({content:r.element,map:(0,t.toRaw)(this.map),position:{lat:this.marker.latitude,lng:this.marker.longitude},gmpDraggable:this.isDraggable}),this.markerPoint?.addListener(`dragend`,this.dragMarker.bind(this)),this.initializedMarker=!1}placeChanged(e){this.map&&e?.location&&(this.map.setCenter({lat:Number(e.location.lat()||0),lng:Number(e.location.lng()||0)}),this.map.setZoom(this.ZOOM),this.marker={latitude:Number(e.location.lat()),longitude:Number(e.location.lng())},this.initMarker().then())}resetMap(){if(this.map&&(this.isDrawing&&this.drawingManager&&(this.drawingManager.resetDrawingPolygon(),this.drawCoordinates=``),this.markerPoint)){let e=(0,t.toRaw)(this.markerPoint);e.map=null,e.position=null,this.markerPoint=null,this.map.setCenter({lat:Number(kp().location?.lat||0),lng:Number(kp().location?.lng||0)}),this.map.setZoom(this.ZOOM),this.marker={latitude:Number(kp().location?.lat||0),longitude:Number(kp().location?.lng||0)},this.initMarker().then()}}getIsFullscreen(){return this.isFullscreen}async toggleFullscreen(){let e=document.querySelector(`.map_container`);document.fullscreenElement?(document.exitFullscreen?await document.exitFullscreen():document.mozCancelFullScreen?await document.mozCancelFullScreen():document.webkitExitFullscreen?await document.webkitExitFullscreen():document.msExitFullscreen&&await document.msExitFullscreen(),this.isFullscreen=!1):(e?await e.requestFullscreen():e.mozRequestFullScreen?await e.mozRequestFullScreen():e.webkitRequestFullscreen?await e.webkitRequestFullscreen():e.msRequestFullscreen&&await e.msRequestFullscreen(),this.isFullscreen=!0),this.clearDialog()}setFullscreen(){this.isFullscreen=!!document.fullscreenElement}generalClick(e){if(this.isDrawing&&this.drawingManager){let t=this.drawingManager.drawClickListener(e);t&&(this.drawCoordinates=t)}this.click()}click(){}dragstart(){}clearDialog(){this.setInfoDialog(null)}getInfoDialog(){}setInfoDialog(e){this.infoDialog=e}hasAutocomplete(){return this.has_autocomplete}getErrorGPUDisabled(){return this.errorGPUDisabled}zoomChanged(){}generalMouseMove(e){this.isDrawing&&this.drawingManager&&this.drawingManager.drawMouseMoveListener(e),this.mousemove()}mousemove(){}},rZ=class extends nZ{constructor(e,t,n=!1,r=!1,i=!1,a=null,o=[]){super(e),this.COLOR_CLUSTER=`#0652FB`,this.IMAGE_POINT=`/img/backend/dots/red-dot.png`,this.IMAGE_WIDTH_POINT=128,this.IMAGE_HEIGHT_POINT=128,this.IMAGE_ANCHORY_POINT=128,this.MAX_REASONABLE_DISTANCE=.05,this.onRender=null,this.markers=[],this.spiderPoints=[],this.spiderLineLayer=null,this.spiderIconLayer=null,this.polygonHoverLayer=null,this.hasDialog=!1,this.groupBy=[],this.points=[],this.iconsCache={},this.dynamicColorCluster=[],this.getDrawingMode=()=>this.enableDrawingMode,this.hasDialog=n,this.markers=t,this.has_autocomplete=r,this.isDrawing=i,this.drawCoordinates=a??``,this.dynamicColorCluster=o??[]}init(e=null,t=null){this.initMap().then(()=>{this.fitBounds(this.markers),e&&(this.IMAGE_POINT=e),t&&(this.COLOR_CLUSTER=t),this.overlay=new yJ({}),this.overlay.setMap(this.map),this.loadMarkers()})}loadMarkers(e=null,t=[],n=!1,r=!1){e&&(this.map=e),n||this.createClusters(t),this.renderLayers(r)}zoomChanged(){this.spiderPoints=[],this.spiderLineLayer=null,this.spiderIconLayer=null,this.polygonHoverLayer=null,this.setInfoDialog(null),this.loadMarkers(null,[],!0,!1)}createClusterIcon(e,t=this.COLOR_CLUSTER){let n=`cluster-${e}-${t}-${Math.floor(this.map?.getZoom()??0)}`;if(this.iconsCache[n])return this.iconsCache[n];let r=document.createElement(`canvas`);r.width=128,r.height=128;let i=r.getContext(`2d`);i&&(i.clearRect(0,0,128,128),i.beginPath(),i.arc(64,64,32,0,Math.PI*2),i.fillStyle=t,i.fill(),i.strokeStyle=t+`99`,i.lineWidth=18,i.stroke(),i.fillStyle=`#fff`,i.font=`bold ${128*.16}px Arial`,i.textAlign=`center`,i.textBaseline=`middle`,i.fillText(e.toString(),64,64));let a=r.toDataURL();return this.iconsCache[n]=a,a}createMarkerIcon(e){let t=`marker-${e}-${Math.floor(this.map?.getZoom()??0)}`;if(this.iconsCache[t])return this.iconsCache[t];let n=document.createElement(`canvas`);n.width=32,n.height=32;let r=n.getContext(`2d`);r&&(r.clearRect(0,0,32,32),r.beginPath(),r.arc(16,16,8,0,Math.PI*2),r.fillStyle=e,r.fill(),r.strokeStyle=`#fff`,r.lineWidth=2,r.stroke());let i=n.toDataURL();return this.iconsCache[t]=i,i}createClusters(e=[]){if(this.points.length===0||e.length===0||!e.every((e,t)=>e===this.groupBy[t])){this.points=[],this.groupBy=e;for(let[e,t]of this.markers.entries()){let n=Number(t.longitude??0),r=Number(t.latitude??0);ix().isValidCoordinates(r,n)&&(this.groupBy.length!==0&&this.groupBy.findIndex(e=>e===t.groupBy)===-1||this.points.push({type:`Feature`,properties:{cluster:!1,pointId:`id-${e}`,info:t.info??null},geometry:{type:`Point`,coordinates:[n,r]}}))}}this.clustersIndex=new Ox({radius:120,maxZoom:this.MAX_ZOOM,initial:()=>({priority:0,iconColor:this.COLOR_CLUSTER}),map:e=>{let t=e.info?.canvasIcon?.color||this.COLOR_CLUSTER,n=0,r=this.dynamicColorCluster.findIndex(e=>e===t);return r!==-1&&(n=r+1),{priority:n,iconColor:t}},reduce:(e,t)=>{t.priority>e.priority&&(e.priority=t.priority,e.iconColor=t.iconColor)}}).load(this.points)}renderLayers(e=!1){if(!this.map)return;let t=Math.floor(this.map.getZoom()??0),n=[-180,-85,180,85];e||(this.clusters=this.clustersIndex.getClusters(n,t)),e||this.createIconLayer(),this.spiderPoints.length>0&&(this.createSpiderIconLayer(),this.createSpiderLineLayer(),this.onRender&&this.onRender()),this.overlay&&this.overlay.setProps({layers:[this.iconLayer,this.spiderIconLayer,this.spiderLineLayer,this.polygonHoverLayer]})}renderOnlyLayers(){this.overlay&&this.overlay.setProps({layers:[this.iconLayer,this.spiderIconLayer,this.spiderLineLayer,this.polygonHoverLayer]}),this.onRender&&this.onRender()}createSpiderCluster(e){if(!this.map||!e.object?.properties.cluster)return;let t=Math.floor(this.map.getZoom()??0);if(t<this.MAX_ZOOM){t+=1,this.map.setZoom(t),this.map.setCenter({lat:e.object.geometry.coordinates[1],lng:e.object.geometry.coordinates[0]});return}let n=e.object.properties.cluster_id,r=e.object.geometry.coordinates,i=this.clustersIndex.getLeaves(n,1/0),a=9e-6;this.spiderPoints=[];for(let[e,t]of i.entries()){if(Math.sqrt((t.geometry.coordinates[0]-r[0])**2+(t.geometry.coordinates[1]-r[1])**2)>this.MAX_REASONABLE_DISTANCE)continue;let n=e*10,i=Math.sqrt(e+1)+10,o=r[1]+i*a*Math.cos(n),s=r[0]+i*a*Math.sin(n);this.spiderPoints.push({properties:{...t.properties},geometry:{type:`Point`,coordinates:[s,o]},sourcePosition:r})}this.renderLayers()}click(){this.map?.getDiv().style.cursor!==`pointer`&&(this.spiderPoints=[],this.spiderLineLayer=null,this.spiderIconLayer=null,this.setInfoDialog(null),this.renderLayers(!0))}dragstart(){this.map?.getDiv().style.cursor!==`pointer`&&this.setInfoDialog(null)}getInfoDialog(){return this.infoDialog}createSpiderLineLayer(){this.spiderLineLayer=(0,t.markRaw)(new JJ({id:`spider-lines`,data:this.spiderPoints,getSourcePosition:e=>e.sourcePosition,getTargetPosition:e=>e.geometry.coordinates,getColor:[0,0,0,90],getWidth:2.5,parameters:{depthTest:!1},getPolygonOffset:()=>[0,-1200],updateTriggers:{data:[this.spiderPoints]}}))}createSpiderIconLayer(){this.spiderIconLayer=new VJ({id:`spider-icon-layer`,data:this.spiderPoints,pickable:!0,parameters:{depthTest:!1},getPolygonOffset:()=>[0,-1e3],getPosition:e=>e.geometry.coordinates,getIcon:e=>e.properties.info?.canvasIcon&&e.properties.info?.canvasIcon?.color?{url:this.createMarkerIcon(e.properties.info.canvasIcon.color),id:`marker-${e.properties.info.canvasIcon.color}`,width:32,height:32}:{url:e.properties?.info?.icon??this.IMAGE_POINT,width:this.IMAGE_WIDTH_POINT,height:this.IMAGE_HEIGHT_POINT,anchorY:this.IMAGE_ANCHORY_POINT,mask:!1},getSize:e=>35,onHover:e=>{let t=this.map?.getDiv();t&&(this.getDrawingMode()||(e.object?(t.style.cursor=`pointer`,this.map?.setOptions({draggableCursor:`pointer`})):(t.style.cursor=`grab`,this.map?.setOptions({draggableCursor:`grab`}))))},onClick:e=>{this.map&&this.hasDialog&&(this.getDrawingMode()||this.setInfoDialog({info:e.object?.properties?.info,x:e?.x,y:e?.y}))},sizeScale:1,sizeMinPixels:15,updateTriggers:{data:[this.spiderPoints]}})}createHoverPolygonLayer(e){Math.floor(this.map?.getZoom()??0)>=this.MAX_ZOOM||(this.polygonHoverLayer=(0,t.markRaw)(new jX({id:`cluster-hover-polygon`,data:[{polygon:e}],getPolygon:e=>e.polygon,filled:!0,stroked:!0,getFillColor:[0,150,255,50],getLineColor:[0,150,255,255],getLineWidth:3,lineWidthMinPixels:2})))}createIconLayer(){let e=Math.floor(this.map?.getZoom()??0);this.iconLayer=(0,t.markRaw)(new VJ({id:`icon-cluster`,data:(0,t.toRaw)(this.clusters),pickable:!0,parameters:{depthTest:!1},getPolygonOffset:()=>[0,-1e3],getIcon:e=>{if(e.properties.cluster){let t=this.dynamicColorCluster.length===0?this.COLOR_CLUSTER:e.properties.iconColor;return{url:this.createClusterIcon(e.properties.point_count??1,t),width:64,height:64}}else if(e.properties.info?.canvasIcon&&e.properties.info?.canvasIcon?.color)return{url:this.createMarkerIcon(e.properties.info.canvasIcon.color),width:32,height:32};else return{url:e.properties?.info?.icon??this.IMAGE_POINT,width:this.IMAGE_WIDTH_POINT,height:this.IMAGE_HEIGHT_POINT,anchorY:this.IMAGE_ANCHORY_POINT,mask:!1}},getPosition:e=>e.geometry.coordinates,getSize:e=>e.properties.cluster?90:45,onHover:e=>{if(!this.hasDialog)return;let t=this.map?.getDiv();t&&(this.getDrawingMode()||(this.onHoverPolygonCluster(e),e.object?(t.style.cursor=`pointer`,this.map?.setOptions({draggableCursor:`pointer`})):(t.style.cursor=`grab`,this.map?.setOptions({draggableCursor:`grab`}))))},onClick:e=>{this.map&&(this.getDrawingMode()||(e.object.properties.cluster?this.createSpiderCluster(e):this.hasDialog&&this.setInfoDialog({info:e.object?.properties?.info,x:e?.x,y:e?.y})))},sizeScale:1,sizeMinPixels:15,updateTriggers:{getIcon:[e,this.dynamicColorCluster,this.clusters],getPosition:[e,this.dynamicColorCluster,this.clusters],getSize:[e,this.dynamicColorCluster,this.clusters]},transitions:{getOpacity:{type:`interpolation`,duration:600,enter:()=>[0]},getSize:{type:`interpolation`,duration:600,enter:()=>[0]}}}))}onHoverPolygonCluster(e){if(e.object?.properties&&e.object.properties.cluster)try{let t=e.object.properties.cluster_id,n=XX(IX(this.clustersIndex.getLeaves(t,1/0).map(e=>PX(e.geometry.coordinates)))),r=n?n.geometry.coordinates[0]:[];this.createHoverPolygonLayer(r)}catch(e){console.warn(`Error on get polygon cluster`,e)}else this.polygonHoverLayer=null;this.renderOnlyLayers()}},iZ=class extends nZ{constructor(e,t,n=!1,r=!1,i=!1,a=null){super(e),this.polygons=[],this.polygonData=[],this.hasDialog=!1,this.getDrawingMode=()=>this.enableDrawingMode,this.polygons=t,this.isDrawing=i,this.has_autocomplete=r,this.hasDialog=n,this.drawCoordinates=a??``}init(){this.initMap().then(()=>{this.polygons.length>0&&this.fitBounds(this.polygons[0].coordinates),this.createPolygon(),new yJ({layers:[this.polygonLayer]}).setMap(this.map)})}createPolygon(e=null){e&&(this.map=e),this.map&&(this.createPolygonData(),this.createPolygonLayer())}clear(){this.setInfoDialog(null)}click(){this.clear()}dragstart(){this.clear()}zoomChanged(){this.clear()}getInfoDialog(){return this.infoDialog}createPolygonData(){this.polygonData=[];for(let[e,t]of this.polygons.entries()){let n=t.coordinates.split(`,`).map(e=>{let[t,n]=e.split(` `).map(parseFloat);return[n,t]}),r=t.color;t.color.length===9&&(r=`#`+r.slice(1,7)),this.polygonData.push({id:`polygonId-${e}`,name:`polygonId-${e}`,polygon:n,colors:{fillColor:[...ix().convertHexColorToRGB(r,`array`),120],lineColor:ix().convertHexColorToRGB(r,`array`)},info:t.info})}}createPolygonLayer(){this.polygonLayer=(0,t.markRaw)(new jX({id:`area-polygon-layer`,data:this.polygonData,pickable:!0,stroked:!0,filled:!0,parameters:{depthTest:!1,polygonOffsetFill:[1,1]},getPolygon:e=>e.polygon,getFillColor:e=>e.colors?.fillColor||[0,150,255,100],getLineColor:e=>e.colors?.lineColor||[0,150,255,100],getLineWidth:2,lineWidthMinPixels:1,onHover:e=>{if(!this.hasDialog)return;let t=this.map?.getDiv();t&&(this.getDrawingMode()||(e.object?(t.style.cursor=`pointer`,this.map?.setOptions({draggableCursor:`pointer`})):(t.style.cursor=`grab`,this.map?.setOptions({draggableCursor:`grab`}))))},onClick:e=>{this.hasDialog&&(this.getDrawingMode()||e.object&&this.setInfoDialog({info:e.object?.info,x:e.x,y:e.y}))}}))}},aZ=class extends nZ{constructor(e,t,n,r=!1,i=!1,a=!1,o=null){super(e),this.polygons=[],this.markers=[],this.clustersMap=null,this.polygonsMap=null,this.hasDialog=!1,this.mainMapRef=null,this.overlay=null,this.mainMapRef=e,this.polygons=t,this.markers=n,this.hasDialog=r,this.has_autocomplete=i,this.isDrawing=a,this.drawCoordinates=o??``}init(e=null,t=null){this.initMap().then(()=>{setTimeout(()=>{this.mainMapRef&&(this.fitBounds(this.markers),this.clustersMap=new rZ(this.mainMapRef,this.markers,this.hasDialog),this.clustersMap.getDrawingMode=()=>this.enableDrawingMode,t&&(this.clustersMap.COLOR_CLUSTER=t),this.polygonsMap=new iZ(this.mainMapRef,this.polygons,!1),e&&(this.clustersMap.IMAGE_POINT=e),this.polygonsMap.createPolygon(this.map),this.clustersMap.loadMarkers(this.map),this.clustersMap.onRender=this.render.bind(this),this.render())},200)})}getInfoDialog(){return this.clustersMap?.getInfoDialog()?this.clustersMap?.getInfoDialog():this.polygonsMap?.getInfoDialog()?this.polygonsMap?.getInfoDialog():null}clearDialog(){this.clustersMap?.setInfoDialog(null),this.polygonsMap?.setInfoDialog(null)}zoomChanged(e=!1){this.clustersMap&&(this.clustersMap.spiderLineLayer=null,this.clustersMap.spiderIconLayer=null,this.clustersMap.spiderPoints=[],this.clustersMap.polygonHoverLayer=null,this.clustersMap.setInfoDialog(null),this.clustersMap.loadMarkers(this.map,[],!0,e),this.render())}render(){if(this.overlay||(this.overlay=new yJ({layers:[]}),this.overlay.setMap(this.map)),this.clustersMap&&this.polygonsMap){let e=[this.polygonsMap.polygonLayer,this.clustersMap.iconLayer,this.clustersMap.spiderIconLayer,this.clustersMap.spiderLineLayer,this.clustersMap.polygonHoverLayer];this.overlay.setProps({layers:e})}}click(){this.map?.getDiv().style.cursor!==`pointer`&&this.zoomChanged(!0)}dragstart(){this.map?.getDiv().style.cursor!==`pointer`&&this.clearDialog()}},oZ=class extends nZ{constructor(e,t,n=!1,r=!1,i=!1,a=null){super(e),this.IMAGE_POINT=`/img/backend/dots/blue-dot.png`,this.IMAGE_WIDTH_POINT=128,this.IMAGE_HEIGHT_POINT=128,this.IMAGE_ANCHORY_POINT=128,this.markers=[],this.points=[],this.hasDialog=!1,this.iconsCache={},this.getDrawingMode=()=>this.enableDrawingMode,this.hasDialog=n,this.markers=t,this.has_autocomplete=r,this.isDrawing=i,this.drawCoordinates=a??``}init(e=null){this.initMap().then(()=>{this.fitBounds(this.markers),e&&(this.IMAGE_POINT=e),this.loadMarkers(),this.overlay=new yJ({}),this.overlay.setMap(this.map),this.renderLayer()})}loadMarkers(e=null){e&&(this.map=e),this.renderLayer()}renderLayer(){if(this.points.length===0)for(let[e,t]of this.markers.entries()){let n=Number(t.longitude??0),r=Number(t.latitude??0);ix().isValidCoordinates(r,n)&&this.points.push({type:`Feature`,properties:{cluster:!1,pointId:`id-${e}`,info:ix().deepClone(t.info)??null},geometry:{type:`Point`,coordinates:[n,r]}})}this.createIconLayer(),this.overlay&&this.overlay.setProps({layers:[this.iconLayer]})}createMarkerIcon(e){let t=`marker-${e}`;if(this.iconsCache[t])return this.iconsCache[t];let n=document.createElement(`canvas`);n.width=32,n.height=32;let r=n.getContext(`2d`);r&&(r.clearRect(0,0,32,32),r.beginPath(),r.arc(16,16,8,0,Math.PI*2),r.fillStyle=e,r.fill(),r.strokeStyle=`#fff`,r.lineWidth=2,r.stroke());let i=n.toDataURL();return this.iconsCache[t]=i,i}clear(){this.map?.getDiv().style.cursor!==`pointer`&&this.setInfoDialog(null)}click(){this.clear()}dragstart(){this.clear()}zoomChanged(){this.setInfoDialog(null)}getInfoDialog(){return this.infoDialog}createIconLayer(){this.iconLayer=(0,t.markRaw)(new VJ({id:`icon-markers`,data:(0,t.toRaw)(this.points),pickable:!0,parameters:{depthTest:!1},getPolygonOffset:()=>[0,-1e3],getIcon:e=>e.properties.info?.canvasIcon&&e.properties.info?.canvasIcon?.color?{url:this.createMarkerIcon(e.properties.info.canvasIcon.color),id:`marker-${e.properties.info.canvasIcon.color}`,width:32,height:32}:{url:e.properties?.info?.icon??this.IMAGE_POINT,width:this.IMAGE_WIDTH_POINT,height:this.IMAGE_HEIGHT_POINT,anchorY:this.IMAGE_ANCHORY_POINT,mask:!1},getPosition:e=>e.geometry.coordinates,getSize:e=>45,onHover:e=>{if(!this.hasDialog||this.getDrawingMode())return;let t=this.map?.getDiv();t&&(e.object?(t.style.cursor=`pointer`,this.map?.setOptions({draggableCursor:`pointer`})):(t.style.cursor=`grab`,this.map?.setOptions({draggableCursor:`grab`})))},onClick:e=>{this.map&&(this.getDrawingMode()||this.hasDialog&&this.setInfoDialog({info:e.object?.properties?.info,x:e?.x,y:e?.y}))},sizeScale:1,sizeMinPixels:15}))}},sZ=class extends nZ{constructor(e,t,n,r=!1,i=!1,a=!1,o=null){super(e),this.markers=[],this.clusters=[],this.clustersMap=null,this.markersMap=null,this.hasDialog=!1,this.mainMapRef=null,this.overlay=null,this.mainMapRef=e,this.markers=t,this.clusters=n,this.hasDialog=r,this.has_autocomplete=i,this.isDrawing=a,this.drawCoordinates=o??``}init(e=null,t=null){this.initMap().then(()=>{setTimeout(()=>{this.mainMapRef&&(this.fitBounds([...this.markers,...this.clusters]),this.clustersMap=new rZ(this.mainMapRef,this.clusters,this.hasDialog),this.clustersMap.getDrawingMode=()=>this.enableDrawingMode,t&&(this.clustersMap.COLOR_CLUSTER=t),this.markersMap=new oZ(this.mainMapRef,this.markers,this.hasDialog),this.markersMap.getDrawingMode=()=>this.enableDrawingMode,e&&(this.markersMap.IMAGE_POINT=e),this.clustersMap.loadMarkers(this.map),this.markersMap.loadMarkers(this.map),this.clustersMap.onRender=this.render.bind(this),this.render())},200)})}getInfoDialog(){return this.clustersMap?.getInfoDialog()?this.clustersMap?.getInfoDialog():this.markersMap?.getInfoDialog()?this.markersMap?.getInfoDialog():null}clearDialog(){this.clustersMap?.setInfoDialog(null),this.markersMap?.setInfoDialog(null)}zoomChanged(e=!1){this.clustersMap&&this.markersMap&&(this.clustersMap.spiderLineLayer=null,this.clustersMap.spiderIconLayer=null,this.clustersMap.spiderPoints=[],this.clustersMap.polygonHoverLayer=null,this.clustersMap.setInfoDialog(null),this.markersMap.setInfoDialog(null),this.clustersMap.loadMarkers(this.map,[],!0,e),this.render())}render(){if(this.overlay||(this.overlay=new yJ({layers:[]}),this.overlay.setMap(this.map)),this.clustersMap&&this.markersMap){let e=[this.markersMap.iconLayer,this.clustersMap.iconLayer,this.clustersMap.spiderIconLayer,this.clustersMap.spiderLineLayer,this.clustersMap.polygonHoverLayer];this.overlay.setProps({layers:e})}}click(){this.map?.getDiv().style.cursor!==`pointer`&&this.zoomChanged(!0)}dragstart(){this.map?.getDiv().style.cursor!==`pointer`&&this.clearDialog()}},cZ=class extends nZ{constructor(e,t,n,r=!1,i=!1,a=!1,o=null){super(e),this.polygons=[],this.markers=[],this.markersMap=null,this.polygonsMap=null,this.hasDialog=!1,this.mainMapRef=null,this.overlay=null,this.mainMapRef=e,this.polygons=t,this.markers=n,this.hasDialog=r,this.has_autocomplete=i,this.isDrawing=a,this.drawCoordinates=o??``}init(e=null){this.initMap().then(()=>{setTimeout(()=>{if(!this.mainMapRef)return;let t=this.markers;t.length===0&&this.polygons.length!==0&&(t=this.polygons[0].coordinates),this.fitBounds(t),this.markersMap=new oZ(this.mainMapRef,this.markers,this.hasDialog),this.markersMap.getDrawingMode=()=>this.enableDrawingMode,this.polygonsMap=new iZ(this.mainMapRef,this.polygons,!1),this.polygonsMap.getDrawingMode=()=>this.enableDrawingMode,e&&(this.markersMap.IMAGE_POINT=e),this.render()},200)})}getInfoDialog(){return this.markersMap?.getInfoDialog()?this.markersMap?.getInfoDialog():this.polygonsMap?.getInfoDialog()?this.polygonsMap?.getInfoDialog():null}clearDialog(){this.markersMap?.setInfoDialog(null),this.polygonsMap?.setInfoDialog(null)}render(){if(!(!this.markersMap||!this.polygonsMap)&&(this.overlay||(this.overlay=new yJ({layers:[]}),this.overlay.setMap(this.map)),this.polygonsMap.createPolygon(this.map),this.markersMap.loadMarkers(this.map),this.markersMap&&this.polygonsMap)){let e=[this.polygonsMap.polygonLayer,this.markersMap.iconLayer];this.overlay.setProps({layers:e})}}clear(){this.map?.getDiv().style.cursor!==`pointer`&&this.markersMap&&this.polygonsMap&&(this.markersMap.setInfoDialog(null),this.polygonsMap.setInfoDialog(null))}click(){this.clear()}dragstart(){this.clear()}zoomChanged(){this.markersMap?.setInfoDialog(null),this.polygonsMap?.setInfoDialog(null)}};function lZ({pointCount:e,getBinId:t}){let n=new Map;for(let r=0;r<e;r++){let e=t(r);if(e===null)continue;let i=n.get(String(e));i?i.points.push(r):(i={id:e,index:n.size,points:[r]},n.set(String(e),i))}return Array.from(n.values())}function uZ({bins:e,dimensions:t,target:n}){let r=e.length*t;(!n||n.length<r)&&(n=new Float32Array(r));for(let r=0;r<e.length;r++){let{id:i}=e[r];Array.isArray(i)?n.set(i,r*t):n[r]=i}return n}var dZ=e=>e.length,fZ=(e,t)=>{let n=0;for(let r of e)n+=t(r);return n},pZ={COUNT:dZ,SUM:fZ,MEAN:(e,t)=>e.length===0?NaN:fZ(e,t)/e.length,MIN:(e,t)=>{let n=1/0;for(let r of e){let e=t(r);e<n&&(n=e)}return n},MAX:(e,t)=>{let n=-1/0;for(let r of e){let e=t(r);e>n&&(n=e)}return n}};function mZ({bins:e,getValue:t,operation:n,target:r}){(!r||r.length<e.length)&&(r=new Float32Array(e.length));let i=1/0,a=-1/0;for(let o=0;o<e.length;o++){let{points:s}=e[o];r[o]=n(s,t),r[o]<i&&(i=r[o]),r[o]>a&&(a=r[o])}return{value:r,domain:[i,a]}}function hZ(e,t,n){let r={};for(let n of e.sources||[]){let e=t[n];if(e)r[n]=gZ(e);else throw Error(`Cannot find attribute ${n}`)}let i={};return t=>{for(let e in r)i[e]=r[e](t);return e.getValue(i,t,n)}}function gZ(e){let t=e.value,{offset:n=0,stride:r,size:i}=e.getAccessor(),a=t.BYTES_PER_ELEMENT,o=n/a,s=r?r/a:i;if(i===1)return e.isConstant?()=>t[0]:e=>t[o+s*e];let c;return e.isConstant?(c=Array.from(t),()=>c):(c=Array(i),e=>{let n=o+s*e;for(let e=0;e<i;e++)c[e]=t[n+e];return c})}var _Z=class{constructor(e){this.bins=[],this.binIds=null,this.results=[],this.dimensions=e.dimensions,this.channelCount=e.getValue.length,this.props={...e,binOptions:{},pointCount:0,operations:[],customOperations:[],attributes:{}},this.needsUpdate=!0,this.setProps(e)}destroy(){}get binCount(){return this.bins.length}setProps(e){let t=this.props;if(e.binOptions&&(AW(e.binOptions,t.binOptions,2)||this.setNeedsUpdate()),e.operations)for(let n=0;n<this.channelCount;n++)e.operations[n]!==t.operations[n]&&this.setNeedsUpdate(n);if(e.customOperations)for(let n=0;n<this.channelCount;n++)!!e.customOperations[n]!=!!t.customOperations[n]&&this.setNeedsUpdate(n);e.pointCount!==void 0&&e.pointCount!==t.pointCount&&this.setNeedsUpdate(),e.attributes&&={...t.attributes,...e.attributes},Object.assign(this.props,e)}setNeedsUpdate(e){e===void 0?this.needsUpdate=!0:this.needsUpdate!==!0&&(this.needsUpdate=this.needsUpdate||[],this.needsUpdate[e]=!0)}update(){if(this.needsUpdate===!0){this.bins=lZ({pointCount:this.props.pointCount,getBinId:hZ(this.props.getBin,this.props.attributes,this.props.binOptions)});let e=uZ({bins:this.bins,dimensions:this.dimensions,target:this.binIds?.value});this.binIds={value:e,type:`float32`,size:this.dimensions}}for(let e=0;e<this.channelCount;e++)if(this.needsUpdate===!0||this.needsUpdate[e]){let t=this.props.customOperations[e]||pZ[this.props.operations[e]],{value:n,domain:r}=mZ({bins:this.bins,getValue:hZ(this.props.getValue[e],this.props.attributes,void 0),operation:t,target:this.results[e]?.value});this.results[e]={value:n,domain:r,type:`float32`,size:1},this.props.onUpdate?.({channel:e})}this.needsUpdate=!1}preDraw(){}getBins(){return this.binIds}getResult(e){return this.results[e]}getResultDomain(e){return this.results[e]?.domain??[1/0,-1/0]}getBin(e){let t=this.bins[e];if(!t)return null;let n=Array(this.channelCount);for(let t=0;t<n.length;t++)n[t]=this.results[t]?.value[e];return{id:t.id,value:n,count:t.points.length,pointIndices:t.points}}};function vZ(e,t,n){return e.createFramebuffer({width:t,height:n,colorAttachments:[e.createTexture({width:t,height:n,format:`rgba32float`,sampler:{minFilter:`nearest`,magFilter:`nearest`}})]})}var yZ={name:`binSorter`,vs:`layout(std140) uniform binSorterUniforms {
|
|
3275
3275
|
ivec4 binIdRange;
|
|
3276
3276
|
ivec2 targetSize;
|
|
3277
3277
|
} binSorter;
|
|
@@ -3646,7 +3646,7 @@ fragColor.g = outTexture.r / max(1.0, outTexture.a);
|
|
|
3646
3646
|
`,uniformTypes:{commonBounds:`vec4<f32>`,radiusPixels:`f32`,textureWidth:`f32`,weightsScale:`f32`}},wQ={name:`maxWeight`,vs:`layout(std140) uniform maxWeightUniforms {
|
|
3647
3647
|
float textureSize;
|
|
3648
3648
|
} maxWeight;
|
|
3649
|
-
`,uniformTypes:{textureSize:`f32`}},TQ=2,EQ={format:`rgba8unorm`,dimension:`2d`,width:1,height:1,sampler:{minFilter:`linear`,magFilter:`linear`,addressModeU:`clamp-to-edge`,addressModeV:`clamp-to-edge`}},DQ=[0,0],OQ={SUM:0,MEAN:1},kQ={getPosition:{type:`accessor`,value:e=>e.position},getWeight:{type:`accessor`,value:1},intensity:{type:`number`,min:0,value:1},radiusPixels:{type:`number`,min:1,max:100,value:50},colorRange:MZ,threshold:{type:`number`,min:0,max:1,value:.05},colorDomain:{type:`array`,value:null,optional:!0},aggregation:`SUM`,weightsTextureSize:{type:`number`,min:128,max:2048,value:2048},debounceTimeout:{type:`number`,min:0,max:1e3,value:500}},AQ=[`float32-renderable-webgl`,`texture-blend-float-webgl`],jQ={data:{props:[`radiusPixels`]}},MQ=class extends _Q{getShaders(e){let t=[oV];return e.modules&&(t=[...t,...e.modules]),super.getShaders({...e,modules:t})}initializeState(){super.initializeAggregationLayer(jQ),this.setState({colorDomain:DQ}),this._setupTextureParams(),this._setupAttributes(),this._setupResources()}shouldUpdateState({changeFlags:e}){return e.somethingChanged}updateState(e){super.updateState(e),this._updateHeatmapState(e)}_updateHeatmapState(e){let{props:t,oldProps:n}=e,r=this._getChangeFlags(e);if((r.dataChanged||r.viewportChanged)&&(r.boundsChanged=this._updateBounds(r.dataChanged),this._updateTextureRenderingBounds()),r.dataChanged||r.boundsChanged){if(clearTimeout(this.state.updateTimer),this.setState({isWeightMapDirty:!0}),r.dataChanged){let e=this.getShaders({vs:yQ,fs:bQ});this._createWeightsTransform(e)}}else r.viewportZoomChanged&&this._debouncedUpdateWeightmap();t.colorRange!==n.colorRange&&this._updateColorTexture(e),this.state.isWeightMapDirty&&this._updateWeightmap(),this.setState({zoom:e.context.viewport.zoom})}renderLayers(){let{weightsTexture:e,triPositionBuffer:t,triTexCoordBuffer:n,maxWeightsTexture:r,colorTexture:i,colorDomain:a}=this.state,{updateTriggers:o,intensity:s,threshold:c,aggregation:l}=this.props;return new(this.getSubLayerClass(`triangle`,hQ))(this.getSubLayerProps({id:`triangle-layer`,updateTriggers:o}),{coordinateSystem:`default`,data:{attributes:{positions:t,texCoords:n}},vertexCount:4,maxTexture:r,colorTexture:i,aggregationMode:OQ[l]||0,weightsTexture:e,intensity:s,threshold:c,colorDomain:a})}finalizeState(e){super.finalizeState(e);let{weightsTransform:t,weightsTexture:n,maxWeightTransform:r,maxWeightsTexture:i,triPositionBuffer:a,triTexCoordBuffer:o,colorTexture:s,updateTimer:c}=this.state;t?.destroy(),n?.destroy(),r?.destroy(),i?.destroy(),a?.destroy(),o?.destroy(),s?.destroy(),c&&clearTimeout(c)}_getAttributeManager(){return new GK(this.context.device,{id:this.props.id,stats:this.context.stats})}_getChangeFlags(e){let t={},{dimensions:n}=this.state;t.dataChanged=this.isAttributeChanged()&&`attribute changed`||this.isAggregationDirty(e,{compareAll:!0,dimension:n.data})&&`aggregation is dirty`,t.viewportChanged=e.changeFlags.viewportChanged;let{zoom:r}=this.state;return(!e.context.viewport||e.context.viewport.zoom!==r)&&(t.viewportZoomChanged=!0),t}_createTextures(){let{textureSize:e,format:t}=this.state;this.setState({weightsTexture:this.context.device.createTexture({...EQ,width:e,height:e,format:t}),maxWeightsTexture:this.context.device.createTexture({...EQ,width:1,height:1,format:t})})}_setupAttributes(){this.getAttributeManager().add({positions:{size:3,type:`float64`,accessor:`getPosition`},weights:{size:1,accessor:`getWeight`}}),this.setState({positionAttributeName:`positions`})}_setupTextureParams(){let{device:e}=this.context,{weightsTextureSize:t}=this.props,n=Math.min(t,e.limits.maxTextureDimension2D),r=AQ.every(t=>e.features.has(t)),i=r?`rgba32float`:`rgba8unorm`,a=r?1:1/255;this.setState({textureSize:n,format:i,weightsScale:a}),r||IP.warn(`HeatmapLayer: ${this.id} rendering to float texture not supported, falling back to low precision format`)()}_createWeightsTransform(e){let{weightsTransform:t}=this.state,{weightsTexture:n}=this.state,r=this.getAttributeManager();t?.destroy(),t=new lW(this.context.device,{id:`${this.id}-weights-transform`,...e,bufferLayout:r.getBufferLayouts(),vertexCount:1,targetTexture:n,parameters:{depthWriteEnabled:!1,blend:!0,blendColorOperation:`add`,blendColorSrcFactor:`one`,blendColorDstFactor:`one`,blendAlphaSrcFactor:`one`,blendAlphaDstFactor:`one`},topology:`point-list`,modules:[...e.modules,CQ]}),this.setState({weightsTransform:t})}_setupResources(){this._createTextures();let{device:e}=this.context,{textureSize:t,weightsTexture:n,maxWeightsTexture:r}=this.state,i=this.getShaders({vs:yQ,fs:bQ});this._createWeightsTransform(i);let a=this.getShaders({vs:xQ,fs:SQ,modules:[wQ]}),o=new lW(e,{id:`${this.id}-max-weights-transform`,targetTexture:r,...a,vertexCount:t*t,topology:`point-list`,parameters:{depthWriteEnabled:!1,blend:!0,blendColorOperation:`max`,blendAlphaOperation:`max`,blendColorSrcFactor:`one`,blendColorDstFactor:`one`,blendAlphaSrcFactor:`one`,blendAlphaDstFactor:`one`}}),s={inTexture:n,textureSize:t};o.model.shaderInputs.setProps({maxWeight:s}),this.setState({weightsTexture:n,maxWeightsTexture:r,maxWeightTransform:o,zoom:null,triPositionBuffer:e.createBuffer({byteLength:48}),triTexCoordBuffer:e.createBuffer({byteLength:48})})}updateShaders(e){this._createWeightsTransform({vs:yQ,fs:bQ,...e})}_updateMaxWeightValue(){let{maxWeightTransform:e}=this.state;e.run({parameters:{viewport:[0,0,1,1]},clearColor:[0,0,0,0]})}_updateBounds(e=!1){let{viewport:t}=this.context,n=[t.unproject([0,0]),t.unproject([t.width,0]),t.unproject([0,t.height]),t.unproject([t.width,t.height])].map(e=>e.map(Math.fround)),r=aQ(n),i={visibleWorldBounds:r,viewportCorners:n},a=!1;if(e||!this.state.worldBounds||!oQ(this.state.worldBounds,r)){let e=this._worldToCommonBounds(r),t=this._commonToWorldBounds(e);this.props.coordinateSystem===`lnglat`&&(t[1]=Math.max(t[1],-85.051129),t[3]=Math.min(t[3],85.051129),t[0]=Math.max(t[0],-360),t[2]=Math.min(t[2],360));let n=this._worldToCommonBounds(t);i.worldBounds=t,i.normalizedCommonBounds=n,a=!0}return this.setState(i),a}_updateTextureRenderingBounds(){let{triPositionBuffer:e,triTexCoordBuffer:t,normalizedCommonBounds:n,viewportCorners:r}=this.state,{viewport:i}=this.context;e.write(cQ(r,3));let a=r.map(e=>uQ(i.projectPosition(e),n));t.write(cQ(a,2))}_updateColorTexture(e){let{colorRange:t}=e.props,{colorTexture:n}=this.state,r=NZ(t,!1,Uint8Array);n?.destroy(),n=this.context.device.createTexture({...EQ,data:r,width:t.length,height:1}),this.setState({colorTexture:n})}_updateWeightmap(){let{radiusPixels:e,colorDomain:t,aggregation:n}=this.props,{worldBounds:r,textureSize:i,weightsScale:a,weightsTexture:o}=this.state,s=this.state.weightsTransform;this.state.isWeightMapDirty=!1;let c=this._worldToCommonBounds(r,{useLayerCoordinateSystem:!0});if(t&&n===`SUM`){let{viewport:e}=this.context,n=e.distanceScales.metersPerUnit[2]*(c[2]-c[0])/i;this.state.colorDomain=[t[0]*n*a,t[1]*n*a]}else this.state.colorDomain=t||DQ;let l=this.getAttributeManager().getAttributes(),u=this.getModuleSettings();this._setModelAttributes(s.model,l),s.model.setVertexCount(this.getNumInstances());let d={radiusPixels:e,commonBounds:c,textureWidth:i,weightsScale:a,weightsTexture:o},{viewport:f,devicePixelRatio:p,coordinateSystem:m,coordinateOrigin:h}=u,{modelMatrix:g}=this.props;s.model.shaderInputs.setProps({project:{viewport:f,devicePixelRatio:p,modelMatrix:g,coordinateSystem:m,coordinateOrigin:h},weight:d}),s.run({parameters:{viewport:[0,0,i,i]},clearColor:[0,0,0,0]}),this._updateMaxWeightValue()}_debouncedUpdateWeightmap(e=!1){let{updateTimer:t}=this.state,{debounceTimeout:n}=this.props;e?(t=null,this._updateBounds(!0),this._updateTextureRenderingBounds(),this.setState({isWeightMapDirty:!0})):(this.setState({isWeightMapDirty:!1}),clearTimeout(t),t=setTimeout(this._debouncedUpdateWeightmap.bind(this,!0),n)),this.setState({updateTimer:t})}_worldToCommonBounds(e,t={}){let{useLayerCoordinateSystem:n=!1}=t,[r,i,a,o]=e,{viewport:s}=this.context,{textureSize:c}=this.state,{coordinateSystem:l}=this.props,u=n&&(l===`lnglat-offsets`||l===`meter-offsets`),d=u?s.projectPosition(this.props.coordinateOrigin):[0,0],f=c*TQ/s.scale,p,m;return n&&!u?(p=this.projectPosition([r,i,0]),m=this.projectPosition([a,o,0])):(p=s.projectPosition([r,i,0]),m=s.projectPosition([a,o,0])),lQ([p[0]-d[0],p[1]-d[1],m[0]-d[0],m[1]-d[1]],f,f)}_commonToWorldBounds(e){let[t,n,r,i]=e,{viewport:a}=this.context,o=a.unprojectPosition([t,n]),s=a.unprojectPosition([r,i]);return o.slice(0,2).concat(s.slice(0,2))}};MQ.layerName=`HeatmapLayer`,MQ.defaultProps=kQ;var NQ=class extends nZ{BASE_RADIUS=200;heatmap=[];heatmapData=[];heatmapLayer;overlay=null;constructor(e,t){super(e),this.heatmap=t}init(){this.initMap().then(()=>{let e=[];for(let t of this.heatmap)e.push({latitude:t.location.latitude,longitude:t.location.longitude});this.fitBounds(e),this.createHeatmap(),this.overlay=new yJ({layers:[this.heatmapLayer]}),this.overlay.setMap(this.map)})}createHeatmap(e=null){e&&(this.map=e),this.map&&(this.createHeatmapData(),this.createHeatmapLayer(this.BASE_RADIUS))}createHeatmapData(){this.heatmapData=this.heatmap.map(e=>({position:[e.location.longitude,e.location.latitude],weight:e.weight}))}zoomChanged(){if(!this.map)return;let e=this.map.getZoom();if(!this.heatmapLayer||!e)return;let t=this.BASE_RADIUS*2**(e-this.ZOOM);this.createHeatmapLayer(t),this.overlay.setProps({layers:[this.heatmapLayer]})}createHeatmapLayer(e){this.heatmapLayer=(0,t.markRaw)(new MQ({id:`heatmap-layer`,data:this.heatmapData,getPosition:e=>e.position,getWeight:e=>e.weight,colorRange:[[0,255,255,190],[0,0,191,190],[255,0,0,190]],radiusUnits:`meters`,radiusPixels:e,opacity:1,intensity:6,threshold:.03,weightsTextureSize:512,zoomAggregation:!1}))}},PQ=class extends nZ{COLOR_RANGE=[`#00FFFFBE`,`#0000BFBE`,`#FF0000BE`];hexagon=[];hexagonData=[];hexagonLayer;overlay=null;hasDialog=!1;aggregation=`weight`;getDrawingMode=()=>this.enableDrawingMode;constructor(e,t,n=!1,r=`weight`){super(e),this.hexagon=t,this.hasDialog=n,this.aggregation=r}init(e=null){this.initMap().then(()=>{e&&(this.COLOR_RANGE=e);let t=[];for(let e of this.hexagon)t.push({latitude:Number(e.location.latitude??0),longitude:Number(e.location.longitude??0)});this.fitBounds(t),this.createHexagon(),this.overlay=new yJ({layers:[this.hexagonLayer]}),this.overlay.setMap(this.map)})}createHexagon(e=null){e&&(this.map=e),this.map&&(this.createHexagonData(),this.createHexagonLayer())}createHexagonData(){this.hexagonData=[];for(let e of this.hexagon)this.hexagonData.push({position:[Number(e.location.longitude??0),Number(e.location.latitude??0)],weight:e.weight,info:e?.info})}getInfoDialog(){return this.infoDialog}clear(){this.setInfoDialog(null)}click(){this.clear()}dragstart(){this.clear()}zoomChanged(){this.clear()}createHexagonLayer(e=120){let n={id:`hexagon-layer`,data:this.hexagonData,getPosition:e=>e.position,radius:e,coverage:.99,extruded:!1,colorRange:this.COLOR_RANGE.map(e=>ix().convertHexColorToRGB(e,`array`)),opacity:.8,pickable:!0,parameters:{depthTest:!0},onClick:e=>{if(!this.hasDialog)return!1;if(!this.getDrawingMode())return this.setInfoDialog({info:{sumWeight:e?.object?.colorValue??0,count:e?.object?.count??0,...e.object?.info},x:e?.x,y:e?.y}),!0},onHover:e=>{if(!this.hasDialog)return;let t=this.map?.getDiv();t&&(this.getDrawingMode()||(e.object?(t.style.cursor=`pointer`,this.map?.setOptions({draggableCursor:`pointer`})):(t.style.cursor=`grab`,this.map?.setOptions({draggableCursor:`grab`}))))}};this.aggregation===`count`?n=Object.assign(n,{colorAggregation:`SUM`}):this.aggregation===`weight`&&(n=Object.assign(n,{getColorWeight:e=>e.weight})),this.hexagonLayer=(0,t.markRaw)(new iQ(n))}},FQ=class extends nZ{hexagon=[];markers=[];markersMap=null;hexagonMap=null;hasDialog=!1;mainMapRef=null;overlay=null;aggregation=`weight`;constructor(e,t,n,r=!1,i=`weight`){super(e),this.mainMapRef=e,this.hexagon=t,this.markers=n,this.hasDialog=r,this.aggregation=i}init(e=null){this.initMap().then(()=>{setTimeout(()=>{this.mainMapRef&&(this.fitBounds(this.markers),this.markersMap=new oZ(this.mainMapRef,this.markers,this.hasDialog),this.markersMap.getDrawingMode=()=>this.enableDrawingMode,this.hexagonMap=new PQ(this.mainMapRef,this.hexagon,!1,this.aggregation),e&&(this.markersMap.IMAGE_POINT=e),this.hexagonMap.createHexagon(this.map),this.markersMap.loadMarkers(this.map),this.render())},200)})}render(){if(this.overlay||(this.overlay=new yJ({}),this.overlay.setMap(this.map)),this.markersMap&&this.hexagonMap){let e=[this.hexagonMap.hexagonLayer,this.markersMap.iconLayer];this.overlay.setProps({layers:e})}}getInfoDialog(){return this.markersMap?.getInfoDialog()}clear(){this.map?.getDiv().style.cursor!==`pointer`&&this.markersMap?.setInfoDialog(null)}clearDialog(){this.markersMap?.setInfoDialog(null)}click(){this.clear()}dragstart(){this.clear()}zoomChanged(){this.markersMap?.setInfoDialog(null)}},IQ=class extends nZ{constructor(e,t=null,n=!1,r=!1){super(e),this.marker=t,this.hasMark=!0,this.isDraggable=n,this.has_autocomplete=r}init(){this.initMap().then()}},LQ=class extends nZ{constructor(e,t=!1,n=null){super(e),this.isDrawing=!0,this.has_autocomplete=t,this.drawCoordinates=n??``}init(){this.initMap().then()}},RQ={class:`topRight`},zQ={class:`middle`},BQ={class:`topLeft`},VQ={key:2,class:`d-flex justify-center align-center w-100 h-100`},HQ=(0,t.defineComponent)({__name:`EasyMap`,props:(0,t.mergeModels)({input:{},markers:{},polygons:{},heatmapPoints:{},type:{},hasDialog:{type:Boolean},imagePoint:{},colorCluster:{},isDraggable:{type:Boolean},hasAutocomplete:{type:Boolean},isDrawPolygon:{type:Boolean},height:{},hexagonColorRange:{},dynamicColorCluster:{}},{drawCoordinates:{},drawCoordinatesModifiers:{},mark:{},markModifiers:{}}),emits:(0,t.mergeModels)([`resetMap`],[`update:drawCoordinates`,`update:mark`]),setup(e,{expose:n,emit:r}){let i=e,a=Hs(),o=r,s=(0,t.useModel)(e,`drawCoordinates`),c=(0,t.useModel)(e,`mark`),l=(0,t.ref)(null),u=(0,t.ref)(null),d=e=>{u.value?.placeChanged(e)},f=()=>{u.value?.resetMap(),o(`resetMap`)};(0,t.watch)(()=>u.value?.marker,e=>{c.value=e},{deep:!0,immediate:!0}),(0,t.watch)(()=>u.value?.drawCoordinates,e=>{s.value=e});let p=(e=[])=>{u.value?.render(e)},m=e=>{u.value?.setZoomMarker(e)},h=e=>{u.value?.setMarker(e)},g=e=>{u.value?.setDrawablePolygon(e)},_=()=>{if(l.value)if(i.type===`clusters`&&i.markers)u.value=new rZ(l.value,i.markers,i.hasDialog,i.hasAutocomplete,i.isDrawPolygon,s.value,i.dynamicColorCluster),u.value.init(i.imagePoint??null,i.colorCluster??null);else if(i.type===`polygons`&&i.polygons)u.value=new iZ(l.value,i.polygons,i.hasDialog,i.hasAutocomplete,i.isDrawPolygon,s.value),u.value.init();else if(i.type===`clusters_polygons`&&i.polygons&&i.markers)u.value=new aZ(l.value,i.polygons,i.markers,i.hasDialog,i.hasAutocomplete,i.isDrawPolygon,s.value),u.value.init(i.imagePoint??null,i.colorCluster??null);else if(i.type===`clusters_markers`&&i.markers){let e=[],t=[];for(let n of i.markers)n.groupBy===`cluster`?t.push(n):e.push(n);u.value=new sZ(l.value,e,t,i.hasDialog,i.hasAutocomplete,i.isDrawPolygon,s.value),u.value.init(i.imagePoint??null,i.colorCluster??null)}else i.type===`markers`&&i.markers?(u.value=new oZ(l.value,i.markers,i.hasDialog,i.hasAutocomplete,i.isDrawPolygon,s.value),u.value.init(i.imagePoint??null)):i.type===`markers_polygons`&&i.polygons&&i.markers?(u.value=new cZ(l.value,i.polygons,i.markers,i.hasDialog,i.hasAutocomplete,i.isDrawPolygon,s.value),u.value.init(i.imagePoint??null)):i.type===`heatmap`&&i.heatmapPoints?(u.value=new NQ(l.value,i.heatmapPoints),u.value.init()):i.type===`hexagon`&&i.heatmapPoints?(u.value=new PQ(l.value,i.heatmapPoints,i.hasDialog),u.value.init(i.hexagonColorRange??null)):i.type===`hexagon_markers`&&i.heatmapPoints&&i.markers?(u.value=new FQ(l.value,i.heatmapPoints,i.markers,i.hasDialog),u.value.init()):i.type===`edit_mark`?(u.value=new IQ(l.value,c.value??null,i.isDraggable,i.hasAutocomplete),u.value.init()):i.type===`draw_polygon`&&(u.value=new LQ(l.value,i.hasAutocomplete,s.value),u.value.init())};return(0,t.onMounted)(_),n({setDrawablePolygon:g,setEditableMarker:h,render:p,init:_,setZoomMarker:m}),(n,r)=>{let o=(0,t.resolveComponent)(`v-icon`),s=(0,t.resolveComponent)(`v-btn`),c=(0,t.resolveComponent)(`v-btn-group`),p=(0,t.resolveComponent)(`v-chip`),m=(0,t.resolveComponent)(`v-card-text`),h=(0,t.resolveComponent)(`v-card`);return(0,t.openBlock)(),(0,t.createBlock)(h,{class:`cardMap w-100 h-100`,tile:``},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(m,{class:`h-100`},{default:(0,t.withCtx)(()=>[u.value?.hasAutocomplete()?((0,t.openBlock)(),(0,t.createBlock)(ux,{key:0,label:e.input.label,options:e.input.options,onPlace_changed:d,onResetMap:f},null,8,[`label`,`options`])):(0,t.createCommentVNode)(``,!0),u.value?.getErrorGPUDisabled()?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,VQ,[(0,t.createVNode)(p,{id:`map`,color:`error`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(o,{class:`mr-2`},{default:(0,t.withCtx)(()=>[...r[5]||=[(0,t.createTextVNode)(`icon-gpu`,-1)]]),_:1}),(0,t.createTextVNode)(` `+(0,t.toDisplayString)((0,t.unref)(a).t(`coverage.gpu_acceleration_error`)),1)]),_:1})])):((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:1,class:`map_container`,style:(0,t.normalizeStyle)(`height: ${e.height??`100%`}`)},[(0,t.createElementVNode)(`div`,{id:`map`,ref_key:`mapRef`,ref:l,class:`w-100 h-100`},null,512),(0,t.createElementVNode)(`div`,RQ,[(0,t.renderSlot)(n.$slots,`topRight`)]),(0,t.createElementVNode)(`div`,zQ,[u.value?.isDrawing?((0,t.openBlock)(),(0,t.createBlock)(c,{key:0,class:`buttons`,color:`white`,density:`compact`,rounded:`pill`,divided:``},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(s,{class:`pe-2 my-1`,density:`compact`,color:u.value?.enableDrawingMode?`white`:`primary`,onClick:r[0]||=e=>u.value?.setDrawMode(!1)},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(o,null,{default:(0,t.withCtx)(()=>[...r[3]||=[(0,t.createTextVNode)(`icon-hand-grab`,-1)]]),_:1})]),_:1},8,[`color`]),(0,t.createVNode)(s,{class:`pe-2 my-1`,density:`compact`,color:u.value?.enableDrawingMode?`primary`:`white`,onClick:r[1]||=e=>u.value?.setDrawMode(!0)},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(o,null,{default:(0,t.withCtx)(()=>[...r[4]||=[(0,t.createTextVNode)(`icon-line-squiggle`,-1)]]),_:1})]),_:1},8,[`color`])]),_:1})):(0,t.createCommentVNode)(``,!0)]),(0,t.createElementVNode)(`div`,BQ,[(0,t.renderSlot)(n.$slots,`topLeft`)]),(0,t.createVNode)(s,{class:`fullscreen_btn`,color:`white`,onClick:r[2]||=e=>u.value?.toggleFullscreen()},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`i`,{class:(0,t.normalizeClass)(u.value?.getIsFullscreen()?`icon-shrink`:`icon-maximize`)},null,2)]),_:1}),i.hasDialog&&u.value?.getInfoDialog()?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,class:`info-modal`,style:(0,t.normalizeStyle)({left:u.value.getInfoDialog().x+`px`,top:u.value.getInfoDialog().y+`px`})},[(0,t.renderSlot)(n.$slots,`dialog`,{info:u.value.getInfoDialog()?.info,closeDialogCb:()=>u.value.clearDialog()})],4)):(0,t.createCommentVNode)(``,!0)],4))]),_:3})]),_:3})}}}),UQ={class:`labelMore`},WQ=(0,t.defineComponent)({__name:`MenuActions`,props:{menuButtons:{}},setup(e){return(n,r)=>{let i=(0,t.resolveComponent)(`v-icon`),a=(0,t.resolveComponent)(`v-btn`),o=(0,t.resolveComponent)(`v-list-item-title`),s=(0,t.resolveComponent)(`v-list-item`),c=(0,t.resolveComponent)(`v-list`),l=(0,t.resolveComponent)(`v-menu`);return(0,t.openBlock)(),(0,t.createBlock)(l,null,{activator:(0,t.withCtx)(({props:n})=>[(0,t.createVNode)(a,(0,t.mergeProps)({class:`ellipsis_btn`},n,{color:e.menuButtons?.color??`error`,variant:`flat`}),{default:(0,t.withCtx)(()=>[e.menuButtons?.icon?((0,t.openBlock)(),(0,t.createElementBlock)(`i`,{key:0,class:(0,t.normalizeClass)(e.menuButtons?.icon)},null,2)):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`span`,UQ,(0,t.toDisplayString)(e.menuButtons.label),1),(0,t.createVNode)(i,null,{default:(0,t.withCtx)(()=>[...r[0]||=[(0,t.createTextVNode)(`icon-chevron-down`,-1)]]),_:1})]),_:1},16,[`color`])]),default:(0,t.withCtx)(()=>[(0,t.createVNode)(c,null,{default:(0,t.withCtx)(()=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.menuButtons.items,(e,n)=>((0,t.openBlock)(),(0,t.createBlock)(s,{key:n,value:n,onClick:t=>e.onClick()},{prepend:(0,t.withCtx)(()=>[e?.icon?((0,t.openBlock)(),(0,t.createBlock)(i,{key:0},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.icon),1)]),_:2},1024)):(0,t.createCommentVNode)(``,!0)]),default:(0,t.withCtx)(()=>[(0,t.createVNode)(o,null,{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.label),1)]),_:2},1024)]),_:2},1032,[`value`,`onClick`]))),128))]),_:1})]),_:1})}}}),GQ={class:`labelMore`},KQ={class:`labelMore`},qQ=(0,t.defineComponent)({__name:`EasyForm`,props:{form:{}},setup(e,{expose:n}){let r=e,i=(0,t.ref)(null),a=(0,t.ref)(null),o=(0,t.ref)(null),s=(0,t.ref)(!1);async function c(){if(!i.value||s.value||!(await(a?.value)?.validate())?.valid)return null;let e={};i.value.inputs.forEach(t=>{i.value&&i.value.binder[t.key]&&i.value.binder[t.key].length!==0&&Object.assign(e,{[t.key]:i.value.binder[t.key]})}),i.value.submit&&typeof i.value.submit.onSubmit==`function`&&i.value.submit.onSubmit(e)}return(0,t.onBeforeMount)(()=>{i.value=r.form,i.value&&i.value.binder&&Object.keys(i.value.binder).map(e=>{i.value&&i.value.binder[e]&&!Array.isArray(i.value.binder[e])&&typeof i.value.binder[e]==`object`&&(isNaN(i.value.binder[e].latitude)||isNaN(i.value.binder[e].longitude))&&(i.value.binder.value[e]={latitude:0,longitude:0})})}),n({formref:a,loading:s}),(e,n)=>{let r=(0,t.resolveComponent)(`v-card-title`),l=(0,t.resolveComponent)(`v-card-subtitle`),u=(0,t.resolveComponent)(`v-col`),d=(0,t.resolveComponent)(`v-row`),f=(0,t.resolveComponent)(`v-card-text`),p=(0,t.resolveComponent)(`v-btn`),m=(0,t.resolveComponent)(`v-card-actions`),h=(0,t.resolveComponent)(`v-card`),g=(0,t.resolveComponent)(`v-form`),_=(0,t.resolveComponent)(`v-container`);return(0,t.openBlock)(),(0,t.createBlock)(_,{class:`mainform`,height:e.$attrs.height??`100%`},{default:(0,t.withCtx)(()=>[i.value&&i.value.binder?((0,t.openBlock)(),(0,t.createBlock)(g,{key:0,ref_key:`formref`,ref:a},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(h,{elevation:i.value?.elevation??1,loading:s.value},{default:(0,t.withCtx)(()=>[i.value.title?((0,t.openBlock)(),(0,t.createBlock)(r,{key:0},{default:(0,t.withCtx)(()=>[i.value.icon?((0,t.openBlock)(),(0,t.createElementBlock)(`i`,{key:0,class:(0,t.normalizeClass)(i.value.icon)},null,2)):(0,t.createCommentVNode)(``,!0),(0,t.createTextVNode)(` `+(0,t.toDisplayString)(i.value.title),1)]),_:1})):(0,t.createCommentVNode)(``,!0),i.value.subtitle?((0,t.openBlock)(),(0,t.createBlock)(l,{key:1},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(i.value.subtitle),1)]),_:1})):(0,t.createCommentVNode)(``,!0),(0,t.createVNode)(f,{class:`h-100`},{default:(0,t.withCtx)(()=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(i.value.inputs,(n,r)=>((0,t.openBlock)(),(0,t.createBlock)(d,{key:r},{default:(0,t.withCtx)(()=>[n.type===`input`?((0,t.openBlock)(),(0,t.createBlock)(u,{key:0},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(Ap,{modelValue:i.value.binder[n.key],"onUpdate:modelValue":e=>i.value.binder[n.key]=e,input:n,onSubmit:c},null,8,[`modelValue`,`onUpdate:modelValue`,`input`])]),_:2},1024)):(0,t.createCommentVNode)(``,!0),n.type===`textarea`?((0,t.openBlock)(),(0,t.createBlock)(u,{key:1},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(jp,{modelValue:i.value.binder[n.key],"onUpdate:modelValue":e=>i.value.binder[n.key]=e,input:n,onSubmit:c},null,8,[`modelValue`,`onUpdate:modelValue`,`input`])]),_:2},1024)):(0,t.createCommentVNode)(``,!0),n.type===`number`?((0,t.openBlock)(),(0,t.createBlock)(u,{key:2},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(Mp,{modelValue:i.value.binder[n.key],"onUpdate:modelValue":e=>i.value.binder[n.key]=e,input:n,onSubmit:c},null,8,[`modelValue`,`onUpdate:modelValue`,`input`])]),_:2},1024)):(0,t.createCommentVNode)(``,!0),n.type===`password`||n.type===`password-eye`?((0,t.openBlock)(),(0,t.createBlock)(u,{key:3},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(Fp,{modelValue:i.value.binder[n.key],"onUpdate:modelValue":e=>i.value.binder[n.key]=e,input:n,"onUpdate:type":e=>n.type=e,onSubmit:c},null,8,[`modelValue`,`onUpdate:modelValue`,`input`,`onUpdate:type`])]),_:2},1024)):(0,t.createCommentVNode)(``,!0),n.type===`checkbox`?((0,t.openBlock)(),(0,t.createBlock)(u,{key:4},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(Ip,{modelValue:i.value.binder[n.key],"onUpdate:modelValue":e=>i.value.binder[n.key]=e,input:n},null,8,[`modelValue`,`onUpdate:modelValue`,`input`])]),_:2},1024)):(0,t.createCommentVNode)(``,!0),n.type===`selects`?((0,t.openBlock)(),(0,t.createBlock)(u,{key:5},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(Lp,{modelValue:i.value.binder[n.key],"onUpdate:modelValue":e=>i.value.binder[n.key]=e,input:n},null,8,[`modelValue`,`onUpdate:modelValue`,`input`])]),_:2},1024)):(0,t.createCommentVNode)(``,!0),n.type===`selectsAutoComplete`?((0,t.openBlock)(),(0,t.createBlock)(u,{key:6},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(Rp,{modelValue:i.value.binder[n.key],"onUpdate:modelValue":e=>i.value.binder[n.key]=e,input:n},null,8,[`modelValue`,`onUpdate:modelValue`,`input`])]),_:2},1024)):(0,t.createCommentVNode)(``,!0),n.type===`selectsAutoCompleteChips`?((0,t.openBlock)(),(0,t.createBlock)(u,{key:7},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(zp,{modelValue:i.value.binder[n.key],"onUpdate:modelValue":e=>i.value.binder[n.key]=e,input:n},null,8,[`modelValue`,`onUpdate:modelValue`,`input`])]),_:2},1024)):(0,t.createCommentVNode)(``,!0),n.type===`date`?((0,t.openBlock)(),(0,t.createBlock)(u,{key:8},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(ax,{modelValue:i.value.binder[n.key],"onUpdate:modelValue":e=>i.value.binder[n.key]=e,input:n},null,8,[`modelValue`,`onUpdate:modelValue`,`input`])]),_:2},1024)):(0,t.createCommentVNode)(``,!0),n.type===`rangeDate`?((0,t.openBlock)(),(0,t.createBlock)(u,{key:9},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(ox,{modelValue:i.value.binder[n.key],"onUpdate:modelValue":e=>i.value.binder[n.key]=e,input:n},null,8,[`modelValue`,`onUpdate:modelValue`,`input`])]),_:2},1024)):(0,t.createCommentVNode)(``,!0),n.type===`file`?((0,t.openBlock)(),(0,t.createBlock)(u,{key:10,eager:``},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(cx,{modelValue:i.value.binder[n.key],"onUpdate:modelValue":e=>i.value.binder[n.key]=e,input:n},null,8,[`modelValue`,`onUpdate:modelValue`,`input`])]),_:2},1024)):(0,t.createCommentVNode)(``,!0),n.type===`mapPin`?((0,t.openBlock)(),(0,t.createBlock)(u,{key:11,class:`h-100`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(HQ,(0,t.mergeProps)({ref_for:!0,ref_key:`mapRef`,ref:o,mark:i.value.binder[n.key],"onUpdate:mark":e=>i.value.binder[n.key]=e,type:`edit_mark`,input:n},{ref_for:!0},{...n.options.map}),null,16,[`mark`,`onUpdate:mark`,`input`])]),_:2},1024)):(0,t.createCommentVNode)(``,!0),n.type===`mapDraw`?((0,t.openBlock)(),(0,t.createBlock)(u,{key:12,class:`h-100`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(HQ,(0,t.mergeProps)({ref_for:!0,ref_key:`mapRef`,ref:o,"draw-coordinates":i.value.binder[n.key],"onUpdate:drawCoordinates":e=>i.value.binder[n.key]=e,type:`draw_polygon`,input:n},{ref_for:!0},{...n.options.map}),null,16,[`draw-coordinates`,`onUpdate:drawCoordinates`,`input`])]),_:2},1024)):(0,t.createCommentVNode)(``,!0),n.type===`slot`?((0,t.openBlock)(),(0,t.createBlock)(u,{key:13},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,n.key,{items:i.value.binder[n.key],options:{...n?.options}})]),_:2},1024)):(0,t.createCommentVNode)(``,!0)]),_:2},1024))),128))]),_:3}),i.value.button||i.value.menuButtons||i.value.submit?((0,t.openBlock)(),(0,t.createBlock)(m,{key:2},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(d,{class:`p-4`},{default:(0,t.withCtx)(()=>[i.value.button?((0,t.openBlock)(),(0,t.createBlock)(u,{key:0,style:{display:`flex`,"justify-content":`start`}},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(p,{class:`ellipsis_btn`,color:i.value.button?.color??`error`,variant:`flat`,loading:!!i.value.button?.loading,disabled:!!i.value.button?.disabled,onClick:n[0]||=e=>i.value.button.onClick()},{default:(0,t.withCtx)(()=>[i.value.button.icon?((0,t.openBlock)(),(0,t.createElementBlock)(`i`,{key:0,class:(0,t.normalizeClass)(i.value.button.icon)},null,2)):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`span`,GQ,(0,t.toDisplayString)(i.value.button.label),1)]),_:1},8,[`color`,`loading`,`disabled`])]),_:1})):(0,t.createCommentVNode)(``,!0),i.value.menuButtons?((0,t.openBlock)(),(0,t.createBlock)(u,{key:1,style:{display:`flex`,"justify-content":`start`}},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(WQ,{"menu-buttons":i.value.menuButtons},null,8,[`menu-buttons`])]),_:1})):(0,t.createCommentVNode)(``,!0),(0,t.createVNode)(u,{style:{display:`flex`,"justify-content":`end`}},{default:(0,t.withCtx)(()=>[i.value.submit?((0,t.openBlock)(),(0,t.createBlock)(p,{key:0,class:`ellipsis_btn`,loading:s.value,color:i.value.submit?.color??`success`,variant:`flat`,onClick:c},{default:(0,t.withCtx)(()=>[i.value.submit.icon?((0,t.openBlock)(),(0,t.createElementBlock)(`i`,{key:0,class:(0,t.normalizeClass)(i.value.submit.icon)},null,2)):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`span`,KQ,(0,t.toDisplayString)(i.value.submit.label??``),1)]),_:1},8,[`loading`,`color`])):(0,t.createCommentVNode)(``,!0)]),_:1})]),_:1})]),_:1})):(0,t.createCommentVNode)(``,!0)]),_:3},8,[`elevation`,`loading`])]),_:3},512)):(0,t.createCommentVNode)(``,!0)]),_:3},8,[`height`])}}}),JQ=()=>({run:()=>{setInterval(()=>{document.querySelectorAll(`.v-icon`)?.forEach(e=>{[...e.classList].some(e=>e.startsWith(`icon-`)||e.startsWith(`iconapp-`))&&e.classList.remove(`mdi`)})},700)}});function YQ(){return{submitHeaders:(e,t)=>{let n=e.map((e,t)=>({value:e.value,hidden:!!e.hidden,order:t}));window.localStorage.setItem(`dataTableHeaders_${t}`,JSON.stringify(n))},loadHeaders:(e,t)=>{let n=window.localStorage.getItem(`dataTableHeaders_${t}`);if(n)try{return JSON.parse(n).forEach(t=>{let n=e.findIndex(e=>e.value===t.value);n!==-1&&e[n]&&(e[n].hidden=t.hidden,Object.assign(e[n],{order:t.order}))}),e.sort((e,t)=>e?.order-t?.order),e}catch(e){return console.error(e),window.localStorage.removeItem(`dataTableHeaders_${t}`),[]}else return[]}}}var XQ={style:{width:`100%`}},ZQ=(0,t.defineComponent)({__name:`Filters`,props:{filters:{}},emits:[`search`],setup(e,{emit:n}){let r=n,i=(0,t.ref)(!1),a=Hs(),o=(0,t.ref)([]),s=(0,t.ref)([]),c=e,l={type:`rangeDate`,key:`inputRangDateTimePicker`,label:``,options:{enableTime:!0}},u={type:`rangeDate`,key:`inputRangDatePicker`,label:``,options:{enableTime:!1}};function d(e,t){return e===`comparison`&&typeof t==`object`&&!!t&&`symbol`in t&&`value`in t}function f(e){return e===`input`||e===`inArray`||e===`likeInArray`}let p=()=>{o.value=[],c.filters.forEach(e=>{let t=null;(d(e.type,e.value)||(e.type===`date`||e.type===`dateTime`)&&Array.isArray(e.value)&&e.value.length!==0||(e.type===`input`||e.type===`inArray`||e.type===`likeInArray`||e.type===`selects`)&&e.value)&&(t=e.value),t&&o.value.push({type:e.type,column:e.column,value:t})}),r(`search`,o.value),i.value=!1},m=()=>{i.value=!1,o.value=[],r(`search`,o.value),c.filters.forEach(e=>{e.type===`comparison`?e.value={value:0,symbol:`<`}:e.type===`date`||e.type===`dateTime`?e.value=[]:e.value&&=``})};return(0,t.onMounted)(()=>{s.value=c.filters}),(e,n)=>{let r=(0,t.resolveComponent)(`v-btn`),h=(0,t.resolveComponent)(`v-col`),g=(0,t.resolveComponent)(`v-row`),_=(0,t.resolveComponent)(`v-card-title`),v=(0,t.resolveComponent)(`v-text-field`),y=(0,t.resolveComponent)(`v-select`),b=(0,t.resolveComponent)(`v-card-text`),x=(0,t.resolveComponent)(`v-card-actions`),S=(0,t.resolveComponent)(`v-card`),C=(0,t.resolveComponent)(`v-dialog`);return(0,t.openBlock)(),(0,t.createElementBlock)(`div`,XQ,[o.value.length===0?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createBlock)(r,{key:0,color:`primary`,width:`45%`,class:`mr-2`,onClick:m},{default:(0,t.withCtx)(()=>[...n[4]||=[(0,t.createElementVNode)(`i`,{class:`icon icon-funnel-x`},null,-1)]]),_:1})),(0,t.createVNode)(r,(0,t.mergeProps)(c,{color:`primary`,width:o.value.length===0?`100%`:`50%`,onClick:n[0]||=e=>i.value=!0}),{default:(0,t.withCtx)(()=>[n[5]||=(0,t.createElementVNode)(`i`,{class:`icon icon-funnel mr-1`},null,-1),(0,t.createTextVNode)(` `+(0,t.toDisplayString)((0,t.unref)(a).t(`table.filters`)),1)]),_:1},16,[`width`]),(0,t.createVNode)(C,{modelValue:i.value,"onUpdate:modelValue":n[3]||=e=>i.value=e,width:`600`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(S,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(_,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(g,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(h,{cols:`11`},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)((0,t.unref)(a).t(`table.filters`)),1)]),_:1}),(0,t.createVNode)(h,{cols:`1`,class:`d-flex justify-end`},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`i`,{class:`icon icon-x`,style:{cursor:`pointer`},onClick:n[1]||=e=>i.value=!1})]),_:1})]),_:1})]),_:1}),(0,t.createVNode)(b,null,{default:(0,t.withCtx)(()=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(s.value,(e,n)=>((0,t.openBlock)(),(0,t.createBlock)(g,{key:n},{default:(0,t.withCtx)(()=>[f(e.type)?((0,t.openBlock)(),(0,t.createBlock)(h,{key:0,cols:`12`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(v,{modelValue:s.value[n].value,"onUpdate:modelValue":e=>s.value[n].value=e,label:e.label,"hide-details":``,variant:`underlined`},null,8,[`modelValue`,`onUpdate:modelValue`,`label`])]),_:2},1024)):(0,t.createCommentVNode)(``,!0),e.type===`selects`?((0,t.openBlock)(),(0,t.createBlock)(h,{key:1,cols:`12`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(y,{modelValue:s.value[n].value,"onUpdate:modelValue":e=>s.value[n].value=e,label:e.label,items:e.items,"hide-details":``,variant:`underlined`},null,8,[`modelValue`,`onUpdate:modelValue`,`label`,`items`])]),_:2},1024)):(0,t.createCommentVNode)(``,!0),e.type===`date`&&Array.isArray(s.value[n].value)?((0,t.openBlock)(),(0,t.createBlock)(h,{key:2,cols:`12`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(ox,{modelValue:s.value[n].value,"onUpdate:modelValue":e=>s.value[n].value=e,input:{...u,label:e?.label??``}},null,8,[`modelValue`,`onUpdate:modelValue`,`input`])]),_:2},1024)):(0,t.createCommentVNode)(``,!0),e.type===`dateTime`&&Array.isArray(s.value[n].value)?((0,t.openBlock)(),(0,t.createBlock)(h,{key:3,cols:`12`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(ox,{modelValue:s.value[n].value,"onUpdate:modelValue":e=>s.value[n].value=e,input:{...l,label:e?.label??``}},null,8,[`modelValue`,`onUpdate:modelValue`,`input`])]),_:2},1024)):(0,t.createCommentVNode)(``,!0),d(e.type,s.value[n].value)?((0,t.openBlock)(),(0,t.createBlock)(h,{key:4,cols:`12`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(g,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(h,{cols:`2`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(y,{modelValue:s.value[n].value.symbol,"onUpdate:modelValue":e=>s.value[n].value.symbol=e,"hide-details":``,items:[`<`,`<=`,`=`,`>`,`>=`],variant:`underlined`},null,8,[`modelValue`,`onUpdate:modelValue`])]),_:2},1024),(0,t.createVNode)(h,{cols:`10`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(v,{modelValue:s.value[n].value.value,"onUpdate:modelValue":e=>s.value[n].value.value=e,modelModifiers:{number:!0},type:`number`,"hide-details":``,label:e.label,variant:`underlined`},null,8,[`modelValue`,`onUpdate:modelValue`,`label`])]),_:2},1024)]),_:2},1024)]),_:2},1024)):(0,t.createCommentVNode)(``,!0)]),_:2},1024))),128))]),_:1}),(0,t.createVNode)(x,{class:`ma-2`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(g,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(h,{class:`d-flex justify-start`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(r,{color:`error`,variant:`flat`,onClick:n[2]||=e=>i.value=!1},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)((0,t.unref)(a).t(`table.cancel`)),1)]),_:1})]),_:1}),(0,t.createVNode)(h,{class:`d-flex justify-end`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(r,{color:`success`,variant:`flat`,onClick:p},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)((0,t.unref)(a).t(`table.submit`)),1)]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,[`modelValue`])])}}}),QQ=(0,t.defineComponent)({__name:`DialogColumns`,props:{headers:{}},emits:[`submit`],setup(e,{emit:n}){let r=e,i=Hs(),a=n,o=(0,t.ref)([]),s=(0,t.ref)(!1),c=(0,t.ref)(0),l=(0,t.ref)(0),u=(0,t.ref)(0),d=(0,t.ref)(0),f=(0,t.ref)(0),p=(0,t.ref)(0),m=(0,t.ref)(null),h=(e,t)=>{u.value=e.clientX,d.value=e.clientY;let n=document.querySelector(`.list_draggable`)?.getBoundingClientRect();f.value=e.clientX-(n?.left??0)-20,p.value=e.clientY-(n?.top??0)-20,m.value=t},g=(e,t)=>{if(e.preventDefault(),m.value&&m.value!==t){let e=o.value.findIndex(e=>e.value===t.value),n=o.value.findIndex(e=>e.value===m.value?.value);e!==-1&&n!==-1&&(o.value.splice(n,1),o.value.splice(e,0,m.value))}m.value=null},_=e=>{m.value&&(c.value=e.clientX-u.value+f.value,l.value=e.clientY-d.value+p.value)},v=()=>{a(`submit`,o.value.map(e=>(e.hidden=!e?.show,e))),s.value=!1};return(0,t.onBeforeMount)(()=>{o.value=[...r.headers],o.value=o.value.map(e=>(Object.assign(e,{show:!e?.hidden}),e))}),(e,n)=>{let r=(0,t.resolveComponent)(`v-btn`),a=(0,t.resolveComponent)(`v-col`),u=(0,t.resolveComponent)(`v-row`),d=(0,t.resolveComponent)(`v-card-title`),f=(0,t.resolveComponent)(`v-switch`),p=(0,t.resolveComponent)(`v-list-item`),y=(0,t.resolveComponent)(`v-list`),b=(0,t.resolveComponent)(`v-card-text`),x=(0,t.resolveComponent)(`v-card-actions`),S=(0,t.resolveComponent)(`v-card`),C=(0,t.resolveComponent)(`v-dialog`);return(0,t.openBlock)(),(0,t.createBlock)(C,{modelValue:s.value,"onUpdate:modelValue":n[2]||=e=>s.value=e,"max-width":`450`},{activator:(0,t.withCtx)(({props:e})=>[(0,t.createVNode)(r,(0,t.mergeProps)({elevation:`0`},e,{style:{"margin-left":`-14px`},class:`text-md-body-large`}),{default:(0,t.withCtx)(()=>[n[3]||=(0,t.createElementVNode)(`i`,{class:`icon icon-columns-3 mr-1`},null,-1),(0,t.createTextVNode)(` `+(0,t.toDisplayString)((0,t.unref)(i).t(`table.columns`)),1)]),_:1},16)]),default:(0,t.withCtx)(()=>[(0,t.createVNode)(S,{class:`list_draggable`,onMousemove:_},{default:(0,t.withCtx)(()=>[m.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,class:`floating-drag-item`,style:(0,t.normalizeStyle)(`top:${l.value}px;left:${c.value}px`)},(0,t.toDisplayString)(m.value.title),5)):(0,t.createCommentVNode)(``,!0),(0,t.createVNode)(d,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(u,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(a,{cols:`11`},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)((0,t.unref)(i).t(`table.columns`)),1)]),_:1}),(0,t.createVNode)(a,{cols:`1`,class:`d-flex justify-end`},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`i`,{class:`icon icon-x`,style:{cursor:`pointer`},onClick:n[0]||=e=>s.value=!1})]),_:1})]),_:1})]),_:1}),(0,t.createVNode)(b,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(y,{style:{background:`transparent`}},{default:(0,t.withCtx)(()=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(o.value,(e,r)=>((0,t.openBlock)(),(0,t.createBlock)(p,{key:r,class:`draggable-item`,onMousedown:(0,t.withModifiers)(t=>h(t,e),[`left`]),onMouseup:(0,t.withModifiers)(t=>g(t,e),[`left`])},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(u,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(a,{cols:`2`,class:`d-flex justify-content-start align-items-center`,style:{"margin-top":`-15px`}},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(f,{modelValue:e.show,"onUpdate:modelValue":t=>e.show=t,"hide-details":``,color:`primary`},null,8,[`modelValue`,`onUpdate:modelValue`])]),_:2},1024),(0,t.createVNode)(a,{cols:`7`,class:`d-flex align-items-center`},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.title),1)]),_:2},1024),(0,t.createVNode)(a,{cols:`3`,class:`d-flex justify-content-end align-items-center`},{default:(0,t.withCtx)(()=>[...n[4]||=[(0,t.createElementVNode)(`i`,{class:`icon icon-grip-horizontal`},null,-1)]]),_:1})]),_:2},1024)]),_:2},1032,[`onMousedown`,`onMouseup`]))),128))]),_:1})]),_:1}),(0,t.createVNode)(x,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(u,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(a,{class:`d-flex justify-start`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(r,{color:`error`,onClick:n[1]||=e=>s.value=!1},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)((0,t.unref)(i).t(`table.cancel`)),1)]),_:1})]),_:1}),(0,t.createVNode)(a,{class:`d-flex justify-end`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(r,{color:`success`,onClick:v},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)((0,t.unref)(i).t(`table.submit`)),1)]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,[`modelValue`])}}}),$Q=l(((e,t)=>{(function(n,r){typeof e==`object`&&typeof t==`object`?t.exports=r():typeof define==`function`&&define.amd?define([],r):typeof e==`object`?e.printJS=r():n.printJS=r()})(window,function(){return(function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){typeof Symbol<`u`&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:`Module`}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(t&1&&(e=n(e)),t&8||t&4&&typeof e==`object`&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),t&2&&typeof e!=`string`)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,`a`,t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p=``,n(n.s=0)})({"./src/index.js":(function(e,t,n){"use strict";n.r(t),n(`./src/sass/index.scss`);var r=n(`./src/js/init.js`).default.init;typeof window<`u`&&(window.printJS=r),t.default=r}),"./src/js/browser.js":(function(e,t,n){"use strict";n.r(t);var r={isFirefox:function(){return typeof InstallTrigger<`u`},isIE:function(){return navigator.userAgent.indexOf(`MSIE`)!==-1||!!document.documentMode},isEdge:function(){return!r.isIE()&&!!window.StyleMedia},isChrome:function(){return!!(arguments.length>0&&arguments[0]!==void 0?arguments[0]:window).chrome},isSafari:function(){return Object.prototype.toString.call(window.HTMLElement).indexOf(`Constructor`)>0||navigator.userAgent.toLowerCase().indexOf(`safari`)!==-1},isIOSChrome:function(){return navigator.userAgent.toLowerCase().indexOf(`crios`)!==-1}};t.default=r}),"./src/js/functions.js":(function(e,t,n){"use strict";n.r(t),n.d(t,`addWrapper`,function(){return o}),n.d(t,`capitalizePrint`,function(){return s}),n.d(t,`collectStyles`,function(){return c}),n.d(t,`addHeader`,function(){return u}),n.d(t,`cleanUp`,function(){return d}),n.d(t,`isRawHTML`,function(){return f});var r=n(`./src/js/modal.js`),i=n(`./src/js/browser.js`);function a(e){"@babel/helpers - typeof";return a=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},a(e)}function o(e,t){return`<div style="`+(`font-family:`+t.font+` !important; font-size: `+t.font_size+` !important; width:100%;`)+`">`+e+`</div>`}function s(e){return e.charAt(0).toUpperCase()+e.slice(1)}function c(e,t){for(var n=document.defaultView||window,r=``,i=n.getComputedStyle(e,``),a=0;a<i.length;a++)(t.targetStyles.indexOf(`*`)!==-1||t.targetStyle.indexOf(i[a])!==-1||l(t.targetStyles,i[a]))&&i.getPropertyValue(i[a])&&(r+=i[a]+`:`+i.getPropertyValue(i[a])+`;`);return r+=`max-width: `+t.maxWidth+`px !important; font-size: `+t.font_size+` !important;`,r}function l(e,t){for(var n=0;n<e.length;n++)if(a(t)===`object`&&t.indexOf(e[n])!==-1)return!0;return!1}function u(e,t){var n=document.createElement(`div`);if(f(t.header))n.innerHTML=t.header;else{var r=document.createElement(`h1`),i=document.createTextNode(t.header);r.appendChild(i),r.setAttribute(`style`,t.headerStyle),n.appendChild(r)}e.insertBefore(n,e.childNodes[0])}function d(e){e.showModal&&r.default.close(),e.onLoadingEnd&&e.onLoadingEnd(),(e.showModal||e.onLoadingStart)&&window.URL.revokeObjectURL(e.printable);var t=`mouseover`;(i.default.isChrome()||i.default.isFirefox())&&(t=`focus`),window.addEventListener(t,function n(){window.removeEventListener(t,n),e.onPrintDialogClose();var r=document.getElementById(e.frameId);r&&r.remove()})}function f(e){return RegExp(`<([A-Za-z][A-Za-z0-9]*)\\b[^>]*>(.*?)</\\1>`).test(e)}}),"./src/js/html.js":(function(e,t,n){"use strict";n.r(t);var r=n(`./src/js/functions.js`),i=n(`./src/js/print.js`);function a(e){"@babel/helpers - typeof";return a=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},a(e)}t.default={print:function(e,t){var n=s(e.printable)?e.printable:document.getElementById(e.printable);if(!n){window.console.error(`Invalid HTML element id: `+e.printable);return}e.printableElement=o(n,e),e.header&&(0,r.addHeader)(e.printableElement,e),i.default.send(e,t)}};function o(e,t){for(var n=e.cloneNode(),i=Array.prototype.slice.call(e.childNodes),a=0;a<i.length;a++)if(t.ignoreElements.indexOf(i[a].id)===-1){var s=o(i[a],t);n.appendChild(s)}switch(t.scanStyles&&e.nodeType===1&&n.setAttribute(`style`,(0,r.collectStyles)(e,t)),e.tagName){case`SELECT`:n.value=e.value;break;case`CANVAS`:n.getContext(`2d`).drawImage(e,0,0);break}return n}function s(e){return a(e)===`object`&&e&&(e instanceof HTMLElement||e.nodeType===1)}}),"./src/js/image.js":(function(e,t,n){"use strict";n.r(t);var r=n(`./src/js/functions.js`),i=n(`./src/js/print.js`),a=n(`./src/js/browser.js`);t.default={print:function(e,t){e.printable.constructor!==Array&&(e.printable=[e.printable]),e.printableElement=document.createElement(`div`),e.printable.forEach(function(t){var n=document.createElement(`img`);n.setAttribute(`style`,e.imageStyle),n.src=t,a.default.isFirefox()&&(n.src=n.src);var r=document.createElement(`div`);r.appendChild(n),e.printableElement.appendChild(r)}),e.header&&(0,r.addHeader)(e.printableElement,e),i.default.send(e,t)}}}),"./src/js/init.js":(function(e,t,n){"use strict";n.r(t);var r=n(`./src/js/browser.js`),i=n(`./src/js/modal.js`),a=n(`./src/js/pdf.js`),o=n(`./src/js/html.js`),s=n(`./src/js/raw-html.js`),c=n(`./src/js/image.js`),l=n(`./src/js/json.js`);function u(e){"@babel/helpers - typeof";return u=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},u(e)}var d=[`pdf`,`html`,`image`,`json`,`raw-html`];t.default={init:function(){var e={printable:null,fallbackPrintable:null,type:`pdf`,header:null,headerStyle:`font-weight: 300;`,maxWidth:800,properties:null,gridHeaderStyle:`font-weight: bold; padding: 5px; border: 1px solid #dddddd;`,gridStyle:`border: 1px solid lightgray; margin-bottom: -1px;`,showModal:!1,onError:function(e){throw e},onLoadingStart:null,onLoadingEnd:null,onPrintDialogClose:function(){},onIncompatibleBrowser:function(){},modalMessage:`Retrieving Document...`,frameId:`printJS`,printableElement:null,documentTitle:`Document`,targetStyle:[`clear`,`display`,`width`,`min-width`,`height`,`min-height`,`max-height`],targetStyles:[`border`,`box`,`break`,`text-decoration`],ignoreElements:[],repeatTableHeader:!0,css:null,style:null,scanStyles:!0,base64:!1,onPdfOpen:null,font:`TimesNewRoman`,font_size:`12pt`,honorMarginPadding:!0,honorColor:!1,imageStyle:`max-width: 100%;`},t=arguments[0];if(t===void 0)throw Error(`printJS expects at least 1 attribute.`);switch(u(t)){case`string`:e.printable=encodeURI(t),e.fallbackPrintable=e.printable,e.type=arguments[1]||e.type;break;case`object`:for(var n in e.printable=t.printable,e.fallbackPrintable=t.fallbackPrintable===void 0?e.printable:t.fallbackPrintable,e.fallbackPrintable=e.base64?`data:application/pdf;base64,${e.fallbackPrintable}`:e.fallbackPrintable,e)n===`printable`||n===`fallbackPrintable`||(e[n]=t[n]===void 0?e[n]:t[n]);break;default:throw Error(`Unexpected argument type! Expected "string" or "object", got `+u(t))}if(!e.printable)throw Error(`Missing printable information.`);if(!e.type||typeof e.type!=`string`||d.indexOf(e.type.toLowerCase())===-1)throw Error(`Invalid print type. Available types are: pdf, html, image and json.`);e.showModal&&i.default.show(e),e.onLoadingStart&&e.onLoadingStart();var f=document.getElementById(e.frameId);f&&f.parentNode.removeChild(f);var p=document.createElement(`iframe`);switch(r.default.isFirefox()?p.setAttribute(`style`,`width: 1px; height: 100px; position: fixed; left: 0; top: 0; opacity: 0; border-width: 0; margin: 0; padding: 0`):p.setAttribute(`style`,`visibility: hidden; height: 0; width: 0; position: absolute; border: 0`),p.setAttribute(`id`,e.frameId),e.type!==`pdf`&&(p.srcdoc=`<html><head><title>`+e.documentTitle+`</title>`,e.css&&(Array.isArray(e.css)||(e.css=[e.css]),e.css.forEach(function(e){p.srcdoc+=`<link rel="stylesheet" href="`+e+`">`})),p.srcdoc+=`</head><body></body></html>`),e.type){case`pdf`:if(r.default.isIE())try{console.info(`Print.js doesn't support PDF printing in Internet Explorer.`),window.open(e.fallbackPrintable,`_blank`).focus(),e.onIncompatibleBrowser()}catch(t){e.onError(t)}finally{e.showModal&&i.default.close(),e.onLoadingEnd&&e.onLoadingEnd()}else a.default.print(e,p);break;case`image`:c.default.print(e,p);break;case`html`:o.default.print(e,p);break;case`raw-html`:s.default.print(e,p);break;case`json`:l.default.print(e,p);break}}}}),"./src/js/json.js":(function(e,t,n){"use strict";n.r(t);var r=n(`./src/js/functions.js`),i=n(`./src/js/print.js`);function a(e){"@babel/helpers - typeof";return a=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},a(e)}t.default={print:function(e,t){if(a(e.printable)!==`object`)throw Error(`Invalid javascript data object (JSON).`);if(typeof e.repeatTableHeader!=`boolean`)throw Error(`Invalid value for repeatTableHeader attribute (JSON).`);if(!e.properties||!Array.isArray(e.properties))throw Error(`Invalid properties array for your JSON data.`);e.properties=e.properties.map(function(t){return{field:a(t)===`object`?t.field:t,displayName:a(t)===`object`?t.displayName:t,columnSize:a(t)===`object`&&t.columnSize?t.columnSize+`;`:100/e.properties.length+`%;`}}),e.printableElement=document.createElement(`div`),e.header&&(0,r.addHeader)(e.printableElement,e),e.printableElement.innerHTML+=o(e),i.default.send(e,t)}};function o(e){var t=e.printable,n=e.properties,i=`<table style="border-collapse: collapse; width: 100%;">`;e.repeatTableHeader&&(i+=`<thead>`),i+=`<tr>`;for(var a=0;a<n.length;a++)i+=`<th style="width:`+n[a].columnSize+`;`+e.gridHeaderStyle+`">`+(0,r.capitalizePrint)(n[a].displayName)+`</th>`;i+=`</tr>`,e.repeatTableHeader&&(i+=`</thead>`),i+=`<tbody>`;for(var o=0;o<t.length;o++){i+=`<tr>`;for(var s=0;s<n.length;s++){var c=t[o],l=n[s].field.split(`.`);if(l.length>1)for(var u=0;u<l.length;u++)c=c[l[u]];else c=c[n[s].field];i+=`<td style="width:`+n[s].columnSize+e.gridStyle+`">`+c+`</td>`}i+=`</tr>`}return i+=`</tbody></table>`,i}}),"./src/js/modal.js":(function(e,t,n){"use strict";n.r(t);var r={show:function(e){var t=`font-family:sans-serif; display:table; text-align:center; font-weight:300; font-size:30px; left:0; top:0;position:fixed; z-index: 9990;color: #0460B5; width: 100%; height: 100%; background-color:rgba(255,255,255,.9);transition: opacity .3s ease;`,n=document.createElement(`div`);n.setAttribute(`style`,t),n.setAttribute(`id`,`printJS-Modal`);var i=document.createElement(`div`);i.setAttribute(`style`,`display:table-cell; vertical-align:middle; padding-bottom:100px;`);var a=document.createElement(`div`);a.setAttribute(`class`,`printClose`),a.setAttribute(`id`,`printClose`),i.appendChild(a);var o=document.createElement(`span`);o.setAttribute(`class`,`printSpinner`),i.appendChild(o);var s=document.createTextNode(e.modalMessage);i.appendChild(s),n.appendChild(i),document.getElementsByTagName(`body`)[0].appendChild(n),document.getElementById(`printClose`).addEventListener(`click`,function(){r.close()})},close:function(){var e=document.getElementById(`printJS-Modal`);e&&e.parentNode.removeChild(e)}};t.default=r}),"./src/js/pdf.js":(function(e,t,n){"use strict";n.r(t);var r=n(`./src/js/print.js`),i=n(`./src/js/functions.js`);t.default={print:function(e,t){if(e.base64){a(e,t,Uint8Array.from(atob(e.printable),function(e){return e.charCodeAt(0)}));return}e.printable=/^(blob|http|\/\/)/i.test(e.printable)?e.printable:window.location.origin+(e.printable.charAt(0)===`/`?e.printable:`/`+e.printable);var n=new window.XMLHttpRequest;n.responseType=`arraybuffer`,n.addEventListener(`error`,function(){(0,i.cleanUp)(e),e.onError(n.statusText,n)}),n.addEventListener(`load`,function(){if([200,201].indexOf(n.status)===-1){(0,i.cleanUp)(e),e.onError(n.statusText,n);return}a(e,t,n.response)}),n.open(`GET`,e.printable,!0),n.send()}};function a(e,t,n){var i=new window.Blob([n],{type:`application/pdf`});i=window.URL.createObjectURL(i),t.setAttribute(`src`,i),r.default.send(e,t)}}),"./src/js/print.js":(function(e,t,n){"use strict";n.r(t);var r=n(`./src/js/browser.js`),i=n(`./src/js/functions.js`),a={send:function(e,t){document.getElementsByTagName(`body`)[0].appendChild(t);var n=document.getElementById(e.frameId);n.onload=function(){if(e.type===`pdf`){r.default.isFirefox()?setTimeout(function(){return o(n,e)},1e3):o(n,e);return}var t=n.contentWindow||n.contentDocument;if(t.document&&(t=t.document),t.body.appendChild(e.printableElement),e.type!==`pdf`&&e.style){var i=document.createElement(`style`);i.innerHTML=e.style,t.head.appendChild(i)}var a=t.getElementsByTagName(`img`);a.length>0?s(Array.from(a)).then(function(){return o(n,e)}):o(n,e)}}};function o(e,t){try{if(e.focus(),r.default.isEdge()||r.default.isIE())try{e.contentWindow.document.execCommand(`print`,!1,null)}catch{e.contentWindow.print()}else e.contentWindow.print()}catch(e){t.onError(e)}finally{r.default.isFirefox()&&(e.style.visibility=`hidden`,e.style.left=`-1px`),(0,i.cleanUp)(t)}}function s(e){var t=e.map(function(e){if(e.src&&e.src!==window.location.href)return c(e)});return Promise.all(t)}function c(e){return new Promise(function(t){(function n(){!e||e.naturalWidth===void 0||e.naturalWidth===0||!e.complete?setTimeout(n,500):t()})()})}t.default=a}),"./src/js/raw-html.js":(function(e,t,n){"use strict";n.r(t);var r=n(`./src/js/print.js`);t.default={print:function(e,t){e.printableElement=document.createElement(`div`),e.printableElement.setAttribute(`style`,`width:100%`),e.printableElement.innerHTML=e.printable,r.default.send(e,t)}}}),"./src/sass/index.scss":(function(e,t,n){}),0:(function(e,t,n){e.exports=n(`./src/index.js`)})}).default})})),e$=l(((e,t)=>{var n={version:`1.15.0`};n[437]=(function(){for(var e=`\0\x07\b
|
|
3649
|
+
`,uniformTypes:{textureSize:`f32`}},TQ=2,EQ={format:`rgba8unorm`,dimension:`2d`,width:1,height:1,sampler:{minFilter:`linear`,magFilter:`linear`,addressModeU:`clamp-to-edge`,addressModeV:`clamp-to-edge`}},DQ=[0,0],OQ={SUM:0,MEAN:1},kQ={getPosition:{type:`accessor`,value:e=>e.position},getWeight:{type:`accessor`,value:1},intensity:{type:`number`,min:0,value:1},radiusPixels:{type:`number`,min:1,max:100,value:50},colorRange:MZ,threshold:{type:`number`,min:0,max:1,value:.05},colorDomain:{type:`array`,value:null,optional:!0},aggregation:`SUM`,weightsTextureSize:{type:`number`,min:128,max:2048,value:2048},debounceTimeout:{type:`number`,min:0,max:1e3,value:500}},AQ=[`float32-renderable-webgl`,`texture-blend-float-webgl`],jQ={data:{props:[`radiusPixels`]}},MQ=class extends _Q{getShaders(e){let t=[oV];return e.modules&&(t=[...t,...e.modules]),super.getShaders({...e,modules:t})}initializeState(){super.initializeAggregationLayer(jQ),this.setState({colorDomain:DQ}),this._setupTextureParams(),this._setupAttributes(),this._setupResources()}shouldUpdateState({changeFlags:e}){return e.somethingChanged}updateState(e){super.updateState(e),this._updateHeatmapState(e)}_updateHeatmapState(e){let{props:t,oldProps:n}=e,r=this._getChangeFlags(e);if((r.dataChanged||r.viewportChanged)&&(r.boundsChanged=this._updateBounds(r.dataChanged),this._updateTextureRenderingBounds()),r.dataChanged||r.boundsChanged){if(clearTimeout(this.state.updateTimer),this.setState({isWeightMapDirty:!0}),r.dataChanged){let e=this.getShaders({vs:yQ,fs:bQ});this._createWeightsTransform(e)}}else r.viewportZoomChanged&&this._debouncedUpdateWeightmap();t.colorRange!==n.colorRange&&this._updateColorTexture(e),this.state.isWeightMapDirty&&this._updateWeightmap(),this.setState({zoom:e.context.viewport.zoom})}renderLayers(){let{weightsTexture:e,triPositionBuffer:t,triTexCoordBuffer:n,maxWeightsTexture:r,colorTexture:i,colorDomain:a}=this.state,{updateTriggers:o,intensity:s,threshold:c,aggregation:l}=this.props;return new(this.getSubLayerClass(`triangle`,hQ))(this.getSubLayerProps({id:`triangle-layer`,updateTriggers:o}),{coordinateSystem:`default`,data:{attributes:{positions:t,texCoords:n}},vertexCount:4,maxTexture:r,colorTexture:i,aggregationMode:OQ[l]||0,weightsTexture:e,intensity:s,threshold:c,colorDomain:a})}finalizeState(e){super.finalizeState(e);let{weightsTransform:t,weightsTexture:n,maxWeightTransform:r,maxWeightsTexture:i,triPositionBuffer:a,triTexCoordBuffer:o,colorTexture:s,updateTimer:c}=this.state;t?.destroy(),n?.destroy(),r?.destroy(),i?.destroy(),a?.destroy(),o?.destroy(),s?.destroy(),c&&clearTimeout(c)}_getAttributeManager(){return new GK(this.context.device,{id:this.props.id,stats:this.context.stats})}_getChangeFlags(e){let t={},{dimensions:n}=this.state;t.dataChanged=this.isAttributeChanged()&&`attribute changed`||this.isAggregationDirty(e,{compareAll:!0,dimension:n.data})&&`aggregation is dirty`,t.viewportChanged=e.changeFlags.viewportChanged;let{zoom:r}=this.state;return(!e.context.viewport||e.context.viewport.zoom!==r)&&(t.viewportZoomChanged=!0),t}_createTextures(){let{textureSize:e,format:t}=this.state;this.setState({weightsTexture:this.context.device.createTexture({...EQ,width:e,height:e,format:t}),maxWeightsTexture:this.context.device.createTexture({...EQ,width:1,height:1,format:t})})}_setupAttributes(){this.getAttributeManager().add({positions:{size:3,type:`float64`,accessor:`getPosition`},weights:{size:1,accessor:`getWeight`}}),this.setState({positionAttributeName:`positions`})}_setupTextureParams(){let{device:e}=this.context,{weightsTextureSize:t}=this.props,n=Math.min(t,e.limits.maxTextureDimension2D),r=AQ.every(t=>e.features.has(t)),i=r?`rgba32float`:`rgba8unorm`,a=r?1:1/255;this.setState({textureSize:n,format:i,weightsScale:a}),r||IP.warn(`HeatmapLayer: ${this.id} rendering to float texture not supported, falling back to low precision format`)()}_createWeightsTransform(e){let{weightsTransform:t}=this.state,{weightsTexture:n}=this.state,r=this.getAttributeManager();t?.destroy(),t=new lW(this.context.device,{id:`${this.id}-weights-transform`,...e,bufferLayout:r.getBufferLayouts(),vertexCount:1,targetTexture:n,parameters:{depthWriteEnabled:!1,blend:!0,blendColorOperation:`add`,blendColorSrcFactor:`one`,blendColorDstFactor:`one`,blendAlphaSrcFactor:`one`,blendAlphaDstFactor:`one`},topology:`point-list`,modules:[...e.modules,CQ]}),this.setState({weightsTransform:t})}_setupResources(){this._createTextures();let{device:e}=this.context,{textureSize:t,weightsTexture:n,maxWeightsTexture:r}=this.state,i=this.getShaders({vs:yQ,fs:bQ});this._createWeightsTransform(i);let a=this.getShaders({vs:xQ,fs:SQ,modules:[wQ]}),o=new lW(e,{id:`${this.id}-max-weights-transform`,targetTexture:r,...a,vertexCount:t*t,topology:`point-list`,parameters:{depthWriteEnabled:!1,blend:!0,blendColorOperation:`max`,blendAlphaOperation:`max`,blendColorSrcFactor:`one`,blendColorDstFactor:`one`,blendAlphaSrcFactor:`one`,blendAlphaDstFactor:`one`}}),s={inTexture:n,textureSize:t};o.model.shaderInputs.setProps({maxWeight:s}),this.setState({weightsTexture:n,maxWeightsTexture:r,maxWeightTransform:o,zoom:null,triPositionBuffer:e.createBuffer({byteLength:48}),triTexCoordBuffer:e.createBuffer({byteLength:48})})}updateShaders(e){this._createWeightsTransform({vs:yQ,fs:bQ,...e})}_updateMaxWeightValue(){let{maxWeightTransform:e}=this.state;e.run({parameters:{viewport:[0,0,1,1]},clearColor:[0,0,0,0]})}_updateBounds(e=!1){let{viewport:t}=this.context,n=[t.unproject([0,0]),t.unproject([t.width,0]),t.unproject([0,t.height]),t.unproject([t.width,t.height])].map(e=>e.map(Math.fround)),r=aQ(n),i={visibleWorldBounds:r,viewportCorners:n},a=!1;if(e||!this.state.worldBounds||!oQ(this.state.worldBounds,r)){let e=this._worldToCommonBounds(r),t=this._commonToWorldBounds(e);this.props.coordinateSystem===`lnglat`&&(t[1]=Math.max(t[1],-85.051129),t[3]=Math.min(t[3],85.051129),t[0]=Math.max(t[0],-360),t[2]=Math.min(t[2],360));let n=this._worldToCommonBounds(t);i.worldBounds=t,i.normalizedCommonBounds=n,a=!0}return this.setState(i),a}_updateTextureRenderingBounds(){let{triPositionBuffer:e,triTexCoordBuffer:t,normalizedCommonBounds:n,viewportCorners:r}=this.state,{viewport:i}=this.context;e.write(cQ(r,3));let a=r.map(e=>uQ(i.projectPosition(e),n));t.write(cQ(a,2))}_updateColorTexture(e){let{colorRange:t}=e.props,{colorTexture:n}=this.state,r=NZ(t,!1,Uint8Array);n?.destroy(),n=this.context.device.createTexture({...EQ,data:r,width:t.length,height:1}),this.setState({colorTexture:n})}_updateWeightmap(){let{radiusPixels:e,colorDomain:t,aggregation:n}=this.props,{worldBounds:r,textureSize:i,weightsScale:a,weightsTexture:o}=this.state,s=this.state.weightsTransform;this.state.isWeightMapDirty=!1;let c=this._worldToCommonBounds(r,{useLayerCoordinateSystem:!0});if(t&&n===`SUM`){let{viewport:e}=this.context,n=e.distanceScales.metersPerUnit[2]*(c[2]-c[0])/i;this.state.colorDomain=[t[0]*n*a,t[1]*n*a]}else this.state.colorDomain=t||DQ;let l=this.getAttributeManager().getAttributes(),u=this.getModuleSettings();this._setModelAttributes(s.model,l),s.model.setVertexCount(this.getNumInstances());let d={radiusPixels:e,commonBounds:c,textureWidth:i,weightsScale:a,weightsTexture:o},{viewport:f,devicePixelRatio:p,coordinateSystem:m,coordinateOrigin:h}=u,{modelMatrix:g}=this.props;s.model.shaderInputs.setProps({project:{viewport:f,devicePixelRatio:p,modelMatrix:g,coordinateSystem:m,coordinateOrigin:h},weight:d}),s.run({parameters:{viewport:[0,0,i,i]},clearColor:[0,0,0,0]}),this._updateMaxWeightValue()}_debouncedUpdateWeightmap(e=!1){let{updateTimer:t}=this.state,{debounceTimeout:n}=this.props;e?(t=null,this._updateBounds(!0),this._updateTextureRenderingBounds(),this.setState({isWeightMapDirty:!0})):(this.setState({isWeightMapDirty:!1}),clearTimeout(t),t=setTimeout(this._debouncedUpdateWeightmap.bind(this,!0),n)),this.setState({updateTimer:t})}_worldToCommonBounds(e,t={}){let{useLayerCoordinateSystem:n=!1}=t,[r,i,a,o]=e,{viewport:s}=this.context,{textureSize:c}=this.state,{coordinateSystem:l}=this.props,u=n&&(l===`lnglat-offsets`||l===`meter-offsets`),d=u?s.projectPosition(this.props.coordinateOrigin):[0,0],f=c*TQ/s.scale,p,m;return n&&!u?(p=this.projectPosition([r,i,0]),m=this.projectPosition([a,o,0])):(p=s.projectPosition([r,i,0]),m=s.projectPosition([a,o,0])),lQ([p[0]-d[0],p[1]-d[1],m[0]-d[0],m[1]-d[1]],f,f)}_commonToWorldBounds(e){let[t,n,r,i]=e,{viewport:a}=this.context,o=a.unprojectPosition([t,n]),s=a.unprojectPosition([r,i]);return o.slice(0,2).concat(s.slice(0,2))}};MQ.layerName=`HeatmapLayer`,MQ.defaultProps=kQ;var NQ=class extends nZ{constructor(e,t){super(e),this.BASE_RADIUS=200,this.heatmap=[],this.heatmapData=[],this.overlay=null,this.heatmap=t}init(){this.initMap().then(()=>{let e=[];for(let t of this.heatmap)e.push({latitude:t.location.latitude,longitude:t.location.longitude});this.fitBounds(e),this.createHeatmap(),this.overlay=new yJ({layers:[this.heatmapLayer]}),this.overlay.setMap(this.map)})}createHeatmap(e=null){e&&(this.map=e),this.map&&(this.createHeatmapData(),this.createHeatmapLayer(this.BASE_RADIUS))}createHeatmapData(){this.heatmapData=this.heatmap.map(e=>({position:[e.location.longitude,e.location.latitude],weight:e.weight}))}zoomChanged(){if(!this.map)return;let e=this.map.getZoom();if(!this.heatmapLayer||!e)return;let t=this.BASE_RADIUS*2**(e-this.ZOOM);this.createHeatmapLayer(t),this.overlay.setProps({layers:[this.heatmapLayer]})}createHeatmapLayer(e){this.heatmapLayer=(0,t.markRaw)(new MQ({id:`heatmap-layer`,data:this.heatmapData,getPosition:e=>e.position,getWeight:e=>e.weight,colorRange:[[0,255,255,190],[0,0,191,190],[255,0,0,190]],radiusUnits:`meters`,radiusPixels:e,opacity:1,intensity:6,threshold:.03,weightsTextureSize:512,zoomAggregation:!1}))}},PQ=class extends nZ{constructor(e,t,n=!1,r=`weight`){super(e),this.COLOR_RANGE=[`#00FFFFBE`,`#0000BFBE`,`#FF0000BE`],this.hexagon=[],this.hexagonData=[],this.overlay=null,this.hasDialog=!1,this.aggregation=`weight`,this.getDrawingMode=()=>this.enableDrawingMode,this.hexagon=t,this.hasDialog=n,this.aggregation=r}init(e=null){this.initMap().then(()=>{e&&(this.COLOR_RANGE=e);let t=[];for(let e of this.hexagon)t.push({latitude:Number(e.location.latitude??0),longitude:Number(e.location.longitude??0)});this.fitBounds(t),this.createHexagon(),this.overlay=new yJ({layers:[this.hexagonLayer]}),this.overlay.setMap(this.map)})}createHexagon(e=null){e&&(this.map=e),this.map&&(this.createHexagonData(),this.createHexagonLayer())}createHexagonData(){this.hexagonData=[];for(let e of this.hexagon)this.hexagonData.push({position:[Number(e.location.longitude??0),Number(e.location.latitude??0)],weight:e.weight,info:e?.info})}getInfoDialog(){return this.infoDialog}clear(){this.setInfoDialog(null)}click(){this.clear()}dragstart(){this.clear()}zoomChanged(){this.clear()}createHexagonLayer(e=120){let n={id:`hexagon-layer`,data:this.hexagonData,getPosition:e=>e.position,radius:e,coverage:.99,extruded:!1,colorRange:this.COLOR_RANGE.map(e=>ix().convertHexColorToRGB(e,`array`)),opacity:.8,pickable:!0,parameters:{depthTest:!0},onClick:e=>{if(!this.hasDialog)return!1;if(!this.getDrawingMode())return this.setInfoDialog({info:{sumWeight:e?.object?.colorValue??0,count:e?.object?.count??0,...e.object?.info},x:e?.x,y:e?.y}),!0},onHover:e=>{if(!this.hasDialog)return;let t=this.map?.getDiv();t&&(this.getDrawingMode()||(e.object?(t.style.cursor=`pointer`,this.map?.setOptions({draggableCursor:`pointer`})):(t.style.cursor=`grab`,this.map?.setOptions({draggableCursor:`grab`}))))}};this.aggregation===`count`?n=Object.assign(n,{colorAggregation:`SUM`}):this.aggregation===`weight`&&(n=Object.assign(n,{getColorWeight:e=>e.weight})),this.hexagonLayer=(0,t.markRaw)(new iQ(n))}},FQ=class extends nZ{constructor(e,t,n,r=!1,i=`weight`){super(e),this.hexagon=[],this.markers=[],this.markersMap=null,this.hexagonMap=null,this.hasDialog=!1,this.mainMapRef=null,this.overlay=null,this.aggregation=`weight`,this.mainMapRef=e,this.hexagon=t,this.markers=n,this.hasDialog=r,this.aggregation=i}init(e=null){this.initMap().then(()=>{setTimeout(()=>{this.mainMapRef&&(this.fitBounds(this.markers),this.markersMap=new oZ(this.mainMapRef,this.markers,this.hasDialog),this.markersMap.getDrawingMode=()=>this.enableDrawingMode,this.hexagonMap=new PQ(this.mainMapRef,this.hexagon,!1,this.aggregation),e&&(this.markersMap.IMAGE_POINT=e),this.hexagonMap.createHexagon(this.map),this.markersMap.loadMarkers(this.map),this.render())},200)})}render(){if(this.overlay||(this.overlay=new yJ({}),this.overlay.setMap(this.map)),this.markersMap&&this.hexagonMap){let e=[this.hexagonMap.hexagonLayer,this.markersMap.iconLayer];this.overlay.setProps({layers:e})}}getInfoDialog(){return this.markersMap?.getInfoDialog()}clear(){this.map?.getDiv().style.cursor!==`pointer`&&this.markersMap?.setInfoDialog(null)}clearDialog(){this.markersMap?.setInfoDialog(null)}click(){this.clear()}dragstart(){this.clear()}zoomChanged(){this.markersMap?.setInfoDialog(null)}},IQ=class extends nZ{constructor(e,t=null,n=!1,r=!1){super(e),this.marker=t,this.hasMark=!0,this.isDraggable=n,this.has_autocomplete=r}init(){this.initMap().then()}},LQ=class extends nZ{constructor(e,t=!1,n=null){super(e),this.isDrawing=!0,this.has_autocomplete=t,this.drawCoordinates=n??``}init(){this.initMap().then()}},RQ={class:`topRight`},zQ={class:`middle`},BQ={class:`topLeft`},VQ={key:2,class:`d-flex justify-center align-center w-100 h-100`},HQ=(0,t.defineComponent)({__name:`EasyMap`,props:(0,t.mergeModels)({input:{},markers:{},polygons:{},heatmapPoints:{},type:{},hasDialog:{type:Boolean},imagePoint:{},colorCluster:{},isDraggable:{type:Boolean},hasAutocomplete:{type:Boolean},isDrawPolygon:{type:Boolean},height:{},hexagonColorRange:{},dynamicColorCluster:{}},{drawCoordinates:{},drawCoordinatesModifiers:{},mark:{},markModifiers:{}}),emits:(0,t.mergeModels)([`resetMap`],[`update:drawCoordinates`,`update:mark`]),setup(e,{expose:n,emit:r}){let i=e,a=Hs(),o=r,s=(0,t.useModel)(e,`drawCoordinates`),c=(0,t.useModel)(e,`mark`),l=(0,t.ref)(null),u=(0,t.ref)(null),d=e=>{u.value?.placeChanged(e)},f=()=>{u.value?.resetMap(),o(`resetMap`)};(0,t.watch)(()=>u.value?.marker,e=>{c.value=e},{deep:!0,immediate:!0}),(0,t.watch)(()=>u.value?.drawCoordinates,e=>{s.value=e});let p=(e=[])=>{u.value?.render(e)},m=e=>{u.value?.setZoomMarker(e)},h=e=>{u.value?.setMarker(e)},g=e=>{u.value?.setDrawablePolygon(e)},_=()=>{if(l.value)if(i.type===`clusters`&&i.markers)u.value=new rZ(l.value,i.markers,i.hasDialog,i.hasAutocomplete,i.isDrawPolygon,s.value,i.dynamicColorCluster),u.value.init(i.imagePoint??null,i.colorCluster??null);else if(i.type===`polygons`&&i.polygons)u.value=new iZ(l.value,i.polygons,i.hasDialog,i.hasAutocomplete,i.isDrawPolygon,s.value),u.value.init();else if(i.type===`clusters_polygons`&&i.polygons&&i.markers)u.value=new aZ(l.value,i.polygons,i.markers,i.hasDialog,i.hasAutocomplete,i.isDrawPolygon,s.value),u.value.init(i.imagePoint??null,i.colorCluster??null);else if(i.type===`clusters_markers`&&i.markers){let e=[],t=[];for(let n of i.markers)n.groupBy===`cluster`?t.push(n):e.push(n);u.value=new sZ(l.value,e,t,i.hasDialog,i.hasAutocomplete,i.isDrawPolygon,s.value),u.value.init(i.imagePoint??null,i.colorCluster??null)}else i.type===`markers`&&i.markers?(u.value=new oZ(l.value,i.markers,i.hasDialog,i.hasAutocomplete,i.isDrawPolygon,s.value),u.value.init(i.imagePoint??null)):i.type===`markers_polygons`&&i.polygons&&i.markers?(u.value=new cZ(l.value,i.polygons,i.markers,i.hasDialog,i.hasAutocomplete,i.isDrawPolygon,s.value),u.value.init(i.imagePoint??null)):i.type===`heatmap`&&i.heatmapPoints?(u.value=new NQ(l.value,i.heatmapPoints),u.value.init()):i.type===`hexagon`&&i.heatmapPoints?(u.value=new PQ(l.value,i.heatmapPoints,i.hasDialog),u.value.init(i.hexagonColorRange??null)):i.type===`hexagon_markers`&&i.heatmapPoints&&i.markers?(u.value=new FQ(l.value,i.heatmapPoints,i.markers,i.hasDialog),u.value.init()):i.type===`edit_mark`?(u.value=new IQ(l.value,c.value??null,i.isDraggable,i.hasAutocomplete),u.value.init()):i.type===`draw_polygon`&&(u.value=new LQ(l.value,i.hasAutocomplete,s.value),u.value.init())};return(0,t.onMounted)(_),n({setDrawablePolygon:g,setEditableMarker:h,render:p,init:_,setZoomMarker:m}),(n,r)=>{let o=(0,t.resolveComponent)(`v-icon`),s=(0,t.resolveComponent)(`v-btn`),c=(0,t.resolveComponent)(`v-btn-group`),p=(0,t.resolveComponent)(`v-chip`),m=(0,t.resolveComponent)(`v-card-text`),h=(0,t.resolveComponent)(`v-card`);return(0,t.openBlock)(),(0,t.createBlock)(h,{class:`cardMap w-100 h-100`,tile:``},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(m,{class:`h-100`},{default:(0,t.withCtx)(()=>[u.value?.hasAutocomplete()?((0,t.openBlock)(),(0,t.createBlock)(ux,{key:0,label:e.input.label,options:e.input.options,onPlace_changed:d,onResetMap:f},null,8,[`label`,`options`])):(0,t.createCommentVNode)(``,!0),u.value?.getErrorGPUDisabled()?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,VQ,[(0,t.createVNode)(p,{id:`map`,color:`error`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(o,{class:`mr-2`},{default:(0,t.withCtx)(()=>[...r[5]||=[(0,t.createTextVNode)(`icon-gpu`,-1)]]),_:1}),(0,t.createTextVNode)(` `+(0,t.toDisplayString)((0,t.unref)(a).t(`coverage.gpu_acceleration_error`)),1)]),_:1})])):((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:1,class:`map_container`,style:(0,t.normalizeStyle)(`height: ${e.height??`100%`}`)},[(0,t.createElementVNode)(`div`,{id:`map`,ref_key:`mapRef`,ref:l,class:`w-100 h-100`},null,512),(0,t.createElementVNode)(`div`,RQ,[(0,t.renderSlot)(n.$slots,`topRight`)]),(0,t.createElementVNode)(`div`,zQ,[u.value?.isDrawing?((0,t.openBlock)(),(0,t.createBlock)(c,{key:0,class:`buttons`,color:`white`,density:`compact`,rounded:`pill`,divided:``},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(s,{class:`pe-2 my-1`,density:`compact`,color:u.value?.enableDrawingMode?`white`:`primary`,onClick:r[0]||=e=>u.value?.setDrawMode(!1)},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(o,null,{default:(0,t.withCtx)(()=>[...r[3]||=[(0,t.createTextVNode)(`icon-hand-grab`,-1)]]),_:1})]),_:1},8,[`color`]),(0,t.createVNode)(s,{class:`pe-2 my-1`,density:`compact`,color:u.value?.enableDrawingMode?`primary`:`white`,onClick:r[1]||=e=>u.value?.setDrawMode(!0)},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(o,null,{default:(0,t.withCtx)(()=>[...r[4]||=[(0,t.createTextVNode)(`icon-line-squiggle`,-1)]]),_:1})]),_:1},8,[`color`])]),_:1})):(0,t.createCommentVNode)(``,!0)]),(0,t.createElementVNode)(`div`,BQ,[(0,t.renderSlot)(n.$slots,`topLeft`)]),(0,t.createVNode)(s,{class:`fullscreen_btn`,color:`white`,onClick:r[2]||=e=>u.value?.toggleFullscreen()},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`i`,{class:(0,t.normalizeClass)(u.value?.getIsFullscreen()?`icon-shrink`:`icon-maximize`)},null,2)]),_:1}),i.hasDialog&&u.value?.getInfoDialog()?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,class:`info-modal`,style:(0,t.normalizeStyle)({left:u.value.getInfoDialog().x+`px`,top:u.value.getInfoDialog().y+`px`})},[(0,t.renderSlot)(n.$slots,`dialog`,{info:u.value.getInfoDialog()?.info,closeDialogCb:()=>u.value.clearDialog()})],4)):(0,t.createCommentVNode)(``,!0)],4))]),_:3})]),_:3})}}}),UQ={class:`labelMore`},WQ=(0,t.defineComponent)({__name:`MenuActions`,props:{menuButtons:{}},setup(e){return(n,r)=>{let i=(0,t.resolveComponent)(`v-icon`),a=(0,t.resolveComponent)(`v-btn`),o=(0,t.resolveComponent)(`v-list-item-title`),s=(0,t.resolveComponent)(`v-list-item`),c=(0,t.resolveComponent)(`v-list`),l=(0,t.resolveComponent)(`v-menu`);return(0,t.openBlock)(),(0,t.createBlock)(l,null,{activator:(0,t.withCtx)(({props:n})=>[(0,t.createVNode)(a,(0,t.mergeProps)({class:`ellipsis_btn`},n,{color:e.menuButtons?.color??`error`,variant:`flat`}),{default:(0,t.withCtx)(()=>[e.menuButtons?.icon?((0,t.openBlock)(),(0,t.createElementBlock)(`i`,{key:0,class:(0,t.normalizeClass)(e.menuButtons?.icon)},null,2)):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`span`,UQ,(0,t.toDisplayString)(e.menuButtons.label),1),(0,t.createVNode)(i,null,{default:(0,t.withCtx)(()=>[...r[0]||=[(0,t.createTextVNode)(`icon-chevron-down`,-1)]]),_:1})]),_:1},16,[`color`])]),default:(0,t.withCtx)(()=>[(0,t.createVNode)(c,null,{default:(0,t.withCtx)(()=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.menuButtons.items,(e,n)=>((0,t.openBlock)(),(0,t.createBlock)(s,{key:n,value:n,onClick:t=>e.onClick()},{prepend:(0,t.withCtx)(()=>[e?.icon?((0,t.openBlock)(),(0,t.createBlock)(i,{key:0},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.icon),1)]),_:2},1024)):(0,t.createCommentVNode)(``,!0)]),default:(0,t.withCtx)(()=>[(0,t.createVNode)(o,null,{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.label),1)]),_:2},1024)]),_:2},1032,[`value`,`onClick`]))),128))]),_:1})]),_:1})}}}),GQ={class:`labelMore`},KQ={class:`labelMore`},qQ=(0,t.defineComponent)({__name:`EasyForm`,props:{form:{}},setup(e,{expose:n}){let r=e,i=(0,t.ref)(null),a=(0,t.ref)(null),o=(0,t.ref)(null),s=(0,t.ref)(!1);async function c(){if(!i.value||s.value||!(await(a?.value)?.validate())?.valid)return null;let e={};i.value.inputs.forEach(t=>{i.value&&i.value.binder[t.key]&&i.value.binder[t.key].length!==0&&Object.assign(e,{[t.key]:i.value.binder[t.key]})}),i.value.submit&&typeof i.value.submit.onSubmit==`function`&&i.value.submit.onSubmit(e)}return(0,t.onBeforeMount)(()=>{i.value=r.form,i.value&&i.value.binder&&Object.keys(i.value.binder).map(e=>{i.value&&i.value.binder[e]&&!Array.isArray(i.value.binder[e])&&typeof i.value.binder[e]==`object`&&(isNaN(i.value.binder[e].latitude)||isNaN(i.value.binder[e].longitude))&&(i.value.binder.value[e]={latitude:0,longitude:0})})}),n({formref:a,loading:s}),(e,n)=>{let r=(0,t.resolveComponent)(`v-card-title`),l=(0,t.resolveComponent)(`v-card-subtitle`),u=(0,t.resolveComponent)(`v-col`),d=(0,t.resolveComponent)(`v-row`),f=(0,t.resolveComponent)(`v-card-text`),p=(0,t.resolveComponent)(`v-btn`),m=(0,t.resolveComponent)(`v-card-actions`),h=(0,t.resolveComponent)(`v-card`),g=(0,t.resolveComponent)(`v-form`),_=(0,t.resolveComponent)(`v-container`);return(0,t.openBlock)(),(0,t.createBlock)(_,{class:`mainform`,height:e.$attrs.height??`100%`},{default:(0,t.withCtx)(()=>[i.value&&i.value.binder?((0,t.openBlock)(),(0,t.createBlock)(g,{key:0,ref_key:`formref`,ref:a},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(h,{elevation:i.value?.elevation??1,loading:s.value},{default:(0,t.withCtx)(()=>[i.value.title?((0,t.openBlock)(),(0,t.createBlock)(r,{key:0},{default:(0,t.withCtx)(()=>[i.value.icon?((0,t.openBlock)(),(0,t.createElementBlock)(`i`,{key:0,class:(0,t.normalizeClass)(i.value.icon)},null,2)):(0,t.createCommentVNode)(``,!0),(0,t.createTextVNode)(` `+(0,t.toDisplayString)(i.value.title),1)]),_:1})):(0,t.createCommentVNode)(``,!0),i.value.subtitle?((0,t.openBlock)(),(0,t.createBlock)(l,{key:1},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(i.value.subtitle),1)]),_:1})):(0,t.createCommentVNode)(``,!0),(0,t.createVNode)(f,{class:`h-100`},{default:(0,t.withCtx)(()=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(i.value.inputs,(n,r)=>((0,t.openBlock)(),(0,t.createBlock)(d,{key:r},{default:(0,t.withCtx)(()=>[n.type===`input`?((0,t.openBlock)(),(0,t.createBlock)(u,{key:0},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(Ap,{modelValue:i.value.binder[n.key],"onUpdate:modelValue":e=>i.value.binder[n.key]=e,input:n,onSubmit:c},null,8,[`modelValue`,`onUpdate:modelValue`,`input`])]),_:2},1024)):(0,t.createCommentVNode)(``,!0),n.type===`textarea`?((0,t.openBlock)(),(0,t.createBlock)(u,{key:1},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(jp,{modelValue:i.value.binder[n.key],"onUpdate:modelValue":e=>i.value.binder[n.key]=e,input:n,onSubmit:c},null,8,[`modelValue`,`onUpdate:modelValue`,`input`])]),_:2},1024)):(0,t.createCommentVNode)(``,!0),n.type===`number`?((0,t.openBlock)(),(0,t.createBlock)(u,{key:2},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(Mp,{modelValue:i.value.binder[n.key],"onUpdate:modelValue":e=>i.value.binder[n.key]=e,input:n,onSubmit:c},null,8,[`modelValue`,`onUpdate:modelValue`,`input`])]),_:2},1024)):(0,t.createCommentVNode)(``,!0),n.type===`password`||n.type===`password-eye`?((0,t.openBlock)(),(0,t.createBlock)(u,{key:3},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(Fp,{modelValue:i.value.binder[n.key],"onUpdate:modelValue":e=>i.value.binder[n.key]=e,input:n,"onUpdate:type":e=>n.type=e,onSubmit:c},null,8,[`modelValue`,`onUpdate:modelValue`,`input`,`onUpdate:type`])]),_:2},1024)):(0,t.createCommentVNode)(``,!0),n.type===`checkbox`?((0,t.openBlock)(),(0,t.createBlock)(u,{key:4},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(Ip,{modelValue:i.value.binder[n.key],"onUpdate:modelValue":e=>i.value.binder[n.key]=e,input:n},null,8,[`modelValue`,`onUpdate:modelValue`,`input`])]),_:2},1024)):(0,t.createCommentVNode)(``,!0),n.type===`selects`?((0,t.openBlock)(),(0,t.createBlock)(u,{key:5},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(Lp,{modelValue:i.value.binder[n.key],"onUpdate:modelValue":e=>i.value.binder[n.key]=e,input:n},null,8,[`modelValue`,`onUpdate:modelValue`,`input`])]),_:2},1024)):(0,t.createCommentVNode)(``,!0),n.type===`selectsAutoComplete`?((0,t.openBlock)(),(0,t.createBlock)(u,{key:6},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(Rp,{modelValue:i.value.binder[n.key],"onUpdate:modelValue":e=>i.value.binder[n.key]=e,input:n},null,8,[`modelValue`,`onUpdate:modelValue`,`input`])]),_:2},1024)):(0,t.createCommentVNode)(``,!0),n.type===`selectsAutoCompleteChips`?((0,t.openBlock)(),(0,t.createBlock)(u,{key:7},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(zp,{modelValue:i.value.binder[n.key],"onUpdate:modelValue":e=>i.value.binder[n.key]=e,input:n},null,8,[`modelValue`,`onUpdate:modelValue`,`input`])]),_:2},1024)):(0,t.createCommentVNode)(``,!0),n.type===`date`?((0,t.openBlock)(),(0,t.createBlock)(u,{key:8},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(ax,{modelValue:i.value.binder[n.key],"onUpdate:modelValue":e=>i.value.binder[n.key]=e,input:n},null,8,[`modelValue`,`onUpdate:modelValue`,`input`])]),_:2},1024)):(0,t.createCommentVNode)(``,!0),n.type===`rangeDate`?((0,t.openBlock)(),(0,t.createBlock)(u,{key:9},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(ox,{modelValue:i.value.binder[n.key],"onUpdate:modelValue":e=>i.value.binder[n.key]=e,input:n},null,8,[`modelValue`,`onUpdate:modelValue`,`input`])]),_:2},1024)):(0,t.createCommentVNode)(``,!0),n.type===`file`?((0,t.openBlock)(),(0,t.createBlock)(u,{key:10,eager:``},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(cx,{modelValue:i.value.binder[n.key],"onUpdate:modelValue":e=>i.value.binder[n.key]=e,input:n},null,8,[`modelValue`,`onUpdate:modelValue`,`input`])]),_:2},1024)):(0,t.createCommentVNode)(``,!0),n.type===`mapPin`?((0,t.openBlock)(),(0,t.createBlock)(u,{key:11,class:`h-100`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(HQ,(0,t.mergeProps)({ref_for:!0,ref_key:`mapRef`,ref:o,mark:i.value.binder[n.key],"onUpdate:mark":e=>i.value.binder[n.key]=e,type:`edit_mark`,input:n},{ref_for:!0},{...n.options.map}),null,16,[`mark`,`onUpdate:mark`,`input`])]),_:2},1024)):(0,t.createCommentVNode)(``,!0),n.type===`mapDraw`?((0,t.openBlock)(),(0,t.createBlock)(u,{key:12,class:`h-100`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(HQ,(0,t.mergeProps)({ref_for:!0,ref_key:`mapRef`,ref:o,"draw-coordinates":i.value.binder[n.key],"onUpdate:drawCoordinates":e=>i.value.binder[n.key]=e,type:`draw_polygon`,input:n},{ref_for:!0},{...n.options.map}),null,16,[`draw-coordinates`,`onUpdate:drawCoordinates`,`input`])]),_:2},1024)):(0,t.createCommentVNode)(``,!0),n.type===`slot`?((0,t.openBlock)(),(0,t.createBlock)(u,{key:13},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,n.key,{items:i.value.binder[n.key],options:{...n?.options}})]),_:2},1024)):(0,t.createCommentVNode)(``,!0)]),_:2},1024))),128))]),_:3}),i.value.button||i.value.menuButtons||i.value.submit?((0,t.openBlock)(),(0,t.createBlock)(m,{key:2},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(d,{class:`p-4`},{default:(0,t.withCtx)(()=>[i.value.button?((0,t.openBlock)(),(0,t.createBlock)(u,{key:0,style:{display:`flex`,"justify-content":`start`}},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(p,{class:`ellipsis_btn`,color:i.value.button?.color??`error`,variant:`flat`,loading:!!i.value.button?.loading,disabled:!!i.value.button?.disabled,onClick:n[0]||=e=>i.value.button.onClick()},{default:(0,t.withCtx)(()=>[i.value.button.icon?((0,t.openBlock)(),(0,t.createElementBlock)(`i`,{key:0,class:(0,t.normalizeClass)(i.value.button.icon)},null,2)):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`span`,GQ,(0,t.toDisplayString)(i.value.button.label),1)]),_:1},8,[`color`,`loading`,`disabled`])]),_:1})):(0,t.createCommentVNode)(``,!0),i.value.menuButtons?((0,t.openBlock)(),(0,t.createBlock)(u,{key:1,style:{display:`flex`,"justify-content":`start`}},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(WQ,{"menu-buttons":i.value.menuButtons},null,8,[`menu-buttons`])]),_:1})):(0,t.createCommentVNode)(``,!0),(0,t.createVNode)(u,{style:{display:`flex`,"justify-content":`end`}},{default:(0,t.withCtx)(()=>[i.value.submit?((0,t.openBlock)(),(0,t.createBlock)(p,{key:0,class:`ellipsis_btn`,loading:s.value,color:i.value.submit?.color??`success`,variant:`flat`,onClick:c},{default:(0,t.withCtx)(()=>[i.value.submit.icon?((0,t.openBlock)(),(0,t.createElementBlock)(`i`,{key:0,class:(0,t.normalizeClass)(i.value.submit.icon)},null,2)):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`span`,KQ,(0,t.toDisplayString)(i.value.submit.label??``),1)]),_:1},8,[`loading`,`color`])):(0,t.createCommentVNode)(``,!0)]),_:1})]),_:1})]),_:1})):(0,t.createCommentVNode)(``,!0)]),_:3},8,[`elevation`,`loading`])]),_:3},512)):(0,t.createCommentVNode)(``,!0)]),_:3},8,[`height`])}}}),JQ=()=>({run:()=>{setInterval(()=>{document.querySelectorAll(`.v-icon`)?.forEach(e=>{[...e.classList].some(e=>e.startsWith(`icon-`)||e.startsWith(`iconapp-`))&&e.classList.remove(`mdi`)})},700)}});function YQ(){return{submitHeaders:(e,t)=>{let n=e.map((e,t)=>({value:e.value,hidden:!!e.hidden,order:t}));window.localStorage.setItem(`dataTableHeaders_${t}`,JSON.stringify(n))},loadHeaders:(e,t)=>{let n=window.localStorage.getItem(`dataTableHeaders_${t}`);if(n)try{return JSON.parse(n).forEach(t=>{let n=e.findIndex(e=>e.value===t.value);n!==-1&&e[n]&&(e[n].hidden=t.hidden,Object.assign(e[n],{order:t.order}))}),e.sort((e,t)=>e?.order-t?.order),e}catch(e){return console.error(e),window.localStorage.removeItem(`dataTableHeaders_${t}`),[]}else return[]}}}var XQ={style:{width:`100%`}},ZQ=(0,t.defineComponent)({__name:`Filters`,props:{filters:{}},emits:[`search`],setup(e,{emit:n}){let r=n,i=(0,t.ref)(!1),a=Hs(),o=(0,t.ref)([]),s=(0,t.ref)([]),c=e,l={type:`rangeDate`,key:`inputRangDateTimePicker`,label:``,options:{enableTime:!0}},u={type:`rangeDate`,key:`inputRangDatePicker`,label:``,options:{enableTime:!1}};function d(e,t){return e===`comparison`&&typeof t==`object`&&!!t&&`symbol`in t&&`value`in t}function f(e){return e===`input`||e===`inArray`||e===`likeInArray`}let p=()=>{o.value=[],c.filters.forEach(e=>{let t=null;(d(e.type,e.value)||(e.type===`date`||e.type===`dateTime`)&&Array.isArray(e.value)&&e.value.length!==0||(e.type===`input`||e.type===`inArray`||e.type===`likeInArray`||e.type===`selects`)&&e.value)&&(t=e.value),t&&o.value.push({type:e.type,column:e.column,value:t})}),r(`search`,o.value),i.value=!1},m=()=>{i.value=!1,o.value=[],r(`search`,o.value),c.filters.forEach(e=>{e.type===`comparison`?e.value={value:0,symbol:`<`}:e.type===`date`||e.type===`dateTime`?e.value=[]:e.value&&=``})};return(0,t.onMounted)(()=>{s.value=c.filters}),(e,n)=>{let r=(0,t.resolveComponent)(`v-btn`),h=(0,t.resolveComponent)(`v-col`),g=(0,t.resolveComponent)(`v-row`),_=(0,t.resolveComponent)(`v-card-title`),v=(0,t.resolveComponent)(`v-text-field`),y=(0,t.resolveComponent)(`v-select`),b=(0,t.resolveComponent)(`v-card-text`),x=(0,t.resolveComponent)(`v-card-actions`),S=(0,t.resolveComponent)(`v-card`),C=(0,t.resolveComponent)(`v-dialog`);return(0,t.openBlock)(),(0,t.createElementBlock)(`div`,XQ,[o.value.length===0?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createBlock)(r,{key:0,color:`primary`,width:`45%`,class:`mr-2`,onClick:m},{default:(0,t.withCtx)(()=>[...n[4]||=[(0,t.createElementVNode)(`i`,{class:`icon icon-funnel-x`},null,-1)]]),_:1})),(0,t.createVNode)(r,(0,t.mergeProps)(c,{color:`primary`,width:o.value.length===0?`100%`:`50%`,onClick:n[0]||=e=>i.value=!0}),{default:(0,t.withCtx)(()=>[n[5]||=(0,t.createElementVNode)(`i`,{class:`icon icon-funnel mr-1`},null,-1),(0,t.createTextVNode)(` `+(0,t.toDisplayString)((0,t.unref)(a).t(`table.filters`)),1)]),_:1},16,[`width`]),(0,t.createVNode)(C,{modelValue:i.value,"onUpdate:modelValue":n[3]||=e=>i.value=e,width:`600`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(S,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(_,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(g,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(h,{cols:`11`},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)((0,t.unref)(a).t(`table.filters`)),1)]),_:1}),(0,t.createVNode)(h,{cols:`1`,class:`d-flex justify-end`},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`i`,{class:`icon icon-x`,style:{cursor:`pointer`},onClick:n[1]||=e=>i.value=!1})]),_:1})]),_:1})]),_:1}),(0,t.createVNode)(b,null,{default:(0,t.withCtx)(()=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(s.value,(e,n)=>((0,t.openBlock)(),(0,t.createBlock)(g,{key:n},{default:(0,t.withCtx)(()=>[f(e.type)?((0,t.openBlock)(),(0,t.createBlock)(h,{key:0,cols:`12`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(v,{modelValue:s.value[n].value,"onUpdate:modelValue":e=>s.value[n].value=e,label:e.label,"hide-details":``,variant:`underlined`},null,8,[`modelValue`,`onUpdate:modelValue`,`label`])]),_:2},1024)):(0,t.createCommentVNode)(``,!0),e.type===`selects`?((0,t.openBlock)(),(0,t.createBlock)(h,{key:1,cols:`12`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(y,{modelValue:s.value[n].value,"onUpdate:modelValue":e=>s.value[n].value=e,label:e.label,items:e.items,"hide-details":``,variant:`underlined`},null,8,[`modelValue`,`onUpdate:modelValue`,`label`,`items`])]),_:2},1024)):(0,t.createCommentVNode)(``,!0),e.type===`date`&&Array.isArray(s.value[n].value)?((0,t.openBlock)(),(0,t.createBlock)(h,{key:2,cols:`12`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(ox,{modelValue:s.value[n].value,"onUpdate:modelValue":e=>s.value[n].value=e,input:{...u,label:e?.label??``}},null,8,[`modelValue`,`onUpdate:modelValue`,`input`])]),_:2},1024)):(0,t.createCommentVNode)(``,!0),e.type===`dateTime`&&Array.isArray(s.value[n].value)?((0,t.openBlock)(),(0,t.createBlock)(h,{key:3,cols:`12`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(ox,{modelValue:s.value[n].value,"onUpdate:modelValue":e=>s.value[n].value=e,input:{...l,label:e?.label??``}},null,8,[`modelValue`,`onUpdate:modelValue`,`input`])]),_:2},1024)):(0,t.createCommentVNode)(``,!0),d(e.type,s.value[n].value)?((0,t.openBlock)(),(0,t.createBlock)(h,{key:4,cols:`12`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(g,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(h,{cols:`2`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(y,{modelValue:s.value[n].value.symbol,"onUpdate:modelValue":e=>s.value[n].value.symbol=e,"hide-details":``,items:[`<`,`<=`,`=`,`>`,`>=`],variant:`underlined`},null,8,[`modelValue`,`onUpdate:modelValue`])]),_:2},1024),(0,t.createVNode)(h,{cols:`10`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(v,{modelValue:s.value[n].value.value,"onUpdate:modelValue":e=>s.value[n].value.value=e,modelModifiers:{number:!0},type:`number`,"hide-details":``,label:e.label,variant:`underlined`},null,8,[`modelValue`,`onUpdate:modelValue`,`label`])]),_:2},1024)]),_:2},1024)]),_:2},1024)):(0,t.createCommentVNode)(``,!0)]),_:2},1024))),128))]),_:1}),(0,t.createVNode)(x,{class:`ma-2`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(g,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(h,{class:`d-flex justify-start`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(r,{color:`error`,variant:`flat`,onClick:n[2]||=e=>i.value=!1},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)((0,t.unref)(a).t(`table.cancel`)),1)]),_:1})]),_:1}),(0,t.createVNode)(h,{class:`d-flex justify-end`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(r,{color:`success`,variant:`flat`,onClick:p},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)((0,t.unref)(a).t(`table.submit`)),1)]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,[`modelValue`])])}}}),QQ=(0,t.defineComponent)({__name:`DialogColumns`,props:{headers:{}},emits:[`submit`],setup(e,{emit:n}){let r=e,i=Hs(),a=n,o=(0,t.ref)([]),s=(0,t.ref)(!1),c=(0,t.ref)(0),l=(0,t.ref)(0),u=(0,t.ref)(0),d=(0,t.ref)(0),f=(0,t.ref)(0),p=(0,t.ref)(0),m=(0,t.ref)(null),h=(e,t)=>{u.value=e.clientX,d.value=e.clientY;let n=document.querySelector(`.list_draggable`)?.getBoundingClientRect();f.value=e.clientX-(n?.left??0)-20,p.value=e.clientY-(n?.top??0)-20,m.value=t},g=(e,t)=>{if(e.preventDefault(),m.value&&m.value!==t){let e=o.value.findIndex(e=>e.value===t.value),n=o.value.findIndex(e=>e.value===m.value?.value);e!==-1&&n!==-1&&(o.value.splice(n,1),o.value.splice(e,0,m.value))}m.value=null},_=e=>{m.value&&(c.value=e.clientX-u.value+f.value,l.value=e.clientY-d.value+p.value)},v=()=>{a(`submit`,o.value.map(e=>(e.hidden=!e?.show,e))),s.value=!1};return(0,t.onBeforeMount)(()=>{o.value=[...r.headers],o.value=o.value.map(e=>(Object.assign(e,{show:!e?.hidden}),e))}),(e,n)=>{let r=(0,t.resolveComponent)(`v-btn`),a=(0,t.resolveComponent)(`v-col`),u=(0,t.resolveComponent)(`v-row`),d=(0,t.resolveComponent)(`v-card-title`),f=(0,t.resolveComponent)(`v-switch`),p=(0,t.resolveComponent)(`v-list-item`),y=(0,t.resolveComponent)(`v-list`),b=(0,t.resolveComponent)(`v-card-text`),x=(0,t.resolveComponent)(`v-card-actions`),S=(0,t.resolveComponent)(`v-card`),C=(0,t.resolveComponent)(`v-dialog`);return(0,t.openBlock)(),(0,t.createBlock)(C,{modelValue:s.value,"onUpdate:modelValue":n[2]||=e=>s.value=e,"max-width":`450`},{activator:(0,t.withCtx)(({props:e})=>[(0,t.createVNode)(r,(0,t.mergeProps)({elevation:`0`},e,{style:{"margin-left":`-14px`},class:`text-md-body-large`}),{default:(0,t.withCtx)(()=>[n[3]||=(0,t.createElementVNode)(`i`,{class:`icon icon-columns-3 mr-1`},null,-1),(0,t.createTextVNode)(` `+(0,t.toDisplayString)((0,t.unref)(i).t(`table.columns`)),1)]),_:1},16)]),default:(0,t.withCtx)(()=>[(0,t.createVNode)(S,{class:`list_draggable`,onMousemove:_},{default:(0,t.withCtx)(()=>[m.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,class:`floating-drag-item`,style:(0,t.normalizeStyle)(`top:${l.value}px;left:${c.value}px`)},(0,t.toDisplayString)(m.value.title),5)):(0,t.createCommentVNode)(``,!0),(0,t.createVNode)(d,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(u,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(a,{cols:`11`},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)((0,t.unref)(i).t(`table.columns`)),1)]),_:1}),(0,t.createVNode)(a,{cols:`1`,class:`d-flex justify-end`},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`i`,{class:`icon icon-x`,style:{cursor:`pointer`},onClick:n[0]||=e=>s.value=!1})]),_:1})]),_:1})]),_:1}),(0,t.createVNode)(b,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(y,{style:{background:`transparent`}},{default:(0,t.withCtx)(()=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(o.value,(e,r)=>((0,t.openBlock)(),(0,t.createBlock)(p,{key:r,class:`draggable-item`,onMousedown:(0,t.withModifiers)(t=>h(t,e),[`left`]),onMouseup:(0,t.withModifiers)(t=>g(t,e),[`left`])},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(u,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(a,{cols:`2`,class:`d-flex justify-content-start align-items-center`,style:{"margin-top":`-15px`}},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(f,{modelValue:e.show,"onUpdate:modelValue":t=>e.show=t,"hide-details":``,color:`primary`},null,8,[`modelValue`,`onUpdate:modelValue`])]),_:2},1024),(0,t.createVNode)(a,{cols:`7`,class:`d-flex align-items-center`},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.title),1)]),_:2},1024),(0,t.createVNode)(a,{cols:`3`,class:`d-flex justify-content-end align-items-center`},{default:(0,t.withCtx)(()=>[...n[4]||=[(0,t.createElementVNode)(`i`,{class:`icon icon-grip-horizontal`},null,-1)]]),_:1})]),_:2},1024)]),_:2},1032,[`onMousedown`,`onMouseup`]))),128))]),_:1})]),_:1}),(0,t.createVNode)(x,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(u,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(a,{class:`d-flex justify-start`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(r,{color:`error`,onClick:n[1]||=e=>s.value=!1},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)((0,t.unref)(i).t(`table.cancel`)),1)]),_:1})]),_:1}),(0,t.createVNode)(a,{class:`d-flex justify-end`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(r,{color:`success`,onClick:v},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)((0,t.unref)(i).t(`table.submit`)),1)]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,[`modelValue`])}}}),$Q=l(((e,t)=>{(function(n,r){typeof e==`object`&&typeof t==`object`?t.exports=r():typeof define==`function`&&define.amd?define([],r):typeof e==`object`?e.printJS=r():n.printJS=r()})(window,function(){return(function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){typeof Symbol<`u`&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:`Module`}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(t&1&&(e=n(e)),t&8||t&4&&typeof e==`object`&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),t&2&&typeof e!=`string`)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,`a`,t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p=``,n(n.s=0)})({"./src/index.js":(function(e,t,n){"use strict";n.r(t),n(`./src/sass/index.scss`);var r=n(`./src/js/init.js`).default.init;typeof window<`u`&&(window.printJS=r),t.default=r}),"./src/js/browser.js":(function(e,t,n){"use strict";n.r(t);var r={isFirefox:function(){return typeof InstallTrigger<`u`},isIE:function(){return navigator.userAgent.indexOf(`MSIE`)!==-1||!!document.documentMode},isEdge:function(){return!r.isIE()&&!!window.StyleMedia},isChrome:function(){return!!(arguments.length>0&&arguments[0]!==void 0?arguments[0]:window).chrome},isSafari:function(){return Object.prototype.toString.call(window.HTMLElement).indexOf(`Constructor`)>0||navigator.userAgent.toLowerCase().indexOf(`safari`)!==-1},isIOSChrome:function(){return navigator.userAgent.toLowerCase().indexOf(`crios`)!==-1}};t.default=r}),"./src/js/functions.js":(function(e,t,n){"use strict";n.r(t),n.d(t,`addWrapper`,function(){return o}),n.d(t,`capitalizePrint`,function(){return s}),n.d(t,`collectStyles`,function(){return c}),n.d(t,`addHeader`,function(){return u}),n.d(t,`cleanUp`,function(){return d}),n.d(t,`isRawHTML`,function(){return f});var r=n(`./src/js/modal.js`),i=n(`./src/js/browser.js`);function a(e){"@babel/helpers - typeof";return a=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},a(e)}function o(e,t){return`<div style="`+(`font-family:`+t.font+` !important; font-size: `+t.font_size+` !important; width:100%;`)+`">`+e+`</div>`}function s(e){return e.charAt(0).toUpperCase()+e.slice(1)}function c(e,t){for(var n=document.defaultView||window,r=``,i=n.getComputedStyle(e,``),a=0;a<i.length;a++)(t.targetStyles.indexOf(`*`)!==-1||t.targetStyle.indexOf(i[a])!==-1||l(t.targetStyles,i[a]))&&i.getPropertyValue(i[a])&&(r+=i[a]+`:`+i.getPropertyValue(i[a])+`;`);return r+=`max-width: `+t.maxWidth+`px !important; font-size: `+t.font_size+` !important;`,r}function l(e,t){for(var n=0;n<e.length;n++)if(a(t)===`object`&&t.indexOf(e[n])!==-1)return!0;return!1}function u(e,t){var n=document.createElement(`div`);if(f(t.header))n.innerHTML=t.header;else{var r=document.createElement(`h1`),i=document.createTextNode(t.header);r.appendChild(i),r.setAttribute(`style`,t.headerStyle),n.appendChild(r)}e.insertBefore(n,e.childNodes[0])}function d(e){e.showModal&&r.default.close(),e.onLoadingEnd&&e.onLoadingEnd(),(e.showModal||e.onLoadingStart)&&window.URL.revokeObjectURL(e.printable);var t=`mouseover`;(i.default.isChrome()||i.default.isFirefox())&&(t=`focus`),window.addEventListener(t,function n(){window.removeEventListener(t,n),e.onPrintDialogClose();var r=document.getElementById(e.frameId);r&&r.remove()})}function f(e){return RegExp(`<([A-Za-z][A-Za-z0-9]*)\\b[^>]*>(.*?)</\\1>`).test(e)}}),"./src/js/html.js":(function(e,t,n){"use strict";n.r(t);var r=n(`./src/js/functions.js`),i=n(`./src/js/print.js`);function a(e){"@babel/helpers - typeof";return a=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},a(e)}t.default={print:function(e,t){var n=s(e.printable)?e.printable:document.getElementById(e.printable);if(!n){window.console.error(`Invalid HTML element id: `+e.printable);return}e.printableElement=o(n,e),e.header&&(0,r.addHeader)(e.printableElement,e),i.default.send(e,t)}};function o(e,t){for(var n=e.cloneNode(),i=Array.prototype.slice.call(e.childNodes),a=0;a<i.length;a++)if(t.ignoreElements.indexOf(i[a].id)===-1){var s=o(i[a],t);n.appendChild(s)}switch(t.scanStyles&&e.nodeType===1&&n.setAttribute(`style`,(0,r.collectStyles)(e,t)),e.tagName){case`SELECT`:n.value=e.value;break;case`CANVAS`:n.getContext(`2d`).drawImage(e,0,0);break}return n}function s(e){return a(e)===`object`&&e&&(e instanceof HTMLElement||e.nodeType===1)}}),"./src/js/image.js":(function(e,t,n){"use strict";n.r(t);var r=n(`./src/js/functions.js`),i=n(`./src/js/print.js`),a=n(`./src/js/browser.js`);t.default={print:function(e,t){e.printable.constructor!==Array&&(e.printable=[e.printable]),e.printableElement=document.createElement(`div`),e.printable.forEach(function(t){var n=document.createElement(`img`);n.setAttribute(`style`,e.imageStyle),n.src=t,a.default.isFirefox()&&(n.src=n.src);var r=document.createElement(`div`);r.appendChild(n),e.printableElement.appendChild(r)}),e.header&&(0,r.addHeader)(e.printableElement,e),i.default.send(e,t)}}}),"./src/js/init.js":(function(e,t,n){"use strict";n.r(t);var r=n(`./src/js/browser.js`),i=n(`./src/js/modal.js`),a=n(`./src/js/pdf.js`),o=n(`./src/js/html.js`),s=n(`./src/js/raw-html.js`),c=n(`./src/js/image.js`),l=n(`./src/js/json.js`);function u(e){"@babel/helpers - typeof";return u=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},u(e)}var d=[`pdf`,`html`,`image`,`json`,`raw-html`];t.default={init:function(){var e={printable:null,fallbackPrintable:null,type:`pdf`,header:null,headerStyle:`font-weight: 300;`,maxWidth:800,properties:null,gridHeaderStyle:`font-weight: bold; padding: 5px; border: 1px solid #dddddd;`,gridStyle:`border: 1px solid lightgray; margin-bottom: -1px;`,showModal:!1,onError:function(e){throw e},onLoadingStart:null,onLoadingEnd:null,onPrintDialogClose:function(){},onIncompatibleBrowser:function(){},modalMessage:`Retrieving Document...`,frameId:`printJS`,printableElement:null,documentTitle:`Document`,targetStyle:[`clear`,`display`,`width`,`min-width`,`height`,`min-height`,`max-height`],targetStyles:[`border`,`box`,`break`,`text-decoration`],ignoreElements:[],repeatTableHeader:!0,css:null,style:null,scanStyles:!0,base64:!1,onPdfOpen:null,font:`TimesNewRoman`,font_size:`12pt`,honorMarginPadding:!0,honorColor:!1,imageStyle:`max-width: 100%;`},t=arguments[0];if(t===void 0)throw Error(`printJS expects at least 1 attribute.`);switch(u(t)){case`string`:e.printable=encodeURI(t),e.fallbackPrintable=e.printable,e.type=arguments[1]||e.type;break;case`object`:for(var n in e.printable=t.printable,e.fallbackPrintable=t.fallbackPrintable===void 0?e.printable:t.fallbackPrintable,e.fallbackPrintable=e.base64?`data:application/pdf;base64,${e.fallbackPrintable}`:e.fallbackPrintable,e)n===`printable`||n===`fallbackPrintable`||(e[n]=t[n]===void 0?e[n]:t[n]);break;default:throw Error(`Unexpected argument type! Expected "string" or "object", got `+u(t))}if(!e.printable)throw Error(`Missing printable information.`);if(!e.type||typeof e.type!=`string`||d.indexOf(e.type.toLowerCase())===-1)throw Error(`Invalid print type. Available types are: pdf, html, image and json.`);e.showModal&&i.default.show(e),e.onLoadingStart&&e.onLoadingStart();var f=document.getElementById(e.frameId);f&&f.parentNode.removeChild(f);var p=document.createElement(`iframe`);switch(r.default.isFirefox()?p.setAttribute(`style`,`width: 1px; height: 100px; position: fixed; left: 0; top: 0; opacity: 0; border-width: 0; margin: 0; padding: 0`):p.setAttribute(`style`,`visibility: hidden; height: 0; width: 0; position: absolute; border: 0`),p.setAttribute(`id`,e.frameId),e.type!==`pdf`&&(p.srcdoc=`<html><head><title>`+e.documentTitle+`</title>`,e.css&&(Array.isArray(e.css)||(e.css=[e.css]),e.css.forEach(function(e){p.srcdoc+=`<link rel="stylesheet" href="`+e+`">`})),p.srcdoc+=`</head><body></body></html>`),e.type){case`pdf`:if(r.default.isIE())try{console.info(`Print.js doesn't support PDF printing in Internet Explorer.`),window.open(e.fallbackPrintable,`_blank`).focus(),e.onIncompatibleBrowser()}catch(t){e.onError(t)}finally{e.showModal&&i.default.close(),e.onLoadingEnd&&e.onLoadingEnd()}else a.default.print(e,p);break;case`image`:c.default.print(e,p);break;case`html`:o.default.print(e,p);break;case`raw-html`:s.default.print(e,p);break;case`json`:l.default.print(e,p);break}}}}),"./src/js/json.js":(function(e,t,n){"use strict";n.r(t);var r=n(`./src/js/functions.js`),i=n(`./src/js/print.js`);function a(e){"@babel/helpers - typeof";return a=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},a(e)}t.default={print:function(e,t){if(a(e.printable)!==`object`)throw Error(`Invalid javascript data object (JSON).`);if(typeof e.repeatTableHeader!=`boolean`)throw Error(`Invalid value for repeatTableHeader attribute (JSON).`);if(!e.properties||!Array.isArray(e.properties))throw Error(`Invalid properties array for your JSON data.`);e.properties=e.properties.map(function(t){return{field:a(t)===`object`?t.field:t,displayName:a(t)===`object`?t.displayName:t,columnSize:a(t)===`object`&&t.columnSize?t.columnSize+`;`:100/e.properties.length+`%;`}}),e.printableElement=document.createElement(`div`),e.header&&(0,r.addHeader)(e.printableElement,e),e.printableElement.innerHTML+=o(e),i.default.send(e,t)}};function o(e){var t=e.printable,n=e.properties,i=`<table style="border-collapse: collapse; width: 100%;">`;e.repeatTableHeader&&(i+=`<thead>`),i+=`<tr>`;for(var a=0;a<n.length;a++)i+=`<th style="width:`+n[a].columnSize+`;`+e.gridHeaderStyle+`">`+(0,r.capitalizePrint)(n[a].displayName)+`</th>`;i+=`</tr>`,e.repeatTableHeader&&(i+=`</thead>`),i+=`<tbody>`;for(var o=0;o<t.length;o++){i+=`<tr>`;for(var s=0;s<n.length;s++){var c=t[o],l=n[s].field.split(`.`);if(l.length>1)for(var u=0;u<l.length;u++)c=c[l[u]];else c=c[n[s].field];i+=`<td style="width:`+n[s].columnSize+e.gridStyle+`">`+c+`</td>`}i+=`</tr>`}return i+=`</tbody></table>`,i}}),"./src/js/modal.js":(function(e,t,n){"use strict";n.r(t);var r={show:function(e){var t=`font-family:sans-serif; display:table; text-align:center; font-weight:300; font-size:30px; left:0; top:0;position:fixed; z-index: 9990;color: #0460B5; width: 100%; height: 100%; background-color:rgba(255,255,255,.9);transition: opacity .3s ease;`,n=document.createElement(`div`);n.setAttribute(`style`,t),n.setAttribute(`id`,`printJS-Modal`);var i=document.createElement(`div`);i.setAttribute(`style`,`display:table-cell; vertical-align:middle; padding-bottom:100px;`);var a=document.createElement(`div`);a.setAttribute(`class`,`printClose`),a.setAttribute(`id`,`printClose`),i.appendChild(a);var o=document.createElement(`span`);o.setAttribute(`class`,`printSpinner`),i.appendChild(o);var s=document.createTextNode(e.modalMessage);i.appendChild(s),n.appendChild(i),document.getElementsByTagName(`body`)[0].appendChild(n),document.getElementById(`printClose`).addEventListener(`click`,function(){r.close()})},close:function(){var e=document.getElementById(`printJS-Modal`);e&&e.parentNode.removeChild(e)}};t.default=r}),"./src/js/pdf.js":(function(e,t,n){"use strict";n.r(t);var r=n(`./src/js/print.js`),i=n(`./src/js/functions.js`);t.default={print:function(e,t){if(e.base64){a(e,t,Uint8Array.from(atob(e.printable),function(e){return e.charCodeAt(0)}));return}e.printable=/^(blob|http|\/\/)/i.test(e.printable)?e.printable:window.location.origin+(e.printable.charAt(0)===`/`?e.printable:`/`+e.printable);var n=new window.XMLHttpRequest;n.responseType=`arraybuffer`,n.addEventListener(`error`,function(){(0,i.cleanUp)(e),e.onError(n.statusText,n)}),n.addEventListener(`load`,function(){if([200,201].indexOf(n.status)===-1){(0,i.cleanUp)(e),e.onError(n.statusText,n);return}a(e,t,n.response)}),n.open(`GET`,e.printable,!0),n.send()}};function a(e,t,n){var i=new window.Blob([n],{type:`application/pdf`});i=window.URL.createObjectURL(i),t.setAttribute(`src`,i),r.default.send(e,t)}}),"./src/js/print.js":(function(e,t,n){"use strict";n.r(t);var r=n(`./src/js/browser.js`),i=n(`./src/js/functions.js`),a={send:function(e,t){document.getElementsByTagName(`body`)[0].appendChild(t);var n=document.getElementById(e.frameId);n.onload=function(){if(e.type===`pdf`){r.default.isFirefox()?setTimeout(function(){return o(n,e)},1e3):o(n,e);return}var t=n.contentWindow||n.contentDocument;if(t.document&&(t=t.document),t.body.appendChild(e.printableElement),e.type!==`pdf`&&e.style){var i=document.createElement(`style`);i.innerHTML=e.style,t.head.appendChild(i)}var a=t.getElementsByTagName(`img`);a.length>0?s(Array.from(a)).then(function(){return o(n,e)}):o(n,e)}}};function o(e,t){try{if(e.focus(),r.default.isEdge()||r.default.isIE())try{e.contentWindow.document.execCommand(`print`,!1,null)}catch{e.contentWindow.print()}else e.contentWindow.print()}catch(e){t.onError(e)}finally{r.default.isFirefox()&&(e.style.visibility=`hidden`,e.style.left=`-1px`),(0,i.cleanUp)(t)}}function s(e){var t=e.map(function(e){if(e.src&&e.src!==window.location.href)return c(e)});return Promise.all(t)}function c(e){return new Promise(function(t){(function n(){!e||e.naturalWidth===void 0||e.naturalWidth===0||!e.complete?setTimeout(n,500):t()})()})}t.default=a}),"./src/js/raw-html.js":(function(e,t,n){"use strict";n.r(t);var r=n(`./src/js/print.js`);t.default={print:function(e,t){e.printableElement=document.createElement(`div`),e.printableElement.setAttribute(`style`,`width:100%`),e.printableElement.innerHTML=e.printable,r.default.send(e,t)}}}),"./src/sass/index.scss":(function(e,t,n){}),0:(function(e,t,n){e.exports=n(`./src/index.js`)})}).default})})),e$=l(((e,t)=>{var n={version:`1.15.0`};n[437]=(function(){for(var e=`\0\x07\b
|
|
3650
3650
|
\v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■\xA0`,t=[],n={},r=0;r!=e.length;++r)e.charCodeAt(r)!==65533&&(n[e.charAt(r)]=r),t[r]=e.charAt(r);return{enc:n,dec:t}})(),n[620]=(function(){for(var e=`\0\x07\b
|
|
3651
3651
|
\v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~ÇüéâäàąçêëèïîćÄĄĘęłôöĆûùŚÖܢ٥śƒŹŻóÓńŃźż¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■\xA0`,t=[],n={},r=0;r!=e.length;++r)e.charCodeAt(r)!==65533&&(n[e.charAt(r)]=r),t[r]=e.charAt(r);return{enc:n,dec:t}})(),n[737]=(function(){for(var e=`\0\x07\b
|
|
3652
3652
|
\v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩαβγδεζηθικλμνξοπρσςτυφχψ░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀ωάέήϊίόύϋώΆΈΉΊΌΎΏ±≥≤ΪΫ÷≈°∙·√ⁿ²■\xA0`,t=[],n={},r=0;r!=e.length;++r)e.charCodeAt(r)!==65533&&(n[e.charAt(r)]=r),t[r]=e.charAt(r);return{enc:n,dec:t}})(),n[850]=(function(){for(var e=`\0\x07\b
|
|
@@ -4103,5 +4103,5 @@ You tried to parse SCSS with the standard CSS parser; try again with the postcss
|
|
|
4103
4103
|
You tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser`:/\.less$/i.test(t.from)&&(e.message+=`
|
|
4104
4104
|
You tried to parse Less with the standard CSS parser; try again with the postcss-less parser`)),e}return n.root}t.exports=a,a.default=a,n.registerParse(a)})),v1=l(((e,t)=>{var n=class{constructor(e,t={}){if(this.type=`warning`,this.text=e,t.node&&t.node.source){let e=t.node.rangeBy(t);this.line=e.start.line,this.column=e.start.column,this.endLine=e.end.line,this.endColumn=e.end.column}for(let e in t)this[e]=t[e]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+`: `+this.text:this.text}};t.exports=n,n.default=n})),y1=l(((e,t)=>{var n=v1(),r=class{get content(){return this.css}constructor(e,t,n){this.processor=e,this.messages=[],this.root=t,this.opts=n,this.css=``,this.map=void 0}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let r=new n(e,t);return this.messages.push(r),r}warnings(){return this.messages.filter(e=>e.type===`warning`)}};t.exports=r,r.default=r})),b1=l(((e,t)=>{var n={};t.exports=function(e){n[e]||(n[e]=!0,typeof console<`u`&&console.warn&&console.warn(e))}})),x1=l(((e,t)=>{var n=i1(),r=o1(),i=m1(),a=_1(),o=y1(),s=u1(),c=$$(),{isClean:l,my:u}=e1(),d=b1(),f={atrule:`AtRule`,comment:`Comment`,decl:`Declaration`,document:`Document`,root:`Root`,rule:`Rule`},p={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},m={Once:!0,postcssPlugin:!0,prepare:!0},h=0;function g(e){return typeof e==`object`&&typeof e.then==`function`}function _(e){let t=!1,n=f[e.type];return e.type===`decl`?t=e.prop.toLowerCase():e.type===`atrule`&&(t=e.name.toLowerCase()),t&&e.append?[n,n+`-`+t,h,n+`Exit`,n+`Exit-`+t]:t?[n,n+`-`+t,n+`Exit`,n+`Exit-`+t]:e.append?[n,h,n+`Exit`]:[n,n+`Exit`]}function v(e){let t;return t=e.type===`document`?[`Document`,h,`DocumentExit`]:e.type===`root`?[`Root`,h,`RootExit`]:_(e),{eventIndex:0,events:t,iterator:0,node:e,visitorIndex:0,visitors:[]}}function y(e){return e[l]=!1,e.nodes&&e.nodes.forEach(e=>y(e)),e}var b={},x=class e{get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return`LazyResult`}constructor(t,r,i){this.stringified=!1,this.processed=!1;let s;if(typeof r==`object`&&r&&(r.type===`root`||r.type===`document`))s=y(r);else if(r instanceof e||r instanceof o)s=y(r.root),r.map&&(i.map===void 0&&(i.map={}),i.map.inline||(i.map.inline=!1),i.map.prev=r.map);else{let e=a;i.syntax&&(e=i.syntax.parse),i.parser&&(e=i.parser),e.parse&&(e=e.parse);try{s=e(r,i)}catch(e){this.processed=!0,this.error=e}s&&!s[u]&&n.rebuild(s)}this.result=new o(t,s,i),this.helpers={...b,postcss:b,result:this.result},this.plugins=this.processor.plugins.map(e=>typeof e==`object`&&e.prepare?{...e,...e.prepare(this.result)}:e)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||=this.runAsync(),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw Error(`Use process(css).then(cb) to work with async plugins`)}handleError(e,t){let n=this.result.lastPlugin;try{if(t&&t.addToError(e),this.error=e,e.name===`CssSyntaxError`&&!e.plugin)e.plugin=n.postcssPlugin,e.setMessage();else if(n.postcssVersion&&process.env.NODE_ENV!==`production`){let e=n.postcssPlugin,t=n.postcssVersion,r=this.result.processor.version,i=t.split(`.`),a=r.split(`.`);(i[0]!==a[0]||parseInt(i[1])>parseInt(a[1]))&&console.error(`Unknown error from PostCSS plugin. Your current PostCSS version is `+r+`, but `+e+` uses `+t+`. Perhaps this is the source of the error below.`)}}catch(e){console&&console.error&&console.error(e)}return e}prepareVisitors(){this.listeners={};let e=(e,t,n)=>{this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push([e,n])};for(let t of this.plugins)if(typeof t==`object`)for(let n in t){if(!p[n]&&/^[A-Z]/.test(n))throw Error(`Unknown event ${n} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!m[n])if(typeof t[n]==`object`)for(let r in t[n])r===`*`?e(t,n,t[n][r]):e(t,n+`-`+r.toLowerCase(),t[n][r]);else typeof t[n]==`function`&&e(t,n,t[n])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],n=this.runOnRoot(t);if(g(n))try{await n}catch(e){throw this.handleError(e)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[l];){e[l]=!0;let t=[v(e)];for(;t.length>0;){let e=this.visitTick(t);if(g(e))try{await e}catch(e){let n=t[t.length-1].node;throw this.handleError(e,n)}}}if(this.listeners.OnceExit)for(let[t,n]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if(e.type===`document`){let t=e.nodes.map(e=>n(e,this.helpers));await Promise.all(t)}else await n(e,this.helpers)}catch(e){throw this.handleError(e)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e==`object`&&e.Once){if(this.result.root.type===`document`){let t=this.result.root.nodes.map(t=>e.Once(t,this.helpers));return g(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}else if(typeof e==`function`)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=c;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let n=this.result.root.source;if(e.map===void 0&&!(n&&n.input&&n.input.map)){let e=``;return t(this.result.root,t=>{e+=t}),this.result.css=e,this.result}let r=new i(t,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins)if(g(this.runOnRoot(e)))throw this.getAsyncError();if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[l];)e[l]=!0,this.walkSync(e);if(this.listeners.OnceExit)if(e.type===`document`)for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,t){return process.env.NODE_ENV!==`production`&&(`from`in this.opts||d("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[n,r]of e){this.result.lastPlugin=n;let e;try{e=r(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if(t.type!==`root`&&t.type!==`document`&&!t.parent)return!0;if(g(e))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:n,visitors:r}=t;if(n.type!==`root`&&n.type!==`document`&&!n.parent){e.pop();return}if(r.length>0&&t.visitorIndex<r.length){let[e,i]=r[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===r.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=e;try{return i(n.toProxy(),this.helpers)}catch(e){throw this.handleError(e,n)}}if(t.iterator!==0){let r=t.iterator,i;for(;i=n.nodes[n.indexes[r]];)if(n.indexes[r]+=1,!i[l]){i[l]=!0,e.push(v(i));return}t.iterator=0,delete n.indexes[r]}let i=t.events;for(;t.eventIndex<i.length;){let e=i[t.eventIndex];if(t.eventIndex+=1,e===h){n.nodes&&n.nodes.length&&(n[l]=!0,t.iterator=n.getIterator());return}else if(this.listeners[e]){t.visitors=this.listeners[e];return}}e.pop()}walkSync(e){e[l]=!0;let t=_(e);for(let n of t)if(n===h)e.nodes&&e.each(e=>{e[l]||this.walkSync(e)});else{let t=this.listeners[n];if(t&&this.visitSync(t,e.toProxy()))return}}warnings(){return this.sync().warnings()}};x.registerPostcss=e=>{b=e},t.exports=x,x.default=x,s.registerLazyResult(x),r.registerLazyResult(x)})),S1=l(((e,t)=>{var n=m1(),r=_1(),i=y1(),a=$$(),o=b1(),s=class{get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,t=r;try{e=t(this._css,this._opts)}catch(e){this.error=e}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return`NoWorkResult`}constructor(e,t,r){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;let o=a;this.result=new i(this._processor,void 0,this._opts),this.result.css=t;let s=this;Object.defineProperty(this.result,"root",{get(){return s.root}});let c=new n(o,void 0,this._opts,t);if(c.isMap()){let[e,t]=c.generate();e&&(this.result.css=e),t&&(this.result.map=t)}else c.clearAnnotation(),this.result.css=c.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return process.env.NODE_ENV!==`production`&&(`from`in this._opts||o("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,t)}toString(){return this._css}warnings(){return[]}};t.exports=s,s.default=s})),C1=l(((e,t)=>{var n=o1(),r=x1(),i=S1(),a=u1(),o=class{constructor(e=[]){this.version=`8.5.15`,this.plugins=this.normalize(e)}normalize(e){let t=[];for(let n of e)if(n.postcss===!0?n=n():n.postcss&&(n=n.postcss),typeof n==`object`&&Array.isArray(n.plugins))t=t.concat(n.plugins);else if(typeof n==`object`&&n.postcssPlugin)t.push(n);else if(typeof n==`function`)t.push(n);else if(typeof n==`object`&&(n.parse||n.stringify)){if(process.env.NODE_ENV!==`production`)throw Error(`PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.`)}else throw Error(n+` is not a PostCSS plugin`);return t}process(e,t={}){return!this.plugins.length&&!t.parser&&!t.stringifier&&!t.syntax?new i(this,e,t):new r(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};t.exports=o,o.default=o,a.registerProcessor(o),n.registerProcessor(o)})),w1=l(((e,t)=>{var n=a1(),r=n1(),i=i1(),a=Z$(),o=r1(),s=o1(),c=p1(),l=l1(),u=x1(),d=d1(),f=t1(),p=_1(),m=C1(),h=y1(),g=u1(),_=f1(),v=$$(),y=v1();function b(...e){return e.length===1&&Array.isArray(e[0])&&(e=e[0]),new m(e)}b.plugin=function(e,t){let n=!1;function r(...r){console&&console.warn&&!n&&(n=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
|
|
4105
4105
|
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith(`cn`)&&console.warn(e+`: 里面 postcss.plugin 被弃用. 迁移指南:
|
|
4106
|
-
https://www.w3ctech.com/topic/2226`));let i=t(...r);return i.postcssPlugin=e,i.postcssVersion=new m().version,i}let i;return Object.defineProperty(r,"postcss",{get(){return i||=r(),i}}),r.process=function(e,t,n){return b([r(n)]).process(e,t)},r},b.stringify=v,b.parse=p,b.fromJSON=c,b.list=d,b.comment=e=>new r(e),b.atRule=e=>new n(e),b.decl=e=>new o(e),b.rule=e=>new _(e),b.root=e=>new g(e),b.document=e=>new s(e),b.CssSyntaxError=a,b.Declaration=o,b.Container=i,b.Processor=m,b.Document=s,b.Comment=r,b.Warning=y,b.AtRule=n,b.Result=h,b.Input=l,b.Rule=_,b.Root=g,b.Node=f,u.registerPostcss(b),t.exports=b,b.default=b})),T1=l(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs=r()})(e,(function(){"use strict";var e=1e3,t=6e4,n=36e5,r=`millisecond`,i=`second`,a=`minute`,o=`hour`,s=`day`,c=`week`,l=`month`,u=`quarter`,d=`year`,f=`date`,p=`Invalid Date`,m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:`en`,weekdays:`Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday`.split(`_`),months:`January_February_March_April_May_June_July_August_September_October_November_December`.split(`_`),ordinal:function(e){var t=[`th`,`st`,`nd`,`rd`],n=e%100;return`[`+e+(t[(n-20)%10]||t[n]||t[0])+`]`}},_=function(e,t,n){var r=String(e);return!r||r.length>=t?e:``+Array(t+1-r.length).join(n)+e},v={s:_,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?`+`:`-`)+_(r,2,`0`)+`:`+_(i,2,`0`)},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,l),a=n-i<0,o=t.clone().add(r+(a?-1:1),l);return+(-(r+(n-i)/(a?i-o:o-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:d,w:c,d:s,D:f,h:o,m:a,s:i,ms:r,Q:u}[e]||String(e||``).toLowerCase().replace(/s$/,``)},u:function(e){return e===void 0}},y=`en`,b={};b[y]=g;var x=`$isDayjsObject`,S=function(e){return e instanceof E||!(!e||!e[x])},C=function e(t,n,r){var i;if(!t)return y;if(typeof t==`string`){var a=t.toLowerCase();b[a]&&(i=a),n&&(b[a]=n,i=a);var o=t.split(`-`);if(!i&&o.length>1)return e(o[0])}else{var s=t.name;b[s]=t,i=s}return!r&&i&&(y=i),i||!r&&y},w=function(e,t){if(S(e))return e.clone();var n=typeof t==`object`?t:{};return n.date=e,n.args=arguments,new E(n)},T=v;T.l=C,T.i=S,T.w=function(e,t){return w(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var E=function(){function g(e){this.$L=C(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0}var _=g.prototype;return _.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(t===null)return new Date(NaN);if(T.u(t))return new Date;if(t instanceof Date)return new Date(t);if(typeof t==`string`&&!/Z$/i.test(t)){var r=t.match(m);if(r){var i=r[2]-1||0,a=(r[7]||`0`).substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)}(e),this.init()},_.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},_.$utils=function(){return T},_.isValid=function(){return this.$d.toString()!==p},_.isSame=function(e,t){var n=w(e);return this.startOf(t)<=n&&n<=this.endOf(t)},_.isAfter=function(e,t){return w(e)<this.startOf(t)},_.isBefore=function(e,t){return this.endOf(t)<w(e)},_.$g=function(e,t,n){return T.u(e)?this[t]:this.set(n,e)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(e,t){var n=this,r=!!T.u(t)||t,u=T.p(e),p=function(e,t){var i=T.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?i:i.endOf(s)},m=function(e,t){return T.w(n.toDate()[e].apply(n.toDate(`s`),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},h=this.$W,g=this.$M,_=this.$D,v=`set`+(this.$u?`UTC`:``);switch(u){case d:return r?p(1,0):p(31,11);case l:return r?p(1,g):p(0,g+1);case c:var y=this.$locale().weekStart||0,b=(h<y?h+7:h)-y;return p(r?_-b:_+(6-b),g);case s:case f:return m(v+`Hours`,0);case o:return m(v+`Minutes`,1);case a:return m(v+`Seconds`,2);case i:return m(v+`Milliseconds`,3);default:return this.clone()}},_.endOf=function(e){return this.startOf(e,!1)},_.$set=function(e,t){var n,c=T.p(e),u=`set`+(this.$u?`UTC`:``),p=(n={},n[s]=u+`Date`,n[f]=u+`Date`,n[l]=u+`Month`,n[d]=u+`FullYear`,n[o]=u+`Hours`,n[a]=u+`Minutes`,n[i]=u+`Seconds`,n[r]=u+`Milliseconds`,n)[c],m=c===s?this.$D+(t-this.$W):t;if(c===l||c===d){var h=this.clone().set(f,1);h.$d[p](m),h.init(),this.$d=h.set(f,Math.min(this.$D,h.daysInMonth())).$d}else p&&this.$d[p](m);return this.init(),this},_.set=function(e,t){return this.clone().$set(e,t)},_.get=function(e){return this[T.p(e)]()},_.add=function(r,u){var f,p=this;r=Number(r);var m=T.p(u),h=function(e){var t=w(p);return T.w(t.date(t.date()+Math.round(e*r)),p)};if(m===l)return this.set(l,this.$M+r);if(m===d)return this.set(d,this.$y+r);if(m===s)return h(1);if(m===c)return h(7);var g=(f={},f[a]=t,f[o]=n,f[i]=e,f)[m]||1,_=this.$d.getTime()+r*g;return T.w(_,this)},_.subtract=function(e,t){return this.add(-1*e,t)},_.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||`YYYY-MM-DDTHH:mm:ssZ`,i=T.z(this),a=this.$H,o=this.$m,s=this.$M,c=n.weekdays,l=n.months,u=n.meridiem,d=function(e,n,i,a){return e&&(e[n]||e(t,r))||i[n].slice(0,a)},f=function(e){return T.s(a%12||12,e,`0`)},m=u||function(e,t,n){var r=e<12?`AM`:`PM`;return n?r.toLowerCase():r};return r.replace(h,(function(e,r){return r||function(e){switch(e){case`YY`:return String(t.$y).slice(-2);case`YYYY`:return T.s(t.$y,4,`0`);case`M`:return s+1;case`MM`:return T.s(s+1,2,`0`);case`MMM`:return d(n.monthsShort,s,l,3);case`MMMM`:return d(l,s);case`D`:return t.$D;case`DD`:return T.s(t.$D,2,`0`);case`d`:return String(t.$W);case`dd`:return d(n.weekdaysMin,t.$W,c,2);case`ddd`:return d(n.weekdaysShort,t.$W,c,3);case`dddd`:return c[t.$W];case`H`:return String(a);case`HH`:return T.s(a,2,`0`);case`h`:return f(1);case`hh`:return f(2);case`a`:return m(a,o,!0);case`A`:return m(a,o,!1);case`m`:return String(o);case`mm`:return T.s(o,2,`0`);case`s`:return String(t.$s);case`ss`:return T.s(t.$s,2,`0`);case`SSS`:return T.s(t.$ms,3,`0`);case`Z`:return i}return null}(e)||i.replace(`:`,``)}))},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(r,f,p){var m,h=this,g=T.p(f),_=w(r),v=(_.utcOffset()-this.utcOffset())*t,y=this-_,b=function(){return T.m(h,_)};switch(g){case d:m=b()/12;break;case l:m=b();break;case u:m=b()/3;break;case c:m=(y-v)/6048e5;break;case s:m=(y-v)/864e5;break;case o:m=y/n;break;case a:m=y/t;break;case i:m=y/e;break;default:m=y}return p?m:T.a(m)},_.daysInMonth=function(){return this.endOf(l).$D},_.$locale=function(){return b[this.$L]},_.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=C(e,t,!0);return r&&(n.$L=r),n},_.clone=function(){return T.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},g}(),D=E.prototype;return w.prototype=D,[[`$ms`,r],[`$s`,i],[`$m`,a],[`$H`,o],[`$W`,s],[`$M`,l],[`$y`,d],[`$D`,f]].forEach((function(e){D[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),w.extend=function(e,t){return e.$i||=(e(t,E,w),!0),w},w.locale=C,w.isDayjs=S,w.unix=function(e){return w(1e3*e)},w.en=b[y],w.Ls=b,w.p={},w}))})),E1=l(((e,t)=>{var n=T1();function r(e){for(e=e.replace(/[\x00-\x20]+/g,``);;){let t=e.indexOf(`<!--`);if(t===-1)break;let n=e.indexOf(`-->`,t+4);if(n===-1)break;e=e.substring(0,t)+e.substring(n+3)}return e}function i(e,t){t||={};let n=t.allowedSchemes||[`http`,`https`,`ftp`,`mailto`,`tel`,`sms`],i=t.allowProtocolRelative!==!1;if(typeof e!=`string`)return!1;e=r(e);let a=e.match(/^([a-zA-Z][a-zA-Z0-9.\-+]*):/);if(!a)return e.match(/^[/\\]{2}/)?!i:!1;let o=a[1].toLowerCase();return n.indexOf(o)===-1}t.exports=function(e){let t={};return t.options=e||{},t.filterTag=t.options.filterTag||function(e){return e=e.trim(),e.toLowerCase()},t.string=function(e,t){return typeof e!=`string`&&(typeof e==`number`||typeof e==`boolean`?e+=``:e=``),e=e.trim(),t!==void 0&&e===``&&(e=t),e},t.strings=function(e){return Array.isArray(e)?e.map(function(e){return t.string(e)}):[]},t.integer=function(e,t,n,r){if(t===void 0&&(t=0),typeof e==`number`)e=Math.floor(e);else try{e=parseInt(e,10),isNaN(e)&&(e=t)}catch{e=t}return typeof n==`number`&&e<n&&(e=n),typeof r==`number`&&e>r&&(e=r),e},t.padInteger=function(e,t){let n=e+``;for(;n.length<t;)n=`0`+n;return n},t.float=function(e,t,n,r){if(t===void 0&&(t=0),typeof e!=`number`)try{e=parseFloat(e,10),isNaN(e)&&(e=t)}catch{e=t}return typeof n==`number`&&e<n&&(e=n),typeof r==`number`&&e>r&&(e=r),e},t.naughtyHref=i,t.url=function(e,n,a){if(e=t.string(e,n),e===n)return e;if(e=r(e),i(e)||(e=o(e),e===null))return n;return e;function o(e){return e.match(/^(((https?|ftp):\/\/)|((mailto|tel|sms):)|#|([^/.]+)?\/|[^/.]+$)/)?e:e.match(/^[^/.]+\.[^/.]+/)?(a?`https://`:`http://`)+e:null}},t.select=function(e,n,r){if(e=t.string(e),!n||!n.length)return r;let i;return typeof n[0]==`object`?(i=n.find(function(t){return t.value===null||t.value===void 0?!1:t.value.toString()===e}),i==null?r:i.value):(i=n.find(function(t){return t==null?!1:t.toString()===e}),i===void 0?r:i)},t.boolean=function(e,n){return e===!0?!0:e===!1?!1:(e=t.string(e,n),e===n?e===void 0?!1:e:(e=e.toLowerCase().charAt(0),e===``||e===`n`||e===`0`||e===`f`?!1:e===`t`||e===`y`||e===`1`))},t.addBooleanFilterToCriteria=function(e,n,r,i){i===void 0&&(i=null);let a=typeof e==`object`&&e?e[n]:e;a=a===void 0?i:a,a=t.booleanOrNull(a),a===null||(a?r[n]=!0:r[n]={$ne:!0})},t.booleanOrNull=function(e,n){return e===!0||e===!1||e===null?e:(e=t.string(e,n),e===n?n===void 0?null:e:e===`null`?null:(e=e.toLowerCase().charAt(0),e===``||e===`n`||e===`0`||e===`f`?!1:e===`t`||e===`y`||e===`1`?!0:e===`a`?null:n))},t.date=function(e,r,i){let a;function o(){return r===void 0&&(r=n().format(`YYYY-MM-DD`)),r}if(typeof e==`string`){if(e.match(/\//)){if(a=e.split(`/`),a.length===2)return(i||new Date).getFullYear()+`-`+t.padInteger(a[0],2)+`-`+t.padInteger(a[1],2);if(a.length===3){if(a[2]<100){let e=i||new Date,t=e.getFullYear()%100,n=e.getFullYear()-t,r=parseInt(a[2])+n;r-e.getFullYear()>50&&(r-=100),a[2]=r}return t.padInteger(a[2],4)+`-`+t.padInteger(a[0],2)+`-`+t.padInteger(a[1],2)}else return o()}else if(e.match(/-/))return a=e.split(`-`),a.length===2?(i||new Date).getFullYear()+`-`+t.padInteger(a[0],2)+`-`+t.padInteger(a[1],2):a.length===3?t.padInteger(a[0],4)+`-`+t.padInteger(a[1],2)+`-`+t.padInteger(a[2],2):o()}try{return e===null||(e=i||new Date(e),isNaN(e.getTime()))?o():e.getFullYear()+`-`+t.padInteger(e.getMonth()+1,2)+`-`+t.padInteger(e.getDate(),2)}catch{return o()}},t.formatDate=function(e){return n(e).format(`YYYY-MM-DD`)},t.time=function(e,r){e=t.string(e).toLowerCase(),e=e.trim();let i=e.match(/^(\d+)([:|.](\d+))?([:|.](\d+))?\s*(am|pm|AM|PM|a|p|A|M)?$/);if(i){let e=parseInt(i[1],10),n=i[3]===void 0?0:parseInt(i[3],10),r=i[5]===void 0?0:parseInt(i[5],10),a=i[6]?i[6].toLowerCase():i[6];return a&&=a.charAt(0),e===12&&a===`a`?e-=12:e===12&&a===`p`||a===`p`&&(e+=12),(e===24||e===`24`)&&(e=0),t.padInteger(e,2)+`:`+t.padInteger(n,2)+`:`+t.padInteger(r,2)}else return r===void 0?n().format(`HH:mm`):r},t.formatTime=function(e){return n(e).format(`HH:mm:ss`)},t.tags=function(e,n){return typeof e==`string`&&(e=e.split(/,\s*/)),Array.isArray(e)?e.map(e=>t.string(e)).map(n||t.filterTag).filter(e=>e.length>0):[]},t.idRegExp=t.options.idRegExp||/^[A-Za-z0-9_]+$/,t.id=function(e,n){let r=t.string(e,n);return r===n||r.match(t.idRegExp)?r:n},t.ids=function(e){return Array.isArray(e)?e.filter(function(e){return t.id(e)!==void 0}):[]},t},t.exports.naughtyHref=i})),D1=f(l(((e,t)=>{var n=G$(),r=K$(),{isPlainObject:i}=q$(),a=J$(),o=Y$(),{parse:s}=w1(),{naughtyHref:c}=E1(),l=[`img`,`audio`,`video`,`picture`,`svg`,`object`,`map`,`iframe`,`embed`],u=[`script`,`style`];function d(e,t){e&&Object.keys(e).forEach(function(n){t(e[n],n)})}function f(e,t){return{}.hasOwnProperty.call(e,t)}function p(e,t){let n=[];return d(e,function(e){t(e)&&n.push(e)}),n}function m(e){for(let t in e)if(f(e,t))return!1;return!0}function h(e){return e.map(function(e){if(!e.url)throw Error(`URL missing`);return e.url+(e.w?` ${e.w}w`:``)+(e.h?` ${e.h}h`:``)+(e.d?` ${e.d}x`:``)}).join(`, `)}t.exports=_;var g=/^[^\0\t\n\f\r /<=>]+$/;function _(e,t,y){if(e==null)return``;typeof e==`number`&&(e=e.toString());let b=``,x=``;function S(e,t){let n=this;this.tag=e,this.attribs=t||{},this.tagPosition=b.length,this.text=``,this.openingTagLength=0,this.mediaChildren=[],this.updateParentNodeText=function(){if(N.length){let e=N[N.length-1];e.text+=n.text}},this.updateParentNodeMediaChildren=function(){N.length&&l.includes(this.tag)&&N[N.length-1].mediaChildren.push(this.tag)}}t=Object.assign({},_.defaults,t),t.parser=Object.assign({},v,t.parser);let C=function(e){return t.allowedTags===!1||(t.allowedTags||[]).indexOf(e)>-1};u.forEach(function(e){C(e)&&!t.allowVulnerableTags&&console.warn(`\n\n⚠️ Your \`allowedTags\` option includes, \`${e}\`, which is inherently\nvulnerable to XSS attacks. Please remove it from \`allowedTags\`.\nOr, to disable this warning, add the \`allowVulnerableTags\` option\nand ensure you are accounting for this risk.\n\n`)});let w=t.nonTextTags||[`script`,`style`,`textarea`,`option`,`xmp`],T,E;t.allowedAttributes&&(T={},E={},d(t.allowedAttributes,function(e,t){T[t]=[];let n=[];e.forEach(function(e){typeof e==`string`&&e.indexOf(`*`)>=0?n.push(r(e).replace(/\\\*/g,`.*`)):T[t].push(e)}),n.length&&(E[t]=RegExp(`^(`+n.join(`|`)+`)$`))}));let D={},O={},k={};d(t.allowedClasses,function(e,t){if(T&&(f(T,t)||(T[t]=[]),T[t].push(`class`)),D[t]=e,Array.isArray(e)){let n=[];D[t]=[],k[t]=[],e.forEach(function(e){typeof e==`string`&&e.indexOf(`*`)>=0?n.push(r(e).replace(/\\\*/g,`.*`)):e instanceof RegExp?k[t].push(e):D[t].push(e)}),n.length&&(O[t]=RegExp(`^(`+n.join(`|`)+`)$`))}});let A={},j;d(t.transformTags,function(e,t){let n;typeof e==`function`?n=e:typeof e==`string`&&(n=_.simpleTransform(e)),t===`*`?j=n:A[t]=n});let M,N,P,F,I,L,R=!1;B();let z=new n.Parser({onopentag:function(e,n){if(t.onOpenTag&&t.onOpenTag(e,n),t.enforceHtmlBoundary&&e===`html`&&B(),I){L++;return}let r=new S(e,n);N.push(r);let c=!1,l=!!r.text,u;if(f(A,e)&&(u=A[e](e,n),r.attribs=n=u.attribs,u.text!==void 0&&(r.innerText=u.text),e!==u.tagName&&(r.name=e=u.tagName,F[M]=u.tagName)),j&&(u=j(e,n),r.attribs=n=u.attribs,e!==u.tagName&&(r.name=e=u.tagName,F[M]=u.tagName)),(!C(e)||t.disallowedTagsMode===`recursiveEscape`&&!m(P)||t.nestingLimit!=null&&M>=t.nestingLimit)&&(c=!0,P[M]=!0,(t.disallowedTagsMode===`discard`||t.disallowedTagsMode===`completelyDiscard`)&&w.indexOf(e)!==-1&&(I=!0,L=1)),M++,c){if(t.disallowedTagsMode===`discard`||t.disallowedTagsMode===`completelyDiscard`){if(r.innerText&&!l){let n=V(r.innerText);t.textFilter?b+=t.textFilter(n,e):b+=n,R=!0}return}x=b,b=``}b+=`<`+e,e===`script`&&(t.allowedScriptHostnames||t.allowedScriptDomains)&&(r.innerText=``),c&&(t.disallowedTagsMode===`escape`||t.disallowedTagsMode===`recursiveEscape`)&&t.preserveEscapedAttributes?d(n,function(e,t){b+=` `+t+`="`+V(e||``,!0)+`"`}):(!T||f(T,e)||T[`*`])&&d(n,function(n,c){if(!g.test(c)){delete r.attribs[c];return}if(n===``&&!t.allowedEmptyAttributes.includes(c)&&(t.nonBooleanAttributes.includes(c)||t.nonBooleanAttributes.includes(`*`))){delete r.attribs[c];return}let l=!1;if(!T||f(T,e)&&T[e].indexOf(c)!==-1||T[`*`]&&T[`*`].indexOf(c)!==-1||f(E,e)&&E[e].test(c)||E[`*`]&&E[`*`].test(c))l=!0;else if(T&&T[e]){for(let t of T[e])if(i(t)&&t.name&&t.name===c){l=!0;let e=``;if(t.multiple===!0){let r=n.split(` `);for(let n of r)t.values.indexOf(n)!==-1&&(e===``?e=n:e+=` `+n)}else t.values.indexOf(n)>=0&&(e=n);n=e}}if(l){if(t.allowedSchemesAppliedToAttributes.indexOf(c)!==-1&&H(e,n)){delete r.attribs[c];return}if(e===`script`&&c===`src`){let e=!0;try{let r=ee(n);if(t.allowedScriptHostnames||t.allowedScriptDomains){let n=(t.allowedScriptHostnames||[]).find(function(e){return e===r.url.hostname}),i=(t.allowedScriptDomains||[]).find(function(e){return r.url.hostname===e||r.url.hostname.endsWith(`.${e}`)});e=n||i}}catch{e=!1}if(!e){delete r.attribs[c];return}}if(e===`iframe`&&c===`src`){let e=!0;try{let r=ee(n);if(r.isRelativeUrl)e=f(t,`allowIframeRelativeUrls`)?t.allowIframeRelativeUrls:!t.allowedIframeHostnames&&!t.allowedIframeDomains;else if(t.allowedIframeHostnames||t.allowedIframeDomains){let n=(t.allowedIframeHostnames||[]).find(function(e){return e===r.url.hostname}),i=(t.allowedIframeDomains||[]).find(function(e){return r.url.hostname===e||r.url.hostname.endsWith(`.${e}`)});e=n||i}}catch{e=!1}if(!e){delete r.attribs[c];return}}if(c===`srcset`||c===`imagesrcset`)try{let e=o(n);if(e.forEach(function(e){H(c,e.url)&&(e.evil=!0)}),e=p(e,function(e){return!e.evil}),e.length)n=h(p(e,function(e){return!e.evil})),r.attribs[c]=n;else{delete r.attribs[c];return}}catch{delete r.attribs[c];return}if(c===`class`){let t=D[e],i=D[`*`],o=O[e],s=k[e],l=k[`*`],u=[o,O[`*`]].concat(s,l).filter(function(e){return e});if(n=t&&i?re(n,a(t,i),u):re(n,t||i,u),!n.length){delete r.attribs[c];return}}if(c===`style`){if(t.parseStyleAttributes)try{if(n=te(U(s(e+` {`+n+`}`,{map:!1}),t.allowedStyles)),n.length===0){delete r.attribs[c];return}}catch{typeof window<`u`&&console.warn(`Failed to parse "`+e+` {`+n+`}", If you're running this in a browser, we recommend to disable style parsing: options.parseStyleAttributes: false, since this only works in a node environment due to a postcss dependency, More info: https://github.com/apostrophecms/sanitize-html/issues/547`),delete r.attribs[c];return}else if(t.allowedStyles)throw Error(`allowedStyles option cannot be used together with parseStyleAttributes: false.`)}b+=` `+c,n&&n.length?b+=`="`+V(n,!0)+`"`:t.allowedEmptyAttributes.includes(c)&&(b+=`=""`)}else delete r.attribs[c]}),t.selfClosing.indexOf(e)===-1?(b+=`>`,r.innerText&&!l&&!t.textFilter&&(b+=V(r.innerText),R=!0)):b+=` />`,c&&(b=x+V(b),x=``),r.openingTagLength=b.length-r.tagPosition},ontext:function(e){if(I)return;let n=N[N.length-1],r;if(n&&(r=n.tag,e=n.innerText===void 0?e:n.innerText),t.disallowedTagsMode===`completelyDiscard`&&!C(r))e=``;else if(r&&C(r)&&(t.disallowedTagsMode===`discard`||t.disallowedTagsMode===`completelyDiscard`)&&(r===`script`||r===`style`))b+=e;else if(r&&C(r)&&(t.disallowedTagsMode===`discard`||t.disallowedTagsMode===`completelyDiscard`)&&(r===`textarea`||r===`xmp`))b+=e;else if(!R){let n=V(e,!1);t.textFilter?b+=t.textFilter(n,r):b+=n}if(N.length){let t=N[N.length-1];t.text+=e}},onclosetag:function(e,n){if(t.onCloseTag&&t.onCloseTag(e,n),I)if(L--,!L)I=!1;else return;let r=N.pop();if(!r)return;if(r.tag!==e){N.push(r);return}I=t.enforceHtmlBoundary?e===`html`:!1,M--;let i=P[M];if(i){if(delete P[M],t.disallowedTagsMode===`discard`||t.disallowedTagsMode===`completelyDiscard`){r.updateParentNodeText();return}x=b,b=``}if(F[M]&&(e=F[M],delete F[M]),t.exclusiveFilter){let e=t.exclusiveFilter(r);if(e===`excludeTag`){i&&(b=x,x=``),b=b.substring(0,r.tagPosition)+b.substring(r.tagPosition+r.openingTagLength);return}else if(e){b=b.substring(0,r.tagPosition);return}}if(r.updateParentNodeMediaChildren(),r.updateParentNodeText(),t.selfClosing.indexOf(e)!==-1||n&&!C(e)&&[`escape`,`recursiveEscape`].indexOf(t.disallowedTagsMode)>=0){i&&(b=x,x=``);return}b+=`</`+e+`>`,i&&(b=x+V(b),x=``),R=!1}},t.parser);if(z.write(e),z.end(),t.disallowedTagsMode===`escape`||t.disallowedTagsMode===`recursiveEscape`){let t=z.endIndex;if(t!=null&&t>=0&&t<e.length){let n=e.substring(t);b+=V(n)}else (t==null||t<0)&&e.length>0&&b===``&&(b=V(e))}return b;function B(){b=``,M=0,N=[],P={},F={},I=!1,L=0}function V(e,n){return typeof e!=`string`&&(e+=``),t.parser.decodeEntities&&(e=e.replace(/&/g,`&`).replace(/</g,`<`).replace(/>/g,`>`),n&&(e=e.replace(/"/g,`"`))),e=e.replace(/&(?![a-zA-Z0-9#]{1,20};)/g,`&`).replace(/</g,`<`).replace(/>/g,`>`),n&&(e=e.replace(/"/g,`"`)),e}function H(e,n){return c(n,{allowedSchemes:f(t.allowedSchemesByTag,e)?t.allowedSchemesByTag[e]:t.allowedSchemes||[],allowProtocolRelative:t.allowProtocolRelative})}function ee(e){if(e=e.replace(/^(\w+:)?\s*[\\/]\s*[\\/]/,`$1//`),e.startsWith(`relative:`))throw Error(`relative: exploit attempt`);let t=`relative://relative-site`;for(let e=0;e<100;e++)t+=`/${e}`;let n=new URL(e,t);return{isRelativeUrl:n&&n.hostname===`relative-site`&&n.protocol===`relative:`,url:n}}function U(e,t){if(!t)return e;let n=e.nodes[0],r;return r=t[n.selector]&&t[`*`]?a(t[n.selector],t[`*`]):t[n.selector]||t[`*`],r&&(e.nodes[0].nodes=n.nodes.reduce(ne(r),[])),e}function te(e){return e.nodes[0].nodes.reduce(function(e,t){return e.push(`${t.prop}:${t.value}${t.important?` !important`:``}`),e},[]).join(`;`)}function ne(e){return function(t,n){return f(e,n.prop)&&e[n.prop].some(function(e){return e.test(n.value)})&&t.push(n),t}}function re(e,t,n){return t?(e=e.split(/\s+/),e.filter(function(e){return t.indexOf(e)!==-1||n.some(function(t){return t.test(e)})}).join(` `)):e}}var v={decodeEntities:!0};_.defaults={allowedTags:`address.article.aside.footer.header.h1.h2.h3.h4.h5.h6.hgroup.main.nav.section.blockquote.dd.div.dl.dt.figcaption.figure.hr.li.menu.ol.p.pre.ul.a.abbr.b.bdi.bdo.br.cite.code.data.dfn.em.i.kbd.mark.q.rb.rp.rt.rtc.ruby.s.samp.small.span.strong.sub.sup.time.u.var.wbr.caption.col.colgroup.table.tbody.td.tfoot.th.thead.tr`.split(`.`),nonBooleanAttributes:`abbr.accept.accept-charset.accesskey.action.allow.alt.as.autocapitalize.autocomplete.blocking.charset.cite.class.color.cols.colspan.content.contenteditable.coords.crossorigin.data.datetime.decoding.dir.dirname.download.draggable.enctype.enterkeyhint.fetchpriority.for.form.formaction.formenctype.formmethod.formtarget.headers.height.hidden.high.href.hreflang.http-equiv.id.imagesizes.imagesrcset.inputmode.integrity.is.itemid.itemprop.itemref.itemtype.kind.label.lang.list.loading.low.max.maxlength.media.method.min.minlength.name.nonce.optimum.pattern.ping.placeholder.popover.popovertarget.popovertargetaction.poster.preload.referrerpolicy.rel.rows.rowspan.sandbox.scope.shape.size.sizes.slot.span.spellcheck.src.srcdoc.srclang.srcset.start.step.style.tabindex.target.title.translate.type.usemap.value.width.wrap.onauxclick.onafterprint.onbeforematch.onbeforeprint.onbeforeunload.onbeforetoggle.onblur.oncancel.oncanplay.oncanplaythrough.onchange.onclick.onclose.oncontextlost.oncontextmenu.oncontextrestored.oncopy.oncuechange.oncut.ondblclick.ondrag.ondragend.ondragenter.ondragleave.ondragover.ondragstart.ondrop.ondurationchange.onemptied.onended.onerror.onfocus.onformdata.onhashchange.oninput.oninvalid.onkeydown.onkeypress.onkeyup.onlanguagechange.onload.onloadeddata.onloadedmetadata.onloadstart.onmessage.onmessageerror.onmousedown.onmouseenter.onmouseleave.onmousemove.onmouseout.onmouseover.onmouseup.onoffline.ononline.onpagehide.onpageshow.onpaste.onpause.onplay.onplaying.onpopstate.onprogress.onratechange.onreset.onresize.onrejectionhandled.onscroll.onscrollend.onsecuritypolicyviolation.onseeked.onseeking.onselect.onslotchange.onstalled.onstorage.onsubmit.onsuspend.ontimeupdate.ontoggle.onunhandledrejection.onunload.onvolumechange.onwaiting.onwheel`.split(`.`),disallowedTagsMode:`discard`,allowedAttributes:{a:[`href`,`name`,`target`],img:[`src`,`srcset`,`alt`,`title`,`width`,`height`,`loading`]},allowedEmptyAttributes:[`alt`],selfClosing:[`img`,`br`,`hr`,`area`,`base`,`basefont`,`input`,`link`,`meta`],allowedSchemes:[`http`,`https`,`ftp`,`mailto`,`tel`],allowedSchemesByTag:{},allowedSchemesAppliedToAttributes:[`href`,`src`,`cite`,`action`,`formaction`,`data`,`xlink:href`,`poster`,`background`,`ping`,`longdesc`,`usemap`,`codebase`,`classid`,`archive`,`profile`,`manifest`,`itemid`,`dynsrc`,`lowsrc`],allowProtocolRelative:!0,enforceHtmlBoundary:!1,parseStyleAttributes:!0,preserveEscapedAttributes:!1},_.simpleTransform=function(e,t,n){return n=n===void 0?!0:n,t||={},function(r,i){let a;if(n)for(a in t)i[a]=t[a];else i=t;return{tagName:e,attribs:i}}}}))(),1),O1=[`innerHTML`],k1=(0,t.defineComponent)({__name:`ColumnValue`,props:{header:{},item:{}},setup(e){let n=e,r=()=>{let e=``;if(typeof n.header.cellRenderer==`function`){let e=n.header.cellRenderer(n.item[n.header.value],n.item);return Array.isArray(e)?(0,t.h)(`div`,{},e):e}else if(typeof n.header.valueFormatter==`function`)return n.header.valueFormatter(n.item[n.header.value],n.item);else return e=n.item[n.header.value],(0,D1.default)(e)};return(e,i)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,null,[typeof n.header.cellRenderer==`function`?((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(r()),{key:0})):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:1,innerHTML:r()},null,8,O1))]))}}),A1=Pp((0,t.defineComponent)({__name:`EasyConfirmationModal`,props:{description:{},acceptText:{},cancelText:{}},emits:[`onConfirm`],setup(e,{expose:n,emit:r}){let i=r,a=(0,t.ref)(!1),o=(0,t.ref)(``),s=e=>{o.value=e,a.value=!0},c=()=>{a.value=!1,i(`onConfirm`,o.value)};return n({open:s}),(n,r)=>{let i=(0,t.resolveComponent)(`v-col`),o=(0,t.resolveComponent)(`v-row`),s=(0,t.resolveComponent)(`v-card-title`),l=(0,t.resolveComponent)(`v-btn`),u=(0,t.resolveComponent)(`v-card-actions`),d=(0,t.resolveComponent)(`v-card`),f=(0,t.resolveComponent)(`v-dialog`);return(0,t.openBlock)(),(0,t.createBlock)(f,{modelValue:a.value,"onUpdate:modelValue":r[1]||=e=>a.value=e,width:`700`,persistent:``},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(d,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(s,{class:`text-center mt-10`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(o,{class:`textWarning`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(i,{cols:`4`,class:`d-flex justify-end`},{default:(0,t.withCtx)(()=>[...r[2]||=[(0,t.createElementVNode)(`i`,{class:`icon icon-octagon-alert warning-modal`},null,-1)]]),_:1}),(0,t.createVNode)(i,{cols:`8`,class:`d-flex justify-start align-center text-wrap`},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.description),1)]),_:1})]),_:1})]),_:1}),(0,t.createVNode)(u,{class:`ma-4`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(o,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(i,{class:`d-flex justify-start`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(l,{color:`error`,variant:`flat`,onClick:r[0]||=e=>a.value=!1},{default:(0,t.withCtx)(()=>[r[3]||=(0,t.createElementVNode)(`i`,{class:`icon icon-x`},null,-1),(0,t.createTextVNode)(` `+(0,t.toDisplayString)(e.cancelText),1)]),_:1})]),_:1}),(0,t.createVNode)(i,{class:`d-flex justify-end`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(l,{color:`success`,variant:`flat`,onClick:c},{default:(0,t.withCtx)(()=>[r[4]||=(0,t.createElementVNode)(`i`,{class:`icon icon-check`},null,-1),(0,t.createTextVNode)(` `+(0,t.toDisplayString)(e.acceptText),1)]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,[`modelValue`])}}}),[[`__scopeId`,`data-v-f1a09b8c`]]),j1={key:0,style:{display:`flex`,"justify-content":`center`}},M1=(0,t.defineComponent)({__name:`EasyTable`,props:{id:{},headers:{},showSelect:{type:Boolean,default:!1},multipleHardFilters:{type:Boolean,default:!1},multipleDeletion:{type:Boolean,default:!1},api:{},title:{default:``},hardFilters:{default:()=>[]},advancedFilters:{default:()=>[]},calcHeight:{default:``},showExportData:{type:Boolean,default:!1}},emits:[`onLoaded`,`successDelete`,`errorDelete`,`fetchError`],setup(e,{expose:n,emit:r}){let i=e,a=r,o=Hs(),s=(0,t.ref)([]),c=(0,t.ref)(10),l=(0,t.ref)(1),u=(0,t.ref)([]),d=(0,t.ref)([]),f=(0,t.ref)(null),p=(0,t.ref)([]),m=(0,t.ref)([]),h=(0,t.ref)(0),g=YQ(),_=(0,t.ref)(!1),v=(0,t.ref)(null),y=(0,t.ref)(null),b=(0,t.ref)(null),x=(0,t.ref)([{value:10,title:`10`},{value:25,title:`25`},{value:50,title:`50`},{value:100,title:`100`}]);function S(e){return`item.${e.value}`}let C=e=>{i.api?.delete&&(_.value=!0,fetch(`${i.api.delete}/${e}`,{method:`DELETE`}).then(async e=>{if(!e.ok)throw{statusCode:e.status,data:await e.json()};return e.json()}).then(()=>{a(`successDelete`),E()}).catch(async e=>a(`errorDelete`,e)).finally(()=>_.value=!1))},w=()=>{i.api?.multipleDelete&&(_.value=!0,fetch(`${i.api.multipleDelete}`,{method:`DELETE`,body:JSON.stringify({ids:d.value})}).then(async e=>{if(!e.ok)throw{statusCode:e.status,data:await e.json()};return e.json()}).then(()=>{a(`successDelete`),d.value=[],E()}).catch(async e=>a(`errorDelete`,e)).finally(()=>_.value=!1))},T=()=>{y.value?.open(0)},E=async()=>{_.value=!0;let e=new URLSearchParams({sort:JSON.stringify(f.value??{}),filters:JSON.stringify(p.value),hard_filters:JSON.stringify(m.value),page:l.value.toString(),limit:c.value.toString()});fetch(`${i.api.get}?${e}`,{method:`GET`}).then(async e=>{if(!e.ok)throw{statusCode:e.status,data:await e.json()};return e.json()}).then(e=>{u.value=e.data,h.value=e.page.total,b.value?.updateExportDataTotal(h.value),a(`onLoaded`,u.value)}).catch(async e=>a(`fetchError`,e)).finally(()=>_.value=!1)},D=e=>{e.length!==0&&(f.value={column:e[0].key,sort:e[0].order},b.value?.updateExportSortData(f.value),l.value=1,E())},O=e=>{m.value=e,l.value=1,E()},k=e=>{p.value=e,l.value=1,E()},A=e=>{s.value=e,E()};return(0,t.onMounted)(()=>{setTimeout(()=>{b.value?.updateExportData(i.api.get,i.headers,h.value,f.value,p.value,m.value)},500)}),(0,t.onBeforeMount)(()=>{let e=g.loadHeaders(i.headers,i.id);e.length===0?s.value=i.headers.filter(e=>!e?.hidden):s.value=e.filter(e=>!e?.hidden)}),n({getData:E,loading:_}),(n,r)=>{let a=(0,t.resolveComponent)(`VDataTableServer`),f=(0,t.resolveComponent)(`v-container`);return(0,t.openBlock)(),(0,t.createBlock)(f,{class:`maintable`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(p$,{id:e.id,ref_key:`headerRef`,ref:b,title:i.title,headers:i.headers,"advanced-filters":i.advancedFilters,"hard-filters":i.hardFilters,create:e.api?.create,"show-export-data":e.showExportData,"multiple-hard-filters":e.multipleHardFilters,"multiple-deletion":e.multipleDeletion,selected:d.value,onMultipleDelete:T,onHeaders:A,onSearch:k,onHardFilters:O,onLoading:r[0]||=e=>_.value=e},{moreActions:(0,t.withCtx)(()=>[(0,t.renderSlot)(n.$slots,`moreActions`)]),_:3},8,[`id`,`title`,`headers`,`advanced-filters`,`hard-filters`,`create`,`show-export-data`,`multiple-hard-filters`,`multiple-deletion`,`selected`]),(0,t.createVNode)(a,{modelValue:d.value,"onUpdate:modelValue":r[1]||=e=>d.value=e,page:l.value,"onUpdate:page":[r[2]||=e=>l.value=e,E],"items-per-page":c.value,"onUpdate:itemsPerPage":[r[3]||=e=>c.value=e,E],headers:s.value,items:u.value,"show-select":e.showSelect,loading:_.value,"items-length":h.value,"items-per-page-options":x.value,class:(0,t.normalizeClass)(n.$attrs.class),style:(0,t.normalizeStyle)({width:typeof n.$attrs.width==`string`?n.$attrs.width:`auto`}),height:e.calcHeight,"fixed-header":``,"onUpdate:sortBy":D,"onUpdate:sortDesc":D},(0,t.createSlots)({"header.actions":(0,t.withCtx)(()=>[(0,t.createElementVNode)(`i`,(0,t.mergeProps)({class:`icon icon-settings`},i,{style:{"font-size":`20px`}}),null,16)]),_:2},[(0,t.renderList)(s.value,e=>({name:S(e),fn:(0,t.withCtx)(n=>[e.type===`actions`?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,j1,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.actions,(e,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:r},[e.type===`menu`?((0,t.openBlock)(),(0,t.createBlock)(m$,{key:0,action:e,item:n.item,onOnDelete:e=>v.value?.open(n.item?.id)},null,8,[`action`,`item`,`onOnDelete`])):((0,t.openBlock)(),(0,t.createBlock)(h$,{key:1,action:e,item:n.item,onOnDelete:e=>v.value?.open(n.item?.id)},null,8,[`action`,`item`,`onOnDelete`]))]))),128))])):((0,t.openBlock)(),(0,t.createBlock)(k1,{key:1,header:e,item:n.item},null,8,[`header`,`item`]))])}))]),1032,[`modelValue`,`page`,`items-per-page`,`headers`,`items`,`show-select`,`loading`,`items-length`,`items-per-page-options`,`class`,`style`,`height`]),(0,t.createVNode)(A1,{ref_key:`confirm_deletion`,ref:v,description:(0,t.unref)(o).t(`table.deletion_description`),"accept-text":(0,t.unref)(o).t(`table.yes`),"cancel-text":(0,t.unref)(o).t(`table.no`),onOnConfirm:C},null,8,[`description`,`accept-text`,`cancel-text`]),(0,t.createVNode)(A1,{ref_key:`multiple_confirm_deletion`,ref:y,description:(0,t.unref)(o).t(`table.multiple_deletion_description`),"accept-text":(0,t.unref)(o).t(`table.yes`),"cancel-text":(0,t.unref)(o).t(`table.no`),onOnConfirm:w},null,8,[`description`,`accept-text`,`cancel-text`])]),_:3})}}});e.EasyConfirmationModal=A1,e.EasyForm=qQ,e.EasyMap=HQ,e.EasyTable=M1,e.default={install(e,t){if(!Nn)throw Error(`[EasyComponents] Vuetify is required. Please install it:
|
|
4107
|
-
npm install vuetify`);let n=Vs({legacy:!1,locale:t.locale??`en`,messages:{en:nc,el:ac}});e.use(n),e.component(`EasyForm`,qQ),e.component(`EasyTable`,M1),e.component(`EasyConfirmationModal`,A1),e.component(`EasyMap`,HQ);let r=Sf()??pp();e.use(r),e.runWithContext(()=>{let e=kp();e.timeZone=t.timeZone,e.location=t.location??null,e.mapId=t.mapId??null,JQ().run()})}}});
|
|
4106
|
+
https://www.w3ctech.com/topic/2226`));let i=t(...r);return i.postcssPlugin=e,i.postcssVersion=new m().version,i}let i;return Object.defineProperty(r,"postcss",{get(){return i||=r(),i}}),r.process=function(e,t,n){return b([r(n)]).process(e,t)},r},b.stringify=v,b.parse=p,b.fromJSON=c,b.list=d,b.comment=e=>new r(e),b.atRule=e=>new n(e),b.decl=e=>new o(e),b.rule=e=>new _(e),b.root=e=>new g(e),b.document=e=>new s(e),b.CssSyntaxError=a,b.Declaration=o,b.Container=i,b.Processor=m,b.Document=s,b.Comment=r,b.Warning=y,b.AtRule=n,b.Result=h,b.Input=l,b.Rule=_,b.Root=g,b.Node=f,u.registerPostcss(b),t.exports=b,b.default=b})),T1=l(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs=r()})(e,(function(){"use strict";var e=1e3,t=6e4,n=36e5,r=`millisecond`,i=`second`,a=`minute`,o=`hour`,s=`day`,c=`week`,l=`month`,u=`quarter`,d=`year`,f=`date`,p=`Invalid Date`,m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:`en`,weekdays:`Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday`.split(`_`),months:`January_February_March_April_May_June_July_August_September_October_November_December`.split(`_`),ordinal:function(e){var t=[`th`,`st`,`nd`,`rd`],n=e%100;return`[`+e+(t[(n-20)%10]||t[n]||t[0])+`]`}},_=function(e,t,n){var r=String(e);return!r||r.length>=t?e:``+Array(t+1-r.length).join(n)+e},v={s:_,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?`+`:`-`)+_(r,2,`0`)+`:`+_(i,2,`0`)},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,l),a=n-i<0,o=t.clone().add(r+(a?-1:1),l);return+(-(r+(n-i)/(a?i-o:o-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:d,w:c,d:s,D:f,h:o,m:a,s:i,ms:r,Q:u}[e]||String(e||``).toLowerCase().replace(/s$/,``)},u:function(e){return e===void 0}},y=`en`,b={};b[y]=g;var x=`$isDayjsObject`,S=function(e){return e instanceof E||!(!e||!e[x])},C=function e(t,n,r){var i;if(!t)return y;if(typeof t==`string`){var a=t.toLowerCase();b[a]&&(i=a),n&&(b[a]=n,i=a);var o=t.split(`-`);if(!i&&o.length>1)return e(o[0])}else{var s=t.name;b[s]=t,i=s}return!r&&i&&(y=i),i||!r&&y},w=function(e,t){if(S(e))return e.clone();var n=typeof t==`object`?t:{};return n.date=e,n.args=arguments,new E(n)},T=v;T.l=C,T.i=S,T.w=function(e,t){return w(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var E=function(){function g(e){this.$L=C(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0}var _=g.prototype;return _.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(t===null)return new Date(NaN);if(T.u(t))return new Date;if(t instanceof Date)return new Date(t);if(typeof t==`string`&&!/Z$/i.test(t)){var r=t.match(m);if(r){var i=r[2]-1||0,a=(r[7]||`0`).substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)}(e),this.init()},_.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},_.$utils=function(){return T},_.isValid=function(){return this.$d.toString()!==p},_.isSame=function(e,t){var n=w(e);return this.startOf(t)<=n&&n<=this.endOf(t)},_.isAfter=function(e,t){return w(e)<this.startOf(t)},_.isBefore=function(e,t){return this.endOf(t)<w(e)},_.$g=function(e,t,n){return T.u(e)?this[t]:this.set(n,e)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(e,t){var n=this,r=!!T.u(t)||t,u=T.p(e),p=function(e,t){var i=T.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?i:i.endOf(s)},m=function(e,t){return T.w(n.toDate()[e].apply(n.toDate(`s`),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},h=this.$W,g=this.$M,_=this.$D,v=`set`+(this.$u?`UTC`:``);switch(u){case d:return r?p(1,0):p(31,11);case l:return r?p(1,g):p(0,g+1);case c:var y=this.$locale().weekStart||0,b=(h<y?h+7:h)-y;return p(r?_-b:_+(6-b),g);case s:case f:return m(v+`Hours`,0);case o:return m(v+`Minutes`,1);case a:return m(v+`Seconds`,2);case i:return m(v+`Milliseconds`,3);default:return this.clone()}},_.endOf=function(e){return this.startOf(e,!1)},_.$set=function(e,t){var n,c=T.p(e),u=`set`+(this.$u?`UTC`:``),p=(n={},n[s]=u+`Date`,n[f]=u+`Date`,n[l]=u+`Month`,n[d]=u+`FullYear`,n[o]=u+`Hours`,n[a]=u+`Minutes`,n[i]=u+`Seconds`,n[r]=u+`Milliseconds`,n)[c],m=c===s?this.$D+(t-this.$W):t;if(c===l||c===d){var h=this.clone().set(f,1);h.$d[p](m),h.init(),this.$d=h.set(f,Math.min(this.$D,h.daysInMonth())).$d}else p&&this.$d[p](m);return this.init(),this},_.set=function(e,t){return this.clone().$set(e,t)},_.get=function(e){return this[T.p(e)]()},_.add=function(r,u){var f,p=this;r=Number(r);var m=T.p(u),h=function(e){var t=w(p);return T.w(t.date(t.date()+Math.round(e*r)),p)};if(m===l)return this.set(l,this.$M+r);if(m===d)return this.set(d,this.$y+r);if(m===s)return h(1);if(m===c)return h(7);var g=(f={},f[a]=t,f[o]=n,f[i]=e,f)[m]||1,_=this.$d.getTime()+r*g;return T.w(_,this)},_.subtract=function(e,t){return this.add(-1*e,t)},_.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||`YYYY-MM-DDTHH:mm:ssZ`,i=T.z(this),a=this.$H,o=this.$m,s=this.$M,c=n.weekdays,l=n.months,u=n.meridiem,d=function(e,n,i,a){return e&&(e[n]||e(t,r))||i[n].slice(0,a)},f=function(e){return T.s(a%12||12,e,`0`)},m=u||function(e,t,n){var r=e<12?`AM`:`PM`;return n?r.toLowerCase():r};return r.replace(h,(function(e,r){return r||function(e){switch(e){case`YY`:return String(t.$y).slice(-2);case`YYYY`:return T.s(t.$y,4,`0`);case`M`:return s+1;case`MM`:return T.s(s+1,2,`0`);case`MMM`:return d(n.monthsShort,s,l,3);case`MMMM`:return d(l,s);case`D`:return t.$D;case`DD`:return T.s(t.$D,2,`0`);case`d`:return String(t.$W);case`dd`:return d(n.weekdaysMin,t.$W,c,2);case`ddd`:return d(n.weekdaysShort,t.$W,c,3);case`dddd`:return c[t.$W];case`H`:return String(a);case`HH`:return T.s(a,2,`0`);case`h`:return f(1);case`hh`:return f(2);case`a`:return m(a,o,!0);case`A`:return m(a,o,!1);case`m`:return String(o);case`mm`:return T.s(o,2,`0`);case`s`:return String(t.$s);case`ss`:return T.s(t.$s,2,`0`);case`SSS`:return T.s(t.$ms,3,`0`);case`Z`:return i}return null}(e)||i.replace(`:`,``)}))},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(r,f,p){var m,h=this,g=T.p(f),_=w(r),v=(_.utcOffset()-this.utcOffset())*t,y=this-_,b=function(){return T.m(h,_)};switch(g){case d:m=b()/12;break;case l:m=b();break;case u:m=b()/3;break;case c:m=(y-v)/6048e5;break;case s:m=(y-v)/864e5;break;case o:m=y/n;break;case a:m=y/t;break;case i:m=y/e;break;default:m=y}return p?m:T.a(m)},_.daysInMonth=function(){return this.endOf(l).$D},_.$locale=function(){return b[this.$L]},_.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=C(e,t,!0);return r&&(n.$L=r),n},_.clone=function(){return T.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},g}(),D=E.prototype;return w.prototype=D,[[`$ms`,r],[`$s`,i],[`$m`,a],[`$H`,o],[`$W`,s],[`$M`,l],[`$y`,d],[`$D`,f]].forEach((function(e){D[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),w.extend=function(e,t){return e.$i||=(e(t,E,w),!0),w},w.locale=C,w.isDayjs=S,w.unix=function(e){return w(1e3*e)},w.en=b[y],w.Ls=b,w.p={},w}))})),E1=l(((e,t)=>{var n=T1();function r(e){for(e=e.replace(/[\x00-\x20]+/g,``);;){let t=e.indexOf(`<!--`);if(t===-1)break;let n=e.indexOf(`-->`,t+4);if(n===-1)break;e=e.substring(0,t)+e.substring(n+3)}return e}function i(e,t){t||={};let n=t.allowedSchemes||[`http`,`https`,`ftp`,`mailto`,`tel`,`sms`],i=t.allowProtocolRelative!==!1;if(typeof e!=`string`)return!1;e=r(e);let a=e.match(/^([a-zA-Z][a-zA-Z0-9.\-+]*):/);if(!a)return e.match(/^[/\\]{2}/)?!i:!1;let o=a[1].toLowerCase();return n.indexOf(o)===-1}t.exports=function(e){let t={};return t.options=e||{},t.filterTag=t.options.filterTag||function(e){return e=e.trim(),e.toLowerCase()},t.string=function(e,t){return typeof e!=`string`&&(typeof e==`number`||typeof e==`boolean`?e+=``:e=``),e=e.trim(),t!==void 0&&e===``&&(e=t),e},t.strings=function(e){return Array.isArray(e)?e.map(function(e){return t.string(e)}):[]},t.integer=function(e,t,n,r){if(t===void 0&&(t=0),typeof e==`number`)e=Math.floor(e);else try{e=parseInt(e,10),isNaN(e)&&(e=t)}catch{e=t}return typeof n==`number`&&e<n&&(e=n),typeof r==`number`&&e>r&&(e=r),e},t.padInteger=function(e,t){let n=e+``;for(;n.length<t;)n=`0`+n;return n},t.float=function(e,t,n,r){if(t===void 0&&(t=0),typeof e!=`number`)try{e=parseFloat(e,10),isNaN(e)&&(e=t)}catch{e=t}return typeof n==`number`&&e<n&&(e=n),typeof r==`number`&&e>r&&(e=r),e},t.naughtyHref=i,t.url=function(e,n,a){if(e=t.string(e,n),e===n)return e;if(e=r(e),i(e)||(e=o(e),e===null))return n;return e;function o(e){return e.match(/^(((https?|ftp):\/\/)|((mailto|tel|sms):)|#|([^/.]+)?\/|[^/.]+$)/)?e:e.match(/^[^/.]+\.[^/.]+/)?(a?`https://`:`http://`)+e:null}},t.select=function(e,n,r){if(e=t.string(e),!n||!n.length)return r;let i;return typeof n[0]==`object`?(i=n.find(function(t){return t.value===null||t.value===void 0?!1:t.value.toString()===e}),i==null?r:i.value):(i=n.find(function(t){return t==null?!1:t.toString()===e}),i===void 0?r:i)},t.boolean=function(e,n){return e===!0?!0:e===!1?!1:(e=t.string(e,n),e===n?e===void 0?!1:e:(e=e.toLowerCase().charAt(0),e===``||e===`n`||e===`0`||e===`f`?!1:e===`t`||e===`y`||e===`1`))},t.addBooleanFilterToCriteria=function(e,n,r,i){i===void 0&&(i=null);let a=typeof e==`object`&&e?e[n]:e;a=a===void 0?i:a,a=t.booleanOrNull(a),a===null||(a?r[n]=!0:r[n]={$ne:!0})},t.booleanOrNull=function(e,n){return e===!0||e===!1||e===null?e:(e=t.string(e,n),e===n?n===void 0?null:e:e===`null`?null:(e=e.toLowerCase().charAt(0),e===``||e===`n`||e===`0`||e===`f`?!1:e===`t`||e===`y`||e===`1`?!0:e===`a`?null:n))},t.date=function(e,r,i){let a;function o(){return r===void 0&&(r=n().format(`YYYY-MM-DD`)),r}if(typeof e==`string`){if(e.match(/\//)){if(a=e.split(`/`),a.length===2)return(i||new Date).getFullYear()+`-`+t.padInteger(a[0],2)+`-`+t.padInteger(a[1],2);if(a.length===3){if(a[2]<100){let e=i||new Date,t=e.getFullYear()%100,n=e.getFullYear()-t,r=parseInt(a[2])+n;r-e.getFullYear()>50&&(r-=100),a[2]=r}return t.padInteger(a[2],4)+`-`+t.padInteger(a[0],2)+`-`+t.padInteger(a[1],2)}else return o()}else if(e.match(/-/))return a=e.split(`-`),a.length===2?(i||new Date).getFullYear()+`-`+t.padInteger(a[0],2)+`-`+t.padInteger(a[1],2):a.length===3?t.padInteger(a[0],4)+`-`+t.padInteger(a[1],2)+`-`+t.padInteger(a[2],2):o()}try{return e===null||(e=i||new Date(e),isNaN(e.getTime()))?o():e.getFullYear()+`-`+t.padInteger(e.getMonth()+1,2)+`-`+t.padInteger(e.getDate(),2)}catch{return o()}},t.formatDate=function(e){return n(e).format(`YYYY-MM-DD`)},t.time=function(e,r){e=t.string(e).toLowerCase(),e=e.trim();let i=e.match(/^(\d+)([:|.](\d+))?([:|.](\d+))?\s*(am|pm|AM|PM|a|p|A|M)?$/);if(i){let e=parseInt(i[1],10),n=i[3]===void 0?0:parseInt(i[3],10),r=i[5]===void 0?0:parseInt(i[5],10),a=i[6]?i[6].toLowerCase():i[6];return a&&=a.charAt(0),e===12&&a===`a`?e-=12:e===12&&a===`p`||a===`p`&&(e+=12),(e===24||e===`24`)&&(e=0),t.padInteger(e,2)+`:`+t.padInteger(n,2)+`:`+t.padInteger(r,2)}else return r===void 0?n().format(`HH:mm`):r},t.formatTime=function(e){return n(e).format(`HH:mm:ss`)},t.tags=function(e,n){return typeof e==`string`&&(e=e.split(/,\s*/)),Array.isArray(e)?e.map(e=>t.string(e)).map(n||t.filterTag).filter(e=>e.length>0):[]},t.idRegExp=t.options.idRegExp||/^[A-Za-z0-9_]+$/,t.id=function(e,n){let r=t.string(e,n);return r===n||r.match(t.idRegExp)?r:n},t.ids=function(e){return Array.isArray(e)?e.filter(function(e){return t.id(e)!==void 0}):[]},t},t.exports.naughtyHref=i})),D1=f(l(((e,t)=>{var n=G$(),r=K$(),{isPlainObject:i}=q$(),a=J$(),o=Y$(),{parse:s}=w1(),{naughtyHref:c}=E1(),l=[`img`,`audio`,`video`,`picture`,`svg`,`object`,`map`,`iframe`,`embed`],u=[`script`,`style`];function d(e,t){e&&Object.keys(e).forEach(function(n){t(e[n],n)})}function f(e,t){return{}.hasOwnProperty.call(e,t)}function p(e,t){let n=[];return d(e,function(e){t(e)&&n.push(e)}),n}function m(e){for(let t in e)if(f(e,t))return!1;return!0}function h(e){return e.map(function(e){if(!e.url)throw Error(`URL missing`);return e.url+(e.w?` ${e.w}w`:``)+(e.h?` ${e.h}h`:``)+(e.d?` ${e.d}x`:``)}).join(`, `)}t.exports=_;var g=/^[^\0\t\n\f\r /<=>]+$/;function _(e,t,y){if(e==null)return``;typeof e==`number`&&(e=e.toString());let b=``,x=``;function S(e,t){let n=this;this.tag=e,this.attribs=t||{},this.tagPosition=b.length,this.text=``,this.openingTagLength=0,this.mediaChildren=[],this.updateParentNodeText=function(){if(N.length){let e=N[N.length-1];e.text+=n.text}},this.updateParentNodeMediaChildren=function(){N.length&&l.includes(this.tag)&&N[N.length-1].mediaChildren.push(this.tag)}}t=Object.assign({},_.defaults,t),t.parser=Object.assign({},v,t.parser);let C=function(e){return t.allowedTags===!1||(t.allowedTags||[]).indexOf(e)>-1};u.forEach(function(e){C(e)&&!t.allowVulnerableTags&&console.warn(`\n\n⚠️ Your \`allowedTags\` option includes, \`${e}\`, which is inherently\nvulnerable to XSS attacks. Please remove it from \`allowedTags\`.\nOr, to disable this warning, add the \`allowVulnerableTags\` option\nand ensure you are accounting for this risk.\n\n`)});let w=t.nonTextTags||[`script`,`style`,`textarea`,`option`,`xmp`],T,E;t.allowedAttributes&&(T={},E={},d(t.allowedAttributes,function(e,t){T[t]=[];let n=[];e.forEach(function(e){typeof e==`string`&&e.indexOf(`*`)>=0?n.push(r(e).replace(/\\\*/g,`.*`)):T[t].push(e)}),n.length&&(E[t]=RegExp(`^(`+n.join(`|`)+`)$`))}));let D={},O={},k={};d(t.allowedClasses,function(e,t){if(T&&(f(T,t)||(T[t]=[]),T[t].push(`class`)),D[t]=e,Array.isArray(e)){let n=[];D[t]=[],k[t]=[],e.forEach(function(e){typeof e==`string`&&e.indexOf(`*`)>=0?n.push(r(e).replace(/\\\*/g,`.*`)):e instanceof RegExp?k[t].push(e):D[t].push(e)}),n.length&&(O[t]=RegExp(`^(`+n.join(`|`)+`)$`))}});let A={},j;d(t.transformTags,function(e,t){let n;typeof e==`function`?n=e:typeof e==`string`&&(n=_.simpleTransform(e)),t===`*`?j=n:A[t]=n});let M,N,P,F,I,L,R=!1;B();let z=new n.Parser({onopentag:function(e,n){if(t.onOpenTag&&t.onOpenTag(e,n),t.enforceHtmlBoundary&&e===`html`&&B(),I){L++;return}let r=new S(e,n);N.push(r);let c=!1,l=!!r.text,u;if(f(A,e)&&(u=A[e](e,n),r.attribs=n=u.attribs,u.text!==void 0&&(r.innerText=u.text),e!==u.tagName&&(r.name=e=u.tagName,F[M]=u.tagName)),j&&(u=j(e,n),r.attribs=n=u.attribs,e!==u.tagName&&(r.name=e=u.tagName,F[M]=u.tagName)),(!C(e)||t.disallowedTagsMode===`recursiveEscape`&&!m(P)||t.nestingLimit!=null&&M>=t.nestingLimit)&&(c=!0,P[M]=!0,(t.disallowedTagsMode===`discard`||t.disallowedTagsMode===`completelyDiscard`)&&w.indexOf(e)!==-1&&(I=!0,L=1)),M++,c){if(t.disallowedTagsMode===`discard`||t.disallowedTagsMode===`completelyDiscard`){if(r.innerText&&!l){let n=V(r.innerText);t.textFilter?b+=t.textFilter(n,e):b+=n,R=!0}return}x=b,b=``}b+=`<`+e,e===`script`&&(t.allowedScriptHostnames||t.allowedScriptDomains)&&(r.innerText=``),c&&(t.disallowedTagsMode===`escape`||t.disallowedTagsMode===`recursiveEscape`)&&t.preserveEscapedAttributes?d(n,function(e,t){b+=` `+t+`="`+V(e||``,!0)+`"`}):(!T||f(T,e)||T[`*`])&&d(n,function(n,c){if(!g.test(c)){delete r.attribs[c];return}if(n===``&&!t.allowedEmptyAttributes.includes(c)&&(t.nonBooleanAttributes.includes(c)||t.nonBooleanAttributes.includes(`*`))){delete r.attribs[c];return}let l=!1;if(!T||f(T,e)&&T[e].indexOf(c)!==-1||T[`*`]&&T[`*`].indexOf(c)!==-1||f(E,e)&&E[e].test(c)||E[`*`]&&E[`*`].test(c))l=!0;else if(T&&T[e]){for(let t of T[e])if(i(t)&&t.name&&t.name===c){l=!0;let e=``;if(t.multiple===!0){let r=n.split(` `);for(let n of r)t.values.indexOf(n)!==-1&&(e===``?e=n:e+=` `+n)}else t.values.indexOf(n)>=0&&(e=n);n=e}}if(l){if(t.allowedSchemesAppliedToAttributes.indexOf(c)!==-1&&H(e,n)){delete r.attribs[c];return}if(e===`script`&&c===`src`){let e=!0;try{let r=ee(n);if(t.allowedScriptHostnames||t.allowedScriptDomains){let n=(t.allowedScriptHostnames||[]).find(function(e){return e===r.url.hostname}),i=(t.allowedScriptDomains||[]).find(function(e){return r.url.hostname===e||r.url.hostname.endsWith(`.${e}`)});e=n||i}}catch{e=!1}if(!e){delete r.attribs[c];return}}if(e===`iframe`&&c===`src`){let e=!0;try{let r=ee(n);if(r.isRelativeUrl)e=f(t,`allowIframeRelativeUrls`)?t.allowIframeRelativeUrls:!t.allowedIframeHostnames&&!t.allowedIframeDomains;else if(t.allowedIframeHostnames||t.allowedIframeDomains){let n=(t.allowedIframeHostnames||[]).find(function(e){return e===r.url.hostname}),i=(t.allowedIframeDomains||[]).find(function(e){return r.url.hostname===e||r.url.hostname.endsWith(`.${e}`)});e=n||i}}catch{e=!1}if(!e){delete r.attribs[c];return}}if(c===`srcset`||c===`imagesrcset`)try{let e=o(n);if(e.forEach(function(e){H(c,e.url)&&(e.evil=!0)}),e=p(e,function(e){return!e.evil}),e.length)n=h(p(e,function(e){return!e.evil})),r.attribs[c]=n;else{delete r.attribs[c];return}}catch{delete r.attribs[c];return}if(c===`class`){let t=D[e],i=D[`*`],o=O[e],s=k[e],l=k[`*`],u=[o,O[`*`]].concat(s,l).filter(function(e){return e});if(n=t&&i?re(n,a(t,i),u):re(n,t||i,u),!n.length){delete r.attribs[c];return}}if(c===`style`){if(t.parseStyleAttributes)try{if(n=te(U(s(e+` {`+n+`}`,{map:!1}),t.allowedStyles)),n.length===0){delete r.attribs[c];return}}catch{typeof window<`u`&&console.warn(`Failed to parse "`+e+` {`+n+`}", If you're running this in a browser, we recommend to disable style parsing: options.parseStyleAttributes: false, since this only works in a node environment due to a postcss dependency, More info: https://github.com/apostrophecms/sanitize-html/issues/547`),delete r.attribs[c];return}else if(t.allowedStyles)throw Error(`allowedStyles option cannot be used together with parseStyleAttributes: false.`)}b+=` `+c,n&&n.length?b+=`="`+V(n,!0)+`"`:t.allowedEmptyAttributes.includes(c)&&(b+=`=""`)}else delete r.attribs[c]}),t.selfClosing.indexOf(e)===-1?(b+=`>`,r.innerText&&!l&&!t.textFilter&&(b+=V(r.innerText),R=!0)):b+=` />`,c&&(b=x+V(b),x=``),r.openingTagLength=b.length-r.tagPosition},ontext:function(e){if(I)return;let n=N[N.length-1],r;if(n&&(r=n.tag,e=n.innerText===void 0?e:n.innerText),t.disallowedTagsMode===`completelyDiscard`&&!C(r))e=``;else if(r&&C(r)&&(t.disallowedTagsMode===`discard`||t.disallowedTagsMode===`completelyDiscard`)&&(r===`script`||r===`style`))b+=e;else if(r&&C(r)&&(t.disallowedTagsMode===`discard`||t.disallowedTagsMode===`completelyDiscard`)&&(r===`textarea`||r===`xmp`))b+=e;else if(!R){let n=V(e,!1);t.textFilter?b+=t.textFilter(n,r):b+=n}if(N.length){let t=N[N.length-1];t.text+=e}},onclosetag:function(e,n){if(t.onCloseTag&&t.onCloseTag(e,n),I)if(L--,!L)I=!1;else return;let r=N.pop();if(!r)return;if(r.tag!==e){N.push(r);return}I=t.enforceHtmlBoundary?e===`html`:!1,M--;let i=P[M];if(i){if(delete P[M],t.disallowedTagsMode===`discard`||t.disallowedTagsMode===`completelyDiscard`){r.updateParentNodeText();return}x=b,b=``}if(F[M]&&(e=F[M],delete F[M]),t.exclusiveFilter){let e=t.exclusiveFilter(r);if(e===`excludeTag`){i&&(b=x,x=``),b=b.substring(0,r.tagPosition)+b.substring(r.tagPosition+r.openingTagLength);return}else if(e){b=b.substring(0,r.tagPosition);return}}if(r.updateParentNodeMediaChildren(),r.updateParentNodeText(),t.selfClosing.indexOf(e)!==-1||n&&!C(e)&&[`escape`,`recursiveEscape`].indexOf(t.disallowedTagsMode)>=0){i&&(b=x,x=``);return}b+=`</`+e+`>`,i&&(b=x+V(b),x=``),R=!1}},t.parser);if(z.write(e),z.end(),t.disallowedTagsMode===`escape`||t.disallowedTagsMode===`recursiveEscape`){let t=z.endIndex;if(t!=null&&t>=0&&t<e.length){let n=e.substring(t);b+=V(n)}else (t==null||t<0)&&e.length>0&&b===``&&(b=V(e))}return b;function B(){b=``,M=0,N=[],P={},F={},I=!1,L=0}function V(e,n){return typeof e!=`string`&&(e+=``),t.parser.decodeEntities&&(e=e.replace(/&/g,`&`).replace(/</g,`<`).replace(/>/g,`>`),n&&(e=e.replace(/"/g,`"`))),e=e.replace(/&(?![a-zA-Z0-9#]{1,20};)/g,`&`).replace(/</g,`<`).replace(/>/g,`>`),n&&(e=e.replace(/"/g,`"`)),e}function H(e,n){return c(n,{allowedSchemes:f(t.allowedSchemesByTag,e)?t.allowedSchemesByTag[e]:t.allowedSchemes||[],allowProtocolRelative:t.allowProtocolRelative})}function ee(e){if(e=e.replace(/^(\w+:)?\s*[\\/]\s*[\\/]/,`$1//`),e.startsWith(`relative:`))throw Error(`relative: exploit attempt`);let t=`relative://relative-site`;for(let e=0;e<100;e++)t+=`/${e}`;let n=new URL(e,t);return{isRelativeUrl:n&&n.hostname===`relative-site`&&n.protocol===`relative:`,url:n}}function U(e,t){if(!t)return e;let n=e.nodes[0],r;return r=t[n.selector]&&t[`*`]?a(t[n.selector],t[`*`]):t[n.selector]||t[`*`],r&&(e.nodes[0].nodes=n.nodes.reduce(ne(r),[])),e}function te(e){return e.nodes[0].nodes.reduce(function(e,t){return e.push(`${t.prop}:${t.value}${t.important?` !important`:``}`),e},[]).join(`;`)}function ne(e){return function(t,n){return f(e,n.prop)&&e[n.prop].some(function(e){return e.test(n.value)})&&t.push(n),t}}function re(e,t,n){return t?(e=e.split(/\s+/),e.filter(function(e){return t.indexOf(e)!==-1||n.some(function(t){return t.test(e)})}).join(` `)):e}}var v={decodeEntities:!0};_.defaults={allowedTags:`address.article.aside.footer.header.h1.h2.h3.h4.h5.h6.hgroup.main.nav.section.blockquote.dd.div.dl.dt.figcaption.figure.hr.li.menu.ol.p.pre.ul.a.abbr.b.bdi.bdo.br.cite.code.data.dfn.em.i.kbd.mark.q.rb.rp.rt.rtc.ruby.s.samp.small.span.strong.sub.sup.time.u.var.wbr.caption.col.colgroup.table.tbody.td.tfoot.th.thead.tr`.split(`.`),nonBooleanAttributes:`abbr.accept.accept-charset.accesskey.action.allow.alt.as.autocapitalize.autocomplete.blocking.charset.cite.class.color.cols.colspan.content.contenteditable.coords.crossorigin.data.datetime.decoding.dir.dirname.download.draggable.enctype.enterkeyhint.fetchpriority.for.form.formaction.formenctype.formmethod.formtarget.headers.height.hidden.high.href.hreflang.http-equiv.id.imagesizes.imagesrcset.inputmode.integrity.is.itemid.itemprop.itemref.itemtype.kind.label.lang.list.loading.low.max.maxlength.media.method.min.minlength.name.nonce.optimum.pattern.ping.placeholder.popover.popovertarget.popovertargetaction.poster.preload.referrerpolicy.rel.rows.rowspan.sandbox.scope.shape.size.sizes.slot.span.spellcheck.src.srcdoc.srclang.srcset.start.step.style.tabindex.target.title.translate.type.usemap.value.width.wrap.onauxclick.onafterprint.onbeforematch.onbeforeprint.onbeforeunload.onbeforetoggle.onblur.oncancel.oncanplay.oncanplaythrough.onchange.onclick.onclose.oncontextlost.oncontextmenu.oncontextrestored.oncopy.oncuechange.oncut.ondblclick.ondrag.ondragend.ondragenter.ondragleave.ondragover.ondragstart.ondrop.ondurationchange.onemptied.onended.onerror.onfocus.onformdata.onhashchange.oninput.oninvalid.onkeydown.onkeypress.onkeyup.onlanguagechange.onload.onloadeddata.onloadedmetadata.onloadstart.onmessage.onmessageerror.onmousedown.onmouseenter.onmouseleave.onmousemove.onmouseout.onmouseover.onmouseup.onoffline.ononline.onpagehide.onpageshow.onpaste.onpause.onplay.onplaying.onpopstate.onprogress.onratechange.onreset.onresize.onrejectionhandled.onscroll.onscrollend.onsecuritypolicyviolation.onseeked.onseeking.onselect.onslotchange.onstalled.onstorage.onsubmit.onsuspend.ontimeupdate.ontoggle.onunhandledrejection.onunload.onvolumechange.onwaiting.onwheel`.split(`.`),disallowedTagsMode:`discard`,allowedAttributes:{a:[`href`,`name`,`target`],img:[`src`,`srcset`,`alt`,`title`,`width`,`height`,`loading`]},allowedEmptyAttributes:[`alt`],selfClosing:[`img`,`br`,`hr`,`area`,`base`,`basefont`,`input`,`link`,`meta`],allowedSchemes:[`http`,`https`,`ftp`,`mailto`,`tel`],allowedSchemesByTag:{},allowedSchemesAppliedToAttributes:[`href`,`src`,`cite`,`action`,`formaction`,`data`,`xlink:href`,`poster`,`background`,`ping`,`longdesc`,`usemap`,`codebase`,`classid`,`archive`,`profile`,`manifest`,`itemid`,`dynsrc`,`lowsrc`],allowProtocolRelative:!0,enforceHtmlBoundary:!1,parseStyleAttributes:!0,preserveEscapedAttributes:!1},_.simpleTransform=function(e,t,n){return n=n===void 0?!0:n,t||={},function(r,i){let a;if(n)for(a in t)i[a]=t[a];else i=t;return{tagName:e,attribs:i}}}}))(),1),O1=[`innerHTML`],k1=(0,t.defineComponent)({__name:`ColumnValue`,props:{header:{},item:{}},setup(e){let n=e,r=()=>{let e=``;if(typeof n.header.cellRenderer==`function`){let e=n.header.cellRenderer(n.item[n.header.value],n.item);return Array.isArray(e)?(0,t.h)(`div`,{},e):e}else if(typeof n.header.valueFormatter==`function`)return n.header.valueFormatter(n.item[n.header.value],n.item);else return e=n.item[n.header.value],(0,D1.default)(e)};return(e,i)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,null,[typeof n.header.cellRenderer==`function`?((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(r()),{key:0})):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:1,innerHTML:r()},null,8,O1))]))}}),A1=Pp((0,t.defineComponent)({__name:`EasyConfirmationModal`,props:{description:{},acceptText:{},cancelText:{}},emits:[`onConfirm`],setup(e,{expose:n,emit:r}){let i=r,a=(0,t.ref)(!1),o=(0,t.ref)(``),s=e=>{o.value=e,a.value=!0},c=()=>{a.value=!1,i(`onConfirm`,o.value)};return n({open:s}),(n,r)=>{let i=(0,t.resolveComponent)(`v-col`),o=(0,t.resolveComponent)(`v-row`),s=(0,t.resolveComponent)(`v-card-title`),l=(0,t.resolveComponent)(`v-btn`),u=(0,t.resolveComponent)(`v-card-actions`),d=(0,t.resolveComponent)(`v-card`),f=(0,t.resolveComponent)(`v-dialog`);return(0,t.openBlock)(),(0,t.createBlock)(f,{modelValue:a.value,"onUpdate:modelValue":r[1]||=e=>a.value=e,width:`700`,persistent:``},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(d,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(s,{class:`text-center mt-10`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(o,{class:`textWarning`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(i,{cols:`4`,class:`d-flex justify-end`},{default:(0,t.withCtx)(()=>[...r[2]||=[(0,t.createElementVNode)(`i`,{class:`icon icon-octagon-alert warning-modal`},null,-1)]]),_:1}),(0,t.createVNode)(i,{cols:`8`,class:`d-flex justify-start align-center text-wrap`},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.description),1)]),_:1})]),_:1})]),_:1}),(0,t.createVNode)(u,{class:`ma-4`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(o,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(i,{class:`d-flex justify-start`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(l,{color:`error`,variant:`flat`,onClick:r[0]||=e=>a.value=!1},{default:(0,t.withCtx)(()=>[r[3]||=(0,t.createElementVNode)(`i`,{class:`icon icon-x`},null,-1),(0,t.createTextVNode)(` `+(0,t.toDisplayString)(e.cancelText),1)]),_:1})]),_:1}),(0,t.createVNode)(i,{class:`d-flex justify-end`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(l,{color:`success`,variant:`flat`,onClick:c},{default:(0,t.withCtx)(()=>[r[4]||=(0,t.createElementVNode)(`i`,{class:`icon icon-check`},null,-1),(0,t.createTextVNode)(` `+(0,t.toDisplayString)(e.acceptText),1)]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,[`modelValue`])}}}),[[`__scopeId`,`data-v-f1a09b8c`]]),j1={key:0,style:{display:`flex`,"justify-content":`center`}},M1=(0,t.defineComponent)({__name:`EasyTable`,props:{id:{},headers:{},showSelect:{type:Boolean,default:!1},multipleHardFilters:{type:Boolean,default:!1},multipleDeletion:{type:Boolean,default:!1},api:{},title:{default:``},hardFilters:{default:()=>[]},advancedFilters:{default:()=>[]},calcHeight:{default:``},showExportData:{type:Boolean,default:!1}},emits:[`onLoaded`,`successDelete`,`errorDelete`,`fetchError`],setup(e,{expose:n,emit:r}){let i=e,a=r,o=Hs(),s=(0,t.ref)([]),c=(0,t.ref)(10),l=(0,t.ref)(1),u=(0,t.ref)([]),d=(0,t.ref)([]),f=(0,t.ref)(null),p=(0,t.ref)([]),m=(0,t.ref)([]),h=(0,t.ref)(0),g=YQ(),_=(0,t.ref)(!1),v=(0,t.ref)(null),y=(0,t.ref)(null),b=(0,t.ref)(null),x=(0,t.ref)([{value:10,title:`10`},{value:25,title:`25`},{value:50,title:`50`},{value:100,title:`100`}]);function S(e){return`item.${e.value}`}let C=e=>{i.api?.delete&&(_.value=!0,fetch(`${i.api.delete}/${e}`,{method:`DELETE`}).then(async e=>{if(!e.ok)throw{statusCode:e.status,data:await e.json()};return e.json()}).then(()=>{a(`successDelete`),E()}).catch(async e=>a(`errorDelete`,e)).finally(()=>_.value=!1))},w=()=>{i.api?.multipleDelete&&(_.value=!0,fetch(`${i.api.multipleDelete}`,{method:`DELETE`,body:JSON.stringify({ids:d.value})}).then(async e=>{if(!e.ok)throw{statusCode:e.status,data:await e.json()};return e.json()}).then(()=>{a(`successDelete`),d.value=[],E()}).catch(async e=>a(`errorDelete`,e)).finally(()=>_.value=!1))},T=()=>{y.value?.open(0)},E=async()=>{_.value=!0;let e=new URLSearchParams({sort:JSON.stringify(f.value??{}),filters:JSON.stringify(p.value),hard_filters:JSON.stringify(m.value),page:l.value.toString(),limit:c.value.toString()});fetch(`${i.api.get}?${e}`,{method:`GET`}).then(async e=>{if(!e.ok)throw{statusCode:e.status,data:await e.json()};return e.json()}).then(e=>{u.value=e.data,h.value=e.page.total,b.value?.updateExportDataTotal(h.value),a(`onLoaded`,u.value)}).catch(async e=>a(`fetchError`,e)).finally(()=>_.value=!1)},D=e=>{e.length!==0&&(f.value={column:e[0].key,sort:e[0].order},b.value?.updateExportSortData(f.value),l.value=1,E())},O=e=>{m.value=e,l.value=1,E()},k=e=>{p.value=e,l.value=1,E()},A=e=>{s.value=e,E()};return(0,t.onMounted)(()=>{setTimeout(()=>{b.value?.updateExportData(i.api.get,i.headers,h.value,f.value,p.value,m.value)},500)}),(0,t.onBeforeMount)(()=>{let e=g.loadHeaders(i.headers,i.id);e.length===0?s.value=i.headers.filter(e=>!e?.hidden):s.value=e.filter(e=>!e?.hidden)}),n({getData:E,loading:_}),(n,r)=>{let a=(0,t.resolveComponent)(`VDataTableServer`),f=(0,t.resolveComponent)(`v-container`);return(0,t.openBlock)(),(0,t.createBlock)(f,{class:`maintable`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(p$,{id:e.id,ref_key:`headerRef`,ref:b,title:i.title,headers:i.headers,"advanced-filters":i.advancedFilters,"hard-filters":i.hardFilters,create:e.api?.create,"show-export-data":e.showExportData,"multiple-hard-filters":e.multipleHardFilters,"multiple-deletion":e.multipleDeletion,selected:d.value,onMultipleDelete:T,onHeaders:A,onSearch:k,onHardFilters:O,onLoading:r[0]||=e=>_.value=e},{moreActions:(0,t.withCtx)(()=>[(0,t.renderSlot)(n.$slots,`moreActions`)]),_:3},8,[`id`,`title`,`headers`,`advanced-filters`,`hard-filters`,`create`,`show-export-data`,`multiple-hard-filters`,`multiple-deletion`,`selected`]),(0,t.createVNode)(a,{modelValue:d.value,"onUpdate:modelValue":r[1]||=e=>d.value=e,page:l.value,"onUpdate:page":[r[2]||=e=>l.value=e,E],"items-per-page":c.value,"onUpdate:itemsPerPage":[r[3]||=e=>c.value=e,E],headers:s.value,items:u.value,"show-select":e.showSelect,loading:_.value,"items-length":h.value,"items-per-page-options":x.value,class:(0,t.normalizeClass)(n.$attrs.class),style:(0,t.normalizeStyle)({width:typeof n.$attrs.width==`string`?n.$attrs.width:`auto`}),height:e.calcHeight,"fixed-header":``,"onUpdate:sortBy":D,"onUpdate:sortDesc":D},(0,t.createSlots)({"header.actions":(0,t.withCtx)(()=>[(0,t.createElementVNode)(`i`,(0,t.mergeProps)({class:`icon icon-settings`},i,{style:{"font-size":`20px`}}),null,16)]),_:2},[(0,t.renderList)(s.value,e=>({name:S(e),fn:(0,t.withCtx)(n=>[e.type===`actions`?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,j1,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.actions,(e,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:r},[e.type===`menu`?((0,t.openBlock)(),(0,t.createBlock)(m$,{key:0,action:e,item:n.item,onOnDelete:e=>v.value?.open(n.item?.id)},null,8,[`action`,`item`,`onOnDelete`])):((0,t.openBlock)(),(0,t.createBlock)(h$,{key:1,action:e,item:n.item,onOnDelete:e=>v.value?.open(n.item?.id)},null,8,[`action`,`item`,`onOnDelete`]))]))),128))])):((0,t.openBlock)(),(0,t.createBlock)(k1,{key:1,header:e,item:n.item},null,8,[`header`,`item`]))])}))]),1032,[`modelValue`,`page`,`items-per-page`,`headers`,`items`,`show-select`,`loading`,`items-length`,`items-per-page-options`,`class`,`style`,`height`]),(0,t.createVNode)(A1,{ref_key:`confirm_deletion`,ref:v,description:(0,t.unref)(o).t(`table.deletion_description`),"accept-text":(0,t.unref)(o).t(`table.yes`),"cancel-text":(0,t.unref)(o).t(`table.no`),onOnConfirm:C},null,8,[`description`,`accept-text`,`cancel-text`]),(0,t.createVNode)(A1,{ref_key:`multiple_confirm_deletion`,ref:y,description:(0,t.unref)(o).t(`table.multiple_deletion_description`),"accept-text":(0,t.unref)(o).t(`table.yes`),"cancel-text":(0,t.unref)(o).t(`table.no`),onOnConfirm:w},null,8,[`description`,`accept-text`,`cancel-text`])]),_:3})}}});e.EasyComponents={install(e,t){if(!Nn)throw Error(`[EasyComponents] Vuetify is required. Please install it:
|
|
4107
|
+
npm install vuetify`);let n=Vs({legacy:!1,locale:t.locale??`en`,messages:{en:nc,el:ac}});e.use(n),e.component(`EasyForm`,qQ),e.component(`EasyTable`,M1),e.component(`EasyConfirmationModal`,A1),e.component(`EasyMap`,HQ);let r=Sf()??pp();e.use(r),e.runWithContext(()=>{let e=kp();e.timeZone=t.timeZone,e.location=t.location??null,e.mapId=t.mapId??null,JQ().run()})}},e.EasyConfirmationModal=A1,e.EasyForm=qQ,e.EasyMap=HQ,e.EasyTable=M1});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { default as EasyComponents } from './main';
|
|
2
|
+
export { default as EasyForm } from './components/Form/EasyForm.vue';
|
|
3
|
+
export { default as EasyTable } from './components/Table/EasyTable.vue';
|
|
4
|
+
export { default as EasyConfirmationModal } from './components/Modal/EasyConfirmationModal.vue';
|
|
5
|
+
export { default as EasyMap } from './components/Form/types/EasyMap.vue';
|
|
6
|
+
export type { LatLng, LatitudeLongitude, Polygon, HeatmapPointDTO, MapType, PropsMap, } from './types/map';
|
|
7
|
+
export type { inputType, InputDTO, buttonDTO, submitDTO, MenuButtonsDTO, FormDTO, } from './types/form';
|
|
8
|
+
export type { Media } from './types/gallery';
|
|
9
|
+
export type { pluginsPropertiesDTO } from './types/plugins';
|
|
10
|
+
export type { ApiTableDTO, HeaderDTO, SavedHeaderDTO, AdvancedFiltersComparisonDTO, AdvancedFiltersDTO, HardFiltersDTO, HeaderActionDTO, HeaderActionMenuItemsDTO, PropsDataTableDTO, SelectItem, SortDTO, } from './types/table';
|
package/dist/src/main.d.ts
CHANGED
|
@@ -1,10 +1,5 @@
|
|
|
1
1
|
import { App } from 'vue';
|
|
2
2
|
import { pluginsPropertiesDTO } from './types/plugins';
|
|
3
|
-
import { default as EasyForm } from './components/Form/EasyForm.vue';
|
|
4
|
-
import { default as EasyTable } from './components/Table/EasyTable.vue';
|
|
5
|
-
import { default as EasyConfirmationModal } from './components/Modal/EasyConfirmationModal.vue';
|
|
6
|
-
import { default as EasyMap } from './components/Form/types/EasyMap.vue';
|
|
7
|
-
export { EasyForm, EasyTable, EasyConfirmationModal, EasyMap };
|
|
8
3
|
declare const _default: {
|
|
9
4
|
install(app: App, props: pluginsPropertiesDTO): void;
|
|
10
5
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "easycomponentstools",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.8",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "Easy Vue Components",
|
|
7
7
|
"keywords": [
|
|
@@ -13,11 +13,19 @@
|
|
|
13
13
|
],
|
|
14
14
|
"license": "MIT",
|
|
15
15
|
"author": "developers@safepasskeys.website",
|
|
16
|
-
"main": "dist/easycomponents.umd.js",
|
|
17
|
-
"module": "dist/easycomponents.es.js",
|
|
18
16
|
"files": [
|
|
19
17
|
"dist"
|
|
20
18
|
],
|
|
19
|
+
"main": "./dist/easycomponentstools.umd.js",
|
|
20
|
+
"module": "./dist/easycomponentstools.es.js",
|
|
21
|
+
"types": "./dist/index.d.ts",
|
|
22
|
+
"exports": {
|
|
23
|
+
".": {
|
|
24
|
+
"import": "./dist/easycomponentstools.es.js",
|
|
25
|
+
"require": "./dist/easycomponentstools.umd.js",
|
|
26
|
+
"types": "./dist/index.d.ts"
|
|
27
|
+
}
|
|
28
|
+
},
|
|
21
29
|
"scripts": {
|
|
22
30
|
"dev": "vite",
|
|
23
31
|
"build": "vite build",
|